Skip to content
v2.278.0

TaintSpec Struct ​

Taint interface.

Example ​

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
# 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
// 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();
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"
};
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 ​

effectoptionalTaintEffecteffectoptionalTaintEffecteffectoptionalTaintEffectEffectoptionalTaintEffectEffectoptionalTaintEffect = None #
Effect type.
keyoptionalstringkeyoptionalstrkeyoptionalStringKeyoptionalstringKeyoptional*string = None #
Taint key.
valueoptionalstringvalueoptionalstrvalueoptionalStringValueoptionalstringValueoptional*string = None #
Taint value.