Class LustreFileSystem
The FSx for Lustre File System implementation of IFileSystem.
Inherited Members
Namespace: Amazon.CDK.AWS.FSx
Assembly: Amazon.CDK.AWS.FSx.dll
Syntax (csharp)
public class LustreFileSystem : FileSystemBase, IResource, IConstruct, IDependable, IFileSystem, IConnectable
Syntax (vb)
Public Class LustreFileSystem
Inherits FileSystemBase
Implements IResource, IConstruct, IDependable, IFileSystem, IConnectable
Remarks
See: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-fsx-filesystem.html
Resource: AWS::FSx::FileSystem
ExampleMetadata: infused
Examples
var sg = SecurityGroup.FromSecurityGroupId(this, "FsxSecurityGroup", "{SECURITY-GROUP-ID}");
var fs = LustreFileSystem.FromLustreFileSystemAttributes(this, "FsxLustreFileSystem", new FileSystemAttributes {
DnsName = "{FILE-SYSTEM-DNS-NAME}",
FileSystemId = "{FILE-SYSTEM-ID}",
SecurityGroup = sg
});
var vpc = Vpc.FromVpcAttributes(this, "Vpc", new VpcAttributes {
AvailabilityZones = new [] { "us-west-2a", "us-west-2b" },
PublicSubnetIds = new [] { "{US-WEST-2A-SUBNET-ID}", "{US-WEST-2B-SUBNET-ID}" },
VpcId = "{VPC-ID}"
});
var inst = new Instance(this, "inst", new InstanceProps {
InstanceType = InstanceType.Of(InstanceClass.T2, InstanceSize.LARGE),
MachineImage = new AmazonLinuxImage(new AmazonLinuxImageProps {
Generation = AmazonLinuxGeneration.AMAZON_LINUX_2
}),
Vpc = vpc,
VpcSubnets = new SubnetSelection {
SubnetType = SubnetType.PUBLIC
}
});
fs.Connections.AllowDefaultPortFrom(inst);
Synopsis
Constructors
LustreFileSystem(ByRefValue) | Used by jsii to construct an instance of this class from a Javascript-owned object reference |
LustreFileSystem(DeputyBase.DeputyProps) | Used by jsii to construct an instance of this class from DeputyProps |
LustreFileSystem(Construct, String, ILustreFileSystemProps) |
Properties
Connections | The security groups/rules used to allow network connections to the file system. |
DnsName | The DNS name assigned to this file system. |
FileSystemId | The ID that AWS assigns to the file system. |
MountName | The mount name of the file system, generated by FSx. |
Methods
FromLustreFileSystemAttributes(Construct, String, IFileSystemAttributes) | Import an existing FSx for Lustre file system from the given properties. |
Constructors
LustreFileSystem(ByRefValue)
Used by jsii to construct an instance of this class from a Javascript-owned object reference
protected LustreFileSystem(ByRefValue reference)
Parameters
- reference Amazon.JSII.Runtime.Deputy.ByRefValue
The Javascript-owned object reference
LustreFileSystem(DeputyBase.DeputyProps)
Used by jsii to construct an instance of this class from DeputyProps
protected LustreFileSystem(DeputyBase.DeputyProps props)
Parameters
- props Amazon.JSII.Runtime.Deputy.DeputyBase.DeputyProps
The deputy props
LustreFileSystem(Construct, String, ILustreFileSystemProps)
public LustreFileSystem(Construct scope, string id, ILustreFileSystemProps props)
Parameters
- scope Constructs.Construct
- id System.String
- props ILustreFileSystemProps
Properties
Connections
The security groups/rules used to allow network connections to the file system.
public override Connections_ Connections { get; }
Property Value
Overrides
DnsName
The DNS name assigned to this file system.
public override string DnsName { get; }
Property Value
System.String
Overrides
FileSystemId
The ID that AWS assigns to the file system.
public override string FileSystemId { get; }
Property Value
System.String
Overrides
MountName
The mount name of the file system, generated by FSx.
public virtual string MountName { get; }
Property Value
System.String
Remarks
Attribute: LustreMountName
Methods
FromLustreFileSystemAttributes(Construct, String, IFileSystemAttributes)
Import an existing FSx for Lustre file system from the given properties.
public static IFileSystem FromLustreFileSystemAttributes(Construct scope, string id, IFileSystemAttributes attrs)
Parameters
- scope Constructs.Construct
- id System.String
- attrs IFileSystemAttributes
Returns