# AccessPointOptions

Options to create an AccessPoint.

- Source: [`aws-efs/lib/access-point.ts`](https://github.com/aws/aws-cdk/blob/v2.276.0/packages/aws-cdk-lib/aws-efs/lib/access-point.ts#L81)
- Type last changed: v2.163.0 · 22 Oct 2024

## Example

```ts
fileSystem.addAccessPoint('MyAccessPoint', {
  // create a unique access point via an optional client token
  clientToken: 'client-token',
});
```

## Properties

- `clientToken`: string — The opaque string specified in the request to ensure idempotent creation.

  **Default:** No client token

- `createAcl`: [Acl](/cdk/api/v2/docs/aws-cdk-lib.aws_efs.Acl.html) — Specifies the POSIX IDs and permissions to apply when creating the access point's root directory.

  **Default:** None. The directory specified by `path` must exist.

  If the
  root directory specified by `path` does not exist, EFS creates the root directory and applies the
  permissions specified here. If the specified `path` does not exist, you must specify `createAcl`.

- `path`: string = '/' — Specifies the path on the EFS file system to expose as the root directory to NFS clients using the access point to access the EFS file system.

- `posixUser`: [PosixUser](/cdk/api/v2/docs/aws-cdk-lib.aws_efs.PosixUser.html) — The full POSIX identity, including the user ID, group ID, and any secondary group IDs, on the access point that is used for all file system operations performed by NFS clients using the access point.

  **Default:** user identity not enforced

  Specify this to enforce a user identity using an access point.
