| 1 | import type * as TSW from "@distilled.cloud/aws/timestream-write"; |
| 2 | import type * as Effect from "effect/Effect"; |
| 3 | import * as Binding from "../../Binding.ts"; |
| 4 | |
| 5 | export interface ResumeBatchLoadTaskRequest |
| 6 | extends TSW.ResumeBatchLoadTaskRequest {} |
| 7 | |
| 8 | /** |
| 9 | * Runtime binding for `timestream-write:ResumeBatchLoadTask` — resume a bulk |
| 10 | * import that Timestream paused (e.g. after transient S3 or throttling |
| 11 | * failures). |
| 12 | * |
| 13 | * Account-level binding invoked with no resource argument; keyed by `TaskId`. |
| 14 | * |
| 15 | * Provide `Timestream.ResumeBatchLoadTaskHttp` on the Function to implement |
| 16 | * the binding. |
| 17 | * |
| 18 | * ### Batch Loading |
| 19 | * **Example:** Resume a paused import |
| 20 | * ```typescript |
| 21 | * // init — account-level binding, no resource argument |
| 22 | * const resumeBatchLoadTask = yield* Timestream.ResumeBatchLoadTask(); |
| 23 | * |
| 24 | * // runtime |
| 25 | * yield* resumeBatchLoadTask({ TaskId: task.TaskId }); |
| 26 | * ``` |
| 27 | * |
| 28 | * @binding |
| 29 | */ |
| 30 | export interface ResumeBatchLoadTask extends Binding.Service< |
| 31 | ResumeBatchLoadTask, |
| 32 | "AWS.Timestream.ResumeBatchLoadTask", |
| 33 | () => Effect.Effect< |
| 34 | ( |
| 35 | request: ResumeBatchLoadTaskRequest, |
| 36 | ) => Effect.Effect< |
| 37 | TSW.ResumeBatchLoadTaskResponse, |
| 38 | TSW.ResumeBatchLoadTaskError | TSW.DescribeEndpointsError |
| 39 | > |
| 40 | > |
| 41 | > {} |
| 42 | |
| 43 | export const ResumeBatchLoadTask = Binding.Service<ResumeBatchLoadTask>( |
| 44 | "AWS.Timestream.ResumeBatchLoadTask", |
| 45 | ); |