{-# 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.CustomSMSSenderLambdaVersionType
-- 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.CustomSMSSenderLambdaVersionType
  ( CustomSMSSenderLambdaVersionType
      ( ..,
        CustomSMSSenderLambdaVersionType_V1_0
      ),
  )
where

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

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

pattern CustomSMSSenderLambdaVersionType_V1_0 :: CustomSMSSenderLambdaVersionType
pattern $bCustomSMSSenderLambdaVersionType_V1_0 :: CustomSMSSenderLambdaVersionType
$mCustomSMSSenderLambdaVersionType_V1_0 :: forall {r}.
CustomSMSSenderLambdaVersionType
-> ((# #) -> r) -> ((# #) -> r) -> r
CustomSMSSenderLambdaVersionType_V1_0 = CustomSMSSenderLambdaVersionType' "V1_0"

{-# COMPLETE
  CustomSMSSenderLambdaVersionType_V1_0,
  CustomSMSSenderLambdaVersionType'
  #-}