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