'Aws DynamoDb Stream for NextShardIterator key in response

i am using dynamodbstream calling with method response = client.get_records(ShardIterator=shard_iterator, Limit=1)

initially response contain response['NextShardIterator'] key

but after some time I got KeyError: 'NextShardIterator' why it is absent in response



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source