@aws-sdk/client-emr-serverless 3.582.0 → 3.587.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 (33) hide show
  1. package/README.md +8 -0
  2. package/dist-cjs/index.js +114 -5
  3. package/dist-es/EMRServerless.js +2 -0
  4. package/dist-es/commands/ListJobRunAttemptsCommand.js +24 -0
  5. package/dist-es/commands/index.js +1 -0
  6. package/dist-es/models/models_0.js +4 -0
  7. package/dist-es/pagination/ListJobRunAttemptsPaginator.js +4 -0
  8. package/dist-es/pagination/index.js +1 -0
  9. package/dist-es/protocols/Aws_restJson1.js +84 -5
  10. package/dist-types/EMRServerless.d.ts +7 -0
  11. package/dist-types/EMRServerlessClient.d.ts +3 -2
  12. package/dist-types/commands/CreateApplicationCommand.d.ts +4 -0
  13. package/dist-types/commands/GetApplicationCommand.d.ts +4 -0
  14. package/dist-types/commands/GetDashboardForJobRunCommand.d.ts +1 -0
  15. package/dist-types/commands/GetJobRunCommand.d.ts +9 -0
  16. package/dist-types/commands/ListJobRunAttemptsCommand.d.ts +91 -0
  17. package/dist-types/commands/ListJobRunsCommand.d.ts +5 -0
  18. package/dist-types/commands/StartJobRunCommand.d.ts +5 -0
  19. package/dist-types/commands/UpdateApplicationCommand.d.ts +8 -0
  20. package/dist-types/commands/index.d.ts +1 -0
  21. package/dist-types/models/models_0.d.ts +255 -0
  22. package/dist-types/pagination/ListJobRunAttemptsPaginator.d.ts +7 -0
  23. package/dist-types/pagination/index.d.ts +1 -0
  24. package/dist-types/protocols/Aws_restJson1.d.ts +9 -0
  25. package/dist-types/ts3.4/EMRServerless.d.ts +17 -0
  26. package/dist-types/ts3.4/EMRServerlessClient.d.ts +6 -0
  27. package/dist-types/ts3.4/commands/ListJobRunAttemptsCommand.d.ts +39 -0
  28. package/dist-types/ts3.4/commands/index.d.ts +1 -0
  29. package/dist-types/ts3.4/models/models_0.d.ts +57 -0
  30. package/dist-types/ts3.4/pagination/ListJobRunAttemptsPaginator.d.ts +11 -0
  31. package/dist-types/ts3.4/pagination/index.d.ts +1 -0
  32. package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +12 -0
  33. package/package.json +18 -18
package/README.md CHANGED
@@ -278,6 +278,14 @@ ListApplications
278
278
 
279
279
  [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/emr-serverless/command/ListApplicationsCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-emr-serverless/Interface/ListApplicationsCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-emr-serverless/Interface/ListApplicationsCommandOutput/)
280
280
 
281
+ </details>
282
+ <details>
283
+ <summary>
284
+ ListJobRunAttempts
285
+ </summary>
286
+
287
+ [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/emr-serverless/command/ListJobRunAttemptsCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-emr-serverless/Interface/ListJobRunAttemptsCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-emr-serverless/Interface/ListJobRunAttemptsCommandOutput/)
288
+
281
289
  </details>
282
290
  <details>
283
291
  <summary>
package/dist-cjs/index.js CHANGED
@@ -44,8 +44,10 @@ __export(src_exports, {
44
44
  JobDriver: () => JobDriver,
45
45
  JobDriverFilterSensitiveLog: () => JobDriverFilterSensitiveLog,
46
46
  JobRunFilterSensitiveLog: () => JobRunFilterSensitiveLog,
47
+ JobRunMode: () => JobRunMode,
47
48
  JobRunState: () => JobRunState,
48
49
  ListApplicationsCommand: () => ListApplicationsCommand,
50
+ ListJobRunAttemptsCommand: () => ListJobRunAttemptsCommand,
49
51
  ListJobRunsCommand: () => ListJobRunsCommand,
50
52
  ListTagsForResourceCommand: () => ListTagsForResourceCommand,
51
53
  ResourceNotFoundException: () => ResourceNotFoundException,
@@ -63,6 +65,7 @@ __export(src_exports, {
63
65
  ValidationException: () => ValidationException,
64
66
  __Client: () => import_smithy_client.Client,
65
67
  paginateListApplications: () => paginateListApplications,
68
+ paginateListJobRunAttempts: () => paginateListJobRunAttempts,
66
69
  paginateListJobRuns: () => paginateListJobRuns
67
70
  });
68
71
  module.exports = __toCommonJS(src_exports);
@@ -349,6 +352,10 @@ var JobDriver;
349
352
  return visitor._(value.$unknown[0], value.$unknown[1]);
350
353
  }, "visit");
351
354
  })(JobDriver || (JobDriver = {}));
355
+ var JobRunMode = {
356
+ BATCH: "BATCH",
357
+ STREAMING: "STREAMING"
358
+ };
352
359
  var JobRunState = {
353
360
  CANCELLED: "CANCELLED",
354
361
  CANCELLING: "CANCELLING",
@@ -463,6 +470,7 @@ var se_CreateApplicationCommand = /* @__PURE__ */ __name(async (input, context)
463
470
  clientToken: [true, (_) => _ ?? (0, import_uuid.v4)()],
464
471
  imageConfiguration: (_) => (0, import_smithy_client._json)(_),
465
472
  initialCapacity: (_) => (0, import_smithy_client._json)(_),
473
+ interactiveConfiguration: (_) => (0, import_smithy_client._json)(_),
466
474
  maximumCapacity: (_) => (0, import_smithy_client._json)(_),
467
475
  monitoringConfiguration: (_) => (0, import_smithy_client._json)(_),
468
476
  name: [],
@@ -501,8 +509,11 @@ var se_GetDashboardForJobRunCommand = /* @__PURE__ */ __name(async (input, conte
501
509
  b.bp("/applications/{applicationId}/jobruns/{jobRunId}/dashboard");
502
510
  b.p("applicationId", () => input.applicationId, "{applicationId}", false);
503
511
  b.p("jobRunId", () => input.jobRunId, "{jobRunId}", false);
512
+ const query = (0, import_smithy_client.map)({
513
+ [_a]: [() => input.attempt !== void 0, () => input[_a].toString()]
514
+ });
504
515
  let body;
505
- b.m("GET").h(headers).b(body);
516
+ b.m("GET").h(headers).q(query).b(body);
506
517
  return b.build();
507
518
  }, "se_GetDashboardForJobRunCommand");
508
519
  var se_GetJobRunCommand = /* @__PURE__ */ __name(async (input, context) => {
@@ -511,8 +522,11 @@ var se_GetJobRunCommand = /* @__PURE__ */ __name(async (input, context) => {
511
522
  b.bp("/applications/{applicationId}/jobruns/{jobRunId}");
512
523
  b.p("applicationId", () => input.applicationId, "{applicationId}", false);
513
524
  b.p("jobRunId", () => input.jobRunId, "{jobRunId}", false);
525
+ const query = (0, import_smithy_client.map)({
526
+ [_a]: [() => input.attempt !== void 0, () => input[_a].toString()]
527
+ });
514
528
  let body;
515
- b.m("GET").h(headers).b(body);
529
+ b.m("GET").h(headers).q(query).b(body);
516
530
  return b.build();
517
531
  }, "se_GetJobRunCommand");
518
532
  var se_ListApplicationsCommand = /* @__PURE__ */ __name(async (input, context) => {
@@ -528,6 +542,20 @@ var se_ListApplicationsCommand = /* @__PURE__ */ __name(async (input, context) =
528
542
  b.m("GET").h(headers).q(query).b(body);
529
543
  return b.build();
530
544
  }, "se_ListApplicationsCommand");
545
+ var se_ListJobRunAttemptsCommand = /* @__PURE__ */ __name(async (input, context) => {
546
+ const b = (0, import_core.requestBuilder)(input, context);
547
+ const headers = {};
548
+ b.bp("/applications/{applicationId}/jobruns/{jobRunId}/attempts");
549
+ b.p("applicationId", () => input.applicationId, "{applicationId}", false);
550
+ b.p("jobRunId", () => input.jobRunId, "{jobRunId}", false);
551
+ const query = (0, import_smithy_client.map)({
552
+ [_nT]: [, input[_nT]],
553
+ [_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()]
554
+ });
555
+ let body;
556
+ b.m("GET").h(headers).q(query).b(body);
557
+ return b.build();
558
+ }, "se_ListJobRunAttemptsCommand");
531
559
  var se_ListJobRunsCommand = /* @__PURE__ */ __name(async (input, context) => {
532
560
  const b = (0, import_core.requestBuilder)(input, context);
533
561
  const headers = {};
@@ -536,9 +564,10 @@ var se_ListJobRunsCommand = /* @__PURE__ */ __name(async (input, context) => {
536
564
  const query = (0, import_smithy_client.map)({
537
565
  [_nT]: [, input[_nT]],
538
566
  [_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
539
- [_cAA]: [() => input.createdAtAfter !== void 0, () => (input[_cAA].toISOString().split(".")[0] + "Z").toString()],
540
- [_cAB]: [() => input.createdAtBefore !== void 0, () => (input[_cAB].toISOString().split(".")[0] + "Z").toString()],
541
- [_s]: [() => input.states !== void 0, () => (input[_s] || []).map((_entry) => _entry)]
567
+ [_cAA]: [() => input.createdAtAfter !== void 0, () => (0, import_smithy_client.serializeDateTime)(input[_cAA]).toString()],
568
+ [_cAB]: [() => input.createdAtBefore !== void 0, () => (0, import_smithy_client.serializeDateTime)(input[_cAB]).toString()],
569
+ [_s]: [() => input.states !== void 0, () => (input[_s] || []).map((_entry) => _entry)],
570
+ [_m]: [, input[_m]]
542
571
  });
543
572
  let body;
544
573
  b.m("GET").h(headers).q(query).b(body);
@@ -577,7 +606,9 @@ var se_StartJobRunCommand = /* @__PURE__ */ __name(async (input, context) => {
577
606
  executionRoleArn: [],
578
607
  executionTimeoutMinutes: [],
579
608
  jobDriver: (_) => (0, import_smithy_client._json)(_),
609
+ mode: [],
580
610
  name: [],
611
+ retryPolicy: (_) => (0, import_smithy_client._json)(_),
581
612
  tags: (_) => (0, import_smithy_client._json)(_)
582
613
  })
583
614
  );
@@ -640,6 +671,7 @@ var se_UpdateApplicationCommand = /* @__PURE__ */ __name(async (input, context)
640
671
  clientToken: [true, (_) => _ ?? (0, import_uuid.v4)()],
641
672
  imageConfiguration: (_) => (0, import_smithy_client._json)(_),
642
673
  initialCapacity: (_) => (0, import_smithy_client._json)(_),
674
+ interactiveConfiguration: (_) => (0, import_smithy_client._json)(_),
643
675
  maximumCapacity: (_) => (0, import_smithy_client._json)(_),
644
676
  monitoringConfiguration: (_) => (0, import_smithy_client._json)(_),
645
677
  networkConfiguration: (_) => (0, import_smithy_client._json)(_),
@@ -749,6 +781,21 @@ var de_ListApplicationsCommand = /* @__PURE__ */ __name(async (output, context)
749
781
  Object.assign(contents, doc);
750
782
  return contents;
751
783
  }, "de_ListApplicationsCommand");
784
+ var de_ListJobRunAttemptsCommand = /* @__PURE__ */ __name(async (output, context) => {
785
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
786
+ return de_CommandError(output, context);
787
+ }
788
+ const contents = (0, import_smithy_client.map)({
789
+ $metadata: deserializeMetadata(output)
790
+ });
791
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
792
+ const doc = (0, import_smithy_client.take)(data, {
793
+ jobRunAttempts: (_) => de_JobRunAttempts(_, context),
794
+ nextToken: import_smithy_client.expectString
795
+ });
796
+ Object.assign(contents, doc);
797
+ return contents;
798
+ }, "de_ListJobRunAttemptsCommand");
752
799
  var de_ListJobRunsCommand = /* @__PURE__ */ __name(async (output, context) => {
753
800
  if (output.statusCode !== 200 && output.statusCode >= 300) {
754
801
  return de_CommandError(output, context);
@@ -973,6 +1020,7 @@ var de_Application = /* @__PURE__ */ __name((output, context) => {
973
1020
  createdAt: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))),
974
1021
  imageConfiguration: import_smithy_client._json,
975
1022
  initialCapacity: import_smithy_client._json,
1023
+ interactiveConfiguration: import_smithy_client._json,
976
1024
  maximumCapacity: import_smithy_client._json,
977
1025
  monitoringConfiguration: import_smithy_client._json,
978
1026
  name: import_smithy_client.expectString,
@@ -1030,6 +1078,9 @@ var de_JobRun = /* @__PURE__ */ __name((output, context) => {
1030
1078
  return (0, import_smithy_client.take)(output, {
1031
1079
  applicationId: import_smithy_client.expectString,
1032
1080
  arn: import_smithy_client.expectString,
1081
+ attempt: import_smithy_client.expectInt32,
1082
+ attemptCreatedAt: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))),
1083
+ attemptUpdatedAt: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))),
1033
1084
  billedResourceUtilization: (_) => de_ResourceUtilization(_, context),
1034
1085
  configurationOverrides: (_) => de_ConfigurationOverrides(_, context),
1035
1086
  createdAt: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))),
@@ -1038,9 +1089,11 @@ var de_JobRun = /* @__PURE__ */ __name((output, context) => {
1038
1089
  executionTimeoutMinutes: import_smithy_client.expectLong,
1039
1090
  jobDriver: (_) => (0, import_smithy_client._json)((0, import_core2.awsExpectUnion)(_)),
1040
1091
  jobRunId: import_smithy_client.expectString,
1092
+ mode: import_smithy_client.expectString,
1041
1093
  name: import_smithy_client.expectString,
1042
1094
  networkConfiguration: import_smithy_client._json,
1043
1095
  releaseLabel: import_smithy_client.expectString,
1096
+ retryPolicy: import_smithy_client._json,
1044
1097
  state: import_smithy_client.expectString,
1045
1098
  stateDetails: import_smithy_client.expectString,
1046
1099
  tags: import_smithy_client._json,
@@ -1049,6 +1102,31 @@ var de_JobRun = /* @__PURE__ */ __name((output, context) => {
1049
1102
  updatedAt: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_)))
1050
1103
  });
1051
1104
  }, "de_JobRun");
1105
+ var de_JobRunAttempts = /* @__PURE__ */ __name((output, context) => {
1106
+ const retVal = (output || []).filter((e) => e != null).map((entry) => {
1107
+ return de_JobRunAttemptSummary(entry, context);
1108
+ });
1109
+ return retVal;
1110
+ }, "de_JobRunAttempts");
1111
+ var de_JobRunAttemptSummary = /* @__PURE__ */ __name((output, context) => {
1112
+ return (0, import_smithy_client.take)(output, {
1113
+ applicationId: import_smithy_client.expectString,
1114
+ arn: import_smithy_client.expectString,
1115
+ attempt: import_smithy_client.expectInt32,
1116
+ createdAt: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))),
1117
+ createdBy: import_smithy_client.expectString,
1118
+ executionRole: import_smithy_client.expectString,
1119
+ id: import_smithy_client.expectString,
1120
+ jobCreatedAt: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))),
1121
+ mode: import_smithy_client.expectString,
1122
+ name: import_smithy_client.expectString,
1123
+ releaseLabel: import_smithy_client.expectString,
1124
+ state: import_smithy_client.expectString,
1125
+ stateDetails: import_smithy_client.expectString,
1126
+ type: import_smithy_client.expectString,
1127
+ updatedAt: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_)))
1128
+ });
1129
+ }, "de_JobRunAttemptSummary");
1052
1130
  var de_JobRuns = /* @__PURE__ */ __name((output, context) => {
1053
1131
  const retVal = (output || []).filter((e) => e != null).map((entry) => {
1054
1132
  return de_JobRunSummary(entry, context);
@@ -1059,10 +1137,14 @@ var de_JobRunSummary = /* @__PURE__ */ __name((output, context) => {
1059
1137
  return (0, import_smithy_client.take)(output, {
1060
1138
  applicationId: import_smithy_client.expectString,
1061
1139
  arn: import_smithy_client.expectString,
1140
+ attempt: import_smithy_client.expectInt32,
1141
+ attemptCreatedAt: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))),
1142
+ attemptUpdatedAt: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))),
1062
1143
  createdAt: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))),
1063
1144
  createdBy: import_smithy_client.expectString,
1064
1145
  executionRole: import_smithy_client.expectString,
1065
1146
  id: import_smithy_client.expectString,
1147
+ mode: import_smithy_client.expectString,
1066
1148
  name: import_smithy_client.expectString,
1067
1149
  releaseLabel: import_smithy_client.expectString,
1068
1150
  state: import_smithy_client.expectString,
@@ -1091,8 +1173,10 @@ var deserializeMetadata = /* @__PURE__ */ __name((output) => ({
1091
1173
  extendedRequestId: output.headers["x-amz-id-2"],
1092
1174
  cfId: output.headers["x-amz-cf-id"]
1093
1175
  }), "deserializeMetadata");
1176
+ var _a = "attempt";
1094
1177
  var _cAA = "createdAtAfter";
1095
1178
  var _cAB = "createdAtBefore";
1179
+ var _m = "mode";
1096
1180
  var _mR = "maxResults";
1097
1181
  var _nT = "nextToken";
1098
1182
  var _s = "states";
@@ -1213,6 +1297,23 @@ var _ListApplicationsCommand = class _ListApplicationsCommand extends import_smi
1213
1297
  __name(_ListApplicationsCommand, "ListApplicationsCommand");
1214
1298
  var ListApplicationsCommand = _ListApplicationsCommand;
1215
1299
 
1300
+ // src/commands/ListJobRunAttemptsCommand.ts
1301
+
1302
+
1303
+
1304
+
1305
+ var _ListJobRunAttemptsCommand = class _ListJobRunAttemptsCommand extends import_smithy_client.Command.classBuilder().ep({
1306
+ ...commonParams
1307
+ }).m(function(Command, cs, config, o) {
1308
+ return [
1309
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1310
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1311
+ ];
1312
+ }).s("AwsToledoWebService", "ListJobRunAttempts", {}).n("EMRServerlessClient", "ListJobRunAttemptsCommand").f(void 0, void 0).ser(se_ListJobRunAttemptsCommand).de(de_ListJobRunAttemptsCommand).build() {
1313
+ };
1314
+ __name(_ListJobRunAttemptsCommand, "ListJobRunAttemptsCommand");
1315
+ var ListJobRunAttemptsCommand = _ListJobRunAttemptsCommand;
1316
+
1216
1317
  // src/commands/ListJobRunsCommand.ts
1217
1318
 
1218
1319
 
@@ -1358,6 +1459,7 @@ var commands = {
1358
1459
  GetDashboardForJobRunCommand,
1359
1460
  GetJobRunCommand,
1360
1461
  ListApplicationsCommand,
1462
+ ListJobRunAttemptsCommand,
1361
1463
  ListJobRunsCommand,
1362
1464
  ListTagsForResourceCommand,
1363
1465
  StartApplicationCommand,
@@ -1377,6 +1479,10 @@ var EMRServerless = _EMRServerless;
1377
1479
 
1378
1480
  var paginateListApplications = (0, import_core.createPaginator)(EMRServerlessClient, ListApplicationsCommand, "nextToken", "nextToken", "maxResults");
1379
1481
 
1482
+ // src/pagination/ListJobRunAttemptsPaginator.ts
1483
+
1484
+ var paginateListJobRunAttempts = (0, import_core.createPaginator)(EMRServerlessClient, ListJobRunAttemptsCommand, "nextToken", "nextToken", "maxResults");
1485
+
1380
1486
  // src/pagination/ListJobRunsPaginator.ts
1381
1487
 
1382
1488
  var paginateListJobRuns = (0, import_core.createPaginator)(EMRServerlessClient, ListJobRunsCommand, "nextToken", "nextToken", "maxResults");
@@ -1395,6 +1501,7 @@ var paginateListJobRuns = (0, import_core.createPaginator)(EMRServerlessClient,
1395
1501
  GetDashboardForJobRunCommand,
1396
1502
  GetJobRunCommand,
1397
1503
  ListApplicationsCommand,
1504
+ ListJobRunAttemptsCommand,
1398
1505
  ListJobRunsCommand,
1399
1506
  ListTagsForResourceCommand,
1400
1507
  StartApplicationCommand,
@@ -1404,6 +1511,7 @@ var paginateListJobRuns = (0, import_core.createPaginator)(EMRServerlessClient,
1404
1511
  UntagResourceCommand,
1405
1512
  UpdateApplicationCommand,
1406
1513
  paginateListApplications,
1514
+ paginateListJobRunAttempts,
1407
1515
  paginateListJobRuns,
1408
1516
  Architecture,
1409
1517
  ApplicationState,
@@ -1413,6 +1521,7 @@ var paginateListJobRuns = (0, import_core.createPaginator)(EMRServerlessClient,
1413
1521
  ValidationException,
1414
1522
  ServiceQuotaExceededException,
1415
1523
  JobDriver,
1524
+ JobRunMode,
1416
1525
  JobRunState,
1417
1526
  HiveFilterSensitiveLog,
1418
1527
  SparkSubmitFilterSensitiveLog,
@@ -6,6 +6,7 @@ import { GetApplicationCommand, } from "./commands/GetApplicationCommand";
6
6
  import { GetDashboardForJobRunCommand, } from "./commands/GetDashboardForJobRunCommand";
7
7
  import { GetJobRunCommand } from "./commands/GetJobRunCommand";
8
8
  import { ListApplicationsCommand, } from "./commands/ListApplicationsCommand";
9
+ import { ListJobRunAttemptsCommand, } from "./commands/ListJobRunAttemptsCommand";
9
10
  import { ListJobRunsCommand } from "./commands/ListJobRunsCommand";
10
11
  import { ListTagsForResourceCommand, } from "./commands/ListTagsForResourceCommand";
11
12
  import { StartApplicationCommand, } from "./commands/StartApplicationCommand";
@@ -23,6 +24,7 @@ const commands = {
23
24
  GetDashboardForJobRunCommand,
24
25
  GetJobRunCommand,
25
26
  ListApplicationsCommand,
27
+ ListJobRunAttemptsCommand,
26
28
  ListJobRunsCommand,
27
29
  ListTagsForResourceCommand,
28
30
  StartApplicationCommand,
@@ -0,0 +1,24 @@
1
+ import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
+ import { getSerdePlugin } from "@smithy/middleware-serde";
3
+ import { Command as $Command } from "@smithy/smithy-client";
4
+ import { commonParams } from "../endpoint/EndpointParameters";
5
+ import { de_ListJobRunAttemptsCommand, se_ListJobRunAttemptsCommand } from "../protocols/Aws_restJson1";
6
+ export { $Command };
7
+ export class ListJobRunAttemptsCommand extends $Command
8
+ .classBuilder()
9
+ .ep({
10
+ ...commonParams,
11
+ })
12
+ .m(function (Command, cs, config, o) {
13
+ return [
14
+ getSerdePlugin(config, this.serialize, this.deserialize),
15
+ getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
16
+ ];
17
+ })
18
+ .s("AwsToledoWebService", "ListJobRunAttempts", {})
19
+ .n("EMRServerlessClient", "ListJobRunAttemptsCommand")
20
+ .f(void 0, void 0)
21
+ .ser(se_ListJobRunAttemptsCommand)
22
+ .de(de_ListJobRunAttemptsCommand)
23
+ .build() {
24
+ }
@@ -5,6 +5,7 @@ export * from "./GetApplicationCommand";
5
5
  export * from "./GetDashboardForJobRunCommand";
6
6
  export * from "./GetJobRunCommand";
7
7
  export * from "./ListApplicationsCommand";
8
+ export * from "./ListJobRunAttemptsCommand";
8
9
  export * from "./ListJobRunsCommand";
9
10
  export * from "./ListTagsForResourceCommand";
10
11
  export * from "./StartApplicationCommand";
@@ -83,6 +83,10 @@ export var JobDriver;
83
83
  return visitor._(value.$unknown[0], value.$unknown[1]);
84
84
  };
85
85
  })(JobDriver || (JobDriver = {}));
86
+ export const JobRunMode = {
87
+ BATCH: "BATCH",
88
+ STREAMING: "STREAMING",
89
+ };
86
90
  export const JobRunState = {
87
91
  CANCELLED: "CANCELLED",
88
92
  CANCELLING: "CANCELLING",
@@ -0,0 +1,4 @@
1
+ import { createPaginator } from "@smithy/core";
2
+ import { ListJobRunAttemptsCommand, } from "../commands/ListJobRunAttemptsCommand";
3
+ import { EMRServerlessClient } from "../EMRServerlessClient";
4
+ export const paginateListJobRunAttempts = createPaginator(EMRServerlessClient, ListJobRunAttemptsCommand, "nextToken", "nextToken", "maxResults");
@@ -1,3 +1,4 @@
1
1
  export * from "./Interfaces";
2
2
  export * from "./ListApplicationsPaginator";
3
+ export * from "./ListJobRunAttemptsPaginator";
3
4
  export * from "./ListJobRunsPaginator";
@@ -1,6 +1,6 @@
1
1
  import { awsExpectUnion as __expectUnion, loadRestJsonErrorCode, parseJsonBody as parseBody, parseJsonErrorBody as parseErrorBody, } from "@aws-sdk/core";
2
2
  import { requestBuilder as rb } from "@smithy/core";
3
- import { _json, collectBody, decorateServiceException as __decorateServiceException, expectInt32 as __expectInt32, expectLong as __expectLong, expectNonNull as __expectNonNull, expectNumber as __expectNumber, expectObject as __expectObject, expectString as __expectString, limitedParseDouble as __limitedParseDouble, map, parseEpochTimestamp as __parseEpochTimestamp, take, withBaseException, } from "@smithy/smithy-client";
3
+ import { _json, collectBody, decorateServiceException as __decorateServiceException, expectInt32 as __expectInt32, expectLong as __expectLong, expectNonNull as __expectNonNull, expectNumber as __expectNumber, expectObject as __expectObject, expectString as __expectString, limitedParseDouble as __limitedParseDouble, map, parseEpochTimestamp as __parseEpochTimestamp, serializeDateTime as __serializeDateTime, take, withBaseException, } from "@smithy/smithy-client";
4
4
  import { v4 as generateIdempotencyToken } from "uuid";
5
5
  import { EMRServerlessServiceException as __BaseException } from "../models/EMRServerlessServiceException";
6
6
  import { ConflictException, InternalServerException, ResourceNotFoundException, ServiceQuotaExceededException, ValidationException, } from "../models/models_0";
@@ -28,6 +28,7 @@ export const se_CreateApplicationCommand = async (input, context) => {
28
28
  clientToken: [true, (_) => _ ?? generateIdempotencyToken()],
29
29
  imageConfiguration: (_) => _json(_),
30
30
  initialCapacity: (_) => _json(_),
31
+ interactiveConfiguration: (_) => _json(_),
31
32
  maximumCapacity: (_) => _json(_),
32
33
  monitoringConfiguration: (_) => _json(_),
33
34
  name: [],
@@ -65,8 +66,11 @@ export const se_GetDashboardForJobRunCommand = async (input, context) => {
65
66
  b.bp("/applications/{applicationId}/jobruns/{jobRunId}/dashboard");
66
67
  b.p("applicationId", () => input.applicationId, "{applicationId}", false);
67
68
  b.p("jobRunId", () => input.jobRunId, "{jobRunId}", false);
69
+ const query = map({
70
+ [_a]: [() => input.attempt !== void 0, () => input[_a].toString()],
71
+ });
68
72
  let body;
69
- b.m("GET").h(headers).b(body);
73
+ b.m("GET").h(headers).q(query).b(body);
70
74
  return b.build();
71
75
  };
72
76
  export const se_GetJobRunCommand = async (input, context) => {
@@ -75,8 +79,11 @@ export const se_GetJobRunCommand = async (input, context) => {
75
79
  b.bp("/applications/{applicationId}/jobruns/{jobRunId}");
76
80
  b.p("applicationId", () => input.applicationId, "{applicationId}", false);
77
81
  b.p("jobRunId", () => input.jobRunId, "{jobRunId}", false);
82
+ const query = map({
83
+ [_a]: [() => input.attempt !== void 0, () => input[_a].toString()],
84
+ });
78
85
  let body;
79
- b.m("GET").h(headers).b(body);
86
+ b.m("GET").h(headers).q(query).b(body);
80
87
  return b.build();
81
88
  };
82
89
  export const se_ListApplicationsCommand = async (input, context) => {
@@ -92,6 +99,20 @@ export const se_ListApplicationsCommand = async (input, context) => {
92
99
  b.m("GET").h(headers).q(query).b(body);
93
100
  return b.build();
94
101
  };
102
+ export const se_ListJobRunAttemptsCommand = async (input, context) => {
103
+ const b = rb(input, context);
104
+ const headers = {};
105
+ b.bp("/applications/{applicationId}/jobruns/{jobRunId}/attempts");
106
+ b.p("applicationId", () => input.applicationId, "{applicationId}", false);
107
+ b.p("jobRunId", () => input.jobRunId, "{jobRunId}", false);
108
+ const query = map({
109
+ [_nT]: [, input[_nT]],
110
+ [_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
111
+ });
112
+ let body;
113
+ b.m("GET").h(headers).q(query).b(body);
114
+ return b.build();
115
+ };
95
116
  export const se_ListJobRunsCommand = async (input, context) => {
96
117
  const b = rb(input, context);
97
118
  const headers = {};
@@ -100,9 +121,10 @@ export const se_ListJobRunsCommand = async (input, context) => {
100
121
  const query = map({
101
122
  [_nT]: [, input[_nT]],
102
123
  [_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
103
- [_cAA]: [() => input.createdAtAfter !== void 0, () => (input[_cAA].toISOString().split(".")[0] + "Z").toString()],
104
- [_cAB]: [() => input.createdAtBefore !== void 0, () => (input[_cAB].toISOString().split(".")[0] + "Z").toString()],
124
+ [_cAA]: [() => input.createdAtAfter !== void 0, () => __serializeDateTime(input[_cAA]).toString()],
125
+ [_cAB]: [() => input.createdAtBefore !== void 0, () => __serializeDateTime(input[_cAB]).toString()],
105
126
  [_s]: [() => input.states !== void 0, () => (input[_s] || []).map((_entry) => _entry)],
127
+ [_m]: [, input[_m]],
106
128
  });
107
129
  let body;
108
130
  b.m("GET").h(headers).q(query).b(body);
@@ -140,7 +162,9 @@ export const se_StartJobRunCommand = async (input, context) => {
140
162
  executionRoleArn: [],
141
163
  executionTimeoutMinutes: [],
142
164
  jobDriver: (_) => _json(_),
165
+ mode: [],
143
166
  name: [],
167
+ retryPolicy: (_) => _json(_),
144
168
  tags: (_) => _json(_),
145
169
  }));
146
170
  b.m("POST").h(headers).b(body);
@@ -199,6 +223,7 @@ export const se_UpdateApplicationCommand = async (input, context) => {
199
223
  clientToken: [true, (_) => _ ?? generateIdempotencyToken()],
200
224
  imageConfiguration: (_) => _json(_),
201
225
  initialCapacity: (_) => _json(_),
226
+ interactiveConfiguration: (_) => _json(_),
202
227
  maximumCapacity: (_) => _json(_),
203
228
  monitoringConfiguration: (_) => _json(_),
204
229
  networkConfiguration: (_) => _json(_),
@@ -307,6 +332,21 @@ export const de_ListApplicationsCommand = async (output, context) => {
307
332
  Object.assign(contents, doc);
308
333
  return contents;
309
334
  };
335
+ export const de_ListJobRunAttemptsCommand = async (output, context) => {
336
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
337
+ return de_CommandError(output, context);
338
+ }
339
+ const contents = map({
340
+ $metadata: deserializeMetadata(output),
341
+ });
342
+ const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
343
+ const doc = take(data, {
344
+ jobRunAttempts: (_) => de_JobRunAttempts(_, context),
345
+ nextToken: __expectString,
346
+ });
347
+ Object.assign(contents, doc);
348
+ return contents;
349
+ };
310
350
  export const de_ListJobRunsCommand = async (output, context) => {
311
351
  if (output.statusCode !== 200 && output.statusCode >= 300) {
312
352
  return de_CommandError(output, context);
@@ -533,6 +573,7 @@ const de_Application = (output, context) => {
533
573
  createdAt: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
534
574
  imageConfiguration: _json,
535
575
  initialCapacity: _json,
576
+ interactiveConfiguration: _json,
536
577
  maximumCapacity: _json,
537
578
  monitoringConfiguration: _json,
538
579
  name: __expectString,
@@ -594,6 +635,9 @@ const de_JobRun = (output, context) => {
594
635
  return take(output, {
595
636
  applicationId: __expectString,
596
637
  arn: __expectString,
638
+ attempt: __expectInt32,
639
+ attemptCreatedAt: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
640
+ attemptUpdatedAt: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
597
641
  billedResourceUtilization: (_) => de_ResourceUtilization(_, context),
598
642
  configurationOverrides: (_) => de_ConfigurationOverrides(_, context),
599
643
  createdAt: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
@@ -602,9 +646,11 @@ const de_JobRun = (output, context) => {
602
646
  executionTimeoutMinutes: __expectLong,
603
647
  jobDriver: (_) => _json(__expectUnion(_)),
604
648
  jobRunId: __expectString,
649
+ mode: __expectString,
605
650
  name: __expectString,
606
651
  networkConfiguration: _json,
607
652
  releaseLabel: __expectString,
653
+ retryPolicy: _json,
608
654
  state: __expectString,
609
655
  stateDetails: __expectString,
610
656
  tags: _json,
@@ -613,6 +659,33 @@ const de_JobRun = (output, context) => {
613
659
  updatedAt: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
614
660
  });
615
661
  };
662
+ const de_JobRunAttempts = (output, context) => {
663
+ const retVal = (output || [])
664
+ .filter((e) => e != null)
665
+ .map((entry) => {
666
+ return de_JobRunAttemptSummary(entry, context);
667
+ });
668
+ return retVal;
669
+ };
670
+ const de_JobRunAttemptSummary = (output, context) => {
671
+ return take(output, {
672
+ applicationId: __expectString,
673
+ arn: __expectString,
674
+ attempt: __expectInt32,
675
+ createdAt: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
676
+ createdBy: __expectString,
677
+ executionRole: __expectString,
678
+ id: __expectString,
679
+ jobCreatedAt: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
680
+ mode: __expectString,
681
+ name: __expectString,
682
+ releaseLabel: __expectString,
683
+ state: __expectString,
684
+ stateDetails: __expectString,
685
+ type: __expectString,
686
+ updatedAt: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
687
+ });
688
+ };
616
689
  const de_JobRuns = (output, context) => {
617
690
  const retVal = (output || [])
618
691
  .filter((e) => e != null)
@@ -625,10 +698,14 @@ const de_JobRunSummary = (output, context) => {
625
698
  return take(output, {
626
699
  applicationId: __expectString,
627
700
  arn: __expectString,
701
+ attempt: __expectInt32,
702
+ attemptCreatedAt: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
703
+ attemptUpdatedAt: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
628
704
  createdAt: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
629
705
  createdBy: __expectString,
630
706
  executionRole: __expectString,
631
707
  id: __expectString,
708
+ mode: __expectString,
632
709
  name: __expectString,
633
710
  releaseLabel: __expectString,
634
711
  state: __expectString,
@@ -663,8 +740,10 @@ const isSerializableHeaderValue = (value) => value !== undefined &&
663
740
  value !== "" &&
664
741
  (!Object.getOwnPropertyNames(value).includes("length") || value.length != 0) &&
665
742
  (!Object.getOwnPropertyNames(value).includes("size") || value.size != 0);
743
+ const _a = "attempt";
666
744
  const _cAA = "createdAtAfter";
667
745
  const _cAB = "createdAtBefore";
746
+ const _m = "mode";
668
747
  const _mR = "maxResults";
669
748
  const _nT = "nextToken";
670
749
  const _s = "states";
@@ -6,6 +6,7 @@ import { GetApplicationCommandInput, GetApplicationCommandOutput } from "./comma
6
6
  import { GetDashboardForJobRunCommandInput, GetDashboardForJobRunCommandOutput } from "./commands/GetDashboardForJobRunCommand";
7
7
  import { GetJobRunCommandInput, GetJobRunCommandOutput } from "./commands/GetJobRunCommand";
8
8
  import { ListApplicationsCommandInput, ListApplicationsCommandOutput } from "./commands/ListApplicationsCommand";
9
+ import { ListJobRunAttemptsCommandInput, ListJobRunAttemptsCommandOutput } from "./commands/ListJobRunAttemptsCommand";
9
10
  import { ListJobRunsCommandInput, ListJobRunsCommandOutput } from "./commands/ListJobRunsCommand";
10
11
  import { ListTagsForResourceCommandInput, ListTagsForResourceCommandOutput } from "./commands/ListTagsForResourceCommand";
11
12
  import { StartApplicationCommandInput, StartApplicationCommandOutput } from "./commands/StartApplicationCommand";
@@ -59,6 +60,12 @@ export interface EMRServerless {
59
60
  listApplications(args: ListApplicationsCommandInput, options?: __HttpHandlerOptions): Promise<ListApplicationsCommandOutput>;
60
61
  listApplications(args: ListApplicationsCommandInput, cb: (err: any, data?: ListApplicationsCommandOutput) => void): void;
61
62
  listApplications(args: ListApplicationsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListApplicationsCommandOutput) => void): void;
63
+ /**
64
+ * @see {@link ListJobRunAttemptsCommand}
65
+ */
66
+ listJobRunAttempts(args: ListJobRunAttemptsCommandInput, options?: __HttpHandlerOptions): Promise<ListJobRunAttemptsCommandOutput>;
67
+ listJobRunAttempts(args: ListJobRunAttemptsCommandInput, cb: (err: any, data?: ListJobRunAttemptsCommandOutput) => void): void;
68
+ listJobRunAttempts(args: ListJobRunAttemptsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListJobRunAttemptsCommandOutput) => void): void;
62
69
  /**
63
70
  * @see {@link ListJobRunsCommand}
64
71
  */
@@ -14,6 +14,7 @@ import { GetApplicationCommandInput, GetApplicationCommandOutput } from "./comma
14
14
  import { GetDashboardForJobRunCommandInput, GetDashboardForJobRunCommandOutput } from "./commands/GetDashboardForJobRunCommand";
15
15
  import { GetJobRunCommandInput, GetJobRunCommandOutput } from "./commands/GetJobRunCommand";
16
16
  import { ListApplicationsCommandInput, ListApplicationsCommandOutput } from "./commands/ListApplicationsCommand";
17
+ import { ListJobRunAttemptsCommandInput, ListJobRunAttemptsCommandOutput } from "./commands/ListJobRunAttemptsCommand";
17
18
  import { ListJobRunsCommandInput, ListJobRunsCommandOutput } from "./commands/ListJobRunsCommand";
18
19
  import { ListTagsForResourceCommandInput, ListTagsForResourceCommandOutput } from "./commands/ListTagsForResourceCommand";
19
20
  import { StartApplicationCommandInput, StartApplicationCommandOutput } from "./commands/StartApplicationCommand";
@@ -28,11 +29,11 @@ export { __Client };
28
29
  /**
29
30
  * @public
30
31
  */
31
- export type ServiceInputTypes = CancelJobRunCommandInput | CreateApplicationCommandInput | DeleteApplicationCommandInput | GetApplicationCommandInput | GetDashboardForJobRunCommandInput | GetJobRunCommandInput | ListApplicationsCommandInput | ListJobRunsCommandInput | ListTagsForResourceCommandInput | StartApplicationCommandInput | StartJobRunCommandInput | StopApplicationCommandInput | TagResourceCommandInput | UntagResourceCommandInput | UpdateApplicationCommandInput;
32
+ export type ServiceInputTypes = CancelJobRunCommandInput | CreateApplicationCommandInput | DeleteApplicationCommandInput | GetApplicationCommandInput | GetDashboardForJobRunCommandInput | GetJobRunCommandInput | ListApplicationsCommandInput | ListJobRunAttemptsCommandInput | ListJobRunsCommandInput | ListTagsForResourceCommandInput | StartApplicationCommandInput | StartJobRunCommandInput | StopApplicationCommandInput | TagResourceCommandInput | UntagResourceCommandInput | UpdateApplicationCommandInput;
32
33
  /**
33
34
  * @public
34
35
  */
35
- export type ServiceOutputTypes = CancelJobRunCommandOutput | CreateApplicationCommandOutput | DeleteApplicationCommandOutput | GetApplicationCommandOutput | GetDashboardForJobRunCommandOutput | GetJobRunCommandOutput | ListApplicationsCommandOutput | ListJobRunsCommandOutput | ListTagsForResourceCommandOutput | StartApplicationCommandOutput | StartJobRunCommandOutput | StopApplicationCommandOutput | TagResourceCommandOutput | UntagResourceCommandOutput | UpdateApplicationCommandOutput;
36
+ export type ServiceOutputTypes = CancelJobRunCommandOutput | CreateApplicationCommandOutput | DeleteApplicationCommandOutput | GetApplicationCommandOutput | GetDashboardForJobRunCommandOutput | GetJobRunCommandOutput | ListApplicationsCommandOutput | ListJobRunAttemptsCommandOutput | ListJobRunsCommandOutput | ListTagsForResourceCommandOutput | StartApplicationCommandOutput | StartJobRunCommandOutput | StopApplicationCommandOutput | TagResourceCommandOutput | UntagResourceCommandOutput | UpdateApplicationCommandOutput;
36
37
  /**
37
38
  * @public
38
39
  */
@@ -124,6 +124,10 @@ declare const CreateApplicationCommand_base: {
124
124
  * remoteWriteUrl: "STRING_VALUE",
125
125
  * },
126
126
  * },
127
+ * interactiveConfiguration: { // InteractiveConfiguration
128
+ * studioEnabled: true || false,
129
+ * livyEndpointEnabled: true || false,
130
+ * },
127
131
  * };
128
132
  * const command = new CreateApplicationCommand(input);
129
133
  * const response = await client.send(command);
@@ -137,6 +137,10 @@ declare const GetApplicationCommand_base: {
137
137
  * // remoteWriteUrl: "STRING_VALUE",
138
138
  * // },
139
139
  * // },
140
+ * // interactiveConfiguration: { // InteractiveConfiguration
141
+ * // studioEnabled: true || false,
142
+ * // livyEndpointEnabled: true || false,
143
+ * // },
140
144
  * // },
141
145
  * // };
142
146
  *