Skip to content

DescribeBatchLoadTask

Source: src/AWS/Timestream/DescribeBatchLoadTask.ts

Runtime binding for timestream-write:DescribeBatchLoadTask — poll a bulk import started by CreateBatchLoadTask for its status and progress report.

Batch-load task reads are keyed by TaskId and authorized account-wide, so this is an account-level binding invoked with no resource argument.

Provide Timestream.DescribeBatchLoadTaskHttp on the Function to implement the binding.

// init — account-level binding, no resource argument
const describeBatchLoadTask = yield* Timestream.DescribeBatchLoadTask();
// runtime
const described = yield* describeBatchLoadTask({ TaskId: task.TaskId });
// described.BatchLoadTaskDescription?.TaskStatus === "SUCCEEDED"