SQSClient.change_message_visibility
rboto-sqs==0.4.0 · Service index · Types
Model summary (excerpt): Changes the visibility timeout of a specified message in a queue to a new value. The default visibility timeout for a message is 30 seconds. The minimum is 0 seconds. The maximum is 12 hours. For more information, see Visibility Timeout in the Amazon SQS Developer Guide . For example, if the default timeout for a queue is 60 seconds, 15 seconds have elapsed since you received the message, and...
Install and imports
Signature
async def change_message_visibility(
*,
queue_url: str,
receipt_handle: str,
visibility_timeout: int,
) -> None: ...
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 message's visibility is changed. Queue URLs and names are case-sensitive. |
receipt_handle |
Yes | The receipt handle associated with the message, whose visibility timeout is changed. This parameter is returned by the ReceiveMessage action. |
visibility_timeout |
Yes | The new value for the message's visibility timeout (in seconds). Values range: 0 to 43200 . Maximum: 12 hours. |
Output
None.
| 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
—
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:
InvalidAddressError, InvalidSecurityError, MessageNotInflightError, QueueDoesNotExistError, ReceiptHandleIsInvalidError, RequestThrottledError, UnsupportedOperationError.
Other service failures use the service base error; credential, transport and timeout failures use shared errors.