Interface CfnFileSystemProps
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
CfnFileSystemProps.Jsii$Proxy
CfnFileSystem.
Example:
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.fsx.*;
CfnFileSystemProps cfnFileSystemProps = CfnFileSystemProps.builder()
.fileSystemType("fileSystemType")
.subnetIds(List.of("subnetIds"))
// the properties below are optional
.backupId("backupId")
.fileSystemTypeVersion("fileSystemTypeVersion")
.kmsKeyId("kmsKeyId")
.lustreConfiguration(LustreConfigurationProperty.builder()
.autoImportPolicy("autoImportPolicy")
.automaticBackupRetentionDays(123)
.copyTagsToBackups(false)
.dailyAutomaticBackupStartTime("dailyAutomaticBackupStartTime")
.dataCompressionType("dataCompressionType")
.deploymentType("deploymentType")
.driveCacheType("driveCacheType")
.exportPath("exportPath")
.importedFileChunkSize(123)
.importPath("importPath")
.perUnitStorageThroughput(123)
.weeklyMaintenanceStartTime("weeklyMaintenanceStartTime")
.build())
.ontapConfiguration(OntapConfigurationProperty.builder()
.deploymentType("deploymentType")
// the properties below are optional
.automaticBackupRetentionDays(123)
.dailyAutomaticBackupStartTime("dailyAutomaticBackupStartTime")
.diskIopsConfiguration(DiskIopsConfigurationProperty.builder()
.iops(123)
.mode("mode")
.build())
.endpointIpAddressRange("endpointIpAddressRange")
.fsxAdminPassword("fsxAdminPassword")
.preferredSubnetId("preferredSubnetId")
.routeTableIds(List.of("routeTableIds"))
.throughputCapacity(123)
.weeklyMaintenanceStartTime("weeklyMaintenanceStartTime")
.build())
.openZfsConfiguration(OpenZFSConfigurationProperty.builder()
.deploymentType("deploymentType")
// the properties below are optional
.automaticBackupRetentionDays(123)
.copyTagsToBackups(false)
.copyTagsToVolumes(false)
.dailyAutomaticBackupStartTime("dailyAutomaticBackupStartTime")
.diskIopsConfiguration(DiskIopsConfigurationProperty.builder()
.iops(123)
.mode("mode")
.build())
.options(List.of("options"))
.rootVolumeConfiguration(RootVolumeConfigurationProperty.builder()
.copyTagsToSnapshots(false)
.dataCompressionType("dataCompressionType")
.nfsExports(List.of(NfsExportsProperty.builder()
.clientConfigurations(List.of(ClientConfigurationsProperty.builder()
.clients("clients")
.options(List.of("options"))
.build()))
.build()))
.readOnly(false)
.recordSizeKiB(123)
.userAndGroupQuotas(List.of(UserAndGroupQuotasProperty.builder()
.id(123)
.storageCapacityQuotaGiB(123)
.type("type")
.build()))
.build())
.throughputCapacity(123)
.weeklyMaintenanceStartTime("weeklyMaintenanceStartTime")
.build())
.securityGroupIds(List.of("securityGroupIds"))
.storageCapacity(123)
.storageType("storageType")
.tags(List.of(CfnTag.builder()
.key("key")
.value("value")
.build()))
.windowsConfiguration(WindowsConfigurationProperty.builder()
.throughputCapacity(123)
// the properties below are optional
.activeDirectoryId("activeDirectoryId")
.aliases(List.of("aliases"))
.auditLogConfiguration(AuditLogConfigurationProperty.builder()
.fileAccessAuditLogLevel("fileAccessAuditLogLevel")
.fileShareAccessAuditLogLevel("fileShareAccessAuditLogLevel")
// the properties below are optional
.auditLogDestination("auditLogDestination")
.build())
.automaticBackupRetentionDays(123)
.copyTagsToBackups(false)
.dailyAutomaticBackupStartTime("dailyAutomaticBackupStartTime")
.deploymentType("deploymentType")
.preferredSubnetId("preferredSubnetId")
.selfManagedActiveDirectoryConfiguration(SelfManagedActiveDirectoryConfigurationProperty.builder()
.dnsIps(List.of("dnsIps"))
.domainName("domainName")
.fileSystemAdministratorsGroup("fileSystemAdministratorsGroup")
.organizationalUnitDistinguishedName("organizationalUnitDistinguishedName")
.password("password")
.userName("userName")
.build())
.weeklyMaintenanceStartTime("weeklyMaintenanceStartTime")
.build())
.build();
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classA builder forCfnFileSystemPropsstatic final classAn implementation forCfnFileSystemProps -
Method Summary
Modifier and TypeMethodDescriptionstatic CfnFileSystemProps.Builderbuilder()default StringThe ID of the file system backup that you are using to create a file system.The type of Amazon FSx file system, which can beLUSTRE,WINDOWS,ONTAP, orOPENZFS.default String(Optional) For FSx for Lustre file systems, sets the Lustre version for the file system that you're creating.default StringThe ID of the AWS Key Management Service ( AWS KMS ) key used to encrypt Amazon FSx file system data.default ObjectThe Lustre configuration for the file system being created.default ObjectThe ONTAP configuration properties of the FSx for ONTAP file system that you are creating.default ObjectThe Amazon FSx for OpenZFS configuration properties for the file system that you are creating.A list of IDs specifying the security groups to apply to all network interfaces created for file system access.default NumberSets the storage capacity of the file system that you're creating.default StringSets the storage type for the file system that you're creating.Specifies the IDs of the subnets that the file system will be accessible from.getTags()An array of key-value pairs to apply to this resource.default ObjectThe configuration object for the Microsoft Windows file system you are creating.Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getFileSystemType
The type of Amazon FSx file system, which can beLUSTRE,WINDOWS,ONTAP, orOPENZFS. -
getSubnetIds
Specifies the IDs of the subnets that the file system will be accessible from.For Windows and ONTAP
MULTI_AZ_1deployment types,provide exactly two subnet IDs, one for the preferred file server and one for the standby file server. You specify one of these subnets as the preferred subnet using theWindowsConfiguration > PreferredSubnetIDorOntapConfiguration > PreferredSubnetIDproperties. For more information about Multi-AZ file system configuration, see Availability and durability: Single-AZ and Multi-AZ file systems in the Amazon FSx for Windows User Guide and Availability and durability in the Amazon FSx for ONTAP User Guide .For Windows
SINGLE_AZ_1andSINGLE_AZ_2and all Lustre deployment types, provide exactly one subnet ID. The file server is launched in that subnet's Availability Zone. -
getBackupId
The ID of the file system backup that you are using to create a file system.For more information, see CreateFileSystemFromBackup .
-
getFileSystemTypeVersion
(Optional) For FSx for Lustre file systems, sets the Lustre version for the file system that you're creating.Valid values are
2.10and2.12:- 2.10 is supported by the Scratch and Persistent_1 Lustre deployment types.
- 2.12 is supported by all Lustre deployment types.
2.12is required when setting FSx for LustreDeploymentTypetoPERSISTENT_2.
Default value =
2.10, except whenDeploymentTypeis set toPERSISTENT_2, then the default is2.12.If you set
FileSystemTypeVersionto2.10for aPERSISTENT_2Lustre deployment type, theCreateFileSystemoperation fails. -
getKmsKeyId
The ID of the AWS Key Management Service ( AWS KMS ) key used to encrypt Amazon FSx file system data.Used as follows with Amazon FSx file system types:
- Amazon FSx for Lustre
PERSISTENT_1andPERSISTENT_2deployment types only.
SCRATCH_1andSCRATCH_2types are encrypted using the Amazon FSx service AWS KMS key for your account.- Amazon FSx for NetApp ONTAP
- Amazon FSx for OpenZFS
- Amazon FSx for Windows File Server
- Amazon FSx for Lustre
-
getLustreConfiguration
The Lustre configuration for the file system being created.The following parameters are not supported for file systems with a data repository association.
AutoImportPolicyExportPathImportedChunkSizeImportPath
-
getOntapConfiguration
The ONTAP configuration properties of the FSx for ONTAP file system that you are creating. -
getOpenZfsConfiguration
The Amazon FSx for OpenZFS configuration properties for the file system that you are creating. -
getSecurityGroupIds
A list of IDs specifying the security groups to apply to all network interfaces created for file system access.This list isn't returned in later requests to describe the file system.
-
getStorageCapacity
Sets the storage capacity of the file system that you're creating.StorageCapacityis required if you are creating a new file system.FSx for Lustre file systems - The amount of storage capacity that you can configure depends on the value that you set for
StorageTypeand the LustreDeploymentType, as follows:- For
SCRATCH_2,PERSISTENT_2andPERSISTENT_1deployment types using SSD storage type, the valid values are 1200 GiB, 2400 GiB, and increments of 2400 GiB. - For
PERSISTENT_1HDD file systems, valid values are increments of 6000 GiB for 12 MB/s/TiB file systems and increments of 1800 GiB for 40 MB/s/TiB file systems. - For
SCRATCH_1deployment type, valid values are 1200 GiB, 2400 GiB, and increments of 3600 GiB.
FSx for ONTAP file systems - The amount of storage capacity that you can configure is from 1024 GiB up to 196,608 GiB (192 TiB).
FSx for OpenZFS file systems - The amount of storage capacity that you can configure is from 64 GiB up to 524,288 GiB (512 TiB). If you are creating a file system from a backup, you can specify a storage capacity equal to or greater than the original file system's storage capacity.
FSx for Windows File Server file systems - The amount of storage capacity that you can configure depends on the value that you set for
StorageTypeas follows:- For SSD storage, valid values are 32 GiB-65,536 GiB (64 TiB).
- For HDD storage, valid values are 2000 GiB-65,536 GiB (64 TiB).
- For
-
getStorageType
Sets the storage type for the file system that you're creating. Valid values areSSDandHDD.- Set to
SSDto use solid state drive storage. SSD is supported on all Windows, Lustre, ONTAP, and OpenZFS deployment types. - Set to
HDDto use hard disk drive storage. HDD is supported onSINGLE_AZ_2andMULTI_AZ_1Windows file system deployment types, and onPERSISTENT_1Lustre file system deployment types.
Default value is
SSD. For more information, see Storage type options in the FSx for Windows File Server User Guide and Multiple storage options in the FSx for Lustre User Guide . - Set to
-
getTags
An array of key-value pairs to apply to this resource.For more information, see Tag .
-
getWindowsConfiguration
The configuration object for the Microsoft Windows file system you are creating.This value is required if
FileSystemTypeis set toWINDOWS. -
builder
- Returns:
- a
CfnFileSystemProps.BuilderofCfnFileSystemProps
-