Skip to content

Feature request: AppSync Events support #859

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
2 tasks done
hjgraca opened this issue Apr 24, 2025 · 0 comments
Closed
2 tasks done

Feature request: AppSync Events support #859

hjgraca opened this issue Apr 24, 2025 · 0 comments
Assignees
Labels
feature-request New or enhancements to existing features released Fix or implementation already in main and released

Comments

@hjgraca
Copy link
Contributor

hjgraca commented Apr 24, 2025

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

@hjgraca hjgraca added the feature-request New or enhancements to existing features label Apr 24, 2025
@hjgraca hjgraca self-assigned this Apr 24, 2025
@github-actions github-actions bot added the pending-release Fix or implementation already in dev waiting to be released label Apr 24, 2025
@hjgraca hjgraca moved this from ✅ Done to 🚀 Shipped in Powertools for AWS Lambda (.NET) Apr 29, 2025
@hjgraca hjgraca added released Fix or implementation already in main and released and removed pending-release Fix or implementation already in dev waiting to be released labels Apr 29, 2025
@hjgraca hjgraca closed this as completed Apr 29, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature-request New or enhancements to existing features released Fix or implementation already in main and released
Projects
Status: 🚀 Shipped
Development

No branches or pull requests

1 participant