{-# 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.ScalingPlanStatusCode
( ScalingPlanStatusCode
( ..,
ScalingPlanStatusCode_Active,
ScalingPlanStatusCode_ActiveWithProblems,
ScalingPlanStatusCode_CreationFailed,
ScalingPlanStatusCode_CreationInProgress,
ScalingPlanStatusCode_DeletionFailed,
ScalingPlanStatusCode_DeletionInProgress,
ScalingPlanStatusCode_UpdateFailed,
ScalingPlanStatusCode_UpdateInProgress
),
)
where
import qualified Amazonka.Core as Core
import qualified Amazonka.Prelude as Prelude
newtype ScalingPlanStatusCode = ScalingPlanStatusCode'
{ ScalingPlanStatusCode -> Text
fromScalingPlanStatusCode ::
Core.Text
}
deriving stock
( Int -> ScalingPlanStatusCode -> ShowS
[ScalingPlanStatusCode] -> ShowS
ScalingPlanStatusCode -> String
(Int -> ScalingPlanStatusCode -> ShowS)
-> (ScalingPlanStatusCode -> String)
-> ([ScalingPlanStatusCode] -> ShowS)
-> Show ScalingPlanStatusCode
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ScalingPlanStatusCode] -> ShowS
$cshowList :: [ScalingPlanStatusCode] -> ShowS
show :: ScalingPlanStatusCode -> String
$cshow :: ScalingPlanStatusCode -> String
showsPrec :: Int -> ScalingPlanStatusCode -> ShowS
$cshowsPrec :: Int -> ScalingPlanStatusCode -> ShowS
Prelude.Show,
ReadPrec [ScalingPlanStatusCode]
ReadPrec ScalingPlanStatusCode
Int -> ReadS ScalingPlanStatusCode
ReadS [ScalingPlanStatusCode]
(Int -> ReadS ScalingPlanStatusCode)
-> ReadS [ScalingPlanStatusCode]
-> ReadPrec ScalingPlanStatusCode
-> ReadPrec [ScalingPlanStatusCode]
-> Read ScalingPlanStatusCode
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [ScalingPlanStatusCode]
$creadListPrec :: ReadPrec [ScalingPlanStatusCode]
readPrec :: ReadPrec ScalingPlanStatusCode
$creadPrec :: ReadPrec ScalingPlanStatusCode
readList :: ReadS [ScalingPlanStatusCode]
$creadList :: ReadS [ScalingPlanStatusCode]
readsPrec :: Int -> ReadS ScalingPlanStatusCode
$creadsPrec :: Int -> ReadS ScalingPlanStatusCode
Prelude.Read,
ScalingPlanStatusCode -> ScalingPlanStatusCode -> Bool
(ScalingPlanStatusCode -> ScalingPlanStatusCode -> Bool)
-> (ScalingPlanStatusCode -> ScalingPlanStatusCode -> Bool)
-> Eq ScalingPlanStatusCode
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ScalingPlanStatusCode -> ScalingPlanStatusCode -> Bool
$c/= :: ScalingPlanStatusCode -> ScalingPlanStatusCode -> Bool
== :: ScalingPlanStatusCode -> ScalingPlanStatusCode -> Bool
$c== :: ScalingPlanStatusCode -> ScalingPlanStatusCode -> Bool
Prelude.Eq,
Eq ScalingPlanStatusCode
Eq ScalingPlanStatusCode
-> (ScalingPlanStatusCode -> ScalingPlanStatusCode -> Ordering)
-> (ScalingPlanStatusCode -> ScalingPlanStatusCode -> Bool)
-> (ScalingPlanStatusCode -> ScalingPlanStatusCode -> Bool)
-> (ScalingPlanStatusCode -> ScalingPlanStatusCode -> Bool)
-> (ScalingPlanStatusCode -> ScalingPlanStatusCode -> Bool)
-> (ScalingPlanStatusCode
-> ScalingPlanStatusCode -> ScalingPlanStatusCode)
-> (ScalingPlanStatusCode
-> ScalingPlanStatusCode -> ScalingPlanStatusCode)
-> Ord ScalingPlanStatusCode
ScalingPlanStatusCode -> ScalingPlanStatusCode -> Bool
ScalingPlanStatusCode -> ScalingPlanStatusCode -> Ordering
ScalingPlanStatusCode
-> ScalingPlanStatusCode -> ScalingPlanStatusCode
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 :: ScalingPlanStatusCode
-> ScalingPlanStatusCode -> ScalingPlanStatusCode
$cmin :: ScalingPlanStatusCode
-> ScalingPlanStatusCode -> ScalingPlanStatusCode
max :: ScalingPlanStatusCode
-> ScalingPlanStatusCode -> ScalingPlanStatusCode
$cmax :: ScalingPlanStatusCode
-> ScalingPlanStatusCode -> ScalingPlanStatusCode
>= :: ScalingPlanStatusCode -> ScalingPlanStatusCode -> Bool
$c>= :: ScalingPlanStatusCode -> ScalingPlanStatusCode -> Bool
> :: ScalingPlanStatusCode -> ScalingPlanStatusCode -> Bool
$c> :: ScalingPlanStatusCode -> ScalingPlanStatusCode -> Bool
<= :: ScalingPlanStatusCode -> ScalingPlanStatusCode -> Bool
$c<= :: ScalingPlanStatusCode -> ScalingPlanStatusCode -> Bool
< :: ScalingPlanStatusCode -> ScalingPlanStatusCode -> Bool
$c< :: ScalingPlanStatusCode -> ScalingPlanStatusCode -> Bool
compare :: ScalingPlanStatusCode -> ScalingPlanStatusCode -> Ordering
$ccompare :: ScalingPlanStatusCode -> ScalingPlanStatusCode -> Ordering
$cp1Ord :: Eq ScalingPlanStatusCode
Prelude.Ord,
(forall x. ScalingPlanStatusCode -> Rep ScalingPlanStatusCode x)
-> (forall x. Rep ScalingPlanStatusCode x -> ScalingPlanStatusCode)
-> Generic ScalingPlanStatusCode
forall x. Rep ScalingPlanStatusCode x -> ScalingPlanStatusCode
forall x. ScalingPlanStatusCode -> Rep ScalingPlanStatusCode x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep ScalingPlanStatusCode x -> ScalingPlanStatusCode
$cfrom :: forall x. ScalingPlanStatusCode -> Rep ScalingPlanStatusCode x
Prelude.Generic
)
deriving newtype
( Int -> ScalingPlanStatusCode -> Int
ScalingPlanStatusCode -> Int
(Int -> ScalingPlanStatusCode -> Int)
-> (ScalingPlanStatusCode -> Int) -> Hashable ScalingPlanStatusCode
forall a. (Int -> a -> Int) -> (a -> Int) -> Hashable a
hash :: ScalingPlanStatusCode -> Int
$chash :: ScalingPlanStatusCode -> Int
hashWithSalt :: Int -> ScalingPlanStatusCode -> Int
$chashWithSalt :: Int -> ScalingPlanStatusCode -> Int
Prelude.Hashable,
ScalingPlanStatusCode -> ()
(ScalingPlanStatusCode -> ()) -> NFData ScalingPlanStatusCode
forall a. (a -> ()) -> NFData a
rnf :: ScalingPlanStatusCode -> ()
$crnf :: ScalingPlanStatusCode -> ()
Prelude.NFData,
Text -> Either String ScalingPlanStatusCode
(Text -> Either String ScalingPlanStatusCode)
-> FromText ScalingPlanStatusCode
forall a. (Text -> Either String a) -> FromText a
fromText :: Text -> Either String ScalingPlanStatusCode
$cfromText :: Text -> Either String ScalingPlanStatusCode
Core.FromText,
ScalingPlanStatusCode -> Text
(ScalingPlanStatusCode -> Text) -> ToText ScalingPlanStatusCode
forall a. (a -> Text) -> ToText a
toText :: ScalingPlanStatusCode -> Text
$ctoText :: ScalingPlanStatusCode -> Text
Core.ToText,
ScalingPlanStatusCode -> ByteString
(ScalingPlanStatusCode -> ByteString)
-> ToByteString ScalingPlanStatusCode
forall a. (a -> ByteString) -> ToByteString a
toBS :: ScalingPlanStatusCode -> ByteString
$ctoBS :: ScalingPlanStatusCode -> ByteString
Core.ToByteString,
ScalingPlanStatusCode -> ByteStringBuilder
(ScalingPlanStatusCode -> ByteStringBuilder)
-> ToLog ScalingPlanStatusCode
forall a. (a -> ByteStringBuilder) -> ToLog a
build :: ScalingPlanStatusCode -> ByteStringBuilder
$cbuild :: ScalingPlanStatusCode -> ByteStringBuilder
Core.ToLog,
HeaderName -> ScalingPlanStatusCode -> [Header]
(HeaderName -> ScalingPlanStatusCode -> [Header])
-> ToHeader ScalingPlanStatusCode
forall a. (HeaderName -> a -> [Header]) -> ToHeader a
toHeader :: HeaderName -> ScalingPlanStatusCode -> [Header]
$ctoHeader :: HeaderName -> ScalingPlanStatusCode -> [Header]
Core.ToHeader,
ScalingPlanStatusCode -> QueryString
(ScalingPlanStatusCode -> QueryString)
-> ToQuery ScalingPlanStatusCode
forall a. (a -> QueryString) -> ToQuery a
toQuery :: ScalingPlanStatusCode -> QueryString
$ctoQuery :: ScalingPlanStatusCode -> QueryString
Core.ToQuery,
Value -> Parser [ScalingPlanStatusCode]
Value -> Parser ScalingPlanStatusCode
(Value -> Parser ScalingPlanStatusCode)
-> (Value -> Parser [ScalingPlanStatusCode])
-> FromJSON ScalingPlanStatusCode
forall a.
(Value -> Parser a) -> (Value -> Parser [a]) -> FromJSON a
parseJSONList :: Value -> Parser [ScalingPlanStatusCode]
$cparseJSONList :: Value -> Parser [ScalingPlanStatusCode]
parseJSON :: Value -> Parser ScalingPlanStatusCode
$cparseJSON :: Value -> Parser ScalingPlanStatusCode
Core.FromJSON,
FromJSONKeyFunction [ScalingPlanStatusCode]
FromJSONKeyFunction ScalingPlanStatusCode
FromJSONKeyFunction ScalingPlanStatusCode
-> FromJSONKeyFunction [ScalingPlanStatusCode]
-> FromJSONKey ScalingPlanStatusCode
forall a.
FromJSONKeyFunction a -> FromJSONKeyFunction [a] -> FromJSONKey a
fromJSONKeyList :: FromJSONKeyFunction [ScalingPlanStatusCode]
$cfromJSONKeyList :: FromJSONKeyFunction [ScalingPlanStatusCode]
fromJSONKey :: FromJSONKeyFunction ScalingPlanStatusCode
$cfromJSONKey :: FromJSONKeyFunction ScalingPlanStatusCode
Core.FromJSONKey,
[ScalingPlanStatusCode] -> Encoding
[ScalingPlanStatusCode] -> Value
ScalingPlanStatusCode -> Encoding
ScalingPlanStatusCode -> Value
(ScalingPlanStatusCode -> Value)
-> (ScalingPlanStatusCode -> Encoding)
-> ([ScalingPlanStatusCode] -> Value)
-> ([ScalingPlanStatusCode] -> Encoding)
-> ToJSON ScalingPlanStatusCode
forall a.
(a -> Value)
-> (a -> Encoding)
-> ([a] -> Value)
-> ([a] -> Encoding)
-> ToJSON a
toEncodingList :: [ScalingPlanStatusCode] -> Encoding
$ctoEncodingList :: [ScalingPlanStatusCode] -> Encoding
toJSONList :: [ScalingPlanStatusCode] -> Value
$ctoJSONList :: [ScalingPlanStatusCode] -> Value
toEncoding :: ScalingPlanStatusCode -> Encoding
$ctoEncoding :: ScalingPlanStatusCode -> Encoding
toJSON :: ScalingPlanStatusCode -> Value
$ctoJSON :: ScalingPlanStatusCode -> Value
Core.ToJSON,
ToJSONKeyFunction [ScalingPlanStatusCode]
ToJSONKeyFunction ScalingPlanStatusCode
ToJSONKeyFunction ScalingPlanStatusCode
-> ToJSONKeyFunction [ScalingPlanStatusCode]
-> ToJSONKey ScalingPlanStatusCode
forall a.
ToJSONKeyFunction a -> ToJSONKeyFunction [a] -> ToJSONKey a
toJSONKeyList :: ToJSONKeyFunction [ScalingPlanStatusCode]
$ctoJSONKeyList :: ToJSONKeyFunction [ScalingPlanStatusCode]
toJSONKey :: ToJSONKeyFunction ScalingPlanStatusCode
$ctoJSONKey :: ToJSONKeyFunction ScalingPlanStatusCode
Core.ToJSONKey,
[Node] -> Either String ScalingPlanStatusCode
([Node] -> Either String ScalingPlanStatusCode)
-> FromXML ScalingPlanStatusCode
forall a. ([Node] -> Either String a) -> FromXML a
parseXML :: [Node] -> Either String ScalingPlanStatusCode
$cparseXML :: [Node] -> Either String ScalingPlanStatusCode
Core.FromXML,
ScalingPlanStatusCode -> XML
(ScalingPlanStatusCode -> XML) -> ToXML ScalingPlanStatusCode
forall a. (a -> XML) -> ToXML a
toXML :: ScalingPlanStatusCode -> XML
$ctoXML :: ScalingPlanStatusCode -> XML
Core.ToXML
)
pattern ScalingPlanStatusCode_Active :: ScalingPlanStatusCode
pattern $bScalingPlanStatusCode_Active :: ScalingPlanStatusCode
$mScalingPlanStatusCode_Active :: forall r.
ScalingPlanStatusCode -> (Void# -> r) -> (Void# -> r) -> r
ScalingPlanStatusCode_Active = ScalingPlanStatusCode' "Active"
pattern ScalingPlanStatusCode_ActiveWithProblems :: ScalingPlanStatusCode
pattern $bScalingPlanStatusCode_ActiveWithProblems :: ScalingPlanStatusCode
$mScalingPlanStatusCode_ActiveWithProblems :: forall r.
ScalingPlanStatusCode -> (Void# -> r) -> (Void# -> r) -> r
ScalingPlanStatusCode_ActiveWithProblems = ScalingPlanStatusCode' "ActiveWithProblems"
pattern ScalingPlanStatusCode_CreationFailed :: ScalingPlanStatusCode
pattern $bScalingPlanStatusCode_CreationFailed :: ScalingPlanStatusCode
$mScalingPlanStatusCode_CreationFailed :: forall r.
ScalingPlanStatusCode -> (Void# -> r) -> (Void# -> r) -> r
ScalingPlanStatusCode_CreationFailed = ScalingPlanStatusCode' "CreationFailed"
pattern ScalingPlanStatusCode_CreationInProgress :: ScalingPlanStatusCode
pattern $bScalingPlanStatusCode_CreationInProgress :: ScalingPlanStatusCode
$mScalingPlanStatusCode_CreationInProgress :: forall r.
ScalingPlanStatusCode -> (Void# -> r) -> (Void# -> r) -> r
ScalingPlanStatusCode_CreationInProgress = ScalingPlanStatusCode' "CreationInProgress"
pattern ScalingPlanStatusCode_DeletionFailed :: ScalingPlanStatusCode
pattern $bScalingPlanStatusCode_DeletionFailed :: ScalingPlanStatusCode
$mScalingPlanStatusCode_DeletionFailed :: forall r.
ScalingPlanStatusCode -> (Void# -> r) -> (Void# -> r) -> r
ScalingPlanStatusCode_DeletionFailed = ScalingPlanStatusCode' "DeletionFailed"
pattern ScalingPlanStatusCode_DeletionInProgress :: ScalingPlanStatusCode
pattern $bScalingPlanStatusCode_DeletionInProgress :: ScalingPlanStatusCode
$mScalingPlanStatusCode_DeletionInProgress :: forall r.
ScalingPlanStatusCode -> (Void# -> r) -> (Void# -> r) -> r
ScalingPlanStatusCode_DeletionInProgress = ScalingPlanStatusCode' "DeletionInProgress"
pattern ScalingPlanStatusCode_UpdateFailed :: ScalingPlanStatusCode
pattern $bScalingPlanStatusCode_UpdateFailed :: ScalingPlanStatusCode
$mScalingPlanStatusCode_UpdateFailed :: forall r.
ScalingPlanStatusCode -> (Void# -> r) -> (Void# -> r) -> r
ScalingPlanStatusCode_UpdateFailed = ScalingPlanStatusCode' "UpdateFailed"
pattern ScalingPlanStatusCode_UpdateInProgress :: ScalingPlanStatusCode
pattern $bScalingPlanStatusCode_UpdateInProgress :: ScalingPlanStatusCode
$mScalingPlanStatusCode_UpdateInProgress :: forall r.
ScalingPlanStatusCode -> (Void# -> r) -> (Void# -> r) -> r
ScalingPlanStatusCode_UpdateInProgress = ScalingPlanStatusCode' "UpdateInProgress"
{-# COMPLETE
ScalingPlanStatusCode_Active,
ScalingPlanStatusCode_ActiveWithProblems,
ScalingPlanStatusCode_CreationFailed,
ScalingPlanStatusCode_CreationInProgress,
ScalingPlanStatusCode_DeletionFailed,
ScalingPlanStatusCode_DeletionInProgress,
ScalingPlanStatusCode_UpdateFailed,
ScalingPlanStatusCode_UpdateInProgress,
ScalingPlanStatusCode'
#-}