Enum 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();
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionAuthenticates using the Kubernetes API server.Authenticates using both the Kubernetes API server and a ConfigMap.Authenticates using a Kubernetes ConfigMap. -
Method Summary
Modifier and TypeMethodDescriptionstatic AuthenticationMode
Returns the enum constant of this type with the specified name.static AuthenticationMode[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
CONFIG_MAP
Authenticates using a Kubernetes ConfigMap. -
API_AND_CONFIG_MAP
Authenticates using both the Kubernetes API server and a ConfigMap. -
API
Authenticates using the Kubernetes API server.
-
-
Method Details
-
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
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 nameNullPointerException
- if the argument is null
-