Accessing an AWS Lambda function from a java web application application is done over Https or Http

耗尽温柔 提交于 2019-12-25 03:39:30

问题


I am accessing a lambda function from my java code and I would like to know if I am using Https or Https for that request. How can I do that.

This is how my method looks like.

public interface FileScanService {

   @LambdaFunction( functionName = "s3-antivirus-api-scan" )
   public FileScanOutput scanFile( FileScanInput fileScanInput );
}

PS: this method is fully functional.


回答1:


UPDATE: See the comment by Michael below. It turns out there is a way how to do it directly via HTTPS.

A Lambda function is not invoked directly via HTTP, so the answer to your question is neither. Instead, it is invoked by one or more of the event sources.

It can however sit behind an API Gateway which would enable it being (indirectly) invoked by an HTTP request. In that case, the request is transformed into an invocation event and that is what your Lambda function operates with.



来源:https://stackoverflow.com/questions/54222939/accessing-an-aws-lambda-function-from-a-java-web-application-application-is-done

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!