@aws-sdk/client-kendra 3.183.0 → 3.185.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (86) hide show
  1. package/CHANGELOG.md +11 -0
  2. package/dist-cjs/protocols/Aws_json1_1.js +2 -2
  3. package/dist-es/Kendra.js +249 -242
  4. package/dist-es/KendraClient.js +28 -22
  5. package/dist-es/commands/AssociateEntitiesToExperienceCommand.js +28 -21
  6. package/dist-es/commands/AssociatePersonasToEntitiesCommand.js +28 -21
  7. package/dist-es/commands/BatchDeleteDocumentCommand.js +28 -21
  8. package/dist-es/commands/BatchGetDocumentStatusCommand.js +28 -21
  9. package/dist-es/commands/BatchPutDocumentCommand.js +28 -21
  10. package/dist-es/commands/ClearQuerySuggestionsCommand.js +29 -22
  11. package/dist-es/commands/CreateAccessControlConfigurationCommand.js +28 -21
  12. package/dist-es/commands/CreateDataSourceCommand.js +28 -21
  13. package/dist-es/commands/CreateExperienceCommand.js +28 -21
  14. package/dist-es/commands/CreateFaqCommand.js +28 -21
  15. package/dist-es/commands/CreateIndexCommand.js +28 -21
  16. package/dist-es/commands/CreateQuerySuggestionsBlockListCommand.js +28 -21
  17. package/dist-es/commands/CreateThesaurusCommand.js +28 -21
  18. package/dist-es/commands/DeleteAccessControlConfigurationCommand.js +28 -21
  19. package/dist-es/commands/DeleteDataSourceCommand.js +29 -22
  20. package/dist-es/commands/DeleteExperienceCommand.js +28 -21
  21. package/dist-es/commands/DeleteFaqCommand.js +29 -22
  22. package/dist-es/commands/DeleteIndexCommand.js +29 -22
  23. package/dist-es/commands/DeletePrincipalMappingCommand.js +29 -22
  24. package/dist-es/commands/DeleteQuerySuggestionsBlockListCommand.js +29 -22
  25. package/dist-es/commands/DeleteThesaurusCommand.js +29 -22
  26. package/dist-es/commands/DescribeAccessControlConfigurationCommand.js +28 -21
  27. package/dist-es/commands/DescribeDataSourceCommand.js +28 -21
  28. package/dist-es/commands/DescribeExperienceCommand.js +28 -21
  29. package/dist-es/commands/DescribeFaqCommand.js +28 -21
  30. package/dist-es/commands/DescribeIndexCommand.js +28 -21
  31. package/dist-es/commands/DescribePrincipalMappingCommand.js +28 -21
  32. package/dist-es/commands/DescribeQuerySuggestionsBlockListCommand.js +28 -21
  33. package/dist-es/commands/DescribeQuerySuggestionsConfigCommand.js +28 -21
  34. package/dist-es/commands/DescribeThesaurusCommand.js +28 -21
  35. package/dist-es/commands/DisassociateEntitiesFromExperienceCommand.js +28 -21
  36. package/dist-es/commands/DisassociatePersonasFromEntitiesCommand.js +28 -21
  37. package/dist-es/commands/GetQuerySuggestionsCommand.js +28 -21
  38. package/dist-es/commands/GetSnapshotsCommand.js +28 -21
  39. package/dist-es/commands/ListAccessControlConfigurationsCommand.js +28 -21
  40. package/dist-es/commands/ListDataSourceSyncJobsCommand.js +28 -21
  41. package/dist-es/commands/ListDataSourcesCommand.js +28 -21
  42. package/dist-es/commands/ListEntityPersonasCommand.js +28 -21
  43. package/dist-es/commands/ListExperienceEntitiesCommand.js +28 -21
  44. package/dist-es/commands/ListExperiencesCommand.js +28 -21
  45. package/dist-es/commands/ListFaqsCommand.js +28 -21
  46. package/dist-es/commands/ListGroupsOlderThanOrderingIdCommand.js +28 -21
  47. package/dist-es/commands/ListIndicesCommand.js +28 -21
  48. package/dist-es/commands/ListQuerySuggestionsBlockListsCommand.js +28 -21
  49. package/dist-es/commands/ListTagsForResourceCommand.js +28 -21
  50. package/dist-es/commands/ListThesauriCommand.js +28 -21
  51. package/dist-es/commands/PutPrincipalMappingCommand.js +29 -22
  52. package/dist-es/commands/QueryCommand.js +28 -21
  53. package/dist-es/commands/StartDataSourceSyncJobCommand.js +28 -21
  54. package/dist-es/commands/StopDataSourceSyncJobCommand.js +29 -22
  55. package/dist-es/commands/SubmitFeedbackCommand.js +29 -22
  56. package/dist-es/commands/TagResourceCommand.js +28 -21
  57. package/dist-es/commands/UntagResourceCommand.js +28 -21
  58. package/dist-es/commands/UpdateAccessControlConfigurationCommand.js +28 -21
  59. package/dist-es/commands/UpdateDataSourceCommand.js +29 -22
  60. package/dist-es/commands/UpdateExperienceCommand.js +29 -22
  61. package/dist-es/commands/UpdateIndexCommand.js +29 -22
  62. package/dist-es/commands/UpdateQuerySuggestionsBlockListCommand.js +29 -22
  63. package/dist-es/commands/UpdateQuerySuggestionsConfigCommand.js +29 -22
  64. package/dist-es/commands/UpdateThesaurusCommand.js +29 -22
  65. package/dist-es/endpoints.js +8 -8
  66. package/dist-es/models/KendraServiceException.js +10 -5
  67. package/dist-es/models/models_0.js +371 -844
  68. package/dist-es/models/models_1.js +5 -12
  69. package/dist-es/pagination/GetSnapshotsPaginator.js +68 -25
  70. package/dist-es/pagination/ListAccessControlConfigurationsPaginator.js +68 -25
  71. package/dist-es/pagination/ListDataSourceSyncJobsPaginator.js +68 -25
  72. package/dist-es/pagination/ListDataSourcesPaginator.js +68 -25
  73. package/dist-es/pagination/ListEntityPersonasPaginator.js +68 -25
  74. package/dist-es/pagination/ListExperienceEntitiesPaginator.js +67 -24
  75. package/dist-es/pagination/ListExperiencesPaginator.js +68 -25
  76. package/dist-es/pagination/ListFaqsPaginator.js +68 -25
  77. package/dist-es/pagination/ListGroupsOlderThanOrderingIdPaginator.js +68 -25
  78. package/dist-es/pagination/ListIndicesPaginator.js +68 -25
  79. package/dist-es/pagination/ListQuerySuggestionsBlockListsPaginator.js +68 -25
  80. package/dist-es/pagination/ListThesauriPaginator.js +68 -25
  81. package/dist-es/protocols/Aws_json1_1.js +6541 -5784
  82. package/dist-es/runtimeConfig.browser.js +12 -26
  83. package/dist-es/runtimeConfig.js +12 -30
  84. package/dist-es/runtimeConfig.native.js +5 -8
  85. package/dist-es/runtimeConfig.shared.js +11 -8
  86. package/package.json +5 -5
package/dist-es/Kendra.js CHANGED
@@ -1,3 +1,4 @@
1
+ import { __extends } from "tslib";
1
2
  import { AssociateEntitiesToExperienceCommand, } from "./commands/AssociateEntitiesToExperienceCommand";
2
3
  import { AssociatePersonasToEntitiesCommand, } from "./commands/AssociatePersonasToEntitiesCommand";
3
4
  import { BatchDeleteDocumentCommand, } from "./commands/BatchDeleteDocumentCommand";
@@ -59,845 +60,851 @@ import { UpdateQuerySuggestionsBlockListCommand, } from "./commands/UpdateQueryS
59
60
  import { UpdateQuerySuggestionsConfigCommand, } from "./commands/UpdateQuerySuggestionsConfigCommand";
60
61
  import { UpdateThesaurusCommand, } from "./commands/UpdateThesaurusCommand";
61
62
  import { KendraClient } from "./KendraClient";
62
- export class Kendra extends KendraClient {
63
- associateEntitiesToExperience(args, optionsOrCb, cb) {
64
- const command = new AssociateEntitiesToExperienceCommand(args);
63
+ var Kendra = (function (_super) {
64
+ __extends(Kendra, _super);
65
+ function Kendra() {
66
+ return _super !== null && _super.apply(this, arguments) || this;
67
+ }
68
+ Kendra.prototype.associateEntitiesToExperience = function (args, optionsOrCb, cb) {
69
+ var command = new AssociateEntitiesToExperienceCommand(args);
65
70
  if (typeof optionsOrCb === "function") {
66
71
  this.send(command, optionsOrCb);
67
72
  }
68
73
  else if (typeof cb === "function") {
69
74
  if (typeof optionsOrCb !== "object")
70
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
75
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
71
76
  this.send(command, optionsOrCb || {}, cb);
72
77
  }
73
78
  else {
74
79
  return this.send(command, optionsOrCb);
75
80
  }
76
- }
77
- associatePersonasToEntities(args, optionsOrCb, cb) {
78
- const command = new AssociatePersonasToEntitiesCommand(args);
81
+ };
82
+ Kendra.prototype.associatePersonasToEntities = function (args, optionsOrCb, cb) {
83
+ var command = new AssociatePersonasToEntitiesCommand(args);
79
84
  if (typeof optionsOrCb === "function") {
80
85
  this.send(command, optionsOrCb);
81
86
  }
82
87
  else if (typeof cb === "function") {
83
88
  if (typeof optionsOrCb !== "object")
84
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
89
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
85
90
  this.send(command, optionsOrCb || {}, cb);
86
91
  }
87
92
  else {
88
93
  return this.send(command, optionsOrCb);
89
94
  }
90
- }
91
- batchDeleteDocument(args, optionsOrCb, cb) {
92
- const command = new BatchDeleteDocumentCommand(args);
95
+ };
96
+ Kendra.prototype.batchDeleteDocument = function (args, optionsOrCb, cb) {
97
+ var command = new BatchDeleteDocumentCommand(args);
93
98
  if (typeof optionsOrCb === "function") {
94
99
  this.send(command, optionsOrCb);
95
100
  }
96
101
  else if (typeof cb === "function") {
97
102
  if (typeof optionsOrCb !== "object")
98
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
103
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
99
104
  this.send(command, optionsOrCb || {}, cb);
100
105
  }
101
106
  else {
102
107
  return this.send(command, optionsOrCb);
103
108
  }
104
- }
105
- batchGetDocumentStatus(args, optionsOrCb, cb) {
106
- const command = new BatchGetDocumentStatusCommand(args);
109
+ };
110
+ Kendra.prototype.batchGetDocumentStatus = function (args, optionsOrCb, cb) {
111
+ var command = new BatchGetDocumentStatusCommand(args);
107
112
  if (typeof optionsOrCb === "function") {
108
113
  this.send(command, optionsOrCb);
109
114
  }
110
115
  else if (typeof cb === "function") {
111
116
  if (typeof optionsOrCb !== "object")
112
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
117
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
113
118
  this.send(command, optionsOrCb || {}, cb);
114
119
  }
115
120
  else {
116
121
  return this.send(command, optionsOrCb);
117
122
  }
118
- }
119
- batchPutDocument(args, optionsOrCb, cb) {
120
- const command = new BatchPutDocumentCommand(args);
123
+ };
124
+ Kendra.prototype.batchPutDocument = function (args, optionsOrCb, cb) {
125
+ var command = new BatchPutDocumentCommand(args);
121
126
  if (typeof optionsOrCb === "function") {
122
127
  this.send(command, optionsOrCb);
123
128
  }
124
129
  else if (typeof cb === "function") {
125
130
  if (typeof optionsOrCb !== "object")
126
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
131
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
127
132
  this.send(command, optionsOrCb || {}, cb);
128
133
  }
129
134
  else {
130
135
  return this.send(command, optionsOrCb);
131
136
  }
132
- }
133
- clearQuerySuggestions(args, optionsOrCb, cb) {
134
- const command = new ClearQuerySuggestionsCommand(args);
137
+ };
138
+ Kendra.prototype.clearQuerySuggestions = function (args, optionsOrCb, cb) {
139
+ var command = new ClearQuerySuggestionsCommand(args);
135
140
  if (typeof optionsOrCb === "function") {
136
141
  this.send(command, optionsOrCb);
137
142
  }
138
143
  else if (typeof cb === "function") {
139
144
  if (typeof optionsOrCb !== "object")
140
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
145
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
141
146
  this.send(command, optionsOrCb || {}, cb);
142
147
  }
143
148
  else {
144
149
  return this.send(command, optionsOrCb);
145
150
  }
146
- }
147
- createAccessControlConfiguration(args, optionsOrCb, cb) {
148
- const command = new CreateAccessControlConfigurationCommand(args);
151
+ };
152
+ Kendra.prototype.createAccessControlConfiguration = function (args, optionsOrCb, cb) {
153
+ var command = new CreateAccessControlConfigurationCommand(args);
149
154
  if (typeof optionsOrCb === "function") {
150
155
  this.send(command, optionsOrCb);
151
156
  }
152
157
  else if (typeof cb === "function") {
153
158
  if (typeof optionsOrCb !== "object")
154
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
159
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
155
160
  this.send(command, optionsOrCb || {}, cb);
156
161
  }
157
162
  else {
158
163
  return this.send(command, optionsOrCb);
159
164
  }
160
- }
161
- createDataSource(args, optionsOrCb, cb) {
162
- const command = new CreateDataSourceCommand(args);
165
+ };
166
+ Kendra.prototype.createDataSource = function (args, optionsOrCb, cb) {
167
+ var command = new CreateDataSourceCommand(args);
163
168
  if (typeof optionsOrCb === "function") {
164
169
  this.send(command, optionsOrCb);
165
170
  }
166
171
  else if (typeof cb === "function") {
167
172
  if (typeof optionsOrCb !== "object")
168
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
173
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
169
174
  this.send(command, optionsOrCb || {}, cb);
170
175
  }
171
176
  else {
172
177
  return this.send(command, optionsOrCb);
173
178
  }
174
- }
175
- createExperience(args, optionsOrCb, cb) {
176
- const command = new CreateExperienceCommand(args);
179
+ };
180
+ Kendra.prototype.createExperience = function (args, optionsOrCb, cb) {
181
+ var command = new CreateExperienceCommand(args);
177
182
  if (typeof optionsOrCb === "function") {
178
183
  this.send(command, optionsOrCb);
179
184
  }
180
185
  else if (typeof cb === "function") {
181
186
  if (typeof optionsOrCb !== "object")
182
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
187
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
183
188
  this.send(command, optionsOrCb || {}, cb);
184
189
  }
185
190
  else {
186
191
  return this.send(command, optionsOrCb);
187
192
  }
188
- }
189
- createFaq(args, optionsOrCb, cb) {
190
- const command = new CreateFaqCommand(args);
193
+ };
194
+ Kendra.prototype.createFaq = function (args, optionsOrCb, cb) {
195
+ var command = new CreateFaqCommand(args);
191
196
  if (typeof optionsOrCb === "function") {
192
197
  this.send(command, optionsOrCb);
193
198
  }
194
199
  else if (typeof cb === "function") {
195
200
  if (typeof optionsOrCb !== "object")
196
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
201
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
197
202
  this.send(command, optionsOrCb || {}, cb);
198
203
  }
199
204
  else {
200
205
  return this.send(command, optionsOrCb);
201
206
  }
202
- }
203
- createIndex(args, optionsOrCb, cb) {
204
- const command = new CreateIndexCommand(args);
207
+ };
208
+ Kendra.prototype.createIndex = function (args, optionsOrCb, cb) {
209
+ var command = new CreateIndexCommand(args);
205
210
  if (typeof optionsOrCb === "function") {
206
211
  this.send(command, optionsOrCb);
207
212
  }
208
213
  else if (typeof cb === "function") {
209
214
  if (typeof optionsOrCb !== "object")
210
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
215
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
211
216
  this.send(command, optionsOrCb || {}, cb);
212
217
  }
213
218
  else {
214
219
  return this.send(command, optionsOrCb);
215
220
  }
216
- }
217
- createQuerySuggestionsBlockList(args, optionsOrCb, cb) {
218
- const command = new CreateQuerySuggestionsBlockListCommand(args);
221
+ };
222
+ Kendra.prototype.createQuerySuggestionsBlockList = function (args, optionsOrCb, cb) {
223
+ var command = new CreateQuerySuggestionsBlockListCommand(args);
219
224
  if (typeof optionsOrCb === "function") {
220
225
  this.send(command, optionsOrCb);
221
226
  }
222
227
  else if (typeof cb === "function") {
223
228
  if (typeof optionsOrCb !== "object")
224
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
229
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
225
230
  this.send(command, optionsOrCb || {}, cb);
226
231
  }
227
232
  else {
228
233
  return this.send(command, optionsOrCb);
229
234
  }
230
- }
231
- createThesaurus(args, optionsOrCb, cb) {
232
- const command = new CreateThesaurusCommand(args);
235
+ };
236
+ Kendra.prototype.createThesaurus = function (args, optionsOrCb, cb) {
237
+ var command = new CreateThesaurusCommand(args);
233
238
  if (typeof optionsOrCb === "function") {
234
239
  this.send(command, optionsOrCb);
235
240
  }
236
241
  else if (typeof cb === "function") {
237
242
  if (typeof optionsOrCb !== "object")
238
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
243
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
239
244
  this.send(command, optionsOrCb || {}, cb);
240
245
  }
241
246
  else {
242
247
  return this.send(command, optionsOrCb);
243
248
  }
244
- }
245
- deleteAccessControlConfiguration(args, optionsOrCb, cb) {
246
- const command = new DeleteAccessControlConfigurationCommand(args);
249
+ };
250
+ Kendra.prototype.deleteAccessControlConfiguration = function (args, optionsOrCb, cb) {
251
+ var command = new DeleteAccessControlConfigurationCommand(args);
247
252
  if (typeof optionsOrCb === "function") {
248
253
  this.send(command, optionsOrCb);
249
254
  }
250
255
  else if (typeof cb === "function") {
251
256
  if (typeof optionsOrCb !== "object")
252
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
257
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
253
258
  this.send(command, optionsOrCb || {}, cb);
254
259
  }
255
260
  else {
256
261
  return this.send(command, optionsOrCb);
257
262
  }
258
- }
259
- deleteDataSource(args, optionsOrCb, cb) {
260
- const command = new DeleteDataSourceCommand(args);
263
+ };
264
+ Kendra.prototype.deleteDataSource = function (args, optionsOrCb, cb) {
265
+ var command = new DeleteDataSourceCommand(args);
261
266
  if (typeof optionsOrCb === "function") {
262
267
  this.send(command, optionsOrCb);
263
268
  }
264
269
  else if (typeof cb === "function") {
265
270
  if (typeof optionsOrCb !== "object")
266
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
271
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
267
272
  this.send(command, optionsOrCb || {}, cb);
268
273
  }
269
274
  else {
270
275
  return this.send(command, optionsOrCb);
271
276
  }
272
- }
273
- deleteExperience(args, optionsOrCb, cb) {
274
- const command = new DeleteExperienceCommand(args);
277
+ };
278
+ Kendra.prototype.deleteExperience = function (args, optionsOrCb, cb) {
279
+ var command = new DeleteExperienceCommand(args);
275
280
  if (typeof optionsOrCb === "function") {
276
281
  this.send(command, optionsOrCb);
277
282
  }
278
283
  else if (typeof cb === "function") {
279
284
  if (typeof optionsOrCb !== "object")
280
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
285
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
281
286
  this.send(command, optionsOrCb || {}, cb);
282
287
  }
283
288
  else {
284
289
  return this.send(command, optionsOrCb);
285
290
  }
286
- }
287
- deleteFaq(args, optionsOrCb, cb) {
288
- const command = new DeleteFaqCommand(args);
291
+ };
292
+ Kendra.prototype.deleteFaq = function (args, optionsOrCb, cb) {
293
+ var command = new DeleteFaqCommand(args);
289
294
  if (typeof optionsOrCb === "function") {
290
295
  this.send(command, optionsOrCb);
291
296
  }
292
297
  else if (typeof cb === "function") {
293
298
  if (typeof optionsOrCb !== "object")
294
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
299
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
295
300
  this.send(command, optionsOrCb || {}, cb);
296
301
  }
297
302
  else {
298
303
  return this.send(command, optionsOrCb);
299
304
  }
300
- }
301
- deleteIndex(args, optionsOrCb, cb) {
302
- const command = new DeleteIndexCommand(args);
305
+ };
306
+ Kendra.prototype.deleteIndex = function (args, optionsOrCb, cb) {
307
+ var command = new DeleteIndexCommand(args);
303
308
  if (typeof optionsOrCb === "function") {
304
309
  this.send(command, optionsOrCb);
305
310
  }
306
311
  else if (typeof cb === "function") {
307
312
  if (typeof optionsOrCb !== "object")
308
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
313
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
309
314
  this.send(command, optionsOrCb || {}, cb);
310
315
  }
311
316
  else {
312
317
  return this.send(command, optionsOrCb);
313
318
  }
314
- }
315
- deletePrincipalMapping(args, optionsOrCb, cb) {
316
- const command = new DeletePrincipalMappingCommand(args);
319
+ };
320
+ Kendra.prototype.deletePrincipalMapping = function (args, optionsOrCb, cb) {
321
+ var command = new DeletePrincipalMappingCommand(args);
317
322
  if (typeof optionsOrCb === "function") {
318
323
  this.send(command, optionsOrCb);
319
324
  }
320
325
  else if (typeof cb === "function") {
321
326
  if (typeof optionsOrCb !== "object")
322
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
327
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
323
328
  this.send(command, optionsOrCb || {}, cb);
324
329
  }
325
330
  else {
326
331
  return this.send(command, optionsOrCb);
327
332
  }
328
- }
329
- deleteQuerySuggestionsBlockList(args, optionsOrCb, cb) {
330
- const command = new DeleteQuerySuggestionsBlockListCommand(args);
333
+ };
334
+ Kendra.prototype.deleteQuerySuggestionsBlockList = function (args, optionsOrCb, cb) {
335
+ var command = new DeleteQuerySuggestionsBlockListCommand(args);
331
336
  if (typeof optionsOrCb === "function") {
332
337
  this.send(command, optionsOrCb);
333
338
  }
334
339
  else if (typeof cb === "function") {
335
340
  if (typeof optionsOrCb !== "object")
336
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
341
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
337
342
  this.send(command, optionsOrCb || {}, cb);
338
343
  }
339
344
  else {
340
345
  return this.send(command, optionsOrCb);
341
346
  }
342
- }
343
- deleteThesaurus(args, optionsOrCb, cb) {
344
- const command = new DeleteThesaurusCommand(args);
347
+ };
348
+ Kendra.prototype.deleteThesaurus = function (args, optionsOrCb, cb) {
349
+ var command = new DeleteThesaurusCommand(args);
345
350
  if (typeof optionsOrCb === "function") {
346
351
  this.send(command, optionsOrCb);
347
352
  }
348
353
  else if (typeof cb === "function") {
349
354
  if (typeof optionsOrCb !== "object")
350
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
355
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
351
356
  this.send(command, optionsOrCb || {}, cb);
352
357
  }
353
358
  else {
354
359
  return this.send(command, optionsOrCb);
355
360
  }
356
- }
357
- describeAccessControlConfiguration(args, optionsOrCb, cb) {
358
- const command = new DescribeAccessControlConfigurationCommand(args);
361
+ };
362
+ Kendra.prototype.describeAccessControlConfiguration = function (args, optionsOrCb, cb) {
363
+ var command = new DescribeAccessControlConfigurationCommand(args);
359
364
  if (typeof optionsOrCb === "function") {
360
365
  this.send(command, optionsOrCb);
361
366
  }
362
367
  else if (typeof cb === "function") {
363
368
  if (typeof optionsOrCb !== "object")
364
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
369
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
365
370
  this.send(command, optionsOrCb || {}, cb);
366
371
  }
367
372
  else {
368
373
  return this.send(command, optionsOrCb);
369
374
  }
370
- }
371
- describeDataSource(args, optionsOrCb, cb) {
372
- const command = new DescribeDataSourceCommand(args);
375
+ };
376
+ Kendra.prototype.describeDataSource = function (args, optionsOrCb, cb) {
377
+ var command = new DescribeDataSourceCommand(args);
373
378
  if (typeof optionsOrCb === "function") {
374
379
  this.send(command, optionsOrCb);
375
380
  }
376
381
  else if (typeof cb === "function") {
377
382
  if (typeof optionsOrCb !== "object")
378
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
383
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
379
384
  this.send(command, optionsOrCb || {}, cb);
380
385
  }
381
386
  else {
382
387
  return this.send(command, optionsOrCb);
383
388
  }
384
- }
385
- describeExperience(args, optionsOrCb, cb) {
386
- const command = new DescribeExperienceCommand(args);
389
+ };
390
+ Kendra.prototype.describeExperience = function (args, optionsOrCb, cb) {
391
+ var command = new DescribeExperienceCommand(args);
387
392
  if (typeof optionsOrCb === "function") {
388
393
  this.send(command, optionsOrCb);
389
394
  }
390
395
  else if (typeof cb === "function") {
391
396
  if (typeof optionsOrCb !== "object")
392
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
397
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
393
398
  this.send(command, optionsOrCb || {}, cb);
394
399
  }
395
400
  else {
396
401
  return this.send(command, optionsOrCb);
397
402
  }
398
- }
399
- describeFaq(args, optionsOrCb, cb) {
400
- const command = new DescribeFaqCommand(args);
403
+ };
404
+ Kendra.prototype.describeFaq = function (args, optionsOrCb, cb) {
405
+ var command = new DescribeFaqCommand(args);
401
406
  if (typeof optionsOrCb === "function") {
402
407
  this.send(command, optionsOrCb);
403
408
  }
404
409
  else if (typeof cb === "function") {
405
410
  if (typeof optionsOrCb !== "object")
406
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
411
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
407
412
  this.send(command, optionsOrCb || {}, cb);
408
413
  }
409
414
  else {
410
415
  return this.send(command, optionsOrCb);
411
416
  }
412
- }
413
- describeIndex(args, optionsOrCb, cb) {
414
- const command = new DescribeIndexCommand(args);
417
+ };
418
+ Kendra.prototype.describeIndex = function (args, optionsOrCb, cb) {
419
+ var command = new DescribeIndexCommand(args);
415
420
  if (typeof optionsOrCb === "function") {
416
421
  this.send(command, optionsOrCb);
417
422
  }
418
423
  else if (typeof cb === "function") {
419
424
  if (typeof optionsOrCb !== "object")
420
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
425
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
421
426
  this.send(command, optionsOrCb || {}, cb);
422
427
  }
423
428
  else {
424
429
  return this.send(command, optionsOrCb);
425
430
  }
426
- }
427
- describePrincipalMapping(args, optionsOrCb, cb) {
428
- const command = new DescribePrincipalMappingCommand(args);
431
+ };
432
+ Kendra.prototype.describePrincipalMapping = function (args, optionsOrCb, cb) {
433
+ var command = new DescribePrincipalMappingCommand(args);
429
434
  if (typeof optionsOrCb === "function") {
430
435
  this.send(command, optionsOrCb);
431
436
  }
432
437
  else if (typeof cb === "function") {
433
438
  if (typeof optionsOrCb !== "object")
434
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
439
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
435
440
  this.send(command, optionsOrCb || {}, cb);
436
441
  }
437
442
  else {
438
443
  return this.send(command, optionsOrCb);
439
444
  }
440
- }
441
- describeQuerySuggestionsBlockList(args, optionsOrCb, cb) {
442
- const command = new DescribeQuerySuggestionsBlockListCommand(args);
445
+ };
446
+ Kendra.prototype.describeQuerySuggestionsBlockList = function (args, optionsOrCb, cb) {
447
+ var command = new DescribeQuerySuggestionsBlockListCommand(args);
443
448
  if (typeof optionsOrCb === "function") {
444
449
  this.send(command, optionsOrCb);
445
450
  }
446
451
  else if (typeof cb === "function") {
447
452
  if (typeof optionsOrCb !== "object")
448
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
453
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
449
454
  this.send(command, optionsOrCb || {}, cb);
450
455
  }
451
456
  else {
452
457
  return this.send(command, optionsOrCb);
453
458
  }
454
- }
455
- describeQuerySuggestionsConfig(args, optionsOrCb, cb) {
456
- const command = new DescribeQuerySuggestionsConfigCommand(args);
459
+ };
460
+ Kendra.prototype.describeQuerySuggestionsConfig = function (args, optionsOrCb, cb) {
461
+ var command = new DescribeQuerySuggestionsConfigCommand(args);
457
462
  if (typeof optionsOrCb === "function") {
458
463
  this.send(command, optionsOrCb);
459
464
  }
460
465
  else if (typeof cb === "function") {
461
466
  if (typeof optionsOrCb !== "object")
462
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
467
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
463
468
  this.send(command, optionsOrCb || {}, cb);
464
469
  }
465
470
  else {
466
471
  return this.send(command, optionsOrCb);
467
472
  }
468
- }
469
- describeThesaurus(args, optionsOrCb, cb) {
470
- const command = new DescribeThesaurusCommand(args);
473
+ };
474
+ Kendra.prototype.describeThesaurus = function (args, optionsOrCb, cb) {
475
+ var command = new DescribeThesaurusCommand(args);
471
476
  if (typeof optionsOrCb === "function") {
472
477
  this.send(command, optionsOrCb);
473
478
  }
474
479
  else if (typeof cb === "function") {
475
480
  if (typeof optionsOrCb !== "object")
476
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
481
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
477
482
  this.send(command, optionsOrCb || {}, cb);
478
483
  }
479
484
  else {
480
485
  return this.send(command, optionsOrCb);
481
486
  }
482
- }
483
- disassociateEntitiesFromExperience(args, optionsOrCb, cb) {
484
- const command = new DisassociateEntitiesFromExperienceCommand(args);
487
+ };
488
+ Kendra.prototype.disassociateEntitiesFromExperience = function (args, optionsOrCb, cb) {
489
+ var command = new DisassociateEntitiesFromExperienceCommand(args);
485
490
  if (typeof optionsOrCb === "function") {
486
491
  this.send(command, optionsOrCb);
487
492
  }
488
493
  else if (typeof cb === "function") {
489
494
  if (typeof optionsOrCb !== "object")
490
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
495
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
491
496
  this.send(command, optionsOrCb || {}, cb);
492
497
  }
493
498
  else {
494
499
  return this.send(command, optionsOrCb);
495
500
  }
496
- }
497
- disassociatePersonasFromEntities(args, optionsOrCb, cb) {
498
- const command = new DisassociatePersonasFromEntitiesCommand(args);
501
+ };
502
+ Kendra.prototype.disassociatePersonasFromEntities = function (args, optionsOrCb, cb) {
503
+ var command = new DisassociatePersonasFromEntitiesCommand(args);
499
504
  if (typeof optionsOrCb === "function") {
500
505
  this.send(command, optionsOrCb);
501
506
  }
502
507
  else if (typeof cb === "function") {
503
508
  if (typeof optionsOrCb !== "object")
504
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
509
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
505
510
  this.send(command, optionsOrCb || {}, cb);
506
511
  }
507
512
  else {
508
513
  return this.send(command, optionsOrCb);
509
514
  }
510
- }
511
- getQuerySuggestions(args, optionsOrCb, cb) {
512
- const command = new GetQuerySuggestionsCommand(args);
515
+ };
516
+ Kendra.prototype.getQuerySuggestions = function (args, optionsOrCb, cb) {
517
+ var command = new GetQuerySuggestionsCommand(args);
513
518
  if (typeof optionsOrCb === "function") {
514
519
  this.send(command, optionsOrCb);
515
520
  }
516
521
  else if (typeof cb === "function") {
517
522
  if (typeof optionsOrCb !== "object")
518
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
523
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
519
524
  this.send(command, optionsOrCb || {}, cb);
520
525
  }
521
526
  else {
522
527
  return this.send(command, optionsOrCb);
523
528
  }
524
- }
525
- getSnapshots(args, optionsOrCb, cb) {
526
- const command = new GetSnapshotsCommand(args);
529
+ };
530
+ Kendra.prototype.getSnapshots = function (args, optionsOrCb, cb) {
531
+ var command = new GetSnapshotsCommand(args);
527
532
  if (typeof optionsOrCb === "function") {
528
533
  this.send(command, optionsOrCb);
529
534
  }
530
535
  else if (typeof cb === "function") {
531
536
  if (typeof optionsOrCb !== "object")
532
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
537
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
533
538
  this.send(command, optionsOrCb || {}, cb);
534
539
  }
535
540
  else {
536
541
  return this.send(command, optionsOrCb);
537
542
  }
538
- }
539
- listAccessControlConfigurations(args, optionsOrCb, cb) {
540
- const command = new ListAccessControlConfigurationsCommand(args);
543
+ };
544
+ Kendra.prototype.listAccessControlConfigurations = function (args, optionsOrCb, cb) {
545
+ var command = new ListAccessControlConfigurationsCommand(args);
541
546
  if (typeof optionsOrCb === "function") {
542
547
  this.send(command, optionsOrCb);
543
548
  }
544
549
  else if (typeof cb === "function") {
545
550
  if (typeof optionsOrCb !== "object")
546
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
551
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
547
552
  this.send(command, optionsOrCb || {}, cb);
548
553
  }
549
554
  else {
550
555
  return this.send(command, optionsOrCb);
551
556
  }
552
- }
553
- listDataSources(args, optionsOrCb, cb) {
554
- const command = new ListDataSourcesCommand(args);
557
+ };
558
+ Kendra.prototype.listDataSources = function (args, optionsOrCb, cb) {
559
+ var command = new ListDataSourcesCommand(args);
555
560
  if (typeof optionsOrCb === "function") {
556
561
  this.send(command, optionsOrCb);
557
562
  }
558
563
  else if (typeof cb === "function") {
559
564
  if (typeof optionsOrCb !== "object")
560
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
565
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
561
566
  this.send(command, optionsOrCb || {}, cb);
562
567
  }
563
568
  else {
564
569
  return this.send(command, optionsOrCb);
565
570
  }
566
- }
567
- listDataSourceSyncJobs(args, optionsOrCb, cb) {
568
- const command = new ListDataSourceSyncJobsCommand(args);
571
+ };
572
+ Kendra.prototype.listDataSourceSyncJobs = function (args, optionsOrCb, cb) {
573
+ var command = new ListDataSourceSyncJobsCommand(args);
569
574
  if (typeof optionsOrCb === "function") {
570
575
  this.send(command, optionsOrCb);
571
576
  }
572
577
  else if (typeof cb === "function") {
573
578
  if (typeof optionsOrCb !== "object")
574
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
579
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
575
580
  this.send(command, optionsOrCb || {}, cb);
576
581
  }
577
582
  else {
578
583
  return this.send(command, optionsOrCb);
579
584
  }
580
- }
581
- listEntityPersonas(args, optionsOrCb, cb) {
582
- const command = new ListEntityPersonasCommand(args);
585
+ };
586
+ Kendra.prototype.listEntityPersonas = function (args, optionsOrCb, cb) {
587
+ var command = new ListEntityPersonasCommand(args);
583
588
  if (typeof optionsOrCb === "function") {
584
589
  this.send(command, optionsOrCb);
585
590
  }
586
591
  else if (typeof cb === "function") {
587
592
  if (typeof optionsOrCb !== "object")
588
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
593
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
589
594
  this.send(command, optionsOrCb || {}, cb);
590
595
  }
591
596
  else {
592
597
  return this.send(command, optionsOrCb);
593
598
  }
594
- }
595
- listExperienceEntities(args, optionsOrCb, cb) {
596
- const command = new ListExperienceEntitiesCommand(args);
599
+ };
600
+ Kendra.prototype.listExperienceEntities = function (args, optionsOrCb, cb) {
601
+ var command = new ListExperienceEntitiesCommand(args);
597
602
  if (typeof optionsOrCb === "function") {
598
603
  this.send(command, optionsOrCb);
599
604
  }
600
605
  else if (typeof cb === "function") {
601
606
  if (typeof optionsOrCb !== "object")
602
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
607
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
603
608
  this.send(command, optionsOrCb || {}, cb);
604
609
  }
605
610
  else {
606
611
  return this.send(command, optionsOrCb);
607
612
  }
608
- }
609
- listExperiences(args, optionsOrCb, cb) {
610
- const command = new ListExperiencesCommand(args);
613
+ };
614
+ Kendra.prototype.listExperiences = function (args, optionsOrCb, cb) {
615
+ var command = new ListExperiencesCommand(args);
611
616
  if (typeof optionsOrCb === "function") {
612
617
  this.send(command, optionsOrCb);
613
618
  }
614
619
  else if (typeof cb === "function") {
615
620
  if (typeof optionsOrCb !== "object")
616
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
621
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
617
622
  this.send(command, optionsOrCb || {}, cb);
618
623
  }
619
624
  else {
620
625
  return this.send(command, optionsOrCb);
621
626
  }
622
- }
623
- listFaqs(args, optionsOrCb, cb) {
624
- const command = new ListFaqsCommand(args);
627
+ };
628
+ Kendra.prototype.listFaqs = function (args, optionsOrCb, cb) {
629
+ var command = new ListFaqsCommand(args);
625
630
  if (typeof optionsOrCb === "function") {
626
631
  this.send(command, optionsOrCb);
627
632
  }
628
633
  else if (typeof cb === "function") {
629
634
  if (typeof optionsOrCb !== "object")
630
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
635
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
631
636
  this.send(command, optionsOrCb || {}, cb);
632
637
  }
633
638
  else {
634
639
  return this.send(command, optionsOrCb);
635
640
  }
636
- }
637
- listGroupsOlderThanOrderingId(args, optionsOrCb, cb) {
638
- const command = new ListGroupsOlderThanOrderingIdCommand(args);
641
+ };
642
+ Kendra.prototype.listGroupsOlderThanOrderingId = function (args, optionsOrCb, cb) {
643
+ var command = new ListGroupsOlderThanOrderingIdCommand(args);
639
644
  if (typeof optionsOrCb === "function") {
640
645
  this.send(command, optionsOrCb);
641
646
  }
642
647
  else if (typeof cb === "function") {
643
648
  if (typeof optionsOrCb !== "object")
644
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
649
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
645
650
  this.send(command, optionsOrCb || {}, cb);
646
651
  }
647
652
  else {
648
653
  return this.send(command, optionsOrCb);
649
654
  }
650
- }
651
- listIndices(args, optionsOrCb, cb) {
652
- const command = new ListIndicesCommand(args);
655
+ };
656
+ Kendra.prototype.listIndices = function (args, optionsOrCb, cb) {
657
+ var command = new ListIndicesCommand(args);
653
658
  if (typeof optionsOrCb === "function") {
654
659
  this.send(command, optionsOrCb);
655
660
  }
656
661
  else if (typeof cb === "function") {
657
662
  if (typeof optionsOrCb !== "object")
658
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
663
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
659
664
  this.send(command, optionsOrCb || {}, cb);
660
665
  }
661
666
  else {
662
667
  return this.send(command, optionsOrCb);
663
668
  }
664
- }
665
- listQuerySuggestionsBlockLists(args, optionsOrCb, cb) {
666
- const command = new ListQuerySuggestionsBlockListsCommand(args);
669
+ };
670
+ Kendra.prototype.listQuerySuggestionsBlockLists = function (args, optionsOrCb, cb) {
671
+ var command = new ListQuerySuggestionsBlockListsCommand(args);
667
672
  if (typeof optionsOrCb === "function") {
668
673
  this.send(command, optionsOrCb);
669
674
  }
670
675
  else if (typeof cb === "function") {
671
676
  if (typeof optionsOrCb !== "object")
672
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
677
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
673
678
  this.send(command, optionsOrCb || {}, cb);
674
679
  }
675
680
  else {
676
681
  return this.send(command, optionsOrCb);
677
682
  }
678
- }
679
- listTagsForResource(args, optionsOrCb, cb) {
680
- const command = new ListTagsForResourceCommand(args);
683
+ };
684
+ Kendra.prototype.listTagsForResource = function (args, optionsOrCb, cb) {
685
+ var command = new ListTagsForResourceCommand(args);
681
686
  if (typeof optionsOrCb === "function") {
682
687
  this.send(command, optionsOrCb);
683
688
  }
684
689
  else if (typeof cb === "function") {
685
690
  if (typeof optionsOrCb !== "object")
686
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
691
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
687
692
  this.send(command, optionsOrCb || {}, cb);
688
693
  }
689
694
  else {
690
695
  return this.send(command, optionsOrCb);
691
696
  }
692
- }
693
- listThesauri(args, optionsOrCb, cb) {
694
- const command = new ListThesauriCommand(args);
697
+ };
698
+ Kendra.prototype.listThesauri = function (args, optionsOrCb, cb) {
699
+ var command = new ListThesauriCommand(args);
695
700
  if (typeof optionsOrCb === "function") {
696
701
  this.send(command, optionsOrCb);
697
702
  }
698
703
  else if (typeof cb === "function") {
699
704
  if (typeof optionsOrCb !== "object")
700
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
705
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
701
706
  this.send(command, optionsOrCb || {}, cb);
702
707
  }
703
708
  else {
704
709
  return this.send(command, optionsOrCb);
705
710
  }
706
- }
707
- putPrincipalMapping(args, optionsOrCb, cb) {
708
- const command = new PutPrincipalMappingCommand(args);
711
+ };
712
+ Kendra.prototype.putPrincipalMapping = function (args, optionsOrCb, cb) {
713
+ var command = new PutPrincipalMappingCommand(args);
709
714
  if (typeof optionsOrCb === "function") {
710
715
  this.send(command, optionsOrCb);
711
716
  }
712
717
  else if (typeof cb === "function") {
713
718
  if (typeof optionsOrCb !== "object")
714
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
719
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
715
720
  this.send(command, optionsOrCb || {}, cb);
716
721
  }
717
722
  else {
718
723
  return this.send(command, optionsOrCb);
719
724
  }
720
- }
721
- query(args, optionsOrCb, cb) {
722
- const command = new QueryCommand(args);
725
+ };
726
+ Kendra.prototype.query = function (args, optionsOrCb, cb) {
727
+ var command = new QueryCommand(args);
723
728
  if (typeof optionsOrCb === "function") {
724
729
  this.send(command, optionsOrCb);
725
730
  }
726
731
  else if (typeof cb === "function") {
727
732
  if (typeof optionsOrCb !== "object")
728
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
733
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
729
734
  this.send(command, optionsOrCb || {}, cb);
730
735
  }
731
736
  else {
732
737
  return this.send(command, optionsOrCb);
733
738
  }
734
- }
735
- startDataSourceSyncJob(args, optionsOrCb, cb) {
736
- const command = new StartDataSourceSyncJobCommand(args);
739
+ };
740
+ Kendra.prototype.startDataSourceSyncJob = function (args, optionsOrCb, cb) {
741
+ var command = new StartDataSourceSyncJobCommand(args);
737
742
  if (typeof optionsOrCb === "function") {
738
743
  this.send(command, optionsOrCb);
739
744
  }
740
745
  else if (typeof cb === "function") {
741
746
  if (typeof optionsOrCb !== "object")
742
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
747
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
743
748
  this.send(command, optionsOrCb || {}, cb);
744
749
  }
745
750
  else {
746
751
  return this.send(command, optionsOrCb);
747
752
  }
748
- }
749
- stopDataSourceSyncJob(args, optionsOrCb, cb) {
750
- const command = new StopDataSourceSyncJobCommand(args);
753
+ };
754
+ Kendra.prototype.stopDataSourceSyncJob = function (args, optionsOrCb, cb) {
755
+ var command = new StopDataSourceSyncJobCommand(args);
751
756
  if (typeof optionsOrCb === "function") {
752
757
  this.send(command, optionsOrCb);
753
758
  }
754
759
  else if (typeof cb === "function") {
755
760
  if (typeof optionsOrCb !== "object")
756
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
761
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
757
762
  this.send(command, optionsOrCb || {}, cb);
758
763
  }
759
764
  else {
760
765
  return this.send(command, optionsOrCb);
761
766
  }
762
- }
763
- submitFeedback(args, optionsOrCb, cb) {
764
- const command = new SubmitFeedbackCommand(args);
767
+ };
768
+ Kendra.prototype.submitFeedback = function (args, optionsOrCb, cb) {
769
+ var command = new SubmitFeedbackCommand(args);
765
770
  if (typeof optionsOrCb === "function") {
766
771
  this.send(command, optionsOrCb);
767
772
  }
768
773
  else if (typeof cb === "function") {
769
774
  if (typeof optionsOrCb !== "object")
770
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
775
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
771
776
  this.send(command, optionsOrCb || {}, cb);
772
777
  }
773
778
  else {
774
779
  return this.send(command, optionsOrCb);
775
780
  }
776
- }
777
- tagResource(args, optionsOrCb, cb) {
778
- const command = new TagResourceCommand(args);
781
+ };
782
+ Kendra.prototype.tagResource = function (args, optionsOrCb, cb) {
783
+ var command = new TagResourceCommand(args);
779
784
  if (typeof optionsOrCb === "function") {
780
785
  this.send(command, optionsOrCb);
781
786
  }
782
787
  else if (typeof cb === "function") {
783
788
  if (typeof optionsOrCb !== "object")
784
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
789
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
785
790
  this.send(command, optionsOrCb || {}, cb);
786
791
  }
787
792
  else {
788
793
  return this.send(command, optionsOrCb);
789
794
  }
790
- }
791
- untagResource(args, optionsOrCb, cb) {
792
- const command = new UntagResourceCommand(args);
795
+ };
796
+ Kendra.prototype.untagResource = function (args, optionsOrCb, cb) {
797
+ var command = new UntagResourceCommand(args);
793
798
  if (typeof optionsOrCb === "function") {
794
799
  this.send(command, optionsOrCb);
795
800
  }
796
801
  else if (typeof cb === "function") {
797
802
  if (typeof optionsOrCb !== "object")
798
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
803
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
799
804
  this.send(command, optionsOrCb || {}, cb);
800
805
  }
801
806
  else {
802
807
  return this.send(command, optionsOrCb);
803
808
  }
804
- }
805
- updateAccessControlConfiguration(args, optionsOrCb, cb) {
806
- const command = new UpdateAccessControlConfigurationCommand(args);
809
+ };
810
+ Kendra.prototype.updateAccessControlConfiguration = function (args, optionsOrCb, cb) {
811
+ var command = new UpdateAccessControlConfigurationCommand(args);
807
812
  if (typeof optionsOrCb === "function") {
808
813
  this.send(command, optionsOrCb);
809
814
  }
810
815
  else if (typeof cb === "function") {
811
816
  if (typeof optionsOrCb !== "object")
812
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
817
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
813
818
  this.send(command, optionsOrCb || {}, cb);
814
819
  }
815
820
  else {
816
821
  return this.send(command, optionsOrCb);
817
822
  }
818
- }
819
- updateDataSource(args, optionsOrCb, cb) {
820
- const command = new UpdateDataSourceCommand(args);
823
+ };
824
+ Kendra.prototype.updateDataSource = function (args, optionsOrCb, cb) {
825
+ var command = new UpdateDataSourceCommand(args);
821
826
  if (typeof optionsOrCb === "function") {
822
827
  this.send(command, optionsOrCb);
823
828
  }
824
829
  else if (typeof cb === "function") {
825
830
  if (typeof optionsOrCb !== "object")
826
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
831
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
827
832
  this.send(command, optionsOrCb || {}, cb);
828
833
  }
829
834
  else {
830
835
  return this.send(command, optionsOrCb);
831
836
  }
832
- }
833
- updateExperience(args, optionsOrCb, cb) {
834
- const command = new UpdateExperienceCommand(args);
837
+ };
838
+ Kendra.prototype.updateExperience = function (args, optionsOrCb, cb) {
839
+ var command = new UpdateExperienceCommand(args);
835
840
  if (typeof optionsOrCb === "function") {
836
841
  this.send(command, optionsOrCb);
837
842
  }
838
843
  else if (typeof cb === "function") {
839
844
  if (typeof optionsOrCb !== "object")
840
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
845
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
841
846
  this.send(command, optionsOrCb || {}, cb);
842
847
  }
843
848
  else {
844
849
  return this.send(command, optionsOrCb);
845
850
  }
846
- }
847
- updateIndex(args, optionsOrCb, cb) {
848
- const command = new UpdateIndexCommand(args);
851
+ };
852
+ Kendra.prototype.updateIndex = function (args, optionsOrCb, cb) {
853
+ var command = new UpdateIndexCommand(args);
849
854
  if (typeof optionsOrCb === "function") {
850
855
  this.send(command, optionsOrCb);
851
856
  }
852
857
  else if (typeof cb === "function") {
853
858
  if (typeof optionsOrCb !== "object")
854
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
859
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
855
860
  this.send(command, optionsOrCb || {}, cb);
856
861
  }
857
862
  else {
858
863
  return this.send(command, optionsOrCb);
859
864
  }
860
- }
861
- updateQuerySuggestionsBlockList(args, optionsOrCb, cb) {
862
- const command = new UpdateQuerySuggestionsBlockListCommand(args);
865
+ };
866
+ Kendra.prototype.updateQuerySuggestionsBlockList = function (args, optionsOrCb, cb) {
867
+ var command = new UpdateQuerySuggestionsBlockListCommand(args);
863
868
  if (typeof optionsOrCb === "function") {
864
869
  this.send(command, optionsOrCb);
865
870
  }
866
871
  else if (typeof cb === "function") {
867
872
  if (typeof optionsOrCb !== "object")
868
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
873
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
869
874
  this.send(command, optionsOrCb || {}, cb);
870
875
  }
871
876
  else {
872
877
  return this.send(command, optionsOrCb);
873
878
  }
874
- }
875
- updateQuerySuggestionsConfig(args, optionsOrCb, cb) {
876
- const command = new UpdateQuerySuggestionsConfigCommand(args);
879
+ };
880
+ Kendra.prototype.updateQuerySuggestionsConfig = function (args, optionsOrCb, cb) {
881
+ var command = new UpdateQuerySuggestionsConfigCommand(args);
877
882
  if (typeof optionsOrCb === "function") {
878
883
  this.send(command, optionsOrCb);
879
884
  }
880
885
  else if (typeof cb === "function") {
881
886
  if (typeof optionsOrCb !== "object")
882
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
887
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
883
888
  this.send(command, optionsOrCb || {}, cb);
884
889
  }
885
890
  else {
886
891
  return this.send(command, optionsOrCb);
887
892
  }
888
- }
889
- updateThesaurus(args, optionsOrCb, cb) {
890
- const command = new UpdateThesaurusCommand(args);
893
+ };
894
+ Kendra.prototype.updateThesaurus = function (args, optionsOrCb, cb) {
895
+ var command = new UpdateThesaurusCommand(args);
891
896
  if (typeof optionsOrCb === "function") {
892
897
  this.send(command, optionsOrCb);
893
898
  }
894
899
  else if (typeof cb === "function") {
895
900
  if (typeof optionsOrCb !== "object")
896
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
901
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
897
902
  this.send(command, optionsOrCb || {}, cb);
898
903
  }
899
904
  else {
900
905
  return this.send(command, optionsOrCb);
901
906
  }
902
- }
903
- }
907
+ };
908
+ return Kendra;
909
+ }(KendraClient));
910
+ export { Kendra };