[{"data":1,"prerenderedAt":64},["ShallowReactive",2],{"pattern-sfn-comprehend-sam":3},{"id":4,"title":5,"architectureURL":6,"cleanup":7,"contributors":10,"deploy":12,"description":15,"extension":16,"framework":17,"gitHub":18,"highlight":6,"introBox":24,"language":31,"level":32,"meta":33,"patternArch":34,"resources":48,"s3URL":6,"services":6,"stem":59,"testing":60,"videoId":6,"__hash__":63},"patterns\u002Fpatterns\u002Fsfn-comprehend-sam.json","AWS Step Functions to Amazon Comprehend",null,{"text":8},[9],"Delete the stack: \u003Ccode>sam delete\u003C\u002Fcode>.",[11],"content\u002Fcontributors\u002Fbiswanath-mukherjee.json",{"text":13},[14],"sam deploy --guided","Create an AWS Step Functions workflow to integrate with Amazon Comprehend.","json","AWS SAM",{"template":19},{"repoURL":20,"templateURL":21,"projectFolder":22,"templateFile":23},"https:\u002F\u002Fgithub.com\u002Faws-samples\u002Fserverless-patterns\u002Ftree\u002Fmain\u002Fsfn-comprehend-sam","serverless-patterns\u002Fsfn-comprehend-sam","sfn-comprehend-sam","template.yaml",{"headline":25,"text":26},"How it works",[27,28,29,30],"Start the Step Functions Express Workflow using the start-sync-execution API command with a message string in English for sentiment analysis in the input payload.","The Express Workflow invokes Amazon Comprehend, which returns the sentiment of the input text.","If the integration works, the sentiment analysis is returned in Step Function's execution results within a output object.","If the integration fails, the Step Functions workflow will retry up to 5 times before exiting with a status: FAILED response.","Integration","100",{},{"icon1":35,"icon2":40,"line1":44},{"x":36,"y":37,"service":38,"label":39},20,50,"sfn","Step Functions",{"x":41,"y":37,"service":42,"label":43},80,"comprehend","Amazon Comprehend",{"from":45,"to":46,"label":47},"icon1","icon2","",{"bullets":49},[50,53,56],{"text":51,"link":52},"AWS Step Function - AWS SDK service integrations","https:\u002F\u002Fdocs.aws.amazon.com\u002Fstep-functions\u002Flatest\u002Fdg\u002Fsupported-services-awssdk.html",{"text":54,"link":55},"AWS Step Function - CloudWatch Logs","https:\u002F\u002Fdocs.aws.amazon.com\u002Fstep-functions\u002Flatest\u002Fdg\u002Fcw-logs.html",{"text":57,"link":58},"ComprehendBasicAccessPolicy","https:\u002F\u002Fdocs.aws.amazon.com\u002Fserverless-application-model\u002Flatest\u002Fdeveloperguide\u002Fserverless-policy-template-list.html#comprehend-basic-access-policy","patterns\u002Fsfn-comprehend-sam",{"text":61},[62],"See the GitHub repo for detailed testing instructions.","He5nShV2JxQ79t6Leve6I51bzKncNmLrHoeVvzT79ZY",1778846887787]