Skip to content

Commit

Permalink
fix: Update interface for CDKv2 (awsdocs#385)
Browse files Browse the repository at this point in the history
  • Loading branch information
suhasgaddam-trueaccord authored Feb 15, 2022
1 parent b7adfe3 commit d2f239b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions v2/sam.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ The instructions here apply to the current \(non\-preview\) version of the AWS S
new lambda.Function(this, 'MyFunction', {
runtime: lambda.Runtime.PYTHON_3_7,
handler: 'app.lambda_handler',
code: lambda.Code.asset('./my_function'),
code: lambda.Code.fromAsset('./my_function'),
});
```

Expand Down Expand Up @@ -74,4 +74,4 @@ The instructions here apply to the current \(non\-preview\) version of the AWS S
REPORT RequestId: 52fdfc07-2182-154f-163f-5f0f9a621d72 Duration: 3.70 ms Billed Duration: 100 ms Memory Size: 128 MB Max Memory Used: 22 MB
"This is a Lambda Function defined through CDK"
```
```

0 comments on commit d2f239b

Please sign in to comment.