KubernetesVersion

class aws_cdk.aws_eks.KubernetesVersion(*args: Any, **kwargs)

Bases: object

Kubernetes cluster version.

ExampleMetadata:

infused

Example:

cluster = eks.Cluster(self, "HelloEKS",
    version=eks.KubernetesVersion.V1_21,
    default_capacity_type=eks.DefaultCapacityType.EC2
)

Attributes

V1_14 = <aws_cdk.aws_eks.KubernetesVersion object>
V1_15 = <aws_cdk.aws_eks.KubernetesVersion object>
V1_16 = <aws_cdk.aws_eks.KubernetesVersion object>
V1_17 = <aws_cdk.aws_eks.KubernetesVersion object>
V1_18 = <aws_cdk.aws_eks.KubernetesVersion object>
V1_19 = <aws_cdk.aws_eks.KubernetesVersion object>
V1_20 = <aws_cdk.aws_eks.KubernetesVersion object>
V1_21 = <aws_cdk.aws_eks.KubernetesVersion object>
version

cluster version number.

Static Methods

classmethod of(version)

Custom cluster version.

Parameters:

version (str) – custom version number.

Return type:

KubernetesVersion