aws-sdk-translate 1.28.0 → 1.32.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 +173 -0
- data/LICENSE.txt +202 -0
- data/VERSION +1 -0
- data/lib/aws-sdk-translate.rb +3 -3
- data/lib/aws-sdk-translate/client.rb +273 -2
- data/lib/aws-sdk-translate/client_api.rb +176 -1
- data/lib/aws-sdk-translate/errors.rb +33 -1
- data/lib/aws-sdk-translate/resource.rb +1 -1
- data/lib/aws-sdk-translate/types.rb +494 -3
- metadata +11 -9
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c39bbe8088e91d034b8b3b021406bdc09c6ce096b1c5be37c1cd3ebd1b5240e6
|
4
|
+
data.tar.gz: 113bccda7d0dfbe605616cdc31d3b3d42642c2801a3aba4963c70b5b5c61e6ee
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ed9f9ada049ef844bc223de4f60effb67f0b21669204f6180504203d74faba3b02ed11a13eaa6c1847d5fa00e52bcda0ca978dbca314dffc9922106648f8f172
|
7
|
+
data.tar.gz: 7dc29824b392dcb24cb75d41cd5443d0d95fb7cac6dc640927cd43a5d0062141dc790ef78517cb1b1c3749d323c63b6ffbbe3a6477d68a1eb07dc8306814ece0
|
data/CHANGELOG.md
ADDED
@@ -0,0 +1,173 @@
|
|
1
|
+
Unreleased Changes
|
2
|
+
------------------
|
3
|
+
|
4
|
+
1.32.0 (2021-07-28)
|
5
|
+
------------------
|
6
|
+
|
7
|
+
* Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
|
8
|
+
|
9
|
+
1.31.0 (2021-03-10)
|
10
|
+
------------------
|
11
|
+
|
12
|
+
* Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
|
13
|
+
|
14
|
+
1.30.0 (2021-02-02)
|
15
|
+
------------------
|
16
|
+
|
17
|
+
* Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
|
18
|
+
|
19
|
+
1.29.0 (2020-11-23)
|
20
|
+
------------------
|
21
|
+
|
22
|
+
* Feature - This update adds new operations to create and manage parallel data in Amazon Translate. Parallel data is a resource that you can use to run Active Custom Translation jobs.
|
23
|
+
|
24
|
+
1.28.0 (2020-09-30)
|
25
|
+
------------------
|
26
|
+
|
27
|
+
* Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
|
28
|
+
|
29
|
+
1.27.0 (2020-09-23)
|
30
|
+
------------------
|
31
|
+
|
32
|
+
* Feature - Improvements to DeleteTerminology API.
|
33
|
+
|
34
|
+
1.26.0 (2020-09-15)
|
35
|
+
------------------
|
36
|
+
|
37
|
+
* Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
|
38
|
+
|
39
|
+
1.25.0 (2020-08-25)
|
40
|
+
------------------
|
41
|
+
|
42
|
+
* Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
|
43
|
+
|
44
|
+
1.24.0 (2020-06-23)
|
45
|
+
------------------
|
46
|
+
|
47
|
+
* Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
|
48
|
+
|
49
|
+
1.23.1 (2020-06-11)
|
50
|
+
------------------
|
51
|
+
|
52
|
+
* Issue - Republish previous version with correct dependency on `aws-sdk-core`.
|
53
|
+
|
54
|
+
1.23.0 (2020-06-10)
|
55
|
+
------------------
|
56
|
+
|
57
|
+
* Issue - This version has been yanked. (#2327).
|
58
|
+
* Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
|
59
|
+
|
60
|
+
1.22.0 (2020-05-28)
|
61
|
+
------------------
|
62
|
+
|
63
|
+
* Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
|
64
|
+
|
65
|
+
1.21.0 (2020-05-07)
|
66
|
+
------------------
|
67
|
+
|
68
|
+
* Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
|
69
|
+
|
70
|
+
1.20.0 (2020-03-09)
|
71
|
+
------------------
|
72
|
+
|
73
|
+
* Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
|
74
|
+
|
75
|
+
1.19.0 (2020-01-08)
|
76
|
+
------------------
|
77
|
+
|
78
|
+
* Feature - This release adds a new family of APIs for asynchronous batch translation service that provides option to translate large collection of text or HTML documents stored in Amazon S3 folder. This service accepts a batch of up to 5 GB in size per API call with each document not exceeding 1 MB size and the number of documents not exceeding 1 million per batch. See documentation for more information.
|
79
|
+
|
80
|
+
1.18.0 (2019-10-23)
|
81
|
+
------------------
|
82
|
+
|
83
|
+
* Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
|
84
|
+
|
85
|
+
1.17.0 (2019-07-25)
|
86
|
+
------------------
|
87
|
+
|
88
|
+
* Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
|
89
|
+
|
90
|
+
1.16.0 (2019-07-01)
|
91
|
+
------------------
|
92
|
+
|
93
|
+
* Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
|
94
|
+
|
95
|
+
1.15.0 (2019-06-17)
|
96
|
+
------------------
|
97
|
+
|
98
|
+
* Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
|
99
|
+
|
100
|
+
1.14.0 (2019-05-21)
|
101
|
+
------------------
|
102
|
+
|
103
|
+
* Feature - API update.
|
104
|
+
|
105
|
+
1.13.0 (2019-05-15)
|
106
|
+
------------------
|
107
|
+
|
108
|
+
* Feature - API update.
|
109
|
+
|
110
|
+
1.12.0 (2019-05-14)
|
111
|
+
------------------
|
112
|
+
|
113
|
+
* Feature - API update.
|
114
|
+
|
115
|
+
1.11.0 (2019-03-21)
|
116
|
+
------------------
|
117
|
+
|
118
|
+
* Feature - API update.
|
119
|
+
|
120
|
+
1.10.0 (2019-03-18)
|
121
|
+
------------------
|
122
|
+
|
123
|
+
* Feature - API update.
|
124
|
+
|
125
|
+
1.9.0 (2019-03-14)
|
126
|
+
------------------
|
127
|
+
|
128
|
+
* Feature - API update.
|
129
|
+
|
130
|
+
1.8.0 (2018-11-28)
|
131
|
+
------------------
|
132
|
+
|
133
|
+
* Feature - API update.
|
134
|
+
|
135
|
+
1.7.0 (2018-11-20)
|
136
|
+
------------------
|
137
|
+
|
138
|
+
* Feature - API update.
|
139
|
+
|
140
|
+
1.6.0 (2018-10-24)
|
141
|
+
------------------
|
142
|
+
|
143
|
+
* Feature - API update.
|
144
|
+
|
145
|
+
1.5.0 (2018-10-23)
|
146
|
+
------------------
|
147
|
+
|
148
|
+
* Feature - API update.
|
149
|
+
|
150
|
+
1.4.0 (2018-09-06)
|
151
|
+
------------------
|
152
|
+
|
153
|
+
* Feature - Adds code paths and plugins for future SDK instrumentation and telemetry.
|
154
|
+
|
155
|
+
1.3.0 (2018-09-05)
|
156
|
+
------------------
|
157
|
+
|
158
|
+
* Feature - API update.
|
159
|
+
|
160
|
+
1.2.0 (2018-06-26)
|
161
|
+
------------------
|
162
|
+
|
163
|
+
* Feature - API update.
|
164
|
+
|
165
|
+
1.1.0 (2018-04-03)
|
166
|
+
------------------
|
167
|
+
|
168
|
+
* Feature - API update.
|
169
|
+
|
170
|
+
1.0.0 (2017-11-29)
|
171
|
+
------------------
|
172
|
+
|
173
|
+
* Feature - Initial release of `aws-sdk-translate`.
|
data/LICENSE.txt
ADDED
@@ -0,0 +1,202 @@
|
|
1
|
+
|
2
|
+
Apache License
|
3
|
+
Version 2.0, January 2004
|
4
|
+
http://www.apache.org/licenses/
|
5
|
+
|
6
|
+
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
7
|
+
|
8
|
+
1. Definitions.
|
9
|
+
|
10
|
+
"License" shall mean the terms and conditions for use, reproduction,
|
11
|
+
and distribution as defined by Sections 1 through 9 of this document.
|
12
|
+
|
13
|
+
"Licensor" shall mean the copyright owner or entity authorized by
|
14
|
+
the copyright owner that is granting the License.
|
15
|
+
|
16
|
+
"Legal Entity" shall mean the union of the acting entity and all
|
17
|
+
other entities that control, are controlled by, or are under common
|
18
|
+
control with that entity. For the purposes of this definition,
|
19
|
+
"control" means (i) the power, direct or indirect, to cause the
|
20
|
+
direction or management of such entity, whether by contract or
|
21
|
+
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
22
|
+
outstanding shares, or (iii) beneficial ownership of such entity.
|
23
|
+
|
24
|
+
"You" (or "Your") shall mean an individual or Legal Entity
|
25
|
+
exercising permissions granted by this License.
|
26
|
+
|
27
|
+
"Source" form shall mean the preferred form for making modifications,
|
28
|
+
including but not limited to software source code, documentation
|
29
|
+
source, and configuration files.
|
30
|
+
|
31
|
+
"Object" form shall mean any form resulting from mechanical
|
32
|
+
transformation or translation of a Source form, including but
|
33
|
+
not limited to compiled object code, generated documentation,
|
34
|
+
and conversions to other media types.
|
35
|
+
|
36
|
+
"Work" shall mean the work of authorship, whether in Source or
|
37
|
+
Object form, made available under the License, as indicated by a
|
38
|
+
copyright notice that is included in or attached to the work
|
39
|
+
(an example is provided in the Appendix below).
|
40
|
+
|
41
|
+
"Derivative Works" shall mean any work, whether in Source or Object
|
42
|
+
form, that is based on (or derived from) the Work and for which the
|
43
|
+
editorial revisions, annotations, elaborations, or other modifications
|
44
|
+
represent, as a whole, an original work of authorship. For the purposes
|
45
|
+
of this License, Derivative Works shall not include works that remain
|
46
|
+
separable from, or merely link (or bind by name) to the interfaces of,
|
47
|
+
the Work and Derivative Works thereof.
|
48
|
+
|
49
|
+
"Contribution" shall mean any work of authorship, including
|
50
|
+
the original version of the Work and any modifications or additions
|
51
|
+
to that Work or Derivative Works thereof, that is intentionally
|
52
|
+
submitted to Licensor for inclusion in the Work by the copyright owner
|
53
|
+
or by an individual or Legal Entity authorized to submit on behalf of
|
54
|
+
the copyright owner. For the purposes of this definition, "submitted"
|
55
|
+
means any form of electronic, verbal, or written communication sent
|
56
|
+
to the Licensor or its representatives, including but not limited to
|
57
|
+
communication on electronic mailing lists, source code control systems,
|
58
|
+
and issue tracking systems that are managed by, or on behalf of, the
|
59
|
+
Licensor for the purpose of discussing and improving the Work, but
|
60
|
+
excluding communication that is conspicuously marked or otherwise
|
61
|
+
designated in writing by the copyright owner as "Not a Contribution."
|
62
|
+
|
63
|
+
"Contributor" shall mean Licensor and any individual or Legal Entity
|
64
|
+
on behalf of whom a Contribution has been received by Licensor and
|
65
|
+
subsequently incorporated within the Work.
|
66
|
+
|
67
|
+
2. Grant of Copyright License. Subject to the terms and conditions of
|
68
|
+
this License, each Contributor hereby grants to You a perpetual,
|
69
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
70
|
+
copyright license to reproduce, prepare Derivative Works of,
|
71
|
+
publicly display, publicly perform, sublicense, and distribute the
|
72
|
+
Work and such Derivative Works in Source or Object form.
|
73
|
+
|
74
|
+
3. Grant of Patent License. Subject to the terms and conditions of
|
75
|
+
this License, each Contributor hereby grants to You a perpetual,
|
76
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
77
|
+
(except as stated in this section) patent license to make, have made,
|
78
|
+
use, offer to sell, sell, import, and otherwise transfer the Work,
|
79
|
+
where such license applies only to those patent claims licensable
|
80
|
+
by such Contributor that are necessarily infringed by their
|
81
|
+
Contribution(s) alone or by combination of their Contribution(s)
|
82
|
+
with the Work to which such Contribution(s) was submitted. If You
|
83
|
+
institute patent litigation against any entity (including a
|
84
|
+
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
85
|
+
or a Contribution incorporated within the Work constitutes direct
|
86
|
+
or contributory patent infringement, then any patent licenses
|
87
|
+
granted to You under this License for that Work shall terminate
|
88
|
+
as of the date such litigation is filed.
|
89
|
+
|
90
|
+
4. Redistribution. You may reproduce and distribute copies of the
|
91
|
+
Work or Derivative Works thereof in any medium, with or without
|
92
|
+
modifications, and in Source or Object form, provided that You
|
93
|
+
meet the following conditions:
|
94
|
+
|
95
|
+
(a) You must give any other recipients of the Work or
|
96
|
+
Derivative Works a copy of this License; and
|
97
|
+
|
98
|
+
(b) You must cause any modified files to carry prominent notices
|
99
|
+
stating that You changed the files; and
|
100
|
+
|
101
|
+
(c) You must retain, in the Source form of any Derivative Works
|
102
|
+
that You distribute, all copyright, patent, trademark, and
|
103
|
+
attribution notices from the Source form of the Work,
|
104
|
+
excluding those notices that do not pertain to any part of
|
105
|
+
the Derivative Works; and
|
106
|
+
|
107
|
+
(d) If the Work includes a "NOTICE" text file as part of its
|
108
|
+
distribution, then any Derivative Works that You distribute must
|
109
|
+
include a readable copy of the attribution notices contained
|
110
|
+
within such NOTICE file, excluding those notices that do not
|
111
|
+
pertain to any part of the Derivative Works, in at least one
|
112
|
+
of the following places: within a NOTICE text file distributed
|
113
|
+
as part of the Derivative Works; within the Source form or
|
114
|
+
documentation, if provided along with the Derivative Works; or,
|
115
|
+
within a display generated by the Derivative Works, if and
|
116
|
+
wherever such third-party notices normally appear. The contents
|
117
|
+
of the NOTICE file are for informational purposes only and
|
118
|
+
do not modify the License. You may add Your own attribution
|
119
|
+
notices within Derivative Works that You distribute, alongside
|
120
|
+
or as an addendum to the NOTICE text from the Work, provided
|
121
|
+
that such additional attribution notices cannot be construed
|
122
|
+
as modifying the License.
|
123
|
+
|
124
|
+
You may add Your own copyright statement to Your modifications and
|
125
|
+
may provide additional or different license terms and conditions
|
126
|
+
for use, reproduction, or distribution of Your modifications, or
|
127
|
+
for any such Derivative Works as a whole, provided Your use,
|
128
|
+
reproduction, and distribution of the Work otherwise complies with
|
129
|
+
the conditions stated in this License.
|
130
|
+
|
131
|
+
5. Submission of Contributions. Unless You explicitly state otherwise,
|
132
|
+
any Contribution intentionally submitted for inclusion in the Work
|
133
|
+
by You to the Licensor shall be under the terms and conditions of
|
134
|
+
this License, without any additional terms or conditions.
|
135
|
+
Notwithstanding the above, nothing herein shall supersede or modify
|
136
|
+
the terms of any separate license agreement you may have executed
|
137
|
+
with Licensor regarding such Contributions.
|
138
|
+
|
139
|
+
6. Trademarks. This License does not grant permission to use the trade
|
140
|
+
names, trademarks, service marks, or product names of the Licensor,
|
141
|
+
except as required for reasonable and customary use in describing the
|
142
|
+
origin of the Work and reproducing the content of the NOTICE file.
|
143
|
+
|
144
|
+
7. Disclaimer of Warranty. Unless required by applicable law or
|
145
|
+
agreed to in writing, Licensor provides the Work (and each
|
146
|
+
Contributor provides its Contributions) on an "AS IS" BASIS,
|
147
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
148
|
+
implied, including, without limitation, any warranties or conditions
|
149
|
+
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
150
|
+
PARTICULAR PURPOSE. You are solely responsible for determining the
|
151
|
+
appropriateness of using or redistributing the Work and assume any
|
152
|
+
risks associated with Your exercise of permissions under this License.
|
153
|
+
|
154
|
+
8. Limitation of Liability. In no event and under no legal theory,
|
155
|
+
whether in tort (including negligence), contract, or otherwise,
|
156
|
+
unless required by applicable law (such as deliberate and grossly
|
157
|
+
negligent acts) or agreed to in writing, shall any Contributor be
|
158
|
+
liable to You for damages, including any direct, indirect, special,
|
159
|
+
incidental, or consequential damages of any character arising as a
|
160
|
+
result of this License or out of the use or inability to use the
|
161
|
+
Work (including but not limited to damages for loss of goodwill,
|
162
|
+
work stoppage, computer failure or malfunction, or any and all
|
163
|
+
other commercial damages or losses), even if such Contributor
|
164
|
+
has been advised of the possibility of such damages.
|
165
|
+
|
166
|
+
9. Accepting Warranty or Additional Liability. While redistributing
|
167
|
+
the Work or Derivative Works thereof, You may choose to offer,
|
168
|
+
and charge a fee for, acceptance of support, warranty, indemnity,
|
169
|
+
or other liability obligations and/or rights consistent with this
|
170
|
+
License. However, in accepting such obligations, You may act only
|
171
|
+
on Your own behalf and on Your sole responsibility, not on behalf
|
172
|
+
of any other Contributor, and only if You agree to indemnify,
|
173
|
+
defend, and hold each Contributor harmless for any liability
|
174
|
+
incurred by, or claims asserted against, such Contributor by reason
|
175
|
+
of your accepting any such warranty or additional liability.
|
176
|
+
|
177
|
+
END OF TERMS AND CONDITIONS
|
178
|
+
|
179
|
+
APPENDIX: How to apply the Apache License to your work.
|
180
|
+
|
181
|
+
To apply the Apache License to your work, attach the following
|
182
|
+
boilerplate notice, with the fields enclosed by brackets "[]"
|
183
|
+
replaced with your own identifying information. (Don't include
|
184
|
+
the brackets!) The text should be enclosed in the appropriate
|
185
|
+
comment syntax for the file format. We also recommend that a
|
186
|
+
file or class name and description of purpose be included on the
|
187
|
+
same "printed page" as the copyright notice for easier
|
188
|
+
identification within third-party archives.
|
189
|
+
|
190
|
+
Copyright [yyyy] [name of copyright owner]
|
191
|
+
|
192
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
193
|
+
you may not use this file except in compliance with the License.
|
194
|
+
You may obtain a copy of the License at
|
195
|
+
|
196
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
197
|
+
|
198
|
+
Unless required by applicable law or agreed to in writing, software
|
199
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
200
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
201
|
+
See the License for the specific language governing permissions and
|
202
|
+
limitations under the License.
|
data/VERSION
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
1.32.0
|
data/lib/aws-sdk-translate.rb
CHANGED
@@ -3,7 +3,7 @@
|
|
3
3
|
# WARNING ABOUT GENERATED CODE
|
4
4
|
#
|
5
5
|
# This file is generated. See the contributing guide for more information:
|
6
|
-
# https://github.com/aws/aws-sdk-ruby/blob/
|
6
|
+
# https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md
|
7
7
|
#
|
8
8
|
# WARNING ABOUT GENERATED CODE
|
9
9
|
|
@@ -28,7 +28,7 @@ require_relative 'aws-sdk-translate/customizations'
|
|
28
28
|
# structure.
|
29
29
|
#
|
30
30
|
# translate = Aws::Translate::Client.new
|
31
|
-
# resp = translate.
|
31
|
+
# resp = translate.create_parallel_data(params)
|
32
32
|
#
|
33
33
|
# See {Client} for more information.
|
34
34
|
#
|
@@ -48,6 +48,6 @@ require_relative 'aws-sdk-translate/customizations'
|
|
48
48
|
# @!group service
|
49
49
|
module Aws::Translate
|
50
50
|
|
51
|
-
GEM_VERSION = '1.
|
51
|
+
GEM_VERSION = '1.32.0'
|
52
52
|
|
53
53
|
end
|
@@ -3,7 +3,7 @@
|
|
3
3
|
# WARNING ABOUT GENERATED CODE
|
4
4
|
#
|
5
5
|
# This file is generated. See the contributing guide for more information:
|
6
|
-
# https://github.com/aws/aws-sdk-ruby/blob/
|
6
|
+
# https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md
|
7
7
|
#
|
8
8
|
# WARNING ABOUT GENERATED CODE
|
9
9
|
|
@@ -337,6 +337,98 @@ module Aws::Translate
|
|
337
337
|
|
338
338
|
# @!group API Operations
|
339
339
|
|
340
|
+
# Creates a parallel data resource in Amazon Translate by importing an
|
341
|
+
# input file from Amazon S3. Parallel data files contain examples of
|
342
|
+
# source phrases and their translations from your translation memory. By
|
343
|
+
# adding parallel data, you can influence the style, tone, and word
|
344
|
+
# choice in your translation output.
|
345
|
+
#
|
346
|
+
# @option params [required, String] :name
|
347
|
+
# A custom name for the parallel data resource in Amazon Translate. You
|
348
|
+
# must assign a name that is unique in the account and region.
|
349
|
+
#
|
350
|
+
# @option params [String] :description
|
351
|
+
# A custom description for the parallel data resource in Amazon
|
352
|
+
# Translate.
|
353
|
+
#
|
354
|
+
# @option params [required, Types::ParallelDataConfig] :parallel_data_config
|
355
|
+
# Specifies the format and S3 location of the parallel data input file.
|
356
|
+
#
|
357
|
+
# @option params [Types::EncryptionKey] :encryption_key
|
358
|
+
# The encryption key used to encrypt this object.
|
359
|
+
#
|
360
|
+
# @option params [required, String] :client_token
|
361
|
+
# A unique identifier for the request. This token is automatically
|
362
|
+
# generated when you use Amazon Translate through an AWS SDK.
|
363
|
+
#
|
364
|
+
# **A suitable default value is auto-generated.** You should normally
|
365
|
+
# not need to pass this option.**
|
366
|
+
#
|
367
|
+
# @return [Types::CreateParallelDataResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
368
|
+
#
|
369
|
+
# * {Types::CreateParallelDataResponse#name #name} => String
|
370
|
+
# * {Types::CreateParallelDataResponse#status #status} => String
|
371
|
+
#
|
372
|
+
# @example Request syntax with placeholder values
|
373
|
+
#
|
374
|
+
# resp = client.create_parallel_data({
|
375
|
+
# name: "ResourceName", # required
|
376
|
+
# description: "Description",
|
377
|
+
# parallel_data_config: { # required
|
378
|
+
# s3_uri: "S3Uri", # required
|
379
|
+
# format: "TSV", # required, accepts TSV, CSV, TMX
|
380
|
+
# },
|
381
|
+
# encryption_key: {
|
382
|
+
# type: "KMS", # required, accepts KMS
|
383
|
+
# id: "EncryptionKeyID", # required
|
384
|
+
# },
|
385
|
+
# client_token: "ClientTokenString", # required
|
386
|
+
# })
|
387
|
+
#
|
388
|
+
# @example Response structure
|
389
|
+
#
|
390
|
+
# resp.name #=> String
|
391
|
+
# resp.status #=> String, one of "CREATING", "UPDATING", "ACTIVE", "DELETING", "FAILED"
|
392
|
+
#
|
393
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/translate-2017-07-01/CreateParallelData AWS API Documentation
|
394
|
+
#
|
395
|
+
# @overload create_parallel_data(params = {})
|
396
|
+
# @param [Hash] params ({})
|
397
|
+
def create_parallel_data(params = {}, options = {})
|
398
|
+
req = build_request(:create_parallel_data, params)
|
399
|
+
req.send_request(options)
|
400
|
+
end
|
401
|
+
|
402
|
+
# Deletes a parallel data resource in Amazon Translate.
|
403
|
+
#
|
404
|
+
# @option params [required, String] :name
|
405
|
+
# The name of the parallel data resource that is being deleted.
|
406
|
+
#
|
407
|
+
# @return [Types::DeleteParallelDataResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
408
|
+
#
|
409
|
+
# * {Types::DeleteParallelDataResponse#name #name} => String
|
410
|
+
# * {Types::DeleteParallelDataResponse#status #status} => String
|
411
|
+
#
|
412
|
+
# @example Request syntax with placeholder values
|
413
|
+
#
|
414
|
+
# resp = client.delete_parallel_data({
|
415
|
+
# name: "ResourceName", # required
|
416
|
+
# })
|
417
|
+
#
|
418
|
+
# @example Response structure
|
419
|
+
#
|
420
|
+
# resp.name #=> String
|
421
|
+
# resp.status #=> String, one of "CREATING", "UPDATING", "ACTIVE", "DELETING", "FAILED"
|
422
|
+
#
|
423
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/translate-2017-07-01/DeleteParallelData AWS API Documentation
|
424
|
+
#
|
425
|
+
# @overload delete_parallel_data(params = {})
|
426
|
+
# @param [Hash] params ({})
|
427
|
+
def delete_parallel_data(params = {}, options = {})
|
428
|
+
req = build_request(:delete_parallel_data, params)
|
429
|
+
req.send_request(options)
|
430
|
+
end
|
431
|
+
|
340
432
|
# A synchronous action that deletes a custom terminology.
|
341
433
|
#
|
342
434
|
# @option params [required, String] :name
|
@@ -391,6 +483,8 @@ module Aws::Translate
|
|
391
483
|
# resp.text_translation_job_properties.target_language_codes[0] #=> String
|
392
484
|
# resp.text_translation_job_properties.terminology_names #=> Array
|
393
485
|
# resp.text_translation_job_properties.terminology_names[0] #=> String
|
486
|
+
# resp.text_translation_job_properties.parallel_data_names #=> Array
|
487
|
+
# resp.text_translation_job_properties.parallel_data_names[0] #=> String
|
394
488
|
# resp.text_translation_job_properties.message #=> String
|
395
489
|
# resp.text_translation_job_properties.submitted_time #=> Time
|
396
490
|
# resp.text_translation_job_properties.end_time #=> Time
|
@@ -408,6 +502,62 @@ module Aws::Translate
|
|
408
502
|
req.send_request(options)
|
409
503
|
end
|
410
504
|
|
505
|
+
# Provides information about a parallel data resource.
|
506
|
+
#
|
507
|
+
# @option params [required, String] :name
|
508
|
+
# The name of the parallel data resource that is being retrieved.
|
509
|
+
#
|
510
|
+
# @return [Types::GetParallelDataResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
511
|
+
#
|
512
|
+
# * {Types::GetParallelDataResponse#parallel_data_properties #parallel_data_properties} => Types::ParallelDataProperties
|
513
|
+
# * {Types::GetParallelDataResponse#data_location #data_location} => Types::ParallelDataDataLocation
|
514
|
+
# * {Types::GetParallelDataResponse#auxiliary_data_location #auxiliary_data_location} => Types::ParallelDataDataLocation
|
515
|
+
# * {Types::GetParallelDataResponse#latest_update_attempt_auxiliary_data_location #latest_update_attempt_auxiliary_data_location} => Types::ParallelDataDataLocation
|
516
|
+
#
|
517
|
+
# @example Request syntax with placeholder values
|
518
|
+
#
|
519
|
+
# resp = client.get_parallel_data({
|
520
|
+
# name: "ResourceName", # required
|
521
|
+
# })
|
522
|
+
#
|
523
|
+
# @example Response structure
|
524
|
+
#
|
525
|
+
# resp.parallel_data_properties.name #=> String
|
526
|
+
# resp.parallel_data_properties.arn #=> String
|
527
|
+
# resp.parallel_data_properties.description #=> String
|
528
|
+
# resp.parallel_data_properties.status #=> String, one of "CREATING", "UPDATING", "ACTIVE", "DELETING", "FAILED"
|
529
|
+
# resp.parallel_data_properties.source_language_code #=> String
|
530
|
+
# resp.parallel_data_properties.target_language_codes #=> Array
|
531
|
+
# resp.parallel_data_properties.target_language_codes[0] #=> String
|
532
|
+
# resp.parallel_data_properties.parallel_data_config.s3_uri #=> String
|
533
|
+
# resp.parallel_data_properties.parallel_data_config.format #=> String, one of "TSV", "CSV", "TMX"
|
534
|
+
# resp.parallel_data_properties.message #=> String
|
535
|
+
# resp.parallel_data_properties.imported_data_size #=> Integer
|
536
|
+
# resp.parallel_data_properties.imported_record_count #=> Integer
|
537
|
+
# resp.parallel_data_properties.failed_record_count #=> Integer
|
538
|
+
# resp.parallel_data_properties.skipped_record_count #=> Integer
|
539
|
+
# resp.parallel_data_properties.encryption_key.type #=> String, one of "KMS"
|
540
|
+
# resp.parallel_data_properties.encryption_key.id #=> String
|
541
|
+
# resp.parallel_data_properties.created_at #=> Time
|
542
|
+
# resp.parallel_data_properties.last_updated_at #=> Time
|
543
|
+
# resp.parallel_data_properties.latest_update_attempt_status #=> String, one of "CREATING", "UPDATING", "ACTIVE", "DELETING", "FAILED"
|
544
|
+
# resp.parallel_data_properties.latest_update_attempt_at #=> Time
|
545
|
+
# resp.data_location.repository_type #=> String
|
546
|
+
# resp.data_location.location #=> String
|
547
|
+
# resp.auxiliary_data_location.repository_type #=> String
|
548
|
+
# resp.auxiliary_data_location.location #=> String
|
549
|
+
# resp.latest_update_attempt_auxiliary_data_location.repository_type #=> String
|
550
|
+
# resp.latest_update_attempt_auxiliary_data_location.location #=> String
|
551
|
+
#
|
552
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/translate-2017-07-01/GetParallelData AWS API Documentation
|
553
|
+
#
|
554
|
+
# @overload get_parallel_data(params = {})
|
555
|
+
# @param [Hash] params ({})
|
556
|
+
def get_parallel_data(params = {}, options = {})
|
557
|
+
req = build_request(:get_parallel_data, params)
|
558
|
+
req.send_request(options)
|
559
|
+
end
|
560
|
+
|
411
561
|
# Retrieves a custom terminology.
|
412
562
|
#
|
413
563
|
# @option params [required, String] :name
|
@@ -529,6 +679,64 @@ module Aws::Translate
|
|
529
679
|
req.send_request(options)
|
530
680
|
end
|
531
681
|
|
682
|
+
# Provides a list of your parallel data resources in Amazon Translate.
|
683
|
+
#
|
684
|
+
# @option params [String] :next_token
|
685
|
+
# A string that specifies the next page of results to return in a
|
686
|
+
# paginated response.
|
687
|
+
#
|
688
|
+
# @option params [Integer] :max_results
|
689
|
+
# The maximum number of parallel data resources returned for each
|
690
|
+
# request.
|
691
|
+
#
|
692
|
+
# @return [Types::ListParallelDataResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
693
|
+
#
|
694
|
+
# * {Types::ListParallelDataResponse#parallel_data_properties_list #parallel_data_properties_list} => Array<Types::ParallelDataProperties>
|
695
|
+
# * {Types::ListParallelDataResponse#next_token #next_token} => String
|
696
|
+
#
|
697
|
+
# The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
|
698
|
+
#
|
699
|
+
# @example Request syntax with placeholder values
|
700
|
+
#
|
701
|
+
# resp = client.list_parallel_data({
|
702
|
+
# next_token: "NextToken",
|
703
|
+
# max_results: 1,
|
704
|
+
# })
|
705
|
+
#
|
706
|
+
# @example Response structure
|
707
|
+
#
|
708
|
+
# resp.parallel_data_properties_list #=> Array
|
709
|
+
# resp.parallel_data_properties_list[0].name #=> String
|
710
|
+
# resp.parallel_data_properties_list[0].arn #=> String
|
711
|
+
# resp.parallel_data_properties_list[0].description #=> String
|
712
|
+
# resp.parallel_data_properties_list[0].status #=> String, one of "CREATING", "UPDATING", "ACTIVE", "DELETING", "FAILED"
|
713
|
+
# resp.parallel_data_properties_list[0].source_language_code #=> String
|
714
|
+
# resp.parallel_data_properties_list[0].target_language_codes #=> Array
|
715
|
+
# resp.parallel_data_properties_list[0].target_language_codes[0] #=> String
|
716
|
+
# resp.parallel_data_properties_list[0].parallel_data_config.s3_uri #=> String
|
717
|
+
# resp.parallel_data_properties_list[0].parallel_data_config.format #=> String, one of "TSV", "CSV", "TMX"
|
718
|
+
# resp.parallel_data_properties_list[0].message #=> String
|
719
|
+
# resp.parallel_data_properties_list[0].imported_data_size #=> Integer
|
720
|
+
# resp.parallel_data_properties_list[0].imported_record_count #=> Integer
|
721
|
+
# resp.parallel_data_properties_list[0].failed_record_count #=> Integer
|
722
|
+
# resp.parallel_data_properties_list[0].skipped_record_count #=> Integer
|
723
|
+
# resp.parallel_data_properties_list[0].encryption_key.type #=> String, one of "KMS"
|
724
|
+
# resp.parallel_data_properties_list[0].encryption_key.id #=> String
|
725
|
+
# resp.parallel_data_properties_list[0].created_at #=> Time
|
726
|
+
# resp.parallel_data_properties_list[0].last_updated_at #=> Time
|
727
|
+
# resp.parallel_data_properties_list[0].latest_update_attempt_status #=> String, one of "CREATING", "UPDATING", "ACTIVE", "DELETING", "FAILED"
|
728
|
+
# resp.parallel_data_properties_list[0].latest_update_attempt_at #=> Time
|
729
|
+
# resp.next_token #=> String
|
730
|
+
#
|
731
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/translate-2017-07-01/ListParallelData AWS API Documentation
|
732
|
+
#
|
733
|
+
# @overload list_parallel_data(params = {})
|
734
|
+
# @param [Hash] params ({})
|
735
|
+
def list_parallel_data(params = {}, options = {})
|
736
|
+
req = build_request(:list_parallel_data, params)
|
737
|
+
req.send_request(options)
|
738
|
+
end
|
739
|
+
|
532
740
|
# Provides a list of custom terminologies associated with your account.
|
533
741
|
#
|
534
742
|
# @option params [String] :next_token
|
@@ -626,6 +834,8 @@ module Aws::Translate
|
|
626
834
|
# resp.text_translation_job_properties_list[0].target_language_codes[0] #=> String
|
627
835
|
# resp.text_translation_job_properties_list[0].terminology_names #=> Array
|
628
836
|
# resp.text_translation_job_properties_list[0].terminology_names[0] #=> String
|
837
|
+
# resp.text_translation_job_properties_list[0].parallel_data_names #=> Array
|
838
|
+
# resp.text_translation_job_properties_list[0].parallel_data_names[0] #=> String
|
629
839
|
# resp.text_translation_job_properties_list[0].message #=> String
|
630
840
|
# resp.text_translation_job_properties_list[0].submitted_time #=> Time
|
631
841
|
# resp.text_translation_job_properties_list[0].end_time #=> Time
|
@@ -687,6 +897,11 @@ module Aws::Translate
|
|
687
897
|
# The name of the terminology to use in the batch translation job. For a
|
688
898
|
# list of available terminologies, use the ListTerminologies operation.
|
689
899
|
#
|
900
|
+
# @option params [Array<String>] :parallel_data_names
|
901
|
+
# The names of the parallel data resources to use in the batch
|
902
|
+
# translation job. For a list of available parallel data resources, use
|
903
|
+
# the ListParallelData operation.
|
904
|
+
#
|
690
905
|
# @option params [required, String] :client_token
|
691
906
|
# A unique identifier for the request. This token is auto-generated when
|
692
907
|
# using the Amazon Translate SDK.
|
@@ -714,6 +929,7 @@ module Aws::Translate
|
|
714
929
|
# source_language_code: "LanguageCodeString", # required
|
715
930
|
# target_language_codes: ["LanguageCodeString"], # required
|
716
931
|
# terminology_names: ["ResourceName"],
|
932
|
+
# parallel_data_names: ["ResourceName"],
|
717
933
|
# client_token: "ClientTokenString", # required
|
718
934
|
# })
|
719
935
|
#
|
@@ -839,6 +1055,61 @@ module Aws::Translate
|
|
839
1055
|
req.send_request(options)
|
840
1056
|
end
|
841
1057
|
|
1058
|
+
# Updates a previously created parallel data resource by importing a new
|
1059
|
+
# input file from Amazon S3.
|
1060
|
+
#
|
1061
|
+
# @option params [required, String] :name
|
1062
|
+
# The name of the parallel data resource being updated.
|
1063
|
+
#
|
1064
|
+
# @option params [String] :description
|
1065
|
+
# A custom description for the parallel data resource in Amazon
|
1066
|
+
# Translate.
|
1067
|
+
#
|
1068
|
+
# @option params [required, Types::ParallelDataConfig] :parallel_data_config
|
1069
|
+
# Specifies the format and S3 location of the parallel data input file.
|
1070
|
+
#
|
1071
|
+
# @option params [required, String] :client_token
|
1072
|
+
# A unique identifier for the request. This token is automatically
|
1073
|
+
# generated when you use Amazon Translate through an AWS SDK.
|
1074
|
+
#
|
1075
|
+
# **A suitable default value is auto-generated.** You should normally
|
1076
|
+
# not need to pass this option.**
|
1077
|
+
#
|
1078
|
+
# @return [Types::UpdateParallelDataResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
1079
|
+
#
|
1080
|
+
# * {Types::UpdateParallelDataResponse#name #name} => String
|
1081
|
+
# * {Types::UpdateParallelDataResponse#status #status} => String
|
1082
|
+
# * {Types::UpdateParallelDataResponse#latest_update_attempt_status #latest_update_attempt_status} => String
|
1083
|
+
# * {Types::UpdateParallelDataResponse#latest_update_attempt_at #latest_update_attempt_at} => Time
|
1084
|
+
#
|
1085
|
+
# @example Request syntax with placeholder values
|
1086
|
+
#
|
1087
|
+
# resp = client.update_parallel_data({
|
1088
|
+
# name: "ResourceName", # required
|
1089
|
+
# description: "Description",
|
1090
|
+
# parallel_data_config: { # required
|
1091
|
+
# s3_uri: "S3Uri", # required
|
1092
|
+
# format: "TSV", # required, accepts TSV, CSV, TMX
|
1093
|
+
# },
|
1094
|
+
# client_token: "ClientTokenString", # required
|
1095
|
+
# })
|
1096
|
+
#
|
1097
|
+
# @example Response structure
|
1098
|
+
#
|
1099
|
+
# resp.name #=> String
|
1100
|
+
# resp.status #=> String, one of "CREATING", "UPDATING", "ACTIVE", "DELETING", "FAILED"
|
1101
|
+
# resp.latest_update_attempt_status #=> String, one of "CREATING", "UPDATING", "ACTIVE", "DELETING", "FAILED"
|
1102
|
+
# resp.latest_update_attempt_at #=> Time
|
1103
|
+
#
|
1104
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/translate-2017-07-01/UpdateParallelData AWS API Documentation
|
1105
|
+
#
|
1106
|
+
# @overload update_parallel_data(params = {})
|
1107
|
+
# @param [Hash] params ({})
|
1108
|
+
def update_parallel_data(params = {}, options = {})
|
1109
|
+
req = build_request(:update_parallel_data, params)
|
1110
|
+
req.send_request(options)
|
1111
|
+
end
|
1112
|
+
|
842
1113
|
# @!endgroup
|
843
1114
|
|
844
1115
|
# @param params ({})
|
@@ -852,7 +1123,7 @@ module Aws::Translate
|
|
852
1123
|
params: params,
|
853
1124
|
config: config)
|
854
1125
|
context[:gem_name] = 'aws-sdk-translate'
|
855
|
-
context[:gem_version] = '1.
|
1126
|
+
context[:gem_version] = '1.32.0'
|
856
1127
|
Seahorse::Client::Request.new(handlers, context)
|
857
1128
|
end
|
858
1129
|
|