File tree 2 files changed +6
-2
lines changed 2 files changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -68,7 +68,7 @@ static invocation_response my_handler(invocation_request const& req)
68
68
"error type here" /*error_type*/);
69
69
}
70
70
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*/,
72
72
"application/json" /*MIME type*/);
73
73
}
74
74
@@ -139,6 +139,10 @@ And to invoke the function:
139
139
``` bash
140
140
$ aws lambda invoke --function-name demo --cli-binary-format raw-in-base64-out --payload ' {"answer":42}' output.txt
141
141
```
142
+
143
+ You can update your supplied function:
144
+ ``` bash
145
+ $ aws lambda update-function-code --function-name demo --zip-file fileb://demo.zip
142
146
```
143
147
144
148
## Using the C++ SDK for AWS with this runtime
Original file line number Diff line number Diff line change @@ -9,7 +9,7 @@ static invocation_response my_handler(invocation_request const& req)
9
9
" error type here" /* error_type*/ );
10
10
}
11
11
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*/ ,
13
13
" application/json" /* MIME type*/ );
14
14
}
15
15
You can’t perform that action at this time.
0 commit comments