aws-sdk-translate 1.37.0 → 1.41.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 +20 -0
- data/VERSION +1 -1
- data/lib/aws-sdk-translate/client.rb +64 -8
- data/lib/aws-sdk-translate/client_api.rb +18 -1
- data/lib/aws-sdk-translate/types.rb +212 -31
- data/lib/aws-sdk-translate.rb +1 -1
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a0cd5212ff9f1bcc00b7f5854bc1d7d309b61166054b876ad5a98ab8111356ee
|
4
|
+
data.tar.gz: '080c4688c9808047cb337bdbb0966ffe0bb94895632cef1ac36196820ecfcac2'
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 257bc8b3d79e20b69e169846cf69403ce1b984dbd9cd281d3b35459a71a7542a3809a91277022de2a240b816d568dfcb0579c0a0d5366ffafd74e26903be24e5
|
7
|
+
data.tar.gz: 53eef698f30806fd8249c6d685e043366e220460b034b9b4d5e732a8b77e80b7ec89ce0fe3b558c0761cc27f0bf4a9ccf578c10faa0f037d22a2ec8bc0e0d746
|
data/CHANGELOG.md
CHANGED
@@ -1,6 +1,26 @@
|
|
1
1
|
Unreleased Changes
|
2
2
|
------------------
|
3
3
|
|
4
|
+
1.41.0 (2021-12-21)
|
5
|
+
------------------
|
6
|
+
|
7
|
+
* Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
|
8
|
+
|
9
|
+
1.40.0 (2021-11-30)
|
10
|
+
------------------
|
11
|
+
|
12
|
+
* Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
|
13
|
+
|
14
|
+
1.39.0 (2021-11-24)
|
15
|
+
------------------
|
16
|
+
|
17
|
+
* Feature - This release enables customers to use translation settings to mask profane words and phrases in their translation output.
|
18
|
+
|
19
|
+
1.38.0 (2021-11-11)
|
20
|
+
------------------
|
21
|
+
|
22
|
+
* Feature - This release enables customers to import Multi-Directional Custom Terminology and use Multi-Directional Custom Terminology in both real-time translation and asynchronous batch translation.
|
23
|
+
|
4
24
|
1.37.0 (2021-11-05)
|
5
25
|
------------------
|
6
26
|
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.
|
1
|
+
1.41.0
|
@@ -27,6 +27,7 @@ require 'aws-sdk-core/plugins/client_metrics_plugin.rb'
|
|
27
27
|
require 'aws-sdk-core/plugins/client_metrics_send_plugin.rb'
|
28
28
|
require 'aws-sdk-core/plugins/transfer_encoding.rb'
|
29
29
|
require 'aws-sdk-core/plugins/http_checksum.rb'
|
30
|
+
require 'aws-sdk-core/plugins/defaults_mode.rb'
|
30
31
|
require 'aws-sdk-core/plugins/signature_v4.rb'
|
31
32
|
require 'aws-sdk-core/plugins/protocols/json_rpc.rb'
|
32
33
|
|
@@ -73,6 +74,7 @@ module Aws::Translate
|
|
73
74
|
add_plugin(Aws::Plugins::ClientMetricsSendPlugin)
|
74
75
|
add_plugin(Aws::Plugins::TransferEncoding)
|
75
76
|
add_plugin(Aws::Plugins::HttpChecksum)
|
77
|
+
add_plugin(Aws::Plugins::DefaultsMode)
|
76
78
|
add_plugin(Aws::Plugins::SignatureV4)
|
77
79
|
add_plugin(Aws::Plugins::Protocols::JsonRpc)
|
78
80
|
|
@@ -119,7 +121,9 @@ module Aws::Translate
|
|
119
121
|
# * EC2/ECS IMDS instance profile - When used by default, the timeouts
|
120
122
|
# are very aggressive. Construct and pass an instance of
|
121
123
|
# `Aws::InstanceProfileCredentails` or `Aws::ECSCredentials` to
|
122
|
-
# enable retries and extended timeouts.
|
124
|
+
# enable retries and extended timeouts. Instance profile credential
|
125
|
+
# fetching can be disabled by setting ENV['AWS_EC2_METADATA_DISABLED']
|
126
|
+
# to true.
|
123
127
|
#
|
124
128
|
# @option options [required, String] :region
|
125
129
|
# The AWS region to connect to. The configured `:region` is
|
@@ -173,6 +177,10 @@ module Aws::Translate
|
|
173
177
|
# Used only in `standard` and adaptive retry modes. Specifies whether to apply
|
174
178
|
# a clock skew correction and retry requests with skewed client clocks.
|
175
179
|
#
|
180
|
+
# @option options [String] :defaults_mode ("legacy")
|
181
|
+
# See {Aws::DefaultsModeConfiguration} for a list of the
|
182
|
+
# accepted modes and the configuration defaults that are included.
|
183
|
+
#
|
176
184
|
# @option options [Boolean] :disable_host_prefix_injection (false)
|
177
185
|
# Set to true to disable SDK automatically adding host prefix
|
178
186
|
# to default service endpoint when available.
|
@@ -305,7 +313,7 @@ module Aws::Translate
|
|
305
313
|
# seconds to wait when opening a HTTP session before raising a
|
306
314
|
# `Timeout::Error`.
|
307
315
|
#
|
308
|
-
# @option options [
|
316
|
+
# @option options [Float] :http_read_timeout (60) The default
|
309
317
|
# number of seconds to wait for response data. This value can
|
310
318
|
# safely be set per-request on the session.
|
311
319
|
#
|
@@ -321,6 +329,9 @@ module Aws::Translate
|
|
321
329
|
# disables this behaviour. This value can safely be set per
|
322
330
|
# request on the session.
|
323
331
|
#
|
332
|
+
# @option options [Float] :ssl_timeout (nil) Sets the SSL timeout
|
333
|
+
# in seconds.
|
334
|
+
#
|
324
335
|
# @option options [Boolean] :http_wire_trace (false) When `true`,
|
325
336
|
# HTTP debug output will be sent to the `:logger`.
|
326
337
|
#
|
@@ -503,6 +514,7 @@ module Aws::Translate
|
|
503
514
|
# resp.text_translation_job_properties.output_data_config.encryption_key.type #=> String, one of "KMS"
|
504
515
|
# resp.text_translation_job_properties.output_data_config.encryption_key.id #=> String
|
505
516
|
# resp.text_translation_job_properties.data_access_role_arn #=> String
|
517
|
+
# resp.text_translation_job_properties.settings.profanity #=> String, one of "MASK"
|
506
518
|
#
|
507
519
|
# @see http://docs.aws.amazon.com/goto/WebAPI/translate-2017-07-01/DescribeTextTranslationJob AWS API Documentation
|
508
520
|
#
|
@@ -574,20 +586,29 @@ module Aws::Translate
|
|
574
586
|
# @option params [required, String] :name
|
575
587
|
# The name of the custom terminology being retrieved.
|
576
588
|
#
|
577
|
-
# @option params [
|
578
|
-
# The data format of the custom terminology being retrieved
|
579
|
-
#
|
589
|
+
# @option params [String] :terminology_data_format
|
590
|
+
# The data format of the custom terminology being retrieved.
|
591
|
+
#
|
592
|
+
# If you don't specify this parameter, Amazon Translate returns a file
|
593
|
+
# that has the same format as the file that was imported to create the
|
594
|
+
# terminology.
|
595
|
+
#
|
596
|
+
# If you specify this parameter when you retrieve a multi-directional
|
597
|
+
# terminology resource, you must specify the same format as that of the
|
598
|
+
# input file that was imported to create it. Otherwise, Amazon Translate
|
599
|
+
# throws an error.
|
580
600
|
#
|
581
601
|
# @return [Types::GetTerminologyResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
582
602
|
#
|
583
603
|
# * {Types::GetTerminologyResponse#terminology_properties #terminology_properties} => Types::TerminologyProperties
|
584
604
|
# * {Types::GetTerminologyResponse#terminology_data_location #terminology_data_location} => Types::TerminologyDataLocation
|
605
|
+
# * {Types::GetTerminologyResponse#auxiliary_data_location #auxiliary_data_location} => Types::TerminologyDataLocation
|
585
606
|
#
|
586
607
|
# @example Request syntax with placeholder values
|
587
608
|
#
|
588
609
|
# resp = client.get_terminology({
|
589
610
|
# name: "ResourceName", # required
|
590
|
-
# terminology_data_format: "CSV", #
|
611
|
+
# terminology_data_format: "CSV", # accepts CSV, TMX, TSV
|
591
612
|
# })
|
592
613
|
#
|
593
614
|
# @example Response structure
|
@@ -604,8 +625,14 @@ module Aws::Translate
|
|
604
625
|
# resp.terminology_properties.term_count #=> Integer
|
605
626
|
# resp.terminology_properties.created_at #=> Time
|
606
627
|
# resp.terminology_properties.last_updated_at #=> Time
|
628
|
+
# resp.terminology_properties.directionality #=> String, one of "UNI", "MULTI"
|
629
|
+
# resp.terminology_properties.message #=> String
|
630
|
+
# resp.terminology_properties.skipped_term_count #=> Integer
|
631
|
+
# resp.terminology_properties.format #=> String, one of "CSV", "TMX", "TSV"
|
607
632
|
# resp.terminology_data_location.repository_type #=> String
|
608
633
|
# resp.terminology_data_location.location #=> String
|
634
|
+
# resp.auxiliary_data_location.repository_type #=> String
|
635
|
+
# resp.auxiliary_data_location.location #=> String
|
609
636
|
#
|
610
637
|
# @see http://docs.aws.amazon.com/goto/WebAPI/translate-2017-07-01/GetTerminology AWS API Documentation
|
611
638
|
#
|
@@ -649,6 +676,7 @@ module Aws::Translate
|
|
649
676
|
# @return [Types::ImportTerminologyResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
650
677
|
#
|
651
678
|
# * {Types::ImportTerminologyResponse#terminology_properties #terminology_properties} => Types::TerminologyProperties
|
679
|
+
# * {Types::ImportTerminologyResponse#auxiliary_data_location #auxiliary_data_location} => Types::TerminologyDataLocation
|
652
680
|
#
|
653
681
|
# @example Request syntax with placeholder values
|
654
682
|
#
|
@@ -658,7 +686,8 @@ module Aws::Translate
|
|
658
686
|
# description: "Description",
|
659
687
|
# terminology_data: { # required
|
660
688
|
# file: "data", # required
|
661
|
-
# format: "CSV", # required, accepts CSV, TMX
|
689
|
+
# format: "CSV", # required, accepts CSV, TMX, TSV
|
690
|
+
# directionality: "UNI", # accepts UNI, MULTI
|
662
691
|
# },
|
663
692
|
# encryption_key: {
|
664
693
|
# type: "KMS", # required, accepts KMS
|
@@ -680,6 +709,12 @@ module Aws::Translate
|
|
680
709
|
# resp.terminology_properties.term_count #=> Integer
|
681
710
|
# resp.terminology_properties.created_at #=> Time
|
682
711
|
# resp.terminology_properties.last_updated_at #=> Time
|
712
|
+
# resp.terminology_properties.directionality #=> String, one of "UNI", "MULTI"
|
713
|
+
# resp.terminology_properties.message #=> String
|
714
|
+
# resp.terminology_properties.skipped_term_count #=> Integer
|
715
|
+
# resp.terminology_properties.format #=> String, one of "CSV", "TMX", "TSV"
|
716
|
+
# resp.auxiliary_data_location.repository_type #=> String
|
717
|
+
# resp.auxiliary_data_location.location #=> String
|
683
718
|
#
|
684
719
|
# @see http://docs.aws.amazon.com/goto/WebAPI/translate-2017-07-01/ImportTerminology AWS API Documentation
|
685
720
|
#
|
@@ -786,6 +821,10 @@ module Aws::Translate
|
|
786
821
|
# resp.terminology_properties_list[0].term_count #=> Integer
|
787
822
|
# resp.terminology_properties_list[0].created_at #=> Time
|
788
823
|
# resp.terminology_properties_list[0].last_updated_at #=> Time
|
824
|
+
# resp.terminology_properties_list[0].directionality #=> String, one of "UNI", "MULTI"
|
825
|
+
# resp.terminology_properties_list[0].message #=> String
|
826
|
+
# resp.terminology_properties_list[0].skipped_term_count #=> Integer
|
827
|
+
# resp.terminology_properties_list[0].format #=> String, one of "CSV", "TMX", "TSV"
|
789
828
|
# resp.next_token #=> String
|
790
829
|
#
|
791
830
|
# @see http://docs.aws.amazon.com/goto/WebAPI/translate-2017-07-01/ListTerminologies AWS API Documentation
|
@@ -856,6 +895,7 @@ module Aws::Translate
|
|
856
895
|
# resp.text_translation_job_properties_list[0].output_data_config.encryption_key.type #=> String, one of "KMS"
|
857
896
|
# resp.text_translation_job_properties_list[0].output_data_config.encryption_key.id #=> String
|
858
897
|
# resp.text_translation_job_properties_list[0].data_access_role_arn #=> String
|
898
|
+
# resp.text_translation_job_properties_list[0].settings.profanity #=> String, one of "MASK"
|
859
899
|
# resp.next_token #=> String
|
860
900
|
#
|
861
901
|
# @see http://docs.aws.amazon.com/goto/WebAPI/translate-2017-07-01/ListTextTranslationJobs AWS API Documentation
|
@@ -948,6 +988,10 @@ module Aws::Translate
|
|
948
988
|
# **A suitable default value is auto-generated.** You should normally
|
949
989
|
# not need to pass this option.**
|
950
990
|
#
|
991
|
+
# @option params [Types::TranslationSettings] :settings
|
992
|
+
# Settings to configure your translation output, including the option to
|
993
|
+
# mask profane words and phrases.
|
994
|
+
#
|
951
995
|
# @return [Types::StartTextTranslationJobResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
952
996
|
#
|
953
997
|
# * {Types::StartTextTranslationJobResponse#job_id #job_id} => String
|
@@ -974,6 +1018,9 @@ module Aws::Translate
|
|
974
1018
|
# terminology_names: ["ResourceName"],
|
975
1019
|
# parallel_data_names: ["ResourceName"],
|
976
1020
|
# client_token: "ClientTokenString", # required
|
1021
|
+
# settings: {
|
1022
|
+
# profanity: "MASK", # accepts MASK
|
1023
|
+
# },
|
977
1024
|
# })
|
978
1025
|
#
|
979
1026
|
# @example Response structure
|
@@ -1062,12 +1109,17 @@ module Aws::Translate
|
|
1062
1109
|
# The language code requested for the language of the target text. The
|
1063
1110
|
# language must be a language supported by Amazon Translate.
|
1064
1111
|
#
|
1112
|
+
# @option params [Types::TranslationSettings] :settings
|
1113
|
+
# Settings to configure your translation output, including the option to
|
1114
|
+
# mask profane words and phrases.
|
1115
|
+
#
|
1065
1116
|
# @return [Types::TranslateTextResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
1066
1117
|
#
|
1067
1118
|
# * {Types::TranslateTextResponse#translated_text #translated_text} => String
|
1068
1119
|
# * {Types::TranslateTextResponse#source_language_code #source_language_code} => String
|
1069
1120
|
# * {Types::TranslateTextResponse#target_language_code #target_language_code} => String
|
1070
1121
|
# * {Types::TranslateTextResponse#applied_terminologies #applied_terminologies} => Array<Types::AppliedTerminology>
|
1122
|
+
# * {Types::TranslateTextResponse#applied_settings #applied_settings} => Types::TranslationSettings
|
1071
1123
|
#
|
1072
1124
|
# @example Request syntax with placeholder values
|
1073
1125
|
#
|
@@ -1076,6 +1128,9 @@ module Aws::Translate
|
|
1076
1128
|
# terminology_names: ["ResourceName"],
|
1077
1129
|
# source_language_code: "LanguageCodeString", # required
|
1078
1130
|
# target_language_code: "LanguageCodeString", # required
|
1131
|
+
# settings: {
|
1132
|
+
# profanity: "MASK", # accepts MASK
|
1133
|
+
# },
|
1079
1134
|
# })
|
1080
1135
|
#
|
1081
1136
|
# @example Response structure
|
@@ -1088,6 +1143,7 @@ module Aws::Translate
|
|
1088
1143
|
# resp.applied_terminologies[0].terms #=> Array
|
1089
1144
|
# resp.applied_terminologies[0].terms[0].source_text #=> String
|
1090
1145
|
# resp.applied_terminologies[0].terms[0].target_text #=> String
|
1146
|
+
# resp.applied_settings.profanity #=> String, one of "MASK"
|
1091
1147
|
#
|
1092
1148
|
# @see http://docs.aws.amazon.com/goto/WebAPI/translate-2017-07-01/TranslateText AWS API Documentation
|
1093
1149
|
#
|
@@ -1166,7 +1222,7 @@ module Aws::Translate
|
|
1166
1222
|
params: params,
|
1167
1223
|
config: config)
|
1168
1224
|
context[:gem_name] = 'aws-sdk-translate'
|
1169
|
-
context[:gem_version] = '1.
|
1225
|
+
context[:gem_version] = '1.41.0'
|
1170
1226
|
Seahorse::Client::Request.new(handlers, context)
|
1171
1227
|
end
|
1172
1228
|
|
@@ -29,6 +29,7 @@ module Aws::Translate
|
|
29
29
|
DescribeTextTranslationJobResponse = Shapes::StructureShape.new(name: 'DescribeTextTranslationJobResponse')
|
30
30
|
Description = Shapes::StringShape.new(name: 'Description')
|
31
31
|
DetectedLanguageLowConfidenceException = Shapes::StructureShape.new(name: 'DetectedLanguageLowConfidenceException')
|
32
|
+
Directionality = Shapes::StringShape.new(name: 'Directionality')
|
32
33
|
EncryptionKey = Shapes::StructureShape.new(name: 'EncryptionKey')
|
33
34
|
EncryptionKeyID = Shapes::StringShape.new(name: 'EncryptionKeyID')
|
34
35
|
EncryptionKeyType = Shapes::StringShape.new(name: 'EncryptionKeyType')
|
@@ -70,6 +71,7 @@ module Aws::Translate
|
|
70
71
|
ParallelDataProperties = Shapes::StructureShape.new(name: 'ParallelDataProperties')
|
71
72
|
ParallelDataPropertiesList = Shapes::ListShape.new(name: 'ParallelDataPropertiesList')
|
72
73
|
ParallelDataStatus = Shapes::StringShape.new(name: 'ParallelDataStatus')
|
74
|
+
Profanity = Shapes::StringShape.new(name: 'Profanity')
|
73
75
|
ResourceName = Shapes::StringShape.new(name: 'ResourceName')
|
74
76
|
ResourceNameList = Shapes::ListShape.new(name: 'ResourceNameList')
|
75
77
|
ResourceNotFoundException = Shapes::StructureShape.new(name: 'ResourceNotFoundException')
|
@@ -98,6 +100,7 @@ module Aws::Translate
|
|
98
100
|
TooManyRequestsException = Shapes::StructureShape.new(name: 'TooManyRequestsException')
|
99
101
|
TranslateTextRequest = Shapes::StructureShape.new(name: 'TranslateTextRequest')
|
100
102
|
TranslateTextResponse = Shapes::StructureShape.new(name: 'TranslateTextResponse')
|
103
|
+
TranslationSettings = Shapes::StructureShape.new(name: 'TranslationSettings')
|
101
104
|
UnboundedLengthString = Shapes::StringShape.new(name: 'UnboundedLengthString')
|
102
105
|
UnsupportedLanguagePairException = Shapes::StructureShape.new(name: 'UnsupportedLanguagePairException')
|
103
106
|
UpdateParallelDataRequest = Shapes::StructureShape.new(name: 'UpdateParallelDataRequest')
|
@@ -160,11 +163,12 @@ module Aws::Translate
|
|
160
163
|
GetParallelDataResponse.struct_class = Types::GetParallelDataResponse
|
161
164
|
|
162
165
|
GetTerminologyRequest.add_member(:name, Shapes::ShapeRef.new(shape: ResourceName, required: true, location_name: "Name"))
|
163
|
-
GetTerminologyRequest.add_member(:terminology_data_format, Shapes::ShapeRef.new(shape: TerminologyDataFormat,
|
166
|
+
GetTerminologyRequest.add_member(:terminology_data_format, Shapes::ShapeRef.new(shape: TerminologyDataFormat, location_name: "TerminologyDataFormat"))
|
164
167
|
GetTerminologyRequest.struct_class = Types::GetTerminologyRequest
|
165
168
|
|
166
169
|
GetTerminologyResponse.add_member(:terminology_properties, Shapes::ShapeRef.new(shape: TerminologyProperties, location_name: "TerminologyProperties"))
|
167
170
|
GetTerminologyResponse.add_member(:terminology_data_location, Shapes::ShapeRef.new(shape: TerminologyDataLocation, location_name: "TerminologyDataLocation"))
|
171
|
+
GetTerminologyResponse.add_member(:auxiliary_data_location, Shapes::ShapeRef.new(shape: TerminologyDataLocation, location_name: "AuxiliaryDataLocation"))
|
168
172
|
GetTerminologyResponse.struct_class = Types::GetTerminologyResponse
|
169
173
|
|
170
174
|
ImportTerminologyRequest.add_member(:name, Shapes::ShapeRef.new(shape: ResourceName, required: true, location_name: "Name"))
|
@@ -175,6 +179,7 @@ module Aws::Translate
|
|
175
179
|
ImportTerminologyRequest.struct_class = Types::ImportTerminologyRequest
|
176
180
|
|
177
181
|
ImportTerminologyResponse.add_member(:terminology_properties, Shapes::ShapeRef.new(shape: TerminologyProperties, location_name: "TerminologyProperties"))
|
182
|
+
ImportTerminologyResponse.add_member(:auxiliary_data_location, Shapes::ShapeRef.new(shape: TerminologyDataLocation, location_name: "AuxiliaryDataLocation"))
|
178
183
|
ImportTerminologyResponse.struct_class = Types::ImportTerminologyResponse
|
179
184
|
|
180
185
|
InputDataConfig.add_member(:s3_uri, Shapes::ShapeRef.new(shape: S3Uri, required: true, location_name: "S3Uri"))
|
@@ -278,6 +283,7 @@ module Aws::Translate
|
|
278
283
|
StartTextTranslationJobRequest.add_member(:terminology_names, Shapes::ShapeRef.new(shape: ResourceNameList, location_name: "TerminologyNames"))
|
279
284
|
StartTextTranslationJobRequest.add_member(:parallel_data_names, Shapes::ShapeRef.new(shape: ResourceNameList, location_name: "ParallelDataNames"))
|
280
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"))
|
281
287
|
StartTextTranslationJobRequest.struct_class = Types::StartTextTranslationJobRequest
|
282
288
|
|
283
289
|
StartTextTranslationJobResponse.add_member(:job_id, Shapes::ShapeRef.new(shape: JobId, location_name: "JobId"))
|
@@ -301,6 +307,7 @@ module Aws::Translate
|
|
301
307
|
|
302
308
|
TerminologyData.add_member(:file, Shapes::ShapeRef.new(shape: TerminologyFile, required: true, location_name: "File"))
|
303
309
|
TerminologyData.add_member(:format, Shapes::ShapeRef.new(shape: TerminologyDataFormat, required: true, location_name: "Format"))
|
310
|
+
TerminologyData.add_member(:directionality, Shapes::ShapeRef.new(shape: Directionality, location_name: "Directionality"))
|
304
311
|
TerminologyData.struct_class = Types::TerminologyData
|
305
312
|
|
306
313
|
TerminologyDataLocation.add_member(:repository_type, Shapes::ShapeRef.new(shape: String, required: true, location_name: "RepositoryType"))
|
@@ -317,6 +324,10 @@ module Aws::Translate
|
|
317
324
|
TerminologyProperties.add_member(:term_count, Shapes::ShapeRef.new(shape: Integer, location_name: "TermCount"))
|
318
325
|
TerminologyProperties.add_member(:created_at, Shapes::ShapeRef.new(shape: Timestamp, location_name: "CreatedAt"))
|
319
326
|
TerminologyProperties.add_member(:last_updated_at, Shapes::ShapeRef.new(shape: Timestamp, location_name: "LastUpdatedAt"))
|
327
|
+
TerminologyProperties.add_member(:directionality, Shapes::ShapeRef.new(shape: Directionality, location_name: "Directionality"))
|
328
|
+
TerminologyProperties.add_member(:message, Shapes::ShapeRef.new(shape: UnboundedLengthString, location_name: "Message"))
|
329
|
+
TerminologyProperties.add_member(:skipped_term_count, Shapes::ShapeRef.new(shape: Integer, location_name: "SkippedTermCount"))
|
330
|
+
TerminologyProperties.add_member(:format, Shapes::ShapeRef.new(shape: TerminologyDataFormat, location_name: "Format"))
|
320
331
|
TerminologyProperties.struct_class = Types::TerminologyProperties
|
321
332
|
|
322
333
|
TerminologyPropertiesList.member = Shapes::ShapeRef.new(shape: TerminologyProperties)
|
@@ -344,6 +355,7 @@ module Aws::Translate
|
|
344
355
|
TextTranslationJobProperties.add_member(:input_data_config, Shapes::ShapeRef.new(shape: InputDataConfig, location_name: "InputDataConfig"))
|
345
356
|
TextTranslationJobProperties.add_member(:output_data_config, Shapes::ShapeRef.new(shape: OutputDataConfig, location_name: "OutputDataConfig"))
|
346
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"))
|
347
359
|
TextTranslationJobProperties.struct_class = Types::TextTranslationJobProperties
|
348
360
|
|
349
361
|
TextTranslationJobPropertiesList.member = Shapes::ShapeRef.new(shape: TextTranslationJobProperties)
|
@@ -355,14 +367,19 @@ module Aws::Translate
|
|
355
367
|
TranslateTextRequest.add_member(:terminology_names, Shapes::ShapeRef.new(shape: ResourceNameList, location_name: "TerminologyNames"))
|
356
368
|
TranslateTextRequest.add_member(:source_language_code, Shapes::ShapeRef.new(shape: LanguageCodeString, required: true, location_name: "SourceLanguageCode"))
|
357
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"))
|
358
371
|
TranslateTextRequest.struct_class = Types::TranslateTextRequest
|
359
372
|
|
360
373
|
TranslateTextResponse.add_member(:translated_text, Shapes::ShapeRef.new(shape: String, required: true, location_name: "TranslatedText"))
|
361
374
|
TranslateTextResponse.add_member(:source_language_code, Shapes::ShapeRef.new(shape: LanguageCodeString, required: true, location_name: "SourceLanguageCode"))
|
362
375
|
TranslateTextResponse.add_member(:target_language_code, Shapes::ShapeRef.new(shape: LanguageCodeString, required: true, location_name: "TargetLanguageCode"))
|
363
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"))
|
364
378
|
TranslateTextResponse.struct_class = Types::TranslateTextResponse
|
365
379
|
|
380
|
+
TranslationSettings.add_member(:profanity, Shapes::ShapeRef.new(shape: Profanity, location_name: "Profanity"))
|
381
|
+
TranslationSettings.struct_class = Types::TranslationSettings
|
382
|
+
|
366
383
|
UnsupportedLanguagePairException.add_member(:message, Shapes::ShapeRef.new(shape: String, location_name: "Message"))
|
367
384
|
UnsupportedLanguagePairException.add_member(:source_language_code, Shapes::ShapeRef.new(shape: LanguageCodeString, location_name: "SourceLanguageCode"))
|
368
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
|
@@ -358,7 +358,7 @@ module Aws::Translate
|
|
358
358
|
#
|
359
359
|
# {
|
360
360
|
# name: "ResourceName", # required
|
361
|
-
# terminology_data_format: "CSV", #
|
361
|
+
# terminology_data_format: "CSV", # accepts CSV, TMX, TSV
|
362
362
|
# }
|
363
363
|
#
|
364
364
|
# @!attribute [rw] name
|
@@ -366,8 +366,16 @@ module Aws::Translate
|
|
366
366
|
# @return [String]
|
367
367
|
#
|
368
368
|
# @!attribute [rw] terminology_data_format
|
369
|
-
# The data format of the custom terminology being retrieved
|
370
|
-
#
|
369
|
+
# The data format of the custom terminology being retrieved.
|
370
|
+
#
|
371
|
+
# If you don't specify this parameter, Amazon Translate returns a
|
372
|
+
# file that has the same format as the file that was imported to
|
373
|
+
# create the terminology.
|
374
|
+
#
|
375
|
+
# If you specify this parameter when you retrieve a multi-directional
|
376
|
+
# terminology resource, you must specify the same format as that of
|
377
|
+
# the input file that was imported to create it. Otherwise, Amazon
|
378
|
+
# Translate throws an error.
|
371
379
|
# @return [String]
|
372
380
|
#
|
373
381
|
# @see http://docs.aws.amazon.com/goto/WebAPI/translate-2017-07-01/GetTerminologyRequest AWS API Documentation
|
@@ -384,16 +392,38 @@ module Aws::Translate
|
|
384
392
|
# @return [Types::TerminologyProperties]
|
385
393
|
#
|
386
394
|
# @!attribute [rw] terminology_data_location
|
387
|
-
# The
|
388
|
-
#
|
389
|
-
# 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.
|
411
|
+
# @return [Types::TerminologyDataLocation]
|
412
|
+
#
|
413
|
+
# @!attribute [rw] auxiliary_data_location
|
414
|
+
# The Amazon S3 location of a file that provides any errors or
|
415
|
+
# warnings that were produced by your input file. This file was
|
416
|
+
# created when Amazon Translate attempted to create a terminology
|
417
|
+
# resource. The location is returned as a presigned URL to that has a
|
418
|
+
# 30 minute expiration.
|
390
419
|
# @return [Types::TerminologyDataLocation]
|
391
420
|
#
|
392
421
|
# @see http://docs.aws.amazon.com/goto/WebAPI/translate-2017-07-01/GetTerminologyResponse AWS API Documentation
|
393
422
|
#
|
394
423
|
class GetTerminologyResponse < Struct.new(
|
395
424
|
:terminology_properties,
|
396
|
-
:terminology_data_location
|
425
|
+
:terminology_data_location,
|
426
|
+
:auxiliary_data_location)
|
397
427
|
SENSITIVE = []
|
398
428
|
include Aws::Structure
|
399
429
|
end
|
@@ -407,7 +437,8 @@ module Aws::Translate
|
|
407
437
|
# description: "Description",
|
408
438
|
# terminology_data: { # required
|
409
439
|
# file: "data", # required
|
410
|
-
# format: "CSV", # required, accepts CSV, TMX
|
440
|
+
# format: "CSV", # required, accepts CSV, TMX, TSV
|
441
|
+
# directionality: "UNI", # accepts UNI, MULTI
|
411
442
|
# },
|
412
443
|
# encryption_key: {
|
413
444
|
# type: "KMS", # required, accepts KMS
|
@@ -454,10 +485,19 @@ module Aws::Translate
|
|
454
485
|
# The properties of the custom terminology being imported.
|
455
486
|
# @return [Types::TerminologyProperties]
|
456
487
|
#
|
488
|
+
# @!attribute [rw] auxiliary_data_location
|
489
|
+
# The Amazon S3 location of a file that provides any errors or
|
490
|
+
# warnings that were produced by your input file. This file was
|
491
|
+
# created when Amazon Translate attempted to create a terminology
|
492
|
+
# resource. The location is returned as a presigned URL to that has a
|
493
|
+
# 30 minute expiration.
|
494
|
+
# @return [Types::TerminologyDataLocation]
|
495
|
+
#
|
457
496
|
# @see http://docs.aws.amazon.com/goto/WebAPI/translate-2017-07-01/ImportTerminologyResponse AWS API Documentation
|
458
497
|
#
|
459
498
|
class ImportTerminologyResponse < Struct.new(
|
460
|
-
:terminology_properties
|
499
|
+
:terminology_properties,
|
500
|
+
:auxiliary_data_location)
|
461
501
|
SENSITIVE = []
|
462
502
|
include Aws::Structure
|
463
503
|
end
|
@@ -842,8 +882,8 @@ module Aws::Translate
|
|
842
882
|
# The Amazon S3 location of the parallel data input file. The location
|
843
883
|
# is returned as a presigned URL to that has a 30 minute expiration.
|
844
884
|
#
|
845
|
-
# Amazon Translate doesn't scan
|
846
|
-
#
|
885
|
+
# Amazon Translate doesn't scan all input files for the risk of CSV
|
886
|
+
# injection attacks.
|
847
887
|
#
|
848
888
|
# CSV injection occurs when a .csv or .tsv file is altered so that a
|
849
889
|
# record contains malicious code. The record begins with a special
|
@@ -851,8 +891,8 @@ module Aws::Translate
|
|
851
891
|
# spreadsheet program, the program might interpret the record as a
|
852
892
|
# formula and run the code within it.
|
853
893
|
#
|
854
|
-
# Before you download
|
855
|
-
#
|
894
|
+
# Before you download an input file from Amazon S3, ensure that you
|
895
|
+
# recognize the file and trust its creator.
|
856
896
|
# @return [String]
|
857
897
|
#
|
858
898
|
# @see http://docs.aws.amazon.com/goto/WebAPI/translate-2017-07-01/ParallelDataDataLocation AWS API Documentation
|
@@ -1025,6 +1065,9 @@ module Aws::Translate
|
|
1025
1065
|
# terminology_names: ["ResourceName"],
|
1026
1066
|
# parallel_data_names: ["ResourceName"],
|
1027
1067
|
# client_token: "ClientTokenString", # required
|
1068
|
+
# settings: {
|
1069
|
+
# profanity: "MASK", # accepts MASK
|
1070
|
+
# },
|
1028
1071
|
# }
|
1029
1072
|
#
|
1030
1073
|
# @!attribute [rw] job_name
|
@@ -1104,6 +1147,11 @@ module Aws::Translate
|
|
1104
1147
|
# not need to pass this option.
|
1105
1148
|
# @return [String]
|
1106
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
|
+
#
|
1107
1155
|
# @see http://docs.aws.amazon.com/goto/WebAPI/translate-2017-07-01/StartTextTranslationJobRequest AWS API Documentation
|
1108
1156
|
#
|
1109
1157
|
class StartTextTranslationJobRequest < Struct.new(
|
@@ -1115,7 +1163,8 @@ module Aws::Translate
|
|
1115
1163
|
:target_language_codes,
|
1116
1164
|
:terminology_names,
|
1117
1165
|
:parallel_data_names,
|
1118
|
-
:client_token
|
1166
|
+
:client_token,
|
1167
|
+
:settings)
|
1119
1168
|
SENSITIVE = []
|
1120
1169
|
include Aws::Structure
|
1121
1170
|
end
|
@@ -1222,7 +1271,8 @@ module Aws::Translate
|
|
1222
1271
|
#
|
1223
1272
|
# {
|
1224
1273
|
# file: "data", # required
|
1225
|
-
# format: "CSV", # required, accepts CSV, TMX
|
1274
|
+
# format: "CSV", # required, accepts CSV, TMX, TSV
|
1275
|
+
# directionality: "UNI", # accepts UNI, MULTI
|
1226
1276
|
# }
|
1227
1277
|
#
|
1228
1278
|
# @!attribute [rw] file
|
@@ -1233,14 +1283,40 @@ module Aws::Translate
|
|
1233
1283
|
# @return [String]
|
1234
1284
|
#
|
1235
1285
|
# @!attribute [rw] format
|
1236
|
-
# The data format of the custom terminology.
|
1286
|
+
# The data format of the custom terminology.
|
1287
|
+
# @return [String]
|
1288
|
+
#
|
1289
|
+
# @!attribute [rw] directionality
|
1290
|
+
# The directionality of your terminology resource indicates whether it
|
1291
|
+
# has one source language (uni-directional) or multiple
|
1292
|
+
# (multi-directional).
|
1293
|
+
#
|
1294
|
+
# UNI
|
1295
|
+
#
|
1296
|
+
# : The terminology resource has one source language (for example, the
|
1297
|
+
# first column in a CSV file), and all of its other languages are
|
1298
|
+
# target languages.
|
1299
|
+
#
|
1300
|
+
# MULTI
|
1301
|
+
#
|
1302
|
+
# : Any language in the terminology resource can be the source
|
1303
|
+
# language or a target language. A single multi-directional
|
1304
|
+
# terminology resource can be used for jobs that translate different
|
1305
|
+
# language pairs. For example, if the terminology contains terms in
|
1306
|
+
# English and Spanish, then it can be used for jobs that translate
|
1307
|
+
# English to Spanish and jobs that translate Spanish to English.
|
1308
|
+
#
|
1309
|
+
# When you create a custom terminology resource without specifying the
|
1310
|
+
# directionality, it behaves as uni-directional terminology, although
|
1311
|
+
# this parameter will have a null value.
|
1237
1312
|
# @return [String]
|
1238
1313
|
#
|
1239
1314
|
# @see http://docs.aws.amazon.com/goto/WebAPI/translate-2017-07-01/TerminologyData AWS API Documentation
|
1240
1315
|
#
|
1241
1316
|
class TerminologyData < Struct.new(
|
1242
1317
|
:file,
|
1243
|
-
:format
|
1318
|
+
:format,
|
1319
|
+
:directionality)
|
1244
1320
|
SENSITIVE = [:file]
|
1245
1321
|
include Aws::Structure
|
1246
1322
|
end
|
@@ -1252,7 +1328,22 @@ module Aws::Translate
|
|
1252
1328
|
# @return [String]
|
1253
1329
|
#
|
1254
1330
|
# @!attribute [rw] location
|
1255
|
-
# 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.
|
1256
1347
|
# @return [String]
|
1257
1348
|
#
|
1258
1349
|
# @see http://docs.aws.amazon.com/goto/WebAPI/translate-2017-07-01/TerminologyDataLocation AWS API Documentation
|
@@ -1285,8 +1376,8 @@ module Aws::Translate
|
|
1285
1376
|
#
|
1286
1377
|
# @!attribute [rw] target_language_codes
|
1287
1378
|
# The language codes for the target languages available with the
|
1288
|
-
# custom terminology
|
1289
|
-
# in array.
|
1379
|
+
# custom terminology resource. All possible target languages are
|
1380
|
+
# returned in array.
|
1290
1381
|
# @return [Array<String>]
|
1291
1382
|
#
|
1292
1383
|
# @!attribute [rw] encryption_key
|
@@ -1311,6 +1402,37 @@ module Aws::Translate
|
|
1311
1402
|
# the timestamp.
|
1312
1403
|
# @return [Time]
|
1313
1404
|
#
|
1405
|
+
# @!attribute [rw] directionality
|
1406
|
+
# The directionality of your terminology resource indicates whether it
|
1407
|
+
# has one source language (uni-directional) or multiple
|
1408
|
+
# (multi-directional).
|
1409
|
+
#
|
1410
|
+
# UNI
|
1411
|
+
#
|
1412
|
+
# : The terminology resource has one source language (the first column
|
1413
|
+
# in a CSV file), and all of its other languages are target
|
1414
|
+
# languages.
|
1415
|
+
#
|
1416
|
+
# MULTI
|
1417
|
+
#
|
1418
|
+
# : Any language in the terminology resource can be the source
|
1419
|
+
# language.
|
1420
|
+
# @return [String]
|
1421
|
+
#
|
1422
|
+
# @!attribute [rw] message
|
1423
|
+
# Additional information from Amazon Translate about the terminology
|
1424
|
+
# resource.
|
1425
|
+
# @return [String]
|
1426
|
+
#
|
1427
|
+
# @!attribute [rw] skipped_term_count
|
1428
|
+
# The number of terms in the input file that Amazon Translate skipped
|
1429
|
+
# when you created or updated the terminology resource.
|
1430
|
+
# @return [Integer]
|
1431
|
+
#
|
1432
|
+
# @!attribute [rw] format
|
1433
|
+
# The format of the custom terminology input file.
|
1434
|
+
# @return [String]
|
1435
|
+
#
|
1314
1436
|
# @see http://docs.aws.amazon.com/goto/WebAPI/translate-2017-07-01/TerminologyProperties AWS API Documentation
|
1315
1437
|
#
|
1316
1438
|
class TerminologyProperties < Struct.new(
|
@@ -1323,7 +1445,11 @@ module Aws::Translate
|
|
1323
1445
|
:size_bytes,
|
1324
1446
|
:term_count,
|
1325
1447
|
:created_at,
|
1326
|
-
:last_updated_at
|
1448
|
+
:last_updated_at,
|
1449
|
+
:directionality,
|
1450
|
+
:message,
|
1451
|
+
:skipped_term_count,
|
1452
|
+
:format)
|
1327
1453
|
SENSITIVE = []
|
1328
1454
|
include Aws::Structure
|
1329
1455
|
end
|
@@ -1458,6 +1584,10 @@ module Aws::Translate
|
|
1458
1584
|
# the job's input data.
|
1459
1585
|
# @return [String]
|
1460
1586
|
#
|
1587
|
+
# @!attribute [rw] settings
|
1588
|
+
# Settings that configure the translation output.
|
1589
|
+
# @return [Types::TranslationSettings]
|
1590
|
+
#
|
1461
1591
|
# @see http://docs.aws.amazon.com/goto/WebAPI/translate-2017-07-01/TextTranslationJobProperties AWS API Documentation
|
1462
1592
|
#
|
1463
1593
|
class TextTranslationJobProperties < Struct.new(
|
@@ -1474,7 +1604,8 @@ module Aws::Translate
|
|
1474
1604
|
:end_time,
|
1475
1605
|
:input_data_config,
|
1476
1606
|
:output_data_config,
|
1477
|
-
:data_access_role_arn
|
1607
|
+
:data_access_role_arn,
|
1608
|
+
:settings)
|
1478
1609
|
SENSITIVE = []
|
1479
1610
|
include Aws::Structure
|
1480
1611
|
end
|
@@ -1501,6 +1632,9 @@ module Aws::Translate
|
|
1501
1632
|
# terminology_names: ["ResourceName"],
|
1502
1633
|
# source_language_code: "LanguageCodeString", # required
|
1503
1634
|
# target_language_code: "LanguageCodeString", # required
|
1635
|
+
# settings: {
|
1636
|
+
# profanity: "MASK", # accepts MASK
|
1637
|
+
# },
|
1504
1638
|
# }
|
1505
1639
|
#
|
1506
1640
|
# @!attribute [rw] text
|
@@ -1536,13 +1670,19 @@ module Aws::Translate
|
|
1536
1670
|
# language must be a language supported by Amazon Translate.
|
1537
1671
|
# @return [String]
|
1538
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
|
+
#
|
1539
1678
|
# @see http://docs.aws.amazon.com/goto/WebAPI/translate-2017-07-01/TranslateTextRequest AWS API Documentation
|
1540
1679
|
#
|
1541
1680
|
class TranslateTextRequest < Struct.new(
|
1542
1681
|
:text,
|
1543
1682
|
:terminology_names,
|
1544
1683
|
:source_language_code,
|
1545
|
-
:target_language_code
|
1684
|
+
:target_language_code,
|
1685
|
+
:settings)
|
1546
1686
|
SENSITIVE = []
|
1547
1687
|
include Aws::Structure
|
1548
1688
|
end
|
@@ -1564,13 +1704,54 @@ module Aws::Translate
|
|
1564
1704
|
# Amazon Translate for the translated text response.
|
1565
1705
|
# @return [Array<Types::AppliedTerminology>]
|
1566
1706
|
#
|
1707
|
+
# @!attribute [rw] applied_settings
|
1708
|
+
# Settings that configure the translation output.
|
1709
|
+
# @return [Types::TranslationSettings]
|
1710
|
+
#
|
1567
1711
|
# @see http://docs.aws.amazon.com/goto/WebAPI/translate-2017-07-01/TranslateTextResponse AWS API Documentation
|
1568
1712
|
#
|
1569
1713
|
class TranslateTextResponse < Struct.new(
|
1570
1714
|
:translated_text,
|
1571
1715
|
:source_language_code,
|
1572
1716
|
:target_language_code,
|
1573
|
-
: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)
|
1574
1755
|
SENSITIVE = []
|
1575
1756
|
include Aws::Structure
|
1576
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.41.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
|
+
date: 2021-12-21 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: aws-sdk-core
|
@@ -19,7 +19,7 @@ dependencies:
|
|
19
19
|
version: '3'
|
20
20
|
- - ">="
|
21
21
|
- !ruby/object:Gem::Version
|
22
|
-
version: 3.
|
22
|
+
version: 3.125.0
|
23
23
|
type: :runtime
|
24
24
|
prerelease: false
|
25
25
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -29,7 +29,7 @@ dependencies:
|
|
29
29
|
version: '3'
|
30
30
|
- - ">="
|
31
31
|
- !ruby/object:Gem::Version
|
32
|
-
version: 3.
|
32
|
+
version: 3.125.0
|
33
33
|
- !ruby/object:Gem::Dependency
|
34
34
|
name: aws-sigv4
|
35
35
|
requirement: !ruby/object:Gem::Requirement
|