@aws-sdk/client-route53-recovery-readiness 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
@@ -717,7 +717,7 @@ var se_UpdateResourceSetCommand = /* @__PURE__ */ __name(async (input, context)
717
717
  }, "se_UpdateResourceSetCommand");
718
718
  var de_CreateCellCommand = /* @__PURE__ */ __name(async (output, context) => {
719
719
  if (output.statusCode !== 200 && output.statusCode >= 300) {
720
- return de_CreateCellCommandError(output, context);
720
+ return de_CommandError(output, context);
721
721
  }
722
722
  const contents = (0, import_smithy_client.map)({
723
723
  $metadata: deserializeMetadata(output)
@@ -733,40 +733,9 @@ var de_CreateCellCommand = /* @__PURE__ */ __name(async (output, context) => {
733
733
  Object.assign(contents, doc);
734
734
  return contents;
735
735
  }, "de_CreateCellCommand");
736
- var de_CreateCellCommandError = /* @__PURE__ */ __name(async (output, context) => {
737
- const parsedOutput = {
738
- ...output,
739
- body: await parseErrorBody(output.body, context)
740
- };
741
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
742
- switch (errorCode) {
743
- case "AccessDeniedException":
744
- case "com.amazonaws.route53recoveryreadiness#AccessDeniedException":
745
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
746
- case "ConflictException":
747
- case "com.amazonaws.route53recoveryreadiness#ConflictException":
748
- throw await de_ConflictExceptionRes(parsedOutput, context);
749
- case "InternalServerException":
750
- case "com.amazonaws.route53recoveryreadiness#InternalServerException":
751
- throw await de_InternalServerExceptionRes(parsedOutput, context);
752
- case "ThrottlingException":
753
- case "com.amazonaws.route53recoveryreadiness#ThrottlingException":
754
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
755
- case "ValidationException":
756
- case "com.amazonaws.route53recoveryreadiness#ValidationException":
757
- throw await de_ValidationExceptionRes(parsedOutput, context);
758
- default:
759
- const parsedBody = parsedOutput.body;
760
- return throwDefaultError({
761
- output,
762
- parsedBody,
763
- errorCode
764
- });
765
- }
766
- }, "de_CreateCellCommandError");
767
736
  var de_CreateCrossAccountAuthorizationCommand = /* @__PURE__ */ __name(async (output, context) => {
768
737
  if (output.statusCode !== 200 && output.statusCode >= 300) {
769
- return de_CreateCrossAccountAuthorizationCommandError(output, context);
738
+ return de_CommandError(output, context);
770
739
  }
771
740
  const contents = (0, import_smithy_client.map)({
772
741
  $metadata: deserializeMetadata(output)
@@ -778,40 +747,9 @@ var de_CreateCrossAccountAuthorizationCommand = /* @__PURE__ */ __name(async (ou
778
747
  Object.assign(contents, doc);
779
748
  return contents;
780
749
  }, "de_CreateCrossAccountAuthorizationCommand");
781
- var de_CreateCrossAccountAuthorizationCommandError = /* @__PURE__ */ __name(async (output, context) => {
782
- const parsedOutput = {
783
- ...output,
784
- body: await parseErrorBody(output.body, context)
785
- };
786
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
787
- switch (errorCode) {
788
- case "AccessDeniedException":
789
- case "com.amazonaws.route53recoveryreadiness#AccessDeniedException":
790
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
791
- case "ConflictException":
792
- case "com.amazonaws.route53recoveryreadiness#ConflictException":
793
- throw await de_ConflictExceptionRes(parsedOutput, context);
794
- case "InternalServerException":
795
- case "com.amazonaws.route53recoveryreadiness#InternalServerException":
796
- throw await de_InternalServerExceptionRes(parsedOutput, context);
797
- case "ThrottlingException":
798
- case "com.amazonaws.route53recoveryreadiness#ThrottlingException":
799
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
800
- case "ValidationException":
801
- case "com.amazonaws.route53recoveryreadiness#ValidationException":
802
- throw await de_ValidationExceptionRes(parsedOutput, context);
803
- default:
804
- const parsedBody = parsedOutput.body;
805
- return throwDefaultError({
806
- output,
807
- parsedBody,
808
- errorCode
809
- });
810
- }
811
- }, "de_CreateCrossAccountAuthorizationCommandError");
812
750
  var de_CreateReadinessCheckCommand = /* @__PURE__ */ __name(async (output, context) => {
813
751
  if (output.statusCode !== 200 && output.statusCode >= 300) {
814
- return de_CreateReadinessCheckCommandError(output, context);
752
+ return de_CommandError(output, context);
815
753
  }
816
754
  const contents = (0, import_smithy_client.map)({
817
755
  $metadata: deserializeMetadata(output)
@@ -826,40 +764,9 @@ var de_CreateReadinessCheckCommand = /* @__PURE__ */ __name(async (output, conte
826
764
  Object.assign(contents, doc);
827
765
  return contents;
828
766
  }, "de_CreateReadinessCheckCommand");
829
- var de_CreateReadinessCheckCommandError = /* @__PURE__ */ __name(async (output, context) => {
830
- const parsedOutput = {
831
- ...output,
832
- body: await parseErrorBody(output.body, context)
833
- };
834
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
835
- switch (errorCode) {
836
- case "AccessDeniedException":
837
- case "com.amazonaws.route53recoveryreadiness#AccessDeniedException":
838
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
839
- case "ConflictException":
840
- case "com.amazonaws.route53recoveryreadiness#ConflictException":
841
- throw await de_ConflictExceptionRes(parsedOutput, context);
842
- case "InternalServerException":
843
- case "com.amazonaws.route53recoveryreadiness#InternalServerException":
844
- throw await de_InternalServerExceptionRes(parsedOutput, context);
845
- case "ThrottlingException":
846
- case "com.amazonaws.route53recoveryreadiness#ThrottlingException":
847
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
848
- case "ValidationException":
849
- case "com.amazonaws.route53recoveryreadiness#ValidationException":
850
- throw await de_ValidationExceptionRes(parsedOutput, context);
851
- default:
852
- const parsedBody = parsedOutput.body;
853
- return throwDefaultError({
854
- output,
855
- parsedBody,
856
- errorCode
857
- });
858
- }
859
- }, "de_CreateReadinessCheckCommandError");
860
767
  var de_CreateRecoveryGroupCommand = /* @__PURE__ */ __name(async (output, context) => {
861
768
  if (output.statusCode !== 200 && output.statusCode >= 300) {
862
- return de_CreateRecoveryGroupCommandError(output, context);
769
+ return de_CommandError(output, context);
863
770
  }
864
771
  const contents = (0, import_smithy_client.map)({
865
772
  $metadata: deserializeMetadata(output)
@@ -874,40 +781,9 @@ var de_CreateRecoveryGroupCommand = /* @__PURE__ */ __name(async (output, contex
874
781
  Object.assign(contents, doc);
875
782
  return contents;
876
783
  }, "de_CreateRecoveryGroupCommand");
877
- var de_CreateRecoveryGroupCommandError = /* @__PURE__ */ __name(async (output, context) => {
878
- const parsedOutput = {
879
- ...output,
880
- body: await parseErrorBody(output.body, context)
881
- };
882
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
883
- switch (errorCode) {
884
- case "AccessDeniedException":
885
- case "com.amazonaws.route53recoveryreadiness#AccessDeniedException":
886
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
887
- case "ConflictException":
888
- case "com.amazonaws.route53recoveryreadiness#ConflictException":
889
- throw await de_ConflictExceptionRes(parsedOutput, context);
890
- case "InternalServerException":
891
- case "com.amazonaws.route53recoveryreadiness#InternalServerException":
892
- throw await de_InternalServerExceptionRes(parsedOutput, context);
893
- case "ThrottlingException":
894
- case "com.amazonaws.route53recoveryreadiness#ThrottlingException":
895
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
896
- case "ValidationException":
897
- case "com.amazonaws.route53recoveryreadiness#ValidationException":
898
- throw await de_ValidationExceptionRes(parsedOutput, context);
899
- default:
900
- const parsedBody = parsedOutput.body;
901
- return throwDefaultError({
902
- output,
903
- parsedBody,
904
- errorCode
905
- });
906
- }
907
- }, "de_CreateRecoveryGroupCommandError");
908
784
  var de_CreateResourceSetCommand = /* @__PURE__ */ __name(async (output, context) => {
909
785
  if (output.statusCode !== 200 && output.statusCode >= 300) {
910
- return de_CreateResourceSetCommandError(output, context);
786
+ return de_CommandError(output, context);
911
787
  }
912
788
  const contents = (0, import_smithy_client.map)({
913
789
  $metadata: deserializeMetadata(output)
@@ -923,40 +799,9 @@ var de_CreateResourceSetCommand = /* @__PURE__ */ __name(async (output, context)
923
799
  Object.assign(contents, doc);
924
800
  return contents;
925
801
  }, "de_CreateResourceSetCommand");
926
- var de_CreateResourceSetCommandError = /* @__PURE__ */ __name(async (output, context) => {
927
- const parsedOutput = {
928
- ...output,
929
- body: await parseErrorBody(output.body, context)
930
- };
931
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
932
- switch (errorCode) {
933
- case "AccessDeniedException":
934
- case "com.amazonaws.route53recoveryreadiness#AccessDeniedException":
935
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
936
- case "ConflictException":
937
- case "com.amazonaws.route53recoveryreadiness#ConflictException":
938
- throw await de_ConflictExceptionRes(parsedOutput, context);
939
- case "InternalServerException":
940
- case "com.amazonaws.route53recoveryreadiness#InternalServerException":
941
- throw await de_InternalServerExceptionRes(parsedOutput, context);
942
- case "ThrottlingException":
943
- case "com.amazonaws.route53recoveryreadiness#ThrottlingException":
944
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
945
- case "ValidationException":
946
- case "com.amazonaws.route53recoveryreadiness#ValidationException":
947
- throw await de_ValidationExceptionRes(parsedOutput, context);
948
- default:
949
- const parsedBody = parsedOutput.body;
950
- return throwDefaultError({
951
- output,
952
- parsedBody,
953
- errorCode
954
- });
955
- }
956
- }, "de_CreateResourceSetCommandError");
957
802
  var de_DeleteCellCommand = /* @__PURE__ */ __name(async (output, context) => {
958
803
  if (output.statusCode !== 204 && output.statusCode >= 300) {
959
- return de_DeleteCellCommandError(output, context);
804
+ return de_CommandError(output, context);
960
805
  }
961
806
  const contents = (0, import_smithy_client.map)({
962
807
  $metadata: deserializeMetadata(output)
@@ -964,40 +809,9 @@ var de_DeleteCellCommand = /* @__PURE__ */ __name(async (output, context) => {
964
809
  await (0, import_smithy_client.collectBody)(output.body, context);
965
810
  return contents;
966
811
  }, "de_DeleteCellCommand");
967
- var de_DeleteCellCommandError = /* @__PURE__ */ __name(async (output, context) => {
968
- const parsedOutput = {
969
- ...output,
970
- body: await parseErrorBody(output.body, context)
971
- };
972
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
973
- switch (errorCode) {
974
- case "AccessDeniedException":
975
- case "com.amazonaws.route53recoveryreadiness#AccessDeniedException":
976
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
977
- case "InternalServerException":
978
- case "com.amazonaws.route53recoveryreadiness#InternalServerException":
979
- throw await de_InternalServerExceptionRes(parsedOutput, context);
980
- case "ResourceNotFoundException":
981
- case "com.amazonaws.route53recoveryreadiness#ResourceNotFoundException":
982
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
983
- case "ThrottlingException":
984
- case "com.amazonaws.route53recoveryreadiness#ThrottlingException":
985
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
986
- case "ValidationException":
987
- case "com.amazonaws.route53recoveryreadiness#ValidationException":
988
- throw await de_ValidationExceptionRes(parsedOutput, context);
989
- default:
990
- const parsedBody = parsedOutput.body;
991
- return throwDefaultError({
992
- output,
993
- parsedBody,
994
- errorCode
995
- });
996
- }
997
- }, "de_DeleteCellCommandError");
998
812
  var de_DeleteCrossAccountAuthorizationCommand = /* @__PURE__ */ __name(async (output, context) => {
999
813
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1000
- return de_DeleteCrossAccountAuthorizationCommandError(output, context);
814
+ return de_CommandError(output, context);
1001
815
  }
1002
816
  const contents = (0, import_smithy_client.map)({
1003
817
  $metadata: deserializeMetadata(output)
@@ -1005,37 +819,9 @@ var de_DeleteCrossAccountAuthorizationCommand = /* @__PURE__ */ __name(async (ou
1005
819
  await (0, import_smithy_client.collectBody)(output.body, context);
1006
820
  return contents;
1007
821
  }, "de_DeleteCrossAccountAuthorizationCommand");
1008
- var de_DeleteCrossAccountAuthorizationCommandError = /* @__PURE__ */ __name(async (output, context) => {
1009
- const parsedOutput = {
1010
- ...output,
1011
- body: await parseErrorBody(output.body, context)
1012
- };
1013
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1014
- switch (errorCode) {
1015
- case "AccessDeniedException":
1016
- case "com.amazonaws.route53recoveryreadiness#AccessDeniedException":
1017
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1018
- case "InternalServerException":
1019
- case "com.amazonaws.route53recoveryreadiness#InternalServerException":
1020
- throw await de_InternalServerExceptionRes(parsedOutput, context);
1021
- case "ThrottlingException":
1022
- case "com.amazonaws.route53recoveryreadiness#ThrottlingException":
1023
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
1024
- case "ValidationException":
1025
- case "com.amazonaws.route53recoveryreadiness#ValidationException":
1026
- throw await de_ValidationExceptionRes(parsedOutput, context);
1027
- default:
1028
- const parsedBody = parsedOutput.body;
1029
- return throwDefaultError({
1030
- output,
1031
- parsedBody,
1032
- errorCode
1033
- });
1034
- }
1035
- }, "de_DeleteCrossAccountAuthorizationCommandError");
1036
822
  var de_DeleteReadinessCheckCommand = /* @__PURE__ */ __name(async (output, context) => {
1037
823
  if (output.statusCode !== 204 && output.statusCode >= 300) {
1038
- return de_DeleteReadinessCheckCommandError(output, context);
824
+ return de_CommandError(output, context);
1039
825
  }
1040
826
  const contents = (0, import_smithy_client.map)({
1041
827
  $metadata: deserializeMetadata(output)
@@ -1043,40 +829,9 @@ var de_DeleteReadinessCheckCommand = /* @__PURE__ */ __name(async (output, conte
1043
829
  await (0, import_smithy_client.collectBody)(output.body, context);
1044
830
  return contents;
1045
831
  }, "de_DeleteReadinessCheckCommand");
1046
- var de_DeleteReadinessCheckCommandError = /* @__PURE__ */ __name(async (output, context) => {
1047
- const parsedOutput = {
1048
- ...output,
1049
- body: await parseErrorBody(output.body, context)
1050
- };
1051
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1052
- switch (errorCode) {
1053
- case "AccessDeniedException":
1054
- case "com.amazonaws.route53recoveryreadiness#AccessDeniedException":
1055
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1056
- case "InternalServerException":
1057
- case "com.amazonaws.route53recoveryreadiness#InternalServerException":
1058
- throw await de_InternalServerExceptionRes(parsedOutput, context);
1059
- case "ResourceNotFoundException":
1060
- case "com.amazonaws.route53recoveryreadiness#ResourceNotFoundException":
1061
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1062
- case "ThrottlingException":
1063
- case "com.amazonaws.route53recoveryreadiness#ThrottlingException":
1064
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
1065
- case "ValidationException":
1066
- case "com.amazonaws.route53recoveryreadiness#ValidationException":
1067
- throw await de_ValidationExceptionRes(parsedOutput, context);
1068
- default:
1069
- const parsedBody = parsedOutput.body;
1070
- return throwDefaultError({
1071
- output,
1072
- parsedBody,
1073
- errorCode
1074
- });
1075
- }
1076
- }, "de_DeleteReadinessCheckCommandError");
1077
832
  var de_DeleteRecoveryGroupCommand = /* @__PURE__ */ __name(async (output, context) => {
1078
833
  if (output.statusCode !== 204 && output.statusCode >= 300) {
1079
- return de_DeleteRecoveryGroupCommandError(output, context);
834
+ return de_CommandError(output, context);
1080
835
  }
1081
836
  const contents = (0, import_smithy_client.map)({
1082
837
  $metadata: deserializeMetadata(output)
@@ -1084,40 +839,9 @@ var de_DeleteRecoveryGroupCommand = /* @__PURE__ */ __name(async (output, contex
1084
839
  await (0, import_smithy_client.collectBody)(output.body, context);
1085
840
  return contents;
1086
841
  }, "de_DeleteRecoveryGroupCommand");
1087
- var de_DeleteRecoveryGroupCommandError = /* @__PURE__ */ __name(async (output, context) => {
1088
- const parsedOutput = {
1089
- ...output,
1090
- body: await parseErrorBody(output.body, context)
1091
- };
1092
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1093
- switch (errorCode) {
1094
- case "AccessDeniedException":
1095
- case "com.amazonaws.route53recoveryreadiness#AccessDeniedException":
1096
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1097
- case "InternalServerException":
1098
- case "com.amazonaws.route53recoveryreadiness#InternalServerException":
1099
- throw await de_InternalServerExceptionRes(parsedOutput, context);
1100
- case "ResourceNotFoundException":
1101
- case "com.amazonaws.route53recoveryreadiness#ResourceNotFoundException":
1102
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1103
- case "ThrottlingException":
1104
- case "com.amazonaws.route53recoveryreadiness#ThrottlingException":
1105
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
1106
- case "ValidationException":
1107
- case "com.amazonaws.route53recoveryreadiness#ValidationException":
1108
- throw await de_ValidationExceptionRes(parsedOutput, context);
1109
- default:
1110
- const parsedBody = parsedOutput.body;
1111
- return throwDefaultError({
1112
- output,
1113
- parsedBody,
1114
- errorCode
1115
- });
1116
- }
1117
- }, "de_DeleteRecoveryGroupCommandError");
1118
842
  var de_DeleteResourceSetCommand = /* @__PURE__ */ __name(async (output, context) => {
1119
843
  if (output.statusCode !== 204 && output.statusCode >= 300) {
1120
- return de_DeleteResourceSetCommandError(output, context);
844
+ return de_CommandError(output, context);
1121
845
  }
1122
846
  const contents = (0, import_smithy_client.map)({
1123
847
  $metadata: deserializeMetadata(output)
@@ -1125,40 +849,9 @@ var de_DeleteResourceSetCommand = /* @__PURE__ */ __name(async (output, context)
1125
849
  await (0, import_smithy_client.collectBody)(output.body, context);
1126
850
  return contents;
1127
851
  }, "de_DeleteResourceSetCommand");
1128
- var de_DeleteResourceSetCommandError = /* @__PURE__ */ __name(async (output, context) => {
1129
- const parsedOutput = {
1130
- ...output,
1131
- body: await parseErrorBody(output.body, context)
1132
- };
1133
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1134
- switch (errorCode) {
1135
- case "AccessDeniedException":
1136
- case "com.amazonaws.route53recoveryreadiness#AccessDeniedException":
1137
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1138
- case "InternalServerException":
1139
- case "com.amazonaws.route53recoveryreadiness#InternalServerException":
1140
- throw await de_InternalServerExceptionRes(parsedOutput, context);
1141
- case "ResourceNotFoundException":
1142
- case "com.amazonaws.route53recoveryreadiness#ResourceNotFoundException":
1143
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1144
- case "ThrottlingException":
1145
- case "com.amazonaws.route53recoveryreadiness#ThrottlingException":
1146
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
1147
- case "ValidationException":
1148
- case "com.amazonaws.route53recoveryreadiness#ValidationException":
1149
- throw await de_ValidationExceptionRes(parsedOutput, context);
1150
- default:
1151
- const parsedBody = parsedOutput.body;
1152
- return throwDefaultError({
1153
- output,
1154
- parsedBody,
1155
- errorCode
1156
- });
1157
- }
1158
- }, "de_DeleteResourceSetCommandError");
1159
852
  var de_GetArchitectureRecommendationsCommand = /* @__PURE__ */ __name(async (output, context) => {
1160
853
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1161
- return de_GetArchitectureRecommendationsCommandError(output, context);
854
+ return de_CommandError(output, context);
1162
855
  }
1163
856
  const contents = (0, import_smithy_client.map)({
1164
857
  $metadata: deserializeMetadata(output)
@@ -1172,40 +865,9 @@ var de_GetArchitectureRecommendationsCommand = /* @__PURE__ */ __name(async (out
1172
865
  Object.assign(contents, doc);
1173
866
  return contents;
1174
867
  }, "de_GetArchitectureRecommendationsCommand");
1175
- var de_GetArchitectureRecommendationsCommandError = /* @__PURE__ */ __name(async (output, context) => {
1176
- const parsedOutput = {
1177
- ...output,
1178
- body: await parseErrorBody(output.body, context)
1179
- };
1180
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1181
- switch (errorCode) {
1182
- case "AccessDeniedException":
1183
- case "com.amazonaws.route53recoveryreadiness#AccessDeniedException":
1184
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1185
- case "InternalServerException":
1186
- case "com.amazonaws.route53recoveryreadiness#InternalServerException":
1187
- throw await de_InternalServerExceptionRes(parsedOutput, context);
1188
- case "ResourceNotFoundException":
1189
- case "com.amazonaws.route53recoveryreadiness#ResourceNotFoundException":
1190
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1191
- case "ThrottlingException":
1192
- case "com.amazonaws.route53recoveryreadiness#ThrottlingException":
1193
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
1194
- case "ValidationException":
1195
- case "com.amazonaws.route53recoveryreadiness#ValidationException":
1196
- throw await de_ValidationExceptionRes(parsedOutput, context);
1197
- default:
1198
- const parsedBody = parsedOutput.body;
1199
- return throwDefaultError({
1200
- output,
1201
- parsedBody,
1202
- errorCode
1203
- });
1204
- }
1205
- }, "de_GetArchitectureRecommendationsCommandError");
1206
868
  var de_GetCellCommand = /* @__PURE__ */ __name(async (output, context) => {
1207
869
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1208
- return de_GetCellCommandError(output, context);
870
+ return de_CommandError(output, context);
1209
871
  }
1210
872
  const contents = (0, import_smithy_client.map)({
1211
873
  $metadata: deserializeMetadata(output)
@@ -1221,40 +883,9 @@ var de_GetCellCommand = /* @__PURE__ */ __name(async (output, context) => {
1221
883
  Object.assign(contents, doc);
1222
884
  return contents;
1223
885
  }, "de_GetCellCommand");
1224
- var de_GetCellCommandError = /* @__PURE__ */ __name(async (output, context) => {
1225
- const parsedOutput = {
1226
- ...output,
1227
- body: await parseErrorBody(output.body, context)
1228
- };
1229
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1230
- switch (errorCode) {
1231
- case "AccessDeniedException":
1232
- case "com.amazonaws.route53recoveryreadiness#AccessDeniedException":
1233
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1234
- case "InternalServerException":
1235
- case "com.amazonaws.route53recoveryreadiness#InternalServerException":
1236
- throw await de_InternalServerExceptionRes(parsedOutput, context);
1237
- case "ResourceNotFoundException":
1238
- case "com.amazonaws.route53recoveryreadiness#ResourceNotFoundException":
1239
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1240
- case "ThrottlingException":
1241
- case "com.amazonaws.route53recoveryreadiness#ThrottlingException":
1242
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
1243
- case "ValidationException":
1244
- case "com.amazonaws.route53recoveryreadiness#ValidationException":
1245
- throw await de_ValidationExceptionRes(parsedOutput, context);
1246
- default:
1247
- const parsedBody = parsedOutput.body;
1248
- return throwDefaultError({
1249
- output,
1250
- parsedBody,
1251
- errorCode
1252
- });
1253
- }
1254
- }, "de_GetCellCommandError");
1255
886
  var de_GetCellReadinessSummaryCommand = /* @__PURE__ */ __name(async (output, context) => {
1256
887
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1257
- return de_GetCellReadinessSummaryCommandError(output, context);
888
+ return de_CommandError(output, context);
1258
889
  }
1259
890
  const contents = (0, import_smithy_client.map)({
1260
891
  $metadata: deserializeMetadata(output)
@@ -1263,93 +894,31 @@ var de_GetCellReadinessSummaryCommand = /* @__PURE__ */ __name(async (output, co
1263
894
  const doc = (0, import_smithy_client.take)(data, {
1264
895
  NextToken: [, import_smithy_client.expectString, `nextToken`],
1265
896
  Readiness: [, import_smithy_client.expectString, `readiness`],
1266
- ReadinessChecks: [, (_) => de___listOfReadinessCheckSummary(_, context), `readinessChecks`]
1267
- });
1268
- Object.assign(contents, doc);
1269
- return contents;
1270
- }, "de_GetCellReadinessSummaryCommand");
1271
- var de_GetCellReadinessSummaryCommandError = /* @__PURE__ */ __name(async (output, context) => {
1272
- const parsedOutput = {
1273
- ...output,
1274
- body: await parseErrorBody(output.body, context)
1275
- };
1276
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1277
- switch (errorCode) {
1278
- case "AccessDeniedException":
1279
- case "com.amazonaws.route53recoveryreadiness#AccessDeniedException":
1280
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1281
- case "InternalServerException":
1282
- case "com.amazonaws.route53recoveryreadiness#InternalServerException":
1283
- throw await de_InternalServerExceptionRes(parsedOutput, context);
1284
- case "ResourceNotFoundException":
1285
- case "com.amazonaws.route53recoveryreadiness#ResourceNotFoundException":
1286
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1287
- case "ThrottlingException":
1288
- case "com.amazonaws.route53recoveryreadiness#ThrottlingException":
1289
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
1290
- case "ValidationException":
1291
- case "com.amazonaws.route53recoveryreadiness#ValidationException":
1292
- throw await de_ValidationExceptionRes(parsedOutput, context);
1293
- default:
1294
- const parsedBody = parsedOutput.body;
1295
- return throwDefaultError({
1296
- output,
1297
- parsedBody,
1298
- errorCode
1299
- });
1300
- }
1301
- }, "de_GetCellReadinessSummaryCommandError");
1302
- var de_GetReadinessCheckCommand = /* @__PURE__ */ __name(async (output, context) => {
1303
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1304
- return de_GetReadinessCheckCommandError(output, context);
1305
- }
1306
- const contents = (0, import_smithy_client.map)({
1307
- $metadata: deserializeMetadata(output)
1308
- });
1309
- const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
1310
- const doc = (0, import_smithy_client.take)(data, {
1311
- ReadinessCheckArn: [, import_smithy_client.expectString, `readinessCheckArn`],
1312
- ReadinessCheckName: [, import_smithy_client.expectString, `readinessCheckName`],
1313
- ResourceSet: [, import_smithy_client.expectString, `resourceSet`],
1314
- Tags: [, import_smithy_client._json, `tags`]
1315
- });
1316
- Object.assign(contents, doc);
1317
- return contents;
1318
- }, "de_GetReadinessCheckCommand");
1319
- var de_GetReadinessCheckCommandError = /* @__PURE__ */ __name(async (output, context) => {
1320
- const parsedOutput = {
1321
- ...output,
1322
- body: await parseErrorBody(output.body, context)
1323
- };
1324
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1325
- switch (errorCode) {
1326
- case "AccessDeniedException":
1327
- case "com.amazonaws.route53recoveryreadiness#AccessDeniedException":
1328
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1329
- case "InternalServerException":
1330
- case "com.amazonaws.route53recoveryreadiness#InternalServerException":
1331
- throw await de_InternalServerExceptionRes(parsedOutput, context);
1332
- case "ResourceNotFoundException":
1333
- case "com.amazonaws.route53recoveryreadiness#ResourceNotFoundException":
1334
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1335
- case "ThrottlingException":
1336
- case "com.amazonaws.route53recoveryreadiness#ThrottlingException":
1337
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
1338
- case "ValidationException":
1339
- case "com.amazonaws.route53recoveryreadiness#ValidationException":
1340
- throw await de_ValidationExceptionRes(parsedOutput, context);
1341
- default:
1342
- const parsedBody = parsedOutput.body;
1343
- return throwDefaultError({
1344
- output,
1345
- parsedBody,
1346
- errorCode
1347
- });
897
+ ReadinessChecks: [, (_) => de___listOfReadinessCheckSummary(_, context), `readinessChecks`]
898
+ });
899
+ Object.assign(contents, doc);
900
+ return contents;
901
+ }, "de_GetCellReadinessSummaryCommand");
902
+ var de_GetReadinessCheckCommand = /* @__PURE__ */ __name(async (output, context) => {
903
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
904
+ return de_CommandError(output, context);
1348
905
  }
1349
- }, "de_GetReadinessCheckCommandError");
906
+ const contents = (0, import_smithy_client.map)({
907
+ $metadata: deserializeMetadata(output)
908
+ });
909
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
910
+ const doc = (0, import_smithy_client.take)(data, {
911
+ ReadinessCheckArn: [, import_smithy_client.expectString, `readinessCheckArn`],
912
+ ReadinessCheckName: [, import_smithy_client.expectString, `readinessCheckName`],
913
+ ResourceSet: [, import_smithy_client.expectString, `resourceSet`],
914
+ Tags: [, import_smithy_client._json, `tags`]
915
+ });
916
+ Object.assign(contents, doc);
917
+ return contents;
918
+ }, "de_GetReadinessCheckCommand");
1350
919
  var de_GetReadinessCheckResourceStatusCommand = /* @__PURE__ */ __name(async (output, context) => {
1351
920
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1352
- return de_GetReadinessCheckResourceStatusCommandError(output, context);
921
+ return de_CommandError(output, context);
1353
922
  }
1354
923
  const contents = (0, import_smithy_client.map)({
1355
924
  $metadata: deserializeMetadata(output)
@@ -1363,40 +932,9 @@ var de_GetReadinessCheckResourceStatusCommand = /* @__PURE__ */ __name(async (ou
1363
932
  Object.assign(contents, doc);
1364
933
  return contents;
1365
934
  }, "de_GetReadinessCheckResourceStatusCommand");
1366
- var de_GetReadinessCheckResourceStatusCommandError = /* @__PURE__ */ __name(async (output, context) => {
1367
- const parsedOutput = {
1368
- ...output,
1369
- body: await parseErrorBody(output.body, context)
1370
- };
1371
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1372
- switch (errorCode) {
1373
- case "AccessDeniedException":
1374
- case "com.amazonaws.route53recoveryreadiness#AccessDeniedException":
1375
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1376
- case "InternalServerException":
1377
- case "com.amazonaws.route53recoveryreadiness#InternalServerException":
1378
- throw await de_InternalServerExceptionRes(parsedOutput, context);
1379
- case "ResourceNotFoundException":
1380
- case "com.amazonaws.route53recoveryreadiness#ResourceNotFoundException":
1381
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1382
- case "ThrottlingException":
1383
- case "com.amazonaws.route53recoveryreadiness#ThrottlingException":
1384
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
1385
- case "ValidationException":
1386
- case "com.amazonaws.route53recoveryreadiness#ValidationException":
1387
- throw await de_ValidationExceptionRes(parsedOutput, context);
1388
- default:
1389
- const parsedBody = parsedOutput.body;
1390
- return throwDefaultError({
1391
- output,
1392
- parsedBody,
1393
- errorCode
1394
- });
1395
- }
1396
- }, "de_GetReadinessCheckResourceStatusCommandError");
1397
935
  var de_GetReadinessCheckStatusCommand = /* @__PURE__ */ __name(async (output, context) => {
1398
936
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1399
- return de_GetReadinessCheckStatusCommandError(output, context);
937
+ return de_CommandError(output, context);
1400
938
  }
1401
939
  const contents = (0, import_smithy_client.map)({
1402
940
  $metadata: deserializeMetadata(output)
@@ -1411,40 +949,9 @@ var de_GetReadinessCheckStatusCommand = /* @__PURE__ */ __name(async (output, co
1411
949
  Object.assign(contents, doc);
1412
950
  return contents;
1413
951
  }, "de_GetReadinessCheckStatusCommand");
1414
- var de_GetReadinessCheckStatusCommandError = /* @__PURE__ */ __name(async (output, context) => {
1415
- const parsedOutput = {
1416
- ...output,
1417
- body: await parseErrorBody(output.body, context)
1418
- };
1419
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1420
- switch (errorCode) {
1421
- case "AccessDeniedException":
1422
- case "com.amazonaws.route53recoveryreadiness#AccessDeniedException":
1423
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1424
- case "InternalServerException":
1425
- case "com.amazonaws.route53recoveryreadiness#InternalServerException":
1426
- throw await de_InternalServerExceptionRes(parsedOutput, context);
1427
- case "ResourceNotFoundException":
1428
- case "com.amazonaws.route53recoveryreadiness#ResourceNotFoundException":
1429
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1430
- case "ThrottlingException":
1431
- case "com.amazonaws.route53recoveryreadiness#ThrottlingException":
1432
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
1433
- case "ValidationException":
1434
- case "com.amazonaws.route53recoveryreadiness#ValidationException":
1435
- throw await de_ValidationExceptionRes(parsedOutput, context);
1436
- default:
1437
- const parsedBody = parsedOutput.body;
1438
- return throwDefaultError({
1439
- output,
1440
- parsedBody,
1441
- errorCode
1442
- });
1443
- }
1444
- }, "de_GetReadinessCheckStatusCommandError");
1445
952
  var de_GetRecoveryGroupCommand = /* @__PURE__ */ __name(async (output, context) => {
1446
953
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1447
- return de_GetRecoveryGroupCommandError(output, context);
954
+ return de_CommandError(output, context);
1448
955
  }
1449
956
  const contents = (0, import_smithy_client.map)({
1450
957
  $metadata: deserializeMetadata(output)
@@ -1459,40 +966,9 @@ var de_GetRecoveryGroupCommand = /* @__PURE__ */ __name(async (output, context)
1459
966
  Object.assign(contents, doc);
1460
967
  return contents;
1461
968
  }, "de_GetRecoveryGroupCommand");
1462
- var de_GetRecoveryGroupCommandError = /* @__PURE__ */ __name(async (output, context) => {
1463
- const parsedOutput = {
1464
- ...output,
1465
- body: await parseErrorBody(output.body, context)
1466
- };
1467
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1468
- switch (errorCode) {
1469
- case "AccessDeniedException":
1470
- case "com.amazonaws.route53recoveryreadiness#AccessDeniedException":
1471
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1472
- case "InternalServerException":
1473
- case "com.amazonaws.route53recoveryreadiness#InternalServerException":
1474
- throw await de_InternalServerExceptionRes(parsedOutput, context);
1475
- case "ResourceNotFoundException":
1476
- case "com.amazonaws.route53recoveryreadiness#ResourceNotFoundException":
1477
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1478
- case "ThrottlingException":
1479
- case "com.amazonaws.route53recoveryreadiness#ThrottlingException":
1480
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
1481
- case "ValidationException":
1482
- case "com.amazonaws.route53recoveryreadiness#ValidationException":
1483
- throw await de_ValidationExceptionRes(parsedOutput, context);
1484
- default:
1485
- const parsedBody = parsedOutput.body;
1486
- return throwDefaultError({
1487
- output,
1488
- parsedBody,
1489
- errorCode
1490
- });
1491
- }
1492
- }, "de_GetRecoveryGroupCommandError");
1493
969
  var de_GetRecoveryGroupReadinessSummaryCommand = /* @__PURE__ */ __name(async (output, context) => {
1494
970
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1495
- return de_GetRecoveryGroupReadinessSummaryCommandError(output, context);
971
+ return de_CommandError(output, context);
1496
972
  }
1497
973
  const contents = (0, import_smithy_client.map)({
1498
974
  $metadata: deserializeMetadata(output)
@@ -1506,40 +982,9 @@ var de_GetRecoveryGroupReadinessSummaryCommand = /* @__PURE__ */ __name(async (o
1506
982
  Object.assign(contents, doc);
1507
983
  return contents;
1508
984
  }, "de_GetRecoveryGroupReadinessSummaryCommand");
1509
- var de_GetRecoveryGroupReadinessSummaryCommandError = /* @__PURE__ */ __name(async (output, context) => {
1510
- const parsedOutput = {
1511
- ...output,
1512
- body: await parseErrorBody(output.body, context)
1513
- };
1514
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1515
- switch (errorCode) {
1516
- case "AccessDeniedException":
1517
- case "com.amazonaws.route53recoveryreadiness#AccessDeniedException":
1518
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1519
- case "InternalServerException":
1520
- case "com.amazonaws.route53recoveryreadiness#InternalServerException":
1521
- throw await de_InternalServerExceptionRes(parsedOutput, context);
1522
- case "ResourceNotFoundException":
1523
- case "com.amazonaws.route53recoveryreadiness#ResourceNotFoundException":
1524
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1525
- case "ThrottlingException":
1526
- case "com.amazonaws.route53recoveryreadiness#ThrottlingException":
1527
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
1528
- case "ValidationException":
1529
- case "com.amazonaws.route53recoveryreadiness#ValidationException":
1530
- throw await de_ValidationExceptionRes(parsedOutput, context);
1531
- default:
1532
- const parsedBody = parsedOutput.body;
1533
- return throwDefaultError({
1534
- output,
1535
- parsedBody,
1536
- errorCode
1537
- });
1538
- }
1539
- }, "de_GetRecoveryGroupReadinessSummaryCommandError");
1540
985
  var de_GetResourceSetCommand = /* @__PURE__ */ __name(async (output, context) => {
1541
986
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1542
- return de_GetResourceSetCommandError(output, context);
987
+ return de_CommandError(output, context);
1543
988
  }
1544
989
  const contents = (0, import_smithy_client.map)({
1545
990
  $metadata: deserializeMetadata(output)
@@ -1555,40 +1000,9 @@ var de_GetResourceSetCommand = /* @__PURE__ */ __name(async (output, context) =>
1555
1000
  Object.assign(contents, doc);
1556
1001
  return contents;
1557
1002
  }, "de_GetResourceSetCommand");
1558
- var de_GetResourceSetCommandError = /* @__PURE__ */ __name(async (output, context) => {
1559
- const parsedOutput = {
1560
- ...output,
1561
- body: await parseErrorBody(output.body, context)
1562
- };
1563
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1564
- switch (errorCode) {
1565
- case "AccessDeniedException":
1566
- case "com.amazonaws.route53recoveryreadiness#AccessDeniedException":
1567
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1568
- case "InternalServerException":
1569
- case "com.amazonaws.route53recoveryreadiness#InternalServerException":
1570
- throw await de_InternalServerExceptionRes(parsedOutput, context);
1571
- case "ResourceNotFoundException":
1572
- case "com.amazonaws.route53recoveryreadiness#ResourceNotFoundException":
1573
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1574
- case "ThrottlingException":
1575
- case "com.amazonaws.route53recoveryreadiness#ThrottlingException":
1576
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
1577
- case "ValidationException":
1578
- case "com.amazonaws.route53recoveryreadiness#ValidationException":
1579
- throw await de_ValidationExceptionRes(parsedOutput, context);
1580
- default:
1581
- const parsedBody = parsedOutput.body;
1582
- return throwDefaultError({
1583
- output,
1584
- parsedBody,
1585
- errorCode
1586
- });
1587
- }
1588
- }, "de_GetResourceSetCommandError");
1589
1003
  var de_ListCellsCommand = /* @__PURE__ */ __name(async (output, context) => {
1590
1004
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1591
- return de_ListCellsCommandError(output, context);
1005
+ return de_CommandError(output, context);
1592
1006
  }
1593
1007
  const contents = (0, import_smithy_client.map)({
1594
1008
  $metadata: deserializeMetadata(output)
@@ -1601,37 +1015,9 @@ var de_ListCellsCommand = /* @__PURE__ */ __name(async (output, context) => {
1601
1015
  Object.assign(contents, doc);
1602
1016
  return contents;
1603
1017
  }, "de_ListCellsCommand");
1604
- var de_ListCellsCommandError = /* @__PURE__ */ __name(async (output, context) => {
1605
- const parsedOutput = {
1606
- ...output,
1607
- body: await parseErrorBody(output.body, context)
1608
- };
1609
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1610
- switch (errorCode) {
1611
- case "AccessDeniedException":
1612
- case "com.amazonaws.route53recoveryreadiness#AccessDeniedException":
1613
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1614
- case "InternalServerException":
1615
- case "com.amazonaws.route53recoveryreadiness#InternalServerException":
1616
- throw await de_InternalServerExceptionRes(parsedOutput, context);
1617
- case "ThrottlingException":
1618
- case "com.amazonaws.route53recoveryreadiness#ThrottlingException":
1619
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
1620
- case "ValidationException":
1621
- case "com.amazonaws.route53recoveryreadiness#ValidationException":
1622
- throw await de_ValidationExceptionRes(parsedOutput, context);
1623
- default:
1624
- const parsedBody = parsedOutput.body;
1625
- return throwDefaultError({
1626
- output,
1627
- parsedBody,
1628
- errorCode
1629
- });
1630
- }
1631
- }, "de_ListCellsCommandError");
1632
1018
  var de_ListCrossAccountAuthorizationsCommand = /* @__PURE__ */ __name(async (output, context) => {
1633
1019
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1634
- return de_ListCrossAccountAuthorizationsCommandError(output, context);
1020
+ return de_CommandError(output, context);
1635
1021
  }
1636
1022
  const contents = (0, import_smithy_client.map)({
1637
1023
  $metadata: deserializeMetadata(output)
@@ -1644,80 +1030,24 @@ var de_ListCrossAccountAuthorizationsCommand = /* @__PURE__ */ __name(async (out
1644
1030
  Object.assign(contents, doc);
1645
1031
  return contents;
1646
1032
  }, "de_ListCrossAccountAuthorizationsCommand");
1647
- var de_ListCrossAccountAuthorizationsCommandError = /* @__PURE__ */ __name(async (output, context) => {
1648
- const parsedOutput = {
1649
- ...output,
1650
- body: await parseErrorBody(output.body, context)
1651
- };
1652
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1653
- switch (errorCode) {
1654
- case "AccessDeniedException":
1655
- case "com.amazonaws.route53recoveryreadiness#AccessDeniedException":
1656
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1657
- case "InternalServerException":
1658
- case "com.amazonaws.route53recoveryreadiness#InternalServerException":
1659
- throw await de_InternalServerExceptionRes(parsedOutput, context);
1660
- case "ThrottlingException":
1661
- case "com.amazonaws.route53recoveryreadiness#ThrottlingException":
1662
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
1663
- case "ValidationException":
1664
- case "com.amazonaws.route53recoveryreadiness#ValidationException":
1665
- throw await de_ValidationExceptionRes(parsedOutput, context);
1666
- default:
1667
- const parsedBody = parsedOutput.body;
1668
- return throwDefaultError({
1669
- output,
1670
- parsedBody,
1671
- errorCode
1672
- });
1673
- }
1674
- }, "de_ListCrossAccountAuthorizationsCommandError");
1675
- var de_ListReadinessChecksCommand = /* @__PURE__ */ __name(async (output, context) => {
1676
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1677
- return de_ListReadinessChecksCommandError(output, context);
1678
- }
1679
- const contents = (0, import_smithy_client.map)({
1680
- $metadata: deserializeMetadata(output)
1681
- });
1682
- const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
1683
- const doc = (0, import_smithy_client.take)(data, {
1684
- NextToken: [, import_smithy_client.expectString, `nextToken`],
1685
- ReadinessChecks: [, (_) => de___listOfReadinessCheckOutput(_, context), `readinessChecks`]
1686
- });
1687
- Object.assign(contents, doc);
1688
- return contents;
1689
- }, "de_ListReadinessChecksCommand");
1690
- var de_ListReadinessChecksCommandError = /* @__PURE__ */ __name(async (output, context) => {
1691
- const parsedOutput = {
1692
- ...output,
1693
- body: await parseErrorBody(output.body, context)
1694
- };
1695
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1696
- switch (errorCode) {
1697
- case "AccessDeniedException":
1698
- case "com.amazonaws.route53recoveryreadiness#AccessDeniedException":
1699
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1700
- case "InternalServerException":
1701
- case "com.amazonaws.route53recoveryreadiness#InternalServerException":
1702
- throw await de_InternalServerExceptionRes(parsedOutput, context);
1703
- case "ThrottlingException":
1704
- case "com.amazonaws.route53recoveryreadiness#ThrottlingException":
1705
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
1706
- case "ValidationException":
1707
- case "com.amazonaws.route53recoveryreadiness#ValidationException":
1708
- throw await de_ValidationExceptionRes(parsedOutput, context);
1709
- default:
1710
- const parsedBody = parsedOutput.body;
1711
- return throwDefaultError({
1712
- output,
1713
- parsedBody,
1714
- errorCode
1715
- });
1033
+ var de_ListReadinessChecksCommand = /* @__PURE__ */ __name(async (output, context) => {
1034
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1035
+ return de_CommandError(output, context);
1716
1036
  }
1717
- }, "de_ListReadinessChecksCommandError");
1037
+ const contents = (0, import_smithy_client.map)({
1038
+ $metadata: deserializeMetadata(output)
1039
+ });
1040
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
1041
+ const doc = (0, import_smithy_client.take)(data, {
1042
+ NextToken: [, import_smithy_client.expectString, `nextToken`],
1043
+ ReadinessChecks: [, (_) => de___listOfReadinessCheckOutput(_, context), `readinessChecks`]
1044
+ });
1045
+ Object.assign(contents, doc);
1046
+ return contents;
1047
+ }, "de_ListReadinessChecksCommand");
1718
1048
  var de_ListRecoveryGroupsCommand = /* @__PURE__ */ __name(async (output, context) => {
1719
1049
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1720
- return de_ListRecoveryGroupsCommandError(output, context);
1050
+ return de_CommandError(output, context);
1721
1051
  }
1722
1052
  const contents = (0, import_smithy_client.map)({
1723
1053
  $metadata: deserializeMetadata(output)
@@ -1730,37 +1060,9 @@ var de_ListRecoveryGroupsCommand = /* @__PURE__ */ __name(async (output, context
1730
1060
  Object.assign(contents, doc);
1731
1061
  return contents;
1732
1062
  }, "de_ListRecoveryGroupsCommand");
1733
- var de_ListRecoveryGroupsCommandError = /* @__PURE__ */ __name(async (output, context) => {
1734
- const parsedOutput = {
1735
- ...output,
1736
- body: await parseErrorBody(output.body, context)
1737
- };
1738
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1739
- switch (errorCode) {
1740
- case "AccessDeniedException":
1741
- case "com.amazonaws.route53recoveryreadiness#AccessDeniedException":
1742
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1743
- case "InternalServerException":
1744
- case "com.amazonaws.route53recoveryreadiness#InternalServerException":
1745
- throw await de_InternalServerExceptionRes(parsedOutput, context);
1746
- case "ThrottlingException":
1747
- case "com.amazonaws.route53recoveryreadiness#ThrottlingException":
1748
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
1749
- case "ValidationException":
1750
- case "com.amazonaws.route53recoveryreadiness#ValidationException":
1751
- throw await de_ValidationExceptionRes(parsedOutput, context);
1752
- default:
1753
- const parsedBody = parsedOutput.body;
1754
- return throwDefaultError({
1755
- output,
1756
- parsedBody,
1757
- errorCode
1758
- });
1759
- }
1760
- }, "de_ListRecoveryGroupsCommandError");
1761
1063
  var de_ListResourceSetsCommand = /* @__PURE__ */ __name(async (output, context) => {
1762
1064
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1763
- return de_ListResourceSetsCommandError(output, context);
1065
+ return de_CommandError(output, context);
1764
1066
  }
1765
1067
  const contents = (0, import_smithy_client.map)({
1766
1068
  $metadata: deserializeMetadata(output)
@@ -1773,37 +1075,9 @@ var de_ListResourceSetsCommand = /* @__PURE__ */ __name(async (output, context)
1773
1075
  Object.assign(contents, doc);
1774
1076
  return contents;
1775
1077
  }, "de_ListResourceSetsCommand");
1776
- var de_ListResourceSetsCommandError = /* @__PURE__ */ __name(async (output, context) => {
1777
- const parsedOutput = {
1778
- ...output,
1779
- body: await parseErrorBody(output.body, context)
1780
- };
1781
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1782
- switch (errorCode) {
1783
- case "AccessDeniedException":
1784
- case "com.amazonaws.route53recoveryreadiness#AccessDeniedException":
1785
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1786
- case "InternalServerException":
1787
- case "com.amazonaws.route53recoveryreadiness#InternalServerException":
1788
- throw await de_InternalServerExceptionRes(parsedOutput, context);
1789
- case "ThrottlingException":
1790
- case "com.amazonaws.route53recoveryreadiness#ThrottlingException":
1791
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
1792
- case "ValidationException":
1793
- case "com.amazonaws.route53recoveryreadiness#ValidationException":
1794
- throw await de_ValidationExceptionRes(parsedOutput, context);
1795
- default:
1796
- const parsedBody = parsedOutput.body;
1797
- return throwDefaultError({
1798
- output,
1799
- parsedBody,
1800
- errorCode
1801
- });
1802
- }
1803
- }, "de_ListResourceSetsCommandError");
1804
1078
  var de_ListRulesCommand = /* @__PURE__ */ __name(async (output, context) => {
1805
1079
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1806
- return de_ListRulesCommandError(output, context);
1080
+ return de_CommandError(output, context);
1807
1081
  }
1808
1082
  const contents = (0, import_smithy_client.map)({
1809
1083
  $metadata: deserializeMetadata(output)
@@ -1816,37 +1090,9 @@ var de_ListRulesCommand = /* @__PURE__ */ __name(async (output, context) => {
1816
1090
  Object.assign(contents, doc);
1817
1091
  return contents;
1818
1092
  }, "de_ListRulesCommand");
1819
- var de_ListRulesCommandError = /* @__PURE__ */ __name(async (output, context) => {
1820
- const parsedOutput = {
1821
- ...output,
1822
- body: await parseErrorBody(output.body, context)
1823
- };
1824
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1825
- switch (errorCode) {
1826
- case "AccessDeniedException":
1827
- case "com.amazonaws.route53recoveryreadiness#AccessDeniedException":
1828
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1829
- case "InternalServerException":
1830
- case "com.amazonaws.route53recoveryreadiness#InternalServerException":
1831
- throw await de_InternalServerExceptionRes(parsedOutput, context);
1832
- case "ThrottlingException":
1833
- case "com.amazonaws.route53recoveryreadiness#ThrottlingException":
1834
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
1835
- case "ValidationException":
1836
- case "com.amazonaws.route53recoveryreadiness#ValidationException":
1837
- throw await de_ValidationExceptionRes(parsedOutput, context);
1838
- default:
1839
- const parsedBody = parsedOutput.body;
1840
- return throwDefaultError({
1841
- output,
1842
- parsedBody,
1843
- errorCode
1844
- });
1845
- }
1846
- }, "de_ListRulesCommandError");
1847
1093
  var de_ListTagsForResourcesCommand = /* @__PURE__ */ __name(async (output, context) => {
1848
1094
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1849
- return de_ListTagsForResourcesCommandError(output, context);
1095
+ return de_CommandError(output, context);
1850
1096
  }
1851
1097
  const contents = (0, import_smithy_client.map)({
1852
1098
  $metadata: deserializeMetadata(output)
@@ -1858,34 +1104,9 @@ var de_ListTagsForResourcesCommand = /* @__PURE__ */ __name(async (output, conte
1858
1104
  Object.assign(contents, doc);
1859
1105
  return contents;
1860
1106
  }, "de_ListTagsForResourcesCommand");
1861
- var de_ListTagsForResourcesCommandError = /* @__PURE__ */ __name(async (output, context) => {
1862
- const parsedOutput = {
1863
- ...output,
1864
- body: await parseErrorBody(output.body, context)
1865
- };
1866
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1867
- switch (errorCode) {
1868
- case "InternalServerException":
1869
- case "com.amazonaws.route53recoveryreadiness#InternalServerException":
1870
- throw await de_InternalServerExceptionRes(parsedOutput, context);
1871
- case "ResourceNotFoundException":
1872
- case "com.amazonaws.route53recoveryreadiness#ResourceNotFoundException":
1873
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1874
- case "ValidationException":
1875
- case "com.amazonaws.route53recoveryreadiness#ValidationException":
1876
- throw await de_ValidationExceptionRes(parsedOutput, context);
1877
- default:
1878
- const parsedBody = parsedOutput.body;
1879
- return throwDefaultError({
1880
- output,
1881
- parsedBody,
1882
- errorCode
1883
- });
1884
- }
1885
- }, "de_ListTagsForResourcesCommandError");
1886
1107
  var de_TagResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
1887
1108
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1888
- return de_TagResourceCommandError(output, context);
1109
+ return de_CommandError(output, context);
1889
1110
  }
1890
1111
  const contents = (0, import_smithy_client.map)({
1891
1112
  $metadata: deserializeMetadata(output)
@@ -1893,34 +1114,9 @@ var de_TagResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
1893
1114
  await (0, import_smithy_client.collectBody)(output.body, context);
1894
1115
  return contents;
1895
1116
  }, "de_TagResourceCommand");
1896
- var de_TagResourceCommandError = /* @__PURE__ */ __name(async (output, context) => {
1897
- const parsedOutput = {
1898
- ...output,
1899
- body: await parseErrorBody(output.body, context)
1900
- };
1901
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1902
- switch (errorCode) {
1903
- case "InternalServerException":
1904
- case "com.amazonaws.route53recoveryreadiness#InternalServerException":
1905
- throw await de_InternalServerExceptionRes(parsedOutput, context);
1906
- case "ResourceNotFoundException":
1907
- case "com.amazonaws.route53recoveryreadiness#ResourceNotFoundException":
1908
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1909
- case "ValidationException":
1910
- case "com.amazonaws.route53recoveryreadiness#ValidationException":
1911
- throw await de_ValidationExceptionRes(parsedOutput, context);
1912
- default:
1913
- const parsedBody = parsedOutput.body;
1914
- return throwDefaultError({
1915
- output,
1916
- parsedBody,
1917
- errorCode
1918
- });
1919
- }
1920
- }, "de_TagResourceCommandError");
1921
1117
  var de_UntagResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
1922
1118
  if (output.statusCode !== 204 && output.statusCode >= 300) {
1923
- return de_UntagResourceCommandError(output, context);
1119
+ return de_CommandError(output, context);
1924
1120
  }
1925
1121
  const contents = (0, import_smithy_client.map)({
1926
1122
  $metadata: deserializeMetadata(output)
@@ -1928,34 +1124,9 @@ var de_UntagResourceCommand = /* @__PURE__ */ __name(async (output, context) =>
1928
1124
  await (0, import_smithy_client.collectBody)(output.body, context);
1929
1125
  return contents;
1930
1126
  }, "de_UntagResourceCommand");
1931
- var de_UntagResourceCommandError = /* @__PURE__ */ __name(async (output, context) => {
1932
- const parsedOutput = {
1933
- ...output,
1934
- body: await parseErrorBody(output.body, context)
1935
- };
1936
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1937
- switch (errorCode) {
1938
- case "InternalServerException":
1939
- case "com.amazonaws.route53recoveryreadiness#InternalServerException":
1940
- throw await de_InternalServerExceptionRes(parsedOutput, context);
1941
- case "ResourceNotFoundException":
1942
- case "com.amazonaws.route53recoveryreadiness#ResourceNotFoundException":
1943
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1944
- case "ValidationException":
1945
- case "com.amazonaws.route53recoveryreadiness#ValidationException":
1946
- throw await de_ValidationExceptionRes(parsedOutput, context);
1947
- default:
1948
- const parsedBody = parsedOutput.body;
1949
- return throwDefaultError({
1950
- output,
1951
- parsedBody,
1952
- errorCode
1953
- });
1954
- }
1955
- }, "de_UntagResourceCommandError");
1956
1127
  var de_UpdateCellCommand = /* @__PURE__ */ __name(async (output, context) => {
1957
1128
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1958
- return de_UpdateCellCommandError(output, context);
1129
+ return de_CommandError(output, context);
1959
1130
  }
1960
1131
  const contents = (0, import_smithy_client.map)({
1961
1132
  $metadata: deserializeMetadata(output)
@@ -1971,40 +1142,9 @@ var de_UpdateCellCommand = /* @__PURE__ */ __name(async (output, context) => {
1971
1142
  Object.assign(contents, doc);
1972
1143
  return contents;
1973
1144
  }, "de_UpdateCellCommand");
1974
- var de_UpdateCellCommandError = /* @__PURE__ */ __name(async (output, context) => {
1975
- const parsedOutput = {
1976
- ...output,
1977
- body: await parseErrorBody(output.body, context)
1978
- };
1979
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1980
- switch (errorCode) {
1981
- case "AccessDeniedException":
1982
- case "com.amazonaws.route53recoveryreadiness#AccessDeniedException":
1983
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1984
- case "InternalServerException":
1985
- case "com.amazonaws.route53recoveryreadiness#InternalServerException":
1986
- throw await de_InternalServerExceptionRes(parsedOutput, context);
1987
- case "ResourceNotFoundException":
1988
- case "com.amazonaws.route53recoveryreadiness#ResourceNotFoundException":
1989
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1990
- case "ThrottlingException":
1991
- case "com.amazonaws.route53recoveryreadiness#ThrottlingException":
1992
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
1993
- case "ValidationException":
1994
- case "com.amazonaws.route53recoveryreadiness#ValidationException":
1995
- throw await de_ValidationExceptionRes(parsedOutput, context);
1996
- default:
1997
- const parsedBody = parsedOutput.body;
1998
- return throwDefaultError({
1999
- output,
2000
- parsedBody,
2001
- errorCode
2002
- });
2003
- }
2004
- }, "de_UpdateCellCommandError");
2005
1145
  var de_UpdateReadinessCheckCommand = /* @__PURE__ */ __name(async (output, context) => {
2006
1146
  if (output.statusCode !== 200 && output.statusCode >= 300) {
2007
- return de_UpdateReadinessCheckCommandError(output, context);
1147
+ return de_CommandError(output, context);
2008
1148
  }
2009
1149
  const contents = (0, import_smithy_client.map)({
2010
1150
  $metadata: deserializeMetadata(output)
@@ -2019,40 +1159,9 @@ var de_UpdateReadinessCheckCommand = /* @__PURE__ */ __name(async (output, conte
2019
1159
  Object.assign(contents, doc);
2020
1160
  return contents;
2021
1161
  }, "de_UpdateReadinessCheckCommand");
2022
- var de_UpdateReadinessCheckCommandError = /* @__PURE__ */ __name(async (output, context) => {
2023
- const parsedOutput = {
2024
- ...output,
2025
- body: await parseErrorBody(output.body, context)
2026
- };
2027
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2028
- switch (errorCode) {
2029
- case "AccessDeniedException":
2030
- case "com.amazonaws.route53recoveryreadiness#AccessDeniedException":
2031
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
2032
- case "InternalServerException":
2033
- case "com.amazonaws.route53recoveryreadiness#InternalServerException":
2034
- throw await de_InternalServerExceptionRes(parsedOutput, context);
2035
- case "ResourceNotFoundException":
2036
- case "com.amazonaws.route53recoveryreadiness#ResourceNotFoundException":
2037
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
2038
- case "ThrottlingException":
2039
- case "com.amazonaws.route53recoveryreadiness#ThrottlingException":
2040
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
2041
- case "ValidationException":
2042
- case "com.amazonaws.route53recoveryreadiness#ValidationException":
2043
- throw await de_ValidationExceptionRes(parsedOutput, context);
2044
- default:
2045
- const parsedBody = parsedOutput.body;
2046
- return throwDefaultError({
2047
- output,
2048
- parsedBody,
2049
- errorCode
2050
- });
2051
- }
2052
- }, "de_UpdateReadinessCheckCommandError");
2053
1162
  var de_UpdateRecoveryGroupCommand = /* @__PURE__ */ __name(async (output, context) => {
2054
1163
  if (output.statusCode !== 200 && output.statusCode >= 300) {
2055
- return de_UpdateRecoveryGroupCommandError(output, context);
1164
+ return de_CommandError(output, context);
2056
1165
  }
2057
1166
  const contents = (0, import_smithy_client.map)({
2058
1167
  $metadata: deserializeMetadata(output)
@@ -2067,40 +1176,9 @@ var de_UpdateRecoveryGroupCommand = /* @__PURE__ */ __name(async (output, contex
2067
1176
  Object.assign(contents, doc);
2068
1177
  return contents;
2069
1178
  }, "de_UpdateRecoveryGroupCommand");
2070
- var de_UpdateRecoveryGroupCommandError = /* @__PURE__ */ __name(async (output, context) => {
2071
- const parsedOutput = {
2072
- ...output,
2073
- body: await parseErrorBody(output.body, context)
2074
- };
2075
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2076
- switch (errorCode) {
2077
- case "AccessDeniedException":
2078
- case "com.amazonaws.route53recoveryreadiness#AccessDeniedException":
2079
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
2080
- case "InternalServerException":
2081
- case "com.amazonaws.route53recoveryreadiness#InternalServerException":
2082
- throw await de_InternalServerExceptionRes(parsedOutput, context);
2083
- case "ResourceNotFoundException":
2084
- case "com.amazonaws.route53recoveryreadiness#ResourceNotFoundException":
2085
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
2086
- case "ThrottlingException":
2087
- case "com.amazonaws.route53recoveryreadiness#ThrottlingException":
2088
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
2089
- case "ValidationException":
2090
- case "com.amazonaws.route53recoveryreadiness#ValidationException":
2091
- throw await de_ValidationExceptionRes(parsedOutput, context);
2092
- default:
2093
- const parsedBody = parsedOutput.body;
2094
- return throwDefaultError({
2095
- output,
2096
- parsedBody,
2097
- errorCode
2098
- });
2099
- }
2100
- }, "de_UpdateRecoveryGroupCommandError");
2101
1179
  var de_UpdateResourceSetCommand = /* @__PURE__ */ __name(async (output, context) => {
2102
1180
  if (output.statusCode !== 200 && output.statusCode >= 300) {
2103
- return de_UpdateResourceSetCommandError(output, context);
1181
+ return de_CommandError(output, context);
2104
1182
  }
2105
1183
  const contents = (0, import_smithy_client.map)({
2106
1184
  $metadata: deserializeMetadata(output)
@@ -2116,7 +1194,7 @@ var de_UpdateResourceSetCommand = /* @__PURE__ */ __name(async (output, context)
2116
1194
  Object.assign(contents, doc);
2117
1195
  return contents;
2118
1196
  }, "de_UpdateResourceSetCommand");
2119
- var de_UpdateResourceSetCommandError = /* @__PURE__ */ __name(async (output, context) => {
1197
+ var de_CommandError = /* @__PURE__ */ __name(async (output, context) => {
2120
1198
  const parsedOutput = {
2121
1199
  ...output,
2122
1200
  body: await parseErrorBody(output.body, context)
@@ -2126,18 +1204,21 @@ var de_UpdateResourceSetCommandError = /* @__PURE__ */ __name(async (output, con
2126
1204
  case "AccessDeniedException":
2127
1205
  case "com.amazonaws.route53recoveryreadiness#AccessDeniedException":
2128
1206
  throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1207
+ case "ConflictException":
1208
+ case "com.amazonaws.route53recoveryreadiness#ConflictException":
1209
+ throw await de_ConflictExceptionRes(parsedOutput, context);
2129
1210
  case "InternalServerException":
2130
1211
  case "com.amazonaws.route53recoveryreadiness#InternalServerException":
2131
1212
  throw await de_InternalServerExceptionRes(parsedOutput, context);
2132
- case "ResourceNotFoundException":
2133
- case "com.amazonaws.route53recoveryreadiness#ResourceNotFoundException":
2134
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
2135
1213
  case "ThrottlingException":
2136
1214
  case "com.amazonaws.route53recoveryreadiness#ThrottlingException":
2137
1215
  throw await de_ThrottlingExceptionRes(parsedOutput, context);
2138
1216
  case "ValidationException":
2139
1217
  case "com.amazonaws.route53recoveryreadiness#ValidationException":
2140
1218
  throw await de_ValidationExceptionRes(parsedOutput, context);
1219
+ case "ResourceNotFoundException":
1220
+ case "com.amazonaws.route53recoveryreadiness#ResourceNotFoundException":
1221
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
2141
1222
  default:
2142
1223
  const parsedBody = parsedOutput.body;
2143
1224
  return throwDefaultError({
@@ -2146,7 +1227,7 @@ var de_UpdateResourceSetCommandError = /* @__PURE__ */ __name(async (output, con
2146
1227
  errorCode
2147
1228
  });
2148
1229
  }
2149
- }, "de_UpdateResourceSetCommandError");
1230
+ }, "de_CommandError");
2150
1231
  var throwDefaultError = (0, import_smithy_client.withBaseException)(Route53RecoveryReadinessServiceException);
2151
1232
  var de_AccessDeniedExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
2152
1233
  const contents = (0, import_smithy_client.map)({});