v1

latestOpenAPI 3.0.0Apache 2.0 License2026-07-1745637.4 KB

Retrieves the stream records from a given shard.

Specify a shard iterator using the ShardIterator parameter. The shard iterator specifies the position in the shard from which you want to start reading stream records sequentially. If there are no stream records available in the portion of the shard that the iterator points to, GetRecords returns an empty list. Note that it might take multiple calls to get to a portion of the shard that contains stream records.

GetRecords can retrieve a maximum of 1 MB of data or 1000 stream records, whichever comes first.

post/#X-Amz-Target=DynamoDBStreams_20120810.GetRecords

Headers

X-Amz-Target'DynamoDBStreams_20120810.GetRecords' required

Request body

ShardIteratorstring required

A shard iterator that was retrieved from a previous GetShardIterator operation. This iterator can be used to access the stream records in this shard.

Limitinteger

The maximum number of records to return from the shard. The upper limit is 1000.

Response

Success

NextShardIteratorstring

The next position in the shard from which to start sequentially reading stream records. If set to <code>null</code>, the shard has been closed and the requested iterator will not return any more data.