public static interface ScalingPolicy.Builder extends SdkPojo, CopyableBuilder<ScalingPolicy.Builder,ScalingPolicy>
Modifier and Type | Method and Description |
---|---|
ScalingPolicy.Builder |
adjustmentType(String adjustmentType)
The adjustment type, which specifies how
ScalingAdjustment is interpreted. |
ScalingPolicy.Builder |
alarms(Alarm... alarms)
The CloudWatch alarms related to the policy.
|
ScalingPolicy.Builder |
alarms(Collection<Alarm> alarms)
The CloudWatch alarms related to the policy.
|
ScalingPolicy.Builder |
alarms(Consumer<Alarm.Builder>... alarms)
The CloudWatch alarms related to the policy.
|
ScalingPolicy.Builder |
autoScalingGroupName(String autoScalingGroupName)
The name of the Auto Scaling group.
|
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(Consumer<StepAdjustment.Builder>... 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.
|
default ScalingPolicy.Builder |
targetTrackingConfiguration(Consumer<TargetTrackingConfiguration.Builder> targetTrackingConfiguration)
A target tracking scaling policy.
|
ScalingPolicy.Builder |
targetTrackingConfiguration(TargetTrackingConfiguration targetTrackingConfiguration)
A target tracking scaling policy.
|
equalsBySdkFields, sdkFields
copy
applyMutation, build
ScalingPolicy.Builder autoScalingGroupName(String autoScalingGroupName)
The name of the Auto Scaling group.
autoScalingGroupName
- The name of the Auto Scaling group.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. The valid values are SimpleScaling
, StepScaling
, and
TargetTrackingScaling
.
policyType
- The policy type. The valid values are SimpleScaling
, StepScaling
, and
TargetTrackingScaling
.ScalingPolicy.Builder adjustmentType(String adjustmentType)
The adjustment type, which specifies how ScalingAdjustment
is interpreted. The valid values are
ChangeInCapacity
, ExactCapacity
, and PercentChangeInCapacity
.
adjustmentType
- The adjustment type, which specifies how ScalingAdjustment
is interpreted. The 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.
stepAdjustments
- A set of adjustments that enable you to scale based on the size of the alarm breach.ScalingPolicy.Builder stepAdjustments(Consumer<StepAdjustment.Builder>... stepAdjustments)
A set of adjustments that enable you to scale based on the size of the alarm breach.
This is a convenience that creates an instance of theList.Builder
avoiding the need
to create one manually via List#builder()
.
When the Consumer
completes, List.Builder#build()
is called immediately and
its result is passed to #stepAdjustments(List)
.stepAdjustments
- a consumer that will call methods on List.Builder
#stepAdjustments(List)
ScalingPolicy.Builder metricAggregationType(String metricAggregationType)
The aggregation type for the CloudWatch metrics. The valid values are Minimum
,
Maximum
, and Average
.
metricAggregationType
- The aggregation type for the CloudWatch metrics. The 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.
alarms
- The CloudWatch alarms related to the policy.ScalingPolicy.Builder alarms(Consumer<Alarm.Builder>... alarms)
The CloudWatch alarms related to the policy.
This is a convenience that creates an instance of theList.Builder
avoiding the need to create
one manually via List#builder()
.
When the Consumer
completes, List.Builder#build()
is called immediately and its result
is passed to #alarms(List)
.alarms
- a consumer that will call methods on List.Builder
#alarms(List)
ScalingPolicy.Builder targetTrackingConfiguration(TargetTrackingConfiguration targetTrackingConfiguration)
A target tracking scaling policy.
targetTrackingConfiguration
- A target tracking scaling policy.default ScalingPolicy.Builder targetTrackingConfiguration(Consumer<TargetTrackingConfiguration.Builder> targetTrackingConfiguration)
A target tracking scaling policy.
This is a convenience that creates an instance of theTargetTrackingConfiguration.Builder
avoiding
the need to create one manually via TargetTrackingConfiguration.builder()
.
When the Consumer
completes, SdkBuilder.build()
is called
immediately and its result is passed to targetTrackingConfiguration(TargetTrackingConfiguration)
.targetTrackingConfiguration
- a consumer that will call methods on TargetTrackingConfiguration.Builder
targetTrackingConfiguration(TargetTrackingConfiguration)
Copyright © 2019. All rights reserved.