Skip to content
v2.278.0

ClusterKubernetesConfigProperty Struct ​

Kubernetes configuration that specifies labels and taints to be applied to cluster nodes in an instance group.

Example ​

ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_sagemaker as sagemaker } from 'aws-cdk-lib';
const clusterKubernetesConfigProperty: sagemaker.CfnCluster.ClusterKubernetesConfigProperty = {
  labels: {
    labelsKey: 'labels',
  },
  taints: [{
    effect: 'effect',
    key: 'key',

    // the properties below are optional
    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_sagemaker as sagemaker

cluster_kubernetes_config_property = sagemaker.CfnCluster.ClusterKubernetesConfigProperty(
    labels={
        "labels_key": "labels"
    },
    taints=[sagemaker.CfnCluster.ClusterKubernetesTaintProperty(
        effect="effect",
        key="key",

        # the properties below are optional
        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.sagemaker.*;

ClusterKubernetesConfigProperty clusterKubernetesConfigProperty = ClusterKubernetesConfigProperty.builder()
        .labels(Map.of(
                "labelsKey", "labels"))
        .taints(List.of(ClusterKubernetesTaintProperty.builder()
                .effect("effect")
                .key("key")

                // the properties below are optional
                .value("value")
                .build()))
        .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.Sagemaker;

var clusterKubernetesConfigProperty = new ClusterKubernetesConfigProperty {
    Labels = new Dictionary<string, string> {
        { "labelsKey", "labels" }
    },
    Taints = new [] { new ClusterKubernetesTaintProperty {
        Effect = "effect",
        Key = "key",

        // the properties below are optional
        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"

clusterKubernetesConfigProperty := &ClusterKubernetesConfigProperty{
	Labels: map[string]*string{
		"labelsKey": jsii.String("labels"),
	},
	Taints: []interface{}{
		&ClusterKubernetesTaintProperty{
			Effect: jsii.String("effect"),
			Key: jsii.String("key"),

			// the properties below are optional
			Value: jsii.String("value"),
		},
	},
}

Properties ​

labelsoptionalIResolvable | { [key: string]: string }labelsoptionaltyping.Union[IResolvable, typing.Mapping[str, str]]labelsoptionalIResolvableLabelsoptionalIResolvableLabelsoptionalinterface{} #
Key-value pairs of labels to be applied to cluster nodes.
taintsoptionalIResolvable | IResolvable | CfnCluster.ClusterKubernetesTaintProperty[]taintsoptionaltyping.Union[IResolvable, typing.List[typing.Union[IResolvable, ClusterKubernetesTaintProperty]]]taintsoptionalIResolvableTaintsoptionalIResolvableTaintsoptionalinterface{} #
List of taints to be applied to cluster nodes.