aws-sdk-translate 1.48.0 → 1.50.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 +13 -1
- data/VERSION +1 -1
- data/lib/aws-sdk-translate/client.rb +17 -21
- data/lib/aws-sdk-translate/client_api.rb +2 -1
- data/lib/aws-sdk-translate/endpoint_parameters.rb +3 -0
- data/lib/aws-sdk-translate/endpoint_provider.rb +35 -96
- data/lib/aws-sdk-translate/types.rb +20 -308
- 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: 676b1460e9db8fd1bcc03d1df47d3d617bc6a9df9ff82ce60af865c46efd4ddb
|
4
|
+
data.tar.gz: 2b4d28dc78204a0cd43cc80032a216c19edc46df8a0dc1dcba37182da2ff426d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: bc0fc2fbfe387ccf63f68192eb7a7bdf23bace72cdad74d9c405804a075e8541cbac36cb61774cdceebbe72dca511e6d365bb712a3fa007c5d93f46682c73ee7
|
7
|
+
data.tar.gz: a08f5040bae463631a74ed006231b8699b6bf7c7742d2833b3e53f987f56b7c3890eb422ed3de17ef2942ae6ac0e8f419df8cf843510c11721fb7c5560ab8c20
|
data/CHANGELOG.md
CHANGED
@@ -1,6 +1,18 @@
|
|
1
1
|
Unreleased Changes
|
2
2
|
------------------
|
3
3
|
|
4
|
+
1.50.0 (2023-01-18)
|
5
|
+
------------------
|
6
|
+
|
7
|
+
* Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
|
8
|
+
|
9
|
+
* Issue - Replace runtime endpoint resolution approach with generated ruby code.
|
10
|
+
|
11
|
+
1.49.0 (2022-12-15)
|
12
|
+
------------------
|
13
|
+
|
14
|
+
* Feature - Raised the input byte size limit of the Text field in the TranslateText API to 10000 bytes.
|
15
|
+
|
4
16
|
1.48.0 (2022-10-25)
|
5
17
|
------------------
|
6
18
|
|
@@ -250,4 +262,4 @@ Unreleased Changes
|
|
250
262
|
1.0.0 (2017-11-29)
|
251
263
|
------------------
|
252
264
|
|
253
|
-
* Feature - Initial release of `aws-sdk-translate`.
|
265
|
+
* Feature - Initial release of `aws-sdk-translate`.
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.
|
1
|
+
1.50.0
|
@@ -1044,22 +1044,17 @@ module Aws::Translate
|
|
1044
1044
|
|
1045
1045
|
# Starts an asynchronous batch translation job. Use batch translation
|
1046
1046
|
# jobs to translate large volumes of text across multiple documents at
|
1047
|
-
# once. For batch translation,
|
1048
|
-
# source
|
1049
|
-
#
|
1050
|
-
# languages. For more
|
1051
|
-
# processing][1]
|
1047
|
+
# once. For batch translation, you can input documents with different
|
1048
|
+
# source languages (specify `auto` as the source language). You can
|
1049
|
+
# specify one or more target languages. Batch translation translates
|
1050
|
+
# each input document into each of the target languages. For more
|
1051
|
+
# information, see [Asynchronous batch processing][1].
|
1052
1052
|
#
|
1053
1053
|
# Batch translation jobs can be described with the
|
1054
1054
|
# DescribeTextTranslationJob operation, listed with the
|
1055
1055
|
# ListTextTranslationJobs operation, and stopped with the
|
1056
1056
|
# StopTextTranslationJob operation.
|
1057
1057
|
#
|
1058
|
-
# <note markdown="1"> Amazon Translate does not support batch translation of multiple source
|
1059
|
-
# languages at once.
|
1060
|
-
#
|
1061
|
-
# </note>
|
1062
|
-
#
|
1063
1058
|
#
|
1064
1059
|
#
|
1065
1060
|
# [1]: https://docs.aws.amazon.com/translate/latest/dg/async.html
|
@@ -1085,11 +1080,12 @@ module Aws::Translate
|
|
1085
1080
|
# [1]: https://docs.aws.amazon.com/translate/latest/dg/identity-and-access-management.html
|
1086
1081
|
#
|
1087
1082
|
# @option params [required, String] :source_language_code
|
1088
|
-
# The language code of the input language.
|
1089
|
-
#
|
1090
|
-
#
|
1091
|
-
#
|
1092
|
-
#
|
1083
|
+
# The language code of the input language. Specify the language if all
|
1084
|
+
# input documents share the same language. If you don't know the
|
1085
|
+
# language of the source files, or your input documents contains
|
1086
|
+
# different source languages, select `auto`. Amazon Translate auto
|
1087
|
+
# detects the source language for each input document. For a list of
|
1088
|
+
# supported language codes, see [Supported languages][1].
|
1093
1089
|
#
|
1094
1090
|
#
|
1095
1091
|
#
|
@@ -1099,8 +1095,8 @@ module Aws::Translate
|
|
1099
1095
|
# The target languages of the translation job. Enter up to 10 language
|
1100
1096
|
# codes. Each input file is translated into each target language.
|
1101
1097
|
#
|
1102
|
-
# Each language code is
|
1103
|
-
#
|
1098
|
+
# Each language code is 2 or 5 characters long. For a list of language
|
1099
|
+
# codes, see [Supported languages][1].
|
1104
1100
|
#
|
1105
1101
|
#
|
1106
1102
|
#
|
@@ -1302,9 +1298,9 @@ module Aws::Translate
|
|
1302
1298
|
# [1]: https://docs.aws.amazon.com/translate/latest/dg/what-is-languages.html
|
1303
1299
|
#
|
1304
1300
|
# @option params [required, String] :text
|
1305
|
-
# The text to translate. The text string can be a maximum of
|
1306
|
-
# long. Depending on your character set, this may be fewer than
|
1307
|
-
# characters.
|
1301
|
+
# The text to translate. The text string can be a maximum of 10,000
|
1302
|
+
# bytes long. Depending on your character set, this may be fewer than
|
1303
|
+
# 10,000 characters.
|
1308
1304
|
#
|
1309
1305
|
# @option params [Array<String>] :terminology_names
|
1310
1306
|
# The name of the terminology list file to be used in the TranslateText
|
@@ -1486,7 +1482,7 @@ module Aws::Translate
|
|
1486
1482
|
params: params,
|
1487
1483
|
config: config)
|
1488
1484
|
context[:gem_name] = 'aws-sdk-translate'
|
1489
|
-
context[:gem_version] = '1.
|
1485
|
+
context[:gem_version] = '1.50.0'
|
1490
1486
|
Seahorse::Client::Request.new(handlers, context)
|
1491
1487
|
end
|
1492
1488
|
|
@@ -118,6 +118,7 @@ module Aws::Translate
|
|
118
118
|
TooManyTagsException = Shapes::StructureShape.new(name: 'TooManyTagsException')
|
119
119
|
TranslateTextRequest = Shapes::StructureShape.new(name: 'TranslateTextRequest')
|
120
120
|
TranslateTextResponse = Shapes::StructureShape.new(name: 'TranslateTextResponse')
|
121
|
+
TranslatedTextString = Shapes::StringShape.new(name: 'TranslatedTextString')
|
121
122
|
TranslationSettings = Shapes::StructureShape.new(name: 'TranslationSettings')
|
122
123
|
UnboundedLengthString = Shapes::StringShape.new(name: 'UnboundedLengthString')
|
123
124
|
UnsupportedDisplayLanguageCodeException = Shapes::StructureShape.new(name: 'UnsupportedDisplayLanguageCodeException')
|
@@ -433,7 +434,7 @@ module Aws::Translate
|
|
433
434
|
TranslateTextRequest.add_member(:settings, Shapes::ShapeRef.new(shape: TranslationSettings, location_name: "Settings"))
|
434
435
|
TranslateTextRequest.struct_class = Types::TranslateTextRequest
|
435
436
|
|
436
|
-
TranslateTextResponse.add_member(:translated_text, Shapes::ShapeRef.new(shape:
|
437
|
+
TranslateTextResponse.add_member(:translated_text, Shapes::ShapeRef.new(shape: TranslatedTextString, required: true, location_name: "TranslatedText"))
|
437
438
|
TranslateTextResponse.add_member(:source_language_code, Shapes::ShapeRef.new(shape: LanguageCodeString, required: true, location_name: "SourceLanguageCode"))
|
438
439
|
TranslateTextResponse.add_member(:target_language_code, Shapes::ShapeRef.new(shape: LanguageCodeString, required: true, location_name: "TargetLanguageCode"))
|
439
440
|
TranslateTextResponse.add_member(:applied_terminologies, Shapes::ShapeRef.new(shape: AppliedTerminologyList, location_name: "AppliedTerminologies"))
|
@@ -50,6 +50,9 @@ module Aws::Translate
|
|
50
50
|
|
51
51
|
def initialize(options = {})
|
52
52
|
self[:region] = options[:region]
|
53
|
+
if self[:region].nil?
|
54
|
+
raise ArgumentError, "Missing required EndpointParameter: :region"
|
55
|
+
end
|
53
56
|
self[:use_dual_stack] = options[:use_dual_stack]
|
54
57
|
self[:use_dual_stack] = false if self[:use_dual_stack].nil?
|
55
58
|
if self[:use_dual_stack].nil?
|
@@ -9,104 +9,43 @@
|
|
9
9
|
|
10
10
|
module Aws::Translate
|
11
11
|
class EndpointProvider
|
12
|
-
def
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
12
|
+
def resolve_endpoint(parameters)
|
13
|
+
region = parameters.region
|
14
|
+
use_dual_stack = parameters.use_dual_stack
|
15
|
+
use_fips = parameters.use_fips
|
16
|
+
endpoint = parameters.endpoint
|
17
|
+
if (partition_result = Aws::Endpoints::Matchers.aws_partition(region))
|
18
|
+
if Aws::Endpoints::Matchers.set?(endpoint)
|
19
|
+
if Aws::Endpoints::Matchers.boolean_equals?(use_fips, true)
|
20
|
+
raise ArgumentError, "Invalid Configuration: FIPS and custom endpoint are not supported"
|
21
|
+
end
|
22
|
+
if Aws::Endpoints::Matchers.boolean_equals?(use_dual_stack, true)
|
23
|
+
raise ArgumentError, "Invalid Configuration: Dualstack and custom endpoint are not supported"
|
24
|
+
end
|
25
|
+
return Aws::Endpoints::Endpoint.new(url: endpoint, headers: {}, properties: {})
|
26
|
+
end
|
27
|
+
if Aws::Endpoints::Matchers.boolean_equals?(use_fips, true) && Aws::Endpoints::Matchers.boolean_equals?(use_dual_stack, true)
|
28
|
+
if Aws::Endpoints::Matchers.boolean_equals?(true, Aws::Endpoints::Matchers.attr(partition_result, "supportsFIPS")) && Aws::Endpoints::Matchers.boolean_equals?(true, Aws::Endpoints::Matchers.attr(partition_result, "supportsDualStack"))
|
29
|
+
return Aws::Endpoints::Endpoint.new(url: "https://translate-fips.#{region}.#{partition_result['dualStackDnsSuffix']}", headers: {}, properties: {})
|
30
|
+
end
|
31
|
+
raise ArgumentError, "FIPS and DualStack are enabled, but this partition does not support one or both"
|
32
|
+
end
|
33
|
+
if Aws::Endpoints::Matchers.boolean_equals?(use_fips, true)
|
34
|
+
if Aws::Endpoints::Matchers.boolean_equals?(true, Aws::Endpoints::Matchers.attr(partition_result, "supportsFIPS"))
|
35
|
+
return Aws::Endpoints::Endpoint.new(url: "https://translate-fips.#{region}.#{partition_result['dnsSuffix']}", headers: {}, properties: {})
|
36
|
+
end
|
37
|
+
raise ArgumentError, "FIPS is enabled but this partition does not support FIPS"
|
38
|
+
end
|
39
|
+
if Aws::Endpoints::Matchers.boolean_equals?(use_dual_stack, true)
|
40
|
+
if Aws::Endpoints::Matchers.boolean_equals?(true, Aws::Endpoints::Matchers.attr(partition_result, "supportsDualStack"))
|
41
|
+
return Aws::Endpoints::Endpoint.new(url: "https://translate.#{region}.#{partition_result['dualStackDnsSuffix']}", headers: {}, properties: {})
|
42
|
+
end
|
43
|
+
raise ArgumentError, "DualStack is enabled but this partition does not support DualStack"
|
44
|
+
end
|
45
|
+
return Aws::Endpoints::Endpoint.new(url: "https://translate.#{region}.#{partition_result['dnsSuffix']}", headers: {}, properties: {})
|
21
46
|
end
|
22
|
-
|
23
|
-
end
|
47
|
+
raise ArgumentError, 'No endpoint could be resolved'
|
24
48
|
|
25
|
-
def resolve_endpoint(parameters)
|
26
|
-
@provider.resolve_endpoint(parameters)
|
27
49
|
end
|
28
|
-
|
29
|
-
# @api private
|
30
|
-
RULES = <<-JSON
|
31
|
-
eyJ2ZXJzaW9uIjoiMS4wIiwicGFyYW1ldGVycyI6eyJSZWdpb24iOnsiYnVp
|
32
|
-
bHRJbiI6IkFXUzo6UmVnaW9uIiwicmVxdWlyZWQiOmZhbHNlLCJkb2N1bWVu
|
33
|
-
dGF0aW9uIjoiVGhlIEFXUyByZWdpb24gdXNlZCB0byBkaXNwYXRjaCB0aGUg
|
34
|
-
cmVxdWVzdC4iLCJ0eXBlIjoiU3RyaW5nIn0sIlVzZUR1YWxTdGFjayI6eyJi
|
35
|
-
dWlsdEluIjoiQVdTOjpVc2VEdWFsU3RhY2siLCJyZXF1aXJlZCI6dHJ1ZSwi
|
36
|
-
ZGVmYXVsdCI6ZmFsc2UsImRvY3VtZW50YXRpb24iOiJXaGVuIHRydWUsIHVz
|
37
|
-
ZSB0aGUgZHVhbC1z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idHlwZSI6InRyZWUiLCJydWxlcyI6W3si
|
99
|
-
Y29uZGl0aW9ucyI6W10sImVuZHBvaW50Ijp7InVybCI6Imh0dHBzOi8vdHJh
|
100
|
-
bnNsYXRlLntSZWdpb259LntQYXJ0aXRpb25SZXN1bHQjZHVhbFN0YWNrRG5z
|
101
|
-
U3VmZml4fSIsInByb3BlcnRpZXMiOnt9LCJoZWFkZXJzIjp7fX0sInR5cGUi
|
102
|
-
OiJlbmRwb2ludCJ9XX0seyJjb25kaXRpb25zIjpbXSwiZXJyb3IiOiJEdWFs
|
103
|
-
U3RhY2sgaXMgZW5hYmxlZCBidXQgdGhpcyBwYXJ0aXRpb24gZG9lcyBub3Qg
|
104
|
-
c3VwcG9ydCBEdWFsU3RhY2siLCJ0eXBlIjoiZXJyb3IifV19LHsiY29uZGl0
|
105
|
-
aW9ucyI6W10sImVuZHBvaW50Ijp7InVybCI6Imh0dHBzOi8vdHJhbnNsYXRl
|
106
|
-
LntSZWdpb259LntQYXJ0aXRpb25SZXN1bHQjZG5zU3VmZml4fSIsInByb3Bl
|
107
|
-
cnRpZXMiOnt9LCJoZWFkZXJzIjp7fX0sInR5cGUiOiJlbmRwb2ludCJ9XX1d
|
108
|
-
fQ==
|
109
|
-
|
110
|
-
JSON
|
111
50
|
end
|
112
51
|
end
|
@@ -64,29 +64,6 @@ module Aws::Translate
|
|
64
64
|
include Aws::Structure
|
65
65
|
end
|
66
66
|
|
67
|
-
# @note When making an API call, you may pass CreateParallelDataRequest
|
68
|
-
# data as a hash:
|
69
|
-
#
|
70
|
-
# {
|
71
|
-
# name: "ResourceName", # required
|
72
|
-
# description: "Description",
|
73
|
-
# parallel_data_config: { # required
|
74
|
-
# s3_uri: "S3Uri", # required
|
75
|
-
# format: "TSV", # required, accepts TSV, CSV, TMX
|
76
|
-
# },
|
77
|
-
# encryption_key: {
|
78
|
-
# type: "KMS", # required, accepts KMS
|
79
|
-
# id: "EncryptionKeyID", # required
|
80
|
-
# },
|
81
|
-
# client_token: "ClientTokenString", # required
|
82
|
-
# tags: [
|
83
|
-
# {
|
84
|
-
# key: "TagKey", # required
|
85
|
-
# value: "TagValue", # required
|
86
|
-
# },
|
87
|
-
# ],
|
88
|
-
# }
|
89
|
-
#
|
90
67
|
# @!attribute [rw] name
|
91
68
|
# A custom name for the parallel data resource in Amazon Translate.
|
92
69
|
# You must assign a name that is unique in the account and region.
|
@@ -155,13 +132,6 @@ module Aws::Translate
|
|
155
132
|
include Aws::Structure
|
156
133
|
end
|
157
134
|
|
158
|
-
# @note When making an API call, you may pass DeleteParallelDataRequest
|
159
|
-
# data as a hash:
|
160
|
-
#
|
161
|
-
# {
|
162
|
-
# name: "ResourceName", # required
|
163
|
-
# }
|
164
|
-
#
|
165
135
|
# @!attribute [rw] name
|
166
136
|
# The name of the parallel data resource that is being deleted.
|
167
137
|
# @return [String]
|
@@ -191,13 +161,6 @@ module Aws::Translate
|
|
191
161
|
include Aws::Structure
|
192
162
|
end
|
193
163
|
|
194
|
-
# @note When making an API call, you may pass DeleteTerminologyRequest
|
195
|
-
# data as a hash:
|
196
|
-
#
|
197
|
-
# {
|
198
|
-
# name: "ResourceName", # required
|
199
|
-
# }
|
200
|
-
#
|
201
164
|
# @!attribute [rw] name
|
202
165
|
# The name of the custom terminology being deleted.
|
203
166
|
# @return [String]
|
@@ -210,13 +173,6 @@ module Aws::Translate
|
|
210
173
|
include Aws::Structure
|
211
174
|
end
|
212
175
|
|
213
|
-
# @note When making an API call, you may pass DescribeTextTranslationJobRequest
|
214
|
-
# data as a hash:
|
215
|
-
#
|
216
|
-
# {
|
217
|
-
# job_id: "JobId", # required
|
218
|
-
# }
|
219
|
-
#
|
220
176
|
# @!attribute [rw] job_id
|
221
177
|
# The identifier that Amazon Translate generated for the job. The
|
222
178
|
# StartTextTranslationJob operation returns this identifier in its
|
@@ -274,14 +230,6 @@ module Aws::Translate
|
|
274
230
|
|
275
231
|
# The encryption key used to encrypt this object.
|
276
232
|
#
|
277
|
-
# @note When making an API call, you may pass EncryptionKey
|
278
|
-
# data as a hash:
|
279
|
-
#
|
280
|
-
# {
|
281
|
-
# type: "KMS", # required, accepts KMS
|
282
|
-
# id: "EncryptionKeyID", # required
|
283
|
-
# }
|
284
|
-
#
|
285
233
|
# @!attribute [rw] type
|
286
234
|
# The type of encryption key used by Amazon Translate to encrypt this
|
287
235
|
# object.
|
@@ -301,13 +249,6 @@ module Aws::Translate
|
|
301
249
|
include Aws::Structure
|
302
250
|
end
|
303
251
|
|
304
|
-
# @note When making an API call, you may pass GetParallelDataRequest
|
305
|
-
# data as a hash:
|
306
|
-
#
|
307
|
-
# {
|
308
|
-
# name: "ResourceName", # required
|
309
|
-
# }
|
310
|
-
#
|
311
252
|
# @!attribute [rw] name
|
312
253
|
# The name of the parallel data resource that is being retrieved.
|
313
254
|
# @return [String]
|
@@ -370,14 +311,6 @@ module Aws::Translate
|
|
370
311
|
include Aws::Structure
|
371
312
|
end
|
372
313
|
|
373
|
-
# @note When making an API call, you may pass GetTerminologyRequest
|
374
|
-
# data as a hash:
|
375
|
-
#
|
376
|
-
# {
|
377
|
-
# name: "ResourceName", # required
|
378
|
-
# terminology_data_format: "CSV", # accepts CSV, TMX, TSV
|
379
|
-
# }
|
380
|
-
#
|
381
314
|
# @!attribute [rw] name
|
382
315
|
# The name of the custom terminology being retrieved.
|
383
316
|
# @return [String]
|
@@ -445,30 +378,6 @@ module Aws::Translate
|
|
445
378
|
include Aws::Structure
|
446
379
|
end
|
447
380
|
|
448
|
-
# @note When making an API call, you may pass ImportTerminologyRequest
|
449
|
-
# data as a hash:
|
450
|
-
#
|
451
|
-
# {
|
452
|
-
# name: "ResourceName", # required
|
453
|
-
# merge_strategy: "OVERWRITE", # required, accepts OVERWRITE
|
454
|
-
# description: "Description",
|
455
|
-
# terminology_data: { # required
|
456
|
-
# file: "data", # required
|
457
|
-
# format: "CSV", # required, accepts CSV, TMX, TSV
|
458
|
-
# directionality: "UNI", # accepts UNI, MULTI
|
459
|
-
# },
|
460
|
-
# encryption_key: {
|
461
|
-
# type: "KMS", # required, accepts KMS
|
462
|
-
# id: "EncryptionKeyID", # required
|
463
|
-
# },
|
464
|
-
# tags: [
|
465
|
-
# {
|
466
|
-
# key: "TagKey", # required
|
467
|
-
# value: "TagValue", # required
|
468
|
-
# },
|
469
|
-
# ],
|
470
|
-
# }
|
471
|
-
#
|
472
381
|
# @!attribute [rw] name
|
473
382
|
# The name of the custom terminology being imported.
|
474
383
|
# @return [String]
|
@@ -539,27 +448,11 @@ module Aws::Translate
|
|
539
448
|
# The input configuration properties for requesting a batch translation
|
540
449
|
# job.
|
541
450
|
#
|
542
|
-
# @note When making an API call, you may pass InputDataConfig
|
543
|
-
# data as a hash:
|
544
|
-
#
|
545
|
-
# {
|
546
|
-
# s3_uri: "S3Uri", # required
|
547
|
-
# content_type: "ContentType", # required
|
548
|
-
# }
|
549
|
-
#
|
550
451
|
# @!attribute [rw] s3_uri
|
551
452
|
# The URI of the AWS S3 folder that contains the input files. Amazon
|
552
|
-
# Translate translates all the files in the folder
|
553
|
-
# in the same Region as the API
|
554
|
-
#
|
555
|
-
# <note markdown="1"> The URI can also point to a single input document, or it can provide
|
556
|
-
# the prefix for a collection of input documents. For example. if you
|
557
|
-
# use the URI `S3://bucketName/prefix` and the prefix is a single
|
558
|
-
# file, Amazon Translate uses that files as input. If more than one
|
559
|
-
# file begins with the prefix, Amazon Translate uses all of them as
|
560
|
-
# input.
|
561
|
-
#
|
562
|
-
# </note>
|
453
|
+
# Translate translates all the files in the folder and all its
|
454
|
+
# sub-folders. The folder must be in the same Region as the API
|
455
|
+
# endpoint you are calling.
|
563
456
|
# @return [String]
|
564
457
|
#
|
565
458
|
# @!attribute [rw] content_type
|
@@ -721,15 +614,6 @@ module Aws::Translate
|
|
721
614
|
include Aws::Structure
|
722
615
|
end
|
723
616
|
|
724
|
-
# @note When making an API call, you may pass ListLanguagesRequest
|
725
|
-
# data as a hash:
|
726
|
-
#
|
727
|
-
# {
|
728
|
-
# display_language_code: "de", # accepts de, en, es, fr, it, ja, ko, pt, zh, zh-TW
|
729
|
-
# next_token: "NextToken",
|
730
|
-
# max_results: 1,
|
731
|
-
# }
|
732
|
-
#
|
733
617
|
# @!attribute [rw] display_language_code
|
734
618
|
# The language code for the language to use to display the language
|
735
619
|
# names in the response. The language code is `en` by default.
|
@@ -778,14 +662,6 @@ module Aws::Translate
|
|
778
662
|
include Aws::Structure
|
779
663
|
end
|
780
664
|
|
781
|
-
# @note When making an API call, you may pass ListParallelDataRequest
|
782
|
-
# data as a hash:
|
783
|
-
#
|
784
|
-
# {
|
785
|
-
# next_token: "NextToken",
|
786
|
-
# max_results: 1,
|
787
|
-
# }
|
788
|
-
#
|
789
665
|
# @!attribute [rw] next_token
|
790
666
|
# A string that specifies the next page of results to return in a
|
791
667
|
# paginated response.
|
@@ -825,13 +701,6 @@ module Aws::Translate
|
|
825
701
|
include Aws::Structure
|
826
702
|
end
|
827
703
|
|
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
704
|
# @!attribute [rw] resource_arn
|
836
705
|
# The Amazon Resource Name (ARN) of the given Amazon Translate
|
837
706
|
# resource you are querying.
|
@@ -861,14 +730,6 @@ module Aws::Translate
|
|
861
730
|
include Aws::Structure
|
862
731
|
end
|
863
732
|
|
864
|
-
# @note When making an API call, you may pass ListTerminologiesRequest
|
865
|
-
# data as a hash:
|
866
|
-
#
|
867
|
-
# {
|
868
|
-
# next_token: "NextToken",
|
869
|
-
# max_results: 1,
|
870
|
-
# }
|
871
|
-
#
|
872
733
|
# @!attribute [rw] next_token
|
873
734
|
# If the result of the request to ListTerminologies was truncated,
|
874
735
|
# include the NextToken to fetch the next group of custom
|
@@ -908,20 +769,6 @@ module Aws::Translate
|
|
908
769
|
include Aws::Structure
|
909
770
|
end
|
910
771
|
|
911
|
-
# @note When making an API call, you may pass ListTextTranslationJobsRequest
|
912
|
-
# data as a hash:
|
913
|
-
#
|
914
|
-
# {
|
915
|
-
# filter: {
|
916
|
-
# job_name: "JobName",
|
917
|
-
# job_status: "SUBMITTED", # accepts SUBMITTED, IN_PROGRESS, COMPLETED, COMPLETED_WITH_ERROR, FAILED, STOP_REQUESTED, STOPPED
|
918
|
-
# submitted_before_time: Time.now,
|
919
|
-
# submitted_after_time: Time.now,
|
920
|
-
# },
|
921
|
-
# next_token: "NextToken",
|
922
|
-
# max_results: 1,
|
923
|
-
# }
|
924
|
-
#
|
925
772
|
# @!attribute [rw] filter
|
926
773
|
# The parameters that specify which batch translation jobs to
|
927
774
|
# retrieve. Filters include job name, job status, and submission time.
|
@@ -967,17 +814,6 @@ module Aws::Translate
|
|
967
814
|
|
968
815
|
# The output configuration properties for a batch translation job.
|
969
816
|
#
|
970
|
-
# @note When making an API call, you may pass OutputDataConfig
|
971
|
-
# data as a hash:
|
972
|
-
#
|
973
|
-
# {
|
974
|
-
# s3_uri: "S3Uri", # required
|
975
|
-
# encryption_key: {
|
976
|
-
# type: "KMS", # required, accepts KMS
|
977
|
-
# id: "EncryptionKeyID", # required
|
978
|
-
# },
|
979
|
-
# }
|
980
|
-
#
|
981
817
|
# @!attribute [rw] s3_uri
|
982
818
|
# The URI of the S3 folder that contains a translation job's output
|
983
819
|
# file. The folder must be in the same Region as the API endpoint that
|
@@ -999,14 +835,6 @@ module Aws::Translate
|
|
999
835
|
|
1000
836
|
# Specifies the format and S3 location of the parallel data input file.
|
1001
837
|
#
|
1002
|
-
# @note When making an API call, you may pass ParallelDataConfig
|
1003
|
-
# data as a hash:
|
1004
|
-
#
|
1005
|
-
# {
|
1006
|
-
# s3_uri: "S3Uri", # required
|
1007
|
-
# format: "TSV", # required, accepts TSV, CSV, TMX
|
1008
|
-
# }
|
1009
|
-
#
|
1010
838
|
# @!attribute [rw] s3_uri
|
1011
839
|
# The URI of the Amazon S3 folder that contains the parallel data
|
1012
840
|
# input file. The folder must be in the same Region as the API
|
@@ -1198,34 +1026,6 @@ module Aws::Translate
|
|
1198
1026
|
include Aws::Structure
|
1199
1027
|
end
|
1200
1028
|
|
1201
|
-
# @note When making an API call, you may pass StartTextTranslationJobRequest
|
1202
|
-
# data as a hash:
|
1203
|
-
#
|
1204
|
-
# {
|
1205
|
-
# job_name: "JobName",
|
1206
|
-
# input_data_config: { # required
|
1207
|
-
# s3_uri: "S3Uri", # required
|
1208
|
-
# content_type: "ContentType", # required
|
1209
|
-
# },
|
1210
|
-
# output_data_config: { # required
|
1211
|
-
# s3_uri: "S3Uri", # required
|
1212
|
-
# encryption_key: {
|
1213
|
-
# type: "KMS", # required, accepts KMS
|
1214
|
-
# id: "EncryptionKeyID", # required
|
1215
|
-
# },
|
1216
|
-
# },
|
1217
|
-
# data_access_role_arn: "IamRoleArn", # required
|
1218
|
-
# source_language_code: "LanguageCodeString", # required
|
1219
|
-
# target_language_codes: ["LanguageCodeString"], # required
|
1220
|
-
# terminology_names: ["ResourceName"],
|
1221
|
-
# parallel_data_names: ["ResourceName"],
|
1222
|
-
# client_token: "ClientTokenString", # required
|
1223
|
-
# settings: {
|
1224
|
-
# formality: "FORMAL", # accepts FORMAL, INFORMAL
|
1225
|
-
# profanity: "MASK", # accepts MASK
|
1226
|
-
# },
|
1227
|
-
# }
|
1228
|
-
#
|
1229
1029
|
# @!attribute [rw] job_name
|
1230
1030
|
# The name of the batch translation job to be performed.
|
1231
1031
|
# @return [String]
|
@@ -1251,11 +1051,12 @@ module Aws::Translate
|
|
1251
1051
|
# @return [String]
|
1252
1052
|
#
|
1253
1053
|
# @!attribute [rw] source_language_code
|
1254
|
-
# The language code of the input language.
|
1255
|
-
#
|
1256
|
-
#
|
1257
|
-
#
|
1258
|
-
#
|
1054
|
+
# The language code of the input language. Specify the language if all
|
1055
|
+
# input documents share the same language. If you don't know the
|
1056
|
+
# language of the source files, or your input documents contains
|
1057
|
+
# different source languages, select `auto`. Amazon Translate auto
|
1058
|
+
# detects the source language for each input document. For a list of
|
1059
|
+
# supported language codes, see [Supported languages][1].
|
1259
1060
|
#
|
1260
1061
|
#
|
1261
1062
|
#
|
@@ -1266,8 +1067,8 @@ module Aws::Translate
|
|
1266
1067
|
# The target languages of the translation job. Enter up to 10 language
|
1267
1068
|
# codes. Each input file is translated into each target language.
|
1268
1069
|
#
|
1269
|
-
# Each language code is
|
1270
|
-
#
|
1070
|
+
# Each language code is 2 or 5 characters long. For a list of language
|
1071
|
+
# codes, see [Supported languages][1].
|
1271
1072
|
#
|
1272
1073
|
#
|
1273
1074
|
#
|
@@ -1393,13 +1194,6 @@ module Aws::Translate
|
|
1393
1194
|
include Aws::Structure
|
1394
1195
|
end
|
1395
1196
|
|
1396
|
-
# @note When making an API call, you may pass StopTextTranslationJobRequest
|
1397
|
-
# data as a hash:
|
1398
|
-
#
|
1399
|
-
# {
|
1400
|
-
# job_id: "JobId", # required
|
1401
|
-
# }
|
1402
|
-
#
|
1403
1197
|
# @!attribute [rw] job_id
|
1404
1198
|
# The job ID of the job to be stopped.
|
1405
1199
|
# @return [String]
|
@@ -1433,14 +1227,6 @@ module Aws::Translate
|
|
1433
1227
|
# A key-value pair that adds as a metadata to a resource used by Amazon
|
1434
1228
|
# Translate.
|
1435
1229
|
#
|
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
1230
|
# @!attribute [rw] key
|
1445
1231
|
# The initial part of a key-value pair that forms a tag associated
|
1446
1232
|
# with a given resource.
|
@@ -1460,19 +1246,6 @@ module Aws::Translate
|
|
1460
1246
|
include Aws::Structure
|
1461
1247
|
end
|
1462
1248
|
|
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
1249
|
# @!attribute [rw] resource_arn
|
1477
1250
|
# The Amazon Resource Name (ARN) of the given Amazon Translate
|
1478
1251
|
# resource to which you want to associate the tags.
|
@@ -1525,15 +1298,6 @@ module Aws::Translate
|
|
1525
1298
|
#
|
1526
1299
|
# [1]: https://docs.aws.amazon.com/translate/latest/dg/creating-custom-terminology.html
|
1527
1300
|
#
|
1528
|
-
# @note When making an API call, you may pass TerminologyData
|
1529
|
-
# data as a hash:
|
1530
|
-
#
|
1531
|
-
# {
|
1532
|
-
# file: "data", # required
|
1533
|
-
# format: "CSV", # required, accepts CSV, TMX, TSV
|
1534
|
-
# directionality: "UNI", # accepts UNI, MULTI
|
1535
|
-
# }
|
1536
|
-
#
|
1537
1301
|
# @!attribute [rw] file
|
1538
1302
|
# The file containing the custom terminology data. Your version of the
|
1539
1303
|
# AWS SDK performs a Base64-encoding on this field before sending a
|
@@ -1731,16 +1495,6 @@ module Aws::Translate
|
|
1731
1495
|
# Provides information for filtering a list of translation jobs. For
|
1732
1496
|
# more information, see ListTextTranslationJobs.
|
1733
1497
|
#
|
1734
|
-
# @note When making an API call, you may pass TextTranslationJobFilter
|
1735
|
-
# data as a hash:
|
1736
|
-
#
|
1737
|
-
# {
|
1738
|
-
# job_name: "JobName",
|
1739
|
-
# job_status: "SUBMITTED", # accepts SUBMITTED, IN_PROGRESS, COMPLETED, COMPLETED_WITH_ERROR, FAILED, STOP_REQUESTED, STOPPED
|
1740
|
-
# submitted_before_time: Time.now,
|
1741
|
-
# submitted_after_time: Time.now,
|
1742
|
-
# }
|
1743
|
-
#
|
1744
1498
|
# @!attribute [rw] job_name
|
1745
1499
|
# Filters the list of jobs by name.
|
1746
1500
|
# @return [String]
|
@@ -1900,24 +1654,10 @@ module Aws::Translate
|
|
1900
1654
|
include Aws::Structure
|
1901
1655
|
end
|
1902
1656
|
|
1903
|
-
# @note When making an API call, you may pass TranslateTextRequest
|
1904
|
-
# data as a hash:
|
1905
|
-
#
|
1906
|
-
# {
|
1907
|
-
# text: "BoundedLengthString", # required
|
1908
|
-
# terminology_names: ["ResourceName"],
|
1909
|
-
# source_language_code: "LanguageCodeString", # required
|
1910
|
-
# target_language_code: "LanguageCodeString", # required
|
1911
|
-
# settings: {
|
1912
|
-
# formality: "FORMAL", # accepts FORMAL, INFORMAL
|
1913
|
-
# profanity: "MASK", # accepts MASK
|
1914
|
-
# },
|
1915
|
-
# }
|
1916
|
-
#
|
1917
1657
|
# @!attribute [rw] text
|
1918
|
-
# The text to translate. The text string can be a maximum of
|
1658
|
+
# The text to translate. The text string can be a maximum of 10,000
|
1919
1659
|
# bytes long. Depending on your character set, this may be fewer than
|
1920
|
-
#
|
1660
|
+
# 10,000 characters.
|
1921
1661
|
# @return [String]
|
1922
1662
|
#
|
1923
1663
|
# @!attribute [rw] terminology_names
|
@@ -2008,14 +1748,6 @@ module Aws::Translate
|
|
2008
1748
|
# Optional settings that configure the translation output. Use these
|
2009
1749
|
# settings for real time translations and asynchronous translation jobs.
|
2010
1750
|
#
|
2011
|
-
# @note When making an API call, you may pass TranslationSettings
|
2012
|
-
# data as a hash:
|
2013
|
-
#
|
2014
|
-
# {
|
2015
|
-
# formality: "FORMAL", # accepts FORMAL, INFORMAL
|
2016
|
-
# profanity: "MASK", # accepts MASK
|
2017
|
-
# }
|
2018
|
-
#
|
2019
1751
|
# @!attribute [rw] formality
|
2020
1752
|
# You can optionally specify the desired level of formality for
|
2021
1753
|
# translations to supported target languages. The formality setting
|
@@ -2028,13 +1760,13 @@ module Aws::Translate
|
|
2028
1760
|
# If you specify multiple target languages for the job, translate
|
2029
1761
|
# ignores the formality setting for any unsupported target language.
|
2030
1762
|
#
|
2031
|
-
# For a list of target languages that support formality, see
|
2032
|
-
#
|
1763
|
+
# For a list of target languages that support formality, see
|
1764
|
+
# [Supported languages][2] in the Amazon Translate Developer Guide.
|
2033
1765
|
#
|
2034
1766
|
#
|
2035
1767
|
#
|
2036
1768
|
# [1]: https://en.wikipedia.org/wiki/Register_(sociolinguistics)
|
2037
|
-
# [2]: https://docs.aws.amazon.com/translate/latest/dg/customizing-translations-formality.html
|
1769
|
+
# [2]: https://docs.aws.amazon.com/translate/latest/dg/customizing-translations-formality.html#customizing-translations-formality-languages
|
2038
1770
|
# @return [String]
|
2039
1771
|
#
|
2040
1772
|
# @!attribute [rw] profanity
|
@@ -2047,8 +1779,9 @@ module Aws::Translate
|
|
2047
1779
|
# of words.
|
2048
1780
|
#
|
2049
1781
|
# Amazon Translate doesn't detect profanity in all of its supported
|
2050
|
-
# languages. For languages that support profanity detection,
|
2051
|
-
# [
|
1782
|
+
# languages. For languages that don't support profanity detection,
|
1783
|
+
# see [Unsupported languages][1] in the Amazon Translate Developer
|
1784
|
+
# Guide.
|
2052
1785
|
#
|
2053
1786
|
# If you specify multiple target languages for the job, all the target
|
2054
1787
|
# languages must support profanity masking. If any of the target
|
@@ -2057,7 +1790,7 @@ module Aws::Translate
|
|
2057
1790
|
#
|
2058
1791
|
#
|
2059
1792
|
#
|
2060
|
-
# [1]: https://docs.aws.amazon.com/translate/latest/dg/customizing-translations-profanity.html
|
1793
|
+
# [1]: https://docs.aws.amazon.com/translate/latest/dg/customizing-translations-profanity.html#customizing-translations-profanity-languages
|
2061
1794
|
# @return [String]
|
2062
1795
|
#
|
2063
1796
|
# @see http://docs.aws.amazon.com/goto/WebAPI/translate-2017-07-01/TranslationSettings AWS API Documentation
|
@@ -2116,14 +1849,6 @@ module Aws::Translate
|
|
2116
1849
|
include Aws::Structure
|
2117
1850
|
end
|
2118
1851
|
|
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
1852
|
# @!attribute [rw] resource_arn
|
2128
1853
|
# The Amazon Resource Name (ARN) of the given Amazon Translate
|
2129
1854
|
# resource from which you want to remove the tags.
|
@@ -2148,19 +1873,6 @@ module Aws::Translate
|
|
2148
1873
|
#
|
2149
1874
|
class UntagResourceResponse < Aws::EmptyStructure; end
|
2150
1875
|
|
2151
|
-
# @note When making an API call, you may pass UpdateParallelDataRequest
|
2152
|
-
# data as a hash:
|
2153
|
-
#
|
2154
|
-
# {
|
2155
|
-
# name: "ResourceName", # required
|
2156
|
-
# description: "Description",
|
2157
|
-
# parallel_data_config: { # required
|
2158
|
-
# s3_uri: "S3Uri", # required
|
2159
|
-
# format: "TSV", # required, accepts TSV, CSV, TMX
|
2160
|
-
# },
|
2161
|
-
# client_token: "ClientTokenString", # required
|
2162
|
-
# }
|
2163
|
-
#
|
2164
1876
|
# @!attribute [rw] name
|
2165
1877
|
# The name of the parallel data resource being updated.
|
2166
1878
|
# @return [String]
|
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.50.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:
|
11
|
+
date: 2023-01-18 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: aws-sdk-core
|