@aws-sdk/client-migrationhubstrategy 3.121.0 → 3.130.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.
package/CHANGELOG.md CHANGED
@@ -3,6 +3,33 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ # [3.130.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.129.0...v3.130.0) (2022-07-14)
7
+
8
+
9
+ ### Bug Fixes
10
+
11
+ * **codegen:** fix error code parsing when it's a number ([#3371](https://github.com/aws/aws-sdk-js-v3/issues/3371)) ([c2d8522](https://github.com/aws/aws-sdk-js-v3/commit/c2d852279a3d23958521a6ceb4f4c642b0cb1848))
12
+
13
+
14
+
15
+
16
+
17
+ # [3.128.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.127.0...v3.128.0) (2022-07-12)
18
+
19
+ **Note:** Version bump only for package @aws-sdk/client-migrationhubstrategy
20
+
21
+
22
+
23
+
24
+
25
+ # [3.127.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.126.0...v3.127.0) (2022-07-11)
26
+
27
+ **Note:** Version bump only for package @aws-sdk/client-migrationhubstrategy
28
+
29
+
30
+
31
+
32
+
6
33
  # [3.121.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.120.0...v3.121.0) (2022-06-30)
7
34
 
8
35
 
@@ -240,16 +240,14 @@ const serializeAws_restJson1ListApplicationComponentsCommand = async (input, con
240
240
  const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/list-applicationcomponents";
241
241
  let body;
242
242
  body = JSON.stringify({
243
- ...(input.applicationComponentCriteria !== undefined &&
244
- input.applicationComponentCriteria !== null && {
243
+ ...(input.applicationComponentCriteria != null && {
245
244
  applicationComponentCriteria: input.applicationComponentCriteria,
246
245
  }),
247
- ...(input.filterValue !== undefined && input.filterValue !== null && { filterValue: input.filterValue }),
248
- ...(input.groupIdFilter !== undefined &&
249
- input.groupIdFilter !== null && { groupIdFilter: serializeAws_restJson1GroupIds(input.groupIdFilter, context) }),
250
- ...(input.maxResults !== undefined && input.maxResults !== null && { maxResults: input.maxResults }),
251
- ...(input.nextToken !== undefined && input.nextToken !== null && { nextToken: input.nextToken }),
252
- ...(input.sort !== undefined && input.sort !== null && { sort: input.sort }),
246
+ ...(input.filterValue != null && { filterValue: input.filterValue }),
247
+ ...(input.groupIdFilter != null && { groupIdFilter: serializeAws_restJson1GroupIds(input.groupIdFilter, context) }),
248
+ ...(input.maxResults != null && { maxResults: input.maxResults }),
249
+ ...(input.nextToken != null && { nextToken: input.nextToken }),
250
+ ...(input.sort != null && { sort: input.sort }),
253
251
  });
254
252
  return new protocol_http_1.HttpRequest({
255
253
  protocol,
@@ -312,14 +310,12 @@ const serializeAws_restJson1ListServersCommand = async (input, context) => {
312
310
  const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/list-servers";
313
311
  let body;
314
312
  body = JSON.stringify({
315
- ...(input.filterValue !== undefined && input.filterValue !== null && { filterValue: input.filterValue }),
316
- ...(input.groupIdFilter !== undefined &&
317
- input.groupIdFilter !== null && { groupIdFilter: serializeAws_restJson1GroupIds(input.groupIdFilter, context) }),
318
- ...(input.maxResults !== undefined && input.maxResults !== null && { maxResults: input.maxResults }),
319
- ...(input.nextToken !== undefined && input.nextToken !== null && { nextToken: input.nextToken }),
320
- ...(input.serverCriteria !== undefined &&
321
- input.serverCriteria !== null && { serverCriteria: input.serverCriteria }),
322
- ...(input.sort !== undefined && input.sort !== null && { sort: input.sort }),
313
+ ...(input.filterValue != null && { filterValue: input.filterValue }),
314
+ ...(input.groupIdFilter != null && { groupIdFilter: serializeAws_restJson1GroupIds(input.groupIdFilter, context) }),
315
+ ...(input.maxResults != null && { maxResults: input.maxResults }),
316
+ ...(input.nextToken != null && { nextToken: input.nextToken }),
317
+ ...(input.serverCriteria != null && { serverCriteria: input.serverCriteria }),
318
+ ...(input.sort != null && { sort: input.sort }),
323
319
  });
324
320
  return new protocol_http_1.HttpRequest({
325
321
  protocol,
@@ -340,16 +336,13 @@ const serializeAws_restJson1PutPortfolioPreferencesCommand = async (input, conte
340
336
  const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/put-portfolio-preferences";
341
337
  let body;
342
338
  body = JSON.stringify({
343
- ...(input.applicationPreferences !== undefined &&
344
- input.applicationPreferences !== null && {
339
+ ...(input.applicationPreferences != null && {
345
340
  applicationPreferences: serializeAws_restJson1ApplicationPreferences(input.applicationPreferences, context),
346
341
  }),
347
- ...(input.databasePreferences !== undefined &&
348
- input.databasePreferences !== null && {
342
+ ...(input.databasePreferences != null && {
349
343
  databasePreferences: serializeAws_restJson1DatabasePreferences(input.databasePreferences, context),
350
344
  }),
351
- ...(input.prioritizeBusinessGoals !== undefined &&
352
- input.prioritizeBusinessGoals !== null && {
345
+ ...(input.prioritizeBusinessGoals != null && {
353
346
  prioritizeBusinessGoals: serializeAws_restJson1PrioritizeBusinessGoals(input.prioritizeBusinessGoals, context),
354
347
  }),
355
348
  });
@@ -372,10 +365,8 @@ const serializeAws_restJson1StartAssessmentCommand = async (input, context) => {
372
365
  const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/start-assessment";
373
366
  let body;
374
367
  body = JSON.stringify({
375
- ...(input.s3bucketForAnalysisData !== undefined &&
376
- input.s3bucketForAnalysisData !== null && { s3bucketForAnalysisData: input.s3bucketForAnalysisData }),
377
- ...(input.s3bucketForReportData !== undefined &&
378
- input.s3bucketForReportData !== null && { s3bucketForReportData: input.s3bucketForReportData }),
368
+ ...(input.s3bucketForAnalysisData != null && { s3bucketForAnalysisData: input.s3bucketForAnalysisData }),
369
+ ...(input.s3bucketForReportData != null && { s3bucketForReportData: input.s3bucketForReportData }),
379
370
  });
380
371
  return new protocol_http_1.HttpRequest({
381
372
  protocol,
@@ -396,15 +387,12 @@ const serializeAws_restJson1StartImportFileTaskCommand = async (input, context)
396
387
  const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/start-import-file-task";
397
388
  let body;
398
389
  body = JSON.stringify({
399
- ...(input.S3Bucket !== undefined && input.S3Bucket !== null && { S3Bucket: input.S3Bucket }),
400
- ...(input.dataSourceType !== undefined &&
401
- input.dataSourceType !== null && { dataSourceType: input.dataSourceType }),
402
- ...(input.groupId !== undefined &&
403
- input.groupId !== null && { groupId: serializeAws_restJson1GroupIds(input.groupId, context) }),
404
- ...(input.name !== undefined && input.name !== null && { name: input.name }),
405
- ...(input.s3bucketForReportData !== undefined &&
406
- input.s3bucketForReportData !== null && { s3bucketForReportData: input.s3bucketForReportData }),
407
- ...(input.s3key !== undefined && input.s3key !== null && { s3key: input.s3key }),
390
+ ...(input.S3Bucket != null && { S3Bucket: input.S3Bucket }),
391
+ ...(input.dataSourceType != null && { dataSourceType: input.dataSourceType }),
392
+ ...(input.groupId != null && { groupId: serializeAws_restJson1GroupIds(input.groupId, context) }),
393
+ ...(input.name != null && { name: input.name }),
394
+ ...(input.s3bucketForReportData != null && { s3bucketForReportData: input.s3bucketForReportData }),
395
+ ...(input.s3key != null && { s3key: input.s3key }),
408
396
  });
409
397
  return new protocol_http_1.HttpRequest({
410
398
  protocol,
@@ -425,9 +413,8 @@ const serializeAws_restJson1StartRecommendationReportGenerationCommand = async (
425
413
  const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/start-recommendation-report-generation";
426
414
  let body;
427
415
  body = JSON.stringify({
428
- ...(input.groupIdFilter !== undefined &&
429
- input.groupIdFilter !== null && { groupIdFilter: serializeAws_restJson1GroupIds(input.groupIdFilter, context) }),
430
- ...(input.outputFormat !== undefined && input.outputFormat !== null && { outputFormat: input.outputFormat }),
416
+ ...(input.groupIdFilter != null && { groupIdFilter: serializeAws_restJson1GroupIds(input.groupIdFilter, context) }),
417
+ ...(input.outputFormat != null && { outputFormat: input.outputFormat }),
431
418
  });
432
419
  return new protocol_http_1.HttpRequest({
433
420
  protocol,
@@ -448,7 +435,7 @@ const serializeAws_restJson1StopAssessmentCommand = async (input, context) => {
448
435
  const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/stop-assessment";
449
436
  let body;
450
437
  body = JSON.stringify({
451
- ...(input.assessmentId !== undefined && input.assessmentId !== null && { assessmentId: input.assessmentId }),
438
+ ...(input.assessmentId != null && { assessmentId: input.assessmentId }),
452
439
  });
453
440
  return new protocol_http_1.HttpRequest({
454
441
  protocol,
@@ -469,18 +456,13 @@ const serializeAws_restJson1UpdateApplicationComponentConfigCommand = async (inp
469
456
  const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/update-applicationcomponent-config";
470
457
  let body;
471
458
  body = JSON.stringify({
472
- ...(input.applicationComponentId !== undefined &&
473
- input.applicationComponentId !== null && { applicationComponentId: input.applicationComponentId }),
474
- ...(input.inclusionStatus !== undefined &&
475
- input.inclusionStatus !== null && { inclusionStatus: input.inclusionStatus }),
476
- ...(input.secretsManagerKey !== undefined &&
477
- input.secretsManagerKey !== null && { secretsManagerKey: input.secretsManagerKey }),
478
- ...(input.sourceCodeList !== undefined &&
479
- input.sourceCodeList !== null && {
459
+ ...(input.applicationComponentId != null && { applicationComponentId: input.applicationComponentId }),
460
+ ...(input.inclusionStatus != null && { inclusionStatus: input.inclusionStatus }),
461
+ ...(input.secretsManagerKey != null && { secretsManagerKey: input.secretsManagerKey }),
462
+ ...(input.sourceCodeList != null && {
480
463
  sourceCodeList: serializeAws_restJson1SourceCodeList(input.sourceCodeList, context),
481
464
  }),
482
- ...(input.strategyOption !== undefined &&
483
- input.strategyOption !== null && {
465
+ ...(input.strategyOption != null && {
484
466
  strategyOption: serializeAws_restJson1StrategyOption(input.strategyOption, context),
485
467
  }),
486
468
  });
@@ -503,9 +485,8 @@ const serializeAws_restJson1UpdateServerConfigCommand = async (input, context) =
503
485
  const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/update-server-config";
504
486
  let body;
505
487
  body = JSON.stringify({
506
- ...(input.serverId !== undefined && input.serverId !== null && { serverId: input.serverId }),
507
- ...(input.strategyOption !== undefined &&
508
- input.strategyOption !== null && {
488
+ ...(input.serverId != null && { serverId: input.serverId }),
489
+ ...(input.strategyOption != null && {
509
490
  strategyOption: serializeAws_restJson1StrategyOption(input.strategyOption, context),
510
491
  }),
511
492
  });
@@ -1646,16 +1627,14 @@ const deserializeAws_restJson1ValidationExceptionResponse = async (parsedOutput,
1646
1627
  };
1647
1628
  const serializeAws_restJson1ApplicationPreferences = (input, context) => {
1648
1629
  return {
1649
- ...(input.managementPreference !== undefined &&
1650
- input.managementPreference !== null && {
1630
+ ...(input.managementPreference != null && {
1651
1631
  managementPreference: serializeAws_restJson1ManagementPreference(input.managementPreference, context),
1652
1632
  }),
1653
1633
  };
1654
1634
  };
1655
1635
  const serializeAws_restJson1AwsManagedResources = (input, context) => {
1656
1636
  return {
1657
- ...(input.targetDestination !== undefined &&
1658
- input.targetDestination !== null && {
1637
+ ...(input.targetDestination != null && {
1659
1638
  targetDestination: serializeAws_restJson1AwsManagedTargetDestinations(input.targetDestination, context),
1660
1639
  }),
1661
1640
  };
@@ -1672,18 +1651,14 @@ const serializeAws_restJson1AwsManagedTargetDestinations = (input, context) => {
1672
1651
  };
1673
1652
  const serializeAws_restJson1BusinessGoals = (input, context) => {
1674
1653
  return {
1675
- ...(input.licenseCostReduction !== undefined &&
1676
- input.licenseCostReduction !== null && { licenseCostReduction: input.licenseCostReduction }),
1677
- ...(input.modernizeInfrastructureWithCloudNativeTechnologies !== undefined &&
1678
- input.modernizeInfrastructureWithCloudNativeTechnologies !== null && {
1654
+ ...(input.licenseCostReduction != null && { licenseCostReduction: input.licenseCostReduction }),
1655
+ ...(input.modernizeInfrastructureWithCloudNativeTechnologies != null && {
1679
1656
  modernizeInfrastructureWithCloudNativeTechnologies: input.modernizeInfrastructureWithCloudNativeTechnologies,
1680
1657
  }),
1681
- ...(input.reduceOperationalOverheadWithManagedServices !== undefined &&
1682
- input.reduceOperationalOverheadWithManagedServices !== null && {
1658
+ ...(input.reduceOperationalOverheadWithManagedServices != null && {
1683
1659
  reduceOperationalOverheadWithManagedServices: input.reduceOperationalOverheadWithManagedServices,
1684
1660
  }),
1685
- ...(input.speedOfMigration !== undefined &&
1686
- input.speedOfMigration !== null && { speedOfMigration: input.speedOfMigration }),
1661
+ ...(input.speedOfMigration != null && { speedOfMigration: input.speedOfMigration }),
1687
1662
  };
1688
1663
  };
1689
1664
  const serializeAws_restJson1DatabaseMigrationPreference = (input, context) => {
@@ -1696,20 +1671,18 @@ const serializeAws_restJson1DatabaseMigrationPreference = (input, context) => {
1696
1671
  };
1697
1672
  const serializeAws_restJson1DatabasePreferences = (input, context) => {
1698
1673
  return {
1699
- ...(input.databaseManagementPreference !== undefined &&
1700
- input.databaseManagementPreference !== null && {
1674
+ ...(input.databaseManagementPreference != null && {
1701
1675
  databaseManagementPreference: input.databaseManagementPreference,
1702
1676
  }),
1703
- ...(input.databaseMigrationPreference !== undefined &&
1704
- input.databaseMigrationPreference !== null && {
1677
+ ...(input.databaseMigrationPreference != null && {
1705
1678
  databaseMigrationPreference: serializeAws_restJson1DatabaseMigrationPreference(input.databaseMigrationPreference, context),
1706
1679
  }),
1707
1680
  };
1708
1681
  };
1709
1682
  const serializeAws_restJson1Group = (input, context) => {
1710
1683
  return {
1711
- ...(input.name !== undefined && input.name !== null && { name: input.name }),
1712
- ...(input.value !== undefined && input.value !== null && { value: input.value }),
1684
+ ...(input.name != null && { name: input.name }),
1685
+ ...(input.value != null && { value: input.value }),
1713
1686
  };
1714
1687
  };
1715
1688
  const serializeAws_restJson1GroupIds = (input, context) => {
@@ -1724,8 +1697,7 @@ const serializeAws_restJson1GroupIds = (input, context) => {
1724
1697
  };
1725
1698
  const serializeAws_restJson1Heterogeneous = (input, context) => {
1726
1699
  return {
1727
- ...(input.targetDatabaseEngine !== undefined &&
1728
- input.targetDatabaseEngine !== null && {
1700
+ ...(input.targetDatabaseEngine != null && {
1729
1701
  targetDatabaseEngine: serializeAws_restJson1HeterogeneousTargetDatabaseEngines(input.targetDatabaseEngine, context),
1730
1702
  }),
1731
1703
  };
@@ -1742,8 +1714,7 @@ const serializeAws_restJson1HeterogeneousTargetDatabaseEngines = (input, context
1742
1714
  };
1743
1715
  const serializeAws_restJson1Homogeneous = (input, context) => {
1744
1716
  return {
1745
- ...(input.targetDatabaseEngine !== undefined &&
1746
- input.targetDatabaseEngine !== null && {
1717
+ ...(input.targetDatabaseEngine != null && {
1747
1718
  targetDatabaseEngine: serializeAws_restJson1HomogeneousTargetDatabaseEngines(input.targetDatabaseEngine, context),
1748
1719
  }),
1749
1720
  };
@@ -1772,16 +1743,14 @@ const serializeAws_restJson1ManagementPreference = (input, context) => {
1772
1743
  };
1773
1744
  const serializeAws_restJson1NoDatabaseMigrationPreference = (input, context) => {
1774
1745
  return {
1775
- ...(input.targetDatabaseEngine !== undefined &&
1776
- input.targetDatabaseEngine !== null && {
1746
+ ...(input.targetDatabaseEngine != null && {
1777
1747
  targetDatabaseEngine: serializeAws_restJson1TargetDatabaseEngines(input.targetDatabaseEngine, context),
1778
1748
  }),
1779
1749
  };
1780
1750
  };
1781
1751
  const serializeAws_restJson1NoManagementPreference = (input, context) => {
1782
1752
  return {
1783
- ...(input.targetDestination !== undefined &&
1784
- input.targetDestination !== null && {
1753
+ ...(input.targetDestination != null && {
1785
1754
  targetDestination: serializeAws_restJson1NoPreferenceTargetDestinations(input.targetDestination, context),
1786
1755
  }),
1787
1756
  };
@@ -1798,16 +1767,14 @@ const serializeAws_restJson1NoPreferenceTargetDestinations = (input, context) =>
1798
1767
  };
1799
1768
  const serializeAws_restJson1PrioritizeBusinessGoals = (input, context) => {
1800
1769
  return {
1801
- ...(input.businessGoals !== undefined &&
1802
- input.businessGoals !== null && {
1770
+ ...(input.businessGoals != null && {
1803
1771
  businessGoals: serializeAws_restJson1BusinessGoals(input.businessGoals, context),
1804
1772
  }),
1805
1773
  };
1806
1774
  };
1807
1775
  const serializeAws_restJson1SelfManageResources = (input, context) => {
1808
1776
  return {
1809
- ...(input.targetDestination !== undefined &&
1810
- input.targetDestination !== null && {
1777
+ ...(input.targetDestination != null && {
1811
1778
  targetDestination: serializeAws_restJson1SelfManageTargetDestinations(input.targetDestination, context),
1812
1779
  }),
1813
1780
  };
@@ -1824,10 +1791,9 @@ const serializeAws_restJson1SelfManageTargetDestinations = (input, context) => {
1824
1791
  };
1825
1792
  const serializeAws_restJson1SourceCode = (input, context) => {
1826
1793
  return {
1827
- ...(input.location !== undefined && input.location !== null && { location: input.location }),
1828
- ...(input.sourceVersion !== undefined && input.sourceVersion !== null && { sourceVersion: input.sourceVersion }),
1829
- ...(input.versionControl !== undefined &&
1830
- input.versionControl !== null && { versionControl: input.versionControl }),
1794
+ ...(input.location != null && { location: input.location }),
1795
+ ...(input.sourceVersion != null && { sourceVersion: input.sourceVersion }),
1796
+ ...(input.versionControl != null && { versionControl: input.versionControl }),
1831
1797
  };
1832
1798
  };
1833
1799
  const serializeAws_restJson1SourceCodeList = (input, context) => {
@@ -1842,11 +1808,10 @@ const serializeAws_restJson1SourceCodeList = (input, context) => {
1842
1808
  };
1843
1809
  const serializeAws_restJson1StrategyOption = (input, context) => {
1844
1810
  return {
1845
- ...(input.isPreferred !== undefined && input.isPreferred !== null && { isPreferred: input.isPreferred }),
1846
- ...(input.strategy !== undefined && input.strategy !== null && { strategy: input.strategy }),
1847
- ...(input.targetDestination !== undefined &&
1848
- input.targetDestination !== null && { targetDestination: input.targetDestination }),
1849
- ...(input.toolName !== undefined && input.toolName !== null && { toolName: input.toolName }),
1811
+ ...(input.isPreferred != null && { isPreferred: input.isPreferred }),
1812
+ ...(input.strategy != null && { strategy: input.strategy }),
1813
+ ...(input.targetDestination != null && { targetDestination: input.targetDestination }),
1814
+ ...(input.toolName != null && { toolName: input.toolName }),
1850
1815
  };
1851
1816
  };
1852
1817
  const serializeAws_restJson1TargetDatabaseEngines = (input, context) => {
@@ -1868,33 +1833,33 @@ const deserializeAws_restJson1AntipatternSeveritySummary = (output, context) =>
1868
1833
  const deserializeAws_restJson1ApplicationComponentDetail = (output, context) => {
1869
1834
  return {
1870
1835
  analysisStatus: (0, smithy_client_1.expectString)(output.analysisStatus),
1871
- antipatternReportS3Object: output.antipatternReportS3Object !== undefined && output.antipatternReportS3Object !== null
1836
+ antipatternReportS3Object: output.antipatternReportS3Object != null
1872
1837
  ? deserializeAws_restJson1S3Object(output.antipatternReportS3Object, context)
1873
1838
  : undefined,
1874
1839
  antipatternReportStatus: (0, smithy_client_1.expectString)(output.antipatternReportStatus),
1875
1840
  antipatternReportStatusMessage: (0, smithy_client_1.expectString)(output.antipatternReportStatusMessage),
1876
1841
  appType: (0, smithy_client_1.expectString)(output.appType),
1877
1842
  associatedServerId: (0, smithy_client_1.expectString)(output.associatedServerId),
1878
- databaseConfigDetail: output.databaseConfigDetail !== undefined && output.databaseConfigDetail !== null
1843
+ databaseConfigDetail: output.databaseConfigDetail != null
1879
1844
  ? deserializeAws_restJson1DatabaseConfigDetail(output.databaseConfigDetail, context)
1880
1845
  : undefined,
1881
1846
  id: (0, smithy_client_1.expectString)(output.id),
1882
1847
  inclusionStatus: (0, smithy_client_1.expectString)(output.inclusionStatus),
1883
- lastAnalyzedTimestamp: output.lastAnalyzedTimestamp !== undefined && output.lastAnalyzedTimestamp !== null
1848
+ lastAnalyzedTimestamp: output.lastAnalyzedTimestamp != null
1884
1849
  ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.lastAnalyzedTimestamp)))
1885
1850
  : undefined,
1886
- listAntipatternSeveritySummary: output.listAntipatternSeveritySummary !== undefined && output.listAntipatternSeveritySummary !== null
1851
+ listAntipatternSeveritySummary: output.listAntipatternSeveritySummary != null
1887
1852
  ? deserializeAws_restJson1ListAntipatternSeveritySummary(output.listAntipatternSeveritySummary, context)
1888
1853
  : undefined,
1889
1854
  moreServerAssociationExists: (0, smithy_client_1.expectBoolean)(output.moreServerAssociationExists),
1890
1855
  name: (0, smithy_client_1.expectString)(output.name),
1891
1856
  osDriver: (0, smithy_client_1.expectString)(output.osDriver),
1892
1857
  osVersion: (0, smithy_client_1.expectString)(output.osVersion),
1893
- recommendationSet: output.recommendationSet !== undefined && output.recommendationSet !== null
1858
+ recommendationSet: output.recommendationSet != null
1894
1859
  ? deserializeAws_restJson1RecommendationSet(output.recommendationSet, context)
1895
1860
  : undefined,
1896
1861
  resourceSubType: (0, smithy_client_1.expectString)(output.resourceSubType),
1897
- sourceCodeRepositories: output.sourceCodeRepositories !== undefined && output.sourceCodeRepositories !== null
1862
+ sourceCodeRepositories: output.sourceCodeRepositories != null
1898
1863
  ? deserializeAws_restJson1SourceCodeRepositories(output.sourceCodeRepositories, context)
1899
1864
  : undefined,
1900
1865
  statusMessage: (0, smithy_client_1.expectString)(output.statusMessage),
@@ -1925,7 +1890,7 @@ const deserializeAws_restJson1ApplicationComponentStrategies = (output, context)
1925
1890
  const deserializeAws_restJson1ApplicationComponentStrategy = (output, context) => {
1926
1891
  return {
1927
1892
  isPreferred: (0, smithy_client_1.expectBoolean)(output.isPreferred),
1928
- recommendation: output.recommendation !== undefined && output.recommendation !== null
1893
+ recommendation: output.recommendation != null
1929
1894
  ? deserializeAws_restJson1RecommendationSet(output.recommendation, context)
1930
1895
  : undefined,
1931
1896
  status: (0, smithy_client_1.expectString)(output.status),
@@ -1939,35 +1904,34 @@ const deserializeAws_restJson1ApplicationComponentSummary = (output, context) =>
1939
1904
  };
1940
1905
  const deserializeAws_restJson1ApplicationPreferences = (output, context) => {
1941
1906
  return {
1942
- managementPreference: output.managementPreference !== undefined && output.managementPreference !== null
1907
+ managementPreference: output.managementPreference != null
1943
1908
  ? deserializeAws_restJson1ManagementPreference((0, smithy_client_1.expectUnion)(output.managementPreference), context)
1944
1909
  : undefined,
1945
1910
  };
1946
1911
  };
1947
1912
  const deserializeAws_restJson1AssessmentSummary = (output, context) => {
1948
1913
  return {
1949
- antipatternReportS3Object: output.antipatternReportS3Object !== undefined && output.antipatternReportS3Object !== null
1914
+ antipatternReportS3Object: output.antipatternReportS3Object != null
1950
1915
  ? deserializeAws_restJson1S3Object(output.antipatternReportS3Object, context)
1951
1916
  : undefined,
1952
1917
  antipatternReportStatus: (0, smithy_client_1.expectString)(output.antipatternReportStatus),
1953
1918
  antipatternReportStatusMessage: (0, smithy_client_1.expectString)(output.antipatternReportStatusMessage),
1954
- lastAnalyzedTimestamp: output.lastAnalyzedTimestamp !== undefined && output.lastAnalyzedTimestamp !== null
1919
+ lastAnalyzedTimestamp: output.lastAnalyzedTimestamp != null
1955
1920
  ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.lastAnalyzedTimestamp)))
1956
1921
  : undefined,
1957
- listAntipatternSeveritySummary: output.listAntipatternSeveritySummary !== undefined && output.listAntipatternSeveritySummary !== null
1922
+ listAntipatternSeveritySummary: output.listAntipatternSeveritySummary != null
1958
1923
  ? deserializeAws_restJson1ListAntipatternSeveritySummary(output.listAntipatternSeveritySummary, context)
1959
1924
  : undefined,
1960
- listApplicationComponentStrategySummary: output.listApplicationComponentStrategySummary !== undefined &&
1961
- output.listApplicationComponentStrategySummary !== null
1925
+ listApplicationComponentStrategySummary: output.listApplicationComponentStrategySummary != null
1962
1926
  ? deserializeAws_restJson1ListStrategySummary(output.listApplicationComponentStrategySummary, context)
1963
1927
  : undefined,
1964
- listApplicationComponentSummary: output.listApplicationComponentSummary !== undefined && output.listApplicationComponentSummary !== null
1928
+ listApplicationComponentSummary: output.listApplicationComponentSummary != null
1965
1929
  ? deserializeAws_restJson1ListApplicationComponentSummary(output.listApplicationComponentSummary, context)
1966
1930
  : undefined,
1967
- listServerStrategySummary: output.listServerStrategySummary !== undefined && output.listServerStrategySummary !== null
1931
+ listServerStrategySummary: output.listServerStrategySummary != null
1968
1932
  ? deserializeAws_restJson1ListStrategySummary(output.listServerStrategySummary, context)
1969
1933
  : undefined,
1970
- listServerSummary: output.listServerSummary !== undefined && output.listServerSummary !== null
1934
+ listServerSummary: output.listServerSummary != null
1971
1935
  ? deserializeAws_restJson1ListServerSummary(output.listServerSummary, context)
1972
1936
  : undefined,
1973
1937
  };
@@ -2002,7 +1966,7 @@ const deserializeAws_restJson1AssociatedServerIDs = (output, context) => {
2002
1966
  };
2003
1967
  const deserializeAws_restJson1AwsManagedResources = (output, context) => {
2004
1968
  return {
2005
- targetDestination: output.targetDestination !== undefined && output.targetDestination !== null
1969
+ targetDestination: output.targetDestination != null
2006
1970
  ? deserializeAws_restJson1AwsManagedTargetDestinations(output.targetDestination, context)
2007
1971
  : undefined,
2008
1972
  };
@@ -2074,29 +2038,27 @@ const deserializeAws_restJson1DatabaseMigrationPreference = (output, context) =>
2074
2038
  const deserializeAws_restJson1DatabasePreferences = (output, context) => {
2075
2039
  return {
2076
2040
  databaseManagementPreference: (0, smithy_client_1.expectString)(output.databaseManagementPreference),
2077
- databaseMigrationPreference: output.databaseMigrationPreference !== undefined && output.databaseMigrationPreference !== null
2041
+ databaseMigrationPreference: output.databaseMigrationPreference != null
2078
2042
  ? deserializeAws_restJson1DatabaseMigrationPreference((0, smithy_client_1.expectUnion)(output.databaseMigrationPreference), context)
2079
2043
  : undefined,
2080
2044
  };
2081
2045
  };
2082
2046
  const deserializeAws_restJson1DataCollectionDetails = (output, context) => {
2083
2047
  return {
2084
- completionTime: output.completionTime !== undefined && output.completionTime !== null
2048
+ completionTime: output.completionTime != null
2085
2049
  ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.completionTime)))
2086
2050
  : undefined,
2087
2051
  failed: (0, smithy_client_1.expectInt32)(output.failed),
2088
2052
  inProgress: (0, smithy_client_1.expectInt32)(output.inProgress),
2089
2053
  servers: (0, smithy_client_1.expectInt32)(output.servers),
2090
- startTime: output.startTime !== undefined && output.startTime !== null
2091
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.startTime)))
2092
- : undefined,
2054
+ startTime: output.startTime != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.startTime))) : undefined,
2093
2055
  status: (0, smithy_client_1.expectString)(output.status),
2094
2056
  success: (0, smithy_client_1.expectInt32)(output.success),
2095
2057
  };
2096
2058
  };
2097
2059
  const deserializeAws_restJson1Heterogeneous = (output, context) => {
2098
2060
  return {
2099
- targetDatabaseEngine: output.targetDatabaseEngine !== undefined && output.targetDatabaseEngine !== null
2061
+ targetDatabaseEngine: output.targetDatabaseEngine != null
2100
2062
  ? deserializeAws_restJson1HeterogeneousTargetDatabaseEngines(output.targetDatabaseEngine, context)
2101
2063
  : undefined,
2102
2064
  };
@@ -2114,7 +2076,7 @@ const deserializeAws_restJson1HeterogeneousTargetDatabaseEngines = (output, cont
2114
2076
  };
2115
2077
  const deserializeAws_restJson1Homogeneous = (output, context) => {
2116
2078
  return {
2117
- targetDatabaseEngine: output.targetDatabaseEngine !== undefined && output.targetDatabaseEngine !== null
2079
+ targetDatabaseEngine: output.targetDatabaseEngine != null
2118
2080
  ? deserializeAws_restJson1HomogeneousTargetDatabaseEngines(output.targetDatabaseEngine, context)
2119
2081
  : undefined,
2120
2082
  };
@@ -2132,7 +2094,7 @@ const deserializeAws_restJson1HomogeneousTargetDatabaseEngines = (output, contex
2132
2094
  };
2133
2095
  const deserializeAws_restJson1ImportFileTaskInformation = (output, context) => {
2134
2096
  return {
2135
- completionTime: output.completionTime !== undefined && output.completionTime !== null
2097
+ completionTime: output.completionTime != null
2136
2098
  ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.completionTime)))
2137
2099
  : undefined,
2138
2100
  id: (0, smithy_client_1.expectString)(output.id),
@@ -2141,9 +2103,7 @@ const deserializeAws_restJson1ImportFileTaskInformation = (output, context) => {
2141
2103
  inputS3Key: (0, smithy_client_1.expectString)(output.inputS3Key),
2142
2104
  numberOfRecordsFailed: (0, smithy_client_1.expectInt32)(output.numberOfRecordsFailed),
2143
2105
  numberOfRecordsSuccess: (0, smithy_client_1.expectInt32)(output.numberOfRecordsSuccess),
2144
- startTime: output.startTime !== undefined && output.startTime !== null
2145
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.startTime)))
2146
- : undefined,
2106
+ startTime: output.startTime != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.startTime))) : undefined,
2147
2107
  status: (0, smithy_client_1.expectString)(output.status),
2148
2108
  statusReportS3Bucket: (0, smithy_client_1.expectString)(output.statusReportS3Bucket),
2149
2109
  statusReportS3Key: (0, smithy_client_1.expectString)(output.statusReportS3Key),
@@ -2243,14 +2203,14 @@ const deserializeAws_restJson1NetworkInfoList = (output, context) => {
2243
2203
  };
2244
2204
  const deserializeAws_restJson1NoDatabaseMigrationPreference = (output, context) => {
2245
2205
  return {
2246
- targetDatabaseEngine: output.targetDatabaseEngine !== undefined && output.targetDatabaseEngine !== null
2206
+ targetDatabaseEngine: output.targetDatabaseEngine != null
2247
2207
  ? deserializeAws_restJson1TargetDatabaseEngines(output.targetDatabaseEngine, context)
2248
2208
  : undefined,
2249
2209
  };
2250
2210
  };
2251
2211
  const deserializeAws_restJson1NoManagementPreference = (output, context) => {
2252
2212
  return {
2253
- targetDestination: output.targetDestination !== undefined && output.targetDestination !== null
2213
+ targetDestination: output.targetDestination != null
2254
2214
  ? deserializeAws_restJson1NoPreferenceTargetDestinations(output.targetDestination, context)
2255
2215
  : undefined,
2256
2216
  };
@@ -2274,23 +2234,17 @@ const deserializeAws_restJson1OSInfo = (output, context) => {
2274
2234
  };
2275
2235
  const deserializeAws_restJson1PrioritizeBusinessGoals = (output, context) => {
2276
2236
  return {
2277
- businessGoals: output.businessGoals !== undefined && output.businessGoals !== null
2278
- ? deserializeAws_restJson1BusinessGoals(output.businessGoals, context)
2279
- : undefined,
2237
+ businessGoals: output.businessGoals != null ? deserializeAws_restJson1BusinessGoals(output.businessGoals, context) : undefined,
2280
2238
  };
2281
2239
  };
2282
2240
  const deserializeAws_restJson1RecommendationReportDetails = (output, context) => {
2283
2241
  return {
2284
- completionTime: output.completionTime !== undefined && output.completionTime !== null
2242
+ completionTime: output.completionTime != null
2285
2243
  ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.completionTime)))
2286
2244
  : undefined,
2287
2245
  s3Bucket: (0, smithy_client_1.expectString)(output.s3Bucket),
2288
- s3Keys: output.s3Keys !== undefined && output.s3Keys !== null
2289
- ? deserializeAws_restJson1S3Keys(output.s3Keys, context)
2290
- : undefined,
2291
- startTime: output.startTime !== undefined && output.startTime !== null
2292
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.startTime)))
2293
- : undefined,
2246
+ s3Keys: output.s3Keys != null ? deserializeAws_restJson1S3Keys(output.s3Keys, context) : undefined,
2247
+ startTime: output.startTime != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.startTime))) : undefined,
2294
2248
  status: (0, smithy_client_1.expectString)(output.status),
2295
2249
  statusMessage: (0, smithy_client_1.expectString)(output.statusMessage),
2296
2250
  };
@@ -2299,7 +2253,7 @@ const deserializeAws_restJson1RecommendationSet = (output, context) => {
2299
2253
  return {
2300
2254
  strategy: (0, smithy_client_1.expectString)(output.strategy),
2301
2255
  targetDestination: (0, smithy_client_1.expectString)(output.targetDestination),
2302
- transformationTool: output.transformationTool !== undefined && output.transformationTool !== null
2256
+ transformationTool: output.transformationTool != null
2303
2257
  ? deserializeAws_restJson1TransformationTool(output.transformationTool, context)
2304
2258
  : undefined,
2305
2259
  };
@@ -2323,7 +2277,7 @@ const deserializeAws_restJson1S3Object = (output, context) => {
2323
2277
  };
2324
2278
  const deserializeAws_restJson1SelfManageResources = (output, context) => {
2325
2279
  return {
2326
- targetDestination: output.targetDestination !== undefined && output.targetDestination !== null
2280
+ targetDestination: output.targetDestination != null
2327
2281
  ? deserializeAws_restJson1SelfManageTargetDestinations(output.targetDestination, context)
2328
2282
  : undefined,
2329
2283
  };
@@ -2341,31 +2295,29 @@ const deserializeAws_restJson1SelfManageTargetDestinations = (output, context) =
2341
2295
  };
2342
2296
  const deserializeAws_restJson1ServerDetail = (output, context) => {
2343
2297
  return {
2344
- antipatternReportS3Object: output.antipatternReportS3Object !== undefined && output.antipatternReportS3Object !== null
2298
+ antipatternReportS3Object: output.antipatternReportS3Object != null
2345
2299
  ? deserializeAws_restJson1S3Object(output.antipatternReportS3Object, context)
2346
2300
  : undefined,
2347
2301
  antipatternReportStatus: (0, smithy_client_1.expectString)(output.antipatternReportStatus),
2348
2302
  antipatternReportStatusMessage: (0, smithy_client_1.expectString)(output.antipatternReportStatusMessage),
2349
- applicationComponentStrategySummary: output.applicationComponentStrategySummary !== undefined && output.applicationComponentStrategySummary !== null
2303
+ applicationComponentStrategySummary: output.applicationComponentStrategySummary != null
2350
2304
  ? deserializeAws_restJson1ListStrategySummary(output.applicationComponentStrategySummary, context)
2351
2305
  : undefined,
2352
2306
  dataCollectionStatus: (0, smithy_client_1.expectString)(output.dataCollectionStatus),
2353
2307
  id: (0, smithy_client_1.expectString)(output.id),
2354
- lastAnalyzedTimestamp: output.lastAnalyzedTimestamp !== undefined && output.lastAnalyzedTimestamp !== null
2308
+ lastAnalyzedTimestamp: output.lastAnalyzedTimestamp != null
2355
2309
  ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.lastAnalyzedTimestamp)))
2356
2310
  : undefined,
2357
- listAntipatternSeveritySummary: output.listAntipatternSeveritySummary !== undefined && output.listAntipatternSeveritySummary !== null
2311
+ listAntipatternSeveritySummary: output.listAntipatternSeveritySummary != null
2358
2312
  ? deserializeAws_restJson1ListAntipatternSeveritySummary(output.listAntipatternSeveritySummary, context)
2359
2313
  : undefined,
2360
2314
  name: (0, smithy_client_1.expectString)(output.name),
2361
- recommendationSet: output.recommendationSet !== undefined && output.recommendationSet !== null
2315
+ recommendationSet: output.recommendationSet != null
2362
2316
  ? deserializeAws_restJson1RecommendationSet(output.recommendationSet, context)
2363
2317
  : undefined,
2364
2318
  serverType: (0, smithy_client_1.expectString)(output.serverType),
2365
2319
  statusMessage: (0, smithy_client_1.expectString)(output.statusMessage),
2366
- systemInfo: output.systemInfo !== undefined && output.systemInfo !== null
2367
- ? deserializeAws_restJson1SystemInfo(output.systemInfo, context)
2368
- : undefined,
2320
+ systemInfo: output.systemInfo != null ? deserializeAws_restJson1SystemInfo(output.systemInfo, context) : undefined,
2369
2321
  };
2370
2322
  };
2371
2323
  const deserializeAws_restJson1ServerDetails = (output, context) => {
@@ -2394,7 +2346,7 @@ const deserializeAws_restJson1ServerStrategy = (output, context) => {
2394
2346
  return {
2395
2347
  isPreferred: (0, smithy_client_1.expectBoolean)(output.isPreferred),
2396
2348
  numberOfApplicationComponents: (0, smithy_client_1.expectInt32)(output.numberOfApplicationComponents),
2397
- recommendation: output.recommendation !== undefined && output.recommendation !== null
2349
+ recommendation: output.recommendation != null
2398
2350
  ? deserializeAws_restJson1RecommendationSet(output.recommendation, context)
2399
2351
  : undefined,
2400
2352
  status: (0, smithy_client_1.expectString)(output.status),
@@ -2434,12 +2386,10 @@ const deserializeAws_restJson1SystemInfo = (output, context) => {
2434
2386
  return {
2435
2387
  cpuArchitecture: (0, smithy_client_1.expectString)(output.cpuArchitecture),
2436
2388
  fileSystemType: (0, smithy_client_1.expectString)(output.fileSystemType),
2437
- networkInfoList: output.networkInfoList !== undefined && output.networkInfoList !== null
2389
+ networkInfoList: output.networkInfoList != null
2438
2390
  ? deserializeAws_restJson1NetworkInfoList(output.networkInfoList, context)
2439
2391
  : undefined,
2440
- osInfo: output.osInfo !== undefined && output.osInfo !== null
2441
- ? deserializeAws_restJson1OSInfo(output.osInfo, context)
2442
- : undefined,
2392
+ osInfo: output.osInfo != null ? deserializeAws_restJson1OSInfo(output.osInfo, context) : undefined,
2443
2393
  };
2444
2394
  };
2445
2395
  const deserializeAws_restJson1TargetDatabaseEngines = (output, context) => {
@@ -2491,6 +2441,9 @@ const loadRestJsonErrorCode = (output, data) => {
2491
2441
  const findKey = (object, key) => Object.keys(object).find((k) => k.toLowerCase() === key.toLowerCase());
2492
2442
  const sanitizeErrorCode = (rawValue) => {
2493
2443
  let cleanValue = rawValue;
2444
+ if (typeof cleanValue === "number") {
2445
+ cleanValue = cleanValue.toString();
2446
+ }
2494
2447
  if (cleanValue.indexOf(":") >= 0) {
2495
2448
  cleanValue = cleanValue.split(":")[0];
2496
2449
  }
@@ -283,11 +283,9 @@ export var serializeAws_restJson1ListApplicationComponentsCommand = function (in
283
283
  "content-type": "application/json",
284
284
  };
285
285
  resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/list-applicationcomponents";
286
- body = JSON.stringify(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.applicationComponentCriteria !== undefined &&
287
- input.applicationComponentCriteria !== null && {
286
+ body = JSON.stringify(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.applicationComponentCriteria != null && {
288
287
  applicationComponentCriteria: input.applicationComponentCriteria,
289
- })), (input.filterValue !== undefined && input.filterValue !== null && { filterValue: input.filterValue })), (input.groupIdFilter !== undefined &&
290
- input.groupIdFilter !== null && { groupIdFilter: serializeAws_restJson1GroupIds(input.groupIdFilter, context) })), (input.maxResults !== undefined && input.maxResults !== null && { maxResults: input.maxResults })), (input.nextToken !== undefined && input.nextToken !== null && { nextToken: input.nextToken })), (input.sort !== undefined && input.sort !== null && { sort: input.sort })));
288
+ })), (input.filterValue != null && { filterValue: input.filterValue })), (input.groupIdFilter != null && { groupIdFilter: serializeAws_restJson1GroupIds(input.groupIdFilter, context) })), (input.maxResults != null && { maxResults: input.maxResults })), (input.nextToken != null && { nextToken: input.nextToken })), (input.sort != null && { sort: input.sort })));
291
289
  return [2, new __HttpRequest({
292
290
  protocol: protocol,
293
291
  hostname: hostname,
@@ -357,9 +355,7 @@ export var serializeAws_restJson1ListServersCommand = function (input, context)
357
355
  "content-type": "application/json",
358
356
  };
359
357
  resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/list-servers";
360
- body = JSON.stringify(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.filterValue !== undefined && input.filterValue !== null && { filterValue: input.filterValue })), (input.groupIdFilter !== undefined &&
361
- input.groupIdFilter !== null && { groupIdFilter: serializeAws_restJson1GroupIds(input.groupIdFilter, context) })), (input.maxResults !== undefined && input.maxResults !== null && { maxResults: input.maxResults })), (input.nextToken !== undefined && input.nextToken !== null && { nextToken: input.nextToken })), (input.serverCriteria !== undefined &&
362
- input.serverCriteria !== null && { serverCriteria: input.serverCriteria })), (input.sort !== undefined && input.sort !== null && { sort: input.sort })));
358
+ body = JSON.stringify(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.filterValue != null && { filterValue: input.filterValue })), (input.groupIdFilter != null && { groupIdFilter: serializeAws_restJson1GroupIds(input.groupIdFilter, context) })), (input.maxResults != null && { maxResults: input.maxResults })), (input.nextToken != null && { nextToken: input.nextToken })), (input.serverCriteria != null && { serverCriteria: input.serverCriteria })), (input.sort != null && { sort: input.sort })));
363
359
  return [2, new __HttpRequest({
364
360
  protocol: protocol,
365
361
  hostname: hostname,
@@ -383,14 +379,11 @@ export var serializeAws_restJson1PutPortfolioPreferencesCommand = function (inpu
383
379
  "content-type": "application/json",
384
380
  };
385
381
  resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/put-portfolio-preferences";
386
- body = JSON.stringify(__assign(__assign(__assign({}, (input.applicationPreferences !== undefined &&
387
- input.applicationPreferences !== null && {
382
+ body = JSON.stringify(__assign(__assign(__assign({}, (input.applicationPreferences != null && {
388
383
  applicationPreferences: serializeAws_restJson1ApplicationPreferences(input.applicationPreferences, context),
389
- })), (input.databasePreferences !== undefined &&
390
- input.databasePreferences !== null && {
384
+ })), (input.databasePreferences != null && {
391
385
  databasePreferences: serializeAws_restJson1DatabasePreferences(input.databasePreferences, context),
392
- })), (input.prioritizeBusinessGoals !== undefined &&
393
- input.prioritizeBusinessGoals !== null && {
386
+ })), (input.prioritizeBusinessGoals != null && {
394
387
  prioritizeBusinessGoals: serializeAws_restJson1PrioritizeBusinessGoals(input.prioritizeBusinessGoals, context),
395
388
  })));
396
389
  return [2, new __HttpRequest({
@@ -416,9 +409,7 @@ export var serializeAws_restJson1StartAssessmentCommand = function (input, conte
416
409
  "content-type": "application/json",
417
410
  };
418
411
  resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/start-assessment";
419
- body = JSON.stringify(__assign(__assign({}, (input.s3bucketForAnalysisData !== undefined &&
420
- input.s3bucketForAnalysisData !== null && { s3bucketForAnalysisData: input.s3bucketForAnalysisData })), (input.s3bucketForReportData !== undefined &&
421
- input.s3bucketForReportData !== null && { s3bucketForReportData: input.s3bucketForReportData })));
412
+ body = JSON.stringify(__assign(__assign({}, (input.s3bucketForAnalysisData != null && { s3bucketForAnalysisData: input.s3bucketForAnalysisData })), (input.s3bucketForReportData != null && { s3bucketForReportData: input.s3bucketForReportData })));
422
413
  return [2, new __HttpRequest({
423
414
  protocol: protocol,
424
415
  hostname: hostname,
@@ -442,10 +433,7 @@ export var serializeAws_restJson1StartImportFileTaskCommand = function (input, c
442
433
  "content-type": "application/json",
443
434
  };
444
435
  resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/start-import-file-task";
445
- body = JSON.stringify(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.S3Bucket !== undefined && input.S3Bucket !== null && { S3Bucket: input.S3Bucket })), (input.dataSourceType !== undefined &&
446
- input.dataSourceType !== null && { dataSourceType: input.dataSourceType })), (input.groupId !== undefined &&
447
- input.groupId !== null && { groupId: serializeAws_restJson1GroupIds(input.groupId, context) })), (input.name !== undefined && input.name !== null && { name: input.name })), (input.s3bucketForReportData !== undefined &&
448
- input.s3bucketForReportData !== null && { s3bucketForReportData: input.s3bucketForReportData })), (input.s3key !== undefined && input.s3key !== null && { s3key: input.s3key })));
436
+ body = JSON.stringify(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.S3Bucket != null && { S3Bucket: input.S3Bucket })), (input.dataSourceType != null && { dataSourceType: input.dataSourceType })), (input.groupId != null && { groupId: serializeAws_restJson1GroupIds(input.groupId, context) })), (input.name != null && { name: input.name })), (input.s3bucketForReportData != null && { s3bucketForReportData: input.s3bucketForReportData })), (input.s3key != null && { s3key: input.s3key })));
449
437
  return [2, new __HttpRequest({
450
438
  protocol: protocol,
451
439
  hostname: hostname,
@@ -469,8 +457,7 @@ export var serializeAws_restJson1StartRecommendationReportGenerationCommand = fu
469
457
  "content-type": "application/json",
470
458
  };
471
459
  resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/start-recommendation-report-generation";
472
- body = JSON.stringify(__assign(__assign({}, (input.groupIdFilter !== undefined &&
473
- input.groupIdFilter !== null && { groupIdFilter: serializeAws_restJson1GroupIds(input.groupIdFilter, context) })), (input.outputFormat !== undefined && input.outputFormat !== null && { outputFormat: input.outputFormat })));
460
+ body = JSON.stringify(__assign(__assign({}, (input.groupIdFilter != null && { groupIdFilter: serializeAws_restJson1GroupIds(input.groupIdFilter, context) })), (input.outputFormat != null && { outputFormat: input.outputFormat })));
474
461
  return [2, new __HttpRequest({
475
462
  protocol: protocol,
476
463
  hostname: hostname,
@@ -494,7 +481,7 @@ export var serializeAws_restJson1StopAssessmentCommand = function (input, contex
494
481
  "content-type": "application/json",
495
482
  };
496
483
  resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/stop-assessment";
497
- body = JSON.stringify(__assign({}, (input.assessmentId !== undefined && input.assessmentId !== null && { assessmentId: input.assessmentId })));
484
+ body = JSON.stringify(__assign({}, (input.assessmentId != null && { assessmentId: input.assessmentId })));
498
485
  return [2, new __HttpRequest({
499
486
  protocol: protocol,
500
487
  hostname: hostname,
@@ -518,14 +505,9 @@ export var serializeAws_restJson1UpdateApplicationComponentConfigCommand = funct
518
505
  "content-type": "application/json",
519
506
  };
520
507
  resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/update-applicationcomponent-config";
521
- body = JSON.stringify(__assign(__assign(__assign(__assign(__assign({}, (input.applicationComponentId !== undefined &&
522
- input.applicationComponentId !== null && { applicationComponentId: input.applicationComponentId })), (input.inclusionStatus !== undefined &&
523
- input.inclusionStatus !== null && { inclusionStatus: input.inclusionStatus })), (input.secretsManagerKey !== undefined &&
524
- input.secretsManagerKey !== null && { secretsManagerKey: input.secretsManagerKey })), (input.sourceCodeList !== undefined &&
525
- input.sourceCodeList !== null && {
508
+ body = JSON.stringify(__assign(__assign(__assign(__assign(__assign({}, (input.applicationComponentId != null && { applicationComponentId: input.applicationComponentId })), (input.inclusionStatus != null && { inclusionStatus: input.inclusionStatus })), (input.secretsManagerKey != null && { secretsManagerKey: input.secretsManagerKey })), (input.sourceCodeList != null && {
526
509
  sourceCodeList: serializeAws_restJson1SourceCodeList(input.sourceCodeList, context),
527
- })), (input.strategyOption !== undefined &&
528
- input.strategyOption !== null && {
510
+ })), (input.strategyOption != null && {
529
511
  strategyOption: serializeAws_restJson1StrategyOption(input.strategyOption, context),
530
512
  })));
531
513
  return [2, new __HttpRequest({
@@ -551,8 +533,7 @@ export var serializeAws_restJson1UpdateServerConfigCommand = function (input, co
551
533
  "content-type": "application/json",
552
534
  };
553
535
  resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/update-server-config";
554
- body = JSON.stringify(__assign(__assign({}, (input.serverId !== undefined && input.serverId !== null && { serverId: input.serverId })), (input.strategyOption !== undefined &&
555
- input.strategyOption !== null && {
536
+ body = JSON.stringify(__assign(__assign({}, (input.serverId != null && { serverId: input.serverId })), (input.strategyOption != null && {
556
537
  strategyOption: serializeAws_restJson1StrategyOption(input.strategyOption, context),
557
538
  })));
558
539
  return [2, new __HttpRequest({
@@ -2128,14 +2109,12 @@ var deserializeAws_restJson1ValidationExceptionResponse = function (parsedOutput
2128
2109
  });
2129
2110
  }); };
2130
2111
  var serializeAws_restJson1ApplicationPreferences = function (input, context) {
2131
- return __assign({}, (input.managementPreference !== undefined &&
2132
- input.managementPreference !== null && {
2112
+ return __assign({}, (input.managementPreference != null && {
2133
2113
  managementPreference: serializeAws_restJson1ManagementPreference(input.managementPreference, context),
2134
2114
  }));
2135
2115
  };
2136
2116
  var serializeAws_restJson1AwsManagedResources = function (input, context) {
2137
- return __assign({}, (input.targetDestination !== undefined &&
2138
- input.targetDestination !== null && {
2117
+ return __assign({}, (input.targetDestination != null && {
2139
2118
  targetDestination: serializeAws_restJson1AwsManagedTargetDestinations(input.targetDestination, context),
2140
2119
  }));
2141
2120
  };
@@ -2150,15 +2129,11 @@ var serializeAws_restJson1AwsManagedTargetDestinations = function (input, contex
2150
2129
  });
2151
2130
  };
2152
2131
  var serializeAws_restJson1BusinessGoals = function (input, context) {
2153
- return __assign(__assign(__assign(__assign({}, (input.licenseCostReduction !== undefined &&
2154
- input.licenseCostReduction !== null && { licenseCostReduction: input.licenseCostReduction })), (input.modernizeInfrastructureWithCloudNativeTechnologies !== undefined &&
2155
- input.modernizeInfrastructureWithCloudNativeTechnologies !== null && {
2132
+ return __assign(__assign(__assign(__assign({}, (input.licenseCostReduction != null && { licenseCostReduction: input.licenseCostReduction })), (input.modernizeInfrastructureWithCloudNativeTechnologies != null && {
2156
2133
  modernizeInfrastructureWithCloudNativeTechnologies: input.modernizeInfrastructureWithCloudNativeTechnologies,
2157
- })), (input.reduceOperationalOverheadWithManagedServices !== undefined &&
2158
- input.reduceOperationalOverheadWithManagedServices !== null && {
2134
+ })), (input.reduceOperationalOverheadWithManagedServices != null && {
2159
2135
  reduceOperationalOverheadWithManagedServices: input.reduceOperationalOverheadWithManagedServices,
2160
- })), (input.speedOfMigration !== undefined &&
2161
- input.speedOfMigration !== null && { speedOfMigration: input.speedOfMigration }));
2136
+ })), (input.speedOfMigration != null && { speedOfMigration: input.speedOfMigration }));
2162
2137
  };
2163
2138
  var serializeAws_restJson1DatabaseMigrationPreference = function (input, context) {
2164
2139
  return DatabaseMigrationPreference.visit(input, {
@@ -2169,16 +2144,14 @@ var serializeAws_restJson1DatabaseMigrationPreference = function (input, context
2169
2144
  });
2170
2145
  };
2171
2146
  var serializeAws_restJson1DatabasePreferences = function (input, context) {
2172
- return __assign(__assign({}, (input.databaseManagementPreference !== undefined &&
2173
- input.databaseManagementPreference !== null && {
2147
+ return __assign(__assign({}, (input.databaseManagementPreference != null && {
2174
2148
  databaseManagementPreference: input.databaseManagementPreference,
2175
- })), (input.databaseMigrationPreference !== undefined &&
2176
- input.databaseMigrationPreference !== null && {
2149
+ })), (input.databaseMigrationPreference != null && {
2177
2150
  databaseMigrationPreference: serializeAws_restJson1DatabaseMigrationPreference(input.databaseMigrationPreference, context),
2178
2151
  }));
2179
2152
  };
2180
2153
  var serializeAws_restJson1Group = function (input, context) {
2181
- return __assign(__assign({}, (input.name !== undefined && input.name !== null && { name: input.name })), (input.value !== undefined && input.value !== null && { value: input.value }));
2154
+ return __assign(__assign({}, (input.name != null && { name: input.name })), (input.value != null && { value: input.value }));
2182
2155
  };
2183
2156
  var serializeAws_restJson1GroupIds = function (input, context) {
2184
2157
  return input
@@ -2191,8 +2164,7 @@ var serializeAws_restJson1GroupIds = function (input, context) {
2191
2164
  });
2192
2165
  };
2193
2166
  var serializeAws_restJson1Heterogeneous = function (input, context) {
2194
- return __assign({}, (input.targetDatabaseEngine !== undefined &&
2195
- input.targetDatabaseEngine !== null && {
2167
+ return __assign({}, (input.targetDatabaseEngine != null && {
2196
2168
  targetDatabaseEngine: serializeAws_restJson1HeterogeneousTargetDatabaseEngines(input.targetDatabaseEngine, context),
2197
2169
  }));
2198
2170
  };
@@ -2207,8 +2179,7 @@ var serializeAws_restJson1HeterogeneousTargetDatabaseEngines = function (input,
2207
2179
  });
2208
2180
  };
2209
2181
  var serializeAws_restJson1Homogeneous = function (input, context) {
2210
- return __assign({}, (input.targetDatabaseEngine !== undefined &&
2211
- input.targetDatabaseEngine !== null && {
2182
+ return __assign({}, (input.targetDatabaseEngine != null && {
2212
2183
  targetDatabaseEngine: serializeAws_restJson1HomogeneousTargetDatabaseEngines(input.targetDatabaseEngine, context),
2213
2184
  }));
2214
2185
  };
@@ -2235,14 +2206,12 @@ var serializeAws_restJson1ManagementPreference = function (input, context) {
2235
2206
  });
2236
2207
  };
2237
2208
  var serializeAws_restJson1NoDatabaseMigrationPreference = function (input, context) {
2238
- return __assign({}, (input.targetDatabaseEngine !== undefined &&
2239
- input.targetDatabaseEngine !== null && {
2209
+ return __assign({}, (input.targetDatabaseEngine != null && {
2240
2210
  targetDatabaseEngine: serializeAws_restJson1TargetDatabaseEngines(input.targetDatabaseEngine, context),
2241
2211
  }));
2242
2212
  };
2243
2213
  var serializeAws_restJson1NoManagementPreference = function (input, context) {
2244
- return __assign({}, (input.targetDestination !== undefined &&
2245
- input.targetDestination !== null && {
2214
+ return __assign({}, (input.targetDestination != null && {
2246
2215
  targetDestination: serializeAws_restJson1NoPreferenceTargetDestinations(input.targetDestination, context),
2247
2216
  }));
2248
2217
  };
@@ -2257,14 +2226,12 @@ var serializeAws_restJson1NoPreferenceTargetDestinations = function (input, cont
2257
2226
  });
2258
2227
  };
2259
2228
  var serializeAws_restJson1PrioritizeBusinessGoals = function (input, context) {
2260
- return __assign({}, (input.businessGoals !== undefined &&
2261
- input.businessGoals !== null && {
2229
+ return __assign({}, (input.businessGoals != null && {
2262
2230
  businessGoals: serializeAws_restJson1BusinessGoals(input.businessGoals, context),
2263
2231
  }));
2264
2232
  };
2265
2233
  var serializeAws_restJson1SelfManageResources = function (input, context) {
2266
- return __assign({}, (input.targetDestination !== undefined &&
2267
- input.targetDestination !== null && {
2234
+ return __assign({}, (input.targetDestination != null && {
2268
2235
  targetDestination: serializeAws_restJson1SelfManageTargetDestinations(input.targetDestination, context),
2269
2236
  }));
2270
2237
  };
@@ -2279,8 +2246,7 @@ var serializeAws_restJson1SelfManageTargetDestinations = function (input, contex
2279
2246
  });
2280
2247
  };
2281
2248
  var serializeAws_restJson1SourceCode = function (input, context) {
2282
- return __assign(__assign(__assign({}, (input.location !== undefined && input.location !== null && { location: input.location })), (input.sourceVersion !== undefined && input.sourceVersion !== null && { sourceVersion: input.sourceVersion })), (input.versionControl !== undefined &&
2283
- input.versionControl !== null && { versionControl: input.versionControl }));
2249
+ return __assign(__assign(__assign({}, (input.location != null && { location: input.location })), (input.sourceVersion != null && { sourceVersion: input.sourceVersion })), (input.versionControl != null && { versionControl: input.versionControl }));
2284
2250
  };
2285
2251
  var serializeAws_restJson1SourceCodeList = function (input, context) {
2286
2252
  return input
@@ -2293,8 +2259,7 @@ var serializeAws_restJson1SourceCodeList = function (input, context) {
2293
2259
  });
2294
2260
  };
2295
2261
  var serializeAws_restJson1StrategyOption = function (input, context) {
2296
- return __assign(__assign(__assign(__assign({}, (input.isPreferred !== undefined && input.isPreferred !== null && { isPreferred: input.isPreferred })), (input.strategy !== undefined && input.strategy !== null && { strategy: input.strategy })), (input.targetDestination !== undefined &&
2297
- input.targetDestination !== null && { targetDestination: input.targetDestination })), (input.toolName !== undefined && input.toolName !== null && { toolName: input.toolName }));
2262
+ return __assign(__assign(__assign(__assign({}, (input.isPreferred != null && { isPreferred: input.isPreferred })), (input.strategy != null && { strategy: input.strategy })), (input.targetDestination != null && { targetDestination: input.targetDestination })), (input.toolName != null && { toolName: input.toolName }));
2298
2263
  };
2299
2264
  var serializeAws_restJson1TargetDatabaseEngines = function (input, context) {
2300
2265
  return input
@@ -2315,33 +2280,33 @@ var deserializeAws_restJson1AntipatternSeveritySummary = function (output, conte
2315
2280
  var deserializeAws_restJson1ApplicationComponentDetail = function (output, context) {
2316
2281
  return {
2317
2282
  analysisStatus: __expectString(output.analysisStatus),
2318
- antipatternReportS3Object: output.antipatternReportS3Object !== undefined && output.antipatternReportS3Object !== null
2283
+ antipatternReportS3Object: output.antipatternReportS3Object != null
2319
2284
  ? deserializeAws_restJson1S3Object(output.antipatternReportS3Object, context)
2320
2285
  : undefined,
2321
2286
  antipatternReportStatus: __expectString(output.antipatternReportStatus),
2322
2287
  antipatternReportStatusMessage: __expectString(output.antipatternReportStatusMessage),
2323
2288
  appType: __expectString(output.appType),
2324
2289
  associatedServerId: __expectString(output.associatedServerId),
2325
- databaseConfigDetail: output.databaseConfigDetail !== undefined && output.databaseConfigDetail !== null
2290
+ databaseConfigDetail: output.databaseConfigDetail != null
2326
2291
  ? deserializeAws_restJson1DatabaseConfigDetail(output.databaseConfigDetail, context)
2327
2292
  : undefined,
2328
2293
  id: __expectString(output.id),
2329
2294
  inclusionStatus: __expectString(output.inclusionStatus),
2330
- lastAnalyzedTimestamp: output.lastAnalyzedTimestamp !== undefined && output.lastAnalyzedTimestamp !== null
2295
+ lastAnalyzedTimestamp: output.lastAnalyzedTimestamp != null
2331
2296
  ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.lastAnalyzedTimestamp)))
2332
2297
  : undefined,
2333
- listAntipatternSeveritySummary: output.listAntipatternSeveritySummary !== undefined && output.listAntipatternSeveritySummary !== null
2298
+ listAntipatternSeveritySummary: output.listAntipatternSeveritySummary != null
2334
2299
  ? deserializeAws_restJson1ListAntipatternSeveritySummary(output.listAntipatternSeveritySummary, context)
2335
2300
  : undefined,
2336
2301
  moreServerAssociationExists: __expectBoolean(output.moreServerAssociationExists),
2337
2302
  name: __expectString(output.name),
2338
2303
  osDriver: __expectString(output.osDriver),
2339
2304
  osVersion: __expectString(output.osVersion),
2340
- recommendationSet: output.recommendationSet !== undefined && output.recommendationSet !== null
2305
+ recommendationSet: output.recommendationSet != null
2341
2306
  ? deserializeAws_restJson1RecommendationSet(output.recommendationSet, context)
2342
2307
  : undefined,
2343
2308
  resourceSubType: __expectString(output.resourceSubType),
2344
- sourceCodeRepositories: output.sourceCodeRepositories !== undefined && output.sourceCodeRepositories !== null
2309
+ sourceCodeRepositories: output.sourceCodeRepositories != null
2345
2310
  ? deserializeAws_restJson1SourceCodeRepositories(output.sourceCodeRepositories, context)
2346
2311
  : undefined,
2347
2312
  statusMessage: __expectString(output.statusMessage),
@@ -2372,7 +2337,7 @@ var deserializeAws_restJson1ApplicationComponentStrategies = function (output, c
2372
2337
  var deserializeAws_restJson1ApplicationComponentStrategy = function (output, context) {
2373
2338
  return {
2374
2339
  isPreferred: __expectBoolean(output.isPreferred),
2375
- recommendation: output.recommendation !== undefined && output.recommendation !== null
2340
+ recommendation: output.recommendation != null
2376
2341
  ? deserializeAws_restJson1RecommendationSet(output.recommendation, context)
2377
2342
  : undefined,
2378
2343
  status: __expectString(output.status),
@@ -2386,35 +2351,34 @@ var deserializeAws_restJson1ApplicationComponentSummary = function (output, cont
2386
2351
  };
2387
2352
  var deserializeAws_restJson1ApplicationPreferences = function (output, context) {
2388
2353
  return {
2389
- managementPreference: output.managementPreference !== undefined && output.managementPreference !== null
2354
+ managementPreference: output.managementPreference != null
2390
2355
  ? deserializeAws_restJson1ManagementPreference(__expectUnion(output.managementPreference), context)
2391
2356
  : undefined,
2392
2357
  };
2393
2358
  };
2394
2359
  var deserializeAws_restJson1AssessmentSummary = function (output, context) {
2395
2360
  return {
2396
- antipatternReportS3Object: output.antipatternReportS3Object !== undefined && output.antipatternReportS3Object !== null
2361
+ antipatternReportS3Object: output.antipatternReportS3Object != null
2397
2362
  ? deserializeAws_restJson1S3Object(output.antipatternReportS3Object, context)
2398
2363
  : undefined,
2399
2364
  antipatternReportStatus: __expectString(output.antipatternReportStatus),
2400
2365
  antipatternReportStatusMessage: __expectString(output.antipatternReportStatusMessage),
2401
- lastAnalyzedTimestamp: output.lastAnalyzedTimestamp !== undefined && output.lastAnalyzedTimestamp !== null
2366
+ lastAnalyzedTimestamp: output.lastAnalyzedTimestamp != null
2402
2367
  ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.lastAnalyzedTimestamp)))
2403
2368
  : undefined,
2404
- listAntipatternSeveritySummary: output.listAntipatternSeveritySummary !== undefined && output.listAntipatternSeveritySummary !== null
2369
+ listAntipatternSeveritySummary: output.listAntipatternSeveritySummary != null
2405
2370
  ? deserializeAws_restJson1ListAntipatternSeveritySummary(output.listAntipatternSeveritySummary, context)
2406
2371
  : undefined,
2407
- listApplicationComponentStrategySummary: output.listApplicationComponentStrategySummary !== undefined &&
2408
- output.listApplicationComponentStrategySummary !== null
2372
+ listApplicationComponentStrategySummary: output.listApplicationComponentStrategySummary != null
2409
2373
  ? deserializeAws_restJson1ListStrategySummary(output.listApplicationComponentStrategySummary, context)
2410
2374
  : undefined,
2411
- listApplicationComponentSummary: output.listApplicationComponentSummary !== undefined && output.listApplicationComponentSummary !== null
2375
+ listApplicationComponentSummary: output.listApplicationComponentSummary != null
2412
2376
  ? deserializeAws_restJson1ListApplicationComponentSummary(output.listApplicationComponentSummary, context)
2413
2377
  : undefined,
2414
- listServerStrategySummary: output.listServerStrategySummary !== undefined && output.listServerStrategySummary !== null
2378
+ listServerStrategySummary: output.listServerStrategySummary != null
2415
2379
  ? deserializeAws_restJson1ListStrategySummary(output.listServerStrategySummary, context)
2416
2380
  : undefined,
2417
- listServerSummary: output.listServerSummary !== undefined && output.listServerSummary !== null
2381
+ listServerSummary: output.listServerSummary != null
2418
2382
  ? deserializeAws_restJson1ListServerSummary(output.listServerSummary, context)
2419
2383
  : undefined,
2420
2384
  };
@@ -2449,7 +2413,7 @@ var deserializeAws_restJson1AssociatedServerIDs = function (output, context) {
2449
2413
  };
2450
2414
  var deserializeAws_restJson1AwsManagedResources = function (output, context) {
2451
2415
  return {
2452
- targetDestination: output.targetDestination !== undefined && output.targetDestination !== null
2416
+ targetDestination: output.targetDestination != null
2453
2417
  ? deserializeAws_restJson1AwsManagedTargetDestinations(output.targetDestination, context)
2454
2418
  : undefined,
2455
2419
  };
@@ -2521,29 +2485,27 @@ var deserializeAws_restJson1DatabaseMigrationPreference = function (output, cont
2521
2485
  var deserializeAws_restJson1DatabasePreferences = function (output, context) {
2522
2486
  return {
2523
2487
  databaseManagementPreference: __expectString(output.databaseManagementPreference),
2524
- databaseMigrationPreference: output.databaseMigrationPreference !== undefined && output.databaseMigrationPreference !== null
2488
+ databaseMigrationPreference: output.databaseMigrationPreference != null
2525
2489
  ? deserializeAws_restJson1DatabaseMigrationPreference(__expectUnion(output.databaseMigrationPreference), context)
2526
2490
  : undefined,
2527
2491
  };
2528
2492
  };
2529
2493
  var deserializeAws_restJson1DataCollectionDetails = function (output, context) {
2530
2494
  return {
2531
- completionTime: output.completionTime !== undefined && output.completionTime !== null
2495
+ completionTime: output.completionTime != null
2532
2496
  ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.completionTime)))
2533
2497
  : undefined,
2534
2498
  failed: __expectInt32(output.failed),
2535
2499
  inProgress: __expectInt32(output.inProgress),
2536
2500
  servers: __expectInt32(output.servers),
2537
- startTime: output.startTime !== undefined && output.startTime !== null
2538
- ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.startTime)))
2539
- : undefined,
2501
+ startTime: output.startTime != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.startTime))) : undefined,
2540
2502
  status: __expectString(output.status),
2541
2503
  success: __expectInt32(output.success),
2542
2504
  };
2543
2505
  };
2544
2506
  var deserializeAws_restJson1Heterogeneous = function (output, context) {
2545
2507
  return {
2546
- targetDatabaseEngine: output.targetDatabaseEngine !== undefined && output.targetDatabaseEngine !== null
2508
+ targetDatabaseEngine: output.targetDatabaseEngine != null
2547
2509
  ? deserializeAws_restJson1HeterogeneousTargetDatabaseEngines(output.targetDatabaseEngine, context)
2548
2510
  : undefined,
2549
2511
  };
@@ -2561,7 +2523,7 @@ var deserializeAws_restJson1HeterogeneousTargetDatabaseEngines = function (outpu
2561
2523
  };
2562
2524
  var deserializeAws_restJson1Homogeneous = function (output, context) {
2563
2525
  return {
2564
- targetDatabaseEngine: output.targetDatabaseEngine !== undefined && output.targetDatabaseEngine !== null
2526
+ targetDatabaseEngine: output.targetDatabaseEngine != null
2565
2527
  ? deserializeAws_restJson1HomogeneousTargetDatabaseEngines(output.targetDatabaseEngine, context)
2566
2528
  : undefined,
2567
2529
  };
@@ -2579,7 +2541,7 @@ var deserializeAws_restJson1HomogeneousTargetDatabaseEngines = function (output,
2579
2541
  };
2580
2542
  var deserializeAws_restJson1ImportFileTaskInformation = function (output, context) {
2581
2543
  return {
2582
- completionTime: output.completionTime !== undefined && output.completionTime !== null
2544
+ completionTime: output.completionTime != null
2583
2545
  ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.completionTime)))
2584
2546
  : undefined,
2585
2547
  id: __expectString(output.id),
@@ -2588,9 +2550,7 @@ var deserializeAws_restJson1ImportFileTaskInformation = function (output, contex
2588
2550
  inputS3Key: __expectString(output.inputS3Key),
2589
2551
  numberOfRecordsFailed: __expectInt32(output.numberOfRecordsFailed),
2590
2552
  numberOfRecordsSuccess: __expectInt32(output.numberOfRecordsSuccess),
2591
- startTime: output.startTime !== undefined && output.startTime !== null
2592
- ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.startTime)))
2593
- : undefined,
2553
+ startTime: output.startTime != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.startTime))) : undefined,
2594
2554
  status: __expectString(output.status),
2595
2555
  statusReportS3Bucket: __expectString(output.statusReportS3Bucket),
2596
2556
  statusReportS3Key: __expectString(output.statusReportS3Key),
@@ -2690,14 +2650,14 @@ var deserializeAws_restJson1NetworkInfoList = function (output, context) {
2690
2650
  };
2691
2651
  var deserializeAws_restJson1NoDatabaseMigrationPreference = function (output, context) {
2692
2652
  return {
2693
- targetDatabaseEngine: output.targetDatabaseEngine !== undefined && output.targetDatabaseEngine !== null
2653
+ targetDatabaseEngine: output.targetDatabaseEngine != null
2694
2654
  ? deserializeAws_restJson1TargetDatabaseEngines(output.targetDatabaseEngine, context)
2695
2655
  : undefined,
2696
2656
  };
2697
2657
  };
2698
2658
  var deserializeAws_restJson1NoManagementPreference = function (output, context) {
2699
2659
  return {
2700
- targetDestination: output.targetDestination !== undefined && output.targetDestination !== null
2660
+ targetDestination: output.targetDestination != null
2701
2661
  ? deserializeAws_restJson1NoPreferenceTargetDestinations(output.targetDestination, context)
2702
2662
  : undefined,
2703
2663
  };
@@ -2721,23 +2681,17 @@ var deserializeAws_restJson1OSInfo = function (output, context) {
2721
2681
  };
2722
2682
  var deserializeAws_restJson1PrioritizeBusinessGoals = function (output, context) {
2723
2683
  return {
2724
- businessGoals: output.businessGoals !== undefined && output.businessGoals !== null
2725
- ? deserializeAws_restJson1BusinessGoals(output.businessGoals, context)
2726
- : undefined,
2684
+ businessGoals: output.businessGoals != null ? deserializeAws_restJson1BusinessGoals(output.businessGoals, context) : undefined,
2727
2685
  };
2728
2686
  };
2729
2687
  var deserializeAws_restJson1RecommendationReportDetails = function (output, context) {
2730
2688
  return {
2731
- completionTime: output.completionTime !== undefined && output.completionTime !== null
2689
+ completionTime: output.completionTime != null
2732
2690
  ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.completionTime)))
2733
2691
  : undefined,
2734
2692
  s3Bucket: __expectString(output.s3Bucket),
2735
- s3Keys: output.s3Keys !== undefined && output.s3Keys !== null
2736
- ? deserializeAws_restJson1S3Keys(output.s3Keys, context)
2737
- : undefined,
2738
- startTime: output.startTime !== undefined && output.startTime !== null
2739
- ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.startTime)))
2740
- : undefined,
2693
+ s3Keys: output.s3Keys != null ? deserializeAws_restJson1S3Keys(output.s3Keys, context) : undefined,
2694
+ startTime: output.startTime != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.startTime))) : undefined,
2741
2695
  status: __expectString(output.status),
2742
2696
  statusMessage: __expectString(output.statusMessage),
2743
2697
  };
@@ -2746,7 +2700,7 @@ var deserializeAws_restJson1RecommendationSet = function (output, context) {
2746
2700
  return {
2747
2701
  strategy: __expectString(output.strategy),
2748
2702
  targetDestination: __expectString(output.targetDestination),
2749
- transformationTool: output.transformationTool !== undefined && output.transformationTool !== null
2703
+ transformationTool: output.transformationTool != null
2750
2704
  ? deserializeAws_restJson1TransformationTool(output.transformationTool, context)
2751
2705
  : undefined,
2752
2706
  };
@@ -2770,7 +2724,7 @@ var deserializeAws_restJson1S3Object = function (output, context) {
2770
2724
  };
2771
2725
  var deserializeAws_restJson1SelfManageResources = function (output, context) {
2772
2726
  return {
2773
- targetDestination: output.targetDestination !== undefined && output.targetDestination !== null
2727
+ targetDestination: output.targetDestination != null
2774
2728
  ? deserializeAws_restJson1SelfManageTargetDestinations(output.targetDestination, context)
2775
2729
  : undefined,
2776
2730
  };
@@ -2788,31 +2742,29 @@ var deserializeAws_restJson1SelfManageTargetDestinations = function (output, con
2788
2742
  };
2789
2743
  var deserializeAws_restJson1ServerDetail = function (output, context) {
2790
2744
  return {
2791
- antipatternReportS3Object: output.antipatternReportS3Object !== undefined && output.antipatternReportS3Object !== null
2745
+ antipatternReportS3Object: output.antipatternReportS3Object != null
2792
2746
  ? deserializeAws_restJson1S3Object(output.antipatternReportS3Object, context)
2793
2747
  : undefined,
2794
2748
  antipatternReportStatus: __expectString(output.antipatternReportStatus),
2795
2749
  antipatternReportStatusMessage: __expectString(output.antipatternReportStatusMessage),
2796
- applicationComponentStrategySummary: output.applicationComponentStrategySummary !== undefined && output.applicationComponentStrategySummary !== null
2750
+ applicationComponentStrategySummary: output.applicationComponentStrategySummary != null
2797
2751
  ? deserializeAws_restJson1ListStrategySummary(output.applicationComponentStrategySummary, context)
2798
2752
  : undefined,
2799
2753
  dataCollectionStatus: __expectString(output.dataCollectionStatus),
2800
2754
  id: __expectString(output.id),
2801
- lastAnalyzedTimestamp: output.lastAnalyzedTimestamp !== undefined && output.lastAnalyzedTimestamp !== null
2755
+ lastAnalyzedTimestamp: output.lastAnalyzedTimestamp != null
2802
2756
  ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.lastAnalyzedTimestamp)))
2803
2757
  : undefined,
2804
- listAntipatternSeveritySummary: output.listAntipatternSeveritySummary !== undefined && output.listAntipatternSeveritySummary !== null
2758
+ listAntipatternSeveritySummary: output.listAntipatternSeveritySummary != null
2805
2759
  ? deserializeAws_restJson1ListAntipatternSeveritySummary(output.listAntipatternSeveritySummary, context)
2806
2760
  : undefined,
2807
2761
  name: __expectString(output.name),
2808
- recommendationSet: output.recommendationSet !== undefined && output.recommendationSet !== null
2762
+ recommendationSet: output.recommendationSet != null
2809
2763
  ? deserializeAws_restJson1RecommendationSet(output.recommendationSet, context)
2810
2764
  : undefined,
2811
2765
  serverType: __expectString(output.serverType),
2812
2766
  statusMessage: __expectString(output.statusMessage),
2813
- systemInfo: output.systemInfo !== undefined && output.systemInfo !== null
2814
- ? deserializeAws_restJson1SystemInfo(output.systemInfo, context)
2815
- : undefined,
2767
+ systemInfo: output.systemInfo != null ? deserializeAws_restJson1SystemInfo(output.systemInfo, context) : undefined,
2816
2768
  };
2817
2769
  };
2818
2770
  var deserializeAws_restJson1ServerDetails = function (output, context) {
@@ -2841,7 +2793,7 @@ var deserializeAws_restJson1ServerStrategy = function (output, context) {
2841
2793
  return {
2842
2794
  isPreferred: __expectBoolean(output.isPreferred),
2843
2795
  numberOfApplicationComponents: __expectInt32(output.numberOfApplicationComponents),
2844
- recommendation: output.recommendation !== undefined && output.recommendation !== null
2796
+ recommendation: output.recommendation != null
2845
2797
  ? deserializeAws_restJson1RecommendationSet(output.recommendation, context)
2846
2798
  : undefined,
2847
2799
  status: __expectString(output.status),
@@ -2881,12 +2833,10 @@ var deserializeAws_restJson1SystemInfo = function (output, context) {
2881
2833
  return {
2882
2834
  cpuArchitecture: __expectString(output.cpuArchitecture),
2883
2835
  fileSystemType: __expectString(output.fileSystemType),
2884
- networkInfoList: output.networkInfoList !== undefined && output.networkInfoList !== null
2836
+ networkInfoList: output.networkInfoList != null
2885
2837
  ? deserializeAws_restJson1NetworkInfoList(output.networkInfoList, context)
2886
2838
  : undefined,
2887
- osInfo: output.osInfo !== undefined && output.osInfo !== null
2888
- ? deserializeAws_restJson1OSInfo(output.osInfo, context)
2889
- : undefined,
2839
+ osInfo: output.osInfo != null ? deserializeAws_restJson1OSInfo(output.osInfo, context) : undefined,
2890
2840
  };
2891
2841
  };
2892
2842
  var deserializeAws_restJson1TargetDatabaseEngines = function (output, context) {
@@ -2945,6 +2895,9 @@ var loadRestJsonErrorCode = function (output, data) {
2945
2895
  var findKey = function (object, key) { return Object.keys(object).find(function (k) { return k.toLowerCase() === key.toLowerCase(); }); };
2946
2896
  var sanitizeErrorCode = function (rawValue) {
2947
2897
  var cleanValue = rawValue;
2898
+ if (typeof cleanValue === "number") {
2899
+ cleanValue = cleanValue.toString();
2900
+ }
2948
2901
  if (cleanValue.indexOf(":") >= 0) {
2949
2902
  cleanValue = cleanValue.split(":")[0];
2950
2903
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-migrationhubstrategy",
3
3
  "description": "AWS SDK for JavaScript Migrationhubstrategy Client for Node.js, Browser and React Native",
4
- "version": "3.121.0",
4
+ "version": "3.130.0",
5
5
  "scripts": {
6
6
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
7
7
  "build:cjs": "tsc -p tsconfig.cjs.json",
@@ -18,35 +18,35 @@
18
18
  "dependencies": {
19
19
  "@aws-crypto/sha256-browser": "2.0.0",
20
20
  "@aws-crypto/sha256-js": "2.0.0",
21
- "@aws-sdk/client-sts": "3.121.0",
22
- "@aws-sdk/config-resolver": "3.110.0",
23
- "@aws-sdk/credential-provider-node": "3.121.0",
24
- "@aws-sdk/fetch-http-handler": "3.110.0",
25
- "@aws-sdk/hash-node": "3.110.0",
26
- "@aws-sdk/invalid-dependency": "3.110.0",
27
- "@aws-sdk/middleware-content-length": "3.110.0",
28
- "@aws-sdk/middleware-host-header": "3.110.0",
29
- "@aws-sdk/middleware-logger": "3.110.0",
30
- "@aws-sdk/middleware-recursion-detection": "3.110.0",
31
- "@aws-sdk/middleware-retry": "3.118.1",
32
- "@aws-sdk/middleware-serde": "3.110.0",
33
- "@aws-sdk/middleware-signing": "3.110.0",
34
- "@aws-sdk/middleware-stack": "3.110.0",
35
- "@aws-sdk/middleware-user-agent": "3.110.0",
36
- "@aws-sdk/node-config-provider": "3.110.0",
37
- "@aws-sdk/node-http-handler": "3.118.1",
38
- "@aws-sdk/protocol-http": "3.110.0",
39
- "@aws-sdk/smithy-client": "3.110.0",
40
- "@aws-sdk/types": "3.110.0",
41
- "@aws-sdk/url-parser": "3.110.0",
21
+ "@aws-sdk/client-sts": "3.130.0",
22
+ "@aws-sdk/config-resolver": "3.130.0",
23
+ "@aws-sdk/credential-provider-node": "3.130.0",
24
+ "@aws-sdk/fetch-http-handler": "3.127.0",
25
+ "@aws-sdk/hash-node": "3.127.0",
26
+ "@aws-sdk/invalid-dependency": "3.127.0",
27
+ "@aws-sdk/middleware-content-length": "3.127.0",
28
+ "@aws-sdk/middleware-host-header": "3.127.0",
29
+ "@aws-sdk/middleware-logger": "3.127.0",
30
+ "@aws-sdk/middleware-recursion-detection": "3.127.0",
31
+ "@aws-sdk/middleware-retry": "3.127.0",
32
+ "@aws-sdk/middleware-serde": "3.127.0",
33
+ "@aws-sdk/middleware-signing": "3.130.0",
34
+ "@aws-sdk/middleware-stack": "3.127.0",
35
+ "@aws-sdk/middleware-user-agent": "3.127.0",
36
+ "@aws-sdk/node-config-provider": "3.127.0",
37
+ "@aws-sdk/node-http-handler": "3.127.0",
38
+ "@aws-sdk/protocol-http": "3.127.0",
39
+ "@aws-sdk/smithy-client": "3.127.0",
40
+ "@aws-sdk/types": "3.127.0",
41
+ "@aws-sdk/url-parser": "3.127.0",
42
42
  "@aws-sdk/util-base64-browser": "3.109.0",
43
43
  "@aws-sdk/util-base64-node": "3.55.0",
44
44
  "@aws-sdk/util-body-length-browser": "3.55.0",
45
45
  "@aws-sdk/util-body-length-node": "3.55.0",
46
- "@aws-sdk/util-defaults-mode-browser": "3.110.0",
47
- "@aws-sdk/util-defaults-mode-node": "3.110.0",
48
- "@aws-sdk/util-user-agent-browser": "3.110.0",
49
- "@aws-sdk/util-user-agent-node": "3.118.0",
46
+ "@aws-sdk/util-defaults-mode-browser": "3.127.0",
47
+ "@aws-sdk/util-defaults-mode-node": "3.130.0",
48
+ "@aws-sdk/util-user-agent-browser": "3.127.0",
49
+ "@aws-sdk/util-user-agent-node": "3.127.0",
50
50
  "@aws-sdk/util-utf8-browser": "3.109.0",
51
51
  "@aws-sdk/util-utf8-node": "3.109.0",
52
52
  "tslib": "^2.3.1"