CopyableBuilder<ScalingPolicy.Builder,ScalingPolicy>
, SdkBuilder<ScalingPolicy.Builder,ScalingPolicy>
public static interface ScalingPolicy.Builder extends CopyableBuilder<ScalingPolicy.Builder,ScalingPolicy>
Modifier and Type | Method | Description |
---|---|---|
ScalingPolicy.Builder |
adjustmentType(String adjustmentType) |
The adjustment type, which specifies how
ScalingAdjustment is interpreted. |
ScalingPolicy.Builder |
alarms(Collection<Alarm> alarms) |
The CloudWatch alarms related to the policy.
|
ScalingPolicy.Builder |
alarms(Alarm... alarms) |
The CloudWatch alarms related to the policy.
|
ScalingPolicy.Builder |
autoScalingGroupName(String autoScalingGroupName) |
The name of the Auto Scaling group associated with this scaling policy.
|
ScalingPolicy.Builder |
cooldown(Integer cooldown) |
The amount of time, in seconds, after a scaling activity completes before any further dynamic scaling
activities can start.
|
ScalingPolicy.Builder |
estimatedInstanceWarmup(Integer estimatedInstanceWarmup) |
The estimated time, in seconds, until a newly launched instance can contribute to the CloudWatch metrics.
|
ScalingPolicy.Builder |
metricAggregationType(String metricAggregationType) |
The aggregation type for the CloudWatch metrics.
|
ScalingPolicy.Builder |
minAdjustmentMagnitude(Integer minAdjustmentMagnitude) |
The minimum number of instances to scale.
|
ScalingPolicy.Builder |
minAdjustmentStep(Integer minAdjustmentStep) |
Available for backward compatibility.
|
ScalingPolicy.Builder |
policyARN(String policyARN) |
The Amazon Resource Name (ARN) of the policy.
|
ScalingPolicy.Builder |
policyName(String policyName) |
The name of the scaling policy.
|
ScalingPolicy.Builder |
policyType(String policyType) |
The policy type.
|
ScalingPolicy.Builder |
scalingAdjustment(Integer scalingAdjustment) |
The amount by which to scale, based on the specified adjustment type.
|
ScalingPolicy.Builder |
stepAdjustments(Collection<StepAdjustment> stepAdjustments) |
A set of adjustments that enable you to scale based on the size of the alarm breach.
|
ScalingPolicy.Builder |
stepAdjustments(StepAdjustment... stepAdjustments) |
A set of adjustments that enable you to scale based on the size of the alarm breach.
|
copy
apply, build
ScalingPolicy.Builder autoScalingGroupName(String autoScalingGroupName)
The name of the Auto Scaling group associated with this scaling policy.
autoScalingGroupName
- The name of the Auto Scaling group associated with this scaling policy.ScalingPolicy.Builder policyName(String policyName)
The name of the scaling policy.
policyName
- The name of the scaling policy.ScalingPolicy.Builder policyARN(String policyARN)
The Amazon Resource Name (ARN) of the policy.
policyARN
- The Amazon Resource Name (ARN) of the policy.ScalingPolicy.Builder policyType(String policyType)
The policy type. Valid values are SimpleScaling
and StepScaling
.
policyType
- The policy type. Valid values are SimpleScaling
and StepScaling
.ScalingPolicy.Builder adjustmentType(String adjustmentType)
The adjustment type, which specifies how ScalingAdjustment
is interpreted. Valid values are
ChangeInCapacity
, ExactCapacity
, and PercentChangeInCapacity
.
adjustmentType
- The adjustment type, which specifies how ScalingAdjustment
is interpreted. Valid values
are ChangeInCapacity
, ExactCapacity
, and
PercentChangeInCapacity
.ScalingPolicy.Builder minAdjustmentStep(Integer minAdjustmentStep)
Available for backward compatibility. Use MinAdjustmentMagnitude
instead.
minAdjustmentStep
- Available for backward compatibility. Use MinAdjustmentMagnitude
instead.ScalingPolicy.Builder minAdjustmentMagnitude(Integer minAdjustmentMagnitude)
The minimum number of instances to scale. If the value of AdjustmentType
is
PercentChangeInCapacity
, the scaling policy changes the DesiredCapacity
of the Auto
Scaling group by at least this many instances. Otherwise, the error is ValidationError
.
minAdjustmentMagnitude
- The minimum number of instances to scale. If the value of AdjustmentType
is
PercentChangeInCapacity
, the scaling policy changes the DesiredCapacity
of
the Auto Scaling group by at least this many instances. Otherwise, the error is
ValidationError
.ScalingPolicy.Builder scalingAdjustment(Integer scalingAdjustment)
The amount by which to scale, based on the specified adjustment type. A positive value adds to the current capacity while a negative number removes from the current capacity.
scalingAdjustment
- The amount by which to scale, based on the specified adjustment type. A positive value adds to the
current capacity while a negative number removes from the current capacity.ScalingPolicy.Builder cooldown(Integer cooldown)
The amount of time, in seconds, after a scaling activity completes before any further dynamic scaling activities can start.
cooldown
- The amount of time, in seconds, after a scaling activity completes before any further dynamic scaling
activities can start.ScalingPolicy.Builder stepAdjustments(Collection<StepAdjustment> stepAdjustments)
A set of adjustments that enable you to scale based on the size of the alarm breach.
stepAdjustments
- A set of adjustments that enable you to scale based on the size of the alarm breach.ScalingPolicy.Builder stepAdjustments(StepAdjustment... stepAdjustments)
A set of adjustments that enable you to scale based on the size of the alarm breach.
NOTE: This method appends the values to the existing list (if any). Use
#setStepAdjustments(java.util.Collection)
or #withStepAdjustments(java.util.Collection)
if
you want to override the existing values.
stepAdjustments
- A set of adjustments that enable you to scale based on the size of the alarm breach.ScalingPolicy.Builder metricAggregationType(String metricAggregationType)
The aggregation type for the CloudWatch metrics. Valid values are Minimum
, Maximum
,
and Average
.
metricAggregationType
- The aggregation type for the CloudWatch metrics. Valid values are Minimum
,
Maximum
, and Average
.ScalingPolicy.Builder estimatedInstanceWarmup(Integer estimatedInstanceWarmup)
The estimated time, in seconds, until a newly launched instance can contribute to the CloudWatch metrics.
estimatedInstanceWarmup
- The estimated time, in seconds, until a newly launched instance can contribute to the CloudWatch
metrics.ScalingPolicy.Builder alarms(Collection<Alarm> alarms)
The CloudWatch alarms related to the policy.
alarms
- The CloudWatch alarms related to the policy.ScalingPolicy.Builder alarms(Alarm... alarms)
The CloudWatch alarms related to the policy.
NOTE: This method appends the values to the existing list (if any). Use
#setAlarms(java.util.Collection)
or #withAlarms(java.util.Collection)
if you want to override
the existing values.
alarms
- The CloudWatch alarms related to the policy.Copyright © 2017 Amazon Web Services, Inc. All Rights Reserved.