# AccessPointAttributes

Attributes that can be specified when importing an AccessPoint.

Used as argument in: [AccessPoint.fromAccessPointAttributes](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_efs.AccessPoint.html#fromaccesspointattributes)

- Source: [`aws-efs/lib/access-point.ts`](https://github.com/aws/aws-cdk/blob/v2.278.0/packages/aws-cdk-lib/aws-efs/lib/access-point.ts#L134)
- Type last changed: v2.234.0 · 8 Jan 2026

## Example

TypeScript:

```ts
efs.AccessPoint.fromAccessPointAttributes(this, 'ap', {
  accessPointId: 'fsap-1293c4d9832fo0912',
  fileSystem: efs.FileSystem.fromFileSystemAttributes(this, 'efs', {
    fileSystemId: 'fs-099d3e2f',
    securityGroup: ec2.SecurityGroup.fromSecurityGroupId(this, 'sg', 'sg-51530134'),
  }),
});
```

Python:

```python
efs.AccessPoint.from_access_point_attributes(self, "ap",
    access_point_id="fsap-1293c4d9832fo0912",
    file_system=efs.FileSystem.from_file_system_attributes(self, "efs",
        file_system_id="fs-099d3e2f",
        security_group=ec2.SecurityGroup.from_security_group_id(self, "sg", "sg-51530134")
    )
)
```

Java:

```java
AccessPoint.fromAccessPointAttributes(this, "ap", AccessPointAttributes.builder()
        .accessPointId("fsap-1293c4d9832fo0912")
        .fileSystem(FileSystem.fromFileSystemAttributes(this, "efs", FileSystemAttributes.builder()
                .fileSystemId("fs-099d3e2f")
                .securityGroup(SecurityGroup.fromSecurityGroupId(this, "sg", "sg-51530134"))
                .build()))
        .build());
```

C# / .NET:

```csharp
// Install: dotnet add package Amazon.CDK.Lib
AccessPoint.FromAccessPointAttributes(this, "ap", new AccessPointAttributes {
    AccessPointId = "fsap-1293c4d9832fo0912",
    FileSystem = FileSystem.FromFileSystemAttributes(this, "efs", new FileSystemAttributes {
        FileSystemId = "fs-099d3e2f",
        SecurityGroup = SecurityGroup.FromSecurityGroupId(this, "sg", "sg-51530134")
    })
});
```

Golang:

```go
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
efs.AccessPoint_FromAccessPointAttributes(this, jsii.String("ap"), &AccessPointAttributes{
	AccessPointId: jsii.String("fsap-1293c4d9832fo0912"),
	FileSystem: efs.FileSystem_FromFileSystemAttributes(this, jsii.String("efs"), &FileSystemAttributes{
		FileSystemId: jsii.String("fs-099d3e2f"),
		SecurityGroup: ec2.SecurityGroup_FromSecurityGroupId(this, jsii.String("sg"), jsii.String("sg-51530134")),
	}),
})
```

## Properties

- `accessPointArn`: string — The ARN of the AccessPoint One of this, or `accessPointId` is required.

  **Default:** determined based on accessPointId

- `accessPointId`: string — The ID of the AccessPoint One of this, or `accessPointArn` is required.

  **Default:** determined based on accessPointArn

- `fileSystem`: [IFileSystemRef](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.interfaces.aws_efs.IFileSystemRef.html) — The EFS file system.

  **Default:** no EFS file system
