The best way to control Claude Code, Codex and more from any computer or phone

main
ts 42 lines 1.29 KB
Raw
1 import type * as mediaconvert from "@distilled.cloud/aws/mediaconvert";
2 import * as Binding from "alchemy/Binding";
3 import type * as Effect from "effect/Effect";
4
5 /**
6 * Runtime binding for `mediaconvert:GetJobsQueryResults` — fetch the results
7 * of an asynchronous jobs query started with {@link StartJobsQuery}.
8 *
9 * The binding takes no arguments and grants
10 * `mediaconvert:GetJobsQueryResults` on `*`. Provide the implementation with
11 * `Effect.provide(AWS.MediaConvert.GetJobsQueryResultsHttp)`.
12 *
13 * ### Tracking Jobs
14 * **Example:** Fetch Query Results
15 * ```typescript
16 * // init
17 * const getJobsQueryResults = yield* AWS.MediaConvert.GetJobsQueryResults();
18 *
19 * // runtime
20 * const results = yield* getJobsQueryResults({ Id: queryId });
21 * if (results.Status === "COMPLETE") {
22 * const jobs = results.Jobs ?? [];
23 * }
24 * ```
25 *
26 * @binding
27 */
28 export interface GetJobsQueryResults extends Binding.Service<
29 GetJobsQueryResults,
30 "AWS.MediaConvert.GetJobsQueryResults",
31 () => Effect.Effect<
32 (
33 request: mediaconvert.GetJobsQueryResultsRequest,
34 ) => Effect.Effect<
35 mediaconvert.GetJobsQueryResultsResponse,
36 mediaconvert.GetJobsQueryResultsError
37 >
38 >
39 > {}
40 export const GetJobsQueryResults = Binding.Service<GetJobsQueryResults>(
41 "AWS.MediaConvert.GetJobsQueryResults",
42 );