Interface CfnFileSystem.LifecyclePolicyProperty

All Superinterfaces:
software.amazon.jsii.JsiiSerializable
All Known Implementing Classes:
CfnFileSystem.LifecyclePolicyProperty.Jsii$Proxy
Enclosing class:
CfnFileSystem

@Stability(Stable) public static interface CfnFileSystem.LifecyclePolicyProperty extends software.amazon.jsii.JsiiSerializable
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 software.amazon.awscdk.services.efs.*;
 LifecyclePolicyProperty lifecyclePolicyProperty = LifecyclePolicyProperty.builder()
         .transitionToIa("transitionToIa")
         .transitionToPrimaryStorageClass("transitionToPrimaryStorageClass")
         .build();
 
  • Method Details

    • getTransitionToIa

      @Stability(Stable) @Nullable default String getTransitionToIa()
      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.

    • getTransitionToPrimaryStorageClass

      @Stability(Stable) @Nullable default String getTransitionToPrimaryStorageClass()
      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.

    • builder

      @Stability(Stable) static CfnFileSystem.LifecyclePolicyProperty.Builder builder()
      Returns:
      a CfnFileSystem.LifecyclePolicyProperty.Builder of CfnFileSystem.LifecyclePolicyProperty