Enum OutOfInfrequentAccessPolicy

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

@Generated(value="jsii-pacmak/1.101.0 (build b95fe5d)", date="2024-07-12T19:34:01.574Z") @Stability(Stable) public enum OutOfInfrequentAccessPolicy extends Enum<OutOfInfrequentAccessPolicy>
EFS Out Of Infrequent Access Policy, if a file is accessed given times, it will move back to primary storage class.

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

  • Method Details

    • values

      public static OutOfInfrequentAccessPolicy[] 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 OutOfInfrequentAccessPolicy 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