{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE DerivingStrategies #-}
{-# LANGUAGE GeneralizedNewtypeDeriving #-}
{-# LANGUAGE LambdaCase #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE PatternSynonyms #-}
{-# LANGUAGE StrictData #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# OPTIONS_GHC -fno-warn-unused-imports #-}
module Amazonka.Glue.Types.TaskStatusType
( TaskStatusType
( ..,
TaskStatusType_FAILED,
TaskStatusType_RUNNING,
TaskStatusType_STARTING,
TaskStatusType_STOPPED,
TaskStatusType_STOPPING,
TaskStatusType_SUCCEEDED,
TaskStatusType_TIMEOUT
),
)
where
import qualified Amazonka.Core as Core
import qualified Amazonka.Prelude as Prelude
newtype TaskStatusType = TaskStatusType'
{ TaskStatusType -> Text
fromTaskStatusType ::
Core.Text
}
deriving stock
( Int -> TaskStatusType -> ShowS
[TaskStatusType] -> ShowS
TaskStatusType -> String
(Int -> TaskStatusType -> ShowS)
-> (TaskStatusType -> String)
-> ([TaskStatusType] -> ShowS)
-> Show TaskStatusType
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [TaskStatusType] -> ShowS
$cshowList :: [TaskStatusType] -> ShowS
show :: TaskStatusType -> String
$cshow :: TaskStatusType -> String
showsPrec :: Int -> TaskStatusType -> ShowS
$cshowsPrec :: Int -> TaskStatusType -> ShowS
Prelude.Show,
ReadPrec [TaskStatusType]
ReadPrec TaskStatusType
Int -> ReadS TaskStatusType
ReadS [TaskStatusType]
(Int -> ReadS TaskStatusType)
-> ReadS [TaskStatusType]
-> ReadPrec TaskStatusType
-> ReadPrec [TaskStatusType]
-> Read TaskStatusType
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [TaskStatusType]
$creadListPrec :: ReadPrec [TaskStatusType]
readPrec :: ReadPrec TaskStatusType
$creadPrec :: ReadPrec TaskStatusType
readList :: ReadS [TaskStatusType]
$creadList :: ReadS [TaskStatusType]
readsPrec :: Int -> ReadS TaskStatusType
$creadsPrec :: Int -> ReadS TaskStatusType
Prelude.Read,
TaskStatusType -> TaskStatusType -> Bool
(TaskStatusType -> TaskStatusType -> Bool)
-> (TaskStatusType -> TaskStatusType -> Bool) -> Eq TaskStatusType
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: TaskStatusType -> TaskStatusType -> Bool
$c/= :: TaskStatusType -> TaskStatusType -> Bool
== :: TaskStatusType -> TaskStatusType -> Bool
$c== :: TaskStatusType -> TaskStatusType -> Bool
Prelude.Eq,
Eq TaskStatusType
Eq TaskStatusType
-> (TaskStatusType -> TaskStatusType -> Ordering)
-> (TaskStatusType -> TaskStatusType -> Bool)
-> (TaskStatusType -> TaskStatusType -> Bool)
-> (TaskStatusType -> TaskStatusType -> Bool)
-> (TaskStatusType -> TaskStatusType -> Bool)
-> (TaskStatusType -> TaskStatusType -> TaskStatusType)
-> (TaskStatusType -> TaskStatusType -> TaskStatusType)
-> Ord TaskStatusType
TaskStatusType -> TaskStatusType -> Bool
TaskStatusType -> TaskStatusType -> Ordering
TaskStatusType -> TaskStatusType -> TaskStatusType
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 :: TaskStatusType -> TaskStatusType -> TaskStatusType
$cmin :: TaskStatusType -> TaskStatusType -> TaskStatusType
max :: TaskStatusType -> TaskStatusType -> TaskStatusType
$cmax :: TaskStatusType -> TaskStatusType -> TaskStatusType
>= :: TaskStatusType -> TaskStatusType -> Bool
$c>= :: TaskStatusType -> TaskStatusType -> Bool
> :: TaskStatusType -> TaskStatusType -> Bool
$c> :: TaskStatusType -> TaskStatusType -> Bool
<= :: TaskStatusType -> TaskStatusType -> Bool
$c<= :: TaskStatusType -> TaskStatusType -> Bool
< :: TaskStatusType -> TaskStatusType -> Bool
$c< :: TaskStatusType -> TaskStatusType -> Bool
compare :: TaskStatusType -> TaskStatusType -> Ordering
$ccompare :: TaskStatusType -> TaskStatusType -> Ordering
$cp1Ord :: Eq TaskStatusType
Prelude.Ord,
(forall x. TaskStatusType -> Rep TaskStatusType x)
-> (forall x. Rep TaskStatusType x -> TaskStatusType)
-> Generic TaskStatusType
forall x. Rep TaskStatusType x -> TaskStatusType
forall x. TaskStatusType -> Rep TaskStatusType x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep TaskStatusType x -> TaskStatusType
$cfrom :: forall x. TaskStatusType -> Rep TaskStatusType x
Prelude.Generic
)
deriving newtype
( Int -> TaskStatusType -> Int
TaskStatusType -> Int
(Int -> TaskStatusType -> Int)
-> (TaskStatusType -> Int) -> Hashable TaskStatusType
forall a. (Int -> a -> Int) -> (a -> Int) -> Hashable a
hash :: TaskStatusType -> Int
$chash :: TaskStatusType -> Int
hashWithSalt :: Int -> TaskStatusType -> Int
$chashWithSalt :: Int -> TaskStatusType -> Int
Prelude.Hashable,
TaskStatusType -> ()
(TaskStatusType -> ()) -> NFData TaskStatusType
forall a. (a -> ()) -> NFData a
rnf :: TaskStatusType -> ()
$crnf :: TaskStatusType -> ()
Prelude.NFData,
Text -> Either String TaskStatusType
(Text -> Either String TaskStatusType) -> FromText TaskStatusType
forall a. (Text -> Either String a) -> FromText a
fromText :: Text -> Either String TaskStatusType
$cfromText :: Text -> Either String TaskStatusType
Core.FromText,
TaskStatusType -> Text
(TaskStatusType -> Text) -> ToText TaskStatusType
forall a. (a -> Text) -> ToText a
toText :: TaskStatusType -> Text
$ctoText :: TaskStatusType -> Text
Core.ToText,
TaskStatusType -> ByteString
(TaskStatusType -> ByteString) -> ToByteString TaskStatusType
forall a. (a -> ByteString) -> ToByteString a
toBS :: TaskStatusType -> ByteString
$ctoBS :: TaskStatusType -> ByteString
Core.ToByteString,
TaskStatusType -> ByteStringBuilder
(TaskStatusType -> ByteStringBuilder) -> ToLog TaskStatusType
forall a. (a -> ByteStringBuilder) -> ToLog a
build :: TaskStatusType -> ByteStringBuilder
$cbuild :: TaskStatusType -> ByteStringBuilder
Core.ToLog,
HeaderName -> TaskStatusType -> [Header]
(HeaderName -> TaskStatusType -> [Header])
-> ToHeader TaskStatusType
forall a. (HeaderName -> a -> [Header]) -> ToHeader a
toHeader :: HeaderName -> TaskStatusType -> [Header]
$ctoHeader :: HeaderName -> TaskStatusType -> [Header]
Core.ToHeader,
TaskStatusType -> QueryString
(TaskStatusType -> QueryString) -> ToQuery TaskStatusType
forall a. (a -> QueryString) -> ToQuery a
toQuery :: TaskStatusType -> QueryString
$ctoQuery :: TaskStatusType -> QueryString
Core.ToQuery,
Value -> Parser [TaskStatusType]
Value -> Parser TaskStatusType
(Value -> Parser TaskStatusType)
-> (Value -> Parser [TaskStatusType]) -> FromJSON TaskStatusType
forall a.
(Value -> Parser a) -> (Value -> Parser [a]) -> FromJSON a
parseJSONList :: Value -> Parser [TaskStatusType]
$cparseJSONList :: Value -> Parser [TaskStatusType]
parseJSON :: Value -> Parser TaskStatusType
$cparseJSON :: Value -> Parser TaskStatusType
Core.FromJSON,
FromJSONKeyFunction [TaskStatusType]
FromJSONKeyFunction TaskStatusType
FromJSONKeyFunction TaskStatusType
-> FromJSONKeyFunction [TaskStatusType]
-> FromJSONKey TaskStatusType
forall a.
FromJSONKeyFunction a -> FromJSONKeyFunction [a] -> FromJSONKey a
fromJSONKeyList :: FromJSONKeyFunction [TaskStatusType]
$cfromJSONKeyList :: FromJSONKeyFunction [TaskStatusType]
fromJSONKey :: FromJSONKeyFunction TaskStatusType
$cfromJSONKey :: FromJSONKeyFunction TaskStatusType
Core.FromJSONKey,
[TaskStatusType] -> Encoding
[TaskStatusType] -> Value
TaskStatusType -> Encoding
TaskStatusType -> Value
(TaskStatusType -> Value)
-> (TaskStatusType -> Encoding)
-> ([TaskStatusType] -> Value)
-> ([TaskStatusType] -> Encoding)
-> ToJSON TaskStatusType
forall a.
(a -> Value)
-> (a -> Encoding)
-> ([a] -> Value)
-> ([a] -> Encoding)
-> ToJSON a
toEncodingList :: [TaskStatusType] -> Encoding
$ctoEncodingList :: [TaskStatusType] -> Encoding
toJSONList :: [TaskStatusType] -> Value
$ctoJSONList :: [TaskStatusType] -> Value
toEncoding :: TaskStatusType -> Encoding
$ctoEncoding :: TaskStatusType -> Encoding
toJSON :: TaskStatusType -> Value
$ctoJSON :: TaskStatusType -> Value
Core.ToJSON,
ToJSONKeyFunction [TaskStatusType]
ToJSONKeyFunction TaskStatusType
ToJSONKeyFunction TaskStatusType
-> ToJSONKeyFunction [TaskStatusType] -> ToJSONKey TaskStatusType
forall a.
ToJSONKeyFunction a -> ToJSONKeyFunction [a] -> ToJSONKey a
toJSONKeyList :: ToJSONKeyFunction [TaskStatusType]
$ctoJSONKeyList :: ToJSONKeyFunction [TaskStatusType]
toJSONKey :: ToJSONKeyFunction TaskStatusType
$ctoJSONKey :: ToJSONKeyFunction TaskStatusType
Core.ToJSONKey,
[Node] -> Either String TaskStatusType
([Node] -> Either String TaskStatusType) -> FromXML TaskStatusType
forall a. ([Node] -> Either String a) -> FromXML a
parseXML :: [Node] -> Either String TaskStatusType
$cparseXML :: [Node] -> Either String TaskStatusType
Core.FromXML,
TaskStatusType -> XML
(TaskStatusType -> XML) -> ToXML TaskStatusType
forall a. (a -> XML) -> ToXML a
toXML :: TaskStatusType -> XML
$ctoXML :: TaskStatusType -> XML
Core.ToXML
)
pattern TaskStatusType_FAILED :: TaskStatusType
pattern $bTaskStatusType_FAILED :: TaskStatusType
$mTaskStatusType_FAILED :: forall r. TaskStatusType -> (Void# -> r) -> (Void# -> r) -> r
TaskStatusType_FAILED = TaskStatusType' "FAILED"
pattern TaskStatusType_RUNNING :: TaskStatusType
pattern $bTaskStatusType_RUNNING :: TaskStatusType
$mTaskStatusType_RUNNING :: forall r. TaskStatusType -> (Void# -> r) -> (Void# -> r) -> r
TaskStatusType_RUNNING = TaskStatusType' "RUNNING"
pattern TaskStatusType_STARTING :: TaskStatusType
pattern $bTaskStatusType_STARTING :: TaskStatusType
$mTaskStatusType_STARTING :: forall r. TaskStatusType -> (Void# -> r) -> (Void# -> r) -> r
TaskStatusType_STARTING = TaskStatusType' "STARTING"
pattern TaskStatusType_STOPPED :: TaskStatusType
pattern $bTaskStatusType_STOPPED :: TaskStatusType
$mTaskStatusType_STOPPED :: forall r. TaskStatusType -> (Void# -> r) -> (Void# -> r) -> r
TaskStatusType_STOPPED = TaskStatusType' "STOPPED"
pattern TaskStatusType_STOPPING :: TaskStatusType
pattern $bTaskStatusType_STOPPING :: TaskStatusType
$mTaskStatusType_STOPPING :: forall r. TaskStatusType -> (Void# -> r) -> (Void# -> r) -> r
TaskStatusType_STOPPING = TaskStatusType' "STOPPING"
pattern TaskStatusType_SUCCEEDED :: TaskStatusType
pattern $bTaskStatusType_SUCCEEDED :: TaskStatusType
$mTaskStatusType_SUCCEEDED :: forall r. TaskStatusType -> (Void# -> r) -> (Void# -> r) -> r
TaskStatusType_SUCCEEDED = TaskStatusType' "SUCCEEDED"
pattern TaskStatusType_TIMEOUT :: TaskStatusType
pattern $bTaskStatusType_TIMEOUT :: TaskStatusType
$mTaskStatusType_TIMEOUT :: forall r. TaskStatusType -> (Void# -> r) -> (Void# -> r) -> r
TaskStatusType_TIMEOUT = TaskStatusType' "TIMEOUT"
{-# COMPLETE
TaskStatusType_FAILED,
TaskStatusType_RUNNING,
TaskStatusType_STARTING,
TaskStatusType_STOPPED,
TaskStatusType_STOPPING,
TaskStatusType_SUCCEEDED,
TaskStatusType_TIMEOUT,
TaskStatusType'
#-}