{-# 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.CustomEmailSenderLambdaVersionType
-- 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.CustomEmailSenderLambdaVersionType
  ( CustomEmailSenderLambdaVersionType
      ( ..,
        CustomEmailSenderLambdaVersionType_V1_0
      ),
  )
where

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

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

pattern CustomEmailSenderLambdaVersionType_V1_0 :: CustomEmailSenderLambdaVersionType
pattern $bCustomEmailSenderLambdaVersionType_V1_0 :: CustomEmailSenderLambdaVersionType
$mCustomEmailSenderLambdaVersionType_V1_0 :: forall {r}.
CustomEmailSenderLambdaVersionType
-> ((# #) -> r) -> ((# #) -> r) -> r
CustomEmailSenderLambdaVersionType_V1_0 = CustomEmailSenderLambdaVersionType' "V1_0"

{-# COMPLETE
  CustomEmailSenderLambdaVersionType_V1_0,
  CustomEmailSenderLambdaVersionType'
  #-}