Skip to content

Commit 0fa2ea7

Browse files
author
awstools
committed
feat(client-workspaces): Adds new APIs for managing and sharing WorkSpaces BYOL configuration across accounts.
1 parent 366c96e commit 0fa2ea7

16 files changed

+2077
-37
lines changed

clients/client-workspaces/README.md

Lines changed: 55 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -40,16 +40,16 @@ using your favorite package manager:
4040

4141
The AWS SDK is modulized by clients and commands.
4242
To send a request, you only need to import the `WorkSpacesClient` and
43-
the commands you need, for example `ListAvailableManagementCidrRangesCommand`:
43+
the commands you need, for example `ListAccountLinksCommand`:
4444

4545
```js
4646
// ES5 example
47-
const { WorkSpacesClient, ListAvailableManagementCidrRangesCommand } = require("@aws-sdk/client-workspaces");
47+
const { WorkSpacesClient, ListAccountLinksCommand } = require("@aws-sdk/client-workspaces");
4848
```
4949

5050
```ts
5151
// ES6+ example
52-
import { WorkSpacesClient, ListAvailableManagementCidrRangesCommand } from "@aws-sdk/client-workspaces";
52+
import { WorkSpacesClient, ListAccountLinksCommand } from "@aws-sdk/client-workspaces";
5353
```
5454

5555
### Usage
@@ -68,7 +68,7 @@ const client = new WorkSpacesClient({ region: "REGION" });
6868
const params = {
6969
/** input parameters */
7070
};
71-
const command = new ListAvailableManagementCidrRangesCommand(params);
71+
const command = new ListAccountLinksCommand(params);
7272
```
7373

7474
#### Async/await
@@ -147,15 +147,15 @@ const client = new AWS.WorkSpaces({ region: "REGION" });
147147

148148
// async/await.
149149
try {
150-
const data = await client.listAvailableManagementCidrRanges(params);
150+
const data = await client.listAccountLinks(params);
151151
// process data.
152152
} catch (error) {
153153
// error handling.
154154
}
155155

156156
// Promises.
157157
client
158-
.listAvailableManagementCidrRanges(params)
158+
.listAccountLinks(params)
159159
.then((data) => {
160160
// process data.
161161
})
@@ -164,7 +164,7 @@ client
164164
});
165165

166166
// callbacks.
167-
client.listAvailableManagementCidrRanges(params, (err, data) => {
167+
client.listAccountLinks(params, (err, data) => {
168168
// process err and data.
169169
});
170170
```
@@ -220,6 +220,14 @@ see LICENSE for more information.
220220

221221
## Client Commands (Operations List)
222222

223+
<details>
224+
<summary>
225+
AcceptAccountLinkInvitation
226+
</summary>
227+
228+
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/workspaces/command/AcceptAccountLinkInvitationCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-workspaces/Interface/AcceptAccountLinkInvitationCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-workspaces/Interface/AcceptAccountLinkInvitationCommandOutput/)
229+
230+
</details>
223231
<details>
224232
<summary>
225233
AssociateConnectionAlias
@@ -259,6 +267,14 @@ CopyWorkspaceImage
259267

260268
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/workspaces/command/CopyWorkspaceImageCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-workspaces/Interface/CopyWorkspaceImageCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-workspaces/Interface/CopyWorkspaceImageCommandOutput/)
261269

270+
</details>
271+
<details>
272+
<summary>
273+
CreateAccountLinkInvitation
274+
</summary>
275+
276+
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/workspaces/command/CreateAccountLinkInvitationCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-workspaces/Interface/CreateAccountLinkInvitationCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-workspaces/Interface/CreateAccountLinkInvitationCommandOutput/)
277+
262278
</details>
263279
<details>
264280
<summary>
@@ -331,6 +347,14 @@ CreateWorkspaces
331347

332348
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/workspaces/command/CreateWorkspacesCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-workspaces/Interface/CreateWorkspacesCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-workspaces/Interface/CreateWorkspacesCommandOutput/)
333349

350+
</details>
351+
<details>
352+
<summary>
353+
DeleteAccountLinkInvitation
354+
</summary>
355+
356+
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/workspaces/command/DeleteAccountLinkInvitationCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-workspaces/Interface/DeleteAccountLinkInvitationCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-workspaces/Interface/DeleteAccountLinkInvitationCommandOutput/)
357+
334358
</details>
335359
<details>
336360
<summary>
@@ -595,6 +619,14 @@ DisassociateWorkspaceApplication
595619

596620
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/workspaces/command/DisassociateWorkspaceApplicationCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-workspaces/Interface/DisassociateWorkspaceApplicationCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-workspaces/Interface/DisassociateWorkspaceApplicationCommandOutput/)
597621

622+
</details>
623+
<details>
624+
<summary>
625+
GetAccountLink
626+
</summary>
627+
628+
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/workspaces/command/GetAccountLinkCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-workspaces/Interface/GetAccountLinkCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-workspaces/Interface/GetAccountLinkCommandOutput/)
629+
598630
</details>
599631
<details>
600632
<summary>
@@ -611,6 +643,14 @@ ImportWorkspaceImage
611643

612644
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/workspaces/command/ImportWorkspaceImageCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-workspaces/Interface/ImportWorkspaceImageCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-workspaces/Interface/ImportWorkspaceImageCommandOutput/)
613645

646+
</details>
647+
<details>
648+
<summary>
649+
ListAccountLinks
650+
</summary>
651+
652+
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/workspaces/command/ListAccountLinksCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-workspaces/Interface/ListAccountLinksCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-workspaces/Interface/ListAccountLinksCommandOutput/)
653+
614654
</details>
615655
<details>
616656
<summary>
@@ -723,6 +763,14 @@ RegisterWorkspaceDirectory
723763

724764
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/workspaces/command/RegisterWorkspaceDirectoryCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-workspaces/Interface/RegisterWorkspaceDirectoryCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-workspaces/Interface/RegisterWorkspaceDirectoryCommandOutput/)
725765

766+
</details>
767+
<details>
768+
<summary>
769+
RejectAccountLinkInvitation
770+
</summary>
771+
772+
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/workspaces/command/RejectAccountLinkInvitationCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-workspaces/Interface/RejectAccountLinkInvitationCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-workspaces/Interface/RejectAccountLinkInvitationCommandOutput/)
773+
726774
</details>
727775
<details>
728776
<summary>

0 commit comments

Comments
 (0)