aws-sdk-kendra 1.19.0 → 1.24.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: 27025edb758f765772fdad0d00fbac9bc77db5476e1142aaed59814631b0b84e
4
- data.tar.gz: 49fd84b84696847381dc9f54d521c2feb98ae5fdd112e5e3c64c3a02e465908e
3
+ metadata.gz: f3cba49ab0bd0ebf0402ed5cfa575f7974f0cc2237808f474615a3d2bbc09ce6
4
+ data.tar.gz: 8cab555f2b156c2997cc48c51d7a85f76ed74b255ec013d5fdf01860ba4e31da
5
5
  SHA512:
6
- metadata.gz: 1b81863b3388684a2f0b21590fae0c70cdd1c9b13c5487102174a365287e85a3e9b4cef76dceb9f0c55283167a01be137ee3279d8da007a663e8c1c88cf9a01c
7
- data.tar.gz: 9aa3b59165778e48e1e6d4640019a612248dd68f305bc16c053dc0b2050f87980566a91078f1e0393d606c7297e7742d51ef892eae121143aff78460dadb5379
6
+ metadata.gz: 4476c80222605da34edc81d2cfc7efe2209a574c067bace3c9bf23a872c37bc100fa34d2e75934db17c6c3ca532a659cf5be21d1ba85e610768c05266aafaaad
7
+ data.tar.gz: 59a7170b16fea52f95bc57e0f9be6ebdb411f9d05ed444f7811ed9ddf41f5ac6d7d375c3cc0e7649c0d7d145839349a184169549494ea0fe7f0ece5db2affb38
data/CHANGELOG.md ADDED
@@ -0,0 +1,133 @@
1
+ Unreleased Changes
2
+ ------------------
3
+
4
+ 1.24.0 (2021-04-21)
5
+ ------------------
6
+
7
+ * Feature - Amazon Kendra now enables users to override index-level boosting configurations for each query.
8
+
9
+ 1.23.0 (2021-04-01)
10
+ ------------------
11
+
12
+ * Feature - AWS Kendra's ServiceNow data source now supports OAuth 2.0 authentication and knowledge article filtering via a ServiceNow query.
13
+
14
+ 1.22.0 (2021-03-10)
15
+ ------------------
16
+
17
+ * Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
18
+
19
+ 1.21.0 (2021-02-02)
20
+ ------------------
21
+
22
+ * Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
23
+
24
+ 1.20.0 (2020-12-10)
25
+ ------------------
26
+
27
+ * Feature - Amazon Kendra now supports adding synonyms to an index through the new Thesaurus resource.
28
+
29
+ 1.19.0 (2020-12-08)
30
+ ------------------
31
+
32
+ * Feature - 1. Amazon Kendra connector for Google Drive repositories 2. Amazon Kendra's relevance ranking models are regularly tuned for each customer by capturing end-user search patterns and feedback.
33
+
34
+ 1.18.0 (2020-11-05)
35
+ ------------------
36
+
37
+ * Feature - Amazon Kendra now supports providing user context in your query requests, Tokens can be JSON or JWT format. This release also introduces support for Confluence cloud datasources.
38
+
39
+ 1.17.0 (2020-10-26)
40
+ ------------------
41
+
42
+ * Feature - Amazon Kendra now supports indexing data from Confluence Server.
43
+
44
+ 1.16.0 (2020-10-21)
45
+ ------------------
46
+
47
+ * Feature - This release adds custom data sources: a new data source type that gives you full control of the documents added, modified or deleted during a data source sync while providing run history metrics.
48
+
49
+ 1.15.0 (2020-10-21)
50
+ ------------------
51
+
52
+ * Feature - This release adds custom data sources: a new data source type that gives you full control of the documents added, modified or deleted during a data source sync while providing run history metrics.
53
+
54
+ 1.14.0 (2020-09-30)
55
+ ------------------
56
+
57
+ * Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
58
+
59
+ 1.13.0 (2020-09-17)
60
+ ------------------
61
+
62
+ * Feature - Amazon Kendra now supports additional file formats and metadata for FAQs.
63
+
64
+ 1.12.0 (2020-09-15)
65
+ ------------------
66
+
67
+ * Feature - Amazon Kendra now returns confidence scores for 'document' query responses.
68
+
69
+ 1.11.0 (2020-09-03)
70
+ ------------------
71
+
72
+ * Feature - Amazon Kendra now returns confidence scores for both 'answer' and 'question and answer' query responses.
73
+
74
+ 1.10.0 (2020-08-25)
75
+ ------------------
76
+
77
+ * Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
78
+
79
+ 1.9.0 (2020-07-24)
80
+ ------------------
81
+
82
+ * Feature - Amazon Kendra now supports sorting query results based on document attributes. Amazon Kendra also introduced an option to enclose table and column names with double quotes for database data sources.
83
+
84
+ 1.8.0 (2020-06-23)
85
+ ------------------
86
+
87
+ * Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
88
+
89
+ 1.7.1 (2020-06-11)
90
+ ------------------
91
+
92
+ * Issue - Republish previous version with correct dependency on `aws-sdk-core`.
93
+
94
+ 1.7.0 (2020-06-10)
95
+ ------------------
96
+
97
+ * Issue - This version has been yanked. (#2327).
98
+ * Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
99
+
100
+ 1.6.0 (2020-05-28)
101
+ ------------------
102
+
103
+ * Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
104
+
105
+ 1.5.0 (2020-05-11)
106
+ ------------------
107
+
108
+ * Feature - Amazon Kendra is now generally available. As part of general availability, we are launching * Developer edition * Ability to scale your Amazon Kendra index with capacity units * Support for new connectors * Support for new tagging API's * Support for Deleting data source * Metrics for data source sync operations * Metrics for query & storage utilization
109
+
110
+ 1.4.0 (2020-05-07)
111
+ ------------------
112
+
113
+ * Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
114
+
115
+ 1.3.0 (2020-03-27)
116
+ ------------------
117
+
118
+ * Feature - The Amazon Kendra Microsoft SharePoint data source now supports include and exclude regular expressions and change log features. Include and exclude regular expressions enable you to provide a list of regular expressions to match the display URL of SharePoint documents to either include or exclude documents respectively. When you enable the changelog feature it enables Amazon Kendra to use the SharePoint change log to determine which documents to update in the index.
119
+
120
+ 1.2.0 (2020-03-09)
121
+ ------------------
122
+
123
+ * Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
124
+
125
+ 1.1.0 (2019-12-10)
126
+ ------------------
127
+
128
+ * Feature - 1. Adding DocumentTitleFieldName as an optional configuration for SharePoint. 2. updating s3 object pattern to support all s3 keys.
129
+
130
+ 1.0.0 (2019-12-03)
131
+ ------------------
132
+
133
+ * Feature - Initial release of `aws-sdk-kendra`.
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.24.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-kendra/customizations'
48
48
  # @!group service
49
49
  module Aws::Kendra
50
50
 
51
- GEM_VERSION = '1.19.0'
51
+ GEM_VERSION = '1.24.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
 
@@ -338,10 +338,10 @@ module Aws::Kendra
338
338
  # @!group API Operations
339
339
 
340
340
  # Removes one or more documents from an index. The documents must have
341
- # been added with the BatchPutDocument operation.
341
+ # been added with the `BatchPutDocument` operation.
342
342
  #
343
343
  # The documents are deleted asynchronously. You can see the progress of
344
- # the deletion by using AWS CloudWatch. Any error messages releated to
344
+ # the deletion by using AWS CloudWatch. Any error messages related to
345
345
  # the processing of the batch are sent to you CloudWatch log.
346
346
  #
347
347
  # @option params [required, String] :index_id
@@ -398,7 +398,7 @@ module Aws::Kendra
398
398
  #
399
399
  # @option params [required, String] :index_id
400
400
  # The identifier of the index to add the documents to. You need to
401
- # create the index first using the CreateIndex operation.
401
+ # create the index first using the `CreateIndex` operation.
402
402
  #
403
403
  # @option params [String] :role_arn
404
404
  # The Amazon Resource Name (ARN) of a role that is allowed to run the
@@ -744,6 +744,7 @@ module Aws::Kendra
744
744
  # index_field_name: "IndexFieldName", # required
745
745
  # },
746
746
  # ],
747
+ # filter_query: "ServiceNowKnowledgeArticleFilterQuery",
747
748
  # },
748
749
  # service_catalog_configuration: {
749
750
  # crawl_attachments: false,
@@ -759,6 +760,7 @@ module Aws::Kendra
759
760
  # },
760
761
  # ],
761
762
  # },
763
+ # authentication_type: "HTTP_BASIC", # accepts HTTP_BASIC, OAUTH2
762
764
  # },
763
765
  # confluence_configuration: {
764
766
  # server_url: "Url", # required
@@ -944,11 +946,12 @@ module Aws::Kendra
944
946
 
945
947
  # Creates a new Amazon Kendra index. Index creation is an asynchronous
946
948
  # operation. To determine if index creation has completed, check the
947
- # `Status` field returned from a call to . The `Status` field is set to
948
- # `ACTIVE` when the index is ready to use.
949
+ # `Status` field returned from a call to `DescribeIndex`. The `Status`
950
+ # field is set to `ACTIVE` when the index is ready to use.
949
951
  #
950
952
  # Once the index is active you can index your documents using the
951
- # operation or using one of the supported data sources.
953
+ # `BatchPutDocument` operation or using one of the supported data
954
+ # sources.
952
955
  #
953
956
  # @option params [required, String] :name
954
957
  # The name for the new index.
@@ -1062,11 +1065,81 @@ module Aws::Kendra
1062
1065
  req.send_request(options)
1063
1066
  end
1064
1067
 
1068
+ # Creates a thesaurus for an index. The thesaurus contains a list of
1069
+ # synonyms in Solr format.
1070
+ #
1071
+ # @option params [required, String] :index_id
1072
+ # The unique identifier of the index for the new thesaurus.
1073
+ #
1074
+ # @option params [required, String] :name
1075
+ # The name for the new thesaurus.
1076
+ #
1077
+ # @option params [String] :description
1078
+ # The description for the new thesaurus.
1079
+ #
1080
+ # @option params [required, String] :role_arn
1081
+ # An AWS Identity and Access Management (IAM) role that gives Amazon
1082
+ # Kendra permissions to access thesaurus file specified in
1083
+ # `SourceS3Path`.
1084
+ #
1085
+ # @option params [Array<Types::Tag>] :tags
1086
+ # A list of key-value pairs that identify the thesaurus. You can use the
1087
+ # tags to identify and organize your resources and to control access to
1088
+ # resources.
1089
+ #
1090
+ # @option params [required, Types::S3Path] :source_s3_path
1091
+ # The thesaurus file Amazon S3 source path.
1092
+ #
1093
+ # @option params [String] :client_token
1094
+ # A token that you provide to identify the request to create a
1095
+ # thesaurus. Multiple calls to the `CreateThesaurus` operation with the
1096
+ # same client token will create only one index.
1097
+ #
1098
+ # **A suitable default value is auto-generated.** You should normally
1099
+ # not need to pass this option.**
1100
+ #
1101
+ # @return [Types::CreateThesaurusResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
1102
+ #
1103
+ # * {Types::CreateThesaurusResponse#id #id} => String
1104
+ #
1105
+ # @example Request syntax with placeholder values
1106
+ #
1107
+ # resp = client.create_thesaurus({
1108
+ # index_id: "IndexId", # required
1109
+ # name: "ThesaurusName", # required
1110
+ # description: "Description",
1111
+ # role_arn: "RoleArn", # required
1112
+ # tags: [
1113
+ # {
1114
+ # key: "TagKey", # required
1115
+ # value: "TagValue", # required
1116
+ # },
1117
+ # ],
1118
+ # source_s3_path: { # required
1119
+ # bucket: "S3BucketName", # required
1120
+ # key: "S3ObjectKey", # required
1121
+ # },
1122
+ # client_token: "ClientTokenName",
1123
+ # })
1124
+ #
1125
+ # @example Response structure
1126
+ #
1127
+ # resp.id #=> String
1128
+ #
1129
+ # @see http://docs.aws.amazon.com/goto/WebAPI/kendra-2019-02-03/CreateThesaurus AWS API Documentation
1130
+ #
1131
+ # @overload create_thesaurus(params = {})
1132
+ # @param [Hash] params ({})
1133
+ def create_thesaurus(params = {}, options = {})
1134
+ req = build_request(:create_thesaurus, params)
1135
+ req.send_request(options)
1136
+ end
1137
+
1065
1138
  # Deletes an Amazon Kendra data source. An exception is not thrown if
1066
1139
  # the data source is already being deleted. While the data source is
1067
- # being deleted, the `Status` field returned by a call to the operation
1068
- # is set to `DELETING`. For more information, see [Deleting Data
1069
- # Sources][1].
1140
+ # being deleted, the `Status` field returned by a call to the
1141
+ # `DescribeDataSource` operation is set to `DELETING`. For more
1142
+ # information, see [Deleting Data Sources][1].
1070
1143
  #
1071
1144
  #
1072
1145
  #
@@ -1124,7 +1197,7 @@ module Aws::Kendra
1124
1197
 
1125
1198
  # Deletes an existing Amazon Kendra index. An exception is not thrown if
1126
1199
  # the index is already being deleted. While the index is being deleted,
1127
- # the `Status` field returned by a call to the DescribeIndex operation
1200
+ # the `Status` field returned by a call to the `DescribeIndex` operation
1128
1201
  # is set to `DELETING`.
1129
1202
  #
1130
1203
  # @option params [required, String] :id
@@ -1147,6 +1220,32 @@ module Aws::Kendra
1147
1220
  req.send_request(options)
1148
1221
  end
1149
1222
 
1223
+ # Deletes an existing Amazon Kendra thesaurus.
1224
+ #
1225
+ # @option params [required, String] :id
1226
+ # The identifier of the thesaurus to delete.
1227
+ #
1228
+ # @option params [required, String] :index_id
1229
+ # The identifier of the index associated with the thesaurus to delete.
1230
+ #
1231
+ # @return [Struct] Returns an empty {Seahorse::Client::Response response}.
1232
+ #
1233
+ # @example Request syntax with placeholder values
1234
+ #
1235
+ # resp = client.delete_thesaurus({
1236
+ # id: "ThesaurusId", # required
1237
+ # index_id: "IndexId", # required
1238
+ # })
1239
+ #
1240
+ # @see http://docs.aws.amazon.com/goto/WebAPI/kendra-2019-02-03/DeleteThesaurus AWS API Documentation
1241
+ #
1242
+ # @overload delete_thesaurus(params = {})
1243
+ # @param [Hash] params ({})
1244
+ def delete_thesaurus(params = {}, options = {})
1245
+ req = build_request(:delete_thesaurus, params)
1246
+ req.send_request(options)
1247
+ end
1248
+
1150
1249
  # Gets information about a Amazon Kendra data source.
1151
1250
  #
1152
1251
  # @option params [required, String] :id
@@ -1306,6 +1405,7 @@ module Aws::Kendra
1306
1405
  # resp.configuration.service_now_configuration.knowledge_article_configuration.field_mappings[0].data_source_field_name #=> String
1307
1406
  # resp.configuration.service_now_configuration.knowledge_article_configuration.field_mappings[0].date_field_format #=> String
1308
1407
  # resp.configuration.service_now_configuration.knowledge_article_configuration.field_mappings[0].index_field_name #=> String
1408
+ # resp.configuration.service_now_configuration.knowledge_article_configuration.filter_query #=> String
1309
1409
  # resp.configuration.service_now_configuration.service_catalog_configuration.crawl_attachments #=> Boolean
1310
1410
  # resp.configuration.service_now_configuration.service_catalog_configuration.include_attachment_file_patterns #=> Array
1311
1411
  # resp.configuration.service_now_configuration.service_catalog_configuration.include_attachment_file_patterns[0] #=> String
@@ -1317,6 +1417,7 @@ module Aws::Kendra
1317
1417
  # resp.configuration.service_now_configuration.service_catalog_configuration.field_mappings[0].data_source_field_name #=> String
1318
1418
  # resp.configuration.service_now_configuration.service_catalog_configuration.field_mappings[0].date_field_format #=> String
1319
1419
  # resp.configuration.service_now_configuration.service_catalog_configuration.field_mappings[0].index_field_name #=> String
1420
+ # resp.configuration.service_now_configuration.authentication_type #=> String, one of "HTTP_BASIC", "OAUTH2"
1320
1421
  # resp.configuration.confluence_configuration.server_url #=> String
1321
1422
  # resp.configuration.confluence_configuration.secret_arn #=> String
1322
1423
  # resp.configuration.confluence_configuration.version #=> String, one of "CLOUD", "SERVER"
@@ -1516,6 +1617,63 @@ module Aws::Kendra
1516
1617
  req.send_request(options)
1517
1618
  end
1518
1619
 
1620
+ # Describes an existing Amazon Kendra thesaurus.
1621
+ #
1622
+ # @option params [required, String] :id
1623
+ # The identifier of the thesaurus to describe.
1624
+ #
1625
+ # @option params [required, String] :index_id
1626
+ # The identifier of the index associated with the thesaurus to describe.
1627
+ #
1628
+ # @return [Types::DescribeThesaurusResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
1629
+ #
1630
+ # * {Types::DescribeThesaurusResponse#id #id} => String
1631
+ # * {Types::DescribeThesaurusResponse#index_id #index_id} => String
1632
+ # * {Types::DescribeThesaurusResponse#name #name} => String
1633
+ # * {Types::DescribeThesaurusResponse#description #description} => String
1634
+ # * {Types::DescribeThesaurusResponse#status #status} => String
1635
+ # * {Types::DescribeThesaurusResponse#error_message #error_message} => String
1636
+ # * {Types::DescribeThesaurusResponse#created_at #created_at} => Time
1637
+ # * {Types::DescribeThesaurusResponse#updated_at #updated_at} => Time
1638
+ # * {Types::DescribeThesaurusResponse#role_arn #role_arn} => String
1639
+ # * {Types::DescribeThesaurusResponse#source_s3_path #source_s3_path} => Types::S3Path
1640
+ # * {Types::DescribeThesaurusResponse#file_size_bytes #file_size_bytes} => Integer
1641
+ # * {Types::DescribeThesaurusResponse#term_count #term_count} => Integer
1642
+ # * {Types::DescribeThesaurusResponse#synonym_rule_count #synonym_rule_count} => Integer
1643
+ #
1644
+ # @example Request syntax with placeholder values
1645
+ #
1646
+ # resp = client.describe_thesaurus({
1647
+ # id: "ThesaurusId", # required
1648
+ # index_id: "IndexId", # required
1649
+ # })
1650
+ #
1651
+ # @example Response structure
1652
+ #
1653
+ # resp.id #=> String
1654
+ # resp.index_id #=> String
1655
+ # resp.name #=> String
1656
+ # resp.description #=> String
1657
+ # resp.status #=> String, one of "CREATING", "ACTIVE", "DELETING", "UPDATING", "ACTIVE_BUT_UPDATE_FAILED", "FAILED"
1658
+ # resp.error_message #=> String
1659
+ # resp.created_at #=> Time
1660
+ # resp.updated_at #=> Time
1661
+ # resp.role_arn #=> String
1662
+ # resp.source_s3_path.bucket #=> String
1663
+ # resp.source_s3_path.key #=> String
1664
+ # resp.file_size_bytes #=> Integer
1665
+ # resp.term_count #=> Integer
1666
+ # resp.synonym_rule_count #=> Integer
1667
+ #
1668
+ # @see http://docs.aws.amazon.com/goto/WebAPI/kendra-2019-02-03/DescribeThesaurus AWS API Documentation
1669
+ #
1670
+ # @overload describe_thesaurus(params = {})
1671
+ # @param [Hash] params ({})
1672
+ def describe_thesaurus(params = {}, options = {})
1673
+ req = build_request(:describe_thesaurus, params)
1674
+ req.send_request(options)
1675
+ end
1676
+
1519
1677
  # Gets statistics about synchronizing Amazon Kendra with a data source.
1520
1678
  #
1521
1679
  # @option params [required, String] :id
@@ -1761,6 +1919,52 @@ module Aws::Kendra
1761
1919
  req.send_request(options)
1762
1920
  end
1763
1921
 
1922
+ # Lists the Amazon Kendra thesauri associated with an index.
1923
+ #
1924
+ # @option params [required, String] :index_id
1925
+ # The identifier of the index associated with the thesaurus to list.
1926
+ #
1927
+ # @option params [String] :next_token
1928
+ # If the previous response was incomplete (because there is more data to
1929
+ # retrieve), Amazon Kendra returns a pagination token in the response.
1930
+ # You can use this pagination token to retrieve the next set of thesauri
1931
+ # (`ThesaurusSummaryItems`).
1932
+ #
1933
+ # @option params [Integer] :max_results
1934
+ # The maximum number of thesauri to return.
1935
+ #
1936
+ # @return [Types::ListThesauriResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
1937
+ #
1938
+ # * {Types::ListThesauriResponse#next_token #next_token} => String
1939
+ # * {Types::ListThesauriResponse#thesaurus_summary_items #thesaurus_summary_items} => Array&lt;Types::ThesaurusSummary&gt;
1940
+ #
1941
+ # @example Request syntax with placeholder values
1942
+ #
1943
+ # resp = client.list_thesauri({
1944
+ # index_id: "IndexId", # required
1945
+ # next_token: "NextToken",
1946
+ # max_results: 1,
1947
+ # })
1948
+ #
1949
+ # @example Response structure
1950
+ #
1951
+ # resp.next_token #=> String
1952
+ # resp.thesaurus_summary_items #=> Array
1953
+ # resp.thesaurus_summary_items[0].id #=> String
1954
+ # resp.thesaurus_summary_items[0].name #=> String
1955
+ # resp.thesaurus_summary_items[0].status #=> String, one of "CREATING", "ACTIVE", "DELETING", "UPDATING", "ACTIVE_BUT_UPDATE_FAILED", "FAILED"
1956
+ # resp.thesaurus_summary_items[0].created_at #=> Time
1957
+ # resp.thesaurus_summary_items[0].updated_at #=> Time
1958
+ #
1959
+ # @see http://docs.aws.amazon.com/goto/WebAPI/kendra-2019-02-03/ListThesauri AWS API Documentation
1960
+ #
1961
+ # @overload list_thesauri(params = {})
1962
+ # @param [Hash] params ({})
1963
+ def list_thesauri(params = {}, options = {})
1964
+ req = build_request(:list_thesauri, params)
1965
+ req.send_request(options)
1966
+ end
1967
+
1764
1968
  # Searches an active index. Use this API to search your documents using
1765
1969
  # query. The `Query` operation enables to do faceted search and to
1766
1970
  # filter results based on document attributes.
@@ -1785,7 +1989,7 @@ module Aws::Kendra
1785
1989
  #
1786
1990
  # @option params [required, String] :index_id
1787
1991
  # The unique identifier of the index to search. The identifier is
1788
- # returned in the response from the operation.
1992
+ # returned in the response from the `CreateIndex` operation.
1789
1993
  #
1790
1994
  # @option params [required, String] :query_text
1791
1995
  # The text to search for.
@@ -1814,6 +2018,23 @@ module Aws::Kendra
1814
2018
  # Sets the type of query. Only results for the specified query type are
1815
2019
  # returned.
1816
2020
  #
2021
+ # @option params [Array<Types::DocumentRelevanceConfiguration>] :document_relevance_override_configurations
2022
+ # Overrides relevance tuning configurations of fields or attributes set
2023
+ # at the index level.
2024
+ #
2025
+ # If you use this API to override the relevance tuning configured at the
2026
+ # index level, but there is no relevance tuning configured at the index
2027
+ # level, then Amazon Kendra does not apply any relevance tuning.
2028
+ #
2029
+ # If there is relevance tuning configured at the index level, but you do
2030
+ # not use this API to override any relevance tuning in the index, then
2031
+ # Amazon Kendra uses the relevance tuning that is configured at the
2032
+ # index level.
2033
+ #
2034
+ # If there is relevance tuning configured for fields at the index level,
2035
+ # but you use this API to override only some of these fields, then for
2036
+ # the fields you did not override, the importance is set to 1.
2037
+ #
1817
2038
  # @option params [Integer] :page_number
1818
2039
  # Query results are returned in pages the size of the `PageSize`
1819
2040
  # parameter. By default, Amazon Kendra returns the first page of
@@ -1940,6 +2161,20 @@ module Aws::Kendra
1940
2161
  # ],
1941
2162
  # requested_document_attributes: ["DocumentAttributeKey"],
1942
2163
  # query_result_type_filter: "DOCUMENT", # accepts DOCUMENT, QUESTION_ANSWER, ANSWER
2164
+ # document_relevance_override_configurations: [
2165
+ # {
2166
+ # name: "DocumentMetadataConfigurationName", # required
2167
+ # relevance: { # required
2168
+ # freshness: false,
2169
+ # importance: 1,
2170
+ # duration: "Duration",
2171
+ # rank_order: "ASCENDING", # accepts ASCENDING, DESCENDING
2172
+ # value_importance_map: {
2173
+ # "ValueImportanceMapKey" => 1,
2174
+ # },
2175
+ # },
2176
+ # },
2177
+ # ],
1943
2178
  # page_number: 1,
1944
2179
  # page_size: 1,
1945
2180
  # sorting_configuration: {
@@ -1966,17 +2201,20 @@ module Aws::Kendra
1966
2201
  # resp.result_items[0].additional_attributes[0].value.text_with_highlights_value.highlights[0].begin_offset #=> Integer
1967
2202
  # resp.result_items[0].additional_attributes[0].value.text_with_highlights_value.highlights[0].end_offset #=> Integer
1968
2203
  # resp.result_items[0].additional_attributes[0].value.text_with_highlights_value.highlights[0].top_answer #=> Boolean
2204
+ # resp.result_items[0].additional_attributes[0].value.text_with_highlights_value.highlights[0].type #=> String, one of "STANDARD", "THESAURUS_SYNONYM"
1969
2205
  # resp.result_items[0].document_id #=> String
1970
2206
  # resp.result_items[0].document_title.text #=> String
1971
2207
  # resp.result_items[0].document_title.highlights #=> Array
1972
2208
  # resp.result_items[0].document_title.highlights[0].begin_offset #=> Integer
1973
2209
  # resp.result_items[0].document_title.highlights[0].end_offset #=> Integer
1974
2210
  # resp.result_items[0].document_title.highlights[0].top_answer #=> Boolean
2211
+ # resp.result_items[0].document_title.highlights[0].type #=> String, one of "STANDARD", "THESAURUS_SYNONYM"
1975
2212
  # resp.result_items[0].document_excerpt.text #=> String
1976
2213
  # resp.result_items[0].document_excerpt.highlights #=> Array
1977
2214
  # resp.result_items[0].document_excerpt.highlights[0].begin_offset #=> Integer
1978
2215
  # resp.result_items[0].document_excerpt.highlights[0].end_offset #=> Integer
1979
2216
  # resp.result_items[0].document_excerpt.highlights[0].top_answer #=> Boolean
2217
+ # resp.result_items[0].document_excerpt.highlights[0].type #=> String, one of "STANDARD", "THESAURUS_SYNONYM"
1980
2218
  # resp.result_items[0].document_uri #=> String
1981
2219
  # resp.result_items[0].document_attributes #=> Array
1982
2220
  # resp.result_items[0].document_attributes[0].key #=> String
@@ -2078,7 +2316,8 @@ module Aws::Kendra
2078
2316
  #
2079
2317
  # @option params [required, String] :query_id
2080
2318
  # The identifier of the specific query for which you are submitting
2081
- # feedback. The query ID is returned in the response to the operation.
2319
+ # feedback. The query ID is returned in the response to the `Query`
2320
+ # operation.
2082
2321
  #
2083
2322
  # @option params [Array<Types::ClickFeedback>] :click_feedback_items
2084
2323
  # Tells Amazon Kendra that a particular search result link was chosen by
@@ -2392,6 +2631,7 @@ module Aws::Kendra
2392
2631
  # index_field_name: "IndexFieldName", # required
2393
2632
  # },
2394
2633
  # ],
2634
+ # filter_query: "ServiceNowKnowledgeArticleFilterQuery",
2395
2635
  # },
2396
2636
  # service_catalog_configuration: {
2397
2637
  # crawl_attachments: false,
@@ -2407,6 +2647,7 @@ module Aws::Kendra
2407
2647
  # },
2408
2648
  # ],
2409
2649
  # },
2650
+ # authentication_type: "HTTP_BASIC", # accepts HTTP_BASIC, OAUTH2
2410
2651
  # },
2411
2652
  # confluence_configuration: {
2412
2653
  # server_url: "Url", # required
@@ -2509,7 +2750,7 @@ module Aws::Kendra
2509
2750
  # The document metadata to update.
2510
2751
  #
2511
2752
  # @option params [Types::CapacityUnitsConfiguration] :capacity_units
2512
- # Sets the number of addtional storage and query capacity units that
2753
+ # Sets the number of additional storage and query capacity units that
2513
2754
  # should be used by the index. You can change the capacity of the index
2514
2755
  # up to 5 times per day.
2515
2756
  #
@@ -2585,6 +2826,51 @@ module Aws::Kendra
2585
2826
  req.send_request(options)
2586
2827
  end
2587
2828
 
2829
+ # Updates a thesaurus file associated with an index.
2830
+ #
2831
+ # @option params [required, String] :id
2832
+ # The identifier of the thesaurus to update.
2833
+ #
2834
+ # @option params [String] :name
2835
+ # The updated name of the thesaurus.
2836
+ #
2837
+ # @option params [required, String] :index_id
2838
+ # The identifier of the index associated with the thesaurus to update.
2839
+ #
2840
+ # @option params [String] :description
2841
+ # The updated description of the thesaurus.
2842
+ #
2843
+ # @option params [String] :role_arn
2844
+ # The updated role ARN of the thesaurus.
2845
+ #
2846
+ # @option params [Types::S3Path] :source_s3_path
2847
+ # Information required to find a specific file in an Amazon S3 bucket.
2848
+ #
2849
+ # @return [Struct] Returns an empty {Seahorse::Client::Response response}.
2850
+ #
2851
+ # @example Request syntax with placeholder values
2852
+ #
2853
+ # resp = client.update_thesaurus({
2854
+ # id: "ThesaurusId", # required
2855
+ # name: "ThesaurusName",
2856
+ # index_id: "IndexId", # required
2857
+ # description: "Description",
2858
+ # role_arn: "RoleArn",
2859
+ # source_s3_path: {
2860
+ # bucket: "S3BucketName", # required
2861
+ # key: "S3ObjectKey", # required
2862
+ # },
2863
+ # })
2864
+ #
2865
+ # @see http://docs.aws.amazon.com/goto/WebAPI/kendra-2019-02-03/UpdateThesaurus AWS API Documentation
2866
+ #
2867
+ # @overload update_thesaurus(params = {})
2868
+ # @param [Hash] params ({})
2869
+ def update_thesaurus(params = {}, options = {})
2870
+ req = build_request(:update_thesaurus, params)
2871
+ req.send_request(options)
2872
+ end
2873
+
2588
2874
  # @!endgroup
2589
2875
 
2590
2876
  # @param params ({})
@@ -2598,7 +2884,7 @@ module Aws::Kendra
2598
2884
  params: params,
2599
2885
  config: config)
2600
2886
  context[:gem_name] = 'aws-sdk-kendra'
2601
- context[:gem_version] = '1.19.0'
2887
+ context[:gem_version] = '1.24.0'
2602
2888
  Seahorse::Client::Request.new(handlers, context)
2603
2889
  end
2604
2890