Skip to content

Commit 965ce24

Browse files
committed
Elaborate on the event and context parameters [skip ci]
1 parent 37813b0 commit 965ce24

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,8 @@ class Greet extends Handler {
3232
}
3333
```
3434

35+
The two parameters passed are *$event* (a value [depending on where the lambda was invoked from](https://docs.aws.amazon.com/lambda/latest/dg/lambda-services.html)) and *$context* (a Context instance, see [below](https://github.com/xp-forge/lambda#context)).
36+
3537
If you need to run any initialization code, you can do before returning the lambda from *target()*. This code is only run once during the initialization phase.
3638

3739
Development

0 commit comments

Comments
 (0)