{-# 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-2021 Brendan Hay
-- License     : Mozilla Public License, v. 2.0.
-- Maintainer  : Brendan Hay <brendan.g.hay+amazonka@gmail.com>
-- 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.Prelude as Prelude

newtype UserPoolMfaType = UserPoolMfaType'
  { UserPoolMfaType -> Text
fromUserPoolMfaType ::
      Core.Text
  }
  deriving stock
    ( Int -> UserPoolMfaType -> ShowS
[UserPoolMfaType] -> ShowS
UserPoolMfaType -> String
(Int -> UserPoolMfaType -> ShowS)
-> (UserPoolMfaType -> String)
-> ([UserPoolMfaType] -> ShowS)
-> Show UserPoolMfaType
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]
(Int -> ReadS UserPoolMfaType)
-> ReadS [UserPoolMfaType]
-> ReadPrec UserPoolMfaType
-> ReadPrec [UserPoolMfaType]
-> Read 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
(UserPoolMfaType -> UserPoolMfaType -> Bool)
-> (UserPoolMfaType -> UserPoolMfaType -> Bool)
-> Eq UserPoolMfaType
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
Eq UserPoolMfaType
-> (UserPoolMfaType -> UserPoolMfaType -> Ordering)
-> (UserPoolMfaType -> UserPoolMfaType -> Bool)
-> (UserPoolMfaType -> UserPoolMfaType -> Bool)
-> (UserPoolMfaType -> UserPoolMfaType -> Bool)
-> (UserPoolMfaType -> UserPoolMfaType -> Bool)
-> (UserPoolMfaType -> UserPoolMfaType -> UserPoolMfaType)
-> (UserPoolMfaType -> UserPoolMfaType -> UserPoolMfaType)
-> Ord 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
$cp1Ord :: Eq UserPoolMfaType
Prelude.Ord,
      (forall x. UserPoolMfaType -> Rep UserPoolMfaType x)
-> (forall x. Rep UserPoolMfaType x -> UserPoolMfaType)
-> Generic UserPoolMfaType
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
    ( Int -> UserPoolMfaType -> Int
UserPoolMfaType -> Int
(Int -> UserPoolMfaType -> Int)
-> (UserPoolMfaType -> Int) -> Hashable UserPoolMfaType
forall 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 -> ()
(UserPoolMfaType -> ()) -> NFData UserPoolMfaType
forall a. (a -> ()) -> NFData a
rnf :: UserPoolMfaType -> ()
$crnf :: UserPoolMfaType -> ()
Prelude.NFData,
      Text -> Either String UserPoolMfaType
(Text -> Either String UserPoolMfaType) -> FromText UserPoolMfaType
forall a. (Text -> Either String a) -> FromText a
fromText :: Text -> Either String UserPoolMfaType
$cfromText :: Text -> Either String UserPoolMfaType
Core.FromText,
      UserPoolMfaType -> Text
(UserPoolMfaType -> Text) -> ToText UserPoolMfaType
forall a. (a -> Text) -> ToText a
toText :: UserPoolMfaType -> Text
$ctoText :: UserPoolMfaType -> Text
Core.ToText,
      UserPoolMfaType -> ByteString
(UserPoolMfaType -> ByteString) -> ToByteString UserPoolMfaType
forall a. (a -> ByteString) -> ToByteString a
toBS :: UserPoolMfaType -> ByteString
$ctoBS :: UserPoolMfaType -> ByteString
Core.ToByteString,
      UserPoolMfaType -> ByteStringBuilder
(UserPoolMfaType -> ByteStringBuilder) -> ToLog UserPoolMfaType
forall a. (a -> ByteStringBuilder) -> ToLog a
build :: UserPoolMfaType -> ByteStringBuilder
$cbuild :: UserPoolMfaType -> ByteStringBuilder
Core.ToLog,
      HeaderName -> UserPoolMfaType -> [Header]
(HeaderName -> UserPoolMfaType -> [Header])
-> ToHeader UserPoolMfaType
forall a. (HeaderName -> a -> [Header]) -> ToHeader a
toHeader :: HeaderName -> UserPoolMfaType -> [Header]
$ctoHeader :: HeaderName -> UserPoolMfaType -> [Header]
Core.ToHeader,
      UserPoolMfaType -> QueryString
(UserPoolMfaType -> QueryString) -> ToQuery UserPoolMfaType
forall a. (a -> QueryString) -> ToQuery a
toQuery :: UserPoolMfaType -> QueryString
$ctoQuery :: UserPoolMfaType -> QueryString
Core.ToQuery,
      Value -> Parser [UserPoolMfaType]
Value -> Parser UserPoolMfaType
(Value -> Parser UserPoolMfaType)
-> (Value -> Parser [UserPoolMfaType]) -> FromJSON 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
Core.FromJSON,
      FromJSONKeyFunction [UserPoolMfaType]
FromJSONKeyFunction UserPoolMfaType
FromJSONKeyFunction UserPoolMfaType
-> FromJSONKeyFunction [UserPoolMfaType]
-> FromJSONKey UserPoolMfaType
forall a.
FromJSONKeyFunction a -> FromJSONKeyFunction [a] -> FromJSONKey a
fromJSONKeyList :: FromJSONKeyFunction [UserPoolMfaType]
$cfromJSONKeyList :: FromJSONKeyFunction [UserPoolMfaType]
fromJSONKey :: FromJSONKeyFunction UserPoolMfaType
$cfromJSONKey :: FromJSONKeyFunction UserPoolMfaType
Core.FromJSONKey,
      [UserPoolMfaType] -> Encoding
[UserPoolMfaType] -> Value
UserPoolMfaType -> Encoding
UserPoolMfaType -> Value
(UserPoolMfaType -> Value)
-> (UserPoolMfaType -> Encoding)
-> ([UserPoolMfaType] -> Value)
-> ([UserPoolMfaType] -> Encoding)
-> ToJSON UserPoolMfaType
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
Core.ToJSON,
      ToJSONKeyFunction [UserPoolMfaType]
ToJSONKeyFunction UserPoolMfaType
ToJSONKeyFunction UserPoolMfaType
-> ToJSONKeyFunction [UserPoolMfaType] -> ToJSONKey UserPoolMfaType
forall a.
ToJSONKeyFunction a -> ToJSONKeyFunction [a] -> ToJSONKey a
toJSONKeyList :: ToJSONKeyFunction [UserPoolMfaType]
$ctoJSONKeyList :: ToJSONKeyFunction [UserPoolMfaType]
toJSONKey :: ToJSONKeyFunction UserPoolMfaType
$ctoJSONKey :: ToJSONKeyFunction UserPoolMfaType
Core.ToJSONKey,
      [Node] -> Either String UserPoolMfaType
([Node] -> Either String UserPoolMfaType)
-> FromXML UserPoolMfaType
forall a. ([Node] -> Either String a) -> FromXML a
parseXML :: [Node] -> Either String UserPoolMfaType
$cparseXML :: [Node] -> Either String UserPoolMfaType
Core.FromXML,
      UserPoolMfaType -> XML
(UserPoolMfaType -> XML) -> ToXML UserPoolMfaType
forall a. (a -> XML) -> ToXML a
toXML :: UserPoolMfaType -> XML
$ctoXML :: UserPoolMfaType -> XML
Core.ToXML
    )

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

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

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

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