AWS Lambda
Developer Guide

Building Lambda Functions with C#

The following sections explain how common programming patterns and core concepts apply when authoring Lambda function code in C#.

.NET Runtimes

Name Identifier Languages

.NET Core 2.1

dotnetcore2.1

C#

PowerShell Core 6.0

.NET Core 2.0

dotnetcore2.0

C#

.NET Core 1.0

dotnetcore1.0

C#

Additionally, note that AWS Lambda provides the following:

  • Amazon.Lambda.Core – This library provides a static Lambda logger, serialization interfaces and a context object. The Context object (AWS Lambda Context Object in C#) provides runtime information about your Lambda function.

  • Amazon.Lambda.Serialization.Json – This an implementation of the serialization interface in Amazon.Lambda.Core.

  • Amazon.Lambda.Logging.AspNetCore – This provides a library for logging from ASP.NET.

  • Event objects (POCOs) for several AWS services, including:

    • Amazon.Lambda.APIGatewayEvents

    • Amazon.Lambda.CognitoEvents

    • Amazon.Lambda.ConfigEvents

    • Amazon.Lambda.DynamoDBEvents

    • Amazon.Lambda.KinesisEvents

    • Amazon.Lambda.S3Events

    • Amazon.Lambda.SQSEvents

    • Amazon.Lambda.SNSEvents

These packages are available at Nuget Packages.