@aws-sdk/client-application-insights 3.504.0 → 3.507.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist-cjs/index.js CHANGED
@@ -646,7 +646,7 @@ var se_UpdateWorkloadCommand = /* @__PURE__ */ __name(async (input, context) =>
646
646
  }, "se_UpdateWorkloadCommand");
647
647
  var de_AddWorkloadCommand = /* @__PURE__ */ __name(async (output, context) => {
648
648
  if (output.statusCode >= 300) {
649
- return de_AddWorkloadCommandError(output, context);
649
+ return de_CommandError(output, context);
650
650
  }
651
651
  const data = await parseBody(output.body, context);
652
652
  let contents = {};
@@ -657,37 +657,9 @@ var de_AddWorkloadCommand = /* @__PURE__ */ __name(async (output, context) => {
657
657
  };
658
658
  return response;
659
659
  }, "de_AddWorkloadCommand");
660
- var de_AddWorkloadCommandError = /* @__PURE__ */ __name(async (output, context) => {
661
- const parsedOutput = {
662
- ...output,
663
- body: await parseErrorBody(output.body, context)
664
- };
665
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
666
- switch (errorCode) {
667
- case "InternalServerException":
668
- case "com.amazonaws.applicationinsights#InternalServerException":
669
- throw await de_InternalServerExceptionRes(parsedOutput, context);
670
- case "ResourceInUseException":
671
- case "com.amazonaws.applicationinsights#ResourceInUseException":
672
- throw await de_ResourceInUseExceptionRes(parsedOutput, context);
673
- case "ResourceNotFoundException":
674
- case "com.amazonaws.applicationinsights#ResourceNotFoundException":
675
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
676
- case "ValidationException":
677
- case "com.amazonaws.applicationinsights#ValidationException":
678
- throw await de_ValidationExceptionRes(parsedOutput, context);
679
- default:
680
- const parsedBody = parsedOutput.body;
681
- return throwDefaultError({
682
- output,
683
- parsedBody,
684
- errorCode
685
- });
686
- }
687
- }, "de_AddWorkloadCommandError");
688
660
  var de_CreateApplicationCommand = /* @__PURE__ */ __name(async (output, context) => {
689
661
  if (output.statusCode >= 300) {
690
- return de_CreateApplicationCommandError(output, context);
662
+ return de_CommandError(output, context);
691
663
  }
692
664
  const data = await parseBody(output.body, context);
693
665
  let contents = {};
@@ -698,43 +670,9 @@ var de_CreateApplicationCommand = /* @__PURE__ */ __name(async (output, context)
698
670
  };
699
671
  return response;
700
672
  }, "de_CreateApplicationCommand");
701
- var de_CreateApplicationCommandError = /* @__PURE__ */ __name(async (output, context) => {
702
- const parsedOutput = {
703
- ...output,
704
- body: await parseErrorBody(output.body, context)
705
- };
706
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
707
- switch (errorCode) {
708
- case "AccessDeniedException":
709
- case "com.amazonaws.applicationinsights#AccessDeniedException":
710
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
711
- case "InternalServerException":
712
- case "com.amazonaws.applicationinsights#InternalServerException":
713
- throw await de_InternalServerExceptionRes(parsedOutput, context);
714
- case "ResourceInUseException":
715
- case "com.amazonaws.applicationinsights#ResourceInUseException":
716
- throw await de_ResourceInUseExceptionRes(parsedOutput, context);
717
- case "ResourceNotFoundException":
718
- case "com.amazonaws.applicationinsights#ResourceNotFoundException":
719
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
720
- case "TagsAlreadyExistException":
721
- case "com.amazonaws.applicationinsights#TagsAlreadyExistException":
722
- throw await de_TagsAlreadyExistExceptionRes(parsedOutput, context);
723
- case "ValidationException":
724
- case "com.amazonaws.applicationinsights#ValidationException":
725
- throw await de_ValidationExceptionRes(parsedOutput, context);
726
- default:
727
- const parsedBody = parsedOutput.body;
728
- return throwDefaultError({
729
- output,
730
- parsedBody,
731
- errorCode
732
- });
733
- }
734
- }, "de_CreateApplicationCommandError");
735
673
  var de_CreateComponentCommand = /* @__PURE__ */ __name(async (output, context) => {
736
674
  if (output.statusCode >= 300) {
737
- return de_CreateComponentCommandError(output, context);
675
+ return de_CommandError(output, context);
738
676
  }
739
677
  const data = await parseBody(output.body, context);
740
678
  let contents = {};
@@ -745,37 +683,9 @@ var de_CreateComponentCommand = /* @__PURE__ */ __name(async (output, context) =
745
683
  };
746
684
  return response;
747
685
  }, "de_CreateComponentCommand");
748
- var de_CreateComponentCommandError = /* @__PURE__ */ __name(async (output, context) => {
749
- const parsedOutput = {
750
- ...output,
751
- body: await parseErrorBody(output.body, context)
752
- };
753
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
754
- switch (errorCode) {
755
- case "InternalServerException":
756
- case "com.amazonaws.applicationinsights#InternalServerException":
757
- throw await de_InternalServerExceptionRes(parsedOutput, context);
758
- case "ResourceInUseException":
759
- case "com.amazonaws.applicationinsights#ResourceInUseException":
760
- throw await de_ResourceInUseExceptionRes(parsedOutput, context);
761
- case "ResourceNotFoundException":
762
- case "com.amazonaws.applicationinsights#ResourceNotFoundException":
763
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
764
- case "ValidationException":
765
- case "com.amazonaws.applicationinsights#ValidationException":
766
- throw await de_ValidationExceptionRes(parsedOutput, context);
767
- default:
768
- const parsedBody = parsedOutput.body;
769
- return throwDefaultError({
770
- output,
771
- parsedBody,
772
- errorCode
773
- });
774
- }
775
- }, "de_CreateComponentCommandError");
776
686
  var de_CreateLogPatternCommand = /* @__PURE__ */ __name(async (output, context) => {
777
687
  if (output.statusCode >= 300) {
778
- return de_CreateLogPatternCommandError(output, context);
688
+ return de_CommandError(output, context);
779
689
  }
780
690
  const data = await parseBody(output.body, context);
781
691
  let contents = {};
@@ -786,37 +696,9 @@ var de_CreateLogPatternCommand = /* @__PURE__ */ __name(async (output, context)
786
696
  };
787
697
  return response;
788
698
  }, "de_CreateLogPatternCommand");
789
- var de_CreateLogPatternCommandError = /* @__PURE__ */ __name(async (output, context) => {
790
- const parsedOutput = {
791
- ...output,
792
- body: await parseErrorBody(output.body, context)
793
- };
794
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
795
- switch (errorCode) {
796
- case "InternalServerException":
797
- case "com.amazonaws.applicationinsights#InternalServerException":
798
- throw await de_InternalServerExceptionRes(parsedOutput, context);
799
- case "ResourceInUseException":
800
- case "com.amazonaws.applicationinsights#ResourceInUseException":
801
- throw await de_ResourceInUseExceptionRes(parsedOutput, context);
802
- case "ResourceNotFoundException":
803
- case "com.amazonaws.applicationinsights#ResourceNotFoundException":
804
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
805
- case "ValidationException":
806
- case "com.amazonaws.applicationinsights#ValidationException":
807
- throw await de_ValidationExceptionRes(parsedOutput, context);
808
- default:
809
- const parsedBody = parsedOutput.body;
810
- return throwDefaultError({
811
- output,
812
- parsedBody,
813
- errorCode
814
- });
815
- }
816
- }, "de_CreateLogPatternCommandError");
817
699
  var de_DeleteApplicationCommand = /* @__PURE__ */ __name(async (output, context) => {
818
700
  if (output.statusCode >= 300) {
819
- return de_DeleteApplicationCommandError(output, context);
701
+ return de_CommandError(output, context);
820
702
  }
821
703
  const data = await parseBody(output.body, context);
822
704
  let contents = {};
@@ -827,37 +709,9 @@ var de_DeleteApplicationCommand = /* @__PURE__ */ __name(async (output, context)
827
709
  };
828
710
  return response;
829
711
  }, "de_DeleteApplicationCommand");
830
- var de_DeleteApplicationCommandError = /* @__PURE__ */ __name(async (output, context) => {
831
- const parsedOutput = {
832
- ...output,
833
- body: await parseErrorBody(output.body, context)
834
- };
835
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
836
- switch (errorCode) {
837
- case "BadRequestException":
838
- case "com.amazonaws.applicationinsights#BadRequestException":
839
- throw await de_BadRequestExceptionRes(parsedOutput, context);
840
- case "InternalServerException":
841
- case "com.amazonaws.applicationinsights#InternalServerException":
842
- throw await de_InternalServerExceptionRes(parsedOutput, context);
843
- case "ResourceNotFoundException":
844
- case "com.amazonaws.applicationinsights#ResourceNotFoundException":
845
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
846
- case "ValidationException":
847
- case "com.amazonaws.applicationinsights#ValidationException":
848
- throw await de_ValidationExceptionRes(parsedOutput, context);
849
- default:
850
- const parsedBody = parsedOutput.body;
851
- return throwDefaultError({
852
- output,
853
- parsedBody,
854
- errorCode
855
- });
856
- }
857
- }, "de_DeleteApplicationCommandError");
858
712
  var de_DeleteComponentCommand = /* @__PURE__ */ __name(async (output, context) => {
859
713
  if (output.statusCode >= 300) {
860
- return de_DeleteComponentCommandError(output, context);
714
+ return de_CommandError(output, context);
861
715
  }
862
716
  const data = await parseBody(output.body, context);
863
717
  let contents = {};
@@ -868,34 +722,9 @@ var de_DeleteComponentCommand = /* @__PURE__ */ __name(async (output, context) =
868
722
  };
869
723
  return response;
870
724
  }, "de_DeleteComponentCommand");
871
- var de_DeleteComponentCommandError = /* @__PURE__ */ __name(async (output, context) => {
872
- const parsedOutput = {
873
- ...output,
874
- body: await parseErrorBody(output.body, context)
875
- };
876
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
877
- switch (errorCode) {
878
- case "InternalServerException":
879
- case "com.amazonaws.applicationinsights#InternalServerException":
880
- throw await de_InternalServerExceptionRes(parsedOutput, context);
881
- case "ResourceNotFoundException":
882
- case "com.amazonaws.applicationinsights#ResourceNotFoundException":
883
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
884
- case "ValidationException":
885
- case "com.amazonaws.applicationinsights#ValidationException":
886
- throw await de_ValidationExceptionRes(parsedOutput, context);
887
- default:
888
- const parsedBody = parsedOutput.body;
889
- return throwDefaultError({
890
- output,
891
- parsedBody,
892
- errorCode
893
- });
894
- }
895
- }, "de_DeleteComponentCommandError");
896
725
  var de_DeleteLogPatternCommand = /* @__PURE__ */ __name(async (output, context) => {
897
726
  if (output.statusCode >= 300) {
898
- return de_DeleteLogPatternCommandError(output, context);
727
+ return de_CommandError(output, context);
899
728
  }
900
729
  const data = await parseBody(output.body, context);
901
730
  let contents = {};
@@ -906,37 +735,9 @@ var de_DeleteLogPatternCommand = /* @__PURE__ */ __name(async (output, context)
906
735
  };
907
736
  return response;
908
737
  }, "de_DeleteLogPatternCommand");
909
- var de_DeleteLogPatternCommandError = /* @__PURE__ */ __name(async (output, context) => {
910
- const parsedOutput = {
911
- ...output,
912
- body: await parseErrorBody(output.body, context)
913
- };
914
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
915
- switch (errorCode) {
916
- case "BadRequestException":
917
- case "com.amazonaws.applicationinsights#BadRequestException":
918
- throw await de_BadRequestExceptionRes(parsedOutput, context);
919
- case "InternalServerException":
920
- case "com.amazonaws.applicationinsights#InternalServerException":
921
- throw await de_InternalServerExceptionRes(parsedOutput, context);
922
- case "ResourceNotFoundException":
923
- case "com.amazonaws.applicationinsights#ResourceNotFoundException":
924
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
925
- case "ValidationException":
926
- case "com.amazonaws.applicationinsights#ValidationException":
927
- throw await de_ValidationExceptionRes(parsedOutput, context);
928
- default:
929
- const parsedBody = parsedOutput.body;
930
- return throwDefaultError({
931
- output,
932
- parsedBody,
933
- errorCode
934
- });
935
- }
936
- }, "de_DeleteLogPatternCommandError");
937
738
  var de_DescribeApplicationCommand = /* @__PURE__ */ __name(async (output, context) => {
938
739
  if (output.statusCode >= 300) {
939
- return de_DescribeApplicationCommandError(output, context);
740
+ return de_CommandError(output, context);
940
741
  }
941
742
  const data = await parseBody(output.body, context);
942
743
  let contents = {};
@@ -947,34 +748,9 @@ var de_DescribeApplicationCommand = /* @__PURE__ */ __name(async (output, contex
947
748
  };
948
749
  return response;
949
750
  }, "de_DescribeApplicationCommand");
950
- var de_DescribeApplicationCommandError = /* @__PURE__ */ __name(async (output, context) => {
951
- const parsedOutput = {
952
- ...output,
953
- body: await parseErrorBody(output.body, context)
954
- };
955
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
956
- switch (errorCode) {
957
- case "InternalServerException":
958
- case "com.amazonaws.applicationinsights#InternalServerException":
959
- throw await de_InternalServerExceptionRes(parsedOutput, context);
960
- case "ResourceNotFoundException":
961
- case "com.amazonaws.applicationinsights#ResourceNotFoundException":
962
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
963
- case "ValidationException":
964
- case "com.amazonaws.applicationinsights#ValidationException":
965
- throw await de_ValidationExceptionRes(parsedOutput, context);
966
- default:
967
- const parsedBody = parsedOutput.body;
968
- return throwDefaultError({
969
- output,
970
- parsedBody,
971
- errorCode
972
- });
973
- }
974
- }, "de_DescribeApplicationCommandError");
975
751
  var de_DescribeComponentCommand = /* @__PURE__ */ __name(async (output, context) => {
976
752
  if (output.statusCode >= 300) {
977
- return de_DescribeComponentCommandError(output, context);
753
+ return de_CommandError(output, context);
978
754
  }
979
755
  const data = await parseBody(output.body, context);
980
756
  let contents = {};
@@ -985,34 +761,9 @@ var de_DescribeComponentCommand = /* @__PURE__ */ __name(async (output, context)
985
761
  };
986
762
  return response;
987
763
  }, "de_DescribeComponentCommand");
988
- var de_DescribeComponentCommandError = /* @__PURE__ */ __name(async (output, context) => {
989
- const parsedOutput = {
990
- ...output,
991
- body: await parseErrorBody(output.body, context)
992
- };
993
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
994
- switch (errorCode) {
995
- case "InternalServerException":
996
- case "com.amazonaws.applicationinsights#InternalServerException":
997
- throw await de_InternalServerExceptionRes(parsedOutput, context);
998
- case "ResourceNotFoundException":
999
- case "com.amazonaws.applicationinsights#ResourceNotFoundException":
1000
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1001
- case "ValidationException":
1002
- case "com.amazonaws.applicationinsights#ValidationException":
1003
- throw await de_ValidationExceptionRes(parsedOutput, context);
1004
- default:
1005
- const parsedBody = parsedOutput.body;
1006
- return throwDefaultError({
1007
- output,
1008
- parsedBody,
1009
- errorCode
1010
- });
1011
- }
1012
- }, "de_DescribeComponentCommandError");
1013
764
  var de_DescribeComponentConfigurationCommand = /* @__PURE__ */ __name(async (output, context) => {
1014
765
  if (output.statusCode >= 300) {
1015
- return de_DescribeComponentConfigurationCommandError(output, context);
766
+ return de_CommandError(output, context);
1016
767
  }
1017
768
  const data = await parseBody(output.body, context);
1018
769
  let contents = {};
@@ -1023,34 +774,9 @@ var de_DescribeComponentConfigurationCommand = /* @__PURE__ */ __name(async (out
1023
774
  };
1024
775
  return response;
1025
776
  }, "de_DescribeComponentConfigurationCommand");
1026
- var de_DescribeComponentConfigurationCommandError = /* @__PURE__ */ __name(async (output, context) => {
1027
- const parsedOutput = {
1028
- ...output,
1029
- body: await parseErrorBody(output.body, context)
1030
- };
1031
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1032
- switch (errorCode) {
1033
- case "InternalServerException":
1034
- case "com.amazonaws.applicationinsights#InternalServerException":
1035
- throw await de_InternalServerExceptionRes(parsedOutput, context);
1036
- case "ResourceNotFoundException":
1037
- case "com.amazonaws.applicationinsights#ResourceNotFoundException":
1038
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1039
- case "ValidationException":
1040
- case "com.amazonaws.applicationinsights#ValidationException":
1041
- throw await de_ValidationExceptionRes(parsedOutput, context);
1042
- default:
1043
- const parsedBody = parsedOutput.body;
1044
- return throwDefaultError({
1045
- output,
1046
- parsedBody,
1047
- errorCode
1048
- });
1049
- }
1050
- }, "de_DescribeComponentConfigurationCommandError");
1051
777
  var de_DescribeComponentConfigurationRecommendationCommand = /* @__PURE__ */ __name(async (output, context) => {
1052
778
  if (output.statusCode >= 300) {
1053
- return de_DescribeComponentConfigurationRecommendationCommandError(output, context);
779
+ return de_CommandError(output, context);
1054
780
  }
1055
781
  const data = await parseBody(output.body, context);
1056
782
  let contents = {};
@@ -1061,34 +787,9 @@ var de_DescribeComponentConfigurationRecommendationCommand = /* @__PURE__ */ __n
1061
787
  };
1062
788
  return response;
1063
789
  }, "de_DescribeComponentConfigurationRecommendationCommand");
1064
- var de_DescribeComponentConfigurationRecommendationCommandError = /* @__PURE__ */ __name(async (output, context) => {
1065
- const parsedOutput = {
1066
- ...output,
1067
- body: await parseErrorBody(output.body, context)
1068
- };
1069
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1070
- switch (errorCode) {
1071
- case "InternalServerException":
1072
- case "com.amazonaws.applicationinsights#InternalServerException":
1073
- throw await de_InternalServerExceptionRes(parsedOutput, context);
1074
- case "ResourceNotFoundException":
1075
- case "com.amazonaws.applicationinsights#ResourceNotFoundException":
1076
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1077
- case "ValidationException":
1078
- case "com.amazonaws.applicationinsights#ValidationException":
1079
- throw await de_ValidationExceptionRes(parsedOutput, context);
1080
- default:
1081
- const parsedBody = parsedOutput.body;
1082
- return throwDefaultError({
1083
- output,
1084
- parsedBody,
1085
- errorCode
1086
- });
1087
- }
1088
- }, "de_DescribeComponentConfigurationRecommendationCommandError");
1089
790
  var de_DescribeLogPatternCommand = /* @__PURE__ */ __name(async (output, context) => {
1090
791
  if (output.statusCode >= 300) {
1091
- return de_DescribeLogPatternCommandError(output, context);
792
+ return de_CommandError(output, context);
1092
793
  }
1093
794
  const data = await parseBody(output.body, context);
1094
795
  let contents = {};
@@ -1099,34 +800,9 @@ var de_DescribeLogPatternCommand = /* @__PURE__ */ __name(async (output, context
1099
800
  };
1100
801
  return response;
1101
802
  }, "de_DescribeLogPatternCommand");
1102
- var de_DescribeLogPatternCommandError = /* @__PURE__ */ __name(async (output, context) => {
1103
- const parsedOutput = {
1104
- ...output,
1105
- body: await parseErrorBody(output.body, context)
1106
- };
1107
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1108
- switch (errorCode) {
1109
- case "InternalServerException":
1110
- case "com.amazonaws.applicationinsights#InternalServerException":
1111
- throw await de_InternalServerExceptionRes(parsedOutput, context);
1112
- case "ResourceNotFoundException":
1113
- case "com.amazonaws.applicationinsights#ResourceNotFoundException":
1114
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1115
- case "ValidationException":
1116
- case "com.amazonaws.applicationinsights#ValidationException":
1117
- throw await de_ValidationExceptionRes(parsedOutput, context);
1118
- default:
1119
- const parsedBody = parsedOutput.body;
1120
- return throwDefaultError({
1121
- output,
1122
- parsedBody,
1123
- errorCode
1124
- });
1125
- }
1126
- }, "de_DescribeLogPatternCommandError");
1127
803
  var de_DescribeObservationCommand = /* @__PURE__ */ __name(async (output, context) => {
1128
804
  if (output.statusCode >= 300) {
1129
- return de_DescribeObservationCommandError(output, context);
805
+ return de_CommandError(output, context);
1130
806
  }
1131
807
  const data = await parseBody(output.body, context);
1132
808
  let contents = {};
@@ -1137,34 +813,9 @@ var de_DescribeObservationCommand = /* @__PURE__ */ __name(async (output, contex
1137
813
  };
1138
814
  return response;
1139
815
  }, "de_DescribeObservationCommand");
1140
- var de_DescribeObservationCommandError = /* @__PURE__ */ __name(async (output, context) => {
1141
- const parsedOutput = {
1142
- ...output,
1143
- body: await parseErrorBody(output.body, context)
1144
- };
1145
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1146
- switch (errorCode) {
1147
- case "InternalServerException":
1148
- case "com.amazonaws.applicationinsights#InternalServerException":
1149
- throw await de_InternalServerExceptionRes(parsedOutput, context);
1150
- case "ResourceNotFoundException":
1151
- case "com.amazonaws.applicationinsights#ResourceNotFoundException":
1152
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1153
- case "ValidationException":
1154
- case "com.amazonaws.applicationinsights#ValidationException":
1155
- throw await de_ValidationExceptionRes(parsedOutput, context);
1156
- default:
1157
- const parsedBody = parsedOutput.body;
1158
- return throwDefaultError({
1159
- output,
1160
- parsedBody,
1161
- errorCode
1162
- });
1163
- }
1164
- }, "de_DescribeObservationCommandError");
1165
816
  var de_DescribeProblemCommand = /* @__PURE__ */ __name(async (output, context) => {
1166
817
  if (output.statusCode >= 300) {
1167
- return de_DescribeProblemCommandError(output, context);
818
+ return de_CommandError(output, context);
1168
819
  }
1169
820
  const data = await parseBody(output.body, context);
1170
821
  let contents = {};
@@ -1175,34 +826,9 @@ var de_DescribeProblemCommand = /* @__PURE__ */ __name(async (output, context) =
1175
826
  };
1176
827
  return response;
1177
828
  }, "de_DescribeProblemCommand");
1178
- var de_DescribeProblemCommandError = /* @__PURE__ */ __name(async (output, context) => {
1179
- const parsedOutput = {
1180
- ...output,
1181
- body: await parseErrorBody(output.body, context)
1182
- };
1183
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1184
- switch (errorCode) {
1185
- case "InternalServerException":
1186
- case "com.amazonaws.applicationinsights#InternalServerException":
1187
- throw await de_InternalServerExceptionRes(parsedOutput, context);
1188
- case "ResourceNotFoundException":
1189
- case "com.amazonaws.applicationinsights#ResourceNotFoundException":
1190
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1191
- case "ValidationException":
1192
- case "com.amazonaws.applicationinsights#ValidationException":
1193
- throw await de_ValidationExceptionRes(parsedOutput, context);
1194
- default:
1195
- const parsedBody = parsedOutput.body;
1196
- return throwDefaultError({
1197
- output,
1198
- parsedBody,
1199
- errorCode
1200
- });
1201
- }
1202
- }, "de_DescribeProblemCommandError");
1203
829
  var de_DescribeProblemObservationsCommand = /* @__PURE__ */ __name(async (output, context) => {
1204
830
  if (output.statusCode >= 300) {
1205
- return de_DescribeProblemObservationsCommandError(output, context);
831
+ return de_CommandError(output, context);
1206
832
  }
1207
833
  const data = await parseBody(output.body, context);
1208
834
  let contents = {};
@@ -1213,34 +839,9 @@ var de_DescribeProblemObservationsCommand = /* @__PURE__ */ __name(async (output
1213
839
  };
1214
840
  return response;
1215
841
  }, "de_DescribeProblemObservationsCommand");
1216
- var de_DescribeProblemObservationsCommandError = /* @__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 "InternalServerException":
1224
- case "com.amazonaws.applicationinsights#InternalServerException":
1225
- throw await de_InternalServerExceptionRes(parsedOutput, context);
1226
- case "ResourceNotFoundException":
1227
- case "com.amazonaws.applicationinsights#ResourceNotFoundException":
1228
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1229
- case "ValidationException":
1230
- case "com.amazonaws.applicationinsights#ValidationException":
1231
- throw await de_ValidationExceptionRes(parsedOutput, context);
1232
- default:
1233
- const parsedBody = parsedOutput.body;
1234
- return throwDefaultError({
1235
- output,
1236
- parsedBody,
1237
- errorCode
1238
- });
1239
- }
1240
- }, "de_DescribeProblemObservationsCommandError");
1241
842
  var de_DescribeWorkloadCommand = /* @__PURE__ */ __name(async (output, context) => {
1242
843
  if (output.statusCode >= 300) {
1243
- return de_DescribeWorkloadCommandError(output, context);
844
+ return de_CommandError(output, context);
1244
845
  }
1245
846
  const data = await parseBody(output.body, context);
1246
847
  let contents = {};
@@ -1251,34 +852,9 @@ var de_DescribeWorkloadCommand = /* @__PURE__ */ __name(async (output, context)
1251
852
  };
1252
853
  return response;
1253
854
  }, "de_DescribeWorkloadCommand");
1254
- var de_DescribeWorkloadCommandError = /* @__PURE__ */ __name(async (output, context) => {
1255
- const parsedOutput = {
1256
- ...output,
1257
- body: await parseErrorBody(output.body, context)
1258
- };
1259
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1260
- switch (errorCode) {
1261
- case "InternalServerException":
1262
- case "com.amazonaws.applicationinsights#InternalServerException":
1263
- throw await de_InternalServerExceptionRes(parsedOutput, context);
1264
- case "ResourceNotFoundException":
1265
- case "com.amazonaws.applicationinsights#ResourceNotFoundException":
1266
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1267
- case "ValidationException":
1268
- case "com.amazonaws.applicationinsights#ValidationException":
1269
- throw await de_ValidationExceptionRes(parsedOutput, context);
1270
- default:
1271
- const parsedBody = parsedOutput.body;
1272
- return throwDefaultError({
1273
- output,
1274
- parsedBody,
1275
- errorCode
1276
- });
1277
- }
1278
- }, "de_DescribeWorkloadCommandError");
1279
855
  var de_ListApplicationsCommand = /* @__PURE__ */ __name(async (output, context) => {
1280
856
  if (output.statusCode >= 300) {
1281
- return de_ListApplicationsCommandError(output, context);
857
+ return de_CommandError(output, context);
1282
858
  }
1283
859
  const data = await parseBody(output.body, context);
1284
860
  let contents = {};
@@ -1289,31 +865,9 @@ var de_ListApplicationsCommand = /* @__PURE__ */ __name(async (output, context)
1289
865
  };
1290
866
  return response;
1291
867
  }, "de_ListApplicationsCommand");
1292
- var de_ListApplicationsCommandError = /* @__PURE__ */ __name(async (output, context) => {
1293
- const parsedOutput = {
1294
- ...output,
1295
- body: await parseErrorBody(output.body, context)
1296
- };
1297
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1298
- switch (errorCode) {
1299
- case "InternalServerException":
1300
- case "com.amazonaws.applicationinsights#InternalServerException":
1301
- throw await de_InternalServerExceptionRes(parsedOutput, context);
1302
- case "ValidationException":
1303
- case "com.amazonaws.applicationinsights#ValidationException":
1304
- throw await de_ValidationExceptionRes(parsedOutput, context);
1305
- default:
1306
- const parsedBody = parsedOutput.body;
1307
- return throwDefaultError({
1308
- output,
1309
- parsedBody,
1310
- errorCode
1311
- });
1312
- }
1313
- }, "de_ListApplicationsCommandError");
1314
868
  var de_ListComponentsCommand = /* @__PURE__ */ __name(async (output, context) => {
1315
869
  if (output.statusCode >= 300) {
1316
- return de_ListComponentsCommandError(output, context);
870
+ return de_CommandError(output, context);
1317
871
  }
1318
872
  const data = await parseBody(output.body, context);
1319
873
  let contents = {};
@@ -1324,34 +878,9 @@ var de_ListComponentsCommand = /* @__PURE__ */ __name(async (output, context) =>
1324
878
  };
1325
879
  return response;
1326
880
  }, "de_ListComponentsCommand");
1327
- var de_ListComponentsCommandError = /* @__PURE__ */ __name(async (output, context) => {
1328
- const parsedOutput = {
1329
- ...output,
1330
- body: await parseErrorBody(output.body, context)
1331
- };
1332
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1333
- switch (errorCode) {
1334
- case "InternalServerException":
1335
- case "com.amazonaws.applicationinsights#InternalServerException":
1336
- throw await de_InternalServerExceptionRes(parsedOutput, context);
1337
- case "ResourceNotFoundException":
1338
- case "com.amazonaws.applicationinsights#ResourceNotFoundException":
1339
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1340
- case "ValidationException":
1341
- case "com.amazonaws.applicationinsights#ValidationException":
1342
- throw await de_ValidationExceptionRes(parsedOutput, context);
1343
- default:
1344
- const parsedBody = parsedOutput.body;
1345
- return throwDefaultError({
1346
- output,
1347
- parsedBody,
1348
- errorCode
1349
- });
1350
- }
1351
- }, "de_ListComponentsCommandError");
1352
881
  var de_ListConfigurationHistoryCommand = /* @__PURE__ */ __name(async (output, context) => {
1353
882
  if (output.statusCode >= 300) {
1354
- return de_ListConfigurationHistoryCommandError(output, context);
883
+ return de_CommandError(output, context);
1355
884
  }
1356
885
  const data = await parseBody(output.body, context);
1357
886
  let contents = {};
@@ -1362,34 +891,9 @@ var de_ListConfigurationHistoryCommand = /* @__PURE__ */ __name(async (output, c
1362
891
  };
1363
892
  return response;
1364
893
  }, "de_ListConfigurationHistoryCommand");
1365
- var de_ListConfigurationHistoryCommandError = /* @__PURE__ */ __name(async (output, context) => {
1366
- const parsedOutput = {
1367
- ...output,
1368
- body: await parseErrorBody(output.body, context)
1369
- };
1370
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1371
- switch (errorCode) {
1372
- case "InternalServerException":
1373
- case "com.amazonaws.applicationinsights#InternalServerException":
1374
- throw await de_InternalServerExceptionRes(parsedOutput, context);
1375
- case "ResourceNotFoundException":
1376
- case "com.amazonaws.applicationinsights#ResourceNotFoundException":
1377
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1378
- case "ValidationException":
1379
- case "com.amazonaws.applicationinsights#ValidationException":
1380
- throw await de_ValidationExceptionRes(parsedOutput, context);
1381
- default:
1382
- const parsedBody = parsedOutput.body;
1383
- return throwDefaultError({
1384
- output,
1385
- parsedBody,
1386
- errorCode
1387
- });
1388
- }
1389
- }, "de_ListConfigurationHistoryCommandError");
1390
894
  var de_ListLogPatternsCommand = /* @__PURE__ */ __name(async (output, context) => {
1391
895
  if (output.statusCode >= 300) {
1392
- return de_ListLogPatternsCommandError(output, context);
896
+ return de_CommandError(output, context);
1393
897
  }
1394
898
  const data = await parseBody(output.body, context);
1395
899
  let contents = {};
@@ -1400,34 +904,9 @@ var de_ListLogPatternsCommand = /* @__PURE__ */ __name(async (output, context) =
1400
904
  };
1401
905
  return response;
1402
906
  }, "de_ListLogPatternsCommand");
1403
- var de_ListLogPatternsCommandError = /* @__PURE__ */ __name(async (output, context) => {
1404
- const parsedOutput = {
1405
- ...output,
1406
- body: await parseErrorBody(output.body, context)
1407
- };
1408
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1409
- switch (errorCode) {
1410
- case "InternalServerException":
1411
- case "com.amazonaws.applicationinsights#InternalServerException":
1412
- throw await de_InternalServerExceptionRes(parsedOutput, context);
1413
- case "ResourceNotFoundException":
1414
- case "com.amazonaws.applicationinsights#ResourceNotFoundException":
1415
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1416
- case "ValidationException":
1417
- case "com.amazonaws.applicationinsights#ValidationException":
1418
- throw await de_ValidationExceptionRes(parsedOutput, context);
1419
- default:
1420
- const parsedBody = parsedOutput.body;
1421
- return throwDefaultError({
1422
- output,
1423
- parsedBody,
1424
- errorCode
1425
- });
1426
- }
1427
- }, "de_ListLogPatternsCommandError");
1428
907
  var de_ListLogPatternSetsCommand = /* @__PURE__ */ __name(async (output, context) => {
1429
908
  if (output.statusCode >= 300) {
1430
- return de_ListLogPatternSetsCommandError(output, context);
909
+ return de_CommandError(output, context);
1431
910
  }
1432
911
  const data = await parseBody(output.body, context);
1433
912
  let contents = {};
@@ -1438,72 +917,22 @@ var de_ListLogPatternSetsCommand = /* @__PURE__ */ __name(async (output, context
1438
917
  };
1439
918
  return response;
1440
919
  }, "de_ListLogPatternSetsCommand");
1441
- var de_ListLogPatternSetsCommandError = /* @__PURE__ */ __name(async (output, context) => {
1442
- const parsedOutput = {
1443
- ...output,
1444
- body: await parseErrorBody(output.body, context)
1445
- };
1446
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1447
- switch (errorCode) {
1448
- case "InternalServerException":
1449
- case "com.amazonaws.applicationinsights#InternalServerException":
1450
- throw await de_InternalServerExceptionRes(parsedOutput, context);
1451
- case "ResourceNotFoundException":
1452
- case "com.amazonaws.applicationinsights#ResourceNotFoundException":
1453
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1454
- case "ValidationException":
1455
- case "com.amazonaws.applicationinsights#ValidationException":
1456
- throw await de_ValidationExceptionRes(parsedOutput, context);
1457
- default:
1458
- const parsedBody = parsedOutput.body;
1459
- return throwDefaultError({
1460
- output,
1461
- parsedBody,
1462
- errorCode
1463
- });
1464
- }
1465
- }, "de_ListLogPatternSetsCommandError");
1466
920
  var de_ListProblemsCommand = /* @__PURE__ */ __name(async (output, context) => {
1467
921
  if (output.statusCode >= 300) {
1468
- return de_ListProblemsCommandError(output, context);
922
+ return de_CommandError(output, context);
1469
923
  }
1470
924
  const data = await parseBody(output.body, context);
1471
- let contents = {};
1472
- contents = de_ListProblemsResponse(data, context);
1473
- const response = {
1474
- $metadata: deserializeMetadata(output),
1475
- ...contents
1476
- };
1477
- return response;
1478
- }, "de_ListProblemsCommand");
1479
- var de_ListProblemsCommandError = /* @__PURE__ */ __name(async (output, context) => {
1480
- const parsedOutput = {
1481
- ...output,
1482
- body: await parseErrorBody(output.body, context)
1483
- };
1484
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1485
- switch (errorCode) {
1486
- case "InternalServerException":
1487
- case "com.amazonaws.applicationinsights#InternalServerException":
1488
- throw await de_InternalServerExceptionRes(parsedOutput, context);
1489
- case "ResourceNotFoundException":
1490
- case "com.amazonaws.applicationinsights#ResourceNotFoundException":
1491
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1492
- case "ValidationException":
1493
- case "com.amazonaws.applicationinsights#ValidationException":
1494
- throw await de_ValidationExceptionRes(parsedOutput, context);
1495
- default:
1496
- const parsedBody = parsedOutput.body;
1497
- return throwDefaultError({
1498
- output,
1499
- parsedBody,
1500
- errorCode
1501
- });
1502
- }
1503
- }, "de_ListProblemsCommandError");
925
+ let contents = {};
926
+ contents = de_ListProblemsResponse(data, context);
927
+ const response = {
928
+ $metadata: deserializeMetadata(output),
929
+ ...contents
930
+ };
931
+ return response;
932
+ }, "de_ListProblemsCommand");
1504
933
  var de_ListTagsForResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
1505
934
  if (output.statusCode >= 300) {
1506
- return de_ListTagsForResourceCommandError(output, context);
935
+ return de_CommandError(output, context);
1507
936
  }
1508
937
  const data = await parseBody(output.body, context);
1509
938
  let contents = {};
@@ -1514,31 +943,9 @@ var de_ListTagsForResourceCommand = /* @__PURE__ */ __name(async (output, contex
1514
943
  };
1515
944
  return response;
1516
945
  }, "de_ListTagsForResourceCommand");
1517
- var de_ListTagsForResourceCommandError = /* @__PURE__ */ __name(async (output, context) => {
1518
- const parsedOutput = {
1519
- ...output,
1520
- body: await parseErrorBody(output.body, context)
1521
- };
1522
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1523
- switch (errorCode) {
1524
- case "ResourceNotFoundException":
1525
- case "com.amazonaws.applicationinsights#ResourceNotFoundException":
1526
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1527
- case "ValidationException":
1528
- case "com.amazonaws.applicationinsights#ValidationException":
1529
- throw await de_ValidationExceptionRes(parsedOutput, context);
1530
- default:
1531
- const parsedBody = parsedOutput.body;
1532
- return throwDefaultError({
1533
- output,
1534
- parsedBody,
1535
- errorCode
1536
- });
1537
- }
1538
- }, "de_ListTagsForResourceCommandError");
1539
946
  var de_ListWorkloadsCommand = /* @__PURE__ */ __name(async (output, context) => {
1540
947
  if (output.statusCode >= 300) {
1541
- return de_ListWorkloadsCommandError(output, context);
948
+ return de_CommandError(output, context);
1542
949
  }
1543
950
  const data = await parseBody(output.body, context);
1544
951
  let contents = {};
@@ -1549,34 +956,9 @@ var de_ListWorkloadsCommand = /* @__PURE__ */ __name(async (output, context) =>
1549
956
  };
1550
957
  return response;
1551
958
  }, "de_ListWorkloadsCommand");
1552
- var de_ListWorkloadsCommandError = /* @__PURE__ */ __name(async (output, context) => {
1553
- const parsedOutput = {
1554
- ...output,
1555
- body: await parseErrorBody(output.body, context)
1556
- };
1557
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1558
- switch (errorCode) {
1559
- case "InternalServerException":
1560
- case "com.amazonaws.applicationinsights#InternalServerException":
1561
- throw await de_InternalServerExceptionRes(parsedOutput, context);
1562
- case "ResourceNotFoundException":
1563
- case "com.amazonaws.applicationinsights#ResourceNotFoundException":
1564
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1565
- case "ValidationException":
1566
- case "com.amazonaws.applicationinsights#ValidationException":
1567
- throw await de_ValidationExceptionRes(parsedOutput, context);
1568
- default:
1569
- const parsedBody = parsedOutput.body;
1570
- return throwDefaultError({
1571
- output,
1572
- parsedBody,
1573
- errorCode
1574
- });
1575
- }
1576
- }, "de_ListWorkloadsCommandError");
1577
959
  var de_RemoveWorkloadCommand = /* @__PURE__ */ __name(async (output, context) => {
1578
960
  if (output.statusCode >= 300) {
1579
- return de_RemoveWorkloadCommandError(output, context);
961
+ return de_CommandError(output, context);
1580
962
  }
1581
963
  const data = await parseBody(output.body, context);
1582
964
  let contents = {};
@@ -1587,34 +969,9 @@ var de_RemoveWorkloadCommand = /* @__PURE__ */ __name(async (output, context) =>
1587
969
  };
1588
970
  return response;
1589
971
  }, "de_RemoveWorkloadCommand");
1590
- var de_RemoveWorkloadCommandError = /* @__PURE__ */ __name(async (output, context) => {
1591
- const parsedOutput = {
1592
- ...output,
1593
- body: await parseErrorBody(output.body, context)
1594
- };
1595
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1596
- switch (errorCode) {
1597
- case "InternalServerException":
1598
- case "com.amazonaws.applicationinsights#InternalServerException":
1599
- throw await de_InternalServerExceptionRes(parsedOutput, context);
1600
- case "ResourceNotFoundException":
1601
- case "com.amazonaws.applicationinsights#ResourceNotFoundException":
1602
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1603
- case "ValidationException":
1604
- case "com.amazonaws.applicationinsights#ValidationException":
1605
- throw await de_ValidationExceptionRes(parsedOutput, context);
1606
- default:
1607
- const parsedBody = parsedOutput.body;
1608
- return throwDefaultError({
1609
- output,
1610
- parsedBody,
1611
- errorCode
1612
- });
1613
- }
1614
- }, "de_RemoveWorkloadCommandError");
1615
972
  var de_TagResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
1616
973
  if (output.statusCode >= 300) {
1617
- return de_TagResourceCommandError(output, context);
974
+ return de_CommandError(output, context);
1618
975
  }
1619
976
  const data = await parseBody(output.body, context);
1620
977
  let contents = {};
@@ -1625,34 +982,9 @@ var de_TagResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
1625
982
  };
1626
983
  return response;
1627
984
  }, "de_TagResourceCommand");
1628
- var de_TagResourceCommandError = /* @__PURE__ */ __name(async (output, context) => {
1629
- const parsedOutput = {
1630
- ...output,
1631
- body: await parseErrorBody(output.body, context)
1632
- };
1633
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1634
- switch (errorCode) {
1635
- case "ResourceNotFoundException":
1636
- case "com.amazonaws.applicationinsights#ResourceNotFoundException":
1637
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1638
- case "TooManyTagsException":
1639
- case "com.amazonaws.applicationinsights#TooManyTagsException":
1640
- throw await de_TooManyTagsExceptionRes(parsedOutput, context);
1641
- case "ValidationException":
1642
- case "com.amazonaws.applicationinsights#ValidationException":
1643
- throw await de_ValidationExceptionRes(parsedOutput, context);
1644
- default:
1645
- const parsedBody = parsedOutput.body;
1646
- return throwDefaultError({
1647
- output,
1648
- parsedBody,
1649
- errorCode
1650
- });
1651
- }
1652
- }, "de_TagResourceCommandError");
1653
985
  var de_UntagResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
1654
986
  if (output.statusCode >= 300) {
1655
- return de_UntagResourceCommandError(output, context);
987
+ return de_CommandError(output, context);
1656
988
  }
1657
989
  const data = await parseBody(output.body, context);
1658
990
  let contents = {};
@@ -1663,31 +995,9 @@ var de_UntagResourceCommand = /* @__PURE__ */ __name(async (output, context) =>
1663
995
  };
1664
996
  return response;
1665
997
  }, "de_UntagResourceCommand");
1666
- var de_UntagResourceCommandError = /* @__PURE__ */ __name(async (output, context) => {
1667
- const parsedOutput = {
1668
- ...output,
1669
- body: await parseErrorBody(output.body, context)
1670
- };
1671
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1672
- switch (errorCode) {
1673
- case "ResourceNotFoundException":
1674
- case "com.amazonaws.applicationinsights#ResourceNotFoundException":
1675
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1676
- case "ValidationException":
1677
- case "com.amazonaws.applicationinsights#ValidationException":
1678
- throw await de_ValidationExceptionRes(parsedOutput, context);
1679
- default:
1680
- const parsedBody = parsedOutput.body;
1681
- return throwDefaultError({
1682
- output,
1683
- parsedBody,
1684
- errorCode
1685
- });
1686
- }
1687
- }, "de_UntagResourceCommandError");
1688
998
  var de_UpdateApplicationCommand = /* @__PURE__ */ __name(async (output, context) => {
1689
999
  if (output.statusCode >= 300) {
1690
- return de_UpdateApplicationCommandError(output, context);
1000
+ return de_CommandError(output, context);
1691
1001
  }
1692
1002
  const data = await parseBody(output.body, context);
1693
1003
  let contents = {};
@@ -1698,34 +1008,9 @@ var de_UpdateApplicationCommand = /* @__PURE__ */ __name(async (output, context)
1698
1008
  };
1699
1009
  return response;
1700
1010
  }, "de_UpdateApplicationCommand");
1701
- var de_UpdateApplicationCommandError = /* @__PURE__ */ __name(async (output, context) => {
1702
- const parsedOutput = {
1703
- ...output,
1704
- body: await parseErrorBody(output.body, context)
1705
- };
1706
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1707
- switch (errorCode) {
1708
- case "InternalServerException":
1709
- case "com.amazonaws.applicationinsights#InternalServerException":
1710
- throw await de_InternalServerExceptionRes(parsedOutput, context);
1711
- case "ResourceNotFoundException":
1712
- case "com.amazonaws.applicationinsights#ResourceNotFoundException":
1713
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1714
- case "ValidationException":
1715
- case "com.amazonaws.applicationinsights#ValidationException":
1716
- throw await de_ValidationExceptionRes(parsedOutput, context);
1717
- default:
1718
- const parsedBody = parsedOutput.body;
1719
- return throwDefaultError({
1720
- output,
1721
- parsedBody,
1722
- errorCode
1723
- });
1724
- }
1725
- }, "de_UpdateApplicationCommandError");
1726
1011
  var de_UpdateComponentCommand = /* @__PURE__ */ __name(async (output, context) => {
1727
1012
  if (output.statusCode >= 300) {
1728
- return de_UpdateComponentCommandError(output, context);
1013
+ return de_CommandError(output, context);
1729
1014
  }
1730
1015
  const data = await parseBody(output.body, context);
1731
1016
  let contents = {};
@@ -1736,37 +1021,9 @@ var de_UpdateComponentCommand = /* @__PURE__ */ __name(async (output, context) =
1736
1021
  };
1737
1022
  return response;
1738
1023
  }, "de_UpdateComponentCommand");
1739
- var de_UpdateComponentCommandError = /* @__PURE__ */ __name(async (output, context) => {
1740
- const parsedOutput = {
1741
- ...output,
1742
- body: await parseErrorBody(output.body, context)
1743
- };
1744
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1745
- switch (errorCode) {
1746
- case "InternalServerException":
1747
- case "com.amazonaws.applicationinsights#InternalServerException":
1748
- throw await de_InternalServerExceptionRes(parsedOutput, context);
1749
- case "ResourceInUseException":
1750
- case "com.amazonaws.applicationinsights#ResourceInUseException":
1751
- throw await de_ResourceInUseExceptionRes(parsedOutput, context);
1752
- case "ResourceNotFoundException":
1753
- case "com.amazonaws.applicationinsights#ResourceNotFoundException":
1754
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1755
- case "ValidationException":
1756
- case "com.amazonaws.applicationinsights#ValidationException":
1757
- throw await de_ValidationExceptionRes(parsedOutput, context);
1758
- default:
1759
- const parsedBody = parsedOutput.body;
1760
- return throwDefaultError({
1761
- output,
1762
- parsedBody,
1763
- errorCode
1764
- });
1765
- }
1766
- }, "de_UpdateComponentCommandError");
1767
1024
  var de_UpdateComponentConfigurationCommand = /* @__PURE__ */ __name(async (output, context) => {
1768
1025
  if (output.statusCode >= 300) {
1769
- return de_UpdateComponentConfigurationCommandError(output, context);
1026
+ return de_CommandError(output, context);
1770
1027
  }
1771
1028
  const data = await parseBody(output.body, context);
1772
1029
  let contents = {};
@@ -1777,37 +1034,9 @@ var de_UpdateComponentConfigurationCommand = /* @__PURE__ */ __name(async (outpu
1777
1034
  };
1778
1035
  return response;
1779
1036
  }, "de_UpdateComponentConfigurationCommand");
1780
- var de_UpdateComponentConfigurationCommandError = /* @__PURE__ */ __name(async (output, context) => {
1781
- const parsedOutput = {
1782
- ...output,
1783
- body: await parseErrorBody(output.body, context)
1784
- };
1785
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1786
- switch (errorCode) {
1787
- case "InternalServerException":
1788
- case "com.amazonaws.applicationinsights#InternalServerException":
1789
- throw await de_InternalServerExceptionRes(parsedOutput, context);
1790
- case "ResourceInUseException":
1791
- case "com.amazonaws.applicationinsights#ResourceInUseException":
1792
- throw await de_ResourceInUseExceptionRes(parsedOutput, context);
1793
- case "ResourceNotFoundException":
1794
- case "com.amazonaws.applicationinsights#ResourceNotFoundException":
1795
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1796
- case "ValidationException":
1797
- case "com.amazonaws.applicationinsights#ValidationException":
1798
- throw await de_ValidationExceptionRes(parsedOutput, context);
1799
- default:
1800
- const parsedBody = parsedOutput.body;
1801
- return throwDefaultError({
1802
- output,
1803
- parsedBody,
1804
- errorCode
1805
- });
1806
- }
1807
- }, "de_UpdateComponentConfigurationCommandError");
1808
1037
  var de_UpdateLogPatternCommand = /* @__PURE__ */ __name(async (output, context) => {
1809
1038
  if (output.statusCode >= 300) {
1810
- return de_UpdateLogPatternCommandError(output, context);
1039
+ return de_CommandError(output, context);
1811
1040
  }
1812
1041
  const data = await parseBody(output.body, context);
1813
1042
  let contents = {};
@@ -1818,37 +1047,9 @@ var de_UpdateLogPatternCommand = /* @__PURE__ */ __name(async (output, context)
1818
1047
  };
1819
1048
  return response;
1820
1049
  }, "de_UpdateLogPatternCommand");
1821
- var de_UpdateLogPatternCommandError = /* @__PURE__ */ __name(async (output, context) => {
1822
- const parsedOutput = {
1823
- ...output,
1824
- body: await parseErrorBody(output.body, context)
1825
- };
1826
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1827
- switch (errorCode) {
1828
- case "InternalServerException":
1829
- case "com.amazonaws.applicationinsights#InternalServerException":
1830
- throw await de_InternalServerExceptionRes(parsedOutput, context);
1831
- case "ResourceInUseException":
1832
- case "com.amazonaws.applicationinsights#ResourceInUseException":
1833
- throw await de_ResourceInUseExceptionRes(parsedOutput, context);
1834
- case "ResourceNotFoundException":
1835
- case "com.amazonaws.applicationinsights#ResourceNotFoundException":
1836
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1837
- case "ValidationException":
1838
- case "com.amazonaws.applicationinsights#ValidationException":
1839
- throw await de_ValidationExceptionRes(parsedOutput, context);
1840
- default:
1841
- const parsedBody = parsedOutput.body;
1842
- return throwDefaultError({
1843
- output,
1844
- parsedBody,
1845
- errorCode
1846
- });
1847
- }
1848
- }, "de_UpdateLogPatternCommandError");
1849
1050
  var de_UpdateProblemCommand = /* @__PURE__ */ __name(async (output, context) => {
1850
1051
  if (output.statusCode >= 300) {
1851
- return de_UpdateProblemCommandError(output, context);
1052
+ return de_CommandError(output, context);
1852
1053
  }
1853
1054
  const data = await parseBody(output.body, context);
1854
1055
  let contents = {};
@@ -1859,34 +1060,9 @@ var de_UpdateProblemCommand = /* @__PURE__ */ __name(async (output, context) =>
1859
1060
  };
1860
1061
  return response;
1861
1062
  }, "de_UpdateProblemCommand");
1862
- var de_UpdateProblemCommandError = /* @__PURE__ */ __name(async (output, context) => {
1863
- const parsedOutput = {
1864
- ...output,
1865
- body: await parseErrorBody(output.body, context)
1866
- };
1867
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1868
- switch (errorCode) {
1869
- case "InternalServerException":
1870
- case "com.amazonaws.applicationinsights#InternalServerException":
1871
- throw await de_InternalServerExceptionRes(parsedOutput, context);
1872
- case "ResourceNotFoundException":
1873
- case "com.amazonaws.applicationinsights#ResourceNotFoundException":
1874
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1875
- case "ValidationException":
1876
- case "com.amazonaws.applicationinsights#ValidationException":
1877
- throw await de_ValidationExceptionRes(parsedOutput, context);
1878
- default:
1879
- const parsedBody = parsedOutput.body;
1880
- return throwDefaultError({
1881
- output,
1882
- parsedBody,
1883
- errorCode
1884
- });
1885
- }
1886
- }, "de_UpdateProblemCommandError");
1887
1063
  var de_UpdateWorkloadCommand = /* @__PURE__ */ __name(async (output, context) => {
1888
1064
  if (output.statusCode >= 300) {
1889
- return de_UpdateWorkloadCommandError(output, context);
1065
+ return de_CommandError(output, context);
1890
1066
  }
1891
1067
  const data = await parseBody(output.body, context);
1892
1068
  let contents = {};
@@ -1897,7 +1073,7 @@ var de_UpdateWorkloadCommand = /* @__PURE__ */ __name(async (output, context) =>
1897
1073
  };
1898
1074
  return response;
1899
1075
  }, "de_UpdateWorkloadCommand");
1900
- var de_UpdateWorkloadCommandError = /* @__PURE__ */ __name(async (output, context) => {
1076
+ var de_CommandError = /* @__PURE__ */ __name(async (output, context) => {
1901
1077
  const parsedOutput = {
1902
1078
  ...output,
1903
1079
  body: await parseErrorBody(output.body, context)
@@ -1907,12 +1083,27 @@ var de_UpdateWorkloadCommandError = /* @__PURE__ */ __name(async (output, contex
1907
1083
  case "InternalServerException":
1908
1084
  case "com.amazonaws.applicationinsights#InternalServerException":
1909
1085
  throw await de_InternalServerExceptionRes(parsedOutput, context);
1086
+ case "ResourceInUseException":
1087
+ case "com.amazonaws.applicationinsights#ResourceInUseException":
1088
+ throw await de_ResourceInUseExceptionRes(parsedOutput, context);
1910
1089
  case "ResourceNotFoundException":
1911
1090
  case "com.amazonaws.applicationinsights#ResourceNotFoundException":
1912
1091
  throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1913
1092
  case "ValidationException":
1914
1093
  case "com.amazonaws.applicationinsights#ValidationException":
1915
1094
  throw await de_ValidationExceptionRes(parsedOutput, context);
1095
+ case "AccessDeniedException":
1096
+ case "com.amazonaws.applicationinsights#AccessDeniedException":
1097
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1098
+ case "TagsAlreadyExistException":
1099
+ case "com.amazonaws.applicationinsights#TagsAlreadyExistException":
1100
+ throw await de_TagsAlreadyExistExceptionRes(parsedOutput, context);
1101
+ case "BadRequestException":
1102
+ case "com.amazonaws.applicationinsights#BadRequestException":
1103
+ throw await de_BadRequestExceptionRes(parsedOutput, context);
1104
+ case "TooManyTagsException":
1105
+ case "com.amazonaws.applicationinsights#TooManyTagsException":
1106
+ throw await de_TooManyTagsExceptionRes(parsedOutput, context);
1916
1107
  default:
1917
1108
  const parsedBody = parsedOutput.body;
1918
1109
  return throwDefaultError({
@@ -1921,7 +1112,7 @@ var de_UpdateWorkloadCommandError = /* @__PURE__ */ __name(async (output, contex
1921
1112
  errorCode
1922
1113
  });
1923
1114
  }
1924
- }, "de_UpdateWorkloadCommandError");
1115
+ }, "de_CommandError");
1925
1116
  var de_AccessDeniedExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
1926
1117
  const body = parsedOutput.body;
1927
1118
  const deserialized = (0, import_smithy_client._json)(body);