enum LifecyclePolicy
Language | Type name |
---|---|
.NET | Amazon.CDK.AWS.EFS.LifecyclePolicy |
Go | github.com/aws/aws-cdk-go/awscdk/v2/awsefs#LifecyclePolicy |
Java | software.amazon.awscdk.services.efs.LifecyclePolicy |
Python | aws_cdk.aws_efs.LifecyclePolicy |
TypeScript (source) | aws-cdk-lib » aws_efs » LifecyclePolicy |
EFS Lifecycle Policy, if a file is not accessed for given days, it will move to EFS Infrequent Access or Archive storage.
Example
const fileSystem = new efs.FileSystem(this, 'MyEfsFileSystem', {
vpc: new ec2.Vpc(this, 'VPC'),
lifecyclePolicy: efs.LifecyclePolicy.AFTER_14_DAYS, // files are not transitioned to infrequent access (IA) storage by default
performanceMode: efs.PerformanceMode.GENERAL_PURPOSE, // default
outOfInfrequentAccessPolicy: efs.OutOfInfrequentAccessPolicy.AFTER_1_ACCESS, // files are not transitioned back from (infrequent access) IA to primary storage by default
transitionToArchivePolicy: efs.LifecyclePolicy.AFTER_14_DAYS, // files are not transitioned to Archive by default
replicationOverwriteProtection: efs.ReplicationOverwriteProtection.ENABLED, // Set to `DISABLED` if you want to create a read-only file system for use as a replication destination
});
Members
Name | Description |
---|---|
AFTER_1_DAY | After 1 day of not being accessed. |
AFTER_7_DAYS | After 7 days of not being accessed. |
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_90_DAYS | After 90 days of not being accessed. |
AFTER_180_DAYS | After 180 days of not being accessed. |
AFTER_270_DAYS | After 270 days of not being accessed. |
AFTER_365_DAYS | After 365 days of not being accessed. |
AFTER_1_DAY
After 1 day of not being accessed.
AFTER_7_DAYS
After 7 days of not being accessed.
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_90_DAYS
After 90 days of not being accessed.
AFTER_180_DAYS
After 180 days of not being accessed.
AFTER_270_DAYS
After 270 days of not being accessed.
AFTER_365_DAYS
After 365 days of not being accessed.