Last active
March 2, 2020 17:10
-
-
Save kenvontucky/f0849e000da3c9e3f887edeb613ff0cc to your computer and use it in GitHub Desktop.
domain keyvalue dynamodb table schema
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
TABLE_NAME = 'Domain' | |
DOMAIN = 'domain' | |
URL = 'url' | |
SCHEMA = { | |
'TableName': TABLE_NAME, | |
'AttributeDefinitions': [ | |
{ | |
'AttributeName': URL, | |
'AttributeType': 'S' | |
} | |
], | |
'KeySchema': [ | |
{ | |
'AttributeName': URL, | |
'KeyType': 'HASH' | |
} | |
], | |
'ProvisionedThroughput': { | |
'ReadCapacityUnits': 10, | |
'WriteCapacityUnits': 10 | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment