wait_for_table_activation¶
-
wait_for_table_activation
(connection, table)¶ Make
DescribeTable
actions until the table’s status (and all its GSI’s statuses) is`"ACTIVE"`
. Useful afterCreateTable
andUpdateTable
actions.>>> connection( ... CreateTable(table) ... .hash_key("h", STRING) ... .provisioned_throughput(1, 1) ... ).table_description.table_status u'CREATING' >>> wait_for_table_activation(connection, table) >>> connection(DescribeTable(table)).table.table_status u'ACTIVE'