UNPKG

440 BJavaScriptView Raw
1function apiLoader(svc, version) {
2 if (!apiLoader.services.hasOwnProperty(svc)) {
3 throw new Error('InvalidService: Failed to load api for ' + svc);
4 }
5 return apiLoader.services[svc][version];
6}
7
8/**
9 * @api private
10 *
11 * This member of AWS.apiLoader is private, but changing it will necessitate a
12 * change to ../scripts/services-table-generator.ts
13 */
14apiLoader.services = {};
15
16/**
17 * @api private
18 */
19module.exports = apiLoader;