@aws-sdk/client-sqs 3.933.0 → 3.935.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.
@@ -1,5 +1,4 @@
1
- import { ExceptionOptionType as __ExceptionOptionType } from "@smithy/smithy-client";
2
- import { SQSServiceException as __BaseException } from "./SQSServiceException";
1
+ import { MessageSystemAttributeName, MessageSystemAttributeNameForSends, QueueAttributeName } from "./enums";
3
2
  /**
4
3
  * <p></p>
5
4
  * @public
@@ -40,93 +39,6 @@ export interface AddPermissionRequest {
40
39
  */
41
40
  Actions: string[] | undefined;
42
41
  }
43
- /**
44
- * <p>The specified ID is invalid.</p>
45
- * @public
46
- */
47
- export declare class InvalidAddress extends __BaseException {
48
- readonly name: "InvalidAddress";
49
- readonly $fault: "client";
50
- /**
51
- * @internal
52
- */
53
- constructor(opts: __ExceptionOptionType<InvalidAddress, __BaseException>);
54
- }
55
- /**
56
- * <p>The request was not made over HTTPS or did not use SigV4 for signing.</p>
57
- * @public
58
- */
59
- export declare class InvalidSecurity extends __BaseException {
60
- readonly name: "InvalidSecurity";
61
- readonly $fault: "client";
62
- /**
63
- * @internal
64
- */
65
- constructor(opts: __ExceptionOptionType<InvalidSecurity, __BaseException>);
66
- }
67
- /**
68
- * <p>The specified action violates a limit. For example, <code>ReceiveMessage</code>
69
- * returns this error if the maximum number of in flight messages is reached and
70
- * <code>AddPermission</code> returns this error if the maximum number of permissions
71
- * for the queue is reached.</p>
72
- * @public
73
- */
74
- export declare class OverLimit extends __BaseException {
75
- readonly name: "OverLimit";
76
- readonly $fault: "client";
77
- /**
78
- * @internal
79
- */
80
- constructor(opts: __ExceptionOptionType<OverLimit, __BaseException>);
81
- }
82
- /**
83
- * <p>Ensure that the <code>QueueUrl</code> is correct and that the queue has not been
84
- * deleted.</p>
85
- * @public
86
- */
87
- export declare class QueueDoesNotExist extends __BaseException {
88
- readonly name: "QueueDoesNotExist";
89
- readonly $fault: "client";
90
- /**
91
- * @internal
92
- */
93
- constructor(opts: __ExceptionOptionType<QueueDoesNotExist, __BaseException>);
94
- }
95
- /**
96
- * <p>The request was denied due to request throttling.</p>
97
- * <ul>
98
- * <li>
99
- * <p>Exceeds the permitted request rate for the queue or for the recipient of the
100
- * request.</p>
101
- * </li>
102
- * <li>
103
- * <p>Ensure that the request rate is within the Amazon SQS limits for
104
- * sending messages. For more information, see <a href="https://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/sqs-quotas.html#quotas-requests">Amazon SQS quotas</a> in the <i>Amazon SQS
105
- * Developer Guide</i>.</p>
106
- * </li>
107
- * </ul>
108
- * @public
109
- */
110
- export declare class RequestThrottled extends __BaseException {
111
- readonly name: "RequestThrottled";
112
- readonly $fault: "client";
113
- /**
114
- * @internal
115
- */
116
- constructor(opts: __ExceptionOptionType<RequestThrottled, __BaseException>);
117
- }
118
- /**
119
- * <p>Error code 400. Unsupported operation.</p>
120
- * @public
121
- */
122
- export declare class UnsupportedOperation extends __BaseException {
123
- readonly name: "UnsupportedOperation";
124
- readonly $fault: "client";
125
- /**
126
- * @internal
127
- */
128
- constructor(opts: __ExceptionOptionType<UnsupportedOperation, __BaseException>);
129
- }
130
42
  /**
131
43
  * @public
132
44
  */
@@ -147,18 +59,6 @@ export interface CancelMessageMoveTaskResult {
147
59
  */
148
60
  ApproximateNumberOfMessagesMoved?: number | undefined;
149
61
  }
150
- /**
151
- * <p>One or more specified resources don't exist.</p>
152
- * @public
153
- */
154
- export declare class ResourceNotFoundException extends __BaseException {
155
- readonly name: "ResourceNotFoundException";
156
- readonly $fault: "client";
157
- /**
158
- * @internal
159
- */
160
- constructor(opts: __ExceptionOptionType<ResourceNotFoundException, __BaseException>);
161
- }
162
62
  /**
163
63
  * @public
164
64
  */
@@ -185,42 +85,6 @@ export interface ChangeMessageVisibilityRequest {
185
85
  */
186
86
  VisibilityTimeout: number | undefined;
187
87
  }
188
- /**
189
- * <p>The specified message isn't in flight.</p>
190
- * @public
191
- */
192
- export declare class MessageNotInflight extends __BaseException {
193
- readonly name: "MessageNotInflight";
194
- readonly $fault: "client";
195
- /**
196
- * @internal
197
- */
198
- constructor(opts: __ExceptionOptionType<MessageNotInflight, __BaseException>);
199
- }
200
- /**
201
- * <p>The specified receipt handle isn't valid.</p>
202
- * @public
203
- */
204
- export declare class ReceiptHandleIsInvalid extends __BaseException {
205
- readonly name: "ReceiptHandleIsInvalid";
206
- readonly $fault: "client";
207
- /**
208
- * @internal
209
- */
210
- constructor(opts: __ExceptionOptionType<ReceiptHandleIsInvalid, __BaseException>);
211
- }
212
- /**
213
- * <p>Two or more batch entries in the request have the same <code>Id</code>.</p>
214
- * @public
215
- */
216
- export declare class BatchEntryIdsNotDistinct extends __BaseException {
217
- readonly name: "BatchEntryIdsNotDistinct";
218
- readonly $fault: "client";
219
- /**
220
- * @internal
221
- */
222
- constructor(opts: __ExceptionOptionType<BatchEntryIdsNotDistinct, __BaseException>);
223
- }
224
88
  /**
225
89
  * <p>Encloses a receipt handle and an entry ID for each message in <code>
226
90
  * <a>ChangeMessageVisibilityBatch</a>.</code>
@@ -334,76 +198,6 @@ export interface ChangeMessageVisibilityBatchResult {
334
198
  */
335
199
  Failed: BatchResultErrorEntry[] | undefined;
336
200
  }
337
- /**
338
- * <p>The batch request doesn't contain any entries.</p>
339
- * @public
340
- */
341
- export declare class EmptyBatchRequest extends __BaseException {
342
- readonly name: "EmptyBatchRequest";
343
- readonly $fault: "client";
344
- /**
345
- * @internal
346
- */
347
- constructor(opts: __ExceptionOptionType<EmptyBatchRequest, __BaseException>);
348
- }
349
- /**
350
- * <p>The <code>Id</code> of a batch entry in a batch request doesn't abide by the
351
- * specification.</p>
352
- * @public
353
- */
354
- export declare class InvalidBatchEntryId extends __BaseException {
355
- readonly name: "InvalidBatchEntryId";
356
- readonly $fault: "client";
357
- /**
358
- * @internal
359
- */
360
- constructor(opts: __ExceptionOptionType<InvalidBatchEntryId, __BaseException>);
361
- }
362
- /**
363
- * <p>The batch request contains more entries than permissible. For Amazon SQS, the
364
- * maximum number of entries you can include in a single <a href="https://docs.aws.amazon.com/AWSSimpleQueueService/latest/APIReference/API_SendMessageBatch.html">SendMessageBatch</a>, <a href="https://docs.aws.amazon.com/AWSSimpleQueueService/latest/APIReference/API_DeleteMessageBatch.html">DeleteMessageBatch</a>, or <a href="https://docs.aws.amazon.com/AWSSimpleQueueService/latest/APIReference/API_ChangeMessageVisibilityBatch.html">ChangeMessageVisibilityBatch</a> request is 10.</p>
365
- * @public
366
- */
367
- export declare class TooManyEntriesInBatchRequest extends __BaseException {
368
- readonly name: "TooManyEntriesInBatchRequest";
369
- readonly $fault: "client";
370
- /**
371
- * @internal
372
- */
373
- constructor(opts: __ExceptionOptionType<TooManyEntriesInBatchRequest, __BaseException>);
374
- }
375
- /**
376
- * @public
377
- * @enum
378
- */
379
- export declare const QueueAttributeName: {
380
- readonly All: "All";
381
- readonly ApproximateNumberOfMessages: "ApproximateNumberOfMessages";
382
- readonly ApproximateNumberOfMessagesDelayed: "ApproximateNumberOfMessagesDelayed";
383
- readonly ApproximateNumberOfMessagesNotVisible: "ApproximateNumberOfMessagesNotVisible";
384
- readonly ContentBasedDeduplication: "ContentBasedDeduplication";
385
- readonly CreatedTimestamp: "CreatedTimestamp";
386
- readonly DeduplicationScope: "DeduplicationScope";
387
- readonly DelaySeconds: "DelaySeconds";
388
- readonly FifoQueue: "FifoQueue";
389
- readonly FifoThroughputLimit: "FifoThroughputLimit";
390
- readonly KmsDataKeyReusePeriodSeconds: "KmsDataKeyReusePeriodSeconds";
391
- readonly KmsMasterKeyId: "KmsMasterKeyId";
392
- readonly LastModifiedTimestamp: "LastModifiedTimestamp";
393
- readonly MaximumMessageSize: "MaximumMessageSize";
394
- readonly MessageRetentionPeriod: "MessageRetentionPeriod";
395
- readonly Policy: "Policy";
396
- readonly QueueArn: "QueueArn";
397
- readonly ReceiveMessageWaitTimeSeconds: "ReceiveMessageWaitTimeSeconds";
398
- readonly RedriveAllowPolicy: "RedriveAllowPolicy";
399
- readonly RedrivePolicy: "RedrivePolicy";
400
- readonly SqsManagedSseEnabled: "SqsManagedSseEnabled";
401
- readonly VisibilityTimeout: "VisibilityTimeout";
402
- };
403
- /**
404
- * @public
405
- */
406
- export type QueueAttributeName = (typeof QueueAttributeName)[keyof typeof QueueAttributeName];
407
201
  /**
408
202
  * <p></p>
409
203
  * @public
@@ -714,56 +508,6 @@ export interface CreateQueueResult {
714
508
  */
715
509
  QueueUrl?: string | undefined;
716
510
  }
717
- /**
718
- * <p>The specified attribute doesn't exist.</p>
719
- * @public
720
- */
721
- export declare class InvalidAttributeName extends __BaseException {
722
- readonly name: "InvalidAttributeName";
723
- readonly $fault: "client";
724
- /**
725
- * @internal
726
- */
727
- constructor(opts: __ExceptionOptionType<InvalidAttributeName, __BaseException>);
728
- }
729
- /**
730
- * <p>A queue attribute value is invalid.</p>
731
- * @public
732
- */
733
- export declare class InvalidAttributeValue extends __BaseException {
734
- readonly name: "InvalidAttributeValue";
735
- readonly $fault: "client";
736
- /**
737
- * @internal
738
- */
739
- constructor(opts: __ExceptionOptionType<InvalidAttributeValue, __BaseException>);
740
- }
741
- /**
742
- * <p>You must wait 60 seconds after deleting a queue before you can create another queue
743
- * with the same name.</p>
744
- * @public
745
- */
746
- export declare class QueueDeletedRecently extends __BaseException {
747
- readonly name: "QueueDeletedRecently";
748
- readonly $fault: "client";
749
- /**
750
- * @internal
751
- */
752
- constructor(opts: __ExceptionOptionType<QueueDeletedRecently, __BaseException>);
753
- }
754
- /**
755
- * <p>A queue with this name already exists. Amazon SQS returns this error only if the request
756
- * includes attributes whose values differ from those of the existing queue.</p>
757
- * @public
758
- */
759
- export declare class QueueNameExists extends __BaseException {
760
- readonly name: "QueueNameExists";
761
- readonly $fault: "client";
762
- /**
763
- * @internal
764
- */
765
- constructor(opts: __ExceptionOptionType<QueueNameExists, __BaseException>);
766
- }
767
511
  /**
768
512
  * <p></p>
769
513
  * @public
@@ -781,20 +525,6 @@ export interface DeleteMessageRequest {
781
525
  */
782
526
  ReceiptHandle: string | undefined;
783
527
  }
784
- /**
785
- * <p>The specified receipt handle isn't valid for the current version.</p>
786
- *
787
- * @deprecated exception has been included in ReceiptHandleIsInvalid
788
- * @public
789
- */
790
- export declare class InvalidIdFormat extends __BaseException {
791
- readonly name: "InvalidIdFormat";
792
- readonly $fault: "client";
793
- /**
794
- * @internal
795
- */
796
- constructor(opts: __ExceptionOptionType<InvalidIdFormat, __BaseException>);
797
- }
798
528
  /**
799
529
  * <p>Encloses a receipt handle and an identifier for it.</p>
800
530
  * @public
@@ -1366,20 +1096,6 @@ export interface ListQueueTagsResult {
1366
1096
  */
1367
1097
  Tags?: Record<string, string> | undefined;
1368
1098
  }
1369
- /**
1370
- * <p>Indicates that the specified queue previously received a <code>PurgeQueue</code>
1371
- * request within the last 60 seconds (the time it can take to delete the messages in the
1372
- * queue).</p>
1373
- * @public
1374
- */
1375
- export declare class PurgeQueueInProgress extends __BaseException {
1376
- readonly name: "PurgeQueueInProgress";
1377
- readonly $fault: "client";
1378
- /**
1379
- * @internal
1380
- */
1381
- constructor(opts: __ExceptionOptionType<PurgeQueueInProgress, __BaseException>);
1382
- }
1383
1099
  /**
1384
1100
  * <p></p>
1385
1101
  * @public
@@ -1393,123 +1109,6 @@ export interface PurgeQueueRequest {
1393
1109
  */
1394
1110
  QueueUrl: string | undefined;
1395
1111
  }
1396
- /**
1397
- * <p>The caller doesn't have the required KMS access.</p>
1398
- * @public
1399
- */
1400
- export declare class KmsAccessDenied extends __BaseException {
1401
- readonly name: "KmsAccessDenied";
1402
- readonly $fault: "client";
1403
- /**
1404
- * @internal
1405
- */
1406
- constructor(opts: __ExceptionOptionType<KmsAccessDenied, __BaseException>);
1407
- }
1408
- /**
1409
- * <p>The request was denied due to request throttling.</p>
1410
- * @public
1411
- */
1412
- export declare class KmsDisabled extends __BaseException {
1413
- readonly name: "KmsDisabled";
1414
- readonly $fault: "client";
1415
- /**
1416
- * @internal
1417
- */
1418
- constructor(opts: __ExceptionOptionType<KmsDisabled, __BaseException>);
1419
- }
1420
- /**
1421
- * <p>The request was rejected for one of the following reasons:</p>
1422
- * <ul>
1423
- * <li>
1424
- * <p>The KeyUsage value of the KMS key is incompatible with the API
1425
- * operation.</p>
1426
- * </li>
1427
- * <li>
1428
- * <p>The encryption algorithm or signing algorithm specified for the operation is
1429
- * incompatible with the type of key material in the KMS key (KeySpec).</p>
1430
- * </li>
1431
- * </ul>
1432
- * @public
1433
- */
1434
- export declare class KmsInvalidKeyUsage extends __BaseException {
1435
- readonly name: "KmsInvalidKeyUsage";
1436
- readonly $fault: "client";
1437
- /**
1438
- * @internal
1439
- */
1440
- constructor(opts: __ExceptionOptionType<KmsInvalidKeyUsage, __BaseException>);
1441
- }
1442
- /**
1443
- * <p>The request was rejected because the state of the specified resource is not valid for
1444
- * this request.</p>
1445
- * @public
1446
- */
1447
- export declare class KmsInvalidState extends __BaseException {
1448
- readonly name: "KmsInvalidState";
1449
- readonly $fault: "client";
1450
- /**
1451
- * @internal
1452
- */
1453
- constructor(opts: __ExceptionOptionType<KmsInvalidState, __BaseException>);
1454
- }
1455
- /**
1456
- * <p>The request was rejected because the specified entity or resource could not be found.
1457
- * </p>
1458
- * @public
1459
- */
1460
- export declare class KmsNotFound extends __BaseException {
1461
- readonly name: "KmsNotFound";
1462
- readonly $fault: "client";
1463
- /**
1464
- * @internal
1465
- */
1466
- constructor(opts: __ExceptionOptionType<KmsNotFound, __BaseException>);
1467
- }
1468
- /**
1469
- * <p>The request was rejected because the specified key policy isn't syntactically or
1470
- * semantically correct.</p>
1471
- * @public
1472
- */
1473
- export declare class KmsOptInRequired extends __BaseException {
1474
- readonly name: "KmsOptInRequired";
1475
- readonly $fault: "client";
1476
- /**
1477
- * @internal
1478
- */
1479
- constructor(opts: __ExceptionOptionType<KmsOptInRequired, __BaseException>);
1480
- }
1481
- /**
1482
- * <p>Amazon Web Services KMS throttles requests for the following conditions.</p>
1483
- * @public
1484
- */
1485
- export declare class KmsThrottled extends __BaseException {
1486
- readonly name: "KmsThrottled";
1487
- readonly $fault: "client";
1488
- /**
1489
- * @internal
1490
- */
1491
- constructor(opts: __ExceptionOptionType<KmsThrottled, __BaseException>);
1492
- }
1493
- /**
1494
- * @public
1495
- * @enum
1496
- */
1497
- export declare const MessageSystemAttributeName: {
1498
- readonly AWSTraceHeader: "AWSTraceHeader";
1499
- readonly All: "All";
1500
- readonly ApproximateFirstReceiveTimestamp: "ApproximateFirstReceiveTimestamp";
1501
- readonly ApproximateReceiveCount: "ApproximateReceiveCount";
1502
- readonly DeadLetterQueueSourceArn: "DeadLetterQueueSourceArn";
1503
- readonly MessageDeduplicationId: "MessageDeduplicationId";
1504
- readonly MessageGroupId: "MessageGroupId";
1505
- readonly SenderId: "SenderId";
1506
- readonly SentTimestamp: "SentTimestamp";
1507
- readonly SequenceNumber: "SequenceNumber";
1508
- };
1509
- /**
1510
- * @public
1511
- */
1512
- export type MessageSystemAttributeName = (typeof MessageSystemAttributeName)[keyof typeof MessageSystemAttributeName];
1513
1112
  /**
1514
1113
  * <p>Retrieves one or more messages from a specified queue.</p>
1515
1114
  * @public
@@ -2003,29 +1602,6 @@ export interface RemovePermissionRequest {
2003
1602
  */
2004
1603
  Label: string | undefined;
2005
1604
  }
2006
- /**
2007
- * <p>The message contains characters outside the allowed set.</p>
2008
- * @public
2009
- */
2010
- export declare class InvalidMessageContents extends __BaseException {
2011
- readonly name: "InvalidMessageContents";
2012
- readonly $fault: "client";
2013
- /**
2014
- * @internal
2015
- */
2016
- constructor(opts: __ExceptionOptionType<InvalidMessageContents, __BaseException>);
2017
- }
2018
- /**
2019
- * @public
2020
- * @enum
2021
- */
2022
- export declare const MessageSystemAttributeNameForSends: {
2023
- readonly AWSTraceHeader: "AWSTraceHeader";
2024
- };
2025
- /**
2026
- * @public
2027
- */
2028
- export type MessageSystemAttributeNameForSends = (typeof MessageSystemAttributeNameForSends)[keyof typeof MessageSystemAttributeNameForSends];
2029
1605
  /**
2030
1606
  * <p>The user-specified message system attribute value. For string data types, the
2031
1607
  * <code>Value</code> attribute has the same restrictions on the content as the message
@@ -2280,18 +1856,6 @@ export interface SendMessageResult {
2280
1856
  */
2281
1857
  SequenceNumber?: string | undefined;
2282
1858
  }
2283
- /**
2284
- * <p>The length of all the messages put together is more than the limit.</p>
2285
- * @public
2286
- */
2287
- export declare class BatchRequestTooLong extends __BaseException {
2288
- readonly name: "BatchRequestTooLong";
2289
- readonly $fault: "client";
2290
- /**
2291
- * @internal
2292
- */
2293
- constructor(opts: __ExceptionOptionType<BatchRequestTooLong, __BaseException>);
2294
- }
2295
1859
  /**
2296
1860
  * <p>Contains the details of a single Amazon SQS message along with an <code>Id</code>.</p>
2297
1861
  * @public
@@ -5,5 +5,7 @@ export { RuntimeExtension } from "./runtimeExtensions";
5
5
  export { SQSExtensionConfiguration } from "./extensionConfiguration";
6
6
  export * from "./commands";
7
7
  export * from "./pagination";
8
- export * from "./models";
8
+ export * from "./models/enums";
9
+ export * from "./models/errors";
10
+ export * from "./models/models_0";
9
11
  export { SQSServiceException } from "./models/SQSServiceException";
@@ -0,0 +1,45 @@
1
+ export declare const QueueAttributeName: {
2
+ readonly All: "All";
3
+ readonly ApproximateNumberOfMessages: "ApproximateNumberOfMessages";
4
+ readonly ApproximateNumberOfMessagesDelayed: "ApproximateNumberOfMessagesDelayed";
5
+ readonly ApproximateNumberOfMessagesNotVisible: "ApproximateNumberOfMessagesNotVisible";
6
+ readonly ContentBasedDeduplication: "ContentBasedDeduplication";
7
+ readonly CreatedTimestamp: "CreatedTimestamp";
8
+ readonly DeduplicationScope: "DeduplicationScope";
9
+ readonly DelaySeconds: "DelaySeconds";
10
+ readonly FifoQueue: "FifoQueue";
11
+ readonly FifoThroughputLimit: "FifoThroughputLimit";
12
+ readonly KmsDataKeyReusePeriodSeconds: "KmsDataKeyReusePeriodSeconds";
13
+ readonly KmsMasterKeyId: "KmsMasterKeyId";
14
+ readonly LastModifiedTimestamp: "LastModifiedTimestamp";
15
+ readonly MaximumMessageSize: "MaximumMessageSize";
16
+ readonly MessageRetentionPeriod: "MessageRetentionPeriod";
17
+ readonly Policy: "Policy";
18
+ readonly QueueArn: "QueueArn";
19
+ readonly ReceiveMessageWaitTimeSeconds: "ReceiveMessageWaitTimeSeconds";
20
+ readonly RedriveAllowPolicy: "RedriveAllowPolicy";
21
+ readonly RedrivePolicy: "RedrivePolicy";
22
+ readonly SqsManagedSseEnabled: "SqsManagedSseEnabled";
23
+ readonly VisibilityTimeout: "VisibilityTimeout";
24
+ };
25
+ export type QueueAttributeName =
26
+ (typeof QueueAttributeName)[keyof typeof QueueAttributeName];
27
+ export declare const MessageSystemAttributeName: {
28
+ readonly AWSTraceHeader: "AWSTraceHeader";
29
+ readonly All: "All";
30
+ readonly ApproximateFirstReceiveTimestamp: "ApproximateFirstReceiveTimestamp";
31
+ readonly ApproximateReceiveCount: "ApproximateReceiveCount";
32
+ readonly DeadLetterQueueSourceArn: "DeadLetterQueueSourceArn";
33
+ readonly MessageDeduplicationId: "MessageDeduplicationId";
34
+ readonly MessageGroupId: "MessageGroupId";
35
+ readonly SenderId: "SenderId";
36
+ readonly SentTimestamp: "SentTimestamp";
37
+ readonly SequenceNumber: "SequenceNumber";
38
+ };
39
+ export type MessageSystemAttributeName =
40
+ (typeof MessageSystemAttributeName)[keyof typeof MessageSystemAttributeName];
41
+ export declare const MessageSystemAttributeNameForSends: {
42
+ readonly AWSTraceHeader: "AWSTraceHeader";
43
+ };
44
+ export type MessageSystemAttributeNameForSends =
45
+ (typeof MessageSystemAttributeNameForSends)[keyof typeof MessageSystemAttributeNameForSends];