[{"data":1,"prerenderedAt":74},["ShallowReactive",2],{"pattern-stepfunctions-sns-apigw-human-review":3},{"id":4,"title":5,"architectureURL":6,"cleanup":7,"contributors":10,"deploy":13,"description":16,"extension":17,"framework":18,"gitHub":19,"highlight":6,"introBox":25,"language":32,"level":33,"meta":34,"patternArch":35,"resources":55,"s3URL":6,"services":6,"stem":69,"testing":70,"videoId":6,"__hash__":73},"patterns\u002Fpatterns\u002Fstepfunctions-sns-apigw-human-review.json","Human review process using AWS Step Functions.",null,{"text":8},[9],"Delete the stack: \u003Ccode>sam delete\u003C\u002Fcode>.",[11,12],"content\u002Fcontributors\u002Fsridhar-chevendra.json","content\u002Fcontributors\u002Fanup-rajpara.json",{"text":14},[15],"sam deploy --guided --capabilities CAPABILITY_IAM CAPABILITY_NAMED_IAM","Integrate a human review process into your workflow.","json","AWS SAM",{"template":20},{"repoURL":21,"templateURL":22,"projectFolder":23,"templateFile":24},"https:\u002F\u002Fgithub.com\u002Faws-samples\u002Fserverless-patterns\u002Ftree\u002Fmain\u002Fstepfunctions-sns-apigw-human-review","serverless-patterns\u002Fstepfunctions-sns-apigw-human-review","stepfunctions-sns-apigw-human-review","template.yaml",{"headline":26,"text":27},"How it works",[28,29,30,31],"The application will create a AWS Step Functions State Machine, an Amazon SNS topic, and an Amazon API Gateway REST API.","The State Machine sends a message to an SNS topic which sends a notification to a human reviewer by email. The workflow then waits until the approver completes their review. When the reviewer makes a selection, it will trigger an API that sends the SendTaskSuccess API call with the chosen result.","Waiting for completion of the review is done using the .waitForTaskToken service integration. The payload of the SNS message contains a task token, which is automatically generated by AWS Step Functions.","The task will pause until it receives that task token back with a SendTaskSuccess or SendTaskFailure API call.","Integration","200",{},{"icon1":36,"icon2":41,"icon3":45,"line1":49,"line2":53},{"x":37,"y":38,"service":39,"label":40},20,50,"apigw","Amazon API Gateway REST API",{"x":42,"y":38,"service":43,"label":44},55,"sfn","AWS Step Functions",{"x":46,"y":38,"service":47,"label":48},80,"sns","Amazon SNS",{"from":50,"to":51,"label":52},"icon1","icon2","",{"from":51,"to":54,"label":52},"icon3",{"bullets":56},[57,60,63,66],{"text":58,"link":59},"Discover service integration patterns in Step Functions","https:\u002F\u002Fdocs.aws.amazon.com\u002Fstep-functions\u002Flatest\u002Fdg\u002Fconnect-to-resource.html",{"text":61,"link":62},"Wait for a Callback with Task Token","https:\u002F\u002Fdocs.aws.amazon.com\u002Fstep-functions\u002Flatest\u002Fdg\u002Fconnect-to-resource.html#connect-wait-token",{"text":64,"link":65},"Calling a Step Functions API using API Gateway","https:\u002F\u002Fdocs.aws.amazon.com\u002Fstep-functions\u002Flatest\u002Fdg\u002Ftutorial-api-gateway.html",{"text":67,"link":68},"Intrinsic functions in Amazon States Language for Step Functions workflows","https:\u002F\u002Fdocs.aws.amazon.com\u002Fstep-functions\u002Flatest\u002Fdg\u002Fintrinsic-functions.html","patterns\u002Fstepfunctions-sns-apigw-human-review",{"text":71},[72],"See the GitHub repo for detailed testing instructions.","bSKuK-bntW4tEMoNpGB1I8gXPKW23Wg-NVHKnJQy10E",1778846888480]