@aws-sdk/client-network-firewall 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
@@ -781,7 +781,7 @@ var se_UpdateTLSInspectionConfigurationCommand = /* @__PURE__ */ __name(async (i
781
781
  }, "se_UpdateTLSInspectionConfigurationCommand");
782
782
  var de_AssociateFirewallPolicyCommand = /* @__PURE__ */ __name(async (output, context) => {
783
783
  if (output.statusCode >= 300) {
784
- return de_AssociateFirewallPolicyCommandError(output, context);
784
+ return de_CommandError(output, context);
785
785
  }
786
786
  const data = await parseBody(output.body, context);
787
787
  let contents = {};
@@ -792,43 +792,9 @@ var de_AssociateFirewallPolicyCommand = /* @__PURE__ */ __name(async (output, co
792
792
  };
793
793
  return response;
794
794
  }, "de_AssociateFirewallPolicyCommand");
795
- var de_AssociateFirewallPolicyCommandError = /* @__PURE__ */ __name(async (output, context) => {
796
- const parsedOutput = {
797
- ...output,
798
- body: await parseErrorBody(output.body, context)
799
- };
800
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
801
- switch (errorCode) {
802
- case "InternalServerError":
803
- case "com.amazonaws.networkfirewall#InternalServerError":
804
- throw await de_InternalServerErrorRes(parsedOutput, context);
805
- case "InvalidOperationException":
806
- case "com.amazonaws.networkfirewall#InvalidOperationException":
807
- throw await de_InvalidOperationExceptionRes(parsedOutput, context);
808
- case "InvalidRequestException":
809
- case "com.amazonaws.networkfirewall#InvalidRequestException":
810
- throw await de_InvalidRequestExceptionRes(parsedOutput, context);
811
- case "InvalidTokenException":
812
- case "com.amazonaws.networkfirewall#InvalidTokenException":
813
- throw await de_InvalidTokenExceptionRes(parsedOutput, context);
814
- case "ResourceNotFoundException":
815
- case "com.amazonaws.networkfirewall#ResourceNotFoundException":
816
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
817
- case "ThrottlingException":
818
- case "com.amazonaws.networkfirewall#ThrottlingException":
819
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
820
- default:
821
- const parsedBody = parsedOutput.body;
822
- return throwDefaultError({
823
- output,
824
- parsedBody,
825
- errorCode
826
- });
827
- }
828
- }, "de_AssociateFirewallPolicyCommandError");
829
795
  var de_AssociateSubnetsCommand = /* @__PURE__ */ __name(async (output, context) => {
830
796
  if (output.statusCode >= 300) {
831
- return de_AssociateSubnetsCommandError(output, context);
797
+ return de_CommandError(output, context);
832
798
  }
833
799
  const data = await parseBody(output.body, context);
834
800
  let contents = {};
@@ -839,46 +805,9 @@ var de_AssociateSubnetsCommand = /* @__PURE__ */ __name(async (output, context)
839
805
  };
840
806
  return response;
841
807
  }, "de_AssociateSubnetsCommand");
842
- var de_AssociateSubnetsCommandError = /* @__PURE__ */ __name(async (output, context) => {
843
- const parsedOutput = {
844
- ...output,
845
- body: await parseErrorBody(output.body, context)
846
- };
847
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
848
- switch (errorCode) {
849
- case "InsufficientCapacityException":
850
- case "com.amazonaws.networkfirewall#InsufficientCapacityException":
851
- throw await de_InsufficientCapacityExceptionRes(parsedOutput, context);
852
- case "InternalServerError":
853
- case "com.amazonaws.networkfirewall#InternalServerError":
854
- throw await de_InternalServerErrorRes(parsedOutput, context);
855
- case "InvalidOperationException":
856
- case "com.amazonaws.networkfirewall#InvalidOperationException":
857
- throw await de_InvalidOperationExceptionRes(parsedOutput, context);
858
- case "InvalidRequestException":
859
- case "com.amazonaws.networkfirewall#InvalidRequestException":
860
- throw await de_InvalidRequestExceptionRes(parsedOutput, context);
861
- case "InvalidTokenException":
862
- case "com.amazonaws.networkfirewall#InvalidTokenException":
863
- throw await de_InvalidTokenExceptionRes(parsedOutput, context);
864
- case "ResourceNotFoundException":
865
- case "com.amazonaws.networkfirewall#ResourceNotFoundException":
866
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
867
- case "ThrottlingException":
868
- case "com.amazonaws.networkfirewall#ThrottlingException":
869
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
870
- default:
871
- const parsedBody = parsedOutput.body;
872
- return throwDefaultError({
873
- output,
874
- parsedBody,
875
- errorCode
876
- });
877
- }
878
- }, "de_AssociateSubnetsCommandError");
879
808
  var de_CreateFirewallCommand = /* @__PURE__ */ __name(async (output, context) => {
880
809
  if (output.statusCode >= 300) {
881
- return de_CreateFirewallCommandError(output, context);
810
+ return de_CommandError(output, context);
882
811
  }
883
812
  const data = await parseBody(output.body, context);
884
813
  let contents = {};
@@ -889,43 +818,9 @@ var de_CreateFirewallCommand = /* @__PURE__ */ __name(async (output, context) =>
889
818
  };
890
819
  return response;
891
820
  }, "de_CreateFirewallCommand");
892
- var de_CreateFirewallCommandError = /* @__PURE__ */ __name(async (output, context) => {
893
- const parsedOutput = {
894
- ...output,
895
- body: await parseErrorBody(output.body, context)
896
- };
897
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
898
- switch (errorCode) {
899
- case "InsufficientCapacityException":
900
- case "com.amazonaws.networkfirewall#InsufficientCapacityException":
901
- throw await de_InsufficientCapacityExceptionRes(parsedOutput, context);
902
- case "InternalServerError":
903
- case "com.amazonaws.networkfirewall#InternalServerError":
904
- throw await de_InternalServerErrorRes(parsedOutput, context);
905
- case "InvalidOperationException":
906
- case "com.amazonaws.networkfirewall#InvalidOperationException":
907
- throw await de_InvalidOperationExceptionRes(parsedOutput, context);
908
- case "InvalidRequestException":
909
- case "com.amazonaws.networkfirewall#InvalidRequestException":
910
- throw await de_InvalidRequestExceptionRes(parsedOutput, context);
911
- case "LimitExceededException":
912
- case "com.amazonaws.networkfirewall#LimitExceededException":
913
- throw await de_LimitExceededExceptionRes(parsedOutput, context);
914
- case "ThrottlingException":
915
- case "com.amazonaws.networkfirewall#ThrottlingException":
916
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
917
- default:
918
- const parsedBody = parsedOutput.body;
919
- return throwDefaultError({
920
- output,
921
- parsedBody,
922
- errorCode
923
- });
924
- }
925
- }, "de_CreateFirewallCommandError");
926
821
  var de_CreateFirewallPolicyCommand = /* @__PURE__ */ __name(async (output, context) => {
927
822
  if (output.statusCode >= 300) {
928
- return de_CreateFirewallPolicyCommandError(output, context);
823
+ return de_CommandError(output, context);
929
824
  }
930
825
  const data = await parseBody(output.body, context);
931
826
  let contents = {};
@@ -936,40 +831,9 @@ var de_CreateFirewallPolicyCommand = /* @__PURE__ */ __name(async (output, conte
936
831
  };
937
832
  return response;
938
833
  }, "de_CreateFirewallPolicyCommand");
939
- var de_CreateFirewallPolicyCommandError = /* @__PURE__ */ __name(async (output, context) => {
940
- const parsedOutput = {
941
- ...output,
942
- body: await parseErrorBody(output.body, context)
943
- };
944
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
945
- switch (errorCode) {
946
- case "InsufficientCapacityException":
947
- case "com.amazonaws.networkfirewall#InsufficientCapacityException":
948
- throw await de_InsufficientCapacityExceptionRes(parsedOutput, context);
949
- case "InternalServerError":
950
- case "com.amazonaws.networkfirewall#InternalServerError":
951
- throw await de_InternalServerErrorRes(parsedOutput, context);
952
- case "InvalidRequestException":
953
- case "com.amazonaws.networkfirewall#InvalidRequestException":
954
- throw await de_InvalidRequestExceptionRes(parsedOutput, context);
955
- case "LimitExceededException":
956
- case "com.amazonaws.networkfirewall#LimitExceededException":
957
- throw await de_LimitExceededExceptionRes(parsedOutput, context);
958
- case "ThrottlingException":
959
- case "com.amazonaws.networkfirewall#ThrottlingException":
960
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
961
- default:
962
- const parsedBody = parsedOutput.body;
963
- return throwDefaultError({
964
- output,
965
- parsedBody,
966
- errorCode
967
- });
968
- }
969
- }, "de_CreateFirewallPolicyCommandError");
970
834
  var de_CreateRuleGroupCommand = /* @__PURE__ */ __name(async (output, context) => {
971
835
  if (output.statusCode >= 300) {
972
- return de_CreateRuleGroupCommandError(output, context);
836
+ return de_CommandError(output, context);
973
837
  }
974
838
  const data = await parseBody(output.body, context);
975
839
  let contents = {};
@@ -980,40 +844,9 @@ var de_CreateRuleGroupCommand = /* @__PURE__ */ __name(async (output, context) =
980
844
  };
981
845
  return response;
982
846
  }, "de_CreateRuleGroupCommand");
983
- var de_CreateRuleGroupCommandError = /* @__PURE__ */ __name(async (output, context) => {
984
- const parsedOutput = {
985
- ...output,
986
- body: await parseErrorBody(output.body, context)
987
- };
988
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
989
- switch (errorCode) {
990
- case "InsufficientCapacityException":
991
- case "com.amazonaws.networkfirewall#InsufficientCapacityException":
992
- throw await de_InsufficientCapacityExceptionRes(parsedOutput, context);
993
- case "InternalServerError":
994
- case "com.amazonaws.networkfirewall#InternalServerError":
995
- throw await de_InternalServerErrorRes(parsedOutput, context);
996
- case "InvalidRequestException":
997
- case "com.amazonaws.networkfirewall#InvalidRequestException":
998
- throw await de_InvalidRequestExceptionRes(parsedOutput, context);
999
- case "LimitExceededException":
1000
- case "com.amazonaws.networkfirewall#LimitExceededException":
1001
- throw await de_LimitExceededExceptionRes(parsedOutput, context);
1002
- case "ThrottlingException":
1003
- case "com.amazonaws.networkfirewall#ThrottlingException":
1004
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
1005
- default:
1006
- const parsedBody = parsedOutput.body;
1007
- return throwDefaultError({
1008
- output,
1009
- parsedBody,
1010
- errorCode
1011
- });
1012
- }
1013
- }, "de_CreateRuleGroupCommandError");
1014
847
  var de_CreateTLSInspectionConfigurationCommand = /* @__PURE__ */ __name(async (output, context) => {
1015
848
  if (output.statusCode >= 300) {
1016
- return de_CreateTLSInspectionConfigurationCommandError(output, context);
849
+ return de_CommandError(output, context);
1017
850
  }
1018
851
  const data = await parseBody(output.body, context);
1019
852
  let contents = {};
@@ -1024,40 +857,9 @@ var de_CreateTLSInspectionConfigurationCommand = /* @__PURE__ */ __name(async (o
1024
857
  };
1025
858
  return response;
1026
859
  }, "de_CreateTLSInspectionConfigurationCommand");
1027
- var de_CreateTLSInspectionConfigurationCommandError = /* @__PURE__ */ __name(async (output, context) => {
1028
- const parsedOutput = {
1029
- ...output,
1030
- body: await parseErrorBody(output.body, context)
1031
- };
1032
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1033
- switch (errorCode) {
1034
- case "InsufficientCapacityException":
1035
- case "com.amazonaws.networkfirewall#InsufficientCapacityException":
1036
- throw await de_InsufficientCapacityExceptionRes(parsedOutput, context);
1037
- case "InternalServerError":
1038
- case "com.amazonaws.networkfirewall#InternalServerError":
1039
- throw await de_InternalServerErrorRes(parsedOutput, context);
1040
- case "InvalidRequestException":
1041
- case "com.amazonaws.networkfirewall#InvalidRequestException":
1042
- throw await de_InvalidRequestExceptionRes(parsedOutput, context);
1043
- case "LimitExceededException":
1044
- case "com.amazonaws.networkfirewall#LimitExceededException":
1045
- throw await de_LimitExceededExceptionRes(parsedOutput, context);
1046
- case "ThrottlingException":
1047
- case "com.amazonaws.networkfirewall#ThrottlingException":
1048
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
1049
- default:
1050
- const parsedBody = parsedOutput.body;
1051
- return throwDefaultError({
1052
- output,
1053
- parsedBody,
1054
- errorCode
1055
- });
1056
- }
1057
- }, "de_CreateTLSInspectionConfigurationCommandError");
1058
860
  var de_DeleteFirewallCommand = /* @__PURE__ */ __name(async (output, context) => {
1059
861
  if (output.statusCode >= 300) {
1060
- return de_DeleteFirewallCommandError(output, context);
862
+ return de_CommandError(output, context);
1061
863
  }
1062
864
  const data = await parseBody(output.body, context);
1063
865
  let contents = {};
@@ -1068,43 +870,9 @@ var de_DeleteFirewallCommand = /* @__PURE__ */ __name(async (output, context) =>
1068
870
  };
1069
871
  return response;
1070
872
  }, "de_DeleteFirewallCommand");
1071
- var de_DeleteFirewallCommandError = /* @__PURE__ */ __name(async (output, context) => {
1072
- const parsedOutput = {
1073
- ...output,
1074
- body: await parseErrorBody(output.body, context)
1075
- };
1076
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1077
- switch (errorCode) {
1078
- case "InternalServerError":
1079
- case "com.amazonaws.networkfirewall#InternalServerError":
1080
- throw await de_InternalServerErrorRes(parsedOutput, context);
1081
- case "InvalidOperationException":
1082
- case "com.amazonaws.networkfirewall#InvalidOperationException":
1083
- throw await de_InvalidOperationExceptionRes(parsedOutput, context);
1084
- case "InvalidRequestException":
1085
- case "com.amazonaws.networkfirewall#InvalidRequestException":
1086
- throw await de_InvalidRequestExceptionRes(parsedOutput, context);
1087
- case "ResourceNotFoundException":
1088
- case "com.amazonaws.networkfirewall#ResourceNotFoundException":
1089
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1090
- case "ThrottlingException":
1091
- case "com.amazonaws.networkfirewall#ThrottlingException":
1092
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
1093
- case "UnsupportedOperationException":
1094
- case "com.amazonaws.networkfirewall#UnsupportedOperationException":
1095
- throw await de_UnsupportedOperationExceptionRes(parsedOutput, context);
1096
- default:
1097
- const parsedBody = parsedOutput.body;
1098
- return throwDefaultError({
1099
- output,
1100
- parsedBody,
1101
- errorCode
1102
- });
1103
- }
1104
- }, "de_DeleteFirewallCommandError");
1105
873
  var de_DeleteFirewallPolicyCommand = /* @__PURE__ */ __name(async (output, context) => {
1106
874
  if (output.statusCode >= 300) {
1107
- return de_DeleteFirewallPolicyCommandError(output, context);
875
+ return de_CommandError(output, context);
1108
876
  }
1109
877
  const data = await parseBody(output.body, context);
1110
878
  let contents = {};
@@ -1115,43 +883,9 @@ var de_DeleteFirewallPolicyCommand = /* @__PURE__ */ __name(async (output, conte
1115
883
  };
1116
884
  return response;
1117
885
  }, "de_DeleteFirewallPolicyCommand");
1118
- var de_DeleteFirewallPolicyCommandError = /* @__PURE__ */ __name(async (output, context) => {
1119
- const parsedOutput = {
1120
- ...output,
1121
- body: await parseErrorBody(output.body, context)
1122
- };
1123
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1124
- switch (errorCode) {
1125
- case "InternalServerError":
1126
- case "com.amazonaws.networkfirewall#InternalServerError":
1127
- throw await de_InternalServerErrorRes(parsedOutput, context);
1128
- case "InvalidOperationException":
1129
- case "com.amazonaws.networkfirewall#InvalidOperationException":
1130
- throw await de_InvalidOperationExceptionRes(parsedOutput, context);
1131
- case "InvalidRequestException":
1132
- case "com.amazonaws.networkfirewall#InvalidRequestException":
1133
- throw await de_InvalidRequestExceptionRes(parsedOutput, context);
1134
- case "ResourceNotFoundException":
1135
- case "com.amazonaws.networkfirewall#ResourceNotFoundException":
1136
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1137
- case "ThrottlingException":
1138
- case "com.amazonaws.networkfirewall#ThrottlingException":
1139
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
1140
- case "UnsupportedOperationException":
1141
- case "com.amazonaws.networkfirewall#UnsupportedOperationException":
1142
- throw await de_UnsupportedOperationExceptionRes(parsedOutput, context);
1143
- default:
1144
- const parsedBody = parsedOutput.body;
1145
- return throwDefaultError({
1146
- output,
1147
- parsedBody,
1148
- errorCode
1149
- });
1150
- }
1151
- }, "de_DeleteFirewallPolicyCommandError");
1152
886
  var de_DeleteResourcePolicyCommand = /* @__PURE__ */ __name(async (output, context) => {
1153
887
  if (output.statusCode >= 300) {
1154
- return de_DeleteResourcePolicyCommandError(output, context);
888
+ return de_CommandError(output, context);
1155
889
  }
1156
890
  const data = await parseBody(output.body, context);
1157
891
  let contents = {};
@@ -1162,40 +896,9 @@ var de_DeleteResourcePolicyCommand = /* @__PURE__ */ __name(async (output, conte
1162
896
  };
1163
897
  return response;
1164
898
  }, "de_DeleteResourcePolicyCommand");
1165
- var de_DeleteResourcePolicyCommandError = /* @__PURE__ */ __name(async (output, context) => {
1166
- const parsedOutput = {
1167
- ...output,
1168
- body: await parseErrorBody(output.body, context)
1169
- };
1170
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1171
- switch (errorCode) {
1172
- case "InternalServerError":
1173
- case "com.amazonaws.networkfirewall#InternalServerError":
1174
- throw await de_InternalServerErrorRes(parsedOutput, context);
1175
- case "InvalidRequestException":
1176
- case "com.amazonaws.networkfirewall#InvalidRequestException":
1177
- throw await de_InvalidRequestExceptionRes(parsedOutput, context);
1178
- case "InvalidResourcePolicyException":
1179
- case "com.amazonaws.networkfirewall#InvalidResourcePolicyException":
1180
- throw await de_InvalidResourcePolicyExceptionRes(parsedOutput, context);
1181
- case "ResourceNotFoundException":
1182
- case "com.amazonaws.networkfirewall#ResourceNotFoundException":
1183
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1184
- case "ThrottlingException":
1185
- case "com.amazonaws.networkfirewall#ThrottlingException":
1186
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
1187
- default:
1188
- const parsedBody = parsedOutput.body;
1189
- return throwDefaultError({
1190
- output,
1191
- parsedBody,
1192
- errorCode
1193
- });
1194
- }
1195
- }, "de_DeleteResourcePolicyCommandError");
1196
899
  var de_DeleteRuleGroupCommand = /* @__PURE__ */ __name(async (output, context) => {
1197
900
  if (output.statusCode >= 300) {
1198
- return de_DeleteRuleGroupCommandError(output, context);
901
+ return de_CommandError(output, context);
1199
902
  }
1200
903
  const data = await parseBody(output.body, context);
1201
904
  let contents = {};
@@ -1206,43 +909,9 @@ var de_DeleteRuleGroupCommand = /* @__PURE__ */ __name(async (output, context) =
1206
909
  };
1207
910
  return response;
1208
911
  }, "de_DeleteRuleGroupCommand");
1209
- var de_DeleteRuleGroupCommandError = /* @__PURE__ */ __name(async (output, context) => {
1210
- const parsedOutput = {
1211
- ...output,
1212
- body: await parseErrorBody(output.body, context)
1213
- };
1214
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1215
- switch (errorCode) {
1216
- case "InternalServerError":
1217
- case "com.amazonaws.networkfirewall#InternalServerError":
1218
- throw await de_InternalServerErrorRes(parsedOutput, context);
1219
- case "InvalidOperationException":
1220
- case "com.amazonaws.networkfirewall#InvalidOperationException":
1221
- throw await de_InvalidOperationExceptionRes(parsedOutput, context);
1222
- case "InvalidRequestException":
1223
- case "com.amazonaws.networkfirewall#InvalidRequestException":
1224
- throw await de_InvalidRequestExceptionRes(parsedOutput, context);
1225
- case "ResourceNotFoundException":
1226
- case "com.amazonaws.networkfirewall#ResourceNotFoundException":
1227
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1228
- case "ThrottlingException":
1229
- case "com.amazonaws.networkfirewall#ThrottlingException":
1230
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
1231
- case "UnsupportedOperationException":
1232
- case "com.amazonaws.networkfirewall#UnsupportedOperationException":
1233
- throw await de_UnsupportedOperationExceptionRes(parsedOutput, context);
1234
- default:
1235
- const parsedBody = parsedOutput.body;
1236
- return throwDefaultError({
1237
- output,
1238
- parsedBody,
1239
- errorCode
1240
- });
1241
- }
1242
- }, "de_DeleteRuleGroupCommandError");
1243
912
  var de_DeleteTLSInspectionConfigurationCommand = /* @__PURE__ */ __name(async (output, context) => {
1244
913
  if (output.statusCode >= 300) {
1245
- return de_DeleteTLSInspectionConfigurationCommandError(output, context);
914
+ return de_CommandError(output, context);
1246
915
  }
1247
916
  const data = await parseBody(output.body, context);
1248
917
  let contents = {};
@@ -1253,40 +922,9 @@ var de_DeleteTLSInspectionConfigurationCommand = /* @__PURE__ */ __name(async (o
1253
922
  };
1254
923
  return response;
1255
924
  }, "de_DeleteTLSInspectionConfigurationCommand");
1256
- var de_DeleteTLSInspectionConfigurationCommandError = /* @__PURE__ */ __name(async (output, context) => {
1257
- const parsedOutput = {
1258
- ...output,
1259
- body: await parseErrorBody(output.body, context)
1260
- };
1261
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1262
- switch (errorCode) {
1263
- case "InternalServerError":
1264
- case "com.amazonaws.networkfirewall#InternalServerError":
1265
- throw await de_InternalServerErrorRes(parsedOutput, context);
1266
- case "InvalidOperationException":
1267
- case "com.amazonaws.networkfirewall#InvalidOperationException":
1268
- throw await de_InvalidOperationExceptionRes(parsedOutput, context);
1269
- case "InvalidRequestException":
1270
- case "com.amazonaws.networkfirewall#InvalidRequestException":
1271
- throw await de_InvalidRequestExceptionRes(parsedOutput, context);
1272
- case "ResourceNotFoundException":
1273
- case "com.amazonaws.networkfirewall#ResourceNotFoundException":
1274
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1275
- case "ThrottlingException":
1276
- case "com.amazonaws.networkfirewall#ThrottlingException":
1277
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
1278
- default:
1279
- const parsedBody = parsedOutput.body;
1280
- return throwDefaultError({
1281
- output,
1282
- parsedBody,
1283
- errorCode
1284
- });
1285
- }
1286
- }, "de_DeleteTLSInspectionConfigurationCommandError");
1287
925
  var de_DescribeFirewallCommand = /* @__PURE__ */ __name(async (output, context) => {
1288
926
  if (output.statusCode >= 300) {
1289
- return de_DescribeFirewallCommandError(output, context);
927
+ return de_CommandError(output, context);
1290
928
  }
1291
929
  const data = await parseBody(output.body, context);
1292
930
  let contents = {};
@@ -1297,37 +935,9 @@ var de_DescribeFirewallCommand = /* @__PURE__ */ __name(async (output, context)
1297
935
  };
1298
936
  return response;
1299
937
  }, "de_DescribeFirewallCommand");
1300
- var de_DescribeFirewallCommandError = /* @__PURE__ */ __name(async (output, context) => {
1301
- const parsedOutput = {
1302
- ...output,
1303
- body: await parseErrorBody(output.body, context)
1304
- };
1305
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1306
- switch (errorCode) {
1307
- case "InternalServerError":
1308
- case "com.amazonaws.networkfirewall#InternalServerError":
1309
- throw await de_InternalServerErrorRes(parsedOutput, context);
1310
- case "InvalidRequestException":
1311
- case "com.amazonaws.networkfirewall#InvalidRequestException":
1312
- throw await de_InvalidRequestExceptionRes(parsedOutput, context);
1313
- case "ResourceNotFoundException":
1314
- case "com.amazonaws.networkfirewall#ResourceNotFoundException":
1315
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1316
- case "ThrottlingException":
1317
- case "com.amazonaws.networkfirewall#ThrottlingException":
1318
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
1319
- default:
1320
- const parsedBody = parsedOutput.body;
1321
- return throwDefaultError({
1322
- output,
1323
- parsedBody,
1324
- errorCode
1325
- });
1326
- }
1327
- }, "de_DescribeFirewallCommandError");
1328
938
  var de_DescribeFirewallPolicyCommand = /* @__PURE__ */ __name(async (output, context) => {
1329
939
  if (output.statusCode >= 300) {
1330
- return de_DescribeFirewallPolicyCommandError(output, context);
940
+ return de_CommandError(output, context);
1331
941
  }
1332
942
  const data = await parseBody(output.body, context);
1333
943
  let contents = {};
@@ -1338,37 +948,9 @@ var de_DescribeFirewallPolicyCommand = /* @__PURE__ */ __name(async (output, con
1338
948
  };
1339
949
  return response;
1340
950
  }, "de_DescribeFirewallPolicyCommand");
1341
- var de_DescribeFirewallPolicyCommandError = /* @__PURE__ */ __name(async (output, context) => {
1342
- const parsedOutput = {
1343
- ...output,
1344
- body: await parseErrorBody(output.body, context)
1345
- };
1346
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1347
- switch (errorCode) {
1348
- case "InternalServerError":
1349
- case "com.amazonaws.networkfirewall#InternalServerError":
1350
- throw await de_InternalServerErrorRes(parsedOutput, context);
1351
- case "InvalidRequestException":
1352
- case "com.amazonaws.networkfirewall#InvalidRequestException":
1353
- throw await de_InvalidRequestExceptionRes(parsedOutput, context);
1354
- case "ResourceNotFoundException":
1355
- case "com.amazonaws.networkfirewall#ResourceNotFoundException":
1356
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1357
- case "ThrottlingException":
1358
- case "com.amazonaws.networkfirewall#ThrottlingException":
1359
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
1360
- default:
1361
- const parsedBody = parsedOutput.body;
1362
- return throwDefaultError({
1363
- output,
1364
- parsedBody,
1365
- errorCode
1366
- });
1367
- }
1368
- }, "de_DescribeFirewallPolicyCommandError");
1369
951
  var de_DescribeLoggingConfigurationCommand = /* @__PURE__ */ __name(async (output, context) => {
1370
952
  if (output.statusCode >= 300) {
1371
- return de_DescribeLoggingConfigurationCommandError(output, context);
953
+ return de_CommandError(output, context);
1372
954
  }
1373
955
  const data = await parseBody(output.body, context);
1374
956
  let contents = {};
@@ -1379,37 +961,9 @@ var de_DescribeLoggingConfigurationCommand = /* @__PURE__ */ __name(async (outpu
1379
961
  };
1380
962
  return response;
1381
963
  }, "de_DescribeLoggingConfigurationCommand");
1382
- var de_DescribeLoggingConfigurationCommandError = /* @__PURE__ */ __name(async (output, context) => {
1383
- const parsedOutput = {
1384
- ...output,
1385
- body: await parseErrorBody(output.body, context)
1386
- };
1387
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1388
- switch (errorCode) {
1389
- case "InternalServerError":
1390
- case "com.amazonaws.networkfirewall#InternalServerError":
1391
- throw await de_InternalServerErrorRes(parsedOutput, context);
1392
- case "InvalidRequestException":
1393
- case "com.amazonaws.networkfirewall#InvalidRequestException":
1394
- throw await de_InvalidRequestExceptionRes(parsedOutput, context);
1395
- case "ResourceNotFoundException":
1396
- case "com.amazonaws.networkfirewall#ResourceNotFoundException":
1397
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1398
- case "ThrottlingException":
1399
- case "com.amazonaws.networkfirewall#ThrottlingException":
1400
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
1401
- default:
1402
- const parsedBody = parsedOutput.body;
1403
- return throwDefaultError({
1404
- output,
1405
- parsedBody,
1406
- errorCode
1407
- });
1408
- }
1409
- }, "de_DescribeLoggingConfigurationCommandError");
1410
964
  var de_DescribeResourcePolicyCommand = /* @__PURE__ */ __name(async (output, context) => {
1411
965
  if (output.statusCode >= 300) {
1412
- return de_DescribeResourcePolicyCommandError(output, context);
966
+ return de_CommandError(output, context);
1413
967
  }
1414
968
  const data = await parseBody(output.body, context);
1415
969
  let contents = {};
@@ -1420,37 +974,9 @@ var de_DescribeResourcePolicyCommand = /* @__PURE__ */ __name(async (output, con
1420
974
  };
1421
975
  return response;
1422
976
  }, "de_DescribeResourcePolicyCommand");
1423
- var de_DescribeResourcePolicyCommandError = /* @__PURE__ */ __name(async (output, context) => {
1424
- const parsedOutput = {
1425
- ...output,
1426
- body: await parseErrorBody(output.body, context)
1427
- };
1428
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1429
- switch (errorCode) {
1430
- case "InternalServerError":
1431
- case "com.amazonaws.networkfirewall#InternalServerError":
1432
- throw await de_InternalServerErrorRes(parsedOutput, context);
1433
- case "InvalidRequestException":
1434
- case "com.amazonaws.networkfirewall#InvalidRequestException":
1435
- throw await de_InvalidRequestExceptionRes(parsedOutput, context);
1436
- case "ResourceNotFoundException":
1437
- case "com.amazonaws.networkfirewall#ResourceNotFoundException":
1438
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1439
- case "ThrottlingException":
1440
- case "com.amazonaws.networkfirewall#ThrottlingException":
1441
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
1442
- default:
1443
- const parsedBody = parsedOutput.body;
1444
- return throwDefaultError({
1445
- output,
1446
- parsedBody,
1447
- errorCode
1448
- });
1449
- }
1450
- }, "de_DescribeResourcePolicyCommandError");
1451
977
  var de_DescribeRuleGroupCommand = /* @__PURE__ */ __name(async (output, context) => {
1452
978
  if (output.statusCode >= 300) {
1453
- return de_DescribeRuleGroupCommandError(output, context);
979
+ return de_CommandError(output, context);
1454
980
  }
1455
981
  const data = await parseBody(output.body, context);
1456
982
  let contents = {};
@@ -1461,37 +987,9 @@ var de_DescribeRuleGroupCommand = /* @__PURE__ */ __name(async (output, context)
1461
987
  };
1462
988
  return response;
1463
989
  }, "de_DescribeRuleGroupCommand");
1464
- var de_DescribeRuleGroupCommandError = /* @__PURE__ */ __name(async (output, context) => {
1465
- const parsedOutput = {
1466
- ...output,
1467
- body: await parseErrorBody(output.body, context)
1468
- };
1469
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1470
- switch (errorCode) {
1471
- case "InternalServerError":
1472
- case "com.amazonaws.networkfirewall#InternalServerError":
1473
- throw await de_InternalServerErrorRes(parsedOutput, context);
1474
- case "InvalidRequestException":
1475
- case "com.amazonaws.networkfirewall#InvalidRequestException":
1476
- throw await de_InvalidRequestExceptionRes(parsedOutput, context);
1477
- case "ResourceNotFoundException":
1478
- case "com.amazonaws.networkfirewall#ResourceNotFoundException":
1479
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1480
- case "ThrottlingException":
1481
- case "com.amazonaws.networkfirewall#ThrottlingException":
1482
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
1483
- default:
1484
- const parsedBody = parsedOutput.body;
1485
- return throwDefaultError({
1486
- output,
1487
- parsedBody,
1488
- errorCode
1489
- });
1490
- }
1491
- }, "de_DescribeRuleGroupCommandError");
1492
990
  var de_DescribeRuleGroupMetadataCommand = /* @__PURE__ */ __name(async (output, context) => {
1493
991
  if (output.statusCode >= 300) {
1494
- return de_DescribeRuleGroupMetadataCommandError(output, context);
992
+ return de_CommandError(output, context);
1495
993
  }
1496
994
  const data = await parseBody(output.body, context);
1497
995
  let contents = {};
@@ -1502,37 +1000,9 @@ var de_DescribeRuleGroupMetadataCommand = /* @__PURE__ */ __name(async (output,
1502
1000
  };
1503
1001
  return response;
1504
1002
  }, "de_DescribeRuleGroupMetadataCommand");
1505
- var de_DescribeRuleGroupMetadataCommandError = /* @__PURE__ */ __name(async (output, context) => {
1506
- const parsedOutput = {
1507
- ...output,
1508
- body: await parseErrorBody(output.body, context)
1509
- };
1510
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1511
- switch (errorCode) {
1512
- case "InternalServerError":
1513
- case "com.amazonaws.networkfirewall#InternalServerError":
1514
- throw await de_InternalServerErrorRes(parsedOutput, context);
1515
- case "InvalidRequestException":
1516
- case "com.amazonaws.networkfirewall#InvalidRequestException":
1517
- throw await de_InvalidRequestExceptionRes(parsedOutput, context);
1518
- case "ResourceNotFoundException":
1519
- case "com.amazonaws.networkfirewall#ResourceNotFoundException":
1520
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1521
- case "ThrottlingException":
1522
- case "com.amazonaws.networkfirewall#ThrottlingException":
1523
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
1524
- default:
1525
- const parsedBody = parsedOutput.body;
1526
- return throwDefaultError({
1527
- output,
1528
- parsedBody,
1529
- errorCode
1530
- });
1531
- }
1532
- }, "de_DescribeRuleGroupMetadataCommandError");
1533
1003
  var de_DescribeTLSInspectionConfigurationCommand = /* @__PURE__ */ __name(async (output, context) => {
1534
1004
  if (output.statusCode >= 300) {
1535
- return de_DescribeTLSInspectionConfigurationCommandError(output, context);
1005
+ return de_CommandError(output, context);
1536
1006
  }
1537
1007
  const data = await parseBody(output.body, context);
1538
1008
  let contents = {};
@@ -1543,84 +1013,22 @@ var de_DescribeTLSInspectionConfigurationCommand = /* @__PURE__ */ __name(async
1543
1013
  };
1544
1014
  return response;
1545
1015
  }, "de_DescribeTLSInspectionConfigurationCommand");
1546
- var de_DescribeTLSInspectionConfigurationCommandError = /* @__PURE__ */ __name(async (output, context) => {
1547
- const parsedOutput = {
1548
- ...output,
1549
- body: await parseErrorBody(output.body, context)
1550
- };
1551
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1552
- switch (errorCode) {
1553
- case "InternalServerError":
1554
- case "com.amazonaws.networkfirewall#InternalServerError":
1555
- throw await de_InternalServerErrorRes(parsedOutput, context);
1556
- case "InvalidRequestException":
1557
- case "com.amazonaws.networkfirewall#InvalidRequestException":
1558
- throw await de_InvalidRequestExceptionRes(parsedOutput, context);
1559
- case "ResourceNotFoundException":
1560
- case "com.amazonaws.networkfirewall#ResourceNotFoundException":
1561
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1562
- case "ThrottlingException":
1563
- case "com.amazonaws.networkfirewall#ThrottlingException":
1564
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
1565
- default:
1566
- const parsedBody = parsedOutput.body;
1567
- return throwDefaultError({
1568
- output,
1569
- parsedBody,
1570
- errorCode
1571
- });
1572
- }
1573
- }, "de_DescribeTLSInspectionConfigurationCommandError");
1574
- var de_DisassociateSubnetsCommand = /* @__PURE__ */ __name(async (output, context) => {
1575
- if (output.statusCode >= 300) {
1576
- return de_DisassociateSubnetsCommandError(output, context);
1577
- }
1578
- const data = await parseBody(output.body, context);
1579
- let contents = {};
1580
- contents = (0, import_smithy_client._json)(data);
1581
- const response = {
1582
- $metadata: deserializeMetadata(output),
1583
- ...contents
1016
+ var de_DisassociateSubnetsCommand = /* @__PURE__ */ __name(async (output, context) => {
1017
+ if (output.statusCode >= 300) {
1018
+ return de_CommandError(output, context);
1019
+ }
1020
+ const data = await parseBody(output.body, context);
1021
+ let contents = {};
1022
+ contents = (0, import_smithy_client._json)(data);
1023
+ const response = {
1024
+ $metadata: deserializeMetadata(output),
1025
+ ...contents
1584
1026
  };
1585
1027
  return response;
1586
1028
  }, "de_DisassociateSubnetsCommand");
1587
- var de_DisassociateSubnetsCommandError = /* @__PURE__ */ __name(async (output, context) => {
1588
- const parsedOutput = {
1589
- ...output,
1590
- body: await parseErrorBody(output.body, context)
1591
- };
1592
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1593
- switch (errorCode) {
1594
- case "InternalServerError":
1595
- case "com.amazonaws.networkfirewall#InternalServerError":
1596
- throw await de_InternalServerErrorRes(parsedOutput, context);
1597
- case "InvalidOperationException":
1598
- case "com.amazonaws.networkfirewall#InvalidOperationException":
1599
- throw await de_InvalidOperationExceptionRes(parsedOutput, context);
1600
- case "InvalidRequestException":
1601
- case "com.amazonaws.networkfirewall#InvalidRequestException":
1602
- throw await de_InvalidRequestExceptionRes(parsedOutput, context);
1603
- case "InvalidTokenException":
1604
- case "com.amazonaws.networkfirewall#InvalidTokenException":
1605
- throw await de_InvalidTokenExceptionRes(parsedOutput, context);
1606
- case "ResourceNotFoundException":
1607
- case "com.amazonaws.networkfirewall#ResourceNotFoundException":
1608
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1609
- case "ThrottlingException":
1610
- case "com.amazonaws.networkfirewall#ThrottlingException":
1611
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
1612
- default:
1613
- const parsedBody = parsedOutput.body;
1614
- return throwDefaultError({
1615
- output,
1616
- parsedBody,
1617
- errorCode
1618
- });
1619
- }
1620
- }, "de_DisassociateSubnetsCommandError");
1621
1029
  var de_ListFirewallPoliciesCommand = /* @__PURE__ */ __name(async (output, context) => {
1622
1030
  if (output.statusCode >= 300) {
1623
- return de_ListFirewallPoliciesCommandError(output, context);
1031
+ return de_CommandError(output, context);
1624
1032
  }
1625
1033
  const data = await parseBody(output.body, context);
1626
1034
  let contents = {};
@@ -1631,34 +1039,9 @@ var de_ListFirewallPoliciesCommand = /* @__PURE__ */ __name(async (output, conte
1631
1039
  };
1632
1040
  return response;
1633
1041
  }, "de_ListFirewallPoliciesCommand");
1634
- var de_ListFirewallPoliciesCommandError = /* @__PURE__ */ __name(async (output, context) => {
1635
- const parsedOutput = {
1636
- ...output,
1637
- body: await parseErrorBody(output.body, context)
1638
- };
1639
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1640
- switch (errorCode) {
1641
- case "InternalServerError":
1642
- case "com.amazonaws.networkfirewall#InternalServerError":
1643
- throw await de_InternalServerErrorRes(parsedOutput, context);
1644
- case "InvalidRequestException":
1645
- case "com.amazonaws.networkfirewall#InvalidRequestException":
1646
- throw await de_InvalidRequestExceptionRes(parsedOutput, context);
1647
- case "ThrottlingException":
1648
- case "com.amazonaws.networkfirewall#ThrottlingException":
1649
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
1650
- default:
1651
- const parsedBody = parsedOutput.body;
1652
- return throwDefaultError({
1653
- output,
1654
- parsedBody,
1655
- errorCode
1656
- });
1657
- }
1658
- }, "de_ListFirewallPoliciesCommandError");
1659
1042
  var de_ListFirewallsCommand = /* @__PURE__ */ __name(async (output, context) => {
1660
1043
  if (output.statusCode >= 300) {
1661
- return de_ListFirewallsCommandError(output, context);
1044
+ return de_CommandError(output, context);
1662
1045
  }
1663
1046
  const data = await parseBody(output.body, context);
1664
1047
  let contents = {};
@@ -1669,34 +1052,9 @@ var de_ListFirewallsCommand = /* @__PURE__ */ __name(async (output, context) =>
1669
1052
  };
1670
1053
  return response;
1671
1054
  }, "de_ListFirewallsCommand");
1672
- var de_ListFirewallsCommandError = /* @__PURE__ */ __name(async (output, context) => {
1673
- const parsedOutput = {
1674
- ...output,
1675
- body: await parseErrorBody(output.body, context)
1676
- };
1677
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1678
- switch (errorCode) {
1679
- case "InternalServerError":
1680
- case "com.amazonaws.networkfirewall#InternalServerError":
1681
- throw await de_InternalServerErrorRes(parsedOutput, context);
1682
- case "InvalidRequestException":
1683
- case "com.amazonaws.networkfirewall#InvalidRequestException":
1684
- throw await de_InvalidRequestExceptionRes(parsedOutput, context);
1685
- case "ThrottlingException":
1686
- case "com.amazonaws.networkfirewall#ThrottlingException":
1687
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
1688
- default:
1689
- const parsedBody = parsedOutput.body;
1690
- return throwDefaultError({
1691
- output,
1692
- parsedBody,
1693
- errorCode
1694
- });
1695
- }
1696
- }, "de_ListFirewallsCommandError");
1697
1055
  var de_ListRuleGroupsCommand = /* @__PURE__ */ __name(async (output, context) => {
1698
1056
  if (output.statusCode >= 300) {
1699
- return de_ListRuleGroupsCommandError(output, context);
1057
+ return de_CommandError(output, context);
1700
1058
  }
1701
1059
  const data = await parseBody(output.body, context);
1702
1060
  let contents = {};
@@ -1707,34 +1065,9 @@ var de_ListRuleGroupsCommand = /* @__PURE__ */ __name(async (output, context) =>
1707
1065
  };
1708
1066
  return response;
1709
1067
  }, "de_ListRuleGroupsCommand");
1710
- var de_ListRuleGroupsCommandError = /* @__PURE__ */ __name(async (output, context) => {
1711
- const parsedOutput = {
1712
- ...output,
1713
- body: await parseErrorBody(output.body, context)
1714
- };
1715
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1716
- switch (errorCode) {
1717
- case "InternalServerError":
1718
- case "com.amazonaws.networkfirewall#InternalServerError":
1719
- throw await de_InternalServerErrorRes(parsedOutput, context);
1720
- case "InvalidRequestException":
1721
- case "com.amazonaws.networkfirewall#InvalidRequestException":
1722
- throw await de_InvalidRequestExceptionRes(parsedOutput, context);
1723
- case "ThrottlingException":
1724
- case "com.amazonaws.networkfirewall#ThrottlingException":
1725
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
1726
- default:
1727
- const parsedBody = parsedOutput.body;
1728
- return throwDefaultError({
1729
- output,
1730
- parsedBody,
1731
- errorCode
1732
- });
1733
- }
1734
- }, "de_ListRuleGroupsCommandError");
1735
1068
  var de_ListTagsForResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
1736
1069
  if (output.statusCode >= 300) {
1737
- return de_ListTagsForResourceCommandError(output, context);
1070
+ return de_CommandError(output, context);
1738
1071
  }
1739
1072
  const data = await parseBody(output.body, context);
1740
1073
  let contents = {};
@@ -1745,37 +1078,9 @@ var de_ListTagsForResourceCommand = /* @__PURE__ */ __name(async (output, contex
1745
1078
  };
1746
1079
  return response;
1747
1080
  }, "de_ListTagsForResourceCommand");
1748
- var de_ListTagsForResourceCommandError = /* @__PURE__ */ __name(async (output, context) => {
1749
- const parsedOutput = {
1750
- ...output,
1751
- body: await parseErrorBody(output.body, context)
1752
- };
1753
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1754
- switch (errorCode) {
1755
- case "InternalServerError":
1756
- case "com.amazonaws.networkfirewall#InternalServerError":
1757
- throw await de_InternalServerErrorRes(parsedOutput, context);
1758
- case "InvalidRequestException":
1759
- case "com.amazonaws.networkfirewall#InvalidRequestException":
1760
- throw await de_InvalidRequestExceptionRes(parsedOutput, context);
1761
- case "ResourceNotFoundException":
1762
- case "com.amazonaws.networkfirewall#ResourceNotFoundException":
1763
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1764
- case "ThrottlingException":
1765
- case "com.amazonaws.networkfirewall#ThrottlingException":
1766
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
1767
- default:
1768
- const parsedBody = parsedOutput.body;
1769
- return throwDefaultError({
1770
- output,
1771
- parsedBody,
1772
- errorCode
1773
- });
1774
- }
1775
- }, "de_ListTagsForResourceCommandError");
1776
1081
  var de_ListTLSInspectionConfigurationsCommand = /* @__PURE__ */ __name(async (output, context) => {
1777
1082
  if (output.statusCode >= 300) {
1778
- return de_ListTLSInspectionConfigurationsCommandError(output, context);
1083
+ return de_CommandError(output, context);
1779
1084
  }
1780
1085
  const data = await parseBody(output.body, context);
1781
1086
  let contents = {};
@@ -1786,34 +1091,9 @@ var de_ListTLSInspectionConfigurationsCommand = /* @__PURE__ */ __name(async (ou
1786
1091
  };
1787
1092
  return response;
1788
1093
  }, "de_ListTLSInspectionConfigurationsCommand");
1789
- var de_ListTLSInspectionConfigurationsCommandError = /* @__PURE__ */ __name(async (output, context) => {
1790
- const parsedOutput = {
1791
- ...output,
1792
- body: await parseErrorBody(output.body, context)
1793
- };
1794
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1795
- switch (errorCode) {
1796
- case "InternalServerError":
1797
- case "com.amazonaws.networkfirewall#InternalServerError":
1798
- throw await de_InternalServerErrorRes(parsedOutput, context);
1799
- case "InvalidRequestException":
1800
- case "com.amazonaws.networkfirewall#InvalidRequestException":
1801
- throw await de_InvalidRequestExceptionRes(parsedOutput, context);
1802
- case "ThrottlingException":
1803
- case "com.amazonaws.networkfirewall#ThrottlingException":
1804
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
1805
- default:
1806
- const parsedBody = parsedOutput.body;
1807
- return throwDefaultError({
1808
- output,
1809
- parsedBody,
1810
- errorCode
1811
- });
1812
- }
1813
- }, "de_ListTLSInspectionConfigurationsCommandError");
1814
1094
  var de_PutResourcePolicyCommand = /* @__PURE__ */ __name(async (output, context) => {
1815
1095
  if (output.statusCode >= 300) {
1816
- return de_PutResourcePolicyCommandError(output, context);
1096
+ return de_CommandError(output, context);
1817
1097
  }
1818
1098
  const data = await parseBody(output.body, context);
1819
1099
  let contents = {};
@@ -1824,40 +1104,9 @@ var de_PutResourcePolicyCommand = /* @__PURE__ */ __name(async (output, context)
1824
1104
  };
1825
1105
  return response;
1826
1106
  }, "de_PutResourcePolicyCommand");
1827
- var de_PutResourcePolicyCommandError = /* @__PURE__ */ __name(async (output, context) => {
1828
- const parsedOutput = {
1829
- ...output,
1830
- body: await parseErrorBody(output.body, context)
1831
- };
1832
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1833
- switch (errorCode) {
1834
- case "InternalServerError":
1835
- case "com.amazonaws.networkfirewall#InternalServerError":
1836
- throw await de_InternalServerErrorRes(parsedOutput, context);
1837
- case "InvalidRequestException":
1838
- case "com.amazonaws.networkfirewall#InvalidRequestException":
1839
- throw await de_InvalidRequestExceptionRes(parsedOutput, context);
1840
- case "InvalidResourcePolicyException":
1841
- case "com.amazonaws.networkfirewall#InvalidResourcePolicyException":
1842
- throw await de_InvalidResourcePolicyExceptionRes(parsedOutput, context);
1843
- case "ResourceNotFoundException":
1844
- case "com.amazonaws.networkfirewall#ResourceNotFoundException":
1845
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1846
- case "ThrottlingException":
1847
- case "com.amazonaws.networkfirewall#ThrottlingException":
1848
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
1849
- default:
1850
- const parsedBody = parsedOutput.body;
1851
- return throwDefaultError({
1852
- output,
1853
- parsedBody,
1854
- errorCode
1855
- });
1856
- }
1857
- }, "de_PutResourcePolicyCommandError");
1858
1107
  var de_TagResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
1859
1108
  if (output.statusCode >= 300) {
1860
- return de_TagResourceCommandError(output, context);
1109
+ return de_CommandError(output, context);
1861
1110
  }
1862
1111
  const data = await parseBody(output.body, context);
1863
1112
  let contents = {};
@@ -1868,125 +1117,35 @@ var de_TagResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
1868
1117
  };
1869
1118
  return response;
1870
1119
  }, "de_TagResourceCommand");
1871
- var de_TagResourceCommandError = /* @__PURE__ */ __name(async (output, context) => {
1872
- const parsedOutput = {
1873
- ...output,
1874
- body: await parseErrorBody(output.body, context)
1875
- };
1876
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1877
- switch (errorCode) {
1878
- case "InternalServerError":
1879
- case "com.amazonaws.networkfirewall#InternalServerError":
1880
- throw await de_InternalServerErrorRes(parsedOutput, context);
1881
- case "InvalidRequestException":
1882
- case "com.amazonaws.networkfirewall#InvalidRequestException":
1883
- throw await de_InvalidRequestExceptionRes(parsedOutput, context);
1884
- case "ResourceNotFoundException":
1885
- case "com.amazonaws.networkfirewall#ResourceNotFoundException":
1886
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1887
- case "ThrottlingException":
1888
- case "com.amazonaws.networkfirewall#ThrottlingException":
1889
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
1890
- default:
1891
- const parsedBody = parsedOutput.body;
1892
- return throwDefaultError({
1893
- output,
1894
- parsedBody,
1895
- errorCode
1896
- });
1897
- }
1898
- }, "de_TagResourceCommandError");
1899
1120
  var de_UntagResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
1900
1121
  if (output.statusCode >= 300) {
1901
- return de_UntagResourceCommandError(output, context);
1122
+ return de_CommandError(output, context);
1902
1123
  }
1903
- const data = await parseBody(output.body, context);
1904
- let contents = {};
1905
- contents = (0, import_smithy_client._json)(data);
1906
- const response = {
1907
- $metadata: deserializeMetadata(output),
1908
- ...contents
1909
- };
1910
- return response;
1911
- }, "de_UntagResourceCommand");
1912
- var de_UntagResourceCommandError = /* @__PURE__ */ __name(async (output, context) => {
1913
- const parsedOutput = {
1914
- ...output,
1915
- body: await parseErrorBody(output.body, context)
1916
- };
1917
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1918
- switch (errorCode) {
1919
- case "InternalServerError":
1920
- case "com.amazonaws.networkfirewall#InternalServerError":
1921
- throw await de_InternalServerErrorRes(parsedOutput, context);
1922
- case "InvalidRequestException":
1923
- case "com.amazonaws.networkfirewall#InvalidRequestException":
1924
- throw await de_InvalidRequestExceptionRes(parsedOutput, context);
1925
- case "ResourceNotFoundException":
1926
- case "com.amazonaws.networkfirewall#ResourceNotFoundException":
1927
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1928
- case "ThrottlingException":
1929
- case "com.amazonaws.networkfirewall#ThrottlingException":
1930
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
1931
- default:
1932
- const parsedBody = parsedOutput.body;
1933
- return throwDefaultError({
1934
- output,
1935
- parsedBody,
1936
- errorCode
1937
- });
1938
- }
1939
- }, "de_UntagResourceCommandError");
1940
- var de_UpdateFirewallDeleteProtectionCommand = /* @__PURE__ */ __name(async (output, context) => {
1941
- if (output.statusCode >= 300) {
1942
- return de_UpdateFirewallDeleteProtectionCommandError(output, context);
1943
- }
1944
- const data = await parseBody(output.body, context);
1945
- let contents = {};
1946
- contents = (0, import_smithy_client._json)(data);
1947
- const response = {
1948
- $metadata: deserializeMetadata(output),
1949
- ...contents
1950
- };
1951
- return response;
1952
- }, "de_UpdateFirewallDeleteProtectionCommand");
1953
- var de_UpdateFirewallDeleteProtectionCommandError = /* @__PURE__ */ __name(async (output, context) => {
1954
- const parsedOutput = {
1955
- ...output,
1956
- body: await parseErrorBody(output.body, context)
1957
- };
1958
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1959
- switch (errorCode) {
1960
- case "InternalServerError":
1961
- case "com.amazonaws.networkfirewall#InternalServerError":
1962
- throw await de_InternalServerErrorRes(parsedOutput, context);
1963
- case "InvalidRequestException":
1964
- case "com.amazonaws.networkfirewall#InvalidRequestException":
1965
- throw await de_InvalidRequestExceptionRes(parsedOutput, context);
1966
- case "InvalidTokenException":
1967
- case "com.amazonaws.networkfirewall#InvalidTokenException":
1968
- throw await de_InvalidTokenExceptionRes(parsedOutput, context);
1969
- case "ResourceNotFoundException":
1970
- case "com.amazonaws.networkfirewall#ResourceNotFoundException":
1971
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1972
- case "ResourceOwnerCheckException":
1973
- case "com.amazonaws.networkfirewall#ResourceOwnerCheckException":
1974
- throw await de_ResourceOwnerCheckExceptionRes(parsedOutput, context);
1975
- case "ThrottlingException":
1976
- case "com.amazonaws.networkfirewall#ThrottlingException":
1977
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
1978
- default:
1979
- const parsedBody = parsedOutput.body;
1980
- return throwDefaultError({
1981
- output,
1982
- parsedBody,
1983
- errorCode
1984
- });
1124
+ const data = await parseBody(output.body, context);
1125
+ let contents = {};
1126
+ contents = (0, import_smithy_client._json)(data);
1127
+ const response = {
1128
+ $metadata: deserializeMetadata(output),
1129
+ ...contents
1130
+ };
1131
+ return response;
1132
+ }, "de_UntagResourceCommand");
1133
+ var de_UpdateFirewallDeleteProtectionCommand = /* @__PURE__ */ __name(async (output, context) => {
1134
+ if (output.statusCode >= 300) {
1135
+ return de_CommandError(output, context);
1985
1136
  }
1986
- }, "de_UpdateFirewallDeleteProtectionCommandError");
1137
+ const data = await parseBody(output.body, context);
1138
+ let contents = {};
1139
+ contents = (0, import_smithy_client._json)(data);
1140
+ const response = {
1141
+ $metadata: deserializeMetadata(output),
1142
+ ...contents
1143
+ };
1144
+ return response;
1145
+ }, "de_UpdateFirewallDeleteProtectionCommand");
1987
1146
  var de_UpdateFirewallDescriptionCommand = /* @__PURE__ */ __name(async (output, context) => {
1988
1147
  if (output.statusCode >= 300) {
1989
- return de_UpdateFirewallDescriptionCommandError(output, context);
1148
+ return de_CommandError(output, context);
1990
1149
  }
1991
1150
  const data = await parseBody(output.body, context);
1992
1151
  let contents = {};
@@ -1997,40 +1156,9 @@ var de_UpdateFirewallDescriptionCommand = /* @__PURE__ */ __name(async (output,
1997
1156
  };
1998
1157
  return response;
1999
1158
  }, "de_UpdateFirewallDescriptionCommand");
2000
- var de_UpdateFirewallDescriptionCommandError = /* @__PURE__ */ __name(async (output, context) => {
2001
- const parsedOutput = {
2002
- ...output,
2003
- body: await parseErrorBody(output.body, context)
2004
- };
2005
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2006
- switch (errorCode) {
2007
- case "InternalServerError":
2008
- case "com.amazonaws.networkfirewall#InternalServerError":
2009
- throw await de_InternalServerErrorRes(parsedOutput, context);
2010
- case "InvalidRequestException":
2011
- case "com.amazonaws.networkfirewall#InvalidRequestException":
2012
- throw await de_InvalidRequestExceptionRes(parsedOutput, context);
2013
- case "InvalidTokenException":
2014
- case "com.amazonaws.networkfirewall#InvalidTokenException":
2015
- throw await de_InvalidTokenExceptionRes(parsedOutput, context);
2016
- case "ResourceNotFoundException":
2017
- case "com.amazonaws.networkfirewall#ResourceNotFoundException":
2018
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
2019
- case "ThrottlingException":
2020
- case "com.amazonaws.networkfirewall#ThrottlingException":
2021
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
2022
- default:
2023
- const parsedBody = parsedOutput.body;
2024
- return throwDefaultError({
2025
- output,
2026
- parsedBody,
2027
- errorCode
2028
- });
2029
- }
2030
- }, "de_UpdateFirewallDescriptionCommandError");
2031
1159
  var de_UpdateFirewallEncryptionConfigurationCommand = /* @__PURE__ */ __name(async (output, context) => {
2032
1160
  if (output.statusCode >= 300) {
2033
- return de_UpdateFirewallEncryptionConfigurationCommandError(output, context);
1161
+ return de_CommandError(output, context);
2034
1162
  }
2035
1163
  const data = await parseBody(output.body, context);
2036
1164
  let contents = {};
@@ -2041,43 +1169,9 @@ var de_UpdateFirewallEncryptionConfigurationCommand = /* @__PURE__ */ __name(asy
2041
1169
  };
2042
1170
  return response;
2043
1171
  }, "de_UpdateFirewallEncryptionConfigurationCommand");
2044
- var de_UpdateFirewallEncryptionConfigurationCommandError = /* @__PURE__ */ __name(async (output, context) => {
2045
- const parsedOutput = {
2046
- ...output,
2047
- body: await parseErrorBody(output.body, context)
2048
- };
2049
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2050
- switch (errorCode) {
2051
- case "InternalServerError":
2052
- case "com.amazonaws.networkfirewall#InternalServerError":
2053
- throw await de_InternalServerErrorRes(parsedOutput, context);
2054
- case "InvalidRequestException":
2055
- case "com.amazonaws.networkfirewall#InvalidRequestException":
2056
- throw await de_InvalidRequestExceptionRes(parsedOutput, context);
2057
- case "InvalidTokenException":
2058
- case "com.amazonaws.networkfirewall#InvalidTokenException":
2059
- throw await de_InvalidTokenExceptionRes(parsedOutput, context);
2060
- case "ResourceNotFoundException":
2061
- case "com.amazonaws.networkfirewall#ResourceNotFoundException":
2062
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
2063
- case "ResourceOwnerCheckException":
2064
- case "com.amazonaws.networkfirewall#ResourceOwnerCheckException":
2065
- throw await de_ResourceOwnerCheckExceptionRes(parsedOutput, context);
2066
- case "ThrottlingException":
2067
- case "com.amazonaws.networkfirewall#ThrottlingException":
2068
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
2069
- default:
2070
- const parsedBody = parsedOutput.body;
2071
- return throwDefaultError({
2072
- output,
2073
- parsedBody,
2074
- errorCode
2075
- });
2076
- }
2077
- }, "de_UpdateFirewallEncryptionConfigurationCommandError");
2078
1172
  var de_UpdateFirewallPolicyCommand = /* @__PURE__ */ __name(async (output, context) => {
2079
1173
  if (output.statusCode >= 300) {
2080
- return de_UpdateFirewallPolicyCommandError(output, context);
1174
+ return de_CommandError(output, context);
2081
1175
  }
2082
1176
  const data = await parseBody(output.body, context);
2083
1177
  let contents = {};
@@ -2088,40 +1182,9 @@ var de_UpdateFirewallPolicyCommand = /* @__PURE__ */ __name(async (output, conte
2088
1182
  };
2089
1183
  return response;
2090
1184
  }, "de_UpdateFirewallPolicyCommand");
2091
- var de_UpdateFirewallPolicyCommandError = /* @__PURE__ */ __name(async (output, context) => {
2092
- const parsedOutput = {
2093
- ...output,
2094
- body: await parseErrorBody(output.body, context)
2095
- };
2096
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2097
- switch (errorCode) {
2098
- case "InternalServerError":
2099
- case "com.amazonaws.networkfirewall#InternalServerError":
2100
- throw await de_InternalServerErrorRes(parsedOutput, context);
2101
- case "InvalidRequestException":
2102
- case "com.amazonaws.networkfirewall#InvalidRequestException":
2103
- throw await de_InvalidRequestExceptionRes(parsedOutput, context);
2104
- case "InvalidTokenException":
2105
- case "com.amazonaws.networkfirewall#InvalidTokenException":
2106
- throw await de_InvalidTokenExceptionRes(parsedOutput, context);
2107
- case "ResourceNotFoundException":
2108
- case "com.amazonaws.networkfirewall#ResourceNotFoundException":
2109
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
2110
- case "ThrottlingException":
2111
- case "com.amazonaws.networkfirewall#ThrottlingException":
2112
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
2113
- default:
2114
- const parsedBody = parsedOutput.body;
2115
- return throwDefaultError({
2116
- output,
2117
- parsedBody,
2118
- errorCode
2119
- });
2120
- }
2121
- }, "de_UpdateFirewallPolicyCommandError");
2122
1185
  var de_UpdateFirewallPolicyChangeProtectionCommand = /* @__PURE__ */ __name(async (output, context) => {
2123
1186
  if (output.statusCode >= 300) {
2124
- return de_UpdateFirewallPolicyChangeProtectionCommandError(output, context);
1187
+ return de_CommandError(output, context);
2125
1188
  }
2126
1189
  const data = await parseBody(output.body, context);
2127
1190
  let contents = {};
@@ -2132,43 +1195,9 @@ var de_UpdateFirewallPolicyChangeProtectionCommand = /* @__PURE__ */ __name(asyn
2132
1195
  };
2133
1196
  return response;
2134
1197
  }, "de_UpdateFirewallPolicyChangeProtectionCommand");
2135
- var de_UpdateFirewallPolicyChangeProtectionCommandError = /* @__PURE__ */ __name(async (output, context) => {
2136
- const parsedOutput = {
2137
- ...output,
2138
- body: await parseErrorBody(output.body, context)
2139
- };
2140
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2141
- switch (errorCode) {
2142
- case "InternalServerError":
2143
- case "com.amazonaws.networkfirewall#InternalServerError":
2144
- throw await de_InternalServerErrorRes(parsedOutput, context);
2145
- case "InvalidRequestException":
2146
- case "com.amazonaws.networkfirewall#InvalidRequestException":
2147
- throw await de_InvalidRequestExceptionRes(parsedOutput, context);
2148
- case "InvalidTokenException":
2149
- case "com.amazonaws.networkfirewall#InvalidTokenException":
2150
- throw await de_InvalidTokenExceptionRes(parsedOutput, context);
2151
- case "ResourceNotFoundException":
2152
- case "com.amazonaws.networkfirewall#ResourceNotFoundException":
2153
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
2154
- case "ResourceOwnerCheckException":
2155
- case "com.amazonaws.networkfirewall#ResourceOwnerCheckException":
2156
- throw await de_ResourceOwnerCheckExceptionRes(parsedOutput, context);
2157
- case "ThrottlingException":
2158
- case "com.amazonaws.networkfirewall#ThrottlingException":
2159
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
2160
- default:
2161
- const parsedBody = parsedOutput.body;
2162
- return throwDefaultError({
2163
- output,
2164
- parsedBody,
2165
- errorCode
2166
- });
2167
- }
2168
- }, "de_UpdateFirewallPolicyChangeProtectionCommandError");
2169
1198
  var de_UpdateLoggingConfigurationCommand = /* @__PURE__ */ __name(async (output, context) => {
2170
1199
  if (output.statusCode >= 300) {
2171
- return de_UpdateLoggingConfigurationCommandError(output, context);
1200
+ return de_CommandError(output, context);
2172
1201
  }
2173
1202
  const data = await parseBody(output.body, context);
2174
1203
  let contents = {};
@@ -2179,43 +1208,9 @@ var de_UpdateLoggingConfigurationCommand = /* @__PURE__ */ __name(async (output,
2179
1208
  };
2180
1209
  return response;
2181
1210
  }, "de_UpdateLoggingConfigurationCommand");
2182
- var de_UpdateLoggingConfigurationCommandError = /* @__PURE__ */ __name(async (output, context) => {
2183
- const parsedOutput = {
2184
- ...output,
2185
- body: await parseErrorBody(output.body, context)
2186
- };
2187
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2188
- switch (errorCode) {
2189
- case "InternalServerError":
2190
- case "com.amazonaws.networkfirewall#InternalServerError":
2191
- throw await de_InternalServerErrorRes(parsedOutput, context);
2192
- case "InvalidRequestException":
2193
- case "com.amazonaws.networkfirewall#InvalidRequestException":
2194
- throw await de_InvalidRequestExceptionRes(parsedOutput, context);
2195
- case "InvalidTokenException":
2196
- case "com.amazonaws.networkfirewall#InvalidTokenException":
2197
- throw await de_InvalidTokenExceptionRes(parsedOutput, context);
2198
- case "LogDestinationPermissionException":
2199
- case "com.amazonaws.networkfirewall#LogDestinationPermissionException":
2200
- throw await de_LogDestinationPermissionExceptionRes(parsedOutput, context);
2201
- case "ResourceNotFoundException":
2202
- case "com.amazonaws.networkfirewall#ResourceNotFoundException":
2203
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
2204
- case "ThrottlingException":
2205
- case "com.amazonaws.networkfirewall#ThrottlingException":
2206
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
2207
- default:
2208
- const parsedBody = parsedOutput.body;
2209
- return throwDefaultError({
2210
- output,
2211
- parsedBody,
2212
- errorCode
2213
- });
2214
- }
2215
- }, "de_UpdateLoggingConfigurationCommandError");
2216
1211
  var de_UpdateRuleGroupCommand = /* @__PURE__ */ __name(async (output, context) => {
2217
1212
  if (output.statusCode >= 300) {
2218
- return de_UpdateRuleGroupCommandError(output, context);
1213
+ return de_CommandError(output, context);
2219
1214
  }
2220
1215
  const data = await parseBody(output.body, context);
2221
1216
  let contents = {};
@@ -2226,40 +1221,9 @@ var de_UpdateRuleGroupCommand = /* @__PURE__ */ __name(async (output, context) =
2226
1221
  };
2227
1222
  return response;
2228
1223
  }, "de_UpdateRuleGroupCommand");
2229
- var de_UpdateRuleGroupCommandError = /* @__PURE__ */ __name(async (output, context) => {
2230
- const parsedOutput = {
2231
- ...output,
2232
- body: await parseErrorBody(output.body, context)
2233
- };
2234
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2235
- switch (errorCode) {
2236
- case "InternalServerError":
2237
- case "com.amazonaws.networkfirewall#InternalServerError":
2238
- throw await de_InternalServerErrorRes(parsedOutput, context);
2239
- case "InvalidRequestException":
2240
- case "com.amazonaws.networkfirewall#InvalidRequestException":
2241
- throw await de_InvalidRequestExceptionRes(parsedOutput, context);
2242
- case "InvalidTokenException":
2243
- case "com.amazonaws.networkfirewall#InvalidTokenException":
2244
- throw await de_InvalidTokenExceptionRes(parsedOutput, context);
2245
- case "ResourceNotFoundException":
2246
- case "com.amazonaws.networkfirewall#ResourceNotFoundException":
2247
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
2248
- case "ThrottlingException":
2249
- case "com.amazonaws.networkfirewall#ThrottlingException":
2250
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
2251
- default:
2252
- const parsedBody = parsedOutput.body;
2253
- return throwDefaultError({
2254
- output,
2255
- parsedBody,
2256
- errorCode
2257
- });
2258
- }
2259
- }, "de_UpdateRuleGroupCommandError");
2260
1224
  var de_UpdateSubnetChangeProtectionCommand = /* @__PURE__ */ __name(async (output, context) => {
2261
1225
  if (output.statusCode >= 300) {
2262
- return de_UpdateSubnetChangeProtectionCommandError(output, context);
1226
+ return de_CommandError(output, context);
2263
1227
  }
2264
1228
  const data = await parseBody(output.body, context);
2265
1229
  let contents = {};
@@ -2270,43 +1234,9 @@ var de_UpdateSubnetChangeProtectionCommand = /* @__PURE__ */ __name(async (outpu
2270
1234
  };
2271
1235
  return response;
2272
1236
  }, "de_UpdateSubnetChangeProtectionCommand");
2273
- var de_UpdateSubnetChangeProtectionCommandError = /* @__PURE__ */ __name(async (output, context) => {
2274
- const parsedOutput = {
2275
- ...output,
2276
- body: await parseErrorBody(output.body, context)
2277
- };
2278
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2279
- switch (errorCode) {
2280
- case "InternalServerError":
2281
- case "com.amazonaws.networkfirewall#InternalServerError":
2282
- throw await de_InternalServerErrorRes(parsedOutput, context);
2283
- case "InvalidRequestException":
2284
- case "com.amazonaws.networkfirewall#InvalidRequestException":
2285
- throw await de_InvalidRequestExceptionRes(parsedOutput, context);
2286
- case "InvalidTokenException":
2287
- case "com.amazonaws.networkfirewall#InvalidTokenException":
2288
- throw await de_InvalidTokenExceptionRes(parsedOutput, context);
2289
- case "ResourceNotFoundException":
2290
- case "com.amazonaws.networkfirewall#ResourceNotFoundException":
2291
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
2292
- case "ResourceOwnerCheckException":
2293
- case "com.amazonaws.networkfirewall#ResourceOwnerCheckException":
2294
- throw await de_ResourceOwnerCheckExceptionRes(parsedOutput, context);
2295
- case "ThrottlingException":
2296
- case "com.amazonaws.networkfirewall#ThrottlingException":
2297
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
2298
- default:
2299
- const parsedBody = parsedOutput.body;
2300
- return throwDefaultError({
2301
- output,
2302
- parsedBody,
2303
- errorCode
2304
- });
2305
- }
2306
- }, "de_UpdateSubnetChangeProtectionCommandError");
2307
1237
  var de_UpdateTLSInspectionConfigurationCommand = /* @__PURE__ */ __name(async (output, context) => {
2308
1238
  if (output.statusCode >= 300) {
2309
- return de_UpdateTLSInspectionConfigurationCommandError(output, context);
1239
+ return de_CommandError(output, context);
2310
1240
  }
2311
1241
  const data = await parseBody(output.body, context);
2312
1242
  let contents = {};
@@ -2317,7 +1247,7 @@ var de_UpdateTLSInspectionConfigurationCommand = /* @__PURE__ */ __name(async (o
2317
1247
  };
2318
1248
  return response;
2319
1249
  }, "de_UpdateTLSInspectionConfigurationCommand");
2320
- var de_UpdateTLSInspectionConfigurationCommandError = /* @__PURE__ */ __name(async (output, context) => {
1250
+ var de_CommandError = /* @__PURE__ */ __name(async (output, context) => {
2321
1251
  const parsedOutput = {
2322
1252
  ...output,
2323
1253
  body: await parseErrorBody(output.body, context)
@@ -2327,6 +1257,9 @@ var de_UpdateTLSInspectionConfigurationCommandError = /* @__PURE__ */ __name(asy
2327
1257
  case "InternalServerError":
2328
1258
  case "com.amazonaws.networkfirewall#InternalServerError":
2329
1259
  throw await de_InternalServerErrorRes(parsedOutput, context);
1260
+ case "InvalidOperationException":
1261
+ case "com.amazonaws.networkfirewall#InvalidOperationException":
1262
+ throw await de_InvalidOperationExceptionRes(parsedOutput, context);
2330
1263
  case "InvalidRequestException":
2331
1264
  case "com.amazonaws.networkfirewall#InvalidRequestException":
2332
1265
  throw await de_InvalidRequestExceptionRes(parsedOutput, context);
@@ -2339,6 +1272,24 @@ var de_UpdateTLSInspectionConfigurationCommandError = /* @__PURE__ */ __name(asy
2339
1272
  case "ThrottlingException":
2340
1273
  case "com.amazonaws.networkfirewall#ThrottlingException":
2341
1274
  throw await de_ThrottlingExceptionRes(parsedOutput, context);
1275
+ case "InsufficientCapacityException":
1276
+ case "com.amazonaws.networkfirewall#InsufficientCapacityException":
1277
+ throw await de_InsufficientCapacityExceptionRes(parsedOutput, context);
1278
+ case "LimitExceededException":
1279
+ case "com.amazonaws.networkfirewall#LimitExceededException":
1280
+ throw await de_LimitExceededExceptionRes(parsedOutput, context);
1281
+ case "UnsupportedOperationException":
1282
+ case "com.amazonaws.networkfirewall#UnsupportedOperationException":
1283
+ throw await de_UnsupportedOperationExceptionRes(parsedOutput, context);
1284
+ case "InvalidResourcePolicyException":
1285
+ case "com.amazonaws.networkfirewall#InvalidResourcePolicyException":
1286
+ throw await de_InvalidResourcePolicyExceptionRes(parsedOutput, context);
1287
+ case "ResourceOwnerCheckException":
1288
+ case "com.amazonaws.networkfirewall#ResourceOwnerCheckException":
1289
+ throw await de_ResourceOwnerCheckExceptionRes(parsedOutput, context);
1290
+ case "LogDestinationPermissionException":
1291
+ case "com.amazonaws.networkfirewall#LogDestinationPermissionException":
1292
+ throw await de_LogDestinationPermissionExceptionRes(parsedOutput, context);
2342
1293
  default:
2343
1294
  const parsedBody = parsedOutput.body;
2344
1295
  return throwDefaultError({
@@ -2347,7 +1298,7 @@ var de_UpdateTLSInspectionConfigurationCommandError = /* @__PURE__ */ __name(asy
2347
1298
  errorCode
2348
1299
  });
2349
1300
  }
2350
- }, "de_UpdateTLSInspectionConfigurationCommandError");
1301
+ }, "de_CommandError");
2351
1302
  var de_InsufficientCapacityExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
2352
1303
  const body = parsedOutput.body;
2353
1304
  const deserialized = (0, import_smithy_client._json)(body);