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