@aws-sdk/client-compute-optimizer 3.218.0 → 3.219.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/dist-cjs/endpoint/ruleset.js +1 -1
- package/dist-cjs/models/models_0.js +16 -3
- package/dist-cjs/protocols/Aws_json1_0.js +22 -0
- package/dist-es/endpoint/ruleset.js +1 -1
- package/dist-es/models/models_0.js +12 -0
- package/dist-es/protocols/Aws_json1_0.js +22 -0
- package/dist-types/endpoint/EndpointParameters.d.ts +1 -1
- package/dist-types/models/models_0.d.ts +80 -9
- package/dist-types/ts3.4/endpoint/EndpointParameters.d.ts +1 -1
- package/dist-types/ts3.4/models/models_0.d.ts +18 -0
- package/package.json +1 -1
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
4
|
-
exports.
|
|
5
|
-
exports.UpdateEnrollmentStatusResponseFilterSensitiveLog = exports.UpdateEnrollmentStatusRequestFilterSensitiveLog = exports.PutRecommendationPreferencesResponseFilterSensitiveLog = exports.PutRecommendationPreferencesRequestFilterSensitiveLog = exports.GetRecommendationSummariesResponseFilterSensitiveLog = exports.RecommendationSummaryFilterSensitiveLog = exports.SummaryFilterSensitiveLog = exports.ReasonCodeSummaryFilterSensitiveLog = exports.CurrentPerformanceRiskRatingsFilterSensitiveLog = exports.GetRecommendationSummariesRequestFilterSensitiveLog = exports.GetRecommendationPreferencesResponseFilterSensitiveLog = exports.RecommendationPreferencesDetailFilterSensitiveLog = exports.GetRecommendationPreferencesRequestFilterSensitiveLog = exports.GetLambdaFunctionRecommendationsResponseFilterSensitiveLog = exports.LambdaFunctionRecommendationFilterSensitiveLog = exports.LambdaFunctionUtilizationMetricFilterSensitiveLog = exports.LambdaFunctionMemoryRecommendationOptionFilterSensitiveLog = exports.LambdaFunctionMemoryProjectedMetricFilterSensitiveLog = exports.GetLambdaFunctionRecommendationsRequestFilterSensitiveLog = exports.GetEnrollmentStatusesForOrganizationResponseFilterSensitiveLog = void 0;
|
|
3
|
+
exports.ExternalMetricsPreferenceFilterSensitiveLog = exports.AutoScalingGroupConfigurationFilterSensitiveLog = exports.AccountEnrollmentStatusFilterSensitiveLog = exports.FindingReasonCode = exports.LambdaFunctionMetricStatistic = exports.LambdaFunctionMetricName = exports.LambdaFunctionMemoryMetricStatistic = exports.LambdaFunctionMemoryMetricName = exports.LambdaFunctionRecommendationFindingReasonCode = exports.LambdaFunctionRecommendationFinding = exports.EnrollmentFilterName = exports.RecommendationSourceType = exports.PlatformDifference = exports.InstanceRecommendationFindingReasonCode = exports.EBSMetricName = exports.EBSFinding = exports.LambdaFunctionRecommendationFilterName = exports.ExportableLambdaFunctionField = exports.ExportableInstanceField = exports.EBSFilterName = exports.ExportableVolumeField = exports.LimitExceededException = exports.FilterName = exports.FileFormat = exports.ExportableAutoScalingGroupField = exports.JobStatus = exports.JobFilterName = exports.ThrottlingException = exports.ServiceUnavailableException = exports.ResourceNotFoundException = exports.OptInRequiredException = exports.MissingAuthenticationToken = exports.InvalidParameterValueException = exports.InternalServerException = exports.ScopeName = exports.ResourceType = exports.RecommendationPreferenceName = exports.Currency = exports.MetricStatistic = exports.MetricName = exports.MigrationEffort = exports.InferredWorkloadType = exports.Finding = exports.InferredWorkloadTypesPreference = exports.ExternalMetricsSource = exports.EnhancedInfrastructureMetrics = exports.CpuVendorArchitecture = exports.CurrentPerformanceRisk = exports.Status = exports.AccessDeniedException = void 0;
|
|
4
|
+
exports.GetEnrollmentStatusResponseFilterSensitiveLog = exports.GetEnrollmentStatusRequestFilterSensitiveLog = exports.GetEffectiveRecommendationPreferencesResponseFilterSensitiveLog = exports.GetEffectiveRecommendationPreferencesRequestFilterSensitiveLog = exports.GetEC2RecommendationProjectedMetricsResponseFilterSensitiveLog = exports.RecommendedOptionProjectedMetricFilterSensitiveLog = exports.ProjectedMetricFilterSensitiveLog = exports.GetEC2RecommendationProjectedMetricsRequestFilterSensitiveLog = exports.GetEC2InstanceRecommendationsResponseFilterSensitiveLog = exports.InstanceRecommendationFilterSensitiveLog = exports.RecommendationSourceFilterSensitiveLog = exports.InstanceRecommendationOptionFilterSensitiveLog = exports.GetEC2InstanceRecommendationsRequestFilterSensitiveLog = exports.GetEBSVolumeRecommendationsResponseFilterSensitiveLog = exports.VolumeRecommendationFilterSensitiveLog = exports.VolumeRecommendationOptionFilterSensitiveLog = exports.EBSUtilizationMetricFilterSensitiveLog = exports.VolumeConfigurationFilterSensitiveLog = exports.GetEBSVolumeRecommendationsRequestFilterSensitiveLog = exports.GetAutoScalingGroupRecommendationsResponseFilterSensitiveLog = exports.GetRecommendationErrorFilterSensitiveLog = exports.GetAutoScalingGroupRecommendationsRequestFilterSensitiveLog = exports.ExportLambdaFunctionRecommendationsResponseFilterSensitiveLog = exports.ExportLambdaFunctionRecommendationsRequestFilterSensitiveLog = exports.LambdaFunctionRecommendationFilterFilterSensitiveLog = exports.ExportEC2InstanceRecommendationsResponseFilterSensitiveLog = exports.ExportEC2InstanceRecommendationsRequestFilterSensitiveLog = exports.ExportEBSVolumeRecommendationsResponseFilterSensitiveLog = exports.ExportEBSVolumeRecommendationsRequestFilterSensitiveLog = exports.EBSFilterFilterSensitiveLog = exports.ExportAutoScalingGroupRecommendationsResponseFilterSensitiveLog = exports.ExportAutoScalingGroupRecommendationsRequestFilterSensitiveLog = exports.S3DestinationConfigFilterSensitiveLog = exports.RecommendationPreferencesFilterSensitiveLog = exports.FilterFilterSensitiveLog = exports.DescribeRecommendationExportJobsResponseFilterSensitiveLog = exports.RecommendationExportJobFilterSensitiveLog = exports.ExportDestinationFilterSensitiveLog = exports.S3DestinationFilterSensitiveLog = exports.DescribeRecommendationExportJobsRequestFilterSensitiveLog = exports.JobFilterFilterSensitiveLog = exports.DeleteRecommendationPreferencesResponseFilterSensitiveLog = exports.DeleteRecommendationPreferencesRequestFilterSensitiveLog = exports.ScopeFilterSensitiveLog = exports.AutoScalingGroupRecommendationFilterSensitiveLog = exports.AutoScalingGroupRecommendationOptionFilterSensitiveLog = exports.SavingsOpportunityFilterSensitiveLog = exports.EstimatedMonthlySavingsFilterSensitiveLog = exports.UtilizationMetricFilterSensitiveLog = exports.EffectiveRecommendationPreferencesFilterSensitiveLog = void 0;
|
|
5
|
+
exports.UpdateEnrollmentStatusResponseFilterSensitiveLog = exports.UpdateEnrollmentStatusRequestFilterSensitiveLog = exports.PutRecommendationPreferencesResponseFilterSensitiveLog = exports.PutRecommendationPreferencesRequestFilterSensitiveLog = exports.GetRecommendationSummariesResponseFilterSensitiveLog = exports.RecommendationSummaryFilterSensitiveLog = exports.SummaryFilterSensitiveLog = exports.ReasonCodeSummaryFilterSensitiveLog = exports.CurrentPerformanceRiskRatingsFilterSensitiveLog = exports.GetRecommendationSummariesRequestFilterSensitiveLog = exports.GetRecommendationPreferencesResponseFilterSensitiveLog = exports.RecommendationPreferencesDetailFilterSensitiveLog = exports.GetRecommendationPreferencesRequestFilterSensitiveLog = exports.GetLambdaFunctionRecommendationsResponseFilterSensitiveLog = exports.LambdaFunctionRecommendationFilterSensitiveLog = exports.LambdaFunctionUtilizationMetricFilterSensitiveLog = exports.LambdaFunctionMemoryRecommendationOptionFilterSensitiveLog = exports.LambdaFunctionMemoryProjectedMetricFilterSensitiveLog = exports.GetLambdaFunctionRecommendationsRequestFilterSensitiveLog = exports.GetEnrollmentStatusesForOrganizationResponseFilterSensitiveLog = exports.GetEnrollmentStatusesForOrganizationRequestFilterSensitiveLog = exports.EnrollmentFilterFilterSensitiveLog = void 0;
|
|
6
6
|
const ComputeOptimizerServiceException_1 = require("./ComputeOptimizerServiceException");
|
|
7
7
|
class AccessDeniedException extends ComputeOptimizerServiceException_1.ComputeOptimizerServiceException {
|
|
8
8
|
constructor(opts) {
|
|
@@ -41,6 +41,13 @@ var EnhancedInfrastructureMetrics;
|
|
|
41
41
|
EnhancedInfrastructureMetrics["ACTIVE"] = "Active";
|
|
42
42
|
EnhancedInfrastructureMetrics["INACTIVE"] = "Inactive";
|
|
43
43
|
})(EnhancedInfrastructureMetrics = exports.EnhancedInfrastructureMetrics || (exports.EnhancedInfrastructureMetrics = {}));
|
|
44
|
+
var ExternalMetricsSource;
|
|
45
|
+
(function (ExternalMetricsSource) {
|
|
46
|
+
ExternalMetricsSource["DATADOG"] = "Datadog";
|
|
47
|
+
ExternalMetricsSource["DYNATRACE"] = "Dynatrace";
|
|
48
|
+
ExternalMetricsSource["INSTANA"] = "Instana";
|
|
49
|
+
ExternalMetricsSource["NEWRELIC"] = "NewRelic";
|
|
50
|
+
})(ExternalMetricsSource = exports.ExternalMetricsSource || (exports.ExternalMetricsSource = {}));
|
|
44
51
|
var InferredWorkloadTypesPreference;
|
|
45
52
|
(function (InferredWorkloadTypesPreference) {
|
|
46
53
|
InferredWorkloadTypesPreference["ACTIVE"] = "Active";
|
|
@@ -100,6 +107,7 @@ var Currency;
|
|
|
100
107
|
var RecommendationPreferenceName;
|
|
101
108
|
(function (RecommendationPreferenceName) {
|
|
102
109
|
RecommendationPreferenceName["ENHANCED_INFRASTRUCTURE_METRICS"] = "EnhancedInfrastructureMetrics";
|
|
110
|
+
RecommendationPreferenceName["EXTERNAL_METRICS_PREFERENCE"] = "ExternalMetricsPreference";
|
|
103
111
|
RecommendationPreferenceName["INFERRED_WORKLOAD_TYPES"] = "InferredWorkloadTypes";
|
|
104
112
|
})(RecommendationPreferenceName = exports.RecommendationPreferenceName || (exports.RecommendationPreferenceName = {}));
|
|
105
113
|
var ResourceType;
|
|
@@ -348,6 +356,7 @@ var ExportableInstanceField;
|
|
|
348
356
|
ExportableInstanceField["CURRENT_VCPUS"] = "CurrentVCpus";
|
|
349
357
|
ExportableInstanceField["EFFECTIVE_RECOMMENDATION_PREFERENCES_CPU_VENDOR_ARCHITECTURES"] = "EffectiveRecommendationPreferencesCpuVendorArchitectures";
|
|
350
358
|
ExportableInstanceField["EFFECTIVE_RECOMMENDATION_PREFERENCES_ENHANCED_INFRASTRUCTURE_METRICS"] = "EffectiveRecommendationPreferencesEnhancedInfrastructureMetrics";
|
|
359
|
+
ExportableInstanceField["EFFECTIVE_RECOMMENDATION_PREFERENCES_EXTERNAL_METRICS_SOURCE"] = "EffectiveRecommendationPreferencesExternalMetricsSource";
|
|
351
360
|
ExportableInstanceField["EFFECTIVE_RECOMMENDATION_PREFERENCES_INFERRED_WORKLOAD_TYPES"] = "EffectiveRecommendationPreferencesInferredWorkloadTypes";
|
|
352
361
|
ExportableInstanceField["FINDING"] = "Finding";
|
|
353
362
|
ExportableInstanceField["Finding_Reason_Codes"] = "FindingReasonCodes";
|
|
@@ -520,6 +529,10 @@ const AutoScalingGroupConfigurationFilterSensitiveLog = (obj) => ({
|
|
|
520
529
|
...obj,
|
|
521
530
|
});
|
|
522
531
|
exports.AutoScalingGroupConfigurationFilterSensitiveLog = AutoScalingGroupConfigurationFilterSensitiveLog;
|
|
532
|
+
const ExternalMetricsPreferenceFilterSensitiveLog = (obj) => ({
|
|
533
|
+
...obj,
|
|
534
|
+
});
|
|
535
|
+
exports.ExternalMetricsPreferenceFilterSensitiveLog = ExternalMetricsPreferenceFilterSensitiveLog;
|
|
523
536
|
const EffectiveRecommendationPreferencesFilterSensitiveLog = (obj) => ({
|
|
524
537
|
...obj,
|
|
525
538
|
});
|
|
@@ -1391,6 +1391,11 @@ const serializeAws_json1_0ExportLambdaFunctionRecommendationsRequest = (input, c
|
|
|
1391
1391
|
}),
|
|
1392
1392
|
};
|
|
1393
1393
|
};
|
|
1394
|
+
const serializeAws_json1_0ExternalMetricsPreference = (input, context) => {
|
|
1395
|
+
return {
|
|
1396
|
+
...(input.source != null && { source: input.source }),
|
|
1397
|
+
};
|
|
1398
|
+
};
|
|
1394
1399
|
const serializeAws_json1_0Filter = (input, context) => {
|
|
1395
1400
|
return {
|
|
1396
1401
|
...(input.name != null && { name: input.name }),
|
|
@@ -1551,6 +1556,9 @@ const serializeAws_json1_0PutRecommendationPreferencesRequest = (input, context)
|
|
|
1551
1556
|
...(input.enhancedInfrastructureMetrics != null && {
|
|
1552
1557
|
enhancedInfrastructureMetrics: input.enhancedInfrastructureMetrics,
|
|
1553
1558
|
}),
|
|
1559
|
+
...(input.externalMetricsPreference != null && {
|
|
1560
|
+
externalMetricsPreference: serializeAws_json1_0ExternalMetricsPreference(input.externalMetricsPreference, context),
|
|
1561
|
+
}),
|
|
1554
1562
|
...(input.inferredWorkloadTypes != null && { inferredWorkloadTypes: input.inferredWorkloadTypes }),
|
|
1555
1563
|
...(input.resourceType != null && { resourceType: input.resourceType }),
|
|
1556
1564
|
...(input.scope != null && { scope: serializeAws_json1_0Scope(input.scope, context) }),
|
|
@@ -1749,6 +1757,9 @@ const deserializeAws_json1_0EffectiveRecommendationPreferences = (output, contex
|
|
|
1749
1757
|
? deserializeAws_json1_0CpuVendorArchitectures(output.cpuVendorArchitectures, context)
|
|
1750
1758
|
: undefined,
|
|
1751
1759
|
enhancedInfrastructureMetrics: (0, smithy_client_1.expectString)(output.enhancedInfrastructureMetrics),
|
|
1760
|
+
externalMetricsPreference: output.externalMetricsPreference != null
|
|
1761
|
+
? deserializeAws_json1_0ExternalMetricsPreference(output.externalMetricsPreference, context)
|
|
1762
|
+
: undefined,
|
|
1752
1763
|
inferredWorkloadTypes: (0, smithy_client_1.expectString)(output.inferredWorkloadTypes),
|
|
1753
1764
|
};
|
|
1754
1765
|
};
|
|
@@ -1787,6 +1798,11 @@ const deserializeAws_json1_0ExportLambdaFunctionRecommendationsResponse = (outpu
|
|
|
1787
1798
|
s3Destination: output.s3Destination != null ? deserializeAws_json1_0S3Destination(output.s3Destination, context) : undefined,
|
|
1788
1799
|
};
|
|
1789
1800
|
};
|
|
1801
|
+
const deserializeAws_json1_0ExternalMetricsPreference = (output, context) => {
|
|
1802
|
+
return {
|
|
1803
|
+
source: (0, smithy_client_1.expectString)(output.source),
|
|
1804
|
+
};
|
|
1805
|
+
};
|
|
1790
1806
|
const deserializeAws_json1_0GetAutoScalingGroupRecommendationsResponse = (output, context) => {
|
|
1791
1807
|
return {
|
|
1792
1808
|
autoScalingGroupRecommendations: output.autoScalingGroupRecommendations != null
|
|
@@ -1824,6 +1840,9 @@ const deserializeAws_json1_0GetEC2RecommendationProjectedMetricsResponse = (outp
|
|
|
1824
1840
|
const deserializeAws_json1_0GetEffectiveRecommendationPreferencesResponse = (output, context) => {
|
|
1825
1841
|
return {
|
|
1826
1842
|
enhancedInfrastructureMetrics: (0, smithy_client_1.expectString)(output.enhancedInfrastructureMetrics),
|
|
1843
|
+
externalMetricsPreference: output.externalMetricsPreference != null
|
|
1844
|
+
? deserializeAws_json1_0ExternalMetricsPreference(output.externalMetricsPreference, context)
|
|
1845
|
+
: undefined,
|
|
1827
1846
|
};
|
|
1828
1847
|
};
|
|
1829
1848
|
const deserializeAws_json1_0GetEnrollmentStatusesForOrganizationResponse = (output, context) => {
|
|
@@ -2210,6 +2229,9 @@ const deserializeAws_json1_0RecommendationOptions = (output, context) => {
|
|
|
2210
2229
|
const deserializeAws_json1_0RecommendationPreferencesDetail = (output, context) => {
|
|
2211
2230
|
return {
|
|
2212
2231
|
enhancedInfrastructureMetrics: (0, smithy_client_1.expectString)(output.enhancedInfrastructureMetrics),
|
|
2232
|
+
externalMetricsPreference: output.externalMetricsPreference != null
|
|
2233
|
+
? deserializeAws_json1_0ExternalMetricsPreference(output.externalMetricsPreference, context)
|
|
2234
|
+
: undefined,
|
|
2213
2235
|
inferredWorkloadTypes: (0, smithy_client_1.expectString)(output.inferredWorkloadTypes),
|
|
2214
2236
|
resourceType: (0, smithy_client_1.expectString)(output.resourceType),
|
|
2215
2237
|
scope: output.scope != null ? deserializeAws_json1_0Scope(output.scope, context) : undefined,
|
|
@@ -35,6 +35,13 @@ export var EnhancedInfrastructureMetrics;
|
|
|
35
35
|
EnhancedInfrastructureMetrics["ACTIVE"] = "Active";
|
|
36
36
|
EnhancedInfrastructureMetrics["INACTIVE"] = "Inactive";
|
|
37
37
|
})(EnhancedInfrastructureMetrics || (EnhancedInfrastructureMetrics = {}));
|
|
38
|
+
export var ExternalMetricsSource;
|
|
39
|
+
(function (ExternalMetricsSource) {
|
|
40
|
+
ExternalMetricsSource["DATADOG"] = "Datadog";
|
|
41
|
+
ExternalMetricsSource["DYNATRACE"] = "Dynatrace";
|
|
42
|
+
ExternalMetricsSource["INSTANA"] = "Instana";
|
|
43
|
+
ExternalMetricsSource["NEWRELIC"] = "NewRelic";
|
|
44
|
+
})(ExternalMetricsSource || (ExternalMetricsSource = {}));
|
|
38
45
|
export var InferredWorkloadTypesPreference;
|
|
39
46
|
(function (InferredWorkloadTypesPreference) {
|
|
40
47
|
InferredWorkloadTypesPreference["ACTIVE"] = "Active";
|
|
@@ -94,6 +101,7 @@ export var Currency;
|
|
|
94
101
|
export var RecommendationPreferenceName;
|
|
95
102
|
(function (RecommendationPreferenceName) {
|
|
96
103
|
RecommendationPreferenceName["ENHANCED_INFRASTRUCTURE_METRICS"] = "EnhancedInfrastructureMetrics";
|
|
104
|
+
RecommendationPreferenceName["EXTERNAL_METRICS_PREFERENCE"] = "ExternalMetricsPreference";
|
|
97
105
|
RecommendationPreferenceName["INFERRED_WORKLOAD_TYPES"] = "InferredWorkloadTypes";
|
|
98
106
|
})(RecommendationPreferenceName || (RecommendationPreferenceName = {}));
|
|
99
107
|
export var ResourceType;
|
|
@@ -334,6 +342,7 @@ export var ExportableInstanceField;
|
|
|
334
342
|
ExportableInstanceField["CURRENT_VCPUS"] = "CurrentVCpus";
|
|
335
343
|
ExportableInstanceField["EFFECTIVE_RECOMMENDATION_PREFERENCES_CPU_VENDOR_ARCHITECTURES"] = "EffectiveRecommendationPreferencesCpuVendorArchitectures";
|
|
336
344
|
ExportableInstanceField["EFFECTIVE_RECOMMENDATION_PREFERENCES_ENHANCED_INFRASTRUCTURE_METRICS"] = "EffectiveRecommendationPreferencesEnhancedInfrastructureMetrics";
|
|
345
|
+
ExportableInstanceField["EFFECTIVE_RECOMMENDATION_PREFERENCES_EXTERNAL_METRICS_SOURCE"] = "EffectiveRecommendationPreferencesExternalMetricsSource";
|
|
337
346
|
ExportableInstanceField["EFFECTIVE_RECOMMENDATION_PREFERENCES_INFERRED_WORKLOAD_TYPES"] = "EffectiveRecommendationPreferencesInferredWorkloadTypes";
|
|
338
347
|
ExportableInstanceField["FINDING"] = "Finding";
|
|
339
348
|
ExportableInstanceField["Finding_Reason_Codes"] = "FindingReasonCodes";
|
|
@@ -504,6 +513,9 @@ export const AccountEnrollmentStatusFilterSensitiveLog = (obj) => ({
|
|
|
504
513
|
export const AutoScalingGroupConfigurationFilterSensitiveLog = (obj) => ({
|
|
505
514
|
...obj,
|
|
506
515
|
});
|
|
516
|
+
export const ExternalMetricsPreferenceFilterSensitiveLog = (obj) => ({
|
|
517
|
+
...obj,
|
|
518
|
+
});
|
|
507
519
|
export const EffectiveRecommendationPreferencesFilterSensitiveLog = (obj) => ({
|
|
508
520
|
...obj,
|
|
509
521
|
});
|
|
@@ -1352,6 +1352,11 @@ const serializeAws_json1_0ExportLambdaFunctionRecommendationsRequest = (input, c
|
|
|
1352
1352
|
}),
|
|
1353
1353
|
};
|
|
1354
1354
|
};
|
|
1355
|
+
const serializeAws_json1_0ExternalMetricsPreference = (input, context) => {
|
|
1356
|
+
return {
|
|
1357
|
+
...(input.source != null && { source: input.source }),
|
|
1358
|
+
};
|
|
1359
|
+
};
|
|
1355
1360
|
const serializeAws_json1_0Filter = (input, context) => {
|
|
1356
1361
|
return {
|
|
1357
1362
|
...(input.name != null && { name: input.name }),
|
|
@@ -1512,6 +1517,9 @@ const serializeAws_json1_0PutRecommendationPreferencesRequest = (input, context)
|
|
|
1512
1517
|
...(input.enhancedInfrastructureMetrics != null && {
|
|
1513
1518
|
enhancedInfrastructureMetrics: input.enhancedInfrastructureMetrics,
|
|
1514
1519
|
}),
|
|
1520
|
+
...(input.externalMetricsPreference != null && {
|
|
1521
|
+
externalMetricsPreference: serializeAws_json1_0ExternalMetricsPreference(input.externalMetricsPreference, context),
|
|
1522
|
+
}),
|
|
1515
1523
|
...(input.inferredWorkloadTypes != null && { inferredWorkloadTypes: input.inferredWorkloadTypes }),
|
|
1516
1524
|
...(input.resourceType != null && { resourceType: input.resourceType }),
|
|
1517
1525
|
...(input.scope != null && { scope: serializeAws_json1_0Scope(input.scope, context) }),
|
|
@@ -1710,6 +1718,9 @@ const deserializeAws_json1_0EffectiveRecommendationPreferences = (output, contex
|
|
|
1710
1718
|
? deserializeAws_json1_0CpuVendorArchitectures(output.cpuVendorArchitectures, context)
|
|
1711
1719
|
: undefined,
|
|
1712
1720
|
enhancedInfrastructureMetrics: __expectString(output.enhancedInfrastructureMetrics),
|
|
1721
|
+
externalMetricsPreference: output.externalMetricsPreference != null
|
|
1722
|
+
? deserializeAws_json1_0ExternalMetricsPreference(output.externalMetricsPreference, context)
|
|
1723
|
+
: undefined,
|
|
1713
1724
|
inferredWorkloadTypes: __expectString(output.inferredWorkloadTypes),
|
|
1714
1725
|
};
|
|
1715
1726
|
};
|
|
@@ -1748,6 +1759,11 @@ const deserializeAws_json1_0ExportLambdaFunctionRecommendationsResponse = (outpu
|
|
|
1748
1759
|
s3Destination: output.s3Destination != null ? deserializeAws_json1_0S3Destination(output.s3Destination, context) : undefined,
|
|
1749
1760
|
};
|
|
1750
1761
|
};
|
|
1762
|
+
const deserializeAws_json1_0ExternalMetricsPreference = (output, context) => {
|
|
1763
|
+
return {
|
|
1764
|
+
source: __expectString(output.source),
|
|
1765
|
+
};
|
|
1766
|
+
};
|
|
1751
1767
|
const deserializeAws_json1_0GetAutoScalingGroupRecommendationsResponse = (output, context) => {
|
|
1752
1768
|
return {
|
|
1753
1769
|
autoScalingGroupRecommendations: output.autoScalingGroupRecommendations != null
|
|
@@ -1785,6 +1801,9 @@ const deserializeAws_json1_0GetEC2RecommendationProjectedMetricsResponse = (outp
|
|
|
1785
1801
|
const deserializeAws_json1_0GetEffectiveRecommendationPreferencesResponse = (output, context) => {
|
|
1786
1802
|
return {
|
|
1787
1803
|
enhancedInfrastructureMetrics: __expectString(output.enhancedInfrastructureMetrics),
|
|
1804
|
+
externalMetricsPreference: output.externalMetricsPreference != null
|
|
1805
|
+
? deserializeAws_json1_0ExternalMetricsPreference(output.externalMetricsPreference, context)
|
|
1806
|
+
: undefined,
|
|
1788
1807
|
};
|
|
1789
1808
|
};
|
|
1790
1809
|
const deserializeAws_json1_0GetEnrollmentStatusesForOrganizationResponse = (output, context) => {
|
|
@@ -2171,6 +2190,9 @@ const deserializeAws_json1_0RecommendationOptions = (output, context) => {
|
|
|
2171
2190
|
const deserializeAws_json1_0RecommendationPreferencesDetail = (output, context) => {
|
|
2172
2191
|
return {
|
|
2173
2192
|
enhancedInfrastructureMetrics: __expectString(output.enhancedInfrastructureMetrics),
|
|
2193
|
+
externalMetricsPreference: output.externalMetricsPreference != null
|
|
2194
|
+
? deserializeAws_json1_0ExternalMetricsPreference(output.externalMetricsPreference, context)
|
|
2195
|
+
: undefined,
|
|
2174
2196
|
inferredWorkloadTypes: __expectString(output.inferredWorkloadTypes),
|
|
2175
2197
|
resourceType: __expectString(output.resourceType),
|
|
2176
2198
|
scope: output.scope != null ? deserializeAws_json1_0Scope(output.scope, context) : undefined,
|
|
@@ -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
|
|
15
|
+
Region: string;
|
|
16
16
|
UseDualStack?: boolean;
|
|
17
17
|
UseFIPS?: boolean;
|
|
18
18
|
Endpoint?: string;
|
|
@@ -78,6 +78,25 @@ export declare enum EnhancedInfrastructureMetrics {
|
|
|
78
78
|
ACTIVE = "Active",
|
|
79
79
|
INACTIVE = "Inactive"
|
|
80
80
|
}
|
|
81
|
+
export declare enum ExternalMetricsSource {
|
|
82
|
+
DATADOG = "Datadog",
|
|
83
|
+
DYNATRACE = "Dynatrace",
|
|
84
|
+
INSTANA = "Instana",
|
|
85
|
+
NEWRELIC = "NewRelic"
|
|
86
|
+
}
|
|
87
|
+
/**
|
|
88
|
+
* <p>
|
|
89
|
+
* Describes the external metrics preferences for EC2 rightsizing recommendations.
|
|
90
|
+
* </p>
|
|
91
|
+
*/
|
|
92
|
+
export interface ExternalMetricsPreference {
|
|
93
|
+
/**
|
|
94
|
+
* <p>
|
|
95
|
+
* Contains the source options for external metrics preferences.
|
|
96
|
+
* </p>
|
|
97
|
+
*/
|
|
98
|
+
source?: ExternalMetricsSource | string;
|
|
99
|
+
}
|
|
81
100
|
export declare enum InferredWorkloadTypesPreference {
|
|
82
101
|
ACTIVE = "Active",
|
|
83
102
|
INACTIVE = "Inactive"
|
|
@@ -125,6 +144,17 @@ export interface EffectiveRecommendationPreferences {
|
|
|
125
144
|
* applied to recommendations.</p>
|
|
126
145
|
*/
|
|
127
146
|
inferredWorkloadTypes?: InferredWorkloadTypesPreference | string;
|
|
147
|
+
/**
|
|
148
|
+
* <p>
|
|
149
|
+
* An object that describes the external metrics recommendation preference.
|
|
150
|
+
* </p>
|
|
151
|
+
* <p>
|
|
152
|
+
* If the preference is applied in the latest recommendation refresh, an object with a valid
|
|
153
|
+
* <code>source</code> value appears in the response. If the preference isn't applied to the
|
|
154
|
+
* recommendations already, then this object doesn't appear in the response.
|
|
155
|
+
* </p>
|
|
156
|
+
*/
|
|
157
|
+
externalMetricsPreference?: ExternalMetricsPreference;
|
|
128
158
|
}
|
|
129
159
|
export declare enum Finding {
|
|
130
160
|
NOT_OPTIMIZED = "NotOptimized",
|
|
@@ -543,6 +573,7 @@ export interface AutoScalingGroupRecommendation {
|
|
|
543
573
|
}
|
|
544
574
|
export declare enum RecommendationPreferenceName {
|
|
545
575
|
ENHANCED_INFRASTRUCTURE_METRICS = "EnhancedInfrastructureMetrics",
|
|
576
|
+
EXTERNAL_METRICS_PREFERENCE = "ExternalMetricsPreference",
|
|
546
577
|
INFERRED_WORKLOAD_TYPES = "InferredWorkloadTypes"
|
|
547
578
|
}
|
|
548
579
|
export declare enum ResourceType {
|
|
@@ -646,9 +677,6 @@ export interface DeleteRecommendationPreferencesRequest {
|
|
|
646
677
|
scope?: Scope;
|
|
647
678
|
/**
|
|
648
679
|
* <p>The name of the recommendation preference to delete.</p>
|
|
649
|
-
* <p>Enhanced infrastructure metrics (<code>EnhancedInfrastructureMetrics</code>) is the
|
|
650
|
-
* only feature that can be activated through preferences. Therefore, it is also the only
|
|
651
|
-
* recommendation preference that can be deleted.</p>
|
|
652
680
|
*/
|
|
653
681
|
recommendationPreferenceNames: (RecommendationPreferenceName | string)[] | undefined;
|
|
654
682
|
}
|
|
@@ -1401,6 +1429,7 @@ export declare enum ExportableInstanceField {
|
|
|
1401
1429
|
CURRENT_VCPUS = "CurrentVCpus",
|
|
1402
1430
|
EFFECTIVE_RECOMMENDATION_PREFERENCES_CPU_VENDOR_ARCHITECTURES = "EffectiveRecommendationPreferencesCpuVendorArchitectures",
|
|
1403
1431
|
EFFECTIVE_RECOMMENDATION_PREFERENCES_ENHANCED_INFRASTRUCTURE_METRICS = "EffectiveRecommendationPreferencesEnhancedInfrastructureMetrics",
|
|
1432
|
+
EFFECTIVE_RECOMMENDATION_PREFERENCES_EXTERNAL_METRICS_SOURCE = "EffectiveRecommendationPreferencesExternalMetricsSource",
|
|
1404
1433
|
EFFECTIVE_RECOMMENDATION_PREFERENCES_INFERRED_WORKLOAD_TYPES = "EffectiveRecommendationPreferencesInferredWorkloadTypes",
|
|
1405
1434
|
FINDING = "Finding",
|
|
1406
1435
|
Finding_Reason_Codes = "FindingReasonCodes",
|
|
@@ -2712,6 +2741,21 @@ export interface GetEffectiveRecommendationPreferencesResponse {
|
|
|
2712
2741
|
* Guide</i>.</p>
|
|
2713
2742
|
*/
|
|
2714
2743
|
enhancedInfrastructureMetrics?: EnhancedInfrastructureMetrics | string;
|
|
2744
|
+
/**
|
|
2745
|
+
* <p>The provider of the external metrics recommendation preference. Considers
|
|
2746
|
+
* all applicable preferences that you might have set at the account and
|
|
2747
|
+
* organization level.</p>
|
|
2748
|
+
* <p>If the preference is applied in the latest recommendation refresh, an object with a valid
|
|
2749
|
+
* <code>source</code> value appears in the response. If the preference isn't applied to the
|
|
2750
|
+
* recommendations already, then this object doesn't appear in the response.</p>
|
|
2751
|
+
* <p>To validate whether the preference is applied to your last generated set of
|
|
2752
|
+
* recommendations, review the <code>effectiveRecommendationPreferences</code> value in the
|
|
2753
|
+
* response of the <a>GetEC2InstanceRecommendations</a> actions.</p>
|
|
2754
|
+
* <p>For more information, see <a href="https://docs.aws.amazon.com/compute-optimizer/latest/ug/enhanced-infrastructure-metrics.html">Enhanced
|
|
2755
|
+
* infrastructure metrics</a> in the <i>Compute Optimizer User
|
|
2756
|
+
* Guide</i>.</p>
|
|
2757
|
+
*/
|
|
2758
|
+
externalMetricsPreference?: ExternalMetricsPreference;
|
|
2715
2759
|
}
|
|
2716
2760
|
export interface GetEnrollmentStatusRequest {
|
|
2717
2761
|
}
|
|
@@ -3157,9 +3201,9 @@ export interface RecommendationPreferencesDetail {
|
|
|
3157
3201
|
resourceType?: ResourceType | string;
|
|
3158
3202
|
/**
|
|
3159
3203
|
* <p>The status of the enhanced infrastructure metrics recommendation preference.</p>
|
|
3160
|
-
* <p>
|
|
3161
|
-
*
|
|
3162
|
-
* applied to recommendations.</p>
|
|
3204
|
+
* <p>When the recommendations page is refreshed, a status of <code>Active</code> confirms
|
|
3205
|
+
* that the preference is applied to the recommendations, and a status of <code>Inactive</code>
|
|
3206
|
+
* confirms that the preference isn't yet applied to recommendations.</p>
|
|
3163
3207
|
* <p>For more information, see <a href="https://docs.aws.amazon.com/compute-optimizer/latest/ug/enhanced-infrastructure-metrics.html">Enhanced
|
|
3164
3208
|
* infrastructure metrics</a> in the <i>Compute Optimizer User
|
|
3165
3209
|
* Guide</i>.</p>
|
|
@@ -3168,11 +3212,22 @@ export interface RecommendationPreferencesDetail {
|
|
|
3168
3212
|
/**
|
|
3169
3213
|
* <p>The status of the inferred workload types recommendation preference.</p>
|
|
3170
3214
|
*
|
|
3171
|
-
* <p>
|
|
3172
|
-
*
|
|
3173
|
-
* applied to recommendations.</p>
|
|
3215
|
+
* <p>When the recommendations page is refreshed, a status of <code>Active</code> confirms
|
|
3216
|
+
* that the preference is applied to the recommendations, and a status of <code>Inactive</code>
|
|
3217
|
+
* confirms that the preference isn't yet applied to recommendations.</p>
|
|
3174
3218
|
*/
|
|
3175
3219
|
inferredWorkloadTypes?: InferredWorkloadTypesPreference | string;
|
|
3220
|
+
/**
|
|
3221
|
+
* <p>
|
|
3222
|
+
* An object that describes the external metrics recommendation preference.
|
|
3223
|
+
* </p>
|
|
3224
|
+
* <p>
|
|
3225
|
+
* If the preference is applied in the latest recommendation refresh, an object with a valid
|
|
3226
|
+
* <code>source</code> value appears in the response. If the preference isn't applied to the
|
|
3227
|
+
* recommendations already, then this object doesn't appear in the response.
|
|
3228
|
+
* </p>
|
|
3229
|
+
*/
|
|
3230
|
+
externalMetricsPreference?: ExternalMetricsPreference;
|
|
3176
3231
|
}
|
|
3177
3232
|
export interface GetRecommendationPreferencesResponse {
|
|
3178
3233
|
/**
|
|
@@ -3361,6 +3416,18 @@ export interface PutRecommendationPreferencesRequest {
|
|
|
3361
3416
|
* types</a> in the <i>Compute Optimizer User Guide</i>.</p>
|
|
3362
3417
|
*/
|
|
3363
3418
|
inferredWorkloadTypes?: InferredWorkloadTypesPreference | string;
|
|
3419
|
+
/**
|
|
3420
|
+
* <p>The provider of the external metrics recommendation preference to create or
|
|
3421
|
+
* update.</p>
|
|
3422
|
+
* <p>Specify a valid provider in the <code>source</code> field to activate the preference.
|
|
3423
|
+
* To delete this preference, see the <a>DeleteRecommendationPreferences</a>
|
|
3424
|
+
* action.</p>
|
|
3425
|
+
* <p>This preference can only be set for the <code>Ec2Instance</code> resource type.</p>
|
|
3426
|
+
* <p>For more information, see <a href="https://docs.aws.amazon.com/compute-optimizer/latest/ug/external-metrics-ingestion.html">External
|
|
3427
|
+
* metrics ingestion</a> in the <i>Compute Optimizer User
|
|
3428
|
+
* Guide</i>.</p>
|
|
3429
|
+
*/
|
|
3430
|
+
externalMetricsPreference?: ExternalMetricsPreference;
|
|
3364
3431
|
}
|
|
3365
3432
|
export interface PutRecommendationPreferencesResponse {
|
|
3366
3433
|
}
|
|
@@ -3416,6 +3483,10 @@ export declare const AccountEnrollmentStatusFilterSensitiveLog: (obj: AccountEnr
|
|
|
3416
3483
|
* @internal
|
|
3417
3484
|
*/
|
|
3418
3485
|
export declare const AutoScalingGroupConfigurationFilterSensitiveLog: (obj: AutoScalingGroupConfiguration) => any;
|
|
3486
|
+
/**
|
|
3487
|
+
* @internal
|
|
3488
|
+
*/
|
|
3489
|
+
export declare const ExternalMetricsPreferenceFilterSensitiveLog: (obj: ExternalMetricsPreference) => any;
|
|
3419
3490
|
/**
|
|
3420
3491
|
* @internal
|
|
3421
3492
|
*/
|
|
@@ -27,7 +27,7 @@ export declare const resolveClientEndpointParameters: <T>(
|
|
|
27
27
|
defaultSigningName: string;
|
|
28
28
|
};
|
|
29
29
|
export interface EndpointParameters extends __EndpointParameters {
|
|
30
|
-
Region
|
|
30
|
+
Region: string;
|
|
31
31
|
UseDualStack?: boolean;
|
|
32
32
|
UseFIPS?: boolean;
|
|
33
33
|
Endpoint?: string;
|
|
@@ -39,6 +39,15 @@ export declare enum EnhancedInfrastructureMetrics {
|
|
|
39
39
|
ACTIVE = "Active",
|
|
40
40
|
INACTIVE = "Inactive",
|
|
41
41
|
}
|
|
42
|
+
export declare enum ExternalMetricsSource {
|
|
43
|
+
DATADOG = "Datadog",
|
|
44
|
+
DYNATRACE = "Dynatrace",
|
|
45
|
+
INSTANA = "Instana",
|
|
46
|
+
NEWRELIC = "NewRelic",
|
|
47
|
+
}
|
|
48
|
+
export interface ExternalMetricsPreference {
|
|
49
|
+
source?: ExternalMetricsSource | string;
|
|
50
|
+
}
|
|
42
51
|
export declare enum InferredWorkloadTypesPreference {
|
|
43
52
|
ACTIVE = "Active",
|
|
44
53
|
INACTIVE = "Inactive",
|
|
@@ -47,6 +56,7 @@ export interface EffectiveRecommendationPreferences {
|
|
|
47
56
|
cpuVendorArchitectures?: (CpuVendorArchitecture | string)[];
|
|
48
57
|
enhancedInfrastructureMetrics?: EnhancedInfrastructureMetrics | string;
|
|
49
58
|
inferredWorkloadTypes?: InferredWorkloadTypesPreference | string;
|
|
59
|
+
externalMetricsPreference?: ExternalMetricsPreference;
|
|
50
60
|
}
|
|
51
61
|
export declare enum Finding {
|
|
52
62
|
NOT_OPTIMIZED = "NotOptimized",
|
|
@@ -130,6 +140,7 @@ export interface AutoScalingGroupRecommendation {
|
|
|
130
140
|
}
|
|
131
141
|
export declare enum RecommendationPreferenceName {
|
|
132
142
|
ENHANCED_INFRASTRUCTURE_METRICS = "EnhancedInfrastructureMetrics",
|
|
143
|
+
EXTERNAL_METRICS_PREFERENCE = "ExternalMetricsPreference",
|
|
133
144
|
INFERRED_WORKLOAD_TYPES = "InferredWorkloadTypes",
|
|
134
145
|
}
|
|
135
146
|
export declare enum ResourceType {
|
|
@@ -403,6 +414,7 @@ export declare enum ExportableInstanceField {
|
|
|
403
414
|
CURRENT_VCPUS = "CurrentVCpus",
|
|
404
415
|
EFFECTIVE_RECOMMENDATION_PREFERENCES_CPU_VENDOR_ARCHITECTURES = "EffectiveRecommendationPreferencesCpuVendorArchitectures",
|
|
405
416
|
EFFECTIVE_RECOMMENDATION_PREFERENCES_ENHANCED_INFRASTRUCTURE_METRICS = "EffectiveRecommendationPreferencesEnhancedInfrastructureMetrics",
|
|
417
|
+
EFFECTIVE_RECOMMENDATION_PREFERENCES_EXTERNAL_METRICS_SOURCE = "EffectiveRecommendationPreferencesExternalMetricsSource",
|
|
406
418
|
EFFECTIVE_RECOMMENDATION_PREFERENCES_INFERRED_WORKLOAD_TYPES = "EffectiveRecommendationPreferencesInferredWorkloadTypes",
|
|
407
419
|
FINDING = "Finding",
|
|
408
420
|
Finding_Reason_Codes = "FindingReasonCodes",
|
|
@@ -675,6 +687,7 @@ export interface GetEffectiveRecommendationPreferencesRequest {
|
|
|
675
687
|
}
|
|
676
688
|
export interface GetEffectiveRecommendationPreferencesResponse {
|
|
677
689
|
enhancedInfrastructureMetrics?: EnhancedInfrastructureMetrics | string;
|
|
690
|
+
externalMetricsPreference?: ExternalMetricsPreference;
|
|
678
691
|
}
|
|
679
692
|
export interface GetEnrollmentStatusRequest {}
|
|
680
693
|
export interface GetEnrollmentStatusResponse {
|
|
@@ -782,6 +795,7 @@ export interface RecommendationPreferencesDetail {
|
|
|
782
795
|
resourceType?: ResourceType | string;
|
|
783
796
|
enhancedInfrastructureMetrics?: EnhancedInfrastructureMetrics | string;
|
|
784
797
|
inferredWorkloadTypes?: InferredWorkloadTypesPreference | string;
|
|
798
|
+
externalMetricsPreference?: ExternalMetricsPreference;
|
|
785
799
|
}
|
|
786
800
|
export interface GetRecommendationPreferencesResponse {
|
|
787
801
|
nextToken?: string;
|
|
@@ -827,6 +841,7 @@ export interface PutRecommendationPreferencesRequest {
|
|
|
827
841
|
scope?: Scope;
|
|
828
842
|
enhancedInfrastructureMetrics?: EnhancedInfrastructureMetrics | string;
|
|
829
843
|
inferredWorkloadTypes?: InferredWorkloadTypesPreference | string;
|
|
844
|
+
externalMetricsPreference?: ExternalMetricsPreference;
|
|
830
845
|
}
|
|
831
846
|
export interface PutRecommendationPreferencesResponse {}
|
|
832
847
|
export interface UpdateEnrollmentStatusRequest {
|
|
@@ -843,6 +858,9 @@ export declare const AccountEnrollmentStatusFilterSensitiveLog: (
|
|
|
843
858
|
export declare const AutoScalingGroupConfigurationFilterSensitiveLog: (
|
|
844
859
|
obj: AutoScalingGroupConfiguration
|
|
845
860
|
) => any;
|
|
861
|
+
export declare const ExternalMetricsPreferenceFilterSensitiveLog: (
|
|
862
|
+
obj: ExternalMetricsPreference
|
|
863
|
+
) => any;
|
|
846
864
|
export declare const EffectiveRecommendationPreferencesFilterSensitiveLog: (
|
|
847
865
|
obj: EffectiveRecommendationPreferences
|
|
848
866
|
) => any;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/client-compute-optimizer",
|
|
3
3
|
"description": "AWS SDK for JavaScript Compute Optimizer Client for Node.js, Browser and React Native",
|
|
4
|
-
"version": "3.
|
|
4
|
+
"version": "3.219.0",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
|
|
7
7
|
"build:cjs": "tsc -p tsconfig.cjs.json",
|