Open Source Your Knowledge, Become a Contributor

Technology knowledge has to be shared and made accessible for free. Join the movement.

Create Content

Amazon DynamoDB - Part I

We created a table called reminder to store user-requested reminders for our previous example of a reminder bot. Now we can execute the following code to create reminders:

import boto3

dynamodb = boto3.resource('dynamodb')
dynamodb.Table('reminder').put_item(
  Item={
    'timestamp': 1511643670,
    'userID': 'geish@voicera.ai',
    'ttl': 1511730070,
    'text': 'write a DynamoDB example',
  }
)
Open Source Your Knowledge: become a Contributor and help others learn. Create New Content