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