Interface CfnFileSystem.LifecyclePolicyProperty
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
CfnFileSystem.LifecyclePolicyProperty.Jsii$Proxy
- Enclosing class:
CfnFileSystem
@Stability(Stable)
public static interface CfnFileSystem.LifecyclePolicyProperty
extends software.amazon.jsii.JsiiSerializable
Describes a policy used by Lifecycle management that specifies when to transition files into and out of the EFS storage classes.
For more information, see Managing file system storage .
- Each
LifecyclePolicyobject can have only a single transition. This means that in a request body,LifecyclePoliciesmust be structured as an array ofLifecyclePolicyobjects, one object for each transition,TransitionToIA,TransitionToArchive,TransitionToPrimaryStorageClass.- See the AWS::EFS::FileSystem examples for the correct
LifecyclePolicystructure. Do not use the syntax shown on this page.
Example:
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.efs.*;
LifecyclePolicyProperty lifecyclePolicyProperty = LifecyclePolicyProperty.builder()
.transitionToArchive("transitionToArchive")
.transitionToIa("transitionToIa")
.transitionToPrimaryStorageClass("transitionToPrimaryStorageClass")
.build();
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classA builder forCfnFileSystem.LifecyclePolicyPropertystatic final classAn implementation forCfnFileSystem.LifecyclePolicyProperty -
Method Summary
Modifier and TypeMethodDescriptionbuilder()default StringThe number of days after files were last accessed in primary storage (the Standard storage class) at which to move them to Archive storage.default StringThe number of days after files were last accessed in primary storage (the Standard storage class) at which to move them to Infrequent Access (IA) storage.default StringWhether to move files back to primary (Standard) storage after they are accessed in IA or Archive storage.Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getTransitionToArchive
The number of days after files were last accessed in primary storage (the Standard storage class) at which to move them to Archive storage.Metadata operations such as listing the contents of a directory don't count as file access events.
- See Also:
-
getTransitionToIa
The number of days after files were last accessed in primary storage (the Standard storage class) at which to move them to Infrequent Access (IA) storage.Metadata operations such as listing the contents of a directory don't count as file access events.
- See Also:
-
getTransitionToPrimaryStorageClass
Whether to move files back to primary (Standard) storage after they are accessed in IA or Archive storage.Metadata operations such as listing the contents of a directory don't count as file access events.
- See Also:
-
builder
-