{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE DerivingStrategies #-}
{-# LANGUAGE GeneralizedNewtypeDeriving #-}
{-# LANGUAGE LambdaCase #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE PatternSynonyms #-}
{-# LANGUAGE StrictData #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# OPTIONS_GHC -fno-warn-unused-imports #-}
module Amazonka.ServiceCatalog.Types.AccessStatus
( AccessStatus
( ..,
AccessStatus_DISABLED,
AccessStatus_ENABLED,
AccessStatus_UNDER_CHANGE
),
)
where
import qualified Amazonka.Core as Core
import qualified Amazonka.Prelude as Prelude
newtype AccessStatus = AccessStatus'
{ AccessStatus -> Text
fromAccessStatus ::
Core.Text
}
deriving stock
( Int -> AccessStatus -> ShowS
[AccessStatus] -> ShowS
AccessStatus -> String
(Int -> AccessStatus -> ShowS)
-> (AccessStatus -> String)
-> ([AccessStatus] -> ShowS)
-> Show AccessStatus
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [AccessStatus] -> ShowS
$cshowList :: [AccessStatus] -> ShowS
show :: AccessStatus -> String
$cshow :: AccessStatus -> String
showsPrec :: Int -> AccessStatus -> ShowS
$cshowsPrec :: Int -> AccessStatus -> ShowS
Prelude.Show,
ReadPrec [AccessStatus]
ReadPrec AccessStatus
Int -> ReadS AccessStatus
ReadS [AccessStatus]
(Int -> ReadS AccessStatus)
-> ReadS [AccessStatus]
-> ReadPrec AccessStatus
-> ReadPrec [AccessStatus]
-> Read AccessStatus
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [AccessStatus]
$creadListPrec :: ReadPrec [AccessStatus]
readPrec :: ReadPrec AccessStatus
$creadPrec :: ReadPrec AccessStatus
readList :: ReadS [AccessStatus]
$creadList :: ReadS [AccessStatus]
readsPrec :: Int -> ReadS AccessStatus
$creadsPrec :: Int -> ReadS AccessStatus
Prelude.Read,
AccessStatus -> AccessStatus -> Bool
(AccessStatus -> AccessStatus -> Bool)
-> (AccessStatus -> AccessStatus -> Bool) -> Eq AccessStatus
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: AccessStatus -> AccessStatus -> Bool
$c/= :: AccessStatus -> AccessStatus -> Bool
== :: AccessStatus -> AccessStatus -> Bool
$c== :: AccessStatus -> AccessStatus -> Bool
Prelude.Eq,
Eq AccessStatus
Eq AccessStatus
-> (AccessStatus -> AccessStatus -> Ordering)
-> (AccessStatus -> AccessStatus -> Bool)
-> (AccessStatus -> AccessStatus -> Bool)
-> (AccessStatus -> AccessStatus -> Bool)
-> (AccessStatus -> AccessStatus -> Bool)
-> (AccessStatus -> AccessStatus -> AccessStatus)
-> (AccessStatus -> AccessStatus -> AccessStatus)
-> Ord AccessStatus
AccessStatus -> AccessStatus -> Bool
AccessStatus -> AccessStatus -> Ordering
AccessStatus -> AccessStatus -> AccessStatus
forall a.
Eq a
-> (a -> a -> Ordering)
-> (a -> a -> Bool)
-> (a -> a -> Bool)
-> (a -> a -> Bool)
-> (a -> a -> Bool)
-> (a -> a -> a)
-> (a -> a -> a)
-> Ord a
min :: AccessStatus -> AccessStatus -> AccessStatus
$cmin :: AccessStatus -> AccessStatus -> AccessStatus
max :: AccessStatus -> AccessStatus -> AccessStatus
$cmax :: AccessStatus -> AccessStatus -> AccessStatus
>= :: AccessStatus -> AccessStatus -> Bool
$c>= :: AccessStatus -> AccessStatus -> Bool
> :: AccessStatus -> AccessStatus -> Bool
$c> :: AccessStatus -> AccessStatus -> Bool
<= :: AccessStatus -> AccessStatus -> Bool
$c<= :: AccessStatus -> AccessStatus -> Bool
< :: AccessStatus -> AccessStatus -> Bool
$c< :: AccessStatus -> AccessStatus -> Bool
compare :: AccessStatus -> AccessStatus -> Ordering
$ccompare :: AccessStatus -> AccessStatus -> Ordering
$cp1Ord :: Eq AccessStatus
Prelude.Ord,
(forall x. AccessStatus -> Rep AccessStatus x)
-> (forall x. Rep AccessStatus x -> AccessStatus)
-> Generic AccessStatus
forall x. Rep AccessStatus x -> AccessStatus
forall x. AccessStatus -> Rep AccessStatus x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep AccessStatus x -> AccessStatus
$cfrom :: forall x. AccessStatus -> Rep AccessStatus x
Prelude.Generic
)
deriving newtype
( Int -> AccessStatus -> Int
AccessStatus -> Int
(Int -> AccessStatus -> Int)
-> (AccessStatus -> Int) -> Hashable AccessStatus
forall a. (Int -> a -> Int) -> (a -> Int) -> Hashable a
hash :: AccessStatus -> Int
$chash :: AccessStatus -> Int
hashWithSalt :: Int -> AccessStatus -> Int
$chashWithSalt :: Int -> AccessStatus -> Int
Prelude.Hashable,
AccessStatus -> ()
(AccessStatus -> ()) -> NFData AccessStatus
forall a. (a -> ()) -> NFData a
rnf :: AccessStatus -> ()
$crnf :: AccessStatus -> ()
Prelude.NFData,
Text -> Either String AccessStatus
(Text -> Either String AccessStatus) -> FromText AccessStatus
forall a. (Text -> Either String a) -> FromText a
fromText :: Text -> Either String AccessStatus
$cfromText :: Text -> Either String AccessStatus
Core.FromText,
AccessStatus -> Text
(AccessStatus -> Text) -> ToText AccessStatus
forall a. (a -> Text) -> ToText a
toText :: AccessStatus -> Text
$ctoText :: AccessStatus -> Text
Core.ToText,
AccessStatus -> ByteString
(AccessStatus -> ByteString) -> ToByteString AccessStatus
forall a. (a -> ByteString) -> ToByteString a
toBS :: AccessStatus -> ByteString
$ctoBS :: AccessStatus -> ByteString
Core.ToByteString,
AccessStatus -> ByteStringBuilder
(AccessStatus -> ByteStringBuilder) -> ToLog AccessStatus
forall a. (a -> ByteStringBuilder) -> ToLog a
build :: AccessStatus -> ByteStringBuilder
$cbuild :: AccessStatus -> ByteStringBuilder
Core.ToLog,
HeaderName -> AccessStatus -> [Header]
(HeaderName -> AccessStatus -> [Header]) -> ToHeader AccessStatus
forall a. (HeaderName -> a -> [Header]) -> ToHeader a
toHeader :: HeaderName -> AccessStatus -> [Header]
$ctoHeader :: HeaderName -> AccessStatus -> [Header]
Core.ToHeader,
AccessStatus -> QueryString
(AccessStatus -> QueryString) -> ToQuery AccessStatus
forall a. (a -> QueryString) -> ToQuery a
toQuery :: AccessStatus -> QueryString
$ctoQuery :: AccessStatus -> QueryString
Core.ToQuery,
Value -> Parser [AccessStatus]
Value -> Parser AccessStatus
(Value -> Parser AccessStatus)
-> (Value -> Parser [AccessStatus]) -> FromJSON AccessStatus
forall a.
(Value -> Parser a) -> (Value -> Parser [a]) -> FromJSON a
parseJSONList :: Value -> Parser [AccessStatus]
$cparseJSONList :: Value -> Parser [AccessStatus]
parseJSON :: Value -> Parser AccessStatus
$cparseJSON :: Value -> Parser AccessStatus
Core.FromJSON,
FromJSONKeyFunction [AccessStatus]
FromJSONKeyFunction AccessStatus
FromJSONKeyFunction AccessStatus
-> FromJSONKeyFunction [AccessStatus] -> FromJSONKey AccessStatus
forall a.
FromJSONKeyFunction a -> FromJSONKeyFunction [a] -> FromJSONKey a
fromJSONKeyList :: FromJSONKeyFunction [AccessStatus]
$cfromJSONKeyList :: FromJSONKeyFunction [AccessStatus]
fromJSONKey :: FromJSONKeyFunction AccessStatus
$cfromJSONKey :: FromJSONKeyFunction AccessStatus
Core.FromJSONKey,
[AccessStatus] -> Encoding
[AccessStatus] -> Value
AccessStatus -> Encoding
AccessStatus -> Value
(AccessStatus -> Value)
-> (AccessStatus -> Encoding)
-> ([AccessStatus] -> Value)
-> ([AccessStatus] -> Encoding)
-> ToJSON AccessStatus
forall a.
(a -> Value)
-> (a -> Encoding)
-> ([a] -> Value)
-> ([a] -> Encoding)
-> ToJSON a
toEncodingList :: [AccessStatus] -> Encoding
$ctoEncodingList :: [AccessStatus] -> Encoding
toJSONList :: [AccessStatus] -> Value
$ctoJSONList :: [AccessStatus] -> Value
toEncoding :: AccessStatus -> Encoding
$ctoEncoding :: AccessStatus -> Encoding
toJSON :: AccessStatus -> Value
$ctoJSON :: AccessStatus -> Value
Core.ToJSON,
ToJSONKeyFunction [AccessStatus]
ToJSONKeyFunction AccessStatus
ToJSONKeyFunction AccessStatus
-> ToJSONKeyFunction [AccessStatus] -> ToJSONKey AccessStatus
forall a.
ToJSONKeyFunction a -> ToJSONKeyFunction [a] -> ToJSONKey a
toJSONKeyList :: ToJSONKeyFunction [AccessStatus]
$ctoJSONKeyList :: ToJSONKeyFunction [AccessStatus]
toJSONKey :: ToJSONKeyFunction AccessStatus
$ctoJSONKey :: ToJSONKeyFunction AccessStatus
Core.ToJSONKey,
[Node] -> Either String AccessStatus
([Node] -> Either String AccessStatus) -> FromXML AccessStatus
forall a. ([Node] -> Either String a) -> FromXML a
parseXML :: [Node] -> Either String AccessStatus
$cparseXML :: [Node] -> Either String AccessStatus
Core.FromXML,
AccessStatus -> XML
(AccessStatus -> XML) -> ToXML AccessStatus
forall a. (a -> XML) -> ToXML a
toXML :: AccessStatus -> XML
$ctoXML :: AccessStatus -> XML
Core.ToXML
)
pattern AccessStatus_DISABLED :: AccessStatus
pattern $bAccessStatus_DISABLED :: AccessStatus
$mAccessStatus_DISABLED :: forall r. AccessStatus -> (Void# -> r) -> (Void# -> r) -> r
AccessStatus_DISABLED = AccessStatus' "DISABLED"
pattern AccessStatus_ENABLED :: AccessStatus
pattern $bAccessStatus_ENABLED :: AccessStatus
$mAccessStatus_ENABLED :: forall r. AccessStatus -> (Void# -> r) -> (Void# -> r) -> r
AccessStatus_ENABLED = AccessStatus' "ENABLED"
pattern AccessStatus_UNDER_CHANGE :: AccessStatus
pattern $bAccessStatus_UNDER_CHANGE :: AccessStatus
$mAccessStatus_UNDER_CHANGE :: forall r. AccessStatus -> (Void# -> r) -> (Void# -> r) -> r
AccessStatus_UNDER_CHANGE = AccessStatus' "UNDER_CHANGE"
{-# COMPLETE
AccessStatus_DISABLED,
AccessStatus_ENABLED,
AccessStatus_UNDER_CHANGE,
AccessStatus'
#-}