@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
@@ -151,6 +151,31 @@ export var serializeAws_restJson1DeleteSourceServerCommand = function (input, co
151
151
  }
152
152
  });
153
153
  }); };
154
+ export var serializeAws_restJson1DeleteVcenterClientCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
155
+ var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
156
+ return __generator(this, function (_c) {
157
+ switch (_c.label) {
158
+ case 0: return [4, context.endpoint()];
159
+ case 1:
160
+ _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
161
+ headers = {
162
+ "content-type": "application/json",
163
+ };
164
+ resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/DeleteVcenterClient";
165
+ body = JSON.stringify(__assign({}, (input.vcenterClientID !== undefined &&
166
+ input.vcenterClientID !== null && { vcenterClientID: input.vcenterClientID })));
167
+ return [2, new __HttpRequest({
168
+ protocol: protocol,
169
+ hostname: hostname,
170
+ port: port,
171
+ method: "POST",
172
+ headers: headers,
173
+ path: resolvedPath,
174
+ body: body,
175
+ })];
176
+ }
177
+ });
178
+ }); };
154
179
  export var serializeAws_restJson1DescribeJobLogItemsCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
155
180
  var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
156
181
  return __generator(this, function (_c) {
@@ -255,6 +280,29 @@ export var serializeAws_restJson1DescribeSourceServersCommand = function (input,
255
280
  }
256
281
  });
257
282
  }); };
283
+ export var serializeAws_restJson1DescribeVcenterClientsCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
284
+ var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, query, body;
285
+ return __generator(this, function (_c) {
286
+ switch (_c.label) {
287
+ case 0: return [4, context.endpoint()];
288
+ case 1:
289
+ _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
290
+ headers = {};
291
+ resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/DescribeVcenterClients";
292
+ query = __assign(__assign({}, (input.maxResults !== undefined && { maxResults: input.maxResults.toString() })), (input.nextToken !== undefined && { nextToken: input.nextToken }));
293
+ return [2, new __HttpRequest({
294
+ protocol: protocol,
295
+ hostname: hostname,
296
+ port: port,
297
+ method: "GET",
298
+ headers: headers,
299
+ path: resolvedPath,
300
+ query: query,
301
+ body: body,
302
+ })];
303
+ }
304
+ });
305
+ }); };
258
306
  export var serializeAws_restJson1DisconnectFromServiceCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
259
307
  var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
260
308
  return __generator(this, function (_c) {
@@ -488,6 +536,31 @@ export var serializeAws_restJson1StartCutoverCommand = function (input, context)
488
536
  }
489
537
  });
490
538
  }); };
539
+ export var serializeAws_restJson1StartReplicationCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
540
+ var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
541
+ return __generator(this, function (_c) {
542
+ switch (_c.label) {
543
+ case 0: return [4, context.endpoint()];
544
+ case 1:
545
+ _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
546
+ headers = {
547
+ "content-type": "application/json",
548
+ };
549
+ resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/StartReplication";
550
+ body = JSON.stringify(__assign({}, (input.sourceServerID !== undefined &&
551
+ input.sourceServerID !== null && { sourceServerID: input.sourceServerID })));
552
+ return [2, new __HttpRequest({
553
+ protocol: protocol,
554
+ hostname: hostname,
555
+ port: port,
556
+ method: "POST",
557
+ headers: headers,
558
+ path: resolvedPath,
559
+ body: body,
560
+ })];
561
+ }
562
+ });
563
+ }); };
491
564
  export var serializeAws_restJson1StartTestCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
492
565
  var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
493
566
  return __generator(this, function (_c) {
@@ -739,6 +812,32 @@ export var serializeAws_restJson1UpdateReplicationConfigurationTemplateCommand =
739
812
  }
740
813
  });
741
814
  }); };
815
+ export var serializeAws_restJson1UpdateSourceServerReplicationTypeCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
816
+ var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
817
+ return __generator(this, function (_c) {
818
+ switch (_c.label) {
819
+ case 0: return [4, context.endpoint()];
820
+ case 1:
821
+ _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
822
+ headers = {
823
+ "content-type": "application/json",
824
+ };
825
+ resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/UpdateSourceServerReplicationType";
826
+ body = JSON.stringify(__assign(__assign({}, (input.replicationType !== undefined &&
827
+ input.replicationType !== null && { replicationType: input.replicationType })), (input.sourceServerID !== undefined &&
828
+ input.sourceServerID !== null && { sourceServerID: input.sourceServerID })));
829
+ return [2, new __HttpRequest({
830
+ protocol: protocol,
831
+ hostname: hostname,
832
+ port: port,
833
+ method: "POST",
834
+ headers: headers,
835
+ path: resolvedPath,
836
+ body: body,
837
+ })];
838
+ }
839
+ });
840
+ }); };
742
841
  export var deserializeAws_restJson1ChangeServerLifeCycleStateCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
743
842
  var contents, data, _a, _b;
744
843
  return __generator(this, function (_c) {
@@ -754,9 +853,11 @@ export var deserializeAws_restJson1ChangeServerLifeCycleStateCommand = function
754
853
  isArchived: undefined,
755
854
  launchedInstance: undefined,
756
855
  lifeCycle: undefined,
856
+ replicationType: undefined,
757
857
  sourceProperties: undefined,
758
858
  sourceServerID: undefined,
759
859
  tags: undefined,
860
+ vcenterClientID: undefined,
760
861
  };
761
862
  _a = __expectNonNull;
762
863
  _b = __expectObject;
@@ -778,6 +879,9 @@ export var deserializeAws_restJson1ChangeServerLifeCycleStateCommand = function
778
879
  if (data.lifeCycle !== undefined && data.lifeCycle !== null) {
779
880
  contents.lifeCycle = deserializeAws_restJson1LifeCycle(data.lifeCycle, context);
780
881
  }
882
+ if (data.replicationType !== undefined && data.replicationType !== null) {
883
+ contents.replicationType = __expectString(data.replicationType);
884
+ }
781
885
  if (data.sourceProperties !== undefined && data.sourceProperties !== null) {
782
886
  contents.sourceProperties = deserializeAws_restJson1SourceProperties(data.sourceProperties, context);
783
887
  }
@@ -787,6 +891,9 @@ export var deserializeAws_restJson1ChangeServerLifeCycleStateCommand = function
787
891
  if (data.tags !== undefined && data.tags !== null) {
788
892
  contents.tags = deserializeAws_restJson1TagsMap(data.tags, context);
789
893
  }
894
+ if (data.vcenterClientID !== undefined && data.vcenterClientID !== null) {
895
+ contents.vcenterClientID = __expectString(data.vcenterClientID);
896
+ }
790
897
  return [2, Promise.resolve(contents)];
791
898
  }
792
899
  });
@@ -1203,6 +1310,78 @@ var deserializeAws_restJson1DeleteSourceServerCommandError = function (output, c
1203
1310
  }
1204
1311
  });
1205
1312
  }); };
1313
+ export var deserializeAws_restJson1DeleteVcenterClientCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
1314
+ var contents;
1315
+ return __generator(this, function (_a) {
1316
+ switch (_a.label) {
1317
+ case 0:
1318
+ if (output.statusCode !== 204 && output.statusCode >= 300) {
1319
+ return [2, deserializeAws_restJson1DeleteVcenterClientCommandError(output, context)];
1320
+ }
1321
+ contents = {
1322
+ $metadata: deserializeMetadata(output),
1323
+ };
1324
+ return [4, collectBody(output.body, context)];
1325
+ case 1:
1326
+ _a.sent();
1327
+ return [2, Promise.resolve(contents)];
1328
+ }
1329
+ });
1330
+ }); };
1331
+ var deserializeAws_restJson1DeleteVcenterClientCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
1332
+ var parsedOutput, _a, response, errorCode, _b, _c, _d, _e, parsedBody, message;
1333
+ var _f;
1334
+ return __generator(this, function (_g) {
1335
+ switch (_g.label) {
1336
+ case 0:
1337
+ _a = [__assign({}, output)];
1338
+ _f = {};
1339
+ return [4, parseBody(output.body, context)];
1340
+ case 1:
1341
+ parsedOutput = __assign.apply(void 0, _a.concat([(_f.body = _g.sent(), _f)]));
1342
+ errorCode = "UnknownError";
1343
+ errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1344
+ _b = errorCode;
1345
+ switch (_b) {
1346
+ case "ResourceNotFoundException": return [3, 2];
1347
+ case "com.amazonaws.mgn#ResourceNotFoundException": return [3, 2];
1348
+ case "UninitializedAccountException": return [3, 4];
1349
+ case "com.amazonaws.mgn#UninitializedAccountException": return [3, 4];
1350
+ case "ValidationException": return [3, 6];
1351
+ case "com.amazonaws.mgn#ValidationException": return [3, 6];
1352
+ }
1353
+ return [3, 8];
1354
+ case 2:
1355
+ _c = [{}];
1356
+ return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
1357
+ case 3:
1358
+ response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
1359
+ return [3, 9];
1360
+ case 4:
1361
+ _d = [{}];
1362
+ return [4, deserializeAws_restJson1UninitializedAccountExceptionResponse(parsedOutput, context)];
1363
+ case 5:
1364
+ response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
1365
+ return [3, 9];
1366
+ case 6:
1367
+ _e = [{}];
1368
+ return [4, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
1369
+ case 7:
1370
+ response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
1371
+ return [3, 9];
1372
+ case 8:
1373
+ parsedBody = parsedOutput.body;
1374
+ errorCode = parsedBody.code || parsedBody.Code || errorCode;
1375
+ response = __assign(__assign({}, parsedBody), { name: "" + errorCode, message: parsedBody.message || parsedBody.Message || errorCode, $fault: "client", $metadata: deserializeMetadata(output) });
1376
+ _g.label = 9;
1377
+ case 9:
1378
+ message = response.message || response.Message || errorCode;
1379
+ response.message = message;
1380
+ delete response.Message;
1381
+ return [2, Promise.reject(Object.assign(new Error(message), response))];
1382
+ }
1383
+ });
1384
+ }); };
1206
1385
  export var deserializeAws_restJson1DescribeJobLogItemsCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
1207
1386
  var contents, data, _a, _b;
1208
1387
  return __generator(this, function (_c) {
@@ -1507,6 +1686,88 @@ var deserializeAws_restJson1DescribeSourceServersCommandError = function (output
1507
1686
  }
1508
1687
  });
1509
1688
  }); };
1689
+ export var deserializeAws_restJson1DescribeVcenterClientsCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
1690
+ var contents, data, _a, _b;
1691
+ return __generator(this, function (_c) {
1692
+ switch (_c.label) {
1693
+ case 0:
1694
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1695
+ return [2, deserializeAws_restJson1DescribeVcenterClientsCommandError(output, context)];
1696
+ }
1697
+ contents = {
1698
+ $metadata: deserializeMetadata(output),
1699
+ items: undefined,
1700
+ nextToken: undefined,
1701
+ };
1702
+ _a = __expectNonNull;
1703
+ _b = __expectObject;
1704
+ return [4, parseBody(output.body, context)];
1705
+ case 1:
1706
+ data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
1707
+ if (data.items !== undefined && data.items !== null) {
1708
+ contents.items = deserializeAws_restJson1VcenterClientList(data.items, context);
1709
+ }
1710
+ if (data.nextToken !== undefined && data.nextToken !== null) {
1711
+ contents.nextToken = __expectString(data.nextToken);
1712
+ }
1713
+ return [2, Promise.resolve(contents)];
1714
+ }
1715
+ });
1716
+ }); };
1717
+ var deserializeAws_restJson1DescribeVcenterClientsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
1718
+ var parsedOutput, _a, response, errorCode, _b, _c, _d, _e, parsedBody, message;
1719
+ var _f;
1720
+ return __generator(this, function (_g) {
1721
+ switch (_g.label) {
1722
+ case 0:
1723
+ _a = [__assign({}, output)];
1724
+ _f = {};
1725
+ return [4, parseBody(output.body, context)];
1726
+ case 1:
1727
+ parsedOutput = __assign.apply(void 0, _a.concat([(_f.body = _g.sent(), _f)]));
1728
+ errorCode = "UnknownError";
1729
+ errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1730
+ _b = errorCode;
1731
+ switch (_b) {
1732
+ case "ResourceNotFoundException": return [3, 2];
1733
+ case "com.amazonaws.mgn#ResourceNotFoundException": return [3, 2];
1734
+ case "UninitializedAccountException": return [3, 4];
1735
+ case "com.amazonaws.mgn#UninitializedAccountException": return [3, 4];
1736
+ case "ValidationException": return [3, 6];
1737
+ case "com.amazonaws.mgn#ValidationException": return [3, 6];
1738
+ }
1739
+ return [3, 8];
1740
+ case 2:
1741
+ _c = [{}];
1742
+ return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
1743
+ case 3:
1744
+ response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
1745
+ return [3, 9];
1746
+ case 4:
1747
+ _d = [{}];
1748
+ return [4, deserializeAws_restJson1UninitializedAccountExceptionResponse(parsedOutput, context)];
1749
+ case 5:
1750
+ response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
1751
+ return [3, 9];
1752
+ case 6:
1753
+ _e = [{}];
1754
+ return [4, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
1755
+ case 7:
1756
+ response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
1757
+ return [3, 9];
1758
+ case 8:
1759
+ parsedBody = parsedOutput.body;
1760
+ errorCode = parsedBody.code || parsedBody.Code || errorCode;
1761
+ response = __assign(__assign({}, parsedBody), { name: "" + errorCode, message: parsedBody.message || parsedBody.Message || errorCode, $fault: "client", $metadata: deserializeMetadata(output) });
1762
+ _g.label = 9;
1763
+ case 9:
1764
+ message = response.message || response.Message || errorCode;
1765
+ response.message = message;
1766
+ delete response.Message;
1767
+ return [2, Promise.reject(Object.assign(new Error(message), response))];
1768
+ }
1769
+ });
1770
+ }); };
1510
1771
  export var deserializeAws_restJson1DisconnectFromServiceCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
1511
1772
  var contents, data, _a, _b;
1512
1773
  return __generator(this, function (_c) {
@@ -1522,9 +1783,11 @@ export var deserializeAws_restJson1DisconnectFromServiceCommand = function (outp
1522
1783
  isArchived: undefined,
1523
1784
  launchedInstance: undefined,
1524
1785
  lifeCycle: undefined,
1786
+ replicationType: undefined,
1525
1787
  sourceProperties: undefined,
1526
1788
  sourceServerID: undefined,
1527
1789
  tags: undefined,
1790
+ vcenterClientID: undefined,
1528
1791
  };
1529
1792
  _a = __expectNonNull;
1530
1793
  _b = __expectObject;
@@ -1546,6 +1809,9 @@ export var deserializeAws_restJson1DisconnectFromServiceCommand = function (outp
1546
1809
  if (data.lifeCycle !== undefined && data.lifeCycle !== null) {
1547
1810
  contents.lifeCycle = deserializeAws_restJson1LifeCycle(data.lifeCycle, context);
1548
1811
  }
1812
+ if (data.replicationType !== undefined && data.replicationType !== null) {
1813
+ contents.replicationType = __expectString(data.replicationType);
1814
+ }
1549
1815
  if (data.sourceProperties !== undefined && data.sourceProperties !== null) {
1550
1816
  contents.sourceProperties = deserializeAws_restJson1SourceProperties(data.sourceProperties, context);
1551
1817
  }
@@ -1555,6 +1821,9 @@ export var deserializeAws_restJson1DisconnectFromServiceCommand = function (outp
1555
1821
  if (data.tags !== undefined && data.tags !== null) {
1556
1822
  contents.tags = deserializeAws_restJson1TagsMap(data.tags, context);
1557
1823
  }
1824
+ if (data.vcenterClientID !== undefined && data.vcenterClientID !== null) {
1825
+ contents.vcenterClientID = __expectString(data.vcenterClientID);
1826
+ }
1558
1827
  return [2, Promise.resolve(contents)];
1559
1828
  }
1560
1829
  });
@@ -1628,9 +1897,11 @@ export var deserializeAws_restJson1FinalizeCutoverCommand = function (output, co
1628
1897
  isArchived: undefined,
1629
1898
  launchedInstance: undefined,
1630
1899
  lifeCycle: undefined,
1900
+ replicationType: undefined,
1631
1901
  sourceProperties: undefined,
1632
1902
  sourceServerID: undefined,
1633
1903
  tags: undefined,
1904
+ vcenterClientID: undefined,
1634
1905
  };
1635
1906
  _a = __expectNonNull;
1636
1907
  _b = __expectObject;
@@ -1652,6 +1923,9 @@ export var deserializeAws_restJson1FinalizeCutoverCommand = function (output, co
1652
1923
  if (data.lifeCycle !== undefined && data.lifeCycle !== null) {
1653
1924
  contents.lifeCycle = deserializeAws_restJson1LifeCycle(data.lifeCycle, context);
1654
1925
  }
1926
+ if (data.replicationType !== undefined && data.replicationType !== null) {
1927
+ contents.replicationType = __expectString(data.replicationType);
1928
+ }
1655
1929
  if (data.sourceProperties !== undefined && data.sourceProperties !== null) {
1656
1930
  contents.sourceProperties = deserializeAws_restJson1SourceProperties(data.sourceProperties, context);
1657
1931
  }
@@ -1661,6 +1935,9 @@ export var deserializeAws_restJson1FinalizeCutoverCommand = function (output, co
1661
1935
  if (data.tags !== undefined && data.tags !== null) {
1662
1936
  contents.tags = deserializeAws_restJson1TagsMap(data.tags, context);
1663
1937
  }
1938
+ if (data.vcenterClientID !== undefined && data.vcenterClientID !== null) {
1939
+ contents.vcenterClientID = __expectString(data.vcenterClientID);
1940
+ }
1664
1941
  return [2, Promise.resolve(contents)];
1665
1942
  }
1666
1943
  });
@@ -2124,9 +2401,11 @@ export var deserializeAws_restJson1MarkAsArchivedCommand = function (output, con
2124
2401
  isArchived: undefined,
2125
2402
  launchedInstance: undefined,
2126
2403
  lifeCycle: undefined,
2404
+ replicationType: undefined,
2127
2405
  sourceProperties: undefined,
2128
2406
  sourceServerID: undefined,
2129
2407
  tags: undefined,
2408
+ vcenterClientID: undefined,
2130
2409
  };
2131
2410
  _a = __expectNonNull;
2132
2411
  _b = __expectObject;
@@ -2148,6 +2427,9 @@ export var deserializeAws_restJson1MarkAsArchivedCommand = function (output, con
2148
2427
  if (data.lifeCycle !== undefined && data.lifeCycle !== null) {
2149
2428
  contents.lifeCycle = deserializeAws_restJson1LifeCycle(data.lifeCycle, context);
2150
2429
  }
2430
+ if (data.replicationType !== undefined && data.replicationType !== null) {
2431
+ contents.replicationType = __expectString(data.replicationType);
2432
+ }
2151
2433
  if (data.sourceProperties !== undefined && data.sourceProperties !== null) {
2152
2434
  contents.sourceProperties = deserializeAws_restJson1SourceProperties(data.sourceProperties, context);
2153
2435
  }
@@ -2157,6 +2439,9 @@ export var deserializeAws_restJson1MarkAsArchivedCommand = function (output, con
2157
2439
  if (data.tags !== undefined && data.tags !== null) {
2158
2440
  contents.tags = deserializeAws_restJson1TagsMap(data.tags, context);
2159
2441
  }
2442
+ if (data.vcenterClientID !== undefined && data.vcenterClientID !== null) {
2443
+ contents.vcenterClientID = __expectString(data.vcenterClientID);
2444
+ }
2160
2445
  return [2, Promise.resolve(contents)];
2161
2446
  }
2162
2447
  });
@@ -2230,9 +2515,11 @@ export var deserializeAws_restJson1RetryDataReplicationCommand = function (outpu
2230
2515
  isArchived: undefined,
2231
2516
  launchedInstance: undefined,
2232
2517
  lifeCycle: undefined,
2518
+ replicationType: undefined,
2233
2519
  sourceProperties: undefined,
2234
2520
  sourceServerID: undefined,
2235
2521
  tags: undefined,
2522
+ vcenterClientID: undefined,
2236
2523
  };
2237
2524
  _a = __expectNonNull;
2238
2525
  _b = __expectObject;
@@ -2254,6 +2541,9 @@ export var deserializeAws_restJson1RetryDataReplicationCommand = function (outpu
2254
2541
  if (data.lifeCycle !== undefined && data.lifeCycle !== null) {
2255
2542
  contents.lifeCycle = deserializeAws_restJson1LifeCycle(data.lifeCycle, context);
2256
2543
  }
2544
+ if (data.replicationType !== undefined && data.replicationType !== null) {
2545
+ contents.replicationType = __expectString(data.replicationType);
2546
+ }
2257
2547
  if (data.sourceProperties !== undefined && data.sourceProperties !== null) {
2258
2548
  contents.sourceProperties = deserializeAws_restJson1SourceProperties(data.sourceProperties, context);
2259
2549
  }
@@ -2263,6 +2553,9 @@ export var deserializeAws_restJson1RetryDataReplicationCommand = function (outpu
2263
2553
  if (data.tags !== undefined && data.tags !== null) {
2264
2554
  contents.tags = deserializeAws_restJson1TagsMap(data.tags, context);
2265
2555
  }
2556
+ if (data.vcenterClientID !== undefined && data.vcenterClientID !== null) {
2557
+ contents.vcenterClientID = __expectString(data.vcenterClientID);
2558
+ }
2266
2559
  return [2, Promise.resolve(contents)];
2267
2560
  }
2268
2561
  });
@@ -2399,24 +2692,154 @@ var deserializeAws_restJson1StartCutoverCommandError = function (output, context
2399
2692
  }
2400
2693
  });
2401
2694
  }); };
2402
- export var deserializeAws_restJson1StartTestCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
2695
+ export var deserializeAws_restJson1StartReplicationCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
2403
2696
  var contents, data, _a, _b;
2404
2697
  return __generator(this, function (_c) {
2405
2698
  switch (_c.label) {
2406
2699
  case 0:
2407
- if (output.statusCode !== 202 && output.statusCode >= 300) {
2408
- return [2, deserializeAws_restJson1StartTestCommandError(output, context)];
2700
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
2701
+ return [2, deserializeAws_restJson1StartReplicationCommandError(output, context)];
2409
2702
  }
2410
2703
  contents = {
2411
2704
  $metadata: deserializeMetadata(output),
2412
- job: undefined,
2705
+ arn: undefined,
2706
+ dataReplicationInfo: undefined,
2707
+ isArchived: undefined,
2708
+ launchedInstance: undefined,
2709
+ lifeCycle: undefined,
2710
+ replicationType: undefined,
2711
+ sourceProperties: undefined,
2712
+ sourceServerID: undefined,
2713
+ tags: undefined,
2714
+ vcenterClientID: undefined,
2413
2715
  };
2414
2716
  _a = __expectNonNull;
2415
2717
  _b = __expectObject;
2416
2718
  return [4, parseBody(output.body, context)];
2417
2719
  case 1:
2418
2720
  data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
2419
- if (data.job !== undefined && data.job !== null) {
2721
+ if (data.arn !== undefined && data.arn !== null) {
2722
+ contents.arn = __expectString(data.arn);
2723
+ }
2724
+ if (data.dataReplicationInfo !== undefined && data.dataReplicationInfo !== null) {
2725
+ contents.dataReplicationInfo = deserializeAws_restJson1DataReplicationInfo(data.dataReplicationInfo, context);
2726
+ }
2727
+ if (data.isArchived !== undefined && data.isArchived !== null) {
2728
+ contents.isArchived = __expectBoolean(data.isArchived);
2729
+ }
2730
+ if (data.launchedInstance !== undefined && data.launchedInstance !== null) {
2731
+ contents.launchedInstance = deserializeAws_restJson1LaunchedInstance(data.launchedInstance, context);
2732
+ }
2733
+ if (data.lifeCycle !== undefined && data.lifeCycle !== null) {
2734
+ contents.lifeCycle = deserializeAws_restJson1LifeCycle(data.lifeCycle, context);
2735
+ }
2736
+ if (data.replicationType !== undefined && data.replicationType !== null) {
2737
+ contents.replicationType = __expectString(data.replicationType);
2738
+ }
2739
+ if (data.sourceProperties !== undefined && data.sourceProperties !== null) {
2740
+ contents.sourceProperties = deserializeAws_restJson1SourceProperties(data.sourceProperties, context);
2741
+ }
2742
+ if (data.sourceServerID !== undefined && data.sourceServerID !== null) {
2743
+ contents.sourceServerID = __expectString(data.sourceServerID);
2744
+ }
2745
+ if (data.tags !== undefined && data.tags !== null) {
2746
+ contents.tags = deserializeAws_restJson1TagsMap(data.tags, context);
2747
+ }
2748
+ if (data.vcenterClientID !== undefined && data.vcenterClientID !== null) {
2749
+ contents.vcenterClientID = __expectString(data.vcenterClientID);
2750
+ }
2751
+ return [2, Promise.resolve(contents)];
2752
+ }
2753
+ });
2754
+ }); };
2755
+ var deserializeAws_restJson1StartReplicationCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
2756
+ var parsedOutput, _a, response, errorCode, _b, _c, _d, _e, _f, _g, parsedBody, message;
2757
+ var _h;
2758
+ return __generator(this, function (_j) {
2759
+ switch (_j.label) {
2760
+ case 0:
2761
+ _a = [__assign({}, output)];
2762
+ _h = {};
2763
+ return [4, parseBody(output.body, context)];
2764
+ case 1:
2765
+ parsedOutput = __assign.apply(void 0, _a.concat([(_h.body = _j.sent(), _h)]));
2766
+ errorCode = "UnknownError";
2767
+ errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2768
+ _b = errorCode;
2769
+ switch (_b) {
2770
+ case "ConflictException": return [3, 2];
2771
+ case "com.amazonaws.mgn#ConflictException": return [3, 2];
2772
+ case "ResourceNotFoundException": return [3, 4];
2773
+ case "com.amazonaws.mgn#ResourceNotFoundException": return [3, 4];
2774
+ case "ServiceQuotaExceededException": return [3, 6];
2775
+ case "com.amazonaws.mgn#ServiceQuotaExceededException": return [3, 6];
2776
+ case "UninitializedAccountException": return [3, 8];
2777
+ case "com.amazonaws.mgn#UninitializedAccountException": return [3, 8];
2778
+ case "ValidationException": return [3, 10];
2779
+ case "com.amazonaws.mgn#ValidationException": return [3, 10];
2780
+ }
2781
+ return [3, 12];
2782
+ case 2:
2783
+ _c = [{}];
2784
+ return [4, deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context)];
2785
+ case 3:
2786
+ response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
2787
+ return [3, 13];
2788
+ case 4:
2789
+ _d = [{}];
2790
+ return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
2791
+ case 5:
2792
+ response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
2793
+ return [3, 13];
2794
+ case 6:
2795
+ _e = [{}];
2796
+ return [4, deserializeAws_restJson1ServiceQuotaExceededExceptionResponse(parsedOutput, context)];
2797
+ case 7:
2798
+ response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
2799
+ return [3, 13];
2800
+ case 8:
2801
+ _f = [{}];
2802
+ return [4, deserializeAws_restJson1UninitializedAccountExceptionResponse(parsedOutput, context)];
2803
+ case 9:
2804
+ response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
2805
+ return [3, 13];
2806
+ case 10:
2807
+ _g = [{}];
2808
+ return [4, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
2809
+ case 11:
2810
+ response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
2811
+ return [3, 13];
2812
+ case 12:
2813
+ parsedBody = parsedOutput.body;
2814
+ errorCode = parsedBody.code || parsedBody.Code || errorCode;
2815
+ response = __assign(__assign({}, parsedBody), { name: "" + errorCode, message: parsedBody.message || parsedBody.Message || errorCode, $fault: "client", $metadata: deserializeMetadata(output) });
2816
+ _j.label = 13;
2817
+ case 13:
2818
+ message = response.message || response.Message || errorCode;
2819
+ response.message = message;
2820
+ delete response.Message;
2821
+ return [2, Promise.reject(Object.assign(new Error(message), response))];
2822
+ }
2823
+ });
2824
+ }); };
2825
+ export var deserializeAws_restJson1StartTestCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
2826
+ var contents, data, _a, _b;
2827
+ return __generator(this, function (_c) {
2828
+ switch (_c.label) {
2829
+ case 0:
2830
+ if (output.statusCode !== 202 && output.statusCode >= 300) {
2831
+ return [2, deserializeAws_restJson1StartTestCommandError(output, context)];
2832
+ }
2833
+ contents = {
2834
+ $metadata: deserializeMetadata(output),
2835
+ job: undefined,
2836
+ };
2837
+ _a = __expectNonNull;
2838
+ _b = __expectObject;
2839
+ return [4, parseBody(output.body, context)];
2840
+ case 1:
2841
+ data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
2842
+ if (data.job !== undefined && data.job !== null) {
2420
2843
  contents.job = deserializeAws_restJson1Job(data.job, context);
2421
2844
  }
2422
2845
  return [2, Promise.resolve(contents)];
@@ -3137,6 +3560,128 @@ var deserializeAws_restJson1UpdateReplicationConfigurationTemplateCommandError =
3137
3560
  }
3138
3561
  });
3139
3562
  }); };
3563
+ export var deserializeAws_restJson1UpdateSourceServerReplicationTypeCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
3564
+ var contents, data, _a, _b;
3565
+ return __generator(this, function (_c) {
3566
+ switch (_c.label) {
3567
+ case 0:
3568
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
3569
+ return [2, deserializeAws_restJson1UpdateSourceServerReplicationTypeCommandError(output, context)];
3570
+ }
3571
+ contents = {
3572
+ $metadata: deserializeMetadata(output),
3573
+ arn: undefined,
3574
+ dataReplicationInfo: undefined,
3575
+ isArchived: undefined,
3576
+ launchedInstance: undefined,
3577
+ lifeCycle: undefined,
3578
+ replicationType: undefined,
3579
+ sourceProperties: undefined,
3580
+ sourceServerID: undefined,
3581
+ tags: undefined,
3582
+ vcenterClientID: undefined,
3583
+ };
3584
+ _a = __expectNonNull;
3585
+ _b = __expectObject;
3586
+ return [4, parseBody(output.body, context)];
3587
+ case 1:
3588
+ data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
3589
+ if (data.arn !== undefined && data.arn !== null) {
3590
+ contents.arn = __expectString(data.arn);
3591
+ }
3592
+ if (data.dataReplicationInfo !== undefined && data.dataReplicationInfo !== null) {
3593
+ contents.dataReplicationInfo = deserializeAws_restJson1DataReplicationInfo(data.dataReplicationInfo, context);
3594
+ }
3595
+ if (data.isArchived !== undefined && data.isArchived !== null) {
3596
+ contents.isArchived = __expectBoolean(data.isArchived);
3597
+ }
3598
+ if (data.launchedInstance !== undefined && data.launchedInstance !== null) {
3599
+ contents.launchedInstance = deserializeAws_restJson1LaunchedInstance(data.launchedInstance, context);
3600
+ }
3601
+ if (data.lifeCycle !== undefined && data.lifeCycle !== null) {
3602
+ contents.lifeCycle = deserializeAws_restJson1LifeCycle(data.lifeCycle, context);
3603
+ }
3604
+ if (data.replicationType !== undefined && data.replicationType !== null) {
3605
+ contents.replicationType = __expectString(data.replicationType);
3606
+ }
3607
+ if (data.sourceProperties !== undefined && data.sourceProperties !== null) {
3608
+ contents.sourceProperties = deserializeAws_restJson1SourceProperties(data.sourceProperties, context);
3609
+ }
3610
+ if (data.sourceServerID !== undefined && data.sourceServerID !== null) {
3611
+ contents.sourceServerID = __expectString(data.sourceServerID);
3612
+ }
3613
+ if (data.tags !== undefined && data.tags !== null) {
3614
+ contents.tags = deserializeAws_restJson1TagsMap(data.tags, context);
3615
+ }
3616
+ if (data.vcenterClientID !== undefined && data.vcenterClientID !== null) {
3617
+ contents.vcenterClientID = __expectString(data.vcenterClientID);
3618
+ }
3619
+ return [2, Promise.resolve(contents)];
3620
+ }
3621
+ });
3622
+ }); };
3623
+ var deserializeAws_restJson1UpdateSourceServerReplicationTypeCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
3624
+ var parsedOutput, _a, response, errorCode, _b, _c, _d, _e, _f, parsedBody, message;
3625
+ var _g;
3626
+ return __generator(this, function (_h) {
3627
+ switch (_h.label) {
3628
+ case 0:
3629
+ _a = [__assign({}, output)];
3630
+ _g = {};
3631
+ return [4, parseBody(output.body, context)];
3632
+ case 1:
3633
+ parsedOutput = __assign.apply(void 0, _a.concat([(_g.body = _h.sent(), _g)]));
3634
+ errorCode = "UnknownError";
3635
+ errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
3636
+ _b = errorCode;
3637
+ switch (_b) {
3638
+ case "ConflictException": return [3, 2];
3639
+ case "com.amazonaws.mgn#ConflictException": return [3, 2];
3640
+ case "ResourceNotFoundException": return [3, 4];
3641
+ case "com.amazonaws.mgn#ResourceNotFoundException": return [3, 4];
3642
+ case "UninitializedAccountException": return [3, 6];
3643
+ case "com.amazonaws.mgn#UninitializedAccountException": return [3, 6];
3644
+ case "ValidationException": return [3, 8];
3645
+ case "com.amazonaws.mgn#ValidationException": return [3, 8];
3646
+ }
3647
+ return [3, 10];
3648
+ case 2:
3649
+ _c = [{}];
3650
+ return [4, deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context)];
3651
+ case 3:
3652
+ response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
3653
+ return [3, 11];
3654
+ case 4:
3655
+ _d = [{}];
3656
+ return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
3657
+ case 5:
3658
+ response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
3659
+ return [3, 11];
3660
+ case 6:
3661
+ _e = [{}];
3662
+ return [4, deserializeAws_restJson1UninitializedAccountExceptionResponse(parsedOutput, context)];
3663
+ case 7:
3664
+ response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
3665
+ return [3, 11];
3666
+ case 8:
3667
+ _f = [{}];
3668
+ return [4, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
3669
+ case 9:
3670
+ response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
3671
+ return [3, 11];
3672
+ case 10:
3673
+ parsedBody = parsedOutput.body;
3674
+ errorCode = parsedBody.code || parsedBody.Code || errorCode;
3675
+ response = __assign(__assign({}, parsedBody), { name: "" + errorCode, message: parsedBody.message || parsedBody.Message || errorCode, $fault: "client", $metadata: deserializeMetadata(output) });
3676
+ _h.label = 11;
3677
+ case 11:
3678
+ message = response.message || response.Message || errorCode;
3679
+ response.message = message;
3680
+ delete response.Message;
3681
+ return [2, Promise.reject(Object.assign(new Error(message), response))];
3682
+ }
3683
+ });
3684
+ }); };
3140
3685
  var deserializeAws_restJson1AccessDeniedExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
3141
3686
  var contents, data;
3142
3687
  return __generator(this, function (_a) {
@@ -3233,6 +3778,42 @@ var deserializeAws_restJson1ResourceNotFoundExceptionResponse = function (parsed
3233
3778
  return [2, contents];
3234
3779
  });
3235
3780
  }); };
3781
+ var deserializeAws_restJson1ServiceQuotaExceededExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
3782
+ var contents, data;
3783
+ return __generator(this, function (_a) {
3784
+ contents = {
3785
+ name: "ServiceQuotaExceededException",
3786
+ $fault: "client",
3787
+ $metadata: deserializeMetadata(parsedOutput),
3788
+ code: undefined,
3789
+ message: undefined,
3790
+ quotaCode: undefined,
3791
+ resourceId: undefined,
3792
+ resourceType: undefined,
3793
+ serviceCode: undefined,
3794
+ };
3795
+ data = parsedOutput.body;
3796
+ if (data.code !== undefined && data.code !== null) {
3797
+ contents.code = __expectString(data.code);
3798
+ }
3799
+ if (data.message !== undefined && data.message !== null) {
3800
+ contents.message = __expectString(data.message);
3801
+ }
3802
+ if (data.quotaCode !== undefined && data.quotaCode !== null) {
3803
+ contents.quotaCode = __expectString(data.quotaCode);
3804
+ }
3805
+ if (data.resourceId !== undefined && data.resourceId !== null) {
3806
+ contents.resourceId = __expectString(data.resourceId);
3807
+ }
3808
+ if (data.resourceType !== undefined && data.resourceType !== null) {
3809
+ contents.resourceType = __expectString(data.resourceType);
3810
+ }
3811
+ if (data.serviceCode !== undefined && data.serviceCode !== null) {
3812
+ contents.serviceCode = __expectString(data.serviceCode);
3813
+ }
3814
+ return [2, contents];
3815
+ });
3816
+ }); };
3236
3817
  var deserializeAws_restJson1ThrottlingExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
3237
3818
  var contents, data;
3238
3819
  return __generator(this, function (_a) {
@@ -3329,7 +3910,13 @@ var serializeAws_restJson1DescribeJobsRequestFiltersJobIDs = function (input, co
3329
3910
  });
3330
3911
  };
3331
3912
  var serializeAws_restJson1DescribeSourceServersRequestFilters = function (input, context) {
3332
- return __assign(__assign({}, (input.isArchived !== undefined && input.isArchived !== null && { isArchived: input.isArchived })), (input.sourceServerIDs !== undefined &&
3913
+ return __assign(__assign(__assign(__assign({}, (input.isArchived !== undefined && input.isArchived !== null && { isArchived: input.isArchived })), (input.lifeCycleStates !== undefined &&
3914
+ input.lifeCycleStates !== null && {
3915
+ lifeCycleStates: serializeAws_restJson1LifeCycleStates(input.lifeCycleStates, context),
3916
+ })), (input.replicationTypes !== undefined &&
3917
+ input.replicationTypes !== null && {
3918
+ replicationTypes: serializeAws_restJson1ReplicationTypes(input.replicationTypes, context),
3919
+ })), (input.sourceServerIDs !== undefined &&
3333
3920
  input.sourceServerIDs !== null && {
3334
3921
  sourceServerIDs: serializeAws_restJson1DescribeSourceServersRequestFiltersIDs(input.sourceServerIDs, context),
3335
3922
  }));
@@ -3347,6 +3934,16 @@ var serializeAws_restJson1DescribeSourceServersRequestFiltersIDs = function (inp
3347
3934
  var serializeAws_restJson1Licensing = function (input, context) {
3348
3935
  return __assign({}, (input.osByol !== undefined && input.osByol !== null && { osByol: input.osByol }));
3349
3936
  };
3937
+ var serializeAws_restJson1LifeCycleStates = function (input, context) {
3938
+ return input
3939
+ .filter(function (e) { return e != null; })
3940
+ .map(function (entry) {
3941
+ if (entry === null) {
3942
+ return null;
3943
+ }
3944
+ return entry;
3945
+ });
3946
+ };
3350
3947
  var serializeAws_restJson1ReplicationConfigurationReplicatedDisk = function (input, context) {
3351
3948
  return __assign(__assign(__assign(__assign({}, (input.deviceName !== undefined && input.deviceName !== null && { deviceName: input.deviceName })), (input.iops !== undefined && input.iops !== null && { iops: input.iops })), (input.isBootDisk !== undefined && input.isBootDisk !== null && { isBootDisk: input.isBootDisk })), (input.stagingDiskType !== undefined &&
3352
3949
  input.stagingDiskType !== null && { stagingDiskType: input.stagingDiskType }));
@@ -3381,6 +3978,16 @@ var serializeAws_restJson1ReplicationServersSecurityGroupsIDs = function (input,
3381
3978
  return entry;
3382
3979
  });
3383
3980
  };
3981
+ var serializeAws_restJson1ReplicationTypes = function (input, context) {
3982
+ return input
3983
+ .filter(function (e) { return e != null; })
3984
+ .map(function (entry) {
3985
+ if (entry === null) {
3986
+ return null;
3987
+ }
3988
+ return entry;
3989
+ });
3990
+ };
3384
3991
  var serializeAws_restJson1StartCutoverRequestSourceServerIDs = function (input, context) {
3385
3992
  return input
3386
3993
  .filter(function (e) { return e != null; })
@@ -3454,6 +4061,7 @@ var deserializeAws_restJson1DataReplicationInfo = function (output, context) {
3454
4061
  dataReplicationState: __expectString(output.dataReplicationState),
3455
4062
  etaDateTime: __expectString(output.etaDateTime),
3456
4063
  lagDuration: __expectString(output.lagDuration),
4064
+ lastSnapshotDateTime: __expectString(output.lastSnapshotDateTime),
3457
4065
  replicatedDisks: output.replicatedDisks !== undefined && output.replicatedDisks !== null
3458
4066
  ? deserializeAws_restJson1DataReplicationInfoReplicatedDisks(output.replicatedDisks, context)
3459
4067
  : undefined,
@@ -3524,6 +4132,7 @@ var deserializeAws_restJson1IdentificationHints = function (output, context) {
3524
4132
  awsInstanceID: __expectString(output.awsInstanceID),
3525
4133
  fqdn: __expectString(output.fqdn),
3526
4134
  hostname: __expectString(output.hostname),
4135
+ vmPath: __expectString(output.vmPath),
3527
4136
  vmWareUuid: __expectString(output.vmWareUuid),
3528
4137
  };
3529
4138
  };
@@ -3812,6 +4421,7 @@ var deserializeAws_restJson1SourceServer = function (output, context) {
3812
4421
  lifeCycle: output.lifeCycle !== undefined && output.lifeCycle !== null
3813
4422
  ? deserializeAws_restJson1LifeCycle(output.lifeCycle, context)
3814
4423
  : undefined,
4424
+ replicationType: __expectString(output.replicationType),
3815
4425
  sourceProperties: output.sourceProperties !== undefined && output.sourceProperties !== null
3816
4426
  ? deserializeAws_restJson1SourceProperties(output.sourceProperties, context)
3817
4427
  : undefined,
@@ -3819,6 +4429,7 @@ var deserializeAws_restJson1SourceServer = function (output, context) {
3819
4429
  tags: output.tags !== undefined && output.tags !== null
3820
4430
  ? deserializeAws_restJson1TagsMap(output.tags, context)
3821
4431
  : undefined,
4432
+ vcenterClientID: __expectString(output.vcenterClientID),
3822
4433
  };
3823
4434
  };
3824
4435
  var deserializeAws_restJson1SourceServersList = function (output, context) {
@@ -3857,6 +4468,32 @@ var deserializeAws_restJson1ValidationExceptionFieldList = function (output, con
3857
4468
  return deserializeAws_restJson1ValidationExceptionField(entry, context);
3858
4469
  });
3859
4470
  };
4471
+ var deserializeAws_restJson1VcenterClient = function (output, context) {
4472
+ return {
4473
+ arn: __expectString(output.arn),
4474
+ datacenterName: __expectString(output.datacenterName),
4475
+ hostname: __expectString(output.hostname),
4476
+ lastSeenDatetime: __expectString(output.lastSeenDatetime),
4477
+ sourceServerTags: output.sourceServerTags !== undefined && output.sourceServerTags !== null
4478
+ ? deserializeAws_restJson1TagsMap(output.sourceServerTags, context)
4479
+ : undefined,
4480
+ tags: output.tags !== undefined && output.tags !== null
4481
+ ? deserializeAws_restJson1TagsMap(output.tags, context)
4482
+ : undefined,
4483
+ vcenterClientID: __expectString(output.vcenterClientID),
4484
+ vcenterUUID: __expectString(output.vcenterUUID),
4485
+ };
4486
+ };
4487
+ var deserializeAws_restJson1VcenterClientList = function (output, context) {
4488
+ return (output || [])
4489
+ .filter(function (e) { return e != null; })
4490
+ .map(function (entry) {
4491
+ if (entry === null) {
4492
+ return null;
4493
+ }
4494
+ return deserializeAws_restJson1VcenterClient(entry, context);
4495
+ });
4496
+ };
3860
4497
  var deserializeMetadata = function (output) {
3861
4498
  var _a;
3862
4499
  return ({