Amazon DynamoDB
入门指南 (API Version 2012-08-10)
AWS 服务或AWS文档中描述的功能,可能因地区/位置而异。点 击 Getting Started with Amazon AWS to see specific differences applicable to the China (Beijing) Region.

步骤 5:(可选)删除表

删除 Movies 表:

  1. 将以下程序复制到名为 MoviesDeleteTable.py 的文件中。

    Copy
    from __future__ import print_function # Python 2/3 compatibility import boto3 dynamodb = boto3.resource('dynamodb', region_name='us-west-2', endpoint_url="http://localhost:8000") table = dynamodb.Table('Movies') table.delete()
  2. 键入以下命令以运行程序:

    python MoviesDeleteTable.py