Interface ManagedScaling.Builder
- All Superinterfaces:
Buildable
,CopyableBuilder<ManagedScaling.Builder,
,ManagedScaling> SdkBuilder<ManagedScaling.Builder,
,ManagedScaling> SdkPojo
- Enclosing class:
ManagedScaling
-
Method Summary
Modifier and TypeMethodDescriptioninstanceWarmupPeriod
(Integer instanceWarmupPeriod) The period of time, in seconds, after a newly launched Amazon EC2 instance can contribute to CloudWatch metrics for Auto Scaling group.maximumScalingStepSize
(Integer maximumScalingStepSize) The maximum number of Amazon EC2 instances that Amazon ECS will scale out at one time.minimumScalingStepSize
(Integer minimumScalingStepSize) The minimum number of Amazon EC2 instances that Amazon ECS will scale out at one time.Determines whether to use managed scaling for the capacity provider.status
(ManagedScalingStatus status) Determines whether to use managed scaling for the capacity provider.targetCapacity
(Integer targetCapacity) The target capacity utilization as a percentage for the capacity provider.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFields
-
Method Details
-
status
Determines whether to use managed scaling for the capacity provider.
- Parameters:
status
- Determines whether to use managed scaling for the capacity provider.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
status
Determines whether to use managed scaling for the capacity provider.
- Parameters:
status
- Determines whether to use managed scaling for the capacity provider.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
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 to100
. For example, if you want the capacity provider to maintain 10% spare capacity, then that means the utilization is 90%, so use atargetCapacity
of90
. The default value of100
percent results in the Amazon EC2 instances in your Auto Scaling group being completely used.- Parameters:
targetCapacity
- The target capacity utilization as a percentage for the capacity provider. The specified value must be greater than0
and less than or equal to100
. For example, if you want the capacity provider to maintain 10% spare capacity, then that means the utilization is 90%, so use atargetCapacity
of90
. The default value of100
percent results in the Amazon EC2 instances in your Auto Scaling group being completely used.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
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.
- Parameters:
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 of1
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.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
maximumScalingStepSize
The maximum number of Amazon EC2 instances that Amazon ECS will scale out at one time. If this parameter is omitted, the default value of
10000
is used.- Parameters:
maximumScalingStepSize
- The maximum number of Amazon EC2 instances that Amazon ECS will scale out at one time. If this parameter is omitted, the default value of10000
is used.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
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.- Parameters:
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 of300
seconds is used.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-