@aws-sdk/client-cost-optimization-hub 3.934.0 → 3.936.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +8 -0
- package/dist-cjs/index.js +158 -81
- package/dist-es/CostOptimizationHub.js +2 -0
- package/dist-es/commands/ListEfficiencyMetricsCommand.js +16 -0
- package/dist-es/commands/index.js +1 -0
- package/dist-es/index.js +2 -1
- package/dist-es/models/enums.js +85 -0
- package/dist-es/models/errors.js +67 -0
- package/dist-es/models/models_0.js +1 -148
- package/dist-es/pagination/ListEfficiencyMetricsPaginator.js +4 -0
- package/dist-es/pagination/index.js +1 -0
- package/dist-es/schemas/schemas_0.js +55 -1
- package/dist-types/CostOptimizationHub.d.ts +7 -0
- package/dist-types/CostOptimizationHubClient.d.ts +3 -2
- package/dist-types/commands/ListEfficiencyMetricsCommand.d.ts +111 -0
- package/dist-types/commands/UpdateEnrollmentStatusCommand.d.ts +1 -1
- package/dist-types/commands/index.d.ts +1 -0
- package/dist-types/index.d.ts +3 -1
- package/dist-types/models/enums.d.ts +211 -0
- package/dist-types/models/errors.d.ts +79 -0
- package/dist-types/models/models_0.d.ts +127 -283
- package/dist-types/pagination/ListEfficiencyMetricsPaginator.d.ts +7 -0
- package/dist-types/pagination/index.d.ts +1 -0
- package/dist-types/schemas/schemas_0.d.ts +8 -0
- package/dist-types/ts3.4/CostOptimizationHub.d.ts +17 -0
- package/dist-types/ts3.4/CostOptimizationHubClient.d.ts +6 -0
- package/dist-types/ts3.4/commands/ListEfficiencyMetricsCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/index.d.ts +1 -0
- package/dist-types/ts3.4/index.d.ts +3 -1
- package/dist-types/ts3.4/models/enums.d.ts +109 -0
- package/dist-types/ts3.4/models/errors.d.ts +42 -0
- package/dist-types/ts3.4/models/models_0.d.ts +46 -146
- package/dist-types/ts3.4/pagination/ListEfficiencyMetricsPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/index.d.ts +1 -0
- package/dist-types/ts3.4/schemas/schemas_0.d.ts +8 -0
- package/package.json +19 -19
- package/dist-es/models/index.js +0 -1
- package/dist-types/models/index.d.ts +0 -1
- package/dist-types/ts3.4/models/index.d.ts +0 -1
package/README.md
CHANGED
|
@@ -218,6 +218,14 @@ GetRecommendation
|
|
|
218
218
|
|
|
219
219
|
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/cost-optimization-hub/command/GetRecommendationCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-cost-optimization-hub/Interface/GetRecommendationCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-cost-optimization-hub/Interface/GetRecommendationCommandOutput/)
|
|
220
220
|
|
|
221
|
+
</details>
|
|
222
|
+
<details>
|
|
223
|
+
<summary>
|
|
224
|
+
ListEfficiencyMetrics
|
|
225
|
+
</summary>
|
|
226
|
+
|
|
227
|
+
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/cost-optimization-hub/command/ListEfficiencyMetricsCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-cost-optimization-hub/Interface/ListEfficiencyMetricsCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-cost-optimization-hub/Interface/ListEfficiencyMetricsCommandOutput/)
|
|
228
|
+
|
|
221
229
|
</details>
|
|
222
230
|
<details>
|
|
223
231
|
<summary>
|
package/dist-cjs/index.js
CHANGED
|
@@ -129,41 +129,6 @@ let AccessDeniedException$1 = class AccessDeniedException extends CostOptimizati
|
|
|
129
129
|
Object.setPrototypeOf(this, AccessDeniedException.prototype);
|
|
130
130
|
}
|
|
131
131
|
};
|
|
132
|
-
const EnrollmentStatus = {
|
|
133
|
-
ACTIVE: "Active",
|
|
134
|
-
INACTIVE: "Inactive",
|
|
135
|
-
};
|
|
136
|
-
const ActionType = {
|
|
137
|
-
DELETE: "Delete",
|
|
138
|
-
MIGRATE_TO_GRAVITON: "MigrateToGraviton",
|
|
139
|
-
PURCHASE_RESERVED_INSTANCES: "PurchaseReservedInstances",
|
|
140
|
-
PURCHASE_SAVINGS_PLANS: "PurchaseSavingsPlans",
|
|
141
|
-
RIGHTSIZE: "Rightsize",
|
|
142
|
-
SCALE_IN: "ScaleIn",
|
|
143
|
-
STOP: "Stop",
|
|
144
|
-
UPGRADE: "Upgrade",
|
|
145
|
-
};
|
|
146
|
-
const AllocationStrategy = {
|
|
147
|
-
LOWEST_PRICE: "LowestPrice",
|
|
148
|
-
PRIORITIZED: "Prioritized",
|
|
149
|
-
};
|
|
150
|
-
const MemberAccountDiscountVisibility = {
|
|
151
|
-
ALL: "All",
|
|
152
|
-
NONE: "None",
|
|
153
|
-
};
|
|
154
|
-
const PaymentOption = {
|
|
155
|
-
ALL_UPFRONT: "AllUpfront",
|
|
156
|
-
NO_UPFRONT: "NoUpfront",
|
|
157
|
-
PARTIAL_UPFRONT: "PartialUpfront",
|
|
158
|
-
};
|
|
159
|
-
const Term = {
|
|
160
|
-
ONE_YEAR: "OneYear",
|
|
161
|
-
THREE_YEARS: "ThreeYears",
|
|
162
|
-
};
|
|
163
|
-
const SavingsEstimationMode = {
|
|
164
|
-
AFTER_DISCOUNTS: "AfterDiscounts",
|
|
165
|
-
BEFORE_DISCOUNTS: "BeforeDiscounts",
|
|
166
|
-
};
|
|
167
132
|
let InternalServerException$1 = class InternalServerException extends CostOptimizationHubServiceException$1 {
|
|
168
133
|
name = "InternalServerException";
|
|
169
134
|
$fault = "server";
|
|
@@ -188,10 +153,6 @@ let ThrottlingException$1 = class ThrottlingException extends CostOptimizationHu
|
|
|
188
153
|
Object.setPrototypeOf(this, ThrottlingException.prototype);
|
|
189
154
|
}
|
|
190
155
|
};
|
|
191
|
-
const ValidationExceptionReason = {
|
|
192
|
-
FIELD_VALIDATION_FAILED: "FieldValidationFailed",
|
|
193
|
-
OTHER: "Other",
|
|
194
|
-
};
|
|
195
156
|
let ValidationException$1 = class ValidationException extends CostOptimizationHubServiceException$1 {
|
|
196
157
|
name = "ValidationException";
|
|
197
158
|
$fault = "client";
|
|
@@ -208,41 +169,6 @@ let ValidationException$1 = class ValidationException extends CostOptimizationHu
|
|
|
208
169
|
this.fields = opts.fields;
|
|
209
170
|
}
|
|
210
171
|
};
|
|
211
|
-
const Ec2AutoScalingGroupType = {
|
|
212
|
-
MIXED_INSTANCE_TYPES: "MixedInstanceTypes",
|
|
213
|
-
SINGLE_INSTANCE_TYPE: "SingleInstanceType",
|
|
214
|
-
};
|
|
215
|
-
const ResourceType = {
|
|
216
|
-
AURORA_DB_CLUSTER_STORAGE: "AuroraDbClusterStorage",
|
|
217
|
-
COMPUTE_SAVINGS_PLANS: "ComputeSavingsPlans",
|
|
218
|
-
DYNAMO_DB_RESERVED_CAPACITY: "DynamoDbReservedCapacity",
|
|
219
|
-
EBS_VOLUME: "EbsVolume",
|
|
220
|
-
EC2_AUTO_SCALING_GROUP: "Ec2AutoScalingGroup",
|
|
221
|
-
EC2_INSTANCE: "Ec2Instance",
|
|
222
|
-
EC2_INSTANCE_SAVINGS_PLANS: "Ec2InstanceSavingsPlans",
|
|
223
|
-
EC2_RESERVED_INSTANCES: "Ec2ReservedInstances",
|
|
224
|
-
ECS_SERVICE: "EcsService",
|
|
225
|
-
ELASTI_CACHE_RESERVED_INSTANCES: "ElastiCacheReservedInstances",
|
|
226
|
-
LAMBDA_FUNCTION: "LambdaFunction",
|
|
227
|
-
MEMORY_DB_RESERVED_INSTANCES: "MemoryDbReservedInstances",
|
|
228
|
-
OPEN_SEARCH_RESERVED_INSTANCES: "OpenSearchReservedInstances",
|
|
229
|
-
RDS_DB_INSTANCE: "RdsDbInstance",
|
|
230
|
-
RDS_DB_INSTANCE_STORAGE: "RdsDbInstanceStorage",
|
|
231
|
-
RDS_RESERVED_INSTANCES: "RdsReservedInstances",
|
|
232
|
-
REDSHIFT_RESERVED_INSTANCES: "RedshiftReservedInstances",
|
|
233
|
-
SAGE_MAKER_SAVINGS_PLANS: "SageMakerSavingsPlans",
|
|
234
|
-
};
|
|
235
|
-
const ImplementationEffort = {
|
|
236
|
-
HIGH: "High",
|
|
237
|
-
LOW: "Low",
|
|
238
|
-
MEDIUM: "Medium",
|
|
239
|
-
VERY_HIGH: "VeryHigh",
|
|
240
|
-
VERY_LOW: "VeryLow",
|
|
241
|
-
};
|
|
242
|
-
const Source = {
|
|
243
|
-
COMPUTE_OPTIMIZER: "ComputeOptimizer",
|
|
244
|
-
COST_EXPLORER: "CostExplorer",
|
|
245
|
-
};
|
|
246
172
|
let ResourceNotFoundException$1 = class ResourceNotFoundException extends CostOptimizationHubServiceException$1 {
|
|
247
173
|
name = "ResourceNotFoundException";
|
|
248
174
|
$fault = "client";
|
|
@@ -257,13 +183,6 @@ let ResourceNotFoundException$1 = class ResourceNotFoundException extends CostOp
|
|
|
257
183
|
this.resourceId = opts.resourceId;
|
|
258
184
|
}
|
|
259
185
|
};
|
|
260
|
-
const Order = {
|
|
261
|
-
ASC: "Asc",
|
|
262
|
-
DESC: "Desc",
|
|
263
|
-
};
|
|
264
|
-
const SummaryMetrics = {
|
|
265
|
-
SAVINGS_PERCENTAGE: "SavingsPercentage",
|
|
266
|
-
};
|
|
267
186
|
|
|
268
187
|
const _ADCS = "AuroraDbClusterStorage";
|
|
269
188
|
const _ADCSC = "AuroraDbClusterStorageConfiguration";
|
|
@@ -286,6 +205,8 @@ const _EI = "Ec2Instance";
|
|
|
286
205
|
const _EIC = "Ec2InstanceConfiguration";
|
|
287
206
|
const _EISP = "Ec2InstanceSavingsPlans";
|
|
288
207
|
const _EISPC = "Ec2InstanceSavingsPlansConfiguration";
|
|
208
|
+
const _EMBG = "EfficiencyMetricsByGroup";
|
|
209
|
+
const _EMBGL = "EfficiencyMetricsByGroupList";
|
|
289
210
|
const _ERI = "Ec2ReservedInstances";
|
|
290
211
|
const _ERIC = "Ec2ReservedInstancesConfiguration";
|
|
291
212
|
const _ES = "EcsService";
|
|
@@ -301,6 +222,9 @@ const _GRR = "GetRecommendationRequest";
|
|
|
301
222
|
const _GRRe = "GetRecommendationResponse";
|
|
302
223
|
const _IC = "InstanceConfiguration";
|
|
303
224
|
const _ISE = "InternalServerException";
|
|
225
|
+
const _LEM = "ListEfficiencyMetrics";
|
|
226
|
+
const _LEMR = "ListEfficiencyMetricsRequest";
|
|
227
|
+
const _LEMRi = "ListEfficiencyMetricsResponse";
|
|
304
228
|
const _LES = "ListEnrollmentStatuses";
|
|
305
229
|
const _LESR = "ListEnrollmentStatusesRequest";
|
|
306
230
|
const _LESRi = "ListEnrollmentStatusesResponse";
|
|
@@ -312,6 +236,8 @@ const _LRRi = "ListRecommendationsResponse";
|
|
|
312
236
|
const _LRS = "ListRecommendationSummaries";
|
|
313
237
|
const _LRSR = "ListRecommendationSummariesRequest";
|
|
314
238
|
const _LRSRi = "ListRecommendationSummariesResponse";
|
|
239
|
+
const _MBT = "MetricsByTime";
|
|
240
|
+
const _MBTL = "MetricsByTimeList";
|
|
315
241
|
const _MDRI = "MemoryDbReservedInstances";
|
|
316
242
|
const _MDRIC = "MemoryDbReservedInstancesConfiguration";
|
|
317
243
|
const _MIC = "MixedInstanceConfiguration";
|
|
@@ -347,6 +273,7 @@ const _SPP = "SavingsPlansPricing";
|
|
|
347
273
|
const _T = "Tag";
|
|
348
274
|
const _TE = "ThrottlingException";
|
|
349
275
|
const _TL = "TagList";
|
|
276
|
+
const _TP = "TimePeriod";
|
|
350
277
|
const _U = "Usage";
|
|
351
278
|
const _UES = "UpdateEnrollmentStatus";
|
|
352
279
|
const _UESR = "UpdateEnrollmentStatusRequest";
|
|
@@ -396,6 +323,7 @@ const _eD = "estimatedDiscounts";
|
|
|
396
323
|
const _eI = "ec2Instance";
|
|
397
324
|
const _eISP = "ec2InstanceSavingsPlans";
|
|
398
325
|
const _eMARC = "estimatedMonthlyAmortizedReservationCost";
|
|
326
|
+
const _eMBG = "efficiencyMetricsByGroup";
|
|
399
327
|
const _eMC = "estimatedMonthlyCost";
|
|
400
328
|
const _eMCs = "estimatedMonthlyCommitment";
|
|
401
329
|
const _eMS = "estimatedMonthlySavings";
|
|
@@ -407,11 +335,13 @@ const _eSOCCLP = "estimatedSavingsOverCostCalculationLookbackPeriod";
|
|
|
407
335
|
const _eSP = "estimatedSavingsPercentage";
|
|
408
336
|
const _eTDS = "estimatedTotalDedupedSavings";
|
|
409
337
|
const _eV = "ebsVolume";
|
|
338
|
+
const _en = "end";
|
|
410
339
|
const _f = "filter";
|
|
411
340
|
const _fN = "fieldName";
|
|
412
341
|
const _fi = "fields";
|
|
413
342
|
const _g = "group";
|
|
414
343
|
const _gB = "groupBy";
|
|
344
|
+
const _gr = "granularity";
|
|
415
345
|
const _hC = "hourlyCommitment";
|
|
416
346
|
const _hE = "httpError";
|
|
417
347
|
const _i = "iops";
|
|
@@ -431,6 +361,7 @@ const _lRT = "lastRefreshTimestamp";
|
|
|
431
361
|
const _lUT = "lastUpdatedTimestamp";
|
|
432
362
|
const _m = "message";
|
|
433
363
|
const _mADV = "memberAccountDiscountVisibility";
|
|
364
|
+
const _mBT = "metricsByTime";
|
|
434
365
|
const _mDRI = "memoryDbReservedInstances";
|
|
435
366
|
const _mI = "mixedInstances";
|
|
436
367
|
const _mR = "maxResults";
|
|
@@ -488,15 +419,21 @@ const _sPD = "savingsPlansDiscount";
|
|
|
488
419
|
const _sPR = "savingsPlansRegion";
|
|
489
420
|
const _sT = "storageType";
|
|
490
421
|
const _sTt = "storageThroughput";
|
|
422
|
+
const _sa = "savings";
|
|
423
|
+
const _sc = "score";
|
|
491
424
|
const _se = "service";
|
|
492
425
|
const _ser = "server";
|
|
493
426
|
const _sm = "smithy.ts.sdk.synthetic.com.amazonaws.costoptimizationhub";
|
|
494
427
|
const _so = "source";
|
|
428
|
+
const _sp = "spend";
|
|
495
429
|
const _st = "storage";
|
|
430
|
+
const _sta = "start";
|
|
496
431
|
const _t = "throughput";
|
|
432
|
+
const _tP = "timePeriod";
|
|
497
433
|
const _ta = "tags";
|
|
498
434
|
const _te = "term";
|
|
499
435
|
const _ten = "tenancy";
|
|
436
|
+
const _ti = "timestamp";
|
|
500
437
|
const _ty = "type";
|
|
501
438
|
const _u = "usages";
|
|
502
439
|
const _uA = "usageAmount";
|
|
@@ -645,6 +582,14 @@ var EcsService = [
|
|
|
645
582
|
[() => EcsServiceConfiguration, () => ResourceCostCalculation],
|
|
646
583
|
];
|
|
647
584
|
var EcsServiceConfiguration = [3, n0, _ESC, 0, [_com], [() => ComputeConfiguration]];
|
|
585
|
+
var EfficiencyMetricsByGroup = [
|
|
586
|
+
3,
|
|
587
|
+
n0,
|
|
588
|
+
_EMBG,
|
|
589
|
+
0,
|
|
590
|
+
[_mBT, _g, _m],
|
|
591
|
+
[() => MetricsByTimeList, 0, 0],
|
|
592
|
+
];
|
|
648
593
|
var ElastiCacheReservedInstances = [
|
|
649
594
|
3,
|
|
650
595
|
n0,
|
|
@@ -758,6 +703,22 @@ var LambdaFunction = [
|
|
|
758
703
|
[() => LambdaFunctionConfiguration, () => ResourceCostCalculation],
|
|
759
704
|
];
|
|
760
705
|
var LambdaFunctionConfiguration = [3, n0, _LFC, 0, [_com], [() => ComputeConfiguration]];
|
|
706
|
+
var ListEfficiencyMetricsRequest = [
|
|
707
|
+
3,
|
|
708
|
+
n0,
|
|
709
|
+
_LEMR,
|
|
710
|
+
0,
|
|
711
|
+
[_gB, _gr, _tP, _mR, _oB, _nT],
|
|
712
|
+
[0, 0, () => TimePeriod, 1, () => OrderBy, 0],
|
|
713
|
+
];
|
|
714
|
+
var ListEfficiencyMetricsResponse = [
|
|
715
|
+
3,
|
|
716
|
+
n0,
|
|
717
|
+
_LEMRi,
|
|
718
|
+
0,
|
|
719
|
+
[_eMBG, _nT],
|
|
720
|
+
[() => EfficiencyMetricsByGroupList, 0],
|
|
721
|
+
];
|
|
761
722
|
var ListEnrollmentStatusesRequest = [
|
|
762
723
|
3,
|
|
763
724
|
n0,
|
|
@@ -822,6 +783,7 @@ var MemoryDbReservedInstancesConfiguration = [
|
|
|
822
783
|
[_aS, _se, _te, _pO, _rIR, _uC, _mRC, _nUTP, _nOITP, _iT, _iF, _sFE, _cG],
|
|
823
784
|
[0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2, 0],
|
|
824
785
|
];
|
|
786
|
+
var MetricsByTime = [3, n0, _MBT, 0, [_sc, _sa, _sp, _ti], [1, 1, 1, 0]];
|
|
825
787
|
var MixedInstanceConfiguration = [3, n0, _MIC, 0, [_ty], [0]];
|
|
826
788
|
var OpenSearchReservedInstances = [
|
|
827
789
|
3,
|
|
@@ -1013,6 +975,7 @@ var ThrottlingException = [
|
|
|
1013
975
|
[0],
|
|
1014
976
|
];
|
|
1015
977
|
schema.TypeRegistry.for(n0).registerError(ThrottlingException, ThrottlingException$1);
|
|
978
|
+
var TimePeriod = [3, n0, _TP, 0, [_sta, _en], [0, 0]];
|
|
1016
979
|
var UpdateEnrollmentStatusRequest = [3, n0, _UESR, 0, [_s, _iMA], [0, 2]];
|
|
1017
980
|
var UpdateEnrollmentStatusResponse = [3, n0, _UESRp, 0, [_s], [0]];
|
|
1018
981
|
var UpdatePreferencesRequest = [
|
|
@@ -1055,6 +1018,8 @@ var CostOptimizationHubServiceException = [
|
|
|
1055
1018
|
];
|
|
1056
1019
|
schema.TypeRegistry.for(_sm).registerError(CostOptimizationHubServiceException, CostOptimizationHubServiceException$1);
|
|
1057
1020
|
var AccountEnrollmentStatuses = [1, n0, _AESc, 0, () => AccountEnrollmentStatus];
|
|
1021
|
+
var EfficiencyMetricsByGroupList = [1, n0, _EMBGL, 0, () => EfficiencyMetricsByGroup];
|
|
1022
|
+
var MetricsByTimeList = [1, n0, _MBTL, 0, () => MetricsByTime];
|
|
1058
1023
|
var MixedInstanceConfigurationList = [1, n0, _MICL, 0, () => MixedInstanceConfiguration];
|
|
1059
1024
|
var RecommendationList = [1, n0, _RL, 0, () => Recommendation];
|
|
1060
1025
|
var RecommendationSummariesList = [1, n0, _RSL, 0, () => RecommendationSummary];
|
|
@@ -1104,6 +1069,14 @@ var GetRecommendation = [
|
|
|
1104
1069
|
() => GetRecommendationRequest,
|
|
1105
1070
|
() => GetRecommendationResponse,
|
|
1106
1071
|
];
|
|
1072
|
+
var ListEfficiencyMetrics = [
|
|
1073
|
+
9,
|
|
1074
|
+
n0,
|
|
1075
|
+
_LEM,
|
|
1076
|
+
0,
|
|
1077
|
+
() => ListEfficiencyMetricsRequest,
|
|
1078
|
+
() => ListEfficiencyMetricsResponse,
|
|
1079
|
+
];
|
|
1107
1080
|
var ListEnrollmentStatuses = [
|
|
1108
1081
|
9,
|
|
1109
1082
|
n0,
|
|
@@ -1169,6 +1142,18 @@ class GetRecommendationCommand extends smithyClient.Command
|
|
|
1169
1142
|
.build() {
|
|
1170
1143
|
}
|
|
1171
1144
|
|
|
1145
|
+
class ListEfficiencyMetricsCommand extends smithyClient.Command
|
|
1146
|
+
.classBuilder()
|
|
1147
|
+
.ep(commonParams)
|
|
1148
|
+
.m(function (Command, cs, config, o) {
|
|
1149
|
+
return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
1150
|
+
})
|
|
1151
|
+
.s("CostOptimizationHubService", "ListEfficiencyMetrics", {})
|
|
1152
|
+
.n("CostOptimizationHubClient", "ListEfficiencyMetricsCommand")
|
|
1153
|
+
.sc(ListEfficiencyMetrics)
|
|
1154
|
+
.build() {
|
|
1155
|
+
}
|
|
1156
|
+
|
|
1172
1157
|
class ListEnrollmentStatusesCommand extends smithyClient.Command
|
|
1173
1158
|
.classBuilder()
|
|
1174
1159
|
.ep(commonParams)
|
|
@@ -1232,6 +1217,7 @@ class UpdatePreferencesCommand extends smithyClient.Command
|
|
|
1232
1217
|
const commands = {
|
|
1233
1218
|
GetPreferencesCommand,
|
|
1234
1219
|
GetRecommendationCommand,
|
|
1220
|
+
ListEfficiencyMetricsCommand,
|
|
1235
1221
|
ListEnrollmentStatusesCommand,
|
|
1236
1222
|
ListRecommendationsCommand,
|
|
1237
1223
|
ListRecommendationSummariesCommand,
|
|
@@ -1242,12 +1228,100 @@ class CostOptimizationHub extends CostOptimizationHubClient {
|
|
|
1242
1228
|
}
|
|
1243
1229
|
smithyClient.createAggregatedClient(commands, CostOptimizationHub);
|
|
1244
1230
|
|
|
1231
|
+
const paginateListEfficiencyMetrics = core.createPaginator(CostOptimizationHubClient, ListEfficiencyMetricsCommand, "nextToken", "nextToken", "maxResults");
|
|
1232
|
+
|
|
1245
1233
|
const paginateListEnrollmentStatuses = core.createPaginator(CostOptimizationHubClient, ListEnrollmentStatusesCommand, "nextToken", "nextToken", "maxResults");
|
|
1246
1234
|
|
|
1247
1235
|
const paginateListRecommendationSummaries = core.createPaginator(CostOptimizationHubClient, ListRecommendationSummariesCommand, "nextToken", "nextToken", "maxResults");
|
|
1248
1236
|
|
|
1249
1237
|
const paginateListRecommendations = core.createPaginator(CostOptimizationHubClient, ListRecommendationsCommand, "nextToken", "nextToken", "maxResults");
|
|
1250
1238
|
|
|
1239
|
+
const EnrollmentStatus = {
|
|
1240
|
+
ACTIVE: "Active",
|
|
1241
|
+
INACTIVE: "Inactive",
|
|
1242
|
+
};
|
|
1243
|
+
const ActionType = {
|
|
1244
|
+
DELETE: "Delete",
|
|
1245
|
+
MIGRATE_TO_GRAVITON: "MigrateToGraviton",
|
|
1246
|
+
PURCHASE_RESERVED_INSTANCES: "PurchaseReservedInstances",
|
|
1247
|
+
PURCHASE_SAVINGS_PLANS: "PurchaseSavingsPlans",
|
|
1248
|
+
RIGHTSIZE: "Rightsize",
|
|
1249
|
+
SCALE_IN: "ScaleIn",
|
|
1250
|
+
STOP: "Stop",
|
|
1251
|
+
UPGRADE: "Upgrade",
|
|
1252
|
+
};
|
|
1253
|
+
const AllocationStrategy = {
|
|
1254
|
+
LOWEST_PRICE: "LowestPrice",
|
|
1255
|
+
PRIORITIZED: "Prioritized",
|
|
1256
|
+
};
|
|
1257
|
+
const MemberAccountDiscountVisibility = {
|
|
1258
|
+
ALL: "All",
|
|
1259
|
+
NONE: "None",
|
|
1260
|
+
};
|
|
1261
|
+
const PaymentOption = {
|
|
1262
|
+
ALL_UPFRONT: "AllUpfront",
|
|
1263
|
+
NO_UPFRONT: "NoUpfront",
|
|
1264
|
+
PARTIAL_UPFRONT: "PartialUpfront",
|
|
1265
|
+
};
|
|
1266
|
+
const Term = {
|
|
1267
|
+
ONE_YEAR: "OneYear",
|
|
1268
|
+
THREE_YEARS: "ThreeYears",
|
|
1269
|
+
};
|
|
1270
|
+
const SavingsEstimationMode = {
|
|
1271
|
+
AFTER_DISCOUNTS: "AfterDiscounts",
|
|
1272
|
+
BEFORE_DISCOUNTS: "BeforeDiscounts",
|
|
1273
|
+
};
|
|
1274
|
+
const ValidationExceptionReason = {
|
|
1275
|
+
FIELD_VALIDATION_FAILED: "FieldValidationFailed",
|
|
1276
|
+
OTHER: "Other",
|
|
1277
|
+
};
|
|
1278
|
+
const Ec2AutoScalingGroupType = {
|
|
1279
|
+
MIXED_INSTANCE_TYPES: "MixedInstanceTypes",
|
|
1280
|
+
SINGLE_INSTANCE_TYPE: "SingleInstanceType",
|
|
1281
|
+
};
|
|
1282
|
+
const ResourceType = {
|
|
1283
|
+
AURORA_DB_CLUSTER_STORAGE: "AuroraDbClusterStorage",
|
|
1284
|
+
COMPUTE_SAVINGS_PLANS: "ComputeSavingsPlans",
|
|
1285
|
+
DYNAMO_DB_RESERVED_CAPACITY: "DynamoDbReservedCapacity",
|
|
1286
|
+
EBS_VOLUME: "EbsVolume",
|
|
1287
|
+
EC2_AUTO_SCALING_GROUP: "Ec2AutoScalingGroup",
|
|
1288
|
+
EC2_INSTANCE: "Ec2Instance",
|
|
1289
|
+
EC2_INSTANCE_SAVINGS_PLANS: "Ec2InstanceSavingsPlans",
|
|
1290
|
+
EC2_RESERVED_INSTANCES: "Ec2ReservedInstances",
|
|
1291
|
+
ECS_SERVICE: "EcsService",
|
|
1292
|
+
ELASTI_CACHE_RESERVED_INSTANCES: "ElastiCacheReservedInstances",
|
|
1293
|
+
LAMBDA_FUNCTION: "LambdaFunction",
|
|
1294
|
+
MEMORY_DB_RESERVED_INSTANCES: "MemoryDbReservedInstances",
|
|
1295
|
+
OPEN_SEARCH_RESERVED_INSTANCES: "OpenSearchReservedInstances",
|
|
1296
|
+
RDS_DB_INSTANCE: "RdsDbInstance",
|
|
1297
|
+
RDS_DB_INSTANCE_STORAGE: "RdsDbInstanceStorage",
|
|
1298
|
+
RDS_RESERVED_INSTANCES: "RdsReservedInstances",
|
|
1299
|
+
REDSHIFT_RESERVED_INSTANCES: "RedshiftReservedInstances",
|
|
1300
|
+
SAGE_MAKER_SAVINGS_PLANS: "SageMakerSavingsPlans",
|
|
1301
|
+
};
|
|
1302
|
+
const ImplementationEffort = {
|
|
1303
|
+
HIGH: "High",
|
|
1304
|
+
LOW: "Low",
|
|
1305
|
+
MEDIUM: "Medium",
|
|
1306
|
+
VERY_HIGH: "VeryHigh",
|
|
1307
|
+
VERY_LOW: "VeryLow",
|
|
1308
|
+
};
|
|
1309
|
+
const Source = {
|
|
1310
|
+
COMPUTE_OPTIMIZER: "ComputeOptimizer",
|
|
1311
|
+
COST_EXPLORER: "CostExplorer",
|
|
1312
|
+
};
|
|
1313
|
+
const GranularityType = {
|
|
1314
|
+
DAILY: "Daily",
|
|
1315
|
+
MONTHLY: "Monthly",
|
|
1316
|
+
};
|
|
1317
|
+
const Order = {
|
|
1318
|
+
ASC: "Asc",
|
|
1319
|
+
DESC: "Desc",
|
|
1320
|
+
};
|
|
1321
|
+
const SummaryMetrics = {
|
|
1322
|
+
SAVINGS_PERCENTAGE: "SavingsPercentage",
|
|
1323
|
+
};
|
|
1324
|
+
|
|
1251
1325
|
Object.defineProperty(exports, "$Command", {
|
|
1252
1326
|
enumerable: true,
|
|
1253
1327
|
get: function () { return smithyClient.Command; }
|
|
@@ -1266,8 +1340,10 @@ exports.Ec2AutoScalingGroupType = Ec2AutoScalingGroupType;
|
|
|
1266
1340
|
exports.EnrollmentStatus = EnrollmentStatus;
|
|
1267
1341
|
exports.GetPreferencesCommand = GetPreferencesCommand;
|
|
1268
1342
|
exports.GetRecommendationCommand = GetRecommendationCommand;
|
|
1343
|
+
exports.GranularityType = GranularityType;
|
|
1269
1344
|
exports.ImplementationEffort = ImplementationEffort;
|
|
1270
1345
|
exports.InternalServerException = InternalServerException$1;
|
|
1346
|
+
exports.ListEfficiencyMetricsCommand = ListEfficiencyMetricsCommand;
|
|
1271
1347
|
exports.ListEnrollmentStatusesCommand = ListEnrollmentStatusesCommand;
|
|
1272
1348
|
exports.ListRecommendationSummariesCommand = ListRecommendationSummariesCommand;
|
|
1273
1349
|
exports.ListRecommendationsCommand = ListRecommendationsCommand;
|
|
@@ -1285,6 +1361,7 @@ exports.UpdateEnrollmentStatusCommand = UpdateEnrollmentStatusCommand;
|
|
|
1285
1361
|
exports.UpdatePreferencesCommand = UpdatePreferencesCommand;
|
|
1286
1362
|
exports.ValidationException = ValidationException$1;
|
|
1287
1363
|
exports.ValidationExceptionReason = ValidationExceptionReason;
|
|
1364
|
+
exports.paginateListEfficiencyMetrics = paginateListEfficiencyMetrics;
|
|
1288
1365
|
exports.paginateListEnrollmentStatuses = paginateListEnrollmentStatuses;
|
|
1289
1366
|
exports.paginateListRecommendationSummaries = paginateListRecommendationSummaries;
|
|
1290
1367
|
exports.paginateListRecommendations = paginateListRecommendations;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { createAggregatedClient } from "@smithy/smithy-client";
|
|
2
2
|
import { GetPreferencesCommand, } from "./commands/GetPreferencesCommand";
|
|
3
3
|
import { GetRecommendationCommand, } from "./commands/GetRecommendationCommand";
|
|
4
|
+
import { ListEfficiencyMetricsCommand, } from "./commands/ListEfficiencyMetricsCommand";
|
|
4
5
|
import { ListEnrollmentStatusesCommand, } from "./commands/ListEnrollmentStatusesCommand";
|
|
5
6
|
import { ListRecommendationsCommand, } from "./commands/ListRecommendationsCommand";
|
|
6
7
|
import { ListRecommendationSummariesCommand, } from "./commands/ListRecommendationSummariesCommand";
|
|
@@ -10,6 +11,7 @@ import { CostOptimizationHubClient } from "./CostOptimizationHubClient";
|
|
|
10
11
|
const commands = {
|
|
11
12
|
GetPreferencesCommand,
|
|
12
13
|
GetRecommendationCommand,
|
|
14
|
+
ListEfficiencyMetricsCommand,
|
|
13
15
|
ListEnrollmentStatusesCommand,
|
|
14
16
|
ListRecommendationsCommand,
|
|
15
17
|
ListRecommendationSummariesCommand,
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { getEndpointPlugin } from "@smithy/middleware-endpoint";
|
|
2
|
+
import { Command as $Command } from "@smithy/smithy-client";
|
|
3
|
+
import { commonParams } from "../endpoint/EndpointParameters";
|
|
4
|
+
import { ListEfficiencyMetrics } from "../schemas/schemas_0";
|
|
5
|
+
export { $Command };
|
|
6
|
+
export class ListEfficiencyMetricsCommand extends $Command
|
|
7
|
+
.classBuilder()
|
|
8
|
+
.ep(commonParams)
|
|
9
|
+
.m(function (Command, cs, config, o) {
|
|
10
|
+
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
11
|
+
})
|
|
12
|
+
.s("CostOptimizationHubService", "ListEfficiencyMetrics", {})
|
|
13
|
+
.n("CostOptimizationHubClient", "ListEfficiencyMetricsCommand")
|
|
14
|
+
.sc(ListEfficiencyMetrics)
|
|
15
|
+
.build() {
|
|
16
|
+
}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
export * from "./GetPreferencesCommand";
|
|
2
2
|
export * from "./GetRecommendationCommand";
|
|
3
|
+
export * from "./ListEfficiencyMetricsCommand";
|
|
3
4
|
export * from "./ListEnrollmentStatusesCommand";
|
|
4
5
|
export * from "./ListRecommendationSummariesCommand";
|
|
5
6
|
export * from "./ListRecommendationsCommand";
|
package/dist-es/index.js
CHANGED
|
@@ -2,5 +2,6 @@ export * from "./CostOptimizationHubClient";
|
|
|
2
2
|
export * from "./CostOptimizationHub";
|
|
3
3
|
export * from "./commands";
|
|
4
4
|
export * from "./pagination";
|
|
5
|
-
export * from "./models";
|
|
5
|
+
export * from "./models/enums";
|
|
6
|
+
export * from "./models/errors";
|
|
6
7
|
export { CostOptimizationHubServiceException } from "./models/CostOptimizationHubServiceException";
|
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
export const EnrollmentStatus = {
|
|
2
|
+
ACTIVE: "Active",
|
|
3
|
+
INACTIVE: "Inactive",
|
|
4
|
+
};
|
|
5
|
+
export const ActionType = {
|
|
6
|
+
DELETE: "Delete",
|
|
7
|
+
MIGRATE_TO_GRAVITON: "MigrateToGraviton",
|
|
8
|
+
PURCHASE_RESERVED_INSTANCES: "PurchaseReservedInstances",
|
|
9
|
+
PURCHASE_SAVINGS_PLANS: "PurchaseSavingsPlans",
|
|
10
|
+
RIGHTSIZE: "Rightsize",
|
|
11
|
+
SCALE_IN: "ScaleIn",
|
|
12
|
+
STOP: "Stop",
|
|
13
|
+
UPGRADE: "Upgrade",
|
|
14
|
+
};
|
|
15
|
+
export const AllocationStrategy = {
|
|
16
|
+
LOWEST_PRICE: "LowestPrice",
|
|
17
|
+
PRIORITIZED: "Prioritized",
|
|
18
|
+
};
|
|
19
|
+
export const MemberAccountDiscountVisibility = {
|
|
20
|
+
ALL: "All",
|
|
21
|
+
NONE: "None",
|
|
22
|
+
};
|
|
23
|
+
export const PaymentOption = {
|
|
24
|
+
ALL_UPFRONT: "AllUpfront",
|
|
25
|
+
NO_UPFRONT: "NoUpfront",
|
|
26
|
+
PARTIAL_UPFRONT: "PartialUpfront",
|
|
27
|
+
};
|
|
28
|
+
export const Term = {
|
|
29
|
+
ONE_YEAR: "OneYear",
|
|
30
|
+
THREE_YEARS: "ThreeYears",
|
|
31
|
+
};
|
|
32
|
+
export const SavingsEstimationMode = {
|
|
33
|
+
AFTER_DISCOUNTS: "AfterDiscounts",
|
|
34
|
+
BEFORE_DISCOUNTS: "BeforeDiscounts",
|
|
35
|
+
};
|
|
36
|
+
export const ValidationExceptionReason = {
|
|
37
|
+
FIELD_VALIDATION_FAILED: "FieldValidationFailed",
|
|
38
|
+
OTHER: "Other",
|
|
39
|
+
};
|
|
40
|
+
export const Ec2AutoScalingGroupType = {
|
|
41
|
+
MIXED_INSTANCE_TYPES: "MixedInstanceTypes",
|
|
42
|
+
SINGLE_INSTANCE_TYPE: "SingleInstanceType",
|
|
43
|
+
};
|
|
44
|
+
export const ResourceType = {
|
|
45
|
+
AURORA_DB_CLUSTER_STORAGE: "AuroraDbClusterStorage",
|
|
46
|
+
COMPUTE_SAVINGS_PLANS: "ComputeSavingsPlans",
|
|
47
|
+
DYNAMO_DB_RESERVED_CAPACITY: "DynamoDbReservedCapacity",
|
|
48
|
+
EBS_VOLUME: "EbsVolume",
|
|
49
|
+
EC2_AUTO_SCALING_GROUP: "Ec2AutoScalingGroup",
|
|
50
|
+
EC2_INSTANCE: "Ec2Instance",
|
|
51
|
+
EC2_INSTANCE_SAVINGS_PLANS: "Ec2InstanceSavingsPlans",
|
|
52
|
+
EC2_RESERVED_INSTANCES: "Ec2ReservedInstances",
|
|
53
|
+
ECS_SERVICE: "EcsService",
|
|
54
|
+
ELASTI_CACHE_RESERVED_INSTANCES: "ElastiCacheReservedInstances",
|
|
55
|
+
LAMBDA_FUNCTION: "LambdaFunction",
|
|
56
|
+
MEMORY_DB_RESERVED_INSTANCES: "MemoryDbReservedInstances",
|
|
57
|
+
OPEN_SEARCH_RESERVED_INSTANCES: "OpenSearchReservedInstances",
|
|
58
|
+
RDS_DB_INSTANCE: "RdsDbInstance",
|
|
59
|
+
RDS_DB_INSTANCE_STORAGE: "RdsDbInstanceStorage",
|
|
60
|
+
RDS_RESERVED_INSTANCES: "RdsReservedInstances",
|
|
61
|
+
REDSHIFT_RESERVED_INSTANCES: "RedshiftReservedInstances",
|
|
62
|
+
SAGE_MAKER_SAVINGS_PLANS: "SageMakerSavingsPlans",
|
|
63
|
+
};
|
|
64
|
+
export const ImplementationEffort = {
|
|
65
|
+
HIGH: "High",
|
|
66
|
+
LOW: "Low",
|
|
67
|
+
MEDIUM: "Medium",
|
|
68
|
+
VERY_HIGH: "VeryHigh",
|
|
69
|
+
VERY_LOW: "VeryLow",
|
|
70
|
+
};
|
|
71
|
+
export const Source = {
|
|
72
|
+
COMPUTE_OPTIMIZER: "ComputeOptimizer",
|
|
73
|
+
COST_EXPLORER: "CostExplorer",
|
|
74
|
+
};
|
|
75
|
+
export const GranularityType = {
|
|
76
|
+
DAILY: "Daily",
|
|
77
|
+
MONTHLY: "Monthly",
|
|
78
|
+
};
|
|
79
|
+
export const Order = {
|
|
80
|
+
ASC: "Asc",
|
|
81
|
+
DESC: "Desc",
|
|
82
|
+
};
|
|
83
|
+
export const SummaryMetrics = {
|
|
84
|
+
SAVINGS_PERCENTAGE: "SavingsPercentage",
|
|
85
|
+
};
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
import { CostOptimizationHubServiceException as __BaseException } from "./CostOptimizationHubServiceException";
|
|
2
|
+
export class AccessDeniedException extends __BaseException {
|
|
3
|
+
name = "AccessDeniedException";
|
|
4
|
+
$fault = "client";
|
|
5
|
+
constructor(opts) {
|
|
6
|
+
super({
|
|
7
|
+
name: "AccessDeniedException",
|
|
8
|
+
$fault: "client",
|
|
9
|
+
...opts,
|
|
10
|
+
});
|
|
11
|
+
Object.setPrototypeOf(this, AccessDeniedException.prototype);
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
export class InternalServerException extends __BaseException {
|
|
15
|
+
name = "InternalServerException";
|
|
16
|
+
$fault = "server";
|
|
17
|
+
constructor(opts) {
|
|
18
|
+
super({
|
|
19
|
+
name: "InternalServerException",
|
|
20
|
+
$fault: "server",
|
|
21
|
+
...opts,
|
|
22
|
+
});
|
|
23
|
+
Object.setPrototypeOf(this, InternalServerException.prototype);
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
export class ThrottlingException extends __BaseException {
|
|
27
|
+
name = "ThrottlingException";
|
|
28
|
+
$fault = "client";
|
|
29
|
+
constructor(opts) {
|
|
30
|
+
super({
|
|
31
|
+
name: "ThrottlingException",
|
|
32
|
+
$fault: "client",
|
|
33
|
+
...opts,
|
|
34
|
+
});
|
|
35
|
+
Object.setPrototypeOf(this, ThrottlingException.prototype);
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
export class ValidationException extends __BaseException {
|
|
39
|
+
name = "ValidationException";
|
|
40
|
+
$fault = "client";
|
|
41
|
+
reason;
|
|
42
|
+
fields;
|
|
43
|
+
constructor(opts) {
|
|
44
|
+
super({
|
|
45
|
+
name: "ValidationException",
|
|
46
|
+
$fault: "client",
|
|
47
|
+
...opts,
|
|
48
|
+
});
|
|
49
|
+
Object.setPrototypeOf(this, ValidationException.prototype);
|
|
50
|
+
this.reason = opts.reason;
|
|
51
|
+
this.fields = opts.fields;
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
export class ResourceNotFoundException extends __BaseException {
|
|
55
|
+
name = "ResourceNotFoundException";
|
|
56
|
+
$fault = "client";
|
|
57
|
+
resourceId;
|
|
58
|
+
constructor(opts) {
|
|
59
|
+
super({
|
|
60
|
+
name: "ResourceNotFoundException",
|
|
61
|
+
$fault: "client",
|
|
62
|
+
...opts,
|
|
63
|
+
});
|
|
64
|
+
Object.setPrototypeOf(this, ResourceNotFoundException.prototype);
|
|
65
|
+
this.resourceId = opts.resourceId;
|
|
66
|
+
}
|
|
67
|
+
}
|