[{"data":1,"prerenderedAt":62},["ShallowReactive",2],{"pattern-appsync-bedrock-stream-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":23,"language":27,"level":28,"meta":29,"patternArch":30,"resources":48,"s3URL":6,"services":6,"stem":57,"testing":58,"videoId":6,"__hash__":61},"patterns\u002Fpatterns\u002Fappsync-bedrock-stream-sam.json","Amazon Bedrock streaming with AWS AppSync",null,{"text":8},[9],"Delete the stack: \u003Ccode>sam delete\u003C\u002Fcode>.",[11],"content\u002Fcontributors\u002Falexis-philippart-de-foy.json",{"text":13},[14],"sam deploy","Stream Amazon Bedrock responses with AWS AppSync","json","AWS SAM",{"template":19},{"repoURL":20,"templateURL":21,"projectFolder":21,"templateFile":22},"https:\u002F\u002Fgithub.com\u002Faws-samples\u002Fserverless-patterns\u002Ftree\u002Fmain\u002Fappsync-bedrock-streaming-sam","appsync-bedrock-streaming-sam","template.yaml",{"headline":24,"text":25},"How it works",[26],"This template creates an AWS AppSync API along with an AWS Lambda function. The API exposes a mutation that asynchronously invokes the Lambda function (thus bypassing the 30s timeout of AppSync) that calls Anthropic Claude V3 Haiku through Amazon Bedrock and streams the response back to the end user through an AppSync subscription.","YAML","200",{},{"icon1":31,"icon2":36,"icon3":39,"line1":43,"line2":46},{"x":32,"y":33,"service":34,"label":35},20,50,"appsync","AWS AppSync",{"x":33,"y":33,"service":37,"label":38},"lambda","AWS Lambda",{"x":40,"y":33,"service":41,"label":42},80,"bedrock","Amazon Bedrock",{"from":44,"to":45},"icon1","icon2",{"from":45,"to":47},"icon3",{"bullets":49},[50,52,55],{"text":35,"link":51},"https:\u002F\u002Faws.amazon.com\u002Fappsync\u002F",{"text":53,"link":54},"AWS AppSync async Lambda invocation","https:\u002F\u002Faws.amazon.com\u002Fabout-aws\u002Fwhats-new\u002F2024\u002F05\u002Faws-appsync-events-asynchronous-lambda-function-invocations\u002F",{"text":42,"link":56},"https:\u002F\u002Fdocs.aws.amazon.com\u002Fbedrock\u002Flatest\u002Fuserguide\u002Fwhat-is-service.html","patterns\u002Fappsync-bedrock-stream-sam",{"text":59},[60],"See the Github repo for detailed testing instructions.","Cz0pV_rgKkkC5WsZbi538tLj66hP2Hf4AVYm8K-zOjA",1779273333645]