@aws-sdk/client-kendra 3.43.0 → 3.44.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +11 -0
- package/README.md +7 -7
- package/dist-cjs/Kendra.js +180 -0
- package/dist-cjs/commands/AssociateEntitiesToExperienceCommand.js +36 -0
- package/dist-cjs/commands/AssociatePersonasToEntitiesCommand.js +36 -0
- package/dist-cjs/commands/CreateExperienceCommand.js +36 -0
- package/dist-cjs/commands/DeleteExperienceCommand.js +36 -0
- package/dist-cjs/commands/DescribeExperienceCommand.js +36 -0
- package/dist-cjs/commands/DisassociateEntitiesFromExperienceCommand.js +36 -0
- package/dist-cjs/commands/DisassociatePersonasFromEntitiesCommand.js +36 -0
- package/dist-cjs/commands/GetSnapshotsCommand.js +36 -0
- package/dist-cjs/commands/ListEntityPersonasCommand.js +36 -0
- package/dist-cjs/commands/ListExperienceEntitiesCommand.js +36 -0
- package/dist-cjs/commands/ListExperiencesCommand.js +36 -0
- package/dist-cjs/commands/UpdateExperienceCommand.js +36 -0
- package/dist-cjs/commands/index.js +12 -0
- package/dist-cjs/models/models_0.js +342 -39
- package/dist-cjs/pagination/ListEntityPersonasPaginator.js +35 -0
- package/dist-cjs/pagination/ListExperienceEntitiesPaginator.js +34 -0
- package/dist-cjs/pagination/ListExperiencesPaginator.js +35 -0
- package/dist-cjs/pagination/index.js +3 -0
- package/dist-cjs/protocols/Aws_json1_1.js +2043 -261
- package/dist-es/Kendra.js +180 -0
- package/dist-es/commands/AssociateEntitiesToExperienceCommand.js +39 -0
- package/dist-es/commands/AssociatePersonasToEntitiesCommand.js +39 -0
- package/dist-es/commands/CreateExperienceCommand.js +39 -0
- package/dist-es/commands/DeleteExperienceCommand.js +39 -0
- package/dist-es/commands/DescribeExperienceCommand.js +39 -0
- package/dist-es/commands/DisassociateEntitiesFromExperienceCommand.js +39 -0
- package/dist-es/commands/DisassociatePersonasFromEntitiesCommand.js +39 -0
- package/dist-es/commands/GetSnapshotsCommand.js +39 -0
- package/dist-es/commands/ListEntityPersonasCommand.js +39 -0
- package/dist-es/commands/ListExperienceEntitiesCommand.js +39 -0
- package/dist-es/commands/ListExperiencesCommand.js +39 -0
- package/dist-es/commands/UpdateExperienceCommand.js +39 -0
- package/dist-es/commands/index.js +12 -0
- package/dist-es/models/models_0.js +239 -24
- package/dist-es/pagination/ListEntityPersonasPaginator.js +74 -0
- package/dist-es/pagination/ListExperienceEntitiesPaginator.js +73 -0
- package/dist-es/pagination/ListExperiencesPaginator.js +74 -0
- package/dist-es/pagination/index.js +3 -0
- package/dist-es/protocols/Aws_json1_1.js +2042 -234
- package/dist-types/Kendra.d.ts +164 -1
- package/dist-types/KendraClient.d.ts +14 -2
- package/dist-types/commands/AssociateEntitiesToExperienceCommand.d.ts +39 -0
- package/dist-types/commands/AssociatePersonasToEntitiesCommand.d.ts +39 -0
- package/dist-types/commands/ClearQuerySuggestionsCommand.d.ts +3 -0
- package/dist-types/commands/CreateDataSourceCommand.d.ts +2 -0
- package/dist-types/commands/CreateExperienceCommand.d.ts +37 -0
- package/dist-types/commands/CreateQuerySuggestionsBlockListCommand.d.ts +3 -0
- package/dist-types/commands/DeleteExperienceCommand.d.ts +37 -0
- package/dist-types/commands/DeletePrincipalMappingCommand.d.ts +3 -0
- package/dist-types/commands/DeleteQuerySuggestionsBlockListCommand.d.ts +3 -0
- package/dist-types/commands/DescribeExperienceCommand.d.ts +38 -0
- package/dist-types/commands/DescribePrincipalMappingCommand.d.ts +3 -0
- package/dist-types/commands/DescribeQuerySuggestionsBlockListCommand.d.ts +3 -0
- package/dist-types/commands/DescribeQuerySuggestionsConfigCommand.d.ts +3 -0
- package/dist-types/commands/DisassociateEntitiesFromExperienceCommand.d.ts +39 -0
- package/dist-types/commands/DisassociatePersonasFromEntitiesCommand.d.ts +39 -0
- package/dist-types/commands/GetQuerySuggestionsCommand.d.ts +3 -0
- package/dist-types/commands/GetSnapshotsCommand.d.ts +37 -0
- package/dist-types/commands/ListEntityPersonasCommand.d.ts +36 -0
- package/dist-types/commands/ListExperienceEntitiesCommand.d.ts +39 -0
- package/dist-types/commands/ListExperiencesCommand.d.ts +38 -0
- package/dist-types/commands/ListGroupsOlderThanOrderingIdCommand.d.ts +3 -0
- package/dist-types/commands/ListQuerySuggestionsBlockListsCommand.d.ts +3 -0
- package/dist-types/commands/PutPrincipalMappingCommand.d.ts +3 -0
- package/dist-types/commands/SubmitFeedbackCommand.d.ts +4 -1
- package/dist-types/commands/UpdateExperienceCommand.d.ts +37 -0
- package/dist-types/commands/UpdateQuerySuggestionsBlockListCommand.d.ts +3 -0
- package/dist-types/commands/UpdateQuerySuggestionsConfigCommand.d.ts +3 -0
- package/dist-types/commands/index.d.ts +12 -0
- package/dist-types/models/models_0.d.ts +1316 -180
- package/dist-types/pagination/ListEntityPersonasPaginator.d.ts +4 -0
- package/dist-types/pagination/ListExperienceEntitiesPaginator.d.ts +4 -0
- package/dist-types/pagination/ListExperiencesPaginator.d.ts +4 -0
- package/dist-types/pagination/index.d.ts +3 -0
- package/dist-types/protocols/Aws_json1_1.d.ts +36 -0
- package/dist-types/ts3.4/Kendra.d.ts +60 -0
- package/dist-types/ts3.4/KendraClient.d.ts +14 -2
- package/dist-types/ts3.4/commands/AssociateEntitiesToExperienceCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/AssociatePersonasToEntitiesCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/CreateExperienceCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/DeleteExperienceCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/DescribeExperienceCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/DisassociateEntitiesFromExperienceCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/DisassociatePersonasFromEntitiesCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/GetSnapshotsCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/ListEntityPersonasCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/ListExperienceEntitiesCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/ListExperiencesCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/UpdateExperienceCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/index.d.ts +12 -0
- package/dist-types/ts3.4/models/models_0.d.ts +603 -57
- package/dist-types/ts3.4/pagination/ListEntityPersonasPaginator.d.ts +4 -0
- package/dist-types/ts3.4/pagination/ListExperienceEntitiesPaginator.d.ts +4 -0
- package/dist-types/ts3.4/pagination/ListExperiencesPaginator.d.ts +4 -0
- package/dist-types/ts3.4/pagination/index.d.ts +3 -0
- package/dist-types/ts3.4/protocols/Aws_json1_1.d.ts +36 -0
- package/package.json +1 -1
|
@@ -1,10 +1,31 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
4
|
-
exports.
|
|
3
|
+
exports.serializeAws_json1_1UpdateDataSourceCommand = exports.serializeAws_json1_1UntagResourceCommand = exports.serializeAws_json1_1TagResourceCommand = exports.serializeAws_json1_1SubmitFeedbackCommand = 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_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_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_1CreateThesaurusCommand = exports.serializeAws_json1_1CreateQuerySuggestionsBlockListCommand = exports.serializeAws_json1_1CreateIndexCommand = exports.serializeAws_json1_1CreateFaqCommand = exports.serializeAws_json1_1CreateExperienceCommand = exports.serializeAws_json1_1CreateDataSourceCommand = 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_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 = exports.deserializeAws_json1_1ListExperiencesCommand = exports.deserializeAws_json1_1ListExperienceEntitiesCommand = exports.deserializeAws_json1_1ListEntityPersonasCommand = exports.deserializeAws_json1_1ListDataSourceSyncJobsCommand = exports.deserializeAws_json1_1ListDataSourcesCommand = 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_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_1CreateThesaurusCommand = exports.deserializeAws_json1_1CreateQuerySuggestionsBlockListCommand = exports.deserializeAws_json1_1CreateIndexCommand = exports.deserializeAws_json1_1CreateFaqCommand = exports.deserializeAws_json1_1CreateExperienceCommand = exports.deserializeAws_json1_1CreateDataSourceCommand = 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 = 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_1UntagResourceCommand = exports.deserializeAws_json1_1TagResourceCommand = exports.deserializeAws_json1_1SubmitFeedbackCommand = exports.deserializeAws_json1_1StopDataSourceSyncJobCommand = void 0;
|
|
5
6
|
const protocol_http_1 = require("@aws-sdk/protocol-http");
|
|
6
7
|
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
7
8
|
const uuid_1 = require("uuid");
|
|
9
|
+
const serializeAws_json1_1AssociateEntitiesToExperienceCommand = async (input, context) => {
|
|
10
|
+
const headers = {
|
|
11
|
+
"content-type": "application/x-amz-json-1.1",
|
|
12
|
+
"x-amz-target": "AWSKendraFrontendService.AssociateEntitiesToExperience",
|
|
13
|
+
};
|
|
14
|
+
let body;
|
|
15
|
+
body = JSON.stringify(serializeAws_json1_1AssociateEntitiesToExperienceRequest(input, context));
|
|
16
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
17
|
+
};
|
|
18
|
+
exports.serializeAws_json1_1AssociateEntitiesToExperienceCommand = serializeAws_json1_1AssociateEntitiesToExperienceCommand;
|
|
19
|
+
const serializeAws_json1_1AssociatePersonasToEntitiesCommand = async (input, context) => {
|
|
20
|
+
const headers = {
|
|
21
|
+
"content-type": "application/x-amz-json-1.1",
|
|
22
|
+
"x-amz-target": "AWSKendraFrontendService.AssociatePersonasToEntities",
|
|
23
|
+
};
|
|
24
|
+
let body;
|
|
25
|
+
body = JSON.stringify(serializeAws_json1_1AssociatePersonasToEntitiesRequest(input, context));
|
|
26
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
27
|
+
};
|
|
28
|
+
exports.serializeAws_json1_1AssociatePersonasToEntitiesCommand = serializeAws_json1_1AssociatePersonasToEntitiesCommand;
|
|
8
29
|
const serializeAws_json1_1BatchDeleteDocumentCommand = async (input, context) => {
|
|
9
30
|
const headers = {
|
|
10
31
|
"content-type": "application/x-amz-json-1.1",
|
|
@@ -55,6 +76,16 @@ const serializeAws_json1_1CreateDataSourceCommand = async (input, context) => {
|
|
|
55
76
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
56
77
|
};
|
|
57
78
|
exports.serializeAws_json1_1CreateDataSourceCommand = serializeAws_json1_1CreateDataSourceCommand;
|
|
79
|
+
const serializeAws_json1_1CreateExperienceCommand = async (input, context) => {
|
|
80
|
+
const headers = {
|
|
81
|
+
"content-type": "application/x-amz-json-1.1",
|
|
82
|
+
"x-amz-target": "AWSKendraFrontendService.CreateExperience",
|
|
83
|
+
};
|
|
84
|
+
let body;
|
|
85
|
+
body = JSON.stringify(serializeAws_json1_1CreateExperienceRequest(input, context));
|
|
86
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
87
|
+
};
|
|
88
|
+
exports.serializeAws_json1_1CreateExperienceCommand = serializeAws_json1_1CreateExperienceCommand;
|
|
58
89
|
const serializeAws_json1_1CreateFaqCommand = async (input, context) => {
|
|
59
90
|
const headers = {
|
|
60
91
|
"content-type": "application/x-amz-json-1.1",
|
|
@@ -105,6 +136,16 @@ const serializeAws_json1_1DeleteDataSourceCommand = async (input, context) => {
|
|
|
105
136
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
106
137
|
};
|
|
107
138
|
exports.serializeAws_json1_1DeleteDataSourceCommand = serializeAws_json1_1DeleteDataSourceCommand;
|
|
139
|
+
const serializeAws_json1_1DeleteExperienceCommand = async (input, context) => {
|
|
140
|
+
const headers = {
|
|
141
|
+
"content-type": "application/x-amz-json-1.1",
|
|
142
|
+
"x-amz-target": "AWSKendraFrontendService.DeleteExperience",
|
|
143
|
+
};
|
|
144
|
+
let body;
|
|
145
|
+
body = JSON.stringify(serializeAws_json1_1DeleteExperienceRequest(input, context));
|
|
146
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
147
|
+
};
|
|
148
|
+
exports.serializeAws_json1_1DeleteExperienceCommand = serializeAws_json1_1DeleteExperienceCommand;
|
|
108
149
|
const serializeAws_json1_1DeleteFaqCommand = async (input, context) => {
|
|
109
150
|
const headers = {
|
|
110
151
|
"content-type": "application/x-amz-json-1.1",
|
|
@@ -165,6 +206,16 @@ const serializeAws_json1_1DescribeDataSourceCommand = async (input, context) =>
|
|
|
165
206
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
166
207
|
};
|
|
167
208
|
exports.serializeAws_json1_1DescribeDataSourceCommand = serializeAws_json1_1DescribeDataSourceCommand;
|
|
209
|
+
const serializeAws_json1_1DescribeExperienceCommand = async (input, context) => {
|
|
210
|
+
const headers = {
|
|
211
|
+
"content-type": "application/x-amz-json-1.1",
|
|
212
|
+
"x-amz-target": "AWSKendraFrontendService.DescribeExperience",
|
|
213
|
+
};
|
|
214
|
+
let body;
|
|
215
|
+
body = JSON.stringify(serializeAws_json1_1DescribeExperienceRequest(input, context));
|
|
216
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
217
|
+
};
|
|
218
|
+
exports.serializeAws_json1_1DescribeExperienceCommand = serializeAws_json1_1DescribeExperienceCommand;
|
|
168
219
|
const serializeAws_json1_1DescribeFaqCommand = async (input, context) => {
|
|
169
220
|
const headers = {
|
|
170
221
|
"content-type": "application/x-amz-json-1.1",
|
|
@@ -225,6 +276,26 @@ const serializeAws_json1_1DescribeThesaurusCommand = async (input, context) => {
|
|
|
225
276
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
226
277
|
};
|
|
227
278
|
exports.serializeAws_json1_1DescribeThesaurusCommand = serializeAws_json1_1DescribeThesaurusCommand;
|
|
279
|
+
const serializeAws_json1_1DisassociateEntitiesFromExperienceCommand = async (input, context) => {
|
|
280
|
+
const headers = {
|
|
281
|
+
"content-type": "application/x-amz-json-1.1",
|
|
282
|
+
"x-amz-target": "AWSKendraFrontendService.DisassociateEntitiesFromExperience",
|
|
283
|
+
};
|
|
284
|
+
let body;
|
|
285
|
+
body = JSON.stringify(serializeAws_json1_1DisassociateEntitiesFromExperienceRequest(input, context));
|
|
286
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
287
|
+
};
|
|
288
|
+
exports.serializeAws_json1_1DisassociateEntitiesFromExperienceCommand = serializeAws_json1_1DisassociateEntitiesFromExperienceCommand;
|
|
289
|
+
const serializeAws_json1_1DisassociatePersonasFromEntitiesCommand = async (input, context) => {
|
|
290
|
+
const headers = {
|
|
291
|
+
"content-type": "application/x-amz-json-1.1",
|
|
292
|
+
"x-amz-target": "AWSKendraFrontendService.DisassociatePersonasFromEntities",
|
|
293
|
+
};
|
|
294
|
+
let body;
|
|
295
|
+
body = JSON.stringify(serializeAws_json1_1DisassociatePersonasFromEntitiesRequest(input, context));
|
|
296
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
297
|
+
};
|
|
298
|
+
exports.serializeAws_json1_1DisassociatePersonasFromEntitiesCommand = serializeAws_json1_1DisassociatePersonasFromEntitiesCommand;
|
|
228
299
|
const serializeAws_json1_1GetQuerySuggestionsCommand = async (input, context) => {
|
|
229
300
|
const headers = {
|
|
230
301
|
"content-type": "application/x-amz-json-1.1",
|
|
@@ -235,6 +306,16 @@ const serializeAws_json1_1GetQuerySuggestionsCommand = async (input, context) =>
|
|
|
235
306
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
236
307
|
};
|
|
237
308
|
exports.serializeAws_json1_1GetQuerySuggestionsCommand = serializeAws_json1_1GetQuerySuggestionsCommand;
|
|
309
|
+
const serializeAws_json1_1GetSnapshotsCommand = async (input, context) => {
|
|
310
|
+
const headers = {
|
|
311
|
+
"content-type": "application/x-amz-json-1.1",
|
|
312
|
+
"x-amz-target": "AWSKendraFrontendService.GetSnapshots",
|
|
313
|
+
};
|
|
314
|
+
let body;
|
|
315
|
+
body = JSON.stringify(serializeAws_json1_1GetSnapshotsRequest(input, context));
|
|
316
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
317
|
+
};
|
|
318
|
+
exports.serializeAws_json1_1GetSnapshotsCommand = serializeAws_json1_1GetSnapshotsCommand;
|
|
238
319
|
const serializeAws_json1_1ListDataSourcesCommand = async (input, context) => {
|
|
239
320
|
const headers = {
|
|
240
321
|
"content-type": "application/x-amz-json-1.1",
|
|
@@ -255,6 +336,36 @@ const serializeAws_json1_1ListDataSourceSyncJobsCommand = async (input, context)
|
|
|
255
336
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
256
337
|
};
|
|
257
338
|
exports.serializeAws_json1_1ListDataSourceSyncJobsCommand = serializeAws_json1_1ListDataSourceSyncJobsCommand;
|
|
339
|
+
const serializeAws_json1_1ListEntityPersonasCommand = async (input, context) => {
|
|
340
|
+
const headers = {
|
|
341
|
+
"content-type": "application/x-amz-json-1.1",
|
|
342
|
+
"x-amz-target": "AWSKendraFrontendService.ListEntityPersonas",
|
|
343
|
+
};
|
|
344
|
+
let body;
|
|
345
|
+
body = JSON.stringify(serializeAws_json1_1ListEntityPersonasRequest(input, context));
|
|
346
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
347
|
+
};
|
|
348
|
+
exports.serializeAws_json1_1ListEntityPersonasCommand = serializeAws_json1_1ListEntityPersonasCommand;
|
|
349
|
+
const serializeAws_json1_1ListExperienceEntitiesCommand = async (input, context) => {
|
|
350
|
+
const headers = {
|
|
351
|
+
"content-type": "application/x-amz-json-1.1",
|
|
352
|
+
"x-amz-target": "AWSKendraFrontendService.ListExperienceEntities",
|
|
353
|
+
};
|
|
354
|
+
let body;
|
|
355
|
+
body = JSON.stringify(serializeAws_json1_1ListExperienceEntitiesRequest(input, context));
|
|
356
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
357
|
+
};
|
|
358
|
+
exports.serializeAws_json1_1ListExperienceEntitiesCommand = serializeAws_json1_1ListExperienceEntitiesCommand;
|
|
359
|
+
const serializeAws_json1_1ListExperiencesCommand = async (input, context) => {
|
|
360
|
+
const headers = {
|
|
361
|
+
"content-type": "application/x-amz-json-1.1",
|
|
362
|
+
"x-amz-target": "AWSKendraFrontendService.ListExperiences",
|
|
363
|
+
};
|
|
364
|
+
let body;
|
|
365
|
+
body = JSON.stringify(serializeAws_json1_1ListExperiencesRequest(input, context));
|
|
366
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
367
|
+
};
|
|
368
|
+
exports.serializeAws_json1_1ListExperiencesCommand = serializeAws_json1_1ListExperiencesCommand;
|
|
258
369
|
const serializeAws_json1_1ListFaqsCommand = async (input, context) => {
|
|
259
370
|
const headers = {
|
|
260
371
|
"content-type": "application/x-amz-json-1.1",
|
|
@@ -395,6 +506,16 @@ const serializeAws_json1_1UpdateDataSourceCommand = async (input, context) => {
|
|
|
395
506
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
396
507
|
};
|
|
397
508
|
exports.serializeAws_json1_1UpdateDataSourceCommand = serializeAws_json1_1UpdateDataSourceCommand;
|
|
509
|
+
const serializeAws_json1_1UpdateExperienceCommand = async (input, context) => {
|
|
510
|
+
const headers = {
|
|
511
|
+
"content-type": "application/x-amz-json-1.1",
|
|
512
|
+
"x-amz-target": "AWSKendraFrontendService.UpdateExperience",
|
|
513
|
+
};
|
|
514
|
+
let body;
|
|
515
|
+
body = JSON.stringify(serializeAws_json1_1UpdateExperienceRequest(input, context));
|
|
516
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
517
|
+
};
|
|
518
|
+
exports.serializeAws_json1_1UpdateExperienceCommand = serializeAws_json1_1UpdateExperienceCommand;
|
|
398
519
|
const serializeAws_json1_1UpdateIndexCommand = async (input, context) => {
|
|
399
520
|
const headers = {
|
|
400
521
|
"content-type": "application/x-amz-json-1.1",
|
|
@@ -435,21 +556,21 @@ const serializeAws_json1_1UpdateThesaurusCommand = async (input, context) => {
|
|
|
435
556
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
436
557
|
};
|
|
437
558
|
exports.serializeAws_json1_1UpdateThesaurusCommand = serializeAws_json1_1UpdateThesaurusCommand;
|
|
438
|
-
const
|
|
559
|
+
const deserializeAws_json1_1AssociateEntitiesToExperienceCommand = async (output, context) => {
|
|
439
560
|
if (output.statusCode >= 300) {
|
|
440
|
-
return
|
|
561
|
+
return deserializeAws_json1_1AssociateEntitiesToExperienceCommandError(output, context);
|
|
441
562
|
}
|
|
442
563
|
const data = await parseBody(output.body, context);
|
|
443
564
|
let contents = {};
|
|
444
|
-
contents =
|
|
565
|
+
contents = deserializeAws_json1_1AssociateEntitiesToExperienceResponse(data, context);
|
|
445
566
|
const response = {
|
|
446
567
|
$metadata: deserializeMetadata(output),
|
|
447
568
|
...contents,
|
|
448
569
|
};
|
|
449
570
|
return Promise.resolve(response);
|
|
450
571
|
};
|
|
451
|
-
exports.
|
|
452
|
-
const
|
|
572
|
+
exports.deserializeAws_json1_1AssociateEntitiesToExperienceCommand = deserializeAws_json1_1AssociateEntitiesToExperienceCommand;
|
|
573
|
+
const deserializeAws_json1_1AssociateEntitiesToExperienceCommandError = async (output, context) => {
|
|
453
574
|
const parsedOutput = {
|
|
454
575
|
...output,
|
|
455
576
|
body: await parseBody(output.body, context),
|
|
@@ -466,18 +587,18 @@ const deserializeAws_json1_1BatchDeleteDocumentCommandError = async (output, con
|
|
|
466
587
|
$metadata: deserializeMetadata(output),
|
|
467
588
|
};
|
|
468
589
|
break;
|
|
469
|
-
case "
|
|
470
|
-
case "com.amazonaws.kendra#
|
|
590
|
+
case "InternalServerException":
|
|
591
|
+
case "com.amazonaws.kendra#InternalServerException":
|
|
471
592
|
response = {
|
|
472
|
-
...(await
|
|
593
|
+
...(await deserializeAws_json1_1InternalServerExceptionResponse(parsedOutput, context)),
|
|
473
594
|
name: errorCode,
|
|
474
595
|
$metadata: deserializeMetadata(output),
|
|
475
596
|
};
|
|
476
597
|
break;
|
|
477
|
-
case "
|
|
478
|
-
case "com.amazonaws.kendra#
|
|
598
|
+
case "ResourceAlreadyExistException":
|
|
599
|
+
case "com.amazonaws.kendra#ResourceAlreadyExistException":
|
|
479
600
|
response = {
|
|
480
|
-
...(await
|
|
601
|
+
...(await deserializeAws_json1_1ResourceAlreadyExistExceptionResponse(parsedOutput, context)),
|
|
481
602
|
name: errorCode,
|
|
482
603
|
$metadata: deserializeMetadata(output),
|
|
483
604
|
};
|
|
@@ -522,21 +643,21 @@ const deserializeAws_json1_1BatchDeleteDocumentCommandError = async (output, con
|
|
|
522
643
|
delete response.Message;
|
|
523
644
|
return Promise.reject(Object.assign(new Error(message), response));
|
|
524
645
|
};
|
|
525
|
-
const
|
|
646
|
+
const deserializeAws_json1_1AssociatePersonasToEntitiesCommand = async (output, context) => {
|
|
526
647
|
if (output.statusCode >= 300) {
|
|
527
|
-
return
|
|
648
|
+
return deserializeAws_json1_1AssociatePersonasToEntitiesCommandError(output, context);
|
|
528
649
|
}
|
|
529
650
|
const data = await parseBody(output.body, context);
|
|
530
651
|
let contents = {};
|
|
531
|
-
contents =
|
|
652
|
+
contents = deserializeAws_json1_1AssociatePersonasToEntitiesResponse(data, context);
|
|
532
653
|
const response = {
|
|
533
654
|
$metadata: deserializeMetadata(output),
|
|
534
655
|
...contents,
|
|
535
656
|
};
|
|
536
657
|
return Promise.resolve(response);
|
|
537
658
|
};
|
|
538
|
-
exports.
|
|
539
|
-
const
|
|
659
|
+
exports.deserializeAws_json1_1AssociatePersonasToEntitiesCommand = deserializeAws_json1_1AssociatePersonasToEntitiesCommand;
|
|
660
|
+
const deserializeAws_json1_1AssociatePersonasToEntitiesCommandError = async (output, context) => {
|
|
540
661
|
const parsedOutput = {
|
|
541
662
|
...output,
|
|
542
663
|
body: await parseBody(output.body, context),
|
|
@@ -553,18 +674,18 @@ const deserializeAws_json1_1BatchGetDocumentStatusCommandError = async (output,
|
|
|
553
674
|
$metadata: deserializeMetadata(output),
|
|
554
675
|
};
|
|
555
676
|
break;
|
|
556
|
-
case "
|
|
557
|
-
case "com.amazonaws.kendra#
|
|
677
|
+
case "InternalServerException":
|
|
678
|
+
case "com.amazonaws.kendra#InternalServerException":
|
|
558
679
|
response = {
|
|
559
|
-
...(await
|
|
680
|
+
...(await deserializeAws_json1_1InternalServerExceptionResponse(parsedOutput, context)),
|
|
560
681
|
name: errorCode,
|
|
561
682
|
$metadata: deserializeMetadata(output),
|
|
562
683
|
};
|
|
563
684
|
break;
|
|
564
|
-
case "
|
|
565
|
-
case "com.amazonaws.kendra#
|
|
685
|
+
case "ResourceAlreadyExistException":
|
|
686
|
+
case "com.amazonaws.kendra#ResourceAlreadyExistException":
|
|
566
687
|
response = {
|
|
567
|
-
...(await
|
|
688
|
+
...(await deserializeAws_json1_1ResourceAlreadyExistExceptionResponse(parsedOutput, context)),
|
|
568
689
|
name: errorCode,
|
|
569
690
|
$metadata: deserializeMetadata(output),
|
|
570
691
|
};
|
|
@@ -609,21 +730,21 @@ const deserializeAws_json1_1BatchGetDocumentStatusCommandError = async (output,
|
|
|
609
730
|
delete response.Message;
|
|
610
731
|
return Promise.reject(Object.assign(new Error(message), response));
|
|
611
732
|
};
|
|
612
|
-
const
|
|
733
|
+
const deserializeAws_json1_1BatchDeleteDocumentCommand = async (output, context) => {
|
|
613
734
|
if (output.statusCode >= 300) {
|
|
614
|
-
return
|
|
735
|
+
return deserializeAws_json1_1BatchDeleteDocumentCommandError(output, context);
|
|
615
736
|
}
|
|
616
737
|
const data = await parseBody(output.body, context);
|
|
617
738
|
let contents = {};
|
|
618
|
-
contents =
|
|
739
|
+
contents = deserializeAws_json1_1BatchDeleteDocumentResponse(data, context);
|
|
619
740
|
const response = {
|
|
620
741
|
$metadata: deserializeMetadata(output),
|
|
621
742
|
...contents,
|
|
622
743
|
};
|
|
623
744
|
return Promise.resolve(response);
|
|
624
745
|
};
|
|
625
|
-
exports.
|
|
626
|
-
const
|
|
746
|
+
exports.deserializeAws_json1_1BatchDeleteDocumentCommand = deserializeAws_json1_1BatchDeleteDocumentCommand;
|
|
747
|
+
const deserializeAws_json1_1BatchDeleteDocumentCommandError = async (output, context) => {
|
|
627
748
|
const parsedOutput = {
|
|
628
749
|
...output,
|
|
629
750
|
body: await parseBody(output.body, context),
|
|
@@ -664,14 +785,6 @@ const deserializeAws_json1_1BatchPutDocumentCommandError = async (output, contex
|
|
|
664
785
|
$metadata: deserializeMetadata(output),
|
|
665
786
|
};
|
|
666
787
|
break;
|
|
667
|
-
case "ServiceQuotaExceededException":
|
|
668
|
-
case "com.amazonaws.kendra#ServiceQuotaExceededException":
|
|
669
|
-
response = {
|
|
670
|
-
...(await deserializeAws_json1_1ServiceQuotaExceededExceptionResponse(parsedOutput, context)),
|
|
671
|
-
name: errorCode,
|
|
672
|
-
$metadata: deserializeMetadata(output),
|
|
673
|
-
};
|
|
674
|
-
break;
|
|
675
788
|
case "ThrottlingException":
|
|
676
789
|
case "com.amazonaws.kendra#ThrottlingException":
|
|
677
790
|
response = {
|
|
@@ -704,18 +817,21 @@ const deserializeAws_json1_1BatchPutDocumentCommandError = async (output, contex
|
|
|
704
817
|
delete response.Message;
|
|
705
818
|
return Promise.reject(Object.assign(new Error(message), response));
|
|
706
819
|
};
|
|
707
|
-
const
|
|
820
|
+
const deserializeAws_json1_1BatchGetDocumentStatusCommand = async (output, context) => {
|
|
708
821
|
if (output.statusCode >= 300) {
|
|
709
|
-
return
|
|
822
|
+
return deserializeAws_json1_1BatchGetDocumentStatusCommandError(output, context);
|
|
710
823
|
}
|
|
711
|
-
await
|
|
824
|
+
const data = await parseBody(output.body, context);
|
|
825
|
+
let contents = {};
|
|
826
|
+
contents = deserializeAws_json1_1BatchGetDocumentStatusResponse(data, context);
|
|
712
827
|
const response = {
|
|
713
828
|
$metadata: deserializeMetadata(output),
|
|
829
|
+
...contents,
|
|
714
830
|
};
|
|
715
831
|
return Promise.resolve(response);
|
|
716
832
|
};
|
|
717
|
-
exports.
|
|
718
|
-
const
|
|
833
|
+
exports.deserializeAws_json1_1BatchGetDocumentStatusCommand = deserializeAws_json1_1BatchGetDocumentStatusCommand;
|
|
834
|
+
const deserializeAws_json1_1BatchGetDocumentStatusCommandError = async (output, context) => {
|
|
719
835
|
const parsedOutput = {
|
|
720
836
|
...output,
|
|
721
837
|
body: await parseBody(output.body, context),
|
|
@@ -788,21 +904,21 @@ const deserializeAws_json1_1ClearQuerySuggestionsCommandError = async (output, c
|
|
|
788
904
|
delete response.Message;
|
|
789
905
|
return Promise.reject(Object.assign(new Error(message), response));
|
|
790
906
|
};
|
|
791
|
-
const
|
|
907
|
+
const deserializeAws_json1_1BatchPutDocumentCommand = async (output, context) => {
|
|
792
908
|
if (output.statusCode >= 300) {
|
|
793
|
-
return
|
|
909
|
+
return deserializeAws_json1_1BatchPutDocumentCommandError(output, context);
|
|
794
910
|
}
|
|
795
911
|
const data = await parseBody(output.body, context);
|
|
796
912
|
let contents = {};
|
|
797
|
-
contents =
|
|
913
|
+
contents = deserializeAws_json1_1BatchPutDocumentResponse(data, context);
|
|
798
914
|
const response = {
|
|
799
915
|
$metadata: deserializeMetadata(output),
|
|
800
916
|
...contents,
|
|
801
917
|
};
|
|
802
918
|
return Promise.resolve(response);
|
|
803
919
|
};
|
|
804
|
-
exports.
|
|
805
|
-
const
|
|
920
|
+
exports.deserializeAws_json1_1BatchPutDocumentCommand = deserializeAws_json1_1BatchPutDocumentCommand;
|
|
921
|
+
const deserializeAws_json1_1BatchPutDocumentCommandError = async (output, context) => {
|
|
806
922
|
const parsedOutput = {
|
|
807
923
|
...output,
|
|
808
924
|
body: await parseBody(output.body, context),
|
|
@@ -835,14 +951,6 @@ const deserializeAws_json1_1CreateDataSourceCommandError = async (output, contex
|
|
|
835
951
|
$metadata: deserializeMetadata(output),
|
|
836
952
|
};
|
|
837
953
|
break;
|
|
838
|
-
case "ResourceAlreadyExistException":
|
|
839
|
-
case "com.amazonaws.kendra#ResourceAlreadyExistException":
|
|
840
|
-
response = {
|
|
841
|
-
...(await deserializeAws_json1_1ResourceAlreadyExistExceptionResponse(parsedOutput, context)),
|
|
842
|
-
name: errorCode,
|
|
843
|
-
$metadata: deserializeMetadata(output),
|
|
844
|
-
};
|
|
845
|
-
break;
|
|
846
954
|
case "ResourceNotFoundException":
|
|
847
955
|
case "com.amazonaws.kendra#ResourceNotFoundException":
|
|
848
956
|
response = {
|
|
@@ -891,21 +999,18 @@ const deserializeAws_json1_1CreateDataSourceCommandError = async (output, contex
|
|
|
891
999
|
delete response.Message;
|
|
892
1000
|
return Promise.reject(Object.assign(new Error(message), response));
|
|
893
1001
|
};
|
|
894
|
-
const
|
|
1002
|
+
const deserializeAws_json1_1ClearQuerySuggestionsCommand = async (output, context) => {
|
|
895
1003
|
if (output.statusCode >= 300) {
|
|
896
|
-
return
|
|
1004
|
+
return deserializeAws_json1_1ClearQuerySuggestionsCommandError(output, context);
|
|
897
1005
|
}
|
|
898
|
-
|
|
899
|
-
let contents = {};
|
|
900
|
-
contents = deserializeAws_json1_1CreateFaqResponse(data, context);
|
|
1006
|
+
await collectBody(output.body, context);
|
|
901
1007
|
const response = {
|
|
902
1008
|
$metadata: deserializeMetadata(output),
|
|
903
|
-
...contents,
|
|
904
1009
|
};
|
|
905
1010
|
return Promise.resolve(response);
|
|
906
1011
|
};
|
|
907
|
-
exports.
|
|
908
|
-
const
|
|
1012
|
+
exports.deserializeAws_json1_1ClearQuerySuggestionsCommand = deserializeAws_json1_1ClearQuerySuggestionsCommand;
|
|
1013
|
+
const deserializeAws_json1_1ClearQuerySuggestionsCommandError = async (output, context) => {
|
|
909
1014
|
const parsedOutput = {
|
|
910
1015
|
...output,
|
|
911
1016
|
body: await parseBody(output.body, context),
|
|
@@ -946,14 +1051,6 @@ const deserializeAws_json1_1CreateFaqCommandError = async (output, context) => {
|
|
|
946
1051
|
$metadata: deserializeMetadata(output),
|
|
947
1052
|
};
|
|
948
1053
|
break;
|
|
949
|
-
case "ServiceQuotaExceededException":
|
|
950
|
-
case "com.amazonaws.kendra#ServiceQuotaExceededException":
|
|
951
|
-
response = {
|
|
952
|
-
...(await deserializeAws_json1_1ServiceQuotaExceededExceptionResponse(parsedOutput, context)),
|
|
953
|
-
name: errorCode,
|
|
954
|
-
$metadata: deserializeMetadata(output),
|
|
955
|
-
};
|
|
956
|
-
break;
|
|
957
1054
|
case "ThrottlingException":
|
|
958
1055
|
case "com.amazonaws.kendra#ThrottlingException":
|
|
959
1056
|
response = {
|
|
@@ -986,21 +1083,21 @@ const deserializeAws_json1_1CreateFaqCommandError = async (output, context) => {
|
|
|
986
1083
|
delete response.Message;
|
|
987
1084
|
return Promise.reject(Object.assign(new Error(message), response));
|
|
988
1085
|
};
|
|
989
|
-
const
|
|
1086
|
+
const deserializeAws_json1_1CreateDataSourceCommand = async (output, context) => {
|
|
990
1087
|
if (output.statusCode >= 300) {
|
|
991
|
-
return
|
|
1088
|
+
return deserializeAws_json1_1CreateDataSourceCommandError(output, context);
|
|
992
1089
|
}
|
|
993
1090
|
const data = await parseBody(output.body, context);
|
|
994
1091
|
let contents = {};
|
|
995
|
-
contents =
|
|
1092
|
+
contents = deserializeAws_json1_1CreateDataSourceResponse(data, context);
|
|
996
1093
|
const response = {
|
|
997
1094
|
$metadata: deserializeMetadata(output),
|
|
998
1095
|
...contents,
|
|
999
1096
|
};
|
|
1000
1097
|
return Promise.resolve(response);
|
|
1001
1098
|
};
|
|
1002
|
-
exports.
|
|
1003
|
-
const
|
|
1099
|
+
exports.deserializeAws_json1_1CreateDataSourceCommand = deserializeAws_json1_1CreateDataSourceCommand;
|
|
1100
|
+
const deserializeAws_json1_1CreateDataSourceCommandError = async (output, context) => {
|
|
1004
1101
|
const parsedOutput = {
|
|
1005
1102
|
...output,
|
|
1006
1103
|
body: await parseBody(output.body, context),
|
|
@@ -1041,6 +1138,14 @@ const deserializeAws_json1_1CreateIndexCommandError = async (output, context) =>
|
|
|
1041
1138
|
$metadata: deserializeMetadata(output),
|
|
1042
1139
|
};
|
|
1043
1140
|
break;
|
|
1141
|
+
case "ResourceNotFoundException":
|
|
1142
|
+
case "com.amazonaws.kendra#ResourceNotFoundException":
|
|
1143
|
+
response = {
|
|
1144
|
+
...(await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
1145
|
+
name: errorCode,
|
|
1146
|
+
$metadata: deserializeMetadata(output),
|
|
1147
|
+
};
|
|
1148
|
+
break;
|
|
1044
1149
|
case "ServiceQuotaExceededException":
|
|
1045
1150
|
case "com.amazonaws.kendra#ServiceQuotaExceededException":
|
|
1046
1151
|
response = {
|
|
@@ -1081,21 +1186,21 @@ const deserializeAws_json1_1CreateIndexCommandError = async (output, context) =>
|
|
|
1081
1186
|
delete response.Message;
|
|
1082
1187
|
return Promise.reject(Object.assign(new Error(message), response));
|
|
1083
1188
|
};
|
|
1084
|
-
const
|
|
1189
|
+
const deserializeAws_json1_1CreateExperienceCommand = async (output, context) => {
|
|
1085
1190
|
if (output.statusCode >= 300) {
|
|
1086
|
-
return
|
|
1191
|
+
return deserializeAws_json1_1CreateExperienceCommandError(output, context);
|
|
1087
1192
|
}
|
|
1088
1193
|
const data = await parseBody(output.body, context);
|
|
1089
1194
|
let contents = {};
|
|
1090
|
-
contents =
|
|
1195
|
+
contents = deserializeAws_json1_1CreateExperienceResponse(data, context);
|
|
1091
1196
|
const response = {
|
|
1092
1197
|
$metadata: deserializeMetadata(output),
|
|
1093
1198
|
...contents,
|
|
1094
1199
|
};
|
|
1095
1200
|
return Promise.resolve(response);
|
|
1096
1201
|
};
|
|
1097
|
-
exports.
|
|
1098
|
-
const
|
|
1202
|
+
exports.deserializeAws_json1_1CreateExperienceCommand = deserializeAws_json1_1CreateExperienceCommand;
|
|
1203
|
+
const deserializeAws_json1_1CreateExperienceCommandError = async (output, context) => {
|
|
1099
1204
|
const parsedOutput = {
|
|
1100
1205
|
...output,
|
|
1101
1206
|
body: await parseBody(output.body, context),
|
|
@@ -1176,21 +1281,21 @@ const deserializeAws_json1_1CreateQuerySuggestionsBlockListCommandError = async
|
|
|
1176
1281
|
delete response.Message;
|
|
1177
1282
|
return Promise.reject(Object.assign(new Error(message), response));
|
|
1178
1283
|
};
|
|
1179
|
-
const
|
|
1284
|
+
const deserializeAws_json1_1CreateFaqCommand = async (output, context) => {
|
|
1180
1285
|
if (output.statusCode >= 300) {
|
|
1181
|
-
return
|
|
1286
|
+
return deserializeAws_json1_1CreateFaqCommandError(output, context);
|
|
1182
1287
|
}
|
|
1183
1288
|
const data = await parseBody(output.body, context);
|
|
1184
1289
|
let contents = {};
|
|
1185
|
-
contents =
|
|
1290
|
+
contents = deserializeAws_json1_1CreateFaqResponse(data, context);
|
|
1186
1291
|
const response = {
|
|
1187
1292
|
$metadata: deserializeMetadata(output),
|
|
1188
1293
|
...contents,
|
|
1189
1294
|
};
|
|
1190
1295
|
return Promise.resolve(response);
|
|
1191
1296
|
};
|
|
1192
|
-
exports.
|
|
1193
|
-
const
|
|
1297
|
+
exports.deserializeAws_json1_1CreateFaqCommand = deserializeAws_json1_1CreateFaqCommand;
|
|
1298
|
+
const deserializeAws_json1_1CreateFaqCommandError = async (output, context) => {
|
|
1194
1299
|
const parsedOutput = {
|
|
1195
1300
|
...output,
|
|
1196
1301
|
body: await parseBody(output.body, context),
|
|
@@ -1271,18 +1376,21 @@ const deserializeAws_json1_1CreateThesaurusCommandError = async (output, context
|
|
|
1271
1376
|
delete response.Message;
|
|
1272
1377
|
return Promise.reject(Object.assign(new Error(message), response));
|
|
1273
1378
|
};
|
|
1274
|
-
const
|
|
1379
|
+
const deserializeAws_json1_1CreateIndexCommand = async (output, context) => {
|
|
1275
1380
|
if (output.statusCode >= 300) {
|
|
1276
|
-
return
|
|
1381
|
+
return deserializeAws_json1_1CreateIndexCommandError(output, context);
|
|
1277
1382
|
}
|
|
1278
|
-
await
|
|
1383
|
+
const data = await parseBody(output.body, context);
|
|
1384
|
+
let contents = {};
|
|
1385
|
+
contents = deserializeAws_json1_1CreateIndexResponse(data, context);
|
|
1279
1386
|
const response = {
|
|
1280
1387
|
$metadata: deserializeMetadata(output),
|
|
1388
|
+
...contents,
|
|
1281
1389
|
};
|
|
1282
1390
|
return Promise.resolve(response);
|
|
1283
1391
|
};
|
|
1284
|
-
exports.
|
|
1285
|
-
const
|
|
1392
|
+
exports.deserializeAws_json1_1CreateIndexCommand = deserializeAws_json1_1CreateIndexCommand;
|
|
1393
|
+
const deserializeAws_json1_1CreateIndexCommandError = async (output, context) => {
|
|
1286
1394
|
const parsedOutput = {
|
|
1287
1395
|
...output,
|
|
1288
1396
|
body: await parseBody(output.body, context),
|
|
@@ -1315,10 +1423,18 @@ const deserializeAws_json1_1DeleteDataSourceCommandError = async (output, contex
|
|
|
1315
1423
|
$metadata: deserializeMetadata(output),
|
|
1316
1424
|
};
|
|
1317
1425
|
break;
|
|
1318
|
-
case "
|
|
1319
|
-
case "com.amazonaws.kendra#
|
|
1426
|
+
case "ResourceAlreadyExistException":
|
|
1427
|
+
case "com.amazonaws.kendra#ResourceAlreadyExistException":
|
|
1320
1428
|
response = {
|
|
1321
|
-
...(await
|
|
1429
|
+
...(await deserializeAws_json1_1ResourceAlreadyExistExceptionResponse(parsedOutput, context)),
|
|
1430
|
+
name: errorCode,
|
|
1431
|
+
$metadata: deserializeMetadata(output),
|
|
1432
|
+
};
|
|
1433
|
+
break;
|
|
1434
|
+
case "ServiceQuotaExceededException":
|
|
1435
|
+
case "com.amazonaws.kendra#ServiceQuotaExceededException":
|
|
1436
|
+
response = {
|
|
1437
|
+
...(await deserializeAws_json1_1ServiceQuotaExceededExceptionResponse(parsedOutput, context)),
|
|
1322
1438
|
name: errorCode,
|
|
1323
1439
|
$metadata: deserializeMetadata(output),
|
|
1324
1440
|
};
|
|
@@ -1355,18 +1471,21 @@ const deserializeAws_json1_1DeleteDataSourceCommandError = async (output, contex
|
|
|
1355
1471
|
delete response.Message;
|
|
1356
1472
|
return Promise.reject(Object.assign(new Error(message), response));
|
|
1357
1473
|
};
|
|
1358
|
-
const
|
|
1474
|
+
const deserializeAws_json1_1CreateQuerySuggestionsBlockListCommand = async (output, context) => {
|
|
1359
1475
|
if (output.statusCode >= 300) {
|
|
1360
|
-
return
|
|
1476
|
+
return deserializeAws_json1_1CreateQuerySuggestionsBlockListCommandError(output, context);
|
|
1361
1477
|
}
|
|
1362
|
-
await
|
|
1478
|
+
const data = await parseBody(output.body, context);
|
|
1479
|
+
let contents = {};
|
|
1480
|
+
contents = deserializeAws_json1_1CreateQuerySuggestionsBlockListResponse(data, context);
|
|
1363
1481
|
const response = {
|
|
1364
1482
|
$metadata: deserializeMetadata(output),
|
|
1483
|
+
...contents,
|
|
1365
1484
|
};
|
|
1366
1485
|
return Promise.resolve(response);
|
|
1367
1486
|
};
|
|
1368
|
-
exports.
|
|
1369
|
-
const
|
|
1487
|
+
exports.deserializeAws_json1_1CreateQuerySuggestionsBlockListCommand = deserializeAws_json1_1CreateQuerySuggestionsBlockListCommand;
|
|
1488
|
+
const deserializeAws_json1_1CreateQuerySuggestionsBlockListCommandError = async (output, context) => {
|
|
1370
1489
|
const parsedOutput = {
|
|
1371
1490
|
...output,
|
|
1372
1491
|
body: await parseBody(output.body, context),
|
|
@@ -1407,15 +1526,23 @@ const deserializeAws_json1_1DeleteFaqCommandError = async (output, context) => {
|
|
|
1407
1526
|
$metadata: deserializeMetadata(output),
|
|
1408
1527
|
};
|
|
1409
1528
|
break;
|
|
1410
|
-
case "
|
|
1411
|
-
case "com.amazonaws.kendra#
|
|
1529
|
+
case "ServiceQuotaExceededException":
|
|
1530
|
+
case "com.amazonaws.kendra#ServiceQuotaExceededException":
|
|
1412
1531
|
response = {
|
|
1413
|
-
...(await
|
|
1532
|
+
...(await deserializeAws_json1_1ServiceQuotaExceededExceptionResponse(parsedOutput, context)),
|
|
1414
1533
|
name: errorCode,
|
|
1415
1534
|
$metadata: deserializeMetadata(output),
|
|
1416
1535
|
};
|
|
1417
1536
|
break;
|
|
1418
|
-
case "
|
|
1537
|
+
case "ThrottlingException":
|
|
1538
|
+
case "com.amazonaws.kendra#ThrottlingException":
|
|
1539
|
+
response = {
|
|
1540
|
+
...(await deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context)),
|
|
1541
|
+
name: errorCode,
|
|
1542
|
+
$metadata: deserializeMetadata(output),
|
|
1543
|
+
};
|
|
1544
|
+
break;
|
|
1545
|
+
case "ValidationException":
|
|
1419
1546
|
case "com.amazonaws.kendra#ValidationException":
|
|
1420
1547
|
response = {
|
|
1421
1548
|
...(await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context)),
|
|
@@ -1439,9 +1566,104 @@ const deserializeAws_json1_1DeleteFaqCommandError = async (output, context) => {
|
|
|
1439
1566
|
delete response.Message;
|
|
1440
1567
|
return Promise.reject(Object.assign(new Error(message), response));
|
|
1441
1568
|
};
|
|
1442
|
-
const
|
|
1569
|
+
const deserializeAws_json1_1CreateThesaurusCommand = async (output, context) => {
|
|
1443
1570
|
if (output.statusCode >= 300) {
|
|
1444
|
-
return
|
|
1571
|
+
return deserializeAws_json1_1CreateThesaurusCommandError(output, context);
|
|
1572
|
+
}
|
|
1573
|
+
const data = await parseBody(output.body, context);
|
|
1574
|
+
let contents = {};
|
|
1575
|
+
contents = deserializeAws_json1_1CreateThesaurusResponse(data, context);
|
|
1576
|
+
const response = {
|
|
1577
|
+
$metadata: deserializeMetadata(output),
|
|
1578
|
+
...contents,
|
|
1579
|
+
};
|
|
1580
|
+
return Promise.resolve(response);
|
|
1581
|
+
};
|
|
1582
|
+
exports.deserializeAws_json1_1CreateThesaurusCommand = deserializeAws_json1_1CreateThesaurusCommand;
|
|
1583
|
+
const deserializeAws_json1_1CreateThesaurusCommandError = async (output, context) => {
|
|
1584
|
+
const parsedOutput = {
|
|
1585
|
+
...output,
|
|
1586
|
+
body: await parseBody(output.body, context),
|
|
1587
|
+
};
|
|
1588
|
+
let response;
|
|
1589
|
+
let errorCode = "UnknownError";
|
|
1590
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1591
|
+
switch (errorCode) {
|
|
1592
|
+
case "AccessDeniedException":
|
|
1593
|
+
case "com.amazonaws.kendra#AccessDeniedException":
|
|
1594
|
+
response = {
|
|
1595
|
+
...(await deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context)),
|
|
1596
|
+
name: errorCode,
|
|
1597
|
+
$metadata: deserializeMetadata(output),
|
|
1598
|
+
};
|
|
1599
|
+
break;
|
|
1600
|
+
case "ConflictException":
|
|
1601
|
+
case "com.amazonaws.kendra#ConflictException":
|
|
1602
|
+
response = {
|
|
1603
|
+
...(await deserializeAws_json1_1ConflictExceptionResponse(parsedOutput, context)),
|
|
1604
|
+
name: errorCode,
|
|
1605
|
+
$metadata: deserializeMetadata(output),
|
|
1606
|
+
};
|
|
1607
|
+
break;
|
|
1608
|
+
case "InternalServerException":
|
|
1609
|
+
case "com.amazonaws.kendra#InternalServerException":
|
|
1610
|
+
response = {
|
|
1611
|
+
...(await deserializeAws_json1_1InternalServerExceptionResponse(parsedOutput, context)),
|
|
1612
|
+
name: errorCode,
|
|
1613
|
+
$metadata: deserializeMetadata(output),
|
|
1614
|
+
};
|
|
1615
|
+
break;
|
|
1616
|
+
case "ResourceNotFoundException":
|
|
1617
|
+
case "com.amazonaws.kendra#ResourceNotFoundException":
|
|
1618
|
+
response = {
|
|
1619
|
+
...(await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
1620
|
+
name: errorCode,
|
|
1621
|
+
$metadata: deserializeMetadata(output),
|
|
1622
|
+
};
|
|
1623
|
+
break;
|
|
1624
|
+
case "ServiceQuotaExceededException":
|
|
1625
|
+
case "com.amazonaws.kendra#ServiceQuotaExceededException":
|
|
1626
|
+
response = {
|
|
1627
|
+
...(await deserializeAws_json1_1ServiceQuotaExceededExceptionResponse(parsedOutput, context)),
|
|
1628
|
+
name: errorCode,
|
|
1629
|
+
$metadata: deserializeMetadata(output),
|
|
1630
|
+
};
|
|
1631
|
+
break;
|
|
1632
|
+
case "ThrottlingException":
|
|
1633
|
+
case "com.amazonaws.kendra#ThrottlingException":
|
|
1634
|
+
response = {
|
|
1635
|
+
...(await deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context)),
|
|
1636
|
+
name: errorCode,
|
|
1637
|
+
$metadata: deserializeMetadata(output),
|
|
1638
|
+
};
|
|
1639
|
+
break;
|
|
1640
|
+
case "ValidationException":
|
|
1641
|
+
case "com.amazonaws.kendra#ValidationException":
|
|
1642
|
+
response = {
|
|
1643
|
+
...(await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context)),
|
|
1644
|
+
name: errorCode,
|
|
1645
|
+
$metadata: deserializeMetadata(output),
|
|
1646
|
+
};
|
|
1647
|
+
break;
|
|
1648
|
+
default:
|
|
1649
|
+
const parsedBody = parsedOutput.body;
|
|
1650
|
+
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
1651
|
+
response = {
|
|
1652
|
+
...parsedBody,
|
|
1653
|
+
name: `${errorCode}`,
|
|
1654
|
+
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1655
|
+
$fault: "client",
|
|
1656
|
+
$metadata: deserializeMetadata(output),
|
|
1657
|
+
};
|
|
1658
|
+
}
|
|
1659
|
+
const message = response.message || response.Message || errorCode;
|
|
1660
|
+
response.message = message;
|
|
1661
|
+
delete response.Message;
|
|
1662
|
+
return Promise.reject(Object.assign(new Error(message), response));
|
|
1663
|
+
};
|
|
1664
|
+
const deserializeAws_json1_1DeleteDataSourceCommand = async (output, context) => {
|
|
1665
|
+
if (output.statusCode >= 300) {
|
|
1666
|
+
return deserializeAws_json1_1DeleteDataSourceCommandError(output, context);
|
|
1445
1667
|
}
|
|
1446
1668
|
await collectBody(output.body, context);
|
|
1447
1669
|
const response = {
|
|
@@ -1449,8 +1671,8 @@ const deserializeAws_json1_1DeleteIndexCommand = async (output, context) => {
|
|
|
1449
1671
|
};
|
|
1450
1672
|
return Promise.resolve(response);
|
|
1451
1673
|
};
|
|
1452
|
-
exports.
|
|
1453
|
-
const
|
|
1674
|
+
exports.deserializeAws_json1_1DeleteDataSourceCommand = deserializeAws_json1_1DeleteDataSourceCommand;
|
|
1675
|
+
const deserializeAws_json1_1DeleteDataSourceCommandError = async (output, context) => {
|
|
1454
1676
|
const parsedOutput = {
|
|
1455
1677
|
...output,
|
|
1456
1678
|
body: await parseBody(output.body, context),
|
|
@@ -1523,9 +1745,96 @@ const deserializeAws_json1_1DeleteIndexCommandError = async (output, context) =>
|
|
|
1523
1745
|
delete response.Message;
|
|
1524
1746
|
return Promise.reject(Object.assign(new Error(message), response));
|
|
1525
1747
|
};
|
|
1526
|
-
const
|
|
1748
|
+
const deserializeAws_json1_1DeleteExperienceCommand = async (output, context) => {
|
|
1527
1749
|
if (output.statusCode >= 300) {
|
|
1528
|
-
return
|
|
1750
|
+
return deserializeAws_json1_1DeleteExperienceCommandError(output, context);
|
|
1751
|
+
}
|
|
1752
|
+
const data = await parseBody(output.body, context);
|
|
1753
|
+
let contents = {};
|
|
1754
|
+
contents = deserializeAws_json1_1DeleteExperienceResponse(data, context);
|
|
1755
|
+
const response = {
|
|
1756
|
+
$metadata: deserializeMetadata(output),
|
|
1757
|
+
...contents,
|
|
1758
|
+
};
|
|
1759
|
+
return Promise.resolve(response);
|
|
1760
|
+
};
|
|
1761
|
+
exports.deserializeAws_json1_1DeleteExperienceCommand = deserializeAws_json1_1DeleteExperienceCommand;
|
|
1762
|
+
const deserializeAws_json1_1DeleteExperienceCommandError = async (output, context) => {
|
|
1763
|
+
const parsedOutput = {
|
|
1764
|
+
...output,
|
|
1765
|
+
body: await parseBody(output.body, context),
|
|
1766
|
+
};
|
|
1767
|
+
let response;
|
|
1768
|
+
let errorCode = "UnknownError";
|
|
1769
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1770
|
+
switch (errorCode) {
|
|
1771
|
+
case "AccessDeniedException":
|
|
1772
|
+
case "com.amazonaws.kendra#AccessDeniedException":
|
|
1773
|
+
response = {
|
|
1774
|
+
...(await deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context)),
|
|
1775
|
+
name: errorCode,
|
|
1776
|
+
$metadata: deserializeMetadata(output),
|
|
1777
|
+
};
|
|
1778
|
+
break;
|
|
1779
|
+
case "ConflictException":
|
|
1780
|
+
case "com.amazonaws.kendra#ConflictException":
|
|
1781
|
+
response = {
|
|
1782
|
+
...(await deserializeAws_json1_1ConflictExceptionResponse(parsedOutput, context)),
|
|
1783
|
+
name: errorCode,
|
|
1784
|
+
$metadata: deserializeMetadata(output),
|
|
1785
|
+
};
|
|
1786
|
+
break;
|
|
1787
|
+
case "InternalServerException":
|
|
1788
|
+
case "com.amazonaws.kendra#InternalServerException":
|
|
1789
|
+
response = {
|
|
1790
|
+
...(await deserializeAws_json1_1InternalServerExceptionResponse(parsedOutput, context)),
|
|
1791
|
+
name: errorCode,
|
|
1792
|
+
$metadata: deserializeMetadata(output),
|
|
1793
|
+
};
|
|
1794
|
+
break;
|
|
1795
|
+
case "ResourceNotFoundException":
|
|
1796
|
+
case "com.amazonaws.kendra#ResourceNotFoundException":
|
|
1797
|
+
response = {
|
|
1798
|
+
...(await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
1799
|
+
name: errorCode,
|
|
1800
|
+
$metadata: deserializeMetadata(output),
|
|
1801
|
+
};
|
|
1802
|
+
break;
|
|
1803
|
+
case "ThrottlingException":
|
|
1804
|
+
case "com.amazonaws.kendra#ThrottlingException":
|
|
1805
|
+
response = {
|
|
1806
|
+
...(await deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context)),
|
|
1807
|
+
name: errorCode,
|
|
1808
|
+
$metadata: deserializeMetadata(output),
|
|
1809
|
+
};
|
|
1810
|
+
break;
|
|
1811
|
+
case "ValidationException":
|
|
1812
|
+
case "com.amazonaws.kendra#ValidationException":
|
|
1813
|
+
response = {
|
|
1814
|
+
...(await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context)),
|
|
1815
|
+
name: errorCode,
|
|
1816
|
+
$metadata: deserializeMetadata(output),
|
|
1817
|
+
};
|
|
1818
|
+
break;
|
|
1819
|
+
default:
|
|
1820
|
+
const parsedBody = parsedOutput.body;
|
|
1821
|
+
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
1822
|
+
response = {
|
|
1823
|
+
...parsedBody,
|
|
1824
|
+
name: `${errorCode}`,
|
|
1825
|
+
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1826
|
+
$fault: "client",
|
|
1827
|
+
$metadata: deserializeMetadata(output),
|
|
1828
|
+
};
|
|
1829
|
+
}
|
|
1830
|
+
const message = response.message || response.Message || errorCode;
|
|
1831
|
+
response.message = message;
|
|
1832
|
+
delete response.Message;
|
|
1833
|
+
return Promise.reject(Object.assign(new Error(message), response));
|
|
1834
|
+
};
|
|
1835
|
+
const deserializeAws_json1_1DeleteFaqCommand = async (output, context) => {
|
|
1836
|
+
if (output.statusCode >= 300) {
|
|
1837
|
+
return deserializeAws_json1_1DeleteFaqCommandError(output, context);
|
|
1529
1838
|
}
|
|
1530
1839
|
await collectBody(output.body, context);
|
|
1531
1840
|
const response = {
|
|
@@ -1533,8 +1842,8 @@ const deserializeAws_json1_1DeletePrincipalMappingCommand = async (output, conte
|
|
|
1533
1842
|
};
|
|
1534
1843
|
return Promise.resolve(response);
|
|
1535
1844
|
};
|
|
1536
|
-
exports.
|
|
1537
|
-
const
|
|
1845
|
+
exports.deserializeAws_json1_1DeleteFaqCommand = deserializeAws_json1_1DeleteFaqCommand;
|
|
1846
|
+
const deserializeAws_json1_1DeleteFaqCommandError = async (output, context) => {
|
|
1538
1847
|
const parsedOutput = {
|
|
1539
1848
|
...output,
|
|
1540
1849
|
body: await parseBody(output.body, context),
|
|
@@ -1607,18 +1916,752 @@ const deserializeAws_json1_1DeletePrincipalMappingCommandError = async (output,
|
|
|
1607
1916
|
delete response.Message;
|
|
1608
1917
|
return Promise.reject(Object.assign(new Error(message), response));
|
|
1609
1918
|
};
|
|
1610
|
-
const
|
|
1919
|
+
const deserializeAws_json1_1DeleteIndexCommand = async (output, context) => {
|
|
1611
1920
|
if (output.statusCode >= 300) {
|
|
1612
|
-
return
|
|
1921
|
+
return deserializeAws_json1_1DeleteIndexCommandError(output, context);
|
|
1922
|
+
}
|
|
1923
|
+
await collectBody(output.body, context);
|
|
1924
|
+
const response = {
|
|
1925
|
+
$metadata: deserializeMetadata(output),
|
|
1926
|
+
};
|
|
1927
|
+
return Promise.resolve(response);
|
|
1928
|
+
};
|
|
1929
|
+
exports.deserializeAws_json1_1DeleteIndexCommand = deserializeAws_json1_1DeleteIndexCommand;
|
|
1930
|
+
const deserializeAws_json1_1DeleteIndexCommandError = async (output, context) => {
|
|
1931
|
+
const parsedOutput = {
|
|
1932
|
+
...output,
|
|
1933
|
+
body: await parseBody(output.body, context),
|
|
1934
|
+
};
|
|
1935
|
+
let response;
|
|
1936
|
+
let errorCode = "UnknownError";
|
|
1937
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1938
|
+
switch (errorCode) {
|
|
1939
|
+
case "AccessDeniedException":
|
|
1940
|
+
case "com.amazonaws.kendra#AccessDeniedException":
|
|
1941
|
+
response = {
|
|
1942
|
+
...(await deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context)),
|
|
1943
|
+
name: errorCode,
|
|
1944
|
+
$metadata: deserializeMetadata(output),
|
|
1945
|
+
};
|
|
1946
|
+
break;
|
|
1947
|
+
case "ConflictException":
|
|
1948
|
+
case "com.amazonaws.kendra#ConflictException":
|
|
1949
|
+
response = {
|
|
1950
|
+
...(await deserializeAws_json1_1ConflictExceptionResponse(parsedOutput, context)),
|
|
1951
|
+
name: errorCode,
|
|
1952
|
+
$metadata: deserializeMetadata(output),
|
|
1953
|
+
};
|
|
1954
|
+
break;
|
|
1955
|
+
case "InternalServerException":
|
|
1956
|
+
case "com.amazonaws.kendra#InternalServerException":
|
|
1957
|
+
response = {
|
|
1958
|
+
...(await deserializeAws_json1_1InternalServerExceptionResponse(parsedOutput, context)),
|
|
1959
|
+
name: errorCode,
|
|
1960
|
+
$metadata: deserializeMetadata(output),
|
|
1961
|
+
};
|
|
1962
|
+
break;
|
|
1963
|
+
case "ResourceNotFoundException":
|
|
1964
|
+
case "com.amazonaws.kendra#ResourceNotFoundException":
|
|
1965
|
+
response = {
|
|
1966
|
+
...(await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
1967
|
+
name: errorCode,
|
|
1968
|
+
$metadata: deserializeMetadata(output),
|
|
1969
|
+
};
|
|
1970
|
+
break;
|
|
1971
|
+
case "ThrottlingException":
|
|
1972
|
+
case "com.amazonaws.kendra#ThrottlingException":
|
|
1973
|
+
response = {
|
|
1974
|
+
...(await deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context)),
|
|
1975
|
+
name: errorCode,
|
|
1976
|
+
$metadata: deserializeMetadata(output),
|
|
1977
|
+
};
|
|
1978
|
+
break;
|
|
1979
|
+
case "ValidationException":
|
|
1980
|
+
case "com.amazonaws.kendra#ValidationException":
|
|
1981
|
+
response = {
|
|
1982
|
+
...(await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context)),
|
|
1983
|
+
name: errorCode,
|
|
1984
|
+
$metadata: deserializeMetadata(output),
|
|
1985
|
+
};
|
|
1986
|
+
break;
|
|
1987
|
+
default:
|
|
1988
|
+
const parsedBody = parsedOutput.body;
|
|
1989
|
+
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
1990
|
+
response = {
|
|
1991
|
+
...parsedBody,
|
|
1992
|
+
name: `${errorCode}`,
|
|
1993
|
+
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1994
|
+
$fault: "client",
|
|
1995
|
+
$metadata: deserializeMetadata(output),
|
|
1996
|
+
};
|
|
1997
|
+
}
|
|
1998
|
+
const message = response.message || response.Message || errorCode;
|
|
1999
|
+
response.message = message;
|
|
2000
|
+
delete response.Message;
|
|
2001
|
+
return Promise.reject(Object.assign(new Error(message), response));
|
|
2002
|
+
};
|
|
2003
|
+
const deserializeAws_json1_1DeletePrincipalMappingCommand = async (output, context) => {
|
|
2004
|
+
if (output.statusCode >= 300) {
|
|
2005
|
+
return deserializeAws_json1_1DeletePrincipalMappingCommandError(output, context);
|
|
2006
|
+
}
|
|
2007
|
+
await collectBody(output.body, context);
|
|
2008
|
+
const response = {
|
|
2009
|
+
$metadata: deserializeMetadata(output),
|
|
2010
|
+
};
|
|
2011
|
+
return Promise.resolve(response);
|
|
2012
|
+
};
|
|
2013
|
+
exports.deserializeAws_json1_1DeletePrincipalMappingCommand = deserializeAws_json1_1DeletePrincipalMappingCommand;
|
|
2014
|
+
const deserializeAws_json1_1DeletePrincipalMappingCommandError = async (output, context) => {
|
|
2015
|
+
const parsedOutput = {
|
|
2016
|
+
...output,
|
|
2017
|
+
body: await parseBody(output.body, context),
|
|
2018
|
+
};
|
|
2019
|
+
let response;
|
|
2020
|
+
let errorCode = "UnknownError";
|
|
2021
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2022
|
+
switch (errorCode) {
|
|
2023
|
+
case "AccessDeniedException":
|
|
2024
|
+
case "com.amazonaws.kendra#AccessDeniedException":
|
|
2025
|
+
response = {
|
|
2026
|
+
...(await deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context)),
|
|
2027
|
+
name: errorCode,
|
|
2028
|
+
$metadata: deserializeMetadata(output),
|
|
2029
|
+
};
|
|
2030
|
+
break;
|
|
2031
|
+
case "ConflictException":
|
|
2032
|
+
case "com.amazonaws.kendra#ConflictException":
|
|
2033
|
+
response = {
|
|
2034
|
+
...(await deserializeAws_json1_1ConflictExceptionResponse(parsedOutput, context)),
|
|
2035
|
+
name: errorCode,
|
|
2036
|
+
$metadata: deserializeMetadata(output),
|
|
2037
|
+
};
|
|
2038
|
+
break;
|
|
2039
|
+
case "InternalServerException":
|
|
2040
|
+
case "com.amazonaws.kendra#InternalServerException":
|
|
2041
|
+
response = {
|
|
2042
|
+
...(await deserializeAws_json1_1InternalServerExceptionResponse(parsedOutput, context)),
|
|
2043
|
+
name: errorCode,
|
|
2044
|
+
$metadata: deserializeMetadata(output),
|
|
2045
|
+
};
|
|
2046
|
+
break;
|
|
2047
|
+
case "ResourceNotFoundException":
|
|
2048
|
+
case "com.amazonaws.kendra#ResourceNotFoundException":
|
|
2049
|
+
response = {
|
|
2050
|
+
...(await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
2051
|
+
name: errorCode,
|
|
2052
|
+
$metadata: deserializeMetadata(output),
|
|
2053
|
+
};
|
|
2054
|
+
break;
|
|
2055
|
+
case "ThrottlingException":
|
|
2056
|
+
case "com.amazonaws.kendra#ThrottlingException":
|
|
2057
|
+
response = {
|
|
2058
|
+
...(await deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context)),
|
|
2059
|
+
name: errorCode,
|
|
2060
|
+
$metadata: deserializeMetadata(output),
|
|
2061
|
+
};
|
|
2062
|
+
break;
|
|
2063
|
+
case "ValidationException":
|
|
2064
|
+
case "com.amazonaws.kendra#ValidationException":
|
|
2065
|
+
response = {
|
|
2066
|
+
...(await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context)),
|
|
2067
|
+
name: errorCode,
|
|
2068
|
+
$metadata: deserializeMetadata(output),
|
|
2069
|
+
};
|
|
2070
|
+
break;
|
|
2071
|
+
default:
|
|
2072
|
+
const parsedBody = parsedOutput.body;
|
|
2073
|
+
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
2074
|
+
response = {
|
|
2075
|
+
...parsedBody,
|
|
2076
|
+
name: `${errorCode}`,
|
|
2077
|
+
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
2078
|
+
$fault: "client",
|
|
2079
|
+
$metadata: deserializeMetadata(output),
|
|
2080
|
+
};
|
|
2081
|
+
}
|
|
2082
|
+
const message = response.message || response.Message || errorCode;
|
|
2083
|
+
response.message = message;
|
|
2084
|
+
delete response.Message;
|
|
2085
|
+
return Promise.reject(Object.assign(new Error(message), response));
|
|
2086
|
+
};
|
|
2087
|
+
const deserializeAws_json1_1DeleteQuerySuggestionsBlockListCommand = async (output, context) => {
|
|
2088
|
+
if (output.statusCode >= 300) {
|
|
2089
|
+
return deserializeAws_json1_1DeleteQuerySuggestionsBlockListCommandError(output, context);
|
|
2090
|
+
}
|
|
2091
|
+
await collectBody(output.body, context);
|
|
2092
|
+
const response = {
|
|
2093
|
+
$metadata: deserializeMetadata(output),
|
|
2094
|
+
};
|
|
2095
|
+
return Promise.resolve(response);
|
|
2096
|
+
};
|
|
2097
|
+
exports.deserializeAws_json1_1DeleteQuerySuggestionsBlockListCommand = deserializeAws_json1_1DeleteQuerySuggestionsBlockListCommand;
|
|
2098
|
+
const deserializeAws_json1_1DeleteQuerySuggestionsBlockListCommandError = async (output, context) => {
|
|
2099
|
+
const parsedOutput = {
|
|
2100
|
+
...output,
|
|
2101
|
+
body: await parseBody(output.body, context),
|
|
2102
|
+
};
|
|
2103
|
+
let response;
|
|
2104
|
+
let errorCode = "UnknownError";
|
|
2105
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2106
|
+
switch (errorCode) {
|
|
2107
|
+
case "AccessDeniedException":
|
|
2108
|
+
case "com.amazonaws.kendra#AccessDeniedException":
|
|
2109
|
+
response = {
|
|
2110
|
+
...(await deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context)),
|
|
2111
|
+
name: errorCode,
|
|
2112
|
+
$metadata: deserializeMetadata(output),
|
|
2113
|
+
};
|
|
2114
|
+
break;
|
|
2115
|
+
case "ConflictException":
|
|
2116
|
+
case "com.amazonaws.kendra#ConflictException":
|
|
2117
|
+
response = {
|
|
2118
|
+
...(await deserializeAws_json1_1ConflictExceptionResponse(parsedOutput, context)),
|
|
2119
|
+
name: errorCode,
|
|
2120
|
+
$metadata: deserializeMetadata(output),
|
|
2121
|
+
};
|
|
2122
|
+
break;
|
|
2123
|
+
case "InternalServerException":
|
|
2124
|
+
case "com.amazonaws.kendra#InternalServerException":
|
|
2125
|
+
response = {
|
|
2126
|
+
...(await deserializeAws_json1_1InternalServerExceptionResponse(parsedOutput, context)),
|
|
2127
|
+
name: errorCode,
|
|
2128
|
+
$metadata: deserializeMetadata(output),
|
|
2129
|
+
};
|
|
2130
|
+
break;
|
|
2131
|
+
case "ResourceNotFoundException":
|
|
2132
|
+
case "com.amazonaws.kendra#ResourceNotFoundException":
|
|
2133
|
+
response = {
|
|
2134
|
+
...(await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
2135
|
+
name: errorCode,
|
|
2136
|
+
$metadata: deserializeMetadata(output),
|
|
2137
|
+
};
|
|
2138
|
+
break;
|
|
2139
|
+
case "ThrottlingException":
|
|
2140
|
+
case "com.amazonaws.kendra#ThrottlingException":
|
|
2141
|
+
response = {
|
|
2142
|
+
...(await deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context)),
|
|
2143
|
+
name: errorCode,
|
|
2144
|
+
$metadata: deserializeMetadata(output),
|
|
2145
|
+
};
|
|
2146
|
+
break;
|
|
2147
|
+
case "ValidationException":
|
|
2148
|
+
case "com.amazonaws.kendra#ValidationException":
|
|
2149
|
+
response = {
|
|
2150
|
+
...(await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context)),
|
|
2151
|
+
name: errorCode,
|
|
2152
|
+
$metadata: deserializeMetadata(output),
|
|
2153
|
+
};
|
|
2154
|
+
break;
|
|
2155
|
+
default:
|
|
2156
|
+
const parsedBody = parsedOutput.body;
|
|
2157
|
+
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
2158
|
+
response = {
|
|
2159
|
+
...parsedBody,
|
|
2160
|
+
name: `${errorCode}`,
|
|
2161
|
+
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
2162
|
+
$fault: "client",
|
|
2163
|
+
$metadata: deserializeMetadata(output),
|
|
2164
|
+
};
|
|
2165
|
+
}
|
|
2166
|
+
const message = response.message || response.Message || errorCode;
|
|
2167
|
+
response.message = message;
|
|
2168
|
+
delete response.Message;
|
|
2169
|
+
return Promise.reject(Object.assign(new Error(message), response));
|
|
2170
|
+
};
|
|
2171
|
+
const deserializeAws_json1_1DeleteThesaurusCommand = async (output, context) => {
|
|
2172
|
+
if (output.statusCode >= 300) {
|
|
2173
|
+
return deserializeAws_json1_1DeleteThesaurusCommandError(output, context);
|
|
2174
|
+
}
|
|
2175
|
+
await collectBody(output.body, context);
|
|
2176
|
+
const response = {
|
|
2177
|
+
$metadata: deserializeMetadata(output),
|
|
2178
|
+
};
|
|
2179
|
+
return Promise.resolve(response);
|
|
2180
|
+
};
|
|
2181
|
+
exports.deserializeAws_json1_1DeleteThesaurusCommand = deserializeAws_json1_1DeleteThesaurusCommand;
|
|
2182
|
+
const deserializeAws_json1_1DeleteThesaurusCommandError = async (output, context) => {
|
|
2183
|
+
const parsedOutput = {
|
|
2184
|
+
...output,
|
|
2185
|
+
body: await parseBody(output.body, context),
|
|
2186
|
+
};
|
|
2187
|
+
let response;
|
|
2188
|
+
let errorCode = "UnknownError";
|
|
2189
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2190
|
+
switch (errorCode) {
|
|
2191
|
+
case "AccessDeniedException":
|
|
2192
|
+
case "com.amazonaws.kendra#AccessDeniedException":
|
|
2193
|
+
response = {
|
|
2194
|
+
...(await deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context)),
|
|
2195
|
+
name: errorCode,
|
|
2196
|
+
$metadata: deserializeMetadata(output),
|
|
2197
|
+
};
|
|
2198
|
+
break;
|
|
2199
|
+
case "ConflictException":
|
|
2200
|
+
case "com.amazonaws.kendra#ConflictException":
|
|
2201
|
+
response = {
|
|
2202
|
+
...(await deserializeAws_json1_1ConflictExceptionResponse(parsedOutput, context)),
|
|
2203
|
+
name: errorCode,
|
|
2204
|
+
$metadata: deserializeMetadata(output),
|
|
2205
|
+
};
|
|
2206
|
+
break;
|
|
2207
|
+
case "InternalServerException":
|
|
2208
|
+
case "com.amazonaws.kendra#InternalServerException":
|
|
2209
|
+
response = {
|
|
2210
|
+
...(await deserializeAws_json1_1InternalServerExceptionResponse(parsedOutput, context)),
|
|
2211
|
+
name: errorCode,
|
|
2212
|
+
$metadata: deserializeMetadata(output),
|
|
2213
|
+
};
|
|
2214
|
+
break;
|
|
2215
|
+
case "ResourceNotFoundException":
|
|
2216
|
+
case "com.amazonaws.kendra#ResourceNotFoundException":
|
|
2217
|
+
response = {
|
|
2218
|
+
...(await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
2219
|
+
name: errorCode,
|
|
2220
|
+
$metadata: deserializeMetadata(output),
|
|
2221
|
+
};
|
|
2222
|
+
break;
|
|
2223
|
+
case "ThrottlingException":
|
|
2224
|
+
case "com.amazonaws.kendra#ThrottlingException":
|
|
2225
|
+
response = {
|
|
2226
|
+
...(await deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context)),
|
|
2227
|
+
name: errorCode,
|
|
2228
|
+
$metadata: deserializeMetadata(output),
|
|
2229
|
+
};
|
|
2230
|
+
break;
|
|
2231
|
+
case "ValidationException":
|
|
2232
|
+
case "com.amazonaws.kendra#ValidationException":
|
|
2233
|
+
response = {
|
|
2234
|
+
...(await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context)),
|
|
2235
|
+
name: errorCode,
|
|
2236
|
+
$metadata: deserializeMetadata(output),
|
|
2237
|
+
};
|
|
2238
|
+
break;
|
|
2239
|
+
default:
|
|
2240
|
+
const parsedBody = parsedOutput.body;
|
|
2241
|
+
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
2242
|
+
response = {
|
|
2243
|
+
...parsedBody,
|
|
2244
|
+
name: `${errorCode}`,
|
|
2245
|
+
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
2246
|
+
$fault: "client",
|
|
2247
|
+
$metadata: deserializeMetadata(output),
|
|
2248
|
+
};
|
|
2249
|
+
}
|
|
2250
|
+
const message = response.message || response.Message || errorCode;
|
|
2251
|
+
response.message = message;
|
|
2252
|
+
delete response.Message;
|
|
2253
|
+
return Promise.reject(Object.assign(new Error(message), response));
|
|
2254
|
+
};
|
|
2255
|
+
const deserializeAws_json1_1DescribeDataSourceCommand = async (output, context) => {
|
|
2256
|
+
if (output.statusCode >= 300) {
|
|
2257
|
+
return deserializeAws_json1_1DescribeDataSourceCommandError(output, context);
|
|
2258
|
+
}
|
|
2259
|
+
const data = await parseBody(output.body, context);
|
|
2260
|
+
let contents = {};
|
|
2261
|
+
contents = deserializeAws_json1_1DescribeDataSourceResponse(data, context);
|
|
2262
|
+
const response = {
|
|
2263
|
+
$metadata: deserializeMetadata(output),
|
|
2264
|
+
...contents,
|
|
2265
|
+
};
|
|
2266
|
+
return Promise.resolve(response);
|
|
2267
|
+
};
|
|
2268
|
+
exports.deserializeAws_json1_1DescribeDataSourceCommand = deserializeAws_json1_1DescribeDataSourceCommand;
|
|
2269
|
+
const deserializeAws_json1_1DescribeDataSourceCommandError = async (output, context) => {
|
|
2270
|
+
const parsedOutput = {
|
|
2271
|
+
...output,
|
|
2272
|
+
body: await parseBody(output.body, context),
|
|
2273
|
+
};
|
|
2274
|
+
let response;
|
|
2275
|
+
let errorCode = "UnknownError";
|
|
2276
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2277
|
+
switch (errorCode) {
|
|
2278
|
+
case "AccessDeniedException":
|
|
2279
|
+
case "com.amazonaws.kendra#AccessDeniedException":
|
|
2280
|
+
response = {
|
|
2281
|
+
...(await deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context)),
|
|
2282
|
+
name: errorCode,
|
|
2283
|
+
$metadata: deserializeMetadata(output),
|
|
2284
|
+
};
|
|
2285
|
+
break;
|
|
2286
|
+
case "InternalServerException":
|
|
2287
|
+
case "com.amazonaws.kendra#InternalServerException":
|
|
2288
|
+
response = {
|
|
2289
|
+
...(await deserializeAws_json1_1InternalServerExceptionResponse(parsedOutput, context)),
|
|
2290
|
+
name: errorCode,
|
|
2291
|
+
$metadata: deserializeMetadata(output),
|
|
2292
|
+
};
|
|
2293
|
+
break;
|
|
2294
|
+
case "ResourceNotFoundException":
|
|
2295
|
+
case "com.amazonaws.kendra#ResourceNotFoundException":
|
|
2296
|
+
response = {
|
|
2297
|
+
...(await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
2298
|
+
name: errorCode,
|
|
2299
|
+
$metadata: deserializeMetadata(output),
|
|
2300
|
+
};
|
|
2301
|
+
break;
|
|
2302
|
+
case "ThrottlingException":
|
|
2303
|
+
case "com.amazonaws.kendra#ThrottlingException":
|
|
2304
|
+
response = {
|
|
2305
|
+
...(await deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context)),
|
|
2306
|
+
name: errorCode,
|
|
2307
|
+
$metadata: deserializeMetadata(output),
|
|
2308
|
+
};
|
|
2309
|
+
break;
|
|
2310
|
+
case "ValidationException":
|
|
2311
|
+
case "com.amazonaws.kendra#ValidationException":
|
|
2312
|
+
response = {
|
|
2313
|
+
...(await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context)),
|
|
2314
|
+
name: errorCode,
|
|
2315
|
+
$metadata: deserializeMetadata(output),
|
|
2316
|
+
};
|
|
2317
|
+
break;
|
|
2318
|
+
default:
|
|
2319
|
+
const parsedBody = parsedOutput.body;
|
|
2320
|
+
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
2321
|
+
response = {
|
|
2322
|
+
...parsedBody,
|
|
2323
|
+
name: `${errorCode}`,
|
|
2324
|
+
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
2325
|
+
$fault: "client",
|
|
2326
|
+
$metadata: deserializeMetadata(output),
|
|
2327
|
+
};
|
|
2328
|
+
}
|
|
2329
|
+
const message = response.message || response.Message || errorCode;
|
|
2330
|
+
response.message = message;
|
|
2331
|
+
delete response.Message;
|
|
2332
|
+
return Promise.reject(Object.assign(new Error(message), response));
|
|
2333
|
+
};
|
|
2334
|
+
const deserializeAws_json1_1DescribeExperienceCommand = async (output, context) => {
|
|
2335
|
+
if (output.statusCode >= 300) {
|
|
2336
|
+
return deserializeAws_json1_1DescribeExperienceCommandError(output, context);
|
|
2337
|
+
}
|
|
2338
|
+
const data = await parseBody(output.body, context);
|
|
2339
|
+
let contents = {};
|
|
2340
|
+
contents = deserializeAws_json1_1DescribeExperienceResponse(data, context);
|
|
2341
|
+
const response = {
|
|
2342
|
+
$metadata: deserializeMetadata(output),
|
|
2343
|
+
...contents,
|
|
2344
|
+
};
|
|
2345
|
+
return Promise.resolve(response);
|
|
2346
|
+
};
|
|
2347
|
+
exports.deserializeAws_json1_1DescribeExperienceCommand = deserializeAws_json1_1DescribeExperienceCommand;
|
|
2348
|
+
const deserializeAws_json1_1DescribeExperienceCommandError = async (output, context) => {
|
|
2349
|
+
const parsedOutput = {
|
|
2350
|
+
...output,
|
|
2351
|
+
body: await parseBody(output.body, context),
|
|
2352
|
+
};
|
|
2353
|
+
let response;
|
|
2354
|
+
let errorCode = "UnknownError";
|
|
2355
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2356
|
+
switch (errorCode) {
|
|
2357
|
+
case "AccessDeniedException":
|
|
2358
|
+
case "com.amazonaws.kendra#AccessDeniedException":
|
|
2359
|
+
response = {
|
|
2360
|
+
...(await deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context)),
|
|
2361
|
+
name: errorCode,
|
|
2362
|
+
$metadata: deserializeMetadata(output),
|
|
2363
|
+
};
|
|
2364
|
+
break;
|
|
2365
|
+
case "InternalServerException":
|
|
2366
|
+
case "com.amazonaws.kendra#InternalServerException":
|
|
2367
|
+
response = {
|
|
2368
|
+
...(await deserializeAws_json1_1InternalServerExceptionResponse(parsedOutput, context)),
|
|
2369
|
+
name: errorCode,
|
|
2370
|
+
$metadata: deserializeMetadata(output),
|
|
2371
|
+
};
|
|
2372
|
+
break;
|
|
2373
|
+
case "ResourceNotFoundException":
|
|
2374
|
+
case "com.amazonaws.kendra#ResourceNotFoundException":
|
|
2375
|
+
response = {
|
|
2376
|
+
...(await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
2377
|
+
name: errorCode,
|
|
2378
|
+
$metadata: deserializeMetadata(output),
|
|
2379
|
+
};
|
|
2380
|
+
break;
|
|
2381
|
+
case "ThrottlingException":
|
|
2382
|
+
case "com.amazonaws.kendra#ThrottlingException":
|
|
2383
|
+
response = {
|
|
2384
|
+
...(await deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context)),
|
|
2385
|
+
name: errorCode,
|
|
2386
|
+
$metadata: deserializeMetadata(output),
|
|
2387
|
+
};
|
|
2388
|
+
break;
|
|
2389
|
+
case "ValidationException":
|
|
2390
|
+
case "com.amazonaws.kendra#ValidationException":
|
|
2391
|
+
response = {
|
|
2392
|
+
...(await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context)),
|
|
2393
|
+
name: errorCode,
|
|
2394
|
+
$metadata: deserializeMetadata(output),
|
|
2395
|
+
};
|
|
2396
|
+
break;
|
|
2397
|
+
default:
|
|
2398
|
+
const parsedBody = parsedOutput.body;
|
|
2399
|
+
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
2400
|
+
response = {
|
|
2401
|
+
...parsedBody,
|
|
2402
|
+
name: `${errorCode}`,
|
|
2403
|
+
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
2404
|
+
$fault: "client",
|
|
2405
|
+
$metadata: deserializeMetadata(output),
|
|
2406
|
+
};
|
|
2407
|
+
}
|
|
2408
|
+
const message = response.message || response.Message || errorCode;
|
|
2409
|
+
response.message = message;
|
|
2410
|
+
delete response.Message;
|
|
2411
|
+
return Promise.reject(Object.assign(new Error(message), response));
|
|
2412
|
+
};
|
|
2413
|
+
const deserializeAws_json1_1DescribeFaqCommand = async (output, context) => {
|
|
2414
|
+
if (output.statusCode >= 300) {
|
|
2415
|
+
return deserializeAws_json1_1DescribeFaqCommandError(output, context);
|
|
2416
|
+
}
|
|
2417
|
+
const data = await parseBody(output.body, context);
|
|
2418
|
+
let contents = {};
|
|
2419
|
+
contents = deserializeAws_json1_1DescribeFaqResponse(data, context);
|
|
2420
|
+
const response = {
|
|
2421
|
+
$metadata: deserializeMetadata(output),
|
|
2422
|
+
...contents,
|
|
2423
|
+
};
|
|
2424
|
+
return Promise.resolve(response);
|
|
2425
|
+
};
|
|
2426
|
+
exports.deserializeAws_json1_1DescribeFaqCommand = deserializeAws_json1_1DescribeFaqCommand;
|
|
2427
|
+
const deserializeAws_json1_1DescribeFaqCommandError = async (output, context) => {
|
|
2428
|
+
const parsedOutput = {
|
|
2429
|
+
...output,
|
|
2430
|
+
body: await parseBody(output.body, context),
|
|
2431
|
+
};
|
|
2432
|
+
let response;
|
|
2433
|
+
let errorCode = "UnknownError";
|
|
2434
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2435
|
+
switch (errorCode) {
|
|
2436
|
+
case "AccessDeniedException":
|
|
2437
|
+
case "com.amazonaws.kendra#AccessDeniedException":
|
|
2438
|
+
response = {
|
|
2439
|
+
...(await deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context)),
|
|
2440
|
+
name: errorCode,
|
|
2441
|
+
$metadata: deserializeMetadata(output),
|
|
2442
|
+
};
|
|
2443
|
+
break;
|
|
2444
|
+
case "InternalServerException":
|
|
2445
|
+
case "com.amazonaws.kendra#InternalServerException":
|
|
2446
|
+
response = {
|
|
2447
|
+
...(await deserializeAws_json1_1InternalServerExceptionResponse(parsedOutput, context)),
|
|
2448
|
+
name: errorCode,
|
|
2449
|
+
$metadata: deserializeMetadata(output),
|
|
2450
|
+
};
|
|
2451
|
+
break;
|
|
2452
|
+
case "ResourceNotFoundException":
|
|
2453
|
+
case "com.amazonaws.kendra#ResourceNotFoundException":
|
|
2454
|
+
response = {
|
|
2455
|
+
...(await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
2456
|
+
name: errorCode,
|
|
2457
|
+
$metadata: deserializeMetadata(output),
|
|
2458
|
+
};
|
|
2459
|
+
break;
|
|
2460
|
+
case "ThrottlingException":
|
|
2461
|
+
case "com.amazonaws.kendra#ThrottlingException":
|
|
2462
|
+
response = {
|
|
2463
|
+
...(await deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context)),
|
|
2464
|
+
name: errorCode,
|
|
2465
|
+
$metadata: deserializeMetadata(output),
|
|
2466
|
+
};
|
|
2467
|
+
break;
|
|
2468
|
+
case "ValidationException":
|
|
2469
|
+
case "com.amazonaws.kendra#ValidationException":
|
|
2470
|
+
response = {
|
|
2471
|
+
...(await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context)),
|
|
2472
|
+
name: errorCode,
|
|
2473
|
+
$metadata: deserializeMetadata(output),
|
|
2474
|
+
};
|
|
2475
|
+
break;
|
|
2476
|
+
default:
|
|
2477
|
+
const parsedBody = parsedOutput.body;
|
|
2478
|
+
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
2479
|
+
response = {
|
|
2480
|
+
...parsedBody,
|
|
2481
|
+
name: `${errorCode}`,
|
|
2482
|
+
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
2483
|
+
$fault: "client",
|
|
2484
|
+
$metadata: deserializeMetadata(output),
|
|
2485
|
+
};
|
|
2486
|
+
}
|
|
2487
|
+
const message = response.message || response.Message || errorCode;
|
|
2488
|
+
response.message = message;
|
|
2489
|
+
delete response.Message;
|
|
2490
|
+
return Promise.reject(Object.assign(new Error(message), response));
|
|
2491
|
+
};
|
|
2492
|
+
const deserializeAws_json1_1DescribeIndexCommand = async (output, context) => {
|
|
2493
|
+
if (output.statusCode >= 300) {
|
|
2494
|
+
return deserializeAws_json1_1DescribeIndexCommandError(output, context);
|
|
2495
|
+
}
|
|
2496
|
+
const data = await parseBody(output.body, context);
|
|
2497
|
+
let contents = {};
|
|
2498
|
+
contents = deserializeAws_json1_1DescribeIndexResponse(data, context);
|
|
2499
|
+
const response = {
|
|
2500
|
+
$metadata: deserializeMetadata(output),
|
|
2501
|
+
...contents,
|
|
2502
|
+
};
|
|
2503
|
+
return Promise.resolve(response);
|
|
2504
|
+
};
|
|
2505
|
+
exports.deserializeAws_json1_1DescribeIndexCommand = deserializeAws_json1_1DescribeIndexCommand;
|
|
2506
|
+
const deserializeAws_json1_1DescribeIndexCommandError = async (output, context) => {
|
|
2507
|
+
const parsedOutput = {
|
|
2508
|
+
...output,
|
|
2509
|
+
body: await parseBody(output.body, context),
|
|
2510
|
+
};
|
|
2511
|
+
let response;
|
|
2512
|
+
let errorCode = "UnknownError";
|
|
2513
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2514
|
+
switch (errorCode) {
|
|
2515
|
+
case "AccessDeniedException":
|
|
2516
|
+
case "com.amazonaws.kendra#AccessDeniedException":
|
|
2517
|
+
response = {
|
|
2518
|
+
...(await deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context)),
|
|
2519
|
+
name: errorCode,
|
|
2520
|
+
$metadata: deserializeMetadata(output),
|
|
2521
|
+
};
|
|
2522
|
+
break;
|
|
2523
|
+
case "InternalServerException":
|
|
2524
|
+
case "com.amazonaws.kendra#InternalServerException":
|
|
2525
|
+
response = {
|
|
2526
|
+
...(await deserializeAws_json1_1InternalServerExceptionResponse(parsedOutput, context)),
|
|
2527
|
+
name: errorCode,
|
|
2528
|
+
$metadata: deserializeMetadata(output),
|
|
2529
|
+
};
|
|
2530
|
+
break;
|
|
2531
|
+
case "ResourceNotFoundException":
|
|
2532
|
+
case "com.amazonaws.kendra#ResourceNotFoundException":
|
|
2533
|
+
response = {
|
|
2534
|
+
...(await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
2535
|
+
name: errorCode,
|
|
2536
|
+
$metadata: deserializeMetadata(output),
|
|
2537
|
+
};
|
|
2538
|
+
break;
|
|
2539
|
+
case "ThrottlingException":
|
|
2540
|
+
case "com.amazonaws.kendra#ThrottlingException":
|
|
2541
|
+
response = {
|
|
2542
|
+
...(await deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context)),
|
|
2543
|
+
name: errorCode,
|
|
2544
|
+
$metadata: deserializeMetadata(output),
|
|
2545
|
+
};
|
|
2546
|
+
break;
|
|
2547
|
+
case "ValidationException":
|
|
2548
|
+
case "com.amazonaws.kendra#ValidationException":
|
|
2549
|
+
response = {
|
|
2550
|
+
...(await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context)),
|
|
2551
|
+
name: errorCode,
|
|
2552
|
+
$metadata: deserializeMetadata(output),
|
|
2553
|
+
};
|
|
2554
|
+
break;
|
|
2555
|
+
default:
|
|
2556
|
+
const parsedBody = parsedOutput.body;
|
|
2557
|
+
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
2558
|
+
response = {
|
|
2559
|
+
...parsedBody,
|
|
2560
|
+
name: `${errorCode}`,
|
|
2561
|
+
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
2562
|
+
$fault: "client",
|
|
2563
|
+
$metadata: deserializeMetadata(output),
|
|
2564
|
+
};
|
|
2565
|
+
}
|
|
2566
|
+
const message = response.message || response.Message || errorCode;
|
|
2567
|
+
response.message = message;
|
|
2568
|
+
delete response.Message;
|
|
2569
|
+
return Promise.reject(Object.assign(new Error(message), response));
|
|
2570
|
+
};
|
|
2571
|
+
const deserializeAws_json1_1DescribePrincipalMappingCommand = async (output, context) => {
|
|
2572
|
+
if (output.statusCode >= 300) {
|
|
2573
|
+
return deserializeAws_json1_1DescribePrincipalMappingCommandError(output, context);
|
|
2574
|
+
}
|
|
2575
|
+
const data = await parseBody(output.body, context);
|
|
2576
|
+
let contents = {};
|
|
2577
|
+
contents = deserializeAws_json1_1DescribePrincipalMappingResponse(data, context);
|
|
2578
|
+
const response = {
|
|
2579
|
+
$metadata: deserializeMetadata(output),
|
|
2580
|
+
...contents,
|
|
2581
|
+
};
|
|
2582
|
+
return Promise.resolve(response);
|
|
2583
|
+
};
|
|
2584
|
+
exports.deserializeAws_json1_1DescribePrincipalMappingCommand = deserializeAws_json1_1DescribePrincipalMappingCommand;
|
|
2585
|
+
const deserializeAws_json1_1DescribePrincipalMappingCommandError = async (output, context) => {
|
|
2586
|
+
const parsedOutput = {
|
|
2587
|
+
...output,
|
|
2588
|
+
body: await parseBody(output.body, context),
|
|
2589
|
+
};
|
|
2590
|
+
let response;
|
|
2591
|
+
let errorCode = "UnknownError";
|
|
2592
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2593
|
+
switch (errorCode) {
|
|
2594
|
+
case "AccessDeniedException":
|
|
2595
|
+
case "com.amazonaws.kendra#AccessDeniedException":
|
|
2596
|
+
response = {
|
|
2597
|
+
...(await deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context)),
|
|
2598
|
+
name: errorCode,
|
|
2599
|
+
$metadata: deserializeMetadata(output),
|
|
2600
|
+
};
|
|
2601
|
+
break;
|
|
2602
|
+
case "InternalServerException":
|
|
2603
|
+
case "com.amazonaws.kendra#InternalServerException":
|
|
2604
|
+
response = {
|
|
2605
|
+
...(await deserializeAws_json1_1InternalServerExceptionResponse(parsedOutput, context)),
|
|
2606
|
+
name: errorCode,
|
|
2607
|
+
$metadata: deserializeMetadata(output),
|
|
2608
|
+
};
|
|
2609
|
+
break;
|
|
2610
|
+
case "ResourceNotFoundException":
|
|
2611
|
+
case "com.amazonaws.kendra#ResourceNotFoundException":
|
|
2612
|
+
response = {
|
|
2613
|
+
...(await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
2614
|
+
name: errorCode,
|
|
2615
|
+
$metadata: deserializeMetadata(output),
|
|
2616
|
+
};
|
|
2617
|
+
break;
|
|
2618
|
+
case "ThrottlingException":
|
|
2619
|
+
case "com.amazonaws.kendra#ThrottlingException":
|
|
2620
|
+
response = {
|
|
2621
|
+
...(await deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context)),
|
|
2622
|
+
name: errorCode,
|
|
2623
|
+
$metadata: deserializeMetadata(output),
|
|
2624
|
+
};
|
|
2625
|
+
break;
|
|
2626
|
+
case "ValidationException":
|
|
2627
|
+
case "com.amazonaws.kendra#ValidationException":
|
|
2628
|
+
response = {
|
|
2629
|
+
...(await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context)),
|
|
2630
|
+
name: errorCode,
|
|
2631
|
+
$metadata: deserializeMetadata(output),
|
|
2632
|
+
};
|
|
2633
|
+
break;
|
|
2634
|
+
default:
|
|
2635
|
+
const parsedBody = parsedOutput.body;
|
|
2636
|
+
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
2637
|
+
response = {
|
|
2638
|
+
...parsedBody,
|
|
2639
|
+
name: `${errorCode}`,
|
|
2640
|
+
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
2641
|
+
$fault: "client",
|
|
2642
|
+
$metadata: deserializeMetadata(output),
|
|
2643
|
+
};
|
|
2644
|
+
}
|
|
2645
|
+
const message = response.message || response.Message || errorCode;
|
|
2646
|
+
response.message = message;
|
|
2647
|
+
delete response.Message;
|
|
2648
|
+
return Promise.reject(Object.assign(new Error(message), response));
|
|
2649
|
+
};
|
|
2650
|
+
const deserializeAws_json1_1DescribeQuerySuggestionsBlockListCommand = async (output, context) => {
|
|
2651
|
+
if (output.statusCode >= 300) {
|
|
2652
|
+
return deserializeAws_json1_1DescribeQuerySuggestionsBlockListCommandError(output, context);
|
|
1613
2653
|
}
|
|
1614
|
-
await
|
|
2654
|
+
const data = await parseBody(output.body, context);
|
|
2655
|
+
let contents = {};
|
|
2656
|
+
contents = deserializeAws_json1_1DescribeQuerySuggestionsBlockListResponse(data, context);
|
|
1615
2657
|
const response = {
|
|
1616
2658
|
$metadata: deserializeMetadata(output),
|
|
2659
|
+
...contents,
|
|
1617
2660
|
};
|
|
1618
2661
|
return Promise.resolve(response);
|
|
1619
2662
|
};
|
|
1620
|
-
exports.
|
|
1621
|
-
const
|
|
2663
|
+
exports.deserializeAws_json1_1DescribeQuerySuggestionsBlockListCommand = deserializeAws_json1_1DescribeQuerySuggestionsBlockListCommand;
|
|
2664
|
+
const deserializeAws_json1_1DescribeQuerySuggestionsBlockListCommandError = async (output, context) => {
|
|
1622
2665
|
const parsedOutput = {
|
|
1623
2666
|
...output,
|
|
1624
2667
|
body: await parseBody(output.body, context),
|
|
@@ -1635,14 +2678,6 @@ const deserializeAws_json1_1DeleteQuerySuggestionsBlockListCommandError = async
|
|
|
1635
2678
|
$metadata: deserializeMetadata(output),
|
|
1636
2679
|
};
|
|
1637
2680
|
break;
|
|
1638
|
-
case "ConflictException":
|
|
1639
|
-
case "com.amazonaws.kendra#ConflictException":
|
|
1640
|
-
response = {
|
|
1641
|
-
...(await deserializeAws_json1_1ConflictExceptionResponse(parsedOutput, context)),
|
|
1642
|
-
name: errorCode,
|
|
1643
|
-
$metadata: deserializeMetadata(output),
|
|
1644
|
-
};
|
|
1645
|
-
break;
|
|
1646
2681
|
case "InternalServerException":
|
|
1647
2682
|
case "com.amazonaws.kendra#InternalServerException":
|
|
1648
2683
|
response = {
|
|
@@ -1691,18 +2726,21 @@ const deserializeAws_json1_1DeleteQuerySuggestionsBlockListCommandError = async
|
|
|
1691
2726
|
delete response.Message;
|
|
1692
2727
|
return Promise.reject(Object.assign(new Error(message), response));
|
|
1693
2728
|
};
|
|
1694
|
-
const
|
|
2729
|
+
const deserializeAws_json1_1DescribeQuerySuggestionsConfigCommand = async (output, context) => {
|
|
1695
2730
|
if (output.statusCode >= 300) {
|
|
1696
|
-
return
|
|
2731
|
+
return deserializeAws_json1_1DescribeQuerySuggestionsConfigCommandError(output, context);
|
|
1697
2732
|
}
|
|
1698
|
-
await
|
|
2733
|
+
const data = await parseBody(output.body, context);
|
|
2734
|
+
let contents = {};
|
|
2735
|
+
contents = deserializeAws_json1_1DescribeQuerySuggestionsConfigResponse(data, context);
|
|
1699
2736
|
const response = {
|
|
1700
2737
|
$metadata: deserializeMetadata(output),
|
|
2738
|
+
...contents,
|
|
1701
2739
|
};
|
|
1702
2740
|
return Promise.resolve(response);
|
|
1703
2741
|
};
|
|
1704
|
-
exports.
|
|
1705
|
-
const
|
|
2742
|
+
exports.deserializeAws_json1_1DescribeQuerySuggestionsConfigCommand = deserializeAws_json1_1DescribeQuerySuggestionsConfigCommand;
|
|
2743
|
+
const deserializeAws_json1_1DescribeQuerySuggestionsConfigCommandError = async (output, context) => {
|
|
1706
2744
|
const parsedOutput = {
|
|
1707
2745
|
...output,
|
|
1708
2746
|
body: await parseBody(output.body, context),
|
|
@@ -1719,14 +2757,6 @@ const deserializeAws_json1_1DeleteThesaurusCommandError = async (output, context
|
|
|
1719
2757
|
$metadata: deserializeMetadata(output),
|
|
1720
2758
|
};
|
|
1721
2759
|
break;
|
|
1722
|
-
case "ConflictException":
|
|
1723
|
-
case "com.amazonaws.kendra#ConflictException":
|
|
1724
|
-
response = {
|
|
1725
|
-
...(await deserializeAws_json1_1ConflictExceptionResponse(parsedOutput, context)),
|
|
1726
|
-
name: errorCode,
|
|
1727
|
-
$metadata: deserializeMetadata(output),
|
|
1728
|
-
};
|
|
1729
|
-
break;
|
|
1730
2760
|
case "InternalServerException":
|
|
1731
2761
|
case "com.amazonaws.kendra#InternalServerException":
|
|
1732
2762
|
response = {
|
|
@@ -1775,21 +2805,21 @@ const deserializeAws_json1_1DeleteThesaurusCommandError = async (output, context
|
|
|
1775
2805
|
delete response.Message;
|
|
1776
2806
|
return Promise.reject(Object.assign(new Error(message), response));
|
|
1777
2807
|
};
|
|
1778
|
-
const
|
|
2808
|
+
const deserializeAws_json1_1DescribeThesaurusCommand = async (output, context) => {
|
|
1779
2809
|
if (output.statusCode >= 300) {
|
|
1780
|
-
return
|
|
2810
|
+
return deserializeAws_json1_1DescribeThesaurusCommandError(output, context);
|
|
1781
2811
|
}
|
|
1782
2812
|
const data = await parseBody(output.body, context);
|
|
1783
2813
|
let contents = {};
|
|
1784
|
-
contents =
|
|
2814
|
+
contents = deserializeAws_json1_1DescribeThesaurusResponse(data, context);
|
|
1785
2815
|
const response = {
|
|
1786
2816
|
$metadata: deserializeMetadata(output),
|
|
1787
2817
|
...contents,
|
|
1788
2818
|
};
|
|
1789
2819
|
return Promise.resolve(response);
|
|
1790
2820
|
};
|
|
1791
|
-
exports.
|
|
1792
|
-
const
|
|
2821
|
+
exports.deserializeAws_json1_1DescribeThesaurusCommand = deserializeAws_json1_1DescribeThesaurusCommand;
|
|
2822
|
+
const deserializeAws_json1_1DescribeThesaurusCommandError = async (output, context) => {
|
|
1793
2823
|
const parsedOutput = {
|
|
1794
2824
|
...output,
|
|
1795
2825
|
body: await parseBody(output.body, context),
|
|
@@ -1854,21 +2884,21 @@ const deserializeAws_json1_1DescribeDataSourceCommandError = async (output, cont
|
|
|
1854
2884
|
delete response.Message;
|
|
1855
2885
|
return Promise.reject(Object.assign(new Error(message), response));
|
|
1856
2886
|
};
|
|
1857
|
-
const
|
|
2887
|
+
const deserializeAws_json1_1DisassociateEntitiesFromExperienceCommand = async (output, context) => {
|
|
1858
2888
|
if (output.statusCode >= 300) {
|
|
1859
|
-
return
|
|
2889
|
+
return deserializeAws_json1_1DisassociateEntitiesFromExperienceCommandError(output, context);
|
|
1860
2890
|
}
|
|
1861
2891
|
const data = await parseBody(output.body, context);
|
|
1862
2892
|
let contents = {};
|
|
1863
|
-
contents =
|
|
2893
|
+
contents = deserializeAws_json1_1DisassociateEntitiesFromExperienceResponse(data, context);
|
|
1864
2894
|
const response = {
|
|
1865
2895
|
$metadata: deserializeMetadata(output),
|
|
1866
2896
|
...contents,
|
|
1867
2897
|
};
|
|
1868
2898
|
return Promise.resolve(response);
|
|
1869
2899
|
};
|
|
1870
|
-
exports.
|
|
1871
|
-
const
|
|
2900
|
+
exports.deserializeAws_json1_1DisassociateEntitiesFromExperienceCommand = deserializeAws_json1_1DisassociateEntitiesFromExperienceCommand;
|
|
2901
|
+
const deserializeAws_json1_1DisassociateEntitiesFromExperienceCommandError = async (output, context) => {
|
|
1872
2902
|
const parsedOutput = {
|
|
1873
2903
|
...output,
|
|
1874
2904
|
body: await parseBody(output.body, context),
|
|
@@ -1933,21 +2963,21 @@ const deserializeAws_json1_1DescribeFaqCommandError = async (output, context) =>
|
|
|
1933
2963
|
delete response.Message;
|
|
1934
2964
|
return Promise.reject(Object.assign(new Error(message), response));
|
|
1935
2965
|
};
|
|
1936
|
-
const
|
|
2966
|
+
const deserializeAws_json1_1DisassociatePersonasFromEntitiesCommand = async (output, context) => {
|
|
1937
2967
|
if (output.statusCode >= 300) {
|
|
1938
|
-
return
|
|
2968
|
+
return deserializeAws_json1_1DisassociatePersonasFromEntitiesCommandError(output, context);
|
|
1939
2969
|
}
|
|
1940
2970
|
const data = await parseBody(output.body, context);
|
|
1941
2971
|
let contents = {};
|
|
1942
|
-
contents =
|
|
2972
|
+
contents = deserializeAws_json1_1DisassociatePersonasFromEntitiesResponse(data, context);
|
|
1943
2973
|
const response = {
|
|
1944
2974
|
$metadata: deserializeMetadata(output),
|
|
1945
2975
|
...contents,
|
|
1946
2976
|
};
|
|
1947
2977
|
return Promise.resolve(response);
|
|
1948
2978
|
};
|
|
1949
|
-
exports.
|
|
1950
|
-
const
|
|
2979
|
+
exports.deserializeAws_json1_1DisassociatePersonasFromEntitiesCommand = deserializeAws_json1_1DisassociatePersonasFromEntitiesCommand;
|
|
2980
|
+
const deserializeAws_json1_1DisassociatePersonasFromEntitiesCommandError = async (output, context) => {
|
|
1951
2981
|
const parsedOutput = {
|
|
1952
2982
|
...output,
|
|
1953
2983
|
body: await parseBody(output.body, context),
|
|
@@ -2012,21 +3042,21 @@ const deserializeAws_json1_1DescribeIndexCommandError = async (output, context)
|
|
|
2012
3042
|
delete response.Message;
|
|
2013
3043
|
return Promise.reject(Object.assign(new Error(message), response));
|
|
2014
3044
|
};
|
|
2015
|
-
const
|
|
3045
|
+
const deserializeAws_json1_1GetQuerySuggestionsCommand = async (output, context) => {
|
|
2016
3046
|
if (output.statusCode >= 300) {
|
|
2017
|
-
return
|
|
3047
|
+
return deserializeAws_json1_1GetQuerySuggestionsCommandError(output, context);
|
|
2018
3048
|
}
|
|
2019
3049
|
const data = await parseBody(output.body, context);
|
|
2020
3050
|
let contents = {};
|
|
2021
|
-
contents =
|
|
3051
|
+
contents = deserializeAws_json1_1GetQuerySuggestionsResponse(data, context);
|
|
2022
3052
|
const response = {
|
|
2023
3053
|
$metadata: deserializeMetadata(output),
|
|
2024
3054
|
...contents,
|
|
2025
3055
|
};
|
|
2026
3056
|
return Promise.resolve(response);
|
|
2027
3057
|
};
|
|
2028
|
-
exports.
|
|
2029
|
-
const
|
|
3058
|
+
exports.deserializeAws_json1_1GetQuerySuggestionsCommand = deserializeAws_json1_1GetQuerySuggestionsCommand;
|
|
3059
|
+
const deserializeAws_json1_1GetQuerySuggestionsCommandError = async (output, context) => {
|
|
2030
3060
|
const parsedOutput = {
|
|
2031
3061
|
...output,
|
|
2032
3062
|
body: await parseBody(output.body, context),
|
|
@@ -2043,6 +3073,14 @@ const deserializeAws_json1_1DescribePrincipalMappingCommandError = async (output
|
|
|
2043
3073
|
$metadata: deserializeMetadata(output),
|
|
2044
3074
|
};
|
|
2045
3075
|
break;
|
|
3076
|
+
case "ConflictException":
|
|
3077
|
+
case "com.amazonaws.kendra#ConflictException":
|
|
3078
|
+
response = {
|
|
3079
|
+
...(await deserializeAws_json1_1ConflictExceptionResponse(parsedOutput, context)),
|
|
3080
|
+
name: errorCode,
|
|
3081
|
+
$metadata: deserializeMetadata(output),
|
|
3082
|
+
};
|
|
3083
|
+
break;
|
|
2046
3084
|
case "InternalServerException":
|
|
2047
3085
|
case "com.amazonaws.kendra#InternalServerException":
|
|
2048
3086
|
response = {
|
|
@@ -2059,6 +3097,14 @@ const deserializeAws_json1_1DescribePrincipalMappingCommandError = async (output
|
|
|
2059
3097
|
$metadata: deserializeMetadata(output),
|
|
2060
3098
|
};
|
|
2061
3099
|
break;
|
|
3100
|
+
case "ServiceQuotaExceededException":
|
|
3101
|
+
case "com.amazonaws.kendra#ServiceQuotaExceededException":
|
|
3102
|
+
response = {
|
|
3103
|
+
...(await deserializeAws_json1_1ServiceQuotaExceededExceptionResponse(parsedOutput, context)),
|
|
3104
|
+
name: errorCode,
|
|
3105
|
+
$metadata: deserializeMetadata(output),
|
|
3106
|
+
};
|
|
3107
|
+
break;
|
|
2062
3108
|
case "ThrottlingException":
|
|
2063
3109
|
case "com.amazonaws.kendra#ThrottlingException":
|
|
2064
3110
|
response = {
|
|
@@ -2091,21 +3137,21 @@ const deserializeAws_json1_1DescribePrincipalMappingCommandError = async (output
|
|
|
2091
3137
|
delete response.Message;
|
|
2092
3138
|
return Promise.reject(Object.assign(new Error(message), response));
|
|
2093
3139
|
};
|
|
2094
|
-
const
|
|
3140
|
+
const deserializeAws_json1_1GetSnapshotsCommand = async (output, context) => {
|
|
2095
3141
|
if (output.statusCode >= 300) {
|
|
2096
|
-
return
|
|
3142
|
+
return deserializeAws_json1_1GetSnapshotsCommandError(output, context);
|
|
2097
3143
|
}
|
|
2098
3144
|
const data = await parseBody(output.body, context);
|
|
2099
3145
|
let contents = {};
|
|
2100
|
-
contents =
|
|
3146
|
+
contents = deserializeAws_json1_1GetSnapshotsResponse(data, context);
|
|
2101
3147
|
const response = {
|
|
2102
3148
|
$metadata: deserializeMetadata(output),
|
|
2103
3149
|
...contents,
|
|
2104
3150
|
};
|
|
2105
3151
|
return Promise.resolve(response);
|
|
2106
3152
|
};
|
|
2107
|
-
exports.
|
|
2108
|
-
const
|
|
3153
|
+
exports.deserializeAws_json1_1GetSnapshotsCommand = deserializeAws_json1_1GetSnapshotsCommand;
|
|
3154
|
+
const deserializeAws_json1_1GetSnapshotsCommandError = async (output, context) => {
|
|
2109
3155
|
const parsedOutput = {
|
|
2110
3156
|
...output,
|
|
2111
3157
|
body: await parseBody(output.body, context),
|
|
@@ -2130,26 +3176,18 @@ const deserializeAws_json1_1DescribeQuerySuggestionsBlockListCommandError = asyn
|
|
|
2130
3176
|
$metadata: deserializeMetadata(output),
|
|
2131
3177
|
};
|
|
2132
3178
|
break;
|
|
2133
|
-
case "
|
|
2134
|
-
case "com.amazonaws.kendra#
|
|
2135
|
-
response = {
|
|
2136
|
-
...(await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
2137
|
-
name: errorCode,
|
|
2138
|
-
$metadata: deserializeMetadata(output),
|
|
2139
|
-
};
|
|
2140
|
-
break;
|
|
2141
|
-
case "ThrottlingException":
|
|
2142
|
-
case "com.amazonaws.kendra#ThrottlingException":
|
|
3179
|
+
case "InvalidRequestException":
|
|
3180
|
+
case "com.amazonaws.kendra#InvalidRequestException":
|
|
2143
3181
|
response = {
|
|
2144
|
-
...(await
|
|
3182
|
+
...(await deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context)),
|
|
2145
3183
|
name: errorCode,
|
|
2146
3184
|
$metadata: deserializeMetadata(output),
|
|
2147
3185
|
};
|
|
2148
3186
|
break;
|
|
2149
|
-
case "
|
|
2150
|
-
case "com.amazonaws.kendra#
|
|
3187
|
+
case "ResourceNotFoundException":
|
|
3188
|
+
case "com.amazonaws.kendra#ResourceNotFoundException":
|
|
2151
3189
|
response = {
|
|
2152
|
-
...(await
|
|
3190
|
+
...(await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
2153
3191
|
name: errorCode,
|
|
2154
3192
|
$metadata: deserializeMetadata(output),
|
|
2155
3193
|
};
|
|
@@ -2170,21 +3208,21 @@ const deserializeAws_json1_1DescribeQuerySuggestionsBlockListCommandError = asyn
|
|
|
2170
3208
|
delete response.Message;
|
|
2171
3209
|
return Promise.reject(Object.assign(new Error(message), response));
|
|
2172
3210
|
};
|
|
2173
|
-
const
|
|
3211
|
+
const deserializeAws_json1_1ListDataSourcesCommand = async (output, context) => {
|
|
2174
3212
|
if (output.statusCode >= 300) {
|
|
2175
|
-
return
|
|
3213
|
+
return deserializeAws_json1_1ListDataSourcesCommandError(output, context);
|
|
2176
3214
|
}
|
|
2177
3215
|
const data = await parseBody(output.body, context);
|
|
2178
3216
|
let contents = {};
|
|
2179
|
-
contents =
|
|
3217
|
+
contents = deserializeAws_json1_1ListDataSourcesResponse(data, context);
|
|
2180
3218
|
const response = {
|
|
2181
3219
|
$metadata: deserializeMetadata(output),
|
|
2182
3220
|
...contents,
|
|
2183
3221
|
};
|
|
2184
3222
|
return Promise.resolve(response);
|
|
2185
3223
|
};
|
|
2186
|
-
exports.
|
|
2187
|
-
const
|
|
3224
|
+
exports.deserializeAws_json1_1ListDataSourcesCommand = deserializeAws_json1_1ListDataSourcesCommand;
|
|
3225
|
+
const deserializeAws_json1_1ListDataSourcesCommandError = async (output, context) => {
|
|
2188
3226
|
const parsedOutput = {
|
|
2189
3227
|
...output,
|
|
2190
3228
|
body: await parseBody(output.body, context),
|
|
@@ -2249,21 +3287,21 @@ const deserializeAws_json1_1DescribeQuerySuggestionsConfigCommandError = async (
|
|
|
2249
3287
|
delete response.Message;
|
|
2250
3288
|
return Promise.reject(Object.assign(new Error(message), response));
|
|
2251
3289
|
};
|
|
2252
|
-
const
|
|
3290
|
+
const deserializeAws_json1_1ListDataSourceSyncJobsCommand = async (output, context) => {
|
|
2253
3291
|
if (output.statusCode >= 300) {
|
|
2254
|
-
return
|
|
3292
|
+
return deserializeAws_json1_1ListDataSourceSyncJobsCommandError(output, context);
|
|
2255
3293
|
}
|
|
2256
3294
|
const data = await parseBody(output.body, context);
|
|
2257
3295
|
let contents = {};
|
|
2258
|
-
contents =
|
|
3296
|
+
contents = deserializeAws_json1_1ListDataSourceSyncJobsResponse(data, context);
|
|
2259
3297
|
const response = {
|
|
2260
3298
|
$metadata: deserializeMetadata(output),
|
|
2261
3299
|
...contents,
|
|
2262
3300
|
};
|
|
2263
3301
|
return Promise.resolve(response);
|
|
2264
3302
|
};
|
|
2265
|
-
exports.
|
|
2266
|
-
const
|
|
3303
|
+
exports.deserializeAws_json1_1ListDataSourceSyncJobsCommand = deserializeAws_json1_1ListDataSourceSyncJobsCommand;
|
|
3304
|
+
const deserializeAws_json1_1ListDataSourceSyncJobsCommandError = async (output, context) => {
|
|
2267
3305
|
const parsedOutput = {
|
|
2268
3306
|
...output,
|
|
2269
3307
|
body: await parseBody(output.body, context),
|
|
@@ -2280,6 +3318,14 @@ const deserializeAws_json1_1DescribeThesaurusCommandError = async (output, conte
|
|
|
2280
3318
|
$metadata: deserializeMetadata(output),
|
|
2281
3319
|
};
|
|
2282
3320
|
break;
|
|
3321
|
+
case "ConflictException":
|
|
3322
|
+
case "com.amazonaws.kendra#ConflictException":
|
|
3323
|
+
response = {
|
|
3324
|
+
...(await deserializeAws_json1_1ConflictExceptionResponse(parsedOutput, context)),
|
|
3325
|
+
name: errorCode,
|
|
3326
|
+
$metadata: deserializeMetadata(output),
|
|
3327
|
+
};
|
|
3328
|
+
break;
|
|
2283
3329
|
case "InternalServerException":
|
|
2284
3330
|
case "com.amazonaws.kendra#InternalServerException":
|
|
2285
3331
|
response = {
|
|
@@ -2328,21 +3374,21 @@ const deserializeAws_json1_1DescribeThesaurusCommandError = async (output, conte
|
|
|
2328
3374
|
delete response.Message;
|
|
2329
3375
|
return Promise.reject(Object.assign(new Error(message), response));
|
|
2330
3376
|
};
|
|
2331
|
-
const
|
|
3377
|
+
const deserializeAws_json1_1ListEntityPersonasCommand = async (output, context) => {
|
|
2332
3378
|
if (output.statusCode >= 300) {
|
|
2333
|
-
return
|
|
3379
|
+
return deserializeAws_json1_1ListEntityPersonasCommandError(output, context);
|
|
2334
3380
|
}
|
|
2335
3381
|
const data = await parseBody(output.body, context);
|
|
2336
3382
|
let contents = {};
|
|
2337
|
-
contents =
|
|
3383
|
+
contents = deserializeAws_json1_1ListEntityPersonasResponse(data, context);
|
|
2338
3384
|
const response = {
|
|
2339
3385
|
$metadata: deserializeMetadata(output),
|
|
2340
3386
|
...contents,
|
|
2341
3387
|
};
|
|
2342
3388
|
return Promise.resolve(response);
|
|
2343
3389
|
};
|
|
2344
|
-
exports.
|
|
2345
|
-
const
|
|
3390
|
+
exports.deserializeAws_json1_1ListEntityPersonasCommand = deserializeAws_json1_1ListEntityPersonasCommand;
|
|
3391
|
+
const deserializeAws_json1_1ListEntityPersonasCommandError = async (output, context) => {
|
|
2346
3392
|
const parsedOutput = {
|
|
2347
3393
|
...output,
|
|
2348
3394
|
body: await parseBody(output.body, context),
|
|
@@ -2359,14 +3405,6 @@ const deserializeAws_json1_1GetQuerySuggestionsCommandError = async (output, con
|
|
|
2359
3405
|
$metadata: deserializeMetadata(output),
|
|
2360
3406
|
};
|
|
2361
3407
|
break;
|
|
2362
|
-
case "ConflictException":
|
|
2363
|
-
case "com.amazonaws.kendra#ConflictException":
|
|
2364
|
-
response = {
|
|
2365
|
-
...(await deserializeAws_json1_1ConflictExceptionResponse(parsedOutput, context)),
|
|
2366
|
-
name: errorCode,
|
|
2367
|
-
$metadata: deserializeMetadata(output),
|
|
2368
|
-
};
|
|
2369
|
-
break;
|
|
2370
3408
|
case "InternalServerException":
|
|
2371
3409
|
case "com.amazonaws.kendra#InternalServerException":
|
|
2372
3410
|
response = {
|
|
@@ -2383,14 +3421,6 @@ const deserializeAws_json1_1GetQuerySuggestionsCommandError = async (output, con
|
|
|
2383
3421
|
$metadata: deserializeMetadata(output),
|
|
2384
3422
|
};
|
|
2385
3423
|
break;
|
|
2386
|
-
case "ServiceQuotaExceededException":
|
|
2387
|
-
case "com.amazonaws.kendra#ServiceQuotaExceededException":
|
|
2388
|
-
response = {
|
|
2389
|
-
...(await deserializeAws_json1_1ServiceQuotaExceededExceptionResponse(parsedOutput, context)),
|
|
2390
|
-
name: errorCode,
|
|
2391
|
-
$metadata: deserializeMetadata(output),
|
|
2392
|
-
};
|
|
2393
|
-
break;
|
|
2394
3424
|
case "ThrottlingException":
|
|
2395
3425
|
case "com.amazonaws.kendra#ThrottlingException":
|
|
2396
3426
|
response = {
|
|
@@ -2423,21 +3453,21 @@ const deserializeAws_json1_1GetQuerySuggestionsCommandError = async (output, con
|
|
|
2423
3453
|
delete response.Message;
|
|
2424
3454
|
return Promise.reject(Object.assign(new Error(message), response));
|
|
2425
3455
|
};
|
|
2426
|
-
const
|
|
3456
|
+
const deserializeAws_json1_1ListExperienceEntitiesCommand = async (output, context) => {
|
|
2427
3457
|
if (output.statusCode >= 300) {
|
|
2428
|
-
return
|
|
3458
|
+
return deserializeAws_json1_1ListExperienceEntitiesCommandError(output, context);
|
|
2429
3459
|
}
|
|
2430
3460
|
const data = await parseBody(output.body, context);
|
|
2431
3461
|
let contents = {};
|
|
2432
|
-
contents =
|
|
3462
|
+
contents = deserializeAws_json1_1ListExperienceEntitiesResponse(data, context);
|
|
2433
3463
|
const response = {
|
|
2434
3464
|
$metadata: deserializeMetadata(output),
|
|
2435
3465
|
...contents,
|
|
2436
3466
|
};
|
|
2437
3467
|
return Promise.resolve(response);
|
|
2438
3468
|
};
|
|
2439
|
-
exports.
|
|
2440
|
-
const
|
|
3469
|
+
exports.deserializeAws_json1_1ListExperienceEntitiesCommand = deserializeAws_json1_1ListExperienceEntitiesCommand;
|
|
3470
|
+
const deserializeAws_json1_1ListExperienceEntitiesCommandError = async (output, context) => {
|
|
2441
3471
|
const parsedOutput = {
|
|
2442
3472
|
...output,
|
|
2443
3473
|
body: await parseBody(output.body, context),
|
|
@@ -2502,21 +3532,21 @@ const deserializeAws_json1_1ListDataSourcesCommandError = async (output, context
|
|
|
2502
3532
|
delete response.Message;
|
|
2503
3533
|
return Promise.reject(Object.assign(new Error(message), response));
|
|
2504
3534
|
};
|
|
2505
|
-
const
|
|
3535
|
+
const deserializeAws_json1_1ListExperiencesCommand = async (output, context) => {
|
|
2506
3536
|
if (output.statusCode >= 300) {
|
|
2507
|
-
return
|
|
3537
|
+
return deserializeAws_json1_1ListExperiencesCommandError(output, context);
|
|
2508
3538
|
}
|
|
2509
3539
|
const data = await parseBody(output.body, context);
|
|
2510
3540
|
let contents = {};
|
|
2511
|
-
contents =
|
|
3541
|
+
contents = deserializeAws_json1_1ListExperiencesResponse(data, context);
|
|
2512
3542
|
const response = {
|
|
2513
3543
|
$metadata: deserializeMetadata(output),
|
|
2514
3544
|
...contents,
|
|
2515
3545
|
};
|
|
2516
3546
|
return Promise.resolve(response);
|
|
2517
3547
|
};
|
|
2518
|
-
exports.
|
|
2519
|
-
const
|
|
3548
|
+
exports.deserializeAws_json1_1ListExperiencesCommand = deserializeAws_json1_1ListExperiencesCommand;
|
|
3549
|
+
const deserializeAws_json1_1ListExperiencesCommandError = async (output, context) => {
|
|
2520
3550
|
const parsedOutput = {
|
|
2521
3551
|
...output,
|
|
2522
3552
|
body: await parseBody(output.body, context),
|
|
@@ -2533,14 +3563,6 @@ const deserializeAws_json1_1ListDataSourceSyncJobsCommandError = async (output,
|
|
|
2533
3563
|
$metadata: deserializeMetadata(output),
|
|
2534
3564
|
};
|
|
2535
3565
|
break;
|
|
2536
|
-
case "ConflictException":
|
|
2537
|
-
case "com.amazonaws.kendra#ConflictException":
|
|
2538
|
-
response = {
|
|
2539
|
-
...(await deserializeAws_json1_1ConflictExceptionResponse(parsedOutput, context)),
|
|
2540
|
-
name: errorCode,
|
|
2541
|
-
$metadata: deserializeMetadata(output),
|
|
2542
|
-
};
|
|
2543
|
-
break;
|
|
2544
3566
|
case "InternalServerException":
|
|
2545
3567
|
case "com.amazonaws.kendra#InternalServerException":
|
|
2546
3568
|
response = {
|
|
@@ -3421,18 +4443,105 @@ const deserializeAws_json1_1StopDataSourceSyncJobCommandError = async (output, c
|
|
|
3421
4443
|
delete response.Message;
|
|
3422
4444
|
return Promise.reject(Object.assign(new Error(message), response));
|
|
3423
4445
|
};
|
|
3424
|
-
const deserializeAws_json1_1SubmitFeedbackCommand = async (output, context) => {
|
|
4446
|
+
const deserializeAws_json1_1SubmitFeedbackCommand = async (output, context) => {
|
|
4447
|
+
if (output.statusCode >= 300) {
|
|
4448
|
+
return deserializeAws_json1_1SubmitFeedbackCommandError(output, context);
|
|
4449
|
+
}
|
|
4450
|
+
await collectBody(output.body, context);
|
|
4451
|
+
const response = {
|
|
4452
|
+
$metadata: deserializeMetadata(output),
|
|
4453
|
+
};
|
|
4454
|
+
return Promise.resolve(response);
|
|
4455
|
+
};
|
|
4456
|
+
exports.deserializeAws_json1_1SubmitFeedbackCommand = deserializeAws_json1_1SubmitFeedbackCommand;
|
|
4457
|
+
const deserializeAws_json1_1SubmitFeedbackCommandError = async (output, context) => {
|
|
4458
|
+
const parsedOutput = {
|
|
4459
|
+
...output,
|
|
4460
|
+
body: await parseBody(output.body, context),
|
|
4461
|
+
};
|
|
4462
|
+
let response;
|
|
4463
|
+
let errorCode = "UnknownError";
|
|
4464
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4465
|
+
switch (errorCode) {
|
|
4466
|
+
case "AccessDeniedException":
|
|
4467
|
+
case "com.amazonaws.kendra#AccessDeniedException":
|
|
4468
|
+
response = {
|
|
4469
|
+
...(await deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context)),
|
|
4470
|
+
name: errorCode,
|
|
4471
|
+
$metadata: deserializeMetadata(output),
|
|
4472
|
+
};
|
|
4473
|
+
break;
|
|
4474
|
+
case "InternalServerException":
|
|
4475
|
+
case "com.amazonaws.kendra#InternalServerException":
|
|
4476
|
+
response = {
|
|
4477
|
+
...(await deserializeAws_json1_1InternalServerExceptionResponse(parsedOutput, context)),
|
|
4478
|
+
name: errorCode,
|
|
4479
|
+
$metadata: deserializeMetadata(output),
|
|
4480
|
+
};
|
|
4481
|
+
break;
|
|
4482
|
+
case "ResourceNotFoundException":
|
|
4483
|
+
case "com.amazonaws.kendra#ResourceNotFoundException":
|
|
4484
|
+
response = {
|
|
4485
|
+
...(await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
4486
|
+
name: errorCode,
|
|
4487
|
+
$metadata: deserializeMetadata(output),
|
|
4488
|
+
};
|
|
4489
|
+
break;
|
|
4490
|
+
case "ResourceUnavailableException":
|
|
4491
|
+
case "com.amazonaws.kendra#ResourceUnavailableException":
|
|
4492
|
+
response = {
|
|
4493
|
+
...(await deserializeAws_json1_1ResourceUnavailableExceptionResponse(parsedOutput, context)),
|
|
4494
|
+
name: errorCode,
|
|
4495
|
+
$metadata: deserializeMetadata(output),
|
|
4496
|
+
};
|
|
4497
|
+
break;
|
|
4498
|
+
case "ThrottlingException":
|
|
4499
|
+
case "com.amazonaws.kendra#ThrottlingException":
|
|
4500
|
+
response = {
|
|
4501
|
+
...(await deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context)),
|
|
4502
|
+
name: errorCode,
|
|
4503
|
+
$metadata: deserializeMetadata(output),
|
|
4504
|
+
};
|
|
4505
|
+
break;
|
|
4506
|
+
case "ValidationException":
|
|
4507
|
+
case "com.amazonaws.kendra#ValidationException":
|
|
4508
|
+
response = {
|
|
4509
|
+
...(await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context)),
|
|
4510
|
+
name: errorCode,
|
|
4511
|
+
$metadata: deserializeMetadata(output),
|
|
4512
|
+
};
|
|
4513
|
+
break;
|
|
4514
|
+
default:
|
|
4515
|
+
const parsedBody = parsedOutput.body;
|
|
4516
|
+
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
4517
|
+
response = {
|
|
4518
|
+
...parsedBody,
|
|
4519
|
+
name: `${errorCode}`,
|
|
4520
|
+
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
4521
|
+
$fault: "client",
|
|
4522
|
+
$metadata: deserializeMetadata(output),
|
|
4523
|
+
};
|
|
4524
|
+
}
|
|
4525
|
+
const message = response.message || response.Message || errorCode;
|
|
4526
|
+
response.message = message;
|
|
4527
|
+
delete response.Message;
|
|
4528
|
+
return Promise.reject(Object.assign(new Error(message), response));
|
|
4529
|
+
};
|
|
4530
|
+
const deserializeAws_json1_1TagResourceCommand = async (output, context) => {
|
|
3425
4531
|
if (output.statusCode >= 300) {
|
|
3426
|
-
return
|
|
4532
|
+
return deserializeAws_json1_1TagResourceCommandError(output, context);
|
|
3427
4533
|
}
|
|
3428
|
-
await
|
|
4534
|
+
const data = await parseBody(output.body, context);
|
|
4535
|
+
let contents = {};
|
|
4536
|
+
contents = deserializeAws_json1_1TagResourceResponse(data, context);
|
|
3429
4537
|
const response = {
|
|
3430
4538
|
$metadata: deserializeMetadata(output),
|
|
4539
|
+
...contents,
|
|
3431
4540
|
};
|
|
3432
4541
|
return Promise.resolve(response);
|
|
3433
4542
|
};
|
|
3434
|
-
exports.
|
|
3435
|
-
const
|
|
4543
|
+
exports.deserializeAws_json1_1TagResourceCommand = deserializeAws_json1_1TagResourceCommand;
|
|
4544
|
+
const deserializeAws_json1_1TagResourceCommandError = async (output, context) => {
|
|
3436
4545
|
const parsedOutput = {
|
|
3437
4546
|
...output,
|
|
3438
4547
|
body: await parseBody(output.body, context),
|
|
@@ -3457,14 +4566,6 @@ const deserializeAws_json1_1SubmitFeedbackCommandError = async (output, context)
|
|
|
3457
4566
|
$metadata: deserializeMetadata(output),
|
|
3458
4567
|
};
|
|
3459
4568
|
break;
|
|
3460
|
-
case "ResourceNotFoundException":
|
|
3461
|
-
case "com.amazonaws.kendra#ResourceNotFoundException":
|
|
3462
|
-
response = {
|
|
3463
|
-
...(await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
3464
|
-
name: errorCode,
|
|
3465
|
-
$metadata: deserializeMetadata(output),
|
|
3466
|
-
};
|
|
3467
|
-
break;
|
|
3468
4569
|
case "ResourceUnavailableException":
|
|
3469
4570
|
case "com.amazonaws.kendra#ResourceUnavailableException":
|
|
3470
4571
|
response = {
|
|
@@ -3505,21 +4606,21 @@ const deserializeAws_json1_1SubmitFeedbackCommandError = async (output, context)
|
|
|
3505
4606
|
delete response.Message;
|
|
3506
4607
|
return Promise.reject(Object.assign(new Error(message), response));
|
|
3507
4608
|
};
|
|
3508
|
-
const
|
|
4609
|
+
const deserializeAws_json1_1UntagResourceCommand = async (output, context) => {
|
|
3509
4610
|
if (output.statusCode >= 300) {
|
|
3510
|
-
return
|
|
4611
|
+
return deserializeAws_json1_1UntagResourceCommandError(output, context);
|
|
3511
4612
|
}
|
|
3512
4613
|
const data = await parseBody(output.body, context);
|
|
3513
4614
|
let contents = {};
|
|
3514
|
-
contents =
|
|
4615
|
+
contents = deserializeAws_json1_1UntagResourceResponse(data, context);
|
|
3515
4616
|
const response = {
|
|
3516
4617
|
$metadata: deserializeMetadata(output),
|
|
3517
4618
|
...contents,
|
|
3518
4619
|
};
|
|
3519
4620
|
return Promise.resolve(response);
|
|
3520
4621
|
};
|
|
3521
|
-
exports.
|
|
3522
|
-
const
|
|
4622
|
+
exports.deserializeAws_json1_1UntagResourceCommand = deserializeAws_json1_1UntagResourceCommand;
|
|
4623
|
+
const deserializeAws_json1_1UntagResourceCommandError = async (output, context) => {
|
|
3523
4624
|
const parsedOutput = {
|
|
3524
4625
|
...output,
|
|
3525
4626
|
body: await parseBody(output.body, context),
|
|
@@ -3584,21 +4685,18 @@ const deserializeAws_json1_1TagResourceCommandError = async (output, context) =>
|
|
|
3584
4685
|
delete response.Message;
|
|
3585
4686
|
return Promise.reject(Object.assign(new Error(message), response));
|
|
3586
4687
|
};
|
|
3587
|
-
const
|
|
4688
|
+
const deserializeAws_json1_1UpdateDataSourceCommand = async (output, context) => {
|
|
3588
4689
|
if (output.statusCode >= 300) {
|
|
3589
|
-
return
|
|
4690
|
+
return deserializeAws_json1_1UpdateDataSourceCommandError(output, context);
|
|
3590
4691
|
}
|
|
3591
|
-
|
|
3592
|
-
let contents = {};
|
|
3593
|
-
contents = deserializeAws_json1_1UntagResourceResponse(data, context);
|
|
4692
|
+
await collectBody(output.body, context);
|
|
3594
4693
|
const response = {
|
|
3595
4694
|
$metadata: deserializeMetadata(output),
|
|
3596
|
-
...contents,
|
|
3597
4695
|
};
|
|
3598
4696
|
return Promise.resolve(response);
|
|
3599
4697
|
};
|
|
3600
|
-
exports.
|
|
3601
|
-
const
|
|
4698
|
+
exports.deserializeAws_json1_1UpdateDataSourceCommand = deserializeAws_json1_1UpdateDataSourceCommand;
|
|
4699
|
+
const deserializeAws_json1_1UpdateDataSourceCommandError = async (output, context) => {
|
|
3602
4700
|
const parsedOutput = {
|
|
3603
4701
|
...output,
|
|
3604
4702
|
body: await parseBody(output.body, context),
|
|
@@ -3615,6 +4713,14 @@ const deserializeAws_json1_1UntagResourceCommandError = async (output, context)
|
|
|
3615
4713
|
$metadata: deserializeMetadata(output),
|
|
3616
4714
|
};
|
|
3617
4715
|
break;
|
|
4716
|
+
case "ConflictException":
|
|
4717
|
+
case "com.amazonaws.kendra#ConflictException":
|
|
4718
|
+
response = {
|
|
4719
|
+
...(await deserializeAws_json1_1ConflictExceptionResponse(parsedOutput, context)),
|
|
4720
|
+
name: errorCode,
|
|
4721
|
+
$metadata: deserializeMetadata(output),
|
|
4722
|
+
};
|
|
4723
|
+
break;
|
|
3618
4724
|
case "InternalServerException":
|
|
3619
4725
|
case "com.amazonaws.kendra#InternalServerException":
|
|
3620
4726
|
response = {
|
|
@@ -3623,10 +4729,10 @@ const deserializeAws_json1_1UntagResourceCommandError = async (output, context)
|
|
|
3623
4729
|
$metadata: deserializeMetadata(output),
|
|
3624
4730
|
};
|
|
3625
4731
|
break;
|
|
3626
|
-
case "
|
|
3627
|
-
case "com.amazonaws.kendra#
|
|
4732
|
+
case "ResourceNotFoundException":
|
|
4733
|
+
case "com.amazonaws.kendra#ResourceNotFoundException":
|
|
3628
4734
|
response = {
|
|
3629
|
-
...(await
|
|
4735
|
+
...(await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
3630
4736
|
name: errorCode,
|
|
3631
4737
|
$metadata: deserializeMetadata(output),
|
|
3632
4738
|
};
|
|
@@ -3663,9 +4769,9 @@ const deserializeAws_json1_1UntagResourceCommandError = async (output, context)
|
|
|
3663
4769
|
delete response.Message;
|
|
3664
4770
|
return Promise.reject(Object.assign(new Error(message), response));
|
|
3665
4771
|
};
|
|
3666
|
-
const
|
|
4772
|
+
const deserializeAws_json1_1UpdateExperienceCommand = async (output, context) => {
|
|
3667
4773
|
if (output.statusCode >= 300) {
|
|
3668
|
-
return
|
|
4774
|
+
return deserializeAws_json1_1UpdateExperienceCommandError(output, context);
|
|
3669
4775
|
}
|
|
3670
4776
|
await collectBody(output.body, context);
|
|
3671
4777
|
const response = {
|
|
@@ -3673,8 +4779,8 @@ const deserializeAws_json1_1UpdateDataSourceCommand = async (output, context) =>
|
|
|
3673
4779
|
};
|
|
3674
4780
|
return Promise.resolve(response);
|
|
3675
4781
|
};
|
|
3676
|
-
exports.
|
|
3677
|
-
const
|
|
4782
|
+
exports.deserializeAws_json1_1UpdateExperienceCommand = deserializeAws_json1_1UpdateExperienceCommand;
|
|
4783
|
+
const deserializeAws_json1_1UpdateExperienceCommandError = async (output, context) => {
|
|
3678
4784
|
const parsedOutput = {
|
|
3679
4785
|
...output,
|
|
3680
4786
|
body: await parseBody(output.body, context),
|
|
@@ -4124,6 +5230,17 @@ const deserializeAws_json1_1InternalServerExceptionResponse = async (parsedOutpu
|
|
|
4124
5230
|
};
|
|
4125
5231
|
return contents;
|
|
4126
5232
|
};
|
|
5233
|
+
const deserializeAws_json1_1InvalidRequestExceptionResponse = async (parsedOutput, context) => {
|
|
5234
|
+
const body = parsedOutput.body;
|
|
5235
|
+
const deserialized = deserializeAws_json1_1InvalidRequestException(body, context);
|
|
5236
|
+
const contents = {
|
|
5237
|
+
name: "InvalidRequestException",
|
|
5238
|
+
$fault: "client",
|
|
5239
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
5240
|
+
...deserialized,
|
|
5241
|
+
};
|
|
5242
|
+
return contents;
|
|
5243
|
+
};
|
|
4127
5244
|
const deserializeAws_json1_1ResourceAlreadyExistExceptionResponse = async (parsedOutput, context) => {
|
|
4128
5245
|
const body = parsedOutput.body;
|
|
4129
5246
|
const deserialized = deserializeAws_json1_1ResourceAlreadyExistException(body, context);
|
|
@@ -4212,6 +5329,34 @@ const serializeAws_json1_1AclConfiguration = (input, context) => {
|
|
|
4212
5329
|
input.AllowedGroupsColumnName !== null && { AllowedGroupsColumnName: input.AllowedGroupsColumnName }),
|
|
4213
5330
|
};
|
|
4214
5331
|
};
|
|
5332
|
+
const serializeAws_json1_1AssociateEntitiesToExperienceRequest = (input, context) => {
|
|
5333
|
+
return {
|
|
5334
|
+
...(input.EntityList !== undefined &&
|
|
5335
|
+
input.EntityList !== null && { EntityList: serializeAws_json1_1AssociateEntityList(input.EntityList, context) }),
|
|
5336
|
+
...(input.Id !== undefined && input.Id !== null && { Id: input.Id }),
|
|
5337
|
+
...(input.IndexId !== undefined && input.IndexId !== null && { IndexId: input.IndexId }),
|
|
5338
|
+
};
|
|
5339
|
+
};
|
|
5340
|
+
const serializeAws_json1_1AssociateEntityList = (input, context) => {
|
|
5341
|
+
return input
|
|
5342
|
+
.filter((e) => e != null)
|
|
5343
|
+
.map((entry) => {
|
|
5344
|
+
if (entry === null) {
|
|
5345
|
+
return null;
|
|
5346
|
+
}
|
|
5347
|
+
return serializeAws_json1_1EntityConfiguration(entry, context);
|
|
5348
|
+
});
|
|
5349
|
+
};
|
|
5350
|
+
const serializeAws_json1_1AssociatePersonasToEntitiesRequest = (input, context) => {
|
|
5351
|
+
return {
|
|
5352
|
+
...(input.Id !== undefined && input.Id !== null && { Id: input.Id }),
|
|
5353
|
+
...(input.IndexId !== undefined && input.IndexId !== null && { IndexId: input.IndexId }),
|
|
5354
|
+
...(input.Personas !== undefined &&
|
|
5355
|
+
input.Personas !== null && {
|
|
5356
|
+
Personas: serializeAws_json1_1EntityPersonaConfigurationList(input.Personas, context),
|
|
5357
|
+
}),
|
|
5358
|
+
};
|
|
5359
|
+
};
|
|
4215
5360
|
const serializeAws_json1_1AttributeFilter = (input, context) => {
|
|
4216
5361
|
return {
|
|
4217
5362
|
...(input.AndAllFilters !== undefined &&
|
|
@@ -4303,6 +5448,10 @@ const serializeAws_json1_1BatchGetDocumentStatusRequest = (input, context) => {
|
|
|
4303
5448
|
};
|
|
4304
5449
|
const serializeAws_json1_1BatchPutDocumentRequest = (input, context) => {
|
|
4305
5450
|
return {
|
|
5451
|
+
...(input.CustomDocumentEnrichmentConfiguration !== undefined &&
|
|
5452
|
+
input.CustomDocumentEnrichmentConfiguration !== null && {
|
|
5453
|
+
CustomDocumentEnrichmentConfiguration: serializeAws_json1_1CustomDocumentEnrichmentConfiguration(input.CustomDocumentEnrichmentConfiguration, context),
|
|
5454
|
+
}),
|
|
4306
5455
|
...(input.Documents !== undefined &&
|
|
4307
5456
|
input.Documents !== null && { Documents: serializeAws_json1_1DocumentList(input.Documents, context) }),
|
|
4308
5457
|
...(input.IndexId !== undefined && input.IndexId !== null && { IndexId: input.IndexId }),
|
|
@@ -4547,6 +5696,18 @@ const serializeAws_json1_1ConnectionConfiguration = (input, context) => {
|
|
|
4547
5696
|
...(input.TableName !== undefined && input.TableName !== null && { TableName: input.TableName }),
|
|
4548
5697
|
};
|
|
4549
5698
|
};
|
|
5699
|
+
const serializeAws_json1_1ContentSourceConfiguration = (input, context) => {
|
|
5700
|
+
return {
|
|
5701
|
+
...(input.DataSourceIds !== undefined &&
|
|
5702
|
+
input.DataSourceIds !== null && {
|
|
5703
|
+
DataSourceIds: serializeAws_json1_1DataSourceIdList(input.DataSourceIds, context),
|
|
5704
|
+
}),
|
|
5705
|
+
...(input.DirectPutContent !== undefined &&
|
|
5706
|
+
input.DirectPutContent !== null && { DirectPutContent: input.DirectPutContent }),
|
|
5707
|
+
...(input.FaqIds !== undefined &&
|
|
5708
|
+
input.FaqIds !== null && { FaqIds: serializeAws_json1_1FaqIdsList(input.FaqIds, context) }),
|
|
5709
|
+
};
|
|
5710
|
+
};
|
|
4550
5711
|
const serializeAws_json1_1CreateDataSourceRequest = (input, context) => {
|
|
4551
5712
|
var _a;
|
|
4552
5713
|
return {
|
|
@@ -4555,6 +5716,10 @@ const serializeAws_json1_1CreateDataSourceRequest = (input, context) => {
|
|
|
4555
5716
|
input.Configuration !== null && {
|
|
4556
5717
|
Configuration: serializeAws_json1_1DataSourceConfiguration(input.Configuration, context),
|
|
4557
5718
|
}),
|
|
5719
|
+
...(input.CustomDocumentEnrichmentConfiguration !== undefined &&
|
|
5720
|
+
input.CustomDocumentEnrichmentConfiguration !== null && {
|
|
5721
|
+
CustomDocumentEnrichmentConfiguration: serializeAws_json1_1CustomDocumentEnrichmentConfiguration(input.CustomDocumentEnrichmentConfiguration, context),
|
|
5722
|
+
}),
|
|
4558
5723
|
...(input.Description !== undefined && input.Description !== null && { Description: input.Description }),
|
|
4559
5724
|
...(input.IndexId !== undefined && input.IndexId !== null && { IndexId: input.IndexId }),
|
|
4560
5725
|
...(input.LanguageCode !== undefined && input.LanguageCode !== null && { LanguageCode: input.LanguageCode }),
|
|
@@ -4565,6 +5730,20 @@ const serializeAws_json1_1CreateDataSourceRequest = (input, context) => {
|
|
|
4565
5730
|
...(input.Type !== undefined && input.Type !== null && { Type: input.Type }),
|
|
4566
5731
|
};
|
|
4567
5732
|
};
|
|
5733
|
+
const serializeAws_json1_1CreateExperienceRequest = (input, context) => {
|
|
5734
|
+
var _a;
|
|
5735
|
+
return {
|
|
5736
|
+
ClientToken: (_a = input.ClientToken) !== null && _a !== void 0 ? _a : uuid_1.v4(),
|
|
5737
|
+
...(input.Configuration !== undefined &&
|
|
5738
|
+
input.Configuration !== null && {
|
|
5739
|
+
Configuration: serializeAws_json1_1ExperienceConfiguration(input.Configuration, context),
|
|
5740
|
+
}),
|
|
5741
|
+
...(input.Description !== undefined && input.Description !== null && { Description: input.Description }),
|
|
5742
|
+
...(input.IndexId !== undefined && input.IndexId !== null && { IndexId: input.IndexId }),
|
|
5743
|
+
...(input.Name !== undefined && input.Name !== null && { Name: input.Name }),
|
|
5744
|
+
...(input.RoleArn !== undefined && input.RoleArn !== null && { RoleArn: input.RoleArn }),
|
|
5745
|
+
};
|
|
5746
|
+
};
|
|
4568
5747
|
const serializeAws_json1_1CreateFaqRequest = (input, context) => {
|
|
4569
5748
|
var _a;
|
|
4570
5749
|
return {
|
|
@@ -4631,6 +5810,23 @@ const serializeAws_json1_1CreateThesaurusRequest = (input, context) => {
|
|
|
4631
5810
|
...(input.Tags !== undefined && input.Tags !== null && { Tags: serializeAws_json1_1TagList(input.Tags, context) }),
|
|
4632
5811
|
};
|
|
4633
5812
|
};
|
|
5813
|
+
const serializeAws_json1_1CustomDocumentEnrichmentConfiguration = (input, context) => {
|
|
5814
|
+
return {
|
|
5815
|
+
...(input.InlineConfigurations !== undefined &&
|
|
5816
|
+
input.InlineConfigurations !== null && {
|
|
5817
|
+
InlineConfigurations: serializeAws_json1_1InlineCustomDocumentEnrichmentConfigurationList(input.InlineConfigurations, context),
|
|
5818
|
+
}),
|
|
5819
|
+
...(input.PostExtractionHookConfiguration !== undefined &&
|
|
5820
|
+
input.PostExtractionHookConfiguration !== null && {
|
|
5821
|
+
PostExtractionHookConfiguration: serializeAws_json1_1HookConfiguration(input.PostExtractionHookConfiguration, context),
|
|
5822
|
+
}),
|
|
5823
|
+
...(input.PreExtractionHookConfiguration !== undefined &&
|
|
5824
|
+
input.PreExtractionHookConfiguration !== null && {
|
|
5825
|
+
PreExtractionHookConfiguration: serializeAws_json1_1HookConfiguration(input.PreExtractionHookConfiguration, context),
|
|
5826
|
+
}),
|
|
5827
|
+
...(input.RoleArn !== undefined && input.RoleArn !== null && { RoleArn: input.RoleArn }),
|
|
5828
|
+
};
|
|
5829
|
+
};
|
|
4634
5830
|
const serializeAws_json1_1DatabaseConfiguration = (input, context) => {
|
|
4635
5831
|
return {
|
|
4636
5832
|
...(input.AclConfiguration !== undefined &&
|
|
@@ -4717,6 +5913,16 @@ const serializeAws_json1_1DataSourceGroups = (input, context) => {
|
|
|
4717
5913
|
return serializeAws_json1_1DataSourceGroup(entry, context);
|
|
4718
5914
|
});
|
|
4719
5915
|
};
|
|
5916
|
+
const serializeAws_json1_1DataSourceIdList = (input, context) => {
|
|
5917
|
+
return input
|
|
5918
|
+
.filter((e) => e != null)
|
|
5919
|
+
.map((entry) => {
|
|
5920
|
+
if (entry === null) {
|
|
5921
|
+
return null;
|
|
5922
|
+
}
|
|
5923
|
+
return entry;
|
|
5924
|
+
});
|
|
5925
|
+
};
|
|
4720
5926
|
const serializeAws_json1_1DataSourceInclusionsExclusionsStrings = (input, context) => {
|
|
4721
5927
|
return input
|
|
4722
5928
|
.filter((e) => e != null)
|
|
@@ -4770,6 +5976,12 @@ const serializeAws_json1_1DeleteDataSourceRequest = (input, context) => {
|
|
|
4770
5976
|
...(input.IndexId !== undefined && input.IndexId !== null && { IndexId: input.IndexId }),
|
|
4771
5977
|
};
|
|
4772
5978
|
};
|
|
5979
|
+
const serializeAws_json1_1DeleteExperienceRequest = (input, context) => {
|
|
5980
|
+
return {
|
|
5981
|
+
...(input.Id !== undefined && input.Id !== null && { Id: input.Id }),
|
|
5982
|
+
...(input.IndexId !== undefined && input.IndexId !== null && { IndexId: input.IndexId }),
|
|
5983
|
+
};
|
|
5984
|
+
};
|
|
4773
5985
|
const serializeAws_json1_1DeleteFaqRequest = (input, context) => {
|
|
4774
5986
|
return {
|
|
4775
5987
|
...(input.Id !== undefined && input.Id !== null && { Id: input.Id }),
|
|
@@ -4807,6 +6019,12 @@ const serializeAws_json1_1DescribeDataSourceRequest = (input, context) => {
|
|
|
4807
6019
|
...(input.IndexId !== undefined && input.IndexId !== null && { IndexId: input.IndexId }),
|
|
4808
6020
|
};
|
|
4809
6021
|
};
|
|
6022
|
+
const serializeAws_json1_1DescribeExperienceRequest = (input, context) => {
|
|
6023
|
+
return {
|
|
6024
|
+
...(input.Id !== undefined && input.Id !== null && { Id: input.Id }),
|
|
6025
|
+
...(input.IndexId !== undefined && input.IndexId !== null && { IndexId: input.IndexId }),
|
|
6026
|
+
};
|
|
6027
|
+
};
|
|
4810
6028
|
const serializeAws_json1_1DescribeFaqRequest = (input, context) => {
|
|
4811
6029
|
return {
|
|
4812
6030
|
...(input.Id !== undefined && input.Id !== null && { Id: input.Id }),
|
|
@@ -4842,6 +6060,34 @@ const serializeAws_json1_1DescribeThesaurusRequest = (input, context) => {
|
|
|
4842
6060
|
...(input.IndexId !== undefined && input.IndexId !== null && { IndexId: input.IndexId }),
|
|
4843
6061
|
};
|
|
4844
6062
|
};
|
|
6063
|
+
const serializeAws_json1_1DisassociateEntitiesFromExperienceRequest = (input, context) => {
|
|
6064
|
+
return {
|
|
6065
|
+
...(input.EntityList !== undefined &&
|
|
6066
|
+
input.EntityList !== null && {
|
|
6067
|
+
EntityList: serializeAws_json1_1DisassociateEntityList(input.EntityList, context),
|
|
6068
|
+
}),
|
|
6069
|
+
...(input.Id !== undefined && input.Id !== null && { Id: input.Id }),
|
|
6070
|
+
...(input.IndexId !== undefined && input.IndexId !== null && { IndexId: input.IndexId }),
|
|
6071
|
+
};
|
|
6072
|
+
};
|
|
6073
|
+
const serializeAws_json1_1DisassociateEntityList = (input, context) => {
|
|
6074
|
+
return input
|
|
6075
|
+
.filter((e) => e != null)
|
|
6076
|
+
.map((entry) => {
|
|
6077
|
+
if (entry === null) {
|
|
6078
|
+
return null;
|
|
6079
|
+
}
|
|
6080
|
+
return serializeAws_json1_1EntityConfiguration(entry, context);
|
|
6081
|
+
});
|
|
6082
|
+
};
|
|
6083
|
+
const serializeAws_json1_1DisassociatePersonasFromEntitiesRequest = (input, context) => {
|
|
6084
|
+
return {
|
|
6085
|
+
...(input.EntityIds !== undefined &&
|
|
6086
|
+
input.EntityIds !== null && { EntityIds: serializeAws_json1_1EntityIdsList(input.EntityIds, context) }),
|
|
6087
|
+
...(input.Id !== undefined && input.Id !== null && { Id: input.Id }),
|
|
6088
|
+
...(input.IndexId !== undefined && input.IndexId !== null && { IndexId: input.IndexId }),
|
|
6089
|
+
};
|
|
6090
|
+
};
|
|
4845
6091
|
const serializeAws_json1_1Document = (input, context) => {
|
|
4846
6092
|
return {
|
|
4847
6093
|
...(input.AccessControlList !== undefined &&
|
|
@@ -4871,6 +6117,19 @@ const serializeAws_json1_1DocumentAttribute = (input, context) => {
|
|
|
4871
6117
|
input.Value !== null && { Value: serializeAws_json1_1DocumentAttributeValue(input.Value, context) }),
|
|
4872
6118
|
};
|
|
4873
6119
|
};
|
|
6120
|
+
const serializeAws_json1_1DocumentAttributeCondition = (input, context) => {
|
|
6121
|
+
return {
|
|
6122
|
+
...(input.ConditionDocumentAttributeKey !== undefined &&
|
|
6123
|
+
input.ConditionDocumentAttributeKey !== null && {
|
|
6124
|
+
ConditionDocumentAttributeKey: input.ConditionDocumentAttributeKey,
|
|
6125
|
+
}),
|
|
6126
|
+
...(input.ConditionOnValue !== undefined &&
|
|
6127
|
+
input.ConditionOnValue !== null && {
|
|
6128
|
+
ConditionOnValue: serializeAws_json1_1DocumentAttributeValue(input.ConditionOnValue, context),
|
|
6129
|
+
}),
|
|
6130
|
+
...(input.Operator !== undefined && input.Operator !== null && { Operator: input.Operator }),
|
|
6131
|
+
};
|
|
6132
|
+
};
|
|
4874
6133
|
const serializeAws_json1_1DocumentAttributeKeyList = (input, context) => {
|
|
4875
6134
|
return input
|
|
4876
6135
|
.filter((e) => e != null)
|
|
@@ -4901,6 +6160,20 @@ const serializeAws_json1_1DocumentAttributeStringListValue = (input, context) =>
|
|
|
4901
6160
|
return entry;
|
|
4902
6161
|
});
|
|
4903
6162
|
};
|
|
6163
|
+
const serializeAws_json1_1DocumentAttributeTarget = (input, context) => {
|
|
6164
|
+
return {
|
|
6165
|
+
...(input.TargetDocumentAttributeKey !== undefined &&
|
|
6166
|
+
input.TargetDocumentAttributeKey !== null && { TargetDocumentAttributeKey: input.TargetDocumentAttributeKey }),
|
|
6167
|
+
...(input.TargetDocumentAttributeValue !== undefined &&
|
|
6168
|
+
input.TargetDocumentAttributeValue !== null && {
|
|
6169
|
+
TargetDocumentAttributeValue: serializeAws_json1_1DocumentAttributeValue(input.TargetDocumentAttributeValue, context),
|
|
6170
|
+
}),
|
|
6171
|
+
...(input.TargetDocumentAttributeValueDeletion !== undefined &&
|
|
6172
|
+
input.TargetDocumentAttributeValueDeletion !== null && {
|
|
6173
|
+
TargetDocumentAttributeValueDeletion: input.TargetDocumentAttributeValueDeletion,
|
|
6174
|
+
}),
|
|
6175
|
+
};
|
|
6176
|
+
};
|
|
4904
6177
|
const serializeAws_json1_1DocumentAttributeValue = (input, context) => {
|
|
4905
6178
|
return {
|
|
4906
6179
|
...(input.DateValue !== undefined &&
|
|
@@ -4994,6 +6267,38 @@ const serializeAws_json1_1DocumentsMetadataConfiguration = (input, context) => {
|
|
|
4994
6267
|
...(input.S3Prefix !== undefined && input.S3Prefix !== null && { S3Prefix: input.S3Prefix }),
|
|
4995
6268
|
};
|
|
4996
6269
|
};
|
|
6270
|
+
const serializeAws_json1_1EntityConfiguration = (input, context) => {
|
|
6271
|
+
return {
|
|
6272
|
+
...(input.EntityId !== undefined && input.EntityId !== null && { EntityId: input.EntityId }),
|
|
6273
|
+
...(input.EntityType !== undefined && input.EntityType !== null && { EntityType: input.EntityType }),
|
|
6274
|
+
};
|
|
6275
|
+
};
|
|
6276
|
+
const serializeAws_json1_1EntityIdsList = (input, context) => {
|
|
6277
|
+
return input
|
|
6278
|
+
.filter((e) => e != null)
|
|
6279
|
+
.map((entry) => {
|
|
6280
|
+
if (entry === null) {
|
|
6281
|
+
return null;
|
|
6282
|
+
}
|
|
6283
|
+
return entry;
|
|
6284
|
+
});
|
|
6285
|
+
};
|
|
6286
|
+
const serializeAws_json1_1EntityPersonaConfiguration = (input, context) => {
|
|
6287
|
+
return {
|
|
6288
|
+
...(input.EntityId !== undefined && input.EntityId !== null && { EntityId: input.EntityId }),
|
|
6289
|
+
...(input.Persona !== undefined && input.Persona !== null && { Persona: input.Persona }),
|
|
6290
|
+
};
|
|
6291
|
+
};
|
|
6292
|
+
const serializeAws_json1_1EntityPersonaConfigurationList = (input, context) => {
|
|
6293
|
+
return input
|
|
6294
|
+
.filter((e) => e != null)
|
|
6295
|
+
.map((entry) => {
|
|
6296
|
+
if (entry === null) {
|
|
6297
|
+
return null;
|
|
6298
|
+
}
|
|
6299
|
+
return serializeAws_json1_1EntityPersonaConfiguration(entry, context);
|
|
6300
|
+
});
|
|
6301
|
+
};
|
|
4997
6302
|
const serializeAws_json1_1ExcludeMimeTypesList = (input, context) => {
|
|
4998
6303
|
return input
|
|
4999
6304
|
.filter((e) => e != null)
|
|
@@ -5024,6 +6329,18 @@ const serializeAws_json1_1ExcludeUserAccountsList = (input, context) => {
|
|
|
5024
6329
|
return entry;
|
|
5025
6330
|
});
|
|
5026
6331
|
};
|
|
6332
|
+
const serializeAws_json1_1ExperienceConfiguration = (input, context) => {
|
|
6333
|
+
return {
|
|
6334
|
+
...(input.ContentSourceConfiguration !== undefined &&
|
|
6335
|
+
input.ContentSourceConfiguration !== null && {
|
|
6336
|
+
ContentSourceConfiguration: serializeAws_json1_1ContentSourceConfiguration(input.ContentSourceConfiguration, context),
|
|
6337
|
+
}),
|
|
6338
|
+
...(input.UserIdentityConfiguration !== undefined &&
|
|
6339
|
+
input.UserIdentityConfiguration !== null && {
|
|
6340
|
+
UserIdentityConfiguration: serializeAws_json1_1UserIdentityConfiguration(input.UserIdentityConfiguration, context),
|
|
6341
|
+
}),
|
|
6342
|
+
};
|
|
6343
|
+
};
|
|
5027
6344
|
const serializeAws_json1_1Facet = (input, context) => {
|
|
5028
6345
|
return {
|
|
5029
6346
|
...(input.DocumentAttributeKey !== undefined &&
|
|
@@ -5040,6 +6357,16 @@ const serializeAws_json1_1FacetList = (input, context) => {
|
|
|
5040
6357
|
return serializeAws_json1_1Facet(entry, context);
|
|
5041
6358
|
});
|
|
5042
6359
|
};
|
|
6360
|
+
const serializeAws_json1_1FaqIdsList = (input, context) => {
|
|
6361
|
+
return input
|
|
6362
|
+
.filter((e) => e != null)
|
|
6363
|
+
.map((entry) => {
|
|
6364
|
+
if (entry === null) {
|
|
6365
|
+
return null;
|
|
6366
|
+
}
|
|
6367
|
+
return entry;
|
|
6368
|
+
});
|
|
6369
|
+
};
|
|
5043
6370
|
const serializeAws_json1_1GetQuerySuggestionsRequest = (input, context) => {
|
|
5044
6371
|
return {
|
|
5045
6372
|
...(input.IndexId !== undefined && input.IndexId !== null && { IndexId: input.IndexId }),
|
|
@@ -5048,6 +6375,15 @@ const serializeAws_json1_1GetQuerySuggestionsRequest = (input, context) => {
|
|
|
5048
6375
|
...(input.QueryText !== undefined && input.QueryText !== null && { QueryText: input.QueryText }),
|
|
5049
6376
|
};
|
|
5050
6377
|
};
|
|
6378
|
+
const serializeAws_json1_1GetSnapshotsRequest = (input, context) => {
|
|
6379
|
+
return {
|
|
6380
|
+
...(input.IndexId !== undefined && input.IndexId !== null && { IndexId: input.IndexId }),
|
|
6381
|
+
...(input.Interval !== undefined && input.Interval !== null && { Interval: input.Interval }),
|
|
6382
|
+
...(input.MaxResults !== undefined && input.MaxResults !== null && { MaxResults: input.MaxResults }),
|
|
6383
|
+
...(input.MetricType !== undefined && input.MetricType !== null && { MetricType: input.MetricType }),
|
|
6384
|
+
...(input.NextToken !== undefined && input.NextToken !== null && { NextToken: input.NextToken }),
|
|
6385
|
+
};
|
|
6386
|
+
};
|
|
5051
6387
|
const serializeAws_json1_1GoogleDriveConfiguration = (input, context) => {
|
|
5052
6388
|
return {
|
|
5053
6389
|
...(input.ExcludeMimeTypes !== undefined &&
|
|
@@ -5117,6 +6453,38 @@ const serializeAws_json1_1HierarchicalPrincipalList = (input, context) => {
|
|
|
5117
6453
|
return serializeAws_json1_1HierarchicalPrincipal(entry, context);
|
|
5118
6454
|
});
|
|
5119
6455
|
};
|
|
6456
|
+
const serializeAws_json1_1HookConfiguration = (input, context) => {
|
|
6457
|
+
return {
|
|
6458
|
+
...(input.InvocationCondition !== undefined &&
|
|
6459
|
+
input.InvocationCondition !== null && {
|
|
6460
|
+
InvocationCondition: serializeAws_json1_1DocumentAttributeCondition(input.InvocationCondition, context),
|
|
6461
|
+
}),
|
|
6462
|
+
...(input.LambdaArn !== undefined && input.LambdaArn !== null && { LambdaArn: input.LambdaArn }),
|
|
6463
|
+
...(input.S3Bucket !== undefined && input.S3Bucket !== null && { S3Bucket: input.S3Bucket }),
|
|
6464
|
+
};
|
|
6465
|
+
};
|
|
6466
|
+
const serializeAws_json1_1InlineCustomDocumentEnrichmentConfiguration = (input, context) => {
|
|
6467
|
+
return {
|
|
6468
|
+
...(input.Condition !== undefined &&
|
|
6469
|
+
input.Condition !== null && {
|
|
6470
|
+
Condition: serializeAws_json1_1DocumentAttributeCondition(input.Condition, context),
|
|
6471
|
+
}),
|
|
6472
|
+
...(input.DocumentContentDeletion !== undefined &&
|
|
6473
|
+
input.DocumentContentDeletion !== null && { DocumentContentDeletion: input.DocumentContentDeletion }),
|
|
6474
|
+
...(input.Target !== undefined &&
|
|
6475
|
+
input.Target !== null && { Target: serializeAws_json1_1DocumentAttributeTarget(input.Target, context) }),
|
|
6476
|
+
};
|
|
6477
|
+
};
|
|
6478
|
+
const serializeAws_json1_1InlineCustomDocumentEnrichmentConfigurationList = (input, context) => {
|
|
6479
|
+
return input
|
|
6480
|
+
.filter((e) => e != null)
|
|
6481
|
+
.map((entry) => {
|
|
6482
|
+
if (entry === null) {
|
|
6483
|
+
return null;
|
|
6484
|
+
}
|
|
6485
|
+
return serializeAws_json1_1InlineCustomDocumentEnrichmentConfiguration(entry, context);
|
|
6486
|
+
});
|
|
6487
|
+
};
|
|
5120
6488
|
const serializeAws_json1_1JsonTokenTypeConfiguration = (input, context) => {
|
|
5121
6489
|
return {
|
|
5122
6490
|
...(input.GroupAttributeField !== undefined &&
|
|
@@ -5159,6 +6527,28 @@ const serializeAws_json1_1ListDataSourceSyncJobsRequest = (input, context) => {
|
|
|
5159
6527
|
...(input.StatusFilter !== undefined && input.StatusFilter !== null && { StatusFilter: input.StatusFilter }),
|
|
5160
6528
|
};
|
|
5161
6529
|
};
|
|
6530
|
+
const serializeAws_json1_1ListEntityPersonasRequest = (input, context) => {
|
|
6531
|
+
return {
|
|
6532
|
+
...(input.Id !== undefined && input.Id !== null && { Id: input.Id }),
|
|
6533
|
+
...(input.IndexId !== undefined && input.IndexId !== null && { IndexId: input.IndexId }),
|
|
6534
|
+
...(input.MaxResults !== undefined && input.MaxResults !== null && { MaxResults: input.MaxResults }),
|
|
6535
|
+
...(input.NextToken !== undefined && input.NextToken !== null && { NextToken: input.NextToken }),
|
|
6536
|
+
};
|
|
6537
|
+
};
|
|
6538
|
+
const serializeAws_json1_1ListExperienceEntitiesRequest = (input, context) => {
|
|
6539
|
+
return {
|
|
6540
|
+
...(input.Id !== undefined && input.Id !== null && { Id: input.Id }),
|
|
6541
|
+
...(input.IndexId !== undefined && input.IndexId !== null && { IndexId: input.IndexId }),
|
|
6542
|
+
...(input.NextToken !== undefined && input.NextToken !== null && { NextToken: input.NextToken }),
|
|
6543
|
+
};
|
|
6544
|
+
};
|
|
6545
|
+
const serializeAws_json1_1ListExperiencesRequest = (input, context) => {
|
|
6546
|
+
return {
|
|
6547
|
+
...(input.IndexId !== undefined && input.IndexId !== null && { IndexId: input.IndexId }),
|
|
6548
|
+
...(input.MaxResults !== undefined && input.MaxResults !== null && { MaxResults: input.MaxResults }),
|
|
6549
|
+
...(input.NextToken !== undefined && input.NextToken !== null && { NextToken: input.NextToken }),
|
|
6550
|
+
};
|
|
6551
|
+
};
|
|
5162
6552
|
const serializeAws_json1_1ListFaqsRequest = (input, context) => {
|
|
5163
6553
|
return {
|
|
5164
6554
|
...(input.IndexId !== undefined && input.IndexId !== null && { IndexId: input.IndexId }),
|
|
@@ -5824,15 +7214,32 @@ const serializeAws_json1_1UpdateDataSourceRequest = (input, context) => {
|
|
|
5824
7214
|
return {
|
|
5825
7215
|
...(input.Configuration !== undefined &&
|
|
5826
7216
|
input.Configuration !== null && {
|
|
5827
|
-
Configuration: serializeAws_json1_1DataSourceConfiguration(input.Configuration, context),
|
|
7217
|
+
Configuration: serializeAws_json1_1DataSourceConfiguration(input.Configuration, context),
|
|
7218
|
+
}),
|
|
7219
|
+
...(input.CustomDocumentEnrichmentConfiguration !== undefined &&
|
|
7220
|
+
input.CustomDocumentEnrichmentConfiguration !== null && {
|
|
7221
|
+
CustomDocumentEnrichmentConfiguration: serializeAws_json1_1CustomDocumentEnrichmentConfiguration(input.CustomDocumentEnrichmentConfiguration, context),
|
|
7222
|
+
}),
|
|
7223
|
+
...(input.Description !== undefined && input.Description !== null && { Description: input.Description }),
|
|
7224
|
+
...(input.Id !== undefined && input.Id !== null && { Id: input.Id }),
|
|
7225
|
+
...(input.IndexId !== undefined && input.IndexId !== null && { IndexId: input.IndexId }),
|
|
7226
|
+
...(input.LanguageCode !== undefined && input.LanguageCode !== null && { LanguageCode: input.LanguageCode }),
|
|
7227
|
+
...(input.Name !== undefined && input.Name !== null && { Name: input.Name }),
|
|
7228
|
+
...(input.RoleArn !== undefined && input.RoleArn !== null && { RoleArn: input.RoleArn }),
|
|
7229
|
+
...(input.Schedule !== undefined && input.Schedule !== null && { Schedule: input.Schedule }),
|
|
7230
|
+
};
|
|
7231
|
+
};
|
|
7232
|
+
const serializeAws_json1_1UpdateExperienceRequest = (input, context) => {
|
|
7233
|
+
return {
|
|
7234
|
+
...(input.Configuration !== undefined &&
|
|
7235
|
+
input.Configuration !== null && {
|
|
7236
|
+
Configuration: serializeAws_json1_1ExperienceConfiguration(input.Configuration, context),
|
|
5828
7237
|
}),
|
|
5829
7238
|
...(input.Description !== undefined && input.Description !== null && { Description: input.Description }),
|
|
5830
7239
|
...(input.Id !== undefined && input.Id !== null && { Id: input.Id }),
|
|
5831
7240
|
...(input.IndexId !== undefined && input.IndexId !== null && { IndexId: input.IndexId }),
|
|
5832
|
-
...(input.LanguageCode !== undefined && input.LanguageCode !== null && { LanguageCode: input.LanguageCode }),
|
|
5833
7241
|
...(input.Name !== undefined && input.Name !== null && { Name: input.Name }),
|
|
5834
7242
|
...(input.RoleArn !== undefined && input.RoleArn !== null && { RoleArn: input.RoleArn }),
|
|
5835
|
-
...(input.Schedule !== undefined && input.Schedule !== null && { Schedule: input.Schedule }),
|
|
5836
7243
|
};
|
|
5837
7244
|
};
|
|
5838
7245
|
const serializeAws_json1_1UpdateIndexRequest = (input, context) => {
|
|
@@ -5933,6 +7340,12 @@ const serializeAws_json1_1UserGroupResolutionConfiguration = (input, context) =>
|
|
|
5933
7340
|
input.UserGroupResolutionMode !== null && { UserGroupResolutionMode: input.UserGroupResolutionMode }),
|
|
5934
7341
|
};
|
|
5935
7342
|
};
|
|
7343
|
+
const serializeAws_json1_1UserIdentityConfiguration = (input, context) => {
|
|
7344
|
+
return {
|
|
7345
|
+
...(input.IdentityAttributeName !== undefined &&
|
|
7346
|
+
input.IdentityAttributeName !== null && { IdentityAttributeName: input.IdentityAttributeName }),
|
|
7347
|
+
};
|
|
7348
|
+
};
|
|
5936
7349
|
const serializeAws_json1_1UserTokenConfiguration = (input, context) => {
|
|
5937
7350
|
return {
|
|
5938
7351
|
...(input.JsonTokenTypeConfiguration !== undefined &&
|
|
@@ -6057,6 +7470,30 @@ const deserializeAws_json1_1AdditionalResultAttributeValue = (output, context) =
|
|
|
6057
7470
|
: undefined,
|
|
6058
7471
|
};
|
|
6059
7472
|
};
|
|
7473
|
+
const deserializeAws_json1_1AssociateEntitiesToExperienceFailedEntityList = (output, context) => {
|
|
7474
|
+
return (output || [])
|
|
7475
|
+
.filter((e) => e != null)
|
|
7476
|
+
.map((entry) => {
|
|
7477
|
+
if (entry === null) {
|
|
7478
|
+
return null;
|
|
7479
|
+
}
|
|
7480
|
+
return deserializeAws_json1_1FailedEntity(entry, context);
|
|
7481
|
+
});
|
|
7482
|
+
};
|
|
7483
|
+
const deserializeAws_json1_1AssociateEntitiesToExperienceResponse = (output, context) => {
|
|
7484
|
+
return {
|
|
7485
|
+
FailedEntityList: output.FailedEntityList !== undefined && output.FailedEntityList !== null
|
|
7486
|
+
? deserializeAws_json1_1AssociateEntitiesToExperienceFailedEntityList(output.FailedEntityList, context)
|
|
7487
|
+
: undefined,
|
|
7488
|
+
};
|
|
7489
|
+
};
|
|
7490
|
+
const deserializeAws_json1_1AssociatePersonasToEntitiesResponse = (output, context) => {
|
|
7491
|
+
return {
|
|
7492
|
+
FailedEntityList: output.FailedEntityList !== undefined && output.FailedEntityList !== null
|
|
7493
|
+
? deserializeAws_json1_1FailedEntityList(output.FailedEntityList, context)
|
|
7494
|
+
: undefined,
|
|
7495
|
+
};
|
|
7496
|
+
};
|
|
6060
7497
|
const deserializeAws_json1_1AuthenticationConfiguration = (output, context) => {
|
|
6061
7498
|
return {
|
|
6062
7499
|
BasicAuthentication: output.BasicAuthentication !== undefined && output.BasicAuthentication !== null
|
|
@@ -6342,11 +7779,27 @@ const deserializeAws_json1_1ConnectionConfiguration = (output, context) => {
|
|
|
6342
7779
|
TableName: smithy_client_1.expectString(output.TableName),
|
|
6343
7780
|
};
|
|
6344
7781
|
};
|
|
7782
|
+
const deserializeAws_json1_1ContentSourceConfiguration = (output, context) => {
|
|
7783
|
+
return {
|
|
7784
|
+
DataSourceIds: output.DataSourceIds !== undefined && output.DataSourceIds !== null
|
|
7785
|
+
? deserializeAws_json1_1DataSourceIdList(output.DataSourceIds, context)
|
|
7786
|
+
: undefined,
|
|
7787
|
+
DirectPutContent: smithy_client_1.expectBoolean(output.DirectPutContent),
|
|
7788
|
+
FaqIds: output.FaqIds !== undefined && output.FaqIds !== null
|
|
7789
|
+
? deserializeAws_json1_1FaqIdsList(output.FaqIds, context)
|
|
7790
|
+
: undefined,
|
|
7791
|
+
};
|
|
7792
|
+
};
|
|
6345
7793
|
const deserializeAws_json1_1CreateDataSourceResponse = (output, context) => {
|
|
6346
7794
|
return {
|
|
6347
7795
|
Id: smithy_client_1.expectString(output.Id),
|
|
6348
7796
|
};
|
|
6349
7797
|
};
|
|
7798
|
+
const deserializeAws_json1_1CreateExperienceResponse = (output, context) => {
|
|
7799
|
+
return {
|
|
7800
|
+
Id: smithy_client_1.expectString(output.Id),
|
|
7801
|
+
};
|
|
7802
|
+
};
|
|
6350
7803
|
const deserializeAws_json1_1CreateFaqResponse = (output, context) => {
|
|
6351
7804
|
return {
|
|
6352
7805
|
Id: smithy_client_1.expectString(output.Id),
|
|
@@ -6367,6 +7820,20 @@ const deserializeAws_json1_1CreateThesaurusResponse = (output, context) => {
|
|
|
6367
7820
|
Id: smithy_client_1.expectString(output.Id),
|
|
6368
7821
|
};
|
|
6369
7822
|
};
|
|
7823
|
+
const deserializeAws_json1_1CustomDocumentEnrichmentConfiguration = (output, context) => {
|
|
7824
|
+
return {
|
|
7825
|
+
InlineConfigurations: output.InlineConfigurations !== undefined && output.InlineConfigurations !== null
|
|
7826
|
+
? deserializeAws_json1_1InlineCustomDocumentEnrichmentConfigurationList(output.InlineConfigurations, context)
|
|
7827
|
+
: undefined,
|
|
7828
|
+
PostExtractionHookConfiguration: output.PostExtractionHookConfiguration !== undefined && output.PostExtractionHookConfiguration !== null
|
|
7829
|
+
? deserializeAws_json1_1HookConfiguration(output.PostExtractionHookConfiguration, context)
|
|
7830
|
+
: undefined,
|
|
7831
|
+
PreExtractionHookConfiguration: output.PreExtractionHookConfiguration !== undefined && output.PreExtractionHookConfiguration !== null
|
|
7832
|
+
? deserializeAws_json1_1HookConfiguration(output.PreExtractionHookConfiguration, context)
|
|
7833
|
+
: undefined,
|
|
7834
|
+
RoleArn: smithy_client_1.expectString(output.RoleArn),
|
|
7835
|
+
};
|
|
7836
|
+
};
|
|
6370
7837
|
const deserializeAws_json1_1DatabaseConfiguration = (output, context) => {
|
|
6371
7838
|
return {
|
|
6372
7839
|
AclConfiguration: output.AclConfiguration !== undefined && output.AclConfiguration !== null
|
|
@@ -6421,6 +7888,16 @@ const deserializeAws_json1_1DataSourceConfiguration = (output, context) => {
|
|
|
6421
7888
|
: undefined,
|
|
6422
7889
|
};
|
|
6423
7890
|
};
|
|
7891
|
+
const deserializeAws_json1_1DataSourceIdList = (output, context) => {
|
|
7892
|
+
return (output || [])
|
|
7893
|
+
.filter((e) => e != null)
|
|
7894
|
+
.map((entry) => {
|
|
7895
|
+
if (entry === null) {
|
|
7896
|
+
return null;
|
|
7897
|
+
}
|
|
7898
|
+
return smithy_client_1.expectString(entry);
|
|
7899
|
+
});
|
|
7900
|
+
};
|
|
6424
7901
|
const deserializeAws_json1_1DataSourceInclusionsExclusionsStrings = (output, context) => {
|
|
6425
7902
|
return (output || [])
|
|
6426
7903
|
.filter((e) => e != null)
|
|
@@ -6520,6 +7997,9 @@ const deserializeAws_json1_1DataSourceVpcConfiguration = (output, context) => {
|
|
|
6520
7997
|
: undefined,
|
|
6521
7998
|
};
|
|
6522
7999
|
};
|
|
8000
|
+
const deserializeAws_json1_1DeleteExperienceResponse = (output, context) => {
|
|
8001
|
+
return {};
|
|
8002
|
+
};
|
|
6523
8003
|
const deserializeAws_json1_1DescribeDataSourceResponse = (output, context) => {
|
|
6524
8004
|
return {
|
|
6525
8005
|
Configuration: output.Configuration !== undefined && output.Configuration !== null
|
|
@@ -6528,6 +8008,10 @@ const deserializeAws_json1_1DescribeDataSourceResponse = (output, context) => {
|
|
|
6528
8008
|
CreatedAt: output.CreatedAt !== undefined && output.CreatedAt !== null
|
|
6529
8009
|
? smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(output.CreatedAt)))
|
|
6530
8010
|
: undefined,
|
|
8011
|
+
CustomDocumentEnrichmentConfiguration: output.CustomDocumentEnrichmentConfiguration !== undefined &&
|
|
8012
|
+
output.CustomDocumentEnrichmentConfiguration !== null
|
|
8013
|
+
? deserializeAws_json1_1CustomDocumentEnrichmentConfiguration(output.CustomDocumentEnrichmentConfiguration, context)
|
|
8014
|
+
: undefined,
|
|
6531
8015
|
Description: smithy_client_1.expectString(output.Description),
|
|
6532
8016
|
ErrorMessage: smithy_client_1.expectString(output.ErrorMessage),
|
|
6533
8017
|
Id: smithy_client_1.expectString(output.Id),
|
|
@@ -6543,6 +8027,29 @@ const deserializeAws_json1_1DescribeDataSourceResponse = (output, context) => {
|
|
|
6543
8027
|
: undefined,
|
|
6544
8028
|
};
|
|
6545
8029
|
};
|
|
8030
|
+
const deserializeAws_json1_1DescribeExperienceResponse = (output, context) => {
|
|
8031
|
+
return {
|
|
8032
|
+
Configuration: output.Configuration !== undefined && output.Configuration !== null
|
|
8033
|
+
? deserializeAws_json1_1ExperienceConfiguration(output.Configuration, context)
|
|
8034
|
+
: undefined,
|
|
8035
|
+
CreatedAt: output.CreatedAt !== undefined && output.CreatedAt !== null
|
|
8036
|
+
? smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(output.CreatedAt)))
|
|
8037
|
+
: undefined,
|
|
8038
|
+
Description: smithy_client_1.expectString(output.Description),
|
|
8039
|
+
Endpoints: output.Endpoints !== undefined && output.Endpoints !== null
|
|
8040
|
+
? deserializeAws_json1_1ExperienceEndpoints(output.Endpoints, context)
|
|
8041
|
+
: undefined,
|
|
8042
|
+
ErrorMessage: smithy_client_1.expectString(output.ErrorMessage),
|
|
8043
|
+
Id: smithy_client_1.expectString(output.Id),
|
|
8044
|
+
IndexId: smithy_client_1.expectString(output.IndexId),
|
|
8045
|
+
Name: smithy_client_1.expectString(output.Name),
|
|
8046
|
+
RoleArn: smithy_client_1.expectString(output.RoleArn),
|
|
8047
|
+
Status: smithy_client_1.expectString(output.Status),
|
|
8048
|
+
UpdatedAt: output.UpdatedAt !== undefined && output.UpdatedAt !== null
|
|
8049
|
+
? smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(output.UpdatedAt)))
|
|
8050
|
+
: undefined,
|
|
8051
|
+
};
|
|
8052
|
+
};
|
|
6546
8053
|
const deserializeAws_json1_1DescribeFaqResponse = (output, context) => {
|
|
6547
8054
|
return {
|
|
6548
8055
|
CreatedAt: output.CreatedAt !== undefined && output.CreatedAt !== null
|
|
@@ -6673,6 +8180,20 @@ const deserializeAws_json1_1DescribeThesaurusResponse = (output, context) => {
|
|
|
6673
8180
|
: undefined,
|
|
6674
8181
|
};
|
|
6675
8182
|
};
|
|
8183
|
+
const deserializeAws_json1_1DisassociateEntitiesFromExperienceResponse = (output, context) => {
|
|
8184
|
+
return {
|
|
8185
|
+
FailedEntityList: output.FailedEntityList !== undefined && output.FailedEntityList !== null
|
|
8186
|
+
? deserializeAws_json1_1FailedEntityList(output.FailedEntityList, context)
|
|
8187
|
+
: undefined,
|
|
8188
|
+
};
|
|
8189
|
+
};
|
|
8190
|
+
const deserializeAws_json1_1DisassociatePersonasFromEntitiesResponse = (output, context) => {
|
|
8191
|
+
return {
|
|
8192
|
+
FailedEntityList: output.FailedEntityList !== undefined && output.FailedEntityList !== null
|
|
8193
|
+
? deserializeAws_json1_1FailedEntityList(output.FailedEntityList, context)
|
|
8194
|
+
: undefined,
|
|
8195
|
+
};
|
|
8196
|
+
};
|
|
6676
8197
|
const deserializeAws_json1_1DocumentAttribute = (output, context) => {
|
|
6677
8198
|
return {
|
|
6678
8199
|
Key: smithy_client_1.expectString(output.Key),
|
|
@@ -6681,6 +8202,15 @@ const deserializeAws_json1_1DocumentAttribute = (output, context) => {
|
|
|
6681
8202
|
: undefined,
|
|
6682
8203
|
};
|
|
6683
8204
|
};
|
|
8205
|
+
const deserializeAws_json1_1DocumentAttributeCondition = (output, context) => {
|
|
8206
|
+
return {
|
|
8207
|
+
ConditionDocumentAttributeKey: smithy_client_1.expectString(output.ConditionDocumentAttributeKey),
|
|
8208
|
+
ConditionOnValue: output.ConditionOnValue !== undefined && output.ConditionOnValue !== null
|
|
8209
|
+
? deserializeAws_json1_1DocumentAttributeValue(output.ConditionOnValue, context)
|
|
8210
|
+
: undefined,
|
|
8211
|
+
Operator: smithy_client_1.expectString(output.Operator),
|
|
8212
|
+
};
|
|
8213
|
+
};
|
|
6684
8214
|
const deserializeAws_json1_1DocumentAttributeList = (output, context) => {
|
|
6685
8215
|
return (output || [])
|
|
6686
8216
|
.filter((e) => e != null)
|
|
@@ -6701,6 +8231,15 @@ const deserializeAws_json1_1DocumentAttributeStringListValue = (output, context)
|
|
|
6701
8231
|
return smithy_client_1.expectString(entry);
|
|
6702
8232
|
});
|
|
6703
8233
|
};
|
|
8234
|
+
const deserializeAws_json1_1DocumentAttributeTarget = (output, context) => {
|
|
8235
|
+
return {
|
|
8236
|
+
TargetDocumentAttributeKey: smithy_client_1.expectString(output.TargetDocumentAttributeKey),
|
|
8237
|
+
TargetDocumentAttributeValue: output.TargetDocumentAttributeValue !== undefined && output.TargetDocumentAttributeValue !== null
|
|
8238
|
+
? deserializeAws_json1_1DocumentAttributeValue(output.TargetDocumentAttributeValue, context)
|
|
8239
|
+
: undefined,
|
|
8240
|
+
TargetDocumentAttributeValueDeletion: smithy_client_1.expectBoolean(output.TargetDocumentAttributeValueDeletion),
|
|
8241
|
+
};
|
|
8242
|
+
};
|
|
6704
8243
|
const deserializeAws_json1_1DocumentAttributeValue = (output, context) => {
|
|
6705
8244
|
return {
|
|
6706
8245
|
DateValue: output.DateValue !== undefined && output.DateValue !== null
|
|
@@ -6768,6 +8307,15 @@ const deserializeAws_json1_1DocumentStatusList = (output, context) => {
|
|
|
6768
8307
|
return deserializeAws_json1_1Status(entry, context);
|
|
6769
8308
|
});
|
|
6770
8309
|
};
|
|
8310
|
+
const deserializeAws_json1_1EntityDisplayData = (output, context) => {
|
|
8311
|
+
return {
|
|
8312
|
+
FirstName: smithy_client_1.expectString(output.FirstName),
|
|
8313
|
+
GroupName: smithy_client_1.expectString(output.GroupName),
|
|
8314
|
+
IdentifiedUserName: smithy_client_1.expectString(output.IdentifiedUserName),
|
|
8315
|
+
LastName: smithy_client_1.expectString(output.LastName),
|
|
8316
|
+
UserName: smithy_client_1.expectString(output.UserName),
|
|
8317
|
+
};
|
|
8318
|
+
};
|
|
6771
8319
|
const deserializeAws_json1_1ExcludeMimeTypesList = (output, context) => {
|
|
6772
8320
|
return (output || [])
|
|
6773
8321
|
.filter((e) => e != null)
|
|
@@ -6798,6 +8346,74 @@ const deserializeAws_json1_1ExcludeUserAccountsList = (output, context) => {
|
|
|
6798
8346
|
return smithy_client_1.expectString(entry);
|
|
6799
8347
|
});
|
|
6800
8348
|
};
|
|
8349
|
+
const deserializeAws_json1_1ExperienceConfiguration = (output, context) => {
|
|
8350
|
+
return {
|
|
8351
|
+
ContentSourceConfiguration: output.ContentSourceConfiguration !== undefined && output.ContentSourceConfiguration !== null
|
|
8352
|
+
? deserializeAws_json1_1ContentSourceConfiguration(output.ContentSourceConfiguration, context)
|
|
8353
|
+
: undefined,
|
|
8354
|
+
UserIdentityConfiguration: output.UserIdentityConfiguration !== undefined && output.UserIdentityConfiguration !== null
|
|
8355
|
+
? deserializeAws_json1_1UserIdentityConfiguration(output.UserIdentityConfiguration, context)
|
|
8356
|
+
: undefined,
|
|
8357
|
+
};
|
|
8358
|
+
};
|
|
8359
|
+
const deserializeAws_json1_1ExperienceEndpoint = (output, context) => {
|
|
8360
|
+
return {
|
|
8361
|
+
Endpoint: smithy_client_1.expectString(output.Endpoint),
|
|
8362
|
+
EndpointType: smithy_client_1.expectString(output.EndpointType),
|
|
8363
|
+
};
|
|
8364
|
+
};
|
|
8365
|
+
const deserializeAws_json1_1ExperienceEndpoints = (output, context) => {
|
|
8366
|
+
return (output || [])
|
|
8367
|
+
.filter((e) => e != null)
|
|
8368
|
+
.map((entry) => {
|
|
8369
|
+
if (entry === null) {
|
|
8370
|
+
return null;
|
|
8371
|
+
}
|
|
8372
|
+
return deserializeAws_json1_1ExperienceEndpoint(entry, context);
|
|
8373
|
+
});
|
|
8374
|
+
};
|
|
8375
|
+
const deserializeAws_json1_1ExperienceEntitiesSummary = (output, context) => {
|
|
8376
|
+
return {
|
|
8377
|
+
DisplayData: output.DisplayData !== undefined && output.DisplayData !== null
|
|
8378
|
+
? deserializeAws_json1_1EntityDisplayData(output.DisplayData, context)
|
|
8379
|
+
: undefined,
|
|
8380
|
+
EntityId: smithy_client_1.expectString(output.EntityId),
|
|
8381
|
+
EntityType: smithy_client_1.expectString(output.EntityType),
|
|
8382
|
+
};
|
|
8383
|
+
};
|
|
8384
|
+
const deserializeAws_json1_1ExperienceEntitiesSummaryList = (output, context) => {
|
|
8385
|
+
return (output || [])
|
|
8386
|
+
.filter((e) => e != null)
|
|
8387
|
+
.map((entry) => {
|
|
8388
|
+
if (entry === null) {
|
|
8389
|
+
return null;
|
|
8390
|
+
}
|
|
8391
|
+
return deserializeAws_json1_1ExperienceEntitiesSummary(entry, context);
|
|
8392
|
+
});
|
|
8393
|
+
};
|
|
8394
|
+
const deserializeAws_json1_1ExperiencesSummary = (output, context) => {
|
|
8395
|
+
return {
|
|
8396
|
+
CreatedAt: output.CreatedAt !== undefined && output.CreatedAt !== null
|
|
8397
|
+
? smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(output.CreatedAt)))
|
|
8398
|
+
: undefined,
|
|
8399
|
+
Endpoints: output.Endpoints !== undefined && output.Endpoints !== null
|
|
8400
|
+
? deserializeAws_json1_1ExperienceEndpoints(output.Endpoints, context)
|
|
8401
|
+
: undefined,
|
|
8402
|
+
Id: smithy_client_1.expectString(output.Id),
|
|
8403
|
+
Name: smithy_client_1.expectString(output.Name),
|
|
8404
|
+
Status: smithy_client_1.expectString(output.Status),
|
|
8405
|
+
};
|
|
8406
|
+
};
|
|
8407
|
+
const deserializeAws_json1_1ExperiencesSummaryList = (output, context) => {
|
|
8408
|
+
return (output || [])
|
|
8409
|
+
.filter((e) => e != null)
|
|
8410
|
+
.map((entry) => {
|
|
8411
|
+
if (entry === null) {
|
|
8412
|
+
return null;
|
|
8413
|
+
}
|
|
8414
|
+
return deserializeAws_json1_1ExperiencesSummary(entry, context);
|
|
8415
|
+
});
|
|
8416
|
+
};
|
|
6801
8417
|
const deserializeAws_json1_1FacetResult = (output, context) => {
|
|
6802
8418
|
return {
|
|
6803
8419
|
DocumentAttributeKey: smithy_client_1.expectString(output.DocumentAttributeKey),
|
|
@@ -6817,6 +8433,32 @@ const deserializeAws_json1_1FacetResultList = (output, context) => {
|
|
|
6817
8433
|
return deserializeAws_json1_1FacetResult(entry, context);
|
|
6818
8434
|
});
|
|
6819
8435
|
};
|
|
8436
|
+
const deserializeAws_json1_1FailedEntity = (output, context) => {
|
|
8437
|
+
return {
|
|
8438
|
+
EntityId: smithy_client_1.expectString(output.EntityId),
|
|
8439
|
+
ErrorMessage: smithy_client_1.expectString(output.ErrorMessage),
|
|
8440
|
+
};
|
|
8441
|
+
};
|
|
8442
|
+
const deserializeAws_json1_1FailedEntityList = (output, context) => {
|
|
8443
|
+
return (output || [])
|
|
8444
|
+
.filter((e) => e != null)
|
|
8445
|
+
.map((entry) => {
|
|
8446
|
+
if (entry === null) {
|
|
8447
|
+
return null;
|
|
8448
|
+
}
|
|
8449
|
+
return deserializeAws_json1_1FailedEntity(entry, context);
|
|
8450
|
+
});
|
|
8451
|
+
};
|
|
8452
|
+
const deserializeAws_json1_1FaqIdsList = (output, context) => {
|
|
8453
|
+
return (output || [])
|
|
8454
|
+
.filter((e) => e != null)
|
|
8455
|
+
.map((entry) => {
|
|
8456
|
+
if (entry === null) {
|
|
8457
|
+
return null;
|
|
8458
|
+
}
|
|
8459
|
+
return smithy_client_1.expectString(entry);
|
|
8460
|
+
});
|
|
8461
|
+
};
|
|
6820
8462
|
const deserializeAws_json1_1FaqStatistics = (output, context) => {
|
|
6821
8463
|
return {
|
|
6822
8464
|
IndexedQuestionAnswersCount: smithy_client_1.expectInt32(output.IndexedQuestionAnswersCount),
|
|
@@ -6855,6 +8497,20 @@ const deserializeAws_json1_1GetQuerySuggestionsResponse = (output, context) => {
|
|
|
6855
8497
|
: undefined,
|
|
6856
8498
|
};
|
|
6857
8499
|
};
|
|
8500
|
+
const deserializeAws_json1_1GetSnapshotsResponse = (output, context) => {
|
|
8501
|
+
return {
|
|
8502
|
+
NextToken: smithy_client_1.expectString(output.NextToken),
|
|
8503
|
+
SnapShotTimeFilter: output.SnapShotTimeFilter !== undefined && output.SnapShotTimeFilter !== null
|
|
8504
|
+
? deserializeAws_json1_1TimeRange(output.SnapShotTimeFilter, context)
|
|
8505
|
+
: undefined,
|
|
8506
|
+
SnapshotsData: output.SnapshotsData !== undefined && output.SnapshotsData !== null
|
|
8507
|
+
? deserializeAws_json1_1SnapshotsDataRecords(output.SnapshotsData, context)
|
|
8508
|
+
: undefined,
|
|
8509
|
+
SnapshotsDataHeader: output.SnapshotsDataHeader !== undefined && output.SnapshotsDataHeader !== null
|
|
8510
|
+
? deserializeAws_json1_1SnapshotsDataHeaderFields(output.SnapshotsDataHeader, context)
|
|
8511
|
+
: undefined,
|
|
8512
|
+
};
|
|
8513
|
+
};
|
|
6858
8514
|
const deserializeAws_json1_1GoogleDriveConfiguration = (output, context) => {
|
|
6859
8515
|
return {
|
|
6860
8516
|
ExcludeMimeTypes: output.ExcludeMimeTypes !== undefined && output.ExcludeMimeTypes !== null
|
|
@@ -6925,6 +8581,15 @@ const deserializeAws_json1_1HighlightList = (output, context) => {
|
|
|
6925
8581
|
return deserializeAws_json1_1Highlight(entry, context);
|
|
6926
8582
|
});
|
|
6927
8583
|
};
|
|
8584
|
+
const deserializeAws_json1_1HookConfiguration = (output, context) => {
|
|
8585
|
+
return {
|
|
8586
|
+
InvocationCondition: output.InvocationCondition !== undefined && output.InvocationCondition !== null
|
|
8587
|
+
? deserializeAws_json1_1DocumentAttributeCondition(output.InvocationCondition, context)
|
|
8588
|
+
: undefined,
|
|
8589
|
+
LambdaArn: smithy_client_1.expectString(output.LambdaArn),
|
|
8590
|
+
S3Bucket: smithy_client_1.expectString(output.S3Bucket),
|
|
8591
|
+
};
|
|
8592
|
+
};
|
|
6928
8593
|
const deserializeAws_json1_1IndexConfigurationSummary = (output, context) => {
|
|
6929
8594
|
return {
|
|
6930
8595
|
CreatedAt: output.CreatedAt !== undefined && output.CreatedAt !== null
|
|
@@ -6959,11 +8624,37 @@ const deserializeAws_json1_1IndexStatistics = (output, context) => {
|
|
|
6959
8624
|
: undefined,
|
|
6960
8625
|
};
|
|
6961
8626
|
};
|
|
8627
|
+
const deserializeAws_json1_1InlineCustomDocumentEnrichmentConfiguration = (output, context) => {
|
|
8628
|
+
return {
|
|
8629
|
+
Condition: output.Condition !== undefined && output.Condition !== null
|
|
8630
|
+
? deserializeAws_json1_1DocumentAttributeCondition(output.Condition, context)
|
|
8631
|
+
: undefined,
|
|
8632
|
+
DocumentContentDeletion: smithy_client_1.expectBoolean(output.DocumentContentDeletion),
|
|
8633
|
+
Target: output.Target !== undefined && output.Target !== null
|
|
8634
|
+
? deserializeAws_json1_1DocumentAttributeTarget(output.Target, context)
|
|
8635
|
+
: undefined,
|
|
8636
|
+
};
|
|
8637
|
+
};
|
|
8638
|
+
const deserializeAws_json1_1InlineCustomDocumentEnrichmentConfigurationList = (output, context) => {
|
|
8639
|
+
return (output || [])
|
|
8640
|
+
.filter((e) => e != null)
|
|
8641
|
+
.map((entry) => {
|
|
8642
|
+
if (entry === null) {
|
|
8643
|
+
return null;
|
|
8644
|
+
}
|
|
8645
|
+
return deserializeAws_json1_1InlineCustomDocumentEnrichmentConfiguration(entry, context);
|
|
8646
|
+
});
|
|
8647
|
+
};
|
|
6962
8648
|
const deserializeAws_json1_1InternalServerException = (output, context) => {
|
|
6963
8649
|
return {
|
|
6964
8650
|
Message: smithy_client_1.expectString(output.Message),
|
|
6965
8651
|
};
|
|
6966
8652
|
};
|
|
8653
|
+
const deserializeAws_json1_1InvalidRequestException = (output, context) => {
|
|
8654
|
+
return {
|
|
8655
|
+
Message: smithy_client_1.expectString(output.Message),
|
|
8656
|
+
};
|
|
8657
|
+
};
|
|
6967
8658
|
const deserializeAws_json1_1JsonTokenTypeConfiguration = (output, context) => {
|
|
6968
8659
|
return {
|
|
6969
8660
|
GroupAttributeField: smithy_client_1.expectString(output.GroupAttributeField),
|
|
@@ -6997,6 +8688,30 @@ const deserializeAws_json1_1ListDataSourceSyncJobsResponse = (output, context) =
|
|
|
6997
8688
|
NextToken: smithy_client_1.expectString(output.NextToken),
|
|
6998
8689
|
};
|
|
6999
8690
|
};
|
|
8691
|
+
const deserializeAws_json1_1ListEntityPersonasResponse = (output, context) => {
|
|
8692
|
+
return {
|
|
8693
|
+
NextToken: smithy_client_1.expectString(output.NextToken),
|
|
8694
|
+
SummaryItems: output.SummaryItems !== undefined && output.SummaryItems !== null
|
|
8695
|
+
? deserializeAws_json1_1PersonasSummaryList(output.SummaryItems, context)
|
|
8696
|
+
: undefined,
|
|
8697
|
+
};
|
|
8698
|
+
};
|
|
8699
|
+
const deserializeAws_json1_1ListExperienceEntitiesResponse = (output, context) => {
|
|
8700
|
+
return {
|
|
8701
|
+
NextToken: smithy_client_1.expectString(output.NextToken),
|
|
8702
|
+
SummaryItems: output.SummaryItems !== undefined && output.SummaryItems !== null
|
|
8703
|
+
? deserializeAws_json1_1ExperienceEntitiesSummaryList(output.SummaryItems, context)
|
|
8704
|
+
: undefined,
|
|
8705
|
+
};
|
|
8706
|
+
};
|
|
8707
|
+
const deserializeAws_json1_1ListExperiencesResponse = (output, context) => {
|
|
8708
|
+
return {
|
|
8709
|
+
NextToken: smithy_client_1.expectString(output.NextToken),
|
|
8710
|
+
SummaryItems: output.SummaryItems !== undefined && output.SummaryItems !== null
|
|
8711
|
+
? deserializeAws_json1_1ExperiencesSummaryList(output.SummaryItems, context)
|
|
8712
|
+
: undefined,
|
|
8713
|
+
};
|
|
8714
|
+
};
|
|
7000
8715
|
const deserializeAws_json1_1ListFaqsResponse = (output, context) => {
|
|
7001
8716
|
return {
|
|
7002
8717
|
FaqSummaryItems: output.FaqSummaryItems !== undefined && output.FaqSummaryItems !== null
|
|
@@ -7093,6 +8808,28 @@ const deserializeAws_json1_1OneDriveUsers = (output, context) => {
|
|
|
7093
8808
|
: undefined,
|
|
7094
8809
|
};
|
|
7095
8810
|
};
|
|
8811
|
+
const deserializeAws_json1_1PersonasSummary = (output, context) => {
|
|
8812
|
+
return {
|
|
8813
|
+
CreatedAt: output.CreatedAt !== undefined && output.CreatedAt !== null
|
|
8814
|
+
? smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(output.CreatedAt)))
|
|
8815
|
+
: undefined,
|
|
8816
|
+
EntityId: smithy_client_1.expectString(output.EntityId),
|
|
8817
|
+
Persona: smithy_client_1.expectString(output.Persona),
|
|
8818
|
+
UpdatedAt: output.UpdatedAt !== undefined && output.UpdatedAt !== null
|
|
8819
|
+
? smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(output.UpdatedAt)))
|
|
8820
|
+
: undefined,
|
|
8821
|
+
};
|
|
8822
|
+
};
|
|
8823
|
+
const deserializeAws_json1_1PersonasSummaryList = (output, context) => {
|
|
8824
|
+
return (output || [])
|
|
8825
|
+
.filter((e) => e != null)
|
|
8826
|
+
.map((entry) => {
|
|
8827
|
+
if (entry === null) {
|
|
8828
|
+
return null;
|
|
8829
|
+
}
|
|
8830
|
+
return deserializeAws_json1_1PersonasSummary(entry, context);
|
|
8831
|
+
});
|
|
8832
|
+
};
|
|
7096
8833
|
const deserializeAws_json1_1ProxyConfiguration = (output, context) => {
|
|
7097
8834
|
return {
|
|
7098
8835
|
Credentials: smithy_client_1.expectString(output.Credentials),
|
|
@@ -7510,6 +9247,36 @@ const deserializeAws_json1_1SiteMapsList = (output, context) => {
|
|
|
7510
9247
|
return smithy_client_1.expectString(entry);
|
|
7511
9248
|
});
|
|
7512
9249
|
};
|
|
9250
|
+
const deserializeAws_json1_1SnapshotsDataHeaderFields = (output, context) => {
|
|
9251
|
+
return (output || [])
|
|
9252
|
+
.filter((e) => e != null)
|
|
9253
|
+
.map((entry) => {
|
|
9254
|
+
if (entry === null) {
|
|
9255
|
+
return null;
|
|
9256
|
+
}
|
|
9257
|
+
return smithy_client_1.expectString(entry);
|
|
9258
|
+
});
|
|
9259
|
+
};
|
|
9260
|
+
const deserializeAws_json1_1SnapshotsDataRecord = (output, context) => {
|
|
9261
|
+
return (output || [])
|
|
9262
|
+
.filter((e) => e != null)
|
|
9263
|
+
.map((entry) => {
|
|
9264
|
+
if (entry === null) {
|
|
9265
|
+
return null;
|
|
9266
|
+
}
|
|
9267
|
+
return smithy_client_1.expectString(entry);
|
|
9268
|
+
});
|
|
9269
|
+
};
|
|
9270
|
+
const deserializeAws_json1_1SnapshotsDataRecords = (output, context) => {
|
|
9271
|
+
return (output || [])
|
|
9272
|
+
.filter((e) => e != null)
|
|
9273
|
+
.map((entry) => {
|
|
9274
|
+
if (entry === null) {
|
|
9275
|
+
return null;
|
|
9276
|
+
}
|
|
9277
|
+
return deserializeAws_json1_1SnapshotsDataRecord(entry, context);
|
|
9278
|
+
});
|
|
9279
|
+
};
|
|
7513
9280
|
const deserializeAws_json1_1SqlConfiguration = (output, context) => {
|
|
7514
9281
|
return {
|
|
7515
9282
|
QueryIdentifiersEnclosingOption: smithy_client_1.expectString(output.QueryIdentifiersEnclosingOption),
|
|
@@ -7648,6 +9415,16 @@ const deserializeAws_json1_1ThrottlingException = (output, context) => {
|
|
|
7648
9415
|
Message: smithy_client_1.expectString(output.Message),
|
|
7649
9416
|
};
|
|
7650
9417
|
};
|
|
9418
|
+
const deserializeAws_json1_1TimeRange = (output, context) => {
|
|
9419
|
+
return {
|
|
9420
|
+
EndTime: output.EndTime !== undefined && output.EndTime !== null
|
|
9421
|
+
? smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(output.EndTime)))
|
|
9422
|
+
: undefined,
|
|
9423
|
+
StartTime: output.StartTime !== undefined && output.StartTime !== null
|
|
9424
|
+
? smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(output.StartTime)))
|
|
9425
|
+
: undefined,
|
|
9426
|
+
};
|
|
9427
|
+
};
|
|
7651
9428
|
const deserializeAws_json1_1UntagResourceResponse = (output, context) => {
|
|
7652
9429
|
return {};
|
|
7653
9430
|
};
|
|
@@ -7666,6 +9443,11 @@ const deserializeAws_json1_1UserGroupResolutionConfiguration = (output, context)
|
|
|
7666
9443
|
UserGroupResolutionMode: smithy_client_1.expectString(output.UserGroupResolutionMode),
|
|
7667
9444
|
};
|
|
7668
9445
|
};
|
|
9446
|
+
const deserializeAws_json1_1UserIdentityConfiguration = (output, context) => {
|
|
9447
|
+
return {
|
|
9448
|
+
IdentityAttributeName: smithy_client_1.expectString(output.IdentityAttributeName),
|
|
9449
|
+
};
|
|
9450
|
+
};
|
|
7669
9451
|
const deserializeAws_json1_1UserTokenConfiguration = (output, context) => {
|
|
7670
9452
|
return {
|
|
7671
9453
|
JsonTokenTypeConfiguration: output.JsonTokenTypeConfiguration !== undefined && output.JsonTokenTypeConfiguration !== null
|