{-# 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.WorkflowExecutionCancelRequestedCause
-- 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.WorkflowExecutionCancelRequestedCause
  ( WorkflowExecutionCancelRequestedCause
      ( ..,
        WorkflowExecutionCancelRequestedCause_CHILD_POLICY_APPLIED
      ),
  )
where

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

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

pattern WorkflowExecutionCancelRequestedCause_CHILD_POLICY_APPLIED :: WorkflowExecutionCancelRequestedCause
pattern $bWorkflowExecutionCancelRequestedCause_CHILD_POLICY_APPLIED :: WorkflowExecutionCancelRequestedCause
$mWorkflowExecutionCancelRequestedCause_CHILD_POLICY_APPLIED :: forall r.
WorkflowExecutionCancelRequestedCause
-> (Void# -> r) -> (Void# -> r) -> r
WorkflowExecutionCancelRequestedCause_CHILD_POLICY_APPLIED = WorkflowExecutionCancelRequestedCause' "CHILD_POLICY_APPLIED"

{-# COMPLETE
  WorkflowExecutionCancelRequestedCause_CHILD_POLICY_APPLIED,
  WorkflowExecutionCancelRequestedCause'
  #-}