aws-sdk-translate 1.35.0 → 1.39.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 15dd1e5f20efc46442026c970005c5900af5b37d7a2fc67ce05f2801e718f258
4
- data.tar.gz: 9d50f7dcee832c143bc5250d927d44d7c280fb286ae7ee64c95b347557b3ffa0
3
+ metadata.gz: d2d3da6497b0b23edf01695cfce94636419cca1a56d265a0c4ca00ac04caaeda
4
+ data.tar.gz: 88736a9ff112f357ef12224a3bb7844477a9ac3caba1df32ff22173b30ff9d4e
5
5
  SHA512:
6
- metadata.gz: 3b70e6ace3716a2309aa3a8ce658a2c7ebb9134f899b546e88bc9fe1b9155b4235c9a0d403ac668b545526bf01d85ecfc809633fa1a41aeaac8cccd46af8b67f
7
- data.tar.gz: 3246e977e673a178a98dc767605dbec3c8d64ed790c307b1230e8e999164aec1ad20e3fab5db03a247fe633116b4a8d3d1a113be6c7db2b5a601cfa6e9ad7769
6
+ metadata.gz: d8620eb7e43d1c7de93c7f12ee0dfd9f4524534b73904d7f26afff0494713845e6475d97acb041b3aca60d0f6189f7d8cf2f00cf831bdfedda4c2781f873c677
7
+ data.tar.gz: 5b7398875dd09ad3175a56568f548ec3b1ec25b1d415868f11323013193d3d10d442905969105065544b1844f43fd87f01c32cbf693e6855b2d0c363f9246bd1
data/CHANGELOG.md CHANGED
@@ -1,6 +1,26 @@
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
+
9
+ 1.38.0 (2021-11-11)
10
+ ------------------
11
+
12
+ * 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.
13
+
14
+ 1.37.0 (2021-11-05)
15
+ ------------------
16
+
17
+ * Feature - This release enable customers to use their own KMS keys to encrypt output files when they submit a batch transform job.
18
+
19
+ 1.36.0 (2021-11-04)
20
+ ------------------
21
+
22
+ * Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
23
+
4
24
  1.35.0 (2021-10-18)
5
25
  ------------------
6
26
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.35.0
1
+ 1.39.0
@@ -285,6 +285,15 @@ module Aws::Translate
285
285
  # ** Please note ** When response stubbing is enabled, no HTTP
286
286
  # requests are made, and retries are disabled.
287
287
  #
288
+ # @option options [Boolean] :use_dualstack_endpoint
289
+ # When set to `true`, dualstack enabled endpoints (with `.aws` TLD)
290
+ # will be used if available.
291
+ #
292
+ # @option options [Boolean] :use_fips_endpoint
293
+ # When set to `true`, fips compatible endpoints will be used if available.
294
+ # When a `fips` region is used, the region is normalized and this config
295
+ # is set to `true`.
296
+ #
288
297
  # @option options [Boolean] :validate_params (true)
289
298
  # When `true`, request parameters are validated before
290
299
  # sending the request.
@@ -338,10 +347,10 @@ module Aws::Translate
338
347
  # @!group API Operations
339
348
 
340
349
  # Creates a parallel data resource in Amazon Translate by importing an
341
- # input file from Amazon S3. Parallel data files contain examples of
342
- # source phrases and their translations from your translation memory. By
343
- # adding parallel data, you can influence the style, tone, and word
344
- # choice in your translation output.
350
+ # input file from Amazon S3. Parallel data files contain examples that
351
+ # show how you want segments of text to be translated. By adding
352
+ # parallel data, you can influence the style, tone, and word choice in
353
+ # your translation output.
345
354
  #
346
355
  # @option params [required, String] :name
347
356
  # A custom name for the parallel data resource in Amazon Translate. You
@@ -451,7 +460,7 @@ module Aws::Translate
451
460
  req.send_request(options)
452
461
  end
453
462
 
454
- # Gets the properties associated with an asycnhronous batch translation
463
+ # Gets the properties associated with an asynchronous batch translation
455
464
  # job including name, ID, status, source and target languages,
456
465
  # input/output S3 buckets, and so on.
457
466
  #
@@ -491,7 +500,10 @@ module Aws::Translate
491
500
  # resp.text_translation_job_properties.input_data_config.s3_uri #=> String
492
501
  # resp.text_translation_job_properties.input_data_config.content_type #=> String
493
502
  # resp.text_translation_job_properties.output_data_config.s3_uri #=> String
503
+ # resp.text_translation_job_properties.output_data_config.encryption_key.type #=> String, one of "KMS"
504
+ # resp.text_translation_job_properties.output_data_config.encryption_key.id #=> String
494
505
  # resp.text_translation_job_properties.data_access_role_arn #=> String
506
+ # resp.text_translation_job_properties.settings.profanity #=> String, one of "MASK"
495
507
  #
496
508
  # @see http://docs.aws.amazon.com/goto/WebAPI/translate-2017-07-01/DescribeTextTranslationJob AWS API Documentation
497
509
  #
@@ -563,20 +575,29 @@ module Aws::Translate
563
575
  # @option params [required, String] :name
564
576
  # The name of the custom terminology being retrieved.
565
577
  #
566
- # @option params [required, String] :terminology_data_format
567
- # The data format of the custom terminology being retrieved, either CSV
568
- # or TMX.
578
+ # @option params [String] :terminology_data_format
579
+ # The data format of the custom terminology being retrieved.
580
+ #
581
+ # If you don't specify this parameter, Amazon Translate returns a file
582
+ # that has the same format as the file that was imported to create the
583
+ # terminology.
584
+ #
585
+ # If you specify this parameter when you retrieve a multi-directional
586
+ # terminology resource, you must specify the same format as that of the
587
+ # input file that was imported to create it. Otherwise, Amazon Translate
588
+ # throws an error.
569
589
  #
570
590
  # @return [Types::GetTerminologyResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
571
591
  #
572
592
  # * {Types::GetTerminologyResponse#terminology_properties #terminology_properties} => Types::TerminologyProperties
573
593
  # * {Types::GetTerminologyResponse#terminology_data_location #terminology_data_location} => Types::TerminologyDataLocation
594
+ # * {Types::GetTerminologyResponse#auxiliary_data_location #auxiliary_data_location} => Types::TerminologyDataLocation
574
595
  #
575
596
  # @example Request syntax with placeholder values
576
597
  #
577
598
  # resp = client.get_terminology({
578
599
  # name: "ResourceName", # required
579
- # terminology_data_format: "CSV", # required, accepts CSV, TMX
600
+ # terminology_data_format: "CSV", # accepts CSV, TMX, TSV
580
601
  # })
581
602
  #
582
603
  # @example Response structure
@@ -593,8 +614,14 @@ module Aws::Translate
593
614
  # resp.terminology_properties.term_count #=> Integer
594
615
  # resp.terminology_properties.created_at #=> Time
595
616
  # resp.terminology_properties.last_updated_at #=> Time
617
+ # resp.terminology_properties.directionality #=> String, one of "UNI", "MULTI"
618
+ # resp.terminology_properties.message #=> String
619
+ # resp.terminology_properties.skipped_term_count #=> Integer
620
+ # resp.terminology_properties.format #=> String, one of "CSV", "TMX", "TSV"
596
621
  # resp.terminology_data_location.repository_type #=> String
597
622
  # resp.terminology_data_location.location #=> String
623
+ # resp.auxiliary_data_location.repository_type #=> String
624
+ # resp.auxiliary_data_location.location #=> String
598
625
  #
599
626
  # @see http://docs.aws.amazon.com/goto/WebAPI/translate-2017-07-01/GetTerminology AWS API Documentation
600
627
  #
@@ -638,6 +665,7 @@ module Aws::Translate
638
665
  # @return [Types::ImportTerminologyResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
639
666
  #
640
667
  # * {Types::ImportTerminologyResponse#terminology_properties #terminology_properties} => Types::TerminologyProperties
668
+ # * {Types::ImportTerminologyResponse#auxiliary_data_location #auxiliary_data_location} => Types::TerminologyDataLocation
641
669
  #
642
670
  # @example Request syntax with placeholder values
643
671
  #
@@ -647,7 +675,8 @@ module Aws::Translate
647
675
  # description: "Description",
648
676
  # terminology_data: { # required
649
677
  # file: "data", # required
650
- # format: "CSV", # required, accepts CSV, TMX
678
+ # format: "CSV", # required, accepts CSV, TMX, TSV
679
+ # directionality: "UNI", # accepts UNI, MULTI
651
680
  # },
652
681
  # encryption_key: {
653
682
  # type: "KMS", # required, accepts KMS
@@ -669,6 +698,12 @@ module Aws::Translate
669
698
  # resp.terminology_properties.term_count #=> Integer
670
699
  # resp.terminology_properties.created_at #=> Time
671
700
  # resp.terminology_properties.last_updated_at #=> Time
701
+ # resp.terminology_properties.directionality #=> String, one of "UNI", "MULTI"
702
+ # resp.terminology_properties.message #=> String
703
+ # resp.terminology_properties.skipped_term_count #=> Integer
704
+ # resp.terminology_properties.format #=> String, one of "CSV", "TMX", "TSV"
705
+ # resp.auxiliary_data_location.repository_type #=> String
706
+ # resp.auxiliary_data_location.location #=> String
672
707
  #
673
708
  # @see http://docs.aws.amazon.com/goto/WebAPI/translate-2017-07-01/ImportTerminology AWS API Documentation
674
709
  #
@@ -775,6 +810,10 @@ module Aws::Translate
775
810
  # resp.terminology_properties_list[0].term_count #=> Integer
776
811
  # resp.terminology_properties_list[0].created_at #=> Time
777
812
  # resp.terminology_properties_list[0].last_updated_at #=> Time
813
+ # resp.terminology_properties_list[0].directionality #=> String, one of "UNI", "MULTI"
814
+ # resp.terminology_properties_list[0].message #=> String
815
+ # resp.terminology_properties_list[0].skipped_term_count #=> Integer
816
+ # resp.terminology_properties_list[0].format #=> String, one of "CSV", "TMX", "TSV"
778
817
  # resp.next_token #=> String
779
818
  #
780
819
  # @see http://docs.aws.amazon.com/goto/WebAPI/translate-2017-07-01/ListTerminologies AWS API Documentation
@@ -842,7 +881,10 @@ module Aws::Translate
842
881
  # resp.text_translation_job_properties_list[0].input_data_config.s3_uri #=> String
843
882
  # resp.text_translation_job_properties_list[0].input_data_config.content_type #=> String
844
883
  # resp.text_translation_job_properties_list[0].output_data_config.s3_uri #=> String
884
+ # resp.text_translation_job_properties_list[0].output_data_config.encryption_key.type #=> String, one of "KMS"
885
+ # resp.text_translation_job_properties_list[0].output_data_config.encryption_key.id #=> String
845
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"
846
888
  # resp.next_token #=> String
847
889
  #
848
890
  # @see http://docs.aws.amazon.com/goto/WebAPI/translate-2017-07-01/ListTextTranslationJobs AWS API Documentation
@@ -881,7 +923,7 @@ module Aws::Translate
881
923
  # @option params [required, String] :data_access_role_arn
882
924
  # The Amazon Resource Name (ARN) of an AWS Identity Access and
883
925
  # Management (IAM) role that grants Amazon Translate read access to your
884
- # input data. For more nformation, see identity-and-access-management.
926
+ # input data. For more information, see identity-and-access-management.
885
927
  #
886
928
  # @option params [required, String] :source_language_code
887
929
  # The language code of the input language. For a list of language codes,
@@ -894,13 +936,39 @@ module Aws::Translate
894
936
  # The language code of the output language.
895
937
  #
896
938
  # @option params [Array<String>] :terminology_names
897
- # The name of the terminology to use in the batch translation job. For a
898
- # list of available terminologies, use the ListTerminologies operation.
939
+ # The name of a custom terminology resource to add to the translation
940
+ # job. This resource lists examples source terms and the desired
941
+ # translation for each term.
942
+ #
943
+ # This parameter accepts only one custom terminology resource.
944
+ #
945
+ # For a list of available custom terminology resources, use the
946
+ # ListTerminologies operation.
947
+ #
948
+ # For more information, see how-custom-terminology.
899
949
  #
900
950
  # @option params [Array<String>] :parallel_data_names
901
- # The names of the parallel data resources to use in the batch
902
- # translation job. For a list of available parallel data resources, use
903
- # the ListParallelData operation.
951
+ # The name of a parallel data resource to add to the translation job.
952
+ # This resource consists of examples that show how you want segments of
953
+ # text to be translated. When you add parallel data to a translation
954
+ # job, you create an *Active Custom Translation* job.
955
+ #
956
+ # This parameter accepts only one parallel data resource.
957
+ #
958
+ # <note markdown="1"> Active Custom Translation jobs are priced at a higher rate than other
959
+ # jobs that don't use parallel data. For more information, see [Amazon
960
+ # Translate pricing][1].
961
+ #
962
+ # </note>
963
+ #
964
+ # For a list of available parallel data resources, use the
965
+ # ListParallelData operation.
966
+ #
967
+ # For more information, see customizing-translations-parallel-data.
968
+ #
969
+ #
970
+ #
971
+ # [1]: http://aws.amazon.com/translate/pricing/
904
972
  #
905
973
  # @option params [required, String] :client_token
906
974
  # A unique identifier for the request. This token is auto-generated when
@@ -909,6 +977,10 @@ module Aws::Translate
909
977
  # **A suitable default value is auto-generated.** You should normally
910
978
  # not need to pass this option.**
911
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
+ #
912
984
  # @return [Types::StartTextTranslationJobResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
913
985
  #
914
986
  # * {Types::StartTextTranslationJobResponse#job_id #job_id} => String
@@ -924,6 +996,10 @@ module Aws::Translate
924
996
  # },
925
997
  # output_data_config: { # required
926
998
  # s3_uri: "S3Uri", # required
999
+ # encryption_key: {
1000
+ # type: "KMS", # required, accepts KMS
1001
+ # id: "EncryptionKeyID", # required
1002
+ # },
927
1003
  # },
928
1004
  # data_access_role_arn: "IamRoleArn", # required
929
1005
  # source_language_code: "LanguageCodeString", # required
@@ -931,6 +1007,9 @@ module Aws::Translate
931
1007
  # terminology_names: ["ResourceName"],
932
1008
  # parallel_data_names: ["ResourceName"],
933
1009
  # client_token: "ClientTokenString", # required
1010
+ # settings: {
1011
+ # profanity: "MASK", # accepts MASK
1012
+ # },
934
1013
  # })
935
1014
  #
936
1015
  # @example Response structure
@@ -1019,12 +1098,17 @@ module Aws::Translate
1019
1098
  # The language code requested for the language of the target text. The
1020
1099
  # language must be a language supported by Amazon Translate.
1021
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
+ #
1022
1105
  # @return [Types::TranslateTextResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
1023
1106
  #
1024
1107
  # * {Types::TranslateTextResponse#translated_text #translated_text} => String
1025
1108
  # * {Types::TranslateTextResponse#source_language_code #source_language_code} => String
1026
1109
  # * {Types::TranslateTextResponse#target_language_code #target_language_code} => String
1027
1110
  # * {Types::TranslateTextResponse#applied_terminologies #applied_terminologies} => Array&lt;Types::AppliedTerminology&gt;
1111
+ # * {Types::TranslateTextResponse#applied_settings #applied_settings} => Types::TranslationSettings
1028
1112
  #
1029
1113
  # @example Request syntax with placeholder values
1030
1114
  #
@@ -1033,6 +1117,9 @@ module Aws::Translate
1033
1117
  # terminology_names: ["ResourceName"],
1034
1118
  # source_language_code: "LanguageCodeString", # required
1035
1119
  # target_language_code: "LanguageCodeString", # required
1120
+ # settings: {
1121
+ # profanity: "MASK", # accepts MASK
1122
+ # },
1036
1123
  # })
1037
1124
  #
1038
1125
  # @example Response structure
@@ -1045,6 +1132,7 @@ module Aws::Translate
1045
1132
  # resp.applied_terminologies[0].terms #=> Array
1046
1133
  # resp.applied_terminologies[0].terms[0].source_text #=> String
1047
1134
  # resp.applied_terminologies[0].terms[0].target_text #=> String
1135
+ # resp.applied_settings.profanity #=> String, one of "MASK"
1048
1136
  #
1049
1137
  # @see http://docs.aws.amazon.com/goto/WebAPI/translate-2017-07-01/TranslateText AWS API Documentation
1050
1138
  #
@@ -1123,7 +1211,7 @@ module Aws::Translate
1123
1211
  params: params,
1124
1212
  config: config)
1125
1213
  context[:gem_name] = 'aws-sdk-translate'
1126
- context[:gem_version] = '1.35.0'
1214
+ context[:gem_version] = '1.39.0'
1127
1215
  Seahorse::Client::Request.new(handlers, context)
1128
1216
  end
1129
1217
 
@@ -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, required: true, location_name: "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"))
@@ -229,6 +234,7 @@ module Aws::Translate
229
234
  ListTextTranslationJobsResponse.struct_class = Types::ListTextTranslationJobsResponse
230
235
 
231
236
  OutputDataConfig.add_member(:s3_uri, Shapes::ShapeRef.new(shape: S3Uri, required: true, location_name: "S3Uri"))
237
+ OutputDataConfig.add_member(:encryption_key, Shapes::ShapeRef.new(shape: EncryptionKey, location_name: "EncryptionKey"))
232
238
  OutputDataConfig.struct_class = Types::OutputDataConfig
233
239
 
234
240
  ParallelDataConfig.add_member(:s3_uri, Shapes::ShapeRef.new(shape: S3Uri, required: true, location_name: "S3Uri"))
@@ -277,6 +283,7 @@ module Aws::Translate
277
283
  StartTextTranslationJobRequest.add_member(:terminology_names, Shapes::ShapeRef.new(shape: ResourceNameList, location_name: "TerminologyNames"))
278
284
  StartTextTranslationJobRequest.add_member(:parallel_data_names, Shapes::ShapeRef.new(shape: ResourceNameList, location_name: "ParallelDataNames"))
279
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"))
280
287
  StartTextTranslationJobRequest.struct_class = Types::StartTextTranslationJobRequest
281
288
 
282
289
  StartTextTranslationJobResponse.add_member(:job_id, Shapes::ShapeRef.new(shape: JobId, location_name: "JobId"))
@@ -300,6 +307,7 @@ module Aws::Translate
300
307
 
301
308
  TerminologyData.add_member(:file, Shapes::ShapeRef.new(shape: TerminologyFile, required: true, location_name: "File"))
302
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"))
303
311
  TerminologyData.struct_class = Types::TerminologyData
304
312
 
305
313
  TerminologyDataLocation.add_member(:repository_type, Shapes::ShapeRef.new(shape: String, required: true, location_name: "RepositoryType"))
@@ -316,6 +324,10 @@ module Aws::Translate
316
324
  TerminologyProperties.add_member(:term_count, Shapes::ShapeRef.new(shape: Integer, location_name: "TermCount"))
317
325
  TerminologyProperties.add_member(:created_at, Shapes::ShapeRef.new(shape: Timestamp, location_name: "CreatedAt"))
318
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"))
319
331
  TerminologyProperties.struct_class = Types::TerminologyProperties
320
332
 
321
333
  TerminologyPropertiesList.member = Shapes::ShapeRef.new(shape: TerminologyProperties)
@@ -343,6 +355,7 @@ module Aws::Translate
343
355
  TextTranslationJobProperties.add_member(:input_data_config, Shapes::ShapeRef.new(shape: InputDataConfig, location_name: "InputDataConfig"))
344
356
  TextTranslationJobProperties.add_member(:output_data_config, Shapes::ShapeRef.new(shape: OutputDataConfig, location_name: "OutputDataConfig"))
345
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"))
346
359
  TextTranslationJobProperties.struct_class = Types::TextTranslationJobProperties
347
360
 
348
361
  TextTranslationJobPropertiesList.member = Shapes::ShapeRef.new(shape: TextTranslationJobProperties)
@@ -354,14 +367,19 @@ module Aws::Translate
354
367
  TranslateTextRequest.add_member(:terminology_names, Shapes::ShapeRef.new(shape: ResourceNameList, location_name: "TerminologyNames"))
355
368
  TranslateTextRequest.add_member(:source_language_code, Shapes::ShapeRef.new(shape: LanguageCodeString, required: true, location_name: "SourceLanguageCode"))
356
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"))
357
371
  TranslateTextRequest.struct_class = Types::TranslateTextRequest
358
372
 
359
373
  TranslateTextResponse.add_member(:translated_text, Shapes::ShapeRef.new(shape: String, required: true, location_name: "TranslatedText"))
360
374
  TranslateTextResponse.add_member(:source_language_code, Shapes::ShapeRef.new(shape: LanguageCodeString, required: true, location_name: "SourceLanguageCode"))
361
375
  TranslateTextResponse.add_member(:target_language_code, Shapes::ShapeRef.new(shape: LanguageCodeString, required: true, location_name: "TargetLanguageCode"))
362
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"))
363
378
  TranslateTextResponse.struct_class = Types::TranslateTextResponse
364
379
 
380
+ TranslationSettings.add_member(:profanity, Shapes::ShapeRef.new(shape: Profanity, location_name: "Profanity"))
381
+ TranslationSettings.struct_class = Types::TranslationSettings
382
+
365
383
  UnsupportedLanguagePairException.add_member(:message, Shapes::ShapeRef.new(shape: String, location_name: "Message"))
366
384
  UnsupportedLanguagePairException.add_member(:source_language_code, Shapes::ShapeRef.new(shape: LanguageCodeString, location_name: "SourceLanguageCode"))
367
385
  UnsupportedLanguagePairException.add_member(:target_language_code, Shapes::ShapeRef.new(shape: LanguageCodeString, location_name: "TargetLanguageCode"))
@@ -545,6 +563,7 @@ module Aws::Translate
545
563
  o.errors << Shapes::ShapeRef.new(shape: UnsupportedLanguagePairException)
546
564
  o.errors << Shapes::ShapeRef.new(shape: InvalidRequestException)
547
565
  o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
566
+ o.errors << Shapes::ShapeRef.new(shape: InvalidParameterValueException)
548
567
  o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
549
568
  end)
550
569
 
@@ -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
- # custom terminologies.
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 the custom terminology.
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
@@ -309,9 +309,21 @@ module Aws::Translate
309
309
  # @return [Types::ParallelDataProperties]
310
310
  #
311
311
  # @!attribute [rw] data_location
312
- # The location of the most recent parallel data input file that was
313
- # successfully imported into Amazon Translate. The location is
314
- # returned as a presigned URL that has a 30 minute expiration.
312
+ # The Amazon S3 location of the most recent parallel data input file
313
+ # that was successfully imported into Amazon Translate. The location
314
+ # is returned as a presigned URL that has a 30 minute expiration.
315
+ #
316
+ # Amazon Translate doesn't scan all input files for the risk of CSV
317
+ # injection attacks.
318
+ #
319
+ # CSV injection occurs when a .csv or .tsv file is altered so that a
320
+ # record contains malicious code. The record begins with a special
321
+ # character, such as =, +, -, or @. When the file is opened in a
322
+ # spreadsheet program, the program might interpret the record as a
323
+ # formula and run the code within it.
324
+ #
325
+ # Before you download an input file from Amazon S3, ensure that you
326
+ # recognize the file and trust its creator.
315
327
  # @return [Types::ParallelDataDataLocation]
316
328
  #
317
329
  # @!attribute [rw] auxiliary_data_location
@@ -346,7 +358,7 @@ module Aws::Translate
346
358
  #
347
359
  # {
348
360
  # name: "ResourceName", # required
349
- # terminology_data_format: "CSV", # required, accepts CSV, TMX
361
+ # terminology_data_format: "CSV", # accepts CSV, TMX, TSV
350
362
  # }
351
363
  #
352
364
  # @!attribute [rw] name
@@ -354,8 +366,16 @@ module Aws::Translate
354
366
  # @return [String]
355
367
  #
356
368
  # @!attribute [rw] terminology_data_format
357
- # The data format of the custom terminology being retrieved, either
358
- # CSV or TMX.
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.
359
379
  # @return [String]
360
380
  #
361
381
  # @see http://docs.aws.amazon.com/goto/WebAPI/translate-2017-07-01/GetTerminologyRequest AWS API Documentation
@@ -372,16 +392,38 @@ module Aws::Translate
372
392
  # @return [Types::TerminologyProperties]
373
393
  #
374
394
  # @!attribute [rw] terminology_data_location
375
- # The data location of the custom terminology being retrieved. The
376
- # custom terminology file is returned in a presigned url that has a 30
377
- # minute expiration.
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.
378
419
  # @return [Types::TerminologyDataLocation]
379
420
  #
380
421
  # @see http://docs.aws.amazon.com/goto/WebAPI/translate-2017-07-01/GetTerminologyResponse AWS API Documentation
381
422
  #
382
423
  class GetTerminologyResponse < Struct.new(
383
424
  :terminology_properties,
384
- :terminology_data_location)
425
+ :terminology_data_location,
426
+ :auxiliary_data_location)
385
427
  SENSITIVE = []
386
428
  include Aws::Structure
387
429
  end
@@ -395,7 +437,8 @@ module Aws::Translate
395
437
  # description: "Description",
396
438
  # terminology_data: { # required
397
439
  # file: "data", # required
398
- # format: "CSV", # required, accepts CSV, TMX
440
+ # format: "CSV", # required, accepts CSV, TMX, TSV
441
+ # directionality: "UNI", # accepts UNI, MULTI
399
442
  # },
400
443
  # encryption_key: {
401
444
  # type: "KMS", # required, accepts KMS
@@ -442,10 +485,19 @@ module Aws::Translate
442
485
  # The properties of the custom terminology being imported.
443
486
  # @return [Types::TerminologyProperties]
444
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
+ #
445
496
  # @see http://docs.aws.amazon.com/goto/WebAPI/translate-2017-07-01/ImportTerminologyResponse AWS API Documentation
446
497
  #
447
498
  class ImportTerminologyResponse < Struct.new(
448
- :terminology_properties)
499
+ :terminology_properties,
500
+ :auxiliary_data_location)
449
501
  SENSITIVE = []
450
502
  include Aws::Structure
451
503
  end
@@ -491,6 +543,10 @@ module Aws::Translate
491
543
  # The input data consists of one or more Excel Workbook files
492
544
  # (.xlsx).
493
545
  #
546
+ # * `application/x-xliff+xml`\: The input data consists of one or more
547
+ # XML Localization Interchange File Format (XLIFF) files (.xlf).
548
+ # Amazon Translate supports only XLIFF version 1.2.
549
+ #
494
550
  # If you structure your input data as HTML, ensure that you set this
495
551
  # parameter to `text/html`. By doing so, you cut costs by limiting the
496
552
  # translation to the contents of the `html` element in each file.
@@ -741,7 +797,7 @@ module Aws::Translate
741
797
  # @return [Array<Types::TextTranslationJobProperties>]
742
798
  #
743
799
  # @!attribute [rw] next_token
744
- # The token to use to retreive the next page of results. This value is
800
+ # The token to use to retrieve the next page of results. This value is
745
801
  # `null` when there are no more results to return.
746
802
  # @return [String]
747
803
  #
@@ -761,6 +817,10 @@ module Aws::Translate
761
817
  #
762
818
  # {
763
819
  # s3_uri: "S3Uri", # required
820
+ # encryption_key: {
821
+ # type: "KMS", # required, accepts KMS
822
+ # id: "EncryptionKeyID", # required
823
+ # },
764
824
  # }
765
825
  #
766
826
  # @!attribute [rw] s3_uri
@@ -769,10 +829,15 @@ module Aws::Translate
769
829
  # you are calling.
770
830
  # @return [String]
771
831
  #
832
+ # @!attribute [rw] encryption_key
833
+ # The encryption key used to encrypt this object.
834
+ # @return [Types::EncryptionKey]
835
+ #
772
836
  # @see http://docs.aws.amazon.com/goto/WebAPI/translate-2017-07-01/OutputDataConfig AWS API Documentation
773
837
  #
774
838
  class OutputDataConfig < Struct.new(
775
- :s3_uri)
839
+ :s3_uri,
840
+ :encryption_key)
776
841
  SENSITIVE = []
777
842
  include Aws::Structure
778
843
  end
@@ -816,6 +881,18 @@ module Aws::Translate
816
881
  # @!attribute [rw] location
817
882
  # The Amazon S3 location of the parallel data input file. The location
818
883
  # is returned as a presigned URL to that has a 30 minute expiration.
884
+ #
885
+ # Amazon Translate doesn't scan all input files for the risk of CSV
886
+ # injection attacks.
887
+ #
888
+ # CSV injection occurs when a .csv or .tsv file is altered so that a
889
+ # record contains malicious code. The record begins with a special
890
+ # character, such as =, +, -, or @. When the file is opened in a
891
+ # spreadsheet program, the program might interpret the record as a
892
+ # formula and run the code within it.
893
+ #
894
+ # Before you download an input file from Amazon S3, ensure that you
895
+ # recognize the file and trust its creator.
819
896
  # @return [String]
820
897
  #
821
898
  # @see http://docs.aws.amazon.com/goto/WebAPI/translate-2017-07-01/ParallelDataDataLocation AWS API Documentation
@@ -977,6 +1054,10 @@ module Aws::Translate
977
1054
  # },
978
1055
  # output_data_config: { # required
979
1056
  # s3_uri: "S3Uri", # required
1057
+ # encryption_key: {
1058
+ # type: "KMS", # required, accepts KMS
1059
+ # id: "EncryptionKeyID", # required
1060
+ # },
980
1061
  # },
981
1062
  # data_access_role_arn: "IamRoleArn", # required
982
1063
  # source_language_code: "LanguageCodeString", # required
@@ -984,6 +1065,9 @@ module Aws::Translate
984
1065
  # terminology_names: ["ResourceName"],
985
1066
  # parallel_data_names: ["ResourceName"],
986
1067
  # client_token: "ClientTokenString", # required
1068
+ # settings: {
1069
+ # profanity: "MASK", # accepts MASK
1070
+ # },
987
1071
  # }
988
1072
  #
989
1073
  # @!attribute [rw] job_name
@@ -1002,7 +1086,7 @@ module Aws::Translate
1002
1086
  # @!attribute [rw] data_access_role_arn
1003
1087
  # The Amazon Resource Name (ARN) of an AWS Identity Access and
1004
1088
  # Management (IAM) role that grants Amazon Translate read access to
1005
- # your input data. For more nformation, see
1089
+ # your input data. For more information, see
1006
1090
  # identity-and-access-management.
1007
1091
  # @return [String]
1008
1092
  #
@@ -1019,15 +1103,40 @@ module Aws::Translate
1019
1103
  # @return [Array<String>]
1020
1104
  #
1021
1105
  # @!attribute [rw] terminology_names
1022
- # The name of the terminology to use in the batch translation job. For
1023
- # a list of available terminologies, use the ListTerminologies
1024
- # operation.
1106
+ # The name of a custom terminology resource to add to the translation
1107
+ # job. This resource lists examples source terms and the desired
1108
+ # translation for each term.
1109
+ #
1110
+ # This parameter accepts only one custom terminology resource.
1111
+ #
1112
+ # For a list of available custom terminology resources, use the
1113
+ # ListTerminologies operation.
1114
+ #
1115
+ # For more information, see how-custom-terminology.
1025
1116
  # @return [Array<String>]
1026
1117
  #
1027
1118
  # @!attribute [rw] parallel_data_names
1028
- # The names of the parallel data resources to use in the batch
1029
- # translation job. For a list of available parallel data resources,
1030
- # use the ListParallelData operation.
1119
+ # The name of a parallel data resource to add to the translation job.
1120
+ # This resource consists of examples that show how you want segments
1121
+ # of text to be translated. When you add parallel data to a
1122
+ # translation job, you create an *Active Custom Translation* job.
1123
+ #
1124
+ # This parameter accepts only one parallel data resource.
1125
+ #
1126
+ # <note markdown="1"> Active Custom Translation jobs are priced at a higher rate than
1127
+ # other jobs that don't use parallel data. For more information, see
1128
+ # [Amazon Translate pricing][1].
1129
+ #
1130
+ # </note>
1131
+ #
1132
+ # For a list of available parallel data resources, use the
1133
+ # ListParallelData operation.
1134
+ #
1135
+ # For more information, see customizing-translations-parallel-data.
1136
+ #
1137
+ #
1138
+ #
1139
+ # [1]: http://aws.amazon.com/translate/pricing/
1031
1140
  # @return [Array<String>]
1032
1141
  #
1033
1142
  # @!attribute [rw] client_token
@@ -1038,6 +1147,11 @@ module Aws::Translate
1038
1147
  # not need to pass this option.
1039
1148
  # @return [String]
1040
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
+ #
1041
1155
  # @see http://docs.aws.amazon.com/goto/WebAPI/translate-2017-07-01/StartTextTranslationJobRequest AWS API Documentation
1042
1156
  #
1043
1157
  class StartTextTranslationJobRequest < Struct.new(
@@ -1049,7 +1163,8 @@ module Aws::Translate
1049
1163
  :target_language_codes,
1050
1164
  :terminology_names,
1051
1165
  :parallel_data_names,
1052
- :client_token)
1166
+ :client_token,
1167
+ :settings)
1053
1168
  SENSITIVE = []
1054
1169
  include Aws::Structure
1055
1170
  end
@@ -1156,7 +1271,8 @@ module Aws::Translate
1156
1271
  #
1157
1272
  # {
1158
1273
  # file: "data", # required
1159
- # format: "CSV", # required, accepts CSV, TMX
1274
+ # format: "CSV", # required, accepts CSV, TMX, TSV
1275
+ # directionality: "UNI", # accepts UNI, MULTI
1160
1276
  # }
1161
1277
  #
1162
1278
  # @!attribute [rw] file
@@ -1167,14 +1283,40 @@ module Aws::Translate
1167
1283
  # @return [String]
1168
1284
  #
1169
1285
  # @!attribute [rw] format
1170
- # The data format of the custom terminology. Either CSV or TMX.
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.
1171
1312
  # @return [String]
1172
1313
  #
1173
1314
  # @see http://docs.aws.amazon.com/goto/WebAPI/translate-2017-07-01/TerminologyData AWS API Documentation
1174
1315
  #
1175
1316
  class TerminologyData < Struct.new(
1176
1317
  :file,
1177
- :format)
1318
+ :format,
1319
+ :directionality)
1178
1320
  SENSITIVE = [:file]
1179
1321
  include Aws::Structure
1180
1322
  end
@@ -1186,7 +1328,22 @@ module Aws::Translate
1186
1328
  # @return [String]
1187
1329
  #
1188
1330
  # @!attribute [rw] location
1189
- # The location of the custom terminology data.
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.
1190
1347
  # @return [String]
1191
1348
  #
1192
1349
  # @see http://docs.aws.amazon.com/goto/WebAPI/translate-2017-07-01/TerminologyDataLocation AWS API Documentation
@@ -1219,8 +1376,8 @@ module Aws::Translate
1219
1376
  #
1220
1377
  # @!attribute [rw] target_language_codes
1221
1378
  # The language codes for the target languages available with the
1222
- # custom terminology file. All possible target languages are returned
1223
- # in array.
1379
+ # custom terminology resource. All possible target languages are
1380
+ # returned in array.
1224
1381
  # @return [Array<String>]
1225
1382
  #
1226
1383
  # @!attribute [rw] encryption_key
@@ -1245,6 +1402,37 @@ module Aws::Translate
1245
1402
  # the timestamp.
1246
1403
  # @return [Time]
1247
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
+ #
1248
1436
  # @see http://docs.aws.amazon.com/goto/WebAPI/translate-2017-07-01/TerminologyProperties AWS API Documentation
1249
1437
  #
1250
1438
  class TerminologyProperties < Struct.new(
@@ -1257,7 +1445,11 @@ module Aws::Translate
1257
1445
  :size_bytes,
1258
1446
  :term_count,
1259
1447
  :created_at,
1260
- :last_updated_at)
1448
+ :last_updated_at,
1449
+ :directionality,
1450
+ :message,
1451
+ :skipped_term_count,
1452
+ :format)
1261
1453
  SENSITIVE = []
1262
1454
  include Aws::Structure
1263
1455
  end
@@ -1364,7 +1556,7 @@ module Aws::Translate
1364
1556
  # @return [Array<String>]
1365
1557
  #
1366
1558
  # @!attribute [rw] message
1367
- # An explanation of any errors that may have occured during the
1559
+ # An explanation of any errors that may have occurred during the
1368
1560
  # translation job.
1369
1561
  # @return [String]
1370
1562
  #
@@ -1392,6 +1584,10 @@ module Aws::Translate
1392
1584
  # the job's input data.
1393
1585
  # @return [String]
1394
1586
  #
1587
+ # @!attribute [rw] settings
1588
+ # Settings that configure the translation output.
1589
+ # @return [Types::TranslationSettings]
1590
+ #
1395
1591
  # @see http://docs.aws.amazon.com/goto/WebAPI/translate-2017-07-01/TextTranslationJobProperties AWS API Documentation
1396
1592
  #
1397
1593
  class TextTranslationJobProperties < Struct.new(
@@ -1408,7 +1604,8 @@ module Aws::Translate
1408
1604
  :end_time,
1409
1605
  :input_data_config,
1410
1606
  :output_data_config,
1411
- :data_access_role_arn)
1607
+ :data_access_role_arn,
1608
+ :settings)
1412
1609
  SENSITIVE = []
1413
1610
  include Aws::Structure
1414
1611
  end
@@ -1435,6 +1632,9 @@ module Aws::Translate
1435
1632
  # terminology_names: ["ResourceName"],
1436
1633
  # source_language_code: "LanguageCodeString", # required
1437
1634
  # target_language_code: "LanguageCodeString", # required
1635
+ # settings: {
1636
+ # profanity: "MASK", # accepts MASK
1637
+ # },
1438
1638
  # }
1439
1639
  #
1440
1640
  # @!attribute [rw] text
@@ -1470,13 +1670,19 @@ module Aws::Translate
1470
1670
  # language must be a language supported by Amazon Translate.
1471
1671
  # @return [String]
1472
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
+ #
1473
1678
  # @see http://docs.aws.amazon.com/goto/WebAPI/translate-2017-07-01/TranslateTextRequest AWS API Documentation
1474
1679
  #
1475
1680
  class TranslateTextRequest < Struct.new(
1476
1681
  :text,
1477
1682
  :terminology_names,
1478
1683
  :source_language_code,
1479
- :target_language_code)
1684
+ :target_language_code,
1685
+ :settings)
1480
1686
  SENSITIVE = []
1481
1687
  include Aws::Structure
1482
1688
  end
@@ -1498,13 +1704,54 @@ module Aws::Translate
1498
1704
  # Amazon Translate for the translated text response.
1499
1705
  # @return [Array<Types::AppliedTerminology>]
1500
1706
  #
1707
+ # @!attribute [rw] applied_settings
1708
+ # Settings that configure the translation output.
1709
+ # @return [Types::TranslationSettings]
1710
+ #
1501
1711
  # @see http://docs.aws.amazon.com/goto/WebAPI/translate-2017-07-01/TranslateTextResponse AWS API Documentation
1502
1712
  #
1503
1713
  class TranslateTextResponse < Struct.new(
1504
1714
  :translated_text,
1505
1715
  :source_language_code,
1506
1716
  :target_language_code,
1507
- :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)
1508
1755
  SENSITIVE = []
1509
1756
  include Aws::Structure
1510
1757
  end
@@ -48,6 +48,6 @@ require_relative 'aws-sdk-translate/customizations'
48
48
  # @!group service
49
49
  module Aws::Translate
50
50
 
51
- GEM_VERSION = '1.35.0'
51
+ GEM_VERSION = '1.39.0'
52
52
 
53
53
  end
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.35.0
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-10-18 00:00:00.000000000 Z
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
@@ -19,7 +19,7 @@ dependencies:
19
19
  version: '3'
20
20
  - - ">="
21
21
  - !ruby/object:Gem::Version
22
- version: 3.121.2
22
+ version: 3.122.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.121.2
32
+ version: 3.122.0
33
33
  - !ruby/object:Gem::Dependency
34
34
  name: aws-sigv4
35
35
  requirement: !ruby/object:Gem::Requirement