@aws-sdk/client-translate 3.489.0 → 3.495.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 (37) hide show
  1. package/dist-cjs/Translate.js +1 -49
  2. package/dist-cjs/TranslateClient.js +1 -43
  3. package/dist-cjs/commands/CreateParallelDataCommand.js +1 -28
  4. package/dist-cjs/commands/DeleteParallelDataCommand.js +1 -28
  5. package/dist-cjs/commands/DeleteTerminologyCommand.js +1 -28
  6. package/dist-cjs/commands/DescribeTextTranslationJobCommand.js +1 -28
  7. package/dist-cjs/commands/GetParallelDataCommand.js +1 -28
  8. package/dist-cjs/commands/GetTerminologyCommand.js +1 -28
  9. package/dist-cjs/commands/ImportTerminologyCommand.js +1 -29
  10. package/dist-cjs/commands/ListLanguagesCommand.js +1 -28
  11. package/dist-cjs/commands/ListParallelDataCommand.js +1 -28
  12. package/dist-cjs/commands/ListTagsForResourceCommand.js +1 -28
  13. package/dist-cjs/commands/ListTerminologiesCommand.js +1 -28
  14. package/dist-cjs/commands/ListTextTranslationJobsCommand.js +1 -28
  15. package/dist-cjs/commands/StartTextTranslationJobCommand.js +1 -28
  16. package/dist-cjs/commands/StopTextTranslationJobCommand.js +1 -28
  17. package/dist-cjs/commands/TagResourceCommand.js +1 -28
  18. package/dist-cjs/commands/TranslateDocumentCommand.js +1 -29
  19. package/dist-cjs/commands/TranslateTextCommand.js +1 -28
  20. package/dist-cjs/commands/UntagResourceCommand.js +1 -28
  21. package/dist-cjs/commands/UpdateParallelDataCommand.js +1 -28
  22. package/dist-cjs/commands/index.js +1 -22
  23. package/dist-cjs/endpoint/EndpointParameters.js +1 -18
  24. package/dist-cjs/extensionConfiguration.js +1 -2
  25. package/dist-cjs/index.js +2351 -11
  26. package/dist-cjs/models/TranslateServiceException.js +1 -12
  27. package/dist-cjs/models/index.js +1 -4
  28. package/dist-cjs/models/models_0.js +1 -307
  29. package/dist-cjs/pagination/Interfaces.js +1 -2
  30. package/dist-cjs/pagination/ListLanguagesPaginator.js +1 -7
  31. package/dist-cjs/pagination/ListParallelDataPaginator.js +1 -7
  32. package/dist-cjs/pagination/ListTerminologiesPaginator.js +1 -7
  33. package/dist-cjs/pagination/ListTextTranslationJobsPaginator.js +1 -7
  34. package/dist-cjs/pagination/index.js +1 -8
  35. package/dist-cjs/protocols/Aws_json1_1.js +1 -1415
  36. package/dist-cjs/runtimeExtensions.js +1 -22
  37. package/package.json +40 -40
@@ -1,12 +1 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.TranslateServiceException = exports.__ServiceException = void 0;
4
- const smithy_client_1 = require("@smithy/smithy-client");
5
- Object.defineProperty(exports, "__ServiceException", { enumerable: true, get: function () { return smithy_client_1.ServiceException; } });
6
- class TranslateServiceException extends smithy_client_1.ServiceException {
7
- constructor(options) {
8
- super(options);
9
- Object.setPrototypeOf(this, TranslateServiceException.prototype);
10
- }
11
- }
12
- exports.TranslateServiceException = TranslateServiceException;
1
+ module.exports = require("../index.js");
@@ -1,4 +1 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- const tslib_1 = require("tslib");
4
- tslib_1.__exportStar(require("./models_0"), exports);
1
+ module.exports = require("../index.js");
@@ -1,307 +1 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.TranslateDocumentResponseFilterSensitiveLog = exports.TranslatedDocumentFilterSensitiveLog = exports.TranslateDocumentRequestFilterSensitiveLog = exports.DocumentFilterSensitiveLog = exports.ImportTerminologyRequestFilterSensitiveLog = exports.TerminologyDataFilterSensitiveLog = exports.TextSizeLimitExceededException = exports.DetectedLanguageLowConfidenceException = exports.ServiceUnavailableException = exports.UnsupportedLanguagePairException = exports.InvalidFilterException = exports.UnsupportedDisplayLanguageCodeException = exports.DisplayLanguageCode = exports.MergeStrategy = exports.Directionality = exports.TerminologyDataFormat = exports.Profanity = exports.Formality = exports.Brevity = exports.JobStatus = exports.ResourceNotFoundException = exports.TooManyTagsException = exports.TooManyRequestsException = exports.LimitExceededException = exports.InvalidRequestException = exports.InvalidParameterValueException = exports.InternalServerException = exports.ParallelDataStatus = exports.ParallelDataFormat = exports.EncryptionKeyType = exports.ConflictException = exports.ConcurrentModificationException = void 0;
4
- const smithy_client_1 = require("@smithy/smithy-client");
5
- const TranslateServiceException_1 = require("./TranslateServiceException");
6
- class ConcurrentModificationException extends TranslateServiceException_1.TranslateServiceException {
7
- constructor(opts) {
8
- super({
9
- name: "ConcurrentModificationException",
10
- $fault: "client",
11
- ...opts,
12
- });
13
- this.name = "ConcurrentModificationException";
14
- this.$fault = "client";
15
- Object.setPrototypeOf(this, ConcurrentModificationException.prototype);
16
- this.Message = opts.Message;
17
- }
18
- }
19
- exports.ConcurrentModificationException = ConcurrentModificationException;
20
- class ConflictException extends TranslateServiceException_1.TranslateServiceException {
21
- constructor(opts) {
22
- super({
23
- name: "ConflictException",
24
- $fault: "client",
25
- ...opts,
26
- });
27
- this.name = "ConflictException";
28
- this.$fault = "client";
29
- Object.setPrototypeOf(this, ConflictException.prototype);
30
- this.Message = opts.Message;
31
- }
32
- }
33
- exports.ConflictException = ConflictException;
34
- exports.EncryptionKeyType = {
35
- KMS: "KMS",
36
- };
37
- exports.ParallelDataFormat = {
38
- CSV: "CSV",
39
- TMX: "TMX",
40
- TSV: "TSV",
41
- };
42
- exports.ParallelDataStatus = {
43
- ACTIVE: "ACTIVE",
44
- CREATING: "CREATING",
45
- DELETING: "DELETING",
46
- FAILED: "FAILED",
47
- UPDATING: "UPDATING",
48
- };
49
- class InternalServerException extends TranslateServiceException_1.TranslateServiceException {
50
- constructor(opts) {
51
- super({
52
- name: "InternalServerException",
53
- $fault: "server",
54
- ...opts,
55
- });
56
- this.name = "InternalServerException";
57
- this.$fault = "server";
58
- Object.setPrototypeOf(this, InternalServerException.prototype);
59
- this.Message = opts.Message;
60
- }
61
- }
62
- exports.InternalServerException = InternalServerException;
63
- class InvalidParameterValueException extends TranslateServiceException_1.TranslateServiceException {
64
- constructor(opts) {
65
- super({
66
- name: "InvalidParameterValueException",
67
- $fault: "client",
68
- ...opts,
69
- });
70
- this.name = "InvalidParameterValueException";
71
- this.$fault = "client";
72
- Object.setPrototypeOf(this, InvalidParameterValueException.prototype);
73
- this.Message = opts.Message;
74
- }
75
- }
76
- exports.InvalidParameterValueException = InvalidParameterValueException;
77
- class InvalidRequestException extends TranslateServiceException_1.TranslateServiceException {
78
- constructor(opts) {
79
- super({
80
- name: "InvalidRequestException",
81
- $fault: "client",
82
- ...opts,
83
- });
84
- this.name = "InvalidRequestException";
85
- this.$fault = "client";
86
- Object.setPrototypeOf(this, InvalidRequestException.prototype);
87
- this.Message = opts.Message;
88
- }
89
- }
90
- exports.InvalidRequestException = InvalidRequestException;
91
- class LimitExceededException extends TranslateServiceException_1.TranslateServiceException {
92
- constructor(opts) {
93
- super({
94
- name: "LimitExceededException",
95
- $fault: "client",
96
- ...opts,
97
- });
98
- this.name = "LimitExceededException";
99
- this.$fault = "client";
100
- Object.setPrototypeOf(this, LimitExceededException.prototype);
101
- this.Message = opts.Message;
102
- }
103
- }
104
- exports.LimitExceededException = LimitExceededException;
105
- class TooManyRequestsException extends TranslateServiceException_1.TranslateServiceException {
106
- constructor(opts) {
107
- super({
108
- name: "TooManyRequestsException",
109
- $fault: "client",
110
- ...opts,
111
- });
112
- this.name = "TooManyRequestsException";
113
- this.$fault = "client";
114
- Object.setPrototypeOf(this, TooManyRequestsException.prototype);
115
- this.Message = opts.Message;
116
- }
117
- }
118
- exports.TooManyRequestsException = TooManyRequestsException;
119
- class TooManyTagsException extends TranslateServiceException_1.TranslateServiceException {
120
- constructor(opts) {
121
- super({
122
- name: "TooManyTagsException",
123
- $fault: "client",
124
- ...opts,
125
- });
126
- this.name = "TooManyTagsException";
127
- this.$fault = "client";
128
- Object.setPrototypeOf(this, TooManyTagsException.prototype);
129
- this.ResourceArn = opts.ResourceArn;
130
- }
131
- }
132
- exports.TooManyTagsException = TooManyTagsException;
133
- class ResourceNotFoundException extends TranslateServiceException_1.TranslateServiceException {
134
- constructor(opts) {
135
- super({
136
- name: "ResourceNotFoundException",
137
- $fault: "client",
138
- ...opts,
139
- });
140
- this.name = "ResourceNotFoundException";
141
- this.$fault = "client";
142
- Object.setPrototypeOf(this, ResourceNotFoundException.prototype);
143
- this.Message = opts.Message;
144
- }
145
- }
146
- exports.ResourceNotFoundException = ResourceNotFoundException;
147
- exports.JobStatus = {
148
- COMPLETED: "COMPLETED",
149
- COMPLETED_WITH_ERROR: "COMPLETED_WITH_ERROR",
150
- FAILED: "FAILED",
151
- IN_PROGRESS: "IN_PROGRESS",
152
- STOPPED: "STOPPED",
153
- STOP_REQUESTED: "STOP_REQUESTED",
154
- SUBMITTED: "SUBMITTED",
155
- };
156
- exports.Brevity = {
157
- ON: "ON",
158
- };
159
- exports.Formality = {
160
- FORMAL: "FORMAL",
161
- INFORMAL: "INFORMAL",
162
- };
163
- exports.Profanity = {
164
- MASK: "MASK",
165
- };
166
- exports.TerminologyDataFormat = {
167
- CSV: "CSV",
168
- TMX: "TMX",
169
- TSV: "TSV",
170
- };
171
- exports.Directionality = {
172
- MULTI: "MULTI",
173
- UNI: "UNI",
174
- };
175
- exports.MergeStrategy = {
176
- OVERWRITE: "OVERWRITE",
177
- };
178
- exports.DisplayLanguageCode = {
179
- DE: "de",
180
- EN: "en",
181
- ES: "es",
182
- FR: "fr",
183
- IT: "it",
184
- JA: "ja",
185
- KO: "ko",
186
- PT: "pt",
187
- ZH: "zh",
188
- ZH_TW: "zh-TW",
189
- };
190
- class UnsupportedDisplayLanguageCodeException extends TranslateServiceException_1.TranslateServiceException {
191
- constructor(opts) {
192
- super({
193
- name: "UnsupportedDisplayLanguageCodeException",
194
- $fault: "client",
195
- ...opts,
196
- });
197
- this.name = "UnsupportedDisplayLanguageCodeException";
198
- this.$fault = "client";
199
- Object.setPrototypeOf(this, UnsupportedDisplayLanguageCodeException.prototype);
200
- this.Message = opts.Message;
201
- this.DisplayLanguageCode = opts.DisplayLanguageCode;
202
- }
203
- }
204
- exports.UnsupportedDisplayLanguageCodeException = UnsupportedDisplayLanguageCodeException;
205
- class InvalidFilterException extends TranslateServiceException_1.TranslateServiceException {
206
- constructor(opts) {
207
- super({
208
- name: "InvalidFilterException",
209
- $fault: "client",
210
- ...opts,
211
- });
212
- this.name = "InvalidFilterException";
213
- this.$fault = "client";
214
- Object.setPrototypeOf(this, InvalidFilterException.prototype);
215
- this.Message = opts.Message;
216
- }
217
- }
218
- exports.InvalidFilterException = InvalidFilterException;
219
- class UnsupportedLanguagePairException extends TranslateServiceException_1.TranslateServiceException {
220
- constructor(opts) {
221
- super({
222
- name: "UnsupportedLanguagePairException",
223
- $fault: "client",
224
- ...opts,
225
- });
226
- this.name = "UnsupportedLanguagePairException";
227
- this.$fault = "client";
228
- Object.setPrototypeOf(this, UnsupportedLanguagePairException.prototype);
229
- this.Message = opts.Message;
230
- this.SourceLanguageCode = opts.SourceLanguageCode;
231
- this.TargetLanguageCode = opts.TargetLanguageCode;
232
- }
233
- }
234
- exports.UnsupportedLanguagePairException = UnsupportedLanguagePairException;
235
- class ServiceUnavailableException extends TranslateServiceException_1.TranslateServiceException {
236
- constructor(opts) {
237
- super({
238
- name: "ServiceUnavailableException",
239
- $fault: "server",
240
- ...opts,
241
- });
242
- this.name = "ServiceUnavailableException";
243
- this.$fault = "server";
244
- Object.setPrototypeOf(this, ServiceUnavailableException.prototype);
245
- this.Message = opts.Message;
246
- }
247
- }
248
- exports.ServiceUnavailableException = ServiceUnavailableException;
249
- class DetectedLanguageLowConfidenceException extends TranslateServiceException_1.TranslateServiceException {
250
- constructor(opts) {
251
- super({
252
- name: "DetectedLanguageLowConfidenceException",
253
- $fault: "client",
254
- ...opts,
255
- });
256
- this.name = "DetectedLanguageLowConfidenceException";
257
- this.$fault = "client";
258
- Object.setPrototypeOf(this, DetectedLanguageLowConfidenceException.prototype);
259
- this.Message = opts.Message;
260
- this.DetectedLanguageCode = opts.DetectedLanguageCode;
261
- }
262
- }
263
- exports.DetectedLanguageLowConfidenceException = DetectedLanguageLowConfidenceException;
264
- class TextSizeLimitExceededException extends TranslateServiceException_1.TranslateServiceException {
265
- constructor(opts) {
266
- super({
267
- name: "TextSizeLimitExceededException",
268
- $fault: "client",
269
- ...opts,
270
- });
271
- this.name = "TextSizeLimitExceededException";
272
- this.$fault = "client";
273
- Object.setPrototypeOf(this, TextSizeLimitExceededException.prototype);
274
- this.Message = opts.Message;
275
- }
276
- }
277
- exports.TextSizeLimitExceededException = TextSizeLimitExceededException;
278
- const TerminologyDataFilterSensitiveLog = (obj) => ({
279
- ...obj,
280
- ...(obj.File && { File: smithy_client_1.SENSITIVE_STRING }),
281
- });
282
- exports.TerminologyDataFilterSensitiveLog = TerminologyDataFilterSensitiveLog;
283
- const ImportTerminologyRequestFilterSensitiveLog = (obj) => ({
284
- ...obj,
285
- ...(obj.TerminologyData && { TerminologyData: (0, exports.TerminologyDataFilterSensitiveLog)(obj.TerminologyData) }),
286
- });
287
- exports.ImportTerminologyRequestFilterSensitiveLog = ImportTerminologyRequestFilterSensitiveLog;
288
- const DocumentFilterSensitiveLog = (obj) => ({
289
- ...obj,
290
- ...(obj.Content && { Content: smithy_client_1.SENSITIVE_STRING }),
291
- });
292
- exports.DocumentFilterSensitiveLog = DocumentFilterSensitiveLog;
293
- const TranslateDocumentRequestFilterSensitiveLog = (obj) => ({
294
- ...obj,
295
- ...(obj.Document && { Document: (0, exports.DocumentFilterSensitiveLog)(obj.Document) }),
296
- });
297
- exports.TranslateDocumentRequestFilterSensitiveLog = TranslateDocumentRequestFilterSensitiveLog;
298
- const TranslatedDocumentFilterSensitiveLog = (obj) => ({
299
- ...obj,
300
- ...(obj.Content && { Content: smithy_client_1.SENSITIVE_STRING }),
301
- });
302
- exports.TranslatedDocumentFilterSensitiveLog = TranslatedDocumentFilterSensitiveLog;
303
- const TranslateDocumentResponseFilterSensitiveLog = (obj) => ({
304
- ...obj,
305
- ...(obj.TranslatedDocument && { TranslatedDocument: (0, exports.TranslatedDocumentFilterSensitiveLog)(obj.TranslatedDocument) }),
306
- });
307
- exports.TranslateDocumentResponseFilterSensitiveLog = TranslateDocumentResponseFilterSensitiveLog;
1
+ module.exports = require("../index.js");
@@ -1,2 +1 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
1
+ module.exports = require("../index.js");
@@ -1,7 +1 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.paginateListLanguages = void 0;
4
- const core_1 = require("@smithy/core");
5
- const ListLanguagesCommand_1 = require("../commands/ListLanguagesCommand");
6
- const TranslateClient_1 = require("../TranslateClient");
7
- exports.paginateListLanguages = (0, core_1.createPaginator)(TranslateClient_1.TranslateClient, ListLanguagesCommand_1.ListLanguagesCommand, "NextToken", "NextToken", "MaxResults");
1
+ module.exports = require("../index.js");
@@ -1,7 +1 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.paginateListParallelData = void 0;
4
- const core_1 = require("@smithy/core");
5
- const ListParallelDataCommand_1 = require("../commands/ListParallelDataCommand");
6
- const TranslateClient_1 = require("../TranslateClient");
7
- exports.paginateListParallelData = (0, core_1.createPaginator)(TranslateClient_1.TranslateClient, ListParallelDataCommand_1.ListParallelDataCommand, "NextToken", "NextToken", "MaxResults");
1
+ module.exports = require("../index.js");
@@ -1,7 +1 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.paginateListTerminologies = void 0;
4
- const core_1 = require("@smithy/core");
5
- const ListTerminologiesCommand_1 = require("../commands/ListTerminologiesCommand");
6
- const TranslateClient_1 = require("../TranslateClient");
7
- exports.paginateListTerminologies = (0, core_1.createPaginator)(TranslateClient_1.TranslateClient, ListTerminologiesCommand_1.ListTerminologiesCommand, "NextToken", "NextToken", "MaxResults");
1
+ module.exports = require("../index.js");
@@ -1,7 +1 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.paginateListTextTranslationJobs = void 0;
4
- const core_1 = require("@smithy/core");
5
- const ListTextTranslationJobsCommand_1 = require("../commands/ListTextTranslationJobsCommand");
6
- const TranslateClient_1 = require("../TranslateClient");
7
- exports.paginateListTextTranslationJobs = (0, core_1.createPaginator)(TranslateClient_1.TranslateClient, ListTextTranslationJobsCommand_1.ListTextTranslationJobsCommand, "NextToken", "NextToken", "MaxResults");
1
+ module.exports = require("../index.js");
@@ -1,8 +1 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- const tslib_1 = require("tslib");
4
- tslib_1.__exportStar(require("./Interfaces"), exports);
5
- tslib_1.__exportStar(require("./ListLanguagesPaginator"), exports);
6
- tslib_1.__exportStar(require("./ListParallelDataPaginator"), exports);
7
- tslib_1.__exportStar(require("./ListTerminologiesPaginator"), exports);
8
- tslib_1.__exportStar(require("./ListTextTranslationJobsPaginator"), exports);
1
+ module.exports = require("../index.js");