@aws-sdk/client-connectcampaigns 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
@@ -715,7 +715,7 @@ var se_UpdateCampaignOutboundCallConfigCommand = /* @__PURE__ */ __name(async (i
715
715
  }, "se_UpdateCampaignOutboundCallConfigCommand");
716
716
  var de_CreateCampaignCommand = /* @__PURE__ */ __name(async (output, context) => {
717
717
  if (output.statusCode !== 200 && output.statusCode >= 300) {
718
- return de_CreateCampaignCommandError(output, context);
718
+ return de_CommandError(output, context);
719
719
  }
720
720
  const contents = (0, import_smithy_client.map)({
721
721
  $metadata: deserializeMetadata(output)
@@ -729,46 +729,9 @@ var de_CreateCampaignCommand = /* @__PURE__ */ __name(async (output, context) =>
729
729
  Object.assign(contents, doc);
730
730
  return contents;
731
731
  }, "de_CreateCampaignCommand");
732
- var de_CreateCampaignCommandError = /* @__PURE__ */ __name(async (output, context) => {
733
- const parsedOutput = {
734
- ...output,
735
- body: await parseErrorBody(output.body, context)
736
- };
737
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
738
- switch (errorCode) {
739
- case "AccessDeniedException":
740
- case "com.amazonaws.connectcampaigns#AccessDeniedException":
741
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
742
- case "ConflictException":
743
- case "com.amazonaws.connectcampaigns#ConflictException":
744
- throw await de_ConflictExceptionRes(parsedOutput, context);
745
- case "InternalServerException":
746
- case "com.amazonaws.connectcampaigns#InternalServerException":
747
- throw await de_InternalServerExceptionRes(parsedOutput, context);
748
- case "ResourceNotFoundException":
749
- case "com.amazonaws.connectcampaigns#ResourceNotFoundException":
750
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
751
- case "ServiceQuotaExceededException":
752
- case "com.amazonaws.connectcampaigns#ServiceQuotaExceededException":
753
- throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
754
- case "ThrottlingException":
755
- case "com.amazonaws.connectcampaigns#ThrottlingException":
756
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
757
- case "ValidationException":
758
- case "com.amazonaws.connectcampaigns#ValidationException":
759
- throw await de_ValidationExceptionRes(parsedOutput, context);
760
- default:
761
- const parsedBody = parsedOutput.body;
762
- return throwDefaultError({
763
- output,
764
- parsedBody,
765
- errorCode
766
- });
767
- }
768
- }, "de_CreateCampaignCommandError");
769
732
  var de_DeleteCampaignCommand = /* @__PURE__ */ __name(async (output, context) => {
770
733
  if (output.statusCode !== 200 && output.statusCode >= 300) {
771
- return de_DeleteCampaignCommandError(output, context);
734
+ return de_CommandError(output, context);
772
735
  }
773
736
  const contents = (0, import_smithy_client.map)({
774
737
  $metadata: deserializeMetadata(output)
@@ -776,37 +739,9 @@ var de_DeleteCampaignCommand = /* @__PURE__ */ __name(async (output, context) =>
776
739
  await (0, import_smithy_client.collectBody)(output.body, context);
777
740
  return contents;
778
741
  }, "de_DeleteCampaignCommand");
779
- var de_DeleteCampaignCommandError = /* @__PURE__ */ __name(async (output, context) => {
780
- const parsedOutput = {
781
- ...output,
782
- body: await parseErrorBody(output.body, context)
783
- };
784
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
785
- switch (errorCode) {
786
- case "AccessDeniedException":
787
- case "com.amazonaws.connectcampaigns#AccessDeniedException":
788
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
789
- case "InternalServerException":
790
- case "com.amazonaws.connectcampaigns#InternalServerException":
791
- throw await de_InternalServerExceptionRes(parsedOutput, context);
792
- case "ResourceNotFoundException":
793
- case "com.amazonaws.connectcampaigns#ResourceNotFoundException":
794
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
795
- case "ValidationException":
796
- case "com.amazonaws.connectcampaigns#ValidationException":
797
- throw await de_ValidationExceptionRes(parsedOutput, context);
798
- default:
799
- const parsedBody = parsedOutput.body;
800
- return throwDefaultError({
801
- output,
802
- parsedBody,
803
- errorCode
804
- });
805
- }
806
- }, "de_DeleteCampaignCommandError");
807
742
  var de_DeleteConnectInstanceConfigCommand = /* @__PURE__ */ __name(async (output, context) => {
808
743
  if (output.statusCode !== 200 && output.statusCode >= 300) {
809
- return de_DeleteConnectInstanceConfigCommandError(output, context);
744
+ return de_CommandError(output, context);
810
745
  }
811
746
  const contents = (0, import_smithy_client.map)({
812
747
  $metadata: deserializeMetadata(output)
@@ -814,43 +749,9 @@ var de_DeleteConnectInstanceConfigCommand = /* @__PURE__ */ __name(async (output
814
749
  await (0, import_smithy_client.collectBody)(output.body, context);
815
750
  return contents;
816
751
  }, "de_DeleteConnectInstanceConfigCommand");
817
- var de_DeleteConnectInstanceConfigCommandError = /* @__PURE__ */ __name(async (output, context) => {
818
- const parsedOutput = {
819
- ...output,
820
- body: await parseErrorBody(output.body, context)
821
- };
822
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
823
- switch (errorCode) {
824
- case "AccessDeniedException":
825
- case "com.amazonaws.connectcampaigns#AccessDeniedException":
826
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
827
- case "InternalServerException":
828
- case "com.amazonaws.connectcampaigns#InternalServerException":
829
- throw await de_InternalServerExceptionRes(parsedOutput, context);
830
- case "InvalidStateException":
831
- case "com.amazonaws.connectcampaigns#InvalidStateException":
832
- throw await de_InvalidStateExceptionRes(parsedOutput, context);
833
- case "ResourceNotFoundException":
834
- case "com.amazonaws.connectcampaigns#ResourceNotFoundException":
835
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
836
- case "ThrottlingException":
837
- case "com.amazonaws.connectcampaigns#ThrottlingException":
838
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
839
- case "ValidationException":
840
- case "com.amazonaws.connectcampaigns#ValidationException":
841
- throw await de_ValidationExceptionRes(parsedOutput, context);
842
- default:
843
- const parsedBody = parsedOutput.body;
844
- return throwDefaultError({
845
- output,
846
- parsedBody,
847
- errorCode
848
- });
849
- }
850
- }, "de_DeleteConnectInstanceConfigCommandError");
851
752
  var de_DeleteInstanceOnboardingJobCommand = /* @__PURE__ */ __name(async (output, context) => {
852
753
  if (output.statusCode !== 200 && output.statusCode >= 300) {
853
- return de_DeleteInstanceOnboardingJobCommandError(output, context);
754
+ return de_CommandError(output, context);
854
755
  }
855
756
  const contents = (0, import_smithy_client.map)({
856
757
  $metadata: deserializeMetadata(output)
@@ -858,40 +759,9 @@ var de_DeleteInstanceOnboardingJobCommand = /* @__PURE__ */ __name(async (output
858
759
  await (0, import_smithy_client.collectBody)(output.body, context);
859
760
  return contents;
860
761
  }, "de_DeleteInstanceOnboardingJobCommand");
861
- var de_DeleteInstanceOnboardingJobCommandError = /* @__PURE__ */ __name(async (output, context) => {
862
- const parsedOutput = {
863
- ...output,
864
- body: await parseErrorBody(output.body, context)
865
- };
866
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
867
- switch (errorCode) {
868
- case "AccessDeniedException":
869
- case "com.amazonaws.connectcampaigns#AccessDeniedException":
870
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
871
- case "InternalServerException":
872
- case "com.amazonaws.connectcampaigns#InternalServerException":
873
- throw await de_InternalServerExceptionRes(parsedOutput, context);
874
- case "InvalidStateException":
875
- case "com.amazonaws.connectcampaigns#InvalidStateException":
876
- throw await de_InvalidStateExceptionRes(parsedOutput, context);
877
- case "ResourceNotFoundException":
878
- case "com.amazonaws.connectcampaigns#ResourceNotFoundException":
879
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
880
- case "ValidationException":
881
- case "com.amazonaws.connectcampaigns#ValidationException":
882
- throw await de_ValidationExceptionRes(parsedOutput, context);
883
- default:
884
- const parsedBody = parsedOutput.body;
885
- return throwDefaultError({
886
- output,
887
- parsedBody,
888
- errorCode
889
- });
890
- }
891
- }, "de_DeleteInstanceOnboardingJobCommandError");
892
762
  var de_DescribeCampaignCommand = /* @__PURE__ */ __name(async (output, context) => {
893
763
  if (output.statusCode !== 200 && output.statusCode >= 300) {
894
- return de_DescribeCampaignCommandError(output, context);
764
+ return de_CommandError(output, context);
895
765
  }
896
766
  const contents = (0, import_smithy_client.map)({
897
767
  $metadata: deserializeMetadata(output)
@@ -903,37 +773,9 @@ var de_DescribeCampaignCommand = /* @__PURE__ */ __name(async (output, context)
903
773
  Object.assign(contents, doc);
904
774
  return contents;
905
775
  }, "de_DescribeCampaignCommand");
906
- var de_DescribeCampaignCommandError = /* @__PURE__ */ __name(async (output, context) => {
907
- const parsedOutput = {
908
- ...output,
909
- body: await parseErrorBody(output.body, context)
910
- };
911
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
912
- switch (errorCode) {
913
- case "AccessDeniedException":
914
- case "com.amazonaws.connectcampaigns#AccessDeniedException":
915
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
916
- case "InternalServerException":
917
- case "com.amazonaws.connectcampaigns#InternalServerException":
918
- throw await de_InternalServerExceptionRes(parsedOutput, context);
919
- case "ResourceNotFoundException":
920
- case "com.amazonaws.connectcampaigns#ResourceNotFoundException":
921
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
922
- case "ValidationException":
923
- case "com.amazonaws.connectcampaigns#ValidationException":
924
- throw await de_ValidationExceptionRes(parsedOutput, context);
925
- default:
926
- const parsedBody = parsedOutput.body;
927
- return throwDefaultError({
928
- output,
929
- parsedBody,
930
- errorCode
931
- });
932
- }
933
- }, "de_DescribeCampaignCommandError");
934
776
  var de_GetCampaignStateCommand = /* @__PURE__ */ __name(async (output, context) => {
935
777
  if (output.statusCode !== 200 && output.statusCode >= 300) {
936
- return de_GetCampaignStateCommandError(output, context);
778
+ return de_CommandError(output, context);
937
779
  }
938
780
  const contents = (0, import_smithy_client.map)({
939
781
  $metadata: deserializeMetadata(output)
@@ -945,40 +787,9 @@ var de_GetCampaignStateCommand = /* @__PURE__ */ __name(async (output, context)
945
787
  Object.assign(contents, doc);
946
788
  return contents;
947
789
  }, "de_GetCampaignStateCommand");
948
- var de_GetCampaignStateCommandError = /* @__PURE__ */ __name(async (output, context) => {
949
- const parsedOutput = {
950
- ...output,
951
- body: await parseErrorBody(output.body, context)
952
- };
953
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
954
- switch (errorCode) {
955
- case "AccessDeniedException":
956
- case "com.amazonaws.connectcampaigns#AccessDeniedException":
957
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
958
- case "InternalServerException":
959
- case "com.amazonaws.connectcampaigns#InternalServerException":
960
- throw await de_InternalServerExceptionRes(parsedOutput, context);
961
- case "ResourceNotFoundException":
962
- case "com.amazonaws.connectcampaigns#ResourceNotFoundException":
963
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
964
- case "ThrottlingException":
965
- case "com.amazonaws.connectcampaigns#ThrottlingException":
966
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
967
- case "ValidationException":
968
- case "com.amazonaws.connectcampaigns#ValidationException":
969
- throw await de_ValidationExceptionRes(parsedOutput, context);
970
- default:
971
- const parsedBody = parsedOutput.body;
972
- return throwDefaultError({
973
- output,
974
- parsedBody,
975
- errorCode
976
- });
977
- }
978
- }, "de_GetCampaignStateCommandError");
979
790
  var de_GetCampaignStateBatchCommand = /* @__PURE__ */ __name(async (output, context) => {
980
791
  if (output.statusCode !== 200 && output.statusCode >= 300) {
981
- return de_GetCampaignStateBatchCommandError(output, context);
792
+ return de_CommandError(output, context);
982
793
  }
983
794
  const contents = (0, import_smithy_client.map)({
984
795
  $metadata: deserializeMetadata(output)
@@ -991,37 +802,9 @@ var de_GetCampaignStateBatchCommand = /* @__PURE__ */ __name(async (output, cont
991
802
  Object.assign(contents, doc);
992
803
  return contents;
993
804
  }, "de_GetCampaignStateBatchCommand");
994
- var de_GetCampaignStateBatchCommandError = /* @__PURE__ */ __name(async (output, context) => {
995
- const parsedOutput = {
996
- ...output,
997
- body: await parseErrorBody(output.body, context)
998
- };
999
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1000
- switch (errorCode) {
1001
- case "AccessDeniedException":
1002
- case "com.amazonaws.connectcampaigns#AccessDeniedException":
1003
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1004
- case "InternalServerException":
1005
- case "com.amazonaws.connectcampaigns#InternalServerException":
1006
- throw await de_InternalServerExceptionRes(parsedOutput, context);
1007
- case "ThrottlingException":
1008
- case "com.amazonaws.connectcampaigns#ThrottlingException":
1009
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
1010
- case "ValidationException":
1011
- case "com.amazonaws.connectcampaigns#ValidationException":
1012
- throw await de_ValidationExceptionRes(parsedOutput, context);
1013
- default:
1014
- const parsedBody = parsedOutput.body;
1015
- return throwDefaultError({
1016
- output,
1017
- parsedBody,
1018
- errorCode
1019
- });
1020
- }
1021
- }, "de_GetCampaignStateBatchCommandError");
1022
805
  var de_GetConnectInstanceConfigCommand = /* @__PURE__ */ __name(async (output, context) => {
1023
806
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1024
- return de_GetConnectInstanceConfigCommandError(output, context);
807
+ return de_CommandError(output, context);
1025
808
  }
1026
809
  const contents = (0, import_smithy_client.map)({
1027
810
  $metadata: deserializeMetadata(output)
@@ -1033,37 +816,9 @@ var de_GetConnectInstanceConfigCommand = /* @__PURE__ */ __name(async (output, c
1033
816
  Object.assign(contents, doc);
1034
817
  return contents;
1035
818
  }, "de_GetConnectInstanceConfigCommand");
1036
- var de_GetConnectInstanceConfigCommandError = /* @__PURE__ */ __name(async (output, context) => {
1037
- const parsedOutput = {
1038
- ...output,
1039
- body: await parseErrorBody(output.body, context)
1040
- };
1041
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1042
- switch (errorCode) {
1043
- case "AccessDeniedException":
1044
- case "com.amazonaws.connectcampaigns#AccessDeniedException":
1045
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1046
- case "InternalServerException":
1047
- case "com.amazonaws.connectcampaigns#InternalServerException":
1048
- throw await de_InternalServerExceptionRes(parsedOutput, context);
1049
- case "ResourceNotFoundException":
1050
- case "com.amazonaws.connectcampaigns#ResourceNotFoundException":
1051
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1052
- case "ValidationException":
1053
- case "com.amazonaws.connectcampaigns#ValidationException":
1054
- throw await de_ValidationExceptionRes(parsedOutput, context);
1055
- default:
1056
- const parsedBody = parsedOutput.body;
1057
- return throwDefaultError({
1058
- output,
1059
- parsedBody,
1060
- errorCode
1061
- });
1062
- }
1063
- }, "de_GetConnectInstanceConfigCommandError");
1064
819
  var de_GetInstanceOnboardingJobStatusCommand = /* @__PURE__ */ __name(async (output, context) => {
1065
820
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1066
- return de_GetInstanceOnboardingJobStatusCommandError(output, context);
821
+ return de_CommandError(output, context);
1067
822
  }
1068
823
  const contents = (0, import_smithy_client.map)({
1069
824
  $metadata: deserializeMetadata(output)
@@ -1075,37 +830,9 @@ var de_GetInstanceOnboardingJobStatusCommand = /* @__PURE__ */ __name(async (out
1075
830
  Object.assign(contents, doc);
1076
831
  return contents;
1077
832
  }, "de_GetInstanceOnboardingJobStatusCommand");
1078
- var de_GetInstanceOnboardingJobStatusCommandError = /* @__PURE__ */ __name(async (output, context) => {
1079
- const parsedOutput = {
1080
- ...output,
1081
- body: await parseErrorBody(output.body, context)
1082
- };
1083
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1084
- switch (errorCode) {
1085
- case "AccessDeniedException":
1086
- case "com.amazonaws.connectcampaigns#AccessDeniedException":
1087
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1088
- case "InternalServerException":
1089
- case "com.amazonaws.connectcampaigns#InternalServerException":
1090
- throw await de_InternalServerExceptionRes(parsedOutput, context);
1091
- case "ResourceNotFoundException":
1092
- case "com.amazonaws.connectcampaigns#ResourceNotFoundException":
1093
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1094
- case "ValidationException":
1095
- case "com.amazonaws.connectcampaigns#ValidationException":
1096
- throw await de_ValidationExceptionRes(parsedOutput, context);
1097
- default:
1098
- const parsedBody = parsedOutput.body;
1099
- return throwDefaultError({
1100
- output,
1101
- parsedBody,
1102
- errorCode
1103
- });
1104
- }
1105
- }, "de_GetInstanceOnboardingJobStatusCommandError");
1106
833
  var de_ListCampaignsCommand = /* @__PURE__ */ __name(async (output, context) => {
1107
834
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1108
- return de_ListCampaignsCommandError(output, context);
835
+ return de_CommandError(output, context);
1109
836
  }
1110
837
  const contents = (0, import_smithy_client.map)({
1111
838
  $metadata: deserializeMetadata(output)
@@ -1118,34 +845,9 @@ var de_ListCampaignsCommand = /* @__PURE__ */ __name(async (output, context) =>
1118
845
  Object.assign(contents, doc);
1119
846
  return contents;
1120
847
  }, "de_ListCampaignsCommand");
1121
- var de_ListCampaignsCommandError = /* @__PURE__ */ __name(async (output, context) => {
1122
- const parsedOutput = {
1123
- ...output,
1124
- body: await parseErrorBody(output.body, context)
1125
- };
1126
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1127
- switch (errorCode) {
1128
- case "AccessDeniedException":
1129
- case "com.amazonaws.connectcampaigns#AccessDeniedException":
1130
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1131
- case "InternalServerException":
1132
- case "com.amazonaws.connectcampaigns#InternalServerException":
1133
- throw await de_InternalServerExceptionRes(parsedOutput, context);
1134
- case "ValidationException":
1135
- case "com.amazonaws.connectcampaigns#ValidationException":
1136
- throw await de_ValidationExceptionRes(parsedOutput, context);
1137
- default:
1138
- const parsedBody = parsedOutput.body;
1139
- return throwDefaultError({
1140
- output,
1141
- parsedBody,
1142
- errorCode
1143
- });
1144
- }
1145
- }, "de_ListCampaignsCommandError");
1146
848
  var de_ListTagsForResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
1147
849
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1148
- return de_ListTagsForResourceCommandError(output, context);
850
+ return de_CommandError(output, context);
1149
851
  }
1150
852
  const contents = (0, import_smithy_client.map)({
1151
853
  $metadata: deserializeMetadata(output)
@@ -1157,40 +859,9 @@ var de_ListTagsForResourceCommand = /* @__PURE__ */ __name(async (output, contex
1157
859
  Object.assign(contents, doc);
1158
860
  return contents;
1159
861
  }, "de_ListTagsForResourceCommand");
1160
- var de_ListTagsForResourceCommandError = /* @__PURE__ */ __name(async (output, context) => {
1161
- const parsedOutput = {
1162
- ...output,
1163
- body: await parseErrorBody(output.body, context)
1164
- };
1165
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1166
- switch (errorCode) {
1167
- case "AccessDeniedException":
1168
- case "com.amazonaws.connectcampaigns#AccessDeniedException":
1169
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1170
- case "InternalServerException":
1171
- case "com.amazonaws.connectcampaigns#InternalServerException":
1172
- throw await de_InternalServerExceptionRes(parsedOutput, context);
1173
- case "ResourceNotFoundException":
1174
- case "com.amazonaws.connectcampaigns#ResourceNotFoundException":
1175
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1176
- case "ThrottlingException":
1177
- case "com.amazonaws.connectcampaigns#ThrottlingException":
1178
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
1179
- case "ValidationException":
1180
- case "com.amazonaws.connectcampaigns#ValidationException":
1181
- throw await de_ValidationExceptionRes(parsedOutput, context);
1182
- default:
1183
- const parsedBody = parsedOutput.body;
1184
- return throwDefaultError({
1185
- output,
1186
- parsedBody,
1187
- errorCode
1188
- });
1189
- }
1190
- }, "de_ListTagsForResourceCommandError");
1191
862
  var de_PauseCampaignCommand = /* @__PURE__ */ __name(async (output, context) => {
1192
863
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1193
- return de_PauseCampaignCommandError(output, context);
864
+ return de_CommandError(output, context);
1194
865
  }
1195
866
  const contents = (0, import_smithy_client.map)({
1196
867
  $metadata: deserializeMetadata(output)
@@ -1198,46 +869,9 @@ var de_PauseCampaignCommand = /* @__PURE__ */ __name(async (output, context) =>
1198
869
  await (0, import_smithy_client.collectBody)(output.body, context);
1199
870
  return contents;
1200
871
  }, "de_PauseCampaignCommand");
1201
- var de_PauseCampaignCommandError = /* @__PURE__ */ __name(async (output, context) => {
1202
- const parsedOutput = {
1203
- ...output,
1204
- body: await parseErrorBody(output.body, context)
1205
- };
1206
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1207
- switch (errorCode) {
1208
- case "AccessDeniedException":
1209
- case "com.amazonaws.connectcampaigns#AccessDeniedException":
1210
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1211
- case "ConflictException":
1212
- case "com.amazonaws.connectcampaigns#ConflictException":
1213
- throw await de_ConflictExceptionRes(parsedOutput, context);
1214
- case "InternalServerException":
1215
- case "com.amazonaws.connectcampaigns#InternalServerException":
1216
- throw await de_InternalServerExceptionRes(parsedOutput, context);
1217
- case "InvalidCampaignStateException":
1218
- case "com.amazonaws.connectcampaigns#InvalidCampaignStateException":
1219
- throw await de_InvalidCampaignStateExceptionRes(parsedOutput, context);
1220
- case "ResourceNotFoundException":
1221
- case "com.amazonaws.connectcampaigns#ResourceNotFoundException":
1222
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1223
- case "ThrottlingException":
1224
- case "com.amazonaws.connectcampaigns#ThrottlingException":
1225
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
1226
- case "ValidationException":
1227
- case "com.amazonaws.connectcampaigns#ValidationException":
1228
- throw await de_ValidationExceptionRes(parsedOutput, context);
1229
- default:
1230
- const parsedBody = parsedOutput.body;
1231
- return throwDefaultError({
1232
- output,
1233
- parsedBody,
1234
- errorCode
1235
- });
1236
- }
1237
- }, "de_PauseCampaignCommandError");
1238
872
  var de_PutDialRequestBatchCommand = /* @__PURE__ */ __name(async (output, context) => {
1239
873
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1240
- return de_PutDialRequestBatchCommandError(output, context);
874
+ return de_CommandError(output, context);
1241
875
  }
1242
876
  const contents = (0, import_smithy_client.map)({
1243
877
  $metadata: deserializeMetadata(output)
@@ -1250,46 +884,9 @@ var de_PutDialRequestBatchCommand = /* @__PURE__ */ __name(async (output, contex
1250
884
  Object.assign(contents, doc);
1251
885
  return contents;
1252
886
  }, "de_PutDialRequestBatchCommand");
1253
- var de_PutDialRequestBatchCommandError = /* @__PURE__ */ __name(async (output, context) => {
1254
- const parsedOutput = {
1255
- ...output,
1256
- body: await parseErrorBody(output.body, context)
1257
- };
1258
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1259
- switch (errorCode) {
1260
- case "AccessDeniedException":
1261
- case "com.amazonaws.connectcampaigns#AccessDeniedException":
1262
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1263
- case "ConflictException":
1264
- case "com.amazonaws.connectcampaigns#ConflictException":
1265
- throw await de_ConflictExceptionRes(parsedOutput, context);
1266
- case "InternalServerException":
1267
- case "com.amazonaws.connectcampaigns#InternalServerException":
1268
- throw await de_InternalServerExceptionRes(parsedOutput, context);
1269
- case "InvalidCampaignStateException":
1270
- case "com.amazonaws.connectcampaigns#InvalidCampaignStateException":
1271
- throw await de_InvalidCampaignStateExceptionRes(parsedOutput, context);
1272
- case "ResourceNotFoundException":
1273
- case "com.amazonaws.connectcampaigns#ResourceNotFoundException":
1274
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1275
- case "ThrottlingException":
1276
- case "com.amazonaws.connectcampaigns#ThrottlingException":
1277
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
1278
- case "ValidationException":
1279
- case "com.amazonaws.connectcampaigns#ValidationException":
1280
- throw await de_ValidationExceptionRes(parsedOutput, context);
1281
- default:
1282
- const parsedBody = parsedOutput.body;
1283
- return throwDefaultError({
1284
- output,
1285
- parsedBody,
1286
- errorCode
1287
- });
1288
- }
1289
- }, "de_PutDialRequestBatchCommandError");
1290
887
  var de_ResumeCampaignCommand = /* @__PURE__ */ __name(async (output, context) => {
1291
888
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1292
- return de_ResumeCampaignCommandError(output, context);
889
+ return de_CommandError(output, context);
1293
890
  }
1294
891
  const contents = (0, import_smithy_client.map)({
1295
892
  $metadata: deserializeMetadata(output)
@@ -1297,46 +894,9 @@ var de_ResumeCampaignCommand = /* @__PURE__ */ __name(async (output, context) =>
1297
894
  await (0, import_smithy_client.collectBody)(output.body, context);
1298
895
  return contents;
1299
896
  }, "de_ResumeCampaignCommand");
1300
- var de_ResumeCampaignCommandError = /* @__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 "AccessDeniedException":
1308
- case "com.amazonaws.connectcampaigns#AccessDeniedException":
1309
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1310
- case "ConflictException":
1311
- case "com.amazonaws.connectcampaigns#ConflictException":
1312
- throw await de_ConflictExceptionRes(parsedOutput, context);
1313
- case "InternalServerException":
1314
- case "com.amazonaws.connectcampaigns#InternalServerException":
1315
- throw await de_InternalServerExceptionRes(parsedOutput, context);
1316
- case "InvalidCampaignStateException":
1317
- case "com.amazonaws.connectcampaigns#InvalidCampaignStateException":
1318
- throw await de_InvalidCampaignStateExceptionRes(parsedOutput, context);
1319
- case "ResourceNotFoundException":
1320
- case "com.amazonaws.connectcampaigns#ResourceNotFoundException":
1321
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1322
- case "ThrottlingException":
1323
- case "com.amazonaws.connectcampaigns#ThrottlingException":
1324
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
1325
- case "ValidationException":
1326
- case "com.amazonaws.connectcampaigns#ValidationException":
1327
- throw await de_ValidationExceptionRes(parsedOutput, context);
1328
- default:
1329
- const parsedBody = parsedOutput.body;
1330
- return throwDefaultError({
1331
- output,
1332
- parsedBody,
1333
- errorCode
1334
- });
1335
- }
1336
- }, "de_ResumeCampaignCommandError");
1337
897
  var de_StartCampaignCommand = /* @__PURE__ */ __name(async (output, context) => {
1338
898
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1339
- return de_StartCampaignCommandError(output, context);
899
+ return de_CommandError(output, context);
1340
900
  }
1341
901
  const contents = (0, import_smithy_client.map)({
1342
902
  $metadata: deserializeMetadata(output)
@@ -1344,46 +904,9 @@ var de_StartCampaignCommand = /* @__PURE__ */ __name(async (output, context) =>
1344
904
  await (0, import_smithy_client.collectBody)(output.body, context);
1345
905
  return contents;
1346
906
  }, "de_StartCampaignCommand");
1347
- var de_StartCampaignCommandError = /* @__PURE__ */ __name(async (output, context) => {
1348
- const parsedOutput = {
1349
- ...output,
1350
- body: await parseErrorBody(output.body, context)
1351
- };
1352
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1353
- switch (errorCode) {
1354
- case "AccessDeniedException":
1355
- case "com.amazonaws.connectcampaigns#AccessDeniedException":
1356
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1357
- case "ConflictException":
1358
- case "com.amazonaws.connectcampaigns#ConflictException":
1359
- throw await de_ConflictExceptionRes(parsedOutput, context);
1360
- case "InternalServerException":
1361
- case "com.amazonaws.connectcampaigns#InternalServerException":
1362
- throw await de_InternalServerExceptionRes(parsedOutput, context);
1363
- case "InvalidCampaignStateException":
1364
- case "com.amazonaws.connectcampaigns#InvalidCampaignStateException":
1365
- throw await de_InvalidCampaignStateExceptionRes(parsedOutput, context);
1366
- case "ResourceNotFoundException":
1367
- case "com.amazonaws.connectcampaigns#ResourceNotFoundException":
1368
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1369
- case "ThrottlingException":
1370
- case "com.amazonaws.connectcampaigns#ThrottlingException":
1371
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
1372
- case "ValidationException":
1373
- case "com.amazonaws.connectcampaigns#ValidationException":
1374
- throw await de_ValidationExceptionRes(parsedOutput, context);
1375
- default:
1376
- const parsedBody = parsedOutput.body;
1377
- return throwDefaultError({
1378
- output,
1379
- parsedBody,
1380
- errorCode
1381
- });
1382
- }
1383
- }, "de_StartCampaignCommandError");
1384
907
  var de_StartInstanceOnboardingJobCommand = /* @__PURE__ */ __name(async (output, context) => {
1385
908
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1386
- return de_StartInstanceOnboardingJobCommandError(output, context);
909
+ return de_CommandError(output, context);
1387
910
  }
1388
911
  const contents = (0, import_smithy_client.map)({
1389
912
  $metadata: deserializeMetadata(output)
@@ -1395,43 +918,9 @@ var de_StartInstanceOnboardingJobCommand = /* @__PURE__ */ __name(async (output,
1395
918
  Object.assign(contents, doc);
1396
919
  return contents;
1397
920
  }, "de_StartInstanceOnboardingJobCommand");
1398
- var de_StartInstanceOnboardingJobCommandError = /* @__PURE__ */ __name(async (output, context) => {
1399
- const parsedOutput = {
1400
- ...output,
1401
- body: await parseErrorBody(output.body, context)
1402
- };
1403
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1404
- switch (errorCode) {
1405
- case "AccessDeniedException":
1406
- case "com.amazonaws.connectcampaigns#AccessDeniedException":
1407
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1408
- case "ConflictException":
1409
- case "com.amazonaws.connectcampaigns#ConflictException":
1410
- throw await de_ConflictExceptionRes(parsedOutput, context);
1411
- case "InternalServerException":
1412
- case "com.amazonaws.connectcampaigns#InternalServerException":
1413
- throw await de_InternalServerExceptionRes(parsedOutput, context);
1414
- case "ResourceNotFoundException":
1415
- case "com.amazonaws.connectcampaigns#ResourceNotFoundException":
1416
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1417
- case "ThrottlingException":
1418
- case "com.amazonaws.connectcampaigns#ThrottlingException":
1419
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
1420
- case "ValidationException":
1421
- case "com.amazonaws.connectcampaigns#ValidationException":
1422
- throw await de_ValidationExceptionRes(parsedOutput, context);
1423
- default:
1424
- const parsedBody = parsedOutput.body;
1425
- return throwDefaultError({
1426
- output,
1427
- parsedBody,
1428
- errorCode
1429
- });
1430
- }
1431
- }, "de_StartInstanceOnboardingJobCommandError");
1432
921
  var de_StopCampaignCommand = /* @__PURE__ */ __name(async (output, context) => {
1433
922
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1434
- return de_StopCampaignCommandError(output, context);
923
+ return de_CommandError(output, context);
1435
924
  }
1436
925
  const contents = (0, import_smithy_client.map)({
1437
926
  $metadata: deserializeMetadata(output)
@@ -1439,46 +928,9 @@ var de_StopCampaignCommand = /* @__PURE__ */ __name(async (output, context) => {
1439
928
  await (0, import_smithy_client.collectBody)(output.body, context);
1440
929
  return contents;
1441
930
  }, "de_StopCampaignCommand");
1442
- var de_StopCampaignCommandError = /* @__PURE__ */ __name(async (output, context) => {
1443
- const parsedOutput = {
1444
- ...output,
1445
- body: await parseErrorBody(output.body, context)
1446
- };
1447
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1448
- switch (errorCode) {
1449
- case "AccessDeniedException":
1450
- case "com.amazonaws.connectcampaigns#AccessDeniedException":
1451
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1452
- case "ConflictException":
1453
- case "com.amazonaws.connectcampaigns#ConflictException":
1454
- throw await de_ConflictExceptionRes(parsedOutput, context);
1455
- case "InternalServerException":
1456
- case "com.amazonaws.connectcampaigns#InternalServerException":
1457
- throw await de_InternalServerExceptionRes(parsedOutput, context);
1458
- case "InvalidCampaignStateException":
1459
- case "com.amazonaws.connectcampaigns#InvalidCampaignStateException":
1460
- throw await de_InvalidCampaignStateExceptionRes(parsedOutput, context);
1461
- case "ResourceNotFoundException":
1462
- case "com.amazonaws.connectcampaigns#ResourceNotFoundException":
1463
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1464
- case "ThrottlingException":
1465
- case "com.amazonaws.connectcampaigns#ThrottlingException":
1466
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
1467
- case "ValidationException":
1468
- case "com.amazonaws.connectcampaigns#ValidationException":
1469
- throw await de_ValidationExceptionRes(parsedOutput, context);
1470
- default:
1471
- const parsedBody = parsedOutput.body;
1472
- return throwDefaultError({
1473
- output,
1474
- parsedBody,
1475
- errorCode
1476
- });
1477
- }
1478
- }, "de_StopCampaignCommandError");
1479
931
  var de_TagResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
1480
932
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1481
- return de_TagResourceCommandError(output, context);
933
+ return de_CommandError(output, context);
1482
934
  }
1483
935
  const contents = (0, import_smithy_client.map)({
1484
936
  $metadata: deserializeMetadata(output)
@@ -1486,40 +938,9 @@ var de_TagResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
1486
938
  await (0, import_smithy_client.collectBody)(output.body, context);
1487
939
  return contents;
1488
940
  }, "de_TagResourceCommand");
1489
- var de_TagResourceCommandError = /* @__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 "AccessDeniedException":
1497
- case "com.amazonaws.connectcampaigns#AccessDeniedException":
1498
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1499
- case "InternalServerException":
1500
- case "com.amazonaws.connectcampaigns#InternalServerException":
1501
- throw await de_InternalServerExceptionRes(parsedOutput, context);
1502
- case "ResourceNotFoundException":
1503
- case "com.amazonaws.connectcampaigns#ResourceNotFoundException":
1504
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1505
- case "ThrottlingException":
1506
- case "com.amazonaws.connectcampaigns#ThrottlingException":
1507
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
1508
- case "ValidationException":
1509
- case "com.amazonaws.connectcampaigns#ValidationException":
1510
- throw await de_ValidationExceptionRes(parsedOutput, context);
1511
- default:
1512
- const parsedBody = parsedOutput.body;
1513
- return throwDefaultError({
1514
- output,
1515
- parsedBody,
1516
- errorCode
1517
- });
1518
- }
1519
- }, "de_TagResourceCommandError");
1520
941
  var de_UntagResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
1521
942
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1522
- return de_UntagResourceCommandError(output, context);
943
+ return de_CommandError(output, context);
1523
944
  }
1524
945
  const contents = (0, import_smithy_client.map)({
1525
946
  $metadata: deserializeMetadata(output)
@@ -1527,40 +948,9 @@ var de_UntagResourceCommand = /* @__PURE__ */ __name(async (output, context) =>
1527
948
  await (0, import_smithy_client.collectBody)(output.body, context);
1528
949
  return contents;
1529
950
  }, "de_UntagResourceCommand");
1530
- var de_UntagResourceCommandError = /* @__PURE__ */ __name(async (output, context) => {
1531
- const parsedOutput = {
1532
- ...output,
1533
- body: await parseErrorBody(output.body, context)
1534
- };
1535
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1536
- switch (errorCode) {
1537
- case "AccessDeniedException":
1538
- case "com.amazonaws.connectcampaigns#AccessDeniedException":
1539
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1540
- case "InternalServerException":
1541
- case "com.amazonaws.connectcampaigns#InternalServerException":
1542
- throw await de_InternalServerExceptionRes(parsedOutput, context);
1543
- case "ResourceNotFoundException":
1544
- case "com.amazonaws.connectcampaigns#ResourceNotFoundException":
1545
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1546
- case "ThrottlingException":
1547
- case "com.amazonaws.connectcampaigns#ThrottlingException":
1548
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
1549
- case "ValidationException":
1550
- case "com.amazonaws.connectcampaigns#ValidationException":
1551
- throw await de_ValidationExceptionRes(parsedOutput, context);
1552
- default:
1553
- const parsedBody = parsedOutput.body;
1554
- return throwDefaultError({
1555
- output,
1556
- parsedBody,
1557
- errorCode
1558
- });
1559
- }
1560
- }, "de_UntagResourceCommandError");
1561
951
  var de_UpdateCampaignDialerConfigCommand = /* @__PURE__ */ __name(async (output, context) => {
1562
952
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1563
- return de_UpdateCampaignDialerConfigCommandError(output, context);
953
+ return de_CommandError(output, context);
1564
954
  }
1565
955
  const contents = (0, import_smithy_client.map)({
1566
956
  $metadata: deserializeMetadata(output)
@@ -1568,40 +958,9 @@ var de_UpdateCampaignDialerConfigCommand = /* @__PURE__ */ __name(async (output,
1568
958
  await (0, import_smithy_client.collectBody)(output.body, context);
1569
959
  return contents;
1570
960
  }, "de_UpdateCampaignDialerConfigCommand");
1571
- var de_UpdateCampaignDialerConfigCommandError = /* @__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 "AccessDeniedException":
1579
- case "com.amazonaws.connectcampaigns#AccessDeniedException":
1580
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1581
- case "ConflictException":
1582
- case "com.amazonaws.connectcampaigns#ConflictException":
1583
- throw await de_ConflictExceptionRes(parsedOutput, context);
1584
- case "InternalServerException":
1585
- case "com.amazonaws.connectcampaigns#InternalServerException":
1586
- throw await de_InternalServerExceptionRes(parsedOutput, context);
1587
- case "ResourceNotFoundException":
1588
- case "com.amazonaws.connectcampaigns#ResourceNotFoundException":
1589
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1590
- case "ValidationException":
1591
- case "com.amazonaws.connectcampaigns#ValidationException":
1592
- throw await de_ValidationExceptionRes(parsedOutput, context);
1593
- default:
1594
- const parsedBody = parsedOutput.body;
1595
- return throwDefaultError({
1596
- output,
1597
- parsedBody,
1598
- errorCode
1599
- });
1600
- }
1601
- }, "de_UpdateCampaignDialerConfigCommandError");
1602
961
  var de_UpdateCampaignNameCommand = /* @__PURE__ */ __name(async (output, context) => {
1603
962
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1604
- return de_UpdateCampaignNameCommandError(output, context);
963
+ return de_CommandError(output, context);
1605
964
  }
1606
965
  const contents = (0, import_smithy_client.map)({
1607
966
  $metadata: deserializeMetadata(output)
@@ -1609,40 +968,9 @@ var de_UpdateCampaignNameCommand = /* @__PURE__ */ __name(async (output, context
1609
968
  await (0, import_smithy_client.collectBody)(output.body, context);
1610
969
  return contents;
1611
970
  }, "de_UpdateCampaignNameCommand");
1612
- var de_UpdateCampaignNameCommandError = /* @__PURE__ */ __name(async (output, context) => {
1613
- const parsedOutput = {
1614
- ...output,
1615
- body: await parseErrorBody(output.body, context)
1616
- };
1617
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1618
- switch (errorCode) {
1619
- case "AccessDeniedException":
1620
- case "com.amazonaws.connectcampaigns#AccessDeniedException":
1621
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1622
- case "ConflictException":
1623
- case "com.amazonaws.connectcampaigns#ConflictException":
1624
- throw await de_ConflictExceptionRes(parsedOutput, context);
1625
- case "InternalServerException":
1626
- case "com.amazonaws.connectcampaigns#InternalServerException":
1627
- throw await de_InternalServerExceptionRes(parsedOutput, context);
1628
- case "ResourceNotFoundException":
1629
- case "com.amazonaws.connectcampaigns#ResourceNotFoundException":
1630
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1631
- case "ValidationException":
1632
- case "com.amazonaws.connectcampaigns#ValidationException":
1633
- throw await de_ValidationExceptionRes(parsedOutput, context);
1634
- default:
1635
- const parsedBody = parsedOutput.body;
1636
- return throwDefaultError({
1637
- output,
1638
- parsedBody,
1639
- errorCode
1640
- });
1641
- }
1642
- }, "de_UpdateCampaignNameCommandError");
1643
971
  var de_UpdateCampaignOutboundCallConfigCommand = /* @__PURE__ */ __name(async (output, context) => {
1644
972
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1645
- return de_UpdateCampaignOutboundCallConfigCommandError(output, context);
973
+ return de_CommandError(output, context);
1646
974
  }
1647
975
  const contents = (0, import_smithy_client.map)({
1648
976
  $metadata: deserializeMetadata(output)
@@ -1650,7 +978,7 @@ var de_UpdateCampaignOutboundCallConfigCommand = /* @__PURE__ */ __name(async (o
1650
978
  await (0, import_smithy_client.collectBody)(output.body, context);
1651
979
  return contents;
1652
980
  }, "de_UpdateCampaignOutboundCallConfigCommand");
1653
- var de_UpdateCampaignOutboundCallConfigCommandError = /* @__PURE__ */ __name(async (output, context) => {
981
+ var de_CommandError = /* @__PURE__ */ __name(async (output, context) => {
1654
982
  const parsedOutput = {
1655
983
  ...output,
1656
984
  body: await parseErrorBody(output.body, context)
@@ -1669,12 +997,21 @@ var de_UpdateCampaignOutboundCallConfigCommandError = /* @__PURE__ */ __name(asy
1669
997
  case "ResourceNotFoundException":
1670
998
  case "com.amazonaws.connectcampaigns#ResourceNotFoundException":
1671
999
  throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1000
+ case "ServiceQuotaExceededException":
1001
+ case "com.amazonaws.connectcampaigns#ServiceQuotaExceededException":
1002
+ throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
1672
1003
  case "ThrottlingException":
1673
1004
  case "com.amazonaws.connectcampaigns#ThrottlingException":
1674
1005
  throw await de_ThrottlingExceptionRes(parsedOutput, context);
1675
1006
  case "ValidationException":
1676
1007
  case "com.amazonaws.connectcampaigns#ValidationException":
1677
1008
  throw await de_ValidationExceptionRes(parsedOutput, context);
1009
+ case "InvalidStateException":
1010
+ case "com.amazonaws.connectcampaigns#InvalidStateException":
1011
+ throw await de_InvalidStateExceptionRes(parsedOutput, context);
1012
+ case "InvalidCampaignStateException":
1013
+ case "com.amazonaws.connectcampaigns#InvalidCampaignStateException":
1014
+ throw await de_InvalidCampaignStateExceptionRes(parsedOutput, context);
1678
1015
  default:
1679
1016
  const parsedBody = parsedOutput.body;
1680
1017
  return throwDefaultError({
@@ -1683,7 +1020,7 @@ var de_UpdateCampaignOutboundCallConfigCommandError = /* @__PURE__ */ __name(asy
1683
1020
  errorCode
1684
1021
  });
1685
1022
  }
1686
- }, "de_UpdateCampaignOutboundCallConfigCommandError");
1023
+ }, "de_CommandError");
1687
1024
  var throwDefaultError = (0, import_smithy_client.withBaseException)(ConnectCampaignsServiceException);
1688
1025
  var de_AccessDeniedExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
1689
1026
  const contents = (0, import_smithy_client.map)({