RestoreVolumeFromSnapshot
Source:
src/AWS/FSx/RestoreVolumeFromSnapshot.ts
Runtime binding for the RestoreVolumeFromSnapshot operation (IAM action
fsx:RestoreVolumeFromSnapshot on *).
Rolls an FSx for OpenZFS volume back to the state saved by a snapshot —
the undo half of the runtime snapshot pattern built with
CreateSnapshot. Pass Options: ["DELETE_INTERMEDIATE_SNAPSHOTS"]
to roll back past newer snapshots. Provide the implementation with
Effect.provide(AWS.FSx.RestoreVolumeFromSnapshotHttp).
Managing Snapshots at Runtime
Section titled “Managing Snapshots at Runtime”const restoreVolumeFromSnapshot = yield* AWS.FSx.RestoreVolumeFromSnapshot();
const response = yield* restoreVolumeFromSnapshot({ VolumeId: volumeId, SnapshotId: snapshot.SnapshotId!,});yield* Effect.log(`volume ${response.VolumeId} restoring`);