module Stratosphere.CodeBuild.Fleet.ScalingConfigurationInputProperty (
module Exports, ScalingConfigurationInputProperty(..),
mkScalingConfigurationInputProperty
) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import {-# SOURCE #-} Stratosphere.CodeBuild.Fleet.TargetTrackingScalingConfigurationProperty as Exports
import Stratosphere.ResourceProperties
import Stratosphere.Value
data ScalingConfigurationInputProperty
=
ScalingConfigurationInputProperty {ScalingConfigurationInputProperty -> ()
haddock_workaround_ :: (),
ScalingConfigurationInputProperty -> Maybe (Value Integer)
maxCapacity :: (Prelude.Maybe (Value Prelude.Integer)),
ScalingConfigurationInputProperty -> Maybe (Value Text)
scalingType :: (Prelude.Maybe (Value Prelude.Text)),
ScalingConfigurationInputProperty
-> Maybe [TargetTrackingScalingConfigurationProperty]
targetTrackingScalingConfigs :: (Prelude.Maybe [TargetTrackingScalingConfigurationProperty])}
deriving stock (ScalingConfigurationInputProperty
-> ScalingConfigurationInputProperty -> Bool
(ScalingConfigurationInputProperty
-> ScalingConfigurationInputProperty -> Bool)
-> (ScalingConfigurationInputProperty
-> ScalingConfigurationInputProperty -> Bool)
-> Eq ScalingConfigurationInputProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: ScalingConfigurationInputProperty
-> ScalingConfigurationInputProperty -> Bool
== :: ScalingConfigurationInputProperty
-> ScalingConfigurationInputProperty -> Bool
$c/= :: ScalingConfigurationInputProperty
-> ScalingConfigurationInputProperty -> Bool
/= :: ScalingConfigurationInputProperty
-> ScalingConfigurationInputProperty -> Bool
Prelude.Eq, Int -> ScalingConfigurationInputProperty -> ShowS
[ScalingConfigurationInputProperty] -> ShowS
ScalingConfigurationInputProperty -> String
(Int -> ScalingConfigurationInputProperty -> ShowS)
-> (ScalingConfigurationInputProperty -> String)
-> ([ScalingConfigurationInputProperty] -> ShowS)
-> Show ScalingConfigurationInputProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> ScalingConfigurationInputProperty -> ShowS
showsPrec :: Int -> ScalingConfigurationInputProperty -> ShowS
$cshow :: ScalingConfigurationInputProperty -> String
show :: ScalingConfigurationInputProperty -> String
$cshowList :: [ScalingConfigurationInputProperty] -> ShowS
showList :: [ScalingConfigurationInputProperty] -> ShowS
Prelude.Show)
mkScalingConfigurationInputProperty ::
ScalingConfigurationInputProperty
mkScalingConfigurationInputProperty :: ScalingConfigurationInputProperty
mkScalingConfigurationInputProperty
= ScalingConfigurationInputProperty
{haddock_workaround_ :: ()
haddock_workaround_ = (), maxCapacity :: Maybe (Value Integer)
maxCapacity = Maybe (Value Integer)
forall a. Maybe a
Prelude.Nothing,
scalingType :: Maybe (Value Text)
scalingType = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing,
targetTrackingScalingConfigs :: Maybe [TargetTrackingScalingConfigurationProperty]
targetTrackingScalingConfigs = Maybe [TargetTrackingScalingConfigurationProperty]
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties ScalingConfigurationInputProperty where
toResourceProperties :: ScalingConfigurationInputProperty -> ResourceProperties
toResourceProperties ScalingConfigurationInputProperty {Maybe [TargetTrackingScalingConfigurationProperty]
Maybe (Value Integer)
Maybe (Value Text)
()
haddock_workaround_ :: ScalingConfigurationInputProperty -> ()
maxCapacity :: ScalingConfigurationInputProperty -> Maybe (Value Integer)
scalingType :: ScalingConfigurationInputProperty -> Maybe (Value Text)
targetTrackingScalingConfigs :: ScalingConfigurationInputProperty
-> Maybe [TargetTrackingScalingConfigurationProperty]
haddock_workaround_ :: ()
maxCapacity :: Maybe (Value Integer)
scalingType :: Maybe (Value Text)
targetTrackingScalingConfigs :: Maybe [TargetTrackingScalingConfigurationProperty]
..}
= ResourceProperties
{awsType :: Text
awsType = Text
"AWS::CodeBuild::Fleet.ScalingConfigurationInput",
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 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
"MaxCapacity" (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)
maxCapacity,
Key -> Value Text -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"ScalingType" (Value Text -> (Key, Value))
-> Maybe (Value Text) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Value Text)
scalingType,
Key -> [TargetTrackingScalingConfigurationProperty] -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"TargetTrackingScalingConfigs"
([TargetTrackingScalingConfigurationProperty] -> (Key, Value))
-> Maybe [TargetTrackingScalingConfigurationProperty]
-> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe [TargetTrackingScalingConfigurationProperty]
targetTrackingScalingConfigs])}
instance JSON.ToJSON ScalingConfigurationInputProperty where
toJSON :: ScalingConfigurationInputProperty -> Value
toJSON ScalingConfigurationInputProperty {Maybe [TargetTrackingScalingConfigurationProperty]
Maybe (Value Integer)
Maybe (Value Text)
()
haddock_workaround_ :: ScalingConfigurationInputProperty -> ()
maxCapacity :: ScalingConfigurationInputProperty -> Maybe (Value Integer)
scalingType :: ScalingConfigurationInputProperty -> Maybe (Value Text)
targetTrackingScalingConfigs :: ScalingConfigurationInputProperty
-> Maybe [TargetTrackingScalingConfigurationProperty]
haddock_workaround_ :: ()
maxCapacity :: Maybe (Value Integer)
scalingType :: Maybe (Value Text)
targetTrackingScalingConfigs :: Maybe [TargetTrackingScalingConfigurationProperty]
..}
= [(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 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
"MaxCapacity" (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)
maxCapacity,
Key -> Value Text -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"ScalingType" (Value Text -> (Key, Value))
-> Maybe (Value Text) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Value Text)
scalingType,
Key -> [TargetTrackingScalingConfigurationProperty] -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"TargetTrackingScalingConfigs"
([TargetTrackingScalingConfigurationProperty] -> (Key, Value))
-> Maybe [TargetTrackingScalingConfigurationProperty]
-> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe [TargetTrackingScalingConfigurationProperty]
targetTrackingScalingConfigs]))
instance Property "MaxCapacity" ScalingConfigurationInputProperty where
type PropertyType "MaxCapacity" ScalingConfigurationInputProperty = Value Prelude.Integer
set :: PropertyType "MaxCapacity" ScalingConfigurationInputProperty
-> ScalingConfigurationInputProperty
-> ScalingConfigurationInputProperty
set PropertyType "MaxCapacity" ScalingConfigurationInputProperty
newValue ScalingConfigurationInputProperty {Maybe [TargetTrackingScalingConfigurationProperty]
Maybe (Value Integer)
Maybe (Value Text)
()
haddock_workaround_ :: ScalingConfigurationInputProperty -> ()
maxCapacity :: ScalingConfigurationInputProperty -> Maybe (Value Integer)
scalingType :: ScalingConfigurationInputProperty -> Maybe (Value Text)
targetTrackingScalingConfigs :: ScalingConfigurationInputProperty
-> Maybe [TargetTrackingScalingConfigurationProperty]
haddock_workaround_ :: ()
maxCapacity :: Maybe (Value Integer)
scalingType :: Maybe (Value Text)
targetTrackingScalingConfigs :: Maybe [TargetTrackingScalingConfigurationProperty]
..}
= ScalingConfigurationInputProperty
{maxCapacity :: Maybe (Value Integer)
maxCapacity = Value Integer -> Maybe (Value Integer)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "MaxCapacity" ScalingConfigurationInputProperty
Value Integer
newValue, Maybe [TargetTrackingScalingConfigurationProperty]
Maybe (Value Text)
()
haddock_workaround_ :: ()
scalingType :: Maybe (Value Text)
targetTrackingScalingConfigs :: Maybe [TargetTrackingScalingConfigurationProperty]
haddock_workaround_ :: ()
scalingType :: Maybe (Value Text)
targetTrackingScalingConfigs :: Maybe [TargetTrackingScalingConfigurationProperty]
..}
instance Property "ScalingType" ScalingConfigurationInputProperty where
type PropertyType "ScalingType" ScalingConfigurationInputProperty = Value Prelude.Text
set :: PropertyType "ScalingType" ScalingConfigurationInputProperty
-> ScalingConfigurationInputProperty
-> ScalingConfigurationInputProperty
set PropertyType "ScalingType" ScalingConfigurationInputProperty
newValue ScalingConfigurationInputProperty {Maybe [TargetTrackingScalingConfigurationProperty]
Maybe (Value Integer)
Maybe (Value Text)
()
haddock_workaround_ :: ScalingConfigurationInputProperty -> ()
maxCapacity :: ScalingConfigurationInputProperty -> Maybe (Value Integer)
scalingType :: ScalingConfigurationInputProperty -> Maybe (Value Text)
targetTrackingScalingConfigs :: ScalingConfigurationInputProperty
-> Maybe [TargetTrackingScalingConfigurationProperty]
haddock_workaround_ :: ()
maxCapacity :: Maybe (Value Integer)
scalingType :: Maybe (Value Text)
targetTrackingScalingConfigs :: Maybe [TargetTrackingScalingConfigurationProperty]
..}
= ScalingConfigurationInputProperty
{scalingType :: Maybe (Value Text)
scalingType = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "ScalingType" ScalingConfigurationInputProperty
Value Text
newValue, Maybe [TargetTrackingScalingConfigurationProperty]
Maybe (Value Integer)
()
haddock_workaround_ :: ()
maxCapacity :: Maybe (Value Integer)
targetTrackingScalingConfigs :: Maybe [TargetTrackingScalingConfigurationProperty]
haddock_workaround_ :: ()
maxCapacity :: Maybe (Value Integer)
targetTrackingScalingConfigs :: Maybe [TargetTrackingScalingConfigurationProperty]
..}
instance Property "TargetTrackingScalingConfigs" ScalingConfigurationInputProperty where
type PropertyType "TargetTrackingScalingConfigs" ScalingConfigurationInputProperty = [TargetTrackingScalingConfigurationProperty]
set :: PropertyType
"TargetTrackingScalingConfigs" ScalingConfigurationInputProperty
-> ScalingConfigurationInputProperty
-> ScalingConfigurationInputProperty
set PropertyType
"TargetTrackingScalingConfigs" ScalingConfigurationInputProperty
newValue ScalingConfigurationInputProperty {Maybe [TargetTrackingScalingConfigurationProperty]
Maybe (Value Integer)
Maybe (Value Text)
()
haddock_workaround_ :: ScalingConfigurationInputProperty -> ()
maxCapacity :: ScalingConfigurationInputProperty -> Maybe (Value Integer)
scalingType :: ScalingConfigurationInputProperty -> Maybe (Value Text)
targetTrackingScalingConfigs :: ScalingConfigurationInputProperty
-> Maybe [TargetTrackingScalingConfigurationProperty]
haddock_workaround_ :: ()
maxCapacity :: Maybe (Value Integer)
scalingType :: Maybe (Value Text)
targetTrackingScalingConfigs :: Maybe [TargetTrackingScalingConfigurationProperty]
..}
= ScalingConfigurationInputProperty
{targetTrackingScalingConfigs :: Maybe [TargetTrackingScalingConfigurationProperty]
targetTrackingScalingConfigs = [TargetTrackingScalingConfigurationProperty]
-> Maybe [TargetTrackingScalingConfigurationProperty]
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure [TargetTrackingScalingConfigurationProperty]
PropertyType
"TargetTrackingScalingConfigs" ScalingConfigurationInputProperty
newValue, Maybe (Value Integer)
Maybe (Value Text)
()
haddock_workaround_ :: ()
maxCapacity :: Maybe (Value Integer)
scalingType :: Maybe (Value Text)
haddock_workaround_ :: ()
maxCapacity :: Maybe (Value Integer)
scalingType :: Maybe (Value Text)
..}