aws-sdk-comprehend 1.60.0 → 1.62.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.
@@ -33,6 +33,9 @@ module Aws::Comprehend
33
33
  BatchDetectSyntaxItemResult = Shapes::StructureShape.new(name: 'BatchDetectSyntaxItemResult')
34
34
  BatchDetectSyntaxRequest = Shapes::StructureShape.new(name: 'BatchDetectSyntaxRequest')
35
35
  BatchDetectSyntaxResponse = Shapes::StructureShape.new(name: 'BatchDetectSyntaxResponse')
36
+ BatchDetectTargetedSentimentItemResult = Shapes::StructureShape.new(name: 'BatchDetectTargetedSentimentItemResult')
37
+ BatchDetectTargetedSentimentRequest = Shapes::StructureShape.new(name: 'BatchDetectTargetedSentimentRequest')
38
+ BatchDetectTargetedSentimentResponse = Shapes::StructureShape.new(name: 'BatchDetectTargetedSentimentResponse')
36
39
  BatchItemError = Shapes::StructureShape.new(name: 'BatchItemError')
37
40
  BatchItemErrorList = Shapes::ListShape.new(name: 'BatchItemErrorList')
38
41
  BatchSizeLimitExceededException = Shapes::StructureShape.new(name: 'BatchSizeLimitExceededException')
@@ -103,6 +106,8 @@ module Aws::Comprehend
103
106
  DetectSentimentResponse = Shapes::StructureShape.new(name: 'DetectSentimentResponse')
104
107
  DetectSyntaxRequest = Shapes::StructureShape.new(name: 'DetectSyntaxRequest')
105
108
  DetectSyntaxResponse = Shapes::StructureShape.new(name: 'DetectSyntaxResponse')
109
+ DetectTargetedSentimentRequest = Shapes::StructureShape.new(name: 'DetectTargetedSentimentRequest')
110
+ DetectTargetedSentimentResponse = Shapes::StructureShape.new(name: 'DetectTargetedSentimentResponse')
106
111
  DocumentClass = Shapes::StructureShape.new(name: 'DocumentClass')
107
112
  DocumentClassificationJobFilter = Shapes::StructureShape.new(name: 'DocumentClassificationJobFilter')
108
113
  DocumentClassificationJobProperties = Shapes::StructureShape.new(name: 'DocumentClassificationJobProperties')
@@ -208,20 +213,24 @@ module Aws::Comprehend
208
213
  ListKeyPhrasesDetectionJobsRequest = Shapes::StructureShape.new(name: 'ListKeyPhrasesDetectionJobsRequest')
209
214
  ListKeyPhrasesDetectionJobsResponse = Shapes::StructureShape.new(name: 'ListKeyPhrasesDetectionJobsResponse')
210
215
  ListOfClasses = Shapes::ListShape.new(name: 'ListOfClasses')
216
+ ListOfDescriptiveMentionIndices = Shapes::ListShape.new(name: 'ListOfDescriptiveMentionIndices')
211
217
  ListOfDetectDominantLanguageResult = Shapes::ListShape.new(name: 'ListOfDetectDominantLanguageResult')
212
218
  ListOfDetectEntitiesResult = Shapes::ListShape.new(name: 'ListOfDetectEntitiesResult')
213
219
  ListOfDetectKeyPhrasesResult = Shapes::ListShape.new(name: 'ListOfDetectKeyPhrasesResult')
214
220
  ListOfDetectSentimentResult = Shapes::ListShape.new(name: 'ListOfDetectSentimentResult')
215
221
  ListOfDetectSyntaxResult = Shapes::ListShape.new(name: 'ListOfDetectSyntaxResult')
222
+ ListOfDetectTargetedSentimentResult = Shapes::ListShape.new(name: 'ListOfDetectTargetedSentimentResult')
216
223
  ListOfDocumentReadFeatureTypes = Shapes::ListShape.new(name: 'ListOfDocumentReadFeatureTypes')
217
224
  ListOfDominantLanguages = Shapes::ListShape.new(name: 'ListOfDominantLanguages')
218
225
  ListOfEntities = Shapes::ListShape.new(name: 'ListOfEntities')
219
226
  ListOfEntityLabels = Shapes::ListShape.new(name: 'ListOfEntityLabels')
220
227
  ListOfKeyPhrases = Shapes::ListShape.new(name: 'ListOfKeyPhrases')
221
228
  ListOfLabels = Shapes::ListShape.new(name: 'ListOfLabels')
229
+ ListOfMentions = Shapes::ListShape.new(name: 'ListOfMentions')
222
230
  ListOfPiiEntities = Shapes::ListShape.new(name: 'ListOfPiiEntities')
223
231
  ListOfPiiEntityTypes = Shapes::ListShape.new(name: 'ListOfPiiEntityTypes')
224
232
  ListOfSyntaxTokens = Shapes::ListShape.new(name: 'ListOfSyntaxTokens')
233
+ ListOfTargetedSentimentEntities = Shapes::ListShape.new(name: 'ListOfTargetedSentimentEntities')
225
234
  ListPiiEntitiesDetectionJobsRequest = Shapes::StructureShape.new(name: 'ListPiiEntitiesDetectionJobsRequest')
226
235
  ListPiiEntitiesDetectionJobsResponse = Shapes::StructureShape.new(name: 'ListPiiEntitiesDetectionJobsResponse')
227
236
  ListSentimentDetectionJobsRequest = Shapes::StructureShape.new(name: 'ListSentimentDetectionJobsRequest')
@@ -234,6 +243,7 @@ module Aws::Comprehend
234
243
  ListTopicsDetectionJobsResponse = Shapes::StructureShape.new(name: 'ListTopicsDetectionJobsResponse')
235
244
  MaskCharacter = Shapes::StringShape.new(name: 'MaskCharacter')
236
245
  MaxResultsInteger = Shapes::IntegerShape.new(name: 'MaxResultsInteger')
246
+ MentionSentiment = Shapes::StructureShape.new(name: 'MentionSentiment')
237
247
  ModelStatus = Shapes::StringShape.new(name: 'ModelStatus')
238
248
  NumberOfTopicsInteger = Shapes::IntegerShape.new(name: 'NumberOfTopicsInteger')
239
249
  OutputDataConfig = Shapes::StructureShape.new(name: 'OutputDataConfig')
@@ -317,6 +327,9 @@ module Aws::Comprehend
317
327
  TargetedSentimentDetectionJobFilter = Shapes::StructureShape.new(name: 'TargetedSentimentDetectionJobFilter')
318
328
  TargetedSentimentDetectionJobProperties = Shapes::StructureShape.new(name: 'TargetedSentimentDetectionJobProperties')
319
329
  TargetedSentimentDetectionJobPropertiesList = Shapes::ListShape.new(name: 'TargetedSentimentDetectionJobPropertiesList')
330
+ TargetedSentimentEntity = Shapes::StructureShape.new(name: 'TargetedSentimentEntity')
331
+ TargetedSentimentEntityType = Shapes::StringShape.new(name: 'TargetedSentimentEntityType')
332
+ TargetedSentimentMention = Shapes::StructureShape.new(name: 'TargetedSentimentMention')
320
333
  TextSizeLimitExceededException = Shapes::StructureShape.new(name: 'TextSizeLimitExceededException')
321
334
  Timestamp = Shapes::TimestampShape.new(name: 'Timestamp')
322
335
  TooManyRequestsException = Shapes::StructureShape.new(name: 'TooManyRequestsException')
@@ -403,6 +416,18 @@ module Aws::Comprehend
403
416
  BatchDetectSyntaxResponse.add_member(:error_list, Shapes::ShapeRef.new(shape: BatchItemErrorList, required: true, location_name: "ErrorList"))
404
417
  BatchDetectSyntaxResponse.struct_class = Types::BatchDetectSyntaxResponse
405
418
 
419
+ BatchDetectTargetedSentimentItemResult.add_member(:index, Shapes::ShapeRef.new(shape: Integer, location_name: "Index"))
420
+ BatchDetectTargetedSentimentItemResult.add_member(:entities, Shapes::ShapeRef.new(shape: ListOfTargetedSentimentEntities, location_name: "Entities"))
421
+ BatchDetectTargetedSentimentItemResult.struct_class = Types::BatchDetectTargetedSentimentItemResult
422
+
423
+ BatchDetectTargetedSentimentRequest.add_member(:text_list, Shapes::ShapeRef.new(shape: CustomerInputStringList, required: true, location_name: "TextList"))
424
+ BatchDetectTargetedSentimentRequest.add_member(:language_code, Shapes::ShapeRef.new(shape: LanguageCode, required: true, location_name: "LanguageCode"))
425
+ BatchDetectTargetedSentimentRequest.struct_class = Types::BatchDetectTargetedSentimentRequest
426
+
427
+ BatchDetectTargetedSentimentResponse.add_member(:result_list, Shapes::ShapeRef.new(shape: ListOfDetectTargetedSentimentResult, required: true, location_name: "ResultList"))
428
+ BatchDetectTargetedSentimentResponse.add_member(:error_list, Shapes::ShapeRef.new(shape: BatchItemErrorList, required: true, location_name: "ErrorList"))
429
+ BatchDetectTargetedSentimentResponse.struct_class = Types::BatchDetectTargetedSentimentResponse
430
+
406
431
  BatchItemError.add_member(:index, Shapes::ShapeRef.new(shape: Integer, location_name: "Index"))
407
432
  BatchItemError.add_member(:error_code, Shapes::ShapeRef.new(shape: String, location_name: "ErrorCode"))
408
433
  BatchItemError.add_member(:error_message, Shapes::ShapeRef.new(shape: String, location_name: "ErrorMessage"))
@@ -639,6 +664,13 @@ module Aws::Comprehend
639
664
  DetectSyntaxResponse.add_member(:syntax_tokens, Shapes::ShapeRef.new(shape: ListOfSyntaxTokens, location_name: "SyntaxTokens"))
640
665
  DetectSyntaxResponse.struct_class = Types::DetectSyntaxResponse
641
666
 
667
+ DetectTargetedSentimentRequest.add_member(:text, Shapes::ShapeRef.new(shape: CustomerInputString, required: true, location_name: "Text"))
668
+ DetectTargetedSentimentRequest.add_member(:language_code, Shapes::ShapeRef.new(shape: LanguageCode, required: true, location_name: "LanguageCode"))
669
+ DetectTargetedSentimentRequest.struct_class = Types::DetectTargetedSentimentRequest
670
+
671
+ DetectTargetedSentimentResponse.add_member(:entities, Shapes::ShapeRef.new(shape: ListOfTargetedSentimentEntities, location_name: "Entities"))
672
+ DetectTargetedSentimentResponse.struct_class = Types::DetectTargetedSentimentResponse
673
+
642
674
  DocumentClass.add_member(:name, Shapes::ShapeRef.new(shape: String, location_name: "Name"))
643
675
  DocumentClass.add_member(:score, Shapes::ShapeRef.new(shape: Float, location_name: "Score"))
644
676
  DocumentClass.struct_class = Types::DocumentClass
@@ -1064,6 +1096,8 @@ module Aws::Comprehend
1064
1096
 
1065
1097
  ListOfClasses.member = Shapes::ShapeRef.new(shape: DocumentClass)
1066
1098
 
1099
+ ListOfDescriptiveMentionIndices.member = Shapes::ShapeRef.new(shape: Integer)
1100
+
1067
1101
  ListOfDetectDominantLanguageResult.member = Shapes::ShapeRef.new(shape: BatchDetectDominantLanguageItemResult)
1068
1102
 
1069
1103
  ListOfDetectEntitiesResult.member = Shapes::ShapeRef.new(shape: BatchDetectEntitiesItemResult)
@@ -1074,6 +1108,8 @@ module Aws::Comprehend
1074
1108
 
1075
1109
  ListOfDetectSyntaxResult.member = Shapes::ShapeRef.new(shape: BatchDetectSyntaxItemResult)
1076
1110
 
1111
+ ListOfDetectTargetedSentimentResult.member = Shapes::ShapeRef.new(shape: BatchDetectTargetedSentimentItemResult)
1112
+
1077
1113
  ListOfDocumentReadFeatureTypes.member = Shapes::ShapeRef.new(shape: DocumentReadFeatureTypes)
1078
1114
 
1079
1115
  ListOfDominantLanguages.member = Shapes::ShapeRef.new(shape: DominantLanguage)
@@ -1086,12 +1122,16 @@ module Aws::Comprehend
1086
1122
 
1087
1123
  ListOfLabels.member = Shapes::ShapeRef.new(shape: DocumentLabel)
1088
1124
 
1125
+ ListOfMentions.member = Shapes::ShapeRef.new(shape: TargetedSentimentMention)
1126
+
1089
1127
  ListOfPiiEntities.member = Shapes::ShapeRef.new(shape: PiiEntity)
1090
1128
 
1091
1129
  ListOfPiiEntityTypes.member = Shapes::ShapeRef.new(shape: PiiEntityType)
1092
1130
 
1093
1131
  ListOfSyntaxTokens.member = Shapes::ShapeRef.new(shape: SyntaxToken)
1094
1132
 
1133
+ ListOfTargetedSentimentEntities.member = Shapes::ShapeRef.new(shape: TargetedSentimentEntity)
1134
+
1095
1135
  ListPiiEntitiesDetectionJobsRequest.add_member(:filter, Shapes::ShapeRef.new(shape: PiiEntitiesDetectionJobFilter, location_name: "Filter"))
1096
1136
  ListPiiEntitiesDetectionJobsRequest.add_member(:next_token, Shapes::ShapeRef.new(shape: String, location_name: "NextToken"))
1097
1137
  ListPiiEntitiesDetectionJobsRequest.add_member(:max_results, Shapes::ShapeRef.new(shape: MaxResultsInteger, location_name: "MaxResults"))
@@ -1135,6 +1175,10 @@ module Aws::Comprehend
1135
1175
  ListTopicsDetectionJobsResponse.add_member(:next_token, Shapes::ShapeRef.new(shape: String, location_name: "NextToken"))
1136
1176
  ListTopicsDetectionJobsResponse.struct_class = Types::ListTopicsDetectionJobsResponse
1137
1177
 
1178
+ MentionSentiment.add_member(:sentiment, Shapes::ShapeRef.new(shape: SentimentType, location_name: "Sentiment"))
1179
+ MentionSentiment.add_member(:sentiment_score, Shapes::ShapeRef.new(shape: SentimentScore, location_name: "SentimentScore"))
1180
+ MentionSentiment.struct_class = Types::MentionSentiment
1181
+
1138
1182
  OutputDataConfig.add_member(:s3_uri, Shapes::ShapeRef.new(shape: S3Uri, required: true, location_name: "S3Uri"))
1139
1183
  OutputDataConfig.add_member(:kms_key_id, Shapes::ShapeRef.new(shape: KmsKeyId, location_name: "KmsKeyId"))
1140
1184
  OutputDataConfig.struct_class = Types::OutputDataConfig
@@ -1482,6 +1526,19 @@ module Aws::Comprehend
1482
1526
 
1483
1527
  TargetedSentimentDetectionJobPropertiesList.member = Shapes::ShapeRef.new(shape: TargetedSentimentDetectionJobProperties)
1484
1528
 
1529
+ TargetedSentimentEntity.add_member(:descriptive_mention_index, Shapes::ShapeRef.new(shape: ListOfDescriptiveMentionIndices, location_name: "DescriptiveMentionIndex"))
1530
+ TargetedSentimentEntity.add_member(:mentions, Shapes::ShapeRef.new(shape: ListOfMentions, location_name: "Mentions"))
1531
+ TargetedSentimentEntity.struct_class = Types::TargetedSentimentEntity
1532
+
1533
+ TargetedSentimentMention.add_member(:score, Shapes::ShapeRef.new(shape: Float, location_name: "Score"))
1534
+ TargetedSentimentMention.add_member(:group_score, Shapes::ShapeRef.new(shape: Float, location_name: "GroupScore"))
1535
+ TargetedSentimentMention.add_member(:text, Shapes::ShapeRef.new(shape: String, location_name: "Text"))
1536
+ TargetedSentimentMention.add_member(:type, Shapes::ShapeRef.new(shape: TargetedSentimentEntityType, location_name: "Type"))
1537
+ TargetedSentimentMention.add_member(:mention_sentiment, Shapes::ShapeRef.new(shape: MentionSentiment, location_name: "MentionSentiment"))
1538
+ TargetedSentimentMention.add_member(:begin_offset, Shapes::ShapeRef.new(shape: Integer, location_name: "BeginOffset"))
1539
+ TargetedSentimentMention.add_member(:end_offset, Shapes::ShapeRef.new(shape: Integer, location_name: "EndOffset"))
1540
+ TargetedSentimentMention.struct_class = Types::TargetedSentimentMention
1541
+
1485
1542
  TextSizeLimitExceededException.add_member(:message, Shapes::ShapeRef.new(shape: String, location_name: "Message"))
1486
1543
  TextSizeLimitExceededException.struct_class = Types::TextSizeLimitExceededException
1487
1544
 
@@ -1621,6 +1678,19 @@ module Aws::Comprehend
1621
1678
  o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
1622
1679
  end)
1623
1680
 
1681
+ api.add_operation(:batch_detect_targeted_sentiment, Seahorse::Model::Operation.new.tap do |o|
1682
+ o.name = "BatchDetectTargetedSentiment"
1683
+ o.http_method = "POST"
1684
+ o.http_request_uri = "/"
1685
+ o.input = Shapes::ShapeRef.new(shape: BatchDetectTargetedSentimentRequest)
1686
+ o.output = Shapes::ShapeRef.new(shape: BatchDetectTargetedSentimentResponse)
1687
+ o.errors << Shapes::ShapeRef.new(shape: InvalidRequestException)
1688
+ o.errors << Shapes::ShapeRef.new(shape: TextSizeLimitExceededException)
1689
+ o.errors << Shapes::ShapeRef.new(shape: UnsupportedLanguageException)
1690
+ o.errors << Shapes::ShapeRef.new(shape: BatchSizeLimitExceededException)
1691
+ o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
1692
+ end)
1693
+
1624
1694
  api.add_operation(:classify_document, Seahorse::Model::Operation.new.tap do |o|
1625
1695
  o.name = "ClassifyDocument"
1626
1696
  o.http_method = "POST"
@@ -1972,6 +2042,18 @@ module Aws::Comprehend
1972
2042
  o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
1973
2043
  end)
1974
2044
 
2045
+ api.add_operation(:detect_targeted_sentiment, Seahorse::Model::Operation.new.tap do |o|
2046
+ o.name = "DetectTargetedSentiment"
2047
+ o.http_method = "POST"
2048
+ o.http_request_uri = "/"
2049
+ o.input = Shapes::ShapeRef.new(shape: DetectTargetedSentimentRequest)
2050
+ o.output = Shapes::ShapeRef.new(shape: DetectTargetedSentimentResponse)
2051
+ o.errors << Shapes::ShapeRef.new(shape: InvalidRequestException)
2052
+ o.errors << Shapes::ShapeRef.new(shape: TextSizeLimitExceededException)
2053
+ o.errors << Shapes::ShapeRef.new(shape: UnsupportedLanguageException)
2054
+ o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
2055
+ end)
2056
+
1975
2057
  api.add_operation(:import_model, Seahorse::Model::Operation.new.tap do |o|
1976
2058
  o.name = "ImportModel"
1977
2059
  o.http_method = "POST"