GetManagedThingState
Source:
src/AWS/IoTManagedIntegrations/GetManagedThingState.ts
Runtime binding for the GetManagedThingState operation (IAM action
iotmanagedintegrations:GetManagedThingState), scoped to one
ManagedThing.
Reads the last-reported state of every endpoint/capability of the bound
device (e.g. whether a smart plug is on). Provide the implementation with
Effect.provide(AWS.IoTManagedIntegrations.GetManagedThingStateHttp).
Reading Device State
Section titled “Reading Device State”const getState = yield* IoTManagedIntegrations.GetManagedThingState(thing);
const { Endpoints } = yield* getState();// Endpoints[0].capabilities[0].properties