@Generated(value="software.amazon.awssdk:codegen") public final class ManagedScaling extends Object implements SdkPojo, Serializable, ToCopyableBuilder<ManagedScaling.Builder,ManagedScaling>
The managed scaling settings for the Auto Scaling group capacity provider.
When managed scaling is enabled, Amazon ECS manages the scale-in and scale-out actions of the Auto Scaling group.
Amazon ECS manages a target tracking scaling policy using an Amazon ECS managed CloudWatch metric with the specified
targetCapacity value as the target value for the metric. For more information, see Using Managed Scaling in the Amazon Elastic Container Service Developer Guide.
If managed scaling is disabled, the user must manage the scaling of the Auto Scaling group.
| Modifier and Type | Class and Description |
|---|---|
static interface |
ManagedScaling.Builder |
| Modifier and Type | Method and Description |
|---|---|
static ManagedScaling.Builder |
builder() |
boolean |
equals(Object obj) |
boolean |
equalsBySdkFields(Object obj) |
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
int |
hashCode() |
Integer |
instanceWarmupPeriod()
The period of time, in seconds, after a newly launched Amazon EC2 instance can contribute to CloudWatch metrics
for Auto Scaling group.
|
Integer |
maximumScalingStepSize()
The maximum number of container instances that Amazon ECS scales in or scales out at one time.
|
Integer |
minimumScalingStepSize()
The minimum number of container instances that Amazon ECS scales in or scales out at one time.
|
List<SdkField<?>> |
sdkFields() |
static Class<? extends ManagedScaling.Builder> |
serializableBuilderClass() |
ManagedScalingStatus |
status()
Determines whether to enable managed scaling for the capacity provider.
|
String |
statusAsString()
Determines whether to enable managed scaling for the capacity provider.
|
Integer |
targetCapacity()
The target capacity value for the capacity provider.
|
ManagedScaling.Builder |
toBuilder() |
String |
toString()
Returns a string representation of this object.
|
clone, finalize, getClass, notify, notifyAll, wait, wait, waitcopypublic final ManagedScalingStatus status()
Determines whether to enable managed scaling for the capacity provider.
If the service returns an enum value that is not available in the current SDK version, status will
return ManagedScalingStatus.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available
from statusAsString().
ManagedScalingStatuspublic final String statusAsString()
Determines whether to enable managed scaling for the capacity provider.
If the service returns an enum value that is not available in the current SDK version, status will
return ManagedScalingStatus.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available
from statusAsString().
ManagedScalingStatuspublic final Integer targetCapacity()
The target capacity value for the capacity provider. The specified value must be greater than 0 and
less than or equal to 100. A value of 100 results in the Amazon EC2 instances in your
Auto Scaling group being completely used.
0 and less than or equal to 100. A value of 100 results in the
Amazon EC2 instances in your Auto Scaling group being completely used.public final Integer minimumScalingStepSize()
The minimum number of container instances that Amazon ECS scales in or scales out at one time. If this parameter
is omitted, the default value of 1 is used.
1 is used.public final Integer maximumScalingStepSize()
The maximum number of container instances that Amazon ECS scales in or scales out at one time. If this parameter
is omitted, the default value of 10000 is used.
10000 is used.public final Integer instanceWarmupPeriod()
The period of time, in seconds, after a newly launched Amazon EC2 instance can contribute to CloudWatch metrics
for Auto Scaling group. If this parameter is omitted, the default value of 300 seconds is used.
300
seconds is used.public ManagedScaling.Builder toBuilder()
toBuilder in interface ToCopyableBuilder<ManagedScaling.Builder,ManagedScaling>public static ManagedScaling.Builder builder()
public static Class<? extends ManagedScaling.Builder> serializableBuilderClass()
public final boolean equalsBySdkFields(Object obj)
equalsBySdkFields in interface SdkPojopublic final String toString()
Copyright © 2021. All rights reserved.