java-tutorials/aws/src/main/java/com/baeldung/lambda/LambdaRequestHandler.java

12 lines
390 B
Java
Raw Normal View History

2017-01-04 19:48:40 +01:00
package com.baeldung.lambda;
2016-12-29 23:16:46 +05:30
import com.amazonaws.services.lambda.runtime.Context;
import com.amazonaws.services.lambda.runtime.RequestHandler;
public class LambdaRequestHandler implements RequestHandler<String, String> {
public String handleRequest(String input, Context context) {
context.getLogger().log("Input: " + input);
return "Hello World - " + input;
}
}