GetServiceEndpoint
Source:
src/AWS/IoTWireless/GetServiceEndpoint.ts
Runtime binding for iotwireless:GetServiceEndpoint — read the
account’s CUPS or LNS endpoint (and its server trust certificate) from a
deployed Lambda or Task. Useful for gateway provisioning flows.
Reading the Service Endpoint
Section titled “Reading the Service Endpoint”Provide the GetServiceEndpointHttp implementation layer on the Function
effect, bind the capability in the init phase, then call the returned
client at runtime.
// initconst getEndpoint = yield* AWS.IoTWireless.GetServiceEndpoint();
// runtimeconst { ServiceEndpoint } = yield* getEndpoint({ ServiceType: "LNS" });// on the Function effect:// .pipe(Effect.provide(AWS.IoTWireless.GetServiceEndpointHttp))