Example Python code snippet:
import boto3
dynamodb = boto3.client('dynamodb')
table_name = 'MyTable'
attribute_definitions = [{'AttributeName': 'ID', 'AttributeType': 'N'}]
key_schema = [{'AttributeName': 'ID', 'KeyType': 'HASH'}]
provisioned_throughput = {'ReadCapacityUnits': 5, 'WriteCapacityUnits': 5}
dynamodb.create_table(
TableName=table_name,
AttributeDefinitions=attribute_definitions,
KeySchema=key_schema,
ProvisionedThroughput=provisioned_throughput
)