@aws-sdk/client-compute-optimizer 3.723.0 → 3.726.1
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/index.js +33 -2
- package/dist-es/models/models_0.js +15 -0
- package/dist-es/protocols/Aws_json1_0.js +14 -2
- package/dist-types/commands/ExportAutoScalingGroupRecommendationsCommand.d.ts +1 -1
- package/dist-types/commands/GetAutoScalingGroupRecommendationsCommand.d.ts +12 -0
- package/dist-types/models/models_0.d.ts +64 -5
- package/dist-types/ts3.4/models/models_0.d.ts +22 -0
- package/package.json +7 -7
package/dist-cjs/index.js
CHANGED
|
@@ -22,6 +22,8 @@ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: tru
|
|
|
22
22
|
var src_exports = {};
|
|
23
23
|
__export(src_exports, {
|
|
24
24
|
AccessDeniedException: () => AccessDeniedException,
|
|
25
|
+
AllocationStrategy: () => AllocationStrategy,
|
|
26
|
+
AsgType: () => AsgType,
|
|
25
27
|
AutoScalingConfiguration: () => AutoScalingConfiguration,
|
|
26
28
|
ComputeOptimizer: () => ComputeOptimizer,
|
|
27
29
|
ComputeOptimizerClient: () => ComputeOptimizerClient,
|
|
@@ -350,6 +352,14 @@ var Status = {
|
|
|
350
352
|
INACTIVE: "Inactive",
|
|
351
353
|
PENDING: "Pending"
|
|
352
354
|
};
|
|
355
|
+
var AllocationStrategy = {
|
|
356
|
+
LOWEST_PRICE: "LowestPrice",
|
|
357
|
+
PRIORITIZED: "Prioritized"
|
|
358
|
+
};
|
|
359
|
+
var AsgType = {
|
|
360
|
+
MIXED_INSTANCE_TYPE: "MixedInstanceTypes",
|
|
361
|
+
SINGLE_INSTANCE_TYPE: "SingleInstanceType"
|
|
362
|
+
};
|
|
353
363
|
var AutoScalingConfiguration = {
|
|
354
364
|
TARGET_TRACKING_SCALING_CPU: "TargetTrackingScalingCpu",
|
|
355
365
|
TARGET_TRACKING_SCALING_MEMORY: "TargetTrackingScalingMemory"
|
|
@@ -619,10 +629,13 @@ var ExportableAutoScalingGroupField = {
|
|
|
619
629
|
ACCOUNT_ID: "AccountId",
|
|
620
630
|
AUTO_SCALING_GROUP_ARN: "AutoScalingGroupArn",
|
|
621
631
|
AUTO_SCALING_GROUP_NAME: "AutoScalingGroupName",
|
|
632
|
+
CURRENT_CONFIGURATION_ALLOCATION_STRATEGY: "CurrentConfigurationAllocationStrategy",
|
|
622
633
|
CURRENT_CONFIGURATION_DESIRED_CAPACITY: "CurrentConfigurationDesiredCapacity",
|
|
623
634
|
CURRENT_CONFIGURATION_INSTANCE_TYPE: "CurrentConfigurationInstanceType",
|
|
624
635
|
CURRENT_CONFIGURATION_MAX_SIZE: "CurrentConfigurationMaxSize",
|
|
625
636
|
CURRENT_CONFIGURATION_MIN_SIZE: "CurrentConfigurationMinSize",
|
|
637
|
+
CURRENT_CONFIGURATION_MIXED_INSTANCE_TYPES: "CurrentConfigurationMixedInstanceTypes",
|
|
638
|
+
CURRENT_CONFIGURATION_TYPE: "CurrentConfigurationType",
|
|
626
639
|
CURRENT_INSTANCE_GPU_INFO: "CurrentInstanceGpuInfo",
|
|
627
640
|
CURRENT_MEMORY: "CurrentMemory",
|
|
628
641
|
CURRENT_NETWORK: "CurrentNetwork",
|
|
@@ -642,10 +655,14 @@ var ExportableAutoScalingGroupField = {
|
|
|
642
655
|
INFERRED_WORKLOAD_TYPES: "InferredWorkloadTypes",
|
|
643
656
|
LAST_REFRESH_TIMESTAMP: "LastRefreshTimestamp",
|
|
644
657
|
LOOKBACK_PERIOD_IN_DAYS: "LookbackPeriodInDays",
|
|
658
|
+
RECOMMENDATION_OPTIONS_CONFIGURATION_ALLOCATION_STRATEGY: "RecommendationOptionsConfigurationAllocationStrategy",
|
|
645
659
|
RECOMMENDATION_OPTIONS_CONFIGURATION_DESIRED_CAPACITY: "RecommendationOptionsConfigurationDesiredCapacity",
|
|
660
|
+
RECOMMENDATION_OPTIONS_CONFIGURATION_ESTIMATED_INSTANCE_HOUR_REDUCTION_PERCENTAGE: "RecommendationOptionsConfigurationEstimatedInstanceHourReductionPercentage",
|
|
646
661
|
RECOMMENDATION_OPTIONS_CONFIGURATION_INSTANCE_TYPE: "RecommendationOptionsConfigurationInstanceType",
|
|
647
662
|
RECOMMENDATION_OPTIONS_CONFIGURATION_MAX_SIZE: "RecommendationOptionsConfigurationMaxSize",
|
|
648
663
|
RECOMMENDATION_OPTIONS_CONFIGURATION_MIN_SIZE: "RecommendationOptionsConfigurationMinSize",
|
|
664
|
+
RECOMMENDATION_OPTIONS_CONFIGURATION_MIXED_INSTANCE_TYPES: "RecommendationOptionsConfigurationMixedInstanceTypes",
|
|
665
|
+
RECOMMENDATION_OPTIONS_CONFIGURATION_TYPE: "RecommendationOptionsConfigurationType",
|
|
649
666
|
RECOMMENDATION_OPTIONS_ESTIMATED_MONTHLY_SAVINGS_CURRENCY: "RecommendationOptionsEstimatedMonthlySavingsCurrency",
|
|
650
667
|
RECOMMENDATION_OPTIONS_ESTIMATED_MONTHLY_SAVINGS_CURRENCY_AFTER_DISCOUNTS: "RecommendationOptionsEstimatedMonthlySavingsCurrencyAfterDiscounts",
|
|
651
668
|
RECOMMENDATION_OPTIONS_ESTIMATED_MONTHLY_SAVINGS_VALUE: "RecommendationOptionsEstimatedMonthlySavingsValue",
|
|
@@ -2008,6 +2025,18 @@ var de_AccountEnrollmentStatuses = /* @__PURE__ */ __name((output, context) => {
|
|
|
2008
2025
|
});
|
|
2009
2026
|
return retVal;
|
|
2010
2027
|
}, "de_AccountEnrollmentStatuses");
|
|
2028
|
+
var de_AutoScalingGroupConfiguration = /* @__PURE__ */ __name((output, context) => {
|
|
2029
|
+
return (0, import_smithy_client.take)(output, {
|
|
2030
|
+
allocationStrategy: import_smithy_client.expectString,
|
|
2031
|
+
desiredCapacity: import_smithy_client.expectInt32,
|
|
2032
|
+
estimatedInstanceHourReductionPercentage: import_smithy_client.limitedParseDouble,
|
|
2033
|
+
instanceType: import_smithy_client.expectString,
|
|
2034
|
+
maxSize: import_smithy_client.expectInt32,
|
|
2035
|
+
minSize: import_smithy_client.expectInt32,
|
|
2036
|
+
mixedInstanceTypes: import_smithy_client._json,
|
|
2037
|
+
type: import_smithy_client.expectString
|
|
2038
|
+
});
|
|
2039
|
+
}, "de_AutoScalingGroupConfiguration");
|
|
2011
2040
|
var de_AutoScalingGroupEstimatedMonthlySavings = /* @__PURE__ */ __name((output, context) => {
|
|
2012
2041
|
return (0, import_smithy_client.take)(output, {
|
|
2013
2042
|
currency: import_smithy_client.expectString,
|
|
@@ -2019,7 +2048,7 @@ var de_AutoScalingGroupRecommendation = /* @__PURE__ */ __name((output, context)
|
|
|
2019
2048
|
accountId: import_smithy_client.expectString,
|
|
2020
2049
|
autoScalingGroupArn: import_smithy_client.expectString,
|
|
2021
2050
|
autoScalingGroupName: import_smithy_client.expectString,
|
|
2022
|
-
currentConfiguration:
|
|
2051
|
+
currentConfiguration: (_) => de_AutoScalingGroupConfiguration(_, context),
|
|
2023
2052
|
currentInstanceGpuInfo: import_smithy_client._json,
|
|
2024
2053
|
currentPerformanceRisk: import_smithy_client.expectString,
|
|
2025
2054
|
effectiveRecommendationPreferences: import_smithy_client._json,
|
|
@@ -2033,7 +2062,7 @@ var de_AutoScalingGroupRecommendation = /* @__PURE__ */ __name((output, context)
|
|
|
2033
2062
|
}, "de_AutoScalingGroupRecommendation");
|
|
2034
2063
|
var de_AutoScalingGroupRecommendationOption = /* @__PURE__ */ __name((output, context) => {
|
|
2035
2064
|
return (0, import_smithy_client.take)(output, {
|
|
2036
|
-
configuration:
|
|
2065
|
+
configuration: (_) => de_AutoScalingGroupConfiguration(_, context),
|
|
2037
2066
|
instanceGpuInfo: import_smithy_client._json,
|
|
2038
2067
|
migrationEffort: import_smithy_client.expectString,
|
|
2039
2068
|
performanceRisk: import_smithy_client.limitedParseDouble,
|
|
@@ -3382,6 +3411,8 @@ var paginateGetRecommendationSummaries = (0, import_core.createPaginator)(Comput
|
|
|
3382
3411
|
paginateGetRecommendationSummaries,
|
|
3383
3412
|
AccessDeniedException,
|
|
3384
3413
|
Status,
|
|
3414
|
+
AllocationStrategy,
|
|
3415
|
+
AsgType,
|
|
3385
3416
|
AutoScalingConfiguration,
|
|
3386
3417
|
Currency,
|
|
3387
3418
|
CurrentPerformanceRisk,
|
|
@@ -17,6 +17,14 @@ export const Status = {
|
|
|
17
17
|
INACTIVE: "Inactive",
|
|
18
18
|
PENDING: "Pending",
|
|
19
19
|
};
|
|
20
|
+
export const AllocationStrategy = {
|
|
21
|
+
LOWEST_PRICE: "LowestPrice",
|
|
22
|
+
PRIORITIZED: "Prioritized",
|
|
23
|
+
};
|
|
24
|
+
export const AsgType = {
|
|
25
|
+
MIXED_INSTANCE_TYPE: "MixedInstanceTypes",
|
|
26
|
+
SINGLE_INSTANCE_TYPE: "SingleInstanceType",
|
|
27
|
+
};
|
|
20
28
|
export const AutoScalingConfiguration = {
|
|
21
29
|
TARGET_TRACKING_SCALING_CPU: "TargetTrackingScalingCpu",
|
|
22
30
|
TARGET_TRACKING_SCALING_MEMORY: "TargetTrackingScalingMemory",
|
|
@@ -244,10 +252,13 @@ export const ExportableAutoScalingGroupField = {
|
|
|
244
252
|
ACCOUNT_ID: "AccountId",
|
|
245
253
|
AUTO_SCALING_GROUP_ARN: "AutoScalingGroupArn",
|
|
246
254
|
AUTO_SCALING_GROUP_NAME: "AutoScalingGroupName",
|
|
255
|
+
CURRENT_CONFIGURATION_ALLOCATION_STRATEGY: "CurrentConfigurationAllocationStrategy",
|
|
247
256
|
CURRENT_CONFIGURATION_DESIRED_CAPACITY: "CurrentConfigurationDesiredCapacity",
|
|
248
257
|
CURRENT_CONFIGURATION_INSTANCE_TYPE: "CurrentConfigurationInstanceType",
|
|
249
258
|
CURRENT_CONFIGURATION_MAX_SIZE: "CurrentConfigurationMaxSize",
|
|
250
259
|
CURRENT_CONFIGURATION_MIN_SIZE: "CurrentConfigurationMinSize",
|
|
260
|
+
CURRENT_CONFIGURATION_MIXED_INSTANCE_TYPES: "CurrentConfigurationMixedInstanceTypes",
|
|
261
|
+
CURRENT_CONFIGURATION_TYPE: "CurrentConfigurationType",
|
|
251
262
|
CURRENT_INSTANCE_GPU_INFO: "CurrentInstanceGpuInfo",
|
|
252
263
|
CURRENT_MEMORY: "CurrentMemory",
|
|
253
264
|
CURRENT_NETWORK: "CurrentNetwork",
|
|
@@ -267,10 +278,14 @@ export const ExportableAutoScalingGroupField = {
|
|
|
267
278
|
INFERRED_WORKLOAD_TYPES: "InferredWorkloadTypes",
|
|
268
279
|
LAST_REFRESH_TIMESTAMP: "LastRefreshTimestamp",
|
|
269
280
|
LOOKBACK_PERIOD_IN_DAYS: "LookbackPeriodInDays",
|
|
281
|
+
RECOMMENDATION_OPTIONS_CONFIGURATION_ALLOCATION_STRATEGY: "RecommendationOptionsConfigurationAllocationStrategy",
|
|
270
282
|
RECOMMENDATION_OPTIONS_CONFIGURATION_DESIRED_CAPACITY: "RecommendationOptionsConfigurationDesiredCapacity",
|
|
283
|
+
RECOMMENDATION_OPTIONS_CONFIGURATION_ESTIMATED_INSTANCE_HOUR_REDUCTION_PERCENTAGE: "RecommendationOptionsConfigurationEstimatedInstanceHourReductionPercentage",
|
|
271
284
|
RECOMMENDATION_OPTIONS_CONFIGURATION_INSTANCE_TYPE: "RecommendationOptionsConfigurationInstanceType",
|
|
272
285
|
RECOMMENDATION_OPTIONS_CONFIGURATION_MAX_SIZE: "RecommendationOptionsConfigurationMaxSize",
|
|
273
286
|
RECOMMENDATION_OPTIONS_CONFIGURATION_MIN_SIZE: "RecommendationOptionsConfigurationMinSize",
|
|
287
|
+
RECOMMENDATION_OPTIONS_CONFIGURATION_MIXED_INSTANCE_TYPES: "RecommendationOptionsConfigurationMixedInstanceTypes",
|
|
288
|
+
RECOMMENDATION_OPTIONS_CONFIGURATION_TYPE: "RecommendationOptionsConfigurationType",
|
|
274
289
|
RECOMMENDATION_OPTIONS_ESTIMATED_MONTHLY_SAVINGS_CURRENCY: "RecommendationOptionsEstimatedMonthlySavingsCurrency",
|
|
275
290
|
RECOMMENDATION_OPTIONS_ESTIMATED_MONTHLY_SAVINGS_CURRENCY_AFTER_DISCOUNTS: "RecommendationOptionsEstimatedMonthlySavingsCurrencyAfterDiscounts",
|
|
276
291
|
RECOMMENDATION_OPTIONS_ESTIMATED_MONTHLY_SAVINGS_VALUE: "RecommendationOptionsEstimatedMonthlySavingsValue",
|
|
@@ -704,6 +704,18 @@ const de_AccountEnrollmentStatuses = (output, context) => {
|
|
|
704
704
|
});
|
|
705
705
|
return retVal;
|
|
706
706
|
};
|
|
707
|
+
const de_AutoScalingGroupConfiguration = (output, context) => {
|
|
708
|
+
return take(output, {
|
|
709
|
+
allocationStrategy: __expectString,
|
|
710
|
+
desiredCapacity: __expectInt32,
|
|
711
|
+
estimatedInstanceHourReductionPercentage: __limitedParseDouble,
|
|
712
|
+
instanceType: __expectString,
|
|
713
|
+
maxSize: __expectInt32,
|
|
714
|
+
minSize: __expectInt32,
|
|
715
|
+
mixedInstanceTypes: _json,
|
|
716
|
+
type: __expectString,
|
|
717
|
+
});
|
|
718
|
+
};
|
|
707
719
|
const de_AutoScalingGroupEstimatedMonthlySavings = (output, context) => {
|
|
708
720
|
return take(output, {
|
|
709
721
|
currency: __expectString,
|
|
@@ -715,7 +727,7 @@ const de_AutoScalingGroupRecommendation = (output, context) => {
|
|
|
715
727
|
accountId: __expectString,
|
|
716
728
|
autoScalingGroupArn: __expectString,
|
|
717
729
|
autoScalingGroupName: __expectString,
|
|
718
|
-
currentConfiguration:
|
|
730
|
+
currentConfiguration: (_) => de_AutoScalingGroupConfiguration(_, context),
|
|
719
731
|
currentInstanceGpuInfo: _json,
|
|
720
732
|
currentPerformanceRisk: __expectString,
|
|
721
733
|
effectiveRecommendationPreferences: _json,
|
|
@@ -729,7 +741,7 @@ const de_AutoScalingGroupRecommendation = (output, context) => {
|
|
|
729
741
|
};
|
|
730
742
|
const de_AutoScalingGroupRecommendationOption = (output, context) => {
|
|
731
743
|
return take(output, {
|
|
732
|
-
configuration:
|
|
744
|
+
configuration: (_) => de_AutoScalingGroupConfiguration(_, context),
|
|
733
745
|
instanceGpuInfo: _json,
|
|
734
746
|
migrationEffort: __expectString,
|
|
735
747
|
performanceRisk: __limitedParseDouble,
|
|
@@ -52,7 +52,7 @@ declare const ExportAutoScalingGroupRecommendationsCommand_base: {
|
|
|
52
52
|
* },
|
|
53
53
|
* ],
|
|
54
54
|
* fieldsToExport: [ // ExportableAutoScalingGroupFields
|
|
55
|
-
* "AccountId" || "AutoScalingGroupArn" || "AutoScalingGroupName" || "Finding" || "UtilizationMetricsCpuMaximum" || "UtilizationMetricsMemoryMaximum" || "UtilizationMetricsEbsReadOpsPerSecondMaximum" || "UtilizationMetricsEbsWriteOpsPerSecondMaximum" || "UtilizationMetricsEbsReadBytesPerSecondMaximum" || "UtilizationMetricsEbsWriteBytesPerSecondMaximum" || "UtilizationMetricsDiskReadOpsPerSecondMaximum" || "UtilizationMetricsDiskWriteOpsPerSecondMaximum" || "UtilizationMetricsDiskReadBytesPerSecondMaximum" || "UtilizationMetricsDiskWriteBytesPerSecondMaximum" || "UtilizationMetricsNetworkInBytesPerSecondMaximum" || "UtilizationMetricsNetworkOutBytesPerSecondMaximum" || "UtilizationMetricsNetworkPacketsInPerSecondMaximum" || "UtilizationMetricsNetworkPacketsOutPerSecondMaximum" || "LookbackPeriodInDays" || "CurrentConfigurationInstanceType" || "CurrentConfigurationDesiredCapacity" || "CurrentConfigurationMinSize" || "CurrentConfigurationMaxSize" || "CurrentOnDemandPrice" || "CurrentStandardOneYearNoUpfrontReservedPrice" || "CurrentStandardThreeYearNoUpfrontReservedPrice" || "CurrentVCpus" || "CurrentMemory" || "CurrentStorage" || "CurrentNetwork" || "RecommendationOptionsConfigurationInstanceType" || "RecommendationOptionsConfigurationDesiredCapacity" || "RecommendationOptionsConfigurationMinSize" || "RecommendationOptionsConfigurationMaxSize" || "RecommendationOptionsProjectedUtilizationMetricsCpuMaximum" || "RecommendationOptionsProjectedUtilizationMetricsMemoryMaximum" || "RecommendationOptionsPerformanceRisk" || "RecommendationOptionsOnDemandPrice" || "RecommendationOptionsStandardOneYearNoUpfrontReservedPrice" || "RecommendationOptionsStandardThreeYearNoUpfrontReservedPrice" || "RecommendationOptionsVcpus" || "RecommendationOptionsMemory" || "RecommendationOptionsStorage" || "RecommendationOptionsNetwork" || "LastRefreshTimestamp" || "CurrentPerformanceRisk" || "RecommendationOptionsSavingsOpportunityPercentage" || "RecommendationOptionsEstimatedMonthlySavingsCurrency" || "RecommendationOptionsEstimatedMonthlySavingsValue" || "EffectiveRecommendationPreferencesCpuVendorArchitectures" || "EffectiveRecommendationPreferencesEnhancedInfrastructureMetrics" || "EffectiveRecommendationPreferencesInferredWorkloadTypes" || "EffectiveRecommendationPreferencesPreferredResources" || "EffectiveRecommendationPreferencesLookBackPeriod" || "InferredWorkloadTypes" || "RecommendationOptionsMigrationEffort" || "CurrentInstanceGpuInfo" || "RecommendationOptionsInstanceGpuInfo" || "UtilizationMetricsGpuPercentageMaximum" || "UtilizationMetricsGpuMemoryPercentageMaximum" || "RecommendationOptionsProjectedUtilizationMetricsGpuPercentageMaximum" || "RecommendationOptionsProjectedUtilizationMetricsGpuMemoryPercentageMaximum" || "EffectiveRecommendationPreferencesSavingsEstimationMode" || "RecommendationOptionsSavingsOpportunityAfterDiscountsPercentage" || "RecommendationOptionsEstimatedMonthlySavingsCurrencyAfterDiscounts" || "RecommendationOptionsEstimatedMonthlySavingsValueAfterDiscounts",
|
|
55
|
+
* "AccountId" || "AutoScalingGroupArn" || "AutoScalingGroupName" || "Finding" || "UtilizationMetricsCpuMaximum" || "UtilizationMetricsMemoryMaximum" || "UtilizationMetricsEbsReadOpsPerSecondMaximum" || "UtilizationMetricsEbsWriteOpsPerSecondMaximum" || "UtilizationMetricsEbsReadBytesPerSecondMaximum" || "UtilizationMetricsEbsWriteBytesPerSecondMaximum" || "UtilizationMetricsDiskReadOpsPerSecondMaximum" || "UtilizationMetricsDiskWriteOpsPerSecondMaximum" || "UtilizationMetricsDiskReadBytesPerSecondMaximum" || "UtilizationMetricsDiskWriteBytesPerSecondMaximum" || "UtilizationMetricsNetworkInBytesPerSecondMaximum" || "UtilizationMetricsNetworkOutBytesPerSecondMaximum" || "UtilizationMetricsNetworkPacketsInPerSecondMaximum" || "UtilizationMetricsNetworkPacketsOutPerSecondMaximum" || "LookbackPeriodInDays" || "CurrentConfigurationInstanceType" || "CurrentConfigurationDesiredCapacity" || "CurrentConfigurationMinSize" || "CurrentConfigurationMaxSize" || "CurrentConfigurationAllocationStrategy" || "CurrentConfigurationMixedInstanceTypes" || "CurrentConfigurationType" || "CurrentOnDemandPrice" || "CurrentStandardOneYearNoUpfrontReservedPrice" || "CurrentStandardThreeYearNoUpfrontReservedPrice" || "CurrentVCpus" || "CurrentMemory" || "CurrentStorage" || "CurrentNetwork" || "RecommendationOptionsConfigurationInstanceType" || "RecommendationOptionsConfigurationDesiredCapacity" || "RecommendationOptionsConfigurationMinSize" || "RecommendationOptionsConfigurationMaxSize" || "RecommendationOptionsConfigurationEstimatedInstanceHourReductionPercentage" || "RecommendationOptionsConfigurationAllocationStrategy" || "RecommendationOptionsConfigurationMixedInstanceTypes" || "RecommendationOptionsConfigurationType" || "RecommendationOptionsProjectedUtilizationMetricsCpuMaximum" || "RecommendationOptionsProjectedUtilizationMetricsMemoryMaximum" || "RecommendationOptionsPerformanceRisk" || "RecommendationOptionsOnDemandPrice" || "RecommendationOptionsStandardOneYearNoUpfrontReservedPrice" || "RecommendationOptionsStandardThreeYearNoUpfrontReservedPrice" || "RecommendationOptionsVcpus" || "RecommendationOptionsMemory" || "RecommendationOptionsStorage" || "RecommendationOptionsNetwork" || "LastRefreshTimestamp" || "CurrentPerformanceRisk" || "RecommendationOptionsSavingsOpportunityPercentage" || "RecommendationOptionsEstimatedMonthlySavingsCurrency" || "RecommendationOptionsEstimatedMonthlySavingsValue" || "EffectiveRecommendationPreferencesCpuVendorArchitectures" || "EffectiveRecommendationPreferencesEnhancedInfrastructureMetrics" || "EffectiveRecommendationPreferencesInferredWorkloadTypes" || "EffectiveRecommendationPreferencesPreferredResources" || "EffectiveRecommendationPreferencesLookBackPeriod" || "InferredWorkloadTypes" || "RecommendationOptionsMigrationEffort" || "CurrentInstanceGpuInfo" || "RecommendationOptionsInstanceGpuInfo" || "UtilizationMetricsGpuPercentageMaximum" || "UtilizationMetricsGpuMemoryPercentageMaximum" || "RecommendationOptionsProjectedUtilizationMetricsGpuPercentageMaximum" || "RecommendationOptionsProjectedUtilizationMetricsGpuMemoryPercentageMaximum" || "EffectiveRecommendationPreferencesSavingsEstimationMode" || "RecommendationOptionsSavingsOpportunityAfterDiscountsPercentage" || "RecommendationOptionsEstimatedMonthlySavingsCurrencyAfterDiscounts" || "RecommendationOptionsEstimatedMonthlySavingsValueAfterDiscounts",
|
|
56
56
|
* ],
|
|
57
57
|
* s3DestinationConfig: { // S3DestinationConfig
|
|
58
58
|
* bucket: "STRING_VALUE",
|
|
@@ -84,6 +84,12 @@ declare const GetAutoScalingGroupRecommendationsCommand_base: {
|
|
|
84
84
|
* // minSize: Number("int"),
|
|
85
85
|
* // maxSize: Number("int"),
|
|
86
86
|
* // instanceType: "STRING_VALUE",
|
|
87
|
+
* // allocationStrategy: "Prioritized" || "LowestPrice",
|
|
88
|
+
* // estimatedInstanceHourReductionPercentage: Number("double"),
|
|
89
|
+
* // type: "SingleInstanceType" || "MixedInstanceTypes",
|
|
90
|
+
* // mixedInstanceTypes: [ // MixedInstanceTypes
|
|
91
|
+
* // "STRING_VALUE",
|
|
92
|
+
* // ],
|
|
87
93
|
* // },
|
|
88
94
|
* // currentInstanceGpuInfo: { // GpuInfo
|
|
89
95
|
* // gpus: [ // Gpus
|
|
@@ -100,6 +106,12 @@ declare const GetAutoScalingGroupRecommendationsCommand_base: {
|
|
|
100
106
|
* // minSize: Number("int"),
|
|
101
107
|
* // maxSize: Number("int"),
|
|
102
108
|
* // instanceType: "STRING_VALUE",
|
|
109
|
+
* // allocationStrategy: "Prioritized" || "LowestPrice",
|
|
110
|
+
* // estimatedInstanceHourReductionPercentage: Number("double"),
|
|
111
|
+
* // type: "SingleInstanceType" || "MixedInstanceTypes",
|
|
112
|
+
* // mixedInstanceTypes: [
|
|
113
|
+
* // "STRING_VALUE",
|
|
114
|
+
* // ],
|
|
103
115
|
* // },
|
|
104
116
|
* // instanceGpuInfo: {
|
|
105
117
|
* // gpus: [
|
|
@@ -55,6 +55,30 @@ export interface AccountEnrollmentStatus {
|
|
|
55
55
|
*/
|
|
56
56
|
lastUpdatedTimestamp?: Date | undefined;
|
|
57
57
|
}
|
|
58
|
+
/**
|
|
59
|
+
* @public
|
|
60
|
+
* @enum
|
|
61
|
+
*/
|
|
62
|
+
export declare const AllocationStrategy: {
|
|
63
|
+
readonly LOWEST_PRICE: "LowestPrice";
|
|
64
|
+
readonly PRIORITIZED: "Prioritized";
|
|
65
|
+
};
|
|
66
|
+
/**
|
|
67
|
+
* @public
|
|
68
|
+
*/
|
|
69
|
+
export type AllocationStrategy = (typeof AllocationStrategy)[keyof typeof AllocationStrategy];
|
|
70
|
+
/**
|
|
71
|
+
* @public
|
|
72
|
+
* @enum
|
|
73
|
+
*/
|
|
74
|
+
export declare const AsgType: {
|
|
75
|
+
readonly MIXED_INSTANCE_TYPE: "MixedInstanceTypes";
|
|
76
|
+
readonly SINGLE_INSTANCE_TYPE: "SingleInstanceType";
|
|
77
|
+
};
|
|
78
|
+
/**
|
|
79
|
+
* @public
|
|
80
|
+
*/
|
|
81
|
+
export type AsgType = (typeof AsgType)[keyof typeof AsgType];
|
|
58
82
|
/**
|
|
59
83
|
* @public
|
|
60
84
|
* @enum
|
|
@@ -68,32 +92,60 @@ export declare const AutoScalingConfiguration: {
|
|
|
68
92
|
*/
|
|
69
93
|
export type AutoScalingConfiguration = (typeof AutoScalingConfiguration)[keyof typeof AutoScalingConfiguration];
|
|
70
94
|
/**
|
|
71
|
-
* <p>Describes the configuration of an Auto Scaling group.</p>
|
|
95
|
+
* <p>Describes the configuration of an EC2 Auto Scaling group.</p>
|
|
72
96
|
* @public
|
|
73
97
|
*/
|
|
74
98
|
export interface AutoScalingGroupConfiguration {
|
|
75
99
|
/**
|
|
76
|
-
* <p>The desired capacity, or number of instances, for the Auto Scaling group.</p>
|
|
100
|
+
* <p>The desired capacity, or number of instances, for the EC2 Auto Scaling group.</p>
|
|
77
101
|
* @public
|
|
78
102
|
*/
|
|
79
103
|
desiredCapacity?: number | undefined;
|
|
80
104
|
/**
|
|
81
|
-
* <p>The minimum size, or minimum number of instances, for the Auto Scaling
|
|
105
|
+
* <p>The minimum size, or minimum number of instances, for the EC2 Auto Scaling
|
|
82
106
|
* group.</p>
|
|
83
107
|
* @public
|
|
84
108
|
*/
|
|
85
109
|
minSize?: number | undefined;
|
|
86
110
|
/**
|
|
87
|
-
* <p>The maximum size, or maximum number of instances, for the Auto Scaling
|
|
111
|
+
* <p>The maximum size, or maximum number of instances, for the EC2 Auto Scaling
|
|
88
112
|
* group.</p>
|
|
89
113
|
* @public
|
|
90
114
|
*/
|
|
91
115
|
maxSize?: number | undefined;
|
|
92
116
|
/**
|
|
93
|
-
* <p>The instance type for the Auto Scaling group.</p>
|
|
117
|
+
* <p>The instance type for the EC2 Auto Scaling group.</p>
|
|
94
118
|
* @public
|
|
95
119
|
*/
|
|
96
120
|
instanceType?: string | undefined;
|
|
121
|
+
/**
|
|
122
|
+
* <p>
|
|
123
|
+
* Describes the allocation strategy that the EC2 Auto Scaling group uses. This field is only available for EC2 Auto Scaling groups with mixed instance types.
|
|
124
|
+
* </p>
|
|
125
|
+
* @public
|
|
126
|
+
*/
|
|
127
|
+
allocationStrategy?: AllocationStrategy | undefined;
|
|
128
|
+
/**
|
|
129
|
+
* <p>
|
|
130
|
+
* Describes the projected percentage reduction in instance hours after adopting the recommended configuration. This field is only available for EC2 Auto Scaling groups with scaling policies.
|
|
131
|
+
* </p>
|
|
132
|
+
* @public
|
|
133
|
+
*/
|
|
134
|
+
estimatedInstanceHourReductionPercentage?: number | undefined;
|
|
135
|
+
/**
|
|
136
|
+
* <p>
|
|
137
|
+
* Describes whether the EC2 Auto Scaling group has a single instance type or a mixed instance type configuration.
|
|
138
|
+
* </p>
|
|
139
|
+
* @public
|
|
140
|
+
*/
|
|
141
|
+
type?: AsgType | undefined;
|
|
142
|
+
/**
|
|
143
|
+
* <p>
|
|
144
|
+
* List the instance types within an EC2 Auto Scaling group that has mixed instance types.
|
|
145
|
+
* </p>
|
|
146
|
+
* @public
|
|
147
|
+
*/
|
|
148
|
+
mixedInstanceTypes?: string[] | undefined;
|
|
97
149
|
}
|
|
98
150
|
/**
|
|
99
151
|
* @public
|
|
@@ -1514,10 +1566,13 @@ export declare const ExportableAutoScalingGroupField: {
|
|
|
1514
1566
|
readonly ACCOUNT_ID: "AccountId";
|
|
1515
1567
|
readonly AUTO_SCALING_GROUP_ARN: "AutoScalingGroupArn";
|
|
1516
1568
|
readonly AUTO_SCALING_GROUP_NAME: "AutoScalingGroupName";
|
|
1569
|
+
readonly CURRENT_CONFIGURATION_ALLOCATION_STRATEGY: "CurrentConfigurationAllocationStrategy";
|
|
1517
1570
|
readonly CURRENT_CONFIGURATION_DESIRED_CAPACITY: "CurrentConfigurationDesiredCapacity";
|
|
1518
1571
|
readonly CURRENT_CONFIGURATION_INSTANCE_TYPE: "CurrentConfigurationInstanceType";
|
|
1519
1572
|
readonly CURRENT_CONFIGURATION_MAX_SIZE: "CurrentConfigurationMaxSize";
|
|
1520
1573
|
readonly CURRENT_CONFIGURATION_MIN_SIZE: "CurrentConfigurationMinSize";
|
|
1574
|
+
readonly CURRENT_CONFIGURATION_MIXED_INSTANCE_TYPES: "CurrentConfigurationMixedInstanceTypes";
|
|
1575
|
+
readonly CURRENT_CONFIGURATION_TYPE: "CurrentConfigurationType";
|
|
1521
1576
|
readonly CURRENT_INSTANCE_GPU_INFO: "CurrentInstanceGpuInfo";
|
|
1522
1577
|
readonly CURRENT_MEMORY: "CurrentMemory";
|
|
1523
1578
|
readonly CURRENT_NETWORK: "CurrentNetwork";
|
|
@@ -1537,10 +1592,14 @@ export declare const ExportableAutoScalingGroupField: {
|
|
|
1537
1592
|
readonly INFERRED_WORKLOAD_TYPES: "InferredWorkloadTypes";
|
|
1538
1593
|
readonly LAST_REFRESH_TIMESTAMP: "LastRefreshTimestamp";
|
|
1539
1594
|
readonly LOOKBACK_PERIOD_IN_DAYS: "LookbackPeriodInDays";
|
|
1595
|
+
readonly RECOMMENDATION_OPTIONS_CONFIGURATION_ALLOCATION_STRATEGY: "RecommendationOptionsConfigurationAllocationStrategy";
|
|
1540
1596
|
readonly RECOMMENDATION_OPTIONS_CONFIGURATION_DESIRED_CAPACITY: "RecommendationOptionsConfigurationDesiredCapacity";
|
|
1597
|
+
readonly RECOMMENDATION_OPTIONS_CONFIGURATION_ESTIMATED_INSTANCE_HOUR_REDUCTION_PERCENTAGE: "RecommendationOptionsConfigurationEstimatedInstanceHourReductionPercentage";
|
|
1541
1598
|
readonly RECOMMENDATION_OPTIONS_CONFIGURATION_INSTANCE_TYPE: "RecommendationOptionsConfigurationInstanceType";
|
|
1542
1599
|
readonly RECOMMENDATION_OPTIONS_CONFIGURATION_MAX_SIZE: "RecommendationOptionsConfigurationMaxSize";
|
|
1543
1600
|
readonly RECOMMENDATION_OPTIONS_CONFIGURATION_MIN_SIZE: "RecommendationOptionsConfigurationMinSize";
|
|
1601
|
+
readonly RECOMMENDATION_OPTIONS_CONFIGURATION_MIXED_INSTANCE_TYPES: "RecommendationOptionsConfigurationMixedInstanceTypes";
|
|
1602
|
+
readonly RECOMMENDATION_OPTIONS_CONFIGURATION_TYPE: "RecommendationOptionsConfigurationType";
|
|
1544
1603
|
readonly RECOMMENDATION_OPTIONS_ESTIMATED_MONTHLY_SAVINGS_CURRENCY: "RecommendationOptionsEstimatedMonthlySavingsCurrency";
|
|
1545
1604
|
readonly RECOMMENDATION_OPTIONS_ESTIMATED_MONTHLY_SAVINGS_CURRENCY_AFTER_DISCOUNTS: "RecommendationOptionsEstimatedMonthlySavingsCurrencyAfterDiscounts";
|
|
1546
1605
|
readonly RECOMMENDATION_OPTIONS_ESTIMATED_MONTHLY_SAVINGS_VALUE: "RecommendationOptionsEstimatedMonthlySavingsValue";
|
|
@@ -20,6 +20,17 @@ export interface AccountEnrollmentStatus {
|
|
|
20
20
|
statusReason?: string | undefined;
|
|
21
21
|
lastUpdatedTimestamp?: Date | undefined;
|
|
22
22
|
}
|
|
23
|
+
export declare const AllocationStrategy: {
|
|
24
|
+
readonly LOWEST_PRICE: "LowestPrice";
|
|
25
|
+
readonly PRIORITIZED: "Prioritized";
|
|
26
|
+
};
|
|
27
|
+
export type AllocationStrategy =
|
|
28
|
+
(typeof AllocationStrategy)[keyof typeof AllocationStrategy];
|
|
29
|
+
export declare const AsgType: {
|
|
30
|
+
readonly MIXED_INSTANCE_TYPE: "MixedInstanceTypes";
|
|
31
|
+
readonly SINGLE_INSTANCE_TYPE: "SingleInstanceType";
|
|
32
|
+
};
|
|
33
|
+
export type AsgType = (typeof AsgType)[keyof typeof AsgType];
|
|
23
34
|
export declare const AutoScalingConfiguration: {
|
|
24
35
|
readonly TARGET_TRACKING_SCALING_CPU: "TargetTrackingScalingCpu";
|
|
25
36
|
readonly TARGET_TRACKING_SCALING_MEMORY: "TargetTrackingScalingMemory";
|
|
@@ -31,6 +42,10 @@ export interface AutoScalingGroupConfiguration {
|
|
|
31
42
|
minSize?: number | undefined;
|
|
32
43
|
maxSize?: number | undefined;
|
|
33
44
|
instanceType?: string | undefined;
|
|
45
|
+
allocationStrategy?: AllocationStrategy | undefined;
|
|
46
|
+
estimatedInstanceHourReductionPercentage?: number | undefined;
|
|
47
|
+
type?: AsgType | undefined;
|
|
48
|
+
mixedInstanceTypes?: string[] | undefined;
|
|
34
49
|
}
|
|
35
50
|
export declare const Currency: {
|
|
36
51
|
readonly CNY: "CNY";
|
|
@@ -385,10 +400,13 @@ export declare const ExportableAutoScalingGroupField: {
|
|
|
385
400
|
readonly ACCOUNT_ID: "AccountId";
|
|
386
401
|
readonly AUTO_SCALING_GROUP_ARN: "AutoScalingGroupArn";
|
|
387
402
|
readonly AUTO_SCALING_GROUP_NAME: "AutoScalingGroupName";
|
|
403
|
+
readonly CURRENT_CONFIGURATION_ALLOCATION_STRATEGY: "CurrentConfigurationAllocationStrategy";
|
|
388
404
|
readonly CURRENT_CONFIGURATION_DESIRED_CAPACITY: "CurrentConfigurationDesiredCapacity";
|
|
389
405
|
readonly CURRENT_CONFIGURATION_INSTANCE_TYPE: "CurrentConfigurationInstanceType";
|
|
390
406
|
readonly CURRENT_CONFIGURATION_MAX_SIZE: "CurrentConfigurationMaxSize";
|
|
391
407
|
readonly CURRENT_CONFIGURATION_MIN_SIZE: "CurrentConfigurationMinSize";
|
|
408
|
+
readonly CURRENT_CONFIGURATION_MIXED_INSTANCE_TYPES: "CurrentConfigurationMixedInstanceTypes";
|
|
409
|
+
readonly CURRENT_CONFIGURATION_TYPE: "CurrentConfigurationType";
|
|
392
410
|
readonly CURRENT_INSTANCE_GPU_INFO: "CurrentInstanceGpuInfo";
|
|
393
411
|
readonly CURRENT_MEMORY: "CurrentMemory";
|
|
394
412
|
readonly CURRENT_NETWORK: "CurrentNetwork";
|
|
@@ -408,10 +426,14 @@ export declare const ExportableAutoScalingGroupField: {
|
|
|
408
426
|
readonly INFERRED_WORKLOAD_TYPES: "InferredWorkloadTypes";
|
|
409
427
|
readonly LAST_REFRESH_TIMESTAMP: "LastRefreshTimestamp";
|
|
410
428
|
readonly LOOKBACK_PERIOD_IN_DAYS: "LookbackPeriodInDays";
|
|
429
|
+
readonly RECOMMENDATION_OPTIONS_CONFIGURATION_ALLOCATION_STRATEGY: "RecommendationOptionsConfigurationAllocationStrategy";
|
|
411
430
|
readonly RECOMMENDATION_OPTIONS_CONFIGURATION_DESIRED_CAPACITY: "RecommendationOptionsConfigurationDesiredCapacity";
|
|
431
|
+
readonly RECOMMENDATION_OPTIONS_CONFIGURATION_ESTIMATED_INSTANCE_HOUR_REDUCTION_PERCENTAGE: "RecommendationOptionsConfigurationEstimatedInstanceHourReductionPercentage";
|
|
412
432
|
readonly RECOMMENDATION_OPTIONS_CONFIGURATION_INSTANCE_TYPE: "RecommendationOptionsConfigurationInstanceType";
|
|
413
433
|
readonly RECOMMENDATION_OPTIONS_CONFIGURATION_MAX_SIZE: "RecommendationOptionsConfigurationMaxSize";
|
|
414
434
|
readonly RECOMMENDATION_OPTIONS_CONFIGURATION_MIN_SIZE: "RecommendationOptionsConfigurationMinSize";
|
|
435
|
+
readonly RECOMMENDATION_OPTIONS_CONFIGURATION_MIXED_INSTANCE_TYPES: "RecommendationOptionsConfigurationMixedInstanceTypes";
|
|
436
|
+
readonly RECOMMENDATION_OPTIONS_CONFIGURATION_TYPE: "RecommendationOptionsConfigurationType";
|
|
415
437
|
readonly RECOMMENDATION_OPTIONS_ESTIMATED_MONTHLY_SAVINGS_CURRENCY: "RecommendationOptionsEstimatedMonthlySavingsCurrency";
|
|
416
438
|
readonly RECOMMENDATION_OPTIONS_ESTIMATED_MONTHLY_SAVINGS_CURRENCY_AFTER_DISCOUNTS: "RecommendationOptionsEstimatedMonthlySavingsCurrencyAfterDiscounts";
|
|
417
439
|
readonly RECOMMENDATION_OPTIONS_ESTIMATED_MONTHLY_SAVINGS_VALUE: "RecommendationOptionsEstimatedMonthlySavingsValue";
|
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.726.1",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
|
|
7
7
|
"build:cjs": "node ../../scripts/compilation/inline client-compute-optimizer",
|
|
@@ -20,19 +20,19 @@
|
|
|
20
20
|
"dependencies": {
|
|
21
21
|
"@aws-crypto/sha256-browser": "5.2.0",
|
|
22
22
|
"@aws-crypto/sha256-js": "5.2.0",
|
|
23
|
-
"@aws-sdk/client-sso-oidc": "3.
|
|
24
|
-
"@aws-sdk/client-sts": "3.
|
|
23
|
+
"@aws-sdk/client-sso-oidc": "3.726.0",
|
|
24
|
+
"@aws-sdk/client-sts": "3.726.1",
|
|
25
25
|
"@aws-sdk/core": "3.723.0",
|
|
26
|
-
"@aws-sdk/credential-provider-node": "3.
|
|
26
|
+
"@aws-sdk/credential-provider-node": "3.726.0",
|
|
27
27
|
"@aws-sdk/middleware-host-header": "3.723.0",
|
|
28
28
|
"@aws-sdk/middleware-logger": "3.723.0",
|
|
29
29
|
"@aws-sdk/middleware-recursion-detection": "3.723.0",
|
|
30
|
-
"@aws-sdk/middleware-user-agent": "3.
|
|
30
|
+
"@aws-sdk/middleware-user-agent": "3.726.0",
|
|
31
31
|
"@aws-sdk/region-config-resolver": "3.723.0",
|
|
32
32
|
"@aws-sdk/types": "3.723.0",
|
|
33
|
-
"@aws-sdk/util-endpoints": "3.
|
|
33
|
+
"@aws-sdk/util-endpoints": "3.726.0",
|
|
34
34
|
"@aws-sdk/util-user-agent-browser": "3.723.0",
|
|
35
|
-
"@aws-sdk/util-user-agent-node": "3.
|
|
35
|
+
"@aws-sdk/util-user-agent-node": "3.726.0",
|
|
36
36
|
"@smithy/config-resolver": "^4.0.0",
|
|
37
37
|
"@smithy/core": "^3.0.0",
|
|
38
38
|
"@smithy/fetch-http-handler": "^5.0.0",
|