Interface CfnVolume.RetentionPeriodProperty
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
CfnVolume.RetentionPeriodProperty.Jsii$Proxy
- Enclosing class:
CfnVolume
@Stability(Stable)
public static interface CfnVolume.RetentionPeriodProperty
extends software.amazon.jsii.JsiiSerializable
Specifies the retention period of an FSx for ONTAP SnapLock volume.
After it is set, it can't be changed. Files can't be deleted or modified during the retention period.
For more information, see Working with the retention period in SnapLock .
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.fsx.*; RetentionPeriodProperty retentionPeriodProperty = RetentionPeriodProperty.builder() .type("type") // the properties below are optional .value(123) .build();
- See Also:
-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic final class
A builder forCfnVolume.RetentionPeriodProperty
static final class
An implementation forCfnVolume.RetentionPeriodProperty
-
Method Summary
Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getType
Defines the type of time for the retention period of an FSx for ONTAP SnapLock volume.Set it to one of the valid types. If you set it to
INFINITE
, the files are retained forever. If you set it toUNSPECIFIED
, the files are retained until you set an explicit retention period.- See Also:
-
getValue
Defines the amount of time for the retention period of an FSx for ONTAP SnapLock volume.You can't set a value for
INFINITE
orUNSPECIFIED
. For all other options, the following ranges are valid:Seconds
: 0 - 65,535Minutes
: 0 - 65,535Hours
: 0 - 24Days
: 0 - 365Months
: 0 - 12Years
: 0 - 100
- See Also:
-
builder
-