TaintProperty Struct
A property that allows a node to repel a Pod .
For more information, see Node taints on managed node groups in the Amazon EKS User Guide .
| Source | |
|---|---|
| Type last changed |
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 taintProperty: eks.CfnNodegroup.TaintProperty = {
effect: 'effect',
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_property = eks.CfnNodegroup.TaintProperty(
effect="effect",
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.*;
TaintProperty taintProperty = TaintProperty.builder()
.effect("effect")
.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 taintProperty = new TaintProperty {
Effect = "effect",
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"
taintProperty := &TaintProperty{
Effect: jsii.String("effect"),
Key: jsii.String("key"),
Value: jsii.String("value"),
}
Properties
effectoptionalstringeffectoptionalstreffectoptionalStringEffectoptionalstringEffectoptional*string #The effect of the taint.
The key of the taint.
The value of the taint.