[{"data":1,"prerenderedAt":61},["ShallowReactive",2],{"pattern-appsync-lambda-cdk":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":29,"level":30,"meta":31,"patternArch":32,"resources":46,"s3URL":6,"services":55,"stem":56,"testing":57,"videoId":45,"__hash__":60},"patterns\u002Fpatterns\u002Fappsync-lambda-cdk.json","AWS AppSync to AWS Lambda",null,{"text":8},[9],"Delete the stack: \u003Ccode>cdk destroy\u003C\u002Fcode>.",[11,12],"content\u002Fcontributors\u002Fami-patel.json","content\u002Fcontributors\u002Fmichael-liendo.json",{"text":14},[15],"See the GitHub repo for detailed instructions","Create an AppSync API with a direct Lambda resolver","json","AWS CDK",{"template":20},{"projectFolder":21,"repoURL":22,"templateURL":23,"templateFile":24},"appsync-direct-lambda-resolver","https:\u002F\u002Fgithub.com\u002Faws-samples\u002Fserverless-patterns\u002Ftree\u002Fmain\u002Fappsync-direct-lambda-resolver","serverless-patterns\u002Fappsync-direct-lambda-resolver","cdk\u002Flib\u002Fmain.ts",{"headline":26,"text":27},"How it works",[28],"This CDK application deploys an AppSync API which uses direct Lambda resolvers. On querying the AppSync API, AppSync will invoke the Lambda function and provides a default payload to your Lambda function as well as a default translation from a Lambda function's response to a GraphQL type.","Node.js","100",{},{"icon2":33,"icon1":38,"line1":42},{"x":34,"y":35,"service":36,"label":37},80,50,"lambda","AWS Lambda",{"x":39,"y":35,"service":40,"label":41},20,"appsync","AWS AppSync",{"from":43,"to":44,"label":45},"icon1","icon2","",{"headline":47,"bullets":48},"Additional resources",[49,52],{"text":50,"link":51},"Introducing Direct Lambda Resolvers","https:\u002F\u002Faws.amazon.com\u002Fblogs\u002Fmobile\u002Fappsync-direct-lambda\u002F",{"text":53,"link":54},"Direct Lambda Resolvers Mapping Template Reference","https:\u002F\u002Fdocs.aws.amazon.com\u002Fappsync\u002Flatest\u002Fdevguide\u002Fresolver-mapping-template-reference-lambda.html#direct-lambda-resolvers",{"from":40,"to":36},"patterns\u002Fappsync-lambda-cdk",{"text":58},[59],"See the GitHub repo for detailed testing instructions.","8Lu5t7sZWc-Da4sBq4ifABcjYhOk8wYl0YRNnEKMoPI",1778846883290]