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.
Reading Rule State
Section titled “Reading Rule State”// init — grants route53resolver:ListResolverRuleAssociations on the ruleconst listAssociations = yield* AWS.Route53Resolver.ListResolverRuleAssociations(rule);
// runtimeconst { ResolverRuleAssociations } = yield* listAssociations();const vpcIds = (ResolverRuleAssociations ?? []).map((a) => a.VPCId);