@aws-sdk/client-emr-serverless 3.183.0 → 3.185.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 (30) hide show
  1. package/CHANGELOG.md +11 -0
  2. package/dist-cjs/protocols/Aws_restJson1.js +2 -2
  3. package/dist-es/EMRServerless.js +69 -62
  4. package/dist-es/EMRServerlessClient.js +28 -22
  5. package/dist-es/commands/CancelJobRunCommand.js +28 -21
  6. package/dist-es/commands/CreateApplicationCommand.js +28 -21
  7. package/dist-es/commands/DeleteApplicationCommand.js +28 -21
  8. package/dist-es/commands/GetApplicationCommand.js +28 -21
  9. package/dist-es/commands/GetDashboardForJobRunCommand.js +28 -21
  10. package/dist-es/commands/GetJobRunCommand.js +28 -21
  11. package/dist-es/commands/ListApplicationsCommand.js +28 -21
  12. package/dist-es/commands/ListJobRunsCommand.js +28 -21
  13. package/dist-es/commands/ListTagsForResourceCommand.js +28 -21
  14. package/dist-es/commands/StartApplicationCommand.js +28 -21
  15. package/dist-es/commands/StartJobRunCommand.js +28 -21
  16. package/dist-es/commands/StopApplicationCommand.js +28 -21
  17. package/dist-es/commands/TagResourceCommand.js +28 -21
  18. package/dist-es/commands/UntagResourceCommand.js +28 -21
  19. package/dist-es/commands/UpdateApplicationCommand.js +28 -21
  20. package/dist-es/endpoints.js +8 -8
  21. package/dist-es/models/EMRServerlessServiceException.js +10 -5
  22. package/dist-es/models/models_0.js +116 -224
  23. package/dist-es/pagination/ListApplicationsPaginator.js +68 -25
  24. package/dist-es/pagination/ListJobRunsPaginator.js +68 -25
  25. package/dist-es/protocols/Aws_restJson1.js +1557 -1157
  26. package/dist-es/runtimeConfig.browser.js +12 -26
  27. package/dist-es/runtimeConfig.js +12 -30
  28. package/dist-es/runtimeConfig.native.js +5 -8
  29. package/dist-es/runtimeConfig.shared.js +11 -8
  30. package/package.json +5 -5
package/CHANGELOG.md CHANGED
@@ -3,6 +3,17 @@
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.185.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.184.0...v3.185.0) (2022-10-05)
7
+
8
+
9
+ ### Bug Fixes
10
+
11
+ * **codegen:** add deser check for x-amz-request-id ([#4015](https://github.com/aws/aws-sdk-js-v3/issues/4015)) ([6ff07bd](https://github.com/aws/aws-sdk-js-v3/commit/6ff07bd7e72bd56725f318013ac1d6d0fbbcdd9a))
12
+
13
+
14
+
15
+
16
+
6
17
  # [3.183.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.182.0...v3.183.0) (2022-10-03)
7
18
 
8
19
  **Note:** Version bump only for package @aws-sdk/client-emr-serverless
@@ -1496,10 +1496,10 @@ const deserializeAws_restJson1WorkerResourceConfig = (output, context) => {
1496
1496
  };
1497
1497
  };
1498
1498
  const deserializeMetadata = (output) => {
1499
- var _a;
1499
+ var _a, _b;
1500
1500
  return ({
1501
1501
  httpStatusCode: output.statusCode,
1502
- requestId: (_a = output.headers["x-amzn-requestid"]) !== null && _a !== void 0 ? _a : output.headers["x-amzn-request-id"],
1502
+ requestId: (_b = (_a = output.headers["x-amzn-requestid"]) !== null && _a !== void 0 ? _a : output.headers["x-amzn-request-id"]) !== null && _b !== void 0 ? _b : output.headers["x-amz-request-id"],
1503
1503
  extendedRequestId: output.headers["x-amz-id-2"],
1504
1504
  cfId: output.headers["x-amz-cf-id"],
1505
1505
  });
@@ -1,3 +1,4 @@
1
+ import { __extends } from "tslib";
1
2
  import { CancelJobRunCommand, } from "./commands/CancelJobRunCommand";
2
3
  import { CreateApplicationCommand, } from "./commands/CreateApplicationCommand";
3
4
  import { DeleteApplicationCommand, } from "./commands/DeleteApplicationCommand";
@@ -14,215 +15,221 @@ import { TagResourceCommand } from "./commands/TagResourceCommand";
14
15
  import { UntagResourceCommand, } from "./commands/UntagResourceCommand";
15
16
  import { UpdateApplicationCommand, } from "./commands/UpdateApplicationCommand";
16
17
  import { EMRServerlessClient } from "./EMRServerlessClient";
17
- export class EMRServerless extends EMRServerlessClient {
18
- cancelJobRun(args, optionsOrCb, cb) {
19
- const command = new CancelJobRunCommand(args);
18
+ var EMRServerless = (function (_super) {
19
+ __extends(EMRServerless, _super);
20
+ function EMRServerless() {
21
+ return _super !== null && _super.apply(this, arguments) || this;
22
+ }
23
+ EMRServerless.prototype.cancelJobRun = function (args, optionsOrCb, cb) {
24
+ var command = new CancelJobRunCommand(args);
20
25
  if (typeof optionsOrCb === "function") {
21
26
  this.send(command, optionsOrCb);
22
27
  }
23
28
  else if (typeof cb === "function") {
24
29
  if (typeof optionsOrCb !== "object")
25
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
30
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
26
31
  this.send(command, optionsOrCb || {}, cb);
27
32
  }
28
33
  else {
29
34
  return this.send(command, optionsOrCb);
30
35
  }
31
- }
32
- createApplication(args, optionsOrCb, cb) {
33
- const command = new CreateApplicationCommand(args);
36
+ };
37
+ EMRServerless.prototype.createApplication = function (args, optionsOrCb, cb) {
38
+ var command = new CreateApplicationCommand(args);
34
39
  if (typeof optionsOrCb === "function") {
35
40
  this.send(command, optionsOrCb);
36
41
  }
37
42
  else if (typeof cb === "function") {
38
43
  if (typeof optionsOrCb !== "object")
39
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
44
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
40
45
  this.send(command, optionsOrCb || {}, cb);
41
46
  }
42
47
  else {
43
48
  return this.send(command, optionsOrCb);
44
49
  }
45
- }
46
- deleteApplication(args, optionsOrCb, cb) {
47
- const command = new DeleteApplicationCommand(args);
50
+ };
51
+ EMRServerless.prototype.deleteApplication = function (args, optionsOrCb, cb) {
52
+ var command = new DeleteApplicationCommand(args);
48
53
  if (typeof optionsOrCb === "function") {
49
54
  this.send(command, optionsOrCb);
50
55
  }
51
56
  else if (typeof cb === "function") {
52
57
  if (typeof optionsOrCb !== "object")
53
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
58
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
54
59
  this.send(command, optionsOrCb || {}, cb);
55
60
  }
56
61
  else {
57
62
  return this.send(command, optionsOrCb);
58
63
  }
59
- }
60
- getApplication(args, optionsOrCb, cb) {
61
- const command = new GetApplicationCommand(args);
64
+ };
65
+ EMRServerless.prototype.getApplication = function (args, optionsOrCb, cb) {
66
+ var command = new GetApplicationCommand(args);
62
67
  if (typeof optionsOrCb === "function") {
63
68
  this.send(command, optionsOrCb);
64
69
  }
65
70
  else if (typeof cb === "function") {
66
71
  if (typeof optionsOrCb !== "object")
67
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
72
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
68
73
  this.send(command, optionsOrCb || {}, cb);
69
74
  }
70
75
  else {
71
76
  return this.send(command, optionsOrCb);
72
77
  }
73
- }
74
- getDashboardForJobRun(args, optionsOrCb, cb) {
75
- const command = new GetDashboardForJobRunCommand(args);
78
+ };
79
+ EMRServerless.prototype.getDashboardForJobRun = function (args, optionsOrCb, cb) {
80
+ var command = new GetDashboardForJobRunCommand(args);
76
81
  if (typeof optionsOrCb === "function") {
77
82
  this.send(command, optionsOrCb);
78
83
  }
79
84
  else if (typeof cb === "function") {
80
85
  if (typeof optionsOrCb !== "object")
81
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
86
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
82
87
  this.send(command, optionsOrCb || {}, cb);
83
88
  }
84
89
  else {
85
90
  return this.send(command, optionsOrCb);
86
91
  }
87
- }
88
- getJobRun(args, optionsOrCb, cb) {
89
- const command = new GetJobRunCommand(args);
92
+ };
93
+ EMRServerless.prototype.getJobRun = function (args, optionsOrCb, cb) {
94
+ var command = new GetJobRunCommand(args);
90
95
  if (typeof optionsOrCb === "function") {
91
96
  this.send(command, optionsOrCb);
92
97
  }
93
98
  else if (typeof cb === "function") {
94
99
  if (typeof optionsOrCb !== "object")
95
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
100
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
96
101
  this.send(command, optionsOrCb || {}, cb);
97
102
  }
98
103
  else {
99
104
  return this.send(command, optionsOrCb);
100
105
  }
101
- }
102
- listApplications(args, optionsOrCb, cb) {
103
- const command = new ListApplicationsCommand(args);
106
+ };
107
+ EMRServerless.prototype.listApplications = function (args, optionsOrCb, cb) {
108
+ var command = new ListApplicationsCommand(args);
104
109
  if (typeof optionsOrCb === "function") {
105
110
  this.send(command, optionsOrCb);
106
111
  }
107
112
  else if (typeof cb === "function") {
108
113
  if (typeof optionsOrCb !== "object")
109
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
114
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
110
115
  this.send(command, optionsOrCb || {}, cb);
111
116
  }
112
117
  else {
113
118
  return this.send(command, optionsOrCb);
114
119
  }
115
- }
116
- listJobRuns(args, optionsOrCb, cb) {
117
- const command = new ListJobRunsCommand(args);
120
+ };
121
+ EMRServerless.prototype.listJobRuns = function (args, optionsOrCb, cb) {
122
+ var command = new ListJobRunsCommand(args);
118
123
  if (typeof optionsOrCb === "function") {
119
124
  this.send(command, optionsOrCb);
120
125
  }
121
126
  else if (typeof cb === "function") {
122
127
  if (typeof optionsOrCb !== "object")
123
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
128
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
124
129
  this.send(command, optionsOrCb || {}, cb);
125
130
  }
126
131
  else {
127
132
  return this.send(command, optionsOrCb);
128
133
  }
129
- }
130
- listTagsForResource(args, optionsOrCb, cb) {
131
- const command = new ListTagsForResourceCommand(args);
134
+ };
135
+ EMRServerless.prototype.listTagsForResource = function (args, optionsOrCb, cb) {
136
+ var command = new ListTagsForResourceCommand(args);
132
137
  if (typeof optionsOrCb === "function") {
133
138
  this.send(command, optionsOrCb);
134
139
  }
135
140
  else if (typeof cb === "function") {
136
141
  if (typeof optionsOrCb !== "object")
137
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
142
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
138
143
  this.send(command, optionsOrCb || {}, cb);
139
144
  }
140
145
  else {
141
146
  return this.send(command, optionsOrCb);
142
147
  }
143
- }
144
- startApplication(args, optionsOrCb, cb) {
145
- const command = new StartApplicationCommand(args);
148
+ };
149
+ EMRServerless.prototype.startApplication = function (args, optionsOrCb, cb) {
150
+ var command = new StartApplicationCommand(args);
146
151
  if (typeof optionsOrCb === "function") {
147
152
  this.send(command, optionsOrCb);
148
153
  }
149
154
  else if (typeof cb === "function") {
150
155
  if (typeof optionsOrCb !== "object")
151
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
156
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
152
157
  this.send(command, optionsOrCb || {}, cb);
153
158
  }
154
159
  else {
155
160
  return this.send(command, optionsOrCb);
156
161
  }
157
- }
158
- startJobRun(args, optionsOrCb, cb) {
159
- const command = new StartJobRunCommand(args);
162
+ };
163
+ EMRServerless.prototype.startJobRun = function (args, optionsOrCb, cb) {
164
+ var command = new StartJobRunCommand(args);
160
165
  if (typeof optionsOrCb === "function") {
161
166
  this.send(command, optionsOrCb);
162
167
  }
163
168
  else if (typeof cb === "function") {
164
169
  if (typeof optionsOrCb !== "object")
165
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
170
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
166
171
  this.send(command, optionsOrCb || {}, cb);
167
172
  }
168
173
  else {
169
174
  return this.send(command, optionsOrCb);
170
175
  }
171
- }
172
- stopApplication(args, optionsOrCb, cb) {
173
- const command = new StopApplicationCommand(args);
176
+ };
177
+ EMRServerless.prototype.stopApplication = function (args, optionsOrCb, cb) {
178
+ var command = new StopApplicationCommand(args);
174
179
  if (typeof optionsOrCb === "function") {
175
180
  this.send(command, optionsOrCb);
176
181
  }
177
182
  else if (typeof cb === "function") {
178
183
  if (typeof optionsOrCb !== "object")
179
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
184
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
180
185
  this.send(command, optionsOrCb || {}, cb);
181
186
  }
182
187
  else {
183
188
  return this.send(command, optionsOrCb);
184
189
  }
185
- }
186
- tagResource(args, optionsOrCb, cb) {
187
- const command = new TagResourceCommand(args);
190
+ };
191
+ EMRServerless.prototype.tagResource = function (args, optionsOrCb, cb) {
192
+ var command = new TagResourceCommand(args);
188
193
  if (typeof optionsOrCb === "function") {
189
194
  this.send(command, optionsOrCb);
190
195
  }
191
196
  else if (typeof cb === "function") {
192
197
  if (typeof optionsOrCb !== "object")
193
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
198
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
194
199
  this.send(command, optionsOrCb || {}, cb);
195
200
  }
196
201
  else {
197
202
  return this.send(command, optionsOrCb);
198
203
  }
199
- }
200
- untagResource(args, optionsOrCb, cb) {
201
- const command = new UntagResourceCommand(args);
204
+ };
205
+ EMRServerless.prototype.untagResource = function (args, optionsOrCb, cb) {
206
+ var command = new UntagResourceCommand(args);
202
207
  if (typeof optionsOrCb === "function") {
203
208
  this.send(command, optionsOrCb);
204
209
  }
205
210
  else if (typeof cb === "function") {
206
211
  if (typeof optionsOrCb !== "object")
207
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
212
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
208
213
  this.send(command, optionsOrCb || {}, cb);
209
214
  }
210
215
  else {
211
216
  return this.send(command, optionsOrCb);
212
217
  }
213
- }
214
- updateApplication(args, optionsOrCb, cb) {
215
- const command = new UpdateApplicationCommand(args);
218
+ };
219
+ EMRServerless.prototype.updateApplication = function (args, optionsOrCb, cb) {
220
+ var command = new UpdateApplicationCommand(args);
216
221
  if (typeof optionsOrCb === "function") {
217
222
  this.send(command, optionsOrCb);
218
223
  }
219
224
  else if (typeof cb === "function") {
220
225
  if (typeof optionsOrCb !== "object")
221
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
226
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
222
227
  this.send(command, optionsOrCb || {}, cb);
223
228
  }
224
229
  else {
225
230
  return this.send(command, optionsOrCb);
226
231
  }
227
- }
228
- }
232
+ };
233
+ return EMRServerless;
234
+ }(EMRServerlessClient));
235
+ export { EMRServerless };
@@ -1,3 +1,4 @@
1
+ import { __extends } from "tslib";
1
2
  import { resolveEndpointsConfig, resolveRegionConfig, } from "@aws-sdk/config-resolver";
2
3
  import { getContentLengthPlugin } from "@aws-sdk/middleware-content-length";
3
4
  import { getHostHeaderPlugin, resolveHostHeaderConfig, } from "@aws-sdk/middleware-host-header";
@@ -8,26 +9,31 @@ import { getAwsAuthPlugin, resolveAwsAuthConfig, } from "@aws-sdk/middleware-sig
8
9
  import { getUserAgentPlugin, resolveUserAgentConfig, } from "@aws-sdk/middleware-user-agent";
9
10
  import { Client as __Client, } from "@aws-sdk/smithy-client";
10
11
  import { getRuntimeConfig as __getRuntimeConfig } from "./runtimeConfig";
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));
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;
29
33
  }
30
- destroy() {
31
- super.destroy();
32
- }
33
- }
34
+ EMRServerlessClient.prototype.destroy = function () {
35
+ _super.prototype.destroy.call(this);
36
+ };
37
+ return EMRServerlessClient;
38
+ }(__Client));
39
+ export { EMRServerlessClient };
@@ -1,32 +1,39 @@
1
+ import { __extends } from "tslib";
1
2
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
2
3
  import { Command as $Command } from "@aws-sdk/smithy-client";
3
4
  import { CancelJobRunRequestFilterSensitiveLog, CancelJobRunResponseFilterSensitiveLog, } from "../models/models_0";
4
5
  import { deserializeAws_restJson1CancelJobRunCommand, serializeAws_restJson1CancelJobRunCommand, } from "../protocols/Aws_restJson1";
5
- export class CancelJobRunCommand extends $Command {
6
- constructor(input) {
7
- super();
8
- this.input = input;
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;
9
12
  }
10
- resolveMiddleware(clientStack, configuration, options) {
13
+ CancelJobRunCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
11
14
  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 = "CancelJobRunCommand";
16
- const handlerExecutionContext = {
17
- logger,
18
- clientName,
19
- commandName,
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,
20
23
  inputFilterSensitiveLog: CancelJobRunRequestFilterSensitiveLog,
21
24
  outputFilterSensitiveLog: CancelJobRunResponseFilterSensitiveLog,
22
25
  };
23
- const { requestHandler } = configuration;
24
- return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
25
- }
26
- serialize(input, context) {
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) {
27
32
  return serializeAws_restJson1CancelJobRunCommand(input, context);
28
- }
29
- deserialize(output, context) {
33
+ };
34
+ CancelJobRunCommand.prototype.deserialize = function (output, context) {
30
35
  return deserializeAws_restJson1CancelJobRunCommand(output, context);
31
- }
32
- }
36
+ };
37
+ return CancelJobRunCommand;
38
+ }($Command));
39
+ export { CancelJobRunCommand };
@@ -1,32 +1,39 @@
1
+ import { __extends } from "tslib";
1
2
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
2
3
  import { Command as $Command } from "@aws-sdk/smithy-client";
3
4
  import { CreateApplicationRequestFilterSensitiveLog, CreateApplicationResponseFilterSensitiveLog, } from "../models/models_0";
4
5
  import { deserializeAws_restJson1CreateApplicationCommand, serializeAws_restJson1CreateApplicationCommand, } from "../protocols/Aws_restJson1";
5
- export class CreateApplicationCommand extends $Command {
6
- constructor(input) {
7
- super();
8
- this.input = input;
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;
9
12
  }
10
- resolveMiddleware(clientStack, configuration, options) {
13
+ CreateApplicationCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
11
14
  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 = "CreateApplicationCommand";
16
- const handlerExecutionContext = {
17
- logger,
18
- clientName,
19
- commandName,
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,
20
23
  inputFilterSensitiveLog: CreateApplicationRequestFilterSensitiveLog,
21
24
  outputFilterSensitiveLog: CreateApplicationResponseFilterSensitiveLog,
22
25
  };
23
- const { requestHandler } = configuration;
24
- return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
25
- }
26
- serialize(input, context) {
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) {
27
32
  return serializeAws_restJson1CreateApplicationCommand(input, context);
28
- }
29
- deserialize(output, context) {
33
+ };
34
+ CreateApplicationCommand.prototype.deserialize = function (output, context) {
30
35
  return deserializeAws_restJson1CreateApplicationCommand(output, context);
31
- }
32
- }
36
+ };
37
+ return CreateApplicationCommand;
38
+ }($Command));
39
+ export { CreateApplicationCommand };
@@ -1,32 +1,39 @@
1
+ import { __extends } from "tslib";
1
2
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
2
3
  import { Command as $Command } from "@aws-sdk/smithy-client";
3
4
  import { DeleteApplicationRequestFilterSensitiveLog, DeleteApplicationResponseFilterSensitiveLog, } from "../models/models_0";
4
5
  import { deserializeAws_restJson1DeleteApplicationCommand, serializeAws_restJson1DeleteApplicationCommand, } from "../protocols/Aws_restJson1";
5
- export class DeleteApplicationCommand extends $Command {
6
- constructor(input) {
7
- super();
8
- this.input = input;
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;
9
12
  }
10
- resolveMiddleware(clientStack, configuration, options) {
13
+ DeleteApplicationCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
11
14
  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 = "DeleteApplicationCommand";
16
- const handlerExecutionContext = {
17
- logger,
18
- clientName,
19
- commandName,
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,
20
23
  inputFilterSensitiveLog: DeleteApplicationRequestFilterSensitiveLog,
21
24
  outputFilterSensitiveLog: DeleteApplicationResponseFilterSensitiveLog,
22
25
  };
23
- const { requestHandler } = configuration;
24
- return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
25
- }
26
- serialize(input, context) {
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) {
27
32
  return serializeAws_restJson1DeleteApplicationCommand(input, context);
28
- }
29
- deserialize(output, context) {
33
+ };
34
+ DeleteApplicationCommand.prototype.deserialize = function (output, context) {
30
35
  return deserializeAws_restJson1DeleteApplicationCommand(output, context);
31
- }
32
- }
36
+ };
37
+ return DeleteApplicationCommand;
38
+ }($Command));
39
+ export { DeleteApplicationCommand };
@@ -1,32 +1,39 @@
1
+ import { __extends } from "tslib";
1
2
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
2
3
  import { Command as $Command } from "@aws-sdk/smithy-client";
3
4
  import { GetApplicationRequestFilterSensitiveLog, GetApplicationResponseFilterSensitiveLog, } from "../models/models_0";
4
5
  import { deserializeAws_restJson1GetApplicationCommand, serializeAws_restJson1GetApplicationCommand, } from "../protocols/Aws_restJson1";
5
- export class GetApplicationCommand extends $Command {
6
- constructor(input) {
7
- super();
8
- this.input = input;
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;
9
12
  }
10
- resolveMiddleware(clientStack, configuration, options) {
13
+ GetApplicationCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
11
14
  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 = "GetApplicationCommand";
16
- const handlerExecutionContext = {
17
- logger,
18
- clientName,
19
- commandName,
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,
20
23
  inputFilterSensitiveLog: GetApplicationRequestFilterSensitiveLog,
21
24
  outputFilterSensitiveLog: GetApplicationResponseFilterSensitiveLog,
22
25
  };
23
- const { requestHandler } = configuration;
24
- return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
25
- }
26
- serialize(input, context) {
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) {
27
32
  return serializeAws_restJson1GetApplicationCommand(input, context);
28
- }
29
- deserialize(output, context) {
33
+ };
34
+ GetApplicationCommand.prototype.deserialize = function (output, context) {
30
35
  return deserializeAws_restJson1GetApplicationCommand(output, context);
31
- }
32
- }
36
+ };
37
+ return GetApplicationCommand;
38
+ }($Command));
39
+ export { GetApplicationCommand };