@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.
Files changed (47) hide show
  1. package/CHANGELOG.md +25 -0
  2. package/dist-cjs/EMRServerless.js +15 -0
  3. package/dist-cjs/commands/GetDashboardForJobRunCommand.js +36 -0
  4. package/dist-cjs/commands/index.js +1 -0
  5. package/dist-cjs/models/models_0.js +10 -2
  6. package/dist-cjs/protocols/Aws_restJson1.js +82 -23
  7. package/dist-es/EMRServerless.js +72 -64
  8. package/dist-es/EMRServerlessClient.js +22 -28
  9. package/dist-es/commands/CancelJobRunCommand.js +21 -28
  10. package/dist-es/commands/CreateApplicationCommand.js +21 -28
  11. package/dist-es/commands/DeleteApplicationCommand.js +21 -28
  12. package/dist-es/commands/GetApplicationCommand.js +21 -28
  13. package/dist-es/commands/GetDashboardForJobRunCommand.js +32 -0
  14. package/dist-es/commands/GetJobRunCommand.js +21 -28
  15. package/dist-es/commands/ListApplicationsCommand.js +21 -28
  16. package/dist-es/commands/ListJobRunsCommand.js +21 -28
  17. package/dist-es/commands/ListTagsForResourceCommand.js +21 -28
  18. package/dist-es/commands/StartApplicationCommand.js +21 -28
  19. package/dist-es/commands/StartJobRunCommand.js +21 -28
  20. package/dist-es/commands/StopApplicationCommand.js +21 -28
  21. package/dist-es/commands/TagResourceCommand.js +21 -28
  22. package/dist-es/commands/UntagResourceCommand.js +21 -28
  23. package/dist-es/commands/UpdateApplicationCommand.js +21 -28
  24. package/dist-es/commands/index.js +1 -0
  25. package/dist-es/endpoints.js +8 -8
  26. package/dist-es/models/EMRServerlessServiceException.js +5 -10
  27. package/dist-es/models/models_0.js +224 -114
  28. package/dist-es/pagination/ListApplicationsPaginator.js +25 -68
  29. package/dist-es/pagination/ListJobRunsPaginator.js +25 -68
  30. package/dist-es/protocols/Aws_restJson1.js +1150 -1455
  31. package/dist-es/runtimeConfig.browser.js +26 -12
  32. package/dist-es/runtimeConfig.js +30 -12
  33. package/dist-es/runtimeConfig.native.js +8 -5
  34. package/dist-es/runtimeConfig.shared.js +8 -11
  35. package/dist-types/EMRServerless.d.ts +7 -0
  36. package/dist-types/EMRServerlessClient.d.ts +3 -2
  37. package/dist-types/commands/GetDashboardForJobRunCommand.d.ts +35 -0
  38. package/dist-types/commands/index.d.ts +1 -0
  39. package/dist-types/models/models_0.d.ts +68 -22
  40. package/dist-types/protocols/Aws_restJson1.d.ts +3 -0
  41. package/dist-types/ts3.4/EMRServerless.d.ts +17 -0
  42. package/dist-types/ts3.4/EMRServerlessClient.d.ts +6 -0
  43. package/dist-types/ts3.4/commands/GetDashboardForJobRunCommand.d.ts +39 -0
  44. package/dist-types/ts3.4/commands/index.d.ts +1 -0
  45. package/dist-types/ts3.4/models/models_0.d.ts +13 -0
  46. package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +12 -0
  47. package/package.json +33 -33
@@ -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
- var EMRServerless = (function (_super) {
18
- __extends(EMRServerless, _super);
19
- function EMRServerless() {
20
- return _super !== null && _super.apply(this, arguments) || this;
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
- EMRServerless.prototype.cancelJobRun = function (args, optionsOrCb, cb) {
23
- var command = new CancelJobRunCommand(args);
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("Expect http options but get ".concat(typeof optionsOrCb));
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
- EMRServerless.prototype.createApplication = function (args, optionsOrCb, cb) {
37
- var command = new CreateApplicationCommand(args);
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("Expect http options but get ".concat(typeof optionsOrCb));
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
- EMRServerless.prototype.deleteApplication = function (args, optionsOrCb, cb) {
51
- var command = new DeleteApplicationCommand(args);
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("Expect http options but get ".concat(typeof optionsOrCb));
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
- EMRServerless.prototype.getApplication = function (args, optionsOrCb, cb) {
65
- var command = new GetApplicationCommand(args);
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("Expect http options but get ".concat(typeof optionsOrCb));
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
- EMRServerless.prototype.getJobRun = function (args, optionsOrCb, cb) {
79
- var command = new GetJobRunCommand(args);
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("Expect http options but get ".concat(typeof optionsOrCb));
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
- EMRServerless.prototype.listApplications = function (args, optionsOrCb, cb) {
93
- var command = new ListApplicationsCommand(args);
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("Expect http options but get ".concat(typeof optionsOrCb));
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
- EMRServerless.prototype.listJobRuns = function (args, optionsOrCb, cb) {
107
- var command = new ListJobRunsCommand(args);
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("Expect http options but get ".concat(typeof optionsOrCb));
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
- EMRServerless.prototype.listTagsForResource = function (args, optionsOrCb, cb) {
121
- var command = new ListTagsForResourceCommand(args);
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("Expect http options but get ".concat(typeof optionsOrCb));
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
- EMRServerless.prototype.startApplication = function (args, optionsOrCb, cb) {
135
- var command = new StartApplicationCommand(args);
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("Expect http options but get ".concat(typeof optionsOrCb));
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
- EMRServerless.prototype.startJobRun = function (args, optionsOrCb, cb) {
149
- var command = new StartJobRunCommand(args);
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("Expect http options but get ".concat(typeof optionsOrCb));
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
- EMRServerless.prototype.stopApplication = function (args, optionsOrCb, cb) {
163
- var command = new StopApplicationCommand(args);
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("Expect http options but get ".concat(typeof optionsOrCb));
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
- EMRServerless.prototype.tagResource = function (args, optionsOrCb, cb) {
177
- var command = new TagResourceCommand(args);
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("Expect http options but get ".concat(typeof optionsOrCb));
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
- EMRServerless.prototype.untagResource = function (args, optionsOrCb, cb) {
191
- var command = new UntagResourceCommand(args);
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("Expect http options but get ".concat(typeof optionsOrCb));
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
- EMRServerless.prototype.updateApplication = function (args, optionsOrCb, cb) {
205
- var command = new UpdateApplicationCommand(args);
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("Expect http options but get ".concat(typeof optionsOrCb));
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
- return EMRServerless;
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
- var EMRServerlessClient = (function (_super) {
13
- __extends(EMRServerlessClient, _super);
14
- function EMRServerlessClient(configuration) {
15
- var _this = this;
16
- var _config_0 = __getRuntimeConfig(configuration);
17
- var _config_1 = resolveRegionConfig(_config_0);
18
- var _config_2 = resolveEndpointsConfig(_config_1);
19
- var _config_3 = resolveRetryConfig(_config_2);
20
- var _config_4 = resolveHostHeaderConfig(_config_3);
21
- var _config_5 = resolveAwsAuthConfig(_config_4);
22
- var _config_6 = resolveUserAgentConfig(_config_5);
23
- _this = _super.call(this, _config_6) || this;
24
- _this.config = _config_6;
25
- _this.middlewareStack.use(getRetryPlugin(_this.config));
26
- _this.middlewareStack.use(getContentLengthPlugin(_this.config));
27
- _this.middlewareStack.use(getHostHeaderPlugin(_this.config));
28
- _this.middlewareStack.use(getLoggerPlugin(_this.config));
29
- _this.middlewareStack.use(getRecursionDetectionPlugin(_this.config));
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
- EMRServerlessClient.prototype.destroy = function () {
35
- _super.prototype.destroy.call(this);
36
- };
37
- return EMRServerlessClient;
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
- var CancelJobRunCommand = (function (_super) {
7
- __extends(CancelJobRunCommand, _super);
8
- function CancelJobRunCommand(input) {
9
- var _this = _super.call(this) || this;
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
- CancelJobRunCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
10
+ resolveMiddleware(clientStack, configuration, options) {
14
11
  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 = "CancelJobRunCommand";
19
- var handlerExecutionContext = {
20
- logger: logger,
21
- clientName: clientName,
22
- commandName: 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
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
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
- CancelJobRunCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_restJson1CancelJobRunCommand(output, context);
36
- };
37
- return CancelJobRunCommand;
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
- var CreateApplicationCommand = (function (_super) {
7
- __extends(CreateApplicationCommand, _super);
8
- function CreateApplicationCommand(input) {
9
- var _this = _super.call(this) || this;
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
- CreateApplicationCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
10
+ resolveMiddleware(clientStack, configuration, options) {
14
11
  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 = "CreateApplicationCommand";
19
- var handlerExecutionContext = {
20
- logger: logger,
21
- clientName: clientName,
22
- commandName: 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
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
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
- CreateApplicationCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_restJson1CreateApplicationCommand(output, context);
36
- };
37
- return CreateApplicationCommand;
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
- var DeleteApplicationCommand = (function (_super) {
7
- __extends(DeleteApplicationCommand, _super);
8
- function DeleteApplicationCommand(input) {
9
- var _this = _super.call(this) || this;
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
- DeleteApplicationCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
10
+ resolveMiddleware(clientStack, configuration, options) {
14
11
  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 = "DeleteApplicationCommand";
19
- var handlerExecutionContext = {
20
- logger: logger,
21
- clientName: clientName,
22
- commandName: 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
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
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
- DeleteApplicationCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_restJson1DeleteApplicationCommand(output, context);
36
- };
37
- return DeleteApplicationCommand;
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
- var GetApplicationCommand = (function (_super) {
7
- __extends(GetApplicationCommand, _super);
8
- function GetApplicationCommand(input) {
9
- var _this = _super.call(this) || this;
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
- GetApplicationCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
10
+ resolveMiddleware(clientStack, configuration, options) {
14
11
  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 = "GetApplicationCommand";
19
- var handlerExecutionContext = {
20
- logger: logger,
21
- clientName: clientName,
22
- commandName: 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
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
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
- GetApplicationCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_restJson1GetApplicationCommand(output, context);
36
- };
37
- return GetApplicationCommand;
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
+ }