[{"data":1,"prerenderedAt":87},["ShallowReactive",2],{"pattern-eventbridge-api-destinations-stripe":3},{"id":4,"title":5,"architectureURL":6,"cleanup":7,"contributors":11,"deploy":13,"description":17,"extension":18,"framework":19,"gitHub":20,"highlight":6,"introBox":26,"language":42,"level":43,"meta":44,"patternArch":45,"resources":68,"s3URL":6,"services":6,"stem":82,"testing":83,"videoId":6,"__hash__":86},"patterns\u002Fpatterns\u002Feventbridge-api-destinations-stripe.json","Amazon EventBridge API Destinations to Stripe",null,{"text":8},[9,10],"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>\"",[12],"content\u002Fcontributors\u002Fdiana-di-dow.json",{"text":14},[15,16],"cd .\u002F10-stripe","sam deploy --guided","Create an API destination in EventBridge for Stripe APIs.","json","AWS SAM",{"template":21},{"repoURL":22,"templateURL":23,"projectFolder":24,"templateFile":25},"https:\u002F\u002Fgithub.com\u002Faws-samples\u002Fserverless-patterns\u002Ftree\u002Fmain\u002Feventbridge-api-destinations","serverless-patterns\u002Feventbridge-api-destinations","eventbridge-api-destinations","10-stripe\u002Ftemplate.yaml",{"headline":27,"text":28},"How it works",[29,30,31,32,33,34,35,36,37,38,39,40,41],"This pattern configures an EventRule, that routes to the EventBridge API destination in EventBridge for Stripe to create a new product object API.","Once deployed, the pattern allows a user to send events easily through to create specific goods or services for supporting the product experience at Stripe. The pattern creates the following resources: ","- EventBridge Event Bus","- EventBridge Rule","- EventBridge Connection","- EventBridge API Destination","- IAM Role","- SQS Queue","- SQS Queue Policy","The EventBridge Rule uses the API Destination and Connection as a target, SQS Queue as a Dead Letter Queue (DLQ), and the IAM role as its role. The created IAM role has the permission to allow InvokeApiDestination access to the EventBridge Rule.","If using the custom named IAM role in this pattern, it requires the explicit acknowledgement that the stack template contains certain capabilities in order for AWS CloudFormation to create the stack. When using the AWS SAM CLI, the --capabilities=CAPABILITY_NAMED_IAM parameter can be added to the deployment command to explicitly acknowledge.","To send events, go to the EventBridge Event Bus details. Select the Send events button. Select the Event Bus created by the pattern, \"StripeEventBus\". Enter \"MyStripeTestApp\" for the source. Enter \"MyStripeTestAppDetailType\" for the detail type. Enter Event details in json format for a creating a product (https:\u002F\u002Fstripe.com\u002Fdocs\u002Fapi\u002Fproducts) API call.","The Stripe API uses API keys to authenticate requests (https:\u002F\u002Fstripe.com\u002Fdocs\u002Fapi\u002Fauthentication.) Before using the pattern, obtain an API Key from Stripe and update the CloudFormation template parameter \"StripeAPIKeyValue\" using Bearer auth.","Integration","300",{},{"icon1":46,"group":51,"icon2":55,"icon3":58,"line1":62,"line2":66},{"x":47,"y":48,"service":49,"label":50},20,50,"eventbridge","EventBridge rule",{"x":48,"y":47,"w":52,"h":53,"label":54},45,60,"API Destinations",{"x":53,"y":48,"service":56,"label":57},"eventbridge-connection.png","Connection",{"x":59,"y":48,"service":60,"label":61},85,"eventbridge-api.png","API",{"from":63,"to":64,"label":65},"icon1","icon2","",{"from":64,"to":67,"label":65},"icon3",{"bullets":69},[70,73,76,79],{"text":71,"link":72},"Stripe Docs","https:\u002F\u002Fstripe.com\u002Fdocs",{"text":74,"link":75},"Stripe API Documentation","https:\u002F\u002Fstripe.com\u002Fdocs\u002Fapi",{"text":77,"link":78},"Using API destinations with Amazon EventBridge","https:\u002F\u002Faws.amazon.com\u002Fblogs\u002Fcompute\u002Fusing-api-destinations-with-amazon-eventbridge\u002F",{"text":80,"link":81},"Use Amazon EventBridge to Build Decoupled, Event-Driven Architectures","https:\u002F\u002Fserverlessland.com\u002Flearn\u002Feventbridge","patterns\u002Feventbridge-api-destinations-stripe",{"text":84},[85],"1. From a command line in this directory, send a test event to EventBridge simulating a \"Payment failed\" event: \u003Ccode>aws events put-events --entries file:\u002F\u002FtestEvent.json\u003C\u002Fcode>","AzdYVqcDzvkJrxgZNR5c3DCRvWtrA4dm6a8xFW-O3J4",1779273335086]