sailfork / t3code-github / .repos/ alchemy-effect/ packages/ aws/ src/ CodeDeploy/ BatchGetDeploymentTargets.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:BatchGetDeploymentTargets` — reads up to
 * 25 deployment targets of a deployment in one call.
 * ### Observing Deployment Targets
 * **Example:** Read Several Targets
 * ```typescript
 * const batchGetDeploymentTargets =
 *   yield* AWS.CodeDeploy.BatchGetDeploymentTargets(group);
 *
 * const { deploymentTargets } = yield* batchGetDeploymentTargets({
 *   deploymentId,
 *   targetIds,
 * });
 * ```
 *
 * @binding
 */
export interface BatchGetDeploymentTargets extends Binding.Service<
  BatchGetDeploymentTargets,
  "AWS.CodeDeploy.BatchGetDeploymentTargets",
  <G extends DeploymentGroup>(
    group: G,
  ) => Effect.Effect<
    (
      request: SVC.BatchGetDeploymentTargetsInput,
    ) => Effect.Effect<SVC.BatchGetDeploymentTargetsOutput, SVC.BatchGetDeploymentTargetsError>
  >
> {}
export const BatchGetDeploymentTargets = Binding.Service<BatchGetDeploymentTargets>(
  "AWS.CodeDeploy.BatchGetDeploymentTargets",
);