Class CfnScalingPlanProps
Properties for defining a CfnScalingPlan
.
Inheritance
System.Object
CfnScalingPlanProps
Implements
Namespace: Amazon.CDK.AWS.AutoScalingPlans
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public class CfnScalingPlanProps : Object, ICfnScalingPlanProps
Syntax (vb)
Public Class CfnScalingPlanProps
Inherits Object
Implements ICfnScalingPlanProps
Remarks
ExampleMetadata: fixture=_generated
Examples
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.AutoScalingPlans;
var cfnScalingPlanProps = new CfnScalingPlanProps {
ApplicationSource = new ApplicationSourceProperty {
CloudFormationStackArn = "cloudFormationStackArn",
TagFilters = new [] { new TagFilterProperty {
Key = "key",
// the properties below are optional
Values = new [] { "values" }
} }
},
ScalingInstructions = new [] { new ScalingInstructionProperty {
MaxCapacity = 123,
MinCapacity = 123,
ResourceId = "resourceId",
ScalableDimension = "scalableDimension",
ServiceNamespace = "serviceNamespace",
TargetTrackingConfigurations = new [] { new TargetTrackingConfigurationProperty {
TargetValue = 123,
// the properties below are optional
CustomizedScalingMetricSpecification = new CustomizedScalingMetricSpecificationProperty {
MetricName = "metricName",
Namespace = "namespace",
Statistic = "statistic",
// the properties below are optional
Dimensions = new [] { new MetricDimensionProperty {
Name = "name",
Value = "value"
} },
Unit = "unit"
},
DisableScaleIn = false,
EstimatedInstanceWarmup = 123,
PredefinedScalingMetricSpecification = new PredefinedScalingMetricSpecificationProperty {
PredefinedScalingMetricType = "predefinedScalingMetricType",
// the properties below are optional
ResourceLabel = "resourceLabel"
},
ScaleInCooldown = 123,
ScaleOutCooldown = 123
} },
// the properties below are optional
CustomizedLoadMetricSpecification = new CustomizedLoadMetricSpecificationProperty {
MetricName = "metricName",
Namespace = "namespace",
Statistic = "statistic",
// the properties below are optional
Dimensions = new [] { new MetricDimensionProperty {
Name = "name",
Value = "value"
} },
Unit = "unit"
},
DisableDynamicScaling = false,
PredefinedLoadMetricSpecification = new PredefinedLoadMetricSpecificationProperty {
PredefinedLoadMetricType = "predefinedLoadMetricType",
// the properties below are optional
ResourceLabel = "resourceLabel"
},
PredictiveScalingMaxCapacityBehavior = "predictiveScalingMaxCapacityBehavior",
PredictiveScalingMaxCapacityBuffer = 123,
PredictiveScalingMode = "predictiveScalingMode",
ScalingPolicyUpdateBehavior = "scalingPolicyUpdateBehavior",
ScheduledActionBufferTime = 123
} }
};
Synopsis
Constructors
CfnScalingPlanProps() |
Properties
ApplicationSource | A CloudFormation stack or a set of tags. |
ScalingInstructions | The scaling instructions. |
Constructors
CfnScalingPlanProps()
public CfnScalingPlanProps()
Properties
ApplicationSource
A CloudFormation stack or a set of tags.
public object ApplicationSource { get; set; }
Property Value
System.Object
Remarks
You can create one scaling plan per application source. The ApplicationSource
property must be present to ensure interoperability with the AWS Auto Scaling console.
ScalingInstructions
The scaling instructions.
public object ScalingInstructions { get; set; }
Property Value
System.Object