summaryrefslogtreecommitdiff
path: root/boto/dynamodb/schema.py
diff options
context:
space:
mode:
Diffstat (limited to 'boto/dynamodb/schema.py')
-rw-r--r--boto/dynamodb/schema.py12
1 files changed, 6 insertions, 6 deletions
diff --git a/boto/dynamodb/schema.py b/boto/dynamodb/schema.py
index 108d3e9c..34ff212a 100644
--- a/boto/dynamodb/schema.py
+++ b/boto/dynamodb/schema.py
@@ -15,12 +15,13 @@
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
# OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABIL-
# ITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT
-# SHALL THE AUTHOR BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
+# SHALL THE AUTHOR BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
# WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
# IN THE SOFTWARE.
#
+
class Schema(object):
"""
Represents a DynamoDB schema.
@@ -49,26 +50,25 @@ class Schema(object):
@property
def dict(self):
return self._dict
-
+
@property
def hash_key_name(self):
return self._dict['HashKeyElement']['AttributeName']
-
+
@property
def hash_key_type(self):
return self._dict['HashKeyElement']['AttributeType']
-
+
@property
def range_key_name(self):
name = None
if 'RangeKeyElement' in self._dict:
name = self._dict['RangeKeyElement']['AttributeName']
return name
-
+
@property
def range_key_type(self):
type = None
if 'RangeKeyElement' in self._dict:
type = self._dict['RangeKeyElement']['AttributeType']
return type
-