What is the exact event type from the @types/aws-lambda package for a Lambda function hosted using function URL?
- June 13, 2023
- 233 views
- 0 votes
- 2 Answers
-
What is the exact event type from the @types/aws-lambda package for a Lambda function hosted using function URL?
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.