@aws-sdk/client-sqs 3.327.0 → 3.328.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 (74) hide show
  1. package/README.md +6 -10
  2. package/dist-cjs/commands/AddPermissionCommand.js +3 -3
  3. package/dist-cjs/commands/ChangeMessageVisibilityBatchCommand.js +3 -3
  4. package/dist-cjs/commands/ChangeMessageVisibilityCommand.js +3 -3
  5. package/dist-cjs/commands/CreateQueueCommand.js +3 -3
  6. package/dist-cjs/commands/DeleteMessageBatchCommand.js +3 -3
  7. package/dist-cjs/commands/DeleteMessageCommand.js +3 -3
  8. package/dist-cjs/commands/DeleteQueueCommand.js +3 -3
  9. package/dist-cjs/commands/GetQueueAttributesCommand.js +3 -3
  10. package/dist-cjs/commands/GetQueueUrlCommand.js +3 -3
  11. package/dist-cjs/commands/ListDeadLetterSourceQueuesCommand.js +3 -3
  12. package/dist-cjs/commands/ListQueueTagsCommand.js +3 -3
  13. package/dist-cjs/commands/ListQueuesCommand.js +3 -3
  14. package/dist-cjs/commands/PurgeQueueCommand.js +3 -3
  15. package/dist-cjs/commands/ReceiveMessageCommand.js +3 -3
  16. package/dist-cjs/commands/RemovePermissionCommand.js +3 -3
  17. package/dist-cjs/commands/SendMessageBatchCommand.js +3 -3
  18. package/dist-cjs/commands/SendMessageCommand.js +3 -3
  19. package/dist-cjs/commands/SetQueueAttributesCommand.js +3 -3
  20. package/dist-cjs/commands/TagQueueCommand.js +3 -3
  21. package/dist-cjs/commands/UntagQueueCommand.js +3 -3
  22. package/dist-cjs/models/models_0.js +29 -172
  23. package/dist-cjs/protocols/Aws_query.js +2127 -0
  24. package/dist-es/commands/AddPermissionCommand.js +1 -1
  25. package/dist-es/commands/ChangeMessageVisibilityBatchCommand.js +1 -1
  26. package/dist-es/commands/ChangeMessageVisibilityCommand.js +1 -1
  27. package/dist-es/commands/CreateQueueCommand.js +1 -1
  28. package/dist-es/commands/DeleteMessageBatchCommand.js +1 -1
  29. package/dist-es/commands/DeleteMessageCommand.js +1 -1
  30. package/dist-es/commands/DeleteQueueCommand.js +1 -1
  31. package/dist-es/commands/GetQueueAttributesCommand.js +1 -1
  32. package/dist-es/commands/GetQueueUrlCommand.js +1 -1
  33. package/dist-es/commands/ListDeadLetterSourceQueuesCommand.js +1 -1
  34. package/dist-es/commands/ListQueueTagsCommand.js +1 -1
  35. package/dist-es/commands/ListQueuesCommand.js +1 -1
  36. package/dist-es/commands/PurgeQueueCommand.js +1 -1
  37. package/dist-es/commands/ReceiveMessageCommand.js +1 -1
  38. package/dist-es/commands/RemovePermissionCommand.js +1 -1
  39. package/dist-es/commands/SendMessageBatchCommand.js +1 -1
  40. package/dist-es/commands/SendMessageCommand.js +1 -1
  41. package/dist-es/commands/SetQueueAttributesCommand.js +1 -1
  42. package/dist-es/commands/TagQueueCommand.js +1 -1
  43. package/dist-es/commands/UntagQueueCommand.js +1 -1
  44. package/dist-es/models/models_0.js +24 -156
  45. package/dist-es/protocols/Aws_query.js +2084 -0
  46. package/dist-types/SQS.d.ts +6 -10
  47. package/dist-types/SQSClient.d.ts +6 -10
  48. package/dist-types/commands/AddPermissionCommand.d.ts +23 -48
  49. package/dist-types/commands/ChangeMessageVisibilityBatchCommand.d.ts +12 -34
  50. package/dist-types/commands/ChangeMessageVisibilityCommand.d.ts +13 -47
  51. package/dist-types/commands/CreateQueueCommand.d.ts +18 -53
  52. package/dist-types/commands/DeleteMessageBatchCommand.d.ts +10 -31
  53. package/dist-types/commands/DeleteMessageCommand.d.ts +1 -29
  54. package/dist-types/commands/DeleteQueueCommand.d.ts +8 -44
  55. package/dist-types/commands/GetQueueAttributesCommand.d.ts +0 -28
  56. package/dist-types/commands/GetQueueUrlCommand.d.ts +4 -35
  57. package/dist-types/commands/ListDeadLetterSourceQueuesCommand.d.ts +10 -39
  58. package/dist-types/commands/ListQueueTagsCommand.d.ts +2 -34
  59. package/dist-types/commands/ListQueuesCommand.d.ts +11 -41
  60. package/dist-types/commands/PurgeQueueCommand.d.ts +5 -35
  61. package/dist-types/commands/ReceiveMessageCommand.d.ts +14 -87
  62. package/dist-types/commands/RemovePermissionCommand.d.ts +2 -34
  63. package/dist-types/commands/SendMessageBatchCommand.d.ts +13 -73
  64. package/dist-types/commands/SendMessageCommand.d.ts +0 -59
  65. package/dist-types/commands/SetQueueAttributesCommand.d.ts +3 -47
  66. package/dist-types/commands/TagQueueCommand.d.ts +1 -32
  67. package/dist-types/commands/UntagQueueCommand.d.ts +1 -32
  68. package/dist-types/models/models_0.d.ts +412 -926
  69. package/dist-types/protocols/{Aws_json1_0.d.ts → Aws_query.d.ts} +40 -40
  70. package/dist-types/ts3.4/models/models_0.d.ts +21 -78
  71. package/package.json +5 -4
  72. package/dist-cjs/protocols/Aws_json1_0.js +0 -1608
  73. package/dist-es/protocols/Aws_json1_0.js +0 -1565
  74. /package/dist-types/ts3.4/protocols/{Aws_json1_0.d.ts → Aws_query.d.ts} +0 -0
@@ -1,33 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.BatchRequestTooLong = exports.MessageSystemAttributeNameForSends = exports.InvalidMessageContents = exports.MessageSystemAttributeName = exports.KmsThrottled = exports.KmsOptInRequired = exports.KmsNotFound = exports.KmsInvalidState = exports.KmsInvalidKeyUsage = exports.KmsDisabled = exports.KmsAccessDenied = exports.PurgeQueueInProgress = exports.InvalidIdFormat = exports.QueueNameExists = exports.QueueDeletedRecently = exports.InvalidAttributeValue = exports.InvalidAttributeName = exports.QueueAttributeName = exports.TooManyEntriesInBatchRequest = exports.InvalidBatchEntryId = exports.EmptyBatchRequest = exports.BatchEntryIdsNotDistinct = exports.ReceiptHandleIsInvalid = exports.MessageNotInflight = exports.UnsupportedOperation = exports.RequestThrottled = exports.QueueDoesNotExist = exports.OverLimit = exports.InvalidSecurity = exports.InvalidAddress = void 0;
3
+ exports.BatchRequestTooLong = exports.UnsupportedOperation = exports.MessageSystemAttributeNameForSends = exports.InvalidMessageContents = exports.MessageSystemAttributeName = exports.PurgeQueueInProgress = exports.QueueDoesNotExist = exports.InvalidAttributeName = exports.InvalidIdFormat = exports.QueueNameExists = exports.QueueDeletedRecently = exports.QueueAttributeName = exports.TooManyEntriesInBatchRequest = exports.InvalidBatchEntryId = exports.EmptyBatchRequest = exports.BatchEntryIdsNotDistinct = exports.ReceiptHandleIsInvalid = exports.MessageNotInflight = exports.OverLimit = void 0;
4
4
  const SQSServiceException_1 = require("./SQSServiceException");
5
- class InvalidAddress extends SQSServiceException_1.SQSServiceException {
6
- constructor(opts) {
7
- super({
8
- name: "InvalidAddress",
9
- $fault: "client",
10
- ...opts,
11
- });
12
- this.name = "InvalidAddress";
13
- this.$fault = "client";
14
- Object.setPrototypeOf(this, InvalidAddress.prototype);
15
- }
16
- }
17
- exports.InvalidAddress = InvalidAddress;
18
- class InvalidSecurity extends SQSServiceException_1.SQSServiceException {
19
- constructor(opts) {
20
- super({
21
- name: "InvalidSecurity",
22
- $fault: "client",
23
- ...opts,
24
- });
25
- this.name = "InvalidSecurity";
26
- this.$fault = "client";
27
- Object.setPrototypeOf(this, InvalidSecurity.prototype);
28
- }
29
- }
30
- exports.InvalidSecurity = InvalidSecurity;
31
5
  class OverLimit extends SQSServiceException_1.SQSServiceException {
32
6
  constructor(opts) {
33
7
  super({
@@ -41,45 +15,6 @@ class OverLimit extends SQSServiceException_1.SQSServiceException {
41
15
  }
42
16
  }
43
17
  exports.OverLimit = OverLimit;
44
- class QueueDoesNotExist extends SQSServiceException_1.SQSServiceException {
45
- constructor(opts) {
46
- super({
47
- name: "QueueDoesNotExist",
48
- $fault: "client",
49
- ...opts,
50
- });
51
- this.name = "QueueDoesNotExist";
52
- this.$fault = "client";
53
- Object.setPrototypeOf(this, QueueDoesNotExist.prototype);
54
- }
55
- }
56
- exports.QueueDoesNotExist = QueueDoesNotExist;
57
- class RequestThrottled extends SQSServiceException_1.SQSServiceException {
58
- constructor(opts) {
59
- super({
60
- name: "RequestThrottled",
61
- $fault: "client",
62
- ...opts,
63
- });
64
- this.name = "RequestThrottled";
65
- this.$fault = "client";
66
- Object.setPrototypeOf(this, RequestThrottled.prototype);
67
- }
68
- }
69
- exports.RequestThrottled = RequestThrottled;
70
- class UnsupportedOperation extends SQSServiceException_1.SQSServiceException {
71
- constructor(opts) {
72
- super({
73
- name: "UnsupportedOperation",
74
- $fault: "client",
75
- ...opts,
76
- });
77
- this.name = "UnsupportedOperation";
78
- this.$fault = "client";
79
- Object.setPrototypeOf(this, UnsupportedOperation.prototype);
80
- }
81
- }
82
- exports.UnsupportedOperation = UnsupportedOperation;
83
18
  class MessageNotInflight extends SQSServiceException_1.SQSServiceException {
84
19
  constructor(opts) {
85
20
  super({
@@ -182,32 +117,6 @@ exports.QueueAttributeName = {
182
117
  SqsManagedSseEnabled: "SqsManagedSseEnabled",
183
118
  VisibilityTimeout: "VisibilityTimeout",
184
119
  };
185
- class InvalidAttributeName extends SQSServiceException_1.SQSServiceException {
186
- constructor(opts) {
187
- super({
188
- name: "InvalidAttributeName",
189
- $fault: "client",
190
- ...opts,
191
- });
192
- this.name = "InvalidAttributeName";
193
- this.$fault = "client";
194
- Object.setPrototypeOf(this, InvalidAttributeName.prototype);
195
- }
196
- }
197
- exports.InvalidAttributeName = InvalidAttributeName;
198
- class InvalidAttributeValue extends SQSServiceException_1.SQSServiceException {
199
- constructor(opts) {
200
- super({
201
- name: "InvalidAttributeValue",
202
- $fault: "client",
203
- ...opts,
204
- });
205
- this.name = "InvalidAttributeValue";
206
- this.$fault = "client";
207
- Object.setPrototypeOf(this, InvalidAttributeValue.prototype);
208
- }
209
- }
210
- exports.InvalidAttributeValue = InvalidAttributeValue;
211
120
  class QueueDeletedRecently extends SQSServiceException_1.SQSServiceException {
212
121
  constructor(opts) {
213
122
  super({
@@ -247,110 +156,45 @@ class InvalidIdFormat extends SQSServiceException_1.SQSServiceException {
247
156
  }
248
157
  }
249
158
  exports.InvalidIdFormat = InvalidIdFormat;
250
- class PurgeQueueInProgress extends SQSServiceException_1.SQSServiceException {
251
- constructor(opts) {
252
- super({
253
- name: "PurgeQueueInProgress",
254
- $fault: "client",
255
- ...opts,
256
- });
257
- this.name = "PurgeQueueInProgress";
258
- this.$fault = "client";
259
- Object.setPrototypeOf(this, PurgeQueueInProgress.prototype);
260
- }
261
- }
262
- exports.PurgeQueueInProgress = PurgeQueueInProgress;
263
- class KmsAccessDenied extends SQSServiceException_1.SQSServiceException {
264
- constructor(opts) {
265
- super({
266
- name: "KmsAccessDenied",
267
- $fault: "client",
268
- ...opts,
269
- });
270
- this.name = "KmsAccessDenied";
271
- this.$fault = "client";
272
- Object.setPrototypeOf(this, KmsAccessDenied.prototype);
273
- }
274
- }
275
- exports.KmsAccessDenied = KmsAccessDenied;
276
- class KmsDisabled extends SQSServiceException_1.SQSServiceException {
277
- constructor(opts) {
278
- super({
279
- name: "KmsDisabled",
280
- $fault: "client",
281
- ...opts,
282
- });
283
- this.name = "KmsDisabled";
284
- this.$fault = "client";
285
- Object.setPrototypeOf(this, KmsDisabled.prototype);
286
- }
287
- }
288
- exports.KmsDisabled = KmsDisabled;
289
- class KmsInvalidKeyUsage extends SQSServiceException_1.SQSServiceException {
290
- constructor(opts) {
291
- super({
292
- name: "KmsInvalidKeyUsage",
293
- $fault: "client",
294
- ...opts,
295
- });
296
- this.name = "KmsInvalidKeyUsage";
297
- this.$fault = "client";
298
- Object.setPrototypeOf(this, KmsInvalidKeyUsage.prototype);
299
- }
300
- }
301
- exports.KmsInvalidKeyUsage = KmsInvalidKeyUsage;
302
- class KmsInvalidState extends SQSServiceException_1.SQSServiceException {
303
- constructor(opts) {
304
- super({
305
- name: "KmsInvalidState",
306
- $fault: "client",
307
- ...opts,
308
- });
309
- this.name = "KmsInvalidState";
310
- this.$fault = "client";
311
- Object.setPrototypeOf(this, KmsInvalidState.prototype);
312
- }
313
- }
314
- exports.KmsInvalidState = KmsInvalidState;
315
- class KmsNotFound extends SQSServiceException_1.SQSServiceException {
159
+ class InvalidAttributeName extends SQSServiceException_1.SQSServiceException {
316
160
  constructor(opts) {
317
161
  super({
318
- name: "KmsNotFound",
162
+ name: "InvalidAttributeName",
319
163
  $fault: "client",
320
164
  ...opts,
321
165
  });
322
- this.name = "KmsNotFound";
166
+ this.name = "InvalidAttributeName";
323
167
  this.$fault = "client";
324
- Object.setPrototypeOf(this, KmsNotFound.prototype);
168
+ Object.setPrototypeOf(this, InvalidAttributeName.prototype);
325
169
  }
326
170
  }
327
- exports.KmsNotFound = KmsNotFound;
328
- class KmsOptInRequired extends SQSServiceException_1.SQSServiceException {
171
+ exports.InvalidAttributeName = InvalidAttributeName;
172
+ class QueueDoesNotExist extends SQSServiceException_1.SQSServiceException {
329
173
  constructor(opts) {
330
174
  super({
331
- name: "KmsOptInRequired",
175
+ name: "QueueDoesNotExist",
332
176
  $fault: "client",
333
177
  ...opts,
334
178
  });
335
- this.name = "KmsOptInRequired";
179
+ this.name = "QueueDoesNotExist";
336
180
  this.$fault = "client";
337
- Object.setPrototypeOf(this, KmsOptInRequired.prototype);
181
+ Object.setPrototypeOf(this, QueueDoesNotExist.prototype);
338
182
  }
339
183
  }
340
- exports.KmsOptInRequired = KmsOptInRequired;
341
- class KmsThrottled extends SQSServiceException_1.SQSServiceException {
184
+ exports.QueueDoesNotExist = QueueDoesNotExist;
185
+ class PurgeQueueInProgress extends SQSServiceException_1.SQSServiceException {
342
186
  constructor(opts) {
343
187
  super({
344
- name: "KmsThrottled",
188
+ name: "PurgeQueueInProgress",
345
189
  $fault: "client",
346
190
  ...opts,
347
191
  });
348
- this.name = "KmsThrottled";
192
+ this.name = "PurgeQueueInProgress";
349
193
  this.$fault = "client";
350
- Object.setPrototypeOf(this, KmsThrottled.prototype);
194
+ Object.setPrototypeOf(this, PurgeQueueInProgress.prototype);
351
195
  }
352
196
  }
353
- exports.KmsThrottled = KmsThrottled;
197
+ exports.PurgeQueueInProgress = PurgeQueueInProgress;
354
198
  exports.MessageSystemAttributeName = {
355
199
  AWSTraceHeader: "AWSTraceHeader",
356
200
  ApproximateFirstReceiveTimestamp: "ApproximateFirstReceiveTimestamp",
@@ -377,6 +221,19 @@ exports.InvalidMessageContents = InvalidMessageContents;
377
221
  exports.MessageSystemAttributeNameForSends = {
378
222
  AWSTraceHeader: "AWSTraceHeader",
379
223
  };
224
+ class UnsupportedOperation extends SQSServiceException_1.SQSServiceException {
225
+ constructor(opts) {
226
+ super({
227
+ name: "UnsupportedOperation",
228
+ $fault: "client",
229
+ ...opts,
230
+ });
231
+ this.name = "UnsupportedOperation";
232
+ this.$fault = "client";
233
+ Object.setPrototypeOf(this, UnsupportedOperation.prototype);
234
+ }
235
+ }
236
+ exports.UnsupportedOperation = UnsupportedOperation;
380
237
  class BatchRequestTooLong extends SQSServiceException_1.SQSServiceException {
381
238
  constructor(opts) {
382
239
  super({