1import * as wafv2 from "@distilled.cloud/aws/wafv2";
2import * as Layer from "effect/Layer";
3import { makeWafv2AccountHttpBinding } from "./BindingHttp.ts";
4import { GetWebACLForResource } from "./GetWebACLForResource.ts";
5
6export 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);