Enum 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:
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionAfter 14 days of not being accessed.After 30 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_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.
-
-
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
-