# TaintSpec

Taint interface.

- Source: [`aws-eks/lib/managed-nodegroup.ts`](https://github.com/aws/aws-cdk/blob/v2.278.0/packages/aws-cdk-lib/aws-eks/lib/managed-nodegroup.ts#L201)

## 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 taintSpec: eks.TaintSpec = {
  effect: eks.TaintEffect.NO_SCHEDULE,
  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_spec = eks.TaintSpec(
    effect=eks.TaintEffect.NO_SCHEDULE,
    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.*;

TaintSpec taintSpec = TaintSpec.builder()
        .effect(TaintEffect.NO_SCHEDULE)
        .key("key")
        .value("value")
        .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 taintSpec = new TaintSpec {
    Effect = TaintEffect.NO_SCHEDULE,
    Key = "key",
    Value = "value"
};
```

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"

taintSpec := &TaintSpec{
	Effect: awscdk.Aws_eks.TaintEffect_NO_SCHEDULE,
	Key: jsii.String("key"),
	Value: jsii.String("value"),
}
```

## Properties

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

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

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