| Modifier and Type | Method and Description |
|---|---|
WarmPool.Builder |
autoScalingGroup(IAutoScalingGroup autoScalingGroup)
The Auto Scaling group to add the warm pool to.
|
WarmPool |
build() |
static WarmPool.Builder |
create(software.constructs.Construct scope,
String id) |
WarmPool.Builder |
maxGroupPreparedCapacity(Number 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.
|
WarmPool.Builder |
minSize(Number minSize)
The minimum number of instances to maintain in the warm pool.
|
WarmPool.Builder |
poolState(PoolState poolState)
The instance state to transition to after the lifecycle actions are complete.
|
WarmPool.Builder |
reuseOnScaleIn(Boolean reuseOnScaleIn)
Indicates whether instances in the Auto Scaling group can be returned to the warm pool on scale in.
|
@Stability(value=Stable) public static WarmPool.Builder create(software.constructs.Construct scope, String id)
scope - This parameter is required.id - This parameter is required.WarmPool.Builder.@Stability(value=Stable) public WarmPool.Builder maxGroupPreparedCapacity(Number maxGroupPreparedCapacity)
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.
Default: - max size of the Auto Scaling group
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. This parameter is required.this@Stability(value=Stable) public WarmPool.Builder minSize(Number minSize)
Default: 0
minSize - The minimum number of instances to maintain in the warm pool. This parameter is required.this@Stability(value=Stable) public WarmPool.Builder poolState(PoolState poolState)
Default: PoolState.STOPPED
poolState - The instance state to transition to after the lifecycle actions are complete. This parameter is required.this@Stability(value=Stable) public WarmPool.Builder reuseOnScaleIn(Boolean reuseOnScaleIn)
If the value is not specified, instances in the Auto Scaling group will be terminated when the group scales in.
Default: false
reuseOnScaleIn - Indicates whether instances in the Auto Scaling group can be returned to the warm pool on scale in. This parameter is required.this@Stability(value=Stable) public WarmPool.Builder autoScalingGroup(IAutoScalingGroup autoScalingGroup)
autoScalingGroup - The Auto Scaling group to add the warm pool to. This parameter is required.thisCopyright © 2022. All rights reserved.