@Stability(value=Experimental) public static final class StepScalingPolicyProps.Builder extends Object implements software.amazon.jsii.Builder<StepScalingPolicyProps>
StepScalingPolicyProps| Constructor and Description |
|---|
Builder() |
@Stability(value=Experimental) public StepScalingPolicyProps.Builder scalingTarget(IScalableTarget scalingTarget)
StepScalingPolicyProps.getScalingTarget()scalingTarget - The scaling target. This parameter is required.this@Stability(value=Experimental) public StepScalingPolicyProps.Builder metric(IMetric metric)
BasicStepScalingPolicyProps.getMetric()metric - Metric to scale on. This parameter is required.this@Stability(value=Experimental) public StepScalingPolicyProps.Builder scalingSteps(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@Stability(value=Experimental) public StepScalingPolicyProps.Builder adjustmentType(AdjustmentType adjustmentType)
BasicStepScalingPolicyProps.getAdjustmentType()adjustmentType - How the adjustment numbers inside 'intervals' are interpreted.this@Stability(value=Experimental) public StepScalingPolicyProps.Builder cooldown(Duration cooldown)
BasicStepScalingPolicyProps.getCooldown()cooldown - 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.
this@Stability(value=Experimental) public StepScalingPolicyProps.Builder evaluationPeriods(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@Stability(value=Experimental) 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@Stability(value=Experimental) public StepScalingPolicyProps.Builder minAdjustmentMagnitude(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@Stability(value=Experimental) public StepScalingPolicyProps build()
build in interface software.amazon.jsii.Builder<StepScalingPolicyProps>StepScalingPolicyPropsNullPointerException - if any required attribute was not providedCopyright © 2021. All rights reserved.