aws-sdk-translate 1.37.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: 11048a8572b1442a72dfc0de2e842b1aae2a1380e15941aa9f1217ac891e6492
4
- data.tar.gz: e9bed6c6324a61d1e15ed6fd42e6f3854738244fc192cb794e526d849a6b1138
3
+ metadata.gz: 1f83d085cfb031f5911cb38428f8db0395419c2c96e38943ebe2dda9857089ba
4
+ data.tar.gz: 4085af53260662bffb1c9313304dcad803a950a9ff8b29a2b82eef8433622b44
5
5
  SHA512:
6
- metadata.gz: 485de6103a9c6493188631c567394c35d67a28de8dc5e90148f2112a87d578f804f6e081dd400f08667238eb1ced56ec30a3cb5f0a2166407efba3b9fb24d62a
7
- data.tar.gz: b7eddb17fd018d0e838fa634994fd68a32fe3242403a4253679efeb0f42801be825d33e570536cd34a274ca23c407e1f1ab766a95911fdd86d4912b8a3af4ccf
6
+ metadata.gz: 1d6cc30efd17e61d9f5f32555ff0183bcd7ef70cf4d9293a3a1350fe9307c1437f0489a361d010b6c27634097be902796dfdafa7c818a06105d1c2c8f725e5e2
7
+ data.tar.gz: 2f4391d077e74eab1b3b672c13f2bbca4ee4d55bf6348c767daea07736186895b45cdab7759f3d4bb9cb98826da58206aed84ef4683fd15cac637222828da7df
data/CHANGELOG.md CHANGED
@@ -1,6 +1,11 @@
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
+
4
9
  1.37.0 (2021-11-05)
5
10
  ------------------
6
11
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.37.0
1
+ 1.38.0
@@ -574,20 +574,29 @@ module Aws::Translate
574
574
  # @option params [required, String] :name
575
575
  # The name of the custom terminology being retrieved.
576
576
  #
577
- # @option params [required, String] :terminology_data_format
578
- # The data format of the custom terminology being retrieved, either CSV
579
- # 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.
580
588
  #
581
589
  # @return [Types::GetTerminologyResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
582
590
  #
583
591
  # * {Types::GetTerminologyResponse#terminology_properties #terminology_properties} => Types::TerminologyProperties
584
592
  # * {Types::GetTerminologyResponse#terminology_data_location #terminology_data_location} => Types::TerminologyDataLocation
593
+ # * {Types::GetTerminologyResponse#auxiliary_data_location #auxiliary_data_location} => Types::TerminologyDataLocation
585
594
  #
586
595
  # @example Request syntax with placeholder values
587
596
  #
588
597
  # resp = client.get_terminology({
589
598
  # name: "ResourceName", # required
590
- # terminology_data_format: "CSV", # required, accepts CSV, TMX
599
+ # terminology_data_format: "CSV", # accepts CSV, TMX, TSV
591
600
  # })
592
601
  #
593
602
  # @example Response structure
@@ -604,8 +613,14 @@ module Aws::Translate
604
613
  # resp.terminology_properties.term_count #=> Integer
605
614
  # resp.terminology_properties.created_at #=> Time
606
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"
607
620
  # resp.terminology_data_location.repository_type #=> String
608
621
  # resp.terminology_data_location.location #=> String
622
+ # resp.auxiliary_data_location.repository_type #=> String
623
+ # resp.auxiliary_data_location.location #=> String
609
624
  #
610
625
  # @see http://docs.aws.amazon.com/goto/WebAPI/translate-2017-07-01/GetTerminology AWS API Documentation
611
626
  #
@@ -649,6 +664,7 @@ module Aws::Translate
649
664
  # @return [Types::ImportTerminologyResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
650
665
  #
651
666
  # * {Types::ImportTerminologyResponse#terminology_properties #terminology_properties} => Types::TerminologyProperties
667
+ # * {Types::ImportTerminologyResponse#auxiliary_data_location #auxiliary_data_location} => Types::TerminologyDataLocation
652
668
  #
653
669
  # @example Request syntax with placeholder values
654
670
  #
@@ -658,7 +674,8 @@ module Aws::Translate
658
674
  # description: "Description",
659
675
  # terminology_data: { # required
660
676
  # file: "data", # required
661
- # format: "CSV", # required, accepts CSV, TMX
677
+ # format: "CSV", # required, accepts CSV, TMX, TSV
678
+ # directionality: "UNI", # accepts UNI, MULTI
662
679
  # },
663
680
  # encryption_key: {
664
681
  # type: "KMS", # required, accepts KMS
@@ -680,6 +697,12 @@ module Aws::Translate
680
697
  # resp.terminology_properties.term_count #=> Integer
681
698
  # resp.terminology_properties.created_at #=> Time
682
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
683
706
  #
684
707
  # @see http://docs.aws.amazon.com/goto/WebAPI/translate-2017-07-01/ImportTerminology AWS API Documentation
685
708
  #
@@ -786,6 +809,10 @@ module Aws::Translate
786
809
  # resp.terminology_properties_list[0].term_count #=> Integer
787
810
  # resp.terminology_properties_list[0].created_at #=> Time
788
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"
789
816
  # resp.next_token #=> String
790
817
  #
791
818
  # @see http://docs.aws.amazon.com/goto/WebAPI/translate-2017-07-01/ListTerminologies AWS API Documentation
@@ -1166,7 +1193,7 @@ module Aws::Translate
1166
1193
  params: params,
1167
1194
  config: config)
1168
1195
  context[:gem_name] = 'aws-sdk-translate'
1169
- context[:gem_version] = '1.37.0'
1196
+ context[:gem_version] = '1.38.0'
1170
1197
  Seahorse::Client::Request.new(handlers, context)
1171
1198
  end
1172
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"))
@@ -301,6 +304,7 @@ module Aws::Translate
301
304
 
302
305
  TerminologyData.add_member(:file, Shapes::ShapeRef.new(shape: TerminologyFile, required: true, location_name: "File"))
303
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"))
304
308
  TerminologyData.struct_class = Types::TerminologyData
305
309
 
306
310
  TerminologyDataLocation.add_member(:repository_type, Shapes::ShapeRef.new(shape: String, required: true, location_name: "RepositoryType"))
@@ -317,6 +321,10 @@ module Aws::Translate
317
321
  TerminologyProperties.add_member(:term_count, Shapes::ShapeRef.new(shape: Integer, location_name: "TermCount"))
318
322
  TerminologyProperties.add_member(:created_at, Shapes::ShapeRef.new(shape: Timestamp, location_name: "CreatedAt"))
319
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"))
320
328
  TerminologyProperties.struct_class = Types::TerminologyProperties
321
329
 
322
330
  TerminologyPropertiesList.member = Shapes::ShapeRef.new(shape: TerminologyProperties)
@@ -358,7 +358,7 @@ module Aws::Translate
358
358
  #
359
359
  # {
360
360
  # name: "ResourceName", # required
361
- # terminology_data_format: "CSV", # required, accepts CSV, TMX
361
+ # terminology_data_format: "CSV", # accepts CSV, TMX, TSV
362
362
  # }
363
363
  #
364
364
  # @!attribute [rw] name
@@ -366,8 +366,16 @@ module Aws::Translate
366
366
  # @return [String]
367
367
  #
368
368
  # @!attribute [rw] terminology_data_format
369
- # The data format of the custom terminology being retrieved, either
370
- # 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.
371
379
  # @return [String]
372
380
  #
373
381
  # @see http://docs.aws.amazon.com/goto/WebAPI/translate-2017-07-01/GetTerminologyRequest AWS API Documentation
@@ -389,11 +397,20 @@ module Aws::Translate
389
397
  # minute expiration.
390
398
  # @return [Types::TerminologyDataLocation]
391
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
+ #
392
408
  # @see http://docs.aws.amazon.com/goto/WebAPI/translate-2017-07-01/GetTerminologyResponse AWS API Documentation
393
409
  #
394
410
  class GetTerminologyResponse < Struct.new(
395
411
  :terminology_properties,
396
- :terminology_data_location)
412
+ :terminology_data_location,
413
+ :auxiliary_data_location)
397
414
  SENSITIVE = []
398
415
  include Aws::Structure
399
416
  end
@@ -407,7 +424,8 @@ module Aws::Translate
407
424
  # description: "Description",
408
425
  # terminology_data: { # required
409
426
  # file: "data", # required
410
- # format: "CSV", # required, accepts CSV, TMX
427
+ # format: "CSV", # required, accepts CSV, TMX, TSV
428
+ # directionality: "UNI", # accepts UNI, MULTI
411
429
  # },
412
430
  # encryption_key: {
413
431
  # type: "KMS", # required, accepts KMS
@@ -454,10 +472,19 @@ module Aws::Translate
454
472
  # The properties of the custom terminology being imported.
455
473
  # @return [Types::TerminologyProperties]
456
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
+ #
457
483
  # @see http://docs.aws.amazon.com/goto/WebAPI/translate-2017-07-01/ImportTerminologyResponse AWS API Documentation
458
484
  #
459
485
  class ImportTerminologyResponse < Struct.new(
460
- :terminology_properties)
486
+ :terminology_properties,
487
+ :auxiliary_data_location)
461
488
  SENSITIVE = []
462
489
  include Aws::Structure
463
490
  end
@@ -1222,7 +1249,8 @@ module Aws::Translate
1222
1249
  #
1223
1250
  # {
1224
1251
  # file: "data", # required
1225
- # format: "CSV", # required, accepts CSV, TMX
1252
+ # format: "CSV", # required, accepts CSV, TMX, TSV
1253
+ # directionality: "UNI", # accepts UNI, MULTI
1226
1254
  # }
1227
1255
  #
1228
1256
  # @!attribute [rw] file
@@ -1233,14 +1261,40 @@ module Aws::Translate
1233
1261
  # @return [String]
1234
1262
  #
1235
1263
  # @!attribute [rw] format
1236
- # 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.
1237
1290
  # @return [String]
1238
1291
  #
1239
1292
  # @see http://docs.aws.amazon.com/goto/WebAPI/translate-2017-07-01/TerminologyData AWS API Documentation
1240
1293
  #
1241
1294
  class TerminologyData < Struct.new(
1242
1295
  :file,
1243
- :format)
1296
+ :format,
1297
+ :directionality)
1244
1298
  SENSITIVE = [:file]
1245
1299
  include Aws::Structure
1246
1300
  end
@@ -1285,8 +1339,8 @@ module Aws::Translate
1285
1339
  #
1286
1340
  # @!attribute [rw] target_language_codes
1287
1341
  # The language codes for the target languages available with the
1288
- # custom terminology file. All possible target languages are returned
1289
- # in array.
1342
+ # custom terminology resource. All possible target languages are
1343
+ # returned in array.
1290
1344
  # @return [Array<String>]
1291
1345
  #
1292
1346
  # @!attribute [rw] encryption_key
@@ -1311,6 +1365,37 @@ module Aws::Translate
1311
1365
  # the timestamp.
1312
1366
  # @return [Time]
1313
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
+ #
1314
1399
  # @see http://docs.aws.amazon.com/goto/WebAPI/translate-2017-07-01/TerminologyProperties AWS API Documentation
1315
1400
  #
1316
1401
  class TerminologyProperties < Struct.new(
@@ -1323,7 +1408,11 @@ module Aws::Translate
1323
1408
  :size_bytes,
1324
1409
  :term_count,
1325
1410
  :created_at,
1326
- :last_updated_at)
1411
+ :last_updated_at,
1412
+ :directionality,
1413
+ :message,
1414
+ :skipped_term_count,
1415
+ :format)
1327
1416
  SENSITIVE = []
1328
1417
  include Aws::Structure
1329
1418
  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.37.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.37.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-11-05 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