MCPcopy Create free account
hub / github.com/awslabs/aws-lambda-cpp / my_handler

Function my_handler

examples/demo/main.cpp:5–14  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3using namespace aws::lambda_runtime;
4
5static 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
16int main()
17{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected