-
Notifications
You must be signed in to change notification settings - Fork 4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
aws-lambda: default values discrepancies between TypeScript and Web documentation #13908
Comments
Hi @Serede - You are comparing the wrong artifacts. The typescript source you linked is of |
@nija-at you are right, thank you for clarifying. I still believe there is an issue with the default values, though. Let me explain better. I created a const testrunsEventSource = new DynamoEventSource(testrunsTable, {
batchSize: 100,
onFailure: new SqsDlq(deadLetterQueue),
startingPosition: StartingPosition.TRIM_HORIZON,
}); I see the constructor for
So far so good. However, when I deployed the stack to CloudFormation, both properties took value I had to change the code like this to make them finite: const testrunsEventSource = new DynamoEventSource(testrunsTable, {
batchSize: 100,
onFailure: new SqsDlq(deadLetterQueue),
startingPosition: StartingPosition.TRIM_HORIZON,
maxRecordAge: Duration.minutes(10),
retryAttempts: 10,
}); I reported the issue because I believe this can cause unintended behavior to other users as it did for me. |
…ypes The defaults documented for `maxRecordAge` and `retryAttempts` properties for event sources that are 'stream' type were documented incorrectly. The implementation falls back to the defaults provided by CloudFormation. fixes #13908
…ypes (#14562) The defaults documented for `maxRecordAge` and `retryAttempts` properties for event sources that are 'stream' type were documented incorrectly. The implementation falls back to the defaults provided by CloudFormation. fixes #13908 ---- *By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license*
|
…ypes (aws#14562) The defaults documented for `maxRecordAge` and `retryAttempts` properties for event sources that are 'stream' type were documented incorrectly. The implementation falls back to the defaults provided by CloudFormation. fixes aws#13908 ---- *By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license*
https://docs.aws.amazon.com/cdk/api/latest/docs/@aws-cdk_aws-lambda.EventSourceMappingOptions.html
There seems to be some inconsistencies in the default values specified for the
EventSourceMappingOptions
interface between TypeScript source and Web versions of the CDK package documentation.At least, these are the ones that I found:
maxRecordAge
@default Duration.days(7)
.-1
(infinite)retryAttempts
@default 10000
.-1
(infinite)Please make default values consistent between TypeScript and Web versions of the documentation as many of us rely on TypeScript LSP for documentation.
This is a 📕 documentation issue
The text was updated successfully, but these errors were encountered: