@aws-sdk/client-compute-optimizer 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 +27 -0
- package/dist-cjs/protocols/Aws_json1_0.js +159 -238
- package/dist-es/protocols/Aws_json1_0.js +103 -182
- package/package.json +26 -26
|
@@ -1707,20 +1707,15 @@ var serializeAws_json1_0CpuVendorArchitectures = function (input, context) {
|
|
|
1707
1707
|
});
|
|
1708
1708
|
};
|
|
1709
1709
|
var serializeAws_json1_0DeleteRecommendationPreferencesRequest = function (input, context) {
|
|
1710
|
-
return __assign(__assign(__assign({}, (input.recommendationPreferenceNames
|
|
1711
|
-
input.recommendationPreferenceNames !== null && {
|
|
1710
|
+
return __assign(__assign(__assign({}, (input.recommendationPreferenceNames != null && {
|
|
1712
1711
|
recommendationPreferenceNames: serializeAws_json1_0RecommendationPreferenceNames(input.recommendationPreferenceNames, context),
|
|
1713
|
-
})), (input.resourceType
|
|
1714
|
-
input.scope !== null && { scope: serializeAws_json1_0Scope(input.scope, context) }));
|
|
1712
|
+
})), (input.resourceType != null && { resourceType: input.resourceType })), (input.scope != null && { scope: serializeAws_json1_0Scope(input.scope, context) }));
|
|
1715
1713
|
};
|
|
1716
1714
|
var serializeAws_json1_0DescribeRecommendationExportJobsRequest = function (input, context) {
|
|
1717
|
-
return __assign(__assign(__assign(__assign({}, (input.filters
|
|
1718
|
-
input.filters !== null && { filters: serializeAws_json1_0JobFilters(input.filters, context) })), (input.jobIds !== undefined &&
|
|
1719
|
-
input.jobIds !== null && { jobIds: serializeAws_json1_0JobIds(input.jobIds, context) })), (input.maxResults !== undefined && input.maxResults !== null && { maxResults: input.maxResults })), (input.nextToken !== undefined && input.nextToken !== null && { nextToken: input.nextToken }));
|
|
1715
|
+
return __assign(__assign(__assign(__assign({}, (input.filters != null && { filters: serializeAws_json1_0JobFilters(input.filters, context) })), (input.jobIds != null && { jobIds: serializeAws_json1_0JobIds(input.jobIds, context) })), (input.maxResults != null && { maxResults: input.maxResults })), (input.nextToken != null && { nextToken: input.nextToken }));
|
|
1720
1716
|
};
|
|
1721
1717
|
var serializeAws_json1_0EBSFilter = function (input, context) {
|
|
1722
|
-
return __assign(__assign({}, (input.name
|
|
1723
|
-
input.values !== null && { values: serializeAws_json1_0FilterValues(input.values, context) }));
|
|
1718
|
+
return __assign(__assign({}, (input.name != null && { name: input.name })), (input.values != null && { values: serializeAws_json1_0FilterValues(input.values, context) }));
|
|
1724
1719
|
};
|
|
1725
1720
|
var serializeAws_json1_0EBSFilters = function (input, context) {
|
|
1726
1721
|
return input
|
|
@@ -1733,8 +1728,7 @@ var serializeAws_json1_0EBSFilters = function (input, context) {
|
|
|
1733
1728
|
});
|
|
1734
1729
|
};
|
|
1735
1730
|
var serializeAws_json1_0EnrollmentFilter = function (input, context) {
|
|
1736
|
-
return __assign(__assign({}, (input.name
|
|
1737
|
-
input.values !== null && { values: serializeAws_json1_0FilterValues(input.values, context) }));
|
|
1731
|
+
return __assign(__assign({}, (input.name != null && { name: input.name })), (input.values != null && { values: serializeAws_json1_0FilterValues(input.values, context) }));
|
|
1738
1732
|
};
|
|
1739
1733
|
var serializeAws_json1_0EnrollmentFilters = function (input, context) {
|
|
1740
1734
|
return input
|
|
@@ -1787,64 +1781,41 @@ var serializeAws_json1_0ExportableVolumeFields = function (input, context) {
|
|
|
1787
1781
|
});
|
|
1788
1782
|
};
|
|
1789
1783
|
var serializeAws_json1_0ExportAutoScalingGroupRecommendationsRequest = function (input, context) {
|
|
1790
|
-
return __assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.accountIds
|
|
1791
|
-
input.accountIds !== null && { accountIds: serializeAws_json1_0AccountIds(input.accountIds, context) })), (input.fieldsToExport !== undefined &&
|
|
1792
|
-
input.fieldsToExport !== null && {
|
|
1784
|
+
return __assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.accountIds != null && { accountIds: serializeAws_json1_0AccountIds(input.accountIds, context) })), (input.fieldsToExport != null && {
|
|
1793
1785
|
fieldsToExport: serializeAws_json1_0ExportableAutoScalingGroupFields(input.fieldsToExport, context),
|
|
1794
|
-
})), (input.fileFormat
|
|
1795
|
-
input.filters !== null && { filters: serializeAws_json1_0Filters(input.filters, context) })), (input.includeMemberAccounts !== undefined &&
|
|
1796
|
-
input.includeMemberAccounts !== null && { includeMemberAccounts: input.includeMemberAccounts })), (input.recommendationPreferences !== undefined &&
|
|
1797
|
-
input.recommendationPreferences !== null && {
|
|
1786
|
+
})), (input.fileFormat != null && { fileFormat: input.fileFormat })), (input.filters != null && { filters: serializeAws_json1_0Filters(input.filters, context) })), (input.includeMemberAccounts != null && { includeMemberAccounts: input.includeMemberAccounts })), (input.recommendationPreferences != null && {
|
|
1798
1787
|
recommendationPreferences: serializeAws_json1_0RecommendationPreferences(input.recommendationPreferences, context),
|
|
1799
|
-
})), (input.s3DestinationConfig
|
|
1800
|
-
input.s3DestinationConfig !== null && {
|
|
1788
|
+
})), (input.s3DestinationConfig != null && {
|
|
1801
1789
|
s3DestinationConfig: serializeAws_json1_0S3DestinationConfig(input.s3DestinationConfig, context),
|
|
1802
1790
|
}));
|
|
1803
1791
|
};
|
|
1804
1792
|
var serializeAws_json1_0ExportEBSVolumeRecommendationsRequest = function (input, context) {
|
|
1805
|
-
return __assign(__assign(__assign(__assign(__assign(__assign({}, (input.accountIds
|
|
1806
|
-
input.accountIds !== null && { accountIds: serializeAws_json1_0AccountIds(input.accountIds, context) })), (input.fieldsToExport !== undefined &&
|
|
1807
|
-
input.fieldsToExport !== null && {
|
|
1793
|
+
return __assign(__assign(__assign(__assign(__assign(__assign({}, (input.accountIds != null && { accountIds: serializeAws_json1_0AccountIds(input.accountIds, context) })), (input.fieldsToExport != null && {
|
|
1808
1794
|
fieldsToExport: serializeAws_json1_0ExportableVolumeFields(input.fieldsToExport, context),
|
|
1809
|
-
})), (input.fileFormat
|
|
1810
|
-
input.filters !== null && { filters: serializeAws_json1_0EBSFilters(input.filters, context) })), (input.includeMemberAccounts !== undefined &&
|
|
1811
|
-
input.includeMemberAccounts !== null && { includeMemberAccounts: input.includeMemberAccounts })), (input.s3DestinationConfig !== undefined &&
|
|
1812
|
-
input.s3DestinationConfig !== null && {
|
|
1795
|
+
})), (input.fileFormat != null && { fileFormat: input.fileFormat })), (input.filters != null && { filters: serializeAws_json1_0EBSFilters(input.filters, context) })), (input.includeMemberAccounts != null && { includeMemberAccounts: input.includeMemberAccounts })), (input.s3DestinationConfig != null && {
|
|
1813
1796
|
s3DestinationConfig: serializeAws_json1_0S3DestinationConfig(input.s3DestinationConfig, context),
|
|
1814
1797
|
}));
|
|
1815
1798
|
};
|
|
1816
1799
|
var serializeAws_json1_0ExportEC2InstanceRecommendationsRequest = function (input, context) {
|
|
1817
|
-
return __assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.accountIds
|
|
1818
|
-
input.accountIds !== null && { accountIds: serializeAws_json1_0AccountIds(input.accountIds, context) })), (input.fieldsToExport !== undefined &&
|
|
1819
|
-
input.fieldsToExport !== null && {
|
|
1800
|
+
return __assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.accountIds != null && { accountIds: serializeAws_json1_0AccountIds(input.accountIds, context) })), (input.fieldsToExport != null && {
|
|
1820
1801
|
fieldsToExport: serializeAws_json1_0ExportableInstanceFields(input.fieldsToExport, context),
|
|
1821
|
-
})), (input.fileFormat
|
|
1822
|
-
input.filters !== null && { filters: serializeAws_json1_0Filters(input.filters, context) })), (input.includeMemberAccounts !== undefined &&
|
|
1823
|
-
input.includeMemberAccounts !== null && { includeMemberAccounts: input.includeMemberAccounts })), (input.recommendationPreferences !== undefined &&
|
|
1824
|
-
input.recommendationPreferences !== null && {
|
|
1802
|
+
})), (input.fileFormat != null && { fileFormat: input.fileFormat })), (input.filters != null && { filters: serializeAws_json1_0Filters(input.filters, context) })), (input.includeMemberAccounts != null && { includeMemberAccounts: input.includeMemberAccounts })), (input.recommendationPreferences != null && {
|
|
1825
1803
|
recommendationPreferences: serializeAws_json1_0RecommendationPreferences(input.recommendationPreferences, context),
|
|
1826
|
-
})), (input.s3DestinationConfig
|
|
1827
|
-
input.s3DestinationConfig !== null && {
|
|
1804
|
+
})), (input.s3DestinationConfig != null && {
|
|
1828
1805
|
s3DestinationConfig: serializeAws_json1_0S3DestinationConfig(input.s3DestinationConfig, context),
|
|
1829
1806
|
}));
|
|
1830
1807
|
};
|
|
1831
1808
|
var serializeAws_json1_0ExportLambdaFunctionRecommendationsRequest = function (input, context) {
|
|
1832
|
-
return __assign(__assign(__assign(__assign(__assign(__assign({}, (input.accountIds
|
|
1833
|
-
input.accountIds !== null && { accountIds: serializeAws_json1_0AccountIds(input.accountIds, context) })), (input.fieldsToExport !== undefined &&
|
|
1834
|
-
input.fieldsToExport !== null && {
|
|
1809
|
+
return __assign(__assign(__assign(__assign(__assign(__assign({}, (input.accountIds != null && { accountIds: serializeAws_json1_0AccountIds(input.accountIds, context) })), (input.fieldsToExport != null && {
|
|
1835
1810
|
fieldsToExport: serializeAws_json1_0ExportableLambdaFunctionFields(input.fieldsToExport, context),
|
|
1836
|
-
})), (input.fileFormat
|
|
1837
|
-
input.filters !== null && {
|
|
1811
|
+
})), (input.fileFormat != null && { fileFormat: input.fileFormat })), (input.filters != null && {
|
|
1838
1812
|
filters: serializeAws_json1_0LambdaFunctionRecommendationFilters(input.filters, context),
|
|
1839
|
-
})), (input.includeMemberAccounts
|
|
1840
|
-
input.includeMemberAccounts !== null && { includeMemberAccounts: input.includeMemberAccounts })), (input.s3DestinationConfig !== undefined &&
|
|
1841
|
-
input.s3DestinationConfig !== null && {
|
|
1813
|
+
})), (input.includeMemberAccounts != null && { includeMemberAccounts: input.includeMemberAccounts })), (input.s3DestinationConfig != null && {
|
|
1842
1814
|
s3DestinationConfig: serializeAws_json1_0S3DestinationConfig(input.s3DestinationConfig, context),
|
|
1843
1815
|
}));
|
|
1844
1816
|
};
|
|
1845
1817
|
var serializeAws_json1_0Filter = function (input, context) {
|
|
1846
|
-
return __assign(__assign({}, (input.name
|
|
1847
|
-
input.values !== null && { values: serializeAws_json1_0FilterValues(input.values, context) }));
|
|
1818
|
+
return __assign(__assign({}, (input.name != null && { name: input.name })), (input.values != null && { values: serializeAws_json1_0FilterValues(input.values, context) }));
|
|
1848
1819
|
};
|
|
1849
1820
|
var serializeAws_json1_0Filters = function (input, context) {
|
|
1850
1821
|
return input
|
|
@@ -1877,64 +1848,44 @@ var serializeAws_json1_0FunctionArns = function (input, context) {
|
|
|
1877
1848
|
});
|
|
1878
1849
|
};
|
|
1879
1850
|
var serializeAws_json1_0GetAutoScalingGroupRecommendationsRequest = function (input, context) {
|
|
1880
|
-
return __assign(__assign(__assign(__assign(__assign(__assign({}, (input.accountIds
|
|
1881
|
-
input.accountIds !== null && { accountIds: serializeAws_json1_0AccountIds(input.accountIds, context) })), (input.autoScalingGroupArns !== undefined &&
|
|
1882
|
-
input.autoScalingGroupArns !== null && {
|
|
1851
|
+
return __assign(__assign(__assign(__assign(__assign(__assign({}, (input.accountIds != null && { accountIds: serializeAws_json1_0AccountIds(input.accountIds, context) })), (input.autoScalingGroupArns != null && {
|
|
1883
1852
|
autoScalingGroupArns: serializeAws_json1_0AutoScalingGroupArns(input.autoScalingGroupArns, context),
|
|
1884
|
-
})), (input.filters
|
|
1885
|
-
input.filters !== null && { filters: serializeAws_json1_0Filters(input.filters, context) })), (input.maxResults !== undefined && input.maxResults !== null && { maxResults: input.maxResults })), (input.nextToken !== undefined && input.nextToken !== null && { nextToken: input.nextToken })), (input.recommendationPreferences !== undefined &&
|
|
1886
|
-
input.recommendationPreferences !== null && {
|
|
1853
|
+
})), (input.filters != null && { filters: serializeAws_json1_0Filters(input.filters, context) })), (input.maxResults != null && { maxResults: input.maxResults })), (input.nextToken != null && { nextToken: input.nextToken })), (input.recommendationPreferences != null && {
|
|
1887
1854
|
recommendationPreferences: serializeAws_json1_0RecommendationPreferences(input.recommendationPreferences, context),
|
|
1888
1855
|
}));
|
|
1889
1856
|
};
|
|
1890
1857
|
var serializeAws_json1_0GetEBSVolumeRecommendationsRequest = function (input, context) {
|
|
1891
|
-
return __assign(__assign(__assign(__assign(__assign({}, (input.accountIds
|
|
1892
|
-
input.accountIds !== null && { accountIds: serializeAws_json1_0AccountIds(input.accountIds, context) })), (input.filters !== undefined &&
|
|
1893
|
-
input.filters !== null && { filters: serializeAws_json1_0EBSFilters(input.filters, context) })), (input.maxResults !== undefined && input.maxResults !== null && { maxResults: input.maxResults })), (input.nextToken !== undefined && input.nextToken !== null && { nextToken: input.nextToken })), (input.volumeArns !== undefined &&
|
|
1894
|
-
input.volumeArns !== null && { volumeArns: serializeAws_json1_0VolumeArns(input.volumeArns, context) }));
|
|
1858
|
+
return __assign(__assign(__assign(__assign(__assign({}, (input.accountIds != null && { accountIds: serializeAws_json1_0AccountIds(input.accountIds, context) })), (input.filters != null && { filters: serializeAws_json1_0EBSFilters(input.filters, context) })), (input.maxResults != null && { maxResults: input.maxResults })), (input.nextToken != null && { nextToken: input.nextToken })), (input.volumeArns != null && { volumeArns: serializeAws_json1_0VolumeArns(input.volumeArns, context) }));
|
|
1895
1859
|
};
|
|
1896
1860
|
var serializeAws_json1_0GetEC2InstanceRecommendationsRequest = function (input, context) {
|
|
1897
|
-
return __assign(__assign(__assign(__assign(__assign(__assign({}, (input.accountIds
|
|
1898
|
-
input.accountIds !== null && { accountIds: serializeAws_json1_0AccountIds(input.accountIds, context) })), (input.filters !== undefined &&
|
|
1899
|
-
input.filters !== null && { filters: serializeAws_json1_0Filters(input.filters, context) })), (input.instanceArns !== undefined &&
|
|
1900
|
-
input.instanceArns !== null && { instanceArns: serializeAws_json1_0InstanceArns(input.instanceArns, context) })), (input.maxResults !== undefined && input.maxResults !== null && { maxResults: input.maxResults })), (input.nextToken !== undefined && input.nextToken !== null && { nextToken: input.nextToken })), (input.recommendationPreferences !== undefined &&
|
|
1901
|
-
input.recommendationPreferences !== null && {
|
|
1861
|
+
return __assign(__assign(__assign(__assign(__assign(__assign({}, (input.accountIds != null && { accountIds: serializeAws_json1_0AccountIds(input.accountIds, context) })), (input.filters != null && { filters: serializeAws_json1_0Filters(input.filters, context) })), (input.instanceArns != null && { instanceArns: serializeAws_json1_0InstanceArns(input.instanceArns, context) })), (input.maxResults != null && { maxResults: input.maxResults })), (input.nextToken != null && { nextToken: input.nextToken })), (input.recommendationPreferences != null && {
|
|
1902
1862
|
recommendationPreferences: serializeAws_json1_0RecommendationPreferences(input.recommendationPreferences, context),
|
|
1903
1863
|
}));
|
|
1904
1864
|
};
|
|
1905
1865
|
var serializeAws_json1_0GetEC2RecommendationProjectedMetricsRequest = function (input, context) {
|
|
1906
|
-
return __assign(__assign(__assign(__assign(__assign(__assign({}, (input.endTime
|
|
1907
|
-
input.endTime !== null && { endTime: Math.round(input.endTime.getTime() / 1000) })), (input.instanceArn !== undefined && input.instanceArn !== null && { instanceArn: input.instanceArn })), (input.period !== undefined && input.period !== null && { period: input.period })), (input.recommendationPreferences !== undefined &&
|
|
1908
|
-
input.recommendationPreferences !== null && {
|
|
1866
|
+
return __assign(__assign(__assign(__assign(__assign(__assign({}, (input.endTime != null && { endTime: Math.round(input.endTime.getTime() / 1000) })), (input.instanceArn != null && { instanceArn: input.instanceArn })), (input.period != null && { period: input.period })), (input.recommendationPreferences != null && {
|
|
1909
1867
|
recommendationPreferences: serializeAws_json1_0RecommendationPreferences(input.recommendationPreferences, context),
|
|
1910
|
-
})), (input.startTime
|
|
1911
|
-
input.startTime !== null && { startTime: Math.round(input.startTime.getTime() / 1000) })), (input.stat !== undefined && input.stat !== null && { stat: input.stat }));
|
|
1868
|
+
})), (input.startTime != null && { startTime: Math.round(input.startTime.getTime() / 1000) })), (input.stat != null && { stat: input.stat }));
|
|
1912
1869
|
};
|
|
1913
1870
|
var serializeAws_json1_0GetEffectiveRecommendationPreferencesRequest = function (input, context) {
|
|
1914
|
-
return __assign({}, (input.resourceArn
|
|
1871
|
+
return __assign({}, (input.resourceArn != null && { resourceArn: input.resourceArn }));
|
|
1915
1872
|
};
|
|
1916
1873
|
var serializeAws_json1_0GetEnrollmentStatusesForOrganizationRequest = function (input, context) {
|
|
1917
|
-
return __assign(__assign(__assign({}, (input.filters
|
|
1918
|
-
input.filters !== null && { filters: serializeAws_json1_0EnrollmentFilters(input.filters, context) })), (input.maxResults !== undefined && input.maxResults !== null && { maxResults: input.maxResults })), (input.nextToken !== undefined && input.nextToken !== null && { nextToken: input.nextToken }));
|
|
1874
|
+
return __assign(__assign(__assign({}, (input.filters != null && { filters: serializeAws_json1_0EnrollmentFilters(input.filters, context) })), (input.maxResults != null && { maxResults: input.maxResults })), (input.nextToken != null && { nextToken: input.nextToken }));
|
|
1919
1875
|
};
|
|
1920
1876
|
var serializeAws_json1_0GetEnrollmentStatusRequest = function (input, context) {
|
|
1921
1877
|
return {};
|
|
1922
1878
|
};
|
|
1923
1879
|
var serializeAws_json1_0GetLambdaFunctionRecommendationsRequest = function (input, context) {
|
|
1924
|
-
return __assign(__assign(__assign(__assign(__assign({}, (input.accountIds
|
|
1925
|
-
input.accountIds !== null && { accountIds: serializeAws_json1_0AccountIds(input.accountIds, context) })), (input.filters !== undefined &&
|
|
1926
|
-
input.filters !== null && {
|
|
1880
|
+
return __assign(__assign(__assign(__assign(__assign({}, (input.accountIds != null && { accountIds: serializeAws_json1_0AccountIds(input.accountIds, context) })), (input.filters != null && {
|
|
1927
1881
|
filters: serializeAws_json1_0LambdaFunctionRecommendationFilters(input.filters, context),
|
|
1928
|
-
})), (input.functionArns
|
|
1929
|
-
input.functionArns !== null && { functionArns: serializeAws_json1_0FunctionArns(input.functionArns, context) })), (input.maxResults !== undefined && input.maxResults !== null && { maxResults: input.maxResults })), (input.nextToken !== undefined && input.nextToken !== null && { nextToken: input.nextToken }));
|
|
1882
|
+
})), (input.functionArns != null && { functionArns: serializeAws_json1_0FunctionArns(input.functionArns, context) })), (input.maxResults != null && { maxResults: input.maxResults })), (input.nextToken != null && { nextToken: input.nextToken }));
|
|
1930
1883
|
};
|
|
1931
1884
|
var serializeAws_json1_0GetRecommendationPreferencesRequest = function (input, context) {
|
|
1932
|
-
return __assign(__assign(__assign(__assign({}, (input.maxResults
|
|
1933
|
-
input.scope !== null && { scope: serializeAws_json1_0Scope(input.scope, context) }));
|
|
1885
|
+
return __assign(__assign(__assign(__assign({}, (input.maxResults != null && { maxResults: input.maxResults })), (input.nextToken != null && { nextToken: input.nextToken })), (input.resourceType != null && { resourceType: input.resourceType })), (input.scope != null && { scope: serializeAws_json1_0Scope(input.scope, context) }));
|
|
1934
1886
|
};
|
|
1935
1887
|
var serializeAws_json1_0GetRecommendationSummariesRequest = function (input, context) {
|
|
1936
|
-
return __assign(__assign(__assign({}, (input.accountIds
|
|
1937
|
-
input.accountIds !== null && { accountIds: serializeAws_json1_0AccountIds(input.accountIds, context) })), (input.maxResults !== undefined && input.maxResults !== null && { maxResults: input.maxResults })), (input.nextToken !== undefined && input.nextToken !== null && { nextToken: input.nextToken }));
|
|
1888
|
+
return __assign(__assign(__assign({}, (input.accountIds != null && { accountIds: serializeAws_json1_0AccountIds(input.accountIds, context) })), (input.maxResults != null && { maxResults: input.maxResults })), (input.nextToken != null && { nextToken: input.nextToken }));
|
|
1938
1889
|
};
|
|
1939
1890
|
var serializeAws_json1_0InstanceArns = function (input, context) {
|
|
1940
1891
|
return input
|
|
@@ -1947,8 +1898,7 @@ var serializeAws_json1_0InstanceArns = function (input, context) {
|
|
|
1947
1898
|
});
|
|
1948
1899
|
};
|
|
1949
1900
|
var serializeAws_json1_0JobFilter = function (input, context) {
|
|
1950
|
-
return __assign(__assign({}, (input.name
|
|
1951
|
-
input.values !== null && { values: serializeAws_json1_0FilterValues(input.values, context) }));
|
|
1901
|
+
return __assign(__assign({}, (input.name != null && { name: input.name })), (input.values != null && { values: serializeAws_json1_0FilterValues(input.values, context) }));
|
|
1952
1902
|
};
|
|
1953
1903
|
var serializeAws_json1_0JobFilters = function (input, context) {
|
|
1954
1904
|
return input
|
|
@@ -1971,8 +1921,7 @@ var serializeAws_json1_0JobIds = function (input, context) {
|
|
|
1971
1921
|
});
|
|
1972
1922
|
};
|
|
1973
1923
|
var serializeAws_json1_0LambdaFunctionRecommendationFilter = function (input, context) {
|
|
1974
|
-
return __assign(__assign({}, (input.name
|
|
1975
|
-
input.values !== null && { values: serializeAws_json1_0FilterValues(input.values, context) }));
|
|
1924
|
+
return __assign(__assign({}, (input.name != null && { name: input.name })), (input.values != null && { values: serializeAws_json1_0FilterValues(input.values, context) }));
|
|
1976
1925
|
};
|
|
1977
1926
|
var serializeAws_json1_0LambdaFunctionRecommendationFilters = function (input, context) {
|
|
1978
1927
|
return input
|
|
@@ -1985,12 +1934,9 @@ var serializeAws_json1_0LambdaFunctionRecommendationFilters = function (input, c
|
|
|
1985
1934
|
});
|
|
1986
1935
|
};
|
|
1987
1936
|
var serializeAws_json1_0PutRecommendationPreferencesRequest = function (input, context) {
|
|
1988
|
-
return __assign(__assign(__assign(__assign({}, (input.enhancedInfrastructureMetrics
|
|
1989
|
-
input.enhancedInfrastructureMetrics !== null && {
|
|
1937
|
+
return __assign(__assign(__assign(__assign({}, (input.enhancedInfrastructureMetrics != null && {
|
|
1990
1938
|
enhancedInfrastructureMetrics: input.enhancedInfrastructureMetrics,
|
|
1991
|
-
})), (input.inferredWorkloadTypes
|
|
1992
|
-
input.inferredWorkloadTypes !== null && { inferredWorkloadTypes: input.inferredWorkloadTypes })), (input.resourceType !== undefined && input.resourceType !== null && { resourceType: input.resourceType })), (input.scope !== undefined &&
|
|
1993
|
-
input.scope !== null && { scope: serializeAws_json1_0Scope(input.scope, context) }));
|
|
1939
|
+
})), (input.inferredWorkloadTypes != null && { inferredWorkloadTypes: input.inferredWorkloadTypes })), (input.resourceType != null && { resourceType: input.resourceType })), (input.scope != null && { scope: serializeAws_json1_0Scope(input.scope, context) }));
|
|
1994
1940
|
};
|
|
1995
1941
|
var serializeAws_json1_0RecommendationPreferenceNames = function (input, context) {
|
|
1996
1942
|
return input
|
|
@@ -2003,20 +1949,18 @@ var serializeAws_json1_0RecommendationPreferenceNames = function (input, context
|
|
|
2003
1949
|
});
|
|
2004
1950
|
};
|
|
2005
1951
|
var serializeAws_json1_0RecommendationPreferences = function (input, context) {
|
|
2006
|
-
return __assign({}, (input.cpuVendorArchitectures
|
|
2007
|
-
input.cpuVendorArchitectures !== null && {
|
|
1952
|
+
return __assign({}, (input.cpuVendorArchitectures != null && {
|
|
2008
1953
|
cpuVendorArchitectures: serializeAws_json1_0CpuVendorArchitectures(input.cpuVendorArchitectures, context),
|
|
2009
1954
|
}));
|
|
2010
1955
|
};
|
|
2011
1956
|
var serializeAws_json1_0S3DestinationConfig = function (input, context) {
|
|
2012
|
-
return __assign(__assign({}, (input.bucket
|
|
1957
|
+
return __assign(__assign({}, (input.bucket != null && { bucket: input.bucket })), (input.keyPrefix != null && { keyPrefix: input.keyPrefix }));
|
|
2013
1958
|
};
|
|
2014
1959
|
var serializeAws_json1_0Scope = function (input, context) {
|
|
2015
|
-
return __assign(__assign({}, (input.name
|
|
1960
|
+
return __assign(__assign({}, (input.name != null && { name: input.name })), (input.value != null && { value: input.value }));
|
|
2016
1961
|
};
|
|
2017
1962
|
var serializeAws_json1_0UpdateEnrollmentStatusRequest = function (input, context) {
|
|
2018
|
-
return __assign(__assign({}, (input.includeMemberAccounts
|
|
2019
|
-
input.includeMemberAccounts !== null && { includeMemberAccounts: input.includeMemberAccounts })), (input.status !== undefined && input.status !== null && { status: input.status }));
|
|
1963
|
+
return __assign(__assign({}, (input.includeMemberAccounts != null && { includeMemberAccounts: input.includeMemberAccounts })), (input.status != null && { status: input.status }));
|
|
2020
1964
|
};
|
|
2021
1965
|
var serializeAws_json1_0VolumeArns = function (input, context) {
|
|
2022
1966
|
return input
|
|
@@ -2036,7 +1980,7 @@ var deserializeAws_json1_0AccessDeniedException = function (output, context) {
|
|
|
2036
1980
|
var deserializeAws_json1_0AccountEnrollmentStatus = function (output, context) {
|
|
2037
1981
|
return {
|
|
2038
1982
|
accountId: __expectString(output.accountId),
|
|
2039
|
-
lastUpdatedTimestamp: output.lastUpdatedTimestamp
|
|
1983
|
+
lastUpdatedTimestamp: output.lastUpdatedTimestamp != null
|
|
2040
1984
|
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.lastUpdatedTimestamp)))
|
|
2041
1985
|
: undefined,
|
|
2042
1986
|
status: __expectString(output.status),
|
|
@@ -2067,41 +2011,41 @@ var deserializeAws_json1_0AutoScalingGroupRecommendation = function (output, con
|
|
|
2067
2011
|
accountId: __expectString(output.accountId),
|
|
2068
2012
|
autoScalingGroupArn: __expectString(output.autoScalingGroupArn),
|
|
2069
2013
|
autoScalingGroupName: __expectString(output.autoScalingGroupName),
|
|
2070
|
-
currentConfiguration: output.currentConfiguration
|
|
2014
|
+
currentConfiguration: output.currentConfiguration != null
|
|
2071
2015
|
? deserializeAws_json1_0AutoScalingGroupConfiguration(output.currentConfiguration, context)
|
|
2072
2016
|
: undefined,
|
|
2073
2017
|
currentPerformanceRisk: __expectString(output.currentPerformanceRisk),
|
|
2074
|
-
effectiveRecommendationPreferences: output.effectiveRecommendationPreferences
|
|
2018
|
+
effectiveRecommendationPreferences: output.effectiveRecommendationPreferences != null
|
|
2075
2019
|
? deserializeAws_json1_0EffectiveRecommendationPreferences(output.effectiveRecommendationPreferences, context)
|
|
2076
2020
|
: undefined,
|
|
2077
2021
|
finding: __expectString(output.finding),
|
|
2078
|
-
inferredWorkloadTypes: output.inferredWorkloadTypes
|
|
2022
|
+
inferredWorkloadTypes: output.inferredWorkloadTypes != null
|
|
2079
2023
|
? deserializeAws_json1_0InferredWorkloadTypes(output.inferredWorkloadTypes, context)
|
|
2080
2024
|
: undefined,
|
|
2081
|
-
lastRefreshTimestamp: output.lastRefreshTimestamp
|
|
2025
|
+
lastRefreshTimestamp: output.lastRefreshTimestamp != null
|
|
2082
2026
|
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.lastRefreshTimestamp)))
|
|
2083
2027
|
: undefined,
|
|
2084
2028
|
lookBackPeriodInDays: __limitedParseDouble(output.lookBackPeriodInDays),
|
|
2085
|
-
recommendationOptions: output.recommendationOptions
|
|
2029
|
+
recommendationOptions: output.recommendationOptions != null
|
|
2086
2030
|
? deserializeAws_json1_0AutoScalingGroupRecommendationOptions(output.recommendationOptions, context)
|
|
2087
2031
|
: undefined,
|
|
2088
|
-
utilizationMetrics: output.utilizationMetrics
|
|
2032
|
+
utilizationMetrics: output.utilizationMetrics != null
|
|
2089
2033
|
? deserializeAws_json1_0UtilizationMetrics(output.utilizationMetrics, context)
|
|
2090
2034
|
: undefined,
|
|
2091
2035
|
};
|
|
2092
2036
|
};
|
|
2093
2037
|
var deserializeAws_json1_0AutoScalingGroupRecommendationOption = function (output, context) {
|
|
2094
2038
|
return {
|
|
2095
|
-
configuration: output.configuration
|
|
2039
|
+
configuration: output.configuration != null
|
|
2096
2040
|
? deserializeAws_json1_0AutoScalingGroupConfiguration(output.configuration, context)
|
|
2097
2041
|
: undefined,
|
|
2098
2042
|
migrationEffort: __expectString(output.migrationEffort),
|
|
2099
2043
|
performanceRisk: __limitedParseDouble(output.performanceRisk),
|
|
2100
|
-
projectedUtilizationMetrics: output.projectedUtilizationMetrics
|
|
2044
|
+
projectedUtilizationMetrics: output.projectedUtilizationMetrics != null
|
|
2101
2045
|
? deserializeAws_json1_0ProjectedUtilizationMetrics(output.projectedUtilizationMetrics, context)
|
|
2102
2046
|
: undefined,
|
|
2103
2047
|
rank: __expectInt32(output.rank),
|
|
2104
|
-
savingsOpportunity: output.savingsOpportunity
|
|
2048
|
+
savingsOpportunity: output.savingsOpportunity != null
|
|
2105
2049
|
? deserializeAws_json1_0SavingsOpportunity(output.savingsOpportunity, context)
|
|
2106
2050
|
: undefined,
|
|
2107
2051
|
};
|
|
@@ -2153,7 +2097,7 @@ var deserializeAws_json1_0DeleteRecommendationPreferencesResponse = function (ou
|
|
|
2153
2097
|
var deserializeAws_json1_0DescribeRecommendationExportJobsResponse = function (output, context) {
|
|
2154
2098
|
return {
|
|
2155
2099
|
nextToken: __expectString(output.nextToken),
|
|
2156
|
-
recommendationExportJobs: output.recommendationExportJobs
|
|
2100
|
+
recommendationExportJobs: output.recommendationExportJobs != null
|
|
2157
2101
|
? deserializeAws_json1_0RecommendationExportJobs(output.recommendationExportJobs, context)
|
|
2158
2102
|
: undefined,
|
|
2159
2103
|
};
|
|
@@ -2178,7 +2122,7 @@ var deserializeAws_json1_0EBSUtilizationMetrics = function (output, context) {
|
|
|
2178
2122
|
};
|
|
2179
2123
|
var deserializeAws_json1_0EffectiveRecommendationPreferences = function (output, context) {
|
|
2180
2124
|
return {
|
|
2181
|
-
cpuVendorArchitectures: output.cpuVendorArchitectures
|
|
2125
|
+
cpuVendorArchitectures: output.cpuVendorArchitectures != null
|
|
2182
2126
|
? deserializeAws_json1_0CpuVendorArchitectures(output.cpuVendorArchitectures, context)
|
|
2183
2127
|
: undefined,
|
|
2184
2128
|
enhancedInfrastructureMetrics: __expectString(output.enhancedInfrastructureMetrics),
|
|
@@ -2194,70 +2138,54 @@ var deserializeAws_json1_0EstimatedMonthlySavings = function (output, context) {
|
|
|
2194
2138
|
var deserializeAws_json1_0ExportAutoScalingGroupRecommendationsResponse = function (output, context) {
|
|
2195
2139
|
return {
|
|
2196
2140
|
jobId: __expectString(output.jobId),
|
|
2197
|
-
s3Destination: output.s3Destination
|
|
2198
|
-
? deserializeAws_json1_0S3Destination(output.s3Destination, context)
|
|
2199
|
-
: undefined,
|
|
2141
|
+
s3Destination: output.s3Destination != null ? deserializeAws_json1_0S3Destination(output.s3Destination, context) : undefined,
|
|
2200
2142
|
};
|
|
2201
2143
|
};
|
|
2202
2144
|
var deserializeAws_json1_0ExportDestination = function (output, context) {
|
|
2203
2145
|
return {
|
|
2204
|
-
s3: output.s3
|
|
2205
|
-
? deserializeAws_json1_0S3Destination(output.s3, context)
|
|
2206
|
-
: undefined,
|
|
2146
|
+
s3: output.s3 != null ? deserializeAws_json1_0S3Destination(output.s3, context) : undefined,
|
|
2207
2147
|
};
|
|
2208
2148
|
};
|
|
2209
2149
|
var deserializeAws_json1_0ExportEBSVolumeRecommendationsResponse = function (output, context) {
|
|
2210
2150
|
return {
|
|
2211
2151
|
jobId: __expectString(output.jobId),
|
|
2212
|
-
s3Destination: output.s3Destination
|
|
2213
|
-
? deserializeAws_json1_0S3Destination(output.s3Destination, context)
|
|
2214
|
-
: undefined,
|
|
2152
|
+
s3Destination: output.s3Destination != null ? deserializeAws_json1_0S3Destination(output.s3Destination, context) : undefined,
|
|
2215
2153
|
};
|
|
2216
2154
|
};
|
|
2217
2155
|
var deserializeAws_json1_0ExportEC2InstanceRecommendationsResponse = function (output, context) {
|
|
2218
2156
|
return {
|
|
2219
2157
|
jobId: __expectString(output.jobId),
|
|
2220
|
-
s3Destination: output.s3Destination
|
|
2221
|
-
? deserializeAws_json1_0S3Destination(output.s3Destination, context)
|
|
2222
|
-
: undefined,
|
|
2158
|
+
s3Destination: output.s3Destination != null ? deserializeAws_json1_0S3Destination(output.s3Destination, context) : undefined,
|
|
2223
2159
|
};
|
|
2224
2160
|
};
|
|
2225
2161
|
var deserializeAws_json1_0ExportLambdaFunctionRecommendationsResponse = function (output, context) {
|
|
2226
2162
|
return {
|
|
2227
2163
|
jobId: __expectString(output.jobId),
|
|
2228
|
-
s3Destination: output.s3Destination
|
|
2229
|
-
? deserializeAws_json1_0S3Destination(output.s3Destination, context)
|
|
2230
|
-
: undefined,
|
|
2164
|
+
s3Destination: output.s3Destination != null ? deserializeAws_json1_0S3Destination(output.s3Destination, context) : undefined,
|
|
2231
2165
|
};
|
|
2232
2166
|
};
|
|
2233
2167
|
var deserializeAws_json1_0GetAutoScalingGroupRecommendationsResponse = function (output, context) {
|
|
2234
2168
|
return {
|
|
2235
|
-
autoScalingGroupRecommendations: output.autoScalingGroupRecommendations
|
|
2169
|
+
autoScalingGroupRecommendations: output.autoScalingGroupRecommendations != null
|
|
2236
2170
|
? deserializeAws_json1_0AutoScalingGroupRecommendations(output.autoScalingGroupRecommendations, context)
|
|
2237
2171
|
: undefined,
|
|
2238
|
-
errors: output.errors
|
|
2239
|
-
? deserializeAws_json1_0GetRecommendationErrors(output.errors, context)
|
|
2240
|
-
: undefined,
|
|
2172
|
+
errors: output.errors != null ? deserializeAws_json1_0GetRecommendationErrors(output.errors, context) : undefined,
|
|
2241
2173
|
nextToken: __expectString(output.nextToken),
|
|
2242
2174
|
};
|
|
2243
2175
|
};
|
|
2244
2176
|
var deserializeAws_json1_0GetEBSVolumeRecommendationsResponse = function (output, context) {
|
|
2245
2177
|
return {
|
|
2246
|
-
errors: output.errors
|
|
2247
|
-
? deserializeAws_json1_0GetRecommendationErrors(output.errors, context)
|
|
2248
|
-
: undefined,
|
|
2178
|
+
errors: output.errors != null ? deserializeAws_json1_0GetRecommendationErrors(output.errors, context) : undefined,
|
|
2249
2179
|
nextToken: __expectString(output.nextToken),
|
|
2250
|
-
volumeRecommendations: output.volumeRecommendations
|
|
2180
|
+
volumeRecommendations: output.volumeRecommendations != null
|
|
2251
2181
|
? deserializeAws_json1_0VolumeRecommendations(output.volumeRecommendations, context)
|
|
2252
2182
|
: undefined,
|
|
2253
2183
|
};
|
|
2254
2184
|
};
|
|
2255
2185
|
var deserializeAws_json1_0GetEC2InstanceRecommendationsResponse = function (output, context) {
|
|
2256
2186
|
return {
|
|
2257
|
-
errors: output.errors
|
|
2258
|
-
|
|
2259
|
-
: undefined,
|
|
2260
|
-
instanceRecommendations: output.instanceRecommendations !== undefined && output.instanceRecommendations !== null
|
|
2187
|
+
errors: output.errors != null ? deserializeAws_json1_0GetRecommendationErrors(output.errors, context) : undefined,
|
|
2188
|
+
instanceRecommendations: output.instanceRecommendations != null
|
|
2261
2189
|
? deserializeAws_json1_0InstanceRecommendations(output.instanceRecommendations, context)
|
|
2262
2190
|
: undefined,
|
|
2263
2191
|
nextToken: __expectString(output.nextToken),
|
|
@@ -2265,7 +2193,7 @@ var deserializeAws_json1_0GetEC2InstanceRecommendationsResponse = function (outp
|
|
|
2265
2193
|
};
|
|
2266
2194
|
var deserializeAws_json1_0GetEC2RecommendationProjectedMetricsResponse = function (output, context) {
|
|
2267
2195
|
return {
|
|
2268
|
-
recommendedOptionProjectedMetrics: output.recommendedOptionProjectedMetrics
|
|
2196
|
+
recommendedOptionProjectedMetrics: output.recommendedOptionProjectedMetrics != null
|
|
2269
2197
|
? deserializeAws_json1_0RecommendedOptionProjectedMetrics(output.recommendedOptionProjectedMetrics, context)
|
|
2270
2198
|
: undefined,
|
|
2271
2199
|
};
|
|
@@ -2277,7 +2205,7 @@ var deserializeAws_json1_0GetEffectiveRecommendationPreferencesResponse = functi
|
|
|
2277
2205
|
};
|
|
2278
2206
|
var deserializeAws_json1_0GetEnrollmentStatusesForOrganizationResponse = function (output, context) {
|
|
2279
2207
|
return {
|
|
2280
|
-
accountEnrollmentStatuses: output.accountEnrollmentStatuses
|
|
2208
|
+
accountEnrollmentStatuses: output.accountEnrollmentStatuses != null
|
|
2281
2209
|
? deserializeAws_json1_0AccountEnrollmentStatuses(output.accountEnrollmentStatuses, context)
|
|
2282
2210
|
: undefined,
|
|
2283
2211
|
nextToken: __expectString(output.nextToken),
|
|
@@ -2285,7 +2213,7 @@ var deserializeAws_json1_0GetEnrollmentStatusesForOrganizationResponse = functio
|
|
|
2285
2213
|
};
|
|
2286
2214
|
var deserializeAws_json1_0GetEnrollmentStatusResponse = function (output, context) {
|
|
2287
2215
|
return {
|
|
2288
|
-
lastUpdatedTimestamp: output.lastUpdatedTimestamp
|
|
2216
|
+
lastUpdatedTimestamp: output.lastUpdatedTimestamp != null
|
|
2289
2217
|
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.lastUpdatedTimestamp)))
|
|
2290
2218
|
: undefined,
|
|
2291
2219
|
memberAccountsEnrolled: __expectBoolean(output.memberAccountsEnrolled),
|
|
@@ -2296,7 +2224,7 @@ var deserializeAws_json1_0GetEnrollmentStatusResponse = function (output, contex
|
|
|
2296
2224
|
};
|
|
2297
2225
|
var deserializeAws_json1_0GetLambdaFunctionRecommendationsResponse = function (output, context) {
|
|
2298
2226
|
return {
|
|
2299
|
-
lambdaFunctionRecommendations: output.lambdaFunctionRecommendations
|
|
2227
|
+
lambdaFunctionRecommendations: output.lambdaFunctionRecommendations != null
|
|
2300
2228
|
? deserializeAws_json1_0LambdaFunctionRecommendations(output.lambdaFunctionRecommendations, context)
|
|
2301
2229
|
: undefined,
|
|
2302
2230
|
nextToken: __expectString(output.nextToken),
|
|
@@ -2323,7 +2251,7 @@ var deserializeAws_json1_0GetRecommendationErrors = function (output, context) {
|
|
|
2323
2251
|
var deserializeAws_json1_0GetRecommendationPreferencesResponse = function (output, context) {
|
|
2324
2252
|
return {
|
|
2325
2253
|
nextToken: __expectString(output.nextToken),
|
|
2326
|
-
recommendationPreferencesDetails: output.recommendationPreferencesDetails
|
|
2254
|
+
recommendationPreferencesDetails: output.recommendationPreferencesDetails != null
|
|
2327
2255
|
? deserializeAws_json1_0RecommendationPreferencesDetails(output.recommendationPreferencesDetails, context)
|
|
2328
2256
|
: undefined,
|
|
2329
2257
|
};
|
|
@@ -2331,7 +2259,7 @@ var deserializeAws_json1_0GetRecommendationPreferencesResponse = function (outpu
|
|
|
2331
2259
|
var deserializeAws_json1_0GetRecommendationSummariesResponse = function (output, context) {
|
|
2332
2260
|
return {
|
|
2333
2261
|
nextToken: __expectString(output.nextToken),
|
|
2334
|
-
recommendationSummaries: output.recommendationSummaries
|
|
2262
|
+
recommendationSummaries: output.recommendationSummaries != null
|
|
2335
2263
|
? deserializeAws_json1_0RecommendationSummaries(output.recommendationSummaries, context)
|
|
2336
2264
|
: undefined,
|
|
2337
2265
|
};
|
|
@@ -2352,29 +2280,29 @@ var deserializeAws_json1_0InstanceRecommendation = function (output, context) {
|
|
|
2352
2280
|
accountId: __expectString(output.accountId),
|
|
2353
2281
|
currentInstanceType: __expectString(output.currentInstanceType),
|
|
2354
2282
|
currentPerformanceRisk: __expectString(output.currentPerformanceRisk),
|
|
2355
|
-
effectiveRecommendationPreferences: output.effectiveRecommendationPreferences
|
|
2283
|
+
effectiveRecommendationPreferences: output.effectiveRecommendationPreferences != null
|
|
2356
2284
|
? deserializeAws_json1_0EffectiveRecommendationPreferences(output.effectiveRecommendationPreferences, context)
|
|
2357
2285
|
: undefined,
|
|
2358
2286
|
finding: __expectString(output.finding),
|
|
2359
|
-
findingReasonCodes: output.findingReasonCodes
|
|
2287
|
+
findingReasonCodes: output.findingReasonCodes != null
|
|
2360
2288
|
? deserializeAws_json1_0InstanceRecommendationFindingReasonCodes(output.findingReasonCodes, context)
|
|
2361
2289
|
: undefined,
|
|
2362
|
-
inferredWorkloadTypes: output.inferredWorkloadTypes
|
|
2290
|
+
inferredWorkloadTypes: output.inferredWorkloadTypes != null
|
|
2363
2291
|
? deserializeAws_json1_0InferredWorkloadTypes(output.inferredWorkloadTypes, context)
|
|
2364
2292
|
: undefined,
|
|
2365
2293
|
instanceArn: __expectString(output.instanceArn),
|
|
2366
2294
|
instanceName: __expectString(output.instanceName),
|
|
2367
|
-
lastRefreshTimestamp: output.lastRefreshTimestamp
|
|
2295
|
+
lastRefreshTimestamp: output.lastRefreshTimestamp != null
|
|
2368
2296
|
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.lastRefreshTimestamp)))
|
|
2369
2297
|
: undefined,
|
|
2370
2298
|
lookBackPeriodInDays: __limitedParseDouble(output.lookBackPeriodInDays),
|
|
2371
|
-
recommendationOptions: output.recommendationOptions
|
|
2299
|
+
recommendationOptions: output.recommendationOptions != null
|
|
2372
2300
|
? deserializeAws_json1_0RecommendationOptions(output.recommendationOptions, context)
|
|
2373
2301
|
: undefined,
|
|
2374
|
-
recommendationSources: output.recommendationSources
|
|
2302
|
+
recommendationSources: output.recommendationSources != null
|
|
2375
2303
|
? deserializeAws_json1_0RecommendationSources(output.recommendationSources, context)
|
|
2376
2304
|
: undefined,
|
|
2377
|
-
utilizationMetrics: output.utilizationMetrics
|
|
2305
|
+
utilizationMetrics: output.utilizationMetrics != null
|
|
2378
2306
|
? deserializeAws_json1_0UtilizationMetrics(output.utilizationMetrics, context)
|
|
2379
2307
|
: undefined,
|
|
2380
2308
|
};
|
|
@@ -2395,14 +2323,14 @@ var deserializeAws_json1_0InstanceRecommendationOption = function (output, conte
|
|
|
2395
2323
|
instanceType: __expectString(output.instanceType),
|
|
2396
2324
|
migrationEffort: __expectString(output.migrationEffort),
|
|
2397
2325
|
performanceRisk: __limitedParseDouble(output.performanceRisk),
|
|
2398
|
-
platformDifferences: output.platformDifferences
|
|
2326
|
+
platformDifferences: output.platformDifferences != null
|
|
2399
2327
|
? deserializeAws_json1_0PlatformDifferences(output.platformDifferences, context)
|
|
2400
2328
|
: undefined,
|
|
2401
|
-
projectedUtilizationMetrics: output.projectedUtilizationMetrics
|
|
2329
|
+
projectedUtilizationMetrics: output.projectedUtilizationMetrics != null
|
|
2402
2330
|
? deserializeAws_json1_0ProjectedUtilizationMetrics(output.projectedUtilizationMetrics, context)
|
|
2403
2331
|
: undefined,
|
|
2404
2332
|
rank: __expectInt32(output.rank),
|
|
2405
|
-
savingsOpportunity: output.savingsOpportunity
|
|
2333
|
+
savingsOpportunity: output.savingsOpportunity != null
|
|
2406
2334
|
? deserializeAws_json1_0SavingsOpportunity(output.savingsOpportunity, context)
|
|
2407
2335
|
: undefined,
|
|
2408
2336
|
};
|
|
@@ -2449,11 +2377,11 @@ var deserializeAws_json1_0LambdaFunctionMemoryProjectedMetrics = function (outpu
|
|
|
2449
2377
|
var deserializeAws_json1_0LambdaFunctionMemoryRecommendationOption = function (output, context) {
|
|
2450
2378
|
return {
|
|
2451
2379
|
memorySize: __expectInt32(output.memorySize),
|
|
2452
|
-
projectedUtilizationMetrics: output.projectedUtilizationMetrics
|
|
2380
|
+
projectedUtilizationMetrics: output.projectedUtilizationMetrics != null
|
|
2453
2381
|
? deserializeAws_json1_0LambdaFunctionMemoryProjectedMetrics(output.projectedUtilizationMetrics, context)
|
|
2454
2382
|
: undefined,
|
|
2455
2383
|
rank: __expectInt32(output.rank),
|
|
2456
|
-
savingsOpportunity: output.savingsOpportunity
|
|
2384
|
+
savingsOpportunity: output.savingsOpportunity != null
|
|
2457
2385
|
? deserializeAws_json1_0SavingsOpportunity(output.savingsOpportunity, context)
|
|
2458
2386
|
: undefined,
|
|
2459
2387
|
};
|
|
@@ -2475,20 +2403,20 @@ var deserializeAws_json1_0LambdaFunctionRecommendation = function (output, conte
|
|
|
2475
2403
|
currentMemorySize: __expectInt32(output.currentMemorySize),
|
|
2476
2404
|
currentPerformanceRisk: __expectString(output.currentPerformanceRisk),
|
|
2477
2405
|
finding: __expectString(output.finding),
|
|
2478
|
-
findingReasonCodes: output.findingReasonCodes
|
|
2406
|
+
findingReasonCodes: output.findingReasonCodes != null
|
|
2479
2407
|
? deserializeAws_json1_0LambdaFunctionRecommendationFindingReasonCodes(output.findingReasonCodes, context)
|
|
2480
2408
|
: undefined,
|
|
2481
2409
|
functionArn: __expectString(output.functionArn),
|
|
2482
2410
|
functionVersion: __expectString(output.functionVersion),
|
|
2483
|
-
lastRefreshTimestamp: output.lastRefreshTimestamp
|
|
2411
|
+
lastRefreshTimestamp: output.lastRefreshTimestamp != null
|
|
2484
2412
|
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.lastRefreshTimestamp)))
|
|
2485
2413
|
: undefined,
|
|
2486
2414
|
lookbackPeriodInDays: __limitedParseDouble(output.lookbackPeriodInDays),
|
|
2487
|
-
memorySizeRecommendationOptions: output.memorySizeRecommendationOptions
|
|
2415
|
+
memorySizeRecommendationOptions: output.memorySizeRecommendationOptions != null
|
|
2488
2416
|
? deserializeAws_json1_0LambdaFunctionMemoryRecommendationOptions(output.memorySizeRecommendationOptions, context)
|
|
2489
2417
|
: undefined,
|
|
2490
2418
|
numberOfInvocations: __expectLong(output.numberOfInvocations),
|
|
2491
|
-
utilizationMetrics: output.utilizationMetrics
|
|
2419
|
+
utilizationMetrics: output.utilizationMetrics != null
|
|
2492
2420
|
? deserializeAws_json1_0LambdaFunctionUtilizationMetrics(output.utilizationMetrics, context)
|
|
2493
2421
|
: undefined,
|
|
2494
2422
|
};
|
|
@@ -2573,12 +2501,8 @@ var deserializeAws_json1_0PlatformDifferences = function (output, context) {
|
|
|
2573
2501
|
var deserializeAws_json1_0ProjectedMetric = function (output, context) {
|
|
2574
2502
|
return {
|
|
2575
2503
|
name: __expectString(output.name),
|
|
2576
|
-
timestamps: output.timestamps
|
|
2577
|
-
|
|
2578
|
-
: undefined,
|
|
2579
|
-
values: output.values !== undefined && output.values !== null
|
|
2580
|
-
? deserializeAws_json1_0MetricValues(output.values, context)
|
|
2581
|
-
: undefined,
|
|
2504
|
+
timestamps: output.timestamps != null ? deserializeAws_json1_0Timestamps(output.timestamps, context) : undefined,
|
|
2505
|
+
values: output.values != null ? deserializeAws_json1_0MetricValues(output.values, context) : undefined,
|
|
2582
2506
|
};
|
|
2583
2507
|
};
|
|
2584
2508
|
var deserializeAws_json1_0ProjectedMetrics = function (output, context) {
|
|
@@ -2625,15 +2549,13 @@ var deserializeAws_json1_0ReasonCodeSummary = function (output, context) {
|
|
|
2625
2549
|
};
|
|
2626
2550
|
var deserializeAws_json1_0RecommendationExportJob = function (output, context) {
|
|
2627
2551
|
return {
|
|
2628
|
-
creationTimestamp: output.creationTimestamp
|
|
2552
|
+
creationTimestamp: output.creationTimestamp != null
|
|
2629
2553
|
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.creationTimestamp)))
|
|
2630
2554
|
: undefined,
|
|
2631
|
-
destination: output.destination
|
|
2632
|
-
? deserializeAws_json1_0ExportDestination(output.destination, context)
|
|
2633
|
-
: undefined,
|
|
2555
|
+
destination: output.destination != null ? deserializeAws_json1_0ExportDestination(output.destination, context) : undefined,
|
|
2634
2556
|
failureReason: __expectString(output.failureReason),
|
|
2635
2557
|
jobId: __expectString(output.jobId),
|
|
2636
|
-
lastUpdatedTimestamp: output.lastUpdatedTimestamp
|
|
2558
|
+
lastUpdatedTimestamp: output.lastUpdatedTimestamp != null
|
|
2637
2559
|
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.lastUpdatedTimestamp)))
|
|
2638
2560
|
: undefined,
|
|
2639
2561
|
resourceType: __expectString(output.resourceType),
|
|
@@ -2667,9 +2589,7 @@ var deserializeAws_json1_0RecommendationPreferencesDetail = function (output, co
|
|
|
2667
2589
|
enhancedInfrastructureMetrics: __expectString(output.enhancedInfrastructureMetrics),
|
|
2668
2590
|
inferredWorkloadTypes: __expectString(output.inferredWorkloadTypes),
|
|
2669
2591
|
resourceType: __expectString(output.resourceType),
|
|
2670
|
-
scope: output.scope
|
|
2671
|
-
? deserializeAws_json1_0Scope(output.scope, context)
|
|
2672
|
-
: undefined,
|
|
2592
|
+
scope: output.scope != null ? deserializeAws_json1_0Scope(output.scope, context) : undefined,
|
|
2673
2593
|
};
|
|
2674
2594
|
};
|
|
2675
2595
|
var deserializeAws_json1_0RecommendationPreferencesDetails = function (output, context) {
|
|
@@ -2714,21 +2634,19 @@ var deserializeAws_json1_0RecommendationSummaries = function (output, context) {
|
|
|
2714
2634
|
var deserializeAws_json1_0RecommendationSummary = function (output, context) {
|
|
2715
2635
|
return {
|
|
2716
2636
|
accountId: __expectString(output.accountId),
|
|
2717
|
-
currentPerformanceRiskRatings: output.currentPerformanceRiskRatings
|
|
2637
|
+
currentPerformanceRiskRatings: output.currentPerformanceRiskRatings != null
|
|
2718
2638
|
? deserializeAws_json1_0CurrentPerformanceRiskRatings(output.currentPerformanceRiskRatings, context)
|
|
2719
2639
|
: undefined,
|
|
2720
2640
|
recommendationResourceType: __expectString(output.recommendationResourceType),
|
|
2721
|
-
savingsOpportunity: output.savingsOpportunity
|
|
2641
|
+
savingsOpportunity: output.savingsOpportunity != null
|
|
2722
2642
|
? deserializeAws_json1_0SavingsOpportunity(output.savingsOpportunity, context)
|
|
2723
2643
|
: undefined,
|
|
2724
|
-
summaries: output.summaries
|
|
2725
|
-
? deserializeAws_json1_0Summaries(output.summaries, context)
|
|
2726
|
-
: undefined,
|
|
2644
|
+
summaries: output.summaries != null ? deserializeAws_json1_0Summaries(output.summaries, context) : undefined,
|
|
2727
2645
|
};
|
|
2728
2646
|
};
|
|
2729
2647
|
var deserializeAws_json1_0RecommendedOptionProjectedMetric = function (output, context) {
|
|
2730
2648
|
return {
|
|
2731
|
-
projectedMetrics: output.projectedMetrics
|
|
2649
|
+
projectedMetrics: output.projectedMetrics != null
|
|
2732
2650
|
? deserializeAws_json1_0ProjectedMetrics(output.projectedMetrics, context)
|
|
2733
2651
|
: undefined,
|
|
2734
2652
|
rank: __expectInt32(output.rank),
|
|
@@ -2760,7 +2678,7 @@ var deserializeAws_json1_0S3Destination = function (output, context) {
|
|
|
2760
2678
|
};
|
|
2761
2679
|
var deserializeAws_json1_0SavingsOpportunity = function (output, context) {
|
|
2762
2680
|
return {
|
|
2763
|
-
estimatedMonthlySavings: output.estimatedMonthlySavings
|
|
2681
|
+
estimatedMonthlySavings: output.estimatedMonthlySavings != null
|
|
2764
2682
|
? deserializeAws_json1_0EstimatedMonthlySavings(output.estimatedMonthlySavings, context)
|
|
2765
2683
|
: undefined,
|
|
2766
2684
|
savingsOpportunityPercentage: __limitedParseDouble(output.savingsOpportunityPercentage),
|
|
@@ -2791,7 +2709,7 @@ var deserializeAws_json1_0Summaries = function (output, context) {
|
|
|
2791
2709
|
var deserializeAws_json1_0Summary = function (output, context) {
|
|
2792
2710
|
return {
|
|
2793
2711
|
name: __expectString(output.name),
|
|
2794
|
-
reasonCodeSummaries: output.reasonCodeSummaries
|
|
2712
|
+
reasonCodeSummaries: output.reasonCodeSummaries != null
|
|
2795
2713
|
? deserializeAws_json1_0ReasonCodeSummaries(output.reasonCodeSummaries, context)
|
|
2796
2714
|
: undefined,
|
|
2797
2715
|
value: __limitedParseDouble(output.value),
|
|
@@ -2850,32 +2768,32 @@ var deserializeAws_json1_0VolumeConfiguration = function (output, context) {
|
|
|
2850
2768
|
var deserializeAws_json1_0VolumeRecommendation = function (output, context) {
|
|
2851
2769
|
return {
|
|
2852
2770
|
accountId: __expectString(output.accountId),
|
|
2853
|
-
currentConfiguration: output.currentConfiguration
|
|
2771
|
+
currentConfiguration: output.currentConfiguration != null
|
|
2854
2772
|
? deserializeAws_json1_0VolumeConfiguration(output.currentConfiguration, context)
|
|
2855
2773
|
: undefined,
|
|
2856
2774
|
currentPerformanceRisk: __expectString(output.currentPerformanceRisk),
|
|
2857
2775
|
finding: __expectString(output.finding),
|
|
2858
|
-
lastRefreshTimestamp: output.lastRefreshTimestamp
|
|
2776
|
+
lastRefreshTimestamp: output.lastRefreshTimestamp != null
|
|
2859
2777
|
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.lastRefreshTimestamp)))
|
|
2860
2778
|
: undefined,
|
|
2861
2779
|
lookBackPeriodInDays: __limitedParseDouble(output.lookBackPeriodInDays),
|
|
2862
|
-
utilizationMetrics: output.utilizationMetrics
|
|
2780
|
+
utilizationMetrics: output.utilizationMetrics != null
|
|
2863
2781
|
? deserializeAws_json1_0EBSUtilizationMetrics(output.utilizationMetrics, context)
|
|
2864
2782
|
: undefined,
|
|
2865
2783
|
volumeArn: __expectString(output.volumeArn),
|
|
2866
|
-
volumeRecommendationOptions: output.volumeRecommendationOptions
|
|
2784
|
+
volumeRecommendationOptions: output.volumeRecommendationOptions != null
|
|
2867
2785
|
? deserializeAws_json1_0VolumeRecommendationOptions(output.volumeRecommendationOptions, context)
|
|
2868
2786
|
: undefined,
|
|
2869
2787
|
};
|
|
2870
2788
|
};
|
|
2871
2789
|
var deserializeAws_json1_0VolumeRecommendationOption = function (output, context) {
|
|
2872
2790
|
return {
|
|
2873
|
-
configuration: output.configuration
|
|
2791
|
+
configuration: output.configuration != null
|
|
2874
2792
|
? deserializeAws_json1_0VolumeConfiguration(output.configuration, context)
|
|
2875
2793
|
: undefined,
|
|
2876
2794
|
performanceRisk: __limitedParseDouble(output.performanceRisk),
|
|
2877
2795
|
rank: __expectInt32(output.rank),
|
|
2878
|
-
savingsOpportunity: output.savingsOpportunity
|
|
2796
|
+
savingsOpportunity: output.savingsOpportunity != null
|
|
2879
2797
|
? deserializeAws_json1_0SavingsOpportunity(output.savingsOpportunity, context)
|
|
2880
2798
|
: undefined,
|
|
2881
2799
|
};
|
|
@@ -2958,6 +2876,9 @@ var loadRestJsonErrorCode = function (output, data) {
|
|
|
2958
2876
|
var findKey = function (object, key) { return Object.keys(object).find(function (k) { return k.toLowerCase() === key.toLowerCase(); }); };
|
|
2959
2877
|
var sanitizeErrorCode = function (rawValue) {
|
|
2960
2878
|
var cleanValue = rawValue;
|
|
2879
|
+
if (typeof cleanValue === "number") {
|
|
2880
|
+
cleanValue = cleanValue.toString();
|
|
2881
|
+
}
|
|
2961
2882
|
if (cleanValue.indexOf(":") >= 0) {
|
|
2962
2883
|
cleanValue = cleanValue.split(":")[0];
|
|
2963
2884
|
}
|