Class WarmPoolConfig
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<WarmPoolConfig.Builder,WarmPoolConfig>
The configuration for an Amazon EC2 Auto Scaling warm pool attached to an Amazon EKS managed node group. Warm pools
maintain pre-initialized EC2 instances alongside your Auto Scaling group that have already completed the bootup
initialization process and can be kept in a Stopped, Running, or Hibernated
state.
- See Also:
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionstatic WarmPoolConfig.Builderbuilder()final Booleanenabled()Specifies whether to attach warm pools on the managed node group.final booleanfinal booleanequalsBySdkFields(Object obj) Indicates whether some other object is "equal to" this one by SDK fields.final <T> Optional<T> getValueForField(String fieldName, Class<T> clazz) final inthashCode()final IntegerThe maximum total number of instances across the warm pool and Auto Scaling group combined.final IntegerminSize()The minimum number of instances to maintain in the warm pool.final WarmPoolStateThe desired state for warm pool instances.final StringThe desired state for warm pool instances.final BooleanIndicates whether instances should return to the warm pool during scale-in events instead of being terminated.static Class<? extends WarmPoolConfig.Builder> Take this object and create a builder that contains all of the current property values of this object.final StringtoString()Returns a string representation of this object.Methods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
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.- Returns:
- 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.
-
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:
- 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.
-
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:
- 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.
-
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.If the service returns an enum value that is not available in the current SDK version,
poolStatewill returnWarmPoolState.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available frompoolStateAsString().- Returns:
- 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. - See Also:
-
poolStateAsString
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.If the service returns an enum value that is not available in the current SDK version,
poolStatewill returnWarmPoolState.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available frompoolStateAsString().- Returns:
- 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. - 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.- Returns:
- 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.
-
toBuilder
Description copied from interface:ToCopyableBuilderTake this object and create a builder that contains all of the current property values of this object.- Specified by:
toBuilderin interfaceToCopyableBuilder<WarmPoolConfig.Builder,WarmPoolConfig> - Returns:
- a builder for type T
-
builder
-
serializableBuilderClass
-
hashCode
-
equals
-
equalsBySdkFields
Description copied from interface:SdkPojoIndicates whether some other object is "equal to" this one by SDK fields. An SDK field is a modeled, non-inherited field in anSdkPojoclass, and is generated based on a service model.If an
SdkPojoclass does not have any inherited fields,equalsBySdkFieldsandequalsare essentially the same.- Specified by:
equalsBySdkFieldsin interfaceSdkPojo- Parameters:
obj- the object to be compared with- Returns:
- true if the other object equals to this object by sdk fields, false otherwise.
-
toString
-
getValueForField
-
sdkFields
-
sdkFieldNameToField
- Specified by:
sdkFieldNameToFieldin interfaceSdkPojo- Returns:
- The mapping between the field name and its corresponding field.
-