KinesisClient.receive_queue_records
rboto-kinesis==0.4.0 · Service index · Types
Model summary (excerpt): Receives up to 10 records from the specified queue. Each record is returned with a receipt handle, which is the identifier you use to acknowledge the record or change its visibility. A record returned by ReceiveQueueRecords becomes in flight: it is not visible to any consumer instance for the duration of its visibility timeout, so subsequent receive requests do not return it while your queue...
Install and imports
Signature
async def receive_queue_records(
*,
queue_arn: str,
limit: int | None = None,
wait_time_seconds: int | None = None,
visibility_timeout_seconds: int | None = None,
) -> ReceiveQueueRecordsOutput: ...
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_arn |
Yes | The ARN of the queue to receive records from. |
limit |
No | The maximum number of records to return. The queue never returns more records than this value, and might return fewer. The default is 10. |
wait_time_seconds |
No | The duration, in seconds, that the call waits for a record to become visible before returning. The default is 9. |
visibility_timeout_seconds |
No | The duration, in seconds, that the records returned by this request are in flight and not visible to any consumer instance. If you do not specify this value, the queue's visibility timeout is used. |
Output
ReceiveQueueRecordsOutput.
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 |
|---|---|---|---|
queue_records |
list[QueueRecordOutput] |
Always present | QueueRecordOutput |
| 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_kinesis.exceptions:
AccessDeniedError, InternalFailureError, InvalidArgumentError, KMSAccessDeniedError, KMSDisabledError, KMSInvalidStateError, KMSNotFoundError, KMSOptInRequiredError, KMSThrottlingError, ResourceNotFoundError, ThrottlingError.
Other service failures use the service base error; credential, transport and timeout failures use shared errors.