aws-sdk-translate 1.13.0 → 1.14.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 8bb19a7dfd856411497469138791386943c24aa1
4
- data.tar.gz: ad7029827ec481e56e53801eba32d0db8bf3475d
3
+ metadata.gz: aed6b333c9358bdebf360cec7e8b228aa5686f92
4
+ data.tar.gz: 871dada6f33f5dc66510797dbe9d7a3e85c88a5e
5
5
  SHA512:
6
- metadata.gz: 0b20ebf03ad78b36abd630f512ec8644be7b5ba9e26e676b03a3d7263cf1ea06cea019c1d78794acf7392f35633a3eb166fd23a294a7bed939e557212b043255
7
- data.tar.gz: ad61487a69ae06490fa4ed448d89556ecd5ee86db06b7503a62b366f9a563505e7151361f2c75999eea9e7e5822a6c9c01743c623d366b0a58015b0b5e963d7c
6
+ metadata.gz: a0dee46ea011467b90fe740b1d0a56066b9b0a32ef1c3b003a2d3f2086a9d13d08974042e4c76b052129d987c64c057da295bbd2aae72d5f6362245d65d6a410
7
+ data.tar.gz: b9b28ea8b99090f776eb8cda08828cf3146e25a60b14c5e44c10b28f92bc23709165c1b466bfa399f5b57af7c410b7e198eae6830149c6f2883cec9990973b08
@@ -42,6 +42,6 @@ require_relative 'aws-sdk-translate/customizations'
42
42
  # @service
43
43
  module Aws::Translate
44
44
 
45
- GEM_VERSION = '1.13.0'
45
+ GEM_VERSION = '1.14.0'
46
46
 
47
47
  end
@@ -578,7 +578,7 @@ module Aws::Translate
578
578
  params: params,
579
579
  config: config)
580
580
  context[:gem_name] = 'aws-sdk-translate'
581
- context[:gem_version] = '1.13.0'
581
+ context[:gem_version] = '1.14.0'
582
582
  Seahorse::Client::Request.new(handlers, context)
583
583
  end
584
584
 
@@ -66,6 +66,10 @@ module Aws::Translate
66
66
  DeleteTerminologyRequest.add_member(:name, Shapes::ShapeRef.new(shape: ResourceName, required: true, location_name: "Name"))
67
67
  DeleteTerminologyRequest.struct_class = Types::DeleteTerminologyRequest
68
68
 
69
+ DetectedLanguageLowConfidenceException.add_member(:message, Shapes::ShapeRef.new(shape: String, location_name: "Message"))
70
+ DetectedLanguageLowConfidenceException.add_member(:detected_language_code, Shapes::ShapeRef.new(shape: LanguageCodeString, location_name: "DetectedLanguageCode"))
71
+ DetectedLanguageLowConfidenceException.struct_class = Types::DetectedLanguageLowConfidenceException
72
+
69
73
  EncryptionKey.add_member(:type, Shapes::ShapeRef.new(shape: EncryptionKeyType, required: true, location_name: "Type"))
70
74
  EncryptionKey.add_member(:id, Shapes::ShapeRef.new(shape: EncryptionKeyID, required: true, location_name: "Id"))
71
75
  EncryptionKey.struct_class = Types::EncryptionKey
@@ -88,8 +92,20 @@ module Aws::Translate
88
92
  ImportTerminologyResponse.add_member(:terminology_properties, Shapes::ShapeRef.new(shape: TerminologyProperties, location_name: "TerminologyProperties"))
89
93
  ImportTerminologyResponse.struct_class = Types::ImportTerminologyResponse
90
94
 
95
+ InternalServerException.add_member(:message, Shapes::ShapeRef.new(shape: String, location_name: "Message"))
96
+ InternalServerException.struct_class = Types::InternalServerException
97
+
98
+ InvalidParameterValueException.add_member(:message, Shapes::ShapeRef.new(shape: String, location_name: "Message"))
99
+ InvalidParameterValueException.struct_class = Types::InvalidParameterValueException
100
+
101
+ InvalidRequestException.add_member(:message, Shapes::ShapeRef.new(shape: String, location_name: "Message"))
102
+ InvalidRequestException.struct_class = Types::InvalidRequestException
103
+
91
104
  LanguageCodeStringList.member = Shapes::ShapeRef.new(shape: LanguageCodeString)
92
105
 
106
+ LimitExceededException.add_member(:message, Shapes::ShapeRef.new(shape: String, location_name: "Message"))
107
+ LimitExceededException.struct_class = Types::LimitExceededException
108
+
93
109
  ListTerminologiesRequest.add_member(:next_token, Shapes::ShapeRef.new(shape: NextToken, location_name: "NextToken"))
94
110
  ListTerminologiesRequest.add_member(:max_results, Shapes::ShapeRef.new(shape: MaxResultsInteger, location_name: "MaxResults"))
95
111
  ListTerminologiesRequest.struct_class = Types::ListTerminologiesRequest
@@ -100,6 +116,12 @@ module Aws::Translate
100
116
 
101
117
  ResourceNameList.member = Shapes::ShapeRef.new(shape: ResourceName)
102
118
 
119
+ ResourceNotFoundException.add_member(:message, Shapes::ShapeRef.new(shape: String, location_name: "Message"))
120
+ ResourceNotFoundException.struct_class = Types::ResourceNotFoundException
121
+
122
+ ServiceUnavailableException.add_member(:message, Shapes::ShapeRef.new(shape: String, location_name: "Message"))
123
+ ServiceUnavailableException.struct_class = Types::ServiceUnavailableException
124
+
103
125
  Term.add_member(:source_text, Shapes::ShapeRef.new(shape: String, location_name: "SourceText"))
104
126
  Term.add_member(:target_text, Shapes::ShapeRef.new(shape: String, location_name: "TargetText"))
105
127
  Term.struct_class = Types::Term
@@ -128,6 +150,12 @@ module Aws::Translate
128
150
 
129
151
  TerminologyPropertiesList.member = Shapes::ShapeRef.new(shape: TerminologyProperties)
130
152
 
153
+ TextSizeLimitExceededException.add_member(:message, Shapes::ShapeRef.new(shape: String, location_name: "Message"))
154
+ TextSizeLimitExceededException.struct_class = Types::TextSizeLimitExceededException
155
+
156
+ TooManyRequestsException.add_member(:message, Shapes::ShapeRef.new(shape: String, location_name: "Message"))
157
+ TooManyRequestsException.struct_class = Types::TooManyRequestsException
158
+
131
159
  TranslateTextRequest.add_member(:text, Shapes::ShapeRef.new(shape: BoundedLengthString, required: true, location_name: "Text"))
132
160
  TranslateTextRequest.add_member(:terminology_names, Shapes::ShapeRef.new(shape: ResourceNameList, location_name: "TerminologyNames"))
133
161
  TranslateTextRequest.add_member(:source_language_code, Shapes::ShapeRef.new(shape: LanguageCodeString, required: true, location_name: "SourceLanguageCode"))
@@ -140,6 +168,11 @@ module Aws::Translate
140
168
  TranslateTextResponse.add_member(:applied_terminologies, Shapes::ShapeRef.new(shape: AppliedTerminologyList, location_name: "AppliedTerminologies"))
141
169
  TranslateTextResponse.struct_class = Types::TranslateTextResponse
142
170
 
171
+ UnsupportedLanguagePairException.add_member(:message, Shapes::ShapeRef.new(shape: String, location_name: "Message"))
172
+ UnsupportedLanguagePairException.add_member(:source_language_code, Shapes::ShapeRef.new(shape: LanguageCodeString, location_name: "SourceLanguageCode"))
173
+ UnsupportedLanguagePairException.add_member(:target_language_code, Shapes::ShapeRef.new(shape: LanguageCodeString, location_name: "TargetLanguageCode"))
174
+ UnsupportedLanguagePairException.struct_class = Types::UnsupportedLanguagePairException
175
+
143
176
 
144
177
  # @api private
145
178
  API = Seahorse::Model::Api.new.tap do |api|
@@ -10,5 +10,180 @@ module Aws::Translate
10
10
 
11
11
  extend Aws::Errors::DynamicErrors
12
12
 
13
+ class DetectedLanguageLowConfidenceException < ServiceError
14
+
15
+ # @param [Seahorse::Client::RequestContext] context
16
+ # @param [String] message
17
+ # @param [Aws::Translate::Types::DetectedLanguageLowConfidenceException] data
18
+ def initialize(context, message, data = Aws::EmptyStructure.new)
19
+ super(context, message, data)
20
+ end
21
+
22
+ # @return [String]
23
+ def message
24
+ @message || @data[:message]
25
+ end
26
+
27
+ # @return [String]
28
+ def detected_language_code
29
+ @data[:detected_language_code]
30
+ end
31
+
32
+ end
33
+
34
+ class InternalServerException < ServiceError
35
+
36
+ # @param [Seahorse::Client::RequestContext] context
37
+ # @param [String] message
38
+ # @param [Aws::Translate::Types::InternalServerException] data
39
+ def initialize(context, message, data = Aws::EmptyStructure.new)
40
+ super(context, message, data)
41
+ end
42
+
43
+ # @return [String]
44
+ def message
45
+ @message || @data[:message]
46
+ end
47
+
48
+ end
49
+
50
+ class InvalidParameterValueException < ServiceError
51
+
52
+ # @param [Seahorse::Client::RequestContext] context
53
+ # @param [String] message
54
+ # @param [Aws::Translate::Types::InvalidParameterValueException] data
55
+ def initialize(context, message, data = Aws::EmptyStructure.new)
56
+ super(context, message, data)
57
+ end
58
+
59
+ # @return [String]
60
+ def message
61
+ @message || @data[:message]
62
+ end
63
+
64
+ end
65
+
66
+ class InvalidRequestException < ServiceError
67
+
68
+ # @param [Seahorse::Client::RequestContext] context
69
+ # @param [String] message
70
+ # @param [Aws::Translate::Types::InvalidRequestException] data
71
+ def initialize(context, message, data = Aws::EmptyStructure.new)
72
+ super(context, message, data)
73
+ end
74
+
75
+ # @return [String]
76
+ def message
77
+ @message || @data[:message]
78
+ end
79
+
80
+ end
81
+
82
+ class LimitExceededException < ServiceError
83
+
84
+ # @param [Seahorse::Client::RequestContext] context
85
+ # @param [String] message
86
+ # @param [Aws::Translate::Types::LimitExceededException] data
87
+ def initialize(context, message, data = Aws::EmptyStructure.new)
88
+ super(context, message, data)
89
+ end
90
+
91
+ # @return [String]
92
+ def message
93
+ @message || @data[:message]
94
+ end
95
+
96
+ end
97
+
98
+ class ResourceNotFoundException < ServiceError
99
+
100
+ # @param [Seahorse::Client::RequestContext] context
101
+ # @param [String] message
102
+ # @param [Aws::Translate::Types::ResourceNotFoundException] data
103
+ def initialize(context, message, data = Aws::EmptyStructure.new)
104
+ super(context, message, data)
105
+ end
106
+
107
+ # @return [String]
108
+ def message
109
+ @message || @data[:message]
110
+ end
111
+
112
+ end
113
+
114
+ class ServiceUnavailableException < ServiceError
115
+
116
+ # @param [Seahorse::Client::RequestContext] context
117
+ # @param [String] message
118
+ # @param [Aws::Translate::Types::ServiceUnavailableException] data
119
+ def initialize(context, message, data = Aws::EmptyStructure.new)
120
+ super(context, message, data)
121
+ end
122
+
123
+ # @return [String]
124
+ def message
125
+ @message || @data[:message]
126
+ end
127
+
128
+ end
129
+
130
+ class TextSizeLimitExceededException < ServiceError
131
+
132
+ # @param [Seahorse::Client::RequestContext] context
133
+ # @param [String] message
134
+ # @param [Aws::Translate::Types::TextSizeLimitExceededException] data
135
+ def initialize(context, message, data = Aws::EmptyStructure.new)
136
+ super(context, message, data)
137
+ end
138
+
139
+ # @return [String]
140
+ def message
141
+ @message || @data[:message]
142
+ end
143
+
144
+ end
145
+
146
+ class TooManyRequestsException < ServiceError
147
+
148
+ # @param [Seahorse::Client::RequestContext] context
149
+ # @param [String] message
150
+ # @param [Aws::Translate::Types::TooManyRequestsException] data
151
+ def initialize(context, message, data = Aws::EmptyStructure.new)
152
+ super(context, message, data)
153
+ end
154
+
155
+ # @return [String]
156
+ def message
157
+ @message || @data[:message]
158
+ end
159
+
160
+ end
161
+
162
+ class UnsupportedLanguagePairException < ServiceError
163
+
164
+ # @param [Seahorse::Client::RequestContext] context
165
+ # @param [String] message
166
+ # @param [Aws::Translate::Types::UnsupportedLanguagePairException] data
167
+ def initialize(context, message, data = Aws::EmptyStructure.new)
168
+ super(context, message, data)
169
+ end
170
+
171
+ # @return [String]
172
+ def message
173
+ @message || @data[:message]
174
+ end
175
+
176
+ # @return [String]
177
+ def source_language_code
178
+ @data[:source_language_code]
179
+ end
180
+
181
+ # @return [String]
182
+ def target_language_code
183
+ @data[:target_language_code]
184
+ end
185
+
186
+ end
187
+
13
188
  end
14
189
  end
@@ -52,6 +52,33 @@ module Aws::Translate
52
52
  include Aws::Structure
53
53
  end
54
54
 
55
+ # The confidence that Amazon Comprehend accurately detected the source
56
+ # language is low. If a low confidence level is acceptable for your
57
+ # application, you can use the language in the exception to call Amazon
58
+ # Translate again. For more information, see the
59
+ # [DetectDominantLanguage][1] operation in the *Amazon Comprehend
60
+ # Developer Guide*.
61
+ #
62
+ #
63
+ #
64
+ # [1]: https://docs.aws.amazon.com/comprehend/latest/dg/API_DetectDominantLanguage.html
65
+ #
66
+ # @!attribute [rw] message
67
+ # @return [String]
68
+ #
69
+ # @!attribute [rw] detected_language_code
70
+ # The language code of the auto-detected language from Amazon
71
+ # Comprehend.
72
+ # @return [String]
73
+ #
74
+ # @see http://docs.aws.amazon.com/goto/WebAPI/translate-2017-07-01/DetectedLanguageLowConfidenceException AWS API Documentation
75
+ #
76
+ class DetectedLanguageLowConfidenceException < Struct.new(
77
+ :message,
78
+ :detected_language_code)
79
+ include Aws::Structure
80
+ end
81
+
55
82
  # The encryption key used to encrypt the custom terminologies used by
56
83
  # Amazon Translate.
57
84
  #
@@ -186,6 +213,57 @@ module Aws::Translate
186
213
  include Aws::Structure
187
214
  end
188
215
 
216
+ # An internal server error occurred. Retry your request.
217
+ #
218
+ # @!attribute [rw] message
219
+ # @return [String]
220
+ #
221
+ # @see http://docs.aws.amazon.com/goto/WebAPI/translate-2017-07-01/InternalServerException AWS API Documentation
222
+ #
223
+ class InternalServerException < Struct.new(
224
+ :message)
225
+ include Aws::Structure
226
+ end
227
+
228
+ # The value of the parameter is invalid. Review the value of the
229
+ # parameter you are using to correct it, and then retry your operation.
230
+ #
231
+ # @!attribute [rw] message
232
+ # @return [String]
233
+ #
234
+ # @see http://docs.aws.amazon.com/goto/WebAPI/translate-2017-07-01/InvalidParameterValueException AWS API Documentation
235
+ #
236
+ class InvalidParameterValueException < Struct.new(
237
+ :message)
238
+ include Aws::Structure
239
+ end
240
+
241
+ # The request that you made is invalid. Check your request to determine
242
+ # why it's invalid and then retry the request.
243
+ #
244
+ # @!attribute [rw] message
245
+ # @return [String]
246
+ #
247
+ # @see http://docs.aws.amazon.com/goto/WebAPI/translate-2017-07-01/InvalidRequestException AWS API Documentation
248
+ #
249
+ class InvalidRequestException < Struct.new(
250
+ :message)
251
+ include Aws::Structure
252
+ end
253
+
254
+ # The specified limit has been exceeded. Review your request and retry
255
+ # it with a quantity below the stated limit.
256
+ #
257
+ # @!attribute [rw] message
258
+ # @return [String]
259
+ #
260
+ # @see http://docs.aws.amazon.com/goto/WebAPI/translate-2017-07-01/LimitExceededException AWS API Documentation
261
+ #
262
+ class LimitExceededException < Struct.new(
263
+ :message)
264
+ include Aws::Structure
265
+ end
266
+
189
267
  # @note When making an API call, you may pass ListTerminologiesRequest
190
268
  # data as a hash:
191
269
  #
@@ -231,6 +309,33 @@ module Aws::Translate
231
309
  include Aws::Structure
232
310
  end
233
311
 
312
+ # The resource you are looking for has not been found. Review the
313
+ # resource you're looking for and see if a different resource will
314
+ # accomplish your needs before retrying the revised request. .
315
+ #
316
+ # @!attribute [rw] message
317
+ # @return [String]
318
+ #
319
+ # @see http://docs.aws.amazon.com/goto/WebAPI/translate-2017-07-01/ResourceNotFoundException AWS API Documentation
320
+ #
321
+ class ResourceNotFoundException < Struct.new(
322
+ :message)
323
+ include Aws::Structure
324
+ end
325
+
326
+ # The Amazon Translate service is temporarily unavailable. Please wait a
327
+ # bit and then retry your request.
328
+ #
329
+ # @!attribute [rw] message
330
+ # @return [String]
331
+ #
332
+ # @see http://docs.aws.amazon.com/goto/WebAPI/translate-2017-07-01/ServiceUnavailableException AWS API Documentation
333
+ #
334
+ class ServiceUnavailableException < Struct.new(
335
+ :message)
336
+ include Aws::Structure
337
+ end
338
+
234
339
  # The term being translated by the custom terminology.
235
340
  #
236
341
  # @!attribute [rw] source_text
@@ -358,6 +463,33 @@ module Aws::Translate
358
463
  include Aws::Structure
359
464
  end
360
465
 
466
+ # The size of the text you submitted exceeds the size limit. Reduce the
467
+ # size of the text or use a smaller document and then retry your
468
+ # request.
469
+ #
470
+ # @!attribute [rw] message
471
+ # @return [String]
472
+ #
473
+ # @see http://docs.aws.amazon.com/goto/WebAPI/translate-2017-07-01/TextSizeLimitExceededException AWS API Documentation
474
+ #
475
+ class TextSizeLimitExceededException < Struct.new(
476
+ :message)
477
+ include Aws::Structure
478
+ end
479
+
480
+ # You have made too many requests within a short period of time. Wait
481
+ # for a short time and then try your request again.
482
+ #
483
+ # @!attribute [rw] message
484
+ # @return [String]
485
+ #
486
+ # @see http://docs.aws.amazon.com/goto/WebAPI/translate-2017-07-01/TooManyRequestsException AWS API Documentation
487
+ #
488
+ class TooManyRequestsException < Struct.new(
489
+ :message)
490
+ include Aws::Structure
491
+ end
492
+
361
493
  # @note When making an API call, you may pass TranslateTextRequest
362
494
  # data as a hash:
363
495
  #
@@ -432,5 +564,29 @@ module Aws::Translate
432
564
  include Aws::Structure
433
565
  end
434
566
 
567
+ # Amazon Translate does not support translation from the language of the
568
+ # source text into the requested target language. For more information,
569
+ # see how-to-error-msg.
570
+ #
571
+ # @!attribute [rw] message
572
+ # @return [String]
573
+ #
574
+ # @!attribute [rw] source_language_code
575
+ # The language code for the language of the input text.
576
+ # @return [String]
577
+ #
578
+ # @!attribute [rw] target_language_code
579
+ # The language code for the language of the translated text.
580
+ # @return [String]
581
+ #
582
+ # @see http://docs.aws.amazon.com/goto/WebAPI/translate-2017-07-01/UnsupportedLanguagePairException AWS API Documentation
583
+ #
584
+ class UnsupportedLanguagePairException < Struct.new(
585
+ :message,
586
+ :source_language_code,
587
+ :target_language_code)
588
+ include Aws::Structure
589
+ end
590
+
435
591
  end
436
592
  end
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.13.0
4
+ version: 1.14.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: 2019-05-15 00:00:00.000000000 Z
11
+ date: 2019-05-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: aws-sdk-core
@@ -19,7 +19,7 @@ dependencies:
19
19
  version: '3'
20
20
  - - ">="
21
21
  - !ruby/object:Gem::Version
22
- version: 3.52.1
22
+ version: 3.53.0
23
23
  type: :runtime
24
24
  prerelease: false
25
25
  version_requirements: !ruby/object:Gem::Requirement
@@ -29,7 +29,7 @@ dependencies:
29
29
  version: '3'
30
30
  - - ">="
31
31
  - !ruby/object:Gem::Version
32
- version: 3.52.1
32
+ version: 3.53.0
33
33
  - !ruby/object:Gem::Dependency
34
34
  name: aws-sigv4
35
35
  requirement: !ruby/object:Gem::Requirement