@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 33 lines 1.1 KB
Raw
1 import type * as SVC from "@distilled.cloud/aws/emr";
2 import * as Binding from "alchemy/Binding";
3 import type * as Effect from "effect/Effect";
4 import type { Cluster } from "./Cluster.ts";
5
6 /**
7 * Runtime binding for `elasticmapreduce:ModifyInstanceGroups` — resizes or reconfigures the bound cluster's instance groups (target counts, EC2 configurations, shrink policies).
8 * ### Scaling the Cluster
9 * **Example:** Resize the Core Group
10 * ```typescript
11 * const modifyGroups = yield* AWS.EMR.ModifyInstanceGroups(cluster);
12 *
13 * yield* modifyGroups({
14 * InstanceGroups: [{ InstanceGroupId: coreGroupId, InstanceCount: 3 }],
15 * });
16 * ```
17 *
18 * @binding
19 */
20 export interface ModifyInstanceGroups extends Binding.Service<
21 ModifyInstanceGroups,
22 "AWS.EMR.ModifyInstanceGroups",
23 <C extends Cluster>(
24 cluster: C,
25 ) => Effect.Effect<
26 (
27 request: Omit<SVC.ModifyInstanceGroupsInput, "ClusterId">,
28 ) => Effect.Effect<SVC.ModifyInstanceGroupsResponse, SVC.ModifyInstanceGroupsError>
29 >
30 > {}
31 export const ModifyInstanceGroups = Binding.Service<ModifyInstanceGroups>(
32 "AWS.EMR.ModifyInstanceGroups",
33 );