From the course: AWS Quick Tips for Developers

Unlock this course with a free trial

Join today to access over 22,700 courses taught by industry experts.

Generating an API Gateway for DynamoDB

Generating an API Gateway for DynamoDB - Amazon Web Services (AWS) Tutorial

From the course: AWS Quick Tips for Developers

Generating an API Gateway for DynamoDB

- [Narrator] Let's say you have a DynamoDB table and you want to provide access to it through an API, how can you create it when the table already exists? Well you can do it AppSync pretty easily. We have a table here that has four columns, id, active, which is a Boolean, name is a string, and SCORES which is a list of numbers. The id is also a string. So let's go to AppSync and set that up. So first I'm going to click Create API and I'm going to select Import DB table. Now we give it which table it is, PlayerRecord, and we'll let it create a New Role for us. So we'll import that and then have to specify the fields that we want to include in our API. Id is already in there so we can do name, which is a string, we'll make that required. We're not going to add active, but we are going to add the scores which is a list. So we select that it's an Integer list in this case, and click List. Now we can just create it by giving it a name. We'll name it ScoresAPI. We create this and then we…

Contents