@Generated(value="jsii-pacmak/1.58.0 (build f8ba112)", date="2022-05-11T19:24:29.783Z") @Stability(value=Experimental) public enum LifecyclePolicy extends Enum<LifecyclePolicy>
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();
http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-efs-filesystem.html#cfn-elasticfilesystem-filesystem-lifecyclepolicies| Enum Constant and Description |
|---|
AFTER_14_DAYS
(experimental) After 14 days of not being accessed.
|
AFTER_30_DAYS
(experimental) After 30 days of not being accessed.
|
AFTER_60_DAYS
(experimental) After 60 days of not being accessed.
|
AFTER_7_DAYS
(experimental) After 7 days of not being accessed.
|
AFTER_90_DAYS
(experimental) After 90 days of not being accessed.
|
| Modifier and Type | Method and Description |
|---|---|
static LifecyclePolicy |
valueOf(String name)
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.
|
@Stability(value=Experimental) public static final LifecyclePolicy AFTER_7_DAYS
@Stability(value=Experimental) public static final LifecyclePolicy AFTER_14_DAYS
@Stability(value=Experimental) public static final LifecyclePolicy AFTER_30_DAYS
@Stability(value=Experimental) public static final LifecyclePolicy AFTER_60_DAYS
@Stability(value=Experimental) public static final LifecyclePolicy AFTER_90_DAYS
public static LifecyclePolicy[] values()
for (LifecyclePolicy c : LifecyclePolicy.values()) System.out.println(c);
public static LifecyclePolicy valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullCopyright © 2022. All rights reserved.