| 1 | import type * as imagebuilder from "@distilled.cloud/aws/imagebuilder"; |
| 2 | import type * as Effect from "effect/Effect"; |
| 3 | import * as Binding from "../../Binding.ts"; |
| 4 | |
| 5 | /** |
| 6 | * Runtime binding for `imagebuilder:ListImageScanFindings`. |
| 7 | * |
| 8 | * Lists Amazon Inspector scan findings for images in the account (populated |
| 9 | * when a pipeline has `imageScanningConfiguration` enabled). Filter by |
| 10 | * `imageBuildVersionArn` or `imagePipelineArn` to narrow to one build or |
| 11 | * pipeline. Provide the implementation with |
| 12 | * `Effect.provide(AWS.ImageBuilder.ListImageScanFindingsHttp)`. |
| 13 | * ### Scan Findings |
| 14 | * **Example:** List Findings for a Pipeline's Builds |
| 15 | * ```typescript |
| 16 | * // init — account-level binding, no resource argument |
| 17 | * const listImageScanFindings = |
| 18 | * yield* AWS.ImageBuilder.ListImageScanFindings(); |
| 19 | * |
| 20 | * // runtime |
| 21 | * const { findings } = yield* listImageScanFindings({ |
| 22 | * filters: [{ name: "imagePipelineArn", values: [pipelineArn] }], |
| 23 | * }); |
| 24 | * ``` |
| 25 | * |
| 26 | * @binding |
| 27 | */ |
| 28 | export interface ListImageScanFindings extends Binding.Service< |
| 29 | ListImageScanFindings, |
| 30 | "AWS.ImageBuilder.ListImageScanFindings", |
| 31 | () => Effect.Effect< |
| 32 | ( |
| 33 | request?: imagebuilder.ListImageScanFindingsRequest, |
| 34 | ) => Effect.Effect< |
| 35 | imagebuilder.ListImageScanFindingsResponse, |
| 36 | imagebuilder.ListImageScanFindingsError |
| 37 | > |
| 38 | > |
| 39 | > {} |
| 40 | export const ListImageScanFindings = Binding.Service<ListImageScanFindings>( |
| 41 | "AWS.ImageBuilder.ListImageScanFindings", |
| 42 | ); |