aws-sdk-translate 1.36.0 → 1.40.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: 53678386e56fb1e1160b8642565addf32016488b08ec4d9b05905fd4bfbacfbf
4
- data.tar.gz: 8d8d810a3418ca42f6943341322bc25bbcf02d0cdbb532a80c737fbfb464f57b
3
+ metadata.gz: fc2b152c586aa4f30c6de50d8b180e83a18847ef3a4f663b174af21a97061a6e
4
+ data.tar.gz: ced52e7506113069374be4851185cd751c58ff28a122b646f0ff38640ac2013f
5
5
  SHA512:
6
- metadata.gz: 5538a4d4ba834b321a025983a5fcdf0e38fc9079699c945f3bb9b2525a04fc0413c0e608dd0c83133be5f9dc6f23f220e1860c196c3a6c4586ae015fbb9ed5d9
7
- data.tar.gz: a9e2bada7940f6cf6145d3c5b9dfc6a6a69ca9a193bd65e1e3d3ee79876aa90ea9a2364b9b79e7d359f8edbdd056e6d9f490bc33c23ccc6f737f18d7a9bf4f7b
6
+ metadata.gz: cead605e2540006c815e656b1a73b5401f1701c846fefdb2176cc5c2164f9fc8a3ab72c9c736bf4917571535a615f6d9659086544a810d15b9c4b674b3e300d0
7
+ data.tar.gz: e6168ec88405f18d90b6306f71fb8e0c0509673c79c7d58faa86be2ccf642a83c3c0ce22b03283bd2c1fbda0e45afbfa5f1365a46d59a0eea91cf41f309b4d14
data/CHANGELOG.md CHANGED
@@ -1,6 +1,26 @@
1
1
  Unreleased Changes
2
2
  ------------------
3
3
 
4
+ 1.40.0 (2021-11-30)
5
+ ------------------
6
+
7
+ * Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
8
+
9
+ 1.39.0 (2021-11-24)
10
+ ------------------
11
+
12
+ * Feature - This release enables customers to use translation settings to mask profane words and phrases in their translation output.
13
+
14
+ 1.38.0 (2021-11-11)
15
+ ------------------
16
+
17
+ * 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.
18
+
19
+ 1.37.0 (2021-11-05)
20
+ ------------------
21
+
22
+ * Feature - This release enable customers to use their own KMS keys to encrypt output files when they submit a batch transform job.
23
+
4
24
  1.36.0 (2021-11-04)
5
25
  ------------------
6
26
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.36.0
1
+ 1.40.0
@@ -119,7 +119,9 @@ module Aws::Translate
119
119
  # * EC2/ECS IMDS instance profile - When used by default, the timeouts
120
120
  # are very aggressive. Construct and pass an instance of
121
121
  # `Aws::InstanceProfileCredentails` or `Aws::ECSCredentials` to
122
- # enable retries and extended timeouts.
122
+ # enable retries and extended timeouts. Instance profile credential
123
+ # fetching can be disabled by setting ENV['AWS_EC2_METADATA_DISABLED']
124
+ # to true.
123
125
  #
124
126
  # @option options [required, String] :region
125
127
  # The AWS region to connect to. The configured `:region` is
@@ -347,10 +349,10 @@ module Aws::Translate
347
349
  # @!group API Operations
348
350
 
349
351
  # Creates a parallel data resource in Amazon Translate by importing an
350
- # input file from Amazon S3. Parallel data files contain examples of
351
- # source phrases and their translations from your translation memory. By
352
- # adding parallel data, you can influence the style, tone, and word
353
- # choice in your translation output.
352
+ # input file from Amazon S3. Parallel data files contain examples that
353
+ # show how you want segments of text to be translated. By adding
354
+ # parallel data, you can influence the style, tone, and word choice in
355
+ # your translation output.
354
356
  #
355
357
  # @option params [required, String] :name
356
358
  # A custom name for the parallel data resource in Amazon Translate. You
@@ -460,7 +462,7 @@ module Aws::Translate
460
462
  req.send_request(options)
461
463
  end
462
464
 
463
- # Gets the properties associated with an asycnhronous batch translation
465
+ # Gets the properties associated with an asynchronous batch translation
464
466
  # job including name, ID, status, source and target languages,
465
467
  # input/output S3 buckets, and so on.
466
468
  #
@@ -500,7 +502,10 @@ module Aws::Translate
500
502
  # resp.text_translation_job_properties.input_data_config.s3_uri #=> String
501
503
  # resp.text_translation_job_properties.input_data_config.content_type #=> String
502
504
  # resp.text_translation_job_properties.output_data_config.s3_uri #=> String
505
+ # resp.text_translation_job_properties.output_data_config.encryption_key.type #=> String, one of "KMS"
506
+ # resp.text_translation_job_properties.output_data_config.encryption_key.id #=> String
503
507
  # resp.text_translation_job_properties.data_access_role_arn #=> String
508
+ # resp.text_translation_job_properties.settings.profanity #=> String, one of "MASK"
504
509
  #
505
510
  # @see http://docs.aws.amazon.com/goto/WebAPI/translate-2017-07-01/DescribeTextTranslationJob AWS API Documentation
506
511
  #
@@ -572,20 +577,29 @@ module Aws::Translate
572
577
  # @option params [required, String] :name
573
578
  # The name of the custom terminology being retrieved.
574
579
  #
575
- # @option params [required, String] :terminology_data_format
576
- # The data format of the custom terminology being retrieved, either CSV
577
- # or TMX.
580
+ # @option params [String] :terminology_data_format
581
+ # The data format of the custom terminology being retrieved.
582
+ #
583
+ # If you don't specify this parameter, Amazon Translate returns a file
584
+ # that has the same format as the file that was imported to create the
585
+ # terminology.
586
+ #
587
+ # If you specify this parameter when you retrieve a multi-directional
588
+ # terminology resource, you must specify the same format as that of the
589
+ # input file that was imported to create it. Otherwise, Amazon Translate
590
+ # throws an error.
578
591
  #
579
592
  # @return [Types::GetTerminologyResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
580
593
  #
581
594
  # * {Types::GetTerminologyResponse#terminology_properties #terminology_properties} => Types::TerminologyProperties
582
595
  # * {Types::GetTerminologyResponse#terminology_data_location #terminology_data_location} => Types::TerminologyDataLocation
596
+ # * {Types::GetTerminologyResponse#auxiliary_data_location #auxiliary_data_location} => Types::TerminologyDataLocation
583
597
  #
584
598
  # @example Request syntax with placeholder values
585
599
  #
586
600
  # resp = client.get_terminology({
587
601
  # name: "ResourceName", # required
588
- # terminology_data_format: "CSV", # required, accepts CSV, TMX
602
+ # terminology_data_format: "CSV", # accepts CSV, TMX, TSV
589
603
  # })
590
604
  #
591
605
  # @example Response structure
@@ -602,8 +616,14 @@ module Aws::Translate
602
616
  # resp.terminology_properties.term_count #=> Integer
603
617
  # resp.terminology_properties.created_at #=> Time
604
618
  # resp.terminology_properties.last_updated_at #=> Time
619
+ # resp.terminology_properties.directionality #=> String, one of "UNI", "MULTI"
620
+ # resp.terminology_properties.message #=> String
621
+ # resp.terminology_properties.skipped_term_count #=> Integer
622
+ # resp.terminology_properties.format #=> String, one of "CSV", "TMX", "TSV"
605
623
  # resp.terminology_data_location.repository_type #=> String
606
624
  # resp.terminology_data_location.location #=> String
625
+ # resp.auxiliary_data_location.repository_type #=> String
626
+ # resp.auxiliary_data_location.location #=> String
607
627
  #
608
628
  # @see http://docs.aws.amazon.com/goto/WebAPI/translate-2017-07-01/GetTerminology AWS API Documentation
609
629
  #
@@ -647,6 +667,7 @@ module Aws::Translate
647
667
  # @return [Types::ImportTerminologyResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
648
668
  #
649
669
  # * {Types::ImportTerminologyResponse#terminology_properties #terminology_properties} => Types::TerminologyProperties
670
+ # * {Types::ImportTerminologyResponse#auxiliary_data_location #auxiliary_data_location} => Types::TerminologyDataLocation
650
671
  #
651
672
  # @example Request syntax with placeholder values
652
673
  #
@@ -656,7 +677,8 @@ module Aws::Translate
656
677
  # description: "Description",
657
678
  # terminology_data: { # required
658
679
  # file: "data", # required
659
- # format: "CSV", # required, accepts CSV, TMX
680
+ # format: "CSV", # required, accepts CSV, TMX, TSV
681
+ # directionality: "UNI", # accepts UNI, MULTI
660
682
  # },
661
683
  # encryption_key: {
662
684
  # type: "KMS", # required, accepts KMS
@@ -678,6 +700,12 @@ module Aws::Translate
678
700
  # resp.terminology_properties.term_count #=> Integer
679
701
  # resp.terminology_properties.created_at #=> Time
680
702
  # resp.terminology_properties.last_updated_at #=> Time
703
+ # resp.terminology_properties.directionality #=> String, one of "UNI", "MULTI"
704
+ # resp.terminology_properties.message #=> String
705
+ # resp.terminology_properties.skipped_term_count #=> Integer
706
+ # resp.terminology_properties.format #=> String, one of "CSV", "TMX", "TSV"
707
+ # resp.auxiliary_data_location.repository_type #=> String
708
+ # resp.auxiliary_data_location.location #=> String
681
709
  #
682
710
  # @see http://docs.aws.amazon.com/goto/WebAPI/translate-2017-07-01/ImportTerminology AWS API Documentation
683
711
  #
@@ -784,6 +812,10 @@ module Aws::Translate
784
812
  # resp.terminology_properties_list[0].term_count #=> Integer
785
813
  # resp.terminology_properties_list[0].created_at #=> Time
786
814
  # resp.terminology_properties_list[0].last_updated_at #=> Time
815
+ # resp.terminology_properties_list[0].directionality #=> String, one of "UNI", "MULTI"
816
+ # resp.terminology_properties_list[0].message #=> String
817
+ # resp.terminology_properties_list[0].skipped_term_count #=> Integer
818
+ # resp.terminology_properties_list[0].format #=> String, one of "CSV", "TMX", "TSV"
787
819
  # resp.next_token #=> String
788
820
  #
789
821
  # @see http://docs.aws.amazon.com/goto/WebAPI/translate-2017-07-01/ListTerminologies AWS API Documentation
@@ -851,7 +883,10 @@ module Aws::Translate
851
883
  # resp.text_translation_job_properties_list[0].input_data_config.s3_uri #=> String
852
884
  # resp.text_translation_job_properties_list[0].input_data_config.content_type #=> String
853
885
  # resp.text_translation_job_properties_list[0].output_data_config.s3_uri #=> String
886
+ # resp.text_translation_job_properties_list[0].output_data_config.encryption_key.type #=> String, one of "KMS"
887
+ # resp.text_translation_job_properties_list[0].output_data_config.encryption_key.id #=> String
854
888
  # resp.text_translation_job_properties_list[0].data_access_role_arn #=> String
889
+ # resp.text_translation_job_properties_list[0].settings.profanity #=> String, one of "MASK"
855
890
  # resp.next_token #=> String
856
891
  #
857
892
  # @see http://docs.aws.amazon.com/goto/WebAPI/translate-2017-07-01/ListTextTranslationJobs AWS API Documentation
@@ -890,7 +925,7 @@ module Aws::Translate
890
925
  # @option params [required, String] :data_access_role_arn
891
926
  # The Amazon Resource Name (ARN) of an AWS Identity Access and
892
927
  # Management (IAM) role that grants Amazon Translate read access to your
893
- # input data. For more nformation, see identity-and-access-management.
928
+ # input data. For more information, see identity-and-access-management.
894
929
  #
895
930
  # @option params [required, String] :source_language_code
896
931
  # The language code of the input language. For a list of language codes,
@@ -903,13 +938,39 @@ module Aws::Translate
903
938
  # The language code of the output language.
904
939
  #
905
940
  # @option params [Array<String>] :terminology_names
906
- # The name of the terminology to use in the batch translation job. For a
907
- # list of available terminologies, use the ListTerminologies operation.
941
+ # The name of a custom terminology resource to add to the translation
942
+ # job. This resource lists examples source terms and the desired
943
+ # translation for each term.
944
+ #
945
+ # This parameter accepts only one custom terminology resource.
946
+ #
947
+ # For a list of available custom terminology resources, use the
948
+ # ListTerminologies operation.
949
+ #
950
+ # For more information, see how-custom-terminology.
908
951
  #
909
952
  # @option params [Array<String>] :parallel_data_names
910
- # The names of the parallel data resources to use in the batch
911
- # translation job. For a list of available parallel data resources, use
912
- # the ListParallelData operation.
953
+ # The name of a parallel data resource to add to the translation job.
954
+ # This resource consists of examples that show how you want segments of
955
+ # text to be translated. When you add parallel data to a translation
956
+ # job, you create an *Active Custom Translation* job.
957
+ #
958
+ # This parameter accepts only one parallel data resource.
959
+ #
960
+ # <note markdown="1"> Active Custom Translation jobs are priced at a higher rate than other
961
+ # jobs that don't use parallel data. For more information, see [Amazon
962
+ # Translate pricing][1].
963
+ #
964
+ # </note>
965
+ #
966
+ # For a list of available parallel data resources, use the
967
+ # ListParallelData operation.
968
+ #
969
+ # For more information, see customizing-translations-parallel-data.
970
+ #
971
+ #
972
+ #
973
+ # [1]: http://aws.amazon.com/translate/pricing/
913
974
  #
914
975
  # @option params [required, String] :client_token
915
976
  # A unique identifier for the request. This token is auto-generated when
@@ -918,6 +979,10 @@ module Aws::Translate
918
979
  # **A suitable default value is auto-generated.** You should normally
919
980
  # not need to pass this option.**
920
981
  #
982
+ # @option params [Types::TranslationSettings] :settings
983
+ # Settings to configure your translation output, including the option to
984
+ # mask profane words and phrases.
985
+ #
921
986
  # @return [Types::StartTextTranslationJobResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
922
987
  #
923
988
  # * {Types::StartTextTranslationJobResponse#job_id #job_id} => String
@@ -933,6 +998,10 @@ module Aws::Translate
933
998
  # },
934
999
  # output_data_config: { # required
935
1000
  # s3_uri: "S3Uri", # required
1001
+ # encryption_key: {
1002
+ # type: "KMS", # required, accepts KMS
1003
+ # id: "EncryptionKeyID", # required
1004
+ # },
936
1005
  # },
937
1006
  # data_access_role_arn: "IamRoleArn", # required
938
1007
  # source_language_code: "LanguageCodeString", # required
@@ -940,6 +1009,9 @@ module Aws::Translate
940
1009
  # terminology_names: ["ResourceName"],
941
1010
  # parallel_data_names: ["ResourceName"],
942
1011
  # client_token: "ClientTokenString", # required
1012
+ # settings: {
1013
+ # profanity: "MASK", # accepts MASK
1014
+ # },
943
1015
  # })
944
1016
  #
945
1017
  # @example Response structure
@@ -1028,12 +1100,17 @@ module Aws::Translate
1028
1100
  # The language code requested for the language of the target text. The
1029
1101
  # language must be a language supported by Amazon Translate.
1030
1102
  #
1103
+ # @option params [Types::TranslationSettings] :settings
1104
+ # Settings to configure your translation output, including the option to
1105
+ # mask profane words and phrases.
1106
+ #
1031
1107
  # @return [Types::TranslateTextResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
1032
1108
  #
1033
1109
  # * {Types::TranslateTextResponse#translated_text #translated_text} => String
1034
1110
  # * {Types::TranslateTextResponse#source_language_code #source_language_code} => String
1035
1111
  # * {Types::TranslateTextResponse#target_language_code #target_language_code} => String
1036
1112
  # * {Types::TranslateTextResponse#applied_terminologies #applied_terminologies} => Array&lt;Types::AppliedTerminology&gt;
1113
+ # * {Types::TranslateTextResponse#applied_settings #applied_settings} => Types::TranslationSettings
1037
1114
  #
1038
1115
  # @example Request syntax with placeholder values
1039
1116
  #
@@ -1042,6 +1119,9 @@ module Aws::Translate
1042
1119
  # terminology_names: ["ResourceName"],
1043
1120
  # source_language_code: "LanguageCodeString", # required
1044
1121
  # target_language_code: "LanguageCodeString", # required
1122
+ # settings: {
1123
+ # profanity: "MASK", # accepts MASK
1124
+ # },
1045
1125
  # })
1046
1126
  #
1047
1127
  # @example Response structure
@@ -1054,6 +1134,7 @@ module Aws::Translate
1054
1134
  # resp.applied_terminologies[0].terms #=> Array
1055
1135
  # resp.applied_terminologies[0].terms[0].source_text #=> String
1056
1136
  # resp.applied_terminologies[0].terms[0].target_text #=> String
1137
+ # resp.applied_settings.profanity #=> String, one of "MASK"
1057
1138
  #
1058
1139
  # @see http://docs.aws.amazon.com/goto/WebAPI/translate-2017-07-01/TranslateText AWS API Documentation
1059
1140
  #
@@ -1132,7 +1213,7 @@ module Aws::Translate
1132
1213
  params: params,
1133
1214
  config: config)
1134
1215
  context[:gem_name] = 'aws-sdk-translate'
1135
- context[:gem_version] = '1.36.0'
1216
+ context[:gem_version] = '1.40.0'
1136
1217
  Seahorse::Client::Request.new(handlers, context)
1137
1218
  end
1138
1219
 
@@ -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.36.0'
51
+ GEM_VERSION = '1.40.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.36.0
4
+ version: 1.40.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-04 00:00:00.000000000 Z
11
+ date: 2021-11-30 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: aws-sdk-core