AWS::Serverless::SimpleTable

You can use the AWS::Serverless::SimpleTable resource to create a DynamoDB table with a single attribute primary key (hence the name SimpleTable). You can additionally provide the name and type of your primary key along with the table's provisioned throughput as parameters, as shown in the following example:

MySimpleTable: 
   Type: AWS::Serverless::SimpleTable 
   Properties: 
      PrimaryKey: 
         Name: userId 
         Type: String 
      ProvisionedThroughput: 
         ReadCapacityUnits: 5 
         WriteCapacityUnits: 5 

You can optionally even use the AWS::DynamoDB::Table resource instead of the SimpleTable if, you require more advanced functionalities for your tables.

Putting it all together, you will end up with a ready to use template that can deploy a simple ...

Get Mastering AWS Lambda now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.