Skip to content

Commit b4fcd0a

Browse files
Adrian ChleboszAdrian Chlebosz
Adrian Chlebosz
authored and
Adrian Chlebosz
committed
Remove specifying provisioned throughput for GSIs (aws#3923)
* If there's no information about the billing mode of the new table, then it'll be using the PAY_PER_REQUEST one. It means that all GSIs related to this table will be doing the same and there's no need to hard code any provisioned throughput like it was done
1 parent 9e2ee8b commit b4fcd0a

File tree

1 file changed

+0
-1
lines changed
  • services-custom/dynamodb-enhanced/src/main/java/software/amazon/awssdk/enhanced/dynamodb/internal/client

1 file changed

+0
-1
lines changed

services-custom/dynamodb-enhanced/src/main/java/software/amazon/awssdk/enhanced/dynamodb/internal/client/DefaultDynamoDbTable.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,6 @@ private EnhancedGlobalSecondaryIndex mapIndexMetadataToEnhancedGlobalSecondaryIn
169169
return EnhancedGlobalSecondaryIndex.builder()
170170
.indexName(indexMetadata.name())
171171
.projection(pb -> pb.projectionType(ProjectionType.ALL))
172-
.provisionedThroughput(ptb -> ptb.readCapacityUnits(20L).writeCapacityUnits(20L))
173172
.build();
174173
}
175174

0 commit comments

Comments
 (0)