Amazon.Lambda.APIGatewayEvents
3.0.0
Prefix Reserved
dotnet add package Amazon.Lambda.APIGatewayEvents --version 3.0.0
NuGet\Install-Package Amazon.Lambda.APIGatewayEvents -Version 3.0.0
<PackageReference Include="Amazon.Lambda.APIGatewayEvents" Version="3.0.0" />
<PackageVersion Include="Amazon.Lambda.APIGatewayEvents" Version="3.0.0" />
<PackageReference Include="Amazon.Lambda.APIGatewayEvents" />
paket add Amazon.Lambda.APIGatewayEvents --version 3.0.0
#r "nuget: Amazon.Lambda.APIGatewayEvents, 3.0.0"
#:package Amazon.Lambda.APIGatewayEvents@3.0.0
#addin nuget:?package=Amazon.Lambda.APIGatewayEvents&version=3.0.0
#tool nuget:?package=Amazon.Lambda.APIGatewayEvents&version=3.0.0
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 | 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 is compatible. 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. |
-
net10.0
- No dependencies.
-
net8.0
- No dependencies.
NuGet packages (79)
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 (15)
Showing the top 15 popular GitHub repositories that depend on Amazon.Lambda.APIGatewayEvents:
| Repository | Stars |
|---|---|
|
mongodb/mongo-csharp-driver
The Official C# .NET Driver for MongoDB
|
|
|
dotnet/dotnet
Home of .NET's Virtual Monolithic Repository which includes all the code needed to build the .NET SDK.
|
|
|
open-telemetry/opentelemetry-dotnet-contrib
This repository contains set of components extending functionality of the OpenTelemetry .NET SDK. Instrumentation libraries, exporters, and other components can find their home here.
|
|
|
DataDog/dd-trace-dotnet
.NET Client Library for Datadog APM
|
|
|
aws/aws-extensions-for-dotnet-cli
Extensions to the dotnet CLI to simplify the process of building and publishing .NET Core applications to AWS services
|
|
|
axzxs2001/Asp.NetCoreExperiment
原来所有项目都移动到**OleVersion**目录下进行保留。新的案例装以.net 5.0为主,一部分对以前案例进行升级,一部分将以前的工作经验总结出来,以供大家参考!
|
|
|
Elfocrash/aws-videos
|
|
|
aws-powertools/powertools-lambda-dotnet
Powertools is a developer toolkit to implement Serverless best practices and increase developer velocity.
|
|
|
PowerShellOrg/tug
Open-source, cross-platform Pull/Reporting Server for DSC
|
|
|
aws-samples/serverless-dotnet-demo
|
|
|
aws/integrations-on-dotnet-aspire-for-aws
This repositry contains the integrations with .NET Aspire for AWS.
|
|
|
newrelic/newrelic-dotnet-agent
The New Relic .NET language agent.
|
|
|
hlaueriksson/CommandQuery
Command Query Separation for 🌐ASP.NET Core ⚡AWS Lambda ⚡Azure Functions ⚡Google Cloud Functions
|
|
|
Particular/docs.particular.net
All content for ParticularDocs
|
|
|
LambdaSharp/LambdaSharpTool
Serverless .NET on AWS - λ# is a CLI and Framework for Rapid Application Development using .NET on AWS
|
| Version | Downloads | Last Updated |
|---|---|---|
| 3.0.0 | 13,540 | 5/7/2026 |
| 2.7.3 | 1,431,907 | 12/12/2025 |
| 2.7.2 | 293,665 | 11/6/2025 |
| 2.7.1 | 11,679,751 | 8/1/2024 |
| 2.7.0 | 13,601,810 | 10/26/2023 |
| 2.6.0 | 7,130,179 | 2/13/2023 |
| 2.5.0 | 5,114,393 | 6/28/2022 |
| 2.4.1 | 5,643,241 | 5/3/2022 |
| 2.4.0 | 10,812,134 | 12/4/2020 |
| 2.3.0 | 1,374,097 | 10/21/2020 |
| 2.2.0 | 464,180 | 9/30/2020 |
| 2.1.0 | 3,693,796 | 4/28/2020 |
| 2.0.0 | 1,187,041 | 3/31/2020 |
| 1.3.0 | 973,541 | 12/18/2019 |
| 1.2.0 | 3,452,283 | 2/7/2019 |
| 1.1.3 | 1,606,811 | 5/29/2018 |
| 1.1.2 | 274,925 | 2/5/2018 |
| 1.1.1 | 94,562 | 1/15/2018 |
| 1.1.0 | 193,952 | 4/26/2017 |
| 1.0.2 | 51,117 | 1/27/2017 |