AWS AppSync subscription enhanced filtering

AWS Appsync

This pattern demonstrates the use of AWS AppSync subscriptions' enhanced filtering to send real-time notifications to a single user only.

AWS AppSync real-time subscriptions support enhanced filtering functionality to limit the list of notification recipients.
This sample project demonstrates how to use AppSync enhanced filtering to send notifications to the currently logged user only if the userId property of the messages matches the current IAM user's username.
This pattern deploys a single AWS AppSync instance.

< Back to all patterns

GitHub icon Download this pattern (.zip)

GitHub icon View this pattern on GitHub


Clone repo

git clone https://github.com/aws-samples/serverless-patterns/cd serverless-patterns/appsync-subscription-filter-cdk

Deploy

cdk deploy --require-approval never


Testing

See the GitHub repo for detailed testing instructions.

Cleanup

Delete the stack: cdk delete -f.

Created by:

Dmitry Gulin

Dmitry Gulin

Modernization Architect, AWS

Follow on LinkedIn