@aws-sdk/client-mgn 3.28.0 → 3.32.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.
@@ -1,6 +1,6 @@
1
1
  import { __assign, __awaiter, __generator, __read } from "tslib";
2
2
  import { HttpRequest as __HttpRequest } from "@aws-sdk/protocol-http";
3
- import { expectBoolean as __expectBoolean, expectInt as __expectInt, expectString as __expectString, extendedEncodeURIComponent as __extendedEncodeURIComponent, strictParseInt as __strictParseInt, } from "@aws-sdk/smithy-client";
3
+ import { expectBoolean as __expectBoolean, expectLong as __expectLong, expectNonNull as __expectNonNull, expectObject as __expectObject, expectString as __expectString, extendedEncodeURIComponent as __extendedEncodeURIComponent, strictParseLong as __strictParseLong, } from "@aws-sdk/smithy-client";
4
4
  export var serializeAws_restJson1ChangeServerLifeCycleStateCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
5
5
  var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
6
6
  return __generator(this, function (_c) {
@@ -740,9 +740,9 @@ export var serializeAws_restJson1UpdateReplicationConfigurationTemplateCommand =
740
740
  });
741
741
  }); };
742
742
  export var deserializeAws_restJson1ChangeServerLifeCycleStateCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
743
- var contents, data;
744
- return __generator(this, function (_a) {
745
- switch (_a.label) {
743
+ var contents, data, _a, _b;
744
+ return __generator(this, function (_c) {
745
+ switch (_c.label) {
746
746
  case 0:
747
747
  if (output.statusCode !== 200 && output.statusCode >= 300) {
748
748
  return [2 /*return*/, deserializeAws_restJson1ChangeServerLifeCycleStateCommandError(output, context)];
@@ -758,9 +758,11 @@ export var deserializeAws_restJson1ChangeServerLifeCycleStateCommand = function
758
758
  sourceServerID: undefined,
759
759
  tags: undefined,
760
760
  };
761
+ _a = __expectNonNull;
762
+ _b = __expectObject;
761
763
  return [4 /*yield*/, parseBody(output.body, context)];
762
764
  case 1:
763
- data = _a.sent();
765
+ data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
764
766
  if (data.arn !== undefined && data.arn !== null) {
765
767
  contents.arn = __expectString(data.arn);
766
768
  }
@@ -852,9 +854,9 @@ var deserializeAws_restJson1ChangeServerLifeCycleStateCommandError = function (o
852
854
  });
853
855
  }); };
854
856
  export var deserializeAws_restJson1CreateReplicationConfigurationTemplateCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
855
- var contents, data;
856
- return __generator(this, function (_a) {
857
- switch (_a.label) {
857
+ var contents, data, _a, _b;
858
+ return __generator(this, function (_c) {
859
+ switch (_c.label) {
858
860
  case 0:
859
861
  if (output.statusCode !== 201 && output.statusCode >= 300) {
860
862
  return [2 /*return*/, deserializeAws_restJson1CreateReplicationConfigurationTemplateCommandError(output, context)];
@@ -877,9 +879,11 @@ export var deserializeAws_restJson1CreateReplicationConfigurationTemplateCommand
877
879
  tags: undefined,
878
880
  useDedicatedReplicationServer: undefined,
879
881
  };
882
+ _a = __expectNonNull;
883
+ _b = __expectObject;
880
884
  return [4 /*yield*/, parseBody(output.body, context)];
881
885
  case 1:
882
- data = _a.sent();
886
+ data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
883
887
  if (data.arn !== undefined && data.arn !== null) {
884
888
  contents.arn = __expectString(data.arn);
885
889
  }
@@ -887,7 +891,7 @@ export var deserializeAws_restJson1CreateReplicationConfigurationTemplateCommand
887
891
  contents.associateDefaultSecurityGroup = __expectBoolean(data.associateDefaultSecurityGroup);
888
892
  }
889
893
  if (data.bandwidthThrottling !== undefined && data.bandwidthThrottling !== null) {
890
- contents.bandwidthThrottling = __expectInt(data.bandwidthThrottling);
894
+ contents.bandwidthThrottling = __expectLong(data.bandwidthThrottling);
891
895
  }
892
896
  if (data.createPublicIP !== undefined && data.createPublicIP !== null) {
893
897
  contents.createPublicIP = __expectBoolean(data.createPublicIP);
@@ -1200,9 +1204,9 @@ var deserializeAws_restJson1DeleteSourceServerCommandError = function (output, c
1200
1204
  });
1201
1205
  }); };
1202
1206
  export var deserializeAws_restJson1DescribeJobLogItemsCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
1203
- var contents, data;
1204
- return __generator(this, function (_a) {
1205
- switch (_a.label) {
1207
+ var contents, data, _a, _b;
1208
+ return __generator(this, function (_c) {
1209
+ switch (_c.label) {
1206
1210
  case 0:
1207
1211
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1208
1212
  return [2 /*return*/, deserializeAws_restJson1DescribeJobLogItemsCommandError(output, context)];
@@ -1212,9 +1216,11 @@ export var deserializeAws_restJson1DescribeJobLogItemsCommand = function (output
1212
1216
  items: undefined,
1213
1217
  nextToken: undefined,
1214
1218
  };
1219
+ _a = __expectNonNull;
1220
+ _b = __expectObject;
1215
1221
  return [4 /*yield*/, parseBody(output.body, context)];
1216
1222
  case 1:
1217
- data = _a.sent();
1223
+ data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
1218
1224
  if (data.items !== undefined && data.items !== null) {
1219
1225
  contents.items = deserializeAws_restJson1JobLogs(data.items, context);
1220
1226
  }
@@ -1272,9 +1278,9 @@ var deserializeAws_restJson1DescribeJobLogItemsCommandError = function (output,
1272
1278
  });
1273
1279
  }); };
1274
1280
  export var deserializeAws_restJson1DescribeJobsCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
1275
- var contents, data;
1276
- return __generator(this, function (_a) {
1277
- switch (_a.label) {
1281
+ var contents, data, _a, _b;
1282
+ return __generator(this, function (_c) {
1283
+ switch (_c.label) {
1278
1284
  case 0:
1279
1285
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1280
1286
  return [2 /*return*/, deserializeAws_restJson1DescribeJobsCommandError(output, context)];
@@ -1284,9 +1290,11 @@ export var deserializeAws_restJson1DescribeJobsCommand = function (output, conte
1284
1290
  items: undefined,
1285
1291
  nextToken: undefined,
1286
1292
  };
1293
+ _a = __expectNonNull;
1294
+ _b = __expectObject;
1287
1295
  return [4 /*yield*/, parseBody(output.body, context)];
1288
1296
  case 1:
1289
- data = _a.sent();
1297
+ data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
1290
1298
  if (data.items !== undefined && data.items !== null) {
1291
1299
  contents.items = deserializeAws_restJson1JobsList(data.items, context);
1292
1300
  }
@@ -1344,9 +1352,9 @@ var deserializeAws_restJson1DescribeJobsCommandError = function (output, context
1344
1352
  });
1345
1353
  }); };
1346
1354
  export var deserializeAws_restJson1DescribeReplicationConfigurationTemplatesCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
1347
- var contents, data;
1348
- return __generator(this, function (_a) {
1349
- switch (_a.label) {
1355
+ var contents, data, _a, _b;
1356
+ return __generator(this, function (_c) {
1357
+ switch (_c.label) {
1350
1358
  case 0:
1351
1359
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1352
1360
  return [2 /*return*/, deserializeAws_restJson1DescribeReplicationConfigurationTemplatesCommandError(output, context)];
@@ -1356,9 +1364,11 @@ export var deserializeAws_restJson1DescribeReplicationConfigurationTemplatesComm
1356
1364
  items: undefined,
1357
1365
  nextToken: undefined,
1358
1366
  };
1367
+ _a = __expectNonNull;
1368
+ _b = __expectObject;
1359
1369
  return [4 /*yield*/, parseBody(output.body, context)];
1360
1370
  case 1:
1361
- data = _a.sent();
1371
+ data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
1362
1372
  if (data.items !== undefined && data.items !== null) {
1363
1373
  contents.items = deserializeAws_restJson1ReplicationConfigurationTemplates(data.items, context);
1364
1374
  }
@@ -1424,9 +1434,9 @@ var deserializeAws_restJson1DescribeReplicationConfigurationTemplatesCommandErro
1424
1434
  });
1425
1435
  }); };
1426
1436
  export var deserializeAws_restJson1DescribeSourceServersCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
1427
- var contents, data;
1428
- return __generator(this, function (_a) {
1429
- switch (_a.label) {
1437
+ var contents, data, _a, _b;
1438
+ return __generator(this, function (_c) {
1439
+ switch (_c.label) {
1430
1440
  case 0:
1431
1441
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1432
1442
  return [2 /*return*/, deserializeAws_restJson1DescribeSourceServersCommandError(output, context)];
@@ -1436,9 +1446,11 @@ export var deserializeAws_restJson1DescribeSourceServersCommand = function (outp
1436
1446
  items: undefined,
1437
1447
  nextToken: undefined,
1438
1448
  };
1449
+ _a = __expectNonNull;
1450
+ _b = __expectObject;
1439
1451
  return [4 /*yield*/, parseBody(output.body, context)];
1440
1452
  case 1:
1441
- data = _a.sent();
1453
+ data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
1442
1454
  if (data.items !== undefined && data.items !== null) {
1443
1455
  contents.items = deserializeAws_restJson1SourceServersList(data.items, context);
1444
1456
  }
@@ -1496,9 +1508,9 @@ var deserializeAws_restJson1DescribeSourceServersCommandError = function (output
1496
1508
  });
1497
1509
  }); };
1498
1510
  export var deserializeAws_restJson1DisconnectFromServiceCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
1499
- var contents, data;
1500
- return __generator(this, function (_a) {
1501
- switch (_a.label) {
1511
+ var contents, data, _a, _b;
1512
+ return __generator(this, function (_c) {
1513
+ switch (_c.label) {
1502
1514
  case 0:
1503
1515
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1504
1516
  return [2 /*return*/, deserializeAws_restJson1DisconnectFromServiceCommandError(output, context)];
@@ -1514,9 +1526,11 @@ export var deserializeAws_restJson1DisconnectFromServiceCommand = function (outp
1514
1526
  sourceServerID: undefined,
1515
1527
  tags: undefined,
1516
1528
  };
1529
+ _a = __expectNonNull;
1530
+ _b = __expectObject;
1517
1531
  return [4 /*yield*/, parseBody(output.body, context)];
1518
1532
  case 1:
1519
- data = _a.sent();
1533
+ data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
1520
1534
  if (data.arn !== undefined && data.arn !== null) {
1521
1535
  contents.arn = __expectString(data.arn);
1522
1536
  }
@@ -1600,9 +1614,9 @@ var deserializeAws_restJson1DisconnectFromServiceCommandError = function (output
1600
1614
  });
1601
1615
  }); };
1602
1616
  export var deserializeAws_restJson1FinalizeCutoverCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
1603
- var contents, data;
1604
- return __generator(this, function (_a) {
1605
- switch (_a.label) {
1617
+ var contents, data, _a, _b;
1618
+ return __generator(this, function (_c) {
1619
+ switch (_c.label) {
1606
1620
  case 0:
1607
1621
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1608
1622
  return [2 /*return*/, deserializeAws_restJson1FinalizeCutoverCommandError(output, context)];
@@ -1618,9 +1632,11 @@ export var deserializeAws_restJson1FinalizeCutoverCommand = function (output, co
1618
1632
  sourceServerID: undefined,
1619
1633
  tags: undefined,
1620
1634
  };
1635
+ _a = __expectNonNull;
1636
+ _b = __expectObject;
1621
1637
  return [4 /*yield*/, parseBody(output.body, context)];
1622
1638
  case 1:
1623
- data = _a.sent();
1639
+ data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
1624
1640
  if (data.arn !== undefined && data.arn !== null) {
1625
1641
  contents.arn = __expectString(data.arn);
1626
1642
  }
@@ -1712,9 +1728,9 @@ var deserializeAws_restJson1FinalizeCutoverCommandError = function (output, cont
1712
1728
  });
1713
1729
  }); };
1714
1730
  export var deserializeAws_restJson1GetLaunchConfigurationCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
1715
- var contents, data;
1716
- return __generator(this, function (_a) {
1717
- switch (_a.label) {
1731
+ var contents, data, _a, _b;
1732
+ return __generator(this, function (_c) {
1733
+ switch (_c.label) {
1718
1734
  case 0:
1719
1735
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1720
1736
  return [2 /*return*/, deserializeAws_restJson1GetLaunchConfigurationCommandError(output, context)];
@@ -1730,9 +1746,11 @@ export var deserializeAws_restJson1GetLaunchConfigurationCommand = function (out
1730
1746
  sourceServerID: undefined,
1731
1747
  targetInstanceTypeRightSizingMethod: undefined,
1732
1748
  };
1749
+ _a = __expectNonNull;
1750
+ _b = __expectObject;
1733
1751
  return [4 /*yield*/, parseBody(output.body, context)];
1734
1752
  case 1:
1735
- data = _a.sent();
1753
+ data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
1736
1754
  if (data.copyPrivateIp !== undefined && data.copyPrivateIp !== null) {
1737
1755
  contents.copyPrivateIp = __expectBoolean(data.copyPrivateIp);
1738
1756
  }
@@ -1808,9 +1826,9 @@ var deserializeAws_restJson1GetLaunchConfigurationCommandError = function (outpu
1808
1826
  });
1809
1827
  }); };
1810
1828
  export var deserializeAws_restJson1GetReplicationConfigurationCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
1811
- var contents, data;
1812
- return __generator(this, function (_a) {
1813
- switch (_a.label) {
1829
+ var contents, data, _a, _b;
1830
+ return __generator(this, function (_c) {
1831
+ switch (_c.label) {
1814
1832
  case 0:
1815
1833
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1816
1834
  return [2 /*return*/, deserializeAws_restJson1GetReplicationConfigurationCommandError(output, context)];
@@ -1833,14 +1851,16 @@ export var deserializeAws_restJson1GetReplicationConfigurationCommand = function
1833
1851
  stagingAreaTags: undefined,
1834
1852
  useDedicatedReplicationServer: undefined,
1835
1853
  };
1854
+ _a = __expectNonNull;
1855
+ _b = __expectObject;
1836
1856
  return [4 /*yield*/, parseBody(output.body, context)];
1837
1857
  case 1:
1838
- data = _a.sent();
1858
+ data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
1839
1859
  if (data.associateDefaultSecurityGroup !== undefined && data.associateDefaultSecurityGroup !== null) {
1840
1860
  contents.associateDefaultSecurityGroup = __expectBoolean(data.associateDefaultSecurityGroup);
1841
1861
  }
1842
1862
  if (data.bandwidthThrottling !== undefined && data.bandwidthThrottling !== null) {
1843
- contents.bandwidthThrottling = __expectInt(data.bandwidthThrottling);
1863
+ contents.bandwidthThrottling = __expectLong(data.bandwidthThrottling);
1844
1864
  }
1845
1865
  if (data.createPublicIP !== undefined && data.createPublicIP !== null) {
1846
1866
  contents.createPublicIP = __expectBoolean(data.createPublicIP);
@@ -1996,9 +2016,9 @@ var deserializeAws_restJson1InitializeServiceCommandError = function (output, co
1996
2016
  });
1997
2017
  }); };
1998
2018
  export var deserializeAws_restJson1ListTagsForResourceCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
1999
- var contents, data;
2000
- return __generator(this, function (_a) {
2001
- switch (_a.label) {
2019
+ var contents, data, _a, _b;
2020
+ return __generator(this, function (_c) {
2021
+ switch (_c.label) {
2002
2022
  case 0:
2003
2023
  if (output.statusCode !== 200 && output.statusCode >= 300) {
2004
2024
  return [2 /*return*/, deserializeAws_restJson1ListTagsForResourceCommandError(output, context)];
@@ -2007,9 +2027,11 @@ export var deserializeAws_restJson1ListTagsForResourceCommand = function (output
2007
2027
  $metadata: deserializeMetadata(output),
2008
2028
  tags: undefined,
2009
2029
  };
2030
+ _a = __expectNonNull;
2031
+ _b = __expectObject;
2010
2032
  return [4 /*yield*/, parseBody(output.body, context)];
2011
2033
  case 1:
2012
- data = _a.sent();
2034
+ data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
2013
2035
  if (data.tags !== undefined && data.tags !== null) {
2014
2036
  contents.tags = deserializeAws_restJson1TagsMap(data.tags, context);
2015
2037
  }
@@ -2088,9 +2110,9 @@ var deserializeAws_restJson1ListTagsForResourceCommandError = function (output,
2088
2110
  });
2089
2111
  }); };
2090
2112
  export var deserializeAws_restJson1MarkAsArchivedCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
2091
- var contents, data;
2092
- return __generator(this, function (_a) {
2093
- switch (_a.label) {
2113
+ var contents, data, _a, _b;
2114
+ return __generator(this, function (_c) {
2115
+ switch (_c.label) {
2094
2116
  case 0:
2095
2117
  if (output.statusCode !== 200 && output.statusCode >= 300) {
2096
2118
  return [2 /*return*/, deserializeAws_restJson1MarkAsArchivedCommandError(output, context)];
@@ -2106,9 +2128,11 @@ export var deserializeAws_restJson1MarkAsArchivedCommand = function (output, con
2106
2128
  sourceServerID: undefined,
2107
2129
  tags: undefined,
2108
2130
  };
2131
+ _a = __expectNonNull;
2132
+ _b = __expectObject;
2109
2133
  return [4 /*yield*/, parseBody(output.body, context)];
2110
2134
  case 1:
2111
- data = _a.sent();
2135
+ data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
2112
2136
  if (data.arn !== undefined && data.arn !== null) {
2113
2137
  contents.arn = __expectString(data.arn);
2114
2138
  }
@@ -2192,9 +2216,9 @@ var deserializeAws_restJson1MarkAsArchivedCommandError = function (output, conte
2192
2216
  });
2193
2217
  }); };
2194
2218
  export var deserializeAws_restJson1RetryDataReplicationCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
2195
- var contents, data;
2196
- return __generator(this, function (_a) {
2197
- switch (_a.label) {
2219
+ var contents, data, _a, _b;
2220
+ return __generator(this, function (_c) {
2221
+ switch (_c.label) {
2198
2222
  case 0:
2199
2223
  if (output.statusCode !== 200 && output.statusCode >= 300) {
2200
2224
  return [2 /*return*/, deserializeAws_restJson1RetryDataReplicationCommandError(output, context)];
@@ -2210,9 +2234,11 @@ export var deserializeAws_restJson1RetryDataReplicationCommand = function (outpu
2210
2234
  sourceServerID: undefined,
2211
2235
  tags: undefined,
2212
2236
  };
2237
+ _a = __expectNonNull;
2238
+ _b = __expectObject;
2213
2239
  return [4 /*yield*/, parseBody(output.body, context)];
2214
2240
  case 1:
2215
- data = _a.sent();
2241
+ data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
2216
2242
  if (data.arn !== undefined && data.arn !== null) {
2217
2243
  contents.arn = __expectString(data.arn);
2218
2244
  }
@@ -2296,9 +2322,9 @@ var deserializeAws_restJson1RetryDataReplicationCommandError = function (output,
2296
2322
  });
2297
2323
  }); };
2298
2324
  export var deserializeAws_restJson1StartCutoverCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
2299
- var contents, data;
2300
- return __generator(this, function (_a) {
2301
- switch (_a.label) {
2325
+ var contents, data, _a, _b;
2326
+ return __generator(this, function (_c) {
2327
+ switch (_c.label) {
2302
2328
  case 0:
2303
2329
  if (output.statusCode !== 202 && output.statusCode >= 300) {
2304
2330
  return [2 /*return*/, deserializeAws_restJson1StartCutoverCommandError(output, context)];
@@ -2307,9 +2333,11 @@ export var deserializeAws_restJson1StartCutoverCommand = function (output, conte
2307
2333
  $metadata: deserializeMetadata(output),
2308
2334
  job: undefined,
2309
2335
  };
2336
+ _a = __expectNonNull;
2337
+ _b = __expectObject;
2310
2338
  return [4 /*yield*/, parseBody(output.body, context)];
2311
2339
  case 1:
2312
- data = _a.sent();
2340
+ data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
2313
2341
  if (data.job !== undefined && data.job !== null) {
2314
2342
  contents.job = deserializeAws_restJson1Job(data.job, context);
2315
2343
  }
@@ -2372,9 +2400,9 @@ var deserializeAws_restJson1StartCutoverCommandError = function (output, context
2372
2400
  });
2373
2401
  }); };
2374
2402
  export var deserializeAws_restJson1StartTestCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
2375
- var contents, data;
2376
- return __generator(this, function (_a) {
2377
- switch (_a.label) {
2403
+ var contents, data, _a, _b;
2404
+ return __generator(this, function (_c) {
2405
+ switch (_c.label) {
2378
2406
  case 0:
2379
2407
  if (output.statusCode !== 202 && output.statusCode >= 300) {
2380
2408
  return [2 /*return*/, deserializeAws_restJson1StartTestCommandError(output, context)];
@@ -2383,9 +2411,11 @@ export var deserializeAws_restJson1StartTestCommand = function (output, context)
2383
2411
  $metadata: deserializeMetadata(output),
2384
2412
  job: undefined,
2385
2413
  };
2414
+ _a = __expectNonNull;
2415
+ _b = __expectObject;
2386
2416
  return [4 /*yield*/, parseBody(output.body, context)];
2387
2417
  case 1:
2388
- data = _a.sent();
2418
+ data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
2389
2419
  if (data.job !== undefined && data.job !== null) {
2390
2420
  contents.job = deserializeAws_restJson1Job(data.job, context);
2391
2421
  }
@@ -2536,9 +2566,9 @@ var deserializeAws_restJson1TagResourceCommandError = function (output, context)
2536
2566
  });
2537
2567
  }); };
2538
2568
  export var deserializeAws_restJson1TerminateTargetInstancesCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
2539
- var contents, data;
2540
- return __generator(this, function (_a) {
2541
- switch (_a.label) {
2569
+ var contents, data, _a, _b;
2570
+ return __generator(this, function (_c) {
2571
+ switch (_c.label) {
2542
2572
  case 0:
2543
2573
  if (output.statusCode !== 202 && output.statusCode >= 300) {
2544
2574
  return [2 /*return*/, deserializeAws_restJson1TerminateTargetInstancesCommandError(output, context)];
@@ -2547,9 +2577,11 @@ export var deserializeAws_restJson1TerminateTargetInstancesCommand = function (o
2547
2577
  $metadata: deserializeMetadata(output),
2548
2578
  job: undefined,
2549
2579
  };
2580
+ _a = __expectNonNull;
2581
+ _b = __expectObject;
2550
2582
  return [4 /*yield*/, parseBody(output.body, context)];
2551
2583
  case 1:
2552
- data = _a.sent();
2584
+ data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
2553
2585
  if (data.job !== undefined && data.job !== null) {
2554
2586
  contents.job = deserializeAws_restJson1Job(data.job, context);
2555
2587
  }
@@ -2700,9 +2732,9 @@ var deserializeAws_restJson1UntagResourceCommandError = function (output, contex
2700
2732
  });
2701
2733
  }); };
2702
2734
  export var deserializeAws_restJson1UpdateLaunchConfigurationCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
2703
- var contents, data;
2704
- return __generator(this, function (_a) {
2705
- switch (_a.label) {
2735
+ var contents, data, _a, _b;
2736
+ return __generator(this, function (_c) {
2737
+ switch (_c.label) {
2706
2738
  case 0:
2707
2739
  if (output.statusCode !== 200 && output.statusCode >= 300) {
2708
2740
  return [2 /*return*/, deserializeAws_restJson1UpdateLaunchConfigurationCommandError(output, context)];
@@ -2718,9 +2750,11 @@ export var deserializeAws_restJson1UpdateLaunchConfigurationCommand = function (
2718
2750
  sourceServerID: undefined,
2719
2751
  targetInstanceTypeRightSizingMethod: undefined,
2720
2752
  };
2753
+ _a = __expectNonNull;
2754
+ _b = __expectObject;
2721
2755
  return [4 /*yield*/, parseBody(output.body, context)];
2722
2756
  case 1:
2723
- data = _a.sent();
2757
+ data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
2724
2758
  if (data.copyPrivateIp !== undefined && data.copyPrivateIp !== null) {
2725
2759
  contents.copyPrivateIp = __expectBoolean(data.copyPrivateIp);
2726
2760
  }
@@ -2812,9 +2846,9 @@ var deserializeAws_restJson1UpdateLaunchConfigurationCommandError = function (ou
2812
2846
  });
2813
2847
  }); };
2814
2848
  export var deserializeAws_restJson1UpdateReplicationConfigurationCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
2815
- var contents, data;
2816
- return __generator(this, function (_a) {
2817
- switch (_a.label) {
2849
+ var contents, data, _a, _b;
2850
+ return __generator(this, function (_c) {
2851
+ switch (_c.label) {
2818
2852
  case 0:
2819
2853
  if (output.statusCode !== 200 && output.statusCode >= 300) {
2820
2854
  return [2 /*return*/, deserializeAws_restJson1UpdateReplicationConfigurationCommandError(output, context)];
@@ -2837,14 +2871,16 @@ export var deserializeAws_restJson1UpdateReplicationConfigurationCommand = funct
2837
2871
  stagingAreaTags: undefined,
2838
2872
  useDedicatedReplicationServer: undefined,
2839
2873
  };
2874
+ _a = __expectNonNull;
2875
+ _b = __expectObject;
2840
2876
  return [4 /*yield*/, parseBody(output.body, context)];
2841
2877
  case 1:
2842
- data = _a.sent();
2878
+ data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
2843
2879
  if (data.associateDefaultSecurityGroup !== undefined && data.associateDefaultSecurityGroup !== null) {
2844
2880
  contents.associateDefaultSecurityGroup = __expectBoolean(data.associateDefaultSecurityGroup);
2845
2881
  }
2846
2882
  if (data.bandwidthThrottling !== undefined && data.bandwidthThrottling !== null) {
2847
- contents.bandwidthThrottling = __expectInt(data.bandwidthThrottling);
2883
+ contents.bandwidthThrottling = __expectLong(data.bandwidthThrottling);
2848
2884
  }
2849
2885
  if (data.createPublicIP !== undefined && data.createPublicIP !== null) {
2850
2886
  contents.createPublicIP = __expectBoolean(data.createPublicIP);
@@ -2960,9 +2996,9 @@ var deserializeAws_restJson1UpdateReplicationConfigurationCommandError = functio
2960
2996
  });
2961
2997
  }); };
2962
2998
  export var deserializeAws_restJson1UpdateReplicationConfigurationTemplateCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
2963
- var contents, data;
2964
- return __generator(this, function (_a) {
2965
- switch (_a.label) {
2999
+ var contents, data, _a, _b;
3000
+ return __generator(this, function (_c) {
3001
+ switch (_c.label) {
2966
3002
  case 0:
2967
3003
  if (output.statusCode !== 200 && output.statusCode >= 300) {
2968
3004
  return [2 /*return*/, deserializeAws_restJson1UpdateReplicationConfigurationTemplateCommandError(output, context)];
@@ -2985,9 +3021,11 @@ export var deserializeAws_restJson1UpdateReplicationConfigurationTemplateCommand
2985
3021
  tags: undefined,
2986
3022
  useDedicatedReplicationServer: undefined,
2987
3023
  };
3024
+ _a = __expectNonNull;
3025
+ _b = __expectObject;
2988
3026
  return [4 /*yield*/, parseBody(output.body, context)];
2989
3027
  case 1:
2990
- data = _a.sent();
3028
+ data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
2991
3029
  if (data.arn !== undefined && data.arn !== null) {
2992
3030
  contents.arn = __expectString(data.arn);
2993
3031
  }
@@ -2995,7 +3033,7 @@ export var deserializeAws_restJson1UpdateReplicationConfigurationTemplateCommand
2995
3033
  contents.associateDefaultSecurityGroup = __expectBoolean(data.associateDefaultSecurityGroup);
2996
3034
  }
2997
3035
  if (data.bandwidthThrottling !== undefined && data.bandwidthThrottling !== null) {
2998
- contents.bandwidthThrottling = __expectInt(data.bandwidthThrottling);
3036
+ contents.bandwidthThrottling = __expectLong(data.bandwidthThrottling);
2999
3037
  }
3000
3038
  if (data.createPublicIP !== undefined && data.createPublicIP !== null) {
3001
3039
  contents.createPublicIP = __expectBoolean(data.createPublicIP);
@@ -3158,7 +3196,7 @@ var deserializeAws_restJson1InternalServerExceptionResponse = function (parsedOu
3158
3196
  retryAfterSeconds: undefined,
3159
3197
  };
3160
3198
  if (parsedOutput.headers["retry-after"] !== undefined) {
3161
- contents.retryAfterSeconds = __strictParseInt(parsedOutput.headers["retry-after"]);
3199
+ contents.retryAfterSeconds = __strictParseLong(parsedOutput.headers["retry-after"]);
3162
3200
  }
3163
3201
  data = parsedOutput.body;
3164
3202
  if (data.message !== undefined && data.message !== null) {
@@ -3385,7 +3423,7 @@ var serializeAws_restJson1TerminateTargetInstancesRequestSourceServerIDs = funct
3385
3423
  };
3386
3424
  var deserializeAws_restJson1CPU = function (output, context) {
3387
3425
  return {
3388
- cores: __expectInt(output.cores),
3426
+ cores: __expectLong(output.cores),
3389
3427
  modelName: __expectString(output.modelName),
3390
3428
  };
3391
3429
  };
@@ -3423,11 +3461,11 @@ var deserializeAws_restJson1DataReplicationInfo = function (output, context) {
3423
3461
  };
3424
3462
  var deserializeAws_restJson1DataReplicationInfoReplicatedDisk = function (output, context) {
3425
3463
  return {
3426
- backloggedStorageBytes: __expectInt(output.backloggedStorageBytes),
3464
+ backloggedStorageBytes: __expectLong(output.backloggedStorageBytes),
3427
3465
  deviceName: __expectString(output.deviceName),
3428
- replicatedStorageBytes: __expectInt(output.replicatedStorageBytes),
3429
- rescannedStorageBytes: __expectInt(output.rescannedStorageBytes),
3430
- totalStorageBytes: __expectInt(output.totalStorageBytes),
3466
+ replicatedStorageBytes: __expectLong(output.replicatedStorageBytes),
3467
+ rescannedStorageBytes: __expectLong(output.rescannedStorageBytes),
3468
+ totalStorageBytes: __expectLong(output.totalStorageBytes),
3431
3469
  };
3432
3470
  };
3433
3471
  var deserializeAws_restJson1DataReplicationInfoReplicatedDisks = function (output, context) {
@@ -3467,7 +3505,7 @@ var deserializeAws_restJson1DataReplicationInitiationSteps = function (output, c
3467
3505
  };
3468
3506
  var deserializeAws_restJson1Disk = function (output, context) {
3469
3507
  return {
3470
- bytes: __expectInt(output.bytes),
3508
+ bytes: __expectLong(output.bytes),
3471
3509
  deviceName: __expectString(output.deviceName),
3472
3510
  };
3473
3511
  };
@@ -3681,7 +3719,7 @@ var deserializeAws_restJson1ParticipatingServers = function (output, context) {
3681
3719
  var deserializeAws_restJson1ReplicationConfigurationReplicatedDisk = function (output, context) {
3682
3720
  return {
3683
3721
  deviceName: __expectString(output.deviceName),
3684
- iops: __expectInt(output.iops),
3722
+ iops: __expectLong(output.iops),
3685
3723
  isBootDisk: __expectBoolean(output.isBootDisk),
3686
3724
  stagingDiskType: __expectString(output.stagingDiskType),
3687
3725
  };
@@ -3700,7 +3738,7 @@ var deserializeAws_restJson1ReplicationConfigurationTemplate = function (output,
3700
3738
  return {
3701
3739
  arn: __expectString(output.arn),
3702
3740
  associateDefaultSecurityGroup: __expectBoolean(output.associateDefaultSecurityGroup),
3703
- bandwidthThrottling: __expectInt(output.bandwidthThrottling),
3741
+ bandwidthThrottling: __expectLong(output.bandwidthThrottling),
3704
3742
  createPublicIP: __expectBoolean(output.createPublicIP),
3705
3743
  dataPlaneRouting: __expectString(output.dataPlaneRouting),
3706
3744
  defaultLargeStagingDiskType: __expectString(output.defaultLargeStagingDiskType),
@@ -3757,7 +3795,7 @@ var deserializeAws_restJson1SourceProperties = function (output, context) {
3757
3795
  ? deserializeAws_restJson1NetworkInterfaces(output.networkInterfaces, context)
3758
3796
  : undefined,
3759
3797
  os: output.os !== undefined && output.os !== null ? deserializeAws_restJson1OS(output.os, context) : undefined,
3760
- ramBytes: __expectInt(output.ramBytes),
3798
+ ramBytes: __expectLong(output.ramBytes),
3761
3799
  recommendedInstanceType: __expectString(output.recommendedInstanceType),
3762
3800
  };
3763
3801
  };