TaintSpec Struct
Taint interface.
| Source | aws-eks-v2/lib/managed-nodegroup.ts |
|---|---|
| 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_v2 as eks_v2 } from 'aws-cdk-lib';
const taintSpec: eks_v2.TaintSpec = {
effect: eks_v2.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_v2 as eks_v2
taint_spec = eks_v2.TaintSpec(
effect=eks_v2.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_v2.*;
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.EKSv2;
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_v2.TaintEffect_NO_SCHEDULE,
Key: jsii.String("key"),
Value: jsii.String("value"),
}
Properties
effectoptionalTaintEffecteffectoptionalTaintEffecteffectoptionalTaintEffectEffectoptionalTaintEffectEffectoptionalTaintEffect = None #Effect type.
Taint key.
valueoptionalstringvalueoptionalstrvalueoptionalStringValueoptionalstringValueoptional*string = None #Taint value.