| 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 { Application } from "./Application.ts"; |
| 5 | |
| 6 | export interface BatchGetApplicationRevisionsRequest extends Omit< |
| 7 | SVC.BatchGetApplicationRevisionsInput, |
| 8 | "applicationName" |
| 9 | > {} |
| 10 | |
| 11 | /** |
| 12 | * Runtime binding for `codedeploy:BatchGetApplicationRevisions` — reads up |
| 13 | * to 25 registered revisions of the bound application in one call. |
| 14 | * ### Managing Revisions |
| 15 | * **Example:** Read Several Revisions |
| 16 | * ```typescript |
| 17 | * const batchGetApplicationRevisions = |
| 18 | * yield* AWS.CodeDeploy.BatchGetApplicationRevisions(app); |
| 19 | * |
| 20 | * const { revisions } = yield* batchGetApplicationRevisions({ |
| 21 | * revisions: [revisionLocation], |
| 22 | * }); |
| 23 | * ``` |
| 24 | * |
| 25 | * @binding |
| 26 | */ |
| 27 | export interface BatchGetApplicationRevisions extends Binding.Service< |
| 28 | BatchGetApplicationRevisions, |
| 29 | "AWS.CodeDeploy.BatchGetApplicationRevisions", |
| 30 | <P extends Application>( |
| 31 | application: P, |
| 32 | ) => Effect.Effect< |
| 33 | ( |
| 34 | request: BatchGetApplicationRevisionsRequest, |
| 35 | ) => Effect.Effect< |
| 36 | SVC.BatchGetApplicationRevisionsOutput, |
| 37 | SVC.BatchGetApplicationRevisionsError |
| 38 | > |
| 39 | > |
| 40 | > {} |
| 41 | export const BatchGetApplicationRevisions = |
| 42 | Binding.Service<BatchGetApplicationRevisions>( |
| 43 | "AWS.CodeDeploy.BatchGetApplicationRevisions", |
| 44 | ); |