Skip to content

GetResolverEndpoint

Source: src/AWS/Route53Resolver/GetResolverEndpoint.ts

Runtime binding for route53resolver:GetResolverEndpoint — read the bound ResolverEndpoint’s live state (status, IP address count, host VPC, protocols); the endpoint ID is injected automatically.

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

// init — grants route53resolver:GetResolverEndpoint on the endpoint
const getEndpoint = yield* AWS.Route53Resolver.GetResolverEndpoint(endpoint);
// runtime
const { ResolverEndpoint } = yield* getEndpoint();
console.log(ResolverEndpoint?.Status, ResolverEndpoint?.IpAddressCount);