@aws-sdk/client-kendra 3.121.0 → 3.130.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 +32 -0
- package/dist-cjs/Kendra.js +75 -0
- package/dist-cjs/commands/CreateAccessControlConfigurationCommand.js +36 -0
- package/dist-cjs/commands/DeleteAccessControlConfigurationCommand.js +36 -0
- package/dist-cjs/commands/DescribeAccessControlConfigurationCommand.js +36 -0
- package/dist-cjs/commands/ListAccessControlConfigurationsCommand.js +36 -0
- package/dist-cjs/commands/QueryCommand.js +2 -1
- package/dist-cjs/commands/UpdateAccessControlConfigurationCommand.js +36 -0
- package/dist-cjs/commands/index.js +5 -0
- package/dist-cjs/models/index.js +1 -0
- package/dist-cjs/models/models_0.js +72 -12
- package/dist-cjs/models/models_1.js +9 -0
- package/dist-cjs/pagination/ListAccessControlConfigurationsPaginator.js +36 -0
- package/dist-cjs/pagination/index.js +1 -0
- package/dist-cjs/protocols/Aws_json1_1.js +1355 -1396
- package/dist-es/Kendra.js +75 -0
- package/dist-es/commands/CreateAccessControlConfigurationCommand.js +39 -0
- package/dist-es/commands/DeleteAccessControlConfigurationCommand.js +39 -0
- package/dist-es/commands/DescribeAccessControlConfigurationCommand.js +39 -0
- package/dist-es/commands/ListAccessControlConfigurationsCommand.js +39 -0
- package/dist-es/commands/QueryCommand.js +2 -1
- package/dist-es/commands/UpdateAccessControlConfigurationCommand.js +39 -0
- package/dist-es/commands/index.js +5 -0
- package/dist-es/models/index.js +1 -0
- package/dist-es/models/models_0.js +44 -4
- package/dist-es/models/models_1.js +5 -0
- package/dist-es/pagination/ListAccessControlConfigurationsPaginator.js +75 -0
- package/dist-es/pagination/index.js +1 -0
- package/dist-es/protocols/Aws_json1_1.js +1150 -1116
- package/dist-types/Kendra.d.ts +99 -11
- package/dist-types/KendraClient.d.ts +7 -2
- package/dist-types/commands/CreateAccessControlConfigurationCommand.d.ts +59 -0
- package/dist-types/commands/CreateFaqCommand.d.ts +1 -1
- package/dist-types/commands/CreateIndexCommand.d.ts +1 -1
- package/dist-types/commands/DeleteAccessControlConfigurationCommand.d.ts +38 -0
- package/dist-types/commands/DescribeAccessControlConfigurationCommand.d.ts +38 -0
- package/dist-types/commands/DescribeIndexCommand.d.ts +1 -1
- package/dist-types/commands/DescribeQuerySuggestionsBlockListCommand.d.ts +2 -1
- package/dist-types/commands/DescribeQuerySuggestionsConfigCommand.d.ts +1 -1
- package/dist-types/commands/DescribeThesaurusCommand.d.ts +1 -1
- package/dist-types/commands/ListAccessControlConfigurationsCommand.d.ts +38 -0
- package/dist-types/commands/ListThesauriCommand.d.ts +1 -1
- package/dist-types/commands/PutPrincipalMappingCommand.d.ts +3 -3
- package/dist-types/commands/QueryCommand.d.ts +2 -1
- package/dist-types/commands/UpdateAccessControlConfigurationCommand.d.ts +54 -0
- package/dist-types/commands/UpdateThesaurusCommand.d.ts +1 -1
- package/dist-types/commands/index.d.ts +5 -0
- package/dist-types/models/index.d.ts +1 -0
- package/dist-types/models/models_0.d.ts +411 -271
- package/dist-types/models/models_1.d.ts +95 -0
- package/dist-types/pagination/ListAccessControlConfigurationsPaginator.d.ts +4 -0
- package/dist-types/pagination/index.d.ts +1 -0
- package/dist-types/protocols/Aws_json1_1.d.ts +15 -0
- package/dist-types/ts3.4/Kendra.d.ts +25 -0
- package/dist-types/ts3.4/KendraClient.d.ts +7 -2
- package/dist-types/ts3.4/commands/CreateAccessControlConfigurationCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/DeleteAccessControlConfigurationCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/DescribeAccessControlConfigurationCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/ListAccessControlConfigurationsCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/QueryCommand.d.ts +2 -1
- package/dist-types/ts3.4/commands/UpdateAccessControlConfigurationCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/index.d.ts +5 -0
- package/dist-types/ts3.4/models/index.d.ts +1 -0
- package/dist-types/ts3.4/models/models_0.d.ts +125 -32
- package/dist-types/ts3.4/models/models_1.d.ts +33 -0
- package/dist-types/ts3.4/pagination/ListAccessControlConfigurationsPaginator.d.ts +4 -0
- package/dist-types/ts3.4/pagination/index.d.ts +1 -0
- package/dist-types/ts3.4/protocols/Aws_json1_1.d.ts +15 -0
- package/package.json +26 -26
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,38 @@
|
|
|
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.130.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.129.0...v3.130.0) (2022-07-14)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Bug Fixes
|
|
10
|
+
|
|
11
|
+
* **codegen:** fix error code parsing when it's a number ([#3371](https://github.com/aws/aws-sdk-js-v3/issues/3371)) ([c2d8522](https://github.com/aws/aws-sdk-js-v3/commit/c2d852279a3d23958521a6ceb4f4c642b0cb1848))
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
### Features
|
|
15
|
+
|
|
16
|
+
* **client-kendra:** This release adds AccessControlConfigurations which allow you to redefine your document level access control without the need for content re-indexing. ([b1c43cf](https://github.com/aws/aws-sdk-js-v3/commit/b1c43cf3b7afdaa0816cceaba2538243536074b6))
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
# [3.128.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.127.0...v3.128.0) (2022-07-12)
|
|
23
|
+
|
|
24
|
+
**Note:** Version bump only for package @aws-sdk/client-kendra
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
# [3.127.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.126.0...v3.127.0) (2022-07-11)
|
|
31
|
+
|
|
32
|
+
**Note:** Version bump only for package @aws-sdk/client-kendra
|
|
33
|
+
|
|
34
|
+
|
|
35
|
+
|
|
36
|
+
|
|
37
|
+
|
|
6
38
|
# [3.121.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.120.0...v3.121.0) (2022-06-30)
|
|
7
39
|
|
|
8
40
|
|
package/dist-cjs/Kendra.js
CHANGED
|
@@ -7,12 +7,14 @@ const BatchDeleteDocumentCommand_1 = require("./commands/BatchDeleteDocumentComm
|
|
|
7
7
|
const BatchGetDocumentStatusCommand_1 = require("./commands/BatchGetDocumentStatusCommand");
|
|
8
8
|
const BatchPutDocumentCommand_1 = require("./commands/BatchPutDocumentCommand");
|
|
9
9
|
const ClearQuerySuggestionsCommand_1 = require("./commands/ClearQuerySuggestionsCommand");
|
|
10
|
+
const CreateAccessControlConfigurationCommand_1 = require("./commands/CreateAccessControlConfigurationCommand");
|
|
10
11
|
const CreateDataSourceCommand_1 = require("./commands/CreateDataSourceCommand");
|
|
11
12
|
const CreateExperienceCommand_1 = require("./commands/CreateExperienceCommand");
|
|
12
13
|
const CreateFaqCommand_1 = require("./commands/CreateFaqCommand");
|
|
13
14
|
const CreateIndexCommand_1 = require("./commands/CreateIndexCommand");
|
|
14
15
|
const CreateQuerySuggestionsBlockListCommand_1 = require("./commands/CreateQuerySuggestionsBlockListCommand");
|
|
15
16
|
const CreateThesaurusCommand_1 = require("./commands/CreateThesaurusCommand");
|
|
17
|
+
const DeleteAccessControlConfigurationCommand_1 = require("./commands/DeleteAccessControlConfigurationCommand");
|
|
16
18
|
const DeleteDataSourceCommand_1 = require("./commands/DeleteDataSourceCommand");
|
|
17
19
|
const DeleteExperienceCommand_1 = require("./commands/DeleteExperienceCommand");
|
|
18
20
|
const DeleteFaqCommand_1 = require("./commands/DeleteFaqCommand");
|
|
@@ -20,6 +22,7 @@ const DeleteIndexCommand_1 = require("./commands/DeleteIndexCommand");
|
|
|
20
22
|
const DeletePrincipalMappingCommand_1 = require("./commands/DeletePrincipalMappingCommand");
|
|
21
23
|
const DeleteQuerySuggestionsBlockListCommand_1 = require("./commands/DeleteQuerySuggestionsBlockListCommand");
|
|
22
24
|
const DeleteThesaurusCommand_1 = require("./commands/DeleteThesaurusCommand");
|
|
25
|
+
const DescribeAccessControlConfigurationCommand_1 = require("./commands/DescribeAccessControlConfigurationCommand");
|
|
23
26
|
const DescribeDataSourceCommand_1 = require("./commands/DescribeDataSourceCommand");
|
|
24
27
|
const DescribeExperienceCommand_1 = require("./commands/DescribeExperienceCommand");
|
|
25
28
|
const DescribeFaqCommand_1 = require("./commands/DescribeFaqCommand");
|
|
@@ -32,6 +35,7 @@ const DisassociateEntitiesFromExperienceCommand_1 = require("./commands/Disassoc
|
|
|
32
35
|
const DisassociatePersonasFromEntitiesCommand_1 = require("./commands/DisassociatePersonasFromEntitiesCommand");
|
|
33
36
|
const GetQuerySuggestionsCommand_1 = require("./commands/GetQuerySuggestionsCommand");
|
|
34
37
|
const GetSnapshotsCommand_1 = require("./commands/GetSnapshotsCommand");
|
|
38
|
+
const ListAccessControlConfigurationsCommand_1 = require("./commands/ListAccessControlConfigurationsCommand");
|
|
35
39
|
const ListDataSourcesCommand_1 = require("./commands/ListDataSourcesCommand");
|
|
36
40
|
const ListDataSourceSyncJobsCommand_1 = require("./commands/ListDataSourceSyncJobsCommand");
|
|
37
41
|
const ListEntityPersonasCommand_1 = require("./commands/ListEntityPersonasCommand");
|
|
@@ -50,6 +54,7 @@ const StopDataSourceSyncJobCommand_1 = require("./commands/StopDataSourceSyncJob
|
|
|
50
54
|
const SubmitFeedbackCommand_1 = require("./commands/SubmitFeedbackCommand");
|
|
51
55
|
const TagResourceCommand_1 = require("./commands/TagResourceCommand");
|
|
52
56
|
const UntagResourceCommand_1 = require("./commands/UntagResourceCommand");
|
|
57
|
+
const UpdateAccessControlConfigurationCommand_1 = require("./commands/UpdateAccessControlConfigurationCommand");
|
|
53
58
|
const UpdateDataSourceCommand_1 = require("./commands/UpdateDataSourceCommand");
|
|
54
59
|
const UpdateExperienceCommand_1 = require("./commands/UpdateExperienceCommand");
|
|
55
60
|
const UpdateIndexCommand_1 = require("./commands/UpdateIndexCommand");
|
|
@@ -142,6 +147,20 @@ class Kendra extends KendraClient_1.KendraClient {
|
|
|
142
147
|
return this.send(command, optionsOrCb);
|
|
143
148
|
}
|
|
144
149
|
}
|
|
150
|
+
createAccessControlConfiguration(args, optionsOrCb, cb) {
|
|
151
|
+
const command = new CreateAccessControlConfigurationCommand_1.CreateAccessControlConfigurationCommand(args);
|
|
152
|
+
if (typeof optionsOrCb === "function") {
|
|
153
|
+
this.send(command, optionsOrCb);
|
|
154
|
+
}
|
|
155
|
+
else if (typeof cb === "function") {
|
|
156
|
+
if (typeof optionsOrCb !== "object")
|
|
157
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
158
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
159
|
+
}
|
|
160
|
+
else {
|
|
161
|
+
return this.send(command, optionsOrCb);
|
|
162
|
+
}
|
|
163
|
+
}
|
|
145
164
|
createDataSource(args, optionsOrCb, cb) {
|
|
146
165
|
const command = new CreateDataSourceCommand_1.CreateDataSourceCommand(args);
|
|
147
166
|
if (typeof optionsOrCb === "function") {
|
|
@@ -226,6 +245,20 @@ class Kendra extends KendraClient_1.KendraClient {
|
|
|
226
245
|
return this.send(command, optionsOrCb);
|
|
227
246
|
}
|
|
228
247
|
}
|
|
248
|
+
deleteAccessControlConfiguration(args, optionsOrCb, cb) {
|
|
249
|
+
const command = new DeleteAccessControlConfigurationCommand_1.DeleteAccessControlConfigurationCommand(args);
|
|
250
|
+
if (typeof optionsOrCb === "function") {
|
|
251
|
+
this.send(command, optionsOrCb);
|
|
252
|
+
}
|
|
253
|
+
else if (typeof cb === "function") {
|
|
254
|
+
if (typeof optionsOrCb !== "object")
|
|
255
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
256
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
257
|
+
}
|
|
258
|
+
else {
|
|
259
|
+
return this.send(command, optionsOrCb);
|
|
260
|
+
}
|
|
261
|
+
}
|
|
229
262
|
deleteDataSource(args, optionsOrCb, cb) {
|
|
230
263
|
const command = new DeleteDataSourceCommand_1.DeleteDataSourceCommand(args);
|
|
231
264
|
if (typeof optionsOrCb === "function") {
|
|
@@ -324,6 +357,20 @@ class Kendra extends KendraClient_1.KendraClient {
|
|
|
324
357
|
return this.send(command, optionsOrCb);
|
|
325
358
|
}
|
|
326
359
|
}
|
|
360
|
+
describeAccessControlConfiguration(args, optionsOrCb, cb) {
|
|
361
|
+
const command = new DescribeAccessControlConfigurationCommand_1.DescribeAccessControlConfigurationCommand(args);
|
|
362
|
+
if (typeof optionsOrCb === "function") {
|
|
363
|
+
this.send(command, optionsOrCb);
|
|
364
|
+
}
|
|
365
|
+
else if (typeof cb === "function") {
|
|
366
|
+
if (typeof optionsOrCb !== "object")
|
|
367
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
368
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
369
|
+
}
|
|
370
|
+
else {
|
|
371
|
+
return this.send(command, optionsOrCb);
|
|
372
|
+
}
|
|
373
|
+
}
|
|
327
374
|
describeDataSource(args, optionsOrCb, cb) {
|
|
328
375
|
const command = new DescribeDataSourceCommand_1.DescribeDataSourceCommand(args);
|
|
329
376
|
if (typeof optionsOrCb === "function") {
|
|
@@ -492,6 +539,20 @@ class Kendra extends KendraClient_1.KendraClient {
|
|
|
492
539
|
return this.send(command, optionsOrCb);
|
|
493
540
|
}
|
|
494
541
|
}
|
|
542
|
+
listAccessControlConfigurations(args, optionsOrCb, cb) {
|
|
543
|
+
const command = new ListAccessControlConfigurationsCommand_1.ListAccessControlConfigurationsCommand(args);
|
|
544
|
+
if (typeof optionsOrCb === "function") {
|
|
545
|
+
this.send(command, optionsOrCb);
|
|
546
|
+
}
|
|
547
|
+
else if (typeof cb === "function") {
|
|
548
|
+
if (typeof optionsOrCb !== "object")
|
|
549
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
550
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
551
|
+
}
|
|
552
|
+
else {
|
|
553
|
+
return this.send(command, optionsOrCb);
|
|
554
|
+
}
|
|
555
|
+
}
|
|
495
556
|
listDataSources(args, optionsOrCb, cb) {
|
|
496
557
|
const command = new ListDataSourcesCommand_1.ListDataSourcesCommand(args);
|
|
497
558
|
if (typeof optionsOrCb === "function") {
|
|
@@ -744,6 +805,20 @@ class Kendra extends KendraClient_1.KendraClient {
|
|
|
744
805
|
return this.send(command, optionsOrCb);
|
|
745
806
|
}
|
|
746
807
|
}
|
|
808
|
+
updateAccessControlConfiguration(args, optionsOrCb, cb) {
|
|
809
|
+
const command = new UpdateAccessControlConfigurationCommand_1.UpdateAccessControlConfigurationCommand(args);
|
|
810
|
+
if (typeof optionsOrCb === "function") {
|
|
811
|
+
this.send(command, optionsOrCb);
|
|
812
|
+
}
|
|
813
|
+
else if (typeof cb === "function") {
|
|
814
|
+
if (typeof optionsOrCb !== "object")
|
|
815
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
816
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
817
|
+
}
|
|
818
|
+
else {
|
|
819
|
+
return this.send(command, optionsOrCb);
|
|
820
|
+
}
|
|
821
|
+
}
|
|
747
822
|
updateDataSource(args, optionsOrCb, cb) {
|
|
748
823
|
const command = new UpdateDataSourceCommand_1.UpdateDataSourceCommand(args);
|
|
749
824
|
if (typeof optionsOrCb === "function") {
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.CreateAccessControlConfigurationCommand = 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 CreateAccessControlConfigurationCommand extends smithy_client_1.Command {
|
|
9
|
+
constructor(input) {
|
|
10
|
+
super();
|
|
11
|
+
this.input = input;
|
|
12
|
+
}
|
|
13
|
+
resolveMiddleware(clientStack, configuration, options) {
|
|
14
|
+
this.middlewareStack.use((0, 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 = "CreateAccessControlConfigurationCommand";
|
|
19
|
+
const handlerExecutionContext = {
|
|
20
|
+
logger,
|
|
21
|
+
clientName,
|
|
22
|
+
commandName,
|
|
23
|
+
inputFilterSensitiveLog: models_0_1.CreateAccessControlConfigurationRequest.filterSensitiveLog,
|
|
24
|
+
outputFilterSensitiveLog: models_0_1.CreateAccessControlConfigurationResponse.filterSensitiveLog,
|
|
25
|
+
};
|
|
26
|
+
const { requestHandler } = configuration;
|
|
27
|
+
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
28
|
+
}
|
|
29
|
+
serialize(input, context) {
|
|
30
|
+
return (0, Aws_json1_1_1.serializeAws_json1_1CreateAccessControlConfigurationCommand)(input, context);
|
|
31
|
+
}
|
|
32
|
+
deserialize(output, context) {
|
|
33
|
+
return (0, Aws_json1_1_1.deserializeAws_json1_1CreateAccessControlConfigurationCommand)(output, context);
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
exports.CreateAccessControlConfigurationCommand = CreateAccessControlConfigurationCommand;
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.DeleteAccessControlConfigurationCommand = 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 DeleteAccessControlConfigurationCommand extends smithy_client_1.Command {
|
|
9
|
+
constructor(input) {
|
|
10
|
+
super();
|
|
11
|
+
this.input = input;
|
|
12
|
+
}
|
|
13
|
+
resolveMiddleware(clientStack, configuration, options) {
|
|
14
|
+
this.middlewareStack.use((0, 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 = "DeleteAccessControlConfigurationCommand";
|
|
19
|
+
const handlerExecutionContext = {
|
|
20
|
+
logger,
|
|
21
|
+
clientName,
|
|
22
|
+
commandName,
|
|
23
|
+
inputFilterSensitiveLog: models_0_1.DeleteAccessControlConfigurationRequest.filterSensitiveLog,
|
|
24
|
+
outputFilterSensitiveLog: models_0_1.DeleteAccessControlConfigurationResponse.filterSensitiveLog,
|
|
25
|
+
};
|
|
26
|
+
const { requestHandler } = configuration;
|
|
27
|
+
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
28
|
+
}
|
|
29
|
+
serialize(input, context) {
|
|
30
|
+
return (0, Aws_json1_1_1.serializeAws_json1_1DeleteAccessControlConfigurationCommand)(input, context);
|
|
31
|
+
}
|
|
32
|
+
deserialize(output, context) {
|
|
33
|
+
return (0, Aws_json1_1_1.deserializeAws_json1_1DeleteAccessControlConfigurationCommand)(output, context);
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
exports.DeleteAccessControlConfigurationCommand = DeleteAccessControlConfigurationCommand;
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.DescribeAccessControlConfigurationCommand = 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 DescribeAccessControlConfigurationCommand extends smithy_client_1.Command {
|
|
9
|
+
constructor(input) {
|
|
10
|
+
super();
|
|
11
|
+
this.input = input;
|
|
12
|
+
}
|
|
13
|
+
resolveMiddleware(clientStack, configuration, options) {
|
|
14
|
+
this.middlewareStack.use((0, 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 = "DescribeAccessControlConfigurationCommand";
|
|
19
|
+
const handlerExecutionContext = {
|
|
20
|
+
logger,
|
|
21
|
+
clientName,
|
|
22
|
+
commandName,
|
|
23
|
+
inputFilterSensitiveLog: models_0_1.DescribeAccessControlConfigurationRequest.filterSensitiveLog,
|
|
24
|
+
outputFilterSensitiveLog: models_0_1.DescribeAccessControlConfigurationResponse.filterSensitiveLog,
|
|
25
|
+
};
|
|
26
|
+
const { requestHandler } = configuration;
|
|
27
|
+
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
28
|
+
}
|
|
29
|
+
serialize(input, context) {
|
|
30
|
+
return (0, Aws_json1_1_1.serializeAws_json1_1DescribeAccessControlConfigurationCommand)(input, context);
|
|
31
|
+
}
|
|
32
|
+
deserialize(output, context) {
|
|
33
|
+
return (0, Aws_json1_1_1.deserializeAws_json1_1DescribeAccessControlConfigurationCommand)(output, context);
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
exports.DescribeAccessControlConfigurationCommand = DescribeAccessControlConfigurationCommand;
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ListAccessControlConfigurationsCommand = 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 ListAccessControlConfigurationsCommand extends smithy_client_1.Command {
|
|
9
|
+
constructor(input) {
|
|
10
|
+
super();
|
|
11
|
+
this.input = input;
|
|
12
|
+
}
|
|
13
|
+
resolveMiddleware(clientStack, configuration, options) {
|
|
14
|
+
this.middlewareStack.use((0, 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 = "ListAccessControlConfigurationsCommand";
|
|
19
|
+
const handlerExecutionContext = {
|
|
20
|
+
logger,
|
|
21
|
+
clientName,
|
|
22
|
+
commandName,
|
|
23
|
+
inputFilterSensitiveLog: models_0_1.ListAccessControlConfigurationsRequest.filterSensitiveLog,
|
|
24
|
+
outputFilterSensitiveLog: models_0_1.ListAccessControlConfigurationsResponse.filterSensitiveLog,
|
|
25
|
+
};
|
|
26
|
+
const { requestHandler } = configuration;
|
|
27
|
+
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
28
|
+
}
|
|
29
|
+
serialize(input, context) {
|
|
30
|
+
return (0, Aws_json1_1_1.serializeAws_json1_1ListAccessControlConfigurationsCommand)(input, context);
|
|
31
|
+
}
|
|
32
|
+
deserialize(output, context) {
|
|
33
|
+
return (0, Aws_json1_1_1.deserializeAws_json1_1ListAccessControlConfigurationsCommand)(output, context);
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
exports.ListAccessControlConfigurationsCommand = ListAccessControlConfigurationsCommand;
|
|
@@ -4,6 +4,7 @@ exports.QueryCommand = void 0;
|
|
|
4
4
|
const middleware_serde_1 = require("@aws-sdk/middleware-serde");
|
|
5
5
|
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
6
6
|
const models_0_1 = require("../models/models_0");
|
|
7
|
+
const models_1_1 = require("../models/models_1");
|
|
7
8
|
const Aws_json1_1_1 = require("../protocols/Aws_json1_1");
|
|
8
9
|
class QueryCommand extends smithy_client_1.Command {
|
|
9
10
|
constructor(input) {
|
|
@@ -20,7 +21,7 @@ class QueryCommand extends smithy_client_1.Command {
|
|
|
20
21
|
logger,
|
|
21
22
|
clientName,
|
|
22
23
|
commandName,
|
|
23
|
-
inputFilterSensitiveLog:
|
|
24
|
+
inputFilterSensitiveLog: models_1_1.QueryRequest.filterSensitiveLog,
|
|
24
25
|
outputFilterSensitiveLog: models_0_1.QueryResult.filterSensitiveLog,
|
|
25
26
|
};
|
|
26
27
|
const { requestHandler } = configuration;
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.UpdateAccessControlConfigurationCommand = 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 UpdateAccessControlConfigurationCommand extends smithy_client_1.Command {
|
|
9
|
+
constructor(input) {
|
|
10
|
+
super();
|
|
11
|
+
this.input = input;
|
|
12
|
+
}
|
|
13
|
+
resolveMiddleware(clientStack, configuration, options) {
|
|
14
|
+
this.middlewareStack.use((0, 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 = "UpdateAccessControlConfigurationCommand";
|
|
19
|
+
const handlerExecutionContext = {
|
|
20
|
+
logger,
|
|
21
|
+
clientName,
|
|
22
|
+
commandName,
|
|
23
|
+
inputFilterSensitiveLog: models_0_1.UpdateAccessControlConfigurationRequest.filterSensitiveLog,
|
|
24
|
+
outputFilterSensitiveLog: models_0_1.UpdateAccessControlConfigurationResponse.filterSensitiveLog,
|
|
25
|
+
};
|
|
26
|
+
const { requestHandler } = configuration;
|
|
27
|
+
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
28
|
+
}
|
|
29
|
+
serialize(input, context) {
|
|
30
|
+
return (0, Aws_json1_1_1.serializeAws_json1_1UpdateAccessControlConfigurationCommand)(input, context);
|
|
31
|
+
}
|
|
32
|
+
deserialize(output, context) {
|
|
33
|
+
return (0, Aws_json1_1_1.deserializeAws_json1_1UpdateAccessControlConfigurationCommand)(output, context);
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
exports.UpdateAccessControlConfigurationCommand = UpdateAccessControlConfigurationCommand;
|
|
@@ -7,12 +7,14 @@ tslib_1.__exportStar(require("./BatchDeleteDocumentCommand"), exports);
|
|
|
7
7
|
tslib_1.__exportStar(require("./BatchGetDocumentStatusCommand"), exports);
|
|
8
8
|
tslib_1.__exportStar(require("./BatchPutDocumentCommand"), exports);
|
|
9
9
|
tslib_1.__exportStar(require("./ClearQuerySuggestionsCommand"), exports);
|
|
10
|
+
tslib_1.__exportStar(require("./CreateAccessControlConfigurationCommand"), exports);
|
|
10
11
|
tslib_1.__exportStar(require("./CreateDataSourceCommand"), exports);
|
|
11
12
|
tslib_1.__exportStar(require("./CreateExperienceCommand"), exports);
|
|
12
13
|
tslib_1.__exportStar(require("./CreateFaqCommand"), exports);
|
|
13
14
|
tslib_1.__exportStar(require("./CreateIndexCommand"), exports);
|
|
14
15
|
tslib_1.__exportStar(require("./CreateQuerySuggestionsBlockListCommand"), exports);
|
|
15
16
|
tslib_1.__exportStar(require("./CreateThesaurusCommand"), exports);
|
|
17
|
+
tslib_1.__exportStar(require("./DeleteAccessControlConfigurationCommand"), exports);
|
|
16
18
|
tslib_1.__exportStar(require("./DeleteDataSourceCommand"), exports);
|
|
17
19
|
tslib_1.__exportStar(require("./DeleteExperienceCommand"), exports);
|
|
18
20
|
tslib_1.__exportStar(require("./DeleteFaqCommand"), exports);
|
|
@@ -20,6 +22,7 @@ tslib_1.__exportStar(require("./DeleteIndexCommand"), exports);
|
|
|
20
22
|
tslib_1.__exportStar(require("./DeletePrincipalMappingCommand"), exports);
|
|
21
23
|
tslib_1.__exportStar(require("./DeleteQuerySuggestionsBlockListCommand"), exports);
|
|
22
24
|
tslib_1.__exportStar(require("./DeleteThesaurusCommand"), exports);
|
|
25
|
+
tslib_1.__exportStar(require("./DescribeAccessControlConfigurationCommand"), exports);
|
|
23
26
|
tslib_1.__exportStar(require("./DescribeDataSourceCommand"), exports);
|
|
24
27
|
tslib_1.__exportStar(require("./DescribeExperienceCommand"), exports);
|
|
25
28
|
tslib_1.__exportStar(require("./DescribeFaqCommand"), exports);
|
|
@@ -32,6 +35,7 @@ tslib_1.__exportStar(require("./DisassociateEntitiesFromExperienceCommand"), exp
|
|
|
32
35
|
tslib_1.__exportStar(require("./DisassociatePersonasFromEntitiesCommand"), exports);
|
|
33
36
|
tslib_1.__exportStar(require("./GetQuerySuggestionsCommand"), exports);
|
|
34
37
|
tslib_1.__exportStar(require("./GetSnapshotsCommand"), exports);
|
|
38
|
+
tslib_1.__exportStar(require("./ListAccessControlConfigurationsCommand"), exports);
|
|
35
39
|
tslib_1.__exportStar(require("./ListDataSourceSyncJobsCommand"), exports);
|
|
36
40
|
tslib_1.__exportStar(require("./ListDataSourcesCommand"), exports);
|
|
37
41
|
tslib_1.__exportStar(require("./ListEntityPersonasCommand"), exports);
|
|
@@ -50,6 +54,7 @@ tslib_1.__exportStar(require("./StopDataSourceSyncJobCommand"), exports);
|
|
|
50
54
|
tslib_1.__exportStar(require("./SubmitFeedbackCommand"), exports);
|
|
51
55
|
tslib_1.__exportStar(require("./TagResourceCommand"), exports);
|
|
52
56
|
tslib_1.__exportStar(require("./UntagResourceCommand"), exports);
|
|
57
|
+
tslib_1.__exportStar(require("./UpdateAccessControlConfigurationCommand"), exports);
|
|
53
58
|
tslib_1.__exportStar(require("./UpdateDataSourceCommand"), exports);
|
|
54
59
|
tslib_1.__exportStar(require("./UpdateExperienceCommand"), exports);
|
|
55
60
|
tslib_1.__exportStar(require("./UpdateIndexCommand"), exports);
|
package/dist-cjs/models/index.js
CHANGED
|
@@ -1,13 +1,19 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
4
|
-
exports.
|
|
5
|
-
exports.
|
|
6
|
-
exports.
|
|
7
|
-
exports.
|
|
8
|
-
exports.
|
|
3
|
+
exports.HookConfiguration = exports.InlineCustomDocumentEnrichmentConfiguration = exports.DocumentAttributeTarget = exports.DocumentAttributeCondition = exports.ConditionOperator = exports.BatchGetDocumentStatusResponse = exports.BatchGetDocumentStatusResponseError = exports.Status = exports.DocumentStatus = exports.BatchGetDocumentStatusRequest = exports.DocumentInfo = exports.ConflictException = exports.BatchDeleteDocumentResponse = exports.BatchDeleteDocumentResponseFailedDocument = exports.ErrorCode = exports.BatchDeleteDocumentRequest = exports.DataSourceSyncJobMetricTarget = exports.AuthenticationConfiguration = exports.BasicAuthenticationConfiguration = exports.DocumentAttribute = exports.DocumentAttributeValue = exports.AssociatePersonasToEntitiesResponse = exports.AssociatePersonasToEntitiesRequest = exports.EntityPersonaConfiguration = exports.Persona = exports.ValidationException = exports.ThrottlingException = exports.ResourceNotFoundException = exports.ResourceAlreadyExistException = exports.InternalServerException = exports.AssociateEntitiesToExperienceResponse = exports.FailedEntity = exports.AssociateEntitiesToExperienceRequest = exports.EntityConfiguration = exports.EntityType = exports.AlfrescoConfiguration = exports.DataSourceVpcConfiguration = exports.S3Path = exports.AlfrescoEntity = exports.DataSourceToIndexFieldMapping = exports.AdditionalResultAttribute = exports.AdditionalResultAttributeValueType = exports.AdditionalResultAttributeValue = exports.TextWithHighlights = exports.Highlight = exports.HighlightType = exports.AclConfiguration = exports.AccessDeniedException = exports.AccessControlListConfiguration = exports.AccessControlConfigurationSummary = void 0;
|
|
4
|
+
exports.S3DataSourceConfiguration = exports.DocumentsMetadataConfiguration = exports.QuipConfiguration = exports.OneDriveConfiguration = exports.OneDriveUsers = exports.JiraConfiguration = exports.IssueSubEntity = exports.GoogleDriveConfiguration = exports.GitHubConfiguration = exports.Type = exports.SaaSConfiguration = exports.OnPremiseConfiguration = exports.GitHubDocumentCrawlProperties = exports.FsxConfiguration = exports.FsxFileSystemType = exports.DatabaseConfiguration = exports.SqlConfiguration = exports.QueryIdentifiersEnclosingOption = exports.DatabaseEngineType = exports.ConnectionConfiguration = exports.ColumnConfiguration = exports.ConfluenceConfiguration = exports.ConfluenceVersion = exports.ConfluenceSpaceConfiguration = exports.ConfluenceSpaceToIndexFieldMapping = exports.ConfluenceSpaceFieldName = exports.ConfluencePageConfiguration = exports.ConfluencePageToIndexFieldMapping = exports.ConfluencePageFieldName = exports.ConfluenceBlogConfiguration = exports.ConfluenceBlogToIndexFieldMapping = exports.ConfluenceBlogFieldName = exports.ConfluenceAttachmentConfiguration = exports.ConfluenceAttachmentToIndexFieldMapping = exports.ConfluenceAttachmentFieldName = exports.BoxConfiguration = exports.CreateAccessControlConfigurationResponse = exports.CreateAccessControlConfigurationRequest = exports.ClearQuerySuggestionsRequest = exports.ServiceQuotaExceededException = exports.BatchPutDocumentResponse = exports.BatchPutDocumentResponseFailedDocument = exports.BatchPutDocumentRequest = exports.Document = exports.HierarchicalPrincipal = exports.ContentType = exports.Principal = exports.PrincipalType = exports.ReadAccessType = exports.CustomDocumentEnrichmentConfiguration = void 0;
|
|
5
|
+
exports.CreateIndexResponse = exports.CreateIndexRequest = exports.UserTokenConfiguration = exports.JwtTokenTypeConfiguration = exports.KeyLocation = exports.JsonTokenTypeConfiguration = exports.UserGroupResolutionConfiguration = exports.UserGroupResolutionMode = exports.UserContextPolicy = exports.ServerSideEncryptionConfiguration = exports.IndexEdition = exports.CreateFaqResponse = exports.CreateFaqRequest = exports.FaqFileFormat = exports.CreateExperienceResponse = exports.CreateExperienceRequest = exports.ExperienceConfiguration = exports.UserIdentityConfiguration = exports.ContentSourceConfiguration = exports.CreateDataSourceResponse = exports.CreateDataSourceRequest = exports.DataSourceType = exports.Tag = exports.DataSourceConfiguration = exports.WorkDocsConfiguration = exports.WebCrawlerConfiguration = exports.Urls = exports.SiteMapsConfiguration = exports.SeedUrlConfiguration = exports.WebCrawlerMode = exports.ProxyConfiguration = exports.SlackConfiguration = exports.SlackEntity = exports.SharePointConfiguration = exports.SharePointVersion = exports.ServiceNowConfiguration = exports.ServiceNowBuildVersionType = exports.ServiceNowServiceCatalogConfiguration = exports.ServiceNowKnowledgeArticleConfiguration = exports.ServiceNowAuthenticationType = exports.SalesforceConfiguration = exports.SalesforceStandardObjectConfiguration = exports.SalesforceStandardObjectName = exports.SalesforceStandardObjectAttachmentConfiguration = exports.SalesforceKnowledgeArticleConfiguration = exports.SalesforceStandardKnowledgeArticleTypeConfiguration = exports.SalesforceKnowledgeArticleState = exports.SalesforceCustomKnowledgeArticleTypeConfiguration = exports.SalesforceChatterFeedConfiguration = exports.SalesforceChatterFeedIncludeFilterType = void 0;
|
|
6
|
+
exports.DescribeQuerySuggestionsConfigResponse = exports.QuerySuggestionsStatus = exports.Mode = exports.DescribeQuerySuggestionsConfigRequest = exports.DescribeQuerySuggestionsBlockListResponse = exports.QuerySuggestionsBlockListStatus = exports.DescribeQuerySuggestionsBlockListRequest = exports.DescribePrincipalMappingResponse = exports.GroupOrderingIdSummary = exports.PrincipalMappingStatus = exports.DescribePrincipalMappingRequest = exports.DescribeIndexResponse = exports.IndexStatus = exports.IndexStatistics = exports.TextDocumentStatistics = exports.FaqStatistics = exports.DocumentMetadataConfiguration = exports.DocumentAttributeValueType = exports.Search = exports.Relevance = exports.Order = exports.CapacityUnitsConfiguration = exports.DescribeIndexRequest = exports.DescribeFaqResponse = exports.FaqStatus = exports.DescribeFaqRequest = exports.DescribeExperienceResponse = exports.ExperienceStatus = exports.ExperienceEndpoint = exports.EndpointType = exports.DescribeExperienceRequest = exports.DescribeDataSourceResponse = exports.DataSourceStatus = exports.DescribeDataSourceRequest = exports.DescribeAccessControlConfigurationResponse = exports.DescribeAccessControlConfigurationRequest = exports.DeleteThesaurusRequest = exports.DeleteQuerySuggestionsBlockListRequest = exports.DeletePrincipalMappingRequest = exports.DeleteIndexRequest = exports.DeleteFaqRequest = exports.DeleteExperienceResponse = exports.DeleteExperienceRequest = exports.DeleteDataSourceRequest = exports.DeleteAccessControlConfigurationResponse = exports.DeleteAccessControlConfigurationRequest = exports.CreateThesaurusResponse = exports.CreateThesaurusRequest = exports.CreateQuerySuggestionsBlockListResponse = exports.CreateQuerySuggestionsBlockListRequest = void 0;
|
|
7
|
+
exports.QuerySuggestionsBlockListSummary = exports.ListQuerySuggestionsBlockListsRequest = exports.ListIndicesResponse = exports.IndexConfigurationSummary = exports.ListIndicesRequest = exports.ListGroupsOlderThanOrderingIdResponse = exports.GroupSummary = exports.ListGroupsOlderThanOrderingIdRequest = exports.ListFaqsResponse = exports.FaqSummary = exports.ListFaqsRequest = exports.ListExperiencesResponse = exports.ExperiencesSummary = exports.ListExperiencesRequest = exports.ListExperienceEntitiesResponse = exports.ExperienceEntitiesSummary = exports.EntityDisplayData = exports.ListExperienceEntitiesRequest = exports.ListEntityPersonasResponse = exports.PersonasSummary = exports.ListEntityPersonasRequest = exports.ListDataSourceSyncJobsResponse = exports.DataSourceSyncJob = exports.DataSourceSyncJobMetrics = exports.ListDataSourceSyncJobsRequest = exports.DataSourceSyncJobStatus = exports.ListDataSourcesResponse = exports.DataSourceSummary = exports.ListDataSourcesRequest = exports.ListAccessControlConfigurationsResponse = exports.ListAccessControlConfigurationsRequest = exports.InvalidRequestException = exports.GetSnapshotsResponse = exports.TimeRange = exports.GetSnapshotsRequest = exports.MetricType = exports.Interval = exports.GetQuerySuggestionsResponse = exports.Suggestion = exports.SuggestionValue = exports.SuggestionTextWithHighlights = exports.SuggestionHighlight = exports.GetQuerySuggestionsRequest = exports.DisassociatePersonasFromEntitiesResponse = exports.DisassociatePersonasFromEntitiesRequest = exports.DisassociateEntitiesFromExperienceResponse = exports.DisassociateEntitiesFromExperienceRequest = exports.DescribeThesaurusResponse = exports.ThesaurusStatus = exports.DescribeThesaurusRequest = void 0;
|
|
8
|
+
exports.QueryResult = exports.AttributeFilter = exports.FacetResult = exports.DocumentAttributeValueCountPair = exports.Facet = exports.UpdateThesaurusRequest = exports.UpdateQuerySuggestionsConfigRequest = exports.UpdateQuerySuggestionsBlockListRequest = exports.UpdateIndexRequest = exports.UpdateExperienceRequest = exports.UpdateDataSourceRequest = exports.UpdateAccessControlConfigurationResponse = exports.UpdateAccessControlConfigurationRequest = exports.UntagResourceResponse = exports.UntagResourceRequest = exports.TagResourceResponse = exports.TagResourceRequest = exports.SubmitFeedbackRequest = exports.RelevanceFeedback = exports.RelevanceType = exports.ClickFeedback = exports.StopDataSourceSyncJobRequest = exports.StartDataSourceSyncJobResponse = exports.StartDataSourceSyncJobRequest = exports.ResourceInUseException = exports.Warning = exports.WarningCode = exports.SpellCorrectedQuery = exports.Correction = exports.QueryResultItem = exports.ScoreAttributes = exports.ScoreConfidence = exports.UserContext = exports.DataSourceGroup = exports.SpellCorrectionConfiguration = exports.SortingConfiguration = exports.SortOrder = exports.QueryResultType = exports.DocumentRelevanceConfiguration = exports.PutPrincipalMappingRequest = exports.GroupMembers = exports.MemberUser = exports.MemberGroup = exports.ListThesauriResponse = exports.ThesaurusSummary = exports.ListThesauriRequest = exports.ResourceUnavailableException = exports.ListTagsForResourceResponse = exports.ListTagsForResourceRequest = exports.ListQuerySuggestionsBlockListsResponse = void 0;
|
|
9
9
|
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
10
10
|
const KendraServiceException_1 = require("./KendraServiceException");
|
|
11
|
+
var AccessControlConfigurationSummary;
|
|
12
|
+
(function (AccessControlConfigurationSummary) {
|
|
13
|
+
AccessControlConfigurationSummary.filterSensitiveLog = (obj) => ({
|
|
14
|
+
...obj,
|
|
15
|
+
});
|
|
16
|
+
})(AccessControlConfigurationSummary = exports.AccessControlConfigurationSummary || (exports.AccessControlConfigurationSummary = {}));
|
|
11
17
|
var AccessControlListConfiguration;
|
|
12
18
|
(function (AccessControlListConfiguration) {
|
|
13
19
|
AccessControlListConfiguration.filterSensitiveLog = (obj) => ({
|
|
@@ -443,6 +449,18 @@ var ClearQuerySuggestionsRequest;
|
|
|
443
449
|
...obj,
|
|
444
450
|
});
|
|
445
451
|
})(ClearQuerySuggestionsRequest = exports.ClearQuerySuggestionsRequest || (exports.ClearQuerySuggestionsRequest = {}));
|
|
452
|
+
var CreateAccessControlConfigurationRequest;
|
|
453
|
+
(function (CreateAccessControlConfigurationRequest) {
|
|
454
|
+
CreateAccessControlConfigurationRequest.filterSensitiveLog = (obj) => ({
|
|
455
|
+
...obj,
|
|
456
|
+
});
|
|
457
|
+
})(CreateAccessControlConfigurationRequest = exports.CreateAccessControlConfigurationRequest || (exports.CreateAccessControlConfigurationRequest = {}));
|
|
458
|
+
var CreateAccessControlConfigurationResponse;
|
|
459
|
+
(function (CreateAccessControlConfigurationResponse) {
|
|
460
|
+
CreateAccessControlConfigurationResponse.filterSensitiveLog = (obj) => ({
|
|
461
|
+
...obj,
|
|
462
|
+
});
|
|
463
|
+
})(CreateAccessControlConfigurationResponse = exports.CreateAccessControlConfigurationResponse || (exports.CreateAccessControlConfigurationResponse = {}));
|
|
446
464
|
var BoxConfiguration;
|
|
447
465
|
(function (BoxConfiguration) {
|
|
448
466
|
BoxConfiguration.filterSensitiveLog = (obj) => ({
|
|
@@ -1030,6 +1048,18 @@ var CreateThesaurusResponse;
|
|
|
1030
1048
|
...obj,
|
|
1031
1049
|
});
|
|
1032
1050
|
})(CreateThesaurusResponse = exports.CreateThesaurusResponse || (exports.CreateThesaurusResponse = {}));
|
|
1051
|
+
var DeleteAccessControlConfigurationRequest;
|
|
1052
|
+
(function (DeleteAccessControlConfigurationRequest) {
|
|
1053
|
+
DeleteAccessControlConfigurationRequest.filterSensitiveLog = (obj) => ({
|
|
1054
|
+
...obj,
|
|
1055
|
+
});
|
|
1056
|
+
})(DeleteAccessControlConfigurationRequest = exports.DeleteAccessControlConfigurationRequest || (exports.DeleteAccessControlConfigurationRequest = {}));
|
|
1057
|
+
var DeleteAccessControlConfigurationResponse;
|
|
1058
|
+
(function (DeleteAccessControlConfigurationResponse) {
|
|
1059
|
+
DeleteAccessControlConfigurationResponse.filterSensitiveLog = (obj) => ({
|
|
1060
|
+
...obj,
|
|
1061
|
+
});
|
|
1062
|
+
})(DeleteAccessControlConfigurationResponse = exports.DeleteAccessControlConfigurationResponse || (exports.DeleteAccessControlConfigurationResponse = {}));
|
|
1033
1063
|
var DeleteDataSourceRequest;
|
|
1034
1064
|
(function (DeleteDataSourceRequest) {
|
|
1035
1065
|
DeleteDataSourceRequest.filterSensitiveLog = (obj) => ({
|
|
@@ -1078,6 +1108,18 @@ var DeleteThesaurusRequest;
|
|
|
1078
1108
|
...obj,
|
|
1079
1109
|
});
|
|
1080
1110
|
})(DeleteThesaurusRequest = exports.DeleteThesaurusRequest || (exports.DeleteThesaurusRequest = {}));
|
|
1111
|
+
var DescribeAccessControlConfigurationRequest;
|
|
1112
|
+
(function (DescribeAccessControlConfigurationRequest) {
|
|
1113
|
+
DescribeAccessControlConfigurationRequest.filterSensitiveLog = (obj) => ({
|
|
1114
|
+
...obj,
|
|
1115
|
+
});
|
|
1116
|
+
})(DescribeAccessControlConfigurationRequest = exports.DescribeAccessControlConfigurationRequest || (exports.DescribeAccessControlConfigurationRequest = {}));
|
|
1117
|
+
var DescribeAccessControlConfigurationResponse;
|
|
1118
|
+
(function (DescribeAccessControlConfigurationResponse) {
|
|
1119
|
+
DescribeAccessControlConfigurationResponse.filterSensitiveLog = (obj) => ({
|
|
1120
|
+
...obj,
|
|
1121
|
+
});
|
|
1122
|
+
})(DescribeAccessControlConfigurationResponse = exports.DescribeAccessControlConfigurationResponse || (exports.DescribeAccessControlConfigurationResponse = {}));
|
|
1081
1123
|
var DescribeDataSourceRequest;
|
|
1082
1124
|
(function (DescribeDataSourceRequest) {
|
|
1083
1125
|
DescribeDataSourceRequest.filterSensitiveLog = (obj) => ({
|
|
@@ -1425,6 +1467,18 @@ class InvalidRequestException extends KendraServiceException_1.KendraServiceExce
|
|
|
1425
1467
|
}
|
|
1426
1468
|
}
|
|
1427
1469
|
exports.InvalidRequestException = InvalidRequestException;
|
|
1470
|
+
var ListAccessControlConfigurationsRequest;
|
|
1471
|
+
(function (ListAccessControlConfigurationsRequest) {
|
|
1472
|
+
ListAccessControlConfigurationsRequest.filterSensitiveLog = (obj) => ({
|
|
1473
|
+
...obj,
|
|
1474
|
+
});
|
|
1475
|
+
})(ListAccessControlConfigurationsRequest = exports.ListAccessControlConfigurationsRequest || (exports.ListAccessControlConfigurationsRequest = {}));
|
|
1476
|
+
var ListAccessControlConfigurationsResponse;
|
|
1477
|
+
(function (ListAccessControlConfigurationsResponse) {
|
|
1478
|
+
ListAccessControlConfigurationsResponse.filterSensitiveLog = (obj) => ({
|
|
1479
|
+
...obj,
|
|
1480
|
+
});
|
|
1481
|
+
})(ListAccessControlConfigurationsResponse = exports.ListAccessControlConfigurationsResponse || (exports.ListAccessControlConfigurationsResponse = {}));
|
|
1428
1482
|
var ListDataSourcesRequest;
|
|
1429
1483
|
(function (ListDataSourcesRequest) {
|
|
1430
1484
|
ListDataSourcesRequest.filterSensitiveLog = (obj) => ({
|
|
@@ -1848,6 +1902,18 @@ var UntagResourceResponse;
|
|
|
1848
1902
|
...obj,
|
|
1849
1903
|
});
|
|
1850
1904
|
})(UntagResourceResponse = exports.UntagResourceResponse || (exports.UntagResourceResponse = {}));
|
|
1905
|
+
var UpdateAccessControlConfigurationRequest;
|
|
1906
|
+
(function (UpdateAccessControlConfigurationRequest) {
|
|
1907
|
+
UpdateAccessControlConfigurationRequest.filterSensitiveLog = (obj) => ({
|
|
1908
|
+
...obj,
|
|
1909
|
+
});
|
|
1910
|
+
})(UpdateAccessControlConfigurationRequest = exports.UpdateAccessControlConfigurationRequest || (exports.UpdateAccessControlConfigurationRequest = {}));
|
|
1911
|
+
var UpdateAccessControlConfigurationResponse;
|
|
1912
|
+
(function (UpdateAccessControlConfigurationResponse) {
|
|
1913
|
+
UpdateAccessControlConfigurationResponse.filterSensitiveLog = (obj) => ({
|
|
1914
|
+
...obj,
|
|
1915
|
+
});
|
|
1916
|
+
})(UpdateAccessControlConfigurationResponse = exports.UpdateAccessControlConfigurationResponse || (exports.UpdateAccessControlConfigurationResponse = {}));
|
|
1851
1917
|
var UpdateDataSourceRequest;
|
|
1852
1918
|
(function (UpdateDataSourceRequest) {
|
|
1853
1919
|
UpdateDataSourceRequest.filterSensitiveLog = (obj) => ({
|
|
@@ -1914,9 +1980,3 @@ var QueryResult;
|
|
|
1914
1980
|
...obj,
|
|
1915
1981
|
});
|
|
1916
1982
|
})(QueryResult = exports.QueryResult || (exports.QueryResult = {}));
|
|
1917
|
-
var QueryRequest;
|
|
1918
|
-
(function (QueryRequest) {
|
|
1919
|
-
QueryRequest.filterSensitiveLog = (obj) => ({
|
|
1920
|
-
...obj,
|
|
1921
|
-
});
|
|
1922
|
-
})(QueryRequest = exports.QueryRequest || (exports.QueryRequest = {}));
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.QueryRequest = void 0;
|
|
4
|
+
var QueryRequest;
|
|
5
|
+
(function (QueryRequest) {
|
|
6
|
+
QueryRequest.filterSensitiveLog = (obj) => ({
|
|
7
|
+
...obj,
|
|
8
|
+
});
|
|
9
|
+
})(QueryRequest = exports.QueryRequest || (exports.QueryRequest = {}));
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.paginateListAccessControlConfigurations = void 0;
|
|
4
|
+
const ListAccessControlConfigurationsCommand_1 = require("../commands/ListAccessControlConfigurationsCommand");
|
|
5
|
+
const Kendra_1 = require("../Kendra");
|
|
6
|
+
const KendraClient_1 = require("../KendraClient");
|
|
7
|
+
const makePagedClientRequest = async (client, input, ...args) => {
|
|
8
|
+
return await client.send(new ListAccessControlConfigurationsCommand_1.ListAccessControlConfigurationsCommand(input), ...args);
|
|
9
|
+
};
|
|
10
|
+
const makePagedRequest = async (client, input, ...args) => {
|
|
11
|
+
return await client.listAccessControlConfigurations(input, ...args);
|
|
12
|
+
};
|
|
13
|
+
async function* paginateListAccessControlConfigurations(config, input, ...additionalArguments) {
|
|
14
|
+
let token = config.startingToken || undefined;
|
|
15
|
+
let hasNext = true;
|
|
16
|
+
let page;
|
|
17
|
+
while (hasNext) {
|
|
18
|
+
input.NextToken = token;
|
|
19
|
+
input["MaxResults"] = config.pageSize;
|
|
20
|
+
if (config.client instanceof Kendra_1.Kendra) {
|
|
21
|
+
page = await makePagedRequest(config.client, input, ...additionalArguments);
|
|
22
|
+
}
|
|
23
|
+
else if (config.client instanceof KendraClient_1.KendraClient) {
|
|
24
|
+
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
25
|
+
}
|
|
26
|
+
else {
|
|
27
|
+
throw new Error("Invalid client, expected Kendra | KendraClient");
|
|
28
|
+
}
|
|
29
|
+
yield page;
|
|
30
|
+
const prevToken = token;
|
|
31
|
+
token = page.NextToken;
|
|
32
|
+
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
33
|
+
}
|
|
34
|
+
return undefined;
|
|
35
|
+
}
|
|
36
|
+
exports.paginateListAccessControlConfigurations = paginateListAccessControlConfigurations;
|