module Stratosphere.Cassandra.Table.AutoScalingSettingProperty (
module Exports, AutoScalingSettingProperty(..),
mkAutoScalingSettingProperty
) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import {-# SOURCE #-} Stratosphere.Cassandra.Table.ScalingPolicyProperty as Exports
import Stratosphere.ResourceProperties
import Stratosphere.Value
data AutoScalingSettingProperty
=
AutoScalingSettingProperty {AutoScalingSettingProperty -> ()
haddock_workaround_ :: (),
AutoScalingSettingProperty -> Maybe (Value Bool)
autoScalingDisabled :: (Prelude.Maybe (Value Prelude.Bool)),
AutoScalingSettingProperty -> Maybe (Value Integer)
maximumUnits :: (Prelude.Maybe (Value Prelude.Integer)),
AutoScalingSettingProperty -> Maybe (Value Integer)
minimumUnits :: (Prelude.Maybe (Value Prelude.Integer)),
AutoScalingSettingProperty -> Maybe ScalingPolicyProperty
scalingPolicy :: (Prelude.Maybe ScalingPolicyProperty)}
deriving stock (AutoScalingSettingProperty -> AutoScalingSettingProperty -> Bool
(AutoScalingSettingProperty -> AutoScalingSettingProperty -> Bool)
-> (AutoScalingSettingProperty
-> AutoScalingSettingProperty -> Bool)
-> Eq AutoScalingSettingProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: AutoScalingSettingProperty -> AutoScalingSettingProperty -> Bool
== :: AutoScalingSettingProperty -> AutoScalingSettingProperty -> Bool
$c/= :: AutoScalingSettingProperty -> AutoScalingSettingProperty -> Bool
/= :: AutoScalingSettingProperty -> AutoScalingSettingProperty -> Bool
Prelude.Eq, Int -> AutoScalingSettingProperty -> ShowS
[AutoScalingSettingProperty] -> ShowS
AutoScalingSettingProperty -> String
(Int -> AutoScalingSettingProperty -> ShowS)
-> (AutoScalingSettingProperty -> String)
-> ([AutoScalingSettingProperty] -> ShowS)
-> Show AutoScalingSettingProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> AutoScalingSettingProperty -> ShowS
showsPrec :: Int -> AutoScalingSettingProperty -> ShowS
$cshow :: AutoScalingSettingProperty -> String
show :: AutoScalingSettingProperty -> String
$cshowList :: [AutoScalingSettingProperty] -> ShowS
showList :: [AutoScalingSettingProperty] -> ShowS
Prelude.Show)
mkAutoScalingSettingProperty :: AutoScalingSettingProperty
mkAutoScalingSettingProperty :: AutoScalingSettingProperty
mkAutoScalingSettingProperty
= AutoScalingSettingProperty
{haddock_workaround_ :: ()
haddock_workaround_ = (), autoScalingDisabled :: Maybe (Value Bool)
autoScalingDisabled = Maybe (Value Bool)
forall a. Maybe a
Prelude.Nothing,
maximumUnits :: Maybe (Value Integer)
maximumUnits = Maybe (Value Integer)
forall a. Maybe a
Prelude.Nothing, minimumUnits :: Maybe (Value Integer)
minimumUnits = Maybe (Value Integer)
forall a. Maybe a
Prelude.Nothing,
scalingPolicy :: Maybe ScalingPolicyProperty
scalingPolicy = Maybe ScalingPolicyProperty
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties AutoScalingSettingProperty where
toResourceProperties :: AutoScalingSettingProperty -> ResourceProperties
toResourceProperties AutoScalingSettingProperty {Maybe (Value Bool)
Maybe (Value Integer)
Maybe ScalingPolicyProperty
()
haddock_workaround_ :: AutoScalingSettingProperty -> ()
autoScalingDisabled :: AutoScalingSettingProperty -> Maybe (Value Bool)
maximumUnits :: AutoScalingSettingProperty -> Maybe (Value Integer)
minimumUnits :: AutoScalingSettingProperty -> Maybe (Value Integer)
scalingPolicy :: AutoScalingSettingProperty -> Maybe ScalingPolicyProperty
haddock_workaround_ :: ()
autoScalingDisabled :: Maybe (Value Bool)
maximumUnits :: Maybe (Value Integer)
minimumUnits :: Maybe (Value Integer)
scalingPolicy :: Maybe ScalingPolicyProperty
..}
= ResourceProperties
{awsType :: Text
awsType = Text
"AWS::Cassandra::Table.AutoScalingSetting",
supportsTags :: Bool
supportsTags = Bool
Prelude.False,
properties :: Object
properties = [Item Object] -> Object
forall l. IsList l => [Item l] -> l
Prelude.fromList
([Maybe (Key, Value)] -> [(Key, Value)]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
[Key -> Value Bool -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"AutoScalingDisabled" (Value Bool -> (Key, Value))
-> Maybe (Value Bool) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Value Bool)
autoScalingDisabled,
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..=) Key
"MaximumUnits" (Value Integer -> (Key, Value))
-> Maybe (Value Integer) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Value Integer)
maximumUnits,
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..=) Key
"MinimumUnits" (Value Integer -> (Key, Value))
-> Maybe (Value Integer) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Value Integer)
minimumUnits,
Key -> ScalingPolicyProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"ScalingPolicy" (ScalingPolicyProperty -> (Key, Value))
-> Maybe ScalingPolicyProperty -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe ScalingPolicyProperty
scalingPolicy])}
instance JSON.ToJSON AutoScalingSettingProperty where
toJSON :: AutoScalingSettingProperty -> Value
toJSON AutoScalingSettingProperty {Maybe (Value Bool)
Maybe (Value Integer)
Maybe ScalingPolicyProperty
()
haddock_workaround_ :: AutoScalingSettingProperty -> ()
autoScalingDisabled :: AutoScalingSettingProperty -> Maybe (Value Bool)
maximumUnits :: AutoScalingSettingProperty -> Maybe (Value Integer)
minimumUnits :: AutoScalingSettingProperty -> Maybe (Value Integer)
scalingPolicy :: AutoScalingSettingProperty -> Maybe ScalingPolicyProperty
haddock_workaround_ :: ()
autoScalingDisabled :: Maybe (Value Bool)
maximumUnits :: Maybe (Value Integer)
minimumUnits :: Maybe (Value Integer)
scalingPolicy :: Maybe ScalingPolicyProperty
..}
= [(Key, Value)] -> Value
JSON.object
([Item [(Key, Value)]] -> [(Key, Value)]
forall l. IsList l => [Item l] -> l
Prelude.fromList
([Maybe (Key, Value)] -> [(Key, Value)]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
[Key -> Value Bool -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"AutoScalingDisabled" (Value Bool -> (Key, Value))
-> Maybe (Value Bool) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Value Bool)
autoScalingDisabled,
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..=) Key
"MaximumUnits" (Value Integer -> (Key, Value))
-> Maybe (Value Integer) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Value Integer)
maximumUnits,
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..=) Key
"MinimumUnits" (Value Integer -> (Key, Value))
-> Maybe (Value Integer) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Value Integer)
minimumUnits,
Key -> ScalingPolicyProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"ScalingPolicy" (ScalingPolicyProperty -> (Key, Value))
-> Maybe ScalingPolicyProperty -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe ScalingPolicyProperty
scalingPolicy]))
instance Property "AutoScalingDisabled" AutoScalingSettingProperty where
type PropertyType "AutoScalingDisabled" AutoScalingSettingProperty = Value Prelude.Bool
set :: PropertyType "AutoScalingDisabled" AutoScalingSettingProperty
-> AutoScalingSettingProperty -> AutoScalingSettingProperty
set PropertyType "AutoScalingDisabled" AutoScalingSettingProperty
newValue AutoScalingSettingProperty {Maybe (Value Bool)
Maybe (Value Integer)
Maybe ScalingPolicyProperty
()
haddock_workaround_ :: AutoScalingSettingProperty -> ()
autoScalingDisabled :: AutoScalingSettingProperty -> Maybe (Value Bool)
maximumUnits :: AutoScalingSettingProperty -> Maybe (Value Integer)
minimumUnits :: AutoScalingSettingProperty -> Maybe (Value Integer)
scalingPolicy :: AutoScalingSettingProperty -> Maybe ScalingPolicyProperty
haddock_workaround_ :: ()
autoScalingDisabled :: Maybe (Value Bool)
maximumUnits :: Maybe (Value Integer)
minimumUnits :: Maybe (Value Integer)
scalingPolicy :: Maybe ScalingPolicyProperty
..}
= AutoScalingSettingProperty
{autoScalingDisabled :: Maybe (Value Bool)
autoScalingDisabled = Value Bool -> Maybe (Value Bool)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "AutoScalingDisabled" AutoScalingSettingProperty
Value Bool
newValue, Maybe (Value Integer)
Maybe ScalingPolicyProperty
()
haddock_workaround_ :: ()
maximumUnits :: Maybe (Value Integer)
minimumUnits :: Maybe (Value Integer)
scalingPolicy :: Maybe ScalingPolicyProperty
haddock_workaround_ :: ()
maximumUnits :: Maybe (Value Integer)
minimumUnits :: Maybe (Value Integer)
scalingPolicy :: Maybe ScalingPolicyProperty
..}
instance Property "MaximumUnits" AutoScalingSettingProperty where
type PropertyType "MaximumUnits" AutoScalingSettingProperty = Value Prelude.Integer
set :: PropertyType "MaximumUnits" AutoScalingSettingProperty
-> AutoScalingSettingProperty -> AutoScalingSettingProperty
set PropertyType "MaximumUnits" AutoScalingSettingProperty
newValue AutoScalingSettingProperty {Maybe (Value Bool)
Maybe (Value Integer)
Maybe ScalingPolicyProperty
()
haddock_workaround_ :: AutoScalingSettingProperty -> ()
autoScalingDisabled :: AutoScalingSettingProperty -> Maybe (Value Bool)
maximumUnits :: AutoScalingSettingProperty -> Maybe (Value Integer)
minimumUnits :: AutoScalingSettingProperty -> Maybe (Value Integer)
scalingPolicy :: AutoScalingSettingProperty -> Maybe ScalingPolicyProperty
haddock_workaround_ :: ()
autoScalingDisabled :: Maybe (Value Bool)
maximumUnits :: Maybe (Value Integer)
minimumUnits :: Maybe (Value Integer)
scalingPolicy :: Maybe ScalingPolicyProperty
..}
= AutoScalingSettingProperty
{maximumUnits :: Maybe (Value Integer)
maximumUnits = Value Integer -> Maybe (Value Integer)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "MaximumUnits" AutoScalingSettingProperty
Value Integer
newValue, Maybe (Value Bool)
Maybe (Value Integer)
Maybe ScalingPolicyProperty
()
haddock_workaround_ :: ()
autoScalingDisabled :: Maybe (Value Bool)
minimumUnits :: Maybe (Value Integer)
scalingPolicy :: Maybe ScalingPolicyProperty
haddock_workaround_ :: ()
autoScalingDisabled :: Maybe (Value Bool)
minimumUnits :: Maybe (Value Integer)
scalingPolicy :: Maybe ScalingPolicyProperty
..}
instance Property "MinimumUnits" AutoScalingSettingProperty where
type PropertyType "MinimumUnits" AutoScalingSettingProperty = Value Prelude.Integer
set :: PropertyType "MinimumUnits" AutoScalingSettingProperty
-> AutoScalingSettingProperty -> AutoScalingSettingProperty
set PropertyType "MinimumUnits" AutoScalingSettingProperty
newValue AutoScalingSettingProperty {Maybe (Value Bool)
Maybe (Value Integer)
Maybe ScalingPolicyProperty
()
haddock_workaround_ :: AutoScalingSettingProperty -> ()
autoScalingDisabled :: AutoScalingSettingProperty -> Maybe (Value Bool)
maximumUnits :: AutoScalingSettingProperty -> Maybe (Value Integer)
minimumUnits :: AutoScalingSettingProperty -> Maybe (Value Integer)
scalingPolicy :: AutoScalingSettingProperty -> Maybe ScalingPolicyProperty
haddock_workaround_ :: ()
autoScalingDisabled :: Maybe (Value Bool)
maximumUnits :: Maybe (Value Integer)
minimumUnits :: Maybe (Value Integer)
scalingPolicy :: Maybe ScalingPolicyProperty
..}
= AutoScalingSettingProperty
{minimumUnits :: Maybe (Value Integer)
minimumUnits = Value Integer -> Maybe (Value Integer)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "MinimumUnits" AutoScalingSettingProperty
Value Integer
newValue, Maybe (Value Bool)
Maybe (Value Integer)
Maybe ScalingPolicyProperty
()
haddock_workaround_ :: ()
autoScalingDisabled :: Maybe (Value Bool)
maximumUnits :: Maybe (Value Integer)
scalingPolicy :: Maybe ScalingPolicyProperty
haddock_workaround_ :: ()
autoScalingDisabled :: Maybe (Value Bool)
maximumUnits :: Maybe (Value Integer)
scalingPolicy :: Maybe ScalingPolicyProperty
..}
instance Property "ScalingPolicy" AutoScalingSettingProperty where
type PropertyType "ScalingPolicy" AutoScalingSettingProperty = ScalingPolicyProperty
set :: PropertyType "ScalingPolicy" AutoScalingSettingProperty
-> AutoScalingSettingProperty -> AutoScalingSettingProperty
set PropertyType "ScalingPolicy" AutoScalingSettingProperty
newValue AutoScalingSettingProperty {Maybe (Value Bool)
Maybe (Value Integer)
Maybe ScalingPolicyProperty
()
haddock_workaround_ :: AutoScalingSettingProperty -> ()
autoScalingDisabled :: AutoScalingSettingProperty -> Maybe (Value Bool)
maximumUnits :: AutoScalingSettingProperty -> Maybe (Value Integer)
minimumUnits :: AutoScalingSettingProperty -> Maybe (Value Integer)
scalingPolicy :: AutoScalingSettingProperty -> Maybe ScalingPolicyProperty
haddock_workaround_ :: ()
autoScalingDisabled :: Maybe (Value Bool)
maximumUnits :: Maybe (Value Integer)
minimumUnits :: Maybe (Value Integer)
scalingPolicy :: Maybe ScalingPolicyProperty
..}
= AutoScalingSettingProperty
{scalingPolicy :: Maybe ScalingPolicyProperty
scalingPolicy = ScalingPolicyProperty -> Maybe ScalingPolicyProperty
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "ScalingPolicy" AutoScalingSettingProperty
ScalingPolicyProperty
newValue, Maybe (Value Bool)
Maybe (Value Integer)
()
haddock_workaround_ :: ()
autoScalingDisabled :: Maybe (Value Bool)
maximumUnits :: Maybe (Value Integer)
minimumUnits :: Maybe (Value Integer)
haddock_workaround_ :: ()
autoScalingDisabled :: Maybe (Value Bool)
maximumUnits :: Maybe (Value Integer)
minimumUnits :: Maybe (Value Integer)
..}