@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.37 KB
Raw
1 import type * as fsx from "@distilled.cloud/aws/fsx";
2 import * as Binding from "alchemy/Binding";
3 import type * as Effect from "effect/Effect";
4
5 /**
6 * Runtime binding for the `CancelDataRepositoryTask` operation (IAM action
7 * `fsx:CancelDataRepositoryTask` on `*` — runtime-created tasks have ARNs
8 * unknowable at deploy time).
9 *
10 * Cancels a `PENDING` or `EXECUTING` Lustre data repository task started
11 * with {@link CreateDataRepositoryTask}. A task that already finished
12 * surfaces the typed `DataRepositoryTaskEnded`. Provide the implementation
13 * with `Effect.provide(AWS.FSx.CancelDataRepositoryTaskHttp)`.
14 * ### Data Repository Tasks
15 * **Example:** Cancel a runaway export
16 * ```typescript
17 * const cancelDataRepositoryTask =
18 * yield* AWS.FSx.CancelDataRepositoryTask();
19 *
20 * yield* cancelDataRepositoryTask({ TaskId: taskId }).pipe(
21 * Effect.catchTag("DataRepositoryTaskEnded", () => Effect.void),
22 * );
23 * ```
24 *
25 * @binding
26 */
27 export interface CancelDataRepositoryTask extends Binding.Service<
28 CancelDataRepositoryTask,
29 "AWS.FSx.CancelDataRepositoryTask",
30 () => Effect.Effect<
31 (
32 request: fsx.CancelDataRepositoryTaskRequest,
33 ) => Effect.Effect<fsx.CancelDataRepositoryTaskResponse, fsx.CancelDataRepositoryTaskError>
34 >
35 > {}
36 export const CancelDataRepositoryTask = Binding.Service<CancelDataRepositoryTask>(
37 "AWS.FSx.CancelDataRepositoryTask",
38 );