{-# 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.IdentityProviderTypeType
-- 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.IdentityProviderTypeType
  ( IdentityProviderTypeType
      ( ..,
        IdentityProviderTypeType_Facebook,
        IdentityProviderTypeType_Google,
        IdentityProviderTypeType_LoginWithAmazon,
        IdentityProviderTypeType_OIDC,
        IdentityProviderTypeType_SAML,
        IdentityProviderTypeType_SignInWithApple
      ),
  )
where

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

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

pattern IdentityProviderTypeType_Facebook :: IdentityProviderTypeType
pattern $bIdentityProviderTypeType_Facebook :: IdentityProviderTypeType
$mIdentityProviderTypeType_Facebook :: forall r.
IdentityProviderTypeType -> (Void# -> r) -> (Void# -> r) -> r
IdentityProviderTypeType_Facebook = IdentityProviderTypeType' "Facebook"

pattern IdentityProviderTypeType_Google :: IdentityProviderTypeType
pattern $bIdentityProviderTypeType_Google :: IdentityProviderTypeType
$mIdentityProviderTypeType_Google :: forall r.
IdentityProviderTypeType -> (Void# -> r) -> (Void# -> r) -> r
IdentityProviderTypeType_Google = IdentityProviderTypeType' "Google"

pattern IdentityProviderTypeType_LoginWithAmazon :: IdentityProviderTypeType
pattern $bIdentityProviderTypeType_LoginWithAmazon :: IdentityProviderTypeType
$mIdentityProviderTypeType_LoginWithAmazon :: forall r.
IdentityProviderTypeType -> (Void# -> r) -> (Void# -> r) -> r
IdentityProviderTypeType_LoginWithAmazon = IdentityProviderTypeType' "LoginWithAmazon"

pattern IdentityProviderTypeType_OIDC :: IdentityProviderTypeType
pattern $bIdentityProviderTypeType_OIDC :: IdentityProviderTypeType
$mIdentityProviderTypeType_OIDC :: forall r.
IdentityProviderTypeType -> (Void# -> r) -> (Void# -> r) -> r
IdentityProviderTypeType_OIDC = IdentityProviderTypeType' "OIDC"

pattern IdentityProviderTypeType_SAML :: IdentityProviderTypeType
pattern $bIdentityProviderTypeType_SAML :: IdentityProviderTypeType
$mIdentityProviderTypeType_SAML :: forall r.
IdentityProviderTypeType -> (Void# -> r) -> (Void# -> r) -> r
IdentityProviderTypeType_SAML = IdentityProviderTypeType' "SAML"

pattern IdentityProviderTypeType_SignInWithApple :: IdentityProviderTypeType
pattern $bIdentityProviderTypeType_SignInWithApple :: IdentityProviderTypeType
$mIdentityProviderTypeType_SignInWithApple :: forall r.
IdentityProviderTypeType -> (Void# -> r) -> (Void# -> r) -> r
IdentityProviderTypeType_SignInWithApple = IdentityProviderTypeType' "SignInWithApple"

{-# COMPLETE
  IdentityProviderTypeType_Facebook,
  IdentityProviderTypeType_Google,
  IdentityProviderTypeType_LoginWithAmazon,
  IdentityProviderTypeType_OIDC,
  IdentityProviderTypeType_SAML,
  IdentityProviderTypeType_SignInWithApple,
  IdentityProviderTypeType'
  #-}