@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,7 +1,7 @@
1
1
  import { HttpRequest as __HttpRequest } from "@aws-sdk/protocol-http";
2
2
  import { decorateServiceException as __decorateServiceException, expectBoolean as __expectBoolean, expectInt32 as __expectInt32, expectNonNull as __expectNonNull, expectNumber as __expectNumber, expectObject as __expectObject, expectString as __expectString, expectUnion as __expectUnion, map as __map, parseEpochTimestamp as __parseEpochTimestamp, resolvedPath as __resolvedPath, throwDefaultError, } from "@aws-sdk/smithy-client";
3
3
  import { MigrationHubStrategyServiceException as __BaseException } from "../models/MigrationHubStrategyServiceException";
4
- import { AccessDeniedException, ConflictException, DatabaseMigrationPreference, InternalServerException, ManagementPreference, ResourceNotFoundException, ServiceLinkedRoleLockClientException, ServiceQuotaExceededException, ThrottlingException, ValidationException, } from "../models/models_0";
4
+ import { AccessDeniedException, ConflictException, DatabaseMigrationPreference, DependencyException, InternalServerException, ManagementPreference, ResourceNotFoundException, ServiceLinkedRoleLockClientException, ServiceQuotaExceededException, ThrottlingException, ValidationException, } from "../models/models_0";
5
5
  export const serializeAws_restJson1GetApplicationComponentDetailsCommand = async (input, context) => {
6
6
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
7
7
  const headers = {};
@@ -68,6 +68,24 @@ export const serializeAws_restJson1GetImportFileTaskCommand = async (input, cont
68
68
  body,
69
69
  });
70
70
  };
71
+ export const serializeAws_restJson1GetLatestAssessmentIdCommand = async (input, context) => {
72
+ const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
73
+ const headers = {
74
+ "content-type": "application/json",
75
+ };
76
+ const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/get-latest-assessment-id";
77
+ let body;
78
+ body = "";
79
+ return new __HttpRequest({
80
+ protocol,
81
+ hostname,
82
+ port,
83
+ method: "GET",
84
+ headers,
85
+ path: resolvedPath,
86
+ body,
87
+ });
88
+ };
71
89
  export const serializeAws_restJson1GetPortfolioPreferencesCommand = async (input, context) => {
72
90
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
73
91
  const headers = {
@@ -257,6 +275,7 @@ export const serializeAws_restJson1PutPortfolioPreferencesCommand = async (input
257
275
  const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/put-portfolio-preferences";
258
276
  let body;
259
277
  body = JSON.stringify({
278
+ ...(input.applicationMode != null && { applicationMode: input.applicationMode }),
260
279
  ...(input.applicationPreferences != null && {
261
280
  applicationPreferences: serializeAws_restJson1ApplicationPreferences(input.applicationPreferences, context),
262
281
  }),
@@ -285,6 +304,9 @@ export const serializeAws_restJson1StartAssessmentCommand = async (input, contex
285
304
  const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/start-assessment";
286
305
  let body;
287
306
  body = JSON.stringify({
307
+ ...(input.assessmentTargets != null && {
308
+ assessmentTargets: serializeAws_restJson1AssessmentTargets(input.assessmentTargets, context),
309
+ }),
288
310
  ...(input.s3bucketForAnalysisData != null && { s3bucketForAnalysisData: input.s3bucketForAnalysisData }),
289
311
  ...(input.s3bucketForReportData != null && { s3bucketForReportData: input.s3bucketForReportData }),
290
312
  });
@@ -372,7 +394,9 @@ export const serializeAws_restJson1UpdateApplicationComponentConfigCommand = asy
372
394
  const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/update-applicationcomponent-config";
373
395
  let body;
374
396
  body = JSON.stringify({
397
+ ...(input.appType != null && { appType: input.appType }),
375
398
  ...(input.applicationComponentId != null && { applicationComponentId: input.applicationComponentId }),
399
+ ...(input.configureOnly != null && { configureOnly: input.configureOnly }),
376
400
  ...(input.inclusionStatus != null && { inclusionStatus: input.inclusionStatus }),
377
401
  ...(input.secretsManagerKey != null && { secretsManagerKey: input.secretsManagerKey }),
378
402
  ...(input.sourceCodeList != null && {
@@ -510,6 +534,9 @@ export const deserializeAws_restJson1GetAssessmentCommand = async (output, conte
510
534
  $metadata: deserializeMetadata(output),
511
535
  });
512
536
  const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
537
+ if (data.assessmentTargets != null) {
538
+ contents.assessmentTargets = deserializeAws_restJson1AssessmentTargets(data.assessmentTargets, context);
539
+ }
513
540
  if (data.dataCollectionDetails != null) {
514
541
  contents.dataCollectionDetails = deserializeAws_restJson1DataCollectionDetails(data.dataCollectionDetails, context);
515
542
  }
@@ -622,6 +649,48 @@ const deserializeAws_restJson1GetImportFileTaskCommandError = async (output, con
622
649
  });
623
650
  }
624
651
  };
652
+ export const deserializeAws_restJson1GetLatestAssessmentIdCommand = async (output, context) => {
653
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
654
+ return deserializeAws_restJson1GetLatestAssessmentIdCommandError(output, context);
655
+ }
656
+ const contents = map({
657
+ $metadata: deserializeMetadata(output),
658
+ });
659
+ const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
660
+ if (data.id != null) {
661
+ contents.id = __expectString(data.id);
662
+ }
663
+ return contents;
664
+ };
665
+ const deserializeAws_restJson1GetLatestAssessmentIdCommandError = async (output, context) => {
666
+ const parsedOutput = {
667
+ ...output,
668
+ body: await parseErrorBody(output.body, context),
669
+ };
670
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
671
+ switch (errorCode) {
672
+ case "AccessDeniedException":
673
+ case "com.amazonaws.migrationhubstrategy#AccessDeniedException":
674
+ throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
675
+ case "DependencyException":
676
+ case "com.amazonaws.migrationhubstrategy#DependencyException":
677
+ throw await deserializeAws_restJson1DependencyExceptionResponse(parsedOutput, context);
678
+ case "InternalServerException":
679
+ case "com.amazonaws.migrationhubstrategy#InternalServerException":
680
+ throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
681
+ case "ValidationException":
682
+ case "com.amazonaws.migrationhubstrategy#ValidationException":
683
+ throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
684
+ default:
685
+ const parsedBody = parsedOutput.body;
686
+ throwDefaultError({
687
+ output,
688
+ parsedBody,
689
+ exceptionCtor: __BaseException,
690
+ errorCode,
691
+ });
692
+ }
693
+ };
625
694
  export const deserializeAws_restJson1GetPortfolioPreferencesCommand = async (output, context) => {
626
695
  if (output.statusCode !== 200 && output.statusCode >= 300) {
627
696
  return deserializeAws_restJson1GetPortfolioPreferencesCommandError(output, context);
@@ -630,6 +699,9 @@ export const deserializeAws_restJson1GetPortfolioPreferencesCommand = async (out
630
699
  $metadata: deserializeMetadata(output),
631
700
  });
632
701
  const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
702
+ if (data.applicationMode != null) {
703
+ contents.applicationMode = __expectString(data.applicationMode);
704
+ }
633
705
  if (data.applicationPreferences != null) {
634
706
  contents.applicationPreferences = deserializeAws_restJson1ApplicationPreferences(data.applicationPreferences, context);
635
707
  }
@@ -1349,6 +1421,18 @@ const deserializeAws_restJson1ConflictExceptionResponse = async (parsedOutput, c
1349
1421
  });
1350
1422
  return __decorateServiceException(exception, parsedOutput.body);
1351
1423
  };
1424
+ const deserializeAws_restJson1DependencyExceptionResponse = async (parsedOutput, context) => {
1425
+ const contents = map({});
1426
+ const data = parsedOutput.body;
1427
+ if (data.message != null) {
1428
+ contents.message = __expectString(data.message);
1429
+ }
1430
+ const exception = new DependencyException({
1431
+ $metadata: deserializeMetadata(parsedOutput),
1432
+ ...contents,
1433
+ });
1434
+ return __decorateServiceException(exception, parsedOutput.body);
1435
+ };
1352
1436
  const deserializeAws_restJson1InternalServerExceptionResponse = async (parsedOutput, context) => {
1353
1437
  const contents = map({});
1354
1438
  const data = parsedOutput.body;
@@ -1428,6 +1512,27 @@ const serializeAws_restJson1ApplicationPreferences = (input, context) => {
1428
1512
  }),
1429
1513
  };
1430
1514
  };
1515
+ const serializeAws_restJson1AssessmentTarget = (input, context) => {
1516
+ return {
1517
+ ...(input.condition != null && { condition: input.condition }),
1518
+ ...(input.name != null && { name: input.name }),
1519
+ ...(input.values != null && { values: serializeAws_restJson1AssessmentTargetValues(input.values, context) }),
1520
+ };
1521
+ };
1522
+ const serializeAws_restJson1AssessmentTargets = (input, context) => {
1523
+ return input
1524
+ .filter((e) => e != null)
1525
+ .map((entry) => {
1526
+ return serializeAws_restJson1AssessmentTarget(entry, context);
1527
+ });
1528
+ };
1529
+ const serializeAws_restJson1AssessmentTargetValues = (input, context) => {
1530
+ return input
1531
+ .filter((e) => e != null)
1532
+ .map((entry) => {
1533
+ return entry;
1534
+ });
1535
+ };
1431
1536
  const serializeAws_restJson1AwsManagedResources = (input, context) => {
1432
1537
  return {
1433
1538
  ...(input.targetDestination != null && {
@@ -1570,6 +1675,7 @@ const serializeAws_restJson1SelfManageTargetDestinations = (input, context) => {
1570
1675
  const serializeAws_restJson1SourceCode = (input, context) => {
1571
1676
  return {
1572
1677
  ...(input.location != null && { location: input.location }),
1678
+ ...(input.projectName != null && { projectName: input.projectName }),
1573
1679
  ...(input.sourceVersion != null && { sourceVersion: input.sourceVersion }),
1574
1680
  ...(input.versionControl != null && { versionControl: input.versionControl }),
1575
1681
  };
@@ -1611,6 +1717,7 @@ const deserializeAws_restJson1ApplicationComponentDetail = (output, context) =>
1611
1717
  antipatternReportStatus: __expectString(output.antipatternReportStatus),
1612
1718
  antipatternReportStatusMessage: __expectString(output.antipatternReportStatusMessage),
1613
1719
  appType: __expectString(output.appType),
1720
+ appUnitError: output.appUnitError != null ? deserializeAws_restJson1AppUnitError(output.appUnitError, context) : undefined,
1614
1721
  associatedServerId: __expectString(output.associatedServerId),
1615
1722
  databaseConfigDetail: output.databaseConfigDetail != null
1616
1723
  ? deserializeAws_restJson1DatabaseConfigDetail(output.databaseConfigDetail, context)
@@ -1631,6 +1738,8 @@ const deserializeAws_restJson1ApplicationComponentDetail = (output, context) =>
1631
1738
  ? deserializeAws_restJson1RecommendationSet(output.recommendationSet, context)
1632
1739
  : undefined,
1633
1740
  resourceSubType: __expectString(output.resourceSubType),
1741
+ runtimeStatus: __expectString(output.runtimeStatus),
1742
+ runtimeStatusMessage: __expectString(output.runtimeStatusMessage),
1634
1743
  sourceCodeRepositories: output.sourceCodeRepositories != null
1635
1744
  ? deserializeAws_restJson1SourceCodeRepositories(output.sourceCodeRepositories, context)
1636
1745
  : undefined,
@@ -1648,6 +1757,12 @@ const deserializeAws_restJson1ApplicationComponentDetails = (output, context) =>
1648
1757
  });
1649
1758
  return retVal;
1650
1759
  };
1760
+ const deserializeAws_restJson1ApplicationComponentStatusSummary = (output, context) => {
1761
+ return {
1762
+ count: __expectInt32(output.count),
1763
+ srcCodeOrDbAnalysisStatus: __expectString(output.srcCodeOrDbAnalysisStatus),
1764
+ };
1765
+ };
1651
1766
  const deserializeAws_restJson1ApplicationComponentStrategies = (output, context) => {
1652
1767
  const retVal = (output || [])
1653
1768
  .filter((e) => e != null)
@@ -1681,6 +1796,11 @@ const deserializeAws_restJson1ApplicationPreferences = (output, context) => {
1681
1796
  : undefined,
1682
1797
  };
1683
1798
  };
1799
+ const deserializeAws_restJson1AppUnitError = (output, context) => {
1800
+ return {
1801
+ appUnitErrorCategory: __expectString(output.appUnitErrorCategory),
1802
+ };
1803
+ };
1684
1804
  const deserializeAws_restJson1AssessmentSummary = (output, context) => {
1685
1805
  return {
1686
1806
  antipatternReportS3Object: output.antipatternReportS3Object != null
@@ -1694,12 +1814,18 @@ const deserializeAws_restJson1AssessmentSummary = (output, context) => {
1694
1814
  listAntipatternSeveritySummary: output.listAntipatternSeveritySummary != null
1695
1815
  ? deserializeAws_restJson1ListAntipatternSeveritySummary(output.listAntipatternSeveritySummary, context)
1696
1816
  : undefined,
1817
+ listApplicationComponentStatusSummary: output.listApplicationComponentStatusSummary != null
1818
+ ? deserializeAws_restJson1ListApplicationComponentStatusSummary(output.listApplicationComponentStatusSummary, context)
1819
+ : undefined,
1697
1820
  listApplicationComponentStrategySummary: output.listApplicationComponentStrategySummary != null
1698
1821
  ? deserializeAws_restJson1ListStrategySummary(output.listApplicationComponentStrategySummary, context)
1699
1822
  : undefined,
1700
1823
  listApplicationComponentSummary: output.listApplicationComponentSummary != null
1701
1824
  ? deserializeAws_restJson1ListApplicationComponentSummary(output.listApplicationComponentSummary, context)
1702
1825
  : undefined,
1826
+ listServerStatusSummary: output.listServerStatusSummary != null
1827
+ ? deserializeAws_restJson1ListServerStatusSummary(output.listServerStatusSummary, context)
1828
+ : undefined,
1703
1829
  listServerStrategySummary: output.listServerStrategySummary != null
1704
1830
  ? deserializeAws_restJson1ListStrategySummary(output.listServerStrategySummary, context)
1705
1831
  : undefined,
@@ -1708,6 +1834,35 @@ const deserializeAws_restJson1AssessmentSummary = (output, context) => {
1708
1834
  : undefined,
1709
1835
  };
1710
1836
  };
1837
+ const deserializeAws_restJson1AssessmentTarget = (output, context) => {
1838
+ return {
1839
+ condition: __expectString(output.condition),
1840
+ name: __expectString(output.name),
1841
+ values: output.values != null ? deserializeAws_restJson1AssessmentTargetValues(output.values, context) : undefined,
1842
+ };
1843
+ };
1844
+ const deserializeAws_restJson1AssessmentTargets = (output, context) => {
1845
+ const retVal = (output || [])
1846
+ .filter((e) => e != null)
1847
+ .map((entry) => {
1848
+ if (entry === null) {
1849
+ return null;
1850
+ }
1851
+ return deserializeAws_restJson1AssessmentTarget(entry, context);
1852
+ });
1853
+ return retVal;
1854
+ };
1855
+ const deserializeAws_restJson1AssessmentTargetValues = (output, context) => {
1856
+ const retVal = (output || [])
1857
+ .filter((e) => e != null)
1858
+ .map((entry) => {
1859
+ if (entry === null) {
1860
+ return null;
1861
+ }
1862
+ return __expectString(entry);
1863
+ });
1864
+ return retVal;
1865
+ };
1711
1866
  const deserializeAws_restJson1AssociatedApplication = (output, context) => {
1712
1867
  return {
1713
1868
  id: __expectString(output.id),
@@ -1767,6 +1922,9 @@ const deserializeAws_restJson1Collector = (output, context) => {
1767
1922
  collectorHealth: __expectString(output.collectorHealth),
1768
1923
  collectorId: __expectString(output.collectorId),
1769
1924
  collectorVersion: __expectString(output.collectorVersion),
1925
+ configurationSummary: output.configurationSummary != null
1926
+ ? deserializeAws_restJson1ConfigurationSummary(output.configurationSummary, context)
1927
+ : undefined,
1770
1928
  hostName: __expectString(output.hostName),
1771
1929
  ipAddress: __expectString(output.ipAddress),
1772
1930
  lastActivityTimeStamp: __expectString(output.lastActivityTimeStamp),
@@ -1784,6 +1942,25 @@ const deserializeAws_restJson1Collectors = (output, context) => {
1784
1942
  });
1785
1943
  return retVal;
1786
1944
  };
1945
+ const deserializeAws_restJson1ConfigurationSummary = (output, context) => {
1946
+ return {
1947
+ ipAddressBasedRemoteInfoList: output.ipAddressBasedRemoteInfoList != null
1948
+ ? deserializeAws_restJson1IPAddressBasedRemoteInfoList(output.ipAddressBasedRemoteInfoList, context)
1949
+ : undefined,
1950
+ pipelineInfoList: output.pipelineInfoList != null
1951
+ ? deserializeAws_restJson1PipelineInfoList(output.pipelineInfoList, context)
1952
+ : undefined,
1953
+ remoteSourceCodeAnalysisServerInfo: output.remoteSourceCodeAnalysisServerInfo != null
1954
+ ? deserializeAws_restJson1RemoteSourceCodeAnalysisServerInfo(output.remoteSourceCodeAnalysisServerInfo, context)
1955
+ : undefined,
1956
+ vcenterBasedRemoteInfoList: output.vcenterBasedRemoteInfoList != null
1957
+ ? deserializeAws_restJson1VcenterBasedRemoteInfoList(output.vcenterBasedRemoteInfoList, context)
1958
+ : undefined,
1959
+ versionControlInfoList: output.versionControlInfoList != null
1960
+ ? deserializeAws_restJson1VersionControlInfoList(output.versionControlInfoList, context)
1961
+ : undefined,
1962
+ };
1963
+ };
1787
1964
  const deserializeAws_restJson1DatabaseConfigDetail = (output, context) => {
1788
1965
  return {
1789
1966
  secretName: __expectString(output.secretName),
@@ -1825,6 +2002,7 @@ const deserializeAws_restJson1DataCollectionDetails = (output, context) => {
1825
2002
  servers: __expectInt32(output.servers),
1826
2003
  startTime: output.startTime != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.startTime))) : undefined,
1827
2004
  status: __expectString(output.status),
2005
+ statusMessage: __expectString(output.statusMessage),
1828
2006
  success: __expectInt32(output.success),
1829
2007
  };
1830
2008
  };
@@ -1881,6 +2059,24 @@ const deserializeAws_restJson1ImportFileTaskInformation = (output, context) => {
1881
2059
  statusReportS3Key: __expectString(output.statusReportS3Key),
1882
2060
  };
1883
2061
  };
2062
+ const deserializeAws_restJson1IPAddressBasedRemoteInfo = (output, context) => {
2063
+ return {
2064
+ authType: __expectString(output.authType),
2065
+ ipAddressConfigurationTimeStamp: __expectString(output.ipAddressConfigurationTimeStamp),
2066
+ osType: __expectString(output.osType),
2067
+ };
2068
+ };
2069
+ const deserializeAws_restJson1IPAddressBasedRemoteInfoList = (output, context) => {
2070
+ const retVal = (output || [])
2071
+ .filter((e) => e != null)
2072
+ .map((entry) => {
2073
+ if (entry === null) {
2074
+ return null;
2075
+ }
2076
+ return deserializeAws_restJson1IPAddressBasedRemoteInfo(entry, context);
2077
+ });
2078
+ return retVal;
2079
+ };
1884
2080
  const deserializeAws_restJson1ListAntipatternSeveritySummary = (output, context) => {
1885
2081
  const retVal = (output || [])
1886
2082
  .filter((e) => e != null)
@@ -1892,6 +2088,17 @@ const deserializeAws_restJson1ListAntipatternSeveritySummary = (output, context)
1892
2088
  });
1893
2089
  return retVal;
1894
2090
  };
2091
+ const deserializeAws_restJson1ListApplicationComponentStatusSummary = (output, context) => {
2092
+ const retVal = (output || [])
2093
+ .filter((e) => e != null)
2094
+ .map((entry) => {
2095
+ if (entry === null) {
2096
+ return null;
2097
+ }
2098
+ return deserializeAws_restJson1ApplicationComponentStatusSummary(entry, context);
2099
+ });
2100
+ return retVal;
2101
+ };
1895
2102
  const deserializeAws_restJson1ListApplicationComponentSummary = (output, context) => {
1896
2103
  const retVal = (output || [])
1897
2104
  .filter((e) => e != null)
@@ -1914,6 +2121,17 @@ const deserializeAws_restJson1ListImportFileTaskInformation = (output, context)
1914
2121
  });
1915
2122
  return retVal;
1916
2123
  };
2124
+ const deserializeAws_restJson1ListServerStatusSummary = (output, context) => {
2125
+ const retVal = (output || [])
2126
+ .filter((e) => e != null)
2127
+ .map((entry) => {
2128
+ if (entry === null) {
2129
+ return null;
2130
+ }
2131
+ return deserializeAws_restJson1ServerStatusSummary(entry, context);
2132
+ });
2133
+ return retVal;
2134
+ };
1917
2135
  const deserializeAws_restJson1ListServerSummary = (output, context) => {
1918
2136
  const retVal = (output || [])
1919
2137
  .filter((e) => e != null)
@@ -2004,6 +2222,23 @@ const deserializeAws_restJson1OSInfo = (output, context) => {
2004
2222
  version: __expectString(output.version),
2005
2223
  };
2006
2224
  };
2225
+ const deserializeAws_restJson1PipelineInfo = (output, context) => {
2226
+ return {
2227
+ pipelineConfigurationTimeStamp: __expectString(output.pipelineConfigurationTimeStamp),
2228
+ pipelineType: __expectString(output.pipelineType),
2229
+ };
2230
+ };
2231
+ const deserializeAws_restJson1PipelineInfoList = (output, context) => {
2232
+ const retVal = (output || [])
2233
+ .filter((e) => e != null)
2234
+ .map((entry) => {
2235
+ if (entry === null) {
2236
+ return null;
2237
+ }
2238
+ return deserializeAws_restJson1PipelineInfo(entry, context);
2239
+ });
2240
+ return retVal;
2241
+ };
2007
2242
  const deserializeAws_restJson1PrioritizeBusinessGoals = (output, context) => {
2008
2243
  return {
2009
2244
  businessGoals: output.businessGoals != null ? deserializeAws_restJson1BusinessGoals(output.businessGoals, context) : undefined,
@@ -2030,6 +2265,11 @@ const deserializeAws_restJson1RecommendationSet = (output, context) => {
2030
2265
  : undefined,
2031
2266
  };
2032
2267
  };
2268
+ const deserializeAws_restJson1RemoteSourceCodeAnalysisServerInfo = (output, context) => {
2269
+ return {
2270
+ remoteSourceCodeAnalysisServerConfigurationTimestamp: __expectString(output.remoteSourceCodeAnalysisServerConfigurationTimestamp),
2271
+ };
2272
+ };
2033
2273
  const deserializeAws_restJson1S3Keys = (output, context) => {
2034
2274
  const retVal = (output || [])
2035
2275
  .filter((e) => e != null)
@@ -2087,6 +2327,7 @@ const deserializeAws_restJson1ServerDetail = (output, context) => {
2087
2327
  recommendationSet: output.recommendationSet != null
2088
2328
  ? deserializeAws_restJson1RecommendationSet(output.recommendationSet, context)
2089
2329
  : undefined,
2330
+ serverError: output.serverError != null ? deserializeAws_restJson1ServerError(output.serverError, context) : undefined,
2090
2331
  serverType: __expectString(output.serverType),
2091
2332
  statusMessage: __expectString(output.statusMessage),
2092
2333
  systemInfo: output.systemInfo != null ? deserializeAws_restJson1SystemInfo(output.systemInfo, context) : undefined,
@@ -2103,6 +2344,17 @@ const deserializeAws_restJson1ServerDetails = (output, context) => {
2103
2344
  });
2104
2345
  return retVal;
2105
2346
  };
2347
+ const deserializeAws_restJson1ServerError = (output, context) => {
2348
+ return {
2349
+ serverErrorCategory: __expectString(output.serverErrorCategory),
2350
+ };
2351
+ };
2352
+ const deserializeAws_restJson1ServerStatusSummary = (output, context) => {
2353
+ return {
2354
+ count: __expectInt32(output.count),
2355
+ runTimeAssessmentStatus: __expectString(output.runTimeAssessmentStatus),
2356
+ };
2357
+ };
2106
2358
  const deserializeAws_restJson1ServerStrategies = (output, context) => {
2107
2359
  const retVal = (output || [])
2108
2360
  .filter((e) => e != null)
@@ -2144,6 +2396,7 @@ const deserializeAws_restJson1SourceCodeRepositories = (output, context) => {
2144
2396
  const deserializeAws_restJson1SourceCodeRepository = (output, context) => {
2145
2397
  return {
2146
2398
  branch: __expectString(output.branch),
2399
+ projectName: __expectString(output.projectName),
2147
2400
  repository: __expectString(output.repository),
2148
2401
  versionControlType: __expectString(output.versionControlType),
2149
2402
  };
@@ -2182,6 +2435,40 @@ const deserializeAws_restJson1TransformationTool = (output, context) => {
2182
2435
  tranformationToolInstallationLink: __expectString(output.tranformationToolInstallationLink),
2183
2436
  };
2184
2437
  };
2438
+ const deserializeAws_restJson1VcenterBasedRemoteInfo = (output, context) => {
2439
+ return {
2440
+ osType: __expectString(output.osType),
2441
+ vcenterConfigurationTimeStamp: __expectString(output.vcenterConfigurationTimeStamp),
2442
+ };
2443
+ };
2444
+ const deserializeAws_restJson1VcenterBasedRemoteInfoList = (output, context) => {
2445
+ const retVal = (output || [])
2446
+ .filter((e) => e != null)
2447
+ .map((entry) => {
2448
+ if (entry === null) {
2449
+ return null;
2450
+ }
2451
+ return deserializeAws_restJson1VcenterBasedRemoteInfo(entry, context);
2452
+ });
2453
+ return retVal;
2454
+ };
2455
+ const deserializeAws_restJson1VersionControlInfo = (output, context) => {
2456
+ return {
2457
+ versionControlConfigurationTimeStamp: __expectString(output.versionControlConfigurationTimeStamp),
2458
+ versionControlType: __expectString(output.versionControlType),
2459
+ };
2460
+ };
2461
+ const deserializeAws_restJson1VersionControlInfoList = (output, context) => {
2462
+ const retVal = (output || [])
2463
+ .filter((e) => e != null)
2464
+ .map((entry) => {
2465
+ if (entry === null) {
2466
+ return null;
2467
+ }
2468
+ return deserializeAws_restJson1VersionControlInfo(entry, context);
2469
+ });
2470
+ return retVal;
2471
+ };
2185
2472
  const deserializeMetadata = (output) => ({
2186
2473
  httpStatusCode: output.statusCode,
2187
2474
  requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
@@ -3,6 +3,7 @@ import { GetApplicationComponentDetailsCommandInput, GetApplicationComponentDeta
3
3
  import { GetApplicationComponentStrategiesCommandInput, GetApplicationComponentStrategiesCommandOutput } from "./commands/GetApplicationComponentStrategiesCommand";
4
4
  import { GetAssessmentCommandInput, GetAssessmentCommandOutput } from "./commands/GetAssessmentCommand";
5
5
  import { GetImportFileTaskCommandInput, GetImportFileTaskCommandOutput } from "./commands/GetImportFileTaskCommand";
6
+ import { GetLatestAssessmentIdCommandInput, GetLatestAssessmentIdCommandOutput } from "./commands/GetLatestAssessmentIdCommand";
6
7
  import { GetPortfolioPreferencesCommandInput, GetPortfolioPreferencesCommandOutput } from "./commands/GetPortfolioPreferencesCommand";
7
8
  import { GetPortfolioSummaryCommandInput, GetPortfolioSummaryCommandOutput } from "./commands/GetPortfolioSummaryCommand";
8
9
  import { GetRecommendationReportDetailsCommandInput, GetRecommendationReportDetailsCommandOutput } from "./commands/GetRecommendationReportDetailsCommand";
@@ -25,9 +26,9 @@ import { MigrationHubStrategyClient } from "./MigrationHubStrategyClient";
25
26
  *
26
27
  * <p>This API reference provides descriptions, syntax, and other details about each of the
27
28
  * actions and data types for Migration Hub Strategy Recommendations (Strategy Recommendations). The topic for each action shows the API
28
- * request parameters and the response. Alternatively, you can use one of the AWS SDKs to access
29
- * an API that is tailored to the programming language or platform that you're using. For more
30
- * information, see <a href="http://aws.amazon.com/tools/#SDKs">AWS SDKs</a>.</p>
29
+ * request parameters and the response. Alternatively, you can use one of the AWS SDKs to
30
+ * access an API that is tailored to the programming language or platform that you're using. For
31
+ * more information, see <a href="http://aws.amazon.com/tools/#SDKs">AWS SDKs</a>.</p>
31
32
  */
32
33
  export declare class MigrationHubStrategy extends MigrationHubStrategyClient {
33
34
  /**
@@ -55,6 +56,12 @@ export declare class MigrationHubStrategy extends MigrationHubStrategyClient {
55
56
  getImportFileTask(args: GetImportFileTaskCommandInput, options?: __HttpHandlerOptions): Promise<GetImportFileTaskCommandOutput>;
56
57
  getImportFileTask(args: GetImportFileTaskCommandInput, cb: (err: any, data?: GetImportFileTaskCommandOutput) => void): void;
57
58
  getImportFileTask(args: GetImportFileTaskCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetImportFileTaskCommandOutput) => void): void;
59
+ /**
60
+ * <p>Retrieve the latest ID of a specific assessment task.</p>
61
+ */
62
+ getLatestAssessmentId(args: GetLatestAssessmentIdCommandInput, options?: __HttpHandlerOptions): Promise<GetLatestAssessmentIdCommandOutput>;
63
+ getLatestAssessmentId(args: GetLatestAssessmentIdCommandInput, cb: (err: any, data?: GetLatestAssessmentIdCommandOutput) => void): void;
64
+ getLatestAssessmentId(args: GetLatestAssessmentIdCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetLatestAssessmentIdCommandOutput) => void): void;
58
65
  /**
59
66
  * <p> Retrieves your migration and modernization preferences. </p>
60
67
  */
@@ -11,6 +11,7 @@ import { GetApplicationComponentDetailsCommandInput, GetApplicationComponentDeta
11
11
  import { GetApplicationComponentStrategiesCommandInput, GetApplicationComponentStrategiesCommandOutput } from "./commands/GetApplicationComponentStrategiesCommand";
12
12
  import { GetAssessmentCommandInput, GetAssessmentCommandOutput } from "./commands/GetAssessmentCommand";
13
13
  import { GetImportFileTaskCommandInput, GetImportFileTaskCommandOutput } from "./commands/GetImportFileTaskCommand";
14
+ import { GetLatestAssessmentIdCommandInput, GetLatestAssessmentIdCommandOutput } from "./commands/GetLatestAssessmentIdCommand";
14
15
  import { GetPortfolioPreferencesCommandInput, GetPortfolioPreferencesCommandOutput } from "./commands/GetPortfolioPreferencesCommand";
15
16
  import { GetPortfolioSummaryCommandInput, GetPortfolioSummaryCommandOutput } from "./commands/GetPortfolioSummaryCommand";
16
17
  import { GetRecommendationReportDetailsCommandInput, GetRecommendationReportDetailsCommandOutput } from "./commands/GetRecommendationReportDetailsCommand";
@@ -28,8 +29,8 @@ import { StopAssessmentCommandInput, StopAssessmentCommandOutput } from "./comma
28
29
  import { UpdateApplicationComponentConfigCommandInput, UpdateApplicationComponentConfigCommandOutput } from "./commands/UpdateApplicationComponentConfigCommand";
29
30
  import { UpdateServerConfigCommandInput, UpdateServerConfigCommandOutput } from "./commands/UpdateServerConfigCommand";
30
31
  import { ClientInputEndpointParameters, ClientResolvedEndpointParameters, EndpointParameters } from "./endpoint/EndpointParameters";
31
- export declare type ServiceInputTypes = GetApplicationComponentDetailsCommandInput | GetApplicationComponentStrategiesCommandInput | GetAssessmentCommandInput | GetImportFileTaskCommandInput | GetPortfolioPreferencesCommandInput | GetPortfolioSummaryCommandInput | GetRecommendationReportDetailsCommandInput | GetServerDetailsCommandInput | GetServerStrategiesCommandInput | ListApplicationComponentsCommandInput | ListCollectorsCommandInput | ListImportFileTaskCommandInput | ListServersCommandInput | PutPortfolioPreferencesCommandInput | StartAssessmentCommandInput | StartImportFileTaskCommandInput | StartRecommendationReportGenerationCommandInput | StopAssessmentCommandInput | UpdateApplicationComponentConfigCommandInput | UpdateServerConfigCommandInput;
32
- export declare type ServiceOutputTypes = GetApplicationComponentDetailsCommandOutput | GetApplicationComponentStrategiesCommandOutput | GetAssessmentCommandOutput | GetImportFileTaskCommandOutput | GetPortfolioPreferencesCommandOutput | GetPortfolioSummaryCommandOutput | GetRecommendationReportDetailsCommandOutput | GetServerDetailsCommandOutput | GetServerStrategiesCommandOutput | ListApplicationComponentsCommandOutput | ListCollectorsCommandOutput | ListImportFileTaskCommandOutput | ListServersCommandOutput | PutPortfolioPreferencesCommandOutput | StartAssessmentCommandOutput | StartImportFileTaskCommandOutput | StartRecommendationReportGenerationCommandOutput | StopAssessmentCommandOutput | UpdateApplicationComponentConfigCommandOutput | UpdateServerConfigCommandOutput;
32
+ export declare type ServiceInputTypes = GetApplicationComponentDetailsCommandInput | GetApplicationComponentStrategiesCommandInput | GetAssessmentCommandInput | GetImportFileTaskCommandInput | GetLatestAssessmentIdCommandInput | GetPortfolioPreferencesCommandInput | GetPortfolioSummaryCommandInput | GetRecommendationReportDetailsCommandInput | GetServerDetailsCommandInput | GetServerStrategiesCommandInput | ListApplicationComponentsCommandInput | ListCollectorsCommandInput | ListImportFileTaskCommandInput | ListServersCommandInput | PutPortfolioPreferencesCommandInput | StartAssessmentCommandInput | StartImportFileTaskCommandInput | StartRecommendationReportGenerationCommandInput | StopAssessmentCommandInput | UpdateApplicationComponentConfigCommandInput | UpdateServerConfigCommandInput;
33
+ export declare type ServiceOutputTypes = GetApplicationComponentDetailsCommandOutput | GetApplicationComponentStrategiesCommandOutput | GetAssessmentCommandOutput | GetImportFileTaskCommandOutput | GetLatestAssessmentIdCommandOutput | GetPortfolioPreferencesCommandOutput | GetPortfolioSummaryCommandOutput | GetRecommendationReportDetailsCommandOutput | GetServerDetailsCommandOutput | GetServerStrategiesCommandOutput | ListApplicationComponentsCommandOutput | ListCollectorsCommandOutput | ListImportFileTaskCommandOutput | ListServersCommandOutput | PutPortfolioPreferencesCommandOutput | StartAssessmentCommandOutput | StartImportFileTaskCommandOutput | StartRecommendationReportGenerationCommandOutput | StopAssessmentCommandOutput | UpdateApplicationComponentConfigCommandOutput | UpdateServerConfigCommandOutput;
33
34
  export interface ClientDefaults extends Partial<__SmithyResolvedConfiguration<__HttpHandlerOptions>> {
34
35
  /**
35
36
  * The HTTP handler to use. Fetch in browser and Https in Nodejs.
@@ -147,9 +148,9 @@ export interface MigrationHubStrategyClientResolvedConfig extends MigrationHubSt
147
148
  *
148
149
  * <p>This API reference provides descriptions, syntax, and other details about each of the
149
150
  * actions and data types for Migration Hub Strategy Recommendations (Strategy Recommendations). The topic for each action shows the API
150
- * request parameters and the response. Alternatively, you can use one of the AWS SDKs to access
151
- * an API that is tailored to the programming language or platform that you're using. For more
152
- * information, see <a href="http://aws.amazon.com/tools/#SDKs">AWS SDKs</a>.</p>
151
+ * request parameters and the response. Alternatively, you can use one of the AWS SDKs to
152
+ * access an API that is tailored to the programming language or platform that you're using. For
153
+ * more information, see <a href="http://aws.amazon.com/tools/#SDKs">AWS SDKs</a>.</p>
153
154
  */
154
155
  export declare class MigrationHubStrategyClient extends __Client<__HttpHandlerOptions, ServiceInputTypes, ServiceOutputTypes, MigrationHubStrategyClientResolvedConfig> {
155
156
  /**
@@ -0,0 +1,37 @@
1
+ import { EndpointParameterInstructions } from "@aws-sdk/middleware-endpoint";
2
+ import { Command as $Command } from "@aws-sdk/smithy-client";
3
+ import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@aws-sdk/types";
4
+ import { MigrationHubStrategyClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../MigrationHubStrategyClient";
5
+ import { GetLatestAssessmentIdRequest, GetLatestAssessmentIdResponse } from "../models/models_0";
6
+ export interface GetLatestAssessmentIdCommandInput extends GetLatestAssessmentIdRequest {
7
+ }
8
+ export interface GetLatestAssessmentIdCommandOutput extends GetLatestAssessmentIdResponse, __MetadataBearer {
9
+ }
10
+ /**
11
+ * <p>Retrieve the latest ID of a specific assessment task.</p>
12
+ * @example
13
+ * Use a bare-bones client and the command you need to make an API call.
14
+ * ```javascript
15
+ * import { MigrationHubStrategyClient, GetLatestAssessmentIdCommand } from "@aws-sdk/client-migrationhubstrategy"; // ES Modules import
16
+ * // const { MigrationHubStrategyClient, GetLatestAssessmentIdCommand } = require("@aws-sdk/client-migrationhubstrategy"); // CommonJS import
17
+ * const client = new MigrationHubStrategyClient(config);
18
+ * const command = new GetLatestAssessmentIdCommand(input);
19
+ * const response = await client.send(command);
20
+ * ```
21
+ *
22
+ * @see {@link GetLatestAssessmentIdCommandInput} for command's `input` shape.
23
+ * @see {@link GetLatestAssessmentIdCommandOutput} for command's `response` shape.
24
+ * @see {@link MigrationHubStrategyClientResolvedConfig | config} for MigrationHubStrategyClient's `config` shape.
25
+ *
26
+ */
27
+ export declare class GetLatestAssessmentIdCommand extends $Command<GetLatestAssessmentIdCommandInput, GetLatestAssessmentIdCommandOutput, MigrationHubStrategyClientResolvedConfig> {
28
+ readonly input: GetLatestAssessmentIdCommandInput;
29
+ static getEndpointParameterInstructions(): EndpointParameterInstructions;
30
+ constructor(input: GetLatestAssessmentIdCommandInput);
31
+ /**
32
+ * @internal
33
+ */
34
+ resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: MigrationHubStrategyClientResolvedConfig, options?: __HttpHandlerOptions): Handler<GetLatestAssessmentIdCommandInput, GetLatestAssessmentIdCommandOutput>;
35
+ private serialize;
36
+ private deserialize;
37
+ }
@@ -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";
@@ -12,7 +12,7 @@ export declare const resolveClientEndpointParameters: <T>(options: T & ClientInp
12
12
  defaultSigningName: string;
13
13
  };
14
14
  export interface EndpointParameters extends __EndpointParameters {
15
- Region?: string;
15
+ Region: string;
16
16
  UseDualStack?: boolean;
17
17
  UseFIPS?: boolean;
18
18
  Endpoint?: string;