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