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