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