FileSystemAttributes

class aws_cdk.aws_efs.FileSystemAttributes(*, security_group, file_system_arn=None, file_system_id=None)

Bases: object

Properties that describe an existing EFS file system.

Parameters:
  • security_group (ISecurityGroup) – The security group of the file system.

  • file_system_arn (Optional[str]) – The File System’s Arn. Default: - determined based on fileSystemId

  • file_system_id (Optional[str]) – The File System’s ID. Default: - determined based on fileSystemArn

ExampleMetadata:

infused

Example:

import aws_cdk.aws_iam as iam


imported_file_system = efs.FileSystem.from_file_system_attributes(self, "existingFS",
    file_system_id="fs-12345678",  # You can also use fileSystemArn instead of fileSystemId.
    security_group=ec2.SecurityGroup.from_security_group_id(self, "SG", "sg-123456789",
        allow_all_outbound=False
    )
)

Attributes

file_system_arn

The File System’s Arn.

Default:
  • determined based on fileSystemId

file_system_id

The File System’s ID.

Default:
  • determined based on fileSystemArn

security_group

The security group of the file system.