@Generated(value="jsii-pacmak/1.71.0 (build f1f58ae)", date="2022-12-07T17:24:41.670Z") @Stability(value=Stable) 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. |
software.amazon.jsii.JsiiObject.InitializationModeIFileSystem.Jsii$DefaultIResource.Jsii$Default| Modifier | Constructor and Description |
|---|---|
|
LustreFileSystem(software.constructs.Construct scope,
String id,
LustreFileSystemProps props) |
protected |
LustreFileSystem(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) |
protected |
LustreFileSystem(software.amazon.jsii.JsiiObjectRef objRef) |
| Modifier and Type | Method and Description |
|---|---|
static IFileSystem |
fromLustreFileSystemAttributes(software.constructs.Construct scope,
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.
|
String |
getDnsName()
The DNS name assigned to this file system.
|
String |
getFileSystemId()
The ID that AWS assigns to the file system.
|
String |
getMountName()
The mount name of the file system, generated by FSx.
|
applyRemovalPolicy, generatePhysicalName, getEnv, getPhysicalName, getResourceArnAttribute, getResourceNameAttribute, getStack, isResourcegetNode, isConstruct, onPrepare, onSynthesize, onValidate, prepare, synthesize, validatejsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSetclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetNodeprotected LustreFileSystem(software.amazon.jsii.JsiiObjectRef objRef)
protected LustreFileSystem(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
@Stability(value=Stable)
public LustreFileSystem(@NotNull
software.constructs.Construct scope,
@NotNull
String id,
@NotNull
LustreFileSystemProps props)
scope - This parameter is required.id - This parameter is required.props - This parameter is required.@Stability(value=Stable) @NotNull public static IFileSystem fromLustreFileSystemAttributes(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull FileSystemAttributes attrs)
scope - This parameter is required.id - This parameter is required.attrs - This parameter is required.@Stability(value=Stable) @NotNull public Connections getConnections()
getConnections in interface IConnectablegetConnections in class FileSystemBase@Stability(value=Stable) @NotNull public String getDnsName()
getDnsName in class FileSystemBase@Stability(value=Stable) @NotNull public String getFileSystemId()
getFileSystemId in interface IFileSystemgetFileSystemId in class FileSystemBase@Stability(value=Stable) @NotNull public String getMountName()
Copyright © 2022. All rights reserved.