StepScalingPolicy(scope, id, *, scaling_target, metric, scaling_steps, adjustment_type=None, cooldown=None, evaluation_periods=None, metric_aggregation_type=None, min_adjustment_magnitude=None)¶
Define a scaling strategy which scales depending on absolute values of some metric.
You can specify the scaling behavior for various values of the metric.
Implemented using one or more CloudWatch alarms and Step Scaling Policies.
IScalableTarget) – The scaling target.
IMetric) – Metric to scale on.
ScalingInterval]) – The intervals for scaling. Maps a range of metric values to a particular scaling behavior.
AdjustmentType]) – How the adjustment numbers inside ‘intervals’ are interpreted. Default: ChangeInCapacity
Duration]) – Grace period after scaling activity. Subsequent scale outs during the cooldown period are squashed so that only the biggest scale out happens. Subsequent scale ins during the cooldown period are ignored. Default: No cooldown period
None]) – How many evaluation periods of the metric to wait before triggering a scaling action. Raising this value can be used to smooth out the metric, at the expense of slower response times. Default: 1
MetricAggregationType]) – Aggregation to apply to all data points over the evaluation periods. Only has meaning if
evaluationPeriods != 1. Default: - The statistic from the metric if applicable (MIN, MAX, AVERAGE), otherwise AVERAGE.
None]) – 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. Default: No minimum scaling effect
Returns a string representation of this construct.
- Return type
Return whether the given object is a Construct.
- Return type