Skip to content

DescribeIngestion

Source: src/AWS/QuickSight/DescribeIngestion.ts

Runtime binding for quicksight:DescribeIngestion.

Reads the status, row counts, and error info of a SPICE ingestion on the bound DataSet. AwsAccountId and DataSetId are injected from the binding. Provide the implementation with Effect.provide(AWS.QuickSight.DescribeIngestionHttp).

// init — bind the operation to the dataset
const describeIngestion = yield* AWS.QuickSight.DescribeIngestion(dataSet);
// runtime
const { Ingestion } = yield* describeIngestion({
IngestionId: ingestionId,
}).pipe(
Effect.repeat({
schedule: Schedule.spaced("5 seconds"),
until: (r) =>
r.Ingestion?.IngestionStatus === "COMPLETED" ||
r.Ingestion?.IngestionStatus === "FAILED",
times: 24,
}),
);