1import type * as TSW from "@distilled.cloud/aws/timestream-write";
2import type * as Effect from "effect/Effect";
3import * as Binding from "../../Binding.ts";
4
5export interface ListBatchLoadTasksRequest
6 extends TSW.ListBatchLoadTasksRequest {}
7
8/**
9 * Runtime binding for `timestream-write:ListBatchLoadTasks` — enumerate the
10 * account's bulk imports, optionally filtered by status.
11 *
12 * Account-level binding invoked with no resource argument.
13 *
14 * Provide `Timestream.ListBatchLoadTasksHttp` on the Function to implement
15 * the binding.
16 *
17 * ### Batch Loading
18 * **Example:** List in-progress imports
19 * ```typescript
20 * // init — account-level binding, no resource argument
21 * const listBatchLoadTasks = yield* Timestream.ListBatchLoadTasks();
22 *
23 * // runtime
24 * const tasks = yield* listBatchLoadTasks({ TaskStatus: "IN_PROGRESS" });
25 * // tasks.BatchLoadTasks lists each task's TaskId and status
26 * ```
27 *
28 * @binding
29 */
30export interface ListBatchLoadTasks extends Binding.Service<
31 ListBatchLoadTasks,
32 "AWS.Timestream.ListBatchLoadTasks",
33 () => Effect.Effect<
34 (
35 request: ListBatchLoadTasksRequest,
36 ) => Effect.Effect<
37 TSW.ListBatchLoadTasksResponse,
38 TSW.ListBatchLoadTasksError | TSW.DescribeEndpointsError
39 >
40 >
41> {}
42
43export const ListBatchLoadTasks = Binding.Service<ListBatchLoadTasks>(
44 "AWS.Timestream.ListBatchLoadTasks",
45);