[{"data":1,"prerenderedAt":60},["ShallowReactive",2],{"pattern-lambda-bedrock-cdk":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":28,"level":29,"meta":30,"patternArch":31,"resources":45,"s3URL":6,"services":6,"stem":55,"testing":56,"videoId":6,"__hash__":59},"patterns\u002Fpatterns\u002Flambda-bedrock-cdk.json","AWS Lambda to Amazon Bedrock",null,{"text":8},[9],"Delete the stack: \u003Ccode>cdk delete\u003C\u002Fcode>.",[11],"content\u002Fcontributors\u002Fmax-berta.json",{"text":13},[14],"cdk deploy","AWS Lambda function to infer foundation models in Amazon Bedrock.","json","AWS CDK",{"template":19},{"repoURL":20,"templateURL":21,"projectFolder":22,"templateFile":23},"https:\u002F\u002Fgithub.com\u002Faws-samples\u002Fserverless-patterns\u002Ftree\u002Fmain\u002Flambda-bedrock-cdk","serverless-patterns\u002Flambda-bedrock-cdk","lambda-bedrock-cdk","lambda-layer\u002Fbin\u002Flambda-layer.ts",{"headline":25,"text":26},"How it works",[27],"This sample project shows how to use an AWS Lambda function to infer foundational models in Bedrock. The function is invoked with a JSON payload to infer the desired foundation model and it will return Bedrock response with an execution time to evaluate different models performances.","Python","200",{},{"icon1":32,"icon2":37,"line1":41},{"x":33,"y":34,"service":35,"label":36},20,50,"lambda","AWS Lambda",{"x":38,"y":34,"service":39,"label":40},80,"bedrock","Amazon Bedrock",{"from":42,"to":43,"label":44},"icon1","icon2","",{"bullets":46},[47,49,52],{"text":40,"link":48},"https:\u002F\u002Fdocs.aws.amazon.com\u002Fbedrock\u002Flatest\u002Fuserguide\u002Fwhat-is-service.html",{"text":50,"link":51},"Boto3 Bedrock","https:\u002F\u002Fboto3.amazonaws.com\u002Fv1\u002Fdocumentation\u002Fapi\u002Flatest\u002Freference\u002Fservices\u002Fbedrock.html#",{"text":53,"link":54},"Boto3 BedrockRuntime","https:\u002F\u002Fboto3.amazonaws.com\u002Fv1\u002Fdocumentation\u002Fapi\u002Flatest\u002Freference\u002Fservices\u002Fbedrock-runtime.html","patterns\u002Flambda-bedrock-cdk",{"text":57},[58],"See the GitHub repo for detailed testing instructions.","GevB0ksg2-E3OqDtZ2rkmriqQ_v1dbRifQcuCNvntcY",1778846885862]