aws-cdk-lib.aws_fsx.FileSystemAttributes

interface FileSystemAttributes

LanguageType name
.NETAmazon.CDK.AWS.FSx.FileSystemAttributes
Gogithub.com/aws/aws-cdk-go/awscdk/v2/awsfsx#FileSystemAttributes
Javasoftware.amazon.awscdk.services.fsx.FileSystemAttributes
Pythonaws_cdk.aws_fsx.FileSystemAttributes
TypeScript (source)aws-cdk-lib » aws_fsx » FileSystemAttributes

Properties that describe an existing FSx file system.

Example

const sg = ec2.SecurityGroup.fromSecurityGroupId(this, 'FsxSecurityGroup', '{SECURITY-GROUP-ID}');
const fs = fsx.LustreFileSystem.fromLustreFileSystemAttributes(this, 'FsxLustreFileSystem', {
  dnsName: '{FILE-SYSTEM-DNS-NAME}',
  fileSystemId: '{FILE-SYSTEM-ID}',
  securityGroup: sg,
});

const vpc = ec2.Vpc.fromVpcAttributes(this, 'Vpc', {
  availabilityZones: ['us-west-2a', 'us-west-2b'],
  publicSubnetIds: ['{US-WEST-2A-SUBNET-ID}', '{US-WEST-2B-SUBNET-ID}'],
  vpcId: '{VPC-ID}',
});

const inst = new ec2.Instance(this, 'inst', {
  instanceType: ec2.InstanceType.of(ec2.InstanceClass.T2, ec2.InstanceSize.LARGE),
  machineImage: new ec2.AmazonLinuxImage({
    generation: ec2.AmazonLinuxGeneration.AMAZON_LINUX_2,
  }),
  vpc,
  vpcSubnets: {
    subnetType: ec2.SubnetType.PUBLIC,
  },
});

fs.connections.allowDefaultPortFrom(inst);

Properties

NameTypeDescription
dnsNamestringThe DNS name assigned to this file system.
fileSystemIdstringThe ID of the file system, assigned by Amazon FSx.
securityGroupISecurityGroupThe security group of the file system.

dnsName

Type: string

The DNS name assigned to this file system.


fileSystemId

Type: string

The ID of the file system, assigned by Amazon FSx.


securityGroup

Type: ISecurityGroup

The security group of the file system.