From 507f6e7b7634f7242ab4d99a06fdc37949f6e634 Mon Sep 17 00:00:00 2001 From: Jason Friedland Date: Tue, 7 Feb 2017 08:08:22 +1100 Subject: [PATCH] Add docs for GSI throughput changes (#224) --- docs/low_level.rst | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/docs/low_level.rst b/docs/low_level.rst index 61bc56fbf..9667cddc4 100644 --- a/docs/low_level.rst +++ b/docs/low_level.rst @@ -80,8 +80,22 @@ but here is a low level example to demonstrate the point: } ] } - conn.create_table('tablename', **kwargs) + conn.create_table('table_name', **kwargs) +You can also use `update_table` to change the Provisioned Throughput capacity of Global Secondary Indexes: + +.. code-block:: python + + >>> kwargs = { + 'global_secondary_index_updates': [ + { + 'index_name': 'index_name', + 'read_capacity_units': 10, + 'write_capacity_units': 10 + } + ] + } + >>> conn.update_table('table_name', **kwargs) Modifying items ^^^^^^^^^^^^^^^