Table of Contents

Module Members



new ScalingPolicy (Constructor)

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

Type Signature

 fun { policyName: String,
       adjustmentType: AdjustmentType,
       minAdjustmentMagnitude: Optional<Int>,
       scalingAdjustment: Optional<Int>,
       cooldown: Optional<Int>,
       metricAggregationType: Optional<MetricAggregationType>,
       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 they specified adjustmentType. Specify a positive value to add capacity or a negative value to reduce capacity. Mutable.

Type: Optional<Int>

Argument: cooldown

The number of seconds to wait between scaling events. Defaults to the cooldown of the target AutoScalingGroup. Mutable.

Type: Optional<Int>

Argument: metricAggregationType

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

Type: Optional<MetricAggregationType>

Argument: autoScalingGroup

The AutoScalingGroup to apply the policy to.

Type: AutoScalingGroup


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

Type: ScalingPolicy