@aws-sdk/client-emr-containers 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 (31) hide show
  1. package/CHANGELOG.md +20 -0
  2. package/dist-cjs/protocols/Aws_restJson1.js +21 -15
  3. package/dist-es/EMRContainers.js +62 -69
  4. package/dist-es/EMRContainersClient.js +22 -28
  5. package/dist-es/commands/CancelJobRunCommand.js +21 -28
  6. package/dist-es/commands/CreateManagedEndpointCommand.js +21 -28
  7. package/dist-es/commands/CreateVirtualClusterCommand.js +21 -28
  8. package/dist-es/commands/DeleteManagedEndpointCommand.js +21 -28
  9. package/dist-es/commands/DeleteVirtualClusterCommand.js +21 -28
  10. package/dist-es/commands/DescribeJobRunCommand.js +21 -28
  11. package/dist-es/commands/DescribeManagedEndpointCommand.js +21 -28
  12. package/dist-es/commands/DescribeVirtualClusterCommand.js +21 -28
  13. package/dist-es/commands/ListJobRunsCommand.js +21 -28
  14. package/dist-es/commands/ListManagedEndpointsCommand.js +21 -28
  15. package/dist-es/commands/ListTagsForResourceCommand.js +21 -28
  16. package/dist-es/commands/ListVirtualClustersCommand.js +21 -28
  17. package/dist-es/commands/StartJobRunCommand.js +21 -28
  18. package/dist-es/commands/TagResourceCommand.js +21 -28
  19. package/dist-es/commands/UntagResourceCommand.js +21 -28
  20. package/dist-es/endpoints.js +8 -8
  21. package/dist-es/models/EMRContainersServiceException.js +5 -10
  22. package/dist-es/models/models_0.js +208 -98
  23. package/dist-es/pagination/ListJobRunsPaginator.js +25 -68
  24. package/dist-es/pagination/ListManagedEndpointsPaginator.js +25 -68
  25. package/dist-es/pagination/ListVirtualClustersPaginator.js +25 -68
  26. package/dist-es/protocols/Aws_restJson1.js +1113 -1517
  27. package/dist-es/runtimeConfig.browser.js +26 -12
  28. package/dist-es/runtimeConfig.js +30 -12
  29. package/dist-es/runtimeConfig.native.js +8 -5
  30. package/dist-es/runtimeConfig.shared.js +8 -11
  31. package/package.json +33 -33
package/CHANGELOG.md CHANGED
@@ -3,6 +3,26 @@
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.183.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.182.0...v3.183.0) (2022-10-03)
7
+
8
+ **Note:** Version bump only for package @aws-sdk/client-emr-containers
9
+
10
+
11
+
12
+
13
+
14
+ # [3.181.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.180.0...v3.181.0) (2022-09-29)
15
+
16
+
17
+ ### Bug Fixes
18
+
19
+ * **clients:** make parseErrorBody async ([#3999](https://github.com/aws/aws-sdk-js-v3/issues/3999)) ([2558c93](https://github.com/aws/aws-sdk-js-v3/commit/2558c93c050357ac6dc47aa0452b15b12ebfd676))
20
+ * **clients:** populate message field when parsing errors ([#3995](https://github.com/aws/aws-sdk-js-v3/issues/3995)) ([02e47f1](https://github.com/aws/aws-sdk-js-v3/commit/02e47f14397ae0a5d2e2883350d038b307fdcdb4))
21
+
22
+
23
+
24
+
25
+
6
26
  # [3.180.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.179.0...v3.180.0) (2022-09-27)
7
27
 
8
28
  **Note:** Version bump only for package @aws-sdk/client-emr-containers
@@ -386,7 +386,7 @@ exports.deserializeAws_restJson1CancelJobRunCommand = deserializeAws_restJson1Ca
386
386
  const deserializeAws_restJson1CancelJobRunCommandError = async (output, context) => {
387
387
  const parsedOutput = {
388
388
  ...output,
389
- body: await parseBody(output.body, context),
389
+ body: await parseErrorBody(output.body, context),
390
390
  };
391
391
  const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
392
392
  switch (errorCode) {
@@ -432,7 +432,7 @@ exports.deserializeAws_restJson1CreateManagedEndpointCommand = deserializeAws_re
432
432
  const deserializeAws_restJson1CreateManagedEndpointCommandError = async (output, context) => {
433
433
  const parsedOutput = {
434
434
  ...output,
435
- body: await parseBody(output.body, context),
435
+ body: await parseErrorBody(output.body, context),
436
436
  };
437
437
  const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
438
438
  switch (errorCode) {
@@ -478,7 +478,7 @@ exports.deserializeAws_restJson1CreateVirtualClusterCommand = deserializeAws_res
478
478
  const deserializeAws_restJson1CreateVirtualClusterCommandError = async (output, context) => {
479
479
  const parsedOutput = {
480
480
  ...output,
481
- body: await parseBody(output.body, context),
481
+ body: await parseErrorBody(output.body, context),
482
482
  };
483
483
  const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
484
484
  switch (errorCode) {
@@ -521,7 +521,7 @@ exports.deserializeAws_restJson1DeleteManagedEndpointCommand = deserializeAws_re
521
521
  const deserializeAws_restJson1DeleteManagedEndpointCommandError = async (output, context) => {
522
522
  const parsedOutput = {
523
523
  ...output,
524
- body: await parseBody(output.body, context),
524
+ body: await parseErrorBody(output.body, context),
525
525
  };
526
526
  const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
527
527
  switch (errorCode) {
@@ -558,7 +558,7 @@ exports.deserializeAws_restJson1DeleteVirtualClusterCommand = deserializeAws_res
558
558
  const deserializeAws_restJson1DeleteVirtualClusterCommandError = async (output, context) => {
559
559
  const parsedOutput = {
560
560
  ...output,
561
- body: await parseBody(output.body, context),
561
+ body: await parseErrorBody(output.body, context),
562
562
  };
563
563
  const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
564
564
  switch (errorCode) {
@@ -595,7 +595,7 @@ exports.deserializeAws_restJson1DescribeJobRunCommand = deserializeAws_restJson1
595
595
  const deserializeAws_restJson1DescribeJobRunCommandError = async (output, context) => {
596
596
  const parsedOutput = {
597
597
  ...output,
598
- body: await parseBody(output.body, context),
598
+ body: await parseErrorBody(output.body, context),
599
599
  };
600
600
  const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
601
601
  switch (errorCode) {
@@ -635,7 +635,7 @@ exports.deserializeAws_restJson1DescribeManagedEndpointCommand = deserializeAws_
635
635
  const deserializeAws_restJson1DescribeManagedEndpointCommandError = async (output, context) => {
636
636
  const parsedOutput = {
637
637
  ...output,
638
- body: await parseBody(output.body, context),
638
+ body: await parseErrorBody(output.body, context),
639
639
  };
640
640
  const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
641
641
  switch (errorCode) {
@@ -675,7 +675,7 @@ exports.deserializeAws_restJson1DescribeVirtualClusterCommand = deserializeAws_r
675
675
  const deserializeAws_restJson1DescribeVirtualClusterCommandError = async (output, context) => {
676
676
  const parsedOutput = {
677
677
  ...output,
678
- body: await parseBody(output.body, context),
678
+ body: await parseErrorBody(output.body, context),
679
679
  };
680
680
  const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
681
681
  switch (errorCode) {
@@ -718,7 +718,7 @@ exports.deserializeAws_restJson1ListJobRunsCommand = deserializeAws_restJson1Lis
718
718
  const deserializeAws_restJson1ListJobRunsCommandError = async (output, context) => {
719
719
  const parsedOutput = {
720
720
  ...output,
721
- body: await parseBody(output.body, context),
721
+ body: await parseErrorBody(output.body, context),
722
722
  };
723
723
  const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
724
724
  switch (errorCode) {
@@ -758,7 +758,7 @@ exports.deserializeAws_restJson1ListManagedEndpointsCommand = deserializeAws_res
758
758
  const deserializeAws_restJson1ListManagedEndpointsCommandError = async (output, context) => {
759
759
  const parsedOutput = {
760
760
  ...output,
761
- body: await parseBody(output.body, context),
761
+ body: await parseErrorBody(output.body, context),
762
762
  };
763
763
  const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
764
764
  switch (errorCode) {
@@ -795,7 +795,7 @@ exports.deserializeAws_restJson1ListTagsForResourceCommand = deserializeAws_rest
795
795
  const deserializeAws_restJson1ListTagsForResourceCommandError = async (output, context) => {
796
796
  const parsedOutput = {
797
797
  ...output,
798
- body: await parseBody(output.body, context),
798
+ body: await parseErrorBody(output.body, context),
799
799
  };
800
800
  const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
801
801
  switch (errorCode) {
@@ -838,7 +838,7 @@ exports.deserializeAws_restJson1ListVirtualClustersCommand = deserializeAws_rest
838
838
  const deserializeAws_restJson1ListVirtualClustersCommandError = async (output, context) => {
839
839
  const parsedOutput = {
840
840
  ...output,
841
- body: await parseBody(output.body, context),
841
+ body: await parseErrorBody(output.body, context),
842
842
  };
843
843
  const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
844
844
  switch (errorCode) {
@@ -884,7 +884,7 @@ exports.deserializeAws_restJson1StartJobRunCommand = deserializeAws_restJson1Sta
884
884
  const deserializeAws_restJson1StartJobRunCommandError = async (output, context) => {
885
885
  const parsedOutput = {
886
886
  ...output,
887
- body: await parseBody(output.body, context),
887
+ body: await parseErrorBody(output.body, context),
888
888
  };
889
889
  const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
890
890
  switch (errorCode) {
@@ -921,7 +921,7 @@ exports.deserializeAws_restJson1TagResourceCommand = deserializeAws_restJson1Tag
921
921
  const deserializeAws_restJson1TagResourceCommandError = async (output, context) => {
922
922
  const parsedOutput = {
923
923
  ...output,
924
- body: await parseBody(output.body, context),
924
+ body: await parseErrorBody(output.body, context),
925
925
  };
926
926
  const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
927
927
  switch (errorCode) {
@@ -958,7 +958,7 @@ exports.deserializeAws_restJson1UntagResourceCommand = deserializeAws_restJson1U
958
958
  const deserializeAws_restJson1UntagResourceCommandError = async (output, context) => {
959
959
  const parsedOutput = {
960
960
  ...output,
961
- body: await parseBody(output.body, context),
961
+ body: await parseErrorBody(output.body, context),
962
962
  };
963
963
  const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
964
964
  switch (errorCode) {
@@ -1410,6 +1410,12 @@ const parseBody = (streamBody, context) => collectBodyString(streamBody, context
1410
1410
  }
1411
1411
  return {};
1412
1412
  });
1413
+ const parseErrorBody = async (errorBody, context) => {
1414
+ var _a;
1415
+ const value = await parseBody(errorBody, context);
1416
+ value.message = (_a = value.message) !== null && _a !== void 0 ? _a : value.Message;
1417
+ return value;
1418
+ };
1413
1419
  const loadRestJsonErrorCode = (output, data) => {
1414
1420
  const findKey = (object, key) => Object.keys(object).find((k) => k.toLowerCase() === key.toLowerCase());
1415
1421
  const sanitizeErrorCode = (rawValue) => {
@@ -1,4 +1,3 @@
1
- import { __extends } from "tslib";
2
1
  import { CancelJobRunCommand, } from "./commands/CancelJobRunCommand";
3
2
  import { CreateManagedEndpointCommand, } from "./commands/CreateManagedEndpointCommand";
4
3
  import { CreateVirtualClusterCommand, } from "./commands/CreateVirtualClusterCommand";
@@ -15,221 +14,215 @@ import { StartJobRunCommand } from "./commands/StartJobRunCommand";
15
14
  import { TagResourceCommand } from "./commands/TagResourceCommand";
16
15
  import { UntagResourceCommand, } from "./commands/UntagResourceCommand";
17
16
  import { EMRContainersClient } from "./EMRContainersClient";
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);
17
+ export class EMRContainers extends EMRContainersClient {
18
+ cancelJobRun(args, optionsOrCb, cb) {
19
+ const command = new CancelJobRunCommand(args);
25
20
  if (typeof optionsOrCb === "function") {
26
21
  this.send(command, optionsOrCb);
27
22
  }
28
23
  else if (typeof cb === "function") {
29
24
  if (typeof optionsOrCb !== "object")
30
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
25
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
31
26
  this.send(command, optionsOrCb || {}, cb);
32
27
  }
33
28
  else {
34
29
  return this.send(command, optionsOrCb);
35
30
  }
36
- };
37
- EMRContainers.prototype.createManagedEndpoint = function (args, optionsOrCb, cb) {
38
- var command = new CreateManagedEndpointCommand(args);
31
+ }
32
+ createManagedEndpoint(args, optionsOrCb, cb) {
33
+ const command = new CreateManagedEndpointCommand(args);
39
34
  if (typeof optionsOrCb === "function") {
40
35
  this.send(command, optionsOrCb);
41
36
  }
42
37
  else if (typeof cb === "function") {
43
38
  if (typeof optionsOrCb !== "object")
44
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
39
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
45
40
  this.send(command, optionsOrCb || {}, cb);
46
41
  }
47
42
  else {
48
43
  return this.send(command, optionsOrCb);
49
44
  }
50
- };
51
- EMRContainers.prototype.createVirtualCluster = function (args, optionsOrCb, cb) {
52
- var command = new CreateVirtualClusterCommand(args);
45
+ }
46
+ createVirtualCluster(args, optionsOrCb, cb) {
47
+ const command = new CreateVirtualClusterCommand(args);
53
48
  if (typeof optionsOrCb === "function") {
54
49
  this.send(command, optionsOrCb);
55
50
  }
56
51
  else if (typeof cb === "function") {
57
52
  if (typeof optionsOrCb !== "object")
58
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
53
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
59
54
  this.send(command, optionsOrCb || {}, cb);
60
55
  }
61
56
  else {
62
57
  return this.send(command, optionsOrCb);
63
58
  }
64
- };
65
- EMRContainers.prototype.deleteManagedEndpoint = function (args, optionsOrCb, cb) {
66
- var command = new DeleteManagedEndpointCommand(args);
59
+ }
60
+ deleteManagedEndpoint(args, optionsOrCb, cb) {
61
+ const command = new DeleteManagedEndpointCommand(args);
67
62
  if (typeof optionsOrCb === "function") {
68
63
  this.send(command, optionsOrCb);
69
64
  }
70
65
  else if (typeof cb === "function") {
71
66
  if (typeof optionsOrCb !== "object")
72
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
67
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
73
68
  this.send(command, optionsOrCb || {}, cb);
74
69
  }
75
70
  else {
76
71
  return this.send(command, optionsOrCb);
77
72
  }
78
- };
79
- EMRContainers.prototype.deleteVirtualCluster = function (args, optionsOrCb, cb) {
80
- var command = new DeleteVirtualClusterCommand(args);
73
+ }
74
+ deleteVirtualCluster(args, optionsOrCb, cb) {
75
+ const command = new DeleteVirtualClusterCommand(args);
81
76
  if (typeof optionsOrCb === "function") {
82
77
  this.send(command, optionsOrCb);
83
78
  }
84
79
  else if (typeof cb === "function") {
85
80
  if (typeof optionsOrCb !== "object")
86
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
81
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
87
82
  this.send(command, optionsOrCb || {}, cb);
88
83
  }
89
84
  else {
90
85
  return this.send(command, optionsOrCb);
91
86
  }
92
- };
93
- EMRContainers.prototype.describeJobRun = function (args, optionsOrCb, cb) {
94
- var command = new DescribeJobRunCommand(args);
87
+ }
88
+ describeJobRun(args, optionsOrCb, cb) {
89
+ const command = new DescribeJobRunCommand(args);
95
90
  if (typeof optionsOrCb === "function") {
96
91
  this.send(command, optionsOrCb);
97
92
  }
98
93
  else if (typeof cb === "function") {
99
94
  if (typeof optionsOrCb !== "object")
100
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
95
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
101
96
  this.send(command, optionsOrCb || {}, cb);
102
97
  }
103
98
  else {
104
99
  return this.send(command, optionsOrCb);
105
100
  }
106
- };
107
- EMRContainers.prototype.describeManagedEndpoint = function (args, optionsOrCb, cb) {
108
- var command = new DescribeManagedEndpointCommand(args);
101
+ }
102
+ describeManagedEndpoint(args, optionsOrCb, cb) {
103
+ const command = new DescribeManagedEndpointCommand(args);
109
104
  if (typeof optionsOrCb === "function") {
110
105
  this.send(command, optionsOrCb);
111
106
  }
112
107
  else if (typeof cb === "function") {
113
108
  if (typeof optionsOrCb !== "object")
114
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
109
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
115
110
  this.send(command, optionsOrCb || {}, cb);
116
111
  }
117
112
  else {
118
113
  return this.send(command, optionsOrCb);
119
114
  }
120
- };
121
- EMRContainers.prototype.describeVirtualCluster = function (args, optionsOrCb, cb) {
122
- var command = new DescribeVirtualClusterCommand(args);
115
+ }
116
+ describeVirtualCluster(args, optionsOrCb, cb) {
117
+ const command = new DescribeVirtualClusterCommand(args);
123
118
  if (typeof optionsOrCb === "function") {
124
119
  this.send(command, optionsOrCb);
125
120
  }
126
121
  else if (typeof cb === "function") {
127
122
  if (typeof optionsOrCb !== "object")
128
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
123
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
129
124
  this.send(command, optionsOrCb || {}, cb);
130
125
  }
131
126
  else {
132
127
  return this.send(command, optionsOrCb);
133
128
  }
134
- };
135
- EMRContainers.prototype.listJobRuns = function (args, optionsOrCb, cb) {
136
- var command = new ListJobRunsCommand(args);
129
+ }
130
+ listJobRuns(args, optionsOrCb, cb) {
131
+ const command = new ListJobRunsCommand(args);
137
132
  if (typeof optionsOrCb === "function") {
138
133
  this.send(command, optionsOrCb);
139
134
  }
140
135
  else if (typeof cb === "function") {
141
136
  if (typeof optionsOrCb !== "object")
142
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
137
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
143
138
  this.send(command, optionsOrCb || {}, cb);
144
139
  }
145
140
  else {
146
141
  return this.send(command, optionsOrCb);
147
142
  }
148
- };
149
- EMRContainers.prototype.listManagedEndpoints = function (args, optionsOrCb, cb) {
150
- var command = new ListManagedEndpointsCommand(args);
143
+ }
144
+ listManagedEndpoints(args, optionsOrCb, cb) {
145
+ const command = new ListManagedEndpointsCommand(args);
151
146
  if (typeof optionsOrCb === "function") {
152
147
  this.send(command, optionsOrCb);
153
148
  }
154
149
  else if (typeof cb === "function") {
155
150
  if (typeof optionsOrCb !== "object")
156
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
151
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
157
152
  this.send(command, optionsOrCb || {}, cb);
158
153
  }
159
154
  else {
160
155
  return this.send(command, optionsOrCb);
161
156
  }
162
- };
163
- EMRContainers.prototype.listTagsForResource = function (args, optionsOrCb, cb) {
164
- var command = new ListTagsForResourceCommand(args);
157
+ }
158
+ listTagsForResource(args, optionsOrCb, cb) {
159
+ const command = new ListTagsForResourceCommand(args);
165
160
  if (typeof optionsOrCb === "function") {
166
161
  this.send(command, optionsOrCb);
167
162
  }
168
163
  else if (typeof cb === "function") {
169
164
  if (typeof optionsOrCb !== "object")
170
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
165
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
171
166
  this.send(command, optionsOrCb || {}, cb);
172
167
  }
173
168
  else {
174
169
  return this.send(command, optionsOrCb);
175
170
  }
176
- };
177
- EMRContainers.prototype.listVirtualClusters = function (args, optionsOrCb, cb) {
178
- var command = new ListVirtualClustersCommand(args);
171
+ }
172
+ listVirtualClusters(args, optionsOrCb, cb) {
173
+ const command = new ListVirtualClustersCommand(args);
179
174
  if (typeof optionsOrCb === "function") {
180
175
  this.send(command, optionsOrCb);
181
176
  }
182
177
  else if (typeof cb === "function") {
183
178
  if (typeof optionsOrCb !== "object")
184
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
179
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
185
180
  this.send(command, optionsOrCb || {}, cb);
186
181
  }
187
182
  else {
188
183
  return this.send(command, optionsOrCb);
189
184
  }
190
- };
191
- EMRContainers.prototype.startJobRun = function (args, optionsOrCb, cb) {
192
- var command = new StartJobRunCommand(args);
185
+ }
186
+ startJobRun(args, optionsOrCb, cb) {
187
+ const command = new StartJobRunCommand(args);
193
188
  if (typeof optionsOrCb === "function") {
194
189
  this.send(command, optionsOrCb);
195
190
  }
196
191
  else if (typeof cb === "function") {
197
192
  if (typeof optionsOrCb !== "object")
198
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
193
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
199
194
  this.send(command, optionsOrCb || {}, cb);
200
195
  }
201
196
  else {
202
197
  return this.send(command, optionsOrCb);
203
198
  }
204
- };
205
- EMRContainers.prototype.tagResource = function (args, optionsOrCb, cb) {
206
- var command = new TagResourceCommand(args);
199
+ }
200
+ tagResource(args, optionsOrCb, cb) {
201
+ const command = new TagResourceCommand(args);
207
202
  if (typeof optionsOrCb === "function") {
208
203
  this.send(command, optionsOrCb);
209
204
  }
210
205
  else if (typeof cb === "function") {
211
206
  if (typeof optionsOrCb !== "object")
212
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
207
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
213
208
  this.send(command, optionsOrCb || {}, cb);
214
209
  }
215
210
  else {
216
211
  return this.send(command, optionsOrCb);
217
212
  }
218
- };
219
- EMRContainers.prototype.untagResource = function (args, optionsOrCb, cb) {
220
- var command = new UntagResourceCommand(args);
213
+ }
214
+ untagResource(args, optionsOrCb, cb) {
215
+ const command = new UntagResourceCommand(args);
221
216
  if (typeof optionsOrCb === "function") {
222
217
  this.send(command, optionsOrCb);
223
218
  }
224
219
  else if (typeof cb === "function") {
225
220
  if (typeof optionsOrCb !== "object")
226
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
221
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
227
222
  this.send(command, optionsOrCb || {}, cb);
228
223
  }
229
224
  else {
230
225
  return this.send(command, optionsOrCb);
231
226
  }
232
- };
233
- return EMRContainers;
234
- }(EMRContainersClient));
235
- export { EMRContainers };
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 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;
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));
33
29
  }
34
- EMRContainersClient.prototype.destroy = function () {
35
- _super.prototype.destroy.call(this);
36
- };
37
- return EMRContainersClient;
38
- }(__Client));
39
- export { EMRContainersClient };
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 = "EMRContainersClient";
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 = "EMRContainersClient";
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 { CreateManagedEndpointRequestFilterSensitiveLog, CreateManagedEndpointResponseFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_restJson1CreateManagedEndpointCommand, serializeAws_restJson1CreateManagedEndpointCommand, } from "../protocols/Aws_restJson1";
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;
5
+ export class CreateManagedEndpointCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- CreateManagedEndpointCommand.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 = "EMRContainersClient";
18
- var commandName = "CreateManagedEndpointCommand";
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 = "EMRContainersClient";
15
+ const commandName = "CreateManagedEndpointCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: CreateManagedEndpointRequestFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: CreateManagedEndpointResponseFilterSensitiveLog,
25
22
  };
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) {
23
+ const { requestHandler } = configuration;
24
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
25
+ }
26
+ serialize(input, context) {
32
27
  return serializeAws_restJson1CreateManagedEndpointCommand(input, context);
33
- };
34
- CreateManagedEndpointCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_restJson1CreateManagedEndpointCommand(output, context);
36
- };
37
- return CreateManagedEndpointCommand;
38
- }($Command));
39
- export { CreateManagedEndpointCommand };
31
+ }
32
+ }