Repository navigation
Conversation
|
Hello again, I've updated this pull request to add an example use case in the readme in order for this to pass the validate-pr step. I'm happy to make any further amendments if needed. Thanks! 👍 |
|
Hello, I've updated the branch a few times due to it being out of date with the Thanks. 🙂 |
AWS CodeBuild CI Report
Powered by github-codebuild-logs, available on the AWS Serverless Application Repository |
|
Hi @ben-eb, You do not need to update the branch regularly, unless you need the new updates on master. Our automation will take care of doing so once approved. |
| /** | ||
| * The timeout configured for this lambda. | ||
| */ | ||
| public readonly timeout?: Duration; |
There was a problem hiding this comment.
What do you think about returning the default value here instead of undefined?
There was a problem hiding this comment.
For our needs, an optional value is OK because we could throw an exception if the timeout was not defined.
A non-optional value would be a better API but this value is not guaranteed to be in the CloudFormation template. As such, if the default were changed in the future it might lead to CDK reporting a timeout value different to the one deployed to Lambda.
However, I'm happy to make that change if you're OK with this caveat. 👍
There was a problem hiding this comment.
Ok, fair enough. Let's leave it as is.
|
Thank you for contributing! Your pull request will be updated from master and then merged automatically (do not update manually, and be sure to allow changes to be pushed to your fork). |
Supersedes #17000. I didn't realise that the "allow edits by maintainers" was not supported under organisation accounts, so I've forked under my account instead. Otherwise, these changes are the same as the linked PR. Thanks! 👍 ---- *By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license*
Supersedes aws#17000. I didn't realise that the "allow edits by maintainers" was not supported under organisation accounts, so I've forked under my account instead. Otherwise, these changes are the same as the linked PR. Thanks! 👍 ---- *By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license*
Supersedes aws#17000. I didn't realise that the "allow edits by maintainers" was not supported under organisation accounts, so I've forked under my account instead. Otherwise, these changes are the same as the linked PR. Thanks! 👍 ---- *By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license*
Supersedes aws#17000. I didn't realise that the "allow edits by maintainers" was not supported under organisation accounts, so I've forked under my account instead. Otherwise, these changes are the same as the linked PR. Thanks! 👍 ---- *By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license*
Supersedes aws#17000. I didn't realise that the "allow edits by maintainers" was not supported under organisation accounts, so I've forked under my account instead. Otherwise, these changes are the same as the linked PR. Thanks! 👍 ---- *By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license*
Hello 👋
We would like to keep the timeout in sync between CloudWatch and Lambda, to avoid false positives. Currently, we are writing code like the following:
It would be really nice to be able to do
myLambda.timeout.toMilliseconds()instead, as we can't currently validate that the timeout being passed in is from that particular lambda function.This fixes #16047.
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license