@aws-sdk/client-kendra 3.301.0 → 3.306.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 (118) hide show
  1. package/README.md +40 -0
  2. package/dist-cjs/Kendra.js +75 -0
  3. package/dist-cjs/commands/BatchDeleteFeaturedResultsSetCommand.js +45 -0
  4. package/dist-cjs/commands/CreateFeaturedResultsSetCommand.js +45 -0
  5. package/dist-cjs/commands/DescribeFeaturedResultsSetCommand.js +45 -0
  6. package/dist-cjs/commands/ListFeaturedResultsSetsCommand.js +45 -0
  7. package/dist-cjs/commands/UpdateFeaturedResultsSetCommand.js +45 -0
  8. package/dist-cjs/commands/index.js +5 -0
  9. package/dist-cjs/endpoint/ruleset.js +3 -3
  10. package/dist-cjs/models/models_0.js +381 -438
  11. package/dist-cjs/models/models_1.js +20 -0
  12. package/dist-cjs/protocols/Aws_json1_1.js +597 -4
  13. package/dist-es/Kendra.js +75 -0
  14. package/dist-es/commands/BatchDeleteFeaturedResultsSetCommand.js +41 -0
  15. package/dist-es/commands/CreateFeaturedResultsSetCommand.js +41 -0
  16. package/dist-es/commands/DescribeFeaturedResultsSetCommand.js +41 -0
  17. package/dist-es/commands/ListFeaturedResultsSetsCommand.js +41 -0
  18. package/dist-es/commands/UpdateFeaturedResultsSetCommand.js +41 -0
  19. package/dist-es/commands/index.js +5 -0
  20. package/dist-es/endpoint/ruleset.js +3 -3
  21. package/dist-es/models/models_0.js +377 -434
  22. package/dist-es/models/models_1.js +18 -1
  23. package/dist-es/protocols/Aws_json1_1.js +584 -1
  24. package/dist-types/Kendra.d.ts +163 -132
  25. package/dist-types/KendraClient.d.ts +7 -2
  26. package/dist-types/commands/AssociateEntitiesToExperienceCommand.d.ts +1 -1
  27. package/dist-types/commands/AssociatePersonasToEntitiesCommand.d.ts +1 -1
  28. package/dist-types/commands/BatchDeleteDocumentCommand.d.ts +6 -6
  29. package/dist-types/commands/BatchDeleteFeaturedResultsSetCommand.d.ts +88 -0
  30. package/dist-types/commands/BatchGetDocumentStatusCommand.d.ts +9 -13
  31. package/dist-types/commands/BatchPutDocumentCommand.d.ts +14 -13
  32. package/dist-types/commands/ClearQuerySuggestionsCommand.d.ts +1 -1
  33. package/dist-types/commands/CreateAccessControlConfigurationCommand.d.ts +17 -20
  34. package/dist-types/commands/CreateDataSourceCommand.d.ts +3 -4
  35. package/dist-types/commands/CreateExperienceCommand.d.ts +3 -2
  36. package/dist-types/commands/CreateFaqCommand.d.ts +6 -6
  37. package/dist-types/commands/CreateFeaturedResultsSetCommand.d.ts +117 -0
  38. package/dist-types/commands/CreateIndexCommand.d.ts +3 -2
  39. package/dist-types/commands/CreateQuerySuggestionsBlockListCommand.d.ts +3 -2
  40. package/dist-types/commands/CreateThesaurusCommand.d.ts +3 -2
  41. package/dist-types/commands/DeleteAccessControlConfigurationCommand.d.ts +5 -5
  42. package/dist-types/commands/DeleteDataSourceCommand.d.ts +1 -1
  43. package/dist-types/commands/DeleteExperienceCommand.d.ts +1 -1
  44. package/dist-types/commands/DeleteFaqCommand.d.ts +1 -1
  45. package/dist-types/commands/DeleteIndexCommand.d.ts +1 -1
  46. package/dist-types/commands/DeletePrincipalMappingCommand.d.ts +13 -15
  47. package/dist-types/commands/DeleteQuerySuggestionsBlockListCommand.d.ts +1 -1
  48. package/dist-types/commands/DeleteThesaurusCommand.d.ts +1 -1
  49. package/dist-types/commands/DescribeAccessControlConfigurationCommand.d.ts +3 -3
  50. package/dist-types/commands/DescribeDataSourceCommand.d.ts +1 -1
  51. package/dist-types/commands/DescribeExperienceCommand.d.ts +1 -1
  52. package/dist-types/commands/DescribeFaqCommand.d.ts +1 -1
  53. package/dist-types/commands/DescribeFeaturedResultsSetCommand.d.ts +86 -0
  54. package/dist-types/commands/DescribeIndexCommand.d.ts +1 -1
  55. package/dist-types/commands/DescribePrincipalMappingCommand.d.ts +8 -9
  56. package/dist-types/commands/DescribeQuerySuggestionsBlockListCommand.d.ts +1 -1
  57. package/dist-types/commands/DescribeQuerySuggestionsConfigCommand.d.ts +1 -1
  58. package/dist-types/commands/DescribeThesaurusCommand.d.ts +1 -1
  59. package/dist-types/commands/DisassociateEntitiesFromExperienceCommand.d.ts +1 -1
  60. package/dist-types/commands/DisassociatePersonasFromEntitiesCommand.d.ts +1 -1
  61. package/dist-types/commands/GetQuerySuggestionsCommand.d.ts +3 -2
  62. package/dist-types/commands/GetSnapshotsCommand.d.ts +3 -4
  63. package/dist-types/commands/ListAccessControlConfigurationsCommand.d.ts +5 -5
  64. package/dist-types/commands/ListDataSourceSyncJobsCommand.d.ts +1 -1
  65. package/dist-types/commands/ListDataSourcesCommand.d.ts +1 -1
  66. package/dist-types/commands/ListEntityPersonasCommand.d.ts +1 -1
  67. package/dist-types/commands/ListExperienceEntitiesCommand.d.ts +1 -1
  68. package/dist-types/commands/ListExperiencesCommand.d.ts +1 -1
  69. package/dist-types/commands/ListFaqsCommand.d.ts +1 -1
  70. package/dist-types/commands/ListFeaturedResultsSetsCommand.d.ts +87 -0
  71. package/dist-types/commands/ListGroupsOlderThanOrderingIdCommand.d.ts +4 -5
  72. package/dist-types/commands/ListIndicesCommand.d.ts +1 -1
  73. package/dist-types/commands/ListQuerySuggestionsBlockListsCommand.d.ts +1 -1
  74. package/dist-types/commands/ListTagsForResourceCommand.d.ts +3 -3
  75. package/dist-types/commands/ListThesauriCommand.d.ts +1 -1
  76. package/dist-types/commands/PutPrincipalMappingCommand.d.ts +15 -21
  77. package/dist-types/commands/QueryCommand.d.ts +3 -2
  78. package/dist-types/commands/StartDataSourceSyncJobCommand.d.ts +2 -2
  79. package/dist-types/commands/StopDataSourceSyncJobCommand.d.ts +2 -2
  80. package/dist-types/commands/SubmitFeedbackCommand.d.ts +2 -2
  81. package/dist-types/commands/TagResourceCommand.d.ts +4 -5
  82. package/dist-types/commands/UntagResourceCommand.d.ts +2 -2
  83. package/dist-types/commands/UpdateAccessControlConfigurationCommand.d.ts +20 -20
  84. package/dist-types/commands/UpdateDataSourceCommand.d.ts +2 -2
  85. package/dist-types/commands/UpdateExperienceCommand.d.ts +2 -2
  86. package/dist-types/commands/UpdateFeaturedResultsSetCommand.d.ts +105 -0
  87. package/dist-types/commands/UpdateIndexCommand.d.ts +4 -3
  88. package/dist-types/commands/UpdateQuerySuggestionsBlockListCommand.d.ts +2 -2
  89. package/dist-types/commands/UpdateQuerySuggestionsConfigCommand.d.ts +1 -1
  90. package/dist-types/commands/UpdateThesaurusCommand.d.ts +1 -1
  91. package/dist-types/commands/index.d.ts +5 -0
  92. package/dist-types/endpoint/EndpointParameters.d.ts +1 -1
  93. package/dist-types/models/models_0.d.ts +1943 -1687
  94. package/dist-types/models/models_1.d.ts +491 -72
  95. package/dist-types/protocols/Aws_json1_1.d.ts +15 -0
  96. package/dist-types/ts3.4/Kendra.d.ts +85 -0
  97. package/dist-types/ts3.4/KendraClient.d.ts +30 -0
  98. package/dist-types/ts3.4/commands/BatchDeleteFeaturedResultsSetCommand.d.ts +41 -0
  99. package/dist-types/ts3.4/commands/CreateFeaturedResultsSetCommand.d.ts +41 -0
  100. package/dist-types/ts3.4/commands/DescribeFeaturedResultsSetCommand.d.ts +41 -0
  101. package/dist-types/ts3.4/commands/ListFeaturedResultsSetsCommand.d.ts +41 -0
  102. package/dist-types/ts3.4/commands/StartDataSourceSyncJobCommand.d.ts +1 -1
  103. package/dist-types/ts3.4/commands/StopDataSourceSyncJobCommand.d.ts +1 -1
  104. package/dist-types/ts3.4/commands/SubmitFeedbackCommand.d.ts +1 -1
  105. package/dist-types/ts3.4/commands/TagResourceCommand.d.ts +1 -1
  106. package/dist-types/ts3.4/commands/UntagResourceCommand.d.ts +1 -1
  107. package/dist-types/ts3.4/commands/UpdateAccessControlConfigurationCommand.d.ts +1 -1
  108. package/dist-types/ts3.4/commands/UpdateDataSourceCommand.d.ts +1 -1
  109. package/dist-types/ts3.4/commands/UpdateExperienceCommand.d.ts +1 -1
  110. package/dist-types/ts3.4/commands/UpdateFeaturedResultsSetCommand.d.ts +41 -0
  111. package/dist-types/ts3.4/commands/UpdateIndexCommand.d.ts +1 -1
  112. package/dist-types/ts3.4/commands/UpdateQuerySuggestionsBlockListCommand.d.ts +1 -1
  113. package/dist-types/ts3.4/commands/index.d.ts +5 -0
  114. package/dist-types/ts3.4/endpoint/EndpointParameters.d.ts +1 -1
  115. package/dist-types/ts3.4/models/models_0.d.ts +563 -453
  116. package/dist-types/ts3.4/models/models_1.d.ts +127 -0
  117. package/dist-types/ts3.4/protocols/Aws_json1_1.d.ts +60 -0
  118. package/package.json +34 -34
package/README.md CHANGED
@@ -229,6 +229,14 @@ BatchDeleteDocument
229
229
 
230
230
  [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-kendra/classes/batchdeletedocumentcommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-kendra/interfaces/batchdeletedocumentcommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-kendra/interfaces/batchdeletedocumentcommandoutput.html)
231
231
 
232
+ </details>
233
+ <details>
234
+ <summary>
235
+ BatchDeleteFeaturedResultsSet
236
+ </summary>
237
+
238
+ [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-kendra/classes/batchdeletefeaturedresultssetcommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-kendra/interfaces/batchdeletefeaturedresultssetcommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-kendra/interfaces/batchdeletefeaturedresultssetcommandoutput.html)
239
+
232
240
  </details>
233
241
  <details>
234
242
  <summary>
@@ -285,6 +293,14 @@ CreateFaq
285
293
 
286
294
  [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-kendra/classes/createfaqcommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-kendra/interfaces/createfaqcommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-kendra/interfaces/createfaqcommandoutput.html)
287
295
 
296
+ </details>
297
+ <details>
298
+ <summary>
299
+ CreateFeaturedResultsSet
300
+ </summary>
301
+
302
+ [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-kendra/classes/createfeaturedresultssetcommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-kendra/interfaces/createfeaturedresultssetcommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-kendra/interfaces/createfeaturedresultssetcommandoutput.html)
303
+
288
304
  </details>
289
305
  <details>
290
306
  <summary>
@@ -405,6 +421,14 @@ DescribeFaq
405
421
 
406
422
  [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-kendra/classes/describefaqcommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-kendra/interfaces/describefaqcommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-kendra/interfaces/describefaqcommandoutput.html)
407
423
 
424
+ </details>
425
+ <details>
426
+ <summary>
427
+ DescribeFeaturedResultsSet
428
+ </summary>
429
+
430
+ [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-kendra/classes/describefeaturedresultssetcommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-kendra/interfaces/describefeaturedresultssetcommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-kendra/interfaces/describefeaturedresultssetcommandoutput.html)
431
+
408
432
  </details>
409
433
  <details>
410
434
  <summary>
@@ -533,6 +557,14 @@ ListFaqs
533
557
 
534
558
  [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-kendra/classes/listfaqscommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-kendra/interfaces/listfaqscommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-kendra/interfaces/listfaqscommandoutput.html)
535
559
 
560
+ </details>
561
+ <details>
562
+ <summary>
563
+ ListFeaturedResultsSets
564
+ </summary>
565
+
566
+ [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-kendra/classes/listfeaturedresultssetscommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-kendra/interfaces/listfeaturedresultssetscommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-kendra/interfaces/listfeaturedresultssetscommandoutput.html)
567
+
536
568
  </details>
537
569
  <details>
538
570
  <summary>
@@ -653,6 +685,14 @@ UpdateExperience
653
685
 
654
686
  [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-kendra/classes/updateexperiencecommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-kendra/interfaces/updateexperiencecommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-kendra/interfaces/updateexperiencecommandoutput.html)
655
687
 
688
+ </details>
689
+ <details>
690
+ <summary>
691
+ UpdateFeaturedResultsSet
692
+ </summary>
693
+
694
+ [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-kendra/classes/updatefeaturedresultssetcommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-kendra/interfaces/updatefeaturedresultssetcommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-kendra/interfaces/updatefeaturedresultssetcommandoutput.html)
695
+
656
696
  </details>
657
697
  <details>
658
698
  <summary>
@@ -4,6 +4,7 @@ exports.Kendra = void 0;
4
4
  const AssociateEntitiesToExperienceCommand_1 = require("./commands/AssociateEntitiesToExperienceCommand");
5
5
  const AssociatePersonasToEntitiesCommand_1 = require("./commands/AssociatePersonasToEntitiesCommand");
6
6
  const BatchDeleteDocumentCommand_1 = require("./commands/BatchDeleteDocumentCommand");
7
+ const BatchDeleteFeaturedResultsSetCommand_1 = require("./commands/BatchDeleteFeaturedResultsSetCommand");
7
8
  const BatchGetDocumentStatusCommand_1 = require("./commands/BatchGetDocumentStatusCommand");
8
9
  const BatchPutDocumentCommand_1 = require("./commands/BatchPutDocumentCommand");
9
10
  const ClearQuerySuggestionsCommand_1 = require("./commands/ClearQuerySuggestionsCommand");
@@ -11,6 +12,7 @@ const CreateAccessControlConfigurationCommand_1 = require("./commands/CreateAcce
11
12
  const CreateDataSourceCommand_1 = require("./commands/CreateDataSourceCommand");
12
13
  const CreateExperienceCommand_1 = require("./commands/CreateExperienceCommand");
13
14
  const CreateFaqCommand_1 = require("./commands/CreateFaqCommand");
15
+ const CreateFeaturedResultsSetCommand_1 = require("./commands/CreateFeaturedResultsSetCommand");
14
16
  const CreateIndexCommand_1 = require("./commands/CreateIndexCommand");
15
17
  const CreateQuerySuggestionsBlockListCommand_1 = require("./commands/CreateQuerySuggestionsBlockListCommand");
16
18
  const CreateThesaurusCommand_1 = require("./commands/CreateThesaurusCommand");
@@ -26,6 +28,7 @@ const DescribeAccessControlConfigurationCommand_1 = require("./commands/Describe
26
28
  const DescribeDataSourceCommand_1 = require("./commands/DescribeDataSourceCommand");
27
29
  const DescribeExperienceCommand_1 = require("./commands/DescribeExperienceCommand");
28
30
  const DescribeFaqCommand_1 = require("./commands/DescribeFaqCommand");
31
+ const DescribeFeaturedResultsSetCommand_1 = require("./commands/DescribeFeaturedResultsSetCommand");
29
32
  const DescribeIndexCommand_1 = require("./commands/DescribeIndexCommand");
30
33
  const DescribePrincipalMappingCommand_1 = require("./commands/DescribePrincipalMappingCommand");
31
34
  const DescribeQuerySuggestionsBlockListCommand_1 = require("./commands/DescribeQuerySuggestionsBlockListCommand");
@@ -42,6 +45,7 @@ const ListEntityPersonasCommand_1 = require("./commands/ListEntityPersonasComman
42
45
  const ListExperienceEntitiesCommand_1 = require("./commands/ListExperienceEntitiesCommand");
43
46
  const ListExperiencesCommand_1 = require("./commands/ListExperiencesCommand");
44
47
  const ListFaqsCommand_1 = require("./commands/ListFaqsCommand");
48
+ const ListFeaturedResultsSetsCommand_1 = require("./commands/ListFeaturedResultsSetsCommand");
45
49
  const ListGroupsOlderThanOrderingIdCommand_1 = require("./commands/ListGroupsOlderThanOrderingIdCommand");
46
50
  const ListIndicesCommand_1 = require("./commands/ListIndicesCommand");
47
51
  const ListQuerySuggestionsBlockListsCommand_1 = require("./commands/ListQuerySuggestionsBlockListsCommand");
@@ -57,6 +61,7 @@ const UntagResourceCommand_1 = require("./commands/UntagResourceCommand");
57
61
  const UpdateAccessControlConfigurationCommand_1 = require("./commands/UpdateAccessControlConfigurationCommand");
58
62
  const UpdateDataSourceCommand_1 = require("./commands/UpdateDataSourceCommand");
59
63
  const UpdateExperienceCommand_1 = require("./commands/UpdateExperienceCommand");
64
+ const UpdateFeaturedResultsSetCommand_1 = require("./commands/UpdateFeaturedResultsSetCommand");
60
65
  const UpdateIndexCommand_1 = require("./commands/UpdateIndexCommand");
61
66
  const UpdateQuerySuggestionsBlockListCommand_1 = require("./commands/UpdateQuerySuggestionsBlockListCommand");
62
67
  const UpdateQuerySuggestionsConfigCommand_1 = require("./commands/UpdateQuerySuggestionsConfigCommand");
@@ -105,6 +110,20 @@ class Kendra extends KendraClient_1.KendraClient {
105
110
  return this.send(command, optionsOrCb);
106
111
  }
107
112
  }
113
+ batchDeleteFeaturedResultsSet(args, optionsOrCb, cb) {
114
+ const command = new BatchDeleteFeaturedResultsSetCommand_1.BatchDeleteFeaturedResultsSetCommand(args);
115
+ if (typeof optionsOrCb === "function") {
116
+ this.send(command, optionsOrCb);
117
+ }
118
+ else if (typeof cb === "function") {
119
+ if (typeof optionsOrCb !== "object")
120
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
121
+ this.send(command, optionsOrCb || {}, cb);
122
+ }
123
+ else {
124
+ return this.send(command, optionsOrCb);
125
+ }
126
+ }
108
127
  batchGetDocumentStatus(args, optionsOrCb, cb) {
109
128
  const command = new BatchGetDocumentStatusCommand_1.BatchGetDocumentStatusCommand(args);
110
129
  if (typeof optionsOrCb === "function") {
@@ -203,6 +222,20 @@ class Kendra extends KendraClient_1.KendraClient {
203
222
  return this.send(command, optionsOrCb);
204
223
  }
205
224
  }
225
+ createFeaturedResultsSet(args, optionsOrCb, cb) {
226
+ const command = new CreateFeaturedResultsSetCommand_1.CreateFeaturedResultsSetCommand(args);
227
+ if (typeof optionsOrCb === "function") {
228
+ this.send(command, optionsOrCb);
229
+ }
230
+ else if (typeof cb === "function") {
231
+ if (typeof optionsOrCb !== "object")
232
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
233
+ this.send(command, optionsOrCb || {}, cb);
234
+ }
235
+ else {
236
+ return this.send(command, optionsOrCb);
237
+ }
238
+ }
206
239
  createIndex(args, optionsOrCb, cb) {
207
240
  const command = new CreateIndexCommand_1.CreateIndexCommand(args);
208
241
  if (typeof optionsOrCb === "function") {
@@ -413,6 +446,20 @@ class Kendra extends KendraClient_1.KendraClient {
413
446
  return this.send(command, optionsOrCb);
414
447
  }
415
448
  }
449
+ describeFeaturedResultsSet(args, optionsOrCb, cb) {
450
+ const command = new DescribeFeaturedResultsSetCommand_1.DescribeFeaturedResultsSetCommand(args);
451
+ if (typeof optionsOrCb === "function") {
452
+ this.send(command, optionsOrCb);
453
+ }
454
+ else if (typeof cb === "function") {
455
+ if (typeof optionsOrCb !== "object")
456
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
457
+ this.send(command, optionsOrCb || {}, cb);
458
+ }
459
+ else {
460
+ return this.send(command, optionsOrCb);
461
+ }
462
+ }
416
463
  describeIndex(args, optionsOrCb, cb) {
417
464
  const command = new DescribeIndexCommand_1.DescribeIndexCommand(args);
418
465
  if (typeof optionsOrCb === "function") {
@@ -637,6 +684,20 @@ class Kendra extends KendraClient_1.KendraClient {
637
684
  return this.send(command, optionsOrCb);
638
685
  }
639
686
  }
687
+ listFeaturedResultsSets(args, optionsOrCb, cb) {
688
+ const command = new ListFeaturedResultsSetsCommand_1.ListFeaturedResultsSetsCommand(args);
689
+ if (typeof optionsOrCb === "function") {
690
+ this.send(command, optionsOrCb);
691
+ }
692
+ else if (typeof cb === "function") {
693
+ if (typeof optionsOrCb !== "object")
694
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
695
+ this.send(command, optionsOrCb || {}, cb);
696
+ }
697
+ else {
698
+ return this.send(command, optionsOrCb);
699
+ }
700
+ }
640
701
  listGroupsOlderThanOrderingId(args, optionsOrCb, cb) {
641
702
  const command = new ListGroupsOlderThanOrderingIdCommand_1.ListGroupsOlderThanOrderingIdCommand(args);
642
703
  if (typeof optionsOrCb === "function") {
@@ -847,6 +908,20 @@ class Kendra extends KendraClient_1.KendraClient {
847
908
  return this.send(command, optionsOrCb);
848
909
  }
849
910
  }
911
+ updateFeaturedResultsSet(args, optionsOrCb, cb) {
912
+ const command = new UpdateFeaturedResultsSetCommand_1.UpdateFeaturedResultsSetCommand(args);
913
+ if (typeof optionsOrCb === "function") {
914
+ this.send(command, optionsOrCb);
915
+ }
916
+ else if (typeof cb === "function") {
917
+ if (typeof optionsOrCb !== "object")
918
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
919
+ this.send(command, optionsOrCb || {}, cb);
920
+ }
921
+ else {
922
+ return this.send(command, optionsOrCb);
923
+ }
924
+ }
850
925
  updateIndex(args, optionsOrCb, cb) {
851
926
  const command = new UpdateIndexCommand_1.UpdateIndexCommand(args);
852
927
  if (typeof optionsOrCb === "function") {
@@ -0,0 +1,45 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.BatchDeleteFeaturedResultsSetCommand = void 0;
4
+ const middleware_endpoint_1 = require("@aws-sdk/middleware-endpoint");
5
+ const middleware_serde_1 = require("@aws-sdk/middleware-serde");
6
+ const smithy_client_1 = require("@aws-sdk/smithy-client");
7
+ const Aws_json1_1_1 = require("../protocols/Aws_json1_1");
8
+ class BatchDeleteFeaturedResultsSetCommand extends smithy_client_1.Command {
9
+ static getEndpointParameterInstructions() {
10
+ return {
11
+ UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
12
+ Endpoint: { type: "builtInParams", name: "endpoint" },
13
+ Region: { type: "builtInParams", name: "region" },
14
+ UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
15
+ };
16
+ }
17
+ constructor(input) {
18
+ super();
19
+ this.input = input;
20
+ }
21
+ resolveMiddleware(clientStack, configuration, options) {
22
+ this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize));
23
+ this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, BatchDeleteFeaturedResultsSetCommand.getEndpointParameterInstructions()));
24
+ const stack = clientStack.concat(this.middlewareStack);
25
+ const { logger } = configuration;
26
+ const clientName = "KendraClient";
27
+ const commandName = "BatchDeleteFeaturedResultsSetCommand";
28
+ const handlerExecutionContext = {
29
+ logger,
30
+ clientName,
31
+ commandName,
32
+ inputFilterSensitiveLog: (_) => _,
33
+ outputFilterSensitiveLog: (_) => _,
34
+ };
35
+ const { requestHandler } = configuration;
36
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
37
+ }
38
+ serialize(input, context) {
39
+ return (0, Aws_json1_1_1.serializeAws_json1_1BatchDeleteFeaturedResultsSetCommand)(input, context);
40
+ }
41
+ deserialize(output, context) {
42
+ return (0, Aws_json1_1_1.deserializeAws_json1_1BatchDeleteFeaturedResultsSetCommand)(output, context);
43
+ }
44
+ }
45
+ exports.BatchDeleteFeaturedResultsSetCommand = BatchDeleteFeaturedResultsSetCommand;
@@ -0,0 +1,45 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.CreateFeaturedResultsSetCommand = void 0;
4
+ const middleware_endpoint_1 = require("@aws-sdk/middleware-endpoint");
5
+ const middleware_serde_1 = require("@aws-sdk/middleware-serde");
6
+ const smithy_client_1 = require("@aws-sdk/smithy-client");
7
+ const Aws_json1_1_1 = require("../protocols/Aws_json1_1");
8
+ class CreateFeaturedResultsSetCommand extends smithy_client_1.Command {
9
+ static getEndpointParameterInstructions() {
10
+ return {
11
+ UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
12
+ Endpoint: { type: "builtInParams", name: "endpoint" },
13
+ Region: { type: "builtInParams", name: "region" },
14
+ UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
15
+ };
16
+ }
17
+ constructor(input) {
18
+ super();
19
+ this.input = input;
20
+ }
21
+ resolveMiddleware(clientStack, configuration, options) {
22
+ this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize));
23
+ this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, CreateFeaturedResultsSetCommand.getEndpointParameterInstructions()));
24
+ const stack = clientStack.concat(this.middlewareStack);
25
+ const { logger } = configuration;
26
+ const clientName = "KendraClient";
27
+ const commandName = "CreateFeaturedResultsSetCommand";
28
+ const handlerExecutionContext = {
29
+ logger,
30
+ clientName,
31
+ commandName,
32
+ inputFilterSensitiveLog: (_) => _,
33
+ outputFilterSensitiveLog: (_) => _,
34
+ };
35
+ const { requestHandler } = configuration;
36
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
37
+ }
38
+ serialize(input, context) {
39
+ return (0, Aws_json1_1_1.serializeAws_json1_1CreateFeaturedResultsSetCommand)(input, context);
40
+ }
41
+ deserialize(output, context) {
42
+ return (0, Aws_json1_1_1.deserializeAws_json1_1CreateFeaturedResultsSetCommand)(output, context);
43
+ }
44
+ }
45
+ exports.CreateFeaturedResultsSetCommand = CreateFeaturedResultsSetCommand;
@@ -0,0 +1,45 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.DescribeFeaturedResultsSetCommand = void 0;
4
+ const middleware_endpoint_1 = require("@aws-sdk/middleware-endpoint");
5
+ const middleware_serde_1 = require("@aws-sdk/middleware-serde");
6
+ const smithy_client_1 = require("@aws-sdk/smithy-client");
7
+ const Aws_json1_1_1 = require("../protocols/Aws_json1_1");
8
+ class DescribeFeaturedResultsSetCommand extends smithy_client_1.Command {
9
+ static getEndpointParameterInstructions() {
10
+ return {
11
+ UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
12
+ Endpoint: { type: "builtInParams", name: "endpoint" },
13
+ Region: { type: "builtInParams", name: "region" },
14
+ UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
15
+ };
16
+ }
17
+ constructor(input) {
18
+ super();
19
+ this.input = input;
20
+ }
21
+ resolveMiddleware(clientStack, configuration, options) {
22
+ this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize));
23
+ this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, DescribeFeaturedResultsSetCommand.getEndpointParameterInstructions()));
24
+ const stack = clientStack.concat(this.middlewareStack);
25
+ const { logger } = configuration;
26
+ const clientName = "KendraClient";
27
+ const commandName = "DescribeFeaturedResultsSetCommand";
28
+ const handlerExecutionContext = {
29
+ logger,
30
+ clientName,
31
+ commandName,
32
+ inputFilterSensitiveLog: (_) => _,
33
+ outputFilterSensitiveLog: (_) => _,
34
+ };
35
+ const { requestHandler } = configuration;
36
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
37
+ }
38
+ serialize(input, context) {
39
+ return (0, Aws_json1_1_1.serializeAws_json1_1DescribeFeaturedResultsSetCommand)(input, context);
40
+ }
41
+ deserialize(output, context) {
42
+ return (0, Aws_json1_1_1.deserializeAws_json1_1DescribeFeaturedResultsSetCommand)(output, context);
43
+ }
44
+ }
45
+ exports.DescribeFeaturedResultsSetCommand = DescribeFeaturedResultsSetCommand;
@@ -0,0 +1,45 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ListFeaturedResultsSetsCommand = void 0;
4
+ const middleware_endpoint_1 = require("@aws-sdk/middleware-endpoint");
5
+ const middleware_serde_1 = require("@aws-sdk/middleware-serde");
6
+ const smithy_client_1 = require("@aws-sdk/smithy-client");
7
+ const Aws_json1_1_1 = require("../protocols/Aws_json1_1");
8
+ class ListFeaturedResultsSetsCommand extends smithy_client_1.Command {
9
+ static getEndpointParameterInstructions() {
10
+ return {
11
+ UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
12
+ Endpoint: { type: "builtInParams", name: "endpoint" },
13
+ Region: { type: "builtInParams", name: "region" },
14
+ UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
15
+ };
16
+ }
17
+ constructor(input) {
18
+ super();
19
+ this.input = input;
20
+ }
21
+ resolveMiddleware(clientStack, configuration, options) {
22
+ this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize));
23
+ this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, ListFeaturedResultsSetsCommand.getEndpointParameterInstructions()));
24
+ const stack = clientStack.concat(this.middlewareStack);
25
+ const { logger } = configuration;
26
+ const clientName = "KendraClient";
27
+ const commandName = "ListFeaturedResultsSetsCommand";
28
+ const handlerExecutionContext = {
29
+ logger,
30
+ clientName,
31
+ commandName,
32
+ inputFilterSensitiveLog: (_) => _,
33
+ outputFilterSensitiveLog: (_) => _,
34
+ };
35
+ const { requestHandler } = configuration;
36
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
37
+ }
38
+ serialize(input, context) {
39
+ return (0, Aws_json1_1_1.serializeAws_json1_1ListFeaturedResultsSetsCommand)(input, context);
40
+ }
41
+ deserialize(output, context) {
42
+ return (0, Aws_json1_1_1.deserializeAws_json1_1ListFeaturedResultsSetsCommand)(output, context);
43
+ }
44
+ }
45
+ exports.ListFeaturedResultsSetsCommand = ListFeaturedResultsSetsCommand;
@@ -0,0 +1,45 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.UpdateFeaturedResultsSetCommand = void 0;
4
+ const middleware_endpoint_1 = require("@aws-sdk/middleware-endpoint");
5
+ const middleware_serde_1 = require("@aws-sdk/middleware-serde");
6
+ const smithy_client_1 = require("@aws-sdk/smithy-client");
7
+ const Aws_json1_1_1 = require("../protocols/Aws_json1_1");
8
+ class UpdateFeaturedResultsSetCommand extends smithy_client_1.Command {
9
+ static getEndpointParameterInstructions() {
10
+ return {
11
+ UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
12
+ Endpoint: { type: "builtInParams", name: "endpoint" },
13
+ Region: { type: "builtInParams", name: "region" },
14
+ UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
15
+ };
16
+ }
17
+ constructor(input) {
18
+ super();
19
+ this.input = input;
20
+ }
21
+ resolveMiddleware(clientStack, configuration, options) {
22
+ this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize));
23
+ this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, UpdateFeaturedResultsSetCommand.getEndpointParameterInstructions()));
24
+ const stack = clientStack.concat(this.middlewareStack);
25
+ const { logger } = configuration;
26
+ const clientName = "KendraClient";
27
+ const commandName = "UpdateFeaturedResultsSetCommand";
28
+ const handlerExecutionContext = {
29
+ logger,
30
+ clientName,
31
+ commandName,
32
+ inputFilterSensitiveLog: (_) => _,
33
+ outputFilterSensitiveLog: (_) => _,
34
+ };
35
+ const { requestHandler } = configuration;
36
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
37
+ }
38
+ serialize(input, context) {
39
+ return (0, Aws_json1_1_1.serializeAws_json1_1UpdateFeaturedResultsSetCommand)(input, context);
40
+ }
41
+ deserialize(output, context) {
42
+ return (0, Aws_json1_1_1.deserializeAws_json1_1UpdateFeaturedResultsSetCommand)(output, context);
43
+ }
44
+ }
45
+ exports.UpdateFeaturedResultsSetCommand = UpdateFeaturedResultsSetCommand;
@@ -4,6 +4,7 @@ const tslib_1 = require("tslib");
4
4
  tslib_1.__exportStar(require("./AssociateEntitiesToExperienceCommand"), exports);
5
5
  tslib_1.__exportStar(require("./AssociatePersonasToEntitiesCommand"), exports);
6
6
  tslib_1.__exportStar(require("./BatchDeleteDocumentCommand"), exports);
7
+ tslib_1.__exportStar(require("./BatchDeleteFeaturedResultsSetCommand"), exports);
7
8
  tslib_1.__exportStar(require("./BatchGetDocumentStatusCommand"), exports);
8
9
  tslib_1.__exportStar(require("./BatchPutDocumentCommand"), exports);
9
10
  tslib_1.__exportStar(require("./ClearQuerySuggestionsCommand"), exports);
@@ -11,6 +12,7 @@ tslib_1.__exportStar(require("./CreateAccessControlConfigurationCommand"), expor
11
12
  tslib_1.__exportStar(require("./CreateDataSourceCommand"), exports);
12
13
  tslib_1.__exportStar(require("./CreateExperienceCommand"), exports);
13
14
  tslib_1.__exportStar(require("./CreateFaqCommand"), exports);
15
+ tslib_1.__exportStar(require("./CreateFeaturedResultsSetCommand"), exports);
14
16
  tslib_1.__exportStar(require("./CreateIndexCommand"), exports);
15
17
  tslib_1.__exportStar(require("./CreateQuerySuggestionsBlockListCommand"), exports);
16
18
  tslib_1.__exportStar(require("./CreateThesaurusCommand"), exports);
@@ -26,6 +28,7 @@ tslib_1.__exportStar(require("./DescribeAccessControlConfigurationCommand"), exp
26
28
  tslib_1.__exportStar(require("./DescribeDataSourceCommand"), exports);
27
29
  tslib_1.__exportStar(require("./DescribeExperienceCommand"), exports);
28
30
  tslib_1.__exportStar(require("./DescribeFaqCommand"), exports);
31
+ tslib_1.__exportStar(require("./DescribeFeaturedResultsSetCommand"), exports);
29
32
  tslib_1.__exportStar(require("./DescribeIndexCommand"), exports);
30
33
  tslib_1.__exportStar(require("./DescribePrincipalMappingCommand"), exports);
31
34
  tslib_1.__exportStar(require("./DescribeQuerySuggestionsBlockListCommand"), exports);
@@ -42,6 +45,7 @@ tslib_1.__exportStar(require("./ListEntityPersonasCommand"), exports);
42
45
  tslib_1.__exportStar(require("./ListExperienceEntitiesCommand"), exports);
43
46
  tslib_1.__exportStar(require("./ListExperiencesCommand"), exports);
44
47
  tslib_1.__exportStar(require("./ListFaqsCommand"), exports);
48
+ tslib_1.__exportStar(require("./ListFeaturedResultsSetsCommand"), exports);
45
49
  tslib_1.__exportStar(require("./ListGroupsOlderThanOrderingIdCommand"), exports);
46
50
  tslib_1.__exportStar(require("./ListIndicesCommand"), exports);
47
51
  tslib_1.__exportStar(require("./ListQuerySuggestionsBlockListsCommand"), exports);
@@ -57,6 +61,7 @@ tslib_1.__exportStar(require("./UntagResourceCommand"), exports);
57
61
  tslib_1.__exportStar(require("./UpdateAccessControlConfigurationCommand"), exports);
58
62
  tslib_1.__exportStar(require("./UpdateDataSourceCommand"), exports);
59
63
  tslib_1.__exportStar(require("./UpdateExperienceCommand"), exports);
64
+ tslib_1.__exportStar(require("./UpdateFeaturedResultsSetCommand"), exports);
60
65
  tslib_1.__exportStar(require("./UpdateIndexCommand"), exports);
61
66
  tslib_1.__exportStar(require("./UpdateQuerySuggestionsBlockListCommand"), exports);
62
67
  tslib_1.__exportStar(require("./UpdateQuerySuggestionsConfigCommand"), exports);
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.ruleSet = void 0;
4
- const q = "fn", r = "argv", s = "ref";
5
- const a = true, b = false, c = "String", d = "PartitionResult", e = "tree", f = "error", g = "endpoint", h = { "required": true, "default": false, "type": "Boolean" }, i = { [s]: "Endpoint" }, j = { [q]: "booleanEquals", [r]: [{ [s]: "UseFIPS" }, true] }, k = { [q]: "booleanEquals", [r]: [{ [s]: "UseDualStack" }, true] }, l = {}, m = { [q]: "booleanEquals", [r]: [true, { [q]: "getAttr", [r]: [{ [s]: d }, "supportsFIPS"] }] }, n = { [q]: "booleanEquals", [r]: [true, { [q]: "getAttr", [r]: [{ [s]: d }, "supportsDualStack"] }] }, o = [j], p = [k];
6
- const _data = { version: "1.0", parameters: { Region: { required: a, type: c }, UseDualStack: h, UseFIPS: h, Endpoint: { required: b, type: c } }, rules: [{ conditions: [{ [q]: "aws.partition", [r]: [{ [s]: "Region" }], assign: d }], type: e, rules: [{ conditions: [{ [q]: "isSet", [r]: [i] }], type: e, rules: [{ conditions: o, error: "Invalid Configuration: FIPS and custom endpoint are not supported", type: f }, { type: e, rules: [{ conditions: p, error: "Invalid Configuration: Dualstack and custom endpoint are not supported", type: f }, { endpoint: { url: i, properties: l, headers: l }, type: g }] }] }, { conditions: [j, k], type: e, rules: [{ conditions: [m, n], type: e, rules: [{ endpoint: { url: "https://kendra-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: l, headers: l }, type: g }] }, { error: "FIPS and DualStack are enabled, but this partition does not support one or both", type: f }] }, { conditions: o, type: e, rules: [{ conditions: [m], type: e, rules: [{ type: e, rules: [{ endpoint: { url: "https://kendra-fips.{Region}.{PartitionResult#dnsSuffix}", properties: l, headers: l }, type: g }] }] }, { error: "FIPS is enabled but this partition does not support FIPS", type: f }] }, { conditions: p, type: e, rules: [{ conditions: [n], type: e, rules: [{ endpoint: { url: "https://kendra.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: l, headers: l }, type: g }] }, { error: "DualStack is enabled but this partition does not support DualStack", type: f }] }, { endpoint: { url: "https://kendra.{Region}.{PartitionResult#dnsSuffix}", properties: l, headers: l }, type: g }] }] };
4
+ const q = "required", r = "fn", s = "argv", t = "ref";
5
+ const a = "isSet", b = "tree", c = "error", d = "endpoint", e = "PartitionResult", f = { [q]: false, "type": "String" }, g = { [q]: true, "default": false, "type": "Boolean" }, h = { [t]: "Endpoint" }, i = { [r]: "booleanEquals", [s]: [{ [t]: "UseFIPS" }, true] }, j = { [r]: "booleanEquals", [s]: [{ [t]: "UseDualStack" }, true] }, k = {}, l = { [r]: "booleanEquals", [s]: [true, { [r]: "getAttr", [s]: [{ [t]: e }, "supportsFIPS"] }] }, m = { [r]: "booleanEquals", [s]: [true, { [r]: "getAttr", [s]: [{ [t]: e }, "supportsDualStack"] }] }, n = [i], o = [j], p = [{ [t]: "Region" }];
6
+ const _data = { version: "1.0", parameters: { Region: f, UseDualStack: g, UseFIPS: g, Endpoint: f }, rules: [{ conditions: [{ [r]: a, [s]: [h] }], type: b, rules: [{ conditions: n, error: "Invalid Configuration: FIPS and custom endpoint are not supported", type: c }, { type: b, rules: [{ conditions: o, error: "Invalid Configuration: Dualstack and custom endpoint are not supported", type: c }, { endpoint: { url: h, properties: k, headers: k }, type: d }] }] }, { type: b, rules: [{ conditions: [{ [r]: a, [s]: p }], type: b, rules: [{ conditions: [{ [r]: "aws.partition", [s]: p, assign: e }], type: b, rules: [{ conditions: [i, j], type: b, rules: [{ conditions: [l, m], type: b, rules: [{ type: b, rules: [{ endpoint: { url: "https://kendra-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: k, headers: k }, type: d }] }] }, { error: "FIPS and DualStack are enabled, but this partition does not support one or both", type: c }] }, { conditions: n, type: b, rules: [{ conditions: [l], type: b, rules: [{ type: b, rules: [{ endpoint: { url: "https://kendra-fips.{Region}.{PartitionResult#dnsSuffix}", properties: k, headers: k }, type: d }] }] }, { error: "FIPS is enabled but this partition does not support FIPS", type: c }] }, { conditions: o, type: b, rules: [{ conditions: [m], type: b, rules: [{ type: b, rules: [{ endpoint: { url: "https://kendra.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: k, headers: k }, type: d }] }] }, { error: "DualStack is enabled but this partition does not support DualStack", type: c }] }, { type: b, rules: [{ endpoint: { url: "https://kendra.{Region}.{PartitionResult#dnsSuffix}", properties: k, headers: k }, type: d }] }] }] }, { error: "Invalid Configuration: Missing Region", type: c }] }] };
7
7
  exports.ruleSet = _data;