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