Skip to content

DescribeManagedRuleGroup

Source: src/AWS/WAFv2/ManagedRuleGroups.ts

Runtime binding for wafv2:DescribeManagedRuleGroup — read the rules, labels, and WCU capacity of a vendor managed rule group.

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

// init — grants wafv2:DescribeManagedRuleGroup
const describeManagedRuleGroup = yield* AWS.WAFv2.DescribeManagedRuleGroup();
// runtime
const { Capacity, Rules } = yield* describeManagedRuleGroup({
VendorName: "AWS",
Name: "AWSManagedRulesCommonRuleSet",
Scope: "REGIONAL",
});