Skip to content

CreateSnapshot

Source: src/AWS/FSx/CreateSnapshot.ts

Runtime binding for the CreateSnapshot operation (IAM actions fsx:CreateSnapshot and fsx:TagResource on * — snapshots target OpenZFS volumes whose ARNs are typically runtime values).

Takes a point-in-time snapshot of an FSx for OpenZFS volume — e.g. before applying a batch of writes so they can be rolled back with RestoreVolumeFromSnapshot. Pass a ClientRequestToken to make the call idempotent. Provide the implementation with Effect.provide(AWS.FSx.CreateSnapshotHttp).

const createSnapshot = yield* AWS.FSx.CreateSnapshot();
const response = yield* createSnapshot({
Name: "pre-batch-42",
VolumeId: volumeId,
});
yield* Effect.log(`snapshot ${response.Snapshot?.SnapshotId} started`);