@aws-sdk/client-translate 3.934.0 → 3.935.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/dist-cjs/index.js CHANGED
@@ -145,21 +145,6 @@ let ConflictException$1 = class ConflictException extends TranslateServiceExcept
145
145
  this.Message = opts.Message;
146
146
  }
147
147
  };
148
- const EncryptionKeyType = {
149
- KMS: "KMS",
150
- };
151
- const ParallelDataFormat = {
152
- CSV: "CSV",
153
- TMX: "TMX",
154
- TSV: "TSV",
155
- };
156
- const ParallelDataStatus = {
157
- ACTIVE: "ACTIVE",
158
- CREATING: "CREATING",
159
- DELETING: "DELETING",
160
- FAILED: "FAILED",
161
- UPDATING: "UPDATING",
162
- };
163
148
  let InternalServerException$1 = class InternalServerException extends TranslateServiceException$1 {
164
149
  name = "InternalServerException";
165
150
  $fault = "server";
@@ -258,49 +243,6 @@ let ResourceNotFoundException$1 = class ResourceNotFoundException extends Transl
258
243
  this.Message = opts.Message;
259
244
  }
260
245
  };
261
- const JobStatus = {
262
- COMPLETED: "COMPLETED",
263
- COMPLETED_WITH_ERROR: "COMPLETED_WITH_ERROR",
264
- FAILED: "FAILED",
265
- IN_PROGRESS: "IN_PROGRESS",
266
- STOPPED: "STOPPED",
267
- STOP_REQUESTED: "STOP_REQUESTED",
268
- SUBMITTED: "SUBMITTED",
269
- };
270
- const Brevity = {
271
- ON: "ON",
272
- };
273
- const Formality = {
274
- FORMAL: "FORMAL",
275
- INFORMAL: "INFORMAL",
276
- };
277
- const Profanity = {
278
- MASK: "MASK",
279
- };
280
- const TerminologyDataFormat = {
281
- CSV: "CSV",
282
- TMX: "TMX",
283
- TSV: "TSV",
284
- };
285
- const Directionality = {
286
- MULTI: "MULTI",
287
- UNI: "UNI",
288
- };
289
- const MergeStrategy = {
290
- OVERWRITE: "OVERWRITE",
291
- };
292
- const DisplayLanguageCode = {
293
- DE: "de",
294
- EN: "en",
295
- ES: "es",
296
- FR: "fr",
297
- IT: "it",
298
- JA: "ja",
299
- KO: "ko",
300
- PT: "pt",
301
- ZH: "zh",
302
- ZH_TW: "zh-TW",
303
- };
304
246
  let UnsupportedDisplayLanguageCodeException$1 = class UnsupportedDisplayLanguageCodeException extends TranslateServiceException$1 {
305
247
  name = "UnsupportedDisplayLanguageCodeException";
306
248
  $fault = "client";
@@ -1390,6 +1332,65 @@ const paginateListTerminologies = core.createPaginator(TranslateClient, ListTerm
1390
1332
 
1391
1333
  const paginateListTextTranslationJobs = core.createPaginator(TranslateClient, ListTextTranslationJobsCommand, "NextToken", "NextToken", "MaxResults");
1392
1334
 
1335
+ const EncryptionKeyType = {
1336
+ KMS: "KMS",
1337
+ };
1338
+ const ParallelDataFormat = {
1339
+ CSV: "CSV",
1340
+ TMX: "TMX",
1341
+ TSV: "TSV",
1342
+ };
1343
+ const ParallelDataStatus = {
1344
+ ACTIVE: "ACTIVE",
1345
+ CREATING: "CREATING",
1346
+ DELETING: "DELETING",
1347
+ FAILED: "FAILED",
1348
+ UPDATING: "UPDATING",
1349
+ };
1350
+ const JobStatus = {
1351
+ COMPLETED: "COMPLETED",
1352
+ COMPLETED_WITH_ERROR: "COMPLETED_WITH_ERROR",
1353
+ FAILED: "FAILED",
1354
+ IN_PROGRESS: "IN_PROGRESS",
1355
+ STOPPED: "STOPPED",
1356
+ STOP_REQUESTED: "STOP_REQUESTED",
1357
+ SUBMITTED: "SUBMITTED",
1358
+ };
1359
+ const Brevity = {
1360
+ ON: "ON",
1361
+ };
1362
+ const Formality = {
1363
+ FORMAL: "FORMAL",
1364
+ INFORMAL: "INFORMAL",
1365
+ };
1366
+ const Profanity = {
1367
+ MASK: "MASK",
1368
+ };
1369
+ const TerminologyDataFormat = {
1370
+ CSV: "CSV",
1371
+ TMX: "TMX",
1372
+ TSV: "TSV",
1373
+ };
1374
+ const Directionality = {
1375
+ MULTI: "MULTI",
1376
+ UNI: "UNI",
1377
+ };
1378
+ const MergeStrategy = {
1379
+ OVERWRITE: "OVERWRITE",
1380
+ };
1381
+ const DisplayLanguageCode = {
1382
+ DE: "de",
1383
+ EN: "en",
1384
+ ES: "es",
1385
+ FR: "fr",
1386
+ IT: "it",
1387
+ JA: "ja",
1388
+ KO: "ko",
1389
+ PT: "pt",
1390
+ ZH: "zh",
1391
+ ZH_TW: "zh-TW",
1392
+ };
1393
+
1393
1394
  Object.defineProperty(exports, "$Command", {
1394
1395
  enumerable: true,
1395
1396
  get: function () { return smithyClient.Command; }
package/dist-es/index.js CHANGED
@@ -2,5 +2,6 @@ export * from "./TranslateClient";
2
2
  export * from "./Translate";
3
3
  export * from "./commands";
4
4
  export * from "./pagination";
5
- export * from "./models";
5
+ export * from "./models/enums";
6
+ export * from "./models/errors";
6
7
  export { TranslateServiceException } from "./models/TranslateServiceException";
@@ -0,0 +1,58 @@
1
+ export const EncryptionKeyType = {
2
+ KMS: "KMS",
3
+ };
4
+ export const ParallelDataFormat = {
5
+ CSV: "CSV",
6
+ TMX: "TMX",
7
+ TSV: "TSV",
8
+ };
9
+ export const ParallelDataStatus = {
10
+ ACTIVE: "ACTIVE",
11
+ CREATING: "CREATING",
12
+ DELETING: "DELETING",
13
+ FAILED: "FAILED",
14
+ UPDATING: "UPDATING",
15
+ };
16
+ export const JobStatus = {
17
+ COMPLETED: "COMPLETED",
18
+ COMPLETED_WITH_ERROR: "COMPLETED_WITH_ERROR",
19
+ FAILED: "FAILED",
20
+ IN_PROGRESS: "IN_PROGRESS",
21
+ STOPPED: "STOPPED",
22
+ STOP_REQUESTED: "STOP_REQUESTED",
23
+ SUBMITTED: "SUBMITTED",
24
+ };
25
+ export const Brevity = {
26
+ ON: "ON",
27
+ };
28
+ export const Formality = {
29
+ FORMAL: "FORMAL",
30
+ INFORMAL: "INFORMAL",
31
+ };
32
+ export const Profanity = {
33
+ MASK: "MASK",
34
+ };
35
+ export const TerminologyDataFormat = {
36
+ CSV: "CSV",
37
+ TMX: "TMX",
38
+ TSV: "TSV",
39
+ };
40
+ export const Directionality = {
41
+ MULTI: "MULTI",
42
+ UNI: "UNI",
43
+ };
44
+ export const MergeStrategy = {
45
+ OVERWRITE: "OVERWRITE",
46
+ };
47
+ export const DisplayLanguageCode = {
48
+ DE: "de",
49
+ EN: "en",
50
+ ES: "es",
51
+ FR: "fr",
52
+ IT: "it",
53
+ JA: "ja",
54
+ KO: "ko",
55
+ PT: "pt",
56
+ ZH: "zh",
57
+ ZH_TW: "zh-TW",
58
+ };
@@ -0,0 +1,219 @@
1
+ import { TranslateServiceException as __BaseException } from "./TranslateServiceException";
2
+ export class ConcurrentModificationException extends __BaseException {
3
+ name = "ConcurrentModificationException";
4
+ $fault = "client";
5
+ Message;
6
+ constructor(opts) {
7
+ super({
8
+ name: "ConcurrentModificationException",
9
+ $fault: "client",
10
+ ...opts,
11
+ });
12
+ Object.setPrototypeOf(this, ConcurrentModificationException.prototype);
13
+ this.Message = opts.Message;
14
+ }
15
+ }
16
+ export class ConflictException extends __BaseException {
17
+ name = "ConflictException";
18
+ $fault = "client";
19
+ Message;
20
+ constructor(opts) {
21
+ super({
22
+ name: "ConflictException",
23
+ $fault: "client",
24
+ ...opts,
25
+ });
26
+ Object.setPrototypeOf(this, ConflictException.prototype);
27
+ this.Message = opts.Message;
28
+ }
29
+ }
30
+ export class InternalServerException extends __BaseException {
31
+ name = "InternalServerException";
32
+ $fault = "server";
33
+ Message;
34
+ constructor(opts) {
35
+ super({
36
+ name: "InternalServerException",
37
+ $fault: "server",
38
+ ...opts,
39
+ });
40
+ Object.setPrototypeOf(this, InternalServerException.prototype);
41
+ this.Message = opts.Message;
42
+ }
43
+ }
44
+ export class InvalidParameterValueException extends __BaseException {
45
+ name = "InvalidParameterValueException";
46
+ $fault = "client";
47
+ Message;
48
+ constructor(opts) {
49
+ super({
50
+ name: "InvalidParameterValueException",
51
+ $fault: "client",
52
+ ...opts,
53
+ });
54
+ Object.setPrototypeOf(this, InvalidParameterValueException.prototype);
55
+ this.Message = opts.Message;
56
+ }
57
+ }
58
+ export class InvalidRequestException extends __BaseException {
59
+ name = "InvalidRequestException";
60
+ $fault = "client";
61
+ Message;
62
+ constructor(opts) {
63
+ super({
64
+ name: "InvalidRequestException",
65
+ $fault: "client",
66
+ ...opts,
67
+ });
68
+ Object.setPrototypeOf(this, InvalidRequestException.prototype);
69
+ this.Message = opts.Message;
70
+ }
71
+ }
72
+ export class LimitExceededException extends __BaseException {
73
+ name = "LimitExceededException";
74
+ $fault = "client";
75
+ Message;
76
+ constructor(opts) {
77
+ super({
78
+ name: "LimitExceededException",
79
+ $fault: "client",
80
+ ...opts,
81
+ });
82
+ Object.setPrototypeOf(this, LimitExceededException.prototype);
83
+ this.Message = opts.Message;
84
+ }
85
+ }
86
+ export class TooManyRequestsException extends __BaseException {
87
+ name = "TooManyRequestsException";
88
+ $fault = "client";
89
+ Message;
90
+ constructor(opts) {
91
+ super({
92
+ name: "TooManyRequestsException",
93
+ $fault: "client",
94
+ ...opts,
95
+ });
96
+ Object.setPrototypeOf(this, TooManyRequestsException.prototype);
97
+ this.Message = opts.Message;
98
+ }
99
+ }
100
+ export class TooManyTagsException extends __BaseException {
101
+ name = "TooManyTagsException";
102
+ $fault = "client";
103
+ ResourceArn;
104
+ constructor(opts) {
105
+ super({
106
+ name: "TooManyTagsException",
107
+ $fault: "client",
108
+ ...opts,
109
+ });
110
+ Object.setPrototypeOf(this, TooManyTagsException.prototype);
111
+ this.ResourceArn = opts.ResourceArn;
112
+ }
113
+ }
114
+ export class ResourceNotFoundException extends __BaseException {
115
+ name = "ResourceNotFoundException";
116
+ $fault = "client";
117
+ Message;
118
+ constructor(opts) {
119
+ super({
120
+ name: "ResourceNotFoundException",
121
+ $fault: "client",
122
+ ...opts,
123
+ });
124
+ Object.setPrototypeOf(this, ResourceNotFoundException.prototype);
125
+ this.Message = opts.Message;
126
+ }
127
+ }
128
+ export class UnsupportedDisplayLanguageCodeException extends __BaseException {
129
+ name = "UnsupportedDisplayLanguageCodeException";
130
+ $fault = "client";
131
+ Message;
132
+ DisplayLanguageCode;
133
+ constructor(opts) {
134
+ super({
135
+ name: "UnsupportedDisplayLanguageCodeException",
136
+ $fault: "client",
137
+ ...opts,
138
+ });
139
+ Object.setPrototypeOf(this, UnsupportedDisplayLanguageCodeException.prototype);
140
+ this.Message = opts.Message;
141
+ this.DisplayLanguageCode = opts.DisplayLanguageCode;
142
+ }
143
+ }
144
+ export class InvalidFilterException extends __BaseException {
145
+ name = "InvalidFilterException";
146
+ $fault = "client";
147
+ Message;
148
+ constructor(opts) {
149
+ super({
150
+ name: "InvalidFilterException",
151
+ $fault: "client",
152
+ ...opts,
153
+ });
154
+ Object.setPrototypeOf(this, InvalidFilterException.prototype);
155
+ this.Message = opts.Message;
156
+ }
157
+ }
158
+ export class UnsupportedLanguagePairException extends __BaseException {
159
+ name = "UnsupportedLanguagePairException";
160
+ $fault = "client";
161
+ Message;
162
+ SourceLanguageCode;
163
+ TargetLanguageCode;
164
+ constructor(opts) {
165
+ super({
166
+ name: "UnsupportedLanguagePairException",
167
+ $fault: "client",
168
+ ...opts,
169
+ });
170
+ Object.setPrototypeOf(this, UnsupportedLanguagePairException.prototype);
171
+ this.Message = opts.Message;
172
+ this.SourceLanguageCode = opts.SourceLanguageCode;
173
+ this.TargetLanguageCode = opts.TargetLanguageCode;
174
+ }
175
+ }
176
+ export class ServiceUnavailableException extends __BaseException {
177
+ name = "ServiceUnavailableException";
178
+ $fault = "server";
179
+ Message;
180
+ constructor(opts) {
181
+ super({
182
+ name: "ServiceUnavailableException",
183
+ $fault: "server",
184
+ ...opts,
185
+ });
186
+ Object.setPrototypeOf(this, ServiceUnavailableException.prototype);
187
+ this.Message = opts.Message;
188
+ }
189
+ }
190
+ export class DetectedLanguageLowConfidenceException extends __BaseException {
191
+ name = "DetectedLanguageLowConfidenceException";
192
+ $fault = "client";
193
+ Message;
194
+ DetectedLanguageCode;
195
+ constructor(opts) {
196
+ super({
197
+ name: "DetectedLanguageLowConfidenceException",
198
+ $fault: "client",
199
+ ...opts,
200
+ });
201
+ Object.setPrototypeOf(this, DetectedLanguageLowConfidenceException.prototype);
202
+ this.Message = opts.Message;
203
+ this.DetectedLanguageCode = opts.DetectedLanguageCode;
204
+ }
205
+ }
206
+ export class TextSizeLimitExceededException extends __BaseException {
207
+ name = "TextSizeLimitExceededException";
208
+ $fault = "client";
209
+ Message;
210
+ constructor(opts) {
211
+ super({
212
+ name: "TextSizeLimitExceededException",
213
+ $fault: "client",
214
+ ...opts,
215
+ });
216
+ Object.setPrototypeOf(this, TextSizeLimitExceededException.prototype);
217
+ this.Message = opts.Message;
218
+ }
219
+ }
@@ -1,277 +1 @@
1
- import { TranslateServiceException as __BaseException } from "./TranslateServiceException";
2
- export class ConcurrentModificationException extends __BaseException {
3
- name = "ConcurrentModificationException";
4
- $fault = "client";
5
- Message;
6
- constructor(opts) {
7
- super({
8
- name: "ConcurrentModificationException",
9
- $fault: "client",
10
- ...opts,
11
- });
12
- Object.setPrototypeOf(this, ConcurrentModificationException.prototype);
13
- this.Message = opts.Message;
14
- }
15
- }
16
- export class ConflictException extends __BaseException {
17
- name = "ConflictException";
18
- $fault = "client";
19
- Message;
20
- constructor(opts) {
21
- super({
22
- name: "ConflictException",
23
- $fault: "client",
24
- ...opts,
25
- });
26
- Object.setPrototypeOf(this, ConflictException.prototype);
27
- this.Message = opts.Message;
28
- }
29
- }
30
- export const EncryptionKeyType = {
31
- KMS: "KMS",
32
- };
33
- export const ParallelDataFormat = {
34
- CSV: "CSV",
35
- TMX: "TMX",
36
- TSV: "TSV",
37
- };
38
- export const ParallelDataStatus = {
39
- ACTIVE: "ACTIVE",
40
- CREATING: "CREATING",
41
- DELETING: "DELETING",
42
- FAILED: "FAILED",
43
- UPDATING: "UPDATING",
44
- };
45
- export class InternalServerException extends __BaseException {
46
- name = "InternalServerException";
47
- $fault = "server";
48
- Message;
49
- constructor(opts) {
50
- super({
51
- name: "InternalServerException",
52
- $fault: "server",
53
- ...opts,
54
- });
55
- Object.setPrototypeOf(this, InternalServerException.prototype);
56
- this.Message = opts.Message;
57
- }
58
- }
59
- export class InvalidParameterValueException extends __BaseException {
60
- name = "InvalidParameterValueException";
61
- $fault = "client";
62
- Message;
63
- constructor(opts) {
64
- super({
65
- name: "InvalidParameterValueException",
66
- $fault: "client",
67
- ...opts,
68
- });
69
- Object.setPrototypeOf(this, InvalidParameterValueException.prototype);
70
- this.Message = opts.Message;
71
- }
72
- }
73
- export class InvalidRequestException extends __BaseException {
74
- name = "InvalidRequestException";
75
- $fault = "client";
76
- Message;
77
- constructor(opts) {
78
- super({
79
- name: "InvalidRequestException",
80
- $fault: "client",
81
- ...opts,
82
- });
83
- Object.setPrototypeOf(this, InvalidRequestException.prototype);
84
- this.Message = opts.Message;
85
- }
86
- }
87
- export class LimitExceededException extends __BaseException {
88
- name = "LimitExceededException";
89
- $fault = "client";
90
- Message;
91
- constructor(opts) {
92
- super({
93
- name: "LimitExceededException",
94
- $fault: "client",
95
- ...opts,
96
- });
97
- Object.setPrototypeOf(this, LimitExceededException.prototype);
98
- this.Message = opts.Message;
99
- }
100
- }
101
- export class TooManyRequestsException extends __BaseException {
102
- name = "TooManyRequestsException";
103
- $fault = "client";
104
- Message;
105
- constructor(opts) {
106
- super({
107
- name: "TooManyRequestsException",
108
- $fault: "client",
109
- ...opts,
110
- });
111
- Object.setPrototypeOf(this, TooManyRequestsException.prototype);
112
- this.Message = opts.Message;
113
- }
114
- }
115
- export class TooManyTagsException extends __BaseException {
116
- name = "TooManyTagsException";
117
- $fault = "client";
118
- ResourceArn;
119
- constructor(opts) {
120
- super({
121
- name: "TooManyTagsException",
122
- $fault: "client",
123
- ...opts,
124
- });
125
- Object.setPrototypeOf(this, TooManyTagsException.prototype);
126
- this.ResourceArn = opts.ResourceArn;
127
- }
128
- }
129
- export class ResourceNotFoundException extends __BaseException {
130
- name = "ResourceNotFoundException";
131
- $fault = "client";
132
- Message;
133
- constructor(opts) {
134
- super({
135
- name: "ResourceNotFoundException",
136
- $fault: "client",
137
- ...opts,
138
- });
139
- Object.setPrototypeOf(this, ResourceNotFoundException.prototype);
140
- this.Message = opts.Message;
141
- }
142
- }
143
- export const JobStatus = {
144
- COMPLETED: "COMPLETED",
145
- COMPLETED_WITH_ERROR: "COMPLETED_WITH_ERROR",
146
- FAILED: "FAILED",
147
- IN_PROGRESS: "IN_PROGRESS",
148
- STOPPED: "STOPPED",
149
- STOP_REQUESTED: "STOP_REQUESTED",
150
- SUBMITTED: "SUBMITTED",
151
- };
152
- export const Brevity = {
153
- ON: "ON",
154
- };
155
- export const Formality = {
156
- FORMAL: "FORMAL",
157
- INFORMAL: "INFORMAL",
158
- };
159
- export const Profanity = {
160
- MASK: "MASK",
161
- };
162
- export const TerminologyDataFormat = {
163
- CSV: "CSV",
164
- TMX: "TMX",
165
- TSV: "TSV",
166
- };
167
- export const Directionality = {
168
- MULTI: "MULTI",
169
- UNI: "UNI",
170
- };
171
- export const MergeStrategy = {
172
- OVERWRITE: "OVERWRITE",
173
- };
174
- export const DisplayLanguageCode = {
175
- DE: "de",
176
- EN: "en",
177
- ES: "es",
178
- FR: "fr",
179
- IT: "it",
180
- JA: "ja",
181
- KO: "ko",
182
- PT: "pt",
183
- ZH: "zh",
184
- ZH_TW: "zh-TW",
185
- };
186
- export class UnsupportedDisplayLanguageCodeException extends __BaseException {
187
- name = "UnsupportedDisplayLanguageCodeException";
188
- $fault = "client";
189
- Message;
190
- DisplayLanguageCode;
191
- constructor(opts) {
192
- super({
193
- name: "UnsupportedDisplayLanguageCodeException",
194
- $fault: "client",
195
- ...opts,
196
- });
197
- Object.setPrototypeOf(this, UnsupportedDisplayLanguageCodeException.prototype);
198
- this.Message = opts.Message;
199
- this.DisplayLanguageCode = opts.DisplayLanguageCode;
200
- }
201
- }
202
- export class InvalidFilterException extends __BaseException {
203
- name = "InvalidFilterException";
204
- $fault = "client";
205
- Message;
206
- constructor(opts) {
207
- super({
208
- name: "InvalidFilterException",
209
- $fault: "client",
210
- ...opts,
211
- });
212
- Object.setPrototypeOf(this, InvalidFilterException.prototype);
213
- this.Message = opts.Message;
214
- }
215
- }
216
- export class UnsupportedLanguagePairException extends __BaseException {
217
- name = "UnsupportedLanguagePairException";
218
- $fault = "client";
219
- Message;
220
- SourceLanguageCode;
221
- TargetLanguageCode;
222
- constructor(opts) {
223
- super({
224
- name: "UnsupportedLanguagePairException",
225
- $fault: "client",
226
- ...opts,
227
- });
228
- Object.setPrototypeOf(this, UnsupportedLanguagePairException.prototype);
229
- this.Message = opts.Message;
230
- this.SourceLanguageCode = opts.SourceLanguageCode;
231
- this.TargetLanguageCode = opts.TargetLanguageCode;
232
- }
233
- }
234
- export class ServiceUnavailableException extends __BaseException {
235
- name = "ServiceUnavailableException";
236
- $fault = "server";
237
- Message;
238
- constructor(opts) {
239
- super({
240
- name: "ServiceUnavailableException",
241
- $fault: "server",
242
- ...opts,
243
- });
244
- Object.setPrototypeOf(this, ServiceUnavailableException.prototype);
245
- this.Message = opts.Message;
246
- }
247
- }
248
- export class DetectedLanguageLowConfidenceException extends __BaseException {
249
- name = "DetectedLanguageLowConfidenceException";
250
- $fault = "client";
251
- Message;
252
- DetectedLanguageCode;
253
- constructor(opts) {
254
- super({
255
- name: "DetectedLanguageLowConfidenceException",
256
- $fault: "client",
257
- ...opts,
258
- });
259
- Object.setPrototypeOf(this, DetectedLanguageLowConfidenceException.prototype);
260
- this.Message = opts.Message;
261
- this.DetectedLanguageCode = opts.DetectedLanguageCode;
262
- }
263
- }
264
- export class TextSizeLimitExceededException extends __BaseException {
265
- name = "TextSizeLimitExceededException";
266
- $fault = "client";
267
- Message;
268
- constructor(opts) {
269
- super({
270
- name: "TextSizeLimitExceededException",
271
- $fault: "client",
272
- ...opts,
273
- });
274
- Object.setPrototypeOf(this, TextSizeLimitExceededException.prototype);
275
- this.Message = opts.Message;
276
- }
277
- }
1
+ export {};