@aws-sdk/client-translate 3.39.0 → 3.43.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (37) hide show
  1. package/CHANGELOG.md +42 -0
  2. package/dist-cjs/endpoints.js +118 -17
  3. package/dist-cjs/models/models_0.js +18 -2
  4. package/dist-cjs/protocols/Aws_json1_1.js +47 -0
  5. package/dist-cjs/runtimeConfig.browser.js +6 -3
  6. package/dist-cjs/runtimeConfig.js +5 -3
  7. package/dist-es/endpoints.js +118 -17
  8. package/dist-es/models/models_0.js +14 -0
  9. package/dist-es/protocols/Aws_json1_1.js +77 -36
  10. package/dist-es/runtimeConfig.browser.js +3 -2
  11. package/dist-es/runtimeConfig.js +3 -3
  12. package/dist-types/Translate.d.ts +4 -4
  13. package/dist-types/TranslateClient.d.ts +8 -0
  14. package/dist-types/commands/CreateParallelDataCommand.d.ts +4 -4
  15. package/dist-types/commands/DeleteParallelDataCommand.d.ts +1 -1
  16. package/dist-types/commands/DeleteTerminologyCommand.d.ts +1 -1
  17. package/dist-types/commands/DescribeTextTranslationJobCommand.d.ts +2 -2
  18. package/dist-types/commands/GetParallelDataCommand.d.ts +1 -1
  19. package/dist-types/commands/GetTerminologyCommand.d.ts +1 -1
  20. package/dist-types/commands/ImportTerminologyCommand.d.ts +1 -1
  21. package/dist-types/commands/ListParallelDataCommand.d.ts +1 -1
  22. package/dist-types/commands/ListTerminologiesCommand.d.ts +1 -1
  23. package/dist-types/commands/ListTextTranslationJobsCommand.d.ts +1 -1
  24. package/dist-types/commands/StartTextTranslationJobCommand.d.ts +1 -1
  25. package/dist-types/commands/StopTextTranslationJobCommand.d.ts +1 -1
  26. package/dist-types/commands/TranslateTextCommand.d.ts +1 -1
  27. package/dist-types/commands/UpdateParallelDataCommand.d.ts +1 -1
  28. package/dist-types/models/models_0.d.ts +203 -23
  29. package/dist-types/runtimeConfig.browser.d.ts +2 -0
  30. package/dist-types/runtimeConfig.d.ts +2 -0
  31. package/dist-types/runtimeConfig.native.d.ts +2 -0
  32. package/dist-types/ts3.4/TranslateClient.d.ts +4 -0
  33. package/dist-types/ts3.4/models/models_0.d.ts +43 -2
  34. package/dist-types/ts3.4/runtimeConfig.browser.d.ts +2 -0
  35. package/dist-types/ts3.4/runtimeConfig.d.ts +2 -0
  36. package/dist-types/ts3.4/runtimeConfig.native.d.ts +2 -0
  37. package/package.json +23 -23
@@ -65,12 +65,11 @@ export declare enum EncryptionKeyType {
65
65
  */
66
66
  export interface EncryptionKey {
67
67
  /**
68
- * <p>The type of encryption key used by Amazon Translate to encrypt custom terminologies.</p>
68
+ * <p>The type of encryption key used by Amazon Translate to encrypt this object.</p>
69
69
  */
70
70
  Type: EncryptionKeyType | string | undefined;
71
71
  /**
72
- * <p>The Amazon Resource Name (ARN) of the encryption key being used to encrypt the custom
73
- * terminology.</p>
72
+ * <p>The Amazon Resource Name (ARN) of the encryption key being used to encrypt this object.</p>
74
73
  */
75
74
  Id: string | undefined;
76
75
  }
@@ -356,6 +355,12 @@ export interface InputDataConfig {
356
355
  * <code>application/vnd.openxmlformats-officedocument.spreadsheetml.sheet</code>: The
357
356
  * input data consists of one or more Excel Workbook files (.xlsx).</p>
358
357
  * </li>
358
+ * <li>
359
+ * <p>
360
+ * <code>application/x-xliff+xml</code>: The input data consists of one or more XML
361
+ * Localization Interchange File Format (XLIFF) files (.xlf). Amazon Translate supports only
362
+ * XLIFF version 1.2.</p>
363
+ * </li>
359
364
  * </ul>
360
365
  * <important>
361
366
  * <p>If you structure your input data as HTML, ensure that you set this parameter to
@@ -414,6 +419,10 @@ export interface OutputDataConfig {
414
419
  * be in the same Region as the API endpoint that you are calling.</p>
415
420
  */
416
421
  S3Uri: string | undefined;
422
+ /**
423
+ * <p>The encryption key used to encrypt this object.</p>
424
+ */
425
+ EncryptionKey?: EncryptionKey;
417
426
  }
418
427
  export declare namespace OutputDataConfig {
419
428
  /**
@@ -421,6 +430,31 @@ export declare namespace OutputDataConfig {
421
430
  */
422
431
  const filterSensitiveLog: (obj: OutputDataConfig) => any;
423
432
  }
433
+ export declare enum Profanity {
434
+ MASK = "MASK"
435
+ }
436
+ /**
437
+ * <p>Settings that configure the translation output.</p>
438
+ */
439
+ export interface TranslationSettings {
440
+ /**
441
+ * <p>Enable the profanity setting if you want Amazon Translate to mask profane words and
442
+ * phrases in your translation output.</p>
443
+ * <p>To mask profane words and phrases, Amazon Translate replaces them with the grawlix string
444
+ * “?$#@$“. This 5-character sequence is used for each profane word or phrase, regardless of the
445
+ * length or number of words.</p>
446
+ * <p>Amazon Translate does not detect profanity in all of its supported languages. For
447
+ * languages that support profanity detection, see <a href="https://docs.aws.amazon.com/translate/latest/dg/what-is.html#what-is-languages">Supported
448
+ * Languages and Language Codes in the Amazon Translate Developer Guide</a>.</p>
449
+ */
450
+ Profanity?: Profanity | string;
451
+ }
452
+ export declare namespace TranslationSettings {
453
+ /**
454
+ * @internal
455
+ */
456
+ const filterSensitiveLog: (obj: TranslationSettings) => any;
457
+ }
424
458
  /**
425
459
  * <p>Provides information about a translation job.</p>
426
460
  */
@@ -464,7 +498,7 @@ export interface TextTranslationJobProperties {
464
498
  */
465
499
  ParallelDataNames?: string[];
466
500
  /**
467
- * <p>An explanation of any errors that may have occured during the translation job.</p>
501
+ * <p>An explanation of any errors that may have occurred during the translation job.</p>
468
502
  */
469
503
  Message?: string;
470
504
  /**
@@ -488,6 +522,10 @@ export interface TextTranslationJobProperties {
488
522
  * that granted Amazon Translate read access to the job's input data.</p>
489
523
  */
490
524
  DataAccessRoleArn?: string;
525
+ /**
526
+ * <p>Settings that configure the translation output.</p>
527
+ */
528
+ Settings?: TranslationSettings;
491
529
  }
492
530
  export declare namespace TextTranslationJobProperties {
493
531
  /**
@@ -532,6 +570,16 @@ export interface ParallelDataDataLocation {
532
570
  /**
533
571
  * <p>The Amazon S3 location of the parallel data input file. The location is returned as a
534
572
  * presigned URL to that has a 30 minute expiration.</p>
573
+ *
574
+ * <important>
575
+ * <p>Amazon Translate doesn't scan all input files for the risk of CSV injection
576
+ * attacks. </p>
577
+ * <p>CSV injection occurs when a .csv or .tsv file is altered so that a record contains
578
+ * malicious code. The record begins with a special character, such as =, +, -, or @. When the
579
+ * file is opened in a spreadsheet program, the program might interpret the record as a formula
580
+ * and run the code within it.</p>
581
+ * <p>Before you download an input file from Amazon S3, ensure that you recognize the file and trust its creator.</p>
582
+ * </important>
535
583
  */
536
584
  Location: string | undefined;
537
585
  }
@@ -633,9 +681,19 @@ export interface GetParallelDataResponse {
633
681
  */
634
682
  ParallelDataProperties?: ParallelDataProperties;
635
683
  /**
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>
684
+ * <p>The Amazon S3 location of the most recent parallel data input file that was successfully
685
+ * imported into Amazon Translate. The location is returned as a presigned URL that has a 30
686
+ * minute expiration.</p>
687
+ *
688
+ * <important>
689
+ * <p>Amazon Translate doesn't scan all input files for the risk of CSV injection
690
+ * attacks. </p>
691
+ * <p>CSV injection occurs when a .csv or .tsv file is altered so that a record contains
692
+ * malicious code. The record begins with a special character, such as =, +, -, or @. When the
693
+ * file is opened in a spreadsheet program, the program might interpret the record as a formula
694
+ * and run the code within it.</p>
695
+ * <p>Before you download an input file from Amazon S3, ensure that you recognize the file and trust its creator.</p>
696
+ * </important>
639
697
  */
640
698
  DataLocation?: ParallelDataDataLocation;
641
699
  /**
@@ -661,7 +719,8 @@ export declare namespace GetParallelDataResponse {
661
719
  }
662
720
  export declare enum TerminologyDataFormat {
663
721
  CSV = "CSV",
664
- TMX = "TMX"
722
+ TMX = "TMX",
723
+ TSV = "TSV"
665
724
  }
666
725
  export interface GetTerminologyRequest {
667
726
  /**
@@ -669,9 +728,14 @@ export interface GetTerminologyRequest {
669
728
  */
670
729
  Name: string | undefined;
671
730
  /**
672
- * <p>The data format of the custom terminology being retrieved, either CSV or TMX.</p>
731
+ * <p>The data format of the custom terminology being retrieved.</p>
732
+ * <p>If you don't specify this parameter, Amazon Translate returns a file that has the same
733
+ * format as the file that was imported to create the terminology. </p>
734
+ * <p>If you specify this parameter when you retrieve a multi-directional terminology resource,
735
+ * you must specify the same format as that of the input file that was imported to create it.
736
+ * Otherwise, Amazon Translate throws an error.</p>
673
737
  */
674
- TerminologyDataFormat: TerminologyDataFormat | string | undefined;
738
+ TerminologyDataFormat?: TerminologyDataFormat | string;
675
739
  }
676
740
  export declare namespace GetTerminologyRequest {
677
741
  /**
@@ -688,7 +752,19 @@ export interface TerminologyDataLocation {
688
752
  */
689
753
  RepositoryType: string | undefined;
690
754
  /**
691
- * <p>The location of the custom terminology data.</p>
755
+ * <p>The Amazon S3 location of the most recent custom terminology input file that was
756
+ * successfully imported into Amazon Translate. The location is returned as a presigned URL that
757
+ * has a 30 minute expiration.</p>
758
+ *
759
+ * <important>
760
+ * <p>Amazon Translate doesn't scan all input files for the risk of CSV injection
761
+ * attacks. </p>
762
+ * <p>CSV injection occurs when a .csv or .tsv file is altered so that a record contains
763
+ * malicious code. The record begins with a special character, such as =, +, -, or @. When the
764
+ * file is opened in a spreadsheet program, the program might interpret the record as a formula
765
+ * and run the code within it.</p>
766
+ * <p>Before you download an input file from Amazon S3, ensure that you recognize the file and trust its creator.</p>
767
+ * </important>
692
768
  */
693
769
  Location: string | undefined;
694
770
  }
@@ -698,6 +774,10 @@ export declare namespace TerminologyDataLocation {
698
774
  */
699
775
  const filterSensitiveLog: (obj: TerminologyDataLocation) => any;
700
776
  }
777
+ export declare enum Directionality {
778
+ MULTI = "MULTI",
779
+ UNI = "UNI"
780
+ }
701
781
  /**
702
782
  * <p>The properties of the custom terminology.</p>
703
783
  */
@@ -720,8 +800,8 @@ export interface TerminologyProperties {
720
800
  */
721
801
  SourceLanguageCode?: string;
722
802
  /**
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>
803
+ * <p>The language codes for the target languages available with the custom terminology
804
+ * resource. All possible target languages are returned in array.</p>
725
805
  */
726
806
  TargetLanguageCodes?: string[];
727
807
  /**
@@ -744,6 +824,35 @@ export interface TerminologyProperties {
744
824
  * <p>The time at which the custom terminology was last update, based on the timestamp.</p>
745
825
  */
746
826
  LastUpdatedAt?: Date;
827
+ /**
828
+ * <p>The directionality of your terminology resource indicates whether it has one source
829
+ * language (uni-directional) or multiple (multi-directional). </p>
830
+ * <dl>
831
+ * <dt>UNI</dt>
832
+ * <dd>
833
+ * <p>The terminology resource has one source language (the first column in a CSV file),
834
+ * and all of its other languages are target languages.</p>
835
+ * </dd>
836
+ * <dt>MULTI</dt>
837
+ * <dd>
838
+ * <p>Any language in the terminology resource can be the source language.</p>
839
+ * </dd>
840
+ * </dl>
841
+ */
842
+ Directionality?: Directionality | string;
843
+ /**
844
+ * <p>Additional information from Amazon Translate about the terminology resource.</p>
845
+ */
846
+ Message?: string;
847
+ /**
848
+ * <p>The number of terms in the input file that Amazon Translate skipped when you created or
849
+ * updated the terminology resource.</p>
850
+ */
851
+ SkippedTermCount?: number;
852
+ /**
853
+ * <p>The format of the custom terminology input file.</p>
854
+ */
855
+ Format?: TerminologyDataFormat | string;
747
856
  }
748
857
  export declare namespace TerminologyProperties {
749
858
  /**
@@ -757,10 +866,28 @@ export interface GetTerminologyResponse {
757
866
  */
758
867
  TerminologyProperties?: TerminologyProperties;
759
868
  /**
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>
869
+ * <p>The Amazon S3 location of the most recent custom terminology input file that was
870
+ * successfully imported into Amazon Translate. The location is returned as a presigned URL that
871
+ * has a 30 minute expiration.</p>
872
+ *
873
+ * <important>
874
+ * <p>Amazon Translate doesn't scan all input files for the risk of CSV injection
875
+ * attacks. </p>
876
+ * <p>CSV injection occurs when a .csv or .tsv file is altered so that a record contains
877
+ * malicious code. The record begins with a special character, such as =, +, -, or @. When the
878
+ * file is opened in a spreadsheet program, the program might interpret the record as a formula
879
+ * and run the code within it.</p>
880
+ * <p>Before you download an input file from Amazon S3, ensure that you recognize the file and trust its creator.</p>
881
+ * </important>
762
882
  */
763
883
  TerminologyDataLocation?: TerminologyDataLocation;
884
+ /**
885
+ * <p>The Amazon S3 location of a file that provides any errors or warnings that were produced
886
+ * by your input file. This file was created when Amazon Translate attempted to create a
887
+ * terminology resource. The location is returned as a presigned URL to that has a 30 minute
888
+ * expiration.</p>
889
+ */
890
+ AuxiliaryDataLocation?: TerminologyDataLocation;
764
891
  }
765
892
  export declare namespace GetTerminologyResponse {
766
893
  /**
@@ -782,9 +909,31 @@ export interface TerminologyData {
782
909
  */
783
910
  File: Uint8Array | undefined;
784
911
  /**
785
- * <p>The data format of the custom terminology. Either CSV or TMX.</p>
912
+ * <p>The data format of the custom terminology.</p>
786
913
  */
787
914
  Format: TerminologyDataFormat | string | undefined;
915
+ /**
916
+ * <p>The directionality of your terminology resource indicates whether it has one source
917
+ * language (uni-directional) or multiple (multi-directional).</p>
918
+ * <dl>
919
+ * <dt>UNI</dt>
920
+ * <dd>
921
+ * <p>The terminology resource has one source language (for example, the first column in a
922
+ * CSV file), and all of its other languages are target languages. </p>
923
+ * </dd>
924
+ * <dt>MULTI</dt>
925
+ * <dd>
926
+ * <p>Any language in the terminology resource can be the source language or a target
927
+ * language. A single multi-directional terminology resource can be used for jobs that
928
+ * translate different language pairs. For example, if the terminology contains terms in
929
+ * English and Spanish, then it can be used for jobs that translate English to Spanish and
930
+ * jobs that translate Spanish to English.</p>
931
+ * </dd>
932
+ * </dl>
933
+ * <p>When you create a custom terminology resource without specifying the directionality, it
934
+ * behaves as uni-directional terminology, although this parameter will have a null value.</p>
935
+ */
936
+ Directionality?: Directionality | string;
788
937
  }
789
938
  export declare namespace TerminologyData {
790
939
  /**
@@ -827,6 +976,13 @@ export interface ImportTerminologyResponse {
827
976
  * <p>The properties of the custom terminology being imported.</p>
828
977
  */
829
978
  TerminologyProperties?: TerminologyProperties;
979
+ /**
980
+ * <p>The Amazon S3 location of a file that provides any errors or warnings that were produced
981
+ * by your input file. This file was created when Amazon Translate attempted to create a
982
+ * terminology resource. The location is returned as a presigned URL to that has a 30 minute
983
+ * expiration.</p>
984
+ */
985
+ AuxiliaryDataLocation?: TerminologyDataLocation;
830
986
  }
831
987
  export declare namespace ImportTerminologyResponse {
832
988
  /**
@@ -974,7 +1130,7 @@ export interface ListTextTranslationJobsResponse {
974
1130
  */
975
1131
  TextTranslationJobPropertiesList?: TextTranslationJobProperties[];
976
1132
  /**
977
- * <p>The token to use to retreive the next page of results. This value is <code>null</code>
1133
+ * <p>The token to use to retrieve the next page of results. This value is <code>null</code>
978
1134
  * when there are no more results to return.</p>
979
1135
  */
980
1136
  NextToken?: string;
@@ -1002,7 +1158,7 @@ export interface StartTextTranslationJobRequest {
1002
1158
  OutputDataConfig: OutputDataConfig | undefined;
1003
1159
  /**
1004
1160
  * <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>
1161
+ * that grants Amazon Translate read access to your input data. For more information, see <a>identity-and-access-management</a>.</p>
1006
1162
  */
1007
1163
  DataAccessRoleArn: string | undefined;
1008
1164
  /**
@@ -1016,14 +1172,24 @@ export interface StartTextTranslationJobRequest {
1016
1172
  */
1017
1173
  TargetLanguageCodes: string[] | undefined;
1018
1174
  /**
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>
1175
+ * <p>The name of a custom terminology resource to add to the translation job. This resource
1176
+ * lists examples source terms and the desired translation for each term.</p>
1177
+ * <p>This parameter accepts only one custom terminology resource.</p>
1178
+ * <p>For a list of available custom terminology resources, use the <a>ListTerminologies</a> operation.</p>
1179
+ * <p>For more information, see <a>how-custom-terminology</a>.</p>
1021
1180
  */
1022
1181
  TerminologyNames?: string[];
1023
1182
  /**
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>
1183
+ * <p>The name of a parallel data resource to add to the translation job. This resource consists
1184
+ * of examples that show how you want segments of text to be translated. When you add parallel
1185
+ * data to a translation job, you create an <i>Active Custom Translation</i> job. </p>
1186
+ * <p>This parameter accepts only one parallel data resource.</p>
1187
+ * <note>
1188
+ * <p>Active Custom Translation jobs are priced at a higher rate than other jobs that don't
1189
+ * use parallel data. For more information, see <a href="http://aws.amazon.com/translate/pricing/">Amazon Translate pricing</a>.</p>
1190
+ * </note>
1191
+ * <p>For a list of available parallel data resources, use the <a>ListParallelData</a> operation.</p>
1192
+ * <p>For more information, see <a>customizing-translations-parallel-data</a>.</p>
1027
1193
  */
1028
1194
  ParallelDataNames?: string[];
1029
1195
  /**
@@ -1031,6 +1197,11 @@ export interface StartTextTranslationJobRequest {
1031
1197
  * SDK.</p>
1032
1198
  */
1033
1199
  ClientToken?: string;
1200
+ /**
1201
+ * <p>Settings to configure your translation output, including the option to mask profane words
1202
+ * and phrases.</p>
1203
+ */
1204
+ Settings?: TranslationSettings;
1034
1205
  }
1035
1206
  export declare namespace StartTextTranslationJobRequest {
1036
1207
  /**
@@ -1218,6 +1389,11 @@ export interface TranslateTextRequest {
1218
1389
  * language supported by Amazon Translate.</p>
1219
1390
  */
1220
1391
  TargetLanguageCode: string | undefined;
1392
+ /**
1393
+ * <p>Settings to configure your translation output, including the option to mask profane words
1394
+ * and phrases.</p>
1395
+ */
1396
+ Settings?: TranslationSettings;
1221
1397
  }
1222
1398
  export declare namespace TranslateTextRequest {
1223
1399
  /**
@@ -1243,6 +1419,10 @@ export interface TranslateTextResponse {
1243
1419
  * translated text response.</p>
1244
1420
  */
1245
1421
  AppliedTerminologies?: AppliedTerminology[];
1422
+ /**
1423
+ * <p>Settings that configure the translation output.</p>
1424
+ */
1425
+ AppliedSettings?: TranslationSettings;
1246
1426
  }
1247
1427
  export declare namespace TranslateTextResponse {
1248
1428
  /**
@@ -16,6 +16,8 @@ export declare const getRuntimeConfig: (config: TranslateClientConfig) => {
16
16
  retryMode: string | import("@aws-sdk/types").Provider<string>;
17
17
  sha256: import("@aws-sdk/types").HashConstructor;
18
18
  streamCollector: import("@aws-sdk/types").StreamCollector;
19
+ useDualstackEndpoint: boolean | import("@aws-sdk/types").Provider<boolean>;
20
+ useFipsEndpoint: boolean | import("@aws-sdk/types").Provider<boolean>;
19
21
  utf8Decoder: import("@aws-sdk/types").Decoder;
20
22
  utf8Encoder: import("@aws-sdk/types").Encoder;
21
23
  apiVersion: string;
@@ -16,6 +16,8 @@ export declare const getRuntimeConfig: (config: TranslateClientConfig) => {
16
16
  retryMode: string | import("@aws-sdk/types").Provider<string>;
17
17
  sha256: import("@aws-sdk/types").HashConstructor;
18
18
  streamCollector: import("@aws-sdk/types").StreamCollector;
19
+ useDualstackEndpoint: boolean | import("@aws-sdk/types").Provider<boolean>;
20
+ useFipsEndpoint: boolean | import("@aws-sdk/types").Provider<boolean>;
19
21
  utf8Decoder: import("@aws-sdk/types").Decoder;
20
22
  utf8Encoder: import("@aws-sdk/types").Encoder;
21
23
  apiVersion: string;
@@ -18,6 +18,8 @@ export declare const getRuntimeConfig: (config: TranslateClientConfig) => {
18
18
  maxAttempts: number | import("@aws-sdk/types").Provider<number>;
19
19
  retryMode: string | import("@aws-sdk/types").Provider<string>;
20
20
  logger: import("@aws-sdk/types").Logger;
21
+ useDualstackEndpoint: boolean | import("@aws-sdk/types").Provider<boolean>;
22
+ useFipsEndpoint: boolean | import("@aws-sdk/types").Provider<boolean>;
21
23
  serviceId: string;
22
24
  region: string | import("@aws-sdk/types").Provider<string> | import("@aws-sdk/types").Provider<any>;
23
25
  credentialDefaultProvider: (input: any) => import("@aws-sdk/types").Provider<import("@aws-sdk/types").Credentials>;
@@ -52,6 +52,10 @@ export interface ClientDefaults extends Partial<__SmithyResolvedConfiguration<__
52
52
 
53
53
  logger?: __Logger;
54
54
 
55
+ useDualstackEndpoint?: boolean | __Provider<boolean>;
56
+
57
+ useFipsEndpoint?: boolean | __Provider<boolean>;
58
+
55
59
  serviceId?: string;
56
60
 
57
61
  region?: string | __Provider<string>;
@@ -235,11 +235,25 @@ export declare enum JobStatus {
235
235
  export interface OutputDataConfig {
236
236
 
237
237
  S3Uri: string | undefined;
238
+
239
+ EncryptionKey?: EncryptionKey;
238
240
  }
239
241
  export declare namespace OutputDataConfig {
240
242
 
241
243
  const filterSensitiveLog: (obj: OutputDataConfig) => any;
242
244
  }
245
+ export declare enum Profanity {
246
+ MASK = "MASK"
247
+ }
248
+
249
+ export interface TranslationSettings {
250
+
251
+ Profanity?: Profanity | string;
252
+ }
253
+ export declare namespace TranslationSettings {
254
+
255
+ const filterSensitiveLog: (obj: TranslationSettings) => any;
256
+ }
243
257
 
244
258
  export interface TextTranslationJobProperties {
245
259
 
@@ -270,6 +284,8 @@ export interface TextTranslationJobProperties {
270
284
  OutputDataConfig?: OutputDataConfig;
271
285
 
272
286
  DataAccessRoleArn?: string;
287
+
288
+ Settings?: TranslationSettings;
273
289
  }
274
290
  export declare namespace TextTranslationJobProperties {
275
291
 
@@ -359,13 +375,14 @@ export declare namespace GetParallelDataResponse {
359
375
  }
360
376
  export declare enum TerminologyDataFormat {
361
377
  CSV = "CSV",
362
- TMX = "TMX"
378
+ TMX = "TMX",
379
+ TSV = "TSV"
363
380
  }
364
381
  export interface GetTerminologyRequest {
365
382
 
366
383
  Name: string | undefined;
367
384
 
368
- TerminologyDataFormat: TerminologyDataFormat | string | undefined;
385
+ TerminologyDataFormat?: TerminologyDataFormat | string;
369
386
  }
370
387
  export declare namespace GetTerminologyRequest {
371
388
 
@@ -382,6 +399,10 @@ export declare namespace TerminologyDataLocation {
382
399
 
383
400
  const filterSensitiveLog: (obj: TerminologyDataLocation) => any;
384
401
  }
402
+ export declare enum Directionality {
403
+ MULTI = "MULTI",
404
+ UNI = "UNI"
405
+ }
385
406
 
386
407
  export interface TerminologyProperties {
387
408
 
@@ -404,6 +425,14 @@ export interface TerminologyProperties {
404
425
  CreatedAt?: Date;
405
426
 
406
427
  LastUpdatedAt?: Date;
428
+
429
+ Directionality?: Directionality | string;
430
+
431
+ Message?: string;
432
+
433
+ SkippedTermCount?: number;
434
+
435
+ Format?: TerminologyDataFormat | string;
407
436
  }
408
437
  export declare namespace TerminologyProperties {
409
438
 
@@ -414,6 +443,8 @@ export interface GetTerminologyResponse {
414
443
  TerminologyProperties?: TerminologyProperties;
415
444
 
416
445
  TerminologyDataLocation?: TerminologyDataLocation;
446
+
447
+ AuxiliaryDataLocation?: TerminologyDataLocation;
417
448
  }
418
449
  export declare namespace GetTerminologyResponse {
419
450
 
@@ -428,6 +459,8 @@ export interface TerminologyData {
428
459
  File: Uint8Array | undefined;
429
460
 
430
461
  Format: TerminologyDataFormat | string | undefined;
462
+
463
+ Directionality?: Directionality | string;
431
464
  }
432
465
  export declare namespace TerminologyData {
433
466
 
@@ -452,6 +485,8 @@ export declare namespace ImportTerminologyRequest {
452
485
  export interface ImportTerminologyResponse {
453
486
 
454
487
  TerminologyProperties?: TerminologyProperties;
488
+
489
+ AuxiliaryDataLocation?: TerminologyDataLocation;
455
490
  }
456
491
  export declare namespace ImportTerminologyResponse {
457
492
 
@@ -563,6 +598,8 @@ export interface StartTextTranslationJobRequest {
563
598
  ParallelDataNames?: string[];
564
599
 
565
600
  ClientToken?: string;
601
+
602
+ Settings?: TranslationSettings;
566
603
  }
567
604
  export declare namespace StartTextTranslationJobRequest {
568
605
 
@@ -651,6 +688,8 @@ export interface TranslateTextRequest {
651
688
  SourceLanguageCode: string | undefined;
652
689
 
653
690
  TargetLanguageCode: string | undefined;
691
+
692
+ Settings?: TranslationSettings;
654
693
  }
655
694
  export declare namespace TranslateTextRequest {
656
695
 
@@ -665,6 +704,8 @@ export interface TranslateTextResponse {
665
704
  TargetLanguageCode: string | undefined;
666
705
 
667
706
  AppliedTerminologies?: AppliedTerminology[];
707
+
708
+ AppliedSettings?: TranslationSettings;
668
709
  }
669
710
  export declare namespace TranslateTextResponse {
670
711
 
@@ -14,6 +14,8 @@ export declare const getRuntimeConfig: (config: TranslateClientConfig) => {
14
14
  retryMode: string | import("@aws-sdk/types").Provider<string>;
15
15
  sha256: import("@aws-sdk/types").HashConstructor;
16
16
  streamCollector: import("@aws-sdk/types").StreamCollector;
17
+ useDualstackEndpoint: boolean | import("@aws-sdk/types").Provider<boolean>;
18
+ useFipsEndpoint: boolean | import("@aws-sdk/types").Provider<boolean>;
17
19
  utf8Decoder: import("@aws-sdk/types").Decoder;
18
20
  utf8Encoder: import("@aws-sdk/types").Encoder;
19
21
  apiVersion: string;
@@ -14,6 +14,8 @@ export declare const getRuntimeConfig: (config: TranslateClientConfig) => {
14
14
  retryMode: string | import("@aws-sdk/types").Provider<string>;
15
15
  sha256: import("@aws-sdk/types").HashConstructor;
16
16
  streamCollector: import("@aws-sdk/types").StreamCollector;
17
+ useDualstackEndpoint: boolean | import("@aws-sdk/types").Provider<boolean>;
18
+ useFipsEndpoint: boolean | import("@aws-sdk/types").Provider<boolean>;
17
19
  utf8Decoder: import("@aws-sdk/types").Decoder;
18
20
  utf8Encoder: import("@aws-sdk/types").Encoder;
19
21
  apiVersion: string;
@@ -16,6 +16,8 @@ export declare const getRuntimeConfig: (config: TranslateClientConfig) => {
16
16
  maxAttempts: number | import("@aws-sdk/types").Provider<number>;
17
17
  retryMode: string | import("@aws-sdk/types").Provider<string>;
18
18
  logger: import("@aws-sdk/types").Logger;
19
+ useDualstackEndpoint: boolean | import("@aws-sdk/types").Provider<boolean>;
20
+ useFipsEndpoint: boolean | import("@aws-sdk/types").Provider<boolean>;
19
21
  serviceId: string;
20
22
  region: string | import("@aws-sdk/types").Provider<string> | import("@aws-sdk/types").Provider<any>;
21
23
  credentialDefaultProvider: (input: any) => import("@aws-sdk/types").Provider<import("@aws-sdk/types").Credentials>;
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.39.0",
4
+ "version": "3.43.0",
5
5
  "scripts": {
6
6
  "build": "yarn build:cjs && yarn build:es && yarn build:types",
7
7
  "build:cjs": "tsc -p tsconfig.json",
@@ -21,32 +21,32 @@
21
21
  "dependencies": {
22
22
  "@aws-crypto/sha256-browser": "2.0.0",
23
23
  "@aws-crypto/sha256-js": "2.0.0",
24
- "@aws-sdk/client-sts": "3.39.0",
25
- "@aws-sdk/config-resolver": "3.39.0",
26
- "@aws-sdk/credential-provider-node": "3.39.0",
27
- "@aws-sdk/fetch-http-handler": "3.38.0",
28
- "@aws-sdk/hash-node": "3.38.0",
29
- "@aws-sdk/invalid-dependency": "3.38.0",
30
- "@aws-sdk/middleware-content-length": "3.38.0",
31
- "@aws-sdk/middleware-host-header": "3.38.0",
32
- "@aws-sdk/middleware-logger": "3.38.0",
33
- "@aws-sdk/middleware-retry": "3.39.0",
34
- "@aws-sdk/middleware-serde": "3.38.0",
35
- "@aws-sdk/middleware-signing": "3.39.0",
36
- "@aws-sdk/middleware-stack": "3.38.0",
37
- "@aws-sdk/middleware-user-agent": "3.38.0",
38
- "@aws-sdk/node-config-provider": "3.39.0",
39
- "@aws-sdk/node-http-handler": "3.38.0",
40
- "@aws-sdk/protocol-http": "3.38.0",
41
- "@aws-sdk/smithy-client": "3.38.0",
42
- "@aws-sdk/types": "3.38.0",
43
- "@aws-sdk/url-parser": "3.38.0",
24
+ "@aws-sdk/client-sts": "3.43.0",
25
+ "@aws-sdk/config-resolver": "3.40.0",
26
+ "@aws-sdk/credential-provider-node": "3.41.0",
27
+ "@aws-sdk/fetch-http-handler": "3.40.0",
28
+ "@aws-sdk/hash-node": "3.40.0",
29
+ "@aws-sdk/invalid-dependency": "3.40.0",
30
+ "@aws-sdk/middleware-content-length": "3.40.0",
31
+ "@aws-sdk/middleware-host-header": "3.40.0",
32
+ "@aws-sdk/middleware-logger": "3.40.0",
33
+ "@aws-sdk/middleware-retry": "3.40.0",
34
+ "@aws-sdk/middleware-serde": "3.40.0",
35
+ "@aws-sdk/middleware-signing": "3.40.0",
36
+ "@aws-sdk/middleware-stack": "3.40.0",
37
+ "@aws-sdk/middleware-user-agent": "3.40.0",
38
+ "@aws-sdk/node-config-provider": "3.40.0",
39
+ "@aws-sdk/node-http-handler": "3.40.0",
40
+ "@aws-sdk/protocol-http": "3.40.0",
41
+ "@aws-sdk/smithy-client": "3.41.0",
42
+ "@aws-sdk/types": "3.40.0",
43
+ "@aws-sdk/url-parser": "3.40.0",
44
44
  "@aws-sdk/util-base64-browser": "3.37.0",
45
45
  "@aws-sdk/util-base64-node": "3.37.0",
46
46
  "@aws-sdk/util-body-length-browser": "3.37.0",
47
47
  "@aws-sdk/util-body-length-node": "3.37.0",
48
- "@aws-sdk/util-user-agent-browser": "3.38.0",
49
- "@aws-sdk/util-user-agent-node": "3.39.0",
48
+ "@aws-sdk/util-user-agent-browser": "3.40.0",
49
+ "@aws-sdk/util-user-agent-node": "3.40.0",
50
50
  "@aws-sdk/util-utf8-browser": "3.37.0",
51
51
  "@aws-sdk/util-utf8-node": "3.37.0",
52
52
  "tslib": "^2.3.0",