Skip to content

GetDataSourceRun

Source: src/AWS/DataZone/GetDataSourceRun.ts

Runtime binding for datazone:GetDataSourceRun.

Reads the status of a data source run in the bound domain. The domain id is injected from the binding. Provide the implementation with Effect.provide(AWS.DataZone.GetDataSourceRunHttp).

// init — bind the operation to the domain
const getDataSourceRun = yield* AWS.DataZone.GetDataSourceRun(domain);
// runtime
const run = yield* getDataSourceRun({ identifier: runId });
if (run.status === "FAILED") { yield* Effect.logError(run.errorMessage); }