@aws-sdk/client-sqs 3.1045.0 → 3.1046.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/dist-cjs/auth/httpAuthSchemeProvider.js +4 -4
- package/dist-cjs/endpoint/bdd.js +2 -2
- package/dist-cjs/endpoint/endpointResolver.js +4 -4
- package/dist-cjs/index.js +64 -65
- package/dist-cjs/models/SQSServiceException.js +3 -3
- package/dist-cjs/runtimeConfig.browser.js +14 -16
- package/dist-cjs/runtimeConfig.js +19 -23
- package/dist-cjs/runtimeConfig.shared.js +9 -10
- package/dist-es/SQS.js +1 -1
- package/dist-es/SQSClient.js +5 -5
- package/dist-es/auth/httpAuthSchemeProvider.js +1 -1
- package/dist-es/commands/AddPermissionCommand.js +2 -2
- package/dist-es/commands/CancelMessageMoveTaskCommand.js +2 -2
- package/dist-es/commands/ChangeMessageVisibilityBatchCommand.js +2 -2
- package/dist-es/commands/ChangeMessageVisibilityCommand.js +2 -2
- package/dist-es/commands/CreateQueueCommand.js +2 -2
- package/dist-es/commands/DeleteMessageBatchCommand.js +2 -2
- package/dist-es/commands/DeleteMessageCommand.js +2 -2
- package/dist-es/commands/DeleteQueueCommand.js +2 -2
- package/dist-es/commands/GetQueueAttributesCommand.js +2 -2
- package/dist-es/commands/GetQueueUrlCommand.js +2 -2
- package/dist-es/commands/ListDeadLetterSourceQueuesCommand.js +2 -2
- package/dist-es/commands/ListMessageMoveTasksCommand.js +2 -2
- package/dist-es/commands/ListQueueTagsCommand.js +2 -2
- package/dist-es/commands/ListQueuesCommand.js +2 -2
- package/dist-es/commands/PurgeQueueCommand.js +2 -2
- package/dist-es/commands/ReceiveMessageCommand.js +2 -2
- package/dist-es/commands/RemovePermissionCommand.js +2 -2
- package/dist-es/commands/SendMessageBatchCommand.js +2 -2
- package/dist-es/commands/SendMessageCommand.js +2 -2
- package/dist-es/commands/SetQueueAttributesCommand.js +2 -2
- package/dist-es/commands/StartMessageMoveTaskCommand.js +2 -2
- package/dist-es/commands/TagQueueCommand.js +2 -2
- package/dist-es/commands/UntagQueueCommand.js +2 -2
- package/dist-es/endpoint/bdd.js +1 -1
- package/dist-es/endpoint/endpointResolver.js +1 -1
- package/dist-es/models/SQSServiceException.js +1 -1
- package/dist-es/runtimeConfig.browser.js +5 -7
- package/dist-es/runtimeConfig.js +4 -8
- package/dist-es/runtimeConfig.shared.js +3 -4
- package/dist-es/runtimeExtensions.js +2 -2
- package/dist-types/SQSClient.d.ts +5 -5
- package/dist-types/commands/AddPermissionCommand.d.ts +6 -4
- package/dist-types/commands/CancelMessageMoveTaskCommand.d.ts +6 -4
- package/dist-types/commands/ChangeMessageVisibilityBatchCommand.d.ts +6 -4
- package/dist-types/commands/ChangeMessageVisibilityCommand.d.ts +6 -4
- package/dist-types/commands/CreateQueueCommand.d.ts +6 -4
- package/dist-types/commands/DeleteMessageBatchCommand.d.ts +6 -4
- package/dist-types/commands/DeleteMessageCommand.d.ts +6 -4
- package/dist-types/commands/DeleteQueueCommand.d.ts +6 -4
- package/dist-types/commands/GetQueueAttributesCommand.d.ts +6 -4
- package/dist-types/commands/GetQueueUrlCommand.d.ts +6 -4
- package/dist-types/commands/ListDeadLetterSourceQueuesCommand.d.ts +6 -4
- package/dist-types/commands/ListMessageMoveTasksCommand.d.ts +6 -4
- package/dist-types/commands/ListQueueTagsCommand.d.ts +6 -4
- package/dist-types/commands/ListQueuesCommand.d.ts +6 -4
- package/dist-types/commands/PurgeQueueCommand.d.ts +6 -4
- package/dist-types/commands/ReceiveMessageCommand.d.ts +6 -4
- package/dist-types/commands/RemovePermissionCommand.d.ts +6 -4
- package/dist-types/commands/SendMessageBatchCommand.d.ts +6 -4
- package/dist-types/commands/SendMessageCommand.d.ts +6 -4
- package/dist-types/commands/SetQueueAttributesCommand.d.ts +6 -4
- package/dist-types/commands/StartMessageMoveTaskCommand.d.ts +6 -4
- package/dist-types/commands/TagQueueCommand.d.ts +6 -4
- package/dist-types/commands/UntagQueueCommand.d.ts +6 -4
- package/dist-types/endpoint/bdd.d.ts +1 -1
- package/dist-types/extensionConfiguration.d.ts +1 -1
- package/dist-types/models/SQSServiceException.d.ts +1 -1
- package/dist-types/models/errors.d.ts +1 -1
- package/dist-types/runtimeConfig.browser.d.ts +2 -2
- package/dist-types/runtimeConfig.d.ts +2 -2
- package/dist-types/runtimeConfig.native.d.ts +2 -2
- package/dist-types/ts3.4/SQSClient.d.ts +8 -14
- package/dist-types/ts3.4/commands/AddPermissionCommand.d.ts +6 -4
- package/dist-types/ts3.4/commands/CancelMessageMoveTaskCommand.d.ts +6 -4
- package/dist-types/ts3.4/commands/ChangeMessageVisibilityBatchCommand.d.ts +6 -4
- package/dist-types/ts3.4/commands/ChangeMessageVisibilityCommand.d.ts +6 -4
- package/dist-types/ts3.4/commands/CreateQueueCommand.d.ts +6 -4
- package/dist-types/ts3.4/commands/DeleteMessageBatchCommand.d.ts +6 -4
- package/dist-types/ts3.4/commands/DeleteMessageCommand.d.ts +6 -4
- package/dist-types/ts3.4/commands/DeleteQueueCommand.d.ts +6 -4
- package/dist-types/ts3.4/commands/GetQueueAttributesCommand.d.ts +6 -4
- package/dist-types/ts3.4/commands/GetQueueUrlCommand.d.ts +6 -4
- package/dist-types/ts3.4/commands/ListDeadLetterSourceQueuesCommand.d.ts +6 -4
- package/dist-types/ts3.4/commands/ListMessageMoveTasksCommand.d.ts +6 -4
- package/dist-types/ts3.4/commands/ListQueueTagsCommand.d.ts +6 -4
- package/dist-types/ts3.4/commands/ListQueuesCommand.d.ts +6 -4
- package/dist-types/ts3.4/commands/PurgeQueueCommand.d.ts +6 -4
- package/dist-types/ts3.4/commands/ReceiveMessageCommand.d.ts +6 -4
- package/dist-types/ts3.4/commands/RemovePermissionCommand.d.ts +6 -4
- package/dist-types/ts3.4/commands/SendMessageBatchCommand.d.ts +6 -4
- package/dist-types/ts3.4/commands/SendMessageCommand.d.ts +6 -4
- package/dist-types/ts3.4/commands/SetQueueAttributesCommand.d.ts +6 -4
- package/dist-types/ts3.4/commands/StartMessageMoveTaskCommand.d.ts +6 -4
- package/dist-types/ts3.4/commands/TagQueueCommand.d.ts +6 -8
- package/dist-types/ts3.4/commands/UntagQueueCommand.d.ts +6 -4
- package/dist-types/ts3.4/endpoint/bdd.d.ts +1 -1
- package/dist-types/ts3.4/extensionConfiguration.d.ts +1 -1
- package/dist-types/ts3.4/models/SQSServiceException.d.ts +1 -1
- package/dist-types/ts3.4/models/errors.d.ts +1 -1
- package/dist-types/ts3.4/runtimeConfig.browser.d.ts +2 -2
- package/dist-types/ts3.4/runtimeConfig.d.ts +2 -2
- package/dist-types/ts3.4/runtimeConfig.native.d.ts +3 -3
- package/package.json +15 -37
|
@@ -2,11 +2,11 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.resolveHttpAuthSchemeConfig = exports.defaultSQSHttpAuthSchemeProvider = exports.defaultSQSHttpAuthSchemeParametersProvider = void 0;
|
|
4
4
|
const httpAuthSchemes_1 = require("@aws-sdk/core/httpAuthSchemes");
|
|
5
|
-
const
|
|
5
|
+
const client_1 = require("@smithy/core/client");
|
|
6
6
|
const defaultSQSHttpAuthSchemeParametersProvider = async (config, context, input) => {
|
|
7
7
|
return {
|
|
8
|
-
operation: (0,
|
|
9
|
-
region: await (0,
|
|
8
|
+
operation: (0, client_1.getSmithyContext)(context).operation,
|
|
9
|
+
region: await (0, client_1.normalizeProvider)(config.region)() || (() => {
|
|
10
10
|
throw new Error("expected `region` to be configured for `aws.auth#sigv4`");
|
|
11
11
|
})(),
|
|
12
12
|
};
|
|
@@ -40,7 +40,7 @@ exports.defaultSQSHttpAuthSchemeProvider = defaultSQSHttpAuthSchemeProvider;
|
|
|
40
40
|
const resolveHttpAuthSchemeConfig = (config) => {
|
|
41
41
|
const config_0 = (0, httpAuthSchemes_1.resolveAwsSdkSigV4Config)(config);
|
|
42
42
|
return Object.assign(config_0, {
|
|
43
|
-
authSchemePreference: (0,
|
|
43
|
+
authSchemePreference: (0, client_1.normalizeProvider)(config.authSchemePreference ?? []),
|
|
44
44
|
});
|
|
45
45
|
};
|
|
46
46
|
exports.resolveHttpAuthSchemeConfig = resolveHttpAuthSchemeConfig;
|
package/dist-cjs/endpoint/bdd.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.bdd = void 0;
|
|
4
|
-
const
|
|
4
|
+
const endpoints_1 = require("@smithy/core/endpoints");
|
|
5
5
|
const k = "ref";
|
|
6
6
|
const a = -1, b = true, c = "isSet", d = "PartitionResult", e = "booleanEquals", f = "getAttr", g = { [k]: "Endpoint" }, h = { [k]: d }, i = {}, j = [{ [k]: "Region" }];
|
|
7
7
|
const _data = {
|
|
@@ -49,4 +49,4 @@ const nodes = new Int32Array([
|
|
|
49
49
|
3, r + 1, 14,
|
|
50
50
|
4, r + 2, r + 3,
|
|
51
51
|
]);
|
|
52
|
-
exports.bdd =
|
|
52
|
+
exports.bdd = endpoints_1.BinaryDecisionDiagram.from(nodes, root, _data.conditions, _data.results);
|
|
@@ -2,17 +2,17 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.defaultEndpointResolver = void 0;
|
|
4
4
|
const util_endpoints_1 = require("@aws-sdk/util-endpoints");
|
|
5
|
-
const
|
|
5
|
+
const endpoints_1 = require("@smithy/core/endpoints");
|
|
6
6
|
const bdd_1 = require("./bdd");
|
|
7
|
-
const cache = new
|
|
7
|
+
const cache = new endpoints_1.EndpointCache({
|
|
8
8
|
size: 50,
|
|
9
9
|
params: ["Endpoint", "Region", "UseDualStack", "UseFIPS"],
|
|
10
10
|
});
|
|
11
11
|
const defaultEndpointResolver = (endpointParams, context = {}) => {
|
|
12
|
-
return cache.get(endpointParams, () => (0,
|
|
12
|
+
return cache.get(endpointParams, () => (0, endpoints_1.decideEndpoint)(bdd_1.bdd, {
|
|
13
13
|
endpointParams: endpointParams,
|
|
14
14
|
logger: context.logger,
|
|
15
15
|
}));
|
|
16
16
|
};
|
|
17
17
|
exports.defaultEndpointResolver = defaultEndpointResolver;
|
|
18
|
-
|
|
18
|
+
endpoints_1.customEndpointFunctions.aws = util_endpoints_1.awsEndpointFunctions;
|
package/dist-cjs/index.js
CHANGED
|
@@ -5,19 +5,18 @@ var middlewareLogger = require('@aws-sdk/middleware-logger');
|
|
|
5
5
|
var middlewareRecursionDetection = require('@aws-sdk/middleware-recursion-detection');
|
|
6
6
|
var middlewareSdkSqs = require('@aws-sdk/middleware-sdk-sqs');
|
|
7
7
|
var middlewareUserAgent = require('@aws-sdk/middleware-user-agent');
|
|
8
|
-
var configResolver = require('@smithy/config-resolver');
|
|
9
8
|
var core = require('@smithy/core');
|
|
9
|
+
var client = require('@smithy/core/client');
|
|
10
|
+
var config = require('@smithy/core/config');
|
|
11
|
+
var endpoints = require('@smithy/core/endpoints');
|
|
12
|
+
var protocols = require('@smithy/core/protocols');
|
|
13
|
+
var retry = require('@smithy/core/retry');
|
|
10
14
|
var schema = require('@smithy/core/schema');
|
|
11
|
-
var middlewareContentLength = require('@smithy/middleware-content-length');
|
|
12
|
-
var middlewareEndpoint = require('@smithy/middleware-endpoint');
|
|
13
|
-
var middlewareRetry = require('@smithy/middleware-retry');
|
|
14
|
-
var smithyClient = require('@smithy/smithy-client');
|
|
15
15
|
var httpAuthSchemeProvider = require('./auth/httpAuthSchemeProvider');
|
|
16
16
|
var runtimeConfig = require('./runtimeConfig');
|
|
17
17
|
var regionConfigResolver = require('@aws-sdk/region-config-resolver');
|
|
18
|
-
var protocolHttp = require('@smithy/protocol-http');
|
|
19
18
|
var schemas_0 = require('./schemas/schemas_0');
|
|
20
|
-
var client = require('@aws-sdk/core/client');
|
|
19
|
+
var client$1 = require('@aws-sdk/core/client');
|
|
21
20
|
var errors = require('./models/errors');
|
|
22
21
|
var SQSServiceException = require('./models/SQSServiceException');
|
|
23
22
|
|
|
@@ -75,12 +74,12 @@ const resolveHttpAuthRuntimeConfig = (config) => {
|
|
|
75
74
|
};
|
|
76
75
|
|
|
77
76
|
const resolveRuntimeExtensions = (runtimeConfig, extensions) => {
|
|
78
|
-
const extensionConfiguration = Object.assign(regionConfigResolver.getAwsRegionExtensionConfiguration(runtimeConfig),
|
|
77
|
+
const extensionConfiguration = Object.assign(regionConfigResolver.getAwsRegionExtensionConfiguration(runtimeConfig), client.getDefaultExtensionConfiguration(runtimeConfig), protocols.getHttpHandlerExtensionConfiguration(runtimeConfig), getHttpAuthExtensionConfiguration(runtimeConfig));
|
|
79
78
|
extensions.forEach((extension) => extension.configure(extensionConfiguration));
|
|
80
|
-
return Object.assign(runtimeConfig, regionConfigResolver.resolveAwsRegionExtensionConfiguration(extensionConfiguration),
|
|
79
|
+
return Object.assign(runtimeConfig, regionConfigResolver.resolveAwsRegionExtensionConfiguration(extensionConfiguration), client.resolveDefaultRuntimeConfig(extensionConfiguration), protocols.resolveHttpHandlerRuntimeConfig(extensionConfiguration), resolveHttpAuthRuntimeConfig(extensionConfiguration));
|
|
81
80
|
};
|
|
82
81
|
|
|
83
|
-
class SQSClient extends
|
|
82
|
+
class SQSClient extends client.Client {
|
|
84
83
|
config;
|
|
85
84
|
constructor(...[configuration]) {
|
|
86
85
|
const _config_0 = runtimeConfig.getRuntimeConfig(configuration || {});
|
|
@@ -88,18 +87,18 @@ class SQSClient extends smithyClient.Client {
|
|
|
88
87
|
this.initConfig = _config_0;
|
|
89
88
|
const _config_1 = resolveClientEndpointParameters(_config_0);
|
|
90
89
|
const _config_2 = middlewareUserAgent.resolveUserAgentConfig(_config_1);
|
|
91
|
-
const _config_3 =
|
|
92
|
-
const _config_4 =
|
|
90
|
+
const _config_3 = retry.resolveRetryConfig(_config_2);
|
|
91
|
+
const _config_4 = config.resolveRegionConfig(_config_3);
|
|
93
92
|
const _config_5 = middlewareHostHeader.resolveHostHeaderConfig(_config_4);
|
|
94
|
-
const _config_6 =
|
|
93
|
+
const _config_6 = endpoints.resolveEndpointConfig(_config_5);
|
|
95
94
|
const _config_7 = middlewareSdkSqs.resolveQueueUrlConfig(_config_6);
|
|
96
95
|
const _config_8 = httpAuthSchemeProvider.resolveHttpAuthSchemeConfig(_config_7);
|
|
97
96
|
const _config_9 = resolveRuntimeExtensions(_config_8, configuration?.extensions || []);
|
|
98
97
|
this.config = _config_9;
|
|
99
98
|
this.middlewareStack.use(schema.getSchemaSerdePlugin(this.config));
|
|
100
99
|
this.middlewareStack.use(middlewareUserAgent.getUserAgentPlugin(this.config));
|
|
101
|
-
this.middlewareStack.use(
|
|
102
|
-
this.middlewareStack.use(
|
|
100
|
+
this.middlewareStack.use(retry.getRetryPlugin(this.config));
|
|
101
|
+
this.middlewareStack.use(protocols.getContentLengthPlugin(this.config));
|
|
103
102
|
this.middlewareStack.use(middlewareHostHeader.getHostHeaderPlugin(this.config));
|
|
104
103
|
this.middlewareStack.use(middlewareLogger.getLoggerPlugin(this.config));
|
|
105
104
|
this.middlewareStack.use(middlewareRecursionDetection.getRecursionDetectionPlugin(this.config));
|
|
@@ -117,11 +116,11 @@ class SQSClient extends smithyClient.Client {
|
|
|
117
116
|
}
|
|
118
117
|
}
|
|
119
118
|
|
|
120
|
-
class AddPermissionCommand extends
|
|
119
|
+
class AddPermissionCommand extends client.Command
|
|
121
120
|
.classBuilder()
|
|
122
121
|
.ep(commonParams)
|
|
123
122
|
.m(function (Command, cs, config, o) {
|
|
124
|
-
return [
|
|
123
|
+
return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
125
124
|
})
|
|
126
125
|
.s("AmazonSQS", "AddPermission", {})
|
|
127
126
|
.n("SQSClient", "AddPermissionCommand")
|
|
@@ -129,11 +128,11 @@ class AddPermissionCommand extends smithyClient.Command
|
|
|
129
128
|
.build() {
|
|
130
129
|
}
|
|
131
130
|
|
|
132
|
-
class CancelMessageMoveTaskCommand extends
|
|
131
|
+
class CancelMessageMoveTaskCommand extends client.Command
|
|
133
132
|
.classBuilder()
|
|
134
133
|
.ep(commonParams)
|
|
135
134
|
.m(function (Command, cs, config, o) {
|
|
136
|
-
return [
|
|
135
|
+
return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
137
136
|
})
|
|
138
137
|
.s("AmazonSQS", "CancelMessageMoveTask", {})
|
|
139
138
|
.n("SQSClient", "CancelMessageMoveTaskCommand")
|
|
@@ -141,11 +140,11 @@ class CancelMessageMoveTaskCommand extends smithyClient.Command
|
|
|
141
140
|
.build() {
|
|
142
141
|
}
|
|
143
142
|
|
|
144
|
-
class ChangeMessageVisibilityBatchCommand extends
|
|
143
|
+
class ChangeMessageVisibilityBatchCommand extends client.Command
|
|
145
144
|
.classBuilder()
|
|
146
145
|
.ep(commonParams)
|
|
147
146
|
.m(function (Command, cs, config, o) {
|
|
148
|
-
return [
|
|
147
|
+
return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
149
148
|
})
|
|
150
149
|
.s("AmazonSQS", "ChangeMessageVisibilityBatch", {})
|
|
151
150
|
.n("SQSClient", "ChangeMessageVisibilityBatchCommand")
|
|
@@ -153,11 +152,11 @@ class ChangeMessageVisibilityBatchCommand extends smithyClient.Command
|
|
|
153
152
|
.build() {
|
|
154
153
|
}
|
|
155
154
|
|
|
156
|
-
class ChangeMessageVisibilityCommand extends
|
|
155
|
+
class ChangeMessageVisibilityCommand extends client.Command
|
|
157
156
|
.classBuilder()
|
|
158
157
|
.ep(commonParams)
|
|
159
158
|
.m(function (Command, cs, config, o) {
|
|
160
|
-
return [
|
|
159
|
+
return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
161
160
|
})
|
|
162
161
|
.s("AmazonSQS", "ChangeMessageVisibility", {})
|
|
163
162
|
.n("SQSClient", "ChangeMessageVisibilityCommand")
|
|
@@ -165,11 +164,11 @@ class ChangeMessageVisibilityCommand extends smithyClient.Command
|
|
|
165
164
|
.build() {
|
|
166
165
|
}
|
|
167
166
|
|
|
168
|
-
class CreateQueueCommand extends
|
|
167
|
+
class CreateQueueCommand extends client.Command
|
|
169
168
|
.classBuilder()
|
|
170
169
|
.ep(commonParams)
|
|
171
170
|
.m(function (Command, cs, config, o) {
|
|
172
|
-
return [
|
|
171
|
+
return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
173
172
|
})
|
|
174
173
|
.s("AmazonSQS", "CreateQueue", {})
|
|
175
174
|
.n("SQSClient", "CreateQueueCommand")
|
|
@@ -177,11 +176,11 @@ class CreateQueueCommand extends smithyClient.Command
|
|
|
177
176
|
.build() {
|
|
178
177
|
}
|
|
179
178
|
|
|
180
|
-
class DeleteMessageBatchCommand extends
|
|
179
|
+
class DeleteMessageBatchCommand extends client.Command
|
|
181
180
|
.classBuilder()
|
|
182
181
|
.ep(commonParams)
|
|
183
182
|
.m(function (Command, cs, config, o) {
|
|
184
|
-
return [
|
|
183
|
+
return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
185
184
|
})
|
|
186
185
|
.s("AmazonSQS", "DeleteMessageBatch", {})
|
|
187
186
|
.n("SQSClient", "DeleteMessageBatchCommand")
|
|
@@ -189,11 +188,11 @@ class DeleteMessageBatchCommand extends smithyClient.Command
|
|
|
189
188
|
.build() {
|
|
190
189
|
}
|
|
191
190
|
|
|
192
|
-
class DeleteMessageCommand extends
|
|
191
|
+
class DeleteMessageCommand extends client.Command
|
|
193
192
|
.classBuilder()
|
|
194
193
|
.ep(commonParams)
|
|
195
194
|
.m(function (Command, cs, config, o) {
|
|
196
|
-
return [
|
|
195
|
+
return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
197
196
|
})
|
|
198
197
|
.s("AmazonSQS", "DeleteMessage", {})
|
|
199
198
|
.n("SQSClient", "DeleteMessageCommand")
|
|
@@ -201,11 +200,11 @@ class DeleteMessageCommand extends smithyClient.Command
|
|
|
201
200
|
.build() {
|
|
202
201
|
}
|
|
203
202
|
|
|
204
|
-
class DeleteQueueCommand extends
|
|
203
|
+
class DeleteQueueCommand extends client.Command
|
|
205
204
|
.classBuilder()
|
|
206
205
|
.ep(commonParams)
|
|
207
206
|
.m(function (Command, cs, config, o) {
|
|
208
|
-
return [
|
|
207
|
+
return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
209
208
|
})
|
|
210
209
|
.s("AmazonSQS", "DeleteQueue", {})
|
|
211
210
|
.n("SQSClient", "DeleteQueueCommand")
|
|
@@ -213,11 +212,11 @@ class DeleteQueueCommand extends smithyClient.Command
|
|
|
213
212
|
.build() {
|
|
214
213
|
}
|
|
215
214
|
|
|
216
|
-
class GetQueueAttributesCommand extends
|
|
215
|
+
class GetQueueAttributesCommand extends client.Command
|
|
217
216
|
.classBuilder()
|
|
218
217
|
.ep(commonParams)
|
|
219
218
|
.m(function (Command, cs, config, o) {
|
|
220
|
-
return [
|
|
219
|
+
return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
221
220
|
})
|
|
222
221
|
.s("AmazonSQS", "GetQueueAttributes", {})
|
|
223
222
|
.n("SQSClient", "GetQueueAttributesCommand")
|
|
@@ -225,11 +224,11 @@ class GetQueueAttributesCommand extends smithyClient.Command
|
|
|
225
224
|
.build() {
|
|
226
225
|
}
|
|
227
226
|
|
|
228
|
-
class GetQueueUrlCommand extends
|
|
227
|
+
class GetQueueUrlCommand extends client.Command
|
|
229
228
|
.classBuilder()
|
|
230
229
|
.ep(commonParams)
|
|
231
230
|
.m(function (Command, cs, config, o) {
|
|
232
|
-
return [
|
|
231
|
+
return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
233
232
|
})
|
|
234
233
|
.s("AmazonSQS", "GetQueueUrl", {})
|
|
235
234
|
.n("SQSClient", "GetQueueUrlCommand")
|
|
@@ -237,11 +236,11 @@ class GetQueueUrlCommand extends smithyClient.Command
|
|
|
237
236
|
.build() {
|
|
238
237
|
}
|
|
239
238
|
|
|
240
|
-
class ListDeadLetterSourceQueuesCommand extends
|
|
239
|
+
class ListDeadLetterSourceQueuesCommand extends client.Command
|
|
241
240
|
.classBuilder()
|
|
242
241
|
.ep(commonParams)
|
|
243
242
|
.m(function (Command, cs, config, o) {
|
|
244
|
-
return [
|
|
243
|
+
return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
245
244
|
})
|
|
246
245
|
.s("AmazonSQS", "ListDeadLetterSourceQueues", {})
|
|
247
246
|
.n("SQSClient", "ListDeadLetterSourceQueuesCommand")
|
|
@@ -249,11 +248,11 @@ class ListDeadLetterSourceQueuesCommand extends smithyClient.Command
|
|
|
249
248
|
.build() {
|
|
250
249
|
}
|
|
251
250
|
|
|
252
|
-
class ListMessageMoveTasksCommand extends
|
|
251
|
+
class ListMessageMoveTasksCommand extends client.Command
|
|
253
252
|
.classBuilder()
|
|
254
253
|
.ep(commonParams)
|
|
255
254
|
.m(function (Command, cs, config, o) {
|
|
256
|
-
return [
|
|
255
|
+
return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
257
256
|
})
|
|
258
257
|
.s("AmazonSQS", "ListMessageMoveTasks", {})
|
|
259
258
|
.n("SQSClient", "ListMessageMoveTasksCommand")
|
|
@@ -261,11 +260,11 @@ class ListMessageMoveTasksCommand extends smithyClient.Command
|
|
|
261
260
|
.build() {
|
|
262
261
|
}
|
|
263
262
|
|
|
264
|
-
class ListQueuesCommand extends
|
|
263
|
+
class ListQueuesCommand extends client.Command
|
|
265
264
|
.classBuilder()
|
|
266
265
|
.ep(commonParams)
|
|
267
266
|
.m(function (Command, cs, config, o) {
|
|
268
|
-
return [
|
|
267
|
+
return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
269
268
|
})
|
|
270
269
|
.s("AmazonSQS", "ListQueues", {})
|
|
271
270
|
.n("SQSClient", "ListQueuesCommand")
|
|
@@ -273,11 +272,11 @@ class ListQueuesCommand extends smithyClient.Command
|
|
|
273
272
|
.build() {
|
|
274
273
|
}
|
|
275
274
|
|
|
276
|
-
class ListQueueTagsCommand extends
|
|
275
|
+
class ListQueueTagsCommand extends client.Command
|
|
277
276
|
.classBuilder()
|
|
278
277
|
.ep(commonParams)
|
|
279
278
|
.m(function (Command, cs, config, o) {
|
|
280
|
-
return [
|
|
279
|
+
return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
281
280
|
})
|
|
282
281
|
.s("AmazonSQS", "ListQueueTags", {})
|
|
283
282
|
.n("SQSClient", "ListQueueTagsCommand")
|
|
@@ -285,11 +284,11 @@ class ListQueueTagsCommand extends smithyClient.Command
|
|
|
285
284
|
.build() {
|
|
286
285
|
}
|
|
287
286
|
|
|
288
|
-
class PurgeQueueCommand extends
|
|
287
|
+
class PurgeQueueCommand extends client.Command
|
|
289
288
|
.classBuilder()
|
|
290
289
|
.ep(commonParams)
|
|
291
290
|
.m(function (Command, cs, config, o) {
|
|
292
|
-
return [
|
|
291
|
+
return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
293
292
|
})
|
|
294
293
|
.s("AmazonSQS", "PurgeQueue", {})
|
|
295
294
|
.n("SQSClient", "PurgeQueueCommand")
|
|
@@ -297,13 +296,13 @@ class PurgeQueueCommand extends smithyClient.Command
|
|
|
297
296
|
.build() {
|
|
298
297
|
}
|
|
299
298
|
|
|
300
|
-
class ReceiveMessageCommand extends
|
|
299
|
+
class ReceiveMessageCommand extends client.Command
|
|
301
300
|
.classBuilder()
|
|
302
301
|
.ep(commonParams)
|
|
303
302
|
.m(function (Command, cs, config, o) {
|
|
304
303
|
return [
|
|
305
|
-
|
|
306
|
-
client.getLongPollPlugin(config),
|
|
304
|
+
endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
305
|
+
client$1.getLongPollPlugin(config),
|
|
307
306
|
middlewareSdkSqs.getReceiveMessagePlugin(config),
|
|
308
307
|
];
|
|
309
308
|
})
|
|
@@ -313,11 +312,11 @@ class ReceiveMessageCommand extends smithyClient.Command
|
|
|
313
312
|
.build() {
|
|
314
313
|
}
|
|
315
314
|
|
|
316
|
-
class RemovePermissionCommand extends
|
|
315
|
+
class RemovePermissionCommand extends client.Command
|
|
317
316
|
.classBuilder()
|
|
318
317
|
.ep(commonParams)
|
|
319
318
|
.m(function (Command, cs, config, o) {
|
|
320
|
-
return [
|
|
319
|
+
return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
321
320
|
})
|
|
322
321
|
.s("AmazonSQS", "RemovePermission", {})
|
|
323
322
|
.n("SQSClient", "RemovePermissionCommand")
|
|
@@ -325,12 +324,12 @@ class RemovePermissionCommand extends smithyClient.Command
|
|
|
325
324
|
.build() {
|
|
326
325
|
}
|
|
327
326
|
|
|
328
|
-
class SendMessageBatchCommand extends
|
|
327
|
+
class SendMessageBatchCommand extends client.Command
|
|
329
328
|
.classBuilder()
|
|
330
329
|
.ep(commonParams)
|
|
331
330
|
.m(function (Command, cs, config, o) {
|
|
332
331
|
return [
|
|
333
|
-
|
|
332
|
+
endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
334
333
|
middlewareSdkSqs.getSendMessageBatchPlugin(config),
|
|
335
334
|
];
|
|
336
335
|
})
|
|
@@ -340,12 +339,12 @@ class SendMessageBatchCommand extends smithyClient.Command
|
|
|
340
339
|
.build() {
|
|
341
340
|
}
|
|
342
341
|
|
|
343
|
-
class SendMessageCommand extends
|
|
342
|
+
class SendMessageCommand extends client.Command
|
|
344
343
|
.classBuilder()
|
|
345
344
|
.ep(commonParams)
|
|
346
345
|
.m(function (Command, cs, config, o) {
|
|
347
346
|
return [
|
|
348
|
-
|
|
347
|
+
endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
349
348
|
middlewareSdkSqs.getSendMessagePlugin(config),
|
|
350
349
|
];
|
|
351
350
|
})
|
|
@@ -355,11 +354,11 @@ class SendMessageCommand extends smithyClient.Command
|
|
|
355
354
|
.build() {
|
|
356
355
|
}
|
|
357
356
|
|
|
358
|
-
class SetQueueAttributesCommand extends
|
|
357
|
+
class SetQueueAttributesCommand extends client.Command
|
|
359
358
|
.classBuilder()
|
|
360
359
|
.ep(commonParams)
|
|
361
360
|
.m(function (Command, cs, config, o) {
|
|
362
|
-
return [
|
|
361
|
+
return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
363
362
|
})
|
|
364
363
|
.s("AmazonSQS", "SetQueueAttributes", {})
|
|
365
364
|
.n("SQSClient", "SetQueueAttributesCommand")
|
|
@@ -367,11 +366,11 @@ class SetQueueAttributesCommand extends smithyClient.Command
|
|
|
367
366
|
.build() {
|
|
368
367
|
}
|
|
369
368
|
|
|
370
|
-
class StartMessageMoveTaskCommand extends
|
|
369
|
+
class StartMessageMoveTaskCommand extends client.Command
|
|
371
370
|
.classBuilder()
|
|
372
371
|
.ep(commonParams)
|
|
373
372
|
.m(function (Command, cs, config, o) {
|
|
374
|
-
return [
|
|
373
|
+
return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
375
374
|
})
|
|
376
375
|
.s("AmazonSQS", "StartMessageMoveTask", {})
|
|
377
376
|
.n("SQSClient", "StartMessageMoveTaskCommand")
|
|
@@ -379,11 +378,11 @@ class StartMessageMoveTaskCommand extends smithyClient.Command
|
|
|
379
378
|
.build() {
|
|
380
379
|
}
|
|
381
380
|
|
|
382
|
-
class TagQueueCommand extends
|
|
381
|
+
class TagQueueCommand extends client.Command
|
|
383
382
|
.classBuilder()
|
|
384
383
|
.ep(commonParams)
|
|
385
384
|
.m(function (Command, cs, config, o) {
|
|
386
|
-
return [
|
|
385
|
+
return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
387
386
|
})
|
|
388
387
|
.s("AmazonSQS", "TagQueue", {})
|
|
389
388
|
.n("SQSClient", "TagQueueCommand")
|
|
@@ -391,11 +390,11 @@ class TagQueueCommand extends smithyClient.Command
|
|
|
391
390
|
.build() {
|
|
392
391
|
}
|
|
393
392
|
|
|
394
|
-
class UntagQueueCommand extends
|
|
393
|
+
class UntagQueueCommand extends client.Command
|
|
395
394
|
.classBuilder()
|
|
396
395
|
.ep(commonParams)
|
|
397
396
|
.m(function (Command, cs, config, o) {
|
|
398
|
-
return [
|
|
397
|
+
return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
399
398
|
})
|
|
400
399
|
.s("AmazonSQS", "UntagQueue", {})
|
|
401
400
|
.n("SQSClient", "UntagQueueCommand")
|
|
@@ -438,7 +437,7 @@ const paginators = {
|
|
|
438
437
|
};
|
|
439
438
|
class SQS extends SQSClient {
|
|
440
439
|
}
|
|
441
|
-
|
|
440
|
+
client.createAggregatedClient(commands, SQS, { paginators });
|
|
442
441
|
|
|
443
442
|
const QueueAttributeName = {
|
|
444
443
|
All: "All",
|
|
@@ -480,8 +479,8 @@ const MessageSystemAttributeNameForSends = {
|
|
|
480
479
|
AWSTraceHeader: "AWSTraceHeader",
|
|
481
480
|
};
|
|
482
481
|
|
|
483
|
-
exports.$Command =
|
|
484
|
-
exports.__Client =
|
|
482
|
+
exports.$Command = client.Command;
|
|
483
|
+
exports.__Client = client.Client;
|
|
485
484
|
exports.SQSServiceException = SQSServiceException.SQSServiceException;
|
|
486
485
|
exports.AddPermissionCommand = AddPermissionCommand;
|
|
487
486
|
exports.CancelMessageMoveTaskCommand = CancelMessageMoveTaskCommand;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.SQSServiceException = exports.__ServiceException = void 0;
|
|
4
|
-
const
|
|
5
|
-
Object.defineProperty(exports, "__ServiceException", { enumerable: true, get: function () { return
|
|
6
|
-
class SQSServiceException extends
|
|
4
|
+
const client_1 = require("@smithy/core/client");
|
|
5
|
+
Object.defineProperty(exports, "__ServiceException", { enumerable: true, get: function () { return client_1.ServiceException; } });
|
|
6
|
+
class SQSServiceException extends client_1.ServiceException {
|
|
7
7
|
constructor(options) {
|
|
8
8
|
super(options);
|
|
9
9
|
Object.setPrototypeOf(this, SQSServiceException.prototype);
|
|
@@ -5,36 +5,34 @@ const tslib_1 = require("tslib");
|
|
|
5
5
|
const package_json_1 = tslib_1.__importDefault(require("../package.json"));
|
|
6
6
|
const sha256_browser_1 = require("@aws-crypto/sha256-browser");
|
|
7
7
|
const util_user_agent_browser_1 = require("@aws-sdk/util-user-agent-browser");
|
|
8
|
-
const
|
|
8
|
+
const checksum_1 = require("@smithy/core/checksum");
|
|
9
|
+
const client_1 = require("@smithy/core/client");
|
|
10
|
+
const config_1 = require("@smithy/core/config");
|
|
11
|
+
const retry_1 = require("@smithy/core/retry");
|
|
12
|
+
const serde_1 = require("@smithy/core/serde");
|
|
9
13
|
const fetch_http_handler_1 = require("@smithy/fetch-http-handler");
|
|
10
|
-
const invalid_dependency_1 = require("@smithy/invalid-dependency");
|
|
11
|
-
const md5_js_1 = require("@smithy/md5-js");
|
|
12
|
-
const smithy_client_1 = require("@smithy/smithy-client");
|
|
13
|
-
const util_body_length_browser_1 = require("@smithy/util-body-length-browser");
|
|
14
|
-
const util_defaults_mode_browser_1 = require("@smithy/util-defaults-mode-browser");
|
|
15
|
-
const util_retry_1 = require("@smithy/util-retry");
|
|
16
14
|
const runtimeConfig_shared_1 = require("./runtimeConfig.shared");
|
|
17
15
|
const getRuntimeConfig = (config) => {
|
|
18
|
-
const defaultsMode = (0,
|
|
19
|
-
const defaultConfigProvider = () => defaultsMode().then(
|
|
16
|
+
const defaultsMode = (0, config_1.resolveDefaultsModeConfig)(config);
|
|
17
|
+
const defaultConfigProvider = () => defaultsMode().then(client_1.loadConfigsForDefaultMode);
|
|
20
18
|
const clientSharedValues = (0, runtimeConfig_shared_1.getRuntimeConfig)(config);
|
|
21
19
|
return {
|
|
22
20
|
...clientSharedValues,
|
|
23
21
|
...config,
|
|
24
22
|
runtime: "browser",
|
|
25
23
|
defaultsMode,
|
|
26
|
-
bodyLengthChecker: config?.bodyLengthChecker ??
|
|
24
|
+
bodyLengthChecker: config?.bodyLengthChecker ?? serde_1.calculateBodyLength,
|
|
27
25
|
credentialDefaultProvider: config?.credentialDefaultProvider ?? ((_) => () => Promise.reject(new Error("Credential is missing"))),
|
|
28
26
|
defaultUserAgentProvider: config?.defaultUserAgentProvider ?? (0, util_user_agent_browser_1.createDefaultUserAgentProvider)({ serviceId: clientSharedValues.serviceId, clientVersion: package_json_1.default.version }),
|
|
29
|
-
maxAttempts: config?.maxAttempts ??
|
|
30
|
-
md5: config?.md5 ??
|
|
31
|
-
region: config?.region ?? (0,
|
|
27
|
+
maxAttempts: config?.maxAttempts ?? retry_1.DEFAULT_MAX_ATTEMPTS,
|
|
28
|
+
md5: config?.md5 ?? checksum_1.Md5,
|
|
29
|
+
region: config?.region ?? (0, client_1.invalidProvider)("Region is missing"),
|
|
32
30
|
requestHandler: fetch_http_handler_1.FetchHttpHandler.create(config?.requestHandler ?? defaultConfigProvider),
|
|
33
|
-
retryMode: config?.retryMode ?? (async () => (await defaultConfigProvider()).retryMode ||
|
|
31
|
+
retryMode: config?.retryMode ?? (async () => (await defaultConfigProvider()).retryMode || retry_1.DEFAULT_RETRY_MODE),
|
|
34
32
|
sha256: config?.sha256 ?? sha256_browser_1.Sha256,
|
|
35
33
|
streamCollector: config?.streamCollector ?? fetch_http_handler_1.streamCollector,
|
|
36
|
-
useDualstackEndpoint: config?.useDualstackEndpoint ?? (() => Promise.resolve(
|
|
37
|
-
useFipsEndpoint: config?.useFipsEndpoint ?? (() => Promise.resolve(
|
|
34
|
+
useDualstackEndpoint: config?.useDualstackEndpoint ?? (() => Promise.resolve(config_1.DEFAULT_USE_DUALSTACK_ENDPOINT)),
|
|
35
|
+
useFipsEndpoint: config?.useFipsEndpoint ?? (() => Promise.resolve(config_1.DEFAULT_USE_FIPS_ENDPOINT)),
|
|
38
36
|
};
|
|
39
37
|
};
|
|
40
38
|
exports.getRuntimeConfig = getRuntimeConfig;
|
|
@@ -7,20 +7,16 @@ const client_1 = require("@aws-sdk/core/client");
|
|
|
7
7
|
const httpAuthSchemes_1 = require("@aws-sdk/core/httpAuthSchemes");
|
|
8
8
|
const credential_provider_node_1 = require("@aws-sdk/credential-provider-node");
|
|
9
9
|
const util_user_agent_node_1 = require("@aws-sdk/util-user-agent-node");
|
|
10
|
-
const
|
|
11
|
-
const
|
|
12
|
-
const
|
|
13
|
-
const
|
|
10
|
+
const client_2 = require("@smithy/core/client");
|
|
11
|
+
const config_1 = require("@smithy/core/config");
|
|
12
|
+
const retry_1 = require("@smithy/core/retry");
|
|
13
|
+
const serde_1 = require("@smithy/core/serde");
|
|
14
14
|
const node_http_handler_1 = require("@smithy/node-http-handler");
|
|
15
|
-
const smithy_client_1 = require("@smithy/smithy-client");
|
|
16
|
-
const util_body_length_node_1 = require("@smithy/util-body-length-node");
|
|
17
|
-
const util_defaults_mode_node_1 = require("@smithy/util-defaults-mode-node");
|
|
18
|
-
const util_retry_1 = require("@smithy/util-retry");
|
|
19
15
|
const runtimeConfig_shared_1 = require("./runtimeConfig.shared");
|
|
20
16
|
const getRuntimeConfig = (config) => {
|
|
21
|
-
(0,
|
|
22
|
-
const defaultsMode = (0,
|
|
23
|
-
const defaultConfigProvider = () => defaultsMode().then(
|
|
17
|
+
(0, client_2.emitWarningIfUnsupportedVersion)(process.version);
|
|
18
|
+
const defaultsMode = (0, config_1.resolveDefaultsModeConfig)(config);
|
|
19
|
+
const defaultConfigProvider = () => defaultsMode().then(client_2.loadConfigsForDefaultMode);
|
|
24
20
|
const clientSharedValues = (0, runtimeConfig_shared_1.getRuntimeConfig)(config);
|
|
25
21
|
(0, client_1.emitWarningIfUnsupportedVersion)(process.version);
|
|
26
22
|
const loaderConfig = {
|
|
@@ -32,24 +28,24 @@ const getRuntimeConfig = (config) => {
|
|
|
32
28
|
...config,
|
|
33
29
|
runtime: "node",
|
|
34
30
|
defaultsMode,
|
|
35
|
-
authSchemePreference: config?.authSchemePreference ?? (0,
|
|
36
|
-
bodyLengthChecker: config?.bodyLengthChecker ??
|
|
31
|
+
authSchemePreference: config?.authSchemePreference ?? (0, config_1.loadConfig)(httpAuthSchemes_1.NODE_AUTH_SCHEME_PREFERENCE_OPTIONS, loaderConfig),
|
|
32
|
+
bodyLengthChecker: config?.bodyLengthChecker ?? serde_1.calculateBodyLength,
|
|
37
33
|
credentialDefaultProvider: config?.credentialDefaultProvider ?? credential_provider_node_1.defaultProvider,
|
|
38
34
|
defaultUserAgentProvider: config?.defaultUserAgentProvider ?? (0, util_user_agent_node_1.createDefaultUserAgentProvider)({ serviceId: clientSharedValues.serviceId, clientVersion: package_json_1.default.version }),
|
|
39
|
-
maxAttempts: config?.maxAttempts ?? (0,
|
|
40
|
-
md5: config?.md5 ??
|
|
41
|
-
region: config?.region ?? (0,
|
|
35
|
+
maxAttempts: config?.maxAttempts ?? (0, config_1.loadConfig)(retry_1.NODE_MAX_ATTEMPT_CONFIG_OPTIONS, config),
|
|
36
|
+
md5: config?.md5 ?? serde_1.Hash.bind(null, "md5"),
|
|
37
|
+
region: config?.region ?? (0, config_1.loadConfig)(config_1.NODE_REGION_CONFIG_OPTIONS, { ...config_1.NODE_REGION_CONFIG_FILE_OPTIONS, ...loaderConfig }),
|
|
42
38
|
requestHandler: node_http_handler_1.NodeHttpHandler.create(config?.requestHandler ?? defaultConfigProvider),
|
|
43
39
|
retryMode: config?.retryMode ??
|
|
44
|
-
(0,
|
|
45
|
-
...
|
|
46
|
-
default: async () => (await defaultConfigProvider()).retryMode ||
|
|
40
|
+
(0, config_1.loadConfig)({
|
|
41
|
+
...retry_1.NODE_RETRY_MODE_CONFIG_OPTIONS,
|
|
42
|
+
default: async () => (await defaultConfigProvider()).retryMode || retry_1.DEFAULT_RETRY_MODE,
|
|
47
43
|
}, config),
|
|
48
|
-
sha256: config?.sha256 ??
|
|
44
|
+
sha256: config?.sha256 ?? serde_1.Hash.bind(null, "sha256"),
|
|
49
45
|
streamCollector: config?.streamCollector ?? node_http_handler_1.streamCollector,
|
|
50
|
-
useDualstackEndpoint: config?.useDualstackEndpoint ?? (0,
|
|
51
|
-
useFipsEndpoint: config?.useFipsEndpoint ?? (0,
|
|
52
|
-
userAgentAppId: config?.userAgentAppId ?? (0,
|
|
46
|
+
useDualstackEndpoint: config?.useDualstackEndpoint ?? (0, config_1.loadConfig)(config_1.NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, loaderConfig),
|
|
47
|
+
useFipsEndpoint: config?.useFipsEndpoint ?? (0, config_1.loadConfig)(config_1.NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, loaderConfig),
|
|
48
|
+
userAgentAppId: config?.userAgentAppId ?? (0, config_1.loadConfig)(util_user_agent_node_1.NODE_APP_ID_CONFIG_OPTIONS, loaderConfig),
|
|
53
49
|
};
|
|
54
50
|
};
|
|
55
51
|
exports.getRuntimeConfig = getRuntimeConfig;
|
|
@@ -3,18 +3,17 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.getRuntimeConfig = void 0;
|
|
4
4
|
const httpAuthSchemes_1 = require("@aws-sdk/core/httpAuthSchemes");
|
|
5
5
|
const protocols_1 = require("@aws-sdk/core/protocols");
|
|
6
|
-
const
|
|
7
|
-
const
|
|
8
|
-
const
|
|
9
|
-
const util_utf8_1 = require("@smithy/util-utf8");
|
|
6
|
+
const client_1 = require("@smithy/core/client");
|
|
7
|
+
const protocols_2 = require("@smithy/core/protocols");
|
|
8
|
+
const serde_1 = require("@smithy/core/serde");
|
|
10
9
|
const httpAuthSchemeProvider_1 = require("./auth/httpAuthSchemeProvider");
|
|
11
10
|
const endpointResolver_1 = require("./endpoint/endpointResolver");
|
|
12
11
|
const schemas_0_1 = require("./schemas/schemas_0");
|
|
13
12
|
const getRuntimeConfig = (config) => {
|
|
14
13
|
return {
|
|
15
14
|
apiVersion: "2012-11-05",
|
|
16
|
-
base64Decoder: config?.base64Decoder ??
|
|
17
|
-
base64Encoder: config?.base64Encoder ??
|
|
15
|
+
base64Decoder: config?.base64Decoder ?? serde_1.fromBase64,
|
|
16
|
+
base64Encoder: config?.base64Encoder ?? serde_1.toBase64,
|
|
18
17
|
disableHostPrefix: config?.disableHostPrefix ?? false,
|
|
19
18
|
endpointProvider: config?.endpointProvider ?? endpointResolver_1.defaultEndpointResolver,
|
|
20
19
|
extensions: config?.extensions ?? [],
|
|
@@ -26,7 +25,7 @@ const getRuntimeConfig = (config) => {
|
|
|
26
25
|
signer: new httpAuthSchemes_1.AwsSdkSigV4Signer(),
|
|
27
26
|
},
|
|
28
27
|
],
|
|
29
|
-
logger: config?.logger ?? new
|
|
28
|
+
logger: config?.logger ?? new client_1.NoOpLogger(),
|
|
30
29
|
protocol: config?.protocol ?? protocols_1.AwsJson1_0Protocol,
|
|
31
30
|
protocolSettings: config?.protocolSettings ?? {
|
|
32
31
|
defaultNamespace: "com.amazonaws.sqs",
|
|
@@ -36,9 +35,9 @@ const getRuntimeConfig = (config) => {
|
|
|
36
35
|
awsQueryCompatible: true,
|
|
37
36
|
},
|
|
38
37
|
serviceId: config?.serviceId ?? "SQS",
|
|
39
|
-
urlParser: config?.urlParser ??
|
|
40
|
-
utf8Decoder: config?.utf8Decoder ??
|
|
41
|
-
utf8Encoder: config?.utf8Encoder ??
|
|
38
|
+
urlParser: config?.urlParser ?? protocols_2.parseUrl,
|
|
39
|
+
utf8Decoder: config?.utf8Decoder ?? serde_1.fromUtf8,
|
|
40
|
+
utf8Encoder: config?.utf8Encoder ?? serde_1.toUtf8,
|
|
42
41
|
};
|
|
43
42
|
};
|
|
44
43
|
exports.getRuntimeConfig = getRuntimeConfig;
|