Skip to content

Open-source Grok Bot alternative for named AI teammates. Local-first desktop, web, and mobile clients with per-bot tools, instructions, and memory. Independent fork of T3 Code.

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

/**
 * Runtime binding for `codedeploy:ListDeploymentTargets` — lists the target
 * ids of a deployment (optionally filtered by target status).
 * @binding
 * @section Observing Deployment Targets
 * @example List Failed Targets
 * ```typescript
 * const listDeploymentTargets =
 *   yield* AWS.CodeDeploy.ListDeploymentTargets(group);
 *
 * const { targetIds } = yield* listDeploymentTargets({
 *   deploymentId,
 *   targetFilters: { TargetStatus: ["Failed"] },
 * });
 * ```
 */
export interface ListDeploymentTargets extends Binding.Service<
  ListDeploymentTargets,
  "AWS.CodeDeploy.ListDeploymentTargets",
  <G extends DeploymentGroup>(
    group: G,
  ) => Effect.Effect<
    (
      request: SVC.ListDeploymentTargetsInput,
    ) => Effect.Effect<
      SVC.ListDeploymentTargetsOutput,
      SVC.ListDeploymentTargetsError
    >
  >
> {}
export const ListDeploymentTargets = Binding.Service<ListDeploymentTargets>(
  "AWS.CodeDeploy.ListDeploymentTargets",
);