Hi there! Are you looking for the official Deno documentation? Try docs.deno.com for all your Deno learning needs.

ScalingPolicy

import type { ScalingPolicy } from "https://aws-api.deno.dev/v0.4/services/autoscaling.ts?docs=full";

Describes a scaling policy.

interface ScalingPolicy {
AdjustmentType?: string | null;
Alarms: Alarm[];
AutoScalingGroupName?: string | null;
Cooldown?: number | null;
Enabled?: boolean | null;
EstimatedInstanceWarmup?: number | null;
MetricAggregationType?: string | null;
MinAdjustmentMagnitude?: number | null;
MinAdjustmentStep?: number | null;
PolicyARN?: string | null;
PolicyName?: string | null;
PolicyType?: string | null;
PredictiveScalingConfiguration?: PredictiveScalingConfiguration | null;
ScalingAdjustment?: number | null;
StepAdjustments: StepAdjustment[];
TargetTrackingConfiguration?: TargetTrackingConfiguration | null;
}

§Properties

§
AdjustmentType?: string | null
[src]

Specifies how the scaling adjustment is interpreted (for example, an absolute number or a percentage). The valid values are ChangeInCapacity, ExactCapacity, and PercentChangeInCapacity.

§
Alarms: Alarm[]
[src]

The CloudWatch alarms related to the policy.

§
AutoScalingGroupName?: string | null
[src]

The name of the Auto Scaling group.

§
Cooldown?: number | null
[src]

The duration of the policy's cooldown period, in seconds.

§
Enabled?: boolean | null
[src]

Indicates whether the policy is enabled (true) or disabled (false).

§
EstimatedInstanceWarmup?: number | null
[src]

The estimated time, in seconds, until a newly launched instance can contribute to the CloudWatch metrics.

§
MetricAggregationType?: string | null
[src]

The aggregation type for the CloudWatch metrics. The valid values are Minimum, Maximum, and Average.

§
MinAdjustmentMagnitude?: number | null
[src]

The minimum value to scale by when the adjustment type is PercentChangeInCapacity.

§
MinAdjustmentStep?: number | null
[src]

Available for backward compatibility. Use MinAdjustmentMagnitude instead.

§
PolicyARN?: string | null
[src]

The Amazon Resource Name (ARN) of the policy.

§
PolicyName?: string | null
[src]

The name of the scaling policy.

§
PolicyType?: string | null
[src]

One of the following policy types:

  • TargetTrackingScaling
    
  • StepScaling
    
  • SimpleScaling (default)
  • PredictiveScaling
    

For more information, see Target tracking scaling policies and Step and simple scaling policies in the Amazon EC2 Auto Scaling User Guide.

§
PredictiveScalingConfiguration?: PredictiveScalingConfiguration | null
[src]

A predictive scaling policy.

§
ScalingAdjustment?: number | null
[src]

The amount by which to scale, based on the specified adjustment type. A positive value adds to the current capacity while a negative number removes from the current capacity.

§
StepAdjustments: StepAdjustment[]
[src]

A set of adjustments that enable you to scale based on the size of the alarm breach.

§
TargetTrackingConfiguration?: TargetTrackingConfiguration | null
[src]

A target tracking scaling policy.