{-# 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.FailWorkflowExecutionFailedCause
-- 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.SWF.Types.FailWorkflowExecutionFailedCause
  ( FailWorkflowExecutionFailedCause
      ( ..,
        FailWorkflowExecutionFailedCause_OPERATION_NOT_PERMITTED,
        FailWorkflowExecutionFailedCause_UNHANDLED_DECISION
      ),
  )
where

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

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

pattern FailWorkflowExecutionFailedCause_OPERATION_NOT_PERMITTED :: FailWorkflowExecutionFailedCause
pattern $bFailWorkflowExecutionFailedCause_OPERATION_NOT_PERMITTED :: FailWorkflowExecutionFailedCause
$mFailWorkflowExecutionFailedCause_OPERATION_NOT_PERMITTED :: forall {r}.
FailWorkflowExecutionFailedCause
-> ((# #) -> r) -> ((# #) -> r) -> r
FailWorkflowExecutionFailedCause_OPERATION_NOT_PERMITTED = FailWorkflowExecutionFailedCause' "OPERATION_NOT_PERMITTED"

pattern FailWorkflowExecutionFailedCause_UNHANDLED_DECISION :: FailWorkflowExecutionFailedCause
pattern $bFailWorkflowExecutionFailedCause_UNHANDLED_DECISION :: FailWorkflowExecutionFailedCause
$mFailWorkflowExecutionFailedCause_UNHANDLED_DECISION :: forall {r}.
FailWorkflowExecutionFailedCause
-> ((# #) -> r) -> ((# #) -> r) -> r
FailWorkflowExecutionFailedCause_UNHANDLED_DECISION = FailWorkflowExecutionFailedCause' "UNHANDLED_DECISION"

{-# COMPLETE
  FailWorkflowExecutionFailedCause_OPERATION_NOT_PERMITTED,
  FailWorkflowExecutionFailedCause_UNHANDLED_DECISION,
  FailWorkflowExecutionFailedCause'
  #-}