Skip to content

ManagedThing

Source: src/AWS/IoTManagedIntegrations/ManagedThing.ts

An AWS IoT Managed Integrations managed thing — the cloud representation of a device (or controller) onboarded through Managed integrations, carrying its identity, protocol, and capability data model.

Creating a managed thing requires real device onboarding material (e.g. a Wi-Fi Simple Setup or Zigbee QR bar code payload). IoT Managed Integrations is a regional service available in a limited set of regions (e.g. eu-west-1, ca-central-1).

Controller from a Wi-Fi Setup QR Code

const thing = yield* ManagedThing("Hub", {
role: "CONTROLLER",
authenticationMaterial: Redacted.make(wifiSetupQrCodePayload),
authenticationMaterialType: "WIFI_SETUP_QR_BAR_CODE",
});

Device with a Credential Locker

const locker = yield* CredentialLocker("DeviceCredentials", {});
const thing = yield* ManagedThing("Sensor", {
role: "DEVICE",
authenticationMaterial: Redacted.make(zigbeeQrCodePayload),
authenticationMaterialType: "ZIGBEE_QR_BAR_CODE",
credentialLockerId: locker.credentialLockerId,
serialNumber: "SN-0001",
});