aws-sdk-comprehend 1.34.0 → 1.35.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
  SHA256:
3
- metadata.gz: 11748948d475c0bf4d3a5411da47e7a422c3ef4cfc54d1fa1818bf8e1f6fa286
4
- data.tar.gz: f050489b0d80a847633811f2c1de56861364c545caabb2bdd58b8d011360deea
3
+ metadata.gz: cb730a09dbf7ca9369c83d4f70c0f3bae288115edcb23a231a4f63421d1ad86c
4
+ data.tar.gz: 8c0cab20548f4d18381be952684dba777b04df374fe7f710720bb69686d88ff7
5
5
  SHA512:
6
- metadata.gz: 0af4bdffd5ce15ed08cef833efcb3e92db0533c36b3350676a82223b20fe284cbf3a6eb42fb8450384b45692b0d3d1784ad86779d2e986e4bf6edc7b19b04d89
7
- data.tar.gz: a4ea81392c59ae740f7ed0ff858ebb4d18d4f466799755dd5e3af6c16a413089bbe124c53aabe7ff8d889ba033c5044101c0db157092d8669d4383f2f8d6cfcf
6
+ metadata.gz: 2d12d452da9db09af118395bc123ffe9c95f09b96c26b5ed8223a08d027ae9d1af0e2b385cd0b801b70e75f227eebcda3e03db5f415cb976ab509804e5945628
7
+ data.tar.gz: 4cb90bfa95e1d742892681f9516b17dd719740c1e9bd87e0d117b993ead936ee58b0f44a94d35b69d5a903332809681002fe81f04089e1def4c12e124588fc5d
@@ -47,6 +47,6 @@ require_relative 'aws-sdk-comprehend/customizations'
47
47
  # @service
48
48
  module Aws::Comprehend
49
49
 
50
- GEM_VERSION = '1.34.0'
50
+ GEM_VERSION = '1.35.0'
51
51
 
52
52
  end
@@ -344,7 +344,7 @@ module Aws::Comprehend
344
344
  # @example Request syntax with placeholder values
345
345
  #
346
346
  # resp = client.batch_detect_dominant_language({
347
- # text_list: ["String"], # required
347
+ # text_list: ["CustomerInputString"], # required
348
348
  # })
349
349
  #
350
350
  # @example Response structure
@@ -390,7 +390,7 @@ module Aws::Comprehend
390
390
  # @example Request syntax with placeholder values
391
391
  #
392
392
  # resp = client.batch_detect_entities({
393
- # text_list: ["String"], # required
393
+ # text_list: ["CustomerInputString"], # required
394
394
  # language_code: "en", # required, accepts en, es, fr, de, it, pt, ar, hi, ja, ko, zh, zh-TW
395
395
  # })
396
396
  #
@@ -438,7 +438,7 @@ module Aws::Comprehend
438
438
  # @example Request syntax with placeholder values
439
439
  #
440
440
  # resp = client.batch_detect_key_phrases({
441
- # text_list: ["String"], # required
441
+ # text_list: ["CustomerInputString"], # required
442
442
  # language_code: "en", # required, accepts en, es, fr, de, it, pt, ar, hi, ja, ko, zh, zh-TW
443
443
  # })
444
444
  #
@@ -487,7 +487,7 @@ module Aws::Comprehend
487
487
  # @example Request syntax with placeholder values
488
488
  #
489
489
  # resp = client.batch_detect_sentiment({
490
- # text_list: ["String"], # required
490
+ # text_list: ["CustomerInputString"], # required
491
491
  # language_code: "en", # required, accepts en, es, fr, de, it, pt, ar, hi, ja, ko, zh, zh-TW
492
492
  # })
493
493
  #
@@ -537,7 +537,7 @@ module Aws::Comprehend
537
537
  # @example Request syntax with placeholder values
538
538
  #
539
539
  # resp = client.batch_detect_syntax({
540
- # text_list: ["String"], # required
540
+ # text_list: ["CustomerInputString"], # required
541
541
  # language_code: "en", # required, accepts en, es, fr, de, it, pt
542
542
  # })
543
543
  #
@@ -584,7 +584,7 @@ module Aws::Comprehend
584
584
  # @example Request syntax with placeholder values
585
585
  #
586
586
  # resp = client.classify_document({
587
- # text: "String", # required
587
+ # text: "CustomerInputString", # required
588
588
  # endpoint_arn: "DocumentClassifierEndpointArn", # required
589
589
  # })
590
590
  #
@@ -607,7 +607,7 @@ module Aws::Comprehend
607
607
  end
608
608
 
609
609
  # Creates a new document classifier that you can use to categorize
610
- # documents. To create a classifier you provide a set of training
610
+ # documents. To create a classifier, you provide a set of training
611
611
  # documents that labeled with the categories that you want to use. After
612
612
  # the classifier is trained you can use it to categorize a set of
613
613
  # labeled documents into the categories. For more information, see
@@ -1427,7 +1427,7 @@ module Aws::Comprehend
1427
1427
  # @example Request syntax with placeholder values
1428
1428
  #
1429
1429
  # resp = client.detect_dominant_language({
1430
- # text: "String", # required
1430
+ # text: "CustomerInputString", # required
1431
1431
  # })
1432
1432
  #
1433
1433
  # @example Response structure
@@ -1452,11 +1452,25 @@ module Aws::Comprehend
1452
1452
  # A UTF-8 text string. Each string must contain fewer that 5,000 bytes
1453
1453
  # of UTF-8 encoded characters.
1454
1454
  #
1455
- # @option params [required, String] :language_code
1455
+ # @option params [String] :language_code
1456
1456
  # The language of the input documents. You can specify any of the
1457
1457
  # primary languages supported by Amazon Comprehend. All documents must
1458
1458
  # be in the same language.
1459
1459
  #
1460
+ # If your request includes the endpoint for a custom entity recognition
1461
+ # model, Amazon Comprehend uses the language of your custom model, and
1462
+ # it ignores any language code that you specify here.
1463
+ #
1464
+ # @option params [String] :endpoint_arn
1465
+ # The Amazon Resource Name of an endpoint that is associated with a
1466
+ # custom entity recognition model. Provide an endpoint if you want to
1467
+ # detect entities by using your own custom model instead of the default
1468
+ # model that is used by Amazon Comprehend.
1469
+ #
1470
+ # If you specify an endpoint, Amazon Comprehend uses the language of
1471
+ # your custom model, and it ignores any language code that you provide
1472
+ # in your request.
1473
+ #
1460
1474
  # @return [Types::DetectEntitiesResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
1461
1475
  #
1462
1476
  # * {Types::DetectEntitiesResponse#entities #entities} => Array<Types::Entity>
@@ -1464,8 +1478,9 @@ module Aws::Comprehend
1464
1478
  # @example Request syntax with placeholder values
1465
1479
  #
1466
1480
  # resp = client.detect_entities({
1467
- # text: "String", # required
1468
- # language_code: "en", # required, accepts en, es, fr, de, it, pt, ar, hi, ja, ko, zh, zh-TW
1481
+ # text: "CustomerInputString", # required
1482
+ # language_code: "en", # accepts en, es, fr, de, it, pt, ar, hi, ja, ko, zh, zh-TW
1483
+ # endpoint_arn: "EntityRecognizerEndpointArn",
1469
1484
  # })
1470
1485
  #
1471
1486
  # @example Response structure
@@ -1504,7 +1519,7 @@ module Aws::Comprehend
1504
1519
  # @example Request syntax with placeholder values
1505
1520
  #
1506
1521
  # resp = client.detect_key_phrases({
1507
- # text: "String", # required
1522
+ # text: "CustomerInputString", # required
1508
1523
  # language_code: "en", # required, accepts en, es, fr, de, it, pt, ar, hi, ja, ko, zh, zh-TW
1509
1524
  # })
1510
1525
  #
@@ -1545,7 +1560,7 @@ module Aws::Comprehend
1545
1560
  # @example Request syntax with placeholder values
1546
1561
  #
1547
1562
  # resp = client.detect_sentiment({
1548
- # text: "String", # required
1563
+ # text: "CustomerInputString", # required
1549
1564
  # language_code: "en", # required, accepts en, es, fr, de, it, pt, ar, hi, ja, ko, zh, zh-TW
1550
1565
  # })
1551
1566
  #
@@ -1586,7 +1601,7 @@ module Aws::Comprehend
1586
1601
  # @example Request syntax with placeholder values
1587
1602
  #
1588
1603
  # resp = client.detect_syntax({
1589
- # text: "String", # required
1604
+ # text: "CustomerInputString", # required
1590
1605
  # language_code: "en", # required, accepts en, es, fr, de, it, pt
1591
1606
  # })
1592
1607
  #
@@ -3158,7 +3173,7 @@ module Aws::Comprehend
3158
3173
  params: params,
3159
3174
  config: config)
3160
3175
  context[:gem_name] = 'aws-sdk-comprehend'
3161
- context[:gem_version] = '1.34.0'
3176
+ context[:gem_version] = '1.35.0'
3162
3177
  Seahorse::Client::Request.new(handlers, context)
3163
3178
  end
3164
3179
 
@@ -49,6 +49,8 @@ module Aws::Comprehend
49
49
  CreateEndpointResponse = Shapes::StructureShape.new(name: 'CreateEndpointResponse')
50
50
  CreateEntityRecognizerRequest = Shapes::StructureShape.new(name: 'CreateEntityRecognizerRequest')
51
51
  CreateEntityRecognizerResponse = Shapes::StructureShape.new(name: 'CreateEntityRecognizerResponse')
52
+ CustomerInputString = Shapes::StringShape.new(name: 'CustomerInputString')
53
+ CustomerInputStringList = Shapes::ListShape.new(name: 'CustomerInputStringList')
52
54
  DeleteDocumentClassifierRequest = Shapes::StructureShape.new(name: 'DeleteDocumentClassifierRequest')
53
55
  DeleteDocumentClassifierResponse = Shapes::StructureShape.new(name: 'DeleteDocumentClassifierResponse')
54
56
  DeleteEndpointRequest = Shapes::StructureShape.new(name: 'DeleteEndpointRequest')
@@ -112,6 +114,7 @@ module Aws::Comprehend
112
114
  EntityRecognizerAnnotations = Shapes::StructureShape.new(name: 'EntityRecognizerAnnotations')
113
115
  EntityRecognizerArn = Shapes::StringShape.new(name: 'EntityRecognizerArn')
114
116
  EntityRecognizerDocuments = Shapes::StructureShape.new(name: 'EntityRecognizerDocuments')
117
+ EntityRecognizerEndpointArn = Shapes::StringShape.new(name: 'EntityRecognizerEndpointArn')
115
118
  EntityRecognizerEntityList = Shapes::StructureShape.new(name: 'EntityRecognizerEntityList')
116
119
  EntityRecognizerEvaluationMetrics = Shapes::StructureShape.new(name: 'EntityRecognizerEvaluationMetrics')
117
120
  EntityRecognizerFilter = Shapes::StructureShape.new(name: 'EntityRecognizerFilter')
@@ -221,7 +224,6 @@ module Aws::Comprehend
221
224
  StopTrainingEntityRecognizerRequest = Shapes::StructureShape.new(name: 'StopTrainingEntityRecognizerRequest')
222
225
  StopTrainingEntityRecognizerResponse = Shapes::StructureShape.new(name: 'StopTrainingEntityRecognizerResponse')
223
226
  String = Shapes::StringShape.new(name: 'String')
224
- StringList = Shapes::ListShape.new(name: 'StringList')
225
227
  SubnetId = Shapes::StringShape.new(name: 'SubnetId')
226
228
  Subnets = Shapes::ListShape.new(name: 'Subnets')
227
229
  SyntaxLanguageCode = Shapes::StringShape.new(name: 'SyntaxLanguageCode')
@@ -252,7 +254,7 @@ module Aws::Comprehend
252
254
  BatchDetectDominantLanguageItemResult.add_member(:languages, Shapes::ShapeRef.new(shape: ListOfDominantLanguages, location_name: "Languages"))
253
255
  BatchDetectDominantLanguageItemResult.struct_class = Types::BatchDetectDominantLanguageItemResult
254
256
 
255
- BatchDetectDominantLanguageRequest.add_member(:text_list, Shapes::ShapeRef.new(shape: StringList, required: true, location_name: "TextList"))
257
+ BatchDetectDominantLanguageRequest.add_member(:text_list, Shapes::ShapeRef.new(shape: CustomerInputStringList, required: true, location_name: "TextList"))
256
258
  BatchDetectDominantLanguageRequest.struct_class = Types::BatchDetectDominantLanguageRequest
257
259
 
258
260
  BatchDetectDominantLanguageResponse.add_member(:result_list, Shapes::ShapeRef.new(shape: ListOfDetectDominantLanguageResult, required: true, location_name: "ResultList"))
@@ -263,7 +265,7 @@ module Aws::Comprehend
263
265
  BatchDetectEntitiesItemResult.add_member(:entities, Shapes::ShapeRef.new(shape: ListOfEntities, location_name: "Entities"))
264
266
  BatchDetectEntitiesItemResult.struct_class = Types::BatchDetectEntitiesItemResult
265
267
 
266
- BatchDetectEntitiesRequest.add_member(:text_list, Shapes::ShapeRef.new(shape: StringList, required: true, location_name: "TextList"))
268
+ BatchDetectEntitiesRequest.add_member(:text_list, Shapes::ShapeRef.new(shape: CustomerInputStringList, required: true, location_name: "TextList"))
267
269
  BatchDetectEntitiesRequest.add_member(:language_code, Shapes::ShapeRef.new(shape: LanguageCode, required: true, location_name: "LanguageCode"))
268
270
  BatchDetectEntitiesRequest.struct_class = Types::BatchDetectEntitiesRequest
269
271
 
@@ -275,7 +277,7 @@ module Aws::Comprehend
275
277
  BatchDetectKeyPhrasesItemResult.add_member(:key_phrases, Shapes::ShapeRef.new(shape: ListOfKeyPhrases, location_name: "KeyPhrases"))
276
278
  BatchDetectKeyPhrasesItemResult.struct_class = Types::BatchDetectKeyPhrasesItemResult
277
279
 
278
- BatchDetectKeyPhrasesRequest.add_member(:text_list, Shapes::ShapeRef.new(shape: StringList, required: true, location_name: "TextList"))
280
+ BatchDetectKeyPhrasesRequest.add_member(:text_list, Shapes::ShapeRef.new(shape: CustomerInputStringList, required: true, location_name: "TextList"))
279
281
  BatchDetectKeyPhrasesRequest.add_member(:language_code, Shapes::ShapeRef.new(shape: LanguageCode, required: true, location_name: "LanguageCode"))
280
282
  BatchDetectKeyPhrasesRequest.struct_class = Types::BatchDetectKeyPhrasesRequest
281
283
 
@@ -288,7 +290,7 @@ module Aws::Comprehend
288
290
  BatchDetectSentimentItemResult.add_member(:sentiment_score, Shapes::ShapeRef.new(shape: SentimentScore, location_name: "SentimentScore"))
289
291
  BatchDetectSentimentItemResult.struct_class = Types::BatchDetectSentimentItemResult
290
292
 
291
- BatchDetectSentimentRequest.add_member(:text_list, Shapes::ShapeRef.new(shape: StringList, required: true, location_name: "TextList"))
293
+ BatchDetectSentimentRequest.add_member(:text_list, Shapes::ShapeRef.new(shape: CustomerInputStringList, required: true, location_name: "TextList"))
292
294
  BatchDetectSentimentRequest.add_member(:language_code, Shapes::ShapeRef.new(shape: LanguageCode, required: true, location_name: "LanguageCode"))
293
295
  BatchDetectSentimentRequest.struct_class = Types::BatchDetectSentimentRequest
294
296
 
@@ -300,7 +302,7 @@ module Aws::Comprehend
300
302
  BatchDetectSyntaxItemResult.add_member(:syntax_tokens, Shapes::ShapeRef.new(shape: ListOfSyntaxTokens, location_name: "SyntaxTokens"))
301
303
  BatchDetectSyntaxItemResult.struct_class = Types::BatchDetectSyntaxItemResult
302
304
 
303
- BatchDetectSyntaxRequest.add_member(:text_list, Shapes::ShapeRef.new(shape: StringList, required: true, location_name: "TextList"))
305
+ BatchDetectSyntaxRequest.add_member(:text_list, Shapes::ShapeRef.new(shape: CustomerInputStringList, required: true, location_name: "TextList"))
304
306
  BatchDetectSyntaxRequest.add_member(:language_code, Shapes::ShapeRef.new(shape: SyntaxLanguageCode, required: true, location_name: "LanguageCode"))
305
307
  BatchDetectSyntaxRequest.struct_class = Types::BatchDetectSyntaxRequest
306
308
 
@@ -334,7 +336,7 @@ module Aws::Comprehend
334
336
  ClassifierMetadata.add_member(:evaluation_metrics, Shapes::ShapeRef.new(shape: ClassifierEvaluationMetrics, location_name: "EvaluationMetrics"))
335
337
  ClassifierMetadata.struct_class = Types::ClassifierMetadata
336
338
 
337
- ClassifyDocumentRequest.add_member(:text, Shapes::ShapeRef.new(shape: String, required: true, location_name: "Text"))
339
+ ClassifyDocumentRequest.add_member(:text, Shapes::ShapeRef.new(shape: CustomerInputString, required: true, location_name: "Text"))
338
340
  ClassifyDocumentRequest.add_member(:endpoint_arn, Shapes::ShapeRef.new(shape: DocumentClassifierEndpointArn, required: true, location_name: "EndpointArn"))
339
341
  ClassifyDocumentRequest.struct_class = Types::ClassifyDocumentRequest
340
342
 
@@ -383,6 +385,8 @@ module Aws::Comprehend
383
385
  CreateEntityRecognizerResponse.add_member(:entity_recognizer_arn, Shapes::ShapeRef.new(shape: EntityRecognizerArn, location_name: "EntityRecognizerArn"))
384
386
  CreateEntityRecognizerResponse.struct_class = Types::CreateEntityRecognizerResponse
385
387
 
388
+ CustomerInputStringList.member = Shapes::ShapeRef.new(shape: CustomerInputString)
389
+
386
390
  DeleteDocumentClassifierRequest.add_member(:document_classifier_arn, Shapes::ShapeRef.new(shape: DocumentClassifierArn, required: true, location_name: "DocumentClassifierArn"))
387
391
  DeleteDocumentClassifierRequest.struct_class = Types::DeleteDocumentClassifierRequest
388
392
 
@@ -452,27 +456,28 @@ module Aws::Comprehend
452
456
  DescribeTopicsDetectionJobResponse.add_member(:topics_detection_job_properties, Shapes::ShapeRef.new(shape: TopicsDetectionJobProperties, location_name: "TopicsDetectionJobProperties"))
453
457
  DescribeTopicsDetectionJobResponse.struct_class = Types::DescribeTopicsDetectionJobResponse
454
458
 
455
- DetectDominantLanguageRequest.add_member(:text, Shapes::ShapeRef.new(shape: String, required: true, location_name: "Text"))
459
+ DetectDominantLanguageRequest.add_member(:text, Shapes::ShapeRef.new(shape: CustomerInputString, required: true, location_name: "Text"))
456
460
  DetectDominantLanguageRequest.struct_class = Types::DetectDominantLanguageRequest
457
461
 
458
462
  DetectDominantLanguageResponse.add_member(:languages, Shapes::ShapeRef.new(shape: ListOfDominantLanguages, location_name: "Languages"))
459
463
  DetectDominantLanguageResponse.struct_class = Types::DetectDominantLanguageResponse
460
464
 
461
- DetectEntitiesRequest.add_member(:text, Shapes::ShapeRef.new(shape: String, required: true, location_name: "Text"))
462
- DetectEntitiesRequest.add_member(:language_code, Shapes::ShapeRef.new(shape: LanguageCode, required: true, location_name: "LanguageCode"))
465
+ DetectEntitiesRequest.add_member(:text, Shapes::ShapeRef.new(shape: CustomerInputString, required: true, location_name: "Text"))
466
+ DetectEntitiesRequest.add_member(:language_code, Shapes::ShapeRef.new(shape: LanguageCode, location_name: "LanguageCode"))
467
+ DetectEntitiesRequest.add_member(:endpoint_arn, Shapes::ShapeRef.new(shape: EntityRecognizerEndpointArn, location_name: "EndpointArn"))
463
468
  DetectEntitiesRequest.struct_class = Types::DetectEntitiesRequest
464
469
 
465
470
  DetectEntitiesResponse.add_member(:entities, Shapes::ShapeRef.new(shape: ListOfEntities, location_name: "Entities"))
466
471
  DetectEntitiesResponse.struct_class = Types::DetectEntitiesResponse
467
472
 
468
- DetectKeyPhrasesRequest.add_member(:text, Shapes::ShapeRef.new(shape: String, required: true, location_name: "Text"))
473
+ DetectKeyPhrasesRequest.add_member(:text, Shapes::ShapeRef.new(shape: CustomerInputString, required: true, location_name: "Text"))
469
474
  DetectKeyPhrasesRequest.add_member(:language_code, Shapes::ShapeRef.new(shape: LanguageCode, required: true, location_name: "LanguageCode"))
470
475
  DetectKeyPhrasesRequest.struct_class = Types::DetectKeyPhrasesRequest
471
476
 
472
477
  DetectKeyPhrasesResponse.add_member(:key_phrases, Shapes::ShapeRef.new(shape: ListOfKeyPhrases, location_name: "KeyPhrases"))
473
478
  DetectKeyPhrasesResponse.struct_class = Types::DetectKeyPhrasesResponse
474
479
 
475
- DetectSentimentRequest.add_member(:text, Shapes::ShapeRef.new(shape: String, required: true, location_name: "Text"))
480
+ DetectSentimentRequest.add_member(:text, Shapes::ShapeRef.new(shape: CustomerInputString, required: true, location_name: "Text"))
476
481
  DetectSentimentRequest.add_member(:language_code, Shapes::ShapeRef.new(shape: LanguageCode, required: true, location_name: "LanguageCode"))
477
482
  DetectSentimentRequest.struct_class = Types::DetectSentimentRequest
478
483
 
@@ -480,7 +485,7 @@ module Aws::Comprehend
480
485
  DetectSentimentResponse.add_member(:sentiment_score, Shapes::ShapeRef.new(shape: SentimentScore, location_name: "SentimentScore"))
481
486
  DetectSentimentResponse.struct_class = Types::DetectSentimentResponse
482
487
 
483
- DetectSyntaxRequest.add_member(:text, Shapes::ShapeRef.new(shape: String, required: true, location_name: "Text"))
488
+ DetectSyntaxRequest.add_member(:text, Shapes::ShapeRef.new(shape: CustomerInputString, required: true, location_name: "Text"))
484
489
  DetectSyntaxRequest.add_member(:language_code, Shapes::ShapeRef.new(shape: SyntaxLanguageCode, required: true, location_name: "LanguageCode"))
485
490
  DetectSyntaxRequest.struct_class = Types::DetectSyntaxRequest
486
491
 
@@ -1016,8 +1021,6 @@ module Aws::Comprehend
1016
1021
 
1017
1022
  StopTrainingEntityRecognizerResponse.struct_class = Types::StopTrainingEntityRecognizerResponse
1018
1023
 
1019
- StringList.member = Shapes::ShapeRef.new(shape: String)
1020
-
1021
1024
  Subnets.member = Shapes::ShapeRef.new(shape: SubnetId)
1022
1025
 
1023
1026
  SyntaxToken.add_member(:token_id, Shapes::ShapeRef.new(shape: Integer, location_name: "TokenId"))
@@ -1404,6 +1407,7 @@ module Aws::Comprehend
1404
1407
  o.input = Shapes::ShapeRef.new(shape: DetectEntitiesRequest)
1405
1408
  o.output = Shapes::ShapeRef.new(shape: DetectEntitiesResponse)
1406
1409
  o.errors << Shapes::ShapeRef.new(shape: InvalidRequestException)
1410
+ o.errors << Shapes::ShapeRef.new(shape: ResourceUnavailableException)
1407
1411
  o.errors << Shapes::ShapeRef.new(shape: TextSizeLimitExceededException)
1408
1412
  o.errors << Shapes::ShapeRef.new(shape: UnsupportedLanguageException)
1409
1413
  o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
@@ -35,7 +35,7 @@ module Aws::Comprehend
35
35
  # data as a hash:
36
36
  #
37
37
  # {
38
- # text_list: ["String"], # required
38
+ # text_list: ["CustomerInputString"], # required
39
39
  # }
40
40
  #
41
41
  # @!attribute [rw] text_list
@@ -49,7 +49,7 @@ module Aws::Comprehend
49
49
  #
50
50
  class BatchDetectDominantLanguageRequest < Struct.new(
51
51
  :text_list)
52
- SENSITIVE = []
52
+ SENSITIVE = [:text_list]
53
53
  include Aws::Structure
54
54
  end
55
55
 
@@ -101,7 +101,7 @@ module Aws::Comprehend
101
101
  # data as a hash:
102
102
  #
103
103
  # {
104
- # text_list: ["String"], # required
104
+ # text_list: ["CustomerInputString"], # required
105
105
  # language_code: "en", # required, accepts en, es, fr, de, it, pt, ar, hi, ja, ko, zh, zh-TW
106
106
  # }
107
107
  #
@@ -122,7 +122,7 @@ module Aws::Comprehend
122
122
  class BatchDetectEntitiesRequest < Struct.new(
123
123
  :text_list,
124
124
  :language_code)
125
- SENSITIVE = []
125
+ SENSITIVE = [:text_list]
126
126
  include Aws::Structure
127
127
  end
128
128
 
@@ -174,7 +174,7 @@ module Aws::Comprehend
174
174
  # data as a hash:
175
175
  #
176
176
  # {
177
- # text_list: ["String"], # required
177
+ # text_list: ["CustomerInputString"], # required
178
178
  # language_code: "en", # required, accepts en, es, fr, de, it, pt, ar, hi, ja, ko, zh, zh-TW
179
179
  # }
180
180
  #
@@ -195,7 +195,7 @@ module Aws::Comprehend
195
195
  class BatchDetectKeyPhrasesRequest < Struct.new(
196
196
  :text_list,
197
197
  :language_code)
198
- SENSITIVE = []
198
+ SENSITIVE = [:text_list]
199
199
  include Aws::Structure
200
200
  end
201
201
 
@@ -252,7 +252,7 @@ module Aws::Comprehend
252
252
  # data as a hash:
253
253
  #
254
254
  # {
255
- # text_list: ["String"], # required
255
+ # text_list: ["CustomerInputString"], # required
256
256
  # language_code: "en", # required, accepts en, es, fr, de, it, pt, ar, hi, ja, ko, zh, zh-TW
257
257
  # }
258
258
  #
@@ -273,7 +273,7 @@ module Aws::Comprehend
273
273
  class BatchDetectSentimentRequest < Struct.new(
274
274
  :text_list,
275
275
  :language_code)
276
- SENSITIVE = []
276
+ SENSITIVE = [:text_list]
277
277
  include Aws::Structure
278
278
  end
279
279
 
@@ -325,7 +325,7 @@ module Aws::Comprehend
325
325
  # data as a hash:
326
326
  #
327
327
  # {
328
- # text_list: ["String"], # required
328
+ # text_list: ["CustomerInputString"], # required
329
329
  # language_code: "en", # required, accepts en, es, fr, de, it, pt
330
330
  # }
331
331
  #
@@ -348,7 +348,7 @@ module Aws::Comprehend
348
348
  class BatchDetectSyntaxRequest < Struct.new(
349
349
  :text_list,
350
350
  :language_code)
351
- SENSITIVE = []
351
+ SENSITIVE = [:text_list]
352
352
  include Aws::Structure
353
353
  end
354
354
 
@@ -507,7 +507,7 @@ module Aws::Comprehend
507
507
  # @!attribute [rw] number_of_test_documents
508
508
  # The number of documents in the input data that were used to test the
509
509
  # classifier. Typically this is 10 to 20 percent of the input
510
- # documents.
510
+ # documents, up to 10,000 documents.
511
511
  # @return [Integer]
512
512
  #
513
513
  # @!attribute [rw] evaluation_metrics
@@ -530,7 +530,7 @@ module Aws::Comprehend
530
530
  # data as a hash:
531
531
  #
532
532
  # {
533
- # text: "String", # required
533
+ # text: "CustomerInputString", # required
534
534
  # endpoint_arn: "DocumentClassifierEndpointArn", # required
535
535
  # }
536
536
  #
@@ -547,7 +547,7 @@ module Aws::Comprehend
547
547
  class ClassifyDocumentRequest < Struct.new(
548
548
  :text,
549
549
  :endpoint_arn)
550
- SENSITIVE = []
550
+ SENSITIVE = [:text]
551
551
  include Aws::Structure
552
552
  end
553
553
 
@@ -1291,7 +1291,7 @@ module Aws::Comprehend
1291
1291
  # data as a hash:
1292
1292
  #
1293
1293
  # {
1294
- # text: "String", # required
1294
+ # text: "CustomerInputString", # required
1295
1295
  # }
1296
1296
  #
1297
1297
  # @!attribute [rw] text
@@ -1304,7 +1304,7 @@ module Aws::Comprehend
1304
1304
  #
1305
1305
  class DetectDominantLanguageRequest < Struct.new(
1306
1306
  :text)
1307
- SENSITIVE = []
1307
+ SENSITIVE = [:text]
1308
1308
  include Aws::Structure
1309
1309
  end
1310
1310
 
@@ -1332,8 +1332,9 @@ module Aws::Comprehend
1332
1332
  # data as a hash:
1333
1333
  #
1334
1334
  # {
1335
- # text: "String", # required
1336
- # language_code: "en", # required, accepts en, es, fr, de, it, pt, ar, hi, ja, ko, zh, zh-TW
1335
+ # text: "CustomerInputString", # required
1336
+ # language_code: "en", # accepts en, es, fr, de, it, pt, ar, hi, ja, ko, zh, zh-TW
1337
+ # endpoint_arn: "EntityRecognizerEndpointArn",
1337
1338
  # }
1338
1339
  #
1339
1340
  # @!attribute [rw] text
@@ -1345,14 +1346,31 @@ module Aws::Comprehend
1345
1346
  # The language of the input documents. You can specify any of the
1346
1347
  # primary languages supported by Amazon Comprehend. All documents must
1347
1348
  # be in the same language.
1349
+ #
1350
+ # If your request includes the endpoint for a custom entity
1351
+ # recognition model, Amazon Comprehend uses the language of your
1352
+ # custom model, and it ignores any language code that you specify
1353
+ # here.
1354
+ # @return [String]
1355
+ #
1356
+ # @!attribute [rw] endpoint_arn
1357
+ # The Amazon Resource Name of an endpoint that is associated with a
1358
+ # custom entity recognition model. Provide an endpoint if you want to
1359
+ # detect entities by using your own custom model instead of the
1360
+ # default model that is used by Amazon Comprehend.
1361
+ #
1362
+ # If you specify an endpoint, Amazon Comprehend uses the language of
1363
+ # your custom model, and it ignores any language code that you provide
1364
+ # in your request.
1348
1365
  # @return [String]
1349
1366
  #
1350
1367
  # @see http://docs.aws.amazon.com/goto/WebAPI/comprehend-2017-11-27/DetectEntitiesRequest AWS API Documentation
1351
1368
  #
1352
1369
  class DetectEntitiesRequest < Struct.new(
1353
1370
  :text,
1354
- :language_code)
1355
- SENSITIVE = []
1371
+ :language_code,
1372
+ :endpoint_arn)
1373
+ SENSITIVE = [:text]
1356
1374
  include Aws::Structure
1357
1375
  end
1358
1376
 
@@ -1360,8 +1378,12 @@ module Aws::Comprehend
1360
1378
  # A collection of entities identified in the input text. For each
1361
1379
  # entity, the response provides the entity text, entity type, where
1362
1380
  # the entity text begins and ends, and the level of confidence that
1363
- # Amazon Comprehend has in the detection. For a list of entity types,
1364
- # see how-entities.
1381
+ # Amazon Comprehend has in the detection.
1382
+ #
1383
+ # If your request uses a custom entity recognition model, Amazon
1384
+ # Comprehend detects the entities that the model is trained to
1385
+ # recognize. Otherwise, it detects the default entity types. For a
1386
+ # list of default entity types, see how-entities.
1365
1387
  # @return [Array<Types::Entity>]
1366
1388
  #
1367
1389
  # @see http://docs.aws.amazon.com/goto/WebAPI/comprehend-2017-11-27/DetectEntitiesResponse AWS API Documentation
@@ -1376,7 +1398,7 @@ module Aws::Comprehend
1376
1398
  # data as a hash:
1377
1399
  #
1378
1400
  # {
1379
- # text: "String", # required
1401
+ # text: "CustomerInputString", # required
1380
1402
  # language_code: "en", # required, accepts en, es, fr, de, it, pt, ar, hi, ja, ko, zh, zh-TW
1381
1403
  # }
1382
1404
  #
@@ -1396,7 +1418,7 @@ module Aws::Comprehend
1396
1418
  class DetectKeyPhrasesRequest < Struct.new(
1397
1419
  :text,
1398
1420
  :language_code)
1399
- SENSITIVE = []
1421
+ SENSITIVE = [:text]
1400
1422
  include Aws::Structure
1401
1423
  end
1402
1424
 
@@ -1420,7 +1442,7 @@ module Aws::Comprehend
1420
1442
  # data as a hash:
1421
1443
  #
1422
1444
  # {
1423
- # text: "String", # required
1445
+ # text: "CustomerInputString", # required
1424
1446
  # language_code: "en", # required, accepts en, es, fr, de, it, pt, ar, hi, ja, ko, zh, zh-TW
1425
1447
  # }
1426
1448
  #
@@ -1440,7 +1462,7 @@ module Aws::Comprehend
1440
1462
  class DetectSentimentRequest < Struct.new(
1441
1463
  :text,
1442
1464
  :language_code)
1443
- SENSITIVE = []
1465
+ SENSITIVE = [:text]
1444
1466
  include Aws::Structure
1445
1467
  end
1446
1468
 
@@ -1467,7 +1489,7 @@ module Aws::Comprehend
1467
1489
  # data as a hash:
1468
1490
  #
1469
1491
  # {
1470
- # text: "String", # required
1492
+ # text: "CustomerInputString", # required
1471
1493
  # language_code: "en", # required, accepts en, es, fr, de, it, pt
1472
1494
  # }
1473
1495
  #
@@ -1488,7 +1510,7 @@ module Aws::Comprehend
1488
1510
  class DetectSyntaxRequest < Struct.new(
1489
1511
  :text,
1490
1512
  :language_code)
1491
- SENSITIVE = []
1513
+ SENSITIVE = [:text]
1492
1514
  include Aws::Structure
1493
1515
  end
1494
1516
 
@@ -1553,14 +1575,14 @@ module Aws::Comprehend
1553
1575
  #
1554
1576
  # @!attribute [rw] submit_time_before
1555
1577
  # Filters the list of jobs based on the time that the job was
1556
- # submitted for processing. Returns only jobs submitted after the
1578
+ # submitted for processing. Returns only jobs submitted before the
1557
1579
  # specified time. Jobs are returned in ascending order, oldest to
1558
1580
  # newest.
1559
1581
  # @return [Time]
1560
1582
  #
1561
1583
  # @!attribute [rw] submit_time_after
1562
1584
  # Filters the list of jobs based on the time that the job was
1563
- # submitted for processing. Returns only jobs submitted before the
1585
+ # submitted for processing. Returns only jobs submitted after the
1564
1586
  # specified time. Jobs are returned in descending order, newest to
1565
1587
  # oldest.
1566
1588
  # @return [Time]
@@ -1913,7 +1935,7 @@ module Aws::Comprehend
1913
1935
  :volume_kms_key_id,
1914
1936
  :vpc_config,
1915
1937
  :mode)
1916
- SENSITIVE = []
1938
+ SENSITIVE = [:classifier_metadata]
1917
1939
  include Aws::Structure
1918
1940
  end
1919
1941
 
@@ -2723,7 +2745,7 @@ module Aws::Comprehend
2723
2745
  :data_access_role_arn,
2724
2746
  :volume_kms_key_id,
2725
2747
  :vpc_config)
2726
- SENSITIVE = []
2748
+ SENSITIVE = [:recognizer_metadata]
2727
2749
  include Aws::Structure
2728
2750
  end
2729
2751
 
@@ -3683,8 +3705,8 @@ module Aws::Comprehend
3683
3705
  include Aws::Structure
3684
3706
  end
3685
3707
 
3686
- # The specified name is already in use. Use a different name and try
3687
- # your request again.
3708
+ # The specified resource name is already in use. Use a different name
3709
+ # and try your request again.
3688
3710
  #
3689
3711
  # @!attribute [rw] message
3690
3712
  # @return [String]
@@ -3697,9 +3719,8 @@ module Aws::Comprehend
3697
3719
  include Aws::Structure
3698
3720
  end
3699
3721
 
3700
- # The maximum number of recognizers per account has been exceeded.
3701
- # Review the recognizers, perform cleanup, and then try your request
3702
- # again.
3722
+ # The maximum number of resources per account has been exceeded. Review
3723
+ # the resources, and then try your request again.
3703
3724
  #
3704
3725
  # @!attribute [rw] message
3705
3726
  # @return [String]
@@ -3726,8 +3747,8 @@ module Aws::Comprehend
3726
3747
  include Aws::Structure
3727
3748
  end
3728
3749
 
3729
- # The specified resource is not available. Check to see if the resource
3730
- # is in the `TRAINED` state and try your request again.
3750
+ # The specified resource is not available. Check the resource and try
3751
+ # your request again.
3731
3752
  #
3732
3753
  # @!attribute [rw] message
3733
3754
  # @return [String]
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.34.0
4
+ version: 1.35.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: 2020-06-23 00:00:00.000000000 Z
11
+ date: 2020-07-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: aws-sdk-core