From 3800d0baa50db4a5dac40efc99e3baccaa4b6f24 Mon Sep 17 00:00:00 2001 From: Manish Dait <90558243+ManishDait@users.noreply.github.com> Date: Wed, 11 Oct 2023 08:02:29 +0530 Subject: [PATCH] fix incorrect docs for DocumentTableSchema (#4348) Co-authored-by: Debora N. Ito <476307+debora-ito@users.noreply.github.com> --- .../enhanced/dynamodb/document/DocumentTableSchema.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/services-custom/dynamodb-enhanced/src/main/java/software/amazon/awssdk/enhanced/dynamodb/document/DocumentTableSchema.java b/services-custom/dynamodb-enhanced/src/main/java/software/amazon/awssdk/enhanced/dynamodb/document/DocumentTableSchema.java index a3283e969b36..17b54da8cffd 100644 --- a/services-custom/dynamodb-enhanced/src/main/java/software/amazon/awssdk/enhanced/dynamodb/document/DocumentTableSchema.java +++ b/services-custom/dynamodb-enhanced/src/main/java/software/amazon/awssdk/enhanced/dynamodb/document/DocumentTableSchema.java @@ -53,8 +53,8 @@ *

DocumentTableSchema specifying primaryKey, sortKey and a customAttributeConverter can be created as below * {@snippet : * DocumentTableSchema documentTableSchema = DocumentTableSchema.builder() - * .primaryKey("sampleHashKey", AttributeValueType.S) - * .sortKey("sampleSortKey", AttributeValueType.S) + * .addIndexPartitionKey("sampleIndexName", "sampleHashKey", AttributeValueType.S) + * .addIndexSortKey("sampleIndexName", "sampleSortKey", AttributeValueType.S) * .attributeConverterProviders(customAttributeConverter, AttributeConverterProvider.defaultProvider()) * .build(); *}