[{"data":1,"prerenderedAt":65},["ShallowReactive",2],{"pattern-apigw-sfn-cdk":3},{"id":4,"title":5,"architectureURL":6,"cleanup":7,"contributors":12,"deploy":14,"description":17,"extension":18,"framework":19,"gitHub":20,"highlight":6,"introBox":26,"language":30,"level":31,"meta":32,"patternArch":33,"resources":47,"s3URL":6,"services":56,"stem":57,"testing":58,"videoId":63,"__hash__":64},"patterns\u002Fpatterns\u002Fapigw-sfn-cdk.json","Amazon API Gateway to AWS Step Functions",null,{"headline":8,"text":9},"Cleanup",[10,11],"1. Delete the stack: \u003Ccode>cdk destroy\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\u002Fjames-eastham.json",{"text":15},[16],"cdk deploy","Create an API Gateway HTTP APIs endpoint that starts a Step Functions syncronous Express Workflow","json","AWS CDK",{"template":21},{"projectFolder":22,"repoURL":23,"templateURL":24,"templateFile":25},"apigw-sfn-cdk","https:\u002F\u002Fgithub.com\u002Faws-samples\u002Fserverless-patterns\u002Ftree\u002Fmain\u002Fapigw-sfn-cdk","serverless-patterns\u002Fapigw-sfn-cdk","cdk\u002Fsrc\u002FCdk\u002FCdkStack.cs",{"headline":27,"text":28},"How it works",[29],"This pattern explains how to deploy an API Gateway HTTP API that synchronously invokes a Step FunctionsExpress Workflow and returns the output state of the workflow in the HTTP request response body. The CDK application also creates a log group that Step Functions writes execution data into.",".NET","300",{},{"icon1":34,"icon2":39,"line1":43},{"x":35,"y":36,"service":37,"label":38},20,50,"apigw","API Gateway HTTP API",{"x":40,"y":36,"service":41,"label":42},80,"sfn","Step Functions",{"from":44,"to":45,"label":46},"icon1","icon2","StartSyncExecution",{"headline":48,"bullets":49},"Additional resources",[50,53],{"text":51,"link":52},"Synchronous Express Workflows for AWS Step Functions","https:\u002F\u002Faws.amazon.com\u002Fblogs\u002Fcompute\u002Fnew-synchronous-express-workflows-for-aws-step-functions\u002F",{"text":54,"link":55},"Contact form processing with Synchronous Express Workflows","https:\u002F\u002Fgithub.com\u002Faws-samples\u002Fcontact-form-processing-with-synchronous-express-workflows",{"from":37,"to":41},"patterns\u002Fapigw-sfn-cdk",{"headline":59,"text":60},"Testing",[61,62],"Run the following command to send an HTTP `POST` request to the HTTP APIs endpoint. Note, you must edit the {HelloWorldApi} placeholder with the URL of the deployed HTTP APIs endpoint. This is provided in the stack outputs:","\u003Ccode>curl --location --request POST '{HelloWorldApi}' --header 'Content-Type: application\u002Fjson' --data-raw '{ \"IsHelloWorldExample\": \"Yes\" }'\u003C\u002Fcode>","","9lDHDGdLZSH6XQo4TpT7RFSBOS4bKVkOX8KjqusN0Bs",1781087766893]