# NodeRepairConfigProperty

The node auto repair configuration for the node group.

- Source: Generated at build time
- Type last changed: v2.223.0 · 10 Nov 2025

## 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 nodeRepairConfigProperty: eks.CfnNodegroup.NodeRepairConfigProperty = {
  enabled: false,
  maxParallelNodesRepairedCount: 123,
  maxParallelNodesRepairedPercentage: 123,
  maxUnhealthyNodeThresholdCount: 123,
  maxUnhealthyNodeThresholdPercentage: 123,
  nodeRepairConfigOverrides: [{
    minRepairWaitTimeMins: 123,
    nodeMonitoringCondition: 'nodeMonitoringCondition',
    nodeUnhealthyReason: 'nodeUnhealthyReason',
    repairAction: 'repairAction',
  }],
};
```

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

node_repair_config_property = eks.CfnNodegroup.NodeRepairConfigProperty(
    enabled=False,
    max_parallel_nodes_repaired_count=123,
    max_parallel_nodes_repaired_percentage=123,
    max_unhealthy_node_threshold_count=123,
    max_unhealthy_node_threshold_percentage=123,
    node_repair_config_overrides=[eks.CfnNodegroup.NodeRepairConfigOverridesProperty(
        min_repair_wait_time_mins=123,
        node_monitoring_condition="nodeMonitoringCondition",
        node_unhealthy_reason="nodeUnhealthyReason",
        repair_action="repairAction"
    )]
)
```

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.*;

NodeRepairConfigProperty nodeRepairConfigProperty = NodeRepairConfigProperty.builder()
        .enabled(false)
        .maxParallelNodesRepairedCount(123)
        .maxParallelNodesRepairedPercentage(123)
        .maxUnhealthyNodeThresholdCount(123)
        .maxUnhealthyNodeThresholdPercentage(123)
        .nodeRepairConfigOverrides(List.of(NodeRepairConfigOverridesProperty.builder()
                .minRepairWaitTimeMins(123)
                .nodeMonitoringCondition("nodeMonitoringCondition")
                .nodeUnhealthyReason("nodeUnhealthyReason")
                .repairAction("repairAction")
                .build()))
        .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 nodeRepairConfigProperty = new NodeRepairConfigProperty {
    Enabled = false,
    MaxParallelNodesRepairedCount = 123,
    MaxParallelNodesRepairedPercentage = 123,
    MaxUnhealthyNodeThresholdCount = 123,
    MaxUnhealthyNodeThresholdPercentage = 123,
    NodeRepairConfigOverrides = new [] { new NodeRepairConfigOverridesProperty {
        MinRepairWaitTimeMins = 123,
        NodeMonitoringCondition = "nodeMonitoringCondition",
        NodeUnhealthyReason = "nodeUnhealthyReason",
        RepairAction = "repairAction"
    } }
};
```

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"

nodeRepairConfigProperty := &NodeRepairConfigProperty{
	Enabled: jsii.Boolean(false),
	MaxParallelNodesRepairedCount: jsii.Number(123),
	MaxParallelNodesRepairedPercentage: jsii.Number(123),
	MaxUnhealthyNodeThresholdCount: jsii.Number(123),
	MaxUnhealthyNodeThresholdPercentage: jsii.Number(123),
	NodeRepairConfigOverrides: []interface{}{
		&NodeRepairConfigOverridesProperty{
			MinRepairWaitTimeMins: jsii.Number(123),
			NodeMonitoringCondition: jsii.String("nodeMonitoringCondition"),
			NodeUnhealthyReason: jsii.String("nodeUnhealthyReason"),
			RepairAction: jsii.String("repairAction"),
		},
	},
}
```

## Properties

- `enabled`: boolean | [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) — Specifies whether to enable node auto repair for the node group.

  Node auto repair is disabled by default.

- `maxParallelNodesRepairedCount`: number — Specify the maximum number of nodes that can be repaired concurrently or in parallel, expressed as a count of unhealthy nodes.

  This gives you finer-grained control over the pace of node replacements. When using this, you cannot also set `maxParallelNodesRepairedPercentage` at the same time.

- `maxParallelNodesRepairedPercentage`: number — Specify the maximum number of nodes that can be repaired concurrently or in parallel, expressed as a percentage of unhealthy nodes.

  This gives you finer-grained control over the pace of node replacements. When using this, you cannot also set `maxParallelNodesRepairedCount` at the same time.

- `maxUnhealthyNodeThresholdCount`: number — Specify a count threshold of unhealthy nodes, above which node auto repair actions will stop.

  When using this, you cannot also set `maxUnhealthyNodeThresholdPercentage` at the same time.

- `maxUnhealthyNodeThresholdPercentage`: number — Specify a percentage threshold of unhealthy nodes, above which node auto repair actions will stop.

  When using this, you cannot also set `maxUnhealthyNodeThresholdCount` at the same time.

- `nodeRepairConfigOverrides`: [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnNodegroup.NodeRepairConfigOverridesProperty](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_eks.CfnNodegroup.NodeRepairConfigOverridesProperty.html)[] — Specify granular overrides for specific repair actions.

  These overrides control the repair action and the repair delay time before a node is considered eligible for repair. If you use this, you must specify all the values.
