Interface CfnVolume.OriginSnapshotProperty
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
CfnVolume.OriginSnapshotProperty.Jsii$Proxy
- Enclosing class:
CfnVolume
@Stability(Stable)
public static interface CfnVolume.OriginSnapshotProperty
extends software.amazon.jsii.JsiiSerializable
The configuration object that specifies the snapshot to use as the origin of the data for the volume.
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.*;
OriginSnapshotProperty originSnapshotProperty = OriginSnapshotProperty.builder()
.copyStrategy("copyStrategy")
.snapshotArn("snapshotArn")
.build();
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classA builder forCfnVolume.OriginSnapshotPropertystatic final classAn implementation forCfnVolume.OriginSnapshotProperty -
Method Summary
Modifier and TypeMethodDescriptionbuilder()Specifies the strategy used when copying data from the snapshot to the new volume.Specifies the snapshot to use when creating an OpenZFS volume from a snapshot.Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getCopyStrategy
Specifies the strategy used when copying data from the snapshot to the new volume.CLONE- The new volume references the data in the origin snapshot. Cloning a snapshot is faster than copying data from the snapshot to a new volume and doesn't consume disk throughput. However, the origin snapshot can't be deleted if there is a volume using its copied data.FULL_COPY- Copies all data from the snapshot to the new volume.
Specify this option to create the volume from a snapshot on another FSx for OpenZFS file system.
The
INCREMENTAL_COPYoption is only for updating an existing volume by using a snapshot from another FSx for OpenZFS file system. For more information, see CopySnapshotAndUpdateVolume .- See Also:
-
getSnapshotArn
Specifies the snapshot to use when creating an OpenZFS volume from a snapshot.- See Also:
-
builder
-