title: boto3 dynamodb batch_writer how to perform rollback
body: <p>I'm using boto3 to access AWS dynamodb table and batch write to it, here is the sample code:</p>
  
  <pre class="lang-py prettyprint-override"><code>with table.batch_writer() as batch:
      try:
          for i in range(10):
              id = uuid.uuid4().hex
  
              # A function which perform a job and finish with write to the table
              # If the job fails, the function will raise an exception
              write_to_table(batch, id)
      except:
          # Perform a rollback
          print("{} failed".format(id))
  </code></pre>
  
  <p>Is it possible to perform a rollback to the entire batch using the <strong>BatchWriteItem</strong>? (in the except block for instance).</p>
  
  <p>Thanks.</p>