{-# 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.ChallengeNameType
( ChallengeNameType
( ..,
ChallengeNameType_ADMIN_NO_SRP_AUTH,
ChallengeNameType_CUSTOM_CHALLENGE,
ChallengeNameType_DEVICE_PASSWORD_VERIFIER,
ChallengeNameType_DEVICE_SRP_AUTH,
ChallengeNameType_MFA_SETUP,
ChallengeNameType_NEW_PASSWORD_REQUIRED,
ChallengeNameType_PASSWORD_VERIFIER,
ChallengeNameType_SELECT_MFA_TYPE,
ChallengeNameType_SMS_MFA,
ChallengeNameType_SOFTWARE_TOKEN_MFA
),
)
where
import qualified Amazonka.Core as Core
import qualified Amazonka.Prelude as Prelude
newtype ChallengeNameType = ChallengeNameType'
{ ChallengeNameType -> Text
fromChallengeNameType ::
Core.Text
}
deriving stock
( Int -> ChallengeNameType -> ShowS
[ChallengeNameType] -> ShowS
ChallengeNameType -> String
(Int -> ChallengeNameType -> ShowS)
-> (ChallengeNameType -> String)
-> ([ChallengeNameType] -> ShowS)
-> Show ChallengeNameType
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ChallengeNameType] -> ShowS
$cshowList :: [ChallengeNameType] -> ShowS
show :: ChallengeNameType -> String
$cshow :: ChallengeNameType -> String
showsPrec :: Int -> ChallengeNameType -> ShowS
$cshowsPrec :: Int -> ChallengeNameType -> ShowS
Prelude.Show,
ReadPrec [ChallengeNameType]
ReadPrec ChallengeNameType
Int -> ReadS ChallengeNameType
ReadS [ChallengeNameType]
(Int -> ReadS ChallengeNameType)
-> ReadS [ChallengeNameType]
-> ReadPrec ChallengeNameType
-> ReadPrec [ChallengeNameType]
-> Read ChallengeNameType
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [ChallengeNameType]
$creadListPrec :: ReadPrec [ChallengeNameType]
readPrec :: ReadPrec ChallengeNameType
$creadPrec :: ReadPrec ChallengeNameType
readList :: ReadS [ChallengeNameType]
$creadList :: ReadS [ChallengeNameType]
readsPrec :: Int -> ReadS ChallengeNameType
$creadsPrec :: Int -> ReadS ChallengeNameType
Prelude.Read,
ChallengeNameType -> ChallengeNameType -> Bool
(ChallengeNameType -> ChallengeNameType -> Bool)
-> (ChallengeNameType -> ChallengeNameType -> Bool)
-> Eq ChallengeNameType
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ChallengeNameType -> ChallengeNameType -> Bool
$c/= :: ChallengeNameType -> ChallengeNameType -> Bool
== :: ChallengeNameType -> ChallengeNameType -> Bool
$c== :: ChallengeNameType -> ChallengeNameType -> Bool
Prelude.Eq,
Eq ChallengeNameType
Eq ChallengeNameType
-> (ChallengeNameType -> ChallengeNameType -> Ordering)
-> (ChallengeNameType -> ChallengeNameType -> Bool)
-> (ChallengeNameType -> ChallengeNameType -> Bool)
-> (ChallengeNameType -> ChallengeNameType -> Bool)
-> (ChallengeNameType -> ChallengeNameType -> Bool)
-> (ChallengeNameType -> ChallengeNameType -> ChallengeNameType)
-> (ChallengeNameType -> ChallengeNameType -> ChallengeNameType)
-> Ord ChallengeNameType
ChallengeNameType -> ChallengeNameType -> Bool
ChallengeNameType -> ChallengeNameType -> Ordering
ChallengeNameType -> ChallengeNameType -> ChallengeNameType
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 :: ChallengeNameType -> ChallengeNameType -> ChallengeNameType
$cmin :: ChallengeNameType -> ChallengeNameType -> ChallengeNameType
max :: ChallengeNameType -> ChallengeNameType -> ChallengeNameType
$cmax :: ChallengeNameType -> ChallengeNameType -> ChallengeNameType
>= :: ChallengeNameType -> ChallengeNameType -> Bool
$c>= :: ChallengeNameType -> ChallengeNameType -> Bool
> :: ChallengeNameType -> ChallengeNameType -> Bool
$c> :: ChallengeNameType -> ChallengeNameType -> Bool
<= :: ChallengeNameType -> ChallengeNameType -> Bool
$c<= :: ChallengeNameType -> ChallengeNameType -> Bool
< :: ChallengeNameType -> ChallengeNameType -> Bool
$c< :: ChallengeNameType -> ChallengeNameType -> Bool
compare :: ChallengeNameType -> ChallengeNameType -> Ordering
$ccompare :: ChallengeNameType -> ChallengeNameType -> Ordering
$cp1Ord :: Eq ChallengeNameType
Prelude.Ord,
(forall x. ChallengeNameType -> Rep ChallengeNameType x)
-> (forall x. Rep ChallengeNameType x -> ChallengeNameType)
-> Generic ChallengeNameType
forall x. Rep ChallengeNameType x -> ChallengeNameType
forall x. ChallengeNameType -> Rep ChallengeNameType x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep ChallengeNameType x -> ChallengeNameType
$cfrom :: forall x. ChallengeNameType -> Rep ChallengeNameType x
Prelude.Generic
)
deriving newtype
( Int -> ChallengeNameType -> Int
ChallengeNameType -> Int
(Int -> ChallengeNameType -> Int)
-> (ChallengeNameType -> Int) -> Hashable ChallengeNameType
forall a. (Int -> a -> Int) -> (a -> Int) -> Hashable a
hash :: ChallengeNameType -> Int
$chash :: ChallengeNameType -> Int
hashWithSalt :: Int -> ChallengeNameType -> Int
$chashWithSalt :: Int -> ChallengeNameType -> Int
Prelude.Hashable,
ChallengeNameType -> ()
(ChallengeNameType -> ()) -> NFData ChallengeNameType
forall a. (a -> ()) -> NFData a
rnf :: ChallengeNameType -> ()
$crnf :: ChallengeNameType -> ()
Prelude.NFData,
Text -> Either String ChallengeNameType
(Text -> Either String ChallengeNameType)
-> FromText ChallengeNameType
forall a. (Text -> Either String a) -> FromText a
fromText :: Text -> Either String ChallengeNameType
$cfromText :: Text -> Either String ChallengeNameType
Core.FromText,
ChallengeNameType -> Text
(ChallengeNameType -> Text) -> ToText ChallengeNameType
forall a. (a -> Text) -> ToText a
toText :: ChallengeNameType -> Text
$ctoText :: ChallengeNameType -> Text
Core.ToText,
ChallengeNameType -> ByteString
(ChallengeNameType -> ByteString) -> ToByteString ChallengeNameType
forall a. (a -> ByteString) -> ToByteString a
toBS :: ChallengeNameType -> ByteString
$ctoBS :: ChallengeNameType -> ByteString
Core.ToByteString,
ChallengeNameType -> ByteStringBuilder
(ChallengeNameType -> ByteStringBuilder) -> ToLog ChallengeNameType
forall a. (a -> ByteStringBuilder) -> ToLog a
build :: ChallengeNameType -> ByteStringBuilder
$cbuild :: ChallengeNameType -> ByteStringBuilder
Core.ToLog,
HeaderName -> ChallengeNameType -> [Header]
(HeaderName -> ChallengeNameType -> [Header])
-> ToHeader ChallengeNameType
forall a. (HeaderName -> a -> [Header]) -> ToHeader a
toHeader :: HeaderName -> ChallengeNameType -> [Header]
$ctoHeader :: HeaderName -> ChallengeNameType -> [Header]
Core.ToHeader,
ChallengeNameType -> QueryString
(ChallengeNameType -> QueryString) -> ToQuery ChallengeNameType
forall a. (a -> QueryString) -> ToQuery a
toQuery :: ChallengeNameType -> QueryString
$ctoQuery :: ChallengeNameType -> QueryString
Core.ToQuery,
Value -> Parser [ChallengeNameType]
Value -> Parser ChallengeNameType
(Value -> Parser ChallengeNameType)
-> (Value -> Parser [ChallengeNameType])
-> FromJSON ChallengeNameType
forall a.
(Value -> Parser a) -> (Value -> Parser [a]) -> FromJSON a
parseJSONList :: Value -> Parser [ChallengeNameType]
$cparseJSONList :: Value -> Parser [ChallengeNameType]
parseJSON :: Value -> Parser ChallengeNameType
$cparseJSON :: Value -> Parser ChallengeNameType
Core.FromJSON,
FromJSONKeyFunction [ChallengeNameType]
FromJSONKeyFunction ChallengeNameType
FromJSONKeyFunction ChallengeNameType
-> FromJSONKeyFunction [ChallengeNameType]
-> FromJSONKey ChallengeNameType
forall a.
FromJSONKeyFunction a -> FromJSONKeyFunction [a] -> FromJSONKey a
fromJSONKeyList :: FromJSONKeyFunction [ChallengeNameType]
$cfromJSONKeyList :: FromJSONKeyFunction [ChallengeNameType]
fromJSONKey :: FromJSONKeyFunction ChallengeNameType
$cfromJSONKey :: FromJSONKeyFunction ChallengeNameType
Core.FromJSONKey,
[ChallengeNameType] -> Encoding
[ChallengeNameType] -> Value
ChallengeNameType -> Encoding
ChallengeNameType -> Value
(ChallengeNameType -> Value)
-> (ChallengeNameType -> Encoding)
-> ([ChallengeNameType] -> Value)
-> ([ChallengeNameType] -> Encoding)
-> ToJSON ChallengeNameType
forall a.
(a -> Value)
-> (a -> Encoding)
-> ([a] -> Value)
-> ([a] -> Encoding)
-> ToJSON a
toEncodingList :: [ChallengeNameType] -> Encoding
$ctoEncodingList :: [ChallengeNameType] -> Encoding
toJSONList :: [ChallengeNameType] -> Value
$ctoJSONList :: [ChallengeNameType] -> Value
toEncoding :: ChallengeNameType -> Encoding
$ctoEncoding :: ChallengeNameType -> Encoding
toJSON :: ChallengeNameType -> Value
$ctoJSON :: ChallengeNameType -> Value
Core.ToJSON,
ToJSONKeyFunction [ChallengeNameType]
ToJSONKeyFunction ChallengeNameType
ToJSONKeyFunction ChallengeNameType
-> ToJSONKeyFunction [ChallengeNameType]
-> ToJSONKey ChallengeNameType
forall a.
ToJSONKeyFunction a -> ToJSONKeyFunction [a] -> ToJSONKey a
toJSONKeyList :: ToJSONKeyFunction [ChallengeNameType]
$ctoJSONKeyList :: ToJSONKeyFunction [ChallengeNameType]
toJSONKey :: ToJSONKeyFunction ChallengeNameType
$ctoJSONKey :: ToJSONKeyFunction ChallengeNameType
Core.ToJSONKey,
[Node] -> Either String ChallengeNameType
([Node] -> Either String ChallengeNameType)
-> FromXML ChallengeNameType
forall a. ([Node] -> Either String a) -> FromXML a
parseXML :: [Node] -> Either String ChallengeNameType
$cparseXML :: [Node] -> Either String ChallengeNameType
Core.FromXML,
ChallengeNameType -> XML
(ChallengeNameType -> XML) -> ToXML ChallengeNameType
forall a. (a -> XML) -> ToXML a
toXML :: ChallengeNameType -> XML
$ctoXML :: ChallengeNameType -> XML
Core.ToXML
)
pattern ChallengeNameType_ADMIN_NO_SRP_AUTH :: ChallengeNameType
pattern $bChallengeNameType_ADMIN_NO_SRP_AUTH :: ChallengeNameType
$mChallengeNameType_ADMIN_NO_SRP_AUTH :: forall r. ChallengeNameType -> (Void# -> r) -> (Void# -> r) -> r
ChallengeNameType_ADMIN_NO_SRP_AUTH = ChallengeNameType' "ADMIN_NO_SRP_AUTH"
pattern ChallengeNameType_CUSTOM_CHALLENGE :: ChallengeNameType
pattern $bChallengeNameType_CUSTOM_CHALLENGE :: ChallengeNameType
$mChallengeNameType_CUSTOM_CHALLENGE :: forall r. ChallengeNameType -> (Void# -> r) -> (Void# -> r) -> r
ChallengeNameType_CUSTOM_CHALLENGE = ChallengeNameType' "CUSTOM_CHALLENGE"
pattern ChallengeNameType_DEVICE_PASSWORD_VERIFIER :: ChallengeNameType
pattern $bChallengeNameType_DEVICE_PASSWORD_VERIFIER :: ChallengeNameType
$mChallengeNameType_DEVICE_PASSWORD_VERIFIER :: forall r. ChallengeNameType -> (Void# -> r) -> (Void# -> r) -> r
ChallengeNameType_DEVICE_PASSWORD_VERIFIER = ChallengeNameType' "DEVICE_PASSWORD_VERIFIER"
pattern ChallengeNameType_DEVICE_SRP_AUTH :: ChallengeNameType
pattern $bChallengeNameType_DEVICE_SRP_AUTH :: ChallengeNameType
$mChallengeNameType_DEVICE_SRP_AUTH :: forall r. ChallengeNameType -> (Void# -> r) -> (Void# -> r) -> r
ChallengeNameType_DEVICE_SRP_AUTH = ChallengeNameType' "DEVICE_SRP_AUTH"
pattern ChallengeNameType_MFA_SETUP :: ChallengeNameType
pattern $bChallengeNameType_MFA_SETUP :: ChallengeNameType
$mChallengeNameType_MFA_SETUP :: forall r. ChallengeNameType -> (Void# -> r) -> (Void# -> r) -> r
ChallengeNameType_MFA_SETUP = ChallengeNameType' "MFA_SETUP"
pattern ChallengeNameType_NEW_PASSWORD_REQUIRED :: ChallengeNameType
pattern $bChallengeNameType_NEW_PASSWORD_REQUIRED :: ChallengeNameType
$mChallengeNameType_NEW_PASSWORD_REQUIRED :: forall r. ChallengeNameType -> (Void# -> r) -> (Void# -> r) -> r
ChallengeNameType_NEW_PASSWORD_REQUIRED = ChallengeNameType' "NEW_PASSWORD_REQUIRED"
pattern ChallengeNameType_PASSWORD_VERIFIER :: ChallengeNameType
pattern $bChallengeNameType_PASSWORD_VERIFIER :: ChallengeNameType
$mChallengeNameType_PASSWORD_VERIFIER :: forall r. ChallengeNameType -> (Void# -> r) -> (Void# -> r) -> r
ChallengeNameType_PASSWORD_VERIFIER = ChallengeNameType' "PASSWORD_VERIFIER"
pattern ChallengeNameType_SELECT_MFA_TYPE :: ChallengeNameType
pattern $bChallengeNameType_SELECT_MFA_TYPE :: ChallengeNameType
$mChallengeNameType_SELECT_MFA_TYPE :: forall r. ChallengeNameType -> (Void# -> r) -> (Void# -> r) -> r
ChallengeNameType_SELECT_MFA_TYPE = ChallengeNameType' "SELECT_MFA_TYPE"
pattern ChallengeNameType_SMS_MFA :: ChallengeNameType
pattern $bChallengeNameType_SMS_MFA :: ChallengeNameType
$mChallengeNameType_SMS_MFA :: forall r. ChallengeNameType -> (Void# -> r) -> (Void# -> r) -> r
ChallengeNameType_SMS_MFA = ChallengeNameType' "SMS_MFA"
pattern ChallengeNameType_SOFTWARE_TOKEN_MFA :: ChallengeNameType
pattern $bChallengeNameType_SOFTWARE_TOKEN_MFA :: ChallengeNameType
$mChallengeNameType_SOFTWARE_TOKEN_MFA :: forall r. ChallengeNameType -> (Void# -> r) -> (Void# -> r) -> r
ChallengeNameType_SOFTWARE_TOKEN_MFA = ChallengeNameType' "SOFTWARE_TOKEN_MFA"
{-# COMPLETE
ChallengeNameType_ADMIN_NO_SRP_AUTH,
ChallengeNameType_CUSTOM_CHALLENGE,
ChallengeNameType_DEVICE_PASSWORD_VERIFIER,
ChallengeNameType_DEVICE_SRP_AUTH,
ChallengeNameType_MFA_SETUP,
ChallengeNameType_NEW_PASSWORD_REQUIRED,
ChallengeNameType_PASSWORD_VERIFIER,
ChallengeNameType_SELECT_MFA_TYPE,
ChallengeNameType_SMS_MFA,
ChallengeNameType_SOFTWARE_TOKEN_MFA,
ChallengeNameType'
#-}