Interface WarmPoolConfig.Builder
- All Superinterfaces:
Buildable,CopyableBuilder<WarmPoolConfig.Builder,,WarmPoolConfig> SdkBuilder<WarmPoolConfig.Builder,,WarmPoolConfig> SdkPojo
- Enclosing class:
WarmPoolConfig
-
Method Summary
Modifier and TypeMethodDescriptionSpecifies whether to attach warm pools on the managed node group.maxGroupPreparedCapacity(Integer maxGroupPreparedCapacity) The maximum total number of instances across the warm pool and Auto Scaling group combined.The minimum number of instances to maintain in the warm pool.The desired state for warm pool instances.poolState(WarmPoolState poolState) The desired state for warm pool instances.reuseOnScaleIn(Boolean reuseOnScaleIn) Indicates whether instances should return to the warm pool during scale-in events instead of being terminated.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copyMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFields
-
Method Details
-
enabled
Specifies whether to attach warm pools on the managed node group. Set to
trueto enable the warm pool, orfalseto disable and remove it. If not specified during an update, the current value is preserved.- Parameters:
enabled- Specifies whether to attach warm pools on the managed node group. Set totrueto enable the warm pool, orfalseto disable and remove it. If not specified during an update, the current value is preserved.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
minSize
The minimum number of instances to maintain in the warm pool. Default:
0. Size your warm pool based on scaling patterns to balance cost and availability. Start with 10-20% of expected peak capacity.- Parameters:
minSize- The minimum number of instances to maintain in the warm pool. Default:0. Size your warm pool based on scaling patterns to balance cost and availability. Start with 10-20% of expected peak capacity.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
maxGroupPreparedCapacity
The maximum total number of instances across the warm pool and Auto Scaling group combined. This value controls the total prepared capacity available for your node group.
- Parameters:
maxGroupPreparedCapacity- The maximum total number of instances across the warm pool and Auto Scaling group combined. This value controls the total prepared capacity available for your node group.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
poolState
The desired state for warm pool instances. Default:
Stopped. Valid values areStopped(most cost-effective with EBS storage costs only),Running(fastest transition time with full EC2 costs), andHibernated(balance between cost and speed, only supported on specific instance types). Warm pool instances in theHibernatedstate are not supported with Bottlerocket AMIs.- Parameters:
poolState- The desired state for warm pool instances. Default:Stopped. Valid values areStopped(most cost-effective with EBS storage costs only),Running(fastest transition time with full EC2 costs), andHibernated(balance between cost and speed, only supported on specific instance types). Warm pool instances in theHibernatedstate are not supported with Bottlerocket AMIs.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
poolState
The desired state for warm pool instances. Default:
Stopped. Valid values areStopped(most cost-effective with EBS storage costs only),Running(fastest transition time with full EC2 costs), andHibernated(balance between cost and speed, only supported on specific instance types). Warm pool instances in theHibernatedstate are not supported with Bottlerocket AMIs.- Parameters:
poolState- The desired state for warm pool instances. Default:Stopped. Valid values areStopped(most cost-effective with EBS storage costs only),Running(fastest transition time with full EC2 costs), andHibernated(balance between cost and speed, only supported on specific instance types). Warm pool instances in theHibernatedstate are not supported with Bottlerocket AMIs.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
reuseOnScaleIn
Indicates whether instances should return to the warm pool during scale-in events instead of being terminated. Default:
false. Enable this to reduce costs by reusing instances. This feature is not supported for Bottlerocket AMIs.- Parameters:
reuseOnScaleIn- Indicates whether instances should return to the warm pool during scale-in events instead of being terminated. Default:false. Enable this to reduce costs by reusing instances. This feature is not supported for Bottlerocket AMIs.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-