{-# 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.CancelWorkflowExecutionFailedCause
-- 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.CancelWorkflowExecutionFailedCause
  ( CancelWorkflowExecutionFailedCause
      ( ..,
        CancelWorkflowExecutionFailedCause_OPERATION_NOT_PERMITTED,
        CancelWorkflowExecutionFailedCause_UNHANDLED_DECISION
      ),
  )
where

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

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

pattern CancelWorkflowExecutionFailedCause_OPERATION_NOT_PERMITTED :: CancelWorkflowExecutionFailedCause
pattern $bCancelWorkflowExecutionFailedCause_OPERATION_NOT_PERMITTED :: CancelWorkflowExecutionFailedCause
$mCancelWorkflowExecutionFailedCause_OPERATION_NOT_PERMITTED :: forall r.
CancelWorkflowExecutionFailedCause
-> (Void# -> r) -> (Void# -> r) -> r
CancelWorkflowExecutionFailedCause_OPERATION_NOT_PERMITTED = CancelWorkflowExecutionFailedCause' "OPERATION_NOT_PERMITTED"

pattern CancelWorkflowExecutionFailedCause_UNHANDLED_DECISION :: CancelWorkflowExecutionFailedCause
pattern $bCancelWorkflowExecutionFailedCause_UNHANDLED_DECISION :: CancelWorkflowExecutionFailedCause
$mCancelWorkflowExecutionFailedCause_UNHANDLED_DECISION :: forall r.
CancelWorkflowExecutionFailedCause
-> (Void# -> r) -> (Void# -> r) -> r
CancelWorkflowExecutionFailedCause_UNHANDLED_DECISION = CancelWorkflowExecutionFailedCause' "UNHANDLED_DECISION"

{-# COMPLETE
  CancelWorkflowExecutionFailedCause_OPERATION_NOT_PERMITTED,
  CancelWorkflowExecutionFailedCause_UNHANDLED_DECISION,
  CancelWorkflowExecutionFailedCause'
  #-}