@aws-sdk/client-codeguruprofiler 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
@@ -767,7 +767,7 @@ var se_UpdateProfilingGroupCommand = /* @__PURE__ */ __name(async (input, contex
767
767
  }, "se_UpdateProfilingGroupCommand");
768
768
  var de_AddNotificationChannelsCommand = /* @__PURE__ */ __name(async (output, context) => {
769
769
  if (output.statusCode !== 200 && output.statusCode >= 300) {
770
- return de_AddNotificationChannelsCommandError(output, context);
770
+ return de_CommandError(output, context);
771
771
  }
772
772
  const contents = (0, import_smithy_client.map)({
773
773
  $metadata: deserializeMetadata(output)
@@ -779,43 +779,9 @@ var de_AddNotificationChannelsCommand = /* @__PURE__ */ __name(async (output, co
779
779
  Object.assign(contents, doc);
780
780
  return contents;
781
781
  }, "de_AddNotificationChannelsCommand");
782
- var de_AddNotificationChannelsCommandError = /* @__PURE__ */ __name(async (output, context) => {
783
- const parsedOutput = {
784
- ...output,
785
- body: await parseErrorBody(output.body, context)
786
- };
787
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
788
- switch (errorCode) {
789
- case "ConflictException":
790
- case "com.amazonaws.codeguruprofiler#ConflictException":
791
- throw await de_ConflictExceptionRes(parsedOutput, context);
792
- case "InternalServerException":
793
- case "com.amazonaws.codeguruprofiler#InternalServerException":
794
- throw await de_InternalServerExceptionRes(parsedOutput, context);
795
- case "ResourceNotFoundException":
796
- case "com.amazonaws.codeguruprofiler#ResourceNotFoundException":
797
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
798
- case "ServiceQuotaExceededException":
799
- case "com.amazonaws.codeguruprofiler#ServiceQuotaExceededException":
800
- throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
801
- case "ThrottlingException":
802
- case "com.amazonaws.codeguruprofiler#ThrottlingException":
803
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
804
- case "ValidationException":
805
- case "com.amazonaws.codeguruprofiler#ValidationException":
806
- throw await de_ValidationExceptionRes(parsedOutput, context);
807
- default:
808
- const parsedBody = parsedOutput.body;
809
- return throwDefaultError({
810
- output,
811
- parsedBody,
812
- errorCode
813
- });
814
- }
815
- }, "de_AddNotificationChannelsCommandError");
816
782
  var de_BatchGetFrameMetricDataCommand = /* @__PURE__ */ __name(async (output, context) => {
817
783
  if (output.statusCode !== 200 && output.statusCode >= 300) {
818
- return de_BatchGetFrameMetricDataCommandError(output, context);
784
+ return de_CommandError(output, context);
819
785
  }
820
786
  const contents = (0, import_smithy_client.map)({
821
787
  $metadata: deserializeMetadata(output)
@@ -832,37 +798,9 @@ var de_BatchGetFrameMetricDataCommand = /* @__PURE__ */ __name(async (output, co
832
798
  Object.assign(contents, doc);
833
799
  return contents;
834
800
  }, "de_BatchGetFrameMetricDataCommand");
835
- var de_BatchGetFrameMetricDataCommandError = /* @__PURE__ */ __name(async (output, context) => {
836
- const parsedOutput = {
837
- ...output,
838
- body: await parseErrorBody(output.body, context)
839
- };
840
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
841
- switch (errorCode) {
842
- case "InternalServerException":
843
- case "com.amazonaws.codeguruprofiler#InternalServerException":
844
- throw await de_InternalServerExceptionRes(parsedOutput, context);
845
- case "ResourceNotFoundException":
846
- case "com.amazonaws.codeguruprofiler#ResourceNotFoundException":
847
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
848
- case "ThrottlingException":
849
- case "com.amazonaws.codeguruprofiler#ThrottlingException":
850
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
851
- case "ValidationException":
852
- case "com.amazonaws.codeguruprofiler#ValidationException":
853
- throw await de_ValidationExceptionRes(parsedOutput, context);
854
- default:
855
- const parsedBody = parsedOutput.body;
856
- return throwDefaultError({
857
- output,
858
- parsedBody,
859
- errorCode
860
- });
861
- }
862
- }, "de_BatchGetFrameMetricDataCommandError");
863
801
  var de_ConfigureAgentCommand = /* @__PURE__ */ __name(async (output, context) => {
864
802
  if (output.statusCode !== 200 && output.statusCode >= 300) {
865
- return de_ConfigureAgentCommandError(output, context);
803
+ return de_CommandError(output, context);
866
804
  }
867
805
  const contents = (0, import_smithy_client.map)({
868
806
  $metadata: deserializeMetadata(output)
@@ -871,37 +809,9 @@ var de_ConfigureAgentCommand = /* @__PURE__ */ __name(async (output, context) =>
871
809
  contents.configuration = (0, import_smithy_client._json)(data);
872
810
  return contents;
873
811
  }, "de_ConfigureAgentCommand");
874
- var de_ConfigureAgentCommandError = /* @__PURE__ */ __name(async (output, context) => {
875
- const parsedOutput = {
876
- ...output,
877
- body: await parseErrorBody(output.body, context)
878
- };
879
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
880
- switch (errorCode) {
881
- case "InternalServerException":
882
- case "com.amazonaws.codeguruprofiler#InternalServerException":
883
- throw await de_InternalServerExceptionRes(parsedOutput, context);
884
- case "ResourceNotFoundException":
885
- case "com.amazonaws.codeguruprofiler#ResourceNotFoundException":
886
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
887
- case "ThrottlingException":
888
- case "com.amazonaws.codeguruprofiler#ThrottlingException":
889
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
890
- case "ValidationException":
891
- case "com.amazonaws.codeguruprofiler#ValidationException":
892
- throw await de_ValidationExceptionRes(parsedOutput, context);
893
- default:
894
- const parsedBody = parsedOutput.body;
895
- return throwDefaultError({
896
- output,
897
- parsedBody,
898
- errorCode
899
- });
900
- }
901
- }, "de_ConfigureAgentCommandError");
902
812
  var de_CreateProfilingGroupCommand = /* @__PURE__ */ __name(async (output, context) => {
903
813
  if (output.statusCode !== 201 && output.statusCode >= 300) {
904
- return de_CreateProfilingGroupCommandError(output, context);
814
+ return de_CommandError(output, context);
905
815
  }
906
816
  const contents = (0, import_smithy_client.map)({
907
817
  $metadata: deserializeMetadata(output)
@@ -910,40 +820,9 @@ var de_CreateProfilingGroupCommand = /* @__PURE__ */ __name(async (output, conte
910
820
  contents.profilingGroup = de_ProfilingGroupDescription(data, context);
911
821
  return contents;
912
822
  }, "de_CreateProfilingGroupCommand");
913
- var de_CreateProfilingGroupCommandError = /* @__PURE__ */ __name(async (output, context) => {
914
- const parsedOutput = {
915
- ...output,
916
- body: await parseErrorBody(output.body, context)
917
- };
918
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
919
- switch (errorCode) {
920
- case "ConflictException":
921
- case "com.amazonaws.codeguruprofiler#ConflictException":
922
- throw await de_ConflictExceptionRes(parsedOutput, context);
923
- case "InternalServerException":
924
- case "com.amazonaws.codeguruprofiler#InternalServerException":
925
- throw await de_InternalServerExceptionRes(parsedOutput, context);
926
- case "ServiceQuotaExceededException":
927
- case "com.amazonaws.codeguruprofiler#ServiceQuotaExceededException":
928
- throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
929
- case "ThrottlingException":
930
- case "com.amazonaws.codeguruprofiler#ThrottlingException":
931
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
932
- case "ValidationException":
933
- case "com.amazonaws.codeguruprofiler#ValidationException":
934
- throw await de_ValidationExceptionRes(parsedOutput, context);
935
- default:
936
- const parsedBody = parsedOutput.body;
937
- return throwDefaultError({
938
- output,
939
- parsedBody,
940
- errorCode
941
- });
942
- }
943
- }, "de_CreateProfilingGroupCommandError");
944
823
  var de_DeleteProfilingGroupCommand = /* @__PURE__ */ __name(async (output, context) => {
945
824
  if (output.statusCode !== 204 && output.statusCode >= 300) {
946
- return de_DeleteProfilingGroupCommandError(output, context);
825
+ return de_CommandError(output, context);
947
826
  }
948
827
  const contents = (0, import_smithy_client.map)({
949
828
  $metadata: deserializeMetadata(output)
@@ -951,40 +830,9 @@ var de_DeleteProfilingGroupCommand = /* @__PURE__ */ __name(async (output, conte
951
830
  await (0, import_smithy_client.collectBody)(output.body, context);
952
831
  return contents;
953
832
  }, "de_DeleteProfilingGroupCommand");
954
- var de_DeleteProfilingGroupCommandError = /* @__PURE__ */ __name(async (output, context) => {
955
- const parsedOutput = {
956
- ...output,
957
- body: await parseErrorBody(output.body, context)
958
- };
959
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
960
- switch (errorCode) {
961
- case "ConflictException":
962
- case "com.amazonaws.codeguruprofiler#ConflictException":
963
- throw await de_ConflictExceptionRes(parsedOutput, context);
964
- case "InternalServerException":
965
- case "com.amazonaws.codeguruprofiler#InternalServerException":
966
- throw await de_InternalServerExceptionRes(parsedOutput, context);
967
- case "ResourceNotFoundException":
968
- case "com.amazonaws.codeguruprofiler#ResourceNotFoundException":
969
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
970
- case "ThrottlingException":
971
- case "com.amazonaws.codeguruprofiler#ThrottlingException":
972
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
973
- case "ValidationException":
974
- case "com.amazonaws.codeguruprofiler#ValidationException":
975
- throw await de_ValidationExceptionRes(parsedOutput, context);
976
- default:
977
- const parsedBody = parsedOutput.body;
978
- return throwDefaultError({
979
- output,
980
- parsedBody,
981
- errorCode
982
- });
983
- }
984
- }, "de_DeleteProfilingGroupCommandError");
985
833
  var de_DescribeProfilingGroupCommand = /* @__PURE__ */ __name(async (output, context) => {
986
834
  if (output.statusCode !== 200 && output.statusCode >= 300) {
987
- return de_DescribeProfilingGroupCommandError(output, context);
835
+ return de_CommandError(output, context);
988
836
  }
989
837
  const contents = (0, import_smithy_client.map)({
990
838
  $metadata: deserializeMetadata(output)
@@ -993,37 +841,9 @@ var de_DescribeProfilingGroupCommand = /* @__PURE__ */ __name(async (output, con
993
841
  contents.profilingGroup = de_ProfilingGroupDescription(data, context);
994
842
  return contents;
995
843
  }, "de_DescribeProfilingGroupCommand");
996
- var de_DescribeProfilingGroupCommandError = /* @__PURE__ */ __name(async (output, context) => {
997
- const parsedOutput = {
998
- ...output,
999
- body: await parseErrorBody(output.body, context)
1000
- };
1001
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1002
- switch (errorCode) {
1003
- case "InternalServerException":
1004
- case "com.amazonaws.codeguruprofiler#InternalServerException":
1005
- throw await de_InternalServerExceptionRes(parsedOutput, context);
1006
- case "ResourceNotFoundException":
1007
- case "com.amazonaws.codeguruprofiler#ResourceNotFoundException":
1008
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1009
- case "ThrottlingException":
1010
- case "com.amazonaws.codeguruprofiler#ThrottlingException":
1011
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
1012
- case "ValidationException":
1013
- case "com.amazonaws.codeguruprofiler#ValidationException":
1014
- throw await de_ValidationExceptionRes(parsedOutput, context);
1015
- default:
1016
- const parsedBody = parsedOutput.body;
1017
- return throwDefaultError({
1018
- output,
1019
- parsedBody,
1020
- errorCode
1021
- });
1022
- }
1023
- }, "de_DescribeProfilingGroupCommandError");
1024
844
  var de_GetFindingsReportAccountSummaryCommand = /* @__PURE__ */ __name(async (output, context) => {
1025
845
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1026
- return de_GetFindingsReportAccountSummaryCommandError(output, context);
846
+ return de_CommandError(output, context);
1027
847
  }
1028
848
  const contents = (0, import_smithy_client.map)({
1029
849
  $metadata: deserializeMetadata(output)
@@ -1036,34 +856,9 @@ var de_GetFindingsReportAccountSummaryCommand = /* @__PURE__ */ __name(async (ou
1036
856
  Object.assign(contents, doc);
1037
857
  return contents;
1038
858
  }, "de_GetFindingsReportAccountSummaryCommand");
1039
- var de_GetFindingsReportAccountSummaryCommandError = /* @__PURE__ */ __name(async (output, context) => {
1040
- const parsedOutput = {
1041
- ...output,
1042
- body: await parseErrorBody(output.body, context)
1043
- };
1044
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1045
- switch (errorCode) {
1046
- case "InternalServerException":
1047
- case "com.amazonaws.codeguruprofiler#InternalServerException":
1048
- throw await de_InternalServerExceptionRes(parsedOutput, context);
1049
- case "ThrottlingException":
1050
- case "com.amazonaws.codeguruprofiler#ThrottlingException":
1051
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
1052
- case "ValidationException":
1053
- case "com.amazonaws.codeguruprofiler#ValidationException":
1054
- throw await de_ValidationExceptionRes(parsedOutput, context);
1055
- default:
1056
- const parsedBody = parsedOutput.body;
1057
- return throwDefaultError({
1058
- output,
1059
- parsedBody,
1060
- errorCode
1061
- });
1062
- }
1063
- }, "de_GetFindingsReportAccountSummaryCommandError");
1064
859
  var de_GetNotificationConfigurationCommand = /* @__PURE__ */ __name(async (output, context) => {
1065
860
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1066
- return de_GetNotificationConfigurationCommandError(output, context);
861
+ return de_CommandError(output, context);
1067
862
  }
1068
863
  const contents = (0, import_smithy_client.map)({
1069
864
  $metadata: deserializeMetadata(output)
@@ -1075,37 +870,9 @@ var de_GetNotificationConfigurationCommand = /* @__PURE__ */ __name(async (outpu
1075
870
  Object.assign(contents, doc);
1076
871
  return contents;
1077
872
  }, "de_GetNotificationConfigurationCommand");
1078
- var de_GetNotificationConfigurationCommandError = /* @__PURE__ */ __name(async (output, context) => {
1079
- const parsedOutput = {
1080
- ...output,
1081
- body: await parseErrorBody(output.body, context)
1082
- };
1083
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1084
- switch (errorCode) {
1085
- case "InternalServerException":
1086
- case "com.amazonaws.codeguruprofiler#InternalServerException":
1087
- throw await de_InternalServerExceptionRes(parsedOutput, context);
1088
- case "ResourceNotFoundException":
1089
- case "com.amazonaws.codeguruprofiler#ResourceNotFoundException":
1090
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1091
- case "ThrottlingException":
1092
- case "com.amazonaws.codeguruprofiler#ThrottlingException":
1093
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
1094
- case "ValidationException":
1095
- case "com.amazonaws.codeguruprofiler#ValidationException":
1096
- throw await de_ValidationExceptionRes(parsedOutput, context);
1097
- default:
1098
- const parsedBody = parsedOutput.body;
1099
- return throwDefaultError({
1100
- output,
1101
- parsedBody,
1102
- errorCode
1103
- });
1104
- }
1105
- }, "de_GetNotificationConfigurationCommandError");
1106
873
  var de_GetPolicyCommand = /* @__PURE__ */ __name(async (output, context) => {
1107
874
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1108
- return de_GetPolicyCommandError(output, context);
875
+ return de_CommandError(output, context);
1109
876
  }
1110
877
  const contents = (0, import_smithy_client.map)({
1111
878
  $metadata: deserializeMetadata(output)
@@ -1118,34 +885,9 @@ var de_GetPolicyCommand = /* @__PURE__ */ __name(async (output, context) => {
1118
885
  Object.assign(contents, doc);
1119
886
  return contents;
1120
887
  }, "de_GetPolicyCommand");
1121
- var de_GetPolicyCommandError = /* @__PURE__ */ __name(async (output, context) => {
1122
- const parsedOutput = {
1123
- ...output,
1124
- body: await parseErrorBody(output.body, context)
1125
- };
1126
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1127
- switch (errorCode) {
1128
- case "InternalServerException":
1129
- case "com.amazonaws.codeguruprofiler#InternalServerException":
1130
- throw await de_InternalServerExceptionRes(parsedOutput, context);
1131
- case "ResourceNotFoundException":
1132
- case "com.amazonaws.codeguruprofiler#ResourceNotFoundException":
1133
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1134
- case "ThrottlingException":
1135
- case "com.amazonaws.codeguruprofiler#ThrottlingException":
1136
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
1137
- default:
1138
- const parsedBody = parsedOutput.body;
1139
- return throwDefaultError({
1140
- output,
1141
- parsedBody,
1142
- errorCode
1143
- });
1144
- }
1145
- }, "de_GetPolicyCommandError");
1146
888
  var de_GetProfileCommand = /* @__PURE__ */ __name(async (output, context) => {
1147
889
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1148
- return de_GetProfileCommandError(output, context);
890
+ return de_CommandError(output, context);
1149
891
  }
1150
892
  const contents = (0, import_smithy_client.map)({
1151
893
  $metadata: deserializeMetadata(output),
@@ -1156,37 +898,9 @@ var de_GetProfileCommand = /* @__PURE__ */ __name(async (output, context) => {
1156
898
  contents.profile = data;
1157
899
  return contents;
1158
900
  }, "de_GetProfileCommand");
1159
- var de_GetProfileCommandError = /* @__PURE__ */ __name(async (output, context) => {
1160
- const parsedOutput = {
1161
- ...output,
1162
- body: await parseErrorBody(output.body, context)
1163
- };
1164
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1165
- switch (errorCode) {
1166
- case "InternalServerException":
1167
- case "com.amazonaws.codeguruprofiler#InternalServerException":
1168
- throw await de_InternalServerExceptionRes(parsedOutput, context);
1169
- case "ResourceNotFoundException":
1170
- case "com.amazonaws.codeguruprofiler#ResourceNotFoundException":
1171
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1172
- case "ThrottlingException":
1173
- case "com.amazonaws.codeguruprofiler#ThrottlingException":
1174
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
1175
- case "ValidationException":
1176
- case "com.amazonaws.codeguruprofiler#ValidationException":
1177
- throw await de_ValidationExceptionRes(parsedOutput, context);
1178
- default:
1179
- const parsedBody = parsedOutput.body;
1180
- return throwDefaultError({
1181
- output,
1182
- parsedBody,
1183
- errorCode
1184
- });
1185
- }
1186
- }, "de_GetProfileCommandError");
1187
901
  var de_GetRecommendationsCommand = /* @__PURE__ */ __name(async (output, context) => {
1188
902
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1189
- return de_GetRecommendationsCommandError(output, context);
903
+ return de_CommandError(output, context);
1190
904
  }
1191
905
  const contents = (0, import_smithy_client.map)({
1192
906
  $metadata: deserializeMetadata(output)
@@ -1202,37 +916,9 @@ var de_GetRecommendationsCommand = /* @__PURE__ */ __name(async (output, context
1202
916
  Object.assign(contents, doc);
1203
917
  return contents;
1204
918
  }, "de_GetRecommendationsCommand");
1205
- var de_GetRecommendationsCommandError = /* @__PURE__ */ __name(async (output, context) => {
1206
- const parsedOutput = {
1207
- ...output,
1208
- body: await parseErrorBody(output.body, context)
1209
- };
1210
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1211
- switch (errorCode) {
1212
- case "InternalServerException":
1213
- case "com.amazonaws.codeguruprofiler#InternalServerException":
1214
- throw await de_InternalServerExceptionRes(parsedOutput, context);
1215
- case "ResourceNotFoundException":
1216
- case "com.amazonaws.codeguruprofiler#ResourceNotFoundException":
1217
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1218
- case "ThrottlingException":
1219
- case "com.amazonaws.codeguruprofiler#ThrottlingException":
1220
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
1221
- case "ValidationException":
1222
- case "com.amazonaws.codeguruprofiler#ValidationException":
1223
- throw await de_ValidationExceptionRes(parsedOutput, context);
1224
- default:
1225
- const parsedBody = parsedOutput.body;
1226
- return throwDefaultError({
1227
- output,
1228
- parsedBody,
1229
- errorCode
1230
- });
1231
- }
1232
- }, "de_GetRecommendationsCommandError");
1233
919
  var de_ListFindingsReportsCommand = /* @__PURE__ */ __name(async (output, context) => {
1234
920
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1235
- return de_ListFindingsReportsCommandError(output, context);
921
+ return de_CommandError(output, context);
1236
922
  }
1237
923
  const contents = (0, import_smithy_client.map)({
1238
924
  $metadata: deserializeMetadata(output)
@@ -1243,39 +929,11 @@ var de_ListFindingsReportsCommand = /* @__PURE__ */ __name(async (output, contex
1243
929
  nextToken: import_smithy_client.expectString
1244
930
  });
1245
931
  Object.assign(contents, doc);
1246
- return contents;
1247
- }, "de_ListFindingsReportsCommand");
1248
- var de_ListFindingsReportsCommandError = /* @__PURE__ */ __name(async (output, context) => {
1249
- const parsedOutput = {
1250
- ...output,
1251
- body: await parseErrorBody(output.body, context)
1252
- };
1253
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1254
- switch (errorCode) {
1255
- case "InternalServerException":
1256
- case "com.amazonaws.codeguruprofiler#InternalServerException":
1257
- throw await de_InternalServerExceptionRes(parsedOutput, context);
1258
- case "ResourceNotFoundException":
1259
- case "com.amazonaws.codeguruprofiler#ResourceNotFoundException":
1260
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1261
- case "ThrottlingException":
1262
- case "com.amazonaws.codeguruprofiler#ThrottlingException":
1263
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
1264
- case "ValidationException":
1265
- case "com.amazonaws.codeguruprofiler#ValidationException":
1266
- throw await de_ValidationExceptionRes(parsedOutput, context);
1267
- default:
1268
- const parsedBody = parsedOutput.body;
1269
- return throwDefaultError({
1270
- output,
1271
- parsedBody,
1272
- errorCode
1273
- });
1274
- }
1275
- }, "de_ListFindingsReportsCommandError");
932
+ return contents;
933
+ }, "de_ListFindingsReportsCommand");
1276
934
  var de_ListProfileTimesCommand = /* @__PURE__ */ __name(async (output, context) => {
1277
935
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1278
- return de_ListProfileTimesCommandError(output, context);
936
+ return de_CommandError(output, context);
1279
937
  }
1280
938
  const contents = (0, import_smithy_client.map)({
1281
939
  $metadata: deserializeMetadata(output)
@@ -1288,37 +946,9 @@ var de_ListProfileTimesCommand = /* @__PURE__ */ __name(async (output, context)
1288
946
  Object.assign(contents, doc);
1289
947
  return contents;
1290
948
  }, "de_ListProfileTimesCommand");
1291
- var de_ListProfileTimesCommandError = /* @__PURE__ */ __name(async (output, context) => {
1292
- const parsedOutput = {
1293
- ...output,
1294
- body: await parseErrorBody(output.body, context)
1295
- };
1296
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1297
- switch (errorCode) {
1298
- case "InternalServerException":
1299
- case "com.amazonaws.codeguruprofiler#InternalServerException":
1300
- throw await de_InternalServerExceptionRes(parsedOutput, context);
1301
- case "ResourceNotFoundException":
1302
- case "com.amazonaws.codeguruprofiler#ResourceNotFoundException":
1303
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1304
- case "ThrottlingException":
1305
- case "com.amazonaws.codeguruprofiler#ThrottlingException":
1306
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
1307
- case "ValidationException":
1308
- case "com.amazonaws.codeguruprofiler#ValidationException":
1309
- throw await de_ValidationExceptionRes(parsedOutput, context);
1310
- default:
1311
- const parsedBody = parsedOutput.body;
1312
- return throwDefaultError({
1313
- output,
1314
- parsedBody,
1315
- errorCode
1316
- });
1317
- }
1318
- }, "de_ListProfileTimesCommandError");
1319
949
  var de_ListProfilingGroupsCommand = /* @__PURE__ */ __name(async (output, context) => {
1320
950
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1321
- return de_ListProfilingGroupsCommandError(output, context);
951
+ return de_CommandError(output, context);
1322
952
  }
1323
953
  const contents = (0, import_smithy_client.map)({
1324
954
  $metadata: deserializeMetadata(output)
@@ -1332,31 +962,9 @@ var de_ListProfilingGroupsCommand = /* @__PURE__ */ __name(async (output, contex
1332
962
  Object.assign(contents, doc);
1333
963
  return contents;
1334
964
  }, "de_ListProfilingGroupsCommand");
1335
- var de_ListProfilingGroupsCommandError = /* @__PURE__ */ __name(async (output, context) => {
1336
- const parsedOutput = {
1337
- ...output,
1338
- body: await parseErrorBody(output.body, context)
1339
- };
1340
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1341
- switch (errorCode) {
1342
- case "InternalServerException":
1343
- case "com.amazonaws.codeguruprofiler#InternalServerException":
1344
- throw await de_InternalServerExceptionRes(parsedOutput, context);
1345
- case "ThrottlingException":
1346
- case "com.amazonaws.codeguruprofiler#ThrottlingException":
1347
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
1348
- default:
1349
- const parsedBody = parsedOutput.body;
1350
- return throwDefaultError({
1351
- output,
1352
- parsedBody,
1353
- errorCode
1354
- });
1355
- }
1356
- }, "de_ListProfilingGroupsCommandError");
1357
965
  var de_ListTagsForResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
1358
966
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1359
- return de_ListTagsForResourceCommandError(output, context);
967
+ return de_CommandError(output, context);
1360
968
  }
1361
969
  const contents = (0, import_smithy_client.map)({
1362
970
  $metadata: deserializeMetadata(output)
@@ -1368,34 +976,9 @@ var de_ListTagsForResourceCommand = /* @__PURE__ */ __name(async (output, contex
1368
976
  Object.assign(contents, doc);
1369
977
  return contents;
1370
978
  }, "de_ListTagsForResourceCommand");
1371
- var de_ListTagsForResourceCommandError = /* @__PURE__ */ __name(async (output, context) => {
1372
- const parsedOutput = {
1373
- ...output,
1374
- body: await parseErrorBody(output.body, context)
1375
- };
1376
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1377
- switch (errorCode) {
1378
- case "InternalServerException":
1379
- case "com.amazonaws.codeguruprofiler#InternalServerException":
1380
- throw await de_InternalServerExceptionRes(parsedOutput, context);
1381
- case "ResourceNotFoundException":
1382
- case "com.amazonaws.codeguruprofiler#ResourceNotFoundException":
1383
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1384
- case "ValidationException":
1385
- case "com.amazonaws.codeguruprofiler#ValidationException":
1386
- throw await de_ValidationExceptionRes(parsedOutput, context);
1387
- default:
1388
- const parsedBody = parsedOutput.body;
1389
- return throwDefaultError({
1390
- output,
1391
- parsedBody,
1392
- errorCode
1393
- });
1394
- }
1395
- }, "de_ListTagsForResourceCommandError");
1396
979
  var de_PostAgentProfileCommand = /* @__PURE__ */ __name(async (output, context) => {
1397
980
  if (output.statusCode !== 204 && output.statusCode >= 300) {
1398
- return de_PostAgentProfileCommandError(output, context);
981
+ return de_CommandError(output, context);
1399
982
  }
1400
983
  const contents = (0, import_smithy_client.map)({
1401
984
  $metadata: deserializeMetadata(output)
@@ -1403,37 +986,9 @@ var de_PostAgentProfileCommand = /* @__PURE__ */ __name(async (output, context)
1403
986
  await (0, import_smithy_client.collectBody)(output.body, context);
1404
987
  return contents;
1405
988
  }, "de_PostAgentProfileCommand");
1406
- var de_PostAgentProfileCommandError = /* @__PURE__ */ __name(async (output, context) => {
1407
- const parsedOutput = {
1408
- ...output,
1409
- body: await parseErrorBody(output.body, context)
1410
- };
1411
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1412
- switch (errorCode) {
1413
- case "InternalServerException":
1414
- case "com.amazonaws.codeguruprofiler#InternalServerException":
1415
- throw await de_InternalServerExceptionRes(parsedOutput, context);
1416
- case "ResourceNotFoundException":
1417
- case "com.amazonaws.codeguruprofiler#ResourceNotFoundException":
1418
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1419
- case "ThrottlingException":
1420
- case "com.amazonaws.codeguruprofiler#ThrottlingException":
1421
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
1422
- case "ValidationException":
1423
- case "com.amazonaws.codeguruprofiler#ValidationException":
1424
- throw await de_ValidationExceptionRes(parsedOutput, context);
1425
- default:
1426
- const parsedBody = parsedOutput.body;
1427
- return throwDefaultError({
1428
- output,
1429
- parsedBody,
1430
- errorCode
1431
- });
1432
- }
1433
- }, "de_PostAgentProfileCommandError");
1434
989
  var de_PutPermissionCommand = /* @__PURE__ */ __name(async (output, context) => {
1435
990
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1436
- return de_PutPermissionCommandError(output, context);
991
+ return de_CommandError(output, context);
1437
992
  }
1438
993
  const contents = (0, import_smithy_client.map)({
1439
994
  $metadata: deserializeMetadata(output)
@@ -1446,40 +1001,9 @@ var de_PutPermissionCommand = /* @__PURE__ */ __name(async (output, context) =>
1446
1001
  Object.assign(contents, doc);
1447
1002
  return contents;
1448
1003
  }, "de_PutPermissionCommand");
1449
- var de_PutPermissionCommandError = /* @__PURE__ */ __name(async (output, context) => {
1450
- const parsedOutput = {
1451
- ...output,
1452
- body: await parseErrorBody(output.body, context)
1453
- };
1454
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1455
- switch (errorCode) {
1456
- case "ConflictException":
1457
- case "com.amazonaws.codeguruprofiler#ConflictException":
1458
- throw await de_ConflictExceptionRes(parsedOutput, context);
1459
- case "InternalServerException":
1460
- case "com.amazonaws.codeguruprofiler#InternalServerException":
1461
- throw await de_InternalServerExceptionRes(parsedOutput, context);
1462
- case "ResourceNotFoundException":
1463
- case "com.amazonaws.codeguruprofiler#ResourceNotFoundException":
1464
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1465
- case "ThrottlingException":
1466
- case "com.amazonaws.codeguruprofiler#ThrottlingException":
1467
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
1468
- case "ValidationException":
1469
- case "com.amazonaws.codeguruprofiler#ValidationException":
1470
- throw await de_ValidationExceptionRes(parsedOutput, context);
1471
- default:
1472
- const parsedBody = parsedOutput.body;
1473
- return throwDefaultError({
1474
- output,
1475
- parsedBody,
1476
- errorCode
1477
- });
1478
- }
1479
- }, "de_PutPermissionCommandError");
1480
1004
  var de_RemoveNotificationChannelCommand = /* @__PURE__ */ __name(async (output, context) => {
1481
1005
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1482
- return de_RemoveNotificationChannelCommandError(output, context);
1006
+ return de_CommandError(output, context);
1483
1007
  }
1484
1008
  const contents = (0, import_smithy_client.map)({
1485
1009
  $metadata: deserializeMetadata(output)
@@ -1491,37 +1015,9 @@ var de_RemoveNotificationChannelCommand = /* @__PURE__ */ __name(async (output,
1491
1015
  Object.assign(contents, doc);
1492
1016
  return contents;
1493
1017
  }, "de_RemoveNotificationChannelCommand");
1494
- var de_RemoveNotificationChannelCommandError = /* @__PURE__ */ __name(async (output, context) => {
1495
- const parsedOutput = {
1496
- ...output,
1497
- body: await parseErrorBody(output.body, context)
1498
- };
1499
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1500
- switch (errorCode) {
1501
- case "InternalServerException":
1502
- case "com.amazonaws.codeguruprofiler#InternalServerException":
1503
- throw await de_InternalServerExceptionRes(parsedOutput, context);
1504
- case "ResourceNotFoundException":
1505
- case "com.amazonaws.codeguruprofiler#ResourceNotFoundException":
1506
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1507
- case "ThrottlingException":
1508
- case "com.amazonaws.codeguruprofiler#ThrottlingException":
1509
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
1510
- case "ValidationException":
1511
- case "com.amazonaws.codeguruprofiler#ValidationException":
1512
- throw await de_ValidationExceptionRes(parsedOutput, context);
1513
- default:
1514
- const parsedBody = parsedOutput.body;
1515
- return throwDefaultError({
1516
- output,
1517
- parsedBody,
1518
- errorCode
1519
- });
1520
- }
1521
- }, "de_RemoveNotificationChannelCommandError");
1522
1018
  var de_RemovePermissionCommand = /* @__PURE__ */ __name(async (output, context) => {
1523
1019
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1524
- return de_RemovePermissionCommandError(output, context);
1020
+ return de_CommandError(output, context);
1525
1021
  }
1526
1022
  const contents = (0, import_smithy_client.map)({
1527
1023
  $metadata: deserializeMetadata(output)
@@ -1534,40 +1030,9 @@ var de_RemovePermissionCommand = /* @__PURE__ */ __name(async (output, context)
1534
1030
  Object.assign(contents, doc);
1535
1031
  return contents;
1536
1032
  }, "de_RemovePermissionCommand");
1537
- var de_RemovePermissionCommandError = /* @__PURE__ */ __name(async (output, context) => {
1538
- const parsedOutput = {
1539
- ...output,
1540
- body: await parseErrorBody(output.body, context)
1541
- };
1542
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1543
- switch (errorCode) {
1544
- case "ConflictException":
1545
- case "com.amazonaws.codeguruprofiler#ConflictException":
1546
- throw await de_ConflictExceptionRes(parsedOutput, context);
1547
- case "InternalServerException":
1548
- case "com.amazonaws.codeguruprofiler#InternalServerException":
1549
- throw await de_InternalServerExceptionRes(parsedOutput, context);
1550
- case "ResourceNotFoundException":
1551
- case "com.amazonaws.codeguruprofiler#ResourceNotFoundException":
1552
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1553
- case "ThrottlingException":
1554
- case "com.amazonaws.codeguruprofiler#ThrottlingException":
1555
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
1556
- case "ValidationException":
1557
- case "com.amazonaws.codeguruprofiler#ValidationException":
1558
- throw await de_ValidationExceptionRes(parsedOutput, context);
1559
- default:
1560
- const parsedBody = parsedOutput.body;
1561
- return throwDefaultError({
1562
- output,
1563
- parsedBody,
1564
- errorCode
1565
- });
1566
- }
1567
- }, "de_RemovePermissionCommandError");
1568
1033
  var de_SubmitFeedbackCommand = /* @__PURE__ */ __name(async (output, context) => {
1569
1034
  if (output.statusCode !== 204 && output.statusCode >= 300) {
1570
- return de_SubmitFeedbackCommandError(output, context);
1035
+ return de_CommandError(output, context);
1571
1036
  }
1572
1037
  const contents = (0, import_smithy_client.map)({
1573
1038
  $metadata: deserializeMetadata(output)
@@ -1575,37 +1040,9 @@ var de_SubmitFeedbackCommand = /* @__PURE__ */ __name(async (output, context) =>
1575
1040
  await (0, import_smithy_client.collectBody)(output.body, context);
1576
1041
  return contents;
1577
1042
  }, "de_SubmitFeedbackCommand");
1578
- var de_SubmitFeedbackCommandError = /* @__PURE__ */ __name(async (output, context) => {
1579
- const parsedOutput = {
1580
- ...output,
1581
- body: await parseErrorBody(output.body, context)
1582
- };
1583
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1584
- switch (errorCode) {
1585
- case "InternalServerException":
1586
- case "com.amazonaws.codeguruprofiler#InternalServerException":
1587
- throw await de_InternalServerExceptionRes(parsedOutput, context);
1588
- case "ResourceNotFoundException":
1589
- case "com.amazonaws.codeguruprofiler#ResourceNotFoundException":
1590
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1591
- case "ThrottlingException":
1592
- case "com.amazonaws.codeguruprofiler#ThrottlingException":
1593
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
1594
- case "ValidationException":
1595
- case "com.amazonaws.codeguruprofiler#ValidationException":
1596
- throw await de_ValidationExceptionRes(parsedOutput, context);
1597
- default:
1598
- const parsedBody = parsedOutput.body;
1599
- return throwDefaultError({
1600
- output,
1601
- parsedBody,
1602
- errorCode
1603
- });
1604
- }
1605
- }, "de_SubmitFeedbackCommandError");
1606
1043
  var de_TagResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
1607
1044
  if (output.statusCode !== 204 && output.statusCode >= 300) {
1608
- return de_TagResourceCommandError(output, context);
1045
+ return de_CommandError(output, context);
1609
1046
  }
1610
1047
  const contents = (0, import_smithy_client.map)({
1611
1048
  $metadata: deserializeMetadata(output)
@@ -1613,34 +1050,9 @@ var de_TagResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
1613
1050
  await (0, import_smithy_client.collectBody)(output.body, context);
1614
1051
  return contents;
1615
1052
  }, "de_TagResourceCommand");
1616
- var de_TagResourceCommandError = /* @__PURE__ */ __name(async (output, context) => {
1617
- const parsedOutput = {
1618
- ...output,
1619
- body: await parseErrorBody(output.body, context)
1620
- };
1621
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1622
- switch (errorCode) {
1623
- case "InternalServerException":
1624
- case "com.amazonaws.codeguruprofiler#InternalServerException":
1625
- throw await de_InternalServerExceptionRes(parsedOutput, context);
1626
- case "ResourceNotFoundException":
1627
- case "com.amazonaws.codeguruprofiler#ResourceNotFoundException":
1628
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1629
- case "ValidationException":
1630
- case "com.amazonaws.codeguruprofiler#ValidationException":
1631
- throw await de_ValidationExceptionRes(parsedOutput, context);
1632
- default:
1633
- const parsedBody = parsedOutput.body;
1634
- return throwDefaultError({
1635
- output,
1636
- parsedBody,
1637
- errorCode
1638
- });
1639
- }
1640
- }, "de_TagResourceCommandError");
1641
1053
  var de_UntagResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
1642
1054
  if (output.statusCode !== 204 && output.statusCode >= 300) {
1643
- return de_UntagResourceCommandError(output, context);
1055
+ return de_CommandError(output, context);
1644
1056
  }
1645
1057
  const contents = (0, import_smithy_client.map)({
1646
1058
  $metadata: deserializeMetadata(output)
@@ -1648,34 +1060,9 @@ var de_UntagResourceCommand = /* @__PURE__ */ __name(async (output, context) =>
1648
1060
  await (0, import_smithy_client.collectBody)(output.body, context);
1649
1061
  return contents;
1650
1062
  }, "de_UntagResourceCommand");
1651
- var de_UntagResourceCommandError = /* @__PURE__ */ __name(async (output, context) => {
1652
- const parsedOutput = {
1653
- ...output,
1654
- body: await parseErrorBody(output.body, context)
1655
- };
1656
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1657
- switch (errorCode) {
1658
- case "InternalServerException":
1659
- case "com.amazonaws.codeguruprofiler#InternalServerException":
1660
- throw await de_InternalServerExceptionRes(parsedOutput, context);
1661
- case "ResourceNotFoundException":
1662
- case "com.amazonaws.codeguruprofiler#ResourceNotFoundException":
1663
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1664
- case "ValidationException":
1665
- case "com.amazonaws.codeguruprofiler#ValidationException":
1666
- throw await de_ValidationExceptionRes(parsedOutput, context);
1667
- default:
1668
- const parsedBody = parsedOutput.body;
1669
- return throwDefaultError({
1670
- output,
1671
- parsedBody,
1672
- errorCode
1673
- });
1674
- }
1675
- }, "de_UntagResourceCommandError");
1676
1063
  var de_UpdateProfilingGroupCommand = /* @__PURE__ */ __name(async (output, context) => {
1677
1064
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1678
- return de_UpdateProfilingGroupCommandError(output, context);
1065
+ return de_CommandError(output, context);
1679
1066
  }
1680
1067
  const contents = (0, import_smithy_client.map)({
1681
1068
  $metadata: deserializeMetadata(output)
@@ -1684,7 +1071,7 @@ var de_UpdateProfilingGroupCommand = /* @__PURE__ */ __name(async (output, conte
1684
1071
  contents.profilingGroup = de_ProfilingGroupDescription(data, context);
1685
1072
  return contents;
1686
1073
  }, "de_UpdateProfilingGroupCommand");
1687
- var de_UpdateProfilingGroupCommandError = /* @__PURE__ */ __name(async (output, context) => {
1074
+ var de_CommandError = /* @__PURE__ */ __name(async (output, context) => {
1688
1075
  const parsedOutput = {
1689
1076
  ...output,
1690
1077
  body: await parseErrorBody(output.body, context)
@@ -1700,6 +1087,9 @@ var de_UpdateProfilingGroupCommandError = /* @__PURE__ */ __name(async (output,
1700
1087
  case "ResourceNotFoundException":
1701
1088
  case "com.amazonaws.codeguruprofiler#ResourceNotFoundException":
1702
1089
  throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1090
+ case "ServiceQuotaExceededException":
1091
+ case "com.amazonaws.codeguruprofiler#ServiceQuotaExceededException":
1092
+ throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
1703
1093
  case "ThrottlingException":
1704
1094
  case "com.amazonaws.codeguruprofiler#ThrottlingException":
1705
1095
  throw await de_ThrottlingExceptionRes(parsedOutput, context);
@@ -1714,7 +1104,7 @@ var de_UpdateProfilingGroupCommandError = /* @__PURE__ */ __name(async (output,
1714
1104
  errorCode
1715
1105
  });
1716
1106
  }
1717
- }, "de_UpdateProfilingGroupCommandError");
1107
+ }, "de_CommandError");
1718
1108
  var throwDefaultError = (0, import_smithy_client.withBaseException)(CodeGuruProfilerServiceException);
1719
1109
  var de_ConflictExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
1720
1110
  const contents = (0, import_smithy_client.map)({});