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

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

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

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

{-# COMPLETE
  FunctionResponseType_ReportBatchItemFailures,
  FunctionResponseType'
  #-}