@aws-sdk/client-emr-serverless 3.180.0 → 3.183.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 +25 -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 +72 -64
- package/dist-es/EMRServerlessClient.js +22 -28
- package/dist-es/commands/CancelJobRunCommand.js +21 -28
- package/dist-es/commands/CreateApplicationCommand.js +21 -28
- package/dist-es/commands/DeleteApplicationCommand.js +21 -28
- package/dist-es/commands/GetApplicationCommand.js +21 -28
- package/dist-es/commands/GetDashboardForJobRunCommand.js +32 -0
- package/dist-es/commands/GetJobRunCommand.js +21 -28
- package/dist-es/commands/ListApplicationsCommand.js +21 -28
- package/dist-es/commands/ListJobRunsCommand.js +21 -28
- package/dist-es/commands/ListTagsForResourceCommand.js +21 -28
- package/dist-es/commands/StartApplicationCommand.js +21 -28
- package/dist-es/commands/StartJobRunCommand.js +21 -28
- package/dist-es/commands/StopApplicationCommand.js +21 -28
- package/dist-es/commands/TagResourceCommand.js +21 -28
- package/dist-es/commands/UntagResourceCommand.js +21 -28
- package/dist-es/commands/UpdateApplicationCommand.js +21 -28
- package/dist-es/commands/index.js +1 -0
- package/dist-es/endpoints.js +8 -8
- package/dist-es/models/EMRServerlessServiceException.js +5 -10
- package/dist-es/models/models_0.js +224 -114
- package/dist-es/pagination/ListApplicationsPaginator.js +25 -68
- package/dist-es/pagination/ListJobRunsPaginator.js +25 -68
- package/dist-es/protocols/Aws_restJson1.js +1150 -1455
- package/dist-es/runtimeConfig.browser.js +26 -12
- package/dist-es/runtimeConfig.js +30 -12
- package/dist-es/runtimeConfig.native.js +8 -5
- package/dist-es/runtimeConfig.shared.js +8 -11
- 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 +33 -33
package/dist-es/EMRServerless.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { __extends } from "tslib";
|
|
2
1
|
import { CancelJobRunCommand, } from "./commands/CancelJobRunCommand";
|
|
3
2
|
import { CreateApplicationCommand, } from "./commands/CreateApplicationCommand";
|
|
4
3
|
import { DeleteApplicationCommand, } from "./commands/DeleteApplicationCommand";
|
|
5
4
|
import { GetApplicationCommand, } from "./commands/GetApplicationCommand";
|
|
5
|
+
import { GetDashboardForJobRunCommand, } from "./commands/GetDashboardForJobRunCommand";
|
|
6
6
|
import { GetJobRunCommand } from "./commands/GetJobRunCommand";
|
|
7
7
|
import { ListApplicationsCommand, } from "./commands/ListApplicationsCommand";
|
|
8
8
|
import { ListJobRunsCommand } from "./commands/ListJobRunsCommand";
|
|
@@ -14,207 +14,215 @@ import { TagResourceCommand } from "./commands/TagResourceCommand";
|
|
|
14
14
|
import { UntagResourceCommand, } from "./commands/UntagResourceCommand";
|
|
15
15
|
import { UpdateApplicationCommand, } from "./commands/UpdateApplicationCommand";
|
|
16
16
|
import { EMRServerlessClient } from "./EMRServerlessClient";
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
17
|
+
export class EMRServerless extends EMRServerlessClient {
|
|
18
|
+
cancelJobRun(args, optionsOrCb, cb) {
|
|
19
|
+
const command = new CancelJobRunCommand(args);
|
|
20
|
+
if (typeof optionsOrCb === "function") {
|
|
21
|
+
this.send(command, optionsOrCb);
|
|
22
|
+
}
|
|
23
|
+
else if (typeof cb === "function") {
|
|
24
|
+
if (typeof optionsOrCb !== "object")
|
|
25
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
26
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
27
|
+
}
|
|
28
|
+
else {
|
|
29
|
+
return this.send(command, optionsOrCb);
|
|
30
|
+
}
|
|
21
31
|
}
|
|
22
|
-
|
|
23
|
-
|
|
32
|
+
createApplication(args, optionsOrCb, cb) {
|
|
33
|
+
const command = new CreateApplicationCommand(args);
|
|
24
34
|
if (typeof optionsOrCb === "function") {
|
|
25
35
|
this.send(command, optionsOrCb);
|
|
26
36
|
}
|
|
27
37
|
else if (typeof cb === "function") {
|
|
28
38
|
if (typeof optionsOrCb !== "object")
|
|
29
|
-
throw new Error(
|
|
39
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
30
40
|
this.send(command, optionsOrCb || {}, cb);
|
|
31
41
|
}
|
|
32
42
|
else {
|
|
33
43
|
return this.send(command, optionsOrCb);
|
|
34
44
|
}
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
|
|
45
|
+
}
|
|
46
|
+
deleteApplication(args, optionsOrCb, cb) {
|
|
47
|
+
const command = new DeleteApplicationCommand(args);
|
|
38
48
|
if (typeof optionsOrCb === "function") {
|
|
39
49
|
this.send(command, optionsOrCb);
|
|
40
50
|
}
|
|
41
51
|
else if (typeof cb === "function") {
|
|
42
52
|
if (typeof optionsOrCb !== "object")
|
|
43
|
-
throw new Error(
|
|
53
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
44
54
|
this.send(command, optionsOrCb || {}, cb);
|
|
45
55
|
}
|
|
46
56
|
else {
|
|
47
57
|
return this.send(command, optionsOrCb);
|
|
48
58
|
}
|
|
49
|
-
}
|
|
50
|
-
|
|
51
|
-
|
|
59
|
+
}
|
|
60
|
+
getApplication(args, optionsOrCb, cb) {
|
|
61
|
+
const command = new GetApplicationCommand(args);
|
|
52
62
|
if (typeof optionsOrCb === "function") {
|
|
53
63
|
this.send(command, optionsOrCb);
|
|
54
64
|
}
|
|
55
65
|
else if (typeof cb === "function") {
|
|
56
66
|
if (typeof optionsOrCb !== "object")
|
|
57
|
-
throw new Error(
|
|
67
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
58
68
|
this.send(command, optionsOrCb || {}, cb);
|
|
59
69
|
}
|
|
60
70
|
else {
|
|
61
71
|
return this.send(command, optionsOrCb);
|
|
62
72
|
}
|
|
63
|
-
}
|
|
64
|
-
|
|
65
|
-
|
|
73
|
+
}
|
|
74
|
+
getDashboardForJobRun(args, optionsOrCb, cb) {
|
|
75
|
+
const command = new GetDashboardForJobRunCommand(args);
|
|
66
76
|
if (typeof optionsOrCb === "function") {
|
|
67
77
|
this.send(command, optionsOrCb);
|
|
68
78
|
}
|
|
69
79
|
else if (typeof cb === "function") {
|
|
70
80
|
if (typeof optionsOrCb !== "object")
|
|
71
|
-
throw new Error(
|
|
81
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
72
82
|
this.send(command, optionsOrCb || {}, cb);
|
|
73
83
|
}
|
|
74
84
|
else {
|
|
75
85
|
return this.send(command, optionsOrCb);
|
|
76
86
|
}
|
|
77
|
-
}
|
|
78
|
-
|
|
79
|
-
|
|
87
|
+
}
|
|
88
|
+
getJobRun(args, optionsOrCb, cb) {
|
|
89
|
+
const command = new GetJobRunCommand(args);
|
|
80
90
|
if (typeof optionsOrCb === "function") {
|
|
81
91
|
this.send(command, optionsOrCb);
|
|
82
92
|
}
|
|
83
93
|
else if (typeof cb === "function") {
|
|
84
94
|
if (typeof optionsOrCb !== "object")
|
|
85
|
-
throw new Error(
|
|
95
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
86
96
|
this.send(command, optionsOrCb || {}, cb);
|
|
87
97
|
}
|
|
88
98
|
else {
|
|
89
99
|
return this.send(command, optionsOrCb);
|
|
90
100
|
}
|
|
91
|
-
}
|
|
92
|
-
|
|
93
|
-
|
|
101
|
+
}
|
|
102
|
+
listApplications(args, optionsOrCb, cb) {
|
|
103
|
+
const command = new ListApplicationsCommand(args);
|
|
94
104
|
if (typeof optionsOrCb === "function") {
|
|
95
105
|
this.send(command, optionsOrCb);
|
|
96
106
|
}
|
|
97
107
|
else if (typeof cb === "function") {
|
|
98
108
|
if (typeof optionsOrCb !== "object")
|
|
99
|
-
throw new Error(
|
|
109
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
100
110
|
this.send(command, optionsOrCb || {}, cb);
|
|
101
111
|
}
|
|
102
112
|
else {
|
|
103
113
|
return this.send(command, optionsOrCb);
|
|
104
114
|
}
|
|
105
|
-
}
|
|
106
|
-
|
|
107
|
-
|
|
115
|
+
}
|
|
116
|
+
listJobRuns(args, optionsOrCb, cb) {
|
|
117
|
+
const command = new ListJobRunsCommand(args);
|
|
108
118
|
if (typeof optionsOrCb === "function") {
|
|
109
119
|
this.send(command, optionsOrCb);
|
|
110
120
|
}
|
|
111
121
|
else if (typeof cb === "function") {
|
|
112
122
|
if (typeof optionsOrCb !== "object")
|
|
113
|
-
throw new Error(
|
|
123
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
114
124
|
this.send(command, optionsOrCb || {}, cb);
|
|
115
125
|
}
|
|
116
126
|
else {
|
|
117
127
|
return this.send(command, optionsOrCb);
|
|
118
128
|
}
|
|
119
|
-
}
|
|
120
|
-
|
|
121
|
-
|
|
129
|
+
}
|
|
130
|
+
listTagsForResource(args, optionsOrCb, cb) {
|
|
131
|
+
const command = new ListTagsForResourceCommand(args);
|
|
122
132
|
if (typeof optionsOrCb === "function") {
|
|
123
133
|
this.send(command, optionsOrCb);
|
|
124
134
|
}
|
|
125
135
|
else if (typeof cb === "function") {
|
|
126
136
|
if (typeof optionsOrCb !== "object")
|
|
127
|
-
throw new Error(
|
|
137
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
128
138
|
this.send(command, optionsOrCb || {}, cb);
|
|
129
139
|
}
|
|
130
140
|
else {
|
|
131
141
|
return this.send(command, optionsOrCb);
|
|
132
142
|
}
|
|
133
|
-
}
|
|
134
|
-
|
|
135
|
-
|
|
143
|
+
}
|
|
144
|
+
startApplication(args, optionsOrCb, cb) {
|
|
145
|
+
const command = new StartApplicationCommand(args);
|
|
136
146
|
if (typeof optionsOrCb === "function") {
|
|
137
147
|
this.send(command, optionsOrCb);
|
|
138
148
|
}
|
|
139
149
|
else if (typeof cb === "function") {
|
|
140
150
|
if (typeof optionsOrCb !== "object")
|
|
141
|
-
throw new Error(
|
|
151
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
142
152
|
this.send(command, optionsOrCb || {}, cb);
|
|
143
153
|
}
|
|
144
154
|
else {
|
|
145
155
|
return this.send(command, optionsOrCb);
|
|
146
156
|
}
|
|
147
|
-
}
|
|
148
|
-
|
|
149
|
-
|
|
157
|
+
}
|
|
158
|
+
startJobRun(args, optionsOrCb, cb) {
|
|
159
|
+
const command = new StartJobRunCommand(args);
|
|
150
160
|
if (typeof optionsOrCb === "function") {
|
|
151
161
|
this.send(command, optionsOrCb);
|
|
152
162
|
}
|
|
153
163
|
else if (typeof cb === "function") {
|
|
154
164
|
if (typeof optionsOrCb !== "object")
|
|
155
|
-
throw new Error(
|
|
165
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
156
166
|
this.send(command, optionsOrCb || {}, cb);
|
|
157
167
|
}
|
|
158
168
|
else {
|
|
159
169
|
return this.send(command, optionsOrCb);
|
|
160
170
|
}
|
|
161
|
-
}
|
|
162
|
-
|
|
163
|
-
|
|
171
|
+
}
|
|
172
|
+
stopApplication(args, optionsOrCb, cb) {
|
|
173
|
+
const command = new StopApplicationCommand(args);
|
|
164
174
|
if (typeof optionsOrCb === "function") {
|
|
165
175
|
this.send(command, optionsOrCb);
|
|
166
176
|
}
|
|
167
177
|
else if (typeof cb === "function") {
|
|
168
178
|
if (typeof optionsOrCb !== "object")
|
|
169
|
-
throw new Error(
|
|
179
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
170
180
|
this.send(command, optionsOrCb || {}, cb);
|
|
171
181
|
}
|
|
172
182
|
else {
|
|
173
183
|
return this.send(command, optionsOrCb);
|
|
174
184
|
}
|
|
175
|
-
}
|
|
176
|
-
|
|
177
|
-
|
|
185
|
+
}
|
|
186
|
+
tagResource(args, optionsOrCb, cb) {
|
|
187
|
+
const command = new TagResourceCommand(args);
|
|
178
188
|
if (typeof optionsOrCb === "function") {
|
|
179
189
|
this.send(command, optionsOrCb);
|
|
180
190
|
}
|
|
181
191
|
else if (typeof cb === "function") {
|
|
182
192
|
if (typeof optionsOrCb !== "object")
|
|
183
|
-
throw new Error(
|
|
193
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
184
194
|
this.send(command, optionsOrCb || {}, cb);
|
|
185
195
|
}
|
|
186
196
|
else {
|
|
187
197
|
return this.send(command, optionsOrCb);
|
|
188
198
|
}
|
|
189
|
-
}
|
|
190
|
-
|
|
191
|
-
|
|
199
|
+
}
|
|
200
|
+
untagResource(args, optionsOrCb, cb) {
|
|
201
|
+
const command = new UntagResourceCommand(args);
|
|
192
202
|
if (typeof optionsOrCb === "function") {
|
|
193
203
|
this.send(command, optionsOrCb);
|
|
194
204
|
}
|
|
195
205
|
else if (typeof cb === "function") {
|
|
196
206
|
if (typeof optionsOrCb !== "object")
|
|
197
|
-
throw new Error(
|
|
207
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
198
208
|
this.send(command, optionsOrCb || {}, cb);
|
|
199
209
|
}
|
|
200
210
|
else {
|
|
201
211
|
return this.send(command, optionsOrCb);
|
|
202
212
|
}
|
|
203
|
-
}
|
|
204
|
-
|
|
205
|
-
|
|
213
|
+
}
|
|
214
|
+
updateApplication(args, optionsOrCb, cb) {
|
|
215
|
+
const command = new UpdateApplicationCommand(args);
|
|
206
216
|
if (typeof optionsOrCb === "function") {
|
|
207
217
|
this.send(command, optionsOrCb);
|
|
208
218
|
}
|
|
209
219
|
else if (typeof cb === "function") {
|
|
210
220
|
if (typeof optionsOrCb !== "object")
|
|
211
|
-
throw new Error(
|
|
221
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
212
222
|
this.send(command, optionsOrCb || {}, cb);
|
|
213
223
|
}
|
|
214
224
|
else {
|
|
215
225
|
return this.send(command, optionsOrCb);
|
|
216
226
|
}
|
|
217
|
-
}
|
|
218
|
-
|
|
219
|
-
}(EMRServerlessClient));
|
|
220
|
-
export { EMRServerless };
|
|
227
|
+
}
|
|
228
|
+
}
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { __extends } from "tslib";
|
|
2
1
|
import { resolveEndpointsConfig, resolveRegionConfig, } from "@aws-sdk/config-resolver";
|
|
3
2
|
import { getContentLengthPlugin } from "@aws-sdk/middleware-content-length";
|
|
4
3
|
import { getHostHeaderPlugin, resolveHostHeaderConfig, } from "@aws-sdk/middleware-host-header";
|
|
@@ -9,31 +8,26 @@ import { getAwsAuthPlugin, resolveAwsAuthConfig, } from "@aws-sdk/middleware-sig
|
|
|
9
8
|
import { getUserAgentPlugin, resolveUserAgentConfig, } from "@aws-sdk/middleware-user-agent";
|
|
10
9
|
import { Client as __Client, } from "@aws-sdk/smithy-client";
|
|
11
10
|
import { getRuntimeConfig as __getRuntimeConfig } from "./runtimeConfig";
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
_this.middlewareStack.use(getAwsAuthPlugin(_this.config));
|
|
31
|
-
_this.middlewareStack.use(getUserAgentPlugin(_this.config));
|
|
32
|
-
return _this;
|
|
11
|
+
export class EMRServerlessClient extends __Client {
|
|
12
|
+
constructor(configuration) {
|
|
13
|
+
const _config_0 = __getRuntimeConfig(configuration);
|
|
14
|
+
const _config_1 = resolveRegionConfig(_config_0);
|
|
15
|
+
const _config_2 = resolveEndpointsConfig(_config_1);
|
|
16
|
+
const _config_3 = resolveRetryConfig(_config_2);
|
|
17
|
+
const _config_4 = resolveHostHeaderConfig(_config_3);
|
|
18
|
+
const _config_5 = resolveAwsAuthConfig(_config_4);
|
|
19
|
+
const _config_6 = resolveUserAgentConfig(_config_5);
|
|
20
|
+
super(_config_6);
|
|
21
|
+
this.config = _config_6;
|
|
22
|
+
this.middlewareStack.use(getRetryPlugin(this.config));
|
|
23
|
+
this.middlewareStack.use(getContentLengthPlugin(this.config));
|
|
24
|
+
this.middlewareStack.use(getHostHeaderPlugin(this.config));
|
|
25
|
+
this.middlewareStack.use(getLoggerPlugin(this.config));
|
|
26
|
+
this.middlewareStack.use(getRecursionDetectionPlugin(this.config));
|
|
27
|
+
this.middlewareStack.use(getAwsAuthPlugin(this.config));
|
|
28
|
+
this.middlewareStack.use(getUserAgentPlugin(this.config));
|
|
33
29
|
}
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
}(__Client));
|
|
39
|
-
export { EMRServerlessClient };
|
|
30
|
+
destroy() {
|
|
31
|
+
super.destroy();
|
|
32
|
+
}
|
|
33
|
+
}
|
|
@@ -1,39 +1,32 @@
|
|
|
1
|
-
import { __extends } from "tslib";
|
|
2
1
|
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
3
2
|
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
4
3
|
import { CancelJobRunRequestFilterSensitiveLog, CancelJobRunResponseFilterSensitiveLog, } from "../models/models_0";
|
|
5
4
|
import { deserializeAws_restJson1CancelJobRunCommand, serializeAws_restJson1CancelJobRunCommand, } from "../protocols/Aws_restJson1";
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
_this.input = input;
|
|
11
|
-
return _this;
|
|
5
|
+
export class CancelJobRunCommand extends $Command {
|
|
6
|
+
constructor(input) {
|
|
7
|
+
super();
|
|
8
|
+
this.input = input;
|
|
12
9
|
}
|
|
13
|
-
|
|
10
|
+
resolveMiddleware(clientStack, configuration, options) {
|
|
14
11
|
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
logger
|
|
21
|
-
clientName
|
|
22
|
-
commandName
|
|
12
|
+
const stack = clientStack.concat(this.middlewareStack);
|
|
13
|
+
const { logger } = configuration;
|
|
14
|
+
const clientName = "EMRServerlessClient";
|
|
15
|
+
const commandName = "CancelJobRunCommand";
|
|
16
|
+
const handlerExecutionContext = {
|
|
17
|
+
logger,
|
|
18
|
+
clientName,
|
|
19
|
+
commandName,
|
|
23
20
|
inputFilterSensitiveLog: CancelJobRunRequestFilterSensitiveLog,
|
|
24
21
|
outputFilterSensitiveLog: CancelJobRunResponseFilterSensitiveLog,
|
|
25
22
|
};
|
|
26
|
-
|
|
27
|
-
return stack.resolve(
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
};
|
|
31
|
-
CancelJobRunCommand.prototype.serialize = function (input, context) {
|
|
23
|
+
const { requestHandler } = configuration;
|
|
24
|
+
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
25
|
+
}
|
|
26
|
+
serialize(input, context) {
|
|
32
27
|
return serializeAws_restJson1CancelJobRunCommand(input, context);
|
|
33
|
-
}
|
|
34
|
-
|
|
28
|
+
}
|
|
29
|
+
deserialize(output, context) {
|
|
35
30
|
return deserializeAws_restJson1CancelJobRunCommand(output, context);
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
}($Command));
|
|
39
|
-
export { CancelJobRunCommand };
|
|
31
|
+
}
|
|
32
|
+
}
|
|
@@ -1,39 +1,32 @@
|
|
|
1
|
-
import { __extends } from "tslib";
|
|
2
1
|
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
3
2
|
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
4
3
|
import { CreateApplicationRequestFilterSensitiveLog, CreateApplicationResponseFilterSensitiveLog, } from "../models/models_0";
|
|
5
4
|
import { deserializeAws_restJson1CreateApplicationCommand, serializeAws_restJson1CreateApplicationCommand, } from "../protocols/Aws_restJson1";
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
_this.input = input;
|
|
11
|
-
return _this;
|
|
5
|
+
export class CreateApplicationCommand extends $Command {
|
|
6
|
+
constructor(input) {
|
|
7
|
+
super();
|
|
8
|
+
this.input = input;
|
|
12
9
|
}
|
|
13
|
-
|
|
10
|
+
resolveMiddleware(clientStack, configuration, options) {
|
|
14
11
|
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
logger
|
|
21
|
-
clientName
|
|
22
|
-
commandName
|
|
12
|
+
const stack = clientStack.concat(this.middlewareStack);
|
|
13
|
+
const { logger } = configuration;
|
|
14
|
+
const clientName = "EMRServerlessClient";
|
|
15
|
+
const commandName = "CreateApplicationCommand";
|
|
16
|
+
const handlerExecutionContext = {
|
|
17
|
+
logger,
|
|
18
|
+
clientName,
|
|
19
|
+
commandName,
|
|
23
20
|
inputFilterSensitiveLog: CreateApplicationRequestFilterSensitiveLog,
|
|
24
21
|
outputFilterSensitiveLog: CreateApplicationResponseFilterSensitiveLog,
|
|
25
22
|
};
|
|
26
|
-
|
|
27
|
-
return stack.resolve(
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
};
|
|
31
|
-
CreateApplicationCommand.prototype.serialize = function (input, context) {
|
|
23
|
+
const { requestHandler } = configuration;
|
|
24
|
+
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
25
|
+
}
|
|
26
|
+
serialize(input, context) {
|
|
32
27
|
return serializeAws_restJson1CreateApplicationCommand(input, context);
|
|
33
|
-
}
|
|
34
|
-
|
|
28
|
+
}
|
|
29
|
+
deserialize(output, context) {
|
|
35
30
|
return deserializeAws_restJson1CreateApplicationCommand(output, context);
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
}($Command));
|
|
39
|
-
export { CreateApplicationCommand };
|
|
31
|
+
}
|
|
32
|
+
}
|
|
@@ -1,39 +1,32 @@
|
|
|
1
|
-
import { __extends } from "tslib";
|
|
2
1
|
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
3
2
|
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
4
3
|
import { DeleteApplicationRequestFilterSensitiveLog, DeleteApplicationResponseFilterSensitiveLog, } from "../models/models_0";
|
|
5
4
|
import { deserializeAws_restJson1DeleteApplicationCommand, serializeAws_restJson1DeleteApplicationCommand, } from "../protocols/Aws_restJson1";
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
_this.input = input;
|
|
11
|
-
return _this;
|
|
5
|
+
export class DeleteApplicationCommand extends $Command {
|
|
6
|
+
constructor(input) {
|
|
7
|
+
super();
|
|
8
|
+
this.input = input;
|
|
12
9
|
}
|
|
13
|
-
|
|
10
|
+
resolveMiddleware(clientStack, configuration, options) {
|
|
14
11
|
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
logger
|
|
21
|
-
clientName
|
|
22
|
-
commandName
|
|
12
|
+
const stack = clientStack.concat(this.middlewareStack);
|
|
13
|
+
const { logger } = configuration;
|
|
14
|
+
const clientName = "EMRServerlessClient";
|
|
15
|
+
const commandName = "DeleteApplicationCommand";
|
|
16
|
+
const handlerExecutionContext = {
|
|
17
|
+
logger,
|
|
18
|
+
clientName,
|
|
19
|
+
commandName,
|
|
23
20
|
inputFilterSensitiveLog: DeleteApplicationRequestFilterSensitiveLog,
|
|
24
21
|
outputFilterSensitiveLog: DeleteApplicationResponseFilterSensitiveLog,
|
|
25
22
|
};
|
|
26
|
-
|
|
27
|
-
return stack.resolve(
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
};
|
|
31
|
-
DeleteApplicationCommand.prototype.serialize = function (input, context) {
|
|
23
|
+
const { requestHandler } = configuration;
|
|
24
|
+
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
25
|
+
}
|
|
26
|
+
serialize(input, context) {
|
|
32
27
|
return serializeAws_restJson1DeleteApplicationCommand(input, context);
|
|
33
|
-
}
|
|
34
|
-
|
|
28
|
+
}
|
|
29
|
+
deserialize(output, context) {
|
|
35
30
|
return deserializeAws_restJson1DeleteApplicationCommand(output, context);
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
}($Command));
|
|
39
|
-
export { DeleteApplicationCommand };
|
|
31
|
+
}
|
|
32
|
+
}
|
|
@@ -1,39 +1,32 @@
|
|
|
1
|
-
import { __extends } from "tslib";
|
|
2
1
|
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
3
2
|
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
4
3
|
import { GetApplicationRequestFilterSensitiveLog, GetApplicationResponseFilterSensitiveLog, } from "../models/models_0";
|
|
5
4
|
import { deserializeAws_restJson1GetApplicationCommand, serializeAws_restJson1GetApplicationCommand, } from "../protocols/Aws_restJson1";
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
_this.input = input;
|
|
11
|
-
return _this;
|
|
5
|
+
export class GetApplicationCommand extends $Command {
|
|
6
|
+
constructor(input) {
|
|
7
|
+
super();
|
|
8
|
+
this.input = input;
|
|
12
9
|
}
|
|
13
|
-
|
|
10
|
+
resolveMiddleware(clientStack, configuration, options) {
|
|
14
11
|
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
logger
|
|
21
|
-
clientName
|
|
22
|
-
commandName
|
|
12
|
+
const stack = clientStack.concat(this.middlewareStack);
|
|
13
|
+
const { logger } = configuration;
|
|
14
|
+
const clientName = "EMRServerlessClient";
|
|
15
|
+
const commandName = "GetApplicationCommand";
|
|
16
|
+
const handlerExecutionContext = {
|
|
17
|
+
logger,
|
|
18
|
+
clientName,
|
|
19
|
+
commandName,
|
|
23
20
|
inputFilterSensitiveLog: GetApplicationRequestFilterSensitiveLog,
|
|
24
21
|
outputFilterSensitiveLog: GetApplicationResponseFilterSensitiveLog,
|
|
25
22
|
};
|
|
26
|
-
|
|
27
|
-
return stack.resolve(
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
};
|
|
31
|
-
GetApplicationCommand.prototype.serialize = function (input, context) {
|
|
23
|
+
const { requestHandler } = configuration;
|
|
24
|
+
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
25
|
+
}
|
|
26
|
+
serialize(input, context) {
|
|
32
27
|
return serializeAws_restJson1GetApplicationCommand(input, context);
|
|
33
|
-
}
|
|
34
|
-
|
|
28
|
+
}
|
|
29
|
+
deserialize(output, context) {
|
|
35
30
|
return deserializeAws_restJson1GetApplicationCommand(output, context);
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
}($Command));
|
|
39
|
-
export { GetApplicationCommand };
|
|
31
|
+
}
|
|
32
|
+
}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
2
|
+
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
3
|
+
import { GetDashboardForJobRunRequestFilterSensitiveLog, GetDashboardForJobRunResponseFilterSensitiveLog, } from "../models/models_0";
|
|
4
|
+
import { deserializeAws_restJson1GetDashboardForJobRunCommand, serializeAws_restJson1GetDashboardForJobRunCommand, } from "../protocols/Aws_restJson1";
|
|
5
|
+
export class GetDashboardForJobRunCommand extends $Command {
|
|
6
|
+
constructor(input) {
|
|
7
|
+
super();
|
|
8
|
+
this.input = input;
|
|
9
|
+
}
|
|
10
|
+
resolveMiddleware(clientStack, configuration, options) {
|
|
11
|
+
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
12
|
+
const stack = clientStack.concat(this.middlewareStack);
|
|
13
|
+
const { logger } = configuration;
|
|
14
|
+
const clientName = "EMRServerlessClient";
|
|
15
|
+
const commandName = "GetDashboardForJobRunCommand";
|
|
16
|
+
const handlerExecutionContext = {
|
|
17
|
+
logger,
|
|
18
|
+
clientName,
|
|
19
|
+
commandName,
|
|
20
|
+
inputFilterSensitiveLog: GetDashboardForJobRunRequestFilterSensitiveLog,
|
|
21
|
+
outputFilterSensitiveLog: GetDashboardForJobRunResponseFilterSensitiveLog,
|
|
22
|
+
};
|
|
23
|
+
const { requestHandler } = configuration;
|
|
24
|
+
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
25
|
+
}
|
|
26
|
+
serialize(input, context) {
|
|
27
|
+
return serializeAws_restJson1GetDashboardForJobRunCommand(input, context);
|
|
28
|
+
}
|
|
29
|
+
deserialize(output, context) {
|
|
30
|
+
return deserializeAws_restJson1GetDashboardForJobRunCommand(output, context);
|
|
31
|
+
}
|
|
32
|
+
}
|