sailfork / t3code-github / .repos/ alchemy-effect/ packages/ aws/ src/ CodeDeploy/ BatchGetDeployments.ts

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

/**
 * Runtime binding for `codedeploy:BatchGetDeployments` — reads up to 25
 * deployments in one call. CodeDeploy authorizes the call against the
 * deployment group the deployments belong to.
 * ### Observing Deployments
 * **Example:** Read Several Deployments
 * ```typescript
 * const batchGetDeployments = yield* AWS.CodeDeploy.BatchGetDeployments(group);
 *
 * const { deploymentsInfo } = yield* batchGetDeployments({
 *   deploymentIds: ["d-ABCDEF123", "d-GHIJKL456"],
 * });
 * ```
 *
 * @binding
 */
export interface BatchGetDeployments extends Binding.Service<
  BatchGetDeployments,
  "AWS.CodeDeploy.BatchGetDeployments",
  <G extends DeploymentGroup>(
    group: G,
  ) => Effect.Effect<
    (
      request: SVC.BatchGetDeploymentsInput,
    ) => Effect.Effect<SVC.BatchGetDeploymentsOutput, SVC.BatchGetDeploymentsError>
  >
> {}
export const BatchGetDeployments = Binding.Service<BatchGetDeployments>(
  "AWS.CodeDeploy.BatchGetDeployments",
);