aws-cdk-lib.aws_efs.FileSystemAttributes

interface FileSystemAttributes

LanguageType name
.NETAmazon.CDK.AWS.EFS.FileSystemAttributes
Gogithub.com/aws/aws-cdk-go/awscdk/v2/awsefs#FileSystemAttributes
Javasoftware.amazon.awscdk.services.efs.FileSystemAttributes
Pythonaws_cdk.aws_efs.FileSystemAttributes
TypeScript (source)aws-cdk-lib » aws_efs » FileSystemAttributes

Properties that describe an existing EFS file system.

Example

import * as iam from 'aws-cdk-lib/aws-iam';

const importedFileSystem = efs.FileSystem.fromFileSystemAttributes(this, 'existingFS', {
  fileSystemId: 'fs-12345678', // You can also use fileSystemArn instead of fileSystemId.
  securityGroup: ec2.SecurityGroup.fromSecurityGroupId(this, 'SG', 'sg-123456789', {
    allowAllOutbound: false,
  }),
});

Properties

NameTypeDescription
securityGroupISecurityGroupThe security group of the file system.
fileSystemArn?stringThe File System's Arn.
fileSystemId?stringThe File System's ID.

securityGroup

Type: ISecurityGroup

The security group of the file system.


fileSystemArn?

Type: string (optional, default: determined based on fileSystemId)

The File System's Arn.


fileSystemId?

Type: string (optional, default: determined based on fileSystemArn)

The File System's ID.