@aws-sdk/client-kendra 3.533.0 → 3.535.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/Kendra.d.ts +2 -1
- package/dist-types/KendraClient.d.ts +1 -1
- package/dist-types/commands/AssociateEntitiesToExperienceCommand.d.ts +2 -1
- package/dist-types/commands/AssociatePersonasToEntitiesCommand.d.ts +2 -1
- package/dist-types/commands/BatchDeleteDocumentCommand.d.ts +2 -1
- package/dist-types/commands/BatchDeleteFeaturedResultsSetCommand.d.ts +2 -1
- package/dist-types/commands/BatchGetDocumentStatusCommand.d.ts +2 -1
- package/dist-types/commands/BatchPutDocumentCommand.d.ts +2 -1
- package/dist-types/commands/ClearQuerySuggestionsCommand.d.ts +2 -1
- package/dist-types/commands/CreateAccessControlConfigurationCommand.d.ts +2 -1
- package/dist-types/commands/CreateDataSourceCommand.d.ts +2 -1
- package/dist-types/commands/CreateExperienceCommand.d.ts +2 -1
- package/dist-types/commands/CreateFaqCommand.d.ts +2 -1
- package/dist-types/commands/CreateFeaturedResultsSetCommand.d.ts +2 -1
- package/dist-types/commands/CreateIndexCommand.d.ts +2 -1
- package/dist-types/commands/CreateQuerySuggestionsBlockListCommand.d.ts +2 -1
- package/dist-types/commands/CreateThesaurusCommand.d.ts +2 -1
- package/dist-types/commands/DeleteAccessControlConfigurationCommand.d.ts +2 -1
- package/dist-types/commands/DeleteDataSourceCommand.d.ts +2 -1
- package/dist-types/commands/DeleteExperienceCommand.d.ts +2 -1
- package/dist-types/commands/DeleteFaqCommand.d.ts +2 -1
- package/dist-types/commands/DeleteIndexCommand.d.ts +2 -1
- package/dist-types/commands/DeletePrincipalMappingCommand.d.ts +2 -1
- package/dist-types/commands/DeleteQuerySuggestionsBlockListCommand.d.ts +2 -1
- package/dist-types/commands/DeleteThesaurusCommand.d.ts +2 -1
- package/dist-types/commands/DescribeAccessControlConfigurationCommand.d.ts +2 -1
- package/dist-types/commands/DescribeDataSourceCommand.d.ts +2 -1
- package/dist-types/commands/DescribeExperienceCommand.d.ts +2 -1
- package/dist-types/commands/DescribeFaqCommand.d.ts +2 -1
- package/dist-types/commands/DescribeFeaturedResultsSetCommand.d.ts +2 -1
- package/dist-types/commands/DescribeIndexCommand.d.ts +2 -1
- package/dist-types/commands/DescribePrincipalMappingCommand.d.ts +2 -1
- package/dist-types/commands/DescribeQuerySuggestionsBlockListCommand.d.ts +2 -1
- package/dist-types/commands/DescribeQuerySuggestionsConfigCommand.d.ts +2 -1
- package/dist-types/commands/DescribeThesaurusCommand.d.ts +2 -1
- package/dist-types/commands/DisassociateEntitiesFromExperienceCommand.d.ts +2 -1
- package/dist-types/commands/DisassociatePersonasFromEntitiesCommand.d.ts +2 -1
- package/dist-types/commands/GetQuerySuggestionsCommand.d.ts +2 -1
- package/dist-types/commands/GetSnapshotsCommand.d.ts +2 -1
- package/dist-types/commands/ListAccessControlConfigurationsCommand.d.ts +2 -1
- package/dist-types/commands/ListDataSourceSyncJobsCommand.d.ts +2 -1
- package/dist-types/commands/ListDataSourcesCommand.d.ts +2 -1
- package/dist-types/commands/ListEntityPersonasCommand.d.ts +2 -1
- package/dist-types/commands/ListExperienceEntitiesCommand.d.ts +2 -1
- package/dist-types/commands/ListExperiencesCommand.d.ts +2 -1
- package/dist-types/commands/ListFaqsCommand.d.ts +2 -1
- package/dist-types/commands/ListFeaturedResultsSetsCommand.d.ts +2 -1
- package/dist-types/commands/ListGroupsOlderThanOrderingIdCommand.d.ts +2 -1
- package/dist-types/commands/ListIndicesCommand.d.ts +2 -1
- package/dist-types/commands/ListQuerySuggestionsBlockListsCommand.d.ts +2 -1
- package/dist-types/commands/ListTagsForResourceCommand.d.ts +2 -1
- package/dist-types/commands/ListThesauriCommand.d.ts +2 -1
- package/dist-types/commands/PutPrincipalMappingCommand.d.ts +2 -1
- package/dist-types/commands/QueryCommand.d.ts +2 -1
- package/dist-types/commands/RetrieveCommand.d.ts +2 -1
- package/dist-types/commands/StartDataSourceSyncJobCommand.d.ts +2 -1
- package/dist-types/commands/StopDataSourceSyncJobCommand.d.ts +2 -1
- package/dist-types/commands/SubmitFeedbackCommand.d.ts +2 -1
- package/dist-types/commands/TagResourceCommand.d.ts +2 -1
- package/dist-types/commands/UntagResourceCommand.d.ts +2 -1
- package/dist-types/commands/UpdateAccessControlConfigurationCommand.d.ts +2 -1
- package/dist-types/commands/UpdateDataSourceCommand.d.ts +2 -1
- package/dist-types/commands/UpdateExperienceCommand.d.ts +2 -1
- package/dist-types/commands/UpdateFeaturedResultsSetCommand.d.ts +2 -1
- package/dist-types/commands/UpdateIndexCommand.d.ts +2 -1
- package/dist-types/commands/UpdateQuerySuggestionsBlockListCommand.d.ts +2 -1
- package/dist-types/commands/UpdateQuerySuggestionsConfigCommand.d.ts +2 -1
- package/dist-types/commands/UpdateThesaurusCommand.d.ts +2 -1
- package/dist-types/models/models_0.d.ts +1046 -1046
- package/dist-types/models/models_1.d.ts +188 -188
- package/dist-types/ts3.4/Kendra.d.ts +1 -0
- package/dist-types/ts3.4/commands/AssociateEntitiesToExperienceCommand.d.ts +9 -0
- package/dist-types/ts3.4/commands/AssociatePersonasToEntitiesCommand.d.ts +9 -0
- package/dist-types/ts3.4/commands/BatchDeleteDocumentCommand.d.ts +9 -0
- package/dist-types/ts3.4/commands/BatchDeleteFeaturedResultsSetCommand.d.ts +9 -0
- package/dist-types/ts3.4/commands/BatchGetDocumentStatusCommand.d.ts +9 -0
- package/dist-types/ts3.4/commands/BatchPutDocumentCommand.d.ts +9 -0
- package/dist-types/ts3.4/commands/ClearQuerySuggestionsCommand.d.ts +9 -0
- package/dist-types/ts3.4/commands/CreateAccessControlConfigurationCommand.d.ts +9 -0
- package/dist-types/ts3.4/commands/CreateDataSourceCommand.d.ts +9 -0
- package/dist-types/ts3.4/commands/CreateExperienceCommand.d.ts +9 -0
- package/dist-types/ts3.4/commands/CreateFaqCommand.d.ts +9 -0
- package/dist-types/ts3.4/commands/CreateFeaturedResultsSetCommand.d.ts +9 -0
- package/dist-types/ts3.4/commands/CreateIndexCommand.d.ts +9 -0
- package/dist-types/ts3.4/commands/CreateQuerySuggestionsBlockListCommand.d.ts +9 -0
- package/dist-types/ts3.4/commands/CreateThesaurusCommand.d.ts +9 -0
- package/dist-types/ts3.4/commands/DeleteAccessControlConfigurationCommand.d.ts +9 -0
- package/dist-types/ts3.4/commands/DeleteDataSourceCommand.d.ts +9 -0
- package/dist-types/ts3.4/commands/DeleteExperienceCommand.d.ts +9 -0
- package/dist-types/ts3.4/commands/DeleteFaqCommand.d.ts +9 -0
- package/dist-types/ts3.4/commands/DeleteIndexCommand.d.ts +9 -0
- package/dist-types/ts3.4/commands/DeletePrincipalMappingCommand.d.ts +9 -0
- package/dist-types/ts3.4/commands/DeleteQuerySuggestionsBlockListCommand.d.ts +9 -0
- package/dist-types/ts3.4/commands/DeleteThesaurusCommand.d.ts +9 -0
- package/dist-types/ts3.4/commands/DescribeAccessControlConfigurationCommand.d.ts +9 -0
- package/dist-types/ts3.4/commands/DescribeDataSourceCommand.d.ts +9 -0
- package/dist-types/ts3.4/commands/DescribeExperienceCommand.d.ts +9 -0
- package/dist-types/ts3.4/commands/DescribeFaqCommand.d.ts +9 -0
- package/dist-types/ts3.4/commands/DescribeFeaturedResultsSetCommand.d.ts +9 -0
- package/dist-types/ts3.4/commands/DescribeIndexCommand.d.ts +9 -0
- package/dist-types/ts3.4/commands/DescribePrincipalMappingCommand.d.ts +9 -0
- package/dist-types/ts3.4/commands/DescribeQuerySuggestionsBlockListCommand.d.ts +9 -0
- package/dist-types/ts3.4/commands/DescribeQuerySuggestionsConfigCommand.d.ts +9 -0
- package/dist-types/ts3.4/commands/DescribeThesaurusCommand.d.ts +9 -0
- package/dist-types/ts3.4/commands/DisassociateEntitiesFromExperienceCommand.d.ts +9 -0
- package/dist-types/ts3.4/commands/DisassociatePersonasFromEntitiesCommand.d.ts +9 -0
- package/dist-types/ts3.4/commands/GetQuerySuggestionsCommand.d.ts +9 -0
- package/dist-types/ts3.4/commands/GetSnapshotsCommand.d.ts +9 -0
- package/dist-types/ts3.4/commands/ListAccessControlConfigurationsCommand.d.ts +9 -0
- package/dist-types/ts3.4/commands/ListDataSourceSyncJobsCommand.d.ts +9 -0
- package/dist-types/ts3.4/commands/ListDataSourcesCommand.d.ts +9 -0
- package/dist-types/ts3.4/commands/ListEntityPersonasCommand.d.ts +9 -0
- package/dist-types/ts3.4/commands/ListExperienceEntitiesCommand.d.ts +9 -0
- package/dist-types/ts3.4/commands/ListExperiencesCommand.d.ts +9 -0
- package/dist-types/ts3.4/commands/ListFaqsCommand.d.ts +9 -0
- package/dist-types/ts3.4/commands/ListFeaturedResultsSetsCommand.d.ts +9 -0
- package/dist-types/ts3.4/commands/ListGroupsOlderThanOrderingIdCommand.d.ts +9 -0
- package/dist-types/ts3.4/commands/ListIndicesCommand.d.ts +9 -0
- package/dist-types/ts3.4/commands/ListQuerySuggestionsBlockListsCommand.d.ts +9 -0
- package/dist-types/ts3.4/commands/ListTagsForResourceCommand.d.ts +9 -0
- package/dist-types/ts3.4/commands/ListThesauriCommand.d.ts +9 -0
- package/dist-types/ts3.4/commands/PutPrincipalMappingCommand.d.ts +9 -0
- package/dist-types/ts3.4/commands/QueryCommand.d.ts +7 -0
- package/dist-types/ts3.4/commands/RetrieveCommand.d.ts +9 -0
- package/dist-types/ts3.4/commands/StartDataSourceSyncJobCommand.d.ts +9 -0
- package/dist-types/ts3.4/commands/StopDataSourceSyncJobCommand.d.ts +9 -0
- package/dist-types/ts3.4/commands/SubmitFeedbackCommand.d.ts +9 -0
- package/dist-types/ts3.4/commands/TagResourceCommand.d.ts +9 -0
- package/dist-types/ts3.4/commands/UntagResourceCommand.d.ts +9 -0
- package/dist-types/ts3.4/commands/UpdateAccessControlConfigurationCommand.d.ts +9 -0
- package/dist-types/ts3.4/commands/UpdateDataSourceCommand.d.ts +9 -0
- package/dist-types/ts3.4/commands/UpdateExperienceCommand.d.ts +9 -0
- package/dist-types/ts3.4/commands/UpdateFeaturedResultsSetCommand.d.ts +9 -0
- package/dist-types/ts3.4/commands/UpdateIndexCommand.d.ts +9 -0
- package/dist-types/ts3.4/commands/UpdateQuerySuggestionsBlockListCommand.d.ts +9 -0
- package/dist-types/ts3.4/commands/UpdateQuerySuggestionsConfigCommand.d.ts +9 -0
- package/dist-types/ts3.4/commands/UpdateThesaurusCommand.d.ts +9 -0
- package/package.json +40 -40
|
@@ -17,143 +17,142 @@ export declare const ScoreConfidence: {
|
|
|
17
17
|
*/
|
|
18
18
|
export type ScoreConfidence = (typeof ScoreConfidence)[keyof typeof ScoreConfidence];
|
|
19
19
|
/**
|
|
20
|
-
* @public
|
|
21
20
|
* <p>Provides a relative ranking that indicates how confident Amazon Kendra is that the
|
|
22
21
|
* response is relevant to the query.</p>
|
|
22
|
+
* @public
|
|
23
23
|
*/
|
|
24
24
|
export interface ScoreAttributes {
|
|
25
25
|
/**
|
|
26
|
-
* @public
|
|
27
26
|
* <p>A relative ranking for how relevant the response is to the query.</p>
|
|
27
|
+
* @public
|
|
28
28
|
*/
|
|
29
29
|
ScoreConfidence?: ScoreConfidence;
|
|
30
30
|
}
|
|
31
31
|
/**
|
|
32
|
-
* @public
|
|
33
32
|
* <p>Provides information about a table cell in a table excerpt.</p>
|
|
33
|
+
* @public
|
|
34
34
|
*/
|
|
35
35
|
export interface TableCell {
|
|
36
36
|
/**
|
|
37
|
-
* @public
|
|
38
37
|
* <p>The actual value or content within a table cell. A table cell could contain a date
|
|
39
38
|
* value of a year, or a string value of text, for example.</p>
|
|
39
|
+
* @public
|
|
40
40
|
*/
|
|
41
41
|
Value?: string;
|
|
42
42
|
/**
|
|
43
|
-
* @public
|
|
44
43
|
* <p>
|
|
45
44
|
* <code>TRUE</code> if the response of the table cell is the top answer. This is the
|
|
46
45
|
* cell value or content with the highest confidence score or is the most relevant to the
|
|
47
46
|
* query.</p>
|
|
47
|
+
* @public
|
|
48
48
|
*/
|
|
49
49
|
TopAnswer?: boolean;
|
|
50
50
|
/**
|
|
51
|
-
* @public
|
|
52
51
|
* <p>
|
|
53
52
|
* <code>TRUE</code> means that the table cell has a high enough confidence and is
|
|
54
53
|
* relevant to the query, so the value or content should be highlighted.</p>
|
|
54
|
+
* @public
|
|
55
55
|
*/
|
|
56
56
|
Highlighted?: boolean;
|
|
57
57
|
/**
|
|
58
|
-
* @public
|
|
59
58
|
* <p>
|
|
60
59
|
* <code>TRUE</code> means that the table cell should be treated as a header.</p>
|
|
60
|
+
* @public
|
|
61
61
|
*/
|
|
62
62
|
Header?: boolean;
|
|
63
63
|
}
|
|
64
64
|
/**
|
|
65
|
-
* @public
|
|
66
65
|
* <p>Information about a row in a table excerpt.</p>
|
|
66
|
+
* @public
|
|
67
67
|
*/
|
|
68
68
|
export interface TableRow {
|
|
69
69
|
/**
|
|
70
|
-
* @public
|
|
71
70
|
* <p>A list of table cells in a row.</p>
|
|
71
|
+
* @public
|
|
72
72
|
*/
|
|
73
73
|
Cells?: TableCell[];
|
|
74
74
|
}
|
|
75
75
|
/**
|
|
76
|
-
* @public
|
|
77
76
|
* <p>An excerpt from a table within a document. The table excerpt displays up to five
|
|
78
77
|
* columns and three rows, depending on how many table cells are relevant to the query and
|
|
79
78
|
* how many columns are available in the original table. The top most relevant cell is
|
|
80
79
|
* displayed in the table excerpt, along with the next most relevant cells.</p>
|
|
80
|
+
* @public
|
|
81
81
|
*/
|
|
82
82
|
export interface TableExcerpt {
|
|
83
83
|
/**
|
|
84
|
-
* @public
|
|
85
84
|
* <p>A list of rows in the table excerpt.</p>
|
|
85
|
+
* @public
|
|
86
86
|
*/
|
|
87
87
|
Rows?: TableRow[];
|
|
88
88
|
/**
|
|
89
|
-
* @public
|
|
90
89
|
* <p>A count of the number of rows in the original table within the document.</p>
|
|
90
|
+
* @public
|
|
91
91
|
*/
|
|
92
92
|
TotalNumberOfRows?: number;
|
|
93
93
|
}
|
|
94
94
|
/**
|
|
95
|
-
* @public
|
|
96
95
|
* <p>A single query result.</p>
|
|
97
96
|
* <p>A query result contains information about a document returned by the query. This
|
|
98
97
|
* includes the original location of the document, a list of attributes assigned to the
|
|
99
98
|
* document, and relevant text from the document that satisfies the query.</p>
|
|
99
|
+
* @public
|
|
100
100
|
*/
|
|
101
101
|
export interface QueryResultItem {
|
|
102
102
|
/**
|
|
103
|
-
* @public
|
|
104
103
|
* <p>The identifier for the query result.</p>
|
|
104
|
+
* @public
|
|
105
105
|
*/
|
|
106
106
|
Id?: string;
|
|
107
107
|
/**
|
|
108
|
-
* @public
|
|
109
108
|
* <p>The type of document within the response. For example, a response could include a
|
|
110
109
|
* question-answer that's relevant to the query.</p>
|
|
110
|
+
* @public
|
|
111
111
|
*/
|
|
112
112
|
Type?: QueryResultType;
|
|
113
113
|
/**
|
|
114
|
-
* @public
|
|
115
114
|
* <p>If the <code>Type</code> of document within the response is <code>ANSWER</code>, then it
|
|
116
115
|
* is either a <code>TABLE</code> answer or <code>TEXT</code> answer. If it's a table answer,
|
|
117
116
|
* a table excerpt is returned in <code>TableExcerpt</code>. If it's a text answer, a text
|
|
118
117
|
* excerpt is returned in <code>DocumentExcerpt</code>.</p>
|
|
118
|
+
* @public
|
|
119
119
|
*/
|
|
120
120
|
Format?: QueryResultFormat;
|
|
121
121
|
/**
|
|
122
|
-
* @public
|
|
123
122
|
* <p>One or more additional fields/attributes associated with the query result.</p>
|
|
123
|
+
* @public
|
|
124
124
|
*/
|
|
125
125
|
AdditionalAttributes?: AdditionalResultAttribute[];
|
|
126
126
|
/**
|
|
127
|
-
* @public
|
|
128
127
|
* <p>The identifier for the document.</p>
|
|
128
|
+
* @public
|
|
129
129
|
*/
|
|
130
130
|
DocumentId?: string;
|
|
131
131
|
/**
|
|
132
|
-
* @public
|
|
133
132
|
* <p>The title of the document. Contains the text of the title and information for
|
|
134
133
|
* highlighting the relevant terms in the title.</p>
|
|
134
|
+
* @public
|
|
135
135
|
*/
|
|
136
136
|
DocumentTitle?: TextWithHighlights;
|
|
137
137
|
/**
|
|
138
|
-
* @public
|
|
139
138
|
* <p>An extract of the text in the document. Contains information about highlighting the
|
|
140
139
|
* relevant terms in the excerpt.</p>
|
|
140
|
+
* @public
|
|
141
141
|
*/
|
|
142
142
|
DocumentExcerpt?: TextWithHighlights;
|
|
143
143
|
/**
|
|
144
|
-
* @public
|
|
145
144
|
* <p>The URI of the original location of the document.</p>
|
|
145
|
+
* @public
|
|
146
146
|
*/
|
|
147
147
|
DocumentURI?: string;
|
|
148
148
|
/**
|
|
149
|
-
* @public
|
|
150
149
|
* <p>An array of document fields/attributes assigned to a document in the search results.
|
|
151
150
|
* For example, the document author (<code>_author</code>) or the source URI
|
|
152
151
|
* (<code>_source_uri</code>) of the document.</p>
|
|
152
|
+
* @public
|
|
153
153
|
*/
|
|
154
154
|
DocumentAttributes?: DocumentAttribute[];
|
|
155
155
|
/**
|
|
156
|
-
* @public
|
|
157
156
|
* <p>Indicates the confidence level of Amazon Kendra providing a relevant result for
|
|
158
157
|
* the query. Each result is placed into a bin that indicates the confidence,
|
|
159
158
|
* <code>VERY_HIGH</code>, <code>HIGH</code>, <code>MEDIUM</code> and <code>LOW</code>.
|
|
@@ -162,66 +161,67 @@ export interface QueryResultItem {
|
|
|
162
161
|
* <p>The field is only set to <code>LOW</code> when the <code>Type</code> field is set to
|
|
163
162
|
* <code>DOCUMENT</code> and Amazon Kendra is not confident that the result is
|
|
164
163
|
* relevant to the query.</p>
|
|
164
|
+
* @public
|
|
165
165
|
*/
|
|
166
166
|
ScoreAttributes?: ScoreAttributes;
|
|
167
167
|
/**
|
|
168
|
-
* @public
|
|
169
168
|
* <p>A token that identifies a particular result from a particular query. Use this token to
|
|
170
169
|
* provide click-through feedback for the result. For more information, see <a href="https://docs.aws.amazon.com/kendra/latest/dg/submitting-feedback.html">Submitting feedback</a>.</p>
|
|
170
|
+
* @public
|
|
171
171
|
*/
|
|
172
172
|
FeedbackToken?: string;
|
|
173
173
|
/**
|
|
174
|
-
* @public
|
|
175
174
|
* <p>An excerpt from a table within a document.</p>
|
|
175
|
+
* @public
|
|
176
176
|
*/
|
|
177
177
|
TableExcerpt?: TableExcerpt;
|
|
178
178
|
/**
|
|
179
|
-
* @public
|
|
180
179
|
* <p>Provides details about a collapsed group of search results.</p>
|
|
180
|
+
* @public
|
|
181
181
|
*/
|
|
182
182
|
CollapsedResultDetail?: CollapsedResultDetail;
|
|
183
183
|
}
|
|
184
184
|
/**
|
|
185
|
-
* @public
|
|
186
185
|
* <p>A corrected misspelled word in a query.</p>
|
|
186
|
+
* @public
|
|
187
187
|
*/
|
|
188
188
|
export interface Correction {
|
|
189
189
|
/**
|
|
190
|
-
* @public
|
|
191
190
|
* <p>The zero-based location in the response string or text where
|
|
192
191
|
* the corrected word starts.</p>
|
|
192
|
+
* @public
|
|
193
193
|
*/
|
|
194
194
|
BeginOffset?: number;
|
|
195
195
|
/**
|
|
196
|
-
* @public
|
|
197
196
|
* <p>The zero-based location in the response string or text where
|
|
198
197
|
* the corrected word ends.</p>
|
|
198
|
+
* @public
|
|
199
199
|
*/
|
|
200
200
|
EndOffset?: number;
|
|
201
201
|
/**
|
|
202
|
-
* @public
|
|
203
202
|
* <p>The string or text of a misspelled word in a query.</p>
|
|
203
|
+
* @public
|
|
204
204
|
*/
|
|
205
205
|
Term?: string;
|
|
206
206
|
/**
|
|
207
|
-
* @public
|
|
208
207
|
* <p>The string or text of a corrected misspelled word in a query.</p>
|
|
208
|
+
* @public
|
|
209
209
|
*/
|
|
210
210
|
CorrectedTerm?: string;
|
|
211
211
|
}
|
|
212
212
|
/**
|
|
213
|
-
* @public
|
|
214
213
|
* <p>A query with suggested spell corrections. </p>
|
|
214
|
+
* @public
|
|
215
215
|
*/
|
|
216
216
|
export interface SpellCorrectedQuery {
|
|
217
217
|
/**
|
|
218
|
-
* @public
|
|
219
218
|
* <p>The query with the suggested spell corrections.</p>
|
|
219
|
+
* @public
|
|
220
220
|
*/
|
|
221
221
|
SuggestedQueryText?: string;
|
|
222
222
|
/**
|
|
223
|
-
* @public
|
|
224
223
|
* <p>The corrected misspelled word or words in a query.</p>
|
|
224
|
+
* @public
|
|
225
225
|
*/
|
|
226
226
|
Corrections?: Correction[];
|
|
227
227
|
}
|
|
@@ -237,63 +237,63 @@ export declare const WarningCode: {
|
|
|
237
237
|
*/
|
|
238
238
|
export type WarningCode = (typeof WarningCode)[keyof typeof WarningCode];
|
|
239
239
|
/**
|
|
240
|
-
* @public
|
|
241
240
|
* <p>The warning code and message that explains a problem with a query.</p>
|
|
241
|
+
* @public
|
|
242
242
|
*/
|
|
243
243
|
export interface Warning {
|
|
244
244
|
/**
|
|
245
|
-
* @public
|
|
246
245
|
* <p>The message that explains the problem with the query.</p>
|
|
246
|
+
* @public
|
|
247
247
|
*/
|
|
248
248
|
Message?: string;
|
|
249
249
|
/**
|
|
250
|
-
* @public
|
|
251
250
|
* <p>The code used to show the type of warning for the query.</p>
|
|
251
|
+
* @public
|
|
252
252
|
*/
|
|
253
253
|
Code?: WarningCode;
|
|
254
254
|
}
|
|
255
255
|
/**
|
|
256
|
-
* @public
|
|
257
256
|
* <p>A single retrieved relevant passage result.</p>
|
|
257
|
+
* @public
|
|
258
258
|
*/
|
|
259
259
|
export interface RetrieveResultItem {
|
|
260
260
|
/**
|
|
261
|
-
* @public
|
|
262
261
|
* <p>The identifier of the relevant passage result.</p>
|
|
262
|
+
* @public
|
|
263
263
|
*/
|
|
264
264
|
Id?: string;
|
|
265
265
|
/**
|
|
266
|
-
* @public
|
|
267
266
|
* <p>The identifier of the document.</p>
|
|
267
|
+
* @public
|
|
268
268
|
*/
|
|
269
269
|
DocumentId?: string;
|
|
270
270
|
/**
|
|
271
|
-
* @public
|
|
272
271
|
* <p>The title of the document.</p>
|
|
272
|
+
* @public
|
|
273
273
|
*/
|
|
274
274
|
DocumentTitle?: string;
|
|
275
275
|
/**
|
|
276
|
-
* @public
|
|
277
276
|
* <p>The contents of the relevant passage.</p>
|
|
277
|
+
* @public
|
|
278
278
|
*/
|
|
279
279
|
Content?: string;
|
|
280
280
|
/**
|
|
281
|
-
* @public
|
|
282
281
|
* <p>The URI of the original location of the document.</p>
|
|
282
|
+
* @public
|
|
283
283
|
*/
|
|
284
284
|
DocumentURI?: string;
|
|
285
285
|
/**
|
|
286
|
-
* @public
|
|
287
286
|
* <p>An array of document fields/attributes assigned to a document in the search results.
|
|
288
287
|
* For example, the document author (<code>_author</code>) or the source URI
|
|
289
288
|
* (<code>_source_uri</code>) of the document.</p>
|
|
289
|
+
* @public
|
|
290
290
|
*/
|
|
291
291
|
DocumentAttributes?: DocumentAttribute[];
|
|
292
292
|
/**
|
|
293
|
-
* @public
|
|
294
293
|
* <p>The confidence score bucket for a retrieved passage result. The confidence bucket
|
|
295
294
|
* provides a relative ranking that indicates how confident Amazon Kendra is that the
|
|
296
295
|
* response is relevant to the query.</p>
|
|
296
|
+
* @public
|
|
297
297
|
*/
|
|
298
298
|
ScoreAttributes?: ScoreAttributes;
|
|
299
299
|
}
|
|
@@ -302,22 +302,22 @@ export interface RetrieveResultItem {
|
|
|
302
302
|
*/
|
|
303
303
|
export interface RetrieveResult {
|
|
304
304
|
/**
|
|
305
|
-
* @public
|
|
306
305
|
* <p>The identifier of query used for the search. You also use <code>QueryId</code> to
|
|
307
306
|
* identify the search when using the <a href="https://docs.aws.amazon.com/kendra/latest/APIReference/API_SubmitFeedback.html">Submitfeedback</a>
|
|
308
307
|
* API.</p>
|
|
308
|
+
* @public
|
|
309
309
|
*/
|
|
310
310
|
QueryId?: string;
|
|
311
311
|
/**
|
|
312
|
-
* @public
|
|
313
312
|
* <p>The results of the retrieved relevant passages for the search.</p>
|
|
313
|
+
* @public
|
|
314
314
|
*/
|
|
315
315
|
ResultItems?: RetrieveResultItem[];
|
|
316
316
|
}
|
|
317
317
|
/**
|
|
318
|
-
* @public
|
|
319
318
|
* <p>The resource you want to use is currently in use. Please check you have provided the
|
|
320
319
|
* correct resource and try again.</p>
|
|
320
|
+
* @public
|
|
321
321
|
*/
|
|
322
322
|
export declare class ResourceInUseException extends __BaseException {
|
|
323
323
|
readonly name: "ResourceInUseException";
|
|
@@ -333,13 +333,13 @@ export declare class ResourceInUseException extends __BaseException {
|
|
|
333
333
|
*/
|
|
334
334
|
export interface StartDataSourceSyncJobRequest {
|
|
335
335
|
/**
|
|
336
|
-
* @public
|
|
337
336
|
* <p>The identifier of the data source connector to synchronize.</p>
|
|
337
|
+
* @public
|
|
338
338
|
*/
|
|
339
339
|
Id: string | undefined;
|
|
340
340
|
/**
|
|
341
|
-
* @public
|
|
342
341
|
* <p>The identifier of the index used with the data source connector.</p>
|
|
342
|
+
* @public
|
|
343
343
|
*/
|
|
344
344
|
IndexId: string | undefined;
|
|
345
345
|
}
|
|
@@ -348,8 +348,8 @@ export interface StartDataSourceSyncJobRequest {
|
|
|
348
348
|
*/
|
|
349
349
|
export interface StartDataSourceSyncJobResponse {
|
|
350
350
|
/**
|
|
351
|
-
* @public
|
|
352
351
|
* <p>Identifies a particular synchronization job.</p>
|
|
352
|
+
* @public
|
|
353
353
|
*/
|
|
354
354
|
ExecutionId?: string;
|
|
355
355
|
}
|
|
@@ -358,32 +358,32 @@ export interface StartDataSourceSyncJobResponse {
|
|
|
358
358
|
*/
|
|
359
359
|
export interface StopDataSourceSyncJobRequest {
|
|
360
360
|
/**
|
|
361
|
-
* @public
|
|
362
361
|
* <p>The identifier of the data source connector for which to stop the synchronization
|
|
363
362
|
* jobs.</p>
|
|
363
|
+
* @public
|
|
364
364
|
*/
|
|
365
365
|
Id: string | undefined;
|
|
366
366
|
/**
|
|
367
|
-
* @public
|
|
368
367
|
* <p>The identifier of the index used with the data source connector.</p>
|
|
368
|
+
* @public
|
|
369
369
|
*/
|
|
370
370
|
IndexId: string | undefined;
|
|
371
371
|
}
|
|
372
372
|
/**
|
|
373
|
-
* @public
|
|
374
373
|
* <p>Gathers information about when a particular result was clicked by a user. Your
|
|
375
374
|
* application uses the <code>SubmitFeedback</code> API to provide click
|
|
376
375
|
* information.</p>
|
|
376
|
+
* @public
|
|
377
377
|
*/
|
|
378
378
|
export interface ClickFeedback {
|
|
379
379
|
/**
|
|
380
|
-
* @public
|
|
381
380
|
* <p>The identifier of the search result that was clicked.</p>
|
|
381
|
+
* @public
|
|
382
382
|
*/
|
|
383
383
|
ResultId: string | undefined;
|
|
384
384
|
/**
|
|
385
|
-
* @public
|
|
386
385
|
* <p>The Unix timestamp when the result was clicked.</p>
|
|
386
|
+
* @public
|
|
387
387
|
*/
|
|
388
388
|
ClickTime: Date | undefined;
|
|
389
389
|
}
|
|
@@ -400,20 +400,20 @@ export declare const RelevanceType: {
|
|
|
400
400
|
*/
|
|
401
401
|
export type RelevanceType = (typeof RelevanceType)[keyof typeof RelevanceType];
|
|
402
402
|
/**
|
|
403
|
-
* @public
|
|
404
403
|
* <p>Provides feedback on how relevant a document is to a search. Your application uses the
|
|
405
404
|
* <code>SubmitFeedback</code> API to provide relevance information.</p>
|
|
405
|
+
* @public
|
|
406
406
|
*/
|
|
407
407
|
export interface RelevanceFeedback {
|
|
408
408
|
/**
|
|
409
|
-
* @public
|
|
410
409
|
* <p>The identifier of the search result that the user provided relevance feedback
|
|
411
410
|
* for.</p>
|
|
411
|
+
* @public
|
|
412
412
|
*/
|
|
413
413
|
ResultId: string | undefined;
|
|
414
414
|
/**
|
|
415
|
-
* @public
|
|
416
415
|
* <p>Whether the document was relevant or not relevant to the search.</p>
|
|
416
|
+
* @public
|
|
417
417
|
*/
|
|
418
418
|
RelevanceValue: RelevanceType | undefined;
|
|
419
419
|
}
|
|
@@ -422,27 +422,27 @@ export interface RelevanceFeedback {
|
|
|
422
422
|
*/
|
|
423
423
|
export interface SubmitFeedbackRequest {
|
|
424
424
|
/**
|
|
425
|
-
* @public
|
|
426
425
|
* <p>The identifier of the index that was queried.</p>
|
|
426
|
+
* @public
|
|
427
427
|
*/
|
|
428
428
|
IndexId: string | undefined;
|
|
429
429
|
/**
|
|
430
|
-
* @public
|
|
431
430
|
* <p>The identifier of the specific query for which you are submitting
|
|
432
431
|
* feedback. The query ID is returned in the response to the
|
|
433
432
|
* <code>Query</code> API.</p>
|
|
433
|
+
* @public
|
|
434
434
|
*/
|
|
435
435
|
QueryId: string | undefined;
|
|
436
436
|
/**
|
|
437
|
-
* @public
|
|
438
437
|
* <p>Tells Amazon Kendra that a particular search result link was chosen
|
|
439
438
|
* by the user. </p>
|
|
439
|
+
* @public
|
|
440
440
|
*/
|
|
441
441
|
ClickFeedbackItems?: ClickFeedback[];
|
|
442
442
|
/**
|
|
443
|
-
* @public
|
|
444
443
|
* <p>Provides Amazon Kendra with relevant or not relevant feedback for
|
|
445
444
|
* whether a particular item was relevant to the search.</p>
|
|
445
|
+
* @public
|
|
446
446
|
*/
|
|
447
447
|
RelevanceFeedbackItems?: RelevanceFeedback[];
|
|
448
448
|
}
|
|
@@ -451,14 +451,14 @@ export interface SubmitFeedbackRequest {
|
|
|
451
451
|
*/
|
|
452
452
|
export interface TagResourceRequest {
|
|
453
453
|
/**
|
|
454
|
-
* @public
|
|
455
454
|
* <p>The Amazon Resource Name (ARN) of the index, FAQ, or data source to tag.</p>
|
|
455
|
+
* @public
|
|
456
456
|
*/
|
|
457
457
|
ResourceARN: string | undefined;
|
|
458
458
|
/**
|
|
459
|
-
* @public
|
|
460
459
|
* <p>A list of tag keys to add to the index, FAQ, or data source. If a tag already exists, the
|
|
461
460
|
* existing value is replaced with the new value.</p>
|
|
461
|
+
* @public
|
|
462
462
|
*/
|
|
463
463
|
Tags: Tag[] | undefined;
|
|
464
464
|
}
|
|
@@ -472,15 +472,15 @@ export interface TagResourceResponse {
|
|
|
472
472
|
*/
|
|
473
473
|
export interface UntagResourceRequest {
|
|
474
474
|
/**
|
|
475
|
-
* @public
|
|
476
475
|
* <p>The Amazon Resource Name (ARN) of the index, FAQ, or data source to remove the tag
|
|
477
476
|
* from.</p>
|
|
477
|
+
* @public
|
|
478
478
|
*/
|
|
479
479
|
ResourceARN: string | undefined;
|
|
480
480
|
/**
|
|
481
|
-
* @public
|
|
482
481
|
* <p>A list of tag keys to remove from the index, FAQ, or data source. If a tag key does not
|
|
483
482
|
* exist on the resource, it is ignored.</p>
|
|
483
|
+
* @public
|
|
484
484
|
*/
|
|
485
485
|
TagKeys: string[] | undefined;
|
|
486
486
|
}
|
|
@@ -494,36 +494,36 @@ export interface UntagResourceResponse {
|
|
|
494
494
|
*/
|
|
495
495
|
export interface UpdateAccessControlConfigurationRequest {
|
|
496
496
|
/**
|
|
497
|
-
* @public
|
|
498
497
|
* <p>The identifier of the index for an access control configuration.</p>
|
|
498
|
+
* @public
|
|
499
499
|
*/
|
|
500
500
|
IndexId: string | undefined;
|
|
501
501
|
/**
|
|
502
|
-
* @public
|
|
503
502
|
* <p>The identifier of the access control configuration you want to update.</p>
|
|
503
|
+
* @public
|
|
504
504
|
*/
|
|
505
505
|
Id: string | undefined;
|
|
506
506
|
/**
|
|
507
|
-
* @public
|
|
508
507
|
* <p>A new name for the access control configuration.</p>
|
|
508
|
+
* @public
|
|
509
509
|
*/
|
|
510
510
|
Name?: string;
|
|
511
511
|
/**
|
|
512
|
-
* @public
|
|
513
512
|
* <p>A new description for the access control configuration.</p>
|
|
513
|
+
* @public
|
|
514
514
|
*/
|
|
515
515
|
Description?: string;
|
|
516
516
|
/**
|
|
517
|
-
* @public
|
|
518
517
|
* <p>Information you want to update on principals (users and/or groups) and which documents
|
|
519
518
|
* they should have access to. This is useful for user context filtering, where search
|
|
520
519
|
* results are filtered based on the user or their group access to documents.</p>
|
|
520
|
+
* @public
|
|
521
521
|
*/
|
|
522
522
|
AccessControlList?: Principal[];
|
|
523
523
|
/**
|
|
524
|
-
* @public
|
|
525
524
|
* <p>The updated list of <a href="https://docs.aws.amazon.com/kendra/latest/dg/API_Principal.html">principal</a> lists that define the
|
|
526
525
|
* hierarchy for which documents users should have access to.</p>
|
|
526
|
+
* @public
|
|
527
527
|
*/
|
|
528
528
|
HierarchicalAccessControlList?: HierarchicalPrincipal[];
|
|
529
529
|
}
|
|
@@ -537,63 +537,63 @@ export interface UpdateAccessControlConfigurationResponse {
|
|
|
537
537
|
*/
|
|
538
538
|
export interface UpdateDataSourceRequest {
|
|
539
539
|
/**
|
|
540
|
-
* @public
|
|
541
540
|
* <p>The identifier of the data source connector you want to update.</p>
|
|
541
|
+
* @public
|
|
542
542
|
*/
|
|
543
543
|
Id: string | undefined;
|
|
544
544
|
/**
|
|
545
|
-
* @public
|
|
546
545
|
* <p>A new name for the data source connector.</p>
|
|
546
|
+
* @public
|
|
547
547
|
*/
|
|
548
548
|
Name?: string;
|
|
549
549
|
/**
|
|
550
|
-
* @public
|
|
551
550
|
* <p>The identifier of the index used with the data source connector.</p>
|
|
551
|
+
* @public
|
|
552
552
|
*/
|
|
553
553
|
IndexId: string | undefined;
|
|
554
554
|
/**
|
|
555
|
-
* @public
|
|
556
555
|
* <p>Configuration information you want to update for the data source connector.</p>
|
|
556
|
+
* @public
|
|
557
557
|
*/
|
|
558
558
|
Configuration?: DataSourceConfiguration;
|
|
559
559
|
/**
|
|
560
|
-
* @public
|
|
561
560
|
* <p>Configuration information for an Amazon Virtual Private Cloud to connect to your data source.
|
|
562
561
|
* For more information, see <a href="https://docs.aws.amazon.com/kendra/latest/dg/vpc-configuration.html">Configuring a VPC</a>.</p>
|
|
562
|
+
* @public
|
|
563
563
|
*/
|
|
564
564
|
VpcConfiguration?: DataSourceVpcConfiguration;
|
|
565
565
|
/**
|
|
566
|
-
* @public
|
|
567
566
|
* <p>A new description for the data source connector.</p>
|
|
567
|
+
* @public
|
|
568
568
|
*/
|
|
569
569
|
Description?: string;
|
|
570
570
|
/**
|
|
571
|
-
* @public
|
|
572
571
|
* <p>The sync schedule you want to update for the data source connector.</p>
|
|
572
|
+
* @public
|
|
573
573
|
*/
|
|
574
574
|
Schedule?: string;
|
|
575
575
|
/**
|
|
576
|
-
* @public
|
|
577
576
|
* <p>The Amazon Resource Name (ARN) of a role with permission to access the data source and
|
|
578
577
|
* required resources. For more information, see <a href="https://docs.aws.amazon.com/kendra/latest/dg/iam-roles.html">IAM roles for Amazon Kendra</a>.</p>
|
|
578
|
+
* @public
|
|
579
579
|
*/
|
|
580
580
|
RoleArn?: string;
|
|
581
581
|
/**
|
|
582
|
-
* @public
|
|
583
582
|
* <p>The code for a language you want to update for the data source connector.
|
|
584
583
|
* This allows you to support a language for all
|
|
585
584
|
* documents when updating the data source. English is supported
|
|
586
585
|
* by default. For more information on supported languages, including their codes,
|
|
587
586
|
* see <a href="https://docs.aws.amazon.com/kendra/latest/dg/in-adding-languages.html">Adding
|
|
588
587
|
* documents in languages other than English</a>.</p>
|
|
588
|
+
* @public
|
|
589
589
|
*/
|
|
590
590
|
LanguageCode?: string;
|
|
591
591
|
/**
|
|
592
|
-
* @public
|
|
593
592
|
* <p>Configuration information you want to update for altering document metadata and
|
|
594
593
|
* content during the document ingestion process.</p>
|
|
595
594
|
* <p>For more information on how to create, modify and delete document metadata, or make
|
|
596
595
|
* other content alterations when you ingest documents into Amazon Kendra, see <a href="https://docs.aws.amazon.com/kendra/latest/dg/custom-document-enrichment.html">Customizing document metadata during the ingestion process</a>.</p>
|
|
596
|
+
* @public
|
|
597
597
|
*/
|
|
598
598
|
CustomDocumentEnrichmentConfiguration?: CustomDocumentEnrichmentConfiguration;
|
|
599
599
|
}
|
|
@@ -602,36 +602,36 @@ export interface UpdateDataSourceRequest {
|
|
|
602
602
|
*/
|
|
603
603
|
export interface UpdateExperienceRequest {
|
|
604
604
|
/**
|
|
605
|
-
* @public
|
|
606
605
|
* <p>The identifier of your Amazon Kendra experience you want to update.</p>
|
|
606
|
+
* @public
|
|
607
607
|
*/
|
|
608
608
|
Id: string | undefined;
|
|
609
609
|
/**
|
|
610
|
-
* @public
|
|
611
610
|
* <p>A new name for your Amazon Kendra experience.</p>
|
|
611
|
+
* @public
|
|
612
612
|
*/
|
|
613
613
|
Name?: string;
|
|
614
614
|
/**
|
|
615
|
-
* @public
|
|
616
615
|
* <p>The identifier of the index for your Amazon Kendra experience.</p>
|
|
616
|
+
* @public
|
|
617
617
|
*/
|
|
618
618
|
IndexId: string | undefined;
|
|
619
619
|
/**
|
|
620
|
-
* @public
|
|
621
620
|
* <p>The Amazon Resource Name (ARN) of a role with permission to access <code>Query</code>
|
|
622
621
|
* API, <code>QuerySuggestions</code> API, <code>SubmitFeedback</code>
|
|
623
622
|
* API, and IAM Identity Center that stores your user and group information.
|
|
624
623
|
* For more information, see <a href="https://docs.aws.amazon.com/kendra/latest/dg/iam-roles.html">IAM roles for Amazon Kendra</a>.</p>
|
|
624
|
+
* @public
|
|
625
625
|
*/
|
|
626
626
|
RoleArn?: string;
|
|
627
627
|
/**
|
|
628
|
-
* @public
|
|
629
628
|
* <p>Configuration information you want to update for your Amazon Kendra experience.</p>
|
|
629
|
+
* @public
|
|
630
630
|
*/
|
|
631
631
|
Configuration?: ExperienceConfiguration;
|
|
632
632
|
/**
|
|
633
|
-
* @public
|
|
634
633
|
* <p>A new description for your Amazon Kendra experience.</p>
|
|
634
|
+
* @public
|
|
635
635
|
*/
|
|
636
636
|
Description?: string;
|
|
637
637
|
}
|
|
@@ -640,46 +640,46 @@ export interface UpdateExperienceRequest {
|
|
|
640
640
|
*/
|
|
641
641
|
export interface UpdateFeaturedResultsSetRequest {
|
|
642
642
|
/**
|
|
643
|
-
* @public
|
|
644
643
|
* <p>The identifier of the index used for featuring results.</p>
|
|
644
|
+
* @public
|
|
645
645
|
*/
|
|
646
646
|
IndexId: string | undefined;
|
|
647
647
|
/**
|
|
648
|
-
* @public
|
|
649
648
|
* <p>The identifier of the set of featured results that you want to update.</p>
|
|
649
|
+
* @public
|
|
650
650
|
*/
|
|
651
651
|
FeaturedResultsSetId: string | undefined;
|
|
652
652
|
/**
|
|
653
|
-
* @public
|
|
654
653
|
* <p>A new name for the set of featured results.</p>
|
|
654
|
+
* @public
|
|
655
655
|
*/
|
|
656
656
|
FeaturedResultsSetName?: string;
|
|
657
657
|
/**
|
|
658
|
-
* @public
|
|
659
658
|
* <p>A new description for the set of featured results.</p>
|
|
659
|
+
* @public
|
|
660
660
|
*/
|
|
661
661
|
Description?: string;
|
|
662
662
|
/**
|
|
663
|
-
* @public
|
|
664
663
|
* <p>You can set the status to <code>ACTIVE</code> or <code>INACTIVE</code>.
|
|
665
664
|
* When the value is <code>ACTIVE</code>, featured results are ready for
|
|
666
665
|
* use. You can still configure your settings before setting the status
|
|
667
666
|
* to <code>ACTIVE</code>. The queries you specify for featured results
|
|
668
667
|
* must be unique per featured results set for each index, whether the
|
|
669
668
|
* status is <code>ACTIVE</code> or <code>INACTIVE</code>.</p>
|
|
669
|
+
* @public
|
|
670
670
|
*/
|
|
671
671
|
Status?: FeaturedResultsSetStatus;
|
|
672
672
|
/**
|
|
673
|
-
* @public
|
|
674
673
|
* <p>A list of queries for featuring results. For more information on the
|
|
675
674
|
* list of queries, see <a href="https://docs.aws.amazon.com/kendra/latest/dg/API_FeaturedResultsSet.html">FeaturedResultsSet</a>.</p>
|
|
675
|
+
* @public
|
|
676
676
|
*/
|
|
677
677
|
QueryTexts?: string[];
|
|
678
678
|
/**
|
|
679
|
-
* @public
|
|
680
679
|
* <p>A list of document IDs for the documents you want to feature at the
|
|
681
680
|
* top of the search results page. For more information on the list of
|
|
682
681
|
* featured documents, see <a href="https://docs.aws.amazon.com/kendra/latest/dg/API_FeaturedResultsSet.html">FeaturedResultsSet</a>.</p>
|
|
682
|
+
* @public
|
|
683
683
|
*/
|
|
684
684
|
FeaturedDocuments?: FeaturedDocument[];
|
|
685
685
|
}
|
|
@@ -688,10 +688,10 @@ export interface UpdateFeaturedResultsSetRequest {
|
|
|
688
688
|
*/
|
|
689
689
|
export interface UpdateFeaturedResultsSetResponse {
|
|
690
690
|
/**
|
|
691
|
-
* @public
|
|
692
691
|
* <p>Information on the set of featured results. This includes the identifier
|
|
693
692
|
* of the featured results set, whether the featured results set is active
|
|
694
693
|
* or inactive, when the featured results set was last updated, and more.</p>
|
|
694
|
+
* @public
|
|
695
695
|
*/
|
|
696
696
|
FeaturedResultsSet?: FeaturedResultsSet;
|
|
697
697
|
}
|
|
@@ -700,56 +700,56 @@ export interface UpdateFeaturedResultsSetResponse {
|
|
|
700
700
|
*/
|
|
701
701
|
export interface UpdateIndexRequest {
|
|
702
702
|
/**
|
|
703
|
-
* @public
|
|
704
703
|
* <p>The identifier of the index you want to update.</p>
|
|
704
|
+
* @public
|
|
705
705
|
*/
|
|
706
706
|
Id: string | undefined;
|
|
707
707
|
/**
|
|
708
|
-
* @public
|
|
709
708
|
* <p>The name of the index you want to update.</p>
|
|
709
|
+
* @public
|
|
710
710
|
*/
|
|
711
711
|
Name?: string;
|
|
712
712
|
/**
|
|
713
|
-
* @public
|
|
714
713
|
* <p>An Identity and Access Management (IAM) role that gives Amazon Kendra
|
|
715
714
|
* permission to access Amazon CloudWatch logs and metrics.</p>
|
|
715
|
+
* @public
|
|
716
716
|
*/
|
|
717
717
|
RoleArn?: string;
|
|
718
718
|
/**
|
|
719
|
-
* @public
|
|
720
719
|
* <p>A new description for the index.</p>
|
|
720
|
+
* @public
|
|
721
721
|
*/
|
|
722
722
|
Description?: string;
|
|
723
723
|
/**
|
|
724
|
-
* @public
|
|
725
724
|
* <p>The document metadata configuration you want to update for the index. Document metadata
|
|
726
725
|
* are fields or attributes associated with your documents. For example, the company department
|
|
727
726
|
* name associated with each document.</p>
|
|
727
|
+
* @public
|
|
728
728
|
*/
|
|
729
729
|
DocumentMetadataConfigurationUpdates?: DocumentMetadataConfiguration[];
|
|
730
730
|
/**
|
|
731
|
-
* @public
|
|
732
731
|
* <p>Sets the number of additional document storage and query capacity units that should be
|
|
733
732
|
* used by the index. You can change the capacity of the index up to 5 times per day, or make 5
|
|
734
733
|
* API calls.</p>
|
|
735
734
|
* <p>If you are using extra storage units, you can't reduce the storage capacity below what is
|
|
736
735
|
* required to meet the storage needs for your index.</p>
|
|
736
|
+
* @public
|
|
737
737
|
*/
|
|
738
738
|
CapacityUnits?: CapacityUnitsConfiguration;
|
|
739
739
|
/**
|
|
740
|
-
* @public
|
|
741
740
|
* <p>The user token configuration.</p>
|
|
741
|
+
* @public
|
|
742
742
|
*/
|
|
743
743
|
UserTokenConfigurations?: UserTokenConfiguration[];
|
|
744
744
|
/**
|
|
745
|
-
* @public
|
|
746
745
|
* <p>The user context policy.</p>
|
|
746
|
+
* @public
|
|
747
747
|
*/
|
|
748
748
|
UserContextPolicy?: UserContextPolicy;
|
|
749
749
|
/**
|
|
750
|
-
* @public
|
|
751
750
|
* <p>Enables fetching access levels of groups and users from an IAM Identity Center
|
|
752
751
|
* identity source. To configure this, see <a href="https://docs.aws.amazon.com/kendra/latest/dg/API_UserGroupResolutionConfiguration.html">UserGroupResolutionConfiguration</a>.</p>
|
|
752
|
+
* @public
|
|
753
753
|
*/
|
|
754
754
|
UserGroupResolutionConfiguration?: UserGroupResolutionConfiguration;
|
|
755
755
|
}
|
|
@@ -758,27 +758,26 @@ export interface UpdateIndexRequest {
|
|
|
758
758
|
*/
|
|
759
759
|
export interface UpdateQuerySuggestionsBlockListRequest {
|
|
760
760
|
/**
|
|
761
|
-
* @public
|
|
762
761
|
* <p>The identifier of the index for the block list.</p>
|
|
762
|
+
* @public
|
|
763
763
|
*/
|
|
764
764
|
IndexId: string | undefined;
|
|
765
765
|
/**
|
|
766
|
-
* @public
|
|
767
766
|
* <p>The identifier of the block list you want to update.</p>
|
|
767
|
+
* @public
|
|
768
768
|
*/
|
|
769
769
|
Id: string | undefined;
|
|
770
770
|
/**
|
|
771
|
-
* @public
|
|
772
771
|
* <p>A new name for the block list.</p>
|
|
772
|
+
* @public
|
|
773
773
|
*/
|
|
774
774
|
Name?: string;
|
|
775
775
|
/**
|
|
776
|
-
* @public
|
|
777
776
|
* <p>A new description for the block list.</p>
|
|
777
|
+
* @public
|
|
778
778
|
*/
|
|
779
779
|
Description?: string;
|
|
780
780
|
/**
|
|
781
|
-
* @public
|
|
782
781
|
* <p>The S3 path where your block list text file sits in S3.</p>
|
|
783
782
|
* <p>If you update your block list and provide the same path to the
|
|
784
783
|
* block list text file in S3, then Amazon Kendra reloads the file to refresh
|
|
@@ -788,12 +787,13 @@ export interface UpdateQuerySuggestionsBlockListRequest {
|
|
|
788
787
|
* <p>If you update your block list, then Amazon Kendra asynchronously refreshes
|
|
789
788
|
* all query suggestions with the latest content in the S3 file. This
|
|
790
789
|
* means changes might not take effect immediately.</p>
|
|
790
|
+
* @public
|
|
791
791
|
*/
|
|
792
792
|
SourceS3Path?: S3Path;
|
|
793
793
|
/**
|
|
794
|
-
* @public
|
|
795
794
|
* <p>The IAM (Identity and Access Management) role used to access the
|
|
796
795
|
* block list text file in S3.</p>
|
|
796
|
+
* @public
|
|
797
797
|
*/
|
|
798
798
|
RoleArn?: string;
|
|
799
799
|
}
|
|
@@ -802,12 +802,11 @@ export interface UpdateQuerySuggestionsBlockListRequest {
|
|
|
802
802
|
*/
|
|
803
803
|
export interface UpdateQuerySuggestionsConfigRequest {
|
|
804
804
|
/**
|
|
805
|
-
* @public
|
|
806
805
|
* <p> The identifier of the index with query suggestions you want to update.</p>
|
|
806
|
+
* @public
|
|
807
807
|
*/
|
|
808
808
|
IndexId: string | undefined;
|
|
809
809
|
/**
|
|
810
|
-
* @public
|
|
811
810
|
* <p>Set the mode to <code>ENABLED</code> or <code>LEARN_ONLY</code>.</p>
|
|
812
811
|
* <p>By default, Amazon Kendra enables query suggestions.
|
|
813
812
|
* <code>LEARN_ONLY</code> mode allows you to turn off query suggestions.
|
|
@@ -815,17 +814,17 @@ export interface UpdateQuerySuggestionsConfigRequest {
|
|
|
815
814
|
* <p>In <code>LEARN_ONLY</code> mode, Amazon Kendra continues to learn from new
|
|
816
815
|
* queries to keep suggestions up to date for when you are ready to
|
|
817
816
|
* switch to ENABLED mode again.</p>
|
|
817
|
+
* @public
|
|
818
818
|
*/
|
|
819
819
|
Mode?: Mode;
|
|
820
820
|
/**
|
|
821
|
-
* @public
|
|
822
821
|
* <p>How recent your queries are in your query log time window.</p>
|
|
823
822
|
* <p>The time window is the number of days from current day to past days.</p>
|
|
824
823
|
* <p>By default, Amazon Kendra sets this to 180.</p>
|
|
824
|
+
* @public
|
|
825
825
|
*/
|
|
826
826
|
QueryLogLookBackWindowInDays?: number;
|
|
827
827
|
/**
|
|
828
|
-
* @public
|
|
829
828
|
* <p>
|
|
830
829
|
* <code>TRUE</code> to include queries without user information (i.e. all queries,
|
|
831
830
|
* irrespective of the user), otherwise <code>FALSE</code> to only include queries
|
|
@@ -838,31 +837,32 @@ export interface UpdateQuerySuggestionsConfigRequest {
|
|
|
838
837
|
* unique users for suggestions.</p>
|
|
839
838
|
* <p>If you set to <code>TRUE</code>, Amazon Kendra ignores all user information and learns
|
|
840
839
|
* from all queries.</p>
|
|
840
|
+
* @public
|
|
841
841
|
*/
|
|
842
842
|
IncludeQueriesWithoutUserInformation?: boolean;
|
|
843
843
|
/**
|
|
844
|
-
* @public
|
|
845
844
|
* <p>The minimum number of unique users who must search a query in order for the query
|
|
846
845
|
* to be eligible to suggest to your users.</p>
|
|
847
846
|
* <p>Increasing this number might decrease the number of suggestions. However, this
|
|
848
847
|
* ensures a query is searched by many users and is truly popular to suggest to users.</p>
|
|
849
848
|
* <p>How you tune this setting depends on your specific needs.</p>
|
|
849
|
+
* @public
|
|
850
850
|
*/
|
|
851
851
|
MinimumNumberOfQueryingUsers?: number;
|
|
852
852
|
/**
|
|
853
|
-
* @public
|
|
854
853
|
* <p>The the minimum number of times a query must be searched in order to be
|
|
855
854
|
* eligible to suggest to your users.</p>
|
|
856
855
|
* <p>Decreasing this number increases the number of suggestions. However, this
|
|
857
856
|
* affects the quality of suggestions as it sets a low bar for a query to be
|
|
858
857
|
* considered popular to suggest to users.</p>
|
|
859
858
|
* <p>How you tune this setting depends on your specific needs.</p>
|
|
859
|
+
* @public
|
|
860
860
|
*/
|
|
861
861
|
MinimumQueryCount?: number;
|
|
862
862
|
/**
|
|
863
|
-
* @public
|
|
864
863
|
* <p>Configuration information for the document fields/attributes that you want to base
|
|
865
864
|
* query suggestions on.</p>
|
|
865
|
+
* @public
|
|
866
866
|
*/
|
|
867
867
|
AttributeSuggestionsConfig?: AttributeSuggestionsUpdateConfig;
|
|
868
868
|
}
|
|
@@ -871,39 +871,38 @@ export interface UpdateQuerySuggestionsConfigRequest {
|
|
|
871
871
|
*/
|
|
872
872
|
export interface UpdateThesaurusRequest {
|
|
873
873
|
/**
|
|
874
|
-
* @public
|
|
875
874
|
* <p>The identifier of the thesaurus you want to update.</p>
|
|
875
|
+
* @public
|
|
876
876
|
*/
|
|
877
877
|
Id: string | undefined;
|
|
878
878
|
/**
|
|
879
|
-
* @public
|
|
880
879
|
* <p>A new name for the thesaurus.</p>
|
|
880
|
+
* @public
|
|
881
881
|
*/
|
|
882
882
|
Name?: string;
|
|
883
883
|
/**
|
|
884
|
-
* @public
|
|
885
884
|
* <p>The identifier of the index for the thesaurus.</p>
|
|
885
|
+
* @public
|
|
886
886
|
*/
|
|
887
887
|
IndexId: string | undefined;
|
|
888
888
|
/**
|
|
889
|
-
* @public
|
|
890
889
|
* <p>A new description for the thesaurus.</p>
|
|
890
|
+
* @public
|
|
891
891
|
*/
|
|
892
892
|
Description?: string;
|
|
893
893
|
/**
|
|
894
|
-
* @public
|
|
895
894
|
* <p>An IAM role that gives Amazon Kendra permissions to
|
|
896
895
|
* access thesaurus file specified in <code>SourceS3Path</code>.</p>
|
|
896
|
+
* @public
|
|
897
897
|
*/
|
|
898
898
|
RoleArn?: string;
|
|
899
899
|
/**
|
|
900
|
-
* @public
|
|
901
900
|
* <p>Information required to find a specific file in an Amazon S3 bucket.</p>
|
|
901
|
+
* @public
|
|
902
902
|
*/
|
|
903
903
|
SourceS3Path?: S3Path;
|
|
904
904
|
}
|
|
905
905
|
/**
|
|
906
|
-
* @public
|
|
907
906
|
* <p>Information about a document attribute or field. You can use document attributes as
|
|
908
907
|
* facets.</p>
|
|
909
908
|
* <p>For example, the document attribute or facet "Department" includes the values "HR",
|
|
@@ -911,15 +910,15 @@ export interface UpdateThesaurusRequest {
|
|
|
911
910
|
* documents can be searched by department.</p>
|
|
912
911
|
* <p>You can display up to 10 facet values per facet for a query. If you want to increase
|
|
913
912
|
* this limit, contact <a href="http://aws.amazon.com/contact-us/">Support</a>.</p>
|
|
913
|
+
* @public
|
|
914
914
|
*/
|
|
915
915
|
export interface Facet {
|
|
916
916
|
/**
|
|
917
|
-
* @public
|
|
918
917
|
* <p>The unique key for the document attribute.</p>
|
|
918
|
+
* @public
|
|
919
919
|
*/
|
|
920
920
|
DocumentAttributeKey?: string;
|
|
921
921
|
/**
|
|
922
|
-
* @public
|
|
923
922
|
* <p>An array of document attributes that are nested facets within a facet.</p>
|
|
924
923
|
* <p>For example, the document attribute or facet "Department" includes a value called
|
|
925
924
|
* "Engineering". In addition, the document attribute or facet "SubDepartment" includes the
|
|
@@ -929,35 +928,35 @@ export interface Facet {
|
|
|
929
928
|
* narrow their search.</p>
|
|
930
929
|
* <p>You can only have one nested facet within a facet. If you want to increase this limit,
|
|
931
930
|
* contact <a href="http://aws.amazon.com/contact-us/">Support</a>.</p>
|
|
931
|
+
* @public
|
|
932
932
|
*/
|
|
933
933
|
Facets?: Facet[];
|
|
934
934
|
/**
|
|
935
|
-
* @public
|
|
936
935
|
* <p>Maximum number of facet values per facet. The default is 10. You can use this to limit
|
|
937
936
|
* the number of facet values to less than 10. If you want to increase the default, contact
|
|
938
937
|
* <a href="http://aws.amazon.com/contact-us/">Support</a>.</p>
|
|
938
|
+
* @public
|
|
939
939
|
*/
|
|
940
940
|
MaxResults?: number;
|
|
941
941
|
}
|
|
942
942
|
/**
|
|
943
|
-
* @public
|
|
944
943
|
* <p>Provides the count of documents that match a particular document attribute or
|
|
945
944
|
* field when doing a faceted search.</p>
|
|
945
|
+
* @public
|
|
946
946
|
*/
|
|
947
947
|
export interface DocumentAttributeValueCountPair {
|
|
948
948
|
/**
|
|
949
|
-
* @public
|
|
950
949
|
* <p>The value of the attribute/field. For example, "HR".</p>
|
|
950
|
+
* @public
|
|
951
951
|
*/
|
|
952
952
|
DocumentAttributeValue?: DocumentAttributeValue;
|
|
953
953
|
/**
|
|
954
|
-
* @public
|
|
955
954
|
* <p>The number of documents in the response that have the attribute/field value for
|
|
956
955
|
* the key.</p>
|
|
956
|
+
* @public
|
|
957
957
|
*/
|
|
958
958
|
Count?: number;
|
|
959
959
|
/**
|
|
960
|
-
* @public
|
|
961
960
|
* <p>Contains the results of a document attribute/field that is a nested facet. A
|
|
962
961
|
* <code>FacetResult</code> contains the counts for each facet nested within a
|
|
963
962
|
* facet.</p>
|
|
@@ -969,35 +968,35 @@ export interface DocumentAttributeValueCountPair {
|
|
|
969
968
|
* belong to "Frontend" and "Backend" within "Engineering" are returned for a query.</p>
|
|
970
969
|
* <p></p>
|
|
971
970
|
* <p></p>
|
|
971
|
+
* @public
|
|
972
972
|
*/
|
|
973
973
|
FacetResults?: FacetResult[];
|
|
974
974
|
}
|
|
975
975
|
/**
|
|
976
|
-
* @public
|
|
977
976
|
* <p>The facet values for the documents in the response.</p>
|
|
977
|
+
* @public
|
|
978
978
|
*/
|
|
979
979
|
export interface FacetResult {
|
|
980
980
|
/**
|
|
981
|
-
* @public
|
|
982
981
|
* <p>The key for the facet values. This is the same as the <code>DocumentAttributeKey</code>
|
|
983
982
|
* provided in the query.</p>
|
|
983
|
+
* @public
|
|
984
984
|
*/
|
|
985
985
|
DocumentAttributeKey?: string;
|
|
986
986
|
/**
|
|
987
|
-
* @public
|
|
988
987
|
* <p>The data type of the facet value. This is the same as the type defined for the index
|
|
989
988
|
* field when it was created.</p>
|
|
989
|
+
* @public
|
|
990
990
|
*/
|
|
991
991
|
DocumentAttributeValueType?: DocumentAttributeValueType;
|
|
992
992
|
/**
|
|
993
|
-
* @public
|
|
994
993
|
* <p>An array of key/value pairs, where the key is the value of the attribute and the count
|
|
995
994
|
* is the number of documents that share the key value.</p>
|
|
995
|
+
* @public
|
|
996
996
|
*/
|
|
997
997
|
DocumentAttributeValueCountPairs?: DocumentAttributeValueCountPair[];
|
|
998
998
|
}
|
|
999
999
|
/**
|
|
1000
|
-
* @public
|
|
1001
1000
|
* <p>Filters the search results based on document attributes or fields.</p>
|
|
1002
1001
|
* <p>You can filter results using attributes for your particular documents.
|
|
1003
1002
|
* The attributes must exist in your index. For example, if your documents
|
|
@@ -1040,70 +1039,71 @@ export interface FacetResult {
|
|
|
1040
1039
|
* cannot have a length of more than 10".</p>
|
|
1041
1040
|
* <p>For examples of using <code>AttributeFilter</code>, see <a href="https://docs.aws.amazon.com/kendra/latest/dg/filtering.html#search-filtering">Using
|
|
1042
1041
|
* document attributes to filter search results</a>.</p>
|
|
1042
|
+
* @public
|
|
1043
1043
|
*/
|
|
1044
1044
|
export interface AttributeFilter {
|
|
1045
1045
|
/**
|
|
1046
|
-
* @public
|
|
1047
1046
|
* <p>Performs a logical <code>AND</code> operation on all filters that you specify.</p>
|
|
1047
|
+
* @public
|
|
1048
1048
|
*/
|
|
1049
1049
|
AndAllFilters?: AttributeFilter[];
|
|
1050
1050
|
/**
|
|
1051
|
-
* @public
|
|
1052
1051
|
* <p>Performs a logical <code>OR</code> operation on all filters that you specify.</p>
|
|
1052
|
+
* @public
|
|
1053
1053
|
*/
|
|
1054
1054
|
OrAllFilters?: AttributeFilter[];
|
|
1055
1055
|
/**
|
|
1056
|
-
* @public
|
|
1057
1056
|
* <p>Performs a logical <code>NOT</code> operation on all filters that you specify.</p>
|
|
1057
|
+
* @public
|
|
1058
1058
|
*/
|
|
1059
1059
|
NotFilter?: AttributeFilter;
|
|
1060
1060
|
/**
|
|
1061
|
-
* @public
|
|
1062
1061
|
* <p>Performs an equals operation on document attributes/fields and their values.</p>
|
|
1062
|
+
* @public
|
|
1063
1063
|
*/
|
|
1064
1064
|
EqualsTo?: DocumentAttribute;
|
|
1065
1065
|
/**
|
|
1066
|
-
* @public
|
|
1067
1066
|
* <p>Returns true when a document contains all of the specified document attributes/fields.
|
|
1068
1067
|
* This filter is only applicable to <a href="https://docs.aws.amazon.com/kendra/latest/APIReference/API_DocumentAttributeValue.html">StringListValue</a>.</p>
|
|
1068
|
+
* @public
|
|
1069
1069
|
*/
|
|
1070
1070
|
ContainsAll?: DocumentAttribute;
|
|
1071
1071
|
/**
|
|
1072
|
-
* @public
|
|
1073
1072
|
* <p>Returns true when a document contains any of the specified document attributes/fields.
|
|
1074
1073
|
* This filter is only applicable to <a href="https://docs.aws.amazon.com/kendra/latest/APIReference/API_DocumentAttributeValue.html">StringListValue</a>.</p>
|
|
1074
|
+
* @public
|
|
1075
1075
|
*/
|
|
1076
1076
|
ContainsAny?: DocumentAttribute;
|
|
1077
1077
|
/**
|
|
1078
|
-
* @public
|
|
1079
1078
|
* <p>Performs a greater than operation on document attributes/fields and their
|
|
1080
1079
|
* values. Use with the <a href="https://docs.aws.amazon.com/kendra/latest/APIReference/API_DocumentAttributeValue.html">document attribute
|
|
1081
1080
|
* type</a>
|
|
1082
1081
|
* <code>Date</code> or <code>Long</code>.</p>
|
|
1082
|
+
* @public
|
|
1083
1083
|
*/
|
|
1084
1084
|
GreaterThan?: DocumentAttribute;
|
|
1085
1085
|
/**
|
|
1086
|
-
* @public
|
|
1087
1086
|
* <p>Performs a greater or equals than operation on document attributes/fields and
|
|
1088
1087
|
* their values. Use with the <a href="https://docs.aws.amazon.com/kendra/latest/APIReference/API_DocumentAttributeValue.html">document attribute
|
|
1089
1088
|
* type</a>
|
|
1090
1089
|
* <code>Date</code> or <code>Long</code>.</p>
|
|
1090
|
+
* @public
|
|
1091
1091
|
*/
|
|
1092
1092
|
GreaterThanOrEquals?: DocumentAttribute;
|
|
1093
1093
|
/**
|
|
1094
|
-
* @public
|
|
1095
1094
|
* <p>Performs a less than operation on document attributes/fields and their values.
|
|
1096
1095
|
* Use with the <a href="https://docs.aws.amazon.com/kendra/latest/APIReference/API_DocumentAttributeValue.html">document attribute
|
|
1097
1096
|
* type</a>
|
|
1098
1097
|
* <code>Date</code> or <code>Long</code>.</p>
|
|
1098
|
+
* @public
|
|
1099
1099
|
*/
|
|
1100
1100
|
LessThan?: DocumentAttribute;
|
|
1101
1101
|
/**
|
|
1102
|
-
* @public
|
|
1103
1102
|
* <p>Performs a less than or equals operation on document attributes/fields and
|
|
1104
1103
|
* their values. Use with the <a href="https://docs.aws.amazon.com/kendra/latest/APIReference/API_DocumentAttributeValue.html">document attribute
|
|
1105
1104
|
* type</a>
|
|
1106
1105
|
* <code>Date</code> or <code>Long</code>.</p>
|
|
1106
|
+
* @public
|
|
1107
1107
|
*/
|
|
1108
1108
|
LessThanOrEquals?: DocumentAttribute;
|
|
1109
1109
|
}
|
|
@@ -1112,80 +1112,80 @@ export interface AttributeFilter {
|
|
|
1112
1112
|
*/
|
|
1113
1113
|
export interface QueryResult {
|
|
1114
1114
|
/**
|
|
1115
|
-
* @public
|
|
1116
1115
|
* <p>The identifier for the search. You also use <code>QueryId</code> to identify the search
|
|
1117
1116
|
* when using the <a href="https://docs.aws.amazon.com/kendra/latest/APIReference/API_SubmitFeedback.html">SubmitFeedback</a>
|
|
1118
1117
|
* API.</p>
|
|
1118
|
+
* @public
|
|
1119
1119
|
*/
|
|
1120
1120
|
QueryId?: string;
|
|
1121
1121
|
/**
|
|
1122
|
-
* @public
|
|
1123
1122
|
* <p>The results of the search.</p>
|
|
1123
|
+
* @public
|
|
1124
1124
|
*/
|
|
1125
1125
|
ResultItems?: QueryResultItem[];
|
|
1126
1126
|
/**
|
|
1127
|
-
* @public
|
|
1128
1127
|
* <p>Contains the facet results. A <code>FacetResult</code> contains the counts for each
|
|
1129
1128
|
* field/attribute key that was specified in the <code>Facets</code> input parameter.</p>
|
|
1129
|
+
* @public
|
|
1130
1130
|
*/
|
|
1131
1131
|
FacetResults?: FacetResult[];
|
|
1132
1132
|
/**
|
|
1133
|
-
* @public
|
|
1134
1133
|
* <p>The total number of items found by the search. However, you can only retrieve up to 100
|
|
1135
1134
|
* items. For example, if the search found 192 items, you can only retrieve the first 100 of
|
|
1136
1135
|
* the items.</p>
|
|
1136
|
+
* @public
|
|
1137
1137
|
*/
|
|
1138
1138
|
TotalNumberOfResults?: number;
|
|
1139
1139
|
/**
|
|
1140
|
-
* @public
|
|
1141
1140
|
* <p>A list of warning codes and their messages on problems with your query.</p>
|
|
1142
1141
|
* <p>Amazon Kendra currently only supports one type of warning, which is a warning on
|
|
1143
1142
|
* invalid syntax used in the query. For examples of invalid query syntax, see <a href="https://docs.aws.amazon.com/kendra/latest/dg/searching-example.html#searching-index-query-syntax">Searching
|
|
1144
1143
|
* with advanced query syntax</a>.</p>
|
|
1144
|
+
* @public
|
|
1145
1145
|
*/
|
|
1146
1146
|
Warnings?: Warning[];
|
|
1147
1147
|
/**
|
|
1148
|
-
* @public
|
|
1149
1148
|
* <p>A list of information related to suggested spell corrections for a query.</p>
|
|
1149
|
+
* @public
|
|
1150
1150
|
*/
|
|
1151
1151
|
SpellCorrectedQueries?: SpellCorrectedQuery[];
|
|
1152
1152
|
/**
|
|
1153
|
-
* @public
|
|
1154
1153
|
* <p>The list of featured result items. Featured results are displayed at the top of the
|
|
1155
1154
|
* search results page, placed above all other results for certain queries. If there's an
|
|
1156
1155
|
* exact match of a query, then certain documents are featured in the search results.</p>
|
|
1156
|
+
* @public
|
|
1157
1157
|
*/
|
|
1158
1158
|
FeaturedResultsItems?: FeaturedResultsItem[];
|
|
1159
1159
|
}
|
|
1160
1160
|
/**
|
|
1161
|
-
* @public
|
|
1162
1161
|
* <p>Provides the configuration information for the document fields/attributes that you want
|
|
1163
1162
|
* to base query suggestions on.</p>
|
|
1163
|
+
* @public
|
|
1164
1164
|
*/
|
|
1165
1165
|
export interface AttributeSuggestionsGetConfig {
|
|
1166
1166
|
/**
|
|
1167
|
-
* @public
|
|
1168
1167
|
* <p>The list of document field/attribute keys or field names to use for query suggestions.
|
|
1169
1168
|
* If the content within any of the fields match what your user starts typing as their query,
|
|
1170
1169
|
* then the field content is returned as a query suggestion.</p>
|
|
1170
|
+
* @public
|
|
1171
1171
|
*/
|
|
1172
1172
|
SuggestionAttributes?: string[];
|
|
1173
1173
|
/**
|
|
1174
|
-
* @public
|
|
1175
1174
|
* <p>The list of additional document field/attribute keys or field names to include in the
|
|
1176
1175
|
* response. You can use additional fields to provide extra information in the response.
|
|
1177
1176
|
* Additional fields are not used to based suggestions on.</p>
|
|
1177
|
+
* @public
|
|
1178
1178
|
*/
|
|
1179
1179
|
AdditionalResponseAttributes?: string[];
|
|
1180
1180
|
/**
|
|
1181
|
-
* @public
|
|
1182
1181
|
* <p>Filters the search results based on document fields/attributes.</p>
|
|
1182
|
+
* @public
|
|
1183
1183
|
*/
|
|
1184
1184
|
AttributeFilter?: AttributeFilter;
|
|
1185
1185
|
/**
|
|
1186
|
-
* @public
|
|
1187
1186
|
* <p>Applies user context filtering so that only users who are given access to certain
|
|
1188
1187
|
* documents see these document in their search results.</p>
|
|
1188
|
+
* @public
|
|
1189
1189
|
*/
|
|
1190
1190
|
UserContext?: UserContext;
|
|
1191
1191
|
}
|
|
@@ -1194,35 +1194,34 @@ export interface AttributeSuggestionsGetConfig {
|
|
|
1194
1194
|
*/
|
|
1195
1195
|
export interface RetrieveRequest {
|
|
1196
1196
|
/**
|
|
1197
|
-
* @public
|
|
1198
1197
|
* <p>The identifier of the index to retrieve relevant passages for the search.</p>
|
|
1198
|
+
* @public
|
|
1199
1199
|
*/
|
|
1200
1200
|
IndexId: string | undefined;
|
|
1201
1201
|
/**
|
|
1202
|
-
* @public
|
|
1203
1202
|
* <p>The input query text to retrieve relevant passages for the search. Amazon Kendra
|
|
1204
1203
|
* truncates queries at 30 token words, which excludes punctuation and stop words.
|
|
1205
1204
|
* Truncation still applies if you use Boolean or more advanced, complex queries.</p>
|
|
1205
|
+
* @public
|
|
1206
1206
|
*/
|
|
1207
1207
|
QueryText: string | undefined;
|
|
1208
1208
|
/**
|
|
1209
|
-
* @public
|
|
1210
1209
|
* <p>Filters search results by document fields/attributes. You can only provide one
|
|
1211
1210
|
* attribute filter; however, the <code>AndAllFilters</code>, <code>NotFilter</code>, and
|
|
1212
1211
|
* <code>OrAllFilters</code> parameters contain a list of other filters.</p>
|
|
1213
1212
|
* <p>The <code>AttributeFilter</code> parameter means you can create a set of filtering
|
|
1214
1213
|
* rules that a document must satisfy to be included in the query results.</p>
|
|
1214
|
+
* @public
|
|
1215
1215
|
*/
|
|
1216
1216
|
AttributeFilter?: AttributeFilter;
|
|
1217
1217
|
/**
|
|
1218
|
-
* @public
|
|
1219
1218
|
* <p>A list of document fields/attributes to include in the response. You can limit the
|
|
1220
1219
|
* response to include certain document fields. By default, all document fields are
|
|
1221
1220
|
* included in the response.</p>
|
|
1221
|
+
* @public
|
|
1222
1222
|
*/
|
|
1223
1223
|
RequestedDocumentAttributes?: string[];
|
|
1224
1224
|
/**
|
|
1225
|
-
* @public
|
|
1226
1225
|
* <p>Overrides relevance tuning configurations of fields/attributes set at the index
|
|
1227
1226
|
* level.</p>
|
|
1228
1227
|
* <p>If you use this API to override the relevance tuning configured at the index level,
|
|
@@ -1231,25 +1230,26 @@ export interface RetrieveRequest {
|
|
|
1231
1230
|
* <p>If there is relevance tuning configured for fields at the index level, and you use
|
|
1232
1231
|
* this API to override only some of these fields, then for the fields you did not
|
|
1233
1232
|
* override, the importance is set to 1.</p>
|
|
1233
|
+
* @public
|
|
1234
1234
|
*/
|
|
1235
1235
|
DocumentRelevanceOverrideConfigurations?: DocumentRelevanceConfiguration[];
|
|
1236
1236
|
/**
|
|
1237
|
-
* @public
|
|
1238
1237
|
* <p>Retrieved relevant passages are returned in pages the size of the
|
|
1239
1238
|
* <code>PageSize</code> parameter. By default, Amazon Kendra returns the first
|
|
1240
1239
|
* page of results. Use this parameter to get result pages after the first one.</p>
|
|
1240
|
+
* @public
|
|
1241
1241
|
*/
|
|
1242
1242
|
PageNumber?: number;
|
|
1243
1243
|
/**
|
|
1244
|
-
* @public
|
|
1245
1244
|
* <p>Sets the number of retrieved relevant passages that are returned in each page of
|
|
1246
1245
|
* results. The default page size is 10. The maximum number of results returned is 100. If
|
|
1247
1246
|
* you ask for more than 100 results, only 100 are returned.</p>
|
|
1247
|
+
* @public
|
|
1248
1248
|
*/
|
|
1249
1249
|
PageSize?: number;
|
|
1250
1250
|
/**
|
|
1251
|
-
* @public
|
|
1252
1251
|
* <p>The user context token or user and group information.</p>
|
|
1252
|
+
* @public
|
|
1253
1253
|
*/
|
|
1254
1254
|
UserContext?: UserContext;
|
|
1255
1255
|
}
|
|
@@ -1258,12 +1258,11 @@ export interface RetrieveRequest {
|
|
|
1258
1258
|
*/
|
|
1259
1259
|
export interface GetQuerySuggestionsRequest {
|
|
1260
1260
|
/**
|
|
1261
|
-
* @public
|
|
1262
1261
|
* <p>The identifier of the index you want to get query suggestions from.</p>
|
|
1262
|
+
* @public
|
|
1263
1263
|
*/
|
|
1264
1264
|
IndexId: string | undefined;
|
|
1265
1265
|
/**
|
|
1266
|
-
* @public
|
|
1267
1266
|
* <p>The text of a user's query to generate query suggestions.</p>
|
|
1268
1267
|
* <p>A query is suggested if the query prefix matches
|
|
1269
1268
|
* what a user starts to type as their query.</p>
|
|
@@ -1271,16 +1270,16 @@ export interface GetQuerySuggestionsRequest {
|
|
|
1271
1270
|
* types fewer than two characters or more than 60 characters.
|
|
1272
1271
|
* A query must also have at least one search result and contain
|
|
1273
1272
|
* at least one word of more than four characters.</p>
|
|
1273
|
+
* @public
|
|
1274
1274
|
*/
|
|
1275
1275
|
QueryText: string | undefined;
|
|
1276
1276
|
/**
|
|
1277
|
-
* @public
|
|
1278
1277
|
* <p>The maximum number of query suggestions you want to show
|
|
1279
1278
|
* to your users.</p>
|
|
1279
|
+
* @public
|
|
1280
1280
|
*/
|
|
1281
1281
|
MaxSuggestionsCount?: number;
|
|
1282
1282
|
/**
|
|
1283
|
-
* @public
|
|
1284
1283
|
* <p>The suggestions type to base query suggestions on. The suggestion
|
|
1285
1284
|
* types are query history or document fields/attributes. You can set
|
|
1286
1285
|
* one type or the other.</p>
|
|
@@ -1290,12 +1289,13 @@ export interface GetQuerySuggestionsRequest {
|
|
|
1290
1289
|
* <p>If you set document fields/attributes as your suggestions type,
|
|
1291
1290
|
* Amazon Kendra suggests queries relevant to your users based on the
|
|
1292
1291
|
* contents of document fields.</p>
|
|
1292
|
+
* @public
|
|
1293
1293
|
*/
|
|
1294
1294
|
SuggestionTypes?: SuggestionType[];
|
|
1295
1295
|
/**
|
|
1296
|
-
* @public
|
|
1297
1296
|
* <p>Configuration information for the document fields/attributes that you
|
|
1298
1297
|
* want to base query suggestions on.</p>
|
|
1298
|
+
* @public
|
|
1299
1299
|
*/
|
|
1300
1300
|
AttributeSuggestionsConfig?: AttributeSuggestionsGetConfig;
|
|
1301
1301
|
}
|
|
@@ -1304,47 +1304,46 @@ export interface GetQuerySuggestionsRequest {
|
|
|
1304
1304
|
*/
|
|
1305
1305
|
export interface QueryRequest {
|
|
1306
1306
|
/**
|
|
1307
|
-
* @public
|
|
1308
1307
|
* <p>The identifier of the index for the search.</p>
|
|
1308
|
+
* @public
|
|
1309
1309
|
*/
|
|
1310
1310
|
IndexId: string | undefined;
|
|
1311
1311
|
/**
|
|
1312
|
-
* @public
|
|
1313
1312
|
* <p>The input query text for the search. Amazon Kendra truncates queries at 30 token
|
|
1314
1313
|
* words, which excludes punctuation and stop words. Truncation still applies if you use
|
|
1315
1314
|
* Boolean or more advanced, complex queries. </p>
|
|
1315
|
+
* @public
|
|
1316
1316
|
*/
|
|
1317
1317
|
QueryText?: string;
|
|
1318
1318
|
/**
|
|
1319
|
-
* @public
|
|
1320
1319
|
* <p>Filters search results by document fields/attributes. You can only provide one attribute
|
|
1321
1320
|
* filter; however, the <code>AndAllFilters</code>, <code>NotFilter</code>, and
|
|
1322
1321
|
* <code>OrAllFilters</code> parameters contain a list of other filters.</p>
|
|
1323
1322
|
* <p>The <code>AttributeFilter</code> parameter means you can create a set of filtering rules
|
|
1324
1323
|
* that a document must satisfy to be included in the query results.</p>
|
|
1324
|
+
* @public
|
|
1325
1325
|
*/
|
|
1326
1326
|
AttributeFilter?: AttributeFilter;
|
|
1327
1327
|
/**
|
|
1328
|
-
* @public
|
|
1329
1328
|
* <p>An array of documents fields/attributes for faceted search. Amazon Kendra returns a
|
|
1330
1329
|
* count for each field key specified. This helps your users narrow their search.</p>
|
|
1330
|
+
* @public
|
|
1331
1331
|
*/
|
|
1332
1332
|
Facets?: Facet[];
|
|
1333
1333
|
/**
|
|
1334
|
-
* @public
|
|
1335
1334
|
* <p>An array of document fields/attributes to include in the response. You can limit the
|
|
1336
1335
|
* response to include certain document fields. By default, all document attributes are
|
|
1337
1336
|
* included in the response.</p>
|
|
1337
|
+
* @public
|
|
1338
1338
|
*/
|
|
1339
1339
|
RequestedDocumentAttributes?: string[];
|
|
1340
1340
|
/**
|
|
1341
|
-
* @public
|
|
1342
1341
|
* <p>Sets the type of query result or response. Only results for the specified type are
|
|
1343
1342
|
* returned.</p>
|
|
1343
|
+
* @public
|
|
1344
1344
|
*/
|
|
1345
1345
|
QueryResultTypeFilter?: QueryResultType;
|
|
1346
1346
|
/**
|
|
1347
|
-
* @public
|
|
1348
1347
|
* <p>Overrides relevance tuning configurations of fields/attributes set at the index
|
|
1349
1348
|
* level.</p>
|
|
1350
1349
|
* <p>If you use this API to override the relevance tuning configured at the index level, but
|
|
@@ -1353,34 +1352,34 @@ export interface QueryRequest {
|
|
|
1353
1352
|
* <p>If there is relevance tuning configured for fields at the index level, and you use this
|
|
1354
1353
|
* API to override only some of these fields, then for the fields you did not override, the
|
|
1355
1354
|
* importance is set to 1.</p>
|
|
1355
|
+
* @public
|
|
1356
1356
|
*/
|
|
1357
1357
|
DocumentRelevanceOverrideConfigurations?: DocumentRelevanceConfiguration[];
|
|
1358
1358
|
/**
|
|
1359
|
-
* @public
|
|
1360
1359
|
* <p>Query results are returned in pages the size of the <code>PageSize</code> parameter. By
|
|
1361
1360
|
* default, Amazon Kendra returns the first page of results. Use this parameter to get
|
|
1362
1361
|
* result pages after the first one.</p>
|
|
1362
|
+
* @public
|
|
1363
1363
|
*/
|
|
1364
1364
|
PageNumber?: number;
|
|
1365
1365
|
/**
|
|
1366
|
-
* @public
|
|
1367
1366
|
* <p>Sets the number of results that are returned in each page of results. The default page
|
|
1368
1367
|
* size is 10. The maximum number of results returned is 100. If you ask for more than 100
|
|
1369
1368
|
* results, only 100 are returned.</p>
|
|
1369
|
+
* @public
|
|
1370
1370
|
*/
|
|
1371
1371
|
PageSize?: number;
|
|
1372
1372
|
/**
|
|
1373
|
-
* @public
|
|
1374
1373
|
* <p>Provides information that determines how the results of the query are sorted. You can
|
|
1375
1374
|
* set the field that Amazon Kendra should sort the results on, and specify whether the
|
|
1376
1375
|
* results should be sorted in ascending or descending order. In the case of ties in sorting
|
|
1377
1376
|
* the results, the results are sorted by relevance.</p>
|
|
1378
1377
|
* <p>If you don't provide sorting configuration, the results are sorted by the relevance that
|
|
1379
1378
|
* Amazon Kendra determines for the result.</p>
|
|
1379
|
+
* @public
|
|
1380
1380
|
*/
|
|
1381
1381
|
SortingConfiguration?: SortingConfiguration;
|
|
1382
1382
|
/**
|
|
1383
|
-
* @public
|
|
1384
1383
|
* <p>Provides configuration information to determine how the results of a query are
|
|
1385
1384
|
* sorted.</p>
|
|
1386
1385
|
* <p>You can set upto 3 fields that Amazon Kendra should sort the results on, and
|
|
@@ -1389,30 +1388,31 @@ export interface QueryRequest {
|
|
|
1389
1388
|
* <p>If you don't provide a sorting configuration, the results are sorted by the relevance
|
|
1390
1389
|
* that Amazon Kendra determines for the result. In the case of ties in sorting the
|
|
1391
1390
|
* results, the results are sorted by relevance. </p>
|
|
1391
|
+
* @public
|
|
1392
1392
|
*/
|
|
1393
1393
|
SortingConfigurations?: SortingConfiguration[];
|
|
1394
1394
|
/**
|
|
1395
|
-
* @public
|
|
1396
1395
|
* <p>The user context token or user and group information.</p>
|
|
1396
|
+
* @public
|
|
1397
1397
|
*/
|
|
1398
1398
|
UserContext?: UserContext;
|
|
1399
1399
|
/**
|
|
1400
|
-
* @public
|
|
1401
1400
|
* <p>Provides an identifier for a specific user. The <code>VisitorId</code> should be a
|
|
1402
1401
|
* unique identifier, such as a GUID. Don't use personally identifiable information, such as
|
|
1403
1402
|
* the user's email address, as the <code>VisitorId</code>.</p>
|
|
1403
|
+
* @public
|
|
1404
1404
|
*/
|
|
1405
1405
|
VisitorId?: string;
|
|
1406
1406
|
/**
|
|
1407
|
-
* @public
|
|
1408
1407
|
* <p>Enables suggested spell corrections for queries.</p>
|
|
1408
|
+
* @public
|
|
1409
1409
|
*/
|
|
1410
1410
|
SpellCorrectionConfiguration?: SpellCorrectionConfiguration;
|
|
1411
1411
|
/**
|
|
1412
|
-
* @public
|
|
1413
1412
|
* <p>Provides configuration to determine how to group results by document attribute value,
|
|
1414
1413
|
* and how to display them (collapsed or expanded) under a designated primary document for
|
|
1415
1414
|
* each group.</p>
|
|
1415
|
+
* @public
|
|
1416
1416
|
*/
|
|
1417
1417
|
CollapseConfiguration?: CollapseConfiguration;
|
|
1418
1418
|
}
|