Send Message
sqs_send_message | R Documentation |
Delivers a message to the specified queue¶
Description¶
Delivers a message to the specified queue.
A message can include only XML, JSON, and unformatted text. The following Unicode characters are allowed. For more information, see the W3C specification for characters.
#x9
| #xA
| #xD
| #x20
to #xD7FF
| #xE000
to #xFFFD
|
#x10000
to #x10FFFF
Amazon SQS does not throw an exception or completely reject the message
if it contains invalid characters. Instead, it replaces those invalid
characters with U+FFFD
before storing the message in the queue, as
long as the message body contains at least one valid character.
Usage¶
sqs_send_message(QueueUrl, MessageBody, DelaySeconds, MessageAttributes,
MessageSystemAttributes, MessageDeduplicationId, MessageGroupId)
Arguments¶
QueueUrl |
[required] The URL of the Amazon SQS queue to which a message is sent. Queue URLs and names are case-sensitive. |
MessageBody |
[required] The message to send. The minimum size is one character. The maximum size is 256 KiB. A message can include only XML, JSON, and unformatted text. The following Unicode characters are allowed. For more information, see the W3C specification for characters.
Amazon SQS does not throw an exception or completely reject the
message if it contains invalid characters. Instead, it replaces those
invalid characters with |
DelaySeconds |
The length of time, in seconds, for which to delay a specific
message. Valid values: 0 to 900. Maximum: 15 minutes. Messages with a
positive When you set |
MessageAttributes |
Each message attribute consists of a |
MessageSystemAttributes |
The message system attribute to send. Each message system
attribute consists of a
|
MessageDeduplicationId |
This parameter applies only to FIFO (first-in-first-out) queues. The token used for deduplication of sent messages. If a message with
a particular
The If a message is sent successfully but the acknowledgement is lost and
the message is resent with the same Amazon SQS continues to keep track of the message deduplication ID even after the message is received and deleted. The maximum length of For best practices of using []: R:%5C [Using the MessageDeduplicationId Property]: R:Using%20the%0AMessageDeduplicationId%0AProperty |
MessageGroupId |
This parameter applies only to FIFO (first-in-first-out) queues. The tag that specifies that a message belongs to a specific message
group. Messages that belong to the same message group are processed in a
FIFO manner (however, messages in different message groups might be
processed out of order). To interleave multiple ordered streams within a
single queue, use
The maximum length of For best practices of using
[]: R:%5C [Using the MessageGroupId Property]: R:Using%20the%0AMessageGroupId%0AProperty |
Value¶
A list with the following syntax:
list(
MD5OfMessageBody = "string",
MD5OfMessageAttributes = "string",
MD5OfMessageSystemAttributes = "string",
MessageId = "string",
SequenceNumber = "string"
)
Request syntax¶
svc$send_message(
QueueUrl = "string",
MessageBody = "string",
DelaySeconds = 123,
MessageAttributes = list(
list(
StringValue = "string",
BinaryValue = raw,
StringListValues = list(
"string"
),
BinaryListValues = list(
raw
),
DataType = "string"
)
),
MessageSystemAttributes = list(
list(
StringValue = "string",
BinaryValue = raw,
StringListValues = list(
"string"
),
BinaryListValues = list(
raw
),
DataType = "string"
)
),
MessageDeduplicationId = "string",
MessageGroupId = "string"
)