Skip to content

Commit 9099163

Browse files
author
awstools
committed
feat(client-kendra): Documentation update, March 2024. Corrects some docs for Amazon Kendra.
1 parent 42a791d commit 9099163

File tree

9 files changed

+273
-128
lines changed

9 files changed

+273
-128
lines changed

clients/client-kendra/src/commands/DeleteIndexCommand.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ export interface DeleteIndexCommandInput extends DeleteIndexRequest {}
2727
export interface DeleteIndexCommandOutput extends __MetadataBearer {}
2828

2929
/**
30-
* <p>Deletes an existing Amazon Kendra index. An exception is not thrown if the index is
30+
* <p>Deletes an Amazon Kendra index. An exception is not thrown if the index is
3131
* already being deleted. While the index is being deleted, the <code>Status</code> field
3232
* returned by a call to the <code>DescribeIndex</code> API is set to
3333
* <code>DELETING</code>.</p>

clients/client-kendra/src/commands/DeleteThesaurusCommand.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ export interface DeleteThesaurusCommandInput extends DeleteThesaurusRequest {}
2727
export interface DeleteThesaurusCommandOutput extends __MetadataBearer {}
2828

2929
/**
30-
* <p>Deletes an existing Amazon Kendra thesaurus.
30+
* <p>Deletes an Amazon Kendra thesaurus.
3131
* </p>
3232
* @example
3333
* Use a bare-bones client and the command you need to make an API call.

clients/client-kendra/src/commands/DescribeIndexCommand.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ export interface DescribeIndexCommandInput extends DescribeIndexRequest {}
3131
export interface DescribeIndexCommandOutput extends DescribeIndexResponse, __MetadataBearer {}
3232

3333
/**
34-
* <p>Gets information about an existing Amazon Kendra index.</p>
34+
* <p>Gets information about an Amazon Kendra index.</p>
3535
* @example
3636
* Use a bare-bones client and the command you need to make an API call.
3737
* ```javascript

clients/client-kendra/src/commands/DescribeThesaurusCommand.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ export interface DescribeThesaurusCommandInput extends DescribeThesaurusRequest
2727
export interface DescribeThesaurusCommandOutput extends DescribeThesaurusResponse, __MetadataBearer {}
2828

2929
/**
30-
* <p>Gets information about an existing Amazon Kendra thesaurus.</p>
30+
* <p>Gets information about an Amazon Kendra thesaurus.</p>
3131
* @example
3232
* Use a bare-bones client and the command you need to make an API call.
3333
* ```javascript

clients/client-kendra/src/commands/UpdateDataSourceCommand.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ export interface UpdateDataSourceCommandInput extends UpdateDataSourceRequest {}
2727
export interface UpdateDataSourceCommandOutput extends __MetadataBearer {}
2828

2929
/**
30-
* <p>Updates an existing Amazon Kendra data source connector.</p>
30+
* <p>Updates an Amazon Kendra data source connector.</p>
3131
* @example
3232
* Use a bare-bones client and the command you need to make an API call.
3333
* ```javascript

clients/client-kendra/src/commands/UpdateIndexCommand.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ export interface UpdateIndexCommandInput extends UpdateIndexRequest {}
2727
export interface UpdateIndexCommandOutput extends __MetadataBearer {}
2828

2929
/**
30-
* <p>Updates an existing Amazon Kendra index.</p>
30+
* <p>Updates an Amazon Kendra index.</p>
3131
* @example
3232
* Use a bare-bones client and the command you need to make an API call.
3333
* ```javascript

clients/client-kendra/src/models/models_0.ts

Lines changed: 171 additions & 34 deletions
Large diffs are not rendered by default.

clients/client-kendra/src/models/models_1.ts

Lines changed: 53 additions & 45 deletions
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,9 @@ export interface TableExcerpt {
148148
*/
149149
export interface QueryResultItem {
150150
/**
151-
* <p>The identifier for the query result.</p>
151+
* <p>The unique identifier for the query result item id (<code>Id</code>) and the query
152+
* result item document id (<code>DocumentId</code>) combined. The value of this field changes
153+
* with every request, even when you have the same documents.</p>
152154
* @public
153155
*/
154156
Id?: string;
@@ -202,18 +204,18 @@ export interface QueryResultItem {
202204
DocumentURI?: string;
203205

204206
/**
205-
* <p>An array of document fields/attributes assigned to a document in the search results.
206-
* For example, the document author (<code>_author</code>) or the source URI
207-
* (<code>_source_uri</code>) of the document.</p>
207+
* <p>An array of document fields/attributes assigned to a document in the search results. For
208+
* example, the document author (<code>_author</code>) or the source URI
209+
* (<code>_source_uri</code>) of the document.</p>
208210
* @public
209211
*/
210212
DocumentAttributes?: DocumentAttribute[];
211213

212214
/**
213-
* <p>Indicates the confidence level of Amazon Kendra providing a relevant result for
214-
* the query. Each result is placed into a bin that indicates the confidence,
215-
* <code>VERY_HIGH</code>, <code>HIGH</code>, <code>MEDIUM</code> and <code>LOW</code>.
216-
* You can use the score to determine if a response meets the confidence needed for your
215+
* <p>Indicates the confidence level of Amazon Kendra providing a relevant result for the
216+
* query. Each result is placed into a bin that indicates the confidence,
217+
* <code>VERY_HIGH</code>, <code>HIGH</code>, <code>MEDIUM</code> and <code>LOW</code>. You
218+
* can use the score to determine if a response meets the confidence needed for your
217219
* application.</p>
218220
* <p>The field is only set to <code>LOW</code> when the <code>Type</code> field is set to
219221
* <code>DOCUMENT</code> and Amazon Kendra is not confident that the result is
@@ -224,7 +226,8 @@ export interface QueryResultItem {
224226

225227
/**
226228
* <p>A token that identifies a particular result from a particular query. Use this token to
227-
* provide click-through feedback for the result. For more information, see <a href="https://docs.aws.amazon.com/kendra/latest/dg/submitting-feedback.html">Submitting feedback</a>.</p>
229+
* provide click-through feedback for the result. For more information, see <a href="https://docs.aws.amazon.com/kendra/latest/dg/submitting-feedback.html">Submitting
230+
* feedback</a>.</p>
228231
* @public
229232
*/
230233
FeedbackToken?: string;
@@ -844,7 +847,7 @@ export interface UpdateIndexRequest {
844847
Id: string | undefined;
845848

846849
/**
847-
* <p>The name of the index you want to update.</p>
850+
* <p>A new name for the index.</p>
848851
* @public
849852
*/
850853
Name?: string;
@@ -893,8 +896,9 @@ export interface UpdateIndexRequest {
893896
UserContextPolicy?: UserContextPolicy;
894897

895898
/**
896-
* <p>Enables fetching access levels of groups and users from an IAM Identity Center
897-
* identity source. To configure this, see <a href="https://docs.aws.amazon.com/kendra/latest/dg/API_UserGroupResolutionConfiguration.html">UserGroupResolutionConfiguration</a>.</p>
899+
* <p>Gets users and groups from IAM Identity Center
900+
* identity source. To configure this, see <a href="https://docs.aws.amazon.com/kendra/latest/dg/API_UserGroupResolutionConfiguration.html">UserGroupResolutionConfiguration</a>. This is useful for user context filtering, where
901+
* search results are filtered based on the user or their group access to documents.</p>
898902
* @public
899903
*/
900904
UserGroupResolutionConfiguration?: UserGroupResolutionConfiguration;
@@ -1109,8 +1113,8 @@ export interface Facet {
11091113
}
11101114

11111115
/**
1112-
* <p>Provides the count of documents that match a particular document attribute or
1113-
* field when doing a faceted search.</p>
1116+
* <p>Provides the count of documents that match a particular document attribute or field when
1117+
* doing a faceted search.</p>
11141118
* @public
11151119
*/
11161120
export interface DocumentAttributeValueCountPair {
@@ -1121,8 +1125,8 @@ export interface DocumentAttributeValueCountPair {
11211125
DocumentAttributeValue?: DocumentAttributeValue;
11221126

11231127
/**
1124-
* <p>The number of documents in the response that have the attribute/field value for
1125-
* the key.</p>
1128+
* <p>The number of documents in the response that have the attribute/field value for the
1129+
* key.</p>
11261130
* @public
11271131
*/
11281132
Count?: number;
@@ -1173,14 +1177,13 @@ export interface FacetResult {
11731177

11741178
/**
11751179
* <p>Filters the search results based on document attributes or fields.</p>
1176-
* <p>You can filter results using attributes for your particular documents.
1177-
* The attributes must exist in your index. For example, if your documents
1178-
* include the custom attribute "Department", you can filter documents that
1179-
* belong to the "HR" department. You would use the <code>EqualsTo</code>
1180-
* operation to filter results or documents with "Department" equals to "HR".</p>
1181-
* <p>You can use <code>AndAllFilters</code> and <code>AndOrFilters</code> in
1182-
* combination with each other or with other operations such as <code>EqualsTo</code>.
1183-
* For example:</p>
1180+
* <p>You can filter results using attributes for your particular documents. The attributes
1181+
* must exist in your index. For example, if your documents include the custom attribute
1182+
* "Department", you can filter documents that belong to the "HR" department. You would use
1183+
* the <code>EqualsTo</code> operation to filter results or documents with "Department" equals
1184+
* to "HR".</p>
1185+
* <p>You can use <code>AndAllFilters</code> and <code>AndOrFilters</code> in combination with
1186+
* each other or with other operations such as <code>EqualsTo</code>. For example:</p>
11841187
* <p>
11851188
* <code>AndAllFilters</code>
11861189
* </p>
@@ -1202,18 +1205,18 @@ export interface FacetResult {
12021205
* </li>
12031206
* </ul>
12041207
* <p>This example filters results or documents that belong to the HR department
1205-
* <i>and</i> belong to projects that contain "new hires"
1206-
* <i>or</i> "new hiring" in the project name (must use
1207-
* <code>ContainAny</code> with <code>StringListValue</code>). This example is
1208-
* filtering with a depth of 2.</p>
1208+
* <i>and</i> belong to projects that contain "new hires"
1209+
* <i>or</i> "new hiring" in the project name (must use
1210+
* <code>ContainAny</code> with <code>StringListValue</code>). This example is filtering
1211+
* with a depth of 2.</p>
12091212
* <p>You cannot filter more than a depth of 2, otherwise you receive a
1210-
* <code>ValidationException</code> exception with the message "AttributeFilter
1211-
* cannot have a depth of more than 2." Also, if you use more than 10 attribute
1212-
* filters in a given list for <code>AndAllFilters</code> or <code>OrAllFilters</code>,
1213-
* you receive a <code>ValidationException</code> with the message "AttributeFilter
1214-
* cannot have a length of more than 10".</p>
1215-
* <p>For examples of using <code>AttributeFilter</code>, see <a href="https://docs.aws.amazon.com/kendra/latest/dg/filtering.html#search-filtering">Using
1216-
* document attributes to filter search results</a>.</p>
1213+
* <code>ValidationException</code> exception with the message "AttributeFilter cannot have
1214+
* a depth of more than 2." Also, if you use more than 10 attribute filters in a given list
1215+
* for <code>AndAllFilters</code> or <code>OrAllFilters</code>, you receive a
1216+
* <code>ValidationException</code> with the message "AttributeFilter cannot have a length
1217+
* of more than 10".</p>
1218+
* <p>For examples of using <code>AttributeFilter</code>, see <a href="https://docs.aws.amazon.com/kendra/latest/dg/filtering.html#search-filtering">Using document attributes to
1219+
* filter search results</a>.</p>
12171220
* @public
12181221
*/
12191222
export interface AttributeFilter {
@@ -1256,35 +1259,35 @@ export interface AttributeFilter {
12561259
ContainsAny?: DocumentAttribute;
12571260

12581261
/**
1259-
* <p>Performs a greater than operation on document attributes/fields and their
1260-
* values. Use with the <a href="https://docs.aws.amazon.com/kendra/latest/APIReference/API_DocumentAttributeValue.html">document attribute
1262+
* <p>Performs a greater than operation on document attributes/fields and their values. Use
1263+
* with the <a href="https://docs.aws.amazon.com/kendra/latest/APIReference/API_DocumentAttributeValue.html">document attribute
12611264
* type</a>
12621265
* <code>Date</code> or <code>Long</code>.</p>
12631266
* @public
12641267
*/
12651268
GreaterThan?: DocumentAttribute;
12661269

12671270
/**
1268-
* <p>Performs a greater or equals than operation on document attributes/fields and
1269-
* their values. Use with the <a href="https://docs.aws.amazon.com/kendra/latest/APIReference/API_DocumentAttributeValue.html">document attribute
1271+
* <p>Performs a greater or equals than operation on document attributes/fields and their
1272+
* values. Use with the <a href="https://docs.aws.amazon.com/kendra/latest/APIReference/API_DocumentAttributeValue.html">document attribute
12701273
* type</a>
12711274
* <code>Date</code> or <code>Long</code>.</p>
12721275
* @public
12731276
*/
12741277
GreaterThanOrEquals?: DocumentAttribute;
12751278

12761279
/**
1277-
* <p>Performs a less than operation on document attributes/fields and their values.
1278-
* Use with the <a href="https://docs.aws.amazon.com/kendra/latest/APIReference/API_DocumentAttributeValue.html">document attribute
1280+
* <p>Performs a less than operation on document attributes/fields and their values. Use with
1281+
* the <a href="https://docs.aws.amazon.com/kendra/latest/APIReference/API_DocumentAttributeValue.html">document attribute
12791282
* type</a>
12801283
* <code>Date</code> or <code>Long</code>.</p>
12811284
* @public
12821285
*/
12831286
LessThan?: DocumentAttribute;
12841287

12851288
/**
1286-
* <p>Performs a less than or equals operation on document attributes/fields and
1287-
* their values. Use with the <a href="https://docs.aws.amazon.com/kendra/latest/APIReference/API_DocumentAttributeValue.html">document attribute
1289+
* <p>Performs a less than or equals operation on document attributes/fields and their values.
1290+
* Use with the <a href="https://docs.aws.amazon.com/kendra/latest/APIReference/API_DocumentAttributeValue.html">document attribute
12881291
* type</a>
12891292
* <code>Date</code> or <code>Long</code>.</p>
12901293
* @public
@@ -1398,7 +1401,10 @@ export interface RetrieveRequest {
13981401
/**
13991402
* <p>The input query text to retrieve relevant passages for the search. Amazon Kendra
14001403
* truncates queries at 30 token words, which excludes punctuation and stop words.
1401-
* Truncation still applies if you use Boolean or more advanced, complex queries.</p>
1404+
* Truncation still applies if you use Boolean or more advanced, complex queries. For
1405+
* example, <code>Timeoff AND October AND Category:HR</code> is counted as 3 tokens:
1406+
* <code>timeoff</code>, <code>october</code>, <code>hr</code>. For more information,
1407+
* see <a href="https://docs.aws.amazon.com/kendra/latest/dg/searching-example.html#searching-index-query-syntax">Searching with advanced query syntax</a> in the Amazon Kendra Developer Guide. </p>
14021408
* @public
14031409
*/
14041410
QueryText: string | undefined;
@@ -1521,7 +1527,9 @@ export interface QueryRequest {
15211527
/**
15221528
* <p>The input query text for the search. Amazon Kendra truncates queries at 30 token
15231529
* words, which excludes punctuation and stop words. Truncation still applies if you use
1524-
* Boolean or more advanced, complex queries. </p>
1530+
* Boolean or more advanced, complex queries. For example, <code>Timeoff AND October AND
1531+
* Category:HR</code> is counted as 3 tokens: <code>timeoff</code>, <code>october</code>,
1532+
* <code>hr</code>. For more information, see <a href="https://docs.aws.amazon.com/kendra/latest/dg/searching-example.html#searching-index-query-syntax">Searching with advanced query syntax</a> in the Amazon Kendra Developer Guide. </p>
15251533
* @public
15261534
*/
15271535
QueryText?: string;

0 commit comments

Comments
 (0)