SQSClient.set_queue_attributes
rboto-sqs==0.4.0 · Service index · Types
Model summary (excerpt): Sets the value of one or more queue attributes, like a policy. When you change a queue's attributes, the change can take up to 60 seconds for most of the attributes to propagate throughout the Amazon SQS system. Changes made to the MessageRetentionPeriod attribute can take up to 15 minutes and will impact existing messages in the queue potentially causing them to be expired and deleted if the...
Install and imports
Signature
async def set_queue_attributes(
*,
queue_url: str,
attributes: dict[QueueAttributeName, str],
) -> 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 attributes are set. Queue URLs and names are case-sensitive. |
attributes |
Yes | A map of attributes to set. The following lists the names, descriptions, and values of the special request parameters that the SetQueueAttributes action uses: DelaySeconds – The length of time, in seconds, for which the delivery of all messages in the queue is delayed. Valid values: An integer from 0 to 900 (15 minutes). Default: 0. MaximumMessageSize – The limit of how many bytes a message... |
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, InvalidAttributeNameError, InvalidAttributeValueError, InvalidSecurityError, OverLimitError, QueueDoesNotExistError, RequestThrottledError, UnsupportedOperationError.
Other service failures use the service base error; credential, transport and timeout failures use shared errors.