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