"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const property_decorator_1 = require("../property/property.decorator");
const index_type_enum_1 = require("./index-type.enum");
function GSISortKey(indexName) {
    return (target, propertyKey) => {
        if (typeof propertyKey === 'string') {
            property_decorator_1.initOrUpdateIndex(index_type_enum_1.IndexType.GSI, { name: indexName, keyType: 'RANGE' }, target, propertyKey);
        }
    };
}
exports.GSISortKey = GSISortKey;
//# sourceMappingURL=gsi-sort-key.decorator.js.map