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"; export interface ListDeploymentsRequest extends Omit< SVC.ListDeploymentsInput, "applicationName" | "deploymentGroupName" > {} /** * Runtime binding for `codedeploy:ListDeployments` — lists the deployment * ids of the bound deployment group (optionally filtered by status or * create-time range). * ### Observing Deployments * **Example:** List In-Progress Deployments * ```typescript * const listDeployments = yield* AWS.CodeDeploy.ListDeployments(group); * * const { deployments } = yield* listDeployments({ * includeOnlyStatuses: ["InProgress"], * }); * ``` * * @binding */ export interface ListDeployments extends Binding.Service< ListDeployments, "AWS.CodeDeploy.ListDeployments", ( group: G, ) => Effect.Effect< ( request?: ListDeploymentsRequest, ) => Effect.Effect > > {} export const ListDeployments = Binding.Service( "AWS.CodeDeploy.ListDeployments", );