# TaintSpec

Taint interface.

- Source: [`aws-eks-v2/lib/managed-nodegroup.ts`](https://github.com/aws/aws-cdk/blob/v2.275.0/packages/aws-cdk-lib/aws-eks-v2/lib/managed-nodegroup.ts#L201)
- Type last changed: v2.240.0 · 23 Feb 2026

## Example

```ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_eks_v2 as eks_v2 } from 'aws-cdk-lib';
const taintSpec: eks_v2.TaintSpec = {
  effect: eks_v2.TaintEffect.NO_SCHEDULE,
  key: 'key',
  value: 'value',
};
```

## Properties

- `effect`: [TaintEffect](/cdk/api/v2/docs/aws-cdk-lib.aws_eks_v2.TaintEffect.html) = None — Effect type.

- `key`: string = None — Taint key.

- `value`: string = None — Taint value.
