module Stratosphere.KafkaConnect.Connector.ScaleInPolicyProperty (
ScaleInPolicyProperty(..), mkScaleInPolicyProperty
) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data ScaleInPolicyProperty
=
ScaleInPolicyProperty {ScaleInPolicyProperty -> ()
haddock_workaround_ :: (),
ScaleInPolicyProperty -> Value Integer
cpuUtilizationPercentage :: (Value Prelude.Integer)}
deriving stock (ScaleInPolicyProperty -> ScaleInPolicyProperty -> Bool
(ScaleInPolicyProperty -> ScaleInPolicyProperty -> Bool)
-> (ScaleInPolicyProperty -> ScaleInPolicyProperty -> Bool)
-> Eq ScaleInPolicyProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: ScaleInPolicyProperty -> ScaleInPolicyProperty -> Bool
== :: ScaleInPolicyProperty -> ScaleInPolicyProperty -> Bool
$c/= :: ScaleInPolicyProperty -> ScaleInPolicyProperty -> Bool
/= :: ScaleInPolicyProperty -> ScaleInPolicyProperty -> Bool
Prelude.Eq, Int -> ScaleInPolicyProperty -> ShowS
[ScaleInPolicyProperty] -> ShowS
ScaleInPolicyProperty -> String
(Int -> ScaleInPolicyProperty -> ShowS)
-> (ScaleInPolicyProperty -> String)
-> ([ScaleInPolicyProperty] -> ShowS)
-> Show ScaleInPolicyProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> ScaleInPolicyProperty -> ShowS
showsPrec :: Int -> ScaleInPolicyProperty -> ShowS
$cshow :: ScaleInPolicyProperty -> String
show :: ScaleInPolicyProperty -> String
$cshowList :: [ScaleInPolicyProperty] -> ShowS
showList :: [ScaleInPolicyProperty] -> ShowS
Prelude.Show)
mkScaleInPolicyProperty ::
Value Prelude.Integer -> ScaleInPolicyProperty
mkScaleInPolicyProperty :: Value Integer -> ScaleInPolicyProperty
mkScaleInPolicyProperty Value Integer
cpuUtilizationPercentage
= ScaleInPolicyProperty
{haddock_workaround_ :: ()
haddock_workaround_ = (),
cpuUtilizationPercentage :: Value Integer
cpuUtilizationPercentage = Value Integer
cpuUtilizationPercentage}
instance ToResourceProperties ScaleInPolicyProperty where
toResourceProperties :: ScaleInPolicyProperty -> ResourceProperties
toResourceProperties ScaleInPolicyProperty {()
Value Integer
haddock_workaround_ :: ScaleInPolicyProperty -> ()
cpuUtilizationPercentage :: ScaleInPolicyProperty -> Value Integer
haddock_workaround_ :: ()
cpuUtilizationPercentage :: Value Integer
..}
= ResourceProperties
{awsType :: Text
awsType = Text
"AWS::KafkaConnect::Connector.ScaleInPolicy",
supportsTags :: Bool
supportsTags = Bool
Prelude.False,
properties :: Object
properties = [Key
"CpuUtilizationPercentage"
Key -> Value Integer -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
JSON..= Value Integer
cpuUtilizationPercentage]}
instance JSON.ToJSON ScaleInPolicyProperty where
toJSON :: ScaleInPolicyProperty -> Value
toJSON ScaleInPolicyProperty {()
Value Integer
haddock_workaround_ :: ScaleInPolicyProperty -> ()
cpuUtilizationPercentage :: ScaleInPolicyProperty -> Value Integer
haddock_workaround_ :: ()
cpuUtilizationPercentage :: Value Integer
..}
= [(Key, Value)] -> Value
JSON.object
[Key
"CpuUtilizationPercentage" Key -> Value Integer -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
JSON..= Value Integer
cpuUtilizationPercentage]
instance Property "CpuUtilizationPercentage" ScaleInPolicyProperty where
type PropertyType "CpuUtilizationPercentage" ScaleInPolicyProperty = Value Prelude.Integer
set :: PropertyType "CpuUtilizationPercentage" ScaleInPolicyProperty
-> ScaleInPolicyProperty -> ScaleInPolicyProperty
set PropertyType "CpuUtilizationPercentage" ScaleInPolicyProperty
newValue ScaleInPolicyProperty {()
Value Integer
haddock_workaround_ :: ScaleInPolicyProperty -> ()
cpuUtilizationPercentage :: ScaleInPolicyProperty -> Value Integer
haddock_workaround_ :: ()
cpuUtilizationPercentage :: Value Integer
..}
= ScaleInPolicyProperty {cpuUtilizationPercentage :: Value Integer
cpuUtilizationPercentage = PropertyType "CpuUtilizationPercentage" ScaleInPolicyProperty
Value Integer
newValue, ()
haddock_workaround_ :: ()
haddock_workaround_ :: ()
..}