@aws-sdk/client-migrationhubstrategy 3.224.0 → 3.227.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
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.deserializeAws_restJson1UpdateServerConfigCommand = exports.deserializeAws_restJson1UpdateApplicationComponentConfigCommand = exports.deserializeAws_restJson1StopAssessmentCommand = exports.deserializeAws_restJson1StartRecommendationReportGenerationCommand = exports.deserializeAws_restJson1StartImportFileTaskCommand = exports.deserializeAws_restJson1StartAssessmentCommand = exports.deserializeAws_restJson1PutPortfolioPreferencesCommand = exports.deserializeAws_restJson1ListServersCommand = exports.deserializeAws_restJson1ListImportFileTaskCommand = exports.deserializeAws_restJson1ListCollectorsCommand = exports.deserializeAws_restJson1ListApplicationComponentsCommand = exports.deserializeAws_restJson1GetServerStrategiesCommand = exports.deserializeAws_restJson1GetServerDetailsCommand = exports.deserializeAws_restJson1GetRecommendationReportDetailsCommand = exports.deserializeAws_restJson1GetPortfolioSummaryCommand = exports.deserializeAws_restJson1GetPortfolioPreferencesCommand = exports.deserializeAws_restJson1GetImportFileTaskCommand = exports.deserializeAws_restJson1GetAssessmentCommand = exports.deserializeAws_restJson1GetApplicationComponentStrategiesCommand = exports.deserializeAws_restJson1GetApplicationComponentDetailsCommand = exports.serializeAws_restJson1UpdateServerConfigCommand = exports.serializeAws_restJson1UpdateApplicationComponentConfigCommand = exports.serializeAws_restJson1StopAssessmentCommand = exports.serializeAws_restJson1StartRecommendationReportGenerationCommand = exports.serializeAws_restJson1StartImportFileTaskCommand = exports.serializeAws_restJson1StartAssessmentCommand = exports.serializeAws_restJson1PutPortfolioPreferencesCommand = exports.serializeAws_restJson1ListServersCommand = exports.serializeAws_restJson1ListImportFileTaskCommand = exports.serializeAws_restJson1ListCollectorsCommand = exports.serializeAws_restJson1ListApplicationComponentsCommand = exports.serializeAws_restJson1GetServerStrategiesCommand = exports.serializeAws_restJson1GetServerDetailsCommand = exports.serializeAws_restJson1GetRecommendationReportDetailsCommand = exports.serializeAws_restJson1GetPortfolioSummaryCommand = exports.serializeAws_restJson1GetPortfolioPreferencesCommand = exports.serializeAws_restJson1GetImportFileTaskCommand = exports.serializeAws_restJson1GetAssessmentCommand = exports.serializeAws_restJson1GetApplicationComponentStrategiesCommand = exports.serializeAws_restJson1GetApplicationComponentDetailsCommand = void 0;
3
+ exports.deserializeAws_restJson1UpdateServerConfigCommand = exports.deserializeAws_restJson1UpdateApplicationComponentConfigCommand = exports.deserializeAws_restJson1StopAssessmentCommand = exports.deserializeAws_restJson1StartRecommendationReportGenerationCommand = exports.deserializeAws_restJson1StartImportFileTaskCommand = exports.deserializeAws_restJson1StartAssessmentCommand = exports.deserializeAws_restJson1PutPortfolioPreferencesCommand = exports.deserializeAws_restJson1ListServersCommand = exports.deserializeAws_restJson1ListImportFileTaskCommand = exports.deserializeAws_restJson1ListCollectorsCommand = exports.deserializeAws_restJson1ListApplicationComponentsCommand = exports.deserializeAws_restJson1GetServerStrategiesCommand = exports.deserializeAws_restJson1GetServerDetailsCommand = exports.deserializeAws_restJson1GetRecommendationReportDetailsCommand = exports.deserializeAws_restJson1GetPortfolioSummaryCommand = exports.deserializeAws_restJson1GetPortfolioPreferencesCommand = exports.deserializeAws_restJson1GetLatestAssessmentIdCommand = exports.deserializeAws_restJson1GetImportFileTaskCommand = exports.deserializeAws_restJson1GetAssessmentCommand = exports.deserializeAws_restJson1GetApplicationComponentStrategiesCommand = exports.deserializeAws_restJson1GetApplicationComponentDetailsCommand = exports.serializeAws_restJson1UpdateServerConfigCommand = exports.serializeAws_restJson1UpdateApplicationComponentConfigCommand = exports.serializeAws_restJson1StopAssessmentCommand = exports.serializeAws_restJson1StartRecommendationReportGenerationCommand = exports.serializeAws_restJson1StartImportFileTaskCommand = exports.serializeAws_restJson1StartAssessmentCommand = exports.serializeAws_restJson1PutPortfolioPreferencesCommand = exports.serializeAws_restJson1ListServersCommand = exports.serializeAws_restJson1ListImportFileTaskCommand = exports.serializeAws_restJson1ListCollectorsCommand = exports.serializeAws_restJson1ListApplicationComponentsCommand = exports.serializeAws_restJson1GetServerStrategiesCommand = exports.serializeAws_restJson1GetServerDetailsCommand = exports.serializeAws_restJson1GetRecommendationReportDetailsCommand = exports.serializeAws_restJson1GetPortfolioSummaryCommand = exports.serializeAws_restJson1GetPortfolioPreferencesCommand = exports.serializeAws_restJson1GetLatestAssessmentIdCommand = exports.serializeAws_restJson1GetImportFileTaskCommand = exports.serializeAws_restJson1GetAssessmentCommand = exports.serializeAws_restJson1GetApplicationComponentStrategiesCommand = exports.serializeAws_restJson1GetApplicationComponentDetailsCommand = void 0;
4
4
  const protocol_http_1 = require("@aws-sdk/protocol-http");
5
5
  const smithy_client_1 = require("@aws-sdk/smithy-client");
6
6
  const MigrationHubStrategyServiceException_1 = require("../models/MigrationHubStrategyServiceException");
@@ -75,6 +75,25 @@ const serializeAws_restJson1GetImportFileTaskCommand = async (input, context) =>
75
75
  });
76
76
  };
77
77
  exports.serializeAws_restJson1GetImportFileTaskCommand = serializeAws_restJson1GetImportFileTaskCommand;
78
+ const serializeAws_restJson1GetLatestAssessmentIdCommand = async (input, context) => {
79
+ const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
80
+ const headers = {
81
+ "content-type": "application/json",
82
+ };
83
+ const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/get-latest-assessment-id";
84
+ let body;
85
+ body = "";
86
+ return new protocol_http_1.HttpRequest({
87
+ protocol,
88
+ hostname,
89
+ port,
90
+ method: "GET",
91
+ headers,
92
+ path: resolvedPath,
93
+ body,
94
+ });
95
+ };
96
+ exports.serializeAws_restJson1GetLatestAssessmentIdCommand = serializeAws_restJson1GetLatestAssessmentIdCommand;
78
97
  const serializeAws_restJson1GetPortfolioPreferencesCommand = async (input, context) => {
79
98
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
80
99
  const headers = {
@@ -273,6 +292,7 @@ const serializeAws_restJson1PutPortfolioPreferencesCommand = async (input, conte
273
292
  const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/put-portfolio-preferences";
274
293
  let body;
275
294
  body = JSON.stringify({
295
+ ...(input.applicationMode != null && { applicationMode: input.applicationMode }),
276
296
  ...(input.applicationPreferences != null && {
277
297
  applicationPreferences: serializeAws_restJson1ApplicationPreferences(input.applicationPreferences, context),
278
298
  }),
@@ -302,6 +322,9 @@ const serializeAws_restJson1StartAssessmentCommand = async (input, context) => {
302
322
  const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/start-assessment";
303
323
  let body;
304
324
  body = JSON.stringify({
325
+ ...(input.assessmentTargets != null && {
326
+ assessmentTargets: serializeAws_restJson1AssessmentTargets(input.assessmentTargets, context),
327
+ }),
305
328
  ...(input.s3bucketForAnalysisData != null && { s3bucketForAnalysisData: input.s3bucketForAnalysisData }),
306
329
  ...(input.s3bucketForReportData != null && { s3bucketForReportData: input.s3bucketForReportData }),
307
330
  });
@@ -393,7 +416,9 @@ const serializeAws_restJson1UpdateApplicationComponentConfigCommand = async (inp
393
416
  const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/update-applicationcomponent-config";
394
417
  let body;
395
418
  body = JSON.stringify({
419
+ ...(input.appType != null && { appType: input.appType }),
396
420
  ...(input.applicationComponentId != null && { applicationComponentId: input.applicationComponentId }),
421
+ ...(input.configureOnly != null && { configureOnly: input.configureOnly }),
397
422
  ...(input.inclusionStatus != null && { inclusionStatus: input.inclusionStatus }),
398
423
  ...(input.secretsManagerKey != null && { secretsManagerKey: input.secretsManagerKey }),
399
424
  ...(input.sourceCodeList != null && {
@@ -535,6 +560,9 @@ const deserializeAws_restJson1GetAssessmentCommand = async (output, context) =>
535
560
  $metadata: deserializeMetadata(output),
536
561
  });
537
562
  const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
563
+ if (data.assessmentTargets != null) {
564
+ contents.assessmentTargets = deserializeAws_restJson1AssessmentTargets(data.assessmentTargets, context);
565
+ }
538
566
  if (data.dataCollectionDetails != null) {
539
567
  contents.dataCollectionDetails = deserializeAws_restJson1DataCollectionDetails(data.dataCollectionDetails, context);
540
568
  }
@@ -649,6 +677,49 @@ const deserializeAws_restJson1GetImportFileTaskCommandError = async (output, con
649
677
  });
650
678
  }
651
679
  };
680
+ const deserializeAws_restJson1GetLatestAssessmentIdCommand = async (output, context) => {
681
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
682
+ return deserializeAws_restJson1GetLatestAssessmentIdCommandError(output, context);
683
+ }
684
+ const contents = map({
685
+ $metadata: deserializeMetadata(output),
686
+ });
687
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
688
+ if (data.id != null) {
689
+ contents.id = (0, smithy_client_1.expectString)(data.id);
690
+ }
691
+ return contents;
692
+ };
693
+ exports.deserializeAws_restJson1GetLatestAssessmentIdCommand = deserializeAws_restJson1GetLatestAssessmentIdCommand;
694
+ const deserializeAws_restJson1GetLatestAssessmentIdCommandError = async (output, context) => {
695
+ const parsedOutput = {
696
+ ...output,
697
+ body: await parseErrorBody(output.body, context),
698
+ };
699
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
700
+ switch (errorCode) {
701
+ case "AccessDeniedException":
702
+ case "com.amazonaws.migrationhubstrategy#AccessDeniedException":
703
+ throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
704
+ case "DependencyException":
705
+ case "com.amazonaws.migrationhubstrategy#DependencyException":
706
+ throw await deserializeAws_restJson1DependencyExceptionResponse(parsedOutput, context);
707
+ case "InternalServerException":
708
+ case "com.amazonaws.migrationhubstrategy#InternalServerException":
709
+ throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
710
+ case "ValidationException":
711
+ case "com.amazonaws.migrationhubstrategy#ValidationException":
712
+ throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
713
+ default:
714
+ const parsedBody = parsedOutput.body;
715
+ (0, smithy_client_1.throwDefaultError)({
716
+ output,
717
+ parsedBody,
718
+ exceptionCtor: MigrationHubStrategyServiceException_1.MigrationHubStrategyServiceException,
719
+ errorCode,
720
+ });
721
+ }
722
+ };
652
723
  const deserializeAws_restJson1GetPortfolioPreferencesCommand = async (output, context) => {
653
724
  if (output.statusCode !== 200 && output.statusCode >= 300) {
654
725
  return deserializeAws_restJson1GetPortfolioPreferencesCommandError(output, context);
@@ -657,6 +728,9 @@ const deserializeAws_restJson1GetPortfolioPreferencesCommand = async (output, co
657
728
  $metadata: deserializeMetadata(output),
658
729
  });
659
730
  const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
731
+ if (data.applicationMode != null) {
732
+ contents.applicationMode = (0, smithy_client_1.expectString)(data.applicationMode);
733
+ }
660
734
  if (data.applicationPreferences != null) {
661
735
  contents.applicationPreferences = deserializeAws_restJson1ApplicationPreferences(data.applicationPreferences, context);
662
736
  }
@@ -1392,6 +1466,18 @@ const deserializeAws_restJson1ConflictExceptionResponse = async (parsedOutput, c
1392
1466
  });
1393
1467
  return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
1394
1468
  };
1469
+ const deserializeAws_restJson1DependencyExceptionResponse = async (parsedOutput, context) => {
1470
+ const contents = map({});
1471
+ const data = parsedOutput.body;
1472
+ if (data.message != null) {
1473
+ contents.message = (0, smithy_client_1.expectString)(data.message);
1474
+ }
1475
+ const exception = new models_0_1.DependencyException({
1476
+ $metadata: deserializeMetadata(parsedOutput),
1477
+ ...contents,
1478
+ });
1479
+ return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
1480
+ };
1395
1481
  const deserializeAws_restJson1InternalServerExceptionResponse = async (parsedOutput, context) => {
1396
1482
  const contents = map({});
1397
1483
  const data = parsedOutput.body;
@@ -1471,6 +1557,27 @@ const serializeAws_restJson1ApplicationPreferences = (input, context) => {
1471
1557
  }),
1472
1558
  };
1473
1559
  };
1560
+ const serializeAws_restJson1AssessmentTarget = (input, context) => {
1561
+ return {
1562
+ ...(input.condition != null && { condition: input.condition }),
1563
+ ...(input.name != null && { name: input.name }),
1564
+ ...(input.values != null && { values: serializeAws_restJson1AssessmentTargetValues(input.values, context) }),
1565
+ };
1566
+ };
1567
+ const serializeAws_restJson1AssessmentTargets = (input, context) => {
1568
+ return input
1569
+ .filter((e) => e != null)
1570
+ .map((entry) => {
1571
+ return serializeAws_restJson1AssessmentTarget(entry, context);
1572
+ });
1573
+ };
1574
+ const serializeAws_restJson1AssessmentTargetValues = (input, context) => {
1575
+ return input
1576
+ .filter((e) => e != null)
1577
+ .map((entry) => {
1578
+ return entry;
1579
+ });
1580
+ };
1474
1581
  const serializeAws_restJson1AwsManagedResources = (input, context) => {
1475
1582
  return {
1476
1583
  ...(input.targetDestination != null && {
@@ -1613,6 +1720,7 @@ const serializeAws_restJson1SelfManageTargetDestinations = (input, context) => {
1613
1720
  const serializeAws_restJson1SourceCode = (input, context) => {
1614
1721
  return {
1615
1722
  ...(input.location != null && { location: input.location }),
1723
+ ...(input.projectName != null && { projectName: input.projectName }),
1616
1724
  ...(input.sourceVersion != null && { sourceVersion: input.sourceVersion }),
1617
1725
  ...(input.versionControl != null && { versionControl: input.versionControl }),
1618
1726
  };
@@ -1654,6 +1762,7 @@ const deserializeAws_restJson1ApplicationComponentDetail = (output, context) =>
1654
1762
  antipatternReportStatus: (0, smithy_client_1.expectString)(output.antipatternReportStatus),
1655
1763
  antipatternReportStatusMessage: (0, smithy_client_1.expectString)(output.antipatternReportStatusMessage),
1656
1764
  appType: (0, smithy_client_1.expectString)(output.appType),
1765
+ appUnitError: output.appUnitError != null ? deserializeAws_restJson1AppUnitError(output.appUnitError, context) : undefined,
1657
1766
  associatedServerId: (0, smithy_client_1.expectString)(output.associatedServerId),
1658
1767
  databaseConfigDetail: output.databaseConfigDetail != null
1659
1768
  ? deserializeAws_restJson1DatabaseConfigDetail(output.databaseConfigDetail, context)
@@ -1674,6 +1783,8 @@ const deserializeAws_restJson1ApplicationComponentDetail = (output, context) =>
1674
1783
  ? deserializeAws_restJson1RecommendationSet(output.recommendationSet, context)
1675
1784
  : undefined,
1676
1785
  resourceSubType: (0, smithy_client_1.expectString)(output.resourceSubType),
1786
+ runtimeStatus: (0, smithy_client_1.expectString)(output.runtimeStatus),
1787
+ runtimeStatusMessage: (0, smithy_client_1.expectString)(output.runtimeStatusMessage),
1677
1788
  sourceCodeRepositories: output.sourceCodeRepositories != null
1678
1789
  ? deserializeAws_restJson1SourceCodeRepositories(output.sourceCodeRepositories, context)
1679
1790
  : undefined,
@@ -1691,6 +1802,12 @@ const deserializeAws_restJson1ApplicationComponentDetails = (output, context) =>
1691
1802
  });
1692
1803
  return retVal;
1693
1804
  };
1805
+ const deserializeAws_restJson1ApplicationComponentStatusSummary = (output, context) => {
1806
+ return {
1807
+ count: (0, smithy_client_1.expectInt32)(output.count),
1808
+ srcCodeOrDbAnalysisStatus: (0, smithy_client_1.expectString)(output.srcCodeOrDbAnalysisStatus),
1809
+ };
1810
+ };
1694
1811
  const deserializeAws_restJson1ApplicationComponentStrategies = (output, context) => {
1695
1812
  const retVal = (output || [])
1696
1813
  .filter((e) => e != null)
@@ -1724,6 +1841,11 @@ const deserializeAws_restJson1ApplicationPreferences = (output, context) => {
1724
1841
  : undefined,
1725
1842
  };
1726
1843
  };
1844
+ const deserializeAws_restJson1AppUnitError = (output, context) => {
1845
+ return {
1846
+ appUnitErrorCategory: (0, smithy_client_1.expectString)(output.appUnitErrorCategory),
1847
+ };
1848
+ };
1727
1849
  const deserializeAws_restJson1AssessmentSummary = (output, context) => {
1728
1850
  return {
1729
1851
  antipatternReportS3Object: output.antipatternReportS3Object != null
@@ -1737,12 +1859,18 @@ const deserializeAws_restJson1AssessmentSummary = (output, context) => {
1737
1859
  listAntipatternSeveritySummary: output.listAntipatternSeveritySummary != null
1738
1860
  ? deserializeAws_restJson1ListAntipatternSeveritySummary(output.listAntipatternSeveritySummary, context)
1739
1861
  : undefined,
1862
+ listApplicationComponentStatusSummary: output.listApplicationComponentStatusSummary != null
1863
+ ? deserializeAws_restJson1ListApplicationComponentStatusSummary(output.listApplicationComponentStatusSummary, context)
1864
+ : undefined,
1740
1865
  listApplicationComponentStrategySummary: output.listApplicationComponentStrategySummary != null
1741
1866
  ? deserializeAws_restJson1ListStrategySummary(output.listApplicationComponentStrategySummary, context)
1742
1867
  : undefined,
1743
1868
  listApplicationComponentSummary: output.listApplicationComponentSummary != null
1744
1869
  ? deserializeAws_restJson1ListApplicationComponentSummary(output.listApplicationComponentSummary, context)
1745
1870
  : undefined,
1871
+ listServerStatusSummary: output.listServerStatusSummary != null
1872
+ ? deserializeAws_restJson1ListServerStatusSummary(output.listServerStatusSummary, context)
1873
+ : undefined,
1746
1874
  listServerStrategySummary: output.listServerStrategySummary != null
1747
1875
  ? deserializeAws_restJson1ListStrategySummary(output.listServerStrategySummary, context)
1748
1876
  : undefined,
@@ -1751,6 +1879,35 @@ const deserializeAws_restJson1AssessmentSummary = (output, context) => {
1751
1879
  : undefined,
1752
1880
  };
1753
1881
  };
1882
+ const deserializeAws_restJson1AssessmentTarget = (output, context) => {
1883
+ return {
1884
+ condition: (0, smithy_client_1.expectString)(output.condition),
1885
+ name: (0, smithy_client_1.expectString)(output.name),
1886
+ values: output.values != null ? deserializeAws_restJson1AssessmentTargetValues(output.values, context) : undefined,
1887
+ };
1888
+ };
1889
+ const deserializeAws_restJson1AssessmentTargets = (output, context) => {
1890
+ const retVal = (output || [])
1891
+ .filter((e) => e != null)
1892
+ .map((entry) => {
1893
+ if (entry === null) {
1894
+ return null;
1895
+ }
1896
+ return deserializeAws_restJson1AssessmentTarget(entry, context);
1897
+ });
1898
+ return retVal;
1899
+ };
1900
+ const deserializeAws_restJson1AssessmentTargetValues = (output, context) => {
1901
+ const retVal = (output || [])
1902
+ .filter((e) => e != null)
1903
+ .map((entry) => {
1904
+ if (entry === null) {
1905
+ return null;
1906
+ }
1907
+ return (0, smithy_client_1.expectString)(entry);
1908
+ });
1909
+ return retVal;
1910
+ };
1754
1911
  const deserializeAws_restJson1AssociatedApplication = (output, context) => {
1755
1912
  return {
1756
1913
  id: (0, smithy_client_1.expectString)(output.id),
@@ -1810,6 +1967,9 @@ const deserializeAws_restJson1Collector = (output, context) => {
1810
1967
  collectorHealth: (0, smithy_client_1.expectString)(output.collectorHealth),
1811
1968
  collectorId: (0, smithy_client_1.expectString)(output.collectorId),
1812
1969
  collectorVersion: (0, smithy_client_1.expectString)(output.collectorVersion),
1970
+ configurationSummary: output.configurationSummary != null
1971
+ ? deserializeAws_restJson1ConfigurationSummary(output.configurationSummary, context)
1972
+ : undefined,
1813
1973
  hostName: (0, smithy_client_1.expectString)(output.hostName),
1814
1974
  ipAddress: (0, smithy_client_1.expectString)(output.ipAddress),
1815
1975
  lastActivityTimeStamp: (0, smithy_client_1.expectString)(output.lastActivityTimeStamp),
@@ -1827,6 +1987,25 @@ const deserializeAws_restJson1Collectors = (output, context) => {
1827
1987
  });
1828
1988
  return retVal;
1829
1989
  };
1990
+ const deserializeAws_restJson1ConfigurationSummary = (output, context) => {
1991
+ return {
1992
+ ipAddressBasedRemoteInfoList: output.ipAddressBasedRemoteInfoList != null
1993
+ ? deserializeAws_restJson1IPAddressBasedRemoteInfoList(output.ipAddressBasedRemoteInfoList, context)
1994
+ : undefined,
1995
+ pipelineInfoList: output.pipelineInfoList != null
1996
+ ? deserializeAws_restJson1PipelineInfoList(output.pipelineInfoList, context)
1997
+ : undefined,
1998
+ remoteSourceCodeAnalysisServerInfo: output.remoteSourceCodeAnalysisServerInfo != null
1999
+ ? deserializeAws_restJson1RemoteSourceCodeAnalysisServerInfo(output.remoteSourceCodeAnalysisServerInfo, context)
2000
+ : undefined,
2001
+ vcenterBasedRemoteInfoList: output.vcenterBasedRemoteInfoList != null
2002
+ ? deserializeAws_restJson1VcenterBasedRemoteInfoList(output.vcenterBasedRemoteInfoList, context)
2003
+ : undefined,
2004
+ versionControlInfoList: output.versionControlInfoList != null
2005
+ ? deserializeAws_restJson1VersionControlInfoList(output.versionControlInfoList, context)
2006
+ : undefined,
2007
+ };
2008
+ };
1830
2009
  const deserializeAws_restJson1DatabaseConfigDetail = (output, context) => {
1831
2010
  return {
1832
2011
  secretName: (0, smithy_client_1.expectString)(output.secretName),
@@ -1868,6 +2047,7 @@ const deserializeAws_restJson1DataCollectionDetails = (output, context) => {
1868
2047
  servers: (0, smithy_client_1.expectInt32)(output.servers),
1869
2048
  startTime: output.startTime != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.startTime))) : undefined,
1870
2049
  status: (0, smithy_client_1.expectString)(output.status),
2050
+ statusMessage: (0, smithy_client_1.expectString)(output.statusMessage),
1871
2051
  success: (0, smithy_client_1.expectInt32)(output.success),
1872
2052
  };
1873
2053
  };
@@ -1924,6 +2104,24 @@ const deserializeAws_restJson1ImportFileTaskInformation = (output, context) => {
1924
2104
  statusReportS3Key: (0, smithy_client_1.expectString)(output.statusReportS3Key),
1925
2105
  };
1926
2106
  };
2107
+ const deserializeAws_restJson1IPAddressBasedRemoteInfo = (output, context) => {
2108
+ return {
2109
+ authType: (0, smithy_client_1.expectString)(output.authType),
2110
+ ipAddressConfigurationTimeStamp: (0, smithy_client_1.expectString)(output.ipAddressConfigurationTimeStamp),
2111
+ osType: (0, smithy_client_1.expectString)(output.osType),
2112
+ };
2113
+ };
2114
+ const deserializeAws_restJson1IPAddressBasedRemoteInfoList = (output, context) => {
2115
+ const retVal = (output || [])
2116
+ .filter((e) => e != null)
2117
+ .map((entry) => {
2118
+ if (entry === null) {
2119
+ return null;
2120
+ }
2121
+ return deserializeAws_restJson1IPAddressBasedRemoteInfo(entry, context);
2122
+ });
2123
+ return retVal;
2124
+ };
1927
2125
  const deserializeAws_restJson1ListAntipatternSeveritySummary = (output, context) => {
1928
2126
  const retVal = (output || [])
1929
2127
  .filter((e) => e != null)
@@ -1935,6 +2133,17 @@ const deserializeAws_restJson1ListAntipatternSeveritySummary = (output, context)
1935
2133
  });
1936
2134
  return retVal;
1937
2135
  };
2136
+ const deserializeAws_restJson1ListApplicationComponentStatusSummary = (output, context) => {
2137
+ const retVal = (output || [])
2138
+ .filter((e) => e != null)
2139
+ .map((entry) => {
2140
+ if (entry === null) {
2141
+ return null;
2142
+ }
2143
+ return deserializeAws_restJson1ApplicationComponentStatusSummary(entry, context);
2144
+ });
2145
+ return retVal;
2146
+ };
1938
2147
  const deserializeAws_restJson1ListApplicationComponentSummary = (output, context) => {
1939
2148
  const retVal = (output || [])
1940
2149
  .filter((e) => e != null)
@@ -1957,6 +2166,17 @@ const deserializeAws_restJson1ListImportFileTaskInformation = (output, context)
1957
2166
  });
1958
2167
  return retVal;
1959
2168
  };
2169
+ const deserializeAws_restJson1ListServerStatusSummary = (output, context) => {
2170
+ const retVal = (output || [])
2171
+ .filter((e) => e != null)
2172
+ .map((entry) => {
2173
+ if (entry === null) {
2174
+ return null;
2175
+ }
2176
+ return deserializeAws_restJson1ServerStatusSummary(entry, context);
2177
+ });
2178
+ return retVal;
2179
+ };
1960
2180
  const deserializeAws_restJson1ListServerSummary = (output, context) => {
1961
2181
  const retVal = (output || [])
1962
2182
  .filter((e) => e != null)
@@ -2047,6 +2267,23 @@ const deserializeAws_restJson1OSInfo = (output, context) => {
2047
2267
  version: (0, smithy_client_1.expectString)(output.version),
2048
2268
  };
2049
2269
  };
2270
+ const deserializeAws_restJson1PipelineInfo = (output, context) => {
2271
+ return {
2272
+ pipelineConfigurationTimeStamp: (0, smithy_client_1.expectString)(output.pipelineConfigurationTimeStamp),
2273
+ pipelineType: (0, smithy_client_1.expectString)(output.pipelineType),
2274
+ };
2275
+ };
2276
+ const deserializeAws_restJson1PipelineInfoList = (output, context) => {
2277
+ const retVal = (output || [])
2278
+ .filter((e) => e != null)
2279
+ .map((entry) => {
2280
+ if (entry === null) {
2281
+ return null;
2282
+ }
2283
+ return deserializeAws_restJson1PipelineInfo(entry, context);
2284
+ });
2285
+ return retVal;
2286
+ };
2050
2287
  const deserializeAws_restJson1PrioritizeBusinessGoals = (output, context) => {
2051
2288
  return {
2052
2289
  businessGoals: output.businessGoals != null ? deserializeAws_restJson1BusinessGoals(output.businessGoals, context) : undefined,
@@ -2073,6 +2310,11 @@ const deserializeAws_restJson1RecommendationSet = (output, context) => {
2073
2310
  : undefined,
2074
2311
  };
2075
2312
  };
2313
+ const deserializeAws_restJson1RemoteSourceCodeAnalysisServerInfo = (output, context) => {
2314
+ return {
2315
+ remoteSourceCodeAnalysisServerConfigurationTimestamp: (0, smithy_client_1.expectString)(output.remoteSourceCodeAnalysisServerConfigurationTimestamp),
2316
+ };
2317
+ };
2076
2318
  const deserializeAws_restJson1S3Keys = (output, context) => {
2077
2319
  const retVal = (output || [])
2078
2320
  .filter((e) => e != null)
@@ -2130,6 +2372,7 @@ const deserializeAws_restJson1ServerDetail = (output, context) => {
2130
2372
  recommendationSet: output.recommendationSet != null
2131
2373
  ? deserializeAws_restJson1RecommendationSet(output.recommendationSet, context)
2132
2374
  : undefined,
2375
+ serverError: output.serverError != null ? deserializeAws_restJson1ServerError(output.serverError, context) : undefined,
2133
2376
  serverType: (0, smithy_client_1.expectString)(output.serverType),
2134
2377
  statusMessage: (0, smithy_client_1.expectString)(output.statusMessage),
2135
2378
  systemInfo: output.systemInfo != null ? deserializeAws_restJson1SystemInfo(output.systemInfo, context) : undefined,
@@ -2146,6 +2389,17 @@ const deserializeAws_restJson1ServerDetails = (output, context) => {
2146
2389
  });
2147
2390
  return retVal;
2148
2391
  };
2392
+ const deserializeAws_restJson1ServerError = (output, context) => {
2393
+ return {
2394
+ serverErrorCategory: (0, smithy_client_1.expectString)(output.serverErrorCategory),
2395
+ };
2396
+ };
2397
+ const deserializeAws_restJson1ServerStatusSummary = (output, context) => {
2398
+ return {
2399
+ count: (0, smithy_client_1.expectInt32)(output.count),
2400
+ runTimeAssessmentStatus: (0, smithy_client_1.expectString)(output.runTimeAssessmentStatus),
2401
+ };
2402
+ };
2149
2403
  const deserializeAws_restJson1ServerStrategies = (output, context) => {
2150
2404
  const retVal = (output || [])
2151
2405
  .filter((e) => e != null)
@@ -2187,6 +2441,7 @@ const deserializeAws_restJson1SourceCodeRepositories = (output, context) => {
2187
2441
  const deserializeAws_restJson1SourceCodeRepository = (output, context) => {
2188
2442
  return {
2189
2443
  branch: (0, smithy_client_1.expectString)(output.branch),
2444
+ projectName: (0, smithy_client_1.expectString)(output.projectName),
2190
2445
  repository: (0, smithy_client_1.expectString)(output.repository),
2191
2446
  versionControlType: (0, smithy_client_1.expectString)(output.versionControlType),
2192
2447
  };
@@ -2225,6 +2480,40 @@ const deserializeAws_restJson1TransformationTool = (output, context) => {
2225
2480
  tranformationToolInstallationLink: (0, smithy_client_1.expectString)(output.tranformationToolInstallationLink),
2226
2481
  };
2227
2482
  };
2483
+ const deserializeAws_restJson1VcenterBasedRemoteInfo = (output, context) => {
2484
+ return {
2485
+ osType: (0, smithy_client_1.expectString)(output.osType),
2486
+ vcenterConfigurationTimeStamp: (0, smithy_client_1.expectString)(output.vcenterConfigurationTimeStamp),
2487
+ };
2488
+ };
2489
+ const deserializeAws_restJson1VcenterBasedRemoteInfoList = (output, context) => {
2490
+ const retVal = (output || [])
2491
+ .filter((e) => e != null)
2492
+ .map((entry) => {
2493
+ if (entry === null) {
2494
+ return null;
2495
+ }
2496
+ return deserializeAws_restJson1VcenterBasedRemoteInfo(entry, context);
2497
+ });
2498
+ return retVal;
2499
+ };
2500
+ const deserializeAws_restJson1VersionControlInfo = (output, context) => {
2501
+ return {
2502
+ versionControlConfigurationTimeStamp: (0, smithy_client_1.expectString)(output.versionControlConfigurationTimeStamp),
2503
+ versionControlType: (0, smithy_client_1.expectString)(output.versionControlType),
2504
+ };
2505
+ };
2506
+ const deserializeAws_restJson1VersionControlInfoList = (output, context) => {
2507
+ const retVal = (output || [])
2508
+ .filter((e) => e != null)
2509
+ .map((entry) => {
2510
+ if (entry === null) {
2511
+ return null;
2512
+ }
2513
+ return deserializeAws_restJson1VersionControlInfo(entry, context);
2514
+ });
2515
+ return retVal;
2516
+ };
2228
2517
  const deserializeMetadata = (output) => ({
2229
2518
  httpStatusCode: output.statusCode,
2230
2519
  requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
@@ -2,6 +2,7 @@ import { GetApplicationComponentDetailsCommand, } from "./commands/GetApplicatio
2
2
  import { GetApplicationComponentStrategiesCommand, } from "./commands/GetApplicationComponentStrategiesCommand";
3
3
  import { GetAssessmentCommand, } from "./commands/GetAssessmentCommand";
4
4
  import { GetImportFileTaskCommand, } from "./commands/GetImportFileTaskCommand";
5
+ import { GetLatestAssessmentIdCommand, } from "./commands/GetLatestAssessmentIdCommand";
5
6
  import { GetPortfolioPreferencesCommand, } from "./commands/GetPortfolioPreferencesCommand";
6
7
  import { GetPortfolioSummaryCommand, } from "./commands/GetPortfolioSummaryCommand";
7
8
  import { GetRecommendationReportDetailsCommand, } from "./commands/GetRecommendationReportDetailsCommand";
@@ -76,6 +77,20 @@ export class MigrationHubStrategy extends MigrationHubStrategyClient {
76
77
  return this.send(command, optionsOrCb);
77
78
  }
78
79
  }
80
+ getLatestAssessmentId(args, optionsOrCb, cb) {
81
+ const command = new GetLatestAssessmentIdCommand(args);
82
+ if (typeof optionsOrCb === "function") {
83
+ this.send(command, optionsOrCb);
84
+ }
85
+ else if (typeof cb === "function") {
86
+ if (typeof optionsOrCb !== "object")
87
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
88
+ this.send(command, optionsOrCb || {}, cb);
89
+ }
90
+ else {
91
+ return this.send(command, optionsOrCb);
92
+ }
93
+ }
79
94
  getPortfolioPreferences(args, optionsOrCb, cb) {
80
95
  const command = new GetPortfolioPreferencesCommand(args);
81
96
  if (typeof optionsOrCb === "function") {
@@ -0,0 +1,42 @@
1
+ import { getEndpointPlugin } from "@aws-sdk/middleware-endpoint";
2
+ import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
+ import { Command as $Command } from "@aws-sdk/smithy-client";
4
+ import { GetLatestAssessmentIdRequestFilterSensitiveLog, GetLatestAssessmentIdResponseFilterSensitiveLog, } from "../models/models_0";
5
+ import { deserializeAws_restJson1GetLatestAssessmentIdCommand, serializeAws_restJson1GetLatestAssessmentIdCommand, } from "../protocols/Aws_restJson1";
6
+ export class GetLatestAssessmentIdCommand extends $Command {
7
+ constructor(input) {
8
+ super();
9
+ this.input = input;
10
+ }
11
+ static getEndpointParameterInstructions() {
12
+ return {
13
+ UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
14
+ Endpoint: { type: "builtInParams", name: "endpoint" },
15
+ Region: { type: "builtInParams", name: "region" },
16
+ UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
17
+ };
18
+ }
19
+ resolveMiddleware(clientStack, configuration, options) {
20
+ this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
21
+ this.middlewareStack.use(getEndpointPlugin(configuration, GetLatestAssessmentIdCommand.getEndpointParameterInstructions()));
22
+ const stack = clientStack.concat(this.middlewareStack);
23
+ const { logger } = configuration;
24
+ const clientName = "MigrationHubStrategyClient";
25
+ const commandName = "GetLatestAssessmentIdCommand";
26
+ const handlerExecutionContext = {
27
+ logger,
28
+ clientName,
29
+ commandName,
30
+ inputFilterSensitiveLog: GetLatestAssessmentIdRequestFilterSensitiveLog,
31
+ outputFilterSensitiveLog: GetLatestAssessmentIdResponseFilterSensitiveLog,
32
+ };
33
+ const { requestHandler } = configuration;
34
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
35
+ }
36
+ serialize(input, context) {
37
+ return serializeAws_restJson1GetLatestAssessmentIdCommand(input, context);
38
+ }
39
+ deserialize(output, context) {
40
+ return deserializeAws_restJson1GetLatestAssessmentIdCommand(output, context);
41
+ }
42
+ }
@@ -2,6 +2,7 @@ export * from "./GetApplicationComponentDetailsCommand";
2
2
  export * from "./GetApplicationComponentStrategiesCommand";
3
3
  export * from "./GetAssessmentCommand";
4
4
  export * from "./GetImportFileTaskCommand";
5
+ export * from "./GetLatestAssessmentIdCommand";
5
6
  export * from "./GetPortfolioPreferencesCommand";
6
7
  export * from "./GetPortfolioSummaryCommand";
7
8
  export * from "./GetRecommendationReportDetailsCommand";
@@ -3,7 +3,7 @@ export const ruleSet = {
3
3
  parameters: {
4
4
  Region: {
5
5
  builtIn: "AWS::Region",
6
- required: false,
6
+ required: true,
7
7
  documentation: "The AWS region used to dispatch the request.",
8
8
  type: "String",
9
9
  },
@@ -53,15 +53,6 @@ export const ruleSet = {
53
53
  },
54
54
  ],
55
55
  },
56
- {
57
- fn: "parseURL",
58
- argv: [
59
- {
60
- ref: "Endpoint",
61
- },
62
- ],
63
- assign: "url",
64
- },
65
56
  ],
66
57
  type: "tree",
67
58
  rules: [