@aws-sdk/client-translate 3.428.0 → 3.430.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.
@@ -85,7 +85,7 @@ export interface EncryptionKey {
85
85
  * @public
86
86
  * <p>The type of encryption key used by Amazon Translate to encrypt this object.</p>
87
87
  */
88
- Type: EncryptionKeyType | string | undefined;
88
+ Type: EncryptionKeyType | undefined;
89
89
  /**
90
90
  * @public
91
91
  * <p>The Amazon Resource Name (ARN) of the encryption key being used to encrypt this object.</p>
@@ -120,7 +120,7 @@ export interface ParallelDataConfig {
120
120
  * @public
121
121
  * <p>The format of the parallel data input file.</p>
122
122
  */
123
- Format: ParallelDataFormat | string | undefined;
123
+ Format: ParallelDataFormat | undefined;
124
124
  }
125
125
  /**
126
126
  * @public
@@ -208,7 +208,7 @@ export interface CreateParallelDataResponse {
208
208
  * <p>The status of the parallel data resource. When the resource is ready for you to use, the
209
209
  * status is <code>ACTIVE</code>.</p>
210
210
  */
211
- Status?: ParallelDataStatus | string;
211
+ Status?: ParallelDataStatus;
212
212
  }
213
213
  /**
214
214
  * @public
@@ -315,7 +315,7 @@ export interface DeleteParallelDataResponse {
315
315
  * @public
316
316
  * <p>The status of the parallel data deletion.</p>
317
317
  */
318
- Status?: ParallelDataStatus | string;
318
+ Status?: ParallelDataStatus;
319
319
  }
320
320
  /**
321
321
  * @public
@@ -510,7 +510,7 @@ export interface TranslationSettings {
510
510
  * <p>For a list of target languages that support formality, see <a href="https://docs.aws.amazon.com/translate/latest/dg/customizing-translations-formality.html#customizing-translations-formality-languages">Supported languages</a>
511
511
  * in the Amazon Translate Developer Guide.</p>
512
512
  */
513
- Formality?: Formality | string;
513
+ Formality?: Formality;
514
514
  /**
515
515
  * @public
516
516
  * <p>Enable the profanity setting if you want Amazon Translate to mask profane words and
@@ -526,7 +526,7 @@ export interface TranslationSettings {
526
526
  * translation job won't mask profanity for any target
527
527
  * language.</p>
528
528
  */
529
- Profanity?: Profanity | string;
529
+ Profanity?: Profanity;
530
530
  }
531
531
  /**
532
532
  * @public
@@ -547,7 +547,7 @@ export interface TextTranslationJobProperties {
547
547
  * @public
548
548
  * <p>The status of the translation job.</p>
549
549
  */
550
- JobStatus?: JobStatus | string;
550
+ JobStatus?: JobStatus;
551
551
  /**
552
552
  * @public
553
553
  * <p>The number of documents successfully and unsuccessfully processed during the translation
@@ -690,7 +690,7 @@ export interface ParallelDataProperties {
690
690
  * <p>The status of the parallel data resource. When the parallel data is ready for you to use,
691
691
  * the status is <code>ACTIVE</code>.</p>
692
692
  */
693
- Status?: ParallelDataStatus | string;
693
+ Status?: ParallelDataStatus;
694
694
  /**
695
695
  * @public
696
696
  * <p>The source language of the translations in the parallel data file.</p>
@@ -756,7 +756,7 @@ export interface ParallelDataProperties {
756
756
  * @public
757
757
  * <p>The status of the most recent update attempt for the parallel data resource.</p>
758
758
  */
759
- LatestUpdateAttemptStatus?: ParallelDataStatus | string;
759
+ LatestUpdateAttemptStatus?: ParallelDataStatus;
760
760
  /**
761
761
  * @public
762
762
  * <p>The time that the most recent update was attempted.</p>
@@ -837,7 +837,7 @@ export interface GetTerminologyRequest {
837
837
  * you must specify the same format as the input file that was imported to create it. Otherwise,
838
838
  * Amazon Translate throws an error.</p>
839
839
  */
840
- TerminologyDataFormat?: TerminologyDataFormat | string;
840
+ TerminologyDataFormat?: TerminologyDataFormat;
841
841
  }
842
842
  /**
843
843
  * @public
@@ -952,7 +952,7 @@ export interface TerminologyProperties {
952
952
  * </dd>
953
953
  * </dl>
954
954
  */
955
- Directionality?: Directionality | string;
955
+ Directionality?: Directionality;
956
956
  /**
957
957
  * @public
958
958
  * <p>Additional information from Amazon Translate about the terminology resource.</p>
@@ -968,7 +968,7 @@ export interface TerminologyProperties {
968
968
  * @public
969
969
  * <p>The format of the custom terminology input file.</p>
970
970
  */
971
- Format?: TerminologyDataFormat | string;
971
+ Format?: TerminologyDataFormat;
972
972
  }
973
973
  /**
974
974
  * @public
@@ -1034,7 +1034,7 @@ export interface TerminologyData {
1034
1034
  * @public
1035
1035
  * <p>The data format of the custom terminology.</p>
1036
1036
  */
1037
- Format: TerminologyDataFormat | string | undefined;
1037
+ Format: TerminologyDataFormat | undefined;
1038
1038
  /**
1039
1039
  * @public
1040
1040
  * <p>The directionality of your terminology resource indicates whether it has one source
@@ -1057,7 +1057,7 @@ export interface TerminologyData {
1057
1057
  * <p>When you create a custom terminology resource without specifying the directionality, it
1058
1058
  * behaves as uni-directional terminology, although this parameter will have a null value.</p>
1059
1059
  */
1060
- Directionality?: Directionality | string;
1060
+ Directionality?: Directionality;
1061
1061
  }
1062
1062
  /**
1063
1063
  * @public
@@ -1074,7 +1074,7 @@ export interface ImportTerminologyRequest {
1074
1074
  * merge strategy is supported. In this case, the imported terminology will overwrite an existing
1075
1075
  * terminology of the same name.</p>
1076
1076
  */
1077
- MergeStrategy: MergeStrategy | string | undefined;
1077
+ MergeStrategy: MergeStrategy | undefined;
1078
1078
  /**
1079
1079
  * @public
1080
1080
  * <p>The description of the custom terminology being imported.</p>
@@ -1146,7 +1146,7 @@ export interface ListLanguagesRequest {
1146
1146
  * <p>The language code for the language to use to display the language names in the response.
1147
1147
  * The language code is <code>en</code> by default. </p>
1148
1148
  */
1149
- DisplayLanguageCode?: DisplayLanguageCode | string;
1149
+ DisplayLanguageCode?: DisplayLanguageCode;
1150
1150
  /**
1151
1151
  * @public
1152
1152
  * <p>Include the NextToken value to fetch the next group of supported languages. </p>
@@ -1187,7 +1187,7 @@ export interface ListLanguagesResponse {
1187
1187
  * @public
1188
1188
  * <p>The language code passed in with the request.</p>
1189
1189
  */
1190
- DisplayLanguageCode?: DisplayLanguageCode | string;
1190
+ DisplayLanguageCode?: DisplayLanguageCode;
1191
1191
  /**
1192
1192
  * @public
1193
1193
  * <p> If the response does not include all remaining results, use the NextToken
@@ -1328,7 +1328,7 @@ export interface TextTranslationJobFilter {
1328
1328
  * @public
1329
1329
  * <p>Filters the list of jobs based by job status.</p>
1330
1330
  */
1331
- JobStatus?: JobStatus | string;
1331
+ JobStatus?: JobStatus;
1332
1332
  /**
1333
1333
  * @public
1334
1334
  * <p>Filters the list of jobs based on the time that the job was submitted for processing and
@@ -1517,7 +1517,7 @@ export interface StartTextTranslationJobResponse {
1517
1517
  * </li>
1518
1518
  * </ul>
1519
1519
  */
1520
- JobStatus?: JobStatus | string;
1520
+ JobStatus?: JobStatus;
1521
1521
  }
1522
1522
  /**
1523
1523
  * @public
@@ -1567,7 +1567,7 @@ export interface StopTextTranslationJobResponse {
1567
1567
  * <p>The status of the designated job. Upon successful completion, the job's status will be
1568
1568
  * <code>STOPPED</code>.</p>
1569
1569
  */
1570
- JobStatus?: JobStatus | string;
1570
+ JobStatus?: JobStatus;
1571
1571
  }
1572
1572
  /**
1573
1573
  * @public
@@ -1904,13 +1904,13 @@ export interface UpdateParallelDataResponse {
1904
1904
  * request is accepted only if this status is either <code>ACTIVE</code> or
1905
1905
  * <code>FAILED</code>.</p>
1906
1906
  */
1907
- Status?: ParallelDataStatus | string;
1907
+ Status?: ParallelDataStatus;
1908
1908
  /**
1909
1909
  * @public
1910
1910
  * <p>The status of the parallel data update attempt. When the updated parallel data resource is
1911
1911
  * ready for you to use, the status is <code>ACTIVE</code>.</p>
1912
1912
  */
1913
- LatestUpdateAttemptStatus?: ParallelDataStatus | string;
1913
+ LatestUpdateAttemptStatus?: ParallelDataStatus;
1914
1914
  /**
1915
1915
  * @public
1916
1916
  * <p>The time that the most recent update was attempted.</p>
@@ -31,7 +31,7 @@ export declare const EncryptionKeyType: {
31
31
  export type EncryptionKeyType =
32
32
  (typeof EncryptionKeyType)[keyof typeof EncryptionKeyType];
33
33
  export interface EncryptionKey {
34
- Type: EncryptionKeyType | string | undefined;
34
+ Type: EncryptionKeyType | undefined;
35
35
  Id: string | undefined;
36
36
  }
37
37
  export declare const ParallelDataFormat: {
@@ -43,7 +43,7 @@ export type ParallelDataFormat =
43
43
  (typeof ParallelDataFormat)[keyof typeof ParallelDataFormat];
44
44
  export interface ParallelDataConfig {
45
45
  S3Uri: string | undefined;
46
- Format: ParallelDataFormat | string | undefined;
46
+ Format: ParallelDataFormat | undefined;
47
47
  }
48
48
  export interface Tag {
49
49
  Key: string | undefined;
@@ -68,7 +68,7 @@ export type ParallelDataStatus =
68
68
  (typeof ParallelDataStatus)[keyof typeof ParallelDataStatus];
69
69
  export interface CreateParallelDataResponse {
70
70
  Name?: string;
71
- Status?: ParallelDataStatus | string;
71
+ Status?: ParallelDataStatus;
72
72
  }
73
73
  export declare class InternalServerException extends __BaseException {
74
74
  readonly name: "InternalServerException";
@@ -123,7 +123,7 @@ export interface DeleteParallelDataRequest {
123
123
  }
124
124
  export interface DeleteParallelDataResponse {
125
125
  Name?: string;
126
- Status?: ParallelDataStatus | string;
126
+ Status?: ParallelDataStatus;
127
127
  }
128
128
  export declare class ResourceNotFoundException extends __BaseException {
129
129
  readonly name: "ResourceNotFoundException";
@@ -172,13 +172,13 @@ export declare const Profanity: {
172
172
  };
173
173
  export type Profanity = (typeof Profanity)[keyof typeof Profanity];
174
174
  export interface TranslationSettings {
175
- Formality?: Formality | string;
176
- Profanity?: Profanity | string;
175
+ Formality?: Formality;
176
+ Profanity?: Profanity;
177
177
  }
178
178
  export interface TextTranslationJobProperties {
179
179
  JobId?: string;
180
180
  JobName?: string;
181
- JobStatus?: JobStatus | string;
181
+ JobStatus?: JobStatus;
182
182
  JobDetails?: JobDetails;
183
183
  SourceLanguageCode?: string;
184
184
  TargetLanguageCodes?: string[];
@@ -206,7 +206,7 @@ export interface ParallelDataProperties {
206
206
  Name?: string;
207
207
  Arn?: string;
208
208
  Description?: string;
209
- Status?: ParallelDataStatus | string;
209
+ Status?: ParallelDataStatus;
210
210
  SourceLanguageCode?: string;
211
211
  TargetLanguageCodes?: string[];
212
212
  ParallelDataConfig?: ParallelDataConfig;
@@ -218,7 +218,7 @@ export interface ParallelDataProperties {
218
218
  EncryptionKey?: EncryptionKey;
219
219
  CreatedAt?: Date;
220
220
  LastUpdatedAt?: Date;
221
- LatestUpdateAttemptStatus?: ParallelDataStatus | string;
221
+ LatestUpdateAttemptStatus?: ParallelDataStatus;
222
222
  LatestUpdateAttemptAt?: Date;
223
223
  }
224
224
  export interface GetParallelDataResponse {
@@ -236,7 +236,7 @@ export type TerminologyDataFormat =
236
236
  (typeof TerminologyDataFormat)[keyof typeof TerminologyDataFormat];
237
237
  export interface GetTerminologyRequest {
238
238
  Name: string | undefined;
239
- TerminologyDataFormat?: TerminologyDataFormat | string;
239
+ TerminologyDataFormat?: TerminologyDataFormat;
240
240
  }
241
241
  export interface TerminologyDataLocation {
242
242
  RepositoryType: string | undefined;
@@ -259,10 +259,10 @@ export interface TerminologyProperties {
259
259
  TermCount?: number;
260
260
  CreatedAt?: Date;
261
261
  LastUpdatedAt?: Date;
262
- Directionality?: Directionality | string;
262
+ Directionality?: Directionality;
263
263
  Message?: string;
264
264
  SkippedTermCount?: number;
265
- Format?: TerminologyDataFormat | string;
265
+ Format?: TerminologyDataFormat;
266
266
  }
267
267
  export interface GetTerminologyResponse {
268
268
  TerminologyProperties?: TerminologyProperties;
@@ -275,12 +275,12 @@ export declare const MergeStrategy: {
275
275
  export type MergeStrategy = (typeof MergeStrategy)[keyof typeof MergeStrategy];
276
276
  export interface TerminologyData {
277
277
  File: Uint8Array | undefined;
278
- Format: TerminologyDataFormat | string | undefined;
279
- Directionality?: Directionality | string;
278
+ Format: TerminologyDataFormat | undefined;
279
+ Directionality?: Directionality;
280
280
  }
281
281
  export interface ImportTerminologyRequest {
282
282
  Name: string | undefined;
283
- MergeStrategy: MergeStrategy | string | undefined;
283
+ MergeStrategy: MergeStrategy | undefined;
284
284
  Description?: string;
285
285
  TerminologyData: TerminologyData | undefined;
286
286
  EncryptionKey?: EncryptionKey;
@@ -305,7 +305,7 @@ export declare const DisplayLanguageCode: {
305
305
  export type DisplayLanguageCode =
306
306
  (typeof DisplayLanguageCode)[keyof typeof DisplayLanguageCode];
307
307
  export interface ListLanguagesRequest {
308
- DisplayLanguageCode?: DisplayLanguageCode | string;
308
+ DisplayLanguageCode?: DisplayLanguageCode;
309
309
  NextToken?: string;
310
310
  MaxResults?: number;
311
311
  }
@@ -315,7 +315,7 @@ export interface Language {
315
315
  }
316
316
  export interface ListLanguagesResponse {
317
317
  Languages?: Language[];
318
- DisplayLanguageCode?: DisplayLanguageCode | string;
318
+ DisplayLanguageCode?: DisplayLanguageCode;
319
319
  NextToken?: string;
320
320
  }
321
321
  export declare class UnsupportedDisplayLanguageCodeException extends __BaseException {
@@ -362,7 +362,7 @@ export declare class InvalidFilterException extends __BaseException {
362
362
  }
363
363
  export interface TextTranslationJobFilter {
364
364
  JobName?: string;
365
- JobStatus?: JobStatus | string;
365
+ JobStatus?: JobStatus;
366
366
  SubmittedBeforeTime?: Date;
367
367
  SubmittedAfterTime?: Date;
368
368
  }
@@ -389,7 +389,7 @@ export interface StartTextTranslationJobRequest {
389
389
  }
390
390
  export interface StartTextTranslationJobResponse {
391
391
  JobId?: string;
392
- JobStatus?: JobStatus | string;
392
+ JobStatus?: JobStatus;
393
393
  }
394
394
  export declare class UnsupportedLanguagePairException extends __BaseException {
395
395
  readonly name: "UnsupportedLanguagePairException";
@@ -409,7 +409,7 @@ export interface StopTextTranslationJobRequest {
409
409
  }
410
410
  export interface StopTextTranslationJobResponse {
411
411
  JobId?: string;
412
- JobStatus?: JobStatus | string;
412
+ JobStatus?: JobStatus;
413
413
  }
414
414
  export interface TagResourceRequest {
415
415
  ResourceArn: string | undefined;
@@ -492,8 +492,8 @@ export interface UpdateParallelDataRequest {
492
492
  }
493
493
  export interface UpdateParallelDataResponse {
494
494
  Name?: string;
495
- Status?: ParallelDataStatus | string;
496
- LatestUpdateAttemptStatus?: ParallelDataStatus | string;
495
+ Status?: ParallelDataStatus;
496
+ LatestUpdateAttemptStatus?: ParallelDataStatus;
497
497
  LatestUpdateAttemptAt?: Date;
498
498
  }
499
499
  export declare const TerminologyDataFilterSensitiveLog: (
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-translate",
3
3
  "description": "AWS SDK for JavaScript Translate Client for Node.js, Browser and React Native",
4
- "version": "3.428.0",
4
+ "version": "3.430.0",
5
5
  "scripts": {
6
6
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
7
7
  "build:cjs": "tsc -p tsconfig.cjs.json",
@@ -21,28 +21,28 @@
21
21
  "dependencies": {
22
22
  "@aws-crypto/sha256-browser": "3.0.0",
23
23
  "@aws-crypto/sha256-js": "3.0.0",
24
- "@aws-sdk/client-sts": "3.428.0",
25
- "@aws-sdk/credential-provider-node": "3.428.0",
26
- "@aws-sdk/middleware-host-header": "3.428.0",
24
+ "@aws-sdk/client-sts": "3.430.0",
25
+ "@aws-sdk/credential-provider-node": "3.430.0",
26
+ "@aws-sdk/middleware-host-header": "3.429.0",
27
27
  "@aws-sdk/middleware-logger": "3.428.0",
28
28
  "@aws-sdk/middleware-recursion-detection": "3.428.0",
29
29
  "@aws-sdk/middleware-signing": "3.428.0",
30
30
  "@aws-sdk/middleware-user-agent": "3.428.0",
31
- "@aws-sdk/region-config-resolver": "3.428.0",
31
+ "@aws-sdk/region-config-resolver": "3.430.0",
32
32
  "@aws-sdk/types": "3.428.0",
33
33
  "@aws-sdk/util-endpoints": "3.428.0",
34
34
  "@aws-sdk/util-user-agent-browser": "3.428.0",
35
- "@aws-sdk/util-user-agent-node": "3.428.0",
36
- "@smithy/config-resolver": "^2.0.14",
35
+ "@aws-sdk/util-user-agent-node": "3.430.0",
36
+ "@smithy/config-resolver": "^2.0.15",
37
37
  "@smithy/fetch-http-handler": "^2.2.3",
38
38
  "@smithy/hash-node": "^2.0.11",
39
39
  "@smithy/invalid-dependency": "^2.0.11",
40
40
  "@smithy/middleware-content-length": "^2.0.13",
41
- "@smithy/middleware-endpoint": "^2.1.0",
42
- "@smithy/middleware-retry": "^2.0.16",
41
+ "@smithy/middleware-endpoint": "^2.1.2",
42
+ "@smithy/middleware-retry": "^2.0.17",
43
43
  "@smithy/middleware-serde": "^2.0.11",
44
44
  "@smithy/middleware-stack": "^2.0.5",
45
- "@smithy/node-config-provider": "^2.1.1",
45
+ "@smithy/node-config-provider": "^2.1.2",
46
46
  "@smithy/node-http-handler": "^2.1.7",
47
47
  "@smithy/protocol-http": "^3.0.7",
48
48
  "@smithy/smithy-client": "^2.1.11",
@@ -52,7 +52,7 @@
52
52
  "@smithy/util-body-length-browser": "^2.0.0",
53
53
  "@smithy/util-body-length-node": "^2.1.0",
54
54
  "@smithy/util-defaults-mode-browser": "^2.0.15",
55
- "@smithy/util-defaults-mode-node": "^2.0.19",
55
+ "@smithy/util-defaults-mode-node": "^2.0.20",
56
56
  "@smithy/util-retry": "^2.0.4",
57
57
  "@smithy/util-utf8": "^2.0.0",
58
58
  "tslib": "^2.5.0",