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).
Managing Snapshots
Section titled “Managing Snapshots”// init — resolve the runtime clientconst getSnapshot = yield* AWS.RedshiftServerless.GetSnapshot();
const { snapshot } = yield* getSnapshot({ snapshotName: "pre-migration-1" });// snapshot?.status -> "CREATING" | "AVAILABLE" | ...