sailfork / t3code-github / .repos/ alchemy-effect/ packages/ aws/ src/ CodeBuild/ BatchGetCommandExecutions.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:BatchGetCommandExecutions` — reads the
 * status and output of sandbox command executions of the bound project.
 * ### Sandboxes
 * **Example:** Poll a Command Execution
 * ```typescript
 * const batchGetCommandExecutions = yield* AWS.CodeBuild.BatchGetCommandExecutions(project);
 *
 * const { commandExecutions } = yield* batchGetCommandExecutions({
 *   sandboxId,
 *   commandExecutionIds: [commandId],
 * });
 * ```
 *
 * @binding
 */
export interface BatchGetCommandExecutions extends Binding.Service<
  BatchGetCommandExecutions,
  "AWS.CodeBuild.BatchGetCommandExecutions",
  <P extends Project>(
    project: P,
  ) => Effect.Effect<
    (
      request: SVC.BatchGetCommandExecutionsInput,
    ) => Effect.Effect<SVC.BatchGetCommandExecutionsOutput, SVC.BatchGetCommandExecutionsError>
  >
> {}
export const BatchGetCommandExecutions = Binding.Service<BatchGetCommandExecutions>(
  "AWS.CodeBuild.BatchGetCommandExecutions",
);