@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 39 lines 1.49 KB
Raw
1 import type * as bdar from "@distilled.cloud/aws/bedrock-data-automation-runtime";
2 import * as Binding from "alchemy/Binding";
3 import type * as Effect from "effect/Effect";
4
5 /**
6 * Runtime binding for the `GetDataAutomationStatus` operation (IAM action
7 * `bedrock:GetDataAutomationStatus` on `*` — invocation ARNs are minted at
8 * runtime) — poll the status of an asynchronous Bedrock Data Automation job
9 * from a deployed Function.
10 *
11 * Provide the implementation with
12 * `Effect.provide(AWS.BedrockDataAutomation.GetDataAutomationStatusHttp)`.
13 * ### Polling Job Status
14 * **Example:** Check An Async Job's Status
15 * ```typescript
16 * // deploy time — account-level binding
17 * const getStatus = yield* AWS.BedrockDataAutomation.GetDataAutomationStatus();
18 *
19 * // runtime — poll the invocation returned by InvokeDataAutomationAsync
20 * const { status, outputConfiguration } = yield* getStatus({ invocationArn });
21 * if (status === "Success") {
22 * yield* Effect.log(`results at ${outputConfiguration?.s3Uri}`);
23 * }
24 * ```
25 *
26 * @binding
27 */
28 export interface GetDataAutomationStatus extends Binding.Service<
29 GetDataAutomationStatus,
30 "AWS.BedrockDataAutomation.GetDataAutomationStatus",
31 () => Effect.Effect<
32 (
33 request: bdar.GetDataAutomationStatusRequest,
34 ) => Effect.Effect<bdar.GetDataAutomationStatusResponse, bdar.GetDataAutomationStatusError>
35 >
36 > {}
37 export const GetDataAutomationStatus = Binding.Service<GetDataAutomationStatus>(
38 "AWS.BedrockDataAutomation.GetDataAutomationStatus",
39 );