Class FileSystemAttributes
Properties that describe an existing FSx file system.
Inheritance
System.Object
FileSystemAttributes
Implements
Namespace: Amazon.CDK.AWS.FSx
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public class FileSystemAttributes : Object, IFileSystemAttributes
Syntax (vb)
Public Class FileSystemAttributes
Inherits Object
Implements IFileSystemAttributes
Remarks
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
FileSystemAttributes() |
Properties
DnsName | The DNS name assigned to this file system. |
FileSystemId | The ID of the file system, assigned by Amazon FSx. |
SecurityGroup | The security group of the file system. |
Constructors
FileSystemAttributes()
public FileSystemAttributes()
Properties
DnsName
The DNS name assigned to this file system.
public string DnsName { get; set; }
Property Value
System.String
FileSystemId
The ID of the file system, assigned by Amazon FSx.
public string FileSystemId { get; set; }
Property Value
System.String
SecurityGroup
The security group of the file system.
public ISecurityGroup SecurityGroup { get; set; }
Property Value