@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
|
@@ -3,6 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
const tslib_1 = require("tslib");
|
|
4
4
|
tslib_1.__exportStar(require("./GetSnapshotsPaginator"), exports);
|
|
5
5
|
tslib_1.__exportStar(require("./Interfaces"), exports);
|
|
6
|
+
tslib_1.__exportStar(require("./ListAccessControlConfigurationsPaginator"), exports);
|
|
6
7
|
tslib_1.__exportStar(require("./ListDataSourceSyncJobsPaginator"), exports);
|
|
7
8
|
tslib_1.__exportStar(require("./ListDataSourcesPaginator"), exports);
|
|
8
9
|
tslib_1.__exportStar(require("./ListEntityPersonasPaginator"), exports);
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
4
|
-
exports.
|
|
5
|
-
exports.deserializeAws_json1_1UpdateThesaurusCommand = exports.deserializeAws_json1_1UpdateQuerySuggestionsConfigCommand = exports.deserializeAws_json1_1UpdateQuerySuggestionsBlockListCommand = exports.deserializeAws_json1_1UpdateIndexCommand = exports.deserializeAws_json1_1UpdateExperienceCommand = exports.deserializeAws_json1_1UpdateDataSourceCommand = exports.deserializeAws_json1_1UntagResourceCommand = exports.deserializeAws_json1_1TagResourceCommand = exports.deserializeAws_json1_1SubmitFeedbackCommand = exports.deserializeAws_json1_1StopDataSourceSyncJobCommand = void 0;
|
|
3
|
+
exports.serializeAws_json1_1StopDataSourceSyncJobCommand = exports.serializeAws_json1_1StartDataSourceSyncJobCommand = exports.serializeAws_json1_1QueryCommand = exports.serializeAws_json1_1PutPrincipalMappingCommand = exports.serializeAws_json1_1ListThesauriCommand = exports.serializeAws_json1_1ListTagsForResourceCommand = exports.serializeAws_json1_1ListQuerySuggestionsBlockListsCommand = exports.serializeAws_json1_1ListIndicesCommand = exports.serializeAws_json1_1ListGroupsOlderThanOrderingIdCommand = exports.serializeAws_json1_1ListFaqsCommand = exports.serializeAws_json1_1ListExperiencesCommand = exports.serializeAws_json1_1ListExperienceEntitiesCommand = exports.serializeAws_json1_1ListEntityPersonasCommand = exports.serializeAws_json1_1ListDataSourceSyncJobsCommand = exports.serializeAws_json1_1ListDataSourcesCommand = exports.serializeAws_json1_1ListAccessControlConfigurationsCommand = exports.serializeAws_json1_1GetSnapshotsCommand = exports.serializeAws_json1_1GetQuerySuggestionsCommand = exports.serializeAws_json1_1DisassociatePersonasFromEntitiesCommand = exports.serializeAws_json1_1DisassociateEntitiesFromExperienceCommand = exports.serializeAws_json1_1DescribeThesaurusCommand = exports.serializeAws_json1_1DescribeQuerySuggestionsConfigCommand = exports.serializeAws_json1_1DescribeQuerySuggestionsBlockListCommand = exports.serializeAws_json1_1DescribePrincipalMappingCommand = exports.serializeAws_json1_1DescribeIndexCommand = exports.serializeAws_json1_1DescribeFaqCommand = exports.serializeAws_json1_1DescribeExperienceCommand = exports.serializeAws_json1_1DescribeDataSourceCommand = exports.serializeAws_json1_1DescribeAccessControlConfigurationCommand = exports.serializeAws_json1_1DeleteThesaurusCommand = exports.serializeAws_json1_1DeleteQuerySuggestionsBlockListCommand = exports.serializeAws_json1_1DeletePrincipalMappingCommand = exports.serializeAws_json1_1DeleteIndexCommand = exports.serializeAws_json1_1DeleteFaqCommand = exports.serializeAws_json1_1DeleteExperienceCommand = exports.serializeAws_json1_1DeleteDataSourceCommand = exports.serializeAws_json1_1DeleteAccessControlConfigurationCommand = exports.serializeAws_json1_1CreateThesaurusCommand = exports.serializeAws_json1_1CreateQuerySuggestionsBlockListCommand = exports.serializeAws_json1_1CreateIndexCommand = exports.serializeAws_json1_1CreateFaqCommand = exports.serializeAws_json1_1CreateExperienceCommand = exports.serializeAws_json1_1CreateDataSourceCommand = exports.serializeAws_json1_1CreateAccessControlConfigurationCommand = exports.serializeAws_json1_1ClearQuerySuggestionsCommand = exports.serializeAws_json1_1BatchPutDocumentCommand = exports.serializeAws_json1_1BatchGetDocumentStatusCommand = exports.serializeAws_json1_1BatchDeleteDocumentCommand = exports.serializeAws_json1_1AssociatePersonasToEntitiesCommand = exports.serializeAws_json1_1AssociateEntitiesToExperienceCommand = void 0;
|
|
4
|
+
exports.deserializeAws_json1_1ListExperiencesCommand = exports.deserializeAws_json1_1ListExperienceEntitiesCommand = exports.deserializeAws_json1_1ListEntityPersonasCommand = exports.deserializeAws_json1_1ListDataSourceSyncJobsCommand = exports.deserializeAws_json1_1ListDataSourcesCommand = exports.deserializeAws_json1_1ListAccessControlConfigurationsCommand = exports.deserializeAws_json1_1GetSnapshotsCommand = exports.deserializeAws_json1_1GetQuerySuggestionsCommand = exports.deserializeAws_json1_1DisassociatePersonasFromEntitiesCommand = exports.deserializeAws_json1_1DisassociateEntitiesFromExperienceCommand = exports.deserializeAws_json1_1DescribeThesaurusCommand = exports.deserializeAws_json1_1DescribeQuerySuggestionsConfigCommand = exports.deserializeAws_json1_1DescribeQuerySuggestionsBlockListCommand = exports.deserializeAws_json1_1DescribePrincipalMappingCommand = exports.deserializeAws_json1_1DescribeIndexCommand = exports.deserializeAws_json1_1DescribeFaqCommand = exports.deserializeAws_json1_1DescribeExperienceCommand = exports.deserializeAws_json1_1DescribeDataSourceCommand = exports.deserializeAws_json1_1DescribeAccessControlConfigurationCommand = exports.deserializeAws_json1_1DeleteThesaurusCommand = exports.deserializeAws_json1_1DeleteQuerySuggestionsBlockListCommand = exports.deserializeAws_json1_1DeletePrincipalMappingCommand = exports.deserializeAws_json1_1DeleteIndexCommand = exports.deserializeAws_json1_1DeleteFaqCommand = exports.deserializeAws_json1_1DeleteExperienceCommand = exports.deserializeAws_json1_1DeleteDataSourceCommand = exports.deserializeAws_json1_1DeleteAccessControlConfigurationCommand = exports.deserializeAws_json1_1CreateThesaurusCommand = exports.deserializeAws_json1_1CreateQuerySuggestionsBlockListCommand = exports.deserializeAws_json1_1CreateIndexCommand = exports.deserializeAws_json1_1CreateFaqCommand = exports.deserializeAws_json1_1CreateExperienceCommand = exports.deserializeAws_json1_1CreateDataSourceCommand = exports.deserializeAws_json1_1CreateAccessControlConfigurationCommand = exports.deserializeAws_json1_1ClearQuerySuggestionsCommand = exports.deserializeAws_json1_1BatchPutDocumentCommand = exports.deserializeAws_json1_1BatchGetDocumentStatusCommand = exports.deserializeAws_json1_1BatchDeleteDocumentCommand = exports.deserializeAws_json1_1AssociatePersonasToEntitiesCommand = exports.deserializeAws_json1_1AssociateEntitiesToExperienceCommand = exports.serializeAws_json1_1UpdateThesaurusCommand = exports.serializeAws_json1_1UpdateQuerySuggestionsConfigCommand = exports.serializeAws_json1_1UpdateQuerySuggestionsBlockListCommand = exports.serializeAws_json1_1UpdateIndexCommand = exports.serializeAws_json1_1UpdateExperienceCommand = exports.serializeAws_json1_1UpdateDataSourceCommand = exports.serializeAws_json1_1UpdateAccessControlConfigurationCommand = exports.serializeAws_json1_1UntagResourceCommand = exports.serializeAws_json1_1TagResourceCommand = exports.serializeAws_json1_1SubmitFeedbackCommand = void 0;
|
|
5
|
+
exports.deserializeAws_json1_1UpdateThesaurusCommand = exports.deserializeAws_json1_1UpdateQuerySuggestionsConfigCommand = exports.deserializeAws_json1_1UpdateQuerySuggestionsBlockListCommand = exports.deserializeAws_json1_1UpdateIndexCommand = exports.deserializeAws_json1_1UpdateExperienceCommand = exports.deserializeAws_json1_1UpdateDataSourceCommand = exports.deserializeAws_json1_1UpdateAccessControlConfigurationCommand = exports.deserializeAws_json1_1UntagResourceCommand = exports.deserializeAws_json1_1TagResourceCommand = exports.deserializeAws_json1_1SubmitFeedbackCommand = exports.deserializeAws_json1_1StopDataSourceSyncJobCommand = exports.deserializeAws_json1_1StartDataSourceSyncJobCommand = exports.deserializeAws_json1_1QueryCommand = exports.deserializeAws_json1_1PutPrincipalMappingCommand = exports.deserializeAws_json1_1ListThesauriCommand = exports.deserializeAws_json1_1ListTagsForResourceCommand = exports.deserializeAws_json1_1ListQuerySuggestionsBlockListsCommand = exports.deserializeAws_json1_1ListIndicesCommand = exports.deserializeAws_json1_1ListGroupsOlderThanOrderingIdCommand = exports.deserializeAws_json1_1ListFaqsCommand = void 0;
|
|
6
6
|
const protocol_http_1 = require("@aws-sdk/protocol-http");
|
|
7
7
|
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
8
8
|
const uuid_1 = require("uuid");
|
|
@@ -68,6 +68,16 @@ const serializeAws_json1_1ClearQuerySuggestionsCommand = async (input, context)
|
|
|
68
68
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
69
69
|
};
|
|
70
70
|
exports.serializeAws_json1_1ClearQuerySuggestionsCommand = serializeAws_json1_1ClearQuerySuggestionsCommand;
|
|
71
|
+
const serializeAws_json1_1CreateAccessControlConfigurationCommand = async (input, context) => {
|
|
72
|
+
const headers = {
|
|
73
|
+
"content-type": "application/x-amz-json-1.1",
|
|
74
|
+
"x-amz-target": "AWSKendraFrontendService.CreateAccessControlConfiguration",
|
|
75
|
+
};
|
|
76
|
+
let body;
|
|
77
|
+
body = JSON.stringify(serializeAws_json1_1CreateAccessControlConfigurationRequest(input, context));
|
|
78
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
79
|
+
};
|
|
80
|
+
exports.serializeAws_json1_1CreateAccessControlConfigurationCommand = serializeAws_json1_1CreateAccessControlConfigurationCommand;
|
|
71
81
|
const serializeAws_json1_1CreateDataSourceCommand = async (input, context) => {
|
|
72
82
|
const headers = {
|
|
73
83
|
"content-type": "application/x-amz-json-1.1",
|
|
@@ -128,6 +138,16 @@ const serializeAws_json1_1CreateThesaurusCommand = async (input, context) => {
|
|
|
128
138
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
129
139
|
};
|
|
130
140
|
exports.serializeAws_json1_1CreateThesaurusCommand = serializeAws_json1_1CreateThesaurusCommand;
|
|
141
|
+
const serializeAws_json1_1DeleteAccessControlConfigurationCommand = async (input, context) => {
|
|
142
|
+
const headers = {
|
|
143
|
+
"content-type": "application/x-amz-json-1.1",
|
|
144
|
+
"x-amz-target": "AWSKendraFrontendService.DeleteAccessControlConfiguration",
|
|
145
|
+
};
|
|
146
|
+
let body;
|
|
147
|
+
body = JSON.stringify(serializeAws_json1_1DeleteAccessControlConfigurationRequest(input, context));
|
|
148
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
149
|
+
};
|
|
150
|
+
exports.serializeAws_json1_1DeleteAccessControlConfigurationCommand = serializeAws_json1_1DeleteAccessControlConfigurationCommand;
|
|
131
151
|
const serializeAws_json1_1DeleteDataSourceCommand = async (input, context) => {
|
|
132
152
|
const headers = {
|
|
133
153
|
"content-type": "application/x-amz-json-1.1",
|
|
@@ -198,6 +218,16 @@ const serializeAws_json1_1DeleteThesaurusCommand = async (input, context) => {
|
|
|
198
218
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
199
219
|
};
|
|
200
220
|
exports.serializeAws_json1_1DeleteThesaurusCommand = serializeAws_json1_1DeleteThesaurusCommand;
|
|
221
|
+
const serializeAws_json1_1DescribeAccessControlConfigurationCommand = async (input, context) => {
|
|
222
|
+
const headers = {
|
|
223
|
+
"content-type": "application/x-amz-json-1.1",
|
|
224
|
+
"x-amz-target": "AWSKendraFrontendService.DescribeAccessControlConfiguration",
|
|
225
|
+
};
|
|
226
|
+
let body;
|
|
227
|
+
body = JSON.stringify(serializeAws_json1_1DescribeAccessControlConfigurationRequest(input, context));
|
|
228
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
229
|
+
};
|
|
230
|
+
exports.serializeAws_json1_1DescribeAccessControlConfigurationCommand = serializeAws_json1_1DescribeAccessControlConfigurationCommand;
|
|
201
231
|
const serializeAws_json1_1DescribeDataSourceCommand = async (input, context) => {
|
|
202
232
|
const headers = {
|
|
203
233
|
"content-type": "application/x-amz-json-1.1",
|
|
@@ -318,6 +348,16 @@ const serializeAws_json1_1GetSnapshotsCommand = async (input, context) => {
|
|
|
318
348
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
319
349
|
};
|
|
320
350
|
exports.serializeAws_json1_1GetSnapshotsCommand = serializeAws_json1_1GetSnapshotsCommand;
|
|
351
|
+
const serializeAws_json1_1ListAccessControlConfigurationsCommand = async (input, context) => {
|
|
352
|
+
const headers = {
|
|
353
|
+
"content-type": "application/x-amz-json-1.1",
|
|
354
|
+
"x-amz-target": "AWSKendraFrontendService.ListAccessControlConfigurations",
|
|
355
|
+
};
|
|
356
|
+
let body;
|
|
357
|
+
body = JSON.stringify(serializeAws_json1_1ListAccessControlConfigurationsRequest(input, context));
|
|
358
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
359
|
+
};
|
|
360
|
+
exports.serializeAws_json1_1ListAccessControlConfigurationsCommand = serializeAws_json1_1ListAccessControlConfigurationsCommand;
|
|
321
361
|
const serializeAws_json1_1ListDataSourcesCommand = async (input, context) => {
|
|
322
362
|
const headers = {
|
|
323
363
|
"content-type": "application/x-amz-json-1.1",
|
|
@@ -498,6 +538,16 @@ const serializeAws_json1_1UntagResourceCommand = async (input, context) => {
|
|
|
498
538
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
499
539
|
};
|
|
500
540
|
exports.serializeAws_json1_1UntagResourceCommand = serializeAws_json1_1UntagResourceCommand;
|
|
541
|
+
const serializeAws_json1_1UpdateAccessControlConfigurationCommand = async (input, context) => {
|
|
542
|
+
const headers = {
|
|
543
|
+
"content-type": "application/x-amz-json-1.1",
|
|
544
|
+
"x-amz-target": "AWSKendraFrontendService.UpdateAccessControlConfiguration",
|
|
545
|
+
};
|
|
546
|
+
let body;
|
|
547
|
+
body = JSON.stringify(serializeAws_json1_1UpdateAccessControlConfigurationRequest(input, context));
|
|
548
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
549
|
+
};
|
|
550
|
+
exports.serializeAws_json1_1UpdateAccessControlConfigurationCommand = serializeAws_json1_1UpdateAccessControlConfigurationCommand;
|
|
501
551
|
const serializeAws_json1_1UpdateDataSourceCommand = async (input, context) => {
|
|
502
552
|
const headers = {
|
|
503
553
|
"content-type": "application/x-amz-json-1.1",
|
|
@@ -870,6 +920,61 @@ const deserializeAws_json1_1ClearQuerySuggestionsCommandError = async (output, c
|
|
|
870
920
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
871
921
|
}
|
|
872
922
|
};
|
|
923
|
+
const deserializeAws_json1_1CreateAccessControlConfigurationCommand = async (output, context) => {
|
|
924
|
+
if (output.statusCode >= 300) {
|
|
925
|
+
return deserializeAws_json1_1CreateAccessControlConfigurationCommandError(output, context);
|
|
926
|
+
}
|
|
927
|
+
const data = await parseBody(output.body, context);
|
|
928
|
+
let contents = {};
|
|
929
|
+
contents = deserializeAws_json1_1CreateAccessControlConfigurationResponse(data, context);
|
|
930
|
+
const response = {
|
|
931
|
+
$metadata: deserializeMetadata(output),
|
|
932
|
+
...contents,
|
|
933
|
+
};
|
|
934
|
+
return Promise.resolve(response);
|
|
935
|
+
};
|
|
936
|
+
exports.deserializeAws_json1_1CreateAccessControlConfigurationCommand = deserializeAws_json1_1CreateAccessControlConfigurationCommand;
|
|
937
|
+
const deserializeAws_json1_1CreateAccessControlConfigurationCommandError = async (output, context) => {
|
|
938
|
+
const parsedOutput = {
|
|
939
|
+
...output,
|
|
940
|
+
body: await parseBody(output.body, context),
|
|
941
|
+
};
|
|
942
|
+
let response;
|
|
943
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
944
|
+
switch (errorCode) {
|
|
945
|
+
case "AccessDeniedException":
|
|
946
|
+
case "com.amazonaws.kendra#AccessDeniedException":
|
|
947
|
+
throw await deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
948
|
+
case "ConflictException":
|
|
949
|
+
case "com.amazonaws.kendra#ConflictException":
|
|
950
|
+
throw await deserializeAws_json1_1ConflictExceptionResponse(parsedOutput, context);
|
|
951
|
+
case "InternalServerException":
|
|
952
|
+
case "com.amazonaws.kendra#InternalServerException":
|
|
953
|
+
throw await deserializeAws_json1_1InternalServerExceptionResponse(parsedOutput, context);
|
|
954
|
+
case "ResourceNotFoundException":
|
|
955
|
+
case "com.amazonaws.kendra#ResourceNotFoundException":
|
|
956
|
+
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
957
|
+
case "ServiceQuotaExceededException":
|
|
958
|
+
case "com.amazonaws.kendra#ServiceQuotaExceededException":
|
|
959
|
+
throw await deserializeAws_json1_1ServiceQuotaExceededExceptionResponse(parsedOutput, context);
|
|
960
|
+
case "ThrottlingException":
|
|
961
|
+
case "com.amazonaws.kendra#ThrottlingException":
|
|
962
|
+
throw await deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context);
|
|
963
|
+
case "ValidationException":
|
|
964
|
+
case "com.amazonaws.kendra#ValidationException":
|
|
965
|
+
throw await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context);
|
|
966
|
+
default:
|
|
967
|
+
const parsedBody = parsedOutput.body;
|
|
968
|
+
const $metadata = deserializeMetadata(output);
|
|
969
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
970
|
+
response = new KendraServiceException_1.KendraServiceException({
|
|
971
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
972
|
+
$fault: "client",
|
|
973
|
+
$metadata,
|
|
974
|
+
});
|
|
975
|
+
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
976
|
+
}
|
|
977
|
+
};
|
|
873
978
|
const deserializeAws_json1_1CreateDataSourceCommand = async (output, context) => {
|
|
874
979
|
if (output.statusCode >= 300) {
|
|
875
980
|
return deserializeAws_json1_1CreateDataSourceCommandError(output, context);
|
|
@@ -1203,6 +1308,58 @@ const deserializeAws_json1_1CreateThesaurusCommandError = async (output, context
|
|
|
1203
1308
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1204
1309
|
}
|
|
1205
1310
|
};
|
|
1311
|
+
const deserializeAws_json1_1DeleteAccessControlConfigurationCommand = async (output, context) => {
|
|
1312
|
+
if (output.statusCode >= 300) {
|
|
1313
|
+
return deserializeAws_json1_1DeleteAccessControlConfigurationCommandError(output, context);
|
|
1314
|
+
}
|
|
1315
|
+
const data = await parseBody(output.body, context);
|
|
1316
|
+
let contents = {};
|
|
1317
|
+
contents = deserializeAws_json1_1DeleteAccessControlConfigurationResponse(data, context);
|
|
1318
|
+
const response = {
|
|
1319
|
+
$metadata: deserializeMetadata(output),
|
|
1320
|
+
...contents,
|
|
1321
|
+
};
|
|
1322
|
+
return Promise.resolve(response);
|
|
1323
|
+
};
|
|
1324
|
+
exports.deserializeAws_json1_1DeleteAccessControlConfigurationCommand = deserializeAws_json1_1DeleteAccessControlConfigurationCommand;
|
|
1325
|
+
const deserializeAws_json1_1DeleteAccessControlConfigurationCommandError = async (output, context) => {
|
|
1326
|
+
const parsedOutput = {
|
|
1327
|
+
...output,
|
|
1328
|
+
body: await parseBody(output.body, context),
|
|
1329
|
+
};
|
|
1330
|
+
let response;
|
|
1331
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1332
|
+
switch (errorCode) {
|
|
1333
|
+
case "AccessDeniedException":
|
|
1334
|
+
case "com.amazonaws.kendra#AccessDeniedException":
|
|
1335
|
+
throw await deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
1336
|
+
case "ConflictException":
|
|
1337
|
+
case "com.amazonaws.kendra#ConflictException":
|
|
1338
|
+
throw await deserializeAws_json1_1ConflictExceptionResponse(parsedOutput, context);
|
|
1339
|
+
case "InternalServerException":
|
|
1340
|
+
case "com.amazonaws.kendra#InternalServerException":
|
|
1341
|
+
throw await deserializeAws_json1_1InternalServerExceptionResponse(parsedOutput, context);
|
|
1342
|
+
case "ResourceNotFoundException":
|
|
1343
|
+
case "com.amazonaws.kendra#ResourceNotFoundException":
|
|
1344
|
+
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1345
|
+
case "ThrottlingException":
|
|
1346
|
+
case "com.amazonaws.kendra#ThrottlingException":
|
|
1347
|
+
throw await deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context);
|
|
1348
|
+
case "ValidationException":
|
|
1349
|
+
case "com.amazonaws.kendra#ValidationException":
|
|
1350
|
+
throw await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context);
|
|
1351
|
+
default:
|
|
1352
|
+
const parsedBody = parsedOutput.body;
|
|
1353
|
+
const $metadata = deserializeMetadata(output);
|
|
1354
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1355
|
+
response = new KendraServiceException_1.KendraServiceException({
|
|
1356
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1357
|
+
$fault: "client",
|
|
1358
|
+
$metadata,
|
|
1359
|
+
});
|
|
1360
|
+
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1361
|
+
}
|
|
1362
|
+
};
|
|
1206
1363
|
const deserializeAws_json1_1DeleteDataSourceCommand = async (output, context) => {
|
|
1207
1364
|
if (output.statusCode >= 300) {
|
|
1208
1365
|
return deserializeAws_json1_1DeleteDataSourceCommandError(output, context);
|
|
@@ -1549,6 +1706,55 @@ const deserializeAws_json1_1DeleteThesaurusCommandError = async (output, context
|
|
|
1549
1706
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1550
1707
|
}
|
|
1551
1708
|
};
|
|
1709
|
+
const deserializeAws_json1_1DescribeAccessControlConfigurationCommand = async (output, context) => {
|
|
1710
|
+
if (output.statusCode >= 300) {
|
|
1711
|
+
return deserializeAws_json1_1DescribeAccessControlConfigurationCommandError(output, context);
|
|
1712
|
+
}
|
|
1713
|
+
const data = await parseBody(output.body, context);
|
|
1714
|
+
let contents = {};
|
|
1715
|
+
contents = deserializeAws_json1_1DescribeAccessControlConfigurationResponse(data, context);
|
|
1716
|
+
const response = {
|
|
1717
|
+
$metadata: deserializeMetadata(output),
|
|
1718
|
+
...contents,
|
|
1719
|
+
};
|
|
1720
|
+
return Promise.resolve(response);
|
|
1721
|
+
};
|
|
1722
|
+
exports.deserializeAws_json1_1DescribeAccessControlConfigurationCommand = deserializeAws_json1_1DescribeAccessControlConfigurationCommand;
|
|
1723
|
+
const deserializeAws_json1_1DescribeAccessControlConfigurationCommandError = async (output, context) => {
|
|
1724
|
+
const parsedOutput = {
|
|
1725
|
+
...output,
|
|
1726
|
+
body: await parseBody(output.body, context),
|
|
1727
|
+
};
|
|
1728
|
+
let response;
|
|
1729
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1730
|
+
switch (errorCode) {
|
|
1731
|
+
case "AccessDeniedException":
|
|
1732
|
+
case "com.amazonaws.kendra#AccessDeniedException":
|
|
1733
|
+
throw await deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
1734
|
+
case "InternalServerException":
|
|
1735
|
+
case "com.amazonaws.kendra#InternalServerException":
|
|
1736
|
+
throw await deserializeAws_json1_1InternalServerExceptionResponse(parsedOutput, context);
|
|
1737
|
+
case "ResourceNotFoundException":
|
|
1738
|
+
case "com.amazonaws.kendra#ResourceNotFoundException":
|
|
1739
|
+
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1740
|
+
case "ThrottlingException":
|
|
1741
|
+
case "com.amazonaws.kendra#ThrottlingException":
|
|
1742
|
+
throw await deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context);
|
|
1743
|
+
case "ValidationException":
|
|
1744
|
+
case "com.amazonaws.kendra#ValidationException":
|
|
1745
|
+
throw await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context);
|
|
1746
|
+
default:
|
|
1747
|
+
const parsedBody = parsedOutput.body;
|
|
1748
|
+
const $metadata = deserializeMetadata(output);
|
|
1749
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1750
|
+
response = new KendraServiceException_1.KendraServiceException({
|
|
1751
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1752
|
+
$fault: "client",
|
|
1753
|
+
$metadata,
|
|
1754
|
+
});
|
|
1755
|
+
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1756
|
+
}
|
|
1757
|
+
};
|
|
1552
1758
|
const deserializeAws_json1_1DescribeDataSourceCommand = async (output, context) => {
|
|
1553
1759
|
if (output.statusCode >= 300) {
|
|
1554
1760
|
return deserializeAws_json1_1DescribeDataSourceCommandError(output, context);
|
|
@@ -2140,6 +2346,55 @@ const deserializeAws_json1_1GetSnapshotsCommandError = async (output, context) =
|
|
|
2140
2346
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2141
2347
|
}
|
|
2142
2348
|
};
|
|
2349
|
+
const deserializeAws_json1_1ListAccessControlConfigurationsCommand = async (output, context) => {
|
|
2350
|
+
if (output.statusCode >= 300) {
|
|
2351
|
+
return deserializeAws_json1_1ListAccessControlConfigurationsCommandError(output, context);
|
|
2352
|
+
}
|
|
2353
|
+
const data = await parseBody(output.body, context);
|
|
2354
|
+
let contents = {};
|
|
2355
|
+
contents = deserializeAws_json1_1ListAccessControlConfigurationsResponse(data, context);
|
|
2356
|
+
const response = {
|
|
2357
|
+
$metadata: deserializeMetadata(output),
|
|
2358
|
+
...contents,
|
|
2359
|
+
};
|
|
2360
|
+
return Promise.resolve(response);
|
|
2361
|
+
};
|
|
2362
|
+
exports.deserializeAws_json1_1ListAccessControlConfigurationsCommand = deserializeAws_json1_1ListAccessControlConfigurationsCommand;
|
|
2363
|
+
const deserializeAws_json1_1ListAccessControlConfigurationsCommandError = async (output, context) => {
|
|
2364
|
+
const parsedOutput = {
|
|
2365
|
+
...output,
|
|
2366
|
+
body: await parseBody(output.body, context),
|
|
2367
|
+
};
|
|
2368
|
+
let response;
|
|
2369
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2370
|
+
switch (errorCode) {
|
|
2371
|
+
case "AccessDeniedException":
|
|
2372
|
+
case "com.amazonaws.kendra#AccessDeniedException":
|
|
2373
|
+
throw await deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
2374
|
+
case "InternalServerException":
|
|
2375
|
+
case "com.amazonaws.kendra#InternalServerException":
|
|
2376
|
+
throw await deserializeAws_json1_1InternalServerExceptionResponse(parsedOutput, context);
|
|
2377
|
+
case "ResourceNotFoundException":
|
|
2378
|
+
case "com.amazonaws.kendra#ResourceNotFoundException":
|
|
2379
|
+
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
2380
|
+
case "ThrottlingException":
|
|
2381
|
+
case "com.amazonaws.kendra#ThrottlingException":
|
|
2382
|
+
throw await deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context);
|
|
2383
|
+
case "ValidationException":
|
|
2384
|
+
case "com.amazonaws.kendra#ValidationException":
|
|
2385
|
+
throw await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context);
|
|
2386
|
+
default:
|
|
2387
|
+
const parsedBody = parsedOutput.body;
|
|
2388
|
+
const $metadata = deserializeMetadata(output);
|
|
2389
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2390
|
+
response = new KendraServiceException_1.KendraServiceException({
|
|
2391
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2392
|
+
$fault: "client",
|
|
2393
|
+
$metadata,
|
|
2394
|
+
});
|
|
2395
|
+
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2396
|
+
}
|
|
2397
|
+
};
|
|
2143
2398
|
const deserializeAws_json1_1ListDataSourcesCommand = async (output, context) => {
|
|
2144
2399
|
if (output.statusCode >= 300) {
|
|
2145
2400
|
return deserializeAws_json1_1ListDataSourcesCommandError(output, context);
|
|
@@ -3037,6 +3292,61 @@ const deserializeAws_json1_1UntagResourceCommandError = async (output, context)
|
|
|
3037
3292
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3038
3293
|
}
|
|
3039
3294
|
};
|
|
3295
|
+
const deserializeAws_json1_1UpdateAccessControlConfigurationCommand = async (output, context) => {
|
|
3296
|
+
if (output.statusCode >= 300) {
|
|
3297
|
+
return deserializeAws_json1_1UpdateAccessControlConfigurationCommandError(output, context);
|
|
3298
|
+
}
|
|
3299
|
+
const data = await parseBody(output.body, context);
|
|
3300
|
+
let contents = {};
|
|
3301
|
+
contents = deserializeAws_json1_1UpdateAccessControlConfigurationResponse(data, context);
|
|
3302
|
+
const response = {
|
|
3303
|
+
$metadata: deserializeMetadata(output),
|
|
3304
|
+
...contents,
|
|
3305
|
+
};
|
|
3306
|
+
return Promise.resolve(response);
|
|
3307
|
+
};
|
|
3308
|
+
exports.deserializeAws_json1_1UpdateAccessControlConfigurationCommand = deserializeAws_json1_1UpdateAccessControlConfigurationCommand;
|
|
3309
|
+
const deserializeAws_json1_1UpdateAccessControlConfigurationCommandError = async (output, context) => {
|
|
3310
|
+
const parsedOutput = {
|
|
3311
|
+
...output,
|
|
3312
|
+
body: await parseBody(output.body, context),
|
|
3313
|
+
};
|
|
3314
|
+
let response;
|
|
3315
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3316
|
+
switch (errorCode) {
|
|
3317
|
+
case "AccessDeniedException":
|
|
3318
|
+
case "com.amazonaws.kendra#AccessDeniedException":
|
|
3319
|
+
throw await deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
3320
|
+
case "ConflictException":
|
|
3321
|
+
case "com.amazonaws.kendra#ConflictException":
|
|
3322
|
+
throw await deserializeAws_json1_1ConflictExceptionResponse(parsedOutput, context);
|
|
3323
|
+
case "InternalServerException":
|
|
3324
|
+
case "com.amazonaws.kendra#InternalServerException":
|
|
3325
|
+
throw await deserializeAws_json1_1InternalServerExceptionResponse(parsedOutput, context);
|
|
3326
|
+
case "ResourceNotFoundException":
|
|
3327
|
+
case "com.amazonaws.kendra#ResourceNotFoundException":
|
|
3328
|
+
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
3329
|
+
case "ServiceQuotaExceededException":
|
|
3330
|
+
case "com.amazonaws.kendra#ServiceQuotaExceededException":
|
|
3331
|
+
throw await deserializeAws_json1_1ServiceQuotaExceededExceptionResponse(parsedOutput, context);
|
|
3332
|
+
case "ThrottlingException":
|
|
3333
|
+
case "com.amazonaws.kendra#ThrottlingException":
|
|
3334
|
+
throw await deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context);
|
|
3335
|
+
case "ValidationException":
|
|
3336
|
+
case "com.amazonaws.kendra#ValidationException":
|
|
3337
|
+
throw await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context);
|
|
3338
|
+
default:
|
|
3339
|
+
const parsedBody = parsedOutput.body;
|
|
3340
|
+
const $metadata = deserializeMetadata(output);
|
|
3341
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3342
|
+
response = new KendraServiceException_1.KendraServiceException({
|
|
3343
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
3344
|
+
$fault: "client",
|
|
3345
|
+
$metadata,
|
|
3346
|
+
});
|
|
3347
|
+
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3348
|
+
}
|
|
3349
|
+
};
|
|
3040
3350
|
const deserializeAws_json1_1UpdateDataSourceCommand = async (output, context) => {
|
|
3041
3351
|
if (output.statusCode >= 300) {
|
|
3042
3352
|
return deserializeAws_json1_1UpdateDataSourceCommandError(output, context);
|
|
@@ -3833,6 +4143,21 @@ const serializeAws_json1_1ContentSourceConfiguration = (input, context) => {
|
|
|
3833
4143
|
...(input.FaqIds != null && { FaqIds: serializeAws_json1_1FaqIdsList(input.FaqIds, context) }),
|
|
3834
4144
|
};
|
|
3835
4145
|
};
|
|
4146
|
+
const serializeAws_json1_1CreateAccessControlConfigurationRequest = (input, context) => {
|
|
4147
|
+
var _a;
|
|
4148
|
+
return {
|
|
4149
|
+
...(input.AccessControlList != null && {
|
|
4150
|
+
AccessControlList: serializeAws_json1_1PrincipalList(input.AccessControlList, context),
|
|
4151
|
+
}),
|
|
4152
|
+
ClientToken: (_a = input.ClientToken) !== null && _a !== void 0 ? _a : (0, uuid_1.v4)(),
|
|
4153
|
+
...(input.Description != null && { Description: input.Description }),
|
|
4154
|
+
...(input.HierarchicalAccessControlList != null && {
|
|
4155
|
+
HierarchicalAccessControlList: serializeAws_json1_1HierarchicalPrincipalList(input.HierarchicalAccessControlList, context),
|
|
4156
|
+
}),
|
|
4157
|
+
...(input.IndexId != null && { IndexId: input.IndexId }),
|
|
4158
|
+
...(input.Name != null && { Name: input.Name }),
|
|
4159
|
+
};
|
|
4160
|
+
};
|
|
3836
4161
|
const serializeAws_json1_1CreateDataSourceRequest = (input, context) => {
|
|
3837
4162
|
var _a;
|
|
3838
4163
|
return {
|
|
@@ -4081,6 +4406,12 @@ const serializeAws_json1_1DataSourceVpcConfiguration = (input, context) => {
|
|
|
4081
4406
|
...(input.SubnetIds != null && { SubnetIds: serializeAws_json1_1SubnetIdList(input.SubnetIds, context) }),
|
|
4082
4407
|
};
|
|
4083
4408
|
};
|
|
4409
|
+
const serializeAws_json1_1DeleteAccessControlConfigurationRequest = (input, context) => {
|
|
4410
|
+
return {
|
|
4411
|
+
...(input.Id != null && { Id: input.Id }),
|
|
4412
|
+
...(input.IndexId != null && { IndexId: input.IndexId }),
|
|
4413
|
+
};
|
|
4414
|
+
};
|
|
4084
4415
|
const serializeAws_json1_1DeleteDataSourceRequest = (input, context) => {
|
|
4085
4416
|
return {
|
|
4086
4417
|
...(input.Id != null && { Id: input.Id }),
|
|
@@ -4124,6 +4455,12 @@ const serializeAws_json1_1DeleteThesaurusRequest = (input, context) => {
|
|
|
4124
4455
|
...(input.IndexId != null && { IndexId: input.IndexId }),
|
|
4125
4456
|
};
|
|
4126
4457
|
};
|
|
4458
|
+
const serializeAws_json1_1DescribeAccessControlConfigurationRequest = (input, context) => {
|
|
4459
|
+
return {
|
|
4460
|
+
...(input.Id != null && { Id: input.Id }),
|
|
4461
|
+
...(input.IndexId != null && { IndexId: input.IndexId }),
|
|
4462
|
+
};
|
|
4463
|
+
};
|
|
4127
4464
|
const serializeAws_json1_1DescribeDataSourceRequest = (input, context) => {
|
|
4128
4465
|
return {
|
|
4129
4466
|
...(input.Id != null && { Id: input.Id }),
|
|
@@ -4199,6 +4536,9 @@ const serializeAws_json1_1DisassociatePersonasFromEntitiesRequest = (input, cont
|
|
|
4199
4536
|
};
|
|
4200
4537
|
const serializeAws_json1_1Document = (input, context) => {
|
|
4201
4538
|
return {
|
|
4539
|
+
...(input.AccessControlConfigurationId != null && {
|
|
4540
|
+
AccessControlConfigurationId: input.AccessControlConfigurationId,
|
|
4541
|
+
}),
|
|
4202
4542
|
...(input.AccessControlList != null && {
|
|
4203
4543
|
AccessControlList: serializeAws_json1_1PrincipalList(input.AccessControlList, context),
|
|
4204
4544
|
}),
|
|
@@ -4764,6 +5104,13 @@ const serializeAws_json1_1JwtTokenTypeConfiguration = (input, context) => {
|
|
|
4764
5104
|
...(input.UserNameAttributeField != null && { UserNameAttributeField: input.UserNameAttributeField }),
|
|
4765
5105
|
};
|
|
4766
5106
|
};
|
|
5107
|
+
const serializeAws_json1_1ListAccessControlConfigurationsRequest = (input, context) => {
|
|
5108
|
+
return {
|
|
5109
|
+
...(input.IndexId != null && { IndexId: input.IndexId }),
|
|
5110
|
+
...(input.MaxResults != null && { MaxResults: input.MaxResults }),
|
|
5111
|
+
...(input.NextToken != null && { NextToken: input.NextToken }),
|
|
5112
|
+
};
|
|
5113
|
+
};
|
|
4767
5114
|
const serializeAws_json1_1ListDataSourcesRequest = (input, context) => {
|
|
4768
5115
|
return {
|
|
4769
5116
|
...(input.IndexId != null && { IndexId: input.IndexId }),
|
|
@@ -5528,6 +5875,20 @@ const serializeAws_json1_1UntagResourceRequest = (input, context) => {
|
|
|
5528
5875
|
...(input.TagKeys != null && { TagKeys: serializeAws_json1_1TagKeyList(input.TagKeys, context) }),
|
|
5529
5876
|
};
|
|
5530
5877
|
};
|
|
5878
|
+
const serializeAws_json1_1UpdateAccessControlConfigurationRequest = (input, context) => {
|
|
5879
|
+
return {
|
|
5880
|
+
...(input.AccessControlList != null && {
|
|
5881
|
+
AccessControlList: serializeAws_json1_1PrincipalList(input.AccessControlList, context),
|
|
5882
|
+
}),
|
|
5883
|
+
...(input.Description != null && { Description: input.Description }),
|
|
5884
|
+
...(input.HierarchicalAccessControlList != null && {
|
|
5885
|
+
HierarchicalAccessControlList: serializeAws_json1_1HierarchicalPrincipalList(input.HierarchicalAccessControlList, context),
|
|
5886
|
+
}),
|
|
5887
|
+
...(input.Id != null && { Id: input.Id }),
|
|
5888
|
+
...(input.IndexId != null && { IndexId: input.IndexId }),
|
|
5889
|
+
...(input.Name != null && { Name: input.Name }),
|
|
5890
|
+
};
|
|
5891
|
+
};
|
|
5531
5892
|
const serializeAws_json1_1UpdateDataSourceRequest = (input, context) => {
|
|
5532
5893
|
return {
|
|
5533
5894
|
...(input.Configuration != null && {
|
|
@@ -5714,6 +6075,22 @@ const serializeAws_json1_1WorkDocsConfiguration = (input, context) => {
|
|
|
5714
6075
|
...(input.UseChangeLog != null && { UseChangeLog: input.UseChangeLog }),
|
|
5715
6076
|
};
|
|
5716
6077
|
};
|
|
6078
|
+
const deserializeAws_json1_1AccessControlConfigurationSummary = (output, context) => {
|
|
6079
|
+
return {
|
|
6080
|
+
Id: (0, smithy_client_1.expectString)(output.Id),
|
|
6081
|
+
};
|
|
6082
|
+
};
|
|
6083
|
+
const deserializeAws_json1_1AccessControlConfigurationSummaryList = (output, context) => {
|
|
6084
|
+
const retVal = (output || [])
|
|
6085
|
+
.filter((e) => e != null)
|
|
6086
|
+
.map((entry) => {
|
|
6087
|
+
if (entry === null) {
|
|
6088
|
+
return null;
|
|
6089
|
+
}
|
|
6090
|
+
return deserializeAws_json1_1AccessControlConfigurationSummary(entry, context);
|
|
6091
|
+
});
|
|
6092
|
+
return retVal;
|
|
6093
|
+
};
|
|
5717
6094
|
const deserializeAws_json1_1AccessControlListConfiguration = (output, context) => {
|
|
5718
6095
|
return {
|
|
5719
6096
|
KeyPath: (0, smithy_client_1.expectString)(output.KeyPath),
|
|
@@ -6162,6 +6539,11 @@ const deserializeAws_json1_1CorrectionList = (output, context) => {
|
|
|
6162
6539
|
});
|
|
6163
6540
|
return retVal;
|
|
6164
6541
|
};
|
|
6542
|
+
const deserializeAws_json1_1CreateAccessControlConfigurationResponse = (output, context) => {
|
|
6543
|
+
return {
|
|
6544
|
+
Id: (0, smithy_client_1.expectString)(output.Id),
|
|
6545
|
+
};
|
|
6546
|
+
};
|
|
6165
6547
|
const deserializeAws_json1_1CreateDataSourceResponse = (output, context) => {
|
|
6166
6548
|
return {
|
|
6167
6549
|
Id: (0, smithy_client_1.expectString)(output.Id),
|
|
@@ -6383,9 +6765,25 @@ const deserializeAws_json1_1DataSourceVpcConfiguration = (output, context) => {
|
|
|
6383
6765
|
SubnetIds: output.SubnetIds != null ? deserializeAws_json1_1SubnetIdList(output.SubnetIds, context) : undefined,
|
|
6384
6766
|
};
|
|
6385
6767
|
};
|
|
6768
|
+
const deserializeAws_json1_1DeleteAccessControlConfigurationResponse = (output, context) => {
|
|
6769
|
+
return {};
|
|
6770
|
+
};
|
|
6386
6771
|
const deserializeAws_json1_1DeleteExperienceResponse = (output, context) => {
|
|
6387
6772
|
return {};
|
|
6388
6773
|
};
|
|
6774
|
+
const deserializeAws_json1_1DescribeAccessControlConfigurationResponse = (output, context) => {
|
|
6775
|
+
return {
|
|
6776
|
+
AccessControlList: output.AccessControlList != null
|
|
6777
|
+
? deserializeAws_json1_1PrincipalList(output.AccessControlList, context)
|
|
6778
|
+
: undefined,
|
|
6779
|
+
Description: (0, smithy_client_1.expectString)(output.Description),
|
|
6780
|
+
ErrorMessage: (0, smithy_client_1.expectString)(output.ErrorMessage),
|
|
6781
|
+
HierarchicalAccessControlList: output.HierarchicalAccessControlList != null
|
|
6782
|
+
? deserializeAws_json1_1HierarchicalPrincipalList(output.HierarchicalAccessControlList, context)
|
|
6783
|
+
: undefined,
|
|
6784
|
+
Name: (0, smithy_client_1.expectString)(output.Name),
|
|
6785
|
+
};
|
|
6786
|
+
};
|
|
6389
6787
|
const deserializeAws_json1_1DescribeDataSourceResponse = (output, context) => {
|
|
6390
6788
|
return {
|
|
6391
6789
|
Configuration: output.Configuration != null
|
|
@@ -7027,6 +7425,22 @@ const deserializeAws_json1_1GroupSummary = (output, context) => {
|
|
|
7027
7425
|
OrderingId: (0, smithy_client_1.expectLong)(output.OrderingId),
|
|
7028
7426
|
};
|
|
7029
7427
|
};
|
|
7428
|
+
const deserializeAws_json1_1HierarchicalPrincipal = (output, context) => {
|
|
7429
|
+
return {
|
|
7430
|
+
PrincipalList: output.PrincipalList != null ? deserializeAws_json1_1PrincipalList(output.PrincipalList, context) : undefined,
|
|
7431
|
+
};
|
|
7432
|
+
};
|
|
7433
|
+
const deserializeAws_json1_1HierarchicalPrincipalList = (output, context) => {
|
|
7434
|
+
const retVal = (output || [])
|
|
7435
|
+
.filter((e) => e != null)
|
|
7436
|
+
.map((entry) => {
|
|
7437
|
+
if (entry === null) {
|
|
7438
|
+
return null;
|
|
7439
|
+
}
|
|
7440
|
+
return deserializeAws_json1_1HierarchicalPrincipal(entry, context);
|
|
7441
|
+
});
|
|
7442
|
+
return retVal;
|
|
7443
|
+
};
|
|
7030
7444
|
const deserializeAws_json1_1Highlight = (output, context) => {
|
|
7031
7445
|
return {
|
|
7032
7446
|
BeginOffset: (0, smithy_client_1.expectInt32)(output.BeginOffset),
|
|
@@ -7201,6 +7615,14 @@ const deserializeAws_json1_1JwtTokenTypeConfiguration = (output, context) => {
|
|
|
7201
7615
|
UserNameAttributeField: (0, smithy_client_1.expectString)(output.UserNameAttributeField),
|
|
7202
7616
|
};
|
|
7203
7617
|
};
|
|
7618
|
+
const deserializeAws_json1_1ListAccessControlConfigurationsResponse = (output, context) => {
|
|
7619
|
+
return {
|
|
7620
|
+
AccessControlConfigurations: output.AccessControlConfigurations != null
|
|
7621
|
+
? deserializeAws_json1_1AccessControlConfigurationSummaryList(output.AccessControlConfigurations, context)
|
|
7622
|
+
: undefined,
|
|
7623
|
+
NextToken: (0, smithy_client_1.expectString)(output.NextToken),
|
|
7624
|
+
};
|
|
7625
|
+
};
|
|
7204
7626
|
const deserializeAws_json1_1ListDataSourcesResponse = (output, context) => {
|
|
7205
7627
|
return {
|
|
7206
7628
|
NextToken: (0, smithy_client_1.expectString)(output.NextToken),
|
|
@@ -7357,6 +7779,25 @@ const deserializeAws_json1_1PersonasSummaryList = (output, context) => {
|
|
|
7357
7779
|
});
|
|
7358
7780
|
return retVal;
|
|
7359
7781
|
};
|
|
7782
|
+
const deserializeAws_json1_1Principal = (output, context) => {
|
|
7783
|
+
return {
|
|
7784
|
+
Access: (0, smithy_client_1.expectString)(output.Access),
|
|
7785
|
+
DataSourceId: (0, smithy_client_1.expectString)(output.DataSourceId),
|
|
7786
|
+
Name: (0, smithy_client_1.expectString)(output.Name),
|
|
7787
|
+
Type: (0, smithy_client_1.expectString)(output.Type),
|
|
7788
|
+
};
|
|
7789
|
+
};
|
|
7790
|
+
const deserializeAws_json1_1PrincipalList = (output, context) => {
|
|
7791
|
+
const retVal = (output || [])
|
|
7792
|
+
.filter((e) => e != null)
|
|
7793
|
+
.map((entry) => {
|
|
7794
|
+
if (entry === null) {
|
|
7795
|
+
return null;
|
|
7796
|
+
}
|
|
7797
|
+
return deserializeAws_json1_1Principal(entry, context);
|
|
7798
|
+
});
|
|
7799
|
+
return retVal;
|
|
7800
|
+
};
|
|
7360
7801
|
const deserializeAws_json1_1PrivateChannelFilter = (output, context) => {
|
|
7361
7802
|
const retVal = (output || [])
|
|
7362
7803
|
.filter((e) => e != null)
|
|
@@ -8093,6 +8534,9 @@ const deserializeAws_json1_1TimeRange = (output, context) => {
|
|
|
8093
8534
|
const deserializeAws_json1_1UntagResourceResponse = (output, context) => {
|
|
8094
8535
|
return {};
|
|
8095
8536
|
};
|
|
8537
|
+
const deserializeAws_json1_1UpdateAccessControlConfigurationResponse = (output, context) => {
|
|
8538
|
+
return {};
|
|
8539
|
+
};
|
|
8096
8540
|
const deserializeAws_json1_1Urls = (output, context) => {
|
|
8097
8541
|
return {
|
|
8098
8542
|
SeedUrlConfiguration: output.SeedUrlConfiguration != null
|
|
@@ -8248,6 +8692,9 @@ const loadRestJsonErrorCode = (output, data) => {
|
|
|
8248
8692
|
const findKey = (object, key) => Object.keys(object).find((k) => k.toLowerCase() === key.toLowerCase());
|
|
8249
8693
|
const sanitizeErrorCode = (rawValue) => {
|
|
8250
8694
|
let cleanValue = rawValue;
|
|
8695
|
+
if (typeof cleanValue === "number") {
|
|
8696
|
+
cleanValue = cleanValue.toString();
|
|
8697
|
+
}
|
|
8251
8698
|
if (cleanValue.indexOf(":") >= 0) {
|
|
8252
8699
|
cleanValue = cleanValue.split(":")[0];
|
|
8253
8700
|
}
|