@aws-sdk/client-cost-explorer 3.504.0 → 3.507.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 +96 -955
- package/dist-es/protocols/Aws_json1_1.js +85 -944
- package/package.json +3 -3
|
@@ -232,7 +232,7 @@ export const se_UpdateCostCategoryDefinitionCommand = async (input, context) =>
|
|
|
232
232
|
};
|
|
233
233
|
export const de_CreateAnomalyMonitorCommand = async (output, context) => {
|
|
234
234
|
if (output.statusCode >= 300) {
|
|
235
|
-
return
|
|
235
|
+
return de_CommandError(output, context);
|
|
236
236
|
}
|
|
237
237
|
const data = await parseBody(output.body, context);
|
|
238
238
|
let contents = {};
|
|
@@ -243,28 +243,9 @@ export const de_CreateAnomalyMonitorCommand = async (output, context) => {
|
|
|
243
243
|
};
|
|
244
244
|
return response;
|
|
245
245
|
};
|
|
246
|
-
const de_CreateAnomalyMonitorCommandError = async (output, context) => {
|
|
247
|
-
const parsedOutput = {
|
|
248
|
-
...output,
|
|
249
|
-
body: await parseErrorBody(output.body, context),
|
|
250
|
-
};
|
|
251
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
252
|
-
switch (errorCode) {
|
|
253
|
-
case "LimitExceededException":
|
|
254
|
-
case "com.amazonaws.costexplorer#LimitExceededException":
|
|
255
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
256
|
-
default:
|
|
257
|
-
const parsedBody = parsedOutput.body;
|
|
258
|
-
return throwDefaultError({
|
|
259
|
-
output,
|
|
260
|
-
parsedBody,
|
|
261
|
-
errorCode,
|
|
262
|
-
});
|
|
263
|
-
}
|
|
264
|
-
};
|
|
265
246
|
export const de_CreateAnomalySubscriptionCommand = async (output, context) => {
|
|
266
247
|
if (output.statusCode >= 300) {
|
|
267
|
-
return
|
|
248
|
+
return de_CommandError(output, context);
|
|
268
249
|
}
|
|
269
250
|
const data = await parseBody(output.body, context);
|
|
270
251
|
let contents = {};
|
|
@@ -275,31 +256,9 @@ export const de_CreateAnomalySubscriptionCommand = async (output, context) => {
|
|
|
275
256
|
};
|
|
276
257
|
return response;
|
|
277
258
|
};
|
|
278
|
-
const de_CreateAnomalySubscriptionCommandError = async (output, context) => {
|
|
279
|
-
const parsedOutput = {
|
|
280
|
-
...output,
|
|
281
|
-
body: await parseErrorBody(output.body, context),
|
|
282
|
-
};
|
|
283
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
284
|
-
switch (errorCode) {
|
|
285
|
-
case "LimitExceededException":
|
|
286
|
-
case "com.amazonaws.costexplorer#LimitExceededException":
|
|
287
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
288
|
-
case "UnknownMonitorException":
|
|
289
|
-
case "com.amazonaws.costexplorer#UnknownMonitorException":
|
|
290
|
-
throw await de_UnknownMonitorExceptionRes(parsedOutput, context);
|
|
291
|
-
default:
|
|
292
|
-
const parsedBody = parsedOutput.body;
|
|
293
|
-
return throwDefaultError({
|
|
294
|
-
output,
|
|
295
|
-
parsedBody,
|
|
296
|
-
errorCode,
|
|
297
|
-
});
|
|
298
|
-
}
|
|
299
|
-
};
|
|
300
259
|
export const de_CreateCostCategoryDefinitionCommand = async (output, context) => {
|
|
301
260
|
if (output.statusCode >= 300) {
|
|
302
|
-
return
|
|
261
|
+
return de_CommandError(output, context);
|
|
303
262
|
}
|
|
304
263
|
const data = await parseBody(output.body, context);
|
|
305
264
|
let contents = {};
|
|
@@ -310,31 +269,9 @@ export const de_CreateCostCategoryDefinitionCommand = async (output, context) =>
|
|
|
310
269
|
};
|
|
311
270
|
return response;
|
|
312
271
|
};
|
|
313
|
-
const de_CreateCostCategoryDefinitionCommandError = async (output, context) => {
|
|
314
|
-
const parsedOutput = {
|
|
315
|
-
...output,
|
|
316
|
-
body: await parseErrorBody(output.body, context),
|
|
317
|
-
};
|
|
318
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
319
|
-
switch (errorCode) {
|
|
320
|
-
case "LimitExceededException":
|
|
321
|
-
case "com.amazonaws.costexplorer#LimitExceededException":
|
|
322
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
323
|
-
case "ServiceQuotaExceededException":
|
|
324
|
-
case "com.amazonaws.costexplorer#ServiceQuotaExceededException":
|
|
325
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
326
|
-
default:
|
|
327
|
-
const parsedBody = parsedOutput.body;
|
|
328
|
-
return throwDefaultError({
|
|
329
|
-
output,
|
|
330
|
-
parsedBody,
|
|
331
|
-
errorCode,
|
|
332
|
-
});
|
|
333
|
-
}
|
|
334
|
-
};
|
|
335
272
|
export const de_DeleteAnomalyMonitorCommand = async (output, context) => {
|
|
336
273
|
if (output.statusCode >= 300) {
|
|
337
|
-
return
|
|
274
|
+
return de_CommandError(output, context);
|
|
338
275
|
}
|
|
339
276
|
const data = await parseBody(output.body, context);
|
|
340
277
|
let contents = {};
|
|
@@ -345,31 +282,9 @@ export const de_DeleteAnomalyMonitorCommand = async (output, context) => {
|
|
|
345
282
|
};
|
|
346
283
|
return response;
|
|
347
284
|
};
|
|
348
|
-
const de_DeleteAnomalyMonitorCommandError = async (output, context) => {
|
|
349
|
-
const parsedOutput = {
|
|
350
|
-
...output,
|
|
351
|
-
body: await parseErrorBody(output.body, context),
|
|
352
|
-
};
|
|
353
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
354
|
-
switch (errorCode) {
|
|
355
|
-
case "LimitExceededException":
|
|
356
|
-
case "com.amazonaws.costexplorer#LimitExceededException":
|
|
357
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
358
|
-
case "UnknownMonitorException":
|
|
359
|
-
case "com.amazonaws.costexplorer#UnknownMonitorException":
|
|
360
|
-
throw await de_UnknownMonitorExceptionRes(parsedOutput, context);
|
|
361
|
-
default:
|
|
362
|
-
const parsedBody = parsedOutput.body;
|
|
363
|
-
return throwDefaultError({
|
|
364
|
-
output,
|
|
365
|
-
parsedBody,
|
|
366
|
-
errorCode,
|
|
367
|
-
});
|
|
368
|
-
}
|
|
369
|
-
};
|
|
370
285
|
export const de_DeleteAnomalySubscriptionCommand = async (output, context) => {
|
|
371
286
|
if (output.statusCode >= 300) {
|
|
372
|
-
return
|
|
287
|
+
return de_CommandError(output, context);
|
|
373
288
|
}
|
|
374
289
|
const data = await parseBody(output.body, context);
|
|
375
290
|
let contents = {};
|
|
@@ -380,31 +295,9 @@ export const de_DeleteAnomalySubscriptionCommand = async (output, context) => {
|
|
|
380
295
|
};
|
|
381
296
|
return response;
|
|
382
297
|
};
|
|
383
|
-
const de_DeleteAnomalySubscriptionCommandError = async (output, context) => {
|
|
384
|
-
const parsedOutput = {
|
|
385
|
-
...output,
|
|
386
|
-
body: await parseErrorBody(output.body, context),
|
|
387
|
-
};
|
|
388
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
389
|
-
switch (errorCode) {
|
|
390
|
-
case "LimitExceededException":
|
|
391
|
-
case "com.amazonaws.costexplorer#LimitExceededException":
|
|
392
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
393
|
-
case "UnknownSubscriptionException":
|
|
394
|
-
case "com.amazonaws.costexplorer#UnknownSubscriptionException":
|
|
395
|
-
throw await de_UnknownSubscriptionExceptionRes(parsedOutput, context);
|
|
396
|
-
default:
|
|
397
|
-
const parsedBody = parsedOutput.body;
|
|
398
|
-
return throwDefaultError({
|
|
399
|
-
output,
|
|
400
|
-
parsedBody,
|
|
401
|
-
errorCode,
|
|
402
|
-
});
|
|
403
|
-
}
|
|
404
|
-
};
|
|
405
298
|
export const de_DeleteCostCategoryDefinitionCommand = async (output, context) => {
|
|
406
299
|
if (output.statusCode >= 300) {
|
|
407
|
-
return
|
|
300
|
+
return de_CommandError(output, context);
|
|
408
301
|
}
|
|
409
302
|
const data = await parseBody(output.body, context);
|
|
410
303
|
let contents = {};
|
|
@@ -415,31 +308,9 @@ export const de_DeleteCostCategoryDefinitionCommand = async (output, context) =>
|
|
|
415
308
|
};
|
|
416
309
|
return response;
|
|
417
310
|
};
|
|
418
|
-
const de_DeleteCostCategoryDefinitionCommandError = async (output, context) => {
|
|
419
|
-
const parsedOutput = {
|
|
420
|
-
...output,
|
|
421
|
-
body: await parseErrorBody(output.body, context),
|
|
422
|
-
};
|
|
423
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
424
|
-
switch (errorCode) {
|
|
425
|
-
case "LimitExceededException":
|
|
426
|
-
case "com.amazonaws.costexplorer#LimitExceededException":
|
|
427
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
428
|
-
case "ResourceNotFoundException":
|
|
429
|
-
case "com.amazonaws.costexplorer#ResourceNotFoundException":
|
|
430
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
431
|
-
default:
|
|
432
|
-
const parsedBody = parsedOutput.body;
|
|
433
|
-
return throwDefaultError({
|
|
434
|
-
output,
|
|
435
|
-
parsedBody,
|
|
436
|
-
errorCode,
|
|
437
|
-
});
|
|
438
|
-
}
|
|
439
|
-
};
|
|
440
311
|
export const de_DescribeCostCategoryDefinitionCommand = async (output, context) => {
|
|
441
312
|
if (output.statusCode >= 300) {
|
|
442
|
-
return
|
|
313
|
+
return de_CommandError(output, context);
|
|
443
314
|
}
|
|
444
315
|
const data = await parseBody(output.body, context);
|
|
445
316
|
let contents = {};
|
|
@@ -450,31 +321,9 @@ export const de_DescribeCostCategoryDefinitionCommand = async (output, context)
|
|
|
450
321
|
};
|
|
451
322
|
return response;
|
|
452
323
|
};
|
|
453
|
-
const de_DescribeCostCategoryDefinitionCommandError = async (output, context) => {
|
|
454
|
-
const parsedOutput = {
|
|
455
|
-
...output,
|
|
456
|
-
body: await parseErrorBody(output.body, context),
|
|
457
|
-
};
|
|
458
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
459
|
-
switch (errorCode) {
|
|
460
|
-
case "LimitExceededException":
|
|
461
|
-
case "com.amazonaws.costexplorer#LimitExceededException":
|
|
462
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
463
|
-
case "ResourceNotFoundException":
|
|
464
|
-
case "com.amazonaws.costexplorer#ResourceNotFoundException":
|
|
465
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
466
|
-
default:
|
|
467
|
-
const parsedBody = parsedOutput.body;
|
|
468
|
-
return throwDefaultError({
|
|
469
|
-
output,
|
|
470
|
-
parsedBody,
|
|
471
|
-
errorCode,
|
|
472
|
-
});
|
|
473
|
-
}
|
|
474
|
-
};
|
|
475
324
|
export const de_GetAnomaliesCommand = async (output, context) => {
|
|
476
325
|
if (output.statusCode >= 300) {
|
|
477
|
-
return
|
|
326
|
+
return de_CommandError(output, context);
|
|
478
327
|
}
|
|
479
328
|
const data = await parseBody(output.body, context);
|
|
480
329
|
let contents = {};
|
|
@@ -485,31 +334,9 @@ export const de_GetAnomaliesCommand = async (output, context) => {
|
|
|
485
334
|
};
|
|
486
335
|
return response;
|
|
487
336
|
};
|
|
488
|
-
const de_GetAnomaliesCommandError = async (output, context) => {
|
|
489
|
-
const parsedOutput = {
|
|
490
|
-
...output,
|
|
491
|
-
body: await parseErrorBody(output.body, context),
|
|
492
|
-
};
|
|
493
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
494
|
-
switch (errorCode) {
|
|
495
|
-
case "InvalidNextTokenException":
|
|
496
|
-
case "com.amazonaws.costexplorer#InvalidNextTokenException":
|
|
497
|
-
throw await de_InvalidNextTokenExceptionRes(parsedOutput, context);
|
|
498
|
-
case "LimitExceededException":
|
|
499
|
-
case "com.amazonaws.costexplorer#LimitExceededException":
|
|
500
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
501
|
-
default:
|
|
502
|
-
const parsedBody = parsedOutput.body;
|
|
503
|
-
return throwDefaultError({
|
|
504
|
-
output,
|
|
505
|
-
parsedBody,
|
|
506
|
-
errorCode,
|
|
507
|
-
});
|
|
508
|
-
}
|
|
509
|
-
};
|
|
510
337
|
export const de_GetAnomalyMonitorsCommand = async (output, context) => {
|
|
511
338
|
if (output.statusCode >= 300) {
|
|
512
|
-
return
|
|
339
|
+
return de_CommandError(output, context);
|
|
513
340
|
}
|
|
514
341
|
const data = await parseBody(output.body, context);
|
|
515
342
|
let contents = {};
|
|
@@ -520,34 +347,9 @@ export const de_GetAnomalyMonitorsCommand = async (output, context) => {
|
|
|
520
347
|
};
|
|
521
348
|
return response;
|
|
522
349
|
};
|
|
523
|
-
const de_GetAnomalyMonitorsCommandError = async (output, context) => {
|
|
524
|
-
const parsedOutput = {
|
|
525
|
-
...output,
|
|
526
|
-
body: await parseErrorBody(output.body, context),
|
|
527
|
-
};
|
|
528
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
529
|
-
switch (errorCode) {
|
|
530
|
-
case "InvalidNextTokenException":
|
|
531
|
-
case "com.amazonaws.costexplorer#InvalidNextTokenException":
|
|
532
|
-
throw await de_InvalidNextTokenExceptionRes(parsedOutput, context);
|
|
533
|
-
case "LimitExceededException":
|
|
534
|
-
case "com.amazonaws.costexplorer#LimitExceededException":
|
|
535
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
536
|
-
case "UnknownMonitorException":
|
|
537
|
-
case "com.amazonaws.costexplorer#UnknownMonitorException":
|
|
538
|
-
throw await de_UnknownMonitorExceptionRes(parsedOutput, context);
|
|
539
|
-
default:
|
|
540
|
-
const parsedBody = parsedOutput.body;
|
|
541
|
-
return throwDefaultError({
|
|
542
|
-
output,
|
|
543
|
-
parsedBody,
|
|
544
|
-
errorCode,
|
|
545
|
-
});
|
|
546
|
-
}
|
|
547
|
-
};
|
|
548
350
|
export const de_GetAnomalySubscriptionsCommand = async (output, context) => {
|
|
549
351
|
if (output.statusCode >= 300) {
|
|
550
|
-
return
|
|
352
|
+
return de_CommandError(output, context);
|
|
551
353
|
}
|
|
552
354
|
const data = await parseBody(output.body, context);
|
|
553
355
|
let contents = {};
|
|
@@ -558,34 +360,9 @@ export const de_GetAnomalySubscriptionsCommand = async (output, context) => {
|
|
|
558
360
|
};
|
|
559
361
|
return response;
|
|
560
362
|
};
|
|
561
|
-
const de_GetAnomalySubscriptionsCommandError = async (output, context) => {
|
|
562
|
-
const parsedOutput = {
|
|
563
|
-
...output,
|
|
564
|
-
body: await parseErrorBody(output.body, context),
|
|
565
|
-
};
|
|
566
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
567
|
-
switch (errorCode) {
|
|
568
|
-
case "InvalidNextTokenException":
|
|
569
|
-
case "com.amazonaws.costexplorer#InvalidNextTokenException":
|
|
570
|
-
throw await de_InvalidNextTokenExceptionRes(parsedOutput, context);
|
|
571
|
-
case "LimitExceededException":
|
|
572
|
-
case "com.amazonaws.costexplorer#LimitExceededException":
|
|
573
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
574
|
-
case "UnknownSubscriptionException":
|
|
575
|
-
case "com.amazonaws.costexplorer#UnknownSubscriptionException":
|
|
576
|
-
throw await de_UnknownSubscriptionExceptionRes(parsedOutput, context);
|
|
577
|
-
default:
|
|
578
|
-
const parsedBody = parsedOutput.body;
|
|
579
|
-
return throwDefaultError({
|
|
580
|
-
output,
|
|
581
|
-
parsedBody,
|
|
582
|
-
errorCode,
|
|
583
|
-
});
|
|
584
|
-
}
|
|
585
|
-
};
|
|
586
363
|
export const de_GetCostAndUsageCommand = async (output, context) => {
|
|
587
364
|
if (output.statusCode >= 300) {
|
|
588
|
-
return
|
|
365
|
+
return de_CommandError(output, context);
|
|
589
366
|
}
|
|
590
367
|
const data = await parseBody(output.body, context);
|
|
591
368
|
let contents = {};
|
|
@@ -596,40 +373,9 @@ export const de_GetCostAndUsageCommand = async (output, context) => {
|
|
|
596
373
|
};
|
|
597
374
|
return response;
|
|
598
375
|
};
|
|
599
|
-
const de_GetCostAndUsageCommandError = async (output, context) => {
|
|
600
|
-
const parsedOutput = {
|
|
601
|
-
...output,
|
|
602
|
-
body: await parseErrorBody(output.body, context),
|
|
603
|
-
};
|
|
604
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
605
|
-
switch (errorCode) {
|
|
606
|
-
case "BillExpirationException":
|
|
607
|
-
case "com.amazonaws.costexplorer#BillExpirationException":
|
|
608
|
-
throw await de_BillExpirationExceptionRes(parsedOutput, context);
|
|
609
|
-
case "DataUnavailableException":
|
|
610
|
-
case "com.amazonaws.costexplorer#DataUnavailableException":
|
|
611
|
-
throw await de_DataUnavailableExceptionRes(parsedOutput, context);
|
|
612
|
-
case "InvalidNextTokenException":
|
|
613
|
-
case "com.amazonaws.costexplorer#InvalidNextTokenException":
|
|
614
|
-
throw await de_InvalidNextTokenExceptionRes(parsedOutput, context);
|
|
615
|
-
case "LimitExceededException":
|
|
616
|
-
case "com.amazonaws.costexplorer#LimitExceededException":
|
|
617
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
618
|
-
case "RequestChangedException":
|
|
619
|
-
case "com.amazonaws.costexplorer#RequestChangedException":
|
|
620
|
-
throw await de_RequestChangedExceptionRes(parsedOutput, context);
|
|
621
|
-
default:
|
|
622
|
-
const parsedBody = parsedOutput.body;
|
|
623
|
-
return throwDefaultError({
|
|
624
|
-
output,
|
|
625
|
-
parsedBody,
|
|
626
|
-
errorCode,
|
|
627
|
-
});
|
|
628
|
-
}
|
|
629
|
-
};
|
|
630
376
|
export const de_GetCostAndUsageWithResourcesCommand = async (output, context) => {
|
|
631
377
|
if (output.statusCode >= 300) {
|
|
632
|
-
return
|
|
378
|
+
return de_CommandError(output, context);
|
|
633
379
|
}
|
|
634
380
|
const data = await parseBody(output.body, context);
|
|
635
381
|
let contents = {};
|
|
@@ -640,84 +386,22 @@ export const de_GetCostAndUsageWithResourcesCommand = async (output, context) =>
|
|
|
640
386
|
};
|
|
641
387
|
return response;
|
|
642
388
|
};
|
|
643
|
-
const
|
|
644
|
-
|
|
645
|
-
|
|
646
|
-
|
|
647
|
-
|
|
648
|
-
|
|
649
|
-
|
|
650
|
-
|
|
651
|
-
|
|
652
|
-
|
|
653
|
-
case "DataUnavailableException":
|
|
654
|
-
case "com.amazonaws.costexplorer#DataUnavailableException":
|
|
655
|
-
throw await de_DataUnavailableExceptionRes(parsedOutput, context);
|
|
656
|
-
case "InvalidNextTokenException":
|
|
657
|
-
case "com.amazonaws.costexplorer#InvalidNextTokenException":
|
|
658
|
-
throw await de_InvalidNextTokenExceptionRes(parsedOutput, context);
|
|
659
|
-
case "LimitExceededException":
|
|
660
|
-
case "com.amazonaws.costexplorer#LimitExceededException":
|
|
661
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
662
|
-
case "RequestChangedException":
|
|
663
|
-
case "com.amazonaws.costexplorer#RequestChangedException":
|
|
664
|
-
throw await de_RequestChangedExceptionRes(parsedOutput, context);
|
|
665
|
-
default:
|
|
666
|
-
const parsedBody = parsedOutput.body;
|
|
667
|
-
return throwDefaultError({
|
|
668
|
-
output,
|
|
669
|
-
parsedBody,
|
|
670
|
-
errorCode,
|
|
671
|
-
});
|
|
672
|
-
}
|
|
673
|
-
};
|
|
674
|
-
export const de_GetCostCategoriesCommand = async (output, context) => {
|
|
675
|
-
if (output.statusCode >= 300) {
|
|
676
|
-
return de_GetCostCategoriesCommandError(output, context);
|
|
677
|
-
}
|
|
678
|
-
const data = await parseBody(output.body, context);
|
|
679
|
-
let contents = {};
|
|
680
|
-
contents = _json(data);
|
|
681
|
-
const response = {
|
|
682
|
-
$metadata: deserializeMetadata(output),
|
|
683
|
-
...contents,
|
|
389
|
+
export const de_GetCostCategoriesCommand = async (output, context) => {
|
|
390
|
+
if (output.statusCode >= 300) {
|
|
391
|
+
return de_CommandError(output, context);
|
|
392
|
+
}
|
|
393
|
+
const data = await parseBody(output.body, context);
|
|
394
|
+
let contents = {};
|
|
395
|
+
contents = _json(data);
|
|
396
|
+
const response = {
|
|
397
|
+
$metadata: deserializeMetadata(output),
|
|
398
|
+
...contents,
|
|
684
399
|
};
|
|
685
400
|
return response;
|
|
686
401
|
};
|
|
687
|
-
const de_GetCostCategoriesCommandError = async (output, context) => {
|
|
688
|
-
const parsedOutput = {
|
|
689
|
-
...output,
|
|
690
|
-
body: await parseErrorBody(output.body, context),
|
|
691
|
-
};
|
|
692
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
693
|
-
switch (errorCode) {
|
|
694
|
-
case "BillExpirationException":
|
|
695
|
-
case "com.amazonaws.costexplorer#BillExpirationException":
|
|
696
|
-
throw await de_BillExpirationExceptionRes(parsedOutput, context);
|
|
697
|
-
case "DataUnavailableException":
|
|
698
|
-
case "com.amazonaws.costexplorer#DataUnavailableException":
|
|
699
|
-
throw await de_DataUnavailableExceptionRes(parsedOutput, context);
|
|
700
|
-
case "InvalidNextTokenException":
|
|
701
|
-
case "com.amazonaws.costexplorer#InvalidNextTokenException":
|
|
702
|
-
throw await de_InvalidNextTokenExceptionRes(parsedOutput, context);
|
|
703
|
-
case "LimitExceededException":
|
|
704
|
-
case "com.amazonaws.costexplorer#LimitExceededException":
|
|
705
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
706
|
-
case "RequestChangedException":
|
|
707
|
-
case "com.amazonaws.costexplorer#RequestChangedException":
|
|
708
|
-
throw await de_RequestChangedExceptionRes(parsedOutput, context);
|
|
709
|
-
default:
|
|
710
|
-
const parsedBody = parsedOutput.body;
|
|
711
|
-
return throwDefaultError({
|
|
712
|
-
output,
|
|
713
|
-
parsedBody,
|
|
714
|
-
errorCode,
|
|
715
|
-
});
|
|
716
|
-
}
|
|
717
|
-
};
|
|
718
402
|
export const de_GetCostForecastCommand = async (output, context) => {
|
|
719
403
|
if (output.statusCode >= 300) {
|
|
720
|
-
return
|
|
404
|
+
return de_CommandError(output, context);
|
|
721
405
|
}
|
|
722
406
|
const data = await parseBody(output.body, context);
|
|
723
407
|
let contents = {};
|
|
@@ -728,31 +412,9 @@ export const de_GetCostForecastCommand = async (output, context) => {
|
|
|
728
412
|
};
|
|
729
413
|
return response;
|
|
730
414
|
};
|
|
731
|
-
const de_GetCostForecastCommandError = async (output, context) => {
|
|
732
|
-
const parsedOutput = {
|
|
733
|
-
...output,
|
|
734
|
-
body: await parseErrorBody(output.body, context),
|
|
735
|
-
};
|
|
736
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
737
|
-
switch (errorCode) {
|
|
738
|
-
case "DataUnavailableException":
|
|
739
|
-
case "com.amazonaws.costexplorer#DataUnavailableException":
|
|
740
|
-
throw await de_DataUnavailableExceptionRes(parsedOutput, context);
|
|
741
|
-
case "LimitExceededException":
|
|
742
|
-
case "com.amazonaws.costexplorer#LimitExceededException":
|
|
743
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
744
|
-
default:
|
|
745
|
-
const parsedBody = parsedOutput.body;
|
|
746
|
-
return throwDefaultError({
|
|
747
|
-
output,
|
|
748
|
-
parsedBody,
|
|
749
|
-
errorCode,
|
|
750
|
-
});
|
|
751
|
-
}
|
|
752
|
-
};
|
|
753
415
|
export const de_GetDimensionValuesCommand = async (output, context) => {
|
|
754
416
|
if (output.statusCode >= 300) {
|
|
755
|
-
return
|
|
417
|
+
return de_CommandError(output, context);
|
|
756
418
|
}
|
|
757
419
|
const data = await parseBody(output.body, context);
|
|
758
420
|
let contents = {};
|
|
@@ -763,40 +425,9 @@ export const de_GetDimensionValuesCommand = async (output, context) => {
|
|
|
763
425
|
};
|
|
764
426
|
return response;
|
|
765
427
|
};
|
|
766
|
-
const de_GetDimensionValuesCommandError = async (output, context) => {
|
|
767
|
-
const parsedOutput = {
|
|
768
|
-
...output,
|
|
769
|
-
body: await parseErrorBody(output.body, context),
|
|
770
|
-
};
|
|
771
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
772
|
-
switch (errorCode) {
|
|
773
|
-
case "BillExpirationException":
|
|
774
|
-
case "com.amazonaws.costexplorer#BillExpirationException":
|
|
775
|
-
throw await de_BillExpirationExceptionRes(parsedOutput, context);
|
|
776
|
-
case "DataUnavailableException":
|
|
777
|
-
case "com.amazonaws.costexplorer#DataUnavailableException":
|
|
778
|
-
throw await de_DataUnavailableExceptionRes(parsedOutput, context);
|
|
779
|
-
case "InvalidNextTokenException":
|
|
780
|
-
case "com.amazonaws.costexplorer#InvalidNextTokenException":
|
|
781
|
-
throw await de_InvalidNextTokenExceptionRes(parsedOutput, context);
|
|
782
|
-
case "LimitExceededException":
|
|
783
|
-
case "com.amazonaws.costexplorer#LimitExceededException":
|
|
784
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
785
|
-
case "RequestChangedException":
|
|
786
|
-
case "com.amazonaws.costexplorer#RequestChangedException":
|
|
787
|
-
throw await de_RequestChangedExceptionRes(parsedOutput, context);
|
|
788
|
-
default:
|
|
789
|
-
const parsedBody = parsedOutput.body;
|
|
790
|
-
return throwDefaultError({
|
|
791
|
-
output,
|
|
792
|
-
parsedBody,
|
|
793
|
-
errorCode,
|
|
794
|
-
});
|
|
795
|
-
}
|
|
796
|
-
};
|
|
797
428
|
export const de_GetReservationCoverageCommand = async (output, context) => {
|
|
798
429
|
if (output.statusCode >= 300) {
|
|
799
|
-
return
|
|
430
|
+
return de_CommandError(output, context);
|
|
800
431
|
}
|
|
801
432
|
const data = await parseBody(output.body, context);
|
|
802
433
|
let contents = {};
|
|
@@ -807,34 +438,9 @@ export const de_GetReservationCoverageCommand = async (output, context) => {
|
|
|
807
438
|
};
|
|
808
439
|
return response;
|
|
809
440
|
};
|
|
810
|
-
const de_GetReservationCoverageCommandError = async (output, context) => {
|
|
811
|
-
const parsedOutput = {
|
|
812
|
-
...output,
|
|
813
|
-
body: await parseErrorBody(output.body, context),
|
|
814
|
-
};
|
|
815
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
816
|
-
switch (errorCode) {
|
|
817
|
-
case "DataUnavailableException":
|
|
818
|
-
case "com.amazonaws.costexplorer#DataUnavailableException":
|
|
819
|
-
throw await de_DataUnavailableExceptionRes(parsedOutput, context);
|
|
820
|
-
case "InvalidNextTokenException":
|
|
821
|
-
case "com.amazonaws.costexplorer#InvalidNextTokenException":
|
|
822
|
-
throw await de_InvalidNextTokenExceptionRes(parsedOutput, context);
|
|
823
|
-
case "LimitExceededException":
|
|
824
|
-
case "com.amazonaws.costexplorer#LimitExceededException":
|
|
825
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
826
|
-
default:
|
|
827
|
-
const parsedBody = parsedOutput.body;
|
|
828
|
-
return throwDefaultError({
|
|
829
|
-
output,
|
|
830
|
-
parsedBody,
|
|
831
|
-
errorCode,
|
|
832
|
-
});
|
|
833
|
-
}
|
|
834
|
-
};
|
|
835
441
|
export const de_GetReservationPurchaseRecommendationCommand = async (output, context) => {
|
|
836
442
|
if (output.statusCode >= 300) {
|
|
837
|
-
return
|
|
443
|
+
return de_CommandError(output, context);
|
|
838
444
|
}
|
|
839
445
|
const data = await parseBody(output.body, context);
|
|
840
446
|
let contents = {};
|
|
@@ -845,34 +451,9 @@ export const de_GetReservationPurchaseRecommendationCommand = async (output, con
|
|
|
845
451
|
};
|
|
846
452
|
return response;
|
|
847
453
|
};
|
|
848
|
-
const de_GetReservationPurchaseRecommendationCommandError = async (output, context) => {
|
|
849
|
-
const parsedOutput = {
|
|
850
|
-
...output,
|
|
851
|
-
body: await parseErrorBody(output.body, context),
|
|
852
|
-
};
|
|
853
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
854
|
-
switch (errorCode) {
|
|
855
|
-
case "DataUnavailableException":
|
|
856
|
-
case "com.amazonaws.costexplorer#DataUnavailableException":
|
|
857
|
-
throw await de_DataUnavailableExceptionRes(parsedOutput, context);
|
|
858
|
-
case "InvalidNextTokenException":
|
|
859
|
-
case "com.amazonaws.costexplorer#InvalidNextTokenException":
|
|
860
|
-
throw await de_InvalidNextTokenExceptionRes(parsedOutput, context);
|
|
861
|
-
case "LimitExceededException":
|
|
862
|
-
case "com.amazonaws.costexplorer#LimitExceededException":
|
|
863
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
864
|
-
default:
|
|
865
|
-
const parsedBody = parsedOutput.body;
|
|
866
|
-
return throwDefaultError({
|
|
867
|
-
output,
|
|
868
|
-
parsedBody,
|
|
869
|
-
errorCode,
|
|
870
|
-
});
|
|
871
|
-
}
|
|
872
|
-
};
|
|
873
454
|
export const de_GetReservationUtilizationCommand = async (output, context) => {
|
|
874
455
|
if (output.statusCode >= 300) {
|
|
875
|
-
return
|
|
456
|
+
return de_CommandError(output, context);
|
|
876
457
|
}
|
|
877
458
|
const data = await parseBody(output.body, context);
|
|
878
459
|
let contents = {};
|
|
@@ -883,34 +464,9 @@ export const de_GetReservationUtilizationCommand = async (output, context) => {
|
|
|
883
464
|
};
|
|
884
465
|
return response;
|
|
885
466
|
};
|
|
886
|
-
const de_GetReservationUtilizationCommandError = async (output, context) => {
|
|
887
|
-
const parsedOutput = {
|
|
888
|
-
...output,
|
|
889
|
-
body: await parseErrorBody(output.body, context),
|
|
890
|
-
};
|
|
891
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
892
|
-
switch (errorCode) {
|
|
893
|
-
case "DataUnavailableException":
|
|
894
|
-
case "com.amazonaws.costexplorer#DataUnavailableException":
|
|
895
|
-
throw await de_DataUnavailableExceptionRes(parsedOutput, context);
|
|
896
|
-
case "InvalidNextTokenException":
|
|
897
|
-
case "com.amazonaws.costexplorer#InvalidNextTokenException":
|
|
898
|
-
throw await de_InvalidNextTokenExceptionRes(parsedOutput, context);
|
|
899
|
-
case "LimitExceededException":
|
|
900
|
-
case "com.amazonaws.costexplorer#LimitExceededException":
|
|
901
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
902
|
-
default:
|
|
903
|
-
const parsedBody = parsedOutput.body;
|
|
904
|
-
return throwDefaultError({
|
|
905
|
-
output,
|
|
906
|
-
parsedBody,
|
|
907
|
-
errorCode,
|
|
908
|
-
});
|
|
909
|
-
}
|
|
910
|
-
};
|
|
911
467
|
export const de_GetRightsizingRecommendationCommand = async (output, context) => {
|
|
912
468
|
if (output.statusCode >= 300) {
|
|
913
|
-
return
|
|
469
|
+
return de_CommandError(output, context);
|
|
914
470
|
}
|
|
915
471
|
const data = await parseBody(output.body, context);
|
|
916
472
|
let contents = {};
|
|
@@ -921,31 +477,9 @@ export const de_GetRightsizingRecommendationCommand = async (output, context) =>
|
|
|
921
477
|
};
|
|
922
478
|
return response;
|
|
923
479
|
};
|
|
924
|
-
const de_GetRightsizingRecommendationCommandError = async (output, context) => {
|
|
925
|
-
const parsedOutput = {
|
|
926
|
-
...output,
|
|
927
|
-
body: await parseErrorBody(output.body, context),
|
|
928
|
-
};
|
|
929
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
930
|
-
switch (errorCode) {
|
|
931
|
-
case "InvalidNextTokenException":
|
|
932
|
-
case "com.amazonaws.costexplorer#InvalidNextTokenException":
|
|
933
|
-
throw await de_InvalidNextTokenExceptionRes(parsedOutput, context);
|
|
934
|
-
case "LimitExceededException":
|
|
935
|
-
case "com.amazonaws.costexplorer#LimitExceededException":
|
|
936
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
937
|
-
default:
|
|
938
|
-
const parsedBody = parsedOutput.body;
|
|
939
|
-
return throwDefaultError({
|
|
940
|
-
output,
|
|
941
|
-
parsedBody,
|
|
942
|
-
errorCode,
|
|
943
|
-
});
|
|
944
|
-
}
|
|
945
|
-
};
|
|
946
480
|
export const de_GetSavingsPlanPurchaseRecommendationDetailsCommand = async (output, context) => {
|
|
947
481
|
if (output.statusCode >= 300) {
|
|
948
|
-
return
|
|
482
|
+
return de_CommandError(output, context);
|
|
949
483
|
}
|
|
950
484
|
const data = await parseBody(output.body, context);
|
|
951
485
|
let contents = {};
|
|
@@ -956,31 +490,9 @@ export const de_GetSavingsPlanPurchaseRecommendationDetailsCommand = async (outp
|
|
|
956
490
|
};
|
|
957
491
|
return response;
|
|
958
492
|
};
|
|
959
|
-
const de_GetSavingsPlanPurchaseRecommendationDetailsCommandError = async (output, context) => {
|
|
960
|
-
const parsedOutput = {
|
|
961
|
-
...output,
|
|
962
|
-
body: await parseErrorBody(output.body, context),
|
|
963
|
-
};
|
|
964
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
965
|
-
switch (errorCode) {
|
|
966
|
-
case "DataUnavailableException":
|
|
967
|
-
case "com.amazonaws.costexplorer#DataUnavailableException":
|
|
968
|
-
throw await de_DataUnavailableExceptionRes(parsedOutput, context);
|
|
969
|
-
case "LimitExceededException":
|
|
970
|
-
case "com.amazonaws.costexplorer#LimitExceededException":
|
|
971
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
972
|
-
default:
|
|
973
|
-
const parsedBody = parsedOutput.body;
|
|
974
|
-
return throwDefaultError({
|
|
975
|
-
output,
|
|
976
|
-
parsedBody,
|
|
977
|
-
errorCode,
|
|
978
|
-
});
|
|
979
|
-
}
|
|
980
|
-
};
|
|
981
493
|
export const de_GetSavingsPlansCoverageCommand = async (output, context) => {
|
|
982
494
|
if (output.statusCode >= 300) {
|
|
983
|
-
return
|
|
495
|
+
return de_CommandError(output, context);
|
|
984
496
|
}
|
|
985
497
|
const data = await parseBody(output.body, context);
|
|
986
498
|
let contents = {};
|
|
@@ -991,34 +503,9 @@ export const de_GetSavingsPlansCoverageCommand = async (output, context) => {
|
|
|
991
503
|
};
|
|
992
504
|
return response;
|
|
993
505
|
};
|
|
994
|
-
const de_GetSavingsPlansCoverageCommandError = async (output, context) => {
|
|
995
|
-
const parsedOutput = {
|
|
996
|
-
...output,
|
|
997
|
-
body: await parseErrorBody(output.body, context),
|
|
998
|
-
};
|
|
999
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1000
|
-
switch (errorCode) {
|
|
1001
|
-
case "DataUnavailableException":
|
|
1002
|
-
case "com.amazonaws.costexplorer#DataUnavailableException":
|
|
1003
|
-
throw await de_DataUnavailableExceptionRes(parsedOutput, context);
|
|
1004
|
-
case "InvalidNextTokenException":
|
|
1005
|
-
case "com.amazonaws.costexplorer#InvalidNextTokenException":
|
|
1006
|
-
throw await de_InvalidNextTokenExceptionRes(parsedOutput, context);
|
|
1007
|
-
case "LimitExceededException":
|
|
1008
|
-
case "com.amazonaws.costexplorer#LimitExceededException":
|
|
1009
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
1010
|
-
default:
|
|
1011
|
-
const parsedBody = parsedOutput.body;
|
|
1012
|
-
return throwDefaultError({
|
|
1013
|
-
output,
|
|
1014
|
-
parsedBody,
|
|
1015
|
-
errorCode,
|
|
1016
|
-
});
|
|
1017
|
-
}
|
|
1018
|
-
};
|
|
1019
506
|
export const de_GetSavingsPlansPurchaseRecommendationCommand = async (output, context) => {
|
|
1020
507
|
if (output.statusCode >= 300) {
|
|
1021
|
-
return
|
|
508
|
+
return de_CommandError(output, context);
|
|
1022
509
|
}
|
|
1023
510
|
const data = await parseBody(output.body, context);
|
|
1024
511
|
let contents = {};
|
|
@@ -1029,31 +516,9 @@ export const de_GetSavingsPlansPurchaseRecommendationCommand = async (output, co
|
|
|
1029
516
|
};
|
|
1030
517
|
return response;
|
|
1031
518
|
};
|
|
1032
|
-
const de_GetSavingsPlansPurchaseRecommendationCommandError = async (output, context) => {
|
|
1033
|
-
const parsedOutput = {
|
|
1034
|
-
...output,
|
|
1035
|
-
body: await parseErrorBody(output.body, context),
|
|
1036
|
-
};
|
|
1037
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1038
|
-
switch (errorCode) {
|
|
1039
|
-
case "InvalidNextTokenException":
|
|
1040
|
-
case "com.amazonaws.costexplorer#InvalidNextTokenException":
|
|
1041
|
-
throw await de_InvalidNextTokenExceptionRes(parsedOutput, context);
|
|
1042
|
-
case "LimitExceededException":
|
|
1043
|
-
case "com.amazonaws.costexplorer#LimitExceededException":
|
|
1044
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
1045
|
-
default:
|
|
1046
|
-
const parsedBody = parsedOutput.body;
|
|
1047
|
-
return throwDefaultError({
|
|
1048
|
-
output,
|
|
1049
|
-
parsedBody,
|
|
1050
|
-
errorCode,
|
|
1051
|
-
});
|
|
1052
|
-
}
|
|
1053
|
-
};
|
|
1054
519
|
export const de_GetSavingsPlansUtilizationCommand = async (output, context) => {
|
|
1055
520
|
if (output.statusCode >= 300) {
|
|
1056
|
-
return
|
|
521
|
+
return de_CommandError(output, context);
|
|
1057
522
|
}
|
|
1058
523
|
const data = await parseBody(output.body, context);
|
|
1059
524
|
let contents = {};
|
|
@@ -1064,31 +529,9 @@ export const de_GetSavingsPlansUtilizationCommand = async (output, context) => {
|
|
|
1064
529
|
};
|
|
1065
530
|
return response;
|
|
1066
531
|
};
|
|
1067
|
-
const de_GetSavingsPlansUtilizationCommandError = async (output, context) => {
|
|
1068
|
-
const parsedOutput = {
|
|
1069
|
-
...output,
|
|
1070
|
-
body: await parseErrorBody(output.body, context),
|
|
1071
|
-
};
|
|
1072
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1073
|
-
switch (errorCode) {
|
|
1074
|
-
case "DataUnavailableException":
|
|
1075
|
-
case "com.amazonaws.costexplorer#DataUnavailableException":
|
|
1076
|
-
throw await de_DataUnavailableExceptionRes(parsedOutput, context);
|
|
1077
|
-
case "LimitExceededException":
|
|
1078
|
-
case "com.amazonaws.costexplorer#LimitExceededException":
|
|
1079
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
1080
|
-
default:
|
|
1081
|
-
const parsedBody = parsedOutput.body;
|
|
1082
|
-
return throwDefaultError({
|
|
1083
|
-
output,
|
|
1084
|
-
parsedBody,
|
|
1085
|
-
errorCode,
|
|
1086
|
-
});
|
|
1087
|
-
}
|
|
1088
|
-
};
|
|
1089
532
|
export const de_GetSavingsPlansUtilizationDetailsCommand = async (output, context) => {
|
|
1090
533
|
if (output.statusCode >= 300) {
|
|
1091
|
-
return
|
|
534
|
+
return de_CommandError(output, context);
|
|
1092
535
|
}
|
|
1093
536
|
const data = await parseBody(output.body, context);
|
|
1094
537
|
let contents = {};
|
|
@@ -1099,34 +542,9 @@ export const de_GetSavingsPlansUtilizationDetailsCommand = async (output, contex
|
|
|
1099
542
|
};
|
|
1100
543
|
return response;
|
|
1101
544
|
};
|
|
1102
|
-
const de_GetSavingsPlansUtilizationDetailsCommandError = async (output, context) => {
|
|
1103
|
-
const parsedOutput = {
|
|
1104
|
-
...output,
|
|
1105
|
-
body: await parseErrorBody(output.body, context),
|
|
1106
|
-
};
|
|
1107
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1108
|
-
switch (errorCode) {
|
|
1109
|
-
case "DataUnavailableException":
|
|
1110
|
-
case "com.amazonaws.costexplorer#DataUnavailableException":
|
|
1111
|
-
throw await de_DataUnavailableExceptionRes(parsedOutput, context);
|
|
1112
|
-
case "InvalidNextTokenException":
|
|
1113
|
-
case "com.amazonaws.costexplorer#InvalidNextTokenException":
|
|
1114
|
-
throw await de_InvalidNextTokenExceptionRes(parsedOutput, context);
|
|
1115
|
-
case "LimitExceededException":
|
|
1116
|
-
case "com.amazonaws.costexplorer#LimitExceededException":
|
|
1117
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
1118
|
-
default:
|
|
1119
|
-
const parsedBody = parsedOutput.body;
|
|
1120
|
-
return throwDefaultError({
|
|
1121
|
-
output,
|
|
1122
|
-
parsedBody,
|
|
1123
|
-
errorCode,
|
|
1124
|
-
});
|
|
1125
|
-
}
|
|
1126
|
-
};
|
|
1127
545
|
export const de_GetTagsCommand = async (output, context) => {
|
|
1128
546
|
if (output.statusCode >= 300) {
|
|
1129
|
-
return
|
|
547
|
+
return de_CommandError(output, context);
|
|
1130
548
|
}
|
|
1131
549
|
const data = await parseBody(output.body, context);
|
|
1132
550
|
let contents = {};
|
|
@@ -1137,40 +555,9 @@ export const de_GetTagsCommand = async (output, context) => {
|
|
|
1137
555
|
};
|
|
1138
556
|
return response;
|
|
1139
557
|
};
|
|
1140
|
-
const de_GetTagsCommandError = async (output, context) => {
|
|
1141
|
-
const parsedOutput = {
|
|
1142
|
-
...output,
|
|
1143
|
-
body: await parseErrorBody(output.body, context),
|
|
1144
|
-
};
|
|
1145
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1146
|
-
switch (errorCode) {
|
|
1147
|
-
case "BillExpirationException":
|
|
1148
|
-
case "com.amazonaws.costexplorer#BillExpirationException":
|
|
1149
|
-
throw await de_BillExpirationExceptionRes(parsedOutput, context);
|
|
1150
|
-
case "DataUnavailableException":
|
|
1151
|
-
case "com.amazonaws.costexplorer#DataUnavailableException":
|
|
1152
|
-
throw await de_DataUnavailableExceptionRes(parsedOutput, context);
|
|
1153
|
-
case "InvalidNextTokenException":
|
|
1154
|
-
case "com.amazonaws.costexplorer#InvalidNextTokenException":
|
|
1155
|
-
throw await de_InvalidNextTokenExceptionRes(parsedOutput, context);
|
|
1156
|
-
case "LimitExceededException":
|
|
1157
|
-
case "com.amazonaws.costexplorer#LimitExceededException":
|
|
1158
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
1159
|
-
case "RequestChangedException":
|
|
1160
|
-
case "com.amazonaws.costexplorer#RequestChangedException":
|
|
1161
|
-
throw await de_RequestChangedExceptionRes(parsedOutput, context);
|
|
1162
|
-
default:
|
|
1163
|
-
const parsedBody = parsedOutput.body;
|
|
1164
|
-
return throwDefaultError({
|
|
1165
|
-
output,
|
|
1166
|
-
parsedBody,
|
|
1167
|
-
errorCode,
|
|
1168
|
-
});
|
|
1169
|
-
}
|
|
1170
|
-
};
|
|
1171
558
|
export const de_GetUsageForecastCommand = async (output, context) => {
|
|
1172
559
|
if (output.statusCode >= 300) {
|
|
1173
|
-
return
|
|
560
|
+
return de_CommandError(output, context);
|
|
1174
561
|
}
|
|
1175
562
|
const data = await parseBody(output.body, context);
|
|
1176
563
|
let contents = {};
|
|
@@ -1181,69 +568,22 @@ export const de_GetUsageForecastCommand = async (output, context) => {
|
|
|
1181
568
|
};
|
|
1182
569
|
return response;
|
|
1183
570
|
};
|
|
1184
|
-
const de_GetUsageForecastCommandError = async (output, context) => {
|
|
1185
|
-
const parsedOutput = {
|
|
1186
|
-
...output,
|
|
1187
|
-
body: await parseErrorBody(output.body, context),
|
|
1188
|
-
};
|
|
1189
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1190
|
-
switch (errorCode) {
|
|
1191
|
-
case "DataUnavailableException":
|
|
1192
|
-
case "com.amazonaws.costexplorer#DataUnavailableException":
|
|
1193
|
-
throw await de_DataUnavailableExceptionRes(parsedOutput, context);
|
|
1194
|
-
case "LimitExceededException":
|
|
1195
|
-
case "com.amazonaws.costexplorer#LimitExceededException":
|
|
1196
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
1197
|
-
case "UnresolvableUsageUnitException":
|
|
1198
|
-
case "com.amazonaws.costexplorer#UnresolvableUsageUnitException":
|
|
1199
|
-
throw await de_UnresolvableUsageUnitExceptionRes(parsedOutput, context);
|
|
1200
|
-
default:
|
|
1201
|
-
const parsedBody = parsedOutput.body;
|
|
1202
|
-
return throwDefaultError({
|
|
1203
|
-
output,
|
|
1204
|
-
parsedBody,
|
|
1205
|
-
errorCode,
|
|
1206
|
-
});
|
|
1207
|
-
}
|
|
1208
|
-
};
|
|
1209
571
|
export const de_ListCostAllocationTagsCommand = async (output, context) => {
|
|
1210
572
|
if (output.statusCode >= 300) {
|
|
1211
|
-
return
|
|
573
|
+
return de_CommandError(output, context);
|
|
1212
574
|
}
|
|
1213
575
|
const data = await parseBody(output.body, context);
|
|
1214
|
-
let contents = {};
|
|
1215
|
-
contents = _json(data);
|
|
1216
|
-
const response = {
|
|
1217
|
-
$metadata: deserializeMetadata(output),
|
|
1218
|
-
...contents,
|
|
1219
|
-
};
|
|
1220
|
-
return response;
|
|
1221
|
-
};
|
|
1222
|
-
const de_ListCostAllocationTagsCommandError = async (output, context) => {
|
|
1223
|
-
const parsedOutput = {
|
|
1224
|
-
...output,
|
|
1225
|
-
body: await parseErrorBody(output.body, context),
|
|
1226
|
-
};
|
|
1227
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1228
|
-
switch (errorCode) {
|
|
1229
|
-
case "InvalidNextTokenException":
|
|
1230
|
-
case "com.amazonaws.costexplorer#InvalidNextTokenException":
|
|
1231
|
-
throw await de_InvalidNextTokenExceptionRes(parsedOutput, context);
|
|
1232
|
-
case "LimitExceededException":
|
|
1233
|
-
case "com.amazonaws.costexplorer#LimitExceededException":
|
|
1234
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
1235
|
-
default:
|
|
1236
|
-
const parsedBody = parsedOutput.body;
|
|
1237
|
-
return throwDefaultError({
|
|
1238
|
-
output,
|
|
1239
|
-
parsedBody,
|
|
1240
|
-
errorCode,
|
|
1241
|
-
});
|
|
1242
|
-
}
|
|
576
|
+
let contents = {};
|
|
577
|
+
contents = _json(data);
|
|
578
|
+
const response = {
|
|
579
|
+
$metadata: deserializeMetadata(output),
|
|
580
|
+
...contents,
|
|
581
|
+
};
|
|
582
|
+
return response;
|
|
1243
583
|
};
|
|
1244
584
|
export const de_ListCostCategoryDefinitionsCommand = async (output, context) => {
|
|
1245
585
|
if (output.statusCode >= 300) {
|
|
1246
|
-
return
|
|
586
|
+
return de_CommandError(output, context);
|
|
1247
587
|
}
|
|
1248
588
|
const data = await parseBody(output.body, context);
|
|
1249
589
|
let contents = {};
|
|
@@ -1254,28 +594,9 @@ export const de_ListCostCategoryDefinitionsCommand = async (output, context) =>
|
|
|
1254
594
|
};
|
|
1255
595
|
return response;
|
|
1256
596
|
};
|
|
1257
|
-
const de_ListCostCategoryDefinitionsCommandError = async (output, context) => {
|
|
1258
|
-
const parsedOutput = {
|
|
1259
|
-
...output,
|
|
1260
|
-
body: await parseErrorBody(output.body, context),
|
|
1261
|
-
};
|
|
1262
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1263
|
-
switch (errorCode) {
|
|
1264
|
-
case "LimitExceededException":
|
|
1265
|
-
case "com.amazonaws.costexplorer#LimitExceededException":
|
|
1266
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
1267
|
-
default:
|
|
1268
|
-
const parsedBody = parsedOutput.body;
|
|
1269
|
-
return throwDefaultError({
|
|
1270
|
-
output,
|
|
1271
|
-
parsedBody,
|
|
1272
|
-
errorCode,
|
|
1273
|
-
});
|
|
1274
|
-
}
|
|
1275
|
-
};
|
|
1276
597
|
export const de_ListSavingsPlansPurchaseRecommendationGenerationCommand = async (output, context) => {
|
|
1277
598
|
if (output.statusCode >= 300) {
|
|
1278
|
-
return
|
|
599
|
+
return de_CommandError(output, context);
|
|
1279
600
|
}
|
|
1280
601
|
const data = await parseBody(output.body, context);
|
|
1281
602
|
let contents = {};
|
|
@@ -1286,34 +607,9 @@ export const de_ListSavingsPlansPurchaseRecommendationGenerationCommand = async
|
|
|
1286
607
|
};
|
|
1287
608
|
return response;
|
|
1288
609
|
};
|
|
1289
|
-
const de_ListSavingsPlansPurchaseRecommendationGenerationCommandError = async (output, context) => {
|
|
1290
|
-
const parsedOutput = {
|
|
1291
|
-
...output,
|
|
1292
|
-
body: await parseErrorBody(output.body, context),
|
|
1293
|
-
};
|
|
1294
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1295
|
-
switch (errorCode) {
|
|
1296
|
-
case "DataUnavailableException":
|
|
1297
|
-
case "com.amazonaws.costexplorer#DataUnavailableException":
|
|
1298
|
-
throw await de_DataUnavailableExceptionRes(parsedOutput, context);
|
|
1299
|
-
case "InvalidNextTokenException":
|
|
1300
|
-
case "com.amazonaws.costexplorer#InvalidNextTokenException":
|
|
1301
|
-
throw await de_InvalidNextTokenExceptionRes(parsedOutput, context);
|
|
1302
|
-
case "LimitExceededException":
|
|
1303
|
-
case "com.amazonaws.costexplorer#LimitExceededException":
|
|
1304
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
1305
|
-
default:
|
|
1306
|
-
const parsedBody = parsedOutput.body;
|
|
1307
|
-
return throwDefaultError({
|
|
1308
|
-
output,
|
|
1309
|
-
parsedBody,
|
|
1310
|
-
errorCode,
|
|
1311
|
-
});
|
|
1312
|
-
}
|
|
1313
|
-
};
|
|
1314
610
|
export const de_ListTagsForResourceCommand = async (output, context) => {
|
|
1315
611
|
if (output.statusCode >= 300) {
|
|
1316
|
-
return
|
|
612
|
+
return de_CommandError(output, context);
|
|
1317
613
|
}
|
|
1318
614
|
const data = await parseBody(output.body, context);
|
|
1319
615
|
let contents = {};
|
|
@@ -1324,31 +620,9 @@ export const de_ListTagsForResourceCommand = async (output, context) => {
|
|
|
1324
620
|
};
|
|
1325
621
|
return response;
|
|
1326
622
|
};
|
|
1327
|
-
const de_ListTagsForResourceCommandError = async (output, context) => {
|
|
1328
|
-
const parsedOutput = {
|
|
1329
|
-
...output,
|
|
1330
|
-
body: await parseErrorBody(output.body, context),
|
|
1331
|
-
};
|
|
1332
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1333
|
-
switch (errorCode) {
|
|
1334
|
-
case "LimitExceededException":
|
|
1335
|
-
case "com.amazonaws.costexplorer#LimitExceededException":
|
|
1336
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
1337
|
-
case "ResourceNotFoundException":
|
|
1338
|
-
case "com.amazonaws.costexplorer#ResourceNotFoundException":
|
|
1339
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1340
|
-
default:
|
|
1341
|
-
const parsedBody = parsedOutput.body;
|
|
1342
|
-
return throwDefaultError({
|
|
1343
|
-
output,
|
|
1344
|
-
parsedBody,
|
|
1345
|
-
errorCode,
|
|
1346
|
-
});
|
|
1347
|
-
}
|
|
1348
|
-
};
|
|
1349
623
|
export const de_ProvideAnomalyFeedbackCommand = async (output, context) => {
|
|
1350
624
|
if (output.statusCode >= 300) {
|
|
1351
|
-
return
|
|
625
|
+
return de_CommandError(output, context);
|
|
1352
626
|
}
|
|
1353
627
|
const data = await parseBody(output.body, context);
|
|
1354
628
|
let contents = {};
|
|
@@ -1359,28 +633,9 @@ export const de_ProvideAnomalyFeedbackCommand = async (output, context) => {
|
|
|
1359
633
|
};
|
|
1360
634
|
return response;
|
|
1361
635
|
};
|
|
1362
|
-
const de_ProvideAnomalyFeedbackCommandError = async (output, context) => {
|
|
1363
|
-
const parsedOutput = {
|
|
1364
|
-
...output,
|
|
1365
|
-
body: await parseErrorBody(output.body, context),
|
|
1366
|
-
};
|
|
1367
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1368
|
-
switch (errorCode) {
|
|
1369
|
-
case "LimitExceededException":
|
|
1370
|
-
case "com.amazonaws.costexplorer#LimitExceededException":
|
|
1371
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
1372
|
-
default:
|
|
1373
|
-
const parsedBody = parsedOutput.body;
|
|
1374
|
-
return throwDefaultError({
|
|
1375
|
-
output,
|
|
1376
|
-
parsedBody,
|
|
1377
|
-
errorCode,
|
|
1378
|
-
});
|
|
1379
|
-
}
|
|
1380
|
-
};
|
|
1381
636
|
export const de_StartSavingsPlansPurchaseRecommendationGenerationCommand = async (output, context) => {
|
|
1382
637
|
if (output.statusCode >= 300) {
|
|
1383
|
-
return
|
|
638
|
+
return de_CommandError(output, context);
|
|
1384
639
|
}
|
|
1385
640
|
const data = await parseBody(output.body, context);
|
|
1386
641
|
let contents = {};
|
|
@@ -1391,37 +646,9 @@ export const de_StartSavingsPlansPurchaseRecommendationGenerationCommand = async
|
|
|
1391
646
|
};
|
|
1392
647
|
return response;
|
|
1393
648
|
};
|
|
1394
|
-
const de_StartSavingsPlansPurchaseRecommendationGenerationCommandError = async (output, context) => {
|
|
1395
|
-
const parsedOutput = {
|
|
1396
|
-
...output,
|
|
1397
|
-
body: await parseErrorBody(output.body, context),
|
|
1398
|
-
};
|
|
1399
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1400
|
-
switch (errorCode) {
|
|
1401
|
-
case "DataUnavailableException":
|
|
1402
|
-
case "com.amazonaws.costexplorer#DataUnavailableException":
|
|
1403
|
-
throw await de_DataUnavailableExceptionRes(parsedOutput, context);
|
|
1404
|
-
case "GenerationExistsException":
|
|
1405
|
-
case "com.amazonaws.costexplorer#GenerationExistsException":
|
|
1406
|
-
throw await de_GenerationExistsExceptionRes(parsedOutput, context);
|
|
1407
|
-
case "LimitExceededException":
|
|
1408
|
-
case "com.amazonaws.costexplorer#LimitExceededException":
|
|
1409
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
1410
|
-
case "ServiceQuotaExceededException":
|
|
1411
|
-
case "com.amazonaws.costexplorer#ServiceQuotaExceededException":
|
|
1412
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
1413
|
-
default:
|
|
1414
|
-
const parsedBody = parsedOutput.body;
|
|
1415
|
-
return throwDefaultError({
|
|
1416
|
-
output,
|
|
1417
|
-
parsedBody,
|
|
1418
|
-
errorCode,
|
|
1419
|
-
});
|
|
1420
|
-
}
|
|
1421
|
-
};
|
|
1422
649
|
export const de_TagResourceCommand = async (output, context) => {
|
|
1423
650
|
if (output.statusCode >= 300) {
|
|
1424
|
-
return
|
|
651
|
+
return de_CommandError(output, context);
|
|
1425
652
|
}
|
|
1426
653
|
const data = await parseBody(output.body, context);
|
|
1427
654
|
let contents = {};
|
|
@@ -1432,34 +659,9 @@ export const de_TagResourceCommand = async (output, context) => {
|
|
|
1432
659
|
};
|
|
1433
660
|
return response;
|
|
1434
661
|
};
|
|
1435
|
-
const de_TagResourceCommandError = async (output, context) => {
|
|
1436
|
-
const parsedOutput = {
|
|
1437
|
-
...output,
|
|
1438
|
-
body: await parseErrorBody(output.body, context),
|
|
1439
|
-
};
|
|
1440
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1441
|
-
switch (errorCode) {
|
|
1442
|
-
case "LimitExceededException":
|
|
1443
|
-
case "com.amazonaws.costexplorer#LimitExceededException":
|
|
1444
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
1445
|
-
case "ResourceNotFoundException":
|
|
1446
|
-
case "com.amazonaws.costexplorer#ResourceNotFoundException":
|
|
1447
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1448
|
-
case "TooManyTagsException":
|
|
1449
|
-
case "com.amazonaws.costexplorer#TooManyTagsException":
|
|
1450
|
-
throw await de_TooManyTagsExceptionRes(parsedOutput, context);
|
|
1451
|
-
default:
|
|
1452
|
-
const parsedBody = parsedOutput.body;
|
|
1453
|
-
return throwDefaultError({
|
|
1454
|
-
output,
|
|
1455
|
-
parsedBody,
|
|
1456
|
-
errorCode,
|
|
1457
|
-
});
|
|
1458
|
-
}
|
|
1459
|
-
};
|
|
1460
662
|
export const de_UntagResourceCommand = async (output, context) => {
|
|
1461
663
|
if (output.statusCode >= 300) {
|
|
1462
|
-
return
|
|
664
|
+
return de_CommandError(output, context);
|
|
1463
665
|
}
|
|
1464
666
|
const data = await parseBody(output.body, context);
|
|
1465
667
|
let contents = {};
|
|
@@ -1470,31 +672,9 @@ export const de_UntagResourceCommand = async (output, context) => {
|
|
|
1470
672
|
};
|
|
1471
673
|
return response;
|
|
1472
674
|
};
|
|
1473
|
-
const de_UntagResourceCommandError = async (output, context) => {
|
|
1474
|
-
const parsedOutput = {
|
|
1475
|
-
...output,
|
|
1476
|
-
body: await parseErrorBody(output.body, context),
|
|
1477
|
-
};
|
|
1478
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1479
|
-
switch (errorCode) {
|
|
1480
|
-
case "LimitExceededException":
|
|
1481
|
-
case "com.amazonaws.costexplorer#LimitExceededException":
|
|
1482
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
1483
|
-
case "ResourceNotFoundException":
|
|
1484
|
-
case "com.amazonaws.costexplorer#ResourceNotFoundException":
|
|
1485
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1486
|
-
default:
|
|
1487
|
-
const parsedBody = parsedOutput.body;
|
|
1488
|
-
return throwDefaultError({
|
|
1489
|
-
output,
|
|
1490
|
-
parsedBody,
|
|
1491
|
-
errorCode,
|
|
1492
|
-
});
|
|
1493
|
-
}
|
|
1494
|
-
};
|
|
1495
675
|
export const de_UpdateAnomalyMonitorCommand = async (output, context) => {
|
|
1496
676
|
if (output.statusCode >= 300) {
|
|
1497
|
-
return
|
|
677
|
+
return de_CommandError(output, context);
|
|
1498
678
|
}
|
|
1499
679
|
const data = await parseBody(output.body, context);
|
|
1500
680
|
let contents = {};
|
|
@@ -1505,31 +685,9 @@ export const de_UpdateAnomalyMonitorCommand = async (output, context) => {
|
|
|
1505
685
|
};
|
|
1506
686
|
return response;
|
|
1507
687
|
};
|
|
1508
|
-
const de_UpdateAnomalyMonitorCommandError = async (output, context) => {
|
|
1509
|
-
const parsedOutput = {
|
|
1510
|
-
...output,
|
|
1511
|
-
body: await parseErrorBody(output.body, context),
|
|
1512
|
-
};
|
|
1513
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1514
|
-
switch (errorCode) {
|
|
1515
|
-
case "LimitExceededException":
|
|
1516
|
-
case "com.amazonaws.costexplorer#LimitExceededException":
|
|
1517
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
1518
|
-
case "UnknownMonitorException":
|
|
1519
|
-
case "com.amazonaws.costexplorer#UnknownMonitorException":
|
|
1520
|
-
throw await de_UnknownMonitorExceptionRes(parsedOutput, context);
|
|
1521
|
-
default:
|
|
1522
|
-
const parsedBody = parsedOutput.body;
|
|
1523
|
-
return throwDefaultError({
|
|
1524
|
-
output,
|
|
1525
|
-
parsedBody,
|
|
1526
|
-
errorCode,
|
|
1527
|
-
});
|
|
1528
|
-
}
|
|
1529
|
-
};
|
|
1530
688
|
export const de_UpdateAnomalySubscriptionCommand = async (output, context) => {
|
|
1531
689
|
if (output.statusCode >= 300) {
|
|
1532
|
-
return
|
|
690
|
+
return de_CommandError(output, context);
|
|
1533
691
|
}
|
|
1534
692
|
const data = await parseBody(output.body, context);
|
|
1535
693
|
let contents = {};
|
|
@@ -1540,34 +698,9 @@ export const de_UpdateAnomalySubscriptionCommand = async (output, context) => {
|
|
|
1540
698
|
};
|
|
1541
699
|
return response;
|
|
1542
700
|
};
|
|
1543
|
-
const de_UpdateAnomalySubscriptionCommandError = async (output, context) => {
|
|
1544
|
-
const parsedOutput = {
|
|
1545
|
-
...output,
|
|
1546
|
-
body: await parseErrorBody(output.body, context),
|
|
1547
|
-
};
|
|
1548
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1549
|
-
switch (errorCode) {
|
|
1550
|
-
case "LimitExceededException":
|
|
1551
|
-
case "com.amazonaws.costexplorer#LimitExceededException":
|
|
1552
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
1553
|
-
case "UnknownMonitorException":
|
|
1554
|
-
case "com.amazonaws.costexplorer#UnknownMonitorException":
|
|
1555
|
-
throw await de_UnknownMonitorExceptionRes(parsedOutput, context);
|
|
1556
|
-
case "UnknownSubscriptionException":
|
|
1557
|
-
case "com.amazonaws.costexplorer#UnknownSubscriptionException":
|
|
1558
|
-
throw await de_UnknownSubscriptionExceptionRes(parsedOutput, context);
|
|
1559
|
-
default:
|
|
1560
|
-
const parsedBody = parsedOutput.body;
|
|
1561
|
-
return throwDefaultError({
|
|
1562
|
-
output,
|
|
1563
|
-
parsedBody,
|
|
1564
|
-
errorCode,
|
|
1565
|
-
});
|
|
1566
|
-
}
|
|
1567
|
-
};
|
|
1568
701
|
export const de_UpdateCostAllocationTagsStatusCommand = async (output, context) => {
|
|
1569
702
|
if (output.statusCode >= 300) {
|
|
1570
|
-
return
|
|
703
|
+
return de_CommandError(output, context);
|
|
1571
704
|
}
|
|
1572
705
|
const data = await parseBody(output.body, context);
|
|
1573
706
|
let contents = {};
|
|
@@ -1578,28 +711,9 @@ export const de_UpdateCostAllocationTagsStatusCommand = async (output, context)
|
|
|
1578
711
|
};
|
|
1579
712
|
return response;
|
|
1580
713
|
};
|
|
1581
|
-
const de_UpdateCostAllocationTagsStatusCommandError = async (output, context) => {
|
|
1582
|
-
const parsedOutput = {
|
|
1583
|
-
...output,
|
|
1584
|
-
body: await parseErrorBody(output.body, context),
|
|
1585
|
-
};
|
|
1586
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1587
|
-
switch (errorCode) {
|
|
1588
|
-
case "LimitExceededException":
|
|
1589
|
-
case "com.amazonaws.costexplorer#LimitExceededException":
|
|
1590
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
1591
|
-
default:
|
|
1592
|
-
const parsedBody = parsedOutput.body;
|
|
1593
|
-
return throwDefaultError({
|
|
1594
|
-
output,
|
|
1595
|
-
parsedBody,
|
|
1596
|
-
errorCode,
|
|
1597
|
-
});
|
|
1598
|
-
}
|
|
1599
|
-
};
|
|
1600
714
|
export const de_UpdateCostCategoryDefinitionCommand = async (output, context) => {
|
|
1601
715
|
if (output.statusCode >= 300) {
|
|
1602
|
-
return
|
|
716
|
+
return de_CommandError(output, context);
|
|
1603
717
|
}
|
|
1604
718
|
const data = await parseBody(output.body, context);
|
|
1605
719
|
let contents = {};
|
|
@@ -1610,7 +724,7 @@ export const de_UpdateCostCategoryDefinitionCommand = async (output, context) =>
|
|
|
1610
724
|
};
|
|
1611
725
|
return response;
|
|
1612
726
|
};
|
|
1613
|
-
const
|
|
727
|
+
const de_CommandError = async (output, context) => {
|
|
1614
728
|
const parsedOutput = {
|
|
1615
729
|
...output,
|
|
1616
730
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1620,12 +734,39 @@ const de_UpdateCostCategoryDefinitionCommandError = async (output, context) => {
|
|
|
1620
734
|
case "LimitExceededException":
|
|
1621
735
|
case "com.amazonaws.costexplorer#LimitExceededException":
|
|
1622
736
|
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
1623
|
-
case "
|
|
1624
|
-
case "com.amazonaws.costexplorer#
|
|
1625
|
-
throw await
|
|
737
|
+
case "UnknownMonitorException":
|
|
738
|
+
case "com.amazonaws.costexplorer#UnknownMonitorException":
|
|
739
|
+
throw await de_UnknownMonitorExceptionRes(parsedOutput, context);
|
|
1626
740
|
case "ServiceQuotaExceededException":
|
|
1627
741
|
case "com.amazonaws.costexplorer#ServiceQuotaExceededException":
|
|
1628
742
|
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
743
|
+
case "UnknownSubscriptionException":
|
|
744
|
+
case "com.amazonaws.costexplorer#UnknownSubscriptionException":
|
|
745
|
+
throw await de_UnknownSubscriptionExceptionRes(parsedOutput, context);
|
|
746
|
+
case "ResourceNotFoundException":
|
|
747
|
+
case "com.amazonaws.costexplorer#ResourceNotFoundException":
|
|
748
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
749
|
+
case "InvalidNextTokenException":
|
|
750
|
+
case "com.amazonaws.costexplorer#InvalidNextTokenException":
|
|
751
|
+
throw await de_InvalidNextTokenExceptionRes(parsedOutput, context);
|
|
752
|
+
case "BillExpirationException":
|
|
753
|
+
case "com.amazonaws.costexplorer#BillExpirationException":
|
|
754
|
+
throw await de_BillExpirationExceptionRes(parsedOutput, context);
|
|
755
|
+
case "DataUnavailableException":
|
|
756
|
+
case "com.amazonaws.costexplorer#DataUnavailableException":
|
|
757
|
+
throw await de_DataUnavailableExceptionRes(parsedOutput, context);
|
|
758
|
+
case "RequestChangedException":
|
|
759
|
+
case "com.amazonaws.costexplorer#RequestChangedException":
|
|
760
|
+
throw await de_RequestChangedExceptionRes(parsedOutput, context);
|
|
761
|
+
case "UnresolvableUsageUnitException":
|
|
762
|
+
case "com.amazonaws.costexplorer#UnresolvableUsageUnitException":
|
|
763
|
+
throw await de_UnresolvableUsageUnitExceptionRes(parsedOutput, context);
|
|
764
|
+
case "GenerationExistsException":
|
|
765
|
+
case "com.amazonaws.costexplorer#GenerationExistsException":
|
|
766
|
+
throw await de_GenerationExistsExceptionRes(parsedOutput, context);
|
|
767
|
+
case "TooManyTagsException":
|
|
768
|
+
case "com.amazonaws.costexplorer#TooManyTagsException":
|
|
769
|
+
throw await de_TooManyTagsExceptionRes(parsedOutput, context);
|
|
1629
770
|
default:
|
|
1630
771
|
const parsedBody = parsedOutput.body;
|
|
1631
772
|
return throwDefaultError({
|