@adpt/cloud
Version:
AdaptJS cloud component library
32 lines • 1.24 kB
JavaScript
;
/*
* Copyright 2019-2020 Unbounded Systems, LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
Object.defineProperty(exports, "__esModule", { value: true });
const tslib_1 = require("tslib");
const utils_1 = require("@adpt/utils");
const aws_sdk_1 = tslib_1.__importDefault(require("aws-sdk"));
if (utils_1.ciReportEnabled() && !aws_sdk_1.default.config.logger) {
const logger = utils_1.ciMaybeCreateLogger("aws-sdk");
if (logger)
aws_sdk_1.default.config.logger = logger;
}
const customBackoff = utils_1.makeRetryDelay();
aws_sdk_1.default.config.update({
maxRetries: 20,
retryDelayOptions: { customBackoff },
});
exports.default = aws_sdk_1.default;
//# sourceMappingURL=aws-sdk.js.map