[{"data":1,"prerenderedAt":76},["ShallowReactive",2],{"pattern-eventbridge-api-destinations-oauth-api":3},{"id":4,"title":5,"architectureURL":6,"cleanup":7,"contributors":12,"deploy":14,"description":18,"extension":19,"framework":20,"gitHub":21,"highlight":6,"introBox":30,"language":34,"level":35,"meta":36,"patternArch":37,"resources":60,"s3URL":6,"services":69,"stem":70,"testing":71,"videoId":29,"__hash__":75},"patterns\u002Fpatterns\u002Feventbridge-api-destinations-oauth-api.json","Amazon EventBridge API Destinations with OAuth credentials",null,{"headline":8,"text":9},"Cleanup",[10,11],"1. Delete the stack: \u003Ccode>sam delete --stack-name STACK_NAME\u003C\u002Fcode>.","2. Confirm the stack has been deleted: \u003Ccode>aws cloudformation list-stacks --query \"StackSummaries[?contains(StackName,'STACK_NAME')].StackStatus\"\u003C\u002Fcode>",[13],"content\u002Fcontributors\u002Fgokul-sarangaraju.json",{"text":15},[16,17],"cd .\u002F11-oath-api","sam deploy --guided","Create an EventBridge rule and API Destination with OAuth credentials","json","AWS SAM",{"template":22,"payloads":27},{"projectFolder":23,"repoURL":24,"templateURL":25,"templateFile":26},"eventbridge-api-destinations","https:\u002F\u002Fgithub.com\u002Faws-samples\u002Fserverless-patterns\u002Ftree\u002Fmain\u002Feventbridge-api-destinations","serverless-patterns\u002Feventbridge-api-destinations","11-oauth-api\u002Ftemplate.yaml",[28],{"headline":29,"payloadURL":29},"",{"headline":31,"text":32,"test":29},"How it works",[33],"This pattern configures an EventBridge rule that routes to an API Destinations target using Oauth credentials. It configures a Connection, which contains the authorization for the API endpoint, and the API, which contains the URL, http method, and other configuration information.","Node.js","100",{},{"icon1":38,"group":43,"icon2":47,"icon3":50,"line1":54,"line2":57},{"x":39,"y":40,"service":41,"label":42},20,50,"eventbridge","EventBridge rule",{"x":40,"y":39,"w":44,"h":45,"label":46},45,60,"API Destinations",{"x":45,"y":40,"service":48,"label":49},"eventbridge-connection.png","Connection",{"x":51,"y":40,"service":52,"label":53},85,"eventbridge-api.png","API",{"from":55,"to":56,"label":29},"icon1","icon2",{"from":56,"to":58,"label":59},"icon3","with OAuth",{"headline":61,"bullets":62},"Additional resources",[63,66],{"text":64,"link":65},"Using API destinations with Amazon EventBridge","https:\u002F\u002Faws.amazon.com\u002Fblogs\u002Fcompute\u002Fusing-api-destinations-with-amazon-eventbridge\u002F",{"text":67,"link":68},"Use Amazon EventBridge to Build Decoupled, Event-Driven Architectures","https:\u002F\u002Fserverlessland.com\u002Flearn\u002Feventbridge",{"from":41,"to":41},"patterns\u002Feventbridge-api-destinations-oauth-api",{"headline":72,"text":73},"Testing",[74],"1. From a command line in this directory, send a test event to EventBridge simulating a \"Payment success\" event: \u003Ccode>aws events put-events --entries file:\u002F\u002FtestEvent.json\u003C\u002Fcode>","hIUUQlXXJvT6dxlHIYy5DUEzD-WZCKQYh6IRkEs55EU",1778846884338]