@aws-sdk/client-emr-serverless 3.179.0 → 3.181.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.
@@ -107,6 +107,30 @@ export var serializeAws_restJson1GetApplicationCommand = function (input, contex
107
107
  }
108
108
  });
109
109
  }); };
110
+ export var serializeAws_restJson1GetDashboardForJobRunCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
111
+ var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
112
+ return __generator(this, function (_c) {
113
+ switch (_c.label) {
114
+ case 0: return [4, context.endpoint()];
115
+ case 1:
116
+ _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
117
+ headers = {};
118
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
119
+ "/applications/{applicationId}/jobruns/{jobRunId}/dashboard";
120
+ resolvedPath = __resolvedPath(resolvedPath, input, "applicationId", function () { return input.applicationId; }, "{applicationId}", false);
121
+ resolvedPath = __resolvedPath(resolvedPath, input, "jobRunId", function () { return input.jobRunId; }, "{jobRunId}", false);
122
+ return [2, new __HttpRequest({
123
+ protocol: protocol,
124
+ hostname: hostname,
125
+ port: port,
126
+ method: "GET",
127
+ headers: headers,
128
+ path: resolvedPath,
129
+ body: body,
130
+ })];
131
+ }
132
+ });
133
+ }); };
110
134
  export var serializeAws_restJson1GetJobRunCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
111
135
  var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
112
136
  return __generator(this, function (_c) {
@@ -143,10 +167,7 @@ export var serializeAws_restJson1ListApplicationsCommand = function (input, cont
143
167
  query = map({
144
168
  nextToken: [, input.nextToken],
145
169
  maxResults: [function () { return input.maxResults !== void 0; }, function () { return input.maxResults.toString(); }],
146
- states: [
147
- function () { return input.states !== void 0; },
148
- function () { return (Array.from(input.states.values()) || []).map(function (_entry) { return _entry; }); },
149
- ],
170
+ states: [function () { return input.states !== void 0; }, function () { return (input.states || []).map(function (_entry) { return _entry; }); }],
150
171
  });
151
172
  return [2, new __HttpRequest({
152
173
  protocol: protocol,
@@ -182,10 +203,7 @@ export var serializeAws_restJson1ListJobRunsCommand = function (input, context)
182
203
  function () { return input.createdAtBefore !== void 0; },
183
204
  function () { return (input.createdAtBefore.toISOString().split(".")[0] + "Z").toString(); },
184
205
  ],
185
- states: [
186
- function () { return input.states !== void 0; },
187
- function () { return (Array.from(input.states.values()) || []).map(function (_entry) { return _entry; }); },
188
- ],
206
+ states: [function () { return input.states !== void 0; }, function () { return (input.states || []).map(function (_entry) { return _entry; }); }],
189
207
  });
190
208
  return [2, new __HttpRequest({
191
209
  protocol: protocol,
@@ -415,7 +433,7 @@ var deserializeAws_restJson1CancelJobRunCommandError = function (output, context
415
433
  case 0:
416
434
  _a = [__assign({}, output)];
417
435
  _c = {};
418
- return [4, parseBody(output.body, context)];
436
+ return [4, parseErrorBody(output.body, context)];
419
437
  case 1:
420
438
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
421
439
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
@@ -485,7 +503,7 @@ var deserializeAws_restJson1CreateApplicationCommandError = function (output, co
485
503
  case 0:
486
504
  _a = [__assign({}, output)];
487
505
  _c = {};
488
- return [4, parseBody(output.body, context)];
506
+ return [4, parseErrorBody(output.body, context)];
489
507
  case 1:
490
508
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
491
509
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
@@ -544,7 +562,7 @@ var deserializeAws_restJson1DeleteApplicationCommandError = function (output, co
544
562
  case 0:
545
563
  _a = [__assign({}, output)];
546
564
  _c = {};
547
- return [4, parseBody(output.body, context)];
565
+ return [4, parseErrorBody(output.body, context)];
548
566
  case 1:
549
567
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
550
568
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
@@ -608,7 +626,71 @@ var deserializeAws_restJson1GetApplicationCommandError = function (output, conte
608
626
  case 0:
609
627
  _a = [__assign({}, output)];
610
628
  _c = {};
629
+ return [4, parseErrorBody(output.body, context)];
630
+ case 1:
631
+ parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
632
+ errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
633
+ _b = errorCode;
634
+ switch (_b) {
635
+ case "InternalServerException": return [3, 2];
636
+ case "com.amazonaws.emrserverless#InternalServerException": return [3, 2];
637
+ case "ResourceNotFoundException": return [3, 4];
638
+ case "com.amazonaws.emrserverless#ResourceNotFoundException": return [3, 4];
639
+ case "ValidationException": return [3, 6];
640
+ case "com.amazonaws.emrserverless#ValidationException": return [3, 6];
641
+ }
642
+ return [3, 8];
643
+ case 2: return [4, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
644
+ case 3: throw _d.sent();
645
+ case 4: return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
646
+ case 5: throw _d.sent();
647
+ case 6: return [4, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
648
+ case 7: throw _d.sent();
649
+ case 8:
650
+ parsedBody = parsedOutput.body;
651
+ throwDefaultError({
652
+ output: output,
653
+ parsedBody: parsedBody,
654
+ exceptionCtor: __BaseException,
655
+ errorCode: errorCode,
656
+ });
657
+ _d.label = 9;
658
+ case 9: return [2];
659
+ }
660
+ });
661
+ }); };
662
+ export var deserializeAws_restJson1GetDashboardForJobRunCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
663
+ var contents, data, _a, _b;
664
+ return __generator(this, function (_c) {
665
+ switch (_c.label) {
666
+ case 0:
667
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
668
+ return [2, deserializeAws_restJson1GetDashboardForJobRunCommandError(output, context)];
669
+ }
670
+ contents = map({
671
+ $metadata: deserializeMetadata(output),
672
+ });
673
+ _a = __expectNonNull;
674
+ _b = __expectObject;
611
675
  return [4, parseBody(output.body, context)];
676
+ case 1:
677
+ data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
678
+ if (data.url != null) {
679
+ contents.url = __expectString(data.url);
680
+ }
681
+ return [2, contents];
682
+ }
683
+ });
684
+ }); };
685
+ var deserializeAws_restJson1GetDashboardForJobRunCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
686
+ var parsedOutput, _a, errorCode, _b, parsedBody;
687
+ var _c;
688
+ return __generator(this, function (_d) {
689
+ switch (_d.label) {
690
+ case 0:
691
+ _a = [__assign({}, output)];
692
+ _c = {};
693
+ return [4, parseErrorBody(output.body, context)];
612
694
  case 1:
613
695
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
614
696
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
@@ -672,7 +754,7 @@ var deserializeAws_restJson1GetJobRunCommandError = function (output, context) {
672
754
  case 0:
673
755
  _a = [__assign({}, output)];
674
756
  _c = {};
675
- return [4, parseBody(output.body, context)];
757
+ return [4, parseErrorBody(output.body, context)];
676
758
  case 1:
677
759
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
678
760
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
@@ -739,7 +821,7 @@ var deserializeAws_restJson1ListApplicationsCommandError = function (output, con
739
821
  case 0:
740
822
  _a = [__assign({}, output)];
741
823
  _c = {};
742
- return [4, parseBody(output.body, context)];
824
+ return [4, parseErrorBody(output.body, context)];
743
825
  case 1:
744
826
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
745
827
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
@@ -802,7 +884,7 @@ var deserializeAws_restJson1ListJobRunsCommandError = function (output, context)
802
884
  case 0:
803
885
  _a = [__assign({}, output)];
804
886
  _c = {};
805
- return [4, parseBody(output.body, context)];
887
+ return [4, parseErrorBody(output.body, context)];
806
888
  case 1:
807
889
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
808
890
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
@@ -862,7 +944,7 @@ var deserializeAws_restJson1ListTagsForResourceCommandError = function (output,
862
944
  case 0:
863
945
  _a = [__assign({}, output)];
864
946
  _c = {};
865
- return [4, parseBody(output.body, context)];
947
+ return [4, parseErrorBody(output.body, context)];
866
948
  case 1:
867
949
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
868
950
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
@@ -921,7 +1003,7 @@ var deserializeAws_restJson1StartApplicationCommandError = function (output, con
921
1003
  case 0:
922
1004
  _a = [__assign({}, output)];
923
1005
  _c = {};
924
- return [4, parseBody(output.body, context)];
1006
+ return [4, parseErrorBody(output.body, context)];
925
1007
  case 1:
926
1008
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
927
1009
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
@@ -995,7 +1077,7 @@ var deserializeAws_restJson1StartJobRunCommandError = function (output, context)
995
1077
  case 0:
996
1078
  _a = [__assign({}, output)];
997
1079
  _c = {};
998
- return [4, parseBody(output.body, context)];
1080
+ return [4, parseErrorBody(output.body, context)];
999
1081
  case 1:
1000
1082
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
1001
1083
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
@@ -1058,7 +1140,7 @@ var deserializeAws_restJson1StopApplicationCommandError = function (output, cont
1058
1140
  case 0:
1059
1141
  _a = [__assign({}, output)];
1060
1142
  _c = {};
1061
- return [4, parseBody(output.body, context)];
1143
+ return [4, parseErrorBody(output.body, context)];
1062
1144
  case 1:
1063
1145
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
1064
1146
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
@@ -1117,7 +1199,7 @@ var deserializeAws_restJson1TagResourceCommandError = function (output, context)
1117
1199
  case 0:
1118
1200
  _a = [__assign({}, output)];
1119
1201
  _c = {};
1120
- return [4, parseBody(output.body, context)];
1202
+ return [4, parseErrorBody(output.body, context)];
1121
1203
  case 1:
1122
1204
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
1123
1205
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
@@ -1176,7 +1258,7 @@ var deserializeAws_restJson1UntagResourceCommandError = function (output, contex
1176
1258
  case 0:
1177
1259
  _a = [__assign({}, output)];
1178
1260
  _c = {};
1179
- return [4, parseBody(output.body, context)];
1261
+ return [4, parseErrorBody(output.body, context)];
1180
1262
  case 1:
1181
1263
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
1182
1264
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
@@ -1240,7 +1322,7 @@ var deserializeAws_restJson1UpdateApplicationCommandError = function (output, co
1240
1322
  case 0:
1241
1323
  _a = [__assign({}, output)];
1242
1324
  _c = {};
1243
- return [4, parseBody(output.body, context)];
1325
+ return [4, parseErrorBody(output.body, context)];
1244
1326
  case 1:
1245
1327
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
1246
1328
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
@@ -1793,6 +1875,19 @@ var parseBody = function (streamBody, context) {
1793
1875
  return {};
1794
1876
  });
1795
1877
  };
1878
+ var parseErrorBody = function (errorBody, context) { return __awaiter(void 0, void 0, void 0, function () {
1879
+ var value;
1880
+ var _a;
1881
+ return __generator(this, function (_b) {
1882
+ switch (_b.label) {
1883
+ case 0: return [4, parseBody(errorBody, context)];
1884
+ case 1:
1885
+ value = _b.sent();
1886
+ value.message = (_a = value.message) !== null && _a !== void 0 ? _a : value.Message;
1887
+ return [2, value];
1888
+ }
1889
+ });
1890
+ }); };
1796
1891
  var loadRestJsonErrorCode = function (output, data) {
1797
1892
  var findKey = function (object, key) { return Object.keys(object).find(function (k) { return k.toLowerCase() === key.toLowerCase(); }); };
1798
1893
  var sanitizeErrorCode = function (rawValue) {
@@ -3,6 +3,7 @@ import { CancelJobRunCommandInput, CancelJobRunCommandOutput } from "./commands/
3
3
  import { CreateApplicationCommandInput, CreateApplicationCommandOutput } from "./commands/CreateApplicationCommand";
4
4
  import { DeleteApplicationCommandInput, DeleteApplicationCommandOutput } from "./commands/DeleteApplicationCommand";
5
5
  import { GetApplicationCommandInput, GetApplicationCommandOutput } from "./commands/GetApplicationCommand";
6
+ import { GetDashboardForJobRunCommandInput, GetDashboardForJobRunCommandOutput } from "./commands/GetDashboardForJobRunCommand";
6
7
  import { GetJobRunCommandInput, GetJobRunCommandOutput } from "./commands/GetJobRunCommand";
7
8
  import { ListApplicationsCommandInput, ListApplicationsCommandOutput } from "./commands/ListApplicationsCommand";
8
9
  import { ListJobRunsCommandInput, ListJobRunsCommandOutput } from "./commands/ListJobRunsCommand";
@@ -64,6 +65,12 @@ export declare class EMRServerless extends EMRServerlessClient {
64
65
  getApplication(args: GetApplicationCommandInput, options?: __HttpHandlerOptions): Promise<GetApplicationCommandOutput>;
65
66
  getApplication(args: GetApplicationCommandInput, cb: (err: any, data?: GetApplicationCommandOutput) => void): void;
66
67
  getApplication(args: GetApplicationCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetApplicationCommandOutput) => void): void;
68
+ /**
69
+ * <p>Returns a URL to access the job run dashboard.</p>
70
+ */
71
+ getDashboardForJobRun(args: GetDashboardForJobRunCommandInput, options?: __HttpHandlerOptions): Promise<GetDashboardForJobRunCommandOutput>;
72
+ getDashboardForJobRun(args: GetDashboardForJobRunCommandInput, cb: (err: any, data?: GetDashboardForJobRunCommandOutput) => void): void;
73
+ getDashboardForJobRun(args: GetDashboardForJobRunCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetDashboardForJobRunCommandOutput) => void): void;
67
74
  /**
68
75
  * <p>Displays detailed information about a job run.</p>
69
76
  */
@@ -10,6 +10,7 @@ import { CancelJobRunCommandInput, CancelJobRunCommandOutput } from "./commands/
10
10
  import { CreateApplicationCommandInput, CreateApplicationCommandOutput } from "./commands/CreateApplicationCommand";
11
11
  import { DeleteApplicationCommandInput, DeleteApplicationCommandOutput } from "./commands/DeleteApplicationCommand";
12
12
  import { GetApplicationCommandInput, GetApplicationCommandOutput } from "./commands/GetApplicationCommand";
13
+ import { GetDashboardForJobRunCommandInput, GetDashboardForJobRunCommandOutput } from "./commands/GetDashboardForJobRunCommand";
13
14
  import { GetJobRunCommandInput, GetJobRunCommandOutput } from "./commands/GetJobRunCommand";
14
15
  import { ListApplicationsCommandInput, ListApplicationsCommandOutput } from "./commands/ListApplicationsCommand";
15
16
  import { ListJobRunsCommandInput, ListJobRunsCommandOutput } from "./commands/ListJobRunsCommand";
@@ -20,8 +21,8 @@ import { StopApplicationCommandInput, StopApplicationCommandOutput } from "./com
20
21
  import { TagResourceCommandInput, TagResourceCommandOutput } from "./commands/TagResourceCommand";
21
22
  import { UntagResourceCommandInput, UntagResourceCommandOutput } from "./commands/UntagResourceCommand";
22
23
  import { UpdateApplicationCommandInput, UpdateApplicationCommandOutput } from "./commands/UpdateApplicationCommand";
23
- export declare type ServiceInputTypes = CancelJobRunCommandInput | CreateApplicationCommandInput | DeleteApplicationCommandInput | GetApplicationCommandInput | GetJobRunCommandInput | ListApplicationsCommandInput | ListJobRunsCommandInput | ListTagsForResourceCommandInput | StartApplicationCommandInput | StartJobRunCommandInput | StopApplicationCommandInput | TagResourceCommandInput | UntagResourceCommandInput | UpdateApplicationCommandInput;
24
- export declare type ServiceOutputTypes = CancelJobRunCommandOutput | CreateApplicationCommandOutput | DeleteApplicationCommandOutput | GetApplicationCommandOutput | GetJobRunCommandOutput | ListApplicationsCommandOutput | ListJobRunsCommandOutput | ListTagsForResourceCommandOutput | StartApplicationCommandOutput | StartJobRunCommandOutput | StopApplicationCommandOutput | TagResourceCommandOutput | UntagResourceCommandOutput | UpdateApplicationCommandOutput;
24
+ export declare type ServiceInputTypes = CancelJobRunCommandInput | CreateApplicationCommandInput | DeleteApplicationCommandInput | GetApplicationCommandInput | GetDashboardForJobRunCommandInput | GetJobRunCommandInput | ListApplicationsCommandInput | ListJobRunsCommandInput | ListTagsForResourceCommandInput | StartApplicationCommandInput | StartJobRunCommandInput | StopApplicationCommandInput | TagResourceCommandInput | UntagResourceCommandInput | UpdateApplicationCommandInput;
25
+ export declare type ServiceOutputTypes = CancelJobRunCommandOutput | CreateApplicationCommandOutput | DeleteApplicationCommandOutput | GetApplicationCommandOutput | GetDashboardForJobRunCommandOutput | GetJobRunCommandOutput | ListApplicationsCommandOutput | ListJobRunsCommandOutput | ListTagsForResourceCommandOutput | StartApplicationCommandOutput | StartJobRunCommandOutput | StopApplicationCommandOutput | TagResourceCommandOutput | UntagResourceCommandOutput | UpdateApplicationCommandOutput;
25
26
  export interface ClientDefaults extends Partial<__SmithyResolvedConfiguration<__HttpHandlerOptions>> {
26
27
  /**
27
28
  * The HTTP handler to use. Fetch in browser and Https in Nodejs.
@@ -0,0 +1,35 @@
1
+ import { Command as $Command } from "@aws-sdk/smithy-client";
2
+ import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@aws-sdk/types";
3
+ import { EMRServerlessClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../EMRServerlessClient";
4
+ import { GetDashboardForJobRunRequest, GetDashboardForJobRunResponse } from "../models/models_0";
5
+ export interface GetDashboardForJobRunCommandInput extends GetDashboardForJobRunRequest {
6
+ }
7
+ export interface GetDashboardForJobRunCommandOutput extends GetDashboardForJobRunResponse, __MetadataBearer {
8
+ }
9
+ /**
10
+ * <p>Returns a URL to access the job run dashboard.</p>
11
+ * @example
12
+ * Use a bare-bones client and the command you need to make an API call.
13
+ * ```javascript
14
+ * import { EMRServerlessClient, GetDashboardForJobRunCommand } from "@aws-sdk/client-emr-serverless"; // ES Modules import
15
+ * // const { EMRServerlessClient, GetDashboardForJobRunCommand } = require("@aws-sdk/client-emr-serverless"); // CommonJS import
16
+ * const client = new EMRServerlessClient(config);
17
+ * const command = new GetDashboardForJobRunCommand(input);
18
+ * const response = await client.send(command);
19
+ * ```
20
+ *
21
+ * @see {@link GetDashboardForJobRunCommandInput} for command's `input` shape.
22
+ * @see {@link GetDashboardForJobRunCommandOutput} for command's `response` shape.
23
+ * @see {@link EMRServerlessClientResolvedConfig | config} for EMRServerlessClient's `config` shape.
24
+ *
25
+ */
26
+ export declare class GetDashboardForJobRunCommand extends $Command<GetDashboardForJobRunCommandInput, GetDashboardForJobRunCommandOutput, EMRServerlessClientResolvedConfig> {
27
+ readonly input: GetDashboardForJobRunCommandInput;
28
+ constructor(input: GetDashboardForJobRunCommandInput);
29
+ /**
30
+ * @internal
31
+ */
32
+ resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: EMRServerlessClientResolvedConfig, options?: __HttpHandlerOptions): Handler<GetDashboardForJobRunCommandInput, GetDashboardForJobRunCommandOutput>;
33
+ private serialize;
34
+ private deserialize;
35
+ }
@@ -2,6 +2,7 @@ export * from "./CancelJobRunCommand";
2
2
  export * from "./CreateApplicationCommand";
3
3
  export * from "./DeleteApplicationCommand";
4
4
  export * from "./GetApplicationCommand";
5
+ export * from "./GetDashboardForJobRunCommand";
5
6
  export * from "./GetJobRunCommand";
6
7
  export * from "./ListApplicationsCommand";
7
8
  export * from "./ListJobRunsCommand";
@@ -5,20 +5,24 @@ import { EMRServerlessServiceException as __BaseException } from "./EMRServerles
5
5
  */
6
6
  export interface AutoStartConfig {
7
7
  /**
8
- * <p>Enables the application to automatically start on job submission. Defaults to true.</p>
8
+ * <p>Enables the application to automatically start on job submission. Defaults to
9
+ * true.</p>
9
10
  */
10
11
  enabled?: boolean;
11
12
  }
12
13
  /**
13
- * <p>The configuration for an application to automatically stop after a certain amount of time being idle.</p>
14
+ * <p>The configuration for an application to automatically stop after a certain amount of
15
+ * time being idle.</p>
14
16
  */
15
17
  export interface AutoStopConfig {
16
18
  /**
17
- * <p>Enables the application to automatically stop after a certain amount of time being idle. Defaults to true.</p>
19
+ * <p>Enables the application to automatically stop after a certain amount of time being idle.
20
+ * Defaults to true.</p>
18
21
  */
19
22
  enabled?: boolean;
20
23
  /**
21
- * <p>The amount of idle time in minutes after which your application will automatically stop. Defaults to 15 minutes.</p>
24
+ * <p>The amount of idle time in minutes after which your application will automatically stop.
25
+ * Defaults to 15 minutes.</p>
22
26
  */
23
27
  idleTimeoutMinutes?: number;
24
28
  }
@@ -152,7 +156,8 @@ export interface Application {
152
156
  */
153
157
  autoStartConfiguration?: AutoStartConfig;
154
158
  /**
155
- * <p>The configuration for an application to automatically stop after a certain amount of time being idle.</p>
159
+ * <p>The configuration for an application to automatically stop after a certain amount of
160
+ * time being idle.</p>
156
161
  */
157
162
  autoStopConfiguration?: AutoStopConfig;
158
163
  /**
@@ -250,7 +255,8 @@ export interface CreateApplicationRequest {
250
255
  */
251
256
  autoStartConfiguration?: AutoStartConfig;
252
257
  /**
253
- * <p>The configuration for an application to automatically stop after a certain amount of time being idle.</p>
258
+ * <p>The configuration for an application to automatically stop after a certain amount of
259
+ * time being idle.</p>
254
260
  */
255
261
  autoStopConfiguration?: AutoStopConfig;
256
262
  /**
@@ -335,7 +341,8 @@ export interface ListApplicationsRequest {
335
341
  */
336
342
  maxResults?: number;
337
343
  /**
338
- * <p>An optional filter for application states. Note that if this filter contains multiple states, the resulting list will be grouped by the state.</p>
344
+ * <p>An optional filter for application states. Note that if this filter contains multiple
345
+ * states, the resulting list will be grouped by the state.</p>
339
346
  */
340
347
  states?: (ApplicationState | string)[];
341
348
  }
@@ -402,7 +409,8 @@ export interface UpdateApplicationRequest {
402
409
  */
403
410
  autoStartConfiguration?: AutoStartConfig;
404
411
  /**
405
- * <p>The configuration for an application to automatically stop after a certain amount of time being idle.</p>
412
+ * <p>The configuration for an application to automatically stop after a certain amount of
413
+ * time being idle.</p>
406
414
  */
407
415
  autoStopConfiguration?: AutoStopConfig;
408
416
  /**
@@ -436,6 +444,22 @@ export interface CancelJobRunResponse {
436
444
  */
437
445
  jobRunId: string | undefined;
438
446
  }
447
+ export interface GetDashboardForJobRunRequest {
448
+ /**
449
+ * <p>The ID of the application.</p>
450
+ */
451
+ applicationId: string | undefined;
452
+ /**
453
+ * <p>The ID of the job run.</p>
454
+ */
455
+ jobRunId: string | undefined;
456
+ }
457
+ export interface GetDashboardForJobRunResponse {
458
+ /**
459
+ * <p>The URL to view job run's dashboard.</p>
460
+ */
461
+ url?: string;
462
+ }
439
463
  export interface GetJobRunRequest {
440
464
  /**
441
465
  * <p>The ID of the application on which the job run is submitted.</p>
@@ -451,7 +475,8 @@ export interface GetJobRunRequest {
451
475
  */
452
476
  export interface ManagedPersistenceMonitoringConfiguration {
453
477
  /**
454
- * <p>Enables managed logging and defaults to true. If set to false, managed logging will be turned off.</p>
478
+ * <p>Enables managed logging and defaults to true. If set to false, managed logging will be
479
+ * turned off.</p>
455
480
  */
456
481
  enabled?: boolean;
457
482
  /**
@@ -564,20 +589,23 @@ export declare enum JobRunState {
564
589
  SUCCESS = "SUCCESS"
565
590
  }
566
591
  /**
567
- * <p>The aggregate vCPU, memory, and storage resources used from the time job start executing till the time job is terminated,
568
- * rounded up to the nearest second.</p>
592
+ * <p>The aggregate vCPU, memory, and storage resources used from the time job start executing
593
+ * till the time job is terminated, rounded up to the nearest second.</p>
569
594
  */
570
595
  export interface TotalResourceUtilization {
571
596
  /**
572
- * <p>The aggregated vCPU used per hour from the time job start executing till the time job is terminated.</p>
597
+ * <p>The aggregated vCPU used per hour from the time job start executing till the time job is
598
+ * terminated.</p>
573
599
  */
574
600
  vCPUHour?: number;
575
601
  /**
576
- * <p>The aggregated memory used per hour from the time job start executing till the time job is terminated.</p>
602
+ * <p>The aggregated memory used per hour from the time job start executing till the time job
603
+ * is terminated.</p>
577
604
  */
578
605
  memoryGBHour?: number;
579
606
  /**
580
- * <p>The aggregated storage used per hour from the time job start executing till the time job is terminated.</p>
607
+ * <p>The aggregated storage used per hour from the time job start executing till the time job
608
+ * is terminated.</p>
581
609
  */
582
610
  storageGBHour?: number;
583
611
  }
@@ -603,7 +631,8 @@ export interface ListJobRunsRequest {
603
631
  */
604
632
  createdAtBefore?: Date;
605
633
  /**
606
- * <p>An optional filter for job run states. Note that if this filter contains multiple states, the resulting list will be grouped by the state.</p>
634
+ * <p>An optional filter for job run states. Note that if this filter contains multiple
635
+ * states, the resulting list will be grouped by the state.</p>
607
636
  */
608
637
  states?: (JobRunState | string)[];
609
638
  }
@@ -687,7 +716,9 @@ export interface StartJobRunResponse {
687
716
  }
688
717
  export interface ListTagsForResourceRequest {
689
718
  /**
690
- * <p>The Amazon Resource Name (ARN) that identifies the resource to list the tags for. Currently, the supported resources are Amazon EMR Serverless applications and job runs.</p>
719
+ * <p>The Amazon Resource Name (ARN) that identifies the resource to list the tags for.
720
+ * Currently, the supported resources are Amazon EMR Serverless applications and job
721
+ * runs.</p>
691
722
  */
692
723
  resourceArn: string | undefined;
693
724
  }
@@ -699,7 +730,9 @@ export interface ListTagsForResourceResponse {
699
730
  }
700
731
  export interface TagResourceRequest {
701
732
  /**
702
- * <p>The Amazon Resource Name (ARN) that identifies the resource to list the tags for. Currently, the supported resources are Amazon EMR Serverless applications and job runs.</p>
733
+ * <p>The Amazon Resource Name (ARN) that identifies the resource to list the tags for.
734
+ * Currently, the supported resources are Amazon EMR Serverless applications and job
735
+ * runs.</p>
703
736
  */
704
737
  resourceArn: string | undefined;
705
738
  /**
@@ -711,7 +744,9 @@ export interface TagResourceResponse {
711
744
  }
712
745
  export interface UntagResourceRequest {
713
746
  /**
714
- * <p>The Amazon Resource Name (ARN) that identifies the resource to list the tags for. Currently, the supported resources are Amazon EMR Serverless applications and job runs.</p>
747
+ * <p>The Amazon Resource Name (ARN) that identifies the resource to list the tags for.
748
+ * Currently, the supported resources are Amazon EMR Serverless applications and job
749
+ * runs.</p>
715
750
  */
716
751
  resourceArn: string | undefined;
717
752
  /**
@@ -816,8 +851,8 @@ export interface JobRun {
816
851
  */
817
852
  tags?: Record<string, string>;
818
853
  /**
819
- * <p>The aggregate vCPU, memory, and storage resources used from the time job start executing till the time job is terminated,
820
- * rounded up to the nearest second.</p>
854
+ * <p>The aggregate vCPU, memory, and storage resources used from the time job start executing
855
+ * till the time job is terminated, rounded up to the nearest second.</p>
821
856
  */
822
857
  totalResourceUtilization?: TotalResourceUtilization;
823
858
  /**
@@ -825,7 +860,9 @@ export interface JobRun {
825
860
  */
826
861
  networkConfiguration?: NetworkConfiguration;
827
862
  /**
828
- * <p>The job run total execution duration in seconds. This field is only available for job runs in a <code>COMPLETED</code>, <code>FAILED</code>, or <code>CANCELLED</code> state.</p>
863
+ * <p>The job run total execution duration in seconds. This field is only available for job
864
+ * runs in a <code>COMPLETED</code>, <code>FAILED</code>, or <code>CANCELLED</code>
865
+ * state.</p>
829
866
  */
830
867
  totalExecutionDurationSeconds?: number;
831
868
  }
@@ -856,7 +893,8 @@ export interface StartJobRunRequest {
856
893
  */
857
894
  tags?: Record<string, string>;
858
895
  /**
859
- * <p>The maximum duration for the job run to run. If the job run runs beyond this duration, it will be automatically cancelled.</p>
896
+ * <p>The maximum duration for the job run to run. If the job run runs beyond this duration,
897
+ * it will be automatically cancelled.</p>
860
898
  */
861
899
  executionTimeoutMinutes?: number;
862
900
  /**
@@ -966,6 +1004,14 @@ export declare const CancelJobRunRequestFilterSensitiveLog: (obj: CancelJobRunRe
966
1004
  * @internal
967
1005
  */
968
1006
  export declare const CancelJobRunResponseFilterSensitiveLog: (obj: CancelJobRunResponse) => any;
1007
+ /**
1008
+ * @internal
1009
+ */
1010
+ export declare const GetDashboardForJobRunRequestFilterSensitiveLog: (obj: GetDashboardForJobRunRequest) => any;
1011
+ /**
1012
+ * @internal
1013
+ */
1014
+ export declare const GetDashboardForJobRunResponseFilterSensitiveLog: (obj: GetDashboardForJobRunResponse) => any;
969
1015
  /**
970
1016
  * @internal
971
1017
  */
@@ -4,6 +4,7 @@ import { CancelJobRunCommandInput, CancelJobRunCommandOutput } from "../commands
4
4
  import { CreateApplicationCommandInput, CreateApplicationCommandOutput } from "../commands/CreateApplicationCommand";
5
5
  import { DeleteApplicationCommandInput, DeleteApplicationCommandOutput } from "../commands/DeleteApplicationCommand";
6
6
  import { GetApplicationCommandInput, GetApplicationCommandOutput } from "../commands/GetApplicationCommand";
7
+ import { GetDashboardForJobRunCommandInput, GetDashboardForJobRunCommandOutput } from "../commands/GetDashboardForJobRunCommand";
7
8
  import { GetJobRunCommandInput, GetJobRunCommandOutput } from "../commands/GetJobRunCommand";
8
9
  import { ListApplicationsCommandInput, ListApplicationsCommandOutput } from "../commands/ListApplicationsCommand";
9
10
  import { ListJobRunsCommandInput, ListJobRunsCommandOutput } from "../commands/ListJobRunsCommand";
@@ -18,6 +19,7 @@ export declare const serializeAws_restJson1CancelJobRunCommand: (input: CancelJo
18
19
  export declare const serializeAws_restJson1CreateApplicationCommand: (input: CreateApplicationCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
19
20
  export declare const serializeAws_restJson1DeleteApplicationCommand: (input: DeleteApplicationCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
20
21
  export declare const serializeAws_restJson1GetApplicationCommand: (input: GetApplicationCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
22
+ export declare const serializeAws_restJson1GetDashboardForJobRunCommand: (input: GetDashboardForJobRunCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
21
23
  export declare const serializeAws_restJson1GetJobRunCommand: (input: GetJobRunCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
22
24
  export declare const serializeAws_restJson1ListApplicationsCommand: (input: ListApplicationsCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
23
25
  export declare const serializeAws_restJson1ListJobRunsCommand: (input: ListJobRunsCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
@@ -32,6 +34,7 @@ export declare const deserializeAws_restJson1CancelJobRunCommand: (output: __Htt
32
34
  export declare const deserializeAws_restJson1CreateApplicationCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<CreateApplicationCommandOutput>;
33
35
  export declare const deserializeAws_restJson1DeleteApplicationCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<DeleteApplicationCommandOutput>;
34
36
  export declare const deserializeAws_restJson1GetApplicationCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<GetApplicationCommandOutput>;
37
+ export declare const deserializeAws_restJson1GetDashboardForJobRunCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<GetDashboardForJobRunCommandOutput>;
35
38
  export declare const deserializeAws_restJson1GetJobRunCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<GetJobRunCommandOutput>;
36
39
  export declare const deserializeAws_restJson1ListApplicationsCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<ListApplicationsCommandOutput>;
37
40
  export declare const deserializeAws_restJson1ListJobRunsCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<ListJobRunsCommandOutput>;
@@ -15,6 +15,10 @@ import {
15
15
  GetApplicationCommandInput,
16
16
  GetApplicationCommandOutput,
17
17
  } from "./commands/GetApplicationCommand";
18
+ import {
19
+ GetDashboardForJobRunCommandInput,
20
+ GetDashboardForJobRunCommandOutput,
21
+ } from "./commands/GetDashboardForJobRunCommand";
18
22
  import {
19
23
  GetJobRunCommandInput,
20
24
  GetJobRunCommandOutput,
@@ -109,6 +113,19 @@ export declare class EMRServerless extends EMRServerlessClient {
109
113
  options: __HttpHandlerOptions,
110
114
  cb: (err: any, data?: GetApplicationCommandOutput) => void
111
115
  ): void;
116
+ getDashboardForJobRun(
117
+ args: GetDashboardForJobRunCommandInput,
118
+ options?: __HttpHandlerOptions
119
+ ): Promise<GetDashboardForJobRunCommandOutput>;
120
+ getDashboardForJobRun(
121
+ args: GetDashboardForJobRunCommandInput,
122
+ cb: (err: any, data?: GetDashboardForJobRunCommandOutput) => void
123
+ ): void;
124
+ getDashboardForJobRun(
125
+ args: GetDashboardForJobRunCommandInput,
126
+ options: __HttpHandlerOptions,
127
+ cb: (err: any, data?: GetDashboardForJobRunCommandOutput) => void
128
+ ): void;
112
129
  getJobRun(
113
130
  args: GetJobRunCommandInput,
114
131
  options?: __HttpHandlerOptions
@@ -58,6 +58,10 @@ import {
58
58
  GetApplicationCommandInput,
59
59
  GetApplicationCommandOutput,
60
60
  } from "./commands/GetApplicationCommand";
61
+ import {
62
+ GetDashboardForJobRunCommandInput,
63
+ GetDashboardForJobRunCommandOutput,
64
+ } from "./commands/GetDashboardForJobRunCommand";
61
65
  import {
62
66
  GetJobRunCommandInput,
63
67
  GetJobRunCommandOutput,
@@ -103,6 +107,7 @@ export declare type ServiceInputTypes =
103
107
  | CreateApplicationCommandInput
104
108
  | DeleteApplicationCommandInput
105
109
  | GetApplicationCommandInput
110
+ | GetDashboardForJobRunCommandInput
106
111
  | GetJobRunCommandInput
107
112
  | ListApplicationsCommandInput
108
113
  | ListJobRunsCommandInput
@@ -118,6 +123,7 @@ export declare type ServiceOutputTypes =
118
123
  | CreateApplicationCommandOutput
119
124
  | DeleteApplicationCommandOutput
120
125
  | GetApplicationCommandOutput
126
+ | GetDashboardForJobRunCommandOutput
121
127
  | GetJobRunCommandOutput
122
128
  | ListApplicationsCommandOutput
123
129
  | ListJobRunsCommandOutput