-
Notifications
You must be signed in to change notification settings - Fork 4.4k
(aws-lambda-event-sources): Max batch size for SQSEventSource is documented as 10, missing edge case. #15697
Copy link
Copy link
Closed
Labels
@aws-cdk/aws-lambda-event-sourcesdocumentationThis is a problem with documentation.This is a problem with documentation.effort/smallSmall work item – less than a day of effortSmall work item – less than a day of effortfeature-requestA feature should be added or improved.A feature should be added or improved.p2
Description
Code documentation : https://github.com/aws/aws-cdk/blob/master/packages/@aws-cdk/aws-lambda-event-sources/lib/sqs.ts
export interface SqsEventSourceProps {
/**
* The largest number of records that AWS Lambda will retrieve from your event
* source at the time of invoking your function. Your function receives an
* event with all the retrieved records.
*
* Valid Range: Minimum value of 1. Maximum value of 10.
*
* @default 10
*/
readonly batchSize?: number;
But as per #11722 as well as the code, it seems that if the maxBatchingWindow is defined, batchSize can go upto 10,000. It would be good if this was documented in the interface itself.
This is a 📕 documentation issue
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
@aws-cdk/aws-lambda-event-sourcesdocumentationThis is a problem with documentation.This is a problem with documentation.effort/smallSmall work item – less than a day of effortSmall work item – less than a day of effortfeature-requestA feature should be added or improved.A feature should be added or improved.p2