@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.
Files changed (69) hide show
  1. package/CHANGELOG.md +32 -0
  2. package/dist-cjs/Kendra.js +75 -0
  3. package/dist-cjs/commands/CreateAccessControlConfigurationCommand.js +36 -0
  4. package/dist-cjs/commands/DeleteAccessControlConfigurationCommand.js +36 -0
  5. package/dist-cjs/commands/DescribeAccessControlConfigurationCommand.js +36 -0
  6. package/dist-cjs/commands/ListAccessControlConfigurationsCommand.js +36 -0
  7. package/dist-cjs/commands/QueryCommand.js +2 -1
  8. package/dist-cjs/commands/UpdateAccessControlConfigurationCommand.js +36 -0
  9. package/dist-cjs/commands/index.js +5 -0
  10. package/dist-cjs/models/index.js +1 -0
  11. package/dist-cjs/models/models_0.js +72 -12
  12. package/dist-cjs/models/models_1.js +9 -0
  13. package/dist-cjs/pagination/ListAccessControlConfigurationsPaginator.js +36 -0
  14. package/dist-cjs/pagination/index.js +1 -0
  15. package/dist-cjs/protocols/Aws_json1_1.js +450 -3
  16. package/dist-es/Kendra.js +75 -0
  17. package/dist-es/commands/CreateAccessControlConfigurationCommand.js +39 -0
  18. package/dist-es/commands/DeleteAccessControlConfigurationCommand.js +39 -0
  19. package/dist-es/commands/DescribeAccessControlConfigurationCommand.js +39 -0
  20. package/dist-es/commands/ListAccessControlConfigurationsCommand.js +39 -0
  21. package/dist-es/commands/QueryCommand.js +2 -1
  22. package/dist-es/commands/UpdateAccessControlConfigurationCommand.js +39 -0
  23. package/dist-es/commands/index.js +5 -0
  24. package/dist-es/models/index.js +1 -0
  25. package/dist-es/models/models_0.js +44 -4
  26. package/dist-es/models/models_1.js +5 -0
  27. package/dist-es/pagination/ListAccessControlConfigurationsPaginator.js +75 -0
  28. package/dist-es/pagination/index.js +1 -0
  29. package/dist-es/protocols/Aws_json1_1.js +523 -1
  30. package/dist-types/Kendra.d.ts +99 -11
  31. package/dist-types/KendraClient.d.ts +7 -2
  32. package/dist-types/commands/CreateAccessControlConfigurationCommand.d.ts +59 -0
  33. package/dist-types/commands/CreateFaqCommand.d.ts +1 -1
  34. package/dist-types/commands/CreateIndexCommand.d.ts +1 -1
  35. package/dist-types/commands/DeleteAccessControlConfigurationCommand.d.ts +38 -0
  36. package/dist-types/commands/DescribeAccessControlConfigurationCommand.d.ts +38 -0
  37. package/dist-types/commands/DescribeIndexCommand.d.ts +1 -1
  38. package/dist-types/commands/DescribeQuerySuggestionsBlockListCommand.d.ts +2 -1
  39. package/dist-types/commands/DescribeQuerySuggestionsConfigCommand.d.ts +1 -1
  40. package/dist-types/commands/DescribeThesaurusCommand.d.ts +1 -1
  41. package/dist-types/commands/ListAccessControlConfigurationsCommand.d.ts +38 -0
  42. package/dist-types/commands/ListThesauriCommand.d.ts +1 -1
  43. package/dist-types/commands/PutPrincipalMappingCommand.d.ts +3 -3
  44. package/dist-types/commands/QueryCommand.d.ts +2 -1
  45. package/dist-types/commands/UpdateAccessControlConfigurationCommand.d.ts +54 -0
  46. package/dist-types/commands/UpdateThesaurusCommand.d.ts +1 -1
  47. package/dist-types/commands/index.d.ts +5 -0
  48. package/dist-types/models/index.d.ts +1 -0
  49. package/dist-types/models/models_0.d.ts +411 -271
  50. package/dist-types/models/models_1.d.ts +95 -0
  51. package/dist-types/pagination/ListAccessControlConfigurationsPaginator.d.ts +4 -0
  52. package/dist-types/pagination/index.d.ts +1 -0
  53. package/dist-types/protocols/Aws_json1_1.d.ts +15 -0
  54. package/dist-types/ts3.4/Kendra.d.ts +25 -0
  55. package/dist-types/ts3.4/KendraClient.d.ts +7 -2
  56. package/dist-types/ts3.4/commands/CreateAccessControlConfigurationCommand.d.ts +17 -0
  57. package/dist-types/ts3.4/commands/DeleteAccessControlConfigurationCommand.d.ts +17 -0
  58. package/dist-types/ts3.4/commands/DescribeAccessControlConfigurationCommand.d.ts +17 -0
  59. package/dist-types/ts3.4/commands/ListAccessControlConfigurationsCommand.d.ts +17 -0
  60. package/dist-types/ts3.4/commands/QueryCommand.d.ts +2 -1
  61. package/dist-types/ts3.4/commands/UpdateAccessControlConfigurationCommand.d.ts +17 -0
  62. package/dist-types/ts3.4/commands/index.d.ts +5 -0
  63. package/dist-types/ts3.4/models/index.d.ts +1 -0
  64. package/dist-types/ts3.4/models/models_0.d.ts +125 -32
  65. package/dist-types/ts3.4/models/models_1.d.ts +33 -0
  66. package/dist-types/ts3.4/pagination/ListAccessControlConfigurationsPaginator.d.ts +4 -0
  67. package/dist-types/ts3.4/pagination/index.d.ts +1 -0
  68. package/dist-types/ts3.4/protocols/Aws_json1_1.d.ts +15 -0
  69. 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 file associated with an index.</p>
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";
@@ -1 +1,2 @@
1
1
  export * from "./models_0";
2
+ export * from "./models_1";