Skip to content

GetManagedThingConnectivityData

Source: src/AWS/IoTManagedIntegrations/GetManagedThingConnectivityData.ts

Runtime binding for the GetManagedThingConnectivityData operation (IAM action iotmanagedintegrations:GetManagedThingConnectivityData), scoped to one ManagedThing.

Reads whether the bound device is currently connected, when its connectivity last changed, and the disconnect reason if offline. Provide the implementation with Effect.provide(AWS.IoTManagedIntegrations.GetManagedThingConnectivityDataHttp).

const getConnectivity =
yield* IoTManagedIntegrations.GetManagedThingConnectivityData(thing);
const { Connected, DisconnectReason } = yield* getConnectivity();