[{"data":1,"prerenderedAt":76},["ShallowReactive",2],{"pattern-apigw-dynamodb":3},{"id":4,"title":5,"architectureURL":6,"cleanup":7,"contributors":12,"deploy":14,"description":17,"extension":18,"framework":19,"gitHub":20,"highlight":6,"introBox":29,"language":34,"level":35,"meta":36,"patternArch":37,"resources":50,"s3URL":68,"services":69,"stem":70,"testing":71,"videoId":28,"__hash__":75},"patterns\u002Fpatterns\u002Fapigw-dynamodb.json","Amazon API Gateway REST API to Amazon DynamoDB",null,{"headline":8,"text":9},"Cleanup",[10,11],"1. Delete the stack: \u003Ccode>sam delete --stack-name STACK_NAME\u003C\u002Fcode>.","2. Confirm the stack has been deleted: \u003Ccode>aws cloudformation list-stacks --query \"StackSummaries[?contains(StackName,'STACK_NAME')].StackStatus\"\u003C\u002Fcode>",[13],"content\u002Fcontributors\u002Fgreg-davis.json",{"text":15},[16],"sam deploy --guided","Create an Amazon API Gateway REST API that integrates with an Amazon DynamoDB table","json","AWS SAM",{"template":21,"payloads":26},{"projectFolder":22,"repoURL":23,"templateURL":24,"templateFile":25},"apigw-rest-api-dynamodb","https:\u002F\u002Fgithub.com\u002Faws-samples\u002Fserverless-patterns\u002Ftree\u002Fmain\u002Fapigw-rest-api-dynamodb","serverless-patterns\u002Fapigw-rest-api-dynamodb","template.yml",[27],{"headline":28,"payloadURL":28},"",{"headline":30,"text":31},"How it works",[32,33],"This pattern creates an Amazon API Gateway REST API that integrates with an Amazon DynamoDB table named \"Music\". The API includes an API key and usage plan. The DynamoDB table includes a Global Secondary Index named \"Artist-Index\". The API integrates directly with the DynamoDB API and supports PutItem and Query actions.","The REST API uses an IAM role to provide full access to the specific DynamoDB table and index created by the CloudFormation template.","Integration","100",{},{"icon1":38,"icon2":43,"line1":47},{"x":39,"y":40,"service":41,"label":42},20,50,"apigw","API Gateway",{"x":44,"y":40,"service":45,"label":46},80,"dynamodb","Amazon DynamoDB",{"from":48,"to":49,"label":28},"icon1","icon2",{"headline":51,"bullets":52},"Additional resources",[53,56,59,62,65],{"text":54,"link":55},"Tutorial: Build an API Gateway REST API with AWS integration","https:\u002F\u002Fdocs.aws.amazon.com\u002Fapigateway\u002Flatest\u002Fdeveloperguide\u002Fgetting-started-aws-proxy.html",{"text":57,"link":58},"How do I use API Gateway as a proxy for another AWS service?","https:\u002F\u002Faws.amazon.com\u002Fpremiumsupport\u002Fknowledge-center\u002Fapi-gateway-proxy-integrate-service\u002F",{"text":60,"link":61},"Using Amazon API Gateway as a proxy for DynamoDB","https:\u002F\u002Faws.amazon.com\u002Fblogs\u002Fcompute\u002Fusing-amazon-api-gateway-as-a-proxy-for-dynamodb\u002F",{"text":63,"link":64},"Setting up data transformations for REST APIs","https:\u002F\u002Fdocs.aws.amazon.com\u002Fapigateway\u002Flatest\u002Fdeveloperguide\u002Frest-api-data-transformations.html",{"text":66,"link":67},"Amazon API Gateway API request and response data mapping reference","https:\u002F\u002Fdocs.aws.amazon.com\u002Fapigateway\u002Flatest\u002Fdeveloperguide\u002Frequest-response-data-mappings.html","https:\u002F\u002Fda-public-assets.s3.amazonaws.com\u002Fpatterns\u002Fapigw-dynamodb\u002Fcloudformation.yml",{"from":41,"to":45},"patterns\u002Fapigw-dynamodb",{"headline":72,"text":73},"Testing",[74],"See the repo for detailed testing notes.","X0mph47vLrSAVOUOqj-hfos4P3SlhDG-hLojZNLV0iI",1781519738317]