@aws-sdk/client-workspaces 3.425.0 → 3.427.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 (67) hide show
  1. package/README.md +64 -0
  2. package/dist-cjs/WorkSpaces.js +16 -0
  3. package/dist-cjs/commands/AssociateWorkspaceApplicationCommand.js +51 -0
  4. package/dist-cjs/commands/DeployWorkspaceApplicationsCommand.js +51 -0
  5. package/dist-cjs/commands/DescribeApplicationAssociationsCommand.js +51 -0
  6. package/dist-cjs/commands/DescribeApplicationsCommand.js +51 -0
  7. package/dist-cjs/commands/DescribeBundleAssociationsCommand.js +51 -0
  8. package/dist-cjs/commands/DescribeImageAssociationsCommand.js +51 -0
  9. package/dist-cjs/commands/DescribeWorkspaceAssociationsCommand.js +51 -0
  10. package/dist-cjs/commands/DisassociateWorkspaceApplicationCommand.js +51 -0
  11. package/dist-cjs/commands/index.js +8 -0
  12. package/dist-cjs/models/models_0.js +136 -14
  13. package/dist-cjs/pagination/DescribeApplicationAssociationsPaginator.js +29 -0
  14. package/dist-cjs/pagination/DescribeApplicationsPaginator.js +29 -0
  15. package/dist-cjs/pagination/index.js +2 -0
  16. package/dist-cjs/protocols/Aws_json1_1.js +611 -3
  17. package/dist-es/WorkSpaces.js +16 -0
  18. package/dist-es/commands/AssociateWorkspaceApplicationCommand.js +47 -0
  19. package/dist-es/commands/DeployWorkspaceApplicationsCommand.js +47 -0
  20. package/dist-es/commands/DescribeApplicationAssociationsCommand.js +47 -0
  21. package/dist-es/commands/DescribeApplicationsCommand.js +47 -0
  22. package/dist-es/commands/DescribeBundleAssociationsCommand.js +47 -0
  23. package/dist-es/commands/DescribeImageAssociationsCommand.js +47 -0
  24. package/dist-es/commands/DescribeWorkspaceAssociationsCommand.js +47 -0
  25. package/dist-es/commands/DisassociateWorkspaceApplicationCommand.js +47 -0
  26. package/dist-es/commands/index.js +8 -0
  27. package/dist-es/models/models_0.js +128 -12
  28. package/dist-es/pagination/DescribeApplicationAssociationsPaginator.js +25 -0
  29. package/dist-es/pagination/DescribeApplicationsPaginator.js +25 -0
  30. package/dist-es/pagination/index.js +2 -0
  31. package/dist-es/protocols/Aws_json1_1.js +593 -1
  32. package/dist-types/WorkSpaces.d.ts +56 -0
  33. package/dist-types/WorkSpacesClient.d.ts +10 -2
  34. package/dist-types/commands/AssociateWorkspaceApplicationCommand.d.ts +115 -0
  35. package/dist-types/commands/CreateWorkspacesCommand.d.ts +3 -0
  36. package/dist-types/commands/DeployWorkspaceApplicationsCommand.d.ts +107 -0
  37. package/dist-types/commands/DescribeApplicationAssociationsCommand.d.ts +104 -0
  38. package/dist-types/commands/DescribeApplicationsCommand.d.ts +114 -0
  39. package/dist-types/commands/DescribeBundleAssociationsCommand.d.ts +101 -0
  40. package/dist-types/commands/DescribeImageAssociationsCommand.d.ts +101 -0
  41. package/dist-types/commands/DescribeWorkspaceAssociationsCommand.d.ts +101 -0
  42. package/dist-types/commands/DescribeWorkspacesCommand.d.ts +1 -0
  43. package/dist-types/commands/DisassociateWorkspaceApplicationCommand.d.ts +100 -0
  44. package/dist-types/commands/ModifyWorkspacePropertiesCommand.d.ts +1 -0
  45. package/dist-types/commands/index.d.ts +8 -0
  46. package/dist-types/models/models_0.d.ts +701 -15
  47. package/dist-types/pagination/DescribeApplicationAssociationsPaginator.d.ts +7 -0
  48. package/dist-types/pagination/DescribeApplicationsPaginator.d.ts +7 -0
  49. package/dist-types/pagination/index.d.ts +2 -0
  50. package/dist-types/protocols/Aws_json1_1.d.ts +72 -0
  51. package/dist-types/ts3.4/WorkSpaces.d.ts +136 -0
  52. package/dist-types/ts3.4/WorkSpacesClient.d.ts +48 -0
  53. package/dist-types/ts3.4/commands/AssociateWorkspaceApplicationCommand.d.ts +42 -0
  54. package/dist-types/ts3.4/commands/DeployWorkspaceApplicationsCommand.d.ts +42 -0
  55. package/dist-types/ts3.4/commands/DescribeApplicationAssociationsCommand.d.ts +42 -0
  56. package/dist-types/ts3.4/commands/DescribeApplicationsCommand.d.ts +42 -0
  57. package/dist-types/ts3.4/commands/DescribeBundleAssociationsCommand.d.ts +42 -0
  58. package/dist-types/ts3.4/commands/DescribeImageAssociationsCommand.d.ts +42 -0
  59. package/dist-types/ts3.4/commands/DescribeWorkspaceAssociationsCommand.d.ts +42 -0
  60. package/dist-types/ts3.4/commands/DisassociateWorkspaceApplicationCommand.d.ts +42 -0
  61. package/dist-types/ts3.4/commands/index.d.ts +8 -0
  62. package/dist-types/ts3.4/models/models_0.d.ts +251 -7
  63. package/dist-types/ts3.4/pagination/DescribeApplicationAssociationsPaginator.d.ts +11 -0
  64. package/dist-types/ts3.4/pagination/DescribeApplicationsPaginator.d.ts +11 -0
  65. package/dist-types/ts3.4/pagination/index.d.ts +2 -0
  66. package/dist-types/ts3.4/protocols/Aws_json1_1.d.ts +96 -0
  67. package/package.json +5 -5
@@ -28,6 +28,41 @@ export const Application = {
28
28
  Microsoft_Office_2016: "Microsoft_Office_2016",
29
29
  Microsoft_Office_2019: "Microsoft_Office_2019",
30
30
  };
31
+ export const ApplicationAssociatedResourceType = {
32
+ BUNDLE: "BUNDLE",
33
+ IMAGE: "IMAGE",
34
+ WORKSPACE: "WORKSPACE",
35
+ };
36
+ export class ApplicationNotSupportedException extends __BaseException {
37
+ constructor(opts) {
38
+ super({
39
+ name: "ApplicationNotSupportedException",
40
+ $fault: "client",
41
+ ...opts,
42
+ });
43
+ this.name = "ApplicationNotSupportedException";
44
+ this.$fault = "client";
45
+ Object.setPrototypeOf(this, ApplicationNotSupportedException.prototype);
46
+ }
47
+ }
48
+ export const AssociationState = {
49
+ COMPLETED: "COMPLETED",
50
+ ERROR: "ERROR",
51
+ INSTALLING: "INSTALLING",
52
+ PENDING_INSTALL: "PENDING_INSTALL",
53
+ PENDING_INSTALL_DEPLOYMENT: "PENDING_INSTALL_DEPLOYMENT",
54
+ PENDING_UNINSTALL: "PENDING_UNINSTALL",
55
+ PENDING_UNINSTALL_DEPLOYMENT: "PENDING_UNINSTALL_DEPLOYMENT",
56
+ REMOVED: "REMOVED",
57
+ UNINSTALLING: "UNINSTALLING",
58
+ };
59
+ export const AssociationErrorCode = {
60
+ INSUFFICIENT_DISKSPACE: "ValidationError.InsufficientDiskSpace",
61
+ INSUFFICIENT_MEMORY: "ValidationError.InsufficientMemory",
62
+ INTERNAL_SERVER_ERROR: "DeploymentError.InternalServerError",
63
+ UNSUPPORTED_OPERATING_SYSTEM: "ValidationError.UnsupportedOperatingSystem",
64
+ WORKSPACE_UNREACHABLE: "DeploymentError.WorkspaceUnreachable",
65
+ };
31
66
  export class InvalidParameterValuesException extends __BaseException {
32
67
  constructor(opts) {
33
68
  super({
@@ -102,6 +137,70 @@ export class ResourceLimitExceededException extends __BaseException {
102
137
  Object.setPrototypeOf(this, ResourceLimitExceededException.prototype);
103
138
  }
104
139
  }
140
+ export const WorkSpaceAssociatedResourceType = {
141
+ APPLICATION: "APPLICATION",
142
+ };
143
+ export class ComputeNotCompatibleException extends __BaseException {
144
+ constructor(opts) {
145
+ super({
146
+ name: "ComputeNotCompatibleException",
147
+ $fault: "client",
148
+ ...opts,
149
+ });
150
+ this.name = "ComputeNotCompatibleException";
151
+ this.$fault = "client";
152
+ Object.setPrototypeOf(this, ComputeNotCompatibleException.prototype);
153
+ }
154
+ }
155
+ export class IncompatibleApplicationsException extends __BaseException {
156
+ constructor(opts) {
157
+ super({
158
+ name: "IncompatibleApplicationsException",
159
+ $fault: "client",
160
+ ...opts,
161
+ });
162
+ this.name = "IncompatibleApplicationsException";
163
+ this.$fault = "client";
164
+ Object.setPrototypeOf(this, IncompatibleApplicationsException.prototype);
165
+ }
166
+ }
167
+ export class OperatingSystemNotCompatibleException extends __BaseException {
168
+ constructor(opts) {
169
+ super({
170
+ name: "OperatingSystemNotCompatibleException",
171
+ $fault: "client",
172
+ ...opts,
173
+ });
174
+ this.name = "OperatingSystemNotCompatibleException";
175
+ this.$fault = "client";
176
+ Object.setPrototypeOf(this, OperatingSystemNotCompatibleException.prototype);
177
+ }
178
+ }
179
+ export class ResourceAlreadyExistsException extends __BaseException {
180
+ constructor(opts) {
181
+ super({
182
+ name: "ResourceAlreadyExistsException",
183
+ $fault: "client",
184
+ ...opts,
185
+ });
186
+ this.name = "ResourceAlreadyExistsException";
187
+ this.$fault = "client";
188
+ Object.setPrototypeOf(this, ResourceAlreadyExistsException.prototype);
189
+ }
190
+ }
191
+ export class ResourceInUseException extends __BaseException {
192
+ constructor(opts) {
193
+ super({
194
+ name: "ResourceInUseException",
195
+ $fault: "client",
196
+ ...opts,
197
+ });
198
+ this.name = "ResourceInUseException";
199
+ this.$fault = "client";
200
+ Object.setPrototypeOf(this, ResourceInUseException.prototype);
201
+ this.ResourceId = opts.ResourceId;
202
+ }
203
+ }
105
204
  export const AssociationStatus = {
106
205
  ASSOCIATED_WITH_OWNER_ACCOUNT: "ASSOCIATED_WITH_OWNER_ACCOUNT",
107
206
  ASSOCIATED_WITH_SHARED_ACCOUNT: "ASSOCIATED_WITH_SHARED_ACCOUNT",
@@ -109,6 +208,9 @@ export const AssociationStatus = {
109
208
  PENDING_ASSOCIATION: "PENDING_ASSOCIATION",
110
209
  PENDING_DISASSOCIATION: "PENDING_DISASSOCIATION",
111
210
  };
211
+ export const BundleAssociatedResourceType = {
212
+ APPLICATION: "APPLICATION",
213
+ };
112
214
  export const BundleType = {
113
215
  REGULAR: "REGULAR",
114
216
  STANDBY: "STANDBY",
@@ -159,18 +261,6 @@ export const ConnectionState = {
159
261
  DISCONNECTED: "DISCONNECTED",
160
262
  UNKNOWN: "UNKNOWN",
161
263
  };
162
- export class ResourceAlreadyExistsException extends __BaseException {
163
- constructor(opts) {
164
- super({
165
- name: "ResourceAlreadyExistsException",
166
- $fault: "client",
167
- ...opts,
168
- });
169
- this.name = "ResourceAlreadyExistsException";
170
- this.$fault = "client";
171
- Object.setPrototypeOf(this, ResourceAlreadyExistsException.prototype);
172
- }
173
- }
174
264
  export class ResourceUnavailableException extends __BaseException {
175
265
  constructor(opts) {
176
266
  super({
@@ -228,6 +318,19 @@ export const WorkspaceImageState = {
228
318
  ERROR: "ERROR",
229
319
  PENDING: "PENDING",
230
320
  };
321
+ export const OperatingSystemName = {
322
+ AMAZON_LINUX_2: "AMAZON_LINUX_2",
323
+ UBUNTU_18_04: "UBUNTU_18_04",
324
+ UBUNTU_20_04: "UBUNTU_20_04",
325
+ UBUNTU_22_04: "UBUNTU_22_04",
326
+ UNKNOWN: "UNKNOWN",
327
+ WINDOWS_10: "WINDOWS_10",
328
+ WINDOWS_11: "WINDOWS_11",
329
+ WINDOWS_7: "WINDOWS_7",
330
+ WINDOWS_SERVER_2016: "WINDOWS_SERVER_2016",
331
+ WINDOWS_SERVER_2019: "WINDOWS_SERVER_2019",
332
+ WINDOWS_SERVER_2022: "WINDOWS_SERVER_2022",
333
+ };
231
334
  export const Protocol = {
232
335
  PCOIP: "PCOIP",
233
336
  WSP: "WSP",
@@ -260,6 +363,19 @@ export const DeletableSamlProperty = {
260
363
  SAML_PROPERTIES_RELAY_STATE_PARAMETER_NAME: "SAML_PROPERTIES_RELAY_STATE_PARAMETER_NAME",
261
364
  SAML_PROPERTIES_USER_ACCESS_URL: "SAML_PROPERTIES_USER_ACCESS_URL",
262
365
  };
366
+ export const WorkSpaceApplicationLicenseType = {
367
+ LICENSED: "LICENSED",
368
+ UNLICENSED: "UNLICENSED",
369
+ };
370
+ export const WorkSpaceApplicationState = {
371
+ AVAILABLE: "AVAILABLE",
372
+ ERROR: "ERROR",
373
+ PENDING: "PENDING",
374
+ UNINSTALL_ONLY: "UNINSTALL_ONLY",
375
+ };
376
+ export const ImageAssociatedResourceType = {
377
+ APPLICATION: "APPLICATION",
378
+ };
263
379
  export const WorkspaceDirectoryType = {
264
380
  AD_CONNECTOR: "AD_CONNECTOR",
265
381
  SIMPLE_AD: "SIMPLE_AD",
@@ -0,0 +1,25 @@
1
+ import { DescribeApplicationAssociationsCommand, } from "../commands/DescribeApplicationAssociationsCommand";
2
+ import { WorkSpacesClient } from "../WorkSpacesClient";
3
+ const makePagedClientRequest = async (client, input, ...args) => {
4
+ return await client.send(new DescribeApplicationAssociationsCommand(input), ...args);
5
+ };
6
+ export async function* paginateDescribeApplicationAssociations(config, input, ...additionalArguments) {
7
+ let token = config.startingToken || undefined;
8
+ let hasNext = true;
9
+ let page;
10
+ while (hasNext) {
11
+ input.NextToken = token;
12
+ input["MaxResults"] = config.pageSize;
13
+ if (config.client instanceof WorkSpacesClient) {
14
+ page = await makePagedClientRequest(config.client, input, ...additionalArguments);
15
+ }
16
+ else {
17
+ throw new Error("Invalid client, expected WorkSpaces | WorkSpacesClient");
18
+ }
19
+ yield page;
20
+ const prevToken = token;
21
+ token = page.NextToken;
22
+ hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
23
+ }
24
+ return undefined;
25
+ }
@@ -0,0 +1,25 @@
1
+ import { DescribeApplicationsCommand, } from "../commands/DescribeApplicationsCommand";
2
+ import { WorkSpacesClient } from "../WorkSpacesClient";
3
+ const makePagedClientRequest = async (client, input, ...args) => {
4
+ return await client.send(new DescribeApplicationsCommand(input), ...args);
5
+ };
6
+ export async function* paginateDescribeApplications(config, input, ...additionalArguments) {
7
+ let token = config.startingToken || undefined;
8
+ let hasNext = true;
9
+ let page;
10
+ while (hasNext) {
11
+ input.NextToken = token;
12
+ input["MaxResults"] = config.pageSize;
13
+ if (config.client instanceof WorkSpacesClient) {
14
+ page = await makePagedClientRequest(config.client, input, ...additionalArguments);
15
+ }
16
+ else {
17
+ throw new Error("Invalid client, expected WorkSpaces | WorkSpacesClient");
18
+ }
19
+ yield page;
20
+ const prevToken = token;
21
+ token = page.NextToken;
22
+ hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
23
+ }
24
+ return undefined;
25
+ }
@@ -1,3 +1,5 @@
1
+ export * from "./DescribeApplicationAssociationsPaginator";
2
+ export * from "./DescribeApplicationsPaginator";
1
3
  export * from "./DescribeWorkspaceBundlesPaginator";
2
4
  export * from "./DescribeWorkspaceDirectoriesPaginator";
3
5
  export * from "./DescribeWorkspacesPaginator";