aws-sdk-comprehend 1.20.0 → 1.21.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: d28c306560c45dfe8d0aeb224970913e3493f7a0
4
- data.tar.gz: 5cd2317c550a8d49671ef2bf0f39f10c2198c110
3
+ metadata.gz: b344f9a40f2f8a0cca7e779ab2e5632aa4bffe2f
4
+ data.tar.gz: 309964d905fb34a4bb607610b7b153da7b238e33
5
5
  SHA512:
6
- metadata.gz: 6977943748925148890e19793b13d3de50eb8715b51d678eba864758e74e5a95124a7a63aa1d96d31dafd8b2304a5d2989a22b179b2fdd360384fb5cbb8ce3ab
7
- data.tar.gz: cc35d98e7615441b590973c36d9e97fde6b65762b026588ae361c0f1553a0ba623ceb50fba1855eac673a7710a492a95a77c095d897eaf620775d0ea27ae1e60
6
+ metadata.gz: eb6694e360f17a2dbd4f389ea7728e241ee70e428e629f8549af414080615b40a21d8d0d889d51b735ade8b9f6e889e52b5a70ff454614880c28d0d8fed534e7
7
+ data.tar.gz: bc8fe7da352c0bb261c8d4ca3423b79df33d41ab972aa21cd226ef6ddd94d79ec33f815456bc315f847eae4a847045fc0d84de416c2951d9a7a82e6ebf145393
@@ -42,6 +42,6 @@ require_relative 'aws-sdk-comprehend/customizations'
42
42
  # @service
43
43
  module Aws::Comprehend
44
44
 
45
- GEM_VERSION = '1.20.0'
45
+ GEM_VERSION = '1.21.0'
46
46
 
47
47
  end
@@ -2794,7 +2794,7 @@ module Aws::Comprehend
2794
2794
  params: params,
2795
2795
  config: config)
2796
2796
  context[:gem_name] = 'aws-sdk-comprehend'
2797
- context[:gem_version] = '1.20.0'
2797
+ context[:gem_version] = '1.21.0'
2798
2798
  Seahorse::Client::Request.new(handlers, context)
2799
2799
  end
2800
2800
 
@@ -285,6 +285,9 @@ module Aws::Comprehend
285
285
 
286
286
  BatchItemErrorList.member = Shapes::ShapeRef.new(shape: BatchItemError)
287
287
 
288
+ BatchSizeLimitExceededException.add_member(:message, Shapes::ShapeRef.new(shape: String, location_name: "Message"))
289
+ BatchSizeLimitExceededException.struct_class = Types::BatchSizeLimitExceededException
290
+
288
291
  ClassifierEvaluationMetrics.add_member(:accuracy, Shapes::ShapeRef.new(shape: Double, location_name: "Accuracy"))
289
292
  ClassifierEvaluationMetrics.add_member(:precision, Shapes::ShapeRef.new(shape: Double, location_name: "Precision"))
290
293
  ClassifierEvaluationMetrics.add_member(:recall, Shapes::ShapeRef.new(shape: Double, location_name: "Recall"))
@@ -297,6 +300,9 @@ module Aws::Comprehend
297
300
  ClassifierMetadata.add_member(:evaluation_metrics, Shapes::ShapeRef.new(shape: ClassifierEvaluationMetrics, location_name: "EvaluationMetrics"))
298
301
  ClassifierMetadata.struct_class = Types::ClassifierMetadata
299
302
 
303
+ ConcurrentModificationException.add_member(:message, Shapes::ShapeRef.new(shape: String, location_name: "Message"))
304
+ ConcurrentModificationException.struct_class = Types::ConcurrentModificationException
305
+
300
306
  CreateDocumentClassifierRequest.add_member(:document_classifier_name, Shapes::ShapeRef.new(shape: ComprehendArnName, required: true, location_name: "DocumentClassifierName"))
301
307
  CreateDocumentClassifierRequest.add_member(:data_access_role_arn, Shapes::ShapeRef.new(shape: IamRoleArn, required: true, location_name: "DataAccessRoleArn"))
302
308
  CreateDocumentClassifierRequest.add_member(:tags, Shapes::ShapeRef.new(shape: TagList, location_name: "Tags"))
@@ -586,6 +592,18 @@ module Aws::Comprehend
586
592
  InputDataConfig.add_member(:input_format, Shapes::ShapeRef.new(shape: InputFormat, location_name: "InputFormat"))
587
593
  InputDataConfig.struct_class = Types::InputDataConfig
588
594
 
595
+ InternalServerException.add_member(:message, Shapes::ShapeRef.new(shape: String, location_name: "Message"))
596
+ InternalServerException.struct_class = Types::InternalServerException
597
+
598
+ InvalidFilterException.add_member(:message, Shapes::ShapeRef.new(shape: String, location_name: "Message"))
599
+ InvalidFilterException.struct_class = Types::InvalidFilterException
600
+
601
+ InvalidRequestException.add_member(:message, Shapes::ShapeRef.new(shape: String, location_name: "Message"))
602
+ InvalidRequestException.struct_class = Types::InvalidRequestException
603
+
604
+ JobNotFoundException.add_member(:message, Shapes::ShapeRef.new(shape: String, location_name: "Message"))
605
+ JobNotFoundException.struct_class = Types::JobNotFoundException
606
+
589
607
  KeyPhrase.add_member(:score, Shapes::ShapeRef.new(shape: Float, location_name: "Score"))
590
608
  KeyPhrase.add_member(:text, Shapes::ShapeRef.new(shape: String, location_name: "Text"))
591
609
  KeyPhrase.add_member(:begin_offset, Shapes::ShapeRef.new(shape: Integer, location_name: "BeginOffset"))
@@ -614,6 +632,9 @@ module Aws::Comprehend
614
632
 
615
633
  KeyPhrasesDetectionJobPropertiesList.member = Shapes::ShapeRef.new(shape: KeyPhrasesDetectionJobProperties)
616
634
 
635
+ KmsKeyValidationException.add_member(:message, Shapes::ShapeRef.new(shape: String, location_name: "Message"))
636
+ KmsKeyValidationException.struct_class = Types::KmsKeyValidationException
637
+
617
638
  ListDocumentClassificationJobsRequest.add_member(:filter, Shapes::ShapeRef.new(shape: DocumentClassificationJobFilter, location_name: "Filter"))
618
639
  ListDocumentClassificationJobsRequest.add_member(:next_token, Shapes::ShapeRef.new(shape: String, location_name: "NextToken"))
619
640
  ListDocumentClassificationJobsRequest.add_member(:max_results, Shapes::ShapeRef.new(shape: MaxResultsInteger, location_name: "MaxResults"))
@@ -719,6 +740,18 @@ module Aws::Comprehend
719
740
  PartOfSpeechTag.add_member(:score, Shapes::ShapeRef.new(shape: Float, location_name: "Score"))
720
741
  PartOfSpeechTag.struct_class = Types::PartOfSpeechTag
721
742
 
743
+ ResourceInUseException.add_member(:message, Shapes::ShapeRef.new(shape: String, location_name: "Message"))
744
+ ResourceInUseException.struct_class = Types::ResourceInUseException
745
+
746
+ ResourceLimitExceededException.add_member(:message, Shapes::ShapeRef.new(shape: String, location_name: "Message"))
747
+ ResourceLimitExceededException.struct_class = Types::ResourceLimitExceededException
748
+
749
+ ResourceNotFoundException.add_member(:message, Shapes::ShapeRef.new(shape: String, location_name: "Message"))
750
+ ResourceNotFoundException.struct_class = Types::ResourceNotFoundException
751
+
752
+ ResourceUnavailableException.add_member(:message, Shapes::ShapeRef.new(shape: String, location_name: "Message"))
753
+ ResourceUnavailableException.struct_class = Types::ResourceUnavailableException
754
+
722
755
  SecurityGroupIds.member = Shapes::ShapeRef.new(shape: SecurityGroupId)
723
756
 
724
757
  SentimentDetectionJobFilter.add_member(:job_name, Shapes::ShapeRef.new(shape: JobName, location_name: "JobName"))
@@ -896,6 +929,18 @@ module Aws::Comprehend
896
929
 
897
930
  TagResourceResponse.struct_class = Types::TagResourceResponse
898
931
 
932
+ TextSizeLimitExceededException.add_member(:message, Shapes::ShapeRef.new(shape: String, location_name: "Message"))
933
+ TextSizeLimitExceededException.struct_class = Types::TextSizeLimitExceededException
934
+
935
+ TooManyRequestsException.add_member(:message, Shapes::ShapeRef.new(shape: String, location_name: "Message"))
936
+ TooManyRequestsException.struct_class = Types::TooManyRequestsException
937
+
938
+ TooManyTagKeysException.add_member(:message, Shapes::ShapeRef.new(shape: String, location_name: "Message"))
939
+ TooManyTagKeysException.struct_class = Types::TooManyTagKeysException
940
+
941
+ TooManyTagsException.add_member(:message, Shapes::ShapeRef.new(shape: String, location_name: "Message"))
942
+ TooManyTagsException.struct_class = Types::TooManyTagsException
943
+
899
944
  TopicsDetectionJobFilter.add_member(:job_name, Shapes::ShapeRef.new(shape: JobName, location_name: "JobName"))
900
945
  TopicsDetectionJobFilter.add_member(:job_status, Shapes::ShapeRef.new(shape: JobStatus, location_name: "JobStatus"))
901
946
  TopicsDetectionJobFilter.add_member(:submit_time_before, Shapes::ShapeRef.new(shape: Timestamp, location_name: "SubmitTimeBefore"))
@@ -918,6 +963,9 @@ module Aws::Comprehend
918
963
 
919
964
  TopicsDetectionJobPropertiesList.member = Shapes::ShapeRef.new(shape: TopicsDetectionJobProperties)
920
965
 
966
+ UnsupportedLanguageException.add_member(:message, Shapes::ShapeRef.new(shape: String, location_name: "Message"))
967
+ UnsupportedLanguageException.struct_class = Types::UnsupportedLanguageException
968
+
921
969
  UntagResourceRequest.add_member(:resource_arn, Shapes::ShapeRef.new(shape: ComprehendArn, required: true, location_name: "ResourceArn"))
922
970
  UntagResourceRequest.add_member(:tag_keys, Shapes::ShapeRef.new(shape: TagKeyList, required: true, location_name: "TagKeys"))
923
971
  UntagResourceRequest.struct_class = Types::UntagResourceRequest
@@ -10,5 +10,261 @@ module Aws::Comprehend
10
10
 
11
11
  extend Aws::Errors::DynamicErrors
12
12
 
13
+ class BatchSizeLimitExceededException < ServiceError
14
+
15
+ # @param [Seahorse::Client::RequestContext] context
16
+ # @param [String] message
17
+ # @param [Aws::Comprehend::Types::BatchSizeLimitExceededException] 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
+ end
28
+
29
+ class ConcurrentModificationException < ServiceError
30
+
31
+ # @param [Seahorse::Client::RequestContext] context
32
+ # @param [String] message
33
+ # @param [Aws::Comprehend::Types::ConcurrentModificationException] data
34
+ def initialize(context, message, data = Aws::EmptyStructure.new)
35
+ super(context, message, data)
36
+ end
37
+
38
+ # @return [String]
39
+ def message
40
+ @message || @data[:message]
41
+ end
42
+
43
+ end
44
+
45
+ class InternalServerException < ServiceError
46
+
47
+ # @param [Seahorse::Client::RequestContext] context
48
+ # @param [String] message
49
+ # @param [Aws::Comprehend::Types::InternalServerException] data
50
+ def initialize(context, message, data = Aws::EmptyStructure.new)
51
+ super(context, message, data)
52
+ end
53
+
54
+ # @return [String]
55
+ def message
56
+ @message || @data[:message]
57
+ end
58
+
59
+ end
60
+
61
+ class InvalidFilterException < ServiceError
62
+
63
+ # @param [Seahorse::Client::RequestContext] context
64
+ # @param [String] message
65
+ # @param [Aws::Comprehend::Types::InvalidFilterException] data
66
+ def initialize(context, message, data = Aws::EmptyStructure.new)
67
+ super(context, message, data)
68
+ end
69
+
70
+ # @return [String]
71
+ def message
72
+ @message || @data[:message]
73
+ end
74
+
75
+ end
76
+
77
+ class InvalidRequestException < ServiceError
78
+
79
+ # @param [Seahorse::Client::RequestContext] context
80
+ # @param [String] message
81
+ # @param [Aws::Comprehend::Types::InvalidRequestException] data
82
+ def initialize(context, message, data = Aws::EmptyStructure.new)
83
+ super(context, message, data)
84
+ end
85
+
86
+ # @return [String]
87
+ def message
88
+ @message || @data[:message]
89
+ end
90
+
91
+ end
92
+
93
+ class JobNotFoundException < ServiceError
94
+
95
+ # @param [Seahorse::Client::RequestContext] context
96
+ # @param [String] message
97
+ # @param [Aws::Comprehend::Types::JobNotFoundException] data
98
+ def initialize(context, message, data = Aws::EmptyStructure.new)
99
+ super(context, message, data)
100
+ end
101
+
102
+ # @return [String]
103
+ def message
104
+ @message || @data[:message]
105
+ end
106
+
107
+ end
108
+
109
+ class KmsKeyValidationException < ServiceError
110
+
111
+ # @param [Seahorse::Client::RequestContext] context
112
+ # @param [String] message
113
+ # @param [Aws::Comprehend::Types::KmsKeyValidationException] data
114
+ def initialize(context, message, data = Aws::EmptyStructure.new)
115
+ super(context, message, data)
116
+ end
117
+
118
+ # @return [String]
119
+ def message
120
+ @message || @data[:message]
121
+ end
122
+
123
+ end
124
+
125
+ class ResourceInUseException < ServiceError
126
+
127
+ # @param [Seahorse::Client::RequestContext] context
128
+ # @param [String] message
129
+ # @param [Aws::Comprehend::Types::ResourceInUseException] data
130
+ def initialize(context, message, data = Aws::EmptyStructure.new)
131
+ super(context, message, data)
132
+ end
133
+
134
+ # @return [String]
135
+ def message
136
+ @message || @data[:message]
137
+ end
138
+
139
+ end
140
+
141
+ class ResourceLimitExceededException < ServiceError
142
+
143
+ # @param [Seahorse::Client::RequestContext] context
144
+ # @param [String] message
145
+ # @param [Aws::Comprehend::Types::ResourceLimitExceededException] data
146
+ def initialize(context, message, data = Aws::EmptyStructure.new)
147
+ super(context, message, data)
148
+ end
149
+
150
+ # @return [String]
151
+ def message
152
+ @message || @data[:message]
153
+ end
154
+
155
+ end
156
+
157
+ class ResourceNotFoundException < ServiceError
158
+
159
+ # @param [Seahorse::Client::RequestContext] context
160
+ # @param [String] message
161
+ # @param [Aws::Comprehend::Types::ResourceNotFoundException] data
162
+ def initialize(context, message, data = Aws::EmptyStructure.new)
163
+ super(context, message, data)
164
+ end
165
+
166
+ # @return [String]
167
+ def message
168
+ @message || @data[:message]
169
+ end
170
+
171
+ end
172
+
173
+ class ResourceUnavailableException < ServiceError
174
+
175
+ # @param [Seahorse::Client::RequestContext] context
176
+ # @param [String] message
177
+ # @param [Aws::Comprehend::Types::ResourceUnavailableException] data
178
+ def initialize(context, message, data = Aws::EmptyStructure.new)
179
+ super(context, message, data)
180
+ end
181
+
182
+ # @return [String]
183
+ def message
184
+ @message || @data[:message]
185
+ end
186
+
187
+ end
188
+
189
+ class TextSizeLimitExceededException < ServiceError
190
+
191
+ # @param [Seahorse::Client::RequestContext] context
192
+ # @param [String] message
193
+ # @param [Aws::Comprehend::Types::TextSizeLimitExceededException] data
194
+ def initialize(context, message, data = Aws::EmptyStructure.new)
195
+ super(context, message, data)
196
+ end
197
+
198
+ # @return [String]
199
+ def message
200
+ @message || @data[:message]
201
+ end
202
+
203
+ end
204
+
205
+ class TooManyRequestsException < ServiceError
206
+
207
+ # @param [Seahorse::Client::RequestContext] context
208
+ # @param [String] message
209
+ # @param [Aws::Comprehend::Types::TooManyRequestsException] data
210
+ def initialize(context, message, data = Aws::EmptyStructure.new)
211
+ super(context, message, data)
212
+ end
213
+
214
+ # @return [String]
215
+ def message
216
+ @message || @data[:message]
217
+ end
218
+
219
+ end
220
+
221
+ class TooManyTagKeysException < ServiceError
222
+
223
+ # @param [Seahorse::Client::RequestContext] context
224
+ # @param [String] message
225
+ # @param [Aws::Comprehend::Types::TooManyTagKeysException] data
226
+ def initialize(context, message, data = Aws::EmptyStructure.new)
227
+ super(context, message, data)
228
+ end
229
+
230
+ # @return [String]
231
+ def message
232
+ @message || @data[:message]
233
+ end
234
+
235
+ end
236
+
237
+ class TooManyTagsException < ServiceError
238
+
239
+ # @param [Seahorse::Client::RequestContext] context
240
+ # @param [String] message
241
+ # @param [Aws::Comprehend::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
+ end
252
+
253
+ class UnsupportedLanguageException < ServiceError
254
+
255
+ # @param [Seahorse::Client::RequestContext] context
256
+ # @param [String] message
257
+ # @param [Aws::Comprehend::Types::UnsupportedLanguageException] data
258
+ def initialize(context, message, data = Aws::EmptyStructure.new)
259
+ super(context, message, data)
260
+ end
261
+
262
+ # @return [String]
263
+ def message
264
+ @message || @data[:message]
265
+ end
266
+
267
+ end
268
+
13
269
  end
14
270
  end
@@ -381,6 +381,19 @@ module Aws::Comprehend
381
381
  include Aws::Structure
382
382
  end
383
383
 
384
+ # The number of documents in the request exceeds the limit of 25. Try
385
+ # your request again with fewer documents.
386
+ #
387
+ # @!attribute [rw] message
388
+ # @return [String]
389
+ #
390
+ # @see http://docs.aws.amazon.com/goto/WebAPI/comprehend-2017-11-27/BatchSizeLimitExceededException AWS API Documentation
391
+ #
392
+ class BatchSizeLimitExceededException < Struct.new(
393
+ :message)
394
+ include Aws::Structure
395
+ end
396
+
384
397
  # Describes the result metrics for the test data associated with an
385
398
  # documentation classifier.
386
399
  #
@@ -453,6 +466,19 @@ module Aws::Comprehend
453
466
  include Aws::Structure
454
467
  end
455
468
 
469
+ # Concurrent modification of the tags associated with an Amazon
470
+ # Comprehend resource is not supported.
471
+ #
472
+ # @!attribute [rw] message
473
+ # @return [String]
474
+ #
475
+ # @see http://docs.aws.amazon.com/goto/WebAPI/comprehend-2017-11-27/ConcurrentModificationException AWS API Documentation
476
+ #
477
+ class ConcurrentModificationException < Struct.new(
478
+ :message)
479
+ include Aws::Structure
480
+ end
481
+
456
482
  # @note When making an API call, you may pass CreateDocumentClassifierRequest
457
483
  # data as a hash:
458
484
  #
@@ -2281,6 +2307,55 @@ module Aws::Comprehend
2281
2307
  include Aws::Structure
2282
2308
  end
2283
2309
 
2310
+ # An internal server error occurred. Retry your request.
2311
+ #
2312
+ # @!attribute [rw] message
2313
+ # @return [String]
2314
+ #
2315
+ # @see http://docs.aws.amazon.com/goto/WebAPI/comprehend-2017-11-27/InternalServerException AWS API Documentation
2316
+ #
2317
+ class InternalServerException < Struct.new(
2318
+ :message)
2319
+ include Aws::Structure
2320
+ end
2321
+
2322
+ # The filter specified for the `ListDocumentClassificationJobs`
2323
+ # operation is invalid. Specify a different filter.
2324
+ #
2325
+ # @!attribute [rw] message
2326
+ # @return [String]
2327
+ #
2328
+ # @see http://docs.aws.amazon.com/goto/WebAPI/comprehend-2017-11-27/InvalidFilterException AWS API Documentation
2329
+ #
2330
+ class InvalidFilterException < Struct.new(
2331
+ :message)
2332
+ include Aws::Structure
2333
+ end
2334
+
2335
+ # The request is invalid.
2336
+ #
2337
+ # @!attribute [rw] message
2338
+ # @return [String]
2339
+ #
2340
+ # @see http://docs.aws.amazon.com/goto/WebAPI/comprehend-2017-11-27/InvalidRequestException AWS API Documentation
2341
+ #
2342
+ class InvalidRequestException < Struct.new(
2343
+ :message)
2344
+ include Aws::Structure
2345
+ end
2346
+
2347
+ # The specified job was not found. Check the job ID and try again.
2348
+ #
2349
+ # @!attribute [rw] message
2350
+ # @return [String]
2351
+ #
2352
+ # @see http://docs.aws.amazon.com/goto/WebAPI/comprehend-2017-11-27/JobNotFoundException AWS API Documentation
2353
+ #
2354
+ class JobNotFoundException < Struct.new(
2355
+ :message)
2356
+ include Aws::Structure
2357
+ end
2358
+
2284
2359
  # Describes a key noun phrase.
2285
2360
  #
2286
2361
  # @!attribute [rw] score
@@ -2452,6 +2527,19 @@ module Aws::Comprehend
2452
2527
  include Aws::Structure
2453
2528
  end
2454
2529
 
2530
+ # The KMS customer managed key (CMK) entered cannot be validated. Verify
2531
+ # the key and re-enter it.
2532
+ #
2533
+ # @!attribute [rw] message
2534
+ # @return [String]
2535
+ #
2536
+ # @see http://docs.aws.amazon.com/goto/WebAPI/comprehend-2017-11-27/KmsKeyValidationException AWS API Documentation
2537
+ #
2538
+ class KmsKeyValidationException < Struct.new(
2539
+ :message)
2540
+ include Aws::Structure
2541
+ end
2542
+
2455
2543
  # @note When making an API call, you may pass ListDocumentClassificationJobsRequest
2456
2544
  # data as a hash:
2457
2545
  #
@@ -2992,6 +3080,59 @@ module Aws::Comprehend
2992
3080
  include Aws::Structure
2993
3081
  end
2994
3082
 
3083
+ # The specified name is already in use. Use a different name and try
3084
+ # your request again.
3085
+ #
3086
+ # @!attribute [rw] message
3087
+ # @return [String]
3088
+ #
3089
+ # @see http://docs.aws.amazon.com/goto/WebAPI/comprehend-2017-11-27/ResourceInUseException AWS API Documentation
3090
+ #
3091
+ class ResourceInUseException < Struct.new(
3092
+ :message)
3093
+ include Aws::Structure
3094
+ end
3095
+
3096
+ # The maximum number of recognizers per account has been exceeded.
3097
+ # Review the recognizers, perform cleanup, and then try your request
3098
+ # again.
3099
+ #
3100
+ # @!attribute [rw] message
3101
+ # @return [String]
3102
+ #
3103
+ # @see http://docs.aws.amazon.com/goto/WebAPI/comprehend-2017-11-27/ResourceLimitExceededException AWS API Documentation
3104
+ #
3105
+ class ResourceLimitExceededException < Struct.new(
3106
+ :message)
3107
+ include Aws::Structure
3108
+ end
3109
+
3110
+ # The specified resource ARN was not found. Check the ARN and try your
3111
+ # request again.
3112
+ #
3113
+ # @!attribute [rw] message
3114
+ # @return [String]
3115
+ #
3116
+ # @see http://docs.aws.amazon.com/goto/WebAPI/comprehend-2017-11-27/ResourceNotFoundException AWS API Documentation
3117
+ #
3118
+ class ResourceNotFoundException < Struct.new(
3119
+ :message)
3120
+ include Aws::Structure
3121
+ end
3122
+
3123
+ # The specified resource is not available. Check to see if the resource
3124
+ # is in the `TRAINED` state and try your request again.
3125
+ #
3126
+ # @!attribute [rw] message
3127
+ # @return [String]
3128
+ #
3129
+ # @see http://docs.aws.amazon.com/goto/WebAPI/comprehend-2017-11-27/ResourceUnavailableException AWS API Documentation
3130
+ #
3131
+ class ResourceUnavailableException < Struct.new(
3132
+ :message)
3133
+ include Aws::Structure
3134
+ end
3135
+
2995
3136
  # Provides information for filtering a list of dominant language
2996
3137
  # detection jobs. For more information, see the operation.
2997
3138
  #
@@ -4210,6 +4351,57 @@ module Aws::Comprehend
4210
4351
  #
4211
4352
  class TagResourceResponse < Aws::EmptyStructure; end
4212
4353
 
4354
+ # The size of the input text exceeds the limit. Use a smaller document.
4355
+ #
4356
+ # @!attribute [rw] message
4357
+ # @return [String]
4358
+ #
4359
+ # @see http://docs.aws.amazon.com/goto/WebAPI/comprehend-2017-11-27/TextSizeLimitExceededException AWS API Documentation
4360
+ #
4361
+ class TextSizeLimitExceededException < Struct.new(
4362
+ :message)
4363
+ include Aws::Structure
4364
+ end
4365
+
4366
+ # The number of requests exceeds the limit. Resubmit your request later.
4367
+ #
4368
+ # @!attribute [rw] message
4369
+ # @return [String]
4370
+ #
4371
+ # @see http://docs.aws.amazon.com/goto/WebAPI/comprehend-2017-11-27/TooManyRequestsException AWS API Documentation
4372
+ #
4373
+ class TooManyRequestsException < Struct.new(
4374
+ :message)
4375
+ include Aws::Structure
4376
+ end
4377
+
4378
+ # The request contains more tag keys than can be associated with a
4379
+ # resource (50 tag keys per resource).
4380
+ #
4381
+ # @!attribute [rw] message
4382
+ # @return [String]
4383
+ #
4384
+ # @see http://docs.aws.amazon.com/goto/WebAPI/comprehend-2017-11-27/TooManyTagKeysException AWS API Documentation
4385
+ #
4386
+ class TooManyTagKeysException < Struct.new(
4387
+ :message)
4388
+ include Aws::Structure
4389
+ end
4390
+
4391
+ # The request contains more tags than can be associated with a resource
4392
+ # (50 tags per resource). The maximum number of tags includes both
4393
+ # existing tags and those included in your current request.
4394
+ #
4395
+ # @!attribute [rw] message
4396
+ # @return [String]
4397
+ #
4398
+ # @see http://docs.aws.amazon.com/goto/WebAPI/comprehend-2017-11-27/TooManyTagsException AWS API Documentation
4399
+ #
4400
+ class TooManyTagsException < Struct.new(
4401
+ :message)
4402
+ include Aws::Structure
4403
+ end
4404
+
4213
4405
  # Provides information for filtering topic detection jobs. For more
4214
4406
  # information, see .
4215
4407
  #
@@ -4344,6 +4536,21 @@ module Aws::Comprehend
4344
4536
  include Aws::Structure
4345
4537
  end
4346
4538
 
4539
+ # Amazon Comprehend can't process the language of the input text. For
4540
+ # all custom entity recognition APIs (such as `CreateEntityRecognizer`),
4541
+ # only English is accepted. For most other APIs, Amazon Comprehend
4542
+ # accepts only English or Spanish text.
4543
+ #
4544
+ # @!attribute [rw] message
4545
+ # @return [String]
4546
+ #
4547
+ # @see http://docs.aws.amazon.com/goto/WebAPI/comprehend-2017-11-27/UnsupportedLanguageException AWS API Documentation
4548
+ #
4549
+ class UnsupportedLanguageException < Struct.new(
4550
+ :message)
4551
+ include Aws::Structure
4552
+ end
4553
+
4347
4554
  # @note When making an API call, you may pass UntagResourceRequest
4348
4555
  # data as a hash:
4349
4556
  #
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: aws-sdk-comprehend
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.20.0
4
+ version: 1.21.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