{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE DerivingStrategies #-}
{-# LANGUAGE GeneralizedNewtypeDeriving #-}
{-# LANGUAGE LambdaCase #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE PatternSynonyms #-}
{-# LANGUAGE StrictData #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# OPTIONS_GHC -fno-warn-unused-imports #-}
module Amazonka.EMR.Types.StepState
( StepState
( ..,
StepState_CANCELLED,
StepState_CANCEL_PENDING,
StepState_COMPLETED,
StepState_FAILED,
StepState_INTERRUPTED,
StepState_PENDING,
StepState_RUNNING
),
)
where
import qualified Amazonka.Core as Core
import qualified Amazonka.Data as Data
import qualified Amazonka.Prelude as Prelude
newtype StepState = StepState'
{ StepState -> Text
fromStepState ::
Data.Text
}
deriving stock
( Int -> StepState -> ShowS
[StepState] -> ShowS
StepState -> String
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [StepState] -> ShowS
$cshowList :: [StepState] -> ShowS
show :: StepState -> String
$cshow :: StepState -> String
showsPrec :: Int -> StepState -> ShowS
$cshowsPrec :: Int -> StepState -> ShowS
Prelude.Show,
ReadPrec [StepState]
ReadPrec StepState
Int -> ReadS StepState
ReadS [StepState]
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [StepState]
$creadListPrec :: ReadPrec [StepState]
readPrec :: ReadPrec StepState
$creadPrec :: ReadPrec StepState
readList :: ReadS [StepState]
$creadList :: ReadS [StepState]
readsPrec :: Int -> ReadS StepState
$creadsPrec :: Int -> ReadS StepState
Prelude.Read,
StepState -> StepState -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: StepState -> StepState -> Bool
$c/= :: StepState -> StepState -> Bool
== :: StepState -> StepState -> Bool
$c== :: StepState -> StepState -> Bool
Prelude.Eq,
Eq StepState
StepState -> StepState -> Bool
StepState -> StepState -> Ordering
StepState -> StepState -> StepState
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 :: StepState -> StepState -> StepState
$cmin :: StepState -> StepState -> StepState
max :: StepState -> StepState -> StepState
$cmax :: StepState -> StepState -> StepState
>= :: StepState -> StepState -> Bool
$c>= :: StepState -> StepState -> Bool
> :: StepState -> StepState -> Bool
$c> :: StepState -> StepState -> Bool
<= :: StepState -> StepState -> Bool
$c<= :: StepState -> StepState -> Bool
< :: StepState -> StepState -> Bool
$c< :: StepState -> StepState -> Bool
compare :: StepState -> StepState -> Ordering
$ccompare :: StepState -> StepState -> Ordering
Prelude.Ord,
forall x. Rep StepState x -> StepState
forall x. StepState -> Rep StepState x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep StepState x -> StepState
$cfrom :: forall x. StepState -> Rep StepState x
Prelude.Generic
)
deriving newtype
( Eq StepState
Int -> StepState -> Int
StepState -> Int
forall a. Eq a -> (Int -> a -> Int) -> (a -> Int) -> Hashable a
hash :: StepState -> Int
$chash :: StepState -> Int
hashWithSalt :: Int -> StepState -> Int
$chashWithSalt :: Int -> StepState -> Int
Prelude.Hashable,
StepState -> ()
forall a. (a -> ()) -> NFData a
rnf :: StepState -> ()
$crnf :: StepState -> ()
Prelude.NFData,
Text -> Either String StepState
forall a. (Text -> Either String a) -> FromText a
fromText :: Text -> Either String StepState
$cfromText :: Text -> Either String StepState
Data.FromText,
StepState -> Text
forall a. (a -> Text) -> ToText a
toText :: StepState -> Text
$ctoText :: StepState -> Text
Data.ToText,
StepState -> ByteString
forall a. (a -> ByteString) -> ToByteString a
toBS :: StepState -> ByteString
$ctoBS :: StepState -> ByteString
Data.ToByteString,
StepState -> ByteStringBuilder
forall a. (a -> ByteStringBuilder) -> ToLog a
build :: StepState -> ByteStringBuilder
$cbuild :: StepState -> ByteStringBuilder
Data.ToLog,
HeaderName -> StepState -> [Header]
forall a. (HeaderName -> a -> [Header]) -> ToHeader a
toHeader :: HeaderName -> StepState -> [Header]
$ctoHeader :: HeaderName -> StepState -> [Header]
Data.ToHeader,
StepState -> QueryString
forall a. (a -> QueryString) -> ToQuery a
toQuery :: StepState -> QueryString
$ctoQuery :: StepState -> QueryString
Data.ToQuery,
Value -> Parser [StepState]
Value -> Parser StepState
forall a.
(Value -> Parser a) -> (Value -> Parser [a]) -> FromJSON a
parseJSONList :: Value -> Parser [StepState]
$cparseJSONList :: Value -> Parser [StepState]
parseJSON :: Value -> Parser StepState
$cparseJSON :: Value -> Parser StepState
Data.FromJSON,
FromJSONKeyFunction [StepState]
FromJSONKeyFunction StepState
forall a.
FromJSONKeyFunction a -> FromJSONKeyFunction [a] -> FromJSONKey a
fromJSONKeyList :: FromJSONKeyFunction [StepState]
$cfromJSONKeyList :: FromJSONKeyFunction [StepState]
fromJSONKey :: FromJSONKeyFunction StepState
$cfromJSONKey :: FromJSONKeyFunction StepState
Data.FromJSONKey,
[StepState] -> Encoding
[StepState] -> Value
StepState -> Encoding
StepState -> Value
forall a.
(a -> Value)
-> (a -> Encoding)
-> ([a] -> Value)
-> ([a] -> Encoding)
-> ToJSON a
toEncodingList :: [StepState] -> Encoding
$ctoEncodingList :: [StepState] -> Encoding
toJSONList :: [StepState] -> Value
$ctoJSONList :: [StepState] -> Value
toEncoding :: StepState -> Encoding
$ctoEncoding :: StepState -> Encoding
toJSON :: StepState -> Value
$ctoJSON :: StepState -> Value
Data.ToJSON,
ToJSONKeyFunction [StepState]
ToJSONKeyFunction StepState
forall a.
ToJSONKeyFunction a -> ToJSONKeyFunction [a] -> ToJSONKey a
toJSONKeyList :: ToJSONKeyFunction [StepState]
$ctoJSONKeyList :: ToJSONKeyFunction [StepState]
toJSONKey :: ToJSONKeyFunction StepState
$ctoJSONKey :: ToJSONKeyFunction StepState
Data.ToJSONKey,
[Node] -> Either String StepState
forall a. ([Node] -> Either String a) -> FromXML a
parseXML :: [Node] -> Either String StepState
$cparseXML :: [Node] -> Either String StepState
Data.FromXML,
StepState -> XML
forall a. (a -> XML) -> ToXML a
toXML :: StepState -> XML
$ctoXML :: StepState -> XML
Data.ToXML
)
pattern StepState_CANCELLED :: StepState
pattern $bStepState_CANCELLED :: StepState
$mStepState_CANCELLED :: forall {r}. StepState -> ((# #) -> r) -> ((# #) -> r) -> r
StepState_CANCELLED = StepState' "CANCELLED"
pattern StepState_CANCEL_PENDING :: StepState
pattern $bStepState_CANCEL_PENDING :: StepState
$mStepState_CANCEL_PENDING :: forall {r}. StepState -> ((# #) -> r) -> ((# #) -> r) -> r
StepState_CANCEL_PENDING = StepState' "CANCEL_PENDING"
pattern StepState_COMPLETED :: StepState
pattern $bStepState_COMPLETED :: StepState
$mStepState_COMPLETED :: forall {r}. StepState -> ((# #) -> r) -> ((# #) -> r) -> r
StepState_COMPLETED = StepState' "COMPLETED"
pattern StepState_FAILED :: StepState
pattern $bStepState_FAILED :: StepState
$mStepState_FAILED :: forall {r}. StepState -> ((# #) -> r) -> ((# #) -> r) -> r
StepState_FAILED = StepState' "FAILED"
pattern StepState_INTERRUPTED :: StepState
pattern $bStepState_INTERRUPTED :: StepState
$mStepState_INTERRUPTED :: forall {r}. StepState -> ((# #) -> r) -> ((# #) -> r) -> r
StepState_INTERRUPTED = StepState' "INTERRUPTED"
pattern StepState_PENDING :: StepState
pattern $bStepState_PENDING :: StepState
$mStepState_PENDING :: forall {r}. StepState -> ((# #) -> r) -> ((# #) -> r) -> r
StepState_PENDING = StepState' "PENDING"
pattern StepState_RUNNING :: StepState
pattern $bStepState_RUNNING :: StepState
$mStepState_RUNNING :: forall {r}. StepState -> ((# #) -> r) -> ((# #) -> r) -> r
StepState_RUNNING = StepState' "RUNNING"
{-# COMPLETE
StepState_CANCELLED,
StepState_CANCEL_PENDING,
StepState_COMPLETED,
StepState_FAILED,
StepState_INTERRUPTED,
StepState_PENDING,
StepState_RUNNING,
StepState'
#-}