@aws-sdk/client-sqs 3.325.0 → 3.327.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 (76) hide show
  1. package/README.md +10 -7
  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/endpoint/ruleset.js +2 -2
  23. package/dist-cjs/models/models_0.js +206 -26
  24. package/dist-cjs/protocols/Aws_json1_0.js +1608 -0
  25. package/dist-es/commands/AddPermissionCommand.js +1 -1
  26. package/dist-es/commands/ChangeMessageVisibilityBatchCommand.js +1 -1
  27. package/dist-es/commands/ChangeMessageVisibilityCommand.js +1 -1
  28. package/dist-es/commands/CreateQueueCommand.js +1 -1
  29. package/dist-es/commands/DeleteMessageBatchCommand.js +1 -1
  30. package/dist-es/commands/DeleteMessageCommand.js +1 -1
  31. package/dist-es/commands/DeleteQueueCommand.js +1 -1
  32. package/dist-es/commands/GetQueueAttributesCommand.js +1 -1
  33. package/dist-es/commands/GetQueueUrlCommand.js +1 -1
  34. package/dist-es/commands/ListDeadLetterSourceQueuesCommand.js +1 -1
  35. package/dist-es/commands/ListQueueTagsCommand.js +1 -1
  36. package/dist-es/commands/ListQueuesCommand.js +1 -1
  37. package/dist-es/commands/PurgeQueueCommand.js +1 -1
  38. package/dist-es/commands/ReceiveMessageCommand.js +1 -1
  39. package/dist-es/commands/RemovePermissionCommand.js +1 -1
  40. package/dist-es/commands/SendMessageBatchCommand.js +1 -1
  41. package/dist-es/commands/SendMessageCommand.js +1 -1
  42. package/dist-es/commands/SetQueueAttributesCommand.js +1 -1
  43. package/dist-es/commands/TagQueueCommand.js +1 -1
  44. package/dist-es/commands/UntagQueueCommand.js +1 -1
  45. package/dist-es/endpoint/ruleset.js +2 -2
  46. package/dist-es/models/models_0.js +189 -20
  47. package/dist-es/protocols/Aws_json1_0.js +1565 -0
  48. package/dist-types/SQS.d.ts +24 -21
  49. package/dist-types/SQSClient.d.ts +24 -21
  50. package/dist-types/commands/AddPermissionCommand.d.ts +55 -26
  51. package/dist-types/commands/ChangeMessageVisibilityBatchCommand.d.ts +52 -12
  52. package/dist-types/commands/ChangeMessageVisibilityCommand.d.ts +52 -15
  53. package/dist-types/commands/CreateQueueCommand.d.ts +64 -24
  54. package/dist-types/commands/DeleteMessageBatchCommand.d.ts +49 -10
  55. package/dist-types/commands/DeleteMessageCommand.d.ts +33 -1
  56. package/dist-types/commands/DeleteQueueCommand.d.ts +48 -8
  57. package/dist-types/commands/GetQueueAttributesCommand.d.ts +37 -1
  58. package/dist-types/commands/GetQueueUrlCommand.d.ts +41 -4
  59. package/dist-types/commands/ListDeadLetterSourceQueuesCommand.d.ts +48 -11
  60. package/dist-types/commands/ListQueueTagsCommand.d.ts +44 -4
  61. package/dist-types/commands/ListQueuesCommand.d.ts +49 -10
  62. package/dist-types/commands/PurgeQueueCommand.d.ts +40 -7
  63. package/dist-types/commands/ReceiveMessageCommand.d.ts +118 -15
  64. package/dist-types/commands/RemovePermissionCommand.d.ts +41 -5
  65. package/dist-types/commands/SendMessageBatchCommand.d.ts +99 -16
  66. package/dist-types/commands/SendMessageCommand.d.ts +72 -3
  67. package/dist-types/commands/SetQueueAttributesCommand.d.ts +54 -6
  68. package/dist-types/commands/TagQueueCommand.d.ts +38 -4
  69. package/dist-types/commands/UntagQueueCommand.d.ts +38 -3
  70. package/dist-types/models/models_0.d.ts +1039 -493
  71. package/dist-types/protocols/{Aws_query.d.ts → Aws_json1_0.d.ts} +40 -40
  72. package/dist-types/ts3.4/models/models_0.d.ts +119 -52
  73. package/package.json +8 -9
  74. package/dist-cjs/protocols/Aws_query.js +0 -2127
  75. package/dist-es/protocols/Aws_query.js +0 -2084
  76. /package/dist-types/ts3.4/protocols/{Aws_query.d.ts → Aws_json1_0.d.ts} +0 -0
@@ -1,7 +1,33 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.BatchRequestTooLong = exports.UnsupportedOperation = exports.InvalidMessageContents = exports.PurgeQueueInProgress = exports.QueueDoesNotExist = exports.InvalidAttributeName = exports.InvalidIdFormat = exports.QueueNameExists = exports.QueueDeletedRecently = exports.TooManyEntriesInBatchRequest = exports.InvalidBatchEntryId = exports.EmptyBatchRequest = exports.BatchEntryIdsNotDistinct = exports.ReceiptHandleIsInvalid = exports.MessageNotInflight = exports.OverLimit = void 0;
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;
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;
5
31
  class OverLimit extends SQSServiceException_1.SQSServiceException {
6
32
  constructor(opts) {
7
33
  super({
@@ -15,6 +41,45 @@ class OverLimit extends SQSServiceException_1.SQSServiceException {
15
41
  }
16
42
  }
17
43
  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;
18
83
  class MessageNotInflight extends SQSServiceException_1.SQSServiceException {
19
84
  constructor(opts) {
20
85
  super({
@@ -93,6 +158,56 @@ class TooManyEntriesInBatchRequest extends SQSServiceException_1.SQSServiceExcep
93
158
  }
94
159
  }
95
160
  exports.TooManyEntriesInBatchRequest = TooManyEntriesInBatchRequest;
161
+ exports.QueueAttributeName = {
162
+ All: "All",
163
+ ApproximateNumberOfMessages: "ApproximateNumberOfMessages",
164
+ ApproximateNumberOfMessagesDelayed: "ApproximateNumberOfMessagesDelayed",
165
+ ApproximateNumberOfMessagesNotVisible: "ApproximateNumberOfMessagesNotVisible",
166
+ ContentBasedDeduplication: "ContentBasedDeduplication",
167
+ CreatedTimestamp: "CreatedTimestamp",
168
+ DeduplicationScope: "DeduplicationScope",
169
+ DelaySeconds: "DelaySeconds",
170
+ FifoQueue: "FifoQueue",
171
+ FifoThroughputLimit: "FifoThroughputLimit",
172
+ KmsDataKeyReusePeriodSeconds: "KmsDataKeyReusePeriodSeconds",
173
+ KmsMasterKeyId: "KmsMasterKeyId",
174
+ LastModifiedTimestamp: "LastModifiedTimestamp",
175
+ MaximumMessageSize: "MaximumMessageSize",
176
+ MessageRetentionPeriod: "MessageRetentionPeriod",
177
+ Policy: "Policy",
178
+ QueueArn: "QueueArn",
179
+ ReceiveMessageWaitTimeSeconds: "ReceiveMessageWaitTimeSeconds",
180
+ RedriveAllowPolicy: "RedriveAllowPolicy",
181
+ RedrivePolicy: "RedrivePolicy",
182
+ SqsManagedSseEnabled: "SqsManagedSseEnabled",
183
+ VisibilityTimeout: "VisibilityTimeout",
184
+ };
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;
96
211
  class QueueDeletedRecently extends SQSServiceException_1.SQSServiceException {
97
212
  constructor(opts) {
98
213
  super({
@@ -132,71 +247,136 @@ class InvalidIdFormat extends SQSServiceException_1.SQSServiceException {
132
247
  }
133
248
  }
134
249
  exports.InvalidIdFormat = InvalidIdFormat;
135
- class InvalidAttributeName extends SQSServiceException_1.SQSServiceException {
250
+ class PurgeQueueInProgress extends SQSServiceException_1.SQSServiceException {
136
251
  constructor(opts) {
137
252
  super({
138
- name: "InvalidAttributeName",
253
+ name: "PurgeQueueInProgress",
139
254
  $fault: "client",
140
255
  ...opts,
141
256
  });
142
- this.name = "InvalidAttributeName";
257
+ this.name = "PurgeQueueInProgress";
143
258
  this.$fault = "client";
144
- Object.setPrototypeOf(this, InvalidAttributeName.prototype);
259
+ Object.setPrototypeOf(this, PurgeQueueInProgress.prototype);
145
260
  }
146
261
  }
147
- exports.InvalidAttributeName = InvalidAttributeName;
148
- class QueueDoesNotExist extends SQSServiceException_1.SQSServiceException {
262
+ exports.PurgeQueueInProgress = PurgeQueueInProgress;
263
+ class KmsAccessDenied extends SQSServiceException_1.SQSServiceException {
149
264
  constructor(opts) {
150
265
  super({
151
- name: "QueueDoesNotExist",
266
+ name: "KmsAccessDenied",
152
267
  $fault: "client",
153
268
  ...opts,
154
269
  });
155
- this.name = "QueueDoesNotExist";
270
+ this.name = "KmsAccessDenied";
156
271
  this.$fault = "client";
157
- Object.setPrototypeOf(this, QueueDoesNotExist.prototype);
272
+ Object.setPrototypeOf(this, KmsAccessDenied.prototype);
158
273
  }
159
274
  }
160
- exports.QueueDoesNotExist = QueueDoesNotExist;
161
- class PurgeQueueInProgress extends SQSServiceException_1.SQSServiceException {
275
+ exports.KmsAccessDenied = KmsAccessDenied;
276
+ class KmsDisabled extends SQSServiceException_1.SQSServiceException {
162
277
  constructor(opts) {
163
278
  super({
164
- name: "PurgeQueueInProgress",
279
+ name: "KmsDisabled",
165
280
  $fault: "client",
166
281
  ...opts,
167
282
  });
168
- this.name = "PurgeQueueInProgress";
283
+ this.name = "KmsDisabled";
169
284
  this.$fault = "client";
170
- Object.setPrototypeOf(this, PurgeQueueInProgress.prototype);
285
+ Object.setPrototypeOf(this, KmsDisabled.prototype);
171
286
  }
172
287
  }
173
- exports.PurgeQueueInProgress = PurgeQueueInProgress;
174
- class InvalidMessageContents extends SQSServiceException_1.SQSServiceException {
288
+ exports.KmsDisabled = KmsDisabled;
289
+ class KmsInvalidKeyUsage extends SQSServiceException_1.SQSServiceException {
175
290
  constructor(opts) {
176
291
  super({
177
- name: "InvalidMessageContents",
292
+ name: "KmsInvalidKeyUsage",
178
293
  $fault: "client",
179
294
  ...opts,
180
295
  });
181
- this.name = "InvalidMessageContents";
296
+ this.name = "KmsInvalidKeyUsage";
182
297
  this.$fault = "client";
183
- Object.setPrototypeOf(this, InvalidMessageContents.prototype);
298
+ Object.setPrototypeOf(this, KmsInvalidKeyUsage.prototype);
184
299
  }
185
300
  }
186
- exports.InvalidMessageContents = InvalidMessageContents;
187
- class UnsupportedOperation extends SQSServiceException_1.SQSServiceException {
301
+ exports.KmsInvalidKeyUsage = KmsInvalidKeyUsage;
302
+ class KmsInvalidState extends SQSServiceException_1.SQSServiceException {
188
303
  constructor(opts) {
189
304
  super({
190
- name: "UnsupportedOperation",
305
+ name: "KmsInvalidState",
191
306
  $fault: "client",
192
307
  ...opts,
193
308
  });
194
- this.name = "UnsupportedOperation";
309
+ this.name = "KmsInvalidState";
195
310
  this.$fault = "client";
196
- Object.setPrototypeOf(this, UnsupportedOperation.prototype);
311
+ Object.setPrototypeOf(this, KmsInvalidState.prototype);
197
312
  }
198
313
  }
199
- exports.UnsupportedOperation = UnsupportedOperation;
314
+ exports.KmsInvalidState = KmsInvalidState;
315
+ class KmsNotFound extends SQSServiceException_1.SQSServiceException {
316
+ constructor(opts) {
317
+ super({
318
+ name: "KmsNotFound",
319
+ $fault: "client",
320
+ ...opts,
321
+ });
322
+ this.name = "KmsNotFound";
323
+ this.$fault = "client";
324
+ Object.setPrototypeOf(this, KmsNotFound.prototype);
325
+ }
326
+ }
327
+ exports.KmsNotFound = KmsNotFound;
328
+ class KmsOptInRequired extends SQSServiceException_1.SQSServiceException {
329
+ constructor(opts) {
330
+ super({
331
+ name: "KmsOptInRequired",
332
+ $fault: "client",
333
+ ...opts,
334
+ });
335
+ this.name = "KmsOptInRequired";
336
+ this.$fault = "client";
337
+ Object.setPrototypeOf(this, KmsOptInRequired.prototype);
338
+ }
339
+ }
340
+ exports.KmsOptInRequired = KmsOptInRequired;
341
+ class KmsThrottled extends SQSServiceException_1.SQSServiceException {
342
+ constructor(opts) {
343
+ super({
344
+ name: "KmsThrottled",
345
+ $fault: "client",
346
+ ...opts,
347
+ });
348
+ this.name = "KmsThrottled";
349
+ this.$fault = "client";
350
+ Object.setPrototypeOf(this, KmsThrottled.prototype);
351
+ }
352
+ }
353
+ exports.KmsThrottled = KmsThrottled;
354
+ exports.MessageSystemAttributeName = {
355
+ AWSTraceHeader: "AWSTraceHeader",
356
+ ApproximateFirstReceiveTimestamp: "ApproximateFirstReceiveTimestamp",
357
+ ApproximateReceiveCount: "ApproximateReceiveCount",
358
+ MessageDeduplicationId: "MessageDeduplicationId",
359
+ MessageGroupId: "MessageGroupId",
360
+ SenderId: "SenderId",
361
+ SentTimestamp: "SentTimestamp",
362
+ SequenceNumber: "SequenceNumber",
363
+ };
364
+ class InvalidMessageContents extends SQSServiceException_1.SQSServiceException {
365
+ constructor(opts) {
366
+ super({
367
+ name: "InvalidMessageContents",
368
+ $fault: "client",
369
+ ...opts,
370
+ });
371
+ this.name = "InvalidMessageContents";
372
+ this.$fault = "client";
373
+ Object.setPrototypeOf(this, InvalidMessageContents.prototype);
374
+ }
375
+ }
376
+ exports.InvalidMessageContents = InvalidMessageContents;
377
+ exports.MessageSystemAttributeNameForSends = {
378
+ AWSTraceHeader: "AWSTraceHeader",
379
+ };
200
380
  class BatchRequestTooLong extends SQSServiceException_1.SQSServiceException {
201
381
  constructor(opts) {
202
382
  super({