Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
}).catch((e) => {
if (e.name === 'ThrottlingException') {
logger.error('CloudWatch subscription logic temporarily throttled by AWS.');
} else {
throw e;
}
});