class StepScalingAction (construct)
Define a step scaling action.
This kind of scaling policy adjusts the target capacity in configurable steps. The size of the step is configurable based on the metric's distance to its alarm threshold.
This Action must be used as the target of a CloudWatch alarm to take effect.
new StepScalingAction(scope: Construct, id: string, props: StepScalingActionProps)
|scaling||The scalable target.|
|adjustment||How the adjustment numbers are interpreted.|
|cooldown?||Grace period after scaling activity.|
|metric||The aggregation type for the CloudWatch metrics.|
|min||Minimum absolute number to adjust capacity with as result of percentage scaling.|
|policy||A name for the scaling policy.|
The scalable target.
(optional, default: ChangeInCapacity)
How the adjustment numbers are interpreted.
(optional, default: No cooldown period)
Grace period after scaling activity.
For scale out policies, multiple scale outs during the cooldown period are squashed so that only the biggest scale out happens.
For scale in policies, subsequent scale ins during the cooldown period are ignored.
(optional, default: Average)
The aggregation type for the CloudWatch metrics.
(optional, default: No minimum scaling effect)
Minimum absolute number to adjust capacity with as result of percentage scaling.
Only when using AdjustmentType = PercentChangeInCapacity, this number controls the minimum absolute effect size.
(optional, default: Automatically generated name)
A name for the scaling policy.
|node||Construct tree node which offers APIs for interacting with the construct tree.|
|scaling||ARN of the scaling policy.|
Construct tree node which offers APIs for interacting with the construct tree.
ARN of the scaling policy.
|add||Add an adjusment interval to the ScalingAction.|
|to||Returns a string representation of this construct.|
public addAdjustment(adjustment: AdjustmentTier): void
Add an adjusment interval to the ScalingAction.
public toString(): string
Returns a string representation of this construct.