Skip to content

SQSClient.get_queue_attributes

rboto-sqs==0.4.0 · Service index · Types

Model summary (excerpt): Gets attributes for the specified queue. To determine whether a queue is FIFO , you can check whether QueueName ends with the .fifo suffix.

Install and imports

python -m pip install "rboto[sqs]==0.4.0"
from rboto import SQSClient
from collections.abc import Sequence
from rboto_sqs.types import (
    GetQueueAttributesOutput,
    QueueAttributeName,
)

Signature

async def get_queue_attributes(
    *,
    queue_url: str,
    attribute_names: Sequence[QueueAttributeName] | None = None,
) -> GetQueueAttributesOutput: ...

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 attribute information is retrieved. Queue URLs and names are case-sensitive.
attribute_names No A list of attributes for which to retrieve information. The AttributeNames parameter is optional, but if you don't specify values for this parameter, the request returns empty results. In the future, new attributes might be added. If you write code that calls this action, we recommend that you structure your code so that it can handle new attributes gracefully. The following attributes are...

Output

GetQueueAttributesOutput.

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
attributes dict[QueueAttributeNameOutput, str] | None Always present QueueAttributeNameOutput

| 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.

GetQueueAttributesOutput, QueueAttributeName

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, InvalidSecurityError, QueueDoesNotExistError, RequestThrottledError, UnsupportedOperationError.

Other service failures use the service base error; credential, transport and timeout failures use shared errors.

Service guide · Pinned model