2
0
mirror of https://github.com/cderche/greenlock-storage-s3 synced 2025-07-05 15:46:31 +00:00
2019-05-08 12:19:12 +01:00

20 lines
440 B
JavaScript

function apiLoader(svc, version) {
if (!apiLoader.services.hasOwnProperty(svc)) {
throw new Error('InvalidService: Failed to load api for ' + svc);
}
return apiLoader.services[svc][version];
}
/**
* @api private
*
* This member of AWS.apiLoader is private, but changing it will necessitate a
* change to ../scripts/services-table-generator.ts
*/
apiLoader.services = {};
/**
* @api private
*/
module.exports = apiLoader;