@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 44 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:GetBaselineOperation`.
7 *
8 * An account-level operation that reads the status of an asynchronous
9 * baseline operation (`ENABLE_BASELINE`, `DISABLE_BASELINE`,
10 * `UPDATE_ENABLED_BASELINE`, `RESET_ENABLED_BASELINE`). Pair it with
11 * {@link ResetEnabledBaseline} to poll a drift-remediation run to
12 * completion. Provide the implementation with
13 * `Effect.provide(AWS.ControlTower.GetBaselineOperationHttp)`.
14 * ### Polling Asynchronous Operations
15 * **Example:** Poll a Baseline Operation
16 * ```typescript
17 * // init — account-level binding takes no resource
18 * const getBaselineOperation = yield* AWS.ControlTower.GetBaselineOperation();
19 *
20 * // runtime
21 * const { baselineOperation } = yield* getBaselineOperation({
22 * operationIdentifier,
23 * });
24 * console.log(baselineOperation.status);
25 * ```
26 *
27 * @binding
28 */
29 export interface GetBaselineOperation extends Binding.Service<
30 GetBaselineOperation,
31 "AWS.ControlTower.GetBaselineOperation",
32 () => Effect.Effect<
33 (
34 request: controltower.GetBaselineOperationInput,
35 ) => Effect.Effect<
36 controltower.GetBaselineOperationOutput,
37 controltower.GetBaselineOperationError
38 >
39 >
40 > {}
41
42 export const GetBaselineOperation = Binding.Service<GetBaselineOperation>(
43 "AWS.ControlTower.GetBaselineOperation",
44 );