[{"data":1,"prerenderedAt":61},["ShallowReactive",2],{"pattern-eventbridge-appsync-subscription-sam":3},{"id":4,"title":5,"architectureURL":6,"cleanup":7,"contributors":10,"deploy":12,"description":15,"extension":16,"framework":17,"gitHub":18,"highlight":6,"introBox":24,"language":29,"level":30,"meta":31,"patternArch":32,"resources":46,"s3URL":6,"services":6,"stem":56,"testing":57,"videoId":6,"__hash__":60},"patterns\u002Fpatterns\u002Feventbridge-appsync-subscription-sam.json","Eventbridge rule to AWS AppSync target",null,{"text":8},[9],"Delete the stack: \u003Ccode>sam delete\u003C\u002Fcode>.",[11],"content\u002Fcontributors\u002Falexis-philippart-de-foy.json",{"text":13},[14],"sam deploy","Listen to Eventbridge events from an AppSync subscription","json","AWS SAM",{"template":19},{"repoURL":20,"templateURL":21,"projectFolder":22,"templateFile":23},"https:\u002F\u002Fgithub.com\u002Faws-samples\u002Fserverless-patterns\u002Ftree\u002Fmain\u002Feventbridge-appsync-subscription-sam","serverless-patterns\u002Feventbridge-appsync-subscription-sam","eventbridge-appsync-subscription-sam","template.yaml",{"headline":25,"text":26},"How it works",[27,28],"This pattern shows how to create an AppSync API that allows you to listen to events going into an Eventbridge event bus.","This pattern is especially useful if you want your frontend users to be aware of changes happening in your backend. Those events coming in your event bus can either be pushed as custom events or can come from AWS services.","YAML","200",{},{"icon1":33,"icon2":38,"line1":42},{"x":34,"y":35,"service":36,"label":37},20,50,"eventbridge","EventBridge",{"x":39,"y":35,"service":40,"label":41},80,"appsync","AWS AppSync",{"from":43,"to":44,"label":45},"icon1","icon2","EventBridge target",{"bullets":47},[48,50,53],{"text":41,"link":49},"https:\u002F\u002Faws.amazon.com\u002Fappsync\u002F",{"text":51,"link":52},"Amazon Eventbridge","https:\u002F\u002Faws.amazon.com\u002Feventbridge\u002F",{"text":54,"link":55},"Appsync as Eventbridge target","https:\u002F\u002Faws.amazon.com\u002Fabout-aws\u002Fwhats-new\u002F2024\u002F01\u002Famazon-eventbridge-appsync-target-buses\u002F","patterns\u002Feventbridge-appsync-subscription-sam",{"text":58},[59],"See the GitHub repo for detailed testing instructions.","zEMAEnwXsF5dKFZ1udgi_HMRJUluBbDISaAVZZs1rrk",1778846884394]