Skip to content

DescribeDashboardSnapshotJob

Source: src/AWS/QuickSight/DescribeDashboardSnapshotJob.ts

Runtime binding for quicksight:DescribeDashboardSnapshotJob.

Reads the status (QUEUED, RUNNING, COMPLETED, FAILED) and configuration of a snapshot job started on the bound Dashboard. AwsAccountId and DashboardId are injected from the binding. Provide the implementation with Effect.provide(AWS.QuickSight.DescribeDashboardSnapshotJobHttp).

// init — bind the operation to the dashboard
const describeSnapshotJob =
yield* AWS.QuickSight.DescribeDashboardSnapshotJob(dashboard);
// runtime
const job = yield* describeSnapshotJob({ SnapshotJobId: jobId }).pipe(
Effect.repeat({
schedule: Schedule.spaced("5 seconds"),
until: (j) => j.JobStatus === "COMPLETED" || j.JobStatus === "FAILED",
times: 24,
}),
);