# GrantAccessOptions

Options for granting access to a cluster.

- Source: [`aws-eks/lib/cluster.ts`](https://github.com/aws/aws-cdk/blob/v2.275.0/packages/aws-cdk-lib/aws-eks/lib/cluster.ts#L1485)
- Type last changed: v2.238.0 · 9 Feb 2026

## Example

```ts
declare const cluster: eks.Cluster;
declare const nodeRole: iam.Role;

// For EKS Auto Mode node roles
cluster.grantAccess('NodeAccess', nodeRole.roleArn, [], { accessEntryType: eks.AccessEntryType.EC2 });
```

## Properties

- `accessEntryType`: [AccessEntryType](/cdk/api/v2/docs/aws-cdk-lib.aws_eks.AccessEntryType.html) — The type of the access entry.

  **Default:** AccessEntryType.STANDARD - Standard access entry type that supports access policies

  Specify `AccessEntryType.EC2` for EKS Auto Mode node roles,
  `AccessEntryType.HYBRID_LINUX` for EKS Hybrid Nodes, or
  `AccessEntryType.HYPERPOD_LINUX` for SageMaker HyperPod.

  Note that HYBRID_LINUX and HYPERPOD_LINUX types cannot
  have access policies attached per AWS EKS API constraints.
