{-# 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.FailWorkflowExecutionFailedCause
-- 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.FailWorkflowExecutionFailedCause
  ( FailWorkflowExecutionFailedCause
      ( ..,
        FailWorkflowExecutionFailedCause_OPERATION_NOT_PERMITTED,
        FailWorkflowExecutionFailedCause_UNHANDLED_DECISION
      ),
  )
where

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

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

pattern FailWorkflowExecutionFailedCause_OPERATION_NOT_PERMITTED :: FailWorkflowExecutionFailedCause
pattern $bFailWorkflowExecutionFailedCause_OPERATION_NOT_PERMITTED :: FailWorkflowExecutionFailedCause
$mFailWorkflowExecutionFailedCause_OPERATION_NOT_PERMITTED :: forall r.
FailWorkflowExecutionFailedCause
-> (Void# -> r) -> (Void# -> r) -> r
FailWorkflowExecutionFailedCause_OPERATION_NOT_PERMITTED = FailWorkflowExecutionFailedCause' "OPERATION_NOT_PERMITTED"

pattern FailWorkflowExecutionFailedCause_UNHANDLED_DECISION :: FailWorkflowExecutionFailedCause
pattern $bFailWorkflowExecutionFailedCause_UNHANDLED_DECISION :: FailWorkflowExecutionFailedCause
$mFailWorkflowExecutionFailedCause_UNHANDLED_DECISION :: forall r.
FailWorkflowExecutionFailedCause
-> (Void# -> r) -> (Void# -> r) -> r
FailWorkflowExecutionFailedCause_UNHANDLED_DECISION = FailWorkflowExecutionFailedCause' "UNHANDLED_DECISION"

{-# COMPLETE
  FailWorkflowExecutionFailedCause_OPERATION_NOT_PERMITTED,
  FailWorkflowExecutionFailedCause_UNHANDLED_DECISION,
  FailWorkflowExecutionFailedCause'
  #-}