{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE DerivingStrategies #-}
{-# LANGUAGE GeneralizedNewtypeDeriving #-}
{-# LANGUAGE LambdaCase #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE PatternSynonyms #-}
{-# LANGUAGE StrictData #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# OPTIONS_GHC -fno-warn-unused-imports #-}
module Amazonka.FIS.Types.ExperimentActionStatus
( ExperimentActionStatus
( ..,
ExperimentActionStatus_Cancelled,
ExperimentActionStatus_Completed,
ExperimentActionStatus_Failed,
ExperimentActionStatus_Initiating,
ExperimentActionStatus_Pending,
ExperimentActionStatus_Running,
ExperimentActionStatus_Stopped,
ExperimentActionStatus_Stopping
),
)
where
import qualified Amazonka.Core as Core
import qualified Amazonka.Prelude as Prelude
newtype ExperimentActionStatus = ExperimentActionStatus'
{ ExperimentActionStatus -> Text
fromExperimentActionStatus ::
Core.Text
}
deriving stock
( Int -> ExperimentActionStatus -> ShowS
[ExperimentActionStatus] -> ShowS
ExperimentActionStatus -> String
(Int -> ExperimentActionStatus -> ShowS)
-> (ExperimentActionStatus -> String)
-> ([ExperimentActionStatus] -> ShowS)
-> Show ExperimentActionStatus
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ExperimentActionStatus] -> ShowS
$cshowList :: [ExperimentActionStatus] -> ShowS
show :: ExperimentActionStatus -> String
$cshow :: ExperimentActionStatus -> String
showsPrec :: Int -> ExperimentActionStatus -> ShowS
$cshowsPrec :: Int -> ExperimentActionStatus -> ShowS
Prelude.Show,
ReadPrec [ExperimentActionStatus]
ReadPrec ExperimentActionStatus
Int -> ReadS ExperimentActionStatus
ReadS [ExperimentActionStatus]
(Int -> ReadS ExperimentActionStatus)
-> ReadS [ExperimentActionStatus]
-> ReadPrec ExperimentActionStatus
-> ReadPrec [ExperimentActionStatus]
-> Read ExperimentActionStatus
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [ExperimentActionStatus]
$creadListPrec :: ReadPrec [ExperimentActionStatus]
readPrec :: ReadPrec ExperimentActionStatus
$creadPrec :: ReadPrec ExperimentActionStatus
readList :: ReadS [ExperimentActionStatus]
$creadList :: ReadS [ExperimentActionStatus]
readsPrec :: Int -> ReadS ExperimentActionStatus
$creadsPrec :: Int -> ReadS ExperimentActionStatus
Prelude.Read,
ExperimentActionStatus -> ExperimentActionStatus -> Bool
(ExperimentActionStatus -> ExperimentActionStatus -> Bool)
-> (ExperimentActionStatus -> ExperimentActionStatus -> Bool)
-> Eq ExperimentActionStatus
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ExperimentActionStatus -> ExperimentActionStatus -> Bool
$c/= :: ExperimentActionStatus -> ExperimentActionStatus -> Bool
== :: ExperimentActionStatus -> ExperimentActionStatus -> Bool
$c== :: ExperimentActionStatus -> ExperimentActionStatus -> Bool
Prelude.Eq,
Eq ExperimentActionStatus
Eq ExperimentActionStatus
-> (ExperimentActionStatus -> ExperimentActionStatus -> Ordering)
-> (ExperimentActionStatus -> ExperimentActionStatus -> Bool)
-> (ExperimentActionStatus -> ExperimentActionStatus -> Bool)
-> (ExperimentActionStatus -> ExperimentActionStatus -> Bool)
-> (ExperimentActionStatus -> ExperimentActionStatus -> Bool)
-> (ExperimentActionStatus
-> ExperimentActionStatus -> ExperimentActionStatus)
-> (ExperimentActionStatus
-> ExperimentActionStatus -> ExperimentActionStatus)
-> Ord ExperimentActionStatus
ExperimentActionStatus -> ExperimentActionStatus -> Bool
ExperimentActionStatus -> ExperimentActionStatus -> Ordering
ExperimentActionStatus
-> ExperimentActionStatus -> ExperimentActionStatus
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 :: ExperimentActionStatus
-> ExperimentActionStatus -> ExperimentActionStatus
$cmin :: ExperimentActionStatus
-> ExperimentActionStatus -> ExperimentActionStatus
max :: ExperimentActionStatus
-> ExperimentActionStatus -> ExperimentActionStatus
$cmax :: ExperimentActionStatus
-> ExperimentActionStatus -> ExperimentActionStatus
>= :: ExperimentActionStatus -> ExperimentActionStatus -> Bool
$c>= :: ExperimentActionStatus -> ExperimentActionStatus -> Bool
> :: ExperimentActionStatus -> ExperimentActionStatus -> Bool
$c> :: ExperimentActionStatus -> ExperimentActionStatus -> Bool
<= :: ExperimentActionStatus -> ExperimentActionStatus -> Bool
$c<= :: ExperimentActionStatus -> ExperimentActionStatus -> Bool
< :: ExperimentActionStatus -> ExperimentActionStatus -> Bool
$c< :: ExperimentActionStatus -> ExperimentActionStatus -> Bool
compare :: ExperimentActionStatus -> ExperimentActionStatus -> Ordering
$ccompare :: ExperimentActionStatus -> ExperimentActionStatus -> Ordering
$cp1Ord :: Eq ExperimentActionStatus
Prelude.Ord,
(forall x. ExperimentActionStatus -> Rep ExperimentActionStatus x)
-> (forall x.
Rep ExperimentActionStatus x -> ExperimentActionStatus)
-> Generic ExperimentActionStatus
forall x. Rep ExperimentActionStatus x -> ExperimentActionStatus
forall x. ExperimentActionStatus -> Rep ExperimentActionStatus x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep ExperimentActionStatus x -> ExperimentActionStatus
$cfrom :: forall x. ExperimentActionStatus -> Rep ExperimentActionStatus x
Prelude.Generic
)
deriving newtype
( Int -> ExperimentActionStatus -> Int
ExperimentActionStatus -> Int
(Int -> ExperimentActionStatus -> Int)
-> (ExperimentActionStatus -> Int)
-> Hashable ExperimentActionStatus
forall a. (Int -> a -> Int) -> (a -> Int) -> Hashable a
hash :: ExperimentActionStatus -> Int
$chash :: ExperimentActionStatus -> Int
hashWithSalt :: Int -> ExperimentActionStatus -> Int
$chashWithSalt :: Int -> ExperimentActionStatus -> Int
Prelude.Hashable,
ExperimentActionStatus -> ()
(ExperimentActionStatus -> ()) -> NFData ExperimentActionStatus
forall a. (a -> ()) -> NFData a
rnf :: ExperimentActionStatus -> ()
$crnf :: ExperimentActionStatus -> ()
Prelude.NFData,
Text -> Either String ExperimentActionStatus
(Text -> Either String ExperimentActionStatus)
-> FromText ExperimentActionStatus
forall a. (Text -> Either String a) -> FromText a
fromText :: Text -> Either String ExperimentActionStatus
$cfromText :: Text -> Either String ExperimentActionStatus
Core.FromText,
ExperimentActionStatus -> Text
(ExperimentActionStatus -> Text) -> ToText ExperimentActionStatus
forall a. (a -> Text) -> ToText a
toText :: ExperimentActionStatus -> Text
$ctoText :: ExperimentActionStatus -> Text
Core.ToText,
ExperimentActionStatus -> ByteString
(ExperimentActionStatus -> ByteString)
-> ToByteString ExperimentActionStatus
forall a. (a -> ByteString) -> ToByteString a
toBS :: ExperimentActionStatus -> ByteString
$ctoBS :: ExperimentActionStatus -> ByteString
Core.ToByteString,
ExperimentActionStatus -> ByteStringBuilder
(ExperimentActionStatus -> ByteStringBuilder)
-> ToLog ExperimentActionStatus
forall a. (a -> ByteStringBuilder) -> ToLog a
build :: ExperimentActionStatus -> ByteStringBuilder
$cbuild :: ExperimentActionStatus -> ByteStringBuilder
Core.ToLog,
HeaderName -> ExperimentActionStatus -> [Header]
(HeaderName -> ExperimentActionStatus -> [Header])
-> ToHeader ExperimentActionStatus
forall a. (HeaderName -> a -> [Header]) -> ToHeader a
toHeader :: HeaderName -> ExperimentActionStatus -> [Header]
$ctoHeader :: HeaderName -> ExperimentActionStatus -> [Header]
Core.ToHeader,
ExperimentActionStatus -> QueryString
(ExperimentActionStatus -> QueryString)
-> ToQuery ExperimentActionStatus
forall a. (a -> QueryString) -> ToQuery a
toQuery :: ExperimentActionStatus -> QueryString
$ctoQuery :: ExperimentActionStatus -> QueryString
Core.ToQuery,
Value -> Parser [ExperimentActionStatus]
Value -> Parser ExperimentActionStatus
(Value -> Parser ExperimentActionStatus)
-> (Value -> Parser [ExperimentActionStatus])
-> FromJSON ExperimentActionStatus
forall a.
(Value -> Parser a) -> (Value -> Parser [a]) -> FromJSON a
parseJSONList :: Value -> Parser [ExperimentActionStatus]
$cparseJSONList :: Value -> Parser [ExperimentActionStatus]
parseJSON :: Value -> Parser ExperimentActionStatus
$cparseJSON :: Value -> Parser ExperimentActionStatus
Core.FromJSON,
FromJSONKeyFunction [ExperimentActionStatus]
FromJSONKeyFunction ExperimentActionStatus
FromJSONKeyFunction ExperimentActionStatus
-> FromJSONKeyFunction [ExperimentActionStatus]
-> FromJSONKey ExperimentActionStatus
forall a.
FromJSONKeyFunction a -> FromJSONKeyFunction [a] -> FromJSONKey a
fromJSONKeyList :: FromJSONKeyFunction [ExperimentActionStatus]
$cfromJSONKeyList :: FromJSONKeyFunction [ExperimentActionStatus]
fromJSONKey :: FromJSONKeyFunction ExperimentActionStatus
$cfromJSONKey :: FromJSONKeyFunction ExperimentActionStatus
Core.FromJSONKey,
[ExperimentActionStatus] -> Encoding
[ExperimentActionStatus] -> Value
ExperimentActionStatus -> Encoding
ExperimentActionStatus -> Value
(ExperimentActionStatus -> Value)
-> (ExperimentActionStatus -> Encoding)
-> ([ExperimentActionStatus] -> Value)
-> ([ExperimentActionStatus] -> Encoding)
-> ToJSON ExperimentActionStatus
forall a.
(a -> Value)
-> (a -> Encoding)
-> ([a] -> Value)
-> ([a] -> Encoding)
-> ToJSON a
toEncodingList :: [ExperimentActionStatus] -> Encoding
$ctoEncodingList :: [ExperimentActionStatus] -> Encoding
toJSONList :: [ExperimentActionStatus] -> Value
$ctoJSONList :: [ExperimentActionStatus] -> Value
toEncoding :: ExperimentActionStatus -> Encoding
$ctoEncoding :: ExperimentActionStatus -> Encoding
toJSON :: ExperimentActionStatus -> Value
$ctoJSON :: ExperimentActionStatus -> Value
Core.ToJSON,
ToJSONKeyFunction [ExperimentActionStatus]
ToJSONKeyFunction ExperimentActionStatus
ToJSONKeyFunction ExperimentActionStatus
-> ToJSONKeyFunction [ExperimentActionStatus]
-> ToJSONKey ExperimentActionStatus
forall a.
ToJSONKeyFunction a -> ToJSONKeyFunction [a] -> ToJSONKey a
toJSONKeyList :: ToJSONKeyFunction [ExperimentActionStatus]
$ctoJSONKeyList :: ToJSONKeyFunction [ExperimentActionStatus]
toJSONKey :: ToJSONKeyFunction ExperimentActionStatus
$ctoJSONKey :: ToJSONKeyFunction ExperimentActionStatus
Core.ToJSONKey,
[Node] -> Either String ExperimentActionStatus
([Node] -> Either String ExperimentActionStatus)
-> FromXML ExperimentActionStatus
forall a. ([Node] -> Either String a) -> FromXML a
parseXML :: [Node] -> Either String ExperimentActionStatus
$cparseXML :: [Node] -> Either String ExperimentActionStatus
Core.FromXML,
ExperimentActionStatus -> XML
(ExperimentActionStatus -> XML) -> ToXML ExperimentActionStatus
forall a. (a -> XML) -> ToXML a
toXML :: ExperimentActionStatus -> XML
$ctoXML :: ExperimentActionStatus -> XML
Core.ToXML
)
pattern ExperimentActionStatus_Cancelled :: ExperimentActionStatus
pattern $bExperimentActionStatus_Cancelled :: ExperimentActionStatus
$mExperimentActionStatus_Cancelled :: forall r.
ExperimentActionStatus -> (Void# -> r) -> (Void# -> r) -> r
ExperimentActionStatus_Cancelled = ExperimentActionStatus' "cancelled"
pattern ExperimentActionStatus_Completed :: ExperimentActionStatus
pattern $bExperimentActionStatus_Completed :: ExperimentActionStatus
$mExperimentActionStatus_Completed :: forall r.
ExperimentActionStatus -> (Void# -> r) -> (Void# -> r) -> r
ExperimentActionStatus_Completed = ExperimentActionStatus' "completed"
pattern ExperimentActionStatus_Failed :: ExperimentActionStatus
pattern $bExperimentActionStatus_Failed :: ExperimentActionStatus
$mExperimentActionStatus_Failed :: forall r.
ExperimentActionStatus -> (Void# -> r) -> (Void# -> r) -> r
ExperimentActionStatus_Failed = ExperimentActionStatus' "failed"
pattern ExperimentActionStatus_Initiating :: ExperimentActionStatus
pattern $bExperimentActionStatus_Initiating :: ExperimentActionStatus
$mExperimentActionStatus_Initiating :: forall r.
ExperimentActionStatus -> (Void# -> r) -> (Void# -> r) -> r
ExperimentActionStatus_Initiating = ExperimentActionStatus' "initiating"
pattern ExperimentActionStatus_Pending :: ExperimentActionStatus
pattern $bExperimentActionStatus_Pending :: ExperimentActionStatus
$mExperimentActionStatus_Pending :: forall r.
ExperimentActionStatus -> (Void# -> r) -> (Void# -> r) -> r
ExperimentActionStatus_Pending = ExperimentActionStatus' "pending"
pattern ExperimentActionStatus_Running :: ExperimentActionStatus
pattern $bExperimentActionStatus_Running :: ExperimentActionStatus
$mExperimentActionStatus_Running :: forall r.
ExperimentActionStatus -> (Void# -> r) -> (Void# -> r) -> r
ExperimentActionStatus_Running = ExperimentActionStatus' "running"
pattern ExperimentActionStatus_Stopped :: ExperimentActionStatus
pattern $bExperimentActionStatus_Stopped :: ExperimentActionStatus
$mExperimentActionStatus_Stopped :: forall r.
ExperimentActionStatus -> (Void# -> r) -> (Void# -> r) -> r
ExperimentActionStatus_Stopped = ExperimentActionStatus' "stopped"
pattern ExperimentActionStatus_Stopping :: ExperimentActionStatus
pattern $bExperimentActionStatus_Stopping :: ExperimentActionStatus
$mExperimentActionStatus_Stopping :: forall r.
ExperimentActionStatus -> (Void# -> r) -> (Void# -> r) -> r
ExperimentActionStatus_Stopping = ExperimentActionStatus' "stopping"
{-# COMPLETE
ExperimentActionStatus_Cancelled,
ExperimentActionStatus_Completed,
ExperimentActionStatus_Failed,
ExperimentActionStatus_Initiating,
ExperimentActionStatus_Pending,
ExperimentActionStatus_Running,
ExperimentActionStatus_Stopped,
ExperimentActionStatus_Stopping,
ExperimentActionStatus'
#-}