@aws-sdk/client-compute-optimizer 3.454.0 → 3.458.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/README.md +23 -23
- package/dist-cjs/models/models_0.js +79 -6
- package/dist-cjs/protocols/Aws_json1_0.js +68 -0
- package/dist-es/models/models_0.js +77 -4
- package/dist-es/protocols/Aws_json1_0.js +68 -0
- package/dist-types/commands/DeleteRecommendationPreferencesCommand.d.ts +1 -1
- package/dist-types/commands/ExportAutoScalingGroupRecommendationsCommand.d.ts +1 -1
- package/dist-types/commands/ExportEBSVolumeRecommendationsCommand.d.ts +1 -1
- package/dist-types/commands/ExportEC2InstanceRecommendationsCommand.d.ts +1 -1
- package/dist-types/commands/ExportECSServiceRecommendationsCommand.d.ts +1 -1
- package/dist-types/commands/ExportLambdaFunctionRecommendationsCommand.d.ts +1 -1
- package/dist-types/commands/GetAutoScalingGroupRecommendationsCommand.d.ts +34 -0
- package/dist-types/commands/GetEBSVolumeRecommendationsCommand.d.ts +12 -0
- package/dist-types/commands/GetEC2InstanceRecommendationsCommand.d.ts +34 -0
- package/dist-types/commands/GetECSServiceRecommendationsCommand.d.ts +12 -0
- package/dist-types/commands/GetEffectiveRecommendationPreferencesCommand.d.ts +24 -0
- package/dist-types/commands/GetLambdaFunctionRecommendationsCommand.d.ts +12 -0
- package/dist-types/commands/GetRecommendationPreferencesCommand.d.ts +25 -0
- package/dist-types/commands/PutRecommendationPreferencesCommand.d.ts +22 -0
- package/dist-types/models/models_0.d.ts +874 -14
- package/dist-types/ts3.4/models/models_0.d.ts +201 -5
- package/package.json +3 -3
|
@@ -48,7 +48,7 @@ export interface ExportLambdaFunctionRecommendationsCommandOutput extends Export
|
|
|
48
48
|
* },
|
|
49
49
|
* ],
|
|
50
50
|
* fieldsToExport: [ // ExportableLambdaFunctionFields
|
|
51
|
-
* "AccountId" || "FunctionArn" || "FunctionVersion" || "Finding" || "FindingReasonCodes" || "NumberOfInvocations" || "UtilizationMetricsDurationMaximum" || "UtilizationMetricsDurationAverage" || "UtilizationMetricsMemoryMaximum" || "UtilizationMetricsMemoryAverage" || "LookbackPeriodInDays" || "CurrentConfigurationMemorySize" || "CurrentConfigurationTimeout" || "CurrentCostTotal" || "CurrentCostAverage" || "RecommendationOptionsConfigurationMemorySize" || "RecommendationOptionsCostLow" || "RecommendationOptionsCostHigh" || "RecommendationOptionsProjectedUtilizationMetricsDurationLowerBound" || "RecommendationOptionsProjectedUtilizationMetricsDurationUpperBound" || "RecommendationOptionsProjectedUtilizationMetricsDurationExpected" || "LastRefreshTimestamp" || "CurrentPerformanceRisk" || "RecommendationOptionsSavingsOpportunityPercentage" || "RecommendationOptionsEstimatedMonthlySavingsCurrency" || "RecommendationOptionsEstimatedMonthlySavingsValue" || "Tags",
|
|
51
|
+
* "AccountId" || "FunctionArn" || "FunctionVersion" || "Finding" || "FindingReasonCodes" || "NumberOfInvocations" || "UtilizationMetricsDurationMaximum" || "UtilizationMetricsDurationAverage" || "UtilizationMetricsMemoryMaximum" || "UtilizationMetricsMemoryAverage" || "LookbackPeriodInDays" || "CurrentConfigurationMemorySize" || "CurrentConfigurationTimeout" || "CurrentCostTotal" || "CurrentCostAverage" || "RecommendationOptionsConfigurationMemorySize" || "RecommendationOptionsCostLow" || "RecommendationOptionsCostHigh" || "RecommendationOptionsProjectedUtilizationMetricsDurationLowerBound" || "RecommendationOptionsProjectedUtilizationMetricsDurationUpperBound" || "RecommendationOptionsProjectedUtilizationMetricsDurationExpected" || "LastRefreshTimestamp" || "CurrentPerformanceRisk" || "RecommendationOptionsSavingsOpportunityPercentage" || "RecommendationOptionsEstimatedMonthlySavingsCurrency" || "RecommendationOptionsEstimatedMonthlySavingsValue" || "Tags" || "EffectiveRecommendationPreferencesSavingsEstimationMode" || "RecommendationOptionsSavingsOpportunityAfterDiscountsPercentage" || "RecommendationOptionsEstimatedMonthlySavingsCurrencyAfterDiscounts" || "RecommendationOptionsEstimatedMonthlySavingsValueAfterDiscounts",
|
|
52
52
|
* ],
|
|
53
53
|
* s3DestinationConfig: { // S3DestinationConfig
|
|
54
54
|
* bucket: "STRING_VALUE",
|
|
@@ -114,6 +114,13 @@ export interface GetAutoScalingGroupRecommendationsCommandOutput extends GetAuto
|
|
|
114
114
|
* // },
|
|
115
115
|
* // ],
|
|
116
116
|
* // },
|
|
117
|
+
* // savingsOpportunityAfterDiscounts: { // AutoScalingGroupSavingsOpportunityAfterDiscounts
|
|
118
|
+
* // savingsOpportunityPercentage: Number("double"),
|
|
119
|
+
* // estimatedMonthlySavings: { // AutoScalingGroupEstimatedMonthlySavings
|
|
120
|
+
* // currency: "USD" || "CNY",
|
|
121
|
+
* // value: Number("double"),
|
|
122
|
+
* // },
|
|
123
|
+
* // },
|
|
117
124
|
* // },
|
|
118
125
|
* // ],
|
|
119
126
|
* // lastRefreshTimestamp: new Date("TIMESTAMP"),
|
|
@@ -127,6 +134,33 @@ export interface GetAutoScalingGroupRecommendationsCommandOutput extends GetAuto
|
|
|
127
134
|
* // externalMetricsPreference: { // ExternalMetricsPreference
|
|
128
135
|
* // source: "Datadog" || "Dynatrace" || "NewRelic" || "Instana",
|
|
129
136
|
* // },
|
|
137
|
+
* // lookBackPeriod: "DAYS_14" || "DAYS_32" || "DAYS_93",
|
|
138
|
+
* // utilizationPreferences: [ // UtilizationPreferences
|
|
139
|
+
* // { // UtilizationPreference
|
|
140
|
+
* // metricName: "CpuUtilization",
|
|
141
|
+
* // metricParameters: { // CustomizableMetricParameters
|
|
142
|
+
* // threshold: "P90" || "P95" || "P99_5",
|
|
143
|
+
* // headroom: "PERCENT_30" || "PERCENT_20" || "PERCENT_0",
|
|
144
|
+
* // },
|
|
145
|
+
* // },
|
|
146
|
+
* // ],
|
|
147
|
+
* // preferredResources: [ // EffectivePreferredResources
|
|
148
|
+
* // { // EffectivePreferredResource
|
|
149
|
+
* // name: "Ec2InstanceTypes",
|
|
150
|
+
* // includeList: [ // PreferredResourceValues
|
|
151
|
+
* // "STRING_VALUE",
|
|
152
|
+
* // ],
|
|
153
|
+
* // effectiveIncludeList: [
|
|
154
|
+
* // "STRING_VALUE",
|
|
155
|
+
* // ],
|
|
156
|
+
* // excludeList: [
|
|
157
|
+
* // "STRING_VALUE",
|
|
158
|
+
* // ],
|
|
159
|
+
* // },
|
|
160
|
+
* // ],
|
|
161
|
+
* // savingsEstimationMode: { // InstanceSavingsEstimationMode
|
|
162
|
+
* // source: "PublicPricing" || "CostExplorerRightsizing" || "CostOptimizationHub",
|
|
163
|
+
* // },
|
|
130
164
|
* // },
|
|
131
165
|
* // inferredWorkloadTypes: [ // InferredWorkloadTypes
|
|
132
166
|
* // "AmazonEmr" || "ApacheCassandra" || "ApacheHadoop" || "Memcached" || "Nginx" || "PostgreSql" || "Redis" || "Kafka" || "SQLServer",
|
|
@@ -98,6 +98,13 @@ export interface GetEBSVolumeRecommendationsCommandOutput extends GetEBSVolumeRe
|
|
|
98
98
|
* // value: Number("double"),
|
|
99
99
|
* // },
|
|
100
100
|
* // },
|
|
101
|
+
* // savingsOpportunityAfterDiscounts: { // EBSSavingsOpportunityAfterDiscounts
|
|
102
|
+
* // savingsOpportunityPercentage: Number("double"),
|
|
103
|
+
* // estimatedMonthlySavings: { // EBSEstimatedMonthlySavings
|
|
104
|
+
* // currency: "USD" || "CNY",
|
|
105
|
+
* // value: Number("double"),
|
|
106
|
+
* // },
|
|
107
|
+
* // },
|
|
101
108
|
* // },
|
|
102
109
|
* // ],
|
|
103
110
|
* // lastRefreshTimestamp: new Date("TIMESTAMP"),
|
|
@@ -108,6 +115,11 @@ export interface GetEBSVolumeRecommendationsCommandOutput extends GetEBSVolumeRe
|
|
|
108
115
|
* // value: "STRING_VALUE",
|
|
109
116
|
* // },
|
|
110
117
|
* // ],
|
|
118
|
+
* // effectiveRecommendationPreferences: { // EBSEffectiveRecommendationPreferences
|
|
119
|
+
* // savingsEstimationMode: { // EBSSavingsEstimationMode
|
|
120
|
+
* // source: "PublicPricing" || "CostExplorerRightsizing" || "CostOptimizationHub",
|
|
121
|
+
* // },
|
|
122
|
+
* // },
|
|
111
123
|
* // },
|
|
112
124
|
* // ],
|
|
113
125
|
* // errors: [ // GetRecommendationErrors
|
|
@@ -110,6 +110,13 @@ export interface GetEC2InstanceRecommendationsCommandOutput extends GetEC2Instan
|
|
|
110
110
|
* // },
|
|
111
111
|
* // ],
|
|
112
112
|
* // },
|
|
113
|
+
* // savingsOpportunityAfterDiscounts: { // InstanceSavingsOpportunityAfterDiscounts
|
|
114
|
+
* // savingsOpportunityPercentage: Number("double"),
|
|
115
|
+
* // estimatedMonthlySavings: { // InstanceEstimatedMonthlySavings
|
|
116
|
+
* // currency: "USD" || "CNY",
|
|
117
|
+
* // value: Number("double"),
|
|
118
|
+
* // },
|
|
119
|
+
* // },
|
|
113
120
|
* // },
|
|
114
121
|
* // ],
|
|
115
122
|
* // recommendationSources: [ // RecommendationSources
|
|
@@ -129,6 +136,33 @@ export interface GetEC2InstanceRecommendationsCommandOutput extends GetEC2Instan
|
|
|
129
136
|
* // externalMetricsPreference: { // ExternalMetricsPreference
|
|
130
137
|
* // source: "Datadog" || "Dynatrace" || "NewRelic" || "Instana",
|
|
131
138
|
* // },
|
|
139
|
+
* // lookBackPeriod: "DAYS_14" || "DAYS_32" || "DAYS_93",
|
|
140
|
+
* // utilizationPreferences: [ // UtilizationPreferences
|
|
141
|
+
* // { // UtilizationPreference
|
|
142
|
+
* // metricName: "CpuUtilization",
|
|
143
|
+
* // metricParameters: { // CustomizableMetricParameters
|
|
144
|
+
* // threshold: "P90" || "P95" || "P99_5",
|
|
145
|
+
* // headroom: "PERCENT_30" || "PERCENT_20" || "PERCENT_0",
|
|
146
|
+
* // },
|
|
147
|
+
* // },
|
|
148
|
+
* // ],
|
|
149
|
+
* // preferredResources: [ // EffectivePreferredResources
|
|
150
|
+
* // { // EffectivePreferredResource
|
|
151
|
+
* // name: "Ec2InstanceTypes",
|
|
152
|
+
* // includeList: [ // PreferredResourceValues
|
|
153
|
+
* // "STRING_VALUE",
|
|
154
|
+
* // ],
|
|
155
|
+
* // effectiveIncludeList: [
|
|
156
|
+
* // "STRING_VALUE",
|
|
157
|
+
* // ],
|
|
158
|
+
* // excludeList: [
|
|
159
|
+
* // "STRING_VALUE",
|
|
160
|
+
* // ],
|
|
161
|
+
* // },
|
|
162
|
+
* // ],
|
|
163
|
+
* // savingsEstimationMode: { // InstanceSavingsEstimationMode
|
|
164
|
+
* // source: "PublicPricing" || "CostExplorerRightsizing" || "CostOptimizationHub",
|
|
165
|
+
* // },
|
|
132
166
|
* // },
|
|
133
167
|
* // inferredWorkloadTypes: [ // InferredWorkloadTypes
|
|
134
168
|
* // "AmazonEmr" || "ApacheCassandra" || "ApacheHadoop" || "Memcached" || "Nginx" || "PostgreSql" || "Redis" || "Kafka" || "SQLServer",
|
|
@@ -124,6 +124,13 @@ export interface GetECSServiceRecommendationsCommandOutput extends GetECSService
|
|
|
124
124
|
* // cpu: Number("int"),
|
|
125
125
|
* // },
|
|
126
126
|
* // ],
|
|
127
|
+
* // savingsOpportunityAfterDiscounts: { // ECSSavingsOpportunityAfterDiscounts
|
|
128
|
+
* // savingsOpportunityPercentage: Number("double"),
|
|
129
|
+
* // estimatedMonthlySavings: { // ECSEstimatedMonthlySavings
|
|
130
|
+
* // currency: "USD" || "CNY",
|
|
131
|
+
* // value: Number("double"),
|
|
132
|
+
* // },
|
|
133
|
+
* // },
|
|
127
134
|
* // },
|
|
128
135
|
* // ],
|
|
129
136
|
* // currentPerformanceRisk: "VeryLow" || "Low" || "Medium" || "High",
|
|
@@ -133,6 +140,11 @@ export interface GetECSServiceRecommendationsCommandOutput extends GetECSService
|
|
|
133
140
|
* // value: "STRING_VALUE",
|
|
134
141
|
* // },
|
|
135
142
|
* // ],
|
|
143
|
+
* // effectiveRecommendationPreferences: { // ECSEffectiveRecommendationPreferences
|
|
144
|
+
* // savingsEstimationMode: { // ECSSavingsEstimationMode
|
|
145
|
+
* // source: "PublicPricing" || "CostExplorerRightsizing" || "CostOptimizationHub",
|
|
146
|
+
* // },
|
|
147
|
+
* // },
|
|
136
148
|
* // },
|
|
137
149
|
* // ],
|
|
138
150
|
* // errors: [ // GetRecommendationErrors
|
|
@@ -45,6 +45,30 @@ export interface GetEffectiveRecommendationPreferencesCommandOutput extends GetE
|
|
|
45
45
|
* // externalMetricsPreference: { // ExternalMetricsPreference
|
|
46
46
|
* // source: "Datadog" || "Dynatrace" || "NewRelic" || "Instana",
|
|
47
47
|
* // },
|
|
48
|
+
* // lookBackPeriod: "DAYS_14" || "DAYS_32" || "DAYS_93",
|
|
49
|
+
* // utilizationPreferences: [ // UtilizationPreferences
|
|
50
|
+
* // { // UtilizationPreference
|
|
51
|
+
* // metricName: "CpuUtilization",
|
|
52
|
+
* // metricParameters: { // CustomizableMetricParameters
|
|
53
|
+
* // threshold: "P90" || "P95" || "P99_5",
|
|
54
|
+
* // headroom: "PERCENT_30" || "PERCENT_20" || "PERCENT_0",
|
|
55
|
+
* // },
|
|
56
|
+
* // },
|
|
57
|
+
* // ],
|
|
58
|
+
* // preferredResources: [ // EffectivePreferredResources
|
|
59
|
+
* // { // EffectivePreferredResource
|
|
60
|
+
* // name: "Ec2InstanceTypes",
|
|
61
|
+
* // includeList: [ // PreferredResourceValues
|
|
62
|
+
* // "STRING_VALUE",
|
|
63
|
+
* // ],
|
|
64
|
+
* // effectiveIncludeList: [
|
|
65
|
+
* // "STRING_VALUE",
|
|
66
|
+
* // ],
|
|
67
|
+
* // excludeList: [
|
|
68
|
+
* // "STRING_VALUE",
|
|
69
|
+
* // ],
|
|
70
|
+
* // },
|
|
71
|
+
* // ],
|
|
48
72
|
* // };
|
|
49
73
|
*
|
|
50
74
|
* ```
|
|
@@ -94,6 +94,13 @@ export interface GetLambdaFunctionRecommendationsCommandOutput extends GetLambda
|
|
|
94
94
|
* // value: Number("double"),
|
|
95
95
|
* // },
|
|
96
96
|
* // },
|
|
97
|
+
* // savingsOpportunityAfterDiscounts: { // LambdaSavingsOpportunityAfterDiscounts
|
|
98
|
+
* // savingsOpportunityPercentage: Number("double"),
|
|
99
|
+
* // estimatedMonthlySavings: { // LambdaEstimatedMonthlySavings
|
|
100
|
+
* // currency: "USD" || "CNY",
|
|
101
|
+
* // value: Number("double"),
|
|
102
|
+
* // },
|
|
103
|
+
* // },
|
|
97
104
|
* // },
|
|
98
105
|
* // ],
|
|
99
106
|
* // currentPerformanceRisk: "VeryLow" || "Low" || "Medium" || "High",
|
|
@@ -103,6 +110,11 @@ export interface GetLambdaFunctionRecommendationsCommandOutput extends GetLambda
|
|
|
103
110
|
* // value: "STRING_VALUE",
|
|
104
111
|
* // },
|
|
105
112
|
* // ],
|
|
113
|
+
* // effectiveRecommendationPreferences: { // LambdaEffectiveRecommendationPreferences
|
|
114
|
+
* // savingsEstimationMode: { // LambdaSavingsEstimationMode
|
|
115
|
+
* // source: "PublicPricing" || "CostExplorerRightsizing" || "CostOptimizationHub",
|
|
116
|
+
* // },
|
|
117
|
+
* // },
|
|
106
118
|
* // },
|
|
107
119
|
* // ],
|
|
108
120
|
* // };
|
|
@@ -62,6 +62,31 @@ export interface GetRecommendationPreferencesCommandOutput extends GetRecommenda
|
|
|
62
62
|
* // externalMetricsPreference: { // ExternalMetricsPreference
|
|
63
63
|
* // source: "Datadog" || "Dynatrace" || "NewRelic" || "Instana",
|
|
64
64
|
* // },
|
|
65
|
+
* // lookBackPeriod: "DAYS_14" || "DAYS_32" || "DAYS_93",
|
|
66
|
+
* // utilizationPreferences: [ // UtilizationPreferences
|
|
67
|
+
* // { // UtilizationPreference
|
|
68
|
+
* // metricName: "CpuUtilization",
|
|
69
|
+
* // metricParameters: { // CustomizableMetricParameters
|
|
70
|
+
* // threshold: "P90" || "P95" || "P99_5",
|
|
71
|
+
* // headroom: "PERCENT_30" || "PERCENT_20" || "PERCENT_0",
|
|
72
|
+
* // },
|
|
73
|
+
* // },
|
|
74
|
+
* // ],
|
|
75
|
+
* // preferredResources: [ // EffectivePreferredResources
|
|
76
|
+
* // { // EffectivePreferredResource
|
|
77
|
+
* // name: "Ec2InstanceTypes",
|
|
78
|
+
* // includeList: [ // PreferredResourceValues
|
|
79
|
+
* // "STRING_VALUE",
|
|
80
|
+
* // ],
|
|
81
|
+
* // effectiveIncludeList: [
|
|
82
|
+
* // "STRING_VALUE",
|
|
83
|
+
* // ],
|
|
84
|
+
* // excludeList: [
|
|
85
|
+
* // "STRING_VALUE",
|
|
86
|
+
* // ],
|
|
87
|
+
* // },
|
|
88
|
+
* // ],
|
|
89
|
+
* // savingsEstimationMode: "AfterDiscounts" || "BeforeDiscounts",
|
|
65
90
|
* // },
|
|
66
91
|
* // ],
|
|
67
92
|
* // };
|
|
@@ -45,6 +45,28 @@ export interface PutRecommendationPreferencesCommandOutput extends PutRecommenda
|
|
|
45
45
|
* externalMetricsPreference: { // ExternalMetricsPreference
|
|
46
46
|
* source: "Datadog" || "Dynatrace" || "NewRelic" || "Instana",
|
|
47
47
|
* },
|
|
48
|
+
* lookBackPeriod: "DAYS_14" || "DAYS_32" || "DAYS_93",
|
|
49
|
+
* utilizationPreferences: [ // UtilizationPreferences
|
|
50
|
+
* { // UtilizationPreference
|
|
51
|
+
* metricName: "CpuUtilization",
|
|
52
|
+
* metricParameters: { // CustomizableMetricParameters
|
|
53
|
+
* threshold: "P90" || "P95" || "P99_5",
|
|
54
|
+
* headroom: "PERCENT_30" || "PERCENT_20" || "PERCENT_0",
|
|
55
|
+
* },
|
|
56
|
+
* },
|
|
57
|
+
* ],
|
|
58
|
+
* preferredResources: [ // PreferredResources
|
|
59
|
+
* { // PreferredResource
|
|
60
|
+
* name: "Ec2InstanceTypes",
|
|
61
|
+
* includeList: [ // PreferredResourceValues
|
|
62
|
+
* "STRING_VALUE",
|
|
63
|
+
* ],
|
|
64
|
+
* excludeList: [
|
|
65
|
+
* "STRING_VALUE",
|
|
66
|
+
* ],
|
|
67
|
+
* },
|
|
68
|
+
* ],
|
|
69
|
+
* savingsEstimationMode: "AfterDiscounts" || "BeforeDiscounts",
|
|
48
70
|
* };
|
|
49
71
|
* const command = new PutRecommendationPreferencesCommand(input);
|
|
50
72
|
* const response = await client.send(command);
|