@Generated(value="jsii-pacmak/1.67.0 (build 2c027f5)", date="2022-09-07T23:47:01.398Z") @Stability(value=Experimental) 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.core.*;
import software.amazon.awscdk.services.autoscaling.*;
AutoScalingGroup autoScalingGroup;
Duration duration;
StepScalingActionProps stepScalingActionProps = StepScalingActionProps.builder()
.autoScalingGroup(autoScalingGroup)
// the properties below are optional
.adjustmentType(AdjustmentType.CHANGE_IN_CAPACITY)
.cooldown(duration)
.estimatedInstanceWarmup(duration)
.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()
(experimental) How the adjustment numbers are interpreted.
|
IAutoScalingGroup |
getAutoScalingGroup()
(experimental) The auto scaling group.
|
default Duration |
getCooldown()
(experimental) Period after a scaling completes before another scaling activity can start.
|
default Duration |
getEstimatedInstanceWarmup()
(experimental) Estimated time until a newly launched instance can send metrics to CloudWatch.
|
default MetricAggregationType |
getMetricAggregationType()
(experimental) The aggregation type for the CloudWatch metrics.
|
default Number |
getMinAdjustmentMagnitude()
(experimental) Minimum absolute number to adjust capacity with as result of percentage scaling.
|
@Stability(value=Experimental) @NotNull IAutoScalingGroup getAutoScalingGroup()
@Stability(value=Experimental) @Nullable default AdjustmentType getAdjustmentType()
Default: ChangeInCapacity
@Stability(value=Experimental) @Nullable default Duration getCooldown()
Default: The default cooldown configured on the AutoScalingGroup
@Stability(value=Experimental) @Nullable default Duration getEstimatedInstanceWarmup()
Default: Same as the cooldown
@Stability(value=Experimental) @Nullable default MetricAggregationType getMetricAggregationType()
Default: Average
@Stability(value=Experimental) @Nullable default Number getMinAdjustmentMagnitude()
Only when using AdjustmentType = PercentChangeInCapacity, this number controls the minimum absolute effect size.
Default: No minimum scaling effect
@Stability(value=Experimental) static StepScalingActionProps.Builder builder()
StepScalingActionProps.Builder of StepScalingActionPropsCopyright © 2022. All rights reserved.