Class LustreFileSystem

java.lang.Object
software.amazon.jsii.JsiiObject
software.constructs.Construct
All Implemented Interfaces:
IConstruct, IDependable, IResource, IConnectable, IFileSystem, software.amazon.jsii.JsiiSerializable, software.constructs.IConstruct

@Generated(value="jsii-pacmak/1.84.0 (build 5404dcf)", date="2023-06-19T16:30:40.278Z") @Stability(Stable) public class LustreFileSystem extends FileSystemBase
The FSx for Lustre File System implementation of IFileSystem.

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);
 

See Also:
  • Constructor Details

    • LustreFileSystem

      protected LustreFileSystem(software.amazon.jsii.JsiiObjectRef objRef)
    • LustreFileSystem

      protected LustreFileSystem(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
    • LustreFileSystem

      @Stability(Stable) public LustreFileSystem(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull LustreFileSystemProps props)
      Parameters:
      scope - This parameter is required.
      id - This parameter is required.
      props - This parameter is required.
  • Method Details

    • fromLustreFileSystemAttributes

      @Stability(Stable) @NotNull public static IFileSystem fromLustreFileSystemAttributes(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull FileSystemAttributes attrs)
      Import an existing FSx for Lustre file system from the given properties.

      Parameters:
      scope - This parameter is required.
      id - This parameter is required.
      attrs - This parameter is required.
    • getConnections

      @Stability(Stable) @NotNull public Connections getConnections()
      The security groups/rules used to allow network connections to the file system.
      Specified by:
      getConnections in interface IConnectable
      Specified by:
      getConnections in class FileSystemBase
    • getDnsName

      @Stability(Stable) @NotNull public String getDnsName()
      The DNS name assigned to this file system.
      Specified by:
      getDnsName in class FileSystemBase
    • getFileSystemId

      @Stability(Stable) @NotNull public String getFileSystemId()
      The ID that AWS assigns to the file system.
      Specified by:
      getFileSystemId in interface IFileSystem
      Specified by:
      getFileSystemId in class FileSystemBase
    • getMountName

      @Stability(Stable) @NotNull public String getMountName()
      The mount name of the file system, generated by FSx.