@aws-sdk/client-kendra 3.41.0 → 3.45.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 +41 -0
- package/README.md +7 -7
- package/dist-cjs/Kendra.js +180 -0
- package/dist-cjs/commands/AssociateEntitiesToExperienceCommand.js +36 -0
- package/dist-cjs/commands/AssociatePersonasToEntitiesCommand.js +36 -0
- package/dist-cjs/commands/CreateExperienceCommand.js +36 -0
- package/dist-cjs/commands/DeleteExperienceCommand.js +36 -0
- package/dist-cjs/commands/DescribeExperienceCommand.js +36 -0
- package/dist-cjs/commands/DisassociateEntitiesFromExperienceCommand.js +36 -0
- package/dist-cjs/commands/DisassociatePersonasFromEntitiesCommand.js +36 -0
- package/dist-cjs/commands/GetSnapshotsCommand.js +36 -0
- package/dist-cjs/commands/ListEntityPersonasCommand.js +36 -0
- package/dist-cjs/commands/ListExperienceEntitiesCommand.js +36 -0
- package/dist-cjs/commands/ListExperiencesCommand.js +36 -0
- package/dist-cjs/commands/UpdateExperienceCommand.js +36 -0
- package/dist-cjs/commands/index.js +12 -0
- package/dist-cjs/endpoints.js +1 -0
- package/dist-cjs/models/models_0.js +345 -89
- 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 +2055 -280
- package/dist-es/Kendra.js +180 -0
- package/dist-es/commands/AssociateEntitiesToExperienceCommand.js +39 -0
- package/dist-es/commands/AssociatePersonasToEntitiesCommand.js +39 -0
- package/dist-es/commands/CreateExperienceCommand.js +39 -0
- package/dist-es/commands/DeleteExperienceCommand.js +39 -0
- package/dist-es/commands/DescribeExperienceCommand.js +39 -0
- package/dist-es/commands/DisassociateEntitiesFromExperienceCommand.js +39 -0
- package/dist-es/commands/DisassociatePersonasFromEntitiesCommand.js +39 -0
- package/dist-es/commands/GetSnapshotsCommand.js +39 -0
- package/dist-es/commands/ListEntityPersonasCommand.js +39 -0
- package/dist-es/commands/ListExperienceEntitiesCommand.js +39 -0
- package/dist-es/commands/ListExperiencesCommand.js +39 -0
- package/dist-es/commands/UpdateExperienceCommand.js +39 -0
- package/dist-es/commands/index.js +12 -0
- package/dist-es/endpoints.js +1 -0
- package/dist-es/models/models_0.js +248 -68
- 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 +2067 -271
- 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 +1323 -225
- 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 +613 -108
- 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 +5 -5
|
@@ -1,11 +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");
|
|
8
|
-
const
|
|
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;
|
|
9
29
|
const serializeAws_json1_1BatchDeleteDocumentCommand = async (input, context) => {
|
|
10
30
|
const headers = {
|
|
11
31
|
"content-type": "application/x-amz-json-1.1",
|
|
@@ -56,6 +76,16 @@ const serializeAws_json1_1CreateDataSourceCommand = async (input, context) => {
|
|
|
56
76
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
57
77
|
};
|
|
58
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;
|
|
59
89
|
const serializeAws_json1_1CreateFaqCommand = async (input, context) => {
|
|
60
90
|
const headers = {
|
|
61
91
|
"content-type": "application/x-amz-json-1.1",
|
|
@@ -106,6 +136,16 @@ const serializeAws_json1_1DeleteDataSourceCommand = async (input, context) => {
|
|
|
106
136
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
107
137
|
};
|
|
108
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;
|
|
109
149
|
const serializeAws_json1_1DeleteFaqCommand = async (input, context) => {
|
|
110
150
|
const headers = {
|
|
111
151
|
"content-type": "application/x-amz-json-1.1",
|
|
@@ -166,6 +206,16 @@ const serializeAws_json1_1DescribeDataSourceCommand = async (input, context) =>
|
|
|
166
206
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
167
207
|
};
|
|
168
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;
|
|
169
219
|
const serializeAws_json1_1DescribeFaqCommand = async (input, context) => {
|
|
170
220
|
const headers = {
|
|
171
221
|
"content-type": "application/x-amz-json-1.1",
|
|
@@ -226,6 +276,26 @@ const serializeAws_json1_1DescribeThesaurusCommand = async (input, context) => {
|
|
|
226
276
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
227
277
|
};
|
|
228
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;
|
|
229
299
|
const serializeAws_json1_1GetQuerySuggestionsCommand = async (input, context) => {
|
|
230
300
|
const headers = {
|
|
231
301
|
"content-type": "application/x-amz-json-1.1",
|
|
@@ -236,6 +306,16 @@ const serializeAws_json1_1GetQuerySuggestionsCommand = async (input, context) =>
|
|
|
236
306
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
237
307
|
};
|
|
238
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;
|
|
239
319
|
const serializeAws_json1_1ListDataSourcesCommand = async (input, context) => {
|
|
240
320
|
const headers = {
|
|
241
321
|
"content-type": "application/x-amz-json-1.1",
|
|
@@ -256,6 +336,36 @@ const serializeAws_json1_1ListDataSourceSyncJobsCommand = async (input, context)
|
|
|
256
336
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
257
337
|
};
|
|
258
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;
|
|
259
369
|
const serializeAws_json1_1ListFaqsCommand = async (input, context) => {
|
|
260
370
|
const headers = {
|
|
261
371
|
"content-type": "application/x-amz-json-1.1",
|
|
@@ -396,6 +506,16 @@ const serializeAws_json1_1UpdateDataSourceCommand = async (input, context) => {
|
|
|
396
506
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
397
507
|
};
|
|
398
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;
|
|
399
519
|
const serializeAws_json1_1UpdateIndexCommand = async (input, context) => {
|
|
400
520
|
const headers = {
|
|
401
521
|
"content-type": "application/x-amz-json-1.1",
|
|
@@ -436,21 +556,21 @@ const serializeAws_json1_1UpdateThesaurusCommand = async (input, context) => {
|
|
|
436
556
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
437
557
|
};
|
|
438
558
|
exports.serializeAws_json1_1UpdateThesaurusCommand = serializeAws_json1_1UpdateThesaurusCommand;
|
|
439
|
-
const
|
|
559
|
+
const deserializeAws_json1_1AssociateEntitiesToExperienceCommand = async (output, context) => {
|
|
440
560
|
if (output.statusCode >= 300) {
|
|
441
|
-
return
|
|
561
|
+
return deserializeAws_json1_1AssociateEntitiesToExperienceCommandError(output, context);
|
|
442
562
|
}
|
|
443
563
|
const data = await parseBody(output.body, context);
|
|
444
564
|
let contents = {};
|
|
445
|
-
contents =
|
|
565
|
+
contents = deserializeAws_json1_1AssociateEntitiesToExperienceResponse(data, context);
|
|
446
566
|
const response = {
|
|
447
567
|
$metadata: deserializeMetadata(output),
|
|
448
568
|
...contents,
|
|
449
569
|
};
|
|
450
570
|
return Promise.resolve(response);
|
|
451
571
|
};
|
|
452
|
-
exports.
|
|
453
|
-
const
|
|
572
|
+
exports.deserializeAws_json1_1AssociateEntitiesToExperienceCommand = deserializeAws_json1_1AssociateEntitiesToExperienceCommand;
|
|
573
|
+
const deserializeAws_json1_1AssociateEntitiesToExperienceCommandError = async (output, context) => {
|
|
454
574
|
const parsedOutput = {
|
|
455
575
|
...output,
|
|
456
576
|
body: await parseBody(output.body, context),
|
|
@@ -467,18 +587,18 @@ const deserializeAws_json1_1BatchDeleteDocumentCommandError = async (output, con
|
|
|
467
587
|
$metadata: deserializeMetadata(output),
|
|
468
588
|
};
|
|
469
589
|
break;
|
|
470
|
-
case "
|
|
471
|
-
case "com.amazonaws.kendra#
|
|
590
|
+
case "InternalServerException":
|
|
591
|
+
case "com.amazonaws.kendra#InternalServerException":
|
|
472
592
|
response = {
|
|
473
|
-
...(await
|
|
593
|
+
...(await deserializeAws_json1_1InternalServerExceptionResponse(parsedOutput, context)),
|
|
474
594
|
name: errorCode,
|
|
475
595
|
$metadata: deserializeMetadata(output),
|
|
476
596
|
};
|
|
477
597
|
break;
|
|
478
|
-
case "
|
|
479
|
-
case "com.amazonaws.kendra#
|
|
598
|
+
case "ResourceAlreadyExistException":
|
|
599
|
+
case "com.amazonaws.kendra#ResourceAlreadyExistException":
|
|
480
600
|
response = {
|
|
481
|
-
...(await
|
|
601
|
+
...(await deserializeAws_json1_1ResourceAlreadyExistExceptionResponse(parsedOutput, context)),
|
|
482
602
|
name: errorCode,
|
|
483
603
|
$metadata: deserializeMetadata(output),
|
|
484
604
|
};
|
|
@@ -523,21 +643,21 @@ const deserializeAws_json1_1BatchDeleteDocumentCommandError = async (output, con
|
|
|
523
643
|
delete response.Message;
|
|
524
644
|
return Promise.reject(Object.assign(new Error(message), response));
|
|
525
645
|
};
|
|
526
|
-
const
|
|
646
|
+
const deserializeAws_json1_1AssociatePersonasToEntitiesCommand = async (output, context) => {
|
|
527
647
|
if (output.statusCode >= 300) {
|
|
528
|
-
return
|
|
648
|
+
return deserializeAws_json1_1AssociatePersonasToEntitiesCommandError(output, context);
|
|
529
649
|
}
|
|
530
650
|
const data = await parseBody(output.body, context);
|
|
531
651
|
let contents = {};
|
|
532
|
-
contents =
|
|
652
|
+
contents = deserializeAws_json1_1AssociatePersonasToEntitiesResponse(data, context);
|
|
533
653
|
const response = {
|
|
534
654
|
$metadata: deserializeMetadata(output),
|
|
535
655
|
...contents,
|
|
536
656
|
};
|
|
537
657
|
return Promise.resolve(response);
|
|
538
658
|
};
|
|
539
|
-
exports.
|
|
540
|
-
const
|
|
659
|
+
exports.deserializeAws_json1_1AssociatePersonasToEntitiesCommand = deserializeAws_json1_1AssociatePersonasToEntitiesCommand;
|
|
660
|
+
const deserializeAws_json1_1AssociatePersonasToEntitiesCommandError = async (output, context) => {
|
|
541
661
|
const parsedOutput = {
|
|
542
662
|
...output,
|
|
543
663
|
body: await parseBody(output.body, context),
|
|
@@ -554,18 +674,18 @@ const deserializeAws_json1_1BatchGetDocumentStatusCommandError = async (output,
|
|
|
554
674
|
$metadata: deserializeMetadata(output),
|
|
555
675
|
};
|
|
556
676
|
break;
|
|
557
|
-
case "
|
|
558
|
-
case "com.amazonaws.kendra#
|
|
677
|
+
case "InternalServerException":
|
|
678
|
+
case "com.amazonaws.kendra#InternalServerException":
|
|
559
679
|
response = {
|
|
560
|
-
...(await
|
|
680
|
+
...(await deserializeAws_json1_1InternalServerExceptionResponse(parsedOutput, context)),
|
|
561
681
|
name: errorCode,
|
|
562
682
|
$metadata: deserializeMetadata(output),
|
|
563
683
|
};
|
|
564
684
|
break;
|
|
565
|
-
case "
|
|
566
|
-
case "com.amazonaws.kendra#
|
|
685
|
+
case "ResourceAlreadyExistException":
|
|
686
|
+
case "com.amazonaws.kendra#ResourceAlreadyExistException":
|
|
567
687
|
response = {
|
|
568
|
-
...(await
|
|
688
|
+
...(await deserializeAws_json1_1ResourceAlreadyExistExceptionResponse(parsedOutput, context)),
|
|
569
689
|
name: errorCode,
|
|
570
690
|
$metadata: deserializeMetadata(output),
|
|
571
691
|
};
|
|
@@ -610,21 +730,21 @@ const deserializeAws_json1_1BatchGetDocumentStatusCommandError = async (output,
|
|
|
610
730
|
delete response.Message;
|
|
611
731
|
return Promise.reject(Object.assign(new Error(message), response));
|
|
612
732
|
};
|
|
613
|
-
const
|
|
733
|
+
const deserializeAws_json1_1BatchDeleteDocumentCommand = async (output, context) => {
|
|
614
734
|
if (output.statusCode >= 300) {
|
|
615
|
-
return
|
|
735
|
+
return deserializeAws_json1_1BatchDeleteDocumentCommandError(output, context);
|
|
616
736
|
}
|
|
617
737
|
const data = await parseBody(output.body, context);
|
|
618
738
|
let contents = {};
|
|
619
|
-
contents =
|
|
739
|
+
contents = deserializeAws_json1_1BatchDeleteDocumentResponse(data, context);
|
|
620
740
|
const response = {
|
|
621
741
|
$metadata: deserializeMetadata(output),
|
|
622
742
|
...contents,
|
|
623
743
|
};
|
|
624
744
|
return Promise.resolve(response);
|
|
625
745
|
};
|
|
626
|
-
exports.
|
|
627
|
-
const
|
|
746
|
+
exports.deserializeAws_json1_1BatchDeleteDocumentCommand = deserializeAws_json1_1BatchDeleteDocumentCommand;
|
|
747
|
+
const deserializeAws_json1_1BatchDeleteDocumentCommandError = async (output, context) => {
|
|
628
748
|
const parsedOutput = {
|
|
629
749
|
...output,
|
|
630
750
|
body: await parseBody(output.body, context),
|
|
@@ -665,14 +785,6 @@ const deserializeAws_json1_1BatchPutDocumentCommandError = async (output, contex
|
|
|
665
785
|
$metadata: deserializeMetadata(output),
|
|
666
786
|
};
|
|
667
787
|
break;
|
|
668
|
-
case "ServiceQuotaExceededException":
|
|
669
|
-
case "com.amazonaws.kendra#ServiceQuotaExceededException":
|
|
670
|
-
response = {
|
|
671
|
-
...(await deserializeAws_json1_1ServiceQuotaExceededExceptionResponse(parsedOutput, context)),
|
|
672
|
-
name: errorCode,
|
|
673
|
-
$metadata: deserializeMetadata(output),
|
|
674
|
-
};
|
|
675
|
-
break;
|
|
676
788
|
case "ThrottlingException":
|
|
677
789
|
case "com.amazonaws.kendra#ThrottlingException":
|
|
678
790
|
response = {
|
|
@@ -705,18 +817,21 @@ const deserializeAws_json1_1BatchPutDocumentCommandError = async (output, contex
|
|
|
705
817
|
delete response.Message;
|
|
706
818
|
return Promise.reject(Object.assign(new Error(message), response));
|
|
707
819
|
};
|
|
708
|
-
const
|
|
820
|
+
const deserializeAws_json1_1BatchGetDocumentStatusCommand = async (output, context) => {
|
|
709
821
|
if (output.statusCode >= 300) {
|
|
710
|
-
return
|
|
822
|
+
return deserializeAws_json1_1BatchGetDocumentStatusCommandError(output, context);
|
|
711
823
|
}
|
|
712
|
-
await
|
|
824
|
+
const data = await parseBody(output.body, context);
|
|
825
|
+
let contents = {};
|
|
826
|
+
contents = deserializeAws_json1_1BatchGetDocumentStatusResponse(data, context);
|
|
713
827
|
const response = {
|
|
714
828
|
$metadata: deserializeMetadata(output),
|
|
829
|
+
...contents,
|
|
715
830
|
};
|
|
716
831
|
return Promise.resolve(response);
|
|
717
832
|
};
|
|
718
|
-
exports.
|
|
719
|
-
const
|
|
833
|
+
exports.deserializeAws_json1_1BatchGetDocumentStatusCommand = deserializeAws_json1_1BatchGetDocumentStatusCommand;
|
|
834
|
+
const deserializeAws_json1_1BatchGetDocumentStatusCommandError = async (output, context) => {
|
|
720
835
|
const parsedOutput = {
|
|
721
836
|
...output,
|
|
722
837
|
body: await parseBody(output.body, context),
|
|
@@ -789,21 +904,21 @@ const deserializeAws_json1_1ClearQuerySuggestionsCommandError = async (output, c
|
|
|
789
904
|
delete response.Message;
|
|
790
905
|
return Promise.reject(Object.assign(new Error(message), response));
|
|
791
906
|
};
|
|
792
|
-
const
|
|
907
|
+
const deserializeAws_json1_1BatchPutDocumentCommand = async (output, context) => {
|
|
793
908
|
if (output.statusCode >= 300) {
|
|
794
|
-
return
|
|
909
|
+
return deserializeAws_json1_1BatchPutDocumentCommandError(output, context);
|
|
795
910
|
}
|
|
796
911
|
const data = await parseBody(output.body, context);
|
|
797
912
|
let contents = {};
|
|
798
|
-
contents =
|
|
913
|
+
contents = deserializeAws_json1_1BatchPutDocumentResponse(data, context);
|
|
799
914
|
const response = {
|
|
800
915
|
$metadata: deserializeMetadata(output),
|
|
801
916
|
...contents,
|
|
802
917
|
};
|
|
803
918
|
return Promise.resolve(response);
|
|
804
919
|
};
|
|
805
|
-
exports.
|
|
806
|
-
const
|
|
920
|
+
exports.deserializeAws_json1_1BatchPutDocumentCommand = deserializeAws_json1_1BatchPutDocumentCommand;
|
|
921
|
+
const deserializeAws_json1_1BatchPutDocumentCommandError = async (output, context) => {
|
|
807
922
|
const parsedOutput = {
|
|
808
923
|
...output,
|
|
809
924
|
body: await parseBody(output.body, context),
|
|
@@ -836,14 +951,6 @@ const deserializeAws_json1_1CreateDataSourceCommandError = async (output, contex
|
|
|
836
951
|
$metadata: deserializeMetadata(output),
|
|
837
952
|
};
|
|
838
953
|
break;
|
|
839
|
-
case "ResourceAlreadyExistException":
|
|
840
|
-
case "com.amazonaws.kendra#ResourceAlreadyExistException":
|
|
841
|
-
response = {
|
|
842
|
-
...(await deserializeAws_json1_1ResourceAlreadyExistExceptionResponse(parsedOutput, context)),
|
|
843
|
-
name: errorCode,
|
|
844
|
-
$metadata: deserializeMetadata(output),
|
|
845
|
-
};
|
|
846
|
-
break;
|
|
847
954
|
case "ResourceNotFoundException":
|
|
848
955
|
case "com.amazonaws.kendra#ResourceNotFoundException":
|
|
849
956
|
response = {
|
|
@@ -892,21 +999,18 @@ const deserializeAws_json1_1CreateDataSourceCommandError = async (output, contex
|
|
|
892
999
|
delete response.Message;
|
|
893
1000
|
return Promise.reject(Object.assign(new Error(message), response));
|
|
894
1001
|
};
|
|
895
|
-
const
|
|
1002
|
+
const deserializeAws_json1_1ClearQuerySuggestionsCommand = async (output, context) => {
|
|
896
1003
|
if (output.statusCode >= 300) {
|
|
897
|
-
return
|
|
1004
|
+
return deserializeAws_json1_1ClearQuerySuggestionsCommandError(output, context);
|
|
898
1005
|
}
|
|
899
|
-
|
|
900
|
-
let contents = {};
|
|
901
|
-
contents = deserializeAws_json1_1CreateFaqResponse(data, context);
|
|
1006
|
+
await collectBody(output.body, context);
|
|
902
1007
|
const response = {
|
|
903
1008
|
$metadata: deserializeMetadata(output),
|
|
904
|
-
...contents,
|
|
905
1009
|
};
|
|
906
1010
|
return Promise.resolve(response);
|
|
907
1011
|
};
|
|
908
|
-
exports.
|
|
909
|
-
const
|
|
1012
|
+
exports.deserializeAws_json1_1ClearQuerySuggestionsCommand = deserializeAws_json1_1ClearQuerySuggestionsCommand;
|
|
1013
|
+
const deserializeAws_json1_1ClearQuerySuggestionsCommandError = async (output, context) => {
|
|
910
1014
|
const parsedOutput = {
|
|
911
1015
|
...output,
|
|
912
1016
|
body: await parseBody(output.body, context),
|
|
@@ -947,14 +1051,6 @@ const deserializeAws_json1_1CreateFaqCommandError = async (output, context) => {
|
|
|
947
1051
|
$metadata: deserializeMetadata(output),
|
|
948
1052
|
};
|
|
949
1053
|
break;
|
|
950
|
-
case "ServiceQuotaExceededException":
|
|
951
|
-
case "com.amazonaws.kendra#ServiceQuotaExceededException":
|
|
952
|
-
response = {
|
|
953
|
-
...(await deserializeAws_json1_1ServiceQuotaExceededExceptionResponse(parsedOutput, context)),
|
|
954
|
-
name: errorCode,
|
|
955
|
-
$metadata: deserializeMetadata(output),
|
|
956
|
-
};
|
|
957
|
-
break;
|
|
958
1054
|
case "ThrottlingException":
|
|
959
1055
|
case "com.amazonaws.kendra#ThrottlingException":
|
|
960
1056
|
response = {
|
|
@@ -987,21 +1083,21 @@ const deserializeAws_json1_1CreateFaqCommandError = async (output, context) => {
|
|
|
987
1083
|
delete response.Message;
|
|
988
1084
|
return Promise.reject(Object.assign(new Error(message), response));
|
|
989
1085
|
};
|
|
990
|
-
const
|
|
1086
|
+
const deserializeAws_json1_1CreateDataSourceCommand = async (output, context) => {
|
|
991
1087
|
if (output.statusCode >= 300) {
|
|
992
|
-
return
|
|
1088
|
+
return deserializeAws_json1_1CreateDataSourceCommandError(output, context);
|
|
993
1089
|
}
|
|
994
1090
|
const data = await parseBody(output.body, context);
|
|
995
1091
|
let contents = {};
|
|
996
|
-
contents =
|
|
1092
|
+
contents = deserializeAws_json1_1CreateDataSourceResponse(data, context);
|
|
997
1093
|
const response = {
|
|
998
1094
|
$metadata: deserializeMetadata(output),
|
|
999
1095
|
...contents,
|
|
1000
1096
|
};
|
|
1001
1097
|
return Promise.resolve(response);
|
|
1002
1098
|
};
|
|
1003
|
-
exports.
|
|
1004
|
-
const
|
|
1099
|
+
exports.deserializeAws_json1_1CreateDataSourceCommand = deserializeAws_json1_1CreateDataSourceCommand;
|
|
1100
|
+
const deserializeAws_json1_1CreateDataSourceCommandError = async (output, context) => {
|
|
1005
1101
|
const parsedOutput = {
|
|
1006
1102
|
...output,
|
|
1007
1103
|
body: await parseBody(output.body, context),
|
|
@@ -1042,6 +1138,14 @@ const deserializeAws_json1_1CreateIndexCommandError = async (output, context) =>
|
|
|
1042
1138
|
$metadata: deserializeMetadata(output),
|
|
1043
1139
|
};
|
|
1044
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;
|
|
1045
1149
|
case "ServiceQuotaExceededException":
|
|
1046
1150
|
case "com.amazonaws.kendra#ServiceQuotaExceededException":
|
|
1047
1151
|
response = {
|
|
@@ -1082,21 +1186,21 @@ const deserializeAws_json1_1CreateIndexCommandError = async (output, context) =>
|
|
|
1082
1186
|
delete response.Message;
|
|
1083
1187
|
return Promise.reject(Object.assign(new Error(message), response));
|
|
1084
1188
|
};
|
|
1085
|
-
const
|
|
1189
|
+
const deserializeAws_json1_1CreateExperienceCommand = async (output, context) => {
|
|
1086
1190
|
if (output.statusCode >= 300) {
|
|
1087
|
-
return
|
|
1191
|
+
return deserializeAws_json1_1CreateExperienceCommandError(output, context);
|
|
1088
1192
|
}
|
|
1089
1193
|
const data = await parseBody(output.body, context);
|
|
1090
1194
|
let contents = {};
|
|
1091
|
-
contents =
|
|
1195
|
+
contents = deserializeAws_json1_1CreateExperienceResponse(data, context);
|
|
1092
1196
|
const response = {
|
|
1093
1197
|
$metadata: deserializeMetadata(output),
|
|
1094
1198
|
...contents,
|
|
1095
1199
|
};
|
|
1096
1200
|
return Promise.resolve(response);
|
|
1097
1201
|
};
|
|
1098
|
-
exports.
|
|
1099
|
-
const
|
|
1202
|
+
exports.deserializeAws_json1_1CreateExperienceCommand = deserializeAws_json1_1CreateExperienceCommand;
|
|
1203
|
+
const deserializeAws_json1_1CreateExperienceCommandError = async (output, context) => {
|
|
1100
1204
|
const parsedOutput = {
|
|
1101
1205
|
...output,
|
|
1102
1206
|
body: await parseBody(output.body, context),
|
|
@@ -1177,21 +1281,21 @@ const deserializeAws_json1_1CreateQuerySuggestionsBlockListCommandError = async
|
|
|
1177
1281
|
delete response.Message;
|
|
1178
1282
|
return Promise.reject(Object.assign(new Error(message), response));
|
|
1179
1283
|
};
|
|
1180
|
-
const
|
|
1284
|
+
const deserializeAws_json1_1CreateFaqCommand = async (output, context) => {
|
|
1181
1285
|
if (output.statusCode >= 300) {
|
|
1182
|
-
return
|
|
1286
|
+
return deserializeAws_json1_1CreateFaqCommandError(output, context);
|
|
1183
1287
|
}
|
|
1184
1288
|
const data = await parseBody(output.body, context);
|
|
1185
1289
|
let contents = {};
|
|
1186
|
-
contents =
|
|
1290
|
+
contents = deserializeAws_json1_1CreateFaqResponse(data, context);
|
|
1187
1291
|
const response = {
|
|
1188
1292
|
$metadata: deserializeMetadata(output),
|
|
1189
1293
|
...contents,
|
|
1190
1294
|
};
|
|
1191
1295
|
return Promise.resolve(response);
|
|
1192
1296
|
};
|
|
1193
|
-
exports.
|
|
1194
|
-
const
|
|
1297
|
+
exports.deserializeAws_json1_1CreateFaqCommand = deserializeAws_json1_1CreateFaqCommand;
|
|
1298
|
+
const deserializeAws_json1_1CreateFaqCommandError = async (output, context) => {
|
|
1195
1299
|
const parsedOutput = {
|
|
1196
1300
|
...output,
|
|
1197
1301
|
body: await parseBody(output.body, context),
|
|
@@ -1272,18 +1376,21 @@ const deserializeAws_json1_1CreateThesaurusCommandError = async (output, context
|
|
|
1272
1376
|
delete response.Message;
|
|
1273
1377
|
return Promise.reject(Object.assign(new Error(message), response));
|
|
1274
1378
|
};
|
|
1275
|
-
const
|
|
1379
|
+
const deserializeAws_json1_1CreateIndexCommand = async (output, context) => {
|
|
1276
1380
|
if (output.statusCode >= 300) {
|
|
1277
|
-
return
|
|
1381
|
+
return deserializeAws_json1_1CreateIndexCommandError(output, context);
|
|
1278
1382
|
}
|
|
1279
|
-
await
|
|
1383
|
+
const data = await parseBody(output.body, context);
|
|
1384
|
+
let contents = {};
|
|
1385
|
+
contents = deserializeAws_json1_1CreateIndexResponse(data, context);
|
|
1280
1386
|
const response = {
|
|
1281
1387
|
$metadata: deserializeMetadata(output),
|
|
1388
|
+
...contents,
|
|
1282
1389
|
};
|
|
1283
1390
|
return Promise.resolve(response);
|
|
1284
1391
|
};
|
|
1285
|
-
exports.
|
|
1286
|
-
const
|
|
1392
|
+
exports.deserializeAws_json1_1CreateIndexCommand = deserializeAws_json1_1CreateIndexCommand;
|
|
1393
|
+
const deserializeAws_json1_1CreateIndexCommandError = async (output, context) => {
|
|
1287
1394
|
const parsedOutput = {
|
|
1288
1395
|
...output,
|
|
1289
1396
|
body: await parseBody(output.body, context),
|
|
@@ -1316,10 +1423,18 @@ const deserializeAws_json1_1DeleteDataSourceCommandError = async (output, contex
|
|
|
1316
1423
|
$metadata: deserializeMetadata(output),
|
|
1317
1424
|
};
|
|
1318
1425
|
break;
|
|
1319
|
-
case "
|
|
1320
|
-
case "com.amazonaws.kendra#
|
|
1426
|
+
case "ResourceAlreadyExistException":
|
|
1427
|
+
case "com.amazonaws.kendra#ResourceAlreadyExistException":
|
|
1321
1428
|
response = {
|
|
1322
|
-
...(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)),
|
|
1323
1438
|
name: errorCode,
|
|
1324
1439
|
$metadata: deserializeMetadata(output),
|
|
1325
1440
|
};
|
|
@@ -1356,18 +1471,21 @@ const deserializeAws_json1_1DeleteDataSourceCommandError = async (output, contex
|
|
|
1356
1471
|
delete response.Message;
|
|
1357
1472
|
return Promise.reject(Object.assign(new Error(message), response));
|
|
1358
1473
|
};
|
|
1359
|
-
const
|
|
1474
|
+
const deserializeAws_json1_1CreateQuerySuggestionsBlockListCommand = async (output, context) => {
|
|
1360
1475
|
if (output.statusCode >= 300) {
|
|
1361
|
-
return
|
|
1476
|
+
return deserializeAws_json1_1CreateQuerySuggestionsBlockListCommandError(output, context);
|
|
1362
1477
|
}
|
|
1363
|
-
await
|
|
1478
|
+
const data = await parseBody(output.body, context);
|
|
1479
|
+
let contents = {};
|
|
1480
|
+
contents = deserializeAws_json1_1CreateQuerySuggestionsBlockListResponse(data, context);
|
|
1364
1481
|
const response = {
|
|
1365
1482
|
$metadata: deserializeMetadata(output),
|
|
1483
|
+
...contents,
|
|
1366
1484
|
};
|
|
1367
1485
|
return Promise.resolve(response);
|
|
1368
1486
|
};
|
|
1369
|
-
exports.
|
|
1370
|
-
const
|
|
1487
|
+
exports.deserializeAws_json1_1CreateQuerySuggestionsBlockListCommand = deserializeAws_json1_1CreateQuerySuggestionsBlockListCommand;
|
|
1488
|
+
const deserializeAws_json1_1CreateQuerySuggestionsBlockListCommandError = async (output, context) => {
|
|
1371
1489
|
const parsedOutput = {
|
|
1372
1490
|
...output,
|
|
1373
1491
|
body: await parseBody(output.body, context),
|
|
@@ -1408,15 +1526,23 @@ const deserializeAws_json1_1DeleteFaqCommandError = async (output, context) => {
|
|
|
1408
1526
|
$metadata: deserializeMetadata(output),
|
|
1409
1527
|
};
|
|
1410
1528
|
break;
|
|
1411
|
-
case "
|
|
1412
|
-
case "com.amazonaws.kendra#
|
|
1529
|
+
case "ServiceQuotaExceededException":
|
|
1530
|
+
case "com.amazonaws.kendra#ServiceQuotaExceededException":
|
|
1413
1531
|
response = {
|
|
1414
|
-
...(await
|
|
1532
|
+
...(await deserializeAws_json1_1ServiceQuotaExceededExceptionResponse(parsedOutput, context)),
|
|
1415
1533
|
name: errorCode,
|
|
1416
1534
|
$metadata: deserializeMetadata(output),
|
|
1417
1535
|
};
|
|
1418
1536
|
break;
|
|
1419
|
-
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":
|
|
1420
1546
|
case "com.amazonaws.kendra#ValidationException":
|
|
1421
1547
|
response = {
|
|
1422
1548
|
...(await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context)),
|
|
@@ -1440,9 +1566,104 @@ const deserializeAws_json1_1DeleteFaqCommandError = async (output, context) => {
|
|
|
1440
1566
|
delete response.Message;
|
|
1441
1567
|
return Promise.reject(Object.assign(new Error(message), response));
|
|
1442
1568
|
};
|
|
1443
|
-
const
|
|
1569
|
+
const deserializeAws_json1_1CreateThesaurusCommand = async (output, context) => {
|
|
1444
1570
|
if (output.statusCode >= 300) {
|
|
1445
|
-
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);
|
|
1446
1667
|
}
|
|
1447
1668
|
await collectBody(output.body, context);
|
|
1448
1669
|
const response = {
|
|
@@ -1450,8 +1671,8 @@ const deserializeAws_json1_1DeleteIndexCommand = async (output, context) => {
|
|
|
1450
1671
|
};
|
|
1451
1672
|
return Promise.resolve(response);
|
|
1452
1673
|
};
|
|
1453
|
-
exports.
|
|
1454
|
-
const
|
|
1674
|
+
exports.deserializeAws_json1_1DeleteDataSourceCommand = deserializeAws_json1_1DeleteDataSourceCommand;
|
|
1675
|
+
const deserializeAws_json1_1DeleteDataSourceCommandError = async (output, context) => {
|
|
1455
1676
|
const parsedOutput = {
|
|
1456
1677
|
...output,
|
|
1457
1678
|
body: await parseBody(output.body, context),
|
|
@@ -1524,9 +1745,96 @@ const deserializeAws_json1_1DeleteIndexCommandError = async (output, context) =>
|
|
|
1524
1745
|
delete response.Message;
|
|
1525
1746
|
return Promise.reject(Object.assign(new Error(message), response));
|
|
1526
1747
|
};
|
|
1527
|
-
const
|
|
1748
|
+
const deserializeAws_json1_1DeleteExperienceCommand = async (output, context) => {
|
|
1528
1749
|
if (output.statusCode >= 300) {
|
|
1529
|
-
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);
|
|
1530
1838
|
}
|
|
1531
1839
|
await collectBody(output.body, context);
|
|
1532
1840
|
const response = {
|
|
@@ -1534,8 +1842,8 @@ const deserializeAws_json1_1DeletePrincipalMappingCommand = async (output, conte
|
|
|
1534
1842
|
};
|
|
1535
1843
|
return Promise.resolve(response);
|
|
1536
1844
|
};
|
|
1537
|
-
exports.
|
|
1538
|
-
const
|
|
1845
|
+
exports.deserializeAws_json1_1DeleteFaqCommand = deserializeAws_json1_1DeleteFaqCommand;
|
|
1846
|
+
const deserializeAws_json1_1DeleteFaqCommandError = async (output, context) => {
|
|
1539
1847
|
const parsedOutput = {
|
|
1540
1848
|
...output,
|
|
1541
1849
|
body: await parseBody(output.body, context),
|
|
@@ -1608,18 +1916,752 @@ const deserializeAws_json1_1DeletePrincipalMappingCommandError = async (output,
|
|
|
1608
1916
|
delete response.Message;
|
|
1609
1917
|
return Promise.reject(Object.assign(new Error(message), response));
|
|
1610
1918
|
};
|
|
1611
|
-
const
|
|
1919
|
+
const deserializeAws_json1_1DeleteIndexCommand = async (output, context) => {
|
|
1920
|
+
if (output.statusCode >= 300) {
|
|
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) => {
|
|
1612
2651
|
if (output.statusCode >= 300) {
|
|
1613
|
-
return
|
|
2652
|
+
return deserializeAws_json1_1DescribeQuerySuggestionsBlockListCommandError(output, context);
|
|
1614
2653
|
}
|
|
1615
|
-
await
|
|
2654
|
+
const data = await parseBody(output.body, context);
|
|
2655
|
+
let contents = {};
|
|
2656
|
+
contents = deserializeAws_json1_1DescribeQuerySuggestionsBlockListResponse(data, context);
|
|
1616
2657
|
const response = {
|
|
1617
2658
|
$metadata: deserializeMetadata(output),
|
|
2659
|
+
...contents,
|
|
1618
2660
|
};
|
|
1619
2661
|
return Promise.resolve(response);
|
|
1620
2662
|
};
|
|
1621
|
-
exports.
|
|
1622
|
-
const
|
|
2663
|
+
exports.deserializeAws_json1_1DescribeQuerySuggestionsBlockListCommand = deserializeAws_json1_1DescribeQuerySuggestionsBlockListCommand;
|
|
2664
|
+
const deserializeAws_json1_1DescribeQuerySuggestionsBlockListCommandError = async (output, context) => {
|
|
1623
2665
|
const parsedOutput = {
|
|
1624
2666
|
...output,
|
|
1625
2667
|
body: await parseBody(output.body, context),
|
|
@@ -1636,14 +2678,6 @@ const deserializeAws_json1_1DeleteQuerySuggestionsBlockListCommandError = async
|
|
|
1636
2678
|
$metadata: deserializeMetadata(output),
|
|
1637
2679
|
};
|
|
1638
2680
|
break;
|
|
1639
|
-
case "ConflictException":
|
|
1640
|
-
case "com.amazonaws.kendra#ConflictException":
|
|
1641
|
-
response = {
|
|
1642
|
-
...(await deserializeAws_json1_1ConflictExceptionResponse(parsedOutput, context)),
|
|
1643
|
-
name: errorCode,
|
|
1644
|
-
$metadata: deserializeMetadata(output),
|
|
1645
|
-
};
|
|
1646
|
-
break;
|
|
1647
2681
|
case "InternalServerException":
|
|
1648
2682
|
case "com.amazonaws.kendra#InternalServerException":
|
|
1649
2683
|
response = {
|
|
@@ -1692,18 +2726,21 @@ const deserializeAws_json1_1DeleteQuerySuggestionsBlockListCommandError = async
|
|
|
1692
2726
|
delete response.Message;
|
|
1693
2727
|
return Promise.reject(Object.assign(new Error(message), response));
|
|
1694
2728
|
};
|
|
1695
|
-
const
|
|
2729
|
+
const deserializeAws_json1_1DescribeQuerySuggestionsConfigCommand = async (output, context) => {
|
|
1696
2730
|
if (output.statusCode >= 300) {
|
|
1697
|
-
return
|
|
2731
|
+
return deserializeAws_json1_1DescribeQuerySuggestionsConfigCommandError(output, context);
|
|
1698
2732
|
}
|
|
1699
|
-
await
|
|
2733
|
+
const data = await parseBody(output.body, context);
|
|
2734
|
+
let contents = {};
|
|
2735
|
+
contents = deserializeAws_json1_1DescribeQuerySuggestionsConfigResponse(data, context);
|
|
1700
2736
|
const response = {
|
|
1701
2737
|
$metadata: deserializeMetadata(output),
|
|
2738
|
+
...contents,
|
|
1702
2739
|
};
|
|
1703
2740
|
return Promise.resolve(response);
|
|
1704
2741
|
};
|
|
1705
|
-
exports.
|
|
1706
|
-
const
|
|
2742
|
+
exports.deserializeAws_json1_1DescribeQuerySuggestionsConfigCommand = deserializeAws_json1_1DescribeQuerySuggestionsConfigCommand;
|
|
2743
|
+
const deserializeAws_json1_1DescribeQuerySuggestionsConfigCommandError = async (output, context) => {
|
|
1707
2744
|
const parsedOutput = {
|
|
1708
2745
|
...output,
|
|
1709
2746
|
body: await parseBody(output.body, context),
|
|
@@ -1720,14 +2757,6 @@ const deserializeAws_json1_1DeleteThesaurusCommandError = async (output, context
|
|
|
1720
2757
|
$metadata: deserializeMetadata(output),
|
|
1721
2758
|
};
|
|
1722
2759
|
break;
|
|
1723
|
-
case "ConflictException":
|
|
1724
|
-
case "com.amazonaws.kendra#ConflictException":
|
|
1725
|
-
response = {
|
|
1726
|
-
...(await deserializeAws_json1_1ConflictExceptionResponse(parsedOutput, context)),
|
|
1727
|
-
name: errorCode,
|
|
1728
|
-
$metadata: deserializeMetadata(output),
|
|
1729
|
-
};
|
|
1730
|
-
break;
|
|
1731
2760
|
case "InternalServerException":
|
|
1732
2761
|
case "com.amazonaws.kendra#InternalServerException":
|
|
1733
2762
|
response = {
|
|
@@ -1776,21 +2805,21 @@ const deserializeAws_json1_1DeleteThesaurusCommandError = async (output, context
|
|
|
1776
2805
|
delete response.Message;
|
|
1777
2806
|
return Promise.reject(Object.assign(new Error(message), response));
|
|
1778
2807
|
};
|
|
1779
|
-
const
|
|
2808
|
+
const deserializeAws_json1_1DescribeThesaurusCommand = async (output, context) => {
|
|
1780
2809
|
if (output.statusCode >= 300) {
|
|
1781
|
-
return
|
|
2810
|
+
return deserializeAws_json1_1DescribeThesaurusCommandError(output, context);
|
|
1782
2811
|
}
|
|
1783
2812
|
const data = await parseBody(output.body, context);
|
|
1784
2813
|
let contents = {};
|
|
1785
|
-
contents =
|
|
2814
|
+
contents = deserializeAws_json1_1DescribeThesaurusResponse(data, context);
|
|
1786
2815
|
const response = {
|
|
1787
2816
|
$metadata: deserializeMetadata(output),
|
|
1788
2817
|
...contents,
|
|
1789
2818
|
};
|
|
1790
2819
|
return Promise.resolve(response);
|
|
1791
2820
|
};
|
|
1792
|
-
exports.
|
|
1793
|
-
const
|
|
2821
|
+
exports.deserializeAws_json1_1DescribeThesaurusCommand = deserializeAws_json1_1DescribeThesaurusCommand;
|
|
2822
|
+
const deserializeAws_json1_1DescribeThesaurusCommandError = async (output, context) => {
|
|
1794
2823
|
const parsedOutput = {
|
|
1795
2824
|
...output,
|
|
1796
2825
|
body: await parseBody(output.body, context),
|
|
@@ -1855,21 +2884,21 @@ const deserializeAws_json1_1DescribeDataSourceCommandError = async (output, cont
|
|
|
1855
2884
|
delete response.Message;
|
|
1856
2885
|
return Promise.reject(Object.assign(new Error(message), response));
|
|
1857
2886
|
};
|
|
1858
|
-
const
|
|
2887
|
+
const deserializeAws_json1_1DisassociateEntitiesFromExperienceCommand = async (output, context) => {
|
|
1859
2888
|
if (output.statusCode >= 300) {
|
|
1860
|
-
return
|
|
2889
|
+
return deserializeAws_json1_1DisassociateEntitiesFromExperienceCommandError(output, context);
|
|
1861
2890
|
}
|
|
1862
2891
|
const data = await parseBody(output.body, context);
|
|
1863
2892
|
let contents = {};
|
|
1864
|
-
contents =
|
|
2893
|
+
contents = deserializeAws_json1_1DisassociateEntitiesFromExperienceResponse(data, context);
|
|
1865
2894
|
const response = {
|
|
1866
2895
|
$metadata: deserializeMetadata(output),
|
|
1867
2896
|
...contents,
|
|
1868
2897
|
};
|
|
1869
2898
|
return Promise.resolve(response);
|
|
1870
2899
|
};
|
|
1871
|
-
exports.
|
|
1872
|
-
const
|
|
2900
|
+
exports.deserializeAws_json1_1DisassociateEntitiesFromExperienceCommand = deserializeAws_json1_1DisassociateEntitiesFromExperienceCommand;
|
|
2901
|
+
const deserializeAws_json1_1DisassociateEntitiesFromExperienceCommandError = async (output, context) => {
|
|
1873
2902
|
const parsedOutput = {
|
|
1874
2903
|
...output,
|
|
1875
2904
|
body: await parseBody(output.body, context),
|
|
@@ -1934,21 +2963,21 @@ const deserializeAws_json1_1DescribeFaqCommandError = async (output, context) =>
|
|
|
1934
2963
|
delete response.Message;
|
|
1935
2964
|
return Promise.reject(Object.assign(new Error(message), response));
|
|
1936
2965
|
};
|
|
1937
|
-
const
|
|
2966
|
+
const deserializeAws_json1_1DisassociatePersonasFromEntitiesCommand = async (output, context) => {
|
|
1938
2967
|
if (output.statusCode >= 300) {
|
|
1939
|
-
return
|
|
2968
|
+
return deserializeAws_json1_1DisassociatePersonasFromEntitiesCommandError(output, context);
|
|
1940
2969
|
}
|
|
1941
2970
|
const data = await parseBody(output.body, context);
|
|
1942
2971
|
let contents = {};
|
|
1943
|
-
contents =
|
|
2972
|
+
contents = deserializeAws_json1_1DisassociatePersonasFromEntitiesResponse(data, context);
|
|
1944
2973
|
const response = {
|
|
1945
2974
|
$metadata: deserializeMetadata(output),
|
|
1946
2975
|
...contents,
|
|
1947
2976
|
};
|
|
1948
2977
|
return Promise.resolve(response);
|
|
1949
2978
|
};
|
|
1950
|
-
exports.
|
|
1951
|
-
const
|
|
2979
|
+
exports.deserializeAws_json1_1DisassociatePersonasFromEntitiesCommand = deserializeAws_json1_1DisassociatePersonasFromEntitiesCommand;
|
|
2980
|
+
const deserializeAws_json1_1DisassociatePersonasFromEntitiesCommandError = async (output, context) => {
|
|
1952
2981
|
const parsedOutput = {
|
|
1953
2982
|
...output,
|
|
1954
2983
|
body: await parseBody(output.body, context),
|
|
@@ -2013,21 +3042,21 @@ const deserializeAws_json1_1DescribeIndexCommandError = async (output, context)
|
|
|
2013
3042
|
delete response.Message;
|
|
2014
3043
|
return Promise.reject(Object.assign(new Error(message), response));
|
|
2015
3044
|
};
|
|
2016
|
-
const
|
|
3045
|
+
const deserializeAws_json1_1GetQuerySuggestionsCommand = async (output, context) => {
|
|
2017
3046
|
if (output.statusCode >= 300) {
|
|
2018
|
-
return
|
|
3047
|
+
return deserializeAws_json1_1GetQuerySuggestionsCommandError(output, context);
|
|
2019
3048
|
}
|
|
2020
3049
|
const data = await parseBody(output.body, context);
|
|
2021
3050
|
let contents = {};
|
|
2022
|
-
contents =
|
|
3051
|
+
contents = deserializeAws_json1_1GetQuerySuggestionsResponse(data, context);
|
|
2023
3052
|
const response = {
|
|
2024
3053
|
$metadata: deserializeMetadata(output),
|
|
2025
3054
|
...contents,
|
|
2026
3055
|
};
|
|
2027
3056
|
return Promise.resolve(response);
|
|
2028
3057
|
};
|
|
2029
|
-
exports.
|
|
2030
|
-
const
|
|
3058
|
+
exports.deserializeAws_json1_1GetQuerySuggestionsCommand = deserializeAws_json1_1GetQuerySuggestionsCommand;
|
|
3059
|
+
const deserializeAws_json1_1GetQuerySuggestionsCommandError = async (output, context) => {
|
|
2031
3060
|
const parsedOutput = {
|
|
2032
3061
|
...output,
|
|
2033
3062
|
body: await parseBody(output.body, context),
|
|
@@ -2044,6 +3073,14 @@ const deserializeAws_json1_1DescribePrincipalMappingCommandError = async (output
|
|
|
2044
3073
|
$metadata: deserializeMetadata(output),
|
|
2045
3074
|
};
|
|
2046
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;
|
|
2047
3084
|
case "InternalServerException":
|
|
2048
3085
|
case "com.amazonaws.kendra#InternalServerException":
|
|
2049
3086
|
response = {
|
|
@@ -2060,6 +3097,14 @@ const deserializeAws_json1_1DescribePrincipalMappingCommandError = async (output
|
|
|
2060
3097
|
$metadata: deserializeMetadata(output),
|
|
2061
3098
|
};
|
|
2062
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;
|
|
2063
3108
|
case "ThrottlingException":
|
|
2064
3109
|
case "com.amazonaws.kendra#ThrottlingException":
|
|
2065
3110
|
response = {
|
|
@@ -2092,21 +3137,21 @@ const deserializeAws_json1_1DescribePrincipalMappingCommandError = async (output
|
|
|
2092
3137
|
delete response.Message;
|
|
2093
3138
|
return Promise.reject(Object.assign(new Error(message), response));
|
|
2094
3139
|
};
|
|
2095
|
-
const
|
|
3140
|
+
const deserializeAws_json1_1GetSnapshotsCommand = async (output, context) => {
|
|
2096
3141
|
if (output.statusCode >= 300) {
|
|
2097
|
-
return
|
|
3142
|
+
return deserializeAws_json1_1GetSnapshotsCommandError(output, context);
|
|
2098
3143
|
}
|
|
2099
3144
|
const data = await parseBody(output.body, context);
|
|
2100
3145
|
let contents = {};
|
|
2101
|
-
contents =
|
|
3146
|
+
contents = deserializeAws_json1_1GetSnapshotsResponse(data, context);
|
|
2102
3147
|
const response = {
|
|
2103
3148
|
$metadata: deserializeMetadata(output),
|
|
2104
3149
|
...contents,
|
|
2105
3150
|
};
|
|
2106
3151
|
return Promise.resolve(response);
|
|
2107
3152
|
};
|
|
2108
|
-
exports.
|
|
2109
|
-
const
|
|
3153
|
+
exports.deserializeAws_json1_1GetSnapshotsCommand = deserializeAws_json1_1GetSnapshotsCommand;
|
|
3154
|
+
const deserializeAws_json1_1GetSnapshotsCommandError = async (output, context) => {
|
|
2110
3155
|
const parsedOutput = {
|
|
2111
3156
|
...output,
|
|
2112
3157
|
body: await parseBody(output.body, context),
|
|
@@ -2131,26 +3176,18 @@ const deserializeAws_json1_1DescribeQuerySuggestionsBlockListCommandError = asyn
|
|
|
2131
3176
|
$metadata: deserializeMetadata(output),
|
|
2132
3177
|
};
|
|
2133
3178
|
break;
|
|
2134
|
-
case "
|
|
2135
|
-
case "com.amazonaws.kendra#
|
|
2136
|
-
response = {
|
|
2137
|
-
...(await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
2138
|
-
name: errorCode,
|
|
2139
|
-
$metadata: deserializeMetadata(output),
|
|
2140
|
-
};
|
|
2141
|
-
break;
|
|
2142
|
-
case "ThrottlingException":
|
|
2143
|
-
case "com.amazonaws.kendra#ThrottlingException":
|
|
3179
|
+
case "InvalidRequestException":
|
|
3180
|
+
case "com.amazonaws.kendra#InvalidRequestException":
|
|
2144
3181
|
response = {
|
|
2145
|
-
...(await
|
|
3182
|
+
...(await deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context)),
|
|
2146
3183
|
name: errorCode,
|
|
2147
3184
|
$metadata: deserializeMetadata(output),
|
|
2148
3185
|
};
|
|
2149
3186
|
break;
|
|
2150
|
-
case "
|
|
2151
|
-
case "com.amazonaws.kendra#
|
|
3187
|
+
case "ResourceNotFoundException":
|
|
3188
|
+
case "com.amazonaws.kendra#ResourceNotFoundException":
|
|
2152
3189
|
response = {
|
|
2153
|
-
...(await
|
|
3190
|
+
...(await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
2154
3191
|
name: errorCode,
|
|
2155
3192
|
$metadata: deserializeMetadata(output),
|
|
2156
3193
|
};
|
|
@@ -2171,21 +3208,21 @@ const deserializeAws_json1_1DescribeQuerySuggestionsBlockListCommandError = asyn
|
|
|
2171
3208
|
delete response.Message;
|
|
2172
3209
|
return Promise.reject(Object.assign(new Error(message), response));
|
|
2173
3210
|
};
|
|
2174
|
-
const
|
|
3211
|
+
const deserializeAws_json1_1ListDataSourcesCommand = async (output, context) => {
|
|
2175
3212
|
if (output.statusCode >= 300) {
|
|
2176
|
-
return
|
|
3213
|
+
return deserializeAws_json1_1ListDataSourcesCommandError(output, context);
|
|
2177
3214
|
}
|
|
2178
3215
|
const data = await parseBody(output.body, context);
|
|
2179
3216
|
let contents = {};
|
|
2180
|
-
contents =
|
|
3217
|
+
contents = deserializeAws_json1_1ListDataSourcesResponse(data, context);
|
|
2181
3218
|
const response = {
|
|
2182
3219
|
$metadata: deserializeMetadata(output),
|
|
2183
3220
|
...contents,
|
|
2184
3221
|
};
|
|
2185
3222
|
return Promise.resolve(response);
|
|
2186
3223
|
};
|
|
2187
|
-
exports.
|
|
2188
|
-
const
|
|
3224
|
+
exports.deserializeAws_json1_1ListDataSourcesCommand = deserializeAws_json1_1ListDataSourcesCommand;
|
|
3225
|
+
const deserializeAws_json1_1ListDataSourcesCommandError = async (output, context) => {
|
|
2189
3226
|
const parsedOutput = {
|
|
2190
3227
|
...output,
|
|
2191
3228
|
body: await parseBody(output.body, context),
|
|
@@ -2250,21 +3287,21 @@ const deserializeAws_json1_1DescribeQuerySuggestionsConfigCommandError = async (
|
|
|
2250
3287
|
delete response.Message;
|
|
2251
3288
|
return Promise.reject(Object.assign(new Error(message), response));
|
|
2252
3289
|
};
|
|
2253
|
-
const
|
|
3290
|
+
const deserializeAws_json1_1ListDataSourceSyncJobsCommand = async (output, context) => {
|
|
2254
3291
|
if (output.statusCode >= 300) {
|
|
2255
|
-
return
|
|
3292
|
+
return deserializeAws_json1_1ListDataSourceSyncJobsCommandError(output, context);
|
|
2256
3293
|
}
|
|
2257
3294
|
const data = await parseBody(output.body, context);
|
|
2258
3295
|
let contents = {};
|
|
2259
|
-
contents =
|
|
3296
|
+
contents = deserializeAws_json1_1ListDataSourceSyncJobsResponse(data, context);
|
|
2260
3297
|
const response = {
|
|
2261
3298
|
$metadata: deserializeMetadata(output),
|
|
2262
3299
|
...contents,
|
|
2263
3300
|
};
|
|
2264
3301
|
return Promise.resolve(response);
|
|
2265
3302
|
};
|
|
2266
|
-
exports.
|
|
2267
|
-
const
|
|
3303
|
+
exports.deserializeAws_json1_1ListDataSourceSyncJobsCommand = deserializeAws_json1_1ListDataSourceSyncJobsCommand;
|
|
3304
|
+
const deserializeAws_json1_1ListDataSourceSyncJobsCommandError = async (output, context) => {
|
|
2268
3305
|
const parsedOutput = {
|
|
2269
3306
|
...output,
|
|
2270
3307
|
body: await parseBody(output.body, context),
|
|
@@ -2281,6 +3318,14 @@ const deserializeAws_json1_1DescribeThesaurusCommandError = async (output, conte
|
|
|
2281
3318
|
$metadata: deserializeMetadata(output),
|
|
2282
3319
|
};
|
|
2283
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;
|
|
2284
3329
|
case "InternalServerException":
|
|
2285
3330
|
case "com.amazonaws.kendra#InternalServerException":
|
|
2286
3331
|
response = {
|
|
@@ -2329,21 +3374,21 @@ const deserializeAws_json1_1DescribeThesaurusCommandError = async (output, conte
|
|
|
2329
3374
|
delete response.Message;
|
|
2330
3375
|
return Promise.reject(Object.assign(new Error(message), response));
|
|
2331
3376
|
};
|
|
2332
|
-
const
|
|
3377
|
+
const deserializeAws_json1_1ListEntityPersonasCommand = async (output, context) => {
|
|
2333
3378
|
if (output.statusCode >= 300) {
|
|
2334
|
-
return
|
|
3379
|
+
return deserializeAws_json1_1ListEntityPersonasCommandError(output, context);
|
|
2335
3380
|
}
|
|
2336
3381
|
const data = await parseBody(output.body, context);
|
|
2337
3382
|
let contents = {};
|
|
2338
|
-
contents =
|
|
3383
|
+
contents = deserializeAws_json1_1ListEntityPersonasResponse(data, context);
|
|
2339
3384
|
const response = {
|
|
2340
3385
|
$metadata: deserializeMetadata(output),
|
|
2341
3386
|
...contents,
|
|
2342
3387
|
};
|
|
2343
3388
|
return Promise.resolve(response);
|
|
2344
3389
|
};
|
|
2345
|
-
exports.
|
|
2346
|
-
const
|
|
3390
|
+
exports.deserializeAws_json1_1ListEntityPersonasCommand = deserializeAws_json1_1ListEntityPersonasCommand;
|
|
3391
|
+
const deserializeAws_json1_1ListEntityPersonasCommandError = async (output, context) => {
|
|
2347
3392
|
const parsedOutput = {
|
|
2348
3393
|
...output,
|
|
2349
3394
|
body: await parseBody(output.body, context),
|
|
@@ -2360,14 +3405,6 @@ const deserializeAws_json1_1GetQuerySuggestionsCommandError = async (output, con
|
|
|
2360
3405
|
$metadata: deserializeMetadata(output),
|
|
2361
3406
|
};
|
|
2362
3407
|
break;
|
|
2363
|
-
case "ConflictException":
|
|
2364
|
-
case "com.amazonaws.kendra#ConflictException":
|
|
2365
|
-
response = {
|
|
2366
|
-
...(await deserializeAws_json1_1ConflictExceptionResponse(parsedOutput, context)),
|
|
2367
|
-
name: errorCode,
|
|
2368
|
-
$metadata: deserializeMetadata(output),
|
|
2369
|
-
};
|
|
2370
|
-
break;
|
|
2371
3408
|
case "InternalServerException":
|
|
2372
3409
|
case "com.amazonaws.kendra#InternalServerException":
|
|
2373
3410
|
response = {
|
|
@@ -2384,14 +3421,6 @@ const deserializeAws_json1_1GetQuerySuggestionsCommandError = async (output, con
|
|
|
2384
3421
|
$metadata: deserializeMetadata(output),
|
|
2385
3422
|
};
|
|
2386
3423
|
break;
|
|
2387
|
-
case "ServiceQuotaExceededException":
|
|
2388
|
-
case "com.amazonaws.kendra#ServiceQuotaExceededException":
|
|
2389
|
-
response = {
|
|
2390
|
-
...(await deserializeAws_json1_1ServiceQuotaExceededExceptionResponse(parsedOutput, context)),
|
|
2391
|
-
name: errorCode,
|
|
2392
|
-
$metadata: deserializeMetadata(output),
|
|
2393
|
-
};
|
|
2394
|
-
break;
|
|
2395
3424
|
case "ThrottlingException":
|
|
2396
3425
|
case "com.amazonaws.kendra#ThrottlingException":
|
|
2397
3426
|
response = {
|
|
@@ -2424,21 +3453,21 @@ const deserializeAws_json1_1GetQuerySuggestionsCommandError = async (output, con
|
|
|
2424
3453
|
delete response.Message;
|
|
2425
3454
|
return Promise.reject(Object.assign(new Error(message), response));
|
|
2426
3455
|
};
|
|
2427
|
-
const
|
|
3456
|
+
const deserializeAws_json1_1ListExperienceEntitiesCommand = async (output, context) => {
|
|
2428
3457
|
if (output.statusCode >= 300) {
|
|
2429
|
-
return
|
|
3458
|
+
return deserializeAws_json1_1ListExperienceEntitiesCommandError(output, context);
|
|
2430
3459
|
}
|
|
2431
3460
|
const data = await parseBody(output.body, context);
|
|
2432
3461
|
let contents = {};
|
|
2433
|
-
contents =
|
|
3462
|
+
contents = deserializeAws_json1_1ListExperienceEntitiesResponse(data, context);
|
|
2434
3463
|
const response = {
|
|
2435
3464
|
$metadata: deserializeMetadata(output),
|
|
2436
3465
|
...contents,
|
|
2437
3466
|
};
|
|
2438
3467
|
return Promise.resolve(response);
|
|
2439
3468
|
};
|
|
2440
|
-
exports.
|
|
2441
|
-
const
|
|
3469
|
+
exports.deserializeAws_json1_1ListExperienceEntitiesCommand = deserializeAws_json1_1ListExperienceEntitiesCommand;
|
|
3470
|
+
const deserializeAws_json1_1ListExperienceEntitiesCommandError = async (output, context) => {
|
|
2442
3471
|
const parsedOutput = {
|
|
2443
3472
|
...output,
|
|
2444
3473
|
body: await parseBody(output.body, context),
|
|
@@ -2503,21 +3532,21 @@ const deserializeAws_json1_1ListDataSourcesCommandError = async (output, context
|
|
|
2503
3532
|
delete response.Message;
|
|
2504
3533
|
return Promise.reject(Object.assign(new Error(message), response));
|
|
2505
3534
|
};
|
|
2506
|
-
const
|
|
3535
|
+
const deserializeAws_json1_1ListExperiencesCommand = async (output, context) => {
|
|
2507
3536
|
if (output.statusCode >= 300) {
|
|
2508
|
-
return
|
|
3537
|
+
return deserializeAws_json1_1ListExperiencesCommandError(output, context);
|
|
2509
3538
|
}
|
|
2510
3539
|
const data = await parseBody(output.body, context);
|
|
2511
3540
|
let contents = {};
|
|
2512
|
-
contents =
|
|
3541
|
+
contents = deserializeAws_json1_1ListExperiencesResponse(data, context);
|
|
2513
3542
|
const response = {
|
|
2514
3543
|
$metadata: deserializeMetadata(output),
|
|
2515
3544
|
...contents,
|
|
2516
3545
|
};
|
|
2517
3546
|
return Promise.resolve(response);
|
|
2518
3547
|
};
|
|
2519
|
-
exports.
|
|
2520
|
-
const
|
|
3548
|
+
exports.deserializeAws_json1_1ListExperiencesCommand = deserializeAws_json1_1ListExperiencesCommand;
|
|
3549
|
+
const deserializeAws_json1_1ListExperiencesCommandError = async (output, context) => {
|
|
2521
3550
|
const parsedOutput = {
|
|
2522
3551
|
...output,
|
|
2523
3552
|
body: await parseBody(output.body, context),
|
|
@@ -2534,14 +3563,6 @@ const deserializeAws_json1_1ListDataSourceSyncJobsCommandError = async (output,
|
|
|
2534
3563
|
$metadata: deserializeMetadata(output),
|
|
2535
3564
|
};
|
|
2536
3565
|
break;
|
|
2537
|
-
case "ConflictException":
|
|
2538
|
-
case "com.amazonaws.kendra#ConflictException":
|
|
2539
|
-
response = {
|
|
2540
|
-
...(await deserializeAws_json1_1ConflictExceptionResponse(parsedOutput, context)),
|
|
2541
|
-
name: errorCode,
|
|
2542
|
-
$metadata: deserializeMetadata(output),
|
|
2543
|
-
};
|
|
2544
|
-
break;
|
|
2545
3566
|
case "InternalServerException":
|
|
2546
3567
|
case "com.amazonaws.kendra#InternalServerException":
|
|
2547
3568
|
response = {
|
|
@@ -3506,21 +4527,100 @@ const deserializeAws_json1_1SubmitFeedbackCommandError = async (output, context)
|
|
|
3506
4527
|
delete response.Message;
|
|
3507
4528
|
return Promise.reject(Object.assign(new Error(message), response));
|
|
3508
4529
|
};
|
|
3509
|
-
const deserializeAws_json1_1TagResourceCommand = async (output, context) => {
|
|
4530
|
+
const deserializeAws_json1_1TagResourceCommand = async (output, context) => {
|
|
4531
|
+
if (output.statusCode >= 300) {
|
|
4532
|
+
return deserializeAws_json1_1TagResourceCommandError(output, context);
|
|
4533
|
+
}
|
|
4534
|
+
const data = await parseBody(output.body, context);
|
|
4535
|
+
let contents = {};
|
|
4536
|
+
contents = deserializeAws_json1_1TagResourceResponse(data, context);
|
|
4537
|
+
const response = {
|
|
4538
|
+
$metadata: deserializeMetadata(output),
|
|
4539
|
+
...contents,
|
|
4540
|
+
};
|
|
4541
|
+
return Promise.resolve(response);
|
|
4542
|
+
};
|
|
4543
|
+
exports.deserializeAws_json1_1TagResourceCommand = deserializeAws_json1_1TagResourceCommand;
|
|
4544
|
+
const deserializeAws_json1_1TagResourceCommandError = async (output, context) => {
|
|
4545
|
+
const parsedOutput = {
|
|
4546
|
+
...output,
|
|
4547
|
+
body: await parseBody(output.body, context),
|
|
4548
|
+
};
|
|
4549
|
+
let response;
|
|
4550
|
+
let errorCode = "UnknownError";
|
|
4551
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4552
|
+
switch (errorCode) {
|
|
4553
|
+
case "AccessDeniedException":
|
|
4554
|
+
case "com.amazonaws.kendra#AccessDeniedException":
|
|
4555
|
+
response = {
|
|
4556
|
+
...(await deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context)),
|
|
4557
|
+
name: errorCode,
|
|
4558
|
+
$metadata: deserializeMetadata(output),
|
|
4559
|
+
};
|
|
4560
|
+
break;
|
|
4561
|
+
case "InternalServerException":
|
|
4562
|
+
case "com.amazonaws.kendra#InternalServerException":
|
|
4563
|
+
response = {
|
|
4564
|
+
...(await deserializeAws_json1_1InternalServerExceptionResponse(parsedOutput, context)),
|
|
4565
|
+
name: errorCode,
|
|
4566
|
+
$metadata: deserializeMetadata(output),
|
|
4567
|
+
};
|
|
4568
|
+
break;
|
|
4569
|
+
case "ResourceUnavailableException":
|
|
4570
|
+
case "com.amazonaws.kendra#ResourceUnavailableException":
|
|
4571
|
+
response = {
|
|
4572
|
+
...(await deserializeAws_json1_1ResourceUnavailableExceptionResponse(parsedOutput, context)),
|
|
4573
|
+
name: errorCode,
|
|
4574
|
+
$metadata: deserializeMetadata(output),
|
|
4575
|
+
};
|
|
4576
|
+
break;
|
|
4577
|
+
case "ThrottlingException":
|
|
4578
|
+
case "com.amazonaws.kendra#ThrottlingException":
|
|
4579
|
+
response = {
|
|
4580
|
+
...(await deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context)),
|
|
4581
|
+
name: errorCode,
|
|
4582
|
+
$metadata: deserializeMetadata(output),
|
|
4583
|
+
};
|
|
4584
|
+
break;
|
|
4585
|
+
case "ValidationException":
|
|
4586
|
+
case "com.amazonaws.kendra#ValidationException":
|
|
4587
|
+
response = {
|
|
4588
|
+
...(await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context)),
|
|
4589
|
+
name: errorCode,
|
|
4590
|
+
$metadata: deserializeMetadata(output),
|
|
4591
|
+
};
|
|
4592
|
+
break;
|
|
4593
|
+
default:
|
|
4594
|
+
const parsedBody = parsedOutput.body;
|
|
4595
|
+
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
4596
|
+
response = {
|
|
4597
|
+
...parsedBody,
|
|
4598
|
+
name: `${errorCode}`,
|
|
4599
|
+
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
4600
|
+
$fault: "client",
|
|
4601
|
+
$metadata: deserializeMetadata(output),
|
|
4602
|
+
};
|
|
4603
|
+
}
|
|
4604
|
+
const message = response.message || response.Message || errorCode;
|
|
4605
|
+
response.message = message;
|
|
4606
|
+
delete response.Message;
|
|
4607
|
+
return Promise.reject(Object.assign(new Error(message), response));
|
|
4608
|
+
};
|
|
4609
|
+
const deserializeAws_json1_1UntagResourceCommand = async (output, context) => {
|
|
3510
4610
|
if (output.statusCode >= 300) {
|
|
3511
|
-
return
|
|
4611
|
+
return deserializeAws_json1_1UntagResourceCommandError(output, context);
|
|
3512
4612
|
}
|
|
3513
4613
|
const data = await parseBody(output.body, context);
|
|
3514
4614
|
let contents = {};
|
|
3515
|
-
contents =
|
|
4615
|
+
contents = deserializeAws_json1_1UntagResourceResponse(data, context);
|
|
3516
4616
|
const response = {
|
|
3517
4617
|
$metadata: deserializeMetadata(output),
|
|
3518
4618
|
...contents,
|
|
3519
4619
|
};
|
|
3520
4620
|
return Promise.resolve(response);
|
|
3521
4621
|
};
|
|
3522
|
-
exports.
|
|
3523
|
-
const
|
|
4622
|
+
exports.deserializeAws_json1_1UntagResourceCommand = deserializeAws_json1_1UntagResourceCommand;
|
|
4623
|
+
const deserializeAws_json1_1UntagResourceCommandError = async (output, context) => {
|
|
3524
4624
|
const parsedOutput = {
|
|
3525
4625
|
...output,
|
|
3526
4626
|
body: await parseBody(output.body, context),
|
|
@@ -3585,21 +4685,18 @@ const deserializeAws_json1_1TagResourceCommandError = async (output, context) =>
|
|
|
3585
4685
|
delete response.Message;
|
|
3586
4686
|
return Promise.reject(Object.assign(new Error(message), response));
|
|
3587
4687
|
};
|
|
3588
|
-
const
|
|
4688
|
+
const deserializeAws_json1_1UpdateDataSourceCommand = async (output, context) => {
|
|
3589
4689
|
if (output.statusCode >= 300) {
|
|
3590
|
-
return
|
|
4690
|
+
return deserializeAws_json1_1UpdateDataSourceCommandError(output, context);
|
|
3591
4691
|
}
|
|
3592
|
-
|
|
3593
|
-
let contents = {};
|
|
3594
|
-
contents = deserializeAws_json1_1UntagResourceResponse(data, context);
|
|
4692
|
+
await collectBody(output.body, context);
|
|
3595
4693
|
const response = {
|
|
3596
4694
|
$metadata: deserializeMetadata(output),
|
|
3597
|
-
...contents,
|
|
3598
4695
|
};
|
|
3599
4696
|
return Promise.resolve(response);
|
|
3600
4697
|
};
|
|
3601
|
-
exports.
|
|
3602
|
-
const
|
|
4698
|
+
exports.deserializeAws_json1_1UpdateDataSourceCommand = deserializeAws_json1_1UpdateDataSourceCommand;
|
|
4699
|
+
const deserializeAws_json1_1UpdateDataSourceCommandError = async (output, context) => {
|
|
3603
4700
|
const parsedOutput = {
|
|
3604
4701
|
...output,
|
|
3605
4702
|
body: await parseBody(output.body, context),
|
|
@@ -3616,6 +4713,14 @@ const deserializeAws_json1_1UntagResourceCommandError = async (output, context)
|
|
|
3616
4713
|
$metadata: deserializeMetadata(output),
|
|
3617
4714
|
};
|
|
3618
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;
|
|
3619
4724
|
case "InternalServerException":
|
|
3620
4725
|
case "com.amazonaws.kendra#InternalServerException":
|
|
3621
4726
|
response = {
|
|
@@ -3624,10 +4729,10 @@ const deserializeAws_json1_1UntagResourceCommandError = async (output, context)
|
|
|
3624
4729
|
$metadata: deserializeMetadata(output),
|
|
3625
4730
|
};
|
|
3626
4731
|
break;
|
|
3627
|
-
case "
|
|
3628
|
-
case "com.amazonaws.kendra#
|
|
4732
|
+
case "ResourceNotFoundException":
|
|
4733
|
+
case "com.amazonaws.kendra#ResourceNotFoundException":
|
|
3629
4734
|
response = {
|
|
3630
|
-
...(await
|
|
4735
|
+
...(await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
3631
4736
|
name: errorCode,
|
|
3632
4737
|
$metadata: deserializeMetadata(output),
|
|
3633
4738
|
};
|
|
@@ -3664,9 +4769,9 @@ const deserializeAws_json1_1UntagResourceCommandError = async (output, context)
|
|
|
3664
4769
|
delete response.Message;
|
|
3665
4770
|
return Promise.reject(Object.assign(new Error(message), response));
|
|
3666
4771
|
};
|
|
3667
|
-
const
|
|
4772
|
+
const deserializeAws_json1_1UpdateExperienceCommand = async (output, context) => {
|
|
3668
4773
|
if (output.statusCode >= 300) {
|
|
3669
|
-
return
|
|
4774
|
+
return deserializeAws_json1_1UpdateExperienceCommandError(output, context);
|
|
3670
4775
|
}
|
|
3671
4776
|
await collectBody(output.body, context);
|
|
3672
4777
|
const response = {
|
|
@@ -3674,8 +4779,8 @@ const deserializeAws_json1_1UpdateDataSourceCommand = async (output, context) =>
|
|
|
3674
4779
|
};
|
|
3675
4780
|
return Promise.resolve(response);
|
|
3676
4781
|
};
|
|
3677
|
-
exports.
|
|
3678
|
-
const
|
|
4782
|
+
exports.deserializeAws_json1_1UpdateExperienceCommand = deserializeAws_json1_1UpdateExperienceCommand;
|
|
4783
|
+
const deserializeAws_json1_1UpdateExperienceCommandError = async (output, context) => {
|
|
3679
4784
|
const parsedOutput = {
|
|
3680
4785
|
...output,
|
|
3681
4786
|
body: await parseBody(output.body, context),
|
|
@@ -4125,6 +5230,17 @@ const deserializeAws_json1_1InternalServerExceptionResponse = async (parsedOutpu
|
|
|
4125
5230
|
};
|
|
4126
5231
|
return contents;
|
|
4127
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
|
+
};
|
|
4128
5244
|
const deserializeAws_json1_1ResourceAlreadyExistExceptionResponse = async (parsedOutput, context) => {
|
|
4129
5245
|
const body = parsedOutput.body;
|
|
4130
5246
|
const deserialized = deserializeAws_json1_1ResourceAlreadyExistException(body, context);
|
|
@@ -4213,6 +5329,34 @@ const serializeAws_json1_1AclConfiguration = (input, context) => {
|
|
|
4213
5329
|
input.AllowedGroupsColumnName !== null && { AllowedGroupsColumnName: input.AllowedGroupsColumnName }),
|
|
4214
5330
|
};
|
|
4215
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
|
+
};
|
|
4216
5360
|
const serializeAws_json1_1AttributeFilter = (input, context) => {
|
|
4217
5361
|
return {
|
|
4218
5362
|
...(input.AndAllFilters !== undefined &&
|
|
@@ -4304,6 +5448,10 @@ const serializeAws_json1_1BatchGetDocumentStatusRequest = (input, context) => {
|
|
|
4304
5448
|
};
|
|
4305
5449
|
const serializeAws_json1_1BatchPutDocumentRequest = (input, context) => {
|
|
4306
5450
|
return {
|
|
5451
|
+
...(input.CustomDocumentEnrichmentConfiguration !== undefined &&
|
|
5452
|
+
input.CustomDocumentEnrichmentConfiguration !== null && {
|
|
5453
|
+
CustomDocumentEnrichmentConfiguration: serializeAws_json1_1CustomDocumentEnrichmentConfiguration(input.CustomDocumentEnrichmentConfiguration, context),
|
|
5454
|
+
}),
|
|
4307
5455
|
...(input.Documents !== undefined &&
|
|
4308
5456
|
input.Documents !== null && { Documents: serializeAws_json1_1DocumentList(input.Documents, context) }),
|
|
4309
5457
|
...(input.IndexId !== undefined && input.IndexId !== null && { IndexId: input.IndexId }),
|
|
@@ -4548,6 +5696,18 @@ const serializeAws_json1_1ConnectionConfiguration = (input, context) => {
|
|
|
4548
5696
|
...(input.TableName !== undefined && input.TableName !== null && { TableName: input.TableName }),
|
|
4549
5697
|
};
|
|
4550
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
|
+
};
|
|
4551
5711
|
const serializeAws_json1_1CreateDataSourceRequest = (input, context) => {
|
|
4552
5712
|
var _a;
|
|
4553
5713
|
return {
|
|
@@ -4556,6 +5716,10 @@ const serializeAws_json1_1CreateDataSourceRequest = (input, context) => {
|
|
|
4556
5716
|
input.Configuration !== null && {
|
|
4557
5717
|
Configuration: serializeAws_json1_1DataSourceConfiguration(input.Configuration, context),
|
|
4558
5718
|
}),
|
|
5719
|
+
...(input.CustomDocumentEnrichmentConfiguration !== undefined &&
|
|
5720
|
+
input.CustomDocumentEnrichmentConfiguration !== null && {
|
|
5721
|
+
CustomDocumentEnrichmentConfiguration: serializeAws_json1_1CustomDocumentEnrichmentConfiguration(input.CustomDocumentEnrichmentConfiguration, context),
|
|
5722
|
+
}),
|
|
4559
5723
|
...(input.Description !== undefined && input.Description !== null && { Description: input.Description }),
|
|
4560
5724
|
...(input.IndexId !== undefined && input.IndexId !== null && { IndexId: input.IndexId }),
|
|
4561
5725
|
...(input.LanguageCode !== undefined && input.LanguageCode !== null && { LanguageCode: input.LanguageCode }),
|
|
@@ -4566,6 +5730,20 @@ const serializeAws_json1_1CreateDataSourceRequest = (input, context) => {
|
|
|
4566
5730
|
...(input.Type !== undefined && input.Type !== null && { Type: input.Type }),
|
|
4567
5731
|
};
|
|
4568
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
|
+
};
|
|
4569
5747
|
const serializeAws_json1_1CreateFaqRequest = (input, context) => {
|
|
4570
5748
|
var _a;
|
|
4571
5749
|
return {
|
|
@@ -4632,6 +5810,23 @@ const serializeAws_json1_1CreateThesaurusRequest = (input, context) => {
|
|
|
4632
5810
|
...(input.Tags !== undefined && input.Tags !== null && { Tags: serializeAws_json1_1TagList(input.Tags, context) }),
|
|
4633
5811
|
};
|
|
4634
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
|
+
};
|
|
4635
5830
|
const serializeAws_json1_1DatabaseConfiguration = (input, context) => {
|
|
4636
5831
|
return {
|
|
4637
5832
|
...(input.AclConfiguration !== undefined &&
|
|
@@ -4718,6 +5913,16 @@ const serializeAws_json1_1DataSourceGroups = (input, context) => {
|
|
|
4718
5913
|
return serializeAws_json1_1DataSourceGroup(entry, context);
|
|
4719
5914
|
});
|
|
4720
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
|
+
};
|
|
4721
5926
|
const serializeAws_json1_1DataSourceInclusionsExclusionsStrings = (input, context) => {
|
|
4722
5927
|
return input
|
|
4723
5928
|
.filter((e) => e != null)
|
|
@@ -4771,6 +5976,12 @@ const serializeAws_json1_1DeleteDataSourceRequest = (input, context) => {
|
|
|
4771
5976
|
...(input.IndexId !== undefined && input.IndexId !== null && { IndexId: input.IndexId }),
|
|
4772
5977
|
};
|
|
4773
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
|
+
};
|
|
4774
5985
|
const serializeAws_json1_1DeleteFaqRequest = (input, context) => {
|
|
4775
5986
|
return {
|
|
4776
5987
|
...(input.Id !== undefined && input.Id !== null && { Id: input.Id }),
|
|
@@ -4808,6 +6019,12 @@ const serializeAws_json1_1DescribeDataSourceRequest = (input, context) => {
|
|
|
4808
6019
|
...(input.IndexId !== undefined && input.IndexId !== null && { IndexId: input.IndexId }),
|
|
4809
6020
|
};
|
|
4810
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
|
+
};
|
|
4811
6028
|
const serializeAws_json1_1DescribeFaqRequest = (input, context) => {
|
|
4812
6029
|
return {
|
|
4813
6030
|
...(input.Id !== undefined && input.Id !== null && { Id: input.Id }),
|
|
@@ -4843,6 +6060,34 @@ const serializeAws_json1_1DescribeThesaurusRequest = (input, context) => {
|
|
|
4843
6060
|
...(input.IndexId !== undefined && input.IndexId !== null && { IndexId: input.IndexId }),
|
|
4844
6061
|
};
|
|
4845
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
|
+
};
|
|
4846
6091
|
const serializeAws_json1_1Document = (input, context) => {
|
|
4847
6092
|
return {
|
|
4848
6093
|
...(input.AccessControlList !== undefined &&
|
|
@@ -4872,6 +6117,19 @@ const serializeAws_json1_1DocumentAttribute = (input, context) => {
|
|
|
4872
6117
|
input.Value !== null && { Value: serializeAws_json1_1DocumentAttributeValue(input.Value, context) }),
|
|
4873
6118
|
};
|
|
4874
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
|
+
};
|
|
4875
6133
|
const serializeAws_json1_1DocumentAttributeKeyList = (input, context) => {
|
|
4876
6134
|
return input
|
|
4877
6135
|
.filter((e) => e != null)
|
|
@@ -4902,16 +6160,31 @@ const serializeAws_json1_1DocumentAttributeStringListValue = (input, context) =>
|
|
|
4902
6160
|
return entry;
|
|
4903
6161
|
});
|
|
4904
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
|
+
};
|
|
4905
6177
|
const serializeAws_json1_1DocumentAttributeValue = (input, context) => {
|
|
4906
|
-
return
|
|
4907
|
-
|
|
4908
|
-
|
|
4909
|
-
|
|
4910
|
-
|
|
4911
|
-
|
|
4912
|
-
|
|
4913
|
-
|
|
4914
|
-
|
|
6178
|
+
return {
|
|
6179
|
+
...(input.DateValue !== undefined &&
|
|
6180
|
+
input.DateValue !== null && { DateValue: Math.round(input.DateValue.getTime() / 1000) }),
|
|
6181
|
+
...(input.LongValue !== undefined && input.LongValue !== null && { LongValue: input.LongValue }),
|
|
6182
|
+
...(input.StringListValue !== undefined &&
|
|
6183
|
+
input.StringListValue !== null && {
|
|
6184
|
+
StringListValue: serializeAws_json1_1DocumentAttributeStringListValue(input.StringListValue, context),
|
|
6185
|
+
}),
|
|
6186
|
+
...(input.StringValue !== undefined && input.StringValue !== null && { StringValue: input.StringValue }),
|
|
6187
|
+
};
|
|
4915
6188
|
};
|
|
4916
6189
|
const serializeAws_json1_1DocumentIdList = (input, context) => {
|
|
4917
6190
|
return input
|
|
@@ -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 }),
|
|
@@ -5826,6 +7216,10 @@ const serializeAws_json1_1UpdateDataSourceRequest = (input, context) => {
|
|
|
5826
7216
|
input.Configuration !== null && {
|
|
5827
7217
|
Configuration: serializeAws_json1_1DataSourceConfiguration(input.Configuration, context),
|
|
5828
7218
|
}),
|
|
7219
|
+
...(input.CustomDocumentEnrichmentConfiguration !== undefined &&
|
|
7220
|
+
input.CustomDocumentEnrichmentConfiguration !== null && {
|
|
7221
|
+
CustomDocumentEnrichmentConfiguration: serializeAws_json1_1CustomDocumentEnrichmentConfiguration(input.CustomDocumentEnrichmentConfiguration, context),
|
|
7222
|
+
}),
|
|
5829
7223
|
...(input.Description !== undefined && input.Description !== null && { Description: input.Description }),
|
|
5830
7224
|
...(input.Id !== undefined && input.Id !== null && { Id: input.Id }),
|
|
5831
7225
|
...(input.IndexId !== undefined && input.IndexId !== null && { IndexId: input.IndexId }),
|
|
@@ -5835,6 +7229,19 @@ const serializeAws_json1_1UpdateDataSourceRequest = (input, context) => {
|
|
|
5835
7229
|
...(input.Schedule !== undefined && input.Schedule !== null && { Schedule: input.Schedule }),
|
|
5836
7230
|
};
|
|
5837
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),
|
|
7237
|
+
}),
|
|
7238
|
+
...(input.Description !== undefined && input.Description !== null && { Description: input.Description }),
|
|
7239
|
+
...(input.Id !== undefined && input.Id !== null && { Id: input.Id }),
|
|
7240
|
+
...(input.IndexId !== undefined && input.IndexId !== null && { IndexId: input.IndexId }),
|
|
7241
|
+
...(input.Name !== undefined && input.Name !== null && { Name: input.Name }),
|
|
7242
|
+
...(input.RoleArn !== undefined && input.RoleArn !== null && { RoleArn: input.RoleArn }),
|
|
7243
|
+
};
|
|
7244
|
+
};
|
|
5838
7245
|
const serializeAws_json1_1UpdateIndexRequest = (input, context) => {
|
|
5839
7246
|
return {
|
|
5840
7247
|
...(input.CapacityUnits !== undefined &&
|
|
@@ -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 &&
|
|
@@ -6037,23 +7450,47 @@ const deserializeAws_json1_1AdditionalResultAttribute = (output, context) => {
|
|
|
6037
7450
|
Value: output.Value !== undefined && output.Value !== null
|
|
6038
7451
|
? deserializeAws_json1_1AdditionalResultAttributeValue(output.Value, context)
|
|
6039
7452
|
: undefined,
|
|
6040
|
-
ValueType: smithy_client_1.expectString(output.ValueType),
|
|
7453
|
+
ValueType: smithy_client_1.expectString(output.ValueType),
|
|
7454
|
+
};
|
|
7455
|
+
};
|
|
7456
|
+
const deserializeAws_json1_1AdditionalResultAttributeList = (output, context) => {
|
|
7457
|
+
return (output || [])
|
|
7458
|
+
.filter((e) => e != null)
|
|
7459
|
+
.map((entry) => {
|
|
7460
|
+
if (entry === null) {
|
|
7461
|
+
return null;
|
|
7462
|
+
}
|
|
7463
|
+
return deserializeAws_json1_1AdditionalResultAttribute(entry, context);
|
|
7464
|
+
});
|
|
7465
|
+
};
|
|
7466
|
+
const deserializeAws_json1_1AdditionalResultAttributeValue = (output, context) => {
|
|
7467
|
+
return {
|
|
7468
|
+
TextWithHighlightsValue: output.TextWithHighlightsValue !== undefined && output.TextWithHighlightsValue !== null
|
|
7469
|
+
? deserializeAws_json1_1TextWithHighlights(output.TextWithHighlightsValue, context)
|
|
7470
|
+
: undefined,
|
|
6041
7471
|
};
|
|
6042
7472
|
};
|
|
6043
|
-
const
|
|
7473
|
+
const deserializeAws_json1_1AssociateEntitiesToExperienceFailedEntityList = (output, context) => {
|
|
6044
7474
|
return (output || [])
|
|
6045
7475
|
.filter((e) => e != null)
|
|
6046
7476
|
.map((entry) => {
|
|
6047
7477
|
if (entry === null) {
|
|
6048
7478
|
return null;
|
|
6049
7479
|
}
|
|
6050
|
-
return
|
|
7480
|
+
return deserializeAws_json1_1FailedEntity(entry, context);
|
|
6051
7481
|
});
|
|
6052
7482
|
};
|
|
6053
|
-
const
|
|
7483
|
+
const deserializeAws_json1_1AssociateEntitiesToExperienceResponse = (output, context) => {
|
|
6054
7484
|
return {
|
|
6055
|
-
|
|
6056
|
-
?
|
|
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)
|
|
6057
7494
|
: undefined,
|
|
6058
7495
|
};
|
|
6059
7496
|
};
|
|
@@ -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,12 +8180,35 @@ 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),
|
|
6679
8200
|
Value: output.Value !== undefined && output.Value !== null
|
|
6680
|
-
? deserializeAws_json1_1DocumentAttributeValue(
|
|
8201
|
+
? deserializeAws_json1_1DocumentAttributeValue(output.Value, context)
|
|
8202
|
+
: undefined,
|
|
8203
|
+
};
|
|
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)
|
|
6681
8210
|
: undefined,
|
|
8211
|
+
Operator: smithy_client_1.expectString(output.Operator),
|
|
6682
8212
|
};
|
|
6683
8213
|
};
|
|
6684
8214
|
const deserializeAws_json1_1DocumentAttributeList = (output, context) => {
|
|
@@ -6701,30 +8231,32 @@ 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
|
-
|
|
6706
|
-
|
|
6707
|
-
|
|
6708
|
-
|
|
6709
|
-
|
|
6710
|
-
|
|
6711
|
-
|
|
6712
|
-
|
|
6713
|
-
|
|
6714
|
-
|
|
6715
|
-
StringListValue: deserializeAws_json1_1DocumentAttributeStringListValue(output.StringListValue, context),
|
|
6716
|
-
};
|
|
6717
|
-
}
|
|
6718
|
-
if (smithy_client_1.expectString(output.StringValue) !== undefined) {
|
|
6719
|
-
return { StringValue: smithy_client_1.expectString(output.StringValue) };
|
|
6720
|
-
}
|
|
6721
|
-
return { $unknown: Object.entries(output)[0] };
|
|
8244
|
+
return {
|
|
8245
|
+
DateValue: output.DateValue !== undefined && output.DateValue !== null
|
|
8246
|
+
? smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(output.DateValue)))
|
|
8247
|
+
: undefined,
|
|
8248
|
+
LongValue: smithy_client_1.expectLong(output.LongValue),
|
|
8249
|
+
StringListValue: output.StringListValue !== undefined && output.StringListValue !== null
|
|
8250
|
+
? deserializeAws_json1_1DocumentAttributeStringListValue(output.StringListValue, context)
|
|
8251
|
+
: undefined,
|
|
8252
|
+
StringValue: smithy_client_1.expectString(output.StringValue),
|
|
8253
|
+
};
|
|
6722
8254
|
};
|
|
6723
8255
|
const deserializeAws_json1_1DocumentAttributeValueCountPair = (output, context) => {
|
|
6724
8256
|
return {
|
|
6725
8257
|
Count: smithy_client_1.expectInt32(output.Count),
|
|
6726
8258
|
DocumentAttributeValue: output.DocumentAttributeValue !== undefined && output.DocumentAttributeValue !== null
|
|
6727
|
-
? deserializeAws_json1_1DocumentAttributeValue(
|
|
8259
|
+
? deserializeAws_json1_1DocumentAttributeValue(output.DocumentAttributeValue, context)
|
|
6728
8260
|
: undefined,
|
|
6729
8261
|
};
|
|
6730
8262
|
};
|
|
@@ -6775,6 +8307,15 @@ const deserializeAws_json1_1DocumentStatusList = (output, context) => {
|
|
|
6775
8307
|
return deserializeAws_json1_1Status(entry, context);
|
|
6776
8308
|
});
|
|
6777
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
|
+
};
|
|
6778
8319
|
const deserializeAws_json1_1ExcludeMimeTypesList = (output, context) => {
|
|
6779
8320
|
return (output || [])
|
|
6780
8321
|
.filter((e) => e != null)
|
|
@@ -6805,6 +8346,74 @@ const deserializeAws_json1_1ExcludeUserAccountsList = (output, context) => {
|
|
|
6805
8346
|
return smithy_client_1.expectString(entry);
|
|
6806
8347
|
});
|
|
6807
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
|
+
};
|
|
6808
8417
|
const deserializeAws_json1_1FacetResult = (output, context) => {
|
|
6809
8418
|
return {
|
|
6810
8419
|
DocumentAttributeKey: smithy_client_1.expectString(output.DocumentAttributeKey),
|
|
@@ -6824,6 +8433,32 @@ const deserializeAws_json1_1FacetResultList = (output, context) => {
|
|
|
6824
8433
|
return deserializeAws_json1_1FacetResult(entry, context);
|
|
6825
8434
|
});
|
|
6826
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
|
+
};
|
|
6827
8462
|
const deserializeAws_json1_1FaqStatistics = (output, context) => {
|
|
6828
8463
|
return {
|
|
6829
8464
|
IndexedQuestionAnswersCount: smithy_client_1.expectInt32(output.IndexedQuestionAnswersCount),
|
|
@@ -6862,6 +8497,20 @@ const deserializeAws_json1_1GetQuerySuggestionsResponse = (output, context) => {
|
|
|
6862
8497
|
: undefined,
|
|
6863
8498
|
};
|
|
6864
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
|
+
};
|
|
6865
8514
|
const deserializeAws_json1_1GoogleDriveConfiguration = (output, context) => {
|
|
6866
8515
|
return {
|
|
6867
8516
|
ExcludeMimeTypes: output.ExcludeMimeTypes !== undefined && output.ExcludeMimeTypes !== null
|
|
@@ -6932,6 +8581,15 @@ const deserializeAws_json1_1HighlightList = (output, context) => {
|
|
|
6932
8581
|
return deserializeAws_json1_1Highlight(entry, context);
|
|
6933
8582
|
});
|
|
6934
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
|
+
};
|
|
6935
8593
|
const deserializeAws_json1_1IndexConfigurationSummary = (output, context) => {
|
|
6936
8594
|
return {
|
|
6937
8595
|
CreatedAt: output.CreatedAt !== undefined && output.CreatedAt !== null
|
|
@@ -6966,11 +8624,37 @@ const deserializeAws_json1_1IndexStatistics = (output, context) => {
|
|
|
6966
8624
|
: undefined,
|
|
6967
8625
|
};
|
|
6968
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
|
+
};
|
|
6969
8648
|
const deserializeAws_json1_1InternalServerException = (output, context) => {
|
|
6970
8649
|
return {
|
|
6971
8650
|
Message: smithy_client_1.expectString(output.Message),
|
|
6972
8651
|
};
|
|
6973
8652
|
};
|
|
8653
|
+
const deserializeAws_json1_1InvalidRequestException = (output, context) => {
|
|
8654
|
+
return {
|
|
8655
|
+
Message: smithy_client_1.expectString(output.Message),
|
|
8656
|
+
};
|
|
8657
|
+
};
|
|
6974
8658
|
const deserializeAws_json1_1JsonTokenTypeConfiguration = (output, context) => {
|
|
6975
8659
|
return {
|
|
6976
8660
|
GroupAttributeField: smithy_client_1.expectString(output.GroupAttributeField),
|
|
@@ -7004,6 +8688,30 @@ const deserializeAws_json1_1ListDataSourceSyncJobsResponse = (output, context) =
|
|
|
7004
8688
|
NextToken: smithy_client_1.expectString(output.NextToken),
|
|
7005
8689
|
};
|
|
7006
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
|
+
};
|
|
7007
8715
|
const deserializeAws_json1_1ListFaqsResponse = (output, context) => {
|
|
7008
8716
|
return {
|
|
7009
8717
|
FaqSummaryItems: output.FaqSummaryItems !== undefined && output.FaqSummaryItems !== null
|
|
@@ -7100,6 +8808,28 @@ const deserializeAws_json1_1OneDriveUsers = (output, context) => {
|
|
|
7100
8808
|
: undefined,
|
|
7101
8809
|
};
|
|
7102
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
|
+
};
|
|
7103
8833
|
const deserializeAws_json1_1ProxyConfiguration = (output, context) => {
|
|
7104
8834
|
return {
|
|
7105
8835
|
Credentials: smithy_client_1.expectString(output.Credentials),
|
|
@@ -7517,6 +9247,36 @@ const deserializeAws_json1_1SiteMapsList = (output, context) => {
|
|
|
7517
9247
|
return smithy_client_1.expectString(entry);
|
|
7518
9248
|
});
|
|
7519
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
|
+
};
|
|
7520
9280
|
const deserializeAws_json1_1SqlConfiguration = (output, context) => {
|
|
7521
9281
|
return {
|
|
7522
9282
|
QueryIdentifiersEnclosingOption: smithy_client_1.expectString(output.QueryIdentifiersEnclosingOption),
|
|
@@ -7655,6 +9415,16 @@ const deserializeAws_json1_1ThrottlingException = (output, context) => {
|
|
|
7655
9415
|
Message: smithy_client_1.expectString(output.Message),
|
|
7656
9416
|
};
|
|
7657
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
|
+
};
|
|
7658
9428
|
const deserializeAws_json1_1UntagResourceResponse = (output, context) => {
|
|
7659
9429
|
return {};
|
|
7660
9430
|
};
|
|
@@ -7673,6 +9443,11 @@ const deserializeAws_json1_1UserGroupResolutionConfiguration = (output, context)
|
|
|
7673
9443
|
UserGroupResolutionMode: smithy_client_1.expectString(output.UserGroupResolutionMode),
|
|
7674
9444
|
};
|
|
7675
9445
|
};
|
|
9446
|
+
const deserializeAws_json1_1UserIdentityConfiguration = (output, context) => {
|
|
9447
|
+
return {
|
|
9448
|
+
IdentityAttributeName: smithy_client_1.expectString(output.IdentityAttributeName),
|
|
9449
|
+
};
|
|
9450
|
+
};
|
|
7676
9451
|
const deserializeAws_json1_1UserTokenConfiguration = (output, context) => {
|
|
7677
9452
|
return {
|
|
7678
9453
|
JsonTokenTypeConfiguration: output.JsonTokenTypeConfiguration !== undefined && output.JsonTokenTypeConfiguration !== null
|