Skip to content

GetSnapshot

Source: src/AWS/RedshiftServerless/GetSnapshot.ts

Runtime binding for the GetSnapshot operation (IAM actions redshift-serverless:GetSnapshot).

Reads one snapshot by name or ARN — e.g. polling a snapshot taken with CreateSnapshot until its status reaches AVAILABLE. Provide the implementation with Effect.provide(AWS.RedshiftServerless.GetSnapshotHttp).

// init — resolve the runtime client
const getSnapshot = yield* AWS.RedshiftServerless.GetSnapshot();
const { snapshot } = yield* getSnapshot({ snapshotName: "pre-migration-1" });
// snapshot?.status -> "CREATING" | "AVAILABLE" | ...