interface WarmPoolProps
Language | Type name |
---|---|
![]() | Amazon.CDK.AWS.AutoScaling.WarmPoolProps |
![]() | github.com/aws/aws-cdk-go/awscdk/v2/awsautoscaling#WarmPoolProps |
![]() | software.amazon.awscdk.services.autoscaling.WarmPoolProps |
![]() | aws_cdk.aws_autoscaling.WarmPoolProps |
![]() | aws-cdk-lib » aws_autoscaling » WarmPoolProps |
Properties for a warm pool.
Example
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_autoscaling as autoscaling } from 'aws-cdk-lib';
declare const autoScalingGroup: autoscaling.AutoScalingGroup;
const warmPoolProps: autoscaling.WarmPoolProps = {
autoScalingGroup: autoScalingGroup,
// the properties below are optional
maxGroupPreparedCapacity: 123,
minSize: 123,
poolState: autoscaling.PoolState.HIBERNATED,
reuseOnScaleIn: false,
};
Properties
Name | Type | Description |
---|---|---|
auto | IAuto | The Auto Scaling group to add the warm pool to. |
max | number | 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. |
min | number | The minimum number of instances to maintain in the warm pool. |
pool | Pool | The instance state to transition to after the lifecycle actions are complete. |
reuse | boolean | Indicates whether instances in the Auto Scaling group can be returned to the warm pool on scale in. |
autoScalingGroup
Type:
IAuto
The Auto Scaling group to add the warm pool to.
maxGroupPreparedCapacity?
Type:
number
(optional, default: max size of the Auto Scaling group)
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.
minSize?
Type:
number
(optional, default: 0)
The minimum number of instances to maintain in the warm pool.
poolState?
Type:
Pool
(optional, default: PoolState.STOPPED)
The instance state to transition to after the lifecycle actions are complete.
reuseOnScaleIn?
Type:
boolean
(optional, default: false)
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.