aws-sdk-translate 1.45.0 → 1.47.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +10 -0
- data/VERSION +1 -1
- data/lib/aws-sdk-translate/client.rb +202 -18
- data/lib/aws-sdk-translate/client_api.rb +85 -0
- data/lib/aws-sdk-translate/errors.rb +21 -0
- data/lib/aws-sdk-translate/types.rb +253 -29
- 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: 46085b6b84621ff8a4de01ab37dd0c176fe80b05552089f183de578ee4f839ad
|
4
|
+
data.tar.gz: 1222bc137a0885cb613d4d5b58ee0e5a83fd23569c3a36aa6d0ac805e6223b15
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: dd27a6cb9ce794e8694b1c2c0d20f6fe06b712c206b43405912b39a15c8b231aee87f5241c9438f1195b8d9f374d1ebf31321dfd922f970b6c799b4ae474c196
|
7
|
+
data.tar.gz: a1be0a727c69a8eb4d24b9e0f09de68f1b0ab2ea9450e3c6464d7f33b1a40c3fce0eacd238f29add7e0a2dbf548bec0793ee83af16fcb00ecd511d8b29d3dcf5
|
data/CHANGELOG.md
CHANGED
@@ -1,6 +1,16 @@
|
|
1
1
|
Unreleased Changes
|
2
2
|
------------------
|
3
3
|
|
4
|
+
1.47.0 (2022-10-13)
|
5
|
+
------------------
|
6
|
+
|
7
|
+
* Feature - This release enables customers to specify multiple target languages in asynchronous batch translation requests.
|
8
|
+
|
9
|
+
1.46.0 (2022-09-29)
|
10
|
+
------------------
|
11
|
+
|
12
|
+
* Feature - This release enables customers to access control rights on Translate resources like Parallel Data and Custom Terminology using Tag Based Authorization.
|
13
|
+
|
4
14
|
1.45.0 (2022-06-29)
|
5
15
|
------------------
|
6
16
|
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.
|
1
|
+
1.47.0
|
@@ -388,6 +388,15 @@ 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
|
+
# Tags to be associated with this resource. A tag is a key-value pair
|
393
|
+
# that adds metadata to a resource. Each tag key for the resource must
|
394
|
+
# be unique. For more information, see [ Tagging your resources][1].
|
395
|
+
#
|
396
|
+
#
|
397
|
+
#
|
398
|
+
# [1]: https://docs.aws.amazon.com/translate/latest/dg/tagging.html
|
399
|
+
#
|
391
400
|
# @return [Types::CreateParallelDataResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
392
401
|
#
|
393
402
|
# * {Types::CreateParallelDataResponse#name #name} => String
|
@@ -407,6 +416,12 @@ module Aws::Translate
|
|
407
416
|
# id: "EncryptionKeyID", # required
|
408
417
|
# },
|
409
418
|
# client_token: "ClientTokenString", # required
|
419
|
+
# tags: [
|
420
|
+
# {
|
421
|
+
# key: "TagKey", # required
|
422
|
+
# value: "TagValue", # required
|
423
|
+
# },
|
424
|
+
# ],
|
410
425
|
# })
|
411
426
|
#
|
412
427
|
# @example Response structure
|
@@ -677,6 +692,15 @@ module Aws::Translate
|
|
677
692
|
# @option params [Types::EncryptionKey] :encryption_key
|
678
693
|
# The encryption key for the custom terminology being imported.
|
679
694
|
#
|
695
|
+
# @option params [Array<Types::Tag>] :tags
|
696
|
+
# Tags to be associated with this resource. A tag is a key-value pair
|
697
|
+
# that adds metadata to a resource. Each tag key for the resource must
|
698
|
+
# be unique. For more information, see [ Tagging your resources][1].
|
699
|
+
#
|
700
|
+
#
|
701
|
+
#
|
702
|
+
# [1]: https://docs.aws.amazon.com/translate/latest/dg/tagging.html
|
703
|
+
#
|
680
704
|
# @return [Types::ImportTerminologyResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
681
705
|
#
|
682
706
|
# * {Types::ImportTerminologyResponse#terminology_properties #terminology_properties} => Types::TerminologyProperties
|
@@ -697,6 +721,12 @@ module Aws::Translate
|
|
697
721
|
# type: "KMS", # required, accepts KMS
|
698
722
|
# id: "EncryptionKeyID", # required
|
699
723
|
# },
|
724
|
+
# tags: [
|
725
|
+
# {
|
726
|
+
# key: "TagKey", # required
|
727
|
+
# value: "TagValue", # required
|
728
|
+
# },
|
729
|
+
# ],
|
700
730
|
# })
|
701
731
|
#
|
702
732
|
# @example Response structure
|
@@ -834,6 +864,42 @@ module Aws::Translate
|
|
834
864
|
req.send_request(options)
|
835
865
|
end
|
836
866
|
|
867
|
+
# Lists all tags associated with a given Amazon Translate resource. For
|
868
|
+
# more information, see [ Tagging your resources][1].
|
869
|
+
#
|
870
|
+
#
|
871
|
+
#
|
872
|
+
# [1]: https://docs.aws.amazon.com/translate/latest/dg/tagging.html
|
873
|
+
#
|
874
|
+
# @option params [required, String] :resource_arn
|
875
|
+
# The Amazon Resource Name (ARN) of the given Amazon Translate resource
|
876
|
+
# you are querying.
|
877
|
+
#
|
878
|
+
# @return [Types::ListTagsForResourceResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
879
|
+
#
|
880
|
+
# * {Types::ListTagsForResourceResponse#tags #tags} => Array<Types::Tag>
|
881
|
+
#
|
882
|
+
# @example Request syntax with placeholder values
|
883
|
+
#
|
884
|
+
# resp = client.list_tags_for_resource({
|
885
|
+
# resource_arn: "ResourceArn", # required
|
886
|
+
# })
|
887
|
+
#
|
888
|
+
# @example Response structure
|
889
|
+
#
|
890
|
+
# resp.tags #=> Array
|
891
|
+
# resp.tags[0].key #=> String
|
892
|
+
# resp.tags[0].value #=> String
|
893
|
+
#
|
894
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/translate-2017-07-01/ListTagsForResource AWS API Documentation
|
895
|
+
#
|
896
|
+
# @overload list_tags_for_resource(params = {})
|
897
|
+
# @param [Hash] params ({})
|
898
|
+
def list_tags_for_resource(params = {}, options = {})
|
899
|
+
req = build_request(:list_tags_for_resource, params)
|
900
|
+
req.send_request(options)
|
901
|
+
end
|
902
|
+
|
837
903
|
# Provides a list of custom terminologies associated with your account.
|
838
904
|
#
|
839
905
|
# @option params [String] :next_token
|
@@ -959,9 +1025,13 @@ module Aws::Translate
|
|
959
1025
|
req.send_request(options)
|
960
1026
|
end
|
961
1027
|
|
962
|
-
# Starts an asynchronous batch translation job.
|
963
|
-
#
|
964
|
-
#
|
1028
|
+
# Starts an asynchronous batch translation job. Use batch translation
|
1029
|
+
# jobs to translate large volumes of text across multiple documents at
|
1030
|
+
# once. For batch translation, the input documents must share the same
|
1031
|
+
# source language. You can specify one or more target languages. Batch
|
1032
|
+
# translation translates each input document into each of the target
|
1033
|
+
# languages. For more information, see [Asynchronous batch
|
1034
|
+
# processing][1]
|
965
1035
|
#
|
966
1036
|
# Batch translation jobs can be described with the
|
967
1037
|
# DescribeTextTranslationJob operation, listed with the
|
@@ -973,6 +1043,10 @@ module Aws::Translate
|
|
973
1043
|
#
|
974
1044
|
# </note>
|
975
1045
|
#
|
1046
|
+
#
|
1047
|
+
#
|
1048
|
+
# [1]: https://docs.aws.amazon.com/translate/latest/dg/async.html
|
1049
|
+
#
|
976
1050
|
# @option params [String] :job_name
|
977
1051
|
# The name of the batch translation job to be performed.
|
978
1052
|
#
|
@@ -986,17 +1060,34 @@ module Aws::Translate
|
|
986
1060
|
# @option params [required, String] :data_access_role_arn
|
987
1061
|
# The Amazon Resource Name (ARN) of an AWS Identity Access and
|
988
1062
|
# Management (IAM) role that grants Amazon Translate read access to your
|
989
|
-
# input data. For more information, see
|
1063
|
+
# input data. For more information, see [Identity and access management
|
1064
|
+
# ][1].
|
1065
|
+
#
|
1066
|
+
#
|
1067
|
+
#
|
1068
|
+
# [1]: https://docs.aws.amazon.com/translate/latest/dg/identity-and-access-management.html
|
990
1069
|
#
|
991
1070
|
# @option params [required, String] :source_language_code
|
992
1071
|
# The language code of the input language. For a list of language codes,
|
993
|
-
# see
|
1072
|
+
# see [Supported languages][1].
|
994
1073
|
#
|
995
1074
|
# Amazon Translate does not automatically detect a source language
|
996
1075
|
# during batch translation jobs.
|
997
1076
|
#
|
1077
|
+
#
|
1078
|
+
#
|
1079
|
+
# [1]: https://docs.aws.amazon.com/translate/latest/dg/what-is-languages.html
|
1080
|
+
#
|
998
1081
|
# @option params [required, Array<String>] :target_language_codes
|
999
|
-
# The
|
1082
|
+
# The target languages of the translation job. Enter up to 10 language
|
1083
|
+
# codes. Each input file is translated into each target language.
|
1084
|
+
#
|
1085
|
+
# Each language code is two or five characters long. For a list of
|
1086
|
+
# language codes, see [Supported languages][1].
|
1087
|
+
#
|
1088
|
+
#
|
1089
|
+
#
|
1090
|
+
# [1]: https://docs.aws.amazon.com/translate/latest/dg/what-is-languages.html
|
1000
1091
|
#
|
1001
1092
|
# @option params [Array<String>] :terminology_names
|
1002
1093
|
# The name of a custom terminology resource to add to the translation
|
@@ -1005,16 +1096,28 @@ module Aws::Translate
|
|
1005
1096
|
#
|
1006
1097
|
# This parameter accepts only one custom terminology resource.
|
1007
1098
|
#
|
1099
|
+
# If you specify multiple target languages for the job, translate uses
|
1100
|
+
# the designated terminology for each requested target language that has
|
1101
|
+
# an entry for the source term in the terminology file.
|
1102
|
+
#
|
1008
1103
|
# For a list of available custom terminology resources, use the
|
1009
1104
|
# ListTerminologies operation.
|
1010
1105
|
#
|
1011
|
-
# For more information, see
|
1106
|
+
# For more information, see [Custom terminology][1].
|
1107
|
+
#
|
1108
|
+
#
|
1109
|
+
#
|
1110
|
+
# [1]: https://docs.aws.amazon.com/translate/latest/dg/how-custom-terminology.html
|
1012
1111
|
#
|
1013
1112
|
# @option params [Array<String>] :parallel_data_names
|
1014
1113
|
# The name of a parallel data resource to add to the translation job.
|
1015
1114
|
# This resource consists of examples that show how you want segments of
|
1016
|
-
# text to be translated.
|
1017
|
-
# job,
|
1115
|
+
# text to be translated. If you specify multiple target languages for
|
1116
|
+
# the job, the parallel data file must include translations for all the
|
1117
|
+
# target languages.
|
1118
|
+
#
|
1119
|
+
# When you add parallel data to a translation job, you create an *Active
|
1120
|
+
# Custom Translation* job.
|
1018
1121
|
#
|
1019
1122
|
# This parameter accepts only one parallel data resource.
|
1020
1123
|
#
|
@@ -1027,11 +1130,13 @@ module Aws::Translate
|
|
1027
1130
|
# For a list of available parallel data resources, use the
|
1028
1131
|
# ListParallelData operation.
|
1029
1132
|
#
|
1030
|
-
# For more information, see
|
1133
|
+
# For more information, see [ Customizing your translations with
|
1134
|
+
# parallel data][2].
|
1031
1135
|
#
|
1032
1136
|
#
|
1033
1137
|
#
|
1034
1138
|
# [1]: http://aws.amazon.com/translate/pricing/
|
1139
|
+
# [2]: https://docs.aws.amazon.com/translate/latest/dg/customizing-translations-parallel-data.html
|
1035
1140
|
#
|
1036
1141
|
# @option params [required, String] :client_token
|
1037
1142
|
# A unique identifier for the request. This token is generated for you
|
@@ -1042,8 +1147,8 @@ module Aws::Translate
|
|
1042
1147
|
#
|
1043
1148
|
# @option params [Types::TranslationSettings] :settings
|
1044
1149
|
# Settings to configure your translation output, including the option to
|
1045
|
-
#
|
1046
|
-
#
|
1150
|
+
# set the formality level of the output text and the option to mask
|
1151
|
+
# profane words and phrases.
|
1047
1152
|
#
|
1048
1153
|
# @return [Types::StartTextTranslationJobResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
1049
1154
|
#
|
@@ -1131,9 +1236,53 @@ module Aws::Translate
|
|
1131
1236
|
req.send_request(options)
|
1132
1237
|
end
|
1133
1238
|
|
1239
|
+
# Associates a specific tag with a resource. A tag is a key-value pair
|
1240
|
+
# that adds as a metadata to a resource. For more information, see [
|
1241
|
+
# Tagging your resources][1].
|
1242
|
+
#
|
1243
|
+
#
|
1244
|
+
#
|
1245
|
+
# [1]: https://docs.aws.amazon.com/translate/latest/dg/tagging.html
|
1246
|
+
#
|
1247
|
+
# @option params [required, String] :resource_arn
|
1248
|
+
# The Amazon Resource Name (ARN) of the given Amazon Translate resource
|
1249
|
+
# to which you want to associate the tags.
|
1250
|
+
#
|
1251
|
+
# @option params [required, Array<Types::Tag>] :tags
|
1252
|
+
# Tags being associated with a specific Amazon Translate resource. There
|
1253
|
+
# can be a maximum of 50 tags (both existing and pending) associated
|
1254
|
+
# with a specific resource.
|
1255
|
+
#
|
1256
|
+
# @return [Struct] Returns an empty {Seahorse::Client::Response response}.
|
1257
|
+
#
|
1258
|
+
# @example Request syntax with placeholder values
|
1259
|
+
#
|
1260
|
+
# resp = client.tag_resource({
|
1261
|
+
# resource_arn: "ResourceArn", # required
|
1262
|
+
# tags: [ # required
|
1263
|
+
# {
|
1264
|
+
# key: "TagKey", # required
|
1265
|
+
# value: "TagValue", # required
|
1266
|
+
# },
|
1267
|
+
# ],
|
1268
|
+
# })
|
1269
|
+
#
|
1270
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/translate-2017-07-01/TagResource AWS API Documentation
|
1271
|
+
#
|
1272
|
+
# @overload tag_resource(params = {})
|
1273
|
+
# @param [Hash] params ({})
|
1274
|
+
def tag_resource(params = {}, options = {})
|
1275
|
+
req = build_request(:tag_resource, params)
|
1276
|
+
req.send_request(options)
|
1277
|
+
end
|
1278
|
+
|
1134
1279
|
# Translates input text from the source language to the target language.
|
1135
|
-
# For a list of available languages and language codes, see
|
1136
|
-
#
|
1280
|
+
# For a list of available languages and language codes, see [Supported
|
1281
|
+
# languages][1].
|
1282
|
+
#
|
1283
|
+
#
|
1284
|
+
#
|
1285
|
+
# [1]: https://docs.aws.amazon.com/translate/latest/dg/what-is-languages.html
|
1137
1286
|
#
|
1138
1287
|
# @option params [required, String] :text
|
1139
1288
|
# The text to translate. The text string can be a maximum of 5,000 bytes
|
@@ -1148,11 +1297,11 @@ module Aws::Translate
|
|
1148
1297
|
# @option params [required, String] :source_language_code
|
1149
1298
|
# The language code for the language of the source text. The language
|
1150
1299
|
# must be a language supported by Amazon Translate. For a list of
|
1151
|
-
# language codes, see
|
1300
|
+
# language codes, see [Supported languages][1].
|
1152
1301
|
#
|
1153
1302
|
# To have Amazon Translate determine the source language of your text,
|
1154
1303
|
# you can specify `auto` in the `SourceLanguageCode` field. If you
|
1155
|
-
# specify `auto`, Amazon Translate will call [Amazon Comprehend][
|
1304
|
+
# specify `auto`, Amazon Translate will call [Amazon Comprehend][2] to
|
1156
1305
|
# determine the source language.
|
1157
1306
|
#
|
1158
1307
|
# <note markdown="1"> If you specify `auto`, you must send the `TranslateText` request in a
|
@@ -1163,7 +1312,8 @@ module Aws::Translate
|
|
1163
1312
|
#
|
1164
1313
|
#
|
1165
1314
|
#
|
1166
|
-
# [1]: https://docs.aws.amazon.com/
|
1315
|
+
# [1]: https://docs.aws.amazon.com/translate/latest/dg/what-is-languages.html
|
1316
|
+
# [2]: https://docs.aws.amazon.com/comprehend/latest/dg/comprehend-general.html
|
1167
1317
|
#
|
1168
1318
|
# @option params [required, String] :target_language_code
|
1169
1319
|
# The language code requested for the language of the target text. The
|
@@ -1217,6 +1367,40 @@ module Aws::Translate
|
|
1217
1367
|
req.send_request(options)
|
1218
1368
|
end
|
1219
1369
|
|
1370
|
+
# Removes a specific tag associated with an Amazon Translate resource.
|
1371
|
+
# For more information, see [ Tagging your resources][1].
|
1372
|
+
#
|
1373
|
+
#
|
1374
|
+
#
|
1375
|
+
# [1]: https://docs.aws.amazon.com/translate/latest/dg/tagging.html
|
1376
|
+
#
|
1377
|
+
# @option params [required, String] :resource_arn
|
1378
|
+
# The Amazon Resource Name (ARN) of the given Amazon Translate resource
|
1379
|
+
# from which you want to remove the tags.
|
1380
|
+
#
|
1381
|
+
# @option params [required, Array<String>] :tag_keys
|
1382
|
+
# The initial part of a key-value pair that forms a tag being removed
|
1383
|
+
# from a given resource. Keys must be unique and cannot be duplicated
|
1384
|
+
# for a particular resource.
|
1385
|
+
#
|
1386
|
+
# @return [Struct] Returns an empty {Seahorse::Client::Response response}.
|
1387
|
+
#
|
1388
|
+
# @example Request syntax with placeholder values
|
1389
|
+
#
|
1390
|
+
# resp = client.untag_resource({
|
1391
|
+
# resource_arn: "ResourceArn", # required
|
1392
|
+
# tag_keys: ["TagKey"], # required
|
1393
|
+
# })
|
1394
|
+
#
|
1395
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/translate-2017-07-01/UntagResource AWS API Documentation
|
1396
|
+
#
|
1397
|
+
# @overload untag_resource(params = {})
|
1398
|
+
# @param [Hash] params ({})
|
1399
|
+
def untag_resource(params = {}, options = {})
|
1400
|
+
req = build_request(:untag_resource, params)
|
1401
|
+
req.send_request(options)
|
1402
|
+
end
|
1403
|
+
|
1220
1404
|
# Updates a previously created parallel data resource by importing a new
|
1221
1405
|
# input file from Amazon S3.
|
1222
1406
|
#
|
@@ -1285,7 +1469,7 @@ module Aws::Translate
|
|
1285
1469
|
params: params,
|
1286
1470
|
config: config)
|
1287
1471
|
context[:gem_name] = 'aws-sdk-translate'
|
1288
|
-
context[:gem_version] = '1.
|
1472
|
+
context[:gem_version] = '1.47.0'
|
1289
1473
|
Seahorse::Client::Request.new(handlers, context)
|
1290
1474
|
end
|
1291
1475
|
|
@@ -61,6 +61,8 @@ module Aws::Translate
|
|
61
61
|
ListLanguagesResponse = Shapes::StructureShape.new(name: 'ListLanguagesResponse')
|
62
62
|
ListParallelDataRequest = Shapes::StructureShape.new(name: 'ListParallelDataRequest')
|
63
63
|
ListParallelDataResponse = Shapes::StructureShape.new(name: 'ListParallelDataResponse')
|
64
|
+
ListTagsForResourceRequest = Shapes::StructureShape.new(name: 'ListTagsForResourceRequest')
|
65
|
+
ListTagsForResourceResponse = Shapes::StructureShape.new(name: 'ListTagsForResourceResponse')
|
64
66
|
ListTerminologiesRequest = Shapes::StructureShape.new(name: 'ListTerminologiesRequest')
|
65
67
|
ListTerminologiesResponse = Shapes::StructureShape.new(name: 'ListTerminologiesResponse')
|
66
68
|
ListTextTranslationJobsRequest = Shapes::StructureShape.new(name: 'ListTextTranslationJobsRequest')
|
@@ -79,6 +81,7 @@ module Aws::Translate
|
|
79
81
|
ParallelDataPropertiesList = Shapes::ListShape.new(name: 'ParallelDataPropertiesList')
|
80
82
|
ParallelDataStatus = Shapes::StringShape.new(name: 'ParallelDataStatus')
|
81
83
|
Profanity = Shapes::StringShape.new(name: 'Profanity')
|
84
|
+
ResourceArn = Shapes::StringShape.new(name: 'ResourceArn')
|
82
85
|
ResourceName = Shapes::StringShape.new(name: 'ResourceName')
|
83
86
|
ResourceNameList = Shapes::ListShape.new(name: 'ResourceNameList')
|
84
87
|
ResourceNotFoundException = Shapes::StructureShape.new(name: 'ResourceNotFoundException')
|
@@ -89,6 +92,13 @@ module Aws::Translate
|
|
89
92
|
StopTextTranslationJobRequest = Shapes::StructureShape.new(name: 'StopTextTranslationJobRequest')
|
90
93
|
StopTextTranslationJobResponse = Shapes::StructureShape.new(name: 'StopTextTranslationJobResponse')
|
91
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')
|
92
102
|
TargetLanguageCodeStringList = Shapes::ListShape.new(name: 'TargetLanguageCodeStringList')
|
93
103
|
Term = Shapes::StructureShape.new(name: 'Term')
|
94
104
|
TermList = Shapes::ListShape.new(name: 'TermList')
|
@@ -105,12 +115,15 @@ module Aws::Translate
|
|
105
115
|
TextTranslationJobPropertiesList = Shapes::ListShape.new(name: 'TextTranslationJobPropertiesList')
|
106
116
|
Timestamp = Shapes::TimestampShape.new(name: 'Timestamp')
|
107
117
|
TooManyRequestsException = Shapes::StructureShape.new(name: 'TooManyRequestsException')
|
118
|
+
TooManyTagsException = Shapes::StructureShape.new(name: 'TooManyTagsException')
|
108
119
|
TranslateTextRequest = Shapes::StructureShape.new(name: 'TranslateTextRequest')
|
109
120
|
TranslateTextResponse = Shapes::StructureShape.new(name: 'TranslateTextResponse')
|
110
121
|
TranslationSettings = Shapes::StructureShape.new(name: 'TranslationSettings')
|
111
122
|
UnboundedLengthString = Shapes::StringShape.new(name: 'UnboundedLengthString')
|
112
123
|
UnsupportedDisplayLanguageCodeException = Shapes::StructureShape.new(name: 'UnsupportedDisplayLanguageCodeException')
|
113
124
|
UnsupportedLanguagePairException = Shapes::StructureShape.new(name: 'UnsupportedLanguagePairException')
|
125
|
+
UntagResourceRequest = Shapes::StructureShape.new(name: 'UntagResourceRequest')
|
126
|
+
UntagResourceResponse = Shapes::StructureShape.new(name: 'UntagResourceResponse')
|
114
127
|
UpdateParallelDataRequest = Shapes::StructureShape.new(name: 'UpdateParallelDataRequest')
|
115
128
|
UpdateParallelDataResponse = Shapes::StructureShape.new(name: 'UpdateParallelDataResponse')
|
116
129
|
|
@@ -131,6 +144,7 @@ module Aws::Translate
|
|
131
144
|
CreateParallelDataRequest.add_member(:parallel_data_config, Shapes::ShapeRef.new(shape: ParallelDataConfig, required: true, location_name: "ParallelDataConfig"))
|
132
145
|
CreateParallelDataRequest.add_member(:encryption_key, Shapes::ShapeRef.new(shape: EncryptionKey, location_name: "EncryptionKey"))
|
133
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"))
|
134
148
|
CreateParallelDataRequest.struct_class = Types::CreateParallelDataRequest
|
135
149
|
|
136
150
|
CreateParallelDataResponse.add_member(:name, Shapes::ShapeRef.new(shape: ResourceName, location_name: "Name"))
|
@@ -184,6 +198,7 @@ module Aws::Translate
|
|
184
198
|
ImportTerminologyRequest.add_member(:description, Shapes::ShapeRef.new(shape: Description, location_name: "Description"))
|
185
199
|
ImportTerminologyRequest.add_member(:terminology_data, Shapes::ShapeRef.new(shape: TerminologyData, required: true, location_name: "TerminologyData"))
|
186
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"))
|
187
202
|
ImportTerminologyRequest.struct_class = Types::ImportTerminologyRequest
|
188
203
|
|
189
204
|
ImportTerminologyResponse.add_member(:terminology_properties, Shapes::ShapeRef.new(shape: TerminologyProperties, location_name: "TerminologyProperties"))
|
@@ -240,6 +255,12 @@ module Aws::Translate
|
|
240
255
|
ListParallelDataResponse.add_member(:next_token, Shapes::ShapeRef.new(shape: NextToken, location_name: "NextToken"))
|
241
256
|
ListParallelDataResponse.struct_class = Types::ListParallelDataResponse
|
242
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
|
+
|
243
264
|
ListTerminologiesRequest.add_member(:next_token, Shapes::ShapeRef.new(shape: NextToken, location_name: "NextToken"))
|
244
265
|
ListTerminologiesRequest.add_member(:max_results, Shapes::ShapeRef.new(shape: MaxResultsInteger, location_name: "MaxResults"))
|
245
266
|
ListTerminologiesRequest.struct_class = Types::ListTerminologiesRequest
|
@@ -321,6 +342,20 @@ module Aws::Translate
|
|
321
342
|
StopTextTranslationJobResponse.add_member(:job_status, Shapes::ShapeRef.new(shape: JobStatus, location_name: "JobStatus"))
|
322
343
|
StopTextTranslationJobResponse.struct_class = Types::StopTextTranslationJobResponse
|
323
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
|
+
|
324
359
|
TargetLanguageCodeStringList.member = Shapes::ShapeRef.new(shape: LanguageCodeString)
|
325
360
|
|
326
361
|
Term.add_member(:source_text, Shapes::ShapeRef.new(shape: String, location_name: "SourceText"))
|
@@ -387,6 +422,10 @@ module Aws::Translate
|
|
387
422
|
TooManyRequestsException.add_member(:message, Shapes::ShapeRef.new(shape: String, location_name: "Message"))
|
388
423
|
TooManyRequestsException.struct_class = Types::TooManyRequestsException
|
389
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
|
+
|
390
429
|
TranslateTextRequest.add_member(:text, Shapes::ShapeRef.new(shape: BoundedLengthString, required: true, location_name: "Text"))
|
391
430
|
TranslateTextRequest.add_member(:terminology_names, Shapes::ShapeRef.new(shape: ResourceNameList, location_name: "TerminologyNames"))
|
392
431
|
TranslateTextRequest.add_member(:source_language_code, Shapes::ShapeRef.new(shape: LanguageCodeString, required: true, location_name: "SourceLanguageCode"))
|
@@ -414,6 +453,12 @@ module Aws::Translate
|
|
414
453
|
UnsupportedLanguagePairException.add_member(:target_language_code, Shapes::ShapeRef.new(shape: LanguageCodeString, location_name: "TargetLanguageCode"))
|
415
454
|
UnsupportedLanguagePairException.struct_class = Types::UnsupportedLanguagePairException
|
416
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
|
+
|
417
462
|
UpdateParallelDataRequest.add_member(:name, Shapes::ShapeRef.new(shape: ResourceName, required: true, location_name: "Name"))
|
418
463
|
UpdateParallelDataRequest.add_member(:description, Shapes::ShapeRef.new(shape: Description, location_name: "Description"))
|
419
464
|
UpdateParallelDataRequest.add_member(:parallel_data_config, Shapes::ShapeRef.new(shape: ParallelDataConfig, required: true, location_name: "ParallelDataConfig"))
|
@@ -455,7 +500,9 @@ module Aws::Translate
|
|
455
500
|
o.errors << Shapes::ShapeRef.new(shape: InvalidRequestException)
|
456
501
|
o.errors << Shapes::ShapeRef.new(shape: LimitExceededException)
|
457
502
|
o.errors << Shapes::ShapeRef.new(shape: TooManyRequestsException)
|
503
|
+
o.errors << Shapes::ShapeRef.new(shape: TooManyTagsException)
|
458
504
|
o.errors << Shapes::ShapeRef.new(shape: ConflictException)
|
505
|
+
o.errors << Shapes::ShapeRef.new(shape: ConcurrentModificationException)
|
459
506
|
o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
|
460
507
|
end)
|
461
508
|
|
@@ -527,6 +574,8 @@ module Aws::Translate
|
|
527
574
|
o.errors << Shapes::ShapeRef.new(shape: InvalidParameterValueException)
|
528
575
|
o.errors << Shapes::ShapeRef.new(shape: LimitExceededException)
|
529
576
|
o.errors << Shapes::ShapeRef.new(shape: TooManyRequestsException)
|
577
|
+
o.errors << Shapes::ShapeRef.new(shape: TooManyTagsException)
|
578
|
+
o.errors << Shapes::ShapeRef.new(shape: ConcurrentModificationException)
|
530
579
|
o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
|
531
580
|
end)
|
532
581
|
|
@@ -565,6 +614,17 @@ module Aws::Translate
|
|
565
614
|
)
|
566
615
|
end)
|
567
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
|
+
|
568
628
|
api.add_operation(:list_terminologies, Seahorse::Model::Operation.new.tap do |o|
|
569
629
|
o.name = "ListTerminologies"
|
570
630
|
o.http_method = "POST"
|
@@ -625,6 +685,19 @@ module Aws::Translate
|
|
625
685
|
o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
|
626
686
|
end)
|
627
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
|
+
|
628
701
|
api.add_operation(:translate_text, Seahorse::Model::Operation.new.tap do |o|
|
629
702
|
o.name = "TranslateText"
|
630
703
|
o.http_method = "POST"
|
@@ -641,6 +714,18 @@ module Aws::Translate
|
|
641
714
|
o.errors << Shapes::ShapeRef.new(shape: ServiceUnavailableException)
|
642
715
|
end)
|
643
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
|
+
|
644
729
|
api.add_operation(:update_parallel_data, Seahorse::Model::Operation.new.tap do |o|
|
645
730
|
o.name = "UpdateParallelData"
|
646
731
|
o.http_method = "POST"
|
@@ -39,6 +39,7 @@ module Aws::Translate
|
|
39
39
|
# * {ServiceUnavailableException}
|
40
40
|
# * {TextSizeLimitExceededException}
|
41
41
|
# * {TooManyRequestsException}
|
42
|
+
# * {TooManyTagsException}
|
42
43
|
# * {UnsupportedDisplayLanguageCodeException}
|
43
44
|
# * {UnsupportedLanguagePairException}
|
44
45
|
#
|
@@ -233,6 +234,26 @@ module Aws::Translate
|
|
233
234
|
end
|
234
235
|
end
|
235
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
|
+
|
236
257
|
class UnsupportedDisplayLanguageCodeException < ServiceError
|
237
258
|
|
238
259
|
# @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,16 @@ module Aws::Translate
|
|
108
114
|
# not need to pass this option.
|
109
115
|
# @return [String]
|
110
116
|
#
|
117
|
+
# @!attribute [rw] tags
|
118
|
+
# Tags to be associated with this resource. A tag is a key-value pair
|
119
|
+
# that adds metadata to a resource. Each tag key for the resource must
|
120
|
+
# be unique. For more information, see [ Tagging your resources][1].
|
121
|
+
#
|
122
|
+
#
|
123
|
+
#
|
124
|
+
# [1]: https://docs.aws.amazon.com/translate/latest/dg/tagging.html
|
125
|
+
# @return [Array<Types::Tag>]
|
126
|
+
#
|
111
127
|
# @see http://docs.aws.amazon.com/goto/WebAPI/translate-2017-07-01/CreateParallelDataRequest AWS API Documentation
|
112
128
|
#
|
113
129
|
class CreateParallelDataRequest < Struct.new(
|
@@ -115,7 +131,8 @@ module Aws::Translate
|
|
115
131
|
:description,
|
116
132
|
:parallel_data_config,
|
117
133
|
:encryption_key,
|
118
|
-
:client_token
|
134
|
+
:client_token,
|
135
|
+
:tags)
|
119
136
|
SENSITIVE = []
|
120
137
|
include Aws::Structure
|
121
138
|
end
|
@@ -444,6 +461,12 @@ module Aws::Translate
|
|
444
461
|
# type: "KMS", # required, accepts KMS
|
445
462
|
# id: "EncryptionKeyID", # required
|
446
463
|
# },
|
464
|
+
# tags: [
|
465
|
+
# {
|
466
|
+
# key: "TagKey", # required
|
467
|
+
# value: "TagValue", # required
|
468
|
+
# },
|
469
|
+
# ],
|
447
470
|
# }
|
448
471
|
#
|
449
472
|
# @!attribute [rw] name
|
@@ -469,6 +492,16 @@ module Aws::Translate
|
|
469
492
|
# The encryption key for the custom terminology being imported.
|
470
493
|
# @return [Types::EncryptionKey]
|
471
494
|
#
|
495
|
+
# @!attribute [rw] tags
|
496
|
+
# Tags to be associated with this resource. A tag is a key-value pair
|
497
|
+
# that adds metadata to a resource. Each tag key for the resource must
|
498
|
+
# be unique. For more information, see [ Tagging your resources][1].
|
499
|
+
#
|
500
|
+
#
|
501
|
+
#
|
502
|
+
# [1]: https://docs.aws.amazon.com/translate/latest/dg/tagging.html
|
503
|
+
# @return [Array<Types::Tag>]
|
504
|
+
#
|
472
505
|
# @see http://docs.aws.amazon.com/goto/WebAPI/translate-2017-07-01/ImportTerminologyRequest AWS API Documentation
|
473
506
|
#
|
474
507
|
class ImportTerminologyRequest < Struct.new(
|
@@ -476,7 +509,8 @@ module Aws::Translate
|
|
476
509
|
:merge_strategy,
|
477
510
|
:description,
|
478
511
|
:terminology_data,
|
479
|
-
:encryption_key
|
512
|
+
:encryption_key,
|
513
|
+
:tags)
|
480
514
|
SENSITIVE = []
|
481
515
|
include Aws::Structure
|
482
516
|
end
|
@@ -791,6 +825,42 @@ module Aws::Translate
|
|
791
825
|
include Aws::Structure
|
792
826
|
end
|
793
827
|
|
828
|
+
# @note When making an API call, you may pass ListTagsForResourceRequest
|
829
|
+
# data as a hash:
|
830
|
+
#
|
831
|
+
# {
|
832
|
+
# resource_arn: "ResourceArn", # required
|
833
|
+
# }
|
834
|
+
#
|
835
|
+
# @!attribute [rw] resource_arn
|
836
|
+
# The Amazon Resource Name (ARN) of the given Amazon Translate
|
837
|
+
# resource you are querying.
|
838
|
+
# @return [String]
|
839
|
+
#
|
840
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/translate-2017-07-01/ListTagsForResourceRequest AWS API Documentation
|
841
|
+
#
|
842
|
+
class ListTagsForResourceRequest < Struct.new(
|
843
|
+
:resource_arn)
|
844
|
+
SENSITIVE = []
|
845
|
+
include Aws::Structure
|
846
|
+
end
|
847
|
+
|
848
|
+
# @!attribute [rw] tags
|
849
|
+
# Tags associated with the Amazon Translate resource being queried. A
|
850
|
+
# tag is a key-value pair that adds as a metadata to a resource used
|
851
|
+
# by Amazon Translate. For example, a tag with "Sales" as the key
|
852
|
+
# might be added to a resource to indicate its use by the sales
|
853
|
+
# department.
|
854
|
+
# @return [Array<Types::Tag>]
|
855
|
+
#
|
856
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/translate-2017-07-01/ListTagsForResourceResponse AWS API Documentation
|
857
|
+
#
|
858
|
+
class ListTagsForResourceResponse < Struct.new(
|
859
|
+
:tags)
|
860
|
+
SENSITIVE = []
|
861
|
+
include Aws::Structure
|
862
|
+
end
|
863
|
+
|
794
864
|
# @note When making an API call, you may pass ListTerminologiesRequest
|
795
865
|
# data as a hash:
|
796
866
|
#
|
@@ -1172,20 +1242,36 @@ module Aws::Translate
|
|
1172
1242
|
# @!attribute [rw] data_access_role_arn
|
1173
1243
|
# The Amazon Resource Name (ARN) of an AWS Identity Access and
|
1174
1244
|
# Management (IAM) role that grants Amazon Translate read access to
|
1175
|
-
# your input data. For more information, see
|
1176
|
-
#
|
1245
|
+
# your input data. For more information, see [Identity and access
|
1246
|
+
# management ][1].
|
1247
|
+
#
|
1248
|
+
#
|
1249
|
+
#
|
1250
|
+
# [1]: https://docs.aws.amazon.com/translate/latest/dg/identity-and-access-management.html
|
1177
1251
|
# @return [String]
|
1178
1252
|
#
|
1179
1253
|
# @!attribute [rw] source_language_code
|
1180
1254
|
# The language code of the input language. For a list of language
|
1181
|
-
# codes, see
|
1255
|
+
# codes, see [Supported languages][1].
|
1182
1256
|
#
|
1183
1257
|
# Amazon Translate does not automatically detect a source language
|
1184
1258
|
# during batch translation jobs.
|
1259
|
+
#
|
1260
|
+
#
|
1261
|
+
#
|
1262
|
+
# [1]: https://docs.aws.amazon.com/translate/latest/dg/what-is-languages.html
|
1185
1263
|
# @return [String]
|
1186
1264
|
#
|
1187
1265
|
# @!attribute [rw] target_language_codes
|
1188
|
-
# The
|
1266
|
+
# The target languages of the translation job. Enter up to 10 language
|
1267
|
+
# codes. Each input file is translated into each target language.
|
1268
|
+
#
|
1269
|
+
# Each language code is two or five characters long. For a list of
|
1270
|
+
# language codes, see [Supported languages][1].
|
1271
|
+
#
|
1272
|
+
#
|
1273
|
+
#
|
1274
|
+
# [1]: https://docs.aws.amazon.com/translate/latest/dg/what-is-languages.html
|
1189
1275
|
# @return [Array<String>]
|
1190
1276
|
#
|
1191
1277
|
# @!attribute [rw] terminology_names
|
@@ -1195,17 +1281,29 @@ module Aws::Translate
|
|
1195
1281
|
#
|
1196
1282
|
# This parameter accepts only one custom terminology resource.
|
1197
1283
|
#
|
1284
|
+
# If you specify multiple target languages for the job, translate uses
|
1285
|
+
# the designated terminology for each requested target language that
|
1286
|
+
# has an entry for the source term in the terminology file.
|
1287
|
+
#
|
1198
1288
|
# For a list of available custom terminology resources, use the
|
1199
1289
|
# ListTerminologies operation.
|
1200
1290
|
#
|
1201
|
-
# For more information, see
|
1291
|
+
# For more information, see [Custom terminology][1].
|
1292
|
+
#
|
1293
|
+
#
|
1294
|
+
#
|
1295
|
+
# [1]: https://docs.aws.amazon.com/translate/latest/dg/how-custom-terminology.html
|
1202
1296
|
# @return [Array<String>]
|
1203
1297
|
#
|
1204
1298
|
# @!attribute [rw] parallel_data_names
|
1205
1299
|
# The name of a parallel data resource to add to the translation job.
|
1206
1300
|
# This resource consists of examples that show how you want segments
|
1207
|
-
# of text to be translated.
|
1208
|
-
#
|
1301
|
+
# of text to be translated. If you specify multiple target languages
|
1302
|
+
# for the job, the parallel data file must include translations for
|
1303
|
+
# all the target languages.
|
1304
|
+
#
|
1305
|
+
# When you add parallel data to a translation job, you create an
|
1306
|
+
# *Active Custom Translation* job.
|
1209
1307
|
#
|
1210
1308
|
# This parameter accepts only one parallel data resource.
|
1211
1309
|
#
|
@@ -1218,11 +1316,13 @@ module Aws::Translate
|
|
1218
1316
|
# For a list of available parallel data resources, use the
|
1219
1317
|
# ListParallelData operation.
|
1220
1318
|
#
|
1221
|
-
# For more information, see
|
1319
|
+
# For more information, see [ Customizing your translations with
|
1320
|
+
# parallel data][2].
|
1222
1321
|
#
|
1223
1322
|
#
|
1224
1323
|
#
|
1225
1324
|
# [1]: http://aws.amazon.com/translate/pricing/
|
1325
|
+
# [2]: https://docs.aws.amazon.com/translate/latest/dg/customizing-translations-parallel-data.html
|
1226
1326
|
# @return [Array<String>]
|
1227
1327
|
#
|
1228
1328
|
# @!attribute [rw] client_token
|
@@ -1235,8 +1335,8 @@ module Aws::Translate
|
|
1235
1335
|
#
|
1236
1336
|
# @!attribute [rw] settings
|
1237
1337
|
# Settings to configure your translation output, including the option
|
1238
|
-
# to
|
1239
|
-
#
|
1338
|
+
# to set the formality level of the output text and the option to mask
|
1339
|
+
# profane words and phrases.
|
1240
1340
|
# @return [Types::TranslationSettings]
|
1241
1341
|
#
|
1242
1342
|
# @see http://docs.aws.amazon.com/goto/WebAPI/translate-2017-07-01/StartTextTranslationJobRequest AWS API Documentation
|
@@ -1330,6 +1430,73 @@ module Aws::Translate
|
|
1330
1430
|
include Aws::Structure
|
1331
1431
|
end
|
1332
1432
|
|
1433
|
+
# A key-value pair that adds as a metadata to a resource used by Amazon
|
1434
|
+
# Translate.
|
1435
|
+
#
|
1436
|
+
# @note When making an API call, you may pass Tag
|
1437
|
+
# data as a hash:
|
1438
|
+
#
|
1439
|
+
# {
|
1440
|
+
# key: "TagKey", # required
|
1441
|
+
# value: "TagValue", # required
|
1442
|
+
# }
|
1443
|
+
#
|
1444
|
+
# @!attribute [rw] key
|
1445
|
+
# The initial part of a key-value pair that forms a tag associated
|
1446
|
+
# with a given resource.
|
1447
|
+
# @return [String]
|
1448
|
+
#
|
1449
|
+
# @!attribute [rw] value
|
1450
|
+
# The second part of a key-value pair that forms a tag associated with
|
1451
|
+
# a given resource.
|
1452
|
+
# @return [String]
|
1453
|
+
#
|
1454
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/translate-2017-07-01/Tag AWS API Documentation
|
1455
|
+
#
|
1456
|
+
class Tag < Struct.new(
|
1457
|
+
:key,
|
1458
|
+
:value)
|
1459
|
+
SENSITIVE = []
|
1460
|
+
include Aws::Structure
|
1461
|
+
end
|
1462
|
+
|
1463
|
+
# @note When making an API call, you may pass TagResourceRequest
|
1464
|
+
# data as a hash:
|
1465
|
+
#
|
1466
|
+
# {
|
1467
|
+
# resource_arn: "ResourceArn", # required
|
1468
|
+
# tags: [ # required
|
1469
|
+
# {
|
1470
|
+
# key: "TagKey", # required
|
1471
|
+
# value: "TagValue", # required
|
1472
|
+
# },
|
1473
|
+
# ],
|
1474
|
+
# }
|
1475
|
+
#
|
1476
|
+
# @!attribute [rw] resource_arn
|
1477
|
+
# The Amazon Resource Name (ARN) of the given Amazon Translate
|
1478
|
+
# resource to which you want to associate the tags.
|
1479
|
+
# @return [String]
|
1480
|
+
#
|
1481
|
+
# @!attribute [rw] tags
|
1482
|
+
# Tags being associated with a specific Amazon Translate resource.
|
1483
|
+
# There can be a maximum of 50 tags (both existing and pending)
|
1484
|
+
# associated with a specific resource.
|
1485
|
+
# @return [Array<Types::Tag>]
|
1486
|
+
#
|
1487
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/translate-2017-07-01/TagResourceRequest AWS API Documentation
|
1488
|
+
#
|
1489
|
+
class TagResourceRequest < Struct.new(
|
1490
|
+
:resource_arn,
|
1491
|
+
:tags)
|
1492
|
+
SENSITIVE = []
|
1493
|
+
include Aws::Structure
|
1494
|
+
end
|
1495
|
+
|
1496
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/translate-2017-07-01/TagResourceResponse AWS API Documentation
|
1497
|
+
#
|
1498
|
+
class TagResourceResponse < Aws::EmptyStructure; end
|
1499
|
+
|
1333
1500
|
# The term being translated by the custom terminology.
|
1334
1501
|
#
|
1335
1502
|
# @!attribute [rw] source_text
|
@@ -1716,6 +1883,23 @@ module Aws::Translate
|
|
1716
1883
|
include Aws::Structure
|
1717
1884
|
end
|
1718
1885
|
|
1886
|
+
# You have added too many tags to this resource. The maximum is 50 tags.
|
1887
|
+
#
|
1888
|
+
# @!attribute [rw] message
|
1889
|
+
# @return [String]
|
1890
|
+
#
|
1891
|
+
# @!attribute [rw] resource_arn
|
1892
|
+
# @return [String]
|
1893
|
+
#
|
1894
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/translate-2017-07-01/TooManyTagsException AWS API Documentation
|
1895
|
+
#
|
1896
|
+
class TooManyTagsException < Struct.new(
|
1897
|
+
:message,
|
1898
|
+
:resource_arn)
|
1899
|
+
SENSITIVE = []
|
1900
|
+
include Aws::Structure
|
1901
|
+
end
|
1902
|
+
|
1719
1903
|
# @note When making an API call, you may pass TranslateTextRequest
|
1720
1904
|
# data as a hash:
|
1721
1905
|
#
|
@@ -1746,11 +1930,11 @@ module Aws::Translate
|
|
1746
1930
|
# @!attribute [rw] source_language_code
|
1747
1931
|
# The language code for the language of the source text. The language
|
1748
1932
|
# must be a language supported by Amazon Translate. For a list of
|
1749
|
-
# language codes, see
|
1933
|
+
# language codes, see [Supported languages][1].
|
1750
1934
|
#
|
1751
1935
|
# To have Amazon Translate determine the source language of your text,
|
1752
1936
|
# you can specify `auto` in the `SourceLanguageCode` field. If you
|
1753
|
-
# specify `auto`, Amazon Translate will call [Amazon Comprehend][
|
1937
|
+
# specify `auto`, Amazon Translate will call [Amazon Comprehend][2] to
|
1754
1938
|
# determine the source language.
|
1755
1939
|
#
|
1756
1940
|
# <note markdown="1"> If you specify `auto`, you must send the `TranslateText` request in
|
@@ -1761,7 +1945,8 @@ module Aws::Translate
|
|
1761
1945
|
#
|
1762
1946
|
#
|
1763
1947
|
#
|
1764
|
-
# [1]: https://docs.aws.amazon.com/
|
1948
|
+
# [1]: https://docs.aws.amazon.com/translate/latest/dg/what-is-languages.html
|
1949
|
+
# [2]: https://docs.aws.amazon.com/comprehend/latest/dg/comprehend-general.html
|
1765
1950
|
# @return [String]
|
1766
1951
|
#
|
1767
1952
|
# @!attribute [rw] target_language_code
|
@@ -1820,7 +2005,8 @@ module Aws::Translate
|
|
1820
2005
|
include Aws::Structure
|
1821
2006
|
end
|
1822
2007
|
|
1823
|
-
#
|
2008
|
+
# Optional settings that configure the translation output. Use these
|
2009
|
+
# settings for real time translations and asynchronous translation jobs.
|
1824
2010
|
#
|
1825
2011
|
# @note When making an API call, you may pass TranslationSettings
|
1826
2012
|
# data as a hash:
|
@@ -1832,25 +2018,23 @@ module Aws::Translate
|
|
1832
2018
|
#
|
1833
2019
|
# @!attribute [rw] formality
|
1834
2020
|
# You can optionally specify the desired level of formality for
|
1835
|
-
#
|
1836
|
-
#
|
2021
|
+
# translations to supported target languages. The formality setting
|
2022
|
+
# controls the level of formal language usage (also known as
|
1837
2023
|
# [register][1]) in the translation output. You can set the value to
|
1838
2024
|
# informal or formal. If you don't specify a value for formality, or
|
1839
2025
|
# if the target language doesn't support formality, the translation
|
1840
2026
|
# will ignore the formality setting.
|
1841
2027
|
#
|
1842
|
-
#
|
1843
|
-
#
|
1844
|
-
# throws an exception (InvalidRequestException).
|
2028
|
+
# If you specify multiple target languages for the job, translate
|
2029
|
+
# ignores the formality setting for any unsupported target language.
|
1845
2030
|
#
|
1846
|
-
# For target languages that support formality, see [
|
1847
|
-
#
|
1848
|
-
# Guide][2].
|
2031
|
+
# For a list of target languages that support formality, see [Setting
|
2032
|
+
# Formality][2] in the Amazon Translate Developer Guide.
|
1849
2033
|
#
|
1850
2034
|
#
|
1851
2035
|
#
|
1852
2036
|
# [1]: https://en.wikipedia.org/wiki/Register_(sociolinguistics)
|
1853
|
-
# [2]: https://docs.aws.amazon.com/translate/latest/dg/
|
2037
|
+
# [2]: https://docs.aws.amazon.com/translate/latest/dg/customizing-translations-formality.html
|
1854
2038
|
# @return [String]
|
1855
2039
|
#
|
1856
2040
|
# @!attribute [rw] profanity
|
@@ -1864,12 +2048,16 @@ module Aws::Translate
|
|
1864
2048
|
#
|
1865
2049
|
# Amazon Translate doesn't detect profanity in all of its supported
|
1866
2050
|
# languages. For languages that support profanity detection, see
|
1867
|
-
# [
|
1868
|
-
# Developer Guide][1].
|
2051
|
+
# [Masking profanity][1] in the Amazon Translate Developer Guide.
|
1869
2052
|
#
|
2053
|
+
# If you specify multiple target languages for the job, all the target
|
2054
|
+
# languages must support profanity masking. If any of the target
|
2055
|
+
# languages don't support profanity masking, the translation job
|
2056
|
+
# won't mask profanity for any target language.
|
1870
2057
|
#
|
1871
2058
|
#
|
1872
|
-
#
|
2059
|
+
#
|
2060
|
+
# [1]: https://docs.aws.amazon.com/translate/latest/dg/customizing-translations-profanity.html
|
1873
2061
|
# @return [String]
|
1874
2062
|
#
|
1875
2063
|
# @see http://docs.aws.amazon.com/goto/WebAPI/translate-2017-07-01/TranslationSettings AWS API Documentation
|
@@ -1901,7 +2089,11 @@ module Aws::Translate
|
|
1901
2089
|
|
1902
2090
|
# Amazon Translate does not support translation from the language of the
|
1903
2091
|
# source text into the requested target language. For more information,
|
1904
|
-
# see
|
2092
|
+
# see [Error messages][1].
|
2093
|
+
#
|
2094
|
+
#
|
2095
|
+
#
|
2096
|
+
# [1]: https://docs.aws.amazon.com/translate/latest/dg/how-to-error-msg.html
|
1905
2097
|
#
|
1906
2098
|
# @!attribute [rw] message
|
1907
2099
|
# @return [String]
|
@@ -1924,6 +2116,38 @@ module Aws::Translate
|
|
1924
2116
|
include Aws::Structure
|
1925
2117
|
end
|
1926
2118
|
|
2119
|
+
# @note When making an API call, you may pass UntagResourceRequest
|
2120
|
+
# data as a hash:
|
2121
|
+
#
|
2122
|
+
# {
|
2123
|
+
# resource_arn: "ResourceArn", # required
|
2124
|
+
# tag_keys: ["TagKey"], # required
|
2125
|
+
# }
|
2126
|
+
#
|
2127
|
+
# @!attribute [rw] resource_arn
|
2128
|
+
# The Amazon Resource Name (ARN) of the given Amazon Translate
|
2129
|
+
# resource from which you want to remove the tags.
|
2130
|
+
# @return [String]
|
2131
|
+
#
|
2132
|
+
# @!attribute [rw] tag_keys
|
2133
|
+
# The initial part of a key-value pair that forms a tag being removed
|
2134
|
+
# from a given resource. Keys must be unique and cannot be duplicated
|
2135
|
+
# for a particular resource.
|
2136
|
+
# @return [Array<String>]
|
2137
|
+
#
|
2138
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/translate-2017-07-01/UntagResourceRequest AWS API Documentation
|
2139
|
+
#
|
2140
|
+
class UntagResourceRequest < Struct.new(
|
2141
|
+
:resource_arn,
|
2142
|
+
:tag_keys)
|
2143
|
+
SENSITIVE = []
|
2144
|
+
include Aws::Structure
|
2145
|
+
end
|
2146
|
+
|
2147
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/translate-2017-07-01/UntagResourceResponse AWS API Documentation
|
2148
|
+
#
|
2149
|
+
class UntagResourceResponse < Aws::EmptyStructure; end
|
2150
|
+
|
1927
2151
|
# @note When making an API call, you may pass UpdateParallelDataRequest
|
1928
2152
|
# data as a hash:
|
1929
2153
|
#
|
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.47.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-10-13 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: aws-sdk-core
|