@Generated(value="jsii-pacmak/1.74.0 (build 6d08790)", date="2023-03-14T16:25:29.383Z") public class LustreFileSystem extends FileSystemBase
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);
Modifier and Type | Class and Description |
---|---|
static class |
LustreFileSystem.Builder
A fluent builder for
LustreFileSystem . |
IFileSystem.Jsii$Default
IResource.Jsii$Default
Modifier | Constructor and Description |
---|---|
protected |
LustreFileSystem(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) |
protected |
LustreFileSystem(software.amazon.jsii.JsiiObjectRef objRef) |
|
LustreFileSystem(software.constructs.Construct scope,
java.lang.String id,
LustreFileSystemProps props) |
Modifier and Type | Method and Description |
---|---|
static IFileSystem |
fromLustreFileSystemAttributes(software.constructs.Construct scope,
java.lang.String id,
FileSystemAttributes attrs)
Import an existing FSx for Lustre file system from the given properties.
|
Connections |
getConnections()
The security groups/rules used to allow network connections to the file system.
|
java.lang.String |
getDnsName()
The DNS name assigned to this file system.
|
java.lang.String |
getFileSystemId()
The ID that AWS assigns to the file system.
|
java.lang.String |
getMountName()
The mount name of the file system, generated by FSx.
|
applyRemovalPolicy, generatePhysicalName, getEnv, getPhysicalName, getResourceArnAttribute, getResourceNameAttribute, getStack, isResource
getNode, isConstruct, onPrepare, onSynthesize, onValidate, prepare, synthesize, validate
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getNode
protected LustreFileSystem(software.amazon.jsii.JsiiObjectRef objRef)
protected LustreFileSystem(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
public LustreFileSystem(software.constructs.Construct scope, java.lang.String id, LustreFileSystemProps props)
scope
- This parameter is required.id
- This parameter is required.props
- This parameter is required.public static IFileSystem fromLustreFileSystemAttributes(software.constructs.Construct scope, java.lang.String id, FileSystemAttributes attrs)
scope
- This parameter is required.id
- This parameter is required.attrs
- This parameter is required.public Connections getConnections()
getConnections
in interface IConnectable
getConnections
in class FileSystemBase
public java.lang.String getDnsName()
getDnsName
in class FileSystemBase
public java.lang.String getFileSystemId()
getFileSystemId
in interface IFileSystem
getFileSystemId
in class FileSystemBase
public java.lang.String getMountName()