| 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:StopBuildBatch` — stops an in-progress |
| 8 | * batch build of the bound project by batch id. |
| 9 | * ### Batch Builds |
| 10 | * **Example:** Stop a Batch Build |
| 11 | * ```typescript |
| 12 | * const stopBuildBatch = yield* AWS.CodeBuild.StopBuildBatch(project); |
| 13 | * |
| 14 | * yield* stopBuildBatch({ id: batchId }); |
| 15 | * ``` |
| 16 | * |
| 17 | * @binding |
| 18 | */ |
| 19 | export interface StopBuildBatch extends Binding.Service< |
| 20 | StopBuildBatch, |
| 21 | "AWS.CodeBuild.StopBuildBatch", |
| 22 | <P extends Project>( |
| 23 | project: P, |
| 24 | ) => Effect.Effect< |
| 25 | ( |
| 26 | request: SVC.StopBuildBatchInput, |
| 27 | ) => Effect.Effect<SVC.StopBuildBatchOutput, SVC.StopBuildBatchError> |
| 28 | > |
| 29 | > {} |
| 30 | export const StopBuildBatch = Binding.Service<StopBuildBatch>( |
| 31 | "AWS.CodeBuild.StopBuildBatch", |
| 32 | ); |