Enum LifecyclePolicy
EFS Lifecycle Policy, if a file is not accessed for given days, it will move to EFS Infrequent Access or Archive storage.
Namespace: Amazon.CDK.AWS.EFS
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public enum LifecyclePolicy
Syntax (vb)
Public Enum LifecyclePolicy
Remarks
ExampleMetadata: infused
Examples
var fileSystem = new FileSystem(this, "MyEfsFileSystem", new FileSystemProps {
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
});
Synopsis
Fields
| AFTER_14_DAYS | After 14 days of not being accessed. |
| AFTER_180_DAYS | After 180 days of not being accessed. |
| AFTER_1_DAY | After 1 day of not being accessed. |
| AFTER_270_DAYS | After 270 days of not being accessed. |
| AFTER_30_DAYS | After 30 days of not being accessed. |
| AFTER_365_DAYS | After 365 days of not being accessed. |
| AFTER_60_DAYS | After 60 days of not being accessed. |
| AFTER_7_DAYS | After 7 days of not being accessed. |
| AFTER_90_DAYS | After 90 days of not being accessed. |
Fields
| Name | Description |
|---|---|
| AFTER_14_DAYS | After 14 days of not being accessed. |
| AFTER_180_DAYS | After 180 days of not being accessed. |
| AFTER_1_DAY | After 1 day of not being accessed. |
| AFTER_270_DAYS | After 270 days of not being accessed. |
| AFTER_30_DAYS | After 30 days of not being accessed. |
| AFTER_365_DAYS | After 365 days of not being accessed. |
| AFTER_60_DAYS | After 60 days of not being accessed. |
| AFTER_7_DAYS | After 7 days of not being accessed. |
| AFTER_90_DAYS | After 90 days of not being accessed. |