@Generated(value="jsii-pacmak/1.67.0 (build 2c027f5)", date="2022-09-19T20:26:36.821Z") @Stability(value=Stable) public interface StepScalingActionProps extends software.amazon.jsii.JsiiSerializable
Example:
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.*;
import software.amazon.awscdk.services.autoscaling.*;
AutoScalingGroup autoScalingGroup;
StepScalingActionProps stepScalingActionProps = StepScalingActionProps.builder()
.autoScalingGroup(autoScalingGroup)
// the properties below are optional
.adjustmentType(AdjustmentType.CHANGE_IN_CAPACITY)
.cooldown(Duration.minutes(30))
.estimatedInstanceWarmup(Duration.minutes(30))
.metricAggregationType(MetricAggregationType.AVERAGE)
.minAdjustmentMagnitude(123)
.build();
| Modifier and Type | Interface and Description |
|---|---|
static class |
StepScalingActionProps.Builder
A builder for
StepScalingActionProps |
static class |
StepScalingActionProps.Jsii$Proxy
An implementation for
StepScalingActionProps |
| Modifier and Type | Method and Description |
|---|---|
static StepScalingActionProps.Builder |
builder() |
default AdjustmentType |
getAdjustmentType()
How the adjustment numbers are interpreted.
|
IAutoScalingGroup |
getAutoScalingGroup()
The auto scaling group.
|
default Duration |
getCooldown()
Period after a scaling completes before another scaling activity can start.
|
default Duration |
getEstimatedInstanceWarmup()
Estimated time until a newly launched instance can send metrics to CloudWatch.
|
default MetricAggregationType |
getMetricAggregationType()
The aggregation type for the CloudWatch metrics.
|
default Number |
getMinAdjustmentMagnitude()
Minimum absolute number to adjust capacity with as result of percentage scaling.
|
@Stability(value=Stable) @NotNull IAutoScalingGroup getAutoScalingGroup()
@Stability(value=Stable) @Nullable default AdjustmentType getAdjustmentType()
Default: ChangeInCapacity
@Stability(value=Stable) @Nullable default Duration getCooldown()
Default: The default cooldown configured on the AutoScalingGroup
@Stability(value=Stable) @Nullable default Duration getEstimatedInstanceWarmup()
Default: Same as the cooldown
@Stability(value=Stable) @Nullable default MetricAggregationType getMetricAggregationType()
Default: Average
@Stability(value=Stable) @Nullable default Number getMinAdjustmentMagnitude()
Only when using AdjustmentType = PercentChangeInCapacity, this number controls the minimum absolute effect size.
Default: No minimum scaling effect
@Stability(value=Stable) static StepScalingActionProps.Builder builder()
StepScalingActionProps.Builder of StepScalingActionPropsCopyright © 2022. All rights reserved.