@aws-sdk/client-compute-optimizer 3.47.1 → 3.50.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 +35 -0
- package/dist-cjs/models/models_0.js +33 -3
- package/dist-cjs/protocols/Aws_json1_0.js +22 -0
- package/dist-es/models/models_0.js +30 -0
- package/dist-es/protocols/Aws_json1_0.js +23 -2
- package/dist-types/models/models_0.d.ts +209 -18
- package/package.json +39 -33
- package/dist-types/ts3.4/ComputeOptimizer.d.ts +0 -95
- package/dist-types/ts3.4/ComputeOptimizerClient.d.ts +0 -91
- package/dist-types/ts3.4/commands/DeleteRecommendationPreferencesCommand.d.ts +0 -17
- package/dist-types/ts3.4/commands/DescribeRecommendationExportJobsCommand.d.ts +0 -17
- package/dist-types/ts3.4/commands/ExportAutoScalingGroupRecommendationsCommand.d.ts +0 -17
- package/dist-types/ts3.4/commands/ExportEBSVolumeRecommendationsCommand.d.ts +0 -17
- package/dist-types/ts3.4/commands/ExportEC2InstanceRecommendationsCommand.d.ts +0 -17
- package/dist-types/ts3.4/commands/ExportLambdaFunctionRecommendationsCommand.d.ts +0 -17
- package/dist-types/ts3.4/commands/GetAutoScalingGroupRecommendationsCommand.d.ts +0 -17
- package/dist-types/ts3.4/commands/GetEBSVolumeRecommendationsCommand.d.ts +0 -17
- package/dist-types/ts3.4/commands/GetEC2InstanceRecommendationsCommand.d.ts +0 -17
- package/dist-types/ts3.4/commands/GetEC2RecommendationProjectedMetricsCommand.d.ts +0 -17
- package/dist-types/ts3.4/commands/GetEffectiveRecommendationPreferencesCommand.d.ts +0 -17
- package/dist-types/ts3.4/commands/GetEnrollmentStatusCommand.d.ts +0 -17
- package/dist-types/ts3.4/commands/GetEnrollmentStatusesForOrganizationCommand.d.ts +0 -17
- package/dist-types/ts3.4/commands/GetLambdaFunctionRecommendationsCommand.d.ts +0 -17
- package/dist-types/ts3.4/commands/GetRecommendationPreferencesCommand.d.ts +0 -17
- package/dist-types/ts3.4/commands/GetRecommendationSummariesCommand.d.ts +0 -17
- package/dist-types/ts3.4/commands/PutRecommendationPreferencesCommand.d.ts +0 -17
- package/dist-types/ts3.4/commands/UpdateEnrollmentStatusCommand.d.ts +0 -17
- package/dist-types/ts3.4/commands/index.d.ts +0 -18
- package/dist-types/ts3.4/endpoints.d.ts +0 -2
- package/dist-types/ts3.4/index.d.ts +0 -4
- package/dist-types/ts3.4/models/index.d.ts +0 -1
- package/dist-types/ts3.4/models/models_0.d.ts +0 -1390
- package/dist-types/ts3.4/protocols/Aws_json1_0.d.ts +0 -56
- package/dist-types/ts3.4/runtimeConfig.browser.d.ts +0 -38
- package/dist-types/ts3.4/runtimeConfig.d.ts +0 -38
- package/dist-types/ts3.4/runtimeConfig.native.d.ts +0 -37
- package/dist-types/ts3.4/runtimeConfig.shared.d.ts +0 -11
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,41 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
# [3.50.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.49.0...v3.50.0) (2022-02-08)
|
|
7
|
+
|
|
8
|
+
**Note:** Version bump only for package @aws-sdk/client-compute-optimizer
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
# [3.49.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.48.0...v3.49.0) (2022-01-29)
|
|
15
|
+
|
|
16
|
+
**Note:** Version bump only for package @aws-sdk/client-compute-optimizer
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
# [3.48.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.47.2...v3.48.0) (2022-01-22)
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
### Features
|
|
26
|
+
|
|
27
|
+
* **clients:** update clients as of 2022/01/21 ([#3228](https://github.com/aws/aws-sdk-js-v3/issues/3228)) ([fa713ef](https://github.com/aws/aws-sdk-js-v3/commit/fa713efca6b2f424c27535d000359f08830960b1))
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
|
|
32
|
+
|
|
33
|
+
## [3.47.2](https://github.com/aws/aws-sdk-js-v3/compare/v3.47.1...v3.47.2) (2022-01-21)
|
|
34
|
+
|
|
35
|
+
**Note:** Version bump only for package @aws-sdk/client-compute-optimizer
|
|
36
|
+
|
|
37
|
+
|
|
38
|
+
|
|
39
|
+
|
|
40
|
+
|
|
6
41
|
## [3.47.1](https://github.com/aws/aws-sdk-js-v3/compare/v3.47.0-release-test-1...v3.47.1) (2022-01-20)
|
|
7
42
|
|
|
8
43
|
**Note:** Version bump only for package @aws-sdk/client-compute-optimizer
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
4
|
-
exports.
|
|
5
|
-
exports.UpdateEnrollmentStatusResponse = exports.UpdateEnrollmentStatusRequest = exports.PutRecommendationPreferencesResponse = exports.PutRecommendationPreferencesRequest = exports.GetRecommendationSummariesResponse = exports.RecommendationSummary = exports.Summary = exports.ReasonCodeSummary = void 0;
|
|
3
|
+
exports.ExportableLambdaFunctionField = exports.ExportEC2InstanceRecommendationsResponse = exports.ExportEC2InstanceRecommendationsRequest = exports.ExportableInstanceField = exports.ExportEBSVolumeRecommendationsResponse = exports.ExportEBSVolumeRecommendationsRequest = exports.EBSFilter = exports.EBSFilterName = exports.ExportableVolumeField = exports.ExportAutoScalingGroupRecommendationsResponse = exports.ExportAutoScalingGroupRecommendationsRequest = exports.S3DestinationConfig = exports.RecommendationPreferences = exports.Filter = exports.FilterName = exports.FileFormat = exports.ExportableAutoScalingGroupField = exports.DescribeRecommendationExportJobsResponse = exports.RecommendationExportJob = exports.JobStatus = exports.ExportDestination = exports.S3Destination = exports.DescribeRecommendationExportJobsRequest = exports.JobFilter = exports.JobFilterName = exports.DeleteRecommendationPreferencesResponse = exports.DeleteRecommendationPreferencesRequest = exports.Scope = exports.ScopeName = exports.ResourceType = exports.RecommendationPreferenceName = exports.AutoScalingGroupRecommendation = exports.AutoScalingGroupRecommendationOption = exports.SavingsOpportunity = exports.EstimatedMonthlySavings = exports.Currency = exports.UtilizationMetric = exports.MetricStatistic = exports.MetricName = exports.MigrationEffort = exports.InferredWorkloadType = exports.Finding = exports.EffectiveRecommendationPreferences = exports.InferredWorkloadTypesPreference = exports.EnhancedInfrastructureMetrics = exports.CpuVendorArchitecture = exports.CurrentPerformanceRisk = exports.AutoScalingGroupConfiguration = exports.AccountEnrollmentStatus = exports.Status = void 0;
|
|
4
|
+
exports.GetRecommendationPreferencesResponse = exports.RecommendationPreferencesDetail = exports.GetRecommendationPreferencesRequest = exports.GetLambdaFunctionRecommendationsResponse = exports.LambdaFunctionRecommendation = exports.LambdaFunctionUtilizationMetric = exports.LambdaFunctionMetricStatistic = exports.LambdaFunctionMetricName = exports.LambdaFunctionMemoryRecommendationOption = exports.LambdaFunctionMemoryProjectedMetric = exports.LambdaFunctionMemoryMetricStatistic = exports.LambdaFunctionMemoryMetricName = exports.LambdaFunctionRecommendationFindingReasonCode = exports.LambdaFunctionRecommendationFinding = exports.GetLambdaFunctionRecommendationsRequest = exports.GetEnrollmentStatusesForOrganizationResponse = exports.GetEnrollmentStatusesForOrganizationRequest = exports.EnrollmentFilter = exports.EnrollmentFilterName = exports.GetEnrollmentStatusResponse = exports.GetEnrollmentStatusRequest = exports.GetEffectiveRecommendationPreferencesResponse = exports.GetEffectiveRecommendationPreferencesRequest = exports.GetEC2RecommendationProjectedMetricsResponse = exports.RecommendedOptionProjectedMetric = exports.ProjectedMetric = exports.GetEC2RecommendationProjectedMetricsRequest = exports.GetEC2InstanceRecommendationsResponse = exports.InstanceRecommendation = exports.RecommendationSource = exports.RecommendationSourceType = exports.InstanceRecommendationOption = exports.PlatformDifference = exports.InstanceRecommendationFindingReasonCode = exports.GetEC2InstanceRecommendationsRequest = exports.GetEBSVolumeRecommendationsResponse = exports.VolumeRecommendation = exports.VolumeRecommendationOption = exports.EBSUtilizationMetric = exports.EBSMetricName = exports.EBSFinding = exports.VolumeConfiguration = exports.GetEBSVolumeRecommendationsRequest = exports.GetAutoScalingGroupRecommendationsResponse = exports.GetRecommendationError = exports.GetAutoScalingGroupRecommendationsRequest = exports.ExportLambdaFunctionRecommendationsResponse = exports.ExportLambdaFunctionRecommendationsRequest = exports.LambdaFunctionRecommendationFilter = exports.LambdaFunctionRecommendationFilterName = void 0;
|
|
5
|
+
exports.UpdateEnrollmentStatusResponse = exports.UpdateEnrollmentStatusRequest = exports.PutRecommendationPreferencesResponse = exports.PutRecommendationPreferencesRequest = exports.GetRecommendationSummariesResponse = exports.RecommendationSummary = exports.Summary = exports.ReasonCodeSummary = exports.FindingReasonCode = exports.CurrentPerformanceRiskRatings = exports.GetRecommendationSummariesRequest = void 0;
|
|
6
6
|
var Status;
|
|
7
7
|
(function (Status) {
|
|
8
8
|
Status["ACTIVE"] = "Active";
|
|
@@ -39,6 +39,11 @@ var EnhancedInfrastructureMetrics;
|
|
|
39
39
|
EnhancedInfrastructureMetrics["ACTIVE"] = "Active";
|
|
40
40
|
EnhancedInfrastructureMetrics["INACTIVE"] = "Inactive";
|
|
41
41
|
})(EnhancedInfrastructureMetrics = exports.EnhancedInfrastructureMetrics || (exports.EnhancedInfrastructureMetrics = {}));
|
|
42
|
+
var InferredWorkloadTypesPreference;
|
|
43
|
+
(function (InferredWorkloadTypesPreference) {
|
|
44
|
+
InferredWorkloadTypesPreference["ACTIVE"] = "Active";
|
|
45
|
+
InferredWorkloadTypesPreference["INACTIVE"] = "Inactive";
|
|
46
|
+
})(InferredWorkloadTypesPreference = exports.InferredWorkloadTypesPreference || (exports.InferredWorkloadTypesPreference = {}));
|
|
42
47
|
var EffectiveRecommendationPreferences;
|
|
43
48
|
(function (EffectiveRecommendationPreferences) {
|
|
44
49
|
EffectiveRecommendationPreferences.filterSensitiveLog = (obj) => ({
|
|
@@ -52,6 +57,23 @@ var Finding;
|
|
|
52
57
|
Finding["OVER_PROVISIONED"] = "Overprovisioned";
|
|
53
58
|
Finding["UNDER_PROVISIONED"] = "Underprovisioned";
|
|
54
59
|
})(Finding = exports.Finding || (exports.Finding = {}));
|
|
60
|
+
var InferredWorkloadType;
|
|
61
|
+
(function (InferredWorkloadType) {
|
|
62
|
+
InferredWorkloadType["AMAZON_EMR"] = "AmazonEmr";
|
|
63
|
+
InferredWorkloadType["APACHE_CASSANDRA"] = "ApacheCassandra";
|
|
64
|
+
InferredWorkloadType["APACHE_HADOOP"] = "ApacheHadoop";
|
|
65
|
+
InferredWorkloadType["MEMCACHED"] = "Memcached";
|
|
66
|
+
InferredWorkloadType["NGINX"] = "Nginx";
|
|
67
|
+
InferredWorkloadType["POSTGRE_SQL"] = "PostgreSql";
|
|
68
|
+
InferredWorkloadType["REDIS"] = "Redis";
|
|
69
|
+
})(InferredWorkloadType = exports.InferredWorkloadType || (exports.InferredWorkloadType = {}));
|
|
70
|
+
var MigrationEffort;
|
|
71
|
+
(function (MigrationEffort) {
|
|
72
|
+
MigrationEffort["HIGH"] = "High";
|
|
73
|
+
MigrationEffort["LOW"] = "Low";
|
|
74
|
+
MigrationEffort["MEDIUM"] = "Medium";
|
|
75
|
+
MigrationEffort["VERY_LOW"] = "VeryLow";
|
|
76
|
+
})(MigrationEffort = exports.MigrationEffort || (exports.MigrationEffort = {}));
|
|
55
77
|
var MetricName;
|
|
56
78
|
(function (MetricName) {
|
|
57
79
|
MetricName["CPU"] = "Cpu";
|
|
@@ -112,6 +134,7 @@ var AutoScalingGroupRecommendation;
|
|
|
112
134
|
var RecommendationPreferenceName;
|
|
113
135
|
(function (RecommendationPreferenceName) {
|
|
114
136
|
RecommendationPreferenceName["ENHANCED_INFRASTRUCTURE_METRICS"] = "EnhancedInfrastructureMetrics";
|
|
137
|
+
RecommendationPreferenceName["INFERRED_WORKLOAD_TYPES"] = "InferredWorkloadTypes";
|
|
115
138
|
})(RecommendationPreferenceName = exports.RecommendationPreferenceName || (exports.RecommendationPreferenceName = {}));
|
|
116
139
|
var ResourceType;
|
|
117
140
|
(function (ResourceType) {
|
|
@@ -119,6 +142,7 @@ var ResourceType;
|
|
|
119
142
|
ResourceType["EBS_VOLUME"] = "EbsVolume";
|
|
120
143
|
ResourceType["EC2_INSTANCE"] = "Ec2Instance";
|
|
121
144
|
ResourceType["LAMBDA_FUNCTION"] = "LambdaFunction";
|
|
145
|
+
ResourceType["NOT_APPLICABLE"] = "NotApplicable";
|
|
122
146
|
})(ResourceType = exports.ResourceType || (exports.ResourceType = {}));
|
|
123
147
|
var ScopeName;
|
|
124
148
|
(function (ScopeName) {
|
|
@@ -211,7 +235,9 @@ var ExportableAutoScalingGroupField;
|
|
|
211
235
|
ExportableAutoScalingGroupField["CURRENT_VCPUS"] = "CurrentVCpus";
|
|
212
236
|
ExportableAutoScalingGroupField["EFFECTIVE_RECOMMENDATION_PREFERENCES_CPU_VENDOR_ARCHITECTURES"] = "EffectiveRecommendationPreferencesCpuVendorArchitectures";
|
|
213
237
|
ExportableAutoScalingGroupField["EFFECTIVE_RECOMMENDATION_PREFERENCES_ENHANCED_INFRASTRUCTURE_METRICS"] = "EffectiveRecommendationPreferencesEnhancedInfrastructureMetrics";
|
|
238
|
+
ExportableAutoScalingGroupField["EFFECTIVE_RECOMMENDATION_PREFERENCES_INFERRED_WORKLOAD_TYPES"] = "EffectiveRecommendationPreferencesInferredWorkloadTypes";
|
|
214
239
|
ExportableAutoScalingGroupField["FINDING"] = "Finding";
|
|
240
|
+
ExportableAutoScalingGroupField["INFERRED_WORKLOAD_TYPES"] = "InferredWorkloadTypes";
|
|
215
241
|
ExportableAutoScalingGroupField["LAST_REFRESH_TIMESTAMP"] = "LastRefreshTimestamp";
|
|
216
242
|
ExportableAutoScalingGroupField["LOOKBACK_PERIOD_IN_DAYS"] = "LookbackPeriodInDays";
|
|
217
243
|
ExportableAutoScalingGroupField["RECOMMENDATION_OPTIONS_CONFIGURATION_DESIRED_CAPACITY"] = "RecommendationOptionsConfigurationDesiredCapacity";
|
|
@@ -221,6 +247,7 @@ var ExportableAutoScalingGroupField;
|
|
|
221
247
|
ExportableAutoScalingGroupField["RECOMMENDATION_OPTIONS_ESTIMATED_MONTHLY_SAVINGS_CURRENCY"] = "RecommendationOptionsEstimatedMonthlySavingsCurrency";
|
|
222
248
|
ExportableAutoScalingGroupField["RECOMMENDATION_OPTIONS_ESTIMATED_MONTHLY_SAVINGS_VALUE"] = "RecommendationOptionsEstimatedMonthlySavingsValue";
|
|
223
249
|
ExportableAutoScalingGroupField["RECOMMENDATION_OPTIONS_MEMORY"] = "RecommendationOptionsMemory";
|
|
250
|
+
ExportableAutoScalingGroupField["RECOMMENDATION_OPTIONS_MIGRATION_EFFORT"] = "RecommendationOptionsMigrationEffort";
|
|
224
251
|
ExportableAutoScalingGroupField["RECOMMENDATION_OPTIONS_NETWORK"] = "RecommendationOptionsNetwork";
|
|
225
252
|
ExportableAutoScalingGroupField["RECOMMENDATION_OPTIONS_ON_DEMAND_PRICE"] = "RecommendationOptionsOnDemandPrice";
|
|
226
253
|
ExportableAutoScalingGroupField["RECOMMENDATION_OPTIONS_PERFORMANCE_RISK"] = "RecommendationOptionsPerformanceRisk";
|
|
@@ -353,8 +380,10 @@ var ExportableInstanceField;
|
|
|
353
380
|
ExportableInstanceField["CURRENT_VCPUS"] = "CurrentVCpus";
|
|
354
381
|
ExportableInstanceField["EFFECTIVE_RECOMMENDATION_PREFERENCES_CPU_VENDOR_ARCHITECTURES"] = "EffectiveRecommendationPreferencesCpuVendorArchitectures";
|
|
355
382
|
ExportableInstanceField["EFFECTIVE_RECOMMENDATION_PREFERENCES_ENHANCED_INFRASTRUCTURE_METRICS"] = "EffectiveRecommendationPreferencesEnhancedInfrastructureMetrics";
|
|
383
|
+
ExportableInstanceField["EFFECTIVE_RECOMMENDATION_PREFERENCES_INFERRED_WORKLOAD_TYPES"] = "EffectiveRecommendationPreferencesInferredWorkloadTypes";
|
|
356
384
|
ExportableInstanceField["FINDING"] = "Finding";
|
|
357
385
|
ExportableInstanceField["Finding_Reason_Codes"] = "FindingReasonCodes";
|
|
386
|
+
ExportableInstanceField["INFERRED_WORKLOAD_TYPES"] = "InferredWorkloadTypes";
|
|
358
387
|
ExportableInstanceField["INSTANCE_ARN"] = "InstanceArn";
|
|
359
388
|
ExportableInstanceField["INSTANCE_NAME"] = "InstanceName";
|
|
360
389
|
ExportableInstanceField["LAST_REFRESH_TIMESTAMP"] = "LastRefreshTimestamp";
|
|
@@ -365,6 +394,7 @@ var ExportableInstanceField;
|
|
|
365
394
|
ExportableInstanceField["RECOMMENDATION_OPTIONS_ESTIMATED_MONTHLY_SAVINGS_VALUE"] = "RecommendationOptionsEstimatedMonthlySavingsValue";
|
|
366
395
|
ExportableInstanceField["RECOMMENDATION_OPTIONS_INSTANCE_TYPE"] = "RecommendationOptionsInstanceType";
|
|
367
396
|
ExportableInstanceField["RECOMMENDATION_OPTIONS_MEMORY"] = "RecommendationOptionsMemory";
|
|
397
|
+
ExportableInstanceField["RECOMMENDATION_OPTIONS_MIGRATION_EFFORT"] = "RecommendationOptionsMigrationEffort";
|
|
368
398
|
ExportableInstanceField["RECOMMENDATION_OPTIONS_NETWORK"] = "RecommendationOptionsNetwork";
|
|
369
399
|
ExportableInstanceField["RECOMMENDATION_OPTIONS_ON_DEMAND_PRICE"] = "RecommendationOptionsOnDemandPrice";
|
|
370
400
|
ExportableInstanceField["RECOMMENDATION_OPTIONS_PERFORMANCE_RISK"] = "RecommendationOptionsPerformanceRisk";
|
|
@@ -2496,6 +2496,8 @@ const serializeAws_json1_0PutRecommendationPreferencesRequest = (input, context)
|
|
|
2496
2496
|
input.enhancedInfrastructureMetrics !== null && {
|
|
2497
2497
|
enhancedInfrastructureMetrics: input.enhancedInfrastructureMetrics,
|
|
2498
2498
|
}),
|
|
2499
|
+
...(input.inferredWorkloadTypes !== undefined &&
|
|
2500
|
+
input.inferredWorkloadTypes !== null && { inferredWorkloadTypes: input.inferredWorkloadTypes }),
|
|
2499
2501
|
...(input.resourceType !== undefined && input.resourceType !== null && { resourceType: input.resourceType }),
|
|
2500
2502
|
...(input.scope !== undefined &&
|
|
2501
2503
|
input.scope !== null && { scope: serializeAws_json1_0Scope(input.scope, context) }),
|
|
@@ -2594,6 +2596,9 @@ const deserializeAws_json1_0AutoScalingGroupRecommendation = (output, context) =
|
|
|
2594
2596
|
? deserializeAws_json1_0EffectiveRecommendationPreferences(output.effectiveRecommendationPreferences, context)
|
|
2595
2597
|
: undefined,
|
|
2596
2598
|
finding: smithy_client_1.expectString(output.finding),
|
|
2599
|
+
inferredWorkloadTypes: output.inferredWorkloadTypes !== undefined && output.inferredWorkloadTypes !== null
|
|
2600
|
+
? deserializeAws_json1_0InferredWorkloadTypes(output.inferredWorkloadTypes, context)
|
|
2601
|
+
: undefined,
|
|
2597
2602
|
lastRefreshTimestamp: output.lastRefreshTimestamp !== undefined && output.lastRefreshTimestamp !== null
|
|
2598
2603
|
? smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(output.lastRefreshTimestamp)))
|
|
2599
2604
|
: undefined,
|
|
@@ -2611,6 +2616,7 @@ const deserializeAws_json1_0AutoScalingGroupRecommendationOption = (output, cont
|
|
|
2611
2616
|
configuration: output.configuration !== undefined && output.configuration !== null
|
|
2612
2617
|
? deserializeAws_json1_0AutoScalingGroupConfiguration(output.configuration, context)
|
|
2613
2618
|
: undefined,
|
|
2619
|
+
migrationEffort: smithy_client_1.expectString(output.migrationEffort),
|
|
2614
2620
|
performanceRisk: smithy_client_1.limitedParseDouble(output.performanceRisk),
|
|
2615
2621
|
projectedUtilizationMetrics: output.projectedUtilizationMetrics !== undefined && output.projectedUtilizationMetrics !== null
|
|
2616
2622
|
? deserializeAws_json1_0ProjectedUtilizationMetrics(output.projectedUtilizationMetrics, context)
|
|
@@ -2693,6 +2699,7 @@ const deserializeAws_json1_0EffectiveRecommendationPreferences = (output, contex
|
|
|
2693
2699
|
? deserializeAws_json1_0CpuVendorArchitectures(output.cpuVendorArchitectures, context)
|
|
2694
2700
|
: undefined,
|
|
2695
2701
|
enhancedInfrastructureMetrics: smithy_client_1.expectString(output.enhancedInfrastructureMetrics),
|
|
2702
|
+
inferredWorkloadTypes: smithy_client_1.expectString(output.inferredWorkloadTypes),
|
|
2696
2703
|
};
|
|
2697
2704
|
};
|
|
2698
2705
|
const deserializeAws_json1_0EstimatedMonthlySavings = (output, context) => {
|
|
@@ -2845,6 +2852,16 @@ const deserializeAws_json1_0GetRecommendationSummariesResponse = (output, contex
|
|
|
2845
2852
|
: undefined,
|
|
2846
2853
|
};
|
|
2847
2854
|
};
|
|
2855
|
+
const deserializeAws_json1_0InferredWorkloadTypes = (output, context) => {
|
|
2856
|
+
return (output || [])
|
|
2857
|
+
.filter((e) => e != null)
|
|
2858
|
+
.map((entry) => {
|
|
2859
|
+
if (entry === null) {
|
|
2860
|
+
return null;
|
|
2861
|
+
}
|
|
2862
|
+
return smithy_client_1.expectString(entry);
|
|
2863
|
+
});
|
|
2864
|
+
};
|
|
2848
2865
|
const deserializeAws_json1_0InstanceRecommendation = (output, context) => {
|
|
2849
2866
|
return {
|
|
2850
2867
|
accountId: smithy_client_1.expectString(output.accountId),
|
|
@@ -2857,6 +2874,9 @@ const deserializeAws_json1_0InstanceRecommendation = (output, context) => {
|
|
|
2857
2874
|
findingReasonCodes: output.findingReasonCodes !== undefined && output.findingReasonCodes !== null
|
|
2858
2875
|
? deserializeAws_json1_0InstanceRecommendationFindingReasonCodes(output.findingReasonCodes, context)
|
|
2859
2876
|
: undefined,
|
|
2877
|
+
inferredWorkloadTypes: output.inferredWorkloadTypes !== undefined && output.inferredWorkloadTypes !== null
|
|
2878
|
+
? deserializeAws_json1_0InferredWorkloadTypes(output.inferredWorkloadTypes, context)
|
|
2879
|
+
: undefined,
|
|
2860
2880
|
instanceArn: smithy_client_1.expectString(output.instanceArn),
|
|
2861
2881
|
instanceName: smithy_client_1.expectString(output.instanceName),
|
|
2862
2882
|
lastRefreshTimestamp: output.lastRefreshTimestamp !== undefined && output.lastRefreshTimestamp !== null
|
|
@@ -2887,6 +2907,7 @@ const deserializeAws_json1_0InstanceRecommendationFindingReasonCodes = (output,
|
|
|
2887
2907
|
const deserializeAws_json1_0InstanceRecommendationOption = (output, context) => {
|
|
2888
2908
|
return {
|
|
2889
2909
|
instanceType: smithy_client_1.expectString(output.instanceType),
|
|
2910
|
+
migrationEffort: smithy_client_1.expectString(output.migrationEffort),
|
|
2890
2911
|
performanceRisk: smithy_client_1.limitedParseDouble(output.performanceRisk),
|
|
2891
2912
|
platformDifferences: output.platformDifferences !== undefined && output.platformDifferences !== null
|
|
2892
2913
|
? deserializeAws_json1_0PlatformDifferences(output.platformDifferences, context)
|
|
@@ -3145,6 +3166,7 @@ const deserializeAws_json1_0RecommendationOptions = (output, context) => {
|
|
|
3145
3166
|
const deserializeAws_json1_0RecommendationPreferencesDetail = (output, context) => {
|
|
3146
3167
|
return {
|
|
3147
3168
|
enhancedInfrastructureMetrics: smithy_client_1.expectString(output.enhancedInfrastructureMetrics),
|
|
3169
|
+
inferredWorkloadTypes: smithy_client_1.expectString(output.inferredWorkloadTypes),
|
|
3148
3170
|
resourceType: smithy_client_1.expectString(output.resourceType),
|
|
3149
3171
|
scope: output.scope !== undefined && output.scope !== null
|
|
3150
3172
|
? deserializeAws_json1_0Scope(output.scope, context)
|
|
@@ -31,6 +31,11 @@ export var EnhancedInfrastructureMetrics;
|
|
|
31
31
|
EnhancedInfrastructureMetrics["ACTIVE"] = "Active";
|
|
32
32
|
EnhancedInfrastructureMetrics["INACTIVE"] = "Inactive";
|
|
33
33
|
})(EnhancedInfrastructureMetrics || (EnhancedInfrastructureMetrics = {}));
|
|
34
|
+
export var InferredWorkloadTypesPreference;
|
|
35
|
+
(function (InferredWorkloadTypesPreference) {
|
|
36
|
+
InferredWorkloadTypesPreference["ACTIVE"] = "Active";
|
|
37
|
+
InferredWorkloadTypesPreference["INACTIVE"] = "Inactive";
|
|
38
|
+
})(InferredWorkloadTypesPreference || (InferredWorkloadTypesPreference = {}));
|
|
34
39
|
export var EffectiveRecommendationPreferences;
|
|
35
40
|
(function (EffectiveRecommendationPreferences) {
|
|
36
41
|
EffectiveRecommendationPreferences.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
@@ -42,6 +47,23 @@ export var Finding;
|
|
|
42
47
|
Finding["OVER_PROVISIONED"] = "Overprovisioned";
|
|
43
48
|
Finding["UNDER_PROVISIONED"] = "Underprovisioned";
|
|
44
49
|
})(Finding || (Finding = {}));
|
|
50
|
+
export var InferredWorkloadType;
|
|
51
|
+
(function (InferredWorkloadType) {
|
|
52
|
+
InferredWorkloadType["AMAZON_EMR"] = "AmazonEmr";
|
|
53
|
+
InferredWorkloadType["APACHE_CASSANDRA"] = "ApacheCassandra";
|
|
54
|
+
InferredWorkloadType["APACHE_HADOOP"] = "ApacheHadoop";
|
|
55
|
+
InferredWorkloadType["MEMCACHED"] = "Memcached";
|
|
56
|
+
InferredWorkloadType["NGINX"] = "Nginx";
|
|
57
|
+
InferredWorkloadType["POSTGRE_SQL"] = "PostgreSql";
|
|
58
|
+
InferredWorkloadType["REDIS"] = "Redis";
|
|
59
|
+
})(InferredWorkloadType || (InferredWorkloadType = {}));
|
|
60
|
+
export var MigrationEffort;
|
|
61
|
+
(function (MigrationEffort) {
|
|
62
|
+
MigrationEffort["HIGH"] = "High";
|
|
63
|
+
MigrationEffort["LOW"] = "Low";
|
|
64
|
+
MigrationEffort["MEDIUM"] = "Medium";
|
|
65
|
+
MigrationEffort["VERY_LOW"] = "VeryLow";
|
|
66
|
+
})(MigrationEffort || (MigrationEffort = {}));
|
|
45
67
|
export var MetricName;
|
|
46
68
|
(function (MetricName) {
|
|
47
69
|
MetricName["CPU"] = "Cpu";
|
|
@@ -92,6 +114,7 @@ export var AutoScalingGroupRecommendation;
|
|
|
92
114
|
export var RecommendationPreferenceName;
|
|
93
115
|
(function (RecommendationPreferenceName) {
|
|
94
116
|
RecommendationPreferenceName["ENHANCED_INFRASTRUCTURE_METRICS"] = "EnhancedInfrastructureMetrics";
|
|
117
|
+
RecommendationPreferenceName["INFERRED_WORKLOAD_TYPES"] = "InferredWorkloadTypes";
|
|
95
118
|
})(RecommendationPreferenceName || (RecommendationPreferenceName = {}));
|
|
96
119
|
export var ResourceType;
|
|
97
120
|
(function (ResourceType) {
|
|
@@ -99,6 +122,7 @@ export var ResourceType;
|
|
|
99
122
|
ResourceType["EBS_VOLUME"] = "EbsVolume";
|
|
100
123
|
ResourceType["EC2_INSTANCE"] = "Ec2Instance";
|
|
101
124
|
ResourceType["LAMBDA_FUNCTION"] = "LambdaFunction";
|
|
125
|
+
ResourceType["NOT_APPLICABLE"] = "NotApplicable";
|
|
102
126
|
})(ResourceType || (ResourceType = {}));
|
|
103
127
|
export var ScopeName;
|
|
104
128
|
(function (ScopeName) {
|
|
@@ -173,7 +197,9 @@ export var ExportableAutoScalingGroupField;
|
|
|
173
197
|
ExportableAutoScalingGroupField["CURRENT_VCPUS"] = "CurrentVCpus";
|
|
174
198
|
ExportableAutoScalingGroupField["EFFECTIVE_RECOMMENDATION_PREFERENCES_CPU_VENDOR_ARCHITECTURES"] = "EffectiveRecommendationPreferencesCpuVendorArchitectures";
|
|
175
199
|
ExportableAutoScalingGroupField["EFFECTIVE_RECOMMENDATION_PREFERENCES_ENHANCED_INFRASTRUCTURE_METRICS"] = "EffectiveRecommendationPreferencesEnhancedInfrastructureMetrics";
|
|
200
|
+
ExportableAutoScalingGroupField["EFFECTIVE_RECOMMENDATION_PREFERENCES_INFERRED_WORKLOAD_TYPES"] = "EffectiveRecommendationPreferencesInferredWorkloadTypes";
|
|
176
201
|
ExportableAutoScalingGroupField["FINDING"] = "Finding";
|
|
202
|
+
ExportableAutoScalingGroupField["INFERRED_WORKLOAD_TYPES"] = "InferredWorkloadTypes";
|
|
177
203
|
ExportableAutoScalingGroupField["LAST_REFRESH_TIMESTAMP"] = "LastRefreshTimestamp";
|
|
178
204
|
ExportableAutoScalingGroupField["LOOKBACK_PERIOD_IN_DAYS"] = "LookbackPeriodInDays";
|
|
179
205
|
ExportableAutoScalingGroupField["RECOMMENDATION_OPTIONS_CONFIGURATION_DESIRED_CAPACITY"] = "RecommendationOptionsConfigurationDesiredCapacity";
|
|
@@ -183,6 +209,7 @@ export var ExportableAutoScalingGroupField;
|
|
|
183
209
|
ExportableAutoScalingGroupField["RECOMMENDATION_OPTIONS_ESTIMATED_MONTHLY_SAVINGS_CURRENCY"] = "RecommendationOptionsEstimatedMonthlySavingsCurrency";
|
|
184
210
|
ExportableAutoScalingGroupField["RECOMMENDATION_OPTIONS_ESTIMATED_MONTHLY_SAVINGS_VALUE"] = "RecommendationOptionsEstimatedMonthlySavingsValue";
|
|
185
211
|
ExportableAutoScalingGroupField["RECOMMENDATION_OPTIONS_MEMORY"] = "RecommendationOptionsMemory";
|
|
212
|
+
ExportableAutoScalingGroupField["RECOMMENDATION_OPTIONS_MIGRATION_EFFORT"] = "RecommendationOptionsMigrationEffort";
|
|
186
213
|
ExportableAutoScalingGroupField["RECOMMENDATION_OPTIONS_NETWORK"] = "RecommendationOptionsNetwork";
|
|
187
214
|
ExportableAutoScalingGroupField["RECOMMENDATION_OPTIONS_ON_DEMAND_PRICE"] = "RecommendationOptionsOnDemandPrice";
|
|
188
215
|
ExportableAutoScalingGroupField["RECOMMENDATION_OPTIONS_PERFORMANCE_RISK"] = "RecommendationOptionsPerformanceRisk";
|
|
@@ -299,8 +326,10 @@ export var ExportableInstanceField;
|
|
|
299
326
|
ExportableInstanceField["CURRENT_VCPUS"] = "CurrentVCpus";
|
|
300
327
|
ExportableInstanceField["EFFECTIVE_RECOMMENDATION_PREFERENCES_CPU_VENDOR_ARCHITECTURES"] = "EffectiveRecommendationPreferencesCpuVendorArchitectures";
|
|
301
328
|
ExportableInstanceField["EFFECTIVE_RECOMMENDATION_PREFERENCES_ENHANCED_INFRASTRUCTURE_METRICS"] = "EffectiveRecommendationPreferencesEnhancedInfrastructureMetrics";
|
|
329
|
+
ExportableInstanceField["EFFECTIVE_RECOMMENDATION_PREFERENCES_INFERRED_WORKLOAD_TYPES"] = "EffectiveRecommendationPreferencesInferredWorkloadTypes";
|
|
302
330
|
ExportableInstanceField["FINDING"] = "Finding";
|
|
303
331
|
ExportableInstanceField["Finding_Reason_Codes"] = "FindingReasonCodes";
|
|
332
|
+
ExportableInstanceField["INFERRED_WORKLOAD_TYPES"] = "InferredWorkloadTypes";
|
|
304
333
|
ExportableInstanceField["INSTANCE_ARN"] = "InstanceArn";
|
|
305
334
|
ExportableInstanceField["INSTANCE_NAME"] = "InstanceName";
|
|
306
335
|
ExportableInstanceField["LAST_REFRESH_TIMESTAMP"] = "LastRefreshTimestamp";
|
|
@@ -311,6 +340,7 @@ export var ExportableInstanceField;
|
|
|
311
340
|
ExportableInstanceField["RECOMMENDATION_OPTIONS_ESTIMATED_MONTHLY_SAVINGS_VALUE"] = "RecommendationOptionsEstimatedMonthlySavingsValue";
|
|
312
341
|
ExportableInstanceField["RECOMMENDATION_OPTIONS_INSTANCE_TYPE"] = "RecommendationOptionsInstanceType";
|
|
313
342
|
ExportableInstanceField["RECOMMENDATION_OPTIONS_MEMORY"] = "RecommendationOptionsMemory";
|
|
343
|
+
ExportableInstanceField["RECOMMENDATION_OPTIONS_MIGRATION_EFFORT"] = "RecommendationOptionsMigrationEffort";
|
|
314
344
|
ExportableInstanceField["RECOMMENDATION_OPTIONS_NETWORK"] = "RecommendationOptionsNetwork";
|
|
315
345
|
ExportableInstanceField["RECOMMENDATION_OPTIONS_ON_DEMAND_PRICE"] = "RecommendationOptionsOnDemandPrice";
|
|
316
346
|
ExportableInstanceField["RECOMMENDATION_OPTIONS_PERFORMANCE_RISK"] = "RecommendationOptionsPerformanceRisk";
|
|
@@ -2549,10 +2549,11 @@ var serializeAws_json1_0LambdaFunctionRecommendationFilters = function (input, c
|
|
|
2549
2549
|
});
|
|
2550
2550
|
};
|
|
2551
2551
|
var serializeAws_json1_0PutRecommendationPreferencesRequest = function (input, context) {
|
|
2552
|
-
return __assign(__assign(__assign({}, (input.enhancedInfrastructureMetrics !== undefined &&
|
|
2552
|
+
return __assign(__assign(__assign(__assign({}, (input.enhancedInfrastructureMetrics !== undefined &&
|
|
2553
2553
|
input.enhancedInfrastructureMetrics !== null && {
|
|
2554
2554
|
enhancedInfrastructureMetrics: input.enhancedInfrastructureMetrics,
|
|
2555
|
-
})), (input.
|
|
2555
|
+
})), (input.inferredWorkloadTypes !== undefined &&
|
|
2556
|
+
input.inferredWorkloadTypes !== null && { inferredWorkloadTypes: input.inferredWorkloadTypes })), (input.resourceType !== undefined && input.resourceType !== null && { resourceType: input.resourceType })), (input.scope !== undefined &&
|
|
2556
2557
|
input.scope !== null && { scope: serializeAws_json1_0Scope(input.scope, context) }));
|
|
2557
2558
|
};
|
|
2558
2559
|
var serializeAws_json1_0RecommendationPreferenceNames = function (input, context) {
|
|
@@ -2637,6 +2638,9 @@ var deserializeAws_json1_0AutoScalingGroupRecommendation = function (output, con
|
|
|
2637
2638
|
? deserializeAws_json1_0EffectiveRecommendationPreferences(output.effectiveRecommendationPreferences, context)
|
|
2638
2639
|
: undefined,
|
|
2639
2640
|
finding: __expectString(output.finding),
|
|
2641
|
+
inferredWorkloadTypes: output.inferredWorkloadTypes !== undefined && output.inferredWorkloadTypes !== null
|
|
2642
|
+
? deserializeAws_json1_0InferredWorkloadTypes(output.inferredWorkloadTypes, context)
|
|
2643
|
+
: undefined,
|
|
2640
2644
|
lastRefreshTimestamp: output.lastRefreshTimestamp !== undefined && output.lastRefreshTimestamp !== null
|
|
2641
2645
|
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.lastRefreshTimestamp)))
|
|
2642
2646
|
: undefined,
|
|
@@ -2654,6 +2658,7 @@ var deserializeAws_json1_0AutoScalingGroupRecommendationOption = function (outpu
|
|
|
2654
2658
|
configuration: output.configuration !== undefined && output.configuration !== null
|
|
2655
2659
|
? deserializeAws_json1_0AutoScalingGroupConfiguration(output.configuration, context)
|
|
2656
2660
|
: undefined,
|
|
2661
|
+
migrationEffort: __expectString(output.migrationEffort),
|
|
2657
2662
|
performanceRisk: __limitedParseDouble(output.performanceRisk),
|
|
2658
2663
|
projectedUtilizationMetrics: output.projectedUtilizationMetrics !== undefined && output.projectedUtilizationMetrics !== null
|
|
2659
2664
|
? deserializeAws_json1_0ProjectedUtilizationMetrics(output.projectedUtilizationMetrics, context)
|
|
@@ -2736,6 +2741,7 @@ var deserializeAws_json1_0EffectiveRecommendationPreferences = function (output,
|
|
|
2736
2741
|
? deserializeAws_json1_0CpuVendorArchitectures(output.cpuVendorArchitectures, context)
|
|
2737
2742
|
: undefined,
|
|
2738
2743
|
enhancedInfrastructureMetrics: __expectString(output.enhancedInfrastructureMetrics),
|
|
2744
|
+
inferredWorkloadTypes: __expectString(output.inferredWorkloadTypes),
|
|
2739
2745
|
};
|
|
2740
2746
|
};
|
|
2741
2747
|
var deserializeAws_json1_0EstimatedMonthlySavings = function (output, context) {
|
|
@@ -2888,6 +2894,16 @@ var deserializeAws_json1_0GetRecommendationSummariesResponse = function (output,
|
|
|
2888
2894
|
: undefined,
|
|
2889
2895
|
};
|
|
2890
2896
|
};
|
|
2897
|
+
var deserializeAws_json1_0InferredWorkloadTypes = function (output, context) {
|
|
2898
|
+
return (output || [])
|
|
2899
|
+
.filter(function (e) { return e != null; })
|
|
2900
|
+
.map(function (entry) {
|
|
2901
|
+
if (entry === null) {
|
|
2902
|
+
return null;
|
|
2903
|
+
}
|
|
2904
|
+
return __expectString(entry);
|
|
2905
|
+
});
|
|
2906
|
+
};
|
|
2891
2907
|
var deserializeAws_json1_0InstanceRecommendation = function (output, context) {
|
|
2892
2908
|
return {
|
|
2893
2909
|
accountId: __expectString(output.accountId),
|
|
@@ -2900,6 +2916,9 @@ var deserializeAws_json1_0InstanceRecommendation = function (output, context) {
|
|
|
2900
2916
|
findingReasonCodes: output.findingReasonCodes !== undefined && output.findingReasonCodes !== null
|
|
2901
2917
|
? deserializeAws_json1_0InstanceRecommendationFindingReasonCodes(output.findingReasonCodes, context)
|
|
2902
2918
|
: undefined,
|
|
2919
|
+
inferredWorkloadTypes: output.inferredWorkloadTypes !== undefined && output.inferredWorkloadTypes !== null
|
|
2920
|
+
? deserializeAws_json1_0InferredWorkloadTypes(output.inferredWorkloadTypes, context)
|
|
2921
|
+
: undefined,
|
|
2903
2922
|
instanceArn: __expectString(output.instanceArn),
|
|
2904
2923
|
instanceName: __expectString(output.instanceName),
|
|
2905
2924
|
lastRefreshTimestamp: output.lastRefreshTimestamp !== undefined && output.lastRefreshTimestamp !== null
|
|
@@ -2930,6 +2949,7 @@ var deserializeAws_json1_0InstanceRecommendationFindingReasonCodes = function (o
|
|
|
2930
2949
|
var deserializeAws_json1_0InstanceRecommendationOption = function (output, context) {
|
|
2931
2950
|
return {
|
|
2932
2951
|
instanceType: __expectString(output.instanceType),
|
|
2952
|
+
migrationEffort: __expectString(output.migrationEffort),
|
|
2933
2953
|
performanceRisk: __limitedParseDouble(output.performanceRisk),
|
|
2934
2954
|
platformDifferences: output.platformDifferences !== undefined && output.platformDifferences !== null
|
|
2935
2955
|
? deserializeAws_json1_0PlatformDifferences(output.platformDifferences, context)
|
|
@@ -3188,6 +3208,7 @@ var deserializeAws_json1_0RecommendationOptions = function (output, context) {
|
|
|
3188
3208
|
var deserializeAws_json1_0RecommendationPreferencesDetail = function (output, context) {
|
|
3189
3209
|
return {
|
|
3190
3210
|
enhancedInfrastructureMetrics: __expectString(output.enhancedInfrastructureMetrics),
|
|
3211
|
+
inferredWorkloadTypes: __expectString(output.inferredWorkloadTypes),
|
|
3191
3212
|
resourceType: __expectString(output.resourceType),
|
|
3192
3213
|
scope: output.scope !== undefined && output.scope !== null
|
|
3193
3214
|
? deserializeAws_json1_0Scope(output.scope, context)
|