CopySnapshotAndUpdateVolume
Source:
src/AWS/FSx/CopySnapshotAndUpdateVolume.ts
Runtime binding for the CopySnapshotAndUpdateVolume operation (IAM
action fsx:CopySnapshotAndUpdateVolume on *).
Updates an existing FSx for OpenZFS volume from a snapshot on another FSx
for OpenZFS file system (on-demand data replication) — the cross-file-system
counterpart of RestoreVolumeFromSnapshot. Provide the
implementation with Effect.provide(AWS.FSx.CopySnapshotAndUpdateVolumeHttp).
Managing Snapshots at Runtime
Section titled “Managing Snapshots at Runtime”const copySnapshotAndUpdateVolume = yield* AWS.FSx.CopySnapshotAndUpdateVolume();
const response = yield* copySnapshotAndUpdateVolume({ VolumeId: volumeId, SourceSnapshotARN: sourceSnapshot.ResourceARN!, CopyStrategy: "INCREMENTAL_COPY",});yield* Effect.log(`volume ${response.VolumeId} updating`);