-
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-cognito): Lambda Trigger lambda.Code.fromInline() example should be valid #12930
Comments
You make a good point @douglasnaphas. We should just use code: ... Feel free to submit a PR for this. |
|
https://docs.aws.amazon.com/cdk/api/latest/docs/aws-cognito-readme.html#lambda-triggers
The code sample at the above link has
and
The argument to lambda.Code.fromInline is supposed to be valid function code, like in the example at Lambda with DLQ:
It is confusing for readers to have something syntactically invalid like
lambda.Code.fromInline('auth challenge')
in the docs. We should replace'auth challenge'
and'user migration'
with syntactically valid function code, or use lambda.Code.fromAsset instead offromInline
.This is a 📕 documentation issue
The text was updated successfully, but these errors were encountered: