1import type * as SVC from "@distilled.cloud/aws/codedeploy";
2import type * as Effect from "effect/Effect";
3import * as Binding from "../../Binding.ts";
4import type { DeploymentGroup } from "./DeploymentGroup.ts";
5
6/**
7 * Runtime binding for `codedeploy:BatchGetDeployments` — reads up to 25
8 * deployments in one call. CodeDeploy authorizes the call against the
9 * deployment group the deployments belong to.
10 * ### Observing Deployments
11 * **Example:** Read Several Deployments
12 * ```typescript
13 * const batchGetDeployments = yield* AWS.CodeDeploy.BatchGetDeployments(group);
14 *
15 * const { deploymentsInfo } = yield* batchGetDeployments({
16 * deploymentIds: ["d-ABCDEF123", "d-GHIJKL456"],
17 * });
18 * ```
19 *
20 * @binding
21 */
22export interface BatchGetDeployments extends Binding.Service<
23 BatchGetDeployments,
24 "AWS.CodeDeploy.BatchGetDeployments",
25 <G extends DeploymentGroup>(
26 group: G,
27 ) => Effect.Effect<
28 (
29 request: SVC.BatchGetDeploymentsInput,
30 ) => Effect.Effect<
31 SVC.BatchGetDeploymentsOutput,
32 SVC.BatchGetDeploymentsError
33 >
34 >
35> {}
36export const BatchGetDeployments = Binding.Service<BatchGetDeployments>(
37 "AWS.CodeDeploy.BatchGetDeployments",
38);