Interface FileSystemProps
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
FileSystemProps.Jsii$Proxy
Example:
import software.amazon.awscdk.services.iam.*; Role role = Role.Builder.create(this, "ClientRole") .assumedBy(new AnyPrincipal()) .build(); FileSystem fileSystem = FileSystem.Builder.create(this, "MyEfsFileSystem") .vpc(new Vpc(this, "VPC")) .allowAnonymousAccess(true) .build(); fileSystem.grantRead(role);
-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic final class
A builder forFileSystemProps
static final class
An implementation forFileSystemProps
-
Method Summary
Modifier and TypeMethodDescriptionstatic FileSystemProps.Builder
builder()
default Boolean
Allow access from anonymous client that doesn't use IAM authentication.default Boolean
Whether to enable automatic backups for the file system.default Boolean
Defines if the data at rest in the file system is encrypted or not.default String
The file system's name.default PolicyDocument
File system policy is an IAM resource policy used to control NFS access to an EFS file system.default IKey
The KMS key used for encryption.default LifecyclePolicy
A policy used by EFS lifecycle management to transition files to the Infrequent Access (IA) storage class.default Boolean
Whether this is a One Zone file system.default OutOfInfrequentAccessPolicy
A policy used by EFS lifecycle management to transition files from Infrequent Access (IA) storage class to primary storage class.default PerformanceMode
The performance mode that the file system will operate under.default Size
Provisioned throughput for the file system.default RemovalPolicy
The removal policy to apply to the file system.default ReplicationConfiguration
Replication configuration for the file system.default ReplicationOverwriteProtection
Whether to enable the filesystem's replication overwrite protection or not.default ISecurityGroup
Security Group to assign to this file system.default ThroughputMode
Enum to mention the throughput mode of the file system.default LifecyclePolicy
The number of days after files were last accessed in primary storage (the Standard storage class) at which to move them to Archive storage.getVpc()
VPC to launch the file system in.default SubnetSelection
Which 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. -
getAllowAnonymousAccess
Allow access from anonymous client that doesn't use IAM authentication.Default: false when using `grantRead`, `grantWrite`, `grantRootAccess` or set `@aws-cdk/aws-efs:denyAnonymousAccess` feature flag, otherwise true
-
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 '@aws-cdk/aws-efs:defaultEncryptionAtRest' feature flag set, the default is true, otherwise, the default is false.
-
getFileSystemName
The file system's name.Default: - CDK generated name
-
getFileSystemPolicy
File system policy is an IAM resource policy used to control NFS access to an EFS file system.Default: none
-
getKmsKey
The KMS key used for encryption.This is required to encrypt the data at rest if
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.
-
getOneZone
Whether this is a One Zone file system.If enabled,
performanceMode
must be set toGENERAL_PURPOSE
andvpcSubnets
cannot be set.Default: false
-
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
-
getReplicationConfiguration
Replication configuration for the file system.Default: - no replication
-
getReplicationOverwriteProtection
@Stability(Stable) @Nullable default ReplicationOverwriteProtection getReplicationOverwriteProtection()Whether to enable the filesystem's replication overwrite protection or not.Set false if you want to create a read-only filesystem for use as a replication destination.
Default: ReplicationOverwriteProtection.ENABLED
- See Also:
-
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
-
getTransitionToArchivePolicy
The number of days after files were last accessed in primary storage (the Standard storage class) at which to move them to Archive storage.Metadata operations such as listing the contents of a directory don't count as file access events.
Default: - None. EFS will not transition files to Archive storage class.
-
getVpcSubnets
Which subnets to place the mount target in the VPC.Default: - the Vpc default strategy if not specified
-
builder
- Returns:
- a
FileSystemProps.Builder
ofFileSystemProps
-