SQSClient.change_message_visibility_batch
rboto-sqs==0.4.0 · Service index · Types
Model summary (excerpt): Changes the visibility timeout of multiple messages. This is a batch version of ChangeMessageVisibility . The result of the action on each message is reported individually in the response. You can send up to 10 ChangeMessageVisibility requests with each ChangeMessageVisibilityBatch action. Because the batch request can result in a combination of successful and unsuccessful actions, you should...
Install and imports
from rboto import SQSClient
from collections.abc import Sequence
from rboto_sqs.types import (
ChangeMessageVisibilityBatchOutput,
ChangeMessageVisibilityBatchRequestEntry,
)
Signature
async def change_message_visibility_batch(
*,
queue_url: str,
entries: Sequence[ChangeMessageVisibilityBatchRequestEntry],
) -> ChangeMessageVisibilityBatchOutput: ...
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 whose messages' visibility is changed. Queue URLs and names are case-sensitive. |
entries |
Yes | Lists the receipt handles of the messages for which the visibility timeout must be changed. |
Output
ChangeMessageVisibilityBatchOutput.
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[ChangeMessageVisibilityBatchResultEntryOutput] |
Always present | ChangeMessageVisibilityBatchResultEntryOutput |
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
ChangeMessageVisibilityBatchOutput, ChangeMessageVisibilityBatchRequestEntry
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, EmptyBatchRequestError, InvalidAddressError, InvalidBatchEntryIdError, InvalidSecurityError, QueueDoesNotExistError, RequestThrottledError, TooManyEntriesInBatchRequestError, UnsupportedOperationError.
Other service failures use the service base error; credential, transport and timeout failures use shared errors.