Skip to content

Commit 639e57c

Browse files
authored
Docs: Clarifying BatchWriteItem limits (#3519)
* Docs: Clarifying BatchWriteItem limits
1 parent 87bc5cb commit 639e57c

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

services-custom/dynamodb-enhanced/src/main/java/software/amazon/awssdk/enhanced/dynamodb/DynamoDbEnhancedClient.java

+6
Original file line numberDiff line numberDiff line change
@@ -168,6 +168,9 @@ default BatchGetResultPageIterable batchGetItem(Consumer<BatchGetItemEnhancedReq
168168
* The additional configuration parameters that the enhanced client supports are defined
169169
* in the {@link BatchWriteItemEnhancedRequest}.
170170
* <p>
171+
* A single call to BatchWriteItem has the same limit of items as the low-level DynamoDB API BatchWriteItem operation,
172+
* considering all items across all WriteBatches.
173+
* <p>
171174
* <b>Note: </b> BatchWriteItem cannot update items. Instead, use the individual updateItem operation
172175
* {@link DynamoDbTable#updateItem(UpdateItemEnhancedRequest)}.
173176
* <p>
@@ -218,6 +221,9 @@ default BatchWriteResult batchWriteItem(BatchWriteItemEnhancedRequest request) {
218221
* The additional configuration parameters that the enhanced client supports are defined
219222
* in the {@link BatchWriteItemEnhancedRequest}.
220223
* <p>
224+
* A single call to BatchWriteItem has the same limit of items as the low-level DynamoDB API BatchWriteItem operation,
225+
* considering all items across all WriteBatches.
226+
* <p>
221227
* <b>Note: </b> BatchWriteItem cannot update items. Instead, use the individual updateItem operation
222228
* {@link DynamoDbTable#updateItem(UpdateItemEnhancedRequest)}.
223229
* <p>

services-custom/dynamodb-enhanced/src/main/java/software/amazon/awssdk/enhanced/dynamodb/DynamoDbTable.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -851,7 +851,7 @@ default void deleteTable() {
851851
}
852852

853853
/**
854-
* Describes a table in DynamoDb with the name defined for this {@link DynamoDbTable).
854+
* Describes a table in DynamoDb with the name defined for this {@link DynamoDbTable}.
855855
* This operation calls the low-level DynamoDB API DescribeTable operation,
856856
* see {@link DynamoDbClient#describeTable(DescribeTableRequest)}
857857
* <p>

0 commit comments

Comments
 (0)