@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
@@ -1,6 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.WorkspacesDefaultRoleNotFoundException = exports.UnsupportedNetworkConfigurationException = exports.TargetWorkspaceState = exports.UnsupportedWorkspaceConfigurationException = exports.OperationInProgressException = exports.WorkspaceImageIngestionProcess = exports.WorkspaceImageErrorDetailCode = exports.ImageType = exports.Tenancy = exports.WorkspaceDirectoryState = exports.SamlStatusEnum = exports.WorkspaceDirectoryType = exports.DeletableSamlProperty = exports.DeletableCertificateBasedAuthProperty = exports.DedicatedTenancySupportEnum = exports.StandbyWorkspaceRelationshipType = exports.ModificationStateEnum = exports.ModificationResourceEnum = exports.RunningMode = exports.Protocol = exports.WorkspaceImageState = exports.WorkspaceImageRequiredTenancy = exports.OperatingSystemType = exports.WorkspaceState = exports.ResourceCreationFailedException = exports.ResourceUnavailableException = exports.ResourceAlreadyExistsException = exports.ConnectionState = exports.ConnectionAliasState = exports.ReconnectEnum = exports.LogUploadEnum = exports.ClientDeviceType = exports.CertificateBasedAuthStatusEnum = exports.WorkspaceBundleState = exports.Compute = exports.BundleType = exports.AssociationStatus = exports.ResourceLimitExceededException = exports.ResourceNotFoundException = exports.ResourceAssociatedException = exports.OperationNotSupportedException = exports.InvalidResourceStateException = exports.InvalidParameterValuesException = exports.Application = exports.DedicatedTenancyModificationStateEnum = exports.DedicatedTenancySupportResultEnum = exports.AccessPropertyValue = exports.AccessDeniedException = void 0;
3
+ exports.ImageAssociatedResourceType = exports.WorkSpaceApplicationState = exports.WorkSpaceApplicationLicenseType = exports.DeletableSamlProperty = exports.DeletableCertificateBasedAuthProperty = exports.DedicatedTenancySupportEnum = exports.StandbyWorkspaceRelationshipType = exports.ModificationStateEnum = exports.ModificationResourceEnum = exports.RunningMode = exports.Protocol = exports.OperatingSystemName = exports.WorkspaceImageState = exports.WorkspaceImageRequiredTenancy = exports.OperatingSystemType = exports.WorkspaceState = exports.ResourceCreationFailedException = exports.ResourceUnavailableException = exports.ConnectionState = exports.ConnectionAliasState = exports.ReconnectEnum = exports.LogUploadEnum = exports.ClientDeviceType = exports.CertificateBasedAuthStatusEnum = exports.WorkspaceBundleState = exports.Compute = exports.BundleType = exports.BundleAssociatedResourceType = exports.AssociationStatus = exports.ResourceInUseException = exports.ResourceAlreadyExistsException = exports.OperatingSystemNotCompatibleException = exports.IncompatibleApplicationsException = exports.ComputeNotCompatibleException = exports.WorkSpaceAssociatedResourceType = exports.ResourceLimitExceededException = exports.ResourceNotFoundException = exports.ResourceAssociatedException = exports.OperationNotSupportedException = exports.InvalidResourceStateException = exports.InvalidParameterValuesException = exports.AssociationErrorCode = exports.AssociationState = exports.ApplicationNotSupportedException = exports.ApplicationAssociatedResourceType = exports.Application = exports.DedicatedTenancyModificationStateEnum = exports.DedicatedTenancySupportResultEnum = exports.AccessPropertyValue = exports.AccessDeniedException = void 0;
4
+ exports.WorkspacesDefaultRoleNotFoundException = exports.UnsupportedNetworkConfigurationException = exports.TargetWorkspaceState = exports.UnsupportedWorkspaceConfigurationException = exports.OperationInProgressException = exports.WorkspaceImageIngestionProcess = exports.WorkspaceImageErrorDetailCode = exports.ImageType = exports.Tenancy = exports.WorkspaceDirectoryState = exports.SamlStatusEnum = exports.WorkspaceDirectoryType = void 0;
4
5
  const WorkSpacesServiceException_1 = require("./WorkSpacesServiceException");
5
6
  class AccessDeniedException extends WorkSpacesServiceException_1.WorkSpacesServiceException {
6
7
  constructor(opts) {
@@ -32,6 +33,42 @@ exports.Application = {
32
33
  Microsoft_Office_2016: "Microsoft_Office_2016",
33
34
  Microsoft_Office_2019: "Microsoft_Office_2019",
34
35
  };
36
+ exports.ApplicationAssociatedResourceType = {
37
+ BUNDLE: "BUNDLE",
38
+ IMAGE: "IMAGE",
39
+ WORKSPACE: "WORKSPACE",
40
+ };
41
+ class ApplicationNotSupportedException extends WorkSpacesServiceException_1.WorkSpacesServiceException {
42
+ constructor(opts) {
43
+ super({
44
+ name: "ApplicationNotSupportedException",
45
+ $fault: "client",
46
+ ...opts,
47
+ });
48
+ this.name = "ApplicationNotSupportedException";
49
+ this.$fault = "client";
50
+ Object.setPrototypeOf(this, ApplicationNotSupportedException.prototype);
51
+ }
52
+ }
53
+ exports.ApplicationNotSupportedException = ApplicationNotSupportedException;
54
+ exports.AssociationState = {
55
+ COMPLETED: "COMPLETED",
56
+ ERROR: "ERROR",
57
+ INSTALLING: "INSTALLING",
58
+ PENDING_INSTALL: "PENDING_INSTALL",
59
+ PENDING_INSTALL_DEPLOYMENT: "PENDING_INSTALL_DEPLOYMENT",
60
+ PENDING_UNINSTALL: "PENDING_UNINSTALL",
61
+ PENDING_UNINSTALL_DEPLOYMENT: "PENDING_UNINSTALL_DEPLOYMENT",
62
+ REMOVED: "REMOVED",
63
+ UNINSTALLING: "UNINSTALLING",
64
+ };
65
+ exports.AssociationErrorCode = {
66
+ INSUFFICIENT_DISKSPACE: "ValidationError.InsufficientDiskSpace",
67
+ INSUFFICIENT_MEMORY: "ValidationError.InsufficientMemory",
68
+ INTERNAL_SERVER_ERROR: "DeploymentError.InternalServerError",
69
+ UNSUPPORTED_OPERATING_SYSTEM: "ValidationError.UnsupportedOperatingSystem",
70
+ WORKSPACE_UNREACHABLE: "DeploymentError.WorkspaceUnreachable",
71
+ };
35
72
  class InvalidParameterValuesException extends WorkSpacesServiceException_1.WorkSpacesServiceException {
36
73
  constructor(opts) {
37
74
  super({
@@ -112,6 +149,75 @@ class ResourceLimitExceededException extends WorkSpacesServiceException_1.WorkSp
112
149
  }
113
150
  }
114
151
  exports.ResourceLimitExceededException = ResourceLimitExceededException;
152
+ exports.WorkSpaceAssociatedResourceType = {
153
+ APPLICATION: "APPLICATION",
154
+ };
155
+ class ComputeNotCompatibleException extends WorkSpacesServiceException_1.WorkSpacesServiceException {
156
+ constructor(opts) {
157
+ super({
158
+ name: "ComputeNotCompatibleException",
159
+ $fault: "client",
160
+ ...opts,
161
+ });
162
+ this.name = "ComputeNotCompatibleException";
163
+ this.$fault = "client";
164
+ Object.setPrototypeOf(this, ComputeNotCompatibleException.prototype);
165
+ }
166
+ }
167
+ exports.ComputeNotCompatibleException = ComputeNotCompatibleException;
168
+ class IncompatibleApplicationsException extends WorkSpacesServiceException_1.WorkSpacesServiceException {
169
+ constructor(opts) {
170
+ super({
171
+ name: "IncompatibleApplicationsException",
172
+ $fault: "client",
173
+ ...opts,
174
+ });
175
+ this.name = "IncompatibleApplicationsException";
176
+ this.$fault = "client";
177
+ Object.setPrototypeOf(this, IncompatibleApplicationsException.prototype);
178
+ }
179
+ }
180
+ exports.IncompatibleApplicationsException = IncompatibleApplicationsException;
181
+ class OperatingSystemNotCompatibleException extends WorkSpacesServiceException_1.WorkSpacesServiceException {
182
+ constructor(opts) {
183
+ super({
184
+ name: "OperatingSystemNotCompatibleException",
185
+ $fault: "client",
186
+ ...opts,
187
+ });
188
+ this.name = "OperatingSystemNotCompatibleException";
189
+ this.$fault = "client";
190
+ Object.setPrototypeOf(this, OperatingSystemNotCompatibleException.prototype);
191
+ }
192
+ }
193
+ exports.OperatingSystemNotCompatibleException = OperatingSystemNotCompatibleException;
194
+ class ResourceAlreadyExistsException extends WorkSpacesServiceException_1.WorkSpacesServiceException {
195
+ constructor(opts) {
196
+ super({
197
+ name: "ResourceAlreadyExistsException",
198
+ $fault: "client",
199
+ ...opts,
200
+ });
201
+ this.name = "ResourceAlreadyExistsException";
202
+ this.$fault = "client";
203
+ Object.setPrototypeOf(this, ResourceAlreadyExistsException.prototype);
204
+ }
205
+ }
206
+ exports.ResourceAlreadyExistsException = ResourceAlreadyExistsException;
207
+ class ResourceInUseException extends WorkSpacesServiceException_1.WorkSpacesServiceException {
208
+ constructor(opts) {
209
+ super({
210
+ name: "ResourceInUseException",
211
+ $fault: "client",
212
+ ...opts,
213
+ });
214
+ this.name = "ResourceInUseException";
215
+ this.$fault = "client";
216
+ Object.setPrototypeOf(this, ResourceInUseException.prototype);
217
+ this.ResourceId = opts.ResourceId;
218
+ }
219
+ }
220
+ exports.ResourceInUseException = ResourceInUseException;
115
221
  exports.AssociationStatus = {
116
222
  ASSOCIATED_WITH_OWNER_ACCOUNT: "ASSOCIATED_WITH_OWNER_ACCOUNT",
117
223
  ASSOCIATED_WITH_SHARED_ACCOUNT: "ASSOCIATED_WITH_SHARED_ACCOUNT",
@@ -119,6 +225,9 @@ exports.AssociationStatus = {
119
225
  PENDING_ASSOCIATION: "PENDING_ASSOCIATION",
120
226
  PENDING_DISASSOCIATION: "PENDING_DISASSOCIATION",
121
227
  };
228
+ exports.BundleAssociatedResourceType = {
229
+ APPLICATION: "APPLICATION",
230
+ };
122
231
  exports.BundleType = {
123
232
  REGULAR: "REGULAR",
124
233
  STANDBY: "STANDBY",
@@ -169,19 +278,6 @@ exports.ConnectionState = {
169
278
  DISCONNECTED: "DISCONNECTED",
170
279
  UNKNOWN: "UNKNOWN",
171
280
  };
172
- class ResourceAlreadyExistsException extends WorkSpacesServiceException_1.WorkSpacesServiceException {
173
- constructor(opts) {
174
- super({
175
- name: "ResourceAlreadyExistsException",
176
- $fault: "client",
177
- ...opts,
178
- });
179
- this.name = "ResourceAlreadyExistsException";
180
- this.$fault = "client";
181
- Object.setPrototypeOf(this, ResourceAlreadyExistsException.prototype);
182
- }
183
- }
184
- exports.ResourceAlreadyExistsException = ResourceAlreadyExistsException;
185
281
  class ResourceUnavailableException extends WorkSpacesServiceException_1.WorkSpacesServiceException {
186
282
  constructor(opts) {
187
283
  super({
@@ -241,6 +337,19 @@ exports.WorkspaceImageState = {
241
337
  ERROR: "ERROR",
242
338
  PENDING: "PENDING",
243
339
  };
340
+ exports.OperatingSystemName = {
341
+ AMAZON_LINUX_2: "AMAZON_LINUX_2",
342
+ UBUNTU_18_04: "UBUNTU_18_04",
343
+ UBUNTU_20_04: "UBUNTU_20_04",
344
+ UBUNTU_22_04: "UBUNTU_22_04",
345
+ UNKNOWN: "UNKNOWN",
346
+ WINDOWS_10: "WINDOWS_10",
347
+ WINDOWS_11: "WINDOWS_11",
348
+ WINDOWS_7: "WINDOWS_7",
349
+ WINDOWS_SERVER_2016: "WINDOWS_SERVER_2016",
350
+ WINDOWS_SERVER_2019: "WINDOWS_SERVER_2019",
351
+ WINDOWS_SERVER_2022: "WINDOWS_SERVER_2022",
352
+ };
244
353
  exports.Protocol = {
245
354
  PCOIP: "PCOIP",
246
355
  WSP: "WSP",
@@ -273,6 +382,19 @@ exports.DeletableSamlProperty = {
273
382
  SAML_PROPERTIES_RELAY_STATE_PARAMETER_NAME: "SAML_PROPERTIES_RELAY_STATE_PARAMETER_NAME",
274
383
  SAML_PROPERTIES_USER_ACCESS_URL: "SAML_PROPERTIES_USER_ACCESS_URL",
275
384
  };
385
+ exports.WorkSpaceApplicationLicenseType = {
386
+ LICENSED: "LICENSED",
387
+ UNLICENSED: "UNLICENSED",
388
+ };
389
+ exports.WorkSpaceApplicationState = {
390
+ AVAILABLE: "AVAILABLE",
391
+ ERROR: "ERROR",
392
+ PENDING: "PENDING",
393
+ UNINSTALL_ONLY: "UNINSTALL_ONLY",
394
+ };
395
+ exports.ImageAssociatedResourceType = {
396
+ APPLICATION: "APPLICATION",
397
+ };
276
398
  exports.WorkspaceDirectoryType = {
277
399
  AD_CONNECTOR: "AD_CONNECTOR",
278
400
  SIMPLE_AD: "SIMPLE_AD",
@@ -0,0 +1,29 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.paginateDescribeApplicationAssociations = void 0;
4
+ const DescribeApplicationAssociationsCommand_1 = require("../commands/DescribeApplicationAssociationsCommand");
5
+ const WorkSpacesClient_1 = require("../WorkSpacesClient");
6
+ const makePagedClientRequest = async (client, input, ...args) => {
7
+ return await client.send(new DescribeApplicationAssociationsCommand_1.DescribeApplicationAssociationsCommand(input), ...args);
8
+ };
9
+ async function* paginateDescribeApplicationAssociations(config, input, ...additionalArguments) {
10
+ let token = config.startingToken || undefined;
11
+ let hasNext = true;
12
+ let page;
13
+ while (hasNext) {
14
+ input.NextToken = token;
15
+ input["MaxResults"] = config.pageSize;
16
+ if (config.client instanceof WorkSpacesClient_1.WorkSpacesClient) {
17
+ page = await makePagedClientRequest(config.client, input, ...additionalArguments);
18
+ }
19
+ else {
20
+ throw new Error("Invalid client, expected WorkSpaces | WorkSpacesClient");
21
+ }
22
+ yield page;
23
+ const prevToken = token;
24
+ token = page.NextToken;
25
+ hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
26
+ }
27
+ return undefined;
28
+ }
29
+ exports.paginateDescribeApplicationAssociations = paginateDescribeApplicationAssociations;
@@ -0,0 +1,29 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.paginateDescribeApplications = void 0;
4
+ const DescribeApplicationsCommand_1 = require("../commands/DescribeApplicationsCommand");
5
+ const WorkSpacesClient_1 = require("../WorkSpacesClient");
6
+ const makePagedClientRequest = async (client, input, ...args) => {
7
+ return await client.send(new DescribeApplicationsCommand_1.DescribeApplicationsCommand(input), ...args);
8
+ };
9
+ async function* paginateDescribeApplications(config, input, ...additionalArguments) {
10
+ let token = config.startingToken || undefined;
11
+ let hasNext = true;
12
+ let page;
13
+ while (hasNext) {
14
+ input.NextToken = token;
15
+ input["MaxResults"] = config.pageSize;
16
+ if (config.client instanceof WorkSpacesClient_1.WorkSpacesClient) {
17
+ page = await makePagedClientRequest(config.client, input, ...additionalArguments);
18
+ }
19
+ else {
20
+ throw new Error("Invalid client, expected WorkSpaces | WorkSpacesClient");
21
+ }
22
+ yield page;
23
+ const prevToken = token;
24
+ token = page.NextToken;
25
+ hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
26
+ }
27
+ return undefined;
28
+ }
29
+ exports.paginateDescribeApplications = paginateDescribeApplications;
@@ -1,6 +1,8 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  const tslib_1 = require("tslib");
4
+ tslib_1.__exportStar(require("./DescribeApplicationAssociationsPaginator"), exports);
5
+ tslib_1.__exportStar(require("./DescribeApplicationsPaginator"), exports);
4
6
  tslib_1.__exportStar(require("./DescribeWorkspaceBundlesPaginator"), exports);
5
7
  tslib_1.__exportStar(require("./DescribeWorkspaceDirectoriesPaginator"), exports);
6
8
  tslib_1.__exportStar(require("./DescribeWorkspacesPaginator"), exports);