{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE DerivingStrategies #-}
{-# LANGUAGE GeneralizedNewtypeDeriving #-}
{-# LANGUAGE LambdaCase #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE PatternSynonyms #-}
{-# LANGUAGE StrictData #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# OPTIONS_GHC -fno-warn-unused-imports #-}
module Amazonka.SWF.Types.WorkflowExecutionTerminatedCause
( WorkflowExecutionTerminatedCause
( ..,
WorkflowExecutionTerminatedCause_CHILD_POLICY_APPLIED,
WorkflowExecutionTerminatedCause_EVENT_LIMIT_EXCEEDED,
WorkflowExecutionTerminatedCause_OPERATOR_INITIATED
),
)
where
import qualified Amazonka.Core as Core
import qualified Amazonka.Prelude as Prelude
newtype WorkflowExecutionTerminatedCause = WorkflowExecutionTerminatedCause'
{ WorkflowExecutionTerminatedCause -> Text
fromWorkflowExecutionTerminatedCause ::
Core.Text
}
deriving stock
( Int -> WorkflowExecutionTerminatedCause -> ShowS
[WorkflowExecutionTerminatedCause] -> ShowS
WorkflowExecutionTerminatedCause -> String
(Int -> WorkflowExecutionTerminatedCause -> ShowS)
-> (WorkflowExecutionTerminatedCause -> String)
-> ([WorkflowExecutionTerminatedCause] -> ShowS)
-> Show WorkflowExecutionTerminatedCause
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [WorkflowExecutionTerminatedCause] -> ShowS
$cshowList :: [WorkflowExecutionTerminatedCause] -> ShowS
show :: WorkflowExecutionTerminatedCause -> String
$cshow :: WorkflowExecutionTerminatedCause -> String
showsPrec :: Int -> WorkflowExecutionTerminatedCause -> ShowS
$cshowsPrec :: Int -> WorkflowExecutionTerminatedCause -> ShowS
Prelude.Show,
ReadPrec [WorkflowExecutionTerminatedCause]
ReadPrec WorkflowExecutionTerminatedCause
Int -> ReadS WorkflowExecutionTerminatedCause
ReadS [WorkflowExecutionTerminatedCause]
(Int -> ReadS WorkflowExecutionTerminatedCause)
-> ReadS [WorkflowExecutionTerminatedCause]
-> ReadPrec WorkflowExecutionTerminatedCause
-> ReadPrec [WorkflowExecutionTerminatedCause]
-> Read WorkflowExecutionTerminatedCause
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [WorkflowExecutionTerminatedCause]
$creadListPrec :: ReadPrec [WorkflowExecutionTerminatedCause]
readPrec :: ReadPrec WorkflowExecutionTerminatedCause
$creadPrec :: ReadPrec WorkflowExecutionTerminatedCause
readList :: ReadS [WorkflowExecutionTerminatedCause]
$creadList :: ReadS [WorkflowExecutionTerminatedCause]
readsPrec :: Int -> ReadS WorkflowExecutionTerminatedCause
$creadsPrec :: Int -> ReadS WorkflowExecutionTerminatedCause
Prelude.Read,
WorkflowExecutionTerminatedCause
-> WorkflowExecutionTerminatedCause -> Bool
(WorkflowExecutionTerminatedCause
-> WorkflowExecutionTerminatedCause -> Bool)
-> (WorkflowExecutionTerminatedCause
-> WorkflowExecutionTerminatedCause -> Bool)
-> Eq WorkflowExecutionTerminatedCause
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: WorkflowExecutionTerminatedCause
-> WorkflowExecutionTerminatedCause -> Bool
$c/= :: WorkflowExecutionTerminatedCause
-> WorkflowExecutionTerminatedCause -> Bool
== :: WorkflowExecutionTerminatedCause
-> WorkflowExecutionTerminatedCause -> Bool
$c== :: WorkflowExecutionTerminatedCause
-> WorkflowExecutionTerminatedCause -> Bool
Prelude.Eq,
Eq WorkflowExecutionTerminatedCause
Eq WorkflowExecutionTerminatedCause
-> (WorkflowExecutionTerminatedCause
-> WorkflowExecutionTerminatedCause -> Ordering)
-> (WorkflowExecutionTerminatedCause
-> WorkflowExecutionTerminatedCause -> Bool)
-> (WorkflowExecutionTerminatedCause
-> WorkflowExecutionTerminatedCause -> Bool)
-> (WorkflowExecutionTerminatedCause
-> WorkflowExecutionTerminatedCause -> Bool)
-> (WorkflowExecutionTerminatedCause
-> WorkflowExecutionTerminatedCause -> Bool)
-> (WorkflowExecutionTerminatedCause
-> WorkflowExecutionTerminatedCause
-> WorkflowExecutionTerminatedCause)
-> (WorkflowExecutionTerminatedCause
-> WorkflowExecutionTerminatedCause
-> WorkflowExecutionTerminatedCause)
-> Ord WorkflowExecutionTerminatedCause
WorkflowExecutionTerminatedCause
-> WorkflowExecutionTerminatedCause -> Bool
WorkflowExecutionTerminatedCause
-> WorkflowExecutionTerminatedCause -> Ordering
WorkflowExecutionTerminatedCause
-> WorkflowExecutionTerminatedCause
-> WorkflowExecutionTerminatedCause
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 :: WorkflowExecutionTerminatedCause
-> WorkflowExecutionTerminatedCause
-> WorkflowExecutionTerminatedCause
$cmin :: WorkflowExecutionTerminatedCause
-> WorkflowExecutionTerminatedCause
-> WorkflowExecutionTerminatedCause
max :: WorkflowExecutionTerminatedCause
-> WorkflowExecutionTerminatedCause
-> WorkflowExecutionTerminatedCause
$cmax :: WorkflowExecutionTerminatedCause
-> WorkflowExecutionTerminatedCause
-> WorkflowExecutionTerminatedCause
>= :: WorkflowExecutionTerminatedCause
-> WorkflowExecutionTerminatedCause -> Bool
$c>= :: WorkflowExecutionTerminatedCause
-> WorkflowExecutionTerminatedCause -> Bool
> :: WorkflowExecutionTerminatedCause
-> WorkflowExecutionTerminatedCause -> Bool
$c> :: WorkflowExecutionTerminatedCause
-> WorkflowExecutionTerminatedCause -> Bool
<= :: WorkflowExecutionTerminatedCause
-> WorkflowExecutionTerminatedCause -> Bool
$c<= :: WorkflowExecutionTerminatedCause
-> WorkflowExecutionTerminatedCause -> Bool
< :: WorkflowExecutionTerminatedCause
-> WorkflowExecutionTerminatedCause -> Bool
$c< :: WorkflowExecutionTerminatedCause
-> WorkflowExecutionTerminatedCause -> Bool
compare :: WorkflowExecutionTerminatedCause
-> WorkflowExecutionTerminatedCause -> Ordering
$ccompare :: WorkflowExecutionTerminatedCause
-> WorkflowExecutionTerminatedCause -> Ordering
$cp1Ord :: Eq WorkflowExecutionTerminatedCause
Prelude.Ord,
(forall x.
WorkflowExecutionTerminatedCause
-> Rep WorkflowExecutionTerminatedCause x)
-> (forall x.
Rep WorkflowExecutionTerminatedCause x
-> WorkflowExecutionTerminatedCause)
-> Generic WorkflowExecutionTerminatedCause
forall x.
Rep WorkflowExecutionTerminatedCause x
-> WorkflowExecutionTerminatedCause
forall x.
WorkflowExecutionTerminatedCause
-> Rep WorkflowExecutionTerminatedCause x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep WorkflowExecutionTerminatedCause x
-> WorkflowExecutionTerminatedCause
$cfrom :: forall x.
WorkflowExecutionTerminatedCause
-> Rep WorkflowExecutionTerminatedCause x
Prelude.Generic
)
deriving newtype
( Int -> WorkflowExecutionTerminatedCause -> Int
WorkflowExecutionTerminatedCause -> Int
(Int -> WorkflowExecutionTerminatedCause -> Int)
-> (WorkflowExecutionTerminatedCause -> Int)
-> Hashable WorkflowExecutionTerminatedCause
forall a. (Int -> a -> Int) -> (a -> Int) -> Hashable a
hash :: WorkflowExecutionTerminatedCause -> Int
$chash :: WorkflowExecutionTerminatedCause -> Int
hashWithSalt :: Int -> WorkflowExecutionTerminatedCause -> Int
$chashWithSalt :: Int -> WorkflowExecutionTerminatedCause -> Int
Prelude.Hashable,
WorkflowExecutionTerminatedCause -> ()
(WorkflowExecutionTerminatedCause -> ())
-> NFData WorkflowExecutionTerminatedCause
forall a. (a -> ()) -> NFData a
rnf :: WorkflowExecutionTerminatedCause -> ()
$crnf :: WorkflowExecutionTerminatedCause -> ()
Prelude.NFData,
Text -> Either String WorkflowExecutionTerminatedCause
(Text -> Either String WorkflowExecutionTerminatedCause)
-> FromText WorkflowExecutionTerminatedCause
forall a. (Text -> Either String a) -> FromText a
fromText :: Text -> Either String WorkflowExecutionTerminatedCause
$cfromText :: Text -> Either String WorkflowExecutionTerminatedCause
Core.FromText,
WorkflowExecutionTerminatedCause -> Text
(WorkflowExecutionTerminatedCause -> Text)
-> ToText WorkflowExecutionTerminatedCause
forall a. (a -> Text) -> ToText a
toText :: WorkflowExecutionTerminatedCause -> Text
$ctoText :: WorkflowExecutionTerminatedCause -> Text
Core.ToText,
WorkflowExecutionTerminatedCause -> ByteString
(WorkflowExecutionTerminatedCause -> ByteString)
-> ToByteString WorkflowExecutionTerminatedCause
forall a. (a -> ByteString) -> ToByteString a
toBS :: WorkflowExecutionTerminatedCause -> ByteString
$ctoBS :: WorkflowExecutionTerminatedCause -> ByteString
Core.ToByteString,
WorkflowExecutionTerminatedCause -> ByteStringBuilder
(WorkflowExecutionTerminatedCause -> ByteStringBuilder)
-> ToLog WorkflowExecutionTerminatedCause
forall a. (a -> ByteStringBuilder) -> ToLog a
build :: WorkflowExecutionTerminatedCause -> ByteStringBuilder
$cbuild :: WorkflowExecutionTerminatedCause -> ByteStringBuilder
Core.ToLog,
HeaderName -> WorkflowExecutionTerminatedCause -> [Header]
(HeaderName -> WorkflowExecutionTerminatedCause -> [Header])
-> ToHeader WorkflowExecutionTerminatedCause
forall a. (HeaderName -> a -> [Header]) -> ToHeader a
toHeader :: HeaderName -> WorkflowExecutionTerminatedCause -> [Header]
$ctoHeader :: HeaderName -> WorkflowExecutionTerminatedCause -> [Header]
Core.ToHeader,
WorkflowExecutionTerminatedCause -> QueryString
(WorkflowExecutionTerminatedCause -> QueryString)
-> ToQuery WorkflowExecutionTerminatedCause
forall a. (a -> QueryString) -> ToQuery a
toQuery :: WorkflowExecutionTerminatedCause -> QueryString
$ctoQuery :: WorkflowExecutionTerminatedCause -> QueryString
Core.ToQuery,
Value -> Parser [WorkflowExecutionTerminatedCause]
Value -> Parser WorkflowExecutionTerminatedCause
(Value -> Parser WorkflowExecutionTerminatedCause)
-> (Value -> Parser [WorkflowExecutionTerminatedCause])
-> FromJSON WorkflowExecutionTerminatedCause
forall a.
(Value -> Parser a) -> (Value -> Parser [a]) -> FromJSON a
parseJSONList :: Value -> Parser [WorkflowExecutionTerminatedCause]
$cparseJSONList :: Value -> Parser [WorkflowExecutionTerminatedCause]
parseJSON :: Value -> Parser WorkflowExecutionTerminatedCause
$cparseJSON :: Value -> Parser WorkflowExecutionTerminatedCause
Core.FromJSON,
FromJSONKeyFunction [WorkflowExecutionTerminatedCause]
FromJSONKeyFunction WorkflowExecutionTerminatedCause
FromJSONKeyFunction WorkflowExecutionTerminatedCause
-> FromJSONKeyFunction [WorkflowExecutionTerminatedCause]
-> FromJSONKey WorkflowExecutionTerminatedCause
forall a.
FromJSONKeyFunction a -> FromJSONKeyFunction [a] -> FromJSONKey a
fromJSONKeyList :: FromJSONKeyFunction [WorkflowExecutionTerminatedCause]
$cfromJSONKeyList :: FromJSONKeyFunction [WorkflowExecutionTerminatedCause]
fromJSONKey :: FromJSONKeyFunction WorkflowExecutionTerminatedCause
$cfromJSONKey :: FromJSONKeyFunction WorkflowExecutionTerminatedCause
Core.FromJSONKey,
[WorkflowExecutionTerminatedCause] -> Encoding
[WorkflowExecutionTerminatedCause] -> Value
WorkflowExecutionTerminatedCause -> Encoding
WorkflowExecutionTerminatedCause -> Value
(WorkflowExecutionTerminatedCause -> Value)
-> (WorkflowExecutionTerminatedCause -> Encoding)
-> ([WorkflowExecutionTerminatedCause] -> Value)
-> ([WorkflowExecutionTerminatedCause] -> Encoding)
-> ToJSON WorkflowExecutionTerminatedCause
forall a.
(a -> Value)
-> (a -> Encoding)
-> ([a] -> Value)
-> ([a] -> Encoding)
-> ToJSON a
toEncodingList :: [WorkflowExecutionTerminatedCause] -> Encoding
$ctoEncodingList :: [WorkflowExecutionTerminatedCause] -> Encoding
toJSONList :: [WorkflowExecutionTerminatedCause] -> Value
$ctoJSONList :: [WorkflowExecutionTerminatedCause] -> Value
toEncoding :: WorkflowExecutionTerminatedCause -> Encoding
$ctoEncoding :: WorkflowExecutionTerminatedCause -> Encoding
toJSON :: WorkflowExecutionTerminatedCause -> Value
$ctoJSON :: WorkflowExecutionTerminatedCause -> Value
Core.ToJSON,
ToJSONKeyFunction [WorkflowExecutionTerminatedCause]
ToJSONKeyFunction WorkflowExecutionTerminatedCause
ToJSONKeyFunction WorkflowExecutionTerminatedCause
-> ToJSONKeyFunction [WorkflowExecutionTerminatedCause]
-> ToJSONKey WorkflowExecutionTerminatedCause
forall a.
ToJSONKeyFunction a -> ToJSONKeyFunction [a] -> ToJSONKey a
toJSONKeyList :: ToJSONKeyFunction [WorkflowExecutionTerminatedCause]
$ctoJSONKeyList :: ToJSONKeyFunction [WorkflowExecutionTerminatedCause]
toJSONKey :: ToJSONKeyFunction WorkflowExecutionTerminatedCause
$ctoJSONKey :: ToJSONKeyFunction WorkflowExecutionTerminatedCause
Core.ToJSONKey,
[Node] -> Either String WorkflowExecutionTerminatedCause
([Node] -> Either String WorkflowExecutionTerminatedCause)
-> FromXML WorkflowExecutionTerminatedCause
forall a. ([Node] -> Either String a) -> FromXML a
parseXML :: [Node] -> Either String WorkflowExecutionTerminatedCause
$cparseXML :: [Node] -> Either String WorkflowExecutionTerminatedCause
Core.FromXML,
WorkflowExecutionTerminatedCause -> XML
(WorkflowExecutionTerminatedCause -> XML)
-> ToXML WorkflowExecutionTerminatedCause
forall a. (a -> XML) -> ToXML a
toXML :: WorkflowExecutionTerminatedCause -> XML
$ctoXML :: WorkflowExecutionTerminatedCause -> XML
Core.ToXML
)
pattern WorkflowExecutionTerminatedCause_CHILD_POLICY_APPLIED :: WorkflowExecutionTerminatedCause
pattern $bWorkflowExecutionTerminatedCause_CHILD_POLICY_APPLIED :: WorkflowExecutionTerminatedCause
$mWorkflowExecutionTerminatedCause_CHILD_POLICY_APPLIED :: forall r.
WorkflowExecutionTerminatedCause
-> (Void# -> r) -> (Void# -> r) -> r
WorkflowExecutionTerminatedCause_CHILD_POLICY_APPLIED = WorkflowExecutionTerminatedCause' "CHILD_POLICY_APPLIED"
pattern WorkflowExecutionTerminatedCause_EVENT_LIMIT_EXCEEDED :: WorkflowExecutionTerminatedCause
pattern $bWorkflowExecutionTerminatedCause_EVENT_LIMIT_EXCEEDED :: WorkflowExecutionTerminatedCause
$mWorkflowExecutionTerminatedCause_EVENT_LIMIT_EXCEEDED :: forall r.
WorkflowExecutionTerminatedCause
-> (Void# -> r) -> (Void# -> r) -> r
WorkflowExecutionTerminatedCause_EVENT_LIMIT_EXCEEDED = WorkflowExecutionTerminatedCause' "EVENT_LIMIT_EXCEEDED"
pattern WorkflowExecutionTerminatedCause_OPERATOR_INITIATED :: WorkflowExecutionTerminatedCause
pattern $bWorkflowExecutionTerminatedCause_OPERATOR_INITIATED :: WorkflowExecutionTerminatedCause
$mWorkflowExecutionTerminatedCause_OPERATOR_INITIATED :: forall r.
WorkflowExecutionTerminatedCause
-> (Void# -> r) -> (Void# -> r) -> r
WorkflowExecutionTerminatedCause_OPERATOR_INITIATED = WorkflowExecutionTerminatedCause' "OPERATOR_INITIATED"
{-# COMPLETE
WorkflowExecutionTerminatedCause_CHILD_POLICY_APPLIED,
WorkflowExecutionTerminatedCause_EVENT_LIMIT_EXCEEDED,
WorkflowExecutionTerminatedCause_OPERATOR_INITIATED,
WorkflowExecutionTerminatedCause'
#-}