stratosphere-codebuild-1.0.0: gen/Stratosphere/CodeBuild/Fleet/ScalingConfigurationInputProperty.hs
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
= -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codebuild-fleet-scalingconfigurationinput.html>
ScalingConfigurationInputProperty {haddock_workaround_ :: (),
-- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codebuild-fleet-scalingconfigurationinput.html#cfn-codebuild-fleet-scalingconfigurationinput-maxcapacity>
maxCapacity :: (Prelude.Maybe (Value Prelude.Integer)),
-- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codebuild-fleet-scalingconfigurationinput.html#cfn-codebuild-fleet-scalingconfigurationinput-scalingtype>
scalingType :: (Prelude.Maybe (Value Prelude.Text)),
-- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codebuild-fleet-scalingconfigurationinput.html#cfn-codebuild-fleet-scalingconfigurationinput-targettrackingscalingconfigs>
targetTrackingScalingConfigs :: (Prelude.Maybe [TargetTrackingScalingConfigurationProperty])}
deriving stock (Prelude.Eq, Prelude.Show)
mkScalingConfigurationInputProperty ::
ScalingConfigurationInputProperty
mkScalingConfigurationInputProperty
= ScalingConfigurationInputProperty
{haddock_workaround_ = (), maxCapacity = Prelude.Nothing,
scalingType = Prelude.Nothing,
targetTrackingScalingConfigs = Prelude.Nothing}
instance ToResourceProperties ScalingConfigurationInputProperty where
toResourceProperties ScalingConfigurationInputProperty {..}
= ResourceProperties
{awsType = "AWS::CodeBuild::Fleet.ScalingConfigurationInput",
supportsTags = Prelude.False,
properties = Prelude.fromList
(Prelude.catMaybes
[(JSON..=) "MaxCapacity" Prelude.<$> maxCapacity,
(JSON..=) "ScalingType" Prelude.<$> scalingType,
(JSON..=) "TargetTrackingScalingConfigs"
Prelude.<$> targetTrackingScalingConfigs])}
instance JSON.ToJSON ScalingConfigurationInputProperty where
toJSON ScalingConfigurationInputProperty {..}
= JSON.object
(Prelude.fromList
(Prelude.catMaybes
[(JSON..=) "MaxCapacity" Prelude.<$> maxCapacity,
(JSON..=) "ScalingType" Prelude.<$> scalingType,
(JSON..=) "TargetTrackingScalingConfigs"
Prelude.<$> targetTrackingScalingConfigs]))
instance Property "MaxCapacity" ScalingConfigurationInputProperty where
type PropertyType "MaxCapacity" ScalingConfigurationInputProperty = Value Prelude.Integer
set newValue ScalingConfigurationInputProperty {..}
= ScalingConfigurationInputProperty
{maxCapacity = Prelude.pure newValue, ..}
instance Property "ScalingType" ScalingConfigurationInputProperty where
type PropertyType "ScalingType" ScalingConfigurationInputProperty = Value Prelude.Text
set newValue ScalingConfigurationInputProperty {..}
= ScalingConfigurationInputProperty
{scalingType = Prelude.pure newValue, ..}
instance Property "TargetTrackingScalingConfigs" ScalingConfigurationInputProperty where
type PropertyType "TargetTrackingScalingConfigs" ScalingConfigurationInputProperty = [TargetTrackingScalingConfigurationProperty]
set newValue ScalingConfigurationInputProperty {..}
= ScalingConfigurationInputProperty
{targetTrackingScalingConfigs = Prelude.pure newValue, ..}