Skip to content

Commit 3cfa00f

Browse files
committed
Adding better description to the get_records function.
1 parent 78d9c6e commit 3cfa00f

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

python/example_code/kinesis/streams/kinesis_stream.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -130,8 +130,10 @@ def get_records(self, max_records):
130130
"""
131131
Gets records from the stream. This function is a generator that first gets
132132
a shard iterator for the stream, then uses the shard iterator to get records
133-
in batches from the stream. Each batch of records is yielded back to the
134-
caller until the specified maximum number of records has been retrieved.
133+
in batches from the stream. The shard iterator can be accessed through the
134+
'details' property, which is populated using the 'describe' function of this class.
135+
Each batch of records is yielded back to the caller until the specified
136+
maximum number of records has been retrieved.
135137
136138
:param max_records: The maximum number of records to retrieve.
137139
:return: Yields the current batch of retrieved records.

0 commit comments

Comments
 (0)