Guest User

Untitled

a guest
Feb 18th, 2018
82
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.36 KB | None | 0 0
  1. import boto3
  2. dynamodb = boto3.resource(‘dynamodb’)
  3. table = dynamodb.create_table(
  4. TableName="fake_table",
  5. KeySchema=[ { ‘AttributeName’: "id_key", ‘KeyType’: ‘HASH’ }, ],
  6. AttributeDefinitions=[ { ‘AttributeName’: "id_key", ‘AttributeType’: "S" }, ],
  7. ProvisionedThroughput={ ‘ReadCapacityUnits’: 10, ‘WriteCapacityUnits’: 10 } )
Add Comment
Please, Sign In to add comment