# TaintProperty

Struct · External

A property that allows a node to repel a `Pod` .

For more information, see [Node taints on managed node groups](https://docs.aws.amazon.com/eks/latest/userguide/node-taints-managed-node-groups.html) in the *Amazon EKS User Guide* .

- Source: Generated at build time
- Type last changed: v2.93.0 · 23 Aug 2023

## 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 taintProperty: eks.CfnNodegroup.TaintProperty = {
  effect: 'effect',
  key: 'key',
  value: 'value',
};
```

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

taint_property = eks.CfnNodegroup.TaintProperty(
    effect="effect",
    key="key",
    value="value"
)
```

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

TaintProperty taintProperty = TaintProperty.builder()
        .effect("effect")
        .key("key")
        .value("value")
        .build();
```

C#:

```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 taintProperty = new TaintProperty {
    Effect = "effect",
    Key = "key",
    Value = "value"
};
```

Go:

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

taintProperty := &TaintProperty{
	Effect: jsii.String("effect"),
	Key: jsii.String("key"),
	Value: jsii.String("value"),
}
```

## Properties

- `effect`: string — The effect of the taint.

- `key`: string — The key of the taint.

- `value`: string — The value of the taint.
