{-# 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.SWF.Types.ScheduleLambdaFunctionFailedCause
-- 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.SWF.Types.ScheduleLambdaFunctionFailedCause
  ( ScheduleLambdaFunctionFailedCause
      ( ..,
        ScheduleLambdaFunctionFailedCause_ID_ALREADY_IN_USE,
        ScheduleLambdaFunctionFailedCause_LAMBDA_FUNCTION_CREATION_RATE_EXCEEDED,
        ScheduleLambdaFunctionFailedCause_LAMBDA_SERVICE_NOT_AVAILABLE_IN_REGION,
        ScheduleLambdaFunctionFailedCause_OPEN_LAMBDA_FUNCTIONS_LIMIT_EXCEEDED
      ),
  )
where

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

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

pattern ScheduleLambdaFunctionFailedCause_ID_ALREADY_IN_USE :: ScheduleLambdaFunctionFailedCause
pattern $bScheduleLambdaFunctionFailedCause_ID_ALREADY_IN_USE :: ScheduleLambdaFunctionFailedCause
$mScheduleLambdaFunctionFailedCause_ID_ALREADY_IN_USE :: forall r.
ScheduleLambdaFunctionFailedCause
-> (Void# -> r) -> (Void# -> r) -> r
ScheduleLambdaFunctionFailedCause_ID_ALREADY_IN_USE = ScheduleLambdaFunctionFailedCause' "ID_ALREADY_IN_USE"

pattern ScheduleLambdaFunctionFailedCause_LAMBDA_FUNCTION_CREATION_RATE_EXCEEDED :: ScheduleLambdaFunctionFailedCause
pattern $bScheduleLambdaFunctionFailedCause_LAMBDA_FUNCTION_CREATION_RATE_EXCEEDED :: ScheduleLambdaFunctionFailedCause
$mScheduleLambdaFunctionFailedCause_LAMBDA_FUNCTION_CREATION_RATE_EXCEEDED :: forall r.
ScheduleLambdaFunctionFailedCause
-> (Void# -> r) -> (Void# -> r) -> r
ScheduleLambdaFunctionFailedCause_LAMBDA_FUNCTION_CREATION_RATE_EXCEEDED = ScheduleLambdaFunctionFailedCause' "LAMBDA_FUNCTION_CREATION_RATE_EXCEEDED"

pattern ScheduleLambdaFunctionFailedCause_LAMBDA_SERVICE_NOT_AVAILABLE_IN_REGION :: ScheduleLambdaFunctionFailedCause
pattern $bScheduleLambdaFunctionFailedCause_LAMBDA_SERVICE_NOT_AVAILABLE_IN_REGION :: ScheduleLambdaFunctionFailedCause
$mScheduleLambdaFunctionFailedCause_LAMBDA_SERVICE_NOT_AVAILABLE_IN_REGION :: forall r.
ScheduleLambdaFunctionFailedCause
-> (Void# -> r) -> (Void# -> r) -> r
ScheduleLambdaFunctionFailedCause_LAMBDA_SERVICE_NOT_AVAILABLE_IN_REGION = ScheduleLambdaFunctionFailedCause' "LAMBDA_SERVICE_NOT_AVAILABLE_IN_REGION"

pattern ScheduleLambdaFunctionFailedCause_OPEN_LAMBDA_FUNCTIONS_LIMIT_EXCEEDED :: ScheduleLambdaFunctionFailedCause
pattern $bScheduleLambdaFunctionFailedCause_OPEN_LAMBDA_FUNCTIONS_LIMIT_EXCEEDED :: ScheduleLambdaFunctionFailedCause
$mScheduleLambdaFunctionFailedCause_OPEN_LAMBDA_FUNCTIONS_LIMIT_EXCEEDED :: forall r.
ScheduleLambdaFunctionFailedCause
-> (Void# -> r) -> (Void# -> r) -> r
ScheduleLambdaFunctionFailedCause_OPEN_LAMBDA_FUNCTIONS_LIMIT_EXCEEDED = ScheduleLambdaFunctionFailedCause' "OPEN_LAMBDA_FUNCTIONS_LIMIT_EXCEEDED"

{-# COMPLETE
  ScheduleLambdaFunctionFailedCause_ID_ALREADY_IN_USE,
  ScheduleLambdaFunctionFailedCause_LAMBDA_FUNCTION_CREATION_RATE_EXCEEDED,
  ScheduleLambdaFunctionFailedCause_LAMBDA_SERVICE_NOT_AVAILABLE_IN_REGION,
  ScheduleLambdaFunctionFailedCause_OPEN_LAMBDA_FUNCTIONS_LIMIT_EXCEEDED,
  ScheduleLambdaFunctionFailedCause'
  #-}