aws-sdk-translate 1.38.0 → 1.39.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +5 -0
- data/VERSION +1 -1
- data/lib/aws-sdk-translate/client.rb +19 -1
- data/lib/aws-sdk-translate/client_api.rb +9 -0
- data/lib/aws-sdk-translate/types.rb +111 -19
- data/lib/aws-sdk-translate.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d2d3da6497b0b23edf01695cfce94636419cca1a56d265a0c4ca00ac04caaeda
|
4
|
+
data.tar.gz: 88736a9ff112f357ef12224a3bb7844477a9ac3caba1df32ff22173b30ff9d4e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d8620eb7e43d1c7de93c7f12ee0dfd9f4524534b73904d7f26afff0494713845e6475d97acb041b3aca60d0f6189f7d8cf2f00cf831bdfedda4c2781f873c677
|
7
|
+
data.tar.gz: 5b7398875dd09ad3175a56568f548ec3b1ec25b1d415868f11323013193d3d10d442905969105065544b1844f43fd87f01c32cbf693e6855b2d0c363f9246bd1
|
data/CHANGELOG.md
CHANGED
@@ -1,6 +1,11 @@
|
|
1
1
|
Unreleased Changes
|
2
2
|
------------------
|
3
3
|
|
4
|
+
1.39.0 (2021-11-24)
|
5
|
+
------------------
|
6
|
+
|
7
|
+
* Feature - This release enables customers to use translation settings to mask profane words and phrases in their translation output.
|
8
|
+
|
4
9
|
1.38.0 (2021-11-11)
|
5
10
|
------------------
|
6
11
|
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.
|
1
|
+
1.39.0
|
@@ -503,6 +503,7 @@ module Aws::Translate
|
|
503
503
|
# resp.text_translation_job_properties.output_data_config.encryption_key.type #=> String, one of "KMS"
|
504
504
|
# resp.text_translation_job_properties.output_data_config.encryption_key.id #=> String
|
505
505
|
# resp.text_translation_job_properties.data_access_role_arn #=> String
|
506
|
+
# resp.text_translation_job_properties.settings.profanity #=> String, one of "MASK"
|
506
507
|
#
|
507
508
|
# @see http://docs.aws.amazon.com/goto/WebAPI/translate-2017-07-01/DescribeTextTranslationJob AWS API Documentation
|
508
509
|
#
|
@@ -883,6 +884,7 @@ module Aws::Translate
|
|
883
884
|
# resp.text_translation_job_properties_list[0].output_data_config.encryption_key.type #=> String, one of "KMS"
|
884
885
|
# resp.text_translation_job_properties_list[0].output_data_config.encryption_key.id #=> String
|
885
886
|
# resp.text_translation_job_properties_list[0].data_access_role_arn #=> String
|
887
|
+
# resp.text_translation_job_properties_list[0].settings.profanity #=> String, one of "MASK"
|
886
888
|
# resp.next_token #=> String
|
887
889
|
#
|
888
890
|
# @see http://docs.aws.amazon.com/goto/WebAPI/translate-2017-07-01/ListTextTranslationJobs AWS API Documentation
|
@@ -975,6 +977,10 @@ module Aws::Translate
|
|
975
977
|
# **A suitable default value is auto-generated.** You should normally
|
976
978
|
# not need to pass this option.**
|
977
979
|
#
|
980
|
+
# @option params [Types::TranslationSettings] :settings
|
981
|
+
# Settings to configure your translation output, including the option to
|
982
|
+
# mask profane words and phrases.
|
983
|
+
#
|
978
984
|
# @return [Types::StartTextTranslationJobResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
979
985
|
#
|
980
986
|
# * {Types::StartTextTranslationJobResponse#job_id #job_id} => String
|
@@ -1001,6 +1007,9 @@ module Aws::Translate
|
|
1001
1007
|
# terminology_names: ["ResourceName"],
|
1002
1008
|
# parallel_data_names: ["ResourceName"],
|
1003
1009
|
# client_token: "ClientTokenString", # required
|
1010
|
+
# settings: {
|
1011
|
+
# profanity: "MASK", # accepts MASK
|
1012
|
+
# },
|
1004
1013
|
# })
|
1005
1014
|
#
|
1006
1015
|
# @example Response structure
|
@@ -1089,12 +1098,17 @@ module Aws::Translate
|
|
1089
1098
|
# The language code requested for the language of the target text. The
|
1090
1099
|
# language must be a language supported by Amazon Translate.
|
1091
1100
|
#
|
1101
|
+
# @option params [Types::TranslationSettings] :settings
|
1102
|
+
# Settings to configure your translation output, including the option to
|
1103
|
+
# mask profane words and phrases.
|
1104
|
+
#
|
1092
1105
|
# @return [Types::TranslateTextResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
1093
1106
|
#
|
1094
1107
|
# * {Types::TranslateTextResponse#translated_text #translated_text} => String
|
1095
1108
|
# * {Types::TranslateTextResponse#source_language_code #source_language_code} => String
|
1096
1109
|
# * {Types::TranslateTextResponse#target_language_code #target_language_code} => String
|
1097
1110
|
# * {Types::TranslateTextResponse#applied_terminologies #applied_terminologies} => Array<Types::AppliedTerminology>
|
1111
|
+
# * {Types::TranslateTextResponse#applied_settings #applied_settings} => Types::TranslationSettings
|
1098
1112
|
#
|
1099
1113
|
# @example Request syntax with placeholder values
|
1100
1114
|
#
|
@@ -1103,6 +1117,9 @@ module Aws::Translate
|
|
1103
1117
|
# terminology_names: ["ResourceName"],
|
1104
1118
|
# source_language_code: "LanguageCodeString", # required
|
1105
1119
|
# target_language_code: "LanguageCodeString", # required
|
1120
|
+
# settings: {
|
1121
|
+
# profanity: "MASK", # accepts MASK
|
1122
|
+
# },
|
1106
1123
|
# })
|
1107
1124
|
#
|
1108
1125
|
# @example Response structure
|
@@ -1115,6 +1132,7 @@ module Aws::Translate
|
|
1115
1132
|
# resp.applied_terminologies[0].terms #=> Array
|
1116
1133
|
# resp.applied_terminologies[0].terms[0].source_text #=> String
|
1117
1134
|
# resp.applied_terminologies[0].terms[0].target_text #=> String
|
1135
|
+
# resp.applied_settings.profanity #=> String, one of "MASK"
|
1118
1136
|
#
|
1119
1137
|
# @see http://docs.aws.amazon.com/goto/WebAPI/translate-2017-07-01/TranslateText AWS API Documentation
|
1120
1138
|
#
|
@@ -1193,7 +1211,7 @@ module Aws::Translate
|
|
1193
1211
|
params: params,
|
1194
1212
|
config: config)
|
1195
1213
|
context[:gem_name] = 'aws-sdk-translate'
|
1196
|
-
context[:gem_version] = '1.
|
1214
|
+
context[:gem_version] = '1.39.0'
|
1197
1215
|
Seahorse::Client::Request.new(handlers, context)
|
1198
1216
|
end
|
1199
1217
|
|
@@ -71,6 +71,7 @@ module Aws::Translate
|
|
71
71
|
ParallelDataProperties = Shapes::StructureShape.new(name: 'ParallelDataProperties')
|
72
72
|
ParallelDataPropertiesList = Shapes::ListShape.new(name: 'ParallelDataPropertiesList')
|
73
73
|
ParallelDataStatus = Shapes::StringShape.new(name: 'ParallelDataStatus')
|
74
|
+
Profanity = Shapes::StringShape.new(name: 'Profanity')
|
74
75
|
ResourceName = Shapes::StringShape.new(name: 'ResourceName')
|
75
76
|
ResourceNameList = Shapes::ListShape.new(name: 'ResourceNameList')
|
76
77
|
ResourceNotFoundException = Shapes::StructureShape.new(name: 'ResourceNotFoundException')
|
@@ -99,6 +100,7 @@ module Aws::Translate
|
|
99
100
|
TooManyRequestsException = Shapes::StructureShape.new(name: 'TooManyRequestsException')
|
100
101
|
TranslateTextRequest = Shapes::StructureShape.new(name: 'TranslateTextRequest')
|
101
102
|
TranslateTextResponse = Shapes::StructureShape.new(name: 'TranslateTextResponse')
|
103
|
+
TranslationSettings = Shapes::StructureShape.new(name: 'TranslationSettings')
|
102
104
|
UnboundedLengthString = Shapes::StringShape.new(name: 'UnboundedLengthString')
|
103
105
|
UnsupportedLanguagePairException = Shapes::StructureShape.new(name: 'UnsupportedLanguagePairException')
|
104
106
|
UpdateParallelDataRequest = Shapes::StructureShape.new(name: 'UpdateParallelDataRequest')
|
@@ -281,6 +283,7 @@ module Aws::Translate
|
|
281
283
|
StartTextTranslationJobRequest.add_member(:terminology_names, Shapes::ShapeRef.new(shape: ResourceNameList, location_name: "TerminologyNames"))
|
282
284
|
StartTextTranslationJobRequest.add_member(:parallel_data_names, Shapes::ShapeRef.new(shape: ResourceNameList, location_name: "ParallelDataNames"))
|
283
285
|
StartTextTranslationJobRequest.add_member(:client_token, Shapes::ShapeRef.new(shape: ClientTokenString, required: true, location_name: "ClientToken", metadata: {"idempotencyToken"=>true}))
|
286
|
+
StartTextTranslationJobRequest.add_member(:settings, Shapes::ShapeRef.new(shape: TranslationSettings, location_name: "Settings"))
|
284
287
|
StartTextTranslationJobRequest.struct_class = Types::StartTextTranslationJobRequest
|
285
288
|
|
286
289
|
StartTextTranslationJobResponse.add_member(:job_id, Shapes::ShapeRef.new(shape: JobId, location_name: "JobId"))
|
@@ -352,6 +355,7 @@ module Aws::Translate
|
|
352
355
|
TextTranslationJobProperties.add_member(:input_data_config, Shapes::ShapeRef.new(shape: InputDataConfig, location_name: "InputDataConfig"))
|
353
356
|
TextTranslationJobProperties.add_member(:output_data_config, Shapes::ShapeRef.new(shape: OutputDataConfig, location_name: "OutputDataConfig"))
|
354
357
|
TextTranslationJobProperties.add_member(:data_access_role_arn, Shapes::ShapeRef.new(shape: IamRoleArn, location_name: "DataAccessRoleArn"))
|
358
|
+
TextTranslationJobProperties.add_member(:settings, Shapes::ShapeRef.new(shape: TranslationSettings, location_name: "Settings"))
|
355
359
|
TextTranslationJobProperties.struct_class = Types::TextTranslationJobProperties
|
356
360
|
|
357
361
|
TextTranslationJobPropertiesList.member = Shapes::ShapeRef.new(shape: TextTranslationJobProperties)
|
@@ -363,14 +367,19 @@ module Aws::Translate
|
|
363
367
|
TranslateTextRequest.add_member(:terminology_names, Shapes::ShapeRef.new(shape: ResourceNameList, location_name: "TerminologyNames"))
|
364
368
|
TranslateTextRequest.add_member(:source_language_code, Shapes::ShapeRef.new(shape: LanguageCodeString, required: true, location_name: "SourceLanguageCode"))
|
365
369
|
TranslateTextRequest.add_member(:target_language_code, Shapes::ShapeRef.new(shape: LanguageCodeString, required: true, location_name: "TargetLanguageCode"))
|
370
|
+
TranslateTextRequest.add_member(:settings, Shapes::ShapeRef.new(shape: TranslationSettings, location_name: "Settings"))
|
366
371
|
TranslateTextRequest.struct_class = Types::TranslateTextRequest
|
367
372
|
|
368
373
|
TranslateTextResponse.add_member(:translated_text, Shapes::ShapeRef.new(shape: String, required: true, location_name: "TranslatedText"))
|
369
374
|
TranslateTextResponse.add_member(:source_language_code, Shapes::ShapeRef.new(shape: LanguageCodeString, required: true, location_name: "SourceLanguageCode"))
|
370
375
|
TranslateTextResponse.add_member(:target_language_code, Shapes::ShapeRef.new(shape: LanguageCodeString, required: true, location_name: "TargetLanguageCode"))
|
371
376
|
TranslateTextResponse.add_member(:applied_terminologies, Shapes::ShapeRef.new(shape: AppliedTerminologyList, location_name: "AppliedTerminologies"))
|
377
|
+
TranslateTextResponse.add_member(:applied_settings, Shapes::ShapeRef.new(shape: TranslationSettings, location_name: "AppliedSettings"))
|
372
378
|
TranslateTextResponse.struct_class = Types::TranslateTextResponse
|
373
379
|
|
380
|
+
TranslationSettings.add_member(:profanity, Shapes::ShapeRef.new(shape: Profanity, location_name: "Profanity"))
|
381
|
+
TranslationSettings.struct_class = Types::TranslationSettings
|
382
|
+
|
374
383
|
UnsupportedLanguagePairException.add_member(:message, Shapes::ShapeRef.new(shape: String, location_name: "Message"))
|
375
384
|
UnsupportedLanguagePairException.add_member(:source_language_code, Shapes::ShapeRef.new(shape: LanguageCodeString, location_name: "SourceLanguageCode"))
|
376
385
|
UnsupportedLanguagePairException.add_member(:target_language_code, Shapes::ShapeRef.new(shape: LanguageCodeString, location_name: "TargetLanguageCode"))
|
@@ -266,13 +266,13 @@ module Aws::Translate
|
|
266
266
|
# }
|
267
267
|
#
|
268
268
|
# @!attribute [rw] type
|
269
|
-
# The type of encryption key used by Amazon Translate to encrypt
|
270
|
-
#
|
269
|
+
# The type of encryption key used by Amazon Translate to encrypt this
|
270
|
+
# object.
|
271
271
|
# @return [String]
|
272
272
|
#
|
273
273
|
# @!attribute [rw] id
|
274
274
|
# The Amazon Resource Name (ARN) of the encryption key being used to
|
275
|
-
# encrypt
|
275
|
+
# encrypt this object.
|
276
276
|
# @return [String]
|
277
277
|
#
|
278
278
|
# @see http://docs.aws.amazon.com/goto/WebAPI/translate-2017-07-01/EncryptionKey AWS API Documentation
|
@@ -313,8 +313,8 @@ module Aws::Translate
|
|
313
313
|
# that was successfully imported into Amazon Translate. The location
|
314
314
|
# is returned as a presigned URL that has a 30 minute expiration.
|
315
315
|
#
|
316
|
-
# Amazon Translate doesn't scan
|
317
|
-
#
|
316
|
+
# Amazon Translate doesn't scan all input files for the risk of CSV
|
317
|
+
# injection attacks.
|
318
318
|
#
|
319
319
|
# CSV injection occurs when a .csv or .tsv file is altered so that a
|
320
320
|
# record contains malicious code. The record begins with a special
|
@@ -322,8 +322,8 @@ module Aws::Translate
|
|
322
322
|
# spreadsheet program, the program might interpret the record as a
|
323
323
|
# formula and run the code within it.
|
324
324
|
#
|
325
|
-
# Before you download
|
326
|
-
#
|
325
|
+
# Before you download an input file from Amazon S3, ensure that you
|
326
|
+
# recognize the file and trust its creator.
|
327
327
|
# @return [Types::ParallelDataDataLocation]
|
328
328
|
#
|
329
329
|
# @!attribute [rw] auxiliary_data_location
|
@@ -392,9 +392,22 @@ module Aws::Translate
|
|
392
392
|
# @return [Types::TerminologyProperties]
|
393
393
|
#
|
394
394
|
# @!attribute [rw] terminology_data_location
|
395
|
-
# The
|
396
|
-
#
|
397
|
-
# minute
|
395
|
+
# The Amazon S3 location of the most recent custom terminology input
|
396
|
+
# file that was successfully imported into Amazon Translate. The
|
397
|
+
# location is returned as a presigned URL that has a 30 minute
|
398
|
+
# expiration.
|
399
|
+
#
|
400
|
+
# Amazon Translate doesn't scan all input files for the risk of CSV
|
401
|
+
# injection attacks.
|
402
|
+
#
|
403
|
+
# CSV injection occurs when a .csv or .tsv file is altered so that a
|
404
|
+
# record contains malicious code. The record begins with a special
|
405
|
+
# character, such as =, +, -, or @. When the file is opened in a
|
406
|
+
# spreadsheet program, the program might interpret the record as a
|
407
|
+
# formula and run the code within it.
|
408
|
+
#
|
409
|
+
# Before you download an input file from Amazon S3, ensure that you
|
410
|
+
# recognize the file and trust its creator.
|
398
411
|
# @return [Types::TerminologyDataLocation]
|
399
412
|
#
|
400
413
|
# @!attribute [rw] auxiliary_data_location
|
@@ -869,8 +882,8 @@ module Aws::Translate
|
|
869
882
|
# The Amazon S3 location of the parallel data input file. The location
|
870
883
|
# is returned as a presigned URL to that has a 30 minute expiration.
|
871
884
|
#
|
872
|
-
# Amazon Translate doesn't scan
|
873
|
-
#
|
885
|
+
# Amazon Translate doesn't scan all input files for the risk of CSV
|
886
|
+
# injection attacks.
|
874
887
|
#
|
875
888
|
# CSV injection occurs when a .csv or .tsv file is altered so that a
|
876
889
|
# record contains malicious code. The record begins with a special
|
@@ -878,8 +891,8 @@ module Aws::Translate
|
|
878
891
|
# spreadsheet program, the program might interpret the record as a
|
879
892
|
# formula and run the code within it.
|
880
893
|
#
|
881
|
-
# Before you download
|
882
|
-
#
|
894
|
+
# Before you download an input file from Amazon S3, ensure that you
|
895
|
+
# recognize the file and trust its creator.
|
883
896
|
# @return [String]
|
884
897
|
#
|
885
898
|
# @see http://docs.aws.amazon.com/goto/WebAPI/translate-2017-07-01/ParallelDataDataLocation AWS API Documentation
|
@@ -1052,6 +1065,9 @@ module Aws::Translate
|
|
1052
1065
|
# terminology_names: ["ResourceName"],
|
1053
1066
|
# parallel_data_names: ["ResourceName"],
|
1054
1067
|
# client_token: "ClientTokenString", # required
|
1068
|
+
# settings: {
|
1069
|
+
# profanity: "MASK", # accepts MASK
|
1070
|
+
# },
|
1055
1071
|
# }
|
1056
1072
|
#
|
1057
1073
|
# @!attribute [rw] job_name
|
@@ -1131,6 +1147,11 @@ module Aws::Translate
|
|
1131
1147
|
# not need to pass this option.
|
1132
1148
|
# @return [String]
|
1133
1149
|
#
|
1150
|
+
# @!attribute [rw] settings
|
1151
|
+
# Settings to configure your translation output, including the option
|
1152
|
+
# to mask profane words and phrases.
|
1153
|
+
# @return [Types::TranslationSettings]
|
1154
|
+
#
|
1134
1155
|
# @see http://docs.aws.amazon.com/goto/WebAPI/translate-2017-07-01/StartTextTranslationJobRequest AWS API Documentation
|
1135
1156
|
#
|
1136
1157
|
class StartTextTranslationJobRequest < Struct.new(
|
@@ -1142,7 +1163,8 @@ module Aws::Translate
|
|
1142
1163
|
:target_language_codes,
|
1143
1164
|
:terminology_names,
|
1144
1165
|
:parallel_data_names,
|
1145
|
-
:client_token
|
1166
|
+
:client_token,
|
1167
|
+
:settings)
|
1146
1168
|
SENSITIVE = []
|
1147
1169
|
include Aws::Structure
|
1148
1170
|
end
|
@@ -1306,7 +1328,22 @@ module Aws::Translate
|
|
1306
1328
|
# @return [String]
|
1307
1329
|
#
|
1308
1330
|
# @!attribute [rw] location
|
1309
|
-
# The location of the custom terminology
|
1331
|
+
# The Amazon S3 location of the most recent custom terminology input
|
1332
|
+
# file that was successfully imported into Amazon Translate. The
|
1333
|
+
# location is returned as a presigned URL that has a 30 minute
|
1334
|
+
# expiration.
|
1335
|
+
#
|
1336
|
+
# Amazon Translate doesn't scan all input files for the risk of CSV
|
1337
|
+
# injection attacks.
|
1338
|
+
#
|
1339
|
+
# CSV injection occurs when a .csv or .tsv file is altered so that a
|
1340
|
+
# record contains malicious code. The record begins with a special
|
1341
|
+
# character, such as =, +, -, or @. When the file is opened in a
|
1342
|
+
# spreadsheet program, the program might interpret the record as a
|
1343
|
+
# formula and run the code within it.
|
1344
|
+
#
|
1345
|
+
# Before you download an input file from Amazon S3, ensure that you
|
1346
|
+
# recognize the file and trust its creator.
|
1310
1347
|
# @return [String]
|
1311
1348
|
#
|
1312
1349
|
# @see http://docs.aws.amazon.com/goto/WebAPI/translate-2017-07-01/TerminologyDataLocation AWS API Documentation
|
@@ -1547,6 +1584,10 @@ module Aws::Translate
|
|
1547
1584
|
# the job's input data.
|
1548
1585
|
# @return [String]
|
1549
1586
|
#
|
1587
|
+
# @!attribute [rw] settings
|
1588
|
+
# Settings that configure the translation output.
|
1589
|
+
# @return [Types::TranslationSettings]
|
1590
|
+
#
|
1550
1591
|
# @see http://docs.aws.amazon.com/goto/WebAPI/translate-2017-07-01/TextTranslationJobProperties AWS API Documentation
|
1551
1592
|
#
|
1552
1593
|
class TextTranslationJobProperties < Struct.new(
|
@@ -1563,7 +1604,8 @@ module Aws::Translate
|
|
1563
1604
|
:end_time,
|
1564
1605
|
:input_data_config,
|
1565
1606
|
:output_data_config,
|
1566
|
-
:data_access_role_arn
|
1607
|
+
:data_access_role_arn,
|
1608
|
+
:settings)
|
1567
1609
|
SENSITIVE = []
|
1568
1610
|
include Aws::Structure
|
1569
1611
|
end
|
@@ -1590,6 +1632,9 @@ module Aws::Translate
|
|
1590
1632
|
# terminology_names: ["ResourceName"],
|
1591
1633
|
# source_language_code: "LanguageCodeString", # required
|
1592
1634
|
# target_language_code: "LanguageCodeString", # required
|
1635
|
+
# settings: {
|
1636
|
+
# profanity: "MASK", # accepts MASK
|
1637
|
+
# },
|
1593
1638
|
# }
|
1594
1639
|
#
|
1595
1640
|
# @!attribute [rw] text
|
@@ -1625,13 +1670,19 @@ module Aws::Translate
|
|
1625
1670
|
# language must be a language supported by Amazon Translate.
|
1626
1671
|
# @return [String]
|
1627
1672
|
#
|
1673
|
+
# @!attribute [rw] settings
|
1674
|
+
# Settings to configure your translation output, including the option
|
1675
|
+
# to mask profane words and phrases.
|
1676
|
+
# @return [Types::TranslationSettings]
|
1677
|
+
#
|
1628
1678
|
# @see http://docs.aws.amazon.com/goto/WebAPI/translate-2017-07-01/TranslateTextRequest AWS API Documentation
|
1629
1679
|
#
|
1630
1680
|
class TranslateTextRequest < Struct.new(
|
1631
1681
|
:text,
|
1632
1682
|
:terminology_names,
|
1633
1683
|
:source_language_code,
|
1634
|
-
:target_language_code
|
1684
|
+
:target_language_code,
|
1685
|
+
:settings)
|
1635
1686
|
SENSITIVE = []
|
1636
1687
|
include Aws::Structure
|
1637
1688
|
end
|
@@ -1653,13 +1704,54 @@ module Aws::Translate
|
|
1653
1704
|
# Amazon Translate for the translated text response.
|
1654
1705
|
# @return [Array<Types::AppliedTerminology>]
|
1655
1706
|
#
|
1707
|
+
# @!attribute [rw] applied_settings
|
1708
|
+
# Settings that configure the translation output.
|
1709
|
+
# @return [Types::TranslationSettings]
|
1710
|
+
#
|
1656
1711
|
# @see http://docs.aws.amazon.com/goto/WebAPI/translate-2017-07-01/TranslateTextResponse AWS API Documentation
|
1657
1712
|
#
|
1658
1713
|
class TranslateTextResponse < Struct.new(
|
1659
1714
|
:translated_text,
|
1660
1715
|
:source_language_code,
|
1661
1716
|
:target_language_code,
|
1662
|
-
:applied_terminologies
|
1717
|
+
:applied_terminologies,
|
1718
|
+
:applied_settings)
|
1719
|
+
SENSITIVE = []
|
1720
|
+
include Aws::Structure
|
1721
|
+
end
|
1722
|
+
|
1723
|
+
# Settings that configure the translation output.
|
1724
|
+
#
|
1725
|
+
# @note When making an API call, you may pass TranslationSettings
|
1726
|
+
# data as a hash:
|
1727
|
+
#
|
1728
|
+
# {
|
1729
|
+
# profanity: "MASK", # accepts MASK
|
1730
|
+
# }
|
1731
|
+
#
|
1732
|
+
# @!attribute [rw] profanity
|
1733
|
+
# Enable the profanity setting if you want Amazon Translate to mask
|
1734
|
+
# profane words and phrases in your translation output.
|
1735
|
+
#
|
1736
|
+
# To mask profane words and phrases, Amazon Translate replaces them
|
1737
|
+
# with the grawlix string “?$#@$“. This 5-character sequence is used
|
1738
|
+
# for each profane word or phrase, regardless of the length or number
|
1739
|
+
# of words.
|
1740
|
+
#
|
1741
|
+
# Amazon Translate does not detect profanity in all of its supported
|
1742
|
+
# languages. For languages that support profanity detection, see
|
1743
|
+
# [Supported Languages and Language Codes in the Amazon Translate
|
1744
|
+
# Developer Guide][1].
|
1745
|
+
#
|
1746
|
+
#
|
1747
|
+
#
|
1748
|
+
# [1]: https://docs.aws.amazon.com/translate/latest/dg/what-is.html#what-is-languages
|
1749
|
+
# @return [String]
|
1750
|
+
#
|
1751
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/translate-2017-07-01/TranslationSettings AWS API Documentation
|
1752
|
+
#
|
1753
|
+
class TranslationSettings < Struct.new(
|
1754
|
+
:profanity)
|
1663
1755
|
SENSITIVE = []
|
1664
1756
|
include Aws::Structure
|
1665
1757
|
end
|
data/lib/aws-sdk-translate.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: aws-sdk-translate
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.39.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Amazon Web Services
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-11-
|
11
|
+
date: 2021-11-24 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: aws-sdk-core
|