@aws-sdk/client-sqs 3.42.0 → 3.47.0
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 +51 -0
- package/dist-cjs/endpoints.js +1 -16
- package/dist-cjs/models/models_0.js +1 -98
- package/dist-cjs/runtimeConfig.browser.js +7 -2
- package/dist-cjs/runtimeConfig.js +9 -3
- package/dist-es/endpoints.js +1 -16
- package/dist-es/models/models_0.js +0 -64
- package/dist-es/runtimeConfig.browser.js +12 -3
- package/dist-es/runtimeConfig.js +13 -6
- package/dist-types/SQSClient.d.ts +5 -1
- package/dist-types/models/models_0.d.ts +61 -284
- 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/SQSClient.d.ts +3 -1
- package/dist-types/ts3.4/models/models_0.d.ts +1 -65
- 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 +40 -47
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,57 @@
|
|
|
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.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.46.0...v3.47.0) (2022-01-15)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Features
|
|
10
|
+
|
|
11
|
+
* **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))
|
|
12
|
+
* Support awsQueryError trait ([#3174](https://github.com/aws/aws-sdk-js-v3/issues/3174)) ([351bd3a](https://github.com/aws/aws-sdk-js-v3/commit/351bd3a40ad37be79d823d6a0e4e48304728ea6f))
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
# [3.46.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.45.0...v3.46.0) (2022-01-07)
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
### Bug Fixes
|
|
22
|
+
|
|
23
|
+
* **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))
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
### Features
|
|
27
|
+
|
|
28
|
+
* **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))
|
|
29
|
+
* 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))
|
|
30
|
+
|
|
31
|
+
|
|
32
|
+
|
|
33
|
+
|
|
34
|
+
|
|
35
|
+
# [3.45.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.44.0...v3.45.0) (2021-12-23)
|
|
36
|
+
|
|
37
|
+
|
|
38
|
+
### Features
|
|
39
|
+
|
|
40
|
+
* **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))
|
|
41
|
+
|
|
42
|
+
|
|
43
|
+
|
|
44
|
+
|
|
45
|
+
|
|
46
|
+
# [3.43.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.42.0...v3.43.0) (2021-11-29)
|
|
47
|
+
|
|
48
|
+
|
|
49
|
+
### Features
|
|
50
|
+
|
|
51
|
+
* **clients:** update clients as of 11/28/2021 ([#3072](https://github.com/aws/aws-sdk-js-v3/issues/3072)) ([2ad1622](https://github.com/aws/aws-sdk-js-v3/commit/2ad1622ba8586b926fe508055211803bb29e3976))
|
|
52
|
+
|
|
53
|
+
|
|
54
|
+
|
|
55
|
+
|
|
56
|
+
|
|
6
57
|
# [3.42.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.41.0...v3.42.0) (2021-11-19)
|
|
7
58
|
|
|
8
59
|
**Note:** Version bump only for package @aws-sdk/client-sqs
|
package/dist-cjs/endpoints.js
CHANGED
|
@@ -5,10 +5,6 @@ const config_resolver_1 = require("@aws-sdk/config-resolver");
|
|
|
5
5
|
const regionHash = {
|
|
6
6
|
"us-east-1": {
|
|
7
7
|
variants: [
|
|
8
|
-
{
|
|
9
|
-
hostname: "sqs.us-east-1.amazonaws.com",
|
|
10
|
-
tags: [],
|
|
11
|
-
},
|
|
12
8
|
{
|
|
13
9
|
hostname: "sqs-fips.us-east-1.amazonaws.com",
|
|
14
10
|
tags: ["fips"],
|
|
@@ -17,10 +13,6 @@ const regionHash = {
|
|
|
17
13
|
},
|
|
18
14
|
"us-east-2": {
|
|
19
15
|
variants: [
|
|
20
|
-
{
|
|
21
|
-
hostname: "sqs.us-east-2.amazonaws.com",
|
|
22
|
-
tags: [],
|
|
23
|
-
},
|
|
24
16
|
{
|
|
25
17
|
hostname: "sqs-fips.us-east-2.amazonaws.com",
|
|
26
18
|
tags: ["fips"],
|
|
@@ -47,10 +39,6 @@ const regionHash = {
|
|
|
47
39
|
},
|
|
48
40
|
"us-west-1": {
|
|
49
41
|
variants: [
|
|
50
|
-
{
|
|
51
|
-
hostname: "sqs.us-west-1.amazonaws.com",
|
|
52
|
-
tags: [],
|
|
53
|
-
},
|
|
54
42
|
{
|
|
55
43
|
hostname: "sqs-fips.us-west-1.amazonaws.com",
|
|
56
44
|
tags: ["fips"],
|
|
@@ -59,10 +47,6 @@ const regionHash = {
|
|
|
59
47
|
},
|
|
60
48
|
"us-west-2": {
|
|
61
49
|
variants: [
|
|
62
|
-
{
|
|
63
|
-
hostname: "sqs.us-west-2.amazonaws.com",
|
|
64
|
-
tags: [],
|
|
65
|
-
},
|
|
66
50
|
{
|
|
67
51
|
hostname: "sqs-fips.us-west-2.amazonaws.com",
|
|
68
52
|
tags: ["fips"],
|
|
@@ -81,6 +65,7 @@ const partitionHash = {
|
|
|
81
65
|
"ap-south-1",
|
|
82
66
|
"ap-southeast-1",
|
|
83
67
|
"ap-southeast-2",
|
|
68
|
+
"ap-southeast-3",
|
|
84
69
|
"ca-central-1",
|
|
85
70
|
"eu-central-1",
|
|
86
71
|
"eu-north-1",
|
|
@@ -1,43 +1,18 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
4
|
-
exports.UntagQueueRequest = exports.TagQueueRequest = exports.SetQueueAttributesRequest = exports.SendMessageBatchResult = exports.SendMessageBatchResultEntry = exports.SendMessageBatchRequest = exports.SendMessageBatchRequestEntry = void 0;
|
|
3
|
+
exports.UntagQueueRequest = exports.TagQueueRequest = exports.SetQueueAttributesRequest = exports.SendMessageBatchResult = exports.SendMessageBatchResultEntry = exports.SendMessageBatchRequest = exports.SendMessageBatchRequestEntry = exports.SendMessageResult = exports.SendMessageRequest = exports.MessageSystemAttributeValue = exports.RemovePermissionRequest = exports.ReceiveMessageResult = exports.Message = exports.MessageAttributeValue = exports.ReceiveMessageRequest = exports.PurgeQueueRequest = exports.ListQueueTagsResult = exports.ListQueueTagsRequest = exports.ListQueuesResult = exports.ListQueuesRequest = exports.ListDeadLetterSourceQueuesResult = exports.ListDeadLetterSourceQueuesRequest = exports.GetQueueUrlResult = exports.GetQueueUrlRequest = exports.GetQueueAttributesResult = exports.GetQueueAttributesRequest = exports.DeleteQueueRequest = exports.DeleteMessageBatchResult = exports.DeleteMessageBatchResultEntry = exports.DeleteMessageBatchRequest = exports.DeleteMessageBatchRequestEntry = exports.DeleteMessageRequest = exports.CreateQueueResult = exports.CreateQueueRequest = exports.ChangeMessageVisibilityBatchResult = exports.ChangeMessageVisibilityBatchResultEntry = exports.BatchResultErrorEntry = exports.ChangeMessageVisibilityBatchRequest = exports.ChangeMessageVisibilityBatchRequestEntry = exports.ChangeMessageVisibilityRequest = exports.AddPermissionRequest = void 0;
|
|
5
4
|
var AddPermissionRequest;
|
|
6
5
|
(function (AddPermissionRequest) {
|
|
7
6
|
AddPermissionRequest.filterSensitiveLog = (obj) => ({
|
|
8
7
|
...obj,
|
|
9
8
|
});
|
|
10
9
|
})(AddPermissionRequest = exports.AddPermissionRequest || (exports.AddPermissionRequest = {}));
|
|
11
|
-
var OverLimit;
|
|
12
|
-
(function (OverLimit) {
|
|
13
|
-
OverLimit.filterSensitiveLog = (obj) => ({
|
|
14
|
-
...obj,
|
|
15
|
-
});
|
|
16
|
-
})(OverLimit = exports.OverLimit || (exports.OverLimit = {}));
|
|
17
10
|
var ChangeMessageVisibilityRequest;
|
|
18
11
|
(function (ChangeMessageVisibilityRequest) {
|
|
19
12
|
ChangeMessageVisibilityRequest.filterSensitiveLog = (obj) => ({
|
|
20
13
|
...obj,
|
|
21
14
|
});
|
|
22
15
|
})(ChangeMessageVisibilityRequest = exports.ChangeMessageVisibilityRequest || (exports.ChangeMessageVisibilityRequest = {}));
|
|
23
|
-
var MessageNotInflight;
|
|
24
|
-
(function (MessageNotInflight) {
|
|
25
|
-
MessageNotInflight.filterSensitiveLog = (obj) => ({
|
|
26
|
-
...obj,
|
|
27
|
-
});
|
|
28
|
-
})(MessageNotInflight = exports.MessageNotInflight || (exports.MessageNotInflight = {}));
|
|
29
|
-
var ReceiptHandleIsInvalid;
|
|
30
|
-
(function (ReceiptHandleIsInvalid) {
|
|
31
|
-
ReceiptHandleIsInvalid.filterSensitiveLog = (obj) => ({
|
|
32
|
-
...obj,
|
|
33
|
-
});
|
|
34
|
-
})(ReceiptHandleIsInvalid = exports.ReceiptHandleIsInvalid || (exports.ReceiptHandleIsInvalid = {}));
|
|
35
|
-
var BatchEntryIdsNotDistinct;
|
|
36
|
-
(function (BatchEntryIdsNotDistinct) {
|
|
37
|
-
BatchEntryIdsNotDistinct.filterSensitiveLog = (obj) => ({
|
|
38
|
-
...obj,
|
|
39
|
-
});
|
|
40
|
-
})(BatchEntryIdsNotDistinct = exports.BatchEntryIdsNotDistinct || (exports.BatchEntryIdsNotDistinct = {}));
|
|
41
16
|
var ChangeMessageVisibilityBatchRequestEntry;
|
|
42
17
|
(function (ChangeMessageVisibilityBatchRequestEntry) {
|
|
43
18
|
ChangeMessageVisibilityBatchRequestEntry.filterSensitiveLog = (obj) => ({
|
|
@@ -68,24 +43,6 @@ var ChangeMessageVisibilityBatchResult;
|
|
|
68
43
|
...obj,
|
|
69
44
|
});
|
|
70
45
|
})(ChangeMessageVisibilityBatchResult = exports.ChangeMessageVisibilityBatchResult || (exports.ChangeMessageVisibilityBatchResult = {}));
|
|
71
|
-
var EmptyBatchRequest;
|
|
72
|
-
(function (EmptyBatchRequest) {
|
|
73
|
-
EmptyBatchRequest.filterSensitiveLog = (obj) => ({
|
|
74
|
-
...obj,
|
|
75
|
-
});
|
|
76
|
-
})(EmptyBatchRequest = exports.EmptyBatchRequest || (exports.EmptyBatchRequest = {}));
|
|
77
|
-
var InvalidBatchEntryId;
|
|
78
|
-
(function (InvalidBatchEntryId) {
|
|
79
|
-
InvalidBatchEntryId.filterSensitiveLog = (obj) => ({
|
|
80
|
-
...obj,
|
|
81
|
-
});
|
|
82
|
-
})(InvalidBatchEntryId = exports.InvalidBatchEntryId || (exports.InvalidBatchEntryId = {}));
|
|
83
|
-
var TooManyEntriesInBatchRequest;
|
|
84
|
-
(function (TooManyEntriesInBatchRequest) {
|
|
85
|
-
TooManyEntriesInBatchRequest.filterSensitiveLog = (obj) => ({
|
|
86
|
-
...obj,
|
|
87
|
-
});
|
|
88
|
-
})(TooManyEntriesInBatchRequest = exports.TooManyEntriesInBatchRequest || (exports.TooManyEntriesInBatchRequest = {}));
|
|
89
46
|
var CreateQueueRequest;
|
|
90
47
|
(function (CreateQueueRequest) {
|
|
91
48
|
CreateQueueRequest.filterSensitiveLog = (obj) => ({
|
|
@@ -98,30 +55,12 @@ var CreateQueueResult;
|
|
|
98
55
|
...obj,
|
|
99
56
|
});
|
|
100
57
|
})(CreateQueueResult = exports.CreateQueueResult || (exports.CreateQueueResult = {}));
|
|
101
|
-
var QueueDeletedRecently;
|
|
102
|
-
(function (QueueDeletedRecently) {
|
|
103
|
-
QueueDeletedRecently.filterSensitiveLog = (obj) => ({
|
|
104
|
-
...obj,
|
|
105
|
-
});
|
|
106
|
-
})(QueueDeletedRecently = exports.QueueDeletedRecently || (exports.QueueDeletedRecently = {}));
|
|
107
|
-
var QueueNameExists;
|
|
108
|
-
(function (QueueNameExists) {
|
|
109
|
-
QueueNameExists.filterSensitiveLog = (obj) => ({
|
|
110
|
-
...obj,
|
|
111
|
-
});
|
|
112
|
-
})(QueueNameExists = exports.QueueNameExists || (exports.QueueNameExists = {}));
|
|
113
58
|
var DeleteMessageRequest;
|
|
114
59
|
(function (DeleteMessageRequest) {
|
|
115
60
|
DeleteMessageRequest.filterSensitiveLog = (obj) => ({
|
|
116
61
|
...obj,
|
|
117
62
|
});
|
|
118
63
|
})(DeleteMessageRequest = exports.DeleteMessageRequest || (exports.DeleteMessageRequest = {}));
|
|
119
|
-
var InvalidIdFormat;
|
|
120
|
-
(function (InvalidIdFormat) {
|
|
121
|
-
InvalidIdFormat.filterSensitiveLog = (obj) => ({
|
|
122
|
-
...obj,
|
|
123
|
-
});
|
|
124
|
-
})(InvalidIdFormat = exports.InvalidIdFormat || (exports.InvalidIdFormat = {}));
|
|
125
64
|
var DeleteMessageBatchRequestEntry;
|
|
126
65
|
(function (DeleteMessageBatchRequestEntry) {
|
|
127
66
|
DeleteMessageBatchRequestEntry.filterSensitiveLog = (obj) => ({
|
|
@@ -164,12 +103,6 @@ var GetQueueAttributesResult;
|
|
|
164
103
|
...obj,
|
|
165
104
|
});
|
|
166
105
|
})(GetQueueAttributesResult = exports.GetQueueAttributesResult || (exports.GetQueueAttributesResult = {}));
|
|
167
|
-
var InvalidAttributeName;
|
|
168
|
-
(function (InvalidAttributeName) {
|
|
169
|
-
InvalidAttributeName.filterSensitiveLog = (obj) => ({
|
|
170
|
-
...obj,
|
|
171
|
-
});
|
|
172
|
-
})(InvalidAttributeName = exports.InvalidAttributeName || (exports.InvalidAttributeName = {}));
|
|
173
106
|
var GetQueueUrlRequest;
|
|
174
107
|
(function (GetQueueUrlRequest) {
|
|
175
108
|
GetQueueUrlRequest.filterSensitiveLog = (obj) => ({
|
|
@@ -182,12 +115,6 @@ var GetQueueUrlResult;
|
|
|
182
115
|
...obj,
|
|
183
116
|
});
|
|
184
117
|
})(GetQueueUrlResult = exports.GetQueueUrlResult || (exports.GetQueueUrlResult = {}));
|
|
185
|
-
var QueueDoesNotExist;
|
|
186
|
-
(function (QueueDoesNotExist) {
|
|
187
|
-
QueueDoesNotExist.filterSensitiveLog = (obj) => ({
|
|
188
|
-
...obj,
|
|
189
|
-
});
|
|
190
|
-
})(QueueDoesNotExist = exports.QueueDoesNotExist || (exports.QueueDoesNotExist = {}));
|
|
191
118
|
var ListDeadLetterSourceQueuesRequest;
|
|
192
119
|
(function (ListDeadLetterSourceQueuesRequest) {
|
|
193
120
|
ListDeadLetterSourceQueuesRequest.filterSensitiveLog = (obj) => ({
|
|
@@ -224,12 +151,6 @@ var ListQueueTagsResult;
|
|
|
224
151
|
...obj,
|
|
225
152
|
});
|
|
226
153
|
})(ListQueueTagsResult = exports.ListQueueTagsResult || (exports.ListQueueTagsResult = {}));
|
|
227
|
-
var PurgeQueueInProgress;
|
|
228
|
-
(function (PurgeQueueInProgress) {
|
|
229
|
-
PurgeQueueInProgress.filterSensitiveLog = (obj) => ({
|
|
230
|
-
...obj,
|
|
231
|
-
});
|
|
232
|
-
})(PurgeQueueInProgress = exports.PurgeQueueInProgress || (exports.PurgeQueueInProgress = {}));
|
|
233
154
|
var PurgeQueueRequest;
|
|
234
155
|
(function (PurgeQueueRequest) {
|
|
235
156
|
PurgeQueueRequest.filterSensitiveLog = (obj) => ({
|
|
@@ -266,12 +187,6 @@ var RemovePermissionRequest;
|
|
|
266
187
|
...obj,
|
|
267
188
|
});
|
|
268
189
|
})(RemovePermissionRequest = exports.RemovePermissionRequest || (exports.RemovePermissionRequest = {}));
|
|
269
|
-
var InvalidMessageContents;
|
|
270
|
-
(function (InvalidMessageContents) {
|
|
271
|
-
InvalidMessageContents.filterSensitiveLog = (obj) => ({
|
|
272
|
-
...obj,
|
|
273
|
-
});
|
|
274
|
-
})(InvalidMessageContents = exports.InvalidMessageContents || (exports.InvalidMessageContents = {}));
|
|
275
190
|
var MessageSystemAttributeValue;
|
|
276
191
|
(function (MessageSystemAttributeValue) {
|
|
277
192
|
MessageSystemAttributeValue.filterSensitiveLog = (obj) => ({
|
|
@@ -290,18 +205,6 @@ var SendMessageResult;
|
|
|
290
205
|
...obj,
|
|
291
206
|
});
|
|
292
207
|
})(SendMessageResult = exports.SendMessageResult || (exports.SendMessageResult = {}));
|
|
293
|
-
var UnsupportedOperation;
|
|
294
|
-
(function (UnsupportedOperation) {
|
|
295
|
-
UnsupportedOperation.filterSensitiveLog = (obj) => ({
|
|
296
|
-
...obj,
|
|
297
|
-
});
|
|
298
|
-
})(UnsupportedOperation = exports.UnsupportedOperation || (exports.UnsupportedOperation = {}));
|
|
299
|
-
var BatchRequestTooLong;
|
|
300
|
-
(function (BatchRequestTooLong) {
|
|
301
|
-
BatchRequestTooLong.filterSensitiveLog = (obj) => ({
|
|
302
|
-
...obj,
|
|
303
|
-
});
|
|
304
|
-
})(BatchRequestTooLong = exports.BatchRequestTooLong || (exports.BatchRequestTooLong = {}));
|
|
305
208
|
var SendMessageBatchRequestEntry;
|
|
306
209
|
(function (SendMessageBatchRequestEntry) {
|
|
307
210
|
SendMessageBatchRequestEntry.filterSensitiveLog = (obj) => ({
|
|
@@ -14,13 +14,18 @@ const util_body_length_browser_1 = require("@aws-sdk/util-body-length-browser");
|
|
|
14
14
|
const util_user_agent_browser_1 = require("@aws-sdk/util-user-agent-browser");
|
|
15
15
|
const util_utf8_browser_1 = require("@aws-sdk/util-utf8-browser");
|
|
16
16
|
const runtimeConfig_shared_1 = require("./runtimeConfig.shared");
|
|
17
|
+
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
18
|
+
const util_defaults_mode_browser_1 = require("@aws-sdk/util-defaults-mode-browser");
|
|
17
19
|
const getRuntimeConfig = (config) => {
|
|
18
20
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r;
|
|
21
|
+
const defaultsMode = util_defaults_mode_browser_1.resolveDefaultsModeConfig(config);
|
|
22
|
+
const defaultConfigProvider = () => defaultsMode().then(smithy_client_1.loadConfigsForDefaultMode);
|
|
19
23
|
const clientSharedValues = runtimeConfig_shared_1.getRuntimeConfig(config);
|
|
20
24
|
return {
|
|
21
25
|
...clientSharedValues,
|
|
22
26
|
...config,
|
|
23
27
|
runtime: "browser",
|
|
28
|
+
defaultsMode,
|
|
24
29
|
base64Decoder: (_a = config === null || config === void 0 ? void 0 : config.base64Decoder) !== null && _a !== void 0 ? _a : util_base64_browser_1.fromBase64,
|
|
25
30
|
base64Encoder: (_b = config === null || config === void 0 ? void 0 : config.base64Encoder) !== null && _b !== void 0 ? _b : util_base64_browser_1.toBase64,
|
|
26
31
|
bodyLengthChecker: (_c = config === null || config === void 0 ? void 0 : config.bodyLengthChecker) !== null && _c !== void 0 ? _c : util_body_length_browser_1.calculateBodyLength,
|
|
@@ -29,8 +34,8 @@ const getRuntimeConfig = (config) => {
|
|
|
29
34
|
maxAttempts: (_f = config === null || config === void 0 ? void 0 : config.maxAttempts) !== null && _f !== void 0 ? _f : middleware_retry_1.DEFAULT_MAX_ATTEMPTS,
|
|
30
35
|
md5: (_g = config === null || config === void 0 ? void 0 : config.md5) !== null && _g !== void 0 ? _g : md5_js_1.Md5,
|
|
31
36
|
region: (_h = config === null || config === void 0 ? void 0 : config.region) !== null && _h !== void 0 ? _h : invalid_dependency_1.invalidProvider("Region is missing"),
|
|
32
|
-
requestHandler: (_j = config === null || config === void 0 ? void 0 : config.requestHandler) !== null && _j !== void 0 ? _j : new fetch_http_handler_1.FetchHttpHandler(),
|
|
33
|
-
retryMode: (_k = config === null || config === void 0 ? void 0 : config.retryMode) !== null && _k !== void 0 ? _k : (() =>
|
|
37
|
+
requestHandler: (_j = config === null || config === void 0 ? void 0 : config.requestHandler) !== null && _j !== void 0 ? _j : new fetch_http_handler_1.FetchHttpHandler(defaultConfigProvider),
|
|
38
|
+
retryMode: (_k = config === null || config === void 0 ? void 0 : config.retryMode) !== null && _k !== void 0 ? _k : (async () => (await defaultConfigProvider()).retryMode || middleware_retry_1.DEFAULT_RETRY_MODE),
|
|
34
39
|
sha256: (_l = config === null || config === void 0 ? void 0 : config.sha256) !== null && _l !== void 0 ? _l : sha256_browser_1.Sha256,
|
|
35
40
|
streamCollector: (_m = config === null || config === void 0 ? void 0 : config.streamCollector) !== null && _m !== void 0 ? _m : fetch_http_handler_1.streamCollector,
|
|
36
41
|
useDualstackEndpoint: (_o = config === null || config === void 0 ? void 0 : config.useDualstackEndpoint) !== null && _o !== void 0 ? _o : (() => 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, _r;
|
|
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,
|
|
@@ -32,8 +35,11 @@ const getRuntimeConfig = (config) => {
|
|
|
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
|
md5: (_g = config === null || config === void 0 ? void 0 : config.md5) !== null && _g !== void 0 ? _g : hash_node_1.Hash.bind(null, "md5"),
|
|
34
37
|
region: (_h = config === null || config === void 0 ? void 0 : config.region) !== null && _h !== void 0 ? _h : node_config_provider_1.loadConfig(config_resolver_1.NODE_REGION_CONFIG_OPTIONS, config_resolver_1.NODE_REGION_CONFIG_FILE_OPTIONS),
|
|
35
|
-
requestHandler: (_j = config === null || config === void 0 ? void 0 : config.requestHandler) !== null && _j !== void 0 ? _j : new node_http_handler_1.NodeHttpHandler(),
|
|
36
|
-
retryMode: (_k = config === null || config === void 0 ? void 0 : config.retryMode) !== null && _k !== void 0 ? _k : node_config_provider_1.loadConfig(
|
|
38
|
+
requestHandler: (_j = config === null || config === void 0 ? void 0 : config.requestHandler) !== null && _j !== void 0 ? _j : new node_http_handler_1.NodeHttpHandler(defaultConfigProvider),
|
|
39
|
+
retryMode: (_k = config === null || config === void 0 ? void 0 : config.retryMode) !== null && _k !== void 0 ? _k : node_config_provider_1.loadConfig({
|
|
40
|
+
...middleware_retry_1.NODE_RETRY_MODE_CONFIG_OPTIONS,
|
|
41
|
+
default: async () => (await defaultConfigProvider()).retryMode || middleware_retry_1.DEFAULT_RETRY_MODE,
|
|
42
|
+
}),
|
|
37
43
|
sha256: (_l = config === null || config === void 0 ? void 0 : config.sha256) !== null && _l !== void 0 ? _l : hash_node_1.Hash.bind(null, "sha256"),
|
|
38
44
|
streamCollector: (_m = config === null || config === void 0 ? void 0 : config.streamCollector) !== null && _m !== void 0 ? _m : node_http_handler_1.streamCollector,
|
|
39
45
|
useDualstackEndpoint: (_o = config === null || config === void 0 ? void 0 : config.useDualstackEndpoint) !== null && _o !== void 0 ? _o : node_config_provider_1.loadConfig(config_resolver_1.NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS),
|
package/dist-es/endpoints.js
CHANGED
|
@@ -3,10 +3,6 @@ import { getRegionInfo } from "@aws-sdk/config-resolver";
|
|
|
3
3
|
var regionHash = {
|
|
4
4
|
"us-east-1": {
|
|
5
5
|
variants: [
|
|
6
|
-
{
|
|
7
|
-
hostname: "sqs.us-east-1.amazonaws.com",
|
|
8
|
-
tags: [],
|
|
9
|
-
},
|
|
10
6
|
{
|
|
11
7
|
hostname: "sqs-fips.us-east-1.amazonaws.com",
|
|
12
8
|
tags: ["fips"],
|
|
@@ -15,10 +11,6 @@ var regionHash = {
|
|
|
15
11
|
},
|
|
16
12
|
"us-east-2": {
|
|
17
13
|
variants: [
|
|
18
|
-
{
|
|
19
|
-
hostname: "sqs.us-east-2.amazonaws.com",
|
|
20
|
-
tags: [],
|
|
21
|
-
},
|
|
22
14
|
{
|
|
23
15
|
hostname: "sqs-fips.us-east-2.amazonaws.com",
|
|
24
16
|
tags: ["fips"],
|
|
@@ -45,10 +37,6 @@ var regionHash = {
|
|
|
45
37
|
},
|
|
46
38
|
"us-west-1": {
|
|
47
39
|
variants: [
|
|
48
|
-
{
|
|
49
|
-
hostname: "sqs.us-west-1.amazonaws.com",
|
|
50
|
-
tags: [],
|
|
51
|
-
},
|
|
52
40
|
{
|
|
53
41
|
hostname: "sqs-fips.us-west-1.amazonaws.com",
|
|
54
42
|
tags: ["fips"],
|
|
@@ -57,10 +45,6 @@ var regionHash = {
|
|
|
57
45
|
},
|
|
58
46
|
"us-west-2": {
|
|
59
47
|
variants: [
|
|
60
|
-
{
|
|
61
|
-
hostname: "sqs.us-west-2.amazonaws.com",
|
|
62
|
-
tags: [],
|
|
63
|
-
},
|
|
64
48
|
{
|
|
65
49
|
hostname: "sqs-fips.us-west-2.amazonaws.com",
|
|
66
50
|
tags: ["fips"],
|
|
@@ -79,6 +63,7 @@ var partitionHash = {
|
|
|
79
63
|
"ap-south-1",
|
|
80
64
|
"ap-southeast-1",
|
|
81
65
|
"ap-southeast-2",
|
|
66
|
+
"ap-southeast-3",
|
|
82
67
|
"ca-central-1",
|
|
83
68
|
"eu-central-1",
|
|
84
69
|
"eu-north-1",
|
|
@@ -3,26 +3,10 @@ export var AddPermissionRequest;
|
|
|
3
3
|
(function (AddPermissionRequest) {
|
|
4
4
|
AddPermissionRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
5
5
|
})(AddPermissionRequest || (AddPermissionRequest = {}));
|
|
6
|
-
export var OverLimit;
|
|
7
|
-
(function (OverLimit) {
|
|
8
|
-
OverLimit.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
9
|
-
})(OverLimit || (OverLimit = {}));
|
|
10
6
|
export var ChangeMessageVisibilityRequest;
|
|
11
7
|
(function (ChangeMessageVisibilityRequest) {
|
|
12
8
|
ChangeMessageVisibilityRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
13
9
|
})(ChangeMessageVisibilityRequest || (ChangeMessageVisibilityRequest = {}));
|
|
14
|
-
export var MessageNotInflight;
|
|
15
|
-
(function (MessageNotInflight) {
|
|
16
|
-
MessageNotInflight.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
17
|
-
})(MessageNotInflight || (MessageNotInflight = {}));
|
|
18
|
-
export var ReceiptHandleIsInvalid;
|
|
19
|
-
(function (ReceiptHandleIsInvalid) {
|
|
20
|
-
ReceiptHandleIsInvalid.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
21
|
-
})(ReceiptHandleIsInvalid || (ReceiptHandleIsInvalid = {}));
|
|
22
|
-
export var BatchEntryIdsNotDistinct;
|
|
23
|
-
(function (BatchEntryIdsNotDistinct) {
|
|
24
|
-
BatchEntryIdsNotDistinct.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
25
|
-
})(BatchEntryIdsNotDistinct || (BatchEntryIdsNotDistinct = {}));
|
|
26
10
|
export var ChangeMessageVisibilityBatchRequestEntry;
|
|
27
11
|
(function (ChangeMessageVisibilityBatchRequestEntry) {
|
|
28
12
|
ChangeMessageVisibilityBatchRequestEntry.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
@@ -43,18 +27,6 @@ export var ChangeMessageVisibilityBatchResult;
|
|
|
43
27
|
(function (ChangeMessageVisibilityBatchResult) {
|
|
44
28
|
ChangeMessageVisibilityBatchResult.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
45
29
|
})(ChangeMessageVisibilityBatchResult || (ChangeMessageVisibilityBatchResult = {}));
|
|
46
|
-
export var EmptyBatchRequest;
|
|
47
|
-
(function (EmptyBatchRequest) {
|
|
48
|
-
EmptyBatchRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
49
|
-
})(EmptyBatchRequest || (EmptyBatchRequest = {}));
|
|
50
|
-
export var InvalidBatchEntryId;
|
|
51
|
-
(function (InvalidBatchEntryId) {
|
|
52
|
-
InvalidBatchEntryId.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
53
|
-
})(InvalidBatchEntryId || (InvalidBatchEntryId = {}));
|
|
54
|
-
export var TooManyEntriesInBatchRequest;
|
|
55
|
-
(function (TooManyEntriesInBatchRequest) {
|
|
56
|
-
TooManyEntriesInBatchRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
57
|
-
})(TooManyEntriesInBatchRequest || (TooManyEntriesInBatchRequest = {}));
|
|
58
30
|
export var CreateQueueRequest;
|
|
59
31
|
(function (CreateQueueRequest) {
|
|
60
32
|
CreateQueueRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
@@ -63,22 +35,10 @@ export var CreateQueueResult;
|
|
|
63
35
|
(function (CreateQueueResult) {
|
|
64
36
|
CreateQueueResult.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
65
37
|
})(CreateQueueResult || (CreateQueueResult = {}));
|
|
66
|
-
export var QueueDeletedRecently;
|
|
67
|
-
(function (QueueDeletedRecently) {
|
|
68
|
-
QueueDeletedRecently.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
69
|
-
})(QueueDeletedRecently || (QueueDeletedRecently = {}));
|
|
70
|
-
export var QueueNameExists;
|
|
71
|
-
(function (QueueNameExists) {
|
|
72
|
-
QueueNameExists.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
73
|
-
})(QueueNameExists || (QueueNameExists = {}));
|
|
74
38
|
export var DeleteMessageRequest;
|
|
75
39
|
(function (DeleteMessageRequest) {
|
|
76
40
|
DeleteMessageRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
77
41
|
})(DeleteMessageRequest || (DeleteMessageRequest = {}));
|
|
78
|
-
export var InvalidIdFormat;
|
|
79
|
-
(function (InvalidIdFormat) {
|
|
80
|
-
InvalidIdFormat.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
81
|
-
})(InvalidIdFormat || (InvalidIdFormat = {}));
|
|
82
42
|
export var DeleteMessageBatchRequestEntry;
|
|
83
43
|
(function (DeleteMessageBatchRequestEntry) {
|
|
84
44
|
DeleteMessageBatchRequestEntry.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
@@ -107,10 +67,6 @@ export var GetQueueAttributesResult;
|
|
|
107
67
|
(function (GetQueueAttributesResult) {
|
|
108
68
|
GetQueueAttributesResult.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
109
69
|
})(GetQueueAttributesResult || (GetQueueAttributesResult = {}));
|
|
110
|
-
export var InvalidAttributeName;
|
|
111
|
-
(function (InvalidAttributeName) {
|
|
112
|
-
InvalidAttributeName.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
113
|
-
})(InvalidAttributeName || (InvalidAttributeName = {}));
|
|
114
70
|
export var GetQueueUrlRequest;
|
|
115
71
|
(function (GetQueueUrlRequest) {
|
|
116
72
|
GetQueueUrlRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
@@ -119,10 +75,6 @@ export var GetQueueUrlResult;
|
|
|
119
75
|
(function (GetQueueUrlResult) {
|
|
120
76
|
GetQueueUrlResult.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
121
77
|
})(GetQueueUrlResult || (GetQueueUrlResult = {}));
|
|
122
|
-
export var QueueDoesNotExist;
|
|
123
|
-
(function (QueueDoesNotExist) {
|
|
124
|
-
QueueDoesNotExist.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
125
|
-
})(QueueDoesNotExist || (QueueDoesNotExist = {}));
|
|
126
78
|
export var ListDeadLetterSourceQueuesRequest;
|
|
127
79
|
(function (ListDeadLetterSourceQueuesRequest) {
|
|
128
80
|
ListDeadLetterSourceQueuesRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
@@ -147,10 +99,6 @@ export var ListQueueTagsResult;
|
|
|
147
99
|
(function (ListQueueTagsResult) {
|
|
148
100
|
ListQueueTagsResult.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
149
101
|
})(ListQueueTagsResult || (ListQueueTagsResult = {}));
|
|
150
|
-
export var PurgeQueueInProgress;
|
|
151
|
-
(function (PurgeQueueInProgress) {
|
|
152
|
-
PurgeQueueInProgress.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
153
|
-
})(PurgeQueueInProgress || (PurgeQueueInProgress = {}));
|
|
154
102
|
export var PurgeQueueRequest;
|
|
155
103
|
(function (PurgeQueueRequest) {
|
|
156
104
|
PurgeQueueRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
@@ -175,10 +123,6 @@ export var RemovePermissionRequest;
|
|
|
175
123
|
(function (RemovePermissionRequest) {
|
|
176
124
|
RemovePermissionRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
177
125
|
})(RemovePermissionRequest || (RemovePermissionRequest = {}));
|
|
178
|
-
export var InvalidMessageContents;
|
|
179
|
-
(function (InvalidMessageContents) {
|
|
180
|
-
InvalidMessageContents.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
181
|
-
})(InvalidMessageContents || (InvalidMessageContents = {}));
|
|
182
126
|
export var MessageSystemAttributeValue;
|
|
183
127
|
(function (MessageSystemAttributeValue) {
|
|
184
128
|
MessageSystemAttributeValue.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
@@ -191,14 +135,6 @@ export var SendMessageResult;
|
|
|
191
135
|
(function (SendMessageResult) {
|
|
192
136
|
SendMessageResult.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
193
137
|
})(SendMessageResult || (SendMessageResult = {}));
|
|
194
|
-
export var UnsupportedOperation;
|
|
195
|
-
(function (UnsupportedOperation) {
|
|
196
|
-
UnsupportedOperation.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
197
|
-
})(UnsupportedOperation || (UnsupportedOperation = {}));
|
|
198
|
-
export var BatchRequestTooLong;
|
|
199
|
-
(function (BatchRequestTooLong) {
|
|
200
|
-
BatchRequestTooLong.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
201
|
-
})(BatchRequestTooLong || (BatchRequestTooLong = {}));
|
|
202
138
|
export var SendMessageBatchRequestEntry;
|
|
203
139
|
(function (SendMessageBatchRequestEntry) {
|
|
204
140
|
SendMessageBatchRequestEntry.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 { Md5 } from "@aws-sdk/md5-js";
|
|
8
8
|
import { DEFAULT_MAX_ATTEMPTS, DEFAULT_RETRY_MODE } from "@aws-sdk/middleware-retry";
|
|
@@ -11,8 +11,17 @@ import { calculateBodyLength } from "@aws-sdk/util-body-length-browser";
|
|
|
11
11
|
import { defaultUserAgent } from "@aws-sdk/util-user-agent-browser";
|
|
12
12
|
import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-browser";
|
|
13
13
|
import { getRuntimeConfig as getSharedRuntimeConfig } from "./runtimeConfig.shared";
|
|
14
|
+
import { loadConfigsForDefaultMode } from "@aws-sdk/smithy-client";
|
|
15
|
+
import { resolveDefaultsModeConfig } from "@aws-sdk/util-defaults-mode-browser";
|
|
14
16
|
export var getRuntimeConfig = function (config) {
|
|
15
17
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r;
|
|
18
|
+
var defaultsMode = resolveDefaultsModeConfig(config);
|
|
19
|
+
var defaultConfigProvider = function () { return defaultsMode().then(loadConfigsForDefaultMode); };
|
|
16
20
|
var clientSharedValues = getSharedRuntimeConfig(config);
|
|
17
|
-
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, md5: (_g = config === null || config === void 0 ? void 0 : config.md5) !== null && _g !== void 0 ? _g : Md5, region: (_h = config === null || config === void 0 ? void 0 : config.region) !== null && _h !== void 0 ? _h : invalidProvider("Region is missing"), requestHandler: (_j = config === null || config === void 0 ? void 0 : config.requestHandler) !== null && _j !== void 0 ? _j : new
|
|
21
|
+
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, md5: (_g = config === null || config === void 0 ? void 0 : config.md5) !== null && _g !== void 0 ? _g : Md5, region: (_h = config === null || config === void 0 ? void 0 : config.region) !== null && _h !== void 0 ? _h : invalidProvider("Region is missing"), requestHandler: (_j = config === null || config === void 0 ? void 0 : config.requestHandler) !== null && _j !== void 0 ? _j : new RequestHandler(defaultConfigProvider), retryMode: (_k = config === null || config === void 0 ? void 0 : config.retryMode) !== null && _k !== void 0 ? _k : (function () { return __awaiter(void 0, void 0, void 0, function () { return __generator(this, function (_a) {
|
|
22
|
+
switch (_a.label) {
|
|
23
|
+
case 0: return [4, defaultConfigProvider()];
|
|
24
|
+
case 1: return [2, (_a.sent()).retryMode || DEFAULT_RETRY_MODE];
|
|
25
|
+
}
|
|
26
|
+
}); }); }), sha256: (_l = config === null || config === void 0 ? void 0 : config.sha256) !== null && _l !== void 0 ? _l : Sha256, streamCollector: (_m = config === null || config === void 0 ? void 0 : config.streamCollector) !== null && _m !== void 0 ? _m : streamCollector, useDualstackEndpoint: (_o = config === null || config === void 0 ? void 0 : config.useDualstackEndpoint) !== null && _o !== void 0 ? _o : (function () { return Promise.resolve(DEFAULT_USE_DUALSTACK_ENDPOINT); }), useFipsEndpoint: (_p = config === null || config === void 0 ? void 0 : config.useFipsEndpoint) !== null && _p !== void 0 ? _p : (function () { return Promise.resolve(DEFAULT_USE_FIPS_ENDPOINT); }), utf8Decoder: (_q = config === null || config === void 0 ? void 0 : config.utf8Decoder) !== null && _q !== void 0 ? _q : fromUtf8, utf8Encoder: (_r = config === null || config === void 0 ? void 0 : config.utf8Encoder) !== null && _r !== void 0 ? _r : toUtf8 });
|
|
18
27
|
};
|
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, _r;
|
|
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), md5: (_g = config === null || config === void 0 ? void 0 : config.md5) !== null && _g !== void 0 ? _g : Hash.bind(null, "md5"), region: (_h = config === null || config === void 0 ? void 0 : config.region) !== null && _h !== void 0 ? _h : loadNodeConfig(NODE_REGION_CONFIG_OPTIONS, NODE_REGION_CONFIG_FILE_OPTIONS), requestHandler: (_j = config === null || config === void 0 ? void 0 : config.requestHandler) !== null && _j !== void 0 ? _j : 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), md5: (_g = config === null || config === void 0 ? void 0 : config.md5) !== null && _g !== void 0 ? _g : Hash.bind(null, "md5"), region: (_h = config === null || config === void 0 ? void 0 : config.region) !== null && _h !== void 0 ? _h : loadNodeConfig(NODE_REGION_CONFIG_OPTIONS, NODE_REGION_CONFIG_FILE_OPTIONS), requestHandler: (_j = config === null || config === void 0 ? void 0 : config.requestHandler) !== null && _j !== void 0 ? _j : new RequestHandler(defaultConfigProvider), retryMode: (_k = config === null || config === void 0 ? void 0 : config.retryMode) !== null && _k !== void 0 ? _k : 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: (_l = config === null || config === void 0 ? void 0 : config.sha256) !== null && _l !== void 0 ? _l : Hash.bind(null, "sha256"), streamCollector: (_m = config === null || config === void 0 ? void 0 : config.streamCollector) !== null && _m !== void 0 ? _m : streamCollector, useDualstackEndpoint: (_o = config === null || config === void 0 ? void 0 : config.useDualstackEndpoint) !== null && _o !== void 0 ? _o : loadNodeConfig(NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS), useFipsEndpoint: (_p = config === null || config === void 0 ? void 0 : config.useFipsEndpoint) !== null && _p !== void 0 ? _p : loadNodeConfig(NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS), utf8Decoder: (_q = config === null || config === void 0 ? void 0 : config.utf8Decoder) !== null && _q !== void 0 ? _q : fromUtf8, utf8Encoder: (_r = config === null || config === void 0 ? void 0 : config.utf8Encoder) !== null && _r !== void 0 ? _r : toUtf8 });
|
|
21
28
|
};
|
|
@@ -4,7 +4,7 @@ import { RetryInputConfig, RetryResolvedConfig } from "@aws-sdk/middleware-retry
|
|
|
4
4
|
import { AwsAuthInputConfig, AwsAuthResolvedConfig } from "@aws-sdk/middleware-signing";
|
|
5
5
|
import { UserAgentInputConfig, UserAgentResolvedConfig } from "@aws-sdk/middleware-user-agent";
|
|
6
6
|
import { HttpHandler as __HttpHandler } from "@aws-sdk/protocol-http";
|
|
7
|
-
import { Client as __Client, SmithyConfiguration as __SmithyConfiguration, SmithyResolvedConfiguration as __SmithyResolvedConfiguration } from "@aws-sdk/smithy-client";
|
|
7
|
+
import { Client as __Client, DefaultsMode, SmithyConfiguration as __SmithyConfiguration, SmithyResolvedConfiguration as __SmithyResolvedConfiguration } from "@aws-sdk/smithy-client";
|
|
8
8
|
import { Credentials as __Credentials, Decoder as __Decoder, Encoder as __Encoder, HashConstructor as __HashConstructor, HttpHandlerOptions as __HttpHandlerOptions, Logger as __Logger, Provider as __Provider, Provider, RegionInfoProvider, StreamCollector as __StreamCollector, UrlParser as __UrlParser, UserAgent as __UserAgent } from "@aws-sdk/types";
|
|
9
9
|
import { AddPermissionCommandInput, AddPermissionCommandOutput } from "./commands/AddPermissionCommand";
|
|
10
10
|
import { ChangeMessageVisibilityBatchCommandInput, ChangeMessageVisibilityBatchCommandOutput } from "./commands/ChangeMessageVisibilityBatchCommand";
|
|
@@ -134,6 +134,10 @@ export interface ClientDefaults extends Partial<__SmithyResolvedConfiguration<__
|
|
|
134
134
|
* @internal
|
|
135
135
|
*/
|
|
136
136
|
defaultUserAgentProvider?: Provider<__UserAgent>;
|
|
137
|
+
/**
|
|
138
|
+
* The {@link DefaultsMode} that will be used to determine how certain default configuration options are resolved in the SDK.
|
|
139
|
+
*/
|
|
140
|
+
defaultsMode?: DefaultsMode | Provider<DefaultsMode>;
|
|
137
141
|
}
|
|
138
142
|
declare type SQSClientConfigType = Partial<__SmithyConfiguration<__HttpHandlerOptions>> & ClientDefaults & RegionInputConfig & EndpointsInputConfig & RetryInputConfig & HostHeaderInputConfig & AwsAuthInputConfig & UserAgentInputConfig;
|
|
139
143
|
/**
|