interface LifecyclePolicyProperty
| Language | Type name |
|---|---|
.NET | Amazon.CDK.AWS.EFS.CfnFileSystem.LifecyclePolicyProperty |
Go | github.com/aws/aws-cdk-go/awscdk/v2/awsefs#CfnFileSystem_LifecyclePolicyProperty |
Java | software.amazon.awscdk.services.efs.CfnFileSystem.LifecyclePolicyProperty |
Python | aws_cdk.aws_efs.CfnFileSystem.LifecyclePolicyProperty |
TypeScript | aws-cdk-lib » aws_efs » CfnFileSystem » LifecyclePolicyProperty |
Describes a policy used by Lifecycle management that specifies when to transition files into and out of the EFS storage classes.
For more information, see Managing file system storage .
- Each
LifecyclePolicyobject can have only a single transition. This means that in a request body,LifecyclePoliciesmust be structured as an array ofLifecyclePolicyobjects, one object for each transition,TransitionToIA,TransitionToArchive,TransitionToPrimaryStorageClass.- See the AWS::EFS::FileSystem examples for the correct
LifecyclePolicystructure. Do not use the syntax shown on this page.
Example
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_efs as efs } from 'aws-cdk-lib';
const lifecyclePolicyProperty: efs.CfnFileSystem.LifecyclePolicyProperty = {
transitionToArchive: 'transitionToArchive',
transitionToIa: 'transitionToIa',
transitionToPrimaryStorageClass: 'transitionToPrimaryStorageClass',
};
Properties
| Name | Type | Description |
|---|---|---|
| transition | string | The number of days after files were last accessed in primary storage (the Standard storage class) at which to move them to Archive storage. |
| transition | string | The number of days after files were last accessed in primary storage (the Standard storage class) at which to move them to Infrequent Access (IA) storage. |
| transition | string | Whether to move files back to primary (Standard) storage after they are accessed in IA or Archive storage. |
transitionToArchive?
Type:
string
(optional)
The number of days after files were last accessed in primary storage (the Standard storage class) at which to move them to Archive storage.
Metadata operations such as listing the contents of a directory don't count as file access events.
transitionToIa?
Type:
string
(optional)
The number of days after files were last accessed in primary storage (the Standard storage class) at which to move them to Infrequent Access (IA) storage.
Metadata operations such as listing the contents of a directory don't count as file access events.
transitionToPrimaryStorageClass?
Type:
string
(optional)
Whether to move files back to primary (Standard) storage after they are accessed in IA or Archive storage.
Metadata operations such as listing the contents of a directory don't count as file access events.

.NET
Go
Java
Python
TypeScript