Skip to content

Commit

Permalink
chore(client-sqs): restore default client sqs
Browse files Browse the repository at this point in the history
  • Loading branch information
kuhe committed Oct 31, 2023
1 parent 3127615 commit ff87524
Show file tree
Hide file tree
Showing 33 changed files with 4,007 additions and 4,838 deletions.
15 changes: 7 additions & 8 deletions clients/client-sqs/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,15 +7,15 @@
AWS SDK for JavaScript SQS Client for Node.js, Browser and React Native.

<p>Welcome to the <i>Amazon SQS API Reference</i>.</p>
<p>Amazon SQS is a reliable, highly-scalable hosted queue for storing messages as they
travel between applications or microservices. Amazon SQS moves data between distributed
application components and helps you decouple these components.</p>
<p>Amazon SQS is a reliable, highly-scalable hosted queue for storing messages as they travel
between applications or microservices. Amazon SQS moves data between distributed application
components and helps you decouple these components.</p>
<p>For information on the permissions you need to use this API, see <a href="https://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/sqs-authentication-and-access-control.html">Identity and access management</a> in the <i>Amazon SQS Developer
Guide.</i>
</p>
<p>You can use <a href="http://aws.amazon.com/tools/#sdk">Amazon Web Services
SDKs</a> to access Amazon SQS using your favorite programming language. The SDKs
perform tasks such as the following automatically:</p>
<p>You can use <a href="http://aws.amazon.com/tools/#sdk">Amazon Web Services SDKs</a> to access
Amazon SQS using your favorite programming language. The SDKs perform tasks such as the
following automatically:</p>
<ul>
<li>
<p>Cryptographically sign your service requests</p>
Expand Down Expand Up @@ -60,8 +60,7 @@ perform tasks such as the following automatically:</p>
</li>
<li>
<p>
<a href="http://docs.aws.amazon.com/cli/latest/reference/sqs/index.html">Amazon SQS in the <i>Command Line
Interface</i>
<a href="http://docs.aws.amazon.com/cli/latest/reference/sqs/index.html">Amazon SQS in the <i>Command Line Interface</i>
</a>
</p>
</li>
Expand Down
1 change: 1 addition & 0 deletions clients/client-sqs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@
"@smithy/util-endpoints": "^1.0.2",
"@smithy/util-retry": "^2.0.5",
"@smithy/util-utf8": "^2.0.0",
"fast-xml-parser": "4.2.5",
"tslib": "^2.5.0"
},
"devDependencies": {
Expand Down
15 changes: 7 additions & 8 deletions clients/client-sqs/src/SQS.ts
Original file line number Diff line number Diff line change
Expand Up @@ -440,15 +440,15 @@ export interface SQS {
/**
* @public
* <p>Welcome to the <i>Amazon SQS API Reference</i>.</p>
* <p>Amazon SQS is a reliable, highly-scalable hosted queue for storing messages as they
* travel between applications or microservices. Amazon SQS moves data between distributed
* application components and helps you decouple these components.</p>
* <p>Amazon SQS is a reliable, highly-scalable hosted queue for storing messages as they travel
* between applications or microservices. Amazon SQS moves data between distributed application
* components and helps you decouple these components.</p>
* <p>For information on the permissions you need to use this API, see <a href="https://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/sqs-authentication-and-access-control.html">Identity and access management</a> in the <i>Amazon SQS Developer
* Guide.</i>
* </p>
* <p>You can use <a href="http://aws.amazon.com/tools/#sdk">Amazon Web Services
* SDKs</a> to access Amazon SQS using your favorite programming language. The SDKs
* perform tasks such as the following automatically:</p>
* <p>You can use <a href="http://aws.amazon.com/tools/#sdk">Amazon Web Services SDKs</a> to access
* Amazon SQS using your favorite programming language. The SDKs perform tasks such as the
* following automatically:</p>
* <ul>
* <li>
* <p>Cryptographically sign your service requests</p>
Expand Down Expand Up @@ -493,8 +493,7 @@ export interface SQS {
* </li>
* <li>
* <p>
* <a href="http://docs.aws.amazon.com/cli/latest/reference/sqs/index.html">Amazon SQS in the <i>Command Line
* Interface</i>
* <a href="http://docs.aws.amazon.com/cli/latest/reference/sqs/index.html">Amazon SQS in the <i>Command Line Interface</i>
* </a>
* </p>
* </li>
Expand Down
15 changes: 7 additions & 8 deletions clients/client-sqs/src/SQSClient.ts
Original file line number Diff line number Diff line change
Expand Up @@ -338,15 +338,15 @@ export interface SQSClientResolvedConfig extends SQSClientResolvedConfigType {}
/**
* @public
* <p>Welcome to the <i>Amazon SQS API Reference</i>.</p>
* <p>Amazon SQS is a reliable, highly-scalable hosted queue for storing messages as they
* travel between applications or microservices. Amazon SQS moves data between distributed
* application components and helps you decouple these components.</p>
* <p>Amazon SQS is a reliable, highly-scalable hosted queue for storing messages as they travel
* between applications or microservices. Amazon SQS moves data between distributed application
* components and helps you decouple these components.</p>
* <p>For information on the permissions you need to use this API, see <a href="https://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/sqs-authentication-and-access-control.html">Identity and access management</a> in the <i>Amazon SQS Developer
* Guide.</i>
* </p>
* <p>You can use <a href="http://aws.amazon.com/tools/#sdk">Amazon Web Services
* SDKs</a> to access Amazon SQS using your favorite programming language. The SDKs
* perform tasks such as the following automatically:</p>
* <p>You can use <a href="http://aws.amazon.com/tools/#sdk">Amazon Web Services SDKs</a> to access
* Amazon SQS using your favorite programming language. The SDKs perform tasks such as the
* following automatically:</p>
* <ul>
* <li>
* <p>Cryptographically sign your service requests</p>
Expand Down Expand Up @@ -391,8 +391,7 @@ export interface SQSClientResolvedConfig extends SQSClientResolvedConfigType {}
* </li>
* <li>
* <p>
* <a href="http://docs.aws.amazon.com/cli/latest/reference/sqs/index.html">Amazon SQS in the <i>Command Line
* Interface</i>
* <a href="http://docs.aws.amazon.com/cli/latest/reference/sqs/index.html">Amazon SQS in the <i>Command Line Interface</i>
* </a>
* </p>
* </li>
Expand Down
59 changes: 12 additions & 47 deletions clients/client-sqs/src/commands/AddPermissionCommand.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ import {
} from "@smithy/types";

import { AddPermissionRequest } from "../models/models_0";
import { de_AddPermissionCommand, se_AddPermissionCommand } from "../protocols/Aws_json1_0";
import { de_AddPermissionCommand, se_AddPermissionCommand } from "../protocols/Aws_query";
import { ServiceInputTypes, ServiceOutputTypes, SQSClientResolvedConfig } from "../SQSClient";

/**
Expand All @@ -41,8 +41,8 @@ export interface AddPermissionCommandOutput extends __MetadataBearer {}
* access to the queue.</p>
* <p>When you create a queue, you have full control access rights for the queue. Only you,
* the owner of the queue, can grant or deny permissions to the queue. For more information
* about these permissions, 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 Developer Guide</i>.</p>
* about these permissions, 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
* Developer Guide</i>.</p>
* <note>
* <ul>
* <li>
Expand All @@ -51,29 +51,25 @@ export interface AddPermissionCommandOutput extends __MetadataBearer {}
* <code>
* <a>SetQueueAttributes</a>
* </code> to upload your
* policy. For more information, see <a href="https://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/sqs-creating-custom-policies.html">Using Custom Policies with the Amazon SQS Access Policy
* Language</a> in the <i>Amazon SQS Developer
* Guide</i>.</p>
* policy. For more information, see <a href="https://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/sqs-creating-custom-policies.html">Using Custom Policies with the Amazon SQS Access Policy Language</a> in
* the <i>Amazon SQS Developer Guide</i>.</p>
* </li>
* <li>
* <p>An Amazon SQS policy can have a maximum of seven actions per
* statement.</p>
* <p>An Amazon SQS policy can have a maximum of seven actions per statement.</p>
* </li>
* <li>
* <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>
* <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>
* </li>
* <li>
* <p>Amazon SQS <code>AddPermission</code> does not support adding a
* non-account principal.</p>
* <p>Amazon SQS <code>AddPermission</code> does not support adding a non-account
* principal.</p>
* </li>
* </ul>
* </note>
* <note>
* <p>Cross-account permissions don't apply to this action. For more 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
* <i>Amazon SQS Developer Guide</i>.</p>
* <p>Cross-account permissions don't apply to this action. For more 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 <i>Amazon SQS Developer Guide</i>.</p>
* </note>
* @example
* Use a bare-bones client and the command you need to make an API call.
Expand Down Expand Up @@ -103,43 +99,12 @@ export interface AddPermissionCommandOutput extends __MetadataBearer {}
* @see {@link AddPermissionCommandOutput} for command's `response` shape.
* @see {@link SQSClientResolvedConfig | config} for SQSClient's `config` shape.
*
* @throws {@link InvalidAddress} (client fault)
* <p>The <code>accountId</code> is invalid.</p>
*
* @throws {@link InvalidSecurity} (client fault)
* <p>When the request to a queue is not HTTPS and SigV4.</p>
*
* @throws {@link OverLimit} (client fault)
* <p>The specified action violates a limit. For example, <code>ReceiveMessage</code>
* returns this error if the maximum number of in flight messages is reached and
* <code>AddPermission</code> returns this error if the maximum number of permissions
* for the queue is reached.</p>
*
* @throws {@link QueueDoesNotExist} (client fault)
* <p>The specified queue doesn't exist.</p>
*
* @throws {@link RequestThrottled} (client fault)
* <p>The request was denied due to request throttling.</p>
* <ul>
* <li>
* <p>The rate of requests per second exceeds the Amazon Web Services KMS request quota for an
* account and Region. </p>
* </li>
* <li>
* <p>A burst or sustained high rate of requests to change the state of the same KMS
* key. This condition is often known as a "hot key."</p>
* </li>
* <li>
* <p>Requests for operations on KMS keys in a Amazon Web Services CloudHSM key store
* might be throttled at a lower-than-expected rate when the Amazon Web Services
* CloudHSM cluster associated with the Amazon Web Services CloudHSM key store is
* processing numerous commands, including those unrelated to the Amazon Web Services CloudHSM key store.</p>
* </li>
* </ul>
*
* @throws {@link UnsupportedOperation} (client fault)
* <p>Error code 400. Unsupported operation.</p>
*
* @throws {@link SQSServiceException}
* <p>Base exception class for all service exceptions from SQS service.</p>
*
Expand Down
27 changes: 1 addition & 26 deletions clients/client-sqs/src/commands/CancelMessageMoveTaskCommand.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ import {
} from "@smithy/types";

import { CancelMessageMoveTaskRequest, CancelMessageMoveTaskResult } from "../models/models_0";
import { de_CancelMessageMoveTaskCommand, se_CancelMessageMoveTaskCommand } from "../protocols/Aws_json1_0";
import { de_CancelMessageMoveTaskCommand, se_CancelMessageMoveTaskCommand } from "../protocols/Aws_query";
import { ServiceInputTypes, ServiceOutputTypes, SQSClientResolvedConfig } from "../SQSClient";

/**
Expand Down Expand Up @@ -81,31 +81,6 @@ export interface CancelMessageMoveTaskCommandOutput extends CancelMessageMoveTas
* @see {@link CancelMessageMoveTaskCommandOutput} for command's `response` shape.
* @see {@link SQSClientResolvedConfig | config} for SQSClient's `config` shape.
*
* @throws {@link InvalidAddress} (client fault)
* <p>The <code>accountId</code> is invalid.</p>
*
* @throws {@link InvalidSecurity} (client fault)
* <p>When the request to a queue is not HTTPS and SigV4.</p>
*
* @throws {@link RequestThrottled} (client fault)
* <p>The request was denied due to request throttling.</p>
* <ul>
* <li>
* <p>The rate of requests per second exceeds the Amazon Web Services KMS request quota for an
* account and Region. </p>
* </li>
* <li>
* <p>A burst or sustained high rate of requests to change the state of the same KMS
* key. This condition is often known as a "hot key."</p>
* </li>
* <li>
* <p>Requests for operations on KMS keys in a Amazon Web Services CloudHSM key store
* might be throttled at a lower-than-expected rate when the Amazon Web Services
* CloudHSM cluster associated with the Amazon Web Services CloudHSM key store is
* processing numerous commands, including those unrelated to the Amazon Web Services CloudHSM key store.</p>
* </li>
* </ul>
*
* @throws {@link ResourceNotFoundException} (client fault)
* <p>One or more specified resources don't exist.</p>
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,7 @@ import {
} from "@smithy/types";

import { ChangeMessageVisibilityBatchRequest, ChangeMessageVisibilityBatchResult } from "../models/models_0";
import {
de_ChangeMessageVisibilityBatchCommand,
se_ChangeMessageVisibilityBatchCommand,
} from "../protocols/Aws_json1_0";
import { de_ChangeMessageVisibilityBatchCommand, se_ChangeMessageVisibilityBatchCommand } from "../protocols/Aws_query";
import { ServiceInputTypes, ServiceOutputTypes, SQSClientResolvedConfig } from "../SQSClient";

/**
Expand Down Expand Up @@ -51,9 +48,7 @@ export interface ChangeMessageVisibilityBatchCommandOutput
* </code> requests with each
* <code>ChangeMessageVisibilityBatch</code> action.</p>
* <important>
* <p>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>
* <p>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>
* </important>
* @example
* Use a bare-bones client and the command you need to make an API call.
Expand Down Expand Up @@ -103,44 +98,13 @@ export interface ChangeMessageVisibilityBatchCommandOutput
* @throws {@link EmptyBatchRequest} (client fault)
* <p>The batch request doesn't contain any entries.</p>
*
* @throws {@link InvalidAddress} (client fault)
* <p>The <code>accountId</code> is invalid.</p>
*
* @throws {@link InvalidBatchEntryId} (client fault)
* <p>The <code>Id</code> of a batch entry in a batch request doesn't abide by the
* specification.</p>
*
* @throws {@link InvalidSecurity} (client fault)
* <p>When the request to a queue is not HTTPS and SigV4.</p>
*
* @throws {@link QueueDoesNotExist} (client fault)
* <p>The specified queue doesn't exist.</p>
*
* @throws {@link RequestThrottled} (client fault)
* <p>The request was denied due to request throttling.</p>
* <ul>
* <li>
* <p>The rate of requests per second exceeds the Amazon Web Services KMS request quota for an
* account and Region. </p>
* </li>
* <li>
* <p>A burst or sustained high rate of requests to change the state of the same KMS
* key. This condition is often known as a "hot key."</p>
* </li>
* <li>
* <p>Requests for operations on KMS keys in a Amazon Web Services CloudHSM key store
* might be throttled at a lower-than-expected rate when the Amazon Web Services
* CloudHSM cluster associated with the Amazon Web Services CloudHSM key store is
* processing numerous commands, including those unrelated to the Amazon Web Services CloudHSM key store.</p>
* </li>
* </ul>
*
* @throws {@link TooManyEntriesInBatchRequest} (client fault)
* <p>The batch request contains more entries than permissible.</p>
*
* @throws {@link UnsupportedOperation} (client fault)
* <p>Error code 400. Unsupported operation.</p>
*
* @throws {@link SQSServiceException}
* <p>Base exception class for all service exceptions from SQS service.</p>
*
Expand Down
Loading

0 comments on commit ff87524

Please sign in to comment.