aws-sdk-translate 1.25.0 → 1.30.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: c3ddf2d4fc6a05c177f7709809cc978147f29cde2cd473c827e52f62d1c2061c
4
- data.tar.gz: 25d149f9d93862dcf69731896c9ced9d82021eb8f1e18ebf815cf3c5205c4d85
3
+ metadata.gz: f86094f02ae6f7c38c31279e342c8fa90dc8cb5ea83cb015392decbc17db85fa
4
+ data.tar.gz: 18befdb7168e16e29d93998888292c9127d0930dc0451f92ba441d4cb302b97a
5
5
  SHA512:
6
- metadata.gz: d8366e5e82a7dab0edae385c54c6942bb3b2e759b49efa94f79ac453f362a2c66eeae6f5f52bc3dc1a812e5226a4005bc51431c01090619b4e0f2820291b5736
7
- data.tar.gz: dd2c9f8b4204e87b095914dd248ef1a05910de1b059b3fc4e00dc149cb96bf3784779ad1b99115341518f4587b9d0ae331d972f2ea0e1a6750cd23944dcee55b
6
+ metadata.gz: 494cf3c8e627b1c57e4a3966bbdd66a25fd269151e7c6a671d040c25779e0ef924cac70c6d11482849c87c11118767c25e671b244ffeab670ff345ff684220e3
7
+ data.tar.gz: b8df23f149d2b2474115d8c44b1552344202e6acae49fc883ff182f80474e0cf15393ff96fefb4454d35fa5065a06a0d0466257fbda08c0353f85a8023b52ba7
@@ -7,6 +7,7 @@
7
7
  #
8
8
  # WARNING ABOUT GENERATED CODE
9
9
 
10
+
10
11
  require 'aws-sdk-core'
11
12
  require 'aws-sigv4'
12
13
 
@@ -27,7 +28,7 @@ require_relative 'aws-sdk-translate/customizations'
27
28
  # structure.
28
29
  #
29
30
  # translate = Aws::Translate::Client.new
30
- # resp = translate.delete_terminology(params)
31
+ # resp = translate.create_parallel_data(params)
31
32
  #
32
33
  # See {Client} for more information.
33
34
  #
@@ -47,6 +48,6 @@ require_relative 'aws-sdk-translate/customizations'
47
48
  # @!group service
48
49
  module Aws::Translate
49
50
 
50
- GEM_VERSION = '1.25.0'
51
+ GEM_VERSION = '1.30.0'
51
52
 
52
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,15 +897,14 @@ 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
- # The client token of the EC2 instance calling the request. This token
692
- # is auto-generated when using the Amazon Translate SDK. Otherwise, use
693
- # the
694
- # [DescribeInstances](docs.aws.amazon.com/AWSEC2/latest/APIReference/API_DescribeInstances.html)
695
- # EC2 operation to retreive an instance's client token. For more
696
- # information, see [Client
697
- # Tokens](docs.aws.amazon.com/AWSEC2/latest/APIReference/Run_Instance_Idempotency.html#client-tokens)
698
- # in the EC2 User Guide.
906
+ # A unique identifier for the request. This token is auto-generated when
907
+ # using the Amazon Translate SDK.
699
908
  #
700
909
  # **A suitable default value is auto-generated.** You should normally
701
910
  # not need to pass this option.**
@@ -720,6 +929,7 @@ module Aws::Translate
720
929
  # source_language_code: "LanguageCodeString", # required
721
930
  # target_language_codes: ["LanguageCodeString"], # required
722
931
  # terminology_names: ["ResourceName"],
932
+ # parallel_data_names: ["ResourceName"],
723
933
  # client_token: "ClientTokenString", # required
724
934
  # })
725
935
  #
@@ -845,6 +1055,61 @@ module Aws::Translate
845
1055
  req.send_request(options)
846
1056
  end
847
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
+
848
1113
  # @!endgroup
849
1114
 
850
1115
  # @param params ({})
@@ -858,7 +1123,7 @@ module Aws::Translate
858
1123
  params: params,
859
1124
  config: config)
860
1125
  context[:gem_name] = 'aws-sdk-translate'
861
- context[:gem_version] = '1.25.0'
1126
+ context[:gem_version] = '1.30.0'
862
1127
  Seahorse::Client::Request.new(handlers, context)
863
1128
  end
864
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"
@@ -302,6 +432,7 @@ module Aws::Translate
302
432
  o.output = Shapes::ShapeRef.new(shape: Shapes::StructureShape.new(struct_class: Aws::EmptyStructure))
303
433
  o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
304
434
  o.errors << Shapes::ShapeRef.new(shape: TooManyRequestsException)
435
+ o.errors << Shapes::ShapeRef.new(shape: InvalidParameterValueException)
305
436
  o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
306
437
  end)
307
438
 
@@ -316,6 +447,18 @@ module Aws::Translate
316
447
  o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
317
448
  end)
318
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
+
319
462
  api.add_operation(:get_terminology, Seahorse::Model::Operation.new.tap do |o|
320
463
  o.name = "GetTerminology"
321
464
  o.http_method = "POST"
@@ -340,6 +483,23 @@ module Aws::Translate
340
483
  o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
341
484
  end)
342
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
+
343
503
  api.add_operation(:list_terminologies, Seahorse::Model::Operation.new.tap do |o|
344
504
  o.name = "ListTerminologies"
345
505
  o.http_method = "POST"
@@ -414,6 +574,22 @@ module Aws::Translate
414
574
  o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
415
575
  o.errors << Shapes::ShapeRef.new(shape: ServiceUnavailableException)
416
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)
417
593
  end
418
594
 
419
595
  end