1import type * as SVC from "@distilled.cloud/aws/codebuild";
2import type * as Effect from "effect/Effect";
3import * as Binding from "../../Binding.ts";
4import 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 */
20export 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<
29 SVC.ListBuildsForProjectOutput,
30 SVC.ListBuildsForProjectError
31 >
32 >
33> {}
34export const ListBuildsForProject = Binding.Service<ListBuildsForProject>(
35 "AWS.CodeBuild.ListBuildsForProject",
36);