1import type * as imagebuilder from "@distilled.cloud/aws/imagebuilder";
2import type * as Effect from "effect/Effect";
3import * as Binding from "../../Binding.ts";
4
5/**
6 * Runtime binding for `imagebuilder:ListImageScanFindingAggregations`.
7 *
8 * Returns Amazon Inspector finding counts grouped by severity — for the
9 * whole account, or grouped by one key (`imagePipelineArn`,
10 * `imageBuildVersionArn`, `accountId`, `vulnerabilityId`) when a filter is
11 * supplied. Provide the implementation with
12 * `Effect.provide(AWS.ImageBuilder.ListImageScanFindingAggregationsHttp)`.
13 * ### Scan Findings
14 * **Example:** Aggregate Findings by Pipeline
15 * ```typescript
16 * // init — account-level binding, no resource argument
17 * const listImageScanFindingAggregations =
18 * yield* AWS.ImageBuilder.ListImageScanFindingAggregations();
19 *
20 * // runtime
21 * const { responses } = yield* listImageScanFindingAggregations({
22 * filter: { name: "imagePipelineArn", values: [pipelineArn] },
23 * });
24 * ```
25 *
26 * @binding
27 */
28export interface ListImageScanFindingAggregations extends Binding.Service<
29 ListImageScanFindingAggregations,
30 "AWS.ImageBuilder.ListImageScanFindingAggregations",
31 () => Effect.Effect<
32 (
33 request?: imagebuilder.ListImageScanFindingAggregationsRequest,
34 ) => Effect.Effect<
35 imagebuilder.ListImageScanFindingAggregationsResponse,
36 imagebuilder.ListImageScanFindingAggregationsError
37 >
38 >
39> {}
40export const ListImageScanFindingAggregations =
41 Binding.Service<ListImageScanFindingAggregations>(
42 "AWS.ImageBuilder.ListImageScanFindingAggregations",
43 );