@aws-sdk/client-translate 3.186.0 → 3.190.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.
- package/CHANGELOG.md +16 -0
- package/README.md +1 -2
- package/dist-es/Translate.js +74 -81
- package/dist-es/TranslateClient.js +22 -28
- package/dist-es/commands/CreateParallelDataCommand.js +21 -28
- package/dist-es/commands/DeleteParallelDataCommand.js +21 -28
- package/dist-es/commands/DeleteTerminologyCommand.js +22 -29
- package/dist-es/commands/DescribeTextTranslationJobCommand.js +21 -28
- package/dist-es/commands/GetParallelDataCommand.js +21 -28
- package/dist-es/commands/GetTerminologyCommand.js +21 -28
- package/dist-es/commands/ImportTerminologyCommand.js +21 -28
- package/dist-es/commands/ListLanguagesCommand.js +21 -28
- package/dist-es/commands/ListParallelDataCommand.js +21 -28
- package/dist-es/commands/ListTagsForResourceCommand.js +21 -28
- package/dist-es/commands/ListTerminologiesCommand.js +21 -28
- package/dist-es/commands/ListTextTranslationJobsCommand.js +21 -28
- package/dist-es/commands/StartTextTranslationJobCommand.js +21 -28
- package/dist-es/commands/StopTextTranslationJobCommand.js +21 -28
- package/dist-es/commands/TagResourceCommand.js +21 -28
- package/dist-es/commands/TranslateTextCommand.js +21 -28
- package/dist-es/commands/UntagResourceCommand.js +21 -28
- package/dist-es/commands/UpdateParallelDataCommand.js +21 -28
- package/dist-es/endpoints.js +8 -8
- package/dist-es/models/TranslateServiceException.js +5 -10
- package/dist-es/models/models_0.js +342 -237
- package/dist-es/pagination/ListLanguagesPaginator.js +25 -68
- package/dist-es/pagination/ListParallelDataPaginator.js +25 -68
- package/dist-es/pagination/ListTerminologiesPaginator.js +25 -68
- package/dist-es/pagination/ListTextTranslationJobsPaginator.js +25 -68
- package/dist-es/protocols/Aws_json1_1.js +1407 -1765
- package/dist-es/runtimeConfig.browser.js +26 -12
- package/dist-es/runtimeConfig.js +30 -12
- package/dist-es/runtimeConfig.native.js +8 -5
- package/dist-es/runtimeConfig.shared.js +8 -11
- package/dist-types/Translate.d.ts +25 -6
- package/dist-types/TranslateClient.d.ts +1 -2
- package/dist-types/commands/ListTagsForResourceCommand.d.ts +19 -0
- package/dist-types/commands/StartTextTranslationJobCommand.d.ts +7 -3
- package/dist-types/commands/TagResourceCommand.d.ts +20 -0
- package/dist-types/commands/TranslateTextCommand.d.ts +1 -1
- package/dist-types/commands/UntagResourceCommand.d.ts +19 -0
- package/dist-types/models/models_0.d.ts +94 -22
- package/package.json +33 -33
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,22 @@
|
|
|
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.190.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.189.0...v3.190.0) (2022-10-17)
|
|
7
|
+
|
|
8
|
+
**Note:** Version bump only for package @aws-sdk/client-translate
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
# [3.188.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.187.0...v3.188.0) (2022-10-13)
|
|
15
|
+
|
|
16
|
+
**Note:** Version bump only for package @aws-sdk/client-translate
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
|
|
6
22
|
# [3.186.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.185.0...v3.186.0) (2022-10-06)
|
|
7
23
|
|
|
8
24
|
**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
|
|
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
|
|
package/dist-es/Translate.js
CHANGED
|
@@ -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
|
-
|
|
22
|
-
|
|
23
|
-
|
|
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(
|
|
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
|
-
|
|
41
|
-
|
|
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(
|
|
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
|
-
|
|
55
|
-
|
|
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(
|
|
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
|
-
|
|
69
|
-
|
|
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(
|
|
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
|
-
|
|
83
|
-
|
|
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(
|
|
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
|
-
|
|
97
|
-
|
|
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(
|
|
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
|
-
|
|
111
|
-
|
|
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(
|
|
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
|
-
|
|
125
|
-
|
|
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(
|
|
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
|
-
|
|
139
|
-
|
|
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(
|
|
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
|
-
|
|
153
|
-
|
|
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(
|
|
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
|
-
|
|
167
|
-
|
|
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(
|
|
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
|
-
|
|
181
|
-
|
|
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(
|
|
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
|
-
|
|
195
|
-
|
|
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(
|
|
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
|
-
|
|
209
|
-
|
|
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(
|
|
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
|
-
|
|
223
|
-
|
|
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(
|
|
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
|
-
|
|
237
|
-
|
|
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(
|
|
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
|
-
|
|
251
|
-
|
|
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(
|
|
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
|
-
|
|
265
|
-
|
|
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(
|
|
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
|
-
|
|
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
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
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
|
-
|
|
35
|
-
|
|
36
|
-
}
|
|
37
|
-
|
|
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
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
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
|
-
|
|
10
|
+
resolveMiddleware(clientStack, configuration, options) {
|
|
14
11
|
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
logger
|
|
21
|
-
clientName
|
|
22
|
-
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
|
-
|
|
27
|
-
return stack.resolve(
|
|
28
|
-
|
|
29
|
-
|
|
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
|
-
|
|
28
|
+
}
|
|
29
|
+
deserialize(output, context) {
|
|
35
30
|
return deserializeAws_json1_1CreateParallelDataCommand(output, context);
|
|
36
|
-
}
|
|
37
|
-
|
|
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
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
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
|
-
|
|
10
|
+
resolveMiddleware(clientStack, configuration, options) {
|
|
14
11
|
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
logger
|
|
21
|
-
clientName
|
|
22
|
-
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
|
-
|
|
27
|
-
return stack.resolve(
|
|
28
|
-
|
|
29
|
-
|
|
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
|
-
|
|
28
|
+
}
|
|
29
|
+
deserialize(output, context) {
|
|
35
30
|
return deserializeAws_json1_1DeleteParallelDataCommand(output, context);
|
|
36
|
-
}
|
|
37
|
-
|
|
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
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
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
|
-
|
|
10
|
+
resolveMiddleware(clientStack, configuration, options) {
|
|
14
11
|
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
logger
|
|
21
|
-
clientName
|
|
22
|
-
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:
|
|
21
|
+
outputFilterSensitiveLog: (output) => output,
|
|
25
22
|
};
|
|
26
|
-
|
|
27
|
-
return stack.resolve(
|
|
28
|
-
|
|
29
|
-
|
|
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
|
-
|
|
28
|
+
}
|
|
29
|
+
deserialize(output, context) {
|
|
35
30
|
return deserializeAws_json1_1DeleteTerminologyCommand(output, context);
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
}($Command));
|
|
39
|
-
export { DeleteTerminologyCommand };
|
|
31
|
+
}
|
|
32
|
+
}
|