Interface IWarmPoolOptions
- Namespace
- Amazon.CDK.AWS.AutoScaling
- Assembly
- Amazon.CDK.AWS.AutoScaling.dll
Options for a warm pool.
public interface IWarmPoolOptions
Examples
AutoScalingGroup autoScalingGroup;
autoScalingGroup.AddWarmPool(new WarmPoolOptions {
MinSize = 1,
ReuseOnScaleIn = true
});
Remarks
ExampleMetadata: infused
Properties
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.
double? MaxGroupPreparedCapacity { get; }
Property Value
Remarks
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
MinSize
The minimum number of instances to maintain in the warm pool.
double? MinSize { get; }
Property Value
Remarks
Default: 0
PoolState
The instance state to transition to after the lifecycle actions are complete.
PoolState? PoolState { get; }
Property Value
Remarks
Default: PoolState.STOPPED
ReuseOnScaleIn
Indicates whether instances in the Auto Scaling group can be returned to the warm pool on scale in.
bool? ReuseOnScaleIn { get; }
Property Value
- bool?
Remarks
If the value is not specified, instances in the Auto Scaling group will be terminated when the group scales in.
Default: false