def get_index_range_keyname(self, index_name):
    '\n        Returns the name of the hash key for a given index\n        '
    global_indexes = self.data.get(GLOBAL_SECONDARY_INDEXES)
    local_indexes = self.data.get(LOCAL_SECONDARY_INDEXES)
    indexes = []
    if local_indexes:
        indexes += local_indexes
    if global_indexes:
        indexes += global_indexes
    for index in indexes:
        if (index.get(INDEX_NAME) == index_name):
            for schema_key in index.get(KEY_SCHEMA):
                if (schema_key.get(KEY_TYPE) == RANGE):
                    return schema_key.get(ATTR_NAME)
    return None
Returns the name of the hash key for a given index
def get_index_range_keyname(self, index_name):
    '\n        \n        '
    global_indexes = self.data.get(GLOBAL_SECONDARY_INDEXES)
    local_indexes = self.data.get(LOCAL_SECONDARY_INDEXES)
    indexes = []
    if local_indexes:
        indexes += local_indexes
    if global_indexes:
        indexes += global_indexes
    for index in indexes:
        if (index.get(INDEX_NAME) == index_name):
            for schema_key in index.get(KEY_SCHEMA):
                if (schema_key.get(KEY_TYPE) == RANGE):
                    return schema_key.get(ATTR_NAME)
    return None