{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE DerivingStrategies #-}
{-# LANGUAGE GeneralizedNewtypeDeriving #-}
{-# LANGUAGE LambdaCase #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE PatternSynonyms #-}
{-# LANGUAGE StrictData #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# OPTIONS_GHC -fno-warn-unused-imports #-}
module Amazonka.SageMaker.Types.ActionStatus
( ActionStatus
( ..,
ActionStatus_Completed,
ActionStatus_Failed,
ActionStatus_InProgress,
ActionStatus_Stopped,
ActionStatus_Stopping,
ActionStatus_Unknown
),
)
where
import qualified Amazonka.Core as Core
import qualified Amazonka.Data as Data
import qualified Amazonka.Prelude as Prelude
newtype ActionStatus = ActionStatus'
{ ActionStatus -> Text
fromActionStatus ::
Data.Text
}
deriving stock
( Int -> ActionStatus -> ShowS
[ActionStatus] -> ShowS
ActionStatus -> String
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ActionStatus] -> ShowS
$cshowList :: [ActionStatus] -> ShowS
show :: ActionStatus -> String
$cshow :: ActionStatus -> String
showsPrec :: Int -> ActionStatus -> ShowS
$cshowsPrec :: Int -> ActionStatus -> ShowS
Prelude.Show,
ReadPrec [ActionStatus]
ReadPrec ActionStatus
Int -> ReadS ActionStatus
ReadS [ActionStatus]
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [ActionStatus]
$creadListPrec :: ReadPrec [ActionStatus]
readPrec :: ReadPrec ActionStatus
$creadPrec :: ReadPrec ActionStatus
readList :: ReadS [ActionStatus]
$creadList :: ReadS [ActionStatus]
readsPrec :: Int -> ReadS ActionStatus
$creadsPrec :: Int -> ReadS ActionStatus
Prelude.Read,
ActionStatus -> ActionStatus -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ActionStatus -> ActionStatus -> Bool
$c/= :: ActionStatus -> ActionStatus -> Bool
== :: ActionStatus -> ActionStatus -> Bool
$c== :: ActionStatus -> ActionStatus -> Bool
Prelude.Eq,
Eq ActionStatus
ActionStatus -> ActionStatus -> Bool
ActionStatus -> ActionStatus -> Ordering
ActionStatus -> ActionStatus -> ActionStatus
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 :: ActionStatus -> ActionStatus -> ActionStatus
$cmin :: ActionStatus -> ActionStatus -> ActionStatus
max :: ActionStatus -> ActionStatus -> ActionStatus
$cmax :: ActionStatus -> ActionStatus -> ActionStatus
>= :: ActionStatus -> ActionStatus -> Bool
$c>= :: ActionStatus -> ActionStatus -> Bool
> :: ActionStatus -> ActionStatus -> Bool
$c> :: ActionStatus -> ActionStatus -> Bool
<= :: ActionStatus -> ActionStatus -> Bool
$c<= :: ActionStatus -> ActionStatus -> Bool
< :: ActionStatus -> ActionStatus -> Bool
$c< :: ActionStatus -> ActionStatus -> Bool
compare :: ActionStatus -> ActionStatus -> Ordering
$ccompare :: ActionStatus -> ActionStatus -> Ordering
Prelude.Ord,
forall x. Rep ActionStatus x -> ActionStatus
forall x. ActionStatus -> Rep ActionStatus x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep ActionStatus x -> ActionStatus
$cfrom :: forall x. ActionStatus -> Rep ActionStatus x
Prelude.Generic
)
deriving newtype
( Eq ActionStatus
Int -> ActionStatus -> Int
ActionStatus -> Int
forall a. Eq a -> (Int -> a -> Int) -> (a -> Int) -> Hashable a
hash :: ActionStatus -> Int
$chash :: ActionStatus -> Int
hashWithSalt :: Int -> ActionStatus -> Int
$chashWithSalt :: Int -> ActionStatus -> Int
Prelude.Hashable,
ActionStatus -> ()
forall a. (a -> ()) -> NFData a
rnf :: ActionStatus -> ()
$crnf :: ActionStatus -> ()
Prelude.NFData,
Text -> Either String ActionStatus
forall a. (Text -> Either String a) -> FromText a
fromText :: Text -> Either String ActionStatus
$cfromText :: Text -> Either String ActionStatus
Data.FromText,
ActionStatus -> Text
forall a. (a -> Text) -> ToText a
toText :: ActionStatus -> Text
$ctoText :: ActionStatus -> Text
Data.ToText,
ActionStatus -> ByteString
forall a. (a -> ByteString) -> ToByteString a
toBS :: ActionStatus -> ByteString
$ctoBS :: ActionStatus -> ByteString
Data.ToByteString,
ActionStatus -> ByteStringBuilder
forall a. (a -> ByteStringBuilder) -> ToLog a
build :: ActionStatus -> ByteStringBuilder
$cbuild :: ActionStatus -> ByteStringBuilder
Data.ToLog,
HeaderName -> ActionStatus -> [Header]
forall a. (HeaderName -> a -> [Header]) -> ToHeader a
toHeader :: HeaderName -> ActionStatus -> [Header]
$ctoHeader :: HeaderName -> ActionStatus -> [Header]
Data.ToHeader,
ActionStatus -> QueryString
forall a. (a -> QueryString) -> ToQuery a
toQuery :: ActionStatus -> QueryString
$ctoQuery :: ActionStatus -> QueryString
Data.ToQuery,
Value -> Parser [ActionStatus]
Value -> Parser ActionStatus
forall a.
(Value -> Parser a) -> (Value -> Parser [a]) -> FromJSON a
parseJSONList :: Value -> Parser [ActionStatus]
$cparseJSONList :: Value -> Parser [ActionStatus]
parseJSON :: Value -> Parser ActionStatus
$cparseJSON :: Value -> Parser ActionStatus
Data.FromJSON,
FromJSONKeyFunction [ActionStatus]
FromJSONKeyFunction ActionStatus
forall a.
FromJSONKeyFunction a -> FromJSONKeyFunction [a] -> FromJSONKey a
fromJSONKeyList :: FromJSONKeyFunction [ActionStatus]
$cfromJSONKeyList :: FromJSONKeyFunction [ActionStatus]
fromJSONKey :: FromJSONKeyFunction ActionStatus
$cfromJSONKey :: FromJSONKeyFunction ActionStatus
Data.FromJSONKey,
[ActionStatus] -> Encoding
[ActionStatus] -> Value
ActionStatus -> Encoding
ActionStatus -> Value
forall a.
(a -> Value)
-> (a -> Encoding)
-> ([a] -> Value)
-> ([a] -> Encoding)
-> ToJSON a
toEncodingList :: [ActionStatus] -> Encoding
$ctoEncodingList :: [ActionStatus] -> Encoding
toJSONList :: [ActionStatus] -> Value
$ctoJSONList :: [ActionStatus] -> Value
toEncoding :: ActionStatus -> Encoding
$ctoEncoding :: ActionStatus -> Encoding
toJSON :: ActionStatus -> Value
$ctoJSON :: ActionStatus -> Value
Data.ToJSON,
ToJSONKeyFunction [ActionStatus]
ToJSONKeyFunction ActionStatus
forall a.
ToJSONKeyFunction a -> ToJSONKeyFunction [a] -> ToJSONKey a
toJSONKeyList :: ToJSONKeyFunction [ActionStatus]
$ctoJSONKeyList :: ToJSONKeyFunction [ActionStatus]
toJSONKey :: ToJSONKeyFunction ActionStatus
$ctoJSONKey :: ToJSONKeyFunction ActionStatus
Data.ToJSONKey,
[Node] -> Either String ActionStatus
forall a. ([Node] -> Either String a) -> FromXML a
parseXML :: [Node] -> Either String ActionStatus
$cparseXML :: [Node] -> Either String ActionStatus
Data.FromXML,
ActionStatus -> XML
forall a. (a -> XML) -> ToXML a
toXML :: ActionStatus -> XML
$ctoXML :: ActionStatus -> XML
Data.ToXML
)
pattern ActionStatus_Completed :: ActionStatus
pattern $bActionStatus_Completed :: ActionStatus
$mActionStatus_Completed :: forall {r}. ActionStatus -> ((# #) -> r) -> ((# #) -> r) -> r
ActionStatus_Completed = ActionStatus' "Completed"
pattern ActionStatus_Failed :: ActionStatus
pattern $bActionStatus_Failed :: ActionStatus
$mActionStatus_Failed :: forall {r}. ActionStatus -> ((# #) -> r) -> ((# #) -> r) -> r
ActionStatus_Failed = ActionStatus' "Failed"
pattern ActionStatus_InProgress :: ActionStatus
pattern $bActionStatus_InProgress :: ActionStatus
$mActionStatus_InProgress :: forall {r}. ActionStatus -> ((# #) -> r) -> ((# #) -> r) -> r
ActionStatus_InProgress = ActionStatus' "InProgress"
pattern ActionStatus_Stopped :: ActionStatus
pattern $bActionStatus_Stopped :: ActionStatus
$mActionStatus_Stopped :: forall {r}. ActionStatus -> ((# #) -> r) -> ((# #) -> r) -> r
ActionStatus_Stopped = ActionStatus' "Stopped"
pattern ActionStatus_Stopping :: ActionStatus
pattern $bActionStatus_Stopping :: ActionStatus
$mActionStatus_Stopping :: forall {r}. ActionStatus -> ((# #) -> r) -> ((# #) -> r) -> r
ActionStatus_Stopping = ActionStatus' "Stopping"
pattern ActionStatus_Unknown :: ActionStatus
pattern $bActionStatus_Unknown :: ActionStatus
$mActionStatus_Unknown :: forall {r}. ActionStatus -> ((# #) -> r) -> ((# #) -> r) -> r
ActionStatus_Unknown = ActionStatus' "Unknown"
{-# COMPLETE
ActionStatus_Completed,
ActionStatus_Failed,
ActionStatus_InProgress,
ActionStatus_Stopped,
ActionStatus_Stopping,
ActionStatus_Unknown,
ActionStatus'
#-}