@aws-sdk/client-pinpoint-sms-voice-v2 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 -10
  2. package/package.json +3 -3
package/README.md CHANGED
@@ -38,19 +38,16 @@ using your favorite package manager:
38
38
 
39
39
  The AWS SDK is modulized by clients and commands.
40
40
  To send a request, you only need to import the `PinpointSMSVoiceV2Client` and
41
- the commands you need, for example `AssociateOriginationIdentityCommand`:
41
+ the commands you need, for example `ListTagsForResourceCommand`:
42
42
 
43
43
  ```js
44
44
  // ES5 example
45
- const {
46
- PinpointSMSVoiceV2Client,
47
- AssociateOriginationIdentityCommand,
48
- } = require("@aws-sdk/client-pinpoint-sms-voice-v2");
45
+ const { PinpointSMSVoiceV2Client, ListTagsForResourceCommand } = require("@aws-sdk/client-pinpoint-sms-voice-v2");
49
46
  ```
50
47
 
51
48
  ```ts
52
49
  // ES6+ example
53
- import { PinpointSMSVoiceV2Client, AssociateOriginationIdentityCommand } from "@aws-sdk/client-pinpoint-sms-voice-v2";
50
+ import { PinpointSMSVoiceV2Client, ListTagsForResourceCommand } from "@aws-sdk/client-pinpoint-sms-voice-v2";
54
51
  ```
55
52
 
56
53
  ### Usage
@@ -69,7 +66,7 @@ const client = new PinpointSMSVoiceV2Client({ region: "REGION" });
69
66
  const params = {
70
67
  /** input parameters */
71
68
  };
72
- const command = new AssociateOriginationIdentityCommand(params);
69
+ const command = new ListTagsForResourceCommand(params);
73
70
  ```
74
71
 
75
72
  #### Async/await
@@ -148,7 +145,7 @@ const client = new AWS.PinpointSMSVoiceV2({ region: "REGION" });
148
145
 
149
146
  // async/await.
150
147
  try {
151
- const data = await client.associateOriginationIdentity(params);
148
+ const data = await client.listTagsForResource(params);
152
149
  // process data.
153
150
  } catch (error) {
154
151
  // error handling.
@@ -156,7 +153,7 @@ try {
156
153
 
157
154
  // Promises.
158
155
  client
159
- .associateOriginationIdentity(params)
156
+ .listTagsForResource(params)
160
157
  .then((data) => {
161
158
  // process data.
162
159
  })
@@ -165,7 +162,7 @@ client
165
162
  });
166
163
 
167
164
  // callbacks.
168
- client.associateOriginationIdentity(params, (err, data) => {
165
+ client.listTagsForResource(params, (err, data) => {
169
166
  // process err and data.
170
167
  });
171
168
  ```
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-pinpoint-sms-voice-v2",
3
3
  "description": "AWS SDK for JavaScript Pinpoint Sms Voice V2 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",