The API GetRecordsRequest.withLimit(limit) returns the number of records that is specified by the limit parameter. It is recommended not to use the batch size from DDB stream as limit parameter to GetRecords API since that might lead to validation exception at run time.\