Skip to content

ListResourcesForWebACL

Source: src/AWS/WAFv2/ListResourcesForWebACL.ts

Runtime binding for wafv2:ListResourcesForWebACL — list the regional resources (ALBs, API Gateway stages, AppSync APIs, …) associated with the bound WebACL; the web ACL ARN is injected automatically.

Provide WAFv2.ListResourcesForWebACLHttp on the hosting Lambda Function to satisfy the requirement.

// init — grants wafv2:ListResourcesForWebACL on the web ACL
const listResources = yield* AWS.WAFv2.ListResourcesForWebACL(acl);
// runtime
const { ResourceArns } = yield* listResources();