FileSystemProps

class aws_cdk.aws_efs.FileSystemProps(*, vpc, enable_automatic_backups=None, encrypted=None, file_system_name=None, kms_key=None, lifecycle_policy=None, performance_mode=None, provisioned_throughput_per_second=None, removal_policy=None, security_group=None, throughput_mode=None, vpc_subnets=None)

Bases: object

Properties of EFS FileSystem.

Parameters
  • vpc (IVpc) – VPC to launch the file system in.

  • enable_automatic_backups (Optional[bool]) – Whether to enable automatic backups for the file system. Default: false

  • encrypted (Optional[bool]) – Defines if the data at rest in the file system is encrypted or not. Default: - If your application has the ‘

  • file_system_name (Optional[str]) – The file system’s name. Default: - CDK generated name

  • kms_key (Optional[IKey]) – 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

  • lifecycle_policy (Optional[LifecyclePolicy]) – 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.

  • performance_mode (Optional[PerformanceMode]) – 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

  • provisioned_throughput_per_second (Optional[Size]) – 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

  • removal_policy (Optional[RemovalPolicy]) – The removal policy to apply to the file system. Default: RemovalPolicy.RETAIN

  • security_group (Optional[ISecurityGroup]) – Security Group to assign to this file system. Default: - creates new security group which allows all outbound traffic

  • throughput_mode (Optional[ThroughputMode]) – Enum to mention the throughput mode of the file system. Default: ThroughputMode.BURSTING

  • vpc_subnets (Optional[SubnetSelection]) – Which subnets to place the mount target in the VPC. Default: - the Vpc default strategy if not specified

Attributes

enable_automatic_backups

Whether to enable automatic backups for the file system.

Default

false

Return type

Optional[bool]

encrypted

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.

Link

https://docs.aws.amazon.com/cdk/latest/guide/featureflags.html

Return type

Optional[bool]

file_system_name

The file system’s name.

Default
  • CDK generated name

Return type

Optional[str]

kms_key

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

Return type

Optional[IKey]

lifecycle_policy

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.

Return type

Optional[LifecyclePolicy]

performance_mode

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

Return type

Optional[PerformanceMode]

provisioned_throughput_per_second

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

Return type

Optional[Size]

removal_policy

The removal policy to apply to the file system.

Default

RemovalPolicy.RETAIN

Return type

Optional[RemovalPolicy]

security_group

Security Group to assign to this file system.

Default
  • creates new security group which allows all outbound traffic

Return type

Optional[ISecurityGroup]

throughput_mode

Enum to mention the throughput mode of the file system.

Default

ThroughputMode.BURSTING

Return type

Optional[ThroughputMode]

vpc

VPC to launch the file system in.

Return type

IVpc

vpc_subnets

Which subnets to place the mount target in the VPC.

Default
  • the Vpc default strategy if not specified

Return type

Optional[SubnetSelection]