[aws-lambda-python] example code does not work, using wrong libraries #10229
Labels
@aws-cdk/aws-lambda-python
documentation
This is a problem with documentation.
effort/small
Small work item – less than a day of effort
feature-request
A feature should be added or improved.
good first issue
Related to contributions. See CONTRIBUTING.md
in-progress
This issue is being actively worked on.
p2
link to reference doc page: https://docs.aws.amazon.com/cdk/api/latest/docs/aws-lambda-python-readme.html
describe your issue:
The docs refer to
lambda.PythonFunction
when that is a part of theaws-lambda-python
module and notaws-lambda
. Then 3 lines later refer tolambda.Runtime.PYTHON_3_6
when that is a part of theaws-lambda
module. So it seems for this code to work you must import bothaws-lambda-python
andaws-lambda
in the same namespace oflambda
This is a 📕 documentation issue
The text was updated successfully, but these errors were encountered: