KinesisClient.get_records
rboto-kinesis==0.4.0 · Service index · Types
Model summary (excerpt): Gets data records from a Kinesis data stream's shard. When invoking this API, you must use either the StreamARN or the StreamName parameter, or both. It is recommended that you use the StreamARN input parameter when you invoke this API. Specify a shard iterator using the ShardIterator parameter. The shard iterator specifies the position in the shard from which you want to start reading data...
Install and imports
Signature
async def get_records(
*,
shard_iterator: str,
limit: int | None = None,
stream_arn: str | None = None,
stream_id: str | None = None,
dry_run: bool | None = None,
) -> GetRecordsOutput: ...
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) |
|---|---|---|
shard_iterator |
Yes | The position in the shard from which you want to start sequentially reading data records. A shard iterator specifies this position using the sequence number of a data record in the shard. |
limit |
No | The maximum number of records to return. Specify a value of up to 10,000. If you specify a value that is greater than 10,000, GetRecords throws InvalidArgumentException . The default value is 10,000. |
stream_arn |
No | The ARN of the stream. |
stream_id |
No | Not Implemented. Reserved for future use. |
dry_run |
No | Checks if your request will succeed. DryRun is an optional parameter. |
Output
GetRecordsOutput.
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 |
|---|---|---|---|
records |
list[RecordOutput] |
Always present | RecordOutput |
next_shard_iterator |
str | None |
Always present | — |
millis_behind_latest |
int | None |
Always present | — |
child_shards |
list[ChildShardOutput] | None |
Always present | ChildShardOutput |
| 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, DryRunOperationError, ExpiredIteratorError, InternalFailureError, InvalidArgumentError, KMSAccessDeniedError, KMSDisabledError, KMSInvalidStateError, KMSNotFoundError, KMSOptInRequiredError, KMSThrottlingError, ProvisionedThroughputExceededError, ResourceNotFoundError.
Other service failures use the service base error; credential, transport and timeout failures use shared errors.