@aws-sdk/client-support 3.43.0 → 3.47.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +47 -0
- package/README.md +17 -17
- package/dist-cjs/endpoints.js +1 -0
- package/dist-cjs/models/models_0.js +1 -56
- package/dist-cjs/runtimeConfig.browser.js +7 -2
- package/dist-cjs/runtimeConfig.js +9 -3
- package/dist-es/endpoints.js +1 -0
- package/dist-es/models/models_0.js +0 -36
- package/dist-es/runtimeConfig.browser.js +12 -3
- package/dist-es/runtimeConfig.js +13 -6
- package/dist-types/Support.d.ts +91 -91
- package/dist-types/SupportClient.d.ts +22 -18
- package/dist-types/commands/AddAttachmentsToSetCommand.d.ts +4 -4
- package/dist-types/commands/AddCommunicationToCaseCommand.d.ts +5 -5
- package/dist-types/commands/CreateCaseCommand.d.ts +11 -11
- package/dist-types/commands/DescribeAttachmentCommand.d.ts +4 -4
- package/dist-types/commands/DescribeCasesCommand.d.ts +4 -4
- package/dist-types/commands/DescribeCommunicationsCommand.d.ts +4 -4
- package/dist-types/commands/DescribeServicesCommand.d.ts +7 -7
- package/dist-types/commands/DescribeSeverityLevelsCommand.d.ts +4 -4
- package/dist-types/commands/DescribeTrustedAdvisorCheckRefreshStatusesCommand.d.ts +5 -5
- package/dist-types/commands/DescribeTrustedAdvisorCheckResultCommand.d.ts +5 -5
- package/dist-types/commands/DescribeTrustedAdvisorCheckSummariesCommand.d.ts +5 -5
- package/dist-types/commands/DescribeTrustedAdvisorChecksCommand.d.ts +7 -7
- package/dist-types/commands/RefreshTrustedAdvisorCheckCommand.d.ts +5 -5
- package/dist-types/commands/ResolveCaseCommand.d.ts +4 -4
- package/dist-types/models/models_0.d.ts +51 -105
- package/dist-types/runtimeConfig.browser.d.ts +3 -2
- package/dist-types/runtimeConfig.d.ts +4 -3
- package/dist-types/runtimeConfig.native.d.ts +1 -0
- package/dist-types/ts3.4/SupportClient.d.ts +3 -1
- package/dist-types/ts3.4/models/models_0.d.ts +0 -36
- package/dist-types/ts3.4/runtimeConfig.browser.d.ts +3 -2
- package/dist-types/ts3.4/runtimeConfig.d.ts +4 -3
- package/dist-types/ts3.4/runtimeConfig.native.d.ts +1 -0
- package/package.json +39 -46
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,53 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
## [3.47.1](https://github.com/aws/aws-sdk-js-v3/compare/v3.47.0-release-test-1...v3.47.1) (2022-01-20)
|
|
7
|
+
|
|
8
|
+
**Note:** Version bump only for package @aws-sdk/client-support
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
# [3.47.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.46.0...v3.47.0) (2022-01-15)
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
### Features
|
|
18
|
+
|
|
19
|
+
* **clients:** update clients to use default values inferred from defaults mode ([#3192](https://github.com/aws/aws-sdk-js-v3/issues/3192)) ([9152e21](https://github.com/aws/aws-sdk-js-v3/commit/9152e210c6ec29f34bb070eaf2874039022e6ab7))
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
# [3.46.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.45.0...v3.46.0) (2022-01-07)
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
### Bug Fixes
|
|
29
|
+
|
|
30
|
+
* **clients:** update clean:dist script to delete dist-* folder ([#3155](https://github.com/aws/aws-sdk-js-v3/issues/3155)) ([cdb1709](https://github.com/aws/aws-sdk-js-v3/commit/cdb17090f82d1fc8755811c82cbed5976ec7e60b))
|
|
31
|
+
|
|
32
|
+
|
|
33
|
+
### Features
|
|
34
|
+
|
|
35
|
+
* **clients:** extend typedoc.json from root ([#3136](https://github.com/aws/aws-sdk-js-v3/issues/3136)) ([f6a3ef5](https://github.com/aws/aws-sdk-js-v3/commit/f6a3ef541ae2d92872d09d8cab6727911287ebb2))
|
|
36
|
+
* end support for Node.js 10.x ([#3122](https://github.com/aws/aws-sdk-js-v3/issues/3122)) ([7acf18a](https://github.com/aws/aws-sdk-js-v3/commit/7acf18abd3fb1cc461f809110cdb0d7968c2070e))
|
|
37
|
+
|
|
38
|
+
|
|
39
|
+
|
|
40
|
+
|
|
41
|
+
|
|
42
|
+
# [3.45.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.44.0...v3.45.0) (2021-12-23)
|
|
43
|
+
|
|
44
|
+
|
|
45
|
+
### Features
|
|
46
|
+
|
|
47
|
+
* **clients:** update clients as of 2021/12/23 ([#3110](https://github.com/aws/aws-sdk-js-v3/issues/3110)) ([5d638e1](https://github.com/aws/aws-sdk-js-v3/commit/5d638e188ce64fa80fe36b8cba79ba63b80b50b7))
|
|
48
|
+
|
|
49
|
+
|
|
50
|
+
|
|
51
|
+
|
|
52
|
+
|
|
6
53
|
# [3.43.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.42.0...v3.43.0) (2021-11-29)
|
|
7
54
|
|
|
8
55
|
**Note:** Version bump only for package @aws-sdk/client-support
|
package/README.md
CHANGED
|
@@ -7,54 +7,54 @@
|
|
|
7
7
|
|
|
8
8
|
AWS SDK for JavaScript Support Client for Node.js, Browser and React Native.
|
|
9
9
|
|
|
10
|
-
<fullname>
|
|
10
|
+
<fullname>Amazon Web Services Support</fullname>
|
|
11
11
|
|
|
12
|
-
<p>The <i>
|
|
13
|
-
information about the
|
|
14
|
-
your support cases programmatically. The
|
|
12
|
+
<p>The <i>Amazon Web Services Support API Reference</i> is intended for programmers who need detailed
|
|
13
|
+
information about the Amazon Web Services Support operations and data types. You can use the API to manage
|
|
14
|
+
your support cases programmatically. The Amazon Web Services Support API uses HTTP methods that return
|
|
15
15
|
results in JSON format.</p>
|
|
16
16
|
<note>
|
|
17
17
|
<ul>
|
|
18
18
|
<li>
|
|
19
|
-
<p>You must have a Business or Enterprise Support plan to use the
|
|
19
|
+
<p>You must have a Business, Enterprise On-Ramp, or Enterprise Support plan to use the Amazon Web Services Support
|
|
20
20
|
API. </p>
|
|
21
21
|
</li>
|
|
22
22
|
<li>
|
|
23
|
-
<p>If you call the
|
|
24
|
-
Business or Enterprise Support plan, the
|
|
23
|
+
<p>If you call the Amazon Web Services Support API from an account that does not have a
|
|
24
|
+
Business, Enterprise On-Ramp, or Enterprise Support plan, the
|
|
25
25
|
<code>SubscriptionRequiredException</code> error message appears. For
|
|
26
|
-
information about changing your support plan, see <a href="http://aws.amazon.com/premiumsupport/">
|
|
26
|
+
information about changing your support plan, see <a href="http://aws.amazon.com/premiumsupport/">Amazon Web Services Support</a>.</p>
|
|
27
27
|
</li>
|
|
28
28
|
</ul>
|
|
29
29
|
</note>
|
|
30
|
-
<p>The
|
|
30
|
+
<p>The Amazon Web Services Support service also exposes a set of <a href="http://aws.amazon.com/premiumsupport/trustedadvisor/">Trusted Advisor</a> features. You can
|
|
31
31
|
retrieve a list of checks and their descriptions, get check results, specify checks to
|
|
32
32
|
refresh, and get the refresh status of checks.</p>
|
|
33
|
-
<p>The following list describes the
|
|
33
|
+
<p>The following list describes the Amazon Web Services Support case management operations:</p>
|
|
34
34
|
<ul>
|
|
35
35
|
<li>
|
|
36
36
|
<p> Service names, issue categories, and available severity levels - The
|
|
37
|
-
<a>DescribeServices</a> and <a>DescribeSeverityLevels</a> operations return
|
|
37
|
+
<a>DescribeServices</a> and <a>DescribeSeverityLevels</a> operations return Amazon Web Services service names,
|
|
38
38
|
service codes, service categories, and problem severity levels. You use these
|
|
39
39
|
values when you call the <a>CreateCase</a> operation.</p>
|
|
40
40
|
</li>
|
|
41
41
|
<li>
|
|
42
42
|
<p> Case creation, case details, and case resolution - The <a>CreateCase</a>, <a>DescribeCases</a>, <a>DescribeAttachment</a>, and <a>ResolveCase</a> operations
|
|
43
|
-
create
|
|
43
|
+
create Amazon Web Services Support cases, retrieve information about cases, and resolve cases.</p>
|
|
44
44
|
</li>
|
|
45
45
|
<li>
|
|
46
46
|
<p> Case communication - The <a>DescribeCommunications</a>,
|
|
47
47
|
<a>AddCommunicationToCase</a>, and <a>AddAttachmentsToSet</a> operations retrieve and add communications
|
|
48
|
-
and attachments to
|
|
48
|
+
and attachments to Amazon Web Services Support cases.</p>
|
|
49
49
|
</li>
|
|
50
50
|
</ul>
|
|
51
|
-
<p>The following list describes the operations available from the
|
|
51
|
+
<p>The following list describes the operations available from the Amazon Web Services Support service for
|
|
52
52
|
Trusted Advisor:</p>
|
|
53
53
|
<ul>
|
|
54
54
|
<li>
|
|
55
55
|
<p>
|
|
56
56
|
<a>DescribeTrustedAdvisorChecks</a> returns the list of checks that
|
|
57
|
-
run against your
|
|
57
|
+
run against your Amazon Web Services resources.</p>
|
|
58
58
|
</li>
|
|
59
59
|
<li>
|
|
60
60
|
<p>Using the <code>checkId</code> for a specific check returned by <a>DescribeTrustedAdvisorChecks</a>, you can call <a>DescribeTrustedAdvisorCheckResult</a> to obtain the results for the
|
|
@@ -76,10 +76,10 @@ specified check.</p>
|
|
|
76
76
|
status of one or more checks.</p>
|
|
77
77
|
</li>
|
|
78
78
|
</ul>
|
|
79
|
-
<p>For authentication of requests,
|
|
79
|
+
<p>For authentication of requests, Amazon Web Services Support uses <a href="https://docs.aws.amazon.com/general/latest/gr/signature-version-4.html">Signature Version 4 Signing
|
|
80
80
|
Process</a>.</p>
|
|
81
81
|
<p>See <a href="https://docs.aws.amazon.com/awssupport/latest/user/Welcome.html">About the
|
|
82
|
-
|
|
82
|
+
Amazon Web Services Support API</a> in the <i>Amazon Web Services Support User Guide</i> for
|
|
83
83
|
information about how to use this service to create and manage your support cases, and
|
|
84
84
|
how to call Trusted Advisor for results of checks on your resources.</p>
|
|
85
85
|
|
package/dist-cjs/endpoints.js
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.RefreshTrustedAdvisorCheckRequest = exports.DescribeTrustedAdvisorCheckSummariesResponse = exports.TrustedAdvisorCheckSummary = exports.DescribeTrustedAdvisorCheckSummariesRequest = exports.DescribeTrustedAdvisorChecksResponse = exports.TrustedAdvisorCheckDescription = exports.DescribeTrustedAdvisorChecksRequest = exports.DescribeTrustedAdvisorCheckResultResponse = exports.TrustedAdvisorCheckResult = exports.TrustedAdvisorResourcesSummary = exports.TrustedAdvisorResourceDetail = exports.TrustedAdvisorCategorySpecificSummary = exports.TrustedAdvisorCostOptimizingSummary = exports.DescribeTrustedAdvisorCheckResultRequest = exports.DescribeTrustedAdvisorCheckRefreshStatusesResponse = exports.TrustedAdvisorCheckRefreshStatus = exports.DescribeTrustedAdvisorCheckRefreshStatusesRequest = exports.DescribeSeverityLevelsResponse = exports.SeverityLevel = exports.DescribeSeverityLevelsRequest = exports.DescribeServicesResponse = exports.Service = exports.Category = exports.DescribeServicesRequest = exports.DescribeCommunicationsResponse = exports.DescribeCommunicationsRequest = exports.DescribeCasesResponse = exports.CaseDetails = exports.RecentCaseCommunications = exports.Communication = exports.DescribeCasesRequest = exports.DescribeAttachmentResponse = exports.DescribeAttachmentRequest = exports.
|
|
4
|
-
exports.ResolveCaseResponse = exports.ResolveCaseRequest = exports.RefreshTrustedAdvisorCheckResponse = void 0;
|
|
3
|
+
exports.ResolveCaseResponse = exports.ResolveCaseRequest = exports.RefreshTrustedAdvisorCheckResponse = exports.RefreshTrustedAdvisorCheckRequest = exports.DescribeTrustedAdvisorCheckSummariesResponse = exports.TrustedAdvisorCheckSummary = exports.DescribeTrustedAdvisorCheckSummariesRequest = exports.DescribeTrustedAdvisorChecksResponse = exports.TrustedAdvisorCheckDescription = exports.DescribeTrustedAdvisorChecksRequest = exports.DescribeTrustedAdvisorCheckResultResponse = exports.TrustedAdvisorCheckResult = exports.TrustedAdvisorResourcesSummary = exports.TrustedAdvisorResourceDetail = exports.TrustedAdvisorCategorySpecificSummary = exports.TrustedAdvisorCostOptimizingSummary = exports.DescribeTrustedAdvisorCheckResultRequest = exports.DescribeTrustedAdvisorCheckRefreshStatusesResponse = exports.TrustedAdvisorCheckRefreshStatus = exports.DescribeTrustedAdvisorCheckRefreshStatusesRequest = exports.DescribeSeverityLevelsResponse = exports.SeverityLevel = exports.DescribeSeverityLevelsRequest = exports.DescribeServicesResponse = exports.Service = exports.Category = exports.DescribeServicesRequest = exports.DescribeCommunicationsResponse = exports.DescribeCommunicationsRequest = exports.DescribeCasesResponse = exports.CaseDetails = exports.RecentCaseCommunications = exports.Communication = exports.DescribeCasesRequest = exports.DescribeAttachmentResponse = exports.DescribeAttachmentRequest = exports.CreateCaseResponse = exports.CreateCaseRequest = exports.AttachmentDetails = exports.AddCommunicationToCaseResponse = exports.AddCommunicationToCaseRequest = exports.AddAttachmentsToSetResponse = exports.AddAttachmentsToSetRequest = exports.Attachment = void 0;
|
|
5
4
|
var Attachment;
|
|
6
5
|
(function (Attachment) {
|
|
7
6
|
Attachment.filterSensitiveLog = (obj) => ({
|
|
@@ -20,36 +19,6 @@ var AddAttachmentsToSetResponse;
|
|
|
20
19
|
...obj,
|
|
21
20
|
});
|
|
22
21
|
})(AddAttachmentsToSetResponse = exports.AddAttachmentsToSetResponse || (exports.AddAttachmentsToSetResponse = {}));
|
|
23
|
-
var AttachmentLimitExceeded;
|
|
24
|
-
(function (AttachmentLimitExceeded) {
|
|
25
|
-
AttachmentLimitExceeded.filterSensitiveLog = (obj) => ({
|
|
26
|
-
...obj,
|
|
27
|
-
});
|
|
28
|
-
})(AttachmentLimitExceeded = exports.AttachmentLimitExceeded || (exports.AttachmentLimitExceeded = {}));
|
|
29
|
-
var AttachmentSetExpired;
|
|
30
|
-
(function (AttachmentSetExpired) {
|
|
31
|
-
AttachmentSetExpired.filterSensitiveLog = (obj) => ({
|
|
32
|
-
...obj,
|
|
33
|
-
});
|
|
34
|
-
})(AttachmentSetExpired = exports.AttachmentSetExpired || (exports.AttachmentSetExpired = {}));
|
|
35
|
-
var AttachmentSetIdNotFound;
|
|
36
|
-
(function (AttachmentSetIdNotFound) {
|
|
37
|
-
AttachmentSetIdNotFound.filterSensitiveLog = (obj) => ({
|
|
38
|
-
...obj,
|
|
39
|
-
});
|
|
40
|
-
})(AttachmentSetIdNotFound = exports.AttachmentSetIdNotFound || (exports.AttachmentSetIdNotFound = {}));
|
|
41
|
-
var AttachmentSetSizeLimitExceeded;
|
|
42
|
-
(function (AttachmentSetSizeLimitExceeded) {
|
|
43
|
-
AttachmentSetSizeLimitExceeded.filterSensitiveLog = (obj) => ({
|
|
44
|
-
...obj,
|
|
45
|
-
});
|
|
46
|
-
})(AttachmentSetSizeLimitExceeded = exports.AttachmentSetSizeLimitExceeded || (exports.AttachmentSetSizeLimitExceeded = {}));
|
|
47
|
-
var InternalServerError;
|
|
48
|
-
(function (InternalServerError) {
|
|
49
|
-
InternalServerError.filterSensitiveLog = (obj) => ({
|
|
50
|
-
...obj,
|
|
51
|
-
});
|
|
52
|
-
})(InternalServerError = exports.InternalServerError || (exports.InternalServerError = {}));
|
|
53
22
|
var AddCommunicationToCaseRequest;
|
|
54
23
|
(function (AddCommunicationToCaseRequest) {
|
|
55
24
|
AddCommunicationToCaseRequest.filterSensitiveLog = (obj) => ({
|
|
@@ -62,30 +31,12 @@ var AddCommunicationToCaseResponse;
|
|
|
62
31
|
...obj,
|
|
63
32
|
});
|
|
64
33
|
})(AddCommunicationToCaseResponse = exports.AddCommunicationToCaseResponse || (exports.AddCommunicationToCaseResponse = {}));
|
|
65
|
-
var CaseIdNotFound;
|
|
66
|
-
(function (CaseIdNotFound) {
|
|
67
|
-
CaseIdNotFound.filterSensitiveLog = (obj) => ({
|
|
68
|
-
...obj,
|
|
69
|
-
});
|
|
70
|
-
})(CaseIdNotFound = exports.CaseIdNotFound || (exports.CaseIdNotFound = {}));
|
|
71
34
|
var AttachmentDetails;
|
|
72
35
|
(function (AttachmentDetails) {
|
|
73
36
|
AttachmentDetails.filterSensitiveLog = (obj) => ({
|
|
74
37
|
...obj,
|
|
75
38
|
});
|
|
76
39
|
})(AttachmentDetails = exports.AttachmentDetails || (exports.AttachmentDetails = {}));
|
|
77
|
-
var AttachmentIdNotFound;
|
|
78
|
-
(function (AttachmentIdNotFound) {
|
|
79
|
-
AttachmentIdNotFound.filterSensitiveLog = (obj) => ({
|
|
80
|
-
...obj,
|
|
81
|
-
});
|
|
82
|
-
})(AttachmentIdNotFound = exports.AttachmentIdNotFound || (exports.AttachmentIdNotFound = {}));
|
|
83
|
-
var CaseCreationLimitExceeded;
|
|
84
|
-
(function (CaseCreationLimitExceeded) {
|
|
85
|
-
CaseCreationLimitExceeded.filterSensitiveLog = (obj) => ({
|
|
86
|
-
...obj,
|
|
87
|
-
});
|
|
88
|
-
})(CaseCreationLimitExceeded = exports.CaseCreationLimitExceeded || (exports.CaseCreationLimitExceeded = {}));
|
|
89
40
|
var CreateCaseRequest;
|
|
90
41
|
(function (CreateCaseRequest) {
|
|
91
42
|
CreateCaseRequest.filterSensitiveLog = (obj) => ({
|
|
@@ -98,12 +49,6 @@ var CreateCaseResponse;
|
|
|
98
49
|
...obj,
|
|
99
50
|
});
|
|
100
51
|
})(CreateCaseResponse = exports.CreateCaseResponse || (exports.CreateCaseResponse = {}));
|
|
101
|
-
var DescribeAttachmentLimitExceeded;
|
|
102
|
-
(function (DescribeAttachmentLimitExceeded) {
|
|
103
|
-
DescribeAttachmentLimitExceeded.filterSensitiveLog = (obj) => ({
|
|
104
|
-
...obj,
|
|
105
|
-
});
|
|
106
|
-
})(DescribeAttachmentLimitExceeded = exports.DescribeAttachmentLimitExceeded || (exports.DescribeAttachmentLimitExceeded = {}));
|
|
107
52
|
var DescribeAttachmentRequest;
|
|
108
53
|
(function (DescribeAttachmentRequest) {
|
|
109
54
|
DescribeAttachmentRequest.filterSensitiveLog = (obj) => ({
|
|
@@ -13,13 +13,18 @@ const util_body_length_browser_1 = require("@aws-sdk/util-body-length-browser");
|
|
|
13
13
|
const util_user_agent_browser_1 = require("@aws-sdk/util-user-agent-browser");
|
|
14
14
|
const util_utf8_browser_1 = require("@aws-sdk/util-utf8-browser");
|
|
15
15
|
const runtimeConfig_shared_1 = require("./runtimeConfig.shared");
|
|
16
|
+
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
17
|
+
const util_defaults_mode_browser_1 = require("@aws-sdk/util-defaults-mode-browser");
|
|
16
18
|
const getRuntimeConfig = (config) => {
|
|
17
19
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q;
|
|
20
|
+
const defaultsMode = util_defaults_mode_browser_1.resolveDefaultsModeConfig(config);
|
|
21
|
+
const defaultConfigProvider = () => defaultsMode().then(smithy_client_1.loadConfigsForDefaultMode);
|
|
18
22
|
const clientSharedValues = runtimeConfig_shared_1.getRuntimeConfig(config);
|
|
19
23
|
return {
|
|
20
24
|
...clientSharedValues,
|
|
21
25
|
...config,
|
|
22
26
|
runtime: "browser",
|
|
27
|
+
defaultsMode,
|
|
23
28
|
base64Decoder: (_a = config === null || config === void 0 ? void 0 : config.base64Decoder) !== null && _a !== void 0 ? _a : util_base64_browser_1.fromBase64,
|
|
24
29
|
base64Encoder: (_b = config === null || config === void 0 ? void 0 : config.base64Encoder) !== null && _b !== void 0 ? _b : util_base64_browser_1.toBase64,
|
|
25
30
|
bodyLengthChecker: (_c = config === null || config === void 0 ? void 0 : config.bodyLengthChecker) !== null && _c !== void 0 ? _c : util_body_length_browser_1.calculateBodyLength,
|
|
@@ -27,8 +32,8 @@ const getRuntimeConfig = (config) => {
|
|
|
27
32
|
defaultUserAgentProvider: (_e = config === null || config === void 0 ? void 0 : config.defaultUserAgentProvider) !== null && _e !== void 0 ? _e : util_user_agent_browser_1.defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: package_json_1.default.version }),
|
|
28
33
|
maxAttempts: (_f = config === null || config === void 0 ? void 0 : config.maxAttempts) !== null && _f !== void 0 ? _f : middleware_retry_1.DEFAULT_MAX_ATTEMPTS,
|
|
29
34
|
region: (_g = config === null || config === void 0 ? void 0 : config.region) !== null && _g !== void 0 ? _g : invalid_dependency_1.invalidProvider("Region is missing"),
|
|
30
|
-
requestHandler: (_h = config === null || config === void 0 ? void 0 : config.requestHandler) !== null && _h !== void 0 ? _h : new fetch_http_handler_1.FetchHttpHandler(),
|
|
31
|
-
retryMode: (_j = config === null || config === void 0 ? void 0 : config.retryMode) !== null && _j !== void 0 ? _j : (() =>
|
|
35
|
+
requestHandler: (_h = config === null || config === void 0 ? void 0 : config.requestHandler) !== null && _h !== void 0 ? _h : new fetch_http_handler_1.FetchHttpHandler(defaultConfigProvider),
|
|
36
|
+
retryMode: (_j = config === null || config === void 0 ? void 0 : config.retryMode) !== null && _j !== void 0 ? _j : (async () => (await defaultConfigProvider()).retryMode || middleware_retry_1.DEFAULT_RETRY_MODE),
|
|
32
37
|
sha256: (_k = config === null || config === void 0 ? void 0 : config.sha256) !== null && _k !== void 0 ? _k : sha256_browser_1.Sha256,
|
|
33
38
|
streamCollector: (_l = config === null || config === void 0 ? void 0 : config.streamCollector) !== null && _l !== void 0 ? _l : fetch_http_handler_1.streamCollector,
|
|
34
39
|
useDualstackEndpoint: (_m = config === null || config === void 0 ? void 0 : config.useDualstackEndpoint) !== null && _m !== void 0 ? _m : (() => Promise.resolve(config_resolver_1.DEFAULT_USE_DUALSTACK_ENDPOINT)),
|
|
@@ -16,14 +16,17 @@ const util_user_agent_node_1 = require("@aws-sdk/util-user-agent-node");
|
|
|
16
16
|
const util_utf8_node_1 = require("@aws-sdk/util-utf8-node");
|
|
17
17
|
const runtimeConfig_shared_1 = require("./runtimeConfig.shared");
|
|
18
18
|
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
19
|
+
const util_defaults_mode_node_1 = require("@aws-sdk/util-defaults-mode-node");
|
|
19
20
|
const getRuntimeConfig = (config) => {
|
|
20
21
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q;
|
|
21
|
-
|
|
22
|
+
const defaultsMode = util_defaults_mode_node_1.resolveDefaultsModeConfig(config);
|
|
23
|
+
const defaultConfigProvider = () => defaultsMode().then(smithy_client_1.loadConfigsForDefaultMode);
|
|
22
24
|
const clientSharedValues = runtimeConfig_shared_1.getRuntimeConfig(config);
|
|
23
25
|
return {
|
|
24
26
|
...clientSharedValues,
|
|
25
27
|
...config,
|
|
26
28
|
runtime: "node",
|
|
29
|
+
defaultsMode,
|
|
27
30
|
base64Decoder: (_a = config === null || config === void 0 ? void 0 : config.base64Decoder) !== null && _a !== void 0 ? _a : util_base64_node_1.fromBase64,
|
|
28
31
|
base64Encoder: (_b = config === null || config === void 0 ? void 0 : config.base64Encoder) !== null && _b !== void 0 ? _b : util_base64_node_1.toBase64,
|
|
29
32
|
bodyLengthChecker: (_c = config === null || config === void 0 ? void 0 : config.bodyLengthChecker) !== null && _c !== void 0 ? _c : util_body_length_node_1.calculateBodyLength,
|
|
@@ -31,8 +34,11 @@ const getRuntimeConfig = (config) => {
|
|
|
31
34
|
defaultUserAgentProvider: (_e = config === null || config === void 0 ? void 0 : config.defaultUserAgentProvider) !== null && _e !== void 0 ? _e : util_user_agent_node_1.defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: package_json_1.default.version }),
|
|
32
35
|
maxAttempts: (_f = config === null || config === void 0 ? void 0 : config.maxAttempts) !== null && _f !== void 0 ? _f : node_config_provider_1.loadConfig(middleware_retry_1.NODE_MAX_ATTEMPT_CONFIG_OPTIONS),
|
|
33
36
|
region: (_g = config === null || config === void 0 ? void 0 : config.region) !== null && _g !== void 0 ? _g : node_config_provider_1.loadConfig(config_resolver_1.NODE_REGION_CONFIG_OPTIONS, config_resolver_1.NODE_REGION_CONFIG_FILE_OPTIONS),
|
|
34
|
-
requestHandler: (_h = config === null || config === void 0 ? void 0 : config.requestHandler) !== null && _h !== void 0 ? _h : new node_http_handler_1.NodeHttpHandler(),
|
|
35
|
-
retryMode: (_j = config === null || config === void 0 ? void 0 : config.retryMode) !== null && _j !== void 0 ? _j : node_config_provider_1.loadConfig(
|
|
37
|
+
requestHandler: (_h = config === null || config === void 0 ? void 0 : config.requestHandler) !== null && _h !== void 0 ? _h : new node_http_handler_1.NodeHttpHandler(defaultConfigProvider),
|
|
38
|
+
retryMode: (_j = config === null || config === void 0 ? void 0 : config.retryMode) !== null && _j !== void 0 ? _j : node_config_provider_1.loadConfig({
|
|
39
|
+
...middleware_retry_1.NODE_RETRY_MODE_CONFIG_OPTIONS,
|
|
40
|
+
default: async () => (await defaultConfigProvider()).retryMode || middleware_retry_1.DEFAULT_RETRY_MODE,
|
|
41
|
+
}),
|
|
36
42
|
sha256: (_k = config === null || config === void 0 ? void 0 : config.sha256) !== null && _k !== void 0 ? _k : hash_node_1.Hash.bind(null, "sha256"),
|
|
37
43
|
streamCollector: (_l = config === null || config === void 0 ? void 0 : config.streamCollector) !== null && _l !== void 0 ? _l : node_http_handler_1.streamCollector,
|
|
38
44
|
useDualstackEndpoint: (_m = config === null || config === void 0 ? void 0 : config.useDualstackEndpoint) !== null && _m !== void 0 ? _m : node_config_provider_1.loadConfig(config_resolver_1.NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS),
|
package/dist-es/endpoints.js
CHANGED
|
@@ -11,26 +11,6 @@ export var AddAttachmentsToSetResponse;
|
|
|
11
11
|
(function (AddAttachmentsToSetResponse) {
|
|
12
12
|
AddAttachmentsToSetResponse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
13
13
|
})(AddAttachmentsToSetResponse || (AddAttachmentsToSetResponse = {}));
|
|
14
|
-
export var AttachmentLimitExceeded;
|
|
15
|
-
(function (AttachmentLimitExceeded) {
|
|
16
|
-
AttachmentLimitExceeded.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
17
|
-
})(AttachmentLimitExceeded || (AttachmentLimitExceeded = {}));
|
|
18
|
-
export var AttachmentSetExpired;
|
|
19
|
-
(function (AttachmentSetExpired) {
|
|
20
|
-
AttachmentSetExpired.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
21
|
-
})(AttachmentSetExpired || (AttachmentSetExpired = {}));
|
|
22
|
-
export var AttachmentSetIdNotFound;
|
|
23
|
-
(function (AttachmentSetIdNotFound) {
|
|
24
|
-
AttachmentSetIdNotFound.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
25
|
-
})(AttachmentSetIdNotFound || (AttachmentSetIdNotFound = {}));
|
|
26
|
-
export var AttachmentSetSizeLimitExceeded;
|
|
27
|
-
(function (AttachmentSetSizeLimitExceeded) {
|
|
28
|
-
AttachmentSetSizeLimitExceeded.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
29
|
-
})(AttachmentSetSizeLimitExceeded || (AttachmentSetSizeLimitExceeded = {}));
|
|
30
|
-
export var InternalServerError;
|
|
31
|
-
(function (InternalServerError) {
|
|
32
|
-
InternalServerError.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
33
|
-
})(InternalServerError || (InternalServerError = {}));
|
|
34
14
|
export var AddCommunicationToCaseRequest;
|
|
35
15
|
(function (AddCommunicationToCaseRequest) {
|
|
36
16
|
AddCommunicationToCaseRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
@@ -39,22 +19,10 @@ export var AddCommunicationToCaseResponse;
|
|
|
39
19
|
(function (AddCommunicationToCaseResponse) {
|
|
40
20
|
AddCommunicationToCaseResponse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
41
21
|
})(AddCommunicationToCaseResponse || (AddCommunicationToCaseResponse = {}));
|
|
42
|
-
export var CaseIdNotFound;
|
|
43
|
-
(function (CaseIdNotFound) {
|
|
44
|
-
CaseIdNotFound.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
45
|
-
})(CaseIdNotFound || (CaseIdNotFound = {}));
|
|
46
22
|
export var AttachmentDetails;
|
|
47
23
|
(function (AttachmentDetails) {
|
|
48
24
|
AttachmentDetails.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
49
25
|
})(AttachmentDetails || (AttachmentDetails = {}));
|
|
50
|
-
export var AttachmentIdNotFound;
|
|
51
|
-
(function (AttachmentIdNotFound) {
|
|
52
|
-
AttachmentIdNotFound.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
53
|
-
})(AttachmentIdNotFound || (AttachmentIdNotFound = {}));
|
|
54
|
-
export var CaseCreationLimitExceeded;
|
|
55
|
-
(function (CaseCreationLimitExceeded) {
|
|
56
|
-
CaseCreationLimitExceeded.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
57
|
-
})(CaseCreationLimitExceeded || (CaseCreationLimitExceeded = {}));
|
|
58
26
|
export var CreateCaseRequest;
|
|
59
27
|
(function (CreateCaseRequest) {
|
|
60
28
|
CreateCaseRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
@@ -63,10 +31,6 @@ export var CreateCaseResponse;
|
|
|
63
31
|
(function (CreateCaseResponse) {
|
|
64
32
|
CreateCaseResponse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
65
33
|
})(CreateCaseResponse || (CreateCaseResponse = {}));
|
|
66
|
-
export var DescribeAttachmentLimitExceeded;
|
|
67
|
-
(function (DescribeAttachmentLimitExceeded) {
|
|
68
|
-
DescribeAttachmentLimitExceeded.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
69
|
-
})(DescribeAttachmentLimitExceeded || (DescribeAttachmentLimitExceeded = {}));
|
|
70
34
|
export var DescribeAttachmentRequest;
|
|
71
35
|
(function (DescribeAttachmentRequest) {
|
|
72
36
|
DescribeAttachmentRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { __assign } from "tslib";
|
|
1
|
+
import { __assign, __awaiter, __generator } from "tslib";
|
|
2
2
|
import packageInfo from "../package.json";
|
|
3
3
|
import { Sha256 } from "@aws-crypto/sha256-browser";
|
|
4
4
|
import { DEFAULT_USE_DUALSTACK_ENDPOINT, DEFAULT_USE_FIPS_ENDPOINT } from "@aws-sdk/config-resolver";
|
|
5
|
-
import { FetchHttpHandler, streamCollector } from "@aws-sdk/fetch-http-handler";
|
|
5
|
+
import { FetchHttpHandler as RequestHandler, streamCollector } from "@aws-sdk/fetch-http-handler";
|
|
6
6
|
import { invalidProvider } from "@aws-sdk/invalid-dependency";
|
|
7
7
|
import { DEFAULT_MAX_ATTEMPTS, DEFAULT_RETRY_MODE } from "@aws-sdk/middleware-retry";
|
|
8
8
|
import { fromBase64, toBase64 } from "@aws-sdk/util-base64-browser";
|
|
@@ -10,8 +10,17 @@ import { calculateBodyLength } from "@aws-sdk/util-body-length-browser";
|
|
|
10
10
|
import { defaultUserAgent } from "@aws-sdk/util-user-agent-browser";
|
|
11
11
|
import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-browser";
|
|
12
12
|
import { getRuntimeConfig as getSharedRuntimeConfig } from "./runtimeConfig.shared";
|
|
13
|
+
import { loadConfigsForDefaultMode } from "@aws-sdk/smithy-client";
|
|
14
|
+
import { resolveDefaultsModeConfig } from "@aws-sdk/util-defaults-mode-browser";
|
|
13
15
|
export var getRuntimeConfig = function (config) {
|
|
14
16
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q;
|
|
17
|
+
var defaultsMode = resolveDefaultsModeConfig(config);
|
|
18
|
+
var defaultConfigProvider = function () { return defaultsMode().then(loadConfigsForDefaultMode); };
|
|
15
19
|
var clientSharedValues = getSharedRuntimeConfig(config);
|
|
16
|
-
return __assign(__assign(__assign({}, clientSharedValues), config), { runtime: "browser", base64Decoder: (_a = config === null || config === void 0 ? void 0 : config.base64Decoder) !== null && _a !== void 0 ? _a : fromBase64, base64Encoder: (_b = config === null || config === void 0 ? void 0 : config.base64Encoder) !== null && _b !== void 0 ? _b : toBase64, bodyLengthChecker: (_c = config === null || config === void 0 ? void 0 : config.bodyLengthChecker) !== null && _c !== void 0 ? _c : calculateBodyLength, credentialDefaultProvider: (_d = config === null || config === void 0 ? void 0 : config.credentialDefaultProvider) !== null && _d !== void 0 ? _d : (function (_) { return function () { return Promise.reject(new Error("Credential is missing")); }; }), defaultUserAgentProvider: (_e = config === null || config === void 0 ? void 0 : config.defaultUserAgentProvider) !== null && _e !== void 0 ? _e : defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }), maxAttempts: (_f = config === null || config === void 0 ? void 0 : config.maxAttempts) !== null && _f !== void 0 ? _f : DEFAULT_MAX_ATTEMPTS, region: (_g = config === null || config === void 0 ? void 0 : config.region) !== null && _g !== void 0 ? _g : invalidProvider("Region is missing"), requestHandler: (_h = config === null || config === void 0 ? void 0 : config.requestHandler) !== null && _h !== void 0 ? _h : new
|
|
20
|
+
return __assign(__assign(__assign({}, clientSharedValues), config), { runtime: "browser", defaultsMode: defaultsMode, base64Decoder: (_a = config === null || config === void 0 ? void 0 : config.base64Decoder) !== null && _a !== void 0 ? _a : fromBase64, base64Encoder: (_b = config === null || config === void 0 ? void 0 : config.base64Encoder) !== null && _b !== void 0 ? _b : toBase64, bodyLengthChecker: (_c = config === null || config === void 0 ? void 0 : config.bodyLengthChecker) !== null && _c !== void 0 ? _c : calculateBodyLength, credentialDefaultProvider: (_d = config === null || config === void 0 ? void 0 : config.credentialDefaultProvider) !== null && _d !== void 0 ? _d : (function (_) { return function () { return Promise.reject(new Error("Credential is missing")); }; }), defaultUserAgentProvider: (_e = config === null || config === void 0 ? void 0 : config.defaultUserAgentProvider) !== null && _e !== void 0 ? _e : defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }), maxAttempts: (_f = config === null || config === void 0 ? void 0 : config.maxAttempts) !== null && _f !== void 0 ? _f : DEFAULT_MAX_ATTEMPTS, region: (_g = config === null || config === void 0 ? void 0 : config.region) !== null && _g !== void 0 ? _g : invalidProvider("Region is missing"), requestHandler: (_h = config === null || config === void 0 ? void 0 : config.requestHandler) !== null && _h !== void 0 ? _h : new RequestHandler(defaultConfigProvider), retryMode: (_j = config === null || config === void 0 ? void 0 : config.retryMode) !== null && _j !== void 0 ? _j : (function () { return __awaiter(void 0, void 0, void 0, function () { return __generator(this, function (_a) {
|
|
21
|
+
switch (_a.label) {
|
|
22
|
+
case 0: return [4, defaultConfigProvider()];
|
|
23
|
+
case 1: return [2, (_a.sent()).retryMode || DEFAULT_RETRY_MODE];
|
|
24
|
+
}
|
|
25
|
+
}); }); }), sha256: (_k = config === null || config === void 0 ? void 0 : config.sha256) !== null && _k !== void 0 ? _k : Sha256, streamCollector: (_l = config === null || config === void 0 ? void 0 : config.streamCollector) !== null && _l !== void 0 ? _l : streamCollector, useDualstackEndpoint: (_m = config === null || config === void 0 ? void 0 : config.useDualstackEndpoint) !== null && _m !== void 0 ? _m : (function () { return Promise.resolve(DEFAULT_USE_DUALSTACK_ENDPOINT); }), useFipsEndpoint: (_o = config === null || config === void 0 ? void 0 : config.useFipsEndpoint) !== null && _o !== void 0 ? _o : (function () { return Promise.resolve(DEFAULT_USE_FIPS_ENDPOINT); }), utf8Decoder: (_p = config === null || config === void 0 ? void 0 : config.utf8Decoder) !== null && _p !== void 0 ? _p : fromUtf8, utf8Encoder: (_q = config === null || config === void 0 ? void 0 : config.utf8Encoder) !== null && _q !== void 0 ? _q : toUtf8 });
|
|
17
26
|
};
|
package/dist-es/runtimeConfig.js
CHANGED
|
@@ -1,21 +1,28 @@
|
|
|
1
|
-
import { __assign } from "tslib";
|
|
1
|
+
import { __assign, __awaiter, __generator } from "tslib";
|
|
2
2
|
import packageInfo from "../package.json";
|
|
3
3
|
import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts";
|
|
4
4
|
import { NODE_REGION_CONFIG_FILE_OPTIONS, NODE_REGION_CONFIG_OPTIONS, NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, } from "@aws-sdk/config-resolver";
|
|
5
5
|
import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node";
|
|
6
6
|
import { Hash } from "@aws-sdk/hash-node";
|
|
7
|
-
import { NODE_MAX_ATTEMPT_CONFIG_OPTIONS, NODE_RETRY_MODE_CONFIG_OPTIONS } from "@aws-sdk/middleware-retry";
|
|
7
|
+
import { DEFAULT_RETRY_MODE, NODE_MAX_ATTEMPT_CONFIG_OPTIONS, NODE_RETRY_MODE_CONFIG_OPTIONS, } from "@aws-sdk/middleware-retry";
|
|
8
8
|
import { loadConfig as loadNodeConfig } from "@aws-sdk/node-config-provider";
|
|
9
|
-
import { NodeHttpHandler, streamCollector } from "@aws-sdk/node-http-handler";
|
|
9
|
+
import { NodeHttpHandler as RequestHandler, streamCollector } from "@aws-sdk/node-http-handler";
|
|
10
10
|
import { fromBase64, toBase64 } from "@aws-sdk/util-base64-node";
|
|
11
11
|
import { calculateBodyLength } from "@aws-sdk/util-body-length-node";
|
|
12
12
|
import { defaultUserAgent } from "@aws-sdk/util-user-agent-node";
|
|
13
13
|
import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-node";
|
|
14
14
|
import { getRuntimeConfig as getSharedRuntimeConfig } from "./runtimeConfig.shared";
|
|
15
|
-
import {
|
|
15
|
+
import { loadConfigsForDefaultMode } from "@aws-sdk/smithy-client";
|
|
16
|
+
import { resolveDefaultsModeConfig } from "@aws-sdk/util-defaults-mode-node";
|
|
16
17
|
export var getRuntimeConfig = function (config) {
|
|
17
18
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q;
|
|
18
|
-
|
|
19
|
+
var defaultsMode = resolveDefaultsModeConfig(config);
|
|
20
|
+
var defaultConfigProvider = function () { return defaultsMode().then(loadConfigsForDefaultMode); };
|
|
19
21
|
var clientSharedValues = getSharedRuntimeConfig(config);
|
|
20
|
-
return __assign(__assign(__assign({}, clientSharedValues), config), { runtime: "node", base64Decoder: (_a = config === null || config === void 0 ? void 0 : config.base64Decoder) !== null && _a !== void 0 ? _a : fromBase64, base64Encoder: (_b = config === null || config === void 0 ? void 0 : config.base64Encoder) !== null && _b !== void 0 ? _b : toBase64, bodyLengthChecker: (_c = config === null || config === void 0 ? void 0 : config.bodyLengthChecker) !== null && _c !== void 0 ? _c : calculateBodyLength, credentialDefaultProvider: (_d = config === null || config === void 0 ? void 0 : config.credentialDefaultProvider) !== null && _d !== void 0 ? _d : decorateDefaultCredentialProvider(credentialDefaultProvider), defaultUserAgentProvider: (_e = config === null || config === void 0 ? void 0 : config.defaultUserAgentProvider) !== null && _e !== void 0 ? _e : defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }), maxAttempts: (_f = config === null || config === void 0 ? void 0 : config.maxAttempts) !== null && _f !== void 0 ? _f : loadNodeConfig(NODE_MAX_ATTEMPT_CONFIG_OPTIONS), region: (_g = config === null || config === void 0 ? void 0 : config.region) !== null && _g !== void 0 ? _g : loadNodeConfig(NODE_REGION_CONFIG_OPTIONS, NODE_REGION_CONFIG_FILE_OPTIONS), requestHandler: (_h = config === null || config === void 0 ? void 0 : config.requestHandler) !== null && _h !== void 0 ? _h : new
|
|
22
|
+
return __assign(__assign(__assign({}, clientSharedValues), config), { runtime: "node", defaultsMode: defaultsMode, base64Decoder: (_a = config === null || config === void 0 ? void 0 : config.base64Decoder) !== null && _a !== void 0 ? _a : fromBase64, base64Encoder: (_b = config === null || config === void 0 ? void 0 : config.base64Encoder) !== null && _b !== void 0 ? _b : toBase64, bodyLengthChecker: (_c = config === null || config === void 0 ? void 0 : config.bodyLengthChecker) !== null && _c !== void 0 ? _c : calculateBodyLength, credentialDefaultProvider: (_d = config === null || config === void 0 ? void 0 : config.credentialDefaultProvider) !== null && _d !== void 0 ? _d : decorateDefaultCredentialProvider(credentialDefaultProvider), defaultUserAgentProvider: (_e = config === null || config === void 0 ? void 0 : config.defaultUserAgentProvider) !== null && _e !== void 0 ? _e : defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }), maxAttempts: (_f = config === null || config === void 0 ? void 0 : config.maxAttempts) !== null && _f !== void 0 ? _f : loadNodeConfig(NODE_MAX_ATTEMPT_CONFIG_OPTIONS), region: (_g = config === null || config === void 0 ? void 0 : config.region) !== null && _g !== void 0 ? _g : loadNodeConfig(NODE_REGION_CONFIG_OPTIONS, NODE_REGION_CONFIG_FILE_OPTIONS), requestHandler: (_h = config === null || config === void 0 ? void 0 : config.requestHandler) !== null && _h !== void 0 ? _h : new RequestHandler(defaultConfigProvider), retryMode: (_j = config === null || config === void 0 ? void 0 : config.retryMode) !== null && _j !== void 0 ? _j : loadNodeConfig(__assign(__assign({}, NODE_RETRY_MODE_CONFIG_OPTIONS), { default: function () { return __awaiter(void 0, void 0, void 0, function () { return __generator(this, function (_a) {
|
|
23
|
+
switch (_a.label) {
|
|
24
|
+
case 0: return [4, defaultConfigProvider()];
|
|
25
|
+
case 1: return [2, (_a.sent()).retryMode || DEFAULT_RETRY_MODE];
|
|
26
|
+
}
|
|
27
|
+
}); }); } })), sha256: (_k = config === null || config === void 0 ? void 0 : config.sha256) !== null && _k !== void 0 ? _k : Hash.bind(null, "sha256"), streamCollector: (_l = config === null || config === void 0 ? void 0 : config.streamCollector) !== null && _l !== void 0 ? _l : streamCollector, useDualstackEndpoint: (_m = config === null || config === void 0 ? void 0 : config.useDualstackEndpoint) !== null && _m !== void 0 ? _m : loadNodeConfig(NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS), useFipsEndpoint: (_o = config === null || config === void 0 ? void 0 : config.useFipsEndpoint) !== null && _o !== void 0 ? _o : loadNodeConfig(NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS), utf8Decoder: (_p = config === null || config === void 0 ? void 0 : config.utf8Decoder) !== null && _p !== void 0 ? _p : fromUtf8, utf8Encoder: (_q = config === null || config === void 0 ? void 0 : config.utf8Encoder) !== null && _q !== void 0 ? _q : toUtf8 });
|
|
21
28
|
};
|