dynamoose
Version:
Dynamoose is a modeling tool for Amazon's DynamoDB (inspired by Mongoose)
21 lines • 695 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.default = (options) => {
if (!options.throughput) {
return {};
}
if (options.throughput === "ON_DEMAND") {
return {
"BillingMode": "PAY_PER_REQUEST"
};
}
else {
return {
"ProvisionedThroughput": {
"ReadCapacityUnits": typeof options.throughput === "number" ? options.throughput : options.throughput.read,
"WriteCapacityUnits": typeof options.throughput === "number" ? options.throughput : options.throughput.write
}
};
}
};
//# sourceMappingURL=get_provisioned_throughput.js.map