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

main
ts 31 lines 1.02 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: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 */
20 export 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 > {}
31 export const RetryBuildBatch = Binding.Service<RetryBuildBatch>("AWS.CodeBuild.RetryBuildBatch");