@aws-sdk/client-budgets 3.503.1 → 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 +48 -787
- package/dist-es/protocols/Aws_json1_1.js +40 -779
- package/package.json +3 -3
package/dist-cjs/index.js
CHANGED
|
@@ -691,7 +691,7 @@ var se_UpdateSubscriberCommand = /* @__PURE__ */ __name(async (input, context) =
|
|
|
691
691
|
}, "se_UpdateSubscriberCommand");
|
|
692
692
|
var de_CreateBudgetCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
693
693
|
if (output.statusCode >= 300) {
|
|
694
|
-
return
|
|
694
|
+
return de_CommandError(output, context);
|
|
695
695
|
}
|
|
696
696
|
const data = await parseBody(output.body, context);
|
|
697
697
|
let contents = {};
|
|
@@ -702,43 +702,9 @@ var de_CreateBudgetCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
702
702
|
};
|
|
703
703
|
return response;
|
|
704
704
|
}, "de_CreateBudgetCommand");
|
|
705
|
-
var de_CreateBudgetCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
706
|
-
const parsedOutput = {
|
|
707
|
-
...output,
|
|
708
|
-
body: await parseErrorBody(output.body, context)
|
|
709
|
-
};
|
|
710
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
711
|
-
switch (errorCode) {
|
|
712
|
-
case "AccessDeniedException":
|
|
713
|
-
case "com.amazonaws.budgets#AccessDeniedException":
|
|
714
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
715
|
-
case "CreationLimitExceededException":
|
|
716
|
-
case "com.amazonaws.budgets#CreationLimitExceededException":
|
|
717
|
-
throw await de_CreationLimitExceededExceptionRes(parsedOutput, context);
|
|
718
|
-
case "DuplicateRecordException":
|
|
719
|
-
case "com.amazonaws.budgets#DuplicateRecordException":
|
|
720
|
-
throw await de_DuplicateRecordExceptionRes(parsedOutput, context);
|
|
721
|
-
case "InternalErrorException":
|
|
722
|
-
case "com.amazonaws.budgets#InternalErrorException":
|
|
723
|
-
throw await de_InternalErrorExceptionRes(parsedOutput, context);
|
|
724
|
-
case "InvalidParameterException":
|
|
725
|
-
case "com.amazonaws.budgets#InvalidParameterException":
|
|
726
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
727
|
-
case "ThrottlingException":
|
|
728
|
-
case "com.amazonaws.budgets#ThrottlingException":
|
|
729
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
730
|
-
default:
|
|
731
|
-
const parsedBody = parsedOutput.body;
|
|
732
|
-
return throwDefaultError({
|
|
733
|
-
output,
|
|
734
|
-
parsedBody,
|
|
735
|
-
errorCode
|
|
736
|
-
});
|
|
737
|
-
}
|
|
738
|
-
}, "de_CreateBudgetCommandError");
|
|
739
705
|
var de_CreateBudgetActionCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
740
706
|
if (output.statusCode >= 300) {
|
|
741
|
-
return
|
|
707
|
+
return de_CommandError(output, context);
|
|
742
708
|
}
|
|
743
709
|
const data = await parseBody(output.body, context);
|
|
744
710
|
let contents = {};
|
|
@@ -749,46 +715,9 @@ var de_CreateBudgetActionCommand = /* @__PURE__ */ __name(async (output, context
|
|
|
749
715
|
};
|
|
750
716
|
return response;
|
|
751
717
|
}, "de_CreateBudgetActionCommand");
|
|
752
|
-
var de_CreateBudgetActionCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
753
|
-
const parsedOutput = {
|
|
754
|
-
...output,
|
|
755
|
-
body: await parseErrorBody(output.body, context)
|
|
756
|
-
};
|
|
757
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
758
|
-
switch (errorCode) {
|
|
759
|
-
case "AccessDeniedException":
|
|
760
|
-
case "com.amazonaws.budgets#AccessDeniedException":
|
|
761
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
762
|
-
case "CreationLimitExceededException":
|
|
763
|
-
case "com.amazonaws.budgets#CreationLimitExceededException":
|
|
764
|
-
throw await de_CreationLimitExceededExceptionRes(parsedOutput, context);
|
|
765
|
-
case "DuplicateRecordException":
|
|
766
|
-
case "com.amazonaws.budgets#DuplicateRecordException":
|
|
767
|
-
throw await de_DuplicateRecordExceptionRes(parsedOutput, context);
|
|
768
|
-
case "InternalErrorException":
|
|
769
|
-
case "com.amazonaws.budgets#InternalErrorException":
|
|
770
|
-
throw await de_InternalErrorExceptionRes(parsedOutput, context);
|
|
771
|
-
case "InvalidParameterException":
|
|
772
|
-
case "com.amazonaws.budgets#InvalidParameterException":
|
|
773
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
774
|
-
case "NotFoundException":
|
|
775
|
-
case "com.amazonaws.budgets#NotFoundException":
|
|
776
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
777
|
-
case "ThrottlingException":
|
|
778
|
-
case "com.amazonaws.budgets#ThrottlingException":
|
|
779
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
780
|
-
default:
|
|
781
|
-
const parsedBody = parsedOutput.body;
|
|
782
|
-
return throwDefaultError({
|
|
783
|
-
output,
|
|
784
|
-
parsedBody,
|
|
785
|
-
errorCode
|
|
786
|
-
});
|
|
787
|
-
}
|
|
788
|
-
}, "de_CreateBudgetActionCommandError");
|
|
789
718
|
var de_CreateNotificationCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
790
719
|
if (output.statusCode >= 300) {
|
|
791
|
-
return
|
|
720
|
+
return de_CommandError(output, context);
|
|
792
721
|
}
|
|
793
722
|
const data = await parseBody(output.body, context);
|
|
794
723
|
let contents = {};
|
|
@@ -799,46 +728,9 @@ var de_CreateNotificationCommand = /* @__PURE__ */ __name(async (output, context
|
|
|
799
728
|
};
|
|
800
729
|
return response;
|
|
801
730
|
}, "de_CreateNotificationCommand");
|
|
802
|
-
var de_CreateNotificationCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
803
|
-
const parsedOutput = {
|
|
804
|
-
...output,
|
|
805
|
-
body: await parseErrorBody(output.body, context)
|
|
806
|
-
};
|
|
807
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
808
|
-
switch (errorCode) {
|
|
809
|
-
case "AccessDeniedException":
|
|
810
|
-
case "com.amazonaws.budgets#AccessDeniedException":
|
|
811
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
812
|
-
case "CreationLimitExceededException":
|
|
813
|
-
case "com.amazonaws.budgets#CreationLimitExceededException":
|
|
814
|
-
throw await de_CreationLimitExceededExceptionRes(parsedOutput, context);
|
|
815
|
-
case "DuplicateRecordException":
|
|
816
|
-
case "com.amazonaws.budgets#DuplicateRecordException":
|
|
817
|
-
throw await de_DuplicateRecordExceptionRes(parsedOutput, context);
|
|
818
|
-
case "InternalErrorException":
|
|
819
|
-
case "com.amazonaws.budgets#InternalErrorException":
|
|
820
|
-
throw await de_InternalErrorExceptionRes(parsedOutput, context);
|
|
821
|
-
case "InvalidParameterException":
|
|
822
|
-
case "com.amazonaws.budgets#InvalidParameterException":
|
|
823
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
824
|
-
case "NotFoundException":
|
|
825
|
-
case "com.amazonaws.budgets#NotFoundException":
|
|
826
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
827
|
-
case "ThrottlingException":
|
|
828
|
-
case "com.amazonaws.budgets#ThrottlingException":
|
|
829
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
830
|
-
default:
|
|
831
|
-
const parsedBody = parsedOutput.body;
|
|
832
|
-
return throwDefaultError({
|
|
833
|
-
output,
|
|
834
|
-
parsedBody,
|
|
835
|
-
errorCode
|
|
836
|
-
});
|
|
837
|
-
}
|
|
838
|
-
}, "de_CreateNotificationCommandError");
|
|
839
731
|
var de_CreateSubscriberCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
840
732
|
if (output.statusCode >= 300) {
|
|
841
|
-
return
|
|
733
|
+
return de_CommandError(output, context);
|
|
842
734
|
}
|
|
843
735
|
const data = await parseBody(output.body, context);
|
|
844
736
|
let contents = {};
|
|
@@ -849,46 +741,9 @@ var de_CreateSubscriberCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
849
741
|
};
|
|
850
742
|
return response;
|
|
851
743
|
}, "de_CreateSubscriberCommand");
|
|
852
|
-
var de_CreateSubscriberCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
853
|
-
const parsedOutput = {
|
|
854
|
-
...output,
|
|
855
|
-
body: await parseErrorBody(output.body, context)
|
|
856
|
-
};
|
|
857
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
858
|
-
switch (errorCode) {
|
|
859
|
-
case "AccessDeniedException":
|
|
860
|
-
case "com.amazonaws.budgets#AccessDeniedException":
|
|
861
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
862
|
-
case "CreationLimitExceededException":
|
|
863
|
-
case "com.amazonaws.budgets#CreationLimitExceededException":
|
|
864
|
-
throw await de_CreationLimitExceededExceptionRes(parsedOutput, context);
|
|
865
|
-
case "DuplicateRecordException":
|
|
866
|
-
case "com.amazonaws.budgets#DuplicateRecordException":
|
|
867
|
-
throw await de_DuplicateRecordExceptionRes(parsedOutput, context);
|
|
868
|
-
case "InternalErrorException":
|
|
869
|
-
case "com.amazonaws.budgets#InternalErrorException":
|
|
870
|
-
throw await de_InternalErrorExceptionRes(parsedOutput, context);
|
|
871
|
-
case "InvalidParameterException":
|
|
872
|
-
case "com.amazonaws.budgets#InvalidParameterException":
|
|
873
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
874
|
-
case "NotFoundException":
|
|
875
|
-
case "com.amazonaws.budgets#NotFoundException":
|
|
876
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
877
|
-
case "ThrottlingException":
|
|
878
|
-
case "com.amazonaws.budgets#ThrottlingException":
|
|
879
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
880
|
-
default:
|
|
881
|
-
const parsedBody = parsedOutput.body;
|
|
882
|
-
return throwDefaultError({
|
|
883
|
-
output,
|
|
884
|
-
parsedBody,
|
|
885
|
-
errorCode
|
|
886
|
-
});
|
|
887
|
-
}
|
|
888
|
-
}, "de_CreateSubscriberCommandError");
|
|
889
744
|
var de_DeleteBudgetCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
890
745
|
if (output.statusCode >= 300) {
|
|
891
|
-
return
|
|
746
|
+
return de_CommandError(output, context);
|
|
892
747
|
}
|
|
893
748
|
const data = await parseBody(output.body, context);
|
|
894
749
|
let contents = {};
|
|
@@ -899,40 +754,9 @@ var de_DeleteBudgetCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
899
754
|
};
|
|
900
755
|
return response;
|
|
901
756
|
}, "de_DeleteBudgetCommand");
|
|
902
|
-
var de_DeleteBudgetCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
903
|
-
const parsedOutput = {
|
|
904
|
-
...output,
|
|
905
|
-
body: await parseErrorBody(output.body, context)
|
|
906
|
-
};
|
|
907
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
908
|
-
switch (errorCode) {
|
|
909
|
-
case "AccessDeniedException":
|
|
910
|
-
case "com.amazonaws.budgets#AccessDeniedException":
|
|
911
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
912
|
-
case "InternalErrorException":
|
|
913
|
-
case "com.amazonaws.budgets#InternalErrorException":
|
|
914
|
-
throw await de_InternalErrorExceptionRes(parsedOutput, context);
|
|
915
|
-
case "InvalidParameterException":
|
|
916
|
-
case "com.amazonaws.budgets#InvalidParameterException":
|
|
917
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
918
|
-
case "NotFoundException":
|
|
919
|
-
case "com.amazonaws.budgets#NotFoundException":
|
|
920
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
921
|
-
case "ThrottlingException":
|
|
922
|
-
case "com.amazonaws.budgets#ThrottlingException":
|
|
923
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
924
|
-
default:
|
|
925
|
-
const parsedBody = parsedOutput.body;
|
|
926
|
-
return throwDefaultError({
|
|
927
|
-
output,
|
|
928
|
-
parsedBody,
|
|
929
|
-
errorCode
|
|
930
|
-
});
|
|
931
|
-
}
|
|
932
|
-
}, "de_DeleteBudgetCommandError");
|
|
933
757
|
var de_DeleteBudgetActionCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
934
758
|
if (output.statusCode >= 300) {
|
|
935
|
-
return
|
|
759
|
+
return de_CommandError(output, context);
|
|
936
760
|
}
|
|
937
761
|
const data = await parseBody(output.body, context);
|
|
938
762
|
let contents = {};
|
|
@@ -943,43 +767,9 @@ var de_DeleteBudgetActionCommand = /* @__PURE__ */ __name(async (output, context
|
|
|
943
767
|
};
|
|
944
768
|
return response;
|
|
945
769
|
}, "de_DeleteBudgetActionCommand");
|
|
946
|
-
var de_DeleteBudgetActionCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
947
|
-
const parsedOutput = {
|
|
948
|
-
...output,
|
|
949
|
-
body: await parseErrorBody(output.body, context)
|
|
950
|
-
};
|
|
951
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
952
|
-
switch (errorCode) {
|
|
953
|
-
case "AccessDeniedException":
|
|
954
|
-
case "com.amazonaws.budgets#AccessDeniedException":
|
|
955
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
956
|
-
case "InternalErrorException":
|
|
957
|
-
case "com.amazonaws.budgets#InternalErrorException":
|
|
958
|
-
throw await de_InternalErrorExceptionRes(parsedOutput, context);
|
|
959
|
-
case "InvalidParameterException":
|
|
960
|
-
case "com.amazonaws.budgets#InvalidParameterException":
|
|
961
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
962
|
-
case "NotFoundException":
|
|
963
|
-
case "com.amazonaws.budgets#NotFoundException":
|
|
964
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
965
|
-
case "ResourceLockedException":
|
|
966
|
-
case "com.amazonaws.budgets#ResourceLockedException":
|
|
967
|
-
throw await de_ResourceLockedExceptionRes(parsedOutput, context);
|
|
968
|
-
case "ThrottlingException":
|
|
969
|
-
case "com.amazonaws.budgets#ThrottlingException":
|
|
970
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
971
|
-
default:
|
|
972
|
-
const parsedBody = parsedOutput.body;
|
|
973
|
-
return throwDefaultError({
|
|
974
|
-
output,
|
|
975
|
-
parsedBody,
|
|
976
|
-
errorCode
|
|
977
|
-
});
|
|
978
|
-
}
|
|
979
|
-
}, "de_DeleteBudgetActionCommandError");
|
|
980
770
|
var de_DeleteNotificationCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
981
771
|
if (output.statusCode >= 300) {
|
|
982
|
-
return
|
|
772
|
+
return de_CommandError(output, context);
|
|
983
773
|
}
|
|
984
774
|
const data = await parseBody(output.body, context);
|
|
985
775
|
let contents = {};
|
|
@@ -990,40 +780,9 @@ var de_DeleteNotificationCommand = /* @__PURE__ */ __name(async (output, context
|
|
|
990
780
|
};
|
|
991
781
|
return response;
|
|
992
782
|
}, "de_DeleteNotificationCommand");
|
|
993
|
-
var de_DeleteNotificationCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
994
|
-
const parsedOutput = {
|
|
995
|
-
...output,
|
|
996
|
-
body: await parseErrorBody(output.body, context)
|
|
997
|
-
};
|
|
998
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
999
|
-
switch (errorCode) {
|
|
1000
|
-
case "AccessDeniedException":
|
|
1001
|
-
case "com.amazonaws.budgets#AccessDeniedException":
|
|
1002
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1003
|
-
case "InternalErrorException":
|
|
1004
|
-
case "com.amazonaws.budgets#InternalErrorException":
|
|
1005
|
-
throw await de_InternalErrorExceptionRes(parsedOutput, context);
|
|
1006
|
-
case "InvalidParameterException":
|
|
1007
|
-
case "com.amazonaws.budgets#InvalidParameterException":
|
|
1008
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
1009
|
-
case "NotFoundException":
|
|
1010
|
-
case "com.amazonaws.budgets#NotFoundException":
|
|
1011
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
1012
|
-
case "ThrottlingException":
|
|
1013
|
-
case "com.amazonaws.budgets#ThrottlingException":
|
|
1014
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1015
|
-
default:
|
|
1016
|
-
const parsedBody = parsedOutput.body;
|
|
1017
|
-
return throwDefaultError({
|
|
1018
|
-
output,
|
|
1019
|
-
parsedBody,
|
|
1020
|
-
errorCode
|
|
1021
|
-
});
|
|
1022
|
-
}
|
|
1023
|
-
}, "de_DeleteNotificationCommandError");
|
|
1024
783
|
var de_DeleteSubscriberCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1025
784
|
if (output.statusCode >= 300) {
|
|
1026
|
-
return
|
|
785
|
+
return de_CommandError(output, context);
|
|
1027
786
|
}
|
|
1028
787
|
const data = await parseBody(output.body, context);
|
|
1029
788
|
let contents = {};
|
|
@@ -1034,40 +793,9 @@ var de_DeleteSubscriberCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
1034
793
|
};
|
|
1035
794
|
return response;
|
|
1036
795
|
}, "de_DeleteSubscriberCommand");
|
|
1037
|
-
var de_DeleteSubscriberCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1038
|
-
const parsedOutput = {
|
|
1039
|
-
...output,
|
|
1040
|
-
body: await parseErrorBody(output.body, context)
|
|
1041
|
-
};
|
|
1042
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1043
|
-
switch (errorCode) {
|
|
1044
|
-
case "AccessDeniedException":
|
|
1045
|
-
case "com.amazonaws.budgets#AccessDeniedException":
|
|
1046
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1047
|
-
case "InternalErrorException":
|
|
1048
|
-
case "com.amazonaws.budgets#InternalErrorException":
|
|
1049
|
-
throw await de_InternalErrorExceptionRes(parsedOutput, context);
|
|
1050
|
-
case "InvalidParameterException":
|
|
1051
|
-
case "com.amazonaws.budgets#InvalidParameterException":
|
|
1052
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
1053
|
-
case "NotFoundException":
|
|
1054
|
-
case "com.amazonaws.budgets#NotFoundException":
|
|
1055
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
1056
|
-
case "ThrottlingException":
|
|
1057
|
-
case "com.amazonaws.budgets#ThrottlingException":
|
|
1058
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1059
|
-
default:
|
|
1060
|
-
const parsedBody = parsedOutput.body;
|
|
1061
|
-
return throwDefaultError({
|
|
1062
|
-
output,
|
|
1063
|
-
parsedBody,
|
|
1064
|
-
errorCode
|
|
1065
|
-
});
|
|
1066
|
-
}
|
|
1067
|
-
}, "de_DeleteSubscriberCommandError");
|
|
1068
796
|
var de_DescribeBudgetCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1069
797
|
if (output.statusCode >= 300) {
|
|
1070
|
-
return
|
|
798
|
+
return de_CommandError(output, context);
|
|
1071
799
|
}
|
|
1072
800
|
const data = await parseBody(output.body, context);
|
|
1073
801
|
let contents = {};
|
|
@@ -1078,40 +806,9 @@ var de_DescribeBudgetCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
1078
806
|
};
|
|
1079
807
|
return response;
|
|
1080
808
|
}, "de_DescribeBudgetCommand");
|
|
1081
|
-
var de_DescribeBudgetCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1082
|
-
const parsedOutput = {
|
|
1083
|
-
...output,
|
|
1084
|
-
body: await parseErrorBody(output.body, context)
|
|
1085
|
-
};
|
|
1086
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1087
|
-
switch (errorCode) {
|
|
1088
|
-
case "AccessDeniedException":
|
|
1089
|
-
case "com.amazonaws.budgets#AccessDeniedException":
|
|
1090
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1091
|
-
case "InternalErrorException":
|
|
1092
|
-
case "com.amazonaws.budgets#InternalErrorException":
|
|
1093
|
-
throw await de_InternalErrorExceptionRes(parsedOutput, context);
|
|
1094
|
-
case "InvalidParameterException":
|
|
1095
|
-
case "com.amazonaws.budgets#InvalidParameterException":
|
|
1096
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
1097
|
-
case "NotFoundException":
|
|
1098
|
-
case "com.amazonaws.budgets#NotFoundException":
|
|
1099
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
1100
|
-
case "ThrottlingException":
|
|
1101
|
-
case "com.amazonaws.budgets#ThrottlingException":
|
|
1102
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1103
|
-
default:
|
|
1104
|
-
const parsedBody = parsedOutput.body;
|
|
1105
|
-
return throwDefaultError({
|
|
1106
|
-
output,
|
|
1107
|
-
parsedBody,
|
|
1108
|
-
errorCode
|
|
1109
|
-
});
|
|
1110
|
-
}
|
|
1111
|
-
}, "de_DescribeBudgetCommandError");
|
|
1112
809
|
var de_DescribeBudgetActionCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1113
810
|
if (output.statusCode >= 300) {
|
|
1114
|
-
return
|
|
811
|
+
return de_CommandError(output, context);
|
|
1115
812
|
}
|
|
1116
813
|
const data = await parseBody(output.body, context);
|
|
1117
814
|
let contents = {};
|
|
@@ -1122,40 +819,9 @@ var de_DescribeBudgetActionCommand = /* @__PURE__ */ __name(async (output, conte
|
|
|
1122
819
|
};
|
|
1123
820
|
return response;
|
|
1124
821
|
}, "de_DescribeBudgetActionCommand");
|
|
1125
|
-
var de_DescribeBudgetActionCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1126
|
-
const parsedOutput = {
|
|
1127
|
-
...output,
|
|
1128
|
-
body: await parseErrorBody(output.body, context)
|
|
1129
|
-
};
|
|
1130
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1131
|
-
switch (errorCode) {
|
|
1132
|
-
case "AccessDeniedException":
|
|
1133
|
-
case "com.amazonaws.budgets#AccessDeniedException":
|
|
1134
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1135
|
-
case "InternalErrorException":
|
|
1136
|
-
case "com.amazonaws.budgets#InternalErrorException":
|
|
1137
|
-
throw await de_InternalErrorExceptionRes(parsedOutput, context);
|
|
1138
|
-
case "InvalidParameterException":
|
|
1139
|
-
case "com.amazonaws.budgets#InvalidParameterException":
|
|
1140
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
1141
|
-
case "NotFoundException":
|
|
1142
|
-
case "com.amazonaws.budgets#NotFoundException":
|
|
1143
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
1144
|
-
case "ThrottlingException":
|
|
1145
|
-
case "com.amazonaws.budgets#ThrottlingException":
|
|
1146
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1147
|
-
default:
|
|
1148
|
-
const parsedBody = parsedOutput.body;
|
|
1149
|
-
return throwDefaultError({
|
|
1150
|
-
output,
|
|
1151
|
-
parsedBody,
|
|
1152
|
-
errorCode
|
|
1153
|
-
});
|
|
1154
|
-
}
|
|
1155
|
-
}, "de_DescribeBudgetActionCommandError");
|
|
1156
822
|
var de_DescribeBudgetActionHistoriesCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1157
823
|
if (output.statusCode >= 300) {
|
|
1158
|
-
return
|
|
824
|
+
return de_CommandError(output, context);
|
|
1159
825
|
}
|
|
1160
826
|
const data = await parseBody(output.body, context);
|
|
1161
827
|
let contents = {};
|
|
@@ -1166,43 +832,9 @@ var de_DescribeBudgetActionHistoriesCommand = /* @__PURE__ */ __name(async (outp
|
|
|
1166
832
|
};
|
|
1167
833
|
return response;
|
|
1168
834
|
}, "de_DescribeBudgetActionHistoriesCommand");
|
|
1169
|
-
var de_DescribeBudgetActionHistoriesCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1170
|
-
const parsedOutput = {
|
|
1171
|
-
...output,
|
|
1172
|
-
body: await parseErrorBody(output.body, context)
|
|
1173
|
-
};
|
|
1174
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1175
|
-
switch (errorCode) {
|
|
1176
|
-
case "AccessDeniedException":
|
|
1177
|
-
case "com.amazonaws.budgets#AccessDeniedException":
|
|
1178
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1179
|
-
case "InternalErrorException":
|
|
1180
|
-
case "com.amazonaws.budgets#InternalErrorException":
|
|
1181
|
-
throw await de_InternalErrorExceptionRes(parsedOutput, context);
|
|
1182
|
-
case "InvalidNextTokenException":
|
|
1183
|
-
case "com.amazonaws.budgets#InvalidNextTokenException":
|
|
1184
|
-
throw await de_InvalidNextTokenExceptionRes(parsedOutput, context);
|
|
1185
|
-
case "InvalidParameterException":
|
|
1186
|
-
case "com.amazonaws.budgets#InvalidParameterException":
|
|
1187
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
1188
|
-
case "NotFoundException":
|
|
1189
|
-
case "com.amazonaws.budgets#NotFoundException":
|
|
1190
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
1191
|
-
case "ThrottlingException":
|
|
1192
|
-
case "com.amazonaws.budgets#ThrottlingException":
|
|
1193
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1194
|
-
default:
|
|
1195
|
-
const parsedBody = parsedOutput.body;
|
|
1196
|
-
return throwDefaultError({
|
|
1197
|
-
output,
|
|
1198
|
-
parsedBody,
|
|
1199
|
-
errorCode
|
|
1200
|
-
});
|
|
1201
|
-
}
|
|
1202
|
-
}, "de_DescribeBudgetActionHistoriesCommandError");
|
|
1203
835
|
var de_DescribeBudgetActionsForAccountCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1204
836
|
if (output.statusCode >= 300) {
|
|
1205
|
-
return
|
|
837
|
+
return de_CommandError(output, context);
|
|
1206
838
|
}
|
|
1207
839
|
const data = await parseBody(output.body, context);
|
|
1208
840
|
let contents = {};
|
|
@@ -1213,40 +845,9 @@ var de_DescribeBudgetActionsForAccountCommand = /* @__PURE__ */ __name(async (ou
|
|
|
1213
845
|
};
|
|
1214
846
|
return response;
|
|
1215
847
|
}, "de_DescribeBudgetActionsForAccountCommand");
|
|
1216
|
-
var de_DescribeBudgetActionsForAccountCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1217
|
-
const parsedOutput = {
|
|
1218
|
-
...output,
|
|
1219
|
-
body: await parseErrorBody(output.body, context)
|
|
1220
|
-
};
|
|
1221
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1222
|
-
switch (errorCode) {
|
|
1223
|
-
case "AccessDeniedException":
|
|
1224
|
-
case "com.amazonaws.budgets#AccessDeniedException":
|
|
1225
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1226
|
-
case "InternalErrorException":
|
|
1227
|
-
case "com.amazonaws.budgets#InternalErrorException":
|
|
1228
|
-
throw await de_InternalErrorExceptionRes(parsedOutput, context);
|
|
1229
|
-
case "InvalidNextTokenException":
|
|
1230
|
-
case "com.amazonaws.budgets#InvalidNextTokenException":
|
|
1231
|
-
throw await de_InvalidNextTokenExceptionRes(parsedOutput, context);
|
|
1232
|
-
case "InvalidParameterException":
|
|
1233
|
-
case "com.amazonaws.budgets#InvalidParameterException":
|
|
1234
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
1235
|
-
case "ThrottlingException":
|
|
1236
|
-
case "com.amazonaws.budgets#ThrottlingException":
|
|
1237
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1238
|
-
default:
|
|
1239
|
-
const parsedBody = parsedOutput.body;
|
|
1240
|
-
return throwDefaultError({
|
|
1241
|
-
output,
|
|
1242
|
-
parsedBody,
|
|
1243
|
-
errorCode
|
|
1244
|
-
});
|
|
1245
|
-
}
|
|
1246
|
-
}, "de_DescribeBudgetActionsForAccountCommandError");
|
|
1247
848
|
var de_DescribeBudgetActionsForBudgetCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1248
849
|
if (output.statusCode >= 300) {
|
|
1249
|
-
return
|
|
850
|
+
return de_CommandError(output, context);
|
|
1250
851
|
}
|
|
1251
852
|
const data = await parseBody(output.body, context);
|
|
1252
853
|
let contents = {};
|
|
@@ -1257,43 +858,9 @@ var de_DescribeBudgetActionsForBudgetCommand = /* @__PURE__ */ __name(async (out
|
|
|
1257
858
|
};
|
|
1258
859
|
return response;
|
|
1259
860
|
}, "de_DescribeBudgetActionsForBudgetCommand");
|
|
1260
|
-
var de_DescribeBudgetActionsForBudgetCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1261
|
-
const parsedOutput = {
|
|
1262
|
-
...output,
|
|
1263
|
-
body: await parseErrorBody(output.body, context)
|
|
1264
|
-
};
|
|
1265
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1266
|
-
switch (errorCode) {
|
|
1267
|
-
case "AccessDeniedException":
|
|
1268
|
-
case "com.amazonaws.budgets#AccessDeniedException":
|
|
1269
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1270
|
-
case "InternalErrorException":
|
|
1271
|
-
case "com.amazonaws.budgets#InternalErrorException":
|
|
1272
|
-
throw await de_InternalErrorExceptionRes(parsedOutput, context);
|
|
1273
|
-
case "InvalidNextTokenException":
|
|
1274
|
-
case "com.amazonaws.budgets#InvalidNextTokenException":
|
|
1275
|
-
throw await de_InvalidNextTokenExceptionRes(parsedOutput, context);
|
|
1276
|
-
case "InvalidParameterException":
|
|
1277
|
-
case "com.amazonaws.budgets#InvalidParameterException":
|
|
1278
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
1279
|
-
case "NotFoundException":
|
|
1280
|
-
case "com.amazonaws.budgets#NotFoundException":
|
|
1281
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
1282
|
-
case "ThrottlingException":
|
|
1283
|
-
case "com.amazonaws.budgets#ThrottlingException":
|
|
1284
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1285
|
-
default:
|
|
1286
|
-
const parsedBody = parsedOutput.body;
|
|
1287
|
-
return throwDefaultError({
|
|
1288
|
-
output,
|
|
1289
|
-
parsedBody,
|
|
1290
|
-
errorCode
|
|
1291
|
-
});
|
|
1292
|
-
}
|
|
1293
|
-
}, "de_DescribeBudgetActionsForBudgetCommandError");
|
|
1294
861
|
var de_DescribeBudgetNotificationsForAccountCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1295
862
|
if (output.statusCode >= 300) {
|
|
1296
|
-
return
|
|
863
|
+
return de_CommandError(output, context);
|
|
1297
864
|
}
|
|
1298
865
|
const data = await parseBody(output.body, context);
|
|
1299
866
|
let contents = {};
|
|
@@ -1304,96 +871,22 @@ var de_DescribeBudgetNotificationsForAccountCommand = /* @__PURE__ */ __name(asy
|
|
|
1304
871
|
};
|
|
1305
872
|
return response;
|
|
1306
873
|
}, "de_DescribeBudgetNotificationsForAccountCommand");
|
|
1307
|
-
var de_DescribeBudgetNotificationsForAccountCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1308
|
-
const parsedOutput = {
|
|
1309
|
-
...output,
|
|
1310
|
-
body: await parseErrorBody(output.body, context)
|
|
1311
|
-
};
|
|
1312
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1313
|
-
switch (errorCode) {
|
|
1314
|
-
case "AccessDeniedException":
|
|
1315
|
-
case "com.amazonaws.budgets#AccessDeniedException":
|
|
1316
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1317
|
-
case "ExpiredNextTokenException":
|
|
1318
|
-
case "com.amazonaws.budgets#ExpiredNextTokenException":
|
|
1319
|
-
throw await de_ExpiredNextTokenExceptionRes(parsedOutput, context);
|
|
1320
|
-
case "InternalErrorException":
|
|
1321
|
-
case "com.amazonaws.budgets#InternalErrorException":
|
|
1322
|
-
throw await de_InternalErrorExceptionRes(parsedOutput, context);
|
|
1323
|
-
case "InvalidNextTokenException":
|
|
1324
|
-
case "com.amazonaws.budgets#InvalidNextTokenException":
|
|
1325
|
-
throw await de_InvalidNextTokenExceptionRes(parsedOutput, context);
|
|
1326
|
-
case "InvalidParameterException":
|
|
1327
|
-
case "com.amazonaws.budgets#InvalidParameterException":
|
|
1328
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
1329
|
-
case "NotFoundException":
|
|
1330
|
-
case "com.amazonaws.budgets#NotFoundException":
|
|
1331
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
1332
|
-
case "ThrottlingException":
|
|
1333
|
-
case "com.amazonaws.budgets#ThrottlingException":
|
|
1334
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1335
|
-
default:
|
|
1336
|
-
const parsedBody = parsedOutput.body;
|
|
1337
|
-
return throwDefaultError({
|
|
1338
|
-
output,
|
|
1339
|
-
parsedBody,
|
|
1340
|
-
errorCode
|
|
1341
|
-
});
|
|
1342
|
-
}
|
|
1343
|
-
}, "de_DescribeBudgetNotificationsForAccountCommandError");
|
|
1344
874
|
var de_DescribeBudgetPerformanceHistoryCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1345
875
|
if (output.statusCode >= 300) {
|
|
1346
|
-
return
|
|
876
|
+
return de_CommandError(output, context);
|
|
1347
877
|
}
|
|
1348
878
|
const data = await parseBody(output.body, context);
|
|
1349
|
-
let contents = {};
|
|
1350
|
-
contents = de_DescribeBudgetPerformanceHistoryResponse(data, context);
|
|
1351
|
-
const response = {
|
|
1352
|
-
$metadata: deserializeMetadata(output),
|
|
1353
|
-
...contents
|
|
1354
|
-
};
|
|
1355
|
-
return response;
|
|
1356
|
-
}, "de_DescribeBudgetPerformanceHistoryCommand");
|
|
1357
|
-
var de_DescribeBudgetPerformanceHistoryCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1358
|
-
const parsedOutput = {
|
|
1359
|
-
...output,
|
|
1360
|
-
body: await parseErrorBody(output.body, context)
|
|
1361
|
-
};
|
|
1362
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1363
|
-
switch (errorCode) {
|
|
1364
|
-
case "AccessDeniedException":
|
|
1365
|
-
case "com.amazonaws.budgets#AccessDeniedException":
|
|
1366
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1367
|
-
case "ExpiredNextTokenException":
|
|
1368
|
-
case "com.amazonaws.budgets#ExpiredNextTokenException":
|
|
1369
|
-
throw await de_ExpiredNextTokenExceptionRes(parsedOutput, context);
|
|
1370
|
-
case "InternalErrorException":
|
|
1371
|
-
case "com.amazonaws.budgets#InternalErrorException":
|
|
1372
|
-
throw await de_InternalErrorExceptionRes(parsedOutput, context);
|
|
1373
|
-
case "InvalidNextTokenException":
|
|
1374
|
-
case "com.amazonaws.budgets#InvalidNextTokenException":
|
|
1375
|
-
throw await de_InvalidNextTokenExceptionRes(parsedOutput, context);
|
|
1376
|
-
case "InvalidParameterException":
|
|
1377
|
-
case "com.amazonaws.budgets#InvalidParameterException":
|
|
1378
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
1379
|
-
case "NotFoundException":
|
|
1380
|
-
case "com.amazonaws.budgets#NotFoundException":
|
|
1381
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
1382
|
-
case "ThrottlingException":
|
|
1383
|
-
case "com.amazonaws.budgets#ThrottlingException":
|
|
1384
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1385
|
-
default:
|
|
1386
|
-
const parsedBody = parsedOutput.body;
|
|
1387
|
-
return throwDefaultError({
|
|
1388
|
-
output,
|
|
1389
|
-
parsedBody,
|
|
1390
|
-
errorCode
|
|
1391
|
-
});
|
|
1392
|
-
}
|
|
1393
|
-
}, "de_DescribeBudgetPerformanceHistoryCommandError");
|
|
879
|
+
let contents = {};
|
|
880
|
+
contents = de_DescribeBudgetPerformanceHistoryResponse(data, context);
|
|
881
|
+
const response = {
|
|
882
|
+
$metadata: deserializeMetadata(output),
|
|
883
|
+
...contents
|
|
884
|
+
};
|
|
885
|
+
return response;
|
|
886
|
+
}, "de_DescribeBudgetPerformanceHistoryCommand");
|
|
1394
887
|
var de_DescribeBudgetsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1395
888
|
if (output.statusCode >= 300) {
|
|
1396
|
-
return
|
|
889
|
+
return de_CommandError(output, context);
|
|
1397
890
|
}
|
|
1398
891
|
const data = await parseBody(output.body, context);
|
|
1399
892
|
let contents = {};
|
|
@@ -1404,46 +897,9 @@ var de_DescribeBudgetsCommand = /* @__PURE__ */ __name(async (output, context) =
|
|
|
1404
897
|
};
|
|
1405
898
|
return response;
|
|
1406
899
|
}, "de_DescribeBudgetsCommand");
|
|
1407
|
-
var de_DescribeBudgetsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1408
|
-
const parsedOutput = {
|
|
1409
|
-
...output,
|
|
1410
|
-
body: await parseErrorBody(output.body, context)
|
|
1411
|
-
};
|
|
1412
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1413
|
-
switch (errorCode) {
|
|
1414
|
-
case "AccessDeniedException":
|
|
1415
|
-
case "com.amazonaws.budgets#AccessDeniedException":
|
|
1416
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1417
|
-
case "ExpiredNextTokenException":
|
|
1418
|
-
case "com.amazonaws.budgets#ExpiredNextTokenException":
|
|
1419
|
-
throw await de_ExpiredNextTokenExceptionRes(parsedOutput, context);
|
|
1420
|
-
case "InternalErrorException":
|
|
1421
|
-
case "com.amazonaws.budgets#InternalErrorException":
|
|
1422
|
-
throw await de_InternalErrorExceptionRes(parsedOutput, context);
|
|
1423
|
-
case "InvalidNextTokenException":
|
|
1424
|
-
case "com.amazonaws.budgets#InvalidNextTokenException":
|
|
1425
|
-
throw await de_InvalidNextTokenExceptionRes(parsedOutput, context);
|
|
1426
|
-
case "InvalidParameterException":
|
|
1427
|
-
case "com.amazonaws.budgets#InvalidParameterException":
|
|
1428
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
1429
|
-
case "NotFoundException":
|
|
1430
|
-
case "com.amazonaws.budgets#NotFoundException":
|
|
1431
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
1432
|
-
case "ThrottlingException":
|
|
1433
|
-
case "com.amazonaws.budgets#ThrottlingException":
|
|
1434
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1435
|
-
default:
|
|
1436
|
-
const parsedBody = parsedOutput.body;
|
|
1437
|
-
return throwDefaultError({
|
|
1438
|
-
output,
|
|
1439
|
-
parsedBody,
|
|
1440
|
-
errorCode
|
|
1441
|
-
});
|
|
1442
|
-
}
|
|
1443
|
-
}, "de_DescribeBudgetsCommandError");
|
|
1444
900
|
var de_DescribeNotificationsForBudgetCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1445
901
|
if (output.statusCode >= 300) {
|
|
1446
|
-
return
|
|
902
|
+
return de_CommandError(output, context);
|
|
1447
903
|
}
|
|
1448
904
|
const data = await parseBody(output.body, context);
|
|
1449
905
|
let contents = {};
|
|
@@ -1454,46 +910,9 @@ var de_DescribeNotificationsForBudgetCommand = /* @__PURE__ */ __name(async (out
|
|
|
1454
910
|
};
|
|
1455
911
|
return response;
|
|
1456
912
|
}, "de_DescribeNotificationsForBudgetCommand");
|
|
1457
|
-
var de_DescribeNotificationsForBudgetCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1458
|
-
const parsedOutput = {
|
|
1459
|
-
...output,
|
|
1460
|
-
body: await parseErrorBody(output.body, context)
|
|
1461
|
-
};
|
|
1462
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1463
|
-
switch (errorCode) {
|
|
1464
|
-
case "AccessDeniedException":
|
|
1465
|
-
case "com.amazonaws.budgets#AccessDeniedException":
|
|
1466
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1467
|
-
case "ExpiredNextTokenException":
|
|
1468
|
-
case "com.amazonaws.budgets#ExpiredNextTokenException":
|
|
1469
|
-
throw await de_ExpiredNextTokenExceptionRes(parsedOutput, context);
|
|
1470
|
-
case "InternalErrorException":
|
|
1471
|
-
case "com.amazonaws.budgets#InternalErrorException":
|
|
1472
|
-
throw await de_InternalErrorExceptionRes(parsedOutput, context);
|
|
1473
|
-
case "InvalidNextTokenException":
|
|
1474
|
-
case "com.amazonaws.budgets#InvalidNextTokenException":
|
|
1475
|
-
throw await de_InvalidNextTokenExceptionRes(parsedOutput, context);
|
|
1476
|
-
case "InvalidParameterException":
|
|
1477
|
-
case "com.amazonaws.budgets#InvalidParameterException":
|
|
1478
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
1479
|
-
case "NotFoundException":
|
|
1480
|
-
case "com.amazonaws.budgets#NotFoundException":
|
|
1481
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
1482
|
-
case "ThrottlingException":
|
|
1483
|
-
case "com.amazonaws.budgets#ThrottlingException":
|
|
1484
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1485
|
-
default:
|
|
1486
|
-
const parsedBody = parsedOutput.body;
|
|
1487
|
-
return throwDefaultError({
|
|
1488
|
-
output,
|
|
1489
|
-
parsedBody,
|
|
1490
|
-
errorCode
|
|
1491
|
-
});
|
|
1492
|
-
}
|
|
1493
|
-
}, "de_DescribeNotificationsForBudgetCommandError");
|
|
1494
913
|
var de_DescribeSubscribersForNotificationCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1495
914
|
if (output.statusCode >= 300) {
|
|
1496
|
-
return
|
|
915
|
+
return de_CommandError(output, context);
|
|
1497
916
|
}
|
|
1498
917
|
const data = await parseBody(output.body, context);
|
|
1499
918
|
let contents = {};
|
|
@@ -1504,46 +923,9 @@ var de_DescribeSubscribersForNotificationCommand = /* @__PURE__ */ __name(async
|
|
|
1504
923
|
};
|
|
1505
924
|
return response;
|
|
1506
925
|
}, "de_DescribeSubscribersForNotificationCommand");
|
|
1507
|
-
var de_DescribeSubscribersForNotificationCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1508
|
-
const parsedOutput = {
|
|
1509
|
-
...output,
|
|
1510
|
-
body: await parseErrorBody(output.body, context)
|
|
1511
|
-
};
|
|
1512
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1513
|
-
switch (errorCode) {
|
|
1514
|
-
case "AccessDeniedException":
|
|
1515
|
-
case "com.amazonaws.budgets#AccessDeniedException":
|
|
1516
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1517
|
-
case "ExpiredNextTokenException":
|
|
1518
|
-
case "com.amazonaws.budgets#ExpiredNextTokenException":
|
|
1519
|
-
throw await de_ExpiredNextTokenExceptionRes(parsedOutput, context);
|
|
1520
|
-
case "InternalErrorException":
|
|
1521
|
-
case "com.amazonaws.budgets#InternalErrorException":
|
|
1522
|
-
throw await de_InternalErrorExceptionRes(parsedOutput, context);
|
|
1523
|
-
case "InvalidNextTokenException":
|
|
1524
|
-
case "com.amazonaws.budgets#InvalidNextTokenException":
|
|
1525
|
-
throw await de_InvalidNextTokenExceptionRes(parsedOutput, context);
|
|
1526
|
-
case "InvalidParameterException":
|
|
1527
|
-
case "com.amazonaws.budgets#InvalidParameterException":
|
|
1528
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
1529
|
-
case "NotFoundException":
|
|
1530
|
-
case "com.amazonaws.budgets#NotFoundException":
|
|
1531
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
1532
|
-
case "ThrottlingException":
|
|
1533
|
-
case "com.amazonaws.budgets#ThrottlingException":
|
|
1534
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1535
|
-
default:
|
|
1536
|
-
const parsedBody = parsedOutput.body;
|
|
1537
|
-
return throwDefaultError({
|
|
1538
|
-
output,
|
|
1539
|
-
parsedBody,
|
|
1540
|
-
errorCode
|
|
1541
|
-
});
|
|
1542
|
-
}
|
|
1543
|
-
}, "de_DescribeSubscribersForNotificationCommandError");
|
|
1544
926
|
var de_ExecuteBudgetActionCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1545
927
|
if (output.statusCode >= 300) {
|
|
1546
|
-
return
|
|
928
|
+
return de_CommandError(output, context);
|
|
1547
929
|
}
|
|
1548
930
|
const data = await parseBody(output.body, context);
|
|
1549
931
|
let contents = {};
|
|
@@ -1554,43 +936,9 @@ var de_ExecuteBudgetActionCommand = /* @__PURE__ */ __name(async (output, contex
|
|
|
1554
936
|
};
|
|
1555
937
|
return response;
|
|
1556
938
|
}, "de_ExecuteBudgetActionCommand");
|
|
1557
|
-
var de_ExecuteBudgetActionCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1558
|
-
const parsedOutput = {
|
|
1559
|
-
...output,
|
|
1560
|
-
body: await parseErrorBody(output.body, context)
|
|
1561
|
-
};
|
|
1562
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1563
|
-
switch (errorCode) {
|
|
1564
|
-
case "AccessDeniedException":
|
|
1565
|
-
case "com.amazonaws.budgets#AccessDeniedException":
|
|
1566
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1567
|
-
case "InternalErrorException":
|
|
1568
|
-
case "com.amazonaws.budgets#InternalErrorException":
|
|
1569
|
-
throw await de_InternalErrorExceptionRes(parsedOutput, context);
|
|
1570
|
-
case "InvalidParameterException":
|
|
1571
|
-
case "com.amazonaws.budgets#InvalidParameterException":
|
|
1572
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
1573
|
-
case "NotFoundException":
|
|
1574
|
-
case "com.amazonaws.budgets#NotFoundException":
|
|
1575
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
1576
|
-
case "ResourceLockedException":
|
|
1577
|
-
case "com.amazonaws.budgets#ResourceLockedException":
|
|
1578
|
-
throw await de_ResourceLockedExceptionRes(parsedOutput, context);
|
|
1579
|
-
case "ThrottlingException":
|
|
1580
|
-
case "com.amazonaws.budgets#ThrottlingException":
|
|
1581
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1582
|
-
default:
|
|
1583
|
-
const parsedBody = parsedOutput.body;
|
|
1584
|
-
return throwDefaultError({
|
|
1585
|
-
output,
|
|
1586
|
-
parsedBody,
|
|
1587
|
-
errorCode
|
|
1588
|
-
});
|
|
1589
|
-
}
|
|
1590
|
-
}, "de_ExecuteBudgetActionCommandError");
|
|
1591
939
|
var de_UpdateBudgetCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1592
940
|
if (output.statusCode >= 300) {
|
|
1593
|
-
return
|
|
941
|
+
return de_CommandError(output, context);
|
|
1594
942
|
}
|
|
1595
943
|
const data = await parseBody(output.body, context);
|
|
1596
944
|
let contents = {};
|
|
@@ -1601,40 +949,9 @@ var de_UpdateBudgetCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
1601
949
|
};
|
|
1602
950
|
return response;
|
|
1603
951
|
}, "de_UpdateBudgetCommand");
|
|
1604
|
-
var de_UpdateBudgetCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1605
|
-
const parsedOutput = {
|
|
1606
|
-
...output,
|
|
1607
|
-
body: await parseErrorBody(output.body, context)
|
|
1608
|
-
};
|
|
1609
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1610
|
-
switch (errorCode) {
|
|
1611
|
-
case "AccessDeniedException":
|
|
1612
|
-
case "com.amazonaws.budgets#AccessDeniedException":
|
|
1613
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1614
|
-
case "InternalErrorException":
|
|
1615
|
-
case "com.amazonaws.budgets#InternalErrorException":
|
|
1616
|
-
throw await de_InternalErrorExceptionRes(parsedOutput, context);
|
|
1617
|
-
case "InvalidParameterException":
|
|
1618
|
-
case "com.amazonaws.budgets#InvalidParameterException":
|
|
1619
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
1620
|
-
case "NotFoundException":
|
|
1621
|
-
case "com.amazonaws.budgets#NotFoundException":
|
|
1622
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
1623
|
-
case "ThrottlingException":
|
|
1624
|
-
case "com.amazonaws.budgets#ThrottlingException":
|
|
1625
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1626
|
-
default:
|
|
1627
|
-
const parsedBody = parsedOutput.body;
|
|
1628
|
-
return throwDefaultError({
|
|
1629
|
-
output,
|
|
1630
|
-
parsedBody,
|
|
1631
|
-
errorCode
|
|
1632
|
-
});
|
|
1633
|
-
}
|
|
1634
|
-
}, "de_UpdateBudgetCommandError");
|
|
1635
952
|
var de_UpdateBudgetActionCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1636
953
|
if (output.statusCode >= 300) {
|
|
1637
|
-
return
|
|
954
|
+
return de_CommandError(output, context);
|
|
1638
955
|
}
|
|
1639
956
|
const data = await parseBody(output.body, context);
|
|
1640
957
|
let contents = {};
|
|
@@ -1645,43 +962,9 @@ var de_UpdateBudgetActionCommand = /* @__PURE__ */ __name(async (output, context
|
|
|
1645
962
|
};
|
|
1646
963
|
return response;
|
|
1647
964
|
}, "de_UpdateBudgetActionCommand");
|
|
1648
|
-
var de_UpdateBudgetActionCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1649
|
-
const parsedOutput = {
|
|
1650
|
-
...output,
|
|
1651
|
-
body: await parseErrorBody(output.body, context)
|
|
1652
|
-
};
|
|
1653
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1654
|
-
switch (errorCode) {
|
|
1655
|
-
case "AccessDeniedException":
|
|
1656
|
-
case "com.amazonaws.budgets#AccessDeniedException":
|
|
1657
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1658
|
-
case "InternalErrorException":
|
|
1659
|
-
case "com.amazonaws.budgets#InternalErrorException":
|
|
1660
|
-
throw await de_InternalErrorExceptionRes(parsedOutput, context);
|
|
1661
|
-
case "InvalidParameterException":
|
|
1662
|
-
case "com.amazonaws.budgets#InvalidParameterException":
|
|
1663
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
1664
|
-
case "NotFoundException":
|
|
1665
|
-
case "com.amazonaws.budgets#NotFoundException":
|
|
1666
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
1667
|
-
case "ResourceLockedException":
|
|
1668
|
-
case "com.amazonaws.budgets#ResourceLockedException":
|
|
1669
|
-
throw await de_ResourceLockedExceptionRes(parsedOutput, context);
|
|
1670
|
-
case "ThrottlingException":
|
|
1671
|
-
case "com.amazonaws.budgets#ThrottlingException":
|
|
1672
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1673
|
-
default:
|
|
1674
|
-
const parsedBody = parsedOutput.body;
|
|
1675
|
-
return throwDefaultError({
|
|
1676
|
-
output,
|
|
1677
|
-
parsedBody,
|
|
1678
|
-
errorCode
|
|
1679
|
-
});
|
|
1680
|
-
}
|
|
1681
|
-
}, "de_UpdateBudgetActionCommandError");
|
|
1682
965
|
var de_UpdateNotificationCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1683
966
|
if (output.statusCode >= 300) {
|
|
1684
|
-
return
|
|
967
|
+
return de_CommandError(output, context);
|
|
1685
968
|
}
|
|
1686
969
|
const data = await parseBody(output.body, context);
|
|
1687
970
|
let contents = {};
|
|
@@ -1692,43 +975,9 @@ var de_UpdateNotificationCommand = /* @__PURE__ */ __name(async (output, context
|
|
|
1692
975
|
};
|
|
1693
976
|
return response;
|
|
1694
977
|
}, "de_UpdateNotificationCommand");
|
|
1695
|
-
var de_UpdateNotificationCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1696
|
-
const parsedOutput = {
|
|
1697
|
-
...output,
|
|
1698
|
-
body: await parseErrorBody(output.body, context)
|
|
1699
|
-
};
|
|
1700
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1701
|
-
switch (errorCode) {
|
|
1702
|
-
case "AccessDeniedException":
|
|
1703
|
-
case "com.amazonaws.budgets#AccessDeniedException":
|
|
1704
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1705
|
-
case "DuplicateRecordException":
|
|
1706
|
-
case "com.amazonaws.budgets#DuplicateRecordException":
|
|
1707
|
-
throw await de_DuplicateRecordExceptionRes(parsedOutput, context);
|
|
1708
|
-
case "InternalErrorException":
|
|
1709
|
-
case "com.amazonaws.budgets#InternalErrorException":
|
|
1710
|
-
throw await de_InternalErrorExceptionRes(parsedOutput, context);
|
|
1711
|
-
case "InvalidParameterException":
|
|
1712
|
-
case "com.amazonaws.budgets#InvalidParameterException":
|
|
1713
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
1714
|
-
case "NotFoundException":
|
|
1715
|
-
case "com.amazonaws.budgets#NotFoundException":
|
|
1716
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
1717
|
-
case "ThrottlingException":
|
|
1718
|
-
case "com.amazonaws.budgets#ThrottlingException":
|
|
1719
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1720
|
-
default:
|
|
1721
|
-
const parsedBody = parsedOutput.body;
|
|
1722
|
-
return throwDefaultError({
|
|
1723
|
-
output,
|
|
1724
|
-
parsedBody,
|
|
1725
|
-
errorCode
|
|
1726
|
-
});
|
|
1727
|
-
}
|
|
1728
|
-
}, "de_UpdateNotificationCommandError");
|
|
1729
978
|
var de_UpdateSubscriberCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1730
979
|
if (output.statusCode >= 300) {
|
|
1731
|
-
return
|
|
980
|
+
return de_CommandError(output, context);
|
|
1732
981
|
}
|
|
1733
982
|
const data = await parseBody(output.body, context);
|
|
1734
983
|
let contents = {};
|
|
@@ -1739,7 +988,7 @@ var de_UpdateSubscriberCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
1739
988
|
};
|
|
1740
989
|
return response;
|
|
1741
990
|
}, "de_UpdateSubscriberCommand");
|
|
1742
|
-
var
|
|
991
|
+
var de_CommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1743
992
|
const parsedOutput = {
|
|
1744
993
|
...output,
|
|
1745
994
|
body: await parseErrorBody(output.body, context)
|
|
@@ -1749,6 +998,9 @@ var de_UpdateSubscriberCommandError = /* @__PURE__ */ __name(async (output, cont
|
|
|
1749
998
|
case "AccessDeniedException":
|
|
1750
999
|
case "com.amazonaws.budgets#AccessDeniedException":
|
|
1751
1000
|
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1001
|
+
case "CreationLimitExceededException":
|
|
1002
|
+
case "com.amazonaws.budgets#CreationLimitExceededException":
|
|
1003
|
+
throw await de_CreationLimitExceededExceptionRes(parsedOutput, context);
|
|
1752
1004
|
case "DuplicateRecordException":
|
|
1753
1005
|
case "com.amazonaws.budgets#DuplicateRecordException":
|
|
1754
1006
|
throw await de_DuplicateRecordExceptionRes(parsedOutput, context);
|
|
@@ -1758,12 +1010,21 @@ var de_UpdateSubscriberCommandError = /* @__PURE__ */ __name(async (output, cont
|
|
|
1758
1010
|
case "InvalidParameterException":
|
|
1759
1011
|
case "com.amazonaws.budgets#InvalidParameterException":
|
|
1760
1012
|
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
1761
|
-
case "NotFoundException":
|
|
1762
|
-
case "com.amazonaws.budgets#NotFoundException":
|
|
1763
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
1764
1013
|
case "ThrottlingException":
|
|
1765
1014
|
case "com.amazonaws.budgets#ThrottlingException":
|
|
1766
1015
|
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1016
|
+
case "NotFoundException":
|
|
1017
|
+
case "com.amazonaws.budgets#NotFoundException":
|
|
1018
|
+
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
1019
|
+
case "ResourceLockedException":
|
|
1020
|
+
case "com.amazonaws.budgets#ResourceLockedException":
|
|
1021
|
+
throw await de_ResourceLockedExceptionRes(parsedOutput, context);
|
|
1022
|
+
case "InvalidNextTokenException":
|
|
1023
|
+
case "com.amazonaws.budgets#InvalidNextTokenException":
|
|
1024
|
+
throw await de_InvalidNextTokenExceptionRes(parsedOutput, context);
|
|
1025
|
+
case "ExpiredNextTokenException":
|
|
1026
|
+
case "com.amazonaws.budgets#ExpiredNextTokenException":
|
|
1027
|
+
throw await de_ExpiredNextTokenExceptionRes(parsedOutput, context);
|
|
1767
1028
|
default:
|
|
1768
1029
|
const parsedBody = parsedOutput.body;
|
|
1769
1030
|
return throwDefaultError({
|
|
@@ -1772,7 +1033,7 @@ var de_UpdateSubscriberCommandError = /* @__PURE__ */ __name(async (output, cont
|
|
|
1772
1033
|
errorCode
|
|
1773
1034
|
});
|
|
1774
1035
|
}
|
|
1775
|
-
}, "
|
|
1036
|
+
}, "de_CommandError");
|
|
1776
1037
|
var de_AccessDeniedExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
1777
1038
|
const body = parsedOutput.body;
|
|
1778
1039
|
const deserialized = (0, import_smithy_client._json)(body);
|