CreateSnapshot
Source:
src/AWS/RedshiftServerless/CreateSnapshot.ts
Runtime binding for the CreateSnapshot operation (IAM actions
redshift-serverless:CreateSnapshot +
redshift-serverless:TagResource).
Takes a manual snapshot of the bound Namespace — e.g. a
pre-migration backup function or a scheduled snapshot-rotation job. The
namespace name is injected from the binding. Provide the implementation with
Effect.provide(AWS.RedshiftServerless.CreateSnapshotHttp).
Managing Snapshots
Section titled “Managing Snapshots”// init — resolve the runtime clientconst createSnapshot = yield* AWS.RedshiftServerless.CreateSnapshot(namespace);
// runtimeyield* createSnapshot({ snapshotName: `pre-migration-${runId}`, retentionPeriod: 7,});