{-# 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.Pipes.Types.PipeTargetInvocationType
-- Copyright   : (c) 2013-2023 Brendan Hay
-- License     : Mozilla Public License, v. 2.0.
-- Maintainer  : Brendan Hay
-- Stability   : auto-generated
-- Portability : non-portable (GHC extensions)
module Amazonka.Pipes.Types.PipeTargetInvocationType
  ( PipeTargetInvocationType
      ( ..,
        PipeTargetInvocationType_FIRE_AND_FORGET,
        PipeTargetInvocationType_REQUEST_RESPONSE
      ),
  )
where

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

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

pattern PipeTargetInvocationType_FIRE_AND_FORGET :: PipeTargetInvocationType
pattern $bPipeTargetInvocationType_FIRE_AND_FORGET :: PipeTargetInvocationType
$mPipeTargetInvocationType_FIRE_AND_FORGET :: forall {r}.
PipeTargetInvocationType -> ((# #) -> r) -> ((# #) -> r) -> r
PipeTargetInvocationType_FIRE_AND_FORGET = PipeTargetInvocationType' "FIRE_AND_FORGET"

pattern PipeTargetInvocationType_REQUEST_RESPONSE :: PipeTargetInvocationType
pattern $bPipeTargetInvocationType_REQUEST_RESPONSE :: PipeTargetInvocationType
$mPipeTargetInvocationType_REQUEST_RESPONSE :: forall {r}.
PipeTargetInvocationType -> ((# #) -> r) -> ((# #) -> r) -> r
PipeTargetInvocationType_REQUEST_RESPONSE = PipeTargetInvocationType' "REQUEST_RESPONSE"

{-# COMPLETE
  PipeTargetInvocationType_FIRE_AND_FORGET,
  PipeTargetInvocationType_REQUEST_RESPONSE,
  PipeTargetInvocationType'
  #-}