@aws-sdk/client-bcm-pricing-calculator 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/dist-cjs/index.js +167 -146
- package/dist-es/index.js +2 -1
- package/dist-es/models/enums.js +137 -0
- package/dist-es/models/errors.js +125 -0
- package/dist-es/models/models_0.js +1 -255
- package/dist-es/schemas/schemas_0.js +29 -17
- package/dist-types/commands/CreateBillEstimateCommand.d.ts +3 -0
- package/dist-types/commands/CreateBillScenarioCommand.d.ts +4 -0
- package/dist-types/commands/GetBillEstimateCommand.d.ts +3 -0
- package/dist-types/commands/GetBillScenarioCommand.d.ts +2 -0
- package/dist-types/commands/ListBillScenariosCommand.d.ts +3 -1
- package/dist-types/commands/UpdateBillEstimateCommand.d.ts +3 -0
- package/dist-types/commands/UpdateBillScenarioCommand.d.ts +4 -0
- package/dist-types/index.d.ts +3 -1
- package/dist-types/models/enums.d.ts +329 -0
- package/dist-types/models/errors.d.ts +170 -0
- package/dist-types/models/models_0.d.ts +106 -482
- package/dist-types/ts3.4/index.d.ts +3 -1
- package/dist-types/ts3.4/models/enums.d.ts +182 -0
- package/dist-types/ts3.4/models/errors.d.ts +72 -0
- package/dist-types/ts3.4/models/models_0.d.ts +46 -243
- 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/dist-cjs/index.js
CHANGED
|
@@ -153,13 +153,6 @@ let InternalServerException$1 = class InternalServerException extends BCMPricing
|
|
|
153
153
|
this.retryAfterSeconds = opts.retryAfterSeconds;
|
|
154
154
|
}
|
|
155
155
|
};
|
|
156
|
-
const CurrencyCode = {
|
|
157
|
-
USD: "USD",
|
|
158
|
-
};
|
|
159
|
-
const PurchaseAgreementType = {
|
|
160
|
-
RESERVED_INSTANCE: "RESERVED_INSTANCE",
|
|
161
|
-
SAVINGS_PLANS: "SAVINGS_PLANS",
|
|
162
|
-
};
|
|
163
156
|
let ResourceNotFoundException$1 = class ResourceNotFoundException extends BCMPricingCalculatorServiceException$1 {
|
|
164
157
|
name = "ResourceNotFoundException";
|
|
165
158
|
$fault = "client";
|
|
@@ -194,14 +187,6 @@ let ThrottlingException$1 = class ThrottlingException extends BCMPricingCalculat
|
|
|
194
187
|
this.retryAfterSeconds = opts.retryAfterSeconds;
|
|
195
188
|
}
|
|
196
189
|
};
|
|
197
|
-
const ValidationExceptionReason = {
|
|
198
|
-
CANNOT_PARSE: "cannotParse",
|
|
199
|
-
DISALLOWED_RATE: "disallowedRate",
|
|
200
|
-
FIELD_VALIDATION_FAILED: "fieldValidationFailed",
|
|
201
|
-
INVALID_REQUEST_FROM_MEMBER: "invalidRequestFromMember",
|
|
202
|
-
OTHER: "other",
|
|
203
|
-
UNKNOWN_OPERATION: "unknownOperation",
|
|
204
|
-
};
|
|
205
190
|
let ValidationException$1 = class ValidationException extends BCMPricingCalculatorServiceException$1 {
|
|
206
191
|
name = "ValidationException";
|
|
207
192
|
$fault = "client";
|
|
@@ -218,37 +203,6 @@ let ValidationException$1 = class ValidationException extends BCMPricingCalculat
|
|
|
218
203
|
this.fieldList = opts.fieldList;
|
|
219
204
|
}
|
|
220
205
|
};
|
|
221
|
-
const MatchOption = {
|
|
222
|
-
CONTAINS: "CONTAINS",
|
|
223
|
-
EQUALS: "EQUALS",
|
|
224
|
-
STARTS_WITH: "STARTS_WITH",
|
|
225
|
-
};
|
|
226
|
-
const ListUsageFilterName = {
|
|
227
|
-
HISTORICAL_LOCATION: "HISTORICAL_LOCATION",
|
|
228
|
-
HISTORICAL_OPERATION: "HISTORICAL_OPERATION",
|
|
229
|
-
HISTORICAL_SERVICE_CODE: "HISTORICAL_SERVICE_CODE",
|
|
230
|
-
HISTORICAL_USAGE_ACCOUNT_ID: "HISTORICAL_USAGE_ACCOUNT_ID",
|
|
231
|
-
HISTORICAL_USAGE_TYPE: "HISTORICAL_USAGE_TYPE",
|
|
232
|
-
LOCATION: "LOCATION",
|
|
233
|
-
OPERATION: "OPERATION",
|
|
234
|
-
SERVICE_CODE: "SERVICE_CODE",
|
|
235
|
-
USAGE_ACCOUNT_ID: "USAGE_ACCOUNT_ID",
|
|
236
|
-
USAGE_GROUP: "USAGE_GROUP",
|
|
237
|
-
USAGE_TYPE: "USAGE_TYPE",
|
|
238
|
-
};
|
|
239
|
-
const ListBillEstimateLineItemsFilterName = {
|
|
240
|
-
LINE_ITEM_TYPE: "LINE_ITEM_TYPE",
|
|
241
|
-
LOCATION: "LOCATION",
|
|
242
|
-
OPERATION: "OPERATION",
|
|
243
|
-
SERVICE_CODE: "SERVICE_CODE",
|
|
244
|
-
USAGE_ACCOUNT_ID: "USAGE_ACCOUNT_ID",
|
|
245
|
-
USAGE_TYPE: "USAGE_TYPE",
|
|
246
|
-
};
|
|
247
|
-
const BillEstimateStatus = {
|
|
248
|
-
COMPLETE: "COMPLETE",
|
|
249
|
-
FAILED: "FAILED",
|
|
250
|
-
IN_PROGRESS: "IN_PROGRESS",
|
|
251
|
-
};
|
|
252
206
|
let ConflictException$1 = class ConflictException extends BCMPricingCalculatorServiceException$1 {
|
|
253
207
|
name = "ConflictException";
|
|
254
208
|
$fault = "client";
|
|
@@ -265,38 +219,6 @@ let ConflictException$1 = class ConflictException extends BCMPricingCalculatorSe
|
|
|
265
219
|
this.resourceType = opts.resourceType;
|
|
266
220
|
}
|
|
267
221
|
};
|
|
268
|
-
const ListBillEstimatesFilterName = {
|
|
269
|
-
NAME: "NAME",
|
|
270
|
-
STATUS: "STATUS",
|
|
271
|
-
};
|
|
272
|
-
const BatchCreateBillScenarioCommitmentModificationErrorCode = {
|
|
273
|
-
CONFLICT: "CONFLICT",
|
|
274
|
-
INTERNAL_SERVER_ERROR: "INTERNAL_SERVER_ERROR",
|
|
275
|
-
INVALID_ACCOUNT: "INVALID_ACCOUNT",
|
|
276
|
-
};
|
|
277
|
-
const BatchDeleteBillScenarioCommitmentModificationErrorCode = {
|
|
278
|
-
BAD_REQUEST: "BAD_REQUEST",
|
|
279
|
-
CONFLICT: "CONFLICT",
|
|
280
|
-
INTERNAL_SERVER_ERROR: "INTERNAL_SERVER_ERROR",
|
|
281
|
-
};
|
|
282
|
-
const BatchUpdateBillScenarioCommitmentModificationErrorCode = {
|
|
283
|
-
BAD_REQUEST: "BAD_REQUEST",
|
|
284
|
-
CONFLICT: "CONFLICT",
|
|
285
|
-
INTERNAL_SERVER_ERROR: "INTERNAL_SERVER_ERROR",
|
|
286
|
-
NOT_FOUND: "NOT_FOUND",
|
|
287
|
-
};
|
|
288
|
-
const BillScenarioStatus = {
|
|
289
|
-
FAILED: "FAILED",
|
|
290
|
-
LOCKED: "LOCKED",
|
|
291
|
-
READY: "READY",
|
|
292
|
-
STALE: "STALE",
|
|
293
|
-
};
|
|
294
|
-
const BatchCreateBillScenarioUsageModificationErrorCode = {
|
|
295
|
-
BAD_REQUEST: "BAD_REQUEST",
|
|
296
|
-
CONFLICT: "CONFLICT",
|
|
297
|
-
INTERNAL_SERVER_ERROR: "INTERNAL_SERVER_ERROR",
|
|
298
|
-
NOT_FOUND: "NOT_FOUND",
|
|
299
|
-
};
|
|
300
222
|
let ServiceQuotaExceededException$1 = class ServiceQuotaExceededException extends BCMPricingCalculatorServiceException$1 {
|
|
301
223
|
name = "ServiceQuotaExceededException";
|
|
302
224
|
$fault = "client";
|
|
@@ -317,58 +239,6 @@ let ServiceQuotaExceededException$1 = class ServiceQuotaExceededException extend
|
|
|
317
239
|
this.quotaCode = opts.quotaCode;
|
|
318
240
|
}
|
|
319
241
|
};
|
|
320
|
-
const BatchDeleteBillScenarioUsageModificationErrorCode = {
|
|
321
|
-
BAD_REQUEST: "BAD_REQUEST",
|
|
322
|
-
CONFLICT: "CONFLICT",
|
|
323
|
-
INTERNAL_SERVER_ERROR: "INTERNAL_SERVER_ERROR",
|
|
324
|
-
};
|
|
325
|
-
const BatchUpdateBillScenarioUsageModificationErrorCode = {
|
|
326
|
-
BAD_REQUEST: "BAD_REQUEST",
|
|
327
|
-
CONFLICT: "CONFLICT",
|
|
328
|
-
INTERNAL_SERVER_ERROR: "INTERNAL_SERVER_ERROR",
|
|
329
|
-
NOT_FOUND: "NOT_FOUND",
|
|
330
|
-
};
|
|
331
|
-
const ListBillScenariosFilterName = {
|
|
332
|
-
NAME: "NAME",
|
|
333
|
-
STATUS: "STATUS",
|
|
334
|
-
};
|
|
335
|
-
const RateType = {
|
|
336
|
-
AFTER_DISCOUNTS: "AFTER_DISCOUNTS",
|
|
337
|
-
AFTER_DISCOUNTS_AND_COMMITMENTS: "AFTER_DISCOUNTS_AND_COMMITMENTS",
|
|
338
|
-
BEFORE_DISCOUNTS: "BEFORE_DISCOUNTS",
|
|
339
|
-
};
|
|
340
|
-
const WorkloadEstimateRateType = {
|
|
341
|
-
AFTER_DISCOUNTS: "AFTER_DISCOUNTS",
|
|
342
|
-
AFTER_DISCOUNTS_AND_COMMITMENTS: "AFTER_DISCOUNTS_AND_COMMITMENTS",
|
|
343
|
-
BEFORE_DISCOUNTS: "BEFORE_DISCOUNTS",
|
|
344
|
-
};
|
|
345
|
-
const WorkloadEstimateStatus = {
|
|
346
|
-
ACTION_NEEDED: "ACTION_NEEDED",
|
|
347
|
-
INVALID: "INVALID",
|
|
348
|
-
UPDATING: "UPDATING",
|
|
349
|
-
VALID: "VALID",
|
|
350
|
-
};
|
|
351
|
-
const ListWorkloadEstimatesFilterName = {
|
|
352
|
-
NAME: "NAME",
|
|
353
|
-
STATUS: "STATUS",
|
|
354
|
-
};
|
|
355
|
-
const BatchCreateWorkloadEstimateUsageCode = {
|
|
356
|
-
BAD_REQUEST: "BAD_REQUEST",
|
|
357
|
-
CONFLICT: "CONFLICT",
|
|
358
|
-
INTERNAL_SERVER_ERROR: "INTERNAL_SERVER_ERROR",
|
|
359
|
-
NOT_FOUND: "NOT_FOUND",
|
|
360
|
-
};
|
|
361
|
-
const WorkloadEstimateCostStatus = {
|
|
362
|
-
INVALID: "INVALID",
|
|
363
|
-
STALE: "STALE",
|
|
364
|
-
VALID: "VALID",
|
|
365
|
-
};
|
|
366
|
-
const WorkloadEstimateUpdateUsageErrorCode = {
|
|
367
|
-
BAD_REQUEST: "BAD_REQUEST",
|
|
368
|
-
CONFLICT: "CONFLICT",
|
|
369
|
-
INTERNAL_SERVER_ERROR: "INTERNAL_SERVER_ERROR",
|
|
370
|
-
NOT_FOUND: "NOT_FOUND",
|
|
371
|
-
};
|
|
372
242
|
|
|
373
243
|
const _ADE = "AccessDeniedException";
|
|
374
244
|
const _ARIA = "AddReservedInstanceAction";
|
|
@@ -595,6 +465,8 @@ const _cA = "commitmentAction";
|
|
|
595
465
|
const _cAF = "createdAtFilter";
|
|
596
466
|
const _cAr = "createdAt";
|
|
597
467
|
const _cC = "costCurrency";
|
|
468
|
+
const _cCGSPA = "costCategoryGroupSharingPreferenceArn";
|
|
469
|
+
const _cCGSPED = "costCategoryGroupSharingPreferenceEffectiveDate";
|
|
598
470
|
const _cCo = "costCategories";
|
|
599
471
|
const _cM = "commitmentModifications";
|
|
600
472
|
const _cS = "costSummary";
|
|
@@ -617,6 +489,7 @@ const _fE = "filterExpression";
|
|
|
617
489
|
const _fL = "fieldList";
|
|
618
490
|
const _fM = "failureMessage";
|
|
619
491
|
const _g = "group";
|
|
492
|
+
const _gSP = "groupSharingPreference";
|
|
620
493
|
const _hC = "historicalCost";
|
|
621
494
|
const _hE = "httpError";
|
|
622
495
|
const _hH = "httpHeader";
|
|
@@ -1091,8 +964,8 @@ var BillScenarioSummary = [
|
|
|
1091
964
|
n0,
|
|
1092
965
|
_BSS,
|
|
1093
966
|
0,
|
|
1094
|
-
[_i, _n, _bI, _s, _cAr, _eA, _fM],
|
|
1095
|
-
[0, 0, () => BillInterval, 0, 4, 4, 0],
|
|
967
|
+
[_i, _n, _bI, _s, _cAr, _eA, _fM, _gSP, _cCGSPA],
|
|
968
|
+
[0, 0, () => BillInterval, 0, 4, 4, 0, 0, 0],
|
|
1096
969
|
];
|
|
1097
970
|
var BillScenarioUsageModificationItem = [
|
|
1098
971
|
3,
|
|
@@ -1141,15 +1014,15 @@ var CreateBillEstimateResponse = [
|
|
|
1141
1014
|
n0,
|
|
1142
1015
|
_CBERr,
|
|
1143
1016
|
0,
|
|
1144
|
-
[_i, _n, _s, _fM, _bI, _cS, _cAr, _eA],
|
|
1145
|
-
[0, 0, 0, 0, () => BillInterval, () => BillEstimateCostSummary, 4, 4],
|
|
1017
|
+
[_i, _n, _s, _fM, _bI, _cS, _cAr, _eA, _gSP, _cCGSPA, _cCGSPED],
|
|
1018
|
+
[0, 0, 0, 0, () => BillInterval, () => BillEstimateCostSummary, 4, 4, 0, 0, 4],
|
|
1146
1019
|
];
|
|
1147
1020
|
var CreateBillScenarioRequest = [
|
|
1148
1021
|
3,
|
|
1149
1022
|
n0,
|
|
1150
1023
|
_CBSR,
|
|
1151
1024
|
0,
|
|
1152
|
-
[_n, _cT, _t],
|
|
1025
|
+
[_n, _cT, _t, _gSP, _cCGSPA],
|
|
1153
1026
|
[
|
|
1154
1027
|
0,
|
|
1155
1028
|
[
|
|
@@ -1160,6 +1033,8 @@ var CreateBillScenarioRequest = [
|
|
|
1160
1033
|
},
|
|
1161
1034
|
],
|
|
1162
1035
|
128 | 0,
|
|
1036
|
+
0,
|
|
1037
|
+
0,
|
|
1163
1038
|
],
|
|
1164
1039
|
];
|
|
1165
1040
|
var CreateBillScenarioResponse = [
|
|
@@ -1167,8 +1042,8 @@ var CreateBillScenarioResponse = [
|
|
|
1167
1042
|
n0,
|
|
1168
1043
|
_CBSRr,
|
|
1169
1044
|
0,
|
|
1170
|
-
[_i, _n, _bI, _s, _cAr, _eA, _fM],
|
|
1171
|
-
[0, 0, () => BillInterval, 0, 4, 4, 0],
|
|
1045
|
+
[_i, _n, _bI, _s, _cAr, _eA, _fM, _gSP, _cCGSPA],
|
|
1046
|
+
[0, 0, () => BillInterval, 0, 4, 4, 0, 0, 0],
|
|
1172
1047
|
];
|
|
1173
1048
|
var CreateWorkloadEstimateRequest = [
|
|
1174
1049
|
3,
|
|
@@ -1238,8 +1113,8 @@ var GetBillEstimateResponse = [
|
|
|
1238
1113
|
n0,
|
|
1239
1114
|
_GBERe,
|
|
1240
1115
|
0,
|
|
1241
|
-
[_i, _n, _s, _fM, _bI, _cS, _cAr, _eA],
|
|
1242
|
-
[0, 0, 0, 0, () => BillInterval, () => BillEstimateCostSummary, 4, 4],
|
|
1116
|
+
[_i, _n, _s, _fM, _bI, _cS, _cAr, _eA, _gSP, _cCGSPA, _cCGSPED],
|
|
1117
|
+
[0, 0, 0, 0, () => BillInterval, () => BillEstimateCostSummary, 4, 4, 0, 0, 4],
|
|
1243
1118
|
];
|
|
1244
1119
|
var GetBillScenarioRequest = [3, n0, _GBSR, 0, [_ide], [0]];
|
|
1245
1120
|
var GetBillScenarioResponse = [
|
|
@@ -1247,8 +1122,8 @@ var GetBillScenarioResponse = [
|
|
|
1247
1122
|
n0,
|
|
1248
1123
|
_GBSRe,
|
|
1249
1124
|
0,
|
|
1250
|
-
[_i, _n, _bI, _s, _cAr, _eA, _fM],
|
|
1251
|
-
[0, 0, () => BillInterval, 0, 4, 4, 0],
|
|
1125
|
+
[_i, _n, _bI, _s, _cAr, _eA, _fM, _gSP, _cCGSPA],
|
|
1126
|
+
[0, 0, () => BillInterval, 0, 4, 4, 0, 0, 0],
|
|
1252
1127
|
];
|
|
1253
1128
|
var GetPreferencesRequest = [3, n0, _GPR, 0, [], []];
|
|
1254
1129
|
var GetPreferencesResponse = [
|
|
@@ -1517,17 +1392,24 @@ var UpdateBillEstimateResponse = [
|
|
|
1517
1392
|
n0,
|
|
1518
1393
|
_UBERp,
|
|
1519
1394
|
0,
|
|
1520
|
-
[_i, _n, _s, _fM, _bI, _cS, _cAr, _eA],
|
|
1521
|
-
[0, 0, 0, 0, () => BillInterval, () => BillEstimateCostSummary, 4, 4],
|
|
1395
|
+
[_i, _n, _s, _fM, _bI, _cS, _cAr, _eA, _gSP, _cCGSPA, _cCGSPED],
|
|
1396
|
+
[0, 0, 0, 0, () => BillInterval, () => BillEstimateCostSummary, 4, 4, 0, 0, 4],
|
|
1397
|
+
];
|
|
1398
|
+
var UpdateBillScenarioRequest = [
|
|
1399
|
+
3,
|
|
1400
|
+
n0,
|
|
1401
|
+
_UBSR,
|
|
1402
|
+
0,
|
|
1403
|
+
[_ide, _n, _eA, _gSP, _cCGSPA],
|
|
1404
|
+
[0, 0, 4, 0, 0],
|
|
1522
1405
|
];
|
|
1523
|
-
var UpdateBillScenarioRequest = [3, n0, _UBSR, 0, [_ide, _n, _eA], [0, 0, 4]];
|
|
1524
1406
|
var UpdateBillScenarioResponse = [
|
|
1525
1407
|
3,
|
|
1526
1408
|
n0,
|
|
1527
1409
|
_UBSRp,
|
|
1528
1410
|
0,
|
|
1529
|
-
[_i, _n, _bI, _s, _cAr, _eA, _fM],
|
|
1530
|
-
[0, 0, () => BillInterval, 0, 4, 4, 0],
|
|
1411
|
+
[_i, _n, _bI, _s, _cAr, _eA, _fM, _gSP, _cCGSPA],
|
|
1412
|
+
[0, 0, () => BillInterval, 0, 4, 4, 0, 0, 0],
|
|
1531
1413
|
];
|
|
1532
1414
|
var UpdatePreferencesRequest = [
|
|
1533
1415
|
3,
|
|
@@ -2561,6 +2443,144 @@ const paginateListWorkloadEstimateUsage = core.createPaginator(BCMPricingCalcula
|
|
|
2561
2443
|
|
|
2562
2444
|
const paginateListWorkloadEstimates = core.createPaginator(BCMPricingCalculatorClient, ListWorkloadEstimatesCommand, "nextToken", "nextToken", "maxResults");
|
|
2563
2445
|
|
|
2446
|
+
const CurrencyCode = {
|
|
2447
|
+
USD: "USD",
|
|
2448
|
+
};
|
|
2449
|
+
const PurchaseAgreementType = {
|
|
2450
|
+
RESERVED_INSTANCE: "RESERVED_INSTANCE",
|
|
2451
|
+
SAVINGS_PLANS: "SAVINGS_PLANS",
|
|
2452
|
+
};
|
|
2453
|
+
const ValidationExceptionReason = {
|
|
2454
|
+
CANNOT_PARSE: "cannotParse",
|
|
2455
|
+
DISALLOWED_RATE: "disallowedRate",
|
|
2456
|
+
FIELD_VALIDATION_FAILED: "fieldValidationFailed",
|
|
2457
|
+
INVALID_REQUEST_FROM_MEMBER: "invalidRequestFromMember",
|
|
2458
|
+
OTHER: "other",
|
|
2459
|
+
UNKNOWN_OPERATION: "unknownOperation",
|
|
2460
|
+
};
|
|
2461
|
+
const MatchOption = {
|
|
2462
|
+
CONTAINS: "CONTAINS",
|
|
2463
|
+
EQUALS: "EQUALS",
|
|
2464
|
+
STARTS_WITH: "STARTS_WITH",
|
|
2465
|
+
};
|
|
2466
|
+
const ListUsageFilterName = {
|
|
2467
|
+
HISTORICAL_LOCATION: "HISTORICAL_LOCATION",
|
|
2468
|
+
HISTORICAL_OPERATION: "HISTORICAL_OPERATION",
|
|
2469
|
+
HISTORICAL_SERVICE_CODE: "HISTORICAL_SERVICE_CODE",
|
|
2470
|
+
HISTORICAL_USAGE_ACCOUNT_ID: "HISTORICAL_USAGE_ACCOUNT_ID",
|
|
2471
|
+
HISTORICAL_USAGE_TYPE: "HISTORICAL_USAGE_TYPE",
|
|
2472
|
+
LOCATION: "LOCATION",
|
|
2473
|
+
OPERATION: "OPERATION",
|
|
2474
|
+
SERVICE_CODE: "SERVICE_CODE",
|
|
2475
|
+
USAGE_ACCOUNT_ID: "USAGE_ACCOUNT_ID",
|
|
2476
|
+
USAGE_GROUP: "USAGE_GROUP",
|
|
2477
|
+
USAGE_TYPE: "USAGE_TYPE",
|
|
2478
|
+
};
|
|
2479
|
+
const ListBillEstimateLineItemsFilterName = {
|
|
2480
|
+
LINE_ITEM_TYPE: "LINE_ITEM_TYPE",
|
|
2481
|
+
LOCATION: "LOCATION",
|
|
2482
|
+
OPERATION: "OPERATION",
|
|
2483
|
+
SERVICE_CODE: "SERVICE_CODE",
|
|
2484
|
+
USAGE_ACCOUNT_ID: "USAGE_ACCOUNT_ID",
|
|
2485
|
+
USAGE_TYPE: "USAGE_TYPE",
|
|
2486
|
+
};
|
|
2487
|
+
const BillEstimateStatus = {
|
|
2488
|
+
COMPLETE: "COMPLETE",
|
|
2489
|
+
FAILED: "FAILED",
|
|
2490
|
+
IN_PROGRESS: "IN_PROGRESS",
|
|
2491
|
+
};
|
|
2492
|
+
const GroupSharingPreferenceEnum = {
|
|
2493
|
+
OPEN: "OPEN",
|
|
2494
|
+
PRIORITIZED: "PRIORITIZED",
|
|
2495
|
+
RESTRICTED: "RESTRICTED",
|
|
2496
|
+
};
|
|
2497
|
+
const ListBillEstimatesFilterName = {
|
|
2498
|
+
NAME: "NAME",
|
|
2499
|
+
STATUS: "STATUS",
|
|
2500
|
+
};
|
|
2501
|
+
const BatchCreateBillScenarioCommitmentModificationErrorCode = {
|
|
2502
|
+
CONFLICT: "CONFLICT",
|
|
2503
|
+
INTERNAL_SERVER_ERROR: "INTERNAL_SERVER_ERROR",
|
|
2504
|
+
INVALID_ACCOUNT: "INVALID_ACCOUNT",
|
|
2505
|
+
};
|
|
2506
|
+
const BatchDeleteBillScenarioCommitmentModificationErrorCode = {
|
|
2507
|
+
BAD_REQUEST: "BAD_REQUEST",
|
|
2508
|
+
CONFLICT: "CONFLICT",
|
|
2509
|
+
INTERNAL_SERVER_ERROR: "INTERNAL_SERVER_ERROR",
|
|
2510
|
+
};
|
|
2511
|
+
const BatchUpdateBillScenarioCommitmentModificationErrorCode = {
|
|
2512
|
+
BAD_REQUEST: "BAD_REQUEST",
|
|
2513
|
+
CONFLICT: "CONFLICT",
|
|
2514
|
+
INTERNAL_SERVER_ERROR: "INTERNAL_SERVER_ERROR",
|
|
2515
|
+
NOT_FOUND: "NOT_FOUND",
|
|
2516
|
+
};
|
|
2517
|
+
const BillScenarioStatus = {
|
|
2518
|
+
FAILED: "FAILED",
|
|
2519
|
+
LOCKED: "LOCKED",
|
|
2520
|
+
READY: "READY",
|
|
2521
|
+
STALE: "STALE",
|
|
2522
|
+
};
|
|
2523
|
+
const BatchCreateBillScenarioUsageModificationErrorCode = {
|
|
2524
|
+
BAD_REQUEST: "BAD_REQUEST",
|
|
2525
|
+
CONFLICT: "CONFLICT",
|
|
2526
|
+
INTERNAL_SERVER_ERROR: "INTERNAL_SERVER_ERROR",
|
|
2527
|
+
NOT_FOUND: "NOT_FOUND",
|
|
2528
|
+
};
|
|
2529
|
+
const BatchDeleteBillScenarioUsageModificationErrorCode = {
|
|
2530
|
+
BAD_REQUEST: "BAD_REQUEST",
|
|
2531
|
+
CONFLICT: "CONFLICT",
|
|
2532
|
+
INTERNAL_SERVER_ERROR: "INTERNAL_SERVER_ERROR",
|
|
2533
|
+
};
|
|
2534
|
+
const BatchUpdateBillScenarioUsageModificationErrorCode = {
|
|
2535
|
+
BAD_REQUEST: "BAD_REQUEST",
|
|
2536
|
+
CONFLICT: "CONFLICT",
|
|
2537
|
+
INTERNAL_SERVER_ERROR: "INTERNAL_SERVER_ERROR",
|
|
2538
|
+
NOT_FOUND: "NOT_FOUND",
|
|
2539
|
+
};
|
|
2540
|
+
const ListBillScenariosFilterName = {
|
|
2541
|
+
COST_CATEGORY_ARN: "COST_CATEGORY_ARN",
|
|
2542
|
+
GROUP_SHARING_PREFERENCE: "GROUP_SHARING_PREFERENCE",
|
|
2543
|
+
NAME: "NAME",
|
|
2544
|
+
STATUS: "STATUS",
|
|
2545
|
+
};
|
|
2546
|
+
const RateType = {
|
|
2547
|
+
AFTER_DISCOUNTS: "AFTER_DISCOUNTS",
|
|
2548
|
+
AFTER_DISCOUNTS_AND_COMMITMENTS: "AFTER_DISCOUNTS_AND_COMMITMENTS",
|
|
2549
|
+
BEFORE_DISCOUNTS: "BEFORE_DISCOUNTS",
|
|
2550
|
+
};
|
|
2551
|
+
const WorkloadEstimateRateType = {
|
|
2552
|
+
AFTER_DISCOUNTS: "AFTER_DISCOUNTS",
|
|
2553
|
+
AFTER_DISCOUNTS_AND_COMMITMENTS: "AFTER_DISCOUNTS_AND_COMMITMENTS",
|
|
2554
|
+
BEFORE_DISCOUNTS: "BEFORE_DISCOUNTS",
|
|
2555
|
+
};
|
|
2556
|
+
const WorkloadEstimateStatus = {
|
|
2557
|
+
ACTION_NEEDED: "ACTION_NEEDED",
|
|
2558
|
+
INVALID: "INVALID",
|
|
2559
|
+
UPDATING: "UPDATING",
|
|
2560
|
+
VALID: "VALID",
|
|
2561
|
+
};
|
|
2562
|
+
const ListWorkloadEstimatesFilterName = {
|
|
2563
|
+
NAME: "NAME",
|
|
2564
|
+
STATUS: "STATUS",
|
|
2565
|
+
};
|
|
2566
|
+
const BatchCreateWorkloadEstimateUsageCode = {
|
|
2567
|
+
BAD_REQUEST: "BAD_REQUEST",
|
|
2568
|
+
CONFLICT: "CONFLICT",
|
|
2569
|
+
INTERNAL_SERVER_ERROR: "INTERNAL_SERVER_ERROR",
|
|
2570
|
+
NOT_FOUND: "NOT_FOUND",
|
|
2571
|
+
};
|
|
2572
|
+
const WorkloadEstimateCostStatus = {
|
|
2573
|
+
INVALID: "INVALID",
|
|
2574
|
+
STALE: "STALE",
|
|
2575
|
+
VALID: "VALID",
|
|
2576
|
+
};
|
|
2577
|
+
const WorkloadEstimateUpdateUsageErrorCode = {
|
|
2578
|
+
BAD_REQUEST: "BAD_REQUEST",
|
|
2579
|
+
CONFLICT: "CONFLICT",
|
|
2580
|
+
INTERNAL_SERVER_ERROR: "INTERNAL_SERVER_ERROR",
|
|
2581
|
+
NOT_FOUND: "NOT_FOUND",
|
|
2582
|
+
};
|
|
2583
|
+
|
|
2564
2584
|
Object.defineProperty(exports, "$Command", {
|
|
2565
2585
|
enumerable: true,
|
|
2566
2586
|
get: function () { return smithyClient.Command; }
|
|
@@ -2604,6 +2624,7 @@ exports.GetBillEstimateCommand = GetBillEstimateCommand;
|
|
|
2604
2624
|
exports.GetBillScenarioCommand = GetBillScenarioCommand;
|
|
2605
2625
|
exports.GetPreferencesCommand = GetPreferencesCommand;
|
|
2606
2626
|
exports.GetWorkloadEstimateCommand = GetWorkloadEstimateCommand;
|
|
2627
|
+
exports.GroupSharingPreferenceEnum = GroupSharingPreferenceEnum;
|
|
2607
2628
|
exports.InternalServerException = InternalServerException$1;
|
|
2608
2629
|
exports.ListBillEstimateCommitmentsCommand = ListBillEstimateCommitmentsCommand;
|
|
2609
2630
|
exports.ListBillEstimateInputCommitmentModificationsCommand = ListBillEstimateInputCommitmentModificationsCommand;
|
package/dist-es/index.js
CHANGED
|
@@ -2,5 +2,6 @@ export * from "./BCMPricingCalculatorClient";
|
|
|
2
2
|
export * from "./BCMPricingCalculator";
|
|
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 { BCMPricingCalculatorServiceException } from "./models/BCMPricingCalculatorServiceException";
|
|
@@ -0,0 +1,137 @@
|
|
|
1
|
+
export const CurrencyCode = {
|
|
2
|
+
USD: "USD",
|
|
3
|
+
};
|
|
4
|
+
export const PurchaseAgreementType = {
|
|
5
|
+
RESERVED_INSTANCE: "RESERVED_INSTANCE",
|
|
6
|
+
SAVINGS_PLANS: "SAVINGS_PLANS",
|
|
7
|
+
};
|
|
8
|
+
export const ValidationExceptionReason = {
|
|
9
|
+
CANNOT_PARSE: "cannotParse",
|
|
10
|
+
DISALLOWED_RATE: "disallowedRate",
|
|
11
|
+
FIELD_VALIDATION_FAILED: "fieldValidationFailed",
|
|
12
|
+
INVALID_REQUEST_FROM_MEMBER: "invalidRequestFromMember",
|
|
13
|
+
OTHER: "other",
|
|
14
|
+
UNKNOWN_OPERATION: "unknownOperation",
|
|
15
|
+
};
|
|
16
|
+
export const MatchOption = {
|
|
17
|
+
CONTAINS: "CONTAINS",
|
|
18
|
+
EQUALS: "EQUALS",
|
|
19
|
+
STARTS_WITH: "STARTS_WITH",
|
|
20
|
+
};
|
|
21
|
+
export const ListUsageFilterName = {
|
|
22
|
+
HISTORICAL_LOCATION: "HISTORICAL_LOCATION",
|
|
23
|
+
HISTORICAL_OPERATION: "HISTORICAL_OPERATION",
|
|
24
|
+
HISTORICAL_SERVICE_CODE: "HISTORICAL_SERVICE_CODE",
|
|
25
|
+
HISTORICAL_USAGE_ACCOUNT_ID: "HISTORICAL_USAGE_ACCOUNT_ID",
|
|
26
|
+
HISTORICAL_USAGE_TYPE: "HISTORICAL_USAGE_TYPE",
|
|
27
|
+
LOCATION: "LOCATION",
|
|
28
|
+
OPERATION: "OPERATION",
|
|
29
|
+
SERVICE_CODE: "SERVICE_CODE",
|
|
30
|
+
USAGE_ACCOUNT_ID: "USAGE_ACCOUNT_ID",
|
|
31
|
+
USAGE_GROUP: "USAGE_GROUP",
|
|
32
|
+
USAGE_TYPE: "USAGE_TYPE",
|
|
33
|
+
};
|
|
34
|
+
export const ListBillEstimateLineItemsFilterName = {
|
|
35
|
+
LINE_ITEM_TYPE: "LINE_ITEM_TYPE",
|
|
36
|
+
LOCATION: "LOCATION",
|
|
37
|
+
OPERATION: "OPERATION",
|
|
38
|
+
SERVICE_CODE: "SERVICE_CODE",
|
|
39
|
+
USAGE_ACCOUNT_ID: "USAGE_ACCOUNT_ID",
|
|
40
|
+
USAGE_TYPE: "USAGE_TYPE",
|
|
41
|
+
};
|
|
42
|
+
export const BillEstimateStatus = {
|
|
43
|
+
COMPLETE: "COMPLETE",
|
|
44
|
+
FAILED: "FAILED",
|
|
45
|
+
IN_PROGRESS: "IN_PROGRESS",
|
|
46
|
+
};
|
|
47
|
+
export const GroupSharingPreferenceEnum = {
|
|
48
|
+
OPEN: "OPEN",
|
|
49
|
+
PRIORITIZED: "PRIORITIZED",
|
|
50
|
+
RESTRICTED: "RESTRICTED",
|
|
51
|
+
};
|
|
52
|
+
export const ListBillEstimatesFilterName = {
|
|
53
|
+
NAME: "NAME",
|
|
54
|
+
STATUS: "STATUS",
|
|
55
|
+
};
|
|
56
|
+
export const BatchCreateBillScenarioCommitmentModificationErrorCode = {
|
|
57
|
+
CONFLICT: "CONFLICT",
|
|
58
|
+
INTERNAL_SERVER_ERROR: "INTERNAL_SERVER_ERROR",
|
|
59
|
+
INVALID_ACCOUNT: "INVALID_ACCOUNT",
|
|
60
|
+
};
|
|
61
|
+
export const BatchDeleteBillScenarioCommitmentModificationErrorCode = {
|
|
62
|
+
BAD_REQUEST: "BAD_REQUEST",
|
|
63
|
+
CONFLICT: "CONFLICT",
|
|
64
|
+
INTERNAL_SERVER_ERROR: "INTERNAL_SERVER_ERROR",
|
|
65
|
+
};
|
|
66
|
+
export const BatchUpdateBillScenarioCommitmentModificationErrorCode = {
|
|
67
|
+
BAD_REQUEST: "BAD_REQUEST",
|
|
68
|
+
CONFLICT: "CONFLICT",
|
|
69
|
+
INTERNAL_SERVER_ERROR: "INTERNAL_SERVER_ERROR",
|
|
70
|
+
NOT_FOUND: "NOT_FOUND",
|
|
71
|
+
};
|
|
72
|
+
export const BillScenarioStatus = {
|
|
73
|
+
FAILED: "FAILED",
|
|
74
|
+
LOCKED: "LOCKED",
|
|
75
|
+
READY: "READY",
|
|
76
|
+
STALE: "STALE",
|
|
77
|
+
};
|
|
78
|
+
export const BatchCreateBillScenarioUsageModificationErrorCode = {
|
|
79
|
+
BAD_REQUEST: "BAD_REQUEST",
|
|
80
|
+
CONFLICT: "CONFLICT",
|
|
81
|
+
INTERNAL_SERVER_ERROR: "INTERNAL_SERVER_ERROR",
|
|
82
|
+
NOT_FOUND: "NOT_FOUND",
|
|
83
|
+
};
|
|
84
|
+
export const BatchDeleteBillScenarioUsageModificationErrorCode = {
|
|
85
|
+
BAD_REQUEST: "BAD_REQUEST",
|
|
86
|
+
CONFLICT: "CONFLICT",
|
|
87
|
+
INTERNAL_SERVER_ERROR: "INTERNAL_SERVER_ERROR",
|
|
88
|
+
};
|
|
89
|
+
export const BatchUpdateBillScenarioUsageModificationErrorCode = {
|
|
90
|
+
BAD_REQUEST: "BAD_REQUEST",
|
|
91
|
+
CONFLICT: "CONFLICT",
|
|
92
|
+
INTERNAL_SERVER_ERROR: "INTERNAL_SERVER_ERROR",
|
|
93
|
+
NOT_FOUND: "NOT_FOUND",
|
|
94
|
+
};
|
|
95
|
+
export const ListBillScenariosFilterName = {
|
|
96
|
+
COST_CATEGORY_ARN: "COST_CATEGORY_ARN",
|
|
97
|
+
GROUP_SHARING_PREFERENCE: "GROUP_SHARING_PREFERENCE",
|
|
98
|
+
NAME: "NAME",
|
|
99
|
+
STATUS: "STATUS",
|
|
100
|
+
};
|
|
101
|
+
export const RateType = {
|
|
102
|
+
AFTER_DISCOUNTS: "AFTER_DISCOUNTS",
|
|
103
|
+
AFTER_DISCOUNTS_AND_COMMITMENTS: "AFTER_DISCOUNTS_AND_COMMITMENTS",
|
|
104
|
+
BEFORE_DISCOUNTS: "BEFORE_DISCOUNTS",
|
|
105
|
+
};
|
|
106
|
+
export const WorkloadEstimateRateType = {
|
|
107
|
+
AFTER_DISCOUNTS: "AFTER_DISCOUNTS",
|
|
108
|
+
AFTER_DISCOUNTS_AND_COMMITMENTS: "AFTER_DISCOUNTS_AND_COMMITMENTS",
|
|
109
|
+
BEFORE_DISCOUNTS: "BEFORE_DISCOUNTS",
|
|
110
|
+
};
|
|
111
|
+
export const WorkloadEstimateStatus = {
|
|
112
|
+
ACTION_NEEDED: "ACTION_NEEDED",
|
|
113
|
+
INVALID: "INVALID",
|
|
114
|
+
UPDATING: "UPDATING",
|
|
115
|
+
VALID: "VALID",
|
|
116
|
+
};
|
|
117
|
+
export const ListWorkloadEstimatesFilterName = {
|
|
118
|
+
NAME: "NAME",
|
|
119
|
+
STATUS: "STATUS",
|
|
120
|
+
};
|
|
121
|
+
export const BatchCreateWorkloadEstimateUsageCode = {
|
|
122
|
+
BAD_REQUEST: "BAD_REQUEST",
|
|
123
|
+
CONFLICT: "CONFLICT",
|
|
124
|
+
INTERNAL_SERVER_ERROR: "INTERNAL_SERVER_ERROR",
|
|
125
|
+
NOT_FOUND: "NOT_FOUND",
|
|
126
|
+
};
|
|
127
|
+
export const WorkloadEstimateCostStatus = {
|
|
128
|
+
INVALID: "INVALID",
|
|
129
|
+
STALE: "STALE",
|
|
130
|
+
VALID: "VALID",
|
|
131
|
+
};
|
|
132
|
+
export const WorkloadEstimateUpdateUsageErrorCode = {
|
|
133
|
+
BAD_REQUEST: "BAD_REQUEST",
|
|
134
|
+
CONFLICT: "CONFLICT",
|
|
135
|
+
INTERNAL_SERVER_ERROR: "INTERNAL_SERVER_ERROR",
|
|
136
|
+
NOT_FOUND: "NOT_FOUND",
|
|
137
|
+
};
|
|
@@ -0,0 +1,125 @@
|
|
|
1
|
+
import { BCMPricingCalculatorServiceException as __BaseException } from "./BCMPricingCalculatorServiceException";
|
|
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 DataUnavailableException extends __BaseException {
|
|
15
|
+
name = "DataUnavailableException";
|
|
16
|
+
$fault = "client";
|
|
17
|
+
constructor(opts) {
|
|
18
|
+
super({
|
|
19
|
+
name: "DataUnavailableException",
|
|
20
|
+
$fault: "client",
|
|
21
|
+
...opts,
|
|
22
|
+
});
|
|
23
|
+
Object.setPrototypeOf(this, DataUnavailableException.prototype);
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
export class InternalServerException extends __BaseException {
|
|
27
|
+
name = "InternalServerException";
|
|
28
|
+
$fault = "server";
|
|
29
|
+
retryAfterSeconds;
|
|
30
|
+
constructor(opts) {
|
|
31
|
+
super({
|
|
32
|
+
name: "InternalServerException",
|
|
33
|
+
$fault: "server",
|
|
34
|
+
...opts,
|
|
35
|
+
});
|
|
36
|
+
Object.setPrototypeOf(this, InternalServerException.prototype);
|
|
37
|
+
this.retryAfterSeconds = opts.retryAfterSeconds;
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
export class ResourceNotFoundException extends __BaseException {
|
|
41
|
+
name = "ResourceNotFoundException";
|
|
42
|
+
$fault = "client";
|
|
43
|
+
resourceId;
|
|
44
|
+
resourceType;
|
|
45
|
+
constructor(opts) {
|
|
46
|
+
super({
|
|
47
|
+
name: "ResourceNotFoundException",
|
|
48
|
+
$fault: "client",
|
|
49
|
+
...opts,
|
|
50
|
+
});
|
|
51
|
+
Object.setPrototypeOf(this, ResourceNotFoundException.prototype);
|
|
52
|
+
this.resourceId = opts.resourceId;
|
|
53
|
+
this.resourceType = opts.resourceType;
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
export class ThrottlingException extends __BaseException {
|
|
57
|
+
name = "ThrottlingException";
|
|
58
|
+
$fault = "client";
|
|
59
|
+
serviceCode;
|
|
60
|
+
quotaCode;
|
|
61
|
+
retryAfterSeconds;
|
|
62
|
+
constructor(opts) {
|
|
63
|
+
super({
|
|
64
|
+
name: "ThrottlingException",
|
|
65
|
+
$fault: "client",
|
|
66
|
+
...opts,
|
|
67
|
+
});
|
|
68
|
+
Object.setPrototypeOf(this, ThrottlingException.prototype);
|
|
69
|
+
this.serviceCode = opts.serviceCode;
|
|
70
|
+
this.quotaCode = opts.quotaCode;
|
|
71
|
+
this.retryAfterSeconds = opts.retryAfterSeconds;
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
export class ValidationException extends __BaseException {
|
|
75
|
+
name = "ValidationException";
|
|
76
|
+
$fault = "client";
|
|
77
|
+
reason;
|
|
78
|
+
fieldList;
|
|
79
|
+
constructor(opts) {
|
|
80
|
+
super({
|
|
81
|
+
name: "ValidationException",
|
|
82
|
+
$fault: "client",
|
|
83
|
+
...opts,
|
|
84
|
+
});
|
|
85
|
+
Object.setPrototypeOf(this, ValidationException.prototype);
|
|
86
|
+
this.reason = opts.reason;
|
|
87
|
+
this.fieldList = opts.fieldList;
|
|
88
|
+
}
|
|
89
|
+
}
|
|
90
|
+
export class ConflictException extends __BaseException {
|
|
91
|
+
name = "ConflictException";
|
|
92
|
+
$fault = "client";
|
|
93
|
+
resourceId;
|
|
94
|
+
resourceType;
|
|
95
|
+
constructor(opts) {
|
|
96
|
+
super({
|
|
97
|
+
name: "ConflictException",
|
|
98
|
+
$fault: "client",
|
|
99
|
+
...opts,
|
|
100
|
+
});
|
|
101
|
+
Object.setPrototypeOf(this, ConflictException.prototype);
|
|
102
|
+
this.resourceId = opts.resourceId;
|
|
103
|
+
this.resourceType = opts.resourceType;
|
|
104
|
+
}
|
|
105
|
+
}
|
|
106
|
+
export class ServiceQuotaExceededException extends __BaseException {
|
|
107
|
+
name = "ServiceQuotaExceededException";
|
|
108
|
+
$fault = "client";
|
|
109
|
+
resourceId;
|
|
110
|
+
resourceType;
|
|
111
|
+
serviceCode;
|
|
112
|
+
quotaCode;
|
|
113
|
+
constructor(opts) {
|
|
114
|
+
super({
|
|
115
|
+
name: "ServiceQuotaExceededException",
|
|
116
|
+
$fault: "client",
|
|
117
|
+
...opts,
|
|
118
|
+
});
|
|
119
|
+
Object.setPrototypeOf(this, ServiceQuotaExceededException.prototype);
|
|
120
|
+
this.resourceId = opts.resourceId;
|
|
121
|
+
this.resourceType = opts.resourceType;
|
|
122
|
+
this.serviceCode = opts.serviceCode;
|
|
123
|
+
this.quotaCode = opts.quotaCode;
|
|
124
|
+
}
|
|
125
|
+
}
|