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

main
ts 36 lines 1.18 KB
Raw
1 import type * as emrc from "@distilled.cloud/aws/emr-containers";
2 import * as Binding from "alchemy/Binding";
3 import type * as Effect from "effect/Effect";
4
5 /**
6 * Runtime binding for `emr-containers:ListJobTemplates`.
7 *
8 * Enumerates the account's EMR on EKS job templates, optionally filtered by
9 * creation time. Account-level — no resource argument. Provide the
10 * implementation with
11 * `Effect.provide(AWS.EMRContainers.ListJobTemplatesHttp)`.
12 * ### Job Templates
13 * **Example:** List All Templates
14 * ```typescript
15 * // init — account-level binding, no resource argument
16 * const listJobTemplates = yield* AWS.EMRContainers.ListJobTemplates();
17 *
18 * // runtime
19 * const { templates } = yield* listJobTemplates();
20 * yield* Effect.log(`${templates?.length ?? 0} job templates`);
21 * ```
22 *
23 * @binding
24 */
25 export interface ListJobTemplates extends Binding.Service<
26 ListJobTemplates,
27 "AWS.EMRContainers.ListJobTemplates",
28 () => Effect.Effect<
29 (
30 request?: emrc.ListJobTemplatesRequest,
31 ) => Effect.Effect<emrc.ListJobTemplatesResponse, emrc.ListJobTemplatesError>
32 >
33 > {}
34 export const ListJobTemplates = Binding.Service<ListJobTemplates>(
35 "AWS.EMRContainers.ListJobTemplates",
36 );