@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 20 lines 914 Bytes
Raw
1 import * as imagebuilder from "@distilled.cloud/aws/imagebuilder";
2 import * as Layer from "effect/Layer";
3 import { makeImageBuilderAccountHttpBinding } from "./BindingHttp.ts";
4 import { ListImageScanFindingAggregations } from "./ListImageScanFindingAggregations.ts";
5
6 export const ListImageScanFindingAggregationsHttp = Layer.effect(
7 ListImageScanFindingAggregations,
8 makeImageBuilderAccountHttpBinding({
9 tag: "AWS.ImageBuilder.ListImageScanFindingAggregations",
10 operation: imagebuilder.listImageScanFindingAggregations,
11 // Image Builder serves scan aggregations from Amazon Inspector, so the
12 // API authorizes the dependent inspector2 action too — without it the
13 // call fails with AccessDeniedException even when the imagebuilder
14 // action is granted.
15 actions: [
16 "imagebuilder:ListImageScanFindingAggregations",
17 "inspector2:ListFindingAggregations",
18 ],
19 }),
20 );