The Event and Output types define your input and output objects. If you are using an APIGateway REST interface to invoke your Lambda then set these to APIGatewayRequest and APIGatewayResponse respectively. If you are using an APIGateway HTML interface then set these to APIGatewayV2Request and APIGatewayV2Response. If you are using any other Event/Output types you will need to implement the request(context:application:from:) and output(from:) methods yourself.
Hummingbird Lambda
Run Hummingbird inside an AWS Lambda
Usage
Create struct conforming to
HBLambda. Setup your application in theinitfunction: add your middleware, add route handlers etcThe
EventandOutputtypes define your input and output objects. If you are using anAPIGatewayREST interface to invoke your Lambda then set these toAPIGatewayRequestandAPIGatewayResponserespectively. If you are using anAPIGatewayHTML interface then set these toAPIGatewayV2RequestandAPIGatewayV2Response. If you are using any otherEvent/Outputtypes you will need to implement therequest(context:application:from:)andoutput(from:)methods yourself.