# WarmPoolConfigProperty

The warm pool configuration for the node group.

- Source: Generated at build time
- Type last changed: v2.249.0 · 13 Apr 2026

## Example

TypeScript:

```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:

```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:

```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();
```

C# / .NET:

```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
};
```

Golang:

```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

- `enabled`: boolean | [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) — Enable or disable warm pool for the node group.

- `maxGroupPreparedCapacity`: number — The maximum number of instances that are allowed to be in the warm pool.

- `minSize`: number — The minimum number of instances to maintain in the warm pool.

- `poolState`: string — The desired state of warm pool instances.

- `reuseOnScaleIn`: boolean | [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) — Whether to return instances to the warm pool during scale-in instead of terminating them.
