title: Example for AWS dynamoDB batchWriteItem on Swift
body: <p>I need to insert multiple items into AWS dynamoDB table. The AWS putItem request works fine, but I can't find any documentation/forum with example for iOS AWS batchWriteItem request.
  It probably looks like:</p>
  <pre><code>dynamoDB.batchWriteItem (request1!) { (output, error) in
                      if  (error == nil ) {
             
          }
          else {
              if error?.localizedDescription.range(of: &quot;offline&quot;) != nil {
                  
              }
          }
      }
  </code></pre>
  <p>Can please somebody give an example how I assemble a &quot;request1&quot;? Thanks!</p>