@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class ManagedScaling extends Object implements Serializable, Cloneable, StructuredPojo
The managed scaling settings for the Auto Scaling group capacity provider.
When managed scaling is turned on, 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 off, the user must manage the scaling of the Auto Scaling group.
Constructor and Description |
---|
ManagedScaling() |
Modifier and Type | Method and Description |
---|---|
ManagedScaling |
clone() |
boolean |
equals(Object obj) |
Integer |
getInstanceWarmupPeriod()
The period of time, in seconds, after a newly launched Amazon EC2 instance can contribute to CloudWatch metrics
for Auto Scaling group.
|
Integer |
getMaximumScalingStepSize()
The maximum number of Amazon EC2 instances that Amazon ECS will scale out at one time.
|
Integer |
getMinimumScalingStepSize()
The minimum number of Amazon EC2 instances that Amazon ECS will scale out at one time.
|
String |
getStatus()
Determines whether to use managed scaling for the capacity provider.
|
Integer |
getTargetCapacity()
The target capacity utilization as a percentage for the capacity provider.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setInstanceWarmupPeriod(Integer instanceWarmupPeriod)
The period of time, in seconds, after a newly launched Amazon EC2 instance can contribute to CloudWatch metrics
for Auto Scaling group.
|
void |
setMaximumScalingStepSize(Integer maximumScalingStepSize)
The maximum number of Amazon EC2 instances that Amazon ECS will scale out at one time.
|
void |
setMinimumScalingStepSize(Integer minimumScalingStepSize)
The minimum number of Amazon EC2 instances that Amazon ECS will scale out at one time.
|
void |
setStatus(String status)
Determines whether to use managed scaling for the capacity provider.
|
void |
setTargetCapacity(Integer targetCapacity)
The target capacity utilization as a percentage for the capacity provider.
|
String |
toString()
Returns a string representation of this object.
|
ManagedScaling |
withInstanceWarmupPeriod(Integer instanceWarmupPeriod)
The period of time, in seconds, after a newly launched Amazon EC2 instance can contribute to CloudWatch metrics
for Auto Scaling group.
|
ManagedScaling |
withMaximumScalingStepSize(Integer maximumScalingStepSize)
The maximum number of Amazon EC2 instances that Amazon ECS will scale out at one time.
|
ManagedScaling |
withMinimumScalingStepSize(Integer minimumScalingStepSize)
The minimum number of Amazon EC2 instances that Amazon ECS will scale out at one time.
|
ManagedScaling |
withStatus(ManagedScalingStatus status)
Determines whether to use managed scaling for the capacity provider.
|
ManagedScaling |
withStatus(String status)
Determines whether to use managed scaling for the capacity provider.
|
ManagedScaling |
withTargetCapacity(Integer targetCapacity)
The target capacity utilization as a percentage for the capacity provider.
|
public void setStatus(String status)
Determines whether to use managed scaling for the capacity provider.
status
- Determines whether to use managed scaling for the capacity provider.ManagedScalingStatus
public String getStatus()
Determines whether to use managed scaling for the capacity provider.
ManagedScalingStatus
public ManagedScaling withStatus(String status)
Determines whether to use managed scaling for the capacity provider.
status
- Determines whether to use managed scaling for the capacity provider.ManagedScalingStatus
public ManagedScaling withStatus(ManagedScalingStatus status)
Determines whether to use managed scaling for the capacity provider.
status
- Determines whether to use managed scaling for the capacity provider.ManagedScalingStatus
public void setTargetCapacity(Integer targetCapacity)
The target capacity utilization as a percentage for the capacity provider. The specified value must be greater
than 0
and less than or equal to 100
. For example, if you want the capacity provider to
maintain 10% spare capacity, then that means the utilization is 90%, so use a targetCapacity
of
90
. The default value of 100
percent results in the Amazon EC2 instances in your Auto
Scaling group being completely used.
targetCapacity
- The target capacity utilization as a percentage for the capacity provider. The specified value must be
greater than 0
and less than or equal to 100
. For example, if you want the
capacity provider to maintain 10% spare capacity, then that means the utilization is 90%, so use a
targetCapacity
of 90
. The default value of 100
percent results in
the Amazon EC2 instances in your Auto Scaling group being completely used.public Integer getTargetCapacity()
The target capacity utilization as a percentage for the capacity provider. The specified value must be greater
than 0
and less than or equal to 100
. For example, if you want the capacity provider to
maintain 10% spare capacity, then that means the utilization is 90%, so use a targetCapacity
of
90
. The default value of 100
percent results in the Amazon EC2 instances in your Auto
Scaling group being completely used.
0
and less than or equal to 100
. For example, if you want the
capacity provider to maintain 10% spare capacity, then that means the utilization is 90%, so use a
targetCapacity
of 90
. The default value of 100
percent results in
the Amazon EC2 instances in your Auto Scaling group being completely used.public ManagedScaling withTargetCapacity(Integer targetCapacity)
The target capacity utilization as a percentage for the capacity provider. The specified value must be greater
than 0
and less than or equal to 100
. For example, if you want the capacity provider to
maintain 10% spare capacity, then that means the utilization is 90%, so use a targetCapacity
of
90
. The default value of 100
percent results in the Amazon EC2 instances in your Auto
Scaling group being completely used.
targetCapacity
- The target capacity utilization as a percentage for the capacity provider. The specified value must be
greater than 0
and less than or equal to 100
. For example, if you want the
capacity provider to maintain 10% spare capacity, then that means the utilization is 90%, so use a
targetCapacity
of 90
. The default value of 100
percent results in
the Amazon EC2 instances in your Auto Scaling group being completely used.public void setMinimumScalingStepSize(Integer minimumScalingStepSize)
The minimum number of Amazon EC2 instances that Amazon ECS will scale out at one time. The scale in process is
not affected by this parameter If this parameter is omitted, the default value of 1
is used.
When additional capacity is required, Amazon ECS will scale up the minimum scaling step size even if the actual demand is less than the minimum scaling step size.
If you use a capacity provider with an Auto Scaling group configured with more than one Amazon EC2 instance type or Availability Zone, Amazon ECS will scale up by the exact minimum scaling step size value and will ignore both the maximum scaling step size as well as the capacity demand.
minimumScalingStepSize
- The minimum number of Amazon EC2 instances that Amazon ECS will scale out at one time. The scale in
process is not affected by this parameter If this parameter is omitted, the default value of
1
is used.
When additional capacity is required, Amazon ECS will scale up the minimum scaling step size even if the actual demand is less than the minimum scaling step size.
If you use a capacity provider with an Auto Scaling group configured with more than one Amazon EC2 instance type or Availability Zone, Amazon ECS will scale up by the exact minimum scaling step size value and will ignore both the maximum scaling step size as well as the capacity demand.
public Integer getMinimumScalingStepSize()
The minimum number of Amazon EC2 instances that Amazon ECS will scale out at one time. The scale in process is
not affected by this parameter If this parameter is omitted, the default value of 1
is used.
When additional capacity is required, Amazon ECS will scale up the minimum scaling step size even if the actual demand is less than the minimum scaling step size.
If you use a capacity provider with an Auto Scaling group configured with more than one Amazon EC2 instance type or Availability Zone, Amazon ECS will scale up by the exact minimum scaling step size value and will ignore both the maximum scaling step size as well as the capacity demand.
1
is used.
When additional capacity is required, Amazon ECS will scale up the minimum scaling step size even if the actual demand is less than the minimum scaling step size.
If you use a capacity provider with an Auto Scaling group configured with more than one Amazon EC2 instance type or Availability Zone, Amazon ECS will scale up by the exact minimum scaling step size value and will ignore both the maximum scaling step size as well as the capacity demand.
public ManagedScaling withMinimumScalingStepSize(Integer minimumScalingStepSize)
The minimum number of Amazon EC2 instances that Amazon ECS will scale out at one time. The scale in process is
not affected by this parameter If this parameter is omitted, the default value of 1
is used.
When additional capacity is required, Amazon ECS will scale up the minimum scaling step size even if the actual demand is less than the minimum scaling step size.
If you use a capacity provider with an Auto Scaling group configured with more than one Amazon EC2 instance type or Availability Zone, Amazon ECS will scale up by the exact minimum scaling step size value and will ignore both the maximum scaling step size as well as the capacity demand.
minimumScalingStepSize
- The minimum number of Amazon EC2 instances that Amazon ECS will scale out at one time. The scale in
process is not affected by this parameter If this parameter is omitted, the default value of
1
is used.
When additional capacity is required, Amazon ECS will scale up the minimum scaling step size even if the actual demand is less than the minimum scaling step size.
If you use a capacity provider with an Auto Scaling group configured with more than one Amazon EC2 instance type or Availability Zone, Amazon ECS will scale up by the exact minimum scaling step size value and will ignore both the maximum scaling step size as well as the capacity demand.
public void setMaximumScalingStepSize(Integer maximumScalingStepSize)
The maximum number of Amazon EC2 instances that Amazon ECS will scale out at one time. The scale in process is
not affected by this parameter. If this parameter is omitted, the default value of 10000
is used.
maximumScalingStepSize
- The maximum number of Amazon EC2 instances that Amazon ECS will scale out at one time. The scale in
process is not affected by this parameter. If this parameter is omitted, the default value of
10000
is used.public Integer getMaximumScalingStepSize()
The maximum number of Amazon EC2 instances that Amazon ECS will scale out at one time. The scale in process is
not affected by this parameter. If this parameter is omitted, the default value of 10000
is used.
10000
is used.public ManagedScaling withMaximumScalingStepSize(Integer maximumScalingStepSize)
The maximum number of Amazon EC2 instances that Amazon ECS will scale out at one time. The scale in process is
not affected by this parameter. If this parameter is omitted, the default value of 10000
is used.
maximumScalingStepSize
- The maximum number of Amazon EC2 instances that Amazon ECS will scale out at one time. The scale in
process is not affected by this parameter. If this parameter is omitted, the default value of
10000
is used.public void setInstanceWarmupPeriod(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.
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.public Integer getInstanceWarmupPeriod()
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 withInstanceWarmupPeriod(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.
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.public String toString()
toString
in class Object
Object.toString()
public ManagedScaling clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.