Skip to content

GetIPSet

Source: src/AWS/WAFv2/GetIPSet.ts

Runtime binding for wafv2:GetIPSet — read the bound IPSet’s current addresses; the name, scope, and id are injected automatically.

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

// init — grants wafv2:GetIPSet on the IP set
const getIPSet = yield* AWS.WAFv2.GetIPSet(blockList);
// runtime
const { IPSet } = yield* getIPSet();
const addresses = IPSet?.Addresses ?? [];