Last active
July 24, 2021 16:43
-
-
Save learnit-codeit/4c2f01806c9d0d6e17fa1a2c414bd626 to your computer and use it in GitHub Desktop.
This file contains 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 com.lici.lambda; | |
import java.util.Map; | |
import com.amazonaws.services.lambda.runtime.Context; | |
import com.amazonaws.services.lambda.runtime.LambdaLogger; | |
import com.amazonaws.services.lambda.runtime.RequestHandler; | |
public class MainHandler implements RequestHandler<Map<String,String>, String>{ | |
@Override | |
public String handleRequest(Map<String,String> event, Context context) | |
{ | |
LambdaLogger logger = context.getLogger(); | |
String response = new String("200 OK"); | |
logger.log("This is a sample lambda testing....\n"); | |
logger.log("Created By: Anish Antony\n"); | |
return response; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment