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.
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.