Skip to content

Commit

Permalink
docs(lambda-event-sources): document different defaults for different…
Browse files Browse the repository at this point in the history
… stream sources
  • Loading branch information
kaizencc committed Sep 9, 2022
1 parent 4b37157 commit 20379eb
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions packages/@aws-cdk/aws-lambda-event-sources/lib/stream.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,11 @@ export interface BaseStreamEventSourceProps{

/**
* The maximum amount of time to gather records before invoking the function.
* Maximum of Duration.minutes(5)
* Maximum of Duration.minutes(5).
*
* @default Duration.seconds(0)
* @see https://docs.aws.amazon.com/lambda/latest/dg/invocation-eventsourcemapping.html#invocation-eventsourcemapping-batching
*
* @default - Duration.seconds(0) for Kinesis, DynamoDB, and SQS event sources, Duration.millis(500) for MSK, self-managed Kafka, and Amazon MQ.
*/
readonly maxBatchingWindow?: Duration;

Expand Down

0 comments on commit 20379eb

Please sign in to comment.