@aws-sdk/client-mgn 3.39.0 → 3.43.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 (81) hide show
  1. package/CHANGELOG.md +41 -0
  2. package/dist-cjs/Mgn.js +60 -0
  3. package/dist-cjs/commands/DeleteVcenterClientCommand.js +36 -0
  4. package/dist-cjs/commands/DescribeVcenterClientsCommand.js +36 -0
  5. package/dist-cjs/commands/StartReplicationCommand.js +36 -0
  6. package/dist-cjs/commands/UpdateSourceServerReplicationTypeCommand.js +36 -0
  7. package/dist-cjs/commands/index.js +4 -0
  8. package/dist-cjs/endpoints.js +74 -5
  9. package/dist-cjs/models/models_0.js +57 -1
  10. package/dist-cjs/pagination/DescribeVcenterClientsPaginator.js +35 -0
  11. package/dist-cjs/pagination/index.js +1 -0
  12. package/dist-cjs/protocols/Aws_restJson1.js +574 -1
  13. package/dist-cjs/runtimeConfig.browser.js +6 -3
  14. package/dist-cjs/runtimeConfig.js +5 -3
  15. package/dist-es/Mgn.js +60 -0
  16. package/dist-es/commands/DeleteVcenterClientCommand.js +39 -0
  17. package/dist-es/commands/DescribeVcenterClientsCommand.js +39 -0
  18. package/dist-es/commands/StartReplicationCommand.js +39 -0
  19. package/dist-es/commands/UpdateSourceServerReplicationTypeCommand.js +39 -0
  20. package/dist-es/commands/index.js +4 -0
  21. package/dist-es/endpoints.js +74 -5
  22. package/dist-es/models/models_0.js +38 -0
  23. package/dist-es/pagination/DescribeVcenterClientsPaginator.js +74 -0
  24. package/dist-es/pagination/index.js +1 -0
  25. package/dist-es/protocols/Aws_restJson1.js +643 -6
  26. package/dist-es/runtimeConfig.browser.js +3 -2
  27. package/dist-es/runtimeConfig.js +3 -3
  28. package/dist-types/Mgn.d.ts +28 -0
  29. package/dist-types/MgnClient.d.ts +14 -2
  30. package/dist-types/commands/ChangeServerLifeCycleStateCommand.d.ts +1 -1
  31. package/dist-types/commands/CreateReplicationConfigurationTemplateCommand.d.ts +1 -1
  32. package/dist-types/commands/DeleteJobCommand.d.ts +1 -1
  33. package/dist-types/commands/DeleteReplicationConfigurationTemplateCommand.d.ts +1 -1
  34. package/dist-types/commands/DeleteSourceServerCommand.d.ts +1 -1
  35. package/dist-types/commands/DeleteVcenterClientCommand.d.ts +35 -0
  36. package/dist-types/commands/DescribeJobLogItemsCommand.d.ts +1 -1
  37. package/dist-types/commands/DescribeJobsCommand.d.ts +1 -1
  38. package/dist-types/commands/DescribeReplicationConfigurationTemplatesCommand.d.ts +1 -1
  39. package/dist-types/commands/DescribeSourceServersCommand.d.ts +1 -1
  40. package/dist-types/commands/DescribeVcenterClientsCommand.d.ts +35 -0
  41. package/dist-types/commands/DisconnectFromServiceCommand.d.ts +1 -1
  42. package/dist-types/commands/FinalizeCutoverCommand.d.ts +1 -1
  43. package/dist-types/commands/GetLaunchConfigurationCommand.d.ts +1 -1
  44. package/dist-types/commands/GetReplicationConfigurationCommand.d.ts +1 -1
  45. package/dist-types/commands/InitializeServiceCommand.d.ts +1 -1
  46. package/dist-types/commands/ListTagsForResourceCommand.d.ts +1 -1
  47. package/dist-types/commands/MarkAsArchivedCommand.d.ts +1 -1
  48. package/dist-types/commands/RetryDataReplicationCommand.d.ts +1 -1
  49. package/dist-types/commands/StartCutoverCommand.d.ts +1 -1
  50. package/dist-types/commands/StartReplicationCommand.d.ts +35 -0
  51. package/dist-types/commands/StartTestCommand.d.ts +1 -1
  52. package/dist-types/commands/TagResourceCommand.d.ts +1 -1
  53. package/dist-types/commands/TerminateTargetInstancesCommand.d.ts +1 -1
  54. package/dist-types/commands/UntagResourceCommand.d.ts +1 -1
  55. package/dist-types/commands/UpdateLaunchConfigurationCommand.d.ts +1 -1
  56. package/dist-types/commands/UpdateReplicationConfigurationCommand.d.ts +1 -1
  57. package/dist-types/commands/UpdateReplicationConfigurationTemplateCommand.d.ts +1 -1
  58. package/dist-types/commands/UpdateSourceServerReplicationTypeCommand.d.ts +35 -0
  59. package/dist-types/commands/index.d.ts +4 -0
  60. package/dist-types/models/models_0.d.ts +184 -1
  61. package/dist-types/pagination/DescribeVcenterClientsPaginator.d.ts +4 -0
  62. package/dist-types/pagination/index.d.ts +1 -0
  63. package/dist-types/protocols/Aws_restJson1.d.ts +12 -0
  64. package/dist-types/runtimeConfig.browser.d.ts +2 -0
  65. package/dist-types/runtimeConfig.d.ts +2 -0
  66. package/dist-types/runtimeConfig.native.d.ts +2 -0
  67. package/dist-types/ts3.4/Mgn.d.ts +20 -0
  68. package/dist-types/ts3.4/MgnClient.d.ts +10 -2
  69. package/dist-types/ts3.4/commands/DeleteVcenterClientCommand.d.ts +17 -0
  70. package/dist-types/ts3.4/commands/DescribeVcenterClientsCommand.d.ts +17 -0
  71. package/dist-types/ts3.4/commands/StartReplicationCommand.d.ts +17 -0
  72. package/dist-types/ts3.4/commands/UpdateSourceServerReplicationTypeCommand.d.ts +17 -0
  73. package/dist-types/ts3.4/commands/index.d.ts +4 -0
  74. package/dist-types/ts3.4/models/models_0.d.ts +114 -1
  75. package/dist-types/ts3.4/pagination/DescribeVcenterClientsPaginator.d.ts +4 -0
  76. package/dist-types/ts3.4/pagination/index.d.ts +1 -0
  77. package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +12 -0
  78. package/dist-types/ts3.4/runtimeConfig.browser.d.ts +2 -0
  79. package/dist-types/ts3.4/runtimeConfig.d.ts +2 -0
  80. package/dist-types/ts3.4/runtimeConfig.native.d.ts +2 -0
  81. package/package.json +23 -23
@@ -1,6 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.deserializeAws_restJson1UpdateReplicationConfigurationTemplateCommand = exports.deserializeAws_restJson1UpdateReplicationConfigurationCommand = exports.deserializeAws_restJson1UpdateLaunchConfigurationCommand = exports.deserializeAws_restJson1UntagResourceCommand = exports.deserializeAws_restJson1TerminateTargetInstancesCommand = exports.deserializeAws_restJson1TagResourceCommand = exports.deserializeAws_restJson1StartTestCommand = exports.deserializeAws_restJson1StartCutoverCommand = exports.deserializeAws_restJson1RetryDataReplicationCommand = exports.deserializeAws_restJson1MarkAsArchivedCommand = exports.deserializeAws_restJson1ListTagsForResourceCommand = exports.deserializeAws_restJson1InitializeServiceCommand = exports.deserializeAws_restJson1GetReplicationConfigurationCommand = exports.deserializeAws_restJson1GetLaunchConfigurationCommand = exports.deserializeAws_restJson1FinalizeCutoverCommand = exports.deserializeAws_restJson1DisconnectFromServiceCommand = exports.deserializeAws_restJson1DescribeSourceServersCommand = exports.deserializeAws_restJson1DescribeReplicationConfigurationTemplatesCommand = exports.deserializeAws_restJson1DescribeJobsCommand = exports.deserializeAws_restJson1DescribeJobLogItemsCommand = exports.deserializeAws_restJson1DeleteSourceServerCommand = exports.deserializeAws_restJson1DeleteReplicationConfigurationTemplateCommand = exports.deserializeAws_restJson1DeleteJobCommand = exports.deserializeAws_restJson1CreateReplicationConfigurationTemplateCommand = exports.deserializeAws_restJson1ChangeServerLifeCycleStateCommand = exports.serializeAws_restJson1UpdateReplicationConfigurationTemplateCommand = exports.serializeAws_restJson1UpdateReplicationConfigurationCommand = exports.serializeAws_restJson1UpdateLaunchConfigurationCommand = exports.serializeAws_restJson1UntagResourceCommand = exports.serializeAws_restJson1TerminateTargetInstancesCommand = exports.serializeAws_restJson1TagResourceCommand = exports.serializeAws_restJson1StartTestCommand = exports.serializeAws_restJson1StartCutoverCommand = exports.serializeAws_restJson1RetryDataReplicationCommand = exports.serializeAws_restJson1MarkAsArchivedCommand = exports.serializeAws_restJson1ListTagsForResourceCommand = exports.serializeAws_restJson1InitializeServiceCommand = exports.serializeAws_restJson1GetReplicationConfigurationCommand = exports.serializeAws_restJson1GetLaunchConfigurationCommand = exports.serializeAws_restJson1FinalizeCutoverCommand = exports.serializeAws_restJson1DisconnectFromServiceCommand = exports.serializeAws_restJson1DescribeSourceServersCommand = exports.serializeAws_restJson1DescribeReplicationConfigurationTemplatesCommand = exports.serializeAws_restJson1DescribeJobsCommand = exports.serializeAws_restJson1DescribeJobLogItemsCommand = exports.serializeAws_restJson1DeleteSourceServerCommand = exports.serializeAws_restJson1DeleteReplicationConfigurationTemplateCommand = exports.serializeAws_restJson1DeleteJobCommand = exports.serializeAws_restJson1CreateReplicationConfigurationTemplateCommand = exports.serializeAws_restJson1ChangeServerLifeCycleStateCommand = void 0;
3
+ exports.deserializeAws_restJson1StartReplicationCommand = exports.deserializeAws_restJson1StartCutoverCommand = exports.deserializeAws_restJson1RetryDataReplicationCommand = exports.deserializeAws_restJson1MarkAsArchivedCommand = exports.deserializeAws_restJson1ListTagsForResourceCommand = exports.deserializeAws_restJson1InitializeServiceCommand = exports.deserializeAws_restJson1GetReplicationConfigurationCommand = exports.deserializeAws_restJson1GetLaunchConfigurationCommand = exports.deserializeAws_restJson1FinalizeCutoverCommand = exports.deserializeAws_restJson1DisconnectFromServiceCommand = exports.deserializeAws_restJson1DescribeVcenterClientsCommand = exports.deserializeAws_restJson1DescribeSourceServersCommand = exports.deserializeAws_restJson1DescribeReplicationConfigurationTemplatesCommand = exports.deserializeAws_restJson1DescribeJobsCommand = exports.deserializeAws_restJson1DescribeJobLogItemsCommand = exports.deserializeAws_restJson1DeleteVcenterClientCommand = exports.deserializeAws_restJson1DeleteSourceServerCommand = exports.deserializeAws_restJson1DeleteReplicationConfigurationTemplateCommand = exports.deserializeAws_restJson1DeleteJobCommand = exports.deserializeAws_restJson1CreateReplicationConfigurationTemplateCommand = exports.deserializeAws_restJson1ChangeServerLifeCycleStateCommand = exports.serializeAws_restJson1UpdateSourceServerReplicationTypeCommand = exports.serializeAws_restJson1UpdateReplicationConfigurationTemplateCommand = exports.serializeAws_restJson1UpdateReplicationConfigurationCommand = exports.serializeAws_restJson1UpdateLaunchConfigurationCommand = exports.serializeAws_restJson1UntagResourceCommand = exports.serializeAws_restJson1TerminateTargetInstancesCommand = exports.serializeAws_restJson1TagResourceCommand = exports.serializeAws_restJson1StartTestCommand = exports.serializeAws_restJson1StartReplicationCommand = exports.serializeAws_restJson1StartCutoverCommand = exports.serializeAws_restJson1RetryDataReplicationCommand = exports.serializeAws_restJson1MarkAsArchivedCommand = exports.serializeAws_restJson1ListTagsForResourceCommand = exports.serializeAws_restJson1InitializeServiceCommand = exports.serializeAws_restJson1GetReplicationConfigurationCommand = exports.serializeAws_restJson1GetLaunchConfigurationCommand = exports.serializeAws_restJson1FinalizeCutoverCommand = exports.serializeAws_restJson1DisconnectFromServiceCommand = exports.serializeAws_restJson1DescribeVcenterClientsCommand = exports.serializeAws_restJson1DescribeSourceServersCommand = exports.serializeAws_restJson1DescribeReplicationConfigurationTemplatesCommand = exports.serializeAws_restJson1DescribeJobsCommand = exports.serializeAws_restJson1DescribeJobLogItemsCommand = exports.serializeAws_restJson1DeleteVcenterClientCommand = exports.serializeAws_restJson1DeleteSourceServerCommand = exports.serializeAws_restJson1DeleteReplicationConfigurationTemplateCommand = exports.serializeAws_restJson1DeleteJobCommand = exports.serializeAws_restJson1CreateReplicationConfigurationTemplateCommand = exports.serializeAws_restJson1ChangeServerLifeCycleStateCommand = void 0;
4
+ exports.deserializeAws_restJson1UpdateSourceServerReplicationTypeCommand = exports.deserializeAws_restJson1UpdateReplicationConfigurationTemplateCommand = exports.deserializeAws_restJson1UpdateReplicationConfigurationCommand = exports.deserializeAws_restJson1UpdateLaunchConfigurationCommand = exports.deserializeAws_restJson1UntagResourceCommand = exports.deserializeAws_restJson1TerminateTargetInstancesCommand = exports.deserializeAws_restJson1TagResourceCommand = exports.deserializeAws_restJson1StartTestCommand = void 0;
4
5
  const protocol_http_1 = require("@aws-sdk/protocol-http");
5
6
  const smithy_client_1 = require("@aws-sdk/smithy-client");
6
7
  const serializeAws_restJson1ChangeServerLifeCycleStateCommand = async (input, context) => {
@@ -151,6 +152,28 @@ const serializeAws_restJson1DeleteSourceServerCommand = async (input, context) =
151
152
  });
152
153
  };
153
154
  exports.serializeAws_restJson1DeleteSourceServerCommand = serializeAws_restJson1DeleteSourceServerCommand;
155
+ const serializeAws_restJson1DeleteVcenterClientCommand = async (input, context) => {
156
+ const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
157
+ const headers = {
158
+ "content-type": "application/json",
159
+ };
160
+ const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/DeleteVcenterClient";
161
+ let body;
162
+ body = JSON.stringify({
163
+ ...(input.vcenterClientID !== undefined &&
164
+ input.vcenterClientID !== null && { vcenterClientID: input.vcenterClientID }),
165
+ });
166
+ return new protocol_http_1.HttpRequest({
167
+ protocol,
168
+ hostname,
169
+ port,
170
+ method: "POST",
171
+ headers,
172
+ path: resolvedPath,
173
+ body,
174
+ });
175
+ };
176
+ exports.serializeAws_restJson1DeleteVcenterClientCommand = serializeAws_restJson1DeleteVcenterClientCommand;
154
177
  const serializeAws_restJson1DescribeJobLogItemsCommand = async (input, context) => {
155
178
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
156
179
  const headers = {
@@ -251,6 +274,27 @@ const serializeAws_restJson1DescribeSourceServersCommand = async (input, context
251
274
  });
252
275
  };
253
276
  exports.serializeAws_restJson1DescribeSourceServersCommand = serializeAws_restJson1DescribeSourceServersCommand;
277
+ const serializeAws_restJson1DescribeVcenterClientsCommand = async (input, context) => {
278
+ const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
279
+ const headers = {};
280
+ const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/DescribeVcenterClients";
281
+ const query = {
282
+ ...(input.maxResults !== undefined && { maxResults: input.maxResults.toString() }),
283
+ ...(input.nextToken !== undefined && { nextToken: input.nextToken }),
284
+ };
285
+ let body;
286
+ return new protocol_http_1.HttpRequest({
287
+ protocol,
288
+ hostname,
289
+ port,
290
+ method: "GET",
291
+ headers,
292
+ path: resolvedPath,
293
+ query,
294
+ body,
295
+ });
296
+ };
297
+ exports.serializeAws_restJson1DescribeVcenterClientsCommand = serializeAws_restJson1DescribeVcenterClientsCommand;
254
298
  const serializeAws_restJson1DisconnectFromServiceCommand = async (input, context) => {
255
299
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
256
300
  const headers = {
@@ -454,6 +498,28 @@ const serializeAws_restJson1StartCutoverCommand = async (input, context) => {
454
498
  });
455
499
  };
456
500
  exports.serializeAws_restJson1StartCutoverCommand = serializeAws_restJson1StartCutoverCommand;
501
+ const serializeAws_restJson1StartReplicationCommand = async (input, context) => {
502
+ const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
503
+ const headers = {
504
+ "content-type": "application/json",
505
+ };
506
+ const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/StartReplication";
507
+ let body;
508
+ body = JSON.stringify({
509
+ ...(input.sourceServerID !== undefined &&
510
+ input.sourceServerID !== null && { sourceServerID: input.sourceServerID }),
511
+ });
512
+ return new protocol_http_1.HttpRequest({
513
+ protocol,
514
+ hostname,
515
+ port,
516
+ method: "POST",
517
+ headers,
518
+ path: resolvedPath,
519
+ body,
520
+ });
521
+ };
522
+ exports.serializeAws_restJson1StartReplicationCommand = serializeAws_restJson1StartReplicationCommand;
457
523
  const serializeAws_restJson1StartTestCommand = async (input, context) => {
458
524
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
459
525
  const headers = {
@@ -719,6 +785,30 @@ const serializeAws_restJson1UpdateReplicationConfigurationTemplateCommand = asyn
719
785
  });
720
786
  };
721
787
  exports.serializeAws_restJson1UpdateReplicationConfigurationTemplateCommand = serializeAws_restJson1UpdateReplicationConfigurationTemplateCommand;
788
+ const serializeAws_restJson1UpdateSourceServerReplicationTypeCommand = async (input, context) => {
789
+ const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
790
+ const headers = {
791
+ "content-type": "application/json",
792
+ };
793
+ const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/UpdateSourceServerReplicationType";
794
+ let body;
795
+ body = JSON.stringify({
796
+ ...(input.replicationType !== undefined &&
797
+ input.replicationType !== null && { replicationType: input.replicationType }),
798
+ ...(input.sourceServerID !== undefined &&
799
+ input.sourceServerID !== null && { sourceServerID: input.sourceServerID }),
800
+ });
801
+ return new protocol_http_1.HttpRequest({
802
+ protocol,
803
+ hostname,
804
+ port,
805
+ method: "POST",
806
+ headers,
807
+ path: resolvedPath,
808
+ body,
809
+ });
810
+ };
811
+ exports.serializeAws_restJson1UpdateSourceServerReplicationTypeCommand = serializeAws_restJson1UpdateSourceServerReplicationTypeCommand;
722
812
  const deserializeAws_restJson1ChangeServerLifeCycleStateCommand = async (output, context) => {
723
813
  if (output.statusCode !== 200 && output.statusCode >= 300) {
724
814
  return deserializeAws_restJson1ChangeServerLifeCycleStateCommandError(output, context);
@@ -730,9 +820,11 @@ const deserializeAws_restJson1ChangeServerLifeCycleStateCommand = async (output,
730
820
  isArchived: undefined,
731
821
  launchedInstance: undefined,
732
822
  lifeCycle: undefined,
823
+ replicationType: undefined,
733
824
  sourceProperties: undefined,
734
825
  sourceServerID: undefined,
735
826
  tags: undefined,
827
+ vcenterClientID: undefined,
736
828
  };
737
829
  const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
738
830
  if (data.arn !== undefined && data.arn !== null) {
@@ -750,6 +842,9 @@ const deserializeAws_restJson1ChangeServerLifeCycleStateCommand = async (output,
750
842
  if (data.lifeCycle !== undefined && data.lifeCycle !== null) {
751
843
  contents.lifeCycle = deserializeAws_restJson1LifeCycle(data.lifeCycle, context);
752
844
  }
845
+ if (data.replicationType !== undefined && data.replicationType !== null) {
846
+ contents.replicationType = smithy_client_1.expectString(data.replicationType);
847
+ }
753
848
  if (data.sourceProperties !== undefined && data.sourceProperties !== null) {
754
849
  contents.sourceProperties = deserializeAws_restJson1SourceProperties(data.sourceProperties, context);
755
850
  }
@@ -759,6 +854,9 @@ const deserializeAws_restJson1ChangeServerLifeCycleStateCommand = async (output,
759
854
  if (data.tags !== undefined && data.tags !== null) {
760
855
  contents.tags = deserializeAws_restJson1TagsMap(data.tags, context);
761
856
  }
857
+ if (data.vcenterClientID !== undefined && data.vcenterClientID !== null) {
858
+ contents.vcenterClientID = smithy_client_1.expectString(data.vcenterClientID);
859
+ }
762
860
  return Promise.resolve(contents);
763
861
  };
764
862
  exports.deserializeAws_restJson1ChangeServerLifeCycleStateCommand = deserializeAws_restJson1ChangeServerLifeCycleStateCommand;
@@ -1119,6 +1217,66 @@ const deserializeAws_restJson1DeleteSourceServerCommandError = async (output, co
1119
1217
  delete response.Message;
1120
1218
  return Promise.reject(Object.assign(new Error(message), response));
1121
1219
  };
1220
+ const deserializeAws_restJson1DeleteVcenterClientCommand = async (output, context) => {
1221
+ if (output.statusCode !== 204 && output.statusCode >= 300) {
1222
+ return deserializeAws_restJson1DeleteVcenterClientCommandError(output, context);
1223
+ }
1224
+ const contents = {
1225
+ $metadata: deserializeMetadata(output),
1226
+ };
1227
+ await collectBody(output.body, context);
1228
+ return Promise.resolve(contents);
1229
+ };
1230
+ exports.deserializeAws_restJson1DeleteVcenterClientCommand = deserializeAws_restJson1DeleteVcenterClientCommand;
1231
+ const deserializeAws_restJson1DeleteVcenterClientCommandError = async (output, context) => {
1232
+ const parsedOutput = {
1233
+ ...output,
1234
+ body: await parseBody(output.body, context),
1235
+ };
1236
+ let response;
1237
+ let errorCode = "UnknownError";
1238
+ errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1239
+ switch (errorCode) {
1240
+ case "ResourceNotFoundException":
1241
+ case "com.amazonaws.mgn#ResourceNotFoundException":
1242
+ response = {
1243
+ ...(await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)),
1244
+ name: errorCode,
1245
+ $metadata: deserializeMetadata(output),
1246
+ };
1247
+ break;
1248
+ case "UninitializedAccountException":
1249
+ case "com.amazonaws.mgn#UninitializedAccountException":
1250
+ response = {
1251
+ ...(await deserializeAws_restJson1UninitializedAccountExceptionResponse(parsedOutput, context)),
1252
+ name: errorCode,
1253
+ $metadata: deserializeMetadata(output),
1254
+ };
1255
+ break;
1256
+ case "ValidationException":
1257
+ case "com.amazonaws.mgn#ValidationException":
1258
+ response = {
1259
+ ...(await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)),
1260
+ name: errorCode,
1261
+ $metadata: deserializeMetadata(output),
1262
+ };
1263
+ break;
1264
+ default:
1265
+ const parsedBody = parsedOutput.body;
1266
+ errorCode = parsedBody.code || parsedBody.Code || errorCode;
1267
+ response = {
1268
+ ...parsedBody,
1269
+ name: `${errorCode}`,
1270
+ message: parsedBody.message || parsedBody.Message || errorCode,
1271
+ $fault: "client",
1272
+ $metadata: deserializeMetadata(output),
1273
+ };
1274
+ }
1275
+ const message = response.message || response.Message || errorCode;
1276
+ response.message = message;
1277
+ delete response.Message;
1278
+ return Promise.reject(Object.assign(new Error(message), response));
1279
+ };
1122
1280
  const deserializeAws_restJson1DescribeJobLogItemsCommand = async (output, context) => {
1123
1281
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1124
1282
  return deserializeAws_restJson1DescribeJobLogItemsCommandError(output, context);
@@ -1367,6 +1525,74 @@ const deserializeAws_restJson1DescribeSourceServersCommandError = async (output,
1367
1525
  delete response.Message;
1368
1526
  return Promise.reject(Object.assign(new Error(message), response));
1369
1527
  };
1528
+ const deserializeAws_restJson1DescribeVcenterClientsCommand = async (output, context) => {
1529
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1530
+ return deserializeAws_restJson1DescribeVcenterClientsCommandError(output, context);
1531
+ }
1532
+ const contents = {
1533
+ $metadata: deserializeMetadata(output),
1534
+ items: undefined,
1535
+ nextToken: undefined,
1536
+ };
1537
+ const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
1538
+ if (data.items !== undefined && data.items !== null) {
1539
+ contents.items = deserializeAws_restJson1VcenterClientList(data.items, context);
1540
+ }
1541
+ if (data.nextToken !== undefined && data.nextToken !== null) {
1542
+ contents.nextToken = smithy_client_1.expectString(data.nextToken);
1543
+ }
1544
+ return Promise.resolve(contents);
1545
+ };
1546
+ exports.deserializeAws_restJson1DescribeVcenterClientsCommand = deserializeAws_restJson1DescribeVcenterClientsCommand;
1547
+ const deserializeAws_restJson1DescribeVcenterClientsCommandError = async (output, context) => {
1548
+ const parsedOutput = {
1549
+ ...output,
1550
+ body: await parseBody(output.body, context),
1551
+ };
1552
+ let response;
1553
+ let errorCode = "UnknownError";
1554
+ errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1555
+ switch (errorCode) {
1556
+ case "ResourceNotFoundException":
1557
+ case "com.amazonaws.mgn#ResourceNotFoundException":
1558
+ response = {
1559
+ ...(await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)),
1560
+ name: errorCode,
1561
+ $metadata: deserializeMetadata(output),
1562
+ };
1563
+ break;
1564
+ case "UninitializedAccountException":
1565
+ case "com.amazonaws.mgn#UninitializedAccountException":
1566
+ response = {
1567
+ ...(await deserializeAws_restJson1UninitializedAccountExceptionResponse(parsedOutput, context)),
1568
+ name: errorCode,
1569
+ $metadata: deserializeMetadata(output),
1570
+ };
1571
+ break;
1572
+ case "ValidationException":
1573
+ case "com.amazonaws.mgn#ValidationException":
1574
+ response = {
1575
+ ...(await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)),
1576
+ name: errorCode,
1577
+ $metadata: deserializeMetadata(output),
1578
+ };
1579
+ break;
1580
+ default:
1581
+ const parsedBody = parsedOutput.body;
1582
+ errorCode = parsedBody.code || parsedBody.Code || errorCode;
1583
+ response = {
1584
+ ...parsedBody,
1585
+ name: `${errorCode}`,
1586
+ message: parsedBody.message || parsedBody.Message || errorCode,
1587
+ $fault: "client",
1588
+ $metadata: deserializeMetadata(output),
1589
+ };
1590
+ }
1591
+ const message = response.message || response.Message || errorCode;
1592
+ response.message = message;
1593
+ delete response.Message;
1594
+ return Promise.reject(Object.assign(new Error(message), response));
1595
+ };
1370
1596
  const deserializeAws_restJson1DisconnectFromServiceCommand = async (output, context) => {
1371
1597
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1372
1598
  return deserializeAws_restJson1DisconnectFromServiceCommandError(output, context);
@@ -1378,9 +1604,11 @@ const deserializeAws_restJson1DisconnectFromServiceCommand = async (output, cont
1378
1604
  isArchived: undefined,
1379
1605
  launchedInstance: undefined,
1380
1606
  lifeCycle: undefined,
1607
+ replicationType: undefined,
1381
1608
  sourceProperties: undefined,
1382
1609
  sourceServerID: undefined,
1383
1610
  tags: undefined,
1611
+ vcenterClientID: undefined,
1384
1612
  };
1385
1613
  const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
1386
1614
  if (data.arn !== undefined && data.arn !== null) {
@@ -1398,6 +1626,9 @@ const deserializeAws_restJson1DisconnectFromServiceCommand = async (output, cont
1398
1626
  if (data.lifeCycle !== undefined && data.lifeCycle !== null) {
1399
1627
  contents.lifeCycle = deserializeAws_restJson1LifeCycle(data.lifeCycle, context);
1400
1628
  }
1629
+ if (data.replicationType !== undefined && data.replicationType !== null) {
1630
+ contents.replicationType = smithy_client_1.expectString(data.replicationType);
1631
+ }
1401
1632
  if (data.sourceProperties !== undefined && data.sourceProperties !== null) {
1402
1633
  contents.sourceProperties = deserializeAws_restJson1SourceProperties(data.sourceProperties, context);
1403
1634
  }
@@ -1407,6 +1638,9 @@ const deserializeAws_restJson1DisconnectFromServiceCommand = async (output, cont
1407
1638
  if (data.tags !== undefined && data.tags !== null) {
1408
1639
  contents.tags = deserializeAws_restJson1TagsMap(data.tags, context);
1409
1640
  }
1641
+ if (data.vcenterClientID !== undefined && data.vcenterClientID !== null) {
1642
+ contents.vcenterClientID = smithy_client_1.expectString(data.vcenterClientID);
1643
+ }
1410
1644
  return Promise.resolve(contents);
1411
1645
  };
1412
1646
  exports.deserializeAws_restJson1DisconnectFromServiceCommand = deserializeAws_restJson1DisconnectFromServiceCommand;
@@ -1470,9 +1704,11 @@ const deserializeAws_restJson1FinalizeCutoverCommand = async (output, context) =
1470
1704
  isArchived: undefined,
1471
1705
  launchedInstance: undefined,
1472
1706
  lifeCycle: undefined,
1707
+ replicationType: undefined,
1473
1708
  sourceProperties: undefined,
1474
1709
  sourceServerID: undefined,
1475
1710
  tags: undefined,
1711
+ vcenterClientID: undefined,
1476
1712
  };
1477
1713
  const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
1478
1714
  if (data.arn !== undefined && data.arn !== null) {
@@ -1490,6 +1726,9 @@ const deserializeAws_restJson1FinalizeCutoverCommand = async (output, context) =
1490
1726
  if (data.lifeCycle !== undefined && data.lifeCycle !== null) {
1491
1727
  contents.lifeCycle = deserializeAws_restJson1LifeCycle(data.lifeCycle, context);
1492
1728
  }
1729
+ if (data.replicationType !== undefined && data.replicationType !== null) {
1730
+ contents.replicationType = smithy_client_1.expectString(data.replicationType);
1731
+ }
1493
1732
  if (data.sourceProperties !== undefined && data.sourceProperties !== null) {
1494
1733
  contents.sourceProperties = deserializeAws_restJson1SourceProperties(data.sourceProperties, context);
1495
1734
  }
@@ -1499,6 +1738,9 @@ const deserializeAws_restJson1FinalizeCutoverCommand = async (output, context) =
1499
1738
  if (data.tags !== undefined && data.tags !== null) {
1500
1739
  contents.tags = deserializeAws_restJson1TagsMap(data.tags, context);
1501
1740
  }
1741
+ if (data.vcenterClientID !== undefined && data.vcenterClientID !== null) {
1742
+ contents.vcenterClientID = smithy_client_1.expectString(data.vcenterClientID);
1743
+ }
1502
1744
  return Promise.resolve(contents);
1503
1745
  };
1504
1746
  exports.deserializeAws_restJson1FinalizeCutoverCommand = deserializeAws_restJson1FinalizeCutoverCommand;
@@ -1898,9 +2140,11 @@ const deserializeAws_restJson1MarkAsArchivedCommand = async (output, context) =>
1898
2140
  isArchived: undefined,
1899
2141
  launchedInstance: undefined,
1900
2142
  lifeCycle: undefined,
2143
+ replicationType: undefined,
1901
2144
  sourceProperties: undefined,
1902
2145
  sourceServerID: undefined,
1903
2146
  tags: undefined,
2147
+ vcenterClientID: undefined,
1904
2148
  };
1905
2149
  const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
1906
2150
  if (data.arn !== undefined && data.arn !== null) {
@@ -1918,6 +2162,9 @@ const deserializeAws_restJson1MarkAsArchivedCommand = async (output, context) =>
1918
2162
  if (data.lifeCycle !== undefined && data.lifeCycle !== null) {
1919
2163
  contents.lifeCycle = deserializeAws_restJson1LifeCycle(data.lifeCycle, context);
1920
2164
  }
2165
+ if (data.replicationType !== undefined && data.replicationType !== null) {
2166
+ contents.replicationType = smithy_client_1.expectString(data.replicationType);
2167
+ }
1921
2168
  if (data.sourceProperties !== undefined && data.sourceProperties !== null) {
1922
2169
  contents.sourceProperties = deserializeAws_restJson1SourceProperties(data.sourceProperties, context);
1923
2170
  }
@@ -1927,6 +2174,9 @@ const deserializeAws_restJson1MarkAsArchivedCommand = async (output, context) =>
1927
2174
  if (data.tags !== undefined && data.tags !== null) {
1928
2175
  contents.tags = deserializeAws_restJson1TagsMap(data.tags, context);
1929
2176
  }
2177
+ if (data.vcenterClientID !== undefined && data.vcenterClientID !== null) {
2178
+ contents.vcenterClientID = smithy_client_1.expectString(data.vcenterClientID);
2179
+ }
1930
2180
  return Promise.resolve(contents);
1931
2181
  };
1932
2182
  exports.deserializeAws_restJson1MarkAsArchivedCommand = deserializeAws_restJson1MarkAsArchivedCommand;
@@ -1990,9 +2240,11 @@ const deserializeAws_restJson1RetryDataReplicationCommand = async (output, conte
1990
2240
  isArchived: undefined,
1991
2241
  launchedInstance: undefined,
1992
2242
  lifeCycle: undefined,
2243
+ replicationType: undefined,
1993
2244
  sourceProperties: undefined,
1994
2245
  sourceServerID: undefined,
1995
2246
  tags: undefined,
2247
+ vcenterClientID: undefined,
1996
2248
  };
1997
2249
  const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
1998
2250
  if (data.arn !== undefined && data.arn !== null) {
@@ -2010,6 +2262,9 @@ const deserializeAws_restJson1RetryDataReplicationCommand = async (output, conte
2010
2262
  if (data.lifeCycle !== undefined && data.lifeCycle !== null) {
2011
2263
  contents.lifeCycle = deserializeAws_restJson1LifeCycle(data.lifeCycle, context);
2012
2264
  }
2265
+ if (data.replicationType !== undefined && data.replicationType !== null) {
2266
+ contents.replicationType = smithy_client_1.expectString(data.replicationType);
2267
+ }
2013
2268
  if (data.sourceProperties !== undefined && data.sourceProperties !== null) {
2014
2269
  contents.sourceProperties = deserializeAws_restJson1SourceProperties(data.sourceProperties, context);
2015
2270
  }
@@ -2019,6 +2274,9 @@ const deserializeAws_restJson1RetryDataReplicationCommand = async (output, conte
2019
2274
  if (data.tags !== undefined && data.tags !== null) {
2020
2275
  contents.tags = deserializeAws_restJson1TagsMap(data.tags, context);
2021
2276
  }
2277
+ if (data.vcenterClientID !== undefined && data.vcenterClientID !== null) {
2278
+ contents.vcenterClientID = smithy_client_1.expectString(data.vcenterClientID);
2279
+ }
2022
2280
  return Promise.resolve(contents);
2023
2281
  };
2024
2282
  exports.deserializeAws_restJson1RetryDataReplicationCommand = deserializeAws_restJson1RetryDataReplicationCommand;
@@ -2135,6 +2393,122 @@ const deserializeAws_restJson1StartCutoverCommandError = async (output, context)
2135
2393
  delete response.Message;
2136
2394
  return Promise.reject(Object.assign(new Error(message), response));
2137
2395
  };
2396
+ const deserializeAws_restJson1StartReplicationCommand = async (output, context) => {
2397
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
2398
+ return deserializeAws_restJson1StartReplicationCommandError(output, context);
2399
+ }
2400
+ const contents = {
2401
+ $metadata: deserializeMetadata(output),
2402
+ arn: undefined,
2403
+ dataReplicationInfo: undefined,
2404
+ isArchived: undefined,
2405
+ launchedInstance: undefined,
2406
+ lifeCycle: undefined,
2407
+ replicationType: undefined,
2408
+ sourceProperties: undefined,
2409
+ sourceServerID: undefined,
2410
+ tags: undefined,
2411
+ vcenterClientID: undefined,
2412
+ };
2413
+ const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
2414
+ if (data.arn !== undefined && data.arn !== null) {
2415
+ contents.arn = smithy_client_1.expectString(data.arn);
2416
+ }
2417
+ if (data.dataReplicationInfo !== undefined && data.dataReplicationInfo !== null) {
2418
+ contents.dataReplicationInfo = deserializeAws_restJson1DataReplicationInfo(data.dataReplicationInfo, context);
2419
+ }
2420
+ if (data.isArchived !== undefined && data.isArchived !== null) {
2421
+ contents.isArchived = smithy_client_1.expectBoolean(data.isArchived);
2422
+ }
2423
+ if (data.launchedInstance !== undefined && data.launchedInstance !== null) {
2424
+ contents.launchedInstance = deserializeAws_restJson1LaunchedInstance(data.launchedInstance, context);
2425
+ }
2426
+ if (data.lifeCycle !== undefined && data.lifeCycle !== null) {
2427
+ contents.lifeCycle = deserializeAws_restJson1LifeCycle(data.lifeCycle, context);
2428
+ }
2429
+ if (data.replicationType !== undefined && data.replicationType !== null) {
2430
+ contents.replicationType = smithy_client_1.expectString(data.replicationType);
2431
+ }
2432
+ if (data.sourceProperties !== undefined && data.sourceProperties !== null) {
2433
+ contents.sourceProperties = deserializeAws_restJson1SourceProperties(data.sourceProperties, context);
2434
+ }
2435
+ if (data.sourceServerID !== undefined && data.sourceServerID !== null) {
2436
+ contents.sourceServerID = smithy_client_1.expectString(data.sourceServerID);
2437
+ }
2438
+ if (data.tags !== undefined && data.tags !== null) {
2439
+ contents.tags = deserializeAws_restJson1TagsMap(data.tags, context);
2440
+ }
2441
+ if (data.vcenterClientID !== undefined && data.vcenterClientID !== null) {
2442
+ contents.vcenterClientID = smithy_client_1.expectString(data.vcenterClientID);
2443
+ }
2444
+ return Promise.resolve(contents);
2445
+ };
2446
+ exports.deserializeAws_restJson1StartReplicationCommand = deserializeAws_restJson1StartReplicationCommand;
2447
+ const deserializeAws_restJson1StartReplicationCommandError = async (output, context) => {
2448
+ const parsedOutput = {
2449
+ ...output,
2450
+ body: await parseBody(output.body, context),
2451
+ };
2452
+ let response;
2453
+ let errorCode = "UnknownError";
2454
+ errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2455
+ switch (errorCode) {
2456
+ case "ConflictException":
2457
+ case "com.amazonaws.mgn#ConflictException":
2458
+ response = {
2459
+ ...(await deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context)),
2460
+ name: errorCode,
2461
+ $metadata: deserializeMetadata(output),
2462
+ };
2463
+ break;
2464
+ case "ResourceNotFoundException":
2465
+ case "com.amazonaws.mgn#ResourceNotFoundException":
2466
+ response = {
2467
+ ...(await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)),
2468
+ name: errorCode,
2469
+ $metadata: deserializeMetadata(output),
2470
+ };
2471
+ break;
2472
+ case "ServiceQuotaExceededException":
2473
+ case "com.amazonaws.mgn#ServiceQuotaExceededException":
2474
+ response = {
2475
+ ...(await deserializeAws_restJson1ServiceQuotaExceededExceptionResponse(parsedOutput, context)),
2476
+ name: errorCode,
2477
+ $metadata: deserializeMetadata(output),
2478
+ };
2479
+ break;
2480
+ case "UninitializedAccountException":
2481
+ case "com.amazonaws.mgn#UninitializedAccountException":
2482
+ response = {
2483
+ ...(await deserializeAws_restJson1UninitializedAccountExceptionResponse(parsedOutput, context)),
2484
+ name: errorCode,
2485
+ $metadata: deserializeMetadata(output),
2486
+ };
2487
+ break;
2488
+ case "ValidationException":
2489
+ case "com.amazonaws.mgn#ValidationException":
2490
+ response = {
2491
+ ...(await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)),
2492
+ name: errorCode,
2493
+ $metadata: deserializeMetadata(output),
2494
+ };
2495
+ break;
2496
+ default:
2497
+ const parsedBody = parsedOutput.body;
2498
+ errorCode = parsedBody.code || parsedBody.Code || errorCode;
2499
+ response = {
2500
+ ...parsedBody,
2501
+ name: `${errorCode}`,
2502
+ message: parsedBody.message || parsedBody.Message || errorCode,
2503
+ $fault: "client",
2504
+ $metadata: deserializeMetadata(output),
2505
+ };
2506
+ }
2507
+ const message = response.message || response.Message || errorCode;
2508
+ response.message = message;
2509
+ delete response.Message;
2510
+ return Promise.reject(Object.assign(new Error(message), response));
2511
+ };
2138
2512
  const deserializeAws_restJson1StartTestCommand = async (output, context) => {
2139
2513
  if (output.statusCode !== 202 && output.statusCode >= 300) {
2140
2514
  return deserializeAws_restJson1StartTestCommandError(output, context);
@@ -2779,6 +3153,114 @@ const deserializeAws_restJson1UpdateReplicationConfigurationTemplateCommandError
2779
3153
  delete response.Message;
2780
3154
  return Promise.reject(Object.assign(new Error(message), response));
2781
3155
  };
3156
+ const deserializeAws_restJson1UpdateSourceServerReplicationTypeCommand = async (output, context) => {
3157
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
3158
+ return deserializeAws_restJson1UpdateSourceServerReplicationTypeCommandError(output, context);
3159
+ }
3160
+ const contents = {
3161
+ $metadata: deserializeMetadata(output),
3162
+ arn: undefined,
3163
+ dataReplicationInfo: undefined,
3164
+ isArchived: undefined,
3165
+ launchedInstance: undefined,
3166
+ lifeCycle: undefined,
3167
+ replicationType: undefined,
3168
+ sourceProperties: undefined,
3169
+ sourceServerID: undefined,
3170
+ tags: undefined,
3171
+ vcenterClientID: undefined,
3172
+ };
3173
+ const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
3174
+ if (data.arn !== undefined && data.arn !== null) {
3175
+ contents.arn = smithy_client_1.expectString(data.arn);
3176
+ }
3177
+ if (data.dataReplicationInfo !== undefined && data.dataReplicationInfo !== null) {
3178
+ contents.dataReplicationInfo = deserializeAws_restJson1DataReplicationInfo(data.dataReplicationInfo, context);
3179
+ }
3180
+ if (data.isArchived !== undefined && data.isArchived !== null) {
3181
+ contents.isArchived = smithy_client_1.expectBoolean(data.isArchived);
3182
+ }
3183
+ if (data.launchedInstance !== undefined && data.launchedInstance !== null) {
3184
+ contents.launchedInstance = deserializeAws_restJson1LaunchedInstance(data.launchedInstance, context);
3185
+ }
3186
+ if (data.lifeCycle !== undefined && data.lifeCycle !== null) {
3187
+ contents.lifeCycle = deserializeAws_restJson1LifeCycle(data.lifeCycle, context);
3188
+ }
3189
+ if (data.replicationType !== undefined && data.replicationType !== null) {
3190
+ contents.replicationType = smithy_client_1.expectString(data.replicationType);
3191
+ }
3192
+ if (data.sourceProperties !== undefined && data.sourceProperties !== null) {
3193
+ contents.sourceProperties = deserializeAws_restJson1SourceProperties(data.sourceProperties, context);
3194
+ }
3195
+ if (data.sourceServerID !== undefined && data.sourceServerID !== null) {
3196
+ contents.sourceServerID = smithy_client_1.expectString(data.sourceServerID);
3197
+ }
3198
+ if (data.tags !== undefined && data.tags !== null) {
3199
+ contents.tags = deserializeAws_restJson1TagsMap(data.tags, context);
3200
+ }
3201
+ if (data.vcenterClientID !== undefined && data.vcenterClientID !== null) {
3202
+ contents.vcenterClientID = smithy_client_1.expectString(data.vcenterClientID);
3203
+ }
3204
+ return Promise.resolve(contents);
3205
+ };
3206
+ exports.deserializeAws_restJson1UpdateSourceServerReplicationTypeCommand = deserializeAws_restJson1UpdateSourceServerReplicationTypeCommand;
3207
+ const deserializeAws_restJson1UpdateSourceServerReplicationTypeCommandError = async (output, context) => {
3208
+ const parsedOutput = {
3209
+ ...output,
3210
+ body: await parseBody(output.body, context),
3211
+ };
3212
+ let response;
3213
+ let errorCode = "UnknownError";
3214
+ errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
3215
+ switch (errorCode) {
3216
+ case "ConflictException":
3217
+ case "com.amazonaws.mgn#ConflictException":
3218
+ response = {
3219
+ ...(await deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context)),
3220
+ name: errorCode,
3221
+ $metadata: deserializeMetadata(output),
3222
+ };
3223
+ break;
3224
+ case "ResourceNotFoundException":
3225
+ case "com.amazonaws.mgn#ResourceNotFoundException":
3226
+ response = {
3227
+ ...(await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)),
3228
+ name: errorCode,
3229
+ $metadata: deserializeMetadata(output),
3230
+ };
3231
+ break;
3232
+ case "UninitializedAccountException":
3233
+ case "com.amazonaws.mgn#UninitializedAccountException":
3234
+ response = {
3235
+ ...(await deserializeAws_restJson1UninitializedAccountExceptionResponse(parsedOutput, context)),
3236
+ name: errorCode,
3237
+ $metadata: deserializeMetadata(output),
3238
+ };
3239
+ break;
3240
+ case "ValidationException":
3241
+ case "com.amazonaws.mgn#ValidationException":
3242
+ response = {
3243
+ ...(await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)),
3244
+ name: errorCode,
3245
+ $metadata: deserializeMetadata(output),
3246
+ };
3247
+ break;
3248
+ default:
3249
+ const parsedBody = parsedOutput.body;
3250
+ errorCode = parsedBody.code || parsedBody.Code || errorCode;
3251
+ response = {
3252
+ ...parsedBody,
3253
+ name: `${errorCode}`,
3254
+ message: parsedBody.message || parsedBody.Message || errorCode,
3255
+ $fault: "client",
3256
+ $metadata: deserializeMetadata(output),
3257
+ };
3258
+ }
3259
+ const message = response.message || response.Message || errorCode;
3260
+ response.message = message;
3261
+ delete response.Message;
3262
+ return Promise.reject(Object.assign(new Error(message), response));
3263
+ };
2782
3264
  const deserializeAws_restJson1AccessDeniedExceptionResponse = async (parsedOutput, context) => {
2783
3265
  const contents = {
2784
3266
  name: "AccessDeniedException",
@@ -2863,6 +3345,39 @@ const deserializeAws_restJson1ResourceNotFoundExceptionResponse = async (parsedO
2863
3345
  }
2864
3346
  return contents;
2865
3347
  };
3348
+ const deserializeAws_restJson1ServiceQuotaExceededExceptionResponse = async (parsedOutput, context) => {
3349
+ const contents = {
3350
+ name: "ServiceQuotaExceededException",
3351
+ $fault: "client",
3352
+ $metadata: deserializeMetadata(parsedOutput),
3353
+ code: undefined,
3354
+ message: undefined,
3355
+ quotaCode: undefined,
3356
+ resourceId: undefined,
3357
+ resourceType: undefined,
3358
+ serviceCode: undefined,
3359
+ };
3360
+ const data = parsedOutput.body;
3361
+ if (data.code !== undefined && data.code !== null) {
3362
+ contents.code = smithy_client_1.expectString(data.code);
3363
+ }
3364
+ if (data.message !== undefined && data.message !== null) {
3365
+ contents.message = smithy_client_1.expectString(data.message);
3366
+ }
3367
+ if (data.quotaCode !== undefined && data.quotaCode !== null) {
3368
+ contents.quotaCode = smithy_client_1.expectString(data.quotaCode);
3369
+ }
3370
+ if (data.resourceId !== undefined && data.resourceId !== null) {
3371
+ contents.resourceId = smithy_client_1.expectString(data.resourceId);
3372
+ }
3373
+ if (data.resourceType !== undefined && data.resourceType !== null) {
3374
+ contents.resourceType = smithy_client_1.expectString(data.resourceType);
3375
+ }
3376
+ if (data.serviceCode !== undefined && data.serviceCode !== null) {
3377
+ contents.serviceCode = smithy_client_1.expectString(data.serviceCode);
3378
+ }
3379
+ return contents;
3380
+ };
2866
3381
  const deserializeAws_restJson1ThrottlingExceptionResponse = async (parsedOutput, context) => {
2867
3382
  const contents = {
2868
3383
  name: "ThrottlingException",
@@ -2958,6 +3473,14 @@ const serializeAws_restJson1DescribeJobsRequestFiltersJobIDs = (input, context)
2958
3473
  const serializeAws_restJson1DescribeSourceServersRequestFilters = (input, context) => {
2959
3474
  return {
2960
3475
  ...(input.isArchived !== undefined && input.isArchived !== null && { isArchived: input.isArchived }),
3476
+ ...(input.lifeCycleStates !== undefined &&
3477
+ input.lifeCycleStates !== null && {
3478
+ lifeCycleStates: serializeAws_restJson1LifeCycleStates(input.lifeCycleStates, context),
3479
+ }),
3480
+ ...(input.replicationTypes !== undefined &&
3481
+ input.replicationTypes !== null && {
3482
+ replicationTypes: serializeAws_restJson1ReplicationTypes(input.replicationTypes, context),
3483
+ }),
2961
3484
  ...(input.sourceServerIDs !== undefined &&
2962
3485
  input.sourceServerIDs !== null && {
2963
3486
  sourceServerIDs: serializeAws_restJson1DescribeSourceServersRequestFiltersIDs(input.sourceServerIDs, context),
@@ -2979,6 +3502,16 @@ const serializeAws_restJson1Licensing = (input, context) => {
2979
3502
  ...(input.osByol !== undefined && input.osByol !== null && { osByol: input.osByol }),
2980
3503
  };
2981
3504
  };
3505
+ const serializeAws_restJson1LifeCycleStates = (input, context) => {
3506
+ return input
3507
+ .filter((e) => e != null)
3508
+ .map((entry) => {
3509
+ if (entry === null) {
3510
+ return null;
3511
+ }
3512
+ return entry;
3513
+ });
3514
+ };
2982
3515
  const serializeAws_restJson1ReplicationConfigurationReplicatedDisk = (input, context) => {
2983
3516
  return {
2984
3517
  ...(input.deviceName !== undefined && input.deviceName !== null && { deviceName: input.deviceName }),
@@ -3018,6 +3551,16 @@ const serializeAws_restJson1ReplicationServersSecurityGroupsIDs = (input, contex
3018
3551
  return entry;
3019
3552
  });
3020
3553
  };
3554
+ const serializeAws_restJson1ReplicationTypes = (input, context) => {
3555
+ return input
3556
+ .filter((e) => e != null)
3557
+ .map((entry) => {
3558
+ if (entry === null) {
3559
+ return null;
3560
+ }
3561
+ return entry;
3562
+ });
3563
+ };
3021
3564
  const serializeAws_restJson1StartCutoverRequestSourceServerIDs = (input, context) => {
3022
3565
  return input
3023
3566
  .filter((e) => e != null)
@@ -3092,6 +3635,7 @@ const deserializeAws_restJson1DataReplicationInfo = (output, context) => {
3092
3635
  dataReplicationState: smithy_client_1.expectString(output.dataReplicationState),
3093
3636
  etaDateTime: smithy_client_1.expectString(output.etaDateTime),
3094
3637
  lagDuration: smithy_client_1.expectString(output.lagDuration),
3638
+ lastSnapshotDateTime: smithy_client_1.expectString(output.lastSnapshotDateTime),
3095
3639
  replicatedDisks: output.replicatedDisks !== undefined && output.replicatedDisks !== null
3096
3640
  ? deserializeAws_restJson1DataReplicationInfoReplicatedDisks(output.replicatedDisks, context)
3097
3641
  : undefined,
@@ -3162,6 +3706,7 @@ const deserializeAws_restJson1IdentificationHints = (output, context) => {
3162
3706
  awsInstanceID: smithy_client_1.expectString(output.awsInstanceID),
3163
3707
  fqdn: smithy_client_1.expectString(output.fqdn),
3164
3708
  hostname: smithy_client_1.expectString(output.hostname),
3709
+ vmPath: smithy_client_1.expectString(output.vmPath),
3165
3710
  vmWareUuid: smithy_client_1.expectString(output.vmWareUuid),
3166
3711
  };
3167
3712
  };
@@ -3450,6 +3995,7 @@ const deserializeAws_restJson1SourceServer = (output, context) => {
3450
3995
  lifeCycle: output.lifeCycle !== undefined && output.lifeCycle !== null
3451
3996
  ? deserializeAws_restJson1LifeCycle(output.lifeCycle, context)
3452
3997
  : undefined,
3998
+ replicationType: smithy_client_1.expectString(output.replicationType),
3453
3999
  sourceProperties: output.sourceProperties !== undefined && output.sourceProperties !== null
3454
4000
  ? deserializeAws_restJson1SourceProperties(output.sourceProperties, context)
3455
4001
  : undefined,
@@ -3457,6 +4003,7 @@ const deserializeAws_restJson1SourceServer = (output, context) => {
3457
4003
  tags: output.tags !== undefined && output.tags !== null
3458
4004
  ? deserializeAws_restJson1TagsMap(output.tags, context)
3459
4005
  : undefined,
4006
+ vcenterClientID: smithy_client_1.expectString(output.vcenterClientID),
3460
4007
  };
3461
4008
  };
3462
4009
  const deserializeAws_restJson1SourceServersList = (output, context) => {
@@ -3496,6 +4043,32 @@ const deserializeAws_restJson1ValidationExceptionFieldList = (output, context) =
3496
4043
  return deserializeAws_restJson1ValidationExceptionField(entry, context);
3497
4044
  });
3498
4045
  };
4046
+ const deserializeAws_restJson1VcenterClient = (output, context) => {
4047
+ return {
4048
+ arn: smithy_client_1.expectString(output.arn),
4049
+ datacenterName: smithy_client_1.expectString(output.datacenterName),
4050
+ hostname: smithy_client_1.expectString(output.hostname),
4051
+ lastSeenDatetime: smithy_client_1.expectString(output.lastSeenDatetime),
4052
+ sourceServerTags: output.sourceServerTags !== undefined && output.sourceServerTags !== null
4053
+ ? deserializeAws_restJson1TagsMap(output.sourceServerTags, context)
4054
+ : undefined,
4055
+ tags: output.tags !== undefined && output.tags !== null
4056
+ ? deserializeAws_restJson1TagsMap(output.tags, context)
4057
+ : undefined,
4058
+ vcenterClientID: smithy_client_1.expectString(output.vcenterClientID),
4059
+ vcenterUUID: smithy_client_1.expectString(output.vcenterUUID),
4060
+ };
4061
+ };
4062
+ const deserializeAws_restJson1VcenterClientList = (output, context) => {
4063
+ return (output || [])
4064
+ .filter((e) => e != null)
4065
+ .map((entry) => {
4066
+ if (entry === null) {
4067
+ return null;
4068
+ }
4069
+ return deserializeAws_restJson1VcenterClient(entry, context);
4070
+ });
4071
+ };
3499
4072
  const deserializeMetadata = (output) => {
3500
4073
  var _a;
3501
4074
  return ({