Amazon.Lambda.APIGatewayEvents 2.5.0 The ID prefix of this package has been reserved for one of the owners of this package by NuGet.org. Prefix Reserved

.NET Core 3.1 .NET Standard 2.0
Install-Package Amazon.Lambda.APIGatewayEvents -Version 2.5.0
dotnet add package Amazon.Lambda.APIGatewayEvents --version 2.5.0
<PackageReference Include="Amazon.Lambda.APIGatewayEvents" Version="2.5.0" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Amazon.Lambda.APIGatewayEvents --version 2.5.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: Amazon.Lambda.APIGatewayEvents, 2.5.0"
#r directive can be used in F# Interactive, C# scripting and .NET Interactive. Copy this into the interactive tool or source code of the script to reference the package.
// Install Amazon.Lambda.APIGatewayEvents as a Cake Addin
#addin nuget:?package=Amazon.Lambda.APIGatewayEvents&version=2.5.0

// Install Amazon.Lambda.APIGatewayEvents as a Cake Tool
#tool nuget:?package=Amazon.Lambda.APIGatewayEvents&version=2.5.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.

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
.NET net5.0 net5.0-windows net6.0 net6.0-android net6.0-ios net6.0-maccatalyst net6.0-macos net6.0-tvos net6.0-windows
.NET Core netcoreapp2.0 netcoreapp2.1 netcoreapp2.2 netcoreapp3.0 netcoreapp3.1
.NET Standard netstandard2.0 netstandard2.1
.NET Framework net461 net462 net463 net47 net471 net472 net48
MonoAndroid monoandroid
MonoMac monomac
MonoTouch monotouch
Tizen tizen40 tizen60
Xamarin.iOS xamarinios
Xamarin.Mac xamarinmac
Xamarin.TVOS xamarintvos
Xamarin.WatchOS xamarinwatchos
Compatible target framework(s)
Additional computed target framework(s)
Learn more about Target Frameworks and .NET Standard.
  • .NETCoreApp 3.1

    • No dependencies.
  • .NETStandard 2.0

NuGet packages (46)

Showing the top 5 NuGet packages that depend on Amazon.Lambda.APIGatewayEvents:

Package Downloads
Amazon.Lambda.AspNetCoreServer The ID prefix of this package has been reserved for one of the owners of this package by NuGet.org.

Amazon.Lambda.AspNetCoreServer makes it easy to run ASP.NET Core Web API applications as AWS Lambda functions.

Bisque.Aws

Tool to generate AWS CloudFormation json templates for Amazon AWS CloudFormation

Xerris.DotNet.Core.Aws

Package Description

Amazon.Lambda.AspNetCoreServer.Hosting The ID prefix of this package has been reserved for one of the owners of this package by NuGet.org.

Package for running ASP.NET Core applications using the Minimal API style as a AWS Lambda function.

Epsagon.Dotnet.Instrumentation

Package Description

GitHub repositories (4)

Showing the top 4 popular GitHub repositories that depend on Amazon.Lambda.APIGatewayEvents:

Repository Stars
aws/aws-lambda-dotnet
Libraries, samples and tools to help .NET Core developers develop AWS Lambda functions.
axzxs2001/Asp.NetCoreExperiment
原来所有项目都移动到**OleVersion**目录下进行保留。新的案例装以.net 5.0为主,一部分对以前案例进行升级,一部分将以前的工作经验总结出来,以供大家参考!
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
DataDog/dd-trace-dotnet
.NET Tracer for Datadog APM
Version Downloads Last updated
2.5.0 36,570 6/28/2022
2.4.1 276,117 5/3/2022
2.4.0 4,465,361 12/4/2020
2.3.0 780,261 10/21/2020
2.2.0 262,952 9/30/2020
2.1.0 1,914,231 4/28/2020
2.0.0 702,414 3/31/2020
1.3.0 741,704 12/18/2019
1.2.0 2,402,504 2/7/2019
1.1.3 1,316,399 5/29/2018
1.1.2 219,868 2/5/2018
1.1.1 80,472 1/15/2018
1.1.0 174,439 4/26/2017
1.0.2 43,813 1/27/2017
1.0.1 15,494 12/21/2016
1.0.0 14,098 12/1/2016