{-# 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.SES.Types.InvocationType
-- 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.SES.Types.InvocationType
  ( InvocationType
      ( ..,
        InvocationType_Event,
        InvocationType_RequestResponse
      ),
  )
where

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

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

pattern InvocationType_Event :: InvocationType
pattern $bInvocationType_Event :: InvocationType
$mInvocationType_Event :: forall r. InvocationType -> (Void# -> r) -> (Void# -> r) -> r
InvocationType_Event = InvocationType' "Event"

pattern InvocationType_RequestResponse :: InvocationType
pattern $bInvocationType_RequestResponse :: InvocationType
$mInvocationType_RequestResponse :: forall r. InvocationType -> (Void# -> r) -> (Void# -> r) -> r
InvocationType_RequestResponse = InvocationType' "RequestResponse"

{-# COMPLETE
  InvocationType_Event,
  InvocationType_RequestResponse,
  InvocationType'
  #-}