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:RetryBuildBatch` — restarts a finished
8 * batch build of the bound project, retrying either all builds or only the
9 * failed ones (`retryType`).
10 * ### Batch Builds
11 * **Example:** Retry Failed Builds in a Batch
12 * ```typescript
13 * const retryBuildBatch = yield* AWS.CodeBuild.RetryBuildBatch(project);
14 *
15 * yield* retryBuildBatch({ id: batchId, retryType: "RETRY_FAILED_BUILDS" });
16 * ```
17 *
18 * @binding
19 */
20export interface RetryBuildBatch extends Binding.Service<
21 RetryBuildBatch,
22 "AWS.CodeBuild.RetryBuildBatch",
23 <P extends Project>(
24 project: P,
25 ) => Effect.Effect<
26 (
27 request: SVC.RetryBuildBatchInput,
28 ) => Effect.Effect<SVC.RetryBuildBatchOutput, SVC.RetryBuildBatchError>
29 >
30> {}
31export const RetryBuildBatch = Binding.Service<RetryBuildBatch>(
32 "AWS.CodeBuild.RetryBuildBatch",
33);