@devries-cameron20 / t3code Mirror · read-only
Fork 0

The best way to control Claude Code, Codex and more from any computer or phone

Mirrored from https://github.com/Camo67/t3code.git

Synced Nov 21, 04:45 UTC

main
ts 46 lines 1.52 KB
Raw
1 import type * as TSW from "@distilled.cloud/aws/timestream-write";
2 import * as Binding from "alchemy/Binding";
3 import type * as Effect from "effect/Effect";
4
5 export interface DescribeBatchLoadTaskRequest extends TSW.DescribeBatchLoadTaskRequest {}
6
7 /**
8 * Runtime binding for `timestream-write:DescribeBatchLoadTask` — poll a bulk
9 * import started by {@link CreateBatchLoadTask} for its status and progress
10 * report.
11 *
12 * Batch-load task reads are keyed by `TaskId` and authorized account-wide, so
13 * this is an account-level binding invoked with no resource argument.
14 *
15 * Provide `Timestream.DescribeBatchLoadTaskHttp` on the Function to implement
16 * the binding.
17 *
18 * ### Batch Loading
19 * **Example:** Poll an import until it finishes
20 * ```typescript
21 * // init — account-level binding, no resource argument
22 * const describeBatchLoadTask = yield* Timestream.DescribeBatchLoadTask();
23 *
24 * // runtime
25 * const described = yield* describeBatchLoadTask({ TaskId: task.TaskId });
26 * // described.BatchLoadTaskDescription?.TaskStatus === "SUCCEEDED"
27 * ```
28 *
29 * @binding
30 */
31 export interface DescribeBatchLoadTask extends Binding.Service<
32 DescribeBatchLoadTask,
33 "AWS.Timestream.DescribeBatchLoadTask",
34 () => Effect.Effect<
35 (
36 request: DescribeBatchLoadTaskRequest,
37 ) => Effect.Effect<
38 TSW.DescribeBatchLoadTaskResponse,
39 TSW.DescribeBatchLoadTaskError | TSW.DescribeEndpointsError
40 >
41 >
42 > {}
43
44 export const DescribeBatchLoadTask = Binding.Service<DescribeBatchLoadTask>(
45 "AWS.Timestream.DescribeBatchLoadTask",
46 );