January 2019
Intermediate to advanced
490 pages
15h 37m
English
We will use a simple Lambda function, following the Lambda proxy integration example provided by AWS. We will only discuss the important code snippets that are used inside of the Lambda function within this chapter. However, you can refer to the code files for the complete code.
The Lambda Handler class implements the RequestStreamHandler interface, as follows:
public class ProxyStreamHandlerLambda implements RequestStreamHandler {
Along with the Context object, the handler method accepts the InputStream and OutputStream:
public final void handleRequest(final InputStream inputStream, final OutputStream outputStream, final Context context) throws IOException {
We can parse the InputStream to ...
Read now
Unlock full access