| 3 | using namespace aws::lambda_runtime; |
| 4 | |
| 5 | static invocation_response my_handler(invocation_request const& req) |
| 6 | { |
| 7 | if (req.payload.length() > 42) { |
| 8 | return invocation_response::failure("error message here"/*error_message*/, |
| 9 | "error type here" /*error_type*/); |
| 10 | } |
| 11 | |
| 12 | return invocation_response::success("json payload here" /*payload*/, |
| 13 | "application/json" /*MIME type*/); |
| 14 | } |
| 15 | |
| 16 | int main() |
| 17 | { |
nothing calls this directly
no outgoing calls
no test coverage detected