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:37.377Z")
@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.applicationautoscaling.*; import software.amazon.awscdk.core.*; ScalableTarget scalableTarget; StepScalingActionProps stepScalingActionProps = StepScalingActionProps.builder() .scalingTarget(scalableTarget) // the properties below are optional .adjustmentType(AdjustmentType.CHANGE_IN_CAPACITY) .cooldown(Duration.minutes(30)) .metricAggregationType(MetricAggregationType.AVERAGE) .minAdjustmentMagnitude(123) .policyName("policyName") .build();
-
Nested Class Summary
Nested ClassesModifier 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.default Duration
Grace period after scaling activity.default MetricAggregationType
The aggregation type for the CloudWatch metrics.default Number
Minimum absolute number to adjust capacity with as result of percentage scaling.default String
A name for the scaling policy.The scalable target.Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getScalingTarget
The scalable target. -
getAdjustmentType
How the adjustment numbers are interpreted.Default: ChangeInCapacity
-
getCooldown
Grace period after scaling activity.For scale out policies, multiple scale outs during the cooldown period are squashed so that only the biggest scale out happens.
For scale in policies, subsequent scale ins during the cooldown period are ignored.
Default: No cooldown period
-
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
-
getPolicyName
A name for the scaling policy.Default: Automatically generated name
-
builder
- Returns:
- a
StepScalingActionProps.Builder
ofStepScalingActionProps
-