@aws-sdk/client-kendra 3.127.0 → 3.131.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/CHANGELOG.md +32 -0
- package/dist-cjs/Kendra.js +75 -0
- package/dist-cjs/commands/CreateAccessControlConfigurationCommand.js +36 -0
- package/dist-cjs/commands/DeleteAccessControlConfigurationCommand.js +36 -0
- package/dist-cjs/commands/DescribeAccessControlConfigurationCommand.js +36 -0
- package/dist-cjs/commands/ListAccessControlConfigurationsCommand.js +36 -0
- package/dist-cjs/commands/QueryCommand.js +2 -1
- package/dist-cjs/commands/UpdateAccessControlConfigurationCommand.js +36 -0
- package/dist-cjs/commands/index.js +5 -0
- package/dist-cjs/models/index.js +1 -0
- package/dist-cjs/models/models_0.js +72 -12
- package/dist-cjs/models/models_1.js +9 -0
- package/dist-cjs/pagination/ListAccessControlConfigurationsPaginator.js +36 -0
- package/dist-cjs/pagination/index.js +1 -0
- package/dist-cjs/protocols/Aws_json1_1.js +450 -3
- package/dist-es/Kendra.js +75 -0
- package/dist-es/commands/CreateAccessControlConfigurationCommand.js +39 -0
- package/dist-es/commands/DeleteAccessControlConfigurationCommand.js +39 -0
- package/dist-es/commands/DescribeAccessControlConfigurationCommand.js +39 -0
- package/dist-es/commands/ListAccessControlConfigurationsCommand.js +39 -0
- package/dist-es/commands/QueryCommand.js +2 -1
- package/dist-es/commands/UpdateAccessControlConfigurationCommand.js +39 -0
- package/dist-es/commands/index.js +5 -0
- package/dist-es/models/index.js +1 -0
- package/dist-es/models/models_0.js +44 -4
- package/dist-es/models/models_1.js +5 -0
- package/dist-es/pagination/ListAccessControlConfigurationsPaginator.js +75 -0
- package/dist-es/pagination/index.js +1 -0
- package/dist-es/protocols/Aws_json1_1.js +523 -1
- package/dist-types/Kendra.d.ts +99 -11
- package/dist-types/KendraClient.d.ts +7 -2
- package/dist-types/commands/CreateAccessControlConfigurationCommand.d.ts +59 -0
- package/dist-types/commands/CreateFaqCommand.d.ts +1 -1
- package/dist-types/commands/CreateIndexCommand.d.ts +1 -1
- package/dist-types/commands/DeleteAccessControlConfigurationCommand.d.ts +38 -0
- package/dist-types/commands/DescribeAccessControlConfigurationCommand.d.ts +38 -0
- package/dist-types/commands/DescribeIndexCommand.d.ts +1 -1
- package/dist-types/commands/DescribeQuerySuggestionsBlockListCommand.d.ts +2 -1
- package/dist-types/commands/DescribeQuerySuggestionsConfigCommand.d.ts +1 -1
- package/dist-types/commands/DescribeThesaurusCommand.d.ts +1 -1
- package/dist-types/commands/ListAccessControlConfigurationsCommand.d.ts +38 -0
- package/dist-types/commands/ListThesauriCommand.d.ts +1 -1
- package/dist-types/commands/PutPrincipalMappingCommand.d.ts +3 -3
- package/dist-types/commands/QueryCommand.d.ts +2 -1
- package/dist-types/commands/UpdateAccessControlConfigurationCommand.d.ts +54 -0
- package/dist-types/commands/UpdateThesaurusCommand.d.ts +1 -1
- package/dist-types/commands/index.d.ts +5 -0
- package/dist-types/models/index.d.ts +1 -0
- package/dist-types/models/models_0.d.ts +411 -271
- package/dist-types/models/models_1.d.ts +95 -0
- package/dist-types/pagination/ListAccessControlConfigurationsPaginator.d.ts +4 -0
- package/dist-types/pagination/index.d.ts +1 -0
- package/dist-types/protocols/Aws_json1_1.d.ts +15 -0
- package/dist-types/ts3.4/Kendra.d.ts +25 -0
- package/dist-types/ts3.4/KendraClient.d.ts +7 -2
- package/dist-types/ts3.4/commands/CreateAccessControlConfigurationCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/DeleteAccessControlConfigurationCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/DescribeAccessControlConfigurationCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/ListAccessControlConfigurationsCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/QueryCommand.d.ts +2 -1
- package/dist-types/ts3.4/commands/UpdateAccessControlConfigurationCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/index.d.ts +5 -0
- package/dist-types/ts3.4/models/index.d.ts +1 -0
- package/dist-types/ts3.4/models/models_0.d.ts +125 -32
- package/dist-types/ts3.4/models/models_1.d.ts +33 -0
- package/dist-types/ts3.4/pagination/ListAccessControlConfigurationsPaginator.d.ts +4 -0
- package/dist-types/ts3.4/pagination/index.d.ts +1 -0
- package/dist-types/ts3.4/protocols/Aws_json1_1.d.ts +15 -0
- package/package.json +7 -7
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
2
|
+
import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@aws-sdk/types";
|
|
3
|
+
import { KendraClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../KendraClient";
|
|
4
|
+
import { UpdateAccessControlConfigurationRequest, UpdateAccessControlConfigurationResponse } from "../models/models_0";
|
|
5
|
+
export interface UpdateAccessControlConfigurationCommandInput extends UpdateAccessControlConfigurationRequest {
|
|
6
|
+
}
|
|
7
|
+
export interface UpdateAccessControlConfigurationCommandOutput extends UpdateAccessControlConfigurationResponse, __MetadataBearer {
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* <p>Updates an access control configuration for your documents in an index. This
|
|
11
|
+
* includes user and group access information for your documents. This is useful
|
|
12
|
+
* for user context filtering, where search results are filtered based on the user
|
|
13
|
+
* or their group access to documents.</p>
|
|
14
|
+
* <p>You can update an access control configuration you created without indexing all
|
|
15
|
+
* of your documents again. For example, your index contains top-secret company
|
|
16
|
+
* documents that only certain employees or users should access. You created an 'allow'
|
|
17
|
+
* access control configuration for one user who recently joined the 'top-secret' team,
|
|
18
|
+
* switching from a team with 'deny' access to top-secret documents. However, the user
|
|
19
|
+
* suddenly returns to their previous team and should no longer have access to top secret
|
|
20
|
+
* documents. You can update the access control configuration to re-configure access
|
|
21
|
+
* control for your documents as circumstances change.</p>
|
|
22
|
+
* <p>You call the <a href="https://docs.aws.amazon.com/kendra/latest/dg/API_BatchPutDocument.html">BatchPutDocument</a>
|
|
23
|
+
* API to apply the updated access control configuration, with the
|
|
24
|
+
* <code>AccessControlConfigurationId</code> included in the
|
|
25
|
+
* <a href="https://docs.aws.amazon.com/kendra/latest/dg/API_Document.html">Document</a>
|
|
26
|
+
* object. If you use an S3 bucket as a data source, you synchronize your data source to
|
|
27
|
+
* apply the the <code>AccessControlConfigurationId</code> in the <code>.metadata.json</code> file.
|
|
28
|
+
* Amazon Kendra currently only supports access control configuration for S3 data
|
|
29
|
+
* sources and documents indexed using the <code>BatchPutDocument</code> API.</p>
|
|
30
|
+
* @example
|
|
31
|
+
* Use a bare-bones client and the command you need to make an API call.
|
|
32
|
+
* ```javascript
|
|
33
|
+
* import { KendraClient, UpdateAccessControlConfigurationCommand } from "@aws-sdk/client-kendra"; // ES Modules import
|
|
34
|
+
* // const { KendraClient, UpdateAccessControlConfigurationCommand } = require("@aws-sdk/client-kendra"); // CommonJS import
|
|
35
|
+
* const client = new KendraClient(config);
|
|
36
|
+
* const command = new UpdateAccessControlConfigurationCommand(input);
|
|
37
|
+
* const response = await client.send(command);
|
|
38
|
+
* ```
|
|
39
|
+
*
|
|
40
|
+
* @see {@link UpdateAccessControlConfigurationCommandInput} for command's `input` shape.
|
|
41
|
+
* @see {@link UpdateAccessControlConfigurationCommandOutput} for command's `response` shape.
|
|
42
|
+
* @see {@link KendraClientResolvedConfig | config} for KendraClient's `config` shape.
|
|
43
|
+
*
|
|
44
|
+
*/
|
|
45
|
+
export declare class UpdateAccessControlConfigurationCommand extends $Command<UpdateAccessControlConfigurationCommandInput, UpdateAccessControlConfigurationCommandOutput, KendraClientResolvedConfig> {
|
|
46
|
+
readonly input: UpdateAccessControlConfigurationCommandInput;
|
|
47
|
+
constructor(input: UpdateAccessControlConfigurationCommandInput);
|
|
48
|
+
/**
|
|
49
|
+
* @internal
|
|
50
|
+
*/
|
|
51
|
+
resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: KendraClientResolvedConfig, options?: __HttpHandlerOptions): Handler<UpdateAccessControlConfigurationCommandInput, UpdateAccessControlConfigurationCommandOutput>;
|
|
52
|
+
private serialize;
|
|
53
|
+
private deserialize;
|
|
54
|
+
}
|
|
@@ -7,7 +7,7 @@ export interface UpdateThesaurusCommandInput extends UpdateThesaurusRequest {
|
|
|
7
7
|
export interface UpdateThesaurusCommandOutput extends __MetadataBearer {
|
|
8
8
|
}
|
|
9
9
|
/**
|
|
10
|
-
* <p>Updates a thesaurus
|
|
10
|
+
* <p>Updates a thesaurus for an index.</p>
|
|
11
11
|
* @example
|
|
12
12
|
* Use a bare-bones client and the command you need to make an API call.
|
|
13
13
|
* ```javascript
|
|
@@ -4,12 +4,14 @@ export * from "./BatchDeleteDocumentCommand";
|
|
|
4
4
|
export * from "./BatchGetDocumentStatusCommand";
|
|
5
5
|
export * from "./BatchPutDocumentCommand";
|
|
6
6
|
export * from "./ClearQuerySuggestionsCommand";
|
|
7
|
+
export * from "./CreateAccessControlConfigurationCommand";
|
|
7
8
|
export * from "./CreateDataSourceCommand";
|
|
8
9
|
export * from "./CreateExperienceCommand";
|
|
9
10
|
export * from "./CreateFaqCommand";
|
|
10
11
|
export * from "./CreateIndexCommand";
|
|
11
12
|
export * from "./CreateQuerySuggestionsBlockListCommand";
|
|
12
13
|
export * from "./CreateThesaurusCommand";
|
|
14
|
+
export * from "./DeleteAccessControlConfigurationCommand";
|
|
13
15
|
export * from "./DeleteDataSourceCommand";
|
|
14
16
|
export * from "./DeleteExperienceCommand";
|
|
15
17
|
export * from "./DeleteFaqCommand";
|
|
@@ -17,6 +19,7 @@ export * from "./DeleteIndexCommand";
|
|
|
17
19
|
export * from "./DeletePrincipalMappingCommand";
|
|
18
20
|
export * from "./DeleteQuerySuggestionsBlockListCommand";
|
|
19
21
|
export * from "./DeleteThesaurusCommand";
|
|
22
|
+
export * from "./DescribeAccessControlConfigurationCommand";
|
|
20
23
|
export * from "./DescribeDataSourceCommand";
|
|
21
24
|
export * from "./DescribeExperienceCommand";
|
|
22
25
|
export * from "./DescribeFaqCommand";
|
|
@@ -29,6 +32,7 @@ export * from "./DisassociateEntitiesFromExperienceCommand";
|
|
|
29
32
|
export * from "./DisassociatePersonasFromEntitiesCommand";
|
|
30
33
|
export * from "./GetQuerySuggestionsCommand";
|
|
31
34
|
export * from "./GetSnapshotsCommand";
|
|
35
|
+
export * from "./ListAccessControlConfigurationsCommand";
|
|
32
36
|
export * from "./ListDataSourceSyncJobsCommand";
|
|
33
37
|
export * from "./ListDataSourcesCommand";
|
|
34
38
|
export * from "./ListEntityPersonasCommand";
|
|
@@ -47,6 +51,7 @@ export * from "./StopDataSourceSyncJobCommand";
|
|
|
47
51
|
export * from "./SubmitFeedbackCommand";
|
|
48
52
|
export * from "./TagResourceCommand";
|
|
49
53
|
export * from "./UntagResourceCommand";
|
|
54
|
+
export * from "./UpdateAccessControlConfigurationCommand";
|
|
50
55
|
export * from "./UpdateDataSourceCommand";
|
|
51
56
|
export * from "./UpdateExperienceCommand";
|
|
52
57
|
export * from "./UpdateIndexCommand";
|