aws-sdk-comprehend 1.30.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 +4 -4
- data/lib/aws-sdk-comprehend.rb +3 -1
- data/lib/aws-sdk-comprehend/client.rb +55 -21
- data/lib/aws-sdk-comprehend/client_api.rb +21 -15
- data/lib/aws-sdk-comprehend/errors.rb +2 -0
- data/lib/aws-sdk-comprehend/resource.rb +3 -7
- data/lib/aws-sdk-comprehend/types.rb +207 -25
- metadata +6 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: cb730a09dbf7ca9369c83d4f70c0f3bae288115edcb23a231a4f63421d1ad86c
|
4
|
+
data.tar.gz: 8c0cab20548f4d18381be952684dba777b04df374fe7f710720bb69686d88ff7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2d12d452da9db09af118395bc123ffe9c95f09b96c26b5ed8223a08d027ae9d1af0e2b385cd0b801b70e75f227eebcda3e03db5f415cb976ab509804e5945628
|
7
|
+
data.tar.gz: 4cb90bfa95e1d742892681f9516b17dd719740c1e9bd87e0d117b993ead936ee58b0f44a94d35b69d5a903332809681002fe81f04089e1def4c12e124588fc5d
|
data/lib/aws-sdk-comprehend.rb
CHANGED
@@ -1,3 +1,5 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
1
3
|
# WARNING ABOUT GENERATED CODE
|
2
4
|
#
|
3
5
|
# This file is generated. See the contributing guide for more information:
|
@@ -45,6 +47,6 @@ require_relative 'aws-sdk-comprehend/customizations'
|
|
45
47
|
# @service
|
46
48
|
module Aws::Comprehend
|
47
49
|
|
48
|
-
GEM_VERSION = '1.
|
50
|
+
GEM_VERSION = '1.35.0'
|
49
51
|
|
50
52
|
end
|
@@ -1,3 +1,5 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
1
3
|
# WARNING ABOUT GENERATED CODE
|
2
4
|
#
|
3
5
|
# This file is generated. See the contributing guide for more information:
|
@@ -24,6 +26,7 @@ require 'aws-sdk-core/plugins/jsonvalue_converter.rb'
|
|
24
26
|
require 'aws-sdk-core/plugins/client_metrics_plugin.rb'
|
25
27
|
require 'aws-sdk-core/plugins/client_metrics_send_plugin.rb'
|
26
28
|
require 'aws-sdk-core/plugins/transfer_encoding.rb'
|
29
|
+
require 'aws-sdk-core/plugins/http_checksum.rb'
|
27
30
|
require 'aws-sdk-core/plugins/signature_v4.rb'
|
28
31
|
require 'aws-sdk-core/plugins/protocols/json_rpc.rb'
|
29
32
|
|
@@ -69,6 +72,7 @@ module Aws::Comprehend
|
|
69
72
|
add_plugin(Aws::Plugins::ClientMetricsPlugin)
|
70
73
|
add_plugin(Aws::Plugins::ClientMetricsSendPlugin)
|
71
74
|
add_plugin(Aws::Plugins::TransferEncoding)
|
75
|
+
add_plugin(Aws::Plugins::HttpChecksum)
|
72
76
|
add_plugin(Aws::Plugins::SignatureV4)
|
73
77
|
add_plugin(Aws::Plugins::Protocols::JsonRpc)
|
74
78
|
|
@@ -105,7 +109,7 @@ module Aws::Comprehend
|
|
105
109
|
# @option options [required, String] :region
|
106
110
|
# The AWS region to connect to. The configured `:region` is
|
107
111
|
# used to determine the service `:endpoint`. When not passed,
|
108
|
-
# a default `:region` is
|
112
|
+
# a default `:region` is searched for in the following locations:
|
109
113
|
#
|
110
114
|
# * `Aws.config[:region]`
|
111
115
|
# * `ENV['AWS_REGION']`
|
@@ -161,7 +165,7 @@ module Aws::Comprehend
|
|
161
165
|
# @option options [String] :endpoint
|
162
166
|
# The client endpoint is normally constructed from the `:region`
|
163
167
|
# option. You should only configure an `:endpoint` when connecting
|
164
|
-
# to test endpoints. This should be
|
168
|
+
# to test or custom endpoints. This should be a valid HTTP(S) URI.
|
165
169
|
#
|
166
170
|
# @option options [Integer] :endpoint_cache_max_entries (1000)
|
167
171
|
# Used for the maximum size limit of the LRU cache storing endpoints data
|
@@ -176,7 +180,7 @@ module Aws::Comprehend
|
|
176
180
|
# requests fetching endpoints information. Defaults to 60 sec.
|
177
181
|
#
|
178
182
|
# @option options [Boolean] :endpoint_discovery (false)
|
179
|
-
# When set to `true`, endpoint discovery will be enabled for operations when available.
|
183
|
+
# When set to `true`, endpoint discovery will be enabled for operations when available.
|
180
184
|
#
|
181
185
|
# @option options [Aws::Log::Formatter] :log_formatter (Aws::Log::Formatter.default)
|
182
186
|
# The log formatter.
|
@@ -279,8 +283,7 @@ module Aws::Comprehend
|
|
279
283
|
#
|
280
284
|
# @option options [Integer] :http_read_timeout (60) The default
|
281
285
|
# number of seconds to wait for response data. This value can
|
282
|
-
# safely be set
|
283
|
-
# per-request on the session yielded by {#session_for}.
|
286
|
+
# safely be set per-request on the session.
|
284
287
|
#
|
285
288
|
# @option options [Float] :http_idle_timeout (5) The number of
|
286
289
|
# seconds a connection is allowed to sit idle before it is
|
@@ -292,7 +295,7 @@ module Aws::Comprehend
|
|
292
295
|
# request body. This option has no effect unless the request has
|
293
296
|
# "Expect" header set to "100-continue". Defaults to `nil` which
|
294
297
|
# disables this behaviour. This value can safely be set per
|
295
|
-
# request on the session
|
298
|
+
# request on the session.
|
296
299
|
#
|
297
300
|
# @option options [Boolean] :http_wire_trace (false) When `true`,
|
298
301
|
# HTTP debug output will be sent to the `:logger`.
|
@@ -341,7 +344,7 @@ module Aws::Comprehend
|
|
341
344
|
# @example Request syntax with placeholder values
|
342
345
|
#
|
343
346
|
# resp = client.batch_detect_dominant_language({
|
344
|
-
# text_list: ["
|
347
|
+
# text_list: ["CustomerInputString"], # required
|
345
348
|
# })
|
346
349
|
#
|
347
350
|
# @example Response structure
|
@@ -387,7 +390,7 @@ module Aws::Comprehend
|
|
387
390
|
# @example Request syntax with placeholder values
|
388
391
|
#
|
389
392
|
# resp = client.batch_detect_entities({
|
390
|
-
# text_list: ["
|
393
|
+
# text_list: ["CustomerInputString"], # required
|
391
394
|
# language_code: "en", # required, accepts en, es, fr, de, it, pt, ar, hi, ja, ko, zh, zh-TW
|
392
395
|
# })
|
393
396
|
#
|
@@ -435,7 +438,7 @@ module Aws::Comprehend
|
|
435
438
|
# @example Request syntax with placeholder values
|
436
439
|
#
|
437
440
|
# resp = client.batch_detect_key_phrases({
|
438
|
-
# text_list: ["
|
441
|
+
# text_list: ["CustomerInputString"], # required
|
439
442
|
# language_code: "en", # required, accepts en, es, fr, de, it, pt, ar, hi, ja, ko, zh, zh-TW
|
440
443
|
# })
|
441
444
|
#
|
@@ -484,7 +487,7 @@ module Aws::Comprehend
|
|
484
487
|
# @example Request syntax with placeholder values
|
485
488
|
#
|
486
489
|
# resp = client.batch_detect_sentiment({
|
487
|
-
# text_list: ["
|
490
|
+
# text_list: ["CustomerInputString"], # required
|
488
491
|
# language_code: "en", # required, accepts en, es, fr, de, it, pt, ar, hi, ja, ko, zh, zh-TW
|
489
492
|
# })
|
490
493
|
#
|
@@ -534,7 +537,7 @@ module Aws::Comprehend
|
|
534
537
|
# @example Request syntax with placeholder values
|
535
538
|
#
|
536
539
|
# resp = client.batch_detect_syntax({
|
537
|
-
# text_list: ["
|
540
|
+
# text_list: ["CustomerInputString"], # required
|
538
541
|
# language_code: "en", # required, accepts en, es, fr, de, it, pt
|
539
542
|
# })
|
540
543
|
#
|
@@ -581,7 +584,7 @@ module Aws::Comprehend
|
|
581
584
|
# @example Request syntax with placeholder values
|
582
585
|
#
|
583
586
|
# resp = client.classify_document({
|
584
|
-
# text: "
|
587
|
+
# text: "CustomerInputString", # required
|
585
588
|
# endpoint_arn: "DocumentClassifierEndpointArn", # required
|
586
589
|
# })
|
587
590
|
#
|
@@ -604,7 +607,7 @@ module Aws::Comprehend
|
|
604
607
|
end
|
605
608
|
|
606
609
|
# Creates a new document classifier that you can use to categorize
|
607
|
-
# documents. To create a classifier you provide a set of training
|
610
|
+
# documents. To create a classifier, you provide a set of training
|
608
611
|
# documents that labeled with the categories that you want to use. After
|
609
612
|
# the classifier is trained you can use it to categorize a set of
|
610
613
|
# labeled documents into the categories. For more information, see
|
@@ -1424,7 +1427,7 @@ module Aws::Comprehend
|
|
1424
1427
|
# @example Request syntax with placeholder values
|
1425
1428
|
#
|
1426
1429
|
# resp = client.detect_dominant_language({
|
1427
|
-
# text: "
|
1430
|
+
# text: "CustomerInputString", # required
|
1428
1431
|
# })
|
1429
1432
|
#
|
1430
1433
|
# @example Response structure
|
@@ -1449,11 +1452,25 @@ module Aws::Comprehend
|
|
1449
1452
|
# A UTF-8 text string. Each string must contain fewer that 5,000 bytes
|
1450
1453
|
# of UTF-8 encoded characters.
|
1451
1454
|
#
|
1452
|
-
# @option params [
|
1455
|
+
# @option params [String] :language_code
|
1453
1456
|
# The language of the input documents. You can specify any of the
|
1454
1457
|
# primary languages supported by Amazon Comprehend. All documents must
|
1455
1458
|
# be in the same language.
|
1456
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
|
+
#
|
1457
1474
|
# @return [Types::DetectEntitiesResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
1458
1475
|
#
|
1459
1476
|
# * {Types::DetectEntitiesResponse#entities #entities} => Array<Types::Entity>
|
@@ -1461,8 +1478,9 @@ module Aws::Comprehend
|
|
1461
1478
|
# @example Request syntax with placeholder values
|
1462
1479
|
#
|
1463
1480
|
# resp = client.detect_entities({
|
1464
|
-
# text: "
|
1465
|
-
# language_code: "en", #
|
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",
|
1466
1484
|
# })
|
1467
1485
|
#
|
1468
1486
|
# @example Response structure
|
@@ -1501,7 +1519,7 @@ module Aws::Comprehend
|
|
1501
1519
|
# @example Request syntax with placeholder values
|
1502
1520
|
#
|
1503
1521
|
# resp = client.detect_key_phrases({
|
1504
|
-
# text: "
|
1522
|
+
# text: "CustomerInputString", # required
|
1505
1523
|
# language_code: "en", # required, accepts en, es, fr, de, it, pt, ar, hi, ja, ko, zh, zh-TW
|
1506
1524
|
# })
|
1507
1525
|
#
|
@@ -1542,7 +1560,7 @@ module Aws::Comprehend
|
|
1542
1560
|
# @example Request syntax with placeholder values
|
1543
1561
|
#
|
1544
1562
|
# resp = client.detect_sentiment({
|
1545
|
-
# text: "
|
1563
|
+
# text: "CustomerInputString", # required
|
1546
1564
|
# language_code: "en", # required, accepts en, es, fr, de, it, pt, ar, hi, ja, ko, zh, zh-TW
|
1547
1565
|
# })
|
1548
1566
|
#
|
@@ -1583,7 +1601,7 @@ module Aws::Comprehend
|
|
1583
1601
|
# @example Request syntax with placeholder values
|
1584
1602
|
#
|
1585
1603
|
# resp = client.detect_syntax({
|
1586
|
-
# text: "
|
1604
|
+
# text: "CustomerInputString", # required
|
1587
1605
|
# language_code: "en", # required, accepts en, es, fr, de, it, pt
|
1588
1606
|
# })
|
1589
1607
|
#
|
@@ -1626,6 +1644,8 @@ module Aws::Comprehend
|
|
1626
1644
|
# * {Types::ListDocumentClassificationJobsResponse#document_classification_job_properties_list #document_classification_job_properties_list} => Array<Types::DocumentClassificationJobProperties>
|
1627
1645
|
# * {Types::ListDocumentClassificationJobsResponse#next_token #next_token} => String
|
1628
1646
|
#
|
1647
|
+
# The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
|
1648
|
+
#
|
1629
1649
|
# @example Request syntax with placeholder values
|
1630
1650
|
#
|
1631
1651
|
# resp = client.list_document_classification_jobs({
|
@@ -1689,6 +1709,8 @@ module Aws::Comprehend
|
|
1689
1709
|
# * {Types::ListDocumentClassifiersResponse#document_classifier_properties_list #document_classifier_properties_list} => Array<Types::DocumentClassifierProperties>
|
1690
1710
|
# * {Types::ListDocumentClassifiersResponse#next_token #next_token} => String
|
1691
1711
|
#
|
1712
|
+
# The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
|
1713
|
+
#
|
1692
1714
|
# @example Request syntax with placeholder values
|
1693
1715
|
#
|
1694
1716
|
# resp = client.list_document_classifiers({
|
@@ -1765,6 +1787,8 @@ module Aws::Comprehend
|
|
1765
1787
|
# * {Types::ListDominantLanguageDetectionJobsResponse#dominant_language_detection_job_properties_list #dominant_language_detection_job_properties_list} => Array<Types::DominantLanguageDetectionJobProperties>
|
1766
1788
|
# * {Types::ListDominantLanguageDetectionJobsResponse#next_token #next_token} => String
|
1767
1789
|
#
|
1790
|
+
# The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
|
1791
|
+
#
|
1768
1792
|
# @example Request syntax with placeholder values
|
1769
1793
|
#
|
1770
1794
|
# resp = client.list_dominant_language_detection_jobs({
|
@@ -1881,6 +1905,8 @@ module Aws::Comprehend
|
|
1881
1905
|
# * {Types::ListEntitiesDetectionJobsResponse#entities_detection_job_properties_list #entities_detection_job_properties_list} => Array<Types::EntitiesDetectionJobProperties>
|
1882
1906
|
# * {Types::ListEntitiesDetectionJobsResponse#next_token #next_token} => String
|
1883
1907
|
#
|
1908
|
+
# The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
|
1909
|
+
#
|
1884
1910
|
# @example Request syntax with placeholder values
|
1885
1911
|
#
|
1886
1912
|
# resp = client.list_entities_detection_jobs({
|
@@ -1952,6 +1978,8 @@ module Aws::Comprehend
|
|
1952
1978
|
# * {Types::ListEntityRecognizersResponse#entity_recognizer_properties_list #entity_recognizer_properties_list} => Array<Types::EntityRecognizerProperties>
|
1953
1979
|
# * {Types::ListEntityRecognizersResponse#next_token #next_token} => String
|
1954
1980
|
#
|
1981
|
+
# The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
|
1982
|
+
#
|
1955
1983
|
# @example Request syntax with placeholder values
|
1956
1984
|
#
|
1957
1985
|
# resp = client.list_entity_recognizers({
|
@@ -2027,6 +2055,8 @@ module Aws::Comprehend
|
|
2027
2055
|
# * {Types::ListKeyPhrasesDetectionJobsResponse#key_phrases_detection_job_properties_list #key_phrases_detection_job_properties_list} => Array<Types::KeyPhrasesDetectionJobProperties>
|
2028
2056
|
# * {Types::ListKeyPhrasesDetectionJobsResponse#next_token #next_token} => String
|
2029
2057
|
#
|
2058
|
+
# The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
|
2059
|
+
#
|
2030
2060
|
# @example Request syntax with placeholder values
|
2031
2061
|
#
|
2032
2062
|
# resp = client.list_key_phrases_detection_jobs({
|
@@ -2090,6 +2120,8 @@ module Aws::Comprehend
|
|
2090
2120
|
# * {Types::ListSentimentDetectionJobsResponse#sentiment_detection_job_properties_list #sentiment_detection_job_properties_list} => Array<Types::SentimentDetectionJobProperties>
|
2091
2121
|
# * {Types::ListSentimentDetectionJobsResponse#next_token #next_token} => String
|
2092
2122
|
#
|
2123
|
+
# The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
|
2124
|
+
#
|
2093
2125
|
# @example Request syntax with placeholder values
|
2094
2126
|
#
|
2095
2127
|
# resp = client.list_sentiment_detection_jobs({
|
@@ -2186,6 +2218,8 @@ module Aws::Comprehend
|
|
2186
2218
|
# * {Types::ListTopicsDetectionJobsResponse#topics_detection_job_properties_list #topics_detection_job_properties_list} => Array<Types::TopicsDetectionJobProperties>
|
2187
2219
|
# * {Types::ListTopicsDetectionJobsResponse#next_token #next_token} => String
|
2188
2220
|
#
|
2221
|
+
# The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
|
2222
|
+
#
|
2189
2223
|
# @example Request syntax with placeholder values
|
2190
2224
|
#
|
2191
2225
|
# resp = client.list_topics_detection_jobs({
|
@@ -3139,7 +3173,7 @@ module Aws::Comprehend
|
|
3139
3173
|
params: params,
|
3140
3174
|
config: config)
|
3141
3175
|
context[:gem_name] = 'aws-sdk-comprehend'
|
3142
|
-
context[:gem_version] = '1.
|
3176
|
+
context[:gem_version] = '1.35.0'
|
3143
3177
|
Seahorse::Client::Request.new(handlers, context)
|
3144
3178
|
end
|
3145
3179
|
|
@@ -1,3 +1,5 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
1
3
|
# WARNING ABOUT GENERATED CODE
|
2
4
|
#
|
3
5
|
# This file is generated. See the contributing guide for more information:
|
@@ -47,6 +49,8 @@ module Aws::Comprehend
|
|
47
49
|
CreateEndpointResponse = Shapes::StructureShape.new(name: 'CreateEndpointResponse')
|
48
50
|
CreateEntityRecognizerRequest = Shapes::StructureShape.new(name: 'CreateEntityRecognizerRequest')
|
49
51
|
CreateEntityRecognizerResponse = Shapes::StructureShape.new(name: 'CreateEntityRecognizerResponse')
|
52
|
+
CustomerInputString = Shapes::StringShape.new(name: 'CustomerInputString')
|
53
|
+
CustomerInputStringList = Shapes::ListShape.new(name: 'CustomerInputStringList')
|
50
54
|
DeleteDocumentClassifierRequest = Shapes::StructureShape.new(name: 'DeleteDocumentClassifierRequest')
|
51
55
|
DeleteDocumentClassifierResponse = Shapes::StructureShape.new(name: 'DeleteDocumentClassifierResponse')
|
52
56
|
DeleteEndpointRequest = Shapes::StructureShape.new(name: 'DeleteEndpointRequest')
|
@@ -110,6 +114,7 @@ module Aws::Comprehend
|
|
110
114
|
EntityRecognizerAnnotations = Shapes::StructureShape.new(name: 'EntityRecognizerAnnotations')
|
111
115
|
EntityRecognizerArn = Shapes::StringShape.new(name: 'EntityRecognizerArn')
|
112
116
|
EntityRecognizerDocuments = Shapes::StructureShape.new(name: 'EntityRecognizerDocuments')
|
117
|
+
EntityRecognizerEndpointArn = Shapes::StringShape.new(name: 'EntityRecognizerEndpointArn')
|
113
118
|
EntityRecognizerEntityList = Shapes::StructureShape.new(name: 'EntityRecognizerEntityList')
|
114
119
|
EntityRecognizerEvaluationMetrics = Shapes::StructureShape.new(name: 'EntityRecognizerEvaluationMetrics')
|
115
120
|
EntityRecognizerFilter = Shapes::StructureShape.new(name: 'EntityRecognizerFilter')
|
@@ -219,7 +224,6 @@ module Aws::Comprehend
|
|
219
224
|
StopTrainingEntityRecognizerRequest = Shapes::StructureShape.new(name: 'StopTrainingEntityRecognizerRequest')
|
220
225
|
StopTrainingEntityRecognizerResponse = Shapes::StructureShape.new(name: 'StopTrainingEntityRecognizerResponse')
|
221
226
|
String = Shapes::StringShape.new(name: 'String')
|
222
|
-
StringList = Shapes::ListShape.new(name: 'StringList')
|
223
227
|
SubnetId = Shapes::StringShape.new(name: 'SubnetId')
|
224
228
|
Subnets = Shapes::ListShape.new(name: 'Subnets')
|
225
229
|
SyntaxLanguageCode = Shapes::StringShape.new(name: 'SyntaxLanguageCode')
|
@@ -250,7 +254,7 @@ module Aws::Comprehend
|
|
250
254
|
BatchDetectDominantLanguageItemResult.add_member(:languages, Shapes::ShapeRef.new(shape: ListOfDominantLanguages, location_name: "Languages"))
|
251
255
|
BatchDetectDominantLanguageItemResult.struct_class = Types::BatchDetectDominantLanguageItemResult
|
252
256
|
|
253
|
-
BatchDetectDominantLanguageRequest.add_member(:text_list, Shapes::ShapeRef.new(shape:
|
257
|
+
BatchDetectDominantLanguageRequest.add_member(:text_list, Shapes::ShapeRef.new(shape: CustomerInputStringList, required: true, location_name: "TextList"))
|
254
258
|
BatchDetectDominantLanguageRequest.struct_class = Types::BatchDetectDominantLanguageRequest
|
255
259
|
|
256
260
|
BatchDetectDominantLanguageResponse.add_member(:result_list, Shapes::ShapeRef.new(shape: ListOfDetectDominantLanguageResult, required: true, location_name: "ResultList"))
|
@@ -261,7 +265,7 @@ module Aws::Comprehend
|
|
261
265
|
BatchDetectEntitiesItemResult.add_member(:entities, Shapes::ShapeRef.new(shape: ListOfEntities, location_name: "Entities"))
|
262
266
|
BatchDetectEntitiesItemResult.struct_class = Types::BatchDetectEntitiesItemResult
|
263
267
|
|
264
|
-
BatchDetectEntitiesRequest.add_member(:text_list, Shapes::ShapeRef.new(shape:
|
268
|
+
BatchDetectEntitiesRequest.add_member(:text_list, Shapes::ShapeRef.new(shape: CustomerInputStringList, required: true, location_name: "TextList"))
|
265
269
|
BatchDetectEntitiesRequest.add_member(:language_code, Shapes::ShapeRef.new(shape: LanguageCode, required: true, location_name: "LanguageCode"))
|
266
270
|
BatchDetectEntitiesRequest.struct_class = Types::BatchDetectEntitiesRequest
|
267
271
|
|
@@ -273,7 +277,7 @@ module Aws::Comprehend
|
|
273
277
|
BatchDetectKeyPhrasesItemResult.add_member(:key_phrases, Shapes::ShapeRef.new(shape: ListOfKeyPhrases, location_name: "KeyPhrases"))
|
274
278
|
BatchDetectKeyPhrasesItemResult.struct_class = Types::BatchDetectKeyPhrasesItemResult
|
275
279
|
|
276
|
-
BatchDetectKeyPhrasesRequest.add_member(:text_list, Shapes::ShapeRef.new(shape:
|
280
|
+
BatchDetectKeyPhrasesRequest.add_member(:text_list, Shapes::ShapeRef.new(shape: CustomerInputStringList, required: true, location_name: "TextList"))
|
277
281
|
BatchDetectKeyPhrasesRequest.add_member(:language_code, Shapes::ShapeRef.new(shape: LanguageCode, required: true, location_name: "LanguageCode"))
|
278
282
|
BatchDetectKeyPhrasesRequest.struct_class = Types::BatchDetectKeyPhrasesRequest
|
279
283
|
|
@@ -286,7 +290,7 @@ module Aws::Comprehend
|
|
286
290
|
BatchDetectSentimentItemResult.add_member(:sentiment_score, Shapes::ShapeRef.new(shape: SentimentScore, location_name: "SentimentScore"))
|
287
291
|
BatchDetectSentimentItemResult.struct_class = Types::BatchDetectSentimentItemResult
|
288
292
|
|
289
|
-
BatchDetectSentimentRequest.add_member(:text_list, Shapes::ShapeRef.new(shape:
|
293
|
+
BatchDetectSentimentRequest.add_member(:text_list, Shapes::ShapeRef.new(shape: CustomerInputStringList, required: true, location_name: "TextList"))
|
290
294
|
BatchDetectSentimentRequest.add_member(:language_code, Shapes::ShapeRef.new(shape: LanguageCode, required: true, location_name: "LanguageCode"))
|
291
295
|
BatchDetectSentimentRequest.struct_class = Types::BatchDetectSentimentRequest
|
292
296
|
|
@@ -298,7 +302,7 @@ module Aws::Comprehend
|
|
298
302
|
BatchDetectSyntaxItemResult.add_member(:syntax_tokens, Shapes::ShapeRef.new(shape: ListOfSyntaxTokens, location_name: "SyntaxTokens"))
|
299
303
|
BatchDetectSyntaxItemResult.struct_class = Types::BatchDetectSyntaxItemResult
|
300
304
|
|
301
|
-
BatchDetectSyntaxRequest.add_member(:text_list, Shapes::ShapeRef.new(shape:
|
305
|
+
BatchDetectSyntaxRequest.add_member(:text_list, Shapes::ShapeRef.new(shape: CustomerInputStringList, required: true, location_name: "TextList"))
|
302
306
|
BatchDetectSyntaxRequest.add_member(:language_code, Shapes::ShapeRef.new(shape: SyntaxLanguageCode, required: true, location_name: "LanguageCode"))
|
303
307
|
BatchDetectSyntaxRequest.struct_class = Types::BatchDetectSyntaxRequest
|
304
308
|
|
@@ -332,7 +336,7 @@ module Aws::Comprehend
|
|
332
336
|
ClassifierMetadata.add_member(:evaluation_metrics, Shapes::ShapeRef.new(shape: ClassifierEvaluationMetrics, location_name: "EvaluationMetrics"))
|
333
337
|
ClassifierMetadata.struct_class = Types::ClassifierMetadata
|
334
338
|
|
335
|
-
ClassifyDocumentRequest.add_member(:text, Shapes::ShapeRef.new(shape:
|
339
|
+
ClassifyDocumentRequest.add_member(:text, Shapes::ShapeRef.new(shape: CustomerInputString, required: true, location_name: "Text"))
|
336
340
|
ClassifyDocumentRequest.add_member(:endpoint_arn, Shapes::ShapeRef.new(shape: DocumentClassifierEndpointArn, required: true, location_name: "EndpointArn"))
|
337
341
|
ClassifyDocumentRequest.struct_class = Types::ClassifyDocumentRequest
|
338
342
|
|
@@ -381,6 +385,8 @@ module Aws::Comprehend
|
|
381
385
|
CreateEntityRecognizerResponse.add_member(:entity_recognizer_arn, Shapes::ShapeRef.new(shape: EntityRecognizerArn, location_name: "EntityRecognizerArn"))
|
382
386
|
CreateEntityRecognizerResponse.struct_class = Types::CreateEntityRecognizerResponse
|
383
387
|
|
388
|
+
CustomerInputStringList.member = Shapes::ShapeRef.new(shape: CustomerInputString)
|
389
|
+
|
384
390
|
DeleteDocumentClassifierRequest.add_member(:document_classifier_arn, Shapes::ShapeRef.new(shape: DocumentClassifierArn, required: true, location_name: "DocumentClassifierArn"))
|
385
391
|
DeleteDocumentClassifierRequest.struct_class = Types::DeleteDocumentClassifierRequest
|
386
392
|
|
@@ -450,27 +456,28 @@ module Aws::Comprehend
|
|
450
456
|
DescribeTopicsDetectionJobResponse.add_member(:topics_detection_job_properties, Shapes::ShapeRef.new(shape: TopicsDetectionJobProperties, location_name: "TopicsDetectionJobProperties"))
|
451
457
|
DescribeTopicsDetectionJobResponse.struct_class = Types::DescribeTopicsDetectionJobResponse
|
452
458
|
|
453
|
-
DetectDominantLanguageRequest.add_member(:text, Shapes::ShapeRef.new(shape:
|
459
|
+
DetectDominantLanguageRequest.add_member(:text, Shapes::ShapeRef.new(shape: CustomerInputString, required: true, location_name: "Text"))
|
454
460
|
DetectDominantLanguageRequest.struct_class = Types::DetectDominantLanguageRequest
|
455
461
|
|
456
462
|
DetectDominantLanguageResponse.add_member(:languages, Shapes::ShapeRef.new(shape: ListOfDominantLanguages, location_name: "Languages"))
|
457
463
|
DetectDominantLanguageResponse.struct_class = Types::DetectDominantLanguageResponse
|
458
464
|
|
459
|
-
DetectEntitiesRequest.add_member(:text, Shapes::ShapeRef.new(shape:
|
460
|
-
DetectEntitiesRequest.add_member(:language_code, Shapes::ShapeRef.new(shape: 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"))
|
461
468
|
DetectEntitiesRequest.struct_class = Types::DetectEntitiesRequest
|
462
469
|
|
463
470
|
DetectEntitiesResponse.add_member(:entities, Shapes::ShapeRef.new(shape: ListOfEntities, location_name: "Entities"))
|
464
471
|
DetectEntitiesResponse.struct_class = Types::DetectEntitiesResponse
|
465
472
|
|
466
|
-
DetectKeyPhrasesRequest.add_member(:text, Shapes::ShapeRef.new(shape:
|
473
|
+
DetectKeyPhrasesRequest.add_member(:text, Shapes::ShapeRef.new(shape: CustomerInputString, required: true, location_name: "Text"))
|
467
474
|
DetectKeyPhrasesRequest.add_member(:language_code, Shapes::ShapeRef.new(shape: LanguageCode, required: true, location_name: "LanguageCode"))
|
468
475
|
DetectKeyPhrasesRequest.struct_class = Types::DetectKeyPhrasesRequest
|
469
476
|
|
470
477
|
DetectKeyPhrasesResponse.add_member(:key_phrases, Shapes::ShapeRef.new(shape: ListOfKeyPhrases, location_name: "KeyPhrases"))
|
471
478
|
DetectKeyPhrasesResponse.struct_class = Types::DetectKeyPhrasesResponse
|
472
479
|
|
473
|
-
DetectSentimentRequest.add_member(:text, Shapes::ShapeRef.new(shape:
|
480
|
+
DetectSentimentRequest.add_member(:text, Shapes::ShapeRef.new(shape: CustomerInputString, required: true, location_name: "Text"))
|
474
481
|
DetectSentimentRequest.add_member(:language_code, Shapes::ShapeRef.new(shape: LanguageCode, required: true, location_name: "LanguageCode"))
|
475
482
|
DetectSentimentRequest.struct_class = Types::DetectSentimentRequest
|
476
483
|
|
@@ -478,7 +485,7 @@ module Aws::Comprehend
|
|
478
485
|
DetectSentimentResponse.add_member(:sentiment_score, Shapes::ShapeRef.new(shape: SentimentScore, location_name: "SentimentScore"))
|
479
486
|
DetectSentimentResponse.struct_class = Types::DetectSentimentResponse
|
480
487
|
|
481
|
-
DetectSyntaxRequest.add_member(:text, Shapes::ShapeRef.new(shape:
|
488
|
+
DetectSyntaxRequest.add_member(:text, Shapes::ShapeRef.new(shape: CustomerInputString, required: true, location_name: "Text"))
|
482
489
|
DetectSyntaxRequest.add_member(:language_code, Shapes::ShapeRef.new(shape: SyntaxLanguageCode, required: true, location_name: "LanguageCode"))
|
483
490
|
DetectSyntaxRequest.struct_class = Types::DetectSyntaxRequest
|
484
491
|
|
@@ -1014,8 +1021,6 @@ module Aws::Comprehend
|
|
1014
1021
|
|
1015
1022
|
StopTrainingEntityRecognizerResponse.struct_class = Types::StopTrainingEntityRecognizerResponse
|
1016
1023
|
|
1017
|
-
StringList.member = Shapes::ShapeRef.new(shape: String)
|
1018
|
-
|
1019
1024
|
Subnets.member = Shapes::ShapeRef.new(shape: SubnetId)
|
1020
1025
|
|
1021
1026
|
SyntaxToken.add_member(:token_id, Shapes::ShapeRef.new(shape: Integer, location_name: "TokenId"))
|
@@ -1402,6 +1407,7 @@ module Aws::Comprehend
|
|
1402
1407
|
o.input = Shapes::ShapeRef.new(shape: DetectEntitiesRequest)
|
1403
1408
|
o.output = Shapes::ShapeRef.new(shape: DetectEntitiesResponse)
|
1404
1409
|
o.errors << Shapes::ShapeRef.new(shape: InvalidRequestException)
|
1410
|
+
o.errors << Shapes::ShapeRef.new(shape: ResourceUnavailableException)
|
1405
1411
|
o.errors << Shapes::ShapeRef.new(shape: TextSizeLimitExceededException)
|
1406
1412
|
o.errors << Shapes::ShapeRef.new(shape: UnsupportedLanguageException)
|
1407
1413
|
o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
|