@aws-sdk/client-emr-serverless 3.180.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.
- package/CHANGELOG.md +17 -0
- package/dist-cjs/EMRServerless.js +15 -0
- package/dist-cjs/commands/GetDashboardForJobRunCommand.js +36 -0
- package/dist-cjs/commands/index.js +1 -0
- package/dist-cjs/models/models_0.js +10 -2
- package/dist-cjs/protocols/Aws_restJson1.js +82 -23
- package/dist-es/EMRServerless.js +15 -0
- package/dist-es/commands/GetDashboardForJobRunCommand.js +39 -0
- package/dist-es/commands/index.js +1 -0
- package/dist-es/models/models_0.js +2 -0
- package/dist-es/protocols/Aws_restJson1.js +116 -21
- package/dist-types/EMRServerless.d.ts +7 -0
- package/dist-types/EMRServerlessClient.d.ts +3 -2
- package/dist-types/commands/GetDashboardForJobRunCommand.d.ts +35 -0
- package/dist-types/commands/index.d.ts +1 -0
- package/dist-types/models/models_0.d.ts +68 -22
- package/dist-types/protocols/Aws_restJson1.d.ts +3 -0
- package/dist-types/ts3.4/EMRServerless.d.ts +17 -0
- package/dist-types/ts3.4/EMRServerlessClient.d.ts +6 -0
- package/dist-types/ts3.4/commands/GetDashboardForJobRunCommand.d.ts +39 -0
- package/dist-types/ts3.4/commands/index.d.ts +1 -0
- package/dist-types/ts3.4/models/models_0.d.ts +13 -0
- package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +12 -0
- package/package.json +3 -3
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,23 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
# [3.181.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.180.0...v3.181.0) (2022-09-29)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Bug Fixes
|
|
10
|
+
|
|
11
|
+
* **clients:** make parseErrorBody async ([#3999](https://github.com/aws/aws-sdk-js-v3/issues/3999)) ([2558c93](https://github.com/aws/aws-sdk-js-v3/commit/2558c93c050357ac6dc47aa0452b15b12ebfd676))
|
|
12
|
+
* **clients:** populate message field when parsing errors ([#3995](https://github.com/aws/aws-sdk-js-v3/issues/3995)) ([02e47f1](https://github.com/aws/aws-sdk-js-v3/commit/02e47f14397ae0a5d2e2883350d038b307fdcdb4))
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
### Features
|
|
16
|
+
|
|
17
|
+
* **client-emr-serverless:** This release adds API support to debug Amazon EMR Serverless jobs in real-time with live application UIs ([9a3cc54](https://github.com/aws/aws-sdk-js-v3/commit/9a3cc549937b367ea4495a993f51c50db993ed59))
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
|
|
6
23
|
# [3.180.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.179.0...v3.180.0) (2022-09-27)
|
|
7
24
|
|
|
8
25
|
|
|
@@ -5,6 +5,7 @@ const CancelJobRunCommand_1 = require("./commands/CancelJobRunCommand");
|
|
|
5
5
|
const CreateApplicationCommand_1 = require("./commands/CreateApplicationCommand");
|
|
6
6
|
const DeleteApplicationCommand_1 = require("./commands/DeleteApplicationCommand");
|
|
7
7
|
const GetApplicationCommand_1 = require("./commands/GetApplicationCommand");
|
|
8
|
+
const GetDashboardForJobRunCommand_1 = require("./commands/GetDashboardForJobRunCommand");
|
|
8
9
|
const GetJobRunCommand_1 = require("./commands/GetJobRunCommand");
|
|
9
10
|
const ListApplicationsCommand_1 = require("./commands/ListApplicationsCommand");
|
|
10
11
|
const ListJobRunsCommand_1 = require("./commands/ListJobRunsCommand");
|
|
@@ -73,6 +74,20 @@ class EMRServerless extends EMRServerlessClient_1.EMRServerlessClient {
|
|
|
73
74
|
return this.send(command, optionsOrCb);
|
|
74
75
|
}
|
|
75
76
|
}
|
|
77
|
+
getDashboardForJobRun(args, optionsOrCb, cb) {
|
|
78
|
+
const command = new GetDashboardForJobRunCommand_1.GetDashboardForJobRunCommand(args);
|
|
79
|
+
if (typeof optionsOrCb === "function") {
|
|
80
|
+
this.send(command, optionsOrCb);
|
|
81
|
+
}
|
|
82
|
+
else if (typeof cb === "function") {
|
|
83
|
+
if (typeof optionsOrCb !== "object")
|
|
84
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
85
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
86
|
+
}
|
|
87
|
+
else {
|
|
88
|
+
return this.send(command, optionsOrCb);
|
|
89
|
+
}
|
|
90
|
+
}
|
|
76
91
|
getJobRun(args, optionsOrCb, cb) {
|
|
77
92
|
const command = new GetJobRunCommand_1.GetJobRunCommand(args);
|
|
78
93
|
if (typeof optionsOrCb === "function") {
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.GetDashboardForJobRunCommand = void 0;
|
|
4
|
+
const middleware_serde_1 = require("@aws-sdk/middleware-serde");
|
|
5
|
+
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
6
|
+
const models_0_1 = require("../models/models_0");
|
|
7
|
+
const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
|
|
8
|
+
class GetDashboardForJobRunCommand extends smithy_client_1.Command {
|
|
9
|
+
constructor(input) {
|
|
10
|
+
super();
|
|
11
|
+
this.input = input;
|
|
12
|
+
}
|
|
13
|
+
resolveMiddleware(clientStack, configuration, options) {
|
|
14
|
+
this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize));
|
|
15
|
+
const stack = clientStack.concat(this.middlewareStack);
|
|
16
|
+
const { logger } = configuration;
|
|
17
|
+
const clientName = "EMRServerlessClient";
|
|
18
|
+
const commandName = "GetDashboardForJobRunCommand";
|
|
19
|
+
const handlerExecutionContext = {
|
|
20
|
+
logger,
|
|
21
|
+
clientName,
|
|
22
|
+
commandName,
|
|
23
|
+
inputFilterSensitiveLog: models_0_1.GetDashboardForJobRunRequestFilterSensitiveLog,
|
|
24
|
+
outputFilterSensitiveLog: models_0_1.GetDashboardForJobRunResponseFilterSensitiveLog,
|
|
25
|
+
};
|
|
26
|
+
const { requestHandler } = configuration;
|
|
27
|
+
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
28
|
+
}
|
|
29
|
+
serialize(input, context) {
|
|
30
|
+
return (0, Aws_restJson1_1.serializeAws_restJson1GetDashboardForJobRunCommand)(input, context);
|
|
31
|
+
}
|
|
32
|
+
deserialize(output, context) {
|
|
33
|
+
return (0, Aws_restJson1_1.deserializeAws_restJson1GetDashboardForJobRunCommand)(output, context);
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
exports.GetDashboardForJobRunCommand = GetDashboardForJobRunCommand;
|
|
@@ -5,6 +5,7 @@ tslib_1.__exportStar(require("./CancelJobRunCommand"), exports);
|
|
|
5
5
|
tslib_1.__exportStar(require("./CreateApplicationCommand"), exports);
|
|
6
6
|
tslib_1.__exportStar(require("./DeleteApplicationCommand"), exports);
|
|
7
7
|
tslib_1.__exportStar(require("./GetApplicationCommand"), exports);
|
|
8
|
+
tslib_1.__exportStar(require("./GetDashboardForJobRunCommand"), exports);
|
|
8
9
|
tslib_1.__exportStar(require("./GetJobRunCommand"), exports);
|
|
9
10
|
tslib_1.__exportStar(require("./ListApplicationsCommand"), exports);
|
|
10
11
|
tslib_1.__exportStar(require("./ListJobRunsCommand"), exports);
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
4
|
-
exports.GetJobRunResponseFilterSensitiveLog = exports.StartJobRunRequestFilterSensitiveLog = exports.JobRunFilterSensitiveLog = exports.ConfigurationOverridesFilterSensitiveLog = exports.ConfigurationFilterSensitiveLog = void 0;
|
|
3
|
+
exports.TagResourceResponseFilterSensitiveLog = exports.TagResourceRequestFilterSensitiveLog = exports.ListTagsForResourceResponseFilterSensitiveLog = exports.ListTagsForResourceRequestFilterSensitiveLog = exports.StartJobRunResponseFilterSensitiveLog = exports.ListJobRunsResponseFilterSensitiveLog = exports.JobRunSummaryFilterSensitiveLog = exports.ListJobRunsRequestFilterSensitiveLog = exports.TotalResourceUtilizationFilterSensitiveLog = exports.JobDriverFilterSensitiveLog = exports.SparkSubmitFilterSensitiveLog = exports.HiveFilterSensitiveLog = exports.MonitoringConfigurationFilterSensitiveLog = exports.S3MonitoringConfigurationFilterSensitiveLog = exports.ManagedPersistenceMonitoringConfigurationFilterSensitiveLog = exports.GetJobRunRequestFilterSensitiveLog = exports.GetDashboardForJobRunResponseFilterSensitiveLog = exports.GetDashboardForJobRunRequestFilterSensitiveLog = exports.CancelJobRunResponseFilterSensitiveLog = exports.CancelJobRunRequestFilterSensitiveLog = exports.UpdateApplicationResponseFilterSensitiveLog = exports.UpdateApplicationRequestFilterSensitiveLog = exports.StopApplicationResponseFilterSensitiveLog = exports.StopApplicationRequestFilterSensitiveLog = exports.StartApplicationResponseFilterSensitiveLog = exports.StartApplicationRequestFilterSensitiveLog = exports.ListApplicationsResponseFilterSensitiveLog = exports.ListApplicationsRequestFilterSensitiveLog = exports.GetApplicationResponseFilterSensitiveLog = exports.GetApplicationRequestFilterSensitiveLog = exports.DeleteApplicationResponseFilterSensitiveLog = exports.DeleteApplicationRequestFilterSensitiveLog = exports.CreateApplicationResponseFilterSensitiveLog = exports.CreateApplicationRequestFilterSensitiveLog = exports.ApplicationSummaryFilterSensitiveLog = exports.ApplicationFilterSensitiveLog = exports.NetworkConfigurationFilterSensitiveLog = exports.MaximumAllowedResourcesFilterSensitiveLog = exports.InitialCapacityConfigFilterSensitiveLog = exports.WorkerResourceConfigFilterSensitiveLog = exports.AutoStopConfigFilterSensitiveLog = exports.AutoStartConfigFilterSensitiveLog = exports.JobRunState = exports.JobDriver = exports.ServiceQuotaExceededException = exports.ResourceNotFoundException = exports.ValidationException = exports.InternalServerException = exports.ConflictException = exports.ApplicationState = void 0;
|
|
4
|
+
exports.GetJobRunResponseFilterSensitiveLog = exports.StartJobRunRequestFilterSensitiveLog = exports.JobRunFilterSensitiveLog = exports.ConfigurationOverridesFilterSensitiveLog = exports.ConfigurationFilterSensitiveLog = exports.UntagResourceResponseFilterSensitiveLog = exports.UntagResourceRequestFilterSensitiveLog = void 0;
|
|
5
5
|
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
6
6
|
const EMRServerlessServiceException_1 = require("./EMRServerlessServiceException");
|
|
7
7
|
var ApplicationState;
|
|
@@ -196,6 +196,14 @@ const CancelJobRunResponseFilterSensitiveLog = (obj) => ({
|
|
|
196
196
|
...obj,
|
|
197
197
|
});
|
|
198
198
|
exports.CancelJobRunResponseFilterSensitiveLog = CancelJobRunResponseFilterSensitiveLog;
|
|
199
|
+
const GetDashboardForJobRunRequestFilterSensitiveLog = (obj) => ({
|
|
200
|
+
...obj,
|
|
201
|
+
});
|
|
202
|
+
exports.GetDashboardForJobRunRequestFilterSensitiveLog = GetDashboardForJobRunRequestFilterSensitiveLog;
|
|
203
|
+
const GetDashboardForJobRunResponseFilterSensitiveLog = (obj) => ({
|
|
204
|
+
...obj,
|
|
205
|
+
});
|
|
206
|
+
exports.GetDashboardForJobRunResponseFilterSensitiveLog = GetDashboardForJobRunResponseFilterSensitiveLog;
|
|
199
207
|
const GetJobRunRequestFilterSensitiveLog = (obj) => ({
|
|
200
208
|
...obj,
|
|
201
209
|
});
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.deserializeAws_restJson1UpdateApplicationCommand = exports.deserializeAws_restJson1UntagResourceCommand = exports.deserializeAws_restJson1TagResourceCommand = exports.deserializeAws_restJson1StopApplicationCommand = exports.deserializeAws_restJson1StartJobRunCommand = exports.deserializeAws_restJson1StartApplicationCommand = exports.deserializeAws_restJson1ListTagsForResourceCommand = exports.deserializeAws_restJson1ListJobRunsCommand = exports.deserializeAws_restJson1ListApplicationsCommand = exports.deserializeAws_restJson1GetJobRunCommand = exports.deserializeAws_restJson1GetApplicationCommand = exports.deserializeAws_restJson1DeleteApplicationCommand = exports.deserializeAws_restJson1CreateApplicationCommand = exports.deserializeAws_restJson1CancelJobRunCommand = exports.serializeAws_restJson1UpdateApplicationCommand = exports.serializeAws_restJson1UntagResourceCommand = exports.serializeAws_restJson1TagResourceCommand = exports.serializeAws_restJson1StopApplicationCommand = exports.serializeAws_restJson1StartJobRunCommand = exports.serializeAws_restJson1StartApplicationCommand = exports.serializeAws_restJson1ListTagsForResourceCommand = exports.serializeAws_restJson1ListJobRunsCommand = exports.serializeAws_restJson1ListApplicationsCommand = exports.serializeAws_restJson1GetJobRunCommand = exports.serializeAws_restJson1GetApplicationCommand = exports.serializeAws_restJson1DeleteApplicationCommand = exports.serializeAws_restJson1CreateApplicationCommand = exports.serializeAws_restJson1CancelJobRunCommand = void 0;
|
|
3
|
+
exports.deserializeAws_restJson1UpdateApplicationCommand = exports.deserializeAws_restJson1UntagResourceCommand = exports.deserializeAws_restJson1TagResourceCommand = exports.deserializeAws_restJson1StopApplicationCommand = exports.deserializeAws_restJson1StartJobRunCommand = exports.deserializeAws_restJson1StartApplicationCommand = exports.deserializeAws_restJson1ListTagsForResourceCommand = exports.deserializeAws_restJson1ListJobRunsCommand = exports.deserializeAws_restJson1ListApplicationsCommand = exports.deserializeAws_restJson1GetJobRunCommand = exports.deserializeAws_restJson1GetDashboardForJobRunCommand = exports.deserializeAws_restJson1GetApplicationCommand = exports.deserializeAws_restJson1DeleteApplicationCommand = exports.deserializeAws_restJson1CreateApplicationCommand = exports.deserializeAws_restJson1CancelJobRunCommand = exports.serializeAws_restJson1UpdateApplicationCommand = exports.serializeAws_restJson1UntagResourceCommand = exports.serializeAws_restJson1TagResourceCommand = exports.serializeAws_restJson1StopApplicationCommand = exports.serializeAws_restJson1StartJobRunCommand = exports.serializeAws_restJson1StartApplicationCommand = exports.serializeAws_restJson1ListTagsForResourceCommand = exports.serializeAws_restJson1ListJobRunsCommand = exports.serializeAws_restJson1ListApplicationsCommand = exports.serializeAws_restJson1GetJobRunCommand = exports.serializeAws_restJson1GetDashboardForJobRunCommand = exports.serializeAws_restJson1GetApplicationCommand = exports.serializeAws_restJson1DeleteApplicationCommand = exports.serializeAws_restJson1CreateApplicationCommand = exports.serializeAws_restJson1CancelJobRunCommand = void 0;
|
|
4
4
|
const protocol_http_1 = require("@aws-sdk/protocol-http");
|
|
5
5
|
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
6
6
|
const uuid_1 = require("uuid");
|
|
@@ -100,6 +100,25 @@ const serializeAws_restJson1GetApplicationCommand = async (input, context) => {
|
|
|
100
100
|
});
|
|
101
101
|
};
|
|
102
102
|
exports.serializeAws_restJson1GetApplicationCommand = serializeAws_restJson1GetApplicationCommand;
|
|
103
|
+
const serializeAws_restJson1GetDashboardForJobRunCommand = async (input, context) => {
|
|
104
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
105
|
+
const headers = {};
|
|
106
|
+
let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` +
|
|
107
|
+
"/applications/{applicationId}/jobruns/{jobRunId}/dashboard";
|
|
108
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "applicationId", () => input.applicationId, "{applicationId}", false);
|
|
109
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "jobRunId", () => input.jobRunId, "{jobRunId}", false);
|
|
110
|
+
let body;
|
|
111
|
+
return new protocol_http_1.HttpRequest({
|
|
112
|
+
protocol,
|
|
113
|
+
hostname,
|
|
114
|
+
port,
|
|
115
|
+
method: "GET",
|
|
116
|
+
headers,
|
|
117
|
+
path: resolvedPath,
|
|
118
|
+
body,
|
|
119
|
+
});
|
|
120
|
+
};
|
|
121
|
+
exports.serializeAws_restJson1GetDashboardForJobRunCommand = serializeAws_restJson1GetDashboardForJobRunCommand;
|
|
103
122
|
const serializeAws_restJson1GetJobRunCommand = async (input, context) => {
|
|
104
123
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
105
124
|
const headers = {};
|
|
@@ -126,10 +145,7 @@ const serializeAws_restJson1ListApplicationsCommand = async (input, context) =>
|
|
|
126
145
|
const query = map({
|
|
127
146
|
nextToken: [, input.nextToken],
|
|
128
147
|
maxResults: [() => input.maxResults !== void 0, () => input.maxResults.toString()],
|
|
129
|
-
states: [
|
|
130
|
-
() => input.states !== void 0,
|
|
131
|
-
() => (Array.from(input.states.values()) || []).map((_entry) => _entry),
|
|
132
|
-
],
|
|
148
|
+
states: [() => input.states !== void 0, () => (input.states || []).map((_entry) => _entry)],
|
|
133
149
|
});
|
|
134
150
|
let body;
|
|
135
151
|
return new protocol_http_1.HttpRequest({
|
|
@@ -160,10 +176,7 @@ const serializeAws_restJson1ListJobRunsCommand = async (input, context) => {
|
|
|
160
176
|
() => input.createdAtBefore !== void 0,
|
|
161
177
|
() => (input.createdAtBefore.toISOString().split(".")[0] + "Z").toString(),
|
|
162
178
|
],
|
|
163
|
-
states: [
|
|
164
|
-
() => input.states !== void 0,
|
|
165
|
-
() => (Array.from(input.states.values()) || []).map((_entry) => _entry),
|
|
166
|
-
],
|
|
179
|
+
states: [() => input.states !== void 0, () => (input.states || []).map((_entry) => _entry)],
|
|
167
180
|
});
|
|
168
181
|
let body;
|
|
169
182
|
return new protocol_http_1.HttpRequest({
|
|
@@ -361,7 +374,7 @@ exports.deserializeAws_restJson1CancelJobRunCommand = deserializeAws_restJson1Ca
|
|
|
361
374
|
const deserializeAws_restJson1CancelJobRunCommandError = async (output, context) => {
|
|
362
375
|
const parsedOutput = {
|
|
363
376
|
...output,
|
|
364
|
-
body: await
|
|
377
|
+
body: await parseErrorBody(output.body, context),
|
|
365
378
|
};
|
|
366
379
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
367
380
|
switch (errorCode) {
|
|
@@ -407,7 +420,7 @@ exports.deserializeAws_restJson1CreateApplicationCommand = deserializeAws_restJs
|
|
|
407
420
|
const deserializeAws_restJson1CreateApplicationCommandError = async (output, context) => {
|
|
408
421
|
const parsedOutput = {
|
|
409
422
|
...output,
|
|
410
|
-
body: await
|
|
423
|
+
body: await parseErrorBody(output.body, context),
|
|
411
424
|
};
|
|
412
425
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
413
426
|
switch (errorCode) {
|
|
@@ -444,7 +457,7 @@ exports.deserializeAws_restJson1DeleteApplicationCommand = deserializeAws_restJs
|
|
|
444
457
|
const deserializeAws_restJson1DeleteApplicationCommandError = async (output, context) => {
|
|
445
458
|
const parsedOutput = {
|
|
446
459
|
...output,
|
|
447
|
-
body: await
|
|
460
|
+
body: await parseErrorBody(output.body, context),
|
|
448
461
|
};
|
|
449
462
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
450
463
|
switch (errorCode) {
|
|
@@ -484,7 +497,47 @@ exports.deserializeAws_restJson1GetApplicationCommand = deserializeAws_restJson1
|
|
|
484
497
|
const deserializeAws_restJson1GetApplicationCommandError = async (output, context) => {
|
|
485
498
|
const parsedOutput = {
|
|
486
499
|
...output,
|
|
487
|
-
body: await
|
|
500
|
+
body: await parseErrorBody(output.body, context),
|
|
501
|
+
};
|
|
502
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
503
|
+
switch (errorCode) {
|
|
504
|
+
case "InternalServerException":
|
|
505
|
+
case "com.amazonaws.emrserverless#InternalServerException":
|
|
506
|
+
throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
|
|
507
|
+
case "ResourceNotFoundException":
|
|
508
|
+
case "com.amazonaws.emrserverless#ResourceNotFoundException":
|
|
509
|
+
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
510
|
+
case "ValidationException":
|
|
511
|
+
case "com.amazonaws.emrserverless#ValidationException":
|
|
512
|
+
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
513
|
+
default:
|
|
514
|
+
const parsedBody = parsedOutput.body;
|
|
515
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
516
|
+
output,
|
|
517
|
+
parsedBody,
|
|
518
|
+
exceptionCtor: EMRServerlessServiceException_1.EMRServerlessServiceException,
|
|
519
|
+
errorCode,
|
|
520
|
+
});
|
|
521
|
+
}
|
|
522
|
+
};
|
|
523
|
+
const deserializeAws_restJson1GetDashboardForJobRunCommand = async (output, context) => {
|
|
524
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
525
|
+
return deserializeAws_restJson1GetDashboardForJobRunCommandError(output, context);
|
|
526
|
+
}
|
|
527
|
+
const contents = map({
|
|
528
|
+
$metadata: deserializeMetadata(output),
|
|
529
|
+
});
|
|
530
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
531
|
+
if (data.url != null) {
|
|
532
|
+
contents.url = (0, smithy_client_1.expectString)(data.url);
|
|
533
|
+
}
|
|
534
|
+
return contents;
|
|
535
|
+
};
|
|
536
|
+
exports.deserializeAws_restJson1GetDashboardForJobRunCommand = deserializeAws_restJson1GetDashboardForJobRunCommand;
|
|
537
|
+
const deserializeAws_restJson1GetDashboardForJobRunCommandError = async (output, context) => {
|
|
538
|
+
const parsedOutput = {
|
|
539
|
+
...output,
|
|
540
|
+
body: await parseErrorBody(output.body, context),
|
|
488
541
|
};
|
|
489
542
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
490
543
|
switch (errorCode) {
|
|
@@ -524,7 +577,7 @@ exports.deserializeAws_restJson1GetJobRunCommand = deserializeAws_restJson1GetJo
|
|
|
524
577
|
const deserializeAws_restJson1GetJobRunCommandError = async (output, context) => {
|
|
525
578
|
const parsedOutput = {
|
|
526
579
|
...output,
|
|
527
|
-
body: await
|
|
580
|
+
body: await parseErrorBody(output.body, context),
|
|
528
581
|
};
|
|
529
582
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
530
583
|
switch (errorCode) {
|
|
@@ -567,7 +620,7 @@ exports.deserializeAws_restJson1ListApplicationsCommand = deserializeAws_restJso
|
|
|
567
620
|
const deserializeAws_restJson1ListApplicationsCommandError = async (output, context) => {
|
|
568
621
|
const parsedOutput = {
|
|
569
622
|
...output,
|
|
570
|
-
body: await
|
|
623
|
+
body: await parseErrorBody(output.body, context),
|
|
571
624
|
};
|
|
572
625
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
573
626
|
switch (errorCode) {
|
|
@@ -607,7 +660,7 @@ exports.deserializeAws_restJson1ListJobRunsCommand = deserializeAws_restJson1Lis
|
|
|
607
660
|
const deserializeAws_restJson1ListJobRunsCommandError = async (output, context) => {
|
|
608
661
|
const parsedOutput = {
|
|
609
662
|
...output,
|
|
610
|
-
body: await
|
|
663
|
+
body: await parseErrorBody(output.body, context),
|
|
611
664
|
};
|
|
612
665
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
613
666
|
switch (errorCode) {
|
|
@@ -644,7 +697,7 @@ exports.deserializeAws_restJson1ListTagsForResourceCommand = deserializeAws_rest
|
|
|
644
697
|
const deserializeAws_restJson1ListTagsForResourceCommandError = async (output, context) => {
|
|
645
698
|
const parsedOutput = {
|
|
646
699
|
...output,
|
|
647
|
-
body: await
|
|
700
|
+
body: await parseErrorBody(output.body, context),
|
|
648
701
|
};
|
|
649
702
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
650
703
|
switch (errorCode) {
|
|
@@ -681,7 +734,7 @@ exports.deserializeAws_restJson1StartApplicationCommand = deserializeAws_restJso
|
|
|
681
734
|
const deserializeAws_restJson1StartApplicationCommandError = async (output, context) => {
|
|
682
735
|
const parsedOutput = {
|
|
683
736
|
...output,
|
|
684
|
-
body: await
|
|
737
|
+
body: await parseErrorBody(output.body, context),
|
|
685
738
|
};
|
|
686
739
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
687
740
|
switch (errorCode) {
|
|
@@ -730,7 +783,7 @@ exports.deserializeAws_restJson1StartJobRunCommand = deserializeAws_restJson1Sta
|
|
|
730
783
|
const deserializeAws_restJson1StartJobRunCommandError = async (output, context) => {
|
|
731
784
|
const parsedOutput = {
|
|
732
785
|
...output,
|
|
733
|
-
body: await
|
|
786
|
+
body: await parseErrorBody(output.body, context),
|
|
734
787
|
};
|
|
735
788
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
736
789
|
switch (errorCode) {
|
|
@@ -770,7 +823,7 @@ exports.deserializeAws_restJson1StopApplicationCommand = deserializeAws_restJson
|
|
|
770
823
|
const deserializeAws_restJson1StopApplicationCommandError = async (output, context) => {
|
|
771
824
|
const parsedOutput = {
|
|
772
825
|
...output,
|
|
773
|
-
body: await
|
|
826
|
+
body: await parseErrorBody(output.body, context),
|
|
774
827
|
};
|
|
775
828
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
776
829
|
switch (errorCode) {
|
|
@@ -807,7 +860,7 @@ exports.deserializeAws_restJson1TagResourceCommand = deserializeAws_restJson1Tag
|
|
|
807
860
|
const deserializeAws_restJson1TagResourceCommandError = async (output, context) => {
|
|
808
861
|
const parsedOutput = {
|
|
809
862
|
...output,
|
|
810
|
-
body: await
|
|
863
|
+
body: await parseErrorBody(output.body, context),
|
|
811
864
|
};
|
|
812
865
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
813
866
|
switch (errorCode) {
|
|
@@ -844,7 +897,7 @@ exports.deserializeAws_restJson1UntagResourceCommand = deserializeAws_restJson1U
|
|
|
844
897
|
const deserializeAws_restJson1UntagResourceCommandError = async (output, context) => {
|
|
845
898
|
const parsedOutput = {
|
|
846
899
|
...output,
|
|
847
|
-
body: await
|
|
900
|
+
body: await parseErrorBody(output.body, context),
|
|
848
901
|
};
|
|
849
902
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
850
903
|
switch (errorCode) {
|
|
@@ -884,7 +937,7 @@ exports.deserializeAws_restJson1UpdateApplicationCommand = deserializeAws_restJs
|
|
|
884
937
|
const deserializeAws_restJson1UpdateApplicationCommandError = async (output, context) => {
|
|
885
938
|
const parsedOutput = {
|
|
886
939
|
...output,
|
|
887
|
-
body: await
|
|
940
|
+
body: await parseErrorBody(output.body, context),
|
|
888
941
|
};
|
|
889
942
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
890
943
|
switch (errorCode) {
|
|
@@ -1469,6 +1522,12 @@ const parseBody = (streamBody, context) => collectBodyString(streamBody, context
|
|
|
1469
1522
|
}
|
|
1470
1523
|
return {};
|
|
1471
1524
|
});
|
|
1525
|
+
const parseErrorBody = async (errorBody, context) => {
|
|
1526
|
+
var _a;
|
|
1527
|
+
const value = await parseBody(errorBody, context);
|
|
1528
|
+
value.message = (_a = value.message) !== null && _a !== void 0 ? _a : value.Message;
|
|
1529
|
+
return value;
|
|
1530
|
+
};
|
|
1472
1531
|
const loadRestJsonErrorCode = (output, data) => {
|
|
1473
1532
|
const findKey = (object, key) => Object.keys(object).find((k) => k.toLowerCase() === key.toLowerCase());
|
|
1474
1533
|
const sanitizeErrorCode = (rawValue) => {
|
package/dist-es/EMRServerless.js
CHANGED
|
@@ -3,6 +3,7 @@ import { CancelJobRunCommand, } from "./commands/CancelJobRunCommand";
|
|
|
3
3
|
import { CreateApplicationCommand, } from "./commands/CreateApplicationCommand";
|
|
4
4
|
import { DeleteApplicationCommand, } from "./commands/DeleteApplicationCommand";
|
|
5
5
|
import { GetApplicationCommand, } from "./commands/GetApplicationCommand";
|
|
6
|
+
import { GetDashboardForJobRunCommand, } from "./commands/GetDashboardForJobRunCommand";
|
|
6
7
|
import { GetJobRunCommand } from "./commands/GetJobRunCommand";
|
|
7
8
|
import { ListApplicationsCommand, } from "./commands/ListApplicationsCommand";
|
|
8
9
|
import { ListJobRunsCommand } from "./commands/ListJobRunsCommand";
|
|
@@ -75,6 +76,20 @@ var EMRServerless = (function (_super) {
|
|
|
75
76
|
return this.send(command, optionsOrCb);
|
|
76
77
|
}
|
|
77
78
|
};
|
|
79
|
+
EMRServerless.prototype.getDashboardForJobRun = function (args, optionsOrCb, cb) {
|
|
80
|
+
var command = new GetDashboardForJobRunCommand(args);
|
|
81
|
+
if (typeof optionsOrCb === "function") {
|
|
82
|
+
this.send(command, optionsOrCb);
|
|
83
|
+
}
|
|
84
|
+
else if (typeof cb === "function") {
|
|
85
|
+
if (typeof optionsOrCb !== "object")
|
|
86
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
87
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
88
|
+
}
|
|
89
|
+
else {
|
|
90
|
+
return this.send(command, optionsOrCb);
|
|
91
|
+
}
|
|
92
|
+
};
|
|
78
93
|
EMRServerless.prototype.getJobRun = function (args, optionsOrCb, cb) {
|
|
79
94
|
var command = new GetJobRunCommand(args);
|
|
80
95
|
if (typeof optionsOrCb === "function") {
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { __extends } from "tslib";
|
|
2
|
+
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
3
|
+
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
4
|
+
import { GetDashboardForJobRunRequestFilterSensitiveLog, GetDashboardForJobRunResponseFilterSensitiveLog, } from "../models/models_0";
|
|
5
|
+
import { deserializeAws_restJson1GetDashboardForJobRunCommand, serializeAws_restJson1GetDashboardForJobRunCommand, } from "../protocols/Aws_restJson1";
|
|
6
|
+
var GetDashboardForJobRunCommand = (function (_super) {
|
|
7
|
+
__extends(GetDashboardForJobRunCommand, _super);
|
|
8
|
+
function GetDashboardForJobRunCommand(input) {
|
|
9
|
+
var _this = _super.call(this) || this;
|
|
10
|
+
_this.input = input;
|
|
11
|
+
return _this;
|
|
12
|
+
}
|
|
13
|
+
GetDashboardForJobRunCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
|
|
14
|
+
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
15
|
+
var stack = clientStack.concat(this.middlewareStack);
|
|
16
|
+
var logger = configuration.logger;
|
|
17
|
+
var clientName = "EMRServerlessClient";
|
|
18
|
+
var commandName = "GetDashboardForJobRunCommand";
|
|
19
|
+
var handlerExecutionContext = {
|
|
20
|
+
logger: logger,
|
|
21
|
+
clientName: clientName,
|
|
22
|
+
commandName: commandName,
|
|
23
|
+
inputFilterSensitiveLog: GetDashboardForJobRunRequestFilterSensitiveLog,
|
|
24
|
+
outputFilterSensitiveLog: GetDashboardForJobRunResponseFilterSensitiveLog,
|
|
25
|
+
};
|
|
26
|
+
var requestHandler = configuration.requestHandler;
|
|
27
|
+
return stack.resolve(function (request) {
|
|
28
|
+
return requestHandler.handle(request.request, options || {});
|
|
29
|
+
}, handlerExecutionContext);
|
|
30
|
+
};
|
|
31
|
+
GetDashboardForJobRunCommand.prototype.serialize = function (input, context) {
|
|
32
|
+
return serializeAws_restJson1GetDashboardForJobRunCommand(input, context);
|
|
33
|
+
};
|
|
34
|
+
GetDashboardForJobRunCommand.prototype.deserialize = function (output, context) {
|
|
35
|
+
return deserializeAws_restJson1GetDashboardForJobRunCommand(output, context);
|
|
36
|
+
};
|
|
37
|
+
return GetDashboardForJobRunCommand;
|
|
38
|
+
}($Command));
|
|
39
|
+
export { GetDashboardForJobRunCommand };
|
|
@@ -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";
|
|
@@ -116,6 +116,8 @@ export var UpdateApplicationRequestFilterSensitiveLog = function (obj) { return
|
|
|
116
116
|
export var UpdateApplicationResponseFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
117
117
|
export var CancelJobRunRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
118
118
|
export var CancelJobRunResponseFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
119
|
+
export var GetDashboardForJobRunRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
120
|
+
export var GetDashboardForJobRunResponseFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
119
121
|
export var GetJobRunRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
120
122
|
export var ManagedPersistenceMonitoringConfigurationFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
121
123
|
export var S3MonitoringConfigurationFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
@@ -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,
|
|
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,
|
|
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,
|
|
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,
|
|
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,
|
|
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,
|
|
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,
|
|
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,
|
|
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,
|
|
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,
|
|
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,
|
|
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,
|
|
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,
|
|
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
|
|
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
|
|
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.
|
|
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.
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
568
|
-
*
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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.
|
|
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.
|
|
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.
|
|
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
|
|
820
|
-
*
|
|
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
|
|
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,
|
|
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
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
2
|
+
import {
|
|
3
|
+
Handler,
|
|
4
|
+
HttpHandlerOptions as __HttpHandlerOptions,
|
|
5
|
+
MetadataBearer as __MetadataBearer,
|
|
6
|
+
MiddlewareStack,
|
|
7
|
+
} from "@aws-sdk/types";
|
|
8
|
+
import {
|
|
9
|
+
EMRServerlessClientResolvedConfig,
|
|
10
|
+
ServiceInputTypes,
|
|
11
|
+
ServiceOutputTypes,
|
|
12
|
+
} from "../EMRServerlessClient";
|
|
13
|
+
import {
|
|
14
|
+
GetDashboardForJobRunRequest,
|
|
15
|
+
GetDashboardForJobRunResponse,
|
|
16
|
+
} from "../models/models_0";
|
|
17
|
+
export interface GetDashboardForJobRunCommandInput
|
|
18
|
+
extends GetDashboardForJobRunRequest {}
|
|
19
|
+
export interface GetDashboardForJobRunCommandOutput
|
|
20
|
+
extends GetDashboardForJobRunResponse,
|
|
21
|
+
__MetadataBearer {}
|
|
22
|
+
export declare class GetDashboardForJobRunCommand extends $Command<
|
|
23
|
+
GetDashboardForJobRunCommandInput,
|
|
24
|
+
GetDashboardForJobRunCommandOutput,
|
|
25
|
+
EMRServerlessClientResolvedConfig
|
|
26
|
+
> {
|
|
27
|
+
readonly input: GetDashboardForJobRunCommandInput;
|
|
28
|
+
constructor(input: GetDashboardForJobRunCommandInput);
|
|
29
|
+
resolveMiddleware(
|
|
30
|
+
clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>,
|
|
31
|
+
configuration: EMRServerlessClientResolvedConfig,
|
|
32
|
+
options?: __HttpHandlerOptions
|
|
33
|
+
): Handler<
|
|
34
|
+
GetDashboardForJobRunCommandInput,
|
|
35
|
+
GetDashboardForJobRunCommandOutput
|
|
36
|
+
>;
|
|
37
|
+
private serialize;
|
|
38
|
+
private deserialize;
|
|
39
|
+
}
|
|
@@ -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";
|
|
@@ -159,6 +159,13 @@ export interface CancelJobRunResponse {
|
|
|
159
159
|
applicationId: string | undefined;
|
|
160
160
|
jobRunId: string | undefined;
|
|
161
161
|
}
|
|
162
|
+
export interface GetDashboardForJobRunRequest {
|
|
163
|
+
applicationId: string | undefined;
|
|
164
|
+
jobRunId: string | undefined;
|
|
165
|
+
}
|
|
166
|
+
export interface GetDashboardForJobRunResponse {
|
|
167
|
+
url?: string;
|
|
168
|
+
}
|
|
162
169
|
export interface GetJobRunRequest {
|
|
163
170
|
applicationId: string | undefined;
|
|
164
171
|
jobRunId: string | undefined;
|
|
@@ -385,6 +392,12 @@ export declare const CancelJobRunRequestFilterSensitiveLog: (
|
|
|
385
392
|
export declare const CancelJobRunResponseFilterSensitiveLog: (
|
|
386
393
|
obj: CancelJobRunResponse
|
|
387
394
|
) => any;
|
|
395
|
+
export declare const GetDashboardForJobRunRequestFilterSensitiveLog: (
|
|
396
|
+
obj: GetDashboardForJobRunRequest
|
|
397
|
+
) => any;
|
|
398
|
+
export declare const GetDashboardForJobRunResponseFilterSensitiveLog: (
|
|
399
|
+
obj: GetDashboardForJobRunResponse
|
|
400
|
+
) => any;
|
|
388
401
|
export declare const GetJobRunRequestFilterSensitiveLog: (
|
|
389
402
|
obj: GetJobRunRequest
|
|
390
403
|
) => any;
|
|
@@ -19,6 +19,10 @@ import {
|
|
|
19
19
|
GetApplicationCommandInput,
|
|
20
20
|
GetApplicationCommandOutput,
|
|
21
21
|
} from "../commands/GetApplicationCommand";
|
|
22
|
+
import {
|
|
23
|
+
GetDashboardForJobRunCommandInput,
|
|
24
|
+
GetDashboardForJobRunCommandOutput,
|
|
25
|
+
} from "../commands/GetDashboardForJobRunCommand";
|
|
22
26
|
import {
|
|
23
27
|
GetJobRunCommandInput,
|
|
24
28
|
GetJobRunCommandOutput,
|
|
@@ -75,6 +79,10 @@ export declare const serializeAws_restJson1GetApplicationCommand: (
|
|
|
75
79
|
input: GetApplicationCommandInput,
|
|
76
80
|
context: __SerdeContext
|
|
77
81
|
) => Promise<__HttpRequest>;
|
|
82
|
+
export declare const serializeAws_restJson1GetDashboardForJobRunCommand: (
|
|
83
|
+
input: GetDashboardForJobRunCommandInput,
|
|
84
|
+
context: __SerdeContext
|
|
85
|
+
) => Promise<__HttpRequest>;
|
|
78
86
|
export declare const serializeAws_restJson1GetJobRunCommand: (
|
|
79
87
|
input: GetJobRunCommandInput,
|
|
80
88
|
context: __SerdeContext
|
|
@@ -131,6 +139,10 @@ export declare const deserializeAws_restJson1GetApplicationCommand: (
|
|
|
131
139
|
output: __HttpResponse,
|
|
132
140
|
context: __SerdeContext
|
|
133
141
|
) => Promise<GetApplicationCommandOutput>;
|
|
142
|
+
export declare const deserializeAws_restJson1GetDashboardForJobRunCommand: (
|
|
143
|
+
output: __HttpResponse,
|
|
144
|
+
context: __SerdeContext
|
|
145
|
+
) => Promise<GetDashboardForJobRunCommandOutput>;
|
|
134
146
|
export declare const deserializeAws_restJson1GetJobRunCommand: (
|
|
135
147
|
output: __HttpResponse,
|
|
136
148
|
context: __SerdeContext
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/client-emr-serverless",
|
|
3
3
|
"description": "AWS SDK for JavaScript Emr Serverless Client for Node.js, Browser and React Native",
|
|
4
|
-
"version": "3.
|
|
4
|
+
"version": "3.181.0",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
|
|
7
7
|
"build:cjs": "tsc -p tsconfig.cjs.json",
|
|
@@ -19,9 +19,9 @@
|
|
|
19
19
|
"dependencies": {
|
|
20
20
|
"@aws-crypto/sha256-browser": "2.0.0",
|
|
21
21
|
"@aws-crypto/sha256-js": "2.0.0",
|
|
22
|
-
"@aws-sdk/client-sts": "3.
|
|
22
|
+
"@aws-sdk/client-sts": "3.181.0",
|
|
23
23
|
"@aws-sdk/config-resolver": "3.178.0",
|
|
24
|
-
"@aws-sdk/credential-provider-node": "3.
|
|
24
|
+
"@aws-sdk/credential-provider-node": "3.181.0",
|
|
25
25
|
"@aws-sdk/fetch-http-handler": "3.178.0",
|
|
26
26
|
"@aws-sdk/hash-node": "3.178.0",
|
|
27
27
|
"@aws-sdk/invalid-dependency": "3.178.0",
|