Skip to content

Commit

Permalink
Update packages/@aws-cdk/aws-lambda/README.md
Browse files Browse the repository at this point in the history
Co-authored-by: Niranjan Jayakar <nija@amazon.com>
  • Loading branch information
flemjame-at-amazon and Niranjan Jayakar authored May 21, 2020
1 parent 1d7f416 commit d187187
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/@aws-cdk/aws-lambda/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,8 @@ functions will use an autogenerated Role if one is not provided.

The autogenerated Role is automatically given permissions to execute the Lambda
function. To reference the autogenerated Role:
```

```ts
const fn = new lambda.Function(this, 'MyFunction', {
runtime: lambda.Runtime.NODEJS_10_X,
handler: 'index.handler',
Expand Down

0 comments on commit d187187

Please sign in to comment.