@devries-cameron20 / t3code Mirror · read-only
Fork 0

The best way to control Claude Code, Codex and more from any computer or phone

Mirrored from https://github.com/Camo67/t3code.git

Synced Nov 21, 04:45 UTC

main
ts 42 lines 1.55 KB
Raw
1 import type * as imagebuilder from "@distilled.cloud/aws/imagebuilder";
2 import * as Binding from "alchemy/Binding";
3 import type * as Effect from "effect/Effect";
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 */
28 export 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 > {}
40 export const ListImageScanFindingAggregations = Binding.Service<ListImageScanFindingAggregations>(
41 "AWS.ImageBuilder.ListImageScanFindingAggregations",
42 );