Publishing Messages

Learn how to publish messages to a queue or queue channels.

Publishing messages requires permissions to the queue and access to its Messages endpoint.

A message contains a payload in the form of a string. When you publish messages using a PutMessages request, you can also specify its visibility timeout and retention. Optionally, you can include a channel ID to publish messages to a specific channel.

While you can use the Console to publish test messages to a queue or channel, you use the CLI, API, or an SDK to populate a queue. See Ways to Access Queue for more information.

Channels

Channels are ephemeral destinations within a queue. Publishing messages to a channel requires only an additional parameter. Messages published to a channel are available for consumption from both the queue or the channel level. For more information, see Channels.