lifion-kinesis
Version:
Lifion client for Amazon Kinesis Data streams
46 lines (41 loc) • 927 B
JavaScript
/**
* Module with a collection of constants used across the codebase.
*
* @module constants
* @private
*/
;
/**
* A list of error codes that should not be retried.
*
* @memberof module:constants
*/
const BAIL_RETRY_LIST = Object.freeze([
'ConditionalCheckFailedException',
'ConfigError',
'ExpiredIteratorException',
'MissingParameter',
'MissingRequiredParameter',
'MultipleValidationErrors',
'NoSuchBucket',
'NoSuchKey',
'NoSuchLifecycleConfiguration',
'NoSuchTagSet',
'NotFound',
'ResourceInUseException',
'ResourceNotFoundException',
'TagSet',
'UnexpectedParameter',
'UnknownOperationException',
'ValidationException'
]);
/**
* A list of error codes that should always be retried.
*
* @memberof module:constants
*/
const FORCED_RETRY_LIST = Object.freeze(['ENOTFOUND', 'ENETUNREACH']);
module.exports = Object.freeze({
BAIL_RETRY_LIST,
FORCED_RETRY_LIST
});