Enum AuthenticationMode

java.lang.Object
java.lang.Enum<AuthenticationMode>
software.amazon.awscdk.services.eks.AuthenticationMode
All Implemented Interfaces:
Serializable, Comparable<AuthenticationMode>, java.lang.constant.Constable

@Generated(value="jsii-pacmak/1.104.0 (build e79254c)", date="2024-11-22T02:24:01.378Z") @Stability(Stable) public enum AuthenticationMode extends Enum<AuthenticationMode>
Represents the authentication mode for an Amazon EKS cluster.

Example:

 import software.amazon.awscdk.cdk.lambdalayer.kubectl.v31.KubectlV31Layer;
 Vpc vpc;
 Cluster.Builder.create(this, "Cluster")
         .vpc(vpc)
         .version(KubernetesVersion.V1_31)
         .kubectlLayer(new KubectlV31Layer(this, "KubectlLayer"))
         .authenticationMode(AuthenticationMode.API_AND_CONFIG_MAP)
         .build();
 
  • Enum Constant Details

    • CONFIG_MAP

      @Stability(Stable) public static final AuthenticationMode CONFIG_MAP
      Authenticates using a Kubernetes ConfigMap.
    • API_AND_CONFIG_MAP

      @Stability(Stable) public static final AuthenticationMode API_AND_CONFIG_MAP
      Authenticates using both the Kubernetes API server and a ConfigMap.
    • API

      @Stability(Stable) public static final AuthenticationMode API
      Authenticates using the Kubernetes API server.
  • Method Details

    • values

      public static AuthenticationMode[] values()
      Returns an array containing the constants of this enum type, in the order they are declared.
      Returns:
      an array containing the constants of this enum type, in the order they are declared
    • valueOf

      public static AuthenticationMode valueOf(String name)
      Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum type has no constant with the specified name
      NullPointerException - if the argument is null