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

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

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

pattern CompleteWorkflowExecutionFailedCause_OPERATION_NOT_PERMITTED :: CompleteWorkflowExecutionFailedCause
pattern $bCompleteWorkflowExecutionFailedCause_OPERATION_NOT_PERMITTED :: CompleteWorkflowExecutionFailedCause
$mCompleteWorkflowExecutionFailedCause_OPERATION_NOT_PERMITTED :: forall r.
CompleteWorkflowExecutionFailedCause
-> (Void# -> r) -> (Void# -> 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
-> (Void# -> r) -> (Void# -> r) -> r
CompleteWorkflowExecutionFailedCause_UNHANDLED_DECISION = CompleteWorkflowExecutionFailedCause' "UNHANDLED_DECISION"

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