OutOfInfrequentAccessPolicy

class aws_cdk.aws_efs.OutOfInfrequentAccessPolicy(value)

Bases: Enum

EFS Out Of Infrequent Access Policy, if a file is accessed given times, it will move back to primary storage class.

See:

https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-efs-filesystem-lifecyclepolicy.html#cfn-efs-filesystem-lifecyclepolicy-transitiontoprimarystorageclass

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_1_ACCESS

After 1 access.