| 1 | import type * as SVC from "@distilled.cloud/aws/codedeploy"; |
| 2 | import type * as Effect from "effect/Effect"; |
| 3 | import * as Binding from "../../Binding.ts"; |
| 4 | import type { DeploymentGroup } from "./DeploymentGroup.ts"; |
| 5 | |
| 6 | /** |
| 7 | * Runtime binding for `codedeploy:ListDeploymentTargets` — lists the target |
| 8 | * ids of a deployment (optionally filtered by target status). |
| 9 | * ### Observing Deployment Targets |
| 10 | * **Example:** List Failed Targets |
| 11 | * ```typescript |
| 12 | * const listDeploymentTargets = |
| 13 | * yield* AWS.CodeDeploy.ListDeploymentTargets(group); |
| 14 | * |
| 15 | * const { targetIds } = yield* listDeploymentTargets({ |
| 16 | * deploymentId, |
| 17 | * targetFilters: { TargetStatus: ["Failed"] }, |
| 18 | * }); |
| 19 | * ``` |
| 20 | * |
| 21 | * @binding |
| 22 | */ |
| 23 | export interface ListDeploymentTargets extends Binding.Service< |
| 24 | ListDeploymentTargets, |
| 25 | "AWS.CodeDeploy.ListDeploymentTargets", |
| 26 | <G extends DeploymentGroup>( |
| 27 | group: G, |
| 28 | ) => Effect.Effect< |
| 29 | ( |
| 30 | request: SVC.ListDeploymentTargetsInput, |
| 31 | ) => Effect.Effect< |
| 32 | SVC.ListDeploymentTargetsOutput, |
| 33 | SVC.ListDeploymentTargetsError |
| 34 | > |
| 35 | > |
| 36 | > {} |
| 37 | export const ListDeploymentTargets = Binding.Service<ListDeploymentTargets>( |
| 38 | "AWS.CodeDeploy.ListDeploymentTargets", |
| 39 | ); |