@aws-sdk/client-kendra 3.309.0 → 3.312.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-cjs/protocols/Aws_json1_1.js +71 -260
- package/dist-es/protocols/Aws_json1_1.js +71 -260
- package/package.json +35 -35
|
@@ -10,650 +10,455 @@ const KendraServiceException_1 = require("../models/KendraServiceException");
|
|
|
10
10
|
const models_0_1 = require("../models/models_0");
|
|
11
11
|
const models_1_1 = require("../models/models_1");
|
|
12
12
|
const se_AssociateEntitiesToExperienceCommand = async (input, context) => {
|
|
13
|
-
const headers =
|
|
14
|
-
"content-type": "application/x-amz-json-1.1",
|
|
15
|
-
"x-amz-target": "AWSKendraFrontendService.AssociateEntitiesToExperience",
|
|
16
|
-
};
|
|
13
|
+
const headers = sharedHeaders("AssociateEntitiesToExperience");
|
|
17
14
|
let body;
|
|
18
15
|
body = JSON.stringify(se_AssociateEntitiesToExperienceRequest(input, context));
|
|
19
16
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
20
17
|
};
|
|
21
18
|
exports.se_AssociateEntitiesToExperienceCommand = se_AssociateEntitiesToExperienceCommand;
|
|
22
19
|
const se_AssociatePersonasToEntitiesCommand = async (input, context) => {
|
|
23
|
-
const headers =
|
|
24
|
-
"content-type": "application/x-amz-json-1.1",
|
|
25
|
-
"x-amz-target": "AWSKendraFrontendService.AssociatePersonasToEntities",
|
|
26
|
-
};
|
|
20
|
+
const headers = sharedHeaders("AssociatePersonasToEntities");
|
|
27
21
|
let body;
|
|
28
22
|
body = JSON.stringify(se_AssociatePersonasToEntitiesRequest(input, context));
|
|
29
23
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
30
24
|
};
|
|
31
25
|
exports.se_AssociatePersonasToEntitiesCommand = se_AssociatePersonasToEntitiesCommand;
|
|
32
26
|
const se_BatchDeleteDocumentCommand = async (input, context) => {
|
|
33
|
-
const headers =
|
|
34
|
-
"content-type": "application/x-amz-json-1.1",
|
|
35
|
-
"x-amz-target": "AWSKendraFrontendService.BatchDeleteDocument",
|
|
36
|
-
};
|
|
27
|
+
const headers = sharedHeaders("BatchDeleteDocument");
|
|
37
28
|
let body;
|
|
38
29
|
body = JSON.stringify(se_BatchDeleteDocumentRequest(input, context));
|
|
39
30
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
40
31
|
};
|
|
41
32
|
exports.se_BatchDeleteDocumentCommand = se_BatchDeleteDocumentCommand;
|
|
42
33
|
const se_BatchDeleteFeaturedResultsSetCommand = async (input, context) => {
|
|
43
|
-
const headers =
|
|
44
|
-
"content-type": "application/x-amz-json-1.1",
|
|
45
|
-
"x-amz-target": "AWSKendraFrontendService.BatchDeleteFeaturedResultsSet",
|
|
46
|
-
};
|
|
34
|
+
const headers = sharedHeaders("BatchDeleteFeaturedResultsSet");
|
|
47
35
|
let body;
|
|
48
36
|
body = JSON.stringify(se_BatchDeleteFeaturedResultsSetRequest(input, context));
|
|
49
37
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
50
38
|
};
|
|
51
39
|
exports.se_BatchDeleteFeaturedResultsSetCommand = se_BatchDeleteFeaturedResultsSetCommand;
|
|
52
40
|
const se_BatchGetDocumentStatusCommand = async (input, context) => {
|
|
53
|
-
const headers =
|
|
54
|
-
"content-type": "application/x-amz-json-1.1",
|
|
55
|
-
"x-amz-target": "AWSKendraFrontendService.BatchGetDocumentStatus",
|
|
56
|
-
};
|
|
41
|
+
const headers = sharedHeaders("BatchGetDocumentStatus");
|
|
57
42
|
let body;
|
|
58
43
|
body = JSON.stringify(se_BatchGetDocumentStatusRequest(input, context));
|
|
59
44
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
60
45
|
};
|
|
61
46
|
exports.se_BatchGetDocumentStatusCommand = se_BatchGetDocumentStatusCommand;
|
|
62
47
|
const se_BatchPutDocumentCommand = async (input, context) => {
|
|
63
|
-
const headers =
|
|
64
|
-
"content-type": "application/x-amz-json-1.1",
|
|
65
|
-
"x-amz-target": "AWSKendraFrontendService.BatchPutDocument",
|
|
66
|
-
};
|
|
48
|
+
const headers = sharedHeaders("BatchPutDocument");
|
|
67
49
|
let body;
|
|
68
50
|
body = JSON.stringify(se_BatchPutDocumentRequest(input, context));
|
|
69
51
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
70
52
|
};
|
|
71
53
|
exports.se_BatchPutDocumentCommand = se_BatchPutDocumentCommand;
|
|
72
54
|
const se_ClearQuerySuggestionsCommand = async (input, context) => {
|
|
73
|
-
const headers =
|
|
74
|
-
"content-type": "application/x-amz-json-1.1",
|
|
75
|
-
"x-amz-target": "AWSKendraFrontendService.ClearQuerySuggestions",
|
|
76
|
-
};
|
|
55
|
+
const headers = sharedHeaders("ClearQuerySuggestions");
|
|
77
56
|
let body;
|
|
78
57
|
body = JSON.stringify(se_ClearQuerySuggestionsRequest(input, context));
|
|
79
58
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
80
59
|
};
|
|
81
60
|
exports.se_ClearQuerySuggestionsCommand = se_ClearQuerySuggestionsCommand;
|
|
82
61
|
const se_CreateAccessControlConfigurationCommand = async (input, context) => {
|
|
83
|
-
const headers =
|
|
84
|
-
"content-type": "application/x-amz-json-1.1",
|
|
85
|
-
"x-amz-target": "AWSKendraFrontendService.CreateAccessControlConfiguration",
|
|
86
|
-
};
|
|
62
|
+
const headers = sharedHeaders("CreateAccessControlConfiguration");
|
|
87
63
|
let body;
|
|
88
64
|
body = JSON.stringify(se_CreateAccessControlConfigurationRequest(input, context));
|
|
89
65
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
90
66
|
};
|
|
91
67
|
exports.se_CreateAccessControlConfigurationCommand = se_CreateAccessControlConfigurationCommand;
|
|
92
68
|
const se_CreateDataSourceCommand = async (input, context) => {
|
|
93
|
-
const headers =
|
|
94
|
-
"content-type": "application/x-amz-json-1.1",
|
|
95
|
-
"x-amz-target": "AWSKendraFrontendService.CreateDataSource",
|
|
96
|
-
};
|
|
69
|
+
const headers = sharedHeaders("CreateDataSource");
|
|
97
70
|
let body;
|
|
98
71
|
body = JSON.stringify(se_CreateDataSourceRequest(input, context));
|
|
99
72
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
100
73
|
};
|
|
101
74
|
exports.se_CreateDataSourceCommand = se_CreateDataSourceCommand;
|
|
102
75
|
const se_CreateExperienceCommand = async (input, context) => {
|
|
103
|
-
const headers =
|
|
104
|
-
"content-type": "application/x-amz-json-1.1",
|
|
105
|
-
"x-amz-target": "AWSKendraFrontendService.CreateExperience",
|
|
106
|
-
};
|
|
76
|
+
const headers = sharedHeaders("CreateExperience");
|
|
107
77
|
let body;
|
|
108
78
|
body = JSON.stringify(se_CreateExperienceRequest(input, context));
|
|
109
79
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
110
80
|
};
|
|
111
81
|
exports.se_CreateExperienceCommand = se_CreateExperienceCommand;
|
|
112
82
|
const se_CreateFaqCommand = async (input, context) => {
|
|
113
|
-
const headers =
|
|
114
|
-
"content-type": "application/x-amz-json-1.1",
|
|
115
|
-
"x-amz-target": "AWSKendraFrontendService.CreateFaq",
|
|
116
|
-
};
|
|
83
|
+
const headers = sharedHeaders("CreateFaq");
|
|
117
84
|
let body;
|
|
118
85
|
body = JSON.stringify(se_CreateFaqRequest(input, context));
|
|
119
86
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
120
87
|
};
|
|
121
88
|
exports.se_CreateFaqCommand = se_CreateFaqCommand;
|
|
122
89
|
const se_CreateFeaturedResultsSetCommand = async (input, context) => {
|
|
123
|
-
const headers =
|
|
124
|
-
"content-type": "application/x-amz-json-1.1",
|
|
125
|
-
"x-amz-target": "AWSKendraFrontendService.CreateFeaturedResultsSet",
|
|
126
|
-
};
|
|
90
|
+
const headers = sharedHeaders("CreateFeaturedResultsSet");
|
|
127
91
|
let body;
|
|
128
92
|
body = JSON.stringify(se_CreateFeaturedResultsSetRequest(input, context));
|
|
129
93
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
130
94
|
};
|
|
131
95
|
exports.se_CreateFeaturedResultsSetCommand = se_CreateFeaturedResultsSetCommand;
|
|
132
96
|
const se_CreateIndexCommand = async (input, context) => {
|
|
133
|
-
const headers =
|
|
134
|
-
"content-type": "application/x-amz-json-1.1",
|
|
135
|
-
"x-amz-target": "AWSKendraFrontendService.CreateIndex",
|
|
136
|
-
};
|
|
97
|
+
const headers = sharedHeaders("CreateIndex");
|
|
137
98
|
let body;
|
|
138
99
|
body = JSON.stringify(se_CreateIndexRequest(input, context));
|
|
139
100
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
140
101
|
};
|
|
141
102
|
exports.se_CreateIndexCommand = se_CreateIndexCommand;
|
|
142
103
|
const se_CreateQuerySuggestionsBlockListCommand = async (input, context) => {
|
|
143
|
-
const headers =
|
|
144
|
-
"content-type": "application/x-amz-json-1.1",
|
|
145
|
-
"x-amz-target": "AWSKendraFrontendService.CreateQuerySuggestionsBlockList",
|
|
146
|
-
};
|
|
104
|
+
const headers = sharedHeaders("CreateQuerySuggestionsBlockList");
|
|
147
105
|
let body;
|
|
148
106
|
body = JSON.stringify(se_CreateQuerySuggestionsBlockListRequest(input, context));
|
|
149
107
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
150
108
|
};
|
|
151
109
|
exports.se_CreateQuerySuggestionsBlockListCommand = se_CreateQuerySuggestionsBlockListCommand;
|
|
152
110
|
const se_CreateThesaurusCommand = async (input, context) => {
|
|
153
|
-
const headers =
|
|
154
|
-
"content-type": "application/x-amz-json-1.1",
|
|
155
|
-
"x-amz-target": "AWSKendraFrontendService.CreateThesaurus",
|
|
156
|
-
};
|
|
111
|
+
const headers = sharedHeaders("CreateThesaurus");
|
|
157
112
|
let body;
|
|
158
113
|
body = JSON.stringify(se_CreateThesaurusRequest(input, context));
|
|
159
114
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
160
115
|
};
|
|
161
116
|
exports.se_CreateThesaurusCommand = se_CreateThesaurusCommand;
|
|
162
117
|
const se_DeleteAccessControlConfigurationCommand = async (input, context) => {
|
|
163
|
-
const headers =
|
|
164
|
-
"content-type": "application/x-amz-json-1.1",
|
|
165
|
-
"x-amz-target": "AWSKendraFrontendService.DeleteAccessControlConfiguration",
|
|
166
|
-
};
|
|
118
|
+
const headers = sharedHeaders("DeleteAccessControlConfiguration");
|
|
167
119
|
let body;
|
|
168
120
|
body = JSON.stringify(se_DeleteAccessControlConfigurationRequest(input, context));
|
|
169
121
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
170
122
|
};
|
|
171
123
|
exports.se_DeleteAccessControlConfigurationCommand = se_DeleteAccessControlConfigurationCommand;
|
|
172
124
|
const se_DeleteDataSourceCommand = async (input, context) => {
|
|
173
|
-
const headers =
|
|
174
|
-
"content-type": "application/x-amz-json-1.1",
|
|
175
|
-
"x-amz-target": "AWSKendraFrontendService.DeleteDataSource",
|
|
176
|
-
};
|
|
125
|
+
const headers = sharedHeaders("DeleteDataSource");
|
|
177
126
|
let body;
|
|
178
127
|
body = JSON.stringify(se_DeleteDataSourceRequest(input, context));
|
|
179
128
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
180
129
|
};
|
|
181
130
|
exports.se_DeleteDataSourceCommand = se_DeleteDataSourceCommand;
|
|
182
131
|
const se_DeleteExperienceCommand = async (input, context) => {
|
|
183
|
-
const headers =
|
|
184
|
-
"content-type": "application/x-amz-json-1.1",
|
|
185
|
-
"x-amz-target": "AWSKendraFrontendService.DeleteExperience",
|
|
186
|
-
};
|
|
132
|
+
const headers = sharedHeaders("DeleteExperience");
|
|
187
133
|
let body;
|
|
188
134
|
body = JSON.stringify(se_DeleteExperienceRequest(input, context));
|
|
189
135
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
190
136
|
};
|
|
191
137
|
exports.se_DeleteExperienceCommand = se_DeleteExperienceCommand;
|
|
192
138
|
const se_DeleteFaqCommand = async (input, context) => {
|
|
193
|
-
const headers =
|
|
194
|
-
"content-type": "application/x-amz-json-1.1",
|
|
195
|
-
"x-amz-target": "AWSKendraFrontendService.DeleteFaq",
|
|
196
|
-
};
|
|
139
|
+
const headers = sharedHeaders("DeleteFaq");
|
|
197
140
|
let body;
|
|
198
141
|
body = JSON.stringify(se_DeleteFaqRequest(input, context));
|
|
199
142
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
200
143
|
};
|
|
201
144
|
exports.se_DeleteFaqCommand = se_DeleteFaqCommand;
|
|
202
145
|
const se_DeleteIndexCommand = async (input, context) => {
|
|
203
|
-
const headers =
|
|
204
|
-
"content-type": "application/x-amz-json-1.1",
|
|
205
|
-
"x-amz-target": "AWSKendraFrontendService.DeleteIndex",
|
|
206
|
-
};
|
|
146
|
+
const headers = sharedHeaders("DeleteIndex");
|
|
207
147
|
let body;
|
|
208
148
|
body = JSON.stringify(se_DeleteIndexRequest(input, context));
|
|
209
149
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
210
150
|
};
|
|
211
151
|
exports.se_DeleteIndexCommand = se_DeleteIndexCommand;
|
|
212
152
|
const se_DeletePrincipalMappingCommand = async (input, context) => {
|
|
213
|
-
const headers =
|
|
214
|
-
"content-type": "application/x-amz-json-1.1",
|
|
215
|
-
"x-amz-target": "AWSKendraFrontendService.DeletePrincipalMapping",
|
|
216
|
-
};
|
|
153
|
+
const headers = sharedHeaders("DeletePrincipalMapping");
|
|
217
154
|
let body;
|
|
218
155
|
body = JSON.stringify(se_DeletePrincipalMappingRequest(input, context));
|
|
219
156
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
220
157
|
};
|
|
221
158
|
exports.se_DeletePrincipalMappingCommand = se_DeletePrincipalMappingCommand;
|
|
222
159
|
const se_DeleteQuerySuggestionsBlockListCommand = async (input, context) => {
|
|
223
|
-
const headers =
|
|
224
|
-
"content-type": "application/x-amz-json-1.1",
|
|
225
|
-
"x-amz-target": "AWSKendraFrontendService.DeleteQuerySuggestionsBlockList",
|
|
226
|
-
};
|
|
160
|
+
const headers = sharedHeaders("DeleteQuerySuggestionsBlockList");
|
|
227
161
|
let body;
|
|
228
162
|
body = JSON.stringify(se_DeleteQuerySuggestionsBlockListRequest(input, context));
|
|
229
163
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
230
164
|
};
|
|
231
165
|
exports.se_DeleteQuerySuggestionsBlockListCommand = se_DeleteQuerySuggestionsBlockListCommand;
|
|
232
166
|
const se_DeleteThesaurusCommand = async (input, context) => {
|
|
233
|
-
const headers =
|
|
234
|
-
"content-type": "application/x-amz-json-1.1",
|
|
235
|
-
"x-amz-target": "AWSKendraFrontendService.DeleteThesaurus",
|
|
236
|
-
};
|
|
167
|
+
const headers = sharedHeaders("DeleteThesaurus");
|
|
237
168
|
let body;
|
|
238
169
|
body = JSON.stringify(se_DeleteThesaurusRequest(input, context));
|
|
239
170
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
240
171
|
};
|
|
241
172
|
exports.se_DeleteThesaurusCommand = se_DeleteThesaurusCommand;
|
|
242
173
|
const se_DescribeAccessControlConfigurationCommand = async (input, context) => {
|
|
243
|
-
const headers =
|
|
244
|
-
"content-type": "application/x-amz-json-1.1",
|
|
245
|
-
"x-amz-target": "AWSKendraFrontendService.DescribeAccessControlConfiguration",
|
|
246
|
-
};
|
|
174
|
+
const headers = sharedHeaders("DescribeAccessControlConfiguration");
|
|
247
175
|
let body;
|
|
248
176
|
body = JSON.stringify(se_DescribeAccessControlConfigurationRequest(input, context));
|
|
249
177
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
250
178
|
};
|
|
251
179
|
exports.se_DescribeAccessControlConfigurationCommand = se_DescribeAccessControlConfigurationCommand;
|
|
252
180
|
const se_DescribeDataSourceCommand = async (input, context) => {
|
|
253
|
-
const headers =
|
|
254
|
-
"content-type": "application/x-amz-json-1.1",
|
|
255
|
-
"x-amz-target": "AWSKendraFrontendService.DescribeDataSource",
|
|
256
|
-
};
|
|
181
|
+
const headers = sharedHeaders("DescribeDataSource");
|
|
257
182
|
let body;
|
|
258
183
|
body = JSON.stringify(se_DescribeDataSourceRequest(input, context));
|
|
259
184
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
260
185
|
};
|
|
261
186
|
exports.se_DescribeDataSourceCommand = se_DescribeDataSourceCommand;
|
|
262
187
|
const se_DescribeExperienceCommand = async (input, context) => {
|
|
263
|
-
const headers =
|
|
264
|
-
"content-type": "application/x-amz-json-1.1",
|
|
265
|
-
"x-amz-target": "AWSKendraFrontendService.DescribeExperience",
|
|
266
|
-
};
|
|
188
|
+
const headers = sharedHeaders("DescribeExperience");
|
|
267
189
|
let body;
|
|
268
190
|
body = JSON.stringify(se_DescribeExperienceRequest(input, context));
|
|
269
191
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
270
192
|
};
|
|
271
193
|
exports.se_DescribeExperienceCommand = se_DescribeExperienceCommand;
|
|
272
194
|
const se_DescribeFaqCommand = async (input, context) => {
|
|
273
|
-
const headers =
|
|
274
|
-
"content-type": "application/x-amz-json-1.1",
|
|
275
|
-
"x-amz-target": "AWSKendraFrontendService.DescribeFaq",
|
|
276
|
-
};
|
|
195
|
+
const headers = sharedHeaders("DescribeFaq");
|
|
277
196
|
let body;
|
|
278
197
|
body = JSON.stringify(se_DescribeFaqRequest(input, context));
|
|
279
198
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
280
199
|
};
|
|
281
200
|
exports.se_DescribeFaqCommand = se_DescribeFaqCommand;
|
|
282
201
|
const se_DescribeFeaturedResultsSetCommand = async (input, context) => {
|
|
283
|
-
const headers =
|
|
284
|
-
"content-type": "application/x-amz-json-1.1",
|
|
285
|
-
"x-amz-target": "AWSKendraFrontendService.DescribeFeaturedResultsSet",
|
|
286
|
-
};
|
|
202
|
+
const headers = sharedHeaders("DescribeFeaturedResultsSet");
|
|
287
203
|
let body;
|
|
288
204
|
body = JSON.stringify(se_DescribeFeaturedResultsSetRequest(input, context));
|
|
289
205
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
290
206
|
};
|
|
291
207
|
exports.se_DescribeFeaturedResultsSetCommand = se_DescribeFeaturedResultsSetCommand;
|
|
292
208
|
const se_DescribeIndexCommand = async (input, context) => {
|
|
293
|
-
const headers =
|
|
294
|
-
"content-type": "application/x-amz-json-1.1",
|
|
295
|
-
"x-amz-target": "AWSKendraFrontendService.DescribeIndex",
|
|
296
|
-
};
|
|
209
|
+
const headers = sharedHeaders("DescribeIndex");
|
|
297
210
|
let body;
|
|
298
211
|
body = JSON.stringify(se_DescribeIndexRequest(input, context));
|
|
299
212
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
300
213
|
};
|
|
301
214
|
exports.se_DescribeIndexCommand = se_DescribeIndexCommand;
|
|
302
215
|
const se_DescribePrincipalMappingCommand = async (input, context) => {
|
|
303
|
-
const headers =
|
|
304
|
-
"content-type": "application/x-amz-json-1.1",
|
|
305
|
-
"x-amz-target": "AWSKendraFrontendService.DescribePrincipalMapping",
|
|
306
|
-
};
|
|
216
|
+
const headers = sharedHeaders("DescribePrincipalMapping");
|
|
307
217
|
let body;
|
|
308
218
|
body = JSON.stringify(se_DescribePrincipalMappingRequest(input, context));
|
|
309
219
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
310
220
|
};
|
|
311
221
|
exports.se_DescribePrincipalMappingCommand = se_DescribePrincipalMappingCommand;
|
|
312
222
|
const se_DescribeQuerySuggestionsBlockListCommand = async (input, context) => {
|
|
313
|
-
const headers =
|
|
314
|
-
"content-type": "application/x-amz-json-1.1",
|
|
315
|
-
"x-amz-target": "AWSKendraFrontendService.DescribeQuerySuggestionsBlockList",
|
|
316
|
-
};
|
|
223
|
+
const headers = sharedHeaders("DescribeQuerySuggestionsBlockList");
|
|
317
224
|
let body;
|
|
318
225
|
body = JSON.stringify(se_DescribeQuerySuggestionsBlockListRequest(input, context));
|
|
319
226
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
320
227
|
};
|
|
321
228
|
exports.se_DescribeQuerySuggestionsBlockListCommand = se_DescribeQuerySuggestionsBlockListCommand;
|
|
322
229
|
const se_DescribeQuerySuggestionsConfigCommand = async (input, context) => {
|
|
323
|
-
const headers =
|
|
324
|
-
"content-type": "application/x-amz-json-1.1",
|
|
325
|
-
"x-amz-target": "AWSKendraFrontendService.DescribeQuerySuggestionsConfig",
|
|
326
|
-
};
|
|
230
|
+
const headers = sharedHeaders("DescribeQuerySuggestionsConfig");
|
|
327
231
|
let body;
|
|
328
232
|
body = JSON.stringify(se_DescribeQuerySuggestionsConfigRequest(input, context));
|
|
329
233
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
330
234
|
};
|
|
331
235
|
exports.se_DescribeQuerySuggestionsConfigCommand = se_DescribeQuerySuggestionsConfigCommand;
|
|
332
236
|
const se_DescribeThesaurusCommand = async (input, context) => {
|
|
333
|
-
const headers =
|
|
334
|
-
"content-type": "application/x-amz-json-1.1",
|
|
335
|
-
"x-amz-target": "AWSKendraFrontendService.DescribeThesaurus",
|
|
336
|
-
};
|
|
237
|
+
const headers = sharedHeaders("DescribeThesaurus");
|
|
337
238
|
let body;
|
|
338
239
|
body = JSON.stringify(se_DescribeThesaurusRequest(input, context));
|
|
339
240
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
340
241
|
};
|
|
341
242
|
exports.se_DescribeThesaurusCommand = se_DescribeThesaurusCommand;
|
|
342
243
|
const se_DisassociateEntitiesFromExperienceCommand = async (input, context) => {
|
|
343
|
-
const headers =
|
|
344
|
-
"content-type": "application/x-amz-json-1.1",
|
|
345
|
-
"x-amz-target": "AWSKendraFrontendService.DisassociateEntitiesFromExperience",
|
|
346
|
-
};
|
|
244
|
+
const headers = sharedHeaders("DisassociateEntitiesFromExperience");
|
|
347
245
|
let body;
|
|
348
246
|
body = JSON.stringify(se_DisassociateEntitiesFromExperienceRequest(input, context));
|
|
349
247
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
350
248
|
};
|
|
351
249
|
exports.se_DisassociateEntitiesFromExperienceCommand = se_DisassociateEntitiesFromExperienceCommand;
|
|
352
250
|
const se_DisassociatePersonasFromEntitiesCommand = async (input, context) => {
|
|
353
|
-
const headers =
|
|
354
|
-
"content-type": "application/x-amz-json-1.1",
|
|
355
|
-
"x-amz-target": "AWSKendraFrontendService.DisassociatePersonasFromEntities",
|
|
356
|
-
};
|
|
251
|
+
const headers = sharedHeaders("DisassociatePersonasFromEntities");
|
|
357
252
|
let body;
|
|
358
253
|
body = JSON.stringify(se_DisassociatePersonasFromEntitiesRequest(input, context));
|
|
359
254
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
360
255
|
};
|
|
361
256
|
exports.se_DisassociatePersonasFromEntitiesCommand = se_DisassociatePersonasFromEntitiesCommand;
|
|
362
257
|
const se_GetQuerySuggestionsCommand = async (input, context) => {
|
|
363
|
-
const headers =
|
|
364
|
-
"content-type": "application/x-amz-json-1.1",
|
|
365
|
-
"x-amz-target": "AWSKendraFrontendService.GetQuerySuggestions",
|
|
366
|
-
};
|
|
258
|
+
const headers = sharedHeaders("GetQuerySuggestions");
|
|
367
259
|
let body;
|
|
368
260
|
body = JSON.stringify(se_GetQuerySuggestionsRequest(input, context));
|
|
369
261
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
370
262
|
};
|
|
371
263
|
exports.se_GetQuerySuggestionsCommand = se_GetQuerySuggestionsCommand;
|
|
372
264
|
const se_GetSnapshotsCommand = async (input, context) => {
|
|
373
|
-
const headers =
|
|
374
|
-
"content-type": "application/x-amz-json-1.1",
|
|
375
|
-
"x-amz-target": "AWSKendraFrontendService.GetSnapshots",
|
|
376
|
-
};
|
|
265
|
+
const headers = sharedHeaders("GetSnapshots");
|
|
377
266
|
let body;
|
|
378
267
|
body = JSON.stringify(se_GetSnapshotsRequest(input, context));
|
|
379
268
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
380
269
|
};
|
|
381
270
|
exports.se_GetSnapshotsCommand = se_GetSnapshotsCommand;
|
|
382
271
|
const se_ListAccessControlConfigurationsCommand = async (input, context) => {
|
|
383
|
-
const headers =
|
|
384
|
-
"content-type": "application/x-amz-json-1.1",
|
|
385
|
-
"x-amz-target": "AWSKendraFrontendService.ListAccessControlConfigurations",
|
|
386
|
-
};
|
|
272
|
+
const headers = sharedHeaders("ListAccessControlConfigurations");
|
|
387
273
|
let body;
|
|
388
274
|
body = JSON.stringify(se_ListAccessControlConfigurationsRequest(input, context));
|
|
389
275
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
390
276
|
};
|
|
391
277
|
exports.se_ListAccessControlConfigurationsCommand = se_ListAccessControlConfigurationsCommand;
|
|
392
278
|
const se_ListDataSourcesCommand = async (input, context) => {
|
|
393
|
-
const headers =
|
|
394
|
-
"content-type": "application/x-amz-json-1.1",
|
|
395
|
-
"x-amz-target": "AWSKendraFrontendService.ListDataSources",
|
|
396
|
-
};
|
|
279
|
+
const headers = sharedHeaders("ListDataSources");
|
|
397
280
|
let body;
|
|
398
281
|
body = JSON.stringify(se_ListDataSourcesRequest(input, context));
|
|
399
282
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
400
283
|
};
|
|
401
284
|
exports.se_ListDataSourcesCommand = se_ListDataSourcesCommand;
|
|
402
285
|
const se_ListDataSourceSyncJobsCommand = async (input, context) => {
|
|
403
|
-
const headers =
|
|
404
|
-
"content-type": "application/x-amz-json-1.1",
|
|
405
|
-
"x-amz-target": "AWSKendraFrontendService.ListDataSourceSyncJobs",
|
|
406
|
-
};
|
|
286
|
+
const headers = sharedHeaders("ListDataSourceSyncJobs");
|
|
407
287
|
let body;
|
|
408
288
|
body = JSON.stringify(se_ListDataSourceSyncJobsRequest(input, context));
|
|
409
289
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
410
290
|
};
|
|
411
291
|
exports.se_ListDataSourceSyncJobsCommand = se_ListDataSourceSyncJobsCommand;
|
|
412
292
|
const se_ListEntityPersonasCommand = async (input, context) => {
|
|
413
|
-
const headers =
|
|
414
|
-
"content-type": "application/x-amz-json-1.1",
|
|
415
|
-
"x-amz-target": "AWSKendraFrontendService.ListEntityPersonas",
|
|
416
|
-
};
|
|
293
|
+
const headers = sharedHeaders("ListEntityPersonas");
|
|
417
294
|
let body;
|
|
418
295
|
body = JSON.stringify(se_ListEntityPersonasRequest(input, context));
|
|
419
296
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
420
297
|
};
|
|
421
298
|
exports.se_ListEntityPersonasCommand = se_ListEntityPersonasCommand;
|
|
422
299
|
const se_ListExperienceEntitiesCommand = async (input, context) => {
|
|
423
|
-
const headers =
|
|
424
|
-
"content-type": "application/x-amz-json-1.1",
|
|
425
|
-
"x-amz-target": "AWSKendraFrontendService.ListExperienceEntities",
|
|
426
|
-
};
|
|
300
|
+
const headers = sharedHeaders("ListExperienceEntities");
|
|
427
301
|
let body;
|
|
428
302
|
body = JSON.stringify(se_ListExperienceEntitiesRequest(input, context));
|
|
429
303
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
430
304
|
};
|
|
431
305
|
exports.se_ListExperienceEntitiesCommand = se_ListExperienceEntitiesCommand;
|
|
432
306
|
const se_ListExperiencesCommand = async (input, context) => {
|
|
433
|
-
const headers =
|
|
434
|
-
"content-type": "application/x-amz-json-1.1",
|
|
435
|
-
"x-amz-target": "AWSKendraFrontendService.ListExperiences",
|
|
436
|
-
};
|
|
307
|
+
const headers = sharedHeaders("ListExperiences");
|
|
437
308
|
let body;
|
|
438
309
|
body = JSON.stringify(se_ListExperiencesRequest(input, context));
|
|
439
310
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
440
311
|
};
|
|
441
312
|
exports.se_ListExperiencesCommand = se_ListExperiencesCommand;
|
|
442
313
|
const se_ListFaqsCommand = async (input, context) => {
|
|
443
|
-
const headers =
|
|
444
|
-
"content-type": "application/x-amz-json-1.1",
|
|
445
|
-
"x-amz-target": "AWSKendraFrontendService.ListFaqs",
|
|
446
|
-
};
|
|
314
|
+
const headers = sharedHeaders("ListFaqs");
|
|
447
315
|
let body;
|
|
448
316
|
body = JSON.stringify(se_ListFaqsRequest(input, context));
|
|
449
317
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
450
318
|
};
|
|
451
319
|
exports.se_ListFaqsCommand = se_ListFaqsCommand;
|
|
452
320
|
const se_ListFeaturedResultsSetsCommand = async (input, context) => {
|
|
453
|
-
const headers =
|
|
454
|
-
"content-type": "application/x-amz-json-1.1",
|
|
455
|
-
"x-amz-target": "AWSKendraFrontendService.ListFeaturedResultsSets",
|
|
456
|
-
};
|
|
321
|
+
const headers = sharedHeaders("ListFeaturedResultsSets");
|
|
457
322
|
let body;
|
|
458
323
|
body = JSON.stringify(se_ListFeaturedResultsSetsRequest(input, context));
|
|
459
324
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
460
325
|
};
|
|
461
326
|
exports.se_ListFeaturedResultsSetsCommand = se_ListFeaturedResultsSetsCommand;
|
|
462
327
|
const se_ListGroupsOlderThanOrderingIdCommand = async (input, context) => {
|
|
463
|
-
const headers =
|
|
464
|
-
"content-type": "application/x-amz-json-1.1",
|
|
465
|
-
"x-amz-target": "AWSKendraFrontendService.ListGroupsOlderThanOrderingId",
|
|
466
|
-
};
|
|
328
|
+
const headers = sharedHeaders("ListGroupsOlderThanOrderingId");
|
|
467
329
|
let body;
|
|
468
330
|
body = JSON.stringify(se_ListGroupsOlderThanOrderingIdRequest(input, context));
|
|
469
331
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
470
332
|
};
|
|
471
333
|
exports.se_ListGroupsOlderThanOrderingIdCommand = se_ListGroupsOlderThanOrderingIdCommand;
|
|
472
334
|
const se_ListIndicesCommand = async (input, context) => {
|
|
473
|
-
const headers =
|
|
474
|
-
"content-type": "application/x-amz-json-1.1",
|
|
475
|
-
"x-amz-target": "AWSKendraFrontendService.ListIndices",
|
|
476
|
-
};
|
|
335
|
+
const headers = sharedHeaders("ListIndices");
|
|
477
336
|
let body;
|
|
478
337
|
body = JSON.stringify(se_ListIndicesRequest(input, context));
|
|
479
338
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
480
339
|
};
|
|
481
340
|
exports.se_ListIndicesCommand = se_ListIndicesCommand;
|
|
482
341
|
const se_ListQuerySuggestionsBlockListsCommand = async (input, context) => {
|
|
483
|
-
const headers =
|
|
484
|
-
"content-type": "application/x-amz-json-1.1",
|
|
485
|
-
"x-amz-target": "AWSKendraFrontendService.ListQuerySuggestionsBlockLists",
|
|
486
|
-
};
|
|
342
|
+
const headers = sharedHeaders("ListQuerySuggestionsBlockLists");
|
|
487
343
|
let body;
|
|
488
344
|
body = JSON.stringify(se_ListQuerySuggestionsBlockListsRequest(input, context));
|
|
489
345
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
490
346
|
};
|
|
491
347
|
exports.se_ListQuerySuggestionsBlockListsCommand = se_ListQuerySuggestionsBlockListsCommand;
|
|
492
348
|
const se_ListTagsForResourceCommand = async (input, context) => {
|
|
493
|
-
const headers =
|
|
494
|
-
"content-type": "application/x-amz-json-1.1",
|
|
495
|
-
"x-amz-target": "AWSKendraFrontendService.ListTagsForResource",
|
|
496
|
-
};
|
|
349
|
+
const headers = sharedHeaders("ListTagsForResource");
|
|
497
350
|
let body;
|
|
498
351
|
body = JSON.stringify(se_ListTagsForResourceRequest(input, context));
|
|
499
352
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
500
353
|
};
|
|
501
354
|
exports.se_ListTagsForResourceCommand = se_ListTagsForResourceCommand;
|
|
502
355
|
const se_ListThesauriCommand = async (input, context) => {
|
|
503
|
-
const headers =
|
|
504
|
-
"content-type": "application/x-amz-json-1.1",
|
|
505
|
-
"x-amz-target": "AWSKendraFrontendService.ListThesauri",
|
|
506
|
-
};
|
|
356
|
+
const headers = sharedHeaders("ListThesauri");
|
|
507
357
|
let body;
|
|
508
358
|
body = JSON.stringify(se_ListThesauriRequest(input, context));
|
|
509
359
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
510
360
|
};
|
|
511
361
|
exports.se_ListThesauriCommand = se_ListThesauriCommand;
|
|
512
362
|
const se_PutPrincipalMappingCommand = async (input, context) => {
|
|
513
|
-
const headers =
|
|
514
|
-
"content-type": "application/x-amz-json-1.1",
|
|
515
|
-
"x-amz-target": "AWSKendraFrontendService.PutPrincipalMapping",
|
|
516
|
-
};
|
|
363
|
+
const headers = sharedHeaders("PutPrincipalMapping");
|
|
517
364
|
let body;
|
|
518
365
|
body = JSON.stringify(se_PutPrincipalMappingRequest(input, context));
|
|
519
366
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
520
367
|
};
|
|
521
368
|
exports.se_PutPrincipalMappingCommand = se_PutPrincipalMappingCommand;
|
|
522
369
|
const se_QueryCommand = async (input, context) => {
|
|
523
|
-
const headers =
|
|
524
|
-
"content-type": "application/x-amz-json-1.1",
|
|
525
|
-
"x-amz-target": "AWSKendraFrontendService.Query",
|
|
526
|
-
};
|
|
370
|
+
const headers = sharedHeaders("Query");
|
|
527
371
|
let body;
|
|
528
372
|
body = JSON.stringify(se_QueryRequest(input, context));
|
|
529
373
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
530
374
|
};
|
|
531
375
|
exports.se_QueryCommand = se_QueryCommand;
|
|
532
376
|
const se_StartDataSourceSyncJobCommand = async (input, context) => {
|
|
533
|
-
const headers =
|
|
534
|
-
"content-type": "application/x-amz-json-1.1",
|
|
535
|
-
"x-amz-target": "AWSKendraFrontendService.StartDataSourceSyncJob",
|
|
536
|
-
};
|
|
377
|
+
const headers = sharedHeaders("StartDataSourceSyncJob");
|
|
537
378
|
let body;
|
|
538
379
|
body = JSON.stringify(se_StartDataSourceSyncJobRequest(input, context));
|
|
539
380
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
540
381
|
};
|
|
541
382
|
exports.se_StartDataSourceSyncJobCommand = se_StartDataSourceSyncJobCommand;
|
|
542
383
|
const se_StopDataSourceSyncJobCommand = async (input, context) => {
|
|
543
|
-
const headers =
|
|
544
|
-
"content-type": "application/x-amz-json-1.1",
|
|
545
|
-
"x-amz-target": "AWSKendraFrontendService.StopDataSourceSyncJob",
|
|
546
|
-
};
|
|
384
|
+
const headers = sharedHeaders("StopDataSourceSyncJob");
|
|
547
385
|
let body;
|
|
548
386
|
body = JSON.stringify(se_StopDataSourceSyncJobRequest(input, context));
|
|
549
387
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
550
388
|
};
|
|
551
389
|
exports.se_StopDataSourceSyncJobCommand = se_StopDataSourceSyncJobCommand;
|
|
552
390
|
const se_SubmitFeedbackCommand = async (input, context) => {
|
|
553
|
-
const headers =
|
|
554
|
-
"content-type": "application/x-amz-json-1.1",
|
|
555
|
-
"x-amz-target": "AWSKendraFrontendService.SubmitFeedback",
|
|
556
|
-
};
|
|
391
|
+
const headers = sharedHeaders("SubmitFeedback");
|
|
557
392
|
let body;
|
|
558
393
|
body = JSON.stringify(se_SubmitFeedbackRequest(input, context));
|
|
559
394
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
560
395
|
};
|
|
561
396
|
exports.se_SubmitFeedbackCommand = se_SubmitFeedbackCommand;
|
|
562
397
|
const se_TagResourceCommand = async (input, context) => {
|
|
563
|
-
const headers =
|
|
564
|
-
"content-type": "application/x-amz-json-1.1",
|
|
565
|
-
"x-amz-target": "AWSKendraFrontendService.TagResource",
|
|
566
|
-
};
|
|
398
|
+
const headers = sharedHeaders("TagResource");
|
|
567
399
|
let body;
|
|
568
400
|
body = JSON.stringify(se_TagResourceRequest(input, context));
|
|
569
401
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
570
402
|
};
|
|
571
403
|
exports.se_TagResourceCommand = se_TagResourceCommand;
|
|
572
404
|
const se_UntagResourceCommand = async (input, context) => {
|
|
573
|
-
const headers =
|
|
574
|
-
"content-type": "application/x-amz-json-1.1",
|
|
575
|
-
"x-amz-target": "AWSKendraFrontendService.UntagResource",
|
|
576
|
-
};
|
|
405
|
+
const headers = sharedHeaders("UntagResource");
|
|
577
406
|
let body;
|
|
578
407
|
body = JSON.stringify(se_UntagResourceRequest(input, context));
|
|
579
408
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
580
409
|
};
|
|
581
410
|
exports.se_UntagResourceCommand = se_UntagResourceCommand;
|
|
582
411
|
const se_UpdateAccessControlConfigurationCommand = async (input, context) => {
|
|
583
|
-
const headers =
|
|
584
|
-
"content-type": "application/x-amz-json-1.1",
|
|
585
|
-
"x-amz-target": "AWSKendraFrontendService.UpdateAccessControlConfiguration",
|
|
586
|
-
};
|
|
412
|
+
const headers = sharedHeaders("UpdateAccessControlConfiguration");
|
|
587
413
|
let body;
|
|
588
414
|
body = JSON.stringify(se_UpdateAccessControlConfigurationRequest(input, context));
|
|
589
415
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
590
416
|
};
|
|
591
417
|
exports.se_UpdateAccessControlConfigurationCommand = se_UpdateAccessControlConfigurationCommand;
|
|
592
418
|
const se_UpdateDataSourceCommand = async (input, context) => {
|
|
593
|
-
const headers =
|
|
594
|
-
"content-type": "application/x-amz-json-1.1",
|
|
595
|
-
"x-amz-target": "AWSKendraFrontendService.UpdateDataSource",
|
|
596
|
-
};
|
|
419
|
+
const headers = sharedHeaders("UpdateDataSource");
|
|
597
420
|
let body;
|
|
598
421
|
body = JSON.stringify(se_UpdateDataSourceRequest(input, context));
|
|
599
422
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
600
423
|
};
|
|
601
424
|
exports.se_UpdateDataSourceCommand = se_UpdateDataSourceCommand;
|
|
602
425
|
const se_UpdateExperienceCommand = async (input, context) => {
|
|
603
|
-
const headers =
|
|
604
|
-
"content-type": "application/x-amz-json-1.1",
|
|
605
|
-
"x-amz-target": "AWSKendraFrontendService.UpdateExperience",
|
|
606
|
-
};
|
|
426
|
+
const headers = sharedHeaders("UpdateExperience");
|
|
607
427
|
let body;
|
|
608
428
|
body = JSON.stringify(se_UpdateExperienceRequest(input, context));
|
|
609
429
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
610
430
|
};
|
|
611
431
|
exports.se_UpdateExperienceCommand = se_UpdateExperienceCommand;
|
|
612
432
|
const se_UpdateFeaturedResultsSetCommand = async (input, context) => {
|
|
613
|
-
const headers =
|
|
614
|
-
"content-type": "application/x-amz-json-1.1",
|
|
615
|
-
"x-amz-target": "AWSKendraFrontendService.UpdateFeaturedResultsSet",
|
|
616
|
-
};
|
|
433
|
+
const headers = sharedHeaders("UpdateFeaturedResultsSet");
|
|
617
434
|
let body;
|
|
618
435
|
body = JSON.stringify(se_UpdateFeaturedResultsSetRequest(input, context));
|
|
619
436
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
620
437
|
};
|
|
621
438
|
exports.se_UpdateFeaturedResultsSetCommand = se_UpdateFeaturedResultsSetCommand;
|
|
622
439
|
const se_UpdateIndexCommand = async (input, context) => {
|
|
623
|
-
const headers =
|
|
624
|
-
"content-type": "application/x-amz-json-1.1",
|
|
625
|
-
"x-amz-target": "AWSKendraFrontendService.UpdateIndex",
|
|
626
|
-
};
|
|
440
|
+
const headers = sharedHeaders("UpdateIndex");
|
|
627
441
|
let body;
|
|
628
442
|
body = JSON.stringify(se_UpdateIndexRequest(input, context));
|
|
629
443
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
630
444
|
};
|
|
631
445
|
exports.se_UpdateIndexCommand = se_UpdateIndexCommand;
|
|
632
446
|
const se_UpdateQuerySuggestionsBlockListCommand = async (input, context) => {
|
|
633
|
-
const headers =
|
|
634
|
-
"content-type": "application/x-amz-json-1.1",
|
|
635
|
-
"x-amz-target": "AWSKendraFrontendService.UpdateQuerySuggestionsBlockList",
|
|
636
|
-
};
|
|
447
|
+
const headers = sharedHeaders("UpdateQuerySuggestionsBlockList");
|
|
637
448
|
let body;
|
|
638
449
|
body = JSON.stringify(se_UpdateQuerySuggestionsBlockListRequest(input, context));
|
|
639
450
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
640
451
|
};
|
|
641
452
|
exports.se_UpdateQuerySuggestionsBlockListCommand = se_UpdateQuerySuggestionsBlockListCommand;
|
|
642
453
|
const se_UpdateQuerySuggestionsConfigCommand = async (input, context) => {
|
|
643
|
-
const headers =
|
|
644
|
-
"content-type": "application/x-amz-json-1.1",
|
|
645
|
-
"x-amz-target": "AWSKendraFrontendService.UpdateQuerySuggestionsConfig",
|
|
646
|
-
};
|
|
454
|
+
const headers = sharedHeaders("UpdateQuerySuggestionsConfig");
|
|
647
455
|
let body;
|
|
648
456
|
body = JSON.stringify(se_UpdateQuerySuggestionsConfigRequest(input, context));
|
|
649
457
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
650
458
|
};
|
|
651
459
|
exports.se_UpdateQuerySuggestionsConfigCommand = se_UpdateQuerySuggestionsConfigCommand;
|
|
652
460
|
const se_UpdateThesaurusCommand = async (input, context) => {
|
|
653
|
-
const headers =
|
|
654
|
-
"content-type": "application/x-amz-json-1.1",
|
|
655
|
-
"x-amz-target": "AWSKendraFrontendService.UpdateThesaurus",
|
|
656
|
-
};
|
|
461
|
+
const headers = sharedHeaders("UpdateThesaurus");
|
|
657
462
|
let body;
|
|
658
463
|
body = JSON.stringify(se_UpdateThesaurusRequest(input, context));
|
|
659
464
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
@@ -8720,6 +8525,12 @@ const buildHttpRpcRequest = async (context, headers, path, resolvedHostname, bod
|
|
|
8720
8525
|
}
|
|
8721
8526
|
return new protocol_http_1.HttpRequest(contents);
|
|
8722
8527
|
};
|
|
8528
|
+
function sharedHeaders(operation) {
|
|
8529
|
+
return {
|
|
8530
|
+
"content-type": "application/x-amz-json-1.1",
|
|
8531
|
+
"x-amz-target": `AWSKendraFrontendService.${operation}`,
|
|
8532
|
+
};
|
|
8533
|
+
}
|
|
8723
8534
|
const parseBody = (streamBody, context) => collectBodyString(streamBody, context).then((encoded) => {
|
|
8724
8535
|
if (encoded.length) {
|
|
8725
8536
|
return JSON.parse(encoded);
|