@aws-sdk/client-migration-hub-refactor-spaces 3.503.1 → 3.507.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist-cjs/index.js +53 -796
- package/dist-es/protocols/Aws_restJson1.js +44 -787
- package/package.json +3 -3
package/dist-cjs/index.js
CHANGED
|
@@ -895,7 +895,7 @@ var se_UpdateRouteCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
|
895
895
|
}, "se_UpdateRouteCommand");
|
|
896
896
|
var de_CreateApplicationCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
897
897
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
898
|
-
return
|
|
898
|
+
return de_CommandError(output, context);
|
|
899
899
|
}
|
|
900
900
|
const contents = (0, import_smithy_client.map)({
|
|
901
901
|
$metadata: deserializeMetadata(output)
|
|
@@ -919,46 +919,9 @@ var de_CreateApplicationCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
919
919
|
Object.assign(contents, doc);
|
|
920
920
|
return contents;
|
|
921
921
|
}, "de_CreateApplicationCommand");
|
|
922
|
-
var de_CreateApplicationCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
923
|
-
const parsedOutput = {
|
|
924
|
-
...output,
|
|
925
|
-
body: await parseErrorBody(output.body, context)
|
|
926
|
-
};
|
|
927
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
928
|
-
switch (errorCode) {
|
|
929
|
-
case "AccessDeniedException":
|
|
930
|
-
case "com.amazonaws.migrationhubrefactorspaces#AccessDeniedException":
|
|
931
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
932
|
-
case "ConflictException":
|
|
933
|
-
case "com.amazonaws.migrationhubrefactorspaces#ConflictException":
|
|
934
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
935
|
-
case "InternalServerException":
|
|
936
|
-
case "com.amazonaws.migrationhubrefactorspaces#InternalServerException":
|
|
937
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
938
|
-
case "ResourceNotFoundException":
|
|
939
|
-
case "com.amazonaws.migrationhubrefactorspaces#ResourceNotFoundException":
|
|
940
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
941
|
-
case "ServiceQuotaExceededException":
|
|
942
|
-
case "com.amazonaws.migrationhubrefactorspaces#ServiceQuotaExceededException":
|
|
943
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
944
|
-
case "ThrottlingException":
|
|
945
|
-
case "com.amazonaws.migrationhubrefactorspaces#ThrottlingException":
|
|
946
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
947
|
-
case "ValidationException":
|
|
948
|
-
case "com.amazonaws.migrationhubrefactorspaces#ValidationException":
|
|
949
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
950
|
-
default:
|
|
951
|
-
const parsedBody = parsedOutput.body;
|
|
952
|
-
return throwDefaultError({
|
|
953
|
-
output,
|
|
954
|
-
parsedBody,
|
|
955
|
-
errorCode
|
|
956
|
-
});
|
|
957
|
-
}
|
|
958
|
-
}, "de_CreateApplicationCommandError");
|
|
959
922
|
var de_CreateEnvironmentCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
960
923
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
961
|
-
return
|
|
924
|
+
return de_CommandError(output, context);
|
|
962
925
|
}
|
|
963
926
|
const contents = (0, import_smithy_client.map)({
|
|
964
927
|
$metadata: deserializeMetadata(output)
|
|
@@ -979,46 +942,9 @@ var de_CreateEnvironmentCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
979
942
|
Object.assign(contents, doc);
|
|
980
943
|
return contents;
|
|
981
944
|
}, "de_CreateEnvironmentCommand");
|
|
982
|
-
var de_CreateEnvironmentCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
983
|
-
const parsedOutput = {
|
|
984
|
-
...output,
|
|
985
|
-
body: await parseErrorBody(output.body, context)
|
|
986
|
-
};
|
|
987
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
988
|
-
switch (errorCode) {
|
|
989
|
-
case "AccessDeniedException":
|
|
990
|
-
case "com.amazonaws.migrationhubrefactorspaces#AccessDeniedException":
|
|
991
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
992
|
-
case "ConflictException":
|
|
993
|
-
case "com.amazonaws.migrationhubrefactorspaces#ConflictException":
|
|
994
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
995
|
-
case "InternalServerException":
|
|
996
|
-
case "com.amazonaws.migrationhubrefactorspaces#InternalServerException":
|
|
997
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
998
|
-
case "ResourceNotFoundException":
|
|
999
|
-
case "com.amazonaws.migrationhubrefactorspaces#ResourceNotFoundException":
|
|
1000
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1001
|
-
case "ServiceQuotaExceededException":
|
|
1002
|
-
case "com.amazonaws.migrationhubrefactorspaces#ServiceQuotaExceededException":
|
|
1003
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
1004
|
-
case "ThrottlingException":
|
|
1005
|
-
case "com.amazonaws.migrationhubrefactorspaces#ThrottlingException":
|
|
1006
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1007
|
-
case "ValidationException":
|
|
1008
|
-
case "com.amazonaws.migrationhubrefactorspaces#ValidationException":
|
|
1009
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1010
|
-
default:
|
|
1011
|
-
const parsedBody = parsedOutput.body;
|
|
1012
|
-
return throwDefaultError({
|
|
1013
|
-
output,
|
|
1014
|
-
parsedBody,
|
|
1015
|
-
errorCode
|
|
1016
|
-
});
|
|
1017
|
-
}
|
|
1018
|
-
}, "de_CreateEnvironmentCommandError");
|
|
1019
945
|
var de_CreateRouteCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1020
946
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1021
|
-
return
|
|
947
|
+
return de_CommandError(output, context);
|
|
1022
948
|
}
|
|
1023
949
|
const contents = (0, import_smithy_client.map)({
|
|
1024
950
|
$metadata: deserializeMetadata(output)
|
|
@@ -1041,46 +967,9 @@ var de_CreateRouteCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
1041
967
|
Object.assign(contents, doc);
|
|
1042
968
|
return contents;
|
|
1043
969
|
}, "de_CreateRouteCommand");
|
|
1044
|
-
var de_CreateRouteCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1045
|
-
const parsedOutput = {
|
|
1046
|
-
...output,
|
|
1047
|
-
body: await parseErrorBody(output.body, context)
|
|
1048
|
-
};
|
|
1049
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1050
|
-
switch (errorCode) {
|
|
1051
|
-
case "AccessDeniedException":
|
|
1052
|
-
case "com.amazonaws.migrationhubrefactorspaces#AccessDeniedException":
|
|
1053
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1054
|
-
case "ConflictException":
|
|
1055
|
-
case "com.amazonaws.migrationhubrefactorspaces#ConflictException":
|
|
1056
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1057
|
-
case "InternalServerException":
|
|
1058
|
-
case "com.amazonaws.migrationhubrefactorspaces#InternalServerException":
|
|
1059
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1060
|
-
case "ResourceNotFoundException":
|
|
1061
|
-
case "com.amazonaws.migrationhubrefactorspaces#ResourceNotFoundException":
|
|
1062
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1063
|
-
case "ServiceQuotaExceededException":
|
|
1064
|
-
case "com.amazonaws.migrationhubrefactorspaces#ServiceQuotaExceededException":
|
|
1065
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
1066
|
-
case "ThrottlingException":
|
|
1067
|
-
case "com.amazonaws.migrationhubrefactorspaces#ThrottlingException":
|
|
1068
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1069
|
-
case "ValidationException":
|
|
1070
|
-
case "com.amazonaws.migrationhubrefactorspaces#ValidationException":
|
|
1071
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1072
|
-
default:
|
|
1073
|
-
const parsedBody = parsedOutput.body;
|
|
1074
|
-
return throwDefaultError({
|
|
1075
|
-
output,
|
|
1076
|
-
parsedBody,
|
|
1077
|
-
errorCode
|
|
1078
|
-
});
|
|
1079
|
-
}
|
|
1080
|
-
}, "de_CreateRouteCommandError");
|
|
1081
970
|
var de_CreateServiceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1082
971
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1083
|
-
return
|
|
972
|
+
return de_CommandError(output, context);
|
|
1084
973
|
}
|
|
1085
974
|
const contents = (0, import_smithy_client.map)({
|
|
1086
975
|
$metadata: deserializeMetadata(output)
|
|
@@ -1107,46 +996,9 @@ var de_CreateServiceCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
1107
996
|
Object.assign(contents, doc);
|
|
1108
997
|
return contents;
|
|
1109
998
|
}, "de_CreateServiceCommand");
|
|
1110
|
-
var de_CreateServiceCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1111
|
-
const parsedOutput = {
|
|
1112
|
-
...output,
|
|
1113
|
-
body: await parseErrorBody(output.body, context)
|
|
1114
|
-
};
|
|
1115
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1116
|
-
switch (errorCode) {
|
|
1117
|
-
case "AccessDeniedException":
|
|
1118
|
-
case "com.amazonaws.migrationhubrefactorspaces#AccessDeniedException":
|
|
1119
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1120
|
-
case "ConflictException":
|
|
1121
|
-
case "com.amazonaws.migrationhubrefactorspaces#ConflictException":
|
|
1122
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1123
|
-
case "InternalServerException":
|
|
1124
|
-
case "com.amazonaws.migrationhubrefactorspaces#InternalServerException":
|
|
1125
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1126
|
-
case "ResourceNotFoundException":
|
|
1127
|
-
case "com.amazonaws.migrationhubrefactorspaces#ResourceNotFoundException":
|
|
1128
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1129
|
-
case "ServiceQuotaExceededException":
|
|
1130
|
-
case "com.amazonaws.migrationhubrefactorspaces#ServiceQuotaExceededException":
|
|
1131
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
1132
|
-
case "ThrottlingException":
|
|
1133
|
-
case "com.amazonaws.migrationhubrefactorspaces#ThrottlingException":
|
|
1134
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1135
|
-
case "ValidationException":
|
|
1136
|
-
case "com.amazonaws.migrationhubrefactorspaces#ValidationException":
|
|
1137
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1138
|
-
default:
|
|
1139
|
-
const parsedBody = parsedOutput.body;
|
|
1140
|
-
return throwDefaultError({
|
|
1141
|
-
output,
|
|
1142
|
-
parsedBody,
|
|
1143
|
-
errorCode
|
|
1144
|
-
});
|
|
1145
|
-
}
|
|
1146
|
-
}, "de_CreateServiceCommandError");
|
|
1147
999
|
var de_DeleteApplicationCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1148
1000
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1149
|
-
return
|
|
1001
|
+
return de_CommandError(output, context);
|
|
1150
1002
|
}
|
|
1151
1003
|
const contents = (0, import_smithy_client.map)({
|
|
1152
1004
|
$metadata: deserializeMetadata(output)
|
|
@@ -1163,43 +1015,9 @@ var de_DeleteApplicationCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
1163
1015
|
Object.assign(contents, doc);
|
|
1164
1016
|
return contents;
|
|
1165
1017
|
}, "de_DeleteApplicationCommand");
|
|
1166
|
-
var de_DeleteApplicationCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1167
|
-
const parsedOutput = {
|
|
1168
|
-
...output,
|
|
1169
|
-
body: await parseErrorBody(output.body, context)
|
|
1170
|
-
};
|
|
1171
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1172
|
-
switch (errorCode) {
|
|
1173
|
-
case "AccessDeniedException":
|
|
1174
|
-
case "com.amazonaws.migrationhubrefactorspaces#AccessDeniedException":
|
|
1175
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1176
|
-
case "ConflictException":
|
|
1177
|
-
case "com.amazonaws.migrationhubrefactorspaces#ConflictException":
|
|
1178
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1179
|
-
case "InternalServerException":
|
|
1180
|
-
case "com.amazonaws.migrationhubrefactorspaces#InternalServerException":
|
|
1181
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1182
|
-
case "ResourceNotFoundException":
|
|
1183
|
-
case "com.amazonaws.migrationhubrefactorspaces#ResourceNotFoundException":
|
|
1184
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1185
|
-
case "ThrottlingException":
|
|
1186
|
-
case "com.amazonaws.migrationhubrefactorspaces#ThrottlingException":
|
|
1187
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1188
|
-
case "ValidationException":
|
|
1189
|
-
case "com.amazonaws.migrationhubrefactorspaces#ValidationException":
|
|
1190
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1191
|
-
default:
|
|
1192
|
-
const parsedBody = parsedOutput.body;
|
|
1193
|
-
return throwDefaultError({
|
|
1194
|
-
output,
|
|
1195
|
-
parsedBody,
|
|
1196
|
-
errorCode
|
|
1197
|
-
});
|
|
1198
|
-
}
|
|
1199
|
-
}, "de_DeleteApplicationCommandError");
|
|
1200
1018
|
var de_DeleteEnvironmentCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1201
1019
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1202
|
-
return
|
|
1020
|
+
return de_CommandError(output, context);
|
|
1203
1021
|
}
|
|
1204
1022
|
const contents = (0, import_smithy_client.map)({
|
|
1205
1023
|
$metadata: deserializeMetadata(output)
|
|
@@ -1215,43 +1033,9 @@ var de_DeleteEnvironmentCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
1215
1033
|
Object.assign(contents, doc);
|
|
1216
1034
|
return contents;
|
|
1217
1035
|
}, "de_DeleteEnvironmentCommand");
|
|
1218
|
-
var de_DeleteEnvironmentCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1219
|
-
const parsedOutput = {
|
|
1220
|
-
...output,
|
|
1221
|
-
body: await parseErrorBody(output.body, context)
|
|
1222
|
-
};
|
|
1223
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1224
|
-
switch (errorCode) {
|
|
1225
|
-
case "AccessDeniedException":
|
|
1226
|
-
case "com.amazonaws.migrationhubrefactorspaces#AccessDeniedException":
|
|
1227
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1228
|
-
case "ConflictException":
|
|
1229
|
-
case "com.amazonaws.migrationhubrefactorspaces#ConflictException":
|
|
1230
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1231
|
-
case "InternalServerException":
|
|
1232
|
-
case "com.amazonaws.migrationhubrefactorspaces#InternalServerException":
|
|
1233
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1234
|
-
case "ResourceNotFoundException":
|
|
1235
|
-
case "com.amazonaws.migrationhubrefactorspaces#ResourceNotFoundException":
|
|
1236
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1237
|
-
case "ThrottlingException":
|
|
1238
|
-
case "com.amazonaws.migrationhubrefactorspaces#ThrottlingException":
|
|
1239
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1240
|
-
case "ValidationException":
|
|
1241
|
-
case "com.amazonaws.migrationhubrefactorspaces#ValidationException":
|
|
1242
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1243
|
-
default:
|
|
1244
|
-
const parsedBody = parsedOutput.body;
|
|
1245
|
-
return throwDefaultError({
|
|
1246
|
-
output,
|
|
1247
|
-
parsedBody,
|
|
1248
|
-
errorCode
|
|
1249
|
-
});
|
|
1250
|
-
}
|
|
1251
|
-
}, "de_DeleteEnvironmentCommandError");
|
|
1252
1036
|
var de_DeleteResourcePolicyCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1253
1037
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1254
|
-
return
|
|
1038
|
+
return de_CommandError(output, context);
|
|
1255
1039
|
}
|
|
1256
1040
|
const contents = (0, import_smithy_client.map)({
|
|
1257
1041
|
$metadata: deserializeMetadata(output)
|
|
@@ -1259,40 +1043,9 @@ var de_DeleteResourcePolicyCommand = /* @__PURE__ */ __name(async (output, conte
|
|
|
1259
1043
|
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
1260
1044
|
return contents;
|
|
1261
1045
|
}, "de_DeleteResourcePolicyCommand");
|
|
1262
|
-
var de_DeleteResourcePolicyCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1263
|
-
const parsedOutput = {
|
|
1264
|
-
...output,
|
|
1265
|
-
body: await parseErrorBody(output.body, context)
|
|
1266
|
-
};
|
|
1267
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1268
|
-
switch (errorCode) {
|
|
1269
|
-
case "AccessDeniedException":
|
|
1270
|
-
case "com.amazonaws.migrationhubrefactorspaces#AccessDeniedException":
|
|
1271
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1272
|
-
case "InternalServerException":
|
|
1273
|
-
case "com.amazonaws.migrationhubrefactorspaces#InternalServerException":
|
|
1274
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1275
|
-
case "ResourceNotFoundException":
|
|
1276
|
-
case "com.amazonaws.migrationhubrefactorspaces#ResourceNotFoundException":
|
|
1277
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1278
|
-
case "ThrottlingException":
|
|
1279
|
-
case "com.amazonaws.migrationhubrefactorspaces#ThrottlingException":
|
|
1280
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1281
|
-
case "ValidationException":
|
|
1282
|
-
case "com.amazonaws.migrationhubrefactorspaces#ValidationException":
|
|
1283
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1284
|
-
default:
|
|
1285
|
-
const parsedBody = parsedOutput.body;
|
|
1286
|
-
return throwDefaultError({
|
|
1287
|
-
output,
|
|
1288
|
-
parsedBody,
|
|
1289
|
-
errorCode
|
|
1290
|
-
});
|
|
1291
|
-
}
|
|
1292
|
-
}, "de_DeleteResourcePolicyCommandError");
|
|
1293
1046
|
var de_DeleteRouteCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1294
1047
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1295
|
-
return
|
|
1048
|
+
return de_CommandError(output, context);
|
|
1296
1049
|
}
|
|
1297
1050
|
const contents = (0, import_smithy_client.map)({
|
|
1298
1051
|
$metadata: deserializeMetadata(output)
|
|
@@ -1309,43 +1062,9 @@ var de_DeleteRouteCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
1309
1062
|
Object.assign(contents, doc);
|
|
1310
1063
|
return contents;
|
|
1311
1064
|
}, "de_DeleteRouteCommand");
|
|
1312
|
-
var de_DeleteRouteCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1313
|
-
const parsedOutput = {
|
|
1314
|
-
...output,
|
|
1315
|
-
body: await parseErrorBody(output.body, context)
|
|
1316
|
-
};
|
|
1317
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1318
|
-
switch (errorCode) {
|
|
1319
|
-
case "AccessDeniedException":
|
|
1320
|
-
case "com.amazonaws.migrationhubrefactorspaces#AccessDeniedException":
|
|
1321
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1322
|
-
case "ConflictException":
|
|
1323
|
-
case "com.amazonaws.migrationhubrefactorspaces#ConflictException":
|
|
1324
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1325
|
-
case "InternalServerException":
|
|
1326
|
-
case "com.amazonaws.migrationhubrefactorspaces#InternalServerException":
|
|
1327
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1328
|
-
case "ResourceNotFoundException":
|
|
1329
|
-
case "com.amazonaws.migrationhubrefactorspaces#ResourceNotFoundException":
|
|
1330
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1331
|
-
case "ThrottlingException":
|
|
1332
|
-
case "com.amazonaws.migrationhubrefactorspaces#ThrottlingException":
|
|
1333
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1334
|
-
case "ValidationException":
|
|
1335
|
-
case "com.amazonaws.migrationhubrefactorspaces#ValidationException":
|
|
1336
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1337
|
-
default:
|
|
1338
|
-
const parsedBody = parsedOutput.body;
|
|
1339
|
-
return throwDefaultError({
|
|
1340
|
-
output,
|
|
1341
|
-
parsedBody,
|
|
1342
|
-
errorCode
|
|
1343
|
-
});
|
|
1344
|
-
}
|
|
1345
|
-
}, "de_DeleteRouteCommandError");
|
|
1346
1065
|
var de_DeleteServiceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1347
1066
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1348
|
-
return
|
|
1067
|
+
return de_CommandError(output, context);
|
|
1349
1068
|
}
|
|
1350
1069
|
const contents = (0, import_smithy_client.map)({
|
|
1351
1070
|
$metadata: deserializeMetadata(output)
|
|
@@ -1363,43 +1082,9 @@ var de_DeleteServiceCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
1363
1082
|
Object.assign(contents, doc);
|
|
1364
1083
|
return contents;
|
|
1365
1084
|
}, "de_DeleteServiceCommand");
|
|
1366
|
-
var de_DeleteServiceCommandError = /* @__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.migrationhubrefactorspaces#AccessDeniedException":
|
|
1375
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1376
|
-
case "ConflictException":
|
|
1377
|
-
case "com.amazonaws.migrationhubrefactorspaces#ConflictException":
|
|
1378
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1379
|
-
case "InternalServerException":
|
|
1380
|
-
case "com.amazonaws.migrationhubrefactorspaces#InternalServerException":
|
|
1381
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1382
|
-
case "ResourceNotFoundException":
|
|
1383
|
-
case "com.amazonaws.migrationhubrefactorspaces#ResourceNotFoundException":
|
|
1384
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1385
|
-
case "ThrottlingException":
|
|
1386
|
-
case "com.amazonaws.migrationhubrefactorspaces#ThrottlingException":
|
|
1387
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1388
|
-
case "ValidationException":
|
|
1389
|
-
case "com.amazonaws.migrationhubrefactorspaces#ValidationException":
|
|
1390
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1391
|
-
default:
|
|
1392
|
-
const parsedBody = parsedOutput.body;
|
|
1393
|
-
return throwDefaultError({
|
|
1394
|
-
output,
|
|
1395
|
-
parsedBody,
|
|
1396
|
-
errorCode
|
|
1397
|
-
});
|
|
1398
|
-
}
|
|
1399
|
-
}, "de_DeleteServiceCommandError");
|
|
1400
1085
|
var de_GetApplicationCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1401
1086
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1402
|
-
return
|
|
1087
|
+
return de_CommandError(output, context);
|
|
1403
1088
|
}
|
|
1404
1089
|
const contents = (0, import_smithy_client.map)({
|
|
1405
1090
|
$metadata: deserializeMetadata(output)
|
|
@@ -1424,40 +1109,9 @@ var de_GetApplicationCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
1424
1109
|
Object.assign(contents, doc);
|
|
1425
1110
|
return contents;
|
|
1426
1111
|
}, "de_GetApplicationCommand");
|
|
1427
|
-
var de_GetApplicationCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1428
|
-
const parsedOutput = {
|
|
1429
|
-
...output,
|
|
1430
|
-
body: await parseErrorBody(output.body, context)
|
|
1431
|
-
};
|
|
1432
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1433
|
-
switch (errorCode) {
|
|
1434
|
-
case "AccessDeniedException":
|
|
1435
|
-
case "com.amazonaws.migrationhubrefactorspaces#AccessDeniedException":
|
|
1436
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1437
|
-
case "InternalServerException":
|
|
1438
|
-
case "com.amazonaws.migrationhubrefactorspaces#InternalServerException":
|
|
1439
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1440
|
-
case "ResourceNotFoundException":
|
|
1441
|
-
case "com.amazonaws.migrationhubrefactorspaces#ResourceNotFoundException":
|
|
1442
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1443
|
-
case "ThrottlingException":
|
|
1444
|
-
case "com.amazonaws.migrationhubrefactorspaces#ThrottlingException":
|
|
1445
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1446
|
-
case "ValidationException":
|
|
1447
|
-
case "com.amazonaws.migrationhubrefactorspaces#ValidationException":
|
|
1448
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1449
|
-
default:
|
|
1450
|
-
const parsedBody = parsedOutput.body;
|
|
1451
|
-
return throwDefaultError({
|
|
1452
|
-
output,
|
|
1453
|
-
parsedBody,
|
|
1454
|
-
errorCode
|
|
1455
|
-
});
|
|
1456
|
-
}
|
|
1457
|
-
}, "de_GetApplicationCommandError");
|
|
1458
1112
|
var de_GetEnvironmentCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1459
1113
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1460
|
-
return
|
|
1114
|
+
return de_CommandError(output, context);
|
|
1461
1115
|
}
|
|
1462
1116
|
const contents = (0, import_smithy_client.map)({
|
|
1463
1117
|
$metadata: deserializeMetadata(output)
|
|
@@ -1480,40 +1134,9 @@ var de_GetEnvironmentCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
1480
1134
|
Object.assign(contents, doc);
|
|
1481
1135
|
return contents;
|
|
1482
1136
|
}, "de_GetEnvironmentCommand");
|
|
1483
|
-
var de_GetEnvironmentCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1484
|
-
const parsedOutput = {
|
|
1485
|
-
...output,
|
|
1486
|
-
body: await parseErrorBody(output.body, context)
|
|
1487
|
-
};
|
|
1488
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1489
|
-
switch (errorCode) {
|
|
1490
|
-
case "AccessDeniedException":
|
|
1491
|
-
case "com.amazonaws.migrationhubrefactorspaces#AccessDeniedException":
|
|
1492
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1493
|
-
case "InternalServerException":
|
|
1494
|
-
case "com.amazonaws.migrationhubrefactorspaces#InternalServerException":
|
|
1495
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1496
|
-
case "ResourceNotFoundException":
|
|
1497
|
-
case "com.amazonaws.migrationhubrefactorspaces#ResourceNotFoundException":
|
|
1498
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1499
|
-
case "ThrottlingException":
|
|
1500
|
-
case "com.amazonaws.migrationhubrefactorspaces#ThrottlingException":
|
|
1501
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1502
|
-
case "ValidationException":
|
|
1503
|
-
case "com.amazonaws.migrationhubrefactorspaces#ValidationException":
|
|
1504
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1505
|
-
default:
|
|
1506
|
-
const parsedBody = parsedOutput.body;
|
|
1507
|
-
return throwDefaultError({
|
|
1508
|
-
output,
|
|
1509
|
-
parsedBody,
|
|
1510
|
-
errorCode
|
|
1511
|
-
});
|
|
1512
|
-
}
|
|
1513
|
-
}, "de_GetEnvironmentCommandError");
|
|
1514
1137
|
var de_GetResourcePolicyCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1515
1138
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1516
|
-
return
|
|
1139
|
+
return de_CommandError(output, context);
|
|
1517
1140
|
}
|
|
1518
1141
|
const contents = (0, import_smithy_client.map)({
|
|
1519
1142
|
$metadata: deserializeMetadata(output)
|
|
@@ -1525,40 +1148,9 @@ var de_GetResourcePolicyCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
1525
1148
|
Object.assign(contents, doc);
|
|
1526
1149
|
return contents;
|
|
1527
1150
|
}, "de_GetResourcePolicyCommand");
|
|
1528
|
-
var de_GetResourcePolicyCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1529
|
-
const parsedOutput = {
|
|
1530
|
-
...output,
|
|
1531
|
-
body: await parseErrorBody(output.body, context)
|
|
1532
|
-
};
|
|
1533
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1534
|
-
switch (errorCode) {
|
|
1535
|
-
case "AccessDeniedException":
|
|
1536
|
-
case "com.amazonaws.migrationhubrefactorspaces#AccessDeniedException":
|
|
1537
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1538
|
-
case "InternalServerException":
|
|
1539
|
-
case "com.amazonaws.migrationhubrefactorspaces#InternalServerException":
|
|
1540
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1541
|
-
case "ResourceNotFoundException":
|
|
1542
|
-
case "com.amazonaws.migrationhubrefactorspaces#ResourceNotFoundException":
|
|
1543
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1544
|
-
case "ThrottlingException":
|
|
1545
|
-
case "com.amazonaws.migrationhubrefactorspaces#ThrottlingException":
|
|
1546
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1547
|
-
case "ValidationException":
|
|
1548
|
-
case "com.amazonaws.migrationhubrefactorspaces#ValidationException":
|
|
1549
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1550
|
-
default:
|
|
1551
|
-
const parsedBody = parsedOutput.body;
|
|
1552
|
-
return throwDefaultError({
|
|
1553
|
-
output,
|
|
1554
|
-
parsedBody,
|
|
1555
|
-
errorCode
|
|
1556
|
-
});
|
|
1557
|
-
}
|
|
1558
|
-
}, "de_GetResourcePolicyCommandError");
|
|
1559
1151
|
var de_GetRouteCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1560
1152
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1561
|
-
return
|
|
1153
|
+
return de_CommandError(output, context);
|
|
1562
1154
|
}
|
|
1563
1155
|
const contents = (0, import_smithy_client.map)({
|
|
1564
1156
|
$metadata: deserializeMetadata(output)
|
|
@@ -1587,40 +1179,9 @@ var de_GetRouteCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
1587
1179
|
Object.assign(contents, doc);
|
|
1588
1180
|
return contents;
|
|
1589
1181
|
}, "de_GetRouteCommand");
|
|
1590
|
-
var de_GetRouteCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1591
|
-
const parsedOutput = {
|
|
1592
|
-
...output,
|
|
1593
|
-
body: await parseErrorBody(output.body, context)
|
|
1594
|
-
};
|
|
1595
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1596
|
-
switch (errorCode) {
|
|
1597
|
-
case "AccessDeniedException":
|
|
1598
|
-
case "com.amazonaws.migrationhubrefactorspaces#AccessDeniedException":
|
|
1599
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1600
|
-
case "InternalServerException":
|
|
1601
|
-
case "com.amazonaws.migrationhubrefactorspaces#InternalServerException":
|
|
1602
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1603
|
-
case "ResourceNotFoundException":
|
|
1604
|
-
case "com.amazonaws.migrationhubrefactorspaces#ResourceNotFoundException":
|
|
1605
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1606
|
-
case "ThrottlingException":
|
|
1607
|
-
case "com.amazonaws.migrationhubrefactorspaces#ThrottlingException":
|
|
1608
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1609
|
-
case "ValidationException":
|
|
1610
|
-
case "com.amazonaws.migrationhubrefactorspaces#ValidationException":
|
|
1611
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1612
|
-
default:
|
|
1613
|
-
const parsedBody = parsedOutput.body;
|
|
1614
|
-
return throwDefaultError({
|
|
1615
|
-
output,
|
|
1616
|
-
parsedBody,
|
|
1617
|
-
errorCode
|
|
1618
|
-
});
|
|
1619
|
-
}
|
|
1620
|
-
}, "de_GetRouteCommandError");
|
|
1621
1182
|
var de_GetServiceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1622
1183
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1623
|
-
return
|
|
1184
|
+
return de_CommandError(output, context);
|
|
1624
1185
|
}
|
|
1625
1186
|
const contents = (0, import_smithy_client.map)({
|
|
1626
1187
|
$metadata: deserializeMetadata(output)
|
|
@@ -1643,97 +1204,29 @@ var de_GetServiceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
1643
1204
|
State: import_smithy_client.expectString,
|
|
1644
1205
|
Tags: import_smithy_client._json,
|
|
1645
1206
|
UrlEndpoint: import_smithy_client._json,
|
|
1646
|
-
VpcId: import_smithy_client.expectString
|
|
1647
|
-
});
|
|
1648
|
-
Object.assign(contents, doc);
|
|
1649
|
-
return contents;
|
|
1650
|
-
}, "de_GetServiceCommand");
|
|
1651
|
-
var
|
|
1652
|
-
|
|
1653
|
-
|
|
1654
|
-
body: await parseErrorBody(output.body, context)
|
|
1655
|
-
};
|
|
1656
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1657
|
-
switch (errorCode) {
|
|
1658
|
-
case "AccessDeniedException":
|
|
1659
|
-
case "com.amazonaws.migrationhubrefactorspaces#AccessDeniedException":
|
|
1660
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1661
|
-
case "InternalServerException":
|
|
1662
|
-
case "com.amazonaws.migrationhubrefactorspaces#InternalServerException":
|
|
1663
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1664
|
-
case "ResourceNotFoundException":
|
|
1665
|
-
case "com.amazonaws.migrationhubrefactorspaces#ResourceNotFoundException":
|
|
1666
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1667
|
-
case "ThrottlingException":
|
|
1668
|
-
case "com.amazonaws.migrationhubrefactorspaces#ThrottlingException":
|
|
1669
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1670
|
-
case "ValidationException":
|
|
1671
|
-
case "com.amazonaws.migrationhubrefactorspaces#ValidationException":
|
|
1672
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1673
|
-
default:
|
|
1674
|
-
const parsedBody = parsedOutput.body;
|
|
1675
|
-
return throwDefaultError({
|
|
1676
|
-
output,
|
|
1677
|
-
parsedBody,
|
|
1678
|
-
errorCode
|
|
1679
|
-
});
|
|
1680
|
-
}
|
|
1681
|
-
}, "de_GetServiceCommandError");
|
|
1682
|
-
var de_ListApplicationsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1683
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1684
|
-
return de_ListApplicationsCommandError(output, context);
|
|
1685
|
-
}
|
|
1686
|
-
const contents = (0, import_smithy_client.map)({
|
|
1687
|
-
$metadata: deserializeMetadata(output)
|
|
1688
|
-
});
|
|
1689
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
|
|
1690
|
-
const doc = (0, import_smithy_client.take)(data, {
|
|
1691
|
-
ApplicationSummaryList: (_) => de_ApplicationSummaries(_, context),
|
|
1692
|
-
NextToken: import_smithy_client.expectString
|
|
1693
|
-
});
|
|
1694
|
-
Object.assign(contents, doc);
|
|
1695
|
-
return contents;
|
|
1696
|
-
}, "de_ListApplicationsCommand");
|
|
1697
|
-
var de_ListApplicationsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1698
|
-
const parsedOutput = {
|
|
1699
|
-
...output,
|
|
1700
|
-
body: await parseErrorBody(output.body, context)
|
|
1701
|
-
};
|
|
1702
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1703
|
-
switch (errorCode) {
|
|
1704
|
-
case "AccessDeniedException":
|
|
1705
|
-
case "com.amazonaws.migrationhubrefactorspaces#AccessDeniedException":
|
|
1706
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1707
|
-
case "ConflictException":
|
|
1708
|
-
case "com.amazonaws.migrationhubrefactorspaces#ConflictException":
|
|
1709
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1710
|
-
case "InternalServerException":
|
|
1711
|
-
case "com.amazonaws.migrationhubrefactorspaces#InternalServerException":
|
|
1712
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1713
|
-
case "ResourceNotFoundException":
|
|
1714
|
-
case "com.amazonaws.migrationhubrefactorspaces#ResourceNotFoundException":
|
|
1715
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1716
|
-
case "ServiceQuotaExceededException":
|
|
1717
|
-
case "com.amazonaws.migrationhubrefactorspaces#ServiceQuotaExceededException":
|
|
1718
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
1719
|
-
case "ThrottlingException":
|
|
1720
|
-
case "com.amazonaws.migrationhubrefactorspaces#ThrottlingException":
|
|
1721
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1722
|
-
case "ValidationException":
|
|
1723
|
-
case "com.amazonaws.migrationhubrefactorspaces#ValidationException":
|
|
1724
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1725
|
-
default:
|
|
1726
|
-
const parsedBody = parsedOutput.body;
|
|
1727
|
-
return throwDefaultError({
|
|
1728
|
-
output,
|
|
1729
|
-
parsedBody,
|
|
1730
|
-
errorCode
|
|
1731
|
-
});
|
|
1207
|
+
VpcId: import_smithy_client.expectString
|
|
1208
|
+
});
|
|
1209
|
+
Object.assign(contents, doc);
|
|
1210
|
+
return contents;
|
|
1211
|
+
}, "de_GetServiceCommand");
|
|
1212
|
+
var de_ListApplicationsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1213
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1214
|
+
return de_CommandError(output, context);
|
|
1732
1215
|
}
|
|
1733
|
-
|
|
1216
|
+
const contents = (0, import_smithy_client.map)({
|
|
1217
|
+
$metadata: deserializeMetadata(output)
|
|
1218
|
+
});
|
|
1219
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
|
|
1220
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
1221
|
+
ApplicationSummaryList: (_) => de_ApplicationSummaries(_, context),
|
|
1222
|
+
NextToken: import_smithy_client.expectString
|
|
1223
|
+
});
|
|
1224
|
+
Object.assign(contents, doc);
|
|
1225
|
+
return contents;
|
|
1226
|
+
}, "de_ListApplicationsCommand");
|
|
1734
1227
|
var de_ListEnvironmentsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1735
1228
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1736
|
-
return
|
|
1229
|
+
return de_CommandError(output, context);
|
|
1737
1230
|
}
|
|
1738
1231
|
const contents = (0, import_smithy_client.map)({
|
|
1739
1232
|
$metadata: deserializeMetadata(output)
|
|
@@ -1746,40 +1239,9 @@ var de_ListEnvironmentsCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
1746
1239
|
Object.assign(contents, doc);
|
|
1747
1240
|
return contents;
|
|
1748
1241
|
}, "de_ListEnvironmentsCommand");
|
|
1749
|
-
var de_ListEnvironmentsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1750
|
-
const parsedOutput = {
|
|
1751
|
-
...output,
|
|
1752
|
-
body: await parseErrorBody(output.body, context)
|
|
1753
|
-
};
|
|
1754
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1755
|
-
switch (errorCode) {
|
|
1756
|
-
case "AccessDeniedException":
|
|
1757
|
-
case "com.amazonaws.migrationhubrefactorspaces#AccessDeniedException":
|
|
1758
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1759
|
-
case "InternalServerException":
|
|
1760
|
-
case "com.amazonaws.migrationhubrefactorspaces#InternalServerException":
|
|
1761
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1762
|
-
case "ResourceNotFoundException":
|
|
1763
|
-
case "com.amazonaws.migrationhubrefactorspaces#ResourceNotFoundException":
|
|
1764
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1765
|
-
case "ThrottlingException":
|
|
1766
|
-
case "com.amazonaws.migrationhubrefactorspaces#ThrottlingException":
|
|
1767
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1768
|
-
case "ValidationException":
|
|
1769
|
-
case "com.amazonaws.migrationhubrefactorspaces#ValidationException":
|
|
1770
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1771
|
-
default:
|
|
1772
|
-
const parsedBody = parsedOutput.body;
|
|
1773
|
-
return throwDefaultError({
|
|
1774
|
-
output,
|
|
1775
|
-
parsedBody,
|
|
1776
|
-
errorCode
|
|
1777
|
-
});
|
|
1778
|
-
}
|
|
1779
|
-
}, "de_ListEnvironmentsCommandError");
|
|
1780
1242
|
var de_ListEnvironmentVpcsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1781
1243
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1782
|
-
return
|
|
1244
|
+
return de_CommandError(output, context);
|
|
1783
1245
|
}
|
|
1784
1246
|
const contents = (0, import_smithy_client.map)({
|
|
1785
1247
|
$metadata: deserializeMetadata(output)
|
|
@@ -1792,40 +1254,9 @@ var de_ListEnvironmentVpcsCommand = /* @__PURE__ */ __name(async (output, contex
|
|
|
1792
1254
|
Object.assign(contents, doc);
|
|
1793
1255
|
return contents;
|
|
1794
1256
|
}, "de_ListEnvironmentVpcsCommand");
|
|
1795
|
-
var de_ListEnvironmentVpcsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1796
|
-
const parsedOutput = {
|
|
1797
|
-
...output,
|
|
1798
|
-
body: await parseErrorBody(output.body, context)
|
|
1799
|
-
};
|
|
1800
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1801
|
-
switch (errorCode) {
|
|
1802
|
-
case "AccessDeniedException":
|
|
1803
|
-
case "com.amazonaws.migrationhubrefactorspaces#AccessDeniedException":
|
|
1804
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1805
|
-
case "InternalServerException":
|
|
1806
|
-
case "com.amazonaws.migrationhubrefactorspaces#InternalServerException":
|
|
1807
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1808
|
-
case "ResourceNotFoundException":
|
|
1809
|
-
case "com.amazonaws.migrationhubrefactorspaces#ResourceNotFoundException":
|
|
1810
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1811
|
-
case "ThrottlingException":
|
|
1812
|
-
case "com.amazonaws.migrationhubrefactorspaces#ThrottlingException":
|
|
1813
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1814
|
-
case "ValidationException":
|
|
1815
|
-
case "com.amazonaws.migrationhubrefactorspaces#ValidationException":
|
|
1816
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1817
|
-
default:
|
|
1818
|
-
const parsedBody = parsedOutput.body;
|
|
1819
|
-
return throwDefaultError({
|
|
1820
|
-
output,
|
|
1821
|
-
parsedBody,
|
|
1822
|
-
errorCode
|
|
1823
|
-
});
|
|
1824
|
-
}
|
|
1825
|
-
}, "de_ListEnvironmentVpcsCommandError");
|
|
1826
1257
|
var de_ListRoutesCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1827
1258
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1828
|
-
return
|
|
1259
|
+
return de_CommandError(output, context);
|
|
1829
1260
|
}
|
|
1830
1261
|
const contents = (0, import_smithy_client.map)({
|
|
1831
1262
|
$metadata: deserializeMetadata(output)
|
|
@@ -1838,46 +1269,9 @@ var de_ListRoutesCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
1838
1269
|
Object.assign(contents, doc);
|
|
1839
1270
|
return contents;
|
|
1840
1271
|
}, "de_ListRoutesCommand");
|
|
1841
|
-
var de_ListRoutesCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1842
|
-
const parsedOutput = {
|
|
1843
|
-
...output,
|
|
1844
|
-
body: await parseErrorBody(output.body, context)
|
|
1845
|
-
};
|
|
1846
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1847
|
-
switch (errorCode) {
|
|
1848
|
-
case "AccessDeniedException":
|
|
1849
|
-
case "com.amazonaws.migrationhubrefactorspaces#AccessDeniedException":
|
|
1850
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1851
|
-
case "ConflictException":
|
|
1852
|
-
case "com.amazonaws.migrationhubrefactorspaces#ConflictException":
|
|
1853
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1854
|
-
case "InternalServerException":
|
|
1855
|
-
case "com.amazonaws.migrationhubrefactorspaces#InternalServerException":
|
|
1856
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1857
|
-
case "ResourceNotFoundException":
|
|
1858
|
-
case "com.amazonaws.migrationhubrefactorspaces#ResourceNotFoundException":
|
|
1859
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1860
|
-
case "ServiceQuotaExceededException":
|
|
1861
|
-
case "com.amazonaws.migrationhubrefactorspaces#ServiceQuotaExceededException":
|
|
1862
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
1863
|
-
case "ThrottlingException":
|
|
1864
|
-
case "com.amazonaws.migrationhubrefactorspaces#ThrottlingException":
|
|
1865
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1866
|
-
case "ValidationException":
|
|
1867
|
-
case "com.amazonaws.migrationhubrefactorspaces#ValidationException":
|
|
1868
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1869
|
-
default:
|
|
1870
|
-
const parsedBody = parsedOutput.body;
|
|
1871
|
-
return throwDefaultError({
|
|
1872
|
-
output,
|
|
1873
|
-
parsedBody,
|
|
1874
|
-
errorCode
|
|
1875
|
-
});
|
|
1876
|
-
}
|
|
1877
|
-
}, "de_ListRoutesCommandError");
|
|
1878
1272
|
var de_ListServicesCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1879
1273
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1880
|
-
return
|
|
1274
|
+
return de_CommandError(output, context);
|
|
1881
1275
|
}
|
|
1882
1276
|
const contents = (0, import_smithy_client.map)({
|
|
1883
1277
|
$metadata: deserializeMetadata(output)
|
|
@@ -1890,46 +1284,9 @@ var de_ListServicesCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
1890
1284
|
Object.assign(contents, doc);
|
|
1891
1285
|
return contents;
|
|
1892
1286
|
}, "de_ListServicesCommand");
|
|
1893
|
-
var de_ListServicesCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1894
|
-
const parsedOutput = {
|
|
1895
|
-
...output,
|
|
1896
|
-
body: await parseErrorBody(output.body, context)
|
|
1897
|
-
};
|
|
1898
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1899
|
-
switch (errorCode) {
|
|
1900
|
-
case "AccessDeniedException":
|
|
1901
|
-
case "com.amazonaws.migrationhubrefactorspaces#AccessDeniedException":
|
|
1902
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1903
|
-
case "ConflictException":
|
|
1904
|
-
case "com.amazonaws.migrationhubrefactorspaces#ConflictException":
|
|
1905
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1906
|
-
case "InternalServerException":
|
|
1907
|
-
case "com.amazonaws.migrationhubrefactorspaces#InternalServerException":
|
|
1908
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1909
|
-
case "ResourceNotFoundException":
|
|
1910
|
-
case "com.amazonaws.migrationhubrefactorspaces#ResourceNotFoundException":
|
|
1911
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1912
|
-
case "ServiceQuotaExceededException":
|
|
1913
|
-
case "com.amazonaws.migrationhubrefactorspaces#ServiceQuotaExceededException":
|
|
1914
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
1915
|
-
case "ThrottlingException":
|
|
1916
|
-
case "com.amazonaws.migrationhubrefactorspaces#ThrottlingException":
|
|
1917
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1918
|
-
case "ValidationException":
|
|
1919
|
-
case "com.amazonaws.migrationhubrefactorspaces#ValidationException":
|
|
1920
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1921
|
-
default:
|
|
1922
|
-
const parsedBody = parsedOutput.body;
|
|
1923
|
-
return throwDefaultError({
|
|
1924
|
-
output,
|
|
1925
|
-
parsedBody,
|
|
1926
|
-
errorCode
|
|
1927
|
-
});
|
|
1928
|
-
}
|
|
1929
|
-
}, "de_ListServicesCommandError");
|
|
1930
1287
|
var de_ListTagsForResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1931
1288
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1932
|
-
return
|
|
1289
|
+
return de_CommandError(output, context);
|
|
1933
1290
|
}
|
|
1934
1291
|
const contents = (0, import_smithy_client.map)({
|
|
1935
1292
|
$metadata: deserializeMetadata(output)
|
|
@@ -1941,34 +1298,9 @@ var de_ListTagsForResourceCommand = /* @__PURE__ */ __name(async (output, contex
|
|
|
1941
1298
|
Object.assign(contents, doc);
|
|
1942
1299
|
return contents;
|
|
1943
1300
|
}, "de_ListTagsForResourceCommand");
|
|
1944
|
-
var de_ListTagsForResourceCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1945
|
-
const parsedOutput = {
|
|
1946
|
-
...output,
|
|
1947
|
-
body: await parseErrorBody(output.body, context)
|
|
1948
|
-
};
|
|
1949
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1950
|
-
switch (errorCode) {
|
|
1951
|
-
case "InternalServerException":
|
|
1952
|
-
case "com.amazonaws.migrationhubrefactorspaces#InternalServerException":
|
|
1953
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1954
|
-
case "ResourceNotFoundException":
|
|
1955
|
-
case "com.amazonaws.migrationhubrefactorspaces#ResourceNotFoundException":
|
|
1956
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1957
|
-
case "ValidationException":
|
|
1958
|
-
case "com.amazonaws.migrationhubrefactorspaces#ValidationException":
|
|
1959
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1960
|
-
default:
|
|
1961
|
-
const parsedBody = parsedOutput.body;
|
|
1962
|
-
return throwDefaultError({
|
|
1963
|
-
output,
|
|
1964
|
-
parsedBody,
|
|
1965
|
-
errorCode
|
|
1966
|
-
});
|
|
1967
|
-
}
|
|
1968
|
-
}, "de_ListTagsForResourceCommandError");
|
|
1969
1301
|
var de_PutResourcePolicyCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1970
1302
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1971
|
-
return
|
|
1303
|
+
return de_CommandError(output, context);
|
|
1972
1304
|
}
|
|
1973
1305
|
const contents = (0, import_smithy_client.map)({
|
|
1974
1306
|
$metadata: deserializeMetadata(output)
|
|
@@ -1976,43 +1308,9 @@ var de_PutResourcePolicyCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
1976
1308
|
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
1977
1309
|
return contents;
|
|
1978
1310
|
}, "de_PutResourcePolicyCommand");
|
|
1979
|
-
var de_PutResourcePolicyCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1980
|
-
const parsedOutput = {
|
|
1981
|
-
...output,
|
|
1982
|
-
body: await parseErrorBody(output.body, context)
|
|
1983
|
-
};
|
|
1984
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1985
|
-
switch (errorCode) {
|
|
1986
|
-
case "AccessDeniedException":
|
|
1987
|
-
case "com.amazonaws.migrationhubrefactorspaces#AccessDeniedException":
|
|
1988
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1989
|
-
case "InternalServerException":
|
|
1990
|
-
case "com.amazonaws.migrationhubrefactorspaces#InternalServerException":
|
|
1991
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1992
|
-
case "InvalidResourcePolicyException":
|
|
1993
|
-
case "com.amazonaws.migrationhubrefactorspaces#InvalidResourcePolicyException":
|
|
1994
|
-
throw await de_InvalidResourcePolicyExceptionRes(parsedOutput, context);
|
|
1995
|
-
case "ResourceNotFoundException":
|
|
1996
|
-
case "com.amazonaws.migrationhubrefactorspaces#ResourceNotFoundException":
|
|
1997
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1998
|
-
case "ThrottlingException":
|
|
1999
|
-
case "com.amazonaws.migrationhubrefactorspaces#ThrottlingException":
|
|
2000
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2001
|
-
case "ValidationException":
|
|
2002
|
-
case "com.amazonaws.migrationhubrefactorspaces#ValidationException":
|
|
2003
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2004
|
-
default:
|
|
2005
|
-
const parsedBody = parsedOutput.body;
|
|
2006
|
-
return throwDefaultError({
|
|
2007
|
-
output,
|
|
2008
|
-
parsedBody,
|
|
2009
|
-
errorCode
|
|
2010
|
-
});
|
|
2011
|
-
}
|
|
2012
|
-
}, "de_PutResourcePolicyCommandError");
|
|
2013
1311
|
var de_TagResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2014
1312
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2015
|
-
return
|
|
1313
|
+
return de_CommandError(output, context);
|
|
2016
1314
|
}
|
|
2017
1315
|
const contents = (0, import_smithy_client.map)({
|
|
2018
1316
|
$metadata: deserializeMetadata(output)
|
|
@@ -2020,34 +1318,9 @@ var de_TagResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
2020
1318
|
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
2021
1319
|
return contents;
|
|
2022
1320
|
}, "de_TagResourceCommand");
|
|
2023
|
-
var de_TagResourceCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2024
|
-
const parsedOutput = {
|
|
2025
|
-
...output,
|
|
2026
|
-
body: await parseErrorBody(output.body, context)
|
|
2027
|
-
};
|
|
2028
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2029
|
-
switch (errorCode) {
|
|
2030
|
-
case "InternalServerException":
|
|
2031
|
-
case "com.amazonaws.migrationhubrefactorspaces#InternalServerException":
|
|
2032
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2033
|
-
case "ResourceNotFoundException":
|
|
2034
|
-
case "com.amazonaws.migrationhubrefactorspaces#ResourceNotFoundException":
|
|
2035
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2036
|
-
case "ValidationException":
|
|
2037
|
-
case "com.amazonaws.migrationhubrefactorspaces#ValidationException":
|
|
2038
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2039
|
-
default:
|
|
2040
|
-
const parsedBody = parsedOutput.body;
|
|
2041
|
-
return throwDefaultError({
|
|
2042
|
-
output,
|
|
2043
|
-
parsedBody,
|
|
2044
|
-
errorCode
|
|
2045
|
-
});
|
|
2046
|
-
}
|
|
2047
|
-
}, "de_TagResourceCommandError");
|
|
2048
1321
|
var de_UntagResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2049
1322
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2050
|
-
return
|
|
1323
|
+
return de_CommandError(output, context);
|
|
2051
1324
|
}
|
|
2052
1325
|
const contents = (0, import_smithy_client.map)({
|
|
2053
1326
|
$metadata: deserializeMetadata(output)
|
|
@@ -2055,34 +1328,9 @@ var de_UntagResourceCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
2055
1328
|
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
2056
1329
|
return contents;
|
|
2057
1330
|
}, "de_UntagResourceCommand");
|
|
2058
|
-
var de_UntagResourceCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2059
|
-
const parsedOutput = {
|
|
2060
|
-
...output,
|
|
2061
|
-
body: await parseErrorBody(output.body, context)
|
|
2062
|
-
};
|
|
2063
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2064
|
-
switch (errorCode) {
|
|
2065
|
-
case "InternalServerException":
|
|
2066
|
-
case "com.amazonaws.migrationhubrefactorspaces#InternalServerException":
|
|
2067
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2068
|
-
case "ResourceNotFoundException":
|
|
2069
|
-
case "com.amazonaws.migrationhubrefactorspaces#ResourceNotFoundException":
|
|
2070
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2071
|
-
case "ValidationException":
|
|
2072
|
-
case "com.amazonaws.migrationhubrefactorspaces#ValidationException":
|
|
2073
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2074
|
-
default:
|
|
2075
|
-
const parsedBody = parsedOutput.body;
|
|
2076
|
-
return throwDefaultError({
|
|
2077
|
-
output,
|
|
2078
|
-
parsedBody,
|
|
2079
|
-
errorCode
|
|
2080
|
-
});
|
|
2081
|
-
}
|
|
2082
|
-
}, "de_UntagResourceCommandError");
|
|
2083
1331
|
var de_UpdateRouteCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2084
1332
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2085
|
-
return
|
|
1333
|
+
return de_CommandError(output, context);
|
|
2086
1334
|
}
|
|
2087
1335
|
const contents = (0, import_smithy_client.map)({
|
|
2088
1336
|
$metadata: deserializeMetadata(output)
|
|
@@ -2099,7 +1347,7 @@ var de_UpdateRouteCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
2099
1347
|
Object.assign(contents, doc);
|
|
2100
1348
|
return contents;
|
|
2101
1349
|
}, "de_UpdateRouteCommand");
|
|
2102
|
-
var
|
|
1350
|
+
var de_CommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2103
1351
|
const parsedOutput = {
|
|
2104
1352
|
...output,
|
|
2105
1353
|
body: await parseErrorBody(output.body, context)
|
|
@@ -2109,18 +1357,27 @@ var de_UpdateRouteCommandError = /* @__PURE__ */ __name(async (output, context)
|
|
|
2109
1357
|
case "AccessDeniedException":
|
|
2110
1358
|
case "com.amazonaws.migrationhubrefactorspaces#AccessDeniedException":
|
|
2111
1359
|
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1360
|
+
case "ConflictException":
|
|
1361
|
+
case "com.amazonaws.migrationhubrefactorspaces#ConflictException":
|
|
1362
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
2112
1363
|
case "InternalServerException":
|
|
2113
1364
|
case "com.amazonaws.migrationhubrefactorspaces#InternalServerException":
|
|
2114
1365
|
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2115
1366
|
case "ResourceNotFoundException":
|
|
2116
1367
|
case "com.amazonaws.migrationhubrefactorspaces#ResourceNotFoundException":
|
|
2117
1368
|
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1369
|
+
case "ServiceQuotaExceededException":
|
|
1370
|
+
case "com.amazonaws.migrationhubrefactorspaces#ServiceQuotaExceededException":
|
|
1371
|
+
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
2118
1372
|
case "ThrottlingException":
|
|
2119
1373
|
case "com.amazonaws.migrationhubrefactorspaces#ThrottlingException":
|
|
2120
1374
|
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2121
1375
|
case "ValidationException":
|
|
2122
1376
|
case "com.amazonaws.migrationhubrefactorspaces#ValidationException":
|
|
2123
1377
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1378
|
+
case "InvalidResourcePolicyException":
|
|
1379
|
+
case "com.amazonaws.migrationhubrefactorspaces#InvalidResourcePolicyException":
|
|
1380
|
+
throw await de_InvalidResourcePolicyExceptionRes(parsedOutput, context);
|
|
2124
1381
|
default:
|
|
2125
1382
|
const parsedBody = parsedOutput.body;
|
|
2126
1383
|
return throwDefaultError({
|
|
@@ -2129,7 +1386,7 @@ var de_UpdateRouteCommandError = /* @__PURE__ */ __name(async (output, context)
|
|
|
2129
1386
|
errorCode
|
|
2130
1387
|
});
|
|
2131
1388
|
}
|
|
2132
|
-
}, "
|
|
1389
|
+
}, "de_CommandError");
|
|
2133
1390
|
var throwDefaultError = (0, import_smithy_client.withBaseException)(MigrationHubRefactorSpacesServiceException);
|
|
2134
1391
|
var de_AccessDeniedExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
2135
1392
|
const contents = (0, import_smithy_client.map)({});
|