@aws-sdk/client-sns 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
@@ -36,16 +36,16 @@ using your favorite package manager:
36
36
 
37
37
  The AWS SDK is modulized by clients and commands.
38
38
  To send a request, you only need to import the `SNSClient` and
39
- the commands you need, for example `AddPermissionCommand`:
39
+ the commands you need, for example `ListTopicsCommand`:
40
40
 
41
41
  ```js
42
42
  // ES5 example
43
- const { SNSClient, AddPermissionCommand } = require("@aws-sdk/client-sns");
43
+ const { SNSClient, ListTopicsCommand } = require("@aws-sdk/client-sns");
44
44
  ```
45
45
 
46
46
  ```ts
47
47
  // ES6+ example
48
- import { SNSClient, AddPermissionCommand } from "@aws-sdk/client-sns";
48
+ import { SNSClient, ListTopicsCommand } from "@aws-sdk/client-sns";
49
49
  ```
50
50
 
51
51
  ### Usage
@@ -64,7 +64,7 @@ const client = new SNSClient({ region: "REGION" });
64
64
  const params = {
65
65
  /** input parameters */
66
66
  };
67
- const command = new AddPermissionCommand(params);
67
+ const command = new ListTopicsCommand(params);
68
68
  ```
69
69
 
70
70
  #### Async/await
@@ -143,7 +143,7 @@ const client = new AWS.SNS({ region: "REGION" });
143
143
 
144
144
  // async/await.
145
145
  try {
146
- const data = await client.addPermission(params);
146
+ const data = await client.listTopics(params);
147
147
  // process data.
148
148
  } catch (error) {
149
149
  // error handling.
@@ -151,7 +151,7 @@ try {
151
151
 
152
152
  // Promises.
153
153
  client
154
- .addPermission(params)
154
+ .listTopics(params)
155
155
  .then((data) => {
156
156
  // process data.
157
157
  })
@@ -160,7 +160,7 @@ client
160
160
  });
161
161
 
162
162
  // callbacks.
163
- client.addPermission(params, (err, data) => {
163
+ client.listTopics(params, (err, data) => {
164
164
  // process err and data.
165
165
  });
166
166
  ```
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-sns",
3
3
  "description": "AWS SDK for JavaScript Sns 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",