@aws-sdk/client-kendra 3.42.0 → 3.46.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 +47 -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 +1 -0
- package/dist-cjs/models/models_0.js +342 -39
- 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 +2043 -261
- package/dist-cjs/runtimeConfig.js +0 -2
- 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 +1 -0
- package/dist-es/models/models_0.js +239 -24
- 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 +2042 -234
- package/dist-es/runtimeConfig.js +0 -2
- 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/ClearQuerySuggestionsCommand.d.ts +3 -0
- package/dist-types/commands/CreateDataSourceCommand.d.ts +2 -0
- package/dist-types/commands/CreateExperienceCommand.d.ts +37 -0
- package/dist-types/commands/CreateQuerySuggestionsBlockListCommand.d.ts +3 -0
- package/dist-types/commands/DeleteExperienceCommand.d.ts +37 -0
- package/dist-types/commands/DeletePrincipalMappingCommand.d.ts +3 -0
- package/dist-types/commands/DeleteQuerySuggestionsBlockListCommand.d.ts +3 -0
- package/dist-types/commands/DescribeExperienceCommand.d.ts +38 -0
- package/dist-types/commands/DescribePrincipalMappingCommand.d.ts +3 -0
- package/dist-types/commands/DescribeQuerySuggestionsBlockListCommand.d.ts +3 -0
- package/dist-types/commands/DescribeQuerySuggestionsConfigCommand.d.ts +3 -0
- 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 +3 -0
- package/dist-types/commands/GetSnapshotsCommand.d.ts +37 -0
- 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/ListGroupsOlderThanOrderingIdCommand.d.ts +3 -0
- package/dist-types/commands/ListQuerySuggestionsBlockListsCommand.d.ts +3 -0
- package/dist-types/commands/PutPrincipalMappingCommand.d.ts +3 -0
- package/dist-types/commands/SubmitFeedbackCommand.d.ts +4 -1
- package/dist-types/commands/UpdateExperienceCommand.d.ts +37 -0
- package/dist-types/commands/UpdateQuerySuggestionsBlockListCommand.d.ts +3 -0
- package/dist-types/commands/UpdateQuerySuggestionsConfigCommand.d.ts +3 -0
- package/dist-types/commands/index.d.ts +12 -0
- package/dist-types/models/models_0.d.ts +1316 -180
- 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 +603 -57
- 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 +36 -43
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,53 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
# [3.46.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.45.0...v3.46.0) (2022-01-07)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Bug Fixes
|
|
10
|
+
|
|
11
|
+
* **clients:** update clean:dist script to delete dist-* folder ([#3155](https://github.com/aws/aws-sdk-js-v3/issues/3155)) ([cdb1709](https://github.com/aws/aws-sdk-js-v3/commit/cdb17090f82d1fc8755811c82cbed5976ec7e60b))
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
### Features
|
|
15
|
+
|
|
16
|
+
* **clients:** extend typedoc.json from root ([#3136](https://github.com/aws/aws-sdk-js-v3/issues/3136)) ([f6a3ef5](https://github.com/aws/aws-sdk-js-v3/commit/f6a3ef541ae2d92872d09d8cab6727911287ebb2))
|
|
17
|
+
* end support for Node.js 10.x ([#3122](https://github.com/aws/aws-sdk-js-v3/issues/3122)) ([7acf18a](https://github.com/aws/aws-sdk-js-v3/commit/7acf18abd3fb1cc461f809110cdb0d7968c2070e))
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
# [3.45.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.44.0...v3.45.0) (2021-12-23)
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
### Features
|
|
27
|
+
|
|
28
|
+
* **clients:** update clients as of 2021/12/23 ([#3110](https://github.com/aws/aws-sdk-js-v3/issues/3110)) ([5d638e1](https://github.com/aws/aws-sdk-js-v3/commit/5d638e188ce64fa80fe36b8cba79ba63b80b50b7))
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
|
|
32
|
+
|
|
33
|
+
|
|
34
|
+
# [3.44.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.43.0...v3.44.0) (2021-12-02)
|
|
35
|
+
|
|
36
|
+
|
|
37
|
+
### Features
|
|
38
|
+
|
|
39
|
+
* **clients:** update clients as of 2021/12/01 ([#3078](https://github.com/aws/aws-sdk-js-v3/issues/3078)) ([9c44188](https://github.com/aws/aws-sdk-js-v3/commit/9c44188265ea484d55c50848d7daae5571007ce0))
|
|
40
|
+
|
|
41
|
+
|
|
42
|
+
|
|
43
|
+
|
|
44
|
+
|
|
45
|
+
# [3.43.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.42.0...v3.43.0) (2021-11-29)
|
|
46
|
+
|
|
47
|
+
**Note:** Version bump only for package @aws-sdk/client-kendra
|
|
48
|
+
|
|
49
|
+
|
|
50
|
+
|
|
51
|
+
|
|
52
|
+
|
|
6
53
|
# [3.42.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.41.0...v3.42.0) (2021-11-19)
|
|
7
54
|
|
|
8
55
|
|
package/README.md
CHANGED
|
@@ -24,16 +24,16 @@ using your favorite package manager:
|
|
|
24
24
|
|
|
25
25
|
The AWS SDK is modulized by clients and commands.
|
|
26
26
|
To send a request, you only need to import the `KendraClient` and
|
|
27
|
-
the commands you need, for example `
|
|
27
|
+
the commands you need, for example `AssociateEntitiesToExperienceCommand`:
|
|
28
28
|
|
|
29
29
|
```js
|
|
30
30
|
// ES5 example
|
|
31
|
-
const { KendraClient,
|
|
31
|
+
const { KendraClient, AssociateEntitiesToExperienceCommand } = require("@aws-sdk/client-kendra");
|
|
32
32
|
```
|
|
33
33
|
|
|
34
34
|
```ts
|
|
35
35
|
// ES6+ example
|
|
36
|
-
import { KendraClient,
|
|
36
|
+
import { KendraClient, AssociateEntitiesToExperienceCommand } from "@aws-sdk/client-kendra";
|
|
37
37
|
```
|
|
38
38
|
|
|
39
39
|
### Usage
|
|
@@ -52,7 +52,7 @@ const client = new KendraClient({ region: "REGION" });
|
|
|
52
52
|
const params = {
|
|
53
53
|
/** input parameters */
|
|
54
54
|
};
|
|
55
|
-
const command = new
|
|
55
|
+
const command = new AssociateEntitiesToExperienceCommand(params);
|
|
56
56
|
```
|
|
57
57
|
|
|
58
58
|
#### Async/await
|
|
@@ -131,7 +131,7 @@ const client = new AWS.Kendra({ region: "REGION" });
|
|
|
131
131
|
|
|
132
132
|
// async/await.
|
|
133
133
|
try {
|
|
134
|
-
const data = await client.
|
|
134
|
+
const data = await client.associateEntitiesToExperience(params);
|
|
135
135
|
// process data.
|
|
136
136
|
} catch (error) {
|
|
137
137
|
// error handling.
|
|
@@ -139,7 +139,7 @@ try {
|
|
|
139
139
|
|
|
140
140
|
// Promises.
|
|
141
141
|
client
|
|
142
|
-
.
|
|
142
|
+
.associateEntitiesToExperience(params)
|
|
143
143
|
.then((data) => {
|
|
144
144
|
// process data.
|
|
145
145
|
})
|
|
@@ -148,7 +148,7 @@ client
|
|
|
148
148
|
});
|
|
149
149
|
|
|
150
150
|
// callbacks.
|
|
151
|
-
client.
|
|
151
|
+
client.associateEntitiesToExperience(params, (err, data) => {
|
|
152
152
|
// proccess err and data.
|
|
153
153
|
});
|
|
154
154
|
```
|
package/dist-cjs/Kendra.js
CHANGED
|
@@ -1,31 +1,42 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.Kendra = void 0;
|
|
4
|
+
const AssociateEntitiesToExperienceCommand_1 = require("./commands/AssociateEntitiesToExperienceCommand");
|
|
5
|
+
const AssociatePersonasToEntitiesCommand_1 = require("./commands/AssociatePersonasToEntitiesCommand");
|
|
4
6
|
const BatchDeleteDocumentCommand_1 = require("./commands/BatchDeleteDocumentCommand");
|
|
5
7
|
const BatchGetDocumentStatusCommand_1 = require("./commands/BatchGetDocumentStatusCommand");
|
|
6
8
|
const BatchPutDocumentCommand_1 = require("./commands/BatchPutDocumentCommand");
|
|
7
9
|
const ClearQuerySuggestionsCommand_1 = require("./commands/ClearQuerySuggestionsCommand");
|
|
8
10
|
const CreateDataSourceCommand_1 = require("./commands/CreateDataSourceCommand");
|
|
11
|
+
const CreateExperienceCommand_1 = require("./commands/CreateExperienceCommand");
|
|
9
12
|
const CreateFaqCommand_1 = require("./commands/CreateFaqCommand");
|
|
10
13
|
const CreateIndexCommand_1 = require("./commands/CreateIndexCommand");
|
|
11
14
|
const CreateQuerySuggestionsBlockListCommand_1 = require("./commands/CreateQuerySuggestionsBlockListCommand");
|
|
12
15
|
const CreateThesaurusCommand_1 = require("./commands/CreateThesaurusCommand");
|
|
13
16
|
const DeleteDataSourceCommand_1 = require("./commands/DeleteDataSourceCommand");
|
|
17
|
+
const DeleteExperienceCommand_1 = require("./commands/DeleteExperienceCommand");
|
|
14
18
|
const DeleteFaqCommand_1 = require("./commands/DeleteFaqCommand");
|
|
15
19
|
const DeleteIndexCommand_1 = require("./commands/DeleteIndexCommand");
|
|
16
20
|
const DeletePrincipalMappingCommand_1 = require("./commands/DeletePrincipalMappingCommand");
|
|
17
21
|
const DeleteQuerySuggestionsBlockListCommand_1 = require("./commands/DeleteQuerySuggestionsBlockListCommand");
|
|
18
22
|
const DeleteThesaurusCommand_1 = require("./commands/DeleteThesaurusCommand");
|
|
19
23
|
const DescribeDataSourceCommand_1 = require("./commands/DescribeDataSourceCommand");
|
|
24
|
+
const DescribeExperienceCommand_1 = require("./commands/DescribeExperienceCommand");
|
|
20
25
|
const DescribeFaqCommand_1 = require("./commands/DescribeFaqCommand");
|
|
21
26
|
const DescribeIndexCommand_1 = require("./commands/DescribeIndexCommand");
|
|
22
27
|
const DescribePrincipalMappingCommand_1 = require("./commands/DescribePrincipalMappingCommand");
|
|
23
28
|
const DescribeQuerySuggestionsBlockListCommand_1 = require("./commands/DescribeQuerySuggestionsBlockListCommand");
|
|
24
29
|
const DescribeQuerySuggestionsConfigCommand_1 = require("./commands/DescribeQuerySuggestionsConfigCommand");
|
|
25
30
|
const DescribeThesaurusCommand_1 = require("./commands/DescribeThesaurusCommand");
|
|
31
|
+
const DisassociateEntitiesFromExperienceCommand_1 = require("./commands/DisassociateEntitiesFromExperienceCommand");
|
|
32
|
+
const DisassociatePersonasFromEntitiesCommand_1 = require("./commands/DisassociatePersonasFromEntitiesCommand");
|
|
26
33
|
const GetQuerySuggestionsCommand_1 = require("./commands/GetQuerySuggestionsCommand");
|
|
34
|
+
const GetSnapshotsCommand_1 = require("./commands/GetSnapshotsCommand");
|
|
27
35
|
const ListDataSourcesCommand_1 = require("./commands/ListDataSourcesCommand");
|
|
28
36
|
const ListDataSourceSyncJobsCommand_1 = require("./commands/ListDataSourceSyncJobsCommand");
|
|
37
|
+
const ListEntityPersonasCommand_1 = require("./commands/ListEntityPersonasCommand");
|
|
38
|
+
const ListExperienceEntitiesCommand_1 = require("./commands/ListExperienceEntitiesCommand");
|
|
39
|
+
const ListExperiencesCommand_1 = require("./commands/ListExperiencesCommand");
|
|
29
40
|
const ListFaqsCommand_1 = require("./commands/ListFaqsCommand");
|
|
30
41
|
const ListGroupsOlderThanOrderingIdCommand_1 = require("./commands/ListGroupsOlderThanOrderingIdCommand");
|
|
31
42
|
const ListIndicesCommand_1 = require("./commands/ListIndicesCommand");
|
|
@@ -40,12 +51,41 @@ const SubmitFeedbackCommand_1 = require("./commands/SubmitFeedbackCommand");
|
|
|
40
51
|
const TagResourceCommand_1 = require("./commands/TagResourceCommand");
|
|
41
52
|
const UntagResourceCommand_1 = require("./commands/UntagResourceCommand");
|
|
42
53
|
const UpdateDataSourceCommand_1 = require("./commands/UpdateDataSourceCommand");
|
|
54
|
+
const UpdateExperienceCommand_1 = require("./commands/UpdateExperienceCommand");
|
|
43
55
|
const UpdateIndexCommand_1 = require("./commands/UpdateIndexCommand");
|
|
44
56
|
const UpdateQuerySuggestionsBlockListCommand_1 = require("./commands/UpdateQuerySuggestionsBlockListCommand");
|
|
45
57
|
const UpdateQuerySuggestionsConfigCommand_1 = require("./commands/UpdateQuerySuggestionsConfigCommand");
|
|
46
58
|
const UpdateThesaurusCommand_1 = require("./commands/UpdateThesaurusCommand");
|
|
47
59
|
const KendraClient_1 = require("./KendraClient");
|
|
48
60
|
class Kendra extends KendraClient_1.KendraClient {
|
|
61
|
+
associateEntitiesToExperience(args, optionsOrCb, cb) {
|
|
62
|
+
const command = new AssociateEntitiesToExperienceCommand_1.AssociateEntitiesToExperienceCommand(args);
|
|
63
|
+
if (typeof optionsOrCb === "function") {
|
|
64
|
+
this.send(command, optionsOrCb);
|
|
65
|
+
}
|
|
66
|
+
else if (typeof cb === "function") {
|
|
67
|
+
if (typeof optionsOrCb !== "object")
|
|
68
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
69
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
70
|
+
}
|
|
71
|
+
else {
|
|
72
|
+
return this.send(command, optionsOrCb);
|
|
73
|
+
}
|
|
74
|
+
}
|
|
75
|
+
associatePersonasToEntities(args, optionsOrCb, cb) {
|
|
76
|
+
const command = new AssociatePersonasToEntitiesCommand_1.AssociatePersonasToEntitiesCommand(args);
|
|
77
|
+
if (typeof optionsOrCb === "function") {
|
|
78
|
+
this.send(command, optionsOrCb);
|
|
79
|
+
}
|
|
80
|
+
else if (typeof cb === "function") {
|
|
81
|
+
if (typeof optionsOrCb !== "object")
|
|
82
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
83
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
84
|
+
}
|
|
85
|
+
else {
|
|
86
|
+
return this.send(command, optionsOrCb);
|
|
87
|
+
}
|
|
88
|
+
}
|
|
49
89
|
batchDeleteDocument(args, optionsOrCb, cb) {
|
|
50
90
|
const command = new BatchDeleteDocumentCommand_1.BatchDeleteDocumentCommand(args);
|
|
51
91
|
if (typeof optionsOrCb === "function") {
|
|
@@ -116,6 +156,20 @@ class Kendra extends KendraClient_1.KendraClient {
|
|
|
116
156
|
return this.send(command, optionsOrCb);
|
|
117
157
|
}
|
|
118
158
|
}
|
|
159
|
+
createExperience(args, optionsOrCb, cb) {
|
|
160
|
+
const command = new CreateExperienceCommand_1.CreateExperienceCommand(args);
|
|
161
|
+
if (typeof optionsOrCb === "function") {
|
|
162
|
+
this.send(command, optionsOrCb);
|
|
163
|
+
}
|
|
164
|
+
else if (typeof cb === "function") {
|
|
165
|
+
if (typeof optionsOrCb !== "object")
|
|
166
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
167
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
168
|
+
}
|
|
169
|
+
else {
|
|
170
|
+
return this.send(command, optionsOrCb);
|
|
171
|
+
}
|
|
172
|
+
}
|
|
119
173
|
createFaq(args, optionsOrCb, cb) {
|
|
120
174
|
const command = new CreateFaqCommand_1.CreateFaqCommand(args);
|
|
121
175
|
if (typeof optionsOrCb === "function") {
|
|
@@ -186,6 +240,20 @@ class Kendra extends KendraClient_1.KendraClient {
|
|
|
186
240
|
return this.send(command, optionsOrCb);
|
|
187
241
|
}
|
|
188
242
|
}
|
|
243
|
+
deleteExperience(args, optionsOrCb, cb) {
|
|
244
|
+
const command = new DeleteExperienceCommand_1.DeleteExperienceCommand(args);
|
|
245
|
+
if (typeof optionsOrCb === "function") {
|
|
246
|
+
this.send(command, optionsOrCb);
|
|
247
|
+
}
|
|
248
|
+
else if (typeof cb === "function") {
|
|
249
|
+
if (typeof optionsOrCb !== "object")
|
|
250
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
251
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
252
|
+
}
|
|
253
|
+
else {
|
|
254
|
+
return this.send(command, optionsOrCb);
|
|
255
|
+
}
|
|
256
|
+
}
|
|
189
257
|
deleteFaq(args, optionsOrCb, cb) {
|
|
190
258
|
const command = new DeleteFaqCommand_1.DeleteFaqCommand(args);
|
|
191
259
|
if (typeof optionsOrCb === "function") {
|
|
@@ -270,6 +338,20 @@ class Kendra extends KendraClient_1.KendraClient {
|
|
|
270
338
|
return this.send(command, optionsOrCb);
|
|
271
339
|
}
|
|
272
340
|
}
|
|
341
|
+
describeExperience(args, optionsOrCb, cb) {
|
|
342
|
+
const command = new DescribeExperienceCommand_1.DescribeExperienceCommand(args);
|
|
343
|
+
if (typeof optionsOrCb === "function") {
|
|
344
|
+
this.send(command, optionsOrCb);
|
|
345
|
+
}
|
|
346
|
+
else if (typeof cb === "function") {
|
|
347
|
+
if (typeof optionsOrCb !== "object")
|
|
348
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
349
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
350
|
+
}
|
|
351
|
+
else {
|
|
352
|
+
return this.send(command, optionsOrCb);
|
|
353
|
+
}
|
|
354
|
+
}
|
|
273
355
|
describeFaq(args, optionsOrCb, cb) {
|
|
274
356
|
const command = new DescribeFaqCommand_1.DescribeFaqCommand(args);
|
|
275
357
|
if (typeof optionsOrCb === "function") {
|
|
@@ -354,6 +436,34 @@ class Kendra extends KendraClient_1.KendraClient {
|
|
|
354
436
|
return this.send(command, optionsOrCb);
|
|
355
437
|
}
|
|
356
438
|
}
|
|
439
|
+
disassociateEntitiesFromExperience(args, optionsOrCb, cb) {
|
|
440
|
+
const command = new DisassociateEntitiesFromExperienceCommand_1.DisassociateEntitiesFromExperienceCommand(args);
|
|
441
|
+
if (typeof optionsOrCb === "function") {
|
|
442
|
+
this.send(command, optionsOrCb);
|
|
443
|
+
}
|
|
444
|
+
else if (typeof cb === "function") {
|
|
445
|
+
if (typeof optionsOrCb !== "object")
|
|
446
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
447
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
448
|
+
}
|
|
449
|
+
else {
|
|
450
|
+
return this.send(command, optionsOrCb);
|
|
451
|
+
}
|
|
452
|
+
}
|
|
453
|
+
disassociatePersonasFromEntities(args, optionsOrCb, cb) {
|
|
454
|
+
const command = new DisassociatePersonasFromEntitiesCommand_1.DisassociatePersonasFromEntitiesCommand(args);
|
|
455
|
+
if (typeof optionsOrCb === "function") {
|
|
456
|
+
this.send(command, optionsOrCb);
|
|
457
|
+
}
|
|
458
|
+
else if (typeof cb === "function") {
|
|
459
|
+
if (typeof optionsOrCb !== "object")
|
|
460
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
461
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
462
|
+
}
|
|
463
|
+
else {
|
|
464
|
+
return this.send(command, optionsOrCb);
|
|
465
|
+
}
|
|
466
|
+
}
|
|
357
467
|
getQuerySuggestions(args, optionsOrCb, cb) {
|
|
358
468
|
const command = new GetQuerySuggestionsCommand_1.GetQuerySuggestionsCommand(args);
|
|
359
469
|
if (typeof optionsOrCb === "function") {
|
|
@@ -368,6 +478,20 @@ class Kendra extends KendraClient_1.KendraClient {
|
|
|
368
478
|
return this.send(command, optionsOrCb);
|
|
369
479
|
}
|
|
370
480
|
}
|
|
481
|
+
getSnapshots(args, optionsOrCb, cb) {
|
|
482
|
+
const command = new GetSnapshotsCommand_1.GetSnapshotsCommand(args);
|
|
483
|
+
if (typeof optionsOrCb === "function") {
|
|
484
|
+
this.send(command, optionsOrCb);
|
|
485
|
+
}
|
|
486
|
+
else if (typeof cb === "function") {
|
|
487
|
+
if (typeof optionsOrCb !== "object")
|
|
488
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
489
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
490
|
+
}
|
|
491
|
+
else {
|
|
492
|
+
return this.send(command, optionsOrCb);
|
|
493
|
+
}
|
|
494
|
+
}
|
|
371
495
|
listDataSources(args, optionsOrCb, cb) {
|
|
372
496
|
const command = new ListDataSourcesCommand_1.ListDataSourcesCommand(args);
|
|
373
497
|
if (typeof optionsOrCb === "function") {
|
|
@@ -396,6 +520,48 @@ class Kendra extends KendraClient_1.KendraClient {
|
|
|
396
520
|
return this.send(command, optionsOrCb);
|
|
397
521
|
}
|
|
398
522
|
}
|
|
523
|
+
listEntityPersonas(args, optionsOrCb, cb) {
|
|
524
|
+
const command = new ListEntityPersonasCommand_1.ListEntityPersonasCommand(args);
|
|
525
|
+
if (typeof optionsOrCb === "function") {
|
|
526
|
+
this.send(command, optionsOrCb);
|
|
527
|
+
}
|
|
528
|
+
else if (typeof cb === "function") {
|
|
529
|
+
if (typeof optionsOrCb !== "object")
|
|
530
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
531
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
532
|
+
}
|
|
533
|
+
else {
|
|
534
|
+
return this.send(command, optionsOrCb);
|
|
535
|
+
}
|
|
536
|
+
}
|
|
537
|
+
listExperienceEntities(args, optionsOrCb, cb) {
|
|
538
|
+
const command = new ListExperienceEntitiesCommand_1.ListExperienceEntitiesCommand(args);
|
|
539
|
+
if (typeof optionsOrCb === "function") {
|
|
540
|
+
this.send(command, optionsOrCb);
|
|
541
|
+
}
|
|
542
|
+
else if (typeof cb === "function") {
|
|
543
|
+
if (typeof optionsOrCb !== "object")
|
|
544
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
545
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
546
|
+
}
|
|
547
|
+
else {
|
|
548
|
+
return this.send(command, optionsOrCb);
|
|
549
|
+
}
|
|
550
|
+
}
|
|
551
|
+
listExperiences(args, optionsOrCb, cb) {
|
|
552
|
+
const command = new ListExperiencesCommand_1.ListExperiencesCommand(args);
|
|
553
|
+
if (typeof optionsOrCb === "function") {
|
|
554
|
+
this.send(command, optionsOrCb);
|
|
555
|
+
}
|
|
556
|
+
else if (typeof cb === "function") {
|
|
557
|
+
if (typeof optionsOrCb !== "object")
|
|
558
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
559
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
560
|
+
}
|
|
561
|
+
else {
|
|
562
|
+
return this.send(command, optionsOrCb);
|
|
563
|
+
}
|
|
564
|
+
}
|
|
399
565
|
listFaqs(args, optionsOrCb, cb) {
|
|
400
566
|
const command = new ListFaqsCommand_1.ListFaqsCommand(args);
|
|
401
567
|
if (typeof optionsOrCb === "function") {
|
|
@@ -592,6 +758,20 @@ class Kendra extends KendraClient_1.KendraClient {
|
|
|
592
758
|
return this.send(command, optionsOrCb);
|
|
593
759
|
}
|
|
594
760
|
}
|
|
761
|
+
updateExperience(args, optionsOrCb, cb) {
|
|
762
|
+
const command = new UpdateExperienceCommand_1.UpdateExperienceCommand(args);
|
|
763
|
+
if (typeof optionsOrCb === "function") {
|
|
764
|
+
this.send(command, optionsOrCb);
|
|
765
|
+
}
|
|
766
|
+
else if (typeof cb === "function") {
|
|
767
|
+
if (typeof optionsOrCb !== "object")
|
|
768
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
769
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
770
|
+
}
|
|
771
|
+
else {
|
|
772
|
+
return this.send(command, optionsOrCb);
|
|
773
|
+
}
|
|
774
|
+
}
|
|
595
775
|
updateIndex(args, optionsOrCb, cb) {
|
|
596
776
|
const command = new UpdateIndexCommand_1.UpdateIndexCommand(args);
|
|
597
777
|
if (typeof optionsOrCb === "function") {
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.AssociateEntitiesToExperienceCommand = void 0;
|
|
4
|
+
const middleware_serde_1 = require("@aws-sdk/middleware-serde");
|
|
5
|
+
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
6
|
+
const models_0_1 = require("../models/models_0");
|
|
7
|
+
const Aws_json1_1_1 = require("../protocols/Aws_json1_1");
|
|
8
|
+
class AssociateEntitiesToExperienceCommand extends smithy_client_1.Command {
|
|
9
|
+
constructor(input) {
|
|
10
|
+
super();
|
|
11
|
+
this.input = input;
|
|
12
|
+
}
|
|
13
|
+
resolveMiddleware(clientStack, configuration, options) {
|
|
14
|
+
this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
15
|
+
const stack = clientStack.concat(this.middlewareStack);
|
|
16
|
+
const { logger } = configuration;
|
|
17
|
+
const clientName = "KendraClient";
|
|
18
|
+
const commandName = "AssociateEntitiesToExperienceCommand";
|
|
19
|
+
const handlerExecutionContext = {
|
|
20
|
+
logger,
|
|
21
|
+
clientName,
|
|
22
|
+
commandName,
|
|
23
|
+
inputFilterSensitiveLog: models_0_1.AssociateEntitiesToExperienceRequest.filterSensitiveLog,
|
|
24
|
+
outputFilterSensitiveLog: models_0_1.AssociateEntitiesToExperienceResponse.filterSensitiveLog,
|
|
25
|
+
};
|
|
26
|
+
const { requestHandler } = configuration;
|
|
27
|
+
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
28
|
+
}
|
|
29
|
+
serialize(input, context) {
|
|
30
|
+
return Aws_json1_1_1.serializeAws_json1_1AssociateEntitiesToExperienceCommand(input, context);
|
|
31
|
+
}
|
|
32
|
+
deserialize(output, context) {
|
|
33
|
+
return Aws_json1_1_1.deserializeAws_json1_1AssociateEntitiesToExperienceCommand(output, context);
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
exports.AssociateEntitiesToExperienceCommand = AssociateEntitiesToExperienceCommand;
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.AssociatePersonasToEntitiesCommand = void 0;
|
|
4
|
+
const middleware_serde_1 = require("@aws-sdk/middleware-serde");
|
|
5
|
+
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
6
|
+
const models_0_1 = require("../models/models_0");
|
|
7
|
+
const Aws_json1_1_1 = require("../protocols/Aws_json1_1");
|
|
8
|
+
class AssociatePersonasToEntitiesCommand extends smithy_client_1.Command {
|
|
9
|
+
constructor(input) {
|
|
10
|
+
super();
|
|
11
|
+
this.input = input;
|
|
12
|
+
}
|
|
13
|
+
resolveMiddleware(clientStack, configuration, options) {
|
|
14
|
+
this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
15
|
+
const stack = clientStack.concat(this.middlewareStack);
|
|
16
|
+
const { logger } = configuration;
|
|
17
|
+
const clientName = "KendraClient";
|
|
18
|
+
const commandName = "AssociatePersonasToEntitiesCommand";
|
|
19
|
+
const handlerExecutionContext = {
|
|
20
|
+
logger,
|
|
21
|
+
clientName,
|
|
22
|
+
commandName,
|
|
23
|
+
inputFilterSensitiveLog: models_0_1.AssociatePersonasToEntitiesRequest.filterSensitiveLog,
|
|
24
|
+
outputFilterSensitiveLog: models_0_1.AssociatePersonasToEntitiesResponse.filterSensitiveLog,
|
|
25
|
+
};
|
|
26
|
+
const { requestHandler } = configuration;
|
|
27
|
+
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
28
|
+
}
|
|
29
|
+
serialize(input, context) {
|
|
30
|
+
return Aws_json1_1_1.serializeAws_json1_1AssociatePersonasToEntitiesCommand(input, context);
|
|
31
|
+
}
|
|
32
|
+
deserialize(output, context) {
|
|
33
|
+
return Aws_json1_1_1.deserializeAws_json1_1AssociatePersonasToEntitiesCommand(output, context);
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
exports.AssociatePersonasToEntitiesCommand = AssociatePersonasToEntitiesCommand;
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.CreateExperienceCommand = void 0;
|
|
4
|
+
const middleware_serde_1 = require("@aws-sdk/middleware-serde");
|
|
5
|
+
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
6
|
+
const models_0_1 = require("../models/models_0");
|
|
7
|
+
const Aws_json1_1_1 = require("../protocols/Aws_json1_1");
|
|
8
|
+
class CreateExperienceCommand extends smithy_client_1.Command {
|
|
9
|
+
constructor(input) {
|
|
10
|
+
super();
|
|
11
|
+
this.input = input;
|
|
12
|
+
}
|
|
13
|
+
resolveMiddleware(clientStack, configuration, options) {
|
|
14
|
+
this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
15
|
+
const stack = clientStack.concat(this.middlewareStack);
|
|
16
|
+
const { logger } = configuration;
|
|
17
|
+
const clientName = "KendraClient";
|
|
18
|
+
const commandName = "CreateExperienceCommand";
|
|
19
|
+
const handlerExecutionContext = {
|
|
20
|
+
logger,
|
|
21
|
+
clientName,
|
|
22
|
+
commandName,
|
|
23
|
+
inputFilterSensitiveLog: models_0_1.CreateExperienceRequest.filterSensitiveLog,
|
|
24
|
+
outputFilterSensitiveLog: models_0_1.CreateExperienceResponse.filterSensitiveLog,
|
|
25
|
+
};
|
|
26
|
+
const { requestHandler } = configuration;
|
|
27
|
+
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
28
|
+
}
|
|
29
|
+
serialize(input, context) {
|
|
30
|
+
return Aws_json1_1_1.serializeAws_json1_1CreateExperienceCommand(input, context);
|
|
31
|
+
}
|
|
32
|
+
deserialize(output, context) {
|
|
33
|
+
return Aws_json1_1_1.deserializeAws_json1_1CreateExperienceCommand(output, context);
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
exports.CreateExperienceCommand = CreateExperienceCommand;
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.DeleteExperienceCommand = void 0;
|
|
4
|
+
const middleware_serde_1 = require("@aws-sdk/middleware-serde");
|
|
5
|
+
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
6
|
+
const models_0_1 = require("../models/models_0");
|
|
7
|
+
const Aws_json1_1_1 = require("../protocols/Aws_json1_1");
|
|
8
|
+
class DeleteExperienceCommand extends smithy_client_1.Command {
|
|
9
|
+
constructor(input) {
|
|
10
|
+
super();
|
|
11
|
+
this.input = input;
|
|
12
|
+
}
|
|
13
|
+
resolveMiddleware(clientStack, configuration, options) {
|
|
14
|
+
this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
15
|
+
const stack = clientStack.concat(this.middlewareStack);
|
|
16
|
+
const { logger } = configuration;
|
|
17
|
+
const clientName = "KendraClient";
|
|
18
|
+
const commandName = "DeleteExperienceCommand";
|
|
19
|
+
const handlerExecutionContext = {
|
|
20
|
+
logger,
|
|
21
|
+
clientName,
|
|
22
|
+
commandName,
|
|
23
|
+
inputFilterSensitiveLog: models_0_1.DeleteExperienceRequest.filterSensitiveLog,
|
|
24
|
+
outputFilterSensitiveLog: models_0_1.DeleteExperienceResponse.filterSensitiveLog,
|
|
25
|
+
};
|
|
26
|
+
const { requestHandler } = configuration;
|
|
27
|
+
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
28
|
+
}
|
|
29
|
+
serialize(input, context) {
|
|
30
|
+
return Aws_json1_1_1.serializeAws_json1_1DeleteExperienceCommand(input, context);
|
|
31
|
+
}
|
|
32
|
+
deserialize(output, context) {
|
|
33
|
+
return Aws_json1_1_1.deserializeAws_json1_1DeleteExperienceCommand(output, context);
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
exports.DeleteExperienceCommand = DeleteExperienceCommand;
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.DescribeExperienceCommand = void 0;
|
|
4
|
+
const middleware_serde_1 = require("@aws-sdk/middleware-serde");
|
|
5
|
+
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
6
|
+
const models_0_1 = require("../models/models_0");
|
|
7
|
+
const Aws_json1_1_1 = require("../protocols/Aws_json1_1");
|
|
8
|
+
class DescribeExperienceCommand extends smithy_client_1.Command {
|
|
9
|
+
constructor(input) {
|
|
10
|
+
super();
|
|
11
|
+
this.input = input;
|
|
12
|
+
}
|
|
13
|
+
resolveMiddleware(clientStack, configuration, options) {
|
|
14
|
+
this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
15
|
+
const stack = clientStack.concat(this.middlewareStack);
|
|
16
|
+
const { logger } = configuration;
|
|
17
|
+
const clientName = "KendraClient";
|
|
18
|
+
const commandName = "DescribeExperienceCommand";
|
|
19
|
+
const handlerExecutionContext = {
|
|
20
|
+
logger,
|
|
21
|
+
clientName,
|
|
22
|
+
commandName,
|
|
23
|
+
inputFilterSensitiveLog: models_0_1.DescribeExperienceRequest.filterSensitiveLog,
|
|
24
|
+
outputFilterSensitiveLog: models_0_1.DescribeExperienceResponse.filterSensitiveLog,
|
|
25
|
+
};
|
|
26
|
+
const { requestHandler } = configuration;
|
|
27
|
+
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
28
|
+
}
|
|
29
|
+
serialize(input, context) {
|
|
30
|
+
return Aws_json1_1_1.serializeAws_json1_1DescribeExperienceCommand(input, context);
|
|
31
|
+
}
|
|
32
|
+
deserialize(output, context) {
|
|
33
|
+
return Aws_json1_1_1.deserializeAws_json1_1DescribeExperienceCommand(output, context);
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
exports.DescribeExperienceCommand = DescribeExperienceCommand;
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.DisassociateEntitiesFromExperienceCommand = void 0;
|
|
4
|
+
const middleware_serde_1 = require("@aws-sdk/middleware-serde");
|
|
5
|
+
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
6
|
+
const models_0_1 = require("../models/models_0");
|
|
7
|
+
const Aws_json1_1_1 = require("../protocols/Aws_json1_1");
|
|
8
|
+
class DisassociateEntitiesFromExperienceCommand extends smithy_client_1.Command {
|
|
9
|
+
constructor(input) {
|
|
10
|
+
super();
|
|
11
|
+
this.input = input;
|
|
12
|
+
}
|
|
13
|
+
resolveMiddleware(clientStack, configuration, options) {
|
|
14
|
+
this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
15
|
+
const stack = clientStack.concat(this.middlewareStack);
|
|
16
|
+
const { logger } = configuration;
|
|
17
|
+
const clientName = "KendraClient";
|
|
18
|
+
const commandName = "DisassociateEntitiesFromExperienceCommand";
|
|
19
|
+
const handlerExecutionContext = {
|
|
20
|
+
logger,
|
|
21
|
+
clientName,
|
|
22
|
+
commandName,
|
|
23
|
+
inputFilterSensitiveLog: models_0_1.DisassociateEntitiesFromExperienceRequest.filterSensitiveLog,
|
|
24
|
+
outputFilterSensitiveLog: models_0_1.DisassociateEntitiesFromExperienceResponse.filterSensitiveLog,
|
|
25
|
+
};
|
|
26
|
+
const { requestHandler } = configuration;
|
|
27
|
+
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
28
|
+
}
|
|
29
|
+
serialize(input, context) {
|
|
30
|
+
return Aws_json1_1_1.serializeAws_json1_1DisassociateEntitiesFromExperienceCommand(input, context);
|
|
31
|
+
}
|
|
32
|
+
deserialize(output, context) {
|
|
33
|
+
return Aws_json1_1_1.deserializeAws_json1_1DisassociateEntitiesFromExperienceCommand(output, context);
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
exports.DisassociateEntitiesFromExperienceCommand = DisassociateEntitiesFromExperienceCommand;
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.DisassociatePersonasFromEntitiesCommand = void 0;
|
|
4
|
+
const middleware_serde_1 = require("@aws-sdk/middleware-serde");
|
|
5
|
+
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
6
|
+
const models_0_1 = require("../models/models_0");
|
|
7
|
+
const Aws_json1_1_1 = require("../protocols/Aws_json1_1");
|
|
8
|
+
class DisassociatePersonasFromEntitiesCommand extends smithy_client_1.Command {
|
|
9
|
+
constructor(input) {
|
|
10
|
+
super();
|
|
11
|
+
this.input = input;
|
|
12
|
+
}
|
|
13
|
+
resolveMiddleware(clientStack, configuration, options) {
|
|
14
|
+
this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
15
|
+
const stack = clientStack.concat(this.middlewareStack);
|
|
16
|
+
const { logger } = configuration;
|
|
17
|
+
const clientName = "KendraClient";
|
|
18
|
+
const commandName = "DisassociatePersonasFromEntitiesCommand";
|
|
19
|
+
const handlerExecutionContext = {
|
|
20
|
+
logger,
|
|
21
|
+
clientName,
|
|
22
|
+
commandName,
|
|
23
|
+
inputFilterSensitiveLog: models_0_1.DisassociatePersonasFromEntitiesRequest.filterSensitiveLog,
|
|
24
|
+
outputFilterSensitiveLog: models_0_1.DisassociatePersonasFromEntitiesResponse.filterSensitiveLog,
|
|
25
|
+
};
|
|
26
|
+
const { requestHandler } = configuration;
|
|
27
|
+
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
28
|
+
}
|
|
29
|
+
serialize(input, context) {
|
|
30
|
+
return Aws_json1_1_1.serializeAws_json1_1DisassociatePersonasFromEntitiesCommand(input, context);
|
|
31
|
+
}
|
|
32
|
+
deserialize(output, context) {
|
|
33
|
+
return Aws_json1_1_1.deserializeAws_json1_1DisassociatePersonasFromEntitiesCommand(output, context);
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
exports.DisassociatePersonasFromEntitiesCommand = DisassociatePersonasFromEntitiesCommand;
|