module Stratosphere.ApplicationAutoScaling.ScalableTarget.SuspendedStateProperty (
SuspendedStateProperty(..), mkSuspendedStateProperty
) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data SuspendedStateProperty
=
SuspendedStateProperty {SuspendedStateProperty -> ()
haddock_workaround_ :: (),
SuspendedStateProperty -> Maybe (Value Bool)
dynamicScalingInSuspended :: (Prelude.Maybe (Value Prelude.Bool)),
SuspendedStateProperty -> Maybe (Value Bool)
dynamicScalingOutSuspended :: (Prelude.Maybe (Value Prelude.Bool)),
SuspendedStateProperty -> Maybe (Value Bool)
scheduledScalingSuspended :: (Prelude.Maybe (Value Prelude.Bool))}
deriving stock (SuspendedStateProperty -> SuspendedStateProperty -> Bool
(SuspendedStateProperty -> SuspendedStateProperty -> Bool)
-> (SuspendedStateProperty -> SuspendedStateProperty -> Bool)
-> Eq SuspendedStateProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: SuspendedStateProperty -> SuspendedStateProperty -> Bool
== :: SuspendedStateProperty -> SuspendedStateProperty -> Bool
$c/= :: SuspendedStateProperty -> SuspendedStateProperty -> Bool
/= :: SuspendedStateProperty -> SuspendedStateProperty -> Bool
Prelude.Eq, Int -> SuspendedStateProperty -> ShowS
[SuspendedStateProperty] -> ShowS
SuspendedStateProperty -> String
(Int -> SuspendedStateProperty -> ShowS)
-> (SuspendedStateProperty -> String)
-> ([SuspendedStateProperty] -> ShowS)
-> Show SuspendedStateProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> SuspendedStateProperty -> ShowS
showsPrec :: Int -> SuspendedStateProperty -> ShowS
$cshow :: SuspendedStateProperty -> String
show :: SuspendedStateProperty -> String
$cshowList :: [SuspendedStateProperty] -> ShowS
showList :: [SuspendedStateProperty] -> ShowS
Prelude.Show)
mkSuspendedStateProperty :: SuspendedStateProperty
mkSuspendedStateProperty :: SuspendedStateProperty
mkSuspendedStateProperty
= SuspendedStateProperty
{haddock_workaround_ :: ()
haddock_workaround_ = (),
dynamicScalingInSuspended :: Maybe (Value Bool)
dynamicScalingInSuspended = Maybe (Value Bool)
forall a. Maybe a
Prelude.Nothing,
dynamicScalingOutSuspended :: Maybe (Value Bool)
dynamicScalingOutSuspended = Maybe (Value Bool)
forall a. Maybe a
Prelude.Nothing,
scheduledScalingSuspended :: Maybe (Value Bool)
scheduledScalingSuspended = Maybe (Value Bool)
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties SuspendedStateProperty where
toResourceProperties :: SuspendedStateProperty -> ResourceProperties
toResourceProperties SuspendedStateProperty {Maybe (Value Bool)
()
haddock_workaround_ :: SuspendedStateProperty -> ()
dynamicScalingInSuspended :: SuspendedStateProperty -> Maybe (Value Bool)
dynamicScalingOutSuspended :: SuspendedStateProperty -> Maybe (Value Bool)
scheduledScalingSuspended :: SuspendedStateProperty -> Maybe (Value Bool)
haddock_workaround_ :: ()
dynamicScalingInSuspended :: Maybe (Value Bool)
dynamicScalingOutSuspended :: Maybe (Value Bool)
scheduledScalingSuspended :: Maybe (Value Bool)
..}
= ResourceProperties
{awsType :: Text
awsType = Text
"AWS::ApplicationAutoScaling::ScalableTarget.SuspendedState",
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
"DynamicScalingInSuspended"
(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)
dynamicScalingInSuspended,
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
"DynamicScalingOutSuspended"
(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)
dynamicScalingOutSuspended,
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
"ScheduledScalingSuspended"
(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)
scheduledScalingSuspended])}
instance JSON.ToJSON SuspendedStateProperty where
toJSON :: SuspendedStateProperty -> Value
toJSON SuspendedStateProperty {Maybe (Value Bool)
()
haddock_workaround_ :: SuspendedStateProperty -> ()
dynamicScalingInSuspended :: SuspendedStateProperty -> Maybe (Value Bool)
dynamicScalingOutSuspended :: SuspendedStateProperty -> Maybe (Value Bool)
scheduledScalingSuspended :: SuspendedStateProperty -> Maybe (Value Bool)
haddock_workaround_ :: ()
dynamicScalingInSuspended :: Maybe (Value Bool)
dynamicScalingOutSuspended :: Maybe (Value Bool)
scheduledScalingSuspended :: Maybe (Value Bool)
..}
= [(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
"DynamicScalingInSuspended"
(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)
dynamicScalingInSuspended,
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
"DynamicScalingOutSuspended"
(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)
dynamicScalingOutSuspended,
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
"ScheduledScalingSuspended"
(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)
scheduledScalingSuspended]))
instance Property "DynamicScalingInSuspended" SuspendedStateProperty where
type PropertyType "DynamicScalingInSuspended" SuspendedStateProperty = Value Prelude.Bool
set :: PropertyType "DynamicScalingInSuspended" SuspendedStateProperty
-> SuspendedStateProperty -> SuspendedStateProperty
set PropertyType "DynamicScalingInSuspended" SuspendedStateProperty
newValue SuspendedStateProperty {Maybe (Value Bool)
()
haddock_workaround_ :: SuspendedStateProperty -> ()
dynamicScalingInSuspended :: SuspendedStateProperty -> Maybe (Value Bool)
dynamicScalingOutSuspended :: SuspendedStateProperty -> Maybe (Value Bool)
scheduledScalingSuspended :: SuspendedStateProperty -> Maybe (Value Bool)
haddock_workaround_ :: ()
dynamicScalingInSuspended :: Maybe (Value Bool)
dynamicScalingOutSuspended :: Maybe (Value Bool)
scheduledScalingSuspended :: Maybe (Value Bool)
..}
= SuspendedStateProperty
{dynamicScalingInSuspended :: Maybe (Value Bool)
dynamicScalingInSuspended = Value Bool -> Maybe (Value Bool)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "DynamicScalingInSuspended" SuspendedStateProperty
Value Bool
newValue, Maybe (Value Bool)
()
haddock_workaround_ :: ()
dynamicScalingOutSuspended :: Maybe (Value Bool)
scheduledScalingSuspended :: Maybe (Value Bool)
haddock_workaround_ :: ()
dynamicScalingOutSuspended :: Maybe (Value Bool)
scheduledScalingSuspended :: Maybe (Value Bool)
..}
instance Property "DynamicScalingOutSuspended" SuspendedStateProperty where
type PropertyType "DynamicScalingOutSuspended" SuspendedStateProperty = Value Prelude.Bool
set :: PropertyType "DynamicScalingOutSuspended" SuspendedStateProperty
-> SuspendedStateProperty -> SuspendedStateProperty
set PropertyType "DynamicScalingOutSuspended" SuspendedStateProperty
newValue SuspendedStateProperty {Maybe (Value Bool)
()
haddock_workaround_ :: SuspendedStateProperty -> ()
dynamicScalingInSuspended :: SuspendedStateProperty -> Maybe (Value Bool)
dynamicScalingOutSuspended :: SuspendedStateProperty -> Maybe (Value Bool)
scheduledScalingSuspended :: SuspendedStateProperty -> Maybe (Value Bool)
haddock_workaround_ :: ()
dynamicScalingInSuspended :: Maybe (Value Bool)
dynamicScalingOutSuspended :: Maybe (Value Bool)
scheduledScalingSuspended :: Maybe (Value Bool)
..}
= SuspendedStateProperty
{dynamicScalingOutSuspended :: Maybe (Value Bool)
dynamicScalingOutSuspended = Value Bool -> Maybe (Value Bool)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "DynamicScalingOutSuspended" SuspendedStateProperty
Value Bool
newValue, Maybe (Value Bool)
()
haddock_workaround_ :: ()
dynamicScalingInSuspended :: Maybe (Value Bool)
scheduledScalingSuspended :: Maybe (Value Bool)
haddock_workaround_ :: ()
dynamicScalingInSuspended :: Maybe (Value Bool)
scheduledScalingSuspended :: Maybe (Value Bool)
..}
instance Property "ScheduledScalingSuspended" SuspendedStateProperty where
type PropertyType "ScheduledScalingSuspended" SuspendedStateProperty = Value Prelude.Bool
set :: PropertyType "ScheduledScalingSuspended" SuspendedStateProperty
-> SuspendedStateProperty -> SuspendedStateProperty
set PropertyType "ScheduledScalingSuspended" SuspendedStateProperty
newValue SuspendedStateProperty {Maybe (Value Bool)
()
haddock_workaround_ :: SuspendedStateProperty -> ()
dynamicScalingInSuspended :: SuspendedStateProperty -> Maybe (Value Bool)
dynamicScalingOutSuspended :: SuspendedStateProperty -> Maybe (Value Bool)
scheduledScalingSuspended :: SuspendedStateProperty -> Maybe (Value Bool)
haddock_workaround_ :: ()
dynamicScalingInSuspended :: Maybe (Value Bool)
dynamicScalingOutSuspended :: Maybe (Value Bool)
scheduledScalingSuspended :: Maybe (Value Bool)
..}
= SuspendedStateProperty
{scheduledScalingSuspended :: Maybe (Value Bool)
scheduledScalingSuspended = Value Bool -> Maybe (Value Bool)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "ScheduledScalingSuspended" SuspendedStateProperty
Value Bool
newValue, Maybe (Value Bool)
()
haddock_workaround_ :: ()
dynamicScalingInSuspended :: Maybe (Value Bool)
dynamicScalingOutSuspended :: Maybe (Value Bool)
haddock_workaround_ :: ()
dynamicScalingInSuspended :: Maybe (Value Bool)
dynamicScalingOutSuspended :: Maybe (Value Bool)
..}