@aws-sdk/client-cost-optimization-hub 3.741.0 → 3.743.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/index.js +13 -0
- package/dist-es/models/models_0.js +9 -0
- package/dist-types/commands/GetRecommendationCommand.d.ts +15 -1
- package/dist-types/commands/ListRecommendationSummariesCommand.d.ts +1 -1
- package/dist-types/commands/ListRecommendationsCommand.d.ts +1 -1
- package/dist-types/models/models_0.d.ts +64 -11
- package/dist-types/ts3.4/models/models_0.d.ts +19 -0
- package/package.json +5 -5
package/dist-cjs/index.js
CHANGED
|
@@ -23,9 +23,11 @@ var src_exports = {};
|
|
|
23
23
|
__export(src_exports, {
|
|
24
24
|
AccessDeniedException: () => AccessDeniedException,
|
|
25
25
|
ActionType: () => ActionType,
|
|
26
|
+
AllocationStrategy: () => AllocationStrategy,
|
|
26
27
|
CostOptimizationHub: () => CostOptimizationHub,
|
|
27
28
|
CostOptimizationHubClient: () => CostOptimizationHubClient,
|
|
28
29
|
CostOptimizationHubServiceException: () => CostOptimizationHubServiceException,
|
|
30
|
+
Ec2AutoScalingGroupType: () => Ec2AutoScalingGroupType,
|
|
29
31
|
EnrollmentStatus: () => EnrollmentStatus,
|
|
30
32
|
GetPreferencesCommand: () => GetPreferencesCommand,
|
|
31
33
|
GetRecommendationCommand: () => GetRecommendationCommand,
|
|
@@ -253,9 +255,14 @@ var ActionType = {
|
|
|
253
255
|
PURCHASE_RESERVED_INSTANCES: "PurchaseReservedInstances",
|
|
254
256
|
PURCHASE_SAVINGS_PLANS: "PurchaseSavingsPlans",
|
|
255
257
|
RIGHTSIZE: "Rightsize",
|
|
258
|
+
SCALE_IN: "ScaleIn",
|
|
256
259
|
STOP: "Stop",
|
|
257
260
|
UPGRADE: "Upgrade"
|
|
258
261
|
};
|
|
262
|
+
var AllocationStrategy = {
|
|
263
|
+
LOWEST_PRICE: "LowestPrice",
|
|
264
|
+
PRIORITIZED: "Prioritized"
|
|
265
|
+
};
|
|
259
266
|
var MemberAccountDiscountVisibility = {
|
|
260
267
|
ALL: "All",
|
|
261
268
|
NONE: "None"
|
|
@@ -334,6 +341,10 @@ var ValidationException = class _ValidationException extends CostOptimizationHub
|
|
|
334
341
|
this.fields = opts.fields;
|
|
335
342
|
}
|
|
336
343
|
};
|
|
344
|
+
var Ec2AutoScalingGroupType = {
|
|
345
|
+
MIXED_INSTANCE_TYPES: "MixedInstanceTypes",
|
|
346
|
+
SINGLE_INSTANCE_TYPE: "SingleInstanceType"
|
|
347
|
+
};
|
|
337
348
|
var ResourceDetails;
|
|
338
349
|
((ResourceDetails3) => {
|
|
339
350
|
ResourceDetails3.visit = /* @__PURE__ */ __name((value, visitor) => {
|
|
@@ -1207,12 +1218,14 @@ var paginateListRecommendations = (0, import_core.createPaginator)(CostOptimizat
|
|
|
1207
1218
|
AccessDeniedException,
|
|
1208
1219
|
EnrollmentStatus,
|
|
1209
1220
|
ActionType,
|
|
1221
|
+
AllocationStrategy,
|
|
1210
1222
|
MemberAccountDiscountVisibility,
|
|
1211
1223
|
SavingsEstimationMode,
|
|
1212
1224
|
InternalServerException,
|
|
1213
1225
|
ThrottlingException,
|
|
1214
1226
|
ValidationExceptionReason,
|
|
1215
1227
|
ValidationException,
|
|
1228
|
+
Ec2AutoScalingGroupType,
|
|
1216
1229
|
ResourceDetails,
|
|
1217
1230
|
ResourceType,
|
|
1218
1231
|
ImplementationEffort,
|
|
@@ -21,9 +21,14 @@ export const ActionType = {
|
|
|
21
21
|
PURCHASE_RESERVED_INSTANCES: "PurchaseReservedInstances",
|
|
22
22
|
PURCHASE_SAVINGS_PLANS: "PurchaseSavingsPlans",
|
|
23
23
|
RIGHTSIZE: "Rightsize",
|
|
24
|
+
SCALE_IN: "ScaleIn",
|
|
24
25
|
STOP: "Stop",
|
|
25
26
|
UPGRADE: "Upgrade",
|
|
26
27
|
};
|
|
28
|
+
export const AllocationStrategy = {
|
|
29
|
+
LOWEST_PRICE: "LowestPrice",
|
|
30
|
+
PRIORITIZED: "Prioritized",
|
|
31
|
+
};
|
|
27
32
|
export const MemberAccountDiscountVisibility = {
|
|
28
33
|
ALL: "All",
|
|
29
34
|
NONE: "None",
|
|
@@ -76,6 +81,10 @@ export class ValidationException extends __BaseException {
|
|
|
76
81
|
this.fields = opts.fields;
|
|
77
82
|
}
|
|
78
83
|
}
|
|
84
|
+
export const Ec2AutoScalingGroupType = {
|
|
85
|
+
MIXED_INSTANCE_TYPES: "MixedInstanceTypes",
|
|
86
|
+
SINGLE_INSTANCE_TYPE: "SingleInstanceType",
|
|
87
|
+
};
|
|
79
88
|
export var ResourceDetails;
|
|
80
89
|
(function (ResourceDetails) {
|
|
81
90
|
ResourceDetails.visit = (value, visitor) => {
|
|
@@ -62,7 +62,7 @@ declare const GetRecommendationCommand_base: {
|
|
|
62
62
|
* // estimatedMonthlyCost: Number("double"),
|
|
63
63
|
* // implementationEffort: "VeryLow" || "Low" || "Medium" || "High" || "VeryHigh",
|
|
64
64
|
* // restartNeeded: true || false,
|
|
65
|
-
* // actionType: "Rightsize" || "Stop" || "Upgrade" || "PurchaseSavingsPlans" || "PurchaseReservedInstances" || "MigrateToGraviton" || "Delete",
|
|
65
|
+
* // actionType: "Rightsize" || "Stop" || "Upgrade" || "PurchaseSavingsPlans" || "PurchaseReservedInstances" || "MigrateToGraviton" || "Delete" || "ScaleIn",
|
|
66
66
|
* // rollbackPossible: true || false,
|
|
67
67
|
* // currentResourceDetails: { // ResourceDetails Union: only one key present
|
|
68
68
|
* // lambdaFunction: { // LambdaFunction
|
|
@@ -194,6 +194,13 @@ declare const GetRecommendationCommand_base: {
|
|
|
194
194
|
* // instance: {
|
|
195
195
|
* // type: "STRING_VALUE",
|
|
196
196
|
* // },
|
|
197
|
+
* // mixedInstances: [ // MixedInstanceConfigurationList
|
|
198
|
+
* // { // MixedInstanceConfiguration
|
|
199
|
+
* // type: "STRING_VALUE",
|
|
200
|
+
* // },
|
|
201
|
+
* // ],
|
|
202
|
+
* // type: "SingleInstanceType" || "MixedInstanceTypes",
|
|
203
|
+
* // allocationStrategy: "Prioritized" || "LowestPrice",
|
|
197
204
|
* // },
|
|
198
205
|
* // costCalculation: {
|
|
199
206
|
* // usages: [
|
|
@@ -466,6 +473,13 @@ declare const GetRecommendationCommand_base: {
|
|
|
466
473
|
* // instance: {
|
|
467
474
|
* // type: "STRING_VALUE",
|
|
468
475
|
* // },
|
|
476
|
+
* // mixedInstances: [
|
|
477
|
+
* // {
|
|
478
|
+
* // type: "STRING_VALUE",
|
|
479
|
+
* // },
|
|
480
|
+
* // ],
|
|
481
|
+
* // type: "SingleInstanceType" || "MixedInstanceTypes",
|
|
482
|
+
* // allocationStrategy: "Prioritized" || "LowestPrice",
|
|
469
483
|
* // },
|
|
470
484
|
* // costCalculation: "<ResourceCostCalculation>",
|
|
471
485
|
* // },
|
|
@@ -56,7 +56,7 @@ declare const ListRecommendationSummariesCommand_base: {
|
|
|
56
56
|
* "Ec2Instance" || "LambdaFunction" || "EbsVolume" || "EcsService" || "Ec2AutoScalingGroup" || "Ec2InstanceSavingsPlans" || "ComputeSavingsPlans" || "SageMakerSavingsPlans" || "Ec2ReservedInstances" || "RdsReservedInstances" || "OpenSearchReservedInstances" || "RedshiftReservedInstances" || "ElastiCacheReservedInstances" || "RdsDbInstanceStorage" || "RdsDbInstance",
|
|
57
57
|
* ],
|
|
58
58
|
* actionTypes: [ // ActionTypeList
|
|
59
|
-
* "Rightsize" || "Stop" || "Upgrade" || "PurchaseSavingsPlans" || "PurchaseReservedInstances" || "MigrateToGraviton" || "Delete",
|
|
59
|
+
* "Rightsize" || "Stop" || "Upgrade" || "PurchaseSavingsPlans" || "PurchaseReservedInstances" || "MigrateToGraviton" || "Delete" || "ScaleIn",
|
|
60
60
|
* ],
|
|
61
61
|
* tags: [ // TagList
|
|
62
62
|
* { // Tag
|
|
@@ -51,7 +51,7 @@ declare const ListRecommendationsCommand_base: {
|
|
|
51
51
|
* "Ec2Instance" || "LambdaFunction" || "EbsVolume" || "EcsService" || "Ec2AutoScalingGroup" || "Ec2InstanceSavingsPlans" || "ComputeSavingsPlans" || "SageMakerSavingsPlans" || "Ec2ReservedInstances" || "RdsReservedInstances" || "OpenSearchReservedInstances" || "RedshiftReservedInstances" || "ElastiCacheReservedInstances" || "RdsDbInstanceStorage" || "RdsDbInstance",
|
|
52
52
|
* ],
|
|
53
53
|
* actionTypes: [ // ActionTypeList
|
|
54
|
-
* "Rightsize" || "Stop" || "Upgrade" || "PurchaseSavingsPlans" || "PurchaseReservedInstances" || "MigrateToGraviton" || "Delete",
|
|
54
|
+
* "Rightsize" || "Stop" || "Upgrade" || "PurchaseSavingsPlans" || "PurchaseReservedInstances" || "MigrateToGraviton" || "Delete" || "ScaleIn",
|
|
55
55
|
* ],
|
|
56
56
|
* tags: [ // TagList
|
|
57
57
|
* { // Tag
|
|
@@ -61,6 +61,7 @@ export declare const ActionType: {
|
|
|
61
61
|
readonly PURCHASE_RESERVED_INSTANCES: "PurchaseReservedInstances";
|
|
62
62
|
readonly PURCHASE_SAVINGS_PLANS: "PurchaseSavingsPlans";
|
|
63
63
|
readonly RIGHTSIZE: "Rightsize";
|
|
64
|
+
readonly SCALE_IN: "ScaleIn";
|
|
64
65
|
readonly STOP: "Stop";
|
|
65
66
|
readonly UPGRADE: "Upgrade";
|
|
66
67
|
};
|
|
@@ -68,6 +69,18 @@ export declare const ActionType: {
|
|
|
68
69
|
* @public
|
|
69
70
|
*/
|
|
70
71
|
export type ActionType = (typeof ActionType)[keyof typeof ActionType];
|
|
72
|
+
/**
|
|
73
|
+
* @public
|
|
74
|
+
* @enum
|
|
75
|
+
*/
|
|
76
|
+
export declare const AllocationStrategy: {
|
|
77
|
+
readonly LOWEST_PRICE: "LowestPrice";
|
|
78
|
+
readonly PRIORITIZED: "Prioritized";
|
|
79
|
+
};
|
|
80
|
+
/**
|
|
81
|
+
* @public
|
|
82
|
+
*/
|
|
83
|
+
export type AllocationStrategy = (typeof AllocationStrategy)[keyof typeof AllocationStrategy];
|
|
71
84
|
/**
|
|
72
85
|
* <p>Describes the Amazon Elastic Block Store performance configuration of the current and
|
|
73
86
|
* recommended resource configuration for a recommendation.</p>
|
|
@@ -343,8 +356,7 @@ export interface StorageConfiguration {
|
|
|
343
356
|
sizeInGb?: number | undefined;
|
|
344
357
|
}
|
|
345
358
|
/**
|
|
346
|
-
* <p>The Amazon Elastic Block Store volume configuration used for
|
|
347
|
-
* recommendations.</p>
|
|
359
|
+
* <p>The Amazon Elastic Block Store volume configuration used for recommendations.</p>
|
|
348
360
|
* @public
|
|
349
361
|
*/
|
|
350
362
|
export interface EbsVolumeConfiguration {
|
|
@@ -463,14 +475,13 @@ export interface ResourceCostCalculation {
|
|
|
463
475
|
pricing?: ResourcePricing | undefined;
|
|
464
476
|
}
|
|
465
477
|
/**
|
|
466
|
-
* <p>Describes the Amazon Elastic Block Store volume configuration of the current and
|
|
467
|
-
*
|
|
478
|
+
* <p>Describes the Amazon Elastic Block Store volume configuration of the current and recommended
|
|
479
|
+
* resource configuration for a recommendation.</p>
|
|
468
480
|
* @public
|
|
469
481
|
*/
|
|
470
482
|
export interface EbsVolume {
|
|
471
483
|
/**
|
|
472
|
-
* <p>The Amazon Elastic Block Store volume configuration used for
|
|
473
|
-
* recommendations.</p>
|
|
484
|
+
* <p>The Amazon Elastic Block Store volume configuration used for recommendations.</p>
|
|
474
485
|
* @public
|
|
475
486
|
*/
|
|
476
487
|
configuration?: EbsVolumeConfiguration | undefined;
|
|
@@ -481,26 +492,67 @@ export interface EbsVolume {
|
|
|
481
492
|
costCalculation?: ResourceCostCalculation | undefined;
|
|
482
493
|
}
|
|
483
494
|
/**
|
|
484
|
-
* <p>The
|
|
495
|
+
* <p>The instance configuration used for recommendations.</p>
|
|
485
496
|
* @public
|
|
486
497
|
*/
|
|
487
498
|
export interface InstanceConfiguration {
|
|
488
499
|
/**
|
|
489
|
-
* <p>
|
|
500
|
+
* <p>The instance type of the configuration.</p>
|
|
501
|
+
* @public
|
|
502
|
+
*/
|
|
503
|
+
type?: string | undefined;
|
|
504
|
+
}
|
|
505
|
+
/**
|
|
506
|
+
* <p>The configuration for the EC2 Auto Scaling group with mixed instance types.</p>
|
|
507
|
+
* @public
|
|
508
|
+
*/
|
|
509
|
+
export interface MixedInstanceConfiguration {
|
|
510
|
+
/**
|
|
511
|
+
* <p>The instance type of the configuration.</p>
|
|
490
512
|
* @public
|
|
491
513
|
*/
|
|
492
514
|
type?: string | undefined;
|
|
493
515
|
}
|
|
494
516
|
/**
|
|
495
|
-
*
|
|
517
|
+
* @public
|
|
518
|
+
* @enum
|
|
519
|
+
*/
|
|
520
|
+
export declare const Ec2AutoScalingGroupType: {
|
|
521
|
+
readonly MIXED_INSTANCE_TYPES: "MixedInstanceTypes";
|
|
522
|
+
readonly SINGLE_INSTANCE_TYPE: "SingleInstanceType";
|
|
523
|
+
};
|
|
524
|
+
/**
|
|
525
|
+
* @public
|
|
526
|
+
*/
|
|
527
|
+
export type Ec2AutoScalingGroupType = (typeof Ec2AutoScalingGroupType)[keyof typeof Ec2AutoScalingGroupType];
|
|
528
|
+
/**
|
|
529
|
+
* <p>The EC2 Auto Scaling group configuration used for recommendations.</p>
|
|
496
530
|
* @public
|
|
497
531
|
*/
|
|
498
532
|
export interface Ec2AutoScalingGroupConfiguration {
|
|
499
533
|
/**
|
|
500
|
-
* <p>Details about the instance
|
|
534
|
+
* <p>Details about the instance for the EC2 Auto Scaling group with a single instance
|
|
535
|
+
* type.</p>
|
|
501
536
|
* @public
|
|
502
537
|
*/
|
|
503
538
|
instance?: InstanceConfiguration | undefined;
|
|
539
|
+
/**
|
|
540
|
+
* <p>A list of instance types for an EC2 Auto Scaling group with mixed instance types.</p>
|
|
541
|
+
* @public
|
|
542
|
+
*/
|
|
543
|
+
mixedInstances?: MixedInstanceConfiguration[] | undefined;
|
|
544
|
+
/**
|
|
545
|
+
* <p>The type of EC2 Auto Scaling group, showing whether it consists of a single instance type
|
|
546
|
+
* or mixed instance types.</p>
|
|
547
|
+
* @public
|
|
548
|
+
*/
|
|
549
|
+
type?: Ec2AutoScalingGroupType | undefined;
|
|
550
|
+
/**
|
|
551
|
+
* <p>The strategy used for allocating instances, based on a predefined priority order or based
|
|
552
|
+
* on the lowest available price.</p>
|
|
553
|
+
* @public
|
|
554
|
+
*/
|
|
555
|
+
allocationStrategy?: AllocationStrategy | undefined;
|
|
504
556
|
}
|
|
505
557
|
/**
|
|
506
558
|
* <p>The EC2 Auto Scaling group recommendation details.</p>
|
|
@@ -1561,7 +1613,8 @@ export declare namespace ResourceDetails {
|
|
|
1561
1613
|
$unknown?: never;
|
|
1562
1614
|
}
|
|
1563
1615
|
/**
|
|
1564
|
-
* <p>The SageMaker
|
|
1616
|
+
* <p>The SageMaker AI
|
|
1617
|
+
* Savings Plans recommendation details.</p>
|
|
1565
1618
|
* @public
|
|
1566
1619
|
*/
|
|
1567
1620
|
interface SageMakerSavingsPlansMember {
|
|
@@ -25,10 +25,17 @@ export declare const ActionType: {
|
|
|
25
25
|
readonly PURCHASE_RESERVED_INSTANCES: "PurchaseReservedInstances";
|
|
26
26
|
readonly PURCHASE_SAVINGS_PLANS: "PurchaseSavingsPlans";
|
|
27
27
|
readonly RIGHTSIZE: "Rightsize";
|
|
28
|
+
readonly SCALE_IN: "ScaleIn";
|
|
28
29
|
readonly STOP: "Stop";
|
|
29
30
|
readonly UPGRADE: "Upgrade";
|
|
30
31
|
};
|
|
31
32
|
export type ActionType = (typeof ActionType)[keyof typeof ActionType];
|
|
33
|
+
export declare const AllocationStrategy: {
|
|
34
|
+
readonly LOWEST_PRICE: "LowestPrice";
|
|
35
|
+
readonly PRIORITIZED: "Prioritized";
|
|
36
|
+
};
|
|
37
|
+
export type AllocationStrategy =
|
|
38
|
+
(typeof AllocationStrategy)[keyof typeof AllocationStrategy];
|
|
32
39
|
export interface BlockStoragePerformanceConfiguration {
|
|
33
40
|
iops?: number | undefined;
|
|
34
41
|
throughput?: number | undefined;
|
|
@@ -149,8 +156,20 @@ export interface EbsVolume {
|
|
|
149
156
|
export interface InstanceConfiguration {
|
|
150
157
|
type?: string | undefined;
|
|
151
158
|
}
|
|
159
|
+
export interface MixedInstanceConfiguration {
|
|
160
|
+
type?: string | undefined;
|
|
161
|
+
}
|
|
162
|
+
export declare const Ec2AutoScalingGroupType: {
|
|
163
|
+
readonly MIXED_INSTANCE_TYPES: "MixedInstanceTypes";
|
|
164
|
+
readonly SINGLE_INSTANCE_TYPE: "SingleInstanceType";
|
|
165
|
+
};
|
|
166
|
+
export type Ec2AutoScalingGroupType =
|
|
167
|
+
(typeof Ec2AutoScalingGroupType)[keyof typeof Ec2AutoScalingGroupType];
|
|
152
168
|
export interface Ec2AutoScalingGroupConfiguration {
|
|
153
169
|
instance?: InstanceConfiguration | undefined;
|
|
170
|
+
mixedInstances?: MixedInstanceConfiguration[] | undefined;
|
|
171
|
+
type?: Ec2AutoScalingGroupType | undefined;
|
|
172
|
+
allocationStrategy?: AllocationStrategy | undefined;
|
|
154
173
|
}
|
|
155
174
|
export interface Ec2AutoScalingGroup {
|
|
156
175
|
configuration?: Ec2AutoScalingGroupConfiguration | undefined;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/client-cost-optimization-hub",
|
|
3
3
|
"description": "AWS SDK for JavaScript Cost Optimization Hub Client for Node.js, Browser and React Native",
|
|
4
|
-
"version": "3.
|
|
4
|
+
"version": "3.743.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-cost-optimization-hub",
|
|
@@ -21,16 +21,16 @@
|
|
|
21
21
|
"@aws-crypto/sha256-browser": "5.2.0",
|
|
22
22
|
"@aws-crypto/sha256-js": "5.2.0",
|
|
23
23
|
"@aws-sdk/core": "3.734.0",
|
|
24
|
-
"@aws-sdk/credential-provider-node": "3.
|
|
24
|
+
"@aws-sdk/credential-provider-node": "3.743.0",
|
|
25
25
|
"@aws-sdk/middleware-host-header": "3.734.0",
|
|
26
26
|
"@aws-sdk/middleware-logger": "3.734.0",
|
|
27
27
|
"@aws-sdk/middleware-recursion-detection": "3.734.0",
|
|
28
|
-
"@aws-sdk/middleware-user-agent": "3.
|
|
28
|
+
"@aws-sdk/middleware-user-agent": "3.743.0",
|
|
29
29
|
"@aws-sdk/region-config-resolver": "3.734.0",
|
|
30
30
|
"@aws-sdk/types": "3.734.0",
|
|
31
|
-
"@aws-sdk/util-endpoints": "3.
|
|
31
|
+
"@aws-sdk/util-endpoints": "3.743.0",
|
|
32
32
|
"@aws-sdk/util-user-agent-browser": "3.734.0",
|
|
33
|
-
"@aws-sdk/util-user-agent-node": "3.
|
|
33
|
+
"@aws-sdk/util-user-agent-node": "3.743.0",
|
|
34
34
|
"@smithy/config-resolver": "^4.0.1",
|
|
35
35
|
"@smithy/core": "^3.1.1",
|
|
36
36
|
"@smithy/fetch-http-handler": "^5.0.1",
|