Skip to content

Commit

Permalink
feat(client-kendra): Documentation update, March 2024. Corrects some …
Browse files Browse the repository at this point in the history
…docs for Amazon Kendra.
  • Loading branch information
awstools committed Mar 22, 2024
1 parent 42a791d commit 9099163
Show file tree
Hide file tree
Showing 9 changed files with 273 additions and 128 deletions.
2 changes: 1 addition & 1 deletion clients/client-kendra/src/commands/DeleteIndexCommand.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ export interface DeleteIndexCommandInput extends DeleteIndexRequest {}
export interface DeleteIndexCommandOutput extends __MetadataBearer {}

/**
* <p>Deletes an existing Amazon Kendra index. An exception is not thrown if the index is
* <p>Deletes an Amazon Kendra index. An exception is not thrown if the index is
* already being deleted. While the index is being deleted, the <code>Status</code> field
* returned by a call to the <code>DescribeIndex</code> API is set to
* <code>DELETING</code>.</p>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ export interface DeleteThesaurusCommandInput extends DeleteThesaurusRequest {}
export interface DeleteThesaurusCommandOutput extends __MetadataBearer {}

/**
* <p>Deletes an existing Amazon Kendra thesaurus.
* <p>Deletes an Amazon Kendra thesaurus.
* </p>
* @example
* Use a bare-bones client and the command you need to make an API call.
Expand Down
2 changes: 1 addition & 1 deletion clients/client-kendra/src/commands/DescribeIndexCommand.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ export interface DescribeIndexCommandInput extends DescribeIndexRequest {}
export interface DescribeIndexCommandOutput extends DescribeIndexResponse, __MetadataBearer {}

/**
* <p>Gets information about an existing Amazon Kendra index.</p>
* <p>Gets information about an Amazon Kendra index.</p>
* @example
* Use a bare-bones client and the command you need to make an API call.
* ```javascript
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ export interface DescribeThesaurusCommandInput extends DescribeThesaurusRequest
export interface DescribeThesaurusCommandOutput extends DescribeThesaurusResponse, __MetadataBearer {}

/**
* <p>Gets information about an existing Amazon Kendra thesaurus.</p>
* <p>Gets information about an Amazon Kendra thesaurus.</p>
* @example
* Use a bare-bones client and the command you need to make an API call.
* ```javascript
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ export interface UpdateDataSourceCommandInput extends UpdateDataSourceRequest {}
export interface UpdateDataSourceCommandOutput extends __MetadataBearer {}

/**
* <p>Updates an existing Amazon Kendra data source connector.</p>
* <p>Updates an Amazon Kendra data source connector.</p>
* @example
* Use a bare-bones client and the command you need to make an API call.
* ```javascript
Expand Down
2 changes: 1 addition & 1 deletion clients/client-kendra/src/commands/UpdateIndexCommand.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ export interface UpdateIndexCommandInput extends UpdateIndexRequest {}
export interface UpdateIndexCommandOutput extends __MetadataBearer {}

/**
* <p>Updates an existing Amazon Kendra index.</p>
* <p>Updates an Amazon Kendra index.</p>
* @example
* Use a bare-bones client and the command you need to make an API call.
* ```javascript
Expand Down
205 changes: 171 additions & 34 deletions clients/client-kendra/src/models/models_0.ts

Large diffs are not rendered by default.

98 changes: 53 additions & 45 deletions clients/client-kendra/src/models/models_1.ts
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,9 @@ export interface TableExcerpt {
*/
export interface QueryResultItem {
/**
* <p>The identifier for the query result.</p>
* <p>The unique identifier for the query result item id (<code>Id</code>) and the query
* result item document id (<code>DocumentId</code>) combined. The value of this field changes
* with every request, even when you have the same documents.</p>
* @public
*/
Id?: string;
Expand Down Expand Up @@ -202,18 +204,18 @@ export interface QueryResultItem {
DocumentURI?: string;

/**
* <p>An array of document fields/attributes assigned to a document in the search results.
* For example, the document author (<code>_author</code>) or the source URI
* (<code>_source_uri</code>) of the document.</p>
* <p>An array of document fields/attributes assigned to a document in the search results. For
* example, the document author (<code>_author</code>) or the source URI
* (<code>_source_uri</code>) of the document.</p>
* @public
*/
DocumentAttributes?: DocumentAttribute[];

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

/**
* <p>A token that identifies a particular result from a particular query. Use this token to
* 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>
* 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>
* @public
*/
FeedbackToken?: string;
Expand Down Expand Up @@ -844,7 +847,7 @@ export interface UpdateIndexRequest {
Id: string | undefined;

/**
* <p>The name of the index you want to update.</p>
* <p>A new name for the index.</p>
* @public
*/
Name?: string;
Expand Down Expand Up @@ -893,8 +896,9 @@ export interface UpdateIndexRequest {
UserContextPolicy?: UserContextPolicy;

/**
* <p>Enables fetching access levels of groups and users from an IAM Identity Center
* identity source. To configure this, see <a href="https://docs.aws.amazon.com/kendra/latest/dg/API_UserGroupResolutionConfiguration.html">UserGroupResolutionConfiguration</a>.</p>
* <p>Gets users and groups from IAM Identity Center
* 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
* search results are filtered based on the user or their group access to documents.</p>
* @public
*/
UserGroupResolutionConfiguration?: UserGroupResolutionConfiguration;
Expand Down Expand Up @@ -1109,8 +1113,8 @@ export interface Facet {
}

/**
* <p>Provides the count of documents that match a particular document attribute or
* field when doing a faceted search.</p>
* <p>Provides the count of documents that match a particular document attribute or field when
* doing a faceted search.</p>
* @public
*/
export interface DocumentAttributeValueCountPair {
Expand All @@ -1121,8 +1125,8 @@ export interface DocumentAttributeValueCountPair {
DocumentAttributeValue?: DocumentAttributeValue;

/**
* <p>The number of documents in the response that have the attribute/field value for
* the key.</p>
* <p>The number of documents in the response that have the attribute/field value for the
* key.</p>
* @public
*/
Count?: number;
Expand Down Expand Up @@ -1173,14 +1177,13 @@ export interface FacetResult {

/**
* <p>Filters the search results based on document attributes or fields.</p>
* <p>You can filter results using attributes for your particular documents.
* The attributes must exist in your index. For example, if your documents
* include the custom attribute "Department", you can filter documents that
* belong to the "HR" department. You would use the <code>EqualsTo</code>
* operation to filter results or documents with "Department" equals to "HR".</p>
* <p>You can use <code>AndAllFilters</code> and <code>AndOrFilters</code> in
* combination with each other or with other operations such as <code>EqualsTo</code>.
* For example:</p>
* <p>You can filter results using attributes for your particular documents. The attributes
* must exist in your index. For example, if your documents include the custom attribute
* "Department", you can filter documents that belong to the "HR" department. You would use
* the <code>EqualsTo</code> operation to filter results or documents with "Department" equals
* to "HR".</p>
* <p>You can use <code>AndAllFilters</code> and <code>AndOrFilters</code> in combination with
* each other or with other operations such as <code>EqualsTo</code>. For example:</p>
* <p>
* <code>AndAllFilters</code>
* </p>
Expand All @@ -1202,18 +1205,18 @@ export interface FacetResult {
* </li>
* </ul>
* <p>This example filters results or documents that belong to the HR department
* <i>and</i> belong to projects that contain "new hires"
* <i>or</i> "new hiring" in the project name (must use
* <code>ContainAny</code> with <code>StringListValue</code>). This example is
* filtering with a depth of 2.</p>
* <i>and</i> belong to projects that contain "new hires"
* <i>or</i> "new hiring" in the project name (must use
* <code>ContainAny</code> with <code>StringListValue</code>). This example is filtering
* with a depth of 2.</p>
* <p>You cannot filter more than a depth of 2, otherwise you receive a
* <code>ValidationException</code> exception with the message "AttributeFilter
* cannot have a depth of more than 2." Also, if you use more than 10 attribute
* filters in a given list for <code>AndAllFilters</code> or <code>OrAllFilters</code>,
* you receive a <code>ValidationException</code> with the message "AttributeFilter
* cannot have a length of more than 10".</p>
* <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 filter search results</a>.</p>
* <code>ValidationException</code> exception with the message "AttributeFilter cannot have
* a depth of more than 2." Also, if you use more than 10 attribute filters in a given list
* for <code>AndAllFilters</code> or <code>OrAllFilters</code>, you receive a
* <code>ValidationException</code> with the message "AttributeFilter cannot have a length
* of more than 10".</p>
* <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
* filter search results</a>.</p>
* @public
*/
export interface AttributeFilter {
Expand Down Expand Up @@ -1256,35 +1259,35 @@ export interface AttributeFilter {
ContainsAny?: DocumentAttribute;

/**
* <p>Performs a greater than operation on document attributes/fields and their
* values. Use with the <a href="https://docs.aws.amazon.com/kendra/latest/APIReference/API_DocumentAttributeValue.html">document attribute
* <p>Performs a greater than operation on document attributes/fields and their values. Use
* with the <a href="https://docs.aws.amazon.com/kendra/latest/APIReference/API_DocumentAttributeValue.html">document attribute
* type</a>
* <code>Date</code> or <code>Long</code>.</p>
* @public
*/
GreaterThan?: DocumentAttribute;

/**
* <p>Performs a greater or equals than operation on document attributes/fields and
* their values. Use with the <a href="https://docs.aws.amazon.com/kendra/latest/APIReference/API_DocumentAttributeValue.html">document attribute
* <p>Performs a greater or equals than operation on document attributes/fields and their
* values. Use with the <a href="https://docs.aws.amazon.com/kendra/latest/APIReference/API_DocumentAttributeValue.html">document attribute
* type</a>
* <code>Date</code> or <code>Long</code>.</p>
* @public
*/
GreaterThanOrEquals?: DocumentAttribute;

/**
* <p>Performs a less than operation on document attributes/fields and their values.
* Use with the <a href="https://docs.aws.amazon.com/kendra/latest/APIReference/API_DocumentAttributeValue.html">document attribute
* <p>Performs a less than operation on document attributes/fields and their values. Use with
* the <a href="https://docs.aws.amazon.com/kendra/latest/APIReference/API_DocumentAttributeValue.html">document attribute
* type</a>
* <code>Date</code> or <code>Long</code>.</p>
* @public
*/
LessThan?: DocumentAttribute;

/**
* <p>Performs a less than or equals operation on document attributes/fields and
* their values. Use with the <a href="https://docs.aws.amazon.com/kendra/latest/APIReference/API_DocumentAttributeValue.html">document attribute
* <p>Performs a less than or equals operation on document attributes/fields and their values.
* Use with the <a href="https://docs.aws.amazon.com/kendra/latest/APIReference/API_DocumentAttributeValue.html">document attribute
* type</a>
* <code>Date</code> or <code>Long</code>.</p>
* @public
Expand Down Expand Up @@ -1398,7 +1401,10 @@ export interface RetrieveRequest {
/**
* <p>The input query text to retrieve relevant passages for the search. Amazon Kendra
* truncates queries at 30 token words, which excludes punctuation and stop words.
* Truncation still applies if you use Boolean or more advanced, complex queries.</p>
* Truncation still applies if you use Boolean or more advanced, complex queries. For
* example, <code>Timeoff AND October AND Category:HR</code> is counted as 3 tokens:
* <code>timeoff</code>, <code>october</code>, <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>
* @public
*/
QueryText: string | undefined;
Expand Down Expand Up @@ -1521,7 +1527,9 @@ export interface QueryRequest {
/**
* <p>The input query text for the search. Amazon Kendra truncates queries at 30 token
* words, which excludes punctuation and stop words. Truncation still applies if you use
* Boolean or more advanced, complex queries. </p>
* Boolean or more advanced, complex queries. For example, <code>Timeoff AND October AND
* Category:HR</code> is counted as 3 tokens: <code>timeoff</code>, <code>october</code>,
* <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>
* @public
*/
QueryText?: string;
Expand Down
Loading

0 comments on commit 9099163

Please sign in to comment.