I\'m a new user in boto3 and i\'m using DynamoDB
.
I went through over the DynamoDB api and I couldn\'t find any method which tell me if a table is already e
Alternate approach if you do not want to use boto3.client but only boto3.resource:
import boto3
database = boto3.resource('dynamodb', endpoint_url="http://localhost:8000")
table_name = 'MyTable'
table_names = [table.name for table in database.tables.all()]
if table_name in table_names:
print('table', table_name, 'exists')