Table of Contents

Class MultiTableDocumentBatchWrite

Namespace
Amazon.DynamoDBv2.DocumentModel
Assembly
AWSSDK.DynamoDBv2.dll

Class for putting and/or deleting a batch of items in multiple DynamoDB tables.

public class MultiTableDocumentBatchWrite
Inheritance
MultiTableDocumentBatchWrite
Inherited Members

Constructors

MultiTableDocumentBatchWrite(params DocumentBatchWrite[])

Constructs a MultiTableDocumentBatchWrite object from a number of DocumentBatchWrite objects.

public MultiTableDocumentBatchWrite(params DocumentBatchWrite[] batches)

Parameters

batches DocumentBatchWrite[]

Collection of DocumentBatchWrite objects.

Properties

Batches

List of DocumentBatchWrite objects to include in the multi-table batch request.

public List<DocumentBatchWrite> Batches { get; }

Property Value

List<DocumentBatchWrite>

Methods

AddBatch(DocumentBatchWrite)

Add a DocumentBatchWrite object to the multi-table batch request.

public void AddBatch(DocumentBatchWrite batch)

Parameters

batch DocumentBatchWrite

DocumentBatchWrite to add.

ExecuteAsync(CancellationToken)

Initiates the asynchronous execution of the Execute operation. Amazon.DynamoDBv2.DocumentModel.MultiTableDocumentBatchWrite.Execute

public Task ExecuteAsync(CancellationToken cancellationToken = default)

Parameters

cancellationToken CancellationToken

Token which can be used to cancel the task.

Returns

Task

A Task that can be used to poll or wait for results, or both.