Cloneable
, ReadLimitInfo
, ToCopyableBuilder<PutScalingPolicyRequest.Builder,PutScalingPolicyRequest>
@Generated("software.amazon.awssdk:codegen") public class PutScalingPolicyRequest extends AmazonWebServiceRequest implements ToCopyableBuilder<PutScalingPolicyRequest.Builder,PutScalingPolicyRequest>
Modifier and Type | Class | Description |
---|---|---|
static interface |
PutScalingPolicyRequest.Builder |
NOOP
Modifier and Type | Method | Description |
---|---|---|
String |
adjustmentType() |
The adjustment type.
|
String |
autoScalingGroupName() |
The name or ARN of the group.
|
static PutScalingPolicyRequest.Builder |
builder() |
|
Integer |
cooldown() |
The amount of time, in seconds, after a scaling activity completes and before the next scaling activity can
start.
|
boolean |
equals(Object obj) |
|
Integer |
estimatedInstanceWarmup() |
The estimated time, in seconds, until a newly launched instance can contribute to the CloudWatch metrics.
|
int |
hashCode() |
|
String |
metricAggregationType() |
The aggregation type for the CloudWatch metrics.
|
Integer |
minAdjustmentMagnitude() |
The minimum number of instances to scale.
|
Integer |
minAdjustmentStep() |
Available for backward compatibility.
|
String |
policyName() |
The name of the policy.
|
String |
policyType() |
The policy type.
|
Integer |
scalingAdjustment() |
The amount by which to scale, based on the specified adjustment type.
|
static Class<? extends PutScalingPolicyRequest.Builder> |
serializableBuilderClass() |
|
List<StepAdjustment> |
stepAdjustments() |
A set of adjustments that enable you to scale based on the size of the alarm breach.
|
PutScalingPolicyRequest.Builder |
toBuilder() |
Take this object and create a builder that contains all of the current property values of this object.
|
String |
toString() |
clone, getCloneRoot, getCloneSource, getCustomQueryParameters, getCustomRequestHeaders, getGeneralProgressListener, getReadLimit, getRequestClientOptions, getRequestCredentialsProvider, getRequestMetricCollector, getSdkClientExecutionTimeout, putCustomQueryParameter, putCustomRequestHeader, setGeneralProgressListener, setRequestCredentials, setRequestCredentialsProvider, setRequestMetricCollector, setSdkClientExecutionTimeout, withGeneralProgressListener, withRequestMetricCollector, withSdkClientExecutionTimeout
public String autoScalingGroupName()
The name or ARN of the group.
public String policyName()
The name of the policy.
public String policyType()
The policy type. Valid values are SimpleScaling
and StepScaling
. If the policy type is
null, the value is treated as SimpleScaling
.
SimpleScaling
and StepScaling
. If the policy
type is null, the value is treated as SimpleScaling
.public String adjustmentType()
The adjustment type. Valid values are ChangeInCapacity
, ExactCapacity
, and
PercentChangeInCapacity
.
For more information, see Dynamic Scaling in the Auto Scaling User Guide.
ChangeInCapacity
, ExactCapacity
, and
PercentChangeInCapacity
.
For more information, see Dynamic Scaling in the Auto Scaling User Guide.
public Integer minAdjustmentStep()
Available for backward compatibility. Use MinAdjustmentMagnitude
instead.
MinAdjustmentMagnitude
instead.public 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
.
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
.public 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.
This parameter is required if the policy type is SimpleScaling
and not supported otherwise.
This parameter is required if the policy type is SimpleScaling
and not supported otherwise.
public Integer cooldown()
The amount of time, in seconds, after a scaling activity completes and before the next scaling activity can start. If this parameter is not specified, the default cooldown period for the group applies.
This parameter is not supported unless the policy type is SimpleScaling
.
For more information, see Auto Scaling Cooldowns in the Auto Scaling User Guide.
This parameter is not supported unless the policy type is SimpleScaling
.
For more information, see Auto Scaling Cooldowns in the Auto Scaling User Guide.
public String metricAggregationType()
The aggregation type for the CloudWatch metrics. Valid values are Minimum
, Maximum
, and
Average
. If the aggregation type is null, the value is treated as Average
.
This parameter is not supported if the policy type is SimpleScaling
.
Minimum
,
Maximum
, and Average
. If the aggregation type is null, the value is treated as
Average
.
This parameter is not supported if the policy type is SimpleScaling
.
public List<StepAdjustment> stepAdjustments()
A set of adjustments that enable you to scale based on the size of the alarm breach.
This parameter is required if the policy type is StepScaling
and not supported otherwise.
This parameter is required if the policy type is StepScaling
and not supported otherwise.
public 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.
This parameter is not supported if the policy type is SimpleScaling
.
This parameter is not supported if the policy type is SimpleScaling
.
public PutScalingPolicyRequest.Builder toBuilder()
ToCopyableBuilder
toBuilder
in interface ToCopyableBuilder<PutScalingPolicyRequest.Builder,PutScalingPolicyRequest>
public static PutScalingPolicyRequest.Builder builder()
public static Class<? extends PutScalingPolicyRequest.Builder> serializableBuilderClass()
Copyright © 2017 Amazon Web Services, Inc. All Rights Reserved.