Skip to content

ListResolverRuleAssociations

Source: src/AWS/Route53Resolver/ListResolverRuleAssociations.ts

Runtime binding for route53resolver:ListResolverRuleAssociations — enumerate the VPC associations of the bound ResolverRule. The request is automatically filtered to the bound rule (Filters: [{ Name: "ResolverRuleId", … }]).

Provide Route53Resolver.ListResolverRuleAssociationsHttp on the hosting Lambda Function to satisfy the requirement.

// init — grants route53resolver:ListResolverRuleAssociations on the rule
const listAssociations = yield* AWS.Route53Resolver.ListResolverRuleAssociations(rule);
// runtime
const { ResolverRuleAssociations } = yield* listAssociations();
const vpcIds = (ResolverRuleAssociations ?? []).map((a) => a.VPCId);