Table of Contents

Interface IStepScalingActionProps

Namespace
Amazon.CDK.AWS.AutoScaling
Assembly
Amazon.CDK.AWS.AutoScaling.dll

Properties for a scaling policy.

public interface IStepScalingActionProps

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;

            AutoScalingGroup autoScalingGroup;
            var stepScalingActionProps = new StepScalingActionProps {
                AutoScalingGroup = autoScalingGroup,

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

Remarks

ExampleMetadata: fixture=_generated

Properties

AdjustmentType

How the adjustment numbers are interpreted.

AdjustmentType? AdjustmentType { get; }

Property Value

AdjustmentType?

Remarks

Default: ChangeInCapacity

AutoScalingGroup

The auto scaling group.

IAutoScalingGroup AutoScalingGroup { get; }

Property Value

IAutoScalingGroup

Cooldown

Period after a scaling completes before another scaling activity can start.

Duration? Cooldown { get; }

Property Value

Duration

Remarks

Default: The default cooldown configured on the AutoScalingGroup

EstimatedInstanceWarmup

Estimated time until a newly launched instance can send metrics to CloudWatch.

Duration? EstimatedInstanceWarmup { get; }

Property Value

Duration

Remarks

Default: Same as the cooldown

MetricAggregationType

The aggregation type for the CloudWatch metrics.

MetricAggregationType? MetricAggregationType { get; }

Property Value

MetricAggregationType?

Remarks

Default: Average

MinAdjustmentMagnitude

Minimum absolute number to adjust capacity with as result of percentage scaling.

double? MinAdjustmentMagnitude { get; }

Property Value

double?

Remarks

Only when using AdjustmentType = PercentChangeInCapacity, this number controls the minimum absolute effect size.

Default: No minimum scaling effect