Table of Contents

Module Members



new ScalingPolicy (Constructor)

Call this constructor to create a new StepScaling Fugue.Core.AWS.AutoScaling.ScalingPolicy value.

Type Signature

 fun { policyName: String,
       adjustmentType: AdjustmentType,
       minAdjustmentMagnitude: Optional<Int>,
       scalingAdjustment: Optional<Int>,
       stepAdjustments: List<StepAdjustment>,
       metricAggregationType: Optional<MetricAggregationType>,
       estimatedInstanceWarmup: Optional<Int>,
       autoScalingGroup: AutoScalingGroup} -> ScalingPolicy
Argument: policyName

The name of the policy.

Type: String

Argument: adjustmentType

The type of adjustment to make when a scaling event occurs. Mutable.

Type: AdjustmentType

Argument: minAdjustmentMagnitude

The minimum number of instances to scale. Only valid when adjustmentType is PercentChangeInCapacity. Mutable.

Type: Optional<Int>

Argument: scalingAdjustment

The amount of capacity to add or remove. The exact value of increase or decrease depends on the specified adjustmentType. Specify a positive value to add capacity or a negative value to reduce capacity. Mutable.

Type: Optional<Int>

Argument: stepAdjustments

A list of StepAdjustments to apply based on the details of the alert. Mutable.

Type: List<StepAdjustment>

Argument: metricAggregationType

The type of aggregation to apply to the target metrics. Defaults to Average. Mutable.

Type: Optional<MetricAggregationType>

Argument: estimatedInstanceWarmup

Estimated number of seconds an instance takes to start logging metrics to CloudWatch. Defaults to the cooldown of the target AutoScalingGroup. Not valid for SimpleScaling policies. Mutable.

Type: Optional<Int>

Argument: autoScalingGroup

The AutoScalingGroup to apply the policy to.

Type: AutoScalingGroup


A new Fugue.Core.AWS.AutoScaling.ScalingPolicy.

Type: ScalingPolicy