[{"data":1,"prerenderedAt":60},["ShallowReactive",2],{"pattern-appsync-bedrock":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":29,"level":30,"meta":31,"patternArch":32,"resources":46,"s3URL":6,"services":6,"stem":55,"testing":56,"videoId":6,"__hash__":59},"patterns\u002Fpatterns\u002Fappsync-bedrock.json","AWS AppSync to Amazon Bedrock",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","Invoke Amazon Bedrock models from AWS AppSync HTTP resolver","json","AWS SAM",{"template":19},{"repoURL":20,"templateURL":21,"projectFolder":22,"templateFile":23},"https:\u002F\u002Fgithub.com\u002Faws-samples\u002Fserverless-patterns\u002Ftree\u002Fmain\u002Fappsync-bedrock","serverless-patterns\u002Fappsync-bedrock","appsync-bedrock","template.yaml",{"headline":25,"text":26},"How it works",[27,28],"This pattern shows how to invoke Amazon Bedrock models from AppSync through HTTP resolvers.","In this pattern the end user is able to provide a query and a role. Based on the role provided (philosopher, schoolteacher or politician), a specific context will be added to the prompt used to invoke an Amazon Bedrock model from within the JS resolver.","YAML","200",{},{"icon1":33,"icon2":38,"line1":42},{"x":34,"y":35,"service":36,"label":37},20,50,"appsync","AWS AppSync",{"x":39,"y":35,"service":40,"label":41},80,"bedrock","Amazon Bedrock",{"from":43,"to":44,"label":45},"icon1","icon2","",{"bullets":47},[48,50,53],{"text":37,"link":49},"https:\u002F\u002Faws.amazon.com\u002Fappsync\u002F",{"text":51,"link":52},"AWS AppSync HTTP Resolvers","https:\u002F\u002Fdocs.aws.amazon.com\u002Fappsync\u002Flatest\u002Fdevguide\u002Ftutorial-http-resolvers-js.html",{"text":41,"link":54},"https:\u002F\u002Fdocs.aws.amazon.com\u002Fbedrock\u002Flatest\u002Fuserguide\u002Fwhat-is-service.html","patterns\u002Fappsync-bedrock",{"text":57},[58],"See the GitHub repo for detailed testing instructions.","Ry2Tt55nozWEVzMz6RN131BJ6c8iQSvjkK1TmWVpj04",1780655738122]