@aws-sdk/client-workspaces 3.864.0 → 3.868.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 (39) hide show
  1. package/README.md +16 -0
  2. package/dist-cjs/index.js +131 -2
  3. package/dist-es/WorkSpaces.js +4 -0
  4. package/dist-es/commands/DescribeCustomWorkspaceImageImportCommand.js +22 -0
  5. package/dist-es/commands/ImportCustomWorkspaceImageCommand.js +22 -0
  6. package/dist-es/commands/index.js +2 -0
  7. package/dist-es/models/models_0.js +34 -12
  8. package/dist-es/models/models_1.js +12 -0
  9. package/dist-es/protocols/Aws_json1_1.js +53 -3
  10. package/dist-types/WorkSpaces.d.ts +14 -0
  11. package/dist-types/WorkSpacesClient.d.ts +4 -2
  12. package/dist-types/commands/DescribeAccountCommand.d.ts +1 -0
  13. package/dist-types/commands/DescribeCustomWorkspaceImageImportCommand.d.ts +94 -0
  14. package/dist-types/commands/ImportCustomWorkspaceImageCommand.d.ts +113 -0
  15. package/dist-types/commands/ModifyAccountCommand.d.ts +4 -2
  16. package/dist-types/commands/ModifySelfservicePermissionsCommand.d.ts +2 -1
  17. package/dist-types/commands/ModifyStreamingPropertiesCommand.d.ts +1 -1
  18. package/dist-types/commands/ModifyWorkspaceAccessPropertiesCommand.d.ts +1 -1
  19. package/dist-types/commands/ModifyWorkspaceCreationPropertiesCommand.d.ts +1 -1
  20. package/dist-types/commands/ModifyWorkspacePropertiesCommand.d.ts +1 -1
  21. package/dist-types/commands/index.d.ts +2 -0
  22. package/dist-types/models/models_0.d.ts +266 -161
  23. package/dist-types/models/models_1.d.ts +162 -1
  24. package/dist-types/protocols/Aws_json1_1.d.ts +18 -0
  25. package/dist-types/ts3.4/WorkSpaces.d.ts +40 -0
  26. package/dist-types/ts3.4/WorkSpacesClient.d.ts +12 -0
  27. package/dist-types/ts3.4/commands/DescribeCustomWorkspaceImageImportCommand.d.ts +51 -0
  28. package/dist-types/ts3.4/commands/ImportCustomWorkspaceImageCommand.d.ts +51 -0
  29. package/dist-types/ts3.4/commands/ModifyAccountCommand.d.ts +1 -1
  30. package/dist-types/ts3.4/commands/ModifySelfservicePermissionsCommand.d.ts +2 -4
  31. package/dist-types/ts3.4/commands/ModifyStreamingPropertiesCommand.d.ts +1 -1
  32. package/dist-types/ts3.4/commands/ModifyWorkspaceAccessPropertiesCommand.d.ts +1 -1
  33. package/dist-types/ts3.4/commands/ModifyWorkspaceCreationPropertiesCommand.d.ts +1 -1
  34. package/dist-types/ts3.4/commands/ModifyWorkspacePropertiesCommand.d.ts +1 -1
  35. package/dist-types/ts3.4/commands/index.d.ts +2 -0
  36. package/dist-types/ts3.4/models/models_0.d.ts +104 -41
  37. package/dist-types/ts3.4/models/models_1.d.ts +44 -0
  38. package/dist-types/ts3.4/protocols/Aws_json1_1.d.ts +24 -0
  39. package/package.json +1 -1
package/README.md CHANGED
@@ -515,6 +515,14 @@ DescribeConnectionAliasPermissions
515
515
 
516
516
  [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/workspaces/command/DescribeConnectionAliasPermissionsCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-workspaces/Interface/DescribeConnectionAliasPermissionsCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-workspaces/Interface/DescribeConnectionAliasPermissionsCommandOutput/)
517
517
 
518
+ </details>
519
+ <details>
520
+ <summary>
521
+ DescribeCustomWorkspaceImageImport
522
+ </summary>
523
+
524
+ [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/workspaces/command/DescribeCustomWorkspaceImageImportCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-workspaces/Interface/DescribeCustomWorkspaceImageImportCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-workspaces/Interface/DescribeCustomWorkspaceImageImportCommandOutput/)
525
+
518
526
  </details>
519
527
  <details>
520
528
  <summary>
@@ -659,6 +667,14 @@ ImportClientBranding
659
667
 
660
668
  [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/workspaces/command/ImportClientBrandingCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-workspaces/Interface/ImportClientBrandingCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-workspaces/Interface/ImportClientBrandingCommandOutput/)
661
669
 
670
+ </details>
671
+ <details>
672
+ <summary>
673
+ ImportCustomWorkspaceImage
674
+ </summary>
675
+
676
+ [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/workspaces/command/ImportCustomWorkspaceImageCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-workspaces/Interface/ImportCustomWorkspaceImageCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-workspaces/Interface/ImportCustomWorkspaceImageCommandOutput/)
677
+
662
678
  </details>
663
679
  <details>
664
680
  <summary>
package/dist-cjs/index.js CHANGED
@@ -63,6 +63,8 @@ __export(index_exports, {
63
63
  CreateWorkspaceImageCommand: () => CreateWorkspaceImageCommand,
64
64
  CreateWorkspacesCommand: () => CreateWorkspacesCommand,
65
65
  CreateWorkspacesPoolCommand: () => CreateWorkspacesPoolCommand,
66
+ CustomImageProtocol: () => CustomImageProtocol,
67
+ CustomWorkspaceImageImportState: () => CustomWorkspaceImageImportState,
66
68
  DataReplication: () => DataReplication,
67
69
  DedicatedTenancyAccountType: () => DedicatedTenancyAccountType,
68
70
  DedicatedTenancyModificationStateEnum: () => DedicatedTenancyModificationStateEnum,
@@ -90,6 +92,7 @@ __export(index_exports, {
90
92
  DescribeConnectClientAddInsCommand: () => DescribeConnectClientAddInsCommand,
91
93
  DescribeConnectionAliasPermissionsCommand: () => DescribeConnectionAliasPermissionsCommand,
92
94
  DescribeConnectionAliasesCommand: () => DescribeConnectionAliasesCommand,
95
+ DescribeCustomWorkspaceImageImportCommand: () => DescribeCustomWorkspaceImageImportCommand,
93
96
  DescribeImageAssociationsCommand: () => DescribeImageAssociationsCommand,
94
97
  DescribeIpGroupsCommand: () => DescribeIpGroupsCommand,
95
98
  DescribeTagsCommand: () => DescribeTagsCommand,
@@ -112,8 +115,11 @@ __export(index_exports, {
112
115
  EndpointEncryptionMode: () => EndpointEncryptionMode,
113
116
  GetAccountLinkCommand: () => GetAccountLinkCommand,
114
117
  ImageAssociatedResourceType: () => ImageAssociatedResourceType,
118
+ ImageComputeType: () => ImageComputeType,
119
+ ImageSourceIdentifier: () => ImageSourceIdentifier,
115
120
  ImageType: () => ImageType,
116
121
  ImportClientBrandingCommand: () => ImportClientBrandingCommand,
122
+ ImportCustomWorkspaceImageCommand: () => ImportCustomWorkspaceImageCommand,
117
123
  ImportWorkspaceImageCommand: () => ImportWorkspaceImageCommand,
118
124
  IncompatibleApplicationsException: () => IncompatibleApplicationsException,
119
125
  InternalServerException: () => InternalServerException,
@@ -138,11 +144,13 @@ __export(index_exports, {
138
144
  ModifyWorkspaceCreationPropertiesCommand: () => ModifyWorkspaceCreationPropertiesCommand,
139
145
  ModifyWorkspacePropertiesCommand: () => ModifyWorkspacePropertiesCommand,
140
146
  ModifyWorkspaceStateCommand: () => ModifyWorkspaceStateCommand,
147
+ OSVersion: () => OSVersion,
141
148
  OperatingSystemName: () => OperatingSystemName,
142
149
  OperatingSystemNotCompatibleException: () => OperatingSystemNotCompatibleException,
143
150
  OperatingSystemType: () => OperatingSystemType,
144
151
  OperationInProgressException: () => OperationInProgressException,
145
152
  OperationNotSupportedException: () => OperationNotSupportedException,
153
+ Platform: () => Platform,
146
154
  PoolsRunningMode: () => PoolsRunningMode,
147
155
  Protocol: () => Protocol,
148
156
  RebootWorkspacesCommand: () => RebootWorkspacesCommand,
@@ -1004,6 +1012,17 @@ var WorkspacesPoolState = {
1004
1012
  STOPPING: "STOPPING",
1005
1013
  UPDATING: "UPDATING"
1006
1014
  };
1015
+ var CustomImageProtocol = {
1016
+ BYOP: "BYOP",
1017
+ DCV: "DCV",
1018
+ PCOIP: "PCOIP"
1019
+ };
1020
+ var CustomWorkspaceImageImportState = {
1021
+ COMPLETED: "COMPLETED",
1022
+ ERROR: "ERROR",
1023
+ IN_PROGRESS: "IN_PROGRESS",
1024
+ PENDING: "PENDING"
1025
+ };
1007
1026
  var DedicatedTenancyAccountType = {
1008
1027
  SOURCE_ACCOUNT: "SOURCE_ACCOUNT",
1009
1028
  TARGET_ACCOUNT: "TARGET_ACCOUNT"
@@ -1028,6 +1047,15 @@ var WorkSpaceApplicationState = {
1028
1047
  PENDING: "PENDING",
1029
1048
  UNINSTALL_ONLY: "UNINSTALL_ONLY"
1030
1049
  };
1050
+ var ImageSourceIdentifier;
1051
+ ((ImageSourceIdentifier3) => {
1052
+ ImageSourceIdentifier3.visit = /* @__PURE__ */ __name((value, visitor) => {
1053
+ if (value.Ec2ImportTaskId !== void 0) return visitor.Ec2ImportTaskId(value.Ec2ImportTaskId);
1054
+ if (value.ImageBuildVersionArn !== void 0) return visitor.ImageBuildVersionArn(value.ImageBuildVersionArn);
1055
+ if (value.Ec2ImageId !== void 0) return visitor.Ec2ImageId(value.Ec2ImageId);
1056
+ return visitor._(value.$unknown[0], value.$unknown[1]);
1057
+ }, "visit");
1058
+ })(ImageSourceIdentifier || (ImageSourceIdentifier = {}));
1031
1059
  var ImageAssociatedResourceType = {
1032
1060
  APPLICATION: "APPLICATION"
1033
1061
  };
@@ -1158,6 +1186,17 @@ var SessionConnectionState = {
1158
1186
  CONNECTED: "CONNECTED",
1159
1187
  NOT_CONNECTED: "NOT_CONNECTED"
1160
1188
  };
1189
+ var ImageComputeType = {
1190
+ BASE: "BASE",
1191
+ GRAPHICS_G4DN: "GRAPHICS_G4DN"
1192
+ };
1193
+ var OSVersion = {
1194
+ Windows_10: "Windows_10",
1195
+ Windows_11: "Windows_11"
1196
+ };
1197
+ var Platform = {
1198
+ WINDOWS: "WINDOWS"
1199
+ };
1161
1200
  var WorkspaceImageIngestionProcess = {
1162
1201
  BYOL_GRAPHICS: "BYOL_GRAPHICS",
1163
1202
  BYOL_GRAPHICSPRO: "BYOL_GRAPHICSPRO",
@@ -1204,6 +1243,8 @@ var OperationInProgressException = class _OperationInProgressException extends W
1204
1243
  Object.setPrototypeOf(this, _OperationInProgressException.prototype);
1205
1244
  }
1206
1245
  };
1246
+
1247
+ // src/models/models_1.ts
1207
1248
  var UnsupportedWorkspaceConfigurationException = class _UnsupportedWorkspaceConfigurationException extends WorkSpacesServiceException {
1208
1249
  static {
1209
1250
  __name(this, "UnsupportedWorkspaceConfigurationException");
@@ -1222,8 +1263,6 @@ var UnsupportedWorkspaceConfigurationException = class _UnsupportedWorkspaceConf
1222
1263
  Object.setPrototypeOf(this, _UnsupportedWorkspaceConfigurationException.prototype);
1223
1264
  }
1224
1265
  };
1225
-
1226
- // src/models/models_1.ts
1227
1266
  var TargetWorkspaceState = {
1228
1267
  ADMIN_MAINTENANCE: "ADMIN_MAINTENANCE",
1229
1268
  AVAILABLE: "AVAILABLE"
@@ -1488,6 +1527,12 @@ var se_DescribeConnectionAliasPermissionsCommand = /* @__PURE__ */ __name(async
1488
1527
  body = JSON.stringify((0, import_smithy_client._json)(input));
1489
1528
  return buildHttpRpcRequest(context, headers, "/", void 0, body);
1490
1529
  }, "se_DescribeConnectionAliasPermissionsCommand");
1530
+ var se_DescribeCustomWorkspaceImageImportCommand = /* @__PURE__ */ __name(async (input, context) => {
1531
+ const headers = sharedHeaders("DescribeCustomWorkspaceImageImport");
1532
+ let body;
1533
+ body = JSON.stringify((0, import_smithy_client._json)(input));
1534
+ return buildHttpRpcRequest(context, headers, "/", void 0, body);
1535
+ }, "se_DescribeCustomWorkspaceImageImportCommand");
1491
1536
  var se_DescribeImageAssociationsCommand = /* @__PURE__ */ __name(async (input, context) => {
1492
1537
  const headers = sharedHeaders("DescribeImageAssociations");
1493
1538
  let body;
@@ -1596,6 +1641,12 @@ var se_ImportClientBrandingCommand = /* @__PURE__ */ __name(async (input, contex
1596
1641
  body = JSON.stringify(se_ImportClientBrandingRequest(input, context));
1597
1642
  return buildHttpRpcRequest(context, headers, "/", void 0, body);
1598
1643
  }, "se_ImportClientBrandingCommand");
1644
+ var se_ImportCustomWorkspaceImageCommand = /* @__PURE__ */ __name(async (input, context) => {
1645
+ const headers = sharedHeaders("ImportCustomWorkspaceImage");
1646
+ let body;
1647
+ body = JSON.stringify((0, import_smithy_client._json)(input));
1648
+ return buildHttpRpcRequest(context, headers, "/", void 0, body);
1649
+ }, "se_ImportCustomWorkspaceImageCommand");
1599
1650
  var se_ImportWorkspaceImageCommand = /* @__PURE__ */ __name(async (input, context) => {
1600
1651
  const headers = sharedHeaders("ImportWorkspaceImage");
1601
1652
  let body;
@@ -2281,6 +2332,19 @@ var de_DescribeConnectionAliasPermissionsCommand = /* @__PURE__ */ __name(async
2281
2332
  };
2282
2333
  return response;
2283
2334
  }, "de_DescribeConnectionAliasPermissionsCommand");
2335
+ var de_DescribeCustomWorkspaceImageImportCommand = /* @__PURE__ */ __name(async (output, context) => {
2336
+ if (output.statusCode >= 300) {
2337
+ return de_CommandError(output, context);
2338
+ }
2339
+ const data = await (0, import_core2.parseJsonBody)(output.body, context);
2340
+ let contents = {};
2341
+ contents = de_DescribeCustomWorkspaceImageImportResult(data, context);
2342
+ const response = {
2343
+ $metadata: deserializeMetadata(output),
2344
+ ...contents
2345
+ };
2346
+ return response;
2347
+ }, "de_DescribeCustomWorkspaceImageImportCommand");
2284
2348
  var de_DescribeImageAssociationsCommand = /* @__PURE__ */ __name(async (output, context) => {
2285
2349
  if (output.statusCode >= 300) {
2286
2350
  return de_CommandError(output, context);
@@ -2515,6 +2579,19 @@ var de_ImportClientBrandingCommand = /* @__PURE__ */ __name(async (output, conte
2515
2579
  };
2516
2580
  return response;
2517
2581
  }, "de_ImportClientBrandingCommand");
2582
+ var de_ImportCustomWorkspaceImageCommand = /* @__PURE__ */ __name(async (output, context) => {
2583
+ if (output.statusCode >= 300) {
2584
+ return de_CommandError(output, context);
2585
+ }
2586
+ const data = await (0, import_core2.parseJsonBody)(output.body, context);
2587
+ let contents = {};
2588
+ contents = (0, import_smithy_client._json)(data);
2589
+ const response = {
2590
+ $metadata: deserializeMetadata(output),
2591
+ ...contents
2592
+ };
2593
+ return response;
2594
+ }, "de_ImportCustomWorkspaceImageCommand");
2518
2595
  var de_ImportWorkspaceImageCommand = /* @__PURE__ */ __name(async (output, context) => {
2519
2596
  if (output.statusCode >= 300) {
2520
2597
  return de_CommandError(output, context);
@@ -3403,6 +3480,18 @@ var de_DescribeBundleAssociationsResult = /* @__PURE__ */ __name((output, contex
3403
3480
  Associations: /* @__PURE__ */ __name((_) => de_BundleResourceAssociationList(_, context), "Associations")
3404
3481
  });
3405
3482
  }, "de_DescribeBundleAssociationsResult");
3483
+ var de_DescribeCustomWorkspaceImageImportResult = /* @__PURE__ */ __name((output, context) => {
3484
+ return (0, import_smithy_client.take)(output, {
3485
+ Created: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "Created"),
3486
+ ErrorDetails: import_smithy_client._json,
3487
+ ImageBuilderInstanceId: import_smithy_client.expectString,
3488
+ ImageId: import_smithy_client.expectString,
3489
+ ImageSource: /* @__PURE__ */ __name((_) => (0, import_smithy_client._json)((0, import_core2.awsExpectUnion)(_)), "ImageSource"),
3490
+ InfrastructureConfigurationArn: import_smithy_client.expectString,
3491
+ LastUpdatedTime: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "LastUpdatedTime"),
3492
+ State: import_smithy_client.expectString
3493
+ });
3494
+ }, "de_DescribeCustomWorkspaceImageImportResult");
3406
3495
  var de_DescribeImageAssociationsResult = /* @__PURE__ */ __name((output, context) => {
3407
3496
  return (0, import_smithy_client.take)(output, {
3408
3497
  Associations: /* @__PURE__ */ __name((_) => de_ImageResourceAssociationList(_, context), "Associations")
@@ -4255,6 +4344,21 @@ var DescribeConnectionAliasPermissionsCommand = class extends import_smithy_clie
4255
4344
  }
4256
4345
  };
4257
4346
 
4347
+ // src/commands/DescribeCustomWorkspaceImageImportCommand.ts
4348
+
4349
+
4350
+
4351
+ var DescribeCustomWorkspaceImageImportCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
4352
+ return [
4353
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
4354
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
4355
+ ];
4356
+ }).s("WorkspacesService", "DescribeCustomWorkspaceImageImport", {}).n("WorkSpacesClient", "DescribeCustomWorkspaceImageImportCommand").f(void 0, void 0).ser(se_DescribeCustomWorkspaceImageImportCommand).de(de_DescribeCustomWorkspaceImageImportCommand).build() {
4357
+ static {
4358
+ __name(this, "DescribeCustomWorkspaceImageImportCommand");
4359
+ }
4360
+ };
4361
+
4258
4362
  // src/commands/DescribeImageAssociationsCommand.ts
4259
4363
 
4260
4364
 
@@ -4525,6 +4629,21 @@ var ImportClientBrandingCommand = class extends import_smithy_client.Command.cla
4525
4629
  }
4526
4630
  };
4527
4631
 
4632
+ // src/commands/ImportCustomWorkspaceImageCommand.ts
4633
+
4634
+
4635
+
4636
+ var ImportCustomWorkspaceImageCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
4637
+ return [
4638
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
4639
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
4640
+ ];
4641
+ }).s("WorkspacesService", "ImportCustomWorkspaceImage", {}).n("WorkSpacesClient", "ImportCustomWorkspaceImageCommand").f(void 0, void 0).ser(se_ImportCustomWorkspaceImageCommand).de(de_ImportCustomWorkspaceImageCommand).build() {
4642
+ static {
4643
+ __name(this, "ImportCustomWorkspaceImageCommand");
4644
+ }
4645
+ };
4646
+
4528
4647
  // src/commands/ImportWorkspaceImageCommand.ts
4529
4648
 
4530
4649
 
@@ -5074,6 +5193,7 @@ var commands = {
5074
5193
  DescribeConnectClientAddInsCommand,
5075
5194
  DescribeConnectionAliasesCommand,
5076
5195
  DescribeConnectionAliasPermissionsCommand,
5196
+ DescribeCustomWorkspaceImageImportCommand,
5077
5197
  DescribeImageAssociationsCommand,
5078
5198
  DescribeIpGroupsCommand,
5079
5199
  DescribeTagsCommand,
@@ -5092,6 +5212,7 @@ var commands = {
5092
5212
  DisassociateWorkspaceApplicationCommand,
5093
5213
  GetAccountLinkCommand,
5094
5214
  ImportClientBrandingCommand,
5215
+ ImportCustomWorkspaceImageCommand,
5095
5216
  ImportWorkspaceImageCommand,
5096
5217
  ListAccountLinksCommand,
5097
5218
  ListAvailableManagementCidrRangesCommand,
@@ -5202,6 +5323,7 @@ var paginateListAccountLinks = (0, import_core.createPaginator)(WorkSpacesClient
5202
5323
  DescribeConnectClientAddInsCommand,
5203
5324
  DescribeConnectionAliasPermissionsCommand,
5204
5325
  DescribeConnectionAliasesCommand,
5326
+ DescribeCustomWorkspaceImageImportCommand,
5205
5327
  DescribeImageAssociationsCommand,
5206
5328
  DescribeIpGroupsCommand,
5207
5329
  DescribeTagsCommand,
@@ -5220,6 +5342,7 @@ var paginateListAccountLinks = (0, import_core.createPaginator)(WorkSpacesClient
5220
5342
  DisassociateWorkspaceApplicationCommand,
5221
5343
  GetAccountLinkCommand,
5222
5344
  ImportClientBrandingCommand,
5345
+ ImportCustomWorkspaceImageCommand,
5223
5346
  ImportWorkspaceImageCommand,
5224
5347
  ListAccountLinksCommand,
5225
5348
  ListAvailableManagementCidrRangesCommand,
@@ -5320,12 +5443,15 @@ var paginateListAccountLinks = (0, import_core.createPaginator)(WorkSpacesClient
5320
5443
  PoolsRunningMode,
5321
5444
  WorkspacesPoolErrorCode,
5322
5445
  WorkspacesPoolState,
5446
+ CustomImageProtocol,
5447
+ CustomWorkspaceImageImportState,
5323
5448
  DedicatedTenancyAccountType,
5324
5449
  DedicatedTenancySupportEnum,
5325
5450
  DeletableCertificateBasedAuthProperty,
5326
5451
  DeletableSamlProperty,
5327
5452
  WorkSpaceApplicationLicenseType,
5328
5453
  WorkSpaceApplicationState,
5454
+ ImageSourceIdentifier,
5329
5455
  ImageAssociatedResourceType,
5330
5456
  DescribeWorkspaceDirectoriesFilterName,
5331
5457
  WorkspaceDirectoryType,
@@ -5345,6 +5471,9 @@ var paginateListAccountLinks = (0, import_core.createPaginator)(WorkSpacesClient
5345
5471
  DescribeWorkspacesPoolsFilterName,
5346
5472
  DescribeWorkspacesPoolsFilterOperator,
5347
5473
  SessionConnectionState,
5474
+ ImageComputeType,
5475
+ OSVersion,
5476
+ Platform,
5348
5477
  WorkspaceImageIngestionProcess,
5349
5478
  InvalidParameterCombinationException,
5350
5479
  OperationInProgressException,
@@ -36,6 +36,7 @@ import { DescribeClientPropertiesCommand, } from "./commands/DescribeClientPrope
36
36
  import { DescribeConnectClientAddInsCommand, } from "./commands/DescribeConnectClientAddInsCommand";
37
37
  import { DescribeConnectionAliasesCommand, } from "./commands/DescribeConnectionAliasesCommand";
38
38
  import { DescribeConnectionAliasPermissionsCommand, } from "./commands/DescribeConnectionAliasPermissionsCommand";
39
+ import { DescribeCustomWorkspaceImageImportCommand, } from "./commands/DescribeCustomWorkspaceImageImportCommand";
39
40
  import { DescribeImageAssociationsCommand, } from "./commands/DescribeImageAssociationsCommand";
40
41
  import { DescribeIpGroupsCommand, } from "./commands/DescribeIpGroupsCommand";
41
42
  import { DescribeTagsCommand, } from "./commands/DescribeTagsCommand";
@@ -54,6 +55,7 @@ import { DisassociateIpGroupsCommand, } from "./commands/DisassociateIpGroupsCom
54
55
  import { DisassociateWorkspaceApplicationCommand, } from "./commands/DisassociateWorkspaceApplicationCommand";
55
56
  import { GetAccountLinkCommand, } from "./commands/GetAccountLinkCommand";
56
57
  import { ImportClientBrandingCommand, } from "./commands/ImportClientBrandingCommand";
58
+ import { ImportCustomWorkspaceImageCommand, } from "./commands/ImportCustomWorkspaceImageCommand";
57
59
  import { ImportWorkspaceImageCommand, } from "./commands/ImportWorkspaceImageCommand";
58
60
  import { ListAccountLinksCommand, } from "./commands/ListAccountLinksCommand";
59
61
  import { ListAvailableManagementCidrRangesCommand, } from "./commands/ListAvailableManagementCidrRangesCommand";
@@ -127,6 +129,7 @@ const commands = {
127
129
  DescribeConnectClientAddInsCommand,
128
130
  DescribeConnectionAliasesCommand,
129
131
  DescribeConnectionAliasPermissionsCommand,
132
+ DescribeCustomWorkspaceImageImportCommand,
130
133
  DescribeImageAssociationsCommand,
131
134
  DescribeIpGroupsCommand,
132
135
  DescribeTagsCommand,
@@ -145,6 +148,7 @@ const commands = {
145
148
  DisassociateWorkspaceApplicationCommand,
146
149
  GetAccountLinkCommand,
147
150
  ImportClientBrandingCommand,
151
+ ImportCustomWorkspaceImageCommand,
148
152
  ImportWorkspaceImageCommand,
149
153
  ListAccountLinksCommand,
150
154
  ListAvailableManagementCidrRangesCommand,
@@ -0,0 +1,22 @@
1
+ import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
+ import { getSerdePlugin } from "@smithy/middleware-serde";
3
+ import { Command as $Command } from "@smithy/smithy-client";
4
+ import { commonParams } from "../endpoint/EndpointParameters";
5
+ import { de_DescribeCustomWorkspaceImageImportCommand, se_DescribeCustomWorkspaceImageImportCommand, } from "../protocols/Aws_json1_1";
6
+ export { $Command };
7
+ export class DescribeCustomWorkspaceImageImportCommand extends $Command
8
+ .classBuilder()
9
+ .ep(commonParams)
10
+ .m(function (Command, cs, config, o) {
11
+ return [
12
+ getSerdePlugin(config, this.serialize, this.deserialize),
13
+ getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
14
+ ];
15
+ })
16
+ .s("WorkspacesService", "DescribeCustomWorkspaceImageImport", {})
17
+ .n("WorkSpacesClient", "DescribeCustomWorkspaceImageImportCommand")
18
+ .f(void 0, void 0)
19
+ .ser(se_DescribeCustomWorkspaceImageImportCommand)
20
+ .de(de_DescribeCustomWorkspaceImageImportCommand)
21
+ .build() {
22
+ }
@@ -0,0 +1,22 @@
1
+ import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
+ import { getSerdePlugin } from "@smithy/middleware-serde";
3
+ import { Command as $Command } from "@smithy/smithy-client";
4
+ import { commonParams } from "../endpoint/EndpointParameters";
5
+ import { de_ImportCustomWorkspaceImageCommand, se_ImportCustomWorkspaceImageCommand } from "../protocols/Aws_json1_1";
6
+ export { $Command };
7
+ export class ImportCustomWorkspaceImageCommand extends $Command
8
+ .classBuilder()
9
+ .ep(commonParams)
10
+ .m(function (Command, cs, config, o) {
11
+ return [
12
+ getSerdePlugin(config, this.serialize, this.deserialize),
13
+ getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
14
+ ];
15
+ })
16
+ .s("WorkspacesService", "ImportCustomWorkspaceImage", {})
17
+ .n("WorkSpacesClient", "ImportCustomWorkspaceImageCommand")
18
+ .f(void 0, void 0)
19
+ .ser(se_ImportCustomWorkspaceImageCommand)
20
+ .de(de_ImportCustomWorkspaceImageCommand)
21
+ .build() {
22
+ }
@@ -35,6 +35,7 @@ export * from "./DescribeClientPropertiesCommand";
35
35
  export * from "./DescribeConnectClientAddInsCommand";
36
36
  export * from "./DescribeConnectionAliasPermissionsCommand";
37
37
  export * from "./DescribeConnectionAliasesCommand";
38
+ export * from "./DescribeCustomWorkspaceImageImportCommand";
38
39
  export * from "./DescribeImageAssociationsCommand";
39
40
  export * from "./DescribeIpGroupsCommand";
40
41
  export * from "./DescribeTagsCommand";
@@ -53,6 +54,7 @@ export * from "./DisassociateIpGroupsCommand";
53
54
  export * from "./DisassociateWorkspaceApplicationCommand";
54
55
  export * from "./GetAccountLinkCommand";
55
56
  export * from "./ImportClientBrandingCommand";
57
+ export * from "./ImportCustomWorkspaceImageCommand";
56
58
  export * from "./ImportWorkspaceImageCommand";
57
59
  export * from "./ListAccountLinksCommand";
58
60
  export * from "./ListAvailableManagementCidrRangesCommand";
@@ -494,6 +494,17 @@ export const WorkspacesPoolState = {
494
494
  STOPPING: "STOPPING",
495
495
  UPDATING: "UPDATING",
496
496
  };
497
+ export const CustomImageProtocol = {
498
+ BYOP: "BYOP",
499
+ DCV: "DCV",
500
+ PCOIP: "PCOIP",
501
+ };
502
+ export const CustomWorkspaceImageImportState = {
503
+ COMPLETED: "COMPLETED",
504
+ ERROR: "ERROR",
505
+ IN_PROGRESS: "IN_PROGRESS",
506
+ PENDING: "PENDING",
507
+ };
497
508
  export const DedicatedTenancyAccountType = {
498
509
  SOURCE_ACCOUNT: "SOURCE_ACCOUNT",
499
510
  TARGET_ACCOUNT: "TARGET_ACCOUNT",
@@ -518,6 +529,18 @@ export const WorkSpaceApplicationState = {
518
529
  PENDING: "PENDING",
519
530
  UNINSTALL_ONLY: "UNINSTALL_ONLY",
520
531
  };
532
+ export var ImageSourceIdentifier;
533
+ (function (ImageSourceIdentifier) {
534
+ ImageSourceIdentifier.visit = (value, visitor) => {
535
+ if (value.Ec2ImportTaskId !== undefined)
536
+ return visitor.Ec2ImportTaskId(value.Ec2ImportTaskId);
537
+ if (value.ImageBuildVersionArn !== undefined)
538
+ return visitor.ImageBuildVersionArn(value.ImageBuildVersionArn);
539
+ if (value.Ec2ImageId !== undefined)
540
+ return visitor.Ec2ImageId(value.Ec2ImageId);
541
+ return visitor._(value.$unknown[0], value.$unknown[1]);
542
+ };
543
+ })(ImageSourceIdentifier || (ImageSourceIdentifier = {}));
521
544
  export const ImageAssociatedResourceType = {
522
545
  APPLICATION: "APPLICATION",
523
546
  };
@@ -648,6 +671,17 @@ export const SessionConnectionState = {
648
671
  CONNECTED: "CONNECTED",
649
672
  NOT_CONNECTED: "NOT_CONNECTED",
650
673
  };
674
+ export const ImageComputeType = {
675
+ BASE: "BASE",
676
+ GRAPHICS_G4DN: "GRAPHICS_G4DN",
677
+ };
678
+ export const OSVersion = {
679
+ Windows_10: "Windows_10",
680
+ Windows_11: "Windows_11",
681
+ };
682
+ export const Platform = {
683
+ WINDOWS: "WINDOWS",
684
+ };
651
685
  export const WorkspaceImageIngestionProcess = {
652
686
  BYOL_GRAPHICS: "BYOL_GRAPHICS",
653
687
  BYOL_GRAPHICSPRO: "BYOL_GRAPHICSPRO",
@@ -682,15 +716,3 @@ export class OperationInProgressException extends __BaseException {
682
716
  Object.setPrototypeOf(this, OperationInProgressException.prototype);
683
717
  }
684
718
  }
685
- export class UnsupportedWorkspaceConfigurationException extends __BaseException {
686
- name = "UnsupportedWorkspaceConfigurationException";
687
- $fault = "client";
688
- constructor(opts) {
689
- super({
690
- name: "UnsupportedWorkspaceConfigurationException",
691
- $fault: "client",
692
- ...opts,
693
- });
694
- Object.setPrototypeOf(this, UnsupportedWorkspaceConfigurationException.prototype);
695
- }
696
- }
@@ -1,4 +1,16 @@
1
1
  import { WorkSpacesServiceException as __BaseException } from "./WorkSpacesServiceException";
2
+ export class UnsupportedWorkspaceConfigurationException extends __BaseException {
3
+ name = "UnsupportedWorkspaceConfigurationException";
4
+ $fault = "client";
5
+ constructor(opts) {
6
+ super({
7
+ name: "UnsupportedWorkspaceConfigurationException",
8
+ $fault: "client",
9
+ ...opts,
10
+ });
11
+ Object.setPrototypeOf(this, UnsupportedWorkspaceConfigurationException.prototype);
12
+ }
13
+ }
2
14
  export const TargetWorkspaceState = {
3
15
  ADMIN_MAINTENANCE: "ADMIN_MAINTENANCE",
4
16
  AVAILABLE: "AVAILABLE",
@@ -1,8 +1,8 @@
1
- import { loadRestJsonErrorCode, parseJsonBody as parseBody, parseJsonErrorBody as parseErrorBody } from "@aws-sdk/core";
1
+ import { awsExpectUnion as __expectUnion, loadRestJsonErrorCode, parseJsonBody as parseBody, parseJsonErrorBody as parseErrorBody, } from "@aws-sdk/core";
2
2
  import { HttpRequest as __HttpRequest } from "@smithy/protocol-http";
3
3
  import { _json, collectBody, decorateServiceException as __decorateServiceException, expectBoolean as __expectBoolean, expectNonNull as __expectNonNull, expectNumber as __expectNumber, expectString as __expectString, parseEpochTimestamp as __parseEpochTimestamp, take, withBaseException, } from "@smithy/smithy-client";
4
- import { AccessDeniedException, ApplicationNotSupportedException, ComputeNotCompatibleException, ConflictException, IncompatibleApplicationsException, InternalServerException, InvalidParameterCombinationException, InvalidParameterValuesException, InvalidResourceStateException, OperatingSystemNotCompatibleException, OperationInProgressException, OperationNotSupportedException, ResourceAlreadyExistsException, ResourceAssociatedException, ResourceCreationFailedException, ResourceInUseException, ResourceLimitExceededException, ResourceNotFoundException, ResourceUnavailableException, UnsupportedWorkspaceConfigurationException, ValidationException, } from "../models/models_0";
5
- import { UnsupportedNetworkConfigurationException, WorkspacesDefaultRoleNotFoundException, } from "../models/models_1";
4
+ import { AccessDeniedException, ApplicationNotSupportedException, ComputeNotCompatibleException, ConflictException, IncompatibleApplicationsException, InternalServerException, InvalidParameterCombinationException, InvalidParameterValuesException, InvalidResourceStateException, OperatingSystemNotCompatibleException, OperationInProgressException, OperationNotSupportedException, ResourceAlreadyExistsException, ResourceAssociatedException, ResourceCreationFailedException, ResourceInUseException, ResourceLimitExceededException, ResourceNotFoundException, ResourceUnavailableException, ValidationException, } from "../models/models_0";
5
+ import { UnsupportedNetworkConfigurationException, UnsupportedWorkspaceConfigurationException, WorkspacesDefaultRoleNotFoundException, } from "../models/models_1";
6
6
  import { WorkSpacesServiceException as __BaseException } from "../models/WorkSpacesServiceException";
7
7
  export const se_AcceptAccountLinkInvitationCommand = async (input, context) => {
8
8
  const headers = sharedHeaders("AcceptAccountLinkInvitation");
@@ -226,6 +226,12 @@ export const se_DescribeConnectionAliasPermissionsCommand = async (input, contex
226
226
  body = JSON.stringify(_json(input));
227
227
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
228
228
  };
229
+ export const se_DescribeCustomWorkspaceImageImportCommand = async (input, context) => {
230
+ const headers = sharedHeaders("DescribeCustomWorkspaceImageImport");
231
+ let body;
232
+ body = JSON.stringify(_json(input));
233
+ return buildHttpRpcRequest(context, headers, "/", undefined, body);
234
+ };
229
235
  export const se_DescribeImageAssociationsCommand = async (input, context) => {
230
236
  const headers = sharedHeaders("DescribeImageAssociations");
231
237
  let body;
@@ -334,6 +340,12 @@ export const se_ImportClientBrandingCommand = async (input, context) => {
334
340
  body = JSON.stringify(se_ImportClientBrandingRequest(input, context));
335
341
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
336
342
  };
343
+ export const se_ImportCustomWorkspaceImageCommand = async (input, context) => {
344
+ const headers = sharedHeaders("ImportCustomWorkspaceImage");
345
+ let body;
346
+ body = JSON.stringify(_json(input));
347
+ return buildHttpRpcRequest(context, headers, "/", undefined, body);
348
+ };
337
349
  export const se_ImportWorkspaceImageCommand = async (input, context) => {
338
350
  const headers = sharedHeaders("ImportWorkspaceImage");
339
351
  let body;
@@ -1019,6 +1031,19 @@ export const de_DescribeConnectionAliasPermissionsCommand = async (output, conte
1019
1031
  };
1020
1032
  return response;
1021
1033
  };
1034
+ export const de_DescribeCustomWorkspaceImageImportCommand = async (output, context) => {
1035
+ if (output.statusCode >= 300) {
1036
+ return de_CommandError(output, context);
1037
+ }
1038
+ const data = await parseBody(output.body, context);
1039
+ let contents = {};
1040
+ contents = de_DescribeCustomWorkspaceImageImportResult(data, context);
1041
+ const response = {
1042
+ $metadata: deserializeMetadata(output),
1043
+ ...contents,
1044
+ };
1045
+ return response;
1046
+ };
1022
1047
  export const de_DescribeImageAssociationsCommand = async (output, context) => {
1023
1048
  if (output.statusCode >= 300) {
1024
1049
  return de_CommandError(output, context);
@@ -1253,6 +1278,19 @@ export const de_ImportClientBrandingCommand = async (output, context) => {
1253
1278
  };
1254
1279
  return response;
1255
1280
  };
1281
+ export const de_ImportCustomWorkspaceImageCommand = async (output, context) => {
1282
+ if (output.statusCode >= 300) {
1283
+ return de_CommandError(output, context);
1284
+ }
1285
+ const data = await parseBody(output.body, context);
1286
+ let contents = {};
1287
+ contents = _json(data);
1288
+ const response = {
1289
+ $metadata: deserializeMetadata(output),
1290
+ ...contents,
1291
+ };
1292
+ return response;
1293
+ };
1256
1294
  export const de_ImportWorkspaceImageCommand = async (output, context) => {
1257
1295
  if (output.statusCode >= 300) {
1258
1296
  return de_CommandError(output, context);
@@ -2149,6 +2187,18 @@ const de_DescribeBundleAssociationsResult = (output, context) => {
2149
2187
  Associations: (_) => de_BundleResourceAssociationList(_, context),
2150
2188
  });
2151
2189
  };
2190
+ const de_DescribeCustomWorkspaceImageImportResult = (output, context) => {
2191
+ return take(output, {
2192
+ Created: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
2193
+ ErrorDetails: _json,
2194
+ ImageBuilderInstanceId: __expectString,
2195
+ ImageId: __expectString,
2196
+ ImageSource: (_) => _json(__expectUnion(_)),
2197
+ InfrastructureConfigurationArn: __expectString,
2198
+ LastUpdatedTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
2199
+ State: __expectString,
2200
+ });
2201
+ };
2152
2202
  const de_DescribeImageAssociationsResult = (output, context) => {
2153
2203
  return take(output, {
2154
2204
  Associations: (_) => de_ImageResourceAssociationList(_, context),
@@ -36,6 +36,7 @@ import { DescribeClientPropertiesCommandInput, DescribeClientPropertiesCommandOu
36
36
  import { DescribeConnectClientAddInsCommandInput, DescribeConnectClientAddInsCommandOutput } from "./commands/DescribeConnectClientAddInsCommand";
37
37
  import { DescribeConnectionAliasesCommandInput, DescribeConnectionAliasesCommandOutput } from "./commands/DescribeConnectionAliasesCommand";
38
38
  import { DescribeConnectionAliasPermissionsCommandInput, DescribeConnectionAliasPermissionsCommandOutput } from "./commands/DescribeConnectionAliasPermissionsCommand";
39
+ import { DescribeCustomWorkspaceImageImportCommandInput, DescribeCustomWorkspaceImageImportCommandOutput } from "./commands/DescribeCustomWorkspaceImageImportCommand";
39
40
  import { DescribeImageAssociationsCommandInput, DescribeImageAssociationsCommandOutput } from "./commands/DescribeImageAssociationsCommand";
40
41
  import { DescribeIpGroupsCommandInput, DescribeIpGroupsCommandOutput } from "./commands/DescribeIpGroupsCommand";
41
42
  import { DescribeTagsCommandInput, DescribeTagsCommandOutput } from "./commands/DescribeTagsCommand";
@@ -54,6 +55,7 @@ import { DisassociateIpGroupsCommandInput, DisassociateIpGroupsCommandOutput } f
54
55
  import { DisassociateWorkspaceApplicationCommandInput, DisassociateWorkspaceApplicationCommandOutput } from "./commands/DisassociateWorkspaceApplicationCommand";
55
56
  import { GetAccountLinkCommandInput, GetAccountLinkCommandOutput } from "./commands/GetAccountLinkCommand";
56
57
  import { ImportClientBrandingCommandInput, ImportClientBrandingCommandOutput } from "./commands/ImportClientBrandingCommand";
58
+ import { ImportCustomWorkspaceImageCommandInput, ImportCustomWorkspaceImageCommandOutput } from "./commands/ImportCustomWorkspaceImageCommand";
57
59
  import { ImportWorkspaceImageCommandInput, ImportWorkspaceImageCommandOutput } from "./commands/ImportWorkspaceImageCommand";
58
60
  import { ListAccountLinksCommandInput, ListAccountLinksCommandOutput } from "./commands/ListAccountLinksCommand";
59
61
  import { ListAvailableManagementCidrRangesCommandInput, ListAvailableManagementCidrRangesCommandOutput } from "./commands/ListAvailableManagementCidrRangesCommand";
@@ -317,6 +319,12 @@ export interface WorkSpaces {
317
319
  describeConnectionAliasPermissions(args: DescribeConnectionAliasPermissionsCommandInput, options?: __HttpHandlerOptions): Promise<DescribeConnectionAliasPermissionsCommandOutput>;
318
320
  describeConnectionAliasPermissions(args: DescribeConnectionAliasPermissionsCommandInput, cb: (err: any, data?: DescribeConnectionAliasPermissionsCommandOutput) => void): void;
319
321
  describeConnectionAliasPermissions(args: DescribeConnectionAliasPermissionsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DescribeConnectionAliasPermissionsCommandOutput) => void): void;
322
+ /**
323
+ * @see {@link DescribeCustomWorkspaceImageImportCommand}
324
+ */
325
+ describeCustomWorkspaceImageImport(args: DescribeCustomWorkspaceImageImportCommandInput, options?: __HttpHandlerOptions): Promise<DescribeCustomWorkspaceImageImportCommandOutput>;
326
+ describeCustomWorkspaceImageImport(args: DescribeCustomWorkspaceImageImportCommandInput, cb: (err: any, data?: DescribeCustomWorkspaceImageImportCommandOutput) => void): void;
327
+ describeCustomWorkspaceImageImport(args: DescribeCustomWorkspaceImageImportCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DescribeCustomWorkspaceImageImportCommandOutput) => void): void;
320
328
  /**
321
329
  * @see {@link DescribeImageAssociationsCommand}
322
330
  */
@@ -433,6 +441,12 @@ export interface WorkSpaces {
433
441
  importClientBranding(args: ImportClientBrandingCommandInput, options?: __HttpHandlerOptions): Promise<ImportClientBrandingCommandOutput>;
434
442
  importClientBranding(args: ImportClientBrandingCommandInput, cb: (err: any, data?: ImportClientBrandingCommandOutput) => void): void;
435
443
  importClientBranding(args: ImportClientBrandingCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ImportClientBrandingCommandOutput) => void): void;
444
+ /**
445
+ * @see {@link ImportCustomWorkspaceImageCommand}
446
+ */
447
+ importCustomWorkspaceImage(args: ImportCustomWorkspaceImageCommandInput, options?: __HttpHandlerOptions): Promise<ImportCustomWorkspaceImageCommandOutput>;
448
+ importCustomWorkspaceImage(args: ImportCustomWorkspaceImageCommandInput, cb: (err: any, data?: ImportCustomWorkspaceImageCommandOutput) => void): void;
449
+ importCustomWorkspaceImage(args: ImportCustomWorkspaceImageCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ImportCustomWorkspaceImageCommandOutput) => void): void;
436
450
  /**
437
451
  * @see {@link ImportWorkspaceImageCommand}
438
452
  */