Last active
May 13, 2019 20:40
-
-
Save jkutner/a713eb396efcafea7aa559b8f7a594c4 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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); | |
} | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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