lifion-kinesis
Version:
Lifion client for Amazon Kinesis Data streams
41 lines (37 loc) • 883 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']);
export { BAIL_RETRY_LIST, FORCED_RETRY_LIST };