interface FileSystemAttributes
Language | Type name |
---|---|
.NET | Amazon.CDK.AWS.FSx.FileSystemAttributes |
Go | github.com/aws/aws-cdk-go/awscdk/v2/awsfsx#FileSystemAttributes |
Java | software.amazon.awscdk.services.fsx.FileSystemAttributes |
Python | aws_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
Name | Type | Description |
---|---|---|
dns | string | The DNS name assigned to this file system. |
file | string | The ID of the file system, assigned by Amazon FSx. |
security | ISecurity | The 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:
ISecurity
The security group of the file system.