aws-sdk-translate 1.44.0 → 1.46.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +10 -0
- data/VERSION +1 -1
- data/lib/aws-sdk-translate/client.rb +164 -18
- data/lib/aws-sdk-translate/client_api.rb +130 -0
- data/lib/aws-sdk-translate/errors.rb +42 -0
- data/lib/aws-sdk-translate/types.rb +317 -35
- data/lib/aws-sdk-translate.rb +1 -1
- 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: 1f9fe94a729557cfbef30414d5036466140765718fc320f3e30b8de91d84da44
|
4
|
+
data.tar.gz: a3e05811ad85d29b995f981dedaec228656e88b8d10b12977a0726813f1114ae
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2718e2c6462ec8454fb050184488736de5b4269377c8c93fd05b4186f51c984dc66f222d35c1e16fff35ba5a37a478d7268b9cda47a2c518ed68d37f141e6e72
|
7
|
+
data.tar.gz: e97b7052e461d0daef398065bc6362acbe5f1012b47ae54818a5c8bf873bb0efdeb2bc21a8c1df22f2c83cc95f7f45423e1d391583efd87bb38434b01c6fd8fc
|
data/CHANGELOG.md
CHANGED
@@ -1,6 +1,16 @@
|
|
1
1
|
Unreleased Changes
|
2
2
|
------------------
|
3
3
|
|
4
|
+
1.46.0 (2022-09-29)
|
5
|
+
------------------
|
6
|
+
|
7
|
+
* Feature - This release enables customers to access control rights on Translate resources like Parallel Data and Custom Terminology using Tag Based Authorization.
|
8
|
+
|
9
|
+
1.45.0 (2022-06-29)
|
10
|
+
------------------
|
11
|
+
|
12
|
+
* Feature - Added ListLanguages API which can be used to list the languages supported by Translate.
|
13
|
+
|
4
14
|
1.44.0 (2022-02-24)
|
5
15
|
------------------
|
6
16
|
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.
|
1
|
+
1.46.0
|
@@ -388,6 +388,8 @@ module Aws::Translate
|
|
388
388
|
# **A suitable default value is auto-generated.** You should normally
|
389
389
|
# not need to pass this option.**
|
390
390
|
#
|
391
|
+
# @option params [Array<Types::Tag>] :tags
|
392
|
+
#
|
391
393
|
# @return [Types::CreateParallelDataResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
392
394
|
#
|
393
395
|
# * {Types::CreateParallelDataResponse#name #name} => String
|
@@ -407,6 +409,12 @@ module Aws::Translate
|
|
407
409
|
# id: "EncryptionKeyID", # required
|
408
410
|
# },
|
409
411
|
# client_token: "ClientTokenString", # required
|
412
|
+
# tags: [
|
413
|
+
# {
|
414
|
+
# key: "TagKey", # required
|
415
|
+
# value: "TagValue", # required
|
416
|
+
# },
|
417
|
+
# ],
|
410
418
|
# })
|
411
419
|
#
|
412
420
|
# @example Response structure
|
@@ -595,12 +603,12 @@ module Aws::Translate
|
|
595
603
|
# The data format of the custom terminology being retrieved.
|
596
604
|
#
|
597
605
|
# If you don't specify this parameter, Amazon Translate returns a file
|
598
|
-
#
|
606
|
+
# with the same format as the file that was imported to create the
|
599
607
|
# terminology.
|
600
608
|
#
|
601
609
|
# If you specify this parameter when you retrieve a multi-directional
|
602
|
-
# terminology resource, you must specify the same format as
|
603
|
-
#
|
610
|
+
# terminology resource, you must specify the same format as the input
|
611
|
+
# file that was imported to create it. Otherwise, Amazon Translate
|
604
612
|
# throws an error.
|
605
613
|
#
|
606
614
|
# @return [Types::GetTerminologyResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
@@ -648,17 +656,16 @@ module Aws::Translate
|
|
648
656
|
req.send_request(options)
|
649
657
|
end
|
650
658
|
|
651
|
-
# Creates or updates a custom terminology, depending on whether
|
652
|
-
#
|
653
|
-
#
|
654
|
-
#
|
655
|
-
#
|
656
|
-
#
|
659
|
+
# Creates or updates a custom terminology, depending on whether one
|
660
|
+
# already exists for the given terminology name. Importing a terminology
|
661
|
+
# with the same name as an existing one will merge the terminologies
|
662
|
+
# based on the chosen merge strategy. The only supported merge strategy
|
663
|
+
# is OVERWRITE, where the imported terminology overwrites the existing
|
664
|
+
# terminology of the same name.
|
657
665
|
#
|
658
666
|
# If you import a terminology that overwrites an existing one, the new
|
659
|
-
# terminology
|
660
|
-
#
|
661
|
-
# service that performs the translations.
|
667
|
+
# terminology takes up to 10 minutes to fully propagate. After that,
|
668
|
+
# translations have access to the new terminology.
|
662
669
|
#
|
663
670
|
# @option params [required, String] :name
|
664
671
|
# The name of the custom terminology being imported.
|
@@ -678,6 +685,8 @@ module Aws::Translate
|
|
678
685
|
# @option params [Types::EncryptionKey] :encryption_key
|
679
686
|
# The encryption key for the custom terminology being imported.
|
680
687
|
#
|
688
|
+
# @option params [Array<Types::Tag>] :tags
|
689
|
+
#
|
681
690
|
# @return [Types::ImportTerminologyResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
682
691
|
#
|
683
692
|
# * {Types::ImportTerminologyResponse#terminology_properties #terminology_properties} => Types::TerminologyProperties
|
@@ -698,6 +707,12 @@ module Aws::Translate
|
|
698
707
|
# type: "KMS", # required, accepts KMS
|
699
708
|
# id: "EncryptionKeyID", # required
|
700
709
|
# },
|
710
|
+
# tags: [
|
711
|
+
# {
|
712
|
+
# key: "TagKey", # required
|
713
|
+
# value: "TagValue", # required
|
714
|
+
# },
|
715
|
+
# ],
|
701
716
|
# })
|
702
717
|
#
|
703
718
|
# @example Response structure
|
@@ -730,6 +745,53 @@ module Aws::Translate
|
|
730
745
|
req.send_request(options)
|
731
746
|
end
|
732
747
|
|
748
|
+
# Provides a list of languages (RFC-5646 codes and names) that Amazon
|
749
|
+
# Translate supports.
|
750
|
+
#
|
751
|
+
# @option params [String] :display_language_code
|
752
|
+
# The language code for the language to use to display the language
|
753
|
+
# names in the response. The language code is `en` by default.
|
754
|
+
#
|
755
|
+
# @option params [String] :next_token
|
756
|
+
# Include the NextToken value to fetch the next group of supported
|
757
|
+
# languages.
|
758
|
+
#
|
759
|
+
# @option params [Integer] :max_results
|
760
|
+
# The maximum number of results to return in each response.
|
761
|
+
#
|
762
|
+
# @return [Types::ListLanguagesResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
763
|
+
#
|
764
|
+
# * {Types::ListLanguagesResponse#languages #languages} => Array<Types::Language>
|
765
|
+
# * {Types::ListLanguagesResponse#display_language_code #display_language_code} => String
|
766
|
+
# * {Types::ListLanguagesResponse#next_token #next_token} => String
|
767
|
+
#
|
768
|
+
# The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
|
769
|
+
#
|
770
|
+
# @example Request syntax with placeholder values
|
771
|
+
#
|
772
|
+
# resp = client.list_languages({
|
773
|
+
# display_language_code: "de", # accepts de, en, es, fr, it, ja, ko, pt, zh, zh-TW
|
774
|
+
# next_token: "NextToken",
|
775
|
+
# max_results: 1,
|
776
|
+
# })
|
777
|
+
#
|
778
|
+
# @example Response structure
|
779
|
+
#
|
780
|
+
# resp.languages #=> Array
|
781
|
+
# resp.languages[0].language_name #=> String
|
782
|
+
# resp.languages[0].language_code #=> String
|
783
|
+
# resp.display_language_code #=> String, one of "de", "en", "es", "fr", "it", "ja", "ko", "pt", "zh", "zh-TW"
|
784
|
+
# resp.next_token #=> String
|
785
|
+
#
|
786
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/translate-2017-07-01/ListLanguages AWS API Documentation
|
787
|
+
#
|
788
|
+
# @overload list_languages(params = {})
|
789
|
+
# @param [Hash] params ({})
|
790
|
+
def list_languages(params = {}, options = {})
|
791
|
+
req = build_request(:list_languages, params)
|
792
|
+
req.send_request(options)
|
793
|
+
end
|
794
|
+
|
733
795
|
# Provides a list of your parallel data resources in Amazon Translate.
|
734
796
|
#
|
735
797
|
# @option params [String] :next_token
|
@@ -788,6 +850,33 @@ module Aws::Translate
|
|
788
850
|
req.send_request(options)
|
789
851
|
end
|
790
852
|
|
853
|
+
# @option params [required, String] :resource_arn
|
854
|
+
#
|
855
|
+
# @return [Types::ListTagsForResourceResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
856
|
+
#
|
857
|
+
# * {Types::ListTagsForResourceResponse#tags #tags} => Array<Types::Tag>
|
858
|
+
#
|
859
|
+
# @example Request syntax with placeholder values
|
860
|
+
#
|
861
|
+
# resp = client.list_tags_for_resource({
|
862
|
+
# resource_arn: "ResourceArn", # required
|
863
|
+
# })
|
864
|
+
#
|
865
|
+
# @example Response structure
|
866
|
+
#
|
867
|
+
# resp.tags #=> Array
|
868
|
+
# resp.tags[0].key #=> String
|
869
|
+
# resp.tags[0].value #=> String
|
870
|
+
#
|
871
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/translate-2017-07-01/ListTagsForResource AWS API Documentation
|
872
|
+
#
|
873
|
+
# @overload list_tags_for_resource(params = {})
|
874
|
+
# @param [Hash] params ({})
|
875
|
+
def list_tags_for_resource(params = {}, options = {})
|
876
|
+
req = build_request(:list_tags_for_resource, params)
|
877
|
+
req.send_request(options)
|
878
|
+
end
|
879
|
+
|
791
880
|
# Provides a list of custom terminologies associated with your account.
|
792
881
|
#
|
793
882
|
# @option params [String] :next_token
|
@@ -931,7 +1020,7 @@ module Aws::Translate
|
|
931
1020
|
# The name of the batch translation job to be performed.
|
932
1021
|
#
|
933
1022
|
# @option params [required, Types::InputDataConfig] :input_data_config
|
934
|
-
# Specifies the format and
|
1023
|
+
# Specifies the format and location of the input documents for the
|
935
1024
|
# translation job.
|
936
1025
|
#
|
937
1026
|
# @option params [required, Types::OutputDataConfig] :output_data_config
|
@@ -988,15 +1077,16 @@ module Aws::Translate
|
|
988
1077
|
# [1]: http://aws.amazon.com/translate/pricing/
|
989
1078
|
#
|
990
1079
|
# @option params [required, String] :client_token
|
991
|
-
# A unique identifier for the request. This token is
|
992
|
-
# using the Amazon Translate SDK.
|
1080
|
+
# A unique identifier for the request. This token is generated for you
|
1081
|
+
# when using the Amazon Translate SDK.
|
993
1082
|
#
|
994
1083
|
# **A suitable default value is auto-generated.** You should normally
|
995
1084
|
# not need to pass this option.**
|
996
1085
|
#
|
997
1086
|
# @option params [Types::TranslationSettings] :settings
|
998
1087
|
# Settings to configure your translation output, including the option to
|
999
|
-
# mask profane words and phrases.
|
1088
|
+
# mask profane words and phrases. `StartTextTranslationJob` does not
|
1089
|
+
# support the formality setting.
|
1000
1090
|
#
|
1001
1091
|
# @return [Types::StartTextTranslationJobResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
1002
1092
|
#
|
@@ -1084,6 +1174,33 @@ module Aws::Translate
|
|
1084
1174
|
req.send_request(options)
|
1085
1175
|
end
|
1086
1176
|
|
1177
|
+
# @option params [required, String] :resource_arn
|
1178
|
+
#
|
1179
|
+
# @option params [required, Array<Types::Tag>] :tags
|
1180
|
+
#
|
1181
|
+
# @return [Struct] Returns an empty {Seahorse::Client::Response response}.
|
1182
|
+
#
|
1183
|
+
# @example Request syntax with placeholder values
|
1184
|
+
#
|
1185
|
+
# resp = client.tag_resource({
|
1186
|
+
# resource_arn: "ResourceArn", # required
|
1187
|
+
# tags: [ # required
|
1188
|
+
# {
|
1189
|
+
# key: "TagKey", # required
|
1190
|
+
# value: "TagValue", # required
|
1191
|
+
# },
|
1192
|
+
# ],
|
1193
|
+
# })
|
1194
|
+
#
|
1195
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/translate-2017-07-01/TagResource AWS API Documentation
|
1196
|
+
#
|
1197
|
+
# @overload tag_resource(params = {})
|
1198
|
+
# @param [Hash] params ({})
|
1199
|
+
def tag_resource(params = {}, options = {})
|
1200
|
+
req = build_request(:tag_resource, params)
|
1201
|
+
req.send_request(options)
|
1202
|
+
end
|
1203
|
+
|
1087
1204
|
# Translates input text from the source language to the target language.
|
1088
1205
|
# For a list of available languages and language codes, see
|
1089
1206
|
# what-is-languages.
|
@@ -1108,6 +1225,12 @@ module Aws::Translate
|
|
1108
1225
|
# specify `auto`, Amazon Translate will call [Amazon Comprehend][1] to
|
1109
1226
|
# determine the source language.
|
1110
1227
|
#
|
1228
|
+
# <note markdown="1"> If you specify `auto`, you must send the `TranslateText` request in a
|
1229
|
+
# region that supports Amazon Comprehend. Otherwise, the request returns
|
1230
|
+
# an error indicating that autodetect is not supported.
|
1231
|
+
#
|
1232
|
+
# </note>
|
1233
|
+
#
|
1111
1234
|
#
|
1112
1235
|
#
|
1113
1236
|
# [1]: https://docs.aws.amazon.com/comprehend/latest/dg/comprehend-general.html
|
@@ -1118,7 +1241,8 @@ module Aws::Translate
|
|
1118
1241
|
#
|
1119
1242
|
# @option params [Types::TranslationSettings] :settings
|
1120
1243
|
# Settings to configure your translation output, including the option to
|
1121
|
-
#
|
1244
|
+
# set the formality level of the output text and the option to mask
|
1245
|
+
# profane words and phrases.
|
1122
1246
|
#
|
1123
1247
|
# @return [Types::TranslateTextResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
1124
1248
|
#
|
@@ -1163,6 +1287,28 @@ module Aws::Translate
|
|
1163
1287
|
req.send_request(options)
|
1164
1288
|
end
|
1165
1289
|
|
1290
|
+
# @option params [required, String] :resource_arn
|
1291
|
+
#
|
1292
|
+
# @option params [required, Array<String>] :tag_keys
|
1293
|
+
#
|
1294
|
+
# @return [Struct] Returns an empty {Seahorse::Client::Response response}.
|
1295
|
+
#
|
1296
|
+
# @example Request syntax with placeholder values
|
1297
|
+
#
|
1298
|
+
# resp = client.untag_resource({
|
1299
|
+
# resource_arn: "ResourceArn", # required
|
1300
|
+
# tag_keys: ["TagKey"], # required
|
1301
|
+
# })
|
1302
|
+
#
|
1303
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/translate-2017-07-01/UntagResource AWS API Documentation
|
1304
|
+
#
|
1305
|
+
# @overload untag_resource(params = {})
|
1306
|
+
# @param [Hash] params ({})
|
1307
|
+
def untag_resource(params = {}, options = {})
|
1308
|
+
req = build_request(:untag_resource, params)
|
1309
|
+
req.send_request(options)
|
1310
|
+
end
|
1311
|
+
|
1166
1312
|
# Updates a previously created parallel data resource by importing a new
|
1167
1313
|
# input file from Amazon S3.
|
1168
1314
|
#
|
@@ -1231,7 +1377,7 @@ module Aws::Translate
|
|
1231
1377
|
params: params,
|
1232
1378
|
config: config)
|
1233
1379
|
context[:gem_name] = 'aws-sdk-translate'
|
1234
|
-
context[:gem_version] = '1.
|
1380
|
+
context[:gem_version] = '1.46.0'
|
1235
1381
|
Seahorse::Client::Request.new(handlers, context)
|
1236
1382
|
end
|
1237
1383
|
|
@@ -30,6 +30,7 @@ module Aws::Translate
|
|
30
30
|
Description = Shapes::StringShape.new(name: 'Description')
|
31
31
|
DetectedLanguageLowConfidenceException = Shapes::StructureShape.new(name: 'DetectedLanguageLowConfidenceException')
|
32
32
|
Directionality = Shapes::StringShape.new(name: 'Directionality')
|
33
|
+
DisplayLanguageCode = Shapes::StringShape.new(name: 'DisplayLanguageCode')
|
33
34
|
EncryptionKey = Shapes::StructureShape.new(name: 'EncryptionKey')
|
34
35
|
EncryptionKeyID = Shapes::StringShape.new(name: 'EncryptionKeyID')
|
35
36
|
EncryptionKeyType = Shapes::StringShape.new(name: 'EncryptionKeyType')
|
@@ -51,15 +52,22 @@ module Aws::Translate
|
|
51
52
|
JobId = Shapes::StringShape.new(name: 'JobId')
|
52
53
|
JobName = Shapes::StringShape.new(name: 'JobName')
|
53
54
|
JobStatus = Shapes::StringShape.new(name: 'JobStatus')
|
55
|
+
Language = Shapes::StructureShape.new(name: 'Language')
|
54
56
|
LanguageCodeString = Shapes::StringShape.new(name: 'LanguageCodeString')
|
55
57
|
LanguageCodeStringList = Shapes::ListShape.new(name: 'LanguageCodeStringList')
|
58
|
+
LanguagesList = Shapes::ListShape.new(name: 'LanguagesList')
|
56
59
|
LimitExceededException = Shapes::StructureShape.new(name: 'LimitExceededException')
|
60
|
+
ListLanguagesRequest = Shapes::StructureShape.new(name: 'ListLanguagesRequest')
|
61
|
+
ListLanguagesResponse = Shapes::StructureShape.new(name: 'ListLanguagesResponse')
|
57
62
|
ListParallelDataRequest = Shapes::StructureShape.new(name: 'ListParallelDataRequest')
|
58
63
|
ListParallelDataResponse = Shapes::StructureShape.new(name: 'ListParallelDataResponse')
|
64
|
+
ListTagsForResourceRequest = Shapes::StructureShape.new(name: 'ListTagsForResourceRequest')
|
65
|
+
ListTagsForResourceResponse = Shapes::StructureShape.new(name: 'ListTagsForResourceResponse')
|
59
66
|
ListTerminologiesRequest = Shapes::StructureShape.new(name: 'ListTerminologiesRequest')
|
60
67
|
ListTerminologiesResponse = Shapes::StructureShape.new(name: 'ListTerminologiesResponse')
|
61
68
|
ListTextTranslationJobsRequest = Shapes::StructureShape.new(name: 'ListTextTranslationJobsRequest')
|
62
69
|
ListTextTranslationJobsResponse = Shapes::StructureShape.new(name: 'ListTextTranslationJobsResponse')
|
70
|
+
LocalizedNameString = Shapes::StringShape.new(name: 'LocalizedNameString')
|
63
71
|
Long = Shapes::IntegerShape.new(name: 'Long')
|
64
72
|
MaxResultsInteger = Shapes::IntegerShape.new(name: 'MaxResultsInteger')
|
65
73
|
MergeStrategy = Shapes::StringShape.new(name: 'MergeStrategy')
|
@@ -73,6 +81,7 @@ module Aws::Translate
|
|
73
81
|
ParallelDataPropertiesList = Shapes::ListShape.new(name: 'ParallelDataPropertiesList')
|
74
82
|
ParallelDataStatus = Shapes::StringShape.new(name: 'ParallelDataStatus')
|
75
83
|
Profanity = Shapes::StringShape.new(name: 'Profanity')
|
84
|
+
ResourceArn = Shapes::StringShape.new(name: 'ResourceArn')
|
76
85
|
ResourceName = Shapes::StringShape.new(name: 'ResourceName')
|
77
86
|
ResourceNameList = Shapes::ListShape.new(name: 'ResourceNameList')
|
78
87
|
ResourceNotFoundException = Shapes::StructureShape.new(name: 'ResourceNotFoundException')
|
@@ -83,6 +92,13 @@ module Aws::Translate
|
|
83
92
|
StopTextTranslationJobRequest = Shapes::StructureShape.new(name: 'StopTextTranslationJobRequest')
|
84
93
|
StopTextTranslationJobResponse = Shapes::StructureShape.new(name: 'StopTextTranslationJobResponse')
|
85
94
|
String = Shapes::StringShape.new(name: 'String')
|
95
|
+
Tag = Shapes::StructureShape.new(name: 'Tag')
|
96
|
+
TagKey = Shapes::StringShape.new(name: 'TagKey')
|
97
|
+
TagKeyList = Shapes::ListShape.new(name: 'TagKeyList')
|
98
|
+
TagList = Shapes::ListShape.new(name: 'TagList')
|
99
|
+
TagResourceRequest = Shapes::StructureShape.new(name: 'TagResourceRequest')
|
100
|
+
TagResourceResponse = Shapes::StructureShape.new(name: 'TagResourceResponse')
|
101
|
+
TagValue = Shapes::StringShape.new(name: 'TagValue')
|
86
102
|
TargetLanguageCodeStringList = Shapes::ListShape.new(name: 'TargetLanguageCodeStringList')
|
87
103
|
Term = Shapes::StructureShape.new(name: 'Term')
|
88
104
|
TermList = Shapes::ListShape.new(name: 'TermList')
|
@@ -99,11 +115,15 @@ module Aws::Translate
|
|
99
115
|
TextTranslationJobPropertiesList = Shapes::ListShape.new(name: 'TextTranslationJobPropertiesList')
|
100
116
|
Timestamp = Shapes::TimestampShape.new(name: 'Timestamp')
|
101
117
|
TooManyRequestsException = Shapes::StructureShape.new(name: 'TooManyRequestsException')
|
118
|
+
TooManyTagsException = Shapes::StructureShape.new(name: 'TooManyTagsException')
|
102
119
|
TranslateTextRequest = Shapes::StructureShape.new(name: 'TranslateTextRequest')
|
103
120
|
TranslateTextResponse = Shapes::StructureShape.new(name: 'TranslateTextResponse')
|
104
121
|
TranslationSettings = Shapes::StructureShape.new(name: 'TranslationSettings')
|
105
122
|
UnboundedLengthString = Shapes::StringShape.new(name: 'UnboundedLengthString')
|
123
|
+
UnsupportedDisplayLanguageCodeException = Shapes::StructureShape.new(name: 'UnsupportedDisplayLanguageCodeException')
|
106
124
|
UnsupportedLanguagePairException = Shapes::StructureShape.new(name: 'UnsupportedLanguagePairException')
|
125
|
+
UntagResourceRequest = Shapes::StructureShape.new(name: 'UntagResourceRequest')
|
126
|
+
UntagResourceResponse = Shapes::StructureShape.new(name: 'UntagResourceResponse')
|
107
127
|
UpdateParallelDataRequest = Shapes::StructureShape.new(name: 'UpdateParallelDataRequest')
|
108
128
|
UpdateParallelDataResponse = Shapes::StructureShape.new(name: 'UpdateParallelDataResponse')
|
109
129
|
|
@@ -124,6 +144,7 @@ module Aws::Translate
|
|
124
144
|
CreateParallelDataRequest.add_member(:parallel_data_config, Shapes::ShapeRef.new(shape: ParallelDataConfig, required: true, location_name: "ParallelDataConfig"))
|
125
145
|
CreateParallelDataRequest.add_member(:encryption_key, Shapes::ShapeRef.new(shape: EncryptionKey, location_name: "EncryptionKey"))
|
126
146
|
CreateParallelDataRequest.add_member(:client_token, Shapes::ShapeRef.new(shape: ClientTokenString, required: true, location_name: "ClientToken", metadata: {"idempotencyToken"=>true}))
|
147
|
+
CreateParallelDataRequest.add_member(:tags, Shapes::ShapeRef.new(shape: TagList, location_name: "Tags"))
|
127
148
|
CreateParallelDataRequest.struct_class = Types::CreateParallelDataRequest
|
128
149
|
|
129
150
|
CreateParallelDataResponse.add_member(:name, Shapes::ShapeRef.new(shape: ResourceName, location_name: "Name"))
|
@@ -177,6 +198,7 @@ module Aws::Translate
|
|
177
198
|
ImportTerminologyRequest.add_member(:description, Shapes::ShapeRef.new(shape: Description, location_name: "Description"))
|
178
199
|
ImportTerminologyRequest.add_member(:terminology_data, Shapes::ShapeRef.new(shape: TerminologyData, required: true, location_name: "TerminologyData"))
|
179
200
|
ImportTerminologyRequest.add_member(:encryption_key, Shapes::ShapeRef.new(shape: EncryptionKey, location_name: "EncryptionKey"))
|
201
|
+
ImportTerminologyRequest.add_member(:tags, Shapes::ShapeRef.new(shape: TagList, location_name: "Tags"))
|
180
202
|
ImportTerminologyRequest.struct_class = Types::ImportTerminologyRequest
|
181
203
|
|
182
204
|
ImportTerminologyResponse.add_member(:terminology_properties, Shapes::ShapeRef.new(shape: TerminologyProperties, location_name: "TerminologyProperties"))
|
@@ -204,11 +226,27 @@ module Aws::Translate
|
|
204
226
|
JobDetails.add_member(:input_documents_count, Shapes::ShapeRef.new(shape: Integer, location_name: "InputDocumentsCount"))
|
205
227
|
JobDetails.struct_class = Types::JobDetails
|
206
228
|
|
229
|
+
Language.add_member(:language_name, Shapes::ShapeRef.new(shape: LocalizedNameString, required: true, location_name: "LanguageName"))
|
230
|
+
Language.add_member(:language_code, Shapes::ShapeRef.new(shape: LanguageCodeString, required: true, location_name: "LanguageCode"))
|
231
|
+
Language.struct_class = Types::Language
|
232
|
+
|
207
233
|
LanguageCodeStringList.member = Shapes::ShapeRef.new(shape: LanguageCodeString)
|
208
234
|
|
235
|
+
LanguagesList.member = Shapes::ShapeRef.new(shape: Language)
|
236
|
+
|
209
237
|
LimitExceededException.add_member(:message, Shapes::ShapeRef.new(shape: String, location_name: "Message"))
|
210
238
|
LimitExceededException.struct_class = Types::LimitExceededException
|
211
239
|
|
240
|
+
ListLanguagesRequest.add_member(:display_language_code, Shapes::ShapeRef.new(shape: DisplayLanguageCode, location_name: "DisplayLanguageCode"))
|
241
|
+
ListLanguagesRequest.add_member(:next_token, Shapes::ShapeRef.new(shape: NextToken, location_name: "NextToken"))
|
242
|
+
ListLanguagesRequest.add_member(:max_results, Shapes::ShapeRef.new(shape: MaxResultsInteger, location_name: "MaxResults"))
|
243
|
+
ListLanguagesRequest.struct_class = Types::ListLanguagesRequest
|
244
|
+
|
245
|
+
ListLanguagesResponse.add_member(:languages, Shapes::ShapeRef.new(shape: LanguagesList, location_name: "Languages"))
|
246
|
+
ListLanguagesResponse.add_member(:display_language_code, Shapes::ShapeRef.new(shape: DisplayLanguageCode, location_name: "DisplayLanguageCode"))
|
247
|
+
ListLanguagesResponse.add_member(:next_token, Shapes::ShapeRef.new(shape: NextToken, location_name: "NextToken"))
|
248
|
+
ListLanguagesResponse.struct_class = Types::ListLanguagesResponse
|
249
|
+
|
212
250
|
ListParallelDataRequest.add_member(:next_token, Shapes::ShapeRef.new(shape: NextToken, location_name: "NextToken"))
|
213
251
|
ListParallelDataRequest.add_member(:max_results, Shapes::ShapeRef.new(shape: MaxResultsInteger, location_name: "MaxResults"))
|
214
252
|
ListParallelDataRequest.struct_class = Types::ListParallelDataRequest
|
@@ -217,6 +255,12 @@ module Aws::Translate
|
|
217
255
|
ListParallelDataResponse.add_member(:next_token, Shapes::ShapeRef.new(shape: NextToken, location_name: "NextToken"))
|
218
256
|
ListParallelDataResponse.struct_class = Types::ListParallelDataResponse
|
219
257
|
|
258
|
+
ListTagsForResourceRequest.add_member(:resource_arn, Shapes::ShapeRef.new(shape: ResourceArn, required: true, location_name: "ResourceArn"))
|
259
|
+
ListTagsForResourceRequest.struct_class = Types::ListTagsForResourceRequest
|
260
|
+
|
261
|
+
ListTagsForResourceResponse.add_member(:tags, Shapes::ShapeRef.new(shape: TagList, location_name: "Tags"))
|
262
|
+
ListTagsForResourceResponse.struct_class = Types::ListTagsForResourceResponse
|
263
|
+
|
220
264
|
ListTerminologiesRequest.add_member(:next_token, Shapes::ShapeRef.new(shape: NextToken, location_name: "NextToken"))
|
221
265
|
ListTerminologiesRequest.add_member(:max_results, Shapes::ShapeRef.new(shape: MaxResultsInteger, location_name: "MaxResults"))
|
222
266
|
ListTerminologiesRequest.struct_class = Types::ListTerminologiesRequest
|
@@ -298,6 +342,20 @@ module Aws::Translate
|
|
298
342
|
StopTextTranslationJobResponse.add_member(:job_status, Shapes::ShapeRef.new(shape: JobStatus, location_name: "JobStatus"))
|
299
343
|
StopTextTranslationJobResponse.struct_class = Types::StopTextTranslationJobResponse
|
300
344
|
|
345
|
+
Tag.add_member(:key, Shapes::ShapeRef.new(shape: TagKey, required: true, location_name: "Key"))
|
346
|
+
Tag.add_member(:value, Shapes::ShapeRef.new(shape: TagValue, required: true, location_name: "Value"))
|
347
|
+
Tag.struct_class = Types::Tag
|
348
|
+
|
349
|
+
TagKeyList.member = Shapes::ShapeRef.new(shape: TagKey)
|
350
|
+
|
351
|
+
TagList.member = Shapes::ShapeRef.new(shape: Tag)
|
352
|
+
|
353
|
+
TagResourceRequest.add_member(:resource_arn, Shapes::ShapeRef.new(shape: ResourceArn, required: true, location_name: "ResourceArn"))
|
354
|
+
TagResourceRequest.add_member(:tags, Shapes::ShapeRef.new(shape: TagList, required: true, location_name: "Tags"))
|
355
|
+
TagResourceRequest.struct_class = Types::TagResourceRequest
|
356
|
+
|
357
|
+
TagResourceResponse.struct_class = Types::TagResourceResponse
|
358
|
+
|
301
359
|
TargetLanguageCodeStringList.member = Shapes::ShapeRef.new(shape: LanguageCodeString)
|
302
360
|
|
303
361
|
Term.add_member(:source_text, Shapes::ShapeRef.new(shape: String, location_name: "SourceText"))
|
@@ -364,6 +422,10 @@ module Aws::Translate
|
|
364
422
|
TooManyRequestsException.add_member(:message, Shapes::ShapeRef.new(shape: String, location_name: "Message"))
|
365
423
|
TooManyRequestsException.struct_class = Types::TooManyRequestsException
|
366
424
|
|
425
|
+
TooManyTagsException.add_member(:message, Shapes::ShapeRef.new(shape: String, location_name: "message"))
|
426
|
+
TooManyTagsException.add_member(:resource_arn, Shapes::ShapeRef.new(shape: ResourceArn, location_name: "ResourceArn"))
|
427
|
+
TooManyTagsException.struct_class = Types::TooManyTagsException
|
428
|
+
|
367
429
|
TranslateTextRequest.add_member(:text, Shapes::ShapeRef.new(shape: BoundedLengthString, required: true, location_name: "Text"))
|
368
430
|
TranslateTextRequest.add_member(:terminology_names, Shapes::ShapeRef.new(shape: ResourceNameList, location_name: "TerminologyNames"))
|
369
431
|
TranslateTextRequest.add_member(:source_language_code, Shapes::ShapeRef.new(shape: LanguageCodeString, required: true, location_name: "SourceLanguageCode"))
|
@@ -382,11 +444,21 @@ module Aws::Translate
|
|
382
444
|
TranslationSettings.add_member(:profanity, Shapes::ShapeRef.new(shape: Profanity, location_name: "Profanity"))
|
383
445
|
TranslationSettings.struct_class = Types::TranslationSettings
|
384
446
|
|
447
|
+
UnsupportedDisplayLanguageCodeException.add_member(:message, Shapes::ShapeRef.new(shape: String, location_name: "Message"))
|
448
|
+
UnsupportedDisplayLanguageCodeException.add_member(:display_language_code, Shapes::ShapeRef.new(shape: LanguageCodeString, location_name: "DisplayLanguageCode"))
|
449
|
+
UnsupportedDisplayLanguageCodeException.struct_class = Types::UnsupportedDisplayLanguageCodeException
|
450
|
+
|
385
451
|
UnsupportedLanguagePairException.add_member(:message, Shapes::ShapeRef.new(shape: String, location_name: "Message"))
|
386
452
|
UnsupportedLanguagePairException.add_member(:source_language_code, Shapes::ShapeRef.new(shape: LanguageCodeString, location_name: "SourceLanguageCode"))
|
387
453
|
UnsupportedLanguagePairException.add_member(:target_language_code, Shapes::ShapeRef.new(shape: LanguageCodeString, location_name: "TargetLanguageCode"))
|
388
454
|
UnsupportedLanguagePairException.struct_class = Types::UnsupportedLanguagePairException
|
389
455
|
|
456
|
+
UntagResourceRequest.add_member(:resource_arn, Shapes::ShapeRef.new(shape: ResourceArn, required: true, location_name: "ResourceArn"))
|
457
|
+
UntagResourceRequest.add_member(:tag_keys, Shapes::ShapeRef.new(shape: TagKeyList, required: true, location_name: "TagKeys"))
|
458
|
+
UntagResourceRequest.struct_class = Types::UntagResourceRequest
|
459
|
+
|
460
|
+
UntagResourceResponse.struct_class = Types::UntagResourceResponse
|
461
|
+
|
390
462
|
UpdateParallelDataRequest.add_member(:name, Shapes::ShapeRef.new(shape: ResourceName, required: true, location_name: "Name"))
|
391
463
|
UpdateParallelDataRequest.add_member(:description, Shapes::ShapeRef.new(shape: Description, location_name: "Description"))
|
392
464
|
UpdateParallelDataRequest.add_member(:parallel_data_config, Shapes::ShapeRef.new(shape: ParallelDataConfig, required: true, location_name: "ParallelDataConfig"))
|
@@ -428,7 +500,9 @@ module Aws::Translate
|
|
428
500
|
o.errors << Shapes::ShapeRef.new(shape: InvalidRequestException)
|
429
501
|
o.errors << Shapes::ShapeRef.new(shape: LimitExceededException)
|
430
502
|
o.errors << Shapes::ShapeRef.new(shape: TooManyRequestsException)
|
503
|
+
o.errors << Shapes::ShapeRef.new(shape: TooManyTagsException)
|
431
504
|
o.errors << Shapes::ShapeRef.new(shape: ConflictException)
|
505
|
+
o.errors << Shapes::ShapeRef.new(shape: ConcurrentModificationException)
|
432
506
|
o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
|
433
507
|
end)
|
434
508
|
|
@@ -500,9 +574,29 @@ module Aws::Translate
|
|
500
574
|
o.errors << Shapes::ShapeRef.new(shape: InvalidParameterValueException)
|
501
575
|
o.errors << Shapes::ShapeRef.new(shape: LimitExceededException)
|
502
576
|
o.errors << Shapes::ShapeRef.new(shape: TooManyRequestsException)
|
577
|
+
o.errors << Shapes::ShapeRef.new(shape: TooManyTagsException)
|
578
|
+
o.errors << Shapes::ShapeRef.new(shape: ConcurrentModificationException)
|
503
579
|
o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
|
504
580
|
end)
|
505
581
|
|
582
|
+
api.add_operation(:list_languages, Seahorse::Model::Operation.new.tap do |o|
|
583
|
+
o.name = "ListLanguages"
|
584
|
+
o.http_method = "POST"
|
585
|
+
o.http_request_uri = "/"
|
586
|
+
o.input = Shapes::ShapeRef.new(shape: ListLanguagesRequest)
|
587
|
+
o.output = Shapes::ShapeRef.new(shape: ListLanguagesResponse)
|
588
|
+
o.errors << Shapes::ShapeRef.new(shape: InvalidParameterValueException)
|
589
|
+
o.errors << Shapes::ShapeRef.new(shape: TooManyRequestsException)
|
590
|
+
o.errors << Shapes::ShapeRef.new(shape: UnsupportedDisplayLanguageCodeException)
|
591
|
+
o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
|
592
|
+
o[:pager] = Aws::Pager.new(
|
593
|
+
limit_key: "max_results",
|
594
|
+
tokens: {
|
595
|
+
"next_token" => "next_token"
|
596
|
+
}
|
597
|
+
)
|
598
|
+
end)
|
599
|
+
|
506
600
|
api.add_operation(:list_parallel_data, Seahorse::Model::Operation.new.tap do |o|
|
507
601
|
o.name = "ListParallelData"
|
508
602
|
o.http_method = "POST"
|
@@ -520,6 +614,17 @@ module Aws::Translate
|
|
520
614
|
)
|
521
615
|
end)
|
522
616
|
|
617
|
+
api.add_operation(:list_tags_for_resource, Seahorse::Model::Operation.new.tap do |o|
|
618
|
+
o.name = "ListTagsForResource"
|
619
|
+
o.http_method = "POST"
|
620
|
+
o.http_request_uri = "/"
|
621
|
+
o.input = Shapes::ShapeRef.new(shape: ListTagsForResourceRequest)
|
622
|
+
o.output = Shapes::ShapeRef.new(shape: ListTagsForResourceResponse)
|
623
|
+
o.errors << Shapes::ShapeRef.new(shape: InvalidParameterValueException)
|
624
|
+
o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
|
625
|
+
o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
|
626
|
+
end)
|
627
|
+
|
523
628
|
api.add_operation(:list_terminologies, Seahorse::Model::Operation.new.tap do |o|
|
524
629
|
o.name = "ListTerminologies"
|
525
630
|
o.http_method = "POST"
|
@@ -580,6 +685,19 @@ module Aws::Translate
|
|
580
685
|
o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
|
581
686
|
end)
|
582
687
|
|
688
|
+
api.add_operation(:tag_resource, Seahorse::Model::Operation.new.tap do |o|
|
689
|
+
o.name = "TagResource"
|
690
|
+
o.http_method = "POST"
|
691
|
+
o.http_request_uri = "/"
|
692
|
+
o.input = Shapes::ShapeRef.new(shape: TagResourceRequest)
|
693
|
+
o.output = Shapes::ShapeRef.new(shape: TagResourceResponse)
|
694
|
+
o.errors << Shapes::ShapeRef.new(shape: InvalidParameterValueException)
|
695
|
+
o.errors << Shapes::ShapeRef.new(shape: ConcurrentModificationException)
|
696
|
+
o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
|
697
|
+
o.errors << Shapes::ShapeRef.new(shape: TooManyTagsException)
|
698
|
+
o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
|
699
|
+
end)
|
700
|
+
|
583
701
|
api.add_operation(:translate_text, Seahorse::Model::Operation.new.tap do |o|
|
584
702
|
o.name = "TranslateText"
|
585
703
|
o.http_method = "POST"
|
@@ -596,6 +714,18 @@ module Aws::Translate
|
|
596
714
|
o.errors << Shapes::ShapeRef.new(shape: ServiceUnavailableException)
|
597
715
|
end)
|
598
716
|
|
717
|
+
api.add_operation(:untag_resource, Seahorse::Model::Operation.new.tap do |o|
|
718
|
+
o.name = "UntagResource"
|
719
|
+
o.http_method = "POST"
|
720
|
+
o.http_request_uri = "/"
|
721
|
+
o.input = Shapes::ShapeRef.new(shape: UntagResourceRequest)
|
722
|
+
o.output = Shapes::ShapeRef.new(shape: UntagResourceResponse)
|
723
|
+
o.errors << Shapes::ShapeRef.new(shape: InvalidParameterValueException)
|
724
|
+
o.errors << Shapes::ShapeRef.new(shape: ConcurrentModificationException)
|
725
|
+
o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
|
726
|
+
o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
|
727
|
+
end)
|
728
|
+
|
599
729
|
api.add_operation(:update_parallel_data, Seahorse::Model::Operation.new.tap do |o|
|
600
730
|
o.name = "UpdateParallelData"
|
601
731
|
o.http_method = "POST"
|
@@ -39,6 +39,8 @@ module Aws::Translate
|
|
39
39
|
# * {ServiceUnavailableException}
|
40
40
|
# * {TextSizeLimitExceededException}
|
41
41
|
# * {TooManyRequestsException}
|
42
|
+
# * {TooManyTagsException}
|
43
|
+
# * {UnsupportedDisplayLanguageCodeException}
|
42
44
|
# * {UnsupportedLanguagePairException}
|
43
45
|
#
|
44
46
|
# Additionally, error classes are dynamically generated for service errors based on the error code
|
@@ -232,6 +234,46 @@ module Aws::Translate
|
|
232
234
|
end
|
233
235
|
end
|
234
236
|
|
237
|
+
class TooManyTagsException < ServiceError
|
238
|
+
|
239
|
+
# @param [Seahorse::Client::RequestContext] context
|
240
|
+
# @param [String] message
|
241
|
+
# @param [Aws::Translate::Types::TooManyTagsException] data
|
242
|
+
def initialize(context, message, data = Aws::EmptyStructure.new)
|
243
|
+
super(context, message, data)
|
244
|
+
end
|
245
|
+
|
246
|
+
# @return [String]
|
247
|
+
def message
|
248
|
+
@message || @data[:message]
|
249
|
+
end
|
250
|
+
|
251
|
+
# @return [String]
|
252
|
+
def resource_arn
|
253
|
+
@data[:resource_arn]
|
254
|
+
end
|
255
|
+
end
|
256
|
+
|
257
|
+
class UnsupportedDisplayLanguageCodeException < ServiceError
|
258
|
+
|
259
|
+
# @param [Seahorse::Client::RequestContext] context
|
260
|
+
# @param [String] message
|
261
|
+
# @param [Aws::Translate::Types::UnsupportedDisplayLanguageCodeException] data
|
262
|
+
def initialize(context, message, data = Aws::EmptyStructure.new)
|
263
|
+
super(context, message, data)
|
264
|
+
end
|
265
|
+
|
266
|
+
# @return [String]
|
267
|
+
def message
|
268
|
+
@message || @data[:message]
|
269
|
+
end
|
270
|
+
|
271
|
+
# @return [String]
|
272
|
+
def display_language_code
|
273
|
+
@data[:display_language_code]
|
274
|
+
end
|
275
|
+
end
|
276
|
+
|
235
277
|
class UnsupportedLanguagePairException < ServiceError
|
236
278
|
|
237
279
|
# @param [Seahorse::Client::RequestContext] context
|
@@ -79,6 +79,12 @@ module Aws::Translate
|
|
79
79
|
# id: "EncryptionKeyID", # required
|
80
80
|
# },
|
81
81
|
# client_token: "ClientTokenString", # required
|
82
|
+
# tags: [
|
83
|
+
# {
|
84
|
+
# key: "TagKey", # required
|
85
|
+
# value: "TagValue", # required
|
86
|
+
# },
|
87
|
+
# ],
|
82
88
|
# }
|
83
89
|
#
|
84
90
|
# @!attribute [rw] name
|
@@ -108,6 +114,9 @@ module Aws::Translate
|
|
108
114
|
# not need to pass this option.
|
109
115
|
# @return [String]
|
110
116
|
#
|
117
|
+
# @!attribute [rw] tags
|
118
|
+
# @return [Array<Types::Tag>]
|
119
|
+
#
|
111
120
|
# @see http://docs.aws.amazon.com/goto/WebAPI/translate-2017-07-01/CreateParallelDataRequest AWS API Documentation
|
112
121
|
#
|
113
122
|
class CreateParallelDataRequest < Struct.new(
|
@@ -115,7 +124,8 @@ module Aws::Translate
|
|
115
124
|
:description,
|
116
125
|
:parallel_data_config,
|
117
126
|
:encryption_key,
|
118
|
-
:client_token
|
127
|
+
:client_token,
|
128
|
+
:tags)
|
119
129
|
SENSITIVE = []
|
120
130
|
include Aws::Structure
|
121
131
|
end
|
@@ -311,7 +321,7 @@ module Aws::Translate
|
|
311
321
|
# @!attribute [rw] data_location
|
312
322
|
# The Amazon S3 location of the most recent parallel data input file
|
313
323
|
# that was successfully imported into Amazon Translate. The location
|
314
|
-
# is returned as a presigned URL that has a 30
|
324
|
+
# is returned as a presigned URL that has a 30-minute expiration.
|
315
325
|
#
|
316
326
|
# Amazon Translate doesn't scan all input files for the risk of CSV
|
317
327
|
# injection attacks.
|
@@ -331,7 +341,7 @@ module Aws::Translate
|
|
331
341
|
# warnings that were produced by your input file. This file was
|
332
342
|
# created when Amazon Translate attempted to create a parallel data
|
333
343
|
# resource. The location is returned as a presigned URL to that has a
|
334
|
-
# 30
|
344
|
+
# 30-minute expiration.
|
335
345
|
# @return [Types::ParallelDataDataLocation]
|
336
346
|
#
|
337
347
|
# @!attribute [rw] latest_update_attempt_auxiliary_data_location
|
@@ -339,7 +349,7 @@ module Aws::Translate
|
|
339
349
|
# warnings that were produced by your input file. This file was
|
340
350
|
# created when Amazon Translate attempted to update a parallel data
|
341
351
|
# resource. The location is returned as a presigned URL to that has a
|
342
|
-
# 30
|
352
|
+
# 30-minute expiration.
|
343
353
|
# @return [Types::ParallelDataDataLocation]
|
344
354
|
#
|
345
355
|
# @see http://docs.aws.amazon.com/goto/WebAPI/translate-2017-07-01/GetParallelDataResponse AWS API Documentation
|
@@ -369,13 +379,13 @@ module Aws::Translate
|
|
369
379
|
# The data format of the custom terminology being retrieved.
|
370
380
|
#
|
371
381
|
# If you don't specify this parameter, Amazon Translate returns a
|
372
|
-
# file
|
373
|
-
#
|
382
|
+
# file with the same format as the file that was imported to create
|
383
|
+
# the terminology.
|
374
384
|
#
|
375
385
|
# If you specify this parameter when you retrieve a multi-directional
|
376
|
-
# terminology resource, you must specify the same format as
|
377
|
-
#
|
378
|
-
#
|
386
|
+
# terminology resource, you must specify the same format as the input
|
387
|
+
# file that was imported to create it. Otherwise, Amazon Translate
|
388
|
+
# throws an error.
|
379
389
|
# @return [String]
|
380
390
|
#
|
381
391
|
# @see http://docs.aws.amazon.com/goto/WebAPI/translate-2017-07-01/GetTerminologyRequest AWS API Documentation
|
@@ -394,7 +404,7 @@ module Aws::Translate
|
|
394
404
|
# @!attribute [rw] terminology_data_location
|
395
405
|
# The Amazon S3 location of the most recent custom terminology input
|
396
406
|
# file that was successfully imported into Amazon Translate. The
|
397
|
-
# location is returned as a presigned URL that has a 30
|
407
|
+
# location is returned as a presigned URL that has a 30-minute
|
398
408
|
# expiration.
|
399
409
|
#
|
400
410
|
# Amazon Translate doesn't scan all input files for the risk of CSV
|
@@ -415,7 +425,7 @@ module Aws::Translate
|
|
415
425
|
# warnings that were produced by your input file. This file was
|
416
426
|
# created when Amazon Translate attempted to create a terminology
|
417
427
|
# resource. The location is returned as a presigned URL to that has a
|
418
|
-
# 30
|
428
|
+
# 30-minute expiration.
|
419
429
|
# @return [Types::TerminologyDataLocation]
|
420
430
|
#
|
421
431
|
# @see http://docs.aws.amazon.com/goto/WebAPI/translate-2017-07-01/GetTerminologyResponse AWS API Documentation
|
@@ -444,6 +454,12 @@ module Aws::Translate
|
|
444
454
|
# type: "KMS", # required, accepts KMS
|
445
455
|
# id: "EncryptionKeyID", # required
|
446
456
|
# },
|
457
|
+
# tags: [
|
458
|
+
# {
|
459
|
+
# key: "TagKey", # required
|
460
|
+
# value: "TagValue", # required
|
461
|
+
# },
|
462
|
+
# ],
|
447
463
|
# }
|
448
464
|
#
|
449
465
|
# @!attribute [rw] name
|
@@ -469,6 +485,9 @@ module Aws::Translate
|
|
469
485
|
# The encryption key for the custom terminology being imported.
|
470
486
|
# @return [Types::EncryptionKey]
|
471
487
|
#
|
488
|
+
# @!attribute [rw] tags
|
489
|
+
# @return [Array<Types::Tag>]
|
490
|
+
#
|
472
491
|
# @see http://docs.aws.amazon.com/goto/WebAPI/translate-2017-07-01/ImportTerminologyRequest AWS API Documentation
|
473
492
|
#
|
474
493
|
class ImportTerminologyRequest < Struct.new(
|
@@ -476,7 +495,8 @@ module Aws::Translate
|
|
476
495
|
:merge_strategy,
|
477
496
|
:description,
|
478
497
|
:terminology_data,
|
479
|
-
:encryption_key
|
498
|
+
:encryption_key,
|
499
|
+
:tags)
|
480
500
|
SENSITIVE = []
|
481
501
|
include Aws::Structure
|
482
502
|
end
|
@@ -514,9 +534,18 @@ module Aws::Translate
|
|
514
534
|
# }
|
515
535
|
#
|
516
536
|
# @!attribute [rw] s3_uri
|
517
|
-
# The URI of the AWS S3 folder that contains the input
|
518
|
-
#
|
519
|
-
# calling.
|
537
|
+
# The URI of the AWS S3 folder that contains the input files. Amazon
|
538
|
+
# Translate translates all the files in the folder. The folder must be
|
539
|
+
# in the same Region as the API endpoint you are calling.
|
540
|
+
#
|
541
|
+
# <note markdown="1"> The URI can also point to a single input document, or it can provide
|
542
|
+
# the prefix for a collection of input documents. For example. if you
|
543
|
+
# use the URI `S3://bucketName/prefix` and the prefix is a single
|
544
|
+
# file, Amazon Translate uses that files as input. If more than one
|
545
|
+
# file begins with the prefix, Amazon Translate uses all of them as
|
546
|
+
# input.
|
547
|
+
#
|
548
|
+
# </note>
|
520
549
|
# @return [String]
|
521
550
|
#
|
522
551
|
# @!attribute [rw] content_type
|
@@ -576,8 +605,8 @@ module Aws::Translate
|
|
576
605
|
include Aws::Structure
|
577
606
|
end
|
578
607
|
|
579
|
-
# The filter specified for the operation is
|
580
|
-
# filter.
|
608
|
+
# The filter specified for the operation is not valid. Specify a
|
609
|
+
# different filter.
|
581
610
|
#
|
582
611
|
# @!attribute [rw] message
|
583
612
|
# @return [String]
|
@@ -590,7 +619,7 @@ module Aws::Translate
|
|
590
619
|
include Aws::Structure
|
591
620
|
end
|
592
621
|
|
593
|
-
# The value of the parameter is
|
622
|
+
# The value of the parameter is not valid. Review the value of the
|
594
623
|
# parameter you are using to correct it, and then retry your operation.
|
595
624
|
#
|
596
625
|
# @!attribute [rw] message
|
@@ -604,8 +633,8 @@ module Aws::Translate
|
|
604
633
|
include Aws::Structure
|
605
634
|
end
|
606
635
|
|
607
|
-
# The request that you made is
|
608
|
-
# why it's
|
636
|
+
# The request that you made is not valid. Check your request to
|
637
|
+
# determine why it's not valid and then retry the request.
|
609
638
|
#
|
610
639
|
# @!attribute [rw] message
|
611
640
|
# @return [String]
|
@@ -645,6 +674,25 @@ module Aws::Translate
|
|
645
674
|
include Aws::Structure
|
646
675
|
end
|
647
676
|
|
677
|
+
# A supported language.
|
678
|
+
#
|
679
|
+
# @!attribute [rw] language_name
|
680
|
+
# Language name of the supported language.
|
681
|
+
# @return [String]
|
682
|
+
#
|
683
|
+
# @!attribute [rw] language_code
|
684
|
+
# Language code for the supported language.
|
685
|
+
# @return [String]
|
686
|
+
#
|
687
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/translate-2017-07-01/Language AWS API Documentation
|
688
|
+
#
|
689
|
+
class Language < Struct.new(
|
690
|
+
:language_name,
|
691
|
+
:language_code)
|
692
|
+
SENSITIVE = []
|
693
|
+
include Aws::Structure
|
694
|
+
end
|
695
|
+
|
648
696
|
# The specified limit has been exceeded. Review your request and retry
|
649
697
|
# it with a quantity below the stated limit.
|
650
698
|
#
|
@@ -659,6 +707,63 @@ module Aws::Translate
|
|
659
707
|
include Aws::Structure
|
660
708
|
end
|
661
709
|
|
710
|
+
# @note When making an API call, you may pass ListLanguagesRequest
|
711
|
+
# data as a hash:
|
712
|
+
#
|
713
|
+
# {
|
714
|
+
# display_language_code: "de", # accepts de, en, es, fr, it, ja, ko, pt, zh, zh-TW
|
715
|
+
# next_token: "NextToken",
|
716
|
+
# max_results: 1,
|
717
|
+
# }
|
718
|
+
#
|
719
|
+
# @!attribute [rw] display_language_code
|
720
|
+
# The language code for the language to use to display the language
|
721
|
+
# names in the response. The language code is `en` by default.
|
722
|
+
# @return [String]
|
723
|
+
#
|
724
|
+
# @!attribute [rw] next_token
|
725
|
+
# Include the NextToken value to fetch the next group of supported
|
726
|
+
# languages.
|
727
|
+
# @return [String]
|
728
|
+
#
|
729
|
+
# @!attribute [rw] max_results
|
730
|
+
# The maximum number of results to return in each response.
|
731
|
+
# @return [Integer]
|
732
|
+
#
|
733
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/translate-2017-07-01/ListLanguagesRequest AWS API Documentation
|
734
|
+
#
|
735
|
+
class ListLanguagesRequest < Struct.new(
|
736
|
+
:display_language_code,
|
737
|
+
:next_token,
|
738
|
+
:max_results)
|
739
|
+
SENSITIVE = []
|
740
|
+
include Aws::Structure
|
741
|
+
end
|
742
|
+
|
743
|
+
# @!attribute [rw] languages
|
744
|
+
# The list of supported languages.
|
745
|
+
# @return [Array<Types::Language>]
|
746
|
+
#
|
747
|
+
# @!attribute [rw] display_language_code
|
748
|
+
# The language code passed in with the request.
|
749
|
+
# @return [String]
|
750
|
+
#
|
751
|
+
# @!attribute [rw] next_token
|
752
|
+
# If the response does not include all remaining results, use the
|
753
|
+
# NextToken in the next request to fetch the next group of supported
|
754
|
+
# languages.
|
755
|
+
# @return [String]
|
756
|
+
#
|
757
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/translate-2017-07-01/ListLanguagesResponse AWS API Documentation
|
758
|
+
#
|
759
|
+
class ListLanguagesResponse < Struct.new(
|
760
|
+
:languages,
|
761
|
+
:display_language_code,
|
762
|
+
:next_token)
|
763
|
+
SENSITIVE = []
|
764
|
+
include Aws::Structure
|
765
|
+
end
|
766
|
+
|
662
767
|
# @note When making an API call, you may pass ListParallelDataRequest
|
663
768
|
# data as a hash:
|
664
769
|
#
|
@@ -706,6 +811,35 @@ module Aws::Translate
|
|
706
811
|
include Aws::Structure
|
707
812
|
end
|
708
813
|
|
814
|
+
# @note When making an API call, you may pass ListTagsForResourceRequest
|
815
|
+
# data as a hash:
|
816
|
+
#
|
817
|
+
# {
|
818
|
+
# resource_arn: "ResourceArn", # required
|
819
|
+
# }
|
820
|
+
#
|
821
|
+
# @!attribute [rw] resource_arn
|
822
|
+
# @return [String]
|
823
|
+
#
|
824
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/translate-2017-07-01/ListTagsForResourceRequest AWS API Documentation
|
825
|
+
#
|
826
|
+
class ListTagsForResourceRequest < Struct.new(
|
827
|
+
:resource_arn)
|
828
|
+
SENSITIVE = []
|
829
|
+
include Aws::Structure
|
830
|
+
end
|
831
|
+
|
832
|
+
# @!attribute [rw] tags
|
833
|
+
# @return [Array<Types::Tag>]
|
834
|
+
#
|
835
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/translate-2017-07-01/ListTagsForResourceResponse AWS API Documentation
|
836
|
+
#
|
837
|
+
class ListTagsForResourceResponse < Struct.new(
|
838
|
+
:tags)
|
839
|
+
SENSITIVE = []
|
840
|
+
include Aws::Structure
|
841
|
+
end
|
842
|
+
|
709
843
|
# @note When making an API call, you may pass ListTerminologiesRequest
|
710
844
|
# data as a hash:
|
711
845
|
#
|
@@ -880,7 +1014,7 @@ module Aws::Translate
|
|
880
1014
|
#
|
881
1015
|
# @!attribute [rw] location
|
882
1016
|
# The Amazon S3 location of the parallel data input file. The location
|
883
|
-
# is returned as a presigned URL to that has a 30
|
1017
|
+
# is returned as a presigned URL to that has a 30-minute expiration.
|
884
1018
|
#
|
885
1019
|
# Amazon Translate doesn't scan all input files for the risk of CSV
|
886
1020
|
# injection attacks.
|
@@ -1029,8 +1163,8 @@ module Aws::Translate
|
|
1029
1163
|
include Aws::Structure
|
1030
1164
|
end
|
1031
1165
|
|
1032
|
-
# The Amazon Translate service is temporarily unavailable.
|
1033
|
-
#
|
1166
|
+
# The Amazon Translate service is temporarily unavailable. Wait a bit
|
1167
|
+
# and then retry your request.
|
1034
1168
|
#
|
1035
1169
|
# @!attribute [rw] message
|
1036
1170
|
# @return [String]
|
@@ -1076,7 +1210,7 @@ module Aws::Translate
|
|
1076
1210
|
# @return [String]
|
1077
1211
|
#
|
1078
1212
|
# @!attribute [rw] input_data_config
|
1079
|
-
# Specifies the format and
|
1213
|
+
# Specifies the format and location of the input documents for the
|
1080
1214
|
# translation job.
|
1081
1215
|
# @return [Types::InputDataConfig]
|
1082
1216
|
#
|
@@ -1141,7 +1275,7 @@ module Aws::Translate
|
|
1141
1275
|
# @return [Array<String>]
|
1142
1276
|
#
|
1143
1277
|
# @!attribute [rw] client_token
|
1144
|
-
# A unique identifier for the request. This token is
|
1278
|
+
# A unique identifier for the request. This token is generated for you
|
1145
1279
|
# when using the Amazon Translate SDK.
|
1146
1280
|
#
|
1147
1281
|
# **A suitable default value is auto-generated.** You should normally
|
@@ -1150,7 +1284,8 @@ module Aws::Translate
|
|
1150
1284
|
#
|
1151
1285
|
# @!attribute [rw] settings
|
1152
1286
|
# Settings to configure your translation output, including the option
|
1153
|
-
# to mask profane words and phrases.
|
1287
|
+
# to mask profane words and phrases. `StartTextTranslationJob` does
|
1288
|
+
# not support the formality setting.
|
1154
1289
|
# @return [Types::TranslationSettings]
|
1155
1290
|
#
|
1156
1291
|
# @see http://docs.aws.amazon.com/goto/WebAPI/translate-2017-07-01/StartTextTranslationJobRequest AWS API Documentation
|
@@ -1244,6 +1379,61 @@ module Aws::Translate
|
|
1244
1379
|
include Aws::Structure
|
1245
1380
|
end
|
1246
1381
|
|
1382
|
+
# @note When making an API call, you may pass Tag
|
1383
|
+
# data as a hash:
|
1384
|
+
#
|
1385
|
+
# {
|
1386
|
+
# key: "TagKey", # required
|
1387
|
+
# value: "TagValue", # required
|
1388
|
+
# }
|
1389
|
+
#
|
1390
|
+
# @!attribute [rw] key
|
1391
|
+
# @return [String]
|
1392
|
+
#
|
1393
|
+
# @!attribute [rw] value
|
1394
|
+
# @return [String]
|
1395
|
+
#
|
1396
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/translate-2017-07-01/Tag AWS API Documentation
|
1397
|
+
#
|
1398
|
+
class Tag < Struct.new(
|
1399
|
+
:key,
|
1400
|
+
:value)
|
1401
|
+
SENSITIVE = []
|
1402
|
+
include Aws::Structure
|
1403
|
+
end
|
1404
|
+
|
1405
|
+
# @note When making an API call, you may pass TagResourceRequest
|
1406
|
+
# data as a hash:
|
1407
|
+
#
|
1408
|
+
# {
|
1409
|
+
# resource_arn: "ResourceArn", # required
|
1410
|
+
# tags: [ # required
|
1411
|
+
# {
|
1412
|
+
# key: "TagKey", # required
|
1413
|
+
# value: "TagValue", # required
|
1414
|
+
# },
|
1415
|
+
# ],
|
1416
|
+
# }
|
1417
|
+
#
|
1418
|
+
# @!attribute [rw] resource_arn
|
1419
|
+
# @return [String]
|
1420
|
+
#
|
1421
|
+
# @!attribute [rw] tags
|
1422
|
+
# @return [Array<Types::Tag>]
|
1423
|
+
#
|
1424
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/translate-2017-07-01/TagResourceRequest AWS API Documentation
|
1425
|
+
#
|
1426
|
+
class TagResourceRequest < Struct.new(
|
1427
|
+
:resource_arn,
|
1428
|
+
:tags)
|
1429
|
+
SENSITIVE = []
|
1430
|
+
include Aws::Structure
|
1431
|
+
end
|
1432
|
+
|
1433
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/translate-2017-07-01/TagResourceResponse AWS API Documentation
|
1434
|
+
#
|
1435
|
+
class TagResourceResponse < Aws::EmptyStructure; end
|
1436
|
+
|
1247
1437
|
# The term being translated by the custom terminology.
|
1248
1438
|
#
|
1249
1439
|
# @!attribute [rw] source_text
|
@@ -1265,7 +1455,12 @@ module Aws::Translate
|
|
1265
1455
|
include Aws::Structure
|
1266
1456
|
end
|
1267
1457
|
|
1268
|
-
# The data associated with the custom terminology.
|
1458
|
+
# The data associated with the custom terminology. For information about
|
1459
|
+
# the custom terminology file, see [ Creating a Custom Terminology][1].
|
1460
|
+
#
|
1461
|
+
#
|
1462
|
+
#
|
1463
|
+
# [1]: https://docs.aws.amazon.com/translate/latest/dg/creating-custom-terminology.html
|
1269
1464
|
#
|
1270
1465
|
# @note When making an API call, you may pass TerminologyData
|
1271
1466
|
# data as a hash:
|
@@ -1303,9 +1498,9 @@ module Aws::Translate
|
|
1303
1498
|
# : Any language in the terminology resource can be the source
|
1304
1499
|
# language or a target language. A single multi-directional
|
1305
1500
|
# terminology resource can be used for jobs that translate different
|
1306
|
-
# language pairs. For example, if the terminology contains
|
1307
|
-
#
|
1308
|
-
#
|
1501
|
+
# language pairs. For example, if the terminology contains English
|
1502
|
+
# and Spanish terms, it can be used for jobs that translate English
|
1503
|
+
# to Spanish and Spanish to English.
|
1309
1504
|
#
|
1310
1505
|
# When you create a custom terminology resource without specifying the
|
1311
1506
|
# directionality, it behaves as uni-directional terminology, although
|
@@ -1331,8 +1526,8 @@ module Aws::Translate
|
|
1331
1526
|
# @!attribute [rw] location
|
1332
1527
|
# The Amazon S3 location of the most recent custom terminology input
|
1333
1528
|
# file that was successfully imported into Amazon Translate. The
|
1334
|
-
# location is returned as a presigned URL that has a 30
|
1335
|
-
# expiration.
|
1529
|
+
# location is returned as a presigned URL that has a 30-minute
|
1530
|
+
# expiration .
|
1336
1531
|
#
|
1337
1532
|
# Amazon Translate doesn't scan all input files for the risk of CSV
|
1338
1533
|
# injection attacks.
|
@@ -1625,6 +1820,21 @@ module Aws::Translate
|
|
1625
1820
|
include Aws::Structure
|
1626
1821
|
end
|
1627
1822
|
|
1823
|
+
# @!attribute [rw] message
|
1824
|
+
# @return [String]
|
1825
|
+
#
|
1826
|
+
# @!attribute [rw] resource_arn
|
1827
|
+
# @return [String]
|
1828
|
+
#
|
1829
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/translate-2017-07-01/TooManyTagsException AWS API Documentation
|
1830
|
+
#
|
1831
|
+
class TooManyTagsException < Struct.new(
|
1832
|
+
:message,
|
1833
|
+
:resource_arn)
|
1834
|
+
SENSITIVE = []
|
1835
|
+
include Aws::Structure
|
1836
|
+
end
|
1837
|
+
|
1628
1838
|
# @note When making an API call, you may pass TranslateTextRequest
|
1629
1839
|
# data as a hash:
|
1630
1840
|
#
|
@@ -1662,6 +1872,12 @@ module Aws::Translate
|
|
1662
1872
|
# specify `auto`, Amazon Translate will call [Amazon Comprehend][1] to
|
1663
1873
|
# determine the source language.
|
1664
1874
|
#
|
1875
|
+
# <note markdown="1"> If you specify `auto`, you must send the `TranslateText` request in
|
1876
|
+
# a region that supports Amazon Comprehend. Otherwise, the request
|
1877
|
+
# returns an error indicating that autodetect is not supported.
|
1878
|
+
#
|
1879
|
+
# </note>
|
1880
|
+
#
|
1665
1881
|
#
|
1666
1882
|
#
|
1667
1883
|
# [1]: https://docs.aws.amazon.com/comprehend/latest/dg/comprehend-general.html
|
@@ -1674,7 +1890,8 @@ module Aws::Translate
|
|
1674
1890
|
#
|
1675
1891
|
# @!attribute [rw] settings
|
1676
1892
|
# Settings to configure your translation output, including the option
|
1677
|
-
# to
|
1893
|
+
# to set the formality level of the output text and the option to mask
|
1894
|
+
# profane words and phrases.
|
1678
1895
|
# @return [Types::TranslationSettings]
|
1679
1896
|
#
|
1680
1897
|
# @see http://docs.aws.amazon.com/goto/WebAPI/translate-2017-07-01/TranslateTextRequest AWS API Documentation
|
@@ -1733,6 +1950,26 @@ module Aws::Translate
|
|
1733
1950
|
# }
|
1734
1951
|
#
|
1735
1952
|
# @!attribute [rw] formality
|
1953
|
+
# You can optionally specify the desired level of formality for
|
1954
|
+
# real-time translations to supported target languages. The formality
|
1955
|
+
# setting controls the level of formal language usage (also known as
|
1956
|
+
# [register][1]) in the translation output. You can set the value to
|
1957
|
+
# informal or formal. If you don't specify a value for formality, or
|
1958
|
+
# if the target language doesn't support formality, the translation
|
1959
|
+
# will ignore the formality setting.
|
1960
|
+
#
|
1961
|
+
# Note that asynchronous translation jobs don't support formality. If
|
1962
|
+
# you provide a value for formality, the `StartTextTranslationJob` API
|
1963
|
+
# throws an exception (InvalidRequestException).
|
1964
|
+
#
|
1965
|
+
# For target languages that support formality, see [Supported
|
1966
|
+
# Languages and Language Codes in the Amazon Translate Developer
|
1967
|
+
# Guide][2].
|
1968
|
+
#
|
1969
|
+
#
|
1970
|
+
#
|
1971
|
+
# [1]: https://en.wikipedia.org/wiki/Register_(sociolinguistics)
|
1972
|
+
# [2]: https://docs.aws.amazon.com/translate/latest/dg/what-is.html
|
1736
1973
|
# @return [String]
|
1737
1974
|
#
|
1738
1975
|
# @!attribute [rw] profanity
|
@@ -1744,14 +1981,14 @@ module Aws::Translate
|
|
1744
1981
|
# for each profane word or phrase, regardless of the length or number
|
1745
1982
|
# of words.
|
1746
1983
|
#
|
1747
|
-
# Amazon Translate
|
1984
|
+
# Amazon Translate doesn't detect profanity in all of its supported
|
1748
1985
|
# languages. For languages that support profanity detection, see
|
1749
1986
|
# [Supported Languages and Language Codes in the Amazon Translate
|
1750
1987
|
# Developer Guide][1].
|
1751
1988
|
#
|
1752
1989
|
#
|
1753
1990
|
#
|
1754
|
-
# [1]: https://docs.aws.amazon.com/translate/latest/dg/what-is.html
|
1991
|
+
# [1]: https://docs.aws.amazon.com/translate/latest/dg/what-is.html
|
1755
1992
|
# @return [String]
|
1756
1993
|
#
|
1757
1994
|
# @see http://docs.aws.amazon.com/goto/WebAPI/translate-2017-07-01/TranslationSettings AWS API Documentation
|
@@ -1763,6 +2000,24 @@ module Aws::Translate
|
|
1763
2000
|
include Aws::Structure
|
1764
2001
|
end
|
1765
2002
|
|
2003
|
+
# Requested display language code is not supported.
|
2004
|
+
#
|
2005
|
+
# @!attribute [rw] message
|
2006
|
+
# @return [String]
|
2007
|
+
#
|
2008
|
+
# @!attribute [rw] display_language_code
|
2009
|
+
# Language code passed in with the request.
|
2010
|
+
# @return [String]
|
2011
|
+
#
|
2012
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/translate-2017-07-01/UnsupportedDisplayLanguageCodeException AWS API Documentation
|
2013
|
+
#
|
2014
|
+
class UnsupportedDisplayLanguageCodeException < Struct.new(
|
2015
|
+
:message,
|
2016
|
+
:display_language_code)
|
2017
|
+
SENSITIVE = []
|
2018
|
+
include Aws::Structure
|
2019
|
+
end
|
2020
|
+
|
1766
2021
|
# Amazon Translate does not support translation from the language of the
|
1767
2022
|
# source text into the requested target language. For more information,
|
1768
2023
|
# see how-to-error-msg.
|
@@ -1788,6 +2043,33 @@ module Aws::Translate
|
|
1788
2043
|
include Aws::Structure
|
1789
2044
|
end
|
1790
2045
|
|
2046
|
+
# @note When making an API call, you may pass UntagResourceRequest
|
2047
|
+
# data as a hash:
|
2048
|
+
#
|
2049
|
+
# {
|
2050
|
+
# resource_arn: "ResourceArn", # required
|
2051
|
+
# tag_keys: ["TagKey"], # required
|
2052
|
+
# }
|
2053
|
+
#
|
2054
|
+
# @!attribute [rw] resource_arn
|
2055
|
+
# @return [String]
|
2056
|
+
#
|
2057
|
+
# @!attribute [rw] tag_keys
|
2058
|
+
# @return [Array<String>]
|
2059
|
+
#
|
2060
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/translate-2017-07-01/UntagResourceRequest AWS API Documentation
|
2061
|
+
#
|
2062
|
+
class UntagResourceRequest < Struct.new(
|
2063
|
+
:resource_arn,
|
2064
|
+
:tag_keys)
|
2065
|
+
SENSITIVE = []
|
2066
|
+
include Aws::Structure
|
2067
|
+
end
|
2068
|
+
|
2069
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/translate-2017-07-01/UntagResourceResponse AWS API Documentation
|
2070
|
+
#
|
2071
|
+
class UntagResourceResponse < Aws::EmptyStructure; end
|
2072
|
+
|
1791
2073
|
# @note When making an API call, you may pass UpdateParallelDataRequest
|
1792
2074
|
# data as a hash:
|
1793
2075
|
#
|
data/lib/aws-sdk-translate.rb
CHANGED
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.46.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: 2022-
|
11
|
+
date: 2022-09-29 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: aws-sdk-core
|