{-# 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.AliasAttributeType
-- 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.AliasAttributeType
  ( AliasAttributeType
      ( ..,
        AliasAttributeType_Email,
        AliasAttributeType_Phone_number,
        AliasAttributeType_Preferred_username
      ),
  )
where

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

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

pattern AliasAttributeType_Email :: AliasAttributeType
pattern $bAliasAttributeType_Email :: AliasAttributeType
$mAliasAttributeType_Email :: forall {r}. AliasAttributeType -> ((# #) -> r) -> ((# #) -> r) -> r
AliasAttributeType_Email = AliasAttributeType' "email"

pattern AliasAttributeType_Phone_number :: AliasAttributeType
pattern $bAliasAttributeType_Phone_number :: AliasAttributeType
$mAliasAttributeType_Phone_number :: forall {r}. AliasAttributeType -> ((# #) -> r) -> ((# #) -> r) -> r
AliasAttributeType_Phone_number = AliasAttributeType' "phone_number"

pattern AliasAttributeType_Preferred_username :: AliasAttributeType
pattern $bAliasAttributeType_Preferred_username :: AliasAttributeType
$mAliasAttributeType_Preferred_username :: forall {r}. AliasAttributeType -> ((# #) -> r) -> ((# #) -> r) -> r
AliasAttributeType_Preferred_username = AliasAttributeType' "preferred_username"

{-# COMPLETE
  AliasAttributeType_Email,
  AliasAttributeType_Phone_number,
  AliasAttributeType_Preferred_username,
  AliasAttributeType'
  #-}