AWS Lambda runtime libraries and dotnet new templates for .NET 10, built around explicit handler contracts, dependency injection, configuration, logging, cancellation, and source-specific AWS semantics.
The library has three semantic roots:
EventFunction<TInput, THandler>for one-way events.RequestFunction<TInput, TOutput, THandler>for request/response functions.RecordFunction<...>for integrations that process multiple records per invocation.
AWS-specific packages specialize those roots for EventBridge, SQS, SNS, DynamoDB Streams, Kinesis Streams, S3, and Cognito.
Start with Choosing a Function Model or browse the documentation.
dotnet new install Kralizek.Lambda.Templates
dotnet new list lambda-templateSee Project Templates for the supported templates and when to use each one.
The template options are independent where supported: --minimal selects lean hosting for source-neutral Request/Event templates, --raw chooses the record/payload shape, --aot chooses executable hosting and source-generated Lambda serialization, and --otel adds Lambda invocation instrumentation.
Kralizek.Lambda.Templates is the easiest entry point when starting a new Lambda function. The generated project references the runtime package appropriate for the selected template.
| Package | Stable | Latest | Downloads | Purpose |
|---|---|---|---|---|
Kralizek.Lambda.Templates |
dotnet new templates for the supported Lambda function models and AWS event sources. |
|||
Kralizek.Lambda.Template.Abstractions |
Runtime-independent handler contracts, contexts, record results and payload-decoder abstractions. | |||
Kralizek.Lambda.Template |
Core Lambda runtime, including Event, Request and Record function models, lifecycle, dependency injection and framework telemetry. | |||
Kralizek.Lambda.Template.Cognito |
Cognito User Pool trigger specializations and handler contracts. | |||
Kralizek.Lambda.Template.DynamoDbStreams |
DynamoDB Streams record processing and partial-batch response support. | |||
Kralizek.Lambda.Template.EventBridge |
EventBridge event-envelope specialization and source-specific context. | |||
Kralizek.Lambda.Template.KinesisStreams |
Kinesis Streams record processing, payload decoding and checkpoint/partial-batch behavior. | |||
Kralizek.Lambda.Template.S3 |
Native S3 event notifications and S3 Batch Operations. | |||
Kralizek.Lambda.Template.Sns |
SNS notification processing and payload decoding. | |||
Kralizek.Lambda.Template.Sqs |
SQS message processing, payload decoding and partial-batch response support. |
The template package and all runtime packages use the same package version for a given release. For most applications, install Kralizek.Lambda.Templates and let the selected template choose the runtime package.