{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE DerivingStrategies #-}
{-# LANGUAGE GeneralizedNewtypeDeriving #-}
{-# LANGUAGE LambdaCase #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE PatternSynonyms #-}
{-# LANGUAGE StrictData #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# OPTIONS_GHC -fno-warn-unused-imports #-}

-- Derived from AWS service descriptions, licensed under Apache 2.0.

-- |
-- Module      : Amazonka.CognitoIdentityProvider.Types.UserPoolMfaType
-- Copyright   : (c) 2013-2023 Brendan Hay
-- License     : Mozilla Public License, v. 2.0.
-- Maintainer  : Brendan Hay
-- Stability   : auto-generated
-- Portability : non-portable (GHC extensions)
module Amazonka.CognitoIdentityProvider.Types.UserPoolMfaType
  ( UserPoolMfaType
      ( ..,
        UserPoolMfaType_OFF,
        UserPoolMfaType_ON,
        UserPoolMfaType_OPTIONAL
      ),
  )
where

import qualified Amazonka.Core as Core
import qualified Amazonka.Data as Data
import qualified Amazonka.Prelude as Prelude

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

pattern UserPoolMfaType_OFF :: UserPoolMfaType
pattern $bUserPoolMfaType_OFF :: UserPoolMfaType
$mUserPoolMfaType_OFF :: forall {r}. UserPoolMfaType -> ((# #) -> r) -> ((# #) -> r) -> r
UserPoolMfaType_OFF = UserPoolMfaType' "OFF"

pattern UserPoolMfaType_ON :: UserPoolMfaType
pattern $bUserPoolMfaType_ON :: UserPoolMfaType
$mUserPoolMfaType_ON :: forall {r}. UserPoolMfaType -> ((# #) -> r) -> ((# #) -> r) -> r
UserPoolMfaType_ON = UserPoolMfaType' "ON"

pattern UserPoolMfaType_OPTIONAL :: UserPoolMfaType
pattern $bUserPoolMfaType_OPTIONAL :: UserPoolMfaType
$mUserPoolMfaType_OPTIONAL :: forall {r}. UserPoolMfaType -> ((# #) -> r) -> ((# #) -> r) -> r
UserPoolMfaType_OPTIONAL = UserPoolMfaType' "OPTIONAL"

{-# COMPLETE
  UserPoolMfaType_OFF,
  UserPoolMfaType_ON,
  UserPoolMfaType_OPTIONAL,
  UserPoolMfaType'
  #-}