@aws-sdk/client-translate 3.934.0 → 3.936.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 +59 -58
- package/dist-es/index.js +2 -1
- package/dist-es/models/enums.js +58 -0
- package/dist-es/models/errors.js +219 -0
- package/dist-es/models/models_0.js +1 -277
- package/dist-es/schemas/schemas_0.js +1 -1
- package/dist-types/index.d.ts +3 -1
- package/dist-types/models/enums.d.ts +146 -0
- package/dist-types/models/errors.d.ts +230 -0
- package/dist-types/models/models_0.d.ts +1 -376
- package/dist-types/ts3.4/index.d.ts +3 -1
- package/dist-types/ts3.4/models/enums.d.ts +75 -0
- package/dist-types/ts3.4/models/errors.d.ts +136 -0
- package/dist-types/ts3.4/models/models_0.d.ts +13 -211
- package/package.json +19 -19
- package/dist-es/models/index.js +0 -1
- package/dist-types/models/index.d.ts +0 -1
- package/dist-types/ts3.4/models/index.d.ts +0 -1
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { TranslateServiceException as __BaseException } from "./TranslateServiceException";
|
|
1
|
+
import { Brevity, Directionality, DisplayLanguageCode, EncryptionKeyType, Formality, JobStatus, MergeStrategy, ParallelDataFormat, ParallelDataStatus, Profanity, TerminologyDataFormat } from "./enums";
|
|
3
2
|
/**
|
|
4
3
|
* <p>The term being translated by the custom terminology.</p>
|
|
5
4
|
* @public
|
|
@@ -38,44 +37,6 @@ export interface AppliedTerminology {
|
|
|
38
37
|
*/
|
|
39
38
|
Terms?: Term[] | undefined;
|
|
40
39
|
}
|
|
41
|
-
/**
|
|
42
|
-
* <p>Another modification is being made. That modification must complete before you can make
|
|
43
|
-
* your change.</p>
|
|
44
|
-
* @public
|
|
45
|
-
*/
|
|
46
|
-
export declare class ConcurrentModificationException extends __BaseException {
|
|
47
|
-
readonly name: "ConcurrentModificationException";
|
|
48
|
-
readonly $fault: "client";
|
|
49
|
-
Message?: string | undefined;
|
|
50
|
-
/**
|
|
51
|
-
* @internal
|
|
52
|
-
*/
|
|
53
|
-
constructor(opts: __ExceptionOptionType<ConcurrentModificationException, __BaseException>);
|
|
54
|
-
}
|
|
55
|
-
/**
|
|
56
|
-
* <p>There was a conflict processing the request. Try your request again.</p>
|
|
57
|
-
* @public
|
|
58
|
-
*/
|
|
59
|
-
export declare class ConflictException extends __BaseException {
|
|
60
|
-
readonly name: "ConflictException";
|
|
61
|
-
readonly $fault: "client";
|
|
62
|
-
Message?: string | undefined;
|
|
63
|
-
/**
|
|
64
|
-
* @internal
|
|
65
|
-
*/
|
|
66
|
-
constructor(opts: __ExceptionOptionType<ConflictException, __BaseException>);
|
|
67
|
-
}
|
|
68
|
-
/**
|
|
69
|
-
* @public
|
|
70
|
-
* @enum
|
|
71
|
-
*/
|
|
72
|
-
export declare const EncryptionKeyType: {
|
|
73
|
-
readonly KMS: "KMS";
|
|
74
|
-
};
|
|
75
|
-
/**
|
|
76
|
-
* @public
|
|
77
|
-
*/
|
|
78
|
-
export type EncryptionKeyType = (typeof EncryptionKeyType)[keyof typeof EncryptionKeyType];
|
|
79
40
|
/**
|
|
80
41
|
* <p>The encryption key used to encrypt this object.</p>
|
|
81
42
|
* @public
|
|
@@ -92,19 +53,6 @@ export interface EncryptionKey {
|
|
|
92
53
|
*/
|
|
93
54
|
Id: string | undefined;
|
|
94
55
|
}
|
|
95
|
-
/**
|
|
96
|
-
* @public
|
|
97
|
-
* @enum
|
|
98
|
-
*/
|
|
99
|
-
export declare const ParallelDataFormat: {
|
|
100
|
-
readonly CSV: "CSV";
|
|
101
|
-
readonly TMX: "TMX";
|
|
102
|
-
readonly TSV: "TSV";
|
|
103
|
-
};
|
|
104
|
-
/**
|
|
105
|
-
* @public
|
|
106
|
-
*/
|
|
107
|
-
export type ParallelDataFormat = (typeof ParallelDataFormat)[keyof typeof ParallelDataFormat];
|
|
108
56
|
/**
|
|
109
57
|
* <p>Specifies the format and S3 location of the parallel data input file.</p>
|
|
110
58
|
* @public
|
|
@@ -179,21 +127,6 @@ export interface CreateParallelDataRequest {
|
|
|
179
127
|
*/
|
|
180
128
|
Tags?: Tag[] | undefined;
|
|
181
129
|
}
|
|
182
|
-
/**
|
|
183
|
-
* @public
|
|
184
|
-
* @enum
|
|
185
|
-
*/
|
|
186
|
-
export declare const ParallelDataStatus: {
|
|
187
|
-
readonly ACTIVE: "ACTIVE";
|
|
188
|
-
readonly CREATING: "CREATING";
|
|
189
|
-
readonly DELETING: "DELETING";
|
|
190
|
-
readonly FAILED: "FAILED";
|
|
191
|
-
readonly UPDATING: "UPDATING";
|
|
192
|
-
};
|
|
193
|
-
/**
|
|
194
|
-
* @public
|
|
195
|
-
*/
|
|
196
|
-
export type ParallelDataStatus = (typeof ParallelDataStatus)[keyof typeof ParallelDataStatus];
|
|
197
130
|
/**
|
|
198
131
|
* @public
|
|
199
132
|
*/
|
|
@@ -210,88 +143,6 @@ export interface CreateParallelDataResponse {
|
|
|
210
143
|
*/
|
|
211
144
|
Status?: ParallelDataStatus | undefined;
|
|
212
145
|
}
|
|
213
|
-
/**
|
|
214
|
-
* <p>An internal server error occurred. Retry your request.</p>
|
|
215
|
-
* @public
|
|
216
|
-
*/
|
|
217
|
-
export declare class InternalServerException extends __BaseException {
|
|
218
|
-
readonly name: "InternalServerException";
|
|
219
|
-
readonly $fault: "server";
|
|
220
|
-
Message?: string | undefined;
|
|
221
|
-
/**
|
|
222
|
-
* @internal
|
|
223
|
-
*/
|
|
224
|
-
constructor(opts: __ExceptionOptionType<InternalServerException, __BaseException>);
|
|
225
|
-
}
|
|
226
|
-
/**
|
|
227
|
-
* <p>The value of the parameter is not valid. Review the value of the parameter you are using
|
|
228
|
-
* to correct it, and then retry your operation.</p>
|
|
229
|
-
* @public
|
|
230
|
-
*/
|
|
231
|
-
export declare class InvalidParameterValueException extends __BaseException {
|
|
232
|
-
readonly name: "InvalidParameterValueException";
|
|
233
|
-
readonly $fault: "client";
|
|
234
|
-
Message?: string | undefined;
|
|
235
|
-
/**
|
|
236
|
-
* @internal
|
|
237
|
-
*/
|
|
238
|
-
constructor(opts: __ExceptionOptionType<InvalidParameterValueException, __BaseException>);
|
|
239
|
-
}
|
|
240
|
-
/**
|
|
241
|
-
* <p> The request that you made is not valid. Check your request to determine why it's not
|
|
242
|
-
* valid and then retry the request. </p>
|
|
243
|
-
* @public
|
|
244
|
-
*/
|
|
245
|
-
export declare class InvalidRequestException extends __BaseException {
|
|
246
|
-
readonly name: "InvalidRequestException";
|
|
247
|
-
readonly $fault: "client";
|
|
248
|
-
Message?: string | undefined;
|
|
249
|
-
/**
|
|
250
|
-
* @internal
|
|
251
|
-
*/
|
|
252
|
-
constructor(opts: __ExceptionOptionType<InvalidRequestException, __BaseException>);
|
|
253
|
-
}
|
|
254
|
-
/**
|
|
255
|
-
* <p>The specified limit has been exceeded. Review your request and retry it with a quantity
|
|
256
|
-
* below the stated limit.</p>
|
|
257
|
-
* @public
|
|
258
|
-
*/
|
|
259
|
-
export declare class LimitExceededException extends __BaseException {
|
|
260
|
-
readonly name: "LimitExceededException";
|
|
261
|
-
readonly $fault: "client";
|
|
262
|
-
Message?: string | undefined;
|
|
263
|
-
/**
|
|
264
|
-
* @internal
|
|
265
|
-
*/
|
|
266
|
-
constructor(opts: __ExceptionOptionType<LimitExceededException, __BaseException>);
|
|
267
|
-
}
|
|
268
|
-
/**
|
|
269
|
-
* <p> You have made too many requests within a short period of time. Wait for a short time and
|
|
270
|
-
* then try your request again.</p>
|
|
271
|
-
* @public
|
|
272
|
-
*/
|
|
273
|
-
export declare class TooManyRequestsException extends __BaseException {
|
|
274
|
-
readonly name: "TooManyRequestsException";
|
|
275
|
-
readonly $fault: "client";
|
|
276
|
-
Message?: string | undefined;
|
|
277
|
-
/**
|
|
278
|
-
* @internal
|
|
279
|
-
*/
|
|
280
|
-
constructor(opts: __ExceptionOptionType<TooManyRequestsException, __BaseException>);
|
|
281
|
-
}
|
|
282
|
-
/**
|
|
283
|
-
* <p>You have added too many tags to this resource. The maximum is 50 tags.</p>
|
|
284
|
-
* @public
|
|
285
|
-
*/
|
|
286
|
-
export declare class TooManyTagsException extends __BaseException {
|
|
287
|
-
readonly name: "TooManyTagsException";
|
|
288
|
-
readonly $fault: "client";
|
|
289
|
-
ResourceArn?: string | undefined;
|
|
290
|
-
/**
|
|
291
|
-
* @internal
|
|
292
|
-
*/
|
|
293
|
-
constructor(opts: __ExceptionOptionType<TooManyTagsException, __BaseException>);
|
|
294
|
-
}
|
|
295
146
|
/**
|
|
296
147
|
* @public
|
|
297
148
|
*/
|
|
@@ -317,21 +168,6 @@ export interface DeleteParallelDataResponse {
|
|
|
317
168
|
*/
|
|
318
169
|
Status?: ParallelDataStatus | undefined;
|
|
319
170
|
}
|
|
320
|
-
/**
|
|
321
|
-
* <p>The resource you are looking for has not been found. Review the resource you're looking
|
|
322
|
-
* for and see if a different resource will accomplish your needs before retrying the revised
|
|
323
|
-
* request.</p>
|
|
324
|
-
* @public
|
|
325
|
-
*/
|
|
326
|
-
export declare class ResourceNotFoundException extends __BaseException {
|
|
327
|
-
readonly name: "ResourceNotFoundException";
|
|
328
|
-
readonly $fault: "client";
|
|
329
|
-
Message?: string | undefined;
|
|
330
|
-
/**
|
|
331
|
-
* @internal
|
|
332
|
-
*/
|
|
333
|
-
constructor(opts: __ExceptionOptionType<ResourceNotFoundException, __BaseException>);
|
|
334
|
-
}
|
|
335
171
|
/**
|
|
336
172
|
* @public
|
|
337
173
|
*/
|
|
@@ -434,23 +270,6 @@ export interface JobDetails {
|
|
|
434
270
|
*/
|
|
435
271
|
InputDocumentsCount?: number | undefined;
|
|
436
272
|
}
|
|
437
|
-
/**
|
|
438
|
-
* @public
|
|
439
|
-
* @enum
|
|
440
|
-
*/
|
|
441
|
-
export declare const JobStatus: {
|
|
442
|
-
readonly COMPLETED: "COMPLETED";
|
|
443
|
-
readonly COMPLETED_WITH_ERROR: "COMPLETED_WITH_ERROR";
|
|
444
|
-
readonly FAILED: "FAILED";
|
|
445
|
-
readonly IN_PROGRESS: "IN_PROGRESS";
|
|
446
|
-
readonly STOPPED: "STOPPED";
|
|
447
|
-
readonly STOP_REQUESTED: "STOP_REQUESTED";
|
|
448
|
-
readonly SUBMITTED: "SUBMITTED";
|
|
449
|
-
};
|
|
450
|
-
/**
|
|
451
|
-
* @public
|
|
452
|
-
*/
|
|
453
|
-
export type JobStatus = (typeof JobStatus)[keyof typeof JobStatus];
|
|
454
273
|
/**
|
|
455
274
|
* <p>The output configuration properties for a batch translation job.</p>
|
|
456
275
|
* @public
|
|
@@ -468,40 +287,6 @@ export interface OutputDataConfig {
|
|
|
468
287
|
*/
|
|
469
288
|
EncryptionKey?: EncryptionKey | undefined;
|
|
470
289
|
}
|
|
471
|
-
/**
|
|
472
|
-
* @public
|
|
473
|
-
* @enum
|
|
474
|
-
*/
|
|
475
|
-
export declare const Brevity: {
|
|
476
|
-
readonly ON: "ON";
|
|
477
|
-
};
|
|
478
|
-
/**
|
|
479
|
-
* @public
|
|
480
|
-
*/
|
|
481
|
-
export type Brevity = (typeof Brevity)[keyof typeof Brevity];
|
|
482
|
-
/**
|
|
483
|
-
* @public
|
|
484
|
-
* @enum
|
|
485
|
-
*/
|
|
486
|
-
export declare const Formality: {
|
|
487
|
-
readonly FORMAL: "FORMAL";
|
|
488
|
-
readonly INFORMAL: "INFORMAL";
|
|
489
|
-
};
|
|
490
|
-
/**
|
|
491
|
-
* @public
|
|
492
|
-
*/
|
|
493
|
-
export type Formality = (typeof Formality)[keyof typeof Formality];
|
|
494
|
-
/**
|
|
495
|
-
* @public
|
|
496
|
-
* @enum
|
|
497
|
-
*/
|
|
498
|
-
export declare const Profanity: {
|
|
499
|
-
readonly MASK: "MASK";
|
|
500
|
-
};
|
|
501
|
-
/**
|
|
502
|
-
* @public
|
|
503
|
-
*/
|
|
504
|
-
export type Profanity = (typeof Profanity)[keyof typeof Profanity];
|
|
505
290
|
/**
|
|
506
291
|
* <p>Settings to configure your translation output. You can configure the following options:</p>
|
|
507
292
|
* <ul>
|
|
@@ -839,19 +624,6 @@ export interface GetParallelDataResponse {
|
|
|
839
624
|
*/
|
|
840
625
|
LatestUpdateAttemptAuxiliaryDataLocation?: ParallelDataDataLocation | undefined;
|
|
841
626
|
}
|
|
842
|
-
/**
|
|
843
|
-
* @public
|
|
844
|
-
* @enum
|
|
845
|
-
*/
|
|
846
|
-
export declare const TerminologyDataFormat: {
|
|
847
|
-
readonly CSV: "CSV";
|
|
848
|
-
readonly TMX: "TMX";
|
|
849
|
-
readonly TSV: "TSV";
|
|
850
|
-
};
|
|
851
|
-
/**
|
|
852
|
-
* @public
|
|
853
|
-
*/
|
|
854
|
-
export type TerminologyDataFormat = (typeof TerminologyDataFormat)[keyof typeof TerminologyDataFormat];
|
|
855
627
|
/**
|
|
856
628
|
* @public
|
|
857
629
|
*/
|
|
@@ -900,18 +672,6 @@ export interface TerminologyDataLocation {
|
|
|
900
672
|
*/
|
|
901
673
|
Location: string | undefined;
|
|
902
674
|
}
|
|
903
|
-
/**
|
|
904
|
-
* @public
|
|
905
|
-
* @enum
|
|
906
|
-
*/
|
|
907
|
-
export declare const Directionality: {
|
|
908
|
-
readonly MULTI: "MULTI";
|
|
909
|
-
readonly UNI: "UNI";
|
|
910
|
-
};
|
|
911
|
-
/**
|
|
912
|
-
* @public
|
|
913
|
-
*/
|
|
914
|
-
export type Directionality = (typeof Directionality)[keyof typeof Directionality];
|
|
915
675
|
/**
|
|
916
676
|
* <p>The properties of the custom terminology.</p>
|
|
917
677
|
* @public
|
|
@@ -1038,17 +798,6 @@ export interface GetTerminologyResponse {
|
|
|
1038
798
|
*/
|
|
1039
799
|
AuxiliaryDataLocation?: TerminologyDataLocation | undefined;
|
|
1040
800
|
}
|
|
1041
|
-
/**
|
|
1042
|
-
* @public
|
|
1043
|
-
* @enum
|
|
1044
|
-
*/
|
|
1045
|
-
export declare const MergeStrategy: {
|
|
1046
|
-
readonly OVERWRITE: "OVERWRITE";
|
|
1047
|
-
};
|
|
1048
|
-
/**
|
|
1049
|
-
* @public
|
|
1050
|
-
*/
|
|
1051
|
-
export type MergeStrategy = (typeof MergeStrategy)[keyof typeof MergeStrategy];
|
|
1052
801
|
/**
|
|
1053
802
|
* <p>The data associated with the custom terminology. For information about the custom terminology file, see
|
|
1054
803
|
* <a href="https://docs.aws.amazon.com/translate/latest/dg/creating-custom-terminology.html">
|
|
@@ -1150,26 +899,6 @@ export interface ImportTerminologyResponse {
|
|
|
1150
899
|
*/
|
|
1151
900
|
AuxiliaryDataLocation?: TerminologyDataLocation | undefined;
|
|
1152
901
|
}
|
|
1153
|
-
/**
|
|
1154
|
-
* @public
|
|
1155
|
-
* @enum
|
|
1156
|
-
*/
|
|
1157
|
-
export declare const DisplayLanguageCode: {
|
|
1158
|
-
readonly DE: "de";
|
|
1159
|
-
readonly EN: "en";
|
|
1160
|
-
readonly ES: "es";
|
|
1161
|
-
readonly FR: "fr";
|
|
1162
|
-
readonly IT: "it";
|
|
1163
|
-
readonly JA: "ja";
|
|
1164
|
-
readonly KO: "ko";
|
|
1165
|
-
readonly PT: "pt";
|
|
1166
|
-
readonly ZH: "zh";
|
|
1167
|
-
readonly ZH_TW: "zh-TW";
|
|
1168
|
-
};
|
|
1169
|
-
/**
|
|
1170
|
-
* @public
|
|
1171
|
-
*/
|
|
1172
|
-
export type DisplayLanguageCode = (typeof DisplayLanguageCode)[keyof typeof DisplayLanguageCode];
|
|
1173
902
|
/**
|
|
1174
903
|
* @public
|
|
1175
904
|
*/
|
|
@@ -1228,24 +957,6 @@ export interface ListLanguagesResponse {
|
|
|
1228
957
|
*/
|
|
1229
958
|
NextToken?: string | undefined;
|
|
1230
959
|
}
|
|
1231
|
-
/**
|
|
1232
|
-
* <p>Requested display language code is not supported.</p>
|
|
1233
|
-
* @public
|
|
1234
|
-
*/
|
|
1235
|
-
export declare class UnsupportedDisplayLanguageCodeException extends __BaseException {
|
|
1236
|
-
readonly name: "UnsupportedDisplayLanguageCodeException";
|
|
1237
|
-
readonly $fault: "client";
|
|
1238
|
-
Message?: string | undefined;
|
|
1239
|
-
/**
|
|
1240
|
-
* <p>Language code passed in with the request.</p>
|
|
1241
|
-
* @public
|
|
1242
|
-
*/
|
|
1243
|
-
DisplayLanguageCode?: string | undefined;
|
|
1244
|
-
/**
|
|
1245
|
-
* @internal
|
|
1246
|
-
*/
|
|
1247
|
-
constructor(opts: __ExceptionOptionType<UnsupportedDisplayLanguageCodeException, __BaseException>);
|
|
1248
|
-
}
|
|
1249
960
|
/**
|
|
1250
961
|
* @public
|
|
1251
962
|
*/
|
|
@@ -1333,19 +1044,6 @@ export interface ListTerminologiesResponse {
|
|
|
1333
1044
|
*/
|
|
1334
1045
|
NextToken?: string | undefined;
|
|
1335
1046
|
}
|
|
1336
|
-
/**
|
|
1337
|
-
* <p>The filter specified for the operation is not valid. Specify a different filter.</p>
|
|
1338
|
-
* @public
|
|
1339
|
-
*/
|
|
1340
|
-
export declare class InvalidFilterException extends __BaseException {
|
|
1341
|
-
readonly name: "InvalidFilterException";
|
|
1342
|
-
readonly $fault: "client";
|
|
1343
|
-
Message?: string | undefined;
|
|
1344
|
-
/**
|
|
1345
|
-
* @internal
|
|
1346
|
-
*/
|
|
1347
|
-
constructor(opts: __ExceptionOptionType<InvalidFilterException, __BaseException>);
|
|
1348
|
-
}
|
|
1349
1047
|
/**
|
|
1350
1048
|
* <p>Provides information for filtering a list of translation jobs. For more information, see
|
|
1351
1049
|
* <a>ListTextTranslationJobs</a>.</p>
|
|
@@ -1562,30 +1260,6 @@ export interface StartTextTranslationJobResponse {
|
|
|
1562
1260
|
*/
|
|
1563
1261
|
JobStatus?: JobStatus | undefined;
|
|
1564
1262
|
}
|
|
1565
|
-
/**
|
|
1566
|
-
* <p>Amazon Translate does not support translation from the language of the source text into the requested
|
|
1567
|
-
* target language. For more information, see <a href="https://docs.aws.amazon.com/translate/latest/dg/what-is-languages.html">Supported languages</a>. </p>
|
|
1568
|
-
* @public
|
|
1569
|
-
*/
|
|
1570
|
-
export declare class UnsupportedLanguagePairException extends __BaseException {
|
|
1571
|
-
readonly name: "UnsupportedLanguagePairException";
|
|
1572
|
-
readonly $fault: "client";
|
|
1573
|
-
Message?: string | undefined;
|
|
1574
|
-
/**
|
|
1575
|
-
* <p>The language code for the language of the input text. </p>
|
|
1576
|
-
* @public
|
|
1577
|
-
*/
|
|
1578
|
-
SourceLanguageCode?: string | undefined;
|
|
1579
|
-
/**
|
|
1580
|
-
* <p>The language code for the language of the translated text. </p>
|
|
1581
|
-
* @public
|
|
1582
|
-
*/
|
|
1583
|
-
TargetLanguageCode?: string | undefined;
|
|
1584
|
-
/**
|
|
1585
|
-
* @internal
|
|
1586
|
-
*/
|
|
1587
|
-
constructor(opts: __ExceptionOptionType<UnsupportedLanguagePairException, __BaseException>);
|
|
1588
|
-
}
|
|
1589
1263
|
/**
|
|
1590
1264
|
* @public
|
|
1591
1265
|
*/
|
|
@@ -1634,20 +1308,6 @@ export interface TagResourceRequest {
|
|
|
1634
1308
|
*/
|
|
1635
1309
|
export interface TagResourceResponse {
|
|
1636
1310
|
}
|
|
1637
|
-
/**
|
|
1638
|
-
* <p>The Amazon Translate service is temporarily unavailable. Wait a bit and then retry your
|
|
1639
|
-
* request.</p>
|
|
1640
|
-
* @public
|
|
1641
|
-
*/
|
|
1642
|
-
export declare class ServiceUnavailableException extends __BaseException {
|
|
1643
|
-
readonly name: "ServiceUnavailableException";
|
|
1644
|
-
readonly $fault: "server";
|
|
1645
|
-
Message?: string | undefined;
|
|
1646
|
-
/**
|
|
1647
|
-
* @internal
|
|
1648
|
-
*/
|
|
1649
|
-
constructor(opts: __ExceptionOptionType<ServiceUnavailableException, __BaseException>);
|
|
1650
|
-
}
|
|
1651
1311
|
/**
|
|
1652
1312
|
* <p>The content and content type of a document.</p>
|
|
1653
1313
|
* @public
|
|
@@ -1797,41 +1457,6 @@ export interface TranslateDocumentResponse {
|
|
|
1797
1457
|
*/
|
|
1798
1458
|
AppliedSettings?: TranslationSettings | undefined;
|
|
1799
1459
|
}
|
|
1800
|
-
/**
|
|
1801
|
-
* <p>The confidence that Amazon Comprehend accurately detected the source language is low. If a
|
|
1802
|
-
* low confidence level is acceptable for your application, you can use the language in the
|
|
1803
|
-
* exception to call Amazon Translate again. For more information, see the <a href="https://docs.aws.amazon.com/comprehend/latest/dg/API_DetectDominantLanguage.html">DetectDominantLanguage</a> operation in the <i>Amazon Comprehend Developer
|
|
1804
|
-
* Guide</i>. </p>
|
|
1805
|
-
* @public
|
|
1806
|
-
*/
|
|
1807
|
-
export declare class DetectedLanguageLowConfidenceException extends __BaseException {
|
|
1808
|
-
readonly name: "DetectedLanguageLowConfidenceException";
|
|
1809
|
-
readonly $fault: "client";
|
|
1810
|
-
Message?: string | undefined;
|
|
1811
|
-
/**
|
|
1812
|
-
* <p>The language code of the auto-detected language from Amazon Comprehend.</p>
|
|
1813
|
-
* @public
|
|
1814
|
-
*/
|
|
1815
|
-
DetectedLanguageCode?: string | undefined;
|
|
1816
|
-
/**
|
|
1817
|
-
* @internal
|
|
1818
|
-
*/
|
|
1819
|
-
constructor(opts: __ExceptionOptionType<DetectedLanguageLowConfidenceException, __BaseException>);
|
|
1820
|
-
}
|
|
1821
|
-
/**
|
|
1822
|
-
* <p> The size of the text you submitted exceeds the size limit. Reduce the size of the text or
|
|
1823
|
-
* use a smaller document and then retry your request. </p>
|
|
1824
|
-
* @public
|
|
1825
|
-
*/
|
|
1826
|
-
export declare class TextSizeLimitExceededException extends __BaseException {
|
|
1827
|
-
readonly name: "TextSizeLimitExceededException";
|
|
1828
|
-
readonly $fault: "client";
|
|
1829
|
-
Message?: string | undefined;
|
|
1830
|
-
/**
|
|
1831
|
-
* @internal
|
|
1832
|
-
*/
|
|
1833
|
-
constructor(opts: __ExceptionOptionType<TextSizeLimitExceededException, __BaseException>);
|
|
1834
|
-
}
|
|
1835
1460
|
/**
|
|
1836
1461
|
* @public
|
|
1837
1462
|
*/
|
|
@@ -5,5 +5,7 @@ export { RuntimeExtension } from "./runtimeExtensions";
|
|
|
5
5
|
export { TranslateExtensionConfiguration } from "./extensionConfiguration";
|
|
6
6
|
export * from "./commands";
|
|
7
7
|
export * from "./pagination";
|
|
8
|
-
export * from "./models";
|
|
8
|
+
export * from "./models/enums";
|
|
9
|
+
export * from "./models/errors";
|
|
10
|
+
export * from "./models/models_0";
|
|
9
11
|
export { TranslateServiceException } from "./models/TranslateServiceException";
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
export declare const EncryptionKeyType: {
|
|
2
|
+
readonly KMS: "KMS";
|
|
3
|
+
};
|
|
4
|
+
export type EncryptionKeyType =
|
|
5
|
+
(typeof EncryptionKeyType)[keyof typeof EncryptionKeyType];
|
|
6
|
+
export declare const ParallelDataFormat: {
|
|
7
|
+
readonly CSV: "CSV";
|
|
8
|
+
readonly TMX: "TMX";
|
|
9
|
+
readonly TSV: "TSV";
|
|
10
|
+
};
|
|
11
|
+
export type ParallelDataFormat =
|
|
12
|
+
(typeof ParallelDataFormat)[keyof typeof ParallelDataFormat];
|
|
13
|
+
export declare const ParallelDataStatus: {
|
|
14
|
+
readonly ACTIVE: "ACTIVE";
|
|
15
|
+
readonly CREATING: "CREATING";
|
|
16
|
+
readonly DELETING: "DELETING";
|
|
17
|
+
readonly FAILED: "FAILED";
|
|
18
|
+
readonly UPDATING: "UPDATING";
|
|
19
|
+
};
|
|
20
|
+
export type ParallelDataStatus =
|
|
21
|
+
(typeof ParallelDataStatus)[keyof typeof ParallelDataStatus];
|
|
22
|
+
export declare const JobStatus: {
|
|
23
|
+
readonly COMPLETED: "COMPLETED";
|
|
24
|
+
readonly COMPLETED_WITH_ERROR: "COMPLETED_WITH_ERROR";
|
|
25
|
+
readonly FAILED: "FAILED";
|
|
26
|
+
readonly IN_PROGRESS: "IN_PROGRESS";
|
|
27
|
+
readonly STOPPED: "STOPPED";
|
|
28
|
+
readonly STOP_REQUESTED: "STOP_REQUESTED";
|
|
29
|
+
readonly SUBMITTED: "SUBMITTED";
|
|
30
|
+
};
|
|
31
|
+
export type JobStatus = (typeof JobStatus)[keyof typeof JobStatus];
|
|
32
|
+
export declare const Brevity: {
|
|
33
|
+
readonly ON: "ON";
|
|
34
|
+
};
|
|
35
|
+
export type Brevity = (typeof Brevity)[keyof typeof Brevity];
|
|
36
|
+
export declare const Formality: {
|
|
37
|
+
readonly FORMAL: "FORMAL";
|
|
38
|
+
readonly INFORMAL: "INFORMAL";
|
|
39
|
+
};
|
|
40
|
+
export type Formality = (typeof Formality)[keyof typeof Formality];
|
|
41
|
+
export declare const Profanity: {
|
|
42
|
+
readonly MASK: "MASK";
|
|
43
|
+
};
|
|
44
|
+
export type Profanity = (typeof Profanity)[keyof typeof Profanity];
|
|
45
|
+
export declare const TerminologyDataFormat: {
|
|
46
|
+
readonly CSV: "CSV";
|
|
47
|
+
readonly TMX: "TMX";
|
|
48
|
+
readonly TSV: "TSV";
|
|
49
|
+
};
|
|
50
|
+
export type TerminologyDataFormat =
|
|
51
|
+
(typeof TerminologyDataFormat)[keyof typeof TerminologyDataFormat];
|
|
52
|
+
export declare const Directionality: {
|
|
53
|
+
readonly MULTI: "MULTI";
|
|
54
|
+
readonly UNI: "UNI";
|
|
55
|
+
};
|
|
56
|
+
export type Directionality =
|
|
57
|
+
(typeof Directionality)[keyof typeof Directionality];
|
|
58
|
+
export declare const MergeStrategy: {
|
|
59
|
+
readonly OVERWRITE: "OVERWRITE";
|
|
60
|
+
};
|
|
61
|
+
export type MergeStrategy = (typeof MergeStrategy)[keyof typeof MergeStrategy];
|
|
62
|
+
export declare const DisplayLanguageCode: {
|
|
63
|
+
readonly DE: "de";
|
|
64
|
+
readonly EN: "en";
|
|
65
|
+
readonly ES: "es";
|
|
66
|
+
readonly FR: "fr";
|
|
67
|
+
readonly IT: "it";
|
|
68
|
+
readonly JA: "ja";
|
|
69
|
+
readonly KO: "ko";
|
|
70
|
+
readonly PT: "pt";
|
|
71
|
+
readonly ZH: "zh";
|
|
72
|
+
readonly ZH_TW: "zh-TW";
|
|
73
|
+
};
|
|
74
|
+
export type DisplayLanguageCode =
|
|
75
|
+
(typeof DisplayLanguageCode)[keyof typeof DisplayLanguageCode];
|
|
@@ -0,0 +1,136 @@
|
|
|
1
|
+
import { ExceptionOptionType as __ExceptionOptionType } from "@smithy/smithy-client";
|
|
2
|
+
import { TranslateServiceException as __BaseException } from "./TranslateServiceException";
|
|
3
|
+
export declare class ConcurrentModificationException extends __BaseException {
|
|
4
|
+
readonly name: "ConcurrentModificationException";
|
|
5
|
+
readonly $fault: "client";
|
|
6
|
+
Message?: string | undefined;
|
|
7
|
+
constructor(
|
|
8
|
+
opts: __ExceptionOptionType<
|
|
9
|
+
ConcurrentModificationException,
|
|
10
|
+
__BaseException
|
|
11
|
+
>
|
|
12
|
+
);
|
|
13
|
+
}
|
|
14
|
+
export declare class ConflictException extends __BaseException {
|
|
15
|
+
readonly name: "ConflictException";
|
|
16
|
+
readonly $fault: "client";
|
|
17
|
+
Message?: string | undefined;
|
|
18
|
+
constructor(opts: __ExceptionOptionType<ConflictException, __BaseException>);
|
|
19
|
+
}
|
|
20
|
+
export declare class InternalServerException extends __BaseException {
|
|
21
|
+
readonly name: "InternalServerException";
|
|
22
|
+
readonly $fault: "server";
|
|
23
|
+
Message?: string | undefined;
|
|
24
|
+
constructor(
|
|
25
|
+
opts: __ExceptionOptionType<InternalServerException, __BaseException>
|
|
26
|
+
);
|
|
27
|
+
}
|
|
28
|
+
export declare class InvalidParameterValueException extends __BaseException {
|
|
29
|
+
readonly name: "InvalidParameterValueException";
|
|
30
|
+
readonly $fault: "client";
|
|
31
|
+
Message?: string | undefined;
|
|
32
|
+
constructor(
|
|
33
|
+
opts: __ExceptionOptionType<InvalidParameterValueException, __BaseException>
|
|
34
|
+
);
|
|
35
|
+
}
|
|
36
|
+
export declare class InvalidRequestException extends __BaseException {
|
|
37
|
+
readonly name: "InvalidRequestException";
|
|
38
|
+
readonly $fault: "client";
|
|
39
|
+
Message?: string | undefined;
|
|
40
|
+
constructor(
|
|
41
|
+
opts: __ExceptionOptionType<InvalidRequestException, __BaseException>
|
|
42
|
+
);
|
|
43
|
+
}
|
|
44
|
+
export declare class LimitExceededException extends __BaseException {
|
|
45
|
+
readonly name: "LimitExceededException";
|
|
46
|
+
readonly $fault: "client";
|
|
47
|
+
Message?: string | undefined;
|
|
48
|
+
constructor(
|
|
49
|
+
opts: __ExceptionOptionType<LimitExceededException, __BaseException>
|
|
50
|
+
);
|
|
51
|
+
}
|
|
52
|
+
export declare class TooManyRequestsException extends __BaseException {
|
|
53
|
+
readonly name: "TooManyRequestsException";
|
|
54
|
+
readonly $fault: "client";
|
|
55
|
+
Message?: string | undefined;
|
|
56
|
+
constructor(
|
|
57
|
+
opts: __ExceptionOptionType<TooManyRequestsException, __BaseException>
|
|
58
|
+
);
|
|
59
|
+
}
|
|
60
|
+
export declare class TooManyTagsException extends __BaseException {
|
|
61
|
+
readonly name: "TooManyTagsException";
|
|
62
|
+
readonly $fault: "client";
|
|
63
|
+
ResourceArn?: string | undefined;
|
|
64
|
+
constructor(
|
|
65
|
+
opts: __ExceptionOptionType<TooManyTagsException, __BaseException>
|
|
66
|
+
);
|
|
67
|
+
}
|
|
68
|
+
export declare class ResourceNotFoundException extends __BaseException {
|
|
69
|
+
readonly name: "ResourceNotFoundException";
|
|
70
|
+
readonly $fault: "client";
|
|
71
|
+
Message?: string | undefined;
|
|
72
|
+
constructor(
|
|
73
|
+
opts: __ExceptionOptionType<ResourceNotFoundException, __BaseException>
|
|
74
|
+
);
|
|
75
|
+
}
|
|
76
|
+
export declare class UnsupportedDisplayLanguageCodeException extends __BaseException {
|
|
77
|
+
readonly name: "UnsupportedDisplayLanguageCodeException";
|
|
78
|
+
readonly $fault: "client";
|
|
79
|
+
Message?: string | undefined;
|
|
80
|
+
DisplayLanguageCode?: string | undefined;
|
|
81
|
+
constructor(
|
|
82
|
+
opts: __ExceptionOptionType<
|
|
83
|
+
UnsupportedDisplayLanguageCodeException,
|
|
84
|
+
__BaseException
|
|
85
|
+
>
|
|
86
|
+
);
|
|
87
|
+
}
|
|
88
|
+
export declare class InvalidFilterException extends __BaseException {
|
|
89
|
+
readonly name: "InvalidFilterException";
|
|
90
|
+
readonly $fault: "client";
|
|
91
|
+
Message?: string | undefined;
|
|
92
|
+
constructor(
|
|
93
|
+
opts: __ExceptionOptionType<InvalidFilterException, __BaseException>
|
|
94
|
+
);
|
|
95
|
+
}
|
|
96
|
+
export declare class UnsupportedLanguagePairException extends __BaseException {
|
|
97
|
+
readonly name: "UnsupportedLanguagePairException";
|
|
98
|
+
readonly $fault: "client";
|
|
99
|
+
Message?: string | undefined;
|
|
100
|
+
SourceLanguageCode?: string | undefined;
|
|
101
|
+
TargetLanguageCode?: string | undefined;
|
|
102
|
+
constructor(
|
|
103
|
+
opts: __ExceptionOptionType<
|
|
104
|
+
UnsupportedLanguagePairException,
|
|
105
|
+
__BaseException
|
|
106
|
+
>
|
|
107
|
+
);
|
|
108
|
+
}
|
|
109
|
+
export declare class ServiceUnavailableException extends __BaseException {
|
|
110
|
+
readonly name: "ServiceUnavailableException";
|
|
111
|
+
readonly $fault: "server";
|
|
112
|
+
Message?: string | undefined;
|
|
113
|
+
constructor(
|
|
114
|
+
opts: __ExceptionOptionType<ServiceUnavailableException, __BaseException>
|
|
115
|
+
);
|
|
116
|
+
}
|
|
117
|
+
export declare class DetectedLanguageLowConfidenceException extends __BaseException {
|
|
118
|
+
readonly name: "DetectedLanguageLowConfidenceException";
|
|
119
|
+
readonly $fault: "client";
|
|
120
|
+
Message?: string | undefined;
|
|
121
|
+
DetectedLanguageCode?: string | undefined;
|
|
122
|
+
constructor(
|
|
123
|
+
opts: __ExceptionOptionType<
|
|
124
|
+
DetectedLanguageLowConfidenceException,
|
|
125
|
+
__BaseException
|
|
126
|
+
>
|
|
127
|
+
);
|
|
128
|
+
}
|
|
129
|
+
export declare class TextSizeLimitExceededException extends __BaseException {
|
|
130
|
+
readonly name: "TextSizeLimitExceededException";
|
|
131
|
+
readonly $fault: "client";
|
|
132
|
+
Message?: string | undefined;
|
|
133
|
+
constructor(
|
|
134
|
+
opts: __ExceptionOptionType<TextSizeLimitExceededException, __BaseException>
|
|
135
|
+
);
|
|
136
|
+
}
|