I have an App Sync GraphQLAPI with a bunch of lambda data sources. One of these lambdas handles a mutation that stores chat messages for a chat room. I need to create a subscription on that mutation for other users in the chat room so that they will get messages that are posted.
It is my understanding that I can create a subscription filter to accomplish this: in my case the filter would be the chatroom ID.
How do I create a subscription filter as shown in the documentation above using the CDK?