aws-lockbox
Version:
AWS SSM Parameter Store secrets manager with TypeScript support
17 lines • 488 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.Throttler = void 0;
class Throttler {
static isThrottledError(err) {
if (!err)
return false;
const throttledCodes = [
'ThrottlingException',
'TooManyRequestsException',
'RequestLimitExceeded'
];
return throttledCodes.includes(err.code || '');
}
}
exports.Throttler = Throttler;
//# sourceMappingURL=Throttler.js.map