Skip to content
TypeScript
1.1 KB
Raw Blame
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:ListBuildBatchesForProject` — lists the
 * bound project's batch build ids, optionally filtered by status.
 * ### Batch Builds
 * **Example:** List Batch Builds
 * ```typescript
 * const listBuildBatches = yield* AWS.CodeBuild.ListBuildBatchesForProject(project);
 *
 * const { ids } = yield* listBuildBatches();
 * ```
 *
 * @binding
 */
export interface ListBuildBatchesForProject extends Binding.Service<
  ListBuildBatchesForProject,
  "AWS.CodeBuild.ListBuildBatchesForProject",
  <P extends Project>(
    project: P,
  ) => Effect.Effect<
    (
      request?: Omit<SVC.ListBuildBatchesForProjectInput, "projectName">,
    ) => Effect.Effect<SVC.ListBuildBatchesForProjectOutput, SVC.ListBuildBatchesForProjectError>
  >
> {}
export const ListBuildBatchesForProject = Binding.Service<ListBuildBatchesForProject>(
  "AWS.CodeBuild.ListBuildBatchesForProject",
);