Amazon.Lambda.APIGatewayEvents
2.7.3
Prefix Reserved
dotnet add package Amazon.Lambda.APIGatewayEvents --version 2.7.3
NuGet\Install-Package Amazon.Lambda.APIGatewayEvents -Version 2.7.3
<PackageReference Include="Amazon.Lambda.APIGatewayEvents" Version="2.7.3" />
<PackageVersion Include="Amazon.Lambda.APIGatewayEvents" Version="2.7.3" />
<PackageReference Include="Amazon.Lambda.APIGatewayEvents" />
paket add Amazon.Lambda.APIGatewayEvents --version 2.7.3
#r "nuget: Amazon.Lambda.APIGatewayEvents, 2.7.3"
#:package Amazon.Lambda.APIGatewayEvents@2.7.3
#addin nuget:?package=Amazon.Lambda.APIGatewayEvents&version=2.7.3
#tool nuget:?package=Amazon.Lambda.APIGatewayEvents&version=2.7.3
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,
};
}
}
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net5.0 was computed. net5.0-windows was computed. net6.0 was computed. net6.0-android was computed. net6.0-ios was computed. net6.0-maccatalyst was computed. net6.0-macos was computed. net6.0-tvos was computed. net6.0-windows was computed. net7.0 was computed. net7.0-android was computed. net7.0-ios was computed. net7.0-maccatalyst was computed. net7.0-macos was computed. net7.0-tvos was computed. net7.0-windows was computed. net8.0 is compatible. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. net9.0 was computed. net9.0-android was computed. net9.0-browser was computed. net9.0-ios was computed. net9.0-maccatalyst was computed. net9.0-macos was computed. net9.0-tvos was computed. net9.0-windows was computed. net10.0 was computed. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
| .NET Core | netcoreapp2.0 was computed. netcoreapp2.1 was computed. netcoreapp2.2 was computed. netcoreapp3.0 was computed. netcoreapp3.1 is compatible. |
| .NET Standard | netstandard2.0 is compatible. netstandard2.1 was computed. |
| .NET Framework | net461 was computed. net462 was computed. net463 was computed. net47 was computed. net471 was computed. net472 was computed. net48 was computed. net481 was computed. |
| MonoAndroid | monoandroid was computed. |
| MonoMac | monomac was computed. |
| MonoTouch | monotouch was computed. |
| Tizen | tizen40 was computed. tizen60 was computed. |
| Xamarin.iOS | xamarinios was computed. |
| Xamarin.Mac | xamarinmac was computed. |
| Xamarin.TVOS | xamarintvos was computed. |
| Xamarin.WatchOS | xamarinwatchos was computed. |
-
.NETCoreApp 3.1
- No dependencies.
-
.NETStandard 2.0
- Newtonsoft.Json (>= 13.0.1)
-
net8.0
- No dependencies.
NuGet packages (76)
Showing the top 5 NuGet packages that depend on Amazon.Lambda.APIGatewayEvents:
| Package | Downloads |
|---|---|
|
Amazon.Lambda.AspNetCoreServer
Amazon.Lambda.AspNetCoreServer makes it easy to run ASP.NET Core Web API applications as AWS Lambda functions. |
|
|
Amazon.Lambda.AspNetCoreServer.Hosting
Package for running ASP.NET Core applications using the Minimal API style as a AWS Lambda function. |
|
|
OpenTelemetry.Instrumentation.AWSLambda
AWS Lambda tracing wrapper for OpenTelemetry .NET. |
|
|
Epsagon.Dotnet.Instrumentation
Package Description |
|
|
Bisque.Aws
Tool to generate AWS CloudFormation json templates for Amazon AWS CloudFormation |
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 2.7.3 | 751,228 | 12/12/2025 |
| 2.7.2 | 241,298 | 11/6/2025 |
| 2.7.1 | 10,662,142 | 8/1/2024 |
| 2.7.0 | 12,593,558 | 10/26/2023 |
| 2.6.0 | 6,970,192 | 2/13/2023 |
| 2.5.0 | 4,995,548 | 6/28/2022 |
| 2.4.1 | 5,543,676 | 5/3/2022 |
| 2.4.0 | 10,655,980 | 12/4/2020 |
| 2.3.0 | 1,362,187 | 10/21/2020 |
| 2.2.0 | 460,711 | 9/30/2020 |
| 2.1.0 | 3,668,804 | 4/28/2020 |
| 2.0.0 | 1,179,369 | 3/31/2020 |
| 1.3.0 | 969,010 | 12/18/2019 |
| 1.2.0 | 3,429,642 | 2/7/2019 |
| 1.1.3 | 1,596,536 | 5/29/2018 |
| 1.1.2 | 272,885 | 2/5/2018 |
| 1.1.1 | 94,076 | 1/15/2018 |
| 1.1.0 | 193,755 | 4/26/2017 |
| 1.0.2 | 51,088 | 1/27/2017 |
| 1.0.1 | 19,302 | 12/21/2016 |