Fugue.AWS.AutoScaling.ScalingPolicy

Module Members

new

(Function)

new ScalingPolicy (Constructor)

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

Type Signature

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

The name of the policy.

Type: String

Argument: policyType

The type of policy. Defaults to SimpleScaling. Mutable.

Type: Optional<PolicyType>

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: cooldown

The number of seconds to wait between scaling events. Defaults to the cooldown of the target AutoScalingGroup. Only valid for SimpleScaling policies. Mutable.

Type: Optional<Int>

Argument: stepAdjustments

A list of StepAdjustments to apply based on the details of the alert. Required for StepScaling policies. Not valid for SimpleScaling policies. Mutable.

Type: Optional<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

Returns:

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

Type: ScalingPolicy