# AccessEntryProps

Represents the properties required to create an Amazon EKS access entry.

Extends: AccessEntryProps
Used as props by: AccessEntry

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

## Example

```ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import * as cdk from 'aws-cdk-lib';
import { aws_eks as eks } from 'aws-cdk-lib';

declare const accessPolicy: eks.AccessPolicy;
declare const cluster: eks.Cluster;
const accessEntryProps: eks.AccessEntryProps = {
  accessPolicies: [accessPolicy],
  cluster: cluster,
  principal: 'principal',

  // the properties below are optional
  accessEntryName: 'accessEntryName',
  accessEntryType: eks.AccessEntryType.STANDARD,
  removalPolicy: cdk.RemovalPolicy.DESTROY,
};
```

## Properties

- `accessEntryName`: string — The name of the AccessEntry.

  **Default:** No access entry name is provided

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

- `accessPolicies`: [IAccessPolicy](/cdk/api/v2/docs/aws-cdk-lib.aws_eks.IAccessPolicy.html)[] (required) — The access policies that define the permissions and scope for the access entry.

- `cluster`: [ICluster](/cdk/api/v2/docs/aws-cdk-lib.aws_eks.ICluster.html) (required) — The Amazon EKS cluster to which the access entry applies.

- `principal`: string (required) — The Amazon Resource Name (ARN) of the principal (user or role) to associate the access entry with.

- `removalPolicy`: [RemovalPolicy](/cdk/api/v2/docs/aws-cdk-lib.RemovalPolicy.html) = RemovalPolicy.DESTROY — The removal policy applied to the access entry.

  The removal policy controls what happens to the resource if it stops being managed by CloudFormation.
  This can happen in one of three situations:

  - The resource is removed from the template, so CloudFormation stops managing it
  - A change to the resource is made that requires it to be replaced, so CloudFormation stops managing it
  - The stack is deleted, so CloudFormation stops managing all resources in it
