2
votes

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

1 Answers

1
votes

Here is the link to the official documentation of the AWS SDK for iOS for AWS DynamoDB service: AWS SDK for iOS - AWSDynamoDB Reference

Here is the link to the AWS DynamoDB BatchWriteItem operation from the above documentation: AWS SDK for iOS - AWS DynamoDB BatchWriteItem

Swift Declaration Example:

func batchWriteItem(_ request: AWSDynamoDBBatchWriteItemInput) -> Any!

More details on AWSDynamoDBBatchWriteItemInput can be found here: AWS SDK for iOS - AWS DynamoDB BatchWriteItemInput