ScalingPolicy
import type { ScalingPolicy } from "https://aws-api.deno.dev/v0.4/services/autoscaling.ts?docs=full";
Describes a scaling policy.
§Properties
Specifies how the scaling adjustment is interpreted (for example, an absolute number or a percentage).
The valid values are ChangeInCapacity
, ExactCapacity
, and PercentChangeInCapacity
.
The estimated time, in seconds, until a newly launched instance can contribute to the CloudWatch metrics.
The aggregation type for the CloudWatch metrics.
The valid values are Minimum
, Maximum
, and Average
.
The minimum value to scale by when the adjustment type is PercentChangeInCapacity
.
Available for backward compatibility.
Use MinAdjustmentMagnitude
instead.
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.
A predictive scaling policy.
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.
A set of adjustments that enable you to scale based on the size of the alarm breach.
A target tracking scaling policy.