| 1 | import * as wafv2 from "@distilled.cloud/aws/wafv2"; |
| 2 | import * as Layer from "effect/Layer"; |
| 3 | import { makeWafv2AccountHttpBinding } from "./BindingHttp.ts"; |
| 4 | import { GetWebACLForResource } from "./GetWebACLForResource.ts"; |
| 5 | |
| 6 | export const GetWebACLForResourceHttp = Layer.effect( |
| 7 | GetWebACLForResource, |
| 8 | makeWafv2AccountHttpBinding({ |
| 9 | tag: "AWS.WAFv2.GetWebACLForResource", |
| 10 | operation: wafv2.getWebACLForResource, |
| 11 | // GetWebACLForResource authorizes against the protected resource's ARN |
| 12 | // (unknowable at deploy time) and internally requires GetWebACL. |
| 13 | actions: ["wafv2:GetWebACLForResource", "wafv2:GetWebACL"], |
| 14 | }), |
| 15 | ); |