{-# 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.VerifiedAttributeType
-- 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.VerifiedAttributeType
  ( VerifiedAttributeType
      ( ..,
        VerifiedAttributeType_Email,
        VerifiedAttributeType_Phone_number
      ),
  )
where

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

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

pattern VerifiedAttributeType_Email :: VerifiedAttributeType
pattern $bVerifiedAttributeType_Email :: VerifiedAttributeType
$mVerifiedAttributeType_Email :: forall {r}.
VerifiedAttributeType -> ((# #) -> r) -> ((# #) -> r) -> r
VerifiedAttributeType_Email = VerifiedAttributeType' "email"

pattern VerifiedAttributeType_Phone_number :: VerifiedAttributeType
pattern $bVerifiedAttributeType_Phone_number :: VerifiedAttributeType
$mVerifiedAttributeType_Phone_number :: forall {r}.
VerifiedAttributeType -> ((# #) -> r) -> ((# #) -> r) -> r
VerifiedAttributeType_Phone_number = VerifiedAttributeType' "phone_number"

{-# COMPLETE
  VerifiedAttributeType_Email,
  VerifiedAttributeType_Phone_number,
  VerifiedAttributeType'
  #-}