Skip to content

Commit

Permalink
chore(aws-lambda-python): Resolved error in documented example
Browse files Browse the repository at this point in the history
  • Loading branch information
justin8 committed Sep 8, 2020
1 parent 40222ef commit 06509f9
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion packages/@aws-cdk/aws-lambda-python/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,10 @@ To use this module, you will need to have Docker installed.
Define a `PythonFunction`:

```ts
new lambda.PythonFunction(this, 'MyFunction', {
import * as lambda from "@aws-cdk/aws-lambda";
import { PythonFunction } from "@aws-cdk/aws-lambda-python"

new PythonFunction(this, 'MyFunction', {
entry: '/path/to/my/function', // required
index: 'my_index.py', // optional, defaults to 'index.py'
handler: 'my_exported_func', // optional, defaults to 'handler'
Expand Down

0 comments on commit 06509f9

Please sign in to comment.