Goa.Functions.EventBridge
0.0.3-preview.1
This is a prerelease version of Goa.Functions.EventBridge.
dotnet add package Goa.Functions.EventBridge --version 0.0.3-preview.1
NuGet\Install-Package Goa.Functions.EventBridge -Version 0.0.3-preview.1
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Goa.Functions.EventBridge" Version="0.0.3-preview.1" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Goa.Functions.EventBridge" Version="0.0.3-preview.1" />
<PackageReference Include="Goa.Functions.EventBridge" />
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add Goa.Functions.EventBridge --version 0.0.3-preview.1
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: Goa.Functions.EventBridge, 0.0.3-preview.1"
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package Goa.Functions.EventBridge@0.0.3-preview.1
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=Goa.Functions.EventBridge&version=0.0.3-preview.1&prerelease
#tool nuget:?package=Goa.Functions.EventBridge&version=0.0.3-preview.1&prerelease
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
Goa.Functions.EventBridge
Process Amazon EventBridge events in AWS Lambda with high performance and native AOT support. This package provides a streamlined way to handle EventBridge custom events, scheduled events, and event patterns with flexible processing modes and built-in error handling for enterprise event-driven architectures.
Quick Start
dotnet new install Goa.Templates
dotnet new goa.eventbridge -n "MyEventFunction"
Features
- Flexible Event Processing: Handle custom events, scheduled events, and AWS service events
- Type-Safe Event Handling: Strongly-typed event deserialization with full IntelliSense support
- Native AOT Ready: Optimized for ahead-of-time compilation with minimal cold starts
- Error Handling: Mark individual events as failed for proper error tracking
- Dependency Injection: Full integration with .NET's dependency injection container
- JSON Deserialization: Built-in support for deserializing Detail property to custom types
- Event Pattern Support: Process events from multiple sources and detail types
Basic Usage
using Goa.Functions.Core;
using Goa.Functions.EventBridge;
using Microsoft.Extensions.Hosting;
using System.Text.Json;
using System.Text.Json.Serialization;
await Host.CreateDefaultBuilder()
.UseLambdaLifecycle()
.ForEventBridge()
.ProcessOneAtATime()
.HandleWith<IOrderService>(async (service, evt) =>
{
// Process events based on source and detail type
if (evt.Source == "myapp.orders" && evt.DetailType == "Order Placed")
{
// Deserialize the Detail property to your custom type
var orderDetail = JsonSerializer.Deserialize(
JsonSerializer.Serialize(evt.Detail),
AppJsonContext.Default.OrderPlacedEvent);
await service.ProcessOrder(orderDetail!);
}
})
.RunAsync();
// Define your event detail types
public record OrderPlacedEvent(string OrderId, string CustomerId, decimal Amount);
public interface IOrderService
{
Task ProcessOrder(OrderPlacedEvent order);
}
// JSON source generation for AOT compatibility
[JsonSourceGenerationOptions(WriteIndented = false)]
[JsonSerializable(typeof(OrderPlacedEvent))]
public partial class AppJsonContext : JsonSerializerContext;
Documentation
For more information and examples, visit the main Goa documentation.
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net9.0 is compatible. 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. |
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
-
net10.0
- Goa.Functions.Core (>= 0.0.3-preview.1)
-
net9.0
- Goa.Functions.Core (>= 0.0.3-preview.1)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
Version | Downloads | Last Updated |
---|---|---|
0.0.3-preview.1 | 20 | 8/23/2025 |
0.0.2-preview.2.3 | 110 | 8/18/2025 |
0.0.2-preview.2.2 | 112 | 8/17/2025 |
0.0.2-preview.2.1 | 89 | 8/17/2025 |
0.0.2-preview.2 | 110 | 8/9/2025 |
0.0.0-alpha.0.32 | 88 | 12/7/2024 |
0.0.0-alpha.0.20 | 80 | 10/27/2024 |