aws-cdk-lib.aws_efs.CfnFileSystem.LifecyclePolicyProperty

interface LifecyclePolicyProperty

LanguageType name
.NETAmazon.CDK.AWS.EFS.CfnFileSystem.LifecyclePolicyProperty
Gogithub.com/aws/aws-cdk-go/awscdk/v2/awsefs#CfnFileSystem_LifecyclePolicyProperty
Javasoftware.amazon.awscdk.services.efs.CfnFileSystem.LifecyclePolicyProperty
Pythonaws_cdk.aws_efs.CfnFileSystem.LifecyclePolicyProperty
TypeScript aws-cdk-lib » aws_efs » CfnFileSystem » LifecyclePolicyProperty

Describes a policy used by EFS lifecycle management and EFS Intelligent-Tiering that specifies when to transition files into and out of the file system's Infrequent Access (IA) storage class.

For more information, see EFS Intelligent‐Tiering and EFS Lifecycle Management .

  • Each LifecyclePolicy object can have only a single transition. This means that in a request body, LifecyclePolicies must be structured as an array of LifecyclePolicy objects, one object for each transition, TransitionToIA , TransitionToPrimaryStorageClass .
  • See the AWS::EFS::FileSystem examples for the correct LifecyclePolicy structure. 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 = {
  transitionToIa: 'transitionToIa',
  transitionToPrimaryStorageClass: 'transitionToPrimaryStorageClass',
};

Properties

NameTypeDescription
transitionToIa?stringDescribes the period of time that a file is not accessed, after which it transitions to IA storage.
transitionToPrimaryStorageClass?stringDescribes when to transition a file from IA storage to primary storage.

transitionToIa?

Type: string (optional)

Describes the period of time that a file is not accessed, after which it transitions to IA storage.

Metadata operations such as listing the contents of a directory don't count as file access events.


transitionToPrimaryStorageClass?

Type: string (optional)

Describes when to transition a file from IA storage to primary storage.

Metadata operations such as listing the contents of a directory don't count as file access events.