@aws-sdk/client-translate 3.36.0 → 3.39.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 (62) hide show
  1. package/CHANGELOG.md +42 -0
  2. package/dist-cjs/Translate.js +0 -4
  3. package/dist-cjs/TranslateClient.js +0 -9
  4. package/dist-cjs/commands/CreateParallelDataCommand.js +0 -27
  5. package/dist-cjs/commands/DeleteParallelDataCommand.js +0 -24
  6. package/dist-cjs/commands/DeleteTerminologyCommand.js +0 -24
  7. package/dist-cjs/commands/DescribeTextTranslationJobCommand.js +0 -25
  8. package/dist-cjs/commands/GetParallelDataCommand.js +0 -24
  9. package/dist-cjs/commands/GetTerminologyCommand.js +0 -24
  10. package/dist-cjs/commands/ImportTerminologyCommand.js +0 -31
  11. package/dist-cjs/commands/ListParallelDataCommand.js +0 -24
  12. package/dist-cjs/commands/ListTerminologiesCommand.js +0 -24
  13. package/dist-cjs/commands/ListTextTranslationJobsCommand.js +0 -24
  14. package/dist-cjs/commands/StartTextTranslationJobCommand.js +0 -31
  15. package/dist-cjs/commands/StopTextTranslationJobCommand.js +0 -30
  16. package/dist-cjs/commands/TranslateTextCommand.js +0 -25
  17. package/dist-cjs/commands/UpdateParallelDataCommand.js +0 -25
  18. package/dist-cjs/commands/index.js +17 -0
  19. package/dist-cjs/endpoints.js +6 -1
  20. package/dist-cjs/index.js +4 -20
  21. package/dist-cjs/models/models_0.js +0 -162
  22. package/dist-cjs/pagination/ListParallelDataPaginator.js +0 -10
  23. package/dist-cjs/pagination/ListTerminologiesPaginator.js +0 -10
  24. package/dist-cjs/pagination/ListTextTranslationJobsPaginator.js +0 -10
  25. package/dist-cjs/pagination/index.js +7 -0
  26. package/dist-cjs/protocols/Aws_json1_1.js +0 -5
  27. package/dist-cjs/runtimeConfig.browser.js +1 -5
  28. package/dist-cjs/runtimeConfig.js +1 -5
  29. package/dist-cjs/runtimeConfig.native.js +0 -3
  30. package/dist-cjs/runtimeConfig.shared.js +0 -3
  31. package/dist-es/commands/index.js +14 -0
  32. package/dist-es/endpoints.js +6 -1
  33. package/dist-es/index.js +4 -20
  34. package/dist-es/pagination/index.js +4 -0
  35. package/dist-types/commands/index.d.ts +14 -0
  36. package/dist-types/index.d.ts +4 -20
  37. package/dist-types/pagination/index.d.ts +4 -0
  38. package/dist-types/ts3.4/Translate.d.ts +15 -72
  39. package/dist-types/ts3.4/TranslateClient.d.ts +24 -90
  40. package/dist-types/ts3.4/commands/CreateParallelDataCommand.d.ts +2 -23
  41. package/dist-types/ts3.4/commands/DeleteParallelDataCommand.d.ts +2 -20
  42. package/dist-types/ts3.4/commands/DeleteTerminologyCommand.d.ts +2 -20
  43. package/dist-types/ts3.4/commands/DescribeTextTranslationJobCommand.d.ts +2 -21
  44. package/dist-types/ts3.4/commands/GetParallelDataCommand.d.ts +2 -20
  45. package/dist-types/ts3.4/commands/GetTerminologyCommand.d.ts +2 -20
  46. package/dist-types/ts3.4/commands/ImportTerminologyCommand.d.ts +2 -27
  47. package/dist-types/ts3.4/commands/ListParallelDataCommand.d.ts +2 -20
  48. package/dist-types/ts3.4/commands/ListTerminologiesCommand.d.ts +2 -20
  49. package/dist-types/ts3.4/commands/ListTextTranslationJobsCommand.d.ts +2 -20
  50. package/dist-types/ts3.4/commands/StartTextTranslationJobCommand.d.ts +2 -27
  51. package/dist-types/ts3.4/commands/StopTextTranslationJobCommand.d.ts +2 -26
  52. package/dist-types/ts3.4/commands/TranslateTextCommand.d.ts +2 -21
  53. package/dist-types/ts3.4/commands/UpdateParallelDataCommand.d.ts +2 -21
  54. package/dist-types/ts3.4/commands/index.d.ts +14 -0
  55. package/dist-types/ts3.4/index.d.ts +4 -20
  56. package/dist-types/ts3.4/models/models_0.d.ts +220 -824
  57. package/dist-types/ts3.4/pagination/index.d.ts +4 -0
  58. package/dist-types/ts3.4/runtimeConfig.browser.d.ts +1 -3
  59. package/dist-types/ts3.4/runtimeConfig.d.ts +1 -3
  60. package/dist-types/ts3.4/runtimeConfig.native.d.ts +1 -3
  61. package/dist-types/ts3.4/runtimeConfig.shared.d.ts +1 -3
  62. package/package.json +32 -32
@@ -1,83 +1,48 @@
1
1
  import { MetadataBearer as $MetadataBearer, SmithyException as __SmithyException } from "@aws-sdk/types";
2
- /**
3
- * <p>The term being translated by the custom terminology.</p>
4
- */
2
+
5
3
  export interface Term {
6
- /**
7
- * <p>The source text of the term being translated by the custom terminology.</p>
8
- */
4
+
9
5
  SourceText?: string;
10
- /**
11
- * <p>The target text of the term being translated by the custom terminology.</p>
12
- */
6
+
13
7
  TargetText?: string;
14
8
  }
15
9
  export declare namespace Term {
16
- /**
17
- * @internal
18
- */
10
+
19
11
  const filterSensitiveLog: (obj: Term) => any;
20
12
  }
21
- /**
22
- * <p>The custom terminology applied to the input text by Amazon Translate for the translated text
23
- * response. This is optional in the response and will only be present if you specified
24
- * terminology input in the request. Currently, only one terminology can be applied per
25
- * TranslateText request.</p>
26
- */
13
+
27
14
  export interface AppliedTerminology {
28
- /**
29
- * <p>The name of the custom terminology applied to the input text by Amazon Translate for the translated
30
- * text response.</p>
31
- */
15
+
32
16
  Name?: string;
33
- /**
34
- * <p>The specific terms of the custom terminology applied to the input text by Amazon Translate for the
35
- * translated text response. A maximum of 250 terms will be returned, and the specific terms
36
- * applied will be the first 250 terms in the source text. </p>
37
- */
17
+
38
18
  Terms?: Term[];
39
19
  }
40
20
  export declare namespace AppliedTerminology {
41
- /**
42
- * @internal
43
- */
21
+
44
22
  const filterSensitiveLog: (obj: AppliedTerminology) => any;
45
23
  }
46
- /**
47
- * <p>There was a conflict processing the request. Try your request again.</p>
48
- */
24
+
49
25
  export interface ConflictException extends __SmithyException, $MetadataBearer {
50
26
  name: "ConflictException";
51
27
  $fault: "client";
52
28
  Message?: string;
53
29
  }
54
30
  export declare namespace ConflictException {
55
- /**
56
- * @internal
57
- */
31
+
58
32
  const filterSensitiveLog: (obj: ConflictException) => any;
59
33
  }
60
34
  export declare enum EncryptionKeyType {
61
35
  KMS = "KMS"
62
36
  }
63
- /**
64
- * <p>The encryption key used to encrypt this object.</p>
65
- */
37
+
66
38
  export interface EncryptionKey {
67
- /**
68
- * <p>The type of encryption key used by Amazon Translate to encrypt custom terminologies.</p>
69
- */
39
+
70
40
  Type: EncryptionKeyType | string | undefined;
71
- /**
72
- * <p>The Amazon Resource Name (ARN) of the encryption key being used to encrypt the custom
73
- * terminology.</p>
74
- */
41
+
75
42
  Id: string | undefined;
76
43
  }
77
44
  export declare namespace EncryptionKey {
78
- /**
79
- * @internal
80
- */
45
+
81
46
  const filterSensitiveLog: (obj: EncryptionKey) => any;
82
47
  }
83
48
  export declare enum ParallelDataFormat {
@@ -85,54 +50,31 @@ export declare enum ParallelDataFormat {
85
50
  TMX = "TMX",
86
51
  TSV = "TSV"
87
52
  }
88
- /**
89
- * <p>Specifies the format and S3 location of the parallel data input file.</p>
90
- */
53
+
91
54
  export interface ParallelDataConfig {
92
- /**
93
- * <p>The URI of the Amazon S3 folder that contains the parallel data input file. The folder
94
- * must be in the same Region as the API endpoint you are calling.</p>
95
- */
55
+
96
56
  S3Uri: string | undefined;
97
- /**
98
- * <p>The format of the parallel data input file.</p>
99
- */
57
+
100
58
  Format: ParallelDataFormat | string | undefined;
101
59
  }
102
60
  export declare namespace ParallelDataConfig {
103
- /**
104
- * @internal
105
- */
61
+
106
62
  const filterSensitiveLog: (obj: ParallelDataConfig) => any;
107
63
  }
108
64
  export interface CreateParallelDataRequest {
109
- /**
110
- * <p>A custom name for the parallel data resource in Amazon Translate. You must assign a name
111
- * that is unique in the account and region.</p>
112
- */
65
+
113
66
  Name: string | undefined;
114
- /**
115
- * <p>A custom description for the parallel data resource in Amazon Translate.</p>
116
- */
67
+
117
68
  Description?: string;
118
- /**
119
- * <p>Specifies the format and S3 location of the parallel data input file.</p>
120
- */
69
+
121
70
  ParallelDataConfig: ParallelDataConfig | undefined;
122
- /**
123
- * <p>The encryption key used to encrypt this object.</p>
124
- */
71
+
125
72
  EncryptionKey?: EncryptionKey;
126
- /**
127
- * <p>A unique identifier for the request. This token is automatically generated when you use
128
- * Amazon Translate through an AWS SDK.</p>
129
- */
73
+
130
74
  ClientToken?: string;
131
75
  }
132
76
  export declare namespace CreateParallelDataRequest {
133
- /**
134
- * @internal
135
- */
77
+
136
78
  const filterSensitiveLog: (obj: CreateParallelDataRequest) => any;
137
79
  }
138
80
  export declare enum ParallelDataStatus {
@@ -143,257 +85,141 @@ export declare enum ParallelDataStatus {
143
85
  UPDATING = "UPDATING"
144
86
  }
145
87
  export interface CreateParallelDataResponse {
146
- /**
147
- * <p>The custom name that you assigned to the parallel data resource.</p>
148
- */
88
+
149
89
  Name?: string;
150
- /**
151
- * <p>The status of the parallel data resource. When the resource is ready for you to use, the
152
- * status is <code>ACTIVE</code>.</p>
153
- */
90
+
154
91
  Status?: ParallelDataStatus | string;
155
92
  }
156
93
  export declare namespace CreateParallelDataResponse {
157
- /**
158
- * @internal
159
- */
94
+
160
95
  const filterSensitiveLog: (obj: CreateParallelDataResponse) => any;
161
96
  }
162
- /**
163
- * <p>An internal server error occurred. Retry your request.</p>
164
- */
97
+
165
98
  export interface InternalServerException extends __SmithyException, $MetadataBearer {
166
99
  name: "InternalServerException";
167
100
  $fault: "server";
168
101
  Message?: string;
169
102
  }
170
103
  export declare namespace InternalServerException {
171
- /**
172
- * @internal
173
- */
104
+
174
105
  const filterSensitiveLog: (obj: InternalServerException) => any;
175
106
  }
176
- /**
177
- * <p>The value of the parameter is invalid. Review the value of the parameter you are using to
178
- * correct it, and then retry your operation.</p>
179
- */
107
+
180
108
  export interface InvalidParameterValueException extends __SmithyException, $MetadataBearer {
181
109
  name: "InvalidParameterValueException";
182
110
  $fault: "client";
183
111
  Message?: string;
184
112
  }
185
113
  export declare namespace InvalidParameterValueException {
186
- /**
187
- * @internal
188
- */
114
+
189
115
  const filterSensitiveLog: (obj: InvalidParameterValueException) => any;
190
116
  }
191
- /**
192
- * <p> The request that you made is invalid. Check your request to determine why it's invalid
193
- * and then retry the request. </p>
194
- */
117
+
195
118
  export interface InvalidRequestException extends __SmithyException, $MetadataBearer {
196
119
  name: "InvalidRequestException";
197
120
  $fault: "client";
198
121
  Message?: string;
199
122
  }
200
123
  export declare namespace InvalidRequestException {
201
- /**
202
- * @internal
203
- */
124
+
204
125
  const filterSensitiveLog: (obj: InvalidRequestException) => any;
205
126
  }
206
- /**
207
- * <p>The specified limit has been exceeded. Review your request and retry it with a quantity
208
- * below the stated limit.</p>
209
- */
127
+
210
128
  export interface LimitExceededException extends __SmithyException, $MetadataBearer {
211
129
  name: "LimitExceededException";
212
130
  $fault: "client";
213
131
  Message?: string;
214
132
  }
215
133
  export declare namespace LimitExceededException {
216
- /**
217
- * @internal
218
- */
134
+
219
135
  const filterSensitiveLog: (obj: LimitExceededException) => any;
220
136
  }
221
- /**
222
- * <p> You have made too many requests within a short period of time. Wait for a short time and
223
- * then try your request again.</p>
224
- */
137
+
225
138
  export interface TooManyRequestsException extends __SmithyException, $MetadataBearer {
226
139
  name: "TooManyRequestsException";
227
140
  $fault: "client";
228
141
  Message?: string;
229
142
  }
230
143
  export declare namespace TooManyRequestsException {
231
- /**
232
- * @internal
233
- */
144
+
234
145
  const filterSensitiveLog: (obj: TooManyRequestsException) => any;
235
146
  }
236
- /**
237
- * <p>Another modification is being made. That modification must complete before you can make
238
- * your change.</p>
239
- */
147
+
240
148
  export interface ConcurrentModificationException extends __SmithyException, $MetadataBearer {
241
149
  name: "ConcurrentModificationException";
242
150
  $fault: "client";
243
151
  Message?: string;
244
152
  }
245
153
  export declare namespace ConcurrentModificationException {
246
- /**
247
- * @internal
248
- */
154
+
249
155
  const filterSensitiveLog: (obj: ConcurrentModificationException) => any;
250
156
  }
251
157
  export interface DeleteParallelDataRequest {
252
- /**
253
- * <p>The name of the parallel data resource that is being deleted.</p>
254
- */
158
+
255
159
  Name: string | undefined;
256
160
  }
257
161
  export declare namespace DeleteParallelDataRequest {
258
- /**
259
- * @internal
260
- */
162
+
261
163
  const filterSensitiveLog: (obj: DeleteParallelDataRequest) => any;
262
164
  }
263
165
  export interface DeleteParallelDataResponse {
264
- /**
265
- * <p>The name of the parallel data resource that is being deleted.</p>
266
- */
166
+
267
167
  Name?: string;
268
- /**
269
- * <p>The status of the parallel data deletion.</p>
270
- */
168
+
271
169
  Status?: ParallelDataStatus | string;
272
170
  }
273
171
  export declare namespace DeleteParallelDataResponse {
274
- /**
275
- * @internal
276
- */
172
+
277
173
  const filterSensitiveLog: (obj: DeleteParallelDataResponse) => any;
278
174
  }
279
- /**
280
- * <p>The resource you are looking for has not been found. Review the resource you're looking
281
- * for and see if a different resource will accomplish your needs before retrying the revised
282
- * request.</p>
283
- */
175
+
284
176
  export interface ResourceNotFoundException extends __SmithyException, $MetadataBearer {
285
177
  name: "ResourceNotFoundException";
286
178
  $fault: "client";
287
179
  Message?: string;
288
180
  }
289
181
  export declare namespace ResourceNotFoundException {
290
- /**
291
- * @internal
292
- */
182
+
293
183
  const filterSensitiveLog: (obj: ResourceNotFoundException) => any;
294
184
  }
295
185
  export interface DeleteTerminologyRequest {
296
- /**
297
- * <p>The name of the custom terminology being deleted. </p>
298
- */
186
+
299
187
  Name: string | undefined;
300
188
  }
301
189
  export declare namespace DeleteTerminologyRequest {
302
- /**
303
- * @internal
304
- */
190
+
305
191
  const filterSensitiveLog: (obj: DeleteTerminologyRequest) => any;
306
192
  }
307
193
  export interface DescribeTextTranslationJobRequest {
308
- /**
309
- * <p>The identifier that Amazon Translate generated for the job. The <a>StartTextTranslationJob</a> operation returns this identifier in its
310
- * response.</p>
311
- */
194
+
312
195
  JobId: string | undefined;
313
196
  }
314
197
  export declare namespace DescribeTextTranslationJobRequest {
315
- /**
316
- * @internal
317
- */
198
+
318
199
  const filterSensitiveLog: (obj: DescribeTextTranslationJobRequest) => any;
319
200
  }
320
- /**
321
- * <p>The input configuration properties for requesting a batch translation job.</p>
322
- */
201
+
323
202
  export interface InputDataConfig {
324
- /**
325
- * <p>The URI of the AWS S3 folder that contains the input file. The folder must be in the
326
- * same Region as the API endpoint you are calling.</p>
327
- */
203
+
328
204
  S3Uri: string | undefined;
329
- /**
330
- * <p>Describes the format of the data that you submit to Amazon Translate as input. You can
331
- * specify one of the following multipurpose internet mail extension (MIME) types:</p>
332
- * <ul>
333
- * <li>
334
- * <p>
335
- * <code>text/html</code>: The input data consists of one or more HTML files. Amazon
336
- * Translate translates only the text that resides in the <code>html</code> element in each
337
- * file.</p>
338
- * </li>
339
- * <li>
340
- * <p>
341
- * <code>text/plain</code>: The input data consists of one or more unformatted text
342
- * files. Amazon Translate translates every character in this type of input.</p>
343
- * </li>
344
- * <li>
345
- * <p>
346
- * <code>application/vnd.openxmlformats-officedocument.wordprocessingml.document</code>:
347
- * The input data consists of one or more Word documents (.docx).</p>
348
- * </li>
349
- * <li>
350
- * <p>
351
- * <code>application/vnd.openxmlformats-officedocument.presentationml.presentation</code>:
352
- * The input data consists of one or more PowerPoint Presentation files (.pptx).</p>
353
- * </li>
354
- * <li>
355
- * <p>
356
- * <code>application/vnd.openxmlformats-officedocument.spreadsheetml.sheet</code>: The
357
- * input data consists of one or more Excel Workbook files (.xlsx).</p>
358
- * </li>
359
- * </ul>
360
- * <important>
361
- * <p>If you structure your input data as HTML, ensure that you set this parameter to
362
- * <code>text/html</code>. By doing so, you cut costs by limiting the translation to the
363
- * contents of the <code>html</code> element in each file. Otherwise, if you set this parameter
364
- * to <code>text/plain</code>, your costs will cover the translation of every character.</p>
365
- * </important>
366
- */
205
+
367
206
  ContentType: string | undefined;
368
207
  }
369
208
  export declare namespace InputDataConfig {
370
- /**
371
- * @internal
372
- */
209
+
373
210
  const filterSensitiveLog: (obj: InputDataConfig) => any;
374
211
  }
375
- /**
376
- * <p>The number of documents successfully and unsuccessfully processed during a translation
377
- * job.</p>
378
- */
212
+
379
213
  export interface JobDetails {
380
- /**
381
- * <p>The number of documents successfully processed during a translation job.</p>
382
- */
214
+
383
215
  TranslatedDocumentsCount?: number;
384
- /**
385
- * <p>The number of documents that could not be processed during a translation job.</p>
386
- */
216
+
387
217
  DocumentsWithErrorsCount?: number;
388
- /**
389
- * <p>The number of documents used as input in a translation job.</p>
390
- */
218
+
391
219
  InputDocumentsCount?: number;
392
220
  }
393
221
  export declare namespace JobDetails {
394
- /**
395
- * @internal
396
- */
222
+
397
223
  const filterSensitiveLog: (obj: JobDetails) => any;
398
224
  }
399
225
  export declare enum JobStatus {
@@ -405,258 +231,130 @@ export declare enum JobStatus {
405
231
  STOP_REQUESTED = "STOP_REQUESTED",
406
232
  SUBMITTED = "SUBMITTED"
407
233
  }
408
- /**
409
- * <p>The output configuration properties for a batch translation job.</p>
410
- */
234
+
411
235
  export interface OutputDataConfig {
412
- /**
413
- * <p>The URI of the S3 folder that contains a translation job's output file. The folder must
414
- * be in the same Region as the API endpoint that you are calling.</p>
415
- */
236
+
416
237
  S3Uri: string | undefined;
417
238
  }
418
239
  export declare namespace OutputDataConfig {
419
- /**
420
- * @internal
421
- */
240
+
422
241
  const filterSensitiveLog: (obj: OutputDataConfig) => any;
423
242
  }
424
- /**
425
- * <p>Provides information about a translation job.</p>
426
- */
243
+
427
244
  export interface TextTranslationJobProperties {
428
- /**
429
- * <p>The ID of the translation job.</p>
430
- */
245
+
431
246
  JobId?: string;
432
- /**
433
- * <p>The user-defined name of the translation job.</p>
434
- */
247
+
435
248
  JobName?: string;
436
- /**
437
- * <p>The status of the translation job.</p>
438
- */
249
+
439
250
  JobStatus?: JobStatus | string;
440
- /**
441
- * <p>The number of documents successfully and unsuccessfully processed during the translation
442
- * job.</p>
443
- */
251
+
444
252
  JobDetails?: JobDetails;
445
- /**
446
- * <p>The language code of the language of the source text. The language must be a language
447
- * supported by Amazon Translate.</p>
448
- */
253
+
449
254
  SourceLanguageCode?: string;
450
- /**
451
- * <p>The language code of the language of the target text. The language must be a language
452
- * supported by Amazon Translate.</p>
453
- */
255
+
454
256
  TargetLanguageCodes?: string[];
455
- /**
456
- * <p>A list containing the names of the terminologies applied to a translation job. Only one
457
- * terminology can be applied per <a>StartTextTranslationJob</a> request at this
458
- * time.</p>
459
- */
257
+
460
258
  TerminologyNames?: string[];
461
- /**
462
- * <p>A list containing the names of the parallel data resources applied to the translation
463
- * job.</p>
464
- */
259
+
465
260
  ParallelDataNames?: string[];
466
- /**
467
- * <p>An explanation of any errors that may have occured during the translation job.</p>
468
- */
261
+
469
262
  Message?: string;
470
- /**
471
- * <p>The time at which the translation job was submitted.</p>
472
- */
263
+
473
264
  SubmittedTime?: Date;
474
- /**
475
- * <p>The time at which the translation job ended.</p>
476
- */
265
+
477
266
  EndTime?: Date;
478
- /**
479
- * <p>The input configuration properties that were specified when the job was requested.</p>
480
- */
267
+
481
268
  InputDataConfig?: InputDataConfig;
482
- /**
483
- * <p>The output configuration properties that were specified when the job was requested.</p>
484
- */
269
+
485
270
  OutputDataConfig?: OutputDataConfig;
486
- /**
487
- * <p>The Amazon Resource Name (ARN) of an AWS Identity Access and Management (IAM) role
488
- * that granted Amazon Translate read access to the job's input data.</p>
489
- */
271
+
490
272
  DataAccessRoleArn?: string;
491
273
  }
492
274
  export declare namespace TextTranslationJobProperties {
493
- /**
494
- * @internal
495
- */
275
+
496
276
  const filterSensitiveLog: (obj: TextTranslationJobProperties) => any;
497
277
  }
498
278
  export interface DescribeTextTranslationJobResponse {
499
- /**
500
- * <p>An object that contains the properties associated with an asynchronous batch translation
501
- * job.</p>
502
- */
279
+
503
280
  TextTranslationJobProperties?: TextTranslationJobProperties;
504
281
  }
505
282
  export declare namespace DescribeTextTranslationJobResponse {
506
- /**
507
- * @internal
508
- */
283
+
509
284
  const filterSensitiveLog: (obj: DescribeTextTranslationJobResponse) => any;
510
285
  }
511
286
  export interface GetParallelDataRequest {
512
- /**
513
- * <p>The name of the parallel data resource that is being retrieved.</p>
514
- */
287
+
515
288
  Name: string | undefined;
516
289
  }
517
290
  export declare namespace GetParallelDataRequest {
518
- /**
519
- * @internal
520
- */
291
+
521
292
  const filterSensitiveLog: (obj: GetParallelDataRequest) => any;
522
293
  }
523
- /**
524
- * <p>The location of the most recent parallel data input file that was successfully imported
525
- * into Amazon Translate.</p>
526
- */
294
+
527
295
  export interface ParallelDataDataLocation {
528
- /**
529
- * <p>Describes the repository that contains the parallel data input file.</p>
530
- */
296
+
531
297
  RepositoryType: string | undefined;
532
- /**
533
- * <p>The Amazon S3 location of the parallel data input file. The location is returned as a
534
- * presigned URL to that has a 30 minute expiration.</p>
535
- */
298
+
536
299
  Location: string | undefined;
537
300
  }
538
301
  export declare namespace ParallelDataDataLocation {
539
- /**
540
- * @internal
541
- */
302
+
542
303
  const filterSensitiveLog: (obj: ParallelDataDataLocation) => any;
543
304
  }
544
- /**
545
- * <p>The properties of a parallel data resource.</p>
546
- */
305
+
547
306
  export interface ParallelDataProperties {
548
- /**
549
- * <p>The custom name assigned to the parallel data resource.</p>
550
- */
307
+
551
308
  Name?: string;
552
- /**
553
- * <p>The Amazon Resource Name (ARN) of the parallel data resource.</p>
554
- */
309
+
555
310
  Arn?: string;
556
- /**
557
- * <p>The description assigned to the parallel data resource.</p>
558
- */
311
+
559
312
  Description?: string;
560
- /**
561
- * <p>The status of the parallel data resource. When the parallel data is ready for you to use,
562
- * the status is <code>ACTIVE</code>.</p>
563
- */
313
+
564
314
  Status?: ParallelDataStatus | string;
565
- /**
566
- * <p>The source language of the translations in the parallel data file.</p>
567
- */
315
+
568
316
  SourceLanguageCode?: string;
569
- /**
570
- * <p>The language codes for the target languages available in the parallel data file. All
571
- * possible target languages are returned as an array.</p>
572
- */
317
+
573
318
  TargetLanguageCodes?: string[];
574
- /**
575
- * <p>Specifies the format and S3 location of the parallel data input file.</p>
576
- */
319
+
577
320
  ParallelDataConfig?: ParallelDataConfig;
578
- /**
579
- * <p>Additional information from Amazon Translate about the parallel data resource. </p>
580
- */
321
+
581
322
  Message?: string;
582
- /**
583
- * <p>The number of UTF-8 characters that Amazon Translate imported from the parallel data input
584
- * file. This number includes only the characters in your translation examples. It does not
585
- * include characters that are used to format your file. For example, if you provided a
586
- * Translation Memory Exchange (.tmx) file, this number does not include the tags.</p>
587
- */
323
+
588
324
  ImportedDataSize?: number;
589
- /**
590
- * <p>The number of records successfully imported from the parallel data input file.</p>
591
- */
325
+
592
326
  ImportedRecordCount?: number;
593
- /**
594
- * <p>The number of records unsuccessfully imported from the parallel data input file.</p>
595
- */
327
+
596
328
  FailedRecordCount?: number;
597
- /**
598
- * <p>The number of items in the input file that Amazon Translate skipped when you created or
599
- * updated the parallel data resource. For example, Amazon Translate skips empty records, empty
600
- * target texts, and empty lines.</p>
601
- */
329
+
602
330
  SkippedRecordCount?: number;
603
- /**
604
- * <p>The encryption key used to encrypt this object.</p>
605
- */
331
+
606
332
  EncryptionKey?: EncryptionKey;
607
- /**
608
- * <p>The time at which the parallel data resource was created.</p>
609
- */
333
+
610
334
  CreatedAt?: Date;
611
- /**
612
- * <p>The time at which the parallel data resource was last updated.</p>
613
- */
335
+
614
336
  LastUpdatedAt?: Date;
615
- /**
616
- * <p>The status of the most recent update attempt for the parallel data resource.</p>
617
- */
337
+
618
338
  LatestUpdateAttemptStatus?: ParallelDataStatus | string;
619
- /**
620
- * <p>The time that the most recent update was attempted.</p>
621
- */
339
+
622
340
  LatestUpdateAttemptAt?: Date;
623
341
  }
624
342
  export declare namespace ParallelDataProperties {
625
- /**
626
- * @internal
627
- */
343
+
628
344
  const filterSensitiveLog: (obj: ParallelDataProperties) => any;
629
345
  }
630
346
  export interface GetParallelDataResponse {
631
- /**
632
- * <p>The properties of the parallel data resource that is being retrieved.</p>
633
- */
347
+
634
348
  ParallelDataProperties?: ParallelDataProperties;
635
- /**
636
- * <p>The location of the most recent parallel data input file that was successfully imported
637
- * into Amazon Translate. The location is returned as a presigned URL that has a 30 minute
638
- * expiration.</p>
639
- */
349
+
640
350
  DataLocation?: ParallelDataDataLocation;
641
- /**
642
- * <p>The Amazon S3 location of a file that provides any errors or warnings that were produced
643
- * by your input file. This file was created when Amazon Translate attempted to create a parallel
644
- * data resource. The location is returned as a presigned URL to that has a 30 minute
645
- * expiration.</p>
646
- */
351
+
647
352
  AuxiliaryDataLocation?: ParallelDataDataLocation;
648
- /**
649
- * <p>The Amazon S3 location of a file that provides any errors or warnings that were produced
650
- * by your input file. This file was created when Amazon Translate attempted to update a parallel
651
- * data resource. The location is returned as a presigned URL to that has a 30 minute
652
- * expiration.</p>
653
- */
353
+
654
354
  LatestUpdateAttemptAuxiliaryDataLocation?: ParallelDataDataLocation;
655
355
  }
656
356
  export declare namespace GetParallelDataResponse {
657
- /**
658
- * @internal
659
- */
357
+
660
358
  const filterSensitiveLog: (obj: GetParallelDataResponse) => any;
661
359
  }
662
360
  export declare enum TerminologyDataFormat {
@@ -664,641 +362,339 @@ export declare enum TerminologyDataFormat {
664
362
  TMX = "TMX"
665
363
  }
666
364
  export interface GetTerminologyRequest {
667
- /**
668
- * <p>The name of the custom terminology being retrieved.</p>
669
- */
365
+
670
366
  Name: string | undefined;
671
- /**
672
- * <p>The data format of the custom terminology being retrieved, either CSV or TMX.</p>
673
- */
367
+
674
368
  TerminologyDataFormat: TerminologyDataFormat | string | undefined;
675
369
  }
676
370
  export declare namespace GetTerminologyRequest {
677
- /**
678
- * @internal
679
- */
371
+
680
372
  const filterSensitiveLog: (obj: GetTerminologyRequest) => any;
681
373
  }
682
- /**
683
- * <p>The location of the custom terminology data.</p>
684
- */
374
+
685
375
  export interface TerminologyDataLocation {
686
- /**
687
- * <p>The repository type for the custom terminology data.</p>
688
- */
376
+
689
377
  RepositoryType: string | undefined;
690
- /**
691
- * <p>The location of the custom terminology data.</p>
692
- */
378
+
693
379
  Location: string | undefined;
694
380
  }
695
381
  export declare namespace TerminologyDataLocation {
696
- /**
697
- * @internal
698
- */
382
+
699
383
  const filterSensitiveLog: (obj: TerminologyDataLocation) => any;
700
384
  }
701
- /**
702
- * <p>The properties of the custom terminology.</p>
703
- */
385
+
704
386
  export interface TerminologyProperties {
705
- /**
706
- * <p>The name of the custom terminology.</p>
707
- */
387
+
708
388
  Name?: string;
709
- /**
710
- * <p>The description of the custom terminology properties.</p>
711
- */
389
+
712
390
  Description?: string;
713
- /**
714
- * <p> The Amazon Resource Name (ARN) of the custom terminology. </p>
715
- */
391
+
716
392
  Arn?: string;
717
- /**
718
- * <p>The language code for the source text of the translation request for which the custom
719
- * terminology is being used.</p>
720
- */
393
+
721
394
  SourceLanguageCode?: string;
722
- /**
723
- * <p>The language codes for the target languages available with the custom terminology file.
724
- * All possible target languages are returned in array.</p>
725
- */
395
+
726
396
  TargetLanguageCodes?: string[];
727
- /**
728
- * <p>The encryption key for the custom terminology.</p>
729
- */
397
+
730
398
  EncryptionKey?: EncryptionKey;
731
- /**
732
- * <p>The size of the file used when importing a custom terminology.</p>
733
- */
399
+
734
400
  SizeBytes?: number;
735
- /**
736
- * <p>The number of terms included in the custom terminology.</p>
737
- */
401
+
738
402
  TermCount?: number;
739
- /**
740
- * <p>The time at which the custom terminology was created, based on the timestamp.</p>
741
- */
403
+
742
404
  CreatedAt?: Date;
743
- /**
744
- * <p>The time at which the custom terminology was last update, based on the timestamp.</p>
745
- */
405
+
746
406
  LastUpdatedAt?: Date;
747
407
  }
748
408
  export declare namespace TerminologyProperties {
749
- /**
750
- * @internal
751
- */
409
+
752
410
  const filterSensitiveLog: (obj: TerminologyProperties) => any;
753
411
  }
754
412
  export interface GetTerminologyResponse {
755
- /**
756
- * <p>The properties of the custom terminology being retrieved.</p>
757
- */
413
+
758
414
  TerminologyProperties?: TerminologyProperties;
759
- /**
760
- * <p>The data location of the custom terminology being retrieved. The custom terminology file
761
- * is returned in a presigned url that has a 30 minute expiration.</p>
762
- */
415
+
763
416
  TerminologyDataLocation?: TerminologyDataLocation;
764
417
  }
765
418
  export declare namespace GetTerminologyResponse {
766
- /**
767
- * @internal
768
- */
419
+
769
420
  const filterSensitiveLog: (obj: GetTerminologyResponse) => any;
770
421
  }
771
422
  export declare enum MergeStrategy {
772
423
  OVERWRITE = "OVERWRITE"
773
424
  }
774
- /**
775
- * <p>The data associated with the custom terminology.</p>
776
- */
425
+
777
426
  export interface TerminologyData {
778
- /**
779
- * <p>The file containing the custom terminology data. Your version of the AWS SDK performs a
780
- * Base64-encoding on this field before sending a request to the AWS service. Users of the SDK
781
- * should not perform Base64-encoding themselves.</p>
782
- */
427
+
783
428
  File: Uint8Array | undefined;
784
- /**
785
- * <p>The data format of the custom terminology. Either CSV or TMX.</p>
786
- */
429
+
787
430
  Format: TerminologyDataFormat | string | undefined;
788
431
  }
789
432
  export declare namespace TerminologyData {
790
- /**
791
- * @internal
792
- */
433
+
793
434
  const filterSensitiveLog: (obj: TerminologyData) => any;
794
435
  }
795
436
  export interface ImportTerminologyRequest {
796
- /**
797
- * <p>The name of the custom terminology being imported.</p>
798
- */
437
+
799
438
  Name: string | undefined;
800
- /**
801
- * <p>The merge strategy of the custom terminology being imported. Currently, only the OVERWRITE
802
- * merge strategy is supported. In this case, the imported terminology will overwrite an existing
803
- * terminology of the same name.</p>
804
- */
439
+
805
440
  MergeStrategy: MergeStrategy | string | undefined;
806
- /**
807
- * <p>The description of the custom terminology being imported.</p>
808
- */
441
+
809
442
  Description?: string;
810
- /**
811
- * <p>The terminology data for the custom terminology being imported.</p>
812
- */
443
+
813
444
  TerminologyData: TerminologyData | undefined;
814
- /**
815
- * <p>The encryption key for the custom terminology being imported.</p>
816
- */
445
+
817
446
  EncryptionKey?: EncryptionKey;
818
447
  }
819
448
  export declare namespace ImportTerminologyRequest {
820
- /**
821
- * @internal
822
- */
449
+
823
450
  const filterSensitiveLog: (obj: ImportTerminologyRequest) => any;
824
451
  }
825
452
  export interface ImportTerminologyResponse {
826
- /**
827
- * <p>The properties of the custom terminology being imported.</p>
828
- */
453
+
829
454
  TerminologyProperties?: TerminologyProperties;
830
455
  }
831
456
  export declare namespace ImportTerminologyResponse {
832
- /**
833
- * @internal
834
- */
457
+
835
458
  const filterSensitiveLog: (obj: ImportTerminologyResponse) => any;
836
459
  }
837
460
  export interface ListParallelDataRequest {
838
- /**
839
- * <p>A string that specifies the next page of results to return in a paginated response.</p>
840
- */
461
+
841
462
  NextToken?: string;
842
- /**
843
- * <p>The maximum number of parallel data resources returned for each request.</p>
844
- */
463
+
845
464
  MaxResults?: number;
846
465
  }
847
466
  export declare namespace ListParallelDataRequest {
848
- /**
849
- * @internal
850
- */
467
+
851
468
  const filterSensitiveLog: (obj: ListParallelDataRequest) => any;
852
469
  }
853
470
  export interface ListParallelDataResponse {
854
- /**
855
- * <p>The properties of the parallel data resources returned by this request.</p>
856
- */
471
+
857
472
  ParallelDataPropertiesList?: ParallelDataProperties[];
858
- /**
859
- * <p>The string to use in a subsequent request to get the next page of results in a paginated
860
- * response. This value is null if there are no additional pages.</p>
861
- */
473
+
862
474
  NextToken?: string;
863
475
  }
864
476
  export declare namespace ListParallelDataResponse {
865
- /**
866
- * @internal
867
- */
477
+
868
478
  const filterSensitiveLog: (obj: ListParallelDataResponse) => any;
869
479
  }
870
480
  export interface ListTerminologiesRequest {
871
- /**
872
- * <p>If the result of the request to ListTerminologies was truncated, include the NextToken to
873
- * fetch the next group of custom terminologies. </p>
874
- */
481
+
875
482
  NextToken?: string;
876
- /**
877
- * <p>The maximum number of custom terminologies returned per list request.</p>
878
- */
483
+
879
484
  MaxResults?: number;
880
485
  }
881
486
  export declare namespace ListTerminologiesRequest {
882
- /**
883
- * @internal
884
- */
487
+
885
488
  const filterSensitiveLog: (obj: ListTerminologiesRequest) => any;
886
489
  }
887
490
  export interface ListTerminologiesResponse {
888
- /**
889
- * <p>The properties list of the custom terminologies returned on the list request.</p>
890
- */
491
+
891
492
  TerminologyPropertiesList?: TerminologyProperties[];
892
- /**
893
- * <p> If the response to the ListTerminologies was truncated, the NextToken fetches the next
894
- * group of custom terminologies.</p>
895
- */
493
+
896
494
  NextToken?: string;
897
495
  }
898
496
  export declare namespace ListTerminologiesResponse {
899
- /**
900
- * @internal
901
- */
497
+
902
498
  const filterSensitiveLog: (obj: ListTerminologiesResponse) => any;
903
499
  }
904
- /**
905
- * <p>The filter specified for the operation is invalid. Specify a different filter.</p>
906
- */
500
+
907
501
  export interface InvalidFilterException extends __SmithyException, $MetadataBearer {
908
502
  name: "InvalidFilterException";
909
503
  $fault: "client";
910
504
  Message?: string;
911
505
  }
912
506
  export declare namespace InvalidFilterException {
913
- /**
914
- * @internal
915
- */
507
+
916
508
  const filterSensitiveLog: (obj: InvalidFilterException) => any;
917
509
  }
918
- /**
919
- * <p>Provides information for filtering a list of translation jobs. For more information, see
920
- * <a>ListTextTranslationJobs</a>.</p>
921
- */
510
+
922
511
  export interface TextTranslationJobFilter {
923
- /**
924
- * <p>Filters the list of jobs by name.</p>
925
- */
512
+
926
513
  JobName?: string;
927
- /**
928
- * <p>Filters the list of jobs based by job status.</p>
929
- */
514
+
930
515
  JobStatus?: JobStatus | string;
931
- /**
932
- * <p>Filters the list of jobs based on the time that the job was submitted for processing and
933
- * returns only the jobs submitted before the specified time. Jobs are returned in ascending
934
- * order, oldest to newest.</p>
935
- */
516
+
936
517
  SubmittedBeforeTime?: Date;
937
- /**
938
- * <p>Filters the list of jobs based on the time that the job was submitted for processing and
939
- * returns only the jobs submitted after the specified time. Jobs are returned in descending
940
- * order, newest to oldest.</p>
941
- */
518
+
942
519
  SubmittedAfterTime?: Date;
943
520
  }
944
521
  export declare namespace TextTranslationJobFilter {
945
- /**
946
- * @internal
947
- */
522
+
948
523
  const filterSensitiveLog: (obj: TextTranslationJobFilter) => any;
949
524
  }
950
525
  export interface ListTextTranslationJobsRequest {
951
- /**
952
- * <p>The parameters that specify which batch translation jobs to retrieve. Filters include job
953
- * name, job status, and submission time. You can only set one filter at a time.</p>
954
- */
526
+
955
527
  Filter?: TextTranslationJobFilter;
956
- /**
957
- * <p>The token to request the next page of results.</p>
958
- */
528
+
959
529
  NextToken?: string;
960
- /**
961
- * <p>The maximum number of results to return in each page. The default value is 100.</p>
962
- */
530
+
963
531
  MaxResults?: number;
964
532
  }
965
533
  export declare namespace ListTextTranslationJobsRequest {
966
- /**
967
- * @internal
968
- */
534
+
969
535
  const filterSensitiveLog: (obj: ListTextTranslationJobsRequest) => any;
970
536
  }
971
537
  export interface ListTextTranslationJobsResponse {
972
- /**
973
- * <p>A list containing the properties of each job that is returned.</p>
974
- */
538
+
975
539
  TextTranslationJobPropertiesList?: TextTranslationJobProperties[];
976
- /**
977
- * <p>The token to use to retreive the next page of results. This value is <code>null</code>
978
- * when there are no more results to return.</p>
979
- */
540
+
980
541
  NextToken?: string;
981
542
  }
982
543
  export declare namespace ListTextTranslationJobsResponse {
983
- /**
984
- * @internal
985
- */
544
+
986
545
  const filterSensitiveLog: (obj: ListTextTranslationJobsResponse) => any;
987
546
  }
988
547
  export interface StartTextTranslationJobRequest {
989
- /**
990
- * <p>The name of the batch translation job to be performed.</p>
991
- */
548
+
992
549
  JobName?: string;
993
- /**
994
- * <p>Specifies the format and S3 location of the input documents for the translation
995
- * job.</p>
996
- */
550
+
997
551
  InputDataConfig: InputDataConfig | undefined;
998
- /**
999
- * <p>Specifies the S3 folder to which your job output will be saved.
1000
- * </p>
1001
- */
552
+
1002
553
  OutputDataConfig: OutputDataConfig | undefined;
1003
- /**
1004
- * <p>The Amazon Resource Name (ARN) of an AWS Identity Access and Management (IAM) role
1005
- * that grants Amazon Translate read access to your input data. For more nformation, see <a>identity-and-access-management</a>.</p>
1006
- */
554
+
1007
555
  DataAccessRoleArn: string | undefined;
1008
- /**
1009
- * <p>The language code of the input language. For a list of language codes, see <a>what-is-languages</a>.</p>
1010
- * <p>Amazon Translate does not automatically detect a source language during batch translation
1011
- * jobs.</p>
1012
- */
556
+
1013
557
  SourceLanguageCode: string | undefined;
1014
- /**
1015
- * <p>The language code of the output language.</p>
1016
- */
558
+
1017
559
  TargetLanguageCodes: string[] | undefined;
1018
- /**
1019
- * <p>The name of the terminology to use in the batch translation job. For a list of available
1020
- * terminologies, use the <a>ListTerminologies</a> operation.</p>
1021
- */
560
+
1022
561
  TerminologyNames?: string[];
1023
- /**
1024
- * <p>The names of the parallel data resources to use in the batch translation job. For a list
1025
- * of available parallel data resources, use the <a>ListParallelData</a>
1026
- * operation.</p>
1027
- */
562
+
1028
563
  ParallelDataNames?: string[];
1029
- /**
1030
- * <p>A unique identifier for the request. This token is auto-generated when using the Amazon Translate
1031
- * SDK.</p>
1032
- */
564
+
1033
565
  ClientToken?: string;
1034
566
  }
1035
567
  export declare namespace StartTextTranslationJobRequest {
1036
- /**
1037
- * @internal
1038
- */
568
+
1039
569
  const filterSensitiveLog: (obj: StartTextTranslationJobRequest) => any;
1040
570
  }
1041
571
  export interface StartTextTranslationJobResponse {
1042
- /**
1043
- * <p>The identifier generated for the job. To get the status of a job, use this ID with the
1044
- * <a>DescribeTextTranslationJob</a> operation.</p>
1045
- */
572
+
1046
573
  JobId?: string;
1047
- /**
1048
- * <p>The status of the job. Possible values include:</p>
1049
- * <ul>
1050
- * <li>
1051
- * <p>
1052
- * <code>SUBMITTED</code> - The job has been received and is queued for
1053
- * processing.</p>
1054
- * </li>
1055
- * <li>
1056
- * <p>
1057
- * <code>IN_PROGRESS</code> - Amazon Translate is processing the job.</p>
1058
- * </li>
1059
- * <li>
1060
- * <p>
1061
- * <code>COMPLETED</code> - The job was successfully completed and the output is
1062
- * available.</p>
1063
- * </li>
1064
- * <li>
1065
- * <p>
1066
- * <code>COMPLETED_WITH_ERROR</code> - The job was completed with errors. The errors can
1067
- * be analyzed in the job's output.</p>
1068
- * </li>
1069
- * <li>
1070
- * <p>
1071
- * <code>FAILED</code> - The job did not complete. To get details, use the <a>DescribeTextTranslationJob</a> operation.</p>
1072
- * </li>
1073
- * <li>
1074
- * <p>
1075
- * <code>STOP_REQUESTED</code> - The user who started the job has requested that it be
1076
- * stopped.</p>
1077
- * </li>
1078
- * <li>
1079
- * <p>
1080
- * <code>STOPPED</code> - The job has been stopped.</p>
1081
- * </li>
1082
- * </ul>
1083
- */
574
+
1084
575
  JobStatus?: JobStatus | string;
1085
576
  }
1086
577
  export declare namespace StartTextTranslationJobResponse {
1087
- /**
1088
- * @internal
1089
- */
578
+
1090
579
  const filterSensitiveLog: (obj: StartTextTranslationJobResponse) => any;
1091
580
  }
1092
- /**
1093
- * <p>Amazon Translate does not support translation from the language of the source text into the requested
1094
- * target language. For more information, see <a>how-to-error-msg</a>. </p>
1095
- */
581
+
1096
582
  export interface UnsupportedLanguagePairException extends __SmithyException, $MetadataBearer {
1097
583
  name: "UnsupportedLanguagePairException";
1098
584
  $fault: "client";
1099
585
  Message?: string;
1100
- /**
1101
- * <p>The language code for the language of the input text. </p>
1102
- */
586
+
1103
587
  SourceLanguageCode?: string;
1104
- /**
1105
- * <p>The language code for the language of the translated text. </p>
1106
- */
588
+
1107
589
  TargetLanguageCode?: string;
1108
590
  }
1109
591
  export declare namespace UnsupportedLanguagePairException {
1110
- /**
1111
- * @internal
1112
- */
592
+
1113
593
  const filterSensitiveLog: (obj: UnsupportedLanguagePairException) => any;
1114
594
  }
1115
595
  export interface StopTextTranslationJobRequest {
1116
- /**
1117
- * <p>The job ID of the job to be stopped.</p>
1118
- */
596
+
1119
597
  JobId: string | undefined;
1120
598
  }
1121
599
  export declare namespace StopTextTranslationJobRequest {
1122
- /**
1123
- * @internal
1124
- */
600
+
1125
601
  const filterSensitiveLog: (obj: StopTextTranslationJobRequest) => any;
1126
602
  }
1127
603
  export interface StopTextTranslationJobResponse {
1128
- /**
1129
- * <p>The job ID of the stopped batch translation job.</p>
1130
- */
604
+
1131
605
  JobId?: string;
1132
- /**
1133
- * <p>The status of the designated job. Upon successful completion, the job's status will be
1134
- * <code>STOPPED</code>.</p>
1135
- */
606
+
1136
607
  JobStatus?: JobStatus | string;
1137
608
  }
1138
609
  export declare namespace StopTextTranslationJobResponse {
1139
- /**
1140
- * @internal
1141
- */
610
+
1142
611
  const filterSensitiveLog: (obj: StopTextTranslationJobResponse) => any;
1143
612
  }
1144
- /**
1145
- * <p>The confidence that Amazon Comprehend accurately detected the source language is low. If a
1146
- * low confidence level is acceptable for your application, you can use the language in the
1147
- * 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
1148
- * Guide</i>. </p>
1149
- */
613
+
1150
614
  export interface DetectedLanguageLowConfidenceException extends __SmithyException, $MetadataBearer {
1151
615
  name: "DetectedLanguageLowConfidenceException";
1152
616
  $fault: "client";
1153
617
  Message?: string;
1154
- /**
1155
- * <p>The language code of the auto-detected language from Amazon Comprehend.</p>
1156
- */
618
+
1157
619
  DetectedLanguageCode?: string;
1158
620
  }
1159
621
  export declare namespace DetectedLanguageLowConfidenceException {
1160
- /**
1161
- * @internal
1162
- */
622
+
1163
623
  const filterSensitiveLog: (obj: DetectedLanguageLowConfidenceException) => any;
1164
624
  }
1165
- /**
1166
- * <p>The Amazon Translate service is temporarily unavailable. Please wait a bit and then retry your
1167
- * request.</p>
1168
- */
625
+
1169
626
  export interface ServiceUnavailableException extends __SmithyException, $MetadataBearer {
1170
627
  name: "ServiceUnavailableException";
1171
628
  $fault: "server";
1172
629
  Message?: string;
1173
630
  }
1174
631
  export declare namespace ServiceUnavailableException {
1175
- /**
1176
- * @internal
1177
- */
632
+
1178
633
  const filterSensitiveLog: (obj: ServiceUnavailableException) => any;
1179
634
  }
1180
- /**
1181
- * <p> The size of the text you submitted exceeds the size limit. Reduce the size of the text or
1182
- * use a smaller document and then retry your request. </p>
1183
- */
635
+
1184
636
  export interface TextSizeLimitExceededException extends __SmithyException, $MetadataBearer {
1185
637
  name: "TextSizeLimitExceededException";
1186
638
  $fault: "client";
1187
639
  Message?: string;
1188
640
  }
1189
641
  export declare namespace TextSizeLimitExceededException {
1190
- /**
1191
- * @internal
1192
- */
642
+
1193
643
  const filterSensitiveLog: (obj: TextSizeLimitExceededException) => any;
1194
644
  }
1195
645
  export interface TranslateTextRequest {
1196
- /**
1197
- * <p>The text to translate. The text string can be a maximum of 5,000 bytes long. Depending on
1198
- * your character set, this may be fewer than 5,000 characters.</p>
1199
- */
646
+
1200
647
  Text: string | undefined;
1201
- /**
1202
- * <p>The name of the terminology list file to be used in the TranslateText request. You can use
1203
- * 1 terminology list at most in a <code>TranslateText</code> request. Terminology lists can
1204
- * contain a maximum of 256 terms.</p>
1205
- */
648
+
1206
649
  TerminologyNames?: string[];
1207
- /**
1208
- * <p>The language code for the language of the source text. The language must be a language
1209
- * supported by Amazon Translate. For a list of language codes, see <a>what-is-languages</a>.</p>
1210
- * <p>To have Amazon Translate determine the source language of your text, you can specify
1211
- * <code>auto</code> in the <code>SourceLanguageCode</code> field. If you specify
1212
- * <code>auto</code>, Amazon Translate will call <a href="https://docs.aws.amazon.com/comprehend/latest/dg/comprehend-general.html">Amazon
1213
- * Comprehend</a> to determine the source language.</p>
1214
- */
650
+
1215
651
  SourceLanguageCode: string | undefined;
1216
- /**
1217
- * <p>The language code requested for the language of the target text. The language must be a
1218
- * language supported by Amazon Translate.</p>
1219
- */
652
+
1220
653
  TargetLanguageCode: string | undefined;
1221
654
  }
1222
655
  export declare namespace TranslateTextRequest {
1223
- /**
1224
- * @internal
1225
- */
656
+
1226
657
  const filterSensitiveLog: (obj: TranslateTextRequest) => any;
1227
658
  }
1228
659
  export interface TranslateTextResponse {
1229
- /**
1230
- * <p>The translated text.</p>
1231
- */
660
+
1232
661
  TranslatedText: string | undefined;
1233
- /**
1234
- * <p>The language code for the language of the source text.</p>
1235
- */
662
+
1236
663
  SourceLanguageCode: string | undefined;
1237
- /**
1238
- * <p>The language code for the language of the target text. </p>
1239
- */
664
+
1240
665
  TargetLanguageCode: string | undefined;
1241
- /**
1242
- * <p>The names of the custom terminologies applied to the input text by Amazon Translate for the
1243
- * translated text response.</p>
1244
- */
666
+
1245
667
  AppliedTerminologies?: AppliedTerminology[];
1246
668
  }
1247
669
  export declare namespace TranslateTextResponse {
1248
- /**
1249
- * @internal
1250
- */
670
+
1251
671
  const filterSensitiveLog: (obj: TranslateTextResponse) => any;
1252
672
  }
1253
673
  export interface UpdateParallelDataRequest {
1254
- /**
1255
- * <p>The name of the parallel data resource being updated.</p>
1256
- */
674
+
1257
675
  Name: string | undefined;
1258
- /**
1259
- * <p>A custom description for the parallel data resource in Amazon Translate.</p>
1260
- */
676
+
1261
677
  Description?: string;
1262
- /**
1263
- * <p>Specifies the format and S3 location of the parallel data input file.</p>
1264
- */
678
+
1265
679
  ParallelDataConfig: ParallelDataConfig | undefined;
1266
- /**
1267
- * <p>A unique identifier for the request. This token is automatically generated when you use
1268
- * Amazon Translate through an AWS SDK.</p>
1269
- */
680
+
1270
681
  ClientToken?: string;
1271
682
  }
1272
683
  export declare namespace UpdateParallelDataRequest {
1273
- /**
1274
- * @internal
1275
- */
684
+
1276
685
  const filterSensitiveLog: (obj: UpdateParallelDataRequest) => any;
1277
686
  }
1278
687
  export interface UpdateParallelDataResponse {
1279
- /**
1280
- * <p>The name of the parallel data resource being updated.</p>
1281
- */
688
+
1282
689
  Name?: string;
1283
- /**
1284
- * <p>The status of the parallel data resource that you are attempting to update. Your update
1285
- * request is accepted only if this status is either <code>ACTIVE</code> or
1286
- * <code>FAILED</code>.</p>
1287
- */
690
+
1288
691
  Status?: ParallelDataStatus | string;
1289
- /**
1290
- * <p>The status of the parallel data update attempt. When the updated parallel data resource is
1291
- * ready for you to use, the status is <code>ACTIVE</code>.</p>
1292
- */
692
+
1293
693
  LatestUpdateAttemptStatus?: ParallelDataStatus | string;
1294
- /**
1295
- * <p>The time that the most recent update was attempted.</p>
1296
- */
694
+
1297
695
  LatestUpdateAttemptAt?: Date;
1298
696
  }
1299
697
  export declare namespace UpdateParallelDataResponse {
1300
- /**
1301
- * @internal
1302
- */
698
+
1303
699
  const filterSensitiveLog: (obj: UpdateParallelDataResponse) => any;
1304
700
  }