Skip to content

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).

const getState = yield* IoTManagedIntegrations.GetManagedThingState(thing);
const { Endpoints } = yield* getState();
// Endpoints[0].capabilities[0].properties