@Stability(value=Experimental) public static final class StepScalingPolicy.Builder extends Object implements software.amazon.jsii.Builder<StepScalingPolicy>
StepScalingPolicy.| Modifier and Type | Method and Description |
|---|---|
StepScalingPolicy.Builder |
adjustmentType(AdjustmentType adjustmentType)
(experimental) How the adjustment numbers inside 'intervals' are interpreted.
|
StepScalingPolicy.Builder |
autoScalingGroup(IAutoScalingGroup autoScalingGroup)
(experimental) The auto scaling group.
|
StepScalingPolicy |
build() |
StepScalingPolicy.Builder |
cooldown(Duration cooldown)
(experimental) Grace period after scaling activity.
|
static StepScalingPolicy.Builder |
create(software.constructs.Construct scope,
String id) |
StepScalingPolicy.Builder |
estimatedInstanceWarmup(Duration estimatedInstanceWarmup)
(experimental) Estimated time until a newly launched instance can send metrics to CloudWatch.
|
StepScalingPolicy.Builder |
evaluationPeriods(Number evaluationPeriods)
(experimental) How many evaluation periods of the metric to wait before triggering a scaling action.
|
StepScalingPolicy.Builder |
metric(IMetric metric)
(experimental) Metric to scale on.
|
StepScalingPolicy.Builder |
metricAggregationType(MetricAggregationType metricAggregationType)
(experimental) Aggregation to apply to all data points over the evaluation periods.
|
StepScalingPolicy.Builder |
minAdjustmentMagnitude(Number minAdjustmentMagnitude)
(experimental) Minimum absolute number to adjust capacity with as result of percentage scaling.
|
StepScalingPolicy.Builder |
scalingSteps(List<? extends ScalingInterval> scalingSteps)
(experimental) The intervals for scaling.
|
@Stability(value=Experimental) public static StepScalingPolicy.Builder create(software.constructs.Construct scope, String id)
scope - This parameter is required.id - This parameter is required.StepScalingPolicy.Builder.@Stability(value=Experimental) public StepScalingPolicy.Builder metric(IMetric metric)
metric - Metric to scale on. This parameter is required.this@Stability(value=Experimental) public StepScalingPolicy.Builder scalingSteps(List<? extends ScalingInterval> scalingSteps)
Maps a range of metric values to a particular scaling behavior.
scalingSteps - The intervals for scaling. This parameter is required.this@Stability(value=Experimental) public StepScalingPolicy.Builder adjustmentType(AdjustmentType adjustmentType)
Default: ChangeInCapacity
adjustmentType - How the adjustment numbers inside 'intervals' are interpreted. This parameter is required.this@Stability(value=Experimental) public StepScalingPolicy.Builder cooldown(Duration cooldown)
Default: Default cooldown period on your AutoScalingGroup
cooldown - Grace period after scaling activity. This parameter is required.this@Stability(value=Experimental) public StepScalingPolicy.Builder estimatedInstanceWarmup(Duration estimatedInstanceWarmup)
Default: Same as the cooldown
estimatedInstanceWarmup - Estimated time until a newly launched instance can send metrics to CloudWatch. This parameter is required.this@Stability(value=Experimental) public StepScalingPolicy.Builder evaluationPeriods(Number evaluationPeriods)
Raising this value can be used to smooth out the metric, at the expense of slower response times.
Default: 1
evaluationPeriods - How many evaluation periods of the metric to wait before triggering a scaling action. This parameter is required.this@Stability(value=Experimental) public StepScalingPolicy.Builder metricAggregationType(MetricAggregationType metricAggregationType)
Only has meaning if evaluationPeriods != 1.
Default: - The statistic from the metric if applicable (MIN, MAX, AVERAGE), otherwise AVERAGE.
metricAggregationType - Aggregation to apply to all data points over the evaluation periods. This parameter is required.this@Stability(value=Experimental) public StepScalingPolicy.Builder minAdjustmentMagnitude(Number minAdjustmentMagnitude)
Only when using AdjustmentType = PercentChangeInCapacity, this number controls the minimum absolute effect size.
Default: No minimum scaling effect
minAdjustmentMagnitude - Minimum absolute number to adjust capacity with as result of percentage scaling. This parameter is required.this@Stability(value=Experimental) public StepScalingPolicy.Builder autoScalingGroup(IAutoScalingGroup autoScalingGroup)
autoScalingGroup - The auto scaling group. This parameter is required.this@Stability(value=Experimental) public StepScalingPolicy build()
build in interface software.amazon.jsii.Builder<StepScalingPolicy>Copyright © 2021. All rights reserved.