aws-sdk-translate 1.28.0 → 1.29.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/aws-sdk-translate.rb +2 -2
- data/lib/aws-sdk-translate/client.rb +272 -1
- data/lib/aws-sdk-translate/client_api.rb +175 -0
- data/lib/aws-sdk-translate/errors.rb +32 -0
- data/lib/aws-sdk-translate/types.rb +493 -2
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 504b2d0ccbd82bb551fbcac41d3a516cdd2fcfd3828f7c8e68fa57734d7ff62d
|
4
|
+
data.tar.gz: 5b7e1c98c818543a727c45a55c3f66ac5e776959785aa4ed9b4e80c79d6f84e6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d478a88f3b4d5594fb18a94f9a27a0b48fe5eec367d07a16b5b9e0773a5523c858b03f8ab386f271bf181ff39c755bbb45b1711b6cc57f93207f9c62ff36693b
|
7
|
+
data.tar.gz: 8aa059f610d7838124815e726f1db49407af07d221b9d2c9d4185307bf4f8af589ac3d72d316300573f39571bacfc6c1b5662b31f34c9cb29386a59610befafe
|
data/lib/aws-sdk-translate.rb
CHANGED
@@ -28,7 +28,7 @@ require_relative 'aws-sdk-translate/customizations'
|
|
28
28
|
# structure.
|
29
29
|
#
|
30
30
|
# translate = Aws::Translate::Client.new
|
31
|
-
# resp = translate.
|
31
|
+
# resp = translate.create_parallel_data(params)
|
32
32
|
#
|
33
33
|
# See {Client} for more information.
|
34
34
|
#
|
@@ -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.
|
51
|
+
GEM_VERSION = '1.29.0'
|
52
52
|
|
53
53
|
end
|
@@ -337,6 +337,98 @@ module Aws::Translate
|
|
337
337
|
|
338
338
|
# @!group API Operations
|
339
339
|
|
340
|
+
# 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.
|
345
|
+
#
|
346
|
+
# @option params [required, String] :name
|
347
|
+
# A custom name for the parallel data resource in Amazon Translate. You
|
348
|
+
# must assign a name that is unique in the account and region.
|
349
|
+
#
|
350
|
+
# @option params [String] :description
|
351
|
+
# A custom description for the parallel data resource in Amazon
|
352
|
+
# Translate.
|
353
|
+
#
|
354
|
+
# @option params [required, Types::ParallelDataConfig] :parallel_data_config
|
355
|
+
# Specifies the format and S3 location of the parallel data input file.
|
356
|
+
#
|
357
|
+
# @option params [Types::EncryptionKey] :encryption_key
|
358
|
+
# The encryption key used to encrypt this object.
|
359
|
+
#
|
360
|
+
# @option params [required, String] :client_token
|
361
|
+
# A unique identifier for the request. This token is automatically
|
362
|
+
# generated when you use Amazon Translate through an AWS SDK.
|
363
|
+
#
|
364
|
+
# **A suitable default value is auto-generated.** You should normally
|
365
|
+
# not need to pass this option.**
|
366
|
+
#
|
367
|
+
# @return [Types::CreateParallelDataResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
368
|
+
#
|
369
|
+
# * {Types::CreateParallelDataResponse#name #name} => String
|
370
|
+
# * {Types::CreateParallelDataResponse#status #status} => String
|
371
|
+
#
|
372
|
+
# @example Request syntax with placeholder values
|
373
|
+
#
|
374
|
+
# resp = client.create_parallel_data({
|
375
|
+
# name: "ResourceName", # required
|
376
|
+
# description: "Description",
|
377
|
+
# parallel_data_config: { # required
|
378
|
+
# s3_uri: "S3Uri", # required
|
379
|
+
# format: "TSV", # required, accepts TSV, CSV, TMX
|
380
|
+
# },
|
381
|
+
# encryption_key: {
|
382
|
+
# type: "KMS", # required, accepts KMS
|
383
|
+
# id: "EncryptionKeyID", # required
|
384
|
+
# },
|
385
|
+
# client_token: "ClientTokenString", # required
|
386
|
+
# })
|
387
|
+
#
|
388
|
+
# @example Response structure
|
389
|
+
#
|
390
|
+
# resp.name #=> String
|
391
|
+
# resp.status #=> String, one of "CREATING", "UPDATING", "ACTIVE", "DELETING", "FAILED"
|
392
|
+
#
|
393
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/translate-2017-07-01/CreateParallelData AWS API Documentation
|
394
|
+
#
|
395
|
+
# @overload create_parallel_data(params = {})
|
396
|
+
# @param [Hash] params ({})
|
397
|
+
def create_parallel_data(params = {}, options = {})
|
398
|
+
req = build_request(:create_parallel_data, params)
|
399
|
+
req.send_request(options)
|
400
|
+
end
|
401
|
+
|
402
|
+
# Deletes a parallel data resource in Amazon Translate.
|
403
|
+
#
|
404
|
+
# @option params [required, String] :name
|
405
|
+
# The name of the parallel data resource that is being deleted.
|
406
|
+
#
|
407
|
+
# @return [Types::DeleteParallelDataResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
408
|
+
#
|
409
|
+
# * {Types::DeleteParallelDataResponse#name #name} => String
|
410
|
+
# * {Types::DeleteParallelDataResponse#status #status} => String
|
411
|
+
#
|
412
|
+
# @example Request syntax with placeholder values
|
413
|
+
#
|
414
|
+
# resp = client.delete_parallel_data({
|
415
|
+
# name: "ResourceName", # required
|
416
|
+
# })
|
417
|
+
#
|
418
|
+
# @example Response structure
|
419
|
+
#
|
420
|
+
# resp.name #=> String
|
421
|
+
# resp.status #=> String, one of "CREATING", "UPDATING", "ACTIVE", "DELETING", "FAILED"
|
422
|
+
#
|
423
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/translate-2017-07-01/DeleteParallelData AWS API Documentation
|
424
|
+
#
|
425
|
+
# @overload delete_parallel_data(params = {})
|
426
|
+
# @param [Hash] params ({})
|
427
|
+
def delete_parallel_data(params = {}, options = {})
|
428
|
+
req = build_request(:delete_parallel_data, params)
|
429
|
+
req.send_request(options)
|
430
|
+
end
|
431
|
+
|
340
432
|
# A synchronous action that deletes a custom terminology.
|
341
433
|
#
|
342
434
|
# @option params [required, String] :name
|
@@ -391,6 +483,8 @@ module Aws::Translate
|
|
391
483
|
# resp.text_translation_job_properties.target_language_codes[0] #=> String
|
392
484
|
# resp.text_translation_job_properties.terminology_names #=> Array
|
393
485
|
# resp.text_translation_job_properties.terminology_names[0] #=> String
|
486
|
+
# resp.text_translation_job_properties.parallel_data_names #=> Array
|
487
|
+
# resp.text_translation_job_properties.parallel_data_names[0] #=> String
|
394
488
|
# resp.text_translation_job_properties.message #=> String
|
395
489
|
# resp.text_translation_job_properties.submitted_time #=> Time
|
396
490
|
# resp.text_translation_job_properties.end_time #=> Time
|
@@ -408,6 +502,62 @@ module Aws::Translate
|
|
408
502
|
req.send_request(options)
|
409
503
|
end
|
410
504
|
|
505
|
+
# Provides information about a parallel data resource.
|
506
|
+
#
|
507
|
+
# @option params [required, String] :name
|
508
|
+
# The name of the parallel data resource that is being retrieved.
|
509
|
+
#
|
510
|
+
# @return [Types::GetParallelDataResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
511
|
+
#
|
512
|
+
# * {Types::GetParallelDataResponse#parallel_data_properties #parallel_data_properties} => Types::ParallelDataProperties
|
513
|
+
# * {Types::GetParallelDataResponse#data_location #data_location} => Types::ParallelDataDataLocation
|
514
|
+
# * {Types::GetParallelDataResponse#auxiliary_data_location #auxiliary_data_location} => Types::ParallelDataDataLocation
|
515
|
+
# * {Types::GetParallelDataResponse#latest_update_attempt_auxiliary_data_location #latest_update_attempt_auxiliary_data_location} => Types::ParallelDataDataLocation
|
516
|
+
#
|
517
|
+
# @example Request syntax with placeholder values
|
518
|
+
#
|
519
|
+
# resp = client.get_parallel_data({
|
520
|
+
# name: "ResourceName", # required
|
521
|
+
# })
|
522
|
+
#
|
523
|
+
# @example Response structure
|
524
|
+
#
|
525
|
+
# resp.parallel_data_properties.name #=> String
|
526
|
+
# resp.parallel_data_properties.arn #=> String
|
527
|
+
# resp.parallel_data_properties.description #=> String
|
528
|
+
# resp.parallel_data_properties.status #=> String, one of "CREATING", "UPDATING", "ACTIVE", "DELETING", "FAILED"
|
529
|
+
# resp.parallel_data_properties.source_language_code #=> String
|
530
|
+
# resp.parallel_data_properties.target_language_codes #=> Array
|
531
|
+
# resp.parallel_data_properties.target_language_codes[0] #=> String
|
532
|
+
# resp.parallel_data_properties.parallel_data_config.s3_uri #=> String
|
533
|
+
# resp.parallel_data_properties.parallel_data_config.format #=> String, one of "TSV", "CSV", "TMX"
|
534
|
+
# resp.parallel_data_properties.message #=> String
|
535
|
+
# resp.parallel_data_properties.imported_data_size #=> Integer
|
536
|
+
# resp.parallel_data_properties.imported_record_count #=> Integer
|
537
|
+
# resp.parallel_data_properties.failed_record_count #=> Integer
|
538
|
+
# resp.parallel_data_properties.skipped_record_count #=> Integer
|
539
|
+
# resp.parallel_data_properties.encryption_key.type #=> String, one of "KMS"
|
540
|
+
# resp.parallel_data_properties.encryption_key.id #=> String
|
541
|
+
# resp.parallel_data_properties.created_at #=> Time
|
542
|
+
# resp.parallel_data_properties.last_updated_at #=> Time
|
543
|
+
# resp.parallel_data_properties.latest_update_attempt_status #=> String, one of "CREATING", "UPDATING", "ACTIVE", "DELETING", "FAILED"
|
544
|
+
# resp.parallel_data_properties.latest_update_attempt_at #=> Time
|
545
|
+
# resp.data_location.repository_type #=> String
|
546
|
+
# resp.data_location.location #=> String
|
547
|
+
# resp.auxiliary_data_location.repository_type #=> String
|
548
|
+
# resp.auxiliary_data_location.location #=> String
|
549
|
+
# resp.latest_update_attempt_auxiliary_data_location.repository_type #=> String
|
550
|
+
# resp.latest_update_attempt_auxiliary_data_location.location #=> String
|
551
|
+
#
|
552
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/translate-2017-07-01/GetParallelData AWS API Documentation
|
553
|
+
#
|
554
|
+
# @overload get_parallel_data(params = {})
|
555
|
+
# @param [Hash] params ({})
|
556
|
+
def get_parallel_data(params = {}, options = {})
|
557
|
+
req = build_request(:get_parallel_data, params)
|
558
|
+
req.send_request(options)
|
559
|
+
end
|
560
|
+
|
411
561
|
# Retrieves a custom terminology.
|
412
562
|
#
|
413
563
|
# @option params [required, String] :name
|
@@ -529,6 +679,64 @@ module Aws::Translate
|
|
529
679
|
req.send_request(options)
|
530
680
|
end
|
531
681
|
|
682
|
+
# Provides a list of your parallel data resources in Amazon Translate.
|
683
|
+
#
|
684
|
+
# @option params [String] :next_token
|
685
|
+
# A string that specifies the next page of results to return in a
|
686
|
+
# paginated response.
|
687
|
+
#
|
688
|
+
# @option params [Integer] :max_results
|
689
|
+
# The maximum number of parallel data resources returned for each
|
690
|
+
# request.
|
691
|
+
#
|
692
|
+
# @return [Types::ListParallelDataResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
693
|
+
#
|
694
|
+
# * {Types::ListParallelDataResponse#parallel_data_properties_list #parallel_data_properties_list} => Array<Types::ParallelDataProperties>
|
695
|
+
# * {Types::ListParallelDataResponse#next_token #next_token} => String
|
696
|
+
#
|
697
|
+
# The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
|
698
|
+
#
|
699
|
+
# @example Request syntax with placeholder values
|
700
|
+
#
|
701
|
+
# resp = client.list_parallel_data({
|
702
|
+
# next_token: "NextToken",
|
703
|
+
# max_results: 1,
|
704
|
+
# })
|
705
|
+
#
|
706
|
+
# @example Response structure
|
707
|
+
#
|
708
|
+
# resp.parallel_data_properties_list #=> Array
|
709
|
+
# resp.parallel_data_properties_list[0].name #=> String
|
710
|
+
# resp.parallel_data_properties_list[0].arn #=> String
|
711
|
+
# resp.parallel_data_properties_list[0].description #=> String
|
712
|
+
# resp.parallel_data_properties_list[0].status #=> String, one of "CREATING", "UPDATING", "ACTIVE", "DELETING", "FAILED"
|
713
|
+
# resp.parallel_data_properties_list[0].source_language_code #=> String
|
714
|
+
# resp.parallel_data_properties_list[0].target_language_codes #=> Array
|
715
|
+
# resp.parallel_data_properties_list[0].target_language_codes[0] #=> String
|
716
|
+
# resp.parallel_data_properties_list[0].parallel_data_config.s3_uri #=> String
|
717
|
+
# resp.parallel_data_properties_list[0].parallel_data_config.format #=> String, one of "TSV", "CSV", "TMX"
|
718
|
+
# resp.parallel_data_properties_list[0].message #=> String
|
719
|
+
# resp.parallel_data_properties_list[0].imported_data_size #=> Integer
|
720
|
+
# resp.parallel_data_properties_list[0].imported_record_count #=> Integer
|
721
|
+
# resp.parallel_data_properties_list[0].failed_record_count #=> Integer
|
722
|
+
# resp.parallel_data_properties_list[0].skipped_record_count #=> Integer
|
723
|
+
# resp.parallel_data_properties_list[0].encryption_key.type #=> String, one of "KMS"
|
724
|
+
# resp.parallel_data_properties_list[0].encryption_key.id #=> String
|
725
|
+
# resp.parallel_data_properties_list[0].created_at #=> Time
|
726
|
+
# resp.parallel_data_properties_list[0].last_updated_at #=> Time
|
727
|
+
# resp.parallel_data_properties_list[0].latest_update_attempt_status #=> String, one of "CREATING", "UPDATING", "ACTIVE", "DELETING", "FAILED"
|
728
|
+
# resp.parallel_data_properties_list[0].latest_update_attempt_at #=> Time
|
729
|
+
# resp.next_token #=> String
|
730
|
+
#
|
731
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/translate-2017-07-01/ListParallelData AWS API Documentation
|
732
|
+
#
|
733
|
+
# @overload list_parallel_data(params = {})
|
734
|
+
# @param [Hash] params ({})
|
735
|
+
def list_parallel_data(params = {}, options = {})
|
736
|
+
req = build_request(:list_parallel_data, params)
|
737
|
+
req.send_request(options)
|
738
|
+
end
|
739
|
+
|
532
740
|
# Provides a list of custom terminologies associated with your account.
|
533
741
|
#
|
534
742
|
# @option params [String] :next_token
|
@@ -626,6 +834,8 @@ module Aws::Translate
|
|
626
834
|
# resp.text_translation_job_properties_list[0].target_language_codes[0] #=> String
|
627
835
|
# resp.text_translation_job_properties_list[0].terminology_names #=> Array
|
628
836
|
# resp.text_translation_job_properties_list[0].terminology_names[0] #=> String
|
837
|
+
# resp.text_translation_job_properties_list[0].parallel_data_names #=> Array
|
838
|
+
# resp.text_translation_job_properties_list[0].parallel_data_names[0] #=> String
|
629
839
|
# resp.text_translation_job_properties_list[0].message #=> String
|
630
840
|
# resp.text_translation_job_properties_list[0].submitted_time #=> Time
|
631
841
|
# resp.text_translation_job_properties_list[0].end_time #=> Time
|
@@ -687,6 +897,11 @@ module Aws::Translate
|
|
687
897
|
# The name of the terminology to use in the batch translation job. For a
|
688
898
|
# list of available terminologies, use the ListTerminologies operation.
|
689
899
|
#
|
900
|
+
# @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.
|
904
|
+
#
|
690
905
|
# @option params [required, String] :client_token
|
691
906
|
# A unique identifier for the request. This token is auto-generated when
|
692
907
|
# using the Amazon Translate SDK.
|
@@ -714,6 +929,7 @@ module Aws::Translate
|
|
714
929
|
# source_language_code: "LanguageCodeString", # required
|
715
930
|
# target_language_codes: ["LanguageCodeString"], # required
|
716
931
|
# terminology_names: ["ResourceName"],
|
932
|
+
# parallel_data_names: ["ResourceName"],
|
717
933
|
# client_token: "ClientTokenString", # required
|
718
934
|
# })
|
719
935
|
#
|
@@ -839,6 +1055,61 @@ module Aws::Translate
|
|
839
1055
|
req.send_request(options)
|
840
1056
|
end
|
841
1057
|
|
1058
|
+
# Updates a previously created parallel data resource by importing a new
|
1059
|
+
# input file from Amazon S3.
|
1060
|
+
#
|
1061
|
+
# @option params [required, String] :name
|
1062
|
+
# The name of the parallel data resource being updated.
|
1063
|
+
#
|
1064
|
+
# @option params [String] :description
|
1065
|
+
# A custom description for the parallel data resource in Amazon
|
1066
|
+
# Translate.
|
1067
|
+
#
|
1068
|
+
# @option params [required, Types::ParallelDataConfig] :parallel_data_config
|
1069
|
+
# Specifies the format and S3 location of the parallel data input file.
|
1070
|
+
#
|
1071
|
+
# @option params [required, String] :client_token
|
1072
|
+
# A unique identifier for the request. This token is automatically
|
1073
|
+
# generated when you use Amazon Translate through an AWS SDK.
|
1074
|
+
#
|
1075
|
+
# **A suitable default value is auto-generated.** You should normally
|
1076
|
+
# not need to pass this option.**
|
1077
|
+
#
|
1078
|
+
# @return [Types::UpdateParallelDataResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
1079
|
+
#
|
1080
|
+
# * {Types::UpdateParallelDataResponse#name #name} => String
|
1081
|
+
# * {Types::UpdateParallelDataResponse#status #status} => String
|
1082
|
+
# * {Types::UpdateParallelDataResponse#latest_update_attempt_status #latest_update_attempt_status} => String
|
1083
|
+
# * {Types::UpdateParallelDataResponse#latest_update_attempt_at #latest_update_attempt_at} => Time
|
1084
|
+
#
|
1085
|
+
# @example Request syntax with placeholder values
|
1086
|
+
#
|
1087
|
+
# resp = client.update_parallel_data({
|
1088
|
+
# name: "ResourceName", # required
|
1089
|
+
# description: "Description",
|
1090
|
+
# parallel_data_config: { # required
|
1091
|
+
# s3_uri: "S3Uri", # required
|
1092
|
+
# format: "TSV", # required, accepts TSV, CSV, TMX
|
1093
|
+
# },
|
1094
|
+
# client_token: "ClientTokenString", # required
|
1095
|
+
# })
|
1096
|
+
#
|
1097
|
+
# @example Response structure
|
1098
|
+
#
|
1099
|
+
# resp.name #=> String
|
1100
|
+
# resp.status #=> String, one of "CREATING", "UPDATING", "ACTIVE", "DELETING", "FAILED"
|
1101
|
+
# resp.latest_update_attempt_status #=> String, one of "CREATING", "UPDATING", "ACTIVE", "DELETING", "FAILED"
|
1102
|
+
# resp.latest_update_attempt_at #=> Time
|
1103
|
+
#
|
1104
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/translate-2017-07-01/UpdateParallelData AWS API Documentation
|
1105
|
+
#
|
1106
|
+
# @overload update_parallel_data(params = {})
|
1107
|
+
# @param [Hash] params ({})
|
1108
|
+
def update_parallel_data(params = {}, options = {})
|
1109
|
+
req = build_request(:update_parallel_data, params)
|
1110
|
+
req.send_request(options)
|
1111
|
+
end
|
1112
|
+
|
842
1113
|
# @!endgroup
|
843
1114
|
|
844
1115
|
# @param params ({})
|
@@ -852,7 +1123,7 @@ module Aws::Translate
|
|
852
1123
|
params: params,
|
853
1124
|
config: config)
|
854
1125
|
context[:gem_name] = 'aws-sdk-translate'
|
855
|
-
context[:gem_version] = '1.
|
1126
|
+
context[:gem_version] = '1.29.0'
|
856
1127
|
Seahorse::Client::Request.new(handlers, context)
|
857
1128
|
end
|
858
1129
|
|
@@ -17,7 +17,13 @@ module Aws::Translate
|
|
17
17
|
AppliedTerminologyList = Shapes::ListShape.new(name: 'AppliedTerminologyList')
|
18
18
|
BoundedLengthString = Shapes::StringShape.new(name: 'BoundedLengthString')
|
19
19
|
ClientTokenString = Shapes::StringShape.new(name: 'ClientTokenString')
|
20
|
+
ConcurrentModificationException = Shapes::StructureShape.new(name: 'ConcurrentModificationException')
|
21
|
+
ConflictException = Shapes::StructureShape.new(name: 'ConflictException')
|
20
22
|
ContentType = Shapes::StringShape.new(name: 'ContentType')
|
23
|
+
CreateParallelDataRequest = Shapes::StructureShape.new(name: 'CreateParallelDataRequest')
|
24
|
+
CreateParallelDataResponse = Shapes::StructureShape.new(name: 'CreateParallelDataResponse')
|
25
|
+
DeleteParallelDataRequest = Shapes::StructureShape.new(name: 'DeleteParallelDataRequest')
|
26
|
+
DeleteParallelDataResponse = Shapes::StructureShape.new(name: 'DeleteParallelDataResponse')
|
21
27
|
DeleteTerminologyRequest = Shapes::StructureShape.new(name: 'DeleteTerminologyRequest')
|
22
28
|
DescribeTextTranslationJobRequest = Shapes::StructureShape.new(name: 'DescribeTextTranslationJobRequest')
|
23
29
|
DescribeTextTranslationJobResponse = Shapes::StructureShape.new(name: 'DescribeTextTranslationJobResponse')
|
@@ -26,6 +32,8 @@ module Aws::Translate
|
|
26
32
|
EncryptionKey = Shapes::StructureShape.new(name: 'EncryptionKey')
|
27
33
|
EncryptionKeyID = Shapes::StringShape.new(name: 'EncryptionKeyID')
|
28
34
|
EncryptionKeyType = Shapes::StringShape.new(name: 'EncryptionKeyType')
|
35
|
+
GetParallelDataRequest = Shapes::StructureShape.new(name: 'GetParallelDataRequest')
|
36
|
+
GetParallelDataResponse = Shapes::StructureShape.new(name: 'GetParallelDataResponse')
|
29
37
|
GetTerminologyRequest = Shapes::StructureShape.new(name: 'GetTerminologyRequest')
|
30
38
|
GetTerminologyResponse = Shapes::StructureShape.new(name: 'GetTerminologyResponse')
|
31
39
|
IamRoleArn = Shapes::StringShape.new(name: 'IamRoleArn')
|
@@ -44,14 +52,24 @@ module Aws::Translate
|
|
44
52
|
LanguageCodeString = Shapes::StringShape.new(name: 'LanguageCodeString')
|
45
53
|
LanguageCodeStringList = Shapes::ListShape.new(name: 'LanguageCodeStringList')
|
46
54
|
LimitExceededException = Shapes::StructureShape.new(name: 'LimitExceededException')
|
55
|
+
ListParallelDataRequest = Shapes::StructureShape.new(name: 'ListParallelDataRequest')
|
56
|
+
ListParallelDataResponse = Shapes::StructureShape.new(name: 'ListParallelDataResponse')
|
47
57
|
ListTerminologiesRequest = Shapes::StructureShape.new(name: 'ListTerminologiesRequest')
|
48
58
|
ListTerminologiesResponse = Shapes::StructureShape.new(name: 'ListTerminologiesResponse')
|
49
59
|
ListTextTranslationJobsRequest = Shapes::StructureShape.new(name: 'ListTextTranslationJobsRequest')
|
50
60
|
ListTextTranslationJobsResponse = Shapes::StructureShape.new(name: 'ListTextTranslationJobsResponse')
|
61
|
+
Long = Shapes::IntegerShape.new(name: 'Long')
|
51
62
|
MaxResultsInteger = Shapes::IntegerShape.new(name: 'MaxResultsInteger')
|
52
63
|
MergeStrategy = Shapes::StringShape.new(name: 'MergeStrategy')
|
53
64
|
NextToken = Shapes::StringShape.new(name: 'NextToken')
|
54
65
|
OutputDataConfig = Shapes::StructureShape.new(name: 'OutputDataConfig')
|
66
|
+
ParallelDataArn = Shapes::StringShape.new(name: 'ParallelDataArn')
|
67
|
+
ParallelDataConfig = Shapes::StructureShape.new(name: 'ParallelDataConfig')
|
68
|
+
ParallelDataDataLocation = Shapes::StructureShape.new(name: 'ParallelDataDataLocation')
|
69
|
+
ParallelDataFormat = Shapes::StringShape.new(name: 'ParallelDataFormat')
|
70
|
+
ParallelDataProperties = Shapes::StructureShape.new(name: 'ParallelDataProperties')
|
71
|
+
ParallelDataPropertiesList = Shapes::ListShape.new(name: 'ParallelDataPropertiesList')
|
72
|
+
ParallelDataStatus = Shapes::StringShape.new(name: 'ParallelDataStatus')
|
55
73
|
ResourceName = Shapes::StringShape.new(name: 'ResourceName')
|
56
74
|
ResourceNameList = Shapes::ListShape.new(name: 'ResourceNameList')
|
57
75
|
ResourceNotFoundException = Shapes::StructureShape.new(name: 'ResourceNotFoundException')
|
@@ -82,6 +100,8 @@ module Aws::Translate
|
|
82
100
|
TranslateTextResponse = Shapes::StructureShape.new(name: 'TranslateTextResponse')
|
83
101
|
UnboundedLengthString = Shapes::StringShape.new(name: 'UnboundedLengthString')
|
84
102
|
UnsupportedLanguagePairException = Shapes::StructureShape.new(name: 'UnsupportedLanguagePairException')
|
103
|
+
UpdateParallelDataRequest = Shapes::StructureShape.new(name: 'UpdateParallelDataRequest')
|
104
|
+
UpdateParallelDataResponse = Shapes::StructureShape.new(name: 'UpdateParallelDataResponse')
|
85
105
|
|
86
106
|
AppliedTerminology.add_member(:name, Shapes::ShapeRef.new(shape: ResourceName, location_name: "Name"))
|
87
107
|
AppliedTerminology.add_member(:terms, Shapes::ShapeRef.new(shape: TermList, location_name: "Terms"))
|
@@ -89,6 +109,30 @@ module Aws::Translate
|
|
89
109
|
|
90
110
|
AppliedTerminologyList.member = Shapes::ShapeRef.new(shape: AppliedTerminology)
|
91
111
|
|
112
|
+
ConcurrentModificationException.add_member(:message, Shapes::ShapeRef.new(shape: String, location_name: "Message"))
|
113
|
+
ConcurrentModificationException.struct_class = Types::ConcurrentModificationException
|
114
|
+
|
115
|
+
ConflictException.add_member(:message, Shapes::ShapeRef.new(shape: String, location_name: "Message"))
|
116
|
+
ConflictException.struct_class = Types::ConflictException
|
117
|
+
|
118
|
+
CreateParallelDataRequest.add_member(:name, Shapes::ShapeRef.new(shape: ResourceName, required: true, location_name: "Name"))
|
119
|
+
CreateParallelDataRequest.add_member(:description, Shapes::ShapeRef.new(shape: Description, location_name: "Description"))
|
120
|
+
CreateParallelDataRequest.add_member(:parallel_data_config, Shapes::ShapeRef.new(shape: ParallelDataConfig, required: true, location_name: "ParallelDataConfig"))
|
121
|
+
CreateParallelDataRequest.add_member(:encryption_key, Shapes::ShapeRef.new(shape: EncryptionKey, location_name: "EncryptionKey"))
|
122
|
+
CreateParallelDataRequest.add_member(:client_token, Shapes::ShapeRef.new(shape: ClientTokenString, required: true, location_name: "ClientToken", metadata: {"idempotencyToken"=>true}))
|
123
|
+
CreateParallelDataRequest.struct_class = Types::CreateParallelDataRequest
|
124
|
+
|
125
|
+
CreateParallelDataResponse.add_member(:name, Shapes::ShapeRef.new(shape: ResourceName, location_name: "Name"))
|
126
|
+
CreateParallelDataResponse.add_member(:status, Shapes::ShapeRef.new(shape: ParallelDataStatus, location_name: "Status"))
|
127
|
+
CreateParallelDataResponse.struct_class = Types::CreateParallelDataResponse
|
128
|
+
|
129
|
+
DeleteParallelDataRequest.add_member(:name, Shapes::ShapeRef.new(shape: ResourceName, required: true, location_name: "Name"))
|
130
|
+
DeleteParallelDataRequest.struct_class = Types::DeleteParallelDataRequest
|
131
|
+
|
132
|
+
DeleteParallelDataResponse.add_member(:name, Shapes::ShapeRef.new(shape: ResourceName, location_name: "Name"))
|
133
|
+
DeleteParallelDataResponse.add_member(:status, Shapes::ShapeRef.new(shape: ParallelDataStatus, location_name: "Status"))
|
134
|
+
DeleteParallelDataResponse.struct_class = Types::DeleteParallelDataResponse
|
135
|
+
|
92
136
|
DeleteTerminologyRequest.add_member(:name, Shapes::ShapeRef.new(shape: ResourceName, required: true, location_name: "Name"))
|
93
137
|
DeleteTerminologyRequest.struct_class = Types::DeleteTerminologyRequest
|
94
138
|
|
@@ -106,6 +150,15 @@ module Aws::Translate
|
|
106
150
|
EncryptionKey.add_member(:id, Shapes::ShapeRef.new(shape: EncryptionKeyID, required: true, location_name: "Id"))
|
107
151
|
EncryptionKey.struct_class = Types::EncryptionKey
|
108
152
|
|
153
|
+
GetParallelDataRequest.add_member(:name, Shapes::ShapeRef.new(shape: ResourceName, required: true, location_name: "Name"))
|
154
|
+
GetParallelDataRequest.struct_class = Types::GetParallelDataRequest
|
155
|
+
|
156
|
+
GetParallelDataResponse.add_member(:parallel_data_properties, Shapes::ShapeRef.new(shape: ParallelDataProperties, location_name: "ParallelDataProperties"))
|
157
|
+
GetParallelDataResponse.add_member(:data_location, Shapes::ShapeRef.new(shape: ParallelDataDataLocation, location_name: "DataLocation"))
|
158
|
+
GetParallelDataResponse.add_member(:auxiliary_data_location, Shapes::ShapeRef.new(shape: ParallelDataDataLocation, location_name: "AuxiliaryDataLocation"))
|
159
|
+
GetParallelDataResponse.add_member(:latest_update_attempt_auxiliary_data_location, Shapes::ShapeRef.new(shape: ParallelDataDataLocation, location_name: "LatestUpdateAttemptAuxiliaryDataLocation"))
|
160
|
+
GetParallelDataResponse.struct_class = Types::GetParallelDataResponse
|
161
|
+
|
109
162
|
GetTerminologyRequest.add_member(:name, Shapes::ShapeRef.new(shape: ResourceName, required: true, location_name: "Name"))
|
110
163
|
GetTerminologyRequest.add_member(:terminology_data_format, Shapes::ShapeRef.new(shape: TerminologyDataFormat, required: true, location_name: "TerminologyDataFormat"))
|
111
164
|
GetTerminologyRequest.struct_class = Types::GetTerminologyRequest
|
@@ -150,6 +203,14 @@ module Aws::Translate
|
|
150
203
|
LimitExceededException.add_member(:message, Shapes::ShapeRef.new(shape: String, location_name: "Message"))
|
151
204
|
LimitExceededException.struct_class = Types::LimitExceededException
|
152
205
|
|
206
|
+
ListParallelDataRequest.add_member(:next_token, Shapes::ShapeRef.new(shape: NextToken, location_name: "NextToken"))
|
207
|
+
ListParallelDataRequest.add_member(:max_results, Shapes::ShapeRef.new(shape: MaxResultsInteger, location_name: "MaxResults"))
|
208
|
+
ListParallelDataRequest.struct_class = Types::ListParallelDataRequest
|
209
|
+
|
210
|
+
ListParallelDataResponse.add_member(:parallel_data_properties_list, Shapes::ShapeRef.new(shape: ParallelDataPropertiesList, location_name: "ParallelDataPropertiesList"))
|
211
|
+
ListParallelDataResponse.add_member(:next_token, Shapes::ShapeRef.new(shape: NextToken, location_name: "NextToken"))
|
212
|
+
ListParallelDataResponse.struct_class = Types::ListParallelDataResponse
|
213
|
+
|
153
214
|
ListTerminologiesRequest.add_member(:next_token, Shapes::ShapeRef.new(shape: NextToken, location_name: "NextToken"))
|
154
215
|
ListTerminologiesRequest.add_member(:max_results, Shapes::ShapeRef.new(shape: MaxResultsInteger, location_name: "MaxResults"))
|
155
216
|
ListTerminologiesRequest.struct_class = Types::ListTerminologiesRequest
|
@@ -170,6 +231,35 @@ module Aws::Translate
|
|
170
231
|
OutputDataConfig.add_member(:s3_uri, Shapes::ShapeRef.new(shape: S3Uri, required: true, location_name: "S3Uri"))
|
171
232
|
OutputDataConfig.struct_class = Types::OutputDataConfig
|
172
233
|
|
234
|
+
ParallelDataConfig.add_member(:s3_uri, Shapes::ShapeRef.new(shape: S3Uri, required: true, location_name: "S3Uri"))
|
235
|
+
ParallelDataConfig.add_member(:format, Shapes::ShapeRef.new(shape: ParallelDataFormat, required: true, location_name: "Format"))
|
236
|
+
ParallelDataConfig.struct_class = Types::ParallelDataConfig
|
237
|
+
|
238
|
+
ParallelDataDataLocation.add_member(:repository_type, Shapes::ShapeRef.new(shape: String, required: true, location_name: "RepositoryType"))
|
239
|
+
ParallelDataDataLocation.add_member(:location, Shapes::ShapeRef.new(shape: String, required: true, location_name: "Location"))
|
240
|
+
ParallelDataDataLocation.struct_class = Types::ParallelDataDataLocation
|
241
|
+
|
242
|
+
ParallelDataProperties.add_member(:name, Shapes::ShapeRef.new(shape: ResourceName, location_name: "Name"))
|
243
|
+
ParallelDataProperties.add_member(:arn, Shapes::ShapeRef.new(shape: ParallelDataArn, location_name: "Arn"))
|
244
|
+
ParallelDataProperties.add_member(:description, Shapes::ShapeRef.new(shape: Description, location_name: "Description"))
|
245
|
+
ParallelDataProperties.add_member(:status, Shapes::ShapeRef.new(shape: ParallelDataStatus, location_name: "Status"))
|
246
|
+
ParallelDataProperties.add_member(:source_language_code, Shapes::ShapeRef.new(shape: LanguageCodeString, location_name: "SourceLanguageCode"))
|
247
|
+
ParallelDataProperties.add_member(:target_language_codes, Shapes::ShapeRef.new(shape: LanguageCodeStringList, location_name: "TargetLanguageCodes"))
|
248
|
+
ParallelDataProperties.add_member(:parallel_data_config, Shapes::ShapeRef.new(shape: ParallelDataConfig, location_name: "ParallelDataConfig"))
|
249
|
+
ParallelDataProperties.add_member(:message, Shapes::ShapeRef.new(shape: UnboundedLengthString, location_name: "Message"))
|
250
|
+
ParallelDataProperties.add_member(:imported_data_size, Shapes::ShapeRef.new(shape: Long, location_name: "ImportedDataSize"))
|
251
|
+
ParallelDataProperties.add_member(:imported_record_count, Shapes::ShapeRef.new(shape: Long, location_name: "ImportedRecordCount"))
|
252
|
+
ParallelDataProperties.add_member(:failed_record_count, Shapes::ShapeRef.new(shape: Long, location_name: "FailedRecordCount"))
|
253
|
+
ParallelDataProperties.add_member(:skipped_record_count, Shapes::ShapeRef.new(shape: Long, location_name: "SkippedRecordCount"))
|
254
|
+
ParallelDataProperties.add_member(:encryption_key, Shapes::ShapeRef.new(shape: EncryptionKey, location_name: "EncryptionKey"))
|
255
|
+
ParallelDataProperties.add_member(:created_at, Shapes::ShapeRef.new(shape: Timestamp, location_name: "CreatedAt"))
|
256
|
+
ParallelDataProperties.add_member(:last_updated_at, Shapes::ShapeRef.new(shape: Timestamp, location_name: "LastUpdatedAt"))
|
257
|
+
ParallelDataProperties.add_member(:latest_update_attempt_status, Shapes::ShapeRef.new(shape: ParallelDataStatus, location_name: "LatestUpdateAttemptStatus"))
|
258
|
+
ParallelDataProperties.add_member(:latest_update_attempt_at, Shapes::ShapeRef.new(shape: Timestamp, location_name: "LatestUpdateAttemptAt"))
|
259
|
+
ParallelDataProperties.struct_class = Types::ParallelDataProperties
|
260
|
+
|
261
|
+
ParallelDataPropertiesList.member = Shapes::ShapeRef.new(shape: ParallelDataProperties)
|
262
|
+
|
173
263
|
ResourceNameList.member = Shapes::ShapeRef.new(shape: ResourceName)
|
174
264
|
|
175
265
|
ResourceNotFoundException.add_member(:message, Shapes::ShapeRef.new(shape: String, location_name: "Message"))
|
@@ -185,6 +275,7 @@ module Aws::Translate
|
|
185
275
|
StartTextTranslationJobRequest.add_member(:source_language_code, Shapes::ShapeRef.new(shape: LanguageCodeString, required: true, location_name: "SourceLanguageCode"))
|
186
276
|
StartTextTranslationJobRequest.add_member(:target_language_codes, Shapes::ShapeRef.new(shape: TargetLanguageCodeStringList, required: true, location_name: "TargetLanguageCodes"))
|
187
277
|
StartTextTranslationJobRequest.add_member(:terminology_names, Shapes::ShapeRef.new(shape: ResourceNameList, location_name: "TerminologyNames"))
|
278
|
+
StartTextTranslationJobRequest.add_member(:parallel_data_names, Shapes::ShapeRef.new(shape: ResourceNameList, location_name: "ParallelDataNames"))
|
188
279
|
StartTextTranslationJobRequest.add_member(:client_token, Shapes::ShapeRef.new(shape: ClientTokenString, required: true, location_name: "ClientToken", metadata: {"idempotencyToken"=>true}))
|
189
280
|
StartTextTranslationJobRequest.struct_class = Types::StartTextTranslationJobRequest
|
190
281
|
|
@@ -245,6 +336,7 @@ module Aws::Translate
|
|
245
336
|
TextTranslationJobProperties.add_member(:source_language_code, Shapes::ShapeRef.new(shape: LanguageCodeString, location_name: "SourceLanguageCode"))
|
246
337
|
TextTranslationJobProperties.add_member(:target_language_codes, Shapes::ShapeRef.new(shape: TargetLanguageCodeStringList, location_name: "TargetLanguageCodes"))
|
247
338
|
TextTranslationJobProperties.add_member(:terminology_names, Shapes::ShapeRef.new(shape: ResourceNameList, location_name: "TerminologyNames"))
|
339
|
+
TextTranslationJobProperties.add_member(:parallel_data_names, Shapes::ShapeRef.new(shape: ResourceNameList, location_name: "ParallelDataNames"))
|
248
340
|
TextTranslationJobProperties.add_member(:message, Shapes::ShapeRef.new(shape: UnboundedLengthString, location_name: "Message"))
|
249
341
|
TextTranslationJobProperties.add_member(:submitted_time, Shapes::ShapeRef.new(shape: Timestamp, location_name: "SubmittedTime"))
|
250
342
|
TextTranslationJobProperties.add_member(:end_time, Shapes::ShapeRef.new(shape: Timestamp, location_name: "EndTime"))
|
@@ -275,6 +367,18 @@ module Aws::Translate
|
|
275
367
|
UnsupportedLanguagePairException.add_member(:target_language_code, Shapes::ShapeRef.new(shape: LanguageCodeString, location_name: "TargetLanguageCode"))
|
276
368
|
UnsupportedLanguagePairException.struct_class = Types::UnsupportedLanguagePairException
|
277
369
|
|
370
|
+
UpdateParallelDataRequest.add_member(:name, Shapes::ShapeRef.new(shape: ResourceName, required: true, location_name: "Name"))
|
371
|
+
UpdateParallelDataRequest.add_member(:description, Shapes::ShapeRef.new(shape: Description, location_name: "Description"))
|
372
|
+
UpdateParallelDataRequest.add_member(:parallel_data_config, Shapes::ShapeRef.new(shape: ParallelDataConfig, required: true, location_name: "ParallelDataConfig"))
|
373
|
+
UpdateParallelDataRequest.add_member(:client_token, Shapes::ShapeRef.new(shape: ClientTokenString, required: true, location_name: "ClientToken", metadata: {"idempotencyToken"=>true}))
|
374
|
+
UpdateParallelDataRequest.struct_class = Types::UpdateParallelDataRequest
|
375
|
+
|
376
|
+
UpdateParallelDataResponse.add_member(:name, Shapes::ShapeRef.new(shape: ResourceName, location_name: "Name"))
|
377
|
+
UpdateParallelDataResponse.add_member(:status, Shapes::ShapeRef.new(shape: ParallelDataStatus, location_name: "Status"))
|
378
|
+
UpdateParallelDataResponse.add_member(:latest_update_attempt_status, Shapes::ShapeRef.new(shape: ParallelDataStatus, location_name: "LatestUpdateAttemptStatus"))
|
379
|
+
UpdateParallelDataResponse.add_member(:latest_update_attempt_at, Shapes::ShapeRef.new(shape: Timestamp, location_name: "LatestUpdateAttemptAt"))
|
380
|
+
UpdateParallelDataResponse.struct_class = Types::UpdateParallelDataResponse
|
381
|
+
|
278
382
|
|
279
383
|
# @api private
|
280
384
|
API = Seahorse::Model::Api.new.tap do |api|
|
@@ -294,6 +398,32 @@ module Aws::Translate
|
|
294
398
|
"uid" => "translate-2017-07-01",
|
295
399
|
}
|
296
400
|
|
401
|
+
api.add_operation(:create_parallel_data, Seahorse::Model::Operation.new.tap do |o|
|
402
|
+
o.name = "CreateParallelData"
|
403
|
+
o.http_method = "POST"
|
404
|
+
o.http_request_uri = "/"
|
405
|
+
o.input = Shapes::ShapeRef.new(shape: CreateParallelDataRequest)
|
406
|
+
o.output = Shapes::ShapeRef.new(shape: CreateParallelDataResponse)
|
407
|
+
o.errors << Shapes::ShapeRef.new(shape: InvalidParameterValueException)
|
408
|
+
o.errors << Shapes::ShapeRef.new(shape: InvalidRequestException)
|
409
|
+
o.errors << Shapes::ShapeRef.new(shape: LimitExceededException)
|
410
|
+
o.errors << Shapes::ShapeRef.new(shape: TooManyRequestsException)
|
411
|
+
o.errors << Shapes::ShapeRef.new(shape: ConflictException)
|
412
|
+
o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
|
413
|
+
end)
|
414
|
+
|
415
|
+
api.add_operation(:delete_parallel_data, Seahorse::Model::Operation.new.tap do |o|
|
416
|
+
o.name = "DeleteParallelData"
|
417
|
+
o.http_method = "POST"
|
418
|
+
o.http_request_uri = "/"
|
419
|
+
o.input = Shapes::ShapeRef.new(shape: DeleteParallelDataRequest)
|
420
|
+
o.output = Shapes::ShapeRef.new(shape: DeleteParallelDataResponse)
|
421
|
+
o.errors << Shapes::ShapeRef.new(shape: ConcurrentModificationException)
|
422
|
+
o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
|
423
|
+
o.errors << Shapes::ShapeRef.new(shape: TooManyRequestsException)
|
424
|
+
o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
|
425
|
+
end)
|
426
|
+
|
297
427
|
api.add_operation(:delete_terminology, Seahorse::Model::Operation.new.tap do |o|
|
298
428
|
o.name = "DeleteTerminology"
|
299
429
|
o.http_method = "POST"
|
@@ -317,6 +447,18 @@ module Aws::Translate
|
|
317
447
|
o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
|
318
448
|
end)
|
319
449
|
|
450
|
+
api.add_operation(:get_parallel_data, Seahorse::Model::Operation.new.tap do |o|
|
451
|
+
o.name = "GetParallelData"
|
452
|
+
o.http_method = "POST"
|
453
|
+
o.http_request_uri = "/"
|
454
|
+
o.input = Shapes::ShapeRef.new(shape: GetParallelDataRequest)
|
455
|
+
o.output = Shapes::ShapeRef.new(shape: GetParallelDataResponse)
|
456
|
+
o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
|
457
|
+
o.errors << Shapes::ShapeRef.new(shape: InvalidParameterValueException)
|
458
|
+
o.errors << Shapes::ShapeRef.new(shape: TooManyRequestsException)
|
459
|
+
o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
|
460
|
+
end)
|
461
|
+
|
320
462
|
api.add_operation(:get_terminology, Seahorse::Model::Operation.new.tap do |o|
|
321
463
|
o.name = "GetTerminology"
|
322
464
|
o.http_method = "POST"
|
@@ -341,6 +483,23 @@ module Aws::Translate
|
|
341
483
|
o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
|
342
484
|
end)
|
343
485
|
|
486
|
+
api.add_operation(:list_parallel_data, Seahorse::Model::Operation.new.tap do |o|
|
487
|
+
o.name = "ListParallelData"
|
488
|
+
o.http_method = "POST"
|
489
|
+
o.http_request_uri = "/"
|
490
|
+
o.input = Shapes::ShapeRef.new(shape: ListParallelDataRequest)
|
491
|
+
o.output = Shapes::ShapeRef.new(shape: ListParallelDataResponse)
|
492
|
+
o.errors << Shapes::ShapeRef.new(shape: InvalidParameterValueException)
|
493
|
+
o.errors << Shapes::ShapeRef.new(shape: TooManyRequestsException)
|
494
|
+
o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
|
495
|
+
o[:pager] = Aws::Pager.new(
|
496
|
+
limit_key: "max_results",
|
497
|
+
tokens: {
|
498
|
+
"next_token" => "next_token"
|
499
|
+
}
|
500
|
+
)
|
501
|
+
end)
|
502
|
+
|
344
503
|
api.add_operation(:list_terminologies, Seahorse::Model::Operation.new.tap do |o|
|
345
504
|
o.name = "ListTerminologies"
|
346
505
|
o.http_method = "POST"
|
@@ -415,6 +574,22 @@ module Aws::Translate
|
|
415
574
|
o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
|
416
575
|
o.errors << Shapes::ShapeRef.new(shape: ServiceUnavailableException)
|
417
576
|
end)
|
577
|
+
|
578
|
+
api.add_operation(:update_parallel_data, Seahorse::Model::Operation.new.tap do |o|
|
579
|
+
o.name = "UpdateParallelData"
|
580
|
+
o.http_method = "POST"
|
581
|
+
o.http_request_uri = "/"
|
582
|
+
o.input = Shapes::ShapeRef.new(shape: UpdateParallelDataRequest)
|
583
|
+
o.output = Shapes::ShapeRef.new(shape: UpdateParallelDataResponse)
|
584
|
+
o.errors << Shapes::ShapeRef.new(shape: ConcurrentModificationException)
|
585
|
+
o.errors << Shapes::ShapeRef.new(shape: InvalidParameterValueException)
|
586
|
+
o.errors << Shapes::ShapeRef.new(shape: InvalidRequestException)
|
587
|
+
o.errors << Shapes::ShapeRef.new(shape: LimitExceededException)
|
588
|
+
o.errors << Shapes::ShapeRef.new(shape: TooManyRequestsException)
|
589
|
+
o.errors << Shapes::ShapeRef.new(shape: ConflictException)
|
590
|
+
o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
|
591
|
+
o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
|
592
|
+
end)
|
418
593
|
end
|
419
594
|
|
420
595
|
end
|
@@ -27,6 +27,8 @@ module Aws::Translate
|
|
27
27
|
# See {Seahorse::Client::RequestContext} for more information.
|
28
28
|
#
|
29
29
|
# ## Error Classes
|
30
|
+
# * {ConcurrentModificationException}
|
31
|
+
# * {ConflictException}
|
30
32
|
# * {DetectedLanguageLowConfidenceException}
|
31
33
|
# * {InternalServerException}
|
32
34
|
# * {InvalidFilterException}
|
@@ -45,6 +47,36 @@ module Aws::Translate
|
|
45
47
|
|
46
48
|
extend Aws::Errors::DynamicErrors
|
47
49
|
|
50
|
+
class ConcurrentModificationException < ServiceError
|
51
|
+
|
52
|
+
# @param [Seahorse::Client::RequestContext] context
|
53
|
+
# @param [String] message
|
54
|
+
# @param [Aws::Translate::Types::ConcurrentModificationException] data
|
55
|
+
def initialize(context, message, data = Aws::EmptyStructure.new)
|
56
|
+
super(context, message, data)
|
57
|
+
end
|
58
|
+
|
59
|
+
# @return [String]
|
60
|
+
def message
|
61
|
+
@message || @data[:message]
|
62
|
+
end
|
63
|
+
end
|
64
|
+
|
65
|
+
class ConflictException < ServiceError
|
66
|
+
|
67
|
+
# @param [Seahorse::Client::RequestContext] context
|
68
|
+
# @param [String] message
|
69
|
+
# @param [Aws::Translate::Types::ConflictException] data
|
70
|
+
def initialize(context, message, data = Aws::EmptyStructure.new)
|
71
|
+
super(context, message, data)
|
72
|
+
end
|
73
|
+
|
74
|
+
# @return [String]
|
75
|
+
def message
|
76
|
+
@message || @data[:message]
|
77
|
+
end
|
78
|
+
end
|
79
|
+
|
48
80
|
class DetectedLanguageLowConfidenceException < ServiceError
|
49
81
|
|
50
82
|
# @param [Seahorse::Client::RequestContext] context
|
@@ -37,6 +37,143 @@ module Aws::Translate
|
|
37
37
|
include Aws::Structure
|
38
38
|
end
|
39
39
|
|
40
|
+
# Another modification is being made. That modification must complete
|
41
|
+
# before you can make your change.
|
42
|
+
#
|
43
|
+
# @!attribute [rw] message
|
44
|
+
# @return [String]
|
45
|
+
#
|
46
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/translate-2017-07-01/ConcurrentModificationException AWS API Documentation
|
47
|
+
#
|
48
|
+
class ConcurrentModificationException < Struct.new(
|
49
|
+
:message)
|
50
|
+
SENSITIVE = []
|
51
|
+
include Aws::Structure
|
52
|
+
end
|
53
|
+
|
54
|
+
# There was a conflict processing the request. Try your request again.
|
55
|
+
#
|
56
|
+
# @!attribute [rw] message
|
57
|
+
# @return [String]
|
58
|
+
#
|
59
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/translate-2017-07-01/ConflictException AWS API Documentation
|
60
|
+
#
|
61
|
+
class ConflictException < Struct.new(
|
62
|
+
:message)
|
63
|
+
SENSITIVE = []
|
64
|
+
include Aws::Structure
|
65
|
+
end
|
66
|
+
|
67
|
+
# @note When making an API call, you may pass CreateParallelDataRequest
|
68
|
+
# data as a hash:
|
69
|
+
#
|
70
|
+
# {
|
71
|
+
# name: "ResourceName", # required
|
72
|
+
# description: "Description",
|
73
|
+
# parallel_data_config: { # required
|
74
|
+
# s3_uri: "S3Uri", # required
|
75
|
+
# format: "TSV", # required, accepts TSV, CSV, TMX
|
76
|
+
# },
|
77
|
+
# encryption_key: {
|
78
|
+
# type: "KMS", # required, accepts KMS
|
79
|
+
# id: "EncryptionKeyID", # required
|
80
|
+
# },
|
81
|
+
# client_token: "ClientTokenString", # required
|
82
|
+
# }
|
83
|
+
#
|
84
|
+
# @!attribute [rw] name
|
85
|
+
# A custom name for the parallel data resource in Amazon Translate.
|
86
|
+
# You must assign a name that is unique in the account and region.
|
87
|
+
# @return [String]
|
88
|
+
#
|
89
|
+
# @!attribute [rw] description
|
90
|
+
# A custom description for the parallel data resource in Amazon
|
91
|
+
# Translate.
|
92
|
+
# @return [String]
|
93
|
+
#
|
94
|
+
# @!attribute [rw] parallel_data_config
|
95
|
+
# Specifies the format and S3 location of the parallel data input
|
96
|
+
# file.
|
97
|
+
# @return [Types::ParallelDataConfig]
|
98
|
+
#
|
99
|
+
# @!attribute [rw] encryption_key
|
100
|
+
# The encryption key used to encrypt this object.
|
101
|
+
# @return [Types::EncryptionKey]
|
102
|
+
#
|
103
|
+
# @!attribute [rw] client_token
|
104
|
+
# A unique identifier for the request. This token is automatically
|
105
|
+
# generated when you use Amazon Translate through an AWS SDK.
|
106
|
+
#
|
107
|
+
# **A suitable default value is auto-generated.** You should normally
|
108
|
+
# not need to pass this option.
|
109
|
+
# @return [String]
|
110
|
+
#
|
111
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/translate-2017-07-01/CreateParallelDataRequest AWS API Documentation
|
112
|
+
#
|
113
|
+
class CreateParallelDataRequest < Struct.new(
|
114
|
+
:name,
|
115
|
+
:description,
|
116
|
+
:parallel_data_config,
|
117
|
+
:encryption_key,
|
118
|
+
:client_token)
|
119
|
+
SENSITIVE = []
|
120
|
+
include Aws::Structure
|
121
|
+
end
|
122
|
+
|
123
|
+
# @!attribute [rw] name
|
124
|
+
# The custom name that you assigned to the parallel data resource.
|
125
|
+
# @return [String]
|
126
|
+
#
|
127
|
+
# @!attribute [rw] status
|
128
|
+
# The status of the parallel data resource. When the resource is ready
|
129
|
+
# for you to use, the status is `ACTIVE`.
|
130
|
+
# @return [String]
|
131
|
+
#
|
132
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/translate-2017-07-01/CreateParallelDataResponse AWS API Documentation
|
133
|
+
#
|
134
|
+
class CreateParallelDataResponse < Struct.new(
|
135
|
+
:name,
|
136
|
+
:status)
|
137
|
+
SENSITIVE = []
|
138
|
+
include Aws::Structure
|
139
|
+
end
|
140
|
+
|
141
|
+
# @note When making an API call, you may pass DeleteParallelDataRequest
|
142
|
+
# data as a hash:
|
143
|
+
#
|
144
|
+
# {
|
145
|
+
# name: "ResourceName", # required
|
146
|
+
# }
|
147
|
+
#
|
148
|
+
# @!attribute [rw] name
|
149
|
+
# The name of the parallel data resource that is being deleted.
|
150
|
+
# @return [String]
|
151
|
+
#
|
152
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/translate-2017-07-01/DeleteParallelDataRequest AWS API Documentation
|
153
|
+
#
|
154
|
+
class DeleteParallelDataRequest < Struct.new(
|
155
|
+
:name)
|
156
|
+
SENSITIVE = []
|
157
|
+
include Aws::Structure
|
158
|
+
end
|
159
|
+
|
160
|
+
# @!attribute [rw] name
|
161
|
+
# The name of the parallel data resource that is being deleted.
|
162
|
+
# @return [String]
|
163
|
+
#
|
164
|
+
# @!attribute [rw] status
|
165
|
+
# The status of the parallel data deletion.
|
166
|
+
# @return [String]
|
167
|
+
#
|
168
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/translate-2017-07-01/DeleteParallelDataResponse AWS API Documentation
|
169
|
+
#
|
170
|
+
class DeleteParallelDataResponse < Struct.new(
|
171
|
+
:name,
|
172
|
+
:status)
|
173
|
+
SENSITIVE = []
|
174
|
+
include Aws::Structure
|
175
|
+
end
|
176
|
+
|
40
177
|
# @note When making an API call, you may pass DeleteTerminologyRequest
|
41
178
|
# data as a hash:
|
42
179
|
#
|
@@ -118,8 +255,7 @@ module Aws::Translate
|
|
118
255
|
include Aws::Structure
|
119
256
|
end
|
120
257
|
|
121
|
-
# The encryption key used to encrypt
|
122
|
-
# Amazon Translate.
|
258
|
+
# The encryption key used to encrypt this object.
|
123
259
|
#
|
124
260
|
# @note When making an API call, you may pass EncryptionKey
|
125
261
|
# data as a hash:
|
@@ -148,6 +284,63 @@ module Aws::Translate
|
|
148
284
|
include Aws::Structure
|
149
285
|
end
|
150
286
|
|
287
|
+
# @note When making an API call, you may pass GetParallelDataRequest
|
288
|
+
# data as a hash:
|
289
|
+
#
|
290
|
+
# {
|
291
|
+
# name: "ResourceName", # required
|
292
|
+
# }
|
293
|
+
#
|
294
|
+
# @!attribute [rw] name
|
295
|
+
# The name of the parallel data resource that is being retrieved.
|
296
|
+
# @return [String]
|
297
|
+
#
|
298
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/translate-2017-07-01/GetParallelDataRequest AWS API Documentation
|
299
|
+
#
|
300
|
+
class GetParallelDataRequest < Struct.new(
|
301
|
+
:name)
|
302
|
+
SENSITIVE = []
|
303
|
+
include Aws::Structure
|
304
|
+
end
|
305
|
+
|
306
|
+
# @!attribute [rw] parallel_data_properties
|
307
|
+
# The properties of the parallel data resource that is being
|
308
|
+
# retrieved.
|
309
|
+
# @return [Types::ParallelDataProperties]
|
310
|
+
#
|
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.
|
315
|
+
# @return [Types::ParallelDataDataLocation]
|
316
|
+
#
|
317
|
+
# @!attribute [rw] auxiliary_data_location
|
318
|
+
# The Amazon S3 location of a file that provides any errors or
|
319
|
+
# warnings that were produced by your input file. This file was
|
320
|
+
# created when Amazon Translate attempted to create a parallel data
|
321
|
+
# resource. The location is returned as a presigned URL to that has a
|
322
|
+
# 30 minute expiration.
|
323
|
+
# @return [Types::ParallelDataDataLocation]
|
324
|
+
#
|
325
|
+
# @!attribute [rw] latest_update_attempt_auxiliary_data_location
|
326
|
+
# The Amazon S3 location of a file that provides any errors or
|
327
|
+
# warnings that were produced by your input file. This file was
|
328
|
+
# created when Amazon Translate attempted to update a parallel data
|
329
|
+
# resource. The location is returned as a presigned URL to that has a
|
330
|
+
# 30 minute expiration.
|
331
|
+
# @return [Types::ParallelDataDataLocation]
|
332
|
+
#
|
333
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/translate-2017-07-01/GetParallelDataResponse AWS API Documentation
|
334
|
+
#
|
335
|
+
class GetParallelDataResponse < Struct.new(
|
336
|
+
:parallel_data_properties,
|
337
|
+
:data_location,
|
338
|
+
:auxiliary_data_location,
|
339
|
+
:latest_update_attempt_auxiliary_data_location)
|
340
|
+
SENSITIVE = []
|
341
|
+
include Aws::Structure
|
342
|
+
end
|
343
|
+
|
151
344
|
# @note When making an API call, you may pass GetTerminologyRequest
|
152
345
|
# data as a hash:
|
153
346
|
#
|
@@ -410,6 +603,53 @@ module Aws::Translate
|
|
410
603
|
include Aws::Structure
|
411
604
|
end
|
412
605
|
|
606
|
+
# @note When making an API call, you may pass ListParallelDataRequest
|
607
|
+
# data as a hash:
|
608
|
+
#
|
609
|
+
# {
|
610
|
+
# next_token: "NextToken",
|
611
|
+
# max_results: 1,
|
612
|
+
# }
|
613
|
+
#
|
614
|
+
# @!attribute [rw] next_token
|
615
|
+
# A string that specifies the next page of results to return in a
|
616
|
+
# paginated response.
|
617
|
+
# @return [String]
|
618
|
+
#
|
619
|
+
# @!attribute [rw] max_results
|
620
|
+
# The maximum number of parallel data resources returned for each
|
621
|
+
# request.
|
622
|
+
# @return [Integer]
|
623
|
+
#
|
624
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/translate-2017-07-01/ListParallelDataRequest AWS API Documentation
|
625
|
+
#
|
626
|
+
class ListParallelDataRequest < Struct.new(
|
627
|
+
:next_token,
|
628
|
+
:max_results)
|
629
|
+
SENSITIVE = []
|
630
|
+
include Aws::Structure
|
631
|
+
end
|
632
|
+
|
633
|
+
# @!attribute [rw] parallel_data_properties_list
|
634
|
+
# The properties of the parallel data resources returned by this
|
635
|
+
# request.
|
636
|
+
# @return [Array<Types::ParallelDataProperties>]
|
637
|
+
#
|
638
|
+
# @!attribute [rw] next_token
|
639
|
+
# The string to use in a subsequent request to get the next page of
|
640
|
+
# results in a paginated response. This value is null if there are no
|
641
|
+
# additional pages.
|
642
|
+
# @return [String]
|
643
|
+
#
|
644
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/translate-2017-07-01/ListParallelDataResponse AWS API Documentation
|
645
|
+
#
|
646
|
+
class ListParallelDataResponse < Struct.new(
|
647
|
+
:parallel_data_properties_list,
|
648
|
+
:next_token)
|
649
|
+
SENSITIVE = []
|
650
|
+
include Aws::Structure
|
651
|
+
end
|
652
|
+
|
413
653
|
# @note When making an API call, you may pass ListTerminologiesRequest
|
414
654
|
# data as a hash:
|
415
655
|
#
|
@@ -537,6 +777,166 @@ module Aws::Translate
|
|
537
777
|
include Aws::Structure
|
538
778
|
end
|
539
779
|
|
780
|
+
# Specifies the format and S3 location of the parallel data input file.
|
781
|
+
#
|
782
|
+
# @note When making an API call, you may pass ParallelDataConfig
|
783
|
+
# data as a hash:
|
784
|
+
#
|
785
|
+
# {
|
786
|
+
# s3_uri: "S3Uri", # required
|
787
|
+
# format: "TSV", # required, accepts TSV, CSV, TMX
|
788
|
+
# }
|
789
|
+
#
|
790
|
+
# @!attribute [rw] s3_uri
|
791
|
+
# The URI of the Amazon S3 folder that contains the parallel data
|
792
|
+
# input file. The folder must be in the same Region as the API
|
793
|
+
# endpoint you are calling.
|
794
|
+
# @return [String]
|
795
|
+
#
|
796
|
+
# @!attribute [rw] format
|
797
|
+
# The format of the parallel data input file.
|
798
|
+
# @return [String]
|
799
|
+
#
|
800
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/translate-2017-07-01/ParallelDataConfig AWS API Documentation
|
801
|
+
#
|
802
|
+
class ParallelDataConfig < Struct.new(
|
803
|
+
:s3_uri,
|
804
|
+
:format)
|
805
|
+
SENSITIVE = []
|
806
|
+
include Aws::Structure
|
807
|
+
end
|
808
|
+
|
809
|
+
# The location of the most recent parallel data input file that was
|
810
|
+
# successfully imported into Amazon Translate.
|
811
|
+
#
|
812
|
+
# @!attribute [rw] repository_type
|
813
|
+
# Describes the repository that contains the parallel data input file.
|
814
|
+
# @return [String]
|
815
|
+
#
|
816
|
+
# @!attribute [rw] location
|
817
|
+
# The Amazon S3 location of the parallel data input file. The location
|
818
|
+
# is returned as a presigned URL to that has a 30 minute expiration.
|
819
|
+
# @return [String]
|
820
|
+
#
|
821
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/translate-2017-07-01/ParallelDataDataLocation AWS API Documentation
|
822
|
+
#
|
823
|
+
class ParallelDataDataLocation < Struct.new(
|
824
|
+
:repository_type,
|
825
|
+
:location)
|
826
|
+
SENSITIVE = []
|
827
|
+
include Aws::Structure
|
828
|
+
end
|
829
|
+
|
830
|
+
# The properties of a parallel data resource.
|
831
|
+
#
|
832
|
+
# @!attribute [rw] name
|
833
|
+
# The custom name assigned to the parallel data resource.
|
834
|
+
# @return [String]
|
835
|
+
#
|
836
|
+
# @!attribute [rw] arn
|
837
|
+
# The Amazon Resource Name (ARN) of the parallel data resource.
|
838
|
+
# @return [String]
|
839
|
+
#
|
840
|
+
# @!attribute [rw] description
|
841
|
+
# The description assigned to the parallel data resource.
|
842
|
+
# @return [String]
|
843
|
+
#
|
844
|
+
# @!attribute [rw] status
|
845
|
+
# The status of the parallel data resource. When the parallel data is
|
846
|
+
# ready for you to use, the status is `ACTIVE`.
|
847
|
+
# @return [String]
|
848
|
+
#
|
849
|
+
# @!attribute [rw] source_language_code
|
850
|
+
# The source language of the translations in the parallel data file.
|
851
|
+
# @return [String]
|
852
|
+
#
|
853
|
+
# @!attribute [rw] target_language_codes
|
854
|
+
# The language codes for the target languages available in the
|
855
|
+
# parallel data file. All possible target languages are returned as an
|
856
|
+
# array.
|
857
|
+
# @return [Array<String>]
|
858
|
+
#
|
859
|
+
# @!attribute [rw] parallel_data_config
|
860
|
+
# Specifies the format and S3 location of the parallel data input
|
861
|
+
# file.
|
862
|
+
# @return [Types::ParallelDataConfig]
|
863
|
+
#
|
864
|
+
# @!attribute [rw] message
|
865
|
+
# Additional information from Amazon Translate about the parallel data
|
866
|
+
# resource.
|
867
|
+
# @return [String]
|
868
|
+
#
|
869
|
+
# @!attribute [rw] imported_data_size
|
870
|
+
# The number of UTF-8 characters that Amazon Translate imported from
|
871
|
+
# the parallel data input file. This number includes only the
|
872
|
+
# characters in your translation examples. It does not include
|
873
|
+
# characters that are used to format your file. For example, if you
|
874
|
+
# provided a Translation Memory Exchange (.tmx) file, this number does
|
875
|
+
# not include the tags.
|
876
|
+
# @return [Integer]
|
877
|
+
#
|
878
|
+
# @!attribute [rw] imported_record_count
|
879
|
+
# The number of records successfully imported from the parallel data
|
880
|
+
# input file.
|
881
|
+
# @return [Integer]
|
882
|
+
#
|
883
|
+
# @!attribute [rw] failed_record_count
|
884
|
+
# The number of records unsuccessfully imported from the parallel data
|
885
|
+
# input file.
|
886
|
+
# @return [Integer]
|
887
|
+
#
|
888
|
+
# @!attribute [rw] skipped_record_count
|
889
|
+
# The number of items in the input file that Amazon Translate skipped
|
890
|
+
# when you created or updated the parallel data resource. For example,
|
891
|
+
# Amazon Translate skips empty records, empty target texts, and empty
|
892
|
+
# lines.
|
893
|
+
# @return [Integer]
|
894
|
+
#
|
895
|
+
# @!attribute [rw] encryption_key
|
896
|
+
# The encryption key used to encrypt this object.
|
897
|
+
# @return [Types::EncryptionKey]
|
898
|
+
#
|
899
|
+
# @!attribute [rw] created_at
|
900
|
+
# The time at which the parallel data resource was created.
|
901
|
+
# @return [Time]
|
902
|
+
#
|
903
|
+
# @!attribute [rw] last_updated_at
|
904
|
+
# The time at which the parallel data resource was last updated.
|
905
|
+
# @return [Time]
|
906
|
+
#
|
907
|
+
# @!attribute [rw] latest_update_attempt_status
|
908
|
+
# The status of the most recent update attempt for the parallel data
|
909
|
+
# resource.
|
910
|
+
# @return [String]
|
911
|
+
#
|
912
|
+
# @!attribute [rw] latest_update_attempt_at
|
913
|
+
# The time that the most recent update was attempted.
|
914
|
+
# @return [Time]
|
915
|
+
#
|
916
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/translate-2017-07-01/ParallelDataProperties AWS API Documentation
|
917
|
+
#
|
918
|
+
class ParallelDataProperties < Struct.new(
|
919
|
+
:name,
|
920
|
+
:arn,
|
921
|
+
:description,
|
922
|
+
:status,
|
923
|
+
:source_language_code,
|
924
|
+
:target_language_codes,
|
925
|
+
:parallel_data_config,
|
926
|
+
:message,
|
927
|
+
:imported_data_size,
|
928
|
+
:imported_record_count,
|
929
|
+
:failed_record_count,
|
930
|
+
:skipped_record_count,
|
931
|
+
:encryption_key,
|
932
|
+
:created_at,
|
933
|
+
:last_updated_at,
|
934
|
+
:latest_update_attempt_status,
|
935
|
+
:latest_update_attempt_at)
|
936
|
+
SENSITIVE = []
|
937
|
+
include Aws::Structure
|
938
|
+
end
|
939
|
+
|
540
940
|
# The resource you are looking for has not been found. Review the
|
541
941
|
# resource you're looking for and see if a different resource will
|
542
942
|
# accomplish your needs before retrying the revised request.
|
@@ -582,6 +982,7 @@ module Aws::Translate
|
|
582
982
|
# source_language_code: "LanguageCodeString", # required
|
583
983
|
# target_language_codes: ["LanguageCodeString"], # required
|
584
984
|
# terminology_names: ["ResourceName"],
|
985
|
+
# parallel_data_names: ["ResourceName"],
|
585
986
|
# client_token: "ClientTokenString", # required
|
586
987
|
# }
|
587
988
|
#
|
@@ -623,6 +1024,12 @@ module Aws::Translate
|
|
623
1024
|
# operation.
|
624
1025
|
# @return [Array<String>]
|
625
1026
|
#
|
1027
|
+
# @!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.
|
1031
|
+
# @return [Array<String>]
|
1032
|
+
#
|
626
1033
|
# @!attribute [rw] client_token
|
627
1034
|
# A unique identifier for the request. This token is auto-generated
|
628
1035
|
# when using the Amazon Translate SDK.
|
@@ -641,6 +1048,7 @@ module Aws::Translate
|
|
641
1048
|
:source_language_code,
|
642
1049
|
:target_language_codes,
|
643
1050
|
:terminology_names,
|
1051
|
+
:parallel_data_names,
|
644
1052
|
:client_token)
|
645
1053
|
SENSITIVE = []
|
646
1054
|
include Aws::Structure
|
@@ -950,6 +1358,11 @@ module Aws::Translate
|
|
950
1358
|
# StartTextTranslationJob request at this time.
|
951
1359
|
# @return [Array<String>]
|
952
1360
|
#
|
1361
|
+
# @!attribute [rw] parallel_data_names
|
1362
|
+
# A list containing the names of the parallel data resources applied
|
1363
|
+
# to the translation job.
|
1364
|
+
# @return [Array<String>]
|
1365
|
+
#
|
953
1366
|
# @!attribute [rw] message
|
954
1367
|
# An explanation of any errors that may have occured during the
|
955
1368
|
# translation job.
|
@@ -989,6 +1402,7 @@ module Aws::Translate
|
|
989
1402
|
:source_language_code,
|
990
1403
|
:target_language_codes,
|
991
1404
|
:terminology_names,
|
1405
|
+
:parallel_data_names,
|
992
1406
|
:message,
|
993
1407
|
:submitted_time,
|
994
1408
|
:end_time,
|
@@ -1120,5 +1534,82 @@ module Aws::Translate
|
|
1120
1534
|
include Aws::Structure
|
1121
1535
|
end
|
1122
1536
|
|
1537
|
+
# @note When making an API call, you may pass UpdateParallelDataRequest
|
1538
|
+
# data as a hash:
|
1539
|
+
#
|
1540
|
+
# {
|
1541
|
+
# name: "ResourceName", # required
|
1542
|
+
# description: "Description",
|
1543
|
+
# parallel_data_config: { # required
|
1544
|
+
# s3_uri: "S3Uri", # required
|
1545
|
+
# format: "TSV", # required, accepts TSV, CSV, TMX
|
1546
|
+
# },
|
1547
|
+
# client_token: "ClientTokenString", # required
|
1548
|
+
# }
|
1549
|
+
#
|
1550
|
+
# @!attribute [rw] name
|
1551
|
+
# The name of the parallel data resource being updated.
|
1552
|
+
# @return [String]
|
1553
|
+
#
|
1554
|
+
# @!attribute [rw] description
|
1555
|
+
# A custom description for the parallel data resource in Amazon
|
1556
|
+
# Translate.
|
1557
|
+
# @return [String]
|
1558
|
+
#
|
1559
|
+
# @!attribute [rw] parallel_data_config
|
1560
|
+
# Specifies the format and S3 location of the parallel data input
|
1561
|
+
# file.
|
1562
|
+
# @return [Types::ParallelDataConfig]
|
1563
|
+
#
|
1564
|
+
# @!attribute [rw] client_token
|
1565
|
+
# A unique identifier for the request. This token is automatically
|
1566
|
+
# generated when you use Amazon Translate through an AWS SDK.
|
1567
|
+
#
|
1568
|
+
# **A suitable default value is auto-generated.** You should normally
|
1569
|
+
# not need to pass this option.
|
1570
|
+
# @return [String]
|
1571
|
+
#
|
1572
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/translate-2017-07-01/UpdateParallelDataRequest AWS API Documentation
|
1573
|
+
#
|
1574
|
+
class UpdateParallelDataRequest < Struct.new(
|
1575
|
+
:name,
|
1576
|
+
:description,
|
1577
|
+
:parallel_data_config,
|
1578
|
+
:client_token)
|
1579
|
+
SENSITIVE = []
|
1580
|
+
include Aws::Structure
|
1581
|
+
end
|
1582
|
+
|
1583
|
+
# @!attribute [rw] name
|
1584
|
+
# The name of the parallel data resource being updated.
|
1585
|
+
# @return [String]
|
1586
|
+
#
|
1587
|
+
# @!attribute [rw] status
|
1588
|
+
# The status of the parallel data resource that you are attempting to
|
1589
|
+
# update. Your update request is accepted only if this status is
|
1590
|
+
# either `ACTIVE` or `FAILED`.
|
1591
|
+
# @return [String]
|
1592
|
+
#
|
1593
|
+
# @!attribute [rw] latest_update_attempt_status
|
1594
|
+
# The status of the parallel data update attempt. When the updated
|
1595
|
+
# parallel data resource is ready for you to use, the status is
|
1596
|
+
# `ACTIVE`.
|
1597
|
+
# @return [String]
|
1598
|
+
#
|
1599
|
+
# @!attribute [rw] latest_update_attempt_at
|
1600
|
+
# The time that the most recent update was attempted.
|
1601
|
+
# @return [Time]
|
1602
|
+
#
|
1603
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/translate-2017-07-01/UpdateParallelDataResponse AWS API Documentation
|
1604
|
+
#
|
1605
|
+
class UpdateParallelDataResponse < Struct.new(
|
1606
|
+
:name,
|
1607
|
+
:status,
|
1608
|
+
:latest_update_attempt_status,
|
1609
|
+
:latest_update_attempt_at)
|
1610
|
+
SENSITIVE = []
|
1611
|
+
include Aws::Structure
|
1612
|
+
end
|
1613
|
+
|
1123
1614
|
end
|
1124
1615
|
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.
|
4
|
+
version: 1.29.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: 2020-
|
11
|
+
date: 2020-11-23 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: aws-sdk-core
|