{-# 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.GreengrassV2.Types.LambdaEventSourceType
-- Copyright   : (c) 2013-2021 Brendan Hay
-- License     : Mozilla Public License, v. 2.0.
-- Maintainer  : Brendan Hay <brendan.g.hay+amazonka@gmail.com>
-- Stability   : auto-generated
-- Portability : non-portable (GHC extensions)
module Amazonka.GreengrassV2.Types.LambdaEventSourceType
  ( LambdaEventSourceType
      ( ..,
        LambdaEventSourceType_IOT_CORE,
        LambdaEventSourceType_PUB_SUB
      ),
  )
where

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

newtype LambdaEventSourceType = LambdaEventSourceType'
  { LambdaEventSourceType -> Text
fromLambdaEventSourceType ::
      Core.Text
  }
  deriving stock
    ( Int -> LambdaEventSourceType -> ShowS
[LambdaEventSourceType] -> ShowS
LambdaEventSourceType -> String
(Int -> LambdaEventSourceType -> ShowS)
-> (LambdaEventSourceType -> String)
-> ([LambdaEventSourceType] -> ShowS)
-> Show LambdaEventSourceType
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]
(Int -> ReadS LambdaEventSourceType)
-> ReadS [LambdaEventSourceType]
-> ReadPrec LambdaEventSourceType
-> ReadPrec [LambdaEventSourceType]
-> Read 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
(LambdaEventSourceType -> LambdaEventSourceType -> Bool)
-> (LambdaEventSourceType -> LambdaEventSourceType -> Bool)
-> Eq LambdaEventSourceType
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
Eq LambdaEventSourceType
-> (LambdaEventSourceType -> LambdaEventSourceType -> Ordering)
-> (LambdaEventSourceType -> LambdaEventSourceType -> Bool)
-> (LambdaEventSourceType -> LambdaEventSourceType -> Bool)
-> (LambdaEventSourceType -> LambdaEventSourceType -> Bool)
-> (LambdaEventSourceType -> LambdaEventSourceType -> Bool)
-> (LambdaEventSourceType
    -> LambdaEventSourceType -> LambdaEventSourceType)
-> (LambdaEventSourceType
    -> LambdaEventSourceType -> LambdaEventSourceType)
-> Ord 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
$cp1Ord :: Eq LambdaEventSourceType
Prelude.Ord,
      (forall x. LambdaEventSourceType -> Rep LambdaEventSourceType x)
-> (forall x. Rep LambdaEventSourceType x -> LambdaEventSourceType)
-> Generic LambdaEventSourceType
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
    ( Int -> LambdaEventSourceType -> Int
LambdaEventSourceType -> Int
(Int -> LambdaEventSourceType -> Int)
-> (LambdaEventSourceType -> Int) -> Hashable LambdaEventSourceType
forall 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 -> ()
(LambdaEventSourceType -> ()) -> NFData LambdaEventSourceType
forall a. (a -> ()) -> NFData a
rnf :: LambdaEventSourceType -> ()
$crnf :: LambdaEventSourceType -> ()
Prelude.NFData,
      Text -> Either String LambdaEventSourceType
(Text -> Either String LambdaEventSourceType)
-> FromText LambdaEventSourceType
forall a. (Text -> Either String a) -> FromText a
fromText :: Text -> Either String LambdaEventSourceType
$cfromText :: Text -> Either String LambdaEventSourceType
Core.FromText,
      LambdaEventSourceType -> Text
(LambdaEventSourceType -> Text) -> ToText LambdaEventSourceType
forall a. (a -> Text) -> ToText a
toText :: LambdaEventSourceType -> Text
$ctoText :: LambdaEventSourceType -> Text
Core.ToText,
      LambdaEventSourceType -> ByteString
(LambdaEventSourceType -> ByteString)
-> ToByteString LambdaEventSourceType
forall a. (a -> ByteString) -> ToByteString a
toBS :: LambdaEventSourceType -> ByteString
$ctoBS :: LambdaEventSourceType -> ByteString
Core.ToByteString,
      LambdaEventSourceType -> ByteStringBuilder
(LambdaEventSourceType -> ByteStringBuilder)
-> ToLog LambdaEventSourceType
forall a. (a -> ByteStringBuilder) -> ToLog a
build :: LambdaEventSourceType -> ByteStringBuilder
$cbuild :: LambdaEventSourceType -> ByteStringBuilder
Core.ToLog,
      HeaderName -> LambdaEventSourceType -> [Header]
(HeaderName -> LambdaEventSourceType -> [Header])
-> ToHeader LambdaEventSourceType
forall a. (HeaderName -> a -> [Header]) -> ToHeader a
toHeader :: HeaderName -> LambdaEventSourceType -> [Header]
$ctoHeader :: HeaderName -> LambdaEventSourceType -> [Header]
Core.ToHeader,
      LambdaEventSourceType -> QueryString
(LambdaEventSourceType -> QueryString)
-> ToQuery LambdaEventSourceType
forall a. (a -> QueryString) -> ToQuery a
toQuery :: LambdaEventSourceType -> QueryString
$ctoQuery :: LambdaEventSourceType -> QueryString
Core.ToQuery,
      Value -> Parser [LambdaEventSourceType]
Value -> Parser LambdaEventSourceType
(Value -> Parser LambdaEventSourceType)
-> (Value -> Parser [LambdaEventSourceType])
-> FromJSON 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
Core.FromJSON,
      FromJSONKeyFunction [LambdaEventSourceType]
FromJSONKeyFunction LambdaEventSourceType
FromJSONKeyFunction LambdaEventSourceType
-> FromJSONKeyFunction [LambdaEventSourceType]
-> FromJSONKey LambdaEventSourceType
forall a.
FromJSONKeyFunction a -> FromJSONKeyFunction [a] -> FromJSONKey a
fromJSONKeyList :: FromJSONKeyFunction [LambdaEventSourceType]
$cfromJSONKeyList :: FromJSONKeyFunction [LambdaEventSourceType]
fromJSONKey :: FromJSONKeyFunction LambdaEventSourceType
$cfromJSONKey :: FromJSONKeyFunction LambdaEventSourceType
Core.FromJSONKey,
      [LambdaEventSourceType] -> Encoding
[LambdaEventSourceType] -> Value
LambdaEventSourceType -> Encoding
LambdaEventSourceType -> Value
(LambdaEventSourceType -> Value)
-> (LambdaEventSourceType -> Encoding)
-> ([LambdaEventSourceType] -> Value)
-> ([LambdaEventSourceType] -> Encoding)
-> ToJSON LambdaEventSourceType
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
Core.ToJSON,
      ToJSONKeyFunction [LambdaEventSourceType]
ToJSONKeyFunction LambdaEventSourceType
ToJSONKeyFunction LambdaEventSourceType
-> ToJSONKeyFunction [LambdaEventSourceType]
-> ToJSONKey LambdaEventSourceType
forall a.
ToJSONKeyFunction a -> ToJSONKeyFunction [a] -> ToJSONKey a
toJSONKeyList :: ToJSONKeyFunction [LambdaEventSourceType]
$ctoJSONKeyList :: ToJSONKeyFunction [LambdaEventSourceType]
toJSONKey :: ToJSONKeyFunction LambdaEventSourceType
$ctoJSONKey :: ToJSONKeyFunction LambdaEventSourceType
Core.ToJSONKey,
      [Node] -> Either String LambdaEventSourceType
([Node] -> Either String LambdaEventSourceType)
-> FromXML LambdaEventSourceType
forall a. ([Node] -> Either String a) -> FromXML a
parseXML :: [Node] -> Either String LambdaEventSourceType
$cparseXML :: [Node] -> Either String LambdaEventSourceType
Core.FromXML,
      LambdaEventSourceType -> XML
(LambdaEventSourceType -> XML) -> ToXML LambdaEventSourceType
forall a. (a -> XML) -> ToXML a
toXML :: LambdaEventSourceType -> XML
$ctoXML :: LambdaEventSourceType -> XML
Core.ToXML
    )

pattern LambdaEventSourceType_IOT_CORE :: LambdaEventSourceType
pattern $bLambdaEventSourceType_IOT_CORE :: LambdaEventSourceType
$mLambdaEventSourceType_IOT_CORE :: forall r.
LambdaEventSourceType -> (Void# -> r) -> (Void# -> r) -> r
LambdaEventSourceType_IOT_CORE = LambdaEventSourceType' "IOT_CORE"

pattern LambdaEventSourceType_PUB_SUB :: LambdaEventSourceType
pattern $bLambdaEventSourceType_PUB_SUB :: LambdaEventSourceType
$mLambdaEventSourceType_PUB_SUB :: forall r.
LambdaEventSourceType -> (Void# -> r) -> (Void# -> r) -> r
LambdaEventSourceType_PUB_SUB = LambdaEventSourceType' "PUB_SUB"

{-# COMPLETE
  LambdaEventSourceType_IOT_CORE,
  LambdaEventSourceType_PUB_SUB,
  LambdaEventSourceType'
  #-}