Skip to content
TypeScript
532 B
Raw Blame
import * as wafv2 from "@distilled.cloud/aws/wafv2";
import * as Layer from "effect/Layer";
import { makeWafv2WebAclHttpBinding } from "./BindingHttp.ts";
import { ListResourcesForWebACL } from "./ListResourcesForWebACL.ts";

export const ListResourcesForWebACLHttp = Layer.effect(
  ListResourcesForWebACL,
  makeWafv2WebAclHttpBinding({
    tag: "AWS.WAFv2.ListResourcesForWebACL",
    operation: wafv2.listResourcesForWebACL,
    actions: ["wafv2:ListResourcesForWebACL"],
    inject: (acl) => ({ WebACLArn: acl.arn }),
  }),
);