@aws-sdk/client-sqs 3.441.0 → 3.446.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 (85) hide show
  1. package/README.md +8 -7
  2. package/dist-cjs/commands/AddPermissionCommand.js +3 -3
  3. package/dist-cjs/commands/CancelMessageMoveTaskCommand.js +3 -3
  4. package/dist-cjs/commands/ChangeMessageVisibilityBatchCommand.js +3 -3
  5. package/dist-cjs/commands/ChangeMessageVisibilityCommand.js +3 -3
  6. package/dist-cjs/commands/CreateQueueCommand.js +3 -3
  7. package/dist-cjs/commands/DeleteMessageBatchCommand.js +3 -3
  8. package/dist-cjs/commands/DeleteMessageCommand.js +3 -3
  9. package/dist-cjs/commands/DeleteQueueCommand.js +3 -3
  10. package/dist-cjs/commands/GetQueueAttributesCommand.js +3 -3
  11. package/dist-cjs/commands/GetQueueUrlCommand.js +3 -3
  12. package/dist-cjs/commands/ListDeadLetterSourceQueuesCommand.js +3 -3
  13. package/dist-cjs/commands/ListMessageMoveTasksCommand.js +3 -3
  14. package/dist-cjs/commands/ListQueueTagsCommand.js +3 -3
  15. package/dist-cjs/commands/ListQueuesCommand.js +3 -3
  16. package/dist-cjs/commands/PurgeQueueCommand.js +3 -3
  17. package/dist-cjs/commands/ReceiveMessageCommand.js +3 -3
  18. package/dist-cjs/commands/RemovePermissionCommand.js +3 -3
  19. package/dist-cjs/commands/SendMessageBatchCommand.js +3 -3
  20. package/dist-cjs/commands/SendMessageCommand.js +3 -3
  21. package/dist-cjs/commands/SetQueueAttributesCommand.js +3 -3
  22. package/dist-cjs/commands/StartMessageMoveTaskCommand.js +3 -3
  23. package/dist-cjs/commands/TagQueueCommand.js +3 -3
  24. package/dist-cjs/commands/UntagQueueCommand.js +3 -3
  25. package/dist-cjs/models/models_0.js +171 -21
  26. package/dist-cjs/protocols/Aws_json1_0.js +2025 -0
  27. package/dist-es/commands/AddPermissionCommand.js +1 -1
  28. package/dist-es/commands/CancelMessageMoveTaskCommand.js +1 -1
  29. package/dist-es/commands/ChangeMessageVisibilityBatchCommand.js +1 -1
  30. package/dist-es/commands/ChangeMessageVisibilityCommand.js +1 -1
  31. package/dist-es/commands/CreateQueueCommand.js +1 -1
  32. package/dist-es/commands/DeleteMessageBatchCommand.js +1 -1
  33. package/dist-es/commands/DeleteMessageCommand.js +1 -1
  34. package/dist-es/commands/DeleteQueueCommand.js +1 -1
  35. package/dist-es/commands/GetQueueAttributesCommand.js +1 -1
  36. package/dist-es/commands/GetQueueUrlCommand.js +1 -1
  37. package/dist-es/commands/ListDeadLetterSourceQueuesCommand.js +1 -1
  38. package/dist-es/commands/ListMessageMoveTasksCommand.js +1 -1
  39. package/dist-es/commands/ListQueueTagsCommand.js +1 -1
  40. package/dist-es/commands/ListQueuesCommand.js +1 -1
  41. package/dist-es/commands/PurgeQueueCommand.js +1 -1
  42. package/dist-es/commands/ReceiveMessageCommand.js +1 -1
  43. package/dist-es/commands/RemovePermissionCommand.js +1 -1
  44. package/dist-es/commands/SendMessageBatchCommand.js +1 -1
  45. package/dist-es/commands/SendMessageCommand.js +1 -1
  46. package/dist-es/commands/SetQueueAttributesCommand.js +1 -1
  47. package/dist-es/commands/StartMessageMoveTaskCommand.js +1 -1
  48. package/dist-es/commands/TagQueueCommand.js +1 -1
  49. package/dist-es/commands/UntagQueueCommand.js +1 -1
  50. package/dist-es/models/models_0.js +155 -16
  51. package/dist-es/protocols/Aws_json1_0.js +1976 -0
  52. package/dist-types/SQS.d.ts +8 -7
  53. package/dist-types/SQSClient.d.ts +8 -7
  54. package/dist-types/commands/AddPermissionCommand.d.ts +46 -11
  55. package/dist-types/commands/CancelMessageMoveTaskCommand.d.ts +25 -0
  56. package/dist-types/commands/ChangeMessageVisibilityBatchCommand.d.ts +34 -1
  57. package/dist-types/commands/ChangeMessageVisibilityCommand.d.ts +48 -8
  58. package/dist-types/commands/CreateQueueCommand.d.ts +45 -10
  59. package/dist-types/commands/DeleteMessageBatchCommand.d.ts +34 -1
  60. package/dist-types/commands/DeleteMessageCommand.d.ts +37 -6
  61. package/dist-types/commands/DeleteQueueCommand.d.ts +34 -3
  62. package/dist-types/commands/GetQueueAttributesCommand.d.ts +33 -1
  63. package/dist-types/commands/GetQueueUrlCommand.d.ts +30 -2
  64. package/dist-types/commands/ListDeadLetterSourceQueuesCommand.d.ts +28 -0
  65. package/dist-types/commands/ListMessageMoveTasksCommand.d.ts +26 -1
  66. package/dist-types/commands/ListQueueTagsCommand.d.ts +38 -6
  67. package/dist-types/commands/ListQueuesCommand.d.ts +32 -4
  68. package/dist-types/commands/PurgeQueueCommand.d.ts +28 -0
  69. package/dist-types/commands/ReceiveMessageCommand.d.ts +73 -6
  70. package/dist-types/commands/RemovePermissionCommand.d.ts +37 -4
  71. package/dist-types/commands/SendMessageBatchCommand.d.ts +78 -9
  72. package/dist-types/commands/SendMessageCommand.d.ts +70 -3
  73. package/dist-types/commands/SetQueueAttributesCommand.d.ts +53 -9
  74. package/dist-types/commands/StartMessageMoveTaskCommand.d.ts +25 -0
  75. package/dist-types/commands/TagQueueCommand.d.ts +44 -10
  76. package/dist-types/commands/UntagQueueCommand.d.ts +38 -5
  77. package/dist-types/index.d.ts +10 -7
  78. package/dist-types/models/models_0.d.ts +633 -374
  79. package/dist-types/protocols/{Aws_query.d.ts → Aws_json1_0.d.ts} +46 -46
  80. package/dist-types/ts3.4/index.d.ts +2 -0
  81. package/dist-types/ts3.4/models/models_0.d.ts +87 -22
  82. package/package.json +4 -5
  83. package/dist-cjs/protocols/Aws_query.js +0 -2367
  84. package/dist-es/protocols/Aws_query.js +0 -2318
  85. /package/dist-types/ts3.4/protocols/{Aws_query.d.ts → Aws_json1_0.d.ts} +0 -0
@@ -25,7 +25,8 @@ export interface GetQueueAttributesCommandOutput extends GetQueueAttributesResul
25
25
  * @public
26
26
  * <p>Gets attributes for the specified queue.</p>
27
27
  * <note>
28
- * <p>To determine whether a queue is <a href="https://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/FIFO-queues.html">FIFO</a>, you can check whether <code>QueueName</code> ends with the <code>.fifo</code> suffix.</p>
28
+ * <p>To determine whether a queue is <a href="https://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/FIFO-queues.html">FIFO</a>, you can check whether <code>QueueName</code> ends with the
29
+ * <code>.fifo</code> suffix.</p>
29
30
  * </note>
30
31
  * @example
31
32
  * Use a bare-bones client and the command you need to make an API call.
@@ -55,9 +56,40 @@ export interface GetQueueAttributesCommandOutput extends GetQueueAttributesResul
55
56
  * @see {@link GetQueueAttributesCommandOutput} for command's `response` shape.
56
57
  * @see {@link SQSClientResolvedConfig | config} for SQSClient's `config` shape.
57
58
  *
59
+ * @throws {@link InvalidAddress} (client fault)
60
+ * <p>The <code>accountId</code> is invalid.</p>
61
+ *
58
62
  * @throws {@link InvalidAttributeName} (client fault)
59
63
  * <p>The specified attribute doesn't exist.</p>
60
64
  *
65
+ * @throws {@link InvalidSecurity} (client fault)
66
+ * <p>When the request to a queue is not HTTPS and SigV4.</p>
67
+ *
68
+ * @throws {@link QueueDoesNotExist} (client fault)
69
+ * <p>The specified queue doesn't exist.</p>
70
+ *
71
+ * @throws {@link RequestThrottled} (client fault)
72
+ * <p>The request was denied due to request throttling.</p>
73
+ * <ul>
74
+ * <li>
75
+ * <p>The rate of requests per second exceeds the Amazon Web Services KMS request quota for an
76
+ * account and Region. </p>
77
+ * </li>
78
+ * <li>
79
+ * <p>A burst or sustained high rate of requests to change the state of the same KMS
80
+ * key. This condition is often known as a "hot key."</p>
81
+ * </li>
82
+ * <li>
83
+ * <p>Requests for operations on KMS keys in a Amazon Web Services CloudHSM key store
84
+ * might be throttled at a lower-than-expected rate when the Amazon Web Services
85
+ * CloudHSM cluster associated with the Amazon Web Services CloudHSM key store is
86
+ * processing numerous commands, including those unrelated to the Amazon Web Services CloudHSM key store.</p>
87
+ * </li>
88
+ * </ul>
89
+ *
90
+ * @throws {@link UnsupportedOperation} (client fault)
91
+ * <p>Error code 400. Unsupported operation.</p>
92
+ *
61
93
  * @throws {@link SQSServiceException}
62
94
  * <p>Base exception class for all service exceptions from SQS service.</p>
63
95
  *
@@ -30,8 +30,8 @@ export interface GetQueueUrlCommandOutput extends GetQueueUrlResult, __MetadataB
30
30
  * information about shared queue access, see <code>
31
31
  * <a>AddPermission</a>
32
32
  * </code>
33
- * or see <a href="https://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/sqs-writing-an-sqs-policy.html#write-messages-to-shared-queue">Allow Developers to Write Messages to a Shared Queue</a> in the <i>Amazon SQS
34
- * Developer Guide</i>. </p>
33
+ * or see <a href="https://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/sqs-writing-an-sqs-policy.html#write-messages-to-shared-queue">Allow Developers to Write Messages to a Shared Queue</a> in the
34
+ * <i>Amazon SQS Developer Guide</i>. </p>
35
35
  * @example
36
36
  * Use a bare-bones client and the command you need to make an API call.
37
37
  * ```javascript
@@ -56,9 +56,37 @@ export interface GetQueueUrlCommandOutput extends GetQueueUrlResult, __MetadataB
56
56
  * @see {@link GetQueueUrlCommandOutput} for command's `response` shape.
57
57
  * @see {@link SQSClientResolvedConfig | config} for SQSClient's `config` shape.
58
58
  *
59
+ * @throws {@link InvalidAddress} (client fault)
60
+ * <p>The <code>accountId</code> is invalid.</p>
61
+ *
62
+ * @throws {@link InvalidSecurity} (client fault)
63
+ * <p>When the request to a queue is not HTTPS and SigV4.</p>
64
+ *
59
65
  * @throws {@link QueueDoesNotExist} (client fault)
60
66
  * <p>The specified queue doesn't exist.</p>
61
67
  *
68
+ * @throws {@link RequestThrottled} (client fault)
69
+ * <p>The request was denied due to request throttling.</p>
70
+ * <ul>
71
+ * <li>
72
+ * <p>The rate of requests per second exceeds the Amazon Web Services KMS request quota for an
73
+ * account and Region. </p>
74
+ * </li>
75
+ * <li>
76
+ * <p>A burst or sustained high rate of requests to change the state of the same KMS
77
+ * key. This condition is often known as a "hot key."</p>
78
+ * </li>
79
+ * <li>
80
+ * <p>Requests for operations on KMS keys in a Amazon Web Services CloudHSM key store
81
+ * might be throttled at a lower-than-expected rate when the Amazon Web Services
82
+ * CloudHSM cluster associated with the Amazon Web Services CloudHSM key store is
83
+ * processing numerous commands, including those unrelated to the Amazon Web Services CloudHSM key store.</p>
84
+ * </li>
85
+ * </ul>
86
+ *
87
+ * @throws {@link UnsupportedOperation} (client fault)
88
+ * <p>Error code 400. Unsupported operation.</p>
89
+ *
62
90
  * @throws {@link SQSServiceException}
63
91
  * <p>Base exception class for all service exceptions from SQS service.</p>
64
92
  *
@@ -62,9 +62,37 @@ export interface ListDeadLetterSourceQueuesCommandOutput extends ListDeadLetterS
62
62
  * @see {@link ListDeadLetterSourceQueuesCommandOutput} for command's `response` shape.
63
63
  * @see {@link SQSClientResolvedConfig | config} for SQSClient's `config` shape.
64
64
  *
65
+ * @throws {@link InvalidAddress} (client fault)
66
+ * <p>The <code>accountId</code> is invalid.</p>
67
+ *
68
+ * @throws {@link InvalidSecurity} (client fault)
69
+ * <p>When the request to a queue is not HTTPS and SigV4.</p>
70
+ *
65
71
  * @throws {@link QueueDoesNotExist} (client fault)
66
72
  * <p>The specified queue doesn't exist.</p>
67
73
  *
74
+ * @throws {@link RequestThrottled} (client fault)
75
+ * <p>The request was denied due to request throttling.</p>
76
+ * <ul>
77
+ * <li>
78
+ * <p>The rate of requests per second exceeds the Amazon Web Services KMS request quota for an
79
+ * account and Region. </p>
80
+ * </li>
81
+ * <li>
82
+ * <p>A burst or sustained high rate of requests to change the state of the same KMS
83
+ * key. This condition is often known as a "hot key."</p>
84
+ * </li>
85
+ * <li>
86
+ * <p>Requests for operations on KMS keys in a Amazon Web Services CloudHSM key store
87
+ * might be throttled at a lower-than-expected rate when the Amazon Web Services
88
+ * CloudHSM cluster associated with the Amazon Web Services CloudHSM key store is
89
+ * processing numerous commands, including those unrelated to the Amazon Web Services CloudHSM key store.</p>
90
+ * </li>
91
+ * </ul>
92
+ *
93
+ * @throws {@link UnsupportedOperation} (client fault)
94
+ * <p>Error code 400. Unsupported operation.</p>
95
+ *
68
96
  * @throws {@link SQSServiceException}
69
97
  * <p>Base exception class for all service exceptions from SQS service.</p>
70
98
  *
@@ -58,7 +58,7 @@ export interface ListMessageMoveTasksCommandOutput extends ListMessageMoveTasksR
58
58
  * // Results: [ // ListMessageMoveTasksResultEntryList
59
59
  * // { // ListMessageMoveTasksResultEntry
60
60
  * // TaskHandle: "STRING_VALUE",
61
- * // Status: "STRING_VALUE",
61
+ * // Status: "RUNNING" || "FAILED" || "CANCELLING" || "CANCELLED" || "COMPLETED",
62
62
  * // SourceArn: "STRING_VALUE",
63
63
  * // DestinationArn: "STRING_VALUE",
64
64
  * // MaxNumberOfMessagesPerSecond: Number("int"),
@@ -78,6 +78,31 @@ export interface ListMessageMoveTasksCommandOutput extends ListMessageMoveTasksR
78
78
  * @see {@link ListMessageMoveTasksCommandOutput} for command's `response` shape.
79
79
  * @see {@link SQSClientResolvedConfig | config} for SQSClient's `config` shape.
80
80
  *
81
+ * @throws {@link InvalidAddress} (client fault)
82
+ * <p>The <code>accountId</code> is invalid.</p>
83
+ *
84
+ * @throws {@link InvalidSecurity} (client fault)
85
+ * <p>When the request to a queue is not HTTPS and SigV4.</p>
86
+ *
87
+ * @throws {@link RequestThrottled} (client fault)
88
+ * <p>The request was denied due to request throttling.</p>
89
+ * <ul>
90
+ * <li>
91
+ * <p>The rate of requests per second exceeds the Amazon Web Services KMS request quota for an
92
+ * account and Region. </p>
93
+ * </li>
94
+ * <li>
95
+ * <p>A burst or sustained high rate of requests to change the state of the same KMS
96
+ * key. This condition is often known as a "hot key."</p>
97
+ * </li>
98
+ * <li>
99
+ * <p>Requests for operations on KMS keys in a Amazon Web Services CloudHSM key store
100
+ * might be throttled at a lower-than-expected rate when the Amazon Web Services
101
+ * CloudHSM cluster associated with the Amazon Web Services CloudHSM key store is
102
+ * processing numerous commands, including those unrelated to the Amazon Web Services CloudHSM key store.</p>
103
+ * </li>
104
+ * </ul>
105
+ *
81
106
  * @throws {@link ResourceNotFoundException} (client fault)
82
107
  * <p>One or more specified resources don't exist.</p>
83
108
  *
@@ -23,13 +23,14 @@ export interface ListQueueTagsCommandOutput extends ListQueueTagsResult, __Metad
23
23
  }
24
24
  /**
25
25
  * @public
26
- * <p>List all cost allocation tags added to the specified Amazon SQS queue.
27
- * For an overview, see <a href="https://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/sqs-queue-tags.html">Tagging
28
- * Your Amazon SQS Queues</a> in the <i>Amazon SQS Developer Guide</i>.</p>
26
+ * <p>List all cost allocation tags added to the specified Amazon SQS queue. For an
27
+ * overview, see <a href="https://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/sqs-queue-tags.html">Tagging
28
+ * Your Amazon SQS Queues</a> in the <i>Amazon SQS Developer
29
+ * Guide</i>.</p>
29
30
  * <note>
30
- * <p>Cross-account permissions don't apply to this action. For more information,
31
- * see <a href="https://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/sqs-customer-managed-policy-examples.html#grant-cross-account-permissions-to-role-and-user-name">Grant
32
- * cross-account permissions to a role and a username</a> in the <i>Amazon SQS Developer Guide</i>.</p>
31
+ * <p>Cross-account permissions don't apply to this action. For more information, see
32
+ * <a href="https://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/sqs-customer-managed-policy-examples.html#grant-cross-account-permissions-to-role-and-user-name">Grant cross-account permissions to a role and a username</a> in the
33
+ * <i>Amazon SQS Developer Guide</i>.</p>
33
34
  * </note>
34
35
  * @example
35
36
  * Use a bare-bones client and the command you need to make an API call.
@@ -56,6 +57,37 @@ export interface ListQueueTagsCommandOutput extends ListQueueTagsResult, __Metad
56
57
  * @see {@link ListQueueTagsCommandOutput} for command's `response` shape.
57
58
  * @see {@link SQSClientResolvedConfig | config} for SQSClient's `config` shape.
58
59
  *
60
+ * @throws {@link InvalidAddress} (client fault)
61
+ * <p>The <code>accountId</code> is invalid.</p>
62
+ *
63
+ * @throws {@link InvalidSecurity} (client fault)
64
+ * <p>When the request to a queue is not HTTPS and SigV4.</p>
65
+ *
66
+ * @throws {@link QueueDoesNotExist} (client fault)
67
+ * <p>The specified queue doesn't exist.</p>
68
+ *
69
+ * @throws {@link RequestThrottled} (client fault)
70
+ * <p>The request was denied due to request throttling.</p>
71
+ * <ul>
72
+ * <li>
73
+ * <p>The rate of requests per second exceeds the Amazon Web Services KMS request quota for an
74
+ * account and Region. </p>
75
+ * </li>
76
+ * <li>
77
+ * <p>A burst or sustained high rate of requests to change the state of the same KMS
78
+ * key. This condition is often known as a "hot key."</p>
79
+ * </li>
80
+ * <li>
81
+ * <p>Requests for operations on KMS keys in a Amazon Web Services CloudHSM key store
82
+ * might be throttled at a lower-than-expected rate when the Amazon Web Services
83
+ * CloudHSM cluster associated with the Amazon Web Services CloudHSM key store is
84
+ * processing numerous commands, including those unrelated to the Amazon Web Services CloudHSM key store.</p>
85
+ * </li>
86
+ * </ul>
87
+ *
88
+ * @throws {@link UnsupportedOperation} (client fault)
89
+ * <p>Error code 400. Unsupported operation.</p>
90
+ *
59
91
  * @throws {@link SQSServiceException}
60
92
  * <p>Base exception class for all service exceptions from SQS service.</p>
61
93
  *
@@ -35,9 +35,9 @@ export interface ListQueuesCommandOutput extends ListQueuesResult, __MetadataBea
35
35
  * Use <code>NextToken</code> as a parameter in your next request to
36
36
  * <code>listQueues</code> to receive the next page of results. </p>
37
37
  * <note>
38
- * <p>Cross-account permissions don't apply to this action. For more information,
39
- * see <a href="https://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/sqs-customer-managed-policy-examples.html#grant-cross-account-permissions-to-role-and-user-name">Grant
40
- * cross-account permissions to a role and a username</a> in the <i>Amazon SQS Developer Guide</i>.</p>
38
+ * <p>Cross-account permissions don't apply to this action. For more information, see
39
+ * <a href="https://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/sqs-customer-managed-policy-examples.html#grant-cross-account-permissions-to-role-and-user-name">Grant cross-account permissions to a role and a username</a> in the
40
+ * <i>Amazon SQS Developer Guide</i>.</p>
41
41
  * </note>
42
42
  * @example
43
43
  * Use a bare-bones client and the command you need to make an API call.
@@ -53,10 +53,10 @@ export interface ListQueuesCommandOutput extends ListQueuesResult, __MetadataBea
53
53
  * const command = new ListQueuesCommand(input);
54
54
  * const response = await client.send(command);
55
55
  * // { // ListQueuesResult
56
- * // NextToken: "STRING_VALUE",
57
56
  * // QueueUrls: [ // QueueUrlList
58
57
  * // "STRING_VALUE",
59
58
  * // ],
59
+ * // NextToken: "STRING_VALUE",
60
60
  * // };
61
61
  *
62
62
  * ```
@@ -67,6 +67,34 @@ export interface ListQueuesCommandOutput extends ListQueuesResult, __MetadataBea
67
67
  * @see {@link ListQueuesCommandOutput} for command's `response` shape.
68
68
  * @see {@link SQSClientResolvedConfig | config} for SQSClient's `config` shape.
69
69
  *
70
+ * @throws {@link InvalidAddress} (client fault)
71
+ * <p>The <code>accountId</code> is invalid.</p>
72
+ *
73
+ * @throws {@link InvalidSecurity} (client fault)
74
+ * <p>When the request to a queue is not HTTPS and SigV4.</p>
75
+ *
76
+ * @throws {@link RequestThrottled} (client fault)
77
+ * <p>The request was denied due to request throttling.</p>
78
+ * <ul>
79
+ * <li>
80
+ * <p>The rate of requests per second exceeds the Amazon Web Services KMS request quota for an
81
+ * account and Region. </p>
82
+ * </li>
83
+ * <li>
84
+ * <p>A burst or sustained high rate of requests to change the state of the same KMS
85
+ * key. This condition is often known as a "hot key."</p>
86
+ * </li>
87
+ * <li>
88
+ * <p>Requests for operations on KMS keys in a Amazon Web Services CloudHSM key store
89
+ * might be throttled at a lower-than-expected rate when the Amazon Web Services
90
+ * CloudHSM cluster associated with the Amazon Web Services CloudHSM key store is
91
+ * processing numerous commands, including those unrelated to the Amazon Web Services CloudHSM key store.</p>
92
+ * </li>
93
+ * </ul>
94
+ *
95
+ * @throws {@link UnsupportedOperation} (client fault)
96
+ * <p>Error code 400. Unsupported operation.</p>
97
+ *
70
98
  * @throws {@link SQSServiceException}
71
99
  * <p>Base exception class for all service exceptions from SQS service.</p>
72
100
  *
@@ -57,6 +57,12 @@ export interface PurgeQueueCommandOutput extends __MetadataBearer {
57
57
  * @see {@link PurgeQueueCommandOutput} for command's `response` shape.
58
58
  * @see {@link SQSClientResolvedConfig | config} for SQSClient's `config` shape.
59
59
  *
60
+ * @throws {@link InvalidAddress} (client fault)
61
+ * <p>The <code>accountId</code> is invalid.</p>
62
+ *
63
+ * @throws {@link InvalidSecurity} (client fault)
64
+ * <p>When the request to a queue is not HTTPS and SigV4.</p>
65
+ *
60
66
  * @throws {@link PurgeQueueInProgress} (client fault)
61
67
  * <p>Indicates that the specified queue previously received a <code>PurgeQueue</code>
62
68
  * request within the last 60 seconds (the time it can take to delete the messages in the
@@ -65,6 +71,28 @@ export interface PurgeQueueCommandOutput extends __MetadataBearer {
65
71
  * @throws {@link QueueDoesNotExist} (client fault)
66
72
  * <p>The specified queue doesn't exist.</p>
67
73
  *
74
+ * @throws {@link RequestThrottled} (client fault)
75
+ * <p>The request was denied due to request throttling.</p>
76
+ * <ul>
77
+ * <li>
78
+ * <p>The rate of requests per second exceeds the Amazon Web Services KMS request quota for an
79
+ * account and Region. </p>
80
+ * </li>
81
+ * <li>
82
+ * <p>A burst or sustained high rate of requests to change the state of the same KMS
83
+ * key. This condition is often known as a "hot key."</p>
84
+ * </li>
85
+ * <li>
86
+ * <p>Requests for operations on KMS keys in a Amazon Web Services CloudHSM key store
87
+ * might be throttled at a lower-than-expected rate when the Amazon Web Services
88
+ * CloudHSM cluster associated with the Amazon Web Services CloudHSM key store is
89
+ * processing numerous commands, including those unrelated to the Amazon Web Services CloudHSM key store.</p>
90
+ * </li>
91
+ * </ul>
92
+ *
93
+ * @throws {@link UnsupportedOperation} (client fault)
94
+ * <p>Error code 400. Unsupported operation.</p>
95
+ *
68
96
  * @throws {@link SQSServiceException}
69
97
  * <p>Base exception class for all service exceptions from SQS service.</p>
70
98
  *
@@ -25,8 +25,8 @@ export interface ReceiveMessageCommandOutput extends ReceiveMessageResult, __Met
25
25
  * @public
26
26
  * <p>Retrieves one or more messages (up to 10), from the specified queue. Using the
27
27
  * <code>WaitTimeSeconds</code> parameter enables long-poll support. For more
28
- * information, see <a href="https://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/sqs-long-polling.html">Amazon SQS
29
- * Long Polling</a> in the <i>Amazon SQS Developer Guide</i>. </p>
28
+ * information, see <a href="https://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/sqs-long-polling.html">Amazon
29
+ * SQS Long Polling</a> in the <i>Amazon SQS Developer Guide</i>. </p>
30
30
  * <p>Short poll is the default behavior where a weighted random set of machines is sampled
31
31
  * on a <code>ReceiveMessage</code> call. Thus, only the messages on the sampled machines
32
32
  * are returned. If the number of messages in the queue is small (fewer than 1,000), you
@@ -60,15 +60,17 @@ export interface ReceiveMessageCommandOutput extends ReceiveMessageResult, __Met
60
60
  * more information, see <a href="https://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/sqs-queue-message-identifiers.html">Queue and Message Identifiers</a> in the <i>Amazon SQS Developer
61
61
  * Guide</i>.</p>
62
62
  * <p>You can provide the <code>VisibilityTimeout</code> parameter in your request. The
63
- * parameter is applied to the messages that Amazon SQS returns in the response. If you don't
64
- * include the parameter, the overall visibility timeout for the queue is used for the
65
- * returned messages. 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
63
+ * parameter is applied to the messages that Amazon SQS returns in the response. If you
64
+ * don't include the parameter, the overall visibility timeout for the queue is used for
65
+ * the returned messages. 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
66
66
  * Guide</i>.</p>
67
67
  * <p>A message that isn't deleted or a message whose visibility isn't extended before the
68
68
  * visibility timeout expires counts as a failed receive. Depending on the configuration of
69
69
  * the queue, the message might be sent to the dead-letter queue.</p>
70
70
  * <note>
71
- * <p>In the future, new attributes might be added. If you write code that calls this action, we recommend that you structure your code so that it can handle new attributes gracefully.</p>
71
+ * <p>In the future, new attributes might be added. If you write code that calls this
72
+ * action, we recommend that you structure your code so that it can handle new
73
+ * attributes gracefully.</p>
72
74
  * </note>
73
75
  * @example
74
76
  * Use a bare-bones client and the command you need to make an API call.
@@ -127,12 +129,77 @@ export interface ReceiveMessageCommandOutput extends ReceiveMessageResult, __Met
127
129
  * @see {@link ReceiveMessageCommandOutput} for command's `response` shape.
128
130
  * @see {@link SQSClientResolvedConfig | config} for SQSClient's `config` shape.
129
131
  *
132
+ * @throws {@link InvalidAddress} (client fault)
133
+ * <p>The <code>accountId</code> is invalid.</p>
134
+ *
135
+ * @throws {@link InvalidSecurity} (client fault)
136
+ * <p>When the request to a queue is not HTTPS and SigV4.</p>
137
+ *
138
+ * @throws {@link KmsAccessDenied} (client fault)
139
+ * <p>The caller doesn't have the required KMS access.</p>
140
+ *
141
+ * @throws {@link KmsDisabled} (client fault)
142
+ * <p>The request was denied due to request throttling.</p>
143
+ *
144
+ * @throws {@link KmsInvalidKeyUsage} (client fault)
145
+ * <p>The request was rejected for one of the following reasons:</p>
146
+ * <ul>
147
+ * <li>
148
+ * <p>The KeyUsage value of the KMS key is incompatible with the API
149
+ * operation.</p>
150
+ * </li>
151
+ * <li>
152
+ * <p>The encryption algorithm or signing algorithm specified for the operation is
153
+ * incompatible with the type of key material in the KMS key (KeySpec).</p>
154
+ * </li>
155
+ * </ul>
156
+ *
157
+ * @throws {@link KmsInvalidState} (client fault)
158
+ * <p>The request was rejected because the state of the specified resource is not valid for
159
+ * this request.</p>
160
+ *
161
+ * @throws {@link KmsNotFound} (client fault)
162
+ * <p>The request was rejected because the specified entity or resource could not be found.
163
+ * </p>
164
+ *
165
+ * @throws {@link KmsOptInRequired} (client fault)
166
+ * <p>The request was rejected because the specified key policy isn't syntactically or
167
+ * semantically correct.</p>
168
+ *
169
+ * @throws {@link KmsThrottled} (client fault)
170
+ * <p>Amazon Web Services KMS throttles requests for the following conditions.</p>
171
+ *
130
172
  * @throws {@link OverLimit} (client fault)
131
173
  * <p>The specified action violates a limit. For example, <code>ReceiveMessage</code>
132
174
  * returns this error if the maximum number of in flight messages is reached and
133
175
  * <code>AddPermission</code> returns this error if the maximum number of permissions
134
176
  * for the queue is reached.</p>
135
177
  *
178
+ * @throws {@link QueueDoesNotExist} (client fault)
179
+ * <p>The specified queue doesn't exist.</p>
180
+ *
181
+ * @throws {@link RequestThrottled} (client fault)
182
+ * <p>The request was denied due to request throttling.</p>
183
+ * <ul>
184
+ * <li>
185
+ * <p>The rate of requests per second exceeds the Amazon Web Services KMS request quota for an
186
+ * account and Region. </p>
187
+ * </li>
188
+ * <li>
189
+ * <p>A burst or sustained high rate of requests to change the state of the same KMS
190
+ * key. This condition is often known as a "hot key."</p>
191
+ * </li>
192
+ * <li>
193
+ * <p>Requests for operations on KMS keys in a Amazon Web Services CloudHSM key store
194
+ * might be throttled at a lower-than-expected rate when the Amazon Web Services
195
+ * CloudHSM cluster associated with the Amazon Web Services CloudHSM key store is
196
+ * processing numerous commands, including those unrelated to the Amazon Web Services CloudHSM key store.</p>
197
+ * </li>
198
+ * </ul>
199
+ *
200
+ * @throws {@link UnsupportedOperation} (client fault)
201
+ * <p>Error code 400. Unsupported operation.</p>
202
+ *
136
203
  * @throws {@link SQSServiceException}
137
204
  * <p>Base exception class for all service exceptions from SQS service.</p>
138
205
  *
@@ -31,12 +31,14 @@ export interface RemovePermissionCommandOutput extends __MetadataBearer {
31
31
  * <p>Only the owner of a queue can remove permissions from it.</p>
32
32
  * </li>
33
33
  * <li>
34
- * <p>Cross-account permissions don't apply to this action. For more information,
35
- * see <a href="https://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/sqs-customer-managed-policy-examples.html#grant-cross-account-permissions-to-role-and-user-name">Grant
36
- * cross-account permissions to a role and a username</a> in the <i>Amazon SQS Developer Guide</i>.</p>
34
+ * <p>Cross-account permissions don't apply to this action. For more
35
+ * information, see <a href="https://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/sqs-customer-managed-policy-examples.html#grant-cross-account-permissions-to-role-and-user-name">Grant cross-account permissions to a role and a username</a> in the
36
+ * <i>Amazon SQS Developer Guide</i>.</p>
37
37
  * </li>
38
38
  * <li>
39
- * <p>To remove the ability to change queue permissions, you must deny permission to the <code>AddPermission</code>, <code>RemovePermission</code>, and <code>SetQueueAttributes</code> actions in your IAM policy.</p>
39
+ * <p>To remove the ability to change queue permissions, you must deny
40
+ * permission to the <code>AddPermission</code>, <code>RemovePermission</code>,
41
+ * and <code>SetQueueAttributes</code> actions in your IAM policy.</p>
40
42
  * </li>
41
43
  * </ul>
42
44
  * </note>
@@ -62,6 +64,37 @@ export interface RemovePermissionCommandOutput extends __MetadataBearer {
62
64
  * @see {@link RemovePermissionCommandOutput} for command's `response` shape.
63
65
  * @see {@link SQSClientResolvedConfig | config} for SQSClient's `config` shape.
64
66
  *
67
+ * @throws {@link InvalidAddress} (client fault)
68
+ * <p>The <code>accountId</code> is invalid.</p>
69
+ *
70
+ * @throws {@link InvalidSecurity} (client fault)
71
+ * <p>When the request to a queue is not HTTPS and SigV4.</p>
72
+ *
73
+ * @throws {@link QueueDoesNotExist} (client fault)
74
+ * <p>The specified queue doesn't exist.</p>
75
+ *
76
+ * @throws {@link RequestThrottled} (client fault)
77
+ * <p>The request was denied due to request throttling.</p>
78
+ * <ul>
79
+ * <li>
80
+ * <p>The rate of requests per second exceeds the Amazon Web Services KMS request quota for an
81
+ * account and Region. </p>
82
+ * </li>
83
+ * <li>
84
+ * <p>A burst or sustained high rate of requests to change the state of the same KMS
85
+ * key. This condition is often known as a "hot key."</p>
86
+ * </li>
87
+ * <li>
88
+ * <p>Requests for operations on KMS keys in a Amazon Web Services CloudHSM key store
89
+ * might be throttled at a lower-than-expected rate when the Amazon Web Services
90
+ * CloudHSM cluster associated with the Amazon Web Services CloudHSM key store is
91
+ * processing numerous commands, including those unrelated to the Amazon Web Services CloudHSM key store.</p>
92
+ * </li>
93
+ * </ul>
94
+ *
95
+ * @throws {@link UnsupportedOperation} (client fault)
96
+ * <p>Error code 400. Unsupported operation.</p>
97
+ *
65
98
  * @throws {@link SQSServiceException}
66
99
  * <p>Base exception class for all service exceptions from SQS service.</p>
67
100
  *
@@ -26,22 +26,29 @@ export interface SendMessageBatchCommandOutput extends SendMessageBatchResult, _
26
26
  * <p>You can use <code>SendMessageBatch</code> to send up to 10 messages to the specified
27
27
  * queue by assigning either identical or different values to each message (or by not
28
28
  * assigning values at all). This is a batch version of <code>
29
- * <a>SendMessage</a>.</code> For a FIFO queue, multiple messages within a single batch are enqueued
30
- * in the order they are sent.</p>
31
- * <p>The result of sending each message is reported individually in the response.
32
- * Because the batch request can result in a combination of successful and unsuccessful actions, you should check for batch errors even when the call returns an HTTP status code of <code>200</code>.</p>
29
+ * <a>SendMessage</a>.</code> For a FIFO queue, multiple messages within a single batch are enqueued in
30
+ * the order they are sent.</p>
31
+ * <p>The result of sending each message is reported individually in the response. Because
32
+ * the batch request can result in a combination of successful and unsuccessful actions,
33
+ * you should check for batch errors even when the call returns an HTTP status code of
34
+ * <code>200</code>.</p>
33
35
  * <p>The maximum allowed individual message size and the maximum total payload size (the
34
36
  * sum of the individual lengths of all of the batched messages) are both 256 KiB (262,144
35
37
  * bytes).</p>
36
38
  * <important>
37
- * <p>A message can include only XML, JSON, and unformatted text. The following Unicode characters are allowed:</p>
39
+ * <p>A message can include only XML, JSON, and unformatted text. The following Unicode
40
+ * characters are allowed:</p>
38
41
  * <p>
39
- * <code>#x9</code> | <code>#xA</code> | <code>#xD</code> | <code>#x20</code> to <code>#xD7FF</code> | <code>#xE000</code> to <code>#xFFFD</code> | <code>#x10000</code> to <code>#x10FFFF</code>
42
+ * <code>#x9</code> | <code>#xA</code> | <code>#xD</code> | <code>#x20</code> to
43
+ * <code>#xD7FF</code> | <code>#xE000</code> to <code>#xFFFD</code> |
44
+ * <code>#x10000</code> to <code>#x10FFFF</code>
40
45
  * </p>
41
- * <p>Any characters not included in this list will be rejected. For more information, see the <a href="http://www.w3.org/TR/REC-xml/#charsets">W3C specification for characters</a>.</p>
46
+ * <p>Any characters not included in this list will be rejected. For more information,
47
+ * see the <a href="http://www.w3.org/TR/REC-xml/#charsets">W3C specification for
48
+ * characters</a>.</p>
42
49
  * </important>
43
- * <p>If you don't specify the <code>DelaySeconds</code> parameter for an entry, Amazon SQS uses
44
- * the default value for the queue.</p>
50
+ * <p>If you don't specify the <code>DelaySeconds</code> parameter for an entry, Amazon SQS
51
+ * uses the default value for the queue.</p>
45
52
  * @example
46
53
  * Use a bare-bones client and the command you need to make an API call.
47
54
  * ```javascript
@@ -126,10 +133,72 @@ export interface SendMessageBatchCommandOutput extends SendMessageBatchResult, _
126
133
  * @throws {@link EmptyBatchRequest} (client fault)
127
134
  * <p>The batch request doesn't contain any entries.</p>
128
135
  *
136
+ * @throws {@link InvalidAddress} (client fault)
137
+ * <p>The <code>accountId</code> is invalid.</p>
138
+ *
129
139
  * @throws {@link InvalidBatchEntryId} (client fault)
130
140
  * <p>The <code>Id</code> of a batch entry in a batch request doesn't abide by the
131
141
  * specification.</p>
132
142
  *
143
+ * @throws {@link InvalidSecurity} (client fault)
144
+ * <p>When the request to a queue is not HTTPS and SigV4.</p>
145
+ *
146
+ * @throws {@link KmsAccessDenied} (client fault)
147
+ * <p>The caller doesn't have the required KMS access.</p>
148
+ *
149
+ * @throws {@link KmsDisabled} (client fault)
150
+ * <p>The request was denied due to request throttling.</p>
151
+ *
152
+ * @throws {@link KmsInvalidKeyUsage} (client fault)
153
+ * <p>The request was rejected for one of the following reasons:</p>
154
+ * <ul>
155
+ * <li>
156
+ * <p>The KeyUsage value of the KMS key is incompatible with the API
157
+ * operation.</p>
158
+ * </li>
159
+ * <li>
160
+ * <p>The encryption algorithm or signing algorithm specified for the operation is
161
+ * incompatible with the type of key material in the KMS key (KeySpec).</p>
162
+ * </li>
163
+ * </ul>
164
+ *
165
+ * @throws {@link KmsInvalidState} (client fault)
166
+ * <p>The request was rejected because the state of the specified resource is not valid for
167
+ * this request.</p>
168
+ *
169
+ * @throws {@link KmsNotFound} (client fault)
170
+ * <p>The request was rejected because the specified entity or resource could not be found.
171
+ * </p>
172
+ *
173
+ * @throws {@link KmsOptInRequired} (client fault)
174
+ * <p>The request was rejected because the specified key policy isn't syntactically or
175
+ * semantically correct.</p>
176
+ *
177
+ * @throws {@link KmsThrottled} (client fault)
178
+ * <p>Amazon Web Services KMS throttles requests for the following conditions.</p>
179
+ *
180
+ * @throws {@link QueueDoesNotExist} (client fault)
181
+ * <p>The specified queue doesn't exist.</p>
182
+ *
183
+ * @throws {@link RequestThrottled} (client fault)
184
+ * <p>The request was denied due to request throttling.</p>
185
+ * <ul>
186
+ * <li>
187
+ * <p>The rate of requests per second exceeds the Amazon Web Services KMS request quota for an
188
+ * account and Region. </p>
189
+ * </li>
190
+ * <li>
191
+ * <p>A burst or sustained high rate of requests to change the state of the same KMS
192
+ * key. This condition is often known as a "hot key."</p>
193
+ * </li>
194
+ * <li>
195
+ * <p>Requests for operations on KMS keys in a Amazon Web Services CloudHSM key store
196
+ * might be throttled at a lower-than-expected rate when the Amazon Web Services
197
+ * CloudHSM cluster associated with the Amazon Web Services CloudHSM key store is
198
+ * processing numerous commands, including those unrelated to the Amazon Web Services CloudHSM key store.</p>
199
+ * </li>
200
+ * </ul>
201
+ *
133
202
  * @throws {@link TooManyEntriesInBatchRequest} (client fault)
134
203
  * <p>The batch request contains more entries than permissible.</p>
135
204
  *