@aws-sdk/client-emr 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 +72 -1158
- package/dist-es/protocols/Aws_json1_1.js +72 -1158
- package/package.json +3 -3
package/dist-cjs/index.js
CHANGED
|
@@ -942,7 +942,7 @@ var se_UpdateStudioSessionMappingCommand = /* @__PURE__ */ __name(async (input,
|
|
|
942
942
|
}, "se_UpdateStudioSessionMappingCommand");
|
|
943
943
|
var de_AddInstanceFleetCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
944
944
|
if (output.statusCode >= 300) {
|
|
945
|
-
return
|
|
945
|
+
return de_CommandError(output, context);
|
|
946
946
|
}
|
|
947
947
|
const data = await parseBody(output.body, context);
|
|
948
948
|
let contents = {};
|
|
@@ -953,31 +953,9 @@ var de_AddInstanceFleetCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
953
953
|
};
|
|
954
954
|
return response;
|
|
955
955
|
}, "de_AddInstanceFleetCommand");
|
|
956
|
-
var de_AddInstanceFleetCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
957
|
-
const parsedOutput = {
|
|
958
|
-
...output,
|
|
959
|
-
body: await parseErrorBody(output.body, context)
|
|
960
|
-
};
|
|
961
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
962
|
-
switch (errorCode) {
|
|
963
|
-
case "InternalServerException":
|
|
964
|
-
case "com.amazonaws.emr#InternalServerException":
|
|
965
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
966
|
-
case "InvalidRequestException":
|
|
967
|
-
case "com.amazonaws.emr#InvalidRequestException":
|
|
968
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
969
|
-
default:
|
|
970
|
-
const parsedBody = parsedOutput.body;
|
|
971
|
-
return throwDefaultError({
|
|
972
|
-
output,
|
|
973
|
-
parsedBody,
|
|
974
|
-
errorCode
|
|
975
|
-
});
|
|
976
|
-
}
|
|
977
|
-
}, "de_AddInstanceFleetCommandError");
|
|
978
956
|
var de_AddInstanceGroupsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
979
957
|
if (output.statusCode >= 300) {
|
|
980
|
-
return
|
|
958
|
+
return de_CommandError(output, context);
|
|
981
959
|
}
|
|
982
960
|
const data = await parseBody(output.body, context);
|
|
983
961
|
let contents = {};
|
|
@@ -988,28 +966,9 @@ var de_AddInstanceGroupsCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
988
966
|
};
|
|
989
967
|
return response;
|
|
990
968
|
}, "de_AddInstanceGroupsCommand");
|
|
991
|
-
var de_AddInstanceGroupsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
992
|
-
const parsedOutput = {
|
|
993
|
-
...output,
|
|
994
|
-
body: await parseErrorBody(output.body, context)
|
|
995
|
-
};
|
|
996
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
997
|
-
switch (errorCode) {
|
|
998
|
-
case "InternalServerError":
|
|
999
|
-
case "com.amazonaws.emr#InternalServerError":
|
|
1000
|
-
throw await de_InternalServerErrorRes(parsedOutput, context);
|
|
1001
|
-
default:
|
|
1002
|
-
const parsedBody = parsedOutput.body;
|
|
1003
|
-
return throwDefaultError({
|
|
1004
|
-
output,
|
|
1005
|
-
parsedBody,
|
|
1006
|
-
errorCode
|
|
1007
|
-
});
|
|
1008
|
-
}
|
|
1009
|
-
}, "de_AddInstanceGroupsCommandError");
|
|
1010
969
|
var de_AddJobFlowStepsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1011
970
|
if (output.statusCode >= 300) {
|
|
1012
|
-
return
|
|
971
|
+
return de_CommandError(output, context);
|
|
1013
972
|
}
|
|
1014
973
|
const data = await parseBody(output.body, context);
|
|
1015
974
|
let contents = {};
|
|
@@ -1020,28 +979,9 @@ var de_AddJobFlowStepsCommand = /* @__PURE__ */ __name(async (output, context) =
|
|
|
1020
979
|
};
|
|
1021
980
|
return response;
|
|
1022
981
|
}, "de_AddJobFlowStepsCommand");
|
|
1023
|
-
var de_AddJobFlowStepsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1024
|
-
const parsedOutput = {
|
|
1025
|
-
...output,
|
|
1026
|
-
body: await parseErrorBody(output.body, context)
|
|
1027
|
-
};
|
|
1028
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1029
|
-
switch (errorCode) {
|
|
1030
|
-
case "InternalServerError":
|
|
1031
|
-
case "com.amazonaws.emr#InternalServerError":
|
|
1032
|
-
throw await de_InternalServerErrorRes(parsedOutput, context);
|
|
1033
|
-
default:
|
|
1034
|
-
const parsedBody = parsedOutput.body;
|
|
1035
|
-
return throwDefaultError({
|
|
1036
|
-
output,
|
|
1037
|
-
parsedBody,
|
|
1038
|
-
errorCode
|
|
1039
|
-
});
|
|
1040
|
-
}
|
|
1041
|
-
}, "de_AddJobFlowStepsCommandError");
|
|
1042
982
|
var de_AddTagsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1043
983
|
if (output.statusCode >= 300) {
|
|
1044
|
-
return
|
|
984
|
+
return de_CommandError(output, context);
|
|
1045
985
|
}
|
|
1046
986
|
const data = await parseBody(output.body, context);
|
|
1047
987
|
let contents = {};
|
|
@@ -1052,31 +992,9 @@ var de_AddTagsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
1052
992
|
};
|
|
1053
993
|
return response;
|
|
1054
994
|
}, "de_AddTagsCommand");
|
|
1055
|
-
var de_AddTagsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1056
|
-
const parsedOutput = {
|
|
1057
|
-
...output,
|
|
1058
|
-
body: await parseErrorBody(output.body, context)
|
|
1059
|
-
};
|
|
1060
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1061
|
-
switch (errorCode) {
|
|
1062
|
-
case "InternalServerException":
|
|
1063
|
-
case "com.amazonaws.emr#InternalServerException":
|
|
1064
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1065
|
-
case "InvalidRequestException":
|
|
1066
|
-
case "com.amazonaws.emr#InvalidRequestException":
|
|
1067
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
1068
|
-
default:
|
|
1069
|
-
const parsedBody = parsedOutput.body;
|
|
1070
|
-
return throwDefaultError({
|
|
1071
|
-
output,
|
|
1072
|
-
parsedBody,
|
|
1073
|
-
errorCode
|
|
1074
|
-
});
|
|
1075
|
-
}
|
|
1076
|
-
}, "de_AddTagsCommandError");
|
|
1077
995
|
var de_CancelStepsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1078
996
|
if (output.statusCode >= 300) {
|
|
1079
|
-
return
|
|
997
|
+
return de_CommandError(output, context);
|
|
1080
998
|
}
|
|
1081
999
|
const data = await parseBody(output.body, context);
|
|
1082
1000
|
let contents = {};
|
|
@@ -1087,31 +1005,9 @@ var de_CancelStepsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
1087
1005
|
};
|
|
1088
1006
|
return response;
|
|
1089
1007
|
}, "de_CancelStepsCommand");
|
|
1090
|
-
var de_CancelStepsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1091
|
-
const parsedOutput = {
|
|
1092
|
-
...output,
|
|
1093
|
-
body: await parseErrorBody(output.body, context)
|
|
1094
|
-
};
|
|
1095
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1096
|
-
switch (errorCode) {
|
|
1097
|
-
case "InternalServerError":
|
|
1098
|
-
case "com.amazonaws.emr#InternalServerError":
|
|
1099
|
-
throw await de_InternalServerErrorRes(parsedOutput, context);
|
|
1100
|
-
case "InvalidRequestException":
|
|
1101
|
-
case "com.amazonaws.emr#InvalidRequestException":
|
|
1102
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
1103
|
-
default:
|
|
1104
|
-
const parsedBody = parsedOutput.body;
|
|
1105
|
-
return throwDefaultError({
|
|
1106
|
-
output,
|
|
1107
|
-
parsedBody,
|
|
1108
|
-
errorCode
|
|
1109
|
-
});
|
|
1110
|
-
}
|
|
1111
|
-
}, "de_CancelStepsCommandError");
|
|
1112
1008
|
var de_CreateSecurityConfigurationCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1113
1009
|
if (output.statusCode >= 300) {
|
|
1114
|
-
return
|
|
1010
|
+
return de_CommandError(output, context);
|
|
1115
1011
|
}
|
|
1116
1012
|
const data = await parseBody(output.body, context);
|
|
1117
1013
|
let contents = {};
|
|
@@ -1122,31 +1018,9 @@ var de_CreateSecurityConfigurationCommand = /* @__PURE__ */ __name(async (output
|
|
|
1122
1018
|
};
|
|
1123
1019
|
return response;
|
|
1124
1020
|
}, "de_CreateSecurityConfigurationCommand");
|
|
1125
|
-
var de_CreateSecurityConfigurationCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1126
|
-
const parsedOutput = {
|
|
1127
|
-
...output,
|
|
1128
|
-
body: await parseErrorBody(output.body, context)
|
|
1129
|
-
};
|
|
1130
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1131
|
-
switch (errorCode) {
|
|
1132
|
-
case "InternalServerException":
|
|
1133
|
-
case "com.amazonaws.emr#InternalServerException":
|
|
1134
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1135
|
-
case "InvalidRequestException":
|
|
1136
|
-
case "com.amazonaws.emr#InvalidRequestException":
|
|
1137
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
1138
|
-
default:
|
|
1139
|
-
const parsedBody = parsedOutput.body;
|
|
1140
|
-
return throwDefaultError({
|
|
1141
|
-
output,
|
|
1142
|
-
parsedBody,
|
|
1143
|
-
errorCode
|
|
1144
|
-
});
|
|
1145
|
-
}
|
|
1146
|
-
}, "de_CreateSecurityConfigurationCommandError");
|
|
1147
1021
|
var de_CreateStudioCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1148
1022
|
if (output.statusCode >= 300) {
|
|
1149
|
-
return
|
|
1023
|
+
return de_CommandError(output, context);
|
|
1150
1024
|
}
|
|
1151
1025
|
const data = await parseBody(output.body, context);
|
|
1152
1026
|
let contents = {};
|
|
@@ -1157,31 +1031,9 @@ var de_CreateStudioCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
1157
1031
|
};
|
|
1158
1032
|
return response;
|
|
1159
1033
|
}, "de_CreateStudioCommand");
|
|
1160
|
-
var de_CreateStudioCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1161
|
-
const parsedOutput = {
|
|
1162
|
-
...output,
|
|
1163
|
-
body: await parseErrorBody(output.body, context)
|
|
1164
|
-
};
|
|
1165
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1166
|
-
switch (errorCode) {
|
|
1167
|
-
case "InternalServerException":
|
|
1168
|
-
case "com.amazonaws.emr#InternalServerException":
|
|
1169
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1170
|
-
case "InvalidRequestException":
|
|
1171
|
-
case "com.amazonaws.emr#InvalidRequestException":
|
|
1172
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
1173
|
-
default:
|
|
1174
|
-
const parsedBody = parsedOutput.body;
|
|
1175
|
-
return throwDefaultError({
|
|
1176
|
-
output,
|
|
1177
|
-
parsedBody,
|
|
1178
|
-
errorCode
|
|
1179
|
-
});
|
|
1180
|
-
}
|
|
1181
|
-
}, "de_CreateStudioCommandError");
|
|
1182
1034
|
var de_CreateStudioSessionMappingCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1183
1035
|
if (output.statusCode >= 300) {
|
|
1184
|
-
return
|
|
1036
|
+
return de_CommandError(output, context);
|
|
1185
1037
|
}
|
|
1186
1038
|
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
1187
1039
|
const response = {
|
|
@@ -1189,31 +1041,9 @@ var de_CreateStudioSessionMappingCommand = /* @__PURE__ */ __name(async (output,
|
|
|
1189
1041
|
};
|
|
1190
1042
|
return response;
|
|
1191
1043
|
}, "de_CreateStudioSessionMappingCommand");
|
|
1192
|
-
var de_CreateStudioSessionMappingCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1193
|
-
const parsedOutput = {
|
|
1194
|
-
...output,
|
|
1195
|
-
body: await parseErrorBody(output.body, context)
|
|
1196
|
-
};
|
|
1197
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1198
|
-
switch (errorCode) {
|
|
1199
|
-
case "InternalServerError":
|
|
1200
|
-
case "com.amazonaws.emr#InternalServerError":
|
|
1201
|
-
throw await de_InternalServerErrorRes(parsedOutput, context);
|
|
1202
|
-
case "InvalidRequestException":
|
|
1203
|
-
case "com.amazonaws.emr#InvalidRequestException":
|
|
1204
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
1205
|
-
default:
|
|
1206
|
-
const parsedBody = parsedOutput.body;
|
|
1207
|
-
return throwDefaultError({
|
|
1208
|
-
output,
|
|
1209
|
-
parsedBody,
|
|
1210
|
-
errorCode
|
|
1211
|
-
});
|
|
1212
|
-
}
|
|
1213
|
-
}, "de_CreateStudioSessionMappingCommandError");
|
|
1214
1044
|
var de_DeleteSecurityConfigurationCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1215
1045
|
if (output.statusCode >= 300) {
|
|
1216
|
-
return
|
|
1046
|
+
return de_CommandError(output, context);
|
|
1217
1047
|
}
|
|
1218
1048
|
const data = await parseBody(output.body, context);
|
|
1219
1049
|
let contents = {};
|
|
@@ -1224,31 +1054,9 @@ var de_DeleteSecurityConfigurationCommand = /* @__PURE__ */ __name(async (output
|
|
|
1224
1054
|
};
|
|
1225
1055
|
return response;
|
|
1226
1056
|
}, "de_DeleteSecurityConfigurationCommand");
|
|
1227
|
-
var de_DeleteSecurityConfigurationCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1228
|
-
const parsedOutput = {
|
|
1229
|
-
...output,
|
|
1230
|
-
body: await parseErrorBody(output.body, context)
|
|
1231
|
-
};
|
|
1232
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1233
|
-
switch (errorCode) {
|
|
1234
|
-
case "InternalServerException":
|
|
1235
|
-
case "com.amazonaws.emr#InternalServerException":
|
|
1236
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1237
|
-
case "InvalidRequestException":
|
|
1238
|
-
case "com.amazonaws.emr#InvalidRequestException":
|
|
1239
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
1240
|
-
default:
|
|
1241
|
-
const parsedBody = parsedOutput.body;
|
|
1242
|
-
return throwDefaultError({
|
|
1243
|
-
output,
|
|
1244
|
-
parsedBody,
|
|
1245
|
-
errorCode
|
|
1246
|
-
});
|
|
1247
|
-
}
|
|
1248
|
-
}, "de_DeleteSecurityConfigurationCommandError");
|
|
1249
1057
|
var de_DeleteStudioCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1250
1058
|
if (output.statusCode >= 300) {
|
|
1251
|
-
return
|
|
1059
|
+
return de_CommandError(output, context);
|
|
1252
1060
|
}
|
|
1253
1061
|
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
1254
1062
|
const response = {
|
|
@@ -1256,31 +1064,9 @@ var de_DeleteStudioCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
1256
1064
|
};
|
|
1257
1065
|
return response;
|
|
1258
1066
|
}, "de_DeleteStudioCommand");
|
|
1259
|
-
var de_DeleteStudioCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1260
|
-
const parsedOutput = {
|
|
1261
|
-
...output,
|
|
1262
|
-
body: await parseErrorBody(output.body, context)
|
|
1263
|
-
};
|
|
1264
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1265
|
-
switch (errorCode) {
|
|
1266
|
-
case "InternalServerException":
|
|
1267
|
-
case "com.amazonaws.emr#InternalServerException":
|
|
1268
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1269
|
-
case "InvalidRequestException":
|
|
1270
|
-
case "com.amazonaws.emr#InvalidRequestException":
|
|
1271
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
1272
|
-
default:
|
|
1273
|
-
const parsedBody = parsedOutput.body;
|
|
1274
|
-
return throwDefaultError({
|
|
1275
|
-
output,
|
|
1276
|
-
parsedBody,
|
|
1277
|
-
errorCode
|
|
1278
|
-
});
|
|
1279
|
-
}
|
|
1280
|
-
}, "de_DeleteStudioCommandError");
|
|
1281
1067
|
var de_DeleteStudioSessionMappingCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1282
1068
|
if (output.statusCode >= 300) {
|
|
1283
|
-
return
|
|
1069
|
+
return de_CommandError(output, context);
|
|
1284
1070
|
}
|
|
1285
1071
|
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
1286
1072
|
const response = {
|
|
@@ -1288,31 +1074,9 @@ var de_DeleteStudioSessionMappingCommand = /* @__PURE__ */ __name(async (output,
|
|
|
1288
1074
|
};
|
|
1289
1075
|
return response;
|
|
1290
1076
|
}, "de_DeleteStudioSessionMappingCommand");
|
|
1291
|
-
var de_DeleteStudioSessionMappingCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1292
|
-
const parsedOutput = {
|
|
1293
|
-
...output,
|
|
1294
|
-
body: await parseErrorBody(output.body, context)
|
|
1295
|
-
};
|
|
1296
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1297
|
-
switch (errorCode) {
|
|
1298
|
-
case "InternalServerError":
|
|
1299
|
-
case "com.amazonaws.emr#InternalServerError":
|
|
1300
|
-
throw await de_InternalServerErrorRes(parsedOutput, context);
|
|
1301
|
-
case "InvalidRequestException":
|
|
1302
|
-
case "com.amazonaws.emr#InvalidRequestException":
|
|
1303
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
1304
|
-
default:
|
|
1305
|
-
const parsedBody = parsedOutput.body;
|
|
1306
|
-
return throwDefaultError({
|
|
1307
|
-
output,
|
|
1308
|
-
parsedBody,
|
|
1309
|
-
errorCode
|
|
1310
|
-
});
|
|
1311
|
-
}
|
|
1312
|
-
}, "de_DeleteStudioSessionMappingCommandError");
|
|
1313
1077
|
var de_DescribeClusterCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1314
1078
|
if (output.statusCode >= 300) {
|
|
1315
|
-
return
|
|
1079
|
+
return de_CommandError(output, context);
|
|
1316
1080
|
}
|
|
1317
1081
|
const data = await parseBody(output.body, context);
|
|
1318
1082
|
let contents = {};
|
|
@@ -1323,31 +1087,9 @@ var de_DescribeClusterCommand = /* @__PURE__ */ __name(async (output, context) =
|
|
|
1323
1087
|
};
|
|
1324
1088
|
return response;
|
|
1325
1089
|
}, "de_DescribeClusterCommand");
|
|
1326
|
-
var de_DescribeClusterCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1327
|
-
const parsedOutput = {
|
|
1328
|
-
...output,
|
|
1329
|
-
body: await parseErrorBody(output.body, context)
|
|
1330
|
-
};
|
|
1331
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1332
|
-
switch (errorCode) {
|
|
1333
|
-
case "InternalServerException":
|
|
1334
|
-
case "com.amazonaws.emr#InternalServerException":
|
|
1335
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1336
|
-
case "InvalidRequestException":
|
|
1337
|
-
case "com.amazonaws.emr#InvalidRequestException":
|
|
1338
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
1339
|
-
default:
|
|
1340
|
-
const parsedBody = parsedOutput.body;
|
|
1341
|
-
return throwDefaultError({
|
|
1342
|
-
output,
|
|
1343
|
-
parsedBody,
|
|
1344
|
-
errorCode
|
|
1345
|
-
});
|
|
1346
|
-
}
|
|
1347
|
-
}, "de_DescribeClusterCommandError");
|
|
1348
1090
|
var de_DescribeJobFlowsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1349
1091
|
if (output.statusCode >= 300) {
|
|
1350
|
-
return
|
|
1092
|
+
return de_CommandError(output, context);
|
|
1351
1093
|
}
|
|
1352
1094
|
const data = await parseBody(output.body, context);
|
|
1353
1095
|
let contents = {};
|
|
@@ -1358,28 +1100,9 @@ var de_DescribeJobFlowsCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
1358
1100
|
};
|
|
1359
1101
|
return response;
|
|
1360
1102
|
}, "de_DescribeJobFlowsCommand");
|
|
1361
|
-
var de_DescribeJobFlowsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1362
|
-
const parsedOutput = {
|
|
1363
|
-
...output,
|
|
1364
|
-
body: await parseErrorBody(output.body, context)
|
|
1365
|
-
};
|
|
1366
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1367
|
-
switch (errorCode) {
|
|
1368
|
-
case "InternalServerError":
|
|
1369
|
-
case "com.amazonaws.emr#InternalServerError":
|
|
1370
|
-
throw await de_InternalServerErrorRes(parsedOutput, context);
|
|
1371
|
-
default:
|
|
1372
|
-
const parsedBody = parsedOutput.body;
|
|
1373
|
-
return throwDefaultError({
|
|
1374
|
-
output,
|
|
1375
|
-
parsedBody,
|
|
1376
|
-
errorCode
|
|
1377
|
-
});
|
|
1378
|
-
}
|
|
1379
|
-
}, "de_DescribeJobFlowsCommandError");
|
|
1380
1103
|
var de_DescribeNotebookExecutionCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1381
1104
|
if (output.statusCode >= 300) {
|
|
1382
|
-
return
|
|
1105
|
+
return de_CommandError(output, context);
|
|
1383
1106
|
}
|
|
1384
1107
|
const data = await parseBody(output.body, context);
|
|
1385
1108
|
let contents = {};
|
|
@@ -1390,31 +1113,9 @@ var de_DescribeNotebookExecutionCommand = /* @__PURE__ */ __name(async (output,
|
|
|
1390
1113
|
};
|
|
1391
1114
|
return response;
|
|
1392
1115
|
}, "de_DescribeNotebookExecutionCommand");
|
|
1393
|
-
var de_DescribeNotebookExecutionCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1394
|
-
const parsedOutput = {
|
|
1395
|
-
...output,
|
|
1396
|
-
body: await parseErrorBody(output.body, context)
|
|
1397
|
-
};
|
|
1398
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1399
|
-
switch (errorCode) {
|
|
1400
|
-
case "InternalServerError":
|
|
1401
|
-
case "com.amazonaws.emr#InternalServerError":
|
|
1402
|
-
throw await de_InternalServerErrorRes(parsedOutput, context);
|
|
1403
|
-
case "InvalidRequestException":
|
|
1404
|
-
case "com.amazonaws.emr#InvalidRequestException":
|
|
1405
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
1406
|
-
default:
|
|
1407
|
-
const parsedBody = parsedOutput.body;
|
|
1408
|
-
return throwDefaultError({
|
|
1409
|
-
output,
|
|
1410
|
-
parsedBody,
|
|
1411
|
-
errorCode
|
|
1412
|
-
});
|
|
1413
|
-
}
|
|
1414
|
-
}, "de_DescribeNotebookExecutionCommandError");
|
|
1415
1116
|
var de_DescribeReleaseLabelCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1416
1117
|
if (output.statusCode >= 300) {
|
|
1417
|
-
return
|
|
1118
|
+
return de_CommandError(output, context);
|
|
1418
1119
|
}
|
|
1419
1120
|
const data = await parseBody(output.body, context);
|
|
1420
1121
|
let contents = {};
|
|
@@ -1425,31 +1126,9 @@ var de_DescribeReleaseLabelCommand = /* @__PURE__ */ __name(async (output, conte
|
|
|
1425
1126
|
};
|
|
1426
1127
|
return response;
|
|
1427
1128
|
}, "de_DescribeReleaseLabelCommand");
|
|
1428
|
-
var de_DescribeReleaseLabelCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1429
|
-
const parsedOutput = {
|
|
1430
|
-
...output,
|
|
1431
|
-
body: await parseErrorBody(output.body, context)
|
|
1432
|
-
};
|
|
1433
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1434
|
-
switch (errorCode) {
|
|
1435
|
-
case "InternalServerException":
|
|
1436
|
-
case "com.amazonaws.emr#InternalServerException":
|
|
1437
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1438
|
-
case "InvalidRequestException":
|
|
1439
|
-
case "com.amazonaws.emr#InvalidRequestException":
|
|
1440
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
1441
|
-
default:
|
|
1442
|
-
const parsedBody = parsedOutput.body;
|
|
1443
|
-
return throwDefaultError({
|
|
1444
|
-
output,
|
|
1445
|
-
parsedBody,
|
|
1446
|
-
errorCode
|
|
1447
|
-
});
|
|
1448
|
-
}
|
|
1449
|
-
}, "de_DescribeReleaseLabelCommandError");
|
|
1450
1129
|
var de_DescribeSecurityConfigurationCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1451
1130
|
if (output.statusCode >= 300) {
|
|
1452
|
-
return
|
|
1131
|
+
return de_CommandError(output, context);
|
|
1453
1132
|
}
|
|
1454
1133
|
const data = await parseBody(output.body, context);
|
|
1455
1134
|
let contents = {};
|
|
@@ -1460,31 +1139,9 @@ var de_DescribeSecurityConfigurationCommand = /* @__PURE__ */ __name(async (outp
|
|
|
1460
1139
|
};
|
|
1461
1140
|
return response;
|
|
1462
1141
|
}, "de_DescribeSecurityConfigurationCommand");
|
|
1463
|
-
var de_DescribeSecurityConfigurationCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1464
|
-
const parsedOutput = {
|
|
1465
|
-
...output,
|
|
1466
|
-
body: await parseErrorBody(output.body, context)
|
|
1467
|
-
};
|
|
1468
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1469
|
-
switch (errorCode) {
|
|
1470
|
-
case "InternalServerException":
|
|
1471
|
-
case "com.amazonaws.emr#InternalServerException":
|
|
1472
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1473
|
-
case "InvalidRequestException":
|
|
1474
|
-
case "com.amazonaws.emr#InvalidRequestException":
|
|
1475
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
1476
|
-
default:
|
|
1477
|
-
const parsedBody = parsedOutput.body;
|
|
1478
|
-
return throwDefaultError({
|
|
1479
|
-
output,
|
|
1480
|
-
parsedBody,
|
|
1481
|
-
errorCode
|
|
1482
|
-
});
|
|
1483
|
-
}
|
|
1484
|
-
}, "de_DescribeSecurityConfigurationCommandError");
|
|
1485
1142
|
var de_DescribeStepCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1486
1143
|
if (output.statusCode >= 300) {
|
|
1487
|
-
return
|
|
1144
|
+
return de_CommandError(output, context);
|
|
1488
1145
|
}
|
|
1489
1146
|
const data = await parseBody(output.body, context);
|
|
1490
1147
|
let contents = {};
|
|
@@ -1495,31 +1152,9 @@ var de_DescribeStepCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
1495
1152
|
};
|
|
1496
1153
|
return response;
|
|
1497
1154
|
}, "de_DescribeStepCommand");
|
|
1498
|
-
var de_DescribeStepCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1499
|
-
const parsedOutput = {
|
|
1500
|
-
...output,
|
|
1501
|
-
body: await parseErrorBody(output.body, context)
|
|
1502
|
-
};
|
|
1503
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1504
|
-
switch (errorCode) {
|
|
1505
|
-
case "InternalServerException":
|
|
1506
|
-
case "com.amazonaws.emr#InternalServerException":
|
|
1507
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1508
|
-
case "InvalidRequestException":
|
|
1509
|
-
case "com.amazonaws.emr#InvalidRequestException":
|
|
1510
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
1511
|
-
default:
|
|
1512
|
-
const parsedBody = parsedOutput.body;
|
|
1513
|
-
return throwDefaultError({
|
|
1514
|
-
output,
|
|
1515
|
-
parsedBody,
|
|
1516
|
-
errorCode
|
|
1517
|
-
});
|
|
1518
|
-
}
|
|
1519
|
-
}, "de_DescribeStepCommandError");
|
|
1520
1155
|
var de_DescribeStudioCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1521
1156
|
if (output.statusCode >= 300) {
|
|
1522
|
-
return
|
|
1157
|
+
return de_CommandError(output, context);
|
|
1523
1158
|
}
|
|
1524
1159
|
const data = await parseBody(output.body, context);
|
|
1525
1160
|
let contents = {};
|
|
@@ -1530,31 +1165,9 @@ var de_DescribeStudioCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
1530
1165
|
};
|
|
1531
1166
|
return response;
|
|
1532
1167
|
}, "de_DescribeStudioCommand");
|
|
1533
|
-
var de_DescribeStudioCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1534
|
-
const parsedOutput = {
|
|
1535
|
-
...output,
|
|
1536
|
-
body: await parseErrorBody(output.body, context)
|
|
1537
|
-
};
|
|
1538
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1539
|
-
switch (errorCode) {
|
|
1540
|
-
case "InternalServerException":
|
|
1541
|
-
case "com.amazonaws.emr#InternalServerException":
|
|
1542
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1543
|
-
case "InvalidRequestException":
|
|
1544
|
-
case "com.amazonaws.emr#InvalidRequestException":
|
|
1545
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
1546
|
-
default:
|
|
1547
|
-
const parsedBody = parsedOutput.body;
|
|
1548
|
-
return throwDefaultError({
|
|
1549
|
-
output,
|
|
1550
|
-
parsedBody,
|
|
1551
|
-
errorCode
|
|
1552
|
-
});
|
|
1553
|
-
}
|
|
1554
|
-
}, "de_DescribeStudioCommandError");
|
|
1555
1168
|
var de_GetAutoTerminationPolicyCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1556
1169
|
if (output.statusCode >= 300) {
|
|
1557
|
-
return
|
|
1170
|
+
return de_CommandError(output, context);
|
|
1558
1171
|
}
|
|
1559
1172
|
const data = await parseBody(output.body, context);
|
|
1560
1173
|
let contents = {};
|
|
@@ -1565,22 +1178,9 @@ var de_GetAutoTerminationPolicyCommand = /* @__PURE__ */ __name(async (output, c
|
|
|
1565
1178
|
};
|
|
1566
1179
|
return response;
|
|
1567
1180
|
}, "de_GetAutoTerminationPolicyCommand");
|
|
1568
|
-
var de_GetAutoTerminationPolicyCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1569
|
-
const parsedOutput = {
|
|
1570
|
-
...output,
|
|
1571
|
-
body: await parseErrorBody(output.body, context)
|
|
1572
|
-
};
|
|
1573
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1574
|
-
const parsedBody = parsedOutput.body;
|
|
1575
|
-
return throwDefaultError({
|
|
1576
|
-
output,
|
|
1577
|
-
parsedBody,
|
|
1578
|
-
errorCode
|
|
1579
|
-
});
|
|
1580
|
-
}, "de_GetAutoTerminationPolicyCommandError");
|
|
1581
1181
|
var de_GetBlockPublicAccessConfigurationCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1582
1182
|
if (output.statusCode >= 300) {
|
|
1583
|
-
return
|
|
1183
|
+
return de_CommandError(output, context);
|
|
1584
1184
|
}
|
|
1585
1185
|
const data = await parseBody(output.body, context);
|
|
1586
1186
|
let contents = {};
|
|
@@ -1591,31 +1191,9 @@ var de_GetBlockPublicAccessConfigurationCommand = /* @__PURE__ */ __name(async (
|
|
|
1591
1191
|
};
|
|
1592
1192
|
return response;
|
|
1593
1193
|
}, "de_GetBlockPublicAccessConfigurationCommand");
|
|
1594
|
-
var de_GetBlockPublicAccessConfigurationCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1595
|
-
const parsedOutput = {
|
|
1596
|
-
...output,
|
|
1597
|
-
body: await parseErrorBody(output.body, context)
|
|
1598
|
-
};
|
|
1599
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1600
|
-
switch (errorCode) {
|
|
1601
|
-
case "InternalServerException":
|
|
1602
|
-
case "com.amazonaws.emr#InternalServerException":
|
|
1603
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1604
|
-
case "InvalidRequestException":
|
|
1605
|
-
case "com.amazonaws.emr#InvalidRequestException":
|
|
1606
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
1607
|
-
default:
|
|
1608
|
-
const parsedBody = parsedOutput.body;
|
|
1609
|
-
return throwDefaultError({
|
|
1610
|
-
output,
|
|
1611
|
-
parsedBody,
|
|
1612
|
-
errorCode
|
|
1613
|
-
});
|
|
1614
|
-
}
|
|
1615
|
-
}, "de_GetBlockPublicAccessConfigurationCommandError");
|
|
1616
1194
|
var de_GetClusterSessionCredentialsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1617
1195
|
if (output.statusCode >= 300) {
|
|
1618
|
-
return
|
|
1196
|
+
return de_CommandError(output, context);
|
|
1619
1197
|
}
|
|
1620
1198
|
const data = await parseBody(output.body, context);
|
|
1621
1199
|
let contents = {};
|
|
@@ -1626,31 +1204,9 @@ var de_GetClusterSessionCredentialsCommand = /* @__PURE__ */ __name(async (outpu
|
|
|
1626
1204
|
};
|
|
1627
1205
|
return response;
|
|
1628
1206
|
}, "de_GetClusterSessionCredentialsCommand");
|
|
1629
|
-
var de_GetClusterSessionCredentialsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1630
|
-
const parsedOutput = {
|
|
1631
|
-
...output,
|
|
1632
|
-
body: await parseErrorBody(output.body, context)
|
|
1633
|
-
};
|
|
1634
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1635
|
-
switch (errorCode) {
|
|
1636
|
-
case "InternalServerError":
|
|
1637
|
-
case "com.amazonaws.emr#InternalServerError":
|
|
1638
|
-
throw await de_InternalServerErrorRes(parsedOutput, context);
|
|
1639
|
-
case "InvalidRequestException":
|
|
1640
|
-
case "com.amazonaws.emr#InvalidRequestException":
|
|
1641
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
1642
|
-
default:
|
|
1643
|
-
const parsedBody = parsedOutput.body;
|
|
1644
|
-
return throwDefaultError({
|
|
1645
|
-
output,
|
|
1646
|
-
parsedBody,
|
|
1647
|
-
errorCode
|
|
1648
|
-
});
|
|
1649
|
-
}
|
|
1650
|
-
}, "de_GetClusterSessionCredentialsCommandError");
|
|
1651
1207
|
var de_GetManagedScalingPolicyCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1652
1208
|
if (output.statusCode >= 300) {
|
|
1653
|
-
return
|
|
1209
|
+
return de_CommandError(output, context);
|
|
1654
1210
|
}
|
|
1655
1211
|
const data = await parseBody(output.body, context);
|
|
1656
1212
|
let contents = {};
|
|
@@ -1661,22 +1217,9 @@ var de_GetManagedScalingPolicyCommand = /* @__PURE__ */ __name(async (output, co
|
|
|
1661
1217
|
};
|
|
1662
1218
|
return response;
|
|
1663
1219
|
}, "de_GetManagedScalingPolicyCommand");
|
|
1664
|
-
var de_GetManagedScalingPolicyCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1665
|
-
const parsedOutput = {
|
|
1666
|
-
...output,
|
|
1667
|
-
body: await parseErrorBody(output.body, context)
|
|
1668
|
-
};
|
|
1669
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1670
|
-
const parsedBody = parsedOutput.body;
|
|
1671
|
-
return throwDefaultError({
|
|
1672
|
-
output,
|
|
1673
|
-
parsedBody,
|
|
1674
|
-
errorCode
|
|
1675
|
-
});
|
|
1676
|
-
}, "de_GetManagedScalingPolicyCommandError");
|
|
1677
1220
|
var de_GetStudioSessionMappingCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1678
1221
|
if (output.statusCode >= 300) {
|
|
1679
|
-
return
|
|
1222
|
+
return de_CommandError(output, context);
|
|
1680
1223
|
}
|
|
1681
1224
|
const data = await parseBody(output.body, context);
|
|
1682
1225
|
let contents = {};
|
|
@@ -1687,31 +1230,9 @@ var de_GetStudioSessionMappingCommand = /* @__PURE__ */ __name(async (output, co
|
|
|
1687
1230
|
};
|
|
1688
1231
|
return response;
|
|
1689
1232
|
}, "de_GetStudioSessionMappingCommand");
|
|
1690
|
-
var de_GetStudioSessionMappingCommandError = /* @__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 "InternalServerError":
|
|
1698
|
-
case "com.amazonaws.emr#InternalServerError":
|
|
1699
|
-
throw await de_InternalServerErrorRes(parsedOutput, context);
|
|
1700
|
-
case "InvalidRequestException":
|
|
1701
|
-
case "com.amazonaws.emr#InvalidRequestException":
|
|
1702
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
1703
|
-
default:
|
|
1704
|
-
const parsedBody = parsedOutput.body;
|
|
1705
|
-
return throwDefaultError({
|
|
1706
|
-
output,
|
|
1707
|
-
parsedBody,
|
|
1708
|
-
errorCode
|
|
1709
|
-
});
|
|
1710
|
-
}
|
|
1711
|
-
}, "de_GetStudioSessionMappingCommandError");
|
|
1712
1233
|
var de_ListBootstrapActionsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1713
1234
|
if (output.statusCode >= 300) {
|
|
1714
|
-
return
|
|
1235
|
+
return de_CommandError(output, context);
|
|
1715
1236
|
}
|
|
1716
1237
|
const data = await parseBody(output.body, context);
|
|
1717
1238
|
let contents = {};
|
|
@@ -1722,31 +1243,9 @@ var de_ListBootstrapActionsCommand = /* @__PURE__ */ __name(async (output, conte
|
|
|
1722
1243
|
};
|
|
1723
1244
|
return response;
|
|
1724
1245
|
}, "de_ListBootstrapActionsCommand");
|
|
1725
|
-
var de_ListBootstrapActionsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1726
|
-
const parsedOutput = {
|
|
1727
|
-
...output,
|
|
1728
|
-
body: await parseErrorBody(output.body, context)
|
|
1729
|
-
};
|
|
1730
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1731
|
-
switch (errorCode) {
|
|
1732
|
-
case "InternalServerException":
|
|
1733
|
-
case "com.amazonaws.emr#InternalServerException":
|
|
1734
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1735
|
-
case "InvalidRequestException":
|
|
1736
|
-
case "com.amazonaws.emr#InvalidRequestException":
|
|
1737
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
1738
|
-
default:
|
|
1739
|
-
const parsedBody = parsedOutput.body;
|
|
1740
|
-
return throwDefaultError({
|
|
1741
|
-
output,
|
|
1742
|
-
parsedBody,
|
|
1743
|
-
errorCode
|
|
1744
|
-
});
|
|
1745
|
-
}
|
|
1746
|
-
}, "de_ListBootstrapActionsCommandError");
|
|
1747
1246
|
var de_ListClustersCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1748
1247
|
if (output.statusCode >= 300) {
|
|
1749
|
-
return
|
|
1248
|
+
return de_CommandError(output, context);
|
|
1750
1249
|
}
|
|
1751
1250
|
const data = await parseBody(output.body, context);
|
|
1752
1251
|
let contents = {};
|
|
@@ -1757,31 +1256,9 @@ var de_ListClustersCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
1757
1256
|
};
|
|
1758
1257
|
return response;
|
|
1759
1258
|
}, "de_ListClustersCommand");
|
|
1760
|
-
var de_ListClustersCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1761
|
-
const parsedOutput = {
|
|
1762
|
-
...output,
|
|
1763
|
-
body: await parseErrorBody(output.body, context)
|
|
1764
|
-
};
|
|
1765
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1766
|
-
switch (errorCode) {
|
|
1767
|
-
case "InternalServerException":
|
|
1768
|
-
case "com.amazonaws.emr#InternalServerException":
|
|
1769
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1770
|
-
case "InvalidRequestException":
|
|
1771
|
-
case "com.amazonaws.emr#InvalidRequestException":
|
|
1772
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
1773
|
-
default:
|
|
1774
|
-
const parsedBody = parsedOutput.body;
|
|
1775
|
-
return throwDefaultError({
|
|
1776
|
-
output,
|
|
1777
|
-
parsedBody,
|
|
1778
|
-
errorCode
|
|
1779
|
-
});
|
|
1780
|
-
}
|
|
1781
|
-
}, "de_ListClustersCommandError");
|
|
1782
1259
|
var de_ListInstanceFleetsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1783
1260
|
if (output.statusCode >= 300) {
|
|
1784
|
-
return
|
|
1261
|
+
return de_CommandError(output, context);
|
|
1785
1262
|
}
|
|
1786
1263
|
const data = await parseBody(output.body, context);
|
|
1787
1264
|
let contents = {};
|
|
@@ -1792,31 +1269,9 @@ var de_ListInstanceFleetsCommand = /* @__PURE__ */ __name(async (output, context
|
|
|
1792
1269
|
};
|
|
1793
1270
|
return response;
|
|
1794
1271
|
}, "de_ListInstanceFleetsCommand");
|
|
1795
|
-
var de_ListInstanceFleetsCommandError = /* @__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 "InternalServerException":
|
|
1803
|
-
case "com.amazonaws.emr#InternalServerException":
|
|
1804
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1805
|
-
case "InvalidRequestException":
|
|
1806
|
-
case "com.amazonaws.emr#InvalidRequestException":
|
|
1807
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
1808
|
-
default:
|
|
1809
|
-
const parsedBody = parsedOutput.body;
|
|
1810
|
-
return throwDefaultError({
|
|
1811
|
-
output,
|
|
1812
|
-
parsedBody,
|
|
1813
|
-
errorCode
|
|
1814
|
-
});
|
|
1815
|
-
}
|
|
1816
|
-
}, "de_ListInstanceFleetsCommandError");
|
|
1817
1272
|
var de_ListInstanceGroupsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1818
1273
|
if (output.statusCode >= 300) {
|
|
1819
|
-
return
|
|
1274
|
+
return de_CommandError(output, context);
|
|
1820
1275
|
}
|
|
1821
1276
|
const data = await parseBody(output.body, context);
|
|
1822
1277
|
let contents = {};
|
|
@@ -1827,31 +1282,9 @@ var de_ListInstanceGroupsCommand = /* @__PURE__ */ __name(async (output, context
|
|
|
1827
1282
|
};
|
|
1828
1283
|
return response;
|
|
1829
1284
|
}, "de_ListInstanceGroupsCommand");
|
|
1830
|
-
var de_ListInstanceGroupsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1831
|
-
const parsedOutput = {
|
|
1832
|
-
...output,
|
|
1833
|
-
body: await parseErrorBody(output.body, context)
|
|
1834
|
-
};
|
|
1835
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1836
|
-
switch (errorCode) {
|
|
1837
|
-
case "InternalServerException":
|
|
1838
|
-
case "com.amazonaws.emr#InternalServerException":
|
|
1839
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1840
|
-
case "InvalidRequestException":
|
|
1841
|
-
case "com.amazonaws.emr#InvalidRequestException":
|
|
1842
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
1843
|
-
default:
|
|
1844
|
-
const parsedBody = parsedOutput.body;
|
|
1845
|
-
return throwDefaultError({
|
|
1846
|
-
output,
|
|
1847
|
-
parsedBody,
|
|
1848
|
-
errorCode
|
|
1849
|
-
});
|
|
1850
|
-
}
|
|
1851
|
-
}, "de_ListInstanceGroupsCommandError");
|
|
1852
1285
|
var de_ListInstancesCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1853
1286
|
if (output.statusCode >= 300) {
|
|
1854
|
-
return
|
|
1287
|
+
return de_CommandError(output, context);
|
|
1855
1288
|
}
|
|
1856
1289
|
const data = await parseBody(output.body, context);
|
|
1857
1290
|
let contents = {};
|
|
@@ -1862,31 +1295,9 @@ var de_ListInstancesCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
1862
1295
|
};
|
|
1863
1296
|
return response;
|
|
1864
1297
|
}, "de_ListInstancesCommand");
|
|
1865
|
-
var de_ListInstancesCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1866
|
-
const parsedOutput = {
|
|
1867
|
-
...output,
|
|
1868
|
-
body: await parseErrorBody(output.body, context)
|
|
1869
|
-
};
|
|
1870
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1871
|
-
switch (errorCode) {
|
|
1872
|
-
case "InternalServerException":
|
|
1873
|
-
case "com.amazonaws.emr#InternalServerException":
|
|
1874
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1875
|
-
case "InvalidRequestException":
|
|
1876
|
-
case "com.amazonaws.emr#InvalidRequestException":
|
|
1877
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
1878
|
-
default:
|
|
1879
|
-
const parsedBody = parsedOutput.body;
|
|
1880
|
-
return throwDefaultError({
|
|
1881
|
-
output,
|
|
1882
|
-
parsedBody,
|
|
1883
|
-
errorCode
|
|
1884
|
-
});
|
|
1885
|
-
}
|
|
1886
|
-
}, "de_ListInstancesCommandError");
|
|
1887
1298
|
var de_ListNotebookExecutionsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1888
1299
|
if (output.statusCode >= 300) {
|
|
1889
|
-
return
|
|
1300
|
+
return de_CommandError(output, context);
|
|
1890
1301
|
}
|
|
1891
1302
|
const data = await parseBody(output.body, context);
|
|
1892
1303
|
let contents = {};
|
|
@@ -1897,31 +1308,9 @@ var de_ListNotebookExecutionsCommand = /* @__PURE__ */ __name(async (output, con
|
|
|
1897
1308
|
};
|
|
1898
1309
|
return response;
|
|
1899
1310
|
}, "de_ListNotebookExecutionsCommand");
|
|
1900
|
-
var de_ListNotebookExecutionsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1901
|
-
const parsedOutput = {
|
|
1902
|
-
...output,
|
|
1903
|
-
body: await parseErrorBody(output.body, context)
|
|
1904
|
-
};
|
|
1905
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1906
|
-
switch (errorCode) {
|
|
1907
|
-
case "InternalServerError":
|
|
1908
|
-
case "com.amazonaws.emr#InternalServerError":
|
|
1909
|
-
throw await de_InternalServerErrorRes(parsedOutput, context);
|
|
1910
|
-
case "InvalidRequestException":
|
|
1911
|
-
case "com.amazonaws.emr#InvalidRequestException":
|
|
1912
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
1913
|
-
default:
|
|
1914
|
-
const parsedBody = parsedOutput.body;
|
|
1915
|
-
return throwDefaultError({
|
|
1916
|
-
output,
|
|
1917
|
-
parsedBody,
|
|
1918
|
-
errorCode
|
|
1919
|
-
});
|
|
1920
|
-
}
|
|
1921
|
-
}, "de_ListNotebookExecutionsCommandError");
|
|
1922
1311
|
var de_ListReleaseLabelsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1923
1312
|
if (output.statusCode >= 300) {
|
|
1924
|
-
return
|
|
1313
|
+
return de_CommandError(output, context);
|
|
1925
1314
|
}
|
|
1926
1315
|
const data = await parseBody(output.body, context);
|
|
1927
1316
|
let contents = {};
|
|
@@ -1932,31 +1321,9 @@ var de_ListReleaseLabelsCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
1932
1321
|
};
|
|
1933
1322
|
return response;
|
|
1934
1323
|
}, "de_ListReleaseLabelsCommand");
|
|
1935
|
-
var de_ListReleaseLabelsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1936
|
-
const parsedOutput = {
|
|
1937
|
-
...output,
|
|
1938
|
-
body: await parseErrorBody(output.body, context)
|
|
1939
|
-
};
|
|
1940
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1941
|
-
switch (errorCode) {
|
|
1942
|
-
case "InternalServerException":
|
|
1943
|
-
case "com.amazonaws.emr#InternalServerException":
|
|
1944
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1945
|
-
case "InvalidRequestException":
|
|
1946
|
-
case "com.amazonaws.emr#InvalidRequestException":
|
|
1947
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
1948
|
-
default:
|
|
1949
|
-
const parsedBody = parsedOutput.body;
|
|
1950
|
-
return throwDefaultError({
|
|
1951
|
-
output,
|
|
1952
|
-
parsedBody,
|
|
1953
|
-
errorCode
|
|
1954
|
-
});
|
|
1955
|
-
}
|
|
1956
|
-
}, "de_ListReleaseLabelsCommandError");
|
|
1957
1324
|
var de_ListSecurityConfigurationsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1958
1325
|
if (output.statusCode >= 300) {
|
|
1959
|
-
return
|
|
1326
|
+
return de_CommandError(output, context);
|
|
1960
1327
|
}
|
|
1961
1328
|
const data = await parseBody(output.body, context);
|
|
1962
1329
|
let contents = {};
|
|
@@ -1967,31 +1334,9 @@ var de_ListSecurityConfigurationsCommand = /* @__PURE__ */ __name(async (output,
|
|
|
1967
1334
|
};
|
|
1968
1335
|
return response;
|
|
1969
1336
|
}, "de_ListSecurityConfigurationsCommand");
|
|
1970
|
-
var de_ListSecurityConfigurationsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1971
|
-
const parsedOutput = {
|
|
1972
|
-
...output,
|
|
1973
|
-
body: await parseErrorBody(output.body, context)
|
|
1974
|
-
};
|
|
1975
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1976
|
-
switch (errorCode) {
|
|
1977
|
-
case "InternalServerException":
|
|
1978
|
-
case "com.amazonaws.emr#InternalServerException":
|
|
1979
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1980
|
-
case "InvalidRequestException":
|
|
1981
|
-
case "com.amazonaws.emr#InvalidRequestException":
|
|
1982
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
1983
|
-
default:
|
|
1984
|
-
const parsedBody = parsedOutput.body;
|
|
1985
|
-
return throwDefaultError({
|
|
1986
|
-
output,
|
|
1987
|
-
parsedBody,
|
|
1988
|
-
errorCode
|
|
1989
|
-
});
|
|
1990
|
-
}
|
|
1991
|
-
}, "de_ListSecurityConfigurationsCommandError");
|
|
1992
1337
|
var de_ListStepsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1993
1338
|
if (output.statusCode >= 300) {
|
|
1994
|
-
return
|
|
1339
|
+
return de_CommandError(output, context);
|
|
1995
1340
|
}
|
|
1996
1341
|
const data = await parseBody(output.body, context);
|
|
1997
1342
|
let contents = {};
|
|
@@ -2002,31 +1347,9 @@ var de_ListStepsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
2002
1347
|
};
|
|
2003
1348
|
return response;
|
|
2004
1349
|
}, "de_ListStepsCommand");
|
|
2005
|
-
var de_ListStepsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2006
|
-
const parsedOutput = {
|
|
2007
|
-
...output,
|
|
2008
|
-
body: await parseErrorBody(output.body, context)
|
|
2009
|
-
};
|
|
2010
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2011
|
-
switch (errorCode) {
|
|
2012
|
-
case "InternalServerException":
|
|
2013
|
-
case "com.amazonaws.emr#InternalServerException":
|
|
2014
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2015
|
-
case "InvalidRequestException":
|
|
2016
|
-
case "com.amazonaws.emr#InvalidRequestException":
|
|
2017
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
2018
|
-
default:
|
|
2019
|
-
const parsedBody = parsedOutput.body;
|
|
2020
|
-
return throwDefaultError({
|
|
2021
|
-
output,
|
|
2022
|
-
parsedBody,
|
|
2023
|
-
errorCode
|
|
2024
|
-
});
|
|
2025
|
-
}
|
|
2026
|
-
}, "de_ListStepsCommandError");
|
|
2027
1350
|
var de_ListStudiosCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2028
1351
|
if (output.statusCode >= 300) {
|
|
2029
|
-
return
|
|
1352
|
+
return de_CommandError(output, context);
|
|
2030
1353
|
}
|
|
2031
1354
|
const data = await parseBody(output.body, context);
|
|
2032
1355
|
let contents = {};
|
|
@@ -2037,31 +1360,9 @@ var de_ListStudiosCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
2037
1360
|
};
|
|
2038
1361
|
return response;
|
|
2039
1362
|
}, "de_ListStudiosCommand");
|
|
2040
|
-
var de_ListStudiosCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2041
|
-
const parsedOutput = {
|
|
2042
|
-
...output,
|
|
2043
|
-
body: await parseErrorBody(output.body, context)
|
|
2044
|
-
};
|
|
2045
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2046
|
-
switch (errorCode) {
|
|
2047
|
-
case "InternalServerException":
|
|
2048
|
-
case "com.amazonaws.emr#InternalServerException":
|
|
2049
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2050
|
-
case "InvalidRequestException":
|
|
2051
|
-
case "com.amazonaws.emr#InvalidRequestException":
|
|
2052
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
2053
|
-
default:
|
|
2054
|
-
const parsedBody = parsedOutput.body;
|
|
2055
|
-
return throwDefaultError({
|
|
2056
|
-
output,
|
|
2057
|
-
parsedBody,
|
|
2058
|
-
errorCode
|
|
2059
|
-
});
|
|
2060
|
-
}
|
|
2061
|
-
}, "de_ListStudiosCommandError");
|
|
2062
1363
|
var de_ListStudioSessionMappingsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2063
1364
|
if (output.statusCode >= 300) {
|
|
2064
|
-
return
|
|
1365
|
+
return de_CommandError(output, context);
|
|
2065
1366
|
}
|
|
2066
1367
|
const data = await parseBody(output.body, context);
|
|
2067
1368
|
let contents = {};
|
|
@@ -2072,31 +1373,9 @@ var de_ListStudioSessionMappingsCommand = /* @__PURE__ */ __name(async (output,
|
|
|
2072
1373
|
};
|
|
2073
1374
|
return response;
|
|
2074
1375
|
}, "de_ListStudioSessionMappingsCommand");
|
|
2075
|
-
var de_ListStudioSessionMappingsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2076
|
-
const parsedOutput = {
|
|
2077
|
-
...output,
|
|
2078
|
-
body: await parseErrorBody(output.body, context)
|
|
2079
|
-
};
|
|
2080
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2081
|
-
switch (errorCode) {
|
|
2082
|
-
case "InternalServerError":
|
|
2083
|
-
case "com.amazonaws.emr#InternalServerError":
|
|
2084
|
-
throw await de_InternalServerErrorRes(parsedOutput, context);
|
|
2085
|
-
case "InvalidRequestException":
|
|
2086
|
-
case "com.amazonaws.emr#InvalidRequestException":
|
|
2087
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
2088
|
-
default:
|
|
2089
|
-
const parsedBody = parsedOutput.body;
|
|
2090
|
-
return throwDefaultError({
|
|
2091
|
-
output,
|
|
2092
|
-
parsedBody,
|
|
2093
|
-
errorCode
|
|
2094
|
-
});
|
|
2095
|
-
}
|
|
2096
|
-
}, "de_ListStudioSessionMappingsCommandError");
|
|
2097
1376
|
var de_ListSupportedInstanceTypesCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2098
1377
|
if (output.statusCode >= 300) {
|
|
2099
|
-
return
|
|
1378
|
+
return de_CommandError(output, context);
|
|
2100
1379
|
}
|
|
2101
1380
|
const data = await parseBody(output.body, context);
|
|
2102
1381
|
let contents = {};
|
|
@@ -2107,31 +1386,9 @@ var de_ListSupportedInstanceTypesCommand = /* @__PURE__ */ __name(async (output,
|
|
|
2107
1386
|
};
|
|
2108
1387
|
return response;
|
|
2109
1388
|
}, "de_ListSupportedInstanceTypesCommand");
|
|
2110
|
-
var de_ListSupportedInstanceTypesCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2111
|
-
const parsedOutput = {
|
|
2112
|
-
...output,
|
|
2113
|
-
body: await parseErrorBody(output.body, context)
|
|
2114
|
-
};
|
|
2115
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2116
|
-
switch (errorCode) {
|
|
2117
|
-
case "InternalServerException":
|
|
2118
|
-
case "com.amazonaws.emr#InternalServerException":
|
|
2119
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2120
|
-
case "InvalidRequestException":
|
|
2121
|
-
case "com.amazonaws.emr#InvalidRequestException":
|
|
2122
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
2123
|
-
default:
|
|
2124
|
-
const parsedBody = parsedOutput.body;
|
|
2125
|
-
return throwDefaultError({
|
|
2126
|
-
output,
|
|
2127
|
-
parsedBody,
|
|
2128
|
-
errorCode
|
|
2129
|
-
});
|
|
2130
|
-
}
|
|
2131
|
-
}, "de_ListSupportedInstanceTypesCommandError");
|
|
2132
1389
|
var de_ModifyClusterCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2133
1390
|
if (output.statusCode >= 300) {
|
|
2134
|
-
return
|
|
1391
|
+
return de_CommandError(output, context);
|
|
2135
1392
|
}
|
|
2136
1393
|
const data = await parseBody(output.body, context);
|
|
2137
1394
|
let contents = {};
|
|
@@ -2141,64 +1398,20 @@ var de_ModifyClusterCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
2141
1398
|
...contents
|
|
2142
1399
|
};
|
|
2143
1400
|
return response;
|
|
2144
|
-
}, "de_ModifyClusterCommand");
|
|
2145
|
-
var
|
|
2146
|
-
|
|
2147
|
-
|
|
2148
|
-
body: await parseErrorBody(output.body, context)
|
|
2149
|
-
};
|
|
2150
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2151
|
-
switch (errorCode) {
|
|
2152
|
-
case "InternalServerError":
|
|
2153
|
-
case "com.amazonaws.emr#InternalServerError":
|
|
2154
|
-
throw await de_InternalServerErrorRes(parsedOutput, context);
|
|
2155
|
-
case "InvalidRequestException":
|
|
2156
|
-
case "com.amazonaws.emr#InvalidRequestException":
|
|
2157
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
2158
|
-
default:
|
|
2159
|
-
const parsedBody = parsedOutput.body;
|
|
2160
|
-
return throwDefaultError({
|
|
2161
|
-
output,
|
|
2162
|
-
parsedBody,
|
|
2163
|
-
errorCode
|
|
2164
|
-
});
|
|
2165
|
-
}
|
|
2166
|
-
}, "de_ModifyClusterCommandError");
|
|
2167
|
-
var de_ModifyInstanceFleetCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2168
|
-
if (output.statusCode >= 300) {
|
|
2169
|
-
return de_ModifyInstanceFleetCommandError(output, context);
|
|
2170
|
-
}
|
|
2171
|
-
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
2172
|
-
const response = {
|
|
2173
|
-
$metadata: deserializeMetadata(output)
|
|
2174
|
-
};
|
|
2175
|
-
return response;
|
|
2176
|
-
}, "de_ModifyInstanceFleetCommand");
|
|
2177
|
-
var de_ModifyInstanceFleetCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2178
|
-
const parsedOutput = {
|
|
2179
|
-
...output,
|
|
2180
|
-
body: await parseErrorBody(output.body, context)
|
|
2181
|
-
};
|
|
2182
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2183
|
-
switch (errorCode) {
|
|
2184
|
-
case "InternalServerException":
|
|
2185
|
-
case "com.amazonaws.emr#InternalServerException":
|
|
2186
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2187
|
-
case "InvalidRequestException":
|
|
2188
|
-
case "com.amazonaws.emr#InvalidRequestException":
|
|
2189
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
2190
|
-
default:
|
|
2191
|
-
const parsedBody = parsedOutput.body;
|
|
2192
|
-
return throwDefaultError({
|
|
2193
|
-
output,
|
|
2194
|
-
parsedBody,
|
|
2195
|
-
errorCode
|
|
2196
|
-
});
|
|
1401
|
+
}, "de_ModifyClusterCommand");
|
|
1402
|
+
var de_ModifyInstanceFleetCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1403
|
+
if (output.statusCode >= 300) {
|
|
1404
|
+
return de_CommandError(output, context);
|
|
2197
1405
|
}
|
|
2198
|
-
|
|
1406
|
+
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
1407
|
+
const response = {
|
|
1408
|
+
$metadata: deserializeMetadata(output)
|
|
1409
|
+
};
|
|
1410
|
+
return response;
|
|
1411
|
+
}, "de_ModifyInstanceFleetCommand");
|
|
2199
1412
|
var de_ModifyInstanceGroupsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2200
1413
|
if (output.statusCode >= 300) {
|
|
2201
|
-
return
|
|
1414
|
+
return de_CommandError(output, context);
|
|
2202
1415
|
}
|
|
2203
1416
|
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
2204
1417
|
const response = {
|
|
@@ -2206,28 +1419,9 @@ var de_ModifyInstanceGroupsCommand = /* @__PURE__ */ __name(async (output, conte
|
|
|
2206
1419
|
};
|
|
2207
1420
|
return response;
|
|
2208
1421
|
}, "de_ModifyInstanceGroupsCommand");
|
|
2209
|
-
var de_ModifyInstanceGroupsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2210
|
-
const parsedOutput = {
|
|
2211
|
-
...output,
|
|
2212
|
-
body: await parseErrorBody(output.body, context)
|
|
2213
|
-
};
|
|
2214
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2215
|
-
switch (errorCode) {
|
|
2216
|
-
case "InternalServerError":
|
|
2217
|
-
case "com.amazonaws.emr#InternalServerError":
|
|
2218
|
-
throw await de_InternalServerErrorRes(parsedOutput, context);
|
|
2219
|
-
default:
|
|
2220
|
-
const parsedBody = parsedOutput.body;
|
|
2221
|
-
return throwDefaultError({
|
|
2222
|
-
output,
|
|
2223
|
-
parsedBody,
|
|
2224
|
-
errorCode
|
|
2225
|
-
});
|
|
2226
|
-
}
|
|
2227
|
-
}, "de_ModifyInstanceGroupsCommandError");
|
|
2228
1422
|
var de_PutAutoScalingPolicyCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2229
1423
|
if (output.statusCode >= 300) {
|
|
2230
|
-
return
|
|
1424
|
+
return de_CommandError(output, context);
|
|
2231
1425
|
}
|
|
2232
1426
|
const data = await parseBody(output.body, context);
|
|
2233
1427
|
let contents = {};
|
|
@@ -2238,22 +1432,9 @@ var de_PutAutoScalingPolicyCommand = /* @__PURE__ */ __name(async (output, conte
|
|
|
2238
1432
|
};
|
|
2239
1433
|
return response;
|
|
2240
1434
|
}, "de_PutAutoScalingPolicyCommand");
|
|
2241
|
-
var de_PutAutoScalingPolicyCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2242
|
-
const parsedOutput = {
|
|
2243
|
-
...output,
|
|
2244
|
-
body: await parseErrorBody(output.body, context)
|
|
2245
|
-
};
|
|
2246
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2247
|
-
const parsedBody = parsedOutput.body;
|
|
2248
|
-
return throwDefaultError({
|
|
2249
|
-
output,
|
|
2250
|
-
parsedBody,
|
|
2251
|
-
errorCode
|
|
2252
|
-
});
|
|
2253
|
-
}, "de_PutAutoScalingPolicyCommandError");
|
|
2254
1435
|
var de_PutAutoTerminationPolicyCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2255
1436
|
if (output.statusCode >= 300) {
|
|
2256
|
-
return
|
|
1437
|
+
return de_CommandError(output, context);
|
|
2257
1438
|
}
|
|
2258
1439
|
const data = await parseBody(output.body, context);
|
|
2259
1440
|
let contents = {};
|
|
@@ -2264,22 +1445,9 @@ var de_PutAutoTerminationPolicyCommand = /* @__PURE__ */ __name(async (output, c
|
|
|
2264
1445
|
};
|
|
2265
1446
|
return response;
|
|
2266
1447
|
}, "de_PutAutoTerminationPolicyCommand");
|
|
2267
|
-
var de_PutAutoTerminationPolicyCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2268
|
-
const parsedOutput = {
|
|
2269
|
-
...output,
|
|
2270
|
-
body: await parseErrorBody(output.body, context)
|
|
2271
|
-
};
|
|
2272
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2273
|
-
const parsedBody = parsedOutput.body;
|
|
2274
|
-
return throwDefaultError({
|
|
2275
|
-
output,
|
|
2276
|
-
parsedBody,
|
|
2277
|
-
errorCode
|
|
2278
|
-
});
|
|
2279
|
-
}, "de_PutAutoTerminationPolicyCommandError");
|
|
2280
1448
|
var de_PutBlockPublicAccessConfigurationCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2281
1449
|
if (output.statusCode >= 300) {
|
|
2282
|
-
return
|
|
1450
|
+
return de_CommandError(output, context);
|
|
2283
1451
|
}
|
|
2284
1452
|
const data = await parseBody(output.body, context);
|
|
2285
1453
|
let contents = {};
|
|
@@ -2290,31 +1458,9 @@ var de_PutBlockPublicAccessConfigurationCommand = /* @__PURE__ */ __name(async (
|
|
|
2290
1458
|
};
|
|
2291
1459
|
return response;
|
|
2292
1460
|
}, "de_PutBlockPublicAccessConfigurationCommand");
|
|
2293
|
-
var de_PutBlockPublicAccessConfigurationCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2294
|
-
const parsedOutput = {
|
|
2295
|
-
...output,
|
|
2296
|
-
body: await parseErrorBody(output.body, context)
|
|
2297
|
-
};
|
|
2298
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2299
|
-
switch (errorCode) {
|
|
2300
|
-
case "InternalServerException":
|
|
2301
|
-
case "com.amazonaws.emr#InternalServerException":
|
|
2302
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2303
|
-
case "InvalidRequestException":
|
|
2304
|
-
case "com.amazonaws.emr#InvalidRequestException":
|
|
2305
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
2306
|
-
default:
|
|
2307
|
-
const parsedBody = parsedOutput.body;
|
|
2308
|
-
return throwDefaultError({
|
|
2309
|
-
output,
|
|
2310
|
-
parsedBody,
|
|
2311
|
-
errorCode
|
|
2312
|
-
});
|
|
2313
|
-
}
|
|
2314
|
-
}, "de_PutBlockPublicAccessConfigurationCommandError");
|
|
2315
1461
|
var de_PutManagedScalingPolicyCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2316
1462
|
if (output.statusCode >= 300) {
|
|
2317
|
-
return
|
|
1463
|
+
return de_CommandError(output, context);
|
|
2318
1464
|
}
|
|
2319
1465
|
const data = await parseBody(output.body, context);
|
|
2320
1466
|
let contents = {};
|
|
@@ -2325,22 +1471,9 @@ var de_PutManagedScalingPolicyCommand = /* @__PURE__ */ __name(async (output, co
|
|
|
2325
1471
|
};
|
|
2326
1472
|
return response;
|
|
2327
1473
|
}, "de_PutManagedScalingPolicyCommand");
|
|
2328
|
-
var de_PutManagedScalingPolicyCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2329
|
-
const parsedOutput = {
|
|
2330
|
-
...output,
|
|
2331
|
-
body: await parseErrorBody(output.body, context)
|
|
2332
|
-
};
|
|
2333
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2334
|
-
const parsedBody = parsedOutput.body;
|
|
2335
|
-
return throwDefaultError({
|
|
2336
|
-
output,
|
|
2337
|
-
parsedBody,
|
|
2338
|
-
errorCode
|
|
2339
|
-
});
|
|
2340
|
-
}, "de_PutManagedScalingPolicyCommandError");
|
|
2341
1474
|
var de_RemoveAutoScalingPolicyCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2342
1475
|
if (output.statusCode >= 300) {
|
|
2343
|
-
return
|
|
1476
|
+
return de_CommandError(output, context);
|
|
2344
1477
|
}
|
|
2345
1478
|
const data = await parseBody(output.body, context);
|
|
2346
1479
|
let contents = {};
|
|
@@ -2351,22 +1484,9 @@ var de_RemoveAutoScalingPolicyCommand = /* @__PURE__ */ __name(async (output, co
|
|
|
2351
1484
|
};
|
|
2352
1485
|
return response;
|
|
2353
1486
|
}, "de_RemoveAutoScalingPolicyCommand");
|
|
2354
|
-
var de_RemoveAutoScalingPolicyCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2355
|
-
const parsedOutput = {
|
|
2356
|
-
...output,
|
|
2357
|
-
body: await parseErrorBody(output.body, context)
|
|
2358
|
-
};
|
|
2359
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2360
|
-
const parsedBody = parsedOutput.body;
|
|
2361
|
-
return throwDefaultError({
|
|
2362
|
-
output,
|
|
2363
|
-
parsedBody,
|
|
2364
|
-
errorCode
|
|
2365
|
-
});
|
|
2366
|
-
}, "de_RemoveAutoScalingPolicyCommandError");
|
|
2367
1487
|
var de_RemoveAutoTerminationPolicyCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2368
1488
|
if (output.statusCode >= 300) {
|
|
2369
|
-
return
|
|
1489
|
+
return de_CommandError(output, context);
|
|
2370
1490
|
}
|
|
2371
1491
|
const data = await parseBody(output.body, context);
|
|
2372
1492
|
let contents = {};
|
|
@@ -2377,22 +1497,9 @@ var de_RemoveAutoTerminationPolicyCommand = /* @__PURE__ */ __name(async (output
|
|
|
2377
1497
|
};
|
|
2378
1498
|
return response;
|
|
2379
1499
|
}, "de_RemoveAutoTerminationPolicyCommand");
|
|
2380
|
-
var de_RemoveAutoTerminationPolicyCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2381
|
-
const parsedOutput = {
|
|
2382
|
-
...output,
|
|
2383
|
-
body: await parseErrorBody(output.body, context)
|
|
2384
|
-
};
|
|
2385
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2386
|
-
const parsedBody = parsedOutput.body;
|
|
2387
|
-
return throwDefaultError({
|
|
2388
|
-
output,
|
|
2389
|
-
parsedBody,
|
|
2390
|
-
errorCode
|
|
2391
|
-
});
|
|
2392
|
-
}, "de_RemoveAutoTerminationPolicyCommandError");
|
|
2393
1500
|
var de_RemoveManagedScalingPolicyCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2394
1501
|
if (output.statusCode >= 300) {
|
|
2395
|
-
return
|
|
1502
|
+
return de_CommandError(output, context);
|
|
2396
1503
|
}
|
|
2397
1504
|
const data = await parseBody(output.body, context);
|
|
2398
1505
|
let contents = {};
|
|
@@ -2403,22 +1510,9 @@ var de_RemoveManagedScalingPolicyCommand = /* @__PURE__ */ __name(async (output,
|
|
|
2403
1510
|
};
|
|
2404
1511
|
return response;
|
|
2405
1512
|
}, "de_RemoveManagedScalingPolicyCommand");
|
|
2406
|
-
var de_RemoveManagedScalingPolicyCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2407
|
-
const parsedOutput = {
|
|
2408
|
-
...output,
|
|
2409
|
-
body: await parseErrorBody(output.body, context)
|
|
2410
|
-
};
|
|
2411
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2412
|
-
const parsedBody = parsedOutput.body;
|
|
2413
|
-
return throwDefaultError({
|
|
2414
|
-
output,
|
|
2415
|
-
parsedBody,
|
|
2416
|
-
errorCode
|
|
2417
|
-
});
|
|
2418
|
-
}, "de_RemoveManagedScalingPolicyCommandError");
|
|
2419
1513
|
var de_RemoveTagsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2420
1514
|
if (output.statusCode >= 300) {
|
|
2421
|
-
return
|
|
1515
|
+
return de_CommandError(output, context);
|
|
2422
1516
|
}
|
|
2423
1517
|
const data = await parseBody(output.body, context);
|
|
2424
1518
|
let contents = {};
|
|
@@ -2429,31 +1523,9 @@ var de_RemoveTagsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
2429
1523
|
};
|
|
2430
1524
|
return response;
|
|
2431
1525
|
}, "de_RemoveTagsCommand");
|
|
2432
|
-
var de_RemoveTagsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2433
|
-
const parsedOutput = {
|
|
2434
|
-
...output,
|
|
2435
|
-
body: await parseErrorBody(output.body, context)
|
|
2436
|
-
};
|
|
2437
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2438
|
-
switch (errorCode) {
|
|
2439
|
-
case "InternalServerException":
|
|
2440
|
-
case "com.amazonaws.emr#InternalServerException":
|
|
2441
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2442
|
-
case "InvalidRequestException":
|
|
2443
|
-
case "com.amazonaws.emr#InvalidRequestException":
|
|
2444
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
2445
|
-
default:
|
|
2446
|
-
const parsedBody = parsedOutput.body;
|
|
2447
|
-
return throwDefaultError({
|
|
2448
|
-
output,
|
|
2449
|
-
parsedBody,
|
|
2450
|
-
errorCode
|
|
2451
|
-
});
|
|
2452
|
-
}
|
|
2453
|
-
}, "de_RemoveTagsCommandError");
|
|
2454
1526
|
var de_RunJobFlowCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2455
1527
|
if (output.statusCode >= 300) {
|
|
2456
|
-
return
|
|
1528
|
+
return de_CommandError(output, context);
|
|
2457
1529
|
}
|
|
2458
1530
|
const data = await parseBody(output.body, context);
|
|
2459
1531
|
let contents = {};
|
|
@@ -2464,28 +1536,9 @@ var de_RunJobFlowCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
2464
1536
|
};
|
|
2465
1537
|
return response;
|
|
2466
1538
|
}, "de_RunJobFlowCommand");
|
|
2467
|
-
var de_RunJobFlowCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2468
|
-
const parsedOutput = {
|
|
2469
|
-
...output,
|
|
2470
|
-
body: await parseErrorBody(output.body, context)
|
|
2471
|
-
};
|
|
2472
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2473
|
-
switch (errorCode) {
|
|
2474
|
-
case "InternalServerError":
|
|
2475
|
-
case "com.amazonaws.emr#InternalServerError":
|
|
2476
|
-
throw await de_InternalServerErrorRes(parsedOutput, context);
|
|
2477
|
-
default:
|
|
2478
|
-
const parsedBody = parsedOutput.body;
|
|
2479
|
-
return throwDefaultError({
|
|
2480
|
-
output,
|
|
2481
|
-
parsedBody,
|
|
2482
|
-
errorCode
|
|
2483
|
-
});
|
|
2484
|
-
}
|
|
2485
|
-
}, "de_RunJobFlowCommandError");
|
|
2486
1539
|
var de_SetKeepJobFlowAliveWhenNoStepsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2487
1540
|
if (output.statusCode >= 300) {
|
|
2488
|
-
return
|
|
1541
|
+
return de_CommandError(output, context);
|
|
2489
1542
|
}
|
|
2490
1543
|
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
2491
1544
|
const response = {
|
|
@@ -2493,28 +1546,9 @@ var de_SetKeepJobFlowAliveWhenNoStepsCommand = /* @__PURE__ */ __name(async (out
|
|
|
2493
1546
|
};
|
|
2494
1547
|
return response;
|
|
2495
1548
|
}, "de_SetKeepJobFlowAliveWhenNoStepsCommand");
|
|
2496
|
-
var de_SetKeepJobFlowAliveWhenNoStepsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2497
|
-
const parsedOutput = {
|
|
2498
|
-
...output,
|
|
2499
|
-
body: await parseErrorBody(output.body, context)
|
|
2500
|
-
};
|
|
2501
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2502
|
-
switch (errorCode) {
|
|
2503
|
-
case "InternalServerError":
|
|
2504
|
-
case "com.amazonaws.emr#InternalServerError":
|
|
2505
|
-
throw await de_InternalServerErrorRes(parsedOutput, context);
|
|
2506
|
-
default:
|
|
2507
|
-
const parsedBody = parsedOutput.body;
|
|
2508
|
-
return throwDefaultError({
|
|
2509
|
-
output,
|
|
2510
|
-
parsedBody,
|
|
2511
|
-
errorCode
|
|
2512
|
-
});
|
|
2513
|
-
}
|
|
2514
|
-
}, "de_SetKeepJobFlowAliveWhenNoStepsCommandError");
|
|
2515
1549
|
var de_SetTerminationProtectionCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2516
1550
|
if (output.statusCode >= 300) {
|
|
2517
|
-
return
|
|
1551
|
+
return de_CommandError(output, context);
|
|
2518
1552
|
}
|
|
2519
1553
|
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
2520
1554
|
const response = {
|
|
@@ -2522,28 +1556,9 @@ var de_SetTerminationProtectionCommand = /* @__PURE__ */ __name(async (output, c
|
|
|
2522
1556
|
};
|
|
2523
1557
|
return response;
|
|
2524
1558
|
}, "de_SetTerminationProtectionCommand");
|
|
2525
|
-
var de_SetTerminationProtectionCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2526
|
-
const parsedOutput = {
|
|
2527
|
-
...output,
|
|
2528
|
-
body: await parseErrorBody(output.body, context)
|
|
2529
|
-
};
|
|
2530
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2531
|
-
switch (errorCode) {
|
|
2532
|
-
case "InternalServerError":
|
|
2533
|
-
case "com.amazonaws.emr#InternalServerError":
|
|
2534
|
-
throw await de_InternalServerErrorRes(parsedOutput, context);
|
|
2535
|
-
default:
|
|
2536
|
-
const parsedBody = parsedOutput.body;
|
|
2537
|
-
return throwDefaultError({
|
|
2538
|
-
output,
|
|
2539
|
-
parsedBody,
|
|
2540
|
-
errorCode
|
|
2541
|
-
});
|
|
2542
|
-
}
|
|
2543
|
-
}, "de_SetTerminationProtectionCommandError");
|
|
2544
1559
|
var de_SetVisibleToAllUsersCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2545
1560
|
if (output.statusCode >= 300) {
|
|
2546
|
-
return
|
|
1561
|
+
return de_CommandError(output, context);
|
|
2547
1562
|
}
|
|
2548
1563
|
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
2549
1564
|
const response = {
|
|
@@ -2551,28 +1566,9 @@ var de_SetVisibleToAllUsersCommand = /* @__PURE__ */ __name(async (output, conte
|
|
|
2551
1566
|
};
|
|
2552
1567
|
return response;
|
|
2553
1568
|
}, "de_SetVisibleToAllUsersCommand");
|
|
2554
|
-
var de_SetVisibleToAllUsersCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2555
|
-
const parsedOutput = {
|
|
2556
|
-
...output,
|
|
2557
|
-
body: await parseErrorBody(output.body, context)
|
|
2558
|
-
};
|
|
2559
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2560
|
-
switch (errorCode) {
|
|
2561
|
-
case "InternalServerError":
|
|
2562
|
-
case "com.amazonaws.emr#InternalServerError":
|
|
2563
|
-
throw await de_InternalServerErrorRes(parsedOutput, context);
|
|
2564
|
-
default:
|
|
2565
|
-
const parsedBody = parsedOutput.body;
|
|
2566
|
-
return throwDefaultError({
|
|
2567
|
-
output,
|
|
2568
|
-
parsedBody,
|
|
2569
|
-
errorCode
|
|
2570
|
-
});
|
|
2571
|
-
}
|
|
2572
|
-
}, "de_SetVisibleToAllUsersCommandError");
|
|
2573
1569
|
var de_StartNotebookExecutionCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2574
1570
|
if (output.statusCode >= 300) {
|
|
2575
|
-
return
|
|
1571
|
+
return de_CommandError(output, context);
|
|
2576
1572
|
}
|
|
2577
1573
|
const data = await parseBody(output.body, context);
|
|
2578
1574
|
let contents = {};
|
|
@@ -2583,31 +1579,9 @@ var de_StartNotebookExecutionCommand = /* @__PURE__ */ __name(async (output, con
|
|
|
2583
1579
|
};
|
|
2584
1580
|
return response;
|
|
2585
1581
|
}, "de_StartNotebookExecutionCommand");
|
|
2586
|
-
var de_StartNotebookExecutionCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2587
|
-
const parsedOutput = {
|
|
2588
|
-
...output,
|
|
2589
|
-
body: await parseErrorBody(output.body, context)
|
|
2590
|
-
};
|
|
2591
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2592
|
-
switch (errorCode) {
|
|
2593
|
-
case "InternalServerException":
|
|
2594
|
-
case "com.amazonaws.emr#InternalServerException":
|
|
2595
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2596
|
-
case "InvalidRequestException":
|
|
2597
|
-
case "com.amazonaws.emr#InvalidRequestException":
|
|
2598
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
2599
|
-
default:
|
|
2600
|
-
const parsedBody = parsedOutput.body;
|
|
2601
|
-
return throwDefaultError({
|
|
2602
|
-
output,
|
|
2603
|
-
parsedBody,
|
|
2604
|
-
errorCode
|
|
2605
|
-
});
|
|
2606
|
-
}
|
|
2607
|
-
}, "de_StartNotebookExecutionCommandError");
|
|
2608
1582
|
var de_StopNotebookExecutionCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2609
1583
|
if (output.statusCode >= 300) {
|
|
2610
|
-
return
|
|
1584
|
+
return de_CommandError(output, context);
|
|
2611
1585
|
}
|
|
2612
1586
|
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
2613
1587
|
const response = {
|
|
@@ -2615,31 +1589,9 @@ var de_StopNotebookExecutionCommand = /* @__PURE__ */ __name(async (output, cont
|
|
|
2615
1589
|
};
|
|
2616
1590
|
return response;
|
|
2617
1591
|
}, "de_StopNotebookExecutionCommand");
|
|
2618
|
-
var de_StopNotebookExecutionCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2619
|
-
const parsedOutput = {
|
|
2620
|
-
...output,
|
|
2621
|
-
body: await parseErrorBody(output.body, context)
|
|
2622
|
-
};
|
|
2623
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2624
|
-
switch (errorCode) {
|
|
2625
|
-
case "InternalServerError":
|
|
2626
|
-
case "com.amazonaws.emr#InternalServerError":
|
|
2627
|
-
throw await de_InternalServerErrorRes(parsedOutput, context);
|
|
2628
|
-
case "InvalidRequestException":
|
|
2629
|
-
case "com.amazonaws.emr#InvalidRequestException":
|
|
2630
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
2631
|
-
default:
|
|
2632
|
-
const parsedBody = parsedOutput.body;
|
|
2633
|
-
return throwDefaultError({
|
|
2634
|
-
output,
|
|
2635
|
-
parsedBody,
|
|
2636
|
-
errorCode
|
|
2637
|
-
});
|
|
2638
|
-
}
|
|
2639
|
-
}, "de_StopNotebookExecutionCommandError");
|
|
2640
1592
|
var de_TerminateJobFlowsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2641
1593
|
if (output.statusCode >= 300) {
|
|
2642
|
-
return
|
|
1594
|
+
return de_CommandError(output, context);
|
|
2643
1595
|
}
|
|
2644
1596
|
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
2645
1597
|
const response = {
|
|
@@ -2647,28 +1599,9 @@ var de_TerminateJobFlowsCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
2647
1599
|
};
|
|
2648
1600
|
return response;
|
|
2649
1601
|
}, "de_TerminateJobFlowsCommand");
|
|
2650
|
-
var de_TerminateJobFlowsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2651
|
-
const parsedOutput = {
|
|
2652
|
-
...output,
|
|
2653
|
-
body: await parseErrorBody(output.body, context)
|
|
2654
|
-
};
|
|
2655
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2656
|
-
switch (errorCode) {
|
|
2657
|
-
case "InternalServerError":
|
|
2658
|
-
case "com.amazonaws.emr#InternalServerError":
|
|
2659
|
-
throw await de_InternalServerErrorRes(parsedOutput, context);
|
|
2660
|
-
default:
|
|
2661
|
-
const parsedBody = parsedOutput.body;
|
|
2662
|
-
return throwDefaultError({
|
|
2663
|
-
output,
|
|
2664
|
-
parsedBody,
|
|
2665
|
-
errorCode
|
|
2666
|
-
});
|
|
2667
|
-
}
|
|
2668
|
-
}, "de_TerminateJobFlowsCommandError");
|
|
2669
1602
|
var de_UpdateStudioCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2670
1603
|
if (output.statusCode >= 300) {
|
|
2671
|
-
return
|
|
1604
|
+
return de_CommandError(output, context);
|
|
2672
1605
|
}
|
|
2673
1606
|
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
2674
1607
|
const response = {
|
|
@@ -2676,31 +1609,9 @@ var de_UpdateStudioCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
2676
1609
|
};
|
|
2677
1610
|
return response;
|
|
2678
1611
|
}, "de_UpdateStudioCommand");
|
|
2679
|
-
var de_UpdateStudioCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2680
|
-
const parsedOutput = {
|
|
2681
|
-
...output,
|
|
2682
|
-
body: await parseErrorBody(output.body, context)
|
|
2683
|
-
};
|
|
2684
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2685
|
-
switch (errorCode) {
|
|
2686
|
-
case "InternalServerException":
|
|
2687
|
-
case "com.amazonaws.emr#InternalServerException":
|
|
2688
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2689
|
-
case "InvalidRequestException":
|
|
2690
|
-
case "com.amazonaws.emr#InvalidRequestException":
|
|
2691
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
2692
|
-
default:
|
|
2693
|
-
const parsedBody = parsedOutput.body;
|
|
2694
|
-
return throwDefaultError({
|
|
2695
|
-
output,
|
|
2696
|
-
parsedBody,
|
|
2697
|
-
errorCode
|
|
2698
|
-
});
|
|
2699
|
-
}
|
|
2700
|
-
}, "de_UpdateStudioCommandError");
|
|
2701
1612
|
var de_UpdateStudioSessionMappingCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2702
1613
|
if (output.statusCode >= 300) {
|
|
2703
|
-
return
|
|
1614
|
+
return de_CommandError(output, context);
|
|
2704
1615
|
}
|
|
2705
1616
|
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
2706
1617
|
const response = {
|
|
@@ -2708,19 +1619,22 @@ var de_UpdateStudioSessionMappingCommand = /* @__PURE__ */ __name(async (output,
|
|
|
2708
1619
|
};
|
|
2709
1620
|
return response;
|
|
2710
1621
|
}, "de_UpdateStudioSessionMappingCommand");
|
|
2711
|
-
var
|
|
1622
|
+
var de_CommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2712
1623
|
const parsedOutput = {
|
|
2713
1624
|
...output,
|
|
2714
1625
|
body: await parseErrorBody(output.body, context)
|
|
2715
1626
|
};
|
|
2716
1627
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2717
1628
|
switch (errorCode) {
|
|
2718
|
-
case "
|
|
2719
|
-
case "com.amazonaws.emr#
|
|
2720
|
-
throw await
|
|
1629
|
+
case "InternalServerException":
|
|
1630
|
+
case "com.amazonaws.emr#InternalServerException":
|
|
1631
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2721
1632
|
case "InvalidRequestException":
|
|
2722
1633
|
case "com.amazonaws.emr#InvalidRequestException":
|
|
2723
1634
|
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
1635
|
+
case "InternalServerError":
|
|
1636
|
+
case "com.amazonaws.emr#InternalServerError":
|
|
1637
|
+
throw await de_InternalServerErrorRes(parsedOutput, context);
|
|
2724
1638
|
default:
|
|
2725
1639
|
const parsedBody = parsedOutput.body;
|
|
2726
1640
|
return throwDefaultError({
|
|
@@ -2729,7 +1643,7 @@ var de_UpdateStudioSessionMappingCommandError = /* @__PURE__ */ __name(async (ou
|
|
|
2729
1643
|
errorCode
|
|
2730
1644
|
});
|
|
2731
1645
|
}
|
|
2732
|
-
}, "
|
|
1646
|
+
}, "de_CommandError");
|
|
2733
1647
|
var de_InternalServerErrorRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
2734
1648
|
const body = parsedOutput.body;
|
|
2735
1649
|
const deserialized = (0, import_smithy_client._json)(body);
|