{-# 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.ExplicitAuthFlowsType
-- 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.ExplicitAuthFlowsType
  ( ExplicitAuthFlowsType
      ( ..,
        ExplicitAuthFlowsType_ADMIN_NO_SRP_AUTH,
        ExplicitAuthFlowsType_ALLOW_ADMIN_USER_PASSWORD_AUTH,
        ExplicitAuthFlowsType_ALLOW_CUSTOM_AUTH,
        ExplicitAuthFlowsType_ALLOW_REFRESH_TOKEN_AUTH,
        ExplicitAuthFlowsType_ALLOW_USER_PASSWORD_AUTH,
        ExplicitAuthFlowsType_ALLOW_USER_SRP_AUTH,
        ExplicitAuthFlowsType_CUSTOM_AUTH_FLOW_ONLY,
        ExplicitAuthFlowsType_USER_PASSWORD_AUTH
      ),
  )
where

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

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

pattern ExplicitAuthFlowsType_ADMIN_NO_SRP_AUTH :: ExplicitAuthFlowsType
pattern $bExplicitAuthFlowsType_ADMIN_NO_SRP_AUTH :: ExplicitAuthFlowsType
$mExplicitAuthFlowsType_ADMIN_NO_SRP_AUTH :: forall r.
ExplicitAuthFlowsType -> (Void# -> r) -> (Void# -> r) -> r
ExplicitAuthFlowsType_ADMIN_NO_SRP_AUTH = ExplicitAuthFlowsType' "ADMIN_NO_SRP_AUTH"

pattern ExplicitAuthFlowsType_ALLOW_ADMIN_USER_PASSWORD_AUTH :: ExplicitAuthFlowsType
pattern $bExplicitAuthFlowsType_ALLOW_ADMIN_USER_PASSWORD_AUTH :: ExplicitAuthFlowsType
$mExplicitAuthFlowsType_ALLOW_ADMIN_USER_PASSWORD_AUTH :: forall r.
ExplicitAuthFlowsType -> (Void# -> r) -> (Void# -> r) -> r
ExplicitAuthFlowsType_ALLOW_ADMIN_USER_PASSWORD_AUTH = ExplicitAuthFlowsType' "ALLOW_ADMIN_USER_PASSWORD_AUTH"

pattern ExplicitAuthFlowsType_ALLOW_CUSTOM_AUTH :: ExplicitAuthFlowsType
pattern $bExplicitAuthFlowsType_ALLOW_CUSTOM_AUTH :: ExplicitAuthFlowsType
$mExplicitAuthFlowsType_ALLOW_CUSTOM_AUTH :: forall r.
ExplicitAuthFlowsType -> (Void# -> r) -> (Void# -> r) -> r
ExplicitAuthFlowsType_ALLOW_CUSTOM_AUTH = ExplicitAuthFlowsType' "ALLOW_CUSTOM_AUTH"

pattern ExplicitAuthFlowsType_ALLOW_REFRESH_TOKEN_AUTH :: ExplicitAuthFlowsType
pattern $bExplicitAuthFlowsType_ALLOW_REFRESH_TOKEN_AUTH :: ExplicitAuthFlowsType
$mExplicitAuthFlowsType_ALLOW_REFRESH_TOKEN_AUTH :: forall r.
ExplicitAuthFlowsType -> (Void# -> r) -> (Void# -> r) -> r
ExplicitAuthFlowsType_ALLOW_REFRESH_TOKEN_AUTH = ExplicitAuthFlowsType' "ALLOW_REFRESH_TOKEN_AUTH"

pattern ExplicitAuthFlowsType_ALLOW_USER_PASSWORD_AUTH :: ExplicitAuthFlowsType
pattern $bExplicitAuthFlowsType_ALLOW_USER_PASSWORD_AUTH :: ExplicitAuthFlowsType
$mExplicitAuthFlowsType_ALLOW_USER_PASSWORD_AUTH :: forall r.
ExplicitAuthFlowsType -> (Void# -> r) -> (Void# -> r) -> r
ExplicitAuthFlowsType_ALLOW_USER_PASSWORD_AUTH = ExplicitAuthFlowsType' "ALLOW_USER_PASSWORD_AUTH"

pattern ExplicitAuthFlowsType_ALLOW_USER_SRP_AUTH :: ExplicitAuthFlowsType
pattern $bExplicitAuthFlowsType_ALLOW_USER_SRP_AUTH :: ExplicitAuthFlowsType
$mExplicitAuthFlowsType_ALLOW_USER_SRP_AUTH :: forall r.
ExplicitAuthFlowsType -> (Void# -> r) -> (Void# -> r) -> r
ExplicitAuthFlowsType_ALLOW_USER_SRP_AUTH = ExplicitAuthFlowsType' "ALLOW_USER_SRP_AUTH"

pattern ExplicitAuthFlowsType_CUSTOM_AUTH_FLOW_ONLY :: ExplicitAuthFlowsType
pattern $bExplicitAuthFlowsType_CUSTOM_AUTH_FLOW_ONLY :: ExplicitAuthFlowsType
$mExplicitAuthFlowsType_CUSTOM_AUTH_FLOW_ONLY :: forall r.
ExplicitAuthFlowsType -> (Void# -> r) -> (Void# -> r) -> r
ExplicitAuthFlowsType_CUSTOM_AUTH_FLOW_ONLY = ExplicitAuthFlowsType' "CUSTOM_AUTH_FLOW_ONLY"

pattern ExplicitAuthFlowsType_USER_PASSWORD_AUTH :: ExplicitAuthFlowsType
pattern $bExplicitAuthFlowsType_USER_PASSWORD_AUTH :: ExplicitAuthFlowsType
$mExplicitAuthFlowsType_USER_PASSWORD_AUTH :: forall r.
ExplicitAuthFlowsType -> (Void# -> r) -> (Void# -> r) -> r
ExplicitAuthFlowsType_USER_PASSWORD_AUTH = ExplicitAuthFlowsType' "USER_PASSWORD_AUTH"

{-# COMPLETE
  ExplicitAuthFlowsType_ADMIN_NO_SRP_AUTH,
  ExplicitAuthFlowsType_ALLOW_ADMIN_USER_PASSWORD_AUTH,
  ExplicitAuthFlowsType_ALLOW_CUSTOM_AUTH,
  ExplicitAuthFlowsType_ALLOW_REFRESH_TOKEN_AUTH,
  ExplicitAuthFlowsType_ALLOW_USER_PASSWORD_AUTH,
  ExplicitAuthFlowsType_ALLOW_USER_SRP_AUTH,
  ExplicitAuthFlowsType_CUSTOM_AUTH_FLOW_ONLY,
  ExplicitAuthFlowsType_USER_PASSWORD_AUTH,
  ExplicitAuthFlowsType'
  #-}