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,
java.lang.String id) |
WarmPool.Builder |
maxGroupPreparedCapacity(java.lang.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(java.lang.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(java.lang.Boolean reuseOnScaleIn)
Indicates whether instances in the Auto Scaling group can be returned to the warm pool on scale in.
|
public static WarmPool.Builder create(software.constructs.Construct scope, java.lang.String id)
scope
- This parameter is required.id
- This parameter is required.WarmPool.Builder
.public WarmPool.Builder maxGroupPreparedCapacity(java.lang.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
public WarmPool.Builder minSize(java.lang.Number minSize)
Default: 0
minSize
- The minimum number of instances to maintain in the warm pool. This parameter is required.this
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
public WarmPool.Builder reuseOnScaleIn(java.lang.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
public WarmPool.Builder autoScalingGroup(IAutoScalingGroup autoScalingGroup)
autoScalingGroup
- The Auto Scaling group to add the warm pool to. This parameter is required.this
public WarmPool build()