on-internet
← Community

Calling external Rest API from a Lambda function in java

Stack Overflow ·

I am trying to write a lambda function that takes information from lex input, and calls a rest api, passing that information as a parameter, returns a string, which i then want to send to lex as a response. It works as expected when run in eclipse, but when i upload the jar to amazon lambda, it is giving no error, but the output string is null. public class LambdaFunctionHandler implements RequestHandler<Map<String,Object>, Object> { @Override public Object handleRequest(Map<String,Object> input, Context context) { ValidationHook.LexRequest lexRequest= LexRequestFactory.createLexRequest(input)

Comments

Sign in or sign up to comment and upvote.

No comments yet.