sailfork / t3code-github / .repos/ alchemy-effect/ packages/ aws/ src/ CodeBuild/ StopBuildBatch.ts

import type * as SVC from "@distilled.cloud/aws/codebuild";
import * as Binding from "alchemy/Binding";
import type * as Effect from "effect/Effect";
import type { Project } from "./Project.ts";

/**
 * Runtime binding for `codebuild:StopBuildBatch` — stops an in-progress
 * batch build of the bound project by batch id.
 * ### Batch Builds
 * **Example:** Stop a Batch Build
 * ```typescript
 * const stopBuildBatch = yield* AWS.CodeBuild.StopBuildBatch(project);
 *
 * yield* stopBuildBatch({ id: batchId });
 * ```
 *
 * @binding
 */
export interface StopBuildBatch extends Binding.Service<
  StopBuildBatch,
  "AWS.CodeBuild.StopBuildBatch",
  <P extends Project>(
    project: P,
  ) => Effect.Effect<
    (
      request: SVC.StopBuildBatchInput,
    ) => Effect.Effect<SVC.StopBuildBatchOutput, SVC.StopBuildBatchError>
  >
> {}
export const StopBuildBatch = Binding.Service<StopBuildBatch>("AWS.CodeBuild.StopBuildBatch");