aws-sdk-translate 1.59.0 → 1.60.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.
- checksums.yaml +4 -4
- data/CHANGELOG.md +5 -0
- data/VERSION +1 -1
- data/lib/aws-sdk-translate/client.rb +59 -25
- data/lib/aws-sdk-translate/client_api.rb +4 -2
- data/lib/aws-sdk-translate/endpoint_provider.rb +1 -1
- data/lib/aws-sdk-translate/types.rb +91 -29
- 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: 71bfbb23fcb7271fe18da3b7368fa82ab26121a8bdcd616099287ee234f61613
|
4
|
+
data.tar.gz: 2d4b72f61916da55a17bdc3ebce1f932d75fde9eabd75af1d2c2dea8cf1b4527
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 69ec8e6b0f36079599d5843b4bec5a6b29b146bc85cf104bd0acd5134f8face82032990fc570cd9795bb3fbcad5e098ee7b6272adfb3452ed6236346cdb7c557
|
7
|
+
data.tar.gz: 32544215b5187cf6fc572261ad8d524c6762e243aef530105232fc54505499ec3b83e3fd74e4c3a24a6bfc1a9ccd397310497bc329ea4d8a156f71ae4dae4f1e
|
data/CHANGELOG.md
CHANGED
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.
|
1
|
+
1.60.0
|
@@ -447,8 +447,8 @@ module Aws::Translate
|
|
447
447
|
# name: "ResourceName", # required
|
448
448
|
# description: "Description",
|
449
449
|
# parallel_data_config: { # required
|
450
|
-
# s3_uri: "S3Uri",
|
451
|
-
# format: "TSV", #
|
450
|
+
# s3_uri: "S3Uri",
|
451
|
+
# format: "TSV", # accepts TSV, CSV, TMX
|
452
452
|
# },
|
453
453
|
# encryption_key: {
|
454
454
|
# type: "KMS", # required, accepts KMS
|
@@ -574,6 +574,7 @@ module Aws::Translate
|
|
574
574
|
# resp.text_translation_job_properties.data_access_role_arn #=> String
|
575
575
|
# resp.text_translation_job_properties.settings.formality #=> String, one of "FORMAL", "INFORMAL"
|
576
576
|
# resp.text_translation_job_properties.settings.profanity #=> String, one of "MASK"
|
577
|
+
# resp.text_translation_job_properties.settings.brevity #=> String, one of "ON"
|
577
578
|
#
|
578
579
|
# @see http://docs.aws.amazon.com/goto/WebAPI/translate-2017-07-01/DescribeTextTranslationJob AWS API Documentation
|
579
580
|
#
|
@@ -1053,6 +1054,7 @@ module Aws::Translate
|
|
1053
1054
|
# resp.text_translation_job_properties_list[0].data_access_role_arn #=> String
|
1054
1055
|
# resp.text_translation_job_properties_list[0].settings.formality #=> String, one of "FORMAL", "INFORMAL"
|
1055
1056
|
# resp.text_translation_job_properties_list[0].settings.profanity #=> String, one of "MASK"
|
1057
|
+
# resp.text_translation_job_properties_list[0].settings.brevity #=> String, one of "ON"
|
1056
1058
|
# resp.next_token #=> String
|
1057
1059
|
#
|
1058
1060
|
# @see http://docs.aws.amazon.com/goto/WebAPI/translate-2017-07-01/ListTextTranslationJobs AWS API Documentation
|
@@ -1181,9 +1183,15 @@ module Aws::Translate
|
|
1181
1183
|
# not need to pass this option.**
|
1182
1184
|
#
|
1183
1185
|
# @option params [Types::TranslationSettings] :settings
|
1184
|
-
# Settings to configure your translation output
|
1185
|
-
#
|
1186
|
-
#
|
1186
|
+
# Settings to configure your translation output. You can configure the
|
1187
|
+
# following options:
|
1188
|
+
#
|
1189
|
+
# * Brevity: not supported.
|
1190
|
+
#
|
1191
|
+
# * Formality: sets the formality level of the output text.
|
1192
|
+
#
|
1193
|
+
# * Profanity: masks profane words and phrases in your translation
|
1194
|
+
# output.
|
1187
1195
|
#
|
1188
1196
|
# @return [Types::StartTextTranslationJobResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
1189
1197
|
#
|
@@ -1214,6 +1222,7 @@ module Aws::Translate
|
|
1214
1222
|
# settings: {
|
1215
1223
|
# formality: "FORMAL", # accepts FORMAL, INFORMAL
|
1216
1224
|
# profanity: "MASK", # accepts MASK
|
1225
|
+
# brevity: "ON", # accepts ON
|
1217
1226
|
# },
|
1218
1227
|
# })
|
1219
1228
|
#
|
@@ -1312,13 +1321,11 @@ module Aws::Translate
|
|
1312
1321
|
end
|
1313
1322
|
|
1314
1323
|
# Translates the input document from the source language to the target
|
1315
|
-
# language. This synchronous operation supports
|
1316
|
-
# the input document. `TranslateDocument` supports
|
1317
|
-
# English to any supported language, and from any
|
1318
|
-
# English. Therefore, specify either the source
|
1319
|
-
# target language code as “en” (English).
|
1320
|
-
#
|
1321
|
-
# `TranslateDocument` does not support language auto-detection.
|
1324
|
+
# language. This synchronous operation supports text, HTML, or Word
|
1325
|
+
# documents as the input document. `TranslateDocument` supports
|
1326
|
+
# translations from English to any supported language, and from any
|
1327
|
+
# supported language to English. Therefore, specify either the source
|
1328
|
+
# language code or the target language code as “en” (English).
|
1322
1329
|
#
|
1323
1330
|
# If you set the `Formality` parameter, the request will fail if the
|
1324
1331
|
# target language does not support formality. For a list of target
|
@@ -1349,14 +1356,24 @@ module Aws::Translate
|
|
1349
1356
|
# [1]: https://docs.aws.amazon.com/translate/latest/dg/how-custom-terminology.html
|
1350
1357
|
#
|
1351
1358
|
# @option params [required, String] :source_language_code
|
1352
|
-
# The language code for the language of the source text.
|
1353
|
-
#
|
1354
|
-
#
|
1355
|
-
#
|
1359
|
+
# The language code for the language of the source text. For a list of
|
1360
|
+
# supported language codes, see [Supported languages][1].
|
1361
|
+
#
|
1362
|
+
# To have Amazon Translate determine the source language of your text,
|
1363
|
+
# you can specify `auto` in the `SourceLanguageCode` field. If you
|
1364
|
+
# specify `auto`, Amazon Translate will call [Amazon Comprehend][2] to
|
1365
|
+
# determine the source language.
|
1366
|
+
#
|
1367
|
+
# <note markdown="1"> If you specify `auto`, you must send the `TranslateDocument` request
|
1368
|
+
# in a region that supports Amazon Comprehend. Otherwise, the request
|
1369
|
+
# returns an error indicating that autodetect is not supported.
|
1370
|
+
#
|
1371
|
+
# </note>
|
1356
1372
|
#
|
1357
1373
|
#
|
1358
1374
|
#
|
1359
1375
|
# [1]: https://docs.aws.amazon.com/translate/latest/dg/what-is-languages.html
|
1376
|
+
# [2]: https://docs.aws.amazon.com/comprehend/latest/dg/comprehend-general.html
|
1360
1377
|
#
|
1361
1378
|
# @option params [required, String] :target_language_code
|
1362
1379
|
# The language code requested for the translated document. For a list of
|
@@ -1367,9 +1384,15 @@ module Aws::Translate
|
|
1367
1384
|
# [1]: https://docs.aws.amazon.com/translate/latest/dg/what-is-languages.html
|
1368
1385
|
#
|
1369
1386
|
# @option params [Types::TranslationSettings] :settings
|
1370
|
-
# Settings to configure your translation output
|
1371
|
-
#
|
1372
|
-
#
|
1387
|
+
# Settings to configure your translation output. You can configure the
|
1388
|
+
# following options:
|
1389
|
+
#
|
1390
|
+
# * Brevity: not supported.
|
1391
|
+
#
|
1392
|
+
# * Formality: sets the formality level of the output text.
|
1393
|
+
#
|
1394
|
+
# * Profanity: masks profane words and phrases in your translation
|
1395
|
+
# output.
|
1373
1396
|
#
|
1374
1397
|
# @return [Types::TranslateDocumentResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
1375
1398
|
#
|
@@ -1392,6 +1415,7 @@ module Aws::Translate
|
|
1392
1415
|
# settings: {
|
1393
1416
|
# formality: "FORMAL", # accepts FORMAL, INFORMAL
|
1394
1417
|
# profanity: "MASK", # accepts MASK
|
1418
|
+
# brevity: "ON", # accepts ON
|
1395
1419
|
# },
|
1396
1420
|
# })
|
1397
1421
|
#
|
@@ -1407,6 +1431,7 @@ module Aws::Translate
|
|
1407
1431
|
# resp.applied_terminologies[0].terms[0].target_text #=> String
|
1408
1432
|
# resp.applied_settings.formality #=> String, one of "FORMAL", "INFORMAL"
|
1409
1433
|
# resp.applied_settings.profanity #=> String, one of "MASK"
|
1434
|
+
# resp.applied_settings.brevity #=> String, one of "ON"
|
1410
1435
|
#
|
1411
1436
|
# @see http://docs.aws.amazon.com/goto/WebAPI/translate-2017-07-01/TranslateDocument AWS API Documentation
|
1412
1437
|
#
|
@@ -1475,9 +1500,16 @@ module Aws::Translate
|
|
1475
1500
|
# [1]: https://docs.aws.amazon.com/translate/latest/dg/what-is-languages.html
|
1476
1501
|
#
|
1477
1502
|
# @option params [Types::TranslationSettings] :settings
|
1478
|
-
# Settings to configure your translation output
|
1479
|
-
#
|
1480
|
-
#
|
1503
|
+
# Settings to configure your translation output. You can configure the
|
1504
|
+
# following options:
|
1505
|
+
#
|
1506
|
+
# * Brevity: reduces the length of the translated output for most
|
1507
|
+
# translations.
|
1508
|
+
#
|
1509
|
+
# * Formality: sets the formality level of the output text.
|
1510
|
+
#
|
1511
|
+
# * Profanity: masks profane words and phrases in your translation
|
1512
|
+
# output.
|
1481
1513
|
#
|
1482
1514
|
# @return [Types::TranslateTextResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
1483
1515
|
#
|
@@ -1497,6 +1529,7 @@ module Aws::Translate
|
|
1497
1529
|
# settings: {
|
1498
1530
|
# formality: "FORMAL", # accepts FORMAL, INFORMAL
|
1499
1531
|
# profanity: "MASK", # accepts MASK
|
1532
|
+
# brevity: "ON", # accepts ON
|
1500
1533
|
# },
|
1501
1534
|
# })
|
1502
1535
|
#
|
@@ -1512,6 +1545,7 @@ module Aws::Translate
|
|
1512
1545
|
# resp.applied_terminologies[0].terms[0].target_text #=> String
|
1513
1546
|
# resp.applied_settings.formality #=> String, one of "FORMAL", "INFORMAL"
|
1514
1547
|
# resp.applied_settings.profanity #=> String, one of "MASK"
|
1548
|
+
# resp.applied_settings.brevity #=> String, one of "ON"
|
1515
1549
|
#
|
1516
1550
|
# @see http://docs.aws.amazon.com/goto/WebAPI/translate-2017-07-01/TranslateText AWS API Documentation
|
1517
1551
|
#
|
@@ -1589,8 +1623,8 @@ module Aws::Translate
|
|
1589
1623
|
# name: "ResourceName", # required
|
1590
1624
|
# description: "Description",
|
1591
1625
|
# parallel_data_config: { # required
|
1592
|
-
# s3_uri: "S3Uri",
|
1593
|
-
# format: "TSV", #
|
1626
|
+
# s3_uri: "S3Uri",
|
1627
|
+
# format: "TSV", # accepts TSV, CSV, TMX
|
1594
1628
|
# },
|
1595
1629
|
# client_token: "ClientTokenString", # required
|
1596
1630
|
# })
|
@@ -1624,7 +1658,7 @@ module Aws::Translate
|
|
1624
1658
|
params: params,
|
1625
1659
|
config: config)
|
1626
1660
|
context[:gem_name] = 'aws-sdk-translate'
|
1627
|
-
context[:gem_version] = '1.
|
1661
|
+
context[:gem_version] = '1.60.0'
|
1628
1662
|
Seahorse::Client::Request.new(handlers, context)
|
1629
1663
|
end
|
1630
1664
|
|
@@ -16,6 +16,7 @@ module Aws::Translate
|
|
16
16
|
AppliedTerminology = Shapes::StructureShape.new(name: 'AppliedTerminology')
|
17
17
|
AppliedTerminologyList = Shapes::ListShape.new(name: 'AppliedTerminologyList')
|
18
18
|
BoundedLengthString = Shapes::StringShape.new(name: 'BoundedLengthString')
|
19
|
+
Brevity = Shapes::StringShape.new(name: 'Brevity')
|
19
20
|
ClientTokenString = Shapes::StringShape.new(name: 'ClientTokenString')
|
20
21
|
ConcurrentModificationException = Shapes::StructureShape.new(name: 'ConcurrentModificationException')
|
21
22
|
ConflictException = Shapes::StructureShape.new(name: 'ConflictException')
|
@@ -293,8 +294,8 @@ module Aws::Translate
|
|
293
294
|
OutputDataConfig.add_member(:encryption_key, Shapes::ShapeRef.new(shape: EncryptionKey, location_name: "EncryptionKey"))
|
294
295
|
OutputDataConfig.struct_class = Types::OutputDataConfig
|
295
296
|
|
296
|
-
ParallelDataConfig.add_member(:s3_uri, Shapes::ShapeRef.new(shape: S3Uri,
|
297
|
-
ParallelDataConfig.add_member(:format, Shapes::ShapeRef.new(shape: ParallelDataFormat,
|
297
|
+
ParallelDataConfig.add_member(:s3_uri, Shapes::ShapeRef.new(shape: S3Uri, location_name: "S3Uri"))
|
298
|
+
ParallelDataConfig.add_member(:format, Shapes::ShapeRef.new(shape: ParallelDataFormat, location_name: "Format"))
|
298
299
|
ParallelDataConfig.struct_class = Types::ParallelDataConfig
|
299
300
|
|
300
301
|
ParallelDataDataLocation.add_member(:repository_type, Shapes::ShapeRef.new(shape: String, required: true, location_name: "RepositoryType"))
|
@@ -470,6 +471,7 @@ module Aws::Translate
|
|
470
471
|
|
471
472
|
TranslationSettings.add_member(:formality, Shapes::ShapeRef.new(shape: Formality, location_name: "Formality"))
|
472
473
|
TranslationSettings.add_member(:profanity, Shapes::ShapeRef.new(shape: Profanity, location_name: "Profanity"))
|
474
|
+
TranslationSettings.add_member(:brevity, Shapes::ShapeRef.new(shape: Brevity, location_name: "Brevity"))
|
473
475
|
TranslationSettings.struct_class = Types::TranslationSettings
|
474
476
|
|
475
477
|
UnsupportedDisplayLanguageCodeException.add_member(:message, Shapes::ShapeRef.new(shape: String, location_name: "Message"))
|
@@ -32,7 +32,7 @@ module Aws::Translate
|
|
32
32
|
raise ArgumentError, "FIPS and DualStack are enabled, but this partition does not support one or both"
|
33
33
|
end
|
34
34
|
if Aws::Endpoints::Matchers.boolean_equals?(use_fips, true)
|
35
|
-
if Aws::Endpoints::Matchers.boolean_equals?(
|
35
|
+
if Aws::Endpoints::Matchers.boolean_equals?(Aws::Endpoints::Matchers.attr(partition_result, "supportsFIPS"), true)
|
36
36
|
return Aws::Endpoints::Endpoint.new(url: "https://translate-fips.#{region}.#{partition_result['dnsSuffix']}", headers: {}, properties: {})
|
37
37
|
end
|
38
38
|
raise ArgumentError, "FIPS is enabled but this partition does not support FIPS"
|
@@ -1167,9 +1167,15 @@ module Aws::Translate
|
|
1167
1167
|
# @return [String]
|
1168
1168
|
#
|
1169
1169
|
# @!attribute [rw] settings
|
1170
|
-
# Settings to configure your translation output
|
1171
|
-
#
|
1172
|
-
#
|
1170
|
+
# Settings to configure your translation output. You can configure the
|
1171
|
+
# following options:
|
1172
|
+
#
|
1173
|
+
# * Brevity: not supported.
|
1174
|
+
#
|
1175
|
+
# * Formality: sets the formality level of the output text.
|
1176
|
+
#
|
1177
|
+
# * Profanity: masks profane words and phrases in your translation
|
1178
|
+
# output.
|
1173
1179
|
# @return [Types::TranslationSettings]
|
1174
1180
|
#
|
1175
1181
|
# @see http://docs.aws.amazon.com/goto/WebAPI/translate-2017-07-01/StartTextTranslationJobRequest AWS API Documentation
|
@@ -1709,14 +1715,24 @@ module Aws::Translate
|
|
1709
1715
|
# @return [Array<String>]
|
1710
1716
|
#
|
1711
1717
|
# @!attribute [rw] source_language_code
|
1712
|
-
# The language code for the language of the source text.
|
1713
|
-
#
|
1714
|
-
#
|
1715
|
-
#
|
1718
|
+
# The language code for the language of the source text. For a list of
|
1719
|
+
# supported language codes, see [Supported languages][1].
|
1720
|
+
#
|
1721
|
+
# To have Amazon Translate determine the source language of your text,
|
1722
|
+
# you can specify `auto` in the `SourceLanguageCode` field. If you
|
1723
|
+
# specify `auto`, Amazon Translate will call [Amazon Comprehend][2] to
|
1724
|
+
# determine the source language.
|
1725
|
+
#
|
1726
|
+
# <note markdown="1"> If you specify `auto`, you must send the `TranslateDocument` request
|
1727
|
+
# in a region that supports Amazon Comprehend. Otherwise, the request
|
1728
|
+
# returns an error indicating that autodetect is not supported.
|
1729
|
+
#
|
1730
|
+
# </note>
|
1716
1731
|
#
|
1717
1732
|
#
|
1718
1733
|
#
|
1719
1734
|
# [1]: https://docs.aws.amazon.com/translate/latest/dg/what-is-languages.html
|
1735
|
+
# [2]: https://docs.aws.amazon.com/comprehend/latest/dg/comprehend-general.html
|
1720
1736
|
# @return [String]
|
1721
1737
|
#
|
1722
1738
|
# @!attribute [rw] target_language_code
|
@@ -1729,9 +1745,15 @@ module Aws::Translate
|
|
1729
1745
|
# @return [String]
|
1730
1746
|
#
|
1731
1747
|
# @!attribute [rw] settings
|
1732
|
-
# Settings to configure your translation output
|
1733
|
-
#
|
1734
|
-
#
|
1748
|
+
# Settings to configure your translation output. You can configure the
|
1749
|
+
# following options:
|
1750
|
+
#
|
1751
|
+
# * Brevity: not supported.
|
1752
|
+
#
|
1753
|
+
# * Formality: sets the formality level of the output text.
|
1754
|
+
#
|
1755
|
+
# * Profanity: masks profane words and phrases in your translation
|
1756
|
+
# output.
|
1735
1757
|
# @return [Types::TranslationSettings]
|
1736
1758
|
#
|
1737
1759
|
# @see http://docs.aws.amazon.com/goto/WebAPI/translate-2017-07-01/TranslateDocumentRequest AWS API Documentation
|
@@ -1765,9 +1787,16 @@ module Aws::Translate
|
|
1765
1787
|
# @return [Array<Types::AppliedTerminology>]
|
1766
1788
|
#
|
1767
1789
|
# @!attribute [rw] applied_settings
|
1768
|
-
# Settings to configure your translation output
|
1769
|
-
#
|
1770
|
-
#
|
1790
|
+
# Settings to configure your translation output. You can configure the
|
1791
|
+
# following options:
|
1792
|
+
#
|
1793
|
+
# * Brevity: reduces the length of the translation output for most
|
1794
|
+
# translations. Available for `TranslateText` only.
|
1795
|
+
#
|
1796
|
+
# * Formality: sets the formality level of the translation output.
|
1797
|
+
#
|
1798
|
+
# * Profanity: masks profane words and phrases in the translation
|
1799
|
+
# output.
|
1771
1800
|
# @return [Types::TranslationSettings]
|
1772
1801
|
#
|
1773
1802
|
# @see http://docs.aws.amazon.com/goto/WebAPI/translate-2017-07-01/TranslateDocumentResponse AWS API Documentation
|
@@ -1836,9 +1865,16 @@ module Aws::Translate
|
|
1836
1865
|
# @return [String]
|
1837
1866
|
#
|
1838
1867
|
# @!attribute [rw] settings
|
1839
|
-
# Settings to configure your translation output
|
1840
|
-
#
|
1841
|
-
#
|
1868
|
+
# Settings to configure your translation output. You can configure the
|
1869
|
+
# following options:
|
1870
|
+
#
|
1871
|
+
# * Brevity: reduces the length of the translated output for most
|
1872
|
+
# translations.
|
1873
|
+
#
|
1874
|
+
# * Formality: sets the formality level of the output text.
|
1875
|
+
#
|
1876
|
+
# * Profanity: masks profane words and phrases in your translation
|
1877
|
+
# output.
|
1842
1878
|
# @return [Types::TranslationSettings]
|
1843
1879
|
#
|
1844
1880
|
# @see http://docs.aws.amazon.com/goto/WebAPI/translate-2017-07-01/TranslateTextRequest AWS API Documentation
|
@@ -1900,18 +1936,25 @@ module Aws::Translate
|
|
1900
1936
|
include Aws::Structure
|
1901
1937
|
end
|
1902
1938
|
|
1903
|
-
# Settings to configure your translation output
|
1904
|
-
#
|
1905
|
-
#
|
1939
|
+
# Settings to configure your translation output. You can configure the
|
1940
|
+
# following options:
|
1941
|
+
#
|
1942
|
+
# * Brevity: reduces the length of the translation output for most
|
1943
|
+
# translations. Available for `TranslateText` only.
|
1944
|
+
#
|
1945
|
+
# * Formality: sets the formality level of the translation output.
|
1946
|
+
#
|
1947
|
+
# * Profanity: masks profane words and phrases in the translation
|
1948
|
+
# output.
|
1906
1949
|
#
|
1907
1950
|
# @!attribute [rw] formality
|
1908
|
-
# You can
|
1909
|
-
#
|
1910
|
-
#
|
1911
|
-
#
|
1912
|
-
#
|
1913
|
-
#
|
1914
|
-
#
|
1951
|
+
# You can specify the desired level of formality for translations to
|
1952
|
+
# supported target languages. The formality setting controls the level
|
1953
|
+
# of formal language usage (also known as [register][1]) in the
|
1954
|
+
# translation output. You can set the value to informal or formal. If
|
1955
|
+
# you don't specify a value for formality, or if the target language
|
1956
|
+
# doesn't support formality, the translation will ignore the
|
1957
|
+
# formality setting.
|
1915
1958
|
#
|
1916
1959
|
# If you specify multiple target languages for the job, translate
|
1917
1960
|
# ignores the formality setting for any unsupported target language.
|
@@ -1926,8 +1969,8 @@ module Aws::Translate
|
|
1926
1969
|
# @return [String]
|
1927
1970
|
#
|
1928
1971
|
# @!attribute [rw] profanity
|
1929
|
-
#
|
1930
|
-
#
|
1972
|
+
# You can enable the profanity setting if you want to mask profane
|
1973
|
+
# words and phrases in your translation output.
|
1931
1974
|
#
|
1932
1975
|
# To mask profane words and phrases, Amazon Translate replaces them
|
1933
1976
|
# with the grawlix string “?$#@$“. This 5-character sequence is used
|
@@ -1949,11 +1992,30 @@ module Aws::Translate
|
|
1949
1992
|
# [1]: https://docs.aws.amazon.com/translate/latest/dg/customizing-translations-profanity.html#customizing-translations-profanity-languages
|
1950
1993
|
# @return [String]
|
1951
1994
|
#
|
1995
|
+
# @!attribute [rw] brevity
|
1996
|
+
# When you turn on brevity, Amazon Translate reduces the length of the
|
1997
|
+
# translation output for most translations (when compared with the
|
1998
|
+
# same translation with brevity turned off). By default, brevity is
|
1999
|
+
# turned off.
|
2000
|
+
#
|
2001
|
+
# If you turn on brevity for a translation request with an unsupported
|
2002
|
+
# language pair, the translation proceeds with the brevity setting
|
2003
|
+
# turned off.
|
2004
|
+
#
|
2005
|
+
# For the language pairs that brevity supports, see [Using brevity][1]
|
2006
|
+
# in the Amazon Translate Developer Guide.
|
2007
|
+
#
|
2008
|
+
#
|
2009
|
+
#
|
2010
|
+
# [1]: https://docs.aws.amazon.com/translate/latest/dg/customizing-translations-brevity
|
2011
|
+
# @return [String]
|
2012
|
+
#
|
1952
2013
|
# @see http://docs.aws.amazon.com/goto/WebAPI/translate-2017-07-01/TranslationSettings AWS API Documentation
|
1953
2014
|
#
|
1954
2015
|
class TranslationSettings < Struct.new(
|
1955
2016
|
:formality,
|
1956
|
-
:profanity
|
2017
|
+
:profanity,
|
2018
|
+
:brevity)
|
1957
2019
|
SENSITIVE = []
|
1958
2020
|
include Aws::Structure
|
1959
2021
|
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.60.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: 2023-
|
11
|
+
date: 2023-10-31 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: aws-sdk-core
|