@aws-sdk/client-emr-containers 3.183.0 → 3.186.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 (31) hide show
  1. package/CHANGELOG.md +19 -0
  2. package/dist-cjs/protocols/Aws_restJson1.js +2 -2
  3. package/dist-es/EMRContainers.js +69 -62
  4. package/dist-es/EMRContainersClient.js +28 -22
  5. package/dist-es/commands/CancelJobRunCommand.js +28 -21
  6. package/dist-es/commands/CreateManagedEndpointCommand.js +28 -21
  7. package/dist-es/commands/CreateVirtualClusterCommand.js +28 -21
  8. package/dist-es/commands/DeleteManagedEndpointCommand.js +28 -21
  9. package/dist-es/commands/DeleteVirtualClusterCommand.js +28 -21
  10. package/dist-es/commands/DescribeJobRunCommand.js +28 -21
  11. package/dist-es/commands/DescribeManagedEndpointCommand.js +28 -21
  12. package/dist-es/commands/DescribeVirtualClusterCommand.js +28 -21
  13. package/dist-es/commands/ListJobRunsCommand.js +28 -21
  14. package/dist-es/commands/ListManagedEndpointsCommand.js +28 -21
  15. package/dist-es/commands/ListTagsForResourceCommand.js +28 -21
  16. package/dist-es/commands/ListVirtualClustersCommand.js +28 -21
  17. package/dist-es/commands/StartJobRunCommand.js +28 -21
  18. package/dist-es/commands/TagResourceCommand.js +28 -21
  19. package/dist-es/commands/UntagResourceCommand.js +28 -21
  20. package/dist-es/endpoints.js +8 -8
  21. package/dist-es/models/EMRContainersServiceException.js +10 -5
  22. package/dist-es/models/models_0.js +98 -208
  23. package/dist-es/pagination/ListJobRunsPaginator.js +68 -25
  24. package/dist-es/pagination/ListManagedEndpointsPaginator.js +68 -25
  25. package/dist-es/pagination/ListVirtualClustersPaginator.js +68 -25
  26. package/dist-es/protocols/Aws_restJson1.js +1530 -1113
  27. package/dist-es/runtimeConfig.browser.js +12 -26
  28. package/dist-es/runtimeConfig.js +12 -30
  29. package/dist-es/runtimeConfig.native.js +5 -8
  30. package/dist-es/runtimeConfig.shared.js +11 -8
  31. package/package.json +33 -33
package/CHANGELOG.md CHANGED
@@ -3,6 +3,25 @@
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.186.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.185.0...v3.186.0) (2022-10-06)
7
+
8
+ **Note:** Version bump only for package @aws-sdk/client-emr-containers
9
+
10
+
11
+
12
+
13
+
14
+ # [3.185.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.184.0...v3.185.0) (2022-10-05)
15
+
16
+
17
+ ### Bug Fixes
18
+
19
+ * **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))
20
+
21
+
22
+
23
+
24
+
6
25
  # [3.183.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.182.0...v3.183.0) (2022-10-03)
7
26
 
8
27
  **Note:** Version bump only for package @aws-sdk/client-emr-containers
@@ -1384,10 +1384,10 @@ const deserializeAws_restJson1VirtualClusters = (output, context) => {
1384
1384
  return retVal;
1385
1385
  };
1386
1386
  const deserializeMetadata = (output) => {
1387
- var _a;
1387
+ var _a, _b;
1388
1388
  return ({
1389
1389
  httpStatusCode: output.statusCode,
1390
- requestId: (_a = output.headers["x-amzn-requestid"]) !== null && _a !== void 0 ? _a : output.headers["x-amzn-request-id"],
1390
+ 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"],
1391
1391
  extendedRequestId: output.headers["x-amz-id-2"],
1392
1392
  cfId: output.headers["x-amz-cf-id"],
1393
1393
  });
@@ -1,3 +1,4 @@
1
+ import { __extends } from "tslib";
1
2
  import { CancelJobRunCommand, } from "./commands/CancelJobRunCommand";
2
3
  import { CreateManagedEndpointCommand, } from "./commands/CreateManagedEndpointCommand";
3
4
  import { CreateVirtualClusterCommand, } from "./commands/CreateVirtualClusterCommand";
@@ -14,215 +15,221 @@ import { StartJobRunCommand } from "./commands/StartJobRunCommand";
14
15
  import { TagResourceCommand } from "./commands/TagResourceCommand";
15
16
  import { UntagResourceCommand, } from "./commands/UntagResourceCommand";
16
17
  import { EMRContainersClient } from "./EMRContainersClient";
17
- export class EMRContainers extends EMRContainersClient {
18
- cancelJobRun(args, optionsOrCb, cb) {
19
- const command = new CancelJobRunCommand(args);
18
+ var EMRContainers = (function (_super) {
19
+ __extends(EMRContainers, _super);
20
+ function EMRContainers() {
21
+ return _super !== null && _super.apply(this, arguments) || this;
22
+ }
23
+ EMRContainers.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
- createManagedEndpoint(args, optionsOrCb, cb) {
33
- const command = new CreateManagedEndpointCommand(args);
36
+ };
37
+ EMRContainers.prototype.createManagedEndpoint = function (args, optionsOrCb, cb) {
38
+ var command = new CreateManagedEndpointCommand(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
- createVirtualCluster(args, optionsOrCb, cb) {
47
- const command = new CreateVirtualClusterCommand(args);
50
+ };
51
+ EMRContainers.prototype.createVirtualCluster = function (args, optionsOrCb, cb) {
52
+ var command = new CreateVirtualClusterCommand(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
- deleteManagedEndpoint(args, optionsOrCb, cb) {
61
- const command = new DeleteManagedEndpointCommand(args);
64
+ };
65
+ EMRContainers.prototype.deleteManagedEndpoint = function (args, optionsOrCb, cb) {
66
+ var command = new DeleteManagedEndpointCommand(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
- deleteVirtualCluster(args, optionsOrCb, cb) {
75
- const command = new DeleteVirtualClusterCommand(args);
78
+ };
79
+ EMRContainers.prototype.deleteVirtualCluster = function (args, optionsOrCb, cb) {
80
+ var command = new DeleteVirtualClusterCommand(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
- describeJobRun(args, optionsOrCb, cb) {
89
- const command = new DescribeJobRunCommand(args);
92
+ };
93
+ EMRContainers.prototype.describeJobRun = function (args, optionsOrCb, cb) {
94
+ var command = new DescribeJobRunCommand(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
- describeManagedEndpoint(args, optionsOrCb, cb) {
103
- const command = new DescribeManagedEndpointCommand(args);
106
+ };
107
+ EMRContainers.prototype.describeManagedEndpoint = function (args, optionsOrCb, cb) {
108
+ var command = new DescribeManagedEndpointCommand(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
- describeVirtualCluster(args, optionsOrCb, cb) {
117
- const command = new DescribeVirtualClusterCommand(args);
120
+ };
121
+ EMRContainers.prototype.describeVirtualCluster = function (args, optionsOrCb, cb) {
122
+ var command = new DescribeVirtualClusterCommand(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
- listJobRuns(args, optionsOrCb, cb) {
131
- const command = new ListJobRunsCommand(args);
134
+ };
135
+ EMRContainers.prototype.listJobRuns = function (args, optionsOrCb, cb) {
136
+ var command = new ListJobRunsCommand(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
- listManagedEndpoints(args, optionsOrCb, cb) {
145
- const command = new ListManagedEndpointsCommand(args);
148
+ };
149
+ EMRContainers.prototype.listManagedEndpoints = function (args, optionsOrCb, cb) {
150
+ var command = new ListManagedEndpointsCommand(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
- listTagsForResource(args, optionsOrCb, cb) {
159
- const command = new ListTagsForResourceCommand(args);
162
+ };
163
+ EMRContainers.prototype.listTagsForResource = function (args, optionsOrCb, cb) {
164
+ var command = new ListTagsForResourceCommand(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
- listVirtualClusters(args, optionsOrCb, cb) {
173
- const command = new ListVirtualClustersCommand(args);
176
+ };
177
+ EMRContainers.prototype.listVirtualClusters = function (args, optionsOrCb, cb) {
178
+ var command = new ListVirtualClustersCommand(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
- startJobRun(args, optionsOrCb, cb) {
187
- const command = new StartJobRunCommand(args);
190
+ };
191
+ EMRContainers.prototype.startJobRun = function (args, optionsOrCb, cb) {
192
+ var command = new StartJobRunCommand(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
- tagResource(args, optionsOrCb, cb) {
201
- const command = new TagResourceCommand(args);
204
+ };
205
+ EMRContainers.prototype.tagResource = function (args, optionsOrCb, cb) {
206
+ var command = new TagResourceCommand(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
- untagResource(args, optionsOrCb, cb) {
215
- const command = new UntagResourceCommand(args);
218
+ };
219
+ EMRContainers.prototype.untagResource = function (args, optionsOrCb, cb) {
220
+ var command = new UntagResourceCommand(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 EMRContainers;
234
+ }(EMRContainersClient));
235
+ export { EMRContainers };
@@ -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 EMRContainersClient 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 EMRContainersClient = (function (_super) {
13
+ __extends(EMRContainersClient, _super);
14
+ function EMRContainersClient(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
+ EMRContainersClient.prototype.destroy = function () {
35
+ _super.prototype.destroy.call(this);
36
+ };
37
+ return EMRContainersClient;
38
+ }(__Client));
39
+ export { EMRContainersClient };
@@ -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 = "EMRContainersClient";
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 = "EMRContainersClient";
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 { CreateManagedEndpointRequestFilterSensitiveLog, CreateManagedEndpointResponseFilterSensitiveLog, } from "../models/models_0";
4
5
  import { deserializeAws_restJson1CreateManagedEndpointCommand, serializeAws_restJson1CreateManagedEndpointCommand, } from "../protocols/Aws_restJson1";
5
- export class CreateManagedEndpointCommand extends $Command {
6
- constructor(input) {
7
- super();
8
- this.input = input;
6
+ var CreateManagedEndpointCommand = (function (_super) {
7
+ __extends(CreateManagedEndpointCommand, _super);
8
+ function CreateManagedEndpointCommand(input) {
9
+ var _this = _super.call(this) || this;
10
+ _this.input = input;
11
+ return _this;
9
12
  }
10
- resolveMiddleware(clientStack, configuration, options) {
13
+ CreateManagedEndpointCommand.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 = "EMRContainersClient";
15
- const commandName = "CreateManagedEndpointCommand";
16
- const handlerExecutionContext = {
17
- logger,
18
- clientName,
19
- commandName,
15
+ var stack = clientStack.concat(this.middlewareStack);
16
+ var logger = configuration.logger;
17
+ var clientName = "EMRContainersClient";
18
+ var commandName = "CreateManagedEndpointCommand";
19
+ var handlerExecutionContext = {
20
+ logger: logger,
21
+ clientName: clientName,
22
+ commandName: commandName,
20
23
  inputFilterSensitiveLog: CreateManagedEndpointRequestFilterSensitiveLog,
21
24
  outputFilterSensitiveLog: CreateManagedEndpointResponseFilterSensitiveLog,
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
+ CreateManagedEndpointCommand.prototype.serialize = function (input, context) {
27
32
  return serializeAws_restJson1CreateManagedEndpointCommand(input, context);
28
- }
29
- deserialize(output, context) {
33
+ };
34
+ CreateManagedEndpointCommand.prototype.deserialize = function (output, context) {
30
35
  return deserializeAws_restJson1CreateManagedEndpointCommand(output, context);
31
- }
32
- }
36
+ };
37
+ return CreateManagedEndpointCommand;
38
+ }($Command));
39
+ export { CreateManagedEndpointCommand };
@@ -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 { CreateVirtualClusterRequestFilterSensitiveLog, CreateVirtualClusterResponseFilterSensitiveLog, } from "../models/models_0";
4
5
  import { deserializeAws_restJson1CreateVirtualClusterCommand, serializeAws_restJson1CreateVirtualClusterCommand, } from "../protocols/Aws_restJson1";
5
- export class CreateVirtualClusterCommand extends $Command {
6
- constructor(input) {
7
- super();
8
- this.input = input;
6
+ var CreateVirtualClusterCommand = (function (_super) {
7
+ __extends(CreateVirtualClusterCommand, _super);
8
+ function CreateVirtualClusterCommand(input) {
9
+ var _this = _super.call(this) || this;
10
+ _this.input = input;
11
+ return _this;
9
12
  }
10
- resolveMiddleware(clientStack, configuration, options) {
13
+ CreateVirtualClusterCommand.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 = "EMRContainersClient";
15
- const commandName = "CreateVirtualClusterCommand";
16
- const handlerExecutionContext = {
17
- logger,
18
- clientName,
19
- commandName,
15
+ var stack = clientStack.concat(this.middlewareStack);
16
+ var logger = configuration.logger;
17
+ var clientName = "EMRContainersClient";
18
+ var commandName = "CreateVirtualClusterCommand";
19
+ var handlerExecutionContext = {
20
+ logger: logger,
21
+ clientName: clientName,
22
+ commandName: commandName,
20
23
  inputFilterSensitiveLog: CreateVirtualClusterRequestFilterSensitiveLog,
21
24
  outputFilterSensitiveLog: CreateVirtualClusterResponseFilterSensitiveLog,
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
+ CreateVirtualClusterCommand.prototype.serialize = function (input, context) {
27
32
  return serializeAws_restJson1CreateVirtualClusterCommand(input, context);
28
- }
29
- deserialize(output, context) {
33
+ };
34
+ CreateVirtualClusterCommand.prototype.deserialize = function (output, context) {
30
35
  return deserializeAws_restJson1CreateVirtualClusterCommand(output, context);
31
- }
32
- }
36
+ };
37
+ return CreateVirtualClusterCommand;
38
+ }($Command));
39
+ export { CreateVirtualClusterCommand };
@@ -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 { DeleteManagedEndpointRequestFilterSensitiveLog, DeleteManagedEndpointResponseFilterSensitiveLog, } from "../models/models_0";
4
5
  import { deserializeAws_restJson1DeleteManagedEndpointCommand, serializeAws_restJson1DeleteManagedEndpointCommand, } from "../protocols/Aws_restJson1";
5
- export class DeleteManagedEndpointCommand extends $Command {
6
- constructor(input) {
7
- super();
8
- this.input = input;
6
+ var DeleteManagedEndpointCommand = (function (_super) {
7
+ __extends(DeleteManagedEndpointCommand, _super);
8
+ function DeleteManagedEndpointCommand(input) {
9
+ var _this = _super.call(this) || this;
10
+ _this.input = input;
11
+ return _this;
9
12
  }
10
- resolveMiddleware(clientStack, configuration, options) {
13
+ DeleteManagedEndpointCommand.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 = "EMRContainersClient";
15
- const commandName = "DeleteManagedEndpointCommand";
16
- const handlerExecutionContext = {
17
- logger,
18
- clientName,
19
- commandName,
15
+ var stack = clientStack.concat(this.middlewareStack);
16
+ var logger = configuration.logger;
17
+ var clientName = "EMRContainersClient";
18
+ var commandName = "DeleteManagedEndpointCommand";
19
+ var handlerExecutionContext = {
20
+ logger: logger,
21
+ clientName: clientName,
22
+ commandName: commandName,
20
23
  inputFilterSensitiveLog: DeleteManagedEndpointRequestFilterSensitiveLog,
21
24
  outputFilterSensitiveLog: DeleteManagedEndpointResponseFilterSensitiveLog,
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
+ DeleteManagedEndpointCommand.prototype.serialize = function (input, context) {
27
32
  return serializeAws_restJson1DeleteManagedEndpointCommand(input, context);
28
- }
29
- deserialize(output, context) {
33
+ };
34
+ DeleteManagedEndpointCommand.prototype.deserialize = function (output, context) {
30
35
  return deserializeAws_restJson1DeleteManagedEndpointCommand(output, context);
31
- }
32
- }
36
+ };
37
+ return DeleteManagedEndpointCommand;
38
+ }($Command));
39
+ export { DeleteManagedEndpointCommand };