Skip to content

GetConnectivityInfo

Source: src/AWS/GreengrassV2/GetConnectivityInfo.ts

Runtime binding for greengrass:GetConnectivityInfo.

Reads a core device’s connectivity information — the endpoints and ports where client devices can reach the core’s local MQTT broker (the same data the IoT Greengrass discovery API serves). The caller supplies the core device’s thing name at runtime. Provide the implementation with Effect.provide(AWS.GreengrassV2.GetConnectivityInfoHttp).

// init — account-level binding, no resource argument
const getConnectivityInfo = yield* AWS.GreengrassV2.GetConnectivityInfo();
// runtime
const { connectivityInfo } = yield* getConnectivityInfo({
thingName: "MyCore",
});