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