3

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 Answer 1

1

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

Sign up to request clarification or add additional context in comments.

3 Comments

Thanks! Is anywhere is example how can I write AWSDynamoDBBatchWriteItemInput?
@tatiana_c, If you liked the answer and it worked for you, kindly approve it and upvote it as well as recommended by Stack Overflow.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.