{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE DerivingStrategies #-}
{-# LANGUAGE GeneralizedNewtypeDeriving #-}
{-# LANGUAGE LambdaCase #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE PatternSynonyms #-}
{-# LANGUAGE StrictData #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# OPTIONS_GHC -fno-warn-unused-imports #-}
module Amazonka.CognitoIdentityProvider.Types.DomainStatusType
( DomainStatusType
( ..,
DomainStatusType_ACTIVE,
DomainStatusType_CREATING,
DomainStatusType_DELETING,
DomainStatusType_FAILED,
DomainStatusType_UPDATING
),
)
where
import qualified Amazonka.Core as Core
import qualified Amazonka.Prelude as Prelude
newtype DomainStatusType = DomainStatusType'
{ DomainStatusType -> Text
fromDomainStatusType ::
Core.Text
}
deriving stock
( Int -> DomainStatusType -> ShowS
[DomainStatusType] -> ShowS
DomainStatusType -> String
(Int -> DomainStatusType -> ShowS)
-> (DomainStatusType -> String)
-> ([DomainStatusType] -> ShowS)
-> Show DomainStatusType
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [DomainStatusType] -> ShowS
$cshowList :: [DomainStatusType] -> ShowS
show :: DomainStatusType -> String
$cshow :: DomainStatusType -> String
showsPrec :: Int -> DomainStatusType -> ShowS
$cshowsPrec :: Int -> DomainStatusType -> ShowS
Prelude.Show,
ReadPrec [DomainStatusType]
ReadPrec DomainStatusType
Int -> ReadS DomainStatusType
ReadS [DomainStatusType]
(Int -> ReadS DomainStatusType)
-> ReadS [DomainStatusType]
-> ReadPrec DomainStatusType
-> ReadPrec [DomainStatusType]
-> Read DomainStatusType
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [DomainStatusType]
$creadListPrec :: ReadPrec [DomainStatusType]
readPrec :: ReadPrec DomainStatusType
$creadPrec :: ReadPrec DomainStatusType
readList :: ReadS [DomainStatusType]
$creadList :: ReadS [DomainStatusType]
readsPrec :: Int -> ReadS DomainStatusType
$creadsPrec :: Int -> ReadS DomainStatusType
Prelude.Read,
DomainStatusType -> DomainStatusType -> Bool
(DomainStatusType -> DomainStatusType -> Bool)
-> (DomainStatusType -> DomainStatusType -> Bool)
-> Eq DomainStatusType
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: DomainStatusType -> DomainStatusType -> Bool
$c/= :: DomainStatusType -> DomainStatusType -> Bool
== :: DomainStatusType -> DomainStatusType -> Bool
$c== :: DomainStatusType -> DomainStatusType -> Bool
Prelude.Eq,
Eq DomainStatusType
Eq DomainStatusType
-> (DomainStatusType -> DomainStatusType -> Ordering)
-> (DomainStatusType -> DomainStatusType -> Bool)
-> (DomainStatusType -> DomainStatusType -> Bool)
-> (DomainStatusType -> DomainStatusType -> Bool)
-> (DomainStatusType -> DomainStatusType -> Bool)
-> (DomainStatusType -> DomainStatusType -> DomainStatusType)
-> (DomainStatusType -> DomainStatusType -> DomainStatusType)
-> Ord DomainStatusType
DomainStatusType -> DomainStatusType -> Bool
DomainStatusType -> DomainStatusType -> Ordering
DomainStatusType -> DomainStatusType -> DomainStatusType
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 :: DomainStatusType -> DomainStatusType -> DomainStatusType
$cmin :: DomainStatusType -> DomainStatusType -> DomainStatusType
max :: DomainStatusType -> DomainStatusType -> DomainStatusType
$cmax :: DomainStatusType -> DomainStatusType -> DomainStatusType
>= :: DomainStatusType -> DomainStatusType -> Bool
$c>= :: DomainStatusType -> DomainStatusType -> Bool
> :: DomainStatusType -> DomainStatusType -> Bool
$c> :: DomainStatusType -> DomainStatusType -> Bool
<= :: DomainStatusType -> DomainStatusType -> Bool
$c<= :: DomainStatusType -> DomainStatusType -> Bool
< :: DomainStatusType -> DomainStatusType -> Bool
$c< :: DomainStatusType -> DomainStatusType -> Bool
compare :: DomainStatusType -> DomainStatusType -> Ordering
$ccompare :: DomainStatusType -> DomainStatusType -> Ordering
$cp1Ord :: Eq DomainStatusType
Prelude.Ord,
(forall x. DomainStatusType -> Rep DomainStatusType x)
-> (forall x. Rep DomainStatusType x -> DomainStatusType)
-> Generic DomainStatusType
forall x. Rep DomainStatusType x -> DomainStatusType
forall x. DomainStatusType -> Rep DomainStatusType x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep DomainStatusType x -> DomainStatusType
$cfrom :: forall x. DomainStatusType -> Rep DomainStatusType x
Prelude.Generic
)
deriving newtype
( Int -> DomainStatusType -> Int
DomainStatusType -> Int
(Int -> DomainStatusType -> Int)
-> (DomainStatusType -> Int) -> Hashable DomainStatusType
forall a. (Int -> a -> Int) -> (a -> Int) -> Hashable a
hash :: DomainStatusType -> Int
$chash :: DomainStatusType -> Int
hashWithSalt :: Int -> DomainStatusType -> Int
$chashWithSalt :: Int -> DomainStatusType -> Int
Prelude.Hashable,
DomainStatusType -> ()
(DomainStatusType -> ()) -> NFData DomainStatusType
forall a. (a -> ()) -> NFData a
rnf :: DomainStatusType -> ()
$crnf :: DomainStatusType -> ()
Prelude.NFData,
Text -> Either String DomainStatusType
(Text -> Either String DomainStatusType)
-> FromText DomainStatusType
forall a. (Text -> Either String a) -> FromText a
fromText :: Text -> Either String DomainStatusType
$cfromText :: Text -> Either String DomainStatusType
Core.FromText,
DomainStatusType -> Text
(DomainStatusType -> Text) -> ToText DomainStatusType
forall a. (a -> Text) -> ToText a
toText :: DomainStatusType -> Text
$ctoText :: DomainStatusType -> Text
Core.ToText,
DomainStatusType -> ByteString
(DomainStatusType -> ByteString) -> ToByteString DomainStatusType
forall a. (a -> ByteString) -> ToByteString a
toBS :: DomainStatusType -> ByteString
$ctoBS :: DomainStatusType -> ByteString
Core.ToByteString,
DomainStatusType -> ByteStringBuilder
(DomainStatusType -> ByteStringBuilder) -> ToLog DomainStatusType
forall a. (a -> ByteStringBuilder) -> ToLog a
build :: DomainStatusType -> ByteStringBuilder
$cbuild :: DomainStatusType -> ByteStringBuilder
Core.ToLog,
HeaderName -> DomainStatusType -> [Header]
(HeaderName -> DomainStatusType -> [Header])
-> ToHeader DomainStatusType
forall a. (HeaderName -> a -> [Header]) -> ToHeader a
toHeader :: HeaderName -> DomainStatusType -> [Header]
$ctoHeader :: HeaderName -> DomainStatusType -> [Header]
Core.ToHeader,
DomainStatusType -> QueryString
(DomainStatusType -> QueryString) -> ToQuery DomainStatusType
forall a. (a -> QueryString) -> ToQuery a
toQuery :: DomainStatusType -> QueryString
$ctoQuery :: DomainStatusType -> QueryString
Core.ToQuery,
Value -> Parser [DomainStatusType]
Value -> Parser DomainStatusType
(Value -> Parser DomainStatusType)
-> (Value -> Parser [DomainStatusType])
-> FromJSON DomainStatusType
forall a.
(Value -> Parser a) -> (Value -> Parser [a]) -> FromJSON a
parseJSONList :: Value -> Parser [DomainStatusType]
$cparseJSONList :: Value -> Parser [DomainStatusType]
parseJSON :: Value -> Parser DomainStatusType
$cparseJSON :: Value -> Parser DomainStatusType
Core.FromJSON,
FromJSONKeyFunction [DomainStatusType]
FromJSONKeyFunction DomainStatusType
FromJSONKeyFunction DomainStatusType
-> FromJSONKeyFunction [DomainStatusType]
-> FromJSONKey DomainStatusType
forall a.
FromJSONKeyFunction a -> FromJSONKeyFunction [a] -> FromJSONKey a
fromJSONKeyList :: FromJSONKeyFunction [DomainStatusType]
$cfromJSONKeyList :: FromJSONKeyFunction [DomainStatusType]
fromJSONKey :: FromJSONKeyFunction DomainStatusType
$cfromJSONKey :: FromJSONKeyFunction DomainStatusType
Core.FromJSONKey,
[DomainStatusType] -> Encoding
[DomainStatusType] -> Value
DomainStatusType -> Encoding
DomainStatusType -> Value
(DomainStatusType -> Value)
-> (DomainStatusType -> Encoding)
-> ([DomainStatusType] -> Value)
-> ([DomainStatusType] -> Encoding)
-> ToJSON DomainStatusType
forall a.
(a -> Value)
-> (a -> Encoding)
-> ([a] -> Value)
-> ([a] -> Encoding)
-> ToJSON a
toEncodingList :: [DomainStatusType] -> Encoding
$ctoEncodingList :: [DomainStatusType] -> Encoding
toJSONList :: [DomainStatusType] -> Value
$ctoJSONList :: [DomainStatusType] -> Value
toEncoding :: DomainStatusType -> Encoding
$ctoEncoding :: DomainStatusType -> Encoding
toJSON :: DomainStatusType -> Value
$ctoJSON :: DomainStatusType -> Value
Core.ToJSON,
ToJSONKeyFunction [DomainStatusType]
ToJSONKeyFunction DomainStatusType
ToJSONKeyFunction DomainStatusType
-> ToJSONKeyFunction [DomainStatusType]
-> ToJSONKey DomainStatusType
forall a.
ToJSONKeyFunction a -> ToJSONKeyFunction [a] -> ToJSONKey a
toJSONKeyList :: ToJSONKeyFunction [DomainStatusType]
$ctoJSONKeyList :: ToJSONKeyFunction [DomainStatusType]
toJSONKey :: ToJSONKeyFunction DomainStatusType
$ctoJSONKey :: ToJSONKeyFunction DomainStatusType
Core.ToJSONKey,
[Node] -> Either String DomainStatusType
([Node] -> Either String DomainStatusType)
-> FromXML DomainStatusType
forall a. ([Node] -> Either String a) -> FromXML a
parseXML :: [Node] -> Either String DomainStatusType
$cparseXML :: [Node] -> Either String DomainStatusType
Core.FromXML,
DomainStatusType -> XML
(DomainStatusType -> XML) -> ToXML DomainStatusType
forall a. (a -> XML) -> ToXML a
toXML :: DomainStatusType -> XML
$ctoXML :: DomainStatusType -> XML
Core.ToXML
)
pattern DomainStatusType_ACTIVE :: DomainStatusType
pattern $bDomainStatusType_ACTIVE :: DomainStatusType
$mDomainStatusType_ACTIVE :: forall r. DomainStatusType -> (Void# -> r) -> (Void# -> r) -> r
DomainStatusType_ACTIVE = DomainStatusType' "ACTIVE"
pattern DomainStatusType_CREATING :: DomainStatusType
pattern $bDomainStatusType_CREATING :: DomainStatusType
$mDomainStatusType_CREATING :: forall r. DomainStatusType -> (Void# -> r) -> (Void# -> r) -> r
DomainStatusType_CREATING = DomainStatusType' "CREATING"
pattern DomainStatusType_DELETING :: DomainStatusType
pattern $bDomainStatusType_DELETING :: DomainStatusType
$mDomainStatusType_DELETING :: forall r. DomainStatusType -> (Void# -> r) -> (Void# -> r) -> r
DomainStatusType_DELETING = DomainStatusType' "DELETING"
pattern DomainStatusType_FAILED :: DomainStatusType
pattern $bDomainStatusType_FAILED :: DomainStatusType
$mDomainStatusType_FAILED :: forall r. DomainStatusType -> (Void# -> r) -> (Void# -> r) -> r
DomainStatusType_FAILED = DomainStatusType' "FAILED"
pattern DomainStatusType_UPDATING :: DomainStatusType
pattern $bDomainStatusType_UPDATING :: DomainStatusType
$mDomainStatusType_UPDATING :: forall r. DomainStatusType -> (Void# -> r) -> (Void# -> r) -> r
DomainStatusType_UPDATING = DomainStatusType' "UPDATING"
{-# COMPLETE
DomainStatusType_ACTIVE,
DomainStatusType_CREATING,
DomainStatusType_DELETING,
DomainStatusType_FAILED,
DomainStatusType_UPDATING,
DomainStatusType'
#-}