Skip to content

Instantly share code, notes, and snippets.

@jkutner
Last active May 13, 2019 20:40
Show Gist options
  • Save jkutner/a713eb396efcafea7aa559b8f7a594c4 to your computer and use it in GitHub Desktop.
Save jkutner/a713eb396efcafea7aa559b8f7a594c4 to your computer and use it in GitHub Desktop.
package example;
import com.amazonaws.services.lambda.runtime.Context;
import com.amazonaws.services.lambda.runtime.RequestHandler;
public class HelloPojo implements RequestHandler<RequestClass, ResponseClass>{
public ResponseClass handleRequest(RequestClass request, Context context){
String greetingString = String.format("Hello %s, %s.", request.firstName, request.lastName);
return new ResponseClass(greetingString);
}
}
exports.myHandler = async function(event, context) {
console.log("value1 = " + event.key1);
console.log("value2 = " + event.key2);
return "some success message";
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment