Skip to content
v2.273.0

AuthenticationMode Enum ​

Represents the authentication mode for an Amazon EKS cluster.

Example ​

ts
import { KubectlV36Layer } from '@aws-cdk/lambda-layer-kubectl-v36';
declare const vpc: ec2.Vpc;

new eks.Cluster(this, 'Cluster', {
  vpc,
  version: eks.KubernetesVersion.V1_36,
  kubectlLayer: new KubectlV36Layer(this, 'KubectlLayer'),
  authenticationMode: eks.AuthenticationMode.API_AND_CONFIG_MAP,
});

Members ​

MemberDescription
CONFIG_MAPAuthenticates using a Kubernetes ConfigMap.
API_AND_CONFIG_MAPAuthenticates using both the Kubernetes API server and a ConfigMap.
APIAuthenticates using the Kubernetes API server.

Referenced by ​

  • Cluster.authenticationModeauthentication_modeauthenticationModeAuthenticationModeAuthenticationMode
  • ClusterOptions.authenticationModeauthentication_modeauthenticationModeAuthenticationModeAuthenticationMode
  • ICluster.authenticationModeauthentication_modeauthenticationModeAuthenticationModeAuthenticationMode