Skip to content
v2.278.0

WarmPoolConfigProperty Struct ​

The warm pool configuration for the node group.

Example ​

ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_eks as eks } from 'aws-cdk-lib';
const warmPoolConfigProperty: eks.CfnNodegroup.WarmPoolConfigProperty = {
  enabled: false,
  maxGroupPreparedCapacity: 123,
  minSize: 123,
  poolState: 'poolState',
  reuseOnScaleIn: false,
};
python
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import aws_eks as eks

warm_pool_config_property = eks.CfnNodegroup.WarmPoolConfigProperty(
    enabled=False,
    max_group_prepared_capacity=123,
    min_size=123,
    pool_state="poolState",
    reuse_on_scale_in=False
)
java
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.eks.*;

WarmPoolConfigProperty warmPoolConfigProperty = WarmPoolConfigProperty.builder()
        .enabled(false)
        .maxGroupPreparedCapacity(123)
        .minSize(123)
        .poolState("poolState")
        .reuseOnScaleIn(false)
        .build();
csharp
// Install: dotnet add package Amazon.CDK.Lib
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.EKS;

var warmPoolConfigProperty = new WarmPoolConfigProperty {
    Enabled = false,
    MaxGroupPreparedCapacity = 123,
    MinSize = 123,
    PoolState = "poolState",
    ReuseOnScaleIn = false
};
go
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"

warmPoolConfigProperty := &WarmPoolConfigProperty{
	Enabled: jsii.Boolean(false),
	MaxGroupPreparedCapacity: jsii.Number(123),
	MinSize: jsii.Number(123),
	PoolState: jsii.String("poolState"),
	ReuseOnScaleIn: jsii.Boolean(false),
}

Properties ​

enabledoptionalboolean | IResolvableenabledoptionaltyping.Union[bool, IResolvable]enabledoptionalBooleanEnabledoptionalboolEnabledoptionalinterface{} #
Enable or disable warm pool for the node group.
maxGroupPreparedCapacityoptionalnumbermax_group_prepared_capacityoptionalint | floatmaxGroupPreparedCapacityoptionalNumberMaxGroupPreparedCapacityoptionaldoubleMaxGroupPreparedCapacityoptional*float64 #
The maximum number of instances that are allowed to be in the warm pool.
minSizeoptionalnumbermin_sizeoptionalint | floatminSizeoptionalNumberMinSizeoptionaldoubleMinSizeoptional*float64 #
The minimum number of instances to maintain in the warm pool.
poolStateoptionalstringpool_stateoptionalstrpoolStateoptionalStringPoolStateoptionalstringPoolStateoptional*string #
The desired state of warm pool instances.
reuseOnScaleInoptionalboolean | IResolvablereuse_on_scale_inoptionaltyping.Union[bool, IResolvable]reuseOnScaleInoptionalBooleanReuseOnScaleInoptionalboolReuseOnScaleInoptionalinterface{} #
Whether to return instances to the warm pool during scale-in instead of terminating them.