From 886d2ca4e8277195fe23c08141f0802cf5cd537b Mon Sep 17 00:00:00 2001 From: Matt Ferrante Date: Thu, 31 Dec 2015 17:16:50 -0500 Subject: [PATCH] fix for throughput not showing correctly https://github.com/boto/boto/issues/3349 --- boto/dynamodb2/table.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/boto/dynamodb2/table.py b/boto/dynamodb2/table.py index 3b187566f3..894aa35459 100644 --- a/boto/dynamodb2/table.py +++ b/boto/dynamodb2/table.py @@ -307,6 +307,12 @@ def _introspect_all_indexes(self, raw_indexes, map_indexes_projection): field['Projection']['ProjectionType'] ) + if 'ProvisionedThroughput' in field: + raw_throughput = field['ProvisionedThroughput'] + kwargs['throughput'] = {} + kwargs['throughput']['read'] = int(raw_throughput['ReadCapacityUnits']) + kwargs['throughput']['write'] = int(raw_throughput['WriteCapacityUnits']) + name = field['IndexName'] kwargs['parts'] = self._introspect_schema(field['KeySchema'], None) indexes.append(index_klass(name, **kwargs))