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).
Dashboard Snapshots
Section titled “Dashboard Snapshots”// init — bind the operation to the dashboardconst describeSnapshotJob = yield* AWS.QuickSight.DescribeDashboardSnapshotJob(dashboard);
// runtimeconst job = yield* describeSnapshotJob({ SnapshotJobId: jobId }).pipe( Effect.repeat({ schedule: Schedule.spaced("5 seconds"), until: (j) => j.JobStatus === "COMPLETED" || j.JobStatus === "FAILED", times: 24, }),);