Interface FileSystemProps
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
FileSystemProps.Jsii$Proxy
Example:
FileSystem fileSystem = FileSystem.Builder.create(this, "MyEfsFileSystem")
.vpc(new Vpc(this, "VPC"))
.lifecyclePolicy(LifecyclePolicy.AFTER_14_DAYS) // files are not transitioned to infrequent access (IA) storage by default
.performanceMode(PerformanceMode.GENERAL_PURPOSE) // default
.outOfInfrequentAccessPolicy(OutOfInfrequentAccessPolicy.AFTER_1_ACCESS)
.build();
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classA builder forFileSystemPropsstatic final classAn implementation forFileSystemProps -
Method Summary
Modifier and TypeMethodDescriptionstatic FileSystemProps.Builderbuilder()default BooleanWhether to enable automatic backups for the file system.default BooleanDefines if the data at rest in the file system is encrypted or not.default StringThe file system's name.default IKeyThe KMS key used for encryption.default LifecyclePolicyA policy used by EFS lifecycle management to transition files to the Infrequent Access (IA) storage class.default OutOfInfrequentAccessPolicyA policy used by EFS lifecycle management to transition files from Infrequent Access (IA) storage class to primary storage class.default PerformanceModeThe performance mode that the file system will operate under.default SizeProvisioned throughput for the file system.default RemovalPolicyThe removal policy to apply to the file system.default ISecurityGroupSecurity Group to assign to this file system.default ThroughputModeEnum to mention the throughput mode of the file system.getVpc()VPC to launch the file system in.default SubnetSelectionWhich subnets to place the mount target in the VPC.Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getVpc
VPC to launch the file system in. -
getEnableAutomaticBackups
Whether to enable automatic backups for the file system.Default: false
-
getEncrypted
Defines if the data at rest in the file system is encrypted or not.Default: - If your application has the '
-
getFileSystemName
The file system's name.Default: - CDK generated name
-
getKmsKey
The KMS key used for encryption.This is required to encrypt the data at rest if @encrypted is set to true.
Default: - if 'encrypted' is true, the default key for EFS (/aws/elasticfilesystem) is used
-
getLifecyclePolicy
A policy used by EFS lifecycle management to transition files to the Infrequent Access (IA) storage class.Default: - None. EFS will not transition files to the IA storage class.
-
getOutOfInfrequentAccessPolicy
A policy used by EFS lifecycle management to transition files from Infrequent Access (IA) storage class to primary storage class.Default: - None. EFS will not transition files from IA storage to primary storage.
-
getPerformanceMode
The performance mode that the file system will operate under.An Amazon EFS file system's performance mode can't be changed after the file system has been created. Updating this property will replace the file system.
Default: PerformanceMode.GENERAL_PURPOSE
-
getProvisionedThroughputPerSecond
Provisioned throughput for the file system.This is a required property if the throughput mode is set to PROVISIONED. Must be at least 1MiB/s.
Default: - none, errors out
-
getRemovalPolicy
The removal policy to apply to the file system.Default: RemovalPolicy.RETAIN
-
getSecurityGroup
Security Group to assign to this file system.Default: - creates new security group which allows all outbound traffic
-
getThroughputMode
Enum to mention the throughput mode of the file system.Default: ThroughputMode.BURSTING
-
getVpcSubnets
Which subnets to place the mount target in the VPC.Default: - the Vpc default strategy if not specified
-
builder
- Returns:
- a
FileSystemProps.BuilderofFileSystemProps
-