aws-sdk-comprehend 1.27.0 → 1.32.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -32,16 +32,25 @@ module Aws::Comprehend
32
32
  BatchSizeLimitExceededException = Shapes::StructureShape.new(name: 'BatchSizeLimitExceededException')
33
33
  ClassifierEvaluationMetrics = Shapes::StructureShape.new(name: 'ClassifierEvaluationMetrics')
34
34
  ClassifierMetadata = Shapes::StructureShape.new(name: 'ClassifierMetadata')
35
+ ClassifyDocumentRequest = Shapes::StructureShape.new(name: 'ClassifyDocumentRequest')
36
+ ClassifyDocumentResponse = Shapes::StructureShape.new(name: 'ClassifyDocumentResponse')
35
37
  ClientRequestTokenString = Shapes::StringShape.new(name: 'ClientRequestTokenString')
36
38
  ComprehendArn = Shapes::StringShape.new(name: 'ComprehendArn')
37
39
  ComprehendArnName = Shapes::StringShape.new(name: 'ComprehendArnName')
40
+ ComprehendEndpointArn = Shapes::StringShape.new(name: 'ComprehendEndpointArn')
41
+ ComprehendEndpointName = Shapes::StringShape.new(name: 'ComprehendEndpointName')
42
+ ComprehendModelArn = Shapes::StringShape.new(name: 'ComprehendModelArn')
38
43
  ConcurrentModificationException = Shapes::StructureShape.new(name: 'ConcurrentModificationException')
39
44
  CreateDocumentClassifierRequest = Shapes::StructureShape.new(name: 'CreateDocumentClassifierRequest')
40
45
  CreateDocumentClassifierResponse = Shapes::StructureShape.new(name: 'CreateDocumentClassifierResponse')
46
+ CreateEndpointRequest = Shapes::StructureShape.new(name: 'CreateEndpointRequest')
47
+ CreateEndpointResponse = Shapes::StructureShape.new(name: 'CreateEndpointResponse')
41
48
  CreateEntityRecognizerRequest = Shapes::StructureShape.new(name: 'CreateEntityRecognizerRequest')
42
49
  CreateEntityRecognizerResponse = Shapes::StructureShape.new(name: 'CreateEntityRecognizerResponse')
43
50
  DeleteDocumentClassifierRequest = Shapes::StructureShape.new(name: 'DeleteDocumentClassifierRequest')
44
51
  DeleteDocumentClassifierResponse = Shapes::StructureShape.new(name: 'DeleteDocumentClassifierResponse')
52
+ DeleteEndpointRequest = Shapes::StructureShape.new(name: 'DeleteEndpointRequest')
53
+ DeleteEndpointResponse = Shapes::StructureShape.new(name: 'DeleteEndpointResponse')
45
54
  DeleteEntityRecognizerRequest = Shapes::StructureShape.new(name: 'DeleteEntityRecognizerRequest')
46
55
  DeleteEntityRecognizerResponse = Shapes::StructureShape.new(name: 'DeleteEntityRecognizerResponse')
47
56
  DescribeDocumentClassificationJobRequest = Shapes::StructureShape.new(name: 'DescribeDocumentClassificationJobRequest')
@@ -50,6 +59,8 @@ module Aws::Comprehend
50
59
  DescribeDocumentClassifierResponse = Shapes::StructureShape.new(name: 'DescribeDocumentClassifierResponse')
51
60
  DescribeDominantLanguageDetectionJobRequest = Shapes::StructureShape.new(name: 'DescribeDominantLanguageDetectionJobRequest')
52
61
  DescribeDominantLanguageDetectionJobResponse = Shapes::StructureShape.new(name: 'DescribeDominantLanguageDetectionJobResponse')
62
+ DescribeEndpointRequest = Shapes::StructureShape.new(name: 'DescribeEndpointRequest')
63
+ DescribeEndpointResponse = Shapes::StructureShape.new(name: 'DescribeEndpointResponse')
53
64
  DescribeEntitiesDetectionJobRequest = Shapes::StructureShape.new(name: 'DescribeEntitiesDetectionJobRequest')
54
65
  DescribeEntitiesDetectionJobResponse = Shapes::StructureShape.new(name: 'DescribeEntitiesDetectionJobResponse')
55
66
  DescribeEntityRecognizerRequest = Shapes::StructureShape.new(name: 'DescribeEntityRecognizerRequest')
@@ -70,20 +81,28 @@ module Aws::Comprehend
70
81
  DetectSentimentResponse = Shapes::StructureShape.new(name: 'DetectSentimentResponse')
71
82
  DetectSyntaxRequest = Shapes::StructureShape.new(name: 'DetectSyntaxRequest')
72
83
  DetectSyntaxResponse = Shapes::StructureShape.new(name: 'DetectSyntaxResponse')
84
+ DocumentClass = Shapes::StructureShape.new(name: 'DocumentClass')
73
85
  DocumentClassificationJobFilter = Shapes::StructureShape.new(name: 'DocumentClassificationJobFilter')
74
86
  DocumentClassificationJobProperties = Shapes::StructureShape.new(name: 'DocumentClassificationJobProperties')
75
87
  DocumentClassificationJobPropertiesList = Shapes::ListShape.new(name: 'DocumentClassificationJobPropertiesList')
76
88
  DocumentClassifierArn = Shapes::StringShape.new(name: 'DocumentClassifierArn')
89
+ DocumentClassifierEndpointArn = Shapes::StringShape.new(name: 'DocumentClassifierEndpointArn')
77
90
  DocumentClassifierFilter = Shapes::StructureShape.new(name: 'DocumentClassifierFilter')
78
91
  DocumentClassifierInputDataConfig = Shapes::StructureShape.new(name: 'DocumentClassifierInputDataConfig')
92
+ DocumentClassifierMode = Shapes::StringShape.new(name: 'DocumentClassifierMode')
79
93
  DocumentClassifierOutputDataConfig = Shapes::StructureShape.new(name: 'DocumentClassifierOutputDataConfig')
80
94
  DocumentClassifierProperties = Shapes::StructureShape.new(name: 'DocumentClassifierProperties')
81
95
  DocumentClassifierPropertiesList = Shapes::ListShape.new(name: 'DocumentClassifierPropertiesList')
96
+ DocumentLabel = Shapes::StructureShape.new(name: 'DocumentLabel')
82
97
  DominantLanguage = Shapes::StructureShape.new(name: 'DominantLanguage')
83
98
  DominantLanguageDetectionJobFilter = Shapes::StructureShape.new(name: 'DominantLanguageDetectionJobFilter')
84
99
  DominantLanguageDetectionJobProperties = Shapes::StructureShape.new(name: 'DominantLanguageDetectionJobProperties')
85
100
  DominantLanguageDetectionJobPropertiesList = Shapes::ListShape.new(name: 'DominantLanguageDetectionJobPropertiesList')
86
101
  Double = Shapes::FloatShape.new(name: 'Double')
102
+ EndpointFilter = Shapes::StructureShape.new(name: 'EndpointFilter')
103
+ EndpointProperties = Shapes::StructureShape.new(name: 'EndpointProperties')
104
+ EndpointPropertiesList = Shapes::ListShape.new(name: 'EndpointPropertiesList')
105
+ EndpointStatus = Shapes::StringShape.new(name: 'EndpointStatus')
87
106
  EntitiesDetectionJobFilter = Shapes::StructureShape.new(name: 'EntitiesDetectionJobFilter')
88
107
  EntitiesDetectionJobProperties = Shapes::StructureShape.new(name: 'EntitiesDetectionJobProperties')
89
108
  EntitiesDetectionJobPropertiesList = Shapes::ListShape.new(name: 'EntitiesDetectionJobPropertiesList')
@@ -107,6 +126,7 @@ module Aws::Comprehend
107
126
  EntityTypesListItem = Shapes::StructureShape.new(name: 'EntityTypesListItem')
108
127
  Float = Shapes::FloatShape.new(name: 'Float')
109
128
  IamRoleArn = Shapes::StringShape.new(name: 'IamRoleArn')
129
+ InferenceUnitsInteger = Shapes::IntegerShape.new(name: 'InferenceUnitsInteger')
110
130
  InputDataConfig = Shapes::StructureShape.new(name: 'InputDataConfig')
111
131
  InputFormat = Shapes::StringShape.new(name: 'InputFormat')
112
132
  Integer = Shapes::IntegerShape.new(name: 'Integer')
@@ -123,6 +143,7 @@ module Aws::Comprehend
123
143
  KeyPhrasesDetectionJobPropertiesList = Shapes::ListShape.new(name: 'KeyPhrasesDetectionJobPropertiesList')
124
144
  KmsKeyId = Shapes::StringShape.new(name: 'KmsKeyId')
125
145
  KmsKeyValidationException = Shapes::StructureShape.new(name: 'KmsKeyValidationException')
146
+ LabelDelimiter = Shapes::StringShape.new(name: 'LabelDelimiter')
126
147
  LanguageCode = Shapes::StringShape.new(name: 'LanguageCode')
127
148
  ListDocumentClassificationJobsRequest = Shapes::StructureShape.new(name: 'ListDocumentClassificationJobsRequest')
128
149
  ListDocumentClassificationJobsResponse = Shapes::StructureShape.new(name: 'ListDocumentClassificationJobsResponse')
@@ -130,12 +151,15 @@ module Aws::Comprehend
130
151
  ListDocumentClassifiersResponse = Shapes::StructureShape.new(name: 'ListDocumentClassifiersResponse')
131
152
  ListDominantLanguageDetectionJobsRequest = Shapes::StructureShape.new(name: 'ListDominantLanguageDetectionJobsRequest')
132
153
  ListDominantLanguageDetectionJobsResponse = Shapes::StructureShape.new(name: 'ListDominantLanguageDetectionJobsResponse')
154
+ ListEndpointsRequest = Shapes::StructureShape.new(name: 'ListEndpointsRequest')
155
+ ListEndpointsResponse = Shapes::StructureShape.new(name: 'ListEndpointsResponse')
133
156
  ListEntitiesDetectionJobsRequest = Shapes::StructureShape.new(name: 'ListEntitiesDetectionJobsRequest')
134
157
  ListEntitiesDetectionJobsResponse = Shapes::StructureShape.new(name: 'ListEntitiesDetectionJobsResponse')
135
158
  ListEntityRecognizersRequest = Shapes::StructureShape.new(name: 'ListEntityRecognizersRequest')
136
159
  ListEntityRecognizersResponse = Shapes::StructureShape.new(name: 'ListEntityRecognizersResponse')
137
160
  ListKeyPhrasesDetectionJobsRequest = Shapes::StructureShape.new(name: 'ListKeyPhrasesDetectionJobsRequest')
138
161
  ListKeyPhrasesDetectionJobsResponse = Shapes::StructureShape.new(name: 'ListKeyPhrasesDetectionJobsResponse')
162
+ ListOfClasses = Shapes::ListShape.new(name: 'ListOfClasses')
139
163
  ListOfDetectDominantLanguageResult = Shapes::ListShape.new(name: 'ListOfDetectDominantLanguageResult')
140
164
  ListOfDetectEntitiesResult = Shapes::ListShape.new(name: 'ListOfDetectEntitiesResult')
141
165
  ListOfDetectKeyPhrasesResult = Shapes::ListShape.new(name: 'ListOfDetectKeyPhrasesResult')
@@ -144,6 +168,7 @@ module Aws::Comprehend
144
168
  ListOfDominantLanguages = Shapes::ListShape.new(name: 'ListOfDominantLanguages')
145
169
  ListOfEntities = Shapes::ListShape.new(name: 'ListOfEntities')
146
170
  ListOfKeyPhrases = Shapes::ListShape.new(name: 'ListOfKeyPhrases')
171
+ ListOfLabels = Shapes::ListShape.new(name: 'ListOfLabels')
147
172
  ListOfSyntaxTokens = Shapes::ListShape.new(name: 'ListOfSyntaxTokens')
148
173
  ListSentimentDetectionJobsRequest = Shapes::StructureShape.new(name: 'ListSentimentDetectionJobsRequest')
149
174
  ListSentimentDetectionJobsResponse = Shapes::StructureShape.new(name: 'ListSentimentDetectionJobsResponse')
@@ -217,6 +242,8 @@ module Aws::Comprehend
217
242
  UnsupportedLanguageException = Shapes::StructureShape.new(name: 'UnsupportedLanguageException')
218
243
  UntagResourceRequest = Shapes::StructureShape.new(name: 'UntagResourceRequest')
219
244
  UntagResourceResponse = Shapes::StructureShape.new(name: 'UntagResourceResponse')
245
+ UpdateEndpointRequest = Shapes::StructureShape.new(name: 'UpdateEndpointRequest')
246
+ UpdateEndpointResponse = Shapes::StructureShape.new(name: 'UpdateEndpointResponse')
220
247
  VpcConfig = Shapes::StructureShape.new(name: 'VpcConfig')
221
248
 
222
249
  BatchDetectDominantLanguageItemResult.add_member(:index, Shapes::ShapeRef.new(shape: Integer, location_name: "Index"))
@@ -293,6 +320,10 @@ module Aws::Comprehend
293
320
  ClassifierEvaluationMetrics.add_member(:precision, Shapes::ShapeRef.new(shape: Double, location_name: "Precision"))
294
321
  ClassifierEvaluationMetrics.add_member(:recall, Shapes::ShapeRef.new(shape: Double, location_name: "Recall"))
295
322
  ClassifierEvaluationMetrics.add_member(:f1_score, Shapes::ShapeRef.new(shape: Double, location_name: "F1Score"))
323
+ ClassifierEvaluationMetrics.add_member(:micro_precision, Shapes::ShapeRef.new(shape: Double, location_name: "MicroPrecision"))
324
+ ClassifierEvaluationMetrics.add_member(:micro_recall, Shapes::ShapeRef.new(shape: Double, location_name: "MicroRecall"))
325
+ ClassifierEvaluationMetrics.add_member(:micro_f1_score, Shapes::ShapeRef.new(shape: Double, location_name: "MicroF1Score"))
326
+ ClassifierEvaluationMetrics.add_member(:hamming_loss, Shapes::ShapeRef.new(shape: Double, location_name: "HammingLoss"))
296
327
  ClassifierEvaluationMetrics.struct_class = Types::ClassifierEvaluationMetrics
297
328
 
298
329
  ClassifierMetadata.add_member(:number_of_labels, Shapes::ShapeRef.new(shape: Integer, location_name: "NumberOfLabels"))
@@ -301,6 +332,14 @@ module Aws::Comprehend
301
332
  ClassifierMetadata.add_member(:evaluation_metrics, Shapes::ShapeRef.new(shape: ClassifierEvaluationMetrics, location_name: "EvaluationMetrics"))
302
333
  ClassifierMetadata.struct_class = Types::ClassifierMetadata
303
334
 
335
+ ClassifyDocumentRequest.add_member(:text, Shapes::ShapeRef.new(shape: String, required: true, location_name: "Text"))
336
+ ClassifyDocumentRequest.add_member(:endpoint_arn, Shapes::ShapeRef.new(shape: DocumentClassifierEndpointArn, required: true, location_name: "EndpointArn"))
337
+ ClassifyDocumentRequest.struct_class = Types::ClassifyDocumentRequest
338
+
339
+ ClassifyDocumentResponse.add_member(:classes, Shapes::ShapeRef.new(shape: ListOfClasses, location_name: "Classes"))
340
+ ClassifyDocumentResponse.add_member(:labels, Shapes::ShapeRef.new(shape: ListOfLabels, location_name: "Labels"))
341
+ ClassifyDocumentResponse.struct_class = Types::ClassifyDocumentResponse
342
+
304
343
  ConcurrentModificationException.add_member(:message, Shapes::ShapeRef.new(shape: String, location_name: "Message"))
305
344
  ConcurrentModificationException.struct_class = Types::ConcurrentModificationException
306
345
 
@@ -313,11 +352,22 @@ module Aws::Comprehend
313
352
  CreateDocumentClassifierRequest.add_member(:language_code, Shapes::ShapeRef.new(shape: LanguageCode, required: true, location_name: "LanguageCode"))
314
353
  CreateDocumentClassifierRequest.add_member(:volume_kms_key_id, Shapes::ShapeRef.new(shape: KmsKeyId, location_name: "VolumeKmsKeyId"))
315
354
  CreateDocumentClassifierRequest.add_member(:vpc_config, Shapes::ShapeRef.new(shape: VpcConfig, location_name: "VpcConfig"))
355
+ CreateDocumentClassifierRequest.add_member(:mode, Shapes::ShapeRef.new(shape: DocumentClassifierMode, location_name: "Mode"))
316
356
  CreateDocumentClassifierRequest.struct_class = Types::CreateDocumentClassifierRequest
317
357
 
318
358
  CreateDocumentClassifierResponse.add_member(:document_classifier_arn, Shapes::ShapeRef.new(shape: DocumentClassifierArn, location_name: "DocumentClassifierArn"))
319
359
  CreateDocumentClassifierResponse.struct_class = Types::CreateDocumentClassifierResponse
320
360
 
361
+ CreateEndpointRequest.add_member(:endpoint_name, Shapes::ShapeRef.new(shape: ComprehendEndpointName, required: true, location_name: "EndpointName"))
362
+ CreateEndpointRequest.add_member(:model_arn, Shapes::ShapeRef.new(shape: ComprehendModelArn, required: true, location_name: "ModelArn"))
363
+ CreateEndpointRequest.add_member(:desired_inference_units, Shapes::ShapeRef.new(shape: InferenceUnitsInteger, required: true, location_name: "DesiredInferenceUnits"))
364
+ CreateEndpointRequest.add_member(:client_request_token, Shapes::ShapeRef.new(shape: ClientRequestTokenString, location_name: "ClientRequestToken", metadata: {"idempotencyToken"=>true}))
365
+ CreateEndpointRequest.add_member(:tags, Shapes::ShapeRef.new(shape: TagList, location_name: "Tags"))
366
+ CreateEndpointRequest.struct_class = Types::CreateEndpointRequest
367
+
368
+ CreateEndpointResponse.add_member(:endpoint_arn, Shapes::ShapeRef.new(shape: ComprehendEndpointArn, location_name: "EndpointArn"))
369
+ CreateEndpointResponse.struct_class = Types::CreateEndpointResponse
370
+
321
371
  CreateEntityRecognizerRequest.add_member(:recognizer_name, Shapes::ShapeRef.new(shape: ComprehendArnName, required: true, location_name: "RecognizerName"))
322
372
  CreateEntityRecognizerRequest.add_member(:data_access_role_arn, Shapes::ShapeRef.new(shape: IamRoleArn, required: true, location_name: "DataAccessRoleArn"))
323
373
  CreateEntityRecognizerRequest.add_member(:tags, Shapes::ShapeRef.new(shape: TagList, location_name: "Tags"))
@@ -336,6 +386,11 @@ module Aws::Comprehend
336
386
 
337
387
  DeleteDocumentClassifierResponse.struct_class = Types::DeleteDocumentClassifierResponse
338
388
 
389
+ DeleteEndpointRequest.add_member(:endpoint_arn, Shapes::ShapeRef.new(shape: ComprehendEndpointArn, required: true, location_name: "EndpointArn"))
390
+ DeleteEndpointRequest.struct_class = Types::DeleteEndpointRequest
391
+
392
+ DeleteEndpointResponse.struct_class = Types::DeleteEndpointResponse
393
+
339
394
  DeleteEntityRecognizerRequest.add_member(:entity_recognizer_arn, Shapes::ShapeRef.new(shape: EntityRecognizerArn, required: true, location_name: "EntityRecognizerArn"))
340
395
  DeleteEntityRecognizerRequest.struct_class = Types::DeleteEntityRecognizerRequest
341
396
 
@@ -359,6 +414,12 @@ module Aws::Comprehend
359
414
  DescribeDominantLanguageDetectionJobResponse.add_member(:dominant_language_detection_job_properties, Shapes::ShapeRef.new(shape: DominantLanguageDetectionJobProperties, location_name: "DominantLanguageDetectionJobProperties"))
360
415
  DescribeDominantLanguageDetectionJobResponse.struct_class = Types::DescribeDominantLanguageDetectionJobResponse
361
416
 
417
+ DescribeEndpointRequest.add_member(:endpoint_arn, Shapes::ShapeRef.new(shape: ComprehendEndpointArn, required: true, location_name: "EndpointArn"))
418
+ DescribeEndpointRequest.struct_class = Types::DescribeEndpointRequest
419
+
420
+ DescribeEndpointResponse.add_member(:endpoint_properties, Shapes::ShapeRef.new(shape: EndpointProperties, location_name: "EndpointProperties"))
421
+ DescribeEndpointResponse.struct_class = Types::DescribeEndpointResponse
422
+
362
423
  DescribeEntitiesDetectionJobRequest.add_member(:job_id, Shapes::ShapeRef.new(shape: JobId, required: true, location_name: "JobId"))
363
424
  DescribeEntitiesDetectionJobRequest.struct_class = Types::DescribeEntitiesDetectionJobRequest
364
425
 
@@ -424,6 +485,10 @@ module Aws::Comprehend
424
485
  DetectSyntaxResponse.add_member(:syntax_tokens, Shapes::ShapeRef.new(shape: ListOfSyntaxTokens, location_name: "SyntaxTokens"))
425
486
  DetectSyntaxResponse.struct_class = Types::DetectSyntaxResponse
426
487
 
488
+ DocumentClass.add_member(:name, Shapes::ShapeRef.new(shape: String, location_name: "Name"))
489
+ DocumentClass.add_member(:score, Shapes::ShapeRef.new(shape: Float, location_name: "Score"))
490
+ DocumentClass.struct_class = Types::DocumentClass
491
+
427
492
  DocumentClassificationJobFilter.add_member(:job_name, Shapes::ShapeRef.new(shape: JobName, location_name: "JobName"))
428
493
  DocumentClassificationJobFilter.add_member(:job_status, Shapes::ShapeRef.new(shape: JobStatus, location_name: "JobStatus"))
429
494
  DocumentClassificationJobFilter.add_member(:submit_time_before, Shapes::ShapeRef.new(shape: Timestamp, location_name: "SubmitTimeBefore"))
@@ -452,6 +517,7 @@ module Aws::Comprehend
452
517
  DocumentClassifierFilter.struct_class = Types::DocumentClassifierFilter
453
518
 
454
519
  DocumentClassifierInputDataConfig.add_member(:s3_uri, Shapes::ShapeRef.new(shape: S3Uri, required: true, location_name: "S3Uri"))
520
+ DocumentClassifierInputDataConfig.add_member(:label_delimiter, Shapes::ShapeRef.new(shape: LabelDelimiter, location_name: "LabelDelimiter"))
455
521
  DocumentClassifierInputDataConfig.struct_class = Types::DocumentClassifierInputDataConfig
456
522
 
457
523
  DocumentClassifierOutputDataConfig.add_member(:s3_uri, Shapes::ShapeRef.new(shape: S3Uri, location_name: "S3Uri"))
@@ -472,10 +538,15 @@ module Aws::Comprehend
472
538
  DocumentClassifierProperties.add_member(:data_access_role_arn, Shapes::ShapeRef.new(shape: IamRoleArn, location_name: "DataAccessRoleArn"))
473
539
  DocumentClassifierProperties.add_member(:volume_kms_key_id, Shapes::ShapeRef.new(shape: KmsKeyId, location_name: "VolumeKmsKeyId"))
474
540
  DocumentClassifierProperties.add_member(:vpc_config, Shapes::ShapeRef.new(shape: VpcConfig, location_name: "VpcConfig"))
541
+ DocumentClassifierProperties.add_member(:mode, Shapes::ShapeRef.new(shape: DocumentClassifierMode, location_name: "Mode"))
475
542
  DocumentClassifierProperties.struct_class = Types::DocumentClassifierProperties
476
543
 
477
544
  DocumentClassifierPropertiesList.member = Shapes::ShapeRef.new(shape: DocumentClassifierProperties)
478
545
 
546
+ DocumentLabel.add_member(:name, Shapes::ShapeRef.new(shape: String, location_name: "Name"))
547
+ DocumentLabel.add_member(:score, Shapes::ShapeRef.new(shape: Float, location_name: "Score"))
548
+ DocumentLabel.struct_class = Types::DocumentLabel
549
+
479
550
  DominantLanguage.add_member(:language_code, Shapes::ShapeRef.new(shape: String, location_name: "LanguageCode"))
480
551
  DominantLanguage.add_member(:score, Shapes::ShapeRef.new(shape: Float, location_name: "Score"))
481
552
  DominantLanguage.struct_class = Types::DominantLanguage
@@ -501,6 +572,24 @@ module Aws::Comprehend
501
572
 
502
573
  DominantLanguageDetectionJobPropertiesList.member = Shapes::ShapeRef.new(shape: DominantLanguageDetectionJobProperties)
503
574
 
575
+ EndpointFilter.add_member(:model_arn, Shapes::ShapeRef.new(shape: ComprehendModelArn, location_name: "ModelArn"))
576
+ EndpointFilter.add_member(:status, Shapes::ShapeRef.new(shape: EndpointStatus, location_name: "Status"))
577
+ EndpointFilter.add_member(:creation_time_before, Shapes::ShapeRef.new(shape: Timestamp, location_name: "CreationTimeBefore"))
578
+ EndpointFilter.add_member(:creation_time_after, Shapes::ShapeRef.new(shape: Timestamp, location_name: "CreationTimeAfter"))
579
+ EndpointFilter.struct_class = Types::EndpointFilter
580
+
581
+ EndpointProperties.add_member(:endpoint_arn, Shapes::ShapeRef.new(shape: ComprehendEndpointArn, location_name: "EndpointArn"))
582
+ EndpointProperties.add_member(:status, Shapes::ShapeRef.new(shape: EndpointStatus, location_name: "Status"))
583
+ EndpointProperties.add_member(:message, Shapes::ShapeRef.new(shape: AnyLengthString, location_name: "Message"))
584
+ EndpointProperties.add_member(:model_arn, Shapes::ShapeRef.new(shape: ComprehendModelArn, location_name: "ModelArn"))
585
+ EndpointProperties.add_member(:desired_inference_units, Shapes::ShapeRef.new(shape: InferenceUnitsInteger, location_name: "DesiredInferenceUnits"))
586
+ EndpointProperties.add_member(:current_inference_units, Shapes::ShapeRef.new(shape: InferenceUnitsInteger, location_name: "CurrentInferenceUnits"))
587
+ EndpointProperties.add_member(:creation_time, Shapes::ShapeRef.new(shape: Timestamp, location_name: "CreationTime"))
588
+ EndpointProperties.add_member(:last_modified_time, Shapes::ShapeRef.new(shape: Timestamp, location_name: "LastModifiedTime"))
589
+ EndpointProperties.struct_class = Types::EndpointProperties
590
+
591
+ EndpointPropertiesList.member = Shapes::ShapeRef.new(shape: EndpointProperties)
592
+
504
593
  EntitiesDetectionJobFilter.add_member(:job_name, Shapes::ShapeRef.new(shape: JobName, location_name: "JobName"))
505
594
  EntitiesDetectionJobFilter.add_member(:job_status, Shapes::ShapeRef.new(shape: JobStatus, location_name: "JobStatus"))
506
595
  EntitiesDetectionJobFilter.add_member(:submit_time_before, Shapes::ShapeRef.new(shape: Timestamp, location_name: "SubmitTimeBefore"))
@@ -670,6 +759,15 @@ module Aws::Comprehend
670
759
  ListDominantLanguageDetectionJobsResponse.add_member(:next_token, Shapes::ShapeRef.new(shape: String, location_name: "NextToken"))
671
760
  ListDominantLanguageDetectionJobsResponse.struct_class = Types::ListDominantLanguageDetectionJobsResponse
672
761
 
762
+ ListEndpointsRequest.add_member(:filter, Shapes::ShapeRef.new(shape: EndpointFilter, location_name: "Filter"))
763
+ ListEndpointsRequest.add_member(:next_token, Shapes::ShapeRef.new(shape: String, location_name: "NextToken"))
764
+ ListEndpointsRequest.add_member(:max_results, Shapes::ShapeRef.new(shape: MaxResultsInteger, location_name: "MaxResults"))
765
+ ListEndpointsRequest.struct_class = Types::ListEndpointsRequest
766
+
767
+ ListEndpointsResponse.add_member(:endpoint_properties_list, Shapes::ShapeRef.new(shape: EndpointPropertiesList, location_name: "EndpointPropertiesList"))
768
+ ListEndpointsResponse.add_member(:next_token, Shapes::ShapeRef.new(shape: String, location_name: "NextToken"))
769
+ ListEndpointsResponse.struct_class = Types::ListEndpointsResponse
770
+
673
771
  ListEntitiesDetectionJobsRequest.add_member(:filter, Shapes::ShapeRef.new(shape: EntitiesDetectionJobFilter, location_name: "Filter"))
674
772
  ListEntitiesDetectionJobsRequest.add_member(:next_token, Shapes::ShapeRef.new(shape: String, location_name: "NextToken"))
675
773
  ListEntitiesDetectionJobsRequest.add_member(:max_results, Shapes::ShapeRef.new(shape: MaxResultsInteger, location_name: "MaxResults"))
@@ -697,6 +795,8 @@ module Aws::Comprehend
697
795
  ListKeyPhrasesDetectionJobsResponse.add_member(:next_token, Shapes::ShapeRef.new(shape: String, location_name: "NextToken"))
698
796
  ListKeyPhrasesDetectionJobsResponse.struct_class = Types::ListKeyPhrasesDetectionJobsResponse
699
797
 
798
+ ListOfClasses.member = Shapes::ShapeRef.new(shape: DocumentClass)
799
+
700
800
  ListOfDetectDominantLanguageResult.member = Shapes::ShapeRef.new(shape: BatchDetectDominantLanguageItemResult)
701
801
 
702
802
  ListOfDetectEntitiesResult.member = Shapes::ShapeRef.new(shape: BatchDetectEntitiesItemResult)
@@ -713,6 +813,8 @@ module Aws::Comprehend
713
813
 
714
814
  ListOfKeyPhrases.member = Shapes::ShapeRef.new(shape: KeyPhrase)
715
815
 
816
+ ListOfLabels.member = Shapes::ShapeRef.new(shape: DocumentLabel)
817
+
716
818
  ListOfSyntaxTokens.member = Shapes::ShapeRef.new(shape: SyntaxToken)
717
819
 
718
820
  ListSentimentDetectionJobsRequest.add_member(:filter, Shapes::ShapeRef.new(shape: SentimentDetectionJobFilter, location_name: "Filter"))
@@ -980,6 +1082,12 @@ module Aws::Comprehend
980
1082
 
981
1083
  UntagResourceResponse.struct_class = Types::UntagResourceResponse
982
1084
 
1085
+ UpdateEndpointRequest.add_member(:endpoint_arn, Shapes::ShapeRef.new(shape: ComprehendEndpointArn, required: true, location_name: "EndpointArn"))
1086
+ UpdateEndpointRequest.add_member(:desired_inference_units, Shapes::ShapeRef.new(shape: InferenceUnitsInteger, required: true, location_name: "DesiredInferenceUnits"))
1087
+ UpdateEndpointRequest.struct_class = Types::UpdateEndpointRequest
1088
+
1089
+ UpdateEndpointResponse.struct_class = Types::UpdateEndpointResponse
1090
+
983
1091
  VpcConfig.add_member(:security_group_ids, Shapes::ShapeRef.new(shape: SecurityGroupIds, required: true, location_name: "SecurityGroupIds"))
984
1092
  VpcConfig.add_member(:subnets, Shapes::ShapeRef.new(shape: Subnets, required: true, location_name: "Subnets"))
985
1093
  VpcConfig.struct_class = Types::VpcConfig
@@ -1067,6 +1175,18 @@ module Aws::Comprehend
1067
1175
  o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
1068
1176
  end)
1069
1177
 
1178
+ api.add_operation(:classify_document, Seahorse::Model::Operation.new.tap do |o|
1179
+ o.name = "ClassifyDocument"
1180
+ o.http_method = "POST"
1181
+ o.http_request_uri = "/"
1182
+ o.input = Shapes::ShapeRef.new(shape: ClassifyDocumentRequest)
1183
+ o.output = Shapes::ShapeRef.new(shape: ClassifyDocumentResponse)
1184
+ o.errors << Shapes::ShapeRef.new(shape: InvalidRequestException)
1185
+ o.errors << Shapes::ShapeRef.new(shape: ResourceUnavailableException)
1186
+ o.errors << Shapes::ShapeRef.new(shape: TextSizeLimitExceededException)
1187
+ o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
1188
+ end)
1189
+
1070
1190
  api.add_operation(:create_document_classifier, Seahorse::Model::Operation.new.tap do |o|
1071
1191
  o.name = "CreateDocumentClassifier"
1072
1192
  o.http_method = "POST"
@@ -1083,6 +1203,22 @@ module Aws::Comprehend
1083
1203
  o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
1084
1204
  end)
1085
1205
 
1206
+ api.add_operation(:create_endpoint, Seahorse::Model::Operation.new.tap do |o|
1207
+ o.name = "CreateEndpoint"
1208
+ o.http_method = "POST"
1209
+ o.http_request_uri = "/"
1210
+ o.input = Shapes::ShapeRef.new(shape: CreateEndpointRequest)
1211
+ o.output = Shapes::ShapeRef.new(shape: CreateEndpointResponse)
1212
+ o.errors << Shapes::ShapeRef.new(shape: InvalidRequestException)
1213
+ o.errors << Shapes::ShapeRef.new(shape: ResourceInUseException)
1214
+ o.errors << Shapes::ShapeRef.new(shape: ResourceLimitExceededException)
1215
+ o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
1216
+ o.errors << Shapes::ShapeRef.new(shape: ResourceUnavailableException)
1217
+ o.errors << Shapes::ShapeRef.new(shape: TooManyRequestsException)
1218
+ o.errors << Shapes::ShapeRef.new(shape: TooManyTagsException)
1219
+ o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
1220
+ end)
1221
+
1086
1222
  api.add_operation(:create_entity_recognizer, Seahorse::Model::Operation.new.tap do |o|
1087
1223
  o.name = "CreateEntityRecognizer"
1088
1224
  o.http_method = "POST"
@@ -1113,6 +1249,19 @@ module Aws::Comprehend
1113
1249
  o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
1114
1250
  end)
1115
1251
 
1252
+ api.add_operation(:delete_endpoint, Seahorse::Model::Operation.new.tap do |o|
1253
+ o.name = "DeleteEndpoint"
1254
+ o.http_method = "POST"
1255
+ o.http_request_uri = "/"
1256
+ o.input = Shapes::ShapeRef.new(shape: DeleteEndpointRequest)
1257
+ o.output = Shapes::ShapeRef.new(shape: DeleteEndpointResponse)
1258
+ o.errors << Shapes::ShapeRef.new(shape: InvalidRequestException)
1259
+ o.errors << Shapes::ShapeRef.new(shape: ResourceInUseException)
1260
+ o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
1261
+ o.errors << Shapes::ShapeRef.new(shape: TooManyRequestsException)
1262
+ o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
1263
+ end)
1264
+
1116
1265
  api.add_operation(:delete_entity_recognizer, Seahorse::Model::Operation.new.tap do |o|
1117
1266
  o.name = "DeleteEntityRecognizer"
1118
1267
  o.http_method = "POST"
@@ -1163,6 +1312,18 @@ module Aws::Comprehend
1163
1312
  o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
1164
1313
  end)
1165
1314
 
1315
+ api.add_operation(:describe_endpoint, Seahorse::Model::Operation.new.tap do |o|
1316
+ o.name = "DescribeEndpoint"
1317
+ o.http_method = "POST"
1318
+ o.http_request_uri = "/"
1319
+ o.input = Shapes::ShapeRef.new(shape: DescribeEndpointRequest)
1320
+ o.output = Shapes::ShapeRef.new(shape: DescribeEndpointResponse)
1321
+ o.errors << Shapes::ShapeRef.new(shape: InvalidRequestException)
1322
+ o.errors << Shapes::ShapeRef.new(shape: TooManyRequestsException)
1323
+ o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
1324
+ o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
1325
+ end)
1326
+
1166
1327
  api.add_operation(:describe_entities_detection_job, Seahorse::Model::Operation.new.tap do |o|
1167
1328
  o.name = "DescribeEntitiesDetectionJob"
1168
1329
  o.http_method = "POST"
@@ -1336,6 +1497,17 @@ module Aws::Comprehend
1336
1497
  )
1337
1498
  end)
1338
1499
 
1500
+ api.add_operation(:list_endpoints, Seahorse::Model::Operation.new.tap do |o|
1501
+ o.name = "ListEndpoints"
1502
+ o.http_method = "POST"
1503
+ o.http_request_uri = "/"
1504
+ o.input = Shapes::ShapeRef.new(shape: ListEndpointsRequest)
1505
+ o.output = Shapes::ShapeRef.new(shape: ListEndpointsResponse)
1506
+ o.errors << Shapes::ShapeRef.new(shape: InvalidRequestException)
1507
+ o.errors << Shapes::ShapeRef.new(shape: TooManyRequestsException)
1508
+ o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
1509
+ end)
1510
+
1339
1511
  api.add_operation(:list_entities_detection_jobs, Seahorse::Model::Operation.new.tap do |o|
1340
1512
  o.name = "ListEntitiesDetectionJobs"
1341
1513
  o.http_method = "POST"
@@ -1606,6 +1778,21 @@ module Aws::Comprehend
1606
1778
  o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
1607
1779
  o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
1608
1780
  end)
1781
+
1782
+ api.add_operation(:update_endpoint, Seahorse::Model::Operation.new.tap do |o|
1783
+ o.name = "UpdateEndpoint"
1784
+ o.http_method = "POST"
1785
+ o.http_request_uri = "/"
1786
+ o.input = Shapes::ShapeRef.new(shape: UpdateEndpointRequest)
1787
+ o.output = Shapes::ShapeRef.new(shape: UpdateEndpointResponse)
1788
+ o.errors << Shapes::ShapeRef.new(shape: InvalidRequestException)
1789
+ o.errors << Shapes::ShapeRef.new(shape: TooManyRequestsException)
1790
+ o.errors << Shapes::ShapeRef.new(shape: ResourceInUseException)
1791
+ o.errors << Shapes::ShapeRef.new(shape: ResourceLimitExceededException)
1792
+ o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
1793
+ o.errors << Shapes::ShapeRef.new(shape: ResourceUnavailableException)
1794
+ o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
1795
+ end)
1609
1796
  end
1610
1797
 
1611
1798
  end
@@ -6,6 +6,44 @@
6
6
  # WARNING ABOUT GENERATED CODE
7
7
 
8
8
  module Aws::Comprehend
9
+
10
+ # When Comprehend returns an error response, the Ruby SDK constructs and raises an error.
11
+ # These errors all extend Aws::Comprehend::Errors::ServiceError < {Aws::Errors::ServiceError}
12
+ #
13
+ # You can rescue all Comprehend errors using ServiceError:
14
+ #
15
+ # begin
16
+ # # do stuff
17
+ # rescue Aws::Comprehend::Errors::ServiceError
18
+ # # rescues all Comprehend API errors
19
+ # end
20
+ #
21
+ #
22
+ # ## Request Context
23
+ # ServiceError objects have a {Aws::Errors::ServiceError#context #context} method that returns
24
+ # information about the request that generated the error.
25
+ # See {Seahorse::Client::RequestContext} for more information.
26
+ #
27
+ # ## Error Classes
28
+ # * {BatchSizeLimitExceededException}
29
+ # * {ConcurrentModificationException}
30
+ # * {InternalServerException}
31
+ # * {InvalidFilterException}
32
+ # * {InvalidRequestException}
33
+ # * {JobNotFoundException}
34
+ # * {KmsKeyValidationException}
35
+ # * {ResourceInUseException}
36
+ # * {ResourceLimitExceededException}
37
+ # * {ResourceNotFoundException}
38
+ # * {ResourceUnavailableException}
39
+ # * {TextSizeLimitExceededException}
40
+ # * {TooManyRequestsException}
41
+ # * {TooManyTagKeysException}
42
+ # * {TooManyTagsException}
43
+ # * {UnsupportedLanguageException}
44
+ #
45
+ # Additionally, error classes are dynamically generated for service errors based on the error code
46
+ # if they are not defined above.
9
47
  module Errors
10
48
 
11
49
  extend Aws::Errors::DynamicErrors
@@ -23,7 +61,6 @@ module Aws::Comprehend
23
61
  def message
24
62
  @message || @data[:message]
25
63
  end
26
-
27
64
  end
28
65
 
29
66
  class ConcurrentModificationException < ServiceError
@@ -39,7 +76,6 @@ module Aws::Comprehend
39
76
  def message
40
77
  @message || @data[:message]
41
78
  end
42
-
43
79
  end
44
80
 
45
81
  class InternalServerException < ServiceError
@@ -55,7 +91,6 @@ module Aws::Comprehend
55
91
  def message
56
92
  @message || @data[:message]
57
93
  end
58
-
59
94
  end
60
95
 
61
96
  class InvalidFilterException < ServiceError
@@ -71,7 +106,6 @@ module Aws::Comprehend
71
106
  def message
72
107
  @message || @data[:message]
73
108
  end
74
-
75
109
  end
76
110
 
77
111
  class InvalidRequestException < ServiceError
@@ -87,7 +121,6 @@ module Aws::Comprehend
87
121
  def message
88
122
  @message || @data[:message]
89
123
  end
90
-
91
124
  end
92
125
 
93
126
  class JobNotFoundException < ServiceError
@@ -103,7 +136,6 @@ module Aws::Comprehend
103
136
  def message
104
137
  @message || @data[:message]
105
138
  end
106
-
107
139
  end
108
140
 
109
141
  class KmsKeyValidationException < ServiceError
@@ -119,7 +151,6 @@ module Aws::Comprehend
119
151
  def message
120
152
  @message || @data[:message]
121
153
  end
122
-
123
154
  end
124
155
 
125
156
  class ResourceInUseException < ServiceError
@@ -135,7 +166,6 @@ module Aws::Comprehend
135
166
  def message
136
167
  @message || @data[:message]
137
168
  end
138
-
139
169
  end
140
170
 
141
171
  class ResourceLimitExceededException < ServiceError
@@ -151,7 +181,6 @@ module Aws::Comprehend
151
181
  def message
152
182
  @message || @data[:message]
153
183
  end
154
-
155
184
  end
156
185
 
157
186
  class ResourceNotFoundException < ServiceError
@@ -167,7 +196,6 @@ module Aws::Comprehend
167
196
  def message
168
197
  @message || @data[:message]
169
198
  end
170
-
171
199
  end
172
200
 
173
201
  class ResourceUnavailableException < ServiceError
@@ -183,7 +211,6 @@ module Aws::Comprehend
183
211
  def message
184
212
  @message || @data[:message]
185
213
  end
186
-
187
214
  end
188
215
 
189
216
  class TextSizeLimitExceededException < ServiceError
@@ -199,7 +226,6 @@ module Aws::Comprehend
199
226
  def message
200
227
  @message || @data[:message]
201
228
  end
202
-
203
229
  end
204
230
 
205
231
  class TooManyRequestsException < ServiceError
@@ -215,7 +241,6 @@ module Aws::Comprehend
215
241
  def message
216
242
  @message || @data[:message]
217
243
  end
218
-
219
244
  end
220
245
 
221
246
  class TooManyTagKeysException < ServiceError
@@ -231,7 +256,6 @@ module Aws::Comprehend
231
256
  def message
232
257
  @message || @data[:message]
233
258
  end
234
-
235
259
  end
236
260
 
237
261
  class TooManyTagsException < ServiceError
@@ -247,7 +271,6 @@ module Aws::Comprehend
247
271
  def message
248
272
  @message || @data[:message]
249
273
  end
250
-
251
274
  end
252
275
 
253
276
  class UnsupportedLanguageException < ServiceError
@@ -263,7 +286,6 @@ module Aws::Comprehend
263
286
  def message
264
287
  @message || @data[:message]
265
288
  end
266
-
267
289
  end
268
290
 
269
291
  end