@aws-sdk/client-kendra 3.300.0 → 3.303.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +40 -0
- package/dist-cjs/Kendra.js +75 -0
- package/dist-cjs/commands/BatchDeleteFeaturedResultsSetCommand.js +45 -0
- package/dist-cjs/commands/CreateFeaturedResultsSetCommand.js +45 -0
- package/dist-cjs/commands/DescribeFeaturedResultsSetCommand.js +45 -0
- package/dist-cjs/commands/ListFeaturedResultsSetsCommand.js +45 -0
- package/dist-cjs/commands/UpdateFeaturedResultsSetCommand.js +45 -0
- package/dist-cjs/commands/index.js +5 -0
- package/dist-cjs/endpoint/ruleset.js +3 -3
- package/dist-cjs/models/models_0.js +381 -438
- package/dist-cjs/models/models_1.js +20 -0
- package/dist-cjs/protocols/Aws_json1_1.js +597 -4
- package/dist-es/Kendra.js +75 -0
- package/dist-es/commands/BatchDeleteFeaturedResultsSetCommand.js +41 -0
- package/dist-es/commands/CreateFeaturedResultsSetCommand.js +41 -0
- package/dist-es/commands/DescribeFeaturedResultsSetCommand.js +41 -0
- package/dist-es/commands/ListFeaturedResultsSetsCommand.js +41 -0
- package/dist-es/commands/UpdateFeaturedResultsSetCommand.js +41 -0
- package/dist-es/commands/index.js +5 -0
- package/dist-es/endpoint/ruleset.js +3 -3
- package/dist-es/models/models_0.js +377 -434
- package/dist-es/models/models_1.js +18 -1
- package/dist-es/protocols/Aws_json1_1.js +584 -1
- package/dist-types/Kendra.d.ts +163 -132
- package/dist-types/KendraClient.d.ts +7 -2
- package/dist-types/commands/AssociateEntitiesToExperienceCommand.d.ts +4 -4
- package/dist-types/commands/AssociatePersonasToEntitiesCommand.d.ts +4 -4
- package/dist-types/commands/BatchDeleteDocumentCommand.d.ts +9 -9
- package/dist-types/commands/BatchDeleteFeaturedResultsSetCommand.d.ts +88 -0
- package/dist-types/commands/BatchGetDocumentStatusCommand.d.ts +16 -20
- package/dist-types/commands/BatchPutDocumentCommand.d.ts +32 -31
- package/dist-types/commands/ClearQuerySuggestionsCommand.d.ts +2 -2
- package/dist-types/commands/CreateAccessControlConfigurationCommand.d.ts +22 -25
- package/dist-types/commands/CreateDataSourceCommand.d.ts +171 -342
- package/dist-types/commands/CreateExperienceCommand.d.ts +9 -8
- package/dist-types/commands/CreateFaqCommand.d.ts +10 -10
- package/dist-types/commands/CreateFeaturedResultsSetCommand.d.ts +117 -0
- package/dist-types/commands/CreateIndexCommand.d.ts +12 -11
- package/dist-types/commands/CreateQuerySuggestionsBlockListCommand.d.ts +7 -6
- package/dist-types/commands/CreateThesaurusCommand.d.ts +7 -6
- package/dist-types/commands/DeleteAccessControlConfigurationCommand.d.ts +6 -6
- package/dist-types/commands/DeleteDataSourceCommand.d.ts +2 -2
- package/dist-types/commands/DeleteExperienceCommand.d.ts +2 -2
- package/dist-types/commands/DeleteFaqCommand.d.ts +2 -2
- package/dist-types/commands/DeleteIndexCommand.d.ts +2 -2
- package/dist-types/commands/DeletePrincipalMappingCommand.d.ts +14 -16
- package/dist-types/commands/DeleteQuerySuggestionsBlockListCommand.d.ts +2 -2
- package/dist-types/commands/DeleteThesaurusCommand.d.ts +2 -2
- package/dist-types/commands/DescribeAccessControlConfigurationCommand.d.ts +4 -4
- package/dist-types/commands/DescribeDataSourceCommand.d.ts +2 -2
- package/dist-types/commands/DescribeExperienceCommand.d.ts +2 -2
- package/dist-types/commands/DescribeFaqCommand.d.ts +2 -2
- package/dist-types/commands/DescribeFeaturedResultsSetCommand.d.ts +86 -0
- package/dist-types/commands/DescribeIndexCommand.d.ts +2 -2
- package/dist-types/commands/DescribePrincipalMappingCommand.d.ts +9 -10
- package/dist-types/commands/DescribeQuerySuggestionsBlockListCommand.d.ts +2 -2
- package/dist-types/commands/DescribeQuerySuggestionsConfigCommand.d.ts +2 -2
- package/dist-types/commands/DescribeThesaurusCommand.d.ts +2 -2
- package/dist-types/commands/DisassociateEntitiesFromExperienceCommand.d.ts +4 -4
- package/dist-types/commands/DisassociatePersonasFromEntitiesCommand.d.ts +3 -3
- package/dist-types/commands/GetQuerySuggestionsCommand.d.ts +4 -3
- package/dist-types/commands/GetSnapshotsCommand.d.ts +4 -5
- package/dist-types/commands/ListAccessControlConfigurationsCommand.d.ts +6 -6
- package/dist-types/commands/ListDataSourceSyncJobsCommand.d.ts +3 -3
- package/dist-types/commands/ListDataSourcesCommand.d.ts +2 -2
- package/dist-types/commands/ListEntityPersonasCommand.d.ts +2 -2
- package/dist-types/commands/ListExperienceEntitiesCommand.d.ts +2 -2
- package/dist-types/commands/ListExperiencesCommand.d.ts +2 -2
- package/dist-types/commands/ListFaqsCommand.d.ts +2 -2
- package/dist-types/commands/ListFeaturedResultsSetsCommand.d.ts +87 -0
- package/dist-types/commands/ListGroupsOlderThanOrderingIdCommand.d.ts +5 -6
- package/dist-types/commands/ListIndicesCommand.d.ts +2 -2
- package/dist-types/commands/ListQuerySuggestionsBlockListsCommand.d.ts +2 -2
- package/dist-types/commands/ListTagsForResourceCommand.d.ts +4 -4
- package/dist-types/commands/ListThesauriCommand.d.ts +2 -2
- package/dist-types/commands/PutPrincipalMappingCommand.d.ts +22 -28
- package/dist-types/commands/QueryCommand.d.ts +91 -215
- package/dist-types/commands/StartDataSourceSyncJobCommand.d.ts +3 -3
- package/dist-types/commands/StopDataSourceSyncJobCommand.d.ts +3 -3
- package/dist-types/commands/SubmitFeedbackCommand.d.ts +7 -7
- package/dist-types/commands/TagResourceCommand.d.ts +7 -8
- package/dist-types/commands/UntagResourceCommand.d.ts +4 -4
- package/dist-types/commands/UpdateAccessControlConfigurationCommand.d.ts +25 -25
- package/dist-types/commands/UpdateDataSourceCommand.d.ts +168 -338
- package/dist-types/commands/UpdateExperienceCommand.d.ts +8 -8
- package/dist-types/commands/UpdateFeaturedResultsSetCommand.d.ts +105 -0
- package/dist-types/commands/UpdateIndexCommand.d.ts +16 -15
- package/dist-types/commands/UpdateQuerySuggestionsBlockListCommand.d.ts +4 -4
- package/dist-types/commands/UpdateQuerySuggestionsConfigCommand.d.ts +2 -2
- package/dist-types/commands/UpdateThesaurusCommand.d.ts +3 -3
- package/dist-types/commands/index.d.ts +5 -0
- package/dist-types/endpoint/EndpointParameters.d.ts +1 -1
- package/dist-types/models/models_0.d.ts +1943 -1687
- package/dist-types/models/models_1.d.ts +491 -72
- package/dist-types/protocols/Aws_json1_1.d.ts +15 -0
- package/dist-types/ts3.4/Kendra.d.ts +85 -0
- package/dist-types/ts3.4/KendraClient.d.ts +30 -0
- package/dist-types/ts3.4/commands/BatchDeleteFeaturedResultsSetCommand.d.ts +41 -0
- package/dist-types/ts3.4/commands/CreateFeaturedResultsSetCommand.d.ts +41 -0
- package/dist-types/ts3.4/commands/DescribeFeaturedResultsSetCommand.d.ts +41 -0
- package/dist-types/ts3.4/commands/ListFeaturedResultsSetsCommand.d.ts +41 -0
- package/dist-types/ts3.4/commands/StartDataSourceSyncJobCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/StopDataSourceSyncJobCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/SubmitFeedbackCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/TagResourceCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/UntagResourceCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/UpdateAccessControlConfigurationCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/UpdateDataSourceCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/UpdateExperienceCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/UpdateFeaturedResultsSetCommand.d.ts +41 -0
- package/dist-types/ts3.4/commands/UpdateIndexCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/UpdateQuerySuggestionsBlockListCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/index.d.ts +5 -0
- package/dist-types/ts3.4/endpoint/EndpointParameters.d.ts +1 -1
- package/dist-types/ts3.4/models/models_0.d.ts +563 -453
- package/dist-types/ts3.4/models/models_1.d.ts +127 -0
- package/dist-types/ts3.4/protocols/Aws_json1_1.d.ts +60 -0
- package/package.json +34 -34
|
@@ -2,7 +2,7 @@ import { EndpointParameterInstructions } from "@aws-sdk/middleware-endpoint";
|
|
|
2
2
|
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
3
3
|
import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@aws-sdk/types";
|
|
4
4
|
import { KendraClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../KendraClient";
|
|
5
|
-
import { TagResourceRequest, TagResourceResponse } from "../models/
|
|
5
|
+
import { TagResourceRequest, TagResourceResponse } from "../models/models_1";
|
|
6
6
|
/**
|
|
7
7
|
* @public
|
|
8
8
|
*
|
|
@@ -19,19 +19,18 @@ export interface TagResourceCommandOutput extends TagResourceResponse, __Metadat
|
|
|
19
19
|
}
|
|
20
20
|
/**
|
|
21
21
|
* @public
|
|
22
|
-
* <p>Adds the specified tag to the specified index, FAQ, or data source
|
|
23
|
-
*
|
|
24
|
-
* the new value.</p>
|
|
22
|
+
* <p>Adds the specified tag to the specified index, FAQ, or data source resource. If the tag
|
|
23
|
+
* already exists, the existing value is replaced with the new value.</p>
|
|
25
24
|
* @example
|
|
26
25
|
* Use a bare-bones client and the command you need to make an API call.
|
|
27
26
|
* ```javascript
|
|
28
27
|
* import { KendraClient, TagResourceCommand } from "@aws-sdk/client-kendra"; // ES Modules import
|
|
29
28
|
* // const { KendraClient, TagResourceCommand } = require("@aws-sdk/client-kendra"); // CommonJS import
|
|
30
29
|
* const client = new KendraClient(config);
|
|
31
|
-
* const input = {
|
|
30
|
+
* const input = { // TagResourceRequest
|
|
32
31
|
* ResourceARN: "STRING_VALUE", // required
|
|
33
|
-
* Tags: [ // required
|
|
34
|
-
* {
|
|
32
|
+
* Tags: [ // TagList // required
|
|
33
|
+
* { // Tag
|
|
35
34
|
* Key: "STRING_VALUE", // required
|
|
36
35
|
* Value: "STRING_VALUE", // required
|
|
37
36
|
* },
|
|
@@ -53,7 +52,7 @@ export interface TagResourceCommandOutput extends TagResourceResponse, __Metadat
|
|
|
53
52
|
*
|
|
54
53
|
* @throws {@link InternalServerException} (server fault)
|
|
55
54
|
* <p>An issue occurred with the internal server used for your Amazon Kendra service.
|
|
56
|
-
* Please wait a few minutes and try again, or contact <a href="http://aws.amazon.com/
|
|
55
|
+
* Please wait a few minutes and try again, or contact <a href="http://aws.amazon.com/contact-us/">Support</a> for help.</p>
|
|
57
56
|
*
|
|
58
57
|
* @throws {@link ResourceUnavailableException} (client fault)
|
|
59
58
|
* <p>The resource you want to use isn't available. Please check you have provided the
|
|
@@ -2,7 +2,7 @@ import { EndpointParameterInstructions } from "@aws-sdk/middleware-endpoint";
|
|
|
2
2
|
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
3
3
|
import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@aws-sdk/types";
|
|
4
4
|
import { KendraClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../KendraClient";
|
|
5
|
-
import { UntagResourceRequest, UntagResourceResponse } from "../models/
|
|
5
|
+
import { UntagResourceRequest, UntagResourceResponse } from "../models/models_1";
|
|
6
6
|
/**
|
|
7
7
|
* @public
|
|
8
8
|
*
|
|
@@ -26,9 +26,9 @@ export interface UntagResourceCommandOutput extends UntagResourceResponse, __Met
|
|
|
26
26
|
* import { KendraClient, UntagResourceCommand } from "@aws-sdk/client-kendra"; // ES Modules import
|
|
27
27
|
* // const { KendraClient, UntagResourceCommand } = require("@aws-sdk/client-kendra"); // CommonJS import
|
|
28
28
|
* const client = new KendraClient(config);
|
|
29
|
-
* const input = {
|
|
29
|
+
* const input = { // UntagResourceRequest
|
|
30
30
|
* ResourceARN: "STRING_VALUE", // required
|
|
31
|
-
* TagKeys: [ // required
|
|
31
|
+
* TagKeys: [ // TagKeyList // required
|
|
32
32
|
* "STRING_VALUE",
|
|
33
33
|
* ],
|
|
34
34
|
* };
|
|
@@ -48,7 +48,7 @@ export interface UntagResourceCommandOutput extends UntagResourceResponse, __Met
|
|
|
48
48
|
*
|
|
49
49
|
* @throws {@link InternalServerException} (server fault)
|
|
50
50
|
* <p>An issue occurred with the internal server used for your Amazon Kendra service.
|
|
51
|
-
* Please wait a few minutes and try again, or contact <a href="http://aws.amazon.com/
|
|
51
|
+
* Please wait a few minutes and try again, or contact <a href="http://aws.amazon.com/contact-us/">Support</a> for help.</p>
|
|
52
52
|
*
|
|
53
53
|
* @throws {@link ResourceUnavailableException} (client fault)
|
|
54
54
|
* <p>The resource you want to use isn't available. Please check you have provided the
|
|
@@ -2,7 +2,7 @@ import { EndpointParameterInstructions } from "@aws-sdk/middleware-endpoint";
|
|
|
2
2
|
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
3
3
|
import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@aws-sdk/types";
|
|
4
4
|
import { KendraClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../KendraClient";
|
|
5
|
-
import { UpdateAccessControlConfigurationRequest, UpdateAccessControlConfigurationResponse } from "../models/
|
|
5
|
+
import { UpdateAccessControlConfigurationRequest, UpdateAccessControlConfigurationResponse } from "../models/models_1";
|
|
6
6
|
/**
|
|
7
7
|
* @public
|
|
8
8
|
*
|
|
@@ -19,47 +19,46 @@ export interface UpdateAccessControlConfigurationCommandOutput extends UpdateAcc
|
|
|
19
19
|
}
|
|
20
20
|
/**
|
|
21
21
|
* @public
|
|
22
|
-
* <p>Updates an access control configuration for your documents in an index. This
|
|
23
|
-
*
|
|
24
|
-
*
|
|
25
|
-
*
|
|
26
|
-
* <p>You can update an access control configuration you created without indexing all
|
|
27
|
-
*
|
|
28
|
-
*
|
|
29
|
-
*
|
|
30
|
-
*
|
|
31
|
-
*
|
|
32
|
-
*
|
|
33
|
-
*
|
|
22
|
+
* <p>Updates an access control configuration for your documents in an index. This includes
|
|
23
|
+
* user and group access information for your documents. This is useful for user context
|
|
24
|
+
* filtering, where search results are filtered based on the user or their group access to
|
|
25
|
+
* documents.</p>
|
|
26
|
+
* <p>You can update an access control configuration you created without indexing all of
|
|
27
|
+
* your documents again. For example, your index contains top-secret company documents that
|
|
28
|
+
* only certain employees or users should access. You created an 'allow' access control
|
|
29
|
+
* configuration for one user who recently joined the 'top-secret' team, switching from a
|
|
30
|
+
* team with 'deny' access to top-secret documents. However, the user suddenly returns to
|
|
31
|
+
* their previous team and should no longer have access to top secret documents. You can
|
|
32
|
+
* update the access control configuration to re-configure access control for your
|
|
33
|
+
* documents as circumstances change.</p>
|
|
34
34
|
* <p>You call the <a href="https://docs.aws.amazon.com/kendra/latest/dg/API_BatchPutDocument.html">BatchPutDocument</a> API to
|
|
35
35
|
* apply the updated access control configuration, with the
|
|
36
|
-
* <code>AccessControlConfigurationId</code> included in the
|
|
37
|
-
* <a href="https://docs.aws.amazon.com/kendra/latest/dg/API_Document.html">Document</a>
|
|
36
|
+
* <code>AccessControlConfigurationId</code> included in the <a href="https://docs.aws.amazon.com/kendra/latest/dg/API_Document.html">Document</a>
|
|
38
37
|
* object. If you use an S3 bucket as a data source, you synchronize your data source to
|
|
39
|
-
* apply the <code>AccessControlConfigurationId</code> in the <code>.metadata.json</code>
|
|
40
|
-
* Amazon Kendra currently only supports access control configuration for S3
|
|
41
|
-
* sources and documents indexed using the <code>BatchPutDocument</code> API.</p>
|
|
38
|
+
* apply the <code>AccessControlConfigurationId</code> in the <code>.metadata.json</code>
|
|
39
|
+
* file. Amazon Kendra currently only supports access control configuration for S3
|
|
40
|
+
* data sources and documents indexed using the <code>BatchPutDocument</code> API.</p>
|
|
42
41
|
* @example
|
|
43
42
|
* Use a bare-bones client and the command you need to make an API call.
|
|
44
43
|
* ```javascript
|
|
45
44
|
* import { KendraClient, UpdateAccessControlConfigurationCommand } from "@aws-sdk/client-kendra"; // ES Modules import
|
|
46
45
|
* // const { KendraClient, UpdateAccessControlConfigurationCommand } = require("@aws-sdk/client-kendra"); // CommonJS import
|
|
47
46
|
* const client = new KendraClient(config);
|
|
48
|
-
* const input = {
|
|
47
|
+
* const input = { // UpdateAccessControlConfigurationRequest
|
|
49
48
|
* IndexId: "STRING_VALUE", // required
|
|
50
49
|
* Id: "STRING_VALUE", // required
|
|
51
50
|
* Name: "STRING_VALUE",
|
|
52
51
|
* Description: "STRING_VALUE",
|
|
53
|
-
* AccessControlList: [
|
|
54
|
-
* {
|
|
52
|
+
* AccessControlList: [ // PrincipalList
|
|
53
|
+
* { // Principal
|
|
55
54
|
* Name: "STRING_VALUE", // required
|
|
56
55
|
* Type: "USER" || "GROUP", // required
|
|
57
56
|
* Access: "ALLOW" || "DENY", // required
|
|
58
57
|
* DataSourceId: "STRING_VALUE",
|
|
59
58
|
* },
|
|
60
59
|
* ],
|
|
61
|
-
* HierarchicalAccessControlList: [
|
|
62
|
-
* {
|
|
60
|
+
* HierarchicalAccessControlList: [ // HierarchicalPrincipalList
|
|
61
|
+
* { // HierarchicalPrincipal
|
|
63
62
|
* PrincipalList: [ // required
|
|
64
63
|
* {
|
|
65
64
|
* Name: "STRING_VALUE", // required
|
|
@@ -91,7 +90,7 @@ export interface UpdateAccessControlConfigurationCommandOutput extends UpdateAcc
|
|
|
91
90
|
*
|
|
92
91
|
* @throws {@link InternalServerException} (server fault)
|
|
93
92
|
* <p>An issue occurred with the internal server used for your Amazon Kendra service.
|
|
94
|
-
* Please wait a few minutes and try again, or contact <a href="http://aws.amazon.com/
|
|
93
|
+
* Please wait a few minutes and try again, or contact <a href="http://aws.amazon.com/contact-us/">Support</a> for help.</p>
|
|
95
94
|
*
|
|
96
95
|
* @throws {@link ResourceNotFoundException} (client fault)
|
|
97
96
|
* <p>The resource you want to use doesn’t exist. Please check you have provided the correct
|
|
@@ -99,7 +98,8 @@ export interface UpdateAccessControlConfigurationCommandOutput extends UpdateAcc
|
|
|
99
98
|
*
|
|
100
99
|
* @throws {@link ServiceQuotaExceededException} (client fault)
|
|
101
100
|
* <p>You have exceeded the set limits for your Amazon Kendra service. Please see
|
|
102
|
-
*
|
|
101
|
+
* <a href="https://docs.aws.amazon.com/kendra/latest/dg/quotas.html">Quotas</a> for
|
|
102
|
+
* more information, or contact <a href="http://aws.amazon.com/contact-us/">Support</a> to inquire about
|
|
103
103
|
* an increase of limits.</p>
|
|
104
104
|
*
|
|
105
105
|
* @throws {@link ThrottlingException} (client fault)
|