{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE DerivingStrategies #-}
{-# LANGUAGE GeneralizedNewtypeDeriving #-}
{-# LANGUAGE LambdaCase #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE PatternSynonyms #-}
{-# LANGUAGE StrictData #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# OPTIONS_GHC -fno-warn-unused-imports #-}
module Amazonka.Lambda.Types.FunctionUrlAuthType
( FunctionUrlAuthType
( ..,
FunctionUrlAuthType_AWS_IAM,
FunctionUrlAuthType_NONE
),
)
where
import qualified Amazonka.Core as Core
import qualified Amazonka.Data as Data
import qualified Amazonka.Prelude as Prelude
newtype FunctionUrlAuthType = FunctionUrlAuthType'
{ FunctionUrlAuthType -> Text
fromFunctionUrlAuthType ::
Data.Text
}
deriving stock
( Int -> FunctionUrlAuthType -> ShowS
[FunctionUrlAuthType] -> ShowS
FunctionUrlAuthType -> String
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [FunctionUrlAuthType] -> ShowS
$cshowList :: [FunctionUrlAuthType] -> ShowS
show :: FunctionUrlAuthType -> String
$cshow :: FunctionUrlAuthType -> String
showsPrec :: Int -> FunctionUrlAuthType -> ShowS
$cshowsPrec :: Int -> FunctionUrlAuthType -> ShowS
Prelude.Show,
ReadPrec [FunctionUrlAuthType]
ReadPrec FunctionUrlAuthType
Int -> ReadS FunctionUrlAuthType
ReadS [FunctionUrlAuthType]
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [FunctionUrlAuthType]
$creadListPrec :: ReadPrec [FunctionUrlAuthType]
readPrec :: ReadPrec FunctionUrlAuthType
$creadPrec :: ReadPrec FunctionUrlAuthType
readList :: ReadS [FunctionUrlAuthType]
$creadList :: ReadS [FunctionUrlAuthType]
readsPrec :: Int -> ReadS FunctionUrlAuthType
$creadsPrec :: Int -> ReadS FunctionUrlAuthType
Prelude.Read,
FunctionUrlAuthType -> FunctionUrlAuthType -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: FunctionUrlAuthType -> FunctionUrlAuthType -> Bool
$c/= :: FunctionUrlAuthType -> FunctionUrlAuthType -> Bool
== :: FunctionUrlAuthType -> FunctionUrlAuthType -> Bool
$c== :: FunctionUrlAuthType -> FunctionUrlAuthType -> Bool
Prelude.Eq,
Eq FunctionUrlAuthType
FunctionUrlAuthType -> FunctionUrlAuthType -> Bool
FunctionUrlAuthType -> FunctionUrlAuthType -> Ordering
FunctionUrlAuthType -> FunctionUrlAuthType -> FunctionUrlAuthType
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 :: FunctionUrlAuthType -> FunctionUrlAuthType -> FunctionUrlAuthType
$cmin :: FunctionUrlAuthType -> FunctionUrlAuthType -> FunctionUrlAuthType
max :: FunctionUrlAuthType -> FunctionUrlAuthType -> FunctionUrlAuthType
$cmax :: FunctionUrlAuthType -> FunctionUrlAuthType -> FunctionUrlAuthType
>= :: FunctionUrlAuthType -> FunctionUrlAuthType -> Bool
$c>= :: FunctionUrlAuthType -> FunctionUrlAuthType -> Bool
> :: FunctionUrlAuthType -> FunctionUrlAuthType -> Bool
$c> :: FunctionUrlAuthType -> FunctionUrlAuthType -> Bool
<= :: FunctionUrlAuthType -> FunctionUrlAuthType -> Bool
$c<= :: FunctionUrlAuthType -> FunctionUrlAuthType -> Bool
< :: FunctionUrlAuthType -> FunctionUrlAuthType -> Bool
$c< :: FunctionUrlAuthType -> FunctionUrlAuthType -> Bool
compare :: FunctionUrlAuthType -> FunctionUrlAuthType -> Ordering
$ccompare :: FunctionUrlAuthType -> FunctionUrlAuthType -> Ordering
Prelude.Ord,
forall x. Rep FunctionUrlAuthType x -> FunctionUrlAuthType
forall x. FunctionUrlAuthType -> Rep FunctionUrlAuthType x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep FunctionUrlAuthType x -> FunctionUrlAuthType
$cfrom :: forall x. FunctionUrlAuthType -> Rep FunctionUrlAuthType x
Prelude.Generic
)
deriving newtype
( Eq FunctionUrlAuthType
Int -> FunctionUrlAuthType -> Int
FunctionUrlAuthType -> Int
forall a. Eq a -> (Int -> a -> Int) -> (a -> Int) -> Hashable a
hash :: FunctionUrlAuthType -> Int
$chash :: FunctionUrlAuthType -> Int
hashWithSalt :: Int -> FunctionUrlAuthType -> Int
$chashWithSalt :: Int -> FunctionUrlAuthType -> Int
Prelude.Hashable,
FunctionUrlAuthType -> ()
forall a. (a -> ()) -> NFData a
rnf :: FunctionUrlAuthType -> ()
$crnf :: FunctionUrlAuthType -> ()
Prelude.NFData,
Text -> Either String FunctionUrlAuthType
forall a. (Text -> Either String a) -> FromText a
fromText :: Text -> Either String FunctionUrlAuthType
$cfromText :: Text -> Either String FunctionUrlAuthType
Data.FromText,
FunctionUrlAuthType -> Text
forall a. (a -> Text) -> ToText a
toText :: FunctionUrlAuthType -> Text
$ctoText :: FunctionUrlAuthType -> Text
Data.ToText,
FunctionUrlAuthType -> ByteString
forall a. (a -> ByteString) -> ToByteString a
toBS :: FunctionUrlAuthType -> ByteString
$ctoBS :: FunctionUrlAuthType -> ByteString
Data.ToByteString,
FunctionUrlAuthType -> ByteStringBuilder
forall a. (a -> ByteStringBuilder) -> ToLog a
build :: FunctionUrlAuthType -> ByteStringBuilder
$cbuild :: FunctionUrlAuthType -> ByteStringBuilder
Data.ToLog,
HeaderName -> FunctionUrlAuthType -> [Header]
forall a. (HeaderName -> a -> [Header]) -> ToHeader a
toHeader :: HeaderName -> FunctionUrlAuthType -> [Header]
$ctoHeader :: HeaderName -> FunctionUrlAuthType -> [Header]
Data.ToHeader,
FunctionUrlAuthType -> QueryString
forall a. (a -> QueryString) -> ToQuery a
toQuery :: FunctionUrlAuthType -> QueryString
$ctoQuery :: FunctionUrlAuthType -> QueryString
Data.ToQuery,
Value -> Parser [FunctionUrlAuthType]
Value -> Parser FunctionUrlAuthType
forall a.
(Value -> Parser a) -> (Value -> Parser [a]) -> FromJSON a
parseJSONList :: Value -> Parser [FunctionUrlAuthType]
$cparseJSONList :: Value -> Parser [FunctionUrlAuthType]
parseJSON :: Value -> Parser FunctionUrlAuthType
$cparseJSON :: Value -> Parser FunctionUrlAuthType
Data.FromJSON,
FromJSONKeyFunction [FunctionUrlAuthType]
FromJSONKeyFunction FunctionUrlAuthType
forall a.
FromJSONKeyFunction a -> FromJSONKeyFunction [a] -> FromJSONKey a
fromJSONKeyList :: FromJSONKeyFunction [FunctionUrlAuthType]
$cfromJSONKeyList :: FromJSONKeyFunction [FunctionUrlAuthType]
fromJSONKey :: FromJSONKeyFunction FunctionUrlAuthType
$cfromJSONKey :: FromJSONKeyFunction FunctionUrlAuthType
Data.FromJSONKey,
[FunctionUrlAuthType] -> Encoding
[FunctionUrlAuthType] -> Value
FunctionUrlAuthType -> Encoding
FunctionUrlAuthType -> Value
forall a.
(a -> Value)
-> (a -> Encoding)
-> ([a] -> Value)
-> ([a] -> Encoding)
-> ToJSON a
toEncodingList :: [FunctionUrlAuthType] -> Encoding
$ctoEncodingList :: [FunctionUrlAuthType] -> Encoding
toJSONList :: [FunctionUrlAuthType] -> Value
$ctoJSONList :: [FunctionUrlAuthType] -> Value
toEncoding :: FunctionUrlAuthType -> Encoding
$ctoEncoding :: FunctionUrlAuthType -> Encoding
toJSON :: FunctionUrlAuthType -> Value
$ctoJSON :: FunctionUrlAuthType -> Value
Data.ToJSON,
ToJSONKeyFunction [FunctionUrlAuthType]
ToJSONKeyFunction FunctionUrlAuthType
forall a.
ToJSONKeyFunction a -> ToJSONKeyFunction [a] -> ToJSONKey a
toJSONKeyList :: ToJSONKeyFunction [FunctionUrlAuthType]
$ctoJSONKeyList :: ToJSONKeyFunction [FunctionUrlAuthType]
toJSONKey :: ToJSONKeyFunction FunctionUrlAuthType
$ctoJSONKey :: ToJSONKeyFunction FunctionUrlAuthType
Data.ToJSONKey,
[Node] -> Either String FunctionUrlAuthType
forall a. ([Node] -> Either String a) -> FromXML a
parseXML :: [Node] -> Either String FunctionUrlAuthType
$cparseXML :: [Node] -> Either String FunctionUrlAuthType
Data.FromXML,
FunctionUrlAuthType -> XML
forall a. (a -> XML) -> ToXML a
toXML :: FunctionUrlAuthType -> XML
$ctoXML :: FunctionUrlAuthType -> XML
Data.ToXML
)
pattern FunctionUrlAuthType_AWS_IAM :: FunctionUrlAuthType
pattern $bFunctionUrlAuthType_AWS_IAM :: FunctionUrlAuthType
$mFunctionUrlAuthType_AWS_IAM :: forall {r}.
FunctionUrlAuthType -> ((# #) -> r) -> ((# #) -> r) -> r
FunctionUrlAuthType_AWS_IAM = FunctionUrlAuthType' "AWS_IAM"
pattern FunctionUrlAuthType_NONE :: FunctionUrlAuthType
pattern $bFunctionUrlAuthType_NONE :: FunctionUrlAuthType
$mFunctionUrlAuthType_NONE :: forall {r}.
FunctionUrlAuthType -> ((# #) -> r) -> ((# #) -> r) -> r
FunctionUrlAuthType_NONE = FunctionUrlAuthType' "NONE"
{-# COMPLETE
FunctionUrlAuthType_AWS_IAM,
FunctionUrlAuthType_NONE,
FunctionUrlAuthType'
#-}