@aws-sdk/client-kendra 3.127.0 → 3.131.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 +450 -3
- 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 +523 -1
- 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 +7 -7
package/dist-es/Kendra.js
CHANGED
|
@@ -5,12 +5,14 @@ import { BatchDeleteDocumentCommand, } from "./commands/BatchDeleteDocumentComma
|
|
|
5
5
|
import { BatchGetDocumentStatusCommand, } from "./commands/BatchGetDocumentStatusCommand";
|
|
6
6
|
import { BatchPutDocumentCommand, } from "./commands/BatchPutDocumentCommand";
|
|
7
7
|
import { ClearQuerySuggestionsCommand, } from "./commands/ClearQuerySuggestionsCommand";
|
|
8
|
+
import { CreateAccessControlConfigurationCommand, } from "./commands/CreateAccessControlConfigurationCommand";
|
|
8
9
|
import { CreateDataSourceCommand, } from "./commands/CreateDataSourceCommand";
|
|
9
10
|
import { CreateExperienceCommand, } from "./commands/CreateExperienceCommand";
|
|
10
11
|
import { CreateFaqCommand } from "./commands/CreateFaqCommand";
|
|
11
12
|
import { CreateIndexCommand } from "./commands/CreateIndexCommand";
|
|
12
13
|
import { CreateQuerySuggestionsBlockListCommand, } from "./commands/CreateQuerySuggestionsBlockListCommand";
|
|
13
14
|
import { CreateThesaurusCommand, } from "./commands/CreateThesaurusCommand";
|
|
15
|
+
import { DeleteAccessControlConfigurationCommand, } from "./commands/DeleteAccessControlConfigurationCommand";
|
|
14
16
|
import { DeleteDataSourceCommand, } from "./commands/DeleteDataSourceCommand";
|
|
15
17
|
import { DeleteExperienceCommand, } from "./commands/DeleteExperienceCommand";
|
|
16
18
|
import { DeleteFaqCommand } from "./commands/DeleteFaqCommand";
|
|
@@ -18,6 +20,7 @@ import { DeleteIndexCommand } from "./commands/DeleteIndexCommand";
|
|
|
18
20
|
import { DeletePrincipalMappingCommand, } from "./commands/DeletePrincipalMappingCommand";
|
|
19
21
|
import { DeleteQuerySuggestionsBlockListCommand, } from "./commands/DeleteQuerySuggestionsBlockListCommand";
|
|
20
22
|
import { DeleteThesaurusCommand, } from "./commands/DeleteThesaurusCommand";
|
|
23
|
+
import { DescribeAccessControlConfigurationCommand, } from "./commands/DescribeAccessControlConfigurationCommand";
|
|
21
24
|
import { DescribeDataSourceCommand, } from "./commands/DescribeDataSourceCommand";
|
|
22
25
|
import { DescribeExperienceCommand, } from "./commands/DescribeExperienceCommand";
|
|
23
26
|
import { DescribeFaqCommand } from "./commands/DescribeFaqCommand";
|
|
@@ -30,6 +33,7 @@ import { DisassociateEntitiesFromExperienceCommand, } from "./commands/Disassoci
|
|
|
30
33
|
import { DisassociatePersonasFromEntitiesCommand, } from "./commands/DisassociatePersonasFromEntitiesCommand";
|
|
31
34
|
import { GetQuerySuggestionsCommand, } from "./commands/GetQuerySuggestionsCommand";
|
|
32
35
|
import { GetSnapshotsCommand, } from "./commands/GetSnapshotsCommand";
|
|
36
|
+
import { ListAccessControlConfigurationsCommand, } from "./commands/ListAccessControlConfigurationsCommand";
|
|
33
37
|
import { ListDataSourcesCommand, } from "./commands/ListDataSourcesCommand";
|
|
34
38
|
import { ListDataSourceSyncJobsCommand, } from "./commands/ListDataSourceSyncJobsCommand";
|
|
35
39
|
import { ListEntityPersonasCommand, } from "./commands/ListEntityPersonasCommand";
|
|
@@ -48,6 +52,7 @@ import { StopDataSourceSyncJobCommand, } from "./commands/StopDataSourceSyncJobC
|
|
|
48
52
|
import { SubmitFeedbackCommand, } from "./commands/SubmitFeedbackCommand";
|
|
49
53
|
import { TagResourceCommand } from "./commands/TagResourceCommand";
|
|
50
54
|
import { UntagResourceCommand, } from "./commands/UntagResourceCommand";
|
|
55
|
+
import { UpdateAccessControlConfigurationCommand, } from "./commands/UpdateAccessControlConfigurationCommand";
|
|
51
56
|
import { UpdateDataSourceCommand, } from "./commands/UpdateDataSourceCommand";
|
|
52
57
|
import { UpdateExperienceCommand, } from "./commands/UpdateExperienceCommand";
|
|
53
58
|
import { UpdateIndexCommand } from "./commands/UpdateIndexCommand";
|
|
@@ -144,6 +149,20 @@ var Kendra = (function (_super) {
|
|
|
144
149
|
return this.send(command, optionsOrCb);
|
|
145
150
|
}
|
|
146
151
|
};
|
|
152
|
+
Kendra.prototype.createAccessControlConfiguration = function (args, optionsOrCb, cb) {
|
|
153
|
+
var command = new CreateAccessControlConfigurationCommand(args);
|
|
154
|
+
if (typeof optionsOrCb === "function") {
|
|
155
|
+
this.send(command, optionsOrCb);
|
|
156
|
+
}
|
|
157
|
+
else if (typeof cb === "function") {
|
|
158
|
+
if (typeof optionsOrCb !== "object")
|
|
159
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
160
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
161
|
+
}
|
|
162
|
+
else {
|
|
163
|
+
return this.send(command, optionsOrCb);
|
|
164
|
+
}
|
|
165
|
+
};
|
|
147
166
|
Kendra.prototype.createDataSource = function (args, optionsOrCb, cb) {
|
|
148
167
|
var command = new CreateDataSourceCommand(args);
|
|
149
168
|
if (typeof optionsOrCb === "function") {
|
|
@@ -228,6 +247,20 @@ var Kendra = (function (_super) {
|
|
|
228
247
|
return this.send(command, optionsOrCb);
|
|
229
248
|
}
|
|
230
249
|
};
|
|
250
|
+
Kendra.prototype.deleteAccessControlConfiguration = function (args, optionsOrCb, cb) {
|
|
251
|
+
var command = new DeleteAccessControlConfigurationCommand(args);
|
|
252
|
+
if (typeof optionsOrCb === "function") {
|
|
253
|
+
this.send(command, optionsOrCb);
|
|
254
|
+
}
|
|
255
|
+
else if (typeof cb === "function") {
|
|
256
|
+
if (typeof optionsOrCb !== "object")
|
|
257
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
258
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
259
|
+
}
|
|
260
|
+
else {
|
|
261
|
+
return this.send(command, optionsOrCb);
|
|
262
|
+
}
|
|
263
|
+
};
|
|
231
264
|
Kendra.prototype.deleteDataSource = function (args, optionsOrCb, cb) {
|
|
232
265
|
var command = new DeleteDataSourceCommand(args);
|
|
233
266
|
if (typeof optionsOrCb === "function") {
|
|
@@ -326,6 +359,20 @@ var Kendra = (function (_super) {
|
|
|
326
359
|
return this.send(command, optionsOrCb);
|
|
327
360
|
}
|
|
328
361
|
};
|
|
362
|
+
Kendra.prototype.describeAccessControlConfiguration = function (args, optionsOrCb, cb) {
|
|
363
|
+
var command = new DescribeAccessControlConfigurationCommand(args);
|
|
364
|
+
if (typeof optionsOrCb === "function") {
|
|
365
|
+
this.send(command, optionsOrCb);
|
|
366
|
+
}
|
|
367
|
+
else if (typeof cb === "function") {
|
|
368
|
+
if (typeof optionsOrCb !== "object")
|
|
369
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
370
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
371
|
+
}
|
|
372
|
+
else {
|
|
373
|
+
return this.send(command, optionsOrCb);
|
|
374
|
+
}
|
|
375
|
+
};
|
|
329
376
|
Kendra.prototype.describeDataSource = function (args, optionsOrCb, cb) {
|
|
330
377
|
var command = new DescribeDataSourceCommand(args);
|
|
331
378
|
if (typeof optionsOrCb === "function") {
|
|
@@ -494,6 +541,20 @@ var Kendra = (function (_super) {
|
|
|
494
541
|
return this.send(command, optionsOrCb);
|
|
495
542
|
}
|
|
496
543
|
};
|
|
544
|
+
Kendra.prototype.listAccessControlConfigurations = function (args, optionsOrCb, cb) {
|
|
545
|
+
var command = new ListAccessControlConfigurationsCommand(args);
|
|
546
|
+
if (typeof optionsOrCb === "function") {
|
|
547
|
+
this.send(command, optionsOrCb);
|
|
548
|
+
}
|
|
549
|
+
else if (typeof cb === "function") {
|
|
550
|
+
if (typeof optionsOrCb !== "object")
|
|
551
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
552
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
553
|
+
}
|
|
554
|
+
else {
|
|
555
|
+
return this.send(command, optionsOrCb);
|
|
556
|
+
}
|
|
557
|
+
};
|
|
497
558
|
Kendra.prototype.listDataSources = function (args, optionsOrCb, cb) {
|
|
498
559
|
var command = new ListDataSourcesCommand(args);
|
|
499
560
|
if (typeof optionsOrCb === "function") {
|
|
@@ -746,6 +807,20 @@ var Kendra = (function (_super) {
|
|
|
746
807
|
return this.send(command, optionsOrCb);
|
|
747
808
|
}
|
|
748
809
|
};
|
|
810
|
+
Kendra.prototype.updateAccessControlConfiguration = function (args, optionsOrCb, cb) {
|
|
811
|
+
var command = new UpdateAccessControlConfigurationCommand(args);
|
|
812
|
+
if (typeof optionsOrCb === "function") {
|
|
813
|
+
this.send(command, optionsOrCb);
|
|
814
|
+
}
|
|
815
|
+
else if (typeof cb === "function") {
|
|
816
|
+
if (typeof optionsOrCb !== "object")
|
|
817
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
818
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
819
|
+
}
|
|
820
|
+
else {
|
|
821
|
+
return this.send(command, optionsOrCb);
|
|
822
|
+
}
|
|
823
|
+
};
|
|
749
824
|
Kendra.prototype.updateDataSource = function (args, optionsOrCb, cb) {
|
|
750
825
|
var command = new UpdateDataSourceCommand(args);
|
|
751
826
|
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 { CreateAccessControlConfigurationRequest, CreateAccessControlConfigurationResponse } from "../models/models_0";
|
|
5
|
+
import { deserializeAws_json1_1CreateAccessControlConfigurationCommand, serializeAws_json1_1CreateAccessControlConfigurationCommand, } from "../protocols/Aws_json1_1";
|
|
6
|
+
var CreateAccessControlConfigurationCommand = (function (_super) {
|
|
7
|
+
__extends(CreateAccessControlConfigurationCommand, _super);
|
|
8
|
+
function CreateAccessControlConfigurationCommand(input) {
|
|
9
|
+
var _this = _super.call(this) || this;
|
|
10
|
+
_this.input = input;
|
|
11
|
+
return _this;
|
|
12
|
+
}
|
|
13
|
+
CreateAccessControlConfigurationCommand.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 = "CreateAccessControlConfigurationCommand";
|
|
19
|
+
var handlerExecutionContext = {
|
|
20
|
+
logger: logger,
|
|
21
|
+
clientName: clientName,
|
|
22
|
+
commandName: commandName,
|
|
23
|
+
inputFilterSensitiveLog: CreateAccessControlConfigurationRequest.filterSensitiveLog,
|
|
24
|
+
outputFilterSensitiveLog: CreateAccessControlConfigurationResponse.filterSensitiveLog,
|
|
25
|
+
};
|
|
26
|
+
var requestHandler = configuration.requestHandler;
|
|
27
|
+
return stack.resolve(function (request) {
|
|
28
|
+
return requestHandler.handle(request.request, options || {});
|
|
29
|
+
}, handlerExecutionContext);
|
|
30
|
+
};
|
|
31
|
+
CreateAccessControlConfigurationCommand.prototype.serialize = function (input, context) {
|
|
32
|
+
return serializeAws_json1_1CreateAccessControlConfigurationCommand(input, context);
|
|
33
|
+
};
|
|
34
|
+
CreateAccessControlConfigurationCommand.prototype.deserialize = function (output, context) {
|
|
35
|
+
return deserializeAws_json1_1CreateAccessControlConfigurationCommand(output, context);
|
|
36
|
+
};
|
|
37
|
+
return CreateAccessControlConfigurationCommand;
|
|
38
|
+
}($Command));
|
|
39
|
+
export { CreateAccessControlConfigurationCommand };
|
|
@@ -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 { DeleteAccessControlConfigurationRequest, DeleteAccessControlConfigurationResponse } from "../models/models_0";
|
|
5
|
+
import { deserializeAws_json1_1DeleteAccessControlConfigurationCommand, serializeAws_json1_1DeleteAccessControlConfigurationCommand, } from "../protocols/Aws_json1_1";
|
|
6
|
+
var DeleteAccessControlConfigurationCommand = (function (_super) {
|
|
7
|
+
__extends(DeleteAccessControlConfigurationCommand, _super);
|
|
8
|
+
function DeleteAccessControlConfigurationCommand(input) {
|
|
9
|
+
var _this = _super.call(this) || this;
|
|
10
|
+
_this.input = input;
|
|
11
|
+
return _this;
|
|
12
|
+
}
|
|
13
|
+
DeleteAccessControlConfigurationCommand.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 = "DeleteAccessControlConfigurationCommand";
|
|
19
|
+
var handlerExecutionContext = {
|
|
20
|
+
logger: logger,
|
|
21
|
+
clientName: clientName,
|
|
22
|
+
commandName: commandName,
|
|
23
|
+
inputFilterSensitiveLog: DeleteAccessControlConfigurationRequest.filterSensitiveLog,
|
|
24
|
+
outputFilterSensitiveLog: DeleteAccessControlConfigurationResponse.filterSensitiveLog,
|
|
25
|
+
};
|
|
26
|
+
var requestHandler = configuration.requestHandler;
|
|
27
|
+
return stack.resolve(function (request) {
|
|
28
|
+
return requestHandler.handle(request.request, options || {});
|
|
29
|
+
}, handlerExecutionContext);
|
|
30
|
+
};
|
|
31
|
+
DeleteAccessControlConfigurationCommand.prototype.serialize = function (input, context) {
|
|
32
|
+
return serializeAws_json1_1DeleteAccessControlConfigurationCommand(input, context);
|
|
33
|
+
};
|
|
34
|
+
DeleteAccessControlConfigurationCommand.prototype.deserialize = function (output, context) {
|
|
35
|
+
return deserializeAws_json1_1DeleteAccessControlConfigurationCommand(output, context);
|
|
36
|
+
};
|
|
37
|
+
return DeleteAccessControlConfigurationCommand;
|
|
38
|
+
}($Command));
|
|
39
|
+
export { DeleteAccessControlConfigurationCommand };
|
|
@@ -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 { DescribeAccessControlConfigurationRequest, DescribeAccessControlConfigurationResponse, } from "../models/models_0";
|
|
5
|
+
import { deserializeAws_json1_1DescribeAccessControlConfigurationCommand, serializeAws_json1_1DescribeAccessControlConfigurationCommand, } from "../protocols/Aws_json1_1";
|
|
6
|
+
var DescribeAccessControlConfigurationCommand = (function (_super) {
|
|
7
|
+
__extends(DescribeAccessControlConfigurationCommand, _super);
|
|
8
|
+
function DescribeAccessControlConfigurationCommand(input) {
|
|
9
|
+
var _this = _super.call(this) || this;
|
|
10
|
+
_this.input = input;
|
|
11
|
+
return _this;
|
|
12
|
+
}
|
|
13
|
+
DescribeAccessControlConfigurationCommand.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 = "DescribeAccessControlConfigurationCommand";
|
|
19
|
+
var handlerExecutionContext = {
|
|
20
|
+
logger: logger,
|
|
21
|
+
clientName: clientName,
|
|
22
|
+
commandName: commandName,
|
|
23
|
+
inputFilterSensitiveLog: DescribeAccessControlConfigurationRequest.filterSensitiveLog,
|
|
24
|
+
outputFilterSensitiveLog: DescribeAccessControlConfigurationResponse.filterSensitiveLog,
|
|
25
|
+
};
|
|
26
|
+
var requestHandler = configuration.requestHandler;
|
|
27
|
+
return stack.resolve(function (request) {
|
|
28
|
+
return requestHandler.handle(request.request, options || {});
|
|
29
|
+
}, handlerExecutionContext);
|
|
30
|
+
};
|
|
31
|
+
DescribeAccessControlConfigurationCommand.prototype.serialize = function (input, context) {
|
|
32
|
+
return serializeAws_json1_1DescribeAccessControlConfigurationCommand(input, context);
|
|
33
|
+
};
|
|
34
|
+
DescribeAccessControlConfigurationCommand.prototype.deserialize = function (output, context) {
|
|
35
|
+
return deserializeAws_json1_1DescribeAccessControlConfigurationCommand(output, context);
|
|
36
|
+
};
|
|
37
|
+
return DescribeAccessControlConfigurationCommand;
|
|
38
|
+
}($Command));
|
|
39
|
+
export { DescribeAccessControlConfigurationCommand };
|
|
@@ -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 { ListAccessControlConfigurationsRequest, ListAccessControlConfigurationsResponse } from "../models/models_0";
|
|
5
|
+
import { deserializeAws_json1_1ListAccessControlConfigurationsCommand, serializeAws_json1_1ListAccessControlConfigurationsCommand, } from "../protocols/Aws_json1_1";
|
|
6
|
+
var ListAccessControlConfigurationsCommand = (function (_super) {
|
|
7
|
+
__extends(ListAccessControlConfigurationsCommand, _super);
|
|
8
|
+
function ListAccessControlConfigurationsCommand(input) {
|
|
9
|
+
var _this = _super.call(this) || this;
|
|
10
|
+
_this.input = input;
|
|
11
|
+
return _this;
|
|
12
|
+
}
|
|
13
|
+
ListAccessControlConfigurationsCommand.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 = "ListAccessControlConfigurationsCommand";
|
|
19
|
+
var handlerExecutionContext = {
|
|
20
|
+
logger: logger,
|
|
21
|
+
clientName: clientName,
|
|
22
|
+
commandName: commandName,
|
|
23
|
+
inputFilterSensitiveLog: ListAccessControlConfigurationsRequest.filterSensitiveLog,
|
|
24
|
+
outputFilterSensitiveLog: ListAccessControlConfigurationsResponse.filterSensitiveLog,
|
|
25
|
+
};
|
|
26
|
+
var requestHandler = configuration.requestHandler;
|
|
27
|
+
return stack.resolve(function (request) {
|
|
28
|
+
return requestHandler.handle(request.request, options || {});
|
|
29
|
+
}, handlerExecutionContext);
|
|
30
|
+
};
|
|
31
|
+
ListAccessControlConfigurationsCommand.prototype.serialize = function (input, context) {
|
|
32
|
+
return serializeAws_json1_1ListAccessControlConfigurationsCommand(input, context);
|
|
33
|
+
};
|
|
34
|
+
ListAccessControlConfigurationsCommand.prototype.deserialize = function (output, context) {
|
|
35
|
+
return deserializeAws_json1_1ListAccessControlConfigurationsCommand(output, context);
|
|
36
|
+
};
|
|
37
|
+
return ListAccessControlConfigurationsCommand;
|
|
38
|
+
}($Command));
|
|
39
|
+
export { ListAccessControlConfigurationsCommand };
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import { __extends } from "tslib";
|
|
2
2
|
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
3
3
|
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
4
|
-
import {
|
|
4
|
+
import { QueryResult } from "../models/models_0";
|
|
5
|
+
import { QueryRequest } from "../models/models_1";
|
|
5
6
|
import { deserializeAws_json1_1QueryCommand, serializeAws_json1_1QueryCommand } from "../protocols/Aws_json1_1";
|
|
6
7
|
var QueryCommand = (function (_super) {
|
|
7
8
|
__extends(QueryCommand, _super);
|
|
@@ -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 { UpdateAccessControlConfigurationRequest, UpdateAccessControlConfigurationResponse } from "../models/models_0";
|
|
5
|
+
import { deserializeAws_json1_1UpdateAccessControlConfigurationCommand, serializeAws_json1_1UpdateAccessControlConfigurationCommand, } from "../protocols/Aws_json1_1";
|
|
6
|
+
var UpdateAccessControlConfigurationCommand = (function (_super) {
|
|
7
|
+
__extends(UpdateAccessControlConfigurationCommand, _super);
|
|
8
|
+
function UpdateAccessControlConfigurationCommand(input) {
|
|
9
|
+
var _this = _super.call(this) || this;
|
|
10
|
+
_this.input = input;
|
|
11
|
+
return _this;
|
|
12
|
+
}
|
|
13
|
+
UpdateAccessControlConfigurationCommand.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 = "UpdateAccessControlConfigurationCommand";
|
|
19
|
+
var handlerExecutionContext = {
|
|
20
|
+
logger: logger,
|
|
21
|
+
clientName: clientName,
|
|
22
|
+
commandName: commandName,
|
|
23
|
+
inputFilterSensitiveLog: UpdateAccessControlConfigurationRequest.filterSensitiveLog,
|
|
24
|
+
outputFilterSensitiveLog: UpdateAccessControlConfigurationResponse.filterSensitiveLog,
|
|
25
|
+
};
|
|
26
|
+
var requestHandler = configuration.requestHandler;
|
|
27
|
+
return stack.resolve(function (request) {
|
|
28
|
+
return requestHandler.handle(request.request, options || {});
|
|
29
|
+
}, handlerExecutionContext);
|
|
30
|
+
};
|
|
31
|
+
UpdateAccessControlConfigurationCommand.prototype.serialize = function (input, context) {
|
|
32
|
+
return serializeAws_json1_1UpdateAccessControlConfigurationCommand(input, context);
|
|
33
|
+
};
|
|
34
|
+
UpdateAccessControlConfigurationCommand.prototype.deserialize = function (output, context) {
|
|
35
|
+
return deserializeAws_json1_1UpdateAccessControlConfigurationCommand(output, context);
|
|
36
|
+
};
|
|
37
|
+
return UpdateAccessControlConfigurationCommand;
|
|
38
|
+
}($Command));
|
|
39
|
+
export { UpdateAccessControlConfigurationCommand };
|
|
@@ -4,12 +4,14 @@ export * from "./BatchDeleteDocumentCommand";
|
|
|
4
4
|
export * from "./BatchGetDocumentStatusCommand";
|
|
5
5
|
export * from "./BatchPutDocumentCommand";
|
|
6
6
|
export * from "./ClearQuerySuggestionsCommand";
|
|
7
|
+
export * from "./CreateAccessControlConfigurationCommand";
|
|
7
8
|
export * from "./CreateDataSourceCommand";
|
|
8
9
|
export * from "./CreateExperienceCommand";
|
|
9
10
|
export * from "./CreateFaqCommand";
|
|
10
11
|
export * from "./CreateIndexCommand";
|
|
11
12
|
export * from "./CreateQuerySuggestionsBlockListCommand";
|
|
12
13
|
export * from "./CreateThesaurusCommand";
|
|
14
|
+
export * from "./DeleteAccessControlConfigurationCommand";
|
|
13
15
|
export * from "./DeleteDataSourceCommand";
|
|
14
16
|
export * from "./DeleteExperienceCommand";
|
|
15
17
|
export * from "./DeleteFaqCommand";
|
|
@@ -17,6 +19,7 @@ export * from "./DeleteIndexCommand";
|
|
|
17
19
|
export * from "./DeletePrincipalMappingCommand";
|
|
18
20
|
export * from "./DeleteQuerySuggestionsBlockListCommand";
|
|
19
21
|
export * from "./DeleteThesaurusCommand";
|
|
22
|
+
export * from "./DescribeAccessControlConfigurationCommand";
|
|
20
23
|
export * from "./DescribeDataSourceCommand";
|
|
21
24
|
export * from "./DescribeExperienceCommand";
|
|
22
25
|
export * from "./DescribeFaqCommand";
|
|
@@ -29,6 +32,7 @@ export * from "./DisassociateEntitiesFromExperienceCommand";
|
|
|
29
32
|
export * from "./DisassociatePersonasFromEntitiesCommand";
|
|
30
33
|
export * from "./GetQuerySuggestionsCommand";
|
|
31
34
|
export * from "./GetSnapshotsCommand";
|
|
35
|
+
export * from "./ListAccessControlConfigurationsCommand";
|
|
32
36
|
export * from "./ListDataSourceSyncJobsCommand";
|
|
33
37
|
export * from "./ListDataSourcesCommand";
|
|
34
38
|
export * from "./ListEntityPersonasCommand";
|
|
@@ -47,6 +51,7 @@ export * from "./StopDataSourceSyncJobCommand";
|
|
|
47
51
|
export * from "./SubmitFeedbackCommand";
|
|
48
52
|
export * from "./TagResourceCommand";
|
|
49
53
|
export * from "./UntagResourceCommand";
|
|
54
|
+
export * from "./UpdateAccessControlConfigurationCommand";
|
|
50
55
|
export * from "./UpdateDataSourceCommand";
|
|
51
56
|
export * from "./UpdateExperienceCommand";
|
|
52
57
|
export * from "./UpdateIndexCommand";
|
package/dist-es/models/index.js
CHANGED
|
@@ -1,6 +1,10 @@
|
|
|
1
1
|
import { __assign, __extends } from "tslib";
|
|
2
2
|
import { SENSITIVE_STRING } from "@aws-sdk/smithy-client";
|
|
3
3
|
import { KendraServiceException as __BaseException } from "./KendraServiceException";
|
|
4
|
+
export var AccessControlConfigurationSummary;
|
|
5
|
+
(function (AccessControlConfigurationSummary) {
|
|
6
|
+
AccessControlConfigurationSummary.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
7
|
+
})(AccessControlConfigurationSummary || (AccessControlConfigurationSummary = {}));
|
|
4
8
|
export var AccessControlListConfiguration;
|
|
5
9
|
(function (AccessControlListConfiguration) {
|
|
6
10
|
AccessControlListConfiguration.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
@@ -344,6 +348,14 @@ export var ClearQuerySuggestionsRequest;
|
|
|
344
348
|
(function (ClearQuerySuggestionsRequest) {
|
|
345
349
|
ClearQuerySuggestionsRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
346
350
|
})(ClearQuerySuggestionsRequest || (ClearQuerySuggestionsRequest = {}));
|
|
351
|
+
export var CreateAccessControlConfigurationRequest;
|
|
352
|
+
(function (CreateAccessControlConfigurationRequest) {
|
|
353
|
+
CreateAccessControlConfigurationRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
354
|
+
})(CreateAccessControlConfigurationRequest || (CreateAccessControlConfigurationRequest = {}));
|
|
355
|
+
export var CreateAccessControlConfigurationResponse;
|
|
356
|
+
(function (CreateAccessControlConfigurationResponse) {
|
|
357
|
+
CreateAccessControlConfigurationResponse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
358
|
+
})(CreateAccessControlConfigurationResponse || (CreateAccessControlConfigurationResponse = {}));
|
|
347
359
|
export var BoxConfiguration;
|
|
348
360
|
(function (BoxConfiguration) {
|
|
349
361
|
BoxConfiguration.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
@@ -797,6 +809,14 @@ export var CreateThesaurusResponse;
|
|
|
797
809
|
(function (CreateThesaurusResponse) {
|
|
798
810
|
CreateThesaurusResponse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
799
811
|
})(CreateThesaurusResponse || (CreateThesaurusResponse = {}));
|
|
812
|
+
export var DeleteAccessControlConfigurationRequest;
|
|
813
|
+
(function (DeleteAccessControlConfigurationRequest) {
|
|
814
|
+
DeleteAccessControlConfigurationRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
815
|
+
})(DeleteAccessControlConfigurationRequest || (DeleteAccessControlConfigurationRequest = {}));
|
|
816
|
+
export var DeleteAccessControlConfigurationResponse;
|
|
817
|
+
(function (DeleteAccessControlConfigurationResponse) {
|
|
818
|
+
DeleteAccessControlConfigurationResponse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
819
|
+
})(DeleteAccessControlConfigurationResponse || (DeleteAccessControlConfigurationResponse = {}));
|
|
800
820
|
export var DeleteDataSourceRequest;
|
|
801
821
|
(function (DeleteDataSourceRequest) {
|
|
802
822
|
DeleteDataSourceRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
@@ -829,6 +849,14 @@ export var DeleteThesaurusRequest;
|
|
|
829
849
|
(function (DeleteThesaurusRequest) {
|
|
830
850
|
DeleteThesaurusRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
831
851
|
})(DeleteThesaurusRequest || (DeleteThesaurusRequest = {}));
|
|
852
|
+
export var DescribeAccessControlConfigurationRequest;
|
|
853
|
+
(function (DescribeAccessControlConfigurationRequest) {
|
|
854
|
+
DescribeAccessControlConfigurationRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
855
|
+
})(DescribeAccessControlConfigurationRequest || (DescribeAccessControlConfigurationRequest = {}));
|
|
856
|
+
export var DescribeAccessControlConfigurationResponse;
|
|
857
|
+
(function (DescribeAccessControlConfigurationResponse) {
|
|
858
|
+
DescribeAccessControlConfigurationResponse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
859
|
+
})(DescribeAccessControlConfigurationResponse || (DescribeAccessControlConfigurationResponse = {}));
|
|
832
860
|
export var DescribeDataSourceRequest;
|
|
833
861
|
(function (DescribeDataSourceRequest) {
|
|
834
862
|
DescribeDataSourceRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
@@ -1098,6 +1126,14 @@ var InvalidRequestException = (function (_super) {
|
|
|
1098
1126
|
return InvalidRequestException;
|
|
1099
1127
|
}(__BaseException));
|
|
1100
1128
|
export { InvalidRequestException };
|
|
1129
|
+
export var ListAccessControlConfigurationsRequest;
|
|
1130
|
+
(function (ListAccessControlConfigurationsRequest) {
|
|
1131
|
+
ListAccessControlConfigurationsRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
1132
|
+
})(ListAccessControlConfigurationsRequest || (ListAccessControlConfigurationsRequest = {}));
|
|
1133
|
+
export var ListAccessControlConfigurationsResponse;
|
|
1134
|
+
(function (ListAccessControlConfigurationsResponse) {
|
|
1135
|
+
ListAccessControlConfigurationsResponse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
1136
|
+
})(ListAccessControlConfigurationsResponse || (ListAccessControlConfigurationsResponse = {}));
|
|
1101
1137
|
export var ListDataSourcesRequest;
|
|
1102
1138
|
(function (ListDataSourcesRequest) {
|
|
1103
1139
|
ListDataSourcesRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
@@ -1396,6 +1432,14 @@ export var UntagResourceResponse;
|
|
|
1396
1432
|
(function (UntagResourceResponse) {
|
|
1397
1433
|
UntagResourceResponse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
1398
1434
|
})(UntagResourceResponse || (UntagResourceResponse = {}));
|
|
1435
|
+
export var UpdateAccessControlConfigurationRequest;
|
|
1436
|
+
(function (UpdateAccessControlConfigurationRequest) {
|
|
1437
|
+
UpdateAccessControlConfigurationRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
1438
|
+
})(UpdateAccessControlConfigurationRequest || (UpdateAccessControlConfigurationRequest = {}));
|
|
1439
|
+
export var UpdateAccessControlConfigurationResponse;
|
|
1440
|
+
(function (UpdateAccessControlConfigurationResponse) {
|
|
1441
|
+
UpdateAccessControlConfigurationResponse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
1442
|
+
})(UpdateAccessControlConfigurationResponse || (UpdateAccessControlConfigurationResponse = {}));
|
|
1399
1443
|
export var UpdateDataSourceRequest;
|
|
1400
1444
|
(function (UpdateDataSourceRequest) {
|
|
1401
1445
|
UpdateDataSourceRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
@@ -1440,7 +1484,3 @@ export var QueryResult;
|
|
|
1440
1484
|
(function (QueryResult) {
|
|
1441
1485
|
QueryResult.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
1442
1486
|
})(QueryResult || (QueryResult = {}));
|
|
1443
|
-
export var QueryRequest;
|
|
1444
|
-
(function (QueryRequest) {
|
|
1445
|
-
QueryRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
1446
|
-
})(QueryRequest || (QueryRequest = {}));
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
import { __asyncGenerator, __await, __awaiter, __generator, __read, __spreadArray } from "tslib";
|
|
2
|
+
import { ListAccessControlConfigurationsCommand, } from "../commands/ListAccessControlConfigurationsCommand";
|
|
3
|
+
import { Kendra } from "../Kendra";
|
|
4
|
+
import { KendraClient } from "../KendraClient";
|
|
5
|
+
var makePagedClientRequest = function (client, input) {
|
|
6
|
+
var args = [];
|
|
7
|
+
for (var _i = 2; _i < arguments.length; _i++) {
|
|
8
|
+
args[_i - 2] = arguments[_i];
|
|
9
|
+
}
|
|
10
|
+
return __awaiter(void 0, void 0, void 0, function () {
|
|
11
|
+
return __generator(this, function (_a) {
|
|
12
|
+
switch (_a.label) {
|
|
13
|
+
case 0: return [4, client.send.apply(client, __spreadArray([new ListAccessControlConfigurationsCommand(input)], __read(args), false))];
|
|
14
|
+
case 1: return [2, _a.sent()];
|
|
15
|
+
}
|
|
16
|
+
});
|
|
17
|
+
});
|
|
18
|
+
};
|
|
19
|
+
var makePagedRequest = function (client, input) {
|
|
20
|
+
var args = [];
|
|
21
|
+
for (var _i = 2; _i < arguments.length; _i++) {
|
|
22
|
+
args[_i - 2] = arguments[_i];
|
|
23
|
+
}
|
|
24
|
+
return __awaiter(void 0, void 0, void 0, function () {
|
|
25
|
+
return __generator(this, function (_a) {
|
|
26
|
+
switch (_a.label) {
|
|
27
|
+
case 0: return [4, client.listAccessControlConfigurations.apply(client, __spreadArray([input], __read(args), false))];
|
|
28
|
+
case 1: return [2, _a.sent()];
|
|
29
|
+
}
|
|
30
|
+
});
|
|
31
|
+
});
|
|
32
|
+
};
|
|
33
|
+
export function paginateListAccessControlConfigurations(config, input) {
|
|
34
|
+
var additionalArguments = [];
|
|
35
|
+
for (var _i = 2; _i < arguments.length; _i++) {
|
|
36
|
+
additionalArguments[_i - 2] = arguments[_i];
|
|
37
|
+
}
|
|
38
|
+
return __asyncGenerator(this, arguments, function paginateListAccessControlConfigurations_1() {
|
|
39
|
+
var token, hasNext, page, prevToken;
|
|
40
|
+
return __generator(this, function (_a) {
|
|
41
|
+
switch (_a.label) {
|
|
42
|
+
case 0:
|
|
43
|
+
token = config.startingToken || undefined;
|
|
44
|
+
hasNext = true;
|
|
45
|
+
_a.label = 1;
|
|
46
|
+
case 1:
|
|
47
|
+
if (!hasNext) return [3, 9];
|
|
48
|
+
input.NextToken = token;
|
|
49
|
+
input["MaxResults"] = config.pageSize;
|
|
50
|
+
if (!(config.client instanceof Kendra)) return [3, 3];
|
|
51
|
+
return [4, __await(makePagedRequest.apply(void 0, __spreadArray([config.client, input], __read(additionalArguments), false)))];
|
|
52
|
+
case 2:
|
|
53
|
+
page = _a.sent();
|
|
54
|
+
return [3, 6];
|
|
55
|
+
case 3:
|
|
56
|
+
if (!(config.client instanceof KendraClient)) return [3, 5];
|
|
57
|
+
return [4, __await(makePagedClientRequest.apply(void 0, __spreadArray([config.client, input], __read(additionalArguments), false)))];
|
|
58
|
+
case 4:
|
|
59
|
+
page = _a.sent();
|
|
60
|
+
return [3, 6];
|
|
61
|
+
case 5: throw new Error("Invalid client, expected Kendra | KendraClient");
|
|
62
|
+
case 6: return [4, __await(page)];
|
|
63
|
+
case 7: return [4, _a.sent()];
|
|
64
|
+
case 8:
|
|
65
|
+
_a.sent();
|
|
66
|
+
prevToken = token;
|
|
67
|
+
token = page.NextToken;
|
|
68
|
+
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
69
|
+
return [3, 1];
|
|
70
|
+
case 9: return [4, __await(undefined)];
|
|
71
|
+
case 10: return [2, _a.sent()];
|
|
72
|
+
}
|
|
73
|
+
});
|
|
74
|
+
});
|
|
75
|
+
}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
export * from "./GetSnapshotsPaginator";
|
|
2
2
|
export * from "./Interfaces";
|
|
3
|
+
export * from "./ListAccessControlConfigurationsPaginator";
|
|
3
4
|
export * from "./ListDataSourceSyncJobsPaginator";
|
|
4
5
|
export * from "./ListDataSourcesPaginator";
|
|
5
6
|
export * from "./ListEntityPersonasPaginator";
|