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