@Stability(value=Stable) public static final class WarmPoolProps.Builder extends Object implements software.amazon.jsii.Builder<WarmPoolProps>
WarmPoolProps| Constructor and Description |
|---|
Builder() |
| Modifier and Type | Method and Description |
|---|---|
WarmPoolProps.Builder |
autoScalingGroup(IAutoScalingGroup autoScalingGroup)
Sets the value of
WarmPoolProps.getAutoScalingGroup() |
WarmPoolProps |
build()
Builds the configured instance.
|
WarmPoolProps.Builder |
maxGroupPreparedCapacity(Number maxGroupPreparedCapacity)
Sets the value of
WarmPoolOptions.getMaxGroupPreparedCapacity() |
WarmPoolProps.Builder |
minSize(Number minSize)
Sets the value of
WarmPoolOptions.getMinSize() |
WarmPoolProps.Builder |
poolState(PoolState poolState)
Sets the value of
WarmPoolOptions.getPoolState() |
WarmPoolProps.Builder |
reuseOnScaleIn(Boolean reuseOnScaleIn)
Sets the value of
WarmPoolOptions.getReuseOnScaleIn() |
@Stability(value=Stable) public WarmPoolProps.Builder autoScalingGroup(IAutoScalingGroup autoScalingGroup)
WarmPoolProps.getAutoScalingGroup()autoScalingGroup - The Auto Scaling group to add the warm pool to. This parameter is required.this@Stability(value=Stable) public WarmPoolProps.Builder maxGroupPreparedCapacity(Number maxGroupPreparedCapacity)
WarmPoolOptions.getMaxGroupPreparedCapacity()maxGroupPreparedCapacity - The maximum number of instances that are allowed to be in the warm pool or in any state except Terminated for the Auto Scaling group.
If the value is not specified, Amazon EC2 Auto Scaling launches and maintains
the difference between the group's maximum capacity and its desired capacity.this@Stability(value=Stable) public WarmPoolProps.Builder minSize(Number minSize)
WarmPoolOptions.getMinSize()minSize - The minimum number of instances to maintain in the warm pool.this@Stability(value=Stable) public WarmPoolProps.Builder poolState(PoolState poolState)
WarmPoolOptions.getPoolState()poolState - The instance state to transition to after the lifecycle actions are complete.this@Stability(value=Stable) public WarmPoolProps.Builder reuseOnScaleIn(Boolean reuseOnScaleIn)
WarmPoolOptions.getReuseOnScaleIn()reuseOnScaleIn - Indicates whether instances in the Auto Scaling group can be returned to the warm pool on scale in.
If the value is not specified, instances in the Auto Scaling group will be terminated
when the group scales in.this@Stability(value=Stable) public WarmPoolProps build()
build in interface software.amazon.jsii.Builder<WarmPoolProps>WarmPoolPropsNullPointerException - if any required attribute was not providedCopyright © 2022. All rights reserved.