@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 17 lines 803 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 { ListImageScanFindings } from "./ListImageScanFindings.ts";
5
6 export const ListImageScanFindingsHttp = Layer.effect(
7 ListImageScanFindings,
8 makeImageBuilderAccountHttpBinding({
9 tag: "AWS.ImageBuilder.ListImageScanFindings",
10 operation: imagebuilder.listImageScanFindings,
11 // Image Builder serves scan findings from Amazon Inspector, so the API
12 // authorizes the dependent inspector2 action too — without it the call
13 // fails with AccessDeniedException even when the imagebuilder action is
14 // granted.
15 actions: ["imagebuilder:ListImageScanFindings", "inspector2:ListFindings"],
16 }),
17 );