@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.
- package/CHANGELOG.md +28 -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/endpoints.js +18 -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/endpoints.js +18 -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 +6 -6
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,34 @@
|
|
|
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
|
+
|
|
23
|
+
# [3.180.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.179.0...v3.180.0) (2022-09-27)
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
### Features
|
|
27
|
+
|
|
28
|
+
* **clients:** update client endpoints as of 2022-09-27 ([28c0b1d](https://github.com/aws/aws-sdk-js-v3/commit/28c0b1d199de1381700c786e3d02a47d1e5bfde2))
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
|
|
32
|
+
|
|
33
|
+
|
|
6
34
|
# [3.179.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.178.0...v3.179.0) (2022-09-26)
|
|
7
35
|
|
|
8
36
|
**Note:** Version bump only for package @aws-sdk/client-emr-serverless
|
|
@@ -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);
|
package/dist-cjs/endpoints.js
CHANGED
|
@@ -3,6 +3,14 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.defaultRegionInfoProvider = void 0;
|
|
4
4
|
const config_resolver_1 = require("@aws-sdk/config-resolver");
|
|
5
5
|
const regionHash = {
|
|
6
|
+
"ca-central-1": {
|
|
7
|
+
variants: [
|
|
8
|
+
{
|
|
9
|
+
hostname: "emr-serverless-fips.ca-central-1.amazonaws.com",
|
|
10
|
+
tags: ["fips"],
|
|
11
|
+
},
|
|
12
|
+
],
|
|
13
|
+
},
|
|
6
14
|
"us-east-1": {
|
|
7
15
|
variants: [
|
|
8
16
|
{
|
|
@@ -19,6 +27,14 @@ const regionHash = {
|
|
|
19
27
|
},
|
|
20
28
|
],
|
|
21
29
|
},
|
|
30
|
+
"us-west-1": {
|
|
31
|
+
variants: [
|
|
32
|
+
{
|
|
33
|
+
hostname: "emr-serverless-fips.us-west-1.amazonaws.com",
|
|
34
|
+
tags: ["fips"],
|
|
35
|
+
},
|
|
36
|
+
],
|
|
37
|
+
},
|
|
22
38
|
"us-west-2": {
|
|
23
39
|
variants: [
|
|
24
40
|
{
|
|
@@ -47,8 +63,10 @@ const partitionHash = {
|
|
|
47
63
|
"eu-west-1",
|
|
48
64
|
"eu-west-2",
|
|
49
65
|
"eu-west-3",
|
|
66
|
+
"fips-ca-central-1",
|
|
50
67
|
"fips-us-east-1",
|
|
51
68
|
"fips-us-east-2",
|
|
69
|
+
"fips-us-west-1",
|
|
52
70
|
"fips-us-west-2",
|
|
53
71
|
"me-central-1",
|
|
54
72
|
"me-south-1",
|
|
@@ -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";
|
package/dist-es/endpoints.js
CHANGED
|
@@ -1,6 +1,14 @@
|
|
|
1
1
|
import { __assign, __awaiter, __generator } from "tslib";
|
|
2
2
|
import { getRegionInfo } from "@aws-sdk/config-resolver";
|
|
3
3
|
var regionHash = {
|
|
4
|
+
"ca-central-1": {
|
|
5
|
+
variants: [
|
|
6
|
+
{
|
|
7
|
+
hostname: "emr-serverless-fips.ca-central-1.amazonaws.com",
|
|
8
|
+
tags: ["fips"],
|
|
9
|
+
},
|
|
10
|
+
],
|
|
11
|
+
},
|
|
4
12
|
"us-east-1": {
|
|
5
13
|
variants: [
|
|
6
14
|
{
|
|
@@ -17,6 +25,14 @@ var regionHash = {
|
|
|
17
25
|
},
|
|
18
26
|
],
|
|
19
27
|
},
|
|
28
|
+
"us-west-1": {
|
|
29
|
+
variants: [
|
|
30
|
+
{
|
|
31
|
+
hostname: "emr-serverless-fips.us-west-1.amazonaws.com",
|
|
32
|
+
tags: ["fips"],
|
|
33
|
+
},
|
|
34
|
+
],
|
|
35
|
+
},
|
|
20
36
|
"us-west-2": {
|
|
21
37
|
variants: [
|
|
22
38
|
{
|
|
@@ -45,8 +61,10 @@ var partitionHash = {
|
|
|
45
61
|
"eu-west-1",
|
|
46
62
|
"eu-west-2",
|
|
47
63
|
"eu-west-3",
|
|
64
|
+
"fips-ca-central-1",
|
|
48
65
|
"fips-us-east-1",
|
|
49
66
|
"fips-us-east-2",
|
|
67
|
+
"fips-us-west-1",
|
|
50
68
|
"fips-us-west-2",
|
|
51
69
|
"me-central-1",
|
|
52
70
|
"me-south-1",
|
|
@@ -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)); };
|