[{"data":1,"prerenderedAt":59},["ShallowReactive",2],{"pattern-appsync-eventbridge-datasource":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":30,"level":31,"meta":32,"patternArch":33,"resources":47,"s3URL":6,"services":6,"stem":54,"testing":55,"videoId":6,"__hash__":58},"patterns\u002Fpatterns\u002Fappsync-eventbridge-datasource.json","Appsync to Amazon EventBridge using Appsync Datasource",null,{"text":8},[9],"Delete the stack: \u003Ccode>cdk delete\u003C\u002Fcode>.",[11],"content\u002Fcontributors\u002Fshankar-srinivasan.json",{"text":13},[14],"cdk deploy","This pattern connects AppSync to EventBridge directly using AppSync Datasource","json","AWS CDK",{"template":19},{"repoURL":20,"templateURL":21,"projectFolder":22,"templateFile":23},"https:\u002F\u002Fgithub.com\u002Faws-samples\u002Fserverless-patterns\u002Ftree\u002Fmain\u002Fappsync-eventbridge-datasource","serverless-patterns\u002Fappsync-eventbridge-datasource","appsync-eventbridge-datasource","cdk\u002Flib\u002Fappsync-eventbridge-datasource-stack.ts",{"headline":25,"text":26},"How it works",[27,28,29],"This sample project demonstrates how to integrate Amazon EventBridge with AWS Appsync.","AWS AppSync can publish events to EventBridge as a datasource. It uses resolver functions for the requests and responses to create the custom events.","This pattern deploys one AWS Appsync API, one custom EventBus, and one AppSync Javascript resolver function.","TypeScript","200",{},{"icon1":34,"icon2":39,"line1":43},{"x":35,"y":36,"service":37,"label":38},20,50,"appsync","AWS AppSync",{"x":40,"y":36,"service":41,"label":42},80,"eventbridge","Amazon EventBridge",{"from":44,"to":45,"label":46},"icon1","icon2","js resolver",{"bullets":48},[49,51],{"text":38,"link":50},"https:\u002F\u002Faws.amazon.com\u002Fappsync\u002F",{"text":52,"link":53},"AWS AppSync GraphQL APIs Supports JavaScript Resolvers","https:\u002F\u002Faws.amazon.com\u002Fblogs\u002Faws\u002Faws-appsync-graphql-apis-supports-javascript-resolvers\u002F","patterns\u002Fappsync-eventbridge-datasource",{"text":56},[57],"See the GitHub repo for detailed testing instructions.","sRlTy8Y1UiMVByVyfyB4h6VYUAy-o5e8nxVasVHd3KQ",1778846883250]