1import type * as SVC from "@distilled.cloud/aws/codebuild";
2import type * as Effect from "effect/Effect";
3import * as Binding from "../../Binding.ts";
4import type { Project } from "./Project.ts";
5
6/**
7 * Runtime binding for `codebuild:BatchGetCommandExecutions` — reads the
8 * status and output of sandbox command executions of the bound project.
9 * ### Sandboxes
10 * **Example:** Poll a Command Execution
11 * ```typescript
12 * const batchGetCommandExecutions = yield* AWS.CodeBuild.BatchGetCommandExecutions(project);
13 *
14 * const { commandExecutions } = yield* batchGetCommandExecutions({
15 * sandboxId,
16 * commandExecutionIds: [commandId],
17 * });
18 * ```
19 *
20 * @binding
21 */
22export interface BatchGetCommandExecutions extends Binding.Service<
23 BatchGetCommandExecutions,
24 "AWS.CodeBuild.BatchGetCommandExecutions",
25 <P extends Project>(
26 project: P,
27 ) => Effect.Effect<
28 (
29 request: SVC.BatchGetCommandExecutionsInput,
30 ) => Effect.Effect<
31 SVC.BatchGetCommandExecutionsOutput,
32 SVC.BatchGetCommandExecutionsError
33 >
34 >
35> {}
36export const BatchGetCommandExecutions =
37 Binding.Service<BatchGetCommandExecutions>(
38 "AWS.CodeBuild.BatchGetCommandExecutions",
39 );