Example for AWS dynamoDB batchWriteItem on Swift

Viewed 199

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:

dynamoDB.batchWriteItem (request1!) { (output, error) in
                    if  (error == nil ) {
           
        }
        else {
            if error?.localizedDescription.range(of: "offline") != nil {
                
            }
        }
    }

Can please somebody give an example how I assemble a "request1"? Thanks!

1 Answers
Related