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