Skip to content

UpdateSnapshot

Source: src/AWS/FSx/UpdateSnapshot.ts

Runtime binding for the UpdateSnapshot operation (IAM action fsx:UpdateSnapshot on * — runtime-created snapshots have ARNs unknowable at deploy time).

Renames an OpenZFS volume snapshot — the management half of a runtime snapshot rotation built with CreateSnapshot. A missing snapshot surfaces the typed UpdateSnapshotNotFound (FSx reports it as a wire BadRequest; the distilled patch carves out the typed tag by message). Provide the implementation with Effect.provide(AWS.FSx.UpdateSnapshotHttp).

const updateSnapshot = yield* AWS.FSx.UpdateSnapshot();
yield* updateSnapshot({
SnapshotId: snapshot.SnapshotId!,
Name: "nightly-promoted",
});