public static final class StepScalingAction.Builder
extends java.lang.Object
StepScalingAction
.Modifier and Type | Method and Description |
---|---|
StepScalingAction.Builder |
adjustmentType(AdjustmentType adjustmentType)
How the adjustment numbers are interpreted.
|
StepScalingAction.Builder |
autoScalingGroup(IAutoScalingGroup autoScalingGroup)
The auto scaling group.
|
StepScalingAction |
build() |
StepScalingAction.Builder |
cooldown(Duration cooldown)
Period after a scaling completes before another scaling activity can start.
|
static StepScalingAction.Builder |
create(software.constructs.Construct scope,
java.lang.String id) |
StepScalingAction.Builder |
estimatedInstanceWarmup(Duration estimatedInstanceWarmup)
Estimated time until a newly launched instance can send metrics to CloudWatch.
|
StepScalingAction.Builder |
metricAggregationType(MetricAggregationType metricAggregationType)
The aggregation type for the CloudWatch metrics.
|
StepScalingAction.Builder |
minAdjustmentMagnitude(java.lang.Number minAdjustmentMagnitude)
Minimum absolute number to adjust capacity with as result of percentage scaling.
|
public static StepScalingAction.Builder create(software.constructs.Construct scope, java.lang.String id)
scope
- This parameter is required.id
- This parameter is required.StepScalingAction.Builder
.public StepScalingAction.Builder autoScalingGroup(IAutoScalingGroup autoScalingGroup)
autoScalingGroup
- The auto scaling group. This parameter is required.this
public StepScalingAction.Builder adjustmentType(AdjustmentType adjustmentType)
Default: ChangeInCapacity
adjustmentType
- How the adjustment numbers are interpreted. This parameter is required.this
public StepScalingAction.Builder cooldown(Duration cooldown)
Default: The default cooldown configured on the AutoScalingGroup
cooldown
- Period after a scaling completes before another scaling activity can start. This parameter is required.this
public StepScalingAction.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
public StepScalingAction.Builder metricAggregationType(MetricAggregationType metricAggregationType)
Default: Average
metricAggregationType
- The aggregation type for the CloudWatch metrics. This parameter is required.this
public StepScalingAction.Builder minAdjustmentMagnitude(java.lang.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
public StepScalingAction build()