@aws-sdk/client-compute-optimizer 3.535.0 → 3.544.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/endpointResolver.js +4 -2
- package/dist-cjs/index.js +3 -4
- package/dist-es/endpoint/endpointResolver.js +3 -1
- package/dist-es/index.js +0 -1
- package/dist-es/models/models_0.js +2 -0
- package/dist-types/commands/GetAutoScalingGroupRecommendationsCommand.d.ts +2 -2
- package/dist-types/commands/GetEC2InstanceRecommendationsCommand.d.ts +2 -2
- package/dist-types/commands/GetEffectiveRecommendationPreferencesCommand.d.ts +2 -2
- package/dist-types/commands/GetRecommendationPreferencesCommand.d.ts +2 -2
- package/dist-types/commands/PutRecommendationPreferencesCommand.d.ts +2 -2
- package/dist-types/index.d.ts +0 -1
- package/dist-types/models/models_0.d.ts +39 -11
- package/dist-types/ts3.4/index.d.ts +0 -1
- package/dist-types/ts3.4/models/models_0.d.ts +2 -0
- package/package.json +5 -5
|
@@ -1,12 +1,14 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.defaultEndpointResolver = void 0;
|
|
4
|
-
const util_endpoints_1 = require("@
|
|
4
|
+
const util_endpoints_1 = require("@aws-sdk/util-endpoints");
|
|
5
|
+
const util_endpoints_2 = require("@smithy/util-endpoints");
|
|
5
6
|
const ruleset_1 = require("./ruleset");
|
|
6
7
|
const defaultEndpointResolver = (endpointParams, context = {}) => {
|
|
7
|
-
return (0,
|
|
8
|
+
return (0, util_endpoints_2.resolveEndpoint)(ruleset_1.ruleSet, {
|
|
8
9
|
endpointParams: endpointParams,
|
|
9
10
|
logger: context.logger,
|
|
10
11
|
});
|
|
11
12
|
};
|
|
12
13
|
exports.defaultEndpointResolver = defaultEndpointResolver;
|
|
14
|
+
util_endpoints_2.customEndpointFunctions.aws = util_endpoints_1.awsEndpointFunctions;
|
package/dist-cjs/index.js
CHANGED
|
@@ -373,10 +373,12 @@ var InstanceSavingsEstimationModeSource = {
|
|
|
373
373
|
PUBLIC_PRICING: "PublicPricing"
|
|
374
374
|
};
|
|
375
375
|
var CustomizableMetricName = {
|
|
376
|
-
CPU_UTILIZATION: "CpuUtilization"
|
|
376
|
+
CPU_UTILIZATION: "CpuUtilization",
|
|
377
|
+
MEMORY_UTILIZATION: "MemoryUtilization"
|
|
377
378
|
};
|
|
378
379
|
var CustomizableMetricHeadroom = {
|
|
379
380
|
PERCENT_0: "PERCENT_0",
|
|
381
|
+
PERCENT_10: "PERCENT_10",
|
|
380
382
|
PERCENT_20: "PERCENT_20",
|
|
381
383
|
PERCENT_30: "PERCENT_30"
|
|
382
384
|
};
|
|
@@ -2736,9 +2738,6 @@ var paginateGetRecommendationPreferences = (0, import_core.createPaginator)(Comp
|
|
|
2736
2738
|
// src/pagination/GetRecommendationSummariesPaginator.ts
|
|
2737
2739
|
|
|
2738
2740
|
var paginateGetRecommendationSummaries = (0, import_core.createPaginator)(ComputeOptimizerClient, GetRecommendationSummariesCommand, "nextToken", "nextToken", "maxResults");
|
|
2739
|
-
|
|
2740
|
-
// src/index.ts
|
|
2741
|
-
var import_util_endpoints = require("@aws-sdk/util-endpoints");
|
|
2742
2741
|
// Annotate the CommonJS export names for ESM import in node:
|
|
2743
2742
|
|
|
2744
2743
|
0 && (module.exports = {
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { awsEndpointFunctions } from "@aws-sdk/util-endpoints";
|
|
2
|
+
import { customEndpointFunctions, resolveEndpoint } from "@smithy/util-endpoints";
|
|
2
3
|
import { ruleSet } from "./ruleset";
|
|
3
4
|
export const defaultEndpointResolver = (endpointParams, context = {}) => {
|
|
4
5
|
return resolveEndpoint(ruleSet, {
|
|
@@ -6,3 +7,4 @@ export const defaultEndpointResolver = (endpointParams, context = {}) => {
|
|
|
6
7
|
logger: context.logger,
|
|
7
8
|
});
|
|
8
9
|
};
|
|
10
|
+
customEndpointFunctions.aws = awsEndpointFunctions;
|
package/dist-es/index.js
CHANGED
|
@@ -64,9 +64,11 @@ export const InstanceSavingsEstimationModeSource = {
|
|
|
64
64
|
};
|
|
65
65
|
export const CustomizableMetricName = {
|
|
66
66
|
CPU_UTILIZATION: "CpuUtilization",
|
|
67
|
+
MEMORY_UTILIZATION: "MemoryUtilization",
|
|
67
68
|
};
|
|
68
69
|
export const CustomizableMetricHeadroom = {
|
|
69
70
|
PERCENT_0: "PERCENT_0",
|
|
71
|
+
PERCENT_10: "PERCENT_10",
|
|
70
72
|
PERCENT_20: "PERCENT_20",
|
|
71
73
|
PERCENT_30: "PERCENT_30",
|
|
72
74
|
};
|
|
@@ -140,10 +140,10 @@ declare const GetAutoScalingGroupRecommendationsCommand_base: {
|
|
|
140
140
|
* // lookBackPeriod: "DAYS_14" || "DAYS_32" || "DAYS_93",
|
|
141
141
|
* // utilizationPreferences: [ // UtilizationPreferences
|
|
142
142
|
* // { // UtilizationPreference
|
|
143
|
-
* // metricName: "CpuUtilization",
|
|
143
|
+
* // metricName: "CpuUtilization" || "MemoryUtilization",
|
|
144
144
|
* // metricParameters: { // CustomizableMetricParameters
|
|
145
145
|
* // threshold: "P90" || "P95" || "P99_5",
|
|
146
|
-
* // headroom: "PERCENT_30" || "PERCENT_20" || "PERCENT_0",
|
|
146
|
+
* // headroom: "PERCENT_30" || "PERCENT_20" || "PERCENT_10" || "PERCENT_0",
|
|
147
147
|
* // },
|
|
148
148
|
* // },
|
|
149
149
|
* // ],
|
|
@@ -142,10 +142,10 @@ declare const GetEC2InstanceRecommendationsCommand_base: {
|
|
|
142
142
|
* // lookBackPeriod: "DAYS_14" || "DAYS_32" || "DAYS_93",
|
|
143
143
|
* // utilizationPreferences: [ // UtilizationPreferences
|
|
144
144
|
* // { // UtilizationPreference
|
|
145
|
-
* // metricName: "CpuUtilization",
|
|
145
|
+
* // metricName: "CpuUtilization" || "MemoryUtilization",
|
|
146
146
|
* // metricParameters: { // CustomizableMetricParameters
|
|
147
147
|
* // threshold: "P90" || "P95" || "P99_5",
|
|
148
|
-
* // headroom: "PERCENT_30" || "PERCENT_20" || "PERCENT_0",
|
|
148
|
+
* // headroom: "PERCENT_30" || "PERCENT_20" || "PERCENT_10" || "PERCENT_0",
|
|
149
149
|
* // },
|
|
150
150
|
* // },
|
|
151
151
|
* // ],
|
|
@@ -51,10 +51,10 @@ declare const GetEffectiveRecommendationPreferencesCommand_base: {
|
|
|
51
51
|
* // lookBackPeriod: "DAYS_14" || "DAYS_32" || "DAYS_93",
|
|
52
52
|
* // utilizationPreferences: [ // UtilizationPreferences
|
|
53
53
|
* // { // UtilizationPreference
|
|
54
|
-
* // metricName: "CpuUtilization",
|
|
54
|
+
* // metricName: "CpuUtilization" || "MemoryUtilization",
|
|
55
55
|
* // metricParameters: { // CustomizableMetricParameters
|
|
56
56
|
* // threshold: "P90" || "P95" || "P99_5",
|
|
57
|
-
* // headroom: "PERCENT_30" || "PERCENT_20" || "PERCENT_0",
|
|
57
|
+
* // headroom: "PERCENT_30" || "PERCENT_20" || "PERCENT_10" || "PERCENT_0",
|
|
58
58
|
* // },
|
|
59
59
|
* // },
|
|
60
60
|
* // ],
|
|
@@ -68,10 +68,10 @@ declare const GetRecommendationPreferencesCommand_base: {
|
|
|
68
68
|
* // lookBackPeriod: "DAYS_14" || "DAYS_32" || "DAYS_93",
|
|
69
69
|
* // utilizationPreferences: [ // UtilizationPreferences
|
|
70
70
|
* // { // UtilizationPreference
|
|
71
|
-
* // metricName: "CpuUtilization",
|
|
71
|
+
* // metricName: "CpuUtilization" || "MemoryUtilization",
|
|
72
72
|
* // metricParameters: { // CustomizableMetricParameters
|
|
73
73
|
* // threshold: "P90" || "P95" || "P99_5",
|
|
74
|
-
* // headroom: "PERCENT_30" || "PERCENT_20" || "PERCENT_0",
|
|
74
|
+
* // headroom: "PERCENT_30" || "PERCENT_20" || "PERCENT_10" || "PERCENT_0",
|
|
75
75
|
* // },
|
|
76
76
|
* // },
|
|
77
77
|
* // ],
|
|
@@ -51,10 +51,10 @@ declare const PutRecommendationPreferencesCommand_base: {
|
|
|
51
51
|
* lookBackPeriod: "DAYS_14" || "DAYS_32" || "DAYS_93",
|
|
52
52
|
* utilizationPreferences: [ // UtilizationPreferences
|
|
53
53
|
* { // UtilizationPreference
|
|
54
|
-
* metricName: "CpuUtilization",
|
|
54
|
+
* metricName: "CpuUtilization" || "MemoryUtilization",
|
|
55
55
|
* metricParameters: { // CustomizableMetricParameters
|
|
56
56
|
* threshold: "P90" || "P95" || "P99_5",
|
|
57
|
-
* headroom: "PERCENT_30" || "PERCENT_20" || "PERCENT_0",
|
|
57
|
+
* headroom: "PERCENT_30" || "PERCENT_20" || "PERCENT_10" || "PERCENT_0",
|
|
58
58
|
* },
|
|
59
59
|
* },
|
|
60
60
|
* ],
|
package/dist-types/index.d.ts
CHANGED
|
@@ -22,5 +22,4 @@ export { ComputeOptimizerExtensionConfiguration } from "./extensionConfiguration
|
|
|
22
22
|
export * from "./commands";
|
|
23
23
|
export * from "./pagination";
|
|
24
24
|
export * from "./models";
|
|
25
|
-
import "@aws-sdk/util-endpoints";
|
|
26
25
|
export { ComputeOptimizerServiceException } from "./models/ComputeOptimizerServiceException";
|
|
@@ -340,6 +340,7 @@ export interface InstanceSavingsEstimationMode {
|
|
|
340
340
|
*/
|
|
341
341
|
export declare const CustomizableMetricName: {
|
|
342
342
|
readonly CPU_UTILIZATION: "CpuUtilization";
|
|
343
|
+
readonly MEMORY_UTILIZATION: "MemoryUtilization";
|
|
343
344
|
};
|
|
344
345
|
/**
|
|
345
346
|
* @public
|
|
@@ -351,6 +352,7 @@ export type CustomizableMetricName = (typeof CustomizableMetricName)[keyof typeo
|
|
|
351
352
|
*/
|
|
352
353
|
export declare const CustomizableMetricHeadroom: {
|
|
353
354
|
readonly PERCENT_0: "PERCENT_0";
|
|
355
|
+
readonly PERCENT_10: "PERCENT_10";
|
|
354
356
|
readonly PERCENT_20: "PERCENT_20";
|
|
355
357
|
readonly PERCENT_30: "PERCENT_30";
|
|
356
358
|
};
|
|
@@ -382,13 +384,27 @@ export interface CustomizableMetricParameters {
|
|
|
382
384
|
* <p>
|
|
383
385
|
* The threshold value used for the specified metric parameter.
|
|
384
386
|
* </p>
|
|
387
|
+
* <note>
|
|
388
|
+
* <p>You can only specify the threshold value for CPU utilization.</p>
|
|
389
|
+
* </note>
|
|
385
390
|
* @public
|
|
386
391
|
*/
|
|
387
392
|
threshold?: CustomizableMetricThreshold;
|
|
388
393
|
/**
|
|
389
394
|
* <p>
|
|
390
|
-
* The headroom
|
|
395
|
+
* The headroom value in percentage used for the specified metric parameter.
|
|
391
396
|
* </p>
|
|
397
|
+
* <p>The following lists the valid values for CPU and memory utilization.</p>
|
|
398
|
+
* <ul>
|
|
399
|
+
* <li>
|
|
400
|
+
* <p>CPU utilization: <code>PERCENT_30 | PERCENT_20 | PERCENT_0</code>
|
|
401
|
+
* </p>
|
|
402
|
+
* </li>
|
|
403
|
+
* <li>
|
|
404
|
+
* <p>Memory utilization: <code>PERCENT_30 | PERCENT_20 | PERCENT_10</code>
|
|
405
|
+
* </p>
|
|
406
|
+
* </li>
|
|
407
|
+
* </ul>
|
|
392
408
|
* @public
|
|
393
409
|
*/
|
|
394
410
|
headroom?: CustomizableMetricHeadroom;
|
|
@@ -407,9 +423,6 @@ export interface UtilizationPreference {
|
|
|
407
423
|
* <p>
|
|
408
424
|
* The name of the resource utilization metric name to customize.
|
|
409
425
|
* </p>
|
|
410
|
-
* <note>
|
|
411
|
-
* <p>Compute Optimizer only supports <code>CpuUtilization</code>.</p>
|
|
412
|
-
* </note>
|
|
413
426
|
* @public
|
|
414
427
|
*/
|
|
415
428
|
metricName?: CustomizableMetricName;
|
|
@@ -484,7 +497,7 @@ export interface EffectiveRecommendationPreferences {
|
|
|
484
497
|
lookBackPeriod?: LookBackPeriodPreference;
|
|
485
498
|
/**
|
|
486
499
|
* <p>
|
|
487
|
-
* The resource’s CPU utilization
|
|
500
|
+
* The resource’s CPU and memory utilization preferences, such as threshold and headroom, that
|
|
488
501
|
* are used to generate rightsizing recommendations.
|
|
489
502
|
* </p>
|
|
490
503
|
* <note>
|
|
@@ -5324,7 +5337,7 @@ export interface GetEffectiveRecommendationPreferencesResponse {
|
|
|
5324
5337
|
lookBackPeriod?: LookBackPeriodPreference;
|
|
5325
5338
|
/**
|
|
5326
5339
|
* <p>
|
|
5327
|
-
* The resource’s CPU utilization
|
|
5340
|
+
* The resource’s CPU and memory utilization preferences, such as threshold and headroom,
|
|
5328
5341
|
* that were used to generate rightsizing recommendations. It considers all applicable preferences
|
|
5329
5342
|
* that you set at the resource, account, and organization level.
|
|
5330
5343
|
* </p>
|
|
@@ -6495,7 +6508,7 @@ export interface RecommendationPreferencesDetail {
|
|
|
6495
6508
|
lookBackPeriod?: LookBackPeriodPreference;
|
|
6496
6509
|
/**
|
|
6497
6510
|
* <p>
|
|
6498
|
-
* The preference to control the resource’s CPU utilization
|
|
6511
|
+
* The preference to control the resource’s CPU utilization threshold, CPU utilization headroom, and memory utilization headroom.
|
|
6499
6512
|
* If the preference isn’t set, this object is null.
|
|
6500
6513
|
* </p>
|
|
6501
6514
|
* <note>
|
|
@@ -6911,9 +6924,10 @@ export interface PutRecommendationPreferencesRequest {
|
|
|
6911
6924
|
lookBackPeriod?: LookBackPeriodPreference;
|
|
6912
6925
|
/**
|
|
6913
6926
|
* <p>
|
|
6914
|
-
* The preference to control the resource’s CPU utilization
|
|
6915
|
-
* preference isn't specified, we use the following default values
|
|
6927
|
+
* The preference to control the resource’s CPU utilization threshold, CPU utilization headroom, and memory utilization headroom. When this
|
|
6928
|
+
* preference isn't specified, we use the following default values.
|
|
6916
6929
|
* </p>
|
|
6930
|
+
* <p>CPU utilization:</p>
|
|
6917
6931
|
* <ul>
|
|
6918
6932
|
* <li>
|
|
6919
6933
|
* <p>
|
|
@@ -6921,11 +6935,25 @@ export interface PutRecommendationPreferencesRequest {
|
|
|
6921
6935
|
* </li>
|
|
6922
6936
|
* <li>
|
|
6923
6937
|
* <p>
|
|
6924
|
-
* <code>
|
|
6938
|
+
* <code>PERCENT_20</code> for headroom</p>
|
|
6939
|
+
* </li>
|
|
6940
|
+
* </ul>
|
|
6941
|
+
* <p>Memory utilization:</p>
|
|
6942
|
+
* <ul>
|
|
6943
|
+
* <li>
|
|
6944
|
+
* <p>
|
|
6945
|
+
* <code>PERCENT_20</code> for headroom</p>
|
|
6925
6946
|
* </li>
|
|
6926
6947
|
* </ul>
|
|
6927
6948
|
* <note>
|
|
6928
|
-
* <
|
|
6949
|
+
* <ul>
|
|
6950
|
+
* <li>
|
|
6951
|
+
* <p>You can only set CPU and memory utilization preferences for the Amazon EC2 instance resource type.</p>
|
|
6952
|
+
* </li>
|
|
6953
|
+
* <li>
|
|
6954
|
+
* <p>The threshold setting isn’t available for memory utilization.</p>
|
|
6955
|
+
* </li>
|
|
6956
|
+
* </ul>
|
|
6929
6957
|
* </note>
|
|
6930
6958
|
* @public
|
|
6931
6959
|
*/
|
|
@@ -6,5 +6,4 @@ export { ComputeOptimizerExtensionConfiguration } from "./extensionConfiguration
|
|
|
6
6
|
export * from "./commands";
|
|
7
7
|
export * from "./pagination";
|
|
8
8
|
export * from "./models";
|
|
9
|
-
import "@aws-sdk/util-endpoints";
|
|
10
9
|
export { ComputeOptimizerServiceException } from "./models/ComputeOptimizerServiceException";
|
|
@@ -115,11 +115,13 @@ export interface InstanceSavingsEstimationMode {
|
|
|
115
115
|
}
|
|
116
116
|
export declare const CustomizableMetricName: {
|
|
117
117
|
readonly CPU_UTILIZATION: "CpuUtilization";
|
|
118
|
+
readonly MEMORY_UTILIZATION: "MemoryUtilization";
|
|
118
119
|
};
|
|
119
120
|
export type CustomizableMetricName =
|
|
120
121
|
(typeof CustomizableMetricName)[keyof typeof CustomizableMetricName];
|
|
121
122
|
export declare const CustomizableMetricHeadroom: {
|
|
122
123
|
readonly PERCENT_0: "PERCENT_0";
|
|
124
|
+
readonly PERCENT_10: "PERCENT_10";
|
|
123
125
|
readonly PERCENT_20: "PERCENT_20";
|
|
124
126
|
readonly PERCENT_30: "PERCENT_30";
|
|
125
127
|
};
|
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.544.0",
|
|
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,16 +20,16 @@
|
|
|
20
20
|
"dependencies": {
|
|
21
21
|
"@aws-crypto/sha256-browser": "3.0.0",
|
|
22
22
|
"@aws-crypto/sha256-js": "3.0.0",
|
|
23
|
-
"@aws-sdk/client-sts": "3.
|
|
23
|
+
"@aws-sdk/client-sts": "3.540.0",
|
|
24
24
|
"@aws-sdk/core": "3.535.0",
|
|
25
|
-
"@aws-sdk/credential-provider-node": "3.
|
|
25
|
+
"@aws-sdk/credential-provider-node": "3.540.0",
|
|
26
26
|
"@aws-sdk/middleware-host-header": "3.535.0",
|
|
27
27
|
"@aws-sdk/middleware-logger": "3.535.0",
|
|
28
28
|
"@aws-sdk/middleware-recursion-detection": "3.535.0",
|
|
29
|
-
"@aws-sdk/middleware-user-agent": "3.
|
|
29
|
+
"@aws-sdk/middleware-user-agent": "3.540.0",
|
|
30
30
|
"@aws-sdk/region-config-resolver": "3.535.0",
|
|
31
31
|
"@aws-sdk/types": "3.535.0",
|
|
32
|
-
"@aws-sdk/util-endpoints": "3.
|
|
32
|
+
"@aws-sdk/util-endpoints": "3.540.0",
|
|
33
33
|
"@aws-sdk/util-user-agent-browser": "3.535.0",
|
|
34
34
|
"@aws-sdk/util-user-agent-node": "3.535.0",
|
|
35
35
|
"@smithy/config-resolver": "^2.2.0",
|