Enum LifecyclePolicy
- All Implemented Interfaces:
Serializable
,Comparable<LifecyclePolicy>
,java.lang.constant.Constable
@Generated(value="jsii-pacmak/1.104.0 (build e79254c)",
date="2024-11-22T02:24:01.329Z")
@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:
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionAfter 1 day of not being accessed.After 14 days of not being accessed.After 180 days of not being accessed.After 270 days of not being accessed.After 30 days of not being accessed.After 365 days of not being accessed.After 60 days of not being accessed.After 7 days of not being accessed.After 90 days of not being accessed. -
Method Summary
Modifier and TypeMethodDescriptionstatic LifecyclePolicy
Returns the enum constant of this type with the specified name.static LifecyclePolicy[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
AFTER_1_DAY
After 1 day of not being accessed. -
AFTER_7_DAYS
After 7 days of not being accessed. -
AFTER_14_DAYS
After 14 days of not being accessed. -
AFTER_30_DAYS
After 30 days of not being accessed. -
AFTER_60_DAYS
After 60 days of not being accessed. -
AFTER_90_DAYS
After 90 days of not being accessed. -
AFTER_180_DAYS
After 180 days of not being accessed. -
AFTER_270_DAYS
After 270 days of not being accessed. -
AFTER_365_DAYS
After 365 days of not being accessed.
-
-
Method Details
-
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
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 nameNullPointerException
- if the argument is null
-