I am trying to batch-write a list of items into a database using code sample from here
Here's a code excerpt from my script:
import boto
conn = boto.connect_dynamodb(...)
main_table = conn.get_table(...)
do_batch_write(items,conn,main_table)
def do_batch_write(items,conn,table):
batch_list = conn.new_batch_write_list()
At the last line, I am getting the following exception:
'Layer2' object has no attribute 'new_batch_write_list'
Why? I seem to be doing exactly what's in the sample under the above link. Thanks!