generated from amazon-archives/__template_Apache-2.0
-
Notifications
You must be signed in to change notification settings - Fork 33
Closed
Labels
feature-requestNew or enhancements to existing featuresNew or enhancements to existing featuresreleasedFix or implementation already in main and releasedFix or implementation already in main and released
Description
Use case
Add support for AppSync Events
Solution/User Experience
using AWS.Lambda.Powertools.EventHandler.AppSyncEvents;
public class Function
{
AppSyncEventsResolver _app;
public Function()
{
_app = new AppSyncEventsResolver();
_app.OnPublishAsync("/default/channel", async (payload) =>
{
// Handle events or
// return unchanged payload
return payload;
});
}
public async Task<AppSyncEventsResponse> FunctionHandler(AppSyncEventsRequest input, ILambdaContext context)
{
return await _app.ResolveAsync(input, context);
}
}
Alternative solutions
Acknowledgment
- This feature request meets Powertools for AWS Lambda (.NET) Tenets
- Should this be considered in other Powertools for AWS Lambda languages? i.e. Python, Java, and TypeScript
lachriz-aws
Metadata
Metadata
Assignees
Labels
feature-requestNew or enhancements to existing featuresNew or enhancements to existing featuresreleasedFix or implementation already in main and releasedFix or implementation already in main and released
Type
Projects
Status
🚀 Shipped