Skip to content

Commit cedcd3d

Browse files
author
AWS
committed
Amazon Translate Update: This release enables customers to use translation settings to mask profane words and phrases in their translation output.
1 parent c71139e commit cedcd3d

File tree

2 files changed

+42
-6
lines changed

2 files changed

+42
-6
lines changed
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"type": "feature",
3+
"category": "Amazon Translate",
4+
"contributor": "",
5+
"description": "This release enables customers to use translation settings to mask profane words and phrases in their translation output."
6+
}

services/translate/src/main/resources/codegen-resources/service-2.json

Lines changed: 36 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -423,11 +423,11 @@
423423
"members":{
424424
"Type":{
425425
"shape":"EncryptionKeyType",
426-
"documentation":"<p>The type of encryption key used by Amazon Translate to encrypt custom terminologies.</p>"
426+
"documentation":"<p>The type of encryption key used by Amazon Translate to encrypt this object.</p>"
427427
},
428428
"Id":{
429429
"shape":"EncryptionKeyID",
430-
"documentation":"<p>The Amazon Resource Name (ARN) of the encryption key being used to encrypt the custom terminology.</p>"
430+
"documentation":"<p>The Amazon Resource Name (ARN) of the encryption key being used to encrypt this object.</p>"
431431
}
432432
},
433433
"documentation":"<p>The encryption key used to encrypt this object.</p>"
@@ -461,7 +461,7 @@
461461
},
462462
"DataLocation":{
463463
"shape":"ParallelDataDataLocation",
464-
"documentation":"<p>The Amazon S3 location of the most recent parallel data input file that was successfully imported into Amazon Translate. The location is returned as a presigned URL that has a 30 minute expiration.</p> <important> <p>Amazon Translate doesn't scan parallel data input files for the risk of CSV injection attacks. </p> <p>CSV injection occurs when a .csv or .tsv file is altered so that a record contains malicious code. The record begins with a special character, such as =, +, -, or @. When the file is opened in a spreadsheet program, the program might interpret the record as a formula and run the code within it.</p> <p>Before you download a parallel data input file from Amazon S3, ensure that you recognize the file and trust its creator.</p> </important>"
464+
"documentation":"<p>The Amazon S3 location of the most recent parallel data input file that was successfully imported into Amazon Translate. The location is returned as a presigned URL that has a 30 minute expiration.</p> <important> <p>Amazon Translate doesn't scan all input files for the risk of CSV injection attacks. </p> <p>CSV injection occurs when a .csv or .tsv file is altered so that a record contains malicious code. The record begins with a special character, such as =, +, -, or @. When the file is opened in a spreadsheet program, the program might interpret the record as a formula and run the code within it.</p> <p>Before you download an input file from Amazon S3, ensure that you recognize the file and trust its creator.</p> </important>"
465465
},
466466
"AuxiliaryDataLocation":{
467467
"shape":"ParallelDataDataLocation",
@@ -496,7 +496,7 @@
496496
},
497497
"TerminologyDataLocation":{
498498
"shape":"TerminologyDataLocation",
499-
"documentation":"<p>The data location of the custom terminology being retrieved. The custom terminology file is returned in a presigned url that has a 30 minute expiration.</p>"
499+
"documentation":"<p>The Amazon S3 location of the most recent custom terminology input file that was successfully imported into Amazon Translate. The location is returned as a presigned URL that has a 30 minute expiration.</p> <important> <p>Amazon Translate doesn't scan all input files for the risk of CSV injection attacks. </p> <p>CSV injection occurs when a .csv or .tsv file is altered so that a record contains malicious code. The record begins with a special character, such as =, +, -, or @. When the file is opened in a spreadsheet program, the program might interpret the record as a formula and run the code within it.</p> <p>Before you download an input file from Amazon S3, ensure that you recognize the file and trust its creator.</p> </important>"
500500
},
501501
"AuxiliaryDataLocation":{
502502
"shape":"TerminologyDataLocation",
@@ -809,7 +809,7 @@
809809
},
810810
"Location":{
811811
"shape":"String",
812-
"documentation":"<p>The Amazon S3 location of the parallel data input file. The location is returned as a presigned URL to that has a 30 minute expiration.</p> <important> <p>Amazon Translate doesn't scan parallel data input files for the risk of CSV injection attacks. </p> <p>CSV injection occurs when a .csv or .tsv file is altered so that a record contains malicious code. The record begins with a special character, such as =, +, -, or @. When the file is opened in a spreadsheet program, the program might interpret the record as a formula and run the code within it.</p> <p>Before you download a parallel data input file from Amazon S3, ensure that you recognize the file and trust its creator.</p> </important>"
812+
"documentation":"<p>The Amazon S3 location of the parallel data input file. The location is returned as a presigned URL to that has a 30 minute expiration.</p> <important> <p>Amazon Translate doesn't scan all input files for the risk of CSV injection attacks. </p> <p>CSV injection occurs when a .csv or .tsv file is altered so that a record contains malicious code. The record begins with a special character, such as =, +, -, or @. When the file is opened in a spreadsheet program, the program might interpret the record as a formula and run the code within it.</p> <p>Before you download an input file from Amazon S3, ensure that you recognize the file and trust its creator.</p> </important>"
813813
}
814814
},
815815
"documentation":"<p>The location of the most recent parallel data input file that was successfully imported into Amazon Translate.</p>"
@@ -907,6 +907,10 @@
907907
"FAILED"
908908
]
909909
},
910+
"Profanity":{
911+
"type":"string",
912+
"enum":["MASK"]
913+
},
910914
"ResourceName":{
911915
"type":"string",
912916
"max":256,
@@ -986,6 +990,10 @@
986990
"shape":"ClientTokenString",
987991
"documentation":"<p>A unique identifier for the request. This token is auto-generated when using the Amazon Translate SDK.</p>",
988992
"idempotencyToken":true
993+
},
994+
"Settings":{
995+
"shape":"TranslationSettings",
996+
"documentation":"<p>Settings to configure your translation output, including the option to mask profane words and phrases.</p>"
989997
}
990998
}
991999
},
@@ -1102,7 +1110,7 @@
11021110
},
11031111
"Location":{
11041112
"shape":"String",
1105-
"documentation":"<p>The location of the custom terminology data.</p>"
1113+
"documentation":"<p>The Amazon S3 location of the most recent custom terminology input file that was successfully imported into Amazon Translate. The location is returned as a presigned URL that has a 30 minute expiration.</p> <important> <p>Amazon Translate doesn't scan all input files for the risk of CSV injection attacks. </p> <p>CSV injection occurs when a .csv or .tsv file is altered so that a record contains malicious code. The record begins with a special character, such as =, +, -, or @. When the file is opened in a spreadsheet program, the program might interpret the record as a formula and run the code within it.</p> <p>Before you download an input file from Amazon S3, ensure that you recognize the file and trust its creator.</p> </important>"
11061114
}
11071115
},
11081116
"documentation":"<p>The location of the custom terminology data.</p>"
@@ -1266,6 +1274,10 @@
12661274
"DataAccessRoleArn":{
12671275
"shape":"IamRoleArn",
12681276
"documentation":"<p>The Amazon Resource Name (ARN) of an AWS Identity Access and Management (IAM) role that granted Amazon Translate read access to the job's input data.</p>"
1277+
},
1278+
"Settings":{
1279+
"shape":"TranslationSettings",
1280+
"documentation":"<p>Settings that configure the translation output.</p>"
12691281
}
12701282
},
12711283
"documentation":"<p>Provides information about a translation job.</p>"
@@ -1306,6 +1318,10 @@
13061318
"TargetLanguageCode":{
13071319
"shape":"LanguageCodeString",
13081320
"documentation":"<p>The language code requested for the language of the target text. The language must be a language supported by Amazon Translate.</p>"
1321+
},
1322+
"Settings":{
1323+
"shape":"TranslationSettings",
1324+
"documentation":"<p>Settings to configure your translation output, including the option to mask profane words and phrases.</p>"
13091325
}
13101326
}
13111327
},
@@ -1332,9 +1348,23 @@
13321348
"AppliedTerminologies":{
13331349
"shape":"AppliedTerminologyList",
13341350
"documentation":"<p>The names of the custom terminologies applied to the input text by Amazon Translate for the translated text response.</p>"
1351+
},
1352+
"AppliedSettings":{
1353+
"shape":"TranslationSettings",
1354+
"documentation":"<p>Settings that configure the translation output.</p>"
13351355
}
13361356
}
13371357
},
1358+
"TranslationSettings":{
1359+
"type":"structure",
1360+
"members":{
1361+
"Profanity":{
1362+
"shape":"Profanity",
1363+
"documentation":"<p>Enable the profanity setting if you want Amazon Translate to mask profane words and phrases in your translation output.</p> <p>To mask profane words and phrases, Amazon Translate replaces them with the grawlix string “?$#@$“. This 5-character sequence is used for each profane word or phrase, regardless of the length or number of words.</p> <p>Amazon Translate does not detect profanity in all of its supported languages. For languages that support profanity detection, see <a href=\"https://docs.aws.amazon.com/translate/latest/dg/what-is.html#what-is-languages\">Supported Languages and Language Codes in the Amazon Translate Developer Guide</a>.</p>"
1364+
}
1365+
},
1366+
"documentation":"<p>Settings that configure the translation output.</p>"
1367+
},
13381368
"UnboundedLengthString":{"type":"string"},
13391369
"UnsupportedLanguagePairException":{
13401370
"type":"structure",

0 commit comments

Comments
 (0)