SendMessageRequest
Types
Properties
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 DelaySeconds
value become available for processing after the delay period is finished. If you don't specify a value, the default value for the queue applies.
Each message attribute consists of a Name
, Type
, and Value
. For more information, see Amazon SQS message attributes in the Amazon SQS Developer Guide.
The message to send. The minimum size is one character. The maximum size is 1 MiB or 1,048,576 bytes
This parameter applies only to FIFO (first-in-first-out) queues.
MessageGroupId
is an attribute used in Amazon SQS FIFO (First-In-First-Out) and standard queues. In FIFO queues, MessageGroupId
organizes messages into distinct groups. Messages within the same message group are always processed one at a time, in strict order, ensuring that no two messages from the same group are processed simultaneously. In standard queues, using MessageGroupId
enables fair queues. It is used to identify the tenant a message belongs to, helping maintain consistent message dwell time across all tenants during noisy neighbor events. Unlike FIFO queues, messages with the same MessageGroupId
can be processed in parallel, maintaining the high throughput of standard queues.
The message system attribute to send. Each message system attribute consists of a Name
, Type
, and Value
.