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