Interface CfnVolume.SnaplockRetentionPeriodProperty
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
CfnVolume.SnaplockRetentionPeriodProperty.Jsii$Proxy
- Enclosing class:
CfnVolume
@Stability(Stable)
public static interface CfnVolume.SnaplockRetentionPeriodProperty
extends software.amazon.jsii.JsiiSerializable
The configuration to set the retention period of an FSx for ONTAP SnapLock volume.
The retention period includes default, maximum, and minimum settings. 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.*; SnaplockRetentionPeriodProperty snaplockRetentionPeriodProperty = SnaplockRetentionPeriodProperty.builder() .defaultRetention(RetentionPeriodProperty.builder() .type("type") // the properties below are optional .value(123) .build()) .maximumRetention(RetentionPeriodProperty.builder() .type("type") // the properties below are optional .value(123) .build()) .minimumRetention(RetentionPeriodProperty.builder() .type("type") // the properties below are optional .value(123) .build()) .build();
- See Also:
-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic final class
A builder forCfnVolume.SnaplockRetentionPeriodProperty
static final class
An implementation forCfnVolume.SnaplockRetentionPeriodProperty
-
Method Summary
Modifier and TypeMethodDescriptionbuilder()
The retention period assigned to a write once, read many (WORM) file by default if an explicit retention period is not set for an FSx for ONTAP SnapLock volume.The longest retention period that can be assigned to a WORM file on an FSx for ONTAP SnapLock volume.The shortest retention period that can be assigned to a WORM file on an FSx for ONTAP SnapLock volume.Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getDefaultRetention
The retention period assigned to a write once, read many (WORM) file by default if an explicit retention period is not set for an FSx for ONTAP SnapLock volume.The default retention period must be greater than or equal to the minimum retention period and less than or equal to the maximum retention period.
- See Also:
-
getMaximumRetention
The longest retention period that can be assigned to a WORM file on an FSx for ONTAP SnapLock volume.- See Also:
-
getMinimumRetention
The shortest retention period that can be assigned to a WORM file on an FSx for ONTAP SnapLock volume.- See Also:
-
builder
-