1import type * as inspector2 from "@distilled.cloud/aws/inspector2";
2import type * as Effect from "effect/Effect";
3import * as Binding from "../../Binding.ts";
4
5/**
6 * Runtime binding for `inspector2:ListFindingAggregations`.
7 *
8 * Lists aggregated finding data for your environment based on specific criteria.
9 *
10 * Provide the implementation with
11 * `Effect.provide(AWS.Inspector2.ListFindingAggregationsHttp)`.
12 * ### Querying Findings
13 * **Example:** Aggregate Findings by Account
14 * ```typescript
15 * // init
16 * const listFindingAggregations = yield* AWS.Inspector2.ListFindingAggregations();
17 *
18 * // runtime
19 * const { responses } = yield* listFindingAggregations({ aggregationType: "ACCOUNT" });
20 * ```
21 *
22 * @binding
23 */
24export interface ListFindingAggregations extends Binding.Service<
25 ListFindingAggregations,
26 "AWS.Inspector2.ListFindingAggregations",
27 () => Effect.Effect<
28 (
29 request: inspector2.ListFindingAggregationsRequest,
30 ) => Effect.Effect<
31 inspector2.ListFindingAggregationsResponse,
32 inspector2.ListFindingAggregationsError
33 >
34 >
35> {}
36export const ListFindingAggregations = Binding.Service<ListFindingAggregations>(
37 "AWS.Inspector2.ListFindingAggregations",
38);