Publishing Messages to a Channel

Publish messages to a specific channel within a queue.

Channels are ephemeral destinations within a queue. Publishing messages to a channel within a queue requires only an extra parameter. Channels don't require explicit creation or deletion. Messages published to a channel are available for consumption from both the queue or the channel level. For more information, see 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 include a channel ID.

Note

You can specify different channel IDs for different messages in the same request. However, publishing messages to multiple channels in one request can result in partial failures. Some messages might be published successfully and other messages in the same request might fail. Responses to a PutMessages request that specifies channels include failure information.