aws-sdk-comprehend 1.16.0 → 1.17.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/aws-sdk-comprehend.rb +1 -1
- data/lib/aws-sdk-comprehend/client.rb +127 -1
- data/lib/aws-sdk-comprehend/client_api.rb +83 -0
- data/lib/aws-sdk-comprehend/types.rb +174 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a0a504f290d6c4c29ced8ec008f678519428e8f8
|
4
|
+
data.tar.gz: ea463f1abbac0ada1859320ea1f240fe000c7916
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ba637ef3d47091ff0bf447323bbd902bc6ff94b728a3d0b299d44630c1d8753d34622c7ab84ff7f66939705540d4d09c19a3fdedd0dacf897a375b74f0b4a642
|
7
|
+
data.tar.gz: 380f6d0bfb6ce89893ceb7d0b73469f86b49bc567d5c73f58911851b080910973a68ed902580e9710552a43d8dd4e3b62b69df47ca73786fe0ea8ae09ac4c873
|
data/lib/aws-sdk-comprehend.rb
CHANGED
@@ -512,6 +512,13 @@ module Aws::Comprehend
|
|
512
512
|
# (IAM) role that grants Amazon Comprehend read access to your input
|
513
513
|
# data.
|
514
514
|
#
|
515
|
+
# @option params [Array<Types::Tag>] :tags
|
516
|
+
# Tags to be associated with the document classifier being created. A
|
517
|
+
# tag is a key-value pair that adds as a metadata to a resource used by
|
518
|
+
# Amazon Comprehend. For example, a tag with the key-value pair
|
519
|
+
# ‘Department’:’Sales’ might be added to a resource to indicate its use
|
520
|
+
# by a particular department.
|
521
|
+
#
|
515
522
|
# @option params [required, Types::DocumentClassifierInputDataConfig] :input_data_config
|
516
523
|
# Specifies the format and location of the input data for the job.
|
517
524
|
#
|
@@ -546,6 +553,12 @@ module Aws::Comprehend
|
|
546
553
|
# resp = client.create_document_classifier({
|
547
554
|
# document_classifier_name: "ComprehendArnName", # required
|
548
555
|
# data_access_role_arn: "IamRoleArn", # required
|
556
|
+
# tags: [
|
557
|
+
# {
|
558
|
+
# key: "TagKey", # required
|
559
|
+
# value: "TagValue",
|
560
|
+
# },
|
561
|
+
# ],
|
549
562
|
# input_data_config: { # required
|
550
563
|
# s3_uri: "S3Uri", # required
|
551
564
|
# },
|
@@ -582,6 +595,13 @@ module Aws::Comprehend
|
|
582
595
|
# (IAM) role that grants Amazon Comprehend read access to your input
|
583
596
|
# data.
|
584
597
|
#
|
598
|
+
# @option params [Array<Types::Tag>] :tags
|
599
|
+
# Tags to be associated with the entity recognizer being created. A tag
|
600
|
+
# is a key-value pair that adds as a metadata to a resource used by
|
601
|
+
# Amazon Comprehend. For example, a tag with the key-value pair
|
602
|
+
# ‘Department’:’Sales’ might be added to a resource to indicate its use
|
603
|
+
# by a particular department.
|
604
|
+
#
|
585
605
|
# @option params [required, Types::EntityRecognizerInputDataConfig] :input_data_config
|
586
606
|
# Specifies the format and location of the input data. The S3 bucket
|
587
607
|
# containing the input data must be located in the same region as the
|
@@ -618,6 +638,12 @@ module Aws::Comprehend
|
|
618
638
|
# resp = client.create_entity_recognizer({
|
619
639
|
# recognizer_name: "ComprehendArnName", # required
|
620
640
|
# data_access_role_arn: "IamRoleArn", # required
|
641
|
+
# tags: [
|
642
|
+
# {
|
643
|
+
# key: "TagKey", # required
|
644
|
+
# value: "TagValue",
|
645
|
+
# },
|
646
|
+
# ],
|
621
647
|
# input_data_config: { # required
|
622
648
|
# entity_types: [ # required
|
623
649
|
# {
|
@@ -1693,6 +1719,40 @@ module Aws::Comprehend
|
|
1693
1719
|
req.send_request(options)
|
1694
1720
|
end
|
1695
1721
|
|
1722
|
+
# Lists all tags associated with a given Amazon Comprehend resource. Up
|
1723
|
+
# to the maximum number of tags allowed per resource will be displayed.
|
1724
|
+
#
|
1725
|
+
# @option params [required, String] :resource_arn
|
1726
|
+
# The Amazon Resource Name (ARN) of the given Amazon Comprehend resource
|
1727
|
+
# you are querying.
|
1728
|
+
#
|
1729
|
+
# @return [Types::ListTagsForResourceResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
1730
|
+
#
|
1731
|
+
# * {Types::ListTagsForResourceResponse#resource_arn #resource_arn} => String
|
1732
|
+
# * {Types::ListTagsForResourceResponse#tags #tags} => Array<Types::Tag>
|
1733
|
+
#
|
1734
|
+
# @example Request syntax with placeholder values
|
1735
|
+
#
|
1736
|
+
# resp = client.list_tags_for_resource({
|
1737
|
+
# resource_arn: "ComprehendArn", # required
|
1738
|
+
# })
|
1739
|
+
#
|
1740
|
+
# @example Response structure
|
1741
|
+
#
|
1742
|
+
# resp.resource_arn #=> String
|
1743
|
+
# resp.tags #=> Array
|
1744
|
+
# resp.tags[0].key #=> String
|
1745
|
+
# resp.tags[0].value #=> String
|
1746
|
+
#
|
1747
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/comprehend-2017-11-27/ListTagsForResource AWS API Documentation
|
1748
|
+
#
|
1749
|
+
# @overload list_tags_for_resource(params = {})
|
1750
|
+
# @param [Hash] params ({})
|
1751
|
+
def list_tags_for_resource(params = {}, options = {})
|
1752
|
+
req = build_request(:list_tags_for_resource, params)
|
1753
|
+
req.send_request(options)
|
1754
|
+
end
|
1755
|
+
|
1696
1756
|
# Gets a list of the topic detection jobs that you have submitted.
|
1697
1757
|
#
|
1698
1758
|
# @option params [Types::TopicsDetectionJobFilter] :filter
|
@@ -2474,6 +2534,72 @@ module Aws::Comprehend
|
|
2474
2534
|
req.send_request(options)
|
2475
2535
|
end
|
2476
2536
|
|
2537
|
+
# Associates a specific tag with an Amazon Comprehend resource. A tag is
|
2538
|
+
# a key-value pair that adds as a metadata to a resource used by Amazon
|
2539
|
+
# Comprehend. For example, a tag with the key-value pair
|
2540
|
+
# ‘Department’:’Sales’ might be added to a resource to indicate its use
|
2541
|
+
# by a particular department.
|
2542
|
+
#
|
2543
|
+
# @option params [required, String] :resource_arn
|
2544
|
+
# The Amazon Resource Name (ARN) of the given Amazon Comprehend resource
|
2545
|
+
# to which you want to associate the tags.
|
2546
|
+
#
|
2547
|
+
# @option params [required, Array<Types::Tag>] :tags
|
2548
|
+
# Tags being associated with a specific Amazon Comprehend resource.
|
2549
|
+
#
|
2550
|
+
# @return [Struct] Returns an empty {Seahorse::Client::Response response}.
|
2551
|
+
#
|
2552
|
+
# @example Request syntax with placeholder values
|
2553
|
+
#
|
2554
|
+
# resp = client.tag_resource({
|
2555
|
+
# resource_arn: "ComprehendArn", # required
|
2556
|
+
# tags: [ # required
|
2557
|
+
# {
|
2558
|
+
# key: "TagKey", # required
|
2559
|
+
# value: "TagValue",
|
2560
|
+
# },
|
2561
|
+
# ],
|
2562
|
+
# })
|
2563
|
+
#
|
2564
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/comprehend-2017-11-27/TagResource AWS API Documentation
|
2565
|
+
#
|
2566
|
+
# @overload tag_resource(params = {})
|
2567
|
+
# @param [Hash] params ({})
|
2568
|
+
def tag_resource(params = {}, options = {})
|
2569
|
+
req = build_request(:tag_resource, params)
|
2570
|
+
req.send_request(options)
|
2571
|
+
end
|
2572
|
+
|
2573
|
+
# Removes a specific tag associated with an Amazon Comprehend resource.
|
2574
|
+
#
|
2575
|
+
# @option params [required, String] :resource_arn
|
2576
|
+
# The Amazon Resource Name (ARN) of the given Amazon Comprehend resource
|
2577
|
+
# from which you want to remove the tags.
|
2578
|
+
#
|
2579
|
+
# @option params [required, Array<String>] :tag_keys
|
2580
|
+
# The initial part of a key-value pair that forms a tag being removed
|
2581
|
+
# from a given resource. For instance, “Department” might be used as the
|
2582
|
+
# key portion of the pair, with multiple values such as “sales,”
|
2583
|
+
# “legal,” and “administration.”
|
2584
|
+
#
|
2585
|
+
# @return [Struct] Returns an empty {Seahorse::Client::Response response}.
|
2586
|
+
#
|
2587
|
+
# @example Request syntax with placeholder values
|
2588
|
+
#
|
2589
|
+
# resp = client.untag_resource({
|
2590
|
+
# resource_arn: "ComprehendArn", # required
|
2591
|
+
# tag_keys: ["TagKey"], # required
|
2592
|
+
# })
|
2593
|
+
#
|
2594
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/comprehend-2017-11-27/UntagResource AWS API Documentation
|
2595
|
+
#
|
2596
|
+
# @overload untag_resource(params = {})
|
2597
|
+
# @param [Hash] params ({})
|
2598
|
+
def untag_resource(params = {}, options = {})
|
2599
|
+
req = build_request(:untag_resource, params)
|
2600
|
+
req.send_request(options)
|
2601
|
+
end
|
2602
|
+
|
2477
2603
|
# @!endgroup
|
2478
2604
|
|
2479
2605
|
# @param params ({})
|
@@ -2487,7 +2613,7 @@ module Aws::Comprehend
|
|
2487
2613
|
params: params,
|
2488
2614
|
config: config)
|
2489
2615
|
context[:gem_name] = 'aws-sdk-comprehend'
|
2490
|
-
context[:gem_version] = '1.
|
2616
|
+
context[:gem_version] = '1.17.0'
|
2491
2617
|
Seahorse::Client::Request.new(handlers, context)
|
2492
2618
|
end
|
2493
2619
|
|
@@ -33,7 +33,9 @@ module Aws::Comprehend
|
|
33
33
|
ClassifierEvaluationMetrics = Shapes::StructureShape.new(name: 'ClassifierEvaluationMetrics')
|
34
34
|
ClassifierMetadata = Shapes::StructureShape.new(name: 'ClassifierMetadata')
|
35
35
|
ClientRequestTokenString = Shapes::StringShape.new(name: 'ClientRequestTokenString')
|
36
|
+
ComprehendArn = Shapes::StringShape.new(name: 'ComprehendArn')
|
36
37
|
ComprehendArnName = Shapes::StringShape.new(name: 'ComprehendArnName')
|
38
|
+
ConcurrentModificationException = Shapes::StructureShape.new(name: 'ConcurrentModificationException')
|
37
39
|
CreateDocumentClassifierRequest = Shapes::StructureShape.new(name: 'CreateDocumentClassifierRequest')
|
38
40
|
CreateDocumentClassifierResponse = Shapes::StructureShape.new(name: 'CreateDocumentClassifierResponse')
|
39
41
|
CreateEntityRecognizerRequest = Shapes::StructureShape.new(name: 'CreateEntityRecognizerRequest')
|
@@ -143,6 +145,8 @@ module Aws::Comprehend
|
|
143
145
|
ListOfSyntaxTokens = Shapes::ListShape.new(name: 'ListOfSyntaxTokens')
|
144
146
|
ListSentimentDetectionJobsRequest = Shapes::StructureShape.new(name: 'ListSentimentDetectionJobsRequest')
|
145
147
|
ListSentimentDetectionJobsResponse = Shapes::StructureShape.new(name: 'ListSentimentDetectionJobsResponse')
|
148
|
+
ListTagsForResourceRequest = Shapes::StructureShape.new(name: 'ListTagsForResourceRequest')
|
149
|
+
ListTagsForResourceResponse = Shapes::StructureShape.new(name: 'ListTagsForResourceResponse')
|
146
150
|
ListTopicsDetectionJobsRequest = Shapes::StructureShape.new(name: 'ListTopicsDetectionJobsRequest')
|
147
151
|
ListTopicsDetectionJobsResponse = Shapes::StructureShape.new(name: 'ListTopicsDetectionJobsResponse')
|
148
152
|
MaxResultsInteger = Shapes::IntegerShape.new(name: 'MaxResultsInteger')
|
@@ -189,13 +193,24 @@ module Aws::Comprehend
|
|
189
193
|
StringList = Shapes::ListShape.new(name: 'StringList')
|
190
194
|
SyntaxLanguageCode = Shapes::StringShape.new(name: 'SyntaxLanguageCode')
|
191
195
|
SyntaxToken = Shapes::StructureShape.new(name: 'SyntaxToken')
|
196
|
+
Tag = Shapes::StructureShape.new(name: 'Tag')
|
197
|
+
TagKey = Shapes::StringShape.new(name: 'TagKey')
|
198
|
+
TagKeyList = Shapes::ListShape.new(name: 'TagKeyList')
|
199
|
+
TagList = Shapes::ListShape.new(name: 'TagList')
|
200
|
+
TagResourceRequest = Shapes::StructureShape.new(name: 'TagResourceRequest')
|
201
|
+
TagResourceResponse = Shapes::StructureShape.new(name: 'TagResourceResponse')
|
202
|
+
TagValue = Shapes::StringShape.new(name: 'TagValue')
|
192
203
|
TextSizeLimitExceededException = Shapes::StructureShape.new(name: 'TextSizeLimitExceededException')
|
193
204
|
Timestamp = Shapes::TimestampShape.new(name: 'Timestamp')
|
194
205
|
TooManyRequestsException = Shapes::StructureShape.new(name: 'TooManyRequestsException')
|
206
|
+
TooManyTagKeysException = Shapes::StructureShape.new(name: 'TooManyTagKeysException')
|
207
|
+
TooManyTagsException = Shapes::StructureShape.new(name: 'TooManyTagsException')
|
195
208
|
TopicsDetectionJobFilter = Shapes::StructureShape.new(name: 'TopicsDetectionJobFilter')
|
196
209
|
TopicsDetectionJobProperties = Shapes::StructureShape.new(name: 'TopicsDetectionJobProperties')
|
197
210
|
TopicsDetectionJobPropertiesList = Shapes::ListShape.new(name: 'TopicsDetectionJobPropertiesList')
|
198
211
|
UnsupportedLanguageException = Shapes::StructureShape.new(name: 'UnsupportedLanguageException')
|
212
|
+
UntagResourceRequest = Shapes::StructureShape.new(name: 'UntagResourceRequest')
|
213
|
+
UntagResourceResponse = Shapes::StructureShape.new(name: 'UntagResourceResponse')
|
199
214
|
|
200
215
|
BatchDetectDominantLanguageItemResult.add_member(:index, Shapes::ShapeRef.new(shape: Integer, location_name: "Index"))
|
201
216
|
BatchDetectDominantLanguageItemResult.add_member(:languages, Shapes::ShapeRef.new(shape: ListOfDominantLanguages, location_name: "Languages"))
|
@@ -278,6 +293,7 @@ module Aws::Comprehend
|
|
278
293
|
|
279
294
|
CreateDocumentClassifierRequest.add_member(:document_classifier_name, Shapes::ShapeRef.new(shape: ComprehendArnName, required: true, location_name: "DocumentClassifierName"))
|
280
295
|
CreateDocumentClassifierRequest.add_member(:data_access_role_arn, Shapes::ShapeRef.new(shape: IamRoleArn, required: true, location_name: "DataAccessRoleArn"))
|
296
|
+
CreateDocumentClassifierRequest.add_member(:tags, Shapes::ShapeRef.new(shape: TagList, location_name: "Tags"))
|
281
297
|
CreateDocumentClassifierRequest.add_member(:input_data_config, Shapes::ShapeRef.new(shape: DocumentClassifierInputDataConfig, required: true, location_name: "InputDataConfig"))
|
282
298
|
CreateDocumentClassifierRequest.add_member(:client_request_token, Shapes::ShapeRef.new(shape: ClientRequestTokenString, location_name: "ClientRequestToken", metadata: {"idempotencyToken"=>true}))
|
283
299
|
CreateDocumentClassifierRequest.add_member(:language_code, Shapes::ShapeRef.new(shape: LanguageCode, required: true, location_name: "LanguageCode"))
|
@@ -289,6 +305,7 @@ module Aws::Comprehend
|
|
289
305
|
|
290
306
|
CreateEntityRecognizerRequest.add_member(:recognizer_name, Shapes::ShapeRef.new(shape: ComprehendArnName, required: true, location_name: "RecognizerName"))
|
291
307
|
CreateEntityRecognizerRequest.add_member(:data_access_role_arn, Shapes::ShapeRef.new(shape: IamRoleArn, required: true, location_name: "DataAccessRoleArn"))
|
308
|
+
CreateEntityRecognizerRequest.add_member(:tags, Shapes::ShapeRef.new(shape: TagList, location_name: "Tags"))
|
292
309
|
CreateEntityRecognizerRequest.add_member(:input_data_config, Shapes::ShapeRef.new(shape: EntityRecognizerInputDataConfig, required: true, location_name: "InputDataConfig"))
|
293
310
|
CreateEntityRecognizerRequest.add_member(:client_request_token, Shapes::ShapeRef.new(shape: ClientRequestTokenString, location_name: "ClientRequestToken", metadata: {"idempotencyToken"=>true}))
|
294
311
|
CreateEntityRecognizerRequest.add_member(:language_code, Shapes::ShapeRef.new(shape: LanguageCode, required: true, location_name: "LanguageCode"))
|
@@ -658,6 +675,13 @@ module Aws::Comprehend
|
|
658
675
|
ListSentimentDetectionJobsResponse.add_member(:next_token, Shapes::ShapeRef.new(shape: String, location_name: "NextToken"))
|
659
676
|
ListSentimentDetectionJobsResponse.struct_class = Types::ListSentimentDetectionJobsResponse
|
660
677
|
|
678
|
+
ListTagsForResourceRequest.add_member(:resource_arn, Shapes::ShapeRef.new(shape: ComprehendArn, required: true, location_name: "ResourceArn"))
|
679
|
+
ListTagsForResourceRequest.struct_class = Types::ListTagsForResourceRequest
|
680
|
+
|
681
|
+
ListTagsForResourceResponse.add_member(:resource_arn, Shapes::ShapeRef.new(shape: ComprehendArn, location_name: "ResourceArn"))
|
682
|
+
ListTagsForResourceResponse.add_member(:tags, Shapes::ShapeRef.new(shape: TagList, location_name: "Tags"))
|
683
|
+
ListTagsForResourceResponse.struct_class = Types::ListTagsForResourceResponse
|
684
|
+
|
661
685
|
ListTopicsDetectionJobsRequest.add_member(:filter, Shapes::ShapeRef.new(shape: TopicsDetectionJobFilter, location_name: "Filter"))
|
662
686
|
ListTopicsDetectionJobsRequest.add_member(:next_token, Shapes::ShapeRef.new(shape: String, location_name: "NextToken"))
|
663
687
|
ListTopicsDetectionJobsRequest.add_member(:max_results, Shapes::ShapeRef.new(shape: MaxResultsInteger, location_name: "MaxResults"))
|
@@ -827,6 +851,20 @@ module Aws::Comprehend
|
|
827
851
|
SyntaxToken.add_member(:part_of_speech, Shapes::ShapeRef.new(shape: PartOfSpeechTag, location_name: "PartOfSpeech"))
|
828
852
|
SyntaxToken.struct_class = Types::SyntaxToken
|
829
853
|
|
854
|
+
Tag.add_member(:key, Shapes::ShapeRef.new(shape: TagKey, required: true, location_name: "Key"))
|
855
|
+
Tag.add_member(:value, Shapes::ShapeRef.new(shape: TagValue, location_name: "Value"))
|
856
|
+
Tag.struct_class = Types::Tag
|
857
|
+
|
858
|
+
TagKeyList.member = Shapes::ShapeRef.new(shape: TagKey)
|
859
|
+
|
860
|
+
TagList.member = Shapes::ShapeRef.new(shape: Tag)
|
861
|
+
|
862
|
+
TagResourceRequest.add_member(:resource_arn, Shapes::ShapeRef.new(shape: ComprehendArn, required: true, location_name: "ResourceArn"))
|
863
|
+
TagResourceRequest.add_member(:tags, Shapes::ShapeRef.new(shape: TagList, required: true, location_name: "Tags"))
|
864
|
+
TagResourceRequest.struct_class = Types::TagResourceRequest
|
865
|
+
|
866
|
+
TagResourceResponse.struct_class = Types::TagResourceResponse
|
867
|
+
|
830
868
|
TopicsDetectionJobFilter.add_member(:job_name, Shapes::ShapeRef.new(shape: JobName, location_name: "JobName"))
|
831
869
|
TopicsDetectionJobFilter.add_member(:job_status, Shapes::ShapeRef.new(shape: JobStatus, location_name: "JobStatus"))
|
832
870
|
TopicsDetectionJobFilter.add_member(:submit_time_before, Shapes::ShapeRef.new(shape: Timestamp, location_name: "SubmitTimeBefore"))
|
@@ -848,6 +886,12 @@ module Aws::Comprehend
|
|
848
886
|
|
849
887
|
TopicsDetectionJobPropertiesList.member = Shapes::ShapeRef.new(shape: TopicsDetectionJobProperties)
|
850
888
|
|
889
|
+
UntagResourceRequest.add_member(:resource_arn, Shapes::ShapeRef.new(shape: ComprehendArn, required: true, location_name: "ResourceArn"))
|
890
|
+
UntagResourceRequest.add_member(:tag_keys, Shapes::ShapeRef.new(shape: TagKeyList, required: true, location_name: "TagKeys"))
|
891
|
+
UntagResourceRequest.struct_class = Types::UntagResourceRequest
|
892
|
+
|
893
|
+
UntagResourceResponse.struct_class = Types::UntagResourceResponse
|
894
|
+
|
851
895
|
|
852
896
|
# @api private
|
853
897
|
API = Seahorse::Model::Api.new.tap do |api|
|
@@ -939,6 +983,7 @@ module Aws::Comprehend
|
|
939
983
|
o.output = Shapes::ShapeRef.new(shape: CreateDocumentClassifierResponse)
|
940
984
|
o.errors << Shapes::ShapeRef.new(shape: InvalidRequestException)
|
941
985
|
o.errors << Shapes::ShapeRef.new(shape: ResourceInUseException)
|
986
|
+
o.errors << Shapes::ShapeRef.new(shape: TooManyTagsException)
|
942
987
|
o.errors << Shapes::ShapeRef.new(shape: TooManyRequestsException)
|
943
988
|
o.errors << Shapes::ShapeRef.new(shape: ResourceLimitExceededException)
|
944
989
|
o.errors << Shapes::ShapeRef.new(shape: UnsupportedLanguageException)
|
@@ -954,6 +999,7 @@ module Aws::Comprehend
|
|
954
999
|
o.output = Shapes::ShapeRef.new(shape: CreateEntityRecognizerResponse)
|
955
1000
|
o.errors << Shapes::ShapeRef.new(shape: InvalidRequestException)
|
956
1001
|
o.errors << Shapes::ShapeRef.new(shape: ResourceInUseException)
|
1002
|
+
o.errors << Shapes::ShapeRef.new(shape: TooManyTagsException)
|
957
1003
|
o.errors << Shapes::ShapeRef.new(shape: TooManyRequestsException)
|
958
1004
|
o.errors << Shapes::ShapeRef.new(shape: ResourceLimitExceededException)
|
959
1005
|
o.errors << Shapes::ShapeRef.new(shape: UnsupportedLanguageException)
|
@@ -1252,6 +1298,17 @@ module Aws::Comprehend
|
|
1252
1298
|
)
|
1253
1299
|
end)
|
1254
1300
|
|
1301
|
+
api.add_operation(:list_tags_for_resource, Seahorse::Model::Operation.new.tap do |o|
|
1302
|
+
o.name = "ListTagsForResource"
|
1303
|
+
o.http_method = "POST"
|
1304
|
+
o.http_request_uri = "/"
|
1305
|
+
o.input = Shapes::ShapeRef.new(shape: ListTagsForResourceRequest)
|
1306
|
+
o.output = Shapes::ShapeRef.new(shape: ListTagsForResourceResponse)
|
1307
|
+
o.errors << Shapes::ShapeRef.new(shape: InvalidRequestException)
|
1308
|
+
o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
|
1309
|
+
o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
|
1310
|
+
end)
|
1311
|
+
|
1255
1312
|
api.add_operation(:list_topics_detection_jobs, Seahorse::Model::Operation.new.tap do |o|
|
1256
1313
|
o.name = "ListTopicsDetectionJobs"
|
1257
1314
|
o.http_method = "POST"
|
@@ -1413,6 +1470,32 @@ module Aws::Comprehend
|
|
1413
1470
|
o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
|
1414
1471
|
o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
|
1415
1472
|
end)
|
1473
|
+
|
1474
|
+
api.add_operation(:tag_resource, Seahorse::Model::Operation.new.tap do |o|
|
1475
|
+
o.name = "TagResource"
|
1476
|
+
o.http_method = "POST"
|
1477
|
+
o.http_request_uri = "/"
|
1478
|
+
o.input = Shapes::ShapeRef.new(shape: TagResourceRequest)
|
1479
|
+
o.output = Shapes::ShapeRef.new(shape: TagResourceResponse)
|
1480
|
+
o.errors << Shapes::ShapeRef.new(shape: InvalidRequestException)
|
1481
|
+
o.errors << Shapes::ShapeRef.new(shape: ConcurrentModificationException)
|
1482
|
+
o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
|
1483
|
+
o.errors << Shapes::ShapeRef.new(shape: TooManyTagsException)
|
1484
|
+
o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
|
1485
|
+
end)
|
1486
|
+
|
1487
|
+
api.add_operation(:untag_resource, Seahorse::Model::Operation.new.tap do |o|
|
1488
|
+
o.name = "UntagResource"
|
1489
|
+
o.http_method = "POST"
|
1490
|
+
o.http_request_uri = "/"
|
1491
|
+
o.input = Shapes::ShapeRef.new(shape: UntagResourceRequest)
|
1492
|
+
o.output = Shapes::ShapeRef.new(shape: UntagResourceResponse)
|
1493
|
+
o.errors << Shapes::ShapeRef.new(shape: TooManyTagKeysException)
|
1494
|
+
o.errors << Shapes::ShapeRef.new(shape: InvalidRequestException)
|
1495
|
+
o.errors << Shapes::ShapeRef.new(shape: ConcurrentModificationException)
|
1496
|
+
o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
|
1497
|
+
o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
|
1498
|
+
end)
|
1416
1499
|
end
|
1417
1500
|
|
1418
1501
|
end
|
@@ -459,6 +459,12 @@ module Aws::Comprehend
|
|
459
459
|
# {
|
460
460
|
# document_classifier_name: "ComprehendArnName", # required
|
461
461
|
# data_access_role_arn: "IamRoleArn", # required
|
462
|
+
# tags: [
|
463
|
+
# {
|
464
|
+
# key: "TagKey", # required
|
465
|
+
# value: "TagValue",
|
466
|
+
# },
|
467
|
+
# ],
|
462
468
|
# input_data_config: { # required
|
463
469
|
# s3_uri: "S3Uri", # required
|
464
470
|
# },
|
@@ -477,6 +483,14 @@ module Aws::Comprehend
|
|
477
483
|
# data.
|
478
484
|
# @return [String]
|
479
485
|
#
|
486
|
+
# @!attribute [rw] tags
|
487
|
+
# Tags to be associated with the document classifier being created. A
|
488
|
+
# tag is a key-value pair that adds as a metadata to a resource used
|
489
|
+
# by Amazon Comprehend. For example, a tag with the key-value pair
|
490
|
+
# ‘Department’:’Sales’ might be added to a resource to indicate its
|
491
|
+
# use by a particular department.
|
492
|
+
# @return [Array<Types::Tag>]
|
493
|
+
#
|
480
494
|
# @!attribute [rw] input_data_config
|
481
495
|
# Specifies the format and location of the input data for the job.
|
482
496
|
# @return [Types::DocumentClassifierInputDataConfig]
|
@@ -512,6 +526,7 @@ module Aws::Comprehend
|
|
512
526
|
class CreateDocumentClassifierRequest < Struct.new(
|
513
527
|
:document_classifier_name,
|
514
528
|
:data_access_role_arn,
|
529
|
+
:tags,
|
515
530
|
:input_data_config,
|
516
531
|
:client_request_token,
|
517
532
|
:language_code,
|
@@ -537,6 +552,12 @@ module Aws::Comprehend
|
|
537
552
|
# {
|
538
553
|
# recognizer_name: "ComprehendArnName", # required
|
539
554
|
# data_access_role_arn: "IamRoleArn", # required
|
555
|
+
# tags: [
|
556
|
+
# {
|
557
|
+
# key: "TagKey", # required
|
558
|
+
# value: "TagValue",
|
559
|
+
# },
|
560
|
+
# ],
|
540
561
|
# input_data_config: { # required
|
541
562
|
# entity_types: [ # required
|
542
563
|
# {
|
@@ -571,6 +592,14 @@ module Aws::Comprehend
|
|
571
592
|
# data.
|
572
593
|
# @return [String]
|
573
594
|
#
|
595
|
+
# @!attribute [rw] tags
|
596
|
+
# Tags to be associated with the entity recognizer being created. A
|
597
|
+
# tag is a key-value pair that adds as a metadata to a resource used
|
598
|
+
# by Amazon Comprehend. For example, a tag with the key-value pair
|
599
|
+
# ‘Department’:’Sales’ might be added to a resource to indicate its
|
600
|
+
# use by a particular department.
|
601
|
+
# @return [Array<Types::Tag>]
|
602
|
+
#
|
574
603
|
# @!attribute [rw] input_data_config
|
575
604
|
# Specifies the format and location of the input data. The S3 bucket
|
576
605
|
# containing the input data must be located in the same region as the
|
@@ -607,6 +636,7 @@ module Aws::Comprehend
|
|
607
636
|
class CreateEntityRecognizerRequest < Struct.new(
|
608
637
|
:recognizer_name,
|
609
638
|
:data_access_role_arn,
|
639
|
+
:tags,
|
610
640
|
:input_data_config,
|
611
641
|
:client_request_token,
|
612
642
|
:language_code,
|
@@ -2638,6 +2668,46 @@ module Aws::Comprehend
|
|
2638
2668
|
include Aws::Structure
|
2639
2669
|
end
|
2640
2670
|
|
2671
|
+
# @note When making an API call, you may pass ListTagsForResourceRequest
|
2672
|
+
# data as a hash:
|
2673
|
+
#
|
2674
|
+
# {
|
2675
|
+
# resource_arn: "ComprehendArn", # required
|
2676
|
+
# }
|
2677
|
+
#
|
2678
|
+
# @!attribute [rw] resource_arn
|
2679
|
+
# The Amazon Resource Name (ARN) of the given Amazon Comprehend
|
2680
|
+
# resource you are querying.
|
2681
|
+
# @return [String]
|
2682
|
+
#
|
2683
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/comprehend-2017-11-27/ListTagsForResourceRequest AWS API Documentation
|
2684
|
+
#
|
2685
|
+
class ListTagsForResourceRequest < Struct.new(
|
2686
|
+
:resource_arn)
|
2687
|
+
include Aws::Structure
|
2688
|
+
end
|
2689
|
+
|
2690
|
+
# @!attribute [rw] resource_arn
|
2691
|
+
# The Amazon Resource Name (ARN) of the given Amazon Comprehend
|
2692
|
+
# resource you are querying.
|
2693
|
+
# @return [String]
|
2694
|
+
#
|
2695
|
+
# @!attribute [rw] tags
|
2696
|
+
# Tags associated with the Amazon Comprehend resource being queried. A
|
2697
|
+
# tag is a key-value pair that adds as a metadata to a resource used
|
2698
|
+
# by Amazon Comprehend. For example, a tag with the key-value pair
|
2699
|
+
# ‘Department’:’Sales’ might be added to a resource to indicate its
|
2700
|
+
# use by a particular department.
|
2701
|
+
# @return [Array<Types::Tag>]
|
2702
|
+
#
|
2703
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/comprehend-2017-11-27/ListTagsForResourceResponse AWS API Documentation
|
2704
|
+
#
|
2705
|
+
class ListTagsForResourceResponse < Struct.new(
|
2706
|
+
:resource_arn,
|
2707
|
+
:tags)
|
2708
|
+
include Aws::Structure
|
2709
|
+
end
|
2710
|
+
|
2641
2711
|
# @note When making an API call, you may pass ListTopicsDetectionJobsRequest
|
2642
2712
|
# data as a hash:
|
2643
2713
|
#
|
@@ -3806,6 +3876,77 @@ module Aws::Comprehend
|
|
3806
3876
|
include Aws::Structure
|
3807
3877
|
end
|
3808
3878
|
|
3879
|
+
# A key-value pair that adds as a metadata to a resource used by Amazon
|
3880
|
+
# Comprehend. For example, a tag with the key-value pair
|
3881
|
+
# ‘Department’:’Sales’ might be added to a resource to indicate its use
|
3882
|
+
# by a particular department.
|
3883
|
+
#
|
3884
|
+
# @note When making an API call, you may pass Tag
|
3885
|
+
# data as a hash:
|
3886
|
+
#
|
3887
|
+
# {
|
3888
|
+
# key: "TagKey", # required
|
3889
|
+
# value: "TagValue",
|
3890
|
+
# }
|
3891
|
+
#
|
3892
|
+
# @!attribute [rw] key
|
3893
|
+
# The initial part of a key-value pair that forms a tag associated
|
3894
|
+
# with a given resource. For instance, if you want to show which
|
3895
|
+
# resources are used by which departments, you might use “Department”
|
3896
|
+
# as the key portion of the pair, with multiple possible values such
|
3897
|
+
# as “sales,” “legal,” and “administration.”
|
3898
|
+
# @return [String]
|
3899
|
+
#
|
3900
|
+
# @!attribute [rw] value
|
3901
|
+
# The second part of a key-value pair that forms a tag associated with
|
3902
|
+
# a given resource. For instance, if you want to show which resources
|
3903
|
+
# are used by which departments, you might use “Department” as the
|
3904
|
+
# initial (key) portion of the pair, with a value of “sales” to
|
3905
|
+
# indicate the sales department.
|
3906
|
+
# @return [String]
|
3907
|
+
#
|
3908
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/comprehend-2017-11-27/Tag AWS API Documentation
|
3909
|
+
#
|
3910
|
+
class Tag < Struct.new(
|
3911
|
+
:key,
|
3912
|
+
:value)
|
3913
|
+
include Aws::Structure
|
3914
|
+
end
|
3915
|
+
|
3916
|
+
# @note When making an API call, you may pass TagResourceRequest
|
3917
|
+
# data as a hash:
|
3918
|
+
#
|
3919
|
+
# {
|
3920
|
+
# resource_arn: "ComprehendArn", # required
|
3921
|
+
# tags: [ # required
|
3922
|
+
# {
|
3923
|
+
# key: "TagKey", # required
|
3924
|
+
# value: "TagValue",
|
3925
|
+
# },
|
3926
|
+
# ],
|
3927
|
+
# }
|
3928
|
+
#
|
3929
|
+
# @!attribute [rw] resource_arn
|
3930
|
+
# The Amazon Resource Name (ARN) of the given Amazon Comprehend
|
3931
|
+
# resource to which you want to associate the tags.
|
3932
|
+
# @return [String]
|
3933
|
+
#
|
3934
|
+
# @!attribute [rw] tags
|
3935
|
+
# Tags being associated with a specific Amazon Comprehend resource.
|
3936
|
+
# @return [Array<Types::Tag>]
|
3937
|
+
#
|
3938
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/comprehend-2017-11-27/TagResourceRequest AWS API Documentation
|
3939
|
+
#
|
3940
|
+
class TagResourceRequest < Struct.new(
|
3941
|
+
:resource_arn,
|
3942
|
+
:tags)
|
3943
|
+
include Aws::Structure
|
3944
|
+
end
|
3945
|
+
|
3946
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/comprehend-2017-11-27/TagResourceResponse AWS API Documentation
|
3947
|
+
#
|
3948
|
+
class TagResourceResponse < Aws::EmptyStructure; end
|
3949
|
+
|
3809
3950
|
# Provides information for filtering topic detection jobs. For more
|
3810
3951
|
# information, see .
|
3811
3952
|
#
|
@@ -3896,7 +4037,7 @@ module Aws::Comprehend
|
|
3896
4037
|
#
|
3897
4038
|
# @!attribute [rw] data_access_role_arn
|
3898
4039
|
# The Amazon Resource Name (ARN) of the AWS Identity and Management
|
3899
|
-
# (IAM) role that grants Amazon Comprehend read access to your
|
4040
|
+
# (IAM) role that grants Amazon Comprehend read access to your job
|
3900
4041
|
# data.
|
3901
4042
|
# @return [String]
|
3902
4043
|
#
|
@@ -3929,5 +4070,37 @@ module Aws::Comprehend
|
|
3929
4070
|
include Aws::Structure
|
3930
4071
|
end
|
3931
4072
|
|
4073
|
+
# @note When making an API call, you may pass UntagResourceRequest
|
4074
|
+
# data as a hash:
|
4075
|
+
#
|
4076
|
+
# {
|
4077
|
+
# resource_arn: "ComprehendArn", # required
|
4078
|
+
# tag_keys: ["TagKey"], # required
|
4079
|
+
# }
|
4080
|
+
#
|
4081
|
+
# @!attribute [rw] resource_arn
|
4082
|
+
# The Amazon Resource Name (ARN) of the given Amazon Comprehend
|
4083
|
+
# resource from which you want to remove the tags.
|
4084
|
+
# @return [String]
|
4085
|
+
#
|
4086
|
+
# @!attribute [rw] tag_keys
|
4087
|
+
# The initial part of a key-value pair that forms a tag being removed
|
4088
|
+
# from a given resource. For instance, “Department” might be used as
|
4089
|
+
# the key portion of the pair, with multiple values such as “sales,”
|
4090
|
+
# “legal,” and “administration.”
|
4091
|
+
# @return [Array<String>]
|
4092
|
+
#
|
4093
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/comprehend-2017-11-27/UntagResourceRequest AWS API Documentation
|
4094
|
+
#
|
4095
|
+
class UntagResourceRequest < Struct.new(
|
4096
|
+
:resource_arn,
|
4097
|
+
:tag_keys)
|
4098
|
+
include Aws::Structure
|
4099
|
+
end
|
4100
|
+
|
4101
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/comprehend-2017-11-27/UntagResourceResponse AWS API Documentation
|
4102
|
+
#
|
4103
|
+
class UntagResourceResponse < Aws::EmptyStructure; end
|
4104
|
+
|
3932
4105
|
end
|
3933
4106
|
end
|
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.
|
4
|
+
version: 1.17.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Amazon Web Services
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-03
|
11
|
+
date: 2019-04-03 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: aws-sdk-core
|