@aws-sdk/client-budgets 3.141.0 → 3.142.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 +11 -0
- package/dist-cjs/protocols/Aws_json1_1.js +115 -208
- package/dist-es/protocols/Aws_json1_1.js +185 -209
- package/package.json +6 -6
|
@@ -254,7 +254,6 @@ const deserializeAws_json1_1CreateBudgetCommandError = async (output, context) =
|
|
|
254
254
|
...output,
|
|
255
255
|
body: await parseBody(output.body, context),
|
|
256
256
|
};
|
|
257
|
-
let response;
|
|
258
257
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
259
258
|
switch (errorCode) {
|
|
260
259
|
case "AccessDeniedException":
|
|
@@ -277,14 +276,12 @@ const deserializeAws_json1_1CreateBudgetCommandError = async (output, context) =
|
|
|
277
276
|
throw await deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context);
|
|
278
277
|
default:
|
|
279
278
|
const parsedBody = parsedOutput.body;
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
$metadata,
|
|
279
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
280
|
+
output,
|
|
281
|
+
parsedBody,
|
|
282
|
+
exceptionCtor: BudgetsServiceException_1.BudgetsServiceException,
|
|
283
|
+
errorCode,
|
|
286
284
|
});
|
|
287
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
288
285
|
}
|
|
289
286
|
};
|
|
290
287
|
const deserializeAws_json1_1CreateBudgetActionCommand = async (output, context) => {
|
|
@@ -306,7 +303,6 @@ const deserializeAws_json1_1CreateBudgetActionCommandError = async (output, cont
|
|
|
306
303
|
...output,
|
|
307
304
|
body: await parseBody(output.body, context),
|
|
308
305
|
};
|
|
309
|
-
let response;
|
|
310
306
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
311
307
|
switch (errorCode) {
|
|
312
308
|
case "AccessDeniedException":
|
|
@@ -332,14 +328,12 @@ const deserializeAws_json1_1CreateBudgetActionCommandError = async (output, cont
|
|
|
332
328
|
throw await deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context);
|
|
333
329
|
default:
|
|
334
330
|
const parsedBody = parsedOutput.body;
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
$metadata,
|
|
331
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
332
|
+
output,
|
|
333
|
+
parsedBody,
|
|
334
|
+
exceptionCtor: BudgetsServiceException_1.BudgetsServiceException,
|
|
335
|
+
errorCode,
|
|
341
336
|
});
|
|
342
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
343
337
|
}
|
|
344
338
|
};
|
|
345
339
|
const deserializeAws_json1_1CreateNotificationCommand = async (output, context) => {
|
|
@@ -361,7 +355,6 @@ const deserializeAws_json1_1CreateNotificationCommandError = async (output, cont
|
|
|
361
355
|
...output,
|
|
362
356
|
body: await parseBody(output.body, context),
|
|
363
357
|
};
|
|
364
|
-
let response;
|
|
365
358
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
366
359
|
switch (errorCode) {
|
|
367
360
|
case "AccessDeniedException":
|
|
@@ -387,14 +380,12 @@ const deserializeAws_json1_1CreateNotificationCommandError = async (output, cont
|
|
|
387
380
|
throw await deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context);
|
|
388
381
|
default:
|
|
389
382
|
const parsedBody = parsedOutput.body;
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
$metadata,
|
|
383
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
384
|
+
output,
|
|
385
|
+
parsedBody,
|
|
386
|
+
exceptionCtor: BudgetsServiceException_1.BudgetsServiceException,
|
|
387
|
+
errorCode,
|
|
396
388
|
});
|
|
397
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
398
389
|
}
|
|
399
390
|
};
|
|
400
391
|
const deserializeAws_json1_1CreateSubscriberCommand = async (output, context) => {
|
|
@@ -416,7 +407,6 @@ const deserializeAws_json1_1CreateSubscriberCommandError = async (output, contex
|
|
|
416
407
|
...output,
|
|
417
408
|
body: await parseBody(output.body, context),
|
|
418
409
|
};
|
|
419
|
-
let response;
|
|
420
410
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
421
411
|
switch (errorCode) {
|
|
422
412
|
case "AccessDeniedException":
|
|
@@ -442,14 +432,12 @@ const deserializeAws_json1_1CreateSubscriberCommandError = async (output, contex
|
|
|
442
432
|
throw await deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context);
|
|
443
433
|
default:
|
|
444
434
|
const parsedBody = parsedOutput.body;
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
$metadata,
|
|
435
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
436
|
+
output,
|
|
437
|
+
parsedBody,
|
|
438
|
+
exceptionCtor: BudgetsServiceException_1.BudgetsServiceException,
|
|
439
|
+
errorCode,
|
|
451
440
|
});
|
|
452
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
453
441
|
}
|
|
454
442
|
};
|
|
455
443
|
const deserializeAws_json1_1DeleteBudgetCommand = async (output, context) => {
|
|
@@ -471,7 +459,6 @@ const deserializeAws_json1_1DeleteBudgetCommandError = async (output, context) =
|
|
|
471
459
|
...output,
|
|
472
460
|
body: await parseBody(output.body, context),
|
|
473
461
|
};
|
|
474
|
-
let response;
|
|
475
462
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
476
463
|
switch (errorCode) {
|
|
477
464
|
case "AccessDeniedException":
|
|
@@ -491,14 +478,12 @@ const deserializeAws_json1_1DeleteBudgetCommandError = async (output, context) =
|
|
|
491
478
|
throw await deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context);
|
|
492
479
|
default:
|
|
493
480
|
const parsedBody = parsedOutput.body;
|
|
494
|
-
|
|
495
|
-
|
|
496
|
-
|
|
497
|
-
|
|
498
|
-
|
|
499
|
-
$metadata,
|
|
481
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
482
|
+
output,
|
|
483
|
+
parsedBody,
|
|
484
|
+
exceptionCtor: BudgetsServiceException_1.BudgetsServiceException,
|
|
485
|
+
errorCode,
|
|
500
486
|
});
|
|
501
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
502
487
|
}
|
|
503
488
|
};
|
|
504
489
|
const deserializeAws_json1_1DeleteBudgetActionCommand = async (output, context) => {
|
|
@@ -520,7 +505,6 @@ const deserializeAws_json1_1DeleteBudgetActionCommandError = async (output, cont
|
|
|
520
505
|
...output,
|
|
521
506
|
body: await parseBody(output.body, context),
|
|
522
507
|
};
|
|
523
|
-
let response;
|
|
524
508
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
525
509
|
switch (errorCode) {
|
|
526
510
|
case "AccessDeniedException":
|
|
@@ -543,14 +527,12 @@ const deserializeAws_json1_1DeleteBudgetActionCommandError = async (output, cont
|
|
|
543
527
|
throw await deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context);
|
|
544
528
|
default:
|
|
545
529
|
const parsedBody = parsedOutput.body;
|
|
546
|
-
|
|
547
|
-
|
|
548
|
-
|
|
549
|
-
|
|
550
|
-
|
|
551
|
-
$metadata,
|
|
530
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
531
|
+
output,
|
|
532
|
+
parsedBody,
|
|
533
|
+
exceptionCtor: BudgetsServiceException_1.BudgetsServiceException,
|
|
534
|
+
errorCode,
|
|
552
535
|
});
|
|
553
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
554
536
|
}
|
|
555
537
|
};
|
|
556
538
|
const deserializeAws_json1_1DeleteNotificationCommand = async (output, context) => {
|
|
@@ -572,7 +554,6 @@ const deserializeAws_json1_1DeleteNotificationCommandError = async (output, cont
|
|
|
572
554
|
...output,
|
|
573
555
|
body: await parseBody(output.body, context),
|
|
574
556
|
};
|
|
575
|
-
let response;
|
|
576
557
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
577
558
|
switch (errorCode) {
|
|
578
559
|
case "AccessDeniedException":
|
|
@@ -592,14 +573,12 @@ const deserializeAws_json1_1DeleteNotificationCommandError = async (output, cont
|
|
|
592
573
|
throw await deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context);
|
|
593
574
|
default:
|
|
594
575
|
const parsedBody = parsedOutput.body;
|
|
595
|
-
|
|
596
|
-
|
|
597
|
-
|
|
598
|
-
|
|
599
|
-
|
|
600
|
-
$metadata,
|
|
576
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
577
|
+
output,
|
|
578
|
+
parsedBody,
|
|
579
|
+
exceptionCtor: BudgetsServiceException_1.BudgetsServiceException,
|
|
580
|
+
errorCode,
|
|
601
581
|
});
|
|
602
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
603
582
|
}
|
|
604
583
|
};
|
|
605
584
|
const deserializeAws_json1_1DeleteSubscriberCommand = async (output, context) => {
|
|
@@ -621,7 +600,6 @@ const deserializeAws_json1_1DeleteSubscriberCommandError = async (output, contex
|
|
|
621
600
|
...output,
|
|
622
601
|
body: await parseBody(output.body, context),
|
|
623
602
|
};
|
|
624
|
-
let response;
|
|
625
603
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
626
604
|
switch (errorCode) {
|
|
627
605
|
case "AccessDeniedException":
|
|
@@ -641,14 +619,12 @@ const deserializeAws_json1_1DeleteSubscriberCommandError = async (output, contex
|
|
|
641
619
|
throw await deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context);
|
|
642
620
|
default:
|
|
643
621
|
const parsedBody = parsedOutput.body;
|
|
644
|
-
|
|
645
|
-
|
|
646
|
-
|
|
647
|
-
|
|
648
|
-
|
|
649
|
-
$metadata,
|
|
622
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
623
|
+
output,
|
|
624
|
+
parsedBody,
|
|
625
|
+
exceptionCtor: BudgetsServiceException_1.BudgetsServiceException,
|
|
626
|
+
errorCode,
|
|
650
627
|
});
|
|
651
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
652
628
|
}
|
|
653
629
|
};
|
|
654
630
|
const deserializeAws_json1_1DescribeBudgetCommand = async (output, context) => {
|
|
@@ -670,7 +646,6 @@ const deserializeAws_json1_1DescribeBudgetCommandError = async (output, context)
|
|
|
670
646
|
...output,
|
|
671
647
|
body: await parseBody(output.body, context),
|
|
672
648
|
};
|
|
673
|
-
let response;
|
|
674
649
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
675
650
|
switch (errorCode) {
|
|
676
651
|
case "AccessDeniedException":
|
|
@@ -690,14 +665,12 @@ const deserializeAws_json1_1DescribeBudgetCommandError = async (output, context)
|
|
|
690
665
|
throw await deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context);
|
|
691
666
|
default:
|
|
692
667
|
const parsedBody = parsedOutput.body;
|
|
693
|
-
|
|
694
|
-
|
|
695
|
-
|
|
696
|
-
|
|
697
|
-
|
|
698
|
-
$metadata,
|
|
668
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
669
|
+
output,
|
|
670
|
+
parsedBody,
|
|
671
|
+
exceptionCtor: BudgetsServiceException_1.BudgetsServiceException,
|
|
672
|
+
errorCode,
|
|
699
673
|
});
|
|
700
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
701
674
|
}
|
|
702
675
|
};
|
|
703
676
|
const deserializeAws_json1_1DescribeBudgetActionCommand = async (output, context) => {
|
|
@@ -719,7 +692,6 @@ const deserializeAws_json1_1DescribeBudgetActionCommandError = async (output, co
|
|
|
719
692
|
...output,
|
|
720
693
|
body: await parseBody(output.body, context),
|
|
721
694
|
};
|
|
722
|
-
let response;
|
|
723
695
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
724
696
|
switch (errorCode) {
|
|
725
697
|
case "AccessDeniedException":
|
|
@@ -739,14 +711,12 @@ const deserializeAws_json1_1DescribeBudgetActionCommandError = async (output, co
|
|
|
739
711
|
throw await deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context);
|
|
740
712
|
default:
|
|
741
713
|
const parsedBody = parsedOutput.body;
|
|
742
|
-
|
|
743
|
-
|
|
744
|
-
|
|
745
|
-
|
|
746
|
-
|
|
747
|
-
$metadata,
|
|
714
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
715
|
+
output,
|
|
716
|
+
parsedBody,
|
|
717
|
+
exceptionCtor: BudgetsServiceException_1.BudgetsServiceException,
|
|
718
|
+
errorCode,
|
|
748
719
|
});
|
|
749
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
750
720
|
}
|
|
751
721
|
};
|
|
752
722
|
const deserializeAws_json1_1DescribeBudgetActionHistoriesCommand = async (output, context) => {
|
|
@@ -768,7 +738,6 @@ const deserializeAws_json1_1DescribeBudgetActionHistoriesCommandError = async (o
|
|
|
768
738
|
...output,
|
|
769
739
|
body: await parseBody(output.body, context),
|
|
770
740
|
};
|
|
771
|
-
let response;
|
|
772
741
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
773
742
|
switch (errorCode) {
|
|
774
743
|
case "AccessDeniedException":
|
|
@@ -791,14 +760,12 @@ const deserializeAws_json1_1DescribeBudgetActionHistoriesCommandError = async (o
|
|
|
791
760
|
throw await deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context);
|
|
792
761
|
default:
|
|
793
762
|
const parsedBody = parsedOutput.body;
|
|
794
|
-
|
|
795
|
-
|
|
796
|
-
|
|
797
|
-
|
|
798
|
-
|
|
799
|
-
$metadata,
|
|
763
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
764
|
+
output,
|
|
765
|
+
parsedBody,
|
|
766
|
+
exceptionCtor: BudgetsServiceException_1.BudgetsServiceException,
|
|
767
|
+
errorCode,
|
|
800
768
|
});
|
|
801
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
802
769
|
}
|
|
803
770
|
};
|
|
804
771
|
const deserializeAws_json1_1DescribeBudgetActionsForAccountCommand = async (output, context) => {
|
|
@@ -820,7 +787,6 @@ const deserializeAws_json1_1DescribeBudgetActionsForAccountCommandError = async
|
|
|
820
787
|
...output,
|
|
821
788
|
body: await parseBody(output.body, context),
|
|
822
789
|
};
|
|
823
|
-
let response;
|
|
824
790
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
825
791
|
switch (errorCode) {
|
|
826
792
|
case "AccessDeniedException":
|
|
@@ -840,14 +806,12 @@ const deserializeAws_json1_1DescribeBudgetActionsForAccountCommandError = async
|
|
|
840
806
|
throw await deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context);
|
|
841
807
|
default:
|
|
842
808
|
const parsedBody = parsedOutput.body;
|
|
843
|
-
|
|
844
|
-
|
|
845
|
-
|
|
846
|
-
|
|
847
|
-
|
|
848
|
-
$metadata,
|
|
809
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
810
|
+
output,
|
|
811
|
+
parsedBody,
|
|
812
|
+
exceptionCtor: BudgetsServiceException_1.BudgetsServiceException,
|
|
813
|
+
errorCode,
|
|
849
814
|
});
|
|
850
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
851
815
|
}
|
|
852
816
|
};
|
|
853
817
|
const deserializeAws_json1_1DescribeBudgetActionsForBudgetCommand = async (output, context) => {
|
|
@@ -869,7 +833,6 @@ const deserializeAws_json1_1DescribeBudgetActionsForBudgetCommandError = async (
|
|
|
869
833
|
...output,
|
|
870
834
|
body: await parseBody(output.body, context),
|
|
871
835
|
};
|
|
872
|
-
let response;
|
|
873
836
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
874
837
|
switch (errorCode) {
|
|
875
838
|
case "AccessDeniedException":
|
|
@@ -892,14 +855,12 @@ const deserializeAws_json1_1DescribeBudgetActionsForBudgetCommandError = async (
|
|
|
892
855
|
throw await deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context);
|
|
893
856
|
default:
|
|
894
857
|
const parsedBody = parsedOutput.body;
|
|
895
|
-
|
|
896
|
-
|
|
897
|
-
|
|
898
|
-
|
|
899
|
-
|
|
900
|
-
$metadata,
|
|
858
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
859
|
+
output,
|
|
860
|
+
parsedBody,
|
|
861
|
+
exceptionCtor: BudgetsServiceException_1.BudgetsServiceException,
|
|
862
|
+
errorCode,
|
|
901
863
|
});
|
|
902
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
903
864
|
}
|
|
904
865
|
};
|
|
905
866
|
const deserializeAws_json1_1DescribeBudgetNotificationsForAccountCommand = async (output, context) => {
|
|
@@ -921,7 +882,6 @@ const deserializeAws_json1_1DescribeBudgetNotificationsForAccountCommandError =
|
|
|
921
882
|
...output,
|
|
922
883
|
body: await parseBody(output.body, context),
|
|
923
884
|
};
|
|
924
|
-
let response;
|
|
925
885
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
926
886
|
switch (errorCode) {
|
|
927
887
|
case "AccessDeniedException":
|
|
@@ -947,14 +907,12 @@ const deserializeAws_json1_1DescribeBudgetNotificationsForAccountCommandError =
|
|
|
947
907
|
throw await deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context);
|
|
948
908
|
default:
|
|
949
909
|
const parsedBody = parsedOutput.body;
|
|
950
|
-
|
|
951
|
-
|
|
952
|
-
|
|
953
|
-
|
|
954
|
-
|
|
955
|
-
$metadata,
|
|
910
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
911
|
+
output,
|
|
912
|
+
parsedBody,
|
|
913
|
+
exceptionCtor: BudgetsServiceException_1.BudgetsServiceException,
|
|
914
|
+
errorCode,
|
|
956
915
|
});
|
|
957
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
958
916
|
}
|
|
959
917
|
};
|
|
960
918
|
const deserializeAws_json1_1DescribeBudgetPerformanceHistoryCommand = async (output, context) => {
|
|
@@ -976,7 +934,6 @@ const deserializeAws_json1_1DescribeBudgetPerformanceHistoryCommandError = async
|
|
|
976
934
|
...output,
|
|
977
935
|
body: await parseBody(output.body, context),
|
|
978
936
|
};
|
|
979
|
-
let response;
|
|
980
937
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
981
938
|
switch (errorCode) {
|
|
982
939
|
case "AccessDeniedException":
|
|
@@ -1002,14 +959,12 @@ const deserializeAws_json1_1DescribeBudgetPerformanceHistoryCommandError = async
|
|
|
1002
959
|
throw await deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context);
|
|
1003
960
|
default:
|
|
1004
961
|
const parsedBody = parsedOutput.body;
|
|
1005
|
-
|
|
1006
|
-
|
|
1007
|
-
|
|
1008
|
-
|
|
1009
|
-
|
|
1010
|
-
$metadata,
|
|
962
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
963
|
+
output,
|
|
964
|
+
parsedBody,
|
|
965
|
+
exceptionCtor: BudgetsServiceException_1.BudgetsServiceException,
|
|
966
|
+
errorCode,
|
|
1011
967
|
});
|
|
1012
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1013
968
|
}
|
|
1014
969
|
};
|
|
1015
970
|
const deserializeAws_json1_1DescribeBudgetsCommand = async (output, context) => {
|
|
@@ -1031,7 +986,6 @@ const deserializeAws_json1_1DescribeBudgetsCommandError = async (output, context
|
|
|
1031
986
|
...output,
|
|
1032
987
|
body: await parseBody(output.body, context),
|
|
1033
988
|
};
|
|
1034
|
-
let response;
|
|
1035
989
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1036
990
|
switch (errorCode) {
|
|
1037
991
|
case "AccessDeniedException":
|
|
@@ -1057,14 +1011,12 @@ const deserializeAws_json1_1DescribeBudgetsCommandError = async (output, context
|
|
|
1057
1011
|
throw await deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context);
|
|
1058
1012
|
default:
|
|
1059
1013
|
const parsedBody = parsedOutput.body;
|
|
1060
|
-
|
|
1061
|
-
|
|
1062
|
-
|
|
1063
|
-
|
|
1064
|
-
|
|
1065
|
-
$metadata,
|
|
1014
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1015
|
+
output,
|
|
1016
|
+
parsedBody,
|
|
1017
|
+
exceptionCtor: BudgetsServiceException_1.BudgetsServiceException,
|
|
1018
|
+
errorCode,
|
|
1066
1019
|
});
|
|
1067
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1068
1020
|
}
|
|
1069
1021
|
};
|
|
1070
1022
|
const deserializeAws_json1_1DescribeNotificationsForBudgetCommand = async (output, context) => {
|
|
@@ -1086,7 +1038,6 @@ const deserializeAws_json1_1DescribeNotificationsForBudgetCommandError = async (
|
|
|
1086
1038
|
...output,
|
|
1087
1039
|
body: await parseBody(output.body, context),
|
|
1088
1040
|
};
|
|
1089
|
-
let response;
|
|
1090
1041
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1091
1042
|
switch (errorCode) {
|
|
1092
1043
|
case "AccessDeniedException":
|
|
@@ -1112,14 +1063,12 @@ const deserializeAws_json1_1DescribeNotificationsForBudgetCommandError = async (
|
|
|
1112
1063
|
throw await deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context);
|
|
1113
1064
|
default:
|
|
1114
1065
|
const parsedBody = parsedOutput.body;
|
|
1115
|
-
|
|
1116
|
-
|
|
1117
|
-
|
|
1118
|
-
|
|
1119
|
-
|
|
1120
|
-
$metadata,
|
|
1066
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1067
|
+
output,
|
|
1068
|
+
parsedBody,
|
|
1069
|
+
exceptionCtor: BudgetsServiceException_1.BudgetsServiceException,
|
|
1070
|
+
errorCode,
|
|
1121
1071
|
});
|
|
1122
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1123
1072
|
}
|
|
1124
1073
|
};
|
|
1125
1074
|
const deserializeAws_json1_1DescribeSubscribersForNotificationCommand = async (output, context) => {
|
|
@@ -1141,7 +1090,6 @@ const deserializeAws_json1_1DescribeSubscribersForNotificationCommandError = asy
|
|
|
1141
1090
|
...output,
|
|
1142
1091
|
body: await parseBody(output.body, context),
|
|
1143
1092
|
};
|
|
1144
|
-
let response;
|
|
1145
1093
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1146
1094
|
switch (errorCode) {
|
|
1147
1095
|
case "AccessDeniedException":
|
|
@@ -1167,14 +1115,12 @@ const deserializeAws_json1_1DescribeSubscribersForNotificationCommandError = asy
|
|
|
1167
1115
|
throw await deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context);
|
|
1168
1116
|
default:
|
|
1169
1117
|
const parsedBody = parsedOutput.body;
|
|
1170
|
-
|
|
1171
|
-
|
|
1172
|
-
|
|
1173
|
-
|
|
1174
|
-
|
|
1175
|
-
$metadata,
|
|
1118
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1119
|
+
output,
|
|
1120
|
+
parsedBody,
|
|
1121
|
+
exceptionCtor: BudgetsServiceException_1.BudgetsServiceException,
|
|
1122
|
+
errorCode,
|
|
1176
1123
|
});
|
|
1177
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1178
1124
|
}
|
|
1179
1125
|
};
|
|
1180
1126
|
const deserializeAws_json1_1ExecuteBudgetActionCommand = async (output, context) => {
|
|
@@ -1196,7 +1142,6 @@ const deserializeAws_json1_1ExecuteBudgetActionCommandError = async (output, con
|
|
|
1196
1142
|
...output,
|
|
1197
1143
|
body: await parseBody(output.body, context),
|
|
1198
1144
|
};
|
|
1199
|
-
let response;
|
|
1200
1145
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1201
1146
|
switch (errorCode) {
|
|
1202
1147
|
case "AccessDeniedException":
|
|
@@ -1219,14 +1164,12 @@ const deserializeAws_json1_1ExecuteBudgetActionCommandError = async (output, con
|
|
|
1219
1164
|
throw await deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context);
|
|
1220
1165
|
default:
|
|
1221
1166
|
const parsedBody = parsedOutput.body;
|
|
1222
|
-
|
|
1223
|
-
|
|
1224
|
-
|
|
1225
|
-
|
|
1226
|
-
|
|
1227
|
-
$metadata,
|
|
1167
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1168
|
+
output,
|
|
1169
|
+
parsedBody,
|
|
1170
|
+
exceptionCtor: BudgetsServiceException_1.BudgetsServiceException,
|
|
1171
|
+
errorCode,
|
|
1228
1172
|
});
|
|
1229
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1230
1173
|
}
|
|
1231
1174
|
};
|
|
1232
1175
|
const deserializeAws_json1_1UpdateBudgetCommand = async (output, context) => {
|
|
@@ -1248,7 +1191,6 @@ const deserializeAws_json1_1UpdateBudgetCommandError = async (output, context) =
|
|
|
1248
1191
|
...output,
|
|
1249
1192
|
body: await parseBody(output.body, context),
|
|
1250
1193
|
};
|
|
1251
|
-
let response;
|
|
1252
1194
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1253
1195
|
switch (errorCode) {
|
|
1254
1196
|
case "AccessDeniedException":
|
|
@@ -1268,14 +1210,12 @@ const deserializeAws_json1_1UpdateBudgetCommandError = async (output, context) =
|
|
|
1268
1210
|
throw await deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context);
|
|
1269
1211
|
default:
|
|
1270
1212
|
const parsedBody = parsedOutput.body;
|
|
1271
|
-
|
|
1272
|
-
|
|
1273
|
-
|
|
1274
|
-
|
|
1275
|
-
|
|
1276
|
-
$metadata,
|
|
1213
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1214
|
+
output,
|
|
1215
|
+
parsedBody,
|
|
1216
|
+
exceptionCtor: BudgetsServiceException_1.BudgetsServiceException,
|
|
1217
|
+
errorCode,
|
|
1277
1218
|
});
|
|
1278
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1279
1219
|
}
|
|
1280
1220
|
};
|
|
1281
1221
|
const deserializeAws_json1_1UpdateBudgetActionCommand = async (output, context) => {
|
|
@@ -1297,7 +1237,6 @@ const deserializeAws_json1_1UpdateBudgetActionCommandError = async (output, cont
|
|
|
1297
1237
|
...output,
|
|
1298
1238
|
body: await parseBody(output.body, context),
|
|
1299
1239
|
};
|
|
1300
|
-
let response;
|
|
1301
1240
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1302
1241
|
switch (errorCode) {
|
|
1303
1242
|
case "AccessDeniedException":
|
|
@@ -1320,14 +1259,12 @@ const deserializeAws_json1_1UpdateBudgetActionCommandError = async (output, cont
|
|
|
1320
1259
|
throw await deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context);
|
|
1321
1260
|
default:
|
|
1322
1261
|
const parsedBody = parsedOutput.body;
|
|
1323
|
-
|
|
1324
|
-
|
|
1325
|
-
|
|
1326
|
-
|
|
1327
|
-
|
|
1328
|
-
$metadata,
|
|
1262
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1263
|
+
output,
|
|
1264
|
+
parsedBody,
|
|
1265
|
+
exceptionCtor: BudgetsServiceException_1.BudgetsServiceException,
|
|
1266
|
+
errorCode,
|
|
1329
1267
|
});
|
|
1330
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1331
1268
|
}
|
|
1332
1269
|
};
|
|
1333
1270
|
const deserializeAws_json1_1UpdateNotificationCommand = async (output, context) => {
|
|
@@ -1349,7 +1286,6 @@ const deserializeAws_json1_1UpdateNotificationCommandError = async (output, cont
|
|
|
1349
1286
|
...output,
|
|
1350
1287
|
body: await parseBody(output.body, context),
|
|
1351
1288
|
};
|
|
1352
|
-
let response;
|
|
1353
1289
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1354
1290
|
switch (errorCode) {
|
|
1355
1291
|
case "AccessDeniedException":
|
|
@@ -1372,14 +1308,12 @@ const deserializeAws_json1_1UpdateNotificationCommandError = async (output, cont
|
|
|
1372
1308
|
throw await deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context);
|
|
1373
1309
|
default:
|
|
1374
1310
|
const parsedBody = parsedOutput.body;
|
|
1375
|
-
|
|
1376
|
-
|
|
1377
|
-
|
|
1378
|
-
|
|
1379
|
-
|
|
1380
|
-
$metadata,
|
|
1311
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1312
|
+
output,
|
|
1313
|
+
parsedBody,
|
|
1314
|
+
exceptionCtor: BudgetsServiceException_1.BudgetsServiceException,
|
|
1315
|
+
errorCode,
|
|
1381
1316
|
});
|
|
1382
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1383
1317
|
}
|
|
1384
1318
|
};
|
|
1385
1319
|
const deserializeAws_json1_1UpdateSubscriberCommand = async (output, context) => {
|
|
@@ -1401,7 +1335,6 @@ const deserializeAws_json1_1UpdateSubscriberCommandError = async (output, contex
|
|
|
1401
1335
|
...output,
|
|
1402
1336
|
body: await parseBody(output.body, context),
|
|
1403
1337
|
};
|
|
1404
|
-
let response;
|
|
1405
1338
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1406
1339
|
switch (errorCode) {
|
|
1407
1340
|
case "AccessDeniedException":
|
|
@@ -1424,14 +1357,12 @@ const deserializeAws_json1_1UpdateSubscriberCommandError = async (output, contex
|
|
|
1424
1357
|
throw await deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context);
|
|
1425
1358
|
default:
|
|
1426
1359
|
const parsedBody = parsedOutput.body;
|
|
1427
|
-
|
|
1428
|
-
|
|
1429
|
-
|
|
1430
|
-
|
|
1431
|
-
|
|
1432
|
-
$metadata,
|
|
1360
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1361
|
+
output,
|
|
1362
|
+
parsedBody,
|
|
1363
|
+
exceptionCtor: BudgetsServiceException_1.BudgetsServiceException,
|
|
1364
|
+
errorCode,
|
|
1433
1365
|
});
|
|
1434
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1435
1366
|
}
|
|
1436
1367
|
};
|
|
1437
1368
|
const deserializeAws_json1_1AccessDeniedExceptionResponse = async (parsedOutput, context) => {
|
|
@@ -1759,9 +1690,6 @@ const serializeAws_json1_1DimensionValues = (input, context) => {
|
|
|
1759
1690
|
return input
|
|
1760
1691
|
.filter((e) => e != null)
|
|
1761
1692
|
.map((entry) => {
|
|
1762
|
-
if (entry === null) {
|
|
1763
|
-
return null;
|
|
1764
|
-
}
|
|
1765
1693
|
return entry;
|
|
1766
1694
|
});
|
|
1767
1695
|
};
|
|
@@ -1777,9 +1705,6 @@ const serializeAws_json1_1Groups = (input, context) => {
|
|
|
1777
1705
|
return input
|
|
1778
1706
|
.filter((e) => e != null)
|
|
1779
1707
|
.map((entry) => {
|
|
1780
|
-
if (entry === null) {
|
|
1781
|
-
return null;
|
|
1782
|
-
}
|
|
1783
1708
|
return entry;
|
|
1784
1709
|
});
|
|
1785
1710
|
};
|
|
@@ -1801,9 +1726,6 @@ const serializeAws_json1_1InstanceIds = (input, context) => {
|
|
|
1801
1726
|
return input
|
|
1802
1727
|
.filter((e) => e != null)
|
|
1803
1728
|
.map((entry) => {
|
|
1804
|
-
if (entry === null) {
|
|
1805
|
-
return null;
|
|
1806
|
-
}
|
|
1807
1729
|
return entry;
|
|
1808
1730
|
});
|
|
1809
1731
|
};
|
|
@@ -1826,9 +1748,6 @@ const serializeAws_json1_1NotificationWithSubscribersList = (input, context) =>
|
|
|
1826
1748
|
return input
|
|
1827
1749
|
.filter((e) => e != null)
|
|
1828
1750
|
.map((entry) => {
|
|
1829
|
-
if (entry === null) {
|
|
1830
|
-
return null;
|
|
1831
|
-
}
|
|
1832
1751
|
return serializeAws_json1_1NotificationWithSubscribers(entry, context);
|
|
1833
1752
|
});
|
|
1834
1753
|
};
|
|
@@ -1847,9 +1766,6 @@ const serializeAws_json1_1Roles = (input, context) => {
|
|
|
1847
1766
|
return input
|
|
1848
1767
|
.filter((e) => e != null)
|
|
1849
1768
|
.map((entry) => {
|
|
1850
|
-
if (entry === null) {
|
|
1851
|
-
return null;
|
|
1852
|
-
}
|
|
1853
1769
|
return entry;
|
|
1854
1770
|
});
|
|
1855
1771
|
};
|
|
@@ -1882,9 +1798,6 @@ const serializeAws_json1_1Subscribers = (input, context) => {
|
|
|
1882
1798
|
return input
|
|
1883
1799
|
.filter((e) => e != null)
|
|
1884
1800
|
.map((entry) => {
|
|
1885
|
-
if (entry === null) {
|
|
1886
|
-
return null;
|
|
1887
|
-
}
|
|
1888
1801
|
return serializeAws_json1_1Subscriber(entry, context);
|
|
1889
1802
|
});
|
|
1890
1803
|
};
|
|
@@ -1892,9 +1805,6 @@ const serializeAws_json1_1TargetIds = (input, context) => {
|
|
|
1892
1805
|
return input
|
|
1893
1806
|
.filter((e) => e != null)
|
|
1894
1807
|
.map((entry) => {
|
|
1895
|
-
if (entry === null) {
|
|
1896
|
-
return null;
|
|
1897
|
-
}
|
|
1898
1808
|
return entry;
|
|
1899
1809
|
});
|
|
1900
1810
|
};
|
|
@@ -1950,9 +1860,6 @@ const serializeAws_json1_1Users = (input, context) => {
|
|
|
1950
1860
|
return input
|
|
1951
1861
|
.filter((e) => e != null)
|
|
1952
1862
|
.map((entry) => {
|
|
1953
|
-
if (entry === null) {
|
|
1954
|
-
return null;
|
|
1955
|
-
}
|
|
1956
1863
|
return entry;
|
|
1957
1864
|
});
|
|
1958
1865
|
};
|