SQSClient.send_message_batch
rboto-sqs==0.4.0 · Service index · Types
Model summary (excerpt): You can use SendMessageBatch to send up to 10 messages to the specified queue by assigning either identical or different values to each message (or by not assigning values at all). This is a batch version of SendMessage . For a FIFO queue, multiple messages within a single batch are enqueued in the order they are sent. The result of sending each message is reported individually in the...
Install and imports
from rboto import SQSClient
from collections.abc import Sequence
from rboto_sqs.types import (
SendMessageBatchOutput,
SendMessageBatchRequestEntry,
)
Signature
async def send_message_batch(
*,
queue_url: str,
entries: Sequence[SendMessageBatchRequestEntry],
) -> SendMessageBatchOutput: ...
Arguments without defaults are required. None omits an optional request argument. Static types do not validate resource existence, permissions, lengths, ranges, or conditional service requirements.
Arguments
| Argument | Required | Model notes (excerpt) |
|---|---|---|
queue_url |
Yes | The URL of the Amazon SQS queue to which batched messages are sent. Queue URLs and names are case-sensitive. |
entries |
Yes | A list of SendMessageBatchRequestEntry items. |
Output
SendMessageBatchOutput.
Read-only native attributes, accessed as response.field. Collection getters materialize Python values; to_dict() recursively materializes a mapping. Streams are consumed once.
| Field | Type | Presence | References |
|---|---|---|---|
successful |
list[SendMessageBatchResultEntryOutput] |
Always present | SendMessageBatchResultEntryOutput |
failed |
list[BatchResultErrorEntryOutput] |
Always present | BatchResultErrorEntryOutput |
| None means a value can be absent. Output mappings include every declared key; optional input keys may be omitted. Unknown output enum/union variants are not automatically valid inputs.
Related types
SendMessageBatchOutput, SendMessageBatchRequestEntry
Follow these links for nested inputs and outputs; recursive types link back to the same type page.
Pagination and streaming
No generated paginator for this operation.
No output stream.
Errors
Import from rboto_sqs.exceptions:
BatchEntryIdsNotDistinctError, BatchRequestTooLongError, EmptyBatchRequestError, InvalidAddressError, InvalidBatchEntryIdError, InvalidSecurityError, KmsAccessDeniedError, KmsDisabledError, KmsInvalidKeyUsageError, KmsInvalidStateError, KmsNotFoundError, KmsOptInRequiredError, KmsThrottledError, QueueDoesNotExistError, RequestThrottledError, TooManyEntriesInBatchRequestError, UnsupportedOperationError.
Other service failures use the service base error; credential, transport and timeout failures use shared errors.