in lib/aws-record/record/secondary_indexes.rb [114:127]
def _si_key_schema(opts)
key_schema = [{
key_type: 'HASH',
attribute_name: @attributes.storage_name_for(opts[:hash_key])
}]
if opts[:range_key]
key_schema << {
key_type: 'RANGE',
attribute_name: @attributes.storage_name_for(opts[:range_key])
}
end
key_schema
end