{-# 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.Lambda.Types.FunctionResponseType
-- 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.Lambda.Types.FunctionResponseType
  ( FunctionResponseType
      ( ..,
        FunctionResponseType_ReportBatchItemFailures
      ),
  )
where

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

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

pattern FunctionResponseType_ReportBatchItemFailures :: FunctionResponseType
pattern $bFunctionResponseType_ReportBatchItemFailures :: FunctionResponseType
$mFunctionResponseType_ReportBatchItemFailures :: forall {r}.
FunctionResponseType -> ((# #) -> r) -> ((# #) -> r) -> r
FunctionResponseType_ReportBatchItemFailures = FunctionResponseType' "ReportBatchItemFailures"

{-# COMPLETE
  FunctionResponseType_ReportBatchItemFailures,
  FunctionResponseType'
  #-}