Skip to content

DeleteQueuedMessages

Source: src/AWS/IoTWireless/DeleteQueuedMessages.ts

Runtime binding for iotwireless:DeleteQueuedMessages — delete queued downlink messages for the bound wireless device from a deployed Lambda or Task.

Provide the DeleteQueuedMessagesHttp implementation layer on the Function effect, bind the device in the init phase, then call the returned client at runtime.

// init
const deleteQueued = yield* AWS.IoTWireless.DeleteQueuedMessages(device);
// runtime — "*" deletes every queued message
yield* deleteQueued({ MessageId: "*" });
// on the Function effect:
// .pipe(Effect.provide(AWS.IoTWireless.DeleteQueuedMessagesHttp))