| 1 | import * as aa from "@distilled.cloud/aws/accessanalyzer"; |
| 2 | import * as Layer from "effect/Layer"; |
| 3 | import { makeAnalyzerScopedHttpBinding } from "./BindingHttp.ts"; |
| 4 | import { ListFindingsV2 } from "./ListFindingsV2.ts"; |
| 5 | |
| 6 | export const ListFindingsV2Http = Layer.effect( |
| 7 | ListFindingsV2, |
| 8 | makeAnalyzerScopedHttpBinding({ |
| 9 | tag: "AWS.AccessAnalyzer.ListFindingsV2", |
| 10 | operation: aa.listFindingsV2, |
| 11 | // ListFindings and ListFindingsV2 both use `access-analyzer:ListFindings`. |
| 12 | actions: ["access-analyzer:ListFindings"], |
| 13 | }), |
| 14 | ); |