@aws-sdk/client-sqs 3.418.0 → 3.421.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 (2) hide show
  1. package/README.md +7 -7
  2. package/package.json +3 -3
package/README.md CHANGED
@@ -94,16 +94,16 @@ using your favorite package manager:
94
94
 
95
95
  The AWS SDK is modulized by clients and commands.
96
96
  To send a request, you only need to import the `SQSClient` and
97
- the commands you need, for example `AddPermissionCommand`:
97
+ the commands you need, for example `ListQueuesCommand`:
98
98
 
99
99
  ```js
100
100
  // ES5 example
101
- const { SQSClient, AddPermissionCommand } = require("@aws-sdk/client-sqs");
101
+ const { SQSClient, ListQueuesCommand } = require("@aws-sdk/client-sqs");
102
102
  ```
103
103
 
104
104
  ```ts
105
105
  // ES6+ example
106
- import { SQSClient, AddPermissionCommand } from "@aws-sdk/client-sqs";
106
+ import { SQSClient, ListQueuesCommand } from "@aws-sdk/client-sqs";
107
107
  ```
108
108
 
109
109
  ### Usage
@@ -122,7 +122,7 @@ const client = new SQSClient({ region: "REGION" });
122
122
  const params = {
123
123
  /** input parameters */
124
124
  };
125
- const command = new AddPermissionCommand(params);
125
+ const command = new ListQueuesCommand(params);
126
126
  ```
127
127
 
128
128
  #### Async/await
@@ -201,7 +201,7 @@ const client = new AWS.SQS({ region: "REGION" });
201
201
 
202
202
  // async/await.
203
203
  try {
204
- const data = await client.addPermission(params);
204
+ const data = await client.listQueues(params);
205
205
  // process data.
206
206
  } catch (error) {
207
207
  // error handling.
@@ -209,7 +209,7 @@ try {
209
209
 
210
210
  // Promises.
211
211
  client
212
- .addPermission(params)
212
+ .listQueues(params)
213
213
  .then((data) => {
214
214
  // process data.
215
215
  })
@@ -218,7 +218,7 @@ client
218
218
  });
219
219
 
220
220
  // callbacks.
221
- client.addPermission(params, (err, data) => {
221
+ client.listQueues(params, (err, data) => {
222
222
  // process err and data.
223
223
  });
224
224
  ```
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.418.0",
4
+ "version": "3.421.0",
5
5
  "scripts": {
6
6
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
7
7
  "build:cjs": "tsc -p tsconfig.cjs.json",
@@ -21,8 +21,8 @@
21
21
  "dependencies": {
22
22
  "@aws-crypto/sha256-browser": "3.0.0",
23
23
  "@aws-crypto/sha256-js": "3.0.0",
24
- "@aws-sdk/client-sts": "3.418.0",
25
- "@aws-sdk/credential-provider-node": "3.418.0",
24
+ "@aws-sdk/client-sts": "3.421.0",
25
+ "@aws-sdk/credential-provider-node": "3.421.0",
26
26
  "@aws-sdk/middleware-host-header": "3.418.0",
27
27
  "@aws-sdk/middleware-logger": "3.418.0",
28
28
  "@aws-sdk/middleware-recursion-detection": "3.418.0",