@aws-sdk/client-translate 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.
- package/CHANGELOG.md +25 -0
- package/dist-cjs/Translate.js +45 -0
- package/dist-cjs/commands/ListTagsForResourceCommand.js +36 -0
- package/dist-cjs/commands/TagResourceCommand.js +36 -0
- package/dist-cjs/commands/UntagResourceCommand.js +36 -0
- package/dist-cjs/commands/index.js +3 -0
- package/dist-cjs/models/models_0.js +50 -8
- package/dist-cjs/protocols/Aws_json1_1.js +275 -16
- package/dist-es/Translate.js +106 -68
- 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 +32 -0
- 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 +32 -0
- package/dist-es/commands/TranslateTextCommand.js +21 -28
- package/dist-es/commands/UntagResourceCommand.js +32 -0
- package/dist-es/commands/UpdateParallelDataCommand.js +21 -28
- package/dist-es/commands/index.js +3 -0
- package/dist-es/endpoints.js +8 -8
- package/dist-es/models/TranslateServiceException.js +5 -10
- package/dist-es/models/models_0.js +343 -218
- 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 +1444 -1482
- 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 +12 -0
- package/dist-types/TranslateClient.d.ts +5 -2
- package/dist-types/commands/ListTagsForResourceCommand.d.ts +18 -0
- package/dist-types/commands/TagResourceCommand.d.ts +18 -0
- package/dist-types/commands/UntagResourceCommand.d.ts +18 -0
- package/dist-types/commands/index.d.ts +3 -0
- package/dist-types/models/models_0.d.ts +69 -8
- package/dist-types/protocols/Aws_json1_1.d.ts +9 -0
- package/dist-types/ts3.4/Translate.d.ts +51 -0
- package/dist-types/ts3.4/TranslateClient.d.ts +18 -0
- package/dist-types/ts3.4/commands/ListTagsForResourceCommand.d.ts +36 -0
- package/dist-types/ts3.4/commands/TagResourceCommand.d.ts +32 -0
- package/dist-types/ts3.4/commands/UntagResourceCommand.d.ts +35 -0
- package/dist-types/ts3.4/commands/index.d.ts +3 -0
- package/dist-types/ts3.4/models/models_0.d.ts +56 -7
- package/dist-types/ts3.4/protocols/Aws_json1_1.d.ts +36 -0
- package/package.json +33 -33
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";
|
|
@@ -8,228 +7,267 @@ import { GetTerminologyCommand, } from "./commands/GetTerminologyCommand";
|
|
|
8
7
|
import { ImportTerminologyCommand, } from "./commands/ImportTerminologyCommand";
|
|
9
8
|
import { ListLanguagesCommand, } from "./commands/ListLanguagesCommand";
|
|
10
9
|
import { ListParallelDataCommand, } from "./commands/ListParallelDataCommand";
|
|
10
|
+
import { ListTagsForResourceCommand, } from "./commands/ListTagsForResourceCommand";
|
|
11
11
|
import { ListTerminologiesCommand, } from "./commands/ListTerminologiesCommand";
|
|
12
12
|
import { ListTextTranslationJobsCommand, } from "./commands/ListTextTranslationJobsCommand";
|
|
13
13
|
import { StartTextTranslationJobCommand, } from "./commands/StartTextTranslationJobCommand";
|
|
14
14
|
import { StopTextTranslationJobCommand, } from "./commands/StopTextTranslationJobCommand";
|
|
15
|
+
import { TagResourceCommand } from "./commands/TagResourceCommand";
|
|
15
16
|
import { TranslateTextCommand, } from "./commands/TranslateTextCommand";
|
|
17
|
+
import { UntagResourceCommand, } from "./commands/UntagResourceCommand";
|
|
16
18
|
import { UpdateParallelDataCommand, } from "./commands/UpdateParallelDataCommand";
|
|
17
19
|
import { TranslateClient } from "./TranslateClient";
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
20
|
+
export class Translate extends TranslateClient {
|
|
21
|
+
createParallelData(args, optionsOrCb, cb) {
|
|
22
|
+
const command = new CreateParallelDataCommand(args);
|
|
23
|
+
if (typeof optionsOrCb === "function") {
|
|
24
|
+
this.send(command, optionsOrCb);
|
|
25
|
+
}
|
|
26
|
+
else if (typeof cb === "function") {
|
|
27
|
+
if (typeof optionsOrCb !== "object")
|
|
28
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
29
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
30
|
+
}
|
|
31
|
+
else {
|
|
32
|
+
return this.send(command, optionsOrCb);
|
|
33
|
+
}
|
|
22
34
|
}
|
|
23
|
-
|
|
24
|
-
|
|
35
|
+
deleteParallelData(args, optionsOrCb, cb) {
|
|
36
|
+
const command = new DeleteParallelDataCommand(args);
|
|
25
37
|
if (typeof optionsOrCb === "function") {
|
|
26
38
|
this.send(command, optionsOrCb);
|
|
27
39
|
}
|
|
28
40
|
else if (typeof cb === "function") {
|
|
29
41
|
if (typeof optionsOrCb !== "object")
|
|
30
|
-
throw new Error(
|
|
42
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
31
43
|
this.send(command, optionsOrCb || {}, cb);
|
|
32
44
|
}
|
|
33
45
|
else {
|
|
34
46
|
return this.send(command, optionsOrCb);
|
|
35
47
|
}
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
|
|
48
|
+
}
|
|
49
|
+
deleteTerminology(args, optionsOrCb, cb) {
|
|
50
|
+
const command = new DeleteTerminologyCommand(args);
|
|
39
51
|
if (typeof optionsOrCb === "function") {
|
|
40
52
|
this.send(command, optionsOrCb);
|
|
41
53
|
}
|
|
42
54
|
else if (typeof cb === "function") {
|
|
43
55
|
if (typeof optionsOrCb !== "object")
|
|
44
|
-
throw new Error(
|
|
56
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
45
57
|
this.send(command, optionsOrCb || {}, cb);
|
|
46
58
|
}
|
|
47
59
|
else {
|
|
48
60
|
return this.send(command, optionsOrCb);
|
|
49
61
|
}
|
|
50
|
-
}
|
|
51
|
-
|
|
52
|
-
|
|
62
|
+
}
|
|
63
|
+
describeTextTranslationJob(args, optionsOrCb, cb) {
|
|
64
|
+
const command = new DescribeTextTranslationJobCommand(args);
|
|
53
65
|
if (typeof optionsOrCb === "function") {
|
|
54
66
|
this.send(command, optionsOrCb);
|
|
55
67
|
}
|
|
56
68
|
else if (typeof cb === "function") {
|
|
57
69
|
if (typeof optionsOrCb !== "object")
|
|
58
|
-
throw new Error(
|
|
70
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
59
71
|
this.send(command, optionsOrCb || {}, cb);
|
|
60
72
|
}
|
|
61
73
|
else {
|
|
62
74
|
return this.send(command, optionsOrCb);
|
|
63
75
|
}
|
|
64
|
-
}
|
|
65
|
-
|
|
66
|
-
|
|
76
|
+
}
|
|
77
|
+
getParallelData(args, optionsOrCb, cb) {
|
|
78
|
+
const command = new GetParallelDataCommand(args);
|
|
67
79
|
if (typeof optionsOrCb === "function") {
|
|
68
80
|
this.send(command, optionsOrCb);
|
|
69
81
|
}
|
|
70
82
|
else if (typeof cb === "function") {
|
|
71
83
|
if (typeof optionsOrCb !== "object")
|
|
72
|
-
throw new Error(
|
|
84
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
73
85
|
this.send(command, optionsOrCb || {}, cb);
|
|
74
86
|
}
|
|
75
87
|
else {
|
|
76
88
|
return this.send(command, optionsOrCb);
|
|
77
89
|
}
|
|
78
|
-
}
|
|
79
|
-
|
|
80
|
-
|
|
90
|
+
}
|
|
91
|
+
getTerminology(args, optionsOrCb, cb) {
|
|
92
|
+
const command = new GetTerminologyCommand(args);
|
|
81
93
|
if (typeof optionsOrCb === "function") {
|
|
82
94
|
this.send(command, optionsOrCb);
|
|
83
95
|
}
|
|
84
96
|
else if (typeof cb === "function") {
|
|
85
97
|
if (typeof optionsOrCb !== "object")
|
|
86
|
-
throw new Error(
|
|
98
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
87
99
|
this.send(command, optionsOrCb || {}, cb);
|
|
88
100
|
}
|
|
89
101
|
else {
|
|
90
102
|
return this.send(command, optionsOrCb);
|
|
91
103
|
}
|
|
92
|
-
}
|
|
93
|
-
|
|
94
|
-
|
|
104
|
+
}
|
|
105
|
+
importTerminology(args, optionsOrCb, cb) {
|
|
106
|
+
const command = new ImportTerminologyCommand(args);
|
|
95
107
|
if (typeof optionsOrCb === "function") {
|
|
96
108
|
this.send(command, optionsOrCb);
|
|
97
109
|
}
|
|
98
110
|
else if (typeof cb === "function") {
|
|
99
111
|
if (typeof optionsOrCb !== "object")
|
|
100
|
-
throw new Error(
|
|
112
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
101
113
|
this.send(command, optionsOrCb || {}, cb);
|
|
102
114
|
}
|
|
103
115
|
else {
|
|
104
116
|
return this.send(command, optionsOrCb);
|
|
105
117
|
}
|
|
106
|
-
}
|
|
107
|
-
|
|
108
|
-
|
|
118
|
+
}
|
|
119
|
+
listLanguages(args, optionsOrCb, cb) {
|
|
120
|
+
const command = new ListLanguagesCommand(args);
|
|
109
121
|
if (typeof optionsOrCb === "function") {
|
|
110
122
|
this.send(command, optionsOrCb);
|
|
111
123
|
}
|
|
112
124
|
else if (typeof cb === "function") {
|
|
113
125
|
if (typeof optionsOrCb !== "object")
|
|
114
|
-
throw new Error(
|
|
126
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
115
127
|
this.send(command, optionsOrCb || {}, cb);
|
|
116
128
|
}
|
|
117
129
|
else {
|
|
118
130
|
return this.send(command, optionsOrCb);
|
|
119
131
|
}
|
|
120
|
-
}
|
|
121
|
-
|
|
122
|
-
|
|
132
|
+
}
|
|
133
|
+
listParallelData(args, optionsOrCb, cb) {
|
|
134
|
+
const command = new ListParallelDataCommand(args);
|
|
123
135
|
if (typeof optionsOrCb === "function") {
|
|
124
136
|
this.send(command, optionsOrCb);
|
|
125
137
|
}
|
|
126
138
|
else if (typeof cb === "function") {
|
|
127
139
|
if (typeof optionsOrCb !== "object")
|
|
128
|
-
throw new Error(
|
|
140
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
129
141
|
this.send(command, optionsOrCb || {}, cb);
|
|
130
142
|
}
|
|
131
143
|
else {
|
|
132
144
|
return this.send(command, optionsOrCb);
|
|
133
145
|
}
|
|
134
|
-
}
|
|
135
|
-
|
|
136
|
-
|
|
146
|
+
}
|
|
147
|
+
listTagsForResource(args, optionsOrCb, cb) {
|
|
148
|
+
const command = new ListTagsForResourceCommand(args);
|
|
137
149
|
if (typeof optionsOrCb === "function") {
|
|
138
150
|
this.send(command, optionsOrCb);
|
|
139
151
|
}
|
|
140
152
|
else if (typeof cb === "function") {
|
|
141
153
|
if (typeof optionsOrCb !== "object")
|
|
142
|
-
throw new Error(
|
|
154
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
143
155
|
this.send(command, optionsOrCb || {}, cb);
|
|
144
156
|
}
|
|
145
157
|
else {
|
|
146
158
|
return this.send(command, optionsOrCb);
|
|
147
159
|
}
|
|
148
|
-
}
|
|
149
|
-
|
|
150
|
-
|
|
160
|
+
}
|
|
161
|
+
listTerminologies(args, optionsOrCb, cb) {
|
|
162
|
+
const command = new ListTerminologiesCommand(args);
|
|
151
163
|
if (typeof optionsOrCb === "function") {
|
|
152
164
|
this.send(command, optionsOrCb);
|
|
153
165
|
}
|
|
154
166
|
else if (typeof cb === "function") {
|
|
155
167
|
if (typeof optionsOrCb !== "object")
|
|
156
|
-
throw new Error(
|
|
168
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
157
169
|
this.send(command, optionsOrCb || {}, cb);
|
|
158
170
|
}
|
|
159
171
|
else {
|
|
160
172
|
return this.send(command, optionsOrCb);
|
|
161
173
|
}
|
|
162
|
-
}
|
|
163
|
-
|
|
164
|
-
|
|
174
|
+
}
|
|
175
|
+
listTextTranslationJobs(args, optionsOrCb, cb) {
|
|
176
|
+
const command = new ListTextTranslationJobsCommand(args);
|
|
165
177
|
if (typeof optionsOrCb === "function") {
|
|
166
178
|
this.send(command, optionsOrCb);
|
|
167
179
|
}
|
|
168
180
|
else if (typeof cb === "function") {
|
|
169
181
|
if (typeof optionsOrCb !== "object")
|
|
170
|
-
throw new Error(
|
|
182
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
171
183
|
this.send(command, optionsOrCb || {}, cb);
|
|
172
184
|
}
|
|
173
185
|
else {
|
|
174
186
|
return this.send(command, optionsOrCb);
|
|
175
187
|
}
|
|
176
|
-
}
|
|
177
|
-
|
|
178
|
-
|
|
188
|
+
}
|
|
189
|
+
startTextTranslationJob(args, optionsOrCb, cb) {
|
|
190
|
+
const command = new StartTextTranslationJobCommand(args);
|
|
179
191
|
if (typeof optionsOrCb === "function") {
|
|
180
192
|
this.send(command, optionsOrCb);
|
|
181
193
|
}
|
|
182
194
|
else if (typeof cb === "function") {
|
|
183
195
|
if (typeof optionsOrCb !== "object")
|
|
184
|
-
throw new Error(
|
|
196
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
185
197
|
this.send(command, optionsOrCb || {}, cb);
|
|
186
198
|
}
|
|
187
199
|
else {
|
|
188
200
|
return this.send(command, optionsOrCb);
|
|
189
201
|
}
|
|
190
|
-
}
|
|
191
|
-
|
|
192
|
-
|
|
202
|
+
}
|
|
203
|
+
stopTextTranslationJob(args, optionsOrCb, cb) {
|
|
204
|
+
const command = new StopTextTranslationJobCommand(args);
|
|
193
205
|
if (typeof optionsOrCb === "function") {
|
|
194
206
|
this.send(command, optionsOrCb);
|
|
195
207
|
}
|
|
196
208
|
else if (typeof cb === "function") {
|
|
197
209
|
if (typeof optionsOrCb !== "object")
|
|
198
|
-
throw new Error(
|
|
210
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
199
211
|
this.send(command, optionsOrCb || {}, cb);
|
|
200
212
|
}
|
|
201
213
|
else {
|
|
202
214
|
return this.send(command, optionsOrCb);
|
|
203
215
|
}
|
|
204
|
-
}
|
|
205
|
-
|
|
206
|
-
|
|
216
|
+
}
|
|
217
|
+
tagResource(args, optionsOrCb, cb) {
|
|
218
|
+
const command = new TagResourceCommand(args);
|
|
207
219
|
if (typeof optionsOrCb === "function") {
|
|
208
220
|
this.send(command, optionsOrCb);
|
|
209
221
|
}
|
|
210
222
|
else if (typeof cb === "function") {
|
|
211
223
|
if (typeof optionsOrCb !== "object")
|
|
212
|
-
throw new Error(
|
|
224
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
213
225
|
this.send(command, optionsOrCb || {}, cb);
|
|
214
226
|
}
|
|
215
227
|
else {
|
|
216
228
|
return this.send(command, optionsOrCb);
|
|
217
229
|
}
|
|
218
|
-
}
|
|
219
|
-
|
|
220
|
-
|
|
230
|
+
}
|
|
231
|
+
translateText(args, optionsOrCb, cb) {
|
|
232
|
+
const command = new TranslateTextCommand(args);
|
|
221
233
|
if (typeof optionsOrCb === "function") {
|
|
222
234
|
this.send(command, optionsOrCb);
|
|
223
235
|
}
|
|
224
236
|
else if (typeof cb === "function") {
|
|
225
237
|
if (typeof optionsOrCb !== "object")
|
|
226
|
-
throw new Error(
|
|
238
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
227
239
|
this.send(command, optionsOrCb || {}, cb);
|
|
228
240
|
}
|
|
229
241
|
else {
|
|
230
242
|
return this.send(command, optionsOrCb);
|
|
231
243
|
}
|
|
232
|
-
}
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
244
|
+
}
|
|
245
|
+
untagResource(args, optionsOrCb, cb) {
|
|
246
|
+
const command = new UntagResourceCommand(args);
|
|
247
|
+
if (typeof optionsOrCb === "function") {
|
|
248
|
+
this.send(command, optionsOrCb);
|
|
249
|
+
}
|
|
250
|
+
else if (typeof cb === "function") {
|
|
251
|
+
if (typeof optionsOrCb !== "object")
|
|
252
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
253
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
254
|
+
}
|
|
255
|
+
else {
|
|
256
|
+
return this.send(command, optionsOrCb);
|
|
257
|
+
}
|
|
258
|
+
}
|
|
259
|
+
updateParallelData(args, optionsOrCb, cb) {
|
|
260
|
+
const command = new UpdateParallelDataCommand(args);
|
|
261
|
+
if (typeof optionsOrCb === "function") {
|
|
262
|
+
this.send(command, optionsOrCb);
|
|
263
|
+
}
|
|
264
|
+
else if (typeof cb === "function") {
|
|
265
|
+
if (typeof optionsOrCb !== "object")
|
|
266
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
267
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
268
|
+
}
|
|
269
|
+
else {
|
|
270
|
+
return this.send(command, optionsOrCb);
|
|
271
|
+
}
|
|
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
|
+
}
|