@aws-sdk/client-sqs 3.183.0 → 3.185.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.
Files changed (35) hide show
  1. package/CHANGELOG.md +11 -0
  2. package/dist-cjs/protocols/Aws_query.js +2 -2
  3. package/dist-es/SQS.js +89 -82
  4. package/dist-es/SQSClient.js +28 -22
  5. package/dist-es/commands/AddPermissionCommand.js +29 -22
  6. package/dist-es/commands/ChangeMessageVisibilityBatchCommand.js +28 -21
  7. package/dist-es/commands/ChangeMessageVisibilityCommand.js +29 -22
  8. package/dist-es/commands/CreateQueueCommand.js +28 -21
  9. package/dist-es/commands/DeleteMessageBatchCommand.js +28 -21
  10. package/dist-es/commands/DeleteMessageCommand.js +29 -22
  11. package/dist-es/commands/DeleteQueueCommand.js +29 -22
  12. package/dist-es/commands/GetQueueAttributesCommand.js +28 -21
  13. package/dist-es/commands/GetQueueUrlCommand.js +28 -21
  14. package/dist-es/commands/ListDeadLetterSourceQueuesCommand.js +28 -21
  15. package/dist-es/commands/ListQueueTagsCommand.js +28 -21
  16. package/dist-es/commands/ListQueuesCommand.js +28 -21
  17. package/dist-es/commands/PurgeQueueCommand.js +29 -22
  18. package/dist-es/commands/ReceiveMessageCommand.js +28 -21
  19. package/dist-es/commands/RemovePermissionCommand.js +29 -22
  20. package/dist-es/commands/SendMessageBatchCommand.js +28 -21
  21. package/dist-es/commands/SendMessageCommand.js +28 -21
  22. package/dist-es/commands/SetQueueAttributesCommand.js +29 -22
  23. package/dist-es/commands/TagQueueCommand.js +29 -22
  24. package/dist-es/commands/UntagQueueCommand.js +29 -22
  25. package/dist-es/endpoints.js +8 -8
  26. package/dist-es/models/SQSServiceException.js +10 -5
  27. package/dist-es/models/models_0.js +234 -315
  28. package/dist-es/pagination/ListDeadLetterSourceQueuesPaginator.js +68 -25
  29. package/dist-es/pagination/ListQueuesPaginator.js +68 -25
  30. package/dist-es/protocols/Aws_query.js +1910 -1414
  31. package/dist-es/runtimeConfig.browser.js +12 -27
  32. package/dist-es/runtimeConfig.js +12 -31
  33. package/dist-es/runtimeConfig.native.js +5 -8
  34. package/dist-es/runtimeConfig.shared.js +11 -8
  35. package/package.json +5 -5
package/CHANGELOG.md CHANGED
@@ -3,6 +3,17 @@
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.185.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.184.0...v3.185.0) (2022-10-05)
7
+
8
+
9
+ ### Bug Fixes
10
+
11
+ * **codegen:** add deser check for x-amz-request-id ([#4015](https://github.com/aws/aws-sdk-js-v3/issues/4015)) ([6ff07bd](https://github.com/aws/aws-sdk-js-v3/commit/6ff07bd7e72bd56725f318013ac1d6d0fbbcdd9a))
12
+
13
+
14
+
15
+
16
+
6
17
  # [3.183.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.182.0...v3.183.0) (2022-10-03)
7
18
 
8
19
  **Note:** Version bump only for package @aws-sdk/client-sqs
@@ -2139,10 +2139,10 @@ const deserializeAws_queryUnsupportedOperation = (output, context) => {
2139
2139
  return contents;
2140
2140
  };
2141
2141
  const deserializeMetadata = (output) => {
2142
- var _a;
2142
+ var _a, _b;
2143
2143
  return ({
2144
2144
  httpStatusCode: output.statusCode,
2145
- requestId: (_a = output.headers["x-amzn-requestid"]) !== null && _a !== void 0 ? _a : output.headers["x-amzn-request-id"],
2145
+ requestId: (_b = (_a = output.headers["x-amzn-requestid"]) !== null && _a !== void 0 ? _a : output.headers["x-amzn-request-id"]) !== null && _b !== void 0 ? _b : output.headers["x-amz-request-id"],
2146
2146
  extendedRequestId: output.headers["x-amz-id-2"],
2147
2147
  cfId: output.headers["x-amz-cf-id"],
2148
2148
  });
package/dist-es/SQS.js CHANGED
@@ -1,3 +1,4 @@
1
+ import { __extends } from "tslib";
1
2
  import { AddPermissionCommand, } from "./commands/AddPermissionCommand";
2
3
  import { ChangeMessageVisibilityBatchCommand, } from "./commands/ChangeMessageVisibilityBatchCommand";
3
4
  import { ChangeMessageVisibilityCommand, } from "./commands/ChangeMessageVisibilityCommand";
@@ -19,285 +20,291 @@ import { SetQueueAttributesCommand, } from "./commands/SetQueueAttributesCommand
19
20
  import { TagQueueCommand } from "./commands/TagQueueCommand";
20
21
  import { UntagQueueCommand } from "./commands/UntagQueueCommand";
21
22
  import { SQSClient } from "./SQSClient";
22
- export class SQS extends SQSClient {
23
- addPermission(args, optionsOrCb, cb) {
24
- const command = new AddPermissionCommand(args);
23
+ var SQS = (function (_super) {
24
+ __extends(SQS, _super);
25
+ function SQS() {
26
+ return _super !== null && _super.apply(this, arguments) || this;
27
+ }
28
+ SQS.prototype.addPermission = function (args, optionsOrCb, cb) {
29
+ var command = new AddPermissionCommand(args);
25
30
  if (typeof optionsOrCb === "function") {
26
31
  this.send(command, optionsOrCb);
27
32
  }
28
33
  else if (typeof cb === "function") {
29
34
  if (typeof optionsOrCb !== "object")
30
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
35
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
31
36
  this.send(command, optionsOrCb || {}, cb);
32
37
  }
33
38
  else {
34
39
  return this.send(command, optionsOrCb);
35
40
  }
36
- }
37
- changeMessageVisibility(args, optionsOrCb, cb) {
38
- const command = new ChangeMessageVisibilityCommand(args);
41
+ };
42
+ SQS.prototype.changeMessageVisibility = function (args, optionsOrCb, cb) {
43
+ var command = new ChangeMessageVisibilityCommand(args);
39
44
  if (typeof optionsOrCb === "function") {
40
45
  this.send(command, optionsOrCb);
41
46
  }
42
47
  else if (typeof cb === "function") {
43
48
  if (typeof optionsOrCb !== "object")
44
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
49
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
45
50
  this.send(command, optionsOrCb || {}, cb);
46
51
  }
47
52
  else {
48
53
  return this.send(command, optionsOrCb);
49
54
  }
50
- }
51
- changeMessageVisibilityBatch(args, optionsOrCb, cb) {
52
- const command = new ChangeMessageVisibilityBatchCommand(args);
55
+ };
56
+ SQS.prototype.changeMessageVisibilityBatch = function (args, optionsOrCb, cb) {
57
+ var command = new ChangeMessageVisibilityBatchCommand(args);
53
58
  if (typeof optionsOrCb === "function") {
54
59
  this.send(command, optionsOrCb);
55
60
  }
56
61
  else if (typeof cb === "function") {
57
62
  if (typeof optionsOrCb !== "object")
58
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
63
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
59
64
  this.send(command, optionsOrCb || {}, cb);
60
65
  }
61
66
  else {
62
67
  return this.send(command, optionsOrCb);
63
68
  }
64
- }
65
- createQueue(args, optionsOrCb, cb) {
66
- const command = new CreateQueueCommand(args);
69
+ };
70
+ SQS.prototype.createQueue = function (args, optionsOrCb, cb) {
71
+ var command = new CreateQueueCommand(args);
67
72
  if (typeof optionsOrCb === "function") {
68
73
  this.send(command, optionsOrCb);
69
74
  }
70
75
  else if (typeof cb === "function") {
71
76
  if (typeof optionsOrCb !== "object")
72
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
77
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
73
78
  this.send(command, optionsOrCb || {}, cb);
74
79
  }
75
80
  else {
76
81
  return this.send(command, optionsOrCb);
77
82
  }
78
- }
79
- deleteMessage(args, optionsOrCb, cb) {
80
- const command = new DeleteMessageCommand(args);
83
+ };
84
+ SQS.prototype.deleteMessage = function (args, optionsOrCb, cb) {
85
+ var command = new DeleteMessageCommand(args);
81
86
  if (typeof optionsOrCb === "function") {
82
87
  this.send(command, optionsOrCb);
83
88
  }
84
89
  else if (typeof cb === "function") {
85
90
  if (typeof optionsOrCb !== "object")
86
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
91
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
87
92
  this.send(command, optionsOrCb || {}, cb);
88
93
  }
89
94
  else {
90
95
  return this.send(command, optionsOrCb);
91
96
  }
92
- }
93
- deleteMessageBatch(args, optionsOrCb, cb) {
94
- const command = new DeleteMessageBatchCommand(args);
97
+ };
98
+ SQS.prototype.deleteMessageBatch = function (args, optionsOrCb, cb) {
99
+ var command = new DeleteMessageBatchCommand(args);
95
100
  if (typeof optionsOrCb === "function") {
96
101
  this.send(command, optionsOrCb);
97
102
  }
98
103
  else if (typeof cb === "function") {
99
104
  if (typeof optionsOrCb !== "object")
100
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
105
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
101
106
  this.send(command, optionsOrCb || {}, cb);
102
107
  }
103
108
  else {
104
109
  return this.send(command, optionsOrCb);
105
110
  }
106
- }
107
- deleteQueue(args, optionsOrCb, cb) {
108
- const command = new DeleteQueueCommand(args);
111
+ };
112
+ SQS.prototype.deleteQueue = function (args, optionsOrCb, cb) {
113
+ var command = new DeleteQueueCommand(args);
109
114
  if (typeof optionsOrCb === "function") {
110
115
  this.send(command, optionsOrCb);
111
116
  }
112
117
  else if (typeof cb === "function") {
113
118
  if (typeof optionsOrCb !== "object")
114
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
119
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
115
120
  this.send(command, optionsOrCb || {}, cb);
116
121
  }
117
122
  else {
118
123
  return this.send(command, optionsOrCb);
119
124
  }
120
- }
121
- getQueueAttributes(args, optionsOrCb, cb) {
122
- const command = new GetQueueAttributesCommand(args);
125
+ };
126
+ SQS.prototype.getQueueAttributes = function (args, optionsOrCb, cb) {
127
+ var command = new GetQueueAttributesCommand(args);
123
128
  if (typeof optionsOrCb === "function") {
124
129
  this.send(command, optionsOrCb);
125
130
  }
126
131
  else if (typeof cb === "function") {
127
132
  if (typeof optionsOrCb !== "object")
128
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
133
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
129
134
  this.send(command, optionsOrCb || {}, cb);
130
135
  }
131
136
  else {
132
137
  return this.send(command, optionsOrCb);
133
138
  }
134
- }
135
- getQueueUrl(args, optionsOrCb, cb) {
136
- const command = new GetQueueUrlCommand(args);
139
+ };
140
+ SQS.prototype.getQueueUrl = function (args, optionsOrCb, cb) {
141
+ var command = new GetQueueUrlCommand(args);
137
142
  if (typeof optionsOrCb === "function") {
138
143
  this.send(command, optionsOrCb);
139
144
  }
140
145
  else if (typeof cb === "function") {
141
146
  if (typeof optionsOrCb !== "object")
142
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
147
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
143
148
  this.send(command, optionsOrCb || {}, cb);
144
149
  }
145
150
  else {
146
151
  return this.send(command, optionsOrCb);
147
152
  }
148
- }
149
- listDeadLetterSourceQueues(args, optionsOrCb, cb) {
150
- const command = new ListDeadLetterSourceQueuesCommand(args);
153
+ };
154
+ SQS.prototype.listDeadLetterSourceQueues = function (args, optionsOrCb, cb) {
155
+ var command = new ListDeadLetterSourceQueuesCommand(args);
151
156
  if (typeof optionsOrCb === "function") {
152
157
  this.send(command, optionsOrCb);
153
158
  }
154
159
  else if (typeof cb === "function") {
155
160
  if (typeof optionsOrCb !== "object")
156
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
161
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
157
162
  this.send(command, optionsOrCb || {}, cb);
158
163
  }
159
164
  else {
160
165
  return this.send(command, optionsOrCb);
161
166
  }
162
- }
163
- listQueues(args, optionsOrCb, cb) {
164
- const command = new ListQueuesCommand(args);
167
+ };
168
+ SQS.prototype.listQueues = function (args, optionsOrCb, cb) {
169
+ var command = new ListQueuesCommand(args);
165
170
  if (typeof optionsOrCb === "function") {
166
171
  this.send(command, optionsOrCb);
167
172
  }
168
173
  else if (typeof cb === "function") {
169
174
  if (typeof optionsOrCb !== "object")
170
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
175
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
171
176
  this.send(command, optionsOrCb || {}, cb);
172
177
  }
173
178
  else {
174
179
  return this.send(command, optionsOrCb);
175
180
  }
176
- }
177
- listQueueTags(args, optionsOrCb, cb) {
178
- const command = new ListQueueTagsCommand(args);
181
+ };
182
+ SQS.prototype.listQueueTags = function (args, optionsOrCb, cb) {
183
+ var command = new ListQueueTagsCommand(args);
179
184
  if (typeof optionsOrCb === "function") {
180
185
  this.send(command, optionsOrCb);
181
186
  }
182
187
  else if (typeof cb === "function") {
183
188
  if (typeof optionsOrCb !== "object")
184
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
189
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
185
190
  this.send(command, optionsOrCb || {}, cb);
186
191
  }
187
192
  else {
188
193
  return this.send(command, optionsOrCb);
189
194
  }
190
- }
191
- purgeQueue(args, optionsOrCb, cb) {
192
- const command = new PurgeQueueCommand(args);
195
+ };
196
+ SQS.prototype.purgeQueue = function (args, optionsOrCb, cb) {
197
+ var command = new PurgeQueueCommand(args);
193
198
  if (typeof optionsOrCb === "function") {
194
199
  this.send(command, optionsOrCb);
195
200
  }
196
201
  else if (typeof cb === "function") {
197
202
  if (typeof optionsOrCb !== "object")
198
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
203
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
199
204
  this.send(command, optionsOrCb || {}, cb);
200
205
  }
201
206
  else {
202
207
  return this.send(command, optionsOrCb);
203
208
  }
204
- }
205
- receiveMessage(args, optionsOrCb, cb) {
206
- const command = new ReceiveMessageCommand(args);
209
+ };
210
+ SQS.prototype.receiveMessage = function (args, optionsOrCb, cb) {
211
+ var command = new ReceiveMessageCommand(args);
207
212
  if (typeof optionsOrCb === "function") {
208
213
  this.send(command, optionsOrCb);
209
214
  }
210
215
  else if (typeof cb === "function") {
211
216
  if (typeof optionsOrCb !== "object")
212
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
217
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
213
218
  this.send(command, optionsOrCb || {}, cb);
214
219
  }
215
220
  else {
216
221
  return this.send(command, optionsOrCb);
217
222
  }
218
- }
219
- removePermission(args, optionsOrCb, cb) {
220
- const command = new RemovePermissionCommand(args);
223
+ };
224
+ SQS.prototype.removePermission = function (args, optionsOrCb, cb) {
225
+ var command = new RemovePermissionCommand(args);
221
226
  if (typeof optionsOrCb === "function") {
222
227
  this.send(command, optionsOrCb);
223
228
  }
224
229
  else if (typeof cb === "function") {
225
230
  if (typeof optionsOrCb !== "object")
226
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
231
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
227
232
  this.send(command, optionsOrCb || {}, cb);
228
233
  }
229
234
  else {
230
235
  return this.send(command, optionsOrCb);
231
236
  }
232
- }
233
- sendMessage(args, optionsOrCb, cb) {
234
- const command = new SendMessageCommand(args);
237
+ };
238
+ SQS.prototype.sendMessage = function (args, optionsOrCb, cb) {
239
+ var command = new SendMessageCommand(args);
235
240
  if (typeof optionsOrCb === "function") {
236
241
  this.send(command, optionsOrCb);
237
242
  }
238
243
  else if (typeof cb === "function") {
239
244
  if (typeof optionsOrCb !== "object")
240
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
245
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
241
246
  this.send(command, optionsOrCb || {}, cb);
242
247
  }
243
248
  else {
244
249
  return this.send(command, optionsOrCb);
245
250
  }
246
- }
247
- sendMessageBatch(args, optionsOrCb, cb) {
248
- const command = new SendMessageBatchCommand(args);
251
+ };
252
+ SQS.prototype.sendMessageBatch = function (args, optionsOrCb, cb) {
253
+ var command = new SendMessageBatchCommand(args);
249
254
  if (typeof optionsOrCb === "function") {
250
255
  this.send(command, optionsOrCb);
251
256
  }
252
257
  else if (typeof cb === "function") {
253
258
  if (typeof optionsOrCb !== "object")
254
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
259
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
255
260
  this.send(command, optionsOrCb || {}, cb);
256
261
  }
257
262
  else {
258
263
  return this.send(command, optionsOrCb);
259
264
  }
260
- }
261
- setQueueAttributes(args, optionsOrCb, cb) {
262
- const command = new SetQueueAttributesCommand(args);
265
+ };
266
+ SQS.prototype.setQueueAttributes = function (args, optionsOrCb, cb) {
267
+ var command = new SetQueueAttributesCommand(args);
263
268
  if (typeof optionsOrCb === "function") {
264
269
  this.send(command, optionsOrCb);
265
270
  }
266
271
  else if (typeof cb === "function") {
267
272
  if (typeof optionsOrCb !== "object")
268
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
273
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
269
274
  this.send(command, optionsOrCb || {}, cb);
270
275
  }
271
276
  else {
272
277
  return this.send(command, optionsOrCb);
273
278
  }
274
- }
275
- tagQueue(args, optionsOrCb, cb) {
276
- const command = new TagQueueCommand(args);
279
+ };
280
+ SQS.prototype.tagQueue = function (args, optionsOrCb, cb) {
281
+ var command = new TagQueueCommand(args);
277
282
  if (typeof optionsOrCb === "function") {
278
283
  this.send(command, optionsOrCb);
279
284
  }
280
285
  else if (typeof cb === "function") {
281
286
  if (typeof optionsOrCb !== "object")
282
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
287
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
283
288
  this.send(command, optionsOrCb || {}, cb);
284
289
  }
285
290
  else {
286
291
  return this.send(command, optionsOrCb);
287
292
  }
288
- }
289
- untagQueue(args, optionsOrCb, cb) {
290
- const command = new UntagQueueCommand(args);
293
+ };
294
+ SQS.prototype.untagQueue = function (args, optionsOrCb, cb) {
295
+ var command = new UntagQueueCommand(args);
291
296
  if (typeof optionsOrCb === "function") {
292
297
  this.send(command, optionsOrCb);
293
298
  }
294
299
  else if (typeof cb === "function") {
295
300
  if (typeof optionsOrCb !== "object")
296
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
301
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
297
302
  this.send(command, optionsOrCb || {}, cb);
298
303
  }
299
304
  else {
300
305
  return this.send(command, optionsOrCb);
301
306
  }
302
- }
303
- }
307
+ };
308
+ return SQS;
309
+ }(SQSClient));
310
+ export { SQS };
@@ -1,3 +1,4 @@
1
+ import { __extends } from "tslib";
1
2
  import { resolveEndpointsConfig, resolveRegionConfig, } from "@aws-sdk/config-resolver";
2
3
  import { getContentLengthPlugin } from "@aws-sdk/middleware-content-length";
3
4
  import { getHostHeaderPlugin, resolveHostHeaderConfig, } from "@aws-sdk/middleware-host-header";
@@ -8,26 +9,31 @@ import { getAwsAuthPlugin, resolveAwsAuthConfig, } from "@aws-sdk/middleware-sig
8
9
  import { getUserAgentPlugin, resolveUserAgentConfig, } from "@aws-sdk/middleware-user-agent";
9
10
  import { Client as __Client, } from "@aws-sdk/smithy-client";
10
11
  import { getRuntimeConfig as __getRuntimeConfig } from "./runtimeConfig";
11
- export class SQSClient extends __Client {
12
- constructor(configuration) {
13
- const _config_0 = __getRuntimeConfig(configuration);
14
- const _config_1 = resolveRegionConfig(_config_0);
15
- const _config_2 = resolveEndpointsConfig(_config_1);
16
- const _config_3 = resolveRetryConfig(_config_2);
17
- const _config_4 = resolveHostHeaderConfig(_config_3);
18
- const _config_5 = resolveAwsAuthConfig(_config_4);
19
- const _config_6 = resolveUserAgentConfig(_config_5);
20
- super(_config_6);
21
- this.config = _config_6;
22
- this.middlewareStack.use(getRetryPlugin(this.config));
23
- this.middlewareStack.use(getContentLengthPlugin(this.config));
24
- this.middlewareStack.use(getHostHeaderPlugin(this.config));
25
- this.middlewareStack.use(getLoggerPlugin(this.config));
26
- this.middlewareStack.use(getRecursionDetectionPlugin(this.config));
27
- this.middlewareStack.use(getAwsAuthPlugin(this.config));
28
- this.middlewareStack.use(getUserAgentPlugin(this.config));
12
+ var SQSClient = (function (_super) {
13
+ __extends(SQSClient, _super);
14
+ function SQSClient(configuration) {
15
+ var _this = this;
16
+ var _config_0 = __getRuntimeConfig(configuration);
17
+ var _config_1 = resolveRegionConfig(_config_0);
18
+ var _config_2 = resolveEndpointsConfig(_config_1);
19
+ var _config_3 = resolveRetryConfig(_config_2);
20
+ var _config_4 = resolveHostHeaderConfig(_config_3);
21
+ var _config_5 = resolveAwsAuthConfig(_config_4);
22
+ var _config_6 = resolveUserAgentConfig(_config_5);
23
+ _this = _super.call(this, _config_6) || this;
24
+ _this.config = _config_6;
25
+ _this.middlewareStack.use(getRetryPlugin(_this.config));
26
+ _this.middlewareStack.use(getContentLengthPlugin(_this.config));
27
+ _this.middlewareStack.use(getHostHeaderPlugin(_this.config));
28
+ _this.middlewareStack.use(getLoggerPlugin(_this.config));
29
+ _this.middlewareStack.use(getRecursionDetectionPlugin(_this.config));
30
+ _this.middlewareStack.use(getAwsAuthPlugin(_this.config));
31
+ _this.middlewareStack.use(getUserAgentPlugin(_this.config));
32
+ return _this;
29
33
  }
30
- destroy() {
31
- super.destroy();
32
- }
33
- }
34
+ SQSClient.prototype.destroy = function () {
35
+ _super.prototype.destroy.call(this);
36
+ };
37
+ return SQSClient;
38
+ }(__Client));
39
+ export { SQSClient };
@@ -1,32 +1,39 @@
1
+ import { __extends } from "tslib";
1
2
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
2
3
  import { Command as $Command } from "@aws-sdk/smithy-client";
3
4
  import { AddPermissionRequestFilterSensitiveLog } from "../models/models_0";
4
5
  import { deserializeAws_queryAddPermissionCommand, serializeAws_queryAddPermissionCommand, } from "../protocols/Aws_query";
5
- export class AddPermissionCommand extends $Command {
6
- constructor(input) {
7
- super();
8
- this.input = input;
6
+ var AddPermissionCommand = (function (_super) {
7
+ __extends(AddPermissionCommand, _super);
8
+ function AddPermissionCommand(input) {
9
+ var _this = _super.call(this) || this;
10
+ _this.input = input;
11
+ return _this;
9
12
  }
10
- resolveMiddleware(clientStack, configuration, options) {
13
+ AddPermissionCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
11
14
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
12
- const stack = clientStack.concat(this.middlewareStack);
13
- const { logger } = configuration;
14
- const clientName = "SQSClient";
15
- const commandName = "AddPermissionCommand";
16
- const handlerExecutionContext = {
17
- logger,
18
- clientName,
19
- commandName,
15
+ var stack = clientStack.concat(this.middlewareStack);
16
+ var logger = configuration.logger;
17
+ var clientName = "SQSClient";
18
+ var commandName = "AddPermissionCommand";
19
+ var handlerExecutionContext = {
20
+ logger: logger,
21
+ clientName: clientName,
22
+ commandName: commandName,
20
23
  inputFilterSensitiveLog: AddPermissionRequestFilterSensitiveLog,
21
- outputFilterSensitiveLog: (output) => output,
24
+ outputFilterSensitiveLog: function (output) { return output; },
22
25
  };
23
- const { requestHandler } = configuration;
24
- return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
25
- }
26
- serialize(input, context) {
26
+ var requestHandler = configuration.requestHandler;
27
+ return stack.resolve(function (request) {
28
+ return requestHandler.handle(request.request, options || {});
29
+ }, handlerExecutionContext);
30
+ };
31
+ AddPermissionCommand.prototype.serialize = function (input, context) {
27
32
  return serializeAws_queryAddPermissionCommand(input, context);
28
- }
29
- deserialize(output, context) {
33
+ };
34
+ AddPermissionCommand.prototype.deserialize = function (output, context) {
30
35
  return deserializeAws_queryAddPermissionCommand(output, context);
31
- }
32
- }
36
+ };
37
+ return AddPermissionCommand;
38
+ }($Command));
39
+ export { AddPermissionCommand };
@@ -1,32 +1,39 @@
1
+ import { __extends } from "tslib";
1
2
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
2
3
  import { Command as $Command } from "@aws-sdk/smithy-client";
3
4
  import { ChangeMessageVisibilityBatchRequestFilterSensitiveLog, ChangeMessageVisibilityBatchResultFilterSensitiveLog, } from "../models/models_0";
4
5
  import { deserializeAws_queryChangeMessageVisibilityBatchCommand, serializeAws_queryChangeMessageVisibilityBatchCommand, } from "../protocols/Aws_query";
5
- export class ChangeMessageVisibilityBatchCommand extends $Command {
6
- constructor(input) {
7
- super();
8
- this.input = input;
6
+ var ChangeMessageVisibilityBatchCommand = (function (_super) {
7
+ __extends(ChangeMessageVisibilityBatchCommand, _super);
8
+ function ChangeMessageVisibilityBatchCommand(input) {
9
+ var _this = _super.call(this) || this;
10
+ _this.input = input;
11
+ return _this;
9
12
  }
10
- resolveMiddleware(clientStack, configuration, options) {
13
+ ChangeMessageVisibilityBatchCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
11
14
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
12
- const stack = clientStack.concat(this.middlewareStack);
13
- const { logger } = configuration;
14
- const clientName = "SQSClient";
15
- const commandName = "ChangeMessageVisibilityBatchCommand";
16
- const handlerExecutionContext = {
17
- logger,
18
- clientName,
19
- commandName,
15
+ var stack = clientStack.concat(this.middlewareStack);
16
+ var logger = configuration.logger;
17
+ var clientName = "SQSClient";
18
+ var commandName = "ChangeMessageVisibilityBatchCommand";
19
+ var handlerExecutionContext = {
20
+ logger: logger,
21
+ clientName: clientName,
22
+ commandName: commandName,
20
23
  inputFilterSensitiveLog: ChangeMessageVisibilityBatchRequestFilterSensitiveLog,
21
24
  outputFilterSensitiveLog: ChangeMessageVisibilityBatchResultFilterSensitiveLog,
22
25
  };
23
- const { requestHandler } = configuration;
24
- return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
25
- }
26
- serialize(input, context) {
26
+ var requestHandler = configuration.requestHandler;
27
+ return stack.resolve(function (request) {
28
+ return requestHandler.handle(request.request, options || {});
29
+ }, handlerExecutionContext);
30
+ };
31
+ ChangeMessageVisibilityBatchCommand.prototype.serialize = function (input, context) {
27
32
  return serializeAws_queryChangeMessageVisibilityBatchCommand(input, context);
28
- }
29
- deserialize(output, context) {
33
+ };
34
+ ChangeMessageVisibilityBatchCommand.prototype.deserialize = function (output, context) {
30
35
  return deserializeAws_queryChangeMessageVisibilityBatchCommand(output, context);
31
- }
32
- }
36
+ };
37
+ return ChangeMessageVisibilityBatchCommand;
38
+ }($Command));
39
+ export { ChangeMessageVisibilityBatchCommand };