Skip to main content

queued_messages

Creates, updates, deletes, gets or lists a queued_messages resource.

Overview

Namequeued_messages
TypeResource
Idaws.iotwireless.queued_messages

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
downlink_queue_messages_listarrayThe messages in the downlink queue.
next_tokenstringTo retrieve the next set of results, the nextToken value from a previous response; otherwise null to receive the first set of results.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
list_queued_messagesselectid, regionnextToken, maxResults, WirelessDeviceTypeList queued messages in the downlink queue.
delete_queued_messagesdeleteid, messageId, regionWirelessDeviceTypeRemove queued messages from the downlink queue.

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
idstringThe ID of a given wireless device for which downlink messages will be deleted.
messageIdstringIf message ID is "*", it cleares the entire downlink queue for a given device, specified by the wireless device ID. Otherwise, the downlink message with the specified message ID will be deleted.
regionstringAWS region (default: us-east-1)
WirelessDeviceTypestringThe wireless device type, which can be either Sidewalk or LoRaWAN.
maxResultsintegerThe maximum number of results to return in this operation.
nextTokenstringTo retrieve the next set of results, the nextToken value from a previous response; otherwise null to receive the first set of results.

SELECT examples

List queued messages in the downlink queue.

SELECT
downlink_queue_messages_list,
next_token
FROM aws.iotwireless.queued_messages
WHERE id = '{{ id }}' -- required
AND region = '{{ region }}' -- required
AND nextToken = '{{ nextToken }}'
AND maxResults = '{{ maxResults }}'
AND WirelessDeviceType = '{{ WirelessDeviceType }}'
;

DELETE examples

Remove queued messages from the downlink queue.

DELETE FROM aws.iotwireless.queued_messages
WHERE id = '{{ id }}' --required
AND messageId = '{{ messageId }}' --required
AND region = '{{ region }}' --required
AND WirelessDeviceType = '{{ WirelessDeviceType }}'
;