@aws-sdk/client-acm-pca 3.503.1 → 3.507.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist-cjs/index.js CHANGED
@@ -772,7 +772,7 @@ var se_UpdateCertificateAuthorityCommand = /* @__PURE__ */ __name(async (input,
772
772
  }, "se_UpdateCertificateAuthorityCommand");
773
773
  var de_CreateCertificateAuthorityCommand = /* @__PURE__ */ __name(async (output, context) => {
774
774
  if (output.statusCode >= 300) {
775
- return de_CreateCertificateAuthorityCommandError(output, context);
775
+ return de_CommandError(output, context);
776
776
  }
777
777
  const data = await parseBody(output.body, context);
778
778
  let contents = {};
@@ -783,37 +783,9 @@ var de_CreateCertificateAuthorityCommand = /* @__PURE__ */ __name(async (output,
783
783
  };
784
784
  return response;
785
785
  }, "de_CreateCertificateAuthorityCommand");
786
- var de_CreateCertificateAuthorityCommandError = /* @__PURE__ */ __name(async (output, context) => {
787
- const parsedOutput = {
788
- ...output,
789
- body: await parseErrorBody(output.body, context)
790
- };
791
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
792
- switch (errorCode) {
793
- case "InvalidArgsException":
794
- case "com.amazonaws.acmpca#InvalidArgsException":
795
- throw await de_InvalidArgsExceptionRes(parsedOutput, context);
796
- case "InvalidPolicyException":
797
- case "com.amazonaws.acmpca#InvalidPolicyException":
798
- throw await de_InvalidPolicyExceptionRes(parsedOutput, context);
799
- case "InvalidTagException":
800
- case "com.amazonaws.acmpca#InvalidTagException":
801
- throw await de_InvalidTagExceptionRes(parsedOutput, context);
802
- case "LimitExceededException":
803
- case "com.amazonaws.acmpca#LimitExceededException":
804
- throw await de_LimitExceededExceptionRes(parsedOutput, context);
805
- default:
806
- const parsedBody = parsedOutput.body;
807
- return throwDefaultError({
808
- output,
809
- parsedBody,
810
- errorCode
811
- });
812
- }
813
- }, "de_CreateCertificateAuthorityCommandError");
814
786
  var de_CreateCertificateAuthorityAuditReportCommand = /* @__PURE__ */ __name(async (output, context) => {
815
787
  if (output.statusCode >= 300) {
816
- return de_CreateCertificateAuthorityAuditReportCommandError(output, context);
788
+ return de_CommandError(output, context);
817
789
  }
818
790
  const data = await parseBody(output.body, context);
819
791
  let contents = {};
@@ -824,43 +796,9 @@ var de_CreateCertificateAuthorityAuditReportCommand = /* @__PURE__ */ __name(asy
824
796
  };
825
797
  return response;
826
798
  }, "de_CreateCertificateAuthorityAuditReportCommand");
827
- var de_CreateCertificateAuthorityAuditReportCommandError = /* @__PURE__ */ __name(async (output, context) => {
828
- const parsedOutput = {
829
- ...output,
830
- body: await parseErrorBody(output.body, context)
831
- };
832
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
833
- switch (errorCode) {
834
- case "InvalidArgsException":
835
- case "com.amazonaws.acmpca#InvalidArgsException":
836
- throw await de_InvalidArgsExceptionRes(parsedOutput, context);
837
- case "InvalidArnException":
838
- case "com.amazonaws.acmpca#InvalidArnException":
839
- throw await de_InvalidArnExceptionRes(parsedOutput, context);
840
- case "InvalidStateException":
841
- case "com.amazonaws.acmpca#InvalidStateException":
842
- throw await de_InvalidStateExceptionRes(parsedOutput, context);
843
- case "RequestFailedException":
844
- case "com.amazonaws.acmpca#RequestFailedException":
845
- throw await de_RequestFailedExceptionRes(parsedOutput, context);
846
- case "RequestInProgressException":
847
- case "com.amazonaws.acmpca#RequestInProgressException":
848
- throw await de_RequestInProgressExceptionRes(parsedOutput, context);
849
- case "ResourceNotFoundException":
850
- case "com.amazonaws.acmpca#ResourceNotFoundException":
851
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
852
- default:
853
- const parsedBody = parsedOutput.body;
854
- return throwDefaultError({
855
- output,
856
- parsedBody,
857
- errorCode
858
- });
859
- }
860
- }, "de_CreateCertificateAuthorityAuditReportCommandError");
861
799
  var de_CreatePermissionCommand = /* @__PURE__ */ __name(async (output, context) => {
862
800
  if (output.statusCode >= 300) {
863
- return de_CreatePermissionCommandError(output, context);
801
+ return de_CommandError(output, context);
864
802
  }
865
803
  await (0, import_smithy_client.collectBody)(output.body, context);
866
804
  const response = {
@@ -868,43 +806,9 @@ var de_CreatePermissionCommand = /* @__PURE__ */ __name(async (output, context)
868
806
  };
869
807
  return response;
870
808
  }, "de_CreatePermissionCommand");
871
- var de_CreatePermissionCommandError = /* @__PURE__ */ __name(async (output, context) => {
872
- const parsedOutput = {
873
- ...output,
874
- body: await parseErrorBody(output.body, context)
875
- };
876
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
877
- switch (errorCode) {
878
- case "InvalidArnException":
879
- case "com.amazonaws.acmpca#InvalidArnException":
880
- throw await de_InvalidArnExceptionRes(parsedOutput, context);
881
- case "InvalidStateException":
882
- case "com.amazonaws.acmpca#InvalidStateException":
883
- throw await de_InvalidStateExceptionRes(parsedOutput, context);
884
- case "LimitExceededException":
885
- case "com.amazonaws.acmpca#LimitExceededException":
886
- throw await de_LimitExceededExceptionRes(parsedOutput, context);
887
- case "PermissionAlreadyExistsException":
888
- case "com.amazonaws.acmpca#PermissionAlreadyExistsException":
889
- throw await de_PermissionAlreadyExistsExceptionRes(parsedOutput, context);
890
- case "RequestFailedException":
891
- case "com.amazonaws.acmpca#RequestFailedException":
892
- throw await de_RequestFailedExceptionRes(parsedOutput, context);
893
- case "ResourceNotFoundException":
894
- case "com.amazonaws.acmpca#ResourceNotFoundException":
895
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
896
- default:
897
- const parsedBody = parsedOutput.body;
898
- return throwDefaultError({
899
- output,
900
- parsedBody,
901
- errorCode
902
- });
903
- }
904
- }, "de_CreatePermissionCommandError");
905
809
  var de_DeleteCertificateAuthorityCommand = /* @__PURE__ */ __name(async (output, context) => {
906
810
  if (output.statusCode >= 300) {
907
- return de_DeleteCertificateAuthorityCommandError(output, context);
811
+ return de_CommandError(output, context);
908
812
  }
909
813
  await (0, import_smithy_client.collectBody)(output.body, context);
910
814
  const response = {
@@ -912,37 +816,9 @@ var de_DeleteCertificateAuthorityCommand = /* @__PURE__ */ __name(async (output,
912
816
  };
913
817
  return response;
914
818
  }, "de_DeleteCertificateAuthorityCommand");
915
- var de_DeleteCertificateAuthorityCommandError = /* @__PURE__ */ __name(async (output, context) => {
916
- const parsedOutput = {
917
- ...output,
918
- body: await parseErrorBody(output.body, context)
919
- };
920
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
921
- switch (errorCode) {
922
- case "ConcurrentModificationException":
923
- case "com.amazonaws.acmpca#ConcurrentModificationException":
924
- throw await de_ConcurrentModificationExceptionRes(parsedOutput, context);
925
- case "InvalidArnException":
926
- case "com.amazonaws.acmpca#InvalidArnException":
927
- throw await de_InvalidArnExceptionRes(parsedOutput, context);
928
- case "InvalidStateException":
929
- case "com.amazonaws.acmpca#InvalidStateException":
930
- throw await de_InvalidStateExceptionRes(parsedOutput, context);
931
- case "ResourceNotFoundException":
932
- case "com.amazonaws.acmpca#ResourceNotFoundException":
933
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
934
- default:
935
- const parsedBody = parsedOutput.body;
936
- return throwDefaultError({
937
- output,
938
- parsedBody,
939
- errorCode
940
- });
941
- }
942
- }, "de_DeleteCertificateAuthorityCommandError");
943
819
  var de_DeletePermissionCommand = /* @__PURE__ */ __name(async (output, context) => {
944
820
  if (output.statusCode >= 300) {
945
- return de_DeletePermissionCommandError(output, context);
821
+ return de_CommandError(output, context);
946
822
  }
947
823
  await (0, import_smithy_client.collectBody)(output.body, context);
948
824
  const response = {
@@ -950,37 +826,9 @@ var de_DeletePermissionCommand = /* @__PURE__ */ __name(async (output, context)
950
826
  };
951
827
  return response;
952
828
  }, "de_DeletePermissionCommand");
953
- var de_DeletePermissionCommandError = /* @__PURE__ */ __name(async (output, context) => {
954
- const parsedOutput = {
955
- ...output,
956
- body: await parseErrorBody(output.body, context)
957
- };
958
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
959
- switch (errorCode) {
960
- case "InvalidArnException":
961
- case "com.amazonaws.acmpca#InvalidArnException":
962
- throw await de_InvalidArnExceptionRes(parsedOutput, context);
963
- case "InvalidStateException":
964
- case "com.amazonaws.acmpca#InvalidStateException":
965
- throw await de_InvalidStateExceptionRes(parsedOutput, context);
966
- case "RequestFailedException":
967
- case "com.amazonaws.acmpca#RequestFailedException":
968
- throw await de_RequestFailedExceptionRes(parsedOutput, context);
969
- case "ResourceNotFoundException":
970
- case "com.amazonaws.acmpca#ResourceNotFoundException":
971
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
972
- default:
973
- const parsedBody = parsedOutput.body;
974
- return throwDefaultError({
975
- output,
976
- parsedBody,
977
- errorCode
978
- });
979
- }
980
- }, "de_DeletePermissionCommandError");
981
829
  var de_DeletePolicyCommand = /* @__PURE__ */ __name(async (output, context) => {
982
830
  if (output.statusCode >= 300) {
983
- return de_DeletePolicyCommandError(output, context);
831
+ return de_CommandError(output, context);
984
832
  }
985
833
  await (0, import_smithy_client.collectBody)(output.body, context);
986
834
  const response = {
@@ -988,43 +836,9 @@ var de_DeletePolicyCommand = /* @__PURE__ */ __name(async (output, context) => {
988
836
  };
989
837
  return response;
990
838
  }, "de_DeletePolicyCommand");
991
- var de_DeletePolicyCommandError = /* @__PURE__ */ __name(async (output, context) => {
992
- const parsedOutput = {
993
- ...output,
994
- body: await parseErrorBody(output.body, context)
995
- };
996
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
997
- switch (errorCode) {
998
- case "ConcurrentModificationException":
999
- case "com.amazonaws.acmpca#ConcurrentModificationException":
1000
- throw await de_ConcurrentModificationExceptionRes(parsedOutput, context);
1001
- case "InvalidArnException":
1002
- case "com.amazonaws.acmpca#InvalidArnException":
1003
- throw await de_InvalidArnExceptionRes(parsedOutput, context);
1004
- case "InvalidStateException":
1005
- case "com.amazonaws.acmpca#InvalidStateException":
1006
- throw await de_InvalidStateExceptionRes(parsedOutput, context);
1007
- case "LockoutPreventedException":
1008
- case "com.amazonaws.acmpca#LockoutPreventedException":
1009
- throw await de_LockoutPreventedExceptionRes(parsedOutput, context);
1010
- case "RequestFailedException":
1011
- case "com.amazonaws.acmpca#RequestFailedException":
1012
- throw await de_RequestFailedExceptionRes(parsedOutput, context);
1013
- case "ResourceNotFoundException":
1014
- case "com.amazonaws.acmpca#ResourceNotFoundException":
1015
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1016
- default:
1017
- const parsedBody = parsedOutput.body;
1018
- return throwDefaultError({
1019
- output,
1020
- parsedBody,
1021
- errorCode
1022
- });
1023
- }
1024
- }, "de_DeletePolicyCommandError");
1025
839
  var de_DescribeCertificateAuthorityCommand = /* @__PURE__ */ __name(async (output, context) => {
1026
840
  if (output.statusCode >= 300) {
1027
- return de_DescribeCertificateAuthorityCommandError(output, context);
841
+ return de_CommandError(output, context);
1028
842
  }
1029
843
  const data = await parseBody(output.body, context);
1030
844
  let contents = {};
@@ -1035,31 +849,9 @@ var de_DescribeCertificateAuthorityCommand = /* @__PURE__ */ __name(async (outpu
1035
849
  };
1036
850
  return response;
1037
851
  }, "de_DescribeCertificateAuthorityCommand");
1038
- var de_DescribeCertificateAuthorityCommandError = /* @__PURE__ */ __name(async (output, context) => {
1039
- const parsedOutput = {
1040
- ...output,
1041
- body: await parseErrorBody(output.body, context)
1042
- };
1043
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1044
- switch (errorCode) {
1045
- case "InvalidArnException":
1046
- case "com.amazonaws.acmpca#InvalidArnException":
1047
- throw await de_InvalidArnExceptionRes(parsedOutput, context);
1048
- case "ResourceNotFoundException":
1049
- case "com.amazonaws.acmpca#ResourceNotFoundException":
1050
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1051
- default:
1052
- const parsedBody = parsedOutput.body;
1053
- return throwDefaultError({
1054
- output,
1055
- parsedBody,
1056
- errorCode
1057
- });
1058
- }
1059
- }, "de_DescribeCertificateAuthorityCommandError");
1060
852
  var de_DescribeCertificateAuthorityAuditReportCommand = /* @__PURE__ */ __name(async (output, context) => {
1061
853
  if (output.statusCode >= 300) {
1062
- return de_DescribeCertificateAuthorityAuditReportCommandError(output, context);
854
+ return de_CommandError(output, context);
1063
855
  }
1064
856
  const data = await parseBody(output.body, context);
1065
857
  let contents = {};
@@ -1070,34 +862,9 @@ var de_DescribeCertificateAuthorityAuditReportCommand = /* @__PURE__ */ __name(a
1070
862
  };
1071
863
  return response;
1072
864
  }, "de_DescribeCertificateAuthorityAuditReportCommand");
1073
- var de_DescribeCertificateAuthorityAuditReportCommandError = /* @__PURE__ */ __name(async (output, context) => {
1074
- const parsedOutput = {
1075
- ...output,
1076
- body: await parseErrorBody(output.body, context)
1077
- };
1078
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1079
- switch (errorCode) {
1080
- case "InvalidArgsException":
1081
- case "com.amazonaws.acmpca#InvalidArgsException":
1082
- throw await de_InvalidArgsExceptionRes(parsedOutput, context);
1083
- case "InvalidArnException":
1084
- case "com.amazonaws.acmpca#InvalidArnException":
1085
- throw await de_InvalidArnExceptionRes(parsedOutput, context);
1086
- case "ResourceNotFoundException":
1087
- case "com.amazonaws.acmpca#ResourceNotFoundException":
1088
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1089
- default:
1090
- const parsedBody = parsedOutput.body;
1091
- return throwDefaultError({
1092
- output,
1093
- parsedBody,
1094
- errorCode
1095
- });
1096
- }
1097
- }, "de_DescribeCertificateAuthorityAuditReportCommandError");
1098
865
  var de_GetCertificateCommand = /* @__PURE__ */ __name(async (output, context) => {
1099
866
  if (output.statusCode >= 300) {
1100
- return de_GetCertificateCommandError(output, context);
867
+ return de_CommandError(output, context);
1101
868
  }
1102
869
  const data = await parseBody(output.body, context);
1103
870
  let contents = {};
@@ -1108,40 +875,9 @@ var de_GetCertificateCommand = /* @__PURE__ */ __name(async (output, context) =>
1108
875
  };
1109
876
  return response;
1110
877
  }, "de_GetCertificateCommand");
1111
- var de_GetCertificateCommandError = /* @__PURE__ */ __name(async (output, context) => {
1112
- const parsedOutput = {
1113
- ...output,
1114
- body: await parseErrorBody(output.body, context)
1115
- };
1116
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1117
- switch (errorCode) {
1118
- case "InvalidArnException":
1119
- case "com.amazonaws.acmpca#InvalidArnException":
1120
- throw await de_InvalidArnExceptionRes(parsedOutput, context);
1121
- case "InvalidStateException":
1122
- case "com.amazonaws.acmpca#InvalidStateException":
1123
- throw await de_InvalidStateExceptionRes(parsedOutput, context);
1124
- case "RequestFailedException":
1125
- case "com.amazonaws.acmpca#RequestFailedException":
1126
- throw await de_RequestFailedExceptionRes(parsedOutput, context);
1127
- case "RequestInProgressException":
1128
- case "com.amazonaws.acmpca#RequestInProgressException":
1129
- throw await de_RequestInProgressExceptionRes(parsedOutput, context);
1130
- case "ResourceNotFoundException":
1131
- case "com.amazonaws.acmpca#ResourceNotFoundException":
1132
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1133
- default:
1134
- const parsedBody = parsedOutput.body;
1135
- return throwDefaultError({
1136
- output,
1137
- parsedBody,
1138
- errorCode
1139
- });
1140
- }
1141
- }, "de_GetCertificateCommandError");
1142
878
  var de_GetCertificateAuthorityCertificateCommand = /* @__PURE__ */ __name(async (output, context) => {
1143
879
  if (output.statusCode >= 300) {
1144
- return de_GetCertificateAuthorityCertificateCommandError(output, context);
880
+ return de_CommandError(output, context);
1145
881
  }
1146
882
  const data = await parseBody(output.body, context);
1147
883
  let contents = {};
@@ -1152,34 +888,9 @@ var de_GetCertificateAuthorityCertificateCommand = /* @__PURE__ */ __name(async
1152
888
  };
1153
889
  return response;
1154
890
  }, "de_GetCertificateAuthorityCertificateCommand");
1155
- var de_GetCertificateAuthorityCertificateCommandError = /* @__PURE__ */ __name(async (output, context) => {
1156
- const parsedOutput = {
1157
- ...output,
1158
- body: await parseErrorBody(output.body, context)
1159
- };
1160
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1161
- switch (errorCode) {
1162
- case "InvalidArnException":
1163
- case "com.amazonaws.acmpca#InvalidArnException":
1164
- throw await de_InvalidArnExceptionRes(parsedOutput, context);
1165
- case "InvalidStateException":
1166
- case "com.amazonaws.acmpca#InvalidStateException":
1167
- throw await de_InvalidStateExceptionRes(parsedOutput, context);
1168
- case "ResourceNotFoundException":
1169
- case "com.amazonaws.acmpca#ResourceNotFoundException":
1170
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1171
- default:
1172
- const parsedBody = parsedOutput.body;
1173
- return throwDefaultError({
1174
- output,
1175
- parsedBody,
1176
- errorCode
1177
- });
1178
- }
1179
- }, "de_GetCertificateAuthorityCertificateCommandError");
1180
891
  var de_GetCertificateAuthorityCsrCommand = /* @__PURE__ */ __name(async (output, context) => {
1181
892
  if (output.statusCode >= 300) {
1182
- return de_GetCertificateAuthorityCsrCommandError(output, context);
893
+ return de_CommandError(output, context);
1183
894
  }
1184
895
  const data = await parseBody(output.body, context);
1185
896
  let contents = {};
@@ -1190,40 +901,9 @@ var de_GetCertificateAuthorityCsrCommand = /* @__PURE__ */ __name(async (output,
1190
901
  };
1191
902
  return response;
1192
903
  }, "de_GetCertificateAuthorityCsrCommand");
1193
- var de_GetCertificateAuthorityCsrCommandError = /* @__PURE__ */ __name(async (output, context) => {
1194
- const parsedOutput = {
1195
- ...output,
1196
- body: await parseErrorBody(output.body, context)
1197
- };
1198
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1199
- switch (errorCode) {
1200
- case "InvalidArnException":
1201
- case "com.amazonaws.acmpca#InvalidArnException":
1202
- throw await de_InvalidArnExceptionRes(parsedOutput, context);
1203
- case "InvalidStateException":
1204
- case "com.amazonaws.acmpca#InvalidStateException":
1205
- throw await de_InvalidStateExceptionRes(parsedOutput, context);
1206
- case "RequestFailedException":
1207
- case "com.amazonaws.acmpca#RequestFailedException":
1208
- throw await de_RequestFailedExceptionRes(parsedOutput, context);
1209
- case "RequestInProgressException":
1210
- case "com.amazonaws.acmpca#RequestInProgressException":
1211
- throw await de_RequestInProgressExceptionRes(parsedOutput, context);
1212
- case "ResourceNotFoundException":
1213
- case "com.amazonaws.acmpca#ResourceNotFoundException":
1214
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1215
- default:
1216
- const parsedBody = parsedOutput.body;
1217
- return throwDefaultError({
1218
- output,
1219
- parsedBody,
1220
- errorCode
1221
- });
1222
- }
1223
- }, "de_GetCertificateAuthorityCsrCommandError");
1224
904
  var de_GetPolicyCommand = /* @__PURE__ */ __name(async (output, context) => {
1225
905
  if (output.statusCode >= 300) {
1226
- return de_GetPolicyCommandError(output, context);
906
+ return de_CommandError(output, context);
1227
907
  }
1228
908
  const data = await parseBody(output.body, context);
1229
909
  let contents = {};
@@ -1234,37 +914,9 @@ var de_GetPolicyCommand = /* @__PURE__ */ __name(async (output, context) => {
1234
914
  };
1235
915
  return response;
1236
916
  }, "de_GetPolicyCommand");
1237
- var de_GetPolicyCommandError = /* @__PURE__ */ __name(async (output, context) => {
1238
- const parsedOutput = {
1239
- ...output,
1240
- body: await parseErrorBody(output.body, context)
1241
- };
1242
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1243
- switch (errorCode) {
1244
- case "InvalidArnException":
1245
- case "com.amazonaws.acmpca#InvalidArnException":
1246
- throw await de_InvalidArnExceptionRes(parsedOutput, context);
1247
- case "InvalidStateException":
1248
- case "com.amazonaws.acmpca#InvalidStateException":
1249
- throw await de_InvalidStateExceptionRes(parsedOutput, context);
1250
- case "RequestFailedException":
1251
- case "com.amazonaws.acmpca#RequestFailedException":
1252
- throw await de_RequestFailedExceptionRes(parsedOutput, context);
1253
- case "ResourceNotFoundException":
1254
- case "com.amazonaws.acmpca#ResourceNotFoundException":
1255
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1256
- default:
1257
- const parsedBody = parsedOutput.body;
1258
- return throwDefaultError({
1259
- output,
1260
- parsedBody,
1261
- errorCode
1262
- });
1263
- }
1264
- }, "de_GetPolicyCommandError");
1265
917
  var de_ImportCertificateAuthorityCertificateCommand = /* @__PURE__ */ __name(async (output, context) => {
1266
918
  if (output.statusCode >= 300) {
1267
- return de_ImportCertificateAuthorityCertificateCommandError(output, context);
919
+ return de_CommandError(output, context);
1268
920
  }
1269
921
  await (0, import_smithy_client.collectBody)(output.body, context);
1270
922
  const response = {
@@ -1272,52 +924,9 @@ var de_ImportCertificateAuthorityCertificateCommand = /* @__PURE__ */ __name(asy
1272
924
  };
1273
925
  return response;
1274
926
  }, "de_ImportCertificateAuthorityCertificateCommand");
1275
- var de_ImportCertificateAuthorityCertificateCommandError = /* @__PURE__ */ __name(async (output, context) => {
1276
- const parsedOutput = {
1277
- ...output,
1278
- body: await parseErrorBody(output.body, context)
1279
- };
1280
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1281
- switch (errorCode) {
1282
- case "CertificateMismatchException":
1283
- case "com.amazonaws.acmpca#CertificateMismatchException":
1284
- throw await de_CertificateMismatchExceptionRes(parsedOutput, context);
1285
- case "ConcurrentModificationException":
1286
- case "com.amazonaws.acmpca#ConcurrentModificationException":
1287
- throw await de_ConcurrentModificationExceptionRes(parsedOutput, context);
1288
- case "InvalidArnException":
1289
- case "com.amazonaws.acmpca#InvalidArnException":
1290
- throw await de_InvalidArnExceptionRes(parsedOutput, context);
1291
- case "InvalidRequestException":
1292
- case "com.amazonaws.acmpca#InvalidRequestException":
1293
- throw await de_InvalidRequestExceptionRes(parsedOutput, context);
1294
- case "InvalidStateException":
1295
- case "com.amazonaws.acmpca#InvalidStateException":
1296
- throw await de_InvalidStateExceptionRes(parsedOutput, context);
1297
- case "MalformedCertificateException":
1298
- case "com.amazonaws.acmpca#MalformedCertificateException":
1299
- throw await de_MalformedCertificateExceptionRes(parsedOutput, context);
1300
- case "RequestFailedException":
1301
- case "com.amazonaws.acmpca#RequestFailedException":
1302
- throw await de_RequestFailedExceptionRes(parsedOutput, context);
1303
- case "RequestInProgressException":
1304
- case "com.amazonaws.acmpca#RequestInProgressException":
1305
- throw await de_RequestInProgressExceptionRes(parsedOutput, context);
1306
- case "ResourceNotFoundException":
1307
- case "com.amazonaws.acmpca#ResourceNotFoundException":
1308
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1309
- default:
1310
- const parsedBody = parsedOutput.body;
1311
- return throwDefaultError({
1312
- output,
1313
- parsedBody,
1314
- errorCode
1315
- });
1316
- }
1317
- }, "de_ImportCertificateAuthorityCertificateCommandError");
1318
927
  var de_IssueCertificateCommand = /* @__PURE__ */ __name(async (output, context) => {
1319
928
  if (output.statusCode >= 300) {
1320
- return de_IssueCertificateCommandError(output, context);
929
+ return de_CommandError(output, context);
1321
930
  }
1322
931
  const data = await parseBody(output.body, context);
1323
932
  let contents = {};
@@ -1328,43 +937,9 @@ var de_IssueCertificateCommand = /* @__PURE__ */ __name(async (output, context)
1328
937
  };
1329
938
  return response;
1330
939
  }, "de_IssueCertificateCommand");
1331
- var de_IssueCertificateCommandError = /* @__PURE__ */ __name(async (output, context) => {
1332
- const parsedOutput = {
1333
- ...output,
1334
- body: await parseErrorBody(output.body, context)
1335
- };
1336
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1337
- switch (errorCode) {
1338
- case "InvalidArgsException":
1339
- case "com.amazonaws.acmpca#InvalidArgsException":
1340
- throw await de_InvalidArgsExceptionRes(parsedOutput, context);
1341
- case "InvalidArnException":
1342
- case "com.amazonaws.acmpca#InvalidArnException":
1343
- throw await de_InvalidArnExceptionRes(parsedOutput, context);
1344
- case "InvalidStateException":
1345
- case "com.amazonaws.acmpca#InvalidStateException":
1346
- throw await de_InvalidStateExceptionRes(parsedOutput, context);
1347
- case "LimitExceededException":
1348
- case "com.amazonaws.acmpca#LimitExceededException":
1349
- throw await de_LimitExceededExceptionRes(parsedOutput, context);
1350
- case "MalformedCSRException":
1351
- case "com.amazonaws.acmpca#MalformedCSRException":
1352
- throw await de_MalformedCSRExceptionRes(parsedOutput, context);
1353
- case "ResourceNotFoundException":
1354
- case "com.amazonaws.acmpca#ResourceNotFoundException":
1355
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1356
- default:
1357
- const parsedBody = parsedOutput.body;
1358
- return throwDefaultError({
1359
- output,
1360
- parsedBody,
1361
- errorCode
1362
- });
1363
- }
1364
- }, "de_IssueCertificateCommandError");
1365
940
  var de_ListCertificateAuthoritiesCommand = /* @__PURE__ */ __name(async (output, context) => {
1366
941
  if (output.statusCode >= 300) {
1367
- return de_ListCertificateAuthoritiesCommandError(output, context);
942
+ return de_CommandError(output, context);
1368
943
  }
1369
944
  const data = await parseBody(output.body, context);
1370
945
  let contents = {};
@@ -1375,28 +950,9 @@ var de_ListCertificateAuthoritiesCommand = /* @__PURE__ */ __name(async (output,
1375
950
  };
1376
951
  return response;
1377
952
  }, "de_ListCertificateAuthoritiesCommand");
1378
- var de_ListCertificateAuthoritiesCommandError = /* @__PURE__ */ __name(async (output, context) => {
1379
- const parsedOutput = {
1380
- ...output,
1381
- body: await parseErrorBody(output.body, context)
1382
- };
1383
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1384
- switch (errorCode) {
1385
- case "InvalidNextTokenException":
1386
- case "com.amazonaws.acmpca#InvalidNextTokenException":
1387
- throw await de_InvalidNextTokenExceptionRes(parsedOutput, context);
1388
- default:
1389
- const parsedBody = parsedOutput.body;
1390
- return throwDefaultError({
1391
- output,
1392
- parsedBody,
1393
- errorCode
1394
- });
1395
- }
1396
- }, "de_ListCertificateAuthoritiesCommandError");
1397
953
  var de_ListPermissionsCommand = /* @__PURE__ */ __name(async (output, context) => {
1398
954
  if (output.statusCode >= 300) {
1399
- return de_ListPermissionsCommandError(output, context);
955
+ return de_CommandError(output, context);
1400
956
  }
1401
957
  const data = await parseBody(output.body, context);
1402
958
  let contents = {};
@@ -1407,40 +963,9 @@ var de_ListPermissionsCommand = /* @__PURE__ */ __name(async (output, context) =
1407
963
  };
1408
964
  return response;
1409
965
  }, "de_ListPermissionsCommand");
1410
- var de_ListPermissionsCommandError = /* @__PURE__ */ __name(async (output, context) => {
1411
- const parsedOutput = {
1412
- ...output,
1413
- body: await parseErrorBody(output.body, context)
1414
- };
1415
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1416
- switch (errorCode) {
1417
- case "InvalidArnException":
1418
- case "com.amazonaws.acmpca#InvalidArnException":
1419
- throw await de_InvalidArnExceptionRes(parsedOutput, context);
1420
- case "InvalidNextTokenException":
1421
- case "com.amazonaws.acmpca#InvalidNextTokenException":
1422
- throw await de_InvalidNextTokenExceptionRes(parsedOutput, context);
1423
- case "InvalidStateException":
1424
- case "com.amazonaws.acmpca#InvalidStateException":
1425
- throw await de_InvalidStateExceptionRes(parsedOutput, context);
1426
- case "RequestFailedException":
1427
- case "com.amazonaws.acmpca#RequestFailedException":
1428
- throw await de_RequestFailedExceptionRes(parsedOutput, context);
1429
- case "ResourceNotFoundException":
1430
- case "com.amazonaws.acmpca#ResourceNotFoundException":
1431
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1432
- default:
1433
- const parsedBody = parsedOutput.body;
1434
- return throwDefaultError({
1435
- output,
1436
- parsedBody,
1437
- errorCode
1438
- });
1439
- }
1440
- }, "de_ListPermissionsCommandError");
1441
966
  var de_ListTagsCommand = /* @__PURE__ */ __name(async (output, context) => {
1442
967
  if (output.statusCode >= 300) {
1443
- return de_ListTagsCommandError(output, context);
968
+ return de_CommandError(output, context);
1444
969
  }
1445
970
  const data = await parseBody(output.body, context);
1446
971
  let contents = {};
@@ -1451,34 +976,9 @@ var de_ListTagsCommand = /* @__PURE__ */ __name(async (output, context) => {
1451
976
  };
1452
977
  return response;
1453
978
  }, "de_ListTagsCommand");
1454
- var de_ListTagsCommandError = /* @__PURE__ */ __name(async (output, context) => {
1455
- const parsedOutput = {
1456
- ...output,
1457
- body: await parseErrorBody(output.body, context)
1458
- };
1459
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1460
- switch (errorCode) {
1461
- case "InvalidArnException":
1462
- case "com.amazonaws.acmpca#InvalidArnException":
1463
- throw await de_InvalidArnExceptionRes(parsedOutput, context);
1464
- case "InvalidStateException":
1465
- case "com.amazonaws.acmpca#InvalidStateException":
1466
- throw await de_InvalidStateExceptionRes(parsedOutput, context);
1467
- case "ResourceNotFoundException":
1468
- case "com.amazonaws.acmpca#ResourceNotFoundException":
1469
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1470
- default:
1471
- const parsedBody = parsedOutput.body;
1472
- return throwDefaultError({
1473
- output,
1474
- parsedBody,
1475
- errorCode
1476
- });
1477
- }
1478
- }, "de_ListTagsCommandError");
1479
979
  var de_PutPolicyCommand = /* @__PURE__ */ __name(async (output, context) => {
1480
980
  if (output.statusCode >= 300) {
1481
- return de_PutPolicyCommandError(output, context);
981
+ return de_CommandError(output, context);
1482
982
  }
1483
983
  await (0, import_smithy_client.collectBody)(output.body, context);
1484
984
  const response = {
@@ -1486,46 +986,9 @@ var de_PutPolicyCommand = /* @__PURE__ */ __name(async (output, context) => {
1486
986
  };
1487
987
  return response;
1488
988
  }, "de_PutPolicyCommand");
1489
- var de_PutPolicyCommandError = /* @__PURE__ */ __name(async (output, context) => {
1490
- const parsedOutput = {
1491
- ...output,
1492
- body: await parseErrorBody(output.body, context)
1493
- };
1494
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1495
- switch (errorCode) {
1496
- case "ConcurrentModificationException":
1497
- case "com.amazonaws.acmpca#ConcurrentModificationException":
1498
- throw await de_ConcurrentModificationExceptionRes(parsedOutput, context);
1499
- case "InvalidArnException":
1500
- case "com.amazonaws.acmpca#InvalidArnException":
1501
- throw await de_InvalidArnExceptionRes(parsedOutput, context);
1502
- case "InvalidPolicyException":
1503
- case "com.amazonaws.acmpca#InvalidPolicyException":
1504
- throw await de_InvalidPolicyExceptionRes(parsedOutput, context);
1505
- case "InvalidStateException":
1506
- case "com.amazonaws.acmpca#InvalidStateException":
1507
- throw await de_InvalidStateExceptionRes(parsedOutput, context);
1508
- case "LockoutPreventedException":
1509
- case "com.amazonaws.acmpca#LockoutPreventedException":
1510
- throw await de_LockoutPreventedExceptionRes(parsedOutput, context);
1511
- case "RequestFailedException":
1512
- case "com.amazonaws.acmpca#RequestFailedException":
1513
- throw await de_RequestFailedExceptionRes(parsedOutput, context);
1514
- case "ResourceNotFoundException":
1515
- case "com.amazonaws.acmpca#ResourceNotFoundException":
1516
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1517
- default:
1518
- const parsedBody = parsedOutput.body;
1519
- return throwDefaultError({
1520
- output,
1521
- parsedBody,
1522
- errorCode
1523
- });
1524
- }
1525
- }, "de_PutPolicyCommandError");
1526
989
  var de_RestoreCertificateAuthorityCommand = /* @__PURE__ */ __name(async (output, context) => {
1527
990
  if (output.statusCode >= 300) {
1528
- return de_RestoreCertificateAuthorityCommandError(output, context);
991
+ return de_CommandError(output, context);
1529
992
  }
1530
993
  await (0, import_smithy_client.collectBody)(output.body, context);
1531
994
  const response = {
@@ -1533,34 +996,9 @@ var de_RestoreCertificateAuthorityCommand = /* @__PURE__ */ __name(async (output
1533
996
  };
1534
997
  return response;
1535
998
  }, "de_RestoreCertificateAuthorityCommand");
1536
- var de_RestoreCertificateAuthorityCommandError = /* @__PURE__ */ __name(async (output, context) => {
1537
- const parsedOutput = {
1538
- ...output,
1539
- body: await parseErrorBody(output.body, context)
1540
- };
1541
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1542
- switch (errorCode) {
1543
- case "InvalidArnException":
1544
- case "com.amazonaws.acmpca#InvalidArnException":
1545
- throw await de_InvalidArnExceptionRes(parsedOutput, context);
1546
- case "InvalidStateException":
1547
- case "com.amazonaws.acmpca#InvalidStateException":
1548
- throw await de_InvalidStateExceptionRes(parsedOutput, context);
1549
- case "ResourceNotFoundException":
1550
- case "com.amazonaws.acmpca#ResourceNotFoundException":
1551
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1552
- default:
1553
- const parsedBody = parsedOutput.body;
1554
- return throwDefaultError({
1555
- output,
1556
- parsedBody,
1557
- errorCode
1558
- });
1559
- }
1560
- }, "de_RestoreCertificateAuthorityCommandError");
1561
999
  var de_RevokeCertificateCommand = /* @__PURE__ */ __name(async (output, context) => {
1562
1000
  if (output.statusCode >= 300) {
1563
- return de_RevokeCertificateCommandError(output, context);
1001
+ return de_CommandError(output, context);
1564
1002
  }
1565
1003
  await (0, import_smithy_client.collectBody)(output.body, context);
1566
1004
  const response = {
@@ -1568,52 +1006,9 @@ var de_RevokeCertificateCommand = /* @__PURE__ */ __name(async (output, context)
1568
1006
  };
1569
1007
  return response;
1570
1008
  }, "de_RevokeCertificateCommand");
1571
- var de_RevokeCertificateCommandError = /* @__PURE__ */ __name(async (output, context) => {
1572
- const parsedOutput = {
1573
- ...output,
1574
- body: await parseErrorBody(output.body, context)
1575
- };
1576
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1577
- switch (errorCode) {
1578
- case "ConcurrentModificationException":
1579
- case "com.amazonaws.acmpca#ConcurrentModificationException":
1580
- throw await de_ConcurrentModificationExceptionRes(parsedOutput, context);
1581
- case "InvalidArnException":
1582
- case "com.amazonaws.acmpca#InvalidArnException":
1583
- throw await de_InvalidArnExceptionRes(parsedOutput, context);
1584
- case "InvalidRequestException":
1585
- case "com.amazonaws.acmpca#InvalidRequestException":
1586
- throw await de_InvalidRequestExceptionRes(parsedOutput, context);
1587
- case "InvalidStateException":
1588
- case "com.amazonaws.acmpca#InvalidStateException":
1589
- throw await de_InvalidStateExceptionRes(parsedOutput, context);
1590
- case "LimitExceededException":
1591
- case "com.amazonaws.acmpca#LimitExceededException":
1592
- throw await de_LimitExceededExceptionRes(parsedOutput, context);
1593
- case "RequestAlreadyProcessedException":
1594
- case "com.amazonaws.acmpca#RequestAlreadyProcessedException":
1595
- throw await de_RequestAlreadyProcessedExceptionRes(parsedOutput, context);
1596
- case "RequestFailedException":
1597
- case "com.amazonaws.acmpca#RequestFailedException":
1598
- throw await de_RequestFailedExceptionRes(parsedOutput, context);
1599
- case "RequestInProgressException":
1600
- case "com.amazonaws.acmpca#RequestInProgressException":
1601
- throw await de_RequestInProgressExceptionRes(parsedOutput, context);
1602
- case "ResourceNotFoundException":
1603
- case "com.amazonaws.acmpca#ResourceNotFoundException":
1604
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1605
- default:
1606
- const parsedBody = parsedOutput.body;
1607
- return throwDefaultError({
1608
- output,
1609
- parsedBody,
1610
- errorCode
1611
- });
1612
- }
1613
- }, "de_RevokeCertificateCommandError");
1614
1009
  var de_TagCertificateAuthorityCommand = /* @__PURE__ */ __name(async (output, context) => {
1615
1010
  if (output.statusCode >= 300) {
1616
- return de_TagCertificateAuthorityCommandError(output, context);
1011
+ return de_CommandError(output, context);
1617
1012
  }
1618
1013
  await (0, import_smithy_client.collectBody)(output.body, context);
1619
1014
  const response = {
@@ -1621,40 +1016,9 @@ var de_TagCertificateAuthorityCommand = /* @__PURE__ */ __name(async (output, co
1621
1016
  };
1622
1017
  return response;
1623
1018
  }, "de_TagCertificateAuthorityCommand");
1624
- var de_TagCertificateAuthorityCommandError = /* @__PURE__ */ __name(async (output, context) => {
1625
- const parsedOutput = {
1626
- ...output,
1627
- body: await parseErrorBody(output.body, context)
1628
- };
1629
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1630
- switch (errorCode) {
1631
- case "InvalidArnException":
1632
- case "com.amazonaws.acmpca#InvalidArnException":
1633
- throw await de_InvalidArnExceptionRes(parsedOutput, context);
1634
- case "InvalidStateException":
1635
- case "com.amazonaws.acmpca#InvalidStateException":
1636
- throw await de_InvalidStateExceptionRes(parsedOutput, context);
1637
- case "InvalidTagException":
1638
- case "com.amazonaws.acmpca#InvalidTagException":
1639
- throw await de_InvalidTagExceptionRes(parsedOutput, context);
1640
- case "ResourceNotFoundException":
1641
- case "com.amazonaws.acmpca#ResourceNotFoundException":
1642
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1643
- case "TooManyTagsException":
1644
- case "com.amazonaws.acmpca#TooManyTagsException":
1645
- throw await de_TooManyTagsExceptionRes(parsedOutput, context);
1646
- default:
1647
- const parsedBody = parsedOutput.body;
1648
- return throwDefaultError({
1649
- output,
1650
- parsedBody,
1651
- errorCode
1652
- });
1653
- }
1654
- }, "de_TagCertificateAuthorityCommandError");
1655
1019
  var de_UntagCertificateAuthorityCommand = /* @__PURE__ */ __name(async (output, context) => {
1656
1020
  if (output.statusCode >= 300) {
1657
- return de_UntagCertificateAuthorityCommandError(output, context);
1021
+ return de_CommandError(output, context);
1658
1022
  }
1659
1023
  await (0, import_smithy_client.collectBody)(output.body, context);
1660
1024
  const response = {
@@ -1662,37 +1026,9 @@ var de_UntagCertificateAuthorityCommand = /* @__PURE__ */ __name(async (output,
1662
1026
  };
1663
1027
  return response;
1664
1028
  }, "de_UntagCertificateAuthorityCommand");
1665
- var de_UntagCertificateAuthorityCommandError = /* @__PURE__ */ __name(async (output, context) => {
1666
- const parsedOutput = {
1667
- ...output,
1668
- body: await parseErrorBody(output.body, context)
1669
- };
1670
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1671
- switch (errorCode) {
1672
- case "InvalidArnException":
1673
- case "com.amazonaws.acmpca#InvalidArnException":
1674
- throw await de_InvalidArnExceptionRes(parsedOutput, context);
1675
- case "InvalidStateException":
1676
- case "com.amazonaws.acmpca#InvalidStateException":
1677
- throw await de_InvalidStateExceptionRes(parsedOutput, context);
1678
- case "InvalidTagException":
1679
- case "com.amazonaws.acmpca#InvalidTagException":
1680
- throw await de_InvalidTagExceptionRes(parsedOutput, context);
1681
- case "ResourceNotFoundException":
1682
- case "com.amazonaws.acmpca#ResourceNotFoundException":
1683
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1684
- default:
1685
- const parsedBody = parsedOutput.body;
1686
- return throwDefaultError({
1687
- output,
1688
- parsedBody,
1689
- errorCode
1690
- });
1691
- }
1692
- }, "de_UntagCertificateAuthorityCommandError");
1693
1029
  var de_UpdateCertificateAuthorityCommand = /* @__PURE__ */ __name(async (output, context) => {
1694
1030
  if (output.statusCode >= 300) {
1695
- return de_UpdateCertificateAuthorityCommandError(output, context);
1031
+ return de_CommandError(output, context);
1696
1032
  }
1697
1033
  await (0, import_smithy_client.collectBody)(output.body, context);
1698
1034
  const response = {
@@ -1700,31 +1036,70 @@ var de_UpdateCertificateAuthorityCommand = /* @__PURE__ */ __name(async (output,
1700
1036
  };
1701
1037
  return response;
1702
1038
  }, "de_UpdateCertificateAuthorityCommand");
1703
- var de_UpdateCertificateAuthorityCommandError = /* @__PURE__ */ __name(async (output, context) => {
1039
+ var de_CommandError = /* @__PURE__ */ __name(async (output, context) => {
1704
1040
  const parsedOutput = {
1705
1041
  ...output,
1706
1042
  body: await parseErrorBody(output.body, context)
1707
1043
  };
1708
1044
  const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1709
1045
  switch (errorCode) {
1710
- case "ConcurrentModificationException":
1711
- case "com.amazonaws.acmpca#ConcurrentModificationException":
1712
- throw await de_ConcurrentModificationExceptionRes(parsedOutput, context);
1713
1046
  case "InvalidArgsException":
1714
1047
  case "com.amazonaws.acmpca#InvalidArgsException":
1715
1048
  throw await de_InvalidArgsExceptionRes(parsedOutput, context);
1716
- case "InvalidArnException":
1717
- case "com.amazonaws.acmpca#InvalidArnException":
1718
- throw await de_InvalidArnExceptionRes(parsedOutput, context);
1719
1049
  case "InvalidPolicyException":
1720
1050
  case "com.amazonaws.acmpca#InvalidPolicyException":
1721
1051
  throw await de_InvalidPolicyExceptionRes(parsedOutput, context);
1052
+ case "InvalidTagException":
1053
+ case "com.amazonaws.acmpca#InvalidTagException":
1054
+ throw await de_InvalidTagExceptionRes(parsedOutput, context);
1055
+ case "LimitExceededException":
1056
+ case "com.amazonaws.acmpca#LimitExceededException":
1057
+ throw await de_LimitExceededExceptionRes(parsedOutput, context);
1058
+ case "InvalidArnException":
1059
+ case "com.amazonaws.acmpca#InvalidArnException":
1060
+ throw await de_InvalidArnExceptionRes(parsedOutput, context);
1722
1061
  case "InvalidStateException":
1723
1062
  case "com.amazonaws.acmpca#InvalidStateException":
1724
1063
  throw await de_InvalidStateExceptionRes(parsedOutput, context);
1064
+ case "RequestFailedException":
1065
+ case "com.amazonaws.acmpca#RequestFailedException":
1066
+ throw await de_RequestFailedExceptionRes(parsedOutput, context);
1067
+ case "RequestInProgressException":
1068
+ case "com.amazonaws.acmpca#RequestInProgressException":
1069
+ throw await de_RequestInProgressExceptionRes(parsedOutput, context);
1725
1070
  case "ResourceNotFoundException":
1726
1071
  case "com.amazonaws.acmpca#ResourceNotFoundException":
1727
1072
  throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1073
+ case "PermissionAlreadyExistsException":
1074
+ case "com.amazonaws.acmpca#PermissionAlreadyExistsException":
1075
+ throw await de_PermissionAlreadyExistsExceptionRes(parsedOutput, context);
1076
+ case "ConcurrentModificationException":
1077
+ case "com.amazonaws.acmpca#ConcurrentModificationException":
1078
+ throw await de_ConcurrentModificationExceptionRes(parsedOutput, context);
1079
+ case "LockoutPreventedException":
1080
+ case "com.amazonaws.acmpca#LockoutPreventedException":
1081
+ throw await de_LockoutPreventedExceptionRes(parsedOutput, context);
1082
+ case "CertificateMismatchException":
1083
+ case "com.amazonaws.acmpca#CertificateMismatchException":
1084
+ throw await de_CertificateMismatchExceptionRes(parsedOutput, context);
1085
+ case "InvalidRequestException":
1086
+ case "com.amazonaws.acmpca#InvalidRequestException":
1087
+ throw await de_InvalidRequestExceptionRes(parsedOutput, context);
1088
+ case "MalformedCertificateException":
1089
+ case "com.amazonaws.acmpca#MalformedCertificateException":
1090
+ throw await de_MalformedCertificateExceptionRes(parsedOutput, context);
1091
+ case "MalformedCSRException":
1092
+ case "com.amazonaws.acmpca#MalformedCSRException":
1093
+ throw await de_MalformedCSRExceptionRes(parsedOutput, context);
1094
+ case "InvalidNextTokenException":
1095
+ case "com.amazonaws.acmpca#InvalidNextTokenException":
1096
+ throw await de_InvalidNextTokenExceptionRes(parsedOutput, context);
1097
+ case "RequestAlreadyProcessedException":
1098
+ case "com.amazonaws.acmpca#RequestAlreadyProcessedException":
1099
+ throw await de_RequestAlreadyProcessedExceptionRes(parsedOutput, context);
1100
+ case "TooManyTagsException":
1101
+ case "com.amazonaws.acmpca#TooManyTagsException":
1102
+ throw await de_TooManyTagsExceptionRes(parsedOutput, context);
1728
1103
  default:
1729
1104
  const parsedBody = parsedOutput.body;
1730
1105
  return throwDefaultError({
@@ -1733,7 +1108,7 @@ var de_UpdateCertificateAuthorityCommandError = /* @__PURE__ */ __name(async (ou
1733
1108
  errorCode
1734
1109
  });
1735
1110
  }
1736
- }, "de_UpdateCertificateAuthorityCommandError");
1111
+ }, "de_CommandError");
1737
1112
  var de_CertificateMismatchExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
1738
1113
  const body = parsedOutput.body;
1739
1114
  const deserialized = (0, import_smithy_client._json)(body);