@aws-sdk/client-sqs 3.714.0 → 3.721.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 (25) hide show
  1. package/dist-types/commands/AddPermissionCommand.d.ts +9 -13
  2. package/dist-types/commands/CancelMessageMoveTaskCommand.d.ts +7 -12
  3. package/dist-types/commands/ChangeMessageVisibilityBatchCommand.d.ts +11 -14
  4. package/dist-types/commands/ChangeMessageVisibilityCommand.d.ts +10 -14
  5. package/dist-types/commands/CreateQueueCommand.d.ts +22 -24
  6. package/dist-types/commands/DeleteMessageBatchCommand.d.ts +11 -14
  7. package/dist-types/commands/DeleteMessageCommand.d.ts +16 -19
  8. package/dist-types/commands/DeleteQueueCommand.d.ts +9 -13
  9. package/dist-types/commands/GetQueueAttributesCommand.d.ts +9 -13
  10. package/dist-types/commands/GetQueueUrlCommand.d.ts +17 -19
  11. package/dist-types/commands/ListDeadLetterSourceQueuesCommand.d.ts +9 -13
  12. package/dist-types/commands/ListMessageMoveTasksCommand.d.ts +7 -12
  13. package/dist-types/commands/ListQueueTagsCommand.d.ts +9 -13
  14. package/dist-types/commands/ListQueuesCommand.d.ts +7 -12
  15. package/dist-types/commands/PurgeQueueCommand.d.ts +9 -13
  16. package/dist-types/commands/ReceiveMessageCommand.d.ts +16 -24
  17. package/dist-types/commands/RemovePermissionCommand.d.ts +9 -13
  18. package/dist-types/commands/SendMessageBatchCommand.d.ts +11 -14
  19. package/dist-types/commands/SendMessageCommand.d.ts +9 -13
  20. package/dist-types/commands/SetQueueAttributesCommand.d.ts +9 -13
  21. package/dist-types/commands/StartMessageMoveTaskCommand.d.ts +7 -12
  22. package/dist-types/commands/TagQueueCommand.d.ts +9 -13
  23. package/dist-types/commands/UntagQueueCommand.d.ts +9 -13
  24. package/dist-types/models/models_0.d.ts +58 -24
  25. package/package.json +13 -13
@@ -41,7 +41,7 @@ export interface AddPermissionRequest {
41
41
  Actions: string[] | undefined;
42
42
  }
43
43
  /**
44
- * <p>The <code>accountId</code> is invalid.</p>
44
+ * <p>The specified ID is invalid.</p>
45
45
  * @public
46
46
  */
47
47
  export declare class InvalidAddress extends __BaseException {
@@ -53,7 +53,7 @@ export declare class InvalidAddress extends __BaseException {
53
53
  constructor(opts: __ExceptionOptionType<InvalidAddress, __BaseException>);
54
54
  }
55
55
  /**
56
- * <p>When the request to a queue is not HTTPS and SigV4.</p>
56
+ * <p>The request was not made over HTTPS or did not use SigV4 for signing.</p>
57
57
  * @public
58
58
  */
59
59
  export declare class InvalidSecurity extends __BaseException {
@@ -80,7 +80,8 @@ export declare class OverLimit extends __BaseException {
80
80
  constructor(opts: __ExceptionOptionType<OverLimit, __BaseException>);
81
81
  }
82
82
  /**
83
- * <p>The specified queue doesn't exist.</p>
83
+ * <p>Ensure that the <code>QueueUrl</code> is correct and that the queue has not been
84
+ * deleted.</p>
84
85
  * @public
85
86
  */
86
87
  export declare class QueueDoesNotExist extends __BaseException {
@@ -95,18 +96,13 @@ export declare class QueueDoesNotExist extends __BaseException {
95
96
  * <p>The request was denied due to request throttling.</p>
96
97
  * <ul>
97
98
  * <li>
98
- * <p>The rate of requests per second exceeds the Amazon Web Services KMS request
99
- * quota for an account and Region. </p>
100
- * </li>
101
- * <li>
102
- * <p>A burst or sustained high rate of requests to change the state of the same KMS
103
- * key. This condition is often known as a "hot key."</p>
99
+ * <p>Exceeds the permitted request rate for the queue or for the recipient of the
100
+ * request.</p>
104
101
  * </li>
105
102
  * <li>
106
- * <p>Requests for operations on KMS keys in a Amazon Web Services CloudHSM key store
107
- * might be throttled at a lower-than-expected rate when the Amazon Web Services
108
- * CloudHSM cluster associated with the Amazon Web Services CloudHSM key store is
109
- * processing numerous commands, including those unrelated to the Amazon Web Services CloudHSM key store.</p>
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>
110
106
  * </li>
111
107
  * </ul>
112
108
  * @public
@@ -364,7 +360,8 @@ export declare class InvalidBatchEntryId extends __BaseException {
364
360
  constructor(opts: __ExceptionOptionType<InvalidBatchEntryId, __BaseException>);
365
361
  }
366
362
  /**
367
- * <p>The batch request contains more entries than permissible.</p>
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>
368
365
  * @public
369
366
  */
370
367
  export declare class TooManyEntriesInBatchRequest extends __BaseException {
@@ -1142,20 +1139,22 @@ export interface GetQueueAttributesResult {
1142
1139
  Attributes?: Partial<Record<QueueAttributeName, string>> | undefined;
1143
1140
  }
1144
1141
  /**
1145
- * <p></p>
1142
+ * <p>Retrieves the URL of an existing queue based on its name and, optionally, the Amazon Web Services
1143
+ * account ID. </p>
1146
1144
  * @public
1147
1145
  */
1148
1146
  export interface GetQueueUrlRequest {
1149
1147
  /**
1150
- * <p>The name of the queue whose URL must be fetched. Maximum 80 characters. Valid values:
1151
- * alphanumeric characters, hyphens (<code>-</code>), and underscores
1152
- * (<code>_</code>).</p>
1153
- * <p>Queue URLs and names are case-sensitive.</p>
1148
+ * <p>(Required) The name of the queue for which you want to fetch the URL. The name can be
1149
+ * up to 80 characters long and can include alphanumeric characters, hyphens (-), and
1150
+ * underscores (_). Queue URLs and names are case-sensitive.</p>
1154
1151
  * @public
1155
1152
  */
1156
1153
  QueueName: string | undefined;
1157
1154
  /**
1158
- * <p>The Amazon Web Services account ID of the account that created the queue.</p>
1155
+ * <p>(Optional) The Amazon Web Services account ID of the account that created the queue. This is only
1156
+ * required when you are attempting to access a queue owned by another
1157
+ * Amazon Web Services account.</p>
1159
1158
  * @public
1160
1159
  */
1161
1160
  QueueOwnerAWSAccountId?: string | undefined;
@@ -1512,7 +1511,7 @@ export declare const MessageSystemAttributeName: {
1512
1511
  */
1513
1512
  export type MessageSystemAttributeName = (typeof MessageSystemAttributeName)[keyof typeof MessageSystemAttributeName];
1514
1513
  /**
1515
- * <p></p>
1514
+ * <p>Retrieves one or more messages from a specified queue.</p>
1516
1515
  * @public
1517
1516
  */
1518
1517
  export interface ReceiveMessageRequest {
@@ -1526,7 +1525,7 @@ export interface ReceiveMessageRequest {
1526
1525
  * @deprecated
1527
1526
  *
1528
1527
  * <important>
1529
- * <p> This parameter has been deprecated but will be supported for backward
1528
+ * <p>This parameter has been discontinued but will be supported for backward
1530
1529
  * compatibility. To provide attribute names, you are encouraged to use
1531
1530
  * <code>MessageSystemAttributeNames</code>. </p>
1532
1531
  * </important>
@@ -1723,7 +1722,40 @@ export interface ReceiveMessageRequest {
1723
1722
  MaxNumberOfMessages?: number | undefined;
1724
1723
  /**
1725
1724
  * <p>The duration (in seconds) that the received messages are hidden from subsequent
1726
- * retrieve requests after being retrieved by a <code>ReceiveMessage</code> request.</p>
1725
+ * retrieve requests after being retrieved by a <code>ReceiveMessage</code> request. If not
1726
+ * specified, the default visibility timeout for the queue is used, which is 30
1727
+ * seconds.</p>
1728
+ * <p>Understanding <code>VisibilityTimeout</code>:</p>
1729
+ * <ul>
1730
+ * <li>
1731
+ * <p>When a message is received from a queue, it becomes temporarily invisible to
1732
+ * other consumers for the duration of the visibility timeout. This prevents
1733
+ * multiple consumers from processing the same message simultaneously. If the
1734
+ * message is not deleted or its visibility timeout is not extended before the
1735
+ * timeout expires, it becomes visible again and can be retrieved by other
1736
+ * consumers.</p>
1737
+ * </li>
1738
+ * <li>
1739
+ * <p>Setting an appropriate visibility timeout is crucial. If it's too short, the
1740
+ * message might become visible again before processing is complete, leading to
1741
+ * duplicate processing. If it's too long, it delays the reprocessing of messages
1742
+ * if the initial processing fails.</p>
1743
+ * </li>
1744
+ * <li>
1745
+ * <p>You can adjust the visibility timeout using the
1746
+ * <code>--visibility-timeout</code> parameter in the
1747
+ * <code>receive-message</code> command to match the processing time required
1748
+ * by your application.</p>
1749
+ * </li>
1750
+ * <li>
1751
+ * <p>A message that isn't deleted or a message whose visibility isn't extended
1752
+ * before the visibility timeout expires counts as a failed receive. Depending on
1753
+ * the configuration of the queue, the message might be sent to the dead-letter
1754
+ * queue.</p>
1755
+ * </li>
1756
+ * </ul>
1757
+ * <p>For more information, see <a href="https://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/sqs-visibility-timeout.html">Visibility Timeout</a> in the <i>Amazon SQS Developer
1758
+ * Guide</i>.</p>
1727
1759
  * @public
1728
1760
  */
1729
1761
  VisibilityTimeout?: number | undefined;
@@ -1731,7 +1763,9 @@ export interface ReceiveMessageRequest {
1731
1763
  * <p>The duration (in seconds) for which the call waits for a message to arrive in the
1732
1764
  * queue before returning. If a message is available, the call returns sooner than
1733
1765
  * <code>WaitTimeSeconds</code>. If no messages are available and the wait time
1734
- * expires, the call does not return a message list.</p>
1766
+ * expires, the call does not return a message list. If you are using the Java SDK, it
1767
+ * returns a <code>ReceiveMessageResponse</code> object, which has a empty list instead of
1768
+ * a Null object.</p>
1735
1769
  * <important>
1736
1770
  * <p>To avoid HTTP errors, ensure that the HTTP response timeout for
1737
1771
  * <code>ReceiveMessage</code> requests is longer than the
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-sqs",
3
3
  "description": "AWS SDK for JavaScript Sqs Client for Node.js, Browser and React Native",
4
- "version": "3.714.0",
4
+ "version": "3.721.0",
5
5
  "scripts": {
6
6
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
7
7
  "build:cjs": "node ../../scripts/compilation/inline client-sqs",
@@ -20,20 +20,20 @@
20
20
  "dependencies": {
21
21
  "@aws-crypto/sha256-browser": "5.2.0",
22
22
  "@aws-crypto/sha256-js": "5.2.0",
23
- "@aws-sdk/client-sso-oidc": "3.714.0",
24
- "@aws-sdk/client-sts": "3.714.0",
25
- "@aws-sdk/core": "3.714.0",
26
- "@aws-sdk/credential-provider-node": "3.714.0",
23
+ "@aws-sdk/client-sso-oidc": "3.721.0",
24
+ "@aws-sdk/client-sts": "3.721.0",
25
+ "@aws-sdk/core": "3.716.0",
26
+ "@aws-sdk/credential-provider-node": "3.721.0",
27
27
  "@aws-sdk/middleware-host-header": "3.714.0",
28
28
  "@aws-sdk/middleware-logger": "3.714.0",
29
29
  "@aws-sdk/middleware-recursion-detection": "3.714.0",
30
- "@aws-sdk/middleware-sdk-sqs": "3.714.0",
31
- "@aws-sdk/middleware-user-agent": "3.714.0",
30
+ "@aws-sdk/middleware-sdk-sqs": "3.716.0",
31
+ "@aws-sdk/middleware-user-agent": "3.721.0",
32
32
  "@aws-sdk/region-config-resolver": "3.714.0",
33
33
  "@aws-sdk/types": "3.714.0",
34
34
  "@aws-sdk/util-endpoints": "3.714.0",
35
35
  "@aws-sdk/util-user-agent-browser": "3.714.0",
36
- "@aws-sdk/util-user-agent-node": "3.714.0",
36
+ "@aws-sdk/util-user-agent-node": "3.721.0",
37
37
  "@smithy/config-resolver": "^3.0.13",
38
38
  "@smithy/core": "^2.5.5",
39
39
  "@smithy/fetch-http-handler": "^4.1.2",
@@ -41,21 +41,21 @@
41
41
  "@smithy/invalid-dependency": "^3.0.11",
42
42
  "@smithy/md5-js": "^3.0.11",
43
43
  "@smithy/middleware-content-length": "^3.0.13",
44
- "@smithy/middleware-endpoint": "^3.2.5",
45
- "@smithy/middleware-retry": "^3.0.30",
44
+ "@smithy/middleware-endpoint": "^3.2.6",
45
+ "@smithy/middleware-retry": "^3.0.31",
46
46
  "@smithy/middleware-serde": "^3.0.11",
47
47
  "@smithy/middleware-stack": "^3.0.11",
48
48
  "@smithy/node-config-provider": "^3.1.12",
49
49
  "@smithy/node-http-handler": "^3.3.2",
50
50
  "@smithy/protocol-http": "^4.1.8",
51
- "@smithy/smithy-client": "^3.5.0",
51
+ "@smithy/smithy-client": "^3.5.1",
52
52
  "@smithy/types": "^3.7.2",
53
53
  "@smithy/url-parser": "^3.0.11",
54
54
  "@smithy/util-base64": "^3.0.0",
55
55
  "@smithy/util-body-length-browser": "^3.0.0",
56
56
  "@smithy/util-body-length-node": "^3.0.0",
57
- "@smithy/util-defaults-mode-browser": "^3.0.30",
58
- "@smithy/util-defaults-mode-node": "^3.0.30",
57
+ "@smithy/util-defaults-mode-browser": "^3.0.31",
58
+ "@smithy/util-defaults-mode-node": "^3.0.31",
59
59
  "@smithy/util-endpoints": "^2.1.7",
60
60
  "@smithy/util-middleware": "^3.0.11",
61
61
  "@smithy/util-retry": "^3.0.11",