@aws-sdk/client-kendra 3.40.0 → 3.44.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/CHANGELOG.md +41 -0
- package/README.md +7 -7
- package/dist-cjs/Kendra.js +180 -0
- package/dist-cjs/commands/AssociateEntitiesToExperienceCommand.js +36 -0
- package/dist-cjs/commands/AssociatePersonasToEntitiesCommand.js +36 -0
- package/dist-cjs/commands/CreateExperienceCommand.js +36 -0
- package/dist-cjs/commands/DeleteExperienceCommand.js +36 -0
- package/dist-cjs/commands/DescribeExperienceCommand.js +36 -0
- package/dist-cjs/commands/DisassociateEntitiesFromExperienceCommand.js +36 -0
- package/dist-cjs/commands/DisassociatePersonasFromEntitiesCommand.js +36 -0
- package/dist-cjs/commands/GetSnapshotsCommand.js +36 -0
- package/dist-cjs/commands/ListEntityPersonasCommand.js +36 -0
- package/dist-cjs/commands/ListExperienceEntitiesCommand.js +36 -0
- package/dist-cjs/commands/ListExperiencesCommand.js +36 -0
- package/dist-cjs/commands/UpdateExperienceCommand.js +36 -0
- package/dist-cjs/commands/index.js +12 -0
- package/dist-cjs/endpoints.js +8 -0
- package/dist-cjs/models/models_0.js +345 -89
- package/dist-cjs/pagination/ListEntityPersonasPaginator.js +35 -0
- package/dist-cjs/pagination/ListExperienceEntitiesPaginator.js +34 -0
- package/dist-cjs/pagination/ListExperiencesPaginator.js +35 -0
- package/dist-cjs/pagination/index.js +3 -0
- package/dist-cjs/protocols/Aws_json1_1.js +2055 -280
- package/dist-es/Kendra.js +180 -0
- package/dist-es/commands/AssociateEntitiesToExperienceCommand.js +39 -0
- package/dist-es/commands/AssociatePersonasToEntitiesCommand.js +39 -0
- package/dist-es/commands/CreateExperienceCommand.js +39 -0
- package/dist-es/commands/DeleteExperienceCommand.js +39 -0
- package/dist-es/commands/DescribeExperienceCommand.js +39 -0
- package/dist-es/commands/DisassociateEntitiesFromExperienceCommand.js +39 -0
- package/dist-es/commands/DisassociatePersonasFromEntitiesCommand.js +39 -0
- package/dist-es/commands/GetSnapshotsCommand.js +39 -0
- package/dist-es/commands/ListEntityPersonasCommand.js +39 -0
- package/dist-es/commands/ListExperienceEntitiesCommand.js +39 -0
- package/dist-es/commands/ListExperiencesCommand.js +39 -0
- package/dist-es/commands/UpdateExperienceCommand.js +39 -0
- package/dist-es/commands/index.js +12 -0
- package/dist-es/endpoints.js +8 -0
- package/dist-es/models/models_0.js +248 -68
- package/dist-es/pagination/ListEntityPersonasPaginator.js +74 -0
- package/dist-es/pagination/ListExperienceEntitiesPaginator.js +73 -0
- package/dist-es/pagination/ListExperiencesPaginator.js +74 -0
- package/dist-es/pagination/index.js +3 -0
- package/dist-es/protocols/Aws_json1_1.js +2067 -271
- package/dist-types/Kendra.d.ts +164 -1
- package/dist-types/KendraClient.d.ts +14 -2
- package/dist-types/commands/AssociateEntitiesToExperienceCommand.d.ts +39 -0
- package/dist-types/commands/AssociatePersonasToEntitiesCommand.d.ts +39 -0
- package/dist-types/commands/BatchDeleteDocumentCommand.d.ts +1 -1
- package/dist-types/commands/BatchGetDocumentStatusCommand.d.ts +1 -1
- package/dist-types/commands/BatchPutDocumentCommand.d.ts +1 -1
- package/dist-types/commands/ClearQuerySuggestionsCommand.d.ts +4 -1
- package/dist-types/commands/CreateDataSourceCommand.d.ts +3 -1
- package/dist-types/commands/CreateExperienceCommand.d.ts +37 -0
- package/dist-types/commands/CreateFaqCommand.d.ts +1 -1
- package/dist-types/commands/CreateIndexCommand.d.ts +1 -1
- package/dist-types/commands/CreateQuerySuggestionsBlockListCommand.d.ts +4 -1
- package/dist-types/commands/CreateThesaurusCommand.d.ts +1 -1
- package/dist-types/commands/DeleteDataSourceCommand.d.ts +1 -1
- package/dist-types/commands/DeleteExperienceCommand.d.ts +37 -0
- 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 +4 -1
- package/dist-types/commands/DeleteQuerySuggestionsBlockListCommand.d.ts +4 -1
- package/dist-types/commands/DeleteThesaurusCommand.d.ts +1 -1
- package/dist-types/commands/DescribeDataSourceCommand.d.ts +1 -1
- package/dist-types/commands/DescribeExperienceCommand.d.ts +38 -0
- package/dist-types/commands/DescribeFaqCommand.d.ts +1 -1
- package/dist-types/commands/DescribeIndexCommand.d.ts +1 -1
- package/dist-types/commands/DescribePrincipalMappingCommand.d.ts +4 -1
- package/dist-types/commands/DescribeQuerySuggestionsBlockListCommand.d.ts +4 -1
- package/dist-types/commands/DescribeQuerySuggestionsConfigCommand.d.ts +4 -1
- package/dist-types/commands/DescribeThesaurusCommand.d.ts +1 -1
- package/dist-types/commands/DisassociateEntitiesFromExperienceCommand.d.ts +39 -0
- package/dist-types/commands/DisassociatePersonasFromEntitiesCommand.d.ts +39 -0
- package/dist-types/commands/GetQuerySuggestionsCommand.d.ts +4 -1
- package/dist-types/commands/GetSnapshotsCommand.d.ts +37 -0
- 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 +36 -0
- package/dist-types/commands/ListExperienceEntitiesCommand.d.ts +39 -0
- package/dist-types/commands/ListExperiencesCommand.d.ts +38 -0
- package/dist-types/commands/ListFaqsCommand.d.ts +1 -1
- package/dist-types/commands/ListGroupsOlderThanOrderingIdCommand.d.ts +4 -1
- package/dist-types/commands/ListIndicesCommand.d.ts +1 -1
- package/dist-types/commands/ListQuerySuggestionsBlockListsCommand.d.ts +4 -1
- package/dist-types/commands/ListTagsForResourceCommand.d.ts +1 -1
- package/dist-types/commands/ListThesauriCommand.d.ts +1 -1
- package/dist-types/commands/PutPrincipalMappingCommand.d.ts +4 -1
- package/dist-types/commands/QueryCommand.d.ts +1 -1
- package/dist-types/commands/StartDataSourceSyncJobCommand.d.ts +1 -1
- package/dist-types/commands/StopDataSourceSyncJobCommand.d.ts +1 -1
- package/dist-types/commands/SubmitFeedbackCommand.d.ts +5 -2
- package/dist-types/commands/TagResourceCommand.d.ts +1 -1
- package/dist-types/commands/UntagResourceCommand.d.ts +1 -1
- package/dist-types/commands/UpdateDataSourceCommand.d.ts +1 -1
- package/dist-types/commands/UpdateExperienceCommand.d.ts +37 -0
- package/dist-types/commands/UpdateIndexCommand.d.ts +1 -1
- package/dist-types/commands/UpdateQuerySuggestionsBlockListCommand.d.ts +4 -1
- package/dist-types/commands/UpdateQuerySuggestionsConfigCommand.d.ts +4 -1
- package/dist-types/commands/UpdateThesaurusCommand.d.ts +1 -1
- package/dist-types/commands/index.d.ts +12 -0
- package/dist-types/models/models_0.d.ts +1323 -225
- package/dist-types/pagination/ListEntityPersonasPaginator.d.ts +4 -0
- package/dist-types/pagination/ListExperienceEntitiesPaginator.d.ts +4 -0
- package/dist-types/pagination/ListExperiencesPaginator.d.ts +4 -0
- package/dist-types/pagination/index.d.ts +3 -0
- package/dist-types/protocols/Aws_json1_1.d.ts +36 -0
- package/dist-types/ts3.4/Kendra.d.ts +60 -0
- package/dist-types/ts3.4/KendraClient.d.ts +14 -2
- package/dist-types/ts3.4/commands/AssociateEntitiesToExperienceCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/AssociatePersonasToEntitiesCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/CreateExperienceCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/DeleteExperienceCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/DescribeExperienceCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/DisassociateEntitiesFromExperienceCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/DisassociatePersonasFromEntitiesCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/GetSnapshotsCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/ListEntityPersonasCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/ListExperienceEntitiesCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/ListExperiencesCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/UpdateExperienceCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/index.d.ts +12 -0
- package/dist-types/ts3.4/models/models_0.d.ts +613 -108
- package/dist-types/ts3.4/pagination/ListEntityPersonasPaginator.d.ts +4 -0
- package/dist-types/ts3.4/pagination/ListExperienceEntitiesPaginator.d.ts +4 -0
- package/dist-types/ts3.4/pagination/ListExperiencesPaginator.d.ts +4 -0
- package/dist-types/ts3.4/pagination/index.d.ts +3 -0
- package/dist-types/ts3.4/protocols/Aws_json1_1.d.ts +36 -0
- package/package.json +4 -4
package/dist-es/Kendra.js
CHANGED
|
@@ -1,29 +1,40 @@
|
|
|
1
1
|
import { __extends } from "tslib";
|
|
2
|
+
import { AssociateEntitiesToExperienceCommand, } from "./commands/AssociateEntitiesToExperienceCommand";
|
|
3
|
+
import { AssociatePersonasToEntitiesCommand, } from "./commands/AssociatePersonasToEntitiesCommand";
|
|
2
4
|
import { BatchDeleteDocumentCommand, } from "./commands/BatchDeleteDocumentCommand";
|
|
3
5
|
import { BatchGetDocumentStatusCommand, } from "./commands/BatchGetDocumentStatusCommand";
|
|
4
6
|
import { BatchPutDocumentCommand, } from "./commands/BatchPutDocumentCommand";
|
|
5
7
|
import { ClearQuerySuggestionsCommand, } from "./commands/ClearQuerySuggestionsCommand";
|
|
6
8
|
import { CreateDataSourceCommand, } from "./commands/CreateDataSourceCommand";
|
|
9
|
+
import { CreateExperienceCommand, } from "./commands/CreateExperienceCommand";
|
|
7
10
|
import { CreateFaqCommand } from "./commands/CreateFaqCommand";
|
|
8
11
|
import { CreateIndexCommand } from "./commands/CreateIndexCommand";
|
|
9
12
|
import { CreateQuerySuggestionsBlockListCommand, } from "./commands/CreateQuerySuggestionsBlockListCommand";
|
|
10
13
|
import { CreateThesaurusCommand, } from "./commands/CreateThesaurusCommand";
|
|
11
14
|
import { DeleteDataSourceCommand, } from "./commands/DeleteDataSourceCommand";
|
|
15
|
+
import { DeleteExperienceCommand, } from "./commands/DeleteExperienceCommand";
|
|
12
16
|
import { DeleteFaqCommand } from "./commands/DeleteFaqCommand";
|
|
13
17
|
import { DeleteIndexCommand } from "./commands/DeleteIndexCommand";
|
|
14
18
|
import { DeletePrincipalMappingCommand, } from "./commands/DeletePrincipalMappingCommand";
|
|
15
19
|
import { DeleteQuerySuggestionsBlockListCommand, } from "./commands/DeleteQuerySuggestionsBlockListCommand";
|
|
16
20
|
import { DeleteThesaurusCommand, } from "./commands/DeleteThesaurusCommand";
|
|
17
21
|
import { DescribeDataSourceCommand, } from "./commands/DescribeDataSourceCommand";
|
|
22
|
+
import { DescribeExperienceCommand, } from "./commands/DescribeExperienceCommand";
|
|
18
23
|
import { DescribeFaqCommand } from "./commands/DescribeFaqCommand";
|
|
19
24
|
import { DescribeIndexCommand, } from "./commands/DescribeIndexCommand";
|
|
20
25
|
import { DescribePrincipalMappingCommand, } from "./commands/DescribePrincipalMappingCommand";
|
|
21
26
|
import { DescribeQuerySuggestionsBlockListCommand, } from "./commands/DescribeQuerySuggestionsBlockListCommand";
|
|
22
27
|
import { DescribeQuerySuggestionsConfigCommand, } from "./commands/DescribeQuerySuggestionsConfigCommand";
|
|
23
28
|
import { DescribeThesaurusCommand, } from "./commands/DescribeThesaurusCommand";
|
|
29
|
+
import { DisassociateEntitiesFromExperienceCommand, } from "./commands/DisassociateEntitiesFromExperienceCommand";
|
|
30
|
+
import { DisassociatePersonasFromEntitiesCommand, } from "./commands/DisassociatePersonasFromEntitiesCommand";
|
|
24
31
|
import { GetQuerySuggestionsCommand, } from "./commands/GetQuerySuggestionsCommand";
|
|
32
|
+
import { GetSnapshotsCommand, } from "./commands/GetSnapshotsCommand";
|
|
25
33
|
import { ListDataSourcesCommand, } from "./commands/ListDataSourcesCommand";
|
|
26
34
|
import { ListDataSourceSyncJobsCommand, } from "./commands/ListDataSourceSyncJobsCommand";
|
|
35
|
+
import { ListEntityPersonasCommand, } from "./commands/ListEntityPersonasCommand";
|
|
36
|
+
import { ListExperienceEntitiesCommand, } from "./commands/ListExperienceEntitiesCommand";
|
|
37
|
+
import { ListExperiencesCommand, } from "./commands/ListExperiencesCommand";
|
|
27
38
|
import { ListFaqsCommand } from "./commands/ListFaqsCommand";
|
|
28
39
|
import { ListGroupsOlderThanOrderingIdCommand, } from "./commands/ListGroupsOlderThanOrderingIdCommand";
|
|
29
40
|
import { ListIndicesCommand } from "./commands/ListIndicesCommand";
|
|
@@ -38,6 +49,7 @@ import { SubmitFeedbackCommand, } from "./commands/SubmitFeedbackCommand";
|
|
|
38
49
|
import { TagResourceCommand } from "./commands/TagResourceCommand";
|
|
39
50
|
import { UntagResourceCommand, } from "./commands/UntagResourceCommand";
|
|
40
51
|
import { UpdateDataSourceCommand, } from "./commands/UpdateDataSourceCommand";
|
|
52
|
+
import { UpdateExperienceCommand, } from "./commands/UpdateExperienceCommand";
|
|
41
53
|
import { UpdateIndexCommand } from "./commands/UpdateIndexCommand";
|
|
42
54
|
import { UpdateQuerySuggestionsBlockListCommand, } from "./commands/UpdateQuerySuggestionsBlockListCommand";
|
|
43
55
|
import { UpdateQuerySuggestionsConfigCommand, } from "./commands/UpdateQuerySuggestionsConfigCommand";
|
|
@@ -48,6 +60,34 @@ var Kendra = (function (_super) {
|
|
|
48
60
|
function Kendra() {
|
|
49
61
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
50
62
|
}
|
|
63
|
+
Kendra.prototype.associateEntitiesToExperience = function (args, optionsOrCb, cb) {
|
|
64
|
+
var command = new AssociateEntitiesToExperienceCommand(args);
|
|
65
|
+
if (typeof optionsOrCb === "function") {
|
|
66
|
+
this.send(command, optionsOrCb);
|
|
67
|
+
}
|
|
68
|
+
else if (typeof cb === "function") {
|
|
69
|
+
if (typeof optionsOrCb !== "object")
|
|
70
|
+
throw new Error("Expect http options but get " + typeof optionsOrCb);
|
|
71
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
72
|
+
}
|
|
73
|
+
else {
|
|
74
|
+
return this.send(command, optionsOrCb);
|
|
75
|
+
}
|
|
76
|
+
};
|
|
77
|
+
Kendra.prototype.associatePersonasToEntities = function (args, optionsOrCb, cb) {
|
|
78
|
+
var command = new AssociatePersonasToEntitiesCommand(args);
|
|
79
|
+
if (typeof optionsOrCb === "function") {
|
|
80
|
+
this.send(command, optionsOrCb);
|
|
81
|
+
}
|
|
82
|
+
else if (typeof cb === "function") {
|
|
83
|
+
if (typeof optionsOrCb !== "object")
|
|
84
|
+
throw new Error("Expect http options but get " + typeof optionsOrCb);
|
|
85
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
86
|
+
}
|
|
87
|
+
else {
|
|
88
|
+
return this.send(command, optionsOrCb);
|
|
89
|
+
}
|
|
90
|
+
};
|
|
51
91
|
Kendra.prototype.batchDeleteDocument = function (args, optionsOrCb, cb) {
|
|
52
92
|
var command = new BatchDeleteDocumentCommand(args);
|
|
53
93
|
if (typeof optionsOrCb === "function") {
|
|
@@ -118,6 +158,20 @@ var Kendra = (function (_super) {
|
|
|
118
158
|
return this.send(command, optionsOrCb);
|
|
119
159
|
}
|
|
120
160
|
};
|
|
161
|
+
Kendra.prototype.createExperience = function (args, optionsOrCb, cb) {
|
|
162
|
+
var command = new CreateExperienceCommand(args);
|
|
163
|
+
if (typeof optionsOrCb === "function") {
|
|
164
|
+
this.send(command, optionsOrCb);
|
|
165
|
+
}
|
|
166
|
+
else if (typeof cb === "function") {
|
|
167
|
+
if (typeof optionsOrCb !== "object")
|
|
168
|
+
throw new Error("Expect http options but get " + typeof optionsOrCb);
|
|
169
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
170
|
+
}
|
|
171
|
+
else {
|
|
172
|
+
return this.send(command, optionsOrCb);
|
|
173
|
+
}
|
|
174
|
+
};
|
|
121
175
|
Kendra.prototype.createFaq = function (args, optionsOrCb, cb) {
|
|
122
176
|
var command = new CreateFaqCommand(args);
|
|
123
177
|
if (typeof optionsOrCb === "function") {
|
|
@@ -188,6 +242,20 @@ var Kendra = (function (_super) {
|
|
|
188
242
|
return this.send(command, optionsOrCb);
|
|
189
243
|
}
|
|
190
244
|
};
|
|
245
|
+
Kendra.prototype.deleteExperience = function (args, optionsOrCb, cb) {
|
|
246
|
+
var command = new DeleteExperienceCommand(args);
|
|
247
|
+
if (typeof optionsOrCb === "function") {
|
|
248
|
+
this.send(command, optionsOrCb);
|
|
249
|
+
}
|
|
250
|
+
else if (typeof cb === "function") {
|
|
251
|
+
if (typeof optionsOrCb !== "object")
|
|
252
|
+
throw new Error("Expect http options but get " + typeof optionsOrCb);
|
|
253
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
254
|
+
}
|
|
255
|
+
else {
|
|
256
|
+
return this.send(command, optionsOrCb);
|
|
257
|
+
}
|
|
258
|
+
};
|
|
191
259
|
Kendra.prototype.deleteFaq = function (args, optionsOrCb, cb) {
|
|
192
260
|
var command = new DeleteFaqCommand(args);
|
|
193
261
|
if (typeof optionsOrCb === "function") {
|
|
@@ -272,6 +340,20 @@ var Kendra = (function (_super) {
|
|
|
272
340
|
return this.send(command, optionsOrCb);
|
|
273
341
|
}
|
|
274
342
|
};
|
|
343
|
+
Kendra.prototype.describeExperience = function (args, optionsOrCb, cb) {
|
|
344
|
+
var command = new DescribeExperienceCommand(args);
|
|
345
|
+
if (typeof optionsOrCb === "function") {
|
|
346
|
+
this.send(command, optionsOrCb);
|
|
347
|
+
}
|
|
348
|
+
else if (typeof cb === "function") {
|
|
349
|
+
if (typeof optionsOrCb !== "object")
|
|
350
|
+
throw new Error("Expect http options but get " + typeof optionsOrCb);
|
|
351
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
352
|
+
}
|
|
353
|
+
else {
|
|
354
|
+
return this.send(command, optionsOrCb);
|
|
355
|
+
}
|
|
356
|
+
};
|
|
275
357
|
Kendra.prototype.describeFaq = function (args, optionsOrCb, cb) {
|
|
276
358
|
var command = new DescribeFaqCommand(args);
|
|
277
359
|
if (typeof optionsOrCb === "function") {
|
|
@@ -356,6 +438,34 @@ var Kendra = (function (_super) {
|
|
|
356
438
|
return this.send(command, optionsOrCb);
|
|
357
439
|
}
|
|
358
440
|
};
|
|
441
|
+
Kendra.prototype.disassociateEntitiesFromExperience = function (args, optionsOrCb, cb) {
|
|
442
|
+
var command = new DisassociateEntitiesFromExperienceCommand(args);
|
|
443
|
+
if (typeof optionsOrCb === "function") {
|
|
444
|
+
this.send(command, optionsOrCb);
|
|
445
|
+
}
|
|
446
|
+
else if (typeof cb === "function") {
|
|
447
|
+
if (typeof optionsOrCb !== "object")
|
|
448
|
+
throw new Error("Expect http options but get " + typeof optionsOrCb);
|
|
449
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
450
|
+
}
|
|
451
|
+
else {
|
|
452
|
+
return this.send(command, optionsOrCb);
|
|
453
|
+
}
|
|
454
|
+
};
|
|
455
|
+
Kendra.prototype.disassociatePersonasFromEntities = function (args, optionsOrCb, cb) {
|
|
456
|
+
var command = new DisassociatePersonasFromEntitiesCommand(args);
|
|
457
|
+
if (typeof optionsOrCb === "function") {
|
|
458
|
+
this.send(command, optionsOrCb);
|
|
459
|
+
}
|
|
460
|
+
else if (typeof cb === "function") {
|
|
461
|
+
if (typeof optionsOrCb !== "object")
|
|
462
|
+
throw new Error("Expect http options but get " + typeof optionsOrCb);
|
|
463
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
464
|
+
}
|
|
465
|
+
else {
|
|
466
|
+
return this.send(command, optionsOrCb);
|
|
467
|
+
}
|
|
468
|
+
};
|
|
359
469
|
Kendra.prototype.getQuerySuggestions = function (args, optionsOrCb, cb) {
|
|
360
470
|
var command = new GetQuerySuggestionsCommand(args);
|
|
361
471
|
if (typeof optionsOrCb === "function") {
|
|
@@ -370,6 +480,20 @@ var Kendra = (function (_super) {
|
|
|
370
480
|
return this.send(command, optionsOrCb);
|
|
371
481
|
}
|
|
372
482
|
};
|
|
483
|
+
Kendra.prototype.getSnapshots = function (args, optionsOrCb, cb) {
|
|
484
|
+
var command = new GetSnapshotsCommand(args);
|
|
485
|
+
if (typeof optionsOrCb === "function") {
|
|
486
|
+
this.send(command, optionsOrCb);
|
|
487
|
+
}
|
|
488
|
+
else if (typeof cb === "function") {
|
|
489
|
+
if (typeof optionsOrCb !== "object")
|
|
490
|
+
throw new Error("Expect http options but get " + typeof optionsOrCb);
|
|
491
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
492
|
+
}
|
|
493
|
+
else {
|
|
494
|
+
return this.send(command, optionsOrCb);
|
|
495
|
+
}
|
|
496
|
+
};
|
|
373
497
|
Kendra.prototype.listDataSources = function (args, optionsOrCb, cb) {
|
|
374
498
|
var command = new ListDataSourcesCommand(args);
|
|
375
499
|
if (typeof optionsOrCb === "function") {
|
|
@@ -398,6 +522,48 @@ var Kendra = (function (_super) {
|
|
|
398
522
|
return this.send(command, optionsOrCb);
|
|
399
523
|
}
|
|
400
524
|
};
|
|
525
|
+
Kendra.prototype.listEntityPersonas = function (args, optionsOrCb, cb) {
|
|
526
|
+
var command = new ListEntityPersonasCommand(args);
|
|
527
|
+
if (typeof optionsOrCb === "function") {
|
|
528
|
+
this.send(command, optionsOrCb);
|
|
529
|
+
}
|
|
530
|
+
else if (typeof cb === "function") {
|
|
531
|
+
if (typeof optionsOrCb !== "object")
|
|
532
|
+
throw new Error("Expect http options but get " + typeof optionsOrCb);
|
|
533
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
534
|
+
}
|
|
535
|
+
else {
|
|
536
|
+
return this.send(command, optionsOrCb);
|
|
537
|
+
}
|
|
538
|
+
};
|
|
539
|
+
Kendra.prototype.listExperienceEntities = function (args, optionsOrCb, cb) {
|
|
540
|
+
var command = new ListExperienceEntitiesCommand(args);
|
|
541
|
+
if (typeof optionsOrCb === "function") {
|
|
542
|
+
this.send(command, optionsOrCb);
|
|
543
|
+
}
|
|
544
|
+
else if (typeof cb === "function") {
|
|
545
|
+
if (typeof optionsOrCb !== "object")
|
|
546
|
+
throw new Error("Expect http options but get " + typeof optionsOrCb);
|
|
547
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
548
|
+
}
|
|
549
|
+
else {
|
|
550
|
+
return this.send(command, optionsOrCb);
|
|
551
|
+
}
|
|
552
|
+
};
|
|
553
|
+
Kendra.prototype.listExperiences = function (args, optionsOrCb, cb) {
|
|
554
|
+
var command = new ListExperiencesCommand(args);
|
|
555
|
+
if (typeof optionsOrCb === "function") {
|
|
556
|
+
this.send(command, optionsOrCb);
|
|
557
|
+
}
|
|
558
|
+
else if (typeof cb === "function") {
|
|
559
|
+
if (typeof optionsOrCb !== "object")
|
|
560
|
+
throw new Error("Expect http options but get " + typeof optionsOrCb);
|
|
561
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
562
|
+
}
|
|
563
|
+
else {
|
|
564
|
+
return this.send(command, optionsOrCb);
|
|
565
|
+
}
|
|
566
|
+
};
|
|
401
567
|
Kendra.prototype.listFaqs = function (args, optionsOrCb, cb) {
|
|
402
568
|
var command = new ListFaqsCommand(args);
|
|
403
569
|
if (typeof optionsOrCb === "function") {
|
|
@@ -594,6 +760,20 @@ var Kendra = (function (_super) {
|
|
|
594
760
|
return this.send(command, optionsOrCb);
|
|
595
761
|
}
|
|
596
762
|
};
|
|
763
|
+
Kendra.prototype.updateExperience = function (args, optionsOrCb, cb) {
|
|
764
|
+
var command = new UpdateExperienceCommand(args);
|
|
765
|
+
if (typeof optionsOrCb === "function") {
|
|
766
|
+
this.send(command, optionsOrCb);
|
|
767
|
+
}
|
|
768
|
+
else if (typeof cb === "function") {
|
|
769
|
+
if (typeof optionsOrCb !== "object")
|
|
770
|
+
throw new Error("Expect http options but get " + typeof optionsOrCb);
|
|
771
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
772
|
+
}
|
|
773
|
+
else {
|
|
774
|
+
return this.send(command, optionsOrCb);
|
|
775
|
+
}
|
|
776
|
+
};
|
|
597
777
|
Kendra.prototype.updateIndex = function (args, optionsOrCb, cb) {
|
|
598
778
|
var command = new UpdateIndexCommand(args);
|
|
599
779
|
if (typeof optionsOrCb === "function") {
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { __extends } from "tslib";
|
|
2
|
+
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
3
|
+
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
4
|
+
import { AssociateEntitiesToExperienceRequest, AssociateEntitiesToExperienceResponse } from "../models/models_0";
|
|
5
|
+
import { deserializeAws_json1_1AssociateEntitiesToExperienceCommand, serializeAws_json1_1AssociateEntitiesToExperienceCommand, } from "../protocols/Aws_json1_1";
|
|
6
|
+
var AssociateEntitiesToExperienceCommand = (function (_super) {
|
|
7
|
+
__extends(AssociateEntitiesToExperienceCommand, _super);
|
|
8
|
+
function AssociateEntitiesToExperienceCommand(input) {
|
|
9
|
+
var _this = _super.call(this) || this;
|
|
10
|
+
_this.input = input;
|
|
11
|
+
return _this;
|
|
12
|
+
}
|
|
13
|
+
AssociateEntitiesToExperienceCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
|
|
14
|
+
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
15
|
+
var stack = clientStack.concat(this.middlewareStack);
|
|
16
|
+
var logger = configuration.logger;
|
|
17
|
+
var clientName = "KendraClient";
|
|
18
|
+
var commandName = "AssociateEntitiesToExperienceCommand";
|
|
19
|
+
var handlerExecutionContext = {
|
|
20
|
+
logger: logger,
|
|
21
|
+
clientName: clientName,
|
|
22
|
+
commandName: commandName,
|
|
23
|
+
inputFilterSensitiveLog: AssociateEntitiesToExperienceRequest.filterSensitiveLog,
|
|
24
|
+
outputFilterSensitiveLog: AssociateEntitiesToExperienceResponse.filterSensitiveLog,
|
|
25
|
+
};
|
|
26
|
+
var requestHandler = configuration.requestHandler;
|
|
27
|
+
return stack.resolve(function (request) {
|
|
28
|
+
return requestHandler.handle(request.request, options || {});
|
|
29
|
+
}, handlerExecutionContext);
|
|
30
|
+
};
|
|
31
|
+
AssociateEntitiesToExperienceCommand.prototype.serialize = function (input, context) {
|
|
32
|
+
return serializeAws_json1_1AssociateEntitiesToExperienceCommand(input, context);
|
|
33
|
+
};
|
|
34
|
+
AssociateEntitiesToExperienceCommand.prototype.deserialize = function (output, context) {
|
|
35
|
+
return deserializeAws_json1_1AssociateEntitiesToExperienceCommand(output, context);
|
|
36
|
+
};
|
|
37
|
+
return AssociateEntitiesToExperienceCommand;
|
|
38
|
+
}($Command));
|
|
39
|
+
export { AssociateEntitiesToExperienceCommand };
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { __extends } from "tslib";
|
|
2
|
+
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
3
|
+
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
4
|
+
import { AssociatePersonasToEntitiesRequest, AssociatePersonasToEntitiesResponse } from "../models/models_0";
|
|
5
|
+
import { deserializeAws_json1_1AssociatePersonasToEntitiesCommand, serializeAws_json1_1AssociatePersonasToEntitiesCommand, } from "../protocols/Aws_json1_1";
|
|
6
|
+
var AssociatePersonasToEntitiesCommand = (function (_super) {
|
|
7
|
+
__extends(AssociatePersonasToEntitiesCommand, _super);
|
|
8
|
+
function AssociatePersonasToEntitiesCommand(input) {
|
|
9
|
+
var _this = _super.call(this) || this;
|
|
10
|
+
_this.input = input;
|
|
11
|
+
return _this;
|
|
12
|
+
}
|
|
13
|
+
AssociatePersonasToEntitiesCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
|
|
14
|
+
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
15
|
+
var stack = clientStack.concat(this.middlewareStack);
|
|
16
|
+
var logger = configuration.logger;
|
|
17
|
+
var clientName = "KendraClient";
|
|
18
|
+
var commandName = "AssociatePersonasToEntitiesCommand";
|
|
19
|
+
var handlerExecutionContext = {
|
|
20
|
+
logger: logger,
|
|
21
|
+
clientName: clientName,
|
|
22
|
+
commandName: commandName,
|
|
23
|
+
inputFilterSensitiveLog: AssociatePersonasToEntitiesRequest.filterSensitiveLog,
|
|
24
|
+
outputFilterSensitiveLog: AssociatePersonasToEntitiesResponse.filterSensitiveLog,
|
|
25
|
+
};
|
|
26
|
+
var requestHandler = configuration.requestHandler;
|
|
27
|
+
return stack.resolve(function (request) {
|
|
28
|
+
return requestHandler.handle(request.request, options || {});
|
|
29
|
+
}, handlerExecutionContext);
|
|
30
|
+
};
|
|
31
|
+
AssociatePersonasToEntitiesCommand.prototype.serialize = function (input, context) {
|
|
32
|
+
return serializeAws_json1_1AssociatePersonasToEntitiesCommand(input, context);
|
|
33
|
+
};
|
|
34
|
+
AssociatePersonasToEntitiesCommand.prototype.deserialize = function (output, context) {
|
|
35
|
+
return deserializeAws_json1_1AssociatePersonasToEntitiesCommand(output, context);
|
|
36
|
+
};
|
|
37
|
+
return AssociatePersonasToEntitiesCommand;
|
|
38
|
+
}($Command));
|
|
39
|
+
export { AssociatePersonasToEntitiesCommand };
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { __extends } from "tslib";
|
|
2
|
+
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
3
|
+
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
4
|
+
import { CreateExperienceRequest, CreateExperienceResponse } from "../models/models_0";
|
|
5
|
+
import { deserializeAws_json1_1CreateExperienceCommand, serializeAws_json1_1CreateExperienceCommand, } from "../protocols/Aws_json1_1";
|
|
6
|
+
var CreateExperienceCommand = (function (_super) {
|
|
7
|
+
__extends(CreateExperienceCommand, _super);
|
|
8
|
+
function CreateExperienceCommand(input) {
|
|
9
|
+
var _this = _super.call(this) || this;
|
|
10
|
+
_this.input = input;
|
|
11
|
+
return _this;
|
|
12
|
+
}
|
|
13
|
+
CreateExperienceCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
|
|
14
|
+
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
15
|
+
var stack = clientStack.concat(this.middlewareStack);
|
|
16
|
+
var logger = configuration.logger;
|
|
17
|
+
var clientName = "KendraClient";
|
|
18
|
+
var commandName = "CreateExperienceCommand";
|
|
19
|
+
var handlerExecutionContext = {
|
|
20
|
+
logger: logger,
|
|
21
|
+
clientName: clientName,
|
|
22
|
+
commandName: commandName,
|
|
23
|
+
inputFilterSensitiveLog: CreateExperienceRequest.filterSensitiveLog,
|
|
24
|
+
outputFilterSensitiveLog: CreateExperienceResponse.filterSensitiveLog,
|
|
25
|
+
};
|
|
26
|
+
var requestHandler = configuration.requestHandler;
|
|
27
|
+
return stack.resolve(function (request) {
|
|
28
|
+
return requestHandler.handle(request.request, options || {});
|
|
29
|
+
}, handlerExecutionContext);
|
|
30
|
+
};
|
|
31
|
+
CreateExperienceCommand.prototype.serialize = function (input, context) {
|
|
32
|
+
return serializeAws_json1_1CreateExperienceCommand(input, context);
|
|
33
|
+
};
|
|
34
|
+
CreateExperienceCommand.prototype.deserialize = function (output, context) {
|
|
35
|
+
return deserializeAws_json1_1CreateExperienceCommand(output, context);
|
|
36
|
+
};
|
|
37
|
+
return CreateExperienceCommand;
|
|
38
|
+
}($Command));
|
|
39
|
+
export { CreateExperienceCommand };
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { __extends } from "tslib";
|
|
2
|
+
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
3
|
+
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
4
|
+
import { DeleteExperienceRequest, DeleteExperienceResponse } from "../models/models_0";
|
|
5
|
+
import { deserializeAws_json1_1DeleteExperienceCommand, serializeAws_json1_1DeleteExperienceCommand, } from "../protocols/Aws_json1_1";
|
|
6
|
+
var DeleteExperienceCommand = (function (_super) {
|
|
7
|
+
__extends(DeleteExperienceCommand, _super);
|
|
8
|
+
function DeleteExperienceCommand(input) {
|
|
9
|
+
var _this = _super.call(this) || this;
|
|
10
|
+
_this.input = input;
|
|
11
|
+
return _this;
|
|
12
|
+
}
|
|
13
|
+
DeleteExperienceCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
|
|
14
|
+
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
15
|
+
var stack = clientStack.concat(this.middlewareStack);
|
|
16
|
+
var logger = configuration.logger;
|
|
17
|
+
var clientName = "KendraClient";
|
|
18
|
+
var commandName = "DeleteExperienceCommand";
|
|
19
|
+
var handlerExecutionContext = {
|
|
20
|
+
logger: logger,
|
|
21
|
+
clientName: clientName,
|
|
22
|
+
commandName: commandName,
|
|
23
|
+
inputFilterSensitiveLog: DeleteExperienceRequest.filterSensitiveLog,
|
|
24
|
+
outputFilterSensitiveLog: DeleteExperienceResponse.filterSensitiveLog,
|
|
25
|
+
};
|
|
26
|
+
var requestHandler = configuration.requestHandler;
|
|
27
|
+
return stack.resolve(function (request) {
|
|
28
|
+
return requestHandler.handle(request.request, options || {});
|
|
29
|
+
}, handlerExecutionContext);
|
|
30
|
+
};
|
|
31
|
+
DeleteExperienceCommand.prototype.serialize = function (input, context) {
|
|
32
|
+
return serializeAws_json1_1DeleteExperienceCommand(input, context);
|
|
33
|
+
};
|
|
34
|
+
DeleteExperienceCommand.prototype.deserialize = function (output, context) {
|
|
35
|
+
return deserializeAws_json1_1DeleteExperienceCommand(output, context);
|
|
36
|
+
};
|
|
37
|
+
return DeleteExperienceCommand;
|
|
38
|
+
}($Command));
|
|
39
|
+
export { DeleteExperienceCommand };
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { __extends } from "tslib";
|
|
2
|
+
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
3
|
+
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
4
|
+
import { DescribeExperienceRequest, DescribeExperienceResponse } from "../models/models_0";
|
|
5
|
+
import { deserializeAws_json1_1DescribeExperienceCommand, serializeAws_json1_1DescribeExperienceCommand, } from "../protocols/Aws_json1_1";
|
|
6
|
+
var DescribeExperienceCommand = (function (_super) {
|
|
7
|
+
__extends(DescribeExperienceCommand, _super);
|
|
8
|
+
function DescribeExperienceCommand(input) {
|
|
9
|
+
var _this = _super.call(this) || this;
|
|
10
|
+
_this.input = input;
|
|
11
|
+
return _this;
|
|
12
|
+
}
|
|
13
|
+
DescribeExperienceCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
|
|
14
|
+
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
15
|
+
var stack = clientStack.concat(this.middlewareStack);
|
|
16
|
+
var logger = configuration.logger;
|
|
17
|
+
var clientName = "KendraClient";
|
|
18
|
+
var commandName = "DescribeExperienceCommand";
|
|
19
|
+
var handlerExecutionContext = {
|
|
20
|
+
logger: logger,
|
|
21
|
+
clientName: clientName,
|
|
22
|
+
commandName: commandName,
|
|
23
|
+
inputFilterSensitiveLog: DescribeExperienceRequest.filterSensitiveLog,
|
|
24
|
+
outputFilterSensitiveLog: DescribeExperienceResponse.filterSensitiveLog,
|
|
25
|
+
};
|
|
26
|
+
var requestHandler = configuration.requestHandler;
|
|
27
|
+
return stack.resolve(function (request) {
|
|
28
|
+
return requestHandler.handle(request.request, options || {});
|
|
29
|
+
}, handlerExecutionContext);
|
|
30
|
+
};
|
|
31
|
+
DescribeExperienceCommand.prototype.serialize = function (input, context) {
|
|
32
|
+
return serializeAws_json1_1DescribeExperienceCommand(input, context);
|
|
33
|
+
};
|
|
34
|
+
DescribeExperienceCommand.prototype.deserialize = function (output, context) {
|
|
35
|
+
return deserializeAws_json1_1DescribeExperienceCommand(output, context);
|
|
36
|
+
};
|
|
37
|
+
return DescribeExperienceCommand;
|
|
38
|
+
}($Command));
|
|
39
|
+
export { DescribeExperienceCommand };
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { __extends } from "tslib";
|
|
2
|
+
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
3
|
+
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
4
|
+
import { DisassociateEntitiesFromExperienceRequest, DisassociateEntitiesFromExperienceResponse, } from "../models/models_0";
|
|
5
|
+
import { deserializeAws_json1_1DisassociateEntitiesFromExperienceCommand, serializeAws_json1_1DisassociateEntitiesFromExperienceCommand, } from "../protocols/Aws_json1_1";
|
|
6
|
+
var DisassociateEntitiesFromExperienceCommand = (function (_super) {
|
|
7
|
+
__extends(DisassociateEntitiesFromExperienceCommand, _super);
|
|
8
|
+
function DisassociateEntitiesFromExperienceCommand(input) {
|
|
9
|
+
var _this = _super.call(this) || this;
|
|
10
|
+
_this.input = input;
|
|
11
|
+
return _this;
|
|
12
|
+
}
|
|
13
|
+
DisassociateEntitiesFromExperienceCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
|
|
14
|
+
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
15
|
+
var stack = clientStack.concat(this.middlewareStack);
|
|
16
|
+
var logger = configuration.logger;
|
|
17
|
+
var clientName = "KendraClient";
|
|
18
|
+
var commandName = "DisassociateEntitiesFromExperienceCommand";
|
|
19
|
+
var handlerExecutionContext = {
|
|
20
|
+
logger: logger,
|
|
21
|
+
clientName: clientName,
|
|
22
|
+
commandName: commandName,
|
|
23
|
+
inputFilterSensitiveLog: DisassociateEntitiesFromExperienceRequest.filterSensitiveLog,
|
|
24
|
+
outputFilterSensitiveLog: DisassociateEntitiesFromExperienceResponse.filterSensitiveLog,
|
|
25
|
+
};
|
|
26
|
+
var requestHandler = configuration.requestHandler;
|
|
27
|
+
return stack.resolve(function (request) {
|
|
28
|
+
return requestHandler.handle(request.request, options || {});
|
|
29
|
+
}, handlerExecutionContext);
|
|
30
|
+
};
|
|
31
|
+
DisassociateEntitiesFromExperienceCommand.prototype.serialize = function (input, context) {
|
|
32
|
+
return serializeAws_json1_1DisassociateEntitiesFromExperienceCommand(input, context);
|
|
33
|
+
};
|
|
34
|
+
DisassociateEntitiesFromExperienceCommand.prototype.deserialize = function (output, context) {
|
|
35
|
+
return deserializeAws_json1_1DisassociateEntitiesFromExperienceCommand(output, context);
|
|
36
|
+
};
|
|
37
|
+
return DisassociateEntitiesFromExperienceCommand;
|
|
38
|
+
}($Command));
|
|
39
|
+
export { DisassociateEntitiesFromExperienceCommand };
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { __extends } from "tslib";
|
|
2
|
+
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
3
|
+
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
4
|
+
import { DisassociatePersonasFromEntitiesRequest, DisassociatePersonasFromEntitiesResponse } from "../models/models_0";
|
|
5
|
+
import { deserializeAws_json1_1DisassociatePersonasFromEntitiesCommand, serializeAws_json1_1DisassociatePersonasFromEntitiesCommand, } from "../protocols/Aws_json1_1";
|
|
6
|
+
var DisassociatePersonasFromEntitiesCommand = (function (_super) {
|
|
7
|
+
__extends(DisassociatePersonasFromEntitiesCommand, _super);
|
|
8
|
+
function DisassociatePersonasFromEntitiesCommand(input) {
|
|
9
|
+
var _this = _super.call(this) || this;
|
|
10
|
+
_this.input = input;
|
|
11
|
+
return _this;
|
|
12
|
+
}
|
|
13
|
+
DisassociatePersonasFromEntitiesCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
|
|
14
|
+
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
15
|
+
var stack = clientStack.concat(this.middlewareStack);
|
|
16
|
+
var logger = configuration.logger;
|
|
17
|
+
var clientName = "KendraClient";
|
|
18
|
+
var commandName = "DisassociatePersonasFromEntitiesCommand";
|
|
19
|
+
var handlerExecutionContext = {
|
|
20
|
+
logger: logger,
|
|
21
|
+
clientName: clientName,
|
|
22
|
+
commandName: commandName,
|
|
23
|
+
inputFilterSensitiveLog: DisassociatePersonasFromEntitiesRequest.filterSensitiveLog,
|
|
24
|
+
outputFilterSensitiveLog: DisassociatePersonasFromEntitiesResponse.filterSensitiveLog,
|
|
25
|
+
};
|
|
26
|
+
var requestHandler = configuration.requestHandler;
|
|
27
|
+
return stack.resolve(function (request) {
|
|
28
|
+
return requestHandler.handle(request.request, options || {});
|
|
29
|
+
}, handlerExecutionContext);
|
|
30
|
+
};
|
|
31
|
+
DisassociatePersonasFromEntitiesCommand.prototype.serialize = function (input, context) {
|
|
32
|
+
return serializeAws_json1_1DisassociatePersonasFromEntitiesCommand(input, context);
|
|
33
|
+
};
|
|
34
|
+
DisassociatePersonasFromEntitiesCommand.prototype.deserialize = function (output, context) {
|
|
35
|
+
return deserializeAws_json1_1DisassociatePersonasFromEntitiesCommand(output, context);
|
|
36
|
+
};
|
|
37
|
+
return DisassociatePersonasFromEntitiesCommand;
|
|
38
|
+
}($Command));
|
|
39
|
+
export { DisassociatePersonasFromEntitiesCommand };
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { __extends } from "tslib";
|
|
2
|
+
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
3
|
+
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
4
|
+
import { GetSnapshotsRequest, GetSnapshotsResponse } from "../models/models_0";
|
|
5
|
+
import { deserializeAws_json1_1GetSnapshotsCommand, serializeAws_json1_1GetSnapshotsCommand, } from "../protocols/Aws_json1_1";
|
|
6
|
+
var GetSnapshotsCommand = (function (_super) {
|
|
7
|
+
__extends(GetSnapshotsCommand, _super);
|
|
8
|
+
function GetSnapshotsCommand(input) {
|
|
9
|
+
var _this = _super.call(this) || this;
|
|
10
|
+
_this.input = input;
|
|
11
|
+
return _this;
|
|
12
|
+
}
|
|
13
|
+
GetSnapshotsCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
|
|
14
|
+
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
15
|
+
var stack = clientStack.concat(this.middlewareStack);
|
|
16
|
+
var logger = configuration.logger;
|
|
17
|
+
var clientName = "KendraClient";
|
|
18
|
+
var commandName = "GetSnapshotsCommand";
|
|
19
|
+
var handlerExecutionContext = {
|
|
20
|
+
logger: logger,
|
|
21
|
+
clientName: clientName,
|
|
22
|
+
commandName: commandName,
|
|
23
|
+
inputFilterSensitiveLog: GetSnapshotsRequest.filterSensitiveLog,
|
|
24
|
+
outputFilterSensitiveLog: GetSnapshotsResponse.filterSensitiveLog,
|
|
25
|
+
};
|
|
26
|
+
var requestHandler = configuration.requestHandler;
|
|
27
|
+
return stack.resolve(function (request) {
|
|
28
|
+
return requestHandler.handle(request.request, options || {});
|
|
29
|
+
}, handlerExecutionContext);
|
|
30
|
+
};
|
|
31
|
+
GetSnapshotsCommand.prototype.serialize = function (input, context) {
|
|
32
|
+
return serializeAws_json1_1GetSnapshotsCommand(input, context);
|
|
33
|
+
};
|
|
34
|
+
GetSnapshotsCommand.prototype.deserialize = function (output, context) {
|
|
35
|
+
return deserializeAws_json1_1GetSnapshotsCommand(output, context);
|
|
36
|
+
};
|
|
37
|
+
return GetSnapshotsCommand;
|
|
38
|
+
}($Command));
|
|
39
|
+
export { GetSnapshotsCommand };
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { __extends } from "tslib";
|
|
2
|
+
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
3
|
+
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
4
|
+
import { ListEntityPersonasRequest, ListEntityPersonasResponse } from "../models/models_0";
|
|
5
|
+
import { deserializeAws_json1_1ListEntityPersonasCommand, serializeAws_json1_1ListEntityPersonasCommand, } from "../protocols/Aws_json1_1";
|
|
6
|
+
var ListEntityPersonasCommand = (function (_super) {
|
|
7
|
+
__extends(ListEntityPersonasCommand, _super);
|
|
8
|
+
function ListEntityPersonasCommand(input) {
|
|
9
|
+
var _this = _super.call(this) || this;
|
|
10
|
+
_this.input = input;
|
|
11
|
+
return _this;
|
|
12
|
+
}
|
|
13
|
+
ListEntityPersonasCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
|
|
14
|
+
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
15
|
+
var stack = clientStack.concat(this.middlewareStack);
|
|
16
|
+
var logger = configuration.logger;
|
|
17
|
+
var clientName = "KendraClient";
|
|
18
|
+
var commandName = "ListEntityPersonasCommand";
|
|
19
|
+
var handlerExecutionContext = {
|
|
20
|
+
logger: logger,
|
|
21
|
+
clientName: clientName,
|
|
22
|
+
commandName: commandName,
|
|
23
|
+
inputFilterSensitiveLog: ListEntityPersonasRequest.filterSensitiveLog,
|
|
24
|
+
outputFilterSensitiveLog: ListEntityPersonasResponse.filterSensitiveLog,
|
|
25
|
+
};
|
|
26
|
+
var requestHandler = configuration.requestHandler;
|
|
27
|
+
return stack.resolve(function (request) {
|
|
28
|
+
return requestHandler.handle(request.request, options || {});
|
|
29
|
+
}, handlerExecutionContext);
|
|
30
|
+
};
|
|
31
|
+
ListEntityPersonasCommand.prototype.serialize = function (input, context) {
|
|
32
|
+
return serializeAws_json1_1ListEntityPersonasCommand(input, context);
|
|
33
|
+
};
|
|
34
|
+
ListEntityPersonasCommand.prototype.deserialize = function (output, context) {
|
|
35
|
+
return deserializeAws_json1_1ListEntityPersonasCommand(output, context);
|
|
36
|
+
};
|
|
37
|
+
return ListEntityPersonasCommand;
|
|
38
|
+
}($Command));
|
|
39
|
+
export { ListEntityPersonasCommand };
|