{-# 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.CapacityProviderUpdateStatus
( CapacityProviderUpdateStatus
( ..,
CapacityProviderUpdateStatus_DELETE_COMPLETE,
CapacityProviderUpdateStatus_DELETE_FAILED,
CapacityProviderUpdateStatus_DELETE_IN_PROGRESS,
CapacityProviderUpdateStatus_UPDATE_COMPLETE,
CapacityProviderUpdateStatus_UPDATE_FAILED,
CapacityProviderUpdateStatus_UPDATE_IN_PROGRESS
),
)
where
import qualified Amazonka.Core as Core
import qualified Amazonka.Prelude as Prelude
newtype CapacityProviderUpdateStatus = CapacityProviderUpdateStatus'
{ CapacityProviderUpdateStatus -> Text
fromCapacityProviderUpdateStatus ::
Core.Text
}
deriving stock
( Int -> CapacityProviderUpdateStatus -> ShowS
[CapacityProviderUpdateStatus] -> ShowS
CapacityProviderUpdateStatus -> String
(Int -> CapacityProviderUpdateStatus -> ShowS)
-> (CapacityProviderUpdateStatus -> String)
-> ([CapacityProviderUpdateStatus] -> ShowS)
-> Show CapacityProviderUpdateStatus
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [CapacityProviderUpdateStatus] -> ShowS
$cshowList :: [CapacityProviderUpdateStatus] -> ShowS
show :: CapacityProviderUpdateStatus -> String
$cshow :: CapacityProviderUpdateStatus -> String
showsPrec :: Int -> CapacityProviderUpdateStatus -> ShowS
$cshowsPrec :: Int -> CapacityProviderUpdateStatus -> ShowS
Prelude.Show,
ReadPrec [CapacityProviderUpdateStatus]
ReadPrec CapacityProviderUpdateStatus
Int -> ReadS CapacityProviderUpdateStatus
ReadS [CapacityProviderUpdateStatus]
(Int -> ReadS CapacityProviderUpdateStatus)
-> ReadS [CapacityProviderUpdateStatus]
-> ReadPrec CapacityProviderUpdateStatus
-> ReadPrec [CapacityProviderUpdateStatus]
-> Read CapacityProviderUpdateStatus
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [CapacityProviderUpdateStatus]
$creadListPrec :: ReadPrec [CapacityProviderUpdateStatus]
readPrec :: ReadPrec CapacityProviderUpdateStatus
$creadPrec :: ReadPrec CapacityProviderUpdateStatus
readList :: ReadS [CapacityProviderUpdateStatus]
$creadList :: ReadS [CapacityProviderUpdateStatus]
readsPrec :: Int -> ReadS CapacityProviderUpdateStatus
$creadsPrec :: Int -> ReadS CapacityProviderUpdateStatus
Prelude.Read,
CapacityProviderUpdateStatus
-> CapacityProviderUpdateStatus -> Bool
(CapacityProviderUpdateStatus
-> CapacityProviderUpdateStatus -> Bool)
-> (CapacityProviderUpdateStatus
-> CapacityProviderUpdateStatus -> Bool)
-> Eq CapacityProviderUpdateStatus
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: CapacityProviderUpdateStatus
-> CapacityProviderUpdateStatus -> Bool
$c/= :: CapacityProviderUpdateStatus
-> CapacityProviderUpdateStatus -> Bool
== :: CapacityProviderUpdateStatus
-> CapacityProviderUpdateStatus -> Bool
$c== :: CapacityProviderUpdateStatus
-> CapacityProviderUpdateStatus -> Bool
Prelude.Eq,
Eq CapacityProviderUpdateStatus
Eq CapacityProviderUpdateStatus
-> (CapacityProviderUpdateStatus
-> CapacityProviderUpdateStatus -> Ordering)
-> (CapacityProviderUpdateStatus
-> CapacityProviderUpdateStatus -> Bool)
-> (CapacityProviderUpdateStatus
-> CapacityProviderUpdateStatus -> Bool)
-> (CapacityProviderUpdateStatus
-> CapacityProviderUpdateStatus -> Bool)
-> (CapacityProviderUpdateStatus
-> CapacityProviderUpdateStatus -> Bool)
-> (CapacityProviderUpdateStatus
-> CapacityProviderUpdateStatus -> CapacityProviderUpdateStatus)
-> (CapacityProviderUpdateStatus
-> CapacityProviderUpdateStatus -> CapacityProviderUpdateStatus)
-> Ord CapacityProviderUpdateStatus
CapacityProviderUpdateStatus
-> CapacityProviderUpdateStatus -> Bool
CapacityProviderUpdateStatus
-> CapacityProviderUpdateStatus -> Ordering
CapacityProviderUpdateStatus
-> CapacityProviderUpdateStatus -> CapacityProviderUpdateStatus
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 :: CapacityProviderUpdateStatus
-> CapacityProviderUpdateStatus -> CapacityProviderUpdateStatus
$cmin :: CapacityProviderUpdateStatus
-> CapacityProviderUpdateStatus -> CapacityProviderUpdateStatus
max :: CapacityProviderUpdateStatus
-> CapacityProviderUpdateStatus -> CapacityProviderUpdateStatus
$cmax :: CapacityProviderUpdateStatus
-> CapacityProviderUpdateStatus -> CapacityProviderUpdateStatus
>= :: CapacityProviderUpdateStatus
-> CapacityProviderUpdateStatus -> Bool
$c>= :: CapacityProviderUpdateStatus
-> CapacityProviderUpdateStatus -> Bool
> :: CapacityProviderUpdateStatus
-> CapacityProviderUpdateStatus -> Bool
$c> :: CapacityProviderUpdateStatus
-> CapacityProviderUpdateStatus -> Bool
<= :: CapacityProviderUpdateStatus
-> CapacityProviderUpdateStatus -> Bool
$c<= :: CapacityProviderUpdateStatus
-> CapacityProviderUpdateStatus -> Bool
< :: CapacityProviderUpdateStatus
-> CapacityProviderUpdateStatus -> Bool
$c< :: CapacityProviderUpdateStatus
-> CapacityProviderUpdateStatus -> Bool
compare :: CapacityProviderUpdateStatus
-> CapacityProviderUpdateStatus -> Ordering
$ccompare :: CapacityProviderUpdateStatus
-> CapacityProviderUpdateStatus -> Ordering
$cp1Ord :: Eq CapacityProviderUpdateStatus
Prelude.Ord,
(forall x.
CapacityProviderUpdateStatus -> Rep CapacityProviderUpdateStatus x)
-> (forall x.
Rep CapacityProviderUpdateStatus x -> CapacityProviderUpdateStatus)
-> Generic CapacityProviderUpdateStatus
forall x.
Rep CapacityProviderUpdateStatus x -> CapacityProviderUpdateStatus
forall x.
CapacityProviderUpdateStatus -> Rep CapacityProviderUpdateStatus x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep CapacityProviderUpdateStatus x -> CapacityProviderUpdateStatus
$cfrom :: forall x.
CapacityProviderUpdateStatus -> Rep CapacityProviderUpdateStatus x
Prelude.Generic
)
deriving newtype
( Int -> CapacityProviderUpdateStatus -> Int
CapacityProviderUpdateStatus -> Int
(Int -> CapacityProviderUpdateStatus -> Int)
-> (CapacityProviderUpdateStatus -> Int)
-> Hashable CapacityProviderUpdateStatus
forall a. (Int -> a -> Int) -> (a -> Int) -> Hashable a
hash :: CapacityProviderUpdateStatus -> Int
$chash :: CapacityProviderUpdateStatus -> Int
hashWithSalt :: Int -> CapacityProviderUpdateStatus -> Int
$chashWithSalt :: Int -> CapacityProviderUpdateStatus -> Int
Prelude.Hashable,
CapacityProviderUpdateStatus -> ()
(CapacityProviderUpdateStatus -> ())
-> NFData CapacityProviderUpdateStatus
forall a. (a -> ()) -> NFData a
rnf :: CapacityProviderUpdateStatus -> ()
$crnf :: CapacityProviderUpdateStatus -> ()
Prelude.NFData,
Text -> Either String CapacityProviderUpdateStatus
(Text -> Either String CapacityProviderUpdateStatus)
-> FromText CapacityProviderUpdateStatus
forall a. (Text -> Either String a) -> FromText a
fromText :: Text -> Either String CapacityProviderUpdateStatus
$cfromText :: Text -> Either String CapacityProviderUpdateStatus
Core.FromText,
CapacityProviderUpdateStatus -> Text
(CapacityProviderUpdateStatus -> Text)
-> ToText CapacityProviderUpdateStatus
forall a. (a -> Text) -> ToText a
toText :: CapacityProviderUpdateStatus -> Text
$ctoText :: CapacityProviderUpdateStatus -> Text
Core.ToText,
CapacityProviderUpdateStatus -> ByteString
(CapacityProviderUpdateStatus -> ByteString)
-> ToByteString CapacityProviderUpdateStatus
forall a. (a -> ByteString) -> ToByteString a
toBS :: CapacityProviderUpdateStatus -> ByteString
$ctoBS :: CapacityProviderUpdateStatus -> ByteString
Core.ToByteString,
CapacityProviderUpdateStatus -> ByteStringBuilder
(CapacityProviderUpdateStatus -> ByteStringBuilder)
-> ToLog CapacityProviderUpdateStatus
forall a. (a -> ByteStringBuilder) -> ToLog a
build :: CapacityProviderUpdateStatus -> ByteStringBuilder
$cbuild :: CapacityProviderUpdateStatus -> ByteStringBuilder
Core.ToLog,
HeaderName -> CapacityProviderUpdateStatus -> [Header]
(HeaderName -> CapacityProviderUpdateStatus -> [Header])
-> ToHeader CapacityProviderUpdateStatus
forall a. (HeaderName -> a -> [Header]) -> ToHeader a
toHeader :: HeaderName -> CapacityProviderUpdateStatus -> [Header]
$ctoHeader :: HeaderName -> CapacityProviderUpdateStatus -> [Header]
Core.ToHeader,
CapacityProviderUpdateStatus -> QueryString
(CapacityProviderUpdateStatus -> QueryString)
-> ToQuery CapacityProviderUpdateStatus
forall a. (a -> QueryString) -> ToQuery a
toQuery :: CapacityProviderUpdateStatus -> QueryString
$ctoQuery :: CapacityProviderUpdateStatus -> QueryString
Core.ToQuery,
Value -> Parser [CapacityProviderUpdateStatus]
Value -> Parser CapacityProviderUpdateStatus
(Value -> Parser CapacityProviderUpdateStatus)
-> (Value -> Parser [CapacityProviderUpdateStatus])
-> FromJSON CapacityProviderUpdateStatus
forall a.
(Value -> Parser a) -> (Value -> Parser [a]) -> FromJSON a
parseJSONList :: Value -> Parser [CapacityProviderUpdateStatus]
$cparseJSONList :: Value -> Parser [CapacityProviderUpdateStatus]
parseJSON :: Value -> Parser CapacityProviderUpdateStatus
$cparseJSON :: Value -> Parser CapacityProviderUpdateStatus
Core.FromJSON,
FromJSONKeyFunction [CapacityProviderUpdateStatus]
FromJSONKeyFunction CapacityProviderUpdateStatus
FromJSONKeyFunction CapacityProviderUpdateStatus
-> FromJSONKeyFunction [CapacityProviderUpdateStatus]
-> FromJSONKey CapacityProviderUpdateStatus
forall a.
FromJSONKeyFunction a -> FromJSONKeyFunction [a] -> FromJSONKey a
fromJSONKeyList :: FromJSONKeyFunction [CapacityProviderUpdateStatus]
$cfromJSONKeyList :: FromJSONKeyFunction [CapacityProviderUpdateStatus]
fromJSONKey :: FromJSONKeyFunction CapacityProviderUpdateStatus
$cfromJSONKey :: FromJSONKeyFunction CapacityProviderUpdateStatus
Core.FromJSONKey,
[CapacityProviderUpdateStatus] -> Encoding
[CapacityProviderUpdateStatus] -> Value
CapacityProviderUpdateStatus -> Encoding
CapacityProviderUpdateStatus -> Value
(CapacityProviderUpdateStatus -> Value)
-> (CapacityProviderUpdateStatus -> Encoding)
-> ([CapacityProviderUpdateStatus] -> Value)
-> ([CapacityProviderUpdateStatus] -> Encoding)
-> ToJSON CapacityProviderUpdateStatus
forall a.
(a -> Value)
-> (a -> Encoding)
-> ([a] -> Value)
-> ([a] -> Encoding)
-> ToJSON a
toEncodingList :: [CapacityProviderUpdateStatus] -> Encoding
$ctoEncodingList :: [CapacityProviderUpdateStatus] -> Encoding
toJSONList :: [CapacityProviderUpdateStatus] -> Value
$ctoJSONList :: [CapacityProviderUpdateStatus] -> Value
toEncoding :: CapacityProviderUpdateStatus -> Encoding
$ctoEncoding :: CapacityProviderUpdateStatus -> Encoding
toJSON :: CapacityProviderUpdateStatus -> Value
$ctoJSON :: CapacityProviderUpdateStatus -> Value
Core.ToJSON,
ToJSONKeyFunction [CapacityProviderUpdateStatus]
ToJSONKeyFunction CapacityProviderUpdateStatus
ToJSONKeyFunction CapacityProviderUpdateStatus
-> ToJSONKeyFunction [CapacityProviderUpdateStatus]
-> ToJSONKey CapacityProviderUpdateStatus
forall a.
ToJSONKeyFunction a -> ToJSONKeyFunction [a] -> ToJSONKey a
toJSONKeyList :: ToJSONKeyFunction [CapacityProviderUpdateStatus]
$ctoJSONKeyList :: ToJSONKeyFunction [CapacityProviderUpdateStatus]
toJSONKey :: ToJSONKeyFunction CapacityProviderUpdateStatus
$ctoJSONKey :: ToJSONKeyFunction CapacityProviderUpdateStatus
Core.ToJSONKey,
[Node] -> Either String CapacityProviderUpdateStatus
([Node] -> Either String CapacityProviderUpdateStatus)
-> FromXML CapacityProviderUpdateStatus
forall a. ([Node] -> Either String a) -> FromXML a
parseXML :: [Node] -> Either String CapacityProviderUpdateStatus
$cparseXML :: [Node] -> Either String CapacityProviderUpdateStatus
Core.FromXML,
CapacityProviderUpdateStatus -> XML
(CapacityProviderUpdateStatus -> XML)
-> ToXML CapacityProviderUpdateStatus
forall a. (a -> XML) -> ToXML a
toXML :: CapacityProviderUpdateStatus -> XML
$ctoXML :: CapacityProviderUpdateStatus -> XML
Core.ToXML
)
pattern CapacityProviderUpdateStatus_DELETE_COMPLETE :: CapacityProviderUpdateStatus
pattern $bCapacityProviderUpdateStatus_DELETE_COMPLETE :: CapacityProviderUpdateStatus
$mCapacityProviderUpdateStatus_DELETE_COMPLETE :: forall r.
CapacityProviderUpdateStatus -> (Void# -> r) -> (Void# -> r) -> r
CapacityProviderUpdateStatus_DELETE_COMPLETE = CapacityProviderUpdateStatus' "DELETE_COMPLETE"
pattern CapacityProviderUpdateStatus_DELETE_FAILED :: CapacityProviderUpdateStatus
pattern $bCapacityProviderUpdateStatus_DELETE_FAILED :: CapacityProviderUpdateStatus
$mCapacityProviderUpdateStatus_DELETE_FAILED :: forall r.
CapacityProviderUpdateStatus -> (Void# -> r) -> (Void# -> r) -> r
CapacityProviderUpdateStatus_DELETE_FAILED = CapacityProviderUpdateStatus' "DELETE_FAILED"
pattern CapacityProviderUpdateStatus_DELETE_IN_PROGRESS :: CapacityProviderUpdateStatus
pattern $bCapacityProviderUpdateStatus_DELETE_IN_PROGRESS :: CapacityProviderUpdateStatus
$mCapacityProviderUpdateStatus_DELETE_IN_PROGRESS :: forall r.
CapacityProviderUpdateStatus -> (Void# -> r) -> (Void# -> r) -> r
CapacityProviderUpdateStatus_DELETE_IN_PROGRESS = CapacityProviderUpdateStatus' "DELETE_IN_PROGRESS"
pattern CapacityProviderUpdateStatus_UPDATE_COMPLETE :: CapacityProviderUpdateStatus
pattern $bCapacityProviderUpdateStatus_UPDATE_COMPLETE :: CapacityProviderUpdateStatus
$mCapacityProviderUpdateStatus_UPDATE_COMPLETE :: forall r.
CapacityProviderUpdateStatus -> (Void# -> r) -> (Void# -> r) -> r
CapacityProviderUpdateStatus_UPDATE_COMPLETE = CapacityProviderUpdateStatus' "UPDATE_COMPLETE"
pattern CapacityProviderUpdateStatus_UPDATE_FAILED :: CapacityProviderUpdateStatus
pattern $bCapacityProviderUpdateStatus_UPDATE_FAILED :: CapacityProviderUpdateStatus
$mCapacityProviderUpdateStatus_UPDATE_FAILED :: forall r.
CapacityProviderUpdateStatus -> (Void# -> r) -> (Void# -> r) -> r
CapacityProviderUpdateStatus_UPDATE_FAILED = CapacityProviderUpdateStatus' "UPDATE_FAILED"
pattern CapacityProviderUpdateStatus_UPDATE_IN_PROGRESS :: CapacityProviderUpdateStatus
pattern $bCapacityProviderUpdateStatus_UPDATE_IN_PROGRESS :: CapacityProviderUpdateStatus
$mCapacityProviderUpdateStatus_UPDATE_IN_PROGRESS :: forall r.
CapacityProviderUpdateStatus -> (Void# -> r) -> (Void# -> r) -> r
CapacityProviderUpdateStatus_UPDATE_IN_PROGRESS = CapacityProviderUpdateStatus' "UPDATE_IN_PROGRESS"
{-# COMPLETE
CapacityProviderUpdateStatus_DELETE_COMPLETE,
CapacityProviderUpdateStatus_DELETE_FAILED,
CapacityProviderUpdateStatus_DELETE_IN_PROGRESS,
CapacityProviderUpdateStatus_UPDATE_COMPLETE,
CapacityProviderUpdateStatus_UPDATE_FAILED,
CapacityProviderUpdateStatus_UPDATE_IN_PROGRESS,
CapacityProviderUpdateStatus'
#-}