Class LambdaApp

  • All Implemented Interfaces:
    com.amazonaws.services.lambda.runtime.RequestHandler<com.amazonaws.services.lambda.runtime.events.APIGatewayProxyRequestEvent,​com.amazonaws.services.lambda.runtime.events.APIGatewayProxyResponseEvent>

    public class LambdaApp
    extends Object
    implements com.amazonaws.services.lambda.runtime.RequestHandler<com.amazonaws.services.lambda.runtime.events.APIGatewayProxyRequestEvent,​com.amazonaws.services.lambda.runtime.events.APIGatewayProxyResponseEvent>
    This is the entry point for the middleware Lambda function that is responsible for cross-cutting concerns for the business Lambda function which is called from the is Lambda function once all cross-cutting concerns are addressed. The middleware Lambda function receives the APIGatewayProxyRequestEvent from the API Gateway and returns the APIGatewayProxyResponseEvent to the API Gateway.
    Author:
    Steve Hu
    • Constructor Detail

      • LambdaApp

        public LambdaApp()
    • Method Detail

      • handleRequest

        public com.amazonaws.services.lambda.runtime.events.APIGatewayProxyResponseEvent handleRequest​(com.amazonaws.services.lambda.runtime.events.APIGatewayProxyRequestEvent apiGatewayProxyRequestEvent,
                                                                                                       com.amazonaws.services.lambda.runtime.Context context)
        Specified by:
        handleRequest in interface com.amazonaws.services.lambda.runtime.RequestHandler<com.amazonaws.services.lambda.runtime.events.APIGatewayProxyRequestEvent,​com.amazonaws.services.lambda.runtime.events.APIGatewayProxyResponseEvent>