@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.
Files changed (118) hide show
  1. package/README.md +40 -0
  2. package/dist-cjs/Kendra.js +75 -0
  3. package/dist-cjs/commands/BatchDeleteFeaturedResultsSetCommand.js +45 -0
  4. package/dist-cjs/commands/CreateFeaturedResultsSetCommand.js +45 -0
  5. package/dist-cjs/commands/DescribeFeaturedResultsSetCommand.js +45 -0
  6. package/dist-cjs/commands/ListFeaturedResultsSetsCommand.js +45 -0
  7. package/dist-cjs/commands/UpdateFeaturedResultsSetCommand.js +45 -0
  8. package/dist-cjs/commands/index.js +5 -0
  9. package/dist-cjs/endpoint/ruleset.js +3 -3
  10. package/dist-cjs/models/models_0.js +381 -438
  11. package/dist-cjs/models/models_1.js +20 -0
  12. package/dist-cjs/protocols/Aws_json1_1.js +597 -4
  13. package/dist-es/Kendra.js +75 -0
  14. package/dist-es/commands/BatchDeleteFeaturedResultsSetCommand.js +41 -0
  15. package/dist-es/commands/CreateFeaturedResultsSetCommand.js +41 -0
  16. package/dist-es/commands/DescribeFeaturedResultsSetCommand.js +41 -0
  17. package/dist-es/commands/ListFeaturedResultsSetsCommand.js +41 -0
  18. package/dist-es/commands/UpdateFeaturedResultsSetCommand.js +41 -0
  19. package/dist-es/commands/index.js +5 -0
  20. package/dist-es/endpoint/ruleset.js +3 -3
  21. package/dist-es/models/models_0.js +377 -434
  22. package/dist-es/models/models_1.js +18 -1
  23. package/dist-es/protocols/Aws_json1_1.js +584 -1
  24. package/dist-types/Kendra.d.ts +163 -132
  25. package/dist-types/KendraClient.d.ts +7 -2
  26. package/dist-types/commands/AssociateEntitiesToExperienceCommand.d.ts +4 -4
  27. package/dist-types/commands/AssociatePersonasToEntitiesCommand.d.ts +4 -4
  28. package/dist-types/commands/BatchDeleteDocumentCommand.d.ts +9 -9
  29. package/dist-types/commands/BatchDeleteFeaturedResultsSetCommand.d.ts +88 -0
  30. package/dist-types/commands/BatchGetDocumentStatusCommand.d.ts +16 -20
  31. package/dist-types/commands/BatchPutDocumentCommand.d.ts +32 -31
  32. package/dist-types/commands/ClearQuerySuggestionsCommand.d.ts +2 -2
  33. package/dist-types/commands/CreateAccessControlConfigurationCommand.d.ts +22 -25
  34. package/dist-types/commands/CreateDataSourceCommand.d.ts +171 -342
  35. package/dist-types/commands/CreateExperienceCommand.d.ts +9 -8
  36. package/dist-types/commands/CreateFaqCommand.d.ts +10 -10
  37. package/dist-types/commands/CreateFeaturedResultsSetCommand.d.ts +117 -0
  38. package/dist-types/commands/CreateIndexCommand.d.ts +12 -11
  39. package/dist-types/commands/CreateQuerySuggestionsBlockListCommand.d.ts +7 -6
  40. package/dist-types/commands/CreateThesaurusCommand.d.ts +7 -6
  41. package/dist-types/commands/DeleteAccessControlConfigurationCommand.d.ts +6 -6
  42. package/dist-types/commands/DeleteDataSourceCommand.d.ts +2 -2
  43. package/dist-types/commands/DeleteExperienceCommand.d.ts +2 -2
  44. package/dist-types/commands/DeleteFaqCommand.d.ts +2 -2
  45. package/dist-types/commands/DeleteIndexCommand.d.ts +2 -2
  46. package/dist-types/commands/DeletePrincipalMappingCommand.d.ts +14 -16
  47. package/dist-types/commands/DeleteQuerySuggestionsBlockListCommand.d.ts +2 -2
  48. package/dist-types/commands/DeleteThesaurusCommand.d.ts +2 -2
  49. package/dist-types/commands/DescribeAccessControlConfigurationCommand.d.ts +4 -4
  50. package/dist-types/commands/DescribeDataSourceCommand.d.ts +2 -2
  51. package/dist-types/commands/DescribeExperienceCommand.d.ts +2 -2
  52. package/dist-types/commands/DescribeFaqCommand.d.ts +2 -2
  53. package/dist-types/commands/DescribeFeaturedResultsSetCommand.d.ts +86 -0
  54. package/dist-types/commands/DescribeIndexCommand.d.ts +2 -2
  55. package/dist-types/commands/DescribePrincipalMappingCommand.d.ts +9 -10
  56. package/dist-types/commands/DescribeQuerySuggestionsBlockListCommand.d.ts +2 -2
  57. package/dist-types/commands/DescribeQuerySuggestionsConfigCommand.d.ts +2 -2
  58. package/dist-types/commands/DescribeThesaurusCommand.d.ts +2 -2
  59. package/dist-types/commands/DisassociateEntitiesFromExperienceCommand.d.ts +4 -4
  60. package/dist-types/commands/DisassociatePersonasFromEntitiesCommand.d.ts +3 -3
  61. package/dist-types/commands/GetQuerySuggestionsCommand.d.ts +4 -3
  62. package/dist-types/commands/GetSnapshotsCommand.d.ts +4 -5
  63. package/dist-types/commands/ListAccessControlConfigurationsCommand.d.ts +6 -6
  64. package/dist-types/commands/ListDataSourceSyncJobsCommand.d.ts +3 -3
  65. package/dist-types/commands/ListDataSourcesCommand.d.ts +2 -2
  66. package/dist-types/commands/ListEntityPersonasCommand.d.ts +2 -2
  67. package/dist-types/commands/ListExperienceEntitiesCommand.d.ts +2 -2
  68. package/dist-types/commands/ListExperiencesCommand.d.ts +2 -2
  69. package/dist-types/commands/ListFaqsCommand.d.ts +2 -2
  70. package/dist-types/commands/ListFeaturedResultsSetsCommand.d.ts +87 -0
  71. package/dist-types/commands/ListGroupsOlderThanOrderingIdCommand.d.ts +5 -6
  72. package/dist-types/commands/ListIndicesCommand.d.ts +2 -2
  73. package/dist-types/commands/ListQuerySuggestionsBlockListsCommand.d.ts +2 -2
  74. package/dist-types/commands/ListTagsForResourceCommand.d.ts +4 -4
  75. package/dist-types/commands/ListThesauriCommand.d.ts +2 -2
  76. package/dist-types/commands/PutPrincipalMappingCommand.d.ts +22 -28
  77. package/dist-types/commands/QueryCommand.d.ts +91 -215
  78. package/dist-types/commands/StartDataSourceSyncJobCommand.d.ts +3 -3
  79. package/dist-types/commands/StopDataSourceSyncJobCommand.d.ts +3 -3
  80. package/dist-types/commands/SubmitFeedbackCommand.d.ts +7 -7
  81. package/dist-types/commands/TagResourceCommand.d.ts +7 -8
  82. package/dist-types/commands/UntagResourceCommand.d.ts +4 -4
  83. package/dist-types/commands/UpdateAccessControlConfigurationCommand.d.ts +25 -25
  84. package/dist-types/commands/UpdateDataSourceCommand.d.ts +168 -338
  85. package/dist-types/commands/UpdateExperienceCommand.d.ts +8 -8
  86. package/dist-types/commands/UpdateFeaturedResultsSetCommand.d.ts +105 -0
  87. package/dist-types/commands/UpdateIndexCommand.d.ts +16 -15
  88. package/dist-types/commands/UpdateQuerySuggestionsBlockListCommand.d.ts +4 -4
  89. package/dist-types/commands/UpdateQuerySuggestionsConfigCommand.d.ts +2 -2
  90. package/dist-types/commands/UpdateThesaurusCommand.d.ts +3 -3
  91. package/dist-types/commands/index.d.ts +5 -0
  92. package/dist-types/endpoint/EndpointParameters.d.ts +1 -1
  93. package/dist-types/models/models_0.d.ts +1943 -1687
  94. package/dist-types/models/models_1.d.ts +491 -72
  95. package/dist-types/protocols/Aws_json1_1.d.ts +15 -0
  96. package/dist-types/ts3.4/Kendra.d.ts +85 -0
  97. package/dist-types/ts3.4/KendraClient.d.ts +30 -0
  98. package/dist-types/ts3.4/commands/BatchDeleteFeaturedResultsSetCommand.d.ts +41 -0
  99. package/dist-types/ts3.4/commands/CreateFeaturedResultsSetCommand.d.ts +41 -0
  100. package/dist-types/ts3.4/commands/DescribeFeaturedResultsSetCommand.d.ts +41 -0
  101. package/dist-types/ts3.4/commands/ListFeaturedResultsSetsCommand.d.ts +41 -0
  102. package/dist-types/ts3.4/commands/StartDataSourceSyncJobCommand.d.ts +1 -1
  103. package/dist-types/ts3.4/commands/StopDataSourceSyncJobCommand.d.ts +1 -1
  104. package/dist-types/ts3.4/commands/SubmitFeedbackCommand.d.ts +1 -1
  105. package/dist-types/ts3.4/commands/TagResourceCommand.d.ts +1 -1
  106. package/dist-types/ts3.4/commands/UntagResourceCommand.d.ts +1 -1
  107. package/dist-types/ts3.4/commands/UpdateAccessControlConfigurationCommand.d.ts +1 -1
  108. package/dist-types/ts3.4/commands/UpdateDataSourceCommand.d.ts +1 -1
  109. package/dist-types/ts3.4/commands/UpdateExperienceCommand.d.ts +1 -1
  110. package/dist-types/ts3.4/commands/UpdateFeaturedResultsSetCommand.d.ts +41 -0
  111. package/dist-types/ts3.4/commands/UpdateIndexCommand.d.ts +1 -1
  112. package/dist-types/ts3.4/commands/UpdateQuerySuggestionsBlockListCommand.d.ts +1 -1
  113. package/dist-types/ts3.4/commands/index.d.ts +5 -0
  114. package/dist-types/ts3.4/endpoint/EndpointParameters.d.ts +1 -1
  115. package/dist-types/ts3.4/models/models_0.d.ts +563 -453
  116. package/dist-types/ts3.4/models/models_1.d.ts +127 -0
  117. package/dist-types/ts3.4/protocols/Aws_json1_1.d.ts +60 -0
  118. 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/models_0";
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
- * resource. If the tag already exists, the existing value is replaced with
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/aws.amazon.com/contact-us"> Support</a> for help.</p>
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/models_0";
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/aws.amazon.com/contact-us"> Support</a> for help.</p>
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/models_0";
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
- * includes user and group access information for your documents. This is useful
24
- * for user context filtering, where search results are filtered based on the user
25
- * or their group access to documents.</p>
26
- * <p>You can update an access control configuration you created without indexing all
27
- * of your documents again. For example, your index contains top-secret company
28
- * documents that only certain employees or users should access. You created an 'allow'
29
- * access control configuration for one user who recently joined the 'top-secret' team,
30
- * switching from a team with 'deny' access to top-secret documents. However, the user
31
- * suddenly returns to their previous team and should no longer have access to top secret
32
- * documents. You can update the access control configuration to re-configure access
33
- * control for your documents as circumstances change.</p>
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> file.
40
- * Amazon Kendra currently only supports access control configuration for S3 data
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/aws.amazon.com/contact-us"> Support</a> for help.</p>
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
- * Quotas[hyperlink Kendra Quotas pg] for more information, or contact <a href="http://aws.amazon.com/aws.amazon.com/contact-us"> Support</a> to inquire about
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)