{-# 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.SignalExternalWorkflowExecutionFailedCause
-- 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.SignalExternalWorkflowExecutionFailedCause
  ( SignalExternalWorkflowExecutionFailedCause
      ( ..,
        SignalExternalWorkflowExecutionFailedCause_OPERATION_NOT_PERMITTED,
        SignalExternalWorkflowExecutionFailedCause_SIGNAL_EXTERNAL_WORKFLOW_EXECUTION_RATE_EXCEEDED,
        SignalExternalWorkflowExecutionFailedCause_UNKNOWN_EXTERNAL_WORKFLOW_EXECUTION
      ),
  )
where

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

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

pattern SignalExternalWorkflowExecutionFailedCause_OPERATION_NOT_PERMITTED :: SignalExternalWorkflowExecutionFailedCause
pattern $bSignalExternalWorkflowExecutionFailedCause_OPERATION_NOT_PERMITTED :: SignalExternalWorkflowExecutionFailedCause
$mSignalExternalWorkflowExecutionFailedCause_OPERATION_NOT_PERMITTED :: forall r.
SignalExternalWorkflowExecutionFailedCause
-> (Void# -> r) -> (Void# -> r) -> r
SignalExternalWorkflowExecutionFailedCause_OPERATION_NOT_PERMITTED = SignalExternalWorkflowExecutionFailedCause' "OPERATION_NOT_PERMITTED"

pattern SignalExternalWorkflowExecutionFailedCause_SIGNAL_EXTERNAL_WORKFLOW_EXECUTION_RATE_EXCEEDED :: SignalExternalWorkflowExecutionFailedCause
pattern $bSignalExternalWorkflowExecutionFailedCause_SIGNAL_EXTERNAL_WORKFLOW_EXECUTION_RATE_EXCEEDED :: SignalExternalWorkflowExecutionFailedCause
$mSignalExternalWorkflowExecutionFailedCause_SIGNAL_EXTERNAL_WORKFLOW_EXECUTION_RATE_EXCEEDED :: forall r.
SignalExternalWorkflowExecutionFailedCause
-> (Void# -> r) -> (Void# -> r) -> r
SignalExternalWorkflowExecutionFailedCause_SIGNAL_EXTERNAL_WORKFLOW_EXECUTION_RATE_EXCEEDED = SignalExternalWorkflowExecutionFailedCause' "SIGNAL_EXTERNAL_WORKFLOW_EXECUTION_RATE_EXCEEDED"

pattern SignalExternalWorkflowExecutionFailedCause_UNKNOWN_EXTERNAL_WORKFLOW_EXECUTION :: SignalExternalWorkflowExecutionFailedCause
pattern $bSignalExternalWorkflowExecutionFailedCause_UNKNOWN_EXTERNAL_WORKFLOW_EXECUTION :: SignalExternalWorkflowExecutionFailedCause
$mSignalExternalWorkflowExecutionFailedCause_UNKNOWN_EXTERNAL_WORKFLOW_EXECUTION :: forall r.
SignalExternalWorkflowExecutionFailedCause
-> (Void# -> r) -> (Void# -> r) -> r
SignalExternalWorkflowExecutionFailedCause_UNKNOWN_EXTERNAL_WORKFLOW_EXECUTION = SignalExternalWorkflowExecutionFailedCause' "UNKNOWN_EXTERNAL_WORKFLOW_EXECUTION"

{-# COMPLETE
  SignalExternalWorkflowExecutionFailedCause_OPERATION_NOT_PERMITTED,
  SignalExternalWorkflowExecutionFailedCause_SIGNAL_EXTERNAL_WORKFLOW_EXECUTION_RATE_EXCEEDED,
  SignalExternalWorkflowExecutionFailedCause_UNKNOWN_EXTERNAL_WORKFLOW_EXECUTION,
  SignalExternalWorkflowExecutionFailedCause'
  #-}