Interface ManagedScaling.Builder
-
- All Superinterfaces:
Buildable,CopyableBuilder<ManagedScaling.Builder,ManagedScaling>,SdkBuilder<ManagedScaling.Builder,ManagedScaling>,SdkPojo
- Enclosing class:
- ManagedScaling
public static interface ManagedScaling.Builder extends SdkPojo, CopyableBuilder<ManagedScaling.Builder,ManagedScaling>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description ManagedScaling.BuilderinstanceWarmupPeriod(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.BuildermaximumScalingStepSize(Integer maximumScalingStepSize)The maximum number of Amazon EC2 instances that Amazon ECS will scale out at one time.ManagedScaling.BuilderminimumScalingStepSize(Integer minimumScalingStepSize)The minimum number of Amazon EC2 instances that Amazon ECS will scale out at one time.ManagedScaling.Builderstatus(String status)Determines whether to use managed scaling for the capacity provider.ManagedScaling.Builderstatus(ManagedScalingStatus status)Determines whether to use managed scaling for the capacity provider.ManagedScaling.BuildertargetCapacity(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, sdkFields
-
-
-
-
Method Detail
-
status
ManagedScaling.Builder status(String 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:
ManagedScalingStatus,ManagedScalingStatus
-
status
ManagedScaling.Builder status(ManagedScalingStatus 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:
ManagedScalingStatus,ManagedScalingStatus
-
targetCapacity
ManagedScaling.Builder targetCapacity(Integer targetCapacity)
The target capacity utilization as a percentage for the capacity provider. The specified value must be greater than
0and 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 atargetCapacityof90. The default value of100percent 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 than0and 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 atargetCapacityof90. The default value of100percent 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
ManagedScaling.Builder minimumScalingStepSize(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
1is 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 of1is 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
ManagedScaling.Builder maximumScalingStepSize(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
10000is used.- Parameters:
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 of10000is used.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
instanceWarmupPeriod
ManagedScaling.Builder instanceWarmupPeriod(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
300seconds 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 of300seconds is used.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
-