{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE DerivingStrategies #-}
{-# LANGUAGE GeneralizedNewtypeDeriving #-}
{-# LANGUAGE LambdaCase #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE PatternSynonyms #-}
{-# LANGUAGE StrictData #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# OPTIONS_GHC -fno-warn-unused-imports #-}
module Amazonka.IoTThingsGraph.Types.FlowExecutionStatus
( FlowExecutionStatus
( ..,
FlowExecutionStatus_ABORTED,
FlowExecutionStatus_FAILED,
FlowExecutionStatus_RUNNING,
FlowExecutionStatus_SUCCEEDED
),
)
where
import qualified Amazonka.Core as Core
import qualified Amazonka.Prelude as Prelude
newtype FlowExecutionStatus = FlowExecutionStatus'
{ FlowExecutionStatus -> Text
fromFlowExecutionStatus ::
Core.Text
}
deriving stock
( Int -> FlowExecutionStatus -> ShowS
[FlowExecutionStatus] -> ShowS
FlowExecutionStatus -> String
(Int -> FlowExecutionStatus -> ShowS)
-> (FlowExecutionStatus -> String)
-> ([FlowExecutionStatus] -> ShowS)
-> Show FlowExecutionStatus
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [FlowExecutionStatus] -> ShowS
$cshowList :: [FlowExecutionStatus] -> ShowS
show :: FlowExecutionStatus -> String
$cshow :: FlowExecutionStatus -> String
showsPrec :: Int -> FlowExecutionStatus -> ShowS
$cshowsPrec :: Int -> FlowExecutionStatus -> ShowS
Prelude.Show,
ReadPrec [FlowExecutionStatus]
ReadPrec FlowExecutionStatus
Int -> ReadS FlowExecutionStatus
ReadS [FlowExecutionStatus]
(Int -> ReadS FlowExecutionStatus)
-> ReadS [FlowExecutionStatus]
-> ReadPrec FlowExecutionStatus
-> ReadPrec [FlowExecutionStatus]
-> Read FlowExecutionStatus
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [FlowExecutionStatus]
$creadListPrec :: ReadPrec [FlowExecutionStatus]
readPrec :: ReadPrec FlowExecutionStatus
$creadPrec :: ReadPrec FlowExecutionStatus
readList :: ReadS [FlowExecutionStatus]
$creadList :: ReadS [FlowExecutionStatus]
readsPrec :: Int -> ReadS FlowExecutionStatus
$creadsPrec :: Int -> ReadS FlowExecutionStatus
Prelude.Read,
FlowExecutionStatus -> FlowExecutionStatus -> Bool
(FlowExecutionStatus -> FlowExecutionStatus -> Bool)
-> (FlowExecutionStatus -> FlowExecutionStatus -> Bool)
-> Eq FlowExecutionStatus
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: FlowExecutionStatus -> FlowExecutionStatus -> Bool
$c/= :: FlowExecutionStatus -> FlowExecutionStatus -> Bool
== :: FlowExecutionStatus -> FlowExecutionStatus -> Bool
$c== :: FlowExecutionStatus -> FlowExecutionStatus -> Bool
Prelude.Eq,
Eq FlowExecutionStatus
Eq FlowExecutionStatus
-> (FlowExecutionStatus -> FlowExecutionStatus -> Ordering)
-> (FlowExecutionStatus -> FlowExecutionStatus -> Bool)
-> (FlowExecutionStatus -> FlowExecutionStatus -> Bool)
-> (FlowExecutionStatus -> FlowExecutionStatus -> Bool)
-> (FlowExecutionStatus -> FlowExecutionStatus -> Bool)
-> (FlowExecutionStatus
-> FlowExecutionStatus -> FlowExecutionStatus)
-> (FlowExecutionStatus
-> FlowExecutionStatus -> FlowExecutionStatus)
-> Ord FlowExecutionStatus
FlowExecutionStatus -> FlowExecutionStatus -> Bool
FlowExecutionStatus -> FlowExecutionStatus -> Ordering
FlowExecutionStatus -> FlowExecutionStatus -> FlowExecutionStatus
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 :: FlowExecutionStatus -> FlowExecutionStatus -> FlowExecutionStatus
$cmin :: FlowExecutionStatus -> FlowExecutionStatus -> FlowExecutionStatus
max :: FlowExecutionStatus -> FlowExecutionStatus -> FlowExecutionStatus
$cmax :: FlowExecutionStatus -> FlowExecutionStatus -> FlowExecutionStatus
>= :: FlowExecutionStatus -> FlowExecutionStatus -> Bool
$c>= :: FlowExecutionStatus -> FlowExecutionStatus -> Bool
> :: FlowExecutionStatus -> FlowExecutionStatus -> Bool
$c> :: FlowExecutionStatus -> FlowExecutionStatus -> Bool
<= :: FlowExecutionStatus -> FlowExecutionStatus -> Bool
$c<= :: FlowExecutionStatus -> FlowExecutionStatus -> Bool
< :: FlowExecutionStatus -> FlowExecutionStatus -> Bool
$c< :: FlowExecutionStatus -> FlowExecutionStatus -> Bool
compare :: FlowExecutionStatus -> FlowExecutionStatus -> Ordering
$ccompare :: FlowExecutionStatus -> FlowExecutionStatus -> Ordering
$cp1Ord :: Eq FlowExecutionStatus
Prelude.Ord,
(forall x. FlowExecutionStatus -> Rep FlowExecutionStatus x)
-> (forall x. Rep FlowExecutionStatus x -> FlowExecutionStatus)
-> Generic FlowExecutionStatus
forall x. Rep FlowExecutionStatus x -> FlowExecutionStatus
forall x. FlowExecutionStatus -> Rep FlowExecutionStatus x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep FlowExecutionStatus x -> FlowExecutionStatus
$cfrom :: forall x. FlowExecutionStatus -> Rep FlowExecutionStatus x
Prelude.Generic
)
deriving newtype
( Int -> FlowExecutionStatus -> Int
FlowExecutionStatus -> Int
(Int -> FlowExecutionStatus -> Int)
-> (FlowExecutionStatus -> Int) -> Hashable FlowExecutionStatus
forall a. (Int -> a -> Int) -> (a -> Int) -> Hashable a
hash :: FlowExecutionStatus -> Int
$chash :: FlowExecutionStatus -> Int
hashWithSalt :: Int -> FlowExecutionStatus -> Int
$chashWithSalt :: Int -> FlowExecutionStatus -> Int
Prelude.Hashable,
FlowExecutionStatus -> ()
(FlowExecutionStatus -> ()) -> NFData FlowExecutionStatus
forall a. (a -> ()) -> NFData a
rnf :: FlowExecutionStatus -> ()
$crnf :: FlowExecutionStatus -> ()
Prelude.NFData,
Text -> Either String FlowExecutionStatus
(Text -> Either String FlowExecutionStatus)
-> FromText FlowExecutionStatus
forall a. (Text -> Either String a) -> FromText a
fromText :: Text -> Either String FlowExecutionStatus
$cfromText :: Text -> Either String FlowExecutionStatus
Core.FromText,
FlowExecutionStatus -> Text
(FlowExecutionStatus -> Text) -> ToText FlowExecutionStatus
forall a. (a -> Text) -> ToText a
toText :: FlowExecutionStatus -> Text
$ctoText :: FlowExecutionStatus -> Text
Core.ToText,
FlowExecutionStatus -> ByteString
(FlowExecutionStatus -> ByteString)
-> ToByteString FlowExecutionStatus
forall a. (a -> ByteString) -> ToByteString a
toBS :: FlowExecutionStatus -> ByteString
$ctoBS :: FlowExecutionStatus -> ByteString
Core.ToByteString,
FlowExecutionStatus -> ByteStringBuilder
(FlowExecutionStatus -> ByteStringBuilder)
-> ToLog FlowExecutionStatus
forall a. (a -> ByteStringBuilder) -> ToLog a
build :: FlowExecutionStatus -> ByteStringBuilder
$cbuild :: FlowExecutionStatus -> ByteStringBuilder
Core.ToLog,
HeaderName -> FlowExecutionStatus -> [Header]
(HeaderName -> FlowExecutionStatus -> [Header])
-> ToHeader FlowExecutionStatus
forall a. (HeaderName -> a -> [Header]) -> ToHeader a
toHeader :: HeaderName -> FlowExecutionStatus -> [Header]
$ctoHeader :: HeaderName -> FlowExecutionStatus -> [Header]
Core.ToHeader,
FlowExecutionStatus -> QueryString
(FlowExecutionStatus -> QueryString) -> ToQuery FlowExecutionStatus
forall a. (a -> QueryString) -> ToQuery a
toQuery :: FlowExecutionStatus -> QueryString
$ctoQuery :: FlowExecutionStatus -> QueryString
Core.ToQuery,
Value -> Parser [FlowExecutionStatus]
Value -> Parser FlowExecutionStatus
(Value -> Parser FlowExecutionStatus)
-> (Value -> Parser [FlowExecutionStatus])
-> FromJSON FlowExecutionStatus
forall a.
(Value -> Parser a) -> (Value -> Parser [a]) -> FromJSON a
parseJSONList :: Value -> Parser [FlowExecutionStatus]
$cparseJSONList :: Value -> Parser [FlowExecutionStatus]
parseJSON :: Value -> Parser FlowExecutionStatus
$cparseJSON :: Value -> Parser FlowExecutionStatus
Core.FromJSON,
FromJSONKeyFunction [FlowExecutionStatus]
FromJSONKeyFunction FlowExecutionStatus
FromJSONKeyFunction FlowExecutionStatus
-> FromJSONKeyFunction [FlowExecutionStatus]
-> FromJSONKey FlowExecutionStatus
forall a.
FromJSONKeyFunction a -> FromJSONKeyFunction [a] -> FromJSONKey a
fromJSONKeyList :: FromJSONKeyFunction [FlowExecutionStatus]
$cfromJSONKeyList :: FromJSONKeyFunction [FlowExecutionStatus]
fromJSONKey :: FromJSONKeyFunction FlowExecutionStatus
$cfromJSONKey :: FromJSONKeyFunction FlowExecutionStatus
Core.FromJSONKey,
[FlowExecutionStatus] -> Encoding
[FlowExecutionStatus] -> Value
FlowExecutionStatus -> Encoding
FlowExecutionStatus -> Value
(FlowExecutionStatus -> Value)
-> (FlowExecutionStatus -> Encoding)
-> ([FlowExecutionStatus] -> Value)
-> ([FlowExecutionStatus] -> Encoding)
-> ToJSON FlowExecutionStatus
forall a.
(a -> Value)
-> (a -> Encoding)
-> ([a] -> Value)
-> ([a] -> Encoding)
-> ToJSON a
toEncodingList :: [FlowExecutionStatus] -> Encoding
$ctoEncodingList :: [FlowExecutionStatus] -> Encoding
toJSONList :: [FlowExecutionStatus] -> Value
$ctoJSONList :: [FlowExecutionStatus] -> Value
toEncoding :: FlowExecutionStatus -> Encoding
$ctoEncoding :: FlowExecutionStatus -> Encoding
toJSON :: FlowExecutionStatus -> Value
$ctoJSON :: FlowExecutionStatus -> Value
Core.ToJSON,
ToJSONKeyFunction [FlowExecutionStatus]
ToJSONKeyFunction FlowExecutionStatus
ToJSONKeyFunction FlowExecutionStatus
-> ToJSONKeyFunction [FlowExecutionStatus]
-> ToJSONKey FlowExecutionStatus
forall a.
ToJSONKeyFunction a -> ToJSONKeyFunction [a] -> ToJSONKey a
toJSONKeyList :: ToJSONKeyFunction [FlowExecutionStatus]
$ctoJSONKeyList :: ToJSONKeyFunction [FlowExecutionStatus]
toJSONKey :: ToJSONKeyFunction FlowExecutionStatus
$ctoJSONKey :: ToJSONKeyFunction FlowExecutionStatus
Core.ToJSONKey,
[Node] -> Either String FlowExecutionStatus
([Node] -> Either String FlowExecutionStatus)
-> FromXML FlowExecutionStatus
forall a. ([Node] -> Either String a) -> FromXML a
parseXML :: [Node] -> Either String FlowExecutionStatus
$cparseXML :: [Node] -> Either String FlowExecutionStatus
Core.FromXML,
FlowExecutionStatus -> XML
(FlowExecutionStatus -> XML) -> ToXML FlowExecutionStatus
forall a. (a -> XML) -> ToXML a
toXML :: FlowExecutionStatus -> XML
$ctoXML :: FlowExecutionStatus -> XML
Core.ToXML
)
pattern FlowExecutionStatus_ABORTED :: FlowExecutionStatus
pattern $bFlowExecutionStatus_ABORTED :: FlowExecutionStatus
$mFlowExecutionStatus_ABORTED :: forall r. FlowExecutionStatus -> (Void# -> r) -> (Void# -> r) -> r
FlowExecutionStatus_ABORTED = FlowExecutionStatus' "ABORTED"
pattern FlowExecutionStatus_FAILED :: FlowExecutionStatus
pattern $bFlowExecutionStatus_FAILED :: FlowExecutionStatus
$mFlowExecutionStatus_FAILED :: forall r. FlowExecutionStatus -> (Void# -> r) -> (Void# -> r) -> r
FlowExecutionStatus_FAILED = FlowExecutionStatus' "FAILED"
pattern FlowExecutionStatus_RUNNING :: FlowExecutionStatus
pattern $bFlowExecutionStatus_RUNNING :: FlowExecutionStatus
$mFlowExecutionStatus_RUNNING :: forall r. FlowExecutionStatus -> (Void# -> r) -> (Void# -> r) -> r
FlowExecutionStatus_RUNNING = FlowExecutionStatus' "RUNNING"
pattern FlowExecutionStatus_SUCCEEDED :: FlowExecutionStatus
pattern $bFlowExecutionStatus_SUCCEEDED :: FlowExecutionStatus
$mFlowExecutionStatus_SUCCEEDED :: forall r. FlowExecutionStatus -> (Void# -> r) -> (Void# -> r) -> r
FlowExecutionStatus_SUCCEEDED = FlowExecutionStatus' "SUCCEEDED"
{-# COMPLETE
FlowExecutionStatus_ABORTED,
FlowExecutionStatus_FAILED,
FlowExecutionStatus_RUNNING,
FlowExecutionStatus_SUCCEEDED,
FlowExecutionStatus'
#-}