Skip to content

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.

Provide the GetServiceEndpointHttp implementation layer on the Function effect, bind the capability in the init phase, then call the returned client at runtime.

// init
const getEndpoint = yield* AWS.IoTWireless.GetServiceEndpoint();
// runtime
const { ServiceEndpoint } = yield* getEndpoint({ ServiceType: "LNS" });
// on the Function effect:
// .pipe(Effect.provide(AWS.IoTWireless.GetServiceEndpointHttp))