@aws-sdk/client-translate 3.42.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.
- package/CHANGELOG.md +11 -0
- package/dist-cjs/models/models_0.js +12 -2
- package/dist-cjs/protocols/Aws_json1_1.js +20 -0
- package/dist-es/models/models_0.js +8 -0
- package/dist-es/protocols/Aws_json1_1.js +19 -3
- package/dist-types/models/models_0.d.ts +75 -10
- package/dist-types/ts3.4/models/models_0.d.ts +20 -0
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,17 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
# [3.43.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.42.0...v3.43.0) (2021-11-29)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Features
|
|
10
|
+
|
|
11
|
+
* **clients:** update clients as of 11/28/2021 ([#3072](https://github.com/aws/aws-sdk-js-v3/issues/3072)) ([2ad1622](https://github.com/aws/aws-sdk-js-v3/commit/2ad1622ba8586b926fe508055211803bb29e3976))
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
6
17
|
# [3.42.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.41.0...v3.42.0) (2021-11-19)
|
|
7
18
|
|
|
8
19
|
**Note:** Version bump only for package @aws-sdk/client-translate
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
4
|
-
exports.UpdateParallelDataResponse = exports.UpdateParallelDataRequest = exports.TranslateTextResponse = exports.TranslateTextRequest = exports.TextSizeLimitExceededException = exports.ServiceUnavailableException = exports.DetectedLanguageLowConfidenceException = exports.StopTextTranslationJobResponse = exports.StopTextTranslationJobRequest = exports.UnsupportedLanguagePairException = exports.StartTextTranslationJobResponse = void 0;
|
|
3
|
+
exports.ListTextTranslationJobsRequest = exports.TextTranslationJobFilter = exports.InvalidFilterException = exports.ListTerminologiesResponse = exports.ListTerminologiesRequest = exports.ListParallelDataResponse = exports.ListParallelDataRequest = exports.ImportTerminologyResponse = exports.ImportTerminologyRequest = exports.TerminologyData = exports.MergeStrategy = exports.GetTerminologyResponse = exports.TerminologyProperties = exports.Directionality = exports.TerminologyDataLocation = exports.GetTerminologyRequest = exports.TerminologyDataFormat = exports.GetParallelDataResponse = exports.ParallelDataProperties = exports.ParallelDataDataLocation = exports.GetParallelDataRequest = exports.DescribeTextTranslationJobResponse = exports.TextTranslationJobProperties = exports.TranslationSettings = exports.Profanity = exports.OutputDataConfig = exports.JobStatus = exports.JobDetails = exports.InputDataConfig = exports.DescribeTextTranslationJobRequest = exports.DeleteTerminologyRequest = exports.ResourceNotFoundException = exports.DeleteParallelDataResponse = exports.DeleteParallelDataRequest = exports.ConcurrentModificationException = exports.TooManyRequestsException = exports.LimitExceededException = exports.InvalidRequestException = exports.InvalidParameterValueException = exports.InternalServerException = exports.CreateParallelDataResponse = exports.ParallelDataStatus = exports.CreateParallelDataRequest = exports.ParallelDataConfig = exports.ParallelDataFormat = exports.EncryptionKey = exports.EncryptionKeyType = exports.ConflictException = exports.AppliedTerminology = exports.Term = void 0;
|
|
4
|
+
exports.UpdateParallelDataResponse = exports.UpdateParallelDataRequest = exports.TranslateTextResponse = exports.TranslateTextRequest = exports.TextSizeLimitExceededException = exports.ServiceUnavailableException = exports.DetectedLanguageLowConfidenceException = exports.StopTextTranslationJobResponse = exports.StopTextTranslationJobRequest = exports.UnsupportedLanguagePairException = exports.StartTextTranslationJobResponse = exports.StartTextTranslationJobRequest = exports.ListTextTranslationJobsResponse = void 0;
|
|
5
5
|
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
6
6
|
var Term;
|
|
7
7
|
(function (Term) {
|
|
@@ -157,6 +157,16 @@ var OutputDataConfig;
|
|
|
157
157
|
...obj,
|
|
158
158
|
});
|
|
159
159
|
})(OutputDataConfig = exports.OutputDataConfig || (exports.OutputDataConfig = {}));
|
|
160
|
+
var Profanity;
|
|
161
|
+
(function (Profanity) {
|
|
162
|
+
Profanity["MASK"] = "MASK";
|
|
163
|
+
})(Profanity = exports.Profanity || (exports.Profanity = {}));
|
|
164
|
+
var TranslationSettings;
|
|
165
|
+
(function (TranslationSettings) {
|
|
166
|
+
TranslationSettings.filterSensitiveLog = (obj) => ({
|
|
167
|
+
...obj,
|
|
168
|
+
});
|
|
169
|
+
})(TranslationSettings = exports.TranslationSettings || (exports.TranslationSettings = {}));
|
|
160
170
|
var TextTranslationJobProperties;
|
|
161
171
|
(function (TextTranslationJobProperties) {
|
|
162
172
|
TextTranslationJobProperties.filterSensitiveLog = (obj) => ({
|
|
@@ -1476,6 +1476,8 @@ const serializeAws_json1_1StartTextTranslationJobRequest = (input, context) => {
|
|
|
1476
1476
|
input.ParallelDataNames !== null && {
|
|
1477
1477
|
ParallelDataNames: serializeAws_json1_1ResourceNameList(input.ParallelDataNames, context),
|
|
1478
1478
|
}),
|
|
1479
|
+
...(input.Settings !== undefined &&
|
|
1480
|
+
input.Settings !== null && { Settings: serializeAws_json1_1TranslationSettings(input.Settings, context) }),
|
|
1479
1481
|
...(input.SourceLanguageCode !== undefined &&
|
|
1480
1482
|
input.SourceLanguageCode !== null && { SourceLanguageCode: input.SourceLanguageCode }),
|
|
1481
1483
|
...(input.TargetLanguageCodes !== undefined &&
|
|
@@ -1527,6 +1529,8 @@ const serializeAws_json1_1TextTranslationJobFilter = (input, context) => {
|
|
|
1527
1529
|
};
|
|
1528
1530
|
const serializeAws_json1_1TranslateTextRequest = (input, context) => {
|
|
1529
1531
|
return {
|
|
1532
|
+
...(input.Settings !== undefined &&
|
|
1533
|
+
input.Settings !== null && { Settings: serializeAws_json1_1TranslationSettings(input.Settings, context) }),
|
|
1530
1534
|
...(input.SourceLanguageCode !== undefined &&
|
|
1531
1535
|
input.SourceLanguageCode !== null && { SourceLanguageCode: input.SourceLanguageCode }),
|
|
1532
1536
|
...(input.TargetLanguageCode !== undefined &&
|
|
@@ -1538,6 +1542,11 @@ const serializeAws_json1_1TranslateTextRequest = (input, context) => {
|
|
|
1538
1542
|
...(input.Text !== undefined && input.Text !== null && { Text: input.Text }),
|
|
1539
1543
|
};
|
|
1540
1544
|
};
|
|
1545
|
+
const serializeAws_json1_1TranslationSettings = (input, context) => {
|
|
1546
|
+
return {
|
|
1547
|
+
...(input.Profanity !== undefined && input.Profanity !== null && { Profanity: input.Profanity }),
|
|
1548
|
+
};
|
|
1549
|
+
};
|
|
1541
1550
|
const serializeAws_json1_1UpdateParallelDataRequest = (input, context) => {
|
|
1542
1551
|
var _a;
|
|
1543
1552
|
return {
|
|
@@ -1911,6 +1920,9 @@ const deserializeAws_json1_1TextTranslationJobProperties = (output, context) =>
|
|
|
1911
1920
|
ParallelDataNames: output.ParallelDataNames !== undefined && output.ParallelDataNames !== null
|
|
1912
1921
|
? deserializeAws_json1_1ResourceNameList(output.ParallelDataNames, context)
|
|
1913
1922
|
: undefined,
|
|
1923
|
+
Settings: output.Settings !== undefined && output.Settings !== null
|
|
1924
|
+
? deserializeAws_json1_1TranslationSettings(output.Settings, context)
|
|
1925
|
+
: undefined,
|
|
1914
1926
|
SourceLanguageCode: smithy_client_1.expectString(output.SourceLanguageCode),
|
|
1915
1927
|
SubmittedTime: output.SubmittedTime !== undefined && output.SubmittedTime !== null
|
|
1916
1928
|
? smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(output.SubmittedTime)))
|
|
@@ -1940,6 +1952,9 @@ const deserializeAws_json1_1TooManyRequestsException = (output, context) => {
|
|
|
1940
1952
|
};
|
|
1941
1953
|
const deserializeAws_json1_1TranslateTextResponse = (output, context) => {
|
|
1942
1954
|
return {
|
|
1955
|
+
AppliedSettings: output.AppliedSettings !== undefined && output.AppliedSettings !== null
|
|
1956
|
+
? deserializeAws_json1_1TranslationSettings(output.AppliedSettings, context)
|
|
1957
|
+
: undefined,
|
|
1943
1958
|
AppliedTerminologies: output.AppliedTerminologies !== undefined && output.AppliedTerminologies !== null
|
|
1944
1959
|
? deserializeAws_json1_1AppliedTerminologyList(output.AppliedTerminologies, context)
|
|
1945
1960
|
: undefined,
|
|
@@ -1948,6 +1963,11 @@ const deserializeAws_json1_1TranslateTextResponse = (output, context) => {
|
|
|
1948
1963
|
TranslatedText: smithy_client_1.expectString(output.TranslatedText),
|
|
1949
1964
|
};
|
|
1950
1965
|
};
|
|
1966
|
+
const deserializeAws_json1_1TranslationSettings = (output, context) => {
|
|
1967
|
+
return {
|
|
1968
|
+
Profanity: smithy_client_1.expectString(output.Profanity),
|
|
1969
|
+
};
|
|
1970
|
+
};
|
|
1951
1971
|
const deserializeAws_json1_1UnsupportedLanguagePairException = (output, context) => {
|
|
1952
1972
|
return {
|
|
1953
1973
|
Message: smithy_client_1.expectString(output.Message),
|
|
@@ -112,6 +112,14 @@ export var OutputDataConfig;
|
|
|
112
112
|
(function (OutputDataConfig) {
|
|
113
113
|
OutputDataConfig.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
114
114
|
})(OutputDataConfig || (OutputDataConfig = {}));
|
|
115
|
+
export var Profanity;
|
|
116
|
+
(function (Profanity) {
|
|
117
|
+
Profanity["MASK"] = "MASK";
|
|
118
|
+
})(Profanity || (Profanity = {}));
|
|
119
|
+
export var TranslationSettings;
|
|
120
|
+
(function (TranslationSettings) {
|
|
121
|
+
TranslationSettings.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
122
|
+
})(TranslationSettings || (TranslationSettings = {}));
|
|
115
123
|
export var TextTranslationJobProperties;
|
|
116
124
|
(function (TextTranslationJobProperties) {
|
|
117
125
|
TextTranslationJobProperties.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
@@ -1529,7 +1529,7 @@ var serializeAws_json1_1ResourceNameList = function (input, context) {
|
|
|
1529
1529
|
};
|
|
1530
1530
|
var serializeAws_json1_1StartTextTranslationJobRequest = function (input, context) {
|
|
1531
1531
|
var _a;
|
|
1532
|
-
return __assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({ ClientToken: (_a = input.ClientToken) !== null && _a !== void 0 ? _a : generateIdempotencyToken() }, (input.DataAccessRoleArn !== undefined &&
|
|
1532
|
+
return __assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({ ClientToken: (_a = input.ClientToken) !== null && _a !== void 0 ? _a : generateIdempotencyToken() }, (input.DataAccessRoleArn !== undefined &&
|
|
1533
1533
|
input.DataAccessRoleArn !== null && { DataAccessRoleArn: input.DataAccessRoleArn })), (input.InputDataConfig !== undefined &&
|
|
1534
1534
|
input.InputDataConfig !== null && {
|
|
1535
1535
|
InputDataConfig: serializeAws_json1_1InputDataConfig(input.InputDataConfig, context),
|
|
@@ -1539,7 +1539,8 @@ var serializeAws_json1_1StartTextTranslationJobRequest = function (input, contex
|
|
|
1539
1539
|
})), (input.ParallelDataNames !== undefined &&
|
|
1540
1540
|
input.ParallelDataNames !== null && {
|
|
1541
1541
|
ParallelDataNames: serializeAws_json1_1ResourceNameList(input.ParallelDataNames, context),
|
|
1542
|
-
})), (input.
|
|
1542
|
+
})), (input.Settings !== undefined &&
|
|
1543
|
+
input.Settings !== null && { Settings: serializeAws_json1_1TranslationSettings(input.Settings, context) })), (input.SourceLanguageCode !== undefined &&
|
|
1543
1544
|
input.SourceLanguageCode !== null && { SourceLanguageCode: input.SourceLanguageCode })), (input.TargetLanguageCodes !== undefined &&
|
|
1544
1545
|
input.TargetLanguageCodes !== null && {
|
|
1545
1546
|
TargetLanguageCodes: serializeAws_json1_1TargetLanguageCodeStringList(input.TargetLanguageCodes, context),
|
|
@@ -1575,13 +1576,17 @@ var serializeAws_json1_1TextTranslationJobFilter = function (input, context) {
|
|
|
1575
1576
|
}));
|
|
1576
1577
|
};
|
|
1577
1578
|
var serializeAws_json1_1TranslateTextRequest = function (input, context) {
|
|
1578
|
-
return __assign(__assign(__assign(__assign({}, (input.
|
|
1579
|
+
return __assign(__assign(__assign(__assign(__assign({}, (input.Settings !== undefined &&
|
|
1580
|
+
input.Settings !== null && { Settings: serializeAws_json1_1TranslationSettings(input.Settings, context) })), (input.SourceLanguageCode !== undefined &&
|
|
1579
1581
|
input.SourceLanguageCode !== null && { SourceLanguageCode: input.SourceLanguageCode })), (input.TargetLanguageCode !== undefined &&
|
|
1580
1582
|
input.TargetLanguageCode !== null && { TargetLanguageCode: input.TargetLanguageCode })), (input.TerminologyNames !== undefined &&
|
|
1581
1583
|
input.TerminologyNames !== null && {
|
|
1582
1584
|
TerminologyNames: serializeAws_json1_1ResourceNameList(input.TerminologyNames, context),
|
|
1583
1585
|
})), (input.Text !== undefined && input.Text !== null && { Text: input.Text }));
|
|
1584
1586
|
};
|
|
1587
|
+
var serializeAws_json1_1TranslationSettings = function (input, context) {
|
|
1588
|
+
return __assign({}, (input.Profanity !== undefined && input.Profanity !== null && { Profanity: input.Profanity }));
|
|
1589
|
+
};
|
|
1585
1590
|
var serializeAws_json1_1UpdateParallelDataRequest = function (input, context) {
|
|
1586
1591
|
var _a;
|
|
1587
1592
|
return __assign(__assign(__assign({ ClientToken: (_a = input.ClientToken) !== null && _a !== void 0 ? _a : generateIdempotencyToken() }, (input.Description !== undefined && input.Description !== null && { Description: input.Description })), (input.Name !== undefined && input.Name !== null && { Name: input.Name })), (input.ParallelDataConfig !== undefined &&
|
|
@@ -1950,6 +1955,9 @@ var deserializeAws_json1_1TextTranslationJobProperties = function (output, conte
|
|
|
1950
1955
|
ParallelDataNames: output.ParallelDataNames !== undefined && output.ParallelDataNames !== null
|
|
1951
1956
|
? deserializeAws_json1_1ResourceNameList(output.ParallelDataNames, context)
|
|
1952
1957
|
: undefined,
|
|
1958
|
+
Settings: output.Settings !== undefined && output.Settings !== null
|
|
1959
|
+
? deserializeAws_json1_1TranslationSettings(output.Settings, context)
|
|
1960
|
+
: undefined,
|
|
1953
1961
|
SourceLanguageCode: __expectString(output.SourceLanguageCode),
|
|
1954
1962
|
SubmittedTime: output.SubmittedTime !== undefined && output.SubmittedTime !== null
|
|
1955
1963
|
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.SubmittedTime)))
|
|
@@ -1979,6 +1987,9 @@ var deserializeAws_json1_1TooManyRequestsException = function (output, context)
|
|
|
1979
1987
|
};
|
|
1980
1988
|
var deserializeAws_json1_1TranslateTextResponse = function (output, context) {
|
|
1981
1989
|
return {
|
|
1990
|
+
AppliedSettings: output.AppliedSettings !== undefined && output.AppliedSettings !== null
|
|
1991
|
+
? deserializeAws_json1_1TranslationSettings(output.AppliedSettings, context)
|
|
1992
|
+
: undefined,
|
|
1982
1993
|
AppliedTerminologies: output.AppliedTerminologies !== undefined && output.AppliedTerminologies !== null
|
|
1983
1994
|
? deserializeAws_json1_1AppliedTerminologyList(output.AppliedTerminologies, context)
|
|
1984
1995
|
: undefined,
|
|
@@ -1987,6 +1998,11 @@ var deserializeAws_json1_1TranslateTextResponse = function (output, context) {
|
|
|
1987
1998
|
TranslatedText: __expectString(output.TranslatedText),
|
|
1988
1999
|
};
|
|
1989
2000
|
};
|
|
2001
|
+
var deserializeAws_json1_1TranslationSettings = function (output, context) {
|
|
2002
|
+
return {
|
|
2003
|
+
Profanity: __expectString(output.Profanity),
|
|
2004
|
+
};
|
|
2005
|
+
};
|
|
1990
2006
|
var deserializeAws_json1_1UnsupportedLanguagePairException = function (output, context) {
|
|
1991
2007
|
return {
|
|
1992
2008
|
Message: __expectString(output.Message),
|
|
@@ -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
|
|
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
|
|
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
|
}
|
|
@@ -431,6 +430,31 @@ export declare namespace OutputDataConfig {
|
|
|
431
430
|
*/
|
|
432
431
|
const filterSensitiveLog: (obj: OutputDataConfig) => any;
|
|
433
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
|
+
}
|
|
434
458
|
/**
|
|
435
459
|
* <p>Provides information about a translation job.</p>
|
|
436
460
|
*/
|
|
@@ -498,6 +522,10 @@ export interface TextTranslationJobProperties {
|
|
|
498
522
|
* that granted Amazon Translate read access to the job's input data.</p>
|
|
499
523
|
*/
|
|
500
524
|
DataAccessRoleArn?: string;
|
|
525
|
+
/**
|
|
526
|
+
* <p>Settings that configure the translation output.</p>
|
|
527
|
+
*/
|
|
528
|
+
Settings?: TranslationSettings;
|
|
501
529
|
}
|
|
502
530
|
export declare namespace TextTranslationJobProperties {
|
|
503
531
|
/**
|
|
@@ -544,13 +572,13 @@ export interface ParallelDataDataLocation {
|
|
|
544
572
|
* presigned URL to that has a 30 minute expiration.</p>
|
|
545
573
|
*
|
|
546
574
|
* <important>
|
|
547
|
-
* <p>Amazon Translate doesn't scan
|
|
575
|
+
* <p>Amazon Translate doesn't scan all input files for the risk of CSV injection
|
|
548
576
|
* attacks. </p>
|
|
549
577
|
* <p>CSV injection occurs when a .csv or .tsv file is altered so that a record contains
|
|
550
578
|
* malicious code. The record begins with a special character, such as =, +, -, or @. When the
|
|
551
579
|
* file is opened in a spreadsheet program, the program might interpret the record as a formula
|
|
552
580
|
* and run the code within it.</p>
|
|
553
|
-
* <p>Before you download
|
|
581
|
+
* <p>Before you download an input file from Amazon S3, ensure that you recognize the file and trust its creator.</p>
|
|
554
582
|
* </important>
|
|
555
583
|
*/
|
|
556
584
|
Location: string | undefined;
|
|
@@ -658,13 +686,13 @@ export interface GetParallelDataResponse {
|
|
|
658
686
|
* minute expiration.</p>
|
|
659
687
|
*
|
|
660
688
|
* <important>
|
|
661
|
-
* <p>Amazon Translate doesn't scan
|
|
689
|
+
* <p>Amazon Translate doesn't scan all input files for the risk of CSV injection
|
|
662
690
|
* attacks. </p>
|
|
663
691
|
* <p>CSV injection occurs when a .csv or .tsv file is altered so that a record contains
|
|
664
692
|
* malicious code. The record begins with a special character, such as =, +, -, or @. When the
|
|
665
693
|
* file is opened in a spreadsheet program, the program might interpret the record as a formula
|
|
666
694
|
* and run the code within it.</p>
|
|
667
|
-
* <p>Before you download
|
|
695
|
+
* <p>Before you download an input file from Amazon S3, ensure that you recognize the file and trust its creator.</p>
|
|
668
696
|
* </important>
|
|
669
697
|
*/
|
|
670
698
|
DataLocation?: ParallelDataDataLocation;
|
|
@@ -724,7 +752,19 @@ export interface TerminologyDataLocation {
|
|
|
724
752
|
*/
|
|
725
753
|
RepositoryType: string | undefined;
|
|
726
754
|
/**
|
|
727
|
-
* <p>The location of the custom terminology
|
|
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>
|
|
728
768
|
*/
|
|
729
769
|
Location: string | undefined;
|
|
730
770
|
}
|
|
@@ -826,8 +866,19 @@ export interface GetTerminologyResponse {
|
|
|
826
866
|
*/
|
|
827
867
|
TerminologyProperties?: TerminologyProperties;
|
|
828
868
|
/**
|
|
829
|
-
* <p>The
|
|
830
|
-
*
|
|
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>
|
|
831
882
|
*/
|
|
832
883
|
TerminologyDataLocation?: TerminologyDataLocation;
|
|
833
884
|
/**
|
|
@@ -1146,6 +1197,11 @@ export interface StartTextTranslationJobRequest {
|
|
|
1146
1197
|
* SDK.</p>
|
|
1147
1198
|
*/
|
|
1148
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;
|
|
1149
1205
|
}
|
|
1150
1206
|
export declare namespace StartTextTranslationJobRequest {
|
|
1151
1207
|
/**
|
|
@@ -1333,6 +1389,11 @@ export interface TranslateTextRequest {
|
|
|
1333
1389
|
* language supported by Amazon Translate.</p>
|
|
1334
1390
|
*/
|
|
1335
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;
|
|
1336
1397
|
}
|
|
1337
1398
|
export declare namespace TranslateTextRequest {
|
|
1338
1399
|
/**
|
|
@@ -1358,6 +1419,10 @@ export interface TranslateTextResponse {
|
|
|
1358
1419
|
* translated text response.</p>
|
|
1359
1420
|
*/
|
|
1360
1421
|
AppliedTerminologies?: AppliedTerminology[];
|
|
1422
|
+
/**
|
|
1423
|
+
* <p>Settings that configure the translation output.</p>
|
|
1424
|
+
*/
|
|
1425
|
+
AppliedSettings?: TranslationSettings;
|
|
1361
1426
|
}
|
|
1362
1427
|
export declare namespace TranslateTextResponse {
|
|
1363
1428
|
/**
|
|
@@ -242,6 +242,18 @@ export declare namespace OutputDataConfig {
|
|
|
242
242
|
|
|
243
243
|
const filterSensitiveLog: (obj: OutputDataConfig) => any;
|
|
244
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
|
+
}
|
|
245
257
|
|
|
246
258
|
export interface TextTranslationJobProperties {
|
|
247
259
|
|
|
@@ -272,6 +284,8 @@ export interface TextTranslationJobProperties {
|
|
|
272
284
|
OutputDataConfig?: OutputDataConfig;
|
|
273
285
|
|
|
274
286
|
DataAccessRoleArn?: string;
|
|
287
|
+
|
|
288
|
+
Settings?: TranslationSettings;
|
|
275
289
|
}
|
|
276
290
|
export declare namespace TextTranslationJobProperties {
|
|
277
291
|
|
|
@@ -584,6 +598,8 @@ export interface StartTextTranslationJobRequest {
|
|
|
584
598
|
ParallelDataNames?: string[];
|
|
585
599
|
|
|
586
600
|
ClientToken?: string;
|
|
601
|
+
|
|
602
|
+
Settings?: TranslationSettings;
|
|
587
603
|
}
|
|
588
604
|
export declare namespace StartTextTranslationJobRequest {
|
|
589
605
|
|
|
@@ -672,6 +688,8 @@ export interface TranslateTextRequest {
|
|
|
672
688
|
SourceLanguageCode: string | undefined;
|
|
673
689
|
|
|
674
690
|
TargetLanguageCode: string | undefined;
|
|
691
|
+
|
|
692
|
+
Settings?: TranslationSettings;
|
|
675
693
|
}
|
|
676
694
|
export declare namespace TranslateTextRequest {
|
|
677
695
|
|
|
@@ -686,6 +704,8 @@ export interface TranslateTextResponse {
|
|
|
686
704
|
TargetLanguageCode: string | undefined;
|
|
687
705
|
|
|
688
706
|
AppliedTerminologies?: AppliedTerminology[];
|
|
707
|
+
|
|
708
|
+
AppliedSettings?: TranslationSettings;
|
|
689
709
|
}
|
|
690
710
|
export declare namespace TranslateTextResponse {
|
|
691
711
|
|
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.
|
|
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,7 +21,7 @@
|
|
|
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.
|
|
24
|
+
"@aws-sdk/client-sts": "3.43.0",
|
|
25
25
|
"@aws-sdk/config-resolver": "3.40.0",
|
|
26
26
|
"@aws-sdk/credential-provider-node": "3.41.0",
|
|
27
27
|
"@aws-sdk/fetch-http-handler": "3.40.0",
|