Class StepScalingActionProps.Builder
java.lang.Object
software.amazon.awscdk.services.autoscaling.StepScalingActionProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<StepScalingActionProps>
- Enclosing interface:
StepScalingActionProps
@Stability(Stable)
public static final class StepScalingActionProps.Builder
extends Object
implements software.amazon.jsii.Builder<StepScalingActionProps>
A builder for
StepScalingActionProps-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionadjustmentType(AdjustmentType adjustmentType) Sets the value ofStepScalingActionProps.getAdjustmentType()autoScalingGroup(IAutoScalingGroup autoScalingGroup) Sets the value ofStepScalingActionProps.getAutoScalingGroup()build()Builds the configured instance.Deprecated.cooldown is not valid with step scaling actionestimatedInstanceWarmup(Duration estimatedInstanceWarmup) Sets the value ofStepScalingActionProps.getEstimatedInstanceWarmup()metricAggregationType(MetricAggregationType metricAggregationType) Sets the value ofStepScalingActionProps.getMetricAggregationType()minAdjustmentMagnitude(Number minAdjustmentMagnitude) Sets the value ofStepScalingActionProps.getMinAdjustmentMagnitude()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
autoScalingGroup
@Stability(Stable) public StepScalingActionProps.Builder autoScalingGroup(IAutoScalingGroup autoScalingGroup) Sets the value ofStepScalingActionProps.getAutoScalingGroup()- Parameters:
autoScalingGroup- The auto scaling group. This parameter is required.- Returns:
this
-
adjustmentType
@Stability(Stable) public StepScalingActionProps.Builder adjustmentType(AdjustmentType adjustmentType) Sets the value ofStepScalingActionProps.getAdjustmentType()- Parameters:
adjustmentType- How the adjustment numbers are interpreted.- Returns:
this
-
cooldown
@Stability(Deprecated) @Deprecated public StepScalingActionProps.Builder cooldown(Duration cooldown) Deprecated.cooldown is not valid with step scaling actionSets the value ofStepScalingActionProps.getCooldown()- Parameters:
cooldown- Period after a scaling completes before another scaling activity can start.- Returns:
this
-
estimatedInstanceWarmup
@Stability(Stable) public StepScalingActionProps.Builder estimatedInstanceWarmup(Duration estimatedInstanceWarmup) Sets the value ofStepScalingActionProps.getEstimatedInstanceWarmup()- Parameters:
estimatedInstanceWarmup- Estimated time until a newly launched instance can send metrics to CloudWatch.- Returns:
this
-
metricAggregationType
@Stability(Stable) public StepScalingActionProps.Builder metricAggregationType(MetricAggregationType metricAggregationType) Sets the value ofStepScalingActionProps.getMetricAggregationType()- Parameters:
metricAggregationType- The aggregation type for the CloudWatch metrics.- Returns:
this
-
minAdjustmentMagnitude
@Stability(Stable) public StepScalingActionProps.Builder minAdjustmentMagnitude(Number minAdjustmentMagnitude) Sets the value ofStepScalingActionProps.getMinAdjustmentMagnitude()- Parameters:
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.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<StepScalingActionProps>- Returns:
- a new instance of
StepScalingActionProps - Throws:
NullPointerException- if any required attribute was not provided
-