GetShardIteratorInput
¶
Source code in docs_src/capo_keyspacesstreams/types/get_shard_iterator_input.py
sequence_number
instance-attribute
¶
sequence_number: NotRequired[SequenceNumber]
The sequence number of the data record in the shard from which to start reading. Required if ShardIteratorType is AT_SEQUENCE_NUMBER or AFTER_SEQUENCE_NUMBER. This parameter is ignored for other iterator types.
shard_id
instance-attribute
¶
shard_id: ShardId
The identifier of the shard within the stream. The shard ID uniquely identifies a subset of the stream's data records that you want to access.
shard_iterator_type
instance-attribute
¶
shard_iterator_type: ShardIteratorType
Determines how the shard iterator is positioned. Must be one of the following:
-
TRIM_HORIZON- Start reading at the last untrimmed record in the shard, which is the oldest data record in the shard. -
AT_SEQUENCE_NUMBER- Start reading exactly from the specified sequence number. -
AFTER_SEQUENCE_NUMBER- Start reading right after the specified sequence number. -
LATEST- Start reading just after the most recent record in the shard, so that you always read the most recent data.