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.84.0 (build 5404dcf)", date="2023-06-19T16:30:40.139Z") @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.

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)
         .build();
 

See Also:
  • Enum Constant Details

    • 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.
  • 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