Class KubernetesVersion

java.lang.Object
software.amazon.jsii.JsiiObject
software.amazon.awscdk.services.eks.KubernetesVersion
All Implemented Interfaces:
software.amazon.jsii.JsiiSerializable

@Generated(value="jsii-pacmak/1.103.1 (build bef2dea)", date="2024-10-25T14:21:15.028Z") @Stability(Stable) public class KubernetesVersion extends software.amazon.jsii.JsiiObject
Kubernetes cluster version.

Example:

 // or
 Vpc vpc;
 Cluster.Builder.create(this, "MyCluster")
         .kubectlMemory(Size.gibibytes(4))
         .version(KubernetesVersion.V1_31)
         .build();
 Cluster.fromClusterAttributes(this, "MyCluster", ClusterAttributes.builder()
         .kubectlMemory(Size.gibibytes(4))
         .vpc(vpc)
         .clusterName("cluster-name")
         .build());
 

See Also:
  • Field Details

    • V1_14

      @Stability(Deprecated) @Deprecated public static final KubernetesVersion V1_14
      Deprecated.
      Use newer version of EKS
      (deprecated) Kubernetes version 1.14.

    • V1_15

      @Stability(Deprecated) @Deprecated public static final KubernetesVersion V1_15
      Deprecated.
      Use newer version of EKS
      (deprecated) Kubernetes version 1.15.

    • V1_16

      @Stability(Deprecated) @Deprecated public static final KubernetesVersion V1_16
      Deprecated.
      Use newer version of EKS
      (deprecated) Kubernetes version 1.16.

    • V1_17

      @Stability(Deprecated) @Deprecated public static final KubernetesVersion V1_17
      Deprecated.
      Use newer version of EKS
      (deprecated) Kubernetes version 1.17.

    • V1_18

      @Stability(Deprecated) @Deprecated public static final KubernetesVersion V1_18
      Deprecated.
      Use newer version of EKS
      (deprecated) Kubernetes version 1.18.

    • V1_19

      @Stability(Deprecated) @Deprecated public static final KubernetesVersion V1_19
      Deprecated.
      Use newer version of EKS
      (deprecated) Kubernetes version 1.19.

    • V1_20

      @Stability(Deprecated) @Deprecated public static final KubernetesVersion V1_20
      Deprecated.
      Use newer version of EKS
      (deprecated) Kubernetes version 1.20.

    • V1_21

      @Stability(Deprecated) @Deprecated public static final KubernetesVersion V1_21
      Deprecated.
      Use newer version of EKS
      (deprecated) Kubernetes version 1.21.

    • V1_22

      @Stability(Deprecated) @Deprecated public static final KubernetesVersion V1_22
      Deprecated.
      Use newer version of EKS
      (deprecated) Kubernetes version 1.22.

    • V1_23

      @Stability(Stable) public static final KubernetesVersion V1_23
      Kubernetes version 1.23.

      When creating a Cluster with this version, you need to also specify the kubectlLayer property with a KubectlV23Layer from @aws-cdk/lambda-layer-kubectl-v23.

    • V1_24

      @Stability(Stable) public static final KubernetesVersion V1_24
      Kubernetes version 1.24.

      When creating a Cluster with this version, you need to also specify the kubectlLayer property with a KubectlV24Layer from @aws-cdk/lambda-layer-kubectl-v24.

    • V1_25

      @Stability(Stable) public static final KubernetesVersion V1_25
      Kubernetes version 1.25.

      When creating a Cluster with this version, you need to also specify the kubectlLayer property with a KubectlV25Layer from @aws-cdk/lambda-layer-kubectl-v25.

    • V1_26

      @Stability(Stable) public static final KubernetesVersion V1_26
      Kubernetes version 1.26.

      When creating a Cluster with this version, you need to also specify the kubectlLayer property with a KubectlV26Layer from @aws-cdk/lambda-layer-kubectl-v26.

    • V1_27

      @Stability(Stable) public static final KubernetesVersion V1_27
      Kubernetes version 1.27.

      When creating a Cluster with this version, you need to also specify the kubectlLayer property with a KubectlV27Layer from @aws-cdk/lambda-layer-kubectl-v27.

    • V1_28

      @Stability(Stable) public static final KubernetesVersion V1_28
      Kubernetes version 1.28.

      When creating a Cluster with this version, you need to also specify the kubectlLayer property with a KubectlV28Layer from @aws-cdk/lambda-layer-kubectl-v28.

    • V1_29

      @Stability(Stable) public static final KubernetesVersion V1_29
      Kubernetes version 1.29.

      When creating a Cluster with this version, you need to also specify the kubectlLayer property with a KubectlV29Layer from @aws-cdk/lambda-layer-kubectl-v29.

    • V1_30

      @Stability(Stable) public static final KubernetesVersion V1_30
      Kubernetes version 1.30.

      When creating a Cluster with this version, you need to also specify the kubectlLayer property with a KubectlV30Layer from @aws-cdk/lambda-layer-kubectl-v30.

    • V1_31

      @Stability(Stable) public static final KubernetesVersion V1_31
      Kubernetes version 1.31.

      When creating a Cluster with this version, you need to also specify the kubectlLayer property with a KubectlV31Layer from @aws-cdk/lambda-layer-kubectl-v31.

  • Constructor Details

    • KubernetesVersion

      protected KubernetesVersion(software.amazon.jsii.JsiiObjectRef objRef)
    • KubernetesVersion

      protected KubernetesVersion(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
  • Method Details

    • of

      @Stability(Stable) @NotNull public static KubernetesVersion of(@NotNull String version)
      Custom cluster version.

      Parameters:
      version - custom version number. This parameter is required.
    • getVersion

      @Stability(Stable) @NotNull public String getVersion()
      cluster version number.