@aws-sdk/client-kendra 3.299.0 → 3.301.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/dist-types/commands/AssociateEntitiesToExperienceCommand.d.ts +10 -0
- package/dist-types/commands/AssociatePersonasToEntitiesCommand.d.ts +10 -0
- package/dist-types/commands/BatchDeleteDocumentCommand.d.ts +10 -0
- package/dist-types/commands/BatchGetDocumentStatusCommand.d.ts +21 -0
- package/dist-types/commands/BatchPutDocumentCommand.d.ts +114 -0
- package/dist-types/commands/ClearQuerySuggestionsCommand.d.ts +3 -0
- package/dist-types/commands/CreateAccessControlConfigurationCommand.d.ts +26 -0
- package/dist-types/commands/CreateDataSourceCommand.d.ts +569 -0
- package/dist-types/commands/CreateExperienceCommand.d.ts +21 -0
- package/dist-types/commands/CreateFaqCommand.d.ts +19 -0
- package/dist-types/commands/CreateIndexCommand.d.ts +37 -0
- package/dist-types/commands/CreateQuerySuggestionsBlockListCommand.d.ts +17 -0
- package/dist-types/commands/CreateThesaurusCommand.d.ts +17 -0
- package/dist-types/commands/DeleteAccessControlConfigurationCommand.d.ts +4 -0
- package/dist-types/commands/DeleteDataSourceCommand.d.ts +4 -0
- package/dist-types/commands/DeleteExperienceCommand.d.ts +4 -0
- package/dist-types/commands/DeleteFaqCommand.d.ts +4 -0
- package/dist-types/commands/DeleteIndexCommand.d.ts +3 -0
- package/dist-types/commands/DeletePrincipalMappingCommand.d.ts +6 -0
- package/dist-types/commands/DeleteQuerySuggestionsBlockListCommand.d.ts +4 -0
- package/dist-types/commands/DeleteThesaurusCommand.d.ts +4 -0
- package/dist-types/commands/DescribeAccessControlConfigurationCommand.d.ts +4 -0
- package/dist-types/commands/DescribeDataSourceCommand.d.ts +4 -0
- package/dist-types/commands/DescribeExperienceCommand.d.ts +4 -0
- package/dist-types/commands/DescribeFaqCommand.d.ts +4 -0
- package/dist-types/commands/DescribeIndexCommand.d.ts +3 -0
- package/dist-types/commands/DescribePrincipalMappingCommand.d.ts +5 -0
- package/dist-types/commands/DescribeQuerySuggestionsBlockListCommand.d.ts +4 -0
- package/dist-types/commands/DescribeQuerySuggestionsConfigCommand.d.ts +3 -0
- package/dist-types/commands/DescribeThesaurusCommand.d.ts +4 -0
- package/dist-types/commands/DisassociateEntitiesFromExperienceCommand.d.ts +10 -0
- package/dist-types/commands/DisassociatePersonasFromEntitiesCommand.d.ts +7 -0
- package/dist-types/commands/GetQuerySuggestionsCommand.d.ts +5 -0
- package/dist-types/commands/GetSnapshotsCommand.d.ts +7 -0
- package/dist-types/commands/ListAccessControlConfigurationsCommand.d.ts +5 -0
- package/dist-types/commands/ListDataSourceSyncJobsCommand.d.ts +11 -0
- package/dist-types/commands/ListDataSourcesCommand.d.ts +5 -0
- package/dist-types/commands/ListEntityPersonasCommand.d.ts +6 -0
- package/dist-types/commands/ListExperienceEntitiesCommand.d.ts +5 -0
- package/dist-types/commands/ListExperiencesCommand.d.ts +5 -0
- package/dist-types/commands/ListFaqsCommand.d.ts +5 -0
- package/dist-types/commands/ListGroupsOlderThanOrderingIdCommand.d.ts +7 -0
- package/dist-types/commands/ListIndicesCommand.d.ts +4 -0
- package/dist-types/commands/ListQuerySuggestionsBlockListsCommand.d.ts +5 -0
- package/dist-types/commands/ListTagsForResourceCommand.d.ts +3 -0
- package/dist-types/commands/ListThesauriCommand.d.ts +5 -0
- package/dist-types/commands/PutPrincipalMappingCommand.d.ts +24 -0
- package/dist-types/commands/QueryCommand.d.ts +139 -0
- package/dist-types/commands/StartDataSourceSyncJobCommand.d.ts +4 -0
- package/dist-types/commands/StopDataSourceSyncJobCommand.d.ts +4 -0
- package/dist-types/commands/SubmitFeedbackCommand.d.ts +16 -0
- package/dist-types/commands/TagResourceCommand.d.ts +9 -0
- package/dist-types/commands/UntagResourceCommand.d.ts +6 -0
- package/dist-types/commands/UpdateAccessControlConfigurationCommand.d.ts +26 -0
- package/dist-types/commands/UpdateDataSourceCommand.d.ts +562 -0
- package/dist-types/commands/UpdateExperienceCommand.d.ts +21 -0
- package/dist-types/commands/UpdateIndexCommand.d.ts +52 -0
- package/dist-types/commands/UpdateQuerySuggestionsBlockListCommand.d.ts +11 -0
- package/dist-types/commands/UpdateQuerySuggestionsConfigCommand.d.ts +8 -0
- package/dist-types/commands/UpdateThesaurusCommand.d.ts +11 -0
- package/package.json +8 -8
|
@@ -46,6 +46,145 @@ export interface QueryCommandOutput extends QueryResult, __MetadataBearer {
|
|
|
46
46
|
* import { KendraClient, QueryCommand } from "@aws-sdk/client-kendra"; // ES Modules import
|
|
47
47
|
* // const { KendraClient, QueryCommand } = require("@aws-sdk/client-kendra"); // CommonJS import
|
|
48
48
|
* const client = new KendraClient(config);
|
|
49
|
+
* const input = { // QueryRequest
|
|
50
|
+
* IndexId: "STRING_VALUE", // required
|
|
51
|
+
* QueryText: "STRING_VALUE",
|
|
52
|
+
* AttributeFilter: { // AttributeFilter
|
|
53
|
+
* AndAllFilters: [ // AttributeFilterList
|
|
54
|
+
* {
|
|
55
|
+
* AndAllFilters: [
|
|
56
|
+
* "<AttributeFilter>",
|
|
57
|
+
* ],
|
|
58
|
+
* OrAllFilters: [
|
|
59
|
+
* "<AttributeFilter>",
|
|
60
|
+
* ],
|
|
61
|
+
* NotFilter: "<AttributeFilter>",
|
|
62
|
+
* EqualsTo: { // DocumentAttribute
|
|
63
|
+
* Key: "STRING_VALUE", // required
|
|
64
|
+
* Value: { // DocumentAttributeValue
|
|
65
|
+
* StringValue: "STRING_VALUE",
|
|
66
|
+
* StringListValue: [ // DocumentAttributeStringListValue
|
|
67
|
+
* "STRING_VALUE",
|
|
68
|
+
* ],
|
|
69
|
+
* LongValue: Number("long"),
|
|
70
|
+
* DateValue: new Date("TIMESTAMP"),
|
|
71
|
+
* },
|
|
72
|
+
* },
|
|
73
|
+
* ContainsAll: {
|
|
74
|
+
* Key: "STRING_VALUE", // required
|
|
75
|
+
* Value: {
|
|
76
|
+
* StringValue: "STRING_VALUE",
|
|
77
|
+
* StringListValue: [
|
|
78
|
+
* "STRING_VALUE",
|
|
79
|
+
* ],
|
|
80
|
+
* LongValue: Number("long"),
|
|
81
|
+
* DateValue: new Date("TIMESTAMP"),
|
|
82
|
+
* },
|
|
83
|
+
* },
|
|
84
|
+
* ContainsAny: {
|
|
85
|
+
* Key: "STRING_VALUE", // required
|
|
86
|
+
* Value: {
|
|
87
|
+
* StringValue: "STRING_VALUE",
|
|
88
|
+
* StringListValue: [
|
|
89
|
+
* "STRING_VALUE",
|
|
90
|
+
* ],
|
|
91
|
+
* LongValue: Number("long"),
|
|
92
|
+
* DateValue: new Date("TIMESTAMP"),
|
|
93
|
+
* },
|
|
94
|
+
* },
|
|
95
|
+
* GreaterThan: {
|
|
96
|
+
* Key: "STRING_VALUE", // required
|
|
97
|
+
* Value: {
|
|
98
|
+
* StringValue: "STRING_VALUE",
|
|
99
|
+
* StringListValue: [
|
|
100
|
+
* "STRING_VALUE",
|
|
101
|
+
* ],
|
|
102
|
+
* LongValue: Number("long"),
|
|
103
|
+
* DateValue: new Date("TIMESTAMP"),
|
|
104
|
+
* },
|
|
105
|
+
* },
|
|
106
|
+
* GreaterThanOrEquals: {
|
|
107
|
+
* Key: "STRING_VALUE", // required
|
|
108
|
+
* Value: {
|
|
109
|
+
* StringValue: "STRING_VALUE",
|
|
110
|
+
* StringListValue: [
|
|
111
|
+
* "STRING_VALUE",
|
|
112
|
+
* ],
|
|
113
|
+
* LongValue: Number("long"),
|
|
114
|
+
* DateValue: new Date("TIMESTAMP"),
|
|
115
|
+
* },
|
|
116
|
+
* },
|
|
117
|
+
* LessThan: "<DocumentAttribute>",
|
|
118
|
+
* LessThanOrEquals: "<DocumentAttribute>",
|
|
119
|
+
* },
|
|
120
|
+
* ],
|
|
121
|
+
* OrAllFilters: [
|
|
122
|
+
* "<AttributeFilter>",
|
|
123
|
+
* ],
|
|
124
|
+
* NotFilter: "<AttributeFilter>",
|
|
125
|
+
* EqualsTo: "<DocumentAttribute>",
|
|
126
|
+
* ContainsAll: "<DocumentAttribute>",
|
|
127
|
+
* ContainsAny: "<DocumentAttribute>",
|
|
128
|
+
* GreaterThan: "<DocumentAttribute>",
|
|
129
|
+
* GreaterThanOrEquals: "<DocumentAttribute>",
|
|
130
|
+
* LessThan: "<DocumentAttribute>",
|
|
131
|
+
* LessThanOrEquals: "<DocumentAttribute>",
|
|
132
|
+
* },
|
|
133
|
+
* Facets: [ // FacetList
|
|
134
|
+
* { // Facet
|
|
135
|
+
* DocumentAttributeKey: "STRING_VALUE",
|
|
136
|
+
* Facets: [
|
|
137
|
+
* {
|
|
138
|
+
* DocumentAttributeKey: "STRING_VALUE",
|
|
139
|
+
* Facets: "<FacetList>",
|
|
140
|
+
* MaxResults: Number("int"),
|
|
141
|
+
* },
|
|
142
|
+
* ],
|
|
143
|
+
* MaxResults: Number("int"),
|
|
144
|
+
* },
|
|
145
|
+
* ],
|
|
146
|
+
* RequestedDocumentAttributes: [ // DocumentAttributeKeyList
|
|
147
|
+
* "STRING_VALUE",
|
|
148
|
+
* ],
|
|
149
|
+
* QueryResultTypeFilter: "DOCUMENT" || "QUESTION_ANSWER" || "ANSWER",
|
|
150
|
+
* DocumentRelevanceOverrideConfigurations: [ // DocumentRelevanceOverrideConfigurationList
|
|
151
|
+
* { // DocumentRelevanceConfiguration
|
|
152
|
+
* Name: "STRING_VALUE", // required
|
|
153
|
+
* Relevance: { // Relevance
|
|
154
|
+
* Freshness: true || false,
|
|
155
|
+
* Importance: Number("int"),
|
|
156
|
+
* Duration: "STRING_VALUE",
|
|
157
|
+
* RankOrder: "ASCENDING" || "DESCENDING",
|
|
158
|
+
* ValueImportanceMap: { // ValueImportanceMap
|
|
159
|
+
* "<keys>": Number("int"),
|
|
160
|
+
* },
|
|
161
|
+
* },
|
|
162
|
+
* },
|
|
163
|
+
* ],
|
|
164
|
+
* PageNumber: Number("int"),
|
|
165
|
+
* PageSize: Number("int"),
|
|
166
|
+
* SortingConfiguration: { // SortingConfiguration
|
|
167
|
+
* DocumentAttributeKey: "STRING_VALUE", // required
|
|
168
|
+
* SortOrder: "DESC" || "ASC", // required
|
|
169
|
+
* },
|
|
170
|
+
* UserContext: { // UserContext
|
|
171
|
+
* Token: "STRING_VALUE",
|
|
172
|
+
* UserId: "STRING_VALUE",
|
|
173
|
+
* Groups: [ // Groups
|
|
174
|
+
* "STRING_VALUE",
|
|
175
|
+
* ],
|
|
176
|
+
* DataSourceGroups: [ // DataSourceGroups
|
|
177
|
+
* { // DataSourceGroup
|
|
178
|
+
* GroupId: "STRING_VALUE", // required
|
|
179
|
+
* DataSourceId: "STRING_VALUE", // required
|
|
180
|
+
* },
|
|
181
|
+
* ],
|
|
182
|
+
* },
|
|
183
|
+
* VisitorId: "STRING_VALUE",
|
|
184
|
+
* SpellCorrectionConfiguration: { // SpellCorrectionConfiguration
|
|
185
|
+
* IncludeQuerySpellCheckSuggestions: true || false, // required
|
|
186
|
+
* },
|
|
187
|
+
* };
|
|
49
188
|
* const command = new QueryCommand(input);
|
|
50
189
|
* const response = await client.send(command);
|
|
51
190
|
* ```
|
|
@@ -28,6 +28,10 @@ export interface StartDataSourceSyncJobCommandOutput extends StartDataSourceSync
|
|
|
28
28
|
* import { KendraClient, StartDataSourceSyncJobCommand } from "@aws-sdk/client-kendra"; // ES Modules import
|
|
29
29
|
* // const { KendraClient, StartDataSourceSyncJobCommand } = require("@aws-sdk/client-kendra"); // CommonJS import
|
|
30
30
|
* const client = new KendraClient(config);
|
|
31
|
+
* const input = { // StartDataSourceSyncJobRequest
|
|
32
|
+
* Id: "STRING_VALUE", // required
|
|
33
|
+
* IndexId: "STRING_VALUE", // required
|
|
34
|
+
* };
|
|
31
35
|
* const command = new StartDataSourceSyncJobCommand(input);
|
|
32
36
|
* const response = await client.send(command);
|
|
33
37
|
* ```
|
|
@@ -27,6 +27,10 @@ export interface StopDataSourceSyncJobCommandOutput extends __MetadataBearer {
|
|
|
27
27
|
* import { KendraClient, StopDataSourceSyncJobCommand } from "@aws-sdk/client-kendra"; // ES Modules import
|
|
28
28
|
* // const { KendraClient, StopDataSourceSyncJobCommand } = require("@aws-sdk/client-kendra"); // CommonJS import
|
|
29
29
|
* const client = new KendraClient(config);
|
|
30
|
+
* const input = { // StopDataSourceSyncJobRequest
|
|
31
|
+
* Id: "STRING_VALUE", // required
|
|
32
|
+
* IndexId: "STRING_VALUE", // required
|
|
33
|
+
* };
|
|
30
34
|
* const command = new StopDataSourceSyncJobCommand(input);
|
|
31
35
|
* const response = await client.send(command);
|
|
32
36
|
* ```
|
|
@@ -30,6 +30,22 @@ export interface SubmitFeedbackCommandOutput extends __MetadataBearer {
|
|
|
30
30
|
* import { KendraClient, SubmitFeedbackCommand } from "@aws-sdk/client-kendra"; // ES Modules import
|
|
31
31
|
* // const { KendraClient, SubmitFeedbackCommand } = require("@aws-sdk/client-kendra"); // CommonJS import
|
|
32
32
|
* const client = new KendraClient(config);
|
|
33
|
+
* const input = { // SubmitFeedbackRequest
|
|
34
|
+
* IndexId: "STRING_VALUE", // required
|
|
35
|
+
* QueryId: "STRING_VALUE", // required
|
|
36
|
+
* ClickFeedbackItems: [ // ClickFeedbackList
|
|
37
|
+
* { // ClickFeedback
|
|
38
|
+
* ResultId: "STRING_VALUE", // required
|
|
39
|
+
* ClickTime: new Date("TIMESTAMP"), // required
|
|
40
|
+
* },
|
|
41
|
+
* ],
|
|
42
|
+
* RelevanceFeedbackItems: [ // RelevanceFeedbackList
|
|
43
|
+
* { // RelevanceFeedback
|
|
44
|
+
* ResultId: "STRING_VALUE", // required
|
|
45
|
+
* RelevanceValue: "RELEVANT" || "NOT_RELEVANT", // required
|
|
46
|
+
* },
|
|
47
|
+
* ],
|
|
48
|
+
* };
|
|
33
49
|
* const command = new SubmitFeedbackCommand(input);
|
|
34
50
|
* const response = await client.send(command);
|
|
35
51
|
* ```
|
|
@@ -28,6 +28,15 @@ export interface TagResourceCommandOutput extends TagResourceResponse, __Metadat
|
|
|
28
28
|
* import { KendraClient, TagResourceCommand } from "@aws-sdk/client-kendra"; // ES Modules import
|
|
29
29
|
* // const { KendraClient, TagResourceCommand } = require("@aws-sdk/client-kendra"); // CommonJS import
|
|
30
30
|
* const client = new KendraClient(config);
|
|
31
|
+
* const input = { // TagResourceRequest
|
|
32
|
+
* ResourceARN: "STRING_VALUE", // required
|
|
33
|
+
* Tags: [ // TagList // required
|
|
34
|
+
* { // Tag
|
|
35
|
+
* Key: "STRING_VALUE", // required
|
|
36
|
+
* Value: "STRING_VALUE", // required
|
|
37
|
+
* },
|
|
38
|
+
* ],
|
|
39
|
+
* };
|
|
31
40
|
* const command = new TagResourceCommand(input);
|
|
32
41
|
* const response = await client.send(command);
|
|
33
42
|
* ```
|
|
@@ -26,6 +26,12 @@ 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 = { // UntagResourceRequest
|
|
30
|
+
* ResourceARN: "STRING_VALUE", // required
|
|
31
|
+
* TagKeys: [ // TagKeyList // required
|
|
32
|
+
* "STRING_VALUE",
|
|
33
|
+
* ],
|
|
34
|
+
* };
|
|
29
35
|
* const command = new UntagResourceCommand(input);
|
|
30
36
|
* const response = await client.send(command);
|
|
31
37
|
* ```
|
|
@@ -45,6 +45,32 @@ export interface UpdateAccessControlConfigurationCommandOutput extends UpdateAcc
|
|
|
45
45
|
* import { KendraClient, UpdateAccessControlConfigurationCommand } from "@aws-sdk/client-kendra"; // ES Modules import
|
|
46
46
|
* // const { KendraClient, UpdateAccessControlConfigurationCommand } = require("@aws-sdk/client-kendra"); // CommonJS import
|
|
47
47
|
* const client = new KendraClient(config);
|
|
48
|
+
* const input = { // UpdateAccessControlConfigurationRequest
|
|
49
|
+
* IndexId: "STRING_VALUE", // required
|
|
50
|
+
* Id: "STRING_VALUE", // required
|
|
51
|
+
* Name: "STRING_VALUE",
|
|
52
|
+
* Description: "STRING_VALUE",
|
|
53
|
+
* AccessControlList: [ // PrincipalList
|
|
54
|
+
* { // Principal
|
|
55
|
+
* Name: "STRING_VALUE", // required
|
|
56
|
+
* Type: "USER" || "GROUP", // required
|
|
57
|
+
* Access: "ALLOW" || "DENY", // required
|
|
58
|
+
* DataSourceId: "STRING_VALUE",
|
|
59
|
+
* },
|
|
60
|
+
* ],
|
|
61
|
+
* HierarchicalAccessControlList: [ // HierarchicalPrincipalList
|
|
62
|
+
* { // HierarchicalPrincipal
|
|
63
|
+
* PrincipalList: [ // required
|
|
64
|
+
* {
|
|
65
|
+
* Name: "STRING_VALUE", // required
|
|
66
|
+
* Type: "USER" || "GROUP", // required
|
|
67
|
+
* Access: "ALLOW" || "DENY", // required
|
|
68
|
+
* DataSourceId: "STRING_VALUE",
|
|
69
|
+
* },
|
|
70
|
+
* ],
|
|
71
|
+
* },
|
|
72
|
+
* ],
|
|
73
|
+
* };
|
|
48
74
|
* const command = new UpdateAccessControlConfigurationCommand(input);
|
|
49
75
|
* const response = await client.send(command);
|
|
50
76
|
* ```
|