@aws-sdk/client-workspaces 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
@@ -40,16 +40,16 @@ using your favorite package manager:
40
40
 
41
41
  The AWS SDK is modulized by clients and commands.
42
42
  To send a request, you only need to import the `WorkSpacesClient` and
43
- the commands you need, for example `AssociateConnectionAliasCommand`:
43
+ the commands you need, for example `ListAvailableManagementCidrRangesCommand`:
44
44
 
45
45
  ```js
46
46
  // ES5 example
47
- const { WorkSpacesClient, AssociateConnectionAliasCommand } = require("@aws-sdk/client-workspaces");
47
+ const { WorkSpacesClient, ListAvailableManagementCidrRangesCommand } = require("@aws-sdk/client-workspaces");
48
48
  ```
49
49
 
50
50
  ```ts
51
51
  // ES6+ example
52
- import { WorkSpacesClient, AssociateConnectionAliasCommand } from "@aws-sdk/client-workspaces";
52
+ import { WorkSpacesClient, ListAvailableManagementCidrRangesCommand } from "@aws-sdk/client-workspaces";
53
53
  ```
54
54
 
55
55
  ### Usage
@@ -68,7 +68,7 @@ const client = new WorkSpacesClient({ region: "REGION" });
68
68
  const params = {
69
69
  /** input parameters */
70
70
  };
71
- const command = new AssociateConnectionAliasCommand(params);
71
+ const command = new ListAvailableManagementCidrRangesCommand(params);
72
72
  ```
73
73
 
74
74
  #### Async/await
@@ -147,7 +147,7 @@ const client = new AWS.WorkSpaces({ region: "REGION" });
147
147
 
148
148
  // async/await.
149
149
  try {
150
- const data = await client.associateConnectionAlias(params);
150
+ const data = await client.listAvailableManagementCidrRanges(params);
151
151
  // process data.
152
152
  } catch (error) {
153
153
  // error handling.
@@ -155,7 +155,7 @@ try {
155
155
 
156
156
  // Promises.
157
157
  client
158
- .associateConnectionAlias(params)
158
+ .listAvailableManagementCidrRanges(params)
159
159
  .then((data) => {
160
160
  // process data.
161
161
  })
@@ -164,7 +164,7 @@ client
164
164
  });
165
165
 
166
166
  // callbacks.
167
- client.associateConnectionAlias(params, (err, data) => {
167
+ client.listAvailableManagementCidrRanges(params, (err, data) => {
168
168
  // process err and data.
169
169
  });
170
170
  ```
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-workspaces",
3
3
  "description": "AWS SDK for JavaScript Workspaces 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",