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