Class CfnCapacityProviderPropsMixin.ManagedScalingProperty.Builder
java.lang.Object
software.amazon.awscdk.cfnpropertymixins.services.ecs.CfnCapacityProviderPropsMixin.ManagedScalingProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnCapacityProviderPropsMixin.ManagedScalingProperty>
- Enclosing interface:
CfnCapacityProviderPropsMixin.ManagedScalingProperty
@Stability(Stable)
public static final class CfnCapacityProviderPropsMixin.ManagedScalingProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnCapacityProviderPropsMixin.ManagedScalingProperty>
A builder for
CfnCapacityProviderPropsMixin.ManagedScalingProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.instanceWarmupPeriod(Number instanceWarmupPeriod) maximumScalingStepSize(Number maximumScalingStepSize) minimumScalingStepSize(Number minimumScalingStepSize) Sets the value ofCfnCapacityProviderPropsMixin.ManagedScalingProperty.getStatus()targetCapacity(Number targetCapacity) Sets the value ofCfnCapacityProviderPropsMixin.ManagedScalingProperty.getTargetCapacity()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
instanceWarmupPeriod
@Stability(Stable) public CfnCapacityProviderPropsMixin.ManagedScalingProperty.Builder instanceWarmupPeriod(Number instanceWarmupPeriod) - 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:
this
-
maximumScalingStepSize
@Stability(Stable) public CfnCapacityProviderPropsMixin.ManagedScalingProperty.Builder maximumScalingStepSize(Number maximumScalingStepSize) - 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 of10000is used.- Returns:
this
-
minimumScalingStepSize
@Stability(Stable) public CfnCapacityProviderPropsMixin.ManagedScalingProperty.Builder minimumScalingStepSize(Number minimumScalingStepSize) - 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.
- Returns:
this
-
status
@Stability(Stable) public CfnCapacityProviderPropsMixin.ManagedScalingProperty.Builder status(String status) Sets the value ofCfnCapacityProviderPropsMixin.ManagedScalingProperty.getStatus()- Parameters:
status- Determines whether to use managed scaling for the capacity provider.- Returns:
this
-
targetCapacity
@Stability(Stable) public CfnCapacityProviderPropsMixin.ManagedScalingProperty.Builder targetCapacity(Number targetCapacity) Sets the value ofCfnCapacityProviderPropsMixin.ManagedScalingProperty.getTargetCapacity()- 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:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnCapacityProviderPropsMixin.ManagedScalingProperty>- Returns:
- a new instance of
CfnCapacityProviderPropsMixin.ManagedScalingProperty - Throws:
NullPointerException- if any required attribute was not provided
-