@aws-sdk/client-translate 3.186.0 → 3.188.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 (43) hide show
  1. package/CHANGELOG.md +8 -0
  2. package/README.md +1 -2
  3. package/dist-es/Translate.js +74 -81
  4. package/dist-es/TranslateClient.js +22 -28
  5. package/dist-es/commands/CreateParallelDataCommand.js +21 -28
  6. package/dist-es/commands/DeleteParallelDataCommand.js +21 -28
  7. package/dist-es/commands/DeleteTerminologyCommand.js +22 -29
  8. package/dist-es/commands/DescribeTextTranslationJobCommand.js +21 -28
  9. package/dist-es/commands/GetParallelDataCommand.js +21 -28
  10. package/dist-es/commands/GetTerminologyCommand.js +21 -28
  11. package/dist-es/commands/ImportTerminologyCommand.js +21 -28
  12. package/dist-es/commands/ListLanguagesCommand.js +21 -28
  13. package/dist-es/commands/ListParallelDataCommand.js +21 -28
  14. package/dist-es/commands/ListTagsForResourceCommand.js +21 -28
  15. package/dist-es/commands/ListTerminologiesCommand.js +21 -28
  16. package/dist-es/commands/ListTextTranslationJobsCommand.js +21 -28
  17. package/dist-es/commands/StartTextTranslationJobCommand.js +21 -28
  18. package/dist-es/commands/StopTextTranslationJobCommand.js +21 -28
  19. package/dist-es/commands/TagResourceCommand.js +21 -28
  20. package/dist-es/commands/TranslateTextCommand.js +21 -28
  21. package/dist-es/commands/UntagResourceCommand.js +21 -28
  22. package/dist-es/commands/UpdateParallelDataCommand.js +21 -28
  23. package/dist-es/endpoints.js +8 -8
  24. package/dist-es/models/TranslateServiceException.js +5 -10
  25. package/dist-es/models/models_0.js +342 -237
  26. package/dist-es/pagination/ListLanguagesPaginator.js +25 -68
  27. package/dist-es/pagination/ListParallelDataPaginator.js +25 -68
  28. package/dist-es/pagination/ListTerminologiesPaginator.js +25 -68
  29. package/dist-es/pagination/ListTextTranslationJobsPaginator.js +25 -68
  30. package/dist-es/protocols/Aws_json1_1.js +1407 -1765
  31. package/dist-es/runtimeConfig.browser.js +26 -12
  32. package/dist-es/runtimeConfig.js +30 -12
  33. package/dist-es/runtimeConfig.native.js +8 -5
  34. package/dist-es/runtimeConfig.shared.js +8 -11
  35. package/dist-types/Translate.d.ts +25 -6
  36. package/dist-types/TranslateClient.d.ts +1 -2
  37. package/dist-types/commands/ListTagsForResourceCommand.d.ts +19 -0
  38. package/dist-types/commands/StartTextTranslationJobCommand.d.ts +7 -3
  39. package/dist-types/commands/TagResourceCommand.d.ts +20 -0
  40. package/dist-types/commands/TranslateTextCommand.d.ts +1 -1
  41. package/dist-types/commands/UntagResourceCommand.d.ts +19 -0
  42. package/dist-types/models/models_0.d.ts +94 -22
  43. package/package.json +33 -33
package/CHANGELOG.md CHANGED
@@ -3,6 +3,14 @@
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.188.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.187.0...v3.188.0) (2022-10-13)
7
+
8
+ **Note:** Version bump only for package @aws-sdk/client-translate
9
+
10
+
11
+
12
+
13
+
6
14
  # [3.186.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.185.0...v3.186.0) (2022-10-06)
7
15
 
8
16
  **Note:** Version bump only for package @aws-sdk/client-translate
package/README.md CHANGED
@@ -9,8 +9,7 @@
9
9
 
10
10
  AWS SDK for JavaScript Translate Client for Node.js, Browser and React Native.
11
11
 
12
- <p>Provides translation between one source language and another of the same set of
13
- languages.</p>
12
+ <p>Provides language translation for input text in the source language to the specified target language.</p>
14
13
 
15
14
  ## Installing
16
15
 
@@ -1,4 +1,3 @@
1
- import { __extends } from "tslib";
2
1
  import { CreateParallelDataCommand, } from "./commands/CreateParallelDataCommand";
3
2
  import { DeleteParallelDataCommand, } from "./commands/DeleteParallelDataCommand";
4
3
  import { DeleteTerminologyCommand, } from "./commands/DeleteTerminologyCommand";
@@ -18,263 +17,257 @@ import { TranslateTextCommand, } from "./commands/TranslateTextCommand";
18
17
  import { UntagResourceCommand, } from "./commands/UntagResourceCommand";
19
18
  import { UpdateParallelDataCommand, } from "./commands/UpdateParallelDataCommand";
20
19
  import { TranslateClient } from "./TranslateClient";
21
- var Translate = (function (_super) {
22
- __extends(Translate, _super);
23
- function Translate() {
24
- return _super !== null && _super.apply(this, arguments) || this;
25
- }
26
- Translate.prototype.createParallelData = function (args, optionsOrCb, cb) {
27
- var command = new CreateParallelDataCommand(args);
20
+ export class Translate extends TranslateClient {
21
+ createParallelData(args, optionsOrCb, cb) {
22
+ const command = new CreateParallelDataCommand(args);
28
23
  if (typeof optionsOrCb === "function") {
29
24
  this.send(command, optionsOrCb);
30
25
  }
31
26
  else if (typeof cb === "function") {
32
27
  if (typeof optionsOrCb !== "object")
33
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
28
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
34
29
  this.send(command, optionsOrCb || {}, cb);
35
30
  }
36
31
  else {
37
32
  return this.send(command, optionsOrCb);
38
33
  }
39
- };
40
- Translate.prototype.deleteParallelData = function (args, optionsOrCb, cb) {
41
- var command = new DeleteParallelDataCommand(args);
34
+ }
35
+ deleteParallelData(args, optionsOrCb, cb) {
36
+ const command = new DeleteParallelDataCommand(args);
42
37
  if (typeof optionsOrCb === "function") {
43
38
  this.send(command, optionsOrCb);
44
39
  }
45
40
  else if (typeof cb === "function") {
46
41
  if (typeof optionsOrCb !== "object")
47
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
42
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
48
43
  this.send(command, optionsOrCb || {}, cb);
49
44
  }
50
45
  else {
51
46
  return this.send(command, optionsOrCb);
52
47
  }
53
- };
54
- Translate.prototype.deleteTerminology = function (args, optionsOrCb, cb) {
55
- var command = new DeleteTerminologyCommand(args);
48
+ }
49
+ deleteTerminology(args, optionsOrCb, cb) {
50
+ const command = new DeleteTerminologyCommand(args);
56
51
  if (typeof optionsOrCb === "function") {
57
52
  this.send(command, optionsOrCb);
58
53
  }
59
54
  else if (typeof cb === "function") {
60
55
  if (typeof optionsOrCb !== "object")
61
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
56
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
62
57
  this.send(command, optionsOrCb || {}, cb);
63
58
  }
64
59
  else {
65
60
  return this.send(command, optionsOrCb);
66
61
  }
67
- };
68
- Translate.prototype.describeTextTranslationJob = function (args, optionsOrCb, cb) {
69
- var command = new DescribeTextTranslationJobCommand(args);
62
+ }
63
+ describeTextTranslationJob(args, optionsOrCb, cb) {
64
+ const command = new DescribeTextTranslationJobCommand(args);
70
65
  if (typeof optionsOrCb === "function") {
71
66
  this.send(command, optionsOrCb);
72
67
  }
73
68
  else if (typeof cb === "function") {
74
69
  if (typeof optionsOrCb !== "object")
75
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
70
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
76
71
  this.send(command, optionsOrCb || {}, cb);
77
72
  }
78
73
  else {
79
74
  return this.send(command, optionsOrCb);
80
75
  }
81
- };
82
- Translate.prototype.getParallelData = function (args, optionsOrCb, cb) {
83
- var command = new GetParallelDataCommand(args);
76
+ }
77
+ getParallelData(args, optionsOrCb, cb) {
78
+ const command = new GetParallelDataCommand(args);
84
79
  if (typeof optionsOrCb === "function") {
85
80
  this.send(command, optionsOrCb);
86
81
  }
87
82
  else if (typeof cb === "function") {
88
83
  if (typeof optionsOrCb !== "object")
89
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
84
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
90
85
  this.send(command, optionsOrCb || {}, cb);
91
86
  }
92
87
  else {
93
88
  return this.send(command, optionsOrCb);
94
89
  }
95
- };
96
- Translate.prototype.getTerminology = function (args, optionsOrCb, cb) {
97
- var command = new GetTerminologyCommand(args);
90
+ }
91
+ getTerminology(args, optionsOrCb, cb) {
92
+ const command = new GetTerminologyCommand(args);
98
93
  if (typeof optionsOrCb === "function") {
99
94
  this.send(command, optionsOrCb);
100
95
  }
101
96
  else if (typeof cb === "function") {
102
97
  if (typeof optionsOrCb !== "object")
103
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
98
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
104
99
  this.send(command, optionsOrCb || {}, cb);
105
100
  }
106
101
  else {
107
102
  return this.send(command, optionsOrCb);
108
103
  }
109
- };
110
- Translate.prototype.importTerminology = function (args, optionsOrCb, cb) {
111
- var command = new ImportTerminologyCommand(args);
104
+ }
105
+ importTerminology(args, optionsOrCb, cb) {
106
+ const command = new ImportTerminologyCommand(args);
112
107
  if (typeof optionsOrCb === "function") {
113
108
  this.send(command, optionsOrCb);
114
109
  }
115
110
  else if (typeof cb === "function") {
116
111
  if (typeof optionsOrCb !== "object")
117
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
112
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
118
113
  this.send(command, optionsOrCb || {}, cb);
119
114
  }
120
115
  else {
121
116
  return this.send(command, optionsOrCb);
122
117
  }
123
- };
124
- Translate.prototype.listLanguages = function (args, optionsOrCb, cb) {
125
- var command = new ListLanguagesCommand(args);
118
+ }
119
+ listLanguages(args, optionsOrCb, cb) {
120
+ const command = new ListLanguagesCommand(args);
126
121
  if (typeof optionsOrCb === "function") {
127
122
  this.send(command, optionsOrCb);
128
123
  }
129
124
  else if (typeof cb === "function") {
130
125
  if (typeof optionsOrCb !== "object")
131
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
126
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
132
127
  this.send(command, optionsOrCb || {}, cb);
133
128
  }
134
129
  else {
135
130
  return this.send(command, optionsOrCb);
136
131
  }
137
- };
138
- Translate.prototype.listParallelData = function (args, optionsOrCb, cb) {
139
- var command = new ListParallelDataCommand(args);
132
+ }
133
+ listParallelData(args, optionsOrCb, cb) {
134
+ const command = new ListParallelDataCommand(args);
140
135
  if (typeof optionsOrCb === "function") {
141
136
  this.send(command, optionsOrCb);
142
137
  }
143
138
  else if (typeof cb === "function") {
144
139
  if (typeof optionsOrCb !== "object")
145
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
140
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
146
141
  this.send(command, optionsOrCb || {}, cb);
147
142
  }
148
143
  else {
149
144
  return this.send(command, optionsOrCb);
150
145
  }
151
- };
152
- Translate.prototype.listTagsForResource = function (args, optionsOrCb, cb) {
153
- var command = new ListTagsForResourceCommand(args);
146
+ }
147
+ listTagsForResource(args, optionsOrCb, cb) {
148
+ const command = new ListTagsForResourceCommand(args);
154
149
  if (typeof optionsOrCb === "function") {
155
150
  this.send(command, optionsOrCb);
156
151
  }
157
152
  else if (typeof cb === "function") {
158
153
  if (typeof optionsOrCb !== "object")
159
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
154
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
160
155
  this.send(command, optionsOrCb || {}, cb);
161
156
  }
162
157
  else {
163
158
  return this.send(command, optionsOrCb);
164
159
  }
165
- };
166
- Translate.prototype.listTerminologies = function (args, optionsOrCb, cb) {
167
- var command = new ListTerminologiesCommand(args);
160
+ }
161
+ listTerminologies(args, optionsOrCb, cb) {
162
+ const command = new ListTerminologiesCommand(args);
168
163
  if (typeof optionsOrCb === "function") {
169
164
  this.send(command, optionsOrCb);
170
165
  }
171
166
  else if (typeof cb === "function") {
172
167
  if (typeof optionsOrCb !== "object")
173
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
168
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
174
169
  this.send(command, optionsOrCb || {}, cb);
175
170
  }
176
171
  else {
177
172
  return this.send(command, optionsOrCb);
178
173
  }
179
- };
180
- Translate.prototype.listTextTranslationJobs = function (args, optionsOrCb, cb) {
181
- var command = new ListTextTranslationJobsCommand(args);
174
+ }
175
+ listTextTranslationJobs(args, optionsOrCb, cb) {
176
+ const command = new ListTextTranslationJobsCommand(args);
182
177
  if (typeof optionsOrCb === "function") {
183
178
  this.send(command, optionsOrCb);
184
179
  }
185
180
  else if (typeof cb === "function") {
186
181
  if (typeof optionsOrCb !== "object")
187
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
182
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
188
183
  this.send(command, optionsOrCb || {}, cb);
189
184
  }
190
185
  else {
191
186
  return this.send(command, optionsOrCb);
192
187
  }
193
- };
194
- Translate.prototype.startTextTranslationJob = function (args, optionsOrCb, cb) {
195
- var command = new StartTextTranslationJobCommand(args);
188
+ }
189
+ startTextTranslationJob(args, optionsOrCb, cb) {
190
+ const command = new StartTextTranslationJobCommand(args);
196
191
  if (typeof optionsOrCb === "function") {
197
192
  this.send(command, optionsOrCb);
198
193
  }
199
194
  else if (typeof cb === "function") {
200
195
  if (typeof optionsOrCb !== "object")
201
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
196
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
202
197
  this.send(command, optionsOrCb || {}, cb);
203
198
  }
204
199
  else {
205
200
  return this.send(command, optionsOrCb);
206
201
  }
207
- };
208
- Translate.prototype.stopTextTranslationJob = function (args, optionsOrCb, cb) {
209
- var command = new StopTextTranslationJobCommand(args);
202
+ }
203
+ stopTextTranslationJob(args, optionsOrCb, cb) {
204
+ const command = new StopTextTranslationJobCommand(args);
210
205
  if (typeof optionsOrCb === "function") {
211
206
  this.send(command, optionsOrCb);
212
207
  }
213
208
  else if (typeof cb === "function") {
214
209
  if (typeof optionsOrCb !== "object")
215
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
210
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
216
211
  this.send(command, optionsOrCb || {}, cb);
217
212
  }
218
213
  else {
219
214
  return this.send(command, optionsOrCb);
220
215
  }
221
- };
222
- Translate.prototype.tagResource = function (args, optionsOrCb, cb) {
223
- var command = new TagResourceCommand(args);
216
+ }
217
+ tagResource(args, optionsOrCb, cb) {
218
+ const command = new TagResourceCommand(args);
224
219
  if (typeof optionsOrCb === "function") {
225
220
  this.send(command, optionsOrCb);
226
221
  }
227
222
  else if (typeof cb === "function") {
228
223
  if (typeof optionsOrCb !== "object")
229
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
224
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
230
225
  this.send(command, optionsOrCb || {}, cb);
231
226
  }
232
227
  else {
233
228
  return this.send(command, optionsOrCb);
234
229
  }
235
- };
236
- Translate.prototype.translateText = function (args, optionsOrCb, cb) {
237
- var command = new TranslateTextCommand(args);
230
+ }
231
+ translateText(args, optionsOrCb, cb) {
232
+ const command = new TranslateTextCommand(args);
238
233
  if (typeof optionsOrCb === "function") {
239
234
  this.send(command, optionsOrCb);
240
235
  }
241
236
  else if (typeof cb === "function") {
242
237
  if (typeof optionsOrCb !== "object")
243
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
238
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
244
239
  this.send(command, optionsOrCb || {}, cb);
245
240
  }
246
241
  else {
247
242
  return this.send(command, optionsOrCb);
248
243
  }
249
- };
250
- Translate.prototype.untagResource = function (args, optionsOrCb, cb) {
251
- var command = new UntagResourceCommand(args);
244
+ }
245
+ untagResource(args, optionsOrCb, cb) {
246
+ const command = new UntagResourceCommand(args);
252
247
  if (typeof optionsOrCb === "function") {
253
248
  this.send(command, optionsOrCb);
254
249
  }
255
250
  else if (typeof cb === "function") {
256
251
  if (typeof optionsOrCb !== "object")
257
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
252
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
258
253
  this.send(command, optionsOrCb || {}, cb);
259
254
  }
260
255
  else {
261
256
  return this.send(command, optionsOrCb);
262
257
  }
263
- };
264
- Translate.prototype.updateParallelData = function (args, optionsOrCb, cb) {
265
- var command = new UpdateParallelDataCommand(args);
258
+ }
259
+ updateParallelData(args, optionsOrCb, cb) {
260
+ const command = new UpdateParallelDataCommand(args);
266
261
  if (typeof optionsOrCb === "function") {
267
262
  this.send(command, optionsOrCb);
268
263
  }
269
264
  else if (typeof cb === "function") {
270
265
  if (typeof optionsOrCb !== "object")
271
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
266
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
272
267
  this.send(command, optionsOrCb || {}, cb);
273
268
  }
274
269
  else {
275
270
  return this.send(command, optionsOrCb);
276
271
  }
277
- };
278
- return Translate;
279
- }(TranslateClient));
280
- export { Translate };
272
+ }
273
+ }
@@ -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 TranslateClient = (function (_super) {
13
- __extends(TranslateClient, _super);
14
- function TranslateClient(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 TranslateClient 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
- TranslateClient.prototype.destroy = function () {
35
- _super.prototype.destroy.call(this);
36
- };
37
- return TranslateClient;
38
- }(__Client));
39
- export { TranslateClient };
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 { CreateParallelDataRequestFilterSensitiveLog, CreateParallelDataResponseFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_json1_1CreateParallelDataCommand, serializeAws_json1_1CreateParallelDataCommand, } from "../protocols/Aws_json1_1";
6
- var CreateParallelDataCommand = (function (_super) {
7
- __extends(CreateParallelDataCommand, _super);
8
- function CreateParallelDataCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class CreateParallelDataCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- CreateParallelDataCommand.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 = "TranslateClient";
18
- var commandName = "CreateParallelDataCommand";
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 = "TranslateClient";
15
+ const commandName = "CreateParallelDataCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: CreateParallelDataRequestFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: CreateParallelDataResponseFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- CreateParallelDataCommand.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_json1_1CreateParallelDataCommand(input, context);
33
- };
34
- CreateParallelDataCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_json1_1CreateParallelDataCommand(output, context);
36
- };
37
- return CreateParallelDataCommand;
38
- }($Command));
39
- export { CreateParallelDataCommand };
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 { DeleteParallelDataRequestFilterSensitiveLog, DeleteParallelDataResponseFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_json1_1DeleteParallelDataCommand, serializeAws_json1_1DeleteParallelDataCommand, } from "../protocols/Aws_json1_1";
6
- var DeleteParallelDataCommand = (function (_super) {
7
- __extends(DeleteParallelDataCommand, _super);
8
- function DeleteParallelDataCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class DeleteParallelDataCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- DeleteParallelDataCommand.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 = "TranslateClient";
18
- var commandName = "DeleteParallelDataCommand";
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 = "TranslateClient";
15
+ const commandName = "DeleteParallelDataCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: DeleteParallelDataRequestFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: DeleteParallelDataResponseFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- DeleteParallelDataCommand.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_json1_1DeleteParallelDataCommand(input, context);
33
- };
34
- DeleteParallelDataCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_json1_1DeleteParallelDataCommand(output, context);
36
- };
37
- return DeleteParallelDataCommand;
38
- }($Command));
39
- export { DeleteParallelDataCommand };
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 { DeleteTerminologyRequestFilterSensitiveLog } from "../models/models_0";
5
4
  import { deserializeAws_json1_1DeleteTerminologyCommand, serializeAws_json1_1DeleteTerminologyCommand, } from "../protocols/Aws_json1_1";
6
- var DeleteTerminologyCommand = (function (_super) {
7
- __extends(DeleteTerminologyCommand, _super);
8
- function DeleteTerminologyCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class DeleteTerminologyCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- DeleteTerminologyCommand.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 = "TranslateClient";
18
- var commandName = "DeleteTerminologyCommand";
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 = "TranslateClient";
15
+ const commandName = "DeleteTerminologyCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: DeleteTerminologyRequestFilterSensitiveLog,
24
- outputFilterSensitiveLog: function (output) { return output; },
21
+ outputFilterSensitiveLog: (output) => output,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- DeleteTerminologyCommand.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_json1_1DeleteTerminologyCommand(input, context);
33
- };
34
- DeleteTerminologyCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_json1_1DeleteTerminologyCommand(output, context);
36
- };
37
- return DeleteTerminologyCommand;
38
- }($Command));
39
- export { DeleteTerminologyCommand };
31
+ }
32
+ }