{-# 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.CompleteWorkflowExecutionFailedCause
-- 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.CompleteWorkflowExecutionFailedCause
  ( CompleteWorkflowExecutionFailedCause
      ( ..,
        CompleteWorkflowExecutionFailedCause_OPERATION_NOT_PERMITTED,
        CompleteWorkflowExecutionFailedCause_UNHANDLED_DECISION
      ),
  )
where

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

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

pattern CompleteWorkflowExecutionFailedCause_OPERATION_NOT_PERMITTED :: CompleteWorkflowExecutionFailedCause
pattern $bCompleteWorkflowExecutionFailedCause_OPERATION_NOT_PERMITTED :: CompleteWorkflowExecutionFailedCause
$mCompleteWorkflowExecutionFailedCause_OPERATION_NOT_PERMITTED :: forall {r}.
CompleteWorkflowExecutionFailedCause
-> ((# #) -> r) -> ((# #) -> r) -> r
CompleteWorkflowExecutionFailedCause_OPERATION_NOT_PERMITTED = CompleteWorkflowExecutionFailedCause' "OPERATION_NOT_PERMITTED"

pattern CompleteWorkflowExecutionFailedCause_UNHANDLED_DECISION :: CompleteWorkflowExecutionFailedCause
pattern $bCompleteWorkflowExecutionFailedCause_UNHANDLED_DECISION :: CompleteWorkflowExecutionFailedCause
$mCompleteWorkflowExecutionFailedCause_UNHANDLED_DECISION :: forall {r}.
CompleteWorkflowExecutionFailedCause
-> ((# #) -> r) -> ((# #) -> r) -> r
CompleteWorkflowExecutionFailedCause_UNHANDLED_DECISION = CompleteWorkflowExecutionFailedCause' "UNHANDLED_DECISION"

{-# COMPLETE
  CompleteWorkflowExecutionFailedCause_OPERATION_NOT_PERMITTED,
  CompleteWorkflowExecutionFailedCause_UNHANDLED_DECISION,
  CompleteWorkflowExecutionFailedCause'
  #-}