@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 38 lines 1.19 KB
Raw
1 import type * as athena from "@distilled.cloud/aws/athena";
2 import * as Binding from "alchemy/Binding";
3 import type * as Effect from "effect/Effect";
4 import type { WorkGroup } from "./WorkGroup.ts";
5
6 /**
7 * Runtime binding for `athena:StopQueryExecution`.
8 *
9 * Cancels a running query in the bound workgroup. Stopping an already
10 * finished query is a no-op, so the call is safely idempotent. Provide the
11 * implementation with `Effect.provide(AWS.Athena.StopQueryExecutionHttp)`.
12 * ### Cancelling Queries
13 * **Example:** Cancel a Runaway Query
14 * ```typescript
15 * // init — bind the operation to the workgroup
16 * const stopQueryExecution = yield* AWS.Athena.StopQueryExecution(workGroup);
17 *
18 * // runtime
19 * yield* stopQueryExecution({ QueryExecutionId: id });
20 * ```
21 *
22 * @binding
23 */
24 export interface StopQueryExecution extends Binding.Service<
25 StopQueryExecution,
26 "AWS.Athena.StopQueryExecution",
27 (
28 workGroup: WorkGroup,
29 ) => Effect.Effect<
30 (
31 request: athena.StopQueryExecutionInput,
32 ) => Effect.Effect<athena.StopQueryExecutionOutput, athena.StopQueryExecutionError>
33 >
34 > {}
35
36 export const StopQueryExecution = Binding.Service<StopQueryExecution>(
37 "AWS.Athena.StopQueryExecution",
38 );