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

main
ts 33 lines 1.06 KB
Raw
1 import type * as SVC from "@distilled.cloud/aws/codebuild";
2 import * as Binding from "alchemy/Binding";
3 import type * as Effect from "effect/Effect";
4 import type { Project } from "./Project.ts";
5
6 /**
7 * Runtime binding for `codebuild:ListBuildsForProject` — lists the bound
8 * project's build ids, newest first. Page with `nextToken`; resolve ids to
9 * statuses with {@link BatchGetBuilds}.
10 * ### Listing Builds
11 * **Example:** List Recent Builds
12 * ```typescript
13 * const listBuilds = yield* AWS.CodeBuild.ListBuildsForProject(project);
14 *
15 * const { ids } = yield* listBuilds();
16 * ```
17 *
18 * @binding
19 */
20 export interface ListBuildsForProject extends Binding.Service<
21 ListBuildsForProject,
22 "AWS.CodeBuild.ListBuildsForProject",
23 <P extends Project>(
24 project: P,
25 ) => Effect.Effect<
26 (
27 request?: Omit<SVC.ListBuildsForProjectInput, "projectName">,
28 ) => Effect.Effect<SVC.ListBuildsForProjectOutput, SVC.ListBuildsForProjectError>
29 >
30 > {}
31 export const ListBuildsForProject = Binding.Service<ListBuildsForProject>(
32 "AWS.CodeBuild.ListBuildsForProject",
33 );