@aws-sdk/client-kendra 3.301.0 → 3.303.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +40 -0
- package/dist-cjs/Kendra.js +75 -0
- package/dist-cjs/commands/BatchDeleteFeaturedResultsSetCommand.js +45 -0
- package/dist-cjs/commands/CreateFeaturedResultsSetCommand.js +45 -0
- package/dist-cjs/commands/DescribeFeaturedResultsSetCommand.js +45 -0
- package/dist-cjs/commands/ListFeaturedResultsSetsCommand.js +45 -0
- package/dist-cjs/commands/UpdateFeaturedResultsSetCommand.js +45 -0
- package/dist-cjs/commands/index.js +5 -0
- package/dist-cjs/endpoint/ruleset.js +3 -3
- package/dist-cjs/models/models_0.js +381 -438
- package/dist-cjs/models/models_1.js +20 -0
- package/dist-cjs/protocols/Aws_json1_1.js +597 -4
- package/dist-es/Kendra.js +75 -0
- package/dist-es/commands/BatchDeleteFeaturedResultsSetCommand.js +41 -0
- package/dist-es/commands/CreateFeaturedResultsSetCommand.js +41 -0
- package/dist-es/commands/DescribeFeaturedResultsSetCommand.js +41 -0
- package/dist-es/commands/ListFeaturedResultsSetsCommand.js +41 -0
- package/dist-es/commands/UpdateFeaturedResultsSetCommand.js +41 -0
- package/dist-es/commands/index.js +5 -0
- package/dist-es/endpoint/ruleset.js +3 -3
- package/dist-es/models/models_0.js +377 -434
- package/dist-es/models/models_1.js +18 -1
- package/dist-es/protocols/Aws_json1_1.js +584 -1
- package/dist-types/Kendra.d.ts +163 -132
- package/dist-types/KendraClient.d.ts +7 -2
- package/dist-types/commands/AssociateEntitiesToExperienceCommand.d.ts +1 -1
- package/dist-types/commands/AssociatePersonasToEntitiesCommand.d.ts +1 -1
- package/dist-types/commands/BatchDeleteDocumentCommand.d.ts +6 -6
- package/dist-types/commands/BatchDeleteFeaturedResultsSetCommand.d.ts +88 -0
- package/dist-types/commands/BatchGetDocumentStatusCommand.d.ts +9 -13
- package/dist-types/commands/BatchPutDocumentCommand.d.ts +14 -13
- package/dist-types/commands/ClearQuerySuggestionsCommand.d.ts +1 -1
- package/dist-types/commands/CreateAccessControlConfigurationCommand.d.ts +17 -20
- package/dist-types/commands/CreateDataSourceCommand.d.ts +3 -4
- package/dist-types/commands/CreateExperienceCommand.d.ts +3 -2
- package/dist-types/commands/CreateFaqCommand.d.ts +6 -6
- package/dist-types/commands/CreateFeaturedResultsSetCommand.d.ts +117 -0
- package/dist-types/commands/CreateIndexCommand.d.ts +3 -2
- package/dist-types/commands/CreateQuerySuggestionsBlockListCommand.d.ts +3 -2
- package/dist-types/commands/CreateThesaurusCommand.d.ts +3 -2
- package/dist-types/commands/DeleteAccessControlConfigurationCommand.d.ts +5 -5
- package/dist-types/commands/DeleteDataSourceCommand.d.ts +1 -1
- package/dist-types/commands/DeleteExperienceCommand.d.ts +1 -1
- package/dist-types/commands/DeleteFaqCommand.d.ts +1 -1
- package/dist-types/commands/DeleteIndexCommand.d.ts +1 -1
- package/dist-types/commands/DeletePrincipalMappingCommand.d.ts +13 -15
- package/dist-types/commands/DeleteQuerySuggestionsBlockListCommand.d.ts +1 -1
- package/dist-types/commands/DeleteThesaurusCommand.d.ts +1 -1
- package/dist-types/commands/DescribeAccessControlConfigurationCommand.d.ts +3 -3
- package/dist-types/commands/DescribeDataSourceCommand.d.ts +1 -1
- package/dist-types/commands/DescribeExperienceCommand.d.ts +1 -1
- package/dist-types/commands/DescribeFaqCommand.d.ts +1 -1
- package/dist-types/commands/DescribeFeaturedResultsSetCommand.d.ts +86 -0
- package/dist-types/commands/DescribeIndexCommand.d.ts +1 -1
- package/dist-types/commands/DescribePrincipalMappingCommand.d.ts +8 -9
- package/dist-types/commands/DescribeQuerySuggestionsBlockListCommand.d.ts +1 -1
- package/dist-types/commands/DescribeQuerySuggestionsConfigCommand.d.ts +1 -1
- package/dist-types/commands/DescribeThesaurusCommand.d.ts +1 -1
- package/dist-types/commands/DisassociateEntitiesFromExperienceCommand.d.ts +1 -1
- package/dist-types/commands/DisassociatePersonasFromEntitiesCommand.d.ts +1 -1
- package/dist-types/commands/GetQuerySuggestionsCommand.d.ts +3 -2
- package/dist-types/commands/GetSnapshotsCommand.d.ts +3 -4
- package/dist-types/commands/ListAccessControlConfigurationsCommand.d.ts +5 -5
- package/dist-types/commands/ListDataSourceSyncJobsCommand.d.ts +1 -1
- package/dist-types/commands/ListDataSourcesCommand.d.ts +1 -1
- package/dist-types/commands/ListEntityPersonasCommand.d.ts +1 -1
- package/dist-types/commands/ListExperienceEntitiesCommand.d.ts +1 -1
- package/dist-types/commands/ListExperiencesCommand.d.ts +1 -1
- package/dist-types/commands/ListFaqsCommand.d.ts +1 -1
- package/dist-types/commands/ListFeaturedResultsSetsCommand.d.ts +87 -0
- package/dist-types/commands/ListGroupsOlderThanOrderingIdCommand.d.ts +4 -5
- package/dist-types/commands/ListIndicesCommand.d.ts +1 -1
- package/dist-types/commands/ListQuerySuggestionsBlockListsCommand.d.ts +1 -1
- package/dist-types/commands/ListTagsForResourceCommand.d.ts +3 -3
- package/dist-types/commands/ListThesauriCommand.d.ts +1 -1
- package/dist-types/commands/PutPrincipalMappingCommand.d.ts +15 -21
- package/dist-types/commands/QueryCommand.d.ts +3 -2
- package/dist-types/commands/StartDataSourceSyncJobCommand.d.ts +2 -2
- package/dist-types/commands/StopDataSourceSyncJobCommand.d.ts +2 -2
- package/dist-types/commands/SubmitFeedbackCommand.d.ts +2 -2
- package/dist-types/commands/TagResourceCommand.d.ts +4 -5
- package/dist-types/commands/UntagResourceCommand.d.ts +2 -2
- package/dist-types/commands/UpdateAccessControlConfigurationCommand.d.ts +20 -20
- package/dist-types/commands/UpdateDataSourceCommand.d.ts +2 -2
- package/dist-types/commands/UpdateExperienceCommand.d.ts +2 -2
- package/dist-types/commands/UpdateFeaturedResultsSetCommand.d.ts +105 -0
- package/dist-types/commands/UpdateIndexCommand.d.ts +4 -3
- package/dist-types/commands/UpdateQuerySuggestionsBlockListCommand.d.ts +2 -2
- package/dist-types/commands/UpdateQuerySuggestionsConfigCommand.d.ts +1 -1
- package/dist-types/commands/UpdateThesaurusCommand.d.ts +1 -1
- package/dist-types/commands/index.d.ts +5 -0
- package/dist-types/endpoint/EndpointParameters.d.ts +1 -1
- package/dist-types/models/models_0.d.ts +1943 -1687
- package/dist-types/models/models_1.d.ts +491 -72
- package/dist-types/protocols/Aws_json1_1.d.ts +15 -0
- package/dist-types/ts3.4/Kendra.d.ts +85 -0
- package/dist-types/ts3.4/KendraClient.d.ts +30 -0
- package/dist-types/ts3.4/commands/BatchDeleteFeaturedResultsSetCommand.d.ts +41 -0
- package/dist-types/ts3.4/commands/CreateFeaturedResultsSetCommand.d.ts +41 -0
- package/dist-types/ts3.4/commands/DescribeFeaturedResultsSetCommand.d.ts +41 -0
- package/dist-types/ts3.4/commands/ListFeaturedResultsSetsCommand.d.ts +41 -0
- package/dist-types/ts3.4/commands/StartDataSourceSyncJobCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/StopDataSourceSyncJobCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/SubmitFeedbackCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/TagResourceCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/UntagResourceCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/UpdateAccessControlConfigurationCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/UpdateDataSourceCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/UpdateExperienceCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/UpdateFeaturedResultsSetCommand.d.ts +41 -0
- package/dist-types/ts3.4/commands/UpdateIndexCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/UpdateQuerySuggestionsBlockListCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/index.d.ts +5 -0
- package/dist-types/ts3.4/endpoint/EndpointParameters.d.ts +1 -1
- package/dist-types/ts3.4/models/models_0.d.ts +563 -453
- package/dist-types/ts3.4/models/models_1.d.ts +127 -0
- package/dist-types/ts3.4/protocols/Aws_json1_1.d.ts +60 -0
- package/package.json +34 -34
package/dist-es/Kendra.js
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { AssociateEntitiesToExperienceCommand, } from "./commands/AssociateEntitiesToExperienceCommand";
|
|
2
2
|
import { AssociatePersonasToEntitiesCommand, } from "./commands/AssociatePersonasToEntitiesCommand";
|
|
3
3
|
import { BatchDeleteDocumentCommand, } from "./commands/BatchDeleteDocumentCommand";
|
|
4
|
+
import { BatchDeleteFeaturedResultsSetCommand, } from "./commands/BatchDeleteFeaturedResultsSetCommand";
|
|
4
5
|
import { BatchGetDocumentStatusCommand, } from "./commands/BatchGetDocumentStatusCommand";
|
|
5
6
|
import { BatchPutDocumentCommand, } from "./commands/BatchPutDocumentCommand";
|
|
6
7
|
import { ClearQuerySuggestionsCommand, } from "./commands/ClearQuerySuggestionsCommand";
|
|
@@ -8,6 +9,7 @@ import { CreateAccessControlConfigurationCommand, } from "./commands/CreateAcces
|
|
|
8
9
|
import { CreateDataSourceCommand, } from "./commands/CreateDataSourceCommand";
|
|
9
10
|
import { CreateExperienceCommand, } from "./commands/CreateExperienceCommand";
|
|
10
11
|
import { CreateFaqCommand } from "./commands/CreateFaqCommand";
|
|
12
|
+
import { CreateFeaturedResultsSetCommand, } from "./commands/CreateFeaturedResultsSetCommand";
|
|
11
13
|
import { CreateIndexCommand } from "./commands/CreateIndexCommand";
|
|
12
14
|
import { CreateQuerySuggestionsBlockListCommand, } from "./commands/CreateQuerySuggestionsBlockListCommand";
|
|
13
15
|
import { CreateThesaurusCommand, } from "./commands/CreateThesaurusCommand";
|
|
@@ -23,6 +25,7 @@ import { DescribeAccessControlConfigurationCommand, } from "./commands/DescribeA
|
|
|
23
25
|
import { DescribeDataSourceCommand, } from "./commands/DescribeDataSourceCommand";
|
|
24
26
|
import { DescribeExperienceCommand, } from "./commands/DescribeExperienceCommand";
|
|
25
27
|
import { DescribeFaqCommand } from "./commands/DescribeFaqCommand";
|
|
28
|
+
import { DescribeFeaturedResultsSetCommand, } from "./commands/DescribeFeaturedResultsSetCommand";
|
|
26
29
|
import { DescribeIndexCommand, } from "./commands/DescribeIndexCommand";
|
|
27
30
|
import { DescribePrincipalMappingCommand, } from "./commands/DescribePrincipalMappingCommand";
|
|
28
31
|
import { DescribeQuerySuggestionsBlockListCommand, } from "./commands/DescribeQuerySuggestionsBlockListCommand";
|
|
@@ -39,6 +42,7 @@ import { ListEntityPersonasCommand, } from "./commands/ListEntityPersonasCommand
|
|
|
39
42
|
import { ListExperienceEntitiesCommand, } from "./commands/ListExperienceEntitiesCommand";
|
|
40
43
|
import { ListExperiencesCommand, } from "./commands/ListExperiencesCommand";
|
|
41
44
|
import { ListFaqsCommand } from "./commands/ListFaqsCommand";
|
|
45
|
+
import { ListFeaturedResultsSetsCommand, } from "./commands/ListFeaturedResultsSetsCommand";
|
|
42
46
|
import { ListGroupsOlderThanOrderingIdCommand, } from "./commands/ListGroupsOlderThanOrderingIdCommand";
|
|
43
47
|
import { ListIndicesCommand } from "./commands/ListIndicesCommand";
|
|
44
48
|
import { ListQuerySuggestionsBlockListsCommand, } from "./commands/ListQuerySuggestionsBlockListsCommand";
|
|
@@ -54,6 +58,7 @@ import { UntagResourceCommand, } from "./commands/UntagResourceCommand";
|
|
|
54
58
|
import { UpdateAccessControlConfigurationCommand, } from "./commands/UpdateAccessControlConfigurationCommand";
|
|
55
59
|
import { UpdateDataSourceCommand, } from "./commands/UpdateDataSourceCommand";
|
|
56
60
|
import { UpdateExperienceCommand, } from "./commands/UpdateExperienceCommand";
|
|
61
|
+
import { UpdateFeaturedResultsSetCommand, } from "./commands/UpdateFeaturedResultsSetCommand";
|
|
57
62
|
import { UpdateIndexCommand } from "./commands/UpdateIndexCommand";
|
|
58
63
|
import { UpdateQuerySuggestionsBlockListCommand, } from "./commands/UpdateQuerySuggestionsBlockListCommand";
|
|
59
64
|
import { UpdateQuerySuggestionsConfigCommand, } from "./commands/UpdateQuerySuggestionsConfigCommand";
|
|
@@ -102,6 +107,20 @@ export class Kendra extends KendraClient {
|
|
|
102
107
|
return this.send(command, optionsOrCb);
|
|
103
108
|
}
|
|
104
109
|
}
|
|
110
|
+
batchDeleteFeaturedResultsSet(args, optionsOrCb, cb) {
|
|
111
|
+
const command = new BatchDeleteFeaturedResultsSetCommand(args);
|
|
112
|
+
if (typeof optionsOrCb === "function") {
|
|
113
|
+
this.send(command, optionsOrCb);
|
|
114
|
+
}
|
|
115
|
+
else if (typeof cb === "function") {
|
|
116
|
+
if (typeof optionsOrCb !== "object")
|
|
117
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
118
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
119
|
+
}
|
|
120
|
+
else {
|
|
121
|
+
return this.send(command, optionsOrCb);
|
|
122
|
+
}
|
|
123
|
+
}
|
|
105
124
|
batchGetDocumentStatus(args, optionsOrCb, cb) {
|
|
106
125
|
const command = new BatchGetDocumentStatusCommand(args);
|
|
107
126
|
if (typeof optionsOrCb === "function") {
|
|
@@ -200,6 +219,20 @@ export class Kendra extends KendraClient {
|
|
|
200
219
|
return this.send(command, optionsOrCb);
|
|
201
220
|
}
|
|
202
221
|
}
|
|
222
|
+
createFeaturedResultsSet(args, optionsOrCb, cb) {
|
|
223
|
+
const command = new CreateFeaturedResultsSetCommand(args);
|
|
224
|
+
if (typeof optionsOrCb === "function") {
|
|
225
|
+
this.send(command, optionsOrCb);
|
|
226
|
+
}
|
|
227
|
+
else if (typeof cb === "function") {
|
|
228
|
+
if (typeof optionsOrCb !== "object")
|
|
229
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
230
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
231
|
+
}
|
|
232
|
+
else {
|
|
233
|
+
return this.send(command, optionsOrCb);
|
|
234
|
+
}
|
|
235
|
+
}
|
|
203
236
|
createIndex(args, optionsOrCb, cb) {
|
|
204
237
|
const command = new CreateIndexCommand(args);
|
|
205
238
|
if (typeof optionsOrCb === "function") {
|
|
@@ -410,6 +443,20 @@ export class Kendra extends KendraClient {
|
|
|
410
443
|
return this.send(command, optionsOrCb);
|
|
411
444
|
}
|
|
412
445
|
}
|
|
446
|
+
describeFeaturedResultsSet(args, optionsOrCb, cb) {
|
|
447
|
+
const command = new DescribeFeaturedResultsSetCommand(args);
|
|
448
|
+
if (typeof optionsOrCb === "function") {
|
|
449
|
+
this.send(command, optionsOrCb);
|
|
450
|
+
}
|
|
451
|
+
else if (typeof cb === "function") {
|
|
452
|
+
if (typeof optionsOrCb !== "object")
|
|
453
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
454
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
455
|
+
}
|
|
456
|
+
else {
|
|
457
|
+
return this.send(command, optionsOrCb);
|
|
458
|
+
}
|
|
459
|
+
}
|
|
413
460
|
describeIndex(args, optionsOrCb, cb) {
|
|
414
461
|
const command = new DescribeIndexCommand(args);
|
|
415
462
|
if (typeof optionsOrCb === "function") {
|
|
@@ -634,6 +681,20 @@ export class Kendra extends KendraClient {
|
|
|
634
681
|
return this.send(command, optionsOrCb);
|
|
635
682
|
}
|
|
636
683
|
}
|
|
684
|
+
listFeaturedResultsSets(args, optionsOrCb, cb) {
|
|
685
|
+
const command = new ListFeaturedResultsSetsCommand(args);
|
|
686
|
+
if (typeof optionsOrCb === "function") {
|
|
687
|
+
this.send(command, optionsOrCb);
|
|
688
|
+
}
|
|
689
|
+
else if (typeof cb === "function") {
|
|
690
|
+
if (typeof optionsOrCb !== "object")
|
|
691
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
692
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
693
|
+
}
|
|
694
|
+
else {
|
|
695
|
+
return this.send(command, optionsOrCb);
|
|
696
|
+
}
|
|
697
|
+
}
|
|
637
698
|
listGroupsOlderThanOrderingId(args, optionsOrCb, cb) {
|
|
638
699
|
const command = new ListGroupsOlderThanOrderingIdCommand(args);
|
|
639
700
|
if (typeof optionsOrCb === "function") {
|
|
@@ -844,6 +905,20 @@ export class Kendra extends KendraClient {
|
|
|
844
905
|
return this.send(command, optionsOrCb);
|
|
845
906
|
}
|
|
846
907
|
}
|
|
908
|
+
updateFeaturedResultsSet(args, optionsOrCb, cb) {
|
|
909
|
+
const command = new UpdateFeaturedResultsSetCommand(args);
|
|
910
|
+
if (typeof optionsOrCb === "function") {
|
|
911
|
+
this.send(command, optionsOrCb);
|
|
912
|
+
}
|
|
913
|
+
else if (typeof cb === "function") {
|
|
914
|
+
if (typeof optionsOrCb !== "object")
|
|
915
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
916
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
917
|
+
}
|
|
918
|
+
else {
|
|
919
|
+
return this.send(command, optionsOrCb);
|
|
920
|
+
}
|
|
921
|
+
}
|
|
847
922
|
updateIndex(args, optionsOrCb, cb) {
|
|
848
923
|
const command = new UpdateIndexCommand(args);
|
|
849
924
|
if (typeof optionsOrCb === "function") {
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import { getEndpointPlugin } from "@aws-sdk/middleware-endpoint";
|
|
2
|
+
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
3
|
+
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
4
|
+
import { deserializeAws_json1_1BatchDeleteFeaturedResultsSetCommand, serializeAws_json1_1BatchDeleteFeaturedResultsSetCommand, } from "../protocols/Aws_json1_1";
|
|
5
|
+
export class BatchDeleteFeaturedResultsSetCommand extends $Command {
|
|
6
|
+
static getEndpointParameterInstructions() {
|
|
7
|
+
return {
|
|
8
|
+
UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
|
|
9
|
+
Endpoint: { type: "builtInParams", name: "endpoint" },
|
|
10
|
+
Region: { type: "builtInParams", name: "region" },
|
|
11
|
+
UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
|
|
12
|
+
};
|
|
13
|
+
}
|
|
14
|
+
constructor(input) {
|
|
15
|
+
super();
|
|
16
|
+
this.input = input;
|
|
17
|
+
}
|
|
18
|
+
resolveMiddleware(clientStack, configuration, options) {
|
|
19
|
+
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
20
|
+
this.middlewareStack.use(getEndpointPlugin(configuration, BatchDeleteFeaturedResultsSetCommand.getEndpointParameterInstructions()));
|
|
21
|
+
const stack = clientStack.concat(this.middlewareStack);
|
|
22
|
+
const { logger } = configuration;
|
|
23
|
+
const clientName = "KendraClient";
|
|
24
|
+
const commandName = "BatchDeleteFeaturedResultsSetCommand";
|
|
25
|
+
const handlerExecutionContext = {
|
|
26
|
+
logger,
|
|
27
|
+
clientName,
|
|
28
|
+
commandName,
|
|
29
|
+
inputFilterSensitiveLog: (_) => _,
|
|
30
|
+
outputFilterSensitiveLog: (_) => _,
|
|
31
|
+
};
|
|
32
|
+
const { requestHandler } = configuration;
|
|
33
|
+
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
34
|
+
}
|
|
35
|
+
serialize(input, context) {
|
|
36
|
+
return serializeAws_json1_1BatchDeleteFeaturedResultsSetCommand(input, context);
|
|
37
|
+
}
|
|
38
|
+
deserialize(output, context) {
|
|
39
|
+
return deserializeAws_json1_1BatchDeleteFeaturedResultsSetCommand(output, context);
|
|
40
|
+
}
|
|
41
|
+
}
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import { getEndpointPlugin } from "@aws-sdk/middleware-endpoint";
|
|
2
|
+
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
3
|
+
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
4
|
+
import { deserializeAws_json1_1CreateFeaturedResultsSetCommand, serializeAws_json1_1CreateFeaturedResultsSetCommand, } from "../protocols/Aws_json1_1";
|
|
5
|
+
export class CreateFeaturedResultsSetCommand extends $Command {
|
|
6
|
+
static getEndpointParameterInstructions() {
|
|
7
|
+
return {
|
|
8
|
+
UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
|
|
9
|
+
Endpoint: { type: "builtInParams", name: "endpoint" },
|
|
10
|
+
Region: { type: "builtInParams", name: "region" },
|
|
11
|
+
UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
|
|
12
|
+
};
|
|
13
|
+
}
|
|
14
|
+
constructor(input) {
|
|
15
|
+
super();
|
|
16
|
+
this.input = input;
|
|
17
|
+
}
|
|
18
|
+
resolveMiddleware(clientStack, configuration, options) {
|
|
19
|
+
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
20
|
+
this.middlewareStack.use(getEndpointPlugin(configuration, CreateFeaturedResultsSetCommand.getEndpointParameterInstructions()));
|
|
21
|
+
const stack = clientStack.concat(this.middlewareStack);
|
|
22
|
+
const { logger } = configuration;
|
|
23
|
+
const clientName = "KendraClient";
|
|
24
|
+
const commandName = "CreateFeaturedResultsSetCommand";
|
|
25
|
+
const handlerExecutionContext = {
|
|
26
|
+
logger,
|
|
27
|
+
clientName,
|
|
28
|
+
commandName,
|
|
29
|
+
inputFilterSensitiveLog: (_) => _,
|
|
30
|
+
outputFilterSensitiveLog: (_) => _,
|
|
31
|
+
};
|
|
32
|
+
const { requestHandler } = configuration;
|
|
33
|
+
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
34
|
+
}
|
|
35
|
+
serialize(input, context) {
|
|
36
|
+
return serializeAws_json1_1CreateFeaturedResultsSetCommand(input, context);
|
|
37
|
+
}
|
|
38
|
+
deserialize(output, context) {
|
|
39
|
+
return deserializeAws_json1_1CreateFeaturedResultsSetCommand(output, context);
|
|
40
|
+
}
|
|
41
|
+
}
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import { getEndpointPlugin } from "@aws-sdk/middleware-endpoint";
|
|
2
|
+
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
3
|
+
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
4
|
+
import { deserializeAws_json1_1DescribeFeaturedResultsSetCommand, serializeAws_json1_1DescribeFeaturedResultsSetCommand, } from "../protocols/Aws_json1_1";
|
|
5
|
+
export class DescribeFeaturedResultsSetCommand extends $Command {
|
|
6
|
+
static getEndpointParameterInstructions() {
|
|
7
|
+
return {
|
|
8
|
+
UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
|
|
9
|
+
Endpoint: { type: "builtInParams", name: "endpoint" },
|
|
10
|
+
Region: { type: "builtInParams", name: "region" },
|
|
11
|
+
UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
|
|
12
|
+
};
|
|
13
|
+
}
|
|
14
|
+
constructor(input) {
|
|
15
|
+
super();
|
|
16
|
+
this.input = input;
|
|
17
|
+
}
|
|
18
|
+
resolveMiddleware(clientStack, configuration, options) {
|
|
19
|
+
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
20
|
+
this.middlewareStack.use(getEndpointPlugin(configuration, DescribeFeaturedResultsSetCommand.getEndpointParameterInstructions()));
|
|
21
|
+
const stack = clientStack.concat(this.middlewareStack);
|
|
22
|
+
const { logger } = configuration;
|
|
23
|
+
const clientName = "KendraClient";
|
|
24
|
+
const commandName = "DescribeFeaturedResultsSetCommand";
|
|
25
|
+
const handlerExecutionContext = {
|
|
26
|
+
logger,
|
|
27
|
+
clientName,
|
|
28
|
+
commandName,
|
|
29
|
+
inputFilterSensitiveLog: (_) => _,
|
|
30
|
+
outputFilterSensitiveLog: (_) => _,
|
|
31
|
+
};
|
|
32
|
+
const { requestHandler } = configuration;
|
|
33
|
+
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
34
|
+
}
|
|
35
|
+
serialize(input, context) {
|
|
36
|
+
return serializeAws_json1_1DescribeFeaturedResultsSetCommand(input, context);
|
|
37
|
+
}
|
|
38
|
+
deserialize(output, context) {
|
|
39
|
+
return deserializeAws_json1_1DescribeFeaturedResultsSetCommand(output, context);
|
|
40
|
+
}
|
|
41
|
+
}
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import { getEndpointPlugin } from "@aws-sdk/middleware-endpoint";
|
|
2
|
+
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
3
|
+
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
4
|
+
import { deserializeAws_json1_1ListFeaturedResultsSetsCommand, serializeAws_json1_1ListFeaturedResultsSetsCommand, } from "../protocols/Aws_json1_1";
|
|
5
|
+
export class ListFeaturedResultsSetsCommand extends $Command {
|
|
6
|
+
static getEndpointParameterInstructions() {
|
|
7
|
+
return {
|
|
8
|
+
UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
|
|
9
|
+
Endpoint: { type: "builtInParams", name: "endpoint" },
|
|
10
|
+
Region: { type: "builtInParams", name: "region" },
|
|
11
|
+
UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
|
|
12
|
+
};
|
|
13
|
+
}
|
|
14
|
+
constructor(input) {
|
|
15
|
+
super();
|
|
16
|
+
this.input = input;
|
|
17
|
+
}
|
|
18
|
+
resolveMiddleware(clientStack, configuration, options) {
|
|
19
|
+
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
20
|
+
this.middlewareStack.use(getEndpointPlugin(configuration, ListFeaturedResultsSetsCommand.getEndpointParameterInstructions()));
|
|
21
|
+
const stack = clientStack.concat(this.middlewareStack);
|
|
22
|
+
const { logger } = configuration;
|
|
23
|
+
const clientName = "KendraClient";
|
|
24
|
+
const commandName = "ListFeaturedResultsSetsCommand";
|
|
25
|
+
const handlerExecutionContext = {
|
|
26
|
+
logger,
|
|
27
|
+
clientName,
|
|
28
|
+
commandName,
|
|
29
|
+
inputFilterSensitiveLog: (_) => _,
|
|
30
|
+
outputFilterSensitiveLog: (_) => _,
|
|
31
|
+
};
|
|
32
|
+
const { requestHandler } = configuration;
|
|
33
|
+
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
34
|
+
}
|
|
35
|
+
serialize(input, context) {
|
|
36
|
+
return serializeAws_json1_1ListFeaturedResultsSetsCommand(input, context);
|
|
37
|
+
}
|
|
38
|
+
deserialize(output, context) {
|
|
39
|
+
return deserializeAws_json1_1ListFeaturedResultsSetsCommand(output, context);
|
|
40
|
+
}
|
|
41
|
+
}
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import { getEndpointPlugin } from "@aws-sdk/middleware-endpoint";
|
|
2
|
+
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
3
|
+
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
4
|
+
import { deserializeAws_json1_1UpdateFeaturedResultsSetCommand, serializeAws_json1_1UpdateFeaturedResultsSetCommand, } from "../protocols/Aws_json1_1";
|
|
5
|
+
export class UpdateFeaturedResultsSetCommand extends $Command {
|
|
6
|
+
static getEndpointParameterInstructions() {
|
|
7
|
+
return {
|
|
8
|
+
UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
|
|
9
|
+
Endpoint: { type: "builtInParams", name: "endpoint" },
|
|
10
|
+
Region: { type: "builtInParams", name: "region" },
|
|
11
|
+
UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
|
|
12
|
+
};
|
|
13
|
+
}
|
|
14
|
+
constructor(input) {
|
|
15
|
+
super();
|
|
16
|
+
this.input = input;
|
|
17
|
+
}
|
|
18
|
+
resolveMiddleware(clientStack, configuration, options) {
|
|
19
|
+
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
20
|
+
this.middlewareStack.use(getEndpointPlugin(configuration, UpdateFeaturedResultsSetCommand.getEndpointParameterInstructions()));
|
|
21
|
+
const stack = clientStack.concat(this.middlewareStack);
|
|
22
|
+
const { logger } = configuration;
|
|
23
|
+
const clientName = "KendraClient";
|
|
24
|
+
const commandName = "UpdateFeaturedResultsSetCommand";
|
|
25
|
+
const handlerExecutionContext = {
|
|
26
|
+
logger,
|
|
27
|
+
clientName,
|
|
28
|
+
commandName,
|
|
29
|
+
inputFilterSensitiveLog: (_) => _,
|
|
30
|
+
outputFilterSensitiveLog: (_) => _,
|
|
31
|
+
};
|
|
32
|
+
const { requestHandler } = configuration;
|
|
33
|
+
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
34
|
+
}
|
|
35
|
+
serialize(input, context) {
|
|
36
|
+
return serializeAws_json1_1UpdateFeaturedResultsSetCommand(input, context);
|
|
37
|
+
}
|
|
38
|
+
deserialize(output, context) {
|
|
39
|
+
return deserializeAws_json1_1UpdateFeaturedResultsSetCommand(output, context);
|
|
40
|
+
}
|
|
41
|
+
}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
export * from "./AssociateEntitiesToExperienceCommand";
|
|
2
2
|
export * from "./AssociatePersonasToEntitiesCommand";
|
|
3
3
|
export * from "./BatchDeleteDocumentCommand";
|
|
4
|
+
export * from "./BatchDeleteFeaturedResultsSetCommand";
|
|
4
5
|
export * from "./BatchGetDocumentStatusCommand";
|
|
5
6
|
export * from "./BatchPutDocumentCommand";
|
|
6
7
|
export * from "./ClearQuerySuggestionsCommand";
|
|
@@ -8,6 +9,7 @@ export * from "./CreateAccessControlConfigurationCommand";
|
|
|
8
9
|
export * from "./CreateDataSourceCommand";
|
|
9
10
|
export * from "./CreateExperienceCommand";
|
|
10
11
|
export * from "./CreateFaqCommand";
|
|
12
|
+
export * from "./CreateFeaturedResultsSetCommand";
|
|
11
13
|
export * from "./CreateIndexCommand";
|
|
12
14
|
export * from "./CreateQuerySuggestionsBlockListCommand";
|
|
13
15
|
export * from "./CreateThesaurusCommand";
|
|
@@ -23,6 +25,7 @@ export * from "./DescribeAccessControlConfigurationCommand";
|
|
|
23
25
|
export * from "./DescribeDataSourceCommand";
|
|
24
26
|
export * from "./DescribeExperienceCommand";
|
|
25
27
|
export * from "./DescribeFaqCommand";
|
|
28
|
+
export * from "./DescribeFeaturedResultsSetCommand";
|
|
26
29
|
export * from "./DescribeIndexCommand";
|
|
27
30
|
export * from "./DescribePrincipalMappingCommand";
|
|
28
31
|
export * from "./DescribeQuerySuggestionsBlockListCommand";
|
|
@@ -39,6 +42,7 @@ export * from "./ListEntityPersonasCommand";
|
|
|
39
42
|
export * from "./ListExperienceEntitiesCommand";
|
|
40
43
|
export * from "./ListExperiencesCommand";
|
|
41
44
|
export * from "./ListFaqsCommand";
|
|
45
|
+
export * from "./ListFeaturedResultsSetsCommand";
|
|
42
46
|
export * from "./ListGroupsOlderThanOrderingIdCommand";
|
|
43
47
|
export * from "./ListIndicesCommand";
|
|
44
48
|
export * from "./ListQuerySuggestionsBlockListsCommand";
|
|
@@ -54,6 +58,7 @@ export * from "./UntagResourceCommand";
|
|
|
54
58
|
export * from "./UpdateAccessControlConfigurationCommand";
|
|
55
59
|
export * from "./UpdateDataSourceCommand";
|
|
56
60
|
export * from "./UpdateExperienceCommand";
|
|
61
|
+
export * from "./UpdateFeaturedResultsSetCommand";
|
|
57
62
|
export * from "./UpdateIndexCommand";
|
|
58
63
|
export * from "./UpdateQuerySuggestionsBlockListCommand";
|
|
59
64
|
export * from "./UpdateQuerySuggestionsConfigCommand";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
const q = "
|
|
2
|
-
const a =
|
|
3
|
-
const _data = { version: "1.0", parameters: { Region:
|
|
1
|
+
const q = "required", r = "fn", s = "argv", t = "ref";
|
|
2
|
+
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" }];
|
|
3
|
+
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 }] }] };
|
|
4
4
|
export const ruleSet = _data;
|