@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 43 lines 1.46 KB
Raw
1 import type * as controltower from "@distilled.cloud/aws/controltower";
2 import * as Binding from "alchemy/Binding";
3 import type * as Effect from "effect/Effect";
4
5 /**
6 * Runtime binding for `controltower:ListControlOperations`.
7 *
8 * An account-level operation that enumerates recent control operations
9 * (enables, disables, updates, and resets), optionally filtered by status,
10 * control, or target. Useful for governance dashboards that surface
11 * in-flight or failed guardrail deployments. Provide the implementation
12 * with `Effect.provide(AWS.ControlTower.ListControlOperationsHttp)`.
13 * ### Polling Asynchronous Operations
14 * **Example:** List Failed Control Operations
15 * ```typescript
16 * // init — account-level binding takes no resource
17 * const listControlOperations = yield* AWS.ControlTower.ListControlOperations();
18 *
19 * // runtime
20 * const result = yield* listControlOperations({
21 * filter: { statuses: ["FAILED"] },
22 * });
23 * console.log(result.controlOperations.length);
24 * ```
25 *
26 * @binding
27 */
28 export interface ListControlOperations extends Binding.Service<
29 ListControlOperations,
30 "AWS.ControlTower.ListControlOperations",
31 () => Effect.Effect<
32 (
33 request?: controltower.ListControlOperationsInput,
34 ) => Effect.Effect<
35 controltower.ListControlOperationsOutput,
36 controltower.ListControlOperationsError
37 >
38 >
39 > {}
40
41 export const ListControlOperations = Binding.Service<ListControlOperations>(
42 "AWS.ControlTower.ListControlOperations",
43 );