Interface FileSystemProps

All Superinterfaces:
software.amazon.jsii.JsiiSerializable
All Known Implementing Classes:
FileSystemProps.Jsii$Proxy

@Generated(value="jsii-pacmak/1.89.0 (build 2f74b3e)", date="2023-11-02T10:21:17.596Z") @Stability(Stable) public interface FileSystemProps extends software.amazon.jsii.JsiiSerializable
Properties of EFS FileSystem.

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);
 
  • Method Details

    • getVpc

      @Stability(Stable) @NotNull IVpc getVpc()
      VPC to launch the file system in.
    • getAllowAnonymousAccess

      @Stability(Stable) @Nullable default Boolean 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

      @Stability(Stable) @Nullable default Boolean getEnableAutomaticBackups()
      Whether to enable automatic backups for the file system.

      Default: false

    • getEncrypted

      @Stability(Stable) @Nullable default Boolean 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

      @Stability(Stable) @Nullable default String getFileSystemName()
      The file system's name.

      Default: - CDK generated name

    • getFileSystemPolicy

      @Stability(Stable) @Nullable default PolicyDocument getFileSystemPolicy()
      File system policy is an IAM resource policy used to control NFS access to an EFS file system.

      Default: none

    • getKmsKey

      @Stability(Stable) @Nullable default IKey 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

      @Stability(Stable) @Nullable default LifecyclePolicy 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

      @Stability(Stable) @Nullable default OutOfInfrequentAccessPolicy 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

      @Stability(Stable) @Nullable default PerformanceMode 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

      @Stability(Stable) @Nullable default Size 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

      @Stability(Stable) @Nullable default RemovalPolicy getRemovalPolicy()
      The removal policy to apply to the file system.

      Default: RemovalPolicy.RETAIN

    • getSecurityGroup

      @Stability(Stable) @Nullable default ISecurityGroup getSecurityGroup()
      Security Group to assign to this file system.

      Default: - creates new security group which allows all outbound traffic

    • getThroughputMode

      @Stability(Stable) @Nullable default ThroughputMode getThroughputMode()
      Enum to mention the throughput mode of the file system.

      Default: ThroughputMode.BURSTING

    • getVpcSubnets

      @Stability(Stable) @Nullable default SubnetSelection getVpcSubnets()
      Which subnets to place the mount target in the VPC.

      Default: - the Vpc default strategy if not specified

    • builder

      @Stability(Stable) static FileSystemProps.Builder builder()
      Returns:
      a FileSystemProps.Builder of FileSystemProps