Interface ICfnScalingPlanProps
Properties for defining a CfnScalingPlan
.
Namespace: Amazon.CDK.AWS.AutoScalingPlans
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public interface ICfnScalingPlanProps
Syntax (vb)
Public Interface 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
Properties
ApplicationSource | A CloudFormation stack or a set of tags. |
ScalingInstructions | The scaling instructions. |
Properties
ApplicationSource
A CloudFormation stack or a set of tags.
object ApplicationSource { get; }
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.
object ScalingInstructions { get; }
Property Value
System.Object