public static final class StepScalingActionProps.Builder
extends java.lang.Object
StepScalingActionProps
Constructor and Description |
---|
Builder() |
public StepScalingActionProps.Builder autoScalingGroup(IAutoScalingGroup autoScalingGroup)
StepScalingActionProps.getAutoScalingGroup()
autoScalingGroup
- The auto scaling group. This parameter is required.this
public StepScalingActionProps.Builder adjustmentType(AdjustmentType adjustmentType)
StepScalingActionProps.getAdjustmentType()
adjustmentType
- How the adjustment numbers are interpreted.this
public StepScalingActionProps.Builder cooldown(Duration cooldown)
StepScalingActionProps.getCooldown()
cooldown
- Period after a scaling completes before another scaling activity can start.this
public StepScalingActionProps.Builder estimatedInstanceWarmup(Duration estimatedInstanceWarmup)
StepScalingActionProps.getEstimatedInstanceWarmup()
estimatedInstanceWarmup
- Estimated time until a newly launched instance can send metrics to CloudWatch.this
public StepScalingActionProps.Builder metricAggregationType(MetricAggregationType metricAggregationType)
StepScalingActionProps.getMetricAggregationType()
metricAggregationType
- The aggregation type for the CloudWatch metrics.this
public StepScalingActionProps.Builder minAdjustmentMagnitude(java.lang.Number minAdjustmentMagnitude)
StepScalingActionProps.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 StepScalingActionProps build()
StepScalingActionProps
java.lang.NullPointerException
- if any required attribute was not provided