Skip to content

Commit d63a165

Browse files
minor docs update
* use proper JSON in example * add hint on how to update example Lambda
1 parent 420a370 commit d63a165

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

README.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ static invocation_response my_handler(invocation_request const& req)
6868
"error type here" /*error_type*/);
6969
}
7070

71-
return invocation_response::success("json payload here" /*payload*/,
71+
return invocation_response::success("{\"message:\":\"I fail if body length is bigger than 42!\"}" /*payload*/,
7272
"application/json" /*MIME type*/);
7373
}
7474

@@ -139,6 +139,10 @@ And to invoke the function:
139139
```bash
140140
$ aws lambda invoke --function-name demo --cli-binary-format raw-in-base64-out --payload '{"answer":42}' output.txt
141141
```
142+
143+
You can update your supplied function:
144+
```bash
145+
$ aws lambda update-function-code --function-name demo --zip-file fileb://demo.zip
142146
```
143147

144148
## Using the C++ SDK for AWS with this runtime

examples/demo/main.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ static invocation_response my_handler(invocation_request const& req)
99
"error type here" /*error_type*/);
1010
}
1111

12-
return invocation_response::success("json payload here" /*payload*/,
12+
return invocation_response::success("{\"message:\":\"I fail if body length is bigger than 42!\"}" /*payload*/,
1313
"application/json" /*MIME type*/);
1414
}
1515

0 commit comments

Comments
 (0)