public static final class StepScalingPolicyProps.Builder
extends java.lang.Object
StepScalingPolicyProps
Constructor and Description |
---|
Builder() |
public StepScalingPolicyProps.Builder autoScalingGroup(IAutoScalingGroup autoScalingGroup)
StepScalingPolicyProps.getAutoScalingGroup()
autoScalingGroup
- The auto scaling group. This parameter is required.this
public StepScalingPolicyProps.Builder metric(IMetric metric)
BasicStepScalingPolicyProps.getMetric()
metric
- Metric to scale on. This parameter is required.this
public StepScalingPolicyProps.Builder scalingSteps(java.util.List<? extends ScalingInterval> scalingSteps)
BasicStepScalingPolicyProps.getScalingSteps()
scalingSteps
- The intervals for scaling. This parameter is required.
Maps a range of metric values to a particular scaling behavior.this
public StepScalingPolicyProps.Builder adjustmentType(AdjustmentType adjustmentType)
BasicStepScalingPolicyProps.getAdjustmentType()
adjustmentType
- How the adjustment numbers inside 'intervals' are interpreted.this
public StepScalingPolicyProps.Builder cooldown(Duration cooldown)
BasicStepScalingPolicyProps.getCooldown()
cooldown
- Grace period after scaling activity.this
public StepScalingPolicyProps.Builder estimatedInstanceWarmup(Duration estimatedInstanceWarmup)
BasicStepScalingPolicyProps.getEstimatedInstanceWarmup()
estimatedInstanceWarmup
- Estimated time until a newly launched instance can send metrics to CloudWatch.this
public StepScalingPolicyProps.Builder evaluationPeriods(java.lang.Number evaluationPeriods)
BasicStepScalingPolicyProps.getEvaluationPeriods()
evaluationPeriods
- 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.this
public StepScalingPolicyProps.Builder metricAggregationType(MetricAggregationType metricAggregationType)
BasicStepScalingPolicyProps.getMetricAggregationType()
metricAggregationType
- Aggregation to apply to all data points over the evaluation periods.
Only has meaning if evaluationPeriods != 1
.this
public StepScalingPolicyProps.Builder minAdjustmentMagnitude(java.lang.Number minAdjustmentMagnitude)
BasicStepScalingPolicyProps.getMinAdjustmentMagnitude()
minAdjustmentMagnitude
- 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.this
public StepScalingPolicyProps build()
StepScalingPolicyProps
java.lang.NullPointerException
- if any required attribute was not provided