Skip to content

DeletePermissionPolicy

Source: src/AWS/WAFv2/DeletePermissionPolicy.ts

Runtime binding for wafv2:DeletePermissionPolicy — remove the IAM policy that shares the bound RuleGroup with other accounts; the rule group ARN is injected automatically. Deleting a policy that does not exist succeeds.

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

// init — grants wafv2:DeletePermissionPolicy on the rule group
const deletePermissionPolicy = yield* AWS.WAFv2.DeletePermissionPolicy(group);
// runtime
yield* deletePermissionPolicy();