Amazon.Lambda.APIGatewayEvents 3.0.1
Amazon.Lambda.APIGatewayEvents
This package contains classes that can be used as input types for Lambda functions that process Amazon API Gateway events.
API Gateway events consist of a request that was routed to a Lambda function by API Gateway. When this happens, API Gateway expects the result of the function to be the response that API Gateway should respond with. To see a more detailed example of this, take a look at the Amazon.Lambda.AspNetCoreServer README.md file.
Classes
| Class | Description |
|---|---|
| APIGatewayProxyRequest | Represents proxy request coming from REST API, HTTP API payload format 1.0 or WebSocket API. |
| APIGatewayProxyResponse | The return object for functions handling requests for REST API, HTTP API payload format 1.0 or WebSocket API. |
| APIGatewayHttpApiV2ProxyRequest | Represents proxy request coming from HTTP API payload format 2.0. |
| APIGatewayHttpApiV2ProxyResponse | The return object for functions handling requests for HTTP API payload format 2.0. |
Sample Functions
The following is a sample class and Lambda function that receives Amazon API Gateway event record data as an input, writes some of the record data to CloudWatch Logs, and responds with a 200 status and the same body as the request. (Note that by default anything written to Console will be logged as CloudWatch Logs events.)
Function handler
public class Function
{
public APIGatewayProxyResponse Handler(APIGatewayProxyRequest apigProxyEvent)
{
Console.WriteLine($"Processing request data for request {apigProxyEvent.RequestContext.RequestId}.");
Console.WriteLine($"Body size = {apigProxyEvent.Body.Length}.");
var headerNames = string.Join(", ", apigProxyEvent.Headers.Keys);
Console.WriteLine($"Specified headers = {headerNames}.");
return new APIGatewayProxyResponse
{
Body = apigProxyEvent.Body,
StatusCode = 200,
};
}
}
Showing the top 20 packages that depend on Amazon.Lambda.APIGatewayEvents.
| Packages | Downloads |
|---|---|
|
Amazon.Lambda.AspNetCoreServer.Hosting
Package for running ASP.NET Core applications using the Minimal API style as a AWS Lambda function.
|
66 |
|
Amazon.Lambda.AspNetCoreServer
Amazon.Lambda.AspNetCoreServer makes it easy to run ASP.NET Core Web API applications as AWS Lambda functions.
|
41 |
|
Amazon.Lambda.AspNetCoreServer
Amazon.Lambda.AspNetCoreServer makes it easy to run ASP.NET Core Web API applications as AWS Lambda functions.
|
33 |
|
Amazon.Lambda.AspNetCoreServer
Amazon.Lambda.AspNetCoreServer makes it easy to run ASP.NET Core Web API applications as AWS Lambda functions.
|
30 |
|
Amazon.Lambda.AspNetCoreServer
Amazon.Lambda.AspNetCoreServer makes it easy to run ASP.NET Core Web API applications as AWS Lambda functions.
|
29 |
|
Amazon.Lambda.AspNetCoreServer
Amazon.Lambda.AspNetCoreServer makes it easy to run ASP.NET Core Web API applications as AWS Lambda functions.
|
28 |
|
Amazon.Lambda.AspNetCoreServer
Amazon.Lambda.AspNetCoreServer makes it easy to run ASP.NET Core Web API applications as AWS Lambda functions.
|
27 |
|
Amazon.Lambda.AspNetCoreServer
Amazon.Lambda.AspNetCoreServer makes it easy to run ASP.NET Core Web API applications as AWS Lambda functions.
|
26 |
|
Amazon.Lambda.AspNetCoreServer
Amazon.Lambda.AspNetCoreServer makes it easy to run ASP.NET Core Web API applications as AWS Lambda functions.
|
25 |
.NET 10.0
- No dependencies.
.NET 8.0
- No dependencies.
| Version | Downloads | Last updated |
|---|---|---|
| 3.0.1 | 32 | 08/18/2026 |
| 3.0.0 | 34 | 05/14/2026 |
| 2.7.3 | 26 | 12/22/2025 |
| 2.7.2 | 28 | 01/27/2026 |
| 2.7.1 | 30 | 08/10/2024 |
| 2.7.0 | 24 | 01/09/2024 |
| 2.6.0 | 41 | 01/09/2024 |
| 2.5.0 | 30 | 01/07/2024 |
| 2.4.1 | 34 | 01/09/2024 |
| 2.4.0 | 27 | 12/12/2023 |
| 2.3.0 | 26 | 01/08/2024 |
| 2.2.0 | 23 | 12/12/2023 |
| 2.1.0 | 35 | 01/08/2024 |
| 2.0.0 | 30 | 01/11/2024 |
| 1.3.0 | 38 | 01/09/2024 |
| 1.2.0 | 23 | 01/09/2024 |
| 1.1.3 | 22 | 01/09/2024 |
| 1.1.2 | 25 | 01/09/2024 |
| 1.1.1 | 25 | 12/21/2023 |
| 1.1.0 | 22 | 01/06/2024 |
| 1.0.2 | 22 | 01/09/2024 |
| 1.0.1 | 23 | 01/09/2024 |
| 1.0.0 | 23 | 01/09/2024 |