@aws-sdk/client-emr 3.523.0 → 3.529.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.
Files changed (88) hide show
  1. package/dist-cjs/index.js +45 -86
  2. package/dist-es/protocols/Aws_json1_1.js +1 -41
  3. package/package.json +17 -17
  4. package/dist-cjs/EMR.js +0 -1
  5. package/dist-cjs/EMRClient.js +0 -1
  6. package/dist-cjs/auth/httpAuthExtensionConfiguration.js +0 -1
  7. package/dist-cjs/commands/AddInstanceFleetCommand.js +0 -1
  8. package/dist-cjs/commands/AddInstanceGroupsCommand.js +0 -1
  9. package/dist-cjs/commands/AddJobFlowStepsCommand.js +0 -1
  10. package/dist-cjs/commands/AddTagsCommand.js +0 -1
  11. package/dist-cjs/commands/CancelStepsCommand.js +0 -1
  12. package/dist-cjs/commands/CreateSecurityConfigurationCommand.js +0 -1
  13. package/dist-cjs/commands/CreateStudioCommand.js +0 -1
  14. package/dist-cjs/commands/CreateStudioSessionMappingCommand.js +0 -1
  15. package/dist-cjs/commands/DeleteSecurityConfigurationCommand.js +0 -1
  16. package/dist-cjs/commands/DeleteStudioCommand.js +0 -1
  17. package/dist-cjs/commands/DeleteStudioSessionMappingCommand.js +0 -1
  18. package/dist-cjs/commands/DescribeClusterCommand.js +0 -1
  19. package/dist-cjs/commands/DescribeJobFlowsCommand.js +0 -1
  20. package/dist-cjs/commands/DescribeNotebookExecutionCommand.js +0 -1
  21. package/dist-cjs/commands/DescribeReleaseLabelCommand.js +0 -1
  22. package/dist-cjs/commands/DescribeSecurityConfigurationCommand.js +0 -1
  23. package/dist-cjs/commands/DescribeStepCommand.js +0 -1
  24. package/dist-cjs/commands/DescribeStudioCommand.js +0 -1
  25. package/dist-cjs/commands/GetAutoTerminationPolicyCommand.js +0 -1
  26. package/dist-cjs/commands/GetBlockPublicAccessConfigurationCommand.js +0 -1
  27. package/dist-cjs/commands/GetClusterSessionCredentialsCommand.js +0 -1
  28. package/dist-cjs/commands/GetManagedScalingPolicyCommand.js +0 -1
  29. package/dist-cjs/commands/GetStudioSessionMappingCommand.js +0 -1
  30. package/dist-cjs/commands/ListBootstrapActionsCommand.js +0 -1
  31. package/dist-cjs/commands/ListClustersCommand.js +0 -1
  32. package/dist-cjs/commands/ListInstanceFleetsCommand.js +0 -1
  33. package/dist-cjs/commands/ListInstanceGroupsCommand.js +0 -1
  34. package/dist-cjs/commands/ListInstancesCommand.js +0 -1
  35. package/dist-cjs/commands/ListNotebookExecutionsCommand.js +0 -1
  36. package/dist-cjs/commands/ListReleaseLabelsCommand.js +0 -1
  37. package/dist-cjs/commands/ListSecurityConfigurationsCommand.js +0 -1
  38. package/dist-cjs/commands/ListStepsCommand.js +0 -1
  39. package/dist-cjs/commands/ListStudioSessionMappingsCommand.js +0 -1
  40. package/dist-cjs/commands/ListStudiosCommand.js +0 -1
  41. package/dist-cjs/commands/ListSupportedInstanceTypesCommand.js +0 -1
  42. package/dist-cjs/commands/ModifyClusterCommand.js +0 -1
  43. package/dist-cjs/commands/ModifyInstanceFleetCommand.js +0 -1
  44. package/dist-cjs/commands/ModifyInstanceGroupsCommand.js +0 -1
  45. package/dist-cjs/commands/PutAutoScalingPolicyCommand.js +0 -1
  46. package/dist-cjs/commands/PutAutoTerminationPolicyCommand.js +0 -1
  47. package/dist-cjs/commands/PutBlockPublicAccessConfigurationCommand.js +0 -1
  48. package/dist-cjs/commands/PutManagedScalingPolicyCommand.js +0 -1
  49. package/dist-cjs/commands/RemoveAutoScalingPolicyCommand.js +0 -1
  50. package/dist-cjs/commands/RemoveAutoTerminationPolicyCommand.js +0 -1
  51. package/dist-cjs/commands/RemoveManagedScalingPolicyCommand.js +0 -1
  52. package/dist-cjs/commands/RemoveTagsCommand.js +0 -1
  53. package/dist-cjs/commands/RunJobFlowCommand.js +0 -1
  54. package/dist-cjs/commands/SetKeepJobFlowAliveWhenNoStepsCommand.js +0 -1
  55. package/dist-cjs/commands/SetTerminationProtectionCommand.js +0 -1
  56. package/dist-cjs/commands/SetUnhealthyNodeReplacementCommand.js +0 -1
  57. package/dist-cjs/commands/SetVisibleToAllUsersCommand.js +0 -1
  58. package/dist-cjs/commands/StartNotebookExecutionCommand.js +0 -1
  59. package/dist-cjs/commands/StopNotebookExecutionCommand.js +0 -1
  60. package/dist-cjs/commands/TerminateJobFlowsCommand.js +0 -1
  61. package/dist-cjs/commands/UpdateStudioCommand.js +0 -1
  62. package/dist-cjs/commands/UpdateStudioSessionMappingCommand.js +0 -1
  63. package/dist-cjs/commands/index.js +0 -1
  64. package/dist-cjs/endpoint/EndpointParameters.js +0 -1
  65. package/dist-cjs/extensionConfiguration.js +0 -1
  66. package/dist-cjs/models/EMRServiceException.js +0 -1
  67. package/dist-cjs/models/index.js +0 -1
  68. package/dist-cjs/models/models_0.js +0 -1
  69. package/dist-cjs/pagination/Interfaces.js +0 -1
  70. package/dist-cjs/pagination/ListBootstrapActionsPaginator.js +0 -1
  71. package/dist-cjs/pagination/ListClustersPaginator.js +0 -1
  72. package/dist-cjs/pagination/ListInstanceFleetsPaginator.js +0 -1
  73. package/dist-cjs/pagination/ListInstanceGroupsPaginator.js +0 -1
  74. package/dist-cjs/pagination/ListInstancesPaginator.js +0 -1
  75. package/dist-cjs/pagination/ListNotebookExecutionsPaginator.js +0 -1
  76. package/dist-cjs/pagination/ListReleaseLabelsPaginator.js +0 -1
  77. package/dist-cjs/pagination/ListSecurityConfigurationsPaginator.js +0 -1
  78. package/dist-cjs/pagination/ListStepsPaginator.js +0 -1
  79. package/dist-cjs/pagination/ListStudioSessionMappingsPaginator.js +0 -1
  80. package/dist-cjs/pagination/ListStudiosPaginator.js +0 -1
  81. package/dist-cjs/pagination/ListSupportedInstanceTypesPaginator.js +0 -1
  82. package/dist-cjs/pagination/index.js +0 -1
  83. package/dist-cjs/protocols/Aws_json1_1.js +0 -1
  84. package/dist-cjs/runtimeExtensions.js +0 -1
  85. package/dist-cjs/waiters/index.js +0 -1
  86. package/dist-cjs/waiters/waitForClusterRunning.js +0 -1
  87. package/dist-cjs/waiters/waitForClusterTerminated.js +0 -1
  88. package/dist-cjs/waiters/waitForStepComplete.js +0 -1
package/dist-cjs/index.js CHANGED
@@ -1009,7 +1009,7 @@ var de_AddInstanceFleetCommand = /* @__PURE__ */ __name(async (output, context)
1009
1009
  if (output.statusCode >= 300) {
1010
1010
  return de_CommandError(output, context);
1011
1011
  }
1012
- const data = await parseBody(output.body, context);
1012
+ const data = await (0, import_core2.parseJsonBody)(output.body, context);
1013
1013
  let contents = {};
1014
1014
  contents = (0, import_smithy_client._json)(data);
1015
1015
  const response = {
@@ -1022,7 +1022,7 @@ var de_AddInstanceGroupsCommand = /* @__PURE__ */ __name(async (output, context)
1022
1022
  if (output.statusCode >= 300) {
1023
1023
  return de_CommandError(output, context);
1024
1024
  }
1025
- const data = await parseBody(output.body, context);
1025
+ const data = await (0, import_core2.parseJsonBody)(output.body, context);
1026
1026
  let contents = {};
1027
1027
  contents = (0, import_smithy_client._json)(data);
1028
1028
  const response = {
@@ -1035,7 +1035,7 @@ var de_AddJobFlowStepsCommand = /* @__PURE__ */ __name(async (output, context) =
1035
1035
  if (output.statusCode >= 300) {
1036
1036
  return de_CommandError(output, context);
1037
1037
  }
1038
- const data = await parseBody(output.body, context);
1038
+ const data = await (0, import_core2.parseJsonBody)(output.body, context);
1039
1039
  let contents = {};
1040
1040
  contents = (0, import_smithy_client._json)(data);
1041
1041
  const response = {
@@ -1048,7 +1048,7 @@ var de_AddTagsCommand = /* @__PURE__ */ __name(async (output, context) => {
1048
1048
  if (output.statusCode >= 300) {
1049
1049
  return de_CommandError(output, context);
1050
1050
  }
1051
- const data = await parseBody(output.body, context);
1051
+ const data = await (0, import_core2.parseJsonBody)(output.body, context);
1052
1052
  let contents = {};
1053
1053
  contents = (0, import_smithy_client._json)(data);
1054
1054
  const response = {
@@ -1061,7 +1061,7 @@ var de_CancelStepsCommand = /* @__PURE__ */ __name(async (output, context) => {
1061
1061
  if (output.statusCode >= 300) {
1062
1062
  return de_CommandError(output, context);
1063
1063
  }
1064
- const data = await parseBody(output.body, context);
1064
+ const data = await (0, import_core2.parseJsonBody)(output.body, context);
1065
1065
  let contents = {};
1066
1066
  contents = (0, import_smithy_client._json)(data);
1067
1067
  const response = {
@@ -1074,7 +1074,7 @@ var de_CreateSecurityConfigurationCommand = /* @__PURE__ */ __name(async (output
1074
1074
  if (output.statusCode >= 300) {
1075
1075
  return de_CommandError(output, context);
1076
1076
  }
1077
- const data = await parseBody(output.body, context);
1077
+ const data = await (0, import_core2.parseJsonBody)(output.body, context);
1078
1078
  let contents = {};
1079
1079
  contents = de_CreateSecurityConfigurationOutput(data, context);
1080
1080
  const response = {
@@ -1087,7 +1087,7 @@ var de_CreateStudioCommand = /* @__PURE__ */ __name(async (output, context) => {
1087
1087
  if (output.statusCode >= 300) {
1088
1088
  return de_CommandError(output, context);
1089
1089
  }
1090
- const data = await parseBody(output.body, context);
1090
+ const data = await (0, import_core2.parseJsonBody)(output.body, context);
1091
1091
  let contents = {};
1092
1092
  contents = (0, import_smithy_client._json)(data);
1093
1093
  const response = {
@@ -1110,7 +1110,7 @@ var de_DeleteSecurityConfigurationCommand = /* @__PURE__ */ __name(async (output
1110
1110
  if (output.statusCode >= 300) {
1111
1111
  return de_CommandError(output, context);
1112
1112
  }
1113
- const data = await parseBody(output.body, context);
1113
+ const data = await (0, import_core2.parseJsonBody)(output.body, context);
1114
1114
  let contents = {};
1115
1115
  contents = (0, import_smithy_client._json)(data);
1116
1116
  const response = {
@@ -1143,7 +1143,7 @@ var de_DescribeClusterCommand = /* @__PURE__ */ __name(async (output, context) =
1143
1143
  if (output.statusCode >= 300) {
1144
1144
  return de_CommandError(output, context);
1145
1145
  }
1146
- const data = await parseBody(output.body, context);
1146
+ const data = await (0, import_core2.parseJsonBody)(output.body, context);
1147
1147
  let contents = {};
1148
1148
  contents = de_DescribeClusterOutput(data, context);
1149
1149
  const response = {
@@ -1156,7 +1156,7 @@ var de_DescribeJobFlowsCommand = /* @__PURE__ */ __name(async (output, context)
1156
1156
  if (output.statusCode >= 300) {
1157
1157
  return de_CommandError(output, context);
1158
1158
  }
1159
- const data = await parseBody(output.body, context);
1159
+ const data = await (0, import_core2.parseJsonBody)(output.body, context);
1160
1160
  let contents = {};
1161
1161
  contents = de_DescribeJobFlowsOutput(data, context);
1162
1162
  const response = {
@@ -1169,7 +1169,7 @@ var de_DescribeNotebookExecutionCommand = /* @__PURE__ */ __name(async (output,
1169
1169
  if (output.statusCode >= 300) {
1170
1170
  return de_CommandError(output, context);
1171
1171
  }
1172
- const data = await parseBody(output.body, context);
1172
+ const data = await (0, import_core2.parseJsonBody)(output.body, context);
1173
1173
  let contents = {};
1174
1174
  contents = de_DescribeNotebookExecutionOutput(data, context);
1175
1175
  const response = {
@@ -1182,7 +1182,7 @@ var de_DescribeReleaseLabelCommand = /* @__PURE__ */ __name(async (output, conte
1182
1182
  if (output.statusCode >= 300) {
1183
1183
  return de_CommandError(output, context);
1184
1184
  }
1185
- const data = await parseBody(output.body, context);
1185
+ const data = await (0, import_core2.parseJsonBody)(output.body, context);
1186
1186
  let contents = {};
1187
1187
  contents = (0, import_smithy_client._json)(data);
1188
1188
  const response = {
@@ -1195,7 +1195,7 @@ var de_DescribeSecurityConfigurationCommand = /* @__PURE__ */ __name(async (outp
1195
1195
  if (output.statusCode >= 300) {
1196
1196
  return de_CommandError(output, context);
1197
1197
  }
1198
- const data = await parseBody(output.body, context);
1198
+ const data = await (0, import_core2.parseJsonBody)(output.body, context);
1199
1199
  let contents = {};
1200
1200
  contents = de_DescribeSecurityConfigurationOutput(data, context);
1201
1201
  const response = {
@@ -1208,7 +1208,7 @@ var de_DescribeStepCommand = /* @__PURE__ */ __name(async (output, context) => {
1208
1208
  if (output.statusCode >= 300) {
1209
1209
  return de_CommandError(output, context);
1210
1210
  }
1211
- const data = await parseBody(output.body, context);
1211
+ const data = await (0, import_core2.parseJsonBody)(output.body, context);
1212
1212
  let contents = {};
1213
1213
  contents = de_DescribeStepOutput(data, context);
1214
1214
  const response = {
@@ -1221,7 +1221,7 @@ var de_DescribeStudioCommand = /* @__PURE__ */ __name(async (output, context) =>
1221
1221
  if (output.statusCode >= 300) {
1222
1222
  return de_CommandError(output, context);
1223
1223
  }
1224
- const data = await parseBody(output.body, context);
1224
+ const data = await (0, import_core2.parseJsonBody)(output.body, context);
1225
1225
  let contents = {};
1226
1226
  contents = de_DescribeStudioOutput(data, context);
1227
1227
  const response = {
@@ -1234,7 +1234,7 @@ var de_GetAutoTerminationPolicyCommand = /* @__PURE__ */ __name(async (output, c
1234
1234
  if (output.statusCode >= 300) {
1235
1235
  return de_CommandError(output, context);
1236
1236
  }
1237
- const data = await parseBody(output.body, context);
1237
+ const data = await (0, import_core2.parseJsonBody)(output.body, context);
1238
1238
  let contents = {};
1239
1239
  contents = (0, import_smithy_client._json)(data);
1240
1240
  const response = {
@@ -1247,7 +1247,7 @@ var de_GetBlockPublicAccessConfigurationCommand = /* @__PURE__ */ __name(async (
1247
1247
  if (output.statusCode >= 300) {
1248
1248
  return de_CommandError(output, context);
1249
1249
  }
1250
- const data = await parseBody(output.body, context);
1250
+ const data = await (0, import_core2.parseJsonBody)(output.body, context);
1251
1251
  let contents = {};
1252
1252
  contents = de_GetBlockPublicAccessConfigurationOutput(data, context);
1253
1253
  const response = {
@@ -1260,7 +1260,7 @@ var de_GetClusterSessionCredentialsCommand = /* @__PURE__ */ __name(async (outpu
1260
1260
  if (output.statusCode >= 300) {
1261
1261
  return de_CommandError(output, context);
1262
1262
  }
1263
- const data = await parseBody(output.body, context);
1263
+ const data = await (0, import_core2.parseJsonBody)(output.body, context);
1264
1264
  let contents = {};
1265
1265
  contents = de_GetClusterSessionCredentialsOutput(data, context);
1266
1266
  const response = {
@@ -1273,7 +1273,7 @@ var de_GetManagedScalingPolicyCommand = /* @__PURE__ */ __name(async (output, co
1273
1273
  if (output.statusCode >= 300) {
1274
1274
  return de_CommandError(output, context);
1275
1275
  }
1276
- const data = await parseBody(output.body, context);
1276
+ const data = await (0, import_core2.parseJsonBody)(output.body, context);
1277
1277
  let contents = {};
1278
1278
  contents = (0, import_smithy_client._json)(data);
1279
1279
  const response = {
@@ -1286,7 +1286,7 @@ var de_GetStudioSessionMappingCommand = /* @__PURE__ */ __name(async (output, co
1286
1286
  if (output.statusCode >= 300) {
1287
1287
  return de_CommandError(output, context);
1288
1288
  }
1289
- const data = await parseBody(output.body, context);
1289
+ const data = await (0, import_core2.parseJsonBody)(output.body, context);
1290
1290
  let contents = {};
1291
1291
  contents = de_GetStudioSessionMappingOutput(data, context);
1292
1292
  const response = {
@@ -1299,7 +1299,7 @@ var de_ListBootstrapActionsCommand = /* @__PURE__ */ __name(async (output, conte
1299
1299
  if (output.statusCode >= 300) {
1300
1300
  return de_CommandError(output, context);
1301
1301
  }
1302
- const data = await parseBody(output.body, context);
1302
+ const data = await (0, import_core2.parseJsonBody)(output.body, context);
1303
1303
  let contents = {};
1304
1304
  contents = (0, import_smithy_client._json)(data);
1305
1305
  const response = {
@@ -1312,7 +1312,7 @@ var de_ListClustersCommand = /* @__PURE__ */ __name(async (output, context) => {
1312
1312
  if (output.statusCode >= 300) {
1313
1313
  return de_CommandError(output, context);
1314
1314
  }
1315
- const data = await parseBody(output.body, context);
1315
+ const data = await (0, import_core2.parseJsonBody)(output.body, context);
1316
1316
  let contents = {};
1317
1317
  contents = de_ListClustersOutput(data, context);
1318
1318
  const response = {
@@ -1325,7 +1325,7 @@ var de_ListInstanceFleetsCommand = /* @__PURE__ */ __name(async (output, context
1325
1325
  if (output.statusCode >= 300) {
1326
1326
  return de_CommandError(output, context);
1327
1327
  }
1328
- const data = await parseBody(output.body, context);
1328
+ const data = await (0, import_core2.parseJsonBody)(output.body, context);
1329
1329
  let contents = {};
1330
1330
  contents = de_ListInstanceFleetsOutput(data, context);
1331
1331
  const response = {
@@ -1338,7 +1338,7 @@ var de_ListInstanceGroupsCommand = /* @__PURE__ */ __name(async (output, context
1338
1338
  if (output.statusCode >= 300) {
1339
1339
  return de_CommandError(output, context);
1340
1340
  }
1341
- const data = await parseBody(output.body, context);
1341
+ const data = await (0, import_core2.parseJsonBody)(output.body, context);
1342
1342
  let contents = {};
1343
1343
  contents = de_ListInstanceGroupsOutput(data, context);
1344
1344
  const response = {
@@ -1351,7 +1351,7 @@ var de_ListInstancesCommand = /* @__PURE__ */ __name(async (output, context) =>
1351
1351
  if (output.statusCode >= 300) {
1352
1352
  return de_CommandError(output, context);
1353
1353
  }
1354
- const data = await parseBody(output.body, context);
1354
+ const data = await (0, import_core2.parseJsonBody)(output.body, context);
1355
1355
  let contents = {};
1356
1356
  contents = de_ListInstancesOutput(data, context);
1357
1357
  const response = {
@@ -1364,7 +1364,7 @@ var de_ListNotebookExecutionsCommand = /* @__PURE__ */ __name(async (output, con
1364
1364
  if (output.statusCode >= 300) {
1365
1365
  return de_CommandError(output, context);
1366
1366
  }
1367
- const data = await parseBody(output.body, context);
1367
+ const data = await (0, import_core2.parseJsonBody)(output.body, context);
1368
1368
  let contents = {};
1369
1369
  contents = de_ListNotebookExecutionsOutput(data, context);
1370
1370
  const response = {
@@ -1377,7 +1377,7 @@ var de_ListReleaseLabelsCommand = /* @__PURE__ */ __name(async (output, context)
1377
1377
  if (output.statusCode >= 300) {
1378
1378
  return de_CommandError(output, context);
1379
1379
  }
1380
- const data = await parseBody(output.body, context);
1380
+ const data = await (0, import_core2.parseJsonBody)(output.body, context);
1381
1381
  let contents = {};
1382
1382
  contents = (0, import_smithy_client._json)(data);
1383
1383
  const response = {
@@ -1390,7 +1390,7 @@ var de_ListSecurityConfigurationsCommand = /* @__PURE__ */ __name(async (output,
1390
1390
  if (output.statusCode >= 300) {
1391
1391
  return de_CommandError(output, context);
1392
1392
  }
1393
- const data = await parseBody(output.body, context);
1393
+ const data = await (0, import_core2.parseJsonBody)(output.body, context);
1394
1394
  let contents = {};
1395
1395
  contents = de_ListSecurityConfigurationsOutput(data, context);
1396
1396
  const response = {
@@ -1403,7 +1403,7 @@ var de_ListStepsCommand = /* @__PURE__ */ __name(async (output, context) => {
1403
1403
  if (output.statusCode >= 300) {
1404
1404
  return de_CommandError(output, context);
1405
1405
  }
1406
- const data = await parseBody(output.body, context);
1406
+ const data = await (0, import_core2.parseJsonBody)(output.body, context);
1407
1407
  let contents = {};
1408
1408
  contents = de_ListStepsOutput(data, context);
1409
1409
  const response = {
@@ -1416,7 +1416,7 @@ var de_ListStudiosCommand = /* @__PURE__ */ __name(async (output, context) => {
1416
1416
  if (output.statusCode >= 300) {
1417
1417
  return de_CommandError(output, context);
1418
1418
  }
1419
- const data = await parseBody(output.body, context);
1419
+ const data = await (0, import_core2.parseJsonBody)(output.body, context);
1420
1420
  let contents = {};
1421
1421
  contents = de_ListStudiosOutput(data, context);
1422
1422
  const response = {
@@ -1429,7 +1429,7 @@ var de_ListStudioSessionMappingsCommand = /* @__PURE__ */ __name(async (output,
1429
1429
  if (output.statusCode >= 300) {
1430
1430
  return de_CommandError(output, context);
1431
1431
  }
1432
- const data = await parseBody(output.body, context);
1432
+ const data = await (0, import_core2.parseJsonBody)(output.body, context);
1433
1433
  let contents = {};
1434
1434
  contents = de_ListStudioSessionMappingsOutput(data, context);
1435
1435
  const response = {
@@ -1442,7 +1442,7 @@ var de_ListSupportedInstanceTypesCommand = /* @__PURE__ */ __name(async (output,
1442
1442
  if (output.statusCode >= 300) {
1443
1443
  return de_CommandError(output, context);
1444
1444
  }
1445
- const data = await parseBody(output.body, context);
1445
+ const data = await (0, import_core2.parseJsonBody)(output.body, context);
1446
1446
  let contents = {};
1447
1447
  contents = de_ListSupportedInstanceTypesOutput(data, context);
1448
1448
  const response = {
@@ -1455,7 +1455,7 @@ var de_ModifyClusterCommand = /* @__PURE__ */ __name(async (output, context) =>
1455
1455
  if (output.statusCode >= 300) {
1456
1456
  return de_CommandError(output, context);
1457
1457
  }
1458
- const data = await parseBody(output.body, context);
1458
+ const data = await (0, import_core2.parseJsonBody)(output.body, context);
1459
1459
  let contents = {};
1460
1460
  contents = (0, import_smithy_client._json)(data);
1461
1461
  const response = {
@@ -1488,7 +1488,7 @@ var de_PutAutoScalingPolicyCommand = /* @__PURE__ */ __name(async (output, conte
1488
1488
  if (output.statusCode >= 300) {
1489
1489
  return de_CommandError(output, context);
1490
1490
  }
1491
- const data = await parseBody(output.body, context);
1491
+ const data = await (0, import_core2.parseJsonBody)(output.body, context);
1492
1492
  let contents = {};
1493
1493
  contents = de_PutAutoScalingPolicyOutput(data, context);
1494
1494
  const response = {
@@ -1501,7 +1501,7 @@ var de_PutAutoTerminationPolicyCommand = /* @__PURE__ */ __name(async (output, c
1501
1501
  if (output.statusCode >= 300) {
1502
1502
  return de_CommandError(output, context);
1503
1503
  }
1504
- const data = await parseBody(output.body, context);
1504
+ const data = await (0, import_core2.parseJsonBody)(output.body, context);
1505
1505
  let contents = {};
1506
1506
  contents = (0, import_smithy_client._json)(data);
1507
1507
  const response = {
@@ -1514,7 +1514,7 @@ var de_PutBlockPublicAccessConfigurationCommand = /* @__PURE__ */ __name(async (
1514
1514
  if (output.statusCode >= 300) {
1515
1515
  return de_CommandError(output, context);
1516
1516
  }
1517
- const data = await parseBody(output.body, context);
1517
+ const data = await (0, import_core2.parseJsonBody)(output.body, context);
1518
1518
  let contents = {};
1519
1519
  contents = (0, import_smithy_client._json)(data);
1520
1520
  const response = {
@@ -1527,7 +1527,7 @@ var de_PutManagedScalingPolicyCommand = /* @__PURE__ */ __name(async (output, co
1527
1527
  if (output.statusCode >= 300) {
1528
1528
  return de_CommandError(output, context);
1529
1529
  }
1530
- const data = await parseBody(output.body, context);
1530
+ const data = await (0, import_core2.parseJsonBody)(output.body, context);
1531
1531
  let contents = {};
1532
1532
  contents = (0, import_smithy_client._json)(data);
1533
1533
  const response = {
@@ -1540,7 +1540,7 @@ var de_RemoveAutoScalingPolicyCommand = /* @__PURE__ */ __name(async (output, co
1540
1540
  if (output.statusCode >= 300) {
1541
1541
  return de_CommandError(output, context);
1542
1542
  }
1543
- const data = await parseBody(output.body, context);
1543
+ const data = await (0, import_core2.parseJsonBody)(output.body, context);
1544
1544
  let contents = {};
1545
1545
  contents = (0, import_smithy_client._json)(data);
1546
1546
  const response = {
@@ -1553,7 +1553,7 @@ var de_RemoveAutoTerminationPolicyCommand = /* @__PURE__ */ __name(async (output
1553
1553
  if (output.statusCode >= 300) {
1554
1554
  return de_CommandError(output, context);
1555
1555
  }
1556
- const data = await parseBody(output.body, context);
1556
+ const data = await (0, import_core2.parseJsonBody)(output.body, context);
1557
1557
  let contents = {};
1558
1558
  contents = (0, import_smithy_client._json)(data);
1559
1559
  const response = {
@@ -1566,7 +1566,7 @@ var de_RemoveManagedScalingPolicyCommand = /* @__PURE__ */ __name(async (output,
1566
1566
  if (output.statusCode >= 300) {
1567
1567
  return de_CommandError(output, context);
1568
1568
  }
1569
- const data = await parseBody(output.body, context);
1569
+ const data = await (0, import_core2.parseJsonBody)(output.body, context);
1570
1570
  let contents = {};
1571
1571
  contents = (0, import_smithy_client._json)(data);
1572
1572
  const response = {
@@ -1579,7 +1579,7 @@ var de_RemoveTagsCommand = /* @__PURE__ */ __name(async (output, context) => {
1579
1579
  if (output.statusCode >= 300) {
1580
1580
  return de_CommandError(output, context);
1581
1581
  }
1582
- const data = await parseBody(output.body, context);
1582
+ const data = await (0, import_core2.parseJsonBody)(output.body, context);
1583
1583
  let contents = {};
1584
1584
  contents = (0, import_smithy_client._json)(data);
1585
1585
  const response = {
@@ -1592,7 +1592,7 @@ var de_RunJobFlowCommand = /* @__PURE__ */ __name(async (output, context) => {
1592
1592
  if (output.statusCode >= 300) {
1593
1593
  return de_CommandError(output, context);
1594
1594
  }
1595
- const data = await parseBody(output.body, context);
1595
+ const data = await (0, import_core2.parseJsonBody)(output.body, context);
1596
1596
  let contents = {};
1597
1597
  contents = (0, import_smithy_client._json)(data);
1598
1598
  const response = {
@@ -1645,7 +1645,7 @@ var de_StartNotebookExecutionCommand = /* @__PURE__ */ __name(async (output, con
1645
1645
  if (output.statusCode >= 300) {
1646
1646
  return de_CommandError(output, context);
1647
1647
  }
1648
- const data = await parseBody(output.body, context);
1648
+ const data = await (0, import_core2.parseJsonBody)(output.body, context);
1649
1649
  let contents = {};
1650
1650
  contents = (0, import_smithy_client._json)(data);
1651
1651
  const response = {
@@ -1697,9 +1697,9 @@ var de_UpdateStudioSessionMappingCommand = /* @__PURE__ */ __name(async (output,
1697
1697
  var de_CommandError = /* @__PURE__ */ __name(async (output, context) => {
1698
1698
  const parsedOutput = {
1699
1699
  ...output,
1700
- body: await parseErrorBody(output.body, context)
1700
+ body: await (0, import_core2.parseJsonErrorBody)(output.body, context)
1701
1701
  };
1702
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1702
+ const errorCode = (0, import_core2.loadRestJsonErrorCode)(output, parsedOutput.body);
1703
1703
  switch (errorCode) {
1704
1704
  case "InternalServerException":
1705
1705
  case "com.amazonaws.emr#InternalServerException":
@@ -2659,7 +2659,6 @@ var deserializeMetadata = /* @__PURE__ */ __name((output) => ({
2659
2659
  extendedRequestId: output.headers["x-amz-id-2"],
2660
2660
  cfId: output.headers["x-amz-cf-id"]
2661
2661
  }), "deserializeMetadata");
2662
- var collectBodyString = /* @__PURE__ */ __name((streamBody, context) => (0, import_smithy_client.collectBody)(streamBody, context).then((body) => context.utf8Encoder(body)), "collectBodyString");
2663
2662
  var throwDefaultError = (0, import_smithy_client.withBaseException)(EMRServiceException);
2664
2663
  var buildHttpRpcRequest = /* @__PURE__ */ __name(async (context, headers, path, resolvedHostname, body) => {
2665
2664
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
@@ -2686,46 +2685,6 @@ function sharedHeaders(operation) {
2686
2685
  };
2687
2686
  }
2688
2687
  __name(sharedHeaders, "sharedHeaders");
2689
- var parseBody = /* @__PURE__ */ __name((streamBody, context) => collectBodyString(streamBody, context).then((encoded) => {
2690
- if (encoded.length) {
2691
- return JSON.parse(encoded);
2692
- }
2693
- return {};
2694
- }), "parseBody");
2695
- var parseErrorBody = /* @__PURE__ */ __name(async (errorBody, context) => {
2696
- const value = await parseBody(errorBody, context);
2697
- value.message = value.message ?? value.Message;
2698
- return value;
2699
- }, "parseErrorBody");
2700
- var loadRestJsonErrorCode = /* @__PURE__ */ __name((output, data) => {
2701
- const findKey = /* @__PURE__ */ __name((object, key) => Object.keys(object).find((k) => k.toLowerCase() === key.toLowerCase()), "findKey");
2702
- const sanitizeErrorCode = /* @__PURE__ */ __name((rawValue) => {
2703
- let cleanValue = rawValue;
2704
- if (typeof cleanValue === "number") {
2705
- cleanValue = cleanValue.toString();
2706
- }
2707
- if (cleanValue.indexOf(",") >= 0) {
2708
- cleanValue = cleanValue.split(",")[0];
2709
- }
2710
- if (cleanValue.indexOf(":") >= 0) {
2711
- cleanValue = cleanValue.split(":")[0];
2712
- }
2713
- if (cleanValue.indexOf("#") >= 0) {
2714
- cleanValue = cleanValue.split("#")[1];
2715
- }
2716
- return cleanValue;
2717
- }, "sanitizeErrorCode");
2718
- const headerKey = findKey(output.headers, "x-amzn-errortype");
2719
- if (headerKey !== void 0) {
2720
- return sanitizeErrorCode(output.headers[headerKey]);
2721
- }
2722
- if (data.code !== void 0) {
2723
- return sanitizeErrorCode(data.code);
2724
- }
2725
- if (data["__type"] !== void 0) {
2726
- return sanitizeErrorCode(data["__type"]);
2727
- }
2728
- }, "loadRestJsonErrorCode");
2729
2688
 
2730
2689
  // src/commands/AddInstanceFleetCommand.ts
2731
2690
  var _AddInstanceFleetCommand = class _AddInstanceFleetCommand extends import_smithy_client.Command.classBuilder().ep({
@@ -1,4 +1,4 @@
1
- import { awsExpectUnion as __expectUnion } from "@aws-sdk/core";
1
+ import { awsExpectUnion as __expectUnion, loadRestJsonErrorCode, parseJsonBody as parseBody, parseJsonErrorBody as parseErrorBody, } from "@aws-sdk/core";
2
2
  import { HttpRequest as __HttpRequest } from "@smithy/protocol-http";
3
3
  import { _json, collectBody, decorateServiceException as __decorateServiceException, expectBoolean as __expectBoolean, expectInt32 as __expectInt32, expectLong as __expectLong, expectNonNull as __expectNonNull, expectNumber as __expectNumber, expectString as __expectString, limitedParseDouble as __limitedParseDouble, limitedParseFloat32 as __limitedParseFloat32, parseEpochTimestamp as __parseEpochTimestamp, serializeFloat as __serializeFloat, take, withBaseException, } from "@smithy/smithy-client";
4
4
  import { EMRServiceException as __BaseException } from "../models/EMRServiceException";
@@ -2063,43 +2063,3 @@ function sharedHeaders(operation) {
2063
2063
  "x-amz-target": `ElasticMapReduce.${operation}`,
2064
2064
  };
2065
2065
  }
2066
- const parseBody = (streamBody, context) => collectBodyString(streamBody, context).then((encoded) => {
2067
- if (encoded.length) {
2068
- return JSON.parse(encoded);
2069
- }
2070
- return {};
2071
- });
2072
- const parseErrorBody = async (errorBody, context) => {
2073
- const value = await parseBody(errorBody, context);
2074
- value.message = value.message ?? value.Message;
2075
- return value;
2076
- };
2077
- const loadRestJsonErrorCode = (output, data) => {
2078
- const findKey = (object, key) => Object.keys(object).find((k) => k.toLowerCase() === key.toLowerCase());
2079
- const sanitizeErrorCode = (rawValue) => {
2080
- let cleanValue = rawValue;
2081
- if (typeof cleanValue === "number") {
2082
- cleanValue = cleanValue.toString();
2083
- }
2084
- if (cleanValue.indexOf(",") >= 0) {
2085
- cleanValue = cleanValue.split(",")[0];
2086
- }
2087
- if (cleanValue.indexOf(":") >= 0) {
2088
- cleanValue = cleanValue.split(":")[0];
2089
- }
2090
- if (cleanValue.indexOf("#") >= 0) {
2091
- cleanValue = cleanValue.split("#")[1];
2092
- }
2093
- return cleanValue;
2094
- };
2095
- const headerKey = findKey(output.headers, "x-amzn-errortype");
2096
- if (headerKey !== undefined) {
2097
- return sanitizeErrorCode(output.headers[headerKey]);
2098
- }
2099
- if (data.code !== undefined) {
2100
- return sanitizeErrorCode(data.code);
2101
- }
2102
- if (data["__type"] !== undefined) {
2103
- return sanitizeErrorCode(data["__type"]);
2104
- }
2105
- };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-emr",
3
3
  "description": "AWS SDK for JavaScript Emr Client for Node.js, Browser and React Native",
4
- "version": "3.523.0",
4
+ "version": "3.529.0",
5
5
  "scripts": {
6
6
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
7
7
  "build:cjs": "node ../../scripts/compilation/inline client-emr",
@@ -20,40 +20,40 @@
20
20
  "dependencies": {
21
21
  "@aws-crypto/sha256-browser": "3.0.0",
22
22
  "@aws-crypto/sha256-js": "3.0.0",
23
- "@aws-sdk/client-sts": "3.523.0",
24
- "@aws-sdk/core": "3.523.0",
25
- "@aws-sdk/credential-provider-node": "3.523.0",
23
+ "@aws-sdk/client-sts": "3.529.0",
24
+ "@aws-sdk/core": "3.529.0",
25
+ "@aws-sdk/credential-provider-node": "3.529.0",
26
26
  "@aws-sdk/middleware-host-header": "3.523.0",
27
27
  "@aws-sdk/middleware-logger": "3.523.0",
28
28
  "@aws-sdk/middleware-recursion-detection": "3.523.0",
29
- "@aws-sdk/middleware-user-agent": "3.523.0",
30
- "@aws-sdk/region-config-resolver": "3.523.0",
29
+ "@aws-sdk/middleware-user-agent": "3.525.0",
30
+ "@aws-sdk/region-config-resolver": "3.525.0",
31
31
  "@aws-sdk/types": "3.523.0",
32
- "@aws-sdk/util-endpoints": "3.523.0",
32
+ "@aws-sdk/util-endpoints": "3.525.0",
33
33
  "@aws-sdk/util-user-agent-browser": "3.523.0",
34
- "@aws-sdk/util-user-agent-node": "3.523.0",
35
- "@smithy/config-resolver": "^2.1.3",
36
- "@smithy/core": "^1.3.4",
34
+ "@aws-sdk/util-user-agent-node": "3.525.0",
35
+ "@smithy/config-resolver": "^2.1.4",
36
+ "@smithy/core": "^1.3.5",
37
37
  "@smithy/fetch-http-handler": "^2.4.3",
38
38
  "@smithy/hash-node": "^2.1.3",
39
39
  "@smithy/invalid-dependency": "^2.1.3",
40
40
  "@smithy/middleware-content-length": "^2.1.3",
41
- "@smithy/middleware-endpoint": "^2.4.3",
42
- "@smithy/middleware-retry": "^2.1.3",
41
+ "@smithy/middleware-endpoint": "^2.4.4",
42
+ "@smithy/middleware-retry": "^2.1.4",
43
43
  "@smithy/middleware-serde": "^2.1.3",
44
44
  "@smithy/middleware-stack": "^2.1.3",
45
- "@smithy/node-config-provider": "^2.2.3",
45
+ "@smithy/node-config-provider": "^2.2.4",
46
46
  "@smithy/node-http-handler": "^2.4.1",
47
47
  "@smithy/protocol-http": "^3.2.1",
48
- "@smithy/smithy-client": "^2.4.1",
48
+ "@smithy/smithy-client": "^2.4.2",
49
49
  "@smithy/types": "^2.10.1",
50
50
  "@smithy/url-parser": "^2.1.3",
51
51
  "@smithy/util-base64": "^2.1.1",
52
52
  "@smithy/util-body-length-browser": "^2.1.1",
53
53
  "@smithy/util-body-length-node": "^2.2.1",
54
- "@smithy/util-defaults-mode-browser": "^2.1.3",
55
- "@smithy/util-defaults-mode-node": "^2.2.2",
56
- "@smithy/util-endpoints": "^1.1.3",
54
+ "@smithy/util-defaults-mode-browser": "^2.1.4",
55
+ "@smithy/util-defaults-mode-node": "^2.2.3",
56
+ "@smithy/util-endpoints": "^1.1.4",
57
57
  "@smithy/util-middleware": "^2.1.3",
58
58
  "@smithy/util-retry": "^2.1.3",
59
59
  "@smithy/util-utf8": "^2.1.1",
package/dist-cjs/EMR.js DELETED
@@ -1 +0,0 @@
1
- module.exports = require("./index.js");
@@ -1 +0,0 @@
1
- module.exports = require("./index.js");
@@ -1 +0,0 @@
1
- module.exports = require("../index.js");
@@ -1 +0,0 @@
1
- module.exports = require("../index.js");
@@ -1 +0,0 @@
1
- module.exports = require("../index.js");
@@ -1 +0,0 @@
1
- module.exports = require("../index.js");
@@ -1 +0,0 @@
1
- module.exports = require("../index.js");
@@ -1 +0,0 @@
1
- module.exports = require("../index.js");
@@ -1 +0,0 @@
1
- module.exports = require("../index.js");
@@ -1 +0,0 @@
1
- module.exports = require("../index.js");
@@ -1 +0,0 @@
1
- module.exports = require("../index.js");
@@ -1 +0,0 @@
1
- module.exports = require("../index.js");
@@ -1 +0,0 @@
1
- module.exports = require("../index.js");
@@ -1 +0,0 @@
1
- module.exports = require("../index.js");
@@ -1 +0,0 @@
1
- module.exports = require("../index.js");
@@ -1 +0,0 @@
1
- module.exports = require("../index.js");
@@ -1 +0,0 @@
1
- module.exports = require("../index.js");
@@ -1 +0,0 @@
1
- module.exports = require("../index.js");
@@ -1 +0,0 @@
1
- module.exports = require("../index.js");
@@ -1 +0,0 @@
1
- module.exports = require("../index.js");
@@ -1 +0,0 @@
1
- module.exports = require("../index.js");
@@ -1 +0,0 @@
1
- module.exports = require("../index.js");
@@ -1 +0,0 @@
1
- module.exports = require("../index.js");
@@ -1 +0,0 @@
1
- module.exports = require("../index.js");
@@ -1 +0,0 @@
1
- module.exports = require("../index.js");
@@ -1 +0,0 @@
1
- module.exports = require("../index.js");
@@ -1 +0,0 @@
1
- module.exports = require("../index.js");
@@ -1 +0,0 @@
1
- module.exports = require("../index.js");
@@ -1 +0,0 @@
1
- module.exports = require("../index.js");
@@ -1 +0,0 @@
1
- module.exports = require("../index.js");
@@ -1 +0,0 @@
1
- module.exports = require("../index.js");
@@ -1 +0,0 @@
1
- module.exports = require("../index.js");
@@ -1 +0,0 @@
1
- module.exports = require("../index.js");
@@ -1 +0,0 @@
1
- module.exports = require("../index.js");
@@ -1 +0,0 @@
1
- module.exports = require("../index.js");
@@ -1 +0,0 @@
1
- module.exports = require("../index.js");
@@ -1 +0,0 @@
1
- module.exports = require("../index.js");
@@ -1 +0,0 @@
1
- module.exports = require("../index.js");
@@ -1 +0,0 @@
1
- module.exports = require("../index.js");
@@ -1 +0,0 @@
1
- module.exports = require("../index.js");
@@ -1 +0,0 @@
1
- module.exports = require("../index.js");
@@ -1 +0,0 @@
1
- module.exports = require("../index.js");
@@ -1 +0,0 @@
1
- module.exports = require("../index.js");
@@ -1 +0,0 @@
1
- module.exports = require("../index.js");
@@ -1 +0,0 @@
1
- module.exports = require("../index.js");
@@ -1 +0,0 @@
1
- module.exports = require("../index.js");
@@ -1 +0,0 @@
1
- module.exports = require("../index.js");
@@ -1 +0,0 @@
1
- module.exports = require("../index.js");
@@ -1 +0,0 @@
1
- module.exports = require("../index.js");
@@ -1 +0,0 @@
1
- module.exports = require("../index.js");
@@ -1 +0,0 @@
1
- module.exports = require("../index.js");
@@ -1 +0,0 @@
1
- module.exports = require("../index.js");
@@ -1 +0,0 @@
1
- module.exports = require("../index.js");
@@ -1 +0,0 @@
1
- module.exports = require("../index.js");
@@ -1 +0,0 @@
1
- module.exports = require("../index.js");
@@ -1 +0,0 @@
1
- module.exports = require("../index.js");
@@ -1 +0,0 @@
1
- module.exports = require("../index.js");
@@ -1 +0,0 @@
1
- module.exports = require("../index.js");
@@ -1 +0,0 @@
1
- module.exports = require("../index.js");
@@ -1 +0,0 @@
1
- module.exports = require("../index.js");
@@ -1 +0,0 @@
1
- module.exports = require("../index.js");
@@ -1 +0,0 @@
1
- module.exports = require("./index.js");
@@ -1 +0,0 @@
1
- module.exports = require("../index.js");
@@ -1 +0,0 @@
1
- module.exports = require("../index.js");
@@ -1 +0,0 @@
1
- module.exports = require("../index.js");
@@ -1 +0,0 @@
1
- module.exports = require("../index.js");
@@ -1 +0,0 @@
1
- module.exports = require("../index.js");
@@ -1 +0,0 @@
1
- module.exports = require("../index.js");
@@ -1 +0,0 @@
1
- module.exports = require("../index.js");
@@ -1 +0,0 @@
1
- module.exports = require("../index.js");
@@ -1 +0,0 @@
1
- module.exports = require("../index.js");
@@ -1 +0,0 @@
1
- module.exports = require("../index.js");
@@ -1 +0,0 @@
1
- module.exports = require("../index.js");
@@ -1 +0,0 @@
1
- module.exports = require("../index.js");
@@ -1 +0,0 @@
1
- module.exports = require("../index.js");
@@ -1 +0,0 @@
1
- module.exports = require("../index.js");
@@ -1 +0,0 @@
1
- module.exports = require("../index.js");
@@ -1 +0,0 @@
1
- module.exports = require("../index.js");
@@ -1 +0,0 @@
1
- module.exports = require("../index.js");
@@ -1 +0,0 @@
1
- module.exports = require("../index.js");
@@ -1 +0,0 @@
1
- module.exports = require("./index.js");
@@ -1 +0,0 @@
1
- module.exports = require("../index.js");
@@ -1 +0,0 @@
1
- module.exports = require("../index.js");
@@ -1 +0,0 @@
1
- module.exports = require("../index.js");
@@ -1 +0,0 @@
1
- module.exports = require("../index.js");