Skip to content

Commit 507f6e7

Browse files
jasonfriedlanddanielhochman
authored andcommitted
Add docs for GSI throughput changes (#224)
1 parent 874d18e commit 507f6e7

File tree

1 file changed

+15
-1
lines changed

1 file changed

+15
-1
lines changed

docs/low_level.rst

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,8 +80,22 @@ but here is a low level example to demonstrate the point:
8080
}
8181
]
8282
}
83-
conn.create_table('tablename', **kwargs)
83+
conn.create_table('table_name', **kwargs)
8484
85+
You can also use `update_table` to change the Provisioned Throughput capacity of Global Secondary Indexes:
86+
87+
.. code-block:: python
88+
89+
>>> kwargs = {
90+
'global_secondary_index_updates': [
91+
{
92+
'index_name': 'index_name',
93+
'read_capacity_units': 10,
94+
'write_capacity_units': 10
95+
}
96+
]
97+
}
98+
>>> conn.update_table('table_name', **kwargs)
8599
86100
Modifying items
87101
^^^^^^^^^^^^^^^

0 commit comments

Comments
 (0)