What is the exact event type from the @types/aws-lambda package for a Lambda function hosted using function URL?
Question posted in Amazon Web Sevices
The official Amazon Web Services documentation can be found here.
The official Amazon Web Services documentation can be found here.
2
Answers
In .NET, following request and response objects are used when using Lambda with Function URLs.
You can find similar in typescript.
Probably
APIGatewayEventRequestContextV2
should be the respective one. Anyway, you can explore all the available types here at api-gateway-proxy.d.ts.The Lambda Function URL request and response events use the Amazon API Gateway payload format version 2.0.
The corresponding TypeScript types are
APIGatewayProxyEventV2
(request) andAPIGatewayProxyResultV2<T>
(response) in the @types/aws-lambda package.