Skip to content

(aws-lambda-event-sources): Max batch size for SQSEventSource is documented as 10, missing edge case. #15697

@dominoanty

Description

@dominoanty

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

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions