0 points

DynamoDB — Boto3 Docs 1.14.20 documentation


dashboard

Wed Jul 15 2020 08:42:11 GMT+0000 (UTC)

Posted by @danish45007

import boto3

# Get the service resource.
dynamodb = boto3.resource('dynamodb')

# Instantiate a table resource object without actually
# creating a DynamoDB table. Note that the attributes of this table
# are lazy-loaded: a request is not made nor are the attribute
# values populated until the attributes
# on the table resource are accessed or its load() method is called.
table = dynamodb.Table('users')

# Print out some data about the table.
# This will cause a request to be made to DynamoDB and its attribute
# values will be set based on the response.
print(table.creation_date_time)
content_copy Copy

https://boto3.amazonaws.com/v1/documentation/api/latest/guide/dynamodb.html