Interface WarmPoolOptions
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Subinterfaces:
WarmPoolProps
- All Known Implementing Classes:
WarmPoolOptions.Jsii$Proxy
,WarmPoolProps.Jsii$Proxy
@Generated(value="jsii-pacmak/1.84.0 (build 5404dcf)",
date="2023-06-19T16:30:45.428Z")
@Stability(Stable)
public interface WarmPoolOptions
extends software.amazon.jsii.JsiiSerializable
Options for a warm pool.
Example:
AutoScalingGroup autoScalingGroup; autoScalingGroup.addWarmPool(WarmPoolOptions.builder() .minSize(1) .reuseOnScaleIn(true) .build());
-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic final class
A builder forWarmPoolOptions
static final class
An implementation forWarmPoolOptions
-
Method Summary
Modifier and TypeMethodDescriptionstatic WarmPoolOptions.Builder
builder()
default 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.default Number
The minimum number of instances to maintain in the warm pool.default PoolState
The instance state to transition to after the lifecycle actions are complete.default Boolean
Indicates whether instances in the Auto Scaling group can be returned to the warm pool on scale in.Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getMaxGroupPreparedCapacity
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.
Default: - max size of the Auto Scaling group
-
getMinSize
The minimum number of instances to maintain in the warm pool.Default: 0
-
getPoolState
The instance state to transition to after the lifecycle actions are complete.Default: PoolState.STOPPED
-
getReuseOnScaleIn
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.
Default: false
-
builder
- Returns:
- a
WarmPoolOptions.Builder
ofWarmPoolOptions
-