{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE DerivingStrategies #-}
{-# LANGUAGE GeneralizedNewtypeDeriving #-}
{-# LANGUAGE LambdaCase #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE PatternSynonyms #-}
{-# LANGUAGE StrictData #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# OPTIONS_GHC -fno-warn-unused-imports #-}
module Amazonka.SnowDeviceManagement.Types.ExecutionState
( ExecutionState
( ..,
ExecutionState_CANCELED,
ExecutionState_FAILED,
ExecutionState_IN_PROGRESS,
ExecutionState_QUEUED,
ExecutionState_REJECTED,
ExecutionState_SUCCEEDED,
ExecutionState_TIMED_OUT
),
)
where
import qualified Amazonka.Core as Core
import qualified Amazonka.Prelude as Prelude
newtype ExecutionState = ExecutionState'
{ ExecutionState -> Text
fromExecutionState ::
Core.Text
}
deriving stock
( Int -> ExecutionState -> ShowS
[ExecutionState] -> ShowS
ExecutionState -> String
(Int -> ExecutionState -> ShowS)
-> (ExecutionState -> String)
-> ([ExecutionState] -> ShowS)
-> Show ExecutionState
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ExecutionState] -> ShowS
$cshowList :: [ExecutionState] -> ShowS
show :: ExecutionState -> String
$cshow :: ExecutionState -> String
showsPrec :: Int -> ExecutionState -> ShowS
$cshowsPrec :: Int -> ExecutionState -> ShowS
Prelude.Show,
ReadPrec [ExecutionState]
ReadPrec ExecutionState
Int -> ReadS ExecutionState
ReadS [ExecutionState]
(Int -> ReadS ExecutionState)
-> ReadS [ExecutionState]
-> ReadPrec ExecutionState
-> ReadPrec [ExecutionState]
-> Read ExecutionState
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [ExecutionState]
$creadListPrec :: ReadPrec [ExecutionState]
readPrec :: ReadPrec ExecutionState
$creadPrec :: ReadPrec ExecutionState
readList :: ReadS [ExecutionState]
$creadList :: ReadS [ExecutionState]
readsPrec :: Int -> ReadS ExecutionState
$creadsPrec :: Int -> ReadS ExecutionState
Prelude.Read,
ExecutionState -> ExecutionState -> Bool
(ExecutionState -> ExecutionState -> Bool)
-> (ExecutionState -> ExecutionState -> Bool) -> Eq ExecutionState
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ExecutionState -> ExecutionState -> Bool
$c/= :: ExecutionState -> ExecutionState -> Bool
== :: ExecutionState -> ExecutionState -> Bool
$c== :: ExecutionState -> ExecutionState -> Bool
Prelude.Eq,
Eq ExecutionState
Eq ExecutionState
-> (ExecutionState -> ExecutionState -> Ordering)
-> (ExecutionState -> ExecutionState -> Bool)
-> (ExecutionState -> ExecutionState -> Bool)
-> (ExecutionState -> ExecutionState -> Bool)
-> (ExecutionState -> ExecutionState -> Bool)
-> (ExecutionState -> ExecutionState -> ExecutionState)
-> (ExecutionState -> ExecutionState -> ExecutionState)
-> Ord ExecutionState
ExecutionState -> ExecutionState -> Bool
ExecutionState -> ExecutionState -> Ordering
ExecutionState -> ExecutionState -> ExecutionState
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 :: ExecutionState -> ExecutionState -> ExecutionState
$cmin :: ExecutionState -> ExecutionState -> ExecutionState
max :: ExecutionState -> ExecutionState -> ExecutionState
$cmax :: ExecutionState -> ExecutionState -> ExecutionState
>= :: ExecutionState -> ExecutionState -> Bool
$c>= :: ExecutionState -> ExecutionState -> Bool
> :: ExecutionState -> ExecutionState -> Bool
$c> :: ExecutionState -> ExecutionState -> Bool
<= :: ExecutionState -> ExecutionState -> Bool
$c<= :: ExecutionState -> ExecutionState -> Bool
< :: ExecutionState -> ExecutionState -> Bool
$c< :: ExecutionState -> ExecutionState -> Bool
compare :: ExecutionState -> ExecutionState -> Ordering
$ccompare :: ExecutionState -> ExecutionState -> Ordering
$cp1Ord :: Eq ExecutionState
Prelude.Ord,
(forall x. ExecutionState -> Rep ExecutionState x)
-> (forall x. Rep ExecutionState x -> ExecutionState)
-> Generic ExecutionState
forall x. Rep ExecutionState x -> ExecutionState
forall x. ExecutionState -> Rep ExecutionState x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep ExecutionState x -> ExecutionState
$cfrom :: forall x. ExecutionState -> Rep ExecutionState x
Prelude.Generic
)
deriving newtype
( Int -> ExecutionState -> Int
ExecutionState -> Int
(Int -> ExecutionState -> Int)
-> (ExecutionState -> Int) -> Hashable ExecutionState
forall a. (Int -> a -> Int) -> (a -> Int) -> Hashable a
hash :: ExecutionState -> Int
$chash :: ExecutionState -> Int
hashWithSalt :: Int -> ExecutionState -> Int
$chashWithSalt :: Int -> ExecutionState -> Int
Prelude.Hashable,
ExecutionState -> ()
(ExecutionState -> ()) -> NFData ExecutionState
forall a. (a -> ()) -> NFData a
rnf :: ExecutionState -> ()
$crnf :: ExecutionState -> ()
Prelude.NFData,
Text -> Either String ExecutionState
(Text -> Either String ExecutionState) -> FromText ExecutionState
forall a. (Text -> Either String a) -> FromText a
fromText :: Text -> Either String ExecutionState
$cfromText :: Text -> Either String ExecutionState
Core.FromText,
ExecutionState -> Text
(ExecutionState -> Text) -> ToText ExecutionState
forall a. (a -> Text) -> ToText a
toText :: ExecutionState -> Text
$ctoText :: ExecutionState -> Text
Core.ToText,
ExecutionState -> ByteString
(ExecutionState -> ByteString) -> ToByteString ExecutionState
forall a. (a -> ByteString) -> ToByteString a
toBS :: ExecutionState -> ByteString
$ctoBS :: ExecutionState -> ByteString
Core.ToByteString,
ExecutionState -> ByteStringBuilder
(ExecutionState -> ByteStringBuilder) -> ToLog ExecutionState
forall a. (a -> ByteStringBuilder) -> ToLog a
build :: ExecutionState -> ByteStringBuilder
$cbuild :: ExecutionState -> ByteStringBuilder
Core.ToLog,
HeaderName -> ExecutionState -> [Header]
(HeaderName -> ExecutionState -> [Header])
-> ToHeader ExecutionState
forall a. (HeaderName -> a -> [Header]) -> ToHeader a
toHeader :: HeaderName -> ExecutionState -> [Header]
$ctoHeader :: HeaderName -> ExecutionState -> [Header]
Core.ToHeader,
ExecutionState -> QueryString
(ExecutionState -> QueryString) -> ToQuery ExecutionState
forall a. (a -> QueryString) -> ToQuery a
toQuery :: ExecutionState -> QueryString
$ctoQuery :: ExecutionState -> QueryString
Core.ToQuery,
Value -> Parser [ExecutionState]
Value -> Parser ExecutionState
(Value -> Parser ExecutionState)
-> (Value -> Parser [ExecutionState]) -> FromJSON ExecutionState
forall a.
(Value -> Parser a) -> (Value -> Parser [a]) -> FromJSON a
parseJSONList :: Value -> Parser [ExecutionState]
$cparseJSONList :: Value -> Parser [ExecutionState]
parseJSON :: Value -> Parser ExecutionState
$cparseJSON :: Value -> Parser ExecutionState
Core.FromJSON,
FromJSONKeyFunction [ExecutionState]
FromJSONKeyFunction ExecutionState
FromJSONKeyFunction ExecutionState
-> FromJSONKeyFunction [ExecutionState]
-> FromJSONKey ExecutionState
forall a.
FromJSONKeyFunction a -> FromJSONKeyFunction [a] -> FromJSONKey a
fromJSONKeyList :: FromJSONKeyFunction [ExecutionState]
$cfromJSONKeyList :: FromJSONKeyFunction [ExecutionState]
fromJSONKey :: FromJSONKeyFunction ExecutionState
$cfromJSONKey :: FromJSONKeyFunction ExecutionState
Core.FromJSONKey,
[ExecutionState] -> Encoding
[ExecutionState] -> Value
ExecutionState -> Encoding
ExecutionState -> Value
(ExecutionState -> Value)
-> (ExecutionState -> Encoding)
-> ([ExecutionState] -> Value)
-> ([ExecutionState] -> Encoding)
-> ToJSON ExecutionState
forall a.
(a -> Value)
-> (a -> Encoding)
-> ([a] -> Value)
-> ([a] -> Encoding)
-> ToJSON a
toEncodingList :: [ExecutionState] -> Encoding
$ctoEncodingList :: [ExecutionState] -> Encoding
toJSONList :: [ExecutionState] -> Value
$ctoJSONList :: [ExecutionState] -> Value
toEncoding :: ExecutionState -> Encoding
$ctoEncoding :: ExecutionState -> Encoding
toJSON :: ExecutionState -> Value
$ctoJSON :: ExecutionState -> Value
Core.ToJSON,
ToJSONKeyFunction [ExecutionState]
ToJSONKeyFunction ExecutionState
ToJSONKeyFunction ExecutionState
-> ToJSONKeyFunction [ExecutionState] -> ToJSONKey ExecutionState
forall a.
ToJSONKeyFunction a -> ToJSONKeyFunction [a] -> ToJSONKey a
toJSONKeyList :: ToJSONKeyFunction [ExecutionState]
$ctoJSONKeyList :: ToJSONKeyFunction [ExecutionState]
toJSONKey :: ToJSONKeyFunction ExecutionState
$ctoJSONKey :: ToJSONKeyFunction ExecutionState
Core.ToJSONKey,
[Node] -> Either String ExecutionState
([Node] -> Either String ExecutionState) -> FromXML ExecutionState
forall a. ([Node] -> Either String a) -> FromXML a
parseXML :: [Node] -> Either String ExecutionState
$cparseXML :: [Node] -> Either String ExecutionState
Core.FromXML,
ExecutionState -> XML
(ExecutionState -> XML) -> ToXML ExecutionState
forall a. (a -> XML) -> ToXML a
toXML :: ExecutionState -> XML
$ctoXML :: ExecutionState -> XML
Core.ToXML
)
pattern ExecutionState_CANCELED :: ExecutionState
pattern $bExecutionState_CANCELED :: ExecutionState
$mExecutionState_CANCELED :: forall r. ExecutionState -> (Void# -> r) -> (Void# -> r) -> r
ExecutionState_CANCELED = ExecutionState' "CANCELED"
pattern ExecutionState_FAILED :: ExecutionState
pattern $bExecutionState_FAILED :: ExecutionState
$mExecutionState_FAILED :: forall r. ExecutionState -> (Void# -> r) -> (Void# -> r) -> r
ExecutionState_FAILED = ExecutionState' "FAILED"
pattern ExecutionState_IN_PROGRESS :: ExecutionState
pattern $bExecutionState_IN_PROGRESS :: ExecutionState
$mExecutionState_IN_PROGRESS :: forall r. ExecutionState -> (Void# -> r) -> (Void# -> r) -> r
ExecutionState_IN_PROGRESS = ExecutionState' "IN_PROGRESS"
pattern ExecutionState_QUEUED :: ExecutionState
pattern $bExecutionState_QUEUED :: ExecutionState
$mExecutionState_QUEUED :: forall r. ExecutionState -> (Void# -> r) -> (Void# -> r) -> r
ExecutionState_QUEUED = ExecutionState' "QUEUED"
pattern ExecutionState_REJECTED :: ExecutionState
pattern $bExecutionState_REJECTED :: ExecutionState
$mExecutionState_REJECTED :: forall r. ExecutionState -> (Void# -> r) -> (Void# -> r) -> r
ExecutionState_REJECTED = ExecutionState' "REJECTED"
pattern ExecutionState_SUCCEEDED :: ExecutionState
pattern $bExecutionState_SUCCEEDED :: ExecutionState
$mExecutionState_SUCCEEDED :: forall r. ExecutionState -> (Void# -> r) -> (Void# -> r) -> r
ExecutionState_SUCCEEDED = ExecutionState' "SUCCEEDED"
pattern ExecutionState_TIMED_OUT :: ExecutionState
pattern $bExecutionState_TIMED_OUT :: ExecutionState
$mExecutionState_TIMED_OUT :: forall r. ExecutionState -> (Void# -> r) -> (Void# -> r) -> r
ExecutionState_TIMED_OUT = ExecutionState' "TIMED_OUT"
{-# COMPLETE
ExecutionState_CANCELED,
ExecutionState_FAILED,
ExecutionState_IN_PROGRESS,
ExecutionState_QUEUED,
ExecutionState_REJECTED,
ExecutionState_SUCCEEDED,
ExecutionState_TIMED_OUT,
ExecutionState'
#-}