LifecyclePolicy

class aws_cdk.aws_efs.LifecyclePolicy(value)

Bases: Enum

EFS Lifecycle Policy, if a file is not accessed for given days, it will move to EFS Infrequent Access.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-efs-filesystem.html#cfn-elasticfilesystem-filesystem-lifecyclepolicies

ExampleMetadata:

infused

Example:

file_system = efs.FileSystem(self, "MyEfsFileSystem",
    vpc=ec2.Vpc(self, "VPC"),
    lifecycle_policy=efs.LifecyclePolicy.AFTER_14_DAYS,  # files are not transitioned to infrequent access (IA) storage by default
    performance_mode=efs.PerformanceMode.GENERAL_PURPOSE,  # default
    out_of_infrequent_access_policy=efs.OutOfInfrequentAccessPolicy.AFTER_1_ACCESS
)

Attributes

AFTER_14_DAYS

After 14 days of not being accessed.

AFTER_30_DAYS

After 30 days of not being accessed.

AFTER_60_DAYS

After 60 days of not being accessed.

AFTER_7_DAYS

After 7 days of not being accessed.

AFTER_90_DAYS

After 90 days of not being accessed.