aws-sdk-translate 1.34.0 → 1.38.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: bc24904bcd14f7cbe2b6a7fb40d45b923122d093ffeb97f8d497a375d3c1cee3
4
- data.tar.gz: bb4aea0a854385c76da2575d0ea37316e6745bb2ac780db82a81aa99e63be5a5
3
+ metadata.gz: 1f83d085cfb031f5911cb38428f8db0395419c2c96e38943ebe2dda9857089ba
4
+ data.tar.gz: 4085af53260662bffb1c9313304dcad803a950a9ff8b29a2b82eef8433622b44
5
5
  SHA512:
6
- metadata.gz: 81f50fc1ac87a4df88877fe1a4031b7d3884f93cae714ce4421a6dcc84d96f8f1ac0ccd4c2e062ad3fec3b1050b638d4f4b35108b3281bf1a703f5a749cf1c54
7
- data.tar.gz: 004a93c818455bfeeb59ee2431890640af100b5e77ec5eef6db64fd4cf741487d53ad279a797f04028bf10a7b71587d6b9abf1ba37b2ec85802ae5cb2b29961d
6
+ metadata.gz: 1d6cc30efd17e61d9f5f32555ff0183bcd7ef70cf4d9293a3a1350fe9307c1437f0489a361d010b6c27634097be902796dfdafa7c818a06105d1c2c8f725e5e2
7
+ data.tar.gz: 2f4391d077e74eab1b3b672c13f2bbca4ee4d55bf6348c767daea07736186895b45cdab7759f3d4bb9cb98826da58206aed84ef4683fd15cac637222828da7df
data/CHANGELOG.md CHANGED
@@ -1,6 +1,26 @@
1
1
  Unreleased Changes
2
2
  ------------------
3
3
 
4
+ 1.38.0 (2021-11-11)
5
+ ------------------
6
+
7
+ * 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.
8
+
9
+ 1.37.0 (2021-11-05)
10
+ ------------------
11
+
12
+ * Feature - This release enable customers to use their own KMS keys to encrypt output files when they submit a batch transform job.
13
+
14
+ 1.36.0 (2021-11-04)
15
+ ------------------
16
+
17
+ * Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
18
+
19
+ 1.35.0 (2021-10-18)
20
+ ------------------
21
+
22
+ * Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
23
+
4
24
  1.34.0 (2021-09-01)
5
25
  ------------------
6
26
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.34.0
1
+ 1.38.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,6 +500,8 @@ 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
495
506
  #
496
507
  # @see http://docs.aws.amazon.com/goto/WebAPI/translate-2017-07-01/DescribeTextTranslationJob AWS API Documentation
@@ -563,20 +574,29 @@ module Aws::Translate
563
574
  # @option params [required, String] :name
564
575
  # The name of the custom terminology being retrieved.
565
576
  #
566
- # @option params [required, String] :terminology_data_format
567
- # The data format of the custom terminology being retrieved, either CSV
568
- # or TMX.
577
+ # @option params [String] :terminology_data_format
578
+ # The data format of the custom terminology being retrieved.
579
+ #
580
+ # If you don't specify this parameter, Amazon Translate returns a file
581
+ # that has the same format as the file that was imported to create the
582
+ # terminology.
583
+ #
584
+ # If you specify this parameter when you retrieve a multi-directional
585
+ # terminology resource, you must specify the same format as that of the
586
+ # input file that was imported to create it. Otherwise, Amazon Translate
587
+ # throws an error.
569
588
  #
570
589
  # @return [Types::GetTerminologyResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
571
590
  #
572
591
  # * {Types::GetTerminologyResponse#terminology_properties #terminology_properties} => Types::TerminologyProperties
573
592
  # * {Types::GetTerminologyResponse#terminology_data_location #terminology_data_location} => Types::TerminologyDataLocation
593
+ # * {Types::GetTerminologyResponse#auxiliary_data_location #auxiliary_data_location} => Types::TerminologyDataLocation
574
594
  #
575
595
  # @example Request syntax with placeholder values
576
596
  #
577
597
  # resp = client.get_terminology({
578
598
  # name: "ResourceName", # required
579
- # terminology_data_format: "CSV", # required, accepts CSV, TMX
599
+ # terminology_data_format: "CSV", # accepts CSV, TMX, TSV
580
600
  # })
581
601
  #
582
602
  # @example Response structure
@@ -593,8 +613,14 @@ module Aws::Translate
593
613
  # resp.terminology_properties.term_count #=> Integer
594
614
  # resp.terminology_properties.created_at #=> Time
595
615
  # resp.terminology_properties.last_updated_at #=> Time
616
+ # resp.terminology_properties.directionality #=> String, one of "UNI", "MULTI"
617
+ # resp.terminology_properties.message #=> String
618
+ # resp.terminology_properties.skipped_term_count #=> Integer
619
+ # resp.terminology_properties.format #=> String, one of "CSV", "TMX", "TSV"
596
620
  # resp.terminology_data_location.repository_type #=> String
597
621
  # resp.terminology_data_location.location #=> String
622
+ # resp.auxiliary_data_location.repository_type #=> String
623
+ # resp.auxiliary_data_location.location #=> String
598
624
  #
599
625
  # @see http://docs.aws.amazon.com/goto/WebAPI/translate-2017-07-01/GetTerminology AWS API Documentation
600
626
  #
@@ -638,6 +664,7 @@ module Aws::Translate
638
664
  # @return [Types::ImportTerminologyResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
639
665
  #
640
666
  # * {Types::ImportTerminologyResponse#terminology_properties #terminology_properties} => Types::TerminologyProperties
667
+ # * {Types::ImportTerminologyResponse#auxiliary_data_location #auxiliary_data_location} => Types::TerminologyDataLocation
641
668
  #
642
669
  # @example Request syntax with placeholder values
643
670
  #
@@ -647,7 +674,8 @@ module Aws::Translate
647
674
  # description: "Description",
648
675
  # terminology_data: { # required
649
676
  # file: "data", # required
650
- # format: "CSV", # required, accepts CSV, TMX
677
+ # format: "CSV", # required, accepts CSV, TMX, TSV
678
+ # directionality: "UNI", # accepts UNI, MULTI
651
679
  # },
652
680
  # encryption_key: {
653
681
  # type: "KMS", # required, accepts KMS
@@ -669,6 +697,12 @@ module Aws::Translate
669
697
  # resp.terminology_properties.term_count #=> Integer
670
698
  # resp.terminology_properties.created_at #=> Time
671
699
  # resp.terminology_properties.last_updated_at #=> Time
700
+ # resp.terminology_properties.directionality #=> String, one of "UNI", "MULTI"
701
+ # resp.terminology_properties.message #=> String
702
+ # resp.terminology_properties.skipped_term_count #=> Integer
703
+ # resp.terminology_properties.format #=> String, one of "CSV", "TMX", "TSV"
704
+ # resp.auxiliary_data_location.repository_type #=> String
705
+ # resp.auxiliary_data_location.location #=> String
672
706
  #
673
707
  # @see http://docs.aws.amazon.com/goto/WebAPI/translate-2017-07-01/ImportTerminology AWS API Documentation
674
708
  #
@@ -775,6 +809,10 @@ module Aws::Translate
775
809
  # resp.terminology_properties_list[0].term_count #=> Integer
776
810
  # resp.terminology_properties_list[0].created_at #=> Time
777
811
  # resp.terminology_properties_list[0].last_updated_at #=> Time
812
+ # resp.terminology_properties_list[0].directionality #=> String, one of "UNI", "MULTI"
813
+ # resp.terminology_properties_list[0].message #=> String
814
+ # resp.terminology_properties_list[0].skipped_term_count #=> Integer
815
+ # resp.terminology_properties_list[0].format #=> String, one of "CSV", "TMX", "TSV"
778
816
  # resp.next_token #=> String
779
817
  #
780
818
  # @see http://docs.aws.amazon.com/goto/WebAPI/translate-2017-07-01/ListTerminologies AWS API Documentation
@@ -842,6 +880,8 @@ module Aws::Translate
842
880
  # resp.text_translation_job_properties_list[0].input_data_config.s3_uri #=> String
843
881
  # resp.text_translation_job_properties_list[0].input_data_config.content_type #=> String
844
882
  # resp.text_translation_job_properties_list[0].output_data_config.s3_uri #=> String
883
+ # resp.text_translation_job_properties_list[0].output_data_config.encryption_key.type #=> String, one of "KMS"
884
+ # resp.text_translation_job_properties_list[0].output_data_config.encryption_key.id #=> String
845
885
  # resp.text_translation_job_properties_list[0].data_access_role_arn #=> String
846
886
  # resp.next_token #=> String
847
887
  #
@@ -881,7 +921,7 @@ module Aws::Translate
881
921
  # @option params [required, String] :data_access_role_arn
882
922
  # The Amazon Resource Name (ARN) of an AWS Identity Access and
883
923
  # Management (IAM) role that grants Amazon Translate read access to your
884
- # input data. For more nformation, see identity-and-access-management.
924
+ # input data. For more information, see identity-and-access-management.
885
925
  #
886
926
  # @option params [required, String] :source_language_code
887
927
  # The language code of the input language. For a list of language codes,
@@ -894,13 +934,39 @@ module Aws::Translate
894
934
  # The language code of the output language.
895
935
  #
896
936
  # @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.
937
+ # The name of a custom terminology resource to add to the translation
938
+ # job. This resource lists examples source terms and the desired
939
+ # translation for each term.
940
+ #
941
+ # This parameter accepts only one custom terminology resource.
942
+ #
943
+ # For a list of available custom terminology resources, use the
944
+ # ListTerminologies operation.
945
+ #
946
+ # For more information, see how-custom-terminology.
899
947
  #
900
948
  # @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.
949
+ # The name of a parallel data resource to add to the translation job.
950
+ # This resource consists of examples that show how you want segments of
951
+ # text to be translated. When you add parallel data to a translation
952
+ # job, you create an *Active Custom Translation* job.
953
+ #
954
+ # This parameter accepts only one parallel data resource.
955
+ #
956
+ # <note markdown="1"> Active Custom Translation jobs are priced at a higher rate than other
957
+ # jobs that don't use parallel data. For more information, see [Amazon
958
+ # Translate pricing][1].
959
+ #
960
+ # </note>
961
+ #
962
+ # For a list of available parallel data resources, use the
963
+ # ListParallelData operation.
964
+ #
965
+ # For more information, see customizing-translations-parallel-data.
966
+ #
967
+ #
968
+ #
969
+ # [1]: http://aws.amazon.com/translate/pricing/
904
970
  #
905
971
  # @option params [required, String] :client_token
906
972
  # A unique identifier for the request. This token is auto-generated when
@@ -924,6 +990,10 @@ module Aws::Translate
924
990
  # },
925
991
  # output_data_config: { # required
926
992
  # s3_uri: "S3Uri", # required
993
+ # encryption_key: {
994
+ # type: "KMS", # required, accepts KMS
995
+ # id: "EncryptionKeyID", # required
996
+ # },
927
997
  # },
928
998
  # data_access_role_arn: "IamRoleArn", # required
929
999
  # source_language_code: "LanguageCodeString", # required
@@ -1123,7 +1193,7 @@ module Aws::Translate
1123
1193
  params: params,
1124
1194
  config: config)
1125
1195
  context[:gem_name] = 'aws-sdk-translate'
1126
- context[:gem_version] = '1.34.0'
1196
+ context[:gem_version] = '1.38.0'
1127
1197
  Seahorse::Client::Request.new(handlers, context)
1128
1198
  end
1129
1199
 
@@ -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')
@@ -160,11 +161,12 @@ module Aws::Translate
160
161
  GetParallelDataResponse.struct_class = Types::GetParallelDataResponse
161
162
 
162
163
  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"))
164
+ GetTerminologyRequest.add_member(:terminology_data_format, Shapes::ShapeRef.new(shape: TerminologyDataFormat, location_name: "TerminologyDataFormat"))
164
165
  GetTerminologyRequest.struct_class = Types::GetTerminologyRequest
165
166
 
166
167
  GetTerminologyResponse.add_member(:terminology_properties, Shapes::ShapeRef.new(shape: TerminologyProperties, location_name: "TerminologyProperties"))
167
168
  GetTerminologyResponse.add_member(:terminology_data_location, Shapes::ShapeRef.new(shape: TerminologyDataLocation, location_name: "TerminologyDataLocation"))
169
+ GetTerminologyResponse.add_member(:auxiliary_data_location, Shapes::ShapeRef.new(shape: TerminologyDataLocation, location_name: "AuxiliaryDataLocation"))
168
170
  GetTerminologyResponse.struct_class = Types::GetTerminologyResponse
169
171
 
170
172
  ImportTerminologyRequest.add_member(:name, Shapes::ShapeRef.new(shape: ResourceName, required: true, location_name: "Name"))
@@ -175,6 +177,7 @@ module Aws::Translate
175
177
  ImportTerminologyRequest.struct_class = Types::ImportTerminologyRequest
176
178
 
177
179
  ImportTerminologyResponse.add_member(:terminology_properties, Shapes::ShapeRef.new(shape: TerminologyProperties, location_name: "TerminologyProperties"))
180
+ ImportTerminologyResponse.add_member(:auxiliary_data_location, Shapes::ShapeRef.new(shape: TerminologyDataLocation, location_name: "AuxiliaryDataLocation"))
178
181
  ImportTerminologyResponse.struct_class = Types::ImportTerminologyResponse
179
182
 
180
183
  InputDataConfig.add_member(:s3_uri, Shapes::ShapeRef.new(shape: S3Uri, required: true, location_name: "S3Uri"))
@@ -229,6 +232,7 @@ module Aws::Translate
229
232
  ListTextTranslationJobsResponse.struct_class = Types::ListTextTranslationJobsResponse
230
233
 
231
234
  OutputDataConfig.add_member(:s3_uri, Shapes::ShapeRef.new(shape: S3Uri, required: true, location_name: "S3Uri"))
235
+ OutputDataConfig.add_member(:encryption_key, Shapes::ShapeRef.new(shape: EncryptionKey, location_name: "EncryptionKey"))
232
236
  OutputDataConfig.struct_class = Types::OutputDataConfig
233
237
 
234
238
  ParallelDataConfig.add_member(:s3_uri, Shapes::ShapeRef.new(shape: S3Uri, required: true, location_name: "S3Uri"))
@@ -300,6 +304,7 @@ module Aws::Translate
300
304
 
301
305
  TerminologyData.add_member(:file, Shapes::ShapeRef.new(shape: TerminologyFile, required: true, location_name: "File"))
302
306
  TerminologyData.add_member(:format, Shapes::ShapeRef.new(shape: TerminologyDataFormat, required: true, location_name: "Format"))
307
+ TerminologyData.add_member(:directionality, Shapes::ShapeRef.new(shape: Directionality, location_name: "Directionality"))
303
308
  TerminologyData.struct_class = Types::TerminologyData
304
309
 
305
310
  TerminologyDataLocation.add_member(:repository_type, Shapes::ShapeRef.new(shape: String, required: true, location_name: "RepositoryType"))
@@ -316,6 +321,10 @@ module Aws::Translate
316
321
  TerminologyProperties.add_member(:term_count, Shapes::ShapeRef.new(shape: Integer, location_name: "TermCount"))
317
322
  TerminologyProperties.add_member(:created_at, Shapes::ShapeRef.new(shape: Timestamp, location_name: "CreatedAt"))
318
323
  TerminologyProperties.add_member(:last_updated_at, Shapes::ShapeRef.new(shape: Timestamp, location_name: "LastUpdatedAt"))
324
+ TerminologyProperties.add_member(:directionality, Shapes::ShapeRef.new(shape: Directionality, location_name: "Directionality"))
325
+ TerminologyProperties.add_member(:message, Shapes::ShapeRef.new(shape: UnboundedLengthString, location_name: "Message"))
326
+ TerminologyProperties.add_member(:skipped_term_count, Shapes::ShapeRef.new(shape: Integer, location_name: "SkippedTermCount"))
327
+ TerminologyProperties.add_member(:format, Shapes::ShapeRef.new(shape: TerminologyDataFormat, location_name: "Format"))
319
328
  TerminologyProperties.struct_class = Types::TerminologyProperties
320
329
 
321
330
  TerminologyPropertiesList.member = Shapes::ShapeRef.new(shape: TerminologyProperties)
@@ -545,6 +554,7 @@ module Aws::Translate
545
554
  o.errors << Shapes::ShapeRef.new(shape: UnsupportedLanguagePairException)
546
555
  o.errors << Shapes::ShapeRef.new(shape: InvalidRequestException)
547
556
  o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
557
+ o.errors << Shapes::ShapeRef.new(shape: InvalidParameterValueException)
548
558
  o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
549
559
  end)
550
560
 
@@ -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 parallel data input files for the
317
+ # risk of CSV 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 a parallel data input file from Amazon S3,
326
+ # ensure that you 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
@@ -377,11 +397,20 @@ module Aws::Translate
377
397
  # minute expiration.
378
398
  # @return [Types::TerminologyDataLocation]
379
399
  #
400
+ # @!attribute [rw] auxiliary_data_location
401
+ # The Amazon S3 location of a file that provides any errors or
402
+ # warnings that were produced by your input file. This file was
403
+ # created when Amazon Translate attempted to create a terminology
404
+ # resource. The location is returned as a presigned URL to that has a
405
+ # 30 minute expiration.
406
+ # @return [Types::TerminologyDataLocation]
407
+ #
380
408
  # @see http://docs.aws.amazon.com/goto/WebAPI/translate-2017-07-01/GetTerminologyResponse AWS API Documentation
381
409
  #
382
410
  class GetTerminologyResponse < Struct.new(
383
411
  :terminology_properties,
384
- :terminology_data_location)
412
+ :terminology_data_location,
413
+ :auxiliary_data_location)
385
414
  SENSITIVE = []
386
415
  include Aws::Structure
387
416
  end
@@ -395,7 +424,8 @@ module Aws::Translate
395
424
  # description: "Description",
396
425
  # terminology_data: { # required
397
426
  # file: "data", # required
398
- # format: "CSV", # required, accepts CSV, TMX
427
+ # format: "CSV", # required, accepts CSV, TMX, TSV
428
+ # directionality: "UNI", # accepts UNI, MULTI
399
429
  # },
400
430
  # encryption_key: {
401
431
  # type: "KMS", # required, accepts KMS
@@ -442,10 +472,19 @@ module Aws::Translate
442
472
  # The properties of the custom terminology being imported.
443
473
  # @return [Types::TerminologyProperties]
444
474
  #
475
+ # @!attribute [rw] auxiliary_data_location
476
+ # The Amazon S3 location of a file that provides any errors or
477
+ # warnings that were produced by your input file. This file was
478
+ # created when Amazon Translate attempted to create a terminology
479
+ # resource. The location is returned as a presigned URL to that has a
480
+ # 30 minute expiration.
481
+ # @return [Types::TerminologyDataLocation]
482
+ #
445
483
  # @see http://docs.aws.amazon.com/goto/WebAPI/translate-2017-07-01/ImportTerminologyResponse AWS API Documentation
446
484
  #
447
485
  class ImportTerminologyResponse < Struct.new(
448
- :terminology_properties)
486
+ :terminology_properties,
487
+ :auxiliary_data_location)
449
488
  SENSITIVE = []
450
489
  include Aws::Structure
451
490
  end
@@ -491,6 +530,10 @@ module Aws::Translate
491
530
  # The input data consists of one or more Excel Workbook files
492
531
  # (.xlsx).
493
532
  #
533
+ # * `application/x-xliff+xml`\: The input data consists of one or more
534
+ # XML Localization Interchange File Format (XLIFF) files (.xlf).
535
+ # Amazon Translate supports only XLIFF version 1.2.
536
+ #
494
537
  # If you structure your input data as HTML, ensure that you set this
495
538
  # parameter to `text/html`. By doing so, you cut costs by limiting the
496
539
  # translation to the contents of the `html` element in each file.
@@ -741,7 +784,7 @@ module Aws::Translate
741
784
  # @return [Array<Types::TextTranslationJobProperties>]
742
785
  #
743
786
  # @!attribute [rw] next_token
744
- # The token to use to retreive the next page of results. This value is
787
+ # The token to use to retrieve the next page of results. This value is
745
788
  # `null` when there are no more results to return.
746
789
  # @return [String]
747
790
  #
@@ -761,6 +804,10 @@ module Aws::Translate
761
804
  #
762
805
  # {
763
806
  # s3_uri: "S3Uri", # required
807
+ # encryption_key: {
808
+ # type: "KMS", # required, accepts KMS
809
+ # id: "EncryptionKeyID", # required
810
+ # },
764
811
  # }
765
812
  #
766
813
  # @!attribute [rw] s3_uri
@@ -769,10 +816,15 @@ module Aws::Translate
769
816
  # you are calling.
770
817
  # @return [String]
771
818
  #
819
+ # @!attribute [rw] encryption_key
820
+ # The encryption key used to encrypt this object.
821
+ # @return [Types::EncryptionKey]
822
+ #
772
823
  # @see http://docs.aws.amazon.com/goto/WebAPI/translate-2017-07-01/OutputDataConfig AWS API Documentation
773
824
  #
774
825
  class OutputDataConfig < Struct.new(
775
- :s3_uri)
826
+ :s3_uri,
827
+ :encryption_key)
776
828
  SENSITIVE = []
777
829
  include Aws::Structure
778
830
  end
@@ -816,6 +868,18 @@ module Aws::Translate
816
868
  # @!attribute [rw] location
817
869
  # The Amazon S3 location of the parallel data input file. The location
818
870
  # is returned as a presigned URL to that has a 30 minute expiration.
871
+ #
872
+ # Amazon Translate doesn't scan parallel data input files for the
873
+ # risk of CSV injection attacks.
874
+ #
875
+ # CSV injection occurs when a .csv or .tsv file is altered so that a
876
+ # record contains malicious code. The record begins with a special
877
+ # character, such as =, +, -, or @. When the file is opened in a
878
+ # spreadsheet program, the program might interpret the record as a
879
+ # formula and run the code within it.
880
+ #
881
+ # Before you download a parallel data input file from Amazon S3,
882
+ # ensure that you recognize the file and trust its creator.
819
883
  # @return [String]
820
884
  #
821
885
  # @see http://docs.aws.amazon.com/goto/WebAPI/translate-2017-07-01/ParallelDataDataLocation AWS API Documentation
@@ -977,6 +1041,10 @@ module Aws::Translate
977
1041
  # },
978
1042
  # output_data_config: { # required
979
1043
  # s3_uri: "S3Uri", # required
1044
+ # encryption_key: {
1045
+ # type: "KMS", # required, accepts KMS
1046
+ # id: "EncryptionKeyID", # required
1047
+ # },
980
1048
  # },
981
1049
  # data_access_role_arn: "IamRoleArn", # required
982
1050
  # source_language_code: "LanguageCodeString", # required
@@ -1002,7 +1070,7 @@ module Aws::Translate
1002
1070
  # @!attribute [rw] data_access_role_arn
1003
1071
  # The Amazon Resource Name (ARN) of an AWS Identity Access and
1004
1072
  # Management (IAM) role that grants Amazon Translate read access to
1005
- # your input data. For more nformation, see
1073
+ # your input data. For more information, see
1006
1074
  # identity-and-access-management.
1007
1075
  # @return [String]
1008
1076
  #
@@ -1019,15 +1087,40 @@ module Aws::Translate
1019
1087
  # @return [Array<String>]
1020
1088
  #
1021
1089
  # @!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.
1090
+ # The name of a custom terminology resource to add to the translation
1091
+ # job. This resource lists examples source terms and the desired
1092
+ # translation for each term.
1093
+ #
1094
+ # This parameter accepts only one custom terminology resource.
1095
+ #
1096
+ # For a list of available custom terminology resources, use the
1097
+ # ListTerminologies operation.
1098
+ #
1099
+ # For more information, see how-custom-terminology.
1025
1100
  # @return [Array<String>]
1026
1101
  #
1027
1102
  # @!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.
1103
+ # The name of a parallel data resource to add to the translation job.
1104
+ # This resource consists of examples that show how you want segments
1105
+ # of text to be translated. When you add parallel data to a
1106
+ # translation job, you create an *Active Custom Translation* job.
1107
+ #
1108
+ # This parameter accepts only one parallel data resource.
1109
+ #
1110
+ # <note markdown="1"> Active Custom Translation jobs are priced at a higher rate than
1111
+ # other jobs that don't use parallel data. For more information, see
1112
+ # [Amazon Translate pricing][1].
1113
+ #
1114
+ # </note>
1115
+ #
1116
+ # For a list of available parallel data resources, use the
1117
+ # ListParallelData operation.
1118
+ #
1119
+ # For more information, see customizing-translations-parallel-data.
1120
+ #
1121
+ #
1122
+ #
1123
+ # [1]: http://aws.amazon.com/translate/pricing/
1031
1124
  # @return [Array<String>]
1032
1125
  #
1033
1126
  # @!attribute [rw] client_token
@@ -1156,7 +1249,8 @@ module Aws::Translate
1156
1249
  #
1157
1250
  # {
1158
1251
  # file: "data", # required
1159
- # format: "CSV", # required, accepts CSV, TMX
1252
+ # format: "CSV", # required, accepts CSV, TMX, TSV
1253
+ # directionality: "UNI", # accepts UNI, MULTI
1160
1254
  # }
1161
1255
  #
1162
1256
  # @!attribute [rw] file
@@ -1167,14 +1261,40 @@ module Aws::Translate
1167
1261
  # @return [String]
1168
1262
  #
1169
1263
  # @!attribute [rw] format
1170
- # The data format of the custom terminology. Either CSV or TMX.
1264
+ # The data format of the custom terminology.
1265
+ # @return [String]
1266
+ #
1267
+ # @!attribute [rw] directionality
1268
+ # The directionality of your terminology resource indicates whether it
1269
+ # has one source language (uni-directional) or multiple
1270
+ # (multi-directional).
1271
+ #
1272
+ # UNI
1273
+ #
1274
+ # : The terminology resource has one source language (for example, the
1275
+ # first column in a CSV file), and all of its other languages are
1276
+ # target languages.
1277
+ #
1278
+ # MULTI
1279
+ #
1280
+ # : Any language in the terminology resource can be the source
1281
+ # language or a target language. A single multi-directional
1282
+ # terminology resource can be used for jobs that translate different
1283
+ # language pairs. For example, if the terminology contains terms in
1284
+ # English and Spanish, then it can be used for jobs that translate
1285
+ # English to Spanish and jobs that translate Spanish to English.
1286
+ #
1287
+ # When you create a custom terminology resource without specifying the
1288
+ # directionality, it behaves as uni-directional terminology, although
1289
+ # this parameter will have a null value.
1171
1290
  # @return [String]
1172
1291
  #
1173
1292
  # @see http://docs.aws.amazon.com/goto/WebAPI/translate-2017-07-01/TerminologyData AWS API Documentation
1174
1293
  #
1175
1294
  class TerminologyData < Struct.new(
1176
1295
  :file,
1177
- :format)
1296
+ :format,
1297
+ :directionality)
1178
1298
  SENSITIVE = [:file]
1179
1299
  include Aws::Structure
1180
1300
  end
@@ -1219,8 +1339,8 @@ module Aws::Translate
1219
1339
  #
1220
1340
  # @!attribute [rw] target_language_codes
1221
1341
  # The language codes for the target languages available with the
1222
- # custom terminology file. All possible target languages are returned
1223
- # in array.
1342
+ # custom terminology resource. All possible target languages are
1343
+ # returned in array.
1224
1344
  # @return [Array<String>]
1225
1345
  #
1226
1346
  # @!attribute [rw] encryption_key
@@ -1245,6 +1365,37 @@ module Aws::Translate
1245
1365
  # the timestamp.
1246
1366
  # @return [Time]
1247
1367
  #
1368
+ # @!attribute [rw] directionality
1369
+ # The directionality of your terminology resource indicates whether it
1370
+ # has one source language (uni-directional) or multiple
1371
+ # (multi-directional).
1372
+ #
1373
+ # UNI
1374
+ #
1375
+ # : The terminology resource has one source language (the first column
1376
+ # in a CSV file), and all of its other languages are target
1377
+ # languages.
1378
+ #
1379
+ # MULTI
1380
+ #
1381
+ # : Any language in the terminology resource can be the source
1382
+ # language.
1383
+ # @return [String]
1384
+ #
1385
+ # @!attribute [rw] message
1386
+ # Additional information from Amazon Translate about the terminology
1387
+ # resource.
1388
+ # @return [String]
1389
+ #
1390
+ # @!attribute [rw] skipped_term_count
1391
+ # The number of terms in the input file that Amazon Translate skipped
1392
+ # when you created or updated the terminology resource.
1393
+ # @return [Integer]
1394
+ #
1395
+ # @!attribute [rw] format
1396
+ # The format of the custom terminology input file.
1397
+ # @return [String]
1398
+ #
1248
1399
  # @see http://docs.aws.amazon.com/goto/WebAPI/translate-2017-07-01/TerminologyProperties AWS API Documentation
1249
1400
  #
1250
1401
  class TerminologyProperties < Struct.new(
@@ -1257,7 +1408,11 @@ module Aws::Translate
1257
1408
  :size_bytes,
1258
1409
  :term_count,
1259
1410
  :created_at,
1260
- :last_updated_at)
1411
+ :last_updated_at,
1412
+ :directionality,
1413
+ :message,
1414
+ :skipped_term_count,
1415
+ :format)
1261
1416
  SENSITIVE = []
1262
1417
  include Aws::Structure
1263
1418
  end
@@ -1364,7 +1519,7 @@ module Aws::Translate
1364
1519
  # @return [Array<String>]
1365
1520
  #
1366
1521
  # @!attribute [rw] message
1367
- # An explanation of any errors that may have occured during the
1522
+ # An explanation of any errors that may have occurred during the
1368
1523
  # translation job.
1369
1524
  # @return [String]
1370
1525
  #
@@ -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.34.0'
51
+ GEM_VERSION = '1.38.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.34.0
4
+ version: 1.38.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-09-01 00:00:00.000000000 Z
11
+ date: 2021-11-11 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.120.0
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.120.0
32
+ version: 3.122.0
33
33
  - !ruby/object:Gem::Dependency
34
34
  name: aws-sigv4
35
35
  requirement: !ruby/object:Gem::Requirement