Table of Contents

Interface IStepScalingPolicyProps

Namespace
Amazon.CDK.AWS.AutoScaling
Assembly
Amazon.CDK.AWS.AutoScaling.dll
public interface IStepScalingPolicyProps : IBasicStepScalingPolicyProps
Inherited Members

Examples

// The code below shows an example of how to instantiate this type.
            // The values are placeholders you should change.
            using Amazon.CDK.AWS.AutoScaling;
            using Amazon.CDK.AWS.CloudWatch;
            using Amazon.CDK;

            AutoScalingGroup autoScalingGroup;
            Metric metric;
            var stepScalingPolicyProps = new StepScalingPolicyProps {
                AutoScalingGroup = autoScalingGroup,
                Metric = metric,
                ScalingSteps = new [] { new ScalingInterval {
                    Change = 123,

                    // the properties below are optional
                    Lower = 123,
                    Upper = 123
                } },

                // the properties below are optional
                AdjustmentType = AdjustmentType.CHANGE_IN_CAPACITY,
                Cooldown = Duration.Minutes(30),
                EstimatedInstanceWarmup = Duration.Minutes(30),
                EvaluationPeriods = 123,
                MetricAggregationType = MetricAggregationType.AVERAGE,
                MinAdjustmentMagnitude = 123
            };

Remarks

ExampleMetadata: fixture=_generated

Properties

AutoScalingGroup

The auto scaling group.

IAutoScalingGroup AutoScalingGroup { get; }

Property Value

IAutoScalingGroup