public static interface PutScalingPolicyRequest.Builder extends AutoScalingRequest.Builder, SdkPojo, CopyableBuilder<PutScalingPolicyRequest.Builder,PutScalingPolicyRequest>
| Modifier and Type | Method and Description |
|---|---|
PutScalingPolicyRequest.Builder |
adjustmentType(String adjustmentType)
Specifies whether the
ScalingAdjustment parameter is an absolute number or a percentage of the
current capacity. |
PutScalingPolicyRequest.Builder |
autoScalingGroupName(String autoScalingGroupName)
The name of the Auto Scaling group.
|
PutScalingPolicyRequest.Builder |
cooldown(Integer cooldown)
The amount of time, in seconds, after a scaling activity completes before any further dynamic scaling
activities can start.
|
PutScalingPolicyRequest.Builder |
estimatedInstanceWarmup(Integer estimatedInstanceWarmup)
The estimated time, in seconds, until a newly launched instance can contribute to the CloudWatch metrics.
|
PutScalingPolicyRequest.Builder |
metricAggregationType(String metricAggregationType)
The aggregation type for the CloudWatch metrics.
|
PutScalingPolicyRequest.Builder |
minAdjustmentMagnitude(Integer minAdjustmentMagnitude)
The minimum number of instances to scale.
|
PutScalingPolicyRequest.Builder |
minAdjustmentStep(Integer minAdjustmentStep)
Available for backward compatibility.
|
PutScalingPolicyRequest.Builder |
overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration) |
PutScalingPolicyRequest.Builder |
overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) |
PutScalingPolicyRequest.Builder |
policyName(String policyName)
The name of the policy.
|
PutScalingPolicyRequest.Builder |
policyType(String policyType)
The policy type.
|
PutScalingPolicyRequest.Builder |
scalingAdjustment(Integer scalingAdjustment)
The amount by which a simple scaling policy scales the Auto Scaling group in response to an alarm breach.
|
PutScalingPolicyRequest.Builder |
stepAdjustments(Collection<StepAdjustment> stepAdjustments)
A set of adjustments that enable you to scale based on the size of the alarm breach.
|
PutScalingPolicyRequest.Builder |
stepAdjustments(Consumer<StepAdjustment.Builder>... stepAdjustments)
A set of adjustments that enable you to scale based on the size of the alarm breach.
|
PutScalingPolicyRequest.Builder |
stepAdjustments(StepAdjustment... stepAdjustments)
A set of adjustments that enable you to scale based on the size of the alarm breach.
|
default PutScalingPolicyRequest.Builder |
targetTrackingConfiguration(Consumer<TargetTrackingConfiguration.Builder> targetTrackingConfiguration)
A target tracking scaling policy.
|
PutScalingPolicyRequest.Builder |
targetTrackingConfiguration(TargetTrackingConfiguration targetTrackingConfiguration)
A target tracking scaling policy.
|
buildoverrideConfigurationequalsBySdkFields, sdkFieldscopyapplyMutation, buildPutScalingPolicyRequest.Builder autoScalingGroupName(String autoScalingGroupName)
The name of the Auto Scaling group.
autoScalingGroupName - The name of the Auto Scaling group.PutScalingPolicyRequest.Builder policyName(String policyName)
The name of the policy.
policyName - The name of the policy.PutScalingPolicyRequest.Builder policyType(String policyType)
The policy type. The valid values are SimpleScaling, StepScaling, and
TargetTrackingScaling. If the policy type is null, the value is treated as
SimpleScaling.
policyType - The policy type. The valid values are SimpleScaling, StepScaling, and
TargetTrackingScaling. If the policy type is null, the value is treated as
SimpleScaling.PutScalingPolicyRequest.Builder adjustmentType(String adjustmentType)
Specifies whether the ScalingAdjustment parameter is an absolute number or a percentage of the
current capacity. The valid values are ChangeInCapacity, ExactCapacity, and
PercentChangeInCapacity.
Valid only if the policy type is StepScaling or SimpleScaling. For more
information, see Scaling Adjustment Types in the Amazon EC2 Auto Scaling User Guide.
adjustmentType - Specifies whether the ScalingAdjustment parameter is an absolute number or a percentage
of the current capacity. The valid values are ChangeInCapacity,
ExactCapacity, and PercentChangeInCapacity.
Valid only if the policy type is StepScaling or SimpleScaling. For more
information, see Scaling Adjustment Types in the Amazon EC2 Auto Scaling User Guide.
PutScalingPolicyRequest.Builder minAdjustmentStep(Integer minAdjustmentStep)
Available for backward compatibility. Use MinAdjustmentMagnitude instead.
minAdjustmentStep - Available for backward compatibility. Use MinAdjustmentMagnitude instead.PutScalingPolicyRequest.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.
This property replaces the MinAdjustmentStep property. For example, suppose that you create a
step scaling policy to scale out an Auto Scaling group by 25 percent and you specify a
MinAdjustmentMagnitude of 2. If the group has 4 instances and the scaling policy is performed,
25 percent of 4 is 1. However, because you specified a MinAdjustmentMagnitude of 2, Amazon EC2
Auto Scaling scales out the group by 2 instances.
Valid only if the policy type is SimpleScaling or StepScaling.
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.
This property replaces the MinAdjustmentStep property. For example, suppose that you
create a step scaling policy to scale out an Auto Scaling group by 25 percent and you specify a
MinAdjustmentMagnitude of 2. If the group has 4 instances and the scaling policy is
performed, 25 percent of 4 is 1. However, because you specified a MinAdjustmentMagnitude
of 2, Amazon EC2 Auto Scaling scales out the group by 2 instances.
Valid only if the policy type is SimpleScaling or StepScaling.
PutScalingPolicyRequest.Builder scalingAdjustment(Integer scalingAdjustment)
The amount by which a simple scaling policy scales the Auto Scaling group in response to an alarm breach. The
adjustment is based on the value that you specified in the AdjustmentType parameter (either an
absolute number or a percentage). A positive value adds to the current capacity and a negative value
subtracts from the current capacity. For exact capacity, you must specify a positive value.
Conditional: If you specify SimpleScaling for the policy type, you must specify this parameter.
(Not used with any other policy type.)
scalingAdjustment - The amount by which a simple scaling policy scales the Auto Scaling group in response to an alarm
breach. The adjustment is based on the value that you specified in the AdjustmentType
parameter (either an absolute number or a percentage). A positive value adds to the current capacity
and a negative value subtracts from the current capacity. For exact capacity, you must specify a
positive value.
Conditional: If you specify SimpleScaling for the policy type, you must specify this
parameter. (Not used with any other policy type.)
PutScalingPolicyRequest.Builder cooldown(Integer cooldown)
The amount of time, in seconds, after a scaling activity completes before any further dynamic scaling activities can start. If this parameter is not specified, the default cooldown period for the group applies.
Valid only if the policy type is SimpleScaling. For more information, see Scaling Cooldowns in the
Amazon EC2 Auto Scaling User Guide.
cooldown - The amount of time, in seconds, after a scaling activity completes before any further dynamic scaling
activities can start. If this parameter is not specified, the default cooldown period for the group
applies.
Valid only if the policy type is SimpleScaling. For more information, see Scaling Cooldowns in
the Amazon EC2 Auto Scaling User Guide.
PutScalingPolicyRequest.Builder metricAggregationType(String metricAggregationType)
The aggregation type for the CloudWatch metrics. The valid values are Minimum,
Maximum, and Average. If the aggregation type is null, the value is treated as
Average.
Valid only if the policy type is StepScaling.
metricAggregationType - The aggregation type for the CloudWatch metrics. The valid values are Minimum,
Maximum, and Average. If the aggregation type is null, the value is treated
as Average.
Valid only if the policy type is StepScaling.
PutScalingPolicyRequest.Builder stepAdjustments(Collection<StepAdjustment> stepAdjustments)
A set of adjustments that enable you to scale based on the size of the alarm breach.
Conditional: If you specify StepScaling for the policy type, you must specify this parameter.
(Not used with any other policy type.)
stepAdjustments - A set of adjustments that enable you to scale based on the size of the alarm breach.
Conditional: If you specify StepScaling for the policy type, you must specify this
parameter. (Not used with any other policy type.)
PutScalingPolicyRequest.Builder stepAdjustments(StepAdjustment... stepAdjustments)
A set of adjustments that enable you to scale based on the size of the alarm breach.
Conditional: If you specify StepScaling for the policy type, you must specify this parameter.
(Not used with any other policy type.)
stepAdjustments - A set of adjustments that enable you to scale based on the size of the alarm breach.
Conditional: If you specify StepScaling for the policy type, you must specify this
parameter. (Not used with any other policy type.)
PutScalingPolicyRequest.Builder stepAdjustments(Consumer<StepAdjustment.Builder>... stepAdjustments)
A set of adjustments that enable you to scale based on the size of the alarm breach.
Conditional: If you specify StepScaling for the policy type, you must specify this parameter.
(Not used with any other policy type.)
List.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) PutScalingPolicyRequest.Builder estimatedInstanceWarmup(Integer estimatedInstanceWarmup)
The estimated time, in seconds, until a newly launched instance can contribute to the CloudWatch metrics. The default is to use the value specified for the default cooldown period for the group.
Valid only if the policy type is StepScaling or TargetTrackingScaling.
estimatedInstanceWarmup - The estimated time, in seconds, until a newly launched instance can contribute to the CloudWatch
metrics. The default is to use the value specified for the default cooldown period for the group.
Valid only if the policy type is StepScaling or TargetTrackingScaling.
PutScalingPolicyRequest.Builder targetTrackingConfiguration(TargetTrackingConfiguration targetTrackingConfiguration)
A target tracking scaling policy. Includes support for predefined or customized metrics.
For more information, see TargetTrackingConfiguration in the Amazon EC2 Auto Scaling API Reference.
Conditional: If you specify TargetTrackingScaling for the policy type, you must specify this
parameter. (Not used with any other policy type.)
targetTrackingConfiguration - A target tracking scaling policy. Includes support for predefined or customized metrics.
For more information, see TargetTrackingConfiguration in the Amazon EC2 Auto Scaling API Reference.
Conditional: If you specify TargetTrackingScaling for the policy type, you must specify
this parameter. (Not used with any other policy type.)
default PutScalingPolicyRequest.Builder targetTrackingConfiguration(Consumer<TargetTrackingConfiguration.Builder> targetTrackingConfiguration)
A target tracking scaling policy. Includes support for predefined or customized metrics.
For more information, see TargetTrackingConfiguration in the Amazon EC2 Auto Scaling API Reference.
Conditional: If you specify TargetTrackingScaling for the policy type, you must specify this
parameter. (Not used with any other policy type.)
TargetTrackingConfiguration.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.BuildertargetTrackingConfiguration(TargetTrackingConfiguration)PutScalingPolicyRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration)
overrideConfiguration in interface AwsRequest.BuilderPutScalingPolicyRequest.Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer)
overrideConfiguration in interface AwsRequest.BuilderCopyright © 2019. All rights reserved.