Skip to content

Commit

Permalink
format
Browse files Browse the repository at this point in the history
  • Loading branch information
ngr committed Jun 12, 2019
1 parent eef6f93 commit 817b76f
Showing 1 changed file with 12 additions and 12 deletions.
24 changes: 12 additions & 12 deletions sosw/components/dynamo_db.py
Original file line number Diff line number Diff line change
Expand Up @@ -139,18 +139,18 @@ def get_table_indexes(self, table_name: Optional[str] = None) -> Dict:
Returns **active** indexes of the table: their hash key, range key, and projection type.
.. code-block:: python
{
'index_1_name': {
'projection_type': 'ALL', # One of: 'ALL'|'KEYS_ONLY'|'INCLUDE'
'hash_key': 'the_hash_key_column_name',
'range_key': 'the_range_key_column_name', # Can be None if the index has no range key
'provisioned_throughput': {
'write_capacity': 5,
'read_capacity': 10
}
},
'index_2_name': ...
}
{
'index_1_name': {
'projection_type': 'ALL', # One of: 'ALL'|'KEYS_ONLY'|'INCLUDE'
'hash_key': 'the_hash_key_column_name',
'range_key': 'the_range_key_column_name', # Can be None if the index has no range key
'provisioned_throughput': {
'write_capacity': 5,
'read_capacity': 10
}
},
'index_2_name': ...
}
"""

Expand Down

0 comments on commit 817b76f

Please sign in to comment.