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();
 
  • Method Details

    • getCopyStrategy

      @Stability(Stable) @NotNull String getCopyStrategy()
      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.
    • getSnapshotArn

      @Stability(Stable) @NotNull String getSnapshotArn()
      Specifies the snapshot to use when creating an OpenZFS volume from a snapshot.
    • builder

      @Stability(Stable) static CfnVolume.OriginSnapshotProperty.Builder builder()
      Returns:
      a CfnVolume.OriginSnapshotProperty.Builder of CfnVolume.OriginSnapshotProperty