@aws-sdk/client-chime-sdk-voice 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
@@ -24,19 +24,16 @@ using your favorite package manager:
24
24
 
25
25
  The AWS SDK is modulized by clients and commands.
26
26
  To send a request, you only need to import the `ChimeSDKVoiceClient` and
27
- the commands you need, for example `AssociatePhoneNumbersWithVoiceConnectorCommand`:
27
+ the commands you need, for example `ListPhoneNumbersCommand`:
28
28
 
29
29
  ```js
30
30
  // ES5 example
31
- const {
32
- ChimeSDKVoiceClient,
33
- AssociatePhoneNumbersWithVoiceConnectorCommand,
34
- } = require("@aws-sdk/client-chime-sdk-voice");
31
+ const { ChimeSDKVoiceClient, ListPhoneNumbersCommand } = require("@aws-sdk/client-chime-sdk-voice");
35
32
  ```
36
33
 
37
34
  ```ts
38
35
  // ES6+ example
39
- import { ChimeSDKVoiceClient, AssociatePhoneNumbersWithVoiceConnectorCommand } from "@aws-sdk/client-chime-sdk-voice";
36
+ import { ChimeSDKVoiceClient, ListPhoneNumbersCommand } from "@aws-sdk/client-chime-sdk-voice";
40
37
  ```
41
38
 
42
39
  ### Usage
@@ -55,7 +52,7 @@ const client = new ChimeSDKVoiceClient({ region: "REGION" });
55
52
  const params = {
56
53
  /** input parameters */
57
54
  };
58
- const command = new AssociatePhoneNumbersWithVoiceConnectorCommand(params);
55
+ const command = new ListPhoneNumbersCommand(params);
59
56
  ```
60
57
 
61
58
  #### Async/await
@@ -134,7 +131,7 @@ const client = new AWS.ChimeSDKVoice({ region: "REGION" });
134
131
 
135
132
  // async/await.
136
133
  try {
137
- const data = await client.associatePhoneNumbersWithVoiceConnector(params);
134
+ const data = await client.listPhoneNumbers(params);
138
135
  // process data.
139
136
  } catch (error) {
140
137
  // error handling.
@@ -142,7 +139,7 @@ try {
142
139
 
143
140
  // Promises.
144
141
  client
145
- .associatePhoneNumbersWithVoiceConnector(params)
142
+ .listPhoneNumbers(params)
146
143
  .then((data) => {
147
144
  // process data.
148
145
  })
@@ -151,7 +148,7 @@ client
151
148
  });
152
149
 
153
150
  // callbacks.
154
- client.associatePhoneNumbersWithVoiceConnector(params, (err, data) => {
151
+ client.listPhoneNumbers(params, (err, data) => {
155
152
  // process err and data.
156
153
  });
157
154
  ```
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-chime-sdk-voice",
3
3
  "description": "AWS SDK for JavaScript Chime Sdk Voice 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",