aws-sdk-comprehend 1.43.0 → 1.47.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: e62520828260762780f91a6410bd9b134354e1208b50690e7aed28db59a3c478
4
- data.tar.gz: 47f3fd763c2a90000aa7c9d11460be53ae19d2a920c5bad7db115a0b7dd21528
3
+ metadata.gz: ef483dc3640138df9958b2e5c82316e39eb4fbfa8ae5a956d898df6cb2af90d2
4
+ data.tar.gz: b3173670c33ed8cf311b8e5342a339d7ce223e40ba192b11cf0afdb4b570e182
5
5
  SHA512:
6
- metadata.gz: 8f3e219e9df089e539e5bb61aa624ce124dc7242fda2043819431a632ffe9e89136ddedc1afdf15a5ab64578d427fee5cc6d7b9ff4b798a4e55d35c46d81519f
7
- data.tar.gz: d14558d5100811e8231c398c6513259e49e3f526688ebcb49a462a5ea6db4c447ee7b3fd108c221bdfef13f6856a3c65b43d2f3ae013957466660e61bb95f257
6
+ metadata.gz: 1081b027bbaa8d97a2beb3b5e77ae2dbc6db00664cc4983d9e3954e7949337371e462f8aacc743f01bc75919908cbb53b102dea34a8f001eceddfafeebf52eb9
7
+ data.tar.gz: 1f01a7232ef05809c637f4618d3edd384c952f5146140716e5b3b71e5cd5386b4cde61a4e1805332ff1fe1c6e388e58a7b265680e5f86561ead7c6c0791b7934
data/CHANGELOG.md ADDED
@@ -0,0 +1,253 @@
1
+ Unreleased Changes
2
+ ------------------
3
+
4
+ 1.47.0 (2021-07-28)
5
+ ------------------
6
+
7
+ * Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
8
+
9
+ 1.46.0 (2021-03-31)
10
+ ------------------
11
+
12
+ * Feature - Support for customer managed KMS encryption of Comprehend custom models
13
+
14
+ 1.45.0 (2021-03-11)
15
+ ------------------
16
+
17
+ * Feature - ContainsPiiEntities API analyzes the input text for the presence of personally identifiable information(PII) and returns the labels of identified PII entity types such as name, address etc.
18
+
19
+ 1.44.0 (2021-03-10)
20
+ ------------------
21
+
22
+ * Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
23
+
24
+ 1.43.0 (2021-02-02)
25
+ ------------------
26
+
27
+ * Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
28
+
29
+ 1.42.0 (2020-11-24)
30
+ ------------------
31
+
32
+ * Feature - Support Comprehend events detection APIs
33
+
34
+ 1.41.0 (2020-09-30)
35
+ ------------------
36
+
37
+ * Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
38
+
39
+ 1.40.0 (2020-09-22)
40
+ ------------------
41
+
42
+ * Feature - Amazon Comprehend integrates with Amazon SageMaker GroundTruth to allow its customers to annotate their datasets using GroundTruth and train their models using Comprehend Custom APIs.
43
+
44
+ 1.39.0 (2020-09-17)
45
+ ------------------
46
+
47
+ * Feature - Amazon Comprehend now supports detecting Personally Identifiable Information (PII) entities in a document.
48
+
49
+ 1.38.0 (2020-09-15)
50
+ ------------------
51
+
52
+ * Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
53
+
54
+ 1.37.0 (2020-08-25)
55
+ ------------------
56
+
57
+ * Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
58
+
59
+ 1.36.0 (2020-08-12)
60
+ ------------------
61
+
62
+ * Feature - Amazon Comprehend Custom Entity Recognition now supports Spanish, German, French, Italian and Portuguese and up to 25 entity types per model.
63
+
64
+ 1.35.0 (2020-07-09)
65
+ ------------------
66
+
67
+ * Feature - AWS Comprehend now supports Real-time Analysis with Custom Entity Recognition.
68
+
69
+ 1.34.0 (2020-06-23)
70
+ ------------------
71
+
72
+ * Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
73
+
74
+ 1.33.1 (2020-06-11)
75
+ ------------------
76
+
77
+ * Issue - Republish previous version with correct dependency on `aws-sdk-core`.
78
+
79
+ 1.33.0 (2020-06-10)
80
+ ------------------
81
+
82
+ * Issue - This version has been yanked. (#2327).
83
+ * Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
84
+
85
+ 1.32.0 (2020-05-28)
86
+ ------------------
87
+
88
+ * Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
89
+
90
+ 1.31.0 (2020-05-07)
91
+ ------------------
92
+
93
+ * Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
94
+
95
+ 1.30.0 (2020-03-09)
96
+ ------------------
97
+
98
+ * Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
99
+
100
+ 1.29.0 (2020-01-06)
101
+ ------------------
102
+
103
+ * Feature - Amazon Comprehend now supports Multilabel document classification
104
+
105
+ 1.28.0 (2019-11-25)
106
+ ------------------
107
+
108
+ * Feature - Amazon Comprehend now supports real-time analysis with Custom Classification
109
+
110
+ 1.27.0 (2019-11-07)
111
+ ------------------
112
+
113
+ * Feature - This release adds new languages (ar, hi, ko, ja, zh, zh-TW) for Amazon Comprehend's DetectSentiment, DetectEntities, DetectKeyPhrases, BatchDetectSentiment, BatchDetectEntities and BatchDetectKeyPhrases APIs
114
+
115
+ 1.26.0 (2019-10-23)
116
+ ------------------
117
+
118
+ * Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
119
+
120
+ 1.25.0 (2019-07-25)
121
+ ------------------
122
+
123
+ * Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
124
+
125
+ 1.24.0 (2019-07-18)
126
+ ------------------
127
+
128
+ * Feature - Amazon Comprehend now supports multiple entities for custom entity recognition
129
+
130
+ 1.23.0 (2019-07-01)
131
+ ------------------
132
+
133
+ * Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
134
+
135
+ 1.22.0 (2019-06-17)
136
+ ------------------
137
+
138
+ * Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
139
+
140
+ 1.21.0 (2019-05-21)
141
+ ------------------
142
+
143
+ * Feature - API update.
144
+
145
+ 1.20.0 (2019-05-15)
146
+ ------------------
147
+
148
+ * Feature - API update.
149
+
150
+ 1.19.0 (2019-05-14)
151
+ ------------------
152
+
153
+ * Feature - API update.
154
+
155
+ 1.18.0 (2019-04-05)
156
+ ------------------
157
+
158
+ * Feature - API update.
159
+
160
+ 1.17.0 (2019-04-03)
161
+ ------------------
162
+
163
+ * Feature - API update.
164
+
165
+ 1.16.0 (2019-03-29)
166
+ ------------------
167
+
168
+ * Feature - API update.
169
+
170
+ 1.15.0 (2019-03-21)
171
+ ------------------
172
+
173
+ * Feature - API update.
174
+
175
+ 1.14.0 (2019-03-18)
176
+ ------------------
177
+
178
+ * Feature - API update.
179
+
180
+ 1.13.0 (2019-03-14)
181
+ ------------------
182
+
183
+ * Feature - API update.
184
+
185
+ 1.12.0 (2018-12-20)
186
+ ------------------
187
+
188
+ * Feature - API update.
189
+
190
+ 1.11.0 (2018-11-20)
191
+ ------------------
192
+
193
+ * Feature - API update.
194
+
195
+ 1.10.0 (2018-11-16)
196
+ ------------------
197
+
198
+ * Feature - API update.
199
+
200
+ 1.9.1 (2018-11-16)
201
+ ------------------
202
+
203
+ * Issue - Update version dependency on `aws-sdk-core` to support endpoint discovery.
204
+
205
+ 1.9.0 (2018-11-15)
206
+ ------------------
207
+
208
+ * Feature - API update.
209
+
210
+ 1.8.0 (2018-10-24)
211
+ ------------------
212
+
213
+ * Feature - API update.
214
+
215
+ 1.7.0 (2018-10-23)
216
+ ------------------
217
+
218
+ * Feature - API update.
219
+
220
+ 1.6.0 (2018-10-10)
221
+ ------------------
222
+
223
+ * Feature - API update.
224
+
225
+ 1.5.0 (2018-09-06)
226
+ ------------------
227
+
228
+ * Feature - Adds code paths and plugins for future SDK instrumentation and telemetry.
229
+
230
+ 1.4.0 (2018-09-05)
231
+ ------------------
232
+
233
+ * Feature - API update.
234
+
235
+ 1.3.0 (2018-07-17)
236
+ ------------------
237
+
238
+ * Feature - API update.
239
+
240
+ 1.2.0 (2018-06-27)
241
+ ------------------
242
+
243
+ * Feature - API update.
244
+
245
+ 1.1.0 (2018-06-26)
246
+ ------------------
247
+
248
+ * Feature - API update.
249
+
250
+ 1.0.0 (2017-11-29)
251
+ ------------------
252
+
253
+ * Feature - Initial release of `aws-sdk-comprehend`.
data/LICENSE.txt ADDED
@@ -0,0 +1,202 @@
1
+
2
+ Apache License
3
+ Version 2.0, January 2004
4
+ http://www.apache.org/licenses/
5
+
6
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
7
+
8
+ 1. Definitions.
9
+
10
+ "License" shall mean the terms and conditions for use, reproduction,
11
+ and distribution as defined by Sections 1 through 9 of this document.
12
+
13
+ "Licensor" shall mean the copyright owner or entity authorized by
14
+ the copyright owner that is granting the License.
15
+
16
+ "Legal Entity" shall mean the union of the acting entity and all
17
+ other entities that control, are controlled by, or are under common
18
+ control with that entity. For the purposes of this definition,
19
+ "control" means (i) the power, direct or indirect, to cause the
20
+ direction or management of such entity, whether by contract or
21
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
22
+ outstanding shares, or (iii) beneficial ownership of such entity.
23
+
24
+ "You" (or "Your") shall mean an individual or Legal Entity
25
+ exercising permissions granted by this License.
26
+
27
+ "Source" form shall mean the preferred form for making modifications,
28
+ including but not limited to software source code, documentation
29
+ source, and configuration files.
30
+
31
+ "Object" form shall mean any form resulting from mechanical
32
+ transformation or translation of a Source form, including but
33
+ not limited to compiled object code, generated documentation,
34
+ and conversions to other media types.
35
+
36
+ "Work" shall mean the work of authorship, whether in Source or
37
+ Object form, made available under the License, as indicated by a
38
+ copyright notice that is included in or attached to the work
39
+ (an example is provided in the Appendix below).
40
+
41
+ "Derivative Works" shall mean any work, whether in Source or Object
42
+ form, that is based on (or derived from) the Work and for which the
43
+ editorial revisions, annotations, elaborations, or other modifications
44
+ represent, as a whole, an original work of authorship. For the purposes
45
+ of this License, Derivative Works shall not include works that remain
46
+ separable from, or merely link (or bind by name) to the interfaces of,
47
+ the Work and Derivative Works thereof.
48
+
49
+ "Contribution" shall mean any work of authorship, including
50
+ the original version of the Work and any modifications or additions
51
+ to that Work or Derivative Works thereof, that is intentionally
52
+ submitted to Licensor for inclusion in the Work by the copyright owner
53
+ or by an individual or Legal Entity authorized to submit on behalf of
54
+ the copyright owner. For the purposes of this definition, "submitted"
55
+ means any form of electronic, verbal, or written communication sent
56
+ to the Licensor or its representatives, including but not limited to
57
+ communication on electronic mailing lists, source code control systems,
58
+ and issue tracking systems that are managed by, or on behalf of, the
59
+ Licensor for the purpose of discussing and improving the Work, but
60
+ excluding communication that is conspicuously marked or otherwise
61
+ designated in writing by the copyright owner as "Not a Contribution."
62
+
63
+ "Contributor" shall mean Licensor and any individual or Legal Entity
64
+ on behalf of whom a Contribution has been received by Licensor and
65
+ subsequently incorporated within the Work.
66
+
67
+ 2. Grant of Copyright License. Subject to the terms and conditions of
68
+ this License, each Contributor hereby grants to You a perpetual,
69
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
70
+ copyright license to reproduce, prepare Derivative Works of,
71
+ publicly display, publicly perform, sublicense, and distribute the
72
+ Work and such Derivative Works in Source or Object form.
73
+
74
+ 3. Grant of Patent License. Subject to the terms and conditions of
75
+ this License, each Contributor hereby grants to You a perpetual,
76
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
77
+ (except as stated in this section) patent license to make, have made,
78
+ use, offer to sell, sell, import, and otherwise transfer the Work,
79
+ where such license applies only to those patent claims licensable
80
+ by such Contributor that are necessarily infringed by their
81
+ Contribution(s) alone or by combination of their Contribution(s)
82
+ with the Work to which such Contribution(s) was submitted. If You
83
+ institute patent litigation against any entity (including a
84
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
85
+ or a Contribution incorporated within the Work constitutes direct
86
+ or contributory patent infringement, then any patent licenses
87
+ granted to You under this License for that Work shall terminate
88
+ as of the date such litigation is filed.
89
+
90
+ 4. Redistribution. You may reproduce and distribute copies of the
91
+ Work or Derivative Works thereof in any medium, with or without
92
+ modifications, and in Source or Object form, provided that You
93
+ meet the following conditions:
94
+
95
+ (a) You must give any other recipients of the Work or
96
+ Derivative Works a copy of this License; and
97
+
98
+ (b) You must cause any modified files to carry prominent notices
99
+ stating that You changed the files; and
100
+
101
+ (c) You must retain, in the Source form of any Derivative Works
102
+ that You distribute, all copyright, patent, trademark, and
103
+ attribution notices from the Source form of the Work,
104
+ excluding those notices that do not pertain to any part of
105
+ the Derivative Works; and
106
+
107
+ (d) If the Work includes a "NOTICE" text file as part of its
108
+ distribution, then any Derivative Works that You distribute must
109
+ include a readable copy of the attribution notices contained
110
+ within such NOTICE file, excluding those notices that do not
111
+ pertain to any part of the Derivative Works, in at least one
112
+ of the following places: within a NOTICE text file distributed
113
+ as part of the Derivative Works; within the Source form or
114
+ documentation, if provided along with the Derivative Works; or,
115
+ within a display generated by the Derivative Works, if and
116
+ wherever such third-party notices normally appear. The contents
117
+ of the NOTICE file are for informational purposes only and
118
+ do not modify the License. You may add Your own attribution
119
+ notices within Derivative Works that You distribute, alongside
120
+ or as an addendum to the NOTICE text from the Work, provided
121
+ that such additional attribution notices cannot be construed
122
+ as modifying the License.
123
+
124
+ You may add Your own copyright statement to Your modifications and
125
+ may provide additional or different license terms and conditions
126
+ for use, reproduction, or distribution of Your modifications, or
127
+ for any such Derivative Works as a whole, provided Your use,
128
+ reproduction, and distribution of the Work otherwise complies with
129
+ the conditions stated in this License.
130
+
131
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
132
+ any Contribution intentionally submitted for inclusion in the Work
133
+ by You to the Licensor shall be under the terms and conditions of
134
+ this License, without any additional terms or conditions.
135
+ Notwithstanding the above, nothing herein shall supersede or modify
136
+ the terms of any separate license agreement you may have executed
137
+ with Licensor regarding such Contributions.
138
+
139
+ 6. Trademarks. This License does not grant permission to use the trade
140
+ names, trademarks, service marks, or product names of the Licensor,
141
+ except as required for reasonable and customary use in describing the
142
+ origin of the Work and reproducing the content of the NOTICE file.
143
+
144
+ 7. Disclaimer of Warranty. Unless required by applicable law or
145
+ agreed to in writing, Licensor provides the Work (and each
146
+ Contributor provides its Contributions) on an "AS IS" BASIS,
147
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
148
+ implied, including, without limitation, any warranties or conditions
149
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
150
+ PARTICULAR PURPOSE. You are solely responsible for determining the
151
+ appropriateness of using or redistributing the Work and assume any
152
+ risks associated with Your exercise of permissions under this License.
153
+
154
+ 8. Limitation of Liability. In no event and under no legal theory,
155
+ whether in tort (including negligence), contract, or otherwise,
156
+ unless required by applicable law (such as deliberate and grossly
157
+ negligent acts) or agreed to in writing, shall any Contributor be
158
+ liable to You for damages, including any direct, indirect, special,
159
+ incidental, or consequential damages of any character arising as a
160
+ result of this License or out of the use or inability to use the
161
+ Work (including but not limited to damages for loss of goodwill,
162
+ work stoppage, computer failure or malfunction, or any and all
163
+ other commercial damages or losses), even if such Contributor
164
+ has been advised of the possibility of such damages.
165
+
166
+ 9. Accepting Warranty or Additional Liability. While redistributing
167
+ the Work or Derivative Works thereof, You may choose to offer,
168
+ and charge a fee for, acceptance of support, warranty, indemnity,
169
+ or other liability obligations and/or rights consistent with this
170
+ License. However, in accepting such obligations, You may act only
171
+ on Your own behalf and on Your sole responsibility, not on behalf
172
+ of any other Contributor, and only if You agree to indemnify,
173
+ defend, and hold each Contributor harmless for any liability
174
+ incurred by, or claims asserted against, such Contributor by reason
175
+ of your accepting any such warranty or additional liability.
176
+
177
+ END OF TERMS AND CONDITIONS
178
+
179
+ APPENDIX: How to apply the Apache License to your work.
180
+
181
+ To apply the Apache License to your work, attach the following
182
+ boilerplate notice, with the fields enclosed by brackets "[]"
183
+ replaced with your own identifying information. (Don't include
184
+ the brackets!) The text should be enclosed in the appropriate
185
+ comment syntax for the file format. We also recommend that a
186
+ file or class name and description of purpose be included on the
187
+ same "printed page" as the copyright notice for easier
188
+ identification within third-party archives.
189
+
190
+ Copyright [yyyy] [name of copyright owner]
191
+
192
+ Licensed under the Apache License, Version 2.0 (the "License");
193
+ you may not use this file except in compliance with the License.
194
+ You may obtain a copy of the License at
195
+
196
+ http://www.apache.org/licenses/LICENSE-2.0
197
+
198
+ Unless required by applicable law or agreed to in writing, software
199
+ distributed under the License is distributed on an "AS IS" BASIS,
200
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
201
+ See the License for the specific language governing permissions and
202
+ limitations under the License.
data/VERSION ADDED
@@ -0,0 +1 @@
1
+ 1.47.0
@@ -3,7 +3,7 @@
3
3
  # WARNING ABOUT GENERATED CODE
4
4
  #
5
5
  # This file is generated. See the contributing guide for more information:
6
- # https://github.com/aws/aws-sdk-ruby/blob/master/CONTRIBUTING.md
6
+ # https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md
7
7
  #
8
8
  # WARNING ABOUT GENERATED CODE
9
9
 
@@ -48,6 +48,6 @@ require_relative 'aws-sdk-comprehend/customizations'
48
48
  # @!group service
49
49
  module Aws::Comprehend
50
50
 
51
- GEM_VERSION = '1.43.0'
51
+ GEM_VERSION = '1.47.0'
52
52
 
53
53
  end
@@ -3,7 +3,7 @@
3
3
  # WARNING ABOUT GENERATED CODE
4
4
  #
5
5
  # This file is generated. See the contributing guide for more information:
6
- # https://github.com/aws/aws-sdk-ruby/blob/master/CONTRIBUTING.md
6
+ # https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md
7
7
  #
8
8
  # WARNING ABOUT GENERATED CODE
9
9
 
@@ -621,6 +621,44 @@ module Aws::Comprehend
621
621
  req.send_request(options)
622
622
  end
623
623
 
624
+ # Analyzes input text for the presence of personally identifiable
625
+ # information (PII) and returns the labels of identified PII entity
626
+ # types such as name, address, bank account number, or phone number.
627
+ #
628
+ # @option params [required, String] :text
629
+ # Creates a new document classification request to analyze a single
630
+ # document in real-time, returning personally identifiable information
631
+ # (PII) entity labels.
632
+ #
633
+ # @option params [required, String] :language_code
634
+ # The language of the input documents.
635
+ #
636
+ # @return [Types::ContainsPiiEntitiesResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
637
+ #
638
+ # * {Types::ContainsPiiEntitiesResponse#labels #labels} => Array<Types::EntityLabel>
639
+ #
640
+ # @example Request syntax with placeholder values
641
+ #
642
+ # resp = client.contains_pii_entities({
643
+ # text: "String", # required
644
+ # language_code: "en", # required, accepts en, es, fr, de, it, pt, ar, hi, ja, ko, zh, zh-TW
645
+ # })
646
+ #
647
+ # @example Response structure
648
+ #
649
+ # resp.labels #=> Array
650
+ # resp.labels[0].name #=> String, one of "BANK_ACCOUNT_NUMBER", "BANK_ROUTING", "CREDIT_DEBIT_NUMBER", "CREDIT_DEBIT_CVV", "CREDIT_DEBIT_EXPIRY", "PIN", "EMAIL", "ADDRESS", "NAME", "PHONE", "SSN", "DATE_TIME", "PASSPORT_NUMBER", "DRIVER_ID", "URL", "AGE", "USERNAME", "PASSWORD", "AWS_ACCESS_KEY", "AWS_SECRET_KEY", "IP_ADDRESS", "MAC_ADDRESS", "ALL"
651
+ # resp.labels[0].score #=> Float
652
+ #
653
+ # @see http://docs.aws.amazon.com/goto/WebAPI/comprehend-2017-11-27/ContainsPiiEntities AWS API Documentation
654
+ #
655
+ # @overload contains_pii_entities(params = {})
656
+ # @param [Hash] params ({})
657
+ def contains_pii_entities(params = {}, options = {})
658
+ req = build_request(:contains_pii_entities, params)
659
+ req.send_request(options)
660
+ end
661
+
624
662
  # Creates a new document classifier that you can use to categorize
625
663
  # documents. To create a classifier, you provide a set of training
626
664
  # documents that labeled with the categories that you want to use. After
@@ -690,6 +728,16 @@ module Aws::Comprehend
690
728
  # multiple labels for an individual document are separated by a
691
729
  # delimiter. The default delimiter between labels is a pipe (\|).
692
730
  #
731
+ # @option params [String] :model_kms_key_id
732
+ # ID for the AWS Key Management Service (KMS) key that Amazon Comprehend
733
+ # uses to encrypt trained custom models. The ModelKmsKeyId can be either
734
+ # of the following formats:
735
+ #
736
+ # * KMS Key ID: `"1234abcd-12ab-34cd-56ef-1234567890ab"`
737
+ #
738
+ # * Amazon Resource Name (ARN) of a KMS Key:
739
+ # `"arn:aws:kms:us-west-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab"`
740
+ #
693
741
  # @return [Types::CreateDocumentClassifierResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
694
742
  #
695
743
  # * {Types::CreateDocumentClassifierResponse#document_classifier_arn #document_classifier_arn} => String
@@ -728,6 +776,7 @@ module Aws::Comprehend
728
776
  # subnets: ["SubnetId"], # required
729
777
  # },
730
778
  # mode: "MULTI_CLASS", # accepts MULTI_CLASS, MULTI_LABEL
779
+ # model_kms_key_id: "KmsKeyId",
731
780
  # })
732
781
  #
733
782
  # @example Response structure
@@ -773,6 +822,12 @@ module Aws::Comprehend
773
822
  # "Sales" as the key might be added to an endpoint to indicate its use
774
823
  # by the sales department.
775
824
  #
825
+ # @option params [String] :data_access_role_arn
826
+ # The Amazon Resource Name (ARN) of the AWS identity and Access
827
+ # Management (IAM) role that grants Amazon Comprehend read access to
828
+ # trained custom models encrypted with a customer managed key
829
+ # (ModelKmsKeyId).
830
+ #
776
831
  # @return [Types::CreateEndpointResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
777
832
  #
778
833
  # * {Types::CreateEndpointResponse#endpoint_arn #endpoint_arn} => String
@@ -790,6 +845,7 @@ module Aws::Comprehend
790
845
  # value: "TagValue",
791
846
  # },
792
847
  # ],
848
+ # data_access_role_arn: "IamRoleArn",
793
849
  # })
794
850
  #
795
851
  # @example Response structure
@@ -864,6 +920,16 @@ module Aws::Comprehend
864
920
  #
865
921
  # [1]: https://docs.aws.amazon.com/vpc/latest/userguide/what-is-amazon-vpc.html
866
922
  #
923
+ # @option params [String] :model_kms_key_id
924
+ # ID for the AWS Key Management Service (KMS) key that Amazon Comprehend
925
+ # uses to encrypt trained custom models. The ModelKmsKeyId can be either
926
+ # of the following formats
927
+ #
928
+ # * KMS Key ID: `"1234abcd-12ab-34cd-56ef-1234567890ab"`
929
+ #
930
+ # * Amazon Resource Name (ARN) of a KMS Key:
931
+ # `"arn:aws:kms:us-west-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab"`
932
+ #
867
933
  # @return [Types::CreateEntityRecognizerResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
868
934
  #
869
935
  # * {Types::CreateEntityRecognizerResponse#entity_recognizer_arn #entity_recognizer_arn} => String
@@ -909,6 +975,7 @@ module Aws::Comprehend
909
975
  # security_group_ids: ["SecurityGroupId"], # required
910
976
  # subnets: ["SubnetId"], # required
911
977
  # },
978
+ # model_kms_key_id: "KmsKeyId",
912
979
  # })
913
980
  #
914
981
  # @example Response structure
@@ -1110,6 +1177,7 @@ module Aws::Comprehend
1110
1177
  # resp.document_classifier_properties.vpc_config.subnets #=> Array
1111
1178
  # resp.document_classifier_properties.vpc_config.subnets[0] #=> String
1112
1179
  # resp.document_classifier_properties.mode #=> String, one of "MULTI_CLASS", "MULTI_LABEL"
1180
+ # resp.document_classifier_properties.model_kms_key_id #=> String
1113
1181
  #
1114
1182
  # @see http://docs.aws.amazon.com/goto/WebAPI/comprehend-2017-11-27/DescribeDocumentClassifier AWS API Documentation
1115
1183
  #
@@ -1191,6 +1259,7 @@ module Aws::Comprehend
1191
1259
  # resp.endpoint_properties.current_inference_units #=> Integer
1192
1260
  # resp.endpoint_properties.creation_time #=> Time
1193
1261
  # resp.endpoint_properties.last_modified_time #=> Time
1262
+ # resp.endpoint_properties.data_access_role_arn #=> String
1194
1263
  #
1195
1264
  # @see http://docs.aws.amazon.com/goto/WebAPI/comprehend-2017-11-27/DescribeEndpoint AWS API Documentation
1196
1265
  #
@@ -1302,6 +1371,7 @@ module Aws::Comprehend
1302
1371
  # resp.entity_recognizer_properties.vpc_config.security_group_ids[0] #=> String
1303
1372
  # resp.entity_recognizer_properties.vpc_config.subnets #=> Array
1304
1373
  # resp.entity_recognizer_properties.vpc_config.subnets[0] #=> String
1374
+ # resp.entity_recognizer_properties.model_kms_key_id #=> String
1305
1375
  #
1306
1376
  # @see http://docs.aws.amazon.com/goto/WebAPI/comprehend-2017-11-27/DescribeEntityRecognizer AWS API Documentation
1307
1377
  #
@@ -1927,6 +1997,7 @@ module Aws::Comprehend
1927
1997
  # resp.document_classifier_properties_list[0].vpc_config.subnets #=> Array
1928
1998
  # resp.document_classifier_properties_list[0].vpc_config.subnets[0] #=> String
1929
1999
  # resp.document_classifier_properties_list[0].mode #=> String, one of "MULTI_CLASS", "MULTI_LABEL"
2000
+ # resp.document_classifier_properties_list[0].model_kms_key_id #=> String
1930
2001
  # resp.next_token #=> String
1931
2002
  #
1932
2003
  # @see http://docs.aws.amazon.com/goto/WebAPI/comprehend-2017-11-27/ListDocumentClassifiers AWS API Documentation
@@ -2046,6 +2117,7 @@ module Aws::Comprehend
2046
2117
  # resp.endpoint_properties_list[0].current_inference_units #=> Integer
2047
2118
  # resp.endpoint_properties_list[0].creation_time #=> Time
2048
2119
  # resp.endpoint_properties_list[0].last_modified_time #=> Time
2120
+ # resp.endpoint_properties_list[0].data_access_role_arn #=> String
2049
2121
  # resp.next_token #=> String
2050
2122
  #
2051
2123
  # @see http://docs.aws.amazon.com/goto/WebAPI/comprehend-2017-11-27/ListEndpoints AWS API Documentation
@@ -2201,6 +2273,7 @@ module Aws::Comprehend
2201
2273
  # resp.entity_recognizer_properties_list[0].vpc_config.security_group_ids[0] #=> String
2202
2274
  # resp.entity_recognizer_properties_list[0].vpc_config.subnets #=> Array
2203
2275
  # resp.entity_recognizer_properties_list[0].vpc_config.subnets[0] #=> String
2276
+ # resp.entity_recognizer_properties_list[0].model_kms_key_id #=> String
2204
2277
  # resp.next_token #=> String
2205
2278
  #
2206
2279
  # @see http://docs.aws.amazon.com/goto/WebAPI/comprehend-2017-11-27/ListEntityRecognizers AWS API Documentation
@@ -3680,7 +3753,7 @@ module Aws::Comprehend
3680
3753
  params: params,
3681
3754
  config: config)
3682
3755
  context[:gem_name] = 'aws-sdk-comprehend'
3683
- context[:gem_version] = '1.43.0'
3756
+ context[:gem_version] = '1.47.0'
3684
3757
  Seahorse::Client::Request.new(handlers, context)
3685
3758
  end
3686
3759
 
@@ -3,7 +3,7 @@
3
3
  # WARNING ABOUT GENERATED CODE
4
4
  #
5
5
  # This file is generated. See the contributing guide for more information:
6
- # https://github.com/aws/aws-sdk-ruby/blob/master/CONTRIBUTING.md
6
+ # https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md
7
7
  #
8
8
  # WARNING ABOUT GENERATED CODE
9
9
 
@@ -46,6 +46,8 @@ module Aws::Comprehend
46
46
  ComprehendEndpointName = Shapes::StringShape.new(name: 'ComprehendEndpointName')
47
47
  ComprehendModelArn = Shapes::StringShape.new(name: 'ComprehendModelArn')
48
48
  ConcurrentModificationException = Shapes::StructureShape.new(name: 'ConcurrentModificationException')
49
+ ContainsPiiEntitiesRequest = Shapes::StructureShape.new(name: 'ContainsPiiEntitiesRequest')
50
+ ContainsPiiEntitiesResponse = Shapes::StructureShape.new(name: 'ContainsPiiEntitiesResponse')
49
51
  CreateDocumentClassifierRequest = Shapes::StructureShape.new(name: 'CreateDocumentClassifierRequest')
50
52
  CreateDocumentClassifierResponse = Shapes::StructureShape.new(name: 'CreateDocumentClassifierResponse')
51
53
  CreateEndpointRequest = Shapes::StructureShape.new(name: 'CreateEndpointRequest')
@@ -122,6 +124,7 @@ module Aws::Comprehend
122
124
  EntitiesDetectionJobProperties = Shapes::StructureShape.new(name: 'EntitiesDetectionJobProperties')
123
125
  EntitiesDetectionJobPropertiesList = Shapes::ListShape.new(name: 'EntitiesDetectionJobPropertiesList')
124
126
  Entity = Shapes::StructureShape.new(name: 'Entity')
127
+ EntityLabel = Shapes::StructureShape.new(name: 'EntityLabel')
125
128
  EntityRecognizerAnnotations = Shapes::StructureShape.new(name: 'EntityRecognizerAnnotations')
126
129
  EntityRecognizerArn = Shapes::StringShape.new(name: 'EntityRecognizerArn')
127
130
  EntityRecognizerAugmentedManifestsList = Shapes::ListShape.new(name: 'EntityRecognizerAugmentedManifestsList')
@@ -191,6 +194,7 @@ module Aws::Comprehend
191
194
  ListOfDetectSyntaxResult = Shapes::ListShape.new(name: 'ListOfDetectSyntaxResult')
192
195
  ListOfDominantLanguages = Shapes::ListShape.new(name: 'ListOfDominantLanguages')
193
196
  ListOfEntities = Shapes::ListShape.new(name: 'ListOfEntities')
197
+ ListOfEntityLabels = Shapes::ListShape.new(name: 'ListOfEntityLabels')
194
198
  ListOfKeyPhrases = Shapes::ListShape.new(name: 'ListOfKeyPhrases')
195
199
  ListOfLabels = Shapes::ListShape.new(name: 'ListOfLabels')
196
200
  ListOfPiiEntities = Shapes::ListShape.new(name: 'ListOfPiiEntities')
@@ -395,6 +399,13 @@ module Aws::Comprehend
395
399
  ConcurrentModificationException.add_member(:message, Shapes::ShapeRef.new(shape: String, location_name: "Message"))
396
400
  ConcurrentModificationException.struct_class = Types::ConcurrentModificationException
397
401
 
402
+ ContainsPiiEntitiesRequest.add_member(:text, Shapes::ShapeRef.new(shape: String, required: true, location_name: "Text"))
403
+ ContainsPiiEntitiesRequest.add_member(:language_code, Shapes::ShapeRef.new(shape: LanguageCode, required: true, location_name: "LanguageCode"))
404
+ ContainsPiiEntitiesRequest.struct_class = Types::ContainsPiiEntitiesRequest
405
+
406
+ ContainsPiiEntitiesResponse.add_member(:labels, Shapes::ShapeRef.new(shape: ListOfEntityLabels, location_name: "Labels"))
407
+ ContainsPiiEntitiesResponse.struct_class = Types::ContainsPiiEntitiesResponse
408
+
398
409
  CreateDocumentClassifierRequest.add_member(:document_classifier_name, Shapes::ShapeRef.new(shape: ComprehendArnName, required: true, location_name: "DocumentClassifierName"))
399
410
  CreateDocumentClassifierRequest.add_member(:data_access_role_arn, Shapes::ShapeRef.new(shape: IamRoleArn, required: true, location_name: "DataAccessRoleArn"))
400
411
  CreateDocumentClassifierRequest.add_member(:tags, Shapes::ShapeRef.new(shape: TagList, location_name: "Tags"))
@@ -405,6 +416,7 @@ module Aws::Comprehend
405
416
  CreateDocumentClassifierRequest.add_member(:volume_kms_key_id, Shapes::ShapeRef.new(shape: KmsKeyId, location_name: "VolumeKmsKeyId"))
406
417
  CreateDocumentClassifierRequest.add_member(:vpc_config, Shapes::ShapeRef.new(shape: VpcConfig, location_name: "VpcConfig"))
407
418
  CreateDocumentClassifierRequest.add_member(:mode, Shapes::ShapeRef.new(shape: DocumentClassifierMode, location_name: "Mode"))
419
+ CreateDocumentClassifierRequest.add_member(:model_kms_key_id, Shapes::ShapeRef.new(shape: KmsKeyId, location_name: "ModelKmsKeyId"))
408
420
  CreateDocumentClassifierRequest.struct_class = Types::CreateDocumentClassifierRequest
409
421
 
410
422
  CreateDocumentClassifierResponse.add_member(:document_classifier_arn, Shapes::ShapeRef.new(shape: DocumentClassifierArn, location_name: "DocumentClassifierArn"))
@@ -415,6 +427,7 @@ module Aws::Comprehend
415
427
  CreateEndpointRequest.add_member(:desired_inference_units, Shapes::ShapeRef.new(shape: InferenceUnitsInteger, required: true, location_name: "DesiredInferenceUnits"))
416
428
  CreateEndpointRequest.add_member(:client_request_token, Shapes::ShapeRef.new(shape: ClientRequestTokenString, location_name: "ClientRequestToken", metadata: {"idempotencyToken"=>true}))
417
429
  CreateEndpointRequest.add_member(:tags, Shapes::ShapeRef.new(shape: TagList, location_name: "Tags"))
430
+ CreateEndpointRequest.add_member(:data_access_role_arn, Shapes::ShapeRef.new(shape: IamRoleArn, location_name: "DataAccessRoleArn"))
418
431
  CreateEndpointRequest.struct_class = Types::CreateEndpointRequest
419
432
 
420
433
  CreateEndpointResponse.add_member(:endpoint_arn, Shapes::ShapeRef.new(shape: ComprehendEndpointArn, location_name: "EndpointArn"))
@@ -428,6 +441,7 @@ module Aws::Comprehend
428
441
  CreateEntityRecognizerRequest.add_member(:language_code, Shapes::ShapeRef.new(shape: LanguageCode, required: true, location_name: "LanguageCode"))
429
442
  CreateEntityRecognizerRequest.add_member(:volume_kms_key_id, Shapes::ShapeRef.new(shape: KmsKeyId, location_name: "VolumeKmsKeyId"))
430
443
  CreateEntityRecognizerRequest.add_member(:vpc_config, Shapes::ShapeRef.new(shape: VpcConfig, location_name: "VpcConfig"))
444
+ CreateEntityRecognizerRequest.add_member(:model_kms_key_id, Shapes::ShapeRef.new(shape: KmsKeyId, location_name: "ModelKmsKeyId"))
431
445
  CreateEntityRecognizerRequest.struct_class = Types::CreateEntityRecognizerRequest
432
446
 
433
447
  CreateEntityRecognizerResponse.add_member(:entity_recognizer_arn, Shapes::ShapeRef.new(shape: EntityRecognizerArn, location_name: "EntityRecognizerArn"))
@@ -617,6 +631,7 @@ module Aws::Comprehend
617
631
  DocumentClassifierProperties.add_member(:volume_kms_key_id, Shapes::ShapeRef.new(shape: KmsKeyId, location_name: "VolumeKmsKeyId"))
618
632
  DocumentClassifierProperties.add_member(:vpc_config, Shapes::ShapeRef.new(shape: VpcConfig, location_name: "VpcConfig"))
619
633
  DocumentClassifierProperties.add_member(:mode, Shapes::ShapeRef.new(shape: DocumentClassifierMode, location_name: "Mode"))
634
+ DocumentClassifierProperties.add_member(:model_kms_key_id, Shapes::ShapeRef.new(shape: KmsKeyId, location_name: "ModelKmsKeyId"))
620
635
  DocumentClassifierProperties.struct_class = Types::DocumentClassifierProperties
621
636
 
622
637
  DocumentClassifierPropertiesList.member = Shapes::ShapeRef.new(shape: DocumentClassifierProperties)
@@ -664,6 +679,7 @@ module Aws::Comprehend
664
679
  EndpointProperties.add_member(:current_inference_units, Shapes::ShapeRef.new(shape: InferenceUnitsInteger, location_name: "CurrentInferenceUnits"))
665
680
  EndpointProperties.add_member(:creation_time, Shapes::ShapeRef.new(shape: Timestamp, location_name: "CreationTime"))
666
681
  EndpointProperties.add_member(:last_modified_time, Shapes::ShapeRef.new(shape: Timestamp, location_name: "LastModifiedTime"))
682
+ EndpointProperties.add_member(:data_access_role_arn, Shapes::ShapeRef.new(shape: IamRoleArn, location_name: "DataAccessRoleArn"))
667
683
  EndpointProperties.struct_class = Types::EndpointProperties
668
684
 
669
685
  EndpointPropertiesList.member = Shapes::ShapeRef.new(shape: EndpointProperties)
@@ -698,6 +714,10 @@ module Aws::Comprehend
698
714
  Entity.add_member(:end_offset, Shapes::ShapeRef.new(shape: Integer, location_name: "EndOffset"))
699
715
  Entity.struct_class = Types::Entity
700
716
 
717
+ EntityLabel.add_member(:name, Shapes::ShapeRef.new(shape: PiiEntityType, location_name: "Name"))
718
+ EntityLabel.add_member(:score, Shapes::ShapeRef.new(shape: Float, location_name: "Score"))
719
+ EntityLabel.struct_class = Types::EntityLabel
720
+
701
721
  EntityRecognizerAnnotations.add_member(:s3_uri, Shapes::ShapeRef.new(shape: S3Uri, required: true, location_name: "S3Uri"))
702
722
  EntityRecognizerAnnotations.struct_class = Types::EntityRecognizerAnnotations
703
723
 
@@ -753,6 +773,7 @@ module Aws::Comprehend
753
773
  EntityRecognizerProperties.add_member(:data_access_role_arn, Shapes::ShapeRef.new(shape: IamRoleArn, location_name: "DataAccessRoleArn"))
754
774
  EntityRecognizerProperties.add_member(:volume_kms_key_id, Shapes::ShapeRef.new(shape: KmsKeyId, location_name: "VolumeKmsKeyId"))
755
775
  EntityRecognizerProperties.add_member(:vpc_config, Shapes::ShapeRef.new(shape: VpcConfig, location_name: "VpcConfig"))
776
+ EntityRecognizerProperties.add_member(:model_kms_key_id, Shapes::ShapeRef.new(shape: KmsKeyId, location_name: "ModelKmsKeyId"))
756
777
  EntityRecognizerProperties.struct_class = Types::EntityRecognizerProperties
757
778
 
758
779
  EntityRecognizerPropertiesList.member = Shapes::ShapeRef.new(shape: EntityRecognizerProperties)
@@ -923,6 +944,8 @@ module Aws::Comprehend
923
944
 
924
945
  ListOfEntities.member = Shapes::ShapeRef.new(shape: Entity)
925
946
 
947
+ ListOfEntityLabels.member = Shapes::ShapeRef.new(shape: EntityLabel)
948
+
926
949
  ListOfKeyPhrases.member = Shapes::ShapeRef.new(shape: KeyPhrase)
927
950
 
928
951
  ListOfLabels.member = Shapes::ShapeRef.new(shape: DocumentLabel)
@@ -1390,6 +1413,18 @@ module Aws::Comprehend
1390
1413
  o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
1391
1414
  end)
1392
1415
 
1416
+ api.add_operation(:contains_pii_entities, Seahorse::Model::Operation.new.tap do |o|
1417
+ o.name = "ContainsPiiEntities"
1418
+ o.http_method = "POST"
1419
+ o.http_request_uri = "/"
1420
+ o.input = Shapes::ShapeRef.new(shape: ContainsPiiEntitiesRequest)
1421
+ o.output = Shapes::ShapeRef.new(shape: ContainsPiiEntitiesResponse)
1422
+ o.errors << Shapes::ShapeRef.new(shape: InvalidRequestException)
1423
+ o.errors << Shapes::ShapeRef.new(shape: TextSizeLimitExceededException)
1424
+ o.errors << Shapes::ShapeRef.new(shape: UnsupportedLanguageException)
1425
+ o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
1426
+ end)
1427
+
1393
1428
  api.add_operation(:create_document_classifier, Seahorse::Model::Operation.new.tap do |o|
1394
1429
  o.name = "CreateDocumentClassifier"
1395
1430
  o.http_method = "POST"
@@ -3,7 +3,7 @@
3
3
  # WARNING ABOUT GENERATED CODE
4
4
  #
5
5
  # This file is generated. See the contributing guide for more information:
6
- # https://github.com/aws/aws-sdk-ruby/blob/master/CONTRIBUTING.md
6
+ # https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md
7
7
  #
8
8
  # WARNING ABOUT GENERATED CODE
9
9
 
@@ -3,7 +3,7 @@
3
3
  # WARNING ABOUT GENERATED CODE
4
4
  #
5
5
  # This file is generated. See the contributing guide for more information:
6
- # https://github.com/aws/aws-sdk-ruby/blob/master/CONTRIBUTING.md
6
+ # https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md
7
7
  #
8
8
  # WARNING ABOUT GENERATED CODE
9
9
 
@@ -3,7 +3,7 @@
3
3
  # WARNING ABOUT GENERATED CODE
4
4
  #
5
5
  # This file is generated. See the contributing guide for more information:
6
- # https://github.com/aws/aws-sdk-ruby/blob/master/CONTRIBUTING.md
6
+ # https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md
7
7
  #
8
8
  # WARNING ABOUT GENERATED CODE
9
9
 
@@ -632,6 +632,46 @@ module Aws::Comprehend
632
632
  include Aws::Structure
633
633
  end
634
634
 
635
+ # @note When making an API call, you may pass ContainsPiiEntitiesRequest
636
+ # data as a hash:
637
+ #
638
+ # {
639
+ # text: "String", # required
640
+ # language_code: "en", # required, accepts en, es, fr, de, it, pt, ar, hi, ja, ko, zh, zh-TW
641
+ # }
642
+ #
643
+ # @!attribute [rw] text
644
+ # Creates a new document classification request to analyze a single
645
+ # document in real-time, returning personally identifiable information
646
+ # (PII) entity labels.
647
+ # @return [String]
648
+ #
649
+ # @!attribute [rw] language_code
650
+ # The language of the input documents.
651
+ # @return [String]
652
+ #
653
+ # @see http://docs.aws.amazon.com/goto/WebAPI/comprehend-2017-11-27/ContainsPiiEntitiesRequest AWS API Documentation
654
+ #
655
+ class ContainsPiiEntitiesRequest < Struct.new(
656
+ :text,
657
+ :language_code)
658
+ SENSITIVE = []
659
+ include Aws::Structure
660
+ end
661
+
662
+ # @!attribute [rw] labels
663
+ # The labels used in the document being analyzed. Individual labels
664
+ # represent personally identifiable information (PII) entity types.
665
+ # @return [Array<Types::EntityLabel>]
666
+ #
667
+ # @see http://docs.aws.amazon.com/goto/WebAPI/comprehend-2017-11-27/ContainsPiiEntitiesResponse AWS API Documentation
668
+ #
669
+ class ContainsPiiEntitiesResponse < Struct.new(
670
+ :labels)
671
+ SENSITIVE = []
672
+ include Aws::Structure
673
+ end
674
+
635
675
  # @note When making an API call, you may pass CreateDocumentClassifierRequest
636
676
  # data as a hash:
637
677
  #
@@ -667,6 +707,7 @@ module Aws::Comprehend
667
707
  # subnets: ["SubnetId"], # required
668
708
  # },
669
709
  # mode: "MULTI_CLASS", # accepts MULTI_CLASS, MULTI_LABEL
710
+ # model_kms_key_id: "KmsKeyId",
670
711
  # }
671
712
  #
672
713
  # @!attribute [rw] document_classifier_name
@@ -743,6 +784,17 @@ module Aws::Comprehend
743
784
  # delimiter. The default delimiter between labels is a pipe (\|).
744
785
  # @return [String]
745
786
  #
787
+ # @!attribute [rw] model_kms_key_id
788
+ # ID for the AWS Key Management Service (KMS) key that Amazon
789
+ # Comprehend uses to encrypt trained custom models. The ModelKmsKeyId
790
+ # can be either of the following formats:
791
+ #
792
+ # * KMS Key ID: `"1234abcd-12ab-34cd-56ef-1234567890ab"`
793
+ #
794
+ # * Amazon Resource Name (ARN) of a KMS Key:
795
+ # `"arn:aws:kms:us-west-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab"`
796
+ # @return [String]
797
+ #
746
798
  # @see http://docs.aws.amazon.com/goto/WebAPI/comprehend-2017-11-27/CreateDocumentClassifierRequest AWS API Documentation
747
799
  #
748
800
  class CreateDocumentClassifierRequest < Struct.new(
@@ -755,7 +807,8 @@ module Aws::Comprehend
755
807
  :language_code,
756
808
  :volume_kms_key_id,
757
809
  :vpc_config,
758
- :mode)
810
+ :mode,
811
+ :model_kms_key_id)
759
812
  SENSITIVE = []
760
813
  include Aws::Structure
761
814
  end
@@ -787,6 +840,7 @@ module Aws::Comprehend
787
840
  # value: "TagValue",
788
841
  # },
789
842
  # ],
843
+ # data_access_role_arn: "IamRoleArn",
790
844
  # }
791
845
  #
792
846
  # @!attribute [rw] endpoint_name
@@ -821,6 +875,13 @@ module Aws::Comprehend
821
875
  # indicate its use by the sales department.
822
876
  # @return [Array<Types::Tag>]
823
877
  #
878
+ # @!attribute [rw] data_access_role_arn
879
+ # The Amazon Resource Name (ARN) of the AWS identity and Access
880
+ # Management (IAM) role that grants Amazon Comprehend read access to
881
+ # trained custom models encrypted with a customer managed key
882
+ # (ModelKmsKeyId).
883
+ # @return [String]
884
+ #
824
885
  # @see http://docs.aws.amazon.com/goto/WebAPI/comprehend-2017-11-27/CreateEndpointRequest AWS API Documentation
825
886
  #
826
887
  class CreateEndpointRequest < Struct.new(
@@ -828,7 +889,8 @@ module Aws::Comprehend
828
889
  :model_arn,
829
890
  :desired_inference_units,
830
891
  :client_request_token,
831
- :tags)
892
+ :tags,
893
+ :data_access_role_arn)
832
894
  SENSITIVE = []
833
895
  include Aws::Structure
834
896
  end
@@ -887,6 +949,7 @@ module Aws::Comprehend
887
949
  # security_group_ids: ["SecurityGroupId"], # required
888
950
  # subnets: ["SubnetId"], # required
889
951
  # },
952
+ # model_kms_key_id: "KmsKeyId",
890
953
  # }
891
954
  #
892
955
  # @!attribute [rw] recognizer_name
@@ -953,6 +1016,17 @@ module Aws::Comprehend
953
1016
  # [1]: https://docs.aws.amazon.com/vpc/latest/userguide/what-is-amazon-vpc.html
954
1017
  # @return [Types::VpcConfig]
955
1018
  #
1019
+ # @!attribute [rw] model_kms_key_id
1020
+ # ID for the AWS Key Management Service (KMS) key that Amazon
1021
+ # Comprehend uses to encrypt trained custom models. The ModelKmsKeyId
1022
+ # can be either of the following formats
1023
+ #
1024
+ # * KMS Key ID: `"1234abcd-12ab-34cd-56ef-1234567890ab"`
1025
+ #
1026
+ # * Amazon Resource Name (ARN) of a KMS Key:
1027
+ # `"arn:aws:kms:us-west-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab"`
1028
+ # @return [String]
1029
+ #
956
1030
  # @see http://docs.aws.amazon.com/goto/WebAPI/comprehend-2017-11-27/CreateEntityRecognizerRequest AWS API Documentation
957
1031
  #
958
1032
  class CreateEntityRecognizerRequest < Struct.new(
@@ -963,7 +1037,8 @@ module Aws::Comprehend
963
1037
  :client_request_token,
964
1038
  :language_code,
965
1039
  :volume_kms_key_id,
966
- :vpc_config)
1040
+ :vpc_config,
1041
+ :model_kms_key_id)
967
1042
  SENSITIVE = []
968
1043
  include Aws::Structure
969
1044
  end
@@ -2120,6 +2195,17 @@ module Aws::Comprehend
2120
2195
  # mode and this cannot be changed once the classifier is trained.
2121
2196
  # @return [String]
2122
2197
  #
2198
+ # @!attribute [rw] model_kms_key_id
2199
+ # ID for the AWS Key Management Service (KMS) key that Amazon
2200
+ # Comprehend uses to encrypt trained custom models. The ModelKmsKeyId
2201
+ # can be either of the following formats:
2202
+ #
2203
+ # * KMS Key ID: `"1234abcd-12ab-34cd-56ef-1234567890ab"`
2204
+ #
2205
+ # * Amazon Resource Name (ARN) of a KMS Key:
2206
+ # `"arn:aws:kms:us-west-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab"`
2207
+ # @return [String]
2208
+ #
2123
2209
  # @see http://docs.aws.amazon.com/goto/WebAPI/comprehend-2017-11-27/DocumentClassifierProperties AWS API Documentation
2124
2210
  #
2125
2211
  class DocumentClassifierProperties < Struct.new(
@@ -2137,7 +2223,8 @@ module Aws::Comprehend
2137
2223
  :data_access_role_arn,
2138
2224
  :volume_kms_key_id,
2139
2225
  :vpc_config,
2140
- :mode)
2226
+ :mode,
2227
+ :model_kms_key_id)
2141
2228
  SENSITIVE = [:classifier_metadata]
2142
2229
  include Aws::Structure
2143
2230
  end
@@ -2407,6 +2494,13 @@ module Aws::Comprehend
2407
2494
  # The date and time that the endpoint was last modified.
2408
2495
  # @return [Time]
2409
2496
  #
2497
+ # @!attribute [rw] data_access_role_arn
2498
+ # The Amazon Resource Name (ARN) of the AWS identity and Access
2499
+ # Management (IAM) role that grants Amazon Comprehend read access to
2500
+ # trained custom models encrypted with a customer managed key
2501
+ # (ModelKmsKeyId).
2502
+ # @return [String]
2503
+ #
2410
2504
  # @see http://docs.aws.amazon.com/goto/WebAPI/comprehend-2017-11-27/EndpointProperties AWS API Documentation
2411
2505
  #
2412
2506
  class EndpointProperties < Struct.new(
@@ -2417,7 +2511,8 @@ module Aws::Comprehend
2417
2511
  :desired_inference_units,
2418
2512
  :current_inference_units,
2419
2513
  :creation_time,
2420
- :last_modified_time)
2514
+ :last_modified_time,
2515
+ :data_access_role_arn)
2421
2516
  SENSITIVE = []
2422
2517
  include Aws::Structure
2423
2518
  end
@@ -2607,6 +2702,27 @@ module Aws::Comprehend
2607
2702
  include Aws::Structure
2608
2703
  end
2609
2704
 
2705
+ # Specifies one of the label or labels that categorize the personally
2706
+ # identifiable information (PII) entity being analyzed.
2707
+ #
2708
+ # @!attribute [rw] name
2709
+ # The name of the label.
2710
+ # @return [String]
2711
+ #
2712
+ # @!attribute [rw] score
2713
+ # The level of confidence that Amazon Comprehend has in the accuracy
2714
+ # of the detection.
2715
+ # @return [Float]
2716
+ #
2717
+ # @see http://docs.aws.amazon.com/goto/WebAPI/comprehend-2017-11-27/EntityLabel AWS API Documentation
2718
+ #
2719
+ class EntityLabel < Struct.new(
2720
+ :name,
2721
+ :score)
2722
+ SENSITIVE = []
2723
+ include Aws::Structure
2724
+ end
2725
+
2610
2726
  # Describes the annotations associated with a entity recognizer.
2611
2727
  #
2612
2728
  # @note When making an API call, you may pass EntityRecognizerAnnotations
@@ -2989,6 +3105,17 @@ module Aws::Comprehend
2989
3105
  # [1]: https://docs.aws.amazon.com/vpc/latest/userguide/what-is-amazon-vpc.html
2990
3106
  # @return [Types::VpcConfig]
2991
3107
  #
3108
+ # @!attribute [rw] model_kms_key_id
3109
+ # ID for the AWS Key Management Service (KMS) key that Amazon
3110
+ # Comprehend uses to encrypt trained custom models. The ModelKmsKeyId
3111
+ # can be either of the following formats:
3112
+ #
3113
+ # * KMS Key ID: `"1234abcd-12ab-34cd-56ef-1234567890ab"`
3114
+ #
3115
+ # * Amazon Resource Name (ARN) of a KMS Key:
3116
+ # `"arn:aws:kms:us-west-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab"`
3117
+ # @return [String]
3118
+ #
2992
3119
  # @see http://docs.aws.amazon.com/goto/WebAPI/comprehend-2017-11-27/EntityRecognizerProperties AWS API Documentation
2993
3120
  #
2994
3121
  class EntityRecognizerProperties < Struct.new(
@@ -3004,7 +3131,8 @@ module Aws::Comprehend
3004
3131
  :recognizer_metadata,
3005
3132
  :data_access_role_arn,
3006
3133
  :volume_kms_key_id,
3007
- :vpc_config)
3134
+ :vpc_config,
3135
+ :model_kms_key_id)
3008
3136
  SENSITIVE = [:recognizer_metadata]
3009
3137
  include Aws::Structure
3010
3138
  end
@@ -6167,11 +6295,9 @@ module Aws::Comprehend
6167
6295
  end
6168
6296
 
6169
6297
  # Amazon Comprehend can't process the language of the input text. For
6170
- # all custom entity recognition APIs (such as `CreateEntityRecognizer`),
6171
- # only English, Spanish, French, Italian, German, or Portuguese are
6172
- # accepted. For most other APIs, such as those for Custom
6173
- # Classification, Amazon Comprehend accepts text in all supported
6174
- # languages. For a list of supported languages, see supported-languages.
6298
+ # custom entity recognition APIs, only English, Spanish, French,
6299
+ # Italian, German, or Portuguese are accepted. For a list of supported
6300
+ # languages, see supported-languages.
6175
6301
  #
6176
6302
  # @!attribute [rw] message
6177
6303
  # @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.43.0
4
+ version: 1.47.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: 2021-02-02 00:00:00.000000000 Z
11
+ date: 2021-07-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: aws-sdk-core
@@ -19,7 +19,7 @@ dependencies:
19
19
  version: '3'
20
20
  - - ">="
21
21
  - !ruby/object:Gem::Version
22
- version: 3.112.0
22
+ version: 3.118.0
23
23
  type: :runtime
24
24
  prerelease: false
25
25
  version_requirements: !ruby/object:Gem::Requirement
@@ -29,7 +29,7 @@ dependencies:
29
29
  version: '3'
30
30
  - - ">="
31
31
  - !ruby/object:Gem::Version
32
- version: 3.112.0
32
+ version: 3.118.0
33
33
  - !ruby/object:Gem::Dependency
34
34
  name: aws-sigv4
35
35
  requirement: !ruby/object:Gem::Requirement
@@ -47,11 +47,14 @@ dependencies:
47
47
  description: Official AWS Ruby gem for Amazon Comprehend. This gem is part of the
48
48
  AWS SDK for Ruby.
49
49
  email:
50
- - trevrowe@amazon.com
50
+ - aws-dr-rubygems@amazon.com
51
51
  executables: []
52
52
  extensions: []
53
53
  extra_rdoc_files: []
54
54
  files:
55
+ - CHANGELOG.md
56
+ - LICENSE.txt
57
+ - VERSION
55
58
  - lib/aws-sdk-comprehend.rb
56
59
  - lib/aws-sdk-comprehend/client.rb
57
60
  - lib/aws-sdk-comprehend/client_api.rb
@@ -63,8 +66,8 @@ homepage: https://github.com/aws/aws-sdk-ruby
63
66
  licenses:
64
67
  - Apache-2.0
65
68
  metadata:
66
- source_code_uri: https://github.com/aws/aws-sdk-ruby/tree/master/gems/aws-sdk-comprehend
67
- changelog_uri: https://github.com/aws/aws-sdk-ruby/tree/master/gems/aws-sdk-comprehend/CHANGELOG.md
69
+ source_code_uri: https://github.com/aws/aws-sdk-ruby/tree/version-3/gems/aws-sdk-comprehend
70
+ changelog_uri: https://github.com/aws/aws-sdk-ruby/tree/version-3/gems/aws-sdk-comprehend/CHANGELOG.md
68
71
  post_install_message:
69
72
  rdoc_options: []
70
73
  require_paths:
@@ -80,8 +83,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
80
83
  - !ruby/object:Gem::Version
81
84
  version: '0'
82
85
  requirements: []
83
- rubyforge_project:
84
- rubygems_version: 2.7.6.2
86
+ rubygems_version: 3.1.6
85
87
  signing_key:
86
88
  specification_version: 4
87
89
  summary: AWS SDK for Ruby - Amazon Comprehend