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.
Reading Endpoint State
Section titled “Reading Endpoint State”// init — grants route53resolver:GetResolverEndpoint on the endpointconst getEndpoint = yield* AWS.Route53Resolver.GetResolverEndpoint(endpoint);
// runtimeconst { ResolverEndpoint } = yield* getEndpoint();console.log(ResolverEndpoint?.Status, ResolverEndpoint?.IpAddressCount);