@aws-sdk/client-cost-explorer 3.141.0 → 3.150.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/CHANGELOG.md +27 -0
- package/dist-cjs/protocols/Aws_json1_1.js +175 -334
- package/dist-es/protocols/Aws_json1_1.js +281 -335
- package/package.json +11 -6
|
@@ -375,7 +375,6 @@ const deserializeAws_json1_1CreateAnomalyMonitorCommandError = async (output, co
|
|
|
375
375
|
...output,
|
|
376
376
|
body: await parseBody(output.body, context),
|
|
377
377
|
};
|
|
378
|
-
let response;
|
|
379
378
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
380
379
|
switch (errorCode) {
|
|
381
380
|
case "LimitExceededException":
|
|
@@ -383,14 +382,12 @@ const deserializeAws_json1_1CreateAnomalyMonitorCommandError = async (output, co
|
|
|
383
382
|
throw await deserializeAws_json1_1LimitExceededExceptionResponse(parsedOutput, context);
|
|
384
383
|
default:
|
|
385
384
|
const parsedBody = parsedOutput.body;
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
$metadata,
|
|
385
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
386
|
+
output,
|
|
387
|
+
parsedBody,
|
|
388
|
+
exceptionCtor: CostExplorerServiceException_1.CostExplorerServiceException,
|
|
389
|
+
errorCode,
|
|
392
390
|
});
|
|
393
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
394
391
|
}
|
|
395
392
|
};
|
|
396
393
|
const deserializeAws_json1_1CreateAnomalySubscriptionCommand = async (output, context) => {
|
|
@@ -412,7 +409,6 @@ const deserializeAws_json1_1CreateAnomalySubscriptionCommandError = async (outpu
|
|
|
412
409
|
...output,
|
|
413
410
|
body: await parseBody(output.body, context),
|
|
414
411
|
};
|
|
415
|
-
let response;
|
|
416
412
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
417
413
|
switch (errorCode) {
|
|
418
414
|
case "LimitExceededException":
|
|
@@ -423,14 +419,12 @@ const deserializeAws_json1_1CreateAnomalySubscriptionCommandError = async (outpu
|
|
|
423
419
|
throw await deserializeAws_json1_1UnknownMonitorExceptionResponse(parsedOutput, context);
|
|
424
420
|
default:
|
|
425
421
|
const parsedBody = parsedOutput.body;
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
$metadata,
|
|
422
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
423
|
+
output,
|
|
424
|
+
parsedBody,
|
|
425
|
+
exceptionCtor: CostExplorerServiceException_1.CostExplorerServiceException,
|
|
426
|
+
errorCode,
|
|
432
427
|
});
|
|
433
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
434
428
|
}
|
|
435
429
|
};
|
|
436
430
|
const deserializeAws_json1_1CreateCostCategoryDefinitionCommand = async (output, context) => {
|
|
@@ -452,7 +446,6 @@ const deserializeAws_json1_1CreateCostCategoryDefinitionCommandError = async (ou
|
|
|
452
446
|
...output,
|
|
453
447
|
body: await parseBody(output.body, context),
|
|
454
448
|
};
|
|
455
|
-
let response;
|
|
456
449
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
457
450
|
switch (errorCode) {
|
|
458
451
|
case "LimitExceededException":
|
|
@@ -463,14 +456,12 @@ const deserializeAws_json1_1CreateCostCategoryDefinitionCommandError = async (ou
|
|
|
463
456
|
throw await deserializeAws_json1_1ServiceQuotaExceededExceptionResponse(parsedOutput, context);
|
|
464
457
|
default:
|
|
465
458
|
const parsedBody = parsedOutput.body;
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
$metadata,
|
|
459
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
460
|
+
output,
|
|
461
|
+
parsedBody,
|
|
462
|
+
exceptionCtor: CostExplorerServiceException_1.CostExplorerServiceException,
|
|
463
|
+
errorCode,
|
|
472
464
|
});
|
|
473
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
474
465
|
}
|
|
475
466
|
};
|
|
476
467
|
const deserializeAws_json1_1DeleteAnomalyMonitorCommand = async (output, context) => {
|
|
@@ -492,7 +483,6 @@ const deserializeAws_json1_1DeleteAnomalyMonitorCommandError = async (output, co
|
|
|
492
483
|
...output,
|
|
493
484
|
body: await parseBody(output.body, context),
|
|
494
485
|
};
|
|
495
|
-
let response;
|
|
496
486
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
497
487
|
switch (errorCode) {
|
|
498
488
|
case "LimitExceededException":
|
|
@@ -503,14 +493,12 @@ const deserializeAws_json1_1DeleteAnomalyMonitorCommandError = async (output, co
|
|
|
503
493
|
throw await deserializeAws_json1_1UnknownMonitorExceptionResponse(parsedOutput, context);
|
|
504
494
|
default:
|
|
505
495
|
const parsedBody = parsedOutput.body;
|
|
506
|
-
|
|
507
|
-
|
|
508
|
-
|
|
509
|
-
|
|
510
|
-
|
|
511
|
-
$metadata,
|
|
496
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
497
|
+
output,
|
|
498
|
+
parsedBody,
|
|
499
|
+
exceptionCtor: CostExplorerServiceException_1.CostExplorerServiceException,
|
|
500
|
+
errorCode,
|
|
512
501
|
});
|
|
513
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
514
502
|
}
|
|
515
503
|
};
|
|
516
504
|
const deserializeAws_json1_1DeleteAnomalySubscriptionCommand = async (output, context) => {
|
|
@@ -532,7 +520,6 @@ const deserializeAws_json1_1DeleteAnomalySubscriptionCommandError = async (outpu
|
|
|
532
520
|
...output,
|
|
533
521
|
body: await parseBody(output.body, context),
|
|
534
522
|
};
|
|
535
|
-
let response;
|
|
536
523
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
537
524
|
switch (errorCode) {
|
|
538
525
|
case "LimitExceededException":
|
|
@@ -543,14 +530,12 @@ const deserializeAws_json1_1DeleteAnomalySubscriptionCommandError = async (outpu
|
|
|
543
530
|
throw await deserializeAws_json1_1UnknownSubscriptionExceptionResponse(parsedOutput, context);
|
|
544
531
|
default:
|
|
545
532
|
const parsedBody = parsedOutput.body;
|
|
546
|
-
|
|
547
|
-
|
|
548
|
-
|
|
549
|
-
|
|
550
|
-
|
|
551
|
-
$metadata,
|
|
533
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
534
|
+
output,
|
|
535
|
+
parsedBody,
|
|
536
|
+
exceptionCtor: CostExplorerServiceException_1.CostExplorerServiceException,
|
|
537
|
+
errorCode,
|
|
552
538
|
});
|
|
553
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
554
539
|
}
|
|
555
540
|
};
|
|
556
541
|
const deserializeAws_json1_1DeleteCostCategoryDefinitionCommand = async (output, context) => {
|
|
@@ -572,7 +557,6 @@ const deserializeAws_json1_1DeleteCostCategoryDefinitionCommandError = async (ou
|
|
|
572
557
|
...output,
|
|
573
558
|
body: await parseBody(output.body, context),
|
|
574
559
|
};
|
|
575
|
-
let response;
|
|
576
560
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
577
561
|
switch (errorCode) {
|
|
578
562
|
case "LimitExceededException":
|
|
@@ -583,14 +567,12 @@ const deserializeAws_json1_1DeleteCostCategoryDefinitionCommandError = async (ou
|
|
|
583
567
|
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
584
568
|
default:
|
|
585
569
|
const parsedBody = parsedOutput.body;
|
|
586
|
-
|
|
587
|
-
|
|
588
|
-
|
|
589
|
-
|
|
590
|
-
|
|
591
|
-
$metadata,
|
|
570
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
571
|
+
output,
|
|
572
|
+
parsedBody,
|
|
573
|
+
exceptionCtor: CostExplorerServiceException_1.CostExplorerServiceException,
|
|
574
|
+
errorCode,
|
|
592
575
|
});
|
|
593
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
594
576
|
}
|
|
595
577
|
};
|
|
596
578
|
const deserializeAws_json1_1DescribeCostCategoryDefinitionCommand = async (output, context) => {
|
|
@@ -612,7 +594,6 @@ const deserializeAws_json1_1DescribeCostCategoryDefinitionCommandError = async (
|
|
|
612
594
|
...output,
|
|
613
595
|
body: await parseBody(output.body, context),
|
|
614
596
|
};
|
|
615
|
-
let response;
|
|
616
597
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
617
598
|
switch (errorCode) {
|
|
618
599
|
case "LimitExceededException":
|
|
@@ -623,14 +604,12 @@ const deserializeAws_json1_1DescribeCostCategoryDefinitionCommandError = async (
|
|
|
623
604
|
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
624
605
|
default:
|
|
625
606
|
const parsedBody = parsedOutput.body;
|
|
626
|
-
|
|
627
|
-
|
|
628
|
-
|
|
629
|
-
|
|
630
|
-
|
|
631
|
-
$metadata,
|
|
607
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
608
|
+
output,
|
|
609
|
+
parsedBody,
|
|
610
|
+
exceptionCtor: CostExplorerServiceException_1.CostExplorerServiceException,
|
|
611
|
+
errorCode,
|
|
632
612
|
});
|
|
633
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
634
613
|
}
|
|
635
614
|
};
|
|
636
615
|
const deserializeAws_json1_1GetAnomaliesCommand = async (output, context) => {
|
|
@@ -652,7 +631,6 @@ const deserializeAws_json1_1GetAnomaliesCommandError = async (output, context) =
|
|
|
652
631
|
...output,
|
|
653
632
|
body: await parseBody(output.body, context),
|
|
654
633
|
};
|
|
655
|
-
let response;
|
|
656
634
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
657
635
|
switch (errorCode) {
|
|
658
636
|
case "InvalidNextTokenException":
|
|
@@ -663,14 +641,12 @@ const deserializeAws_json1_1GetAnomaliesCommandError = async (output, context) =
|
|
|
663
641
|
throw await deserializeAws_json1_1LimitExceededExceptionResponse(parsedOutput, context);
|
|
664
642
|
default:
|
|
665
643
|
const parsedBody = parsedOutput.body;
|
|
666
|
-
|
|
667
|
-
|
|
668
|
-
|
|
669
|
-
|
|
670
|
-
|
|
671
|
-
$metadata,
|
|
644
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
645
|
+
output,
|
|
646
|
+
parsedBody,
|
|
647
|
+
exceptionCtor: CostExplorerServiceException_1.CostExplorerServiceException,
|
|
648
|
+
errorCode,
|
|
672
649
|
});
|
|
673
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
674
650
|
}
|
|
675
651
|
};
|
|
676
652
|
const deserializeAws_json1_1GetAnomalyMonitorsCommand = async (output, context) => {
|
|
@@ -692,7 +668,6 @@ const deserializeAws_json1_1GetAnomalyMonitorsCommandError = async (output, cont
|
|
|
692
668
|
...output,
|
|
693
669
|
body: await parseBody(output.body, context),
|
|
694
670
|
};
|
|
695
|
-
let response;
|
|
696
671
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
697
672
|
switch (errorCode) {
|
|
698
673
|
case "InvalidNextTokenException":
|
|
@@ -706,14 +681,12 @@ const deserializeAws_json1_1GetAnomalyMonitorsCommandError = async (output, cont
|
|
|
706
681
|
throw await deserializeAws_json1_1UnknownMonitorExceptionResponse(parsedOutput, context);
|
|
707
682
|
default:
|
|
708
683
|
const parsedBody = parsedOutput.body;
|
|
709
|
-
|
|
710
|
-
|
|
711
|
-
|
|
712
|
-
|
|
713
|
-
|
|
714
|
-
$metadata,
|
|
684
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
685
|
+
output,
|
|
686
|
+
parsedBody,
|
|
687
|
+
exceptionCtor: CostExplorerServiceException_1.CostExplorerServiceException,
|
|
688
|
+
errorCode,
|
|
715
689
|
});
|
|
716
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
717
690
|
}
|
|
718
691
|
};
|
|
719
692
|
const deserializeAws_json1_1GetAnomalySubscriptionsCommand = async (output, context) => {
|
|
@@ -735,7 +708,6 @@ const deserializeAws_json1_1GetAnomalySubscriptionsCommandError = async (output,
|
|
|
735
708
|
...output,
|
|
736
709
|
body: await parseBody(output.body, context),
|
|
737
710
|
};
|
|
738
|
-
let response;
|
|
739
711
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
740
712
|
switch (errorCode) {
|
|
741
713
|
case "InvalidNextTokenException":
|
|
@@ -749,14 +721,12 @@ const deserializeAws_json1_1GetAnomalySubscriptionsCommandError = async (output,
|
|
|
749
721
|
throw await deserializeAws_json1_1UnknownSubscriptionExceptionResponse(parsedOutput, context);
|
|
750
722
|
default:
|
|
751
723
|
const parsedBody = parsedOutput.body;
|
|
752
|
-
|
|
753
|
-
|
|
754
|
-
|
|
755
|
-
|
|
756
|
-
|
|
757
|
-
$metadata,
|
|
724
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
725
|
+
output,
|
|
726
|
+
parsedBody,
|
|
727
|
+
exceptionCtor: CostExplorerServiceException_1.CostExplorerServiceException,
|
|
728
|
+
errorCode,
|
|
758
729
|
});
|
|
759
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
760
730
|
}
|
|
761
731
|
};
|
|
762
732
|
const deserializeAws_json1_1GetCostAndUsageCommand = async (output, context) => {
|
|
@@ -778,7 +748,6 @@ const deserializeAws_json1_1GetCostAndUsageCommandError = async (output, context
|
|
|
778
748
|
...output,
|
|
779
749
|
body: await parseBody(output.body, context),
|
|
780
750
|
};
|
|
781
|
-
let response;
|
|
782
751
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
783
752
|
switch (errorCode) {
|
|
784
753
|
case "BillExpirationException":
|
|
@@ -798,14 +767,12 @@ const deserializeAws_json1_1GetCostAndUsageCommandError = async (output, context
|
|
|
798
767
|
throw await deserializeAws_json1_1RequestChangedExceptionResponse(parsedOutput, context);
|
|
799
768
|
default:
|
|
800
769
|
const parsedBody = parsedOutput.body;
|
|
801
|
-
|
|
802
|
-
|
|
803
|
-
|
|
804
|
-
|
|
805
|
-
|
|
806
|
-
$metadata,
|
|
770
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
771
|
+
output,
|
|
772
|
+
parsedBody,
|
|
773
|
+
exceptionCtor: CostExplorerServiceException_1.CostExplorerServiceException,
|
|
774
|
+
errorCode,
|
|
807
775
|
});
|
|
808
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
809
776
|
}
|
|
810
777
|
};
|
|
811
778
|
const deserializeAws_json1_1GetCostAndUsageWithResourcesCommand = async (output, context) => {
|
|
@@ -827,7 +794,6 @@ const deserializeAws_json1_1GetCostAndUsageWithResourcesCommandError = async (ou
|
|
|
827
794
|
...output,
|
|
828
795
|
body: await parseBody(output.body, context),
|
|
829
796
|
};
|
|
830
|
-
let response;
|
|
831
797
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
832
798
|
switch (errorCode) {
|
|
833
799
|
case "BillExpirationException":
|
|
@@ -847,14 +813,12 @@ const deserializeAws_json1_1GetCostAndUsageWithResourcesCommandError = async (ou
|
|
|
847
813
|
throw await deserializeAws_json1_1RequestChangedExceptionResponse(parsedOutput, context);
|
|
848
814
|
default:
|
|
849
815
|
const parsedBody = parsedOutput.body;
|
|
850
|
-
|
|
851
|
-
|
|
852
|
-
|
|
853
|
-
|
|
854
|
-
|
|
855
|
-
$metadata,
|
|
816
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
817
|
+
output,
|
|
818
|
+
parsedBody,
|
|
819
|
+
exceptionCtor: CostExplorerServiceException_1.CostExplorerServiceException,
|
|
820
|
+
errorCode,
|
|
856
821
|
});
|
|
857
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
858
822
|
}
|
|
859
823
|
};
|
|
860
824
|
const deserializeAws_json1_1GetCostCategoriesCommand = async (output, context) => {
|
|
@@ -876,7 +840,6 @@ const deserializeAws_json1_1GetCostCategoriesCommandError = async (output, conte
|
|
|
876
840
|
...output,
|
|
877
841
|
body: await parseBody(output.body, context),
|
|
878
842
|
};
|
|
879
|
-
let response;
|
|
880
843
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
881
844
|
switch (errorCode) {
|
|
882
845
|
case "BillExpirationException":
|
|
@@ -896,14 +859,12 @@ const deserializeAws_json1_1GetCostCategoriesCommandError = async (output, conte
|
|
|
896
859
|
throw await deserializeAws_json1_1RequestChangedExceptionResponse(parsedOutput, context);
|
|
897
860
|
default:
|
|
898
861
|
const parsedBody = parsedOutput.body;
|
|
899
|
-
|
|
900
|
-
|
|
901
|
-
|
|
902
|
-
|
|
903
|
-
|
|
904
|
-
$metadata,
|
|
862
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
863
|
+
output,
|
|
864
|
+
parsedBody,
|
|
865
|
+
exceptionCtor: CostExplorerServiceException_1.CostExplorerServiceException,
|
|
866
|
+
errorCode,
|
|
905
867
|
});
|
|
906
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
907
868
|
}
|
|
908
869
|
};
|
|
909
870
|
const deserializeAws_json1_1GetCostForecastCommand = async (output, context) => {
|
|
@@ -925,7 +886,6 @@ const deserializeAws_json1_1GetCostForecastCommandError = async (output, context
|
|
|
925
886
|
...output,
|
|
926
887
|
body: await parseBody(output.body, context),
|
|
927
888
|
};
|
|
928
|
-
let response;
|
|
929
889
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
930
890
|
switch (errorCode) {
|
|
931
891
|
case "DataUnavailableException":
|
|
@@ -936,14 +896,12 @@ const deserializeAws_json1_1GetCostForecastCommandError = async (output, context
|
|
|
936
896
|
throw await deserializeAws_json1_1LimitExceededExceptionResponse(parsedOutput, context);
|
|
937
897
|
default:
|
|
938
898
|
const parsedBody = parsedOutput.body;
|
|
939
|
-
|
|
940
|
-
|
|
941
|
-
|
|
942
|
-
|
|
943
|
-
|
|
944
|
-
$metadata,
|
|
899
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
900
|
+
output,
|
|
901
|
+
parsedBody,
|
|
902
|
+
exceptionCtor: CostExplorerServiceException_1.CostExplorerServiceException,
|
|
903
|
+
errorCode,
|
|
945
904
|
});
|
|
946
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
947
905
|
}
|
|
948
906
|
};
|
|
949
907
|
const deserializeAws_json1_1GetDimensionValuesCommand = async (output, context) => {
|
|
@@ -965,7 +923,6 @@ const deserializeAws_json1_1GetDimensionValuesCommandError = async (output, cont
|
|
|
965
923
|
...output,
|
|
966
924
|
body: await parseBody(output.body, context),
|
|
967
925
|
};
|
|
968
|
-
let response;
|
|
969
926
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
970
927
|
switch (errorCode) {
|
|
971
928
|
case "BillExpirationException":
|
|
@@ -985,14 +942,12 @@ const deserializeAws_json1_1GetDimensionValuesCommandError = async (output, cont
|
|
|
985
942
|
throw await deserializeAws_json1_1RequestChangedExceptionResponse(parsedOutput, context);
|
|
986
943
|
default:
|
|
987
944
|
const parsedBody = parsedOutput.body;
|
|
988
|
-
|
|
989
|
-
|
|
990
|
-
|
|
991
|
-
|
|
992
|
-
|
|
993
|
-
$metadata,
|
|
945
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
946
|
+
output,
|
|
947
|
+
parsedBody,
|
|
948
|
+
exceptionCtor: CostExplorerServiceException_1.CostExplorerServiceException,
|
|
949
|
+
errorCode,
|
|
994
950
|
});
|
|
995
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
996
951
|
}
|
|
997
952
|
};
|
|
998
953
|
const deserializeAws_json1_1GetReservationCoverageCommand = async (output, context) => {
|
|
@@ -1014,7 +969,6 @@ const deserializeAws_json1_1GetReservationCoverageCommandError = async (output,
|
|
|
1014
969
|
...output,
|
|
1015
970
|
body: await parseBody(output.body, context),
|
|
1016
971
|
};
|
|
1017
|
-
let response;
|
|
1018
972
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1019
973
|
switch (errorCode) {
|
|
1020
974
|
case "DataUnavailableException":
|
|
@@ -1028,14 +982,12 @@ const deserializeAws_json1_1GetReservationCoverageCommandError = async (output,
|
|
|
1028
982
|
throw await deserializeAws_json1_1LimitExceededExceptionResponse(parsedOutput, context);
|
|
1029
983
|
default:
|
|
1030
984
|
const parsedBody = parsedOutput.body;
|
|
1031
|
-
|
|
1032
|
-
|
|
1033
|
-
|
|
1034
|
-
|
|
1035
|
-
|
|
1036
|
-
$metadata,
|
|
985
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
986
|
+
output,
|
|
987
|
+
parsedBody,
|
|
988
|
+
exceptionCtor: CostExplorerServiceException_1.CostExplorerServiceException,
|
|
989
|
+
errorCode,
|
|
1037
990
|
});
|
|
1038
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1039
991
|
}
|
|
1040
992
|
};
|
|
1041
993
|
const deserializeAws_json1_1GetReservationPurchaseRecommendationCommand = async (output, context) => {
|
|
@@ -1057,7 +1009,6 @@ const deserializeAws_json1_1GetReservationPurchaseRecommendationCommandError = a
|
|
|
1057
1009
|
...output,
|
|
1058
1010
|
body: await parseBody(output.body, context),
|
|
1059
1011
|
};
|
|
1060
|
-
let response;
|
|
1061
1012
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1062
1013
|
switch (errorCode) {
|
|
1063
1014
|
case "DataUnavailableException":
|
|
@@ -1071,14 +1022,12 @@ const deserializeAws_json1_1GetReservationPurchaseRecommendationCommandError = a
|
|
|
1071
1022
|
throw await deserializeAws_json1_1LimitExceededExceptionResponse(parsedOutput, context);
|
|
1072
1023
|
default:
|
|
1073
1024
|
const parsedBody = parsedOutput.body;
|
|
1074
|
-
|
|
1075
|
-
|
|
1076
|
-
|
|
1077
|
-
|
|
1078
|
-
|
|
1079
|
-
$metadata,
|
|
1025
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1026
|
+
output,
|
|
1027
|
+
parsedBody,
|
|
1028
|
+
exceptionCtor: CostExplorerServiceException_1.CostExplorerServiceException,
|
|
1029
|
+
errorCode,
|
|
1080
1030
|
});
|
|
1081
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1082
1031
|
}
|
|
1083
1032
|
};
|
|
1084
1033
|
const deserializeAws_json1_1GetReservationUtilizationCommand = async (output, context) => {
|
|
@@ -1100,7 +1049,6 @@ const deserializeAws_json1_1GetReservationUtilizationCommandError = async (outpu
|
|
|
1100
1049
|
...output,
|
|
1101
1050
|
body: await parseBody(output.body, context),
|
|
1102
1051
|
};
|
|
1103
|
-
let response;
|
|
1104
1052
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1105
1053
|
switch (errorCode) {
|
|
1106
1054
|
case "DataUnavailableException":
|
|
@@ -1114,14 +1062,12 @@ const deserializeAws_json1_1GetReservationUtilizationCommandError = async (outpu
|
|
|
1114
1062
|
throw await deserializeAws_json1_1LimitExceededExceptionResponse(parsedOutput, context);
|
|
1115
1063
|
default:
|
|
1116
1064
|
const parsedBody = parsedOutput.body;
|
|
1117
|
-
|
|
1118
|
-
|
|
1119
|
-
|
|
1120
|
-
|
|
1121
|
-
|
|
1122
|
-
$metadata,
|
|
1065
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1066
|
+
output,
|
|
1067
|
+
parsedBody,
|
|
1068
|
+
exceptionCtor: CostExplorerServiceException_1.CostExplorerServiceException,
|
|
1069
|
+
errorCode,
|
|
1123
1070
|
});
|
|
1124
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1125
1071
|
}
|
|
1126
1072
|
};
|
|
1127
1073
|
const deserializeAws_json1_1GetRightsizingRecommendationCommand = async (output, context) => {
|
|
@@ -1143,7 +1089,6 @@ const deserializeAws_json1_1GetRightsizingRecommendationCommandError = async (ou
|
|
|
1143
1089
|
...output,
|
|
1144
1090
|
body: await parseBody(output.body, context),
|
|
1145
1091
|
};
|
|
1146
|
-
let response;
|
|
1147
1092
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1148
1093
|
switch (errorCode) {
|
|
1149
1094
|
case "InvalidNextTokenException":
|
|
@@ -1154,14 +1099,12 @@ const deserializeAws_json1_1GetRightsizingRecommendationCommandError = async (ou
|
|
|
1154
1099
|
throw await deserializeAws_json1_1LimitExceededExceptionResponse(parsedOutput, context);
|
|
1155
1100
|
default:
|
|
1156
1101
|
const parsedBody = parsedOutput.body;
|
|
1157
|
-
|
|
1158
|
-
|
|
1159
|
-
|
|
1160
|
-
|
|
1161
|
-
|
|
1162
|
-
$metadata,
|
|
1102
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1103
|
+
output,
|
|
1104
|
+
parsedBody,
|
|
1105
|
+
exceptionCtor: CostExplorerServiceException_1.CostExplorerServiceException,
|
|
1106
|
+
errorCode,
|
|
1163
1107
|
});
|
|
1164
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1165
1108
|
}
|
|
1166
1109
|
};
|
|
1167
1110
|
const deserializeAws_json1_1GetSavingsPlansCoverageCommand = async (output, context) => {
|
|
@@ -1183,7 +1126,6 @@ const deserializeAws_json1_1GetSavingsPlansCoverageCommandError = async (output,
|
|
|
1183
1126
|
...output,
|
|
1184
1127
|
body: await parseBody(output.body, context),
|
|
1185
1128
|
};
|
|
1186
|
-
let response;
|
|
1187
1129
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1188
1130
|
switch (errorCode) {
|
|
1189
1131
|
case "DataUnavailableException":
|
|
@@ -1197,14 +1139,12 @@ const deserializeAws_json1_1GetSavingsPlansCoverageCommandError = async (output,
|
|
|
1197
1139
|
throw await deserializeAws_json1_1LimitExceededExceptionResponse(parsedOutput, context);
|
|
1198
1140
|
default:
|
|
1199
1141
|
const parsedBody = parsedOutput.body;
|
|
1200
|
-
|
|
1201
|
-
|
|
1202
|
-
|
|
1203
|
-
|
|
1204
|
-
|
|
1205
|
-
$metadata,
|
|
1142
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1143
|
+
output,
|
|
1144
|
+
parsedBody,
|
|
1145
|
+
exceptionCtor: CostExplorerServiceException_1.CostExplorerServiceException,
|
|
1146
|
+
errorCode,
|
|
1206
1147
|
});
|
|
1207
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1208
1148
|
}
|
|
1209
1149
|
};
|
|
1210
1150
|
const deserializeAws_json1_1GetSavingsPlansPurchaseRecommendationCommand = async (output, context) => {
|
|
@@ -1226,7 +1166,6 @@ const deserializeAws_json1_1GetSavingsPlansPurchaseRecommendationCommandError =
|
|
|
1226
1166
|
...output,
|
|
1227
1167
|
body: await parseBody(output.body, context),
|
|
1228
1168
|
};
|
|
1229
|
-
let response;
|
|
1230
1169
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1231
1170
|
switch (errorCode) {
|
|
1232
1171
|
case "InvalidNextTokenException":
|
|
@@ -1237,14 +1176,12 @@ const deserializeAws_json1_1GetSavingsPlansPurchaseRecommendationCommandError =
|
|
|
1237
1176
|
throw await deserializeAws_json1_1LimitExceededExceptionResponse(parsedOutput, context);
|
|
1238
1177
|
default:
|
|
1239
1178
|
const parsedBody = parsedOutput.body;
|
|
1240
|
-
|
|
1241
|
-
|
|
1242
|
-
|
|
1243
|
-
|
|
1244
|
-
|
|
1245
|
-
$metadata,
|
|
1179
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1180
|
+
output,
|
|
1181
|
+
parsedBody,
|
|
1182
|
+
exceptionCtor: CostExplorerServiceException_1.CostExplorerServiceException,
|
|
1183
|
+
errorCode,
|
|
1246
1184
|
});
|
|
1247
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1248
1185
|
}
|
|
1249
1186
|
};
|
|
1250
1187
|
const deserializeAws_json1_1GetSavingsPlansUtilizationCommand = async (output, context) => {
|
|
@@ -1266,7 +1203,6 @@ const deserializeAws_json1_1GetSavingsPlansUtilizationCommandError = async (outp
|
|
|
1266
1203
|
...output,
|
|
1267
1204
|
body: await parseBody(output.body, context),
|
|
1268
1205
|
};
|
|
1269
|
-
let response;
|
|
1270
1206
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1271
1207
|
switch (errorCode) {
|
|
1272
1208
|
case "DataUnavailableException":
|
|
@@ -1277,14 +1213,12 @@ const deserializeAws_json1_1GetSavingsPlansUtilizationCommandError = async (outp
|
|
|
1277
1213
|
throw await deserializeAws_json1_1LimitExceededExceptionResponse(parsedOutput, context);
|
|
1278
1214
|
default:
|
|
1279
1215
|
const parsedBody = parsedOutput.body;
|
|
1280
|
-
|
|
1281
|
-
|
|
1282
|
-
|
|
1283
|
-
|
|
1284
|
-
|
|
1285
|
-
$metadata,
|
|
1216
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1217
|
+
output,
|
|
1218
|
+
parsedBody,
|
|
1219
|
+
exceptionCtor: CostExplorerServiceException_1.CostExplorerServiceException,
|
|
1220
|
+
errorCode,
|
|
1286
1221
|
});
|
|
1287
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1288
1222
|
}
|
|
1289
1223
|
};
|
|
1290
1224
|
const deserializeAws_json1_1GetSavingsPlansUtilizationDetailsCommand = async (output, context) => {
|
|
@@ -1306,7 +1240,6 @@ const deserializeAws_json1_1GetSavingsPlansUtilizationDetailsCommandError = asyn
|
|
|
1306
1240
|
...output,
|
|
1307
1241
|
body: await parseBody(output.body, context),
|
|
1308
1242
|
};
|
|
1309
|
-
let response;
|
|
1310
1243
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1311
1244
|
switch (errorCode) {
|
|
1312
1245
|
case "DataUnavailableException":
|
|
@@ -1320,14 +1253,12 @@ const deserializeAws_json1_1GetSavingsPlansUtilizationDetailsCommandError = asyn
|
|
|
1320
1253
|
throw await deserializeAws_json1_1LimitExceededExceptionResponse(parsedOutput, context);
|
|
1321
1254
|
default:
|
|
1322
1255
|
const parsedBody = parsedOutput.body;
|
|
1323
|
-
|
|
1324
|
-
|
|
1325
|
-
|
|
1326
|
-
|
|
1327
|
-
|
|
1328
|
-
$metadata,
|
|
1256
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1257
|
+
output,
|
|
1258
|
+
parsedBody,
|
|
1259
|
+
exceptionCtor: CostExplorerServiceException_1.CostExplorerServiceException,
|
|
1260
|
+
errorCode,
|
|
1329
1261
|
});
|
|
1330
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1331
1262
|
}
|
|
1332
1263
|
};
|
|
1333
1264
|
const deserializeAws_json1_1GetTagsCommand = async (output, context) => {
|
|
@@ -1349,7 +1280,6 @@ const deserializeAws_json1_1GetTagsCommandError = async (output, context) => {
|
|
|
1349
1280
|
...output,
|
|
1350
1281
|
body: await parseBody(output.body, context),
|
|
1351
1282
|
};
|
|
1352
|
-
let response;
|
|
1353
1283
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1354
1284
|
switch (errorCode) {
|
|
1355
1285
|
case "BillExpirationException":
|
|
@@ -1369,14 +1299,12 @@ const deserializeAws_json1_1GetTagsCommandError = async (output, context) => {
|
|
|
1369
1299
|
throw await deserializeAws_json1_1RequestChangedExceptionResponse(parsedOutput, context);
|
|
1370
1300
|
default:
|
|
1371
1301
|
const parsedBody = parsedOutput.body;
|
|
1372
|
-
|
|
1373
|
-
|
|
1374
|
-
|
|
1375
|
-
|
|
1376
|
-
|
|
1377
|
-
$metadata,
|
|
1302
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1303
|
+
output,
|
|
1304
|
+
parsedBody,
|
|
1305
|
+
exceptionCtor: CostExplorerServiceException_1.CostExplorerServiceException,
|
|
1306
|
+
errorCode,
|
|
1378
1307
|
});
|
|
1379
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1380
1308
|
}
|
|
1381
1309
|
};
|
|
1382
1310
|
const deserializeAws_json1_1GetUsageForecastCommand = async (output, context) => {
|
|
@@ -1398,7 +1326,6 @@ const deserializeAws_json1_1GetUsageForecastCommandError = async (output, contex
|
|
|
1398
1326
|
...output,
|
|
1399
1327
|
body: await parseBody(output.body, context),
|
|
1400
1328
|
};
|
|
1401
|
-
let response;
|
|
1402
1329
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1403
1330
|
switch (errorCode) {
|
|
1404
1331
|
case "DataUnavailableException":
|
|
@@ -1412,14 +1339,12 @@ const deserializeAws_json1_1GetUsageForecastCommandError = async (output, contex
|
|
|
1412
1339
|
throw await deserializeAws_json1_1UnresolvableUsageUnitExceptionResponse(parsedOutput, context);
|
|
1413
1340
|
default:
|
|
1414
1341
|
const parsedBody = parsedOutput.body;
|
|
1415
|
-
|
|
1416
|
-
|
|
1417
|
-
|
|
1418
|
-
|
|
1419
|
-
|
|
1420
|
-
$metadata,
|
|
1342
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1343
|
+
output,
|
|
1344
|
+
parsedBody,
|
|
1345
|
+
exceptionCtor: CostExplorerServiceException_1.CostExplorerServiceException,
|
|
1346
|
+
errorCode,
|
|
1421
1347
|
});
|
|
1422
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1423
1348
|
}
|
|
1424
1349
|
};
|
|
1425
1350
|
const deserializeAws_json1_1ListCostAllocationTagsCommand = async (output, context) => {
|
|
@@ -1441,7 +1366,6 @@ const deserializeAws_json1_1ListCostAllocationTagsCommandError = async (output,
|
|
|
1441
1366
|
...output,
|
|
1442
1367
|
body: await parseBody(output.body, context),
|
|
1443
1368
|
};
|
|
1444
|
-
let response;
|
|
1445
1369
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1446
1370
|
switch (errorCode) {
|
|
1447
1371
|
case "InvalidNextTokenException":
|
|
@@ -1452,14 +1376,12 @@ const deserializeAws_json1_1ListCostAllocationTagsCommandError = async (output,
|
|
|
1452
1376
|
throw await deserializeAws_json1_1LimitExceededExceptionResponse(parsedOutput, context);
|
|
1453
1377
|
default:
|
|
1454
1378
|
const parsedBody = parsedOutput.body;
|
|
1455
|
-
|
|
1456
|
-
|
|
1457
|
-
|
|
1458
|
-
|
|
1459
|
-
|
|
1460
|
-
$metadata,
|
|
1379
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1380
|
+
output,
|
|
1381
|
+
parsedBody,
|
|
1382
|
+
exceptionCtor: CostExplorerServiceException_1.CostExplorerServiceException,
|
|
1383
|
+
errorCode,
|
|
1461
1384
|
});
|
|
1462
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1463
1385
|
}
|
|
1464
1386
|
};
|
|
1465
1387
|
const deserializeAws_json1_1ListCostCategoryDefinitionsCommand = async (output, context) => {
|
|
@@ -1481,7 +1403,6 @@ const deserializeAws_json1_1ListCostCategoryDefinitionsCommandError = async (out
|
|
|
1481
1403
|
...output,
|
|
1482
1404
|
body: await parseBody(output.body, context),
|
|
1483
1405
|
};
|
|
1484
|
-
let response;
|
|
1485
1406
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1486
1407
|
switch (errorCode) {
|
|
1487
1408
|
case "LimitExceededException":
|
|
@@ -1489,14 +1410,12 @@ const deserializeAws_json1_1ListCostCategoryDefinitionsCommandError = async (out
|
|
|
1489
1410
|
throw await deserializeAws_json1_1LimitExceededExceptionResponse(parsedOutput, context);
|
|
1490
1411
|
default:
|
|
1491
1412
|
const parsedBody = parsedOutput.body;
|
|
1492
|
-
|
|
1493
|
-
|
|
1494
|
-
|
|
1495
|
-
|
|
1496
|
-
|
|
1497
|
-
$metadata,
|
|
1413
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1414
|
+
output,
|
|
1415
|
+
parsedBody,
|
|
1416
|
+
exceptionCtor: CostExplorerServiceException_1.CostExplorerServiceException,
|
|
1417
|
+
errorCode,
|
|
1498
1418
|
});
|
|
1499
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1500
1419
|
}
|
|
1501
1420
|
};
|
|
1502
1421
|
const deserializeAws_json1_1ListTagsForResourceCommand = async (output, context) => {
|
|
@@ -1518,7 +1437,6 @@ const deserializeAws_json1_1ListTagsForResourceCommandError = async (output, con
|
|
|
1518
1437
|
...output,
|
|
1519
1438
|
body: await parseBody(output.body, context),
|
|
1520
1439
|
};
|
|
1521
|
-
let response;
|
|
1522
1440
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1523
1441
|
switch (errorCode) {
|
|
1524
1442
|
case "LimitExceededException":
|
|
@@ -1529,14 +1447,12 @@ const deserializeAws_json1_1ListTagsForResourceCommandError = async (output, con
|
|
|
1529
1447
|
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1530
1448
|
default:
|
|
1531
1449
|
const parsedBody = parsedOutput.body;
|
|
1532
|
-
|
|
1533
|
-
|
|
1534
|
-
|
|
1535
|
-
|
|
1536
|
-
|
|
1537
|
-
$metadata,
|
|
1450
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1451
|
+
output,
|
|
1452
|
+
parsedBody,
|
|
1453
|
+
exceptionCtor: CostExplorerServiceException_1.CostExplorerServiceException,
|
|
1454
|
+
errorCode,
|
|
1538
1455
|
});
|
|
1539
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1540
1456
|
}
|
|
1541
1457
|
};
|
|
1542
1458
|
const deserializeAws_json1_1ProvideAnomalyFeedbackCommand = async (output, context) => {
|
|
@@ -1558,7 +1474,6 @@ const deserializeAws_json1_1ProvideAnomalyFeedbackCommandError = async (output,
|
|
|
1558
1474
|
...output,
|
|
1559
1475
|
body: await parseBody(output.body, context),
|
|
1560
1476
|
};
|
|
1561
|
-
let response;
|
|
1562
1477
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1563
1478
|
switch (errorCode) {
|
|
1564
1479
|
case "LimitExceededException":
|
|
@@ -1566,14 +1481,12 @@ const deserializeAws_json1_1ProvideAnomalyFeedbackCommandError = async (output,
|
|
|
1566
1481
|
throw await deserializeAws_json1_1LimitExceededExceptionResponse(parsedOutput, context);
|
|
1567
1482
|
default:
|
|
1568
1483
|
const parsedBody = parsedOutput.body;
|
|
1569
|
-
|
|
1570
|
-
|
|
1571
|
-
|
|
1572
|
-
|
|
1573
|
-
|
|
1574
|
-
$metadata,
|
|
1484
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1485
|
+
output,
|
|
1486
|
+
parsedBody,
|
|
1487
|
+
exceptionCtor: CostExplorerServiceException_1.CostExplorerServiceException,
|
|
1488
|
+
errorCode,
|
|
1575
1489
|
});
|
|
1576
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1577
1490
|
}
|
|
1578
1491
|
};
|
|
1579
1492
|
const deserializeAws_json1_1TagResourceCommand = async (output, context) => {
|
|
@@ -1595,7 +1508,6 @@ const deserializeAws_json1_1TagResourceCommandError = async (output, context) =>
|
|
|
1595
1508
|
...output,
|
|
1596
1509
|
body: await parseBody(output.body, context),
|
|
1597
1510
|
};
|
|
1598
|
-
let response;
|
|
1599
1511
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1600
1512
|
switch (errorCode) {
|
|
1601
1513
|
case "LimitExceededException":
|
|
@@ -1609,14 +1521,12 @@ const deserializeAws_json1_1TagResourceCommandError = async (output, context) =>
|
|
|
1609
1521
|
throw await deserializeAws_json1_1TooManyTagsExceptionResponse(parsedOutput, context);
|
|
1610
1522
|
default:
|
|
1611
1523
|
const parsedBody = parsedOutput.body;
|
|
1612
|
-
|
|
1613
|
-
|
|
1614
|
-
|
|
1615
|
-
|
|
1616
|
-
|
|
1617
|
-
$metadata,
|
|
1524
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1525
|
+
output,
|
|
1526
|
+
parsedBody,
|
|
1527
|
+
exceptionCtor: CostExplorerServiceException_1.CostExplorerServiceException,
|
|
1528
|
+
errorCode,
|
|
1618
1529
|
});
|
|
1619
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1620
1530
|
}
|
|
1621
1531
|
};
|
|
1622
1532
|
const deserializeAws_json1_1UntagResourceCommand = async (output, context) => {
|
|
@@ -1638,7 +1548,6 @@ const deserializeAws_json1_1UntagResourceCommandError = async (output, context)
|
|
|
1638
1548
|
...output,
|
|
1639
1549
|
body: await parseBody(output.body, context),
|
|
1640
1550
|
};
|
|
1641
|
-
let response;
|
|
1642
1551
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1643
1552
|
switch (errorCode) {
|
|
1644
1553
|
case "LimitExceededException":
|
|
@@ -1649,14 +1558,12 @@ const deserializeAws_json1_1UntagResourceCommandError = async (output, context)
|
|
|
1649
1558
|
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1650
1559
|
default:
|
|
1651
1560
|
const parsedBody = parsedOutput.body;
|
|
1652
|
-
|
|
1653
|
-
|
|
1654
|
-
|
|
1655
|
-
|
|
1656
|
-
|
|
1657
|
-
$metadata,
|
|
1561
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1562
|
+
output,
|
|
1563
|
+
parsedBody,
|
|
1564
|
+
exceptionCtor: CostExplorerServiceException_1.CostExplorerServiceException,
|
|
1565
|
+
errorCode,
|
|
1658
1566
|
});
|
|
1659
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1660
1567
|
}
|
|
1661
1568
|
};
|
|
1662
1569
|
const deserializeAws_json1_1UpdateAnomalyMonitorCommand = async (output, context) => {
|
|
@@ -1678,7 +1585,6 @@ const deserializeAws_json1_1UpdateAnomalyMonitorCommandError = async (output, co
|
|
|
1678
1585
|
...output,
|
|
1679
1586
|
body: await parseBody(output.body, context),
|
|
1680
1587
|
};
|
|
1681
|
-
let response;
|
|
1682
1588
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1683
1589
|
switch (errorCode) {
|
|
1684
1590
|
case "LimitExceededException":
|
|
@@ -1689,14 +1595,12 @@ const deserializeAws_json1_1UpdateAnomalyMonitorCommandError = async (output, co
|
|
|
1689
1595
|
throw await deserializeAws_json1_1UnknownMonitorExceptionResponse(parsedOutput, context);
|
|
1690
1596
|
default:
|
|
1691
1597
|
const parsedBody = parsedOutput.body;
|
|
1692
|
-
|
|
1693
|
-
|
|
1694
|
-
|
|
1695
|
-
|
|
1696
|
-
|
|
1697
|
-
$metadata,
|
|
1598
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1599
|
+
output,
|
|
1600
|
+
parsedBody,
|
|
1601
|
+
exceptionCtor: CostExplorerServiceException_1.CostExplorerServiceException,
|
|
1602
|
+
errorCode,
|
|
1698
1603
|
});
|
|
1699
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1700
1604
|
}
|
|
1701
1605
|
};
|
|
1702
1606
|
const deserializeAws_json1_1UpdateAnomalySubscriptionCommand = async (output, context) => {
|
|
@@ -1718,7 +1622,6 @@ const deserializeAws_json1_1UpdateAnomalySubscriptionCommandError = async (outpu
|
|
|
1718
1622
|
...output,
|
|
1719
1623
|
body: await parseBody(output.body, context),
|
|
1720
1624
|
};
|
|
1721
|
-
let response;
|
|
1722
1625
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1723
1626
|
switch (errorCode) {
|
|
1724
1627
|
case "LimitExceededException":
|
|
@@ -1732,14 +1635,12 @@ const deserializeAws_json1_1UpdateAnomalySubscriptionCommandError = async (outpu
|
|
|
1732
1635
|
throw await deserializeAws_json1_1UnknownSubscriptionExceptionResponse(parsedOutput, context);
|
|
1733
1636
|
default:
|
|
1734
1637
|
const parsedBody = parsedOutput.body;
|
|
1735
|
-
|
|
1736
|
-
|
|
1737
|
-
|
|
1738
|
-
|
|
1739
|
-
|
|
1740
|
-
$metadata,
|
|
1638
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1639
|
+
output,
|
|
1640
|
+
parsedBody,
|
|
1641
|
+
exceptionCtor: CostExplorerServiceException_1.CostExplorerServiceException,
|
|
1642
|
+
errorCode,
|
|
1741
1643
|
});
|
|
1742
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1743
1644
|
}
|
|
1744
1645
|
};
|
|
1745
1646
|
const deserializeAws_json1_1UpdateCostAllocationTagsStatusCommand = async (output, context) => {
|
|
@@ -1761,7 +1662,6 @@ const deserializeAws_json1_1UpdateCostAllocationTagsStatusCommandError = async (
|
|
|
1761
1662
|
...output,
|
|
1762
1663
|
body: await parseBody(output.body, context),
|
|
1763
1664
|
};
|
|
1764
|
-
let response;
|
|
1765
1665
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1766
1666
|
switch (errorCode) {
|
|
1767
1667
|
case "LimitExceededException":
|
|
@@ -1769,14 +1669,12 @@ const deserializeAws_json1_1UpdateCostAllocationTagsStatusCommandError = async (
|
|
|
1769
1669
|
throw await deserializeAws_json1_1LimitExceededExceptionResponse(parsedOutput, context);
|
|
1770
1670
|
default:
|
|
1771
1671
|
const parsedBody = parsedOutput.body;
|
|
1772
|
-
|
|
1773
|
-
|
|
1774
|
-
|
|
1775
|
-
|
|
1776
|
-
|
|
1777
|
-
$metadata,
|
|
1672
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1673
|
+
output,
|
|
1674
|
+
parsedBody,
|
|
1675
|
+
exceptionCtor: CostExplorerServiceException_1.CostExplorerServiceException,
|
|
1676
|
+
errorCode,
|
|
1778
1677
|
});
|
|
1779
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1780
1678
|
}
|
|
1781
1679
|
};
|
|
1782
1680
|
const deserializeAws_json1_1UpdateCostCategoryDefinitionCommand = async (output, context) => {
|
|
@@ -1798,7 +1696,6 @@ const deserializeAws_json1_1UpdateCostCategoryDefinitionCommandError = async (ou
|
|
|
1798
1696
|
...output,
|
|
1799
1697
|
body: await parseBody(output.body, context),
|
|
1800
1698
|
};
|
|
1801
|
-
let response;
|
|
1802
1699
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1803
1700
|
switch (errorCode) {
|
|
1804
1701
|
case "LimitExceededException":
|
|
@@ -1812,14 +1709,12 @@ const deserializeAws_json1_1UpdateCostCategoryDefinitionCommandError = async (ou
|
|
|
1812
1709
|
throw await deserializeAws_json1_1ServiceQuotaExceededExceptionResponse(parsedOutput, context);
|
|
1813
1710
|
default:
|
|
1814
1711
|
const parsedBody = parsedOutput.body;
|
|
1815
|
-
|
|
1816
|
-
|
|
1817
|
-
|
|
1818
|
-
|
|
1819
|
-
|
|
1820
|
-
$metadata,
|
|
1712
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1713
|
+
output,
|
|
1714
|
+
parsedBody,
|
|
1715
|
+
exceptionCtor: CostExplorerServiceException_1.CostExplorerServiceException,
|
|
1716
|
+
errorCode,
|
|
1821
1717
|
});
|
|
1822
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1823
1718
|
}
|
|
1824
1719
|
};
|
|
1825
1720
|
const deserializeAws_json1_1BillExpirationExceptionResponse = async (parsedOutput, context) => {
|
|
@@ -1959,9 +1854,6 @@ const serializeAws_json1_1CostAllocationTagKeyList = (input, context) => {
|
|
|
1959
1854
|
return input
|
|
1960
1855
|
.filter((e) => e != null)
|
|
1961
1856
|
.map((entry) => {
|
|
1962
|
-
if (entry === null) {
|
|
1963
|
-
return null;
|
|
1964
|
-
}
|
|
1965
1857
|
return entry;
|
|
1966
1858
|
});
|
|
1967
1859
|
};
|
|
@@ -1975,9 +1867,6 @@ const serializeAws_json1_1CostAllocationTagStatusList = (input, context) => {
|
|
|
1975
1867
|
return input
|
|
1976
1868
|
.filter((e) => e != null)
|
|
1977
1869
|
.map((entry) => {
|
|
1978
|
-
if (entry === null) {
|
|
1979
|
-
return null;
|
|
1980
|
-
}
|
|
1981
1870
|
return serializeAws_json1_1CostAllocationTagStatusEntry(entry, context);
|
|
1982
1871
|
});
|
|
1983
1872
|
};
|
|
@@ -2001,9 +1890,6 @@ const serializeAws_json1_1CostCategoryRulesList = (input, context) => {
|
|
|
2001
1890
|
return input
|
|
2002
1891
|
.filter((e) => e != null)
|
|
2003
1892
|
.map((entry) => {
|
|
2004
|
-
if (entry === null) {
|
|
2005
|
-
return null;
|
|
2006
|
-
}
|
|
2007
1893
|
return serializeAws_json1_1CostCategoryRule(entry, context);
|
|
2008
1894
|
});
|
|
2009
1895
|
};
|
|
@@ -2031,9 +1917,6 @@ const serializeAws_json1_1CostCategorySplitChargeRuleParametersList = (input, co
|
|
|
2031
1917
|
return input
|
|
2032
1918
|
.filter((e) => e != null)
|
|
2033
1919
|
.map((entry) => {
|
|
2034
|
-
if (entry === null) {
|
|
2035
|
-
return null;
|
|
2036
|
-
}
|
|
2037
1920
|
return serializeAws_json1_1CostCategorySplitChargeRuleParameter(entry, context);
|
|
2038
1921
|
});
|
|
2039
1922
|
};
|
|
@@ -2041,9 +1924,6 @@ const serializeAws_json1_1CostCategorySplitChargeRuleParameterValuesList = (inpu
|
|
|
2041
1924
|
return input
|
|
2042
1925
|
.filter((e) => e != null)
|
|
2043
1926
|
.map((entry) => {
|
|
2044
|
-
if (entry === null) {
|
|
2045
|
-
return null;
|
|
2046
|
-
}
|
|
2047
1927
|
return entry;
|
|
2048
1928
|
});
|
|
2049
1929
|
};
|
|
@@ -2051,9 +1931,6 @@ const serializeAws_json1_1CostCategorySplitChargeRulesList = (input, context) =>
|
|
|
2051
1931
|
return input
|
|
2052
1932
|
.filter((e) => e != null)
|
|
2053
1933
|
.map((entry) => {
|
|
2054
|
-
if (entry === null) {
|
|
2055
|
-
return null;
|
|
2056
|
-
}
|
|
2057
1934
|
return serializeAws_json1_1CostCategorySplitChargeRule(entry, context);
|
|
2058
1935
|
});
|
|
2059
1936
|
};
|
|
@@ -2061,9 +1938,6 @@ const serializeAws_json1_1CostCategorySplitChargeRuleTargetsList = (input, conte
|
|
|
2061
1938
|
return input
|
|
2062
1939
|
.filter((e) => e != null)
|
|
2063
1940
|
.map((entry) => {
|
|
2064
|
-
if (entry === null) {
|
|
2065
|
-
return null;
|
|
2066
|
-
}
|
|
2067
1941
|
return entry;
|
|
2068
1942
|
});
|
|
2069
1943
|
};
|
|
@@ -2163,9 +2037,6 @@ const serializeAws_json1_1Expressions = (input, context) => {
|
|
|
2163
2037
|
return input
|
|
2164
2038
|
.filter((e) => e != null)
|
|
2165
2039
|
.map((entry) => {
|
|
2166
|
-
if (entry === null) {
|
|
2167
|
-
return null;
|
|
2168
|
-
}
|
|
2169
2040
|
return serializeAws_json1_1Expression(entry, context);
|
|
2170
2041
|
});
|
|
2171
2042
|
};
|
|
@@ -2374,9 +2245,6 @@ const serializeAws_json1_1GroupDefinitions = (input, context) => {
|
|
|
2374
2245
|
return input
|
|
2375
2246
|
.filter((e) => e != null)
|
|
2376
2247
|
.map((entry) => {
|
|
2377
|
-
if (entry === null) {
|
|
2378
|
-
return null;
|
|
2379
|
-
}
|
|
2380
2248
|
return serializeAws_json1_1GroupDefinition(entry, context);
|
|
2381
2249
|
});
|
|
2382
2250
|
};
|
|
@@ -2405,9 +2273,6 @@ const serializeAws_json1_1MatchOptions = (input, context) => {
|
|
|
2405
2273
|
return input
|
|
2406
2274
|
.filter((e) => e != null)
|
|
2407
2275
|
.map((entry) => {
|
|
2408
|
-
if (entry === null) {
|
|
2409
|
-
return null;
|
|
2410
|
-
}
|
|
2411
2276
|
return entry;
|
|
2412
2277
|
});
|
|
2413
2278
|
};
|
|
@@ -2415,9 +2280,6 @@ const serializeAws_json1_1MetricNames = (input, context) => {
|
|
|
2415
2280
|
return input
|
|
2416
2281
|
.filter((e) => e != null)
|
|
2417
2282
|
.map((entry) => {
|
|
2418
|
-
if (entry === null) {
|
|
2419
|
-
return null;
|
|
2420
|
-
}
|
|
2421
2283
|
return entry;
|
|
2422
2284
|
});
|
|
2423
2285
|
};
|
|
@@ -2425,9 +2287,6 @@ const serializeAws_json1_1MonitorArnList = (input, context) => {
|
|
|
2425
2287
|
return input
|
|
2426
2288
|
.filter((e) => e != null)
|
|
2427
2289
|
.map((entry) => {
|
|
2428
|
-
if (entry === null) {
|
|
2429
|
-
return null;
|
|
2430
|
-
}
|
|
2431
2290
|
return entry;
|
|
2432
2291
|
});
|
|
2433
2292
|
};
|
|
@@ -2447,9 +2306,6 @@ const serializeAws_json1_1ResourceTagKeyList = (input, context) => {
|
|
|
2447
2306
|
return input
|
|
2448
2307
|
.filter((e) => e != null)
|
|
2449
2308
|
.map((entry) => {
|
|
2450
|
-
if (entry === null) {
|
|
2451
|
-
return null;
|
|
2452
|
-
}
|
|
2453
2309
|
return entry;
|
|
2454
2310
|
});
|
|
2455
2311
|
};
|
|
@@ -2457,9 +2313,6 @@ const serializeAws_json1_1ResourceTagList = (input, context) => {
|
|
|
2457
2313
|
return input
|
|
2458
2314
|
.filter((e) => e != null)
|
|
2459
2315
|
.map((entry) => {
|
|
2460
|
-
if (entry === null) {
|
|
2461
|
-
return null;
|
|
2462
|
-
}
|
|
2463
2316
|
return serializeAws_json1_1ResourceTag(entry, context);
|
|
2464
2317
|
});
|
|
2465
2318
|
};
|
|
@@ -2473,9 +2326,6 @@ const serializeAws_json1_1SavingsPlansDataTypes = (input, context) => {
|
|
|
2473
2326
|
return input
|
|
2474
2327
|
.filter((e) => e != null)
|
|
2475
2328
|
.map((entry) => {
|
|
2476
|
-
if (entry === null) {
|
|
2477
|
-
return null;
|
|
2478
|
-
}
|
|
2479
2329
|
return entry;
|
|
2480
2330
|
});
|
|
2481
2331
|
};
|
|
@@ -2496,9 +2346,6 @@ const serializeAws_json1_1SortDefinitions = (input, context) => {
|
|
|
2496
2346
|
return input
|
|
2497
2347
|
.filter((e) => e != null)
|
|
2498
2348
|
.map((entry) => {
|
|
2499
|
-
if (entry === null) {
|
|
2500
|
-
return null;
|
|
2501
|
-
}
|
|
2502
2349
|
return serializeAws_json1_1SortDefinition(entry, context);
|
|
2503
2350
|
});
|
|
2504
2351
|
};
|
|
@@ -2513,9 +2360,6 @@ const serializeAws_json1_1Subscribers = (input, context) => {
|
|
|
2513
2360
|
return input
|
|
2514
2361
|
.filter((e) => e != null)
|
|
2515
2362
|
.map((entry) => {
|
|
2516
|
-
if (entry === null) {
|
|
2517
|
-
return null;
|
|
2518
|
-
}
|
|
2519
2363
|
return serializeAws_json1_1Subscriber(entry, context);
|
|
2520
2364
|
});
|
|
2521
2365
|
};
|
|
@@ -2589,9 +2433,6 @@ const serializeAws_json1_1Values = (input, context) => {
|
|
|
2589
2433
|
return input
|
|
2590
2434
|
.filter((e) => e != null)
|
|
2591
2435
|
.map((entry) => {
|
|
2592
|
-
if (entry === null) {
|
|
2593
|
-
return null;
|
|
2594
|
-
}
|
|
2595
2436
|
return entry;
|
|
2596
2437
|
});
|
|
2597
2438
|
};
|