Skip to content

Commit aa3508a

Browse files
authored
Fixing the documentation for UpdateItemEnhancedResponse to correctly describe which return values the attributes have (#3881)
1 parent 9f7a141 commit aa3508a

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

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

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@
2323
import software.amazon.awssdk.enhanced.dynamodb.DynamoDbTable;
2424
import software.amazon.awssdk.services.dynamodb.model.ConsumedCapacity;
2525
import software.amazon.awssdk.services.dynamodb.model.ItemCollectionMetrics;
26+
import software.amazon.awssdk.services.dynamodb.model.ReturnValue;
2627
import software.amazon.awssdk.services.dynamodb.model.UpdateItemResponse;
2728

2829
/**
@@ -46,7 +47,8 @@ private UpdateItemEnhancedResponse(Builder<T> builder) {
4647
}
4748

4849
/**
49-
* The attribute values as they appeared before the {@code UpdateItem} operation.
50+
* The returned attribute values. These correspond to the DynamoDB {@link ReturnValue} setting. By default,
51+
* the attributes reflect the values after the {@code UpdateItem} operation has been applied ({@link ReturnValue#ALL_NEW}).
5052
*/
5153
public T attributes() {
5254
return attributes;

0 commit comments

Comments
 (0)