{-# 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.ChallengeResponse
( ChallengeResponse
( ..,
ChallengeResponse_Failure,
ChallengeResponse_Success
),
)
where
import qualified Amazonka.Core as Core
import qualified Amazonka.Data as Data
import qualified Amazonka.Prelude as Prelude
newtype ChallengeResponse = ChallengeResponse'
{ ChallengeResponse -> Text
fromChallengeResponse ::
Data.Text
}
deriving stock
( Int -> ChallengeResponse -> ShowS
[ChallengeResponse] -> ShowS
ChallengeResponse -> String
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ChallengeResponse] -> ShowS
$cshowList :: [ChallengeResponse] -> ShowS
show :: ChallengeResponse -> String
$cshow :: ChallengeResponse -> String
showsPrec :: Int -> ChallengeResponse -> ShowS
$cshowsPrec :: Int -> ChallengeResponse -> ShowS
Prelude.Show,
ReadPrec [ChallengeResponse]
ReadPrec ChallengeResponse
Int -> ReadS ChallengeResponse
ReadS [ChallengeResponse]
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [ChallengeResponse]
$creadListPrec :: ReadPrec [ChallengeResponse]
readPrec :: ReadPrec ChallengeResponse
$creadPrec :: ReadPrec ChallengeResponse
readList :: ReadS [ChallengeResponse]
$creadList :: ReadS [ChallengeResponse]
readsPrec :: Int -> ReadS ChallengeResponse
$creadsPrec :: Int -> ReadS ChallengeResponse
Prelude.Read,
ChallengeResponse -> ChallengeResponse -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ChallengeResponse -> ChallengeResponse -> Bool
$c/= :: ChallengeResponse -> ChallengeResponse -> Bool
== :: ChallengeResponse -> ChallengeResponse -> Bool
$c== :: ChallengeResponse -> ChallengeResponse -> Bool
Prelude.Eq,
Eq ChallengeResponse
ChallengeResponse -> ChallengeResponse -> Bool
ChallengeResponse -> ChallengeResponse -> Ordering
ChallengeResponse -> ChallengeResponse -> ChallengeResponse
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 :: ChallengeResponse -> ChallengeResponse -> ChallengeResponse
$cmin :: ChallengeResponse -> ChallengeResponse -> ChallengeResponse
max :: ChallengeResponse -> ChallengeResponse -> ChallengeResponse
$cmax :: ChallengeResponse -> ChallengeResponse -> ChallengeResponse
>= :: ChallengeResponse -> ChallengeResponse -> Bool
$c>= :: ChallengeResponse -> ChallengeResponse -> Bool
> :: ChallengeResponse -> ChallengeResponse -> Bool
$c> :: ChallengeResponse -> ChallengeResponse -> Bool
<= :: ChallengeResponse -> ChallengeResponse -> Bool
$c<= :: ChallengeResponse -> ChallengeResponse -> Bool
< :: ChallengeResponse -> ChallengeResponse -> Bool
$c< :: ChallengeResponse -> ChallengeResponse -> Bool
compare :: ChallengeResponse -> ChallengeResponse -> Ordering
$ccompare :: ChallengeResponse -> ChallengeResponse -> Ordering
Prelude.Ord,
forall x. Rep ChallengeResponse x -> ChallengeResponse
forall x. ChallengeResponse -> Rep ChallengeResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep ChallengeResponse x -> ChallengeResponse
$cfrom :: forall x. ChallengeResponse -> Rep ChallengeResponse x
Prelude.Generic
)
deriving newtype
( Eq ChallengeResponse
Int -> ChallengeResponse -> Int
ChallengeResponse -> Int
forall a. Eq a -> (Int -> a -> Int) -> (a -> Int) -> Hashable a
hash :: ChallengeResponse -> Int
$chash :: ChallengeResponse -> Int
hashWithSalt :: Int -> ChallengeResponse -> Int
$chashWithSalt :: Int -> ChallengeResponse -> Int
Prelude.Hashable,
ChallengeResponse -> ()
forall a. (a -> ()) -> NFData a
rnf :: ChallengeResponse -> ()
$crnf :: ChallengeResponse -> ()
Prelude.NFData,
Text -> Either String ChallengeResponse
forall a. (Text -> Either String a) -> FromText a
fromText :: Text -> Either String ChallengeResponse
$cfromText :: Text -> Either String ChallengeResponse
Data.FromText,
ChallengeResponse -> Text
forall a. (a -> Text) -> ToText a
toText :: ChallengeResponse -> Text
$ctoText :: ChallengeResponse -> Text
Data.ToText,
ChallengeResponse -> ByteString
forall a. (a -> ByteString) -> ToByteString a
toBS :: ChallengeResponse -> ByteString
$ctoBS :: ChallengeResponse -> ByteString
Data.ToByteString,
ChallengeResponse -> ByteStringBuilder
forall a. (a -> ByteStringBuilder) -> ToLog a
build :: ChallengeResponse -> ByteStringBuilder
$cbuild :: ChallengeResponse -> ByteStringBuilder
Data.ToLog,
HeaderName -> ChallengeResponse -> [Header]
forall a. (HeaderName -> a -> [Header]) -> ToHeader a
toHeader :: HeaderName -> ChallengeResponse -> [Header]
$ctoHeader :: HeaderName -> ChallengeResponse -> [Header]
Data.ToHeader,
ChallengeResponse -> QueryString
forall a. (a -> QueryString) -> ToQuery a
toQuery :: ChallengeResponse -> QueryString
$ctoQuery :: ChallengeResponse -> QueryString
Data.ToQuery,
Value -> Parser [ChallengeResponse]
Value -> Parser ChallengeResponse
forall a.
(Value -> Parser a) -> (Value -> Parser [a]) -> FromJSON a
parseJSONList :: Value -> Parser [ChallengeResponse]
$cparseJSONList :: Value -> Parser [ChallengeResponse]
parseJSON :: Value -> Parser ChallengeResponse
$cparseJSON :: Value -> Parser ChallengeResponse
Data.FromJSON,
FromJSONKeyFunction [ChallengeResponse]
FromJSONKeyFunction ChallengeResponse
forall a.
FromJSONKeyFunction a -> FromJSONKeyFunction [a] -> FromJSONKey a
fromJSONKeyList :: FromJSONKeyFunction [ChallengeResponse]
$cfromJSONKeyList :: FromJSONKeyFunction [ChallengeResponse]
fromJSONKey :: FromJSONKeyFunction ChallengeResponse
$cfromJSONKey :: FromJSONKeyFunction ChallengeResponse
Data.FromJSONKey,
[ChallengeResponse] -> Encoding
[ChallengeResponse] -> Value
ChallengeResponse -> Encoding
ChallengeResponse -> Value
forall a.
(a -> Value)
-> (a -> Encoding)
-> ([a] -> Value)
-> ([a] -> Encoding)
-> ToJSON a
toEncodingList :: [ChallengeResponse] -> Encoding
$ctoEncodingList :: [ChallengeResponse] -> Encoding
toJSONList :: [ChallengeResponse] -> Value
$ctoJSONList :: [ChallengeResponse] -> Value
toEncoding :: ChallengeResponse -> Encoding
$ctoEncoding :: ChallengeResponse -> Encoding
toJSON :: ChallengeResponse -> Value
$ctoJSON :: ChallengeResponse -> Value
Data.ToJSON,
ToJSONKeyFunction [ChallengeResponse]
ToJSONKeyFunction ChallengeResponse
forall a.
ToJSONKeyFunction a -> ToJSONKeyFunction [a] -> ToJSONKey a
toJSONKeyList :: ToJSONKeyFunction [ChallengeResponse]
$ctoJSONKeyList :: ToJSONKeyFunction [ChallengeResponse]
toJSONKey :: ToJSONKeyFunction ChallengeResponse
$ctoJSONKey :: ToJSONKeyFunction ChallengeResponse
Data.ToJSONKey,
[Node] -> Either String ChallengeResponse
forall a. ([Node] -> Either String a) -> FromXML a
parseXML :: [Node] -> Either String ChallengeResponse
$cparseXML :: [Node] -> Either String ChallengeResponse
Data.FromXML,
ChallengeResponse -> XML
forall a. (a -> XML) -> ToXML a
toXML :: ChallengeResponse -> XML
$ctoXML :: ChallengeResponse -> XML
Data.ToXML
)
pattern ChallengeResponse_Failure :: ChallengeResponse
pattern $bChallengeResponse_Failure :: ChallengeResponse
$mChallengeResponse_Failure :: forall {r}. ChallengeResponse -> ((# #) -> r) -> ((# #) -> r) -> r
ChallengeResponse_Failure = ChallengeResponse' "Failure"
pattern ChallengeResponse_Success :: ChallengeResponse
pattern $bChallengeResponse_Success :: ChallengeResponse
$mChallengeResponse_Success :: forall {r}. ChallengeResponse -> ((# #) -> r) -> ((# #) -> r) -> r
ChallengeResponse_Success = ChallengeResponse' "Success"
{-# COMPLETE
ChallengeResponse_Failure,
ChallengeResponse_Success,
ChallengeResponse'
#-}