Enum LifecyclePolicy

java.lang.Object
java.lang.Enum<LifecyclePolicy>
software.amazon.awscdk.services.efs.LifecyclePolicy
All Implemented Interfaces:
Serializable, Comparable<LifecyclePolicy>, java.lang.constant.Constable

@Generated(value="jsii-pacmak/1.96.0 (build 921e240)", date="2024-04-10T22:22:27.592Z") @Stability(Stable) public enum LifecyclePolicy extends Enum<LifecyclePolicy>
EFS Lifecycle Policy, if a file is not accessed for given days, it will move to EFS Infrequent Access or Archive storage.

Example:

 FileSystem fileSystem = FileSystem.Builder.create(this, "MyEfsFileSystem")
         .vpc(new Vpc(this, "VPC"))
         .lifecyclePolicy(LifecyclePolicy.AFTER_14_DAYS) // files are not transitioned to infrequent access (IA) storage by default
         .performanceMode(PerformanceMode.GENERAL_PURPOSE) // default
         .outOfInfrequentAccessPolicy(OutOfInfrequentAccessPolicy.AFTER_1_ACCESS) // files are not transitioned back from (infrequent access) IA to primary storage by default
         .transitionToArchivePolicy(LifecyclePolicy.AFTER_14_DAYS) // files are not transitioned to Archive by default
         .replicationOverwriteProtection(ReplicationOverwriteProtection.ENABLED)
         .build();
 

See Also:
  • Enum Constant Details

    • AFTER_1_DAY

      @Stability(Stable) public static final LifecyclePolicy AFTER_1_DAY
      After 1 day of not being accessed.
    • AFTER_7_DAYS

      @Stability(Stable) public static final LifecyclePolicy AFTER_7_DAYS
      After 7 days of not being accessed.
    • AFTER_14_DAYS

      @Stability(Stable) public static final LifecyclePolicy AFTER_14_DAYS
      After 14 days of not being accessed.
    • AFTER_30_DAYS

      @Stability(Stable) public static final LifecyclePolicy AFTER_30_DAYS
      After 30 days of not being accessed.
    • AFTER_60_DAYS

      @Stability(Stable) public static final LifecyclePolicy AFTER_60_DAYS
      After 60 days of not being accessed.
    • AFTER_90_DAYS

      @Stability(Stable) public static final LifecyclePolicy AFTER_90_DAYS
      After 90 days of not being accessed.
    • AFTER_180_DAYS

      @Stability(Stable) public static final LifecyclePolicy AFTER_180_DAYS
      After 180 days of not being accessed.
    • AFTER_270_DAYS

      @Stability(Stable) public static final LifecyclePolicy AFTER_270_DAYS
      After 270 days of not being accessed.
    • AFTER_365_DAYS

      @Stability(Stable) public static final LifecyclePolicy AFTER_365_DAYS
      After 365 days of not being accessed.
  • Method Details

    • values

      public static LifecyclePolicy[] values()
      Returns an array containing the constants of this enum type, in the order they are declared.
      Returns:
      an array containing the constants of this enum type, in the order they are declared
    • valueOf

      public static LifecyclePolicy valueOf(String name)
      Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum type has no constant with the specified name
      NullPointerException - if the argument is null