Interface StepScalingActionProps
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
StepScalingActionProps.Jsii$Proxy
@Generated(value="jsii-pacmak/1.84.0 (build 5404dcf)",
date="2023-06-19T16:30:45.416Z")
@Stability(Stable)
public interface StepScalingActionProps
extends software.amazon.jsii.JsiiSerializable
Properties for a scaling policy.
Example:
// The code below shows an example of how to instantiate this type. // The values are placeholders you should change. import software.amazon.awscdk.services.autoscaling.*; import software.amazon.awscdk.core.*; 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();
-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic final class
A builder forStepScalingActionProps
static final class
An implementation forStepScalingActionProps
-
Method Summary
Modifier and TypeMethodDescriptionbuilder()
default AdjustmentType
How the adjustment numbers are interpreted.The auto scaling group.default Duration
Period after a scaling completes before another scaling activity can start.default Duration
Estimated time until a newly launched instance can send metrics to CloudWatch.default MetricAggregationType
The aggregation type for the CloudWatch metrics.default Number
Minimum absolute number to adjust capacity with as result of percentage scaling.Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getAutoScalingGroup
The auto scaling group. -
getAdjustmentType
How the adjustment numbers are interpreted.Default: ChangeInCapacity
-
getCooldown
Period after a scaling completes before another scaling activity can start.Default: The default cooldown configured on the AutoScalingGroup
-
getEstimatedInstanceWarmup
Estimated time until a newly launched instance can send metrics to CloudWatch.Default: Same as the cooldown
-
getMetricAggregationType
The aggregation type for the CloudWatch metrics.Default: Average
-
getMinAdjustmentMagnitude
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.
Default: No minimum scaling effect
-
builder
- Returns:
- a
StepScalingActionProps.Builder
ofStepScalingActionProps
-