[{"data":1,"prerenderedAt":85},["ShallowReactive",2],{"pattern-eventbridge-api-destination-oauth-api-cmk-encryption":3},{"id":4,"title":5,"architectureURL":6,"cleanup":7,"contributors":12,"deploy":15,"description":19,"extension":20,"framework":21,"gitHub":22,"highlight":6,"introBox":31,"language":35,"level":36,"meta":37,"patternArch":38,"resources":64,"s3URL":6,"services":6,"stem":79,"testing":80,"videoId":6,"__hash__":84},"patterns\u002Fpatterns\u002Feventbridge-api-destination-oauth-api-cmk-encryption.json","Amazon EventBridge API Destinations with OAuth credentials using CMK encryption",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,14],"content\u002Fcontributors\u002Frajesh-kumar.json","content\u002Fcontributors\u002Fbiswanath-mukherjee.json",{"text":16},[17,18],"cd .\u002F12-oauth-api-with-cmk-encryption","sam deploy --guided","Create an Amazon EventBridge rule and API Destination with OAuth credentials using Customer Managed Key (CMK) encryption","json","AWS SAM",{"template":23,"payloads":28},{"projectFolder":24,"repoURL":25,"templateURL":26,"templateFile":27},"eventbridge-api-destinations","https:\u002F\u002Fgithub.com\u002Faws-samples\u002Fserverless-patterns\u002Ftree\u002Fmain\u002Feventbridge-api-destinations","serverless-patterns\u002Feventbridge-api-destinations","12-oauth-api-cmk-encryption\u002Ftemplate.yaml",[29],{"headline":30,"payloadURL":30},"",{"headline":32,"text":33,"test":30},"How it works",[34],"This pattern configures an Amazon EventBridge rule that routes to an API Destinations target using Oauth credentials with Customer Managed Key (CMK) encryption. It configures a Connection, which contains the authorization for the API endpoint with CMK encryption, and the API, which contains the URL, http method, and other configuration information.","Node.js","100",{},{"icon1":39,"group":44,"icon2":50,"icon3":54,"line1":58,"line2":61},{"x":40,"y":41,"service":42,"label":43},15,50,"eventbridge","Amazon EventBridge rule",{"x":45,"y":46,"w":47,"h":48,"label":49},30,20,65,60,"API Destinations",{"x":51,"y":41,"service":52,"label":53},40,"eventbridge-connection.png","Connection",{"x":55,"y":41,"service":56,"label":57},85,"eventbridge-api.png","API",{"from":59,"to":60,"label":30},"icon1","icon2",{"from":60,"to":62,"label":63},"icon3","with OAuth using CMK encryption",{"headline":65,"bullets":66},"Additional resources",[67,70,73,76],{"text":68,"link":69},"Amazon EventBridge now supports Customer Managed Keys (CMK) in API destinations connections","https:\u002F\u002Faws.amazon.com\u002Fabout-aws\u002Fwhats-new\u002F2025\u002F04\u002Famazon-eventbridge-customer-managed-keys-api\u002F",{"text":71,"link":72},"Encrypting EventBridge connection authorization with AWS KMS keys","https:\u002F\u002Fdocs.aws.amazon.com\u002Feventbridge\u002Flatest\u002Fuserguide\u002Fencryption-connections.html",{"text":74,"link":75},"Using API destinations with Amazon EventBridge","https:\u002F\u002Faws.amazon.com\u002Fblogs\u002Fcompute\u002Fusing-api-destinations-with-amazon-eventbridge\u002F",{"text":77,"link":78},"Use Amazon EventBridge to Build Decoupled, Event-Driven Architectures","https:\u002F\u002Fserverlessland.com\u002Flearn\u002Feventbridge","patterns\u002Feventbridge-api-destination-oauth-api-cmk-encryption",{"headline":81,"text":82},"Testing",[83],"1. From a command line in this directory, send a test event to EventBridge simulating a \"EventBridge CMK Demo success\" event: \u003Ccode>aws events put-events --entries file:\u002F\u002FtestEvent.json\u003C\u002Fcode>","BqLZ2kT-kc_W4WWo547lV0LDKb4KolpwE4vdBX0dcf4",1778846884315]