Skip to content

BatchAssociateClientDeviceWithCoreDevice

Source: src/AWS/GreengrassV2/BatchAssociateClientDeviceWithCoreDevice.ts

Runtime binding for greengrass:BatchAssociateClientDeviceWithCoreDevice.

Associates up to 100 client devices with a core device so they can use it as their local MQTT broker — the write half of client-device fleet management. The caller supplies the core device thing name and the client device entries at runtime. Provide the implementation with Effect.provide(AWS.GreengrassV2.BatchAssociateClientDeviceWithCoreDeviceHttp).

// init — account-level binding, no resource argument
const associateClientDevices =
yield* AWS.GreengrassV2.BatchAssociateClientDeviceWithCoreDevice();
// runtime
const { errorEntries } = yield* associateClientDevices({
coreDeviceThingName: "MyCore",
entries: [{ thingName: "Sensor1" }, { thingName: "Sensor2" }],
});