| 1 | import type * as SVC from "@distilled.cloud/aws/codebuild"; |
| 2 | import type * as Effect from "effect/Effect"; |
| 3 | import * as Binding from "../../Binding.ts"; |
| 4 | import type { Project } from "./Project.ts"; |
| 5 | |
| 6 | /** |
| 7 | * Runtime binding for `codebuild:DeleteBuildBatch` — deletes a batch build |
| 8 | * of the bound project (and its child builds) by batch id. |
| 9 | * ### Batch Builds |
| 10 | * **Example:** Delete a Batch Build |
| 11 | * ```typescript |
| 12 | * const deleteBuildBatch = yield* AWS.CodeBuild.DeleteBuildBatch(project); |
| 13 | * |
| 14 | * yield* deleteBuildBatch({ id: batchId }); |
| 15 | * ``` |
| 16 | * |
| 17 | * @binding |
| 18 | */ |
| 19 | export interface DeleteBuildBatch extends Binding.Service< |
| 20 | DeleteBuildBatch, |
| 21 | "AWS.CodeBuild.DeleteBuildBatch", |
| 22 | <P extends Project>( |
| 23 | project: P, |
| 24 | ) => Effect.Effect< |
| 25 | ( |
| 26 | request: SVC.DeleteBuildBatchInput, |
| 27 | ) => Effect.Effect<SVC.DeleteBuildBatchOutput, SVC.DeleteBuildBatchError> |
| 28 | > |
| 29 | > {} |
| 30 | export const DeleteBuildBatch = Binding.Service<DeleteBuildBatch>( |
| 31 | "AWS.CodeBuild.DeleteBuildBatch", |
| 32 | ); |