Description
Is your feature request related to a problem? Please describe.
Yes. For a while now, it's possible to receive batches with more than 10 entries in Lambda (ref). However, the calls from SendMessageBatch and DeleteMessageBatch in AWS PowerTools are made with the entire set of messages that are being sent to the DLQ or deleted from the SQS.
Those APIs, however, are limited to 10 entries each, which results in exceptions like TooManyEntriesInBatchRequestException: Maximum number of entries per request are 10. You have sent 226.
Describe the solution you'd like
Batch API calls should be made in chunks of 10 to satisfy the SDK restrictions.
Describe alternatives you've considered
So far, reducing the batch size to 10, which is not ideal for my solution due to the amount of concurrent lambdas.