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