Interface FileSystemAttributes
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
FileSystemAttributes.Jsii$Proxy
@Generated(value="jsii-pacmak/1.103.1 (build bef2dea)",
date="2024-10-11T15:55:59.496Z")
@Stability(Stable)
public interface FileSystemAttributes
extends software.amazon.jsii.JsiiSerializable
Properties that describe an existing FSx file system.
Example:
ISecurityGroup sg = SecurityGroup.fromSecurityGroupId(this, "FsxSecurityGroup", "{SECURITY-GROUP-ID}"); IFileSystem fs = LustreFileSystem.fromLustreFileSystemAttributes(this, "FsxLustreFileSystem", FileSystemAttributes.builder() .dnsName("{FILE-SYSTEM-DNS-NAME}") .fileSystemId("{FILE-SYSTEM-ID}") .securityGroup(sg) .build()); IVpc vpc = Vpc.fromVpcAttributes(this, "Vpc", VpcAttributes.builder() .availabilityZones(List.of("us-west-2a", "us-west-2b")) .publicSubnetIds(List.of("{US-WEST-2A-SUBNET-ID}", "{US-WEST-2B-SUBNET-ID}")) .vpcId("{VPC-ID}") .build()); Instance inst = Instance.Builder.create(this, "inst") .instanceType(InstanceType.of(InstanceClass.T2, InstanceSize.LARGE)) .machineImage(AmazonLinuxImage.Builder.create() .generation(AmazonLinuxGeneration.AMAZON_LINUX_2) .build()) .vpc(vpc) .vpcSubnets(SubnetSelection.builder() .subnetType(SubnetType.PUBLIC) .build()) .build(); fs.connections.allowDefaultPortFrom(inst);
-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic final class
A builder forFileSystemAttributes
static final class
An implementation forFileSystemAttributes
-
Method Summary
Modifier and TypeMethodDescriptionstatic FileSystemAttributes.Builder
builder()
The DNS name assigned to this file system.The ID of the file system, assigned by Amazon FSx.The security group of the file system.Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getDnsName
The DNS name assigned to this file system. -
getFileSystemId
The ID of the file system, assigned by Amazon FSx. -
getSecurityGroup
The security group of the file system. -
builder
- Returns:
- a
FileSystemAttributes.Builder
ofFileSystemAttributes
-