@aws-sdk/client-kendra 3.40.0 → 3.44.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +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 +8 -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 +8 -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/BatchDeleteDocumentCommand.d.ts +1 -1
- package/dist-types/commands/BatchGetDocumentStatusCommand.d.ts +1 -1
- package/dist-types/commands/BatchPutDocumentCommand.d.ts +1 -1
- package/dist-types/commands/ClearQuerySuggestionsCommand.d.ts +4 -1
- package/dist-types/commands/CreateDataSourceCommand.d.ts +3 -1
- package/dist-types/commands/CreateExperienceCommand.d.ts +37 -0
- package/dist-types/commands/CreateFaqCommand.d.ts +1 -1
- package/dist-types/commands/CreateIndexCommand.d.ts +1 -1
- package/dist-types/commands/CreateQuerySuggestionsBlockListCommand.d.ts +4 -1
- package/dist-types/commands/CreateThesaurusCommand.d.ts +1 -1
- package/dist-types/commands/DeleteDataSourceCommand.d.ts +1 -1
- package/dist-types/commands/DeleteExperienceCommand.d.ts +37 -0
- package/dist-types/commands/DeleteFaqCommand.d.ts +1 -1
- package/dist-types/commands/DeleteIndexCommand.d.ts +1 -1
- package/dist-types/commands/DeletePrincipalMappingCommand.d.ts +4 -1
- package/dist-types/commands/DeleteQuerySuggestionsBlockListCommand.d.ts +4 -1
- package/dist-types/commands/DeleteThesaurusCommand.d.ts +1 -1
- package/dist-types/commands/DescribeDataSourceCommand.d.ts +1 -1
- package/dist-types/commands/DescribeExperienceCommand.d.ts +38 -0
- package/dist-types/commands/DescribeFaqCommand.d.ts +1 -1
- package/dist-types/commands/DescribeIndexCommand.d.ts +1 -1
- package/dist-types/commands/DescribePrincipalMappingCommand.d.ts +4 -1
- package/dist-types/commands/DescribeQuerySuggestionsBlockListCommand.d.ts +4 -1
- package/dist-types/commands/DescribeQuerySuggestionsConfigCommand.d.ts +4 -1
- package/dist-types/commands/DescribeThesaurusCommand.d.ts +1 -1
- 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 +4 -1
- package/dist-types/commands/GetSnapshotsCommand.d.ts +37 -0
- package/dist-types/commands/ListDataSourceSyncJobsCommand.d.ts +1 -1
- package/dist-types/commands/ListDataSourcesCommand.d.ts +1 -1
- 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/ListFaqsCommand.d.ts +1 -1
- package/dist-types/commands/ListGroupsOlderThanOrderingIdCommand.d.ts +4 -1
- package/dist-types/commands/ListIndicesCommand.d.ts +1 -1
- package/dist-types/commands/ListQuerySuggestionsBlockListsCommand.d.ts +4 -1
- package/dist-types/commands/ListTagsForResourceCommand.d.ts +1 -1
- package/dist-types/commands/ListThesauriCommand.d.ts +1 -1
- package/dist-types/commands/PutPrincipalMappingCommand.d.ts +4 -1
- package/dist-types/commands/QueryCommand.d.ts +1 -1
- package/dist-types/commands/StartDataSourceSyncJobCommand.d.ts +1 -1
- package/dist-types/commands/StopDataSourceSyncJobCommand.d.ts +1 -1
- package/dist-types/commands/SubmitFeedbackCommand.d.ts +5 -2
- package/dist-types/commands/TagResourceCommand.d.ts +1 -1
- package/dist-types/commands/UntagResourceCommand.d.ts +1 -1
- package/dist-types/commands/UpdateDataSourceCommand.d.ts +1 -1
- package/dist-types/commands/UpdateExperienceCommand.d.ts +37 -0
- package/dist-types/commands/UpdateIndexCommand.d.ts +1 -1
- package/dist-types/commands/UpdateQuerySuggestionsBlockListCommand.d.ts +4 -1
- package/dist-types/commands/UpdateQuerySuggestionsConfigCommand.d.ts +4 -1
- package/dist-types/commands/UpdateThesaurusCommand.d.ts +1 -1
- 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 +4 -4
|
@@ -1,8 +1,29 @@
|
|
|
1
1
|
import { __assign, __awaiter, __generator, __read } from "tslib";
|
|
2
2
|
import { HttpRequest as __HttpRequest } from "@aws-sdk/protocol-http";
|
|
3
|
-
import { expectBoolean as __expectBoolean, expectInt32 as __expectInt32, expectLong as __expectLong, expectNonNull as __expectNonNull, expectNumber as __expectNumber, expectString as __expectString,
|
|
3
|
+
import { expectBoolean as __expectBoolean, expectInt32 as __expectInt32, expectLong as __expectLong, expectNonNull as __expectNonNull, expectNumber as __expectNumber, expectString as __expectString, limitedParseFloat32 as __limitedParseFloat32, parseEpochTimestamp as __parseEpochTimestamp, serializeFloat as __serializeFloat, } from "@aws-sdk/smithy-client";
|
|
4
4
|
import { v4 as generateIdempotencyToken } from "uuid";
|
|
5
|
-
|
|
5
|
+
export var serializeAws_json1_1AssociateEntitiesToExperienceCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
6
|
+
var headers, body;
|
|
7
|
+
return __generator(this, function (_a) {
|
|
8
|
+
headers = {
|
|
9
|
+
"content-type": "application/x-amz-json-1.1",
|
|
10
|
+
"x-amz-target": "AWSKendraFrontendService.AssociateEntitiesToExperience",
|
|
11
|
+
};
|
|
12
|
+
body = JSON.stringify(serializeAws_json1_1AssociateEntitiesToExperienceRequest(input, context));
|
|
13
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
14
|
+
});
|
|
15
|
+
}); };
|
|
16
|
+
export var serializeAws_json1_1AssociatePersonasToEntitiesCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
17
|
+
var headers, body;
|
|
18
|
+
return __generator(this, function (_a) {
|
|
19
|
+
headers = {
|
|
20
|
+
"content-type": "application/x-amz-json-1.1",
|
|
21
|
+
"x-amz-target": "AWSKendraFrontendService.AssociatePersonasToEntities",
|
|
22
|
+
};
|
|
23
|
+
body = JSON.stringify(serializeAws_json1_1AssociatePersonasToEntitiesRequest(input, context));
|
|
24
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
25
|
+
});
|
|
26
|
+
}); };
|
|
6
27
|
export var serializeAws_json1_1BatchDeleteDocumentCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
7
28
|
var headers, body;
|
|
8
29
|
return __generator(this, function (_a) {
|
|
@@ -58,6 +79,17 @@ export var serializeAws_json1_1CreateDataSourceCommand = function (input, contex
|
|
|
58
79
|
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
59
80
|
});
|
|
60
81
|
}); };
|
|
82
|
+
export var serializeAws_json1_1CreateExperienceCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
83
|
+
var headers, body;
|
|
84
|
+
return __generator(this, function (_a) {
|
|
85
|
+
headers = {
|
|
86
|
+
"content-type": "application/x-amz-json-1.1",
|
|
87
|
+
"x-amz-target": "AWSKendraFrontendService.CreateExperience",
|
|
88
|
+
};
|
|
89
|
+
body = JSON.stringify(serializeAws_json1_1CreateExperienceRequest(input, context));
|
|
90
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
91
|
+
});
|
|
92
|
+
}); };
|
|
61
93
|
export var serializeAws_json1_1CreateFaqCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
62
94
|
var headers, body;
|
|
63
95
|
return __generator(this, function (_a) {
|
|
@@ -113,6 +145,17 @@ export var serializeAws_json1_1DeleteDataSourceCommand = function (input, contex
|
|
|
113
145
|
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
114
146
|
});
|
|
115
147
|
}); };
|
|
148
|
+
export var serializeAws_json1_1DeleteExperienceCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
149
|
+
var headers, body;
|
|
150
|
+
return __generator(this, function (_a) {
|
|
151
|
+
headers = {
|
|
152
|
+
"content-type": "application/x-amz-json-1.1",
|
|
153
|
+
"x-amz-target": "AWSKendraFrontendService.DeleteExperience",
|
|
154
|
+
};
|
|
155
|
+
body = JSON.stringify(serializeAws_json1_1DeleteExperienceRequest(input, context));
|
|
156
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
157
|
+
});
|
|
158
|
+
}); };
|
|
116
159
|
export var serializeAws_json1_1DeleteFaqCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
117
160
|
var headers, body;
|
|
118
161
|
return __generator(this, function (_a) {
|
|
@@ -179,6 +222,17 @@ export var serializeAws_json1_1DescribeDataSourceCommand = function (input, cont
|
|
|
179
222
|
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
180
223
|
});
|
|
181
224
|
}); };
|
|
225
|
+
export var serializeAws_json1_1DescribeExperienceCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
226
|
+
var headers, body;
|
|
227
|
+
return __generator(this, function (_a) {
|
|
228
|
+
headers = {
|
|
229
|
+
"content-type": "application/x-amz-json-1.1",
|
|
230
|
+
"x-amz-target": "AWSKendraFrontendService.DescribeExperience",
|
|
231
|
+
};
|
|
232
|
+
body = JSON.stringify(serializeAws_json1_1DescribeExperienceRequest(input, context));
|
|
233
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
234
|
+
});
|
|
235
|
+
}); };
|
|
182
236
|
export var serializeAws_json1_1DescribeFaqCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
183
237
|
var headers, body;
|
|
184
238
|
return __generator(this, function (_a) {
|
|
@@ -245,6 +299,28 @@ export var serializeAws_json1_1DescribeThesaurusCommand = function (input, conte
|
|
|
245
299
|
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
246
300
|
});
|
|
247
301
|
}); };
|
|
302
|
+
export var serializeAws_json1_1DisassociateEntitiesFromExperienceCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
303
|
+
var headers, body;
|
|
304
|
+
return __generator(this, function (_a) {
|
|
305
|
+
headers = {
|
|
306
|
+
"content-type": "application/x-amz-json-1.1",
|
|
307
|
+
"x-amz-target": "AWSKendraFrontendService.DisassociateEntitiesFromExperience",
|
|
308
|
+
};
|
|
309
|
+
body = JSON.stringify(serializeAws_json1_1DisassociateEntitiesFromExperienceRequest(input, context));
|
|
310
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
311
|
+
});
|
|
312
|
+
}); };
|
|
313
|
+
export var serializeAws_json1_1DisassociatePersonasFromEntitiesCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
314
|
+
var headers, body;
|
|
315
|
+
return __generator(this, function (_a) {
|
|
316
|
+
headers = {
|
|
317
|
+
"content-type": "application/x-amz-json-1.1",
|
|
318
|
+
"x-amz-target": "AWSKendraFrontendService.DisassociatePersonasFromEntities",
|
|
319
|
+
};
|
|
320
|
+
body = JSON.stringify(serializeAws_json1_1DisassociatePersonasFromEntitiesRequest(input, context));
|
|
321
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
322
|
+
});
|
|
323
|
+
}); };
|
|
248
324
|
export var serializeAws_json1_1GetQuerySuggestionsCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
249
325
|
var headers, body;
|
|
250
326
|
return __generator(this, function (_a) {
|
|
@@ -256,6 +332,17 @@ export var serializeAws_json1_1GetQuerySuggestionsCommand = function (input, con
|
|
|
256
332
|
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
257
333
|
});
|
|
258
334
|
}); };
|
|
335
|
+
export var serializeAws_json1_1GetSnapshotsCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
336
|
+
var headers, body;
|
|
337
|
+
return __generator(this, function (_a) {
|
|
338
|
+
headers = {
|
|
339
|
+
"content-type": "application/x-amz-json-1.1",
|
|
340
|
+
"x-amz-target": "AWSKendraFrontendService.GetSnapshots",
|
|
341
|
+
};
|
|
342
|
+
body = JSON.stringify(serializeAws_json1_1GetSnapshotsRequest(input, context));
|
|
343
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
344
|
+
});
|
|
345
|
+
}); };
|
|
259
346
|
export var serializeAws_json1_1ListDataSourcesCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
260
347
|
var headers, body;
|
|
261
348
|
return __generator(this, function (_a) {
|
|
@@ -278,6 +365,39 @@ export var serializeAws_json1_1ListDataSourceSyncJobsCommand = function (input,
|
|
|
278
365
|
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
279
366
|
});
|
|
280
367
|
}); };
|
|
368
|
+
export var serializeAws_json1_1ListEntityPersonasCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
369
|
+
var headers, body;
|
|
370
|
+
return __generator(this, function (_a) {
|
|
371
|
+
headers = {
|
|
372
|
+
"content-type": "application/x-amz-json-1.1",
|
|
373
|
+
"x-amz-target": "AWSKendraFrontendService.ListEntityPersonas",
|
|
374
|
+
};
|
|
375
|
+
body = JSON.stringify(serializeAws_json1_1ListEntityPersonasRequest(input, context));
|
|
376
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
377
|
+
});
|
|
378
|
+
}); };
|
|
379
|
+
export var serializeAws_json1_1ListExperienceEntitiesCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
380
|
+
var headers, body;
|
|
381
|
+
return __generator(this, function (_a) {
|
|
382
|
+
headers = {
|
|
383
|
+
"content-type": "application/x-amz-json-1.1",
|
|
384
|
+
"x-amz-target": "AWSKendraFrontendService.ListExperienceEntities",
|
|
385
|
+
};
|
|
386
|
+
body = JSON.stringify(serializeAws_json1_1ListExperienceEntitiesRequest(input, context));
|
|
387
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
388
|
+
});
|
|
389
|
+
}); };
|
|
390
|
+
export var serializeAws_json1_1ListExperiencesCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
391
|
+
var headers, body;
|
|
392
|
+
return __generator(this, function (_a) {
|
|
393
|
+
headers = {
|
|
394
|
+
"content-type": "application/x-amz-json-1.1",
|
|
395
|
+
"x-amz-target": "AWSKendraFrontendService.ListExperiences",
|
|
396
|
+
};
|
|
397
|
+
body = JSON.stringify(serializeAws_json1_1ListExperiencesRequest(input, context));
|
|
398
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
399
|
+
});
|
|
400
|
+
}); };
|
|
281
401
|
export var serializeAws_json1_1ListFaqsCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
282
402
|
var headers, body;
|
|
283
403
|
return __generator(this, function (_a) {
|
|
@@ -432,6 +552,17 @@ export var serializeAws_json1_1UpdateDataSourceCommand = function (input, contex
|
|
|
432
552
|
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
433
553
|
});
|
|
434
554
|
}); };
|
|
555
|
+
export var serializeAws_json1_1UpdateExperienceCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
556
|
+
var headers, body;
|
|
557
|
+
return __generator(this, function (_a) {
|
|
558
|
+
headers = {
|
|
559
|
+
"content-type": "application/x-amz-json-1.1",
|
|
560
|
+
"x-amz-target": "AWSKendraFrontendService.UpdateExperience",
|
|
561
|
+
};
|
|
562
|
+
body = JSON.stringify(serializeAws_json1_1UpdateExperienceRequest(input, context));
|
|
563
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
564
|
+
});
|
|
565
|
+
}); };
|
|
435
566
|
export var serializeAws_json1_1UpdateIndexCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
436
567
|
var headers, body;
|
|
437
568
|
return __generator(this, function (_a) {
|
|
@@ -476,25 +607,25 @@ export var serializeAws_json1_1UpdateThesaurusCommand = function (input, context
|
|
|
476
607
|
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
477
608
|
});
|
|
478
609
|
}); };
|
|
479
|
-
export var
|
|
610
|
+
export var deserializeAws_json1_1AssociateEntitiesToExperienceCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
480
611
|
var data, contents, response;
|
|
481
612
|
return __generator(this, function (_a) {
|
|
482
613
|
switch (_a.label) {
|
|
483
614
|
case 0:
|
|
484
615
|
if (output.statusCode >= 300) {
|
|
485
|
-
return [2,
|
|
616
|
+
return [2, deserializeAws_json1_1AssociateEntitiesToExperienceCommandError(output, context)];
|
|
486
617
|
}
|
|
487
618
|
return [4, parseBody(output.body, context)];
|
|
488
619
|
case 1:
|
|
489
620
|
data = _a.sent();
|
|
490
621
|
contents = {};
|
|
491
|
-
contents =
|
|
622
|
+
contents = deserializeAws_json1_1AssociateEntitiesToExperienceResponse(data, context);
|
|
492
623
|
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
493
624
|
return [2, Promise.resolve(response)];
|
|
494
625
|
}
|
|
495
626
|
});
|
|
496
627
|
}); };
|
|
497
|
-
var
|
|
628
|
+
var deserializeAws_json1_1AssociateEntitiesToExperienceCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
498
629
|
var parsedOutput, _a, response, errorCode, _b, _c, _d, _e, _f, _g, _h, parsedBody, message;
|
|
499
630
|
var _j;
|
|
500
631
|
return __generator(this, function (_k) {
|
|
@@ -511,10 +642,10 @@ var deserializeAws_json1_1BatchDeleteDocumentCommandError = function (output, co
|
|
|
511
642
|
switch (_b) {
|
|
512
643
|
case "AccessDeniedException": return [3, 2];
|
|
513
644
|
case "com.amazonaws.kendra#AccessDeniedException": return [3, 2];
|
|
514
|
-
case "
|
|
515
|
-
case "com.amazonaws.kendra#
|
|
516
|
-
case "
|
|
517
|
-
case "com.amazonaws.kendra#
|
|
645
|
+
case "InternalServerException": return [3, 4];
|
|
646
|
+
case "com.amazonaws.kendra#InternalServerException": return [3, 4];
|
|
647
|
+
case "ResourceAlreadyExistException": return [3, 6];
|
|
648
|
+
case "com.amazonaws.kendra#ResourceAlreadyExistException": return [3, 6];
|
|
518
649
|
case "ResourceNotFoundException": return [3, 8];
|
|
519
650
|
case "com.amazonaws.kendra#ResourceNotFoundException": return [3, 8];
|
|
520
651
|
case "ThrottlingException": return [3, 10];
|
|
@@ -531,13 +662,13 @@ var deserializeAws_json1_1BatchDeleteDocumentCommandError = function (output, co
|
|
|
531
662
|
return [3, 15];
|
|
532
663
|
case 4:
|
|
533
664
|
_d = [{}];
|
|
534
|
-
return [4,
|
|
665
|
+
return [4, deserializeAws_json1_1InternalServerExceptionResponse(parsedOutput, context)];
|
|
535
666
|
case 5:
|
|
536
667
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
537
668
|
return [3, 15];
|
|
538
669
|
case 6:
|
|
539
670
|
_e = [{}];
|
|
540
|
-
return [4,
|
|
671
|
+
return [4, deserializeAws_json1_1ResourceAlreadyExistExceptionResponse(parsedOutput, context)];
|
|
541
672
|
case 7:
|
|
542
673
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
543
674
|
return [3, 15];
|
|
@@ -572,25 +703,25 @@ var deserializeAws_json1_1BatchDeleteDocumentCommandError = function (output, co
|
|
|
572
703
|
}
|
|
573
704
|
});
|
|
574
705
|
}); };
|
|
575
|
-
export var
|
|
706
|
+
export var deserializeAws_json1_1AssociatePersonasToEntitiesCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
576
707
|
var data, contents, response;
|
|
577
708
|
return __generator(this, function (_a) {
|
|
578
709
|
switch (_a.label) {
|
|
579
710
|
case 0:
|
|
580
711
|
if (output.statusCode >= 300) {
|
|
581
|
-
return [2,
|
|
712
|
+
return [2, deserializeAws_json1_1AssociatePersonasToEntitiesCommandError(output, context)];
|
|
582
713
|
}
|
|
583
714
|
return [4, parseBody(output.body, context)];
|
|
584
715
|
case 1:
|
|
585
716
|
data = _a.sent();
|
|
586
717
|
contents = {};
|
|
587
|
-
contents =
|
|
718
|
+
contents = deserializeAws_json1_1AssociatePersonasToEntitiesResponse(data, context);
|
|
588
719
|
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
589
720
|
return [2, Promise.resolve(response)];
|
|
590
721
|
}
|
|
591
722
|
});
|
|
592
723
|
}); };
|
|
593
|
-
var
|
|
724
|
+
var deserializeAws_json1_1AssociatePersonasToEntitiesCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
594
725
|
var parsedOutput, _a, response, errorCode, _b, _c, _d, _e, _f, _g, _h, parsedBody, message;
|
|
595
726
|
var _j;
|
|
596
727
|
return __generator(this, function (_k) {
|
|
@@ -607,10 +738,10 @@ var deserializeAws_json1_1BatchGetDocumentStatusCommandError = function (output,
|
|
|
607
738
|
switch (_b) {
|
|
608
739
|
case "AccessDeniedException": return [3, 2];
|
|
609
740
|
case "com.amazonaws.kendra#AccessDeniedException": return [3, 2];
|
|
610
|
-
case "
|
|
611
|
-
case "com.amazonaws.kendra#
|
|
612
|
-
case "
|
|
613
|
-
case "com.amazonaws.kendra#
|
|
741
|
+
case "InternalServerException": return [3, 4];
|
|
742
|
+
case "com.amazonaws.kendra#InternalServerException": return [3, 4];
|
|
743
|
+
case "ResourceAlreadyExistException": return [3, 6];
|
|
744
|
+
case "com.amazonaws.kendra#ResourceAlreadyExistException": return [3, 6];
|
|
614
745
|
case "ResourceNotFoundException": return [3, 8];
|
|
615
746
|
case "com.amazonaws.kendra#ResourceNotFoundException": return [3, 8];
|
|
616
747
|
case "ThrottlingException": return [3, 10];
|
|
@@ -627,13 +758,13 @@ var deserializeAws_json1_1BatchGetDocumentStatusCommandError = function (output,
|
|
|
627
758
|
return [3, 15];
|
|
628
759
|
case 4:
|
|
629
760
|
_d = [{}];
|
|
630
|
-
return [4,
|
|
761
|
+
return [4, deserializeAws_json1_1InternalServerExceptionResponse(parsedOutput, context)];
|
|
631
762
|
case 5:
|
|
632
763
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
633
764
|
return [3, 15];
|
|
634
765
|
case 6:
|
|
635
766
|
_e = [{}];
|
|
636
|
-
return [4,
|
|
767
|
+
return [4, deserializeAws_json1_1ResourceAlreadyExistExceptionResponse(parsedOutput, context)];
|
|
637
768
|
case 7:
|
|
638
769
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
639
770
|
return [3, 15];
|
|
@@ -668,35 +799,35 @@ var deserializeAws_json1_1BatchGetDocumentStatusCommandError = function (output,
|
|
|
668
799
|
}
|
|
669
800
|
});
|
|
670
801
|
}); };
|
|
671
|
-
export var
|
|
802
|
+
export var deserializeAws_json1_1BatchDeleteDocumentCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
672
803
|
var data, contents, response;
|
|
673
804
|
return __generator(this, function (_a) {
|
|
674
805
|
switch (_a.label) {
|
|
675
806
|
case 0:
|
|
676
807
|
if (output.statusCode >= 300) {
|
|
677
|
-
return [2,
|
|
808
|
+
return [2, deserializeAws_json1_1BatchDeleteDocumentCommandError(output, context)];
|
|
678
809
|
}
|
|
679
810
|
return [4, parseBody(output.body, context)];
|
|
680
811
|
case 1:
|
|
681
812
|
data = _a.sent();
|
|
682
813
|
contents = {};
|
|
683
|
-
contents =
|
|
814
|
+
contents = deserializeAws_json1_1BatchDeleteDocumentResponse(data, context);
|
|
684
815
|
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
685
816
|
return [2, Promise.resolve(response)];
|
|
686
817
|
}
|
|
687
818
|
});
|
|
688
819
|
}); };
|
|
689
|
-
var
|
|
690
|
-
var parsedOutput, _a, response, errorCode, _b, _c, _d, _e, _f, _g, _h,
|
|
691
|
-
var
|
|
692
|
-
return __generator(this, function (
|
|
693
|
-
switch (
|
|
820
|
+
var deserializeAws_json1_1BatchDeleteDocumentCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
821
|
+
var parsedOutput, _a, response, errorCode, _b, _c, _d, _e, _f, _g, _h, parsedBody, message;
|
|
822
|
+
var _j;
|
|
823
|
+
return __generator(this, function (_k) {
|
|
824
|
+
switch (_k.label) {
|
|
694
825
|
case 0:
|
|
695
826
|
_a = [__assign({}, output)];
|
|
696
|
-
|
|
827
|
+
_j = {};
|
|
697
828
|
return [4, parseBody(output.body, context)];
|
|
698
829
|
case 1:
|
|
699
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(
|
|
830
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_j.body = _k.sent(), _j)]));
|
|
700
831
|
errorCode = "UnknownError";
|
|
701
832
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
702
833
|
_b = errorCode;
|
|
@@ -709,62 +840,54 @@ var deserializeAws_json1_1BatchPutDocumentCommandError = function (output, conte
|
|
|
709
840
|
case "com.amazonaws.kendra#InternalServerException": return [3, 6];
|
|
710
841
|
case "ResourceNotFoundException": return [3, 8];
|
|
711
842
|
case "com.amazonaws.kendra#ResourceNotFoundException": return [3, 8];
|
|
712
|
-
case "
|
|
713
|
-
case "com.amazonaws.kendra#
|
|
714
|
-
case "
|
|
715
|
-
case "com.amazonaws.kendra#
|
|
716
|
-
case "ValidationException": return [3, 14];
|
|
717
|
-
case "com.amazonaws.kendra#ValidationException": return [3, 14];
|
|
843
|
+
case "ThrottlingException": return [3, 10];
|
|
844
|
+
case "com.amazonaws.kendra#ThrottlingException": return [3, 10];
|
|
845
|
+
case "ValidationException": return [3, 12];
|
|
846
|
+
case "com.amazonaws.kendra#ValidationException": return [3, 12];
|
|
718
847
|
}
|
|
719
|
-
return [3,
|
|
848
|
+
return [3, 14];
|
|
720
849
|
case 2:
|
|
721
850
|
_c = [{}];
|
|
722
851
|
return [4, deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context)];
|
|
723
852
|
case 3:
|
|
724
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(
|
|
725
|
-
return [3,
|
|
853
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
854
|
+
return [3, 15];
|
|
726
855
|
case 4:
|
|
727
856
|
_d = [{}];
|
|
728
857
|
return [4, deserializeAws_json1_1ConflictExceptionResponse(parsedOutput, context)];
|
|
729
858
|
case 5:
|
|
730
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(
|
|
731
|
-
return [3,
|
|
859
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
860
|
+
return [3, 15];
|
|
732
861
|
case 6:
|
|
733
862
|
_e = [{}];
|
|
734
863
|
return [4, deserializeAws_json1_1InternalServerExceptionResponse(parsedOutput, context)];
|
|
735
864
|
case 7:
|
|
736
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(
|
|
737
|
-
return [3,
|
|
865
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
866
|
+
return [3, 15];
|
|
738
867
|
case 8:
|
|
739
868
|
_f = [{}];
|
|
740
869
|
return [4, deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
741
870
|
case 9:
|
|
742
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(
|
|
743
|
-
return [3,
|
|
871
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
872
|
+
return [3, 15];
|
|
744
873
|
case 10:
|
|
745
874
|
_g = [{}];
|
|
746
|
-
return [4,
|
|
875
|
+
return [4, deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context)];
|
|
747
876
|
case 11:
|
|
748
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(
|
|
749
|
-
return [3,
|
|
877
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
878
|
+
return [3, 15];
|
|
750
879
|
case 12:
|
|
751
880
|
_h = [{}];
|
|
752
|
-
return [4,
|
|
881
|
+
return [4, deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context)];
|
|
753
882
|
case 13:
|
|
754
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _h.concat([(
|
|
755
|
-
return [3,
|
|
883
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _h.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
884
|
+
return [3, 15];
|
|
756
885
|
case 14:
|
|
757
|
-
_j = [{}];
|
|
758
|
-
return [4, deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context)];
|
|
759
|
-
case 15:
|
|
760
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _j.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
761
|
-
return [3, 17];
|
|
762
|
-
case 16:
|
|
763
886
|
parsedBody = parsedOutput.body;
|
|
764
887
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
765
888
|
response = __assign(__assign({}, parsedBody), { name: "" + errorCode, message: parsedBody.message || parsedBody.Message || errorCode, $fault: "client", $metadata: deserializeMetadata(output) });
|
|
766
|
-
|
|
767
|
-
case
|
|
889
|
+
_k.label = 15;
|
|
890
|
+
case 15:
|
|
768
891
|
message = response.message || response.Message || errorCode;
|
|
769
892
|
response.message = message;
|
|
770
893
|
delete response.Message;
|
|
@@ -772,25 +895,25 @@ var deserializeAws_json1_1BatchPutDocumentCommandError = function (output, conte
|
|
|
772
895
|
}
|
|
773
896
|
});
|
|
774
897
|
}); };
|
|
775
|
-
export var
|
|
776
|
-
var response;
|
|
898
|
+
export var deserializeAws_json1_1BatchGetDocumentStatusCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
899
|
+
var data, contents, response;
|
|
777
900
|
return __generator(this, function (_a) {
|
|
778
901
|
switch (_a.label) {
|
|
779
902
|
case 0:
|
|
780
903
|
if (output.statusCode >= 300) {
|
|
781
|
-
return [2,
|
|
904
|
+
return [2, deserializeAws_json1_1BatchGetDocumentStatusCommandError(output, context)];
|
|
782
905
|
}
|
|
783
|
-
return [4,
|
|
906
|
+
return [4, parseBody(output.body, context)];
|
|
784
907
|
case 1:
|
|
785
|
-
_a.sent();
|
|
786
|
-
|
|
787
|
-
|
|
788
|
-
};
|
|
908
|
+
data = _a.sent();
|
|
909
|
+
contents = {};
|
|
910
|
+
contents = deserializeAws_json1_1BatchGetDocumentStatusResponse(data, context);
|
|
911
|
+
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
789
912
|
return [2, Promise.resolve(response)];
|
|
790
913
|
}
|
|
791
914
|
});
|
|
792
915
|
}); };
|
|
793
|
-
var
|
|
916
|
+
var deserializeAws_json1_1BatchGetDocumentStatusCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
794
917
|
var parsedOutput, _a, response, errorCode, _b, _c, _d, _e, _f, _g, _h, parsedBody, message;
|
|
795
918
|
var _j;
|
|
796
919
|
return __generator(this, function (_k) {
|
|
@@ -868,35 +991,35 @@ var deserializeAws_json1_1ClearQuerySuggestionsCommandError = function (output,
|
|
|
868
991
|
}
|
|
869
992
|
});
|
|
870
993
|
}); };
|
|
871
|
-
export var
|
|
994
|
+
export var deserializeAws_json1_1BatchPutDocumentCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
872
995
|
var data, contents, response;
|
|
873
996
|
return __generator(this, function (_a) {
|
|
874
997
|
switch (_a.label) {
|
|
875
998
|
case 0:
|
|
876
999
|
if (output.statusCode >= 300) {
|
|
877
|
-
return [2,
|
|
1000
|
+
return [2, deserializeAws_json1_1BatchPutDocumentCommandError(output, context)];
|
|
878
1001
|
}
|
|
879
1002
|
return [4, parseBody(output.body, context)];
|
|
880
1003
|
case 1:
|
|
881
1004
|
data = _a.sent();
|
|
882
1005
|
contents = {};
|
|
883
|
-
contents =
|
|
1006
|
+
contents = deserializeAws_json1_1BatchPutDocumentResponse(data, context);
|
|
884
1007
|
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
885
1008
|
return [2, Promise.resolve(response)];
|
|
886
1009
|
}
|
|
887
1010
|
});
|
|
888
1011
|
}); };
|
|
889
|
-
var
|
|
890
|
-
var parsedOutput, _a, response, errorCode, _b, _c, _d, _e, _f, _g, _h, _j,
|
|
891
|
-
var
|
|
892
|
-
return __generator(this, function (
|
|
893
|
-
switch (
|
|
1012
|
+
var deserializeAws_json1_1BatchPutDocumentCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1013
|
+
var parsedOutput, _a, response, errorCode, _b, _c, _d, _e, _f, _g, _h, _j, parsedBody, message;
|
|
1014
|
+
var _k;
|
|
1015
|
+
return __generator(this, function (_l) {
|
|
1016
|
+
switch (_l.label) {
|
|
894
1017
|
case 0:
|
|
895
1018
|
_a = [__assign({}, output)];
|
|
896
|
-
|
|
1019
|
+
_k = {};
|
|
897
1020
|
return [4, parseBody(output.body, context)];
|
|
898
1021
|
case 1:
|
|
899
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(
|
|
1022
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_k.body = _l.sent(), _k)]));
|
|
900
1023
|
errorCode = "UnknownError";
|
|
901
1024
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
902
1025
|
_b = errorCode;
|
|
@@ -907,24 +1030,224 @@ var deserializeAws_json1_1CreateDataSourceCommandError = function (output, conte
|
|
|
907
1030
|
case "com.amazonaws.kendra#ConflictException": return [3, 4];
|
|
908
1031
|
case "InternalServerException": return [3, 6];
|
|
909
1032
|
case "com.amazonaws.kendra#InternalServerException": return [3, 6];
|
|
910
|
-
case "
|
|
911
|
-
case "com.amazonaws.kendra#
|
|
912
|
-
case "
|
|
913
|
-
case "com.amazonaws.kendra#
|
|
914
|
-
case "
|
|
915
|
-
case "com.amazonaws.kendra#
|
|
916
|
-
case "
|
|
917
|
-
case "com.amazonaws.kendra#
|
|
918
|
-
case "ValidationException": return [3, 16];
|
|
919
|
-
case "com.amazonaws.kendra#ValidationException": return [3, 16];
|
|
1033
|
+
case "ResourceNotFoundException": return [3, 8];
|
|
1034
|
+
case "com.amazonaws.kendra#ResourceNotFoundException": return [3, 8];
|
|
1035
|
+
case "ServiceQuotaExceededException": return [3, 10];
|
|
1036
|
+
case "com.amazonaws.kendra#ServiceQuotaExceededException": return [3, 10];
|
|
1037
|
+
case "ThrottlingException": return [3, 12];
|
|
1038
|
+
case "com.amazonaws.kendra#ThrottlingException": return [3, 12];
|
|
1039
|
+
case "ValidationException": return [3, 14];
|
|
1040
|
+
case "com.amazonaws.kendra#ValidationException": return [3, 14];
|
|
920
1041
|
}
|
|
921
|
-
return [3,
|
|
1042
|
+
return [3, 16];
|
|
922
1043
|
case 2:
|
|
923
1044
|
_c = [{}];
|
|
924
1045
|
return [4, deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context)];
|
|
925
1046
|
case 3:
|
|
926
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(
|
|
927
|
-
return [3,
|
|
1047
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1048
|
+
return [3, 17];
|
|
1049
|
+
case 4:
|
|
1050
|
+
_d = [{}];
|
|
1051
|
+
return [4, deserializeAws_json1_1ConflictExceptionResponse(parsedOutput, context)];
|
|
1052
|
+
case 5:
|
|
1053
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1054
|
+
return [3, 17];
|
|
1055
|
+
case 6:
|
|
1056
|
+
_e = [{}];
|
|
1057
|
+
return [4, deserializeAws_json1_1InternalServerExceptionResponse(parsedOutput, context)];
|
|
1058
|
+
case 7:
|
|
1059
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1060
|
+
return [3, 17];
|
|
1061
|
+
case 8:
|
|
1062
|
+
_f = [{}];
|
|
1063
|
+
return [4, deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
1064
|
+
case 9:
|
|
1065
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1066
|
+
return [3, 17];
|
|
1067
|
+
case 10:
|
|
1068
|
+
_g = [{}];
|
|
1069
|
+
return [4, deserializeAws_json1_1ServiceQuotaExceededExceptionResponse(parsedOutput, context)];
|
|
1070
|
+
case 11:
|
|
1071
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1072
|
+
return [3, 17];
|
|
1073
|
+
case 12:
|
|
1074
|
+
_h = [{}];
|
|
1075
|
+
return [4, deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context)];
|
|
1076
|
+
case 13:
|
|
1077
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _h.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1078
|
+
return [3, 17];
|
|
1079
|
+
case 14:
|
|
1080
|
+
_j = [{}];
|
|
1081
|
+
return [4, deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context)];
|
|
1082
|
+
case 15:
|
|
1083
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _j.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1084
|
+
return [3, 17];
|
|
1085
|
+
case 16:
|
|
1086
|
+
parsedBody = parsedOutput.body;
|
|
1087
|
+
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
1088
|
+
response = __assign(__assign({}, parsedBody), { name: "" + errorCode, message: parsedBody.message || parsedBody.Message || errorCode, $fault: "client", $metadata: deserializeMetadata(output) });
|
|
1089
|
+
_l.label = 17;
|
|
1090
|
+
case 17:
|
|
1091
|
+
message = response.message || response.Message || errorCode;
|
|
1092
|
+
response.message = message;
|
|
1093
|
+
delete response.Message;
|
|
1094
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
1095
|
+
}
|
|
1096
|
+
});
|
|
1097
|
+
}); };
|
|
1098
|
+
export var deserializeAws_json1_1ClearQuerySuggestionsCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1099
|
+
var response;
|
|
1100
|
+
return __generator(this, function (_a) {
|
|
1101
|
+
switch (_a.label) {
|
|
1102
|
+
case 0:
|
|
1103
|
+
if (output.statusCode >= 300) {
|
|
1104
|
+
return [2, deserializeAws_json1_1ClearQuerySuggestionsCommandError(output, context)];
|
|
1105
|
+
}
|
|
1106
|
+
return [4, collectBody(output.body, context)];
|
|
1107
|
+
case 1:
|
|
1108
|
+
_a.sent();
|
|
1109
|
+
response = {
|
|
1110
|
+
$metadata: deserializeMetadata(output),
|
|
1111
|
+
};
|
|
1112
|
+
return [2, Promise.resolve(response)];
|
|
1113
|
+
}
|
|
1114
|
+
});
|
|
1115
|
+
}); };
|
|
1116
|
+
var deserializeAws_json1_1ClearQuerySuggestionsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1117
|
+
var parsedOutput, _a, response, errorCode, _b, _c, _d, _e, _f, _g, _h, parsedBody, message;
|
|
1118
|
+
var _j;
|
|
1119
|
+
return __generator(this, function (_k) {
|
|
1120
|
+
switch (_k.label) {
|
|
1121
|
+
case 0:
|
|
1122
|
+
_a = [__assign({}, output)];
|
|
1123
|
+
_j = {};
|
|
1124
|
+
return [4, parseBody(output.body, context)];
|
|
1125
|
+
case 1:
|
|
1126
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_j.body = _k.sent(), _j)]));
|
|
1127
|
+
errorCode = "UnknownError";
|
|
1128
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1129
|
+
_b = errorCode;
|
|
1130
|
+
switch (_b) {
|
|
1131
|
+
case "AccessDeniedException": return [3, 2];
|
|
1132
|
+
case "com.amazonaws.kendra#AccessDeniedException": return [3, 2];
|
|
1133
|
+
case "ConflictException": return [3, 4];
|
|
1134
|
+
case "com.amazonaws.kendra#ConflictException": return [3, 4];
|
|
1135
|
+
case "InternalServerException": return [3, 6];
|
|
1136
|
+
case "com.amazonaws.kendra#InternalServerException": return [3, 6];
|
|
1137
|
+
case "ResourceNotFoundException": return [3, 8];
|
|
1138
|
+
case "com.amazonaws.kendra#ResourceNotFoundException": return [3, 8];
|
|
1139
|
+
case "ThrottlingException": return [3, 10];
|
|
1140
|
+
case "com.amazonaws.kendra#ThrottlingException": return [3, 10];
|
|
1141
|
+
case "ValidationException": return [3, 12];
|
|
1142
|
+
case "com.amazonaws.kendra#ValidationException": return [3, 12];
|
|
1143
|
+
}
|
|
1144
|
+
return [3, 14];
|
|
1145
|
+
case 2:
|
|
1146
|
+
_c = [{}];
|
|
1147
|
+
return [4, deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context)];
|
|
1148
|
+
case 3:
|
|
1149
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1150
|
+
return [3, 15];
|
|
1151
|
+
case 4:
|
|
1152
|
+
_d = [{}];
|
|
1153
|
+
return [4, deserializeAws_json1_1ConflictExceptionResponse(parsedOutput, context)];
|
|
1154
|
+
case 5:
|
|
1155
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1156
|
+
return [3, 15];
|
|
1157
|
+
case 6:
|
|
1158
|
+
_e = [{}];
|
|
1159
|
+
return [4, deserializeAws_json1_1InternalServerExceptionResponse(parsedOutput, context)];
|
|
1160
|
+
case 7:
|
|
1161
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1162
|
+
return [3, 15];
|
|
1163
|
+
case 8:
|
|
1164
|
+
_f = [{}];
|
|
1165
|
+
return [4, deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
1166
|
+
case 9:
|
|
1167
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1168
|
+
return [3, 15];
|
|
1169
|
+
case 10:
|
|
1170
|
+
_g = [{}];
|
|
1171
|
+
return [4, deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context)];
|
|
1172
|
+
case 11:
|
|
1173
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1174
|
+
return [3, 15];
|
|
1175
|
+
case 12:
|
|
1176
|
+
_h = [{}];
|
|
1177
|
+
return [4, deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context)];
|
|
1178
|
+
case 13:
|
|
1179
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _h.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1180
|
+
return [3, 15];
|
|
1181
|
+
case 14:
|
|
1182
|
+
parsedBody = parsedOutput.body;
|
|
1183
|
+
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
1184
|
+
response = __assign(__assign({}, parsedBody), { name: "" + errorCode, message: parsedBody.message || parsedBody.Message || errorCode, $fault: "client", $metadata: deserializeMetadata(output) });
|
|
1185
|
+
_k.label = 15;
|
|
1186
|
+
case 15:
|
|
1187
|
+
message = response.message || response.Message || errorCode;
|
|
1188
|
+
response.message = message;
|
|
1189
|
+
delete response.Message;
|
|
1190
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
1191
|
+
}
|
|
1192
|
+
});
|
|
1193
|
+
}); };
|
|
1194
|
+
export var deserializeAws_json1_1CreateDataSourceCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1195
|
+
var data, contents, response;
|
|
1196
|
+
return __generator(this, function (_a) {
|
|
1197
|
+
switch (_a.label) {
|
|
1198
|
+
case 0:
|
|
1199
|
+
if (output.statusCode >= 300) {
|
|
1200
|
+
return [2, deserializeAws_json1_1CreateDataSourceCommandError(output, context)];
|
|
1201
|
+
}
|
|
1202
|
+
return [4, parseBody(output.body, context)];
|
|
1203
|
+
case 1:
|
|
1204
|
+
data = _a.sent();
|
|
1205
|
+
contents = {};
|
|
1206
|
+
contents = deserializeAws_json1_1CreateDataSourceResponse(data, context);
|
|
1207
|
+
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
1208
|
+
return [2, Promise.resolve(response)];
|
|
1209
|
+
}
|
|
1210
|
+
});
|
|
1211
|
+
}); };
|
|
1212
|
+
var deserializeAws_json1_1CreateDataSourceCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1213
|
+
var parsedOutput, _a, response, errorCode, _b, _c, _d, _e, _f, _g, _h, _j, _k, parsedBody, message;
|
|
1214
|
+
var _l;
|
|
1215
|
+
return __generator(this, function (_m) {
|
|
1216
|
+
switch (_m.label) {
|
|
1217
|
+
case 0:
|
|
1218
|
+
_a = [__assign({}, output)];
|
|
1219
|
+
_l = {};
|
|
1220
|
+
return [4, parseBody(output.body, context)];
|
|
1221
|
+
case 1:
|
|
1222
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_l.body = _m.sent(), _l)]));
|
|
1223
|
+
errorCode = "UnknownError";
|
|
1224
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1225
|
+
_b = errorCode;
|
|
1226
|
+
switch (_b) {
|
|
1227
|
+
case "AccessDeniedException": return [3, 2];
|
|
1228
|
+
case "com.amazonaws.kendra#AccessDeniedException": return [3, 2];
|
|
1229
|
+
case "ConflictException": return [3, 4];
|
|
1230
|
+
case "com.amazonaws.kendra#ConflictException": return [3, 4];
|
|
1231
|
+
case "InternalServerException": return [3, 6];
|
|
1232
|
+
case "com.amazonaws.kendra#InternalServerException": return [3, 6];
|
|
1233
|
+
case "ResourceAlreadyExistException": return [3, 8];
|
|
1234
|
+
case "com.amazonaws.kendra#ResourceAlreadyExistException": return [3, 8];
|
|
1235
|
+
case "ResourceNotFoundException": return [3, 10];
|
|
1236
|
+
case "com.amazonaws.kendra#ResourceNotFoundException": return [3, 10];
|
|
1237
|
+
case "ServiceQuotaExceededException": return [3, 12];
|
|
1238
|
+
case "com.amazonaws.kendra#ServiceQuotaExceededException": return [3, 12];
|
|
1239
|
+
case "ThrottlingException": return [3, 14];
|
|
1240
|
+
case "com.amazonaws.kendra#ThrottlingException": return [3, 14];
|
|
1241
|
+
case "ValidationException": return [3, 16];
|
|
1242
|
+
case "com.amazonaws.kendra#ValidationException": return [3, 16];
|
|
1243
|
+
}
|
|
1244
|
+
return [3, 18];
|
|
1245
|
+
case 2:
|
|
1246
|
+
_c = [{}];
|
|
1247
|
+
return [4, deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context)];
|
|
1248
|
+
case 3:
|
|
1249
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_m.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1250
|
+
return [3, 19];
|
|
928
1251
|
case 4:
|
|
929
1252
|
_d = [{}];
|
|
930
1253
|
return [4, deserializeAws_json1_1ConflictExceptionResponse(parsedOutput, context)];
|
|
@@ -980,25 +1303,25 @@ var deserializeAws_json1_1CreateDataSourceCommandError = function (output, conte
|
|
|
980
1303
|
}
|
|
981
1304
|
});
|
|
982
1305
|
}); };
|
|
983
|
-
export var
|
|
1306
|
+
export var deserializeAws_json1_1CreateExperienceCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
984
1307
|
var data, contents, response;
|
|
985
1308
|
return __generator(this, function (_a) {
|
|
986
1309
|
switch (_a.label) {
|
|
987
1310
|
case 0:
|
|
988
1311
|
if (output.statusCode >= 300) {
|
|
989
|
-
return [2,
|
|
1312
|
+
return [2, deserializeAws_json1_1CreateExperienceCommandError(output, context)];
|
|
990
1313
|
}
|
|
991
1314
|
return [4, parseBody(output.body, context)];
|
|
992
1315
|
case 1:
|
|
993
1316
|
data = _a.sent();
|
|
994
1317
|
contents = {};
|
|
995
|
-
contents =
|
|
1318
|
+
contents = deserializeAws_json1_1CreateExperienceResponse(data, context);
|
|
996
1319
|
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
997
1320
|
return [2, Promise.resolve(response)];
|
|
998
1321
|
}
|
|
999
1322
|
});
|
|
1000
1323
|
}); };
|
|
1001
|
-
var
|
|
1324
|
+
var deserializeAws_json1_1CreateExperienceCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1002
1325
|
var parsedOutput, _a, response, errorCode, _b, _c, _d, _e, _f, _g, _h, _j, parsedBody, message;
|
|
1003
1326
|
var _k;
|
|
1004
1327
|
return __generator(this, function (_l) {
|
|
@@ -1084,25 +1407,25 @@ var deserializeAws_json1_1CreateFaqCommandError = function (output, context) { r
|
|
|
1084
1407
|
}
|
|
1085
1408
|
});
|
|
1086
1409
|
}); };
|
|
1087
|
-
export var
|
|
1410
|
+
export var deserializeAws_json1_1CreateFaqCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1088
1411
|
var data, contents, response;
|
|
1089
1412
|
return __generator(this, function (_a) {
|
|
1090
1413
|
switch (_a.label) {
|
|
1091
1414
|
case 0:
|
|
1092
1415
|
if (output.statusCode >= 300) {
|
|
1093
|
-
return [2,
|
|
1416
|
+
return [2, deserializeAws_json1_1CreateFaqCommandError(output, context)];
|
|
1094
1417
|
}
|
|
1095
1418
|
return [4, parseBody(output.body, context)];
|
|
1096
1419
|
case 1:
|
|
1097
1420
|
data = _a.sent();
|
|
1098
1421
|
contents = {};
|
|
1099
|
-
contents =
|
|
1422
|
+
contents = deserializeAws_json1_1CreateFaqResponse(data, context);
|
|
1100
1423
|
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
1101
1424
|
return [2, Promise.resolve(response)];
|
|
1102
1425
|
}
|
|
1103
1426
|
});
|
|
1104
1427
|
}); };
|
|
1105
|
-
var
|
|
1428
|
+
var deserializeAws_json1_1CreateFaqCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1106
1429
|
var parsedOutput, _a, response, errorCode, _b, _c, _d, _e, _f, _g, _h, _j, parsedBody, message;
|
|
1107
1430
|
var _k;
|
|
1108
1431
|
return __generator(this, function (_l) {
|
|
@@ -1123,8 +1446,8 @@ var deserializeAws_json1_1CreateIndexCommandError = function (output, context) {
|
|
|
1123
1446
|
case "com.amazonaws.kendra#ConflictException": return [3, 4];
|
|
1124
1447
|
case "InternalServerException": return [3, 6];
|
|
1125
1448
|
case "com.amazonaws.kendra#InternalServerException": return [3, 6];
|
|
1126
|
-
case "
|
|
1127
|
-
case "com.amazonaws.kendra#
|
|
1449
|
+
case "ResourceNotFoundException": return [3, 8];
|
|
1450
|
+
case "com.amazonaws.kendra#ResourceNotFoundException": return [3, 8];
|
|
1128
1451
|
case "ServiceQuotaExceededException": return [3, 10];
|
|
1129
1452
|
case "com.amazonaws.kendra#ServiceQuotaExceededException": return [3, 10];
|
|
1130
1453
|
case "ThrottlingException": return [3, 12];
|
|
@@ -1153,7 +1476,7 @@ var deserializeAws_json1_1CreateIndexCommandError = function (output, context) {
|
|
|
1153
1476
|
return [3, 17];
|
|
1154
1477
|
case 8:
|
|
1155
1478
|
_f = [{}];
|
|
1156
|
-
return [4,
|
|
1479
|
+
return [4, deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
1157
1480
|
case 9:
|
|
1158
1481
|
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1159
1482
|
return [3, 17];
|
|
@@ -1188,25 +1511,25 @@ var deserializeAws_json1_1CreateIndexCommandError = function (output, context) {
|
|
|
1188
1511
|
}
|
|
1189
1512
|
});
|
|
1190
1513
|
}); };
|
|
1191
|
-
export var
|
|
1514
|
+
export var deserializeAws_json1_1CreateIndexCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1192
1515
|
var data, contents, response;
|
|
1193
1516
|
return __generator(this, function (_a) {
|
|
1194
1517
|
switch (_a.label) {
|
|
1195
1518
|
case 0:
|
|
1196
1519
|
if (output.statusCode >= 300) {
|
|
1197
|
-
return [2,
|
|
1520
|
+
return [2, deserializeAws_json1_1CreateIndexCommandError(output, context)];
|
|
1198
1521
|
}
|
|
1199
1522
|
return [4, parseBody(output.body, context)];
|
|
1200
1523
|
case 1:
|
|
1201
1524
|
data = _a.sent();
|
|
1202
1525
|
contents = {};
|
|
1203
|
-
contents =
|
|
1526
|
+
contents = deserializeAws_json1_1CreateIndexResponse(data, context);
|
|
1204
1527
|
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
1205
1528
|
return [2, Promise.resolve(response)];
|
|
1206
1529
|
}
|
|
1207
1530
|
});
|
|
1208
1531
|
}); };
|
|
1209
|
-
var
|
|
1532
|
+
var deserializeAws_json1_1CreateIndexCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1210
1533
|
var parsedOutput, _a, response, errorCode, _b, _c, _d, _e, _f, _g, _h, _j, parsedBody, message;
|
|
1211
1534
|
var _k;
|
|
1212
1535
|
return __generator(this, function (_l) {
|
|
@@ -1227,8 +1550,8 @@ var deserializeAws_json1_1CreateQuerySuggestionsBlockListCommandError = function
|
|
|
1227
1550
|
case "com.amazonaws.kendra#ConflictException": return [3, 4];
|
|
1228
1551
|
case "InternalServerException": return [3, 6];
|
|
1229
1552
|
case "com.amazonaws.kendra#InternalServerException": return [3, 6];
|
|
1230
|
-
case "
|
|
1231
|
-
case "com.amazonaws.kendra#
|
|
1553
|
+
case "ResourceAlreadyExistException": return [3, 8];
|
|
1554
|
+
case "com.amazonaws.kendra#ResourceAlreadyExistException": return [3, 8];
|
|
1232
1555
|
case "ServiceQuotaExceededException": return [3, 10];
|
|
1233
1556
|
case "com.amazonaws.kendra#ServiceQuotaExceededException": return [3, 10];
|
|
1234
1557
|
case "ThrottlingException": return [3, 12];
|
|
@@ -1257,7 +1580,7 @@ var deserializeAws_json1_1CreateQuerySuggestionsBlockListCommandError = function
|
|
|
1257
1580
|
return [3, 17];
|
|
1258
1581
|
case 8:
|
|
1259
1582
|
_f = [{}];
|
|
1260
|
-
return [4,
|
|
1583
|
+
return [4, deserializeAws_json1_1ResourceAlreadyExistExceptionResponse(parsedOutput, context)];
|
|
1261
1584
|
case 9:
|
|
1262
1585
|
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1263
1586
|
return [3, 17];
|
|
@@ -1292,25 +1615,25 @@ var deserializeAws_json1_1CreateQuerySuggestionsBlockListCommandError = function
|
|
|
1292
1615
|
}
|
|
1293
1616
|
});
|
|
1294
1617
|
}); };
|
|
1295
|
-
export var
|
|
1618
|
+
export var deserializeAws_json1_1CreateQuerySuggestionsBlockListCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1296
1619
|
var data, contents, response;
|
|
1297
1620
|
return __generator(this, function (_a) {
|
|
1298
1621
|
switch (_a.label) {
|
|
1299
1622
|
case 0:
|
|
1300
1623
|
if (output.statusCode >= 300) {
|
|
1301
|
-
return [2,
|
|
1624
|
+
return [2, deserializeAws_json1_1CreateQuerySuggestionsBlockListCommandError(output, context)];
|
|
1302
1625
|
}
|
|
1303
1626
|
return [4, parseBody(output.body, context)];
|
|
1304
1627
|
case 1:
|
|
1305
1628
|
data = _a.sent();
|
|
1306
1629
|
contents = {};
|
|
1307
|
-
contents =
|
|
1630
|
+
contents = deserializeAws_json1_1CreateQuerySuggestionsBlockListResponse(data, context);
|
|
1308
1631
|
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
1309
1632
|
return [2, Promise.resolve(response)];
|
|
1310
1633
|
}
|
|
1311
1634
|
});
|
|
1312
1635
|
}); };
|
|
1313
|
-
var
|
|
1636
|
+
var deserializeAws_json1_1CreateQuerySuggestionsBlockListCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1314
1637
|
var parsedOutput, _a, response, errorCode, _b, _c, _d, _e, _f, _g, _h, _j, parsedBody, message;
|
|
1315
1638
|
var _k;
|
|
1316
1639
|
return __generator(this, function (_l) {
|
|
@@ -1396,22 +1719,126 @@ var deserializeAws_json1_1CreateThesaurusCommandError = function (output, contex
|
|
|
1396
1719
|
}
|
|
1397
1720
|
});
|
|
1398
1721
|
}); };
|
|
1399
|
-
export var
|
|
1400
|
-
var response;
|
|
1722
|
+
export var deserializeAws_json1_1CreateThesaurusCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1723
|
+
var data, contents, response;
|
|
1401
1724
|
return __generator(this, function (_a) {
|
|
1402
1725
|
switch (_a.label) {
|
|
1403
1726
|
case 0:
|
|
1404
1727
|
if (output.statusCode >= 300) {
|
|
1405
|
-
return [2,
|
|
1728
|
+
return [2, deserializeAws_json1_1CreateThesaurusCommandError(output, context)];
|
|
1406
1729
|
}
|
|
1407
|
-
return [4,
|
|
1730
|
+
return [4, parseBody(output.body, context)];
|
|
1408
1731
|
case 1:
|
|
1409
|
-
_a.sent();
|
|
1410
|
-
|
|
1411
|
-
|
|
1412
|
-
};
|
|
1413
|
-
return [2, Promise.resolve(response)];
|
|
1414
|
-
}
|
|
1732
|
+
data = _a.sent();
|
|
1733
|
+
contents = {};
|
|
1734
|
+
contents = deserializeAws_json1_1CreateThesaurusResponse(data, context);
|
|
1735
|
+
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
1736
|
+
return [2, Promise.resolve(response)];
|
|
1737
|
+
}
|
|
1738
|
+
});
|
|
1739
|
+
}); };
|
|
1740
|
+
var deserializeAws_json1_1CreateThesaurusCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1741
|
+
var parsedOutput, _a, response, errorCode, _b, _c, _d, _e, _f, _g, _h, _j, parsedBody, message;
|
|
1742
|
+
var _k;
|
|
1743
|
+
return __generator(this, function (_l) {
|
|
1744
|
+
switch (_l.label) {
|
|
1745
|
+
case 0:
|
|
1746
|
+
_a = [__assign({}, output)];
|
|
1747
|
+
_k = {};
|
|
1748
|
+
return [4, parseBody(output.body, context)];
|
|
1749
|
+
case 1:
|
|
1750
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_k.body = _l.sent(), _k)]));
|
|
1751
|
+
errorCode = "UnknownError";
|
|
1752
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1753
|
+
_b = errorCode;
|
|
1754
|
+
switch (_b) {
|
|
1755
|
+
case "AccessDeniedException": return [3, 2];
|
|
1756
|
+
case "com.amazonaws.kendra#AccessDeniedException": return [3, 2];
|
|
1757
|
+
case "ConflictException": return [3, 4];
|
|
1758
|
+
case "com.amazonaws.kendra#ConflictException": return [3, 4];
|
|
1759
|
+
case "InternalServerException": return [3, 6];
|
|
1760
|
+
case "com.amazonaws.kendra#InternalServerException": return [3, 6];
|
|
1761
|
+
case "ResourceNotFoundException": return [3, 8];
|
|
1762
|
+
case "com.amazonaws.kendra#ResourceNotFoundException": return [3, 8];
|
|
1763
|
+
case "ServiceQuotaExceededException": return [3, 10];
|
|
1764
|
+
case "com.amazonaws.kendra#ServiceQuotaExceededException": return [3, 10];
|
|
1765
|
+
case "ThrottlingException": return [3, 12];
|
|
1766
|
+
case "com.amazonaws.kendra#ThrottlingException": return [3, 12];
|
|
1767
|
+
case "ValidationException": return [3, 14];
|
|
1768
|
+
case "com.amazonaws.kendra#ValidationException": return [3, 14];
|
|
1769
|
+
}
|
|
1770
|
+
return [3, 16];
|
|
1771
|
+
case 2:
|
|
1772
|
+
_c = [{}];
|
|
1773
|
+
return [4, deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context)];
|
|
1774
|
+
case 3:
|
|
1775
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1776
|
+
return [3, 17];
|
|
1777
|
+
case 4:
|
|
1778
|
+
_d = [{}];
|
|
1779
|
+
return [4, deserializeAws_json1_1ConflictExceptionResponse(parsedOutput, context)];
|
|
1780
|
+
case 5:
|
|
1781
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1782
|
+
return [3, 17];
|
|
1783
|
+
case 6:
|
|
1784
|
+
_e = [{}];
|
|
1785
|
+
return [4, deserializeAws_json1_1InternalServerExceptionResponse(parsedOutput, context)];
|
|
1786
|
+
case 7:
|
|
1787
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1788
|
+
return [3, 17];
|
|
1789
|
+
case 8:
|
|
1790
|
+
_f = [{}];
|
|
1791
|
+
return [4, deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
1792
|
+
case 9:
|
|
1793
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1794
|
+
return [3, 17];
|
|
1795
|
+
case 10:
|
|
1796
|
+
_g = [{}];
|
|
1797
|
+
return [4, deserializeAws_json1_1ServiceQuotaExceededExceptionResponse(parsedOutput, context)];
|
|
1798
|
+
case 11:
|
|
1799
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1800
|
+
return [3, 17];
|
|
1801
|
+
case 12:
|
|
1802
|
+
_h = [{}];
|
|
1803
|
+
return [4, deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context)];
|
|
1804
|
+
case 13:
|
|
1805
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _h.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1806
|
+
return [3, 17];
|
|
1807
|
+
case 14:
|
|
1808
|
+
_j = [{}];
|
|
1809
|
+
return [4, deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context)];
|
|
1810
|
+
case 15:
|
|
1811
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _j.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1812
|
+
return [3, 17];
|
|
1813
|
+
case 16:
|
|
1814
|
+
parsedBody = parsedOutput.body;
|
|
1815
|
+
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
1816
|
+
response = __assign(__assign({}, parsedBody), { name: "" + errorCode, message: parsedBody.message || parsedBody.Message || errorCode, $fault: "client", $metadata: deserializeMetadata(output) });
|
|
1817
|
+
_l.label = 17;
|
|
1818
|
+
case 17:
|
|
1819
|
+
message = response.message || response.Message || errorCode;
|
|
1820
|
+
response.message = message;
|
|
1821
|
+
delete response.Message;
|
|
1822
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
1823
|
+
}
|
|
1824
|
+
});
|
|
1825
|
+
}); };
|
|
1826
|
+
export var deserializeAws_json1_1DeleteDataSourceCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1827
|
+
var response;
|
|
1828
|
+
return __generator(this, function (_a) {
|
|
1829
|
+
switch (_a.label) {
|
|
1830
|
+
case 0:
|
|
1831
|
+
if (output.statusCode >= 300) {
|
|
1832
|
+
return [2, deserializeAws_json1_1DeleteDataSourceCommandError(output, context)];
|
|
1833
|
+
}
|
|
1834
|
+
return [4, collectBody(output.body, context)];
|
|
1835
|
+
case 1:
|
|
1836
|
+
_a.sent();
|
|
1837
|
+
response = {
|
|
1838
|
+
$metadata: deserializeMetadata(output),
|
|
1839
|
+
};
|
|
1840
|
+
return [2, Promise.resolve(response)];
|
|
1841
|
+
}
|
|
1415
1842
|
});
|
|
1416
1843
|
}); };
|
|
1417
1844
|
var deserializeAws_json1_1DeleteDataSourceCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -1492,6 +1919,102 @@ var deserializeAws_json1_1DeleteDataSourceCommandError = function (output, conte
|
|
|
1492
1919
|
}
|
|
1493
1920
|
});
|
|
1494
1921
|
}); };
|
|
1922
|
+
export var deserializeAws_json1_1DeleteExperienceCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1923
|
+
var data, contents, response;
|
|
1924
|
+
return __generator(this, function (_a) {
|
|
1925
|
+
switch (_a.label) {
|
|
1926
|
+
case 0:
|
|
1927
|
+
if (output.statusCode >= 300) {
|
|
1928
|
+
return [2, deserializeAws_json1_1DeleteExperienceCommandError(output, context)];
|
|
1929
|
+
}
|
|
1930
|
+
return [4, parseBody(output.body, context)];
|
|
1931
|
+
case 1:
|
|
1932
|
+
data = _a.sent();
|
|
1933
|
+
contents = {};
|
|
1934
|
+
contents = deserializeAws_json1_1DeleteExperienceResponse(data, context);
|
|
1935
|
+
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
1936
|
+
return [2, Promise.resolve(response)];
|
|
1937
|
+
}
|
|
1938
|
+
});
|
|
1939
|
+
}); };
|
|
1940
|
+
var deserializeAws_json1_1DeleteExperienceCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1941
|
+
var parsedOutput, _a, response, errorCode, _b, _c, _d, _e, _f, _g, _h, parsedBody, message;
|
|
1942
|
+
var _j;
|
|
1943
|
+
return __generator(this, function (_k) {
|
|
1944
|
+
switch (_k.label) {
|
|
1945
|
+
case 0:
|
|
1946
|
+
_a = [__assign({}, output)];
|
|
1947
|
+
_j = {};
|
|
1948
|
+
return [4, parseBody(output.body, context)];
|
|
1949
|
+
case 1:
|
|
1950
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_j.body = _k.sent(), _j)]));
|
|
1951
|
+
errorCode = "UnknownError";
|
|
1952
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1953
|
+
_b = errorCode;
|
|
1954
|
+
switch (_b) {
|
|
1955
|
+
case "AccessDeniedException": return [3, 2];
|
|
1956
|
+
case "com.amazonaws.kendra#AccessDeniedException": return [3, 2];
|
|
1957
|
+
case "ConflictException": return [3, 4];
|
|
1958
|
+
case "com.amazonaws.kendra#ConflictException": return [3, 4];
|
|
1959
|
+
case "InternalServerException": return [3, 6];
|
|
1960
|
+
case "com.amazonaws.kendra#InternalServerException": return [3, 6];
|
|
1961
|
+
case "ResourceNotFoundException": return [3, 8];
|
|
1962
|
+
case "com.amazonaws.kendra#ResourceNotFoundException": return [3, 8];
|
|
1963
|
+
case "ThrottlingException": return [3, 10];
|
|
1964
|
+
case "com.amazonaws.kendra#ThrottlingException": return [3, 10];
|
|
1965
|
+
case "ValidationException": return [3, 12];
|
|
1966
|
+
case "com.amazonaws.kendra#ValidationException": return [3, 12];
|
|
1967
|
+
}
|
|
1968
|
+
return [3, 14];
|
|
1969
|
+
case 2:
|
|
1970
|
+
_c = [{}];
|
|
1971
|
+
return [4, deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context)];
|
|
1972
|
+
case 3:
|
|
1973
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1974
|
+
return [3, 15];
|
|
1975
|
+
case 4:
|
|
1976
|
+
_d = [{}];
|
|
1977
|
+
return [4, deserializeAws_json1_1ConflictExceptionResponse(parsedOutput, context)];
|
|
1978
|
+
case 5:
|
|
1979
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1980
|
+
return [3, 15];
|
|
1981
|
+
case 6:
|
|
1982
|
+
_e = [{}];
|
|
1983
|
+
return [4, deserializeAws_json1_1InternalServerExceptionResponse(parsedOutput, context)];
|
|
1984
|
+
case 7:
|
|
1985
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1986
|
+
return [3, 15];
|
|
1987
|
+
case 8:
|
|
1988
|
+
_f = [{}];
|
|
1989
|
+
return [4, deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
1990
|
+
case 9:
|
|
1991
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1992
|
+
return [3, 15];
|
|
1993
|
+
case 10:
|
|
1994
|
+
_g = [{}];
|
|
1995
|
+
return [4, deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context)];
|
|
1996
|
+
case 11:
|
|
1997
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1998
|
+
return [3, 15];
|
|
1999
|
+
case 12:
|
|
2000
|
+
_h = [{}];
|
|
2001
|
+
return [4, deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context)];
|
|
2002
|
+
case 13:
|
|
2003
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _h.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2004
|
+
return [3, 15];
|
|
2005
|
+
case 14:
|
|
2006
|
+
parsedBody = parsedOutput.body;
|
|
2007
|
+
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
2008
|
+
response = __assign(__assign({}, parsedBody), { name: "" + errorCode, message: parsedBody.message || parsedBody.Message || errorCode, $fault: "client", $metadata: deserializeMetadata(output) });
|
|
2009
|
+
_k.label = 15;
|
|
2010
|
+
case 15:
|
|
2011
|
+
message = response.message || response.Message || errorCode;
|
|
2012
|
+
response.message = message;
|
|
2013
|
+
delete response.Message;
|
|
2014
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
2015
|
+
}
|
|
2016
|
+
});
|
|
2017
|
+
}); };
|
|
1495
2018
|
export var deserializeAws_json1_1DeleteFaqCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1496
2019
|
var response;
|
|
1497
2020
|
return __generator(this, function (_a) {
|
|
@@ -2060,25 +2583,25 @@ var deserializeAws_json1_1DescribeDataSourceCommandError = function (output, con
|
|
|
2060
2583
|
}
|
|
2061
2584
|
});
|
|
2062
2585
|
}); };
|
|
2063
|
-
export var
|
|
2586
|
+
export var deserializeAws_json1_1DescribeExperienceCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2064
2587
|
var data, contents, response;
|
|
2065
2588
|
return __generator(this, function (_a) {
|
|
2066
2589
|
switch (_a.label) {
|
|
2067
2590
|
case 0:
|
|
2068
2591
|
if (output.statusCode >= 300) {
|
|
2069
|
-
return [2,
|
|
2592
|
+
return [2, deserializeAws_json1_1DescribeExperienceCommandError(output, context)];
|
|
2070
2593
|
}
|
|
2071
2594
|
return [4, parseBody(output.body, context)];
|
|
2072
2595
|
case 1:
|
|
2073
2596
|
data = _a.sent();
|
|
2074
2597
|
contents = {};
|
|
2075
|
-
contents =
|
|
2598
|
+
contents = deserializeAws_json1_1DescribeExperienceResponse(data, context);
|
|
2076
2599
|
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
2077
2600
|
return [2, Promise.resolve(response)];
|
|
2078
2601
|
}
|
|
2079
2602
|
});
|
|
2080
2603
|
}); };
|
|
2081
|
-
var
|
|
2604
|
+
var deserializeAws_json1_1DescribeExperienceCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2082
2605
|
var parsedOutput, _a, response, errorCode, _b, _c, _d, _e, _f, _g, parsedBody, message;
|
|
2083
2606
|
var _h;
|
|
2084
2607
|
return __generator(this, function (_j) {
|
|
@@ -2148,25 +2671,25 @@ var deserializeAws_json1_1DescribeFaqCommandError = function (output, context) {
|
|
|
2148
2671
|
}
|
|
2149
2672
|
});
|
|
2150
2673
|
}); };
|
|
2151
|
-
export var
|
|
2674
|
+
export var deserializeAws_json1_1DescribeFaqCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2152
2675
|
var data, contents, response;
|
|
2153
2676
|
return __generator(this, function (_a) {
|
|
2154
2677
|
switch (_a.label) {
|
|
2155
2678
|
case 0:
|
|
2156
2679
|
if (output.statusCode >= 300) {
|
|
2157
|
-
return [2,
|
|
2680
|
+
return [2, deserializeAws_json1_1DescribeFaqCommandError(output, context)];
|
|
2158
2681
|
}
|
|
2159
2682
|
return [4, parseBody(output.body, context)];
|
|
2160
2683
|
case 1:
|
|
2161
2684
|
data = _a.sent();
|
|
2162
2685
|
contents = {};
|
|
2163
|
-
contents =
|
|
2686
|
+
contents = deserializeAws_json1_1DescribeFaqResponse(data, context);
|
|
2164
2687
|
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
2165
2688
|
return [2, Promise.resolve(response)];
|
|
2166
2689
|
}
|
|
2167
2690
|
});
|
|
2168
2691
|
}); };
|
|
2169
|
-
var
|
|
2692
|
+
var deserializeAws_json1_1DescribeFaqCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2170
2693
|
var parsedOutput, _a, response, errorCode, _b, _c, _d, _e, _f, _g, parsedBody, message;
|
|
2171
2694
|
var _h;
|
|
2172
2695
|
return __generator(this, function (_j) {
|
|
@@ -2236,25 +2759,25 @@ var deserializeAws_json1_1DescribeIndexCommandError = function (output, context)
|
|
|
2236
2759
|
}
|
|
2237
2760
|
});
|
|
2238
2761
|
}); };
|
|
2239
|
-
export var
|
|
2762
|
+
export var deserializeAws_json1_1DescribeIndexCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2240
2763
|
var data, contents, response;
|
|
2241
2764
|
return __generator(this, function (_a) {
|
|
2242
2765
|
switch (_a.label) {
|
|
2243
2766
|
case 0:
|
|
2244
2767
|
if (output.statusCode >= 300) {
|
|
2245
|
-
return [2,
|
|
2768
|
+
return [2, deserializeAws_json1_1DescribeIndexCommandError(output, context)];
|
|
2246
2769
|
}
|
|
2247
2770
|
return [4, parseBody(output.body, context)];
|
|
2248
2771
|
case 1:
|
|
2249
2772
|
data = _a.sent();
|
|
2250
2773
|
contents = {};
|
|
2251
|
-
contents =
|
|
2774
|
+
contents = deserializeAws_json1_1DescribeIndexResponse(data, context);
|
|
2252
2775
|
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
2253
2776
|
return [2, Promise.resolve(response)];
|
|
2254
2777
|
}
|
|
2255
2778
|
});
|
|
2256
2779
|
}); };
|
|
2257
|
-
var
|
|
2780
|
+
var deserializeAws_json1_1DescribeIndexCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2258
2781
|
var parsedOutput, _a, response, errorCode, _b, _c, _d, _e, _f, _g, parsedBody, message;
|
|
2259
2782
|
var _h;
|
|
2260
2783
|
return __generator(this, function (_j) {
|
|
@@ -2324,25 +2847,25 @@ var deserializeAws_json1_1DescribePrincipalMappingCommandError = function (outpu
|
|
|
2324
2847
|
}
|
|
2325
2848
|
});
|
|
2326
2849
|
}); };
|
|
2327
|
-
export var
|
|
2850
|
+
export var deserializeAws_json1_1DescribePrincipalMappingCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2328
2851
|
var data, contents, response;
|
|
2329
2852
|
return __generator(this, function (_a) {
|
|
2330
2853
|
switch (_a.label) {
|
|
2331
2854
|
case 0:
|
|
2332
2855
|
if (output.statusCode >= 300) {
|
|
2333
|
-
return [2,
|
|
2856
|
+
return [2, deserializeAws_json1_1DescribePrincipalMappingCommandError(output, context)];
|
|
2334
2857
|
}
|
|
2335
2858
|
return [4, parseBody(output.body, context)];
|
|
2336
2859
|
case 1:
|
|
2337
2860
|
data = _a.sent();
|
|
2338
2861
|
contents = {};
|
|
2339
|
-
contents =
|
|
2862
|
+
contents = deserializeAws_json1_1DescribePrincipalMappingResponse(data, context);
|
|
2340
2863
|
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
2341
2864
|
return [2, Promise.resolve(response)];
|
|
2342
2865
|
}
|
|
2343
2866
|
});
|
|
2344
2867
|
}); };
|
|
2345
|
-
var
|
|
2868
|
+
var deserializeAws_json1_1DescribePrincipalMappingCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2346
2869
|
var parsedOutput, _a, response, errorCode, _b, _c, _d, _e, _f, _g, parsedBody, message;
|
|
2347
2870
|
var _h;
|
|
2348
2871
|
return __generator(this, function (_j) {
|
|
@@ -2412,25 +2935,25 @@ var deserializeAws_json1_1DescribeQuerySuggestionsBlockListCommandError = functi
|
|
|
2412
2935
|
}
|
|
2413
2936
|
});
|
|
2414
2937
|
}); };
|
|
2415
|
-
export var
|
|
2938
|
+
export var deserializeAws_json1_1DescribeQuerySuggestionsBlockListCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2416
2939
|
var data, contents, response;
|
|
2417
2940
|
return __generator(this, function (_a) {
|
|
2418
2941
|
switch (_a.label) {
|
|
2419
2942
|
case 0:
|
|
2420
2943
|
if (output.statusCode >= 300) {
|
|
2421
|
-
return [2,
|
|
2944
|
+
return [2, deserializeAws_json1_1DescribeQuerySuggestionsBlockListCommandError(output, context)];
|
|
2422
2945
|
}
|
|
2423
2946
|
return [4, parseBody(output.body, context)];
|
|
2424
2947
|
case 1:
|
|
2425
2948
|
data = _a.sent();
|
|
2426
2949
|
contents = {};
|
|
2427
|
-
contents =
|
|
2950
|
+
contents = deserializeAws_json1_1DescribeQuerySuggestionsBlockListResponse(data, context);
|
|
2428
2951
|
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
2429
2952
|
return [2, Promise.resolve(response)];
|
|
2430
2953
|
}
|
|
2431
2954
|
});
|
|
2432
2955
|
}); };
|
|
2433
|
-
var
|
|
2956
|
+
var deserializeAws_json1_1DescribeQuerySuggestionsBlockListCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2434
2957
|
var parsedOutput, _a, response, errorCode, _b, _c, _d, _e, _f, _g, parsedBody, message;
|
|
2435
2958
|
var _h;
|
|
2436
2959
|
return __generator(this, function (_j) {
|
|
@@ -2500,25 +3023,25 @@ var deserializeAws_json1_1DescribeQuerySuggestionsConfigCommandError = function
|
|
|
2500
3023
|
}
|
|
2501
3024
|
});
|
|
2502
3025
|
}); };
|
|
2503
|
-
export var
|
|
3026
|
+
export var deserializeAws_json1_1DescribeQuerySuggestionsConfigCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2504
3027
|
var data, contents, response;
|
|
2505
3028
|
return __generator(this, function (_a) {
|
|
2506
3029
|
switch (_a.label) {
|
|
2507
3030
|
case 0:
|
|
2508
3031
|
if (output.statusCode >= 300) {
|
|
2509
|
-
return [2,
|
|
3032
|
+
return [2, deserializeAws_json1_1DescribeQuerySuggestionsConfigCommandError(output, context)];
|
|
2510
3033
|
}
|
|
2511
3034
|
return [4, parseBody(output.body, context)];
|
|
2512
3035
|
case 1:
|
|
2513
3036
|
data = _a.sent();
|
|
2514
3037
|
contents = {};
|
|
2515
|
-
contents =
|
|
3038
|
+
contents = deserializeAws_json1_1DescribeQuerySuggestionsConfigResponse(data, context);
|
|
2516
3039
|
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
2517
3040
|
return [2, Promise.resolve(response)];
|
|
2518
3041
|
}
|
|
2519
3042
|
});
|
|
2520
3043
|
}); };
|
|
2521
|
-
var
|
|
3044
|
+
var deserializeAws_json1_1DescribeQuerySuggestionsConfigCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2522
3045
|
var parsedOutput, _a, response, errorCode, _b, _c, _d, _e, _f, _g, parsedBody, message;
|
|
2523
3046
|
var _h;
|
|
2524
3047
|
return __generator(this, function (_j) {
|
|
@@ -2588,35 +3111,571 @@ var deserializeAws_json1_1DescribeThesaurusCommandError = function (output, cont
|
|
|
2588
3111
|
}
|
|
2589
3112
|
});
|
|
2590
3113
|
}); };
|
|
2591
|
-
export var
|
|
3114
|
+
export var deserializeAws_json1_1DescribeThesaurusCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2592
3115
|
var data, contents, response;
|
|
2593
3116
|
return __generator(this, function (_a) {
|
|
2594
3117
|
switch (_a.label) {
|
|
2595
3118
|
case 0:
|
|
2596
3119
|
if (output.statusCode >= 300) {
|
|
2597
|
-
return [2,
|
|
3120
|
+
return [2, deserializeAws_json1_1DescribeThesaurusCommandError(output, context)];
|
|
2598
3121
|
}
|
|
2599
3122
|
return [4, parseBody(output.body, context)];
|
|
2600
3123
|
case 1:
|
|
2601
3124
|
data = _a.sent();
|
|
2602
3125
|
contents = {};
|
|
2603
|
-
contents =
|
|
3126
|
+
contents = deserializeAws_json1_1DescribeThesaurusResponse(data, context);
|
|
2604
3127
|
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
2605
3128
|
return [2, Promise.resolve(response)];
|
|
2606
3129
|
}
|
|
2607
3130
|
});
|
|
2608
3131
|
}); };
|
|
2609
|
-
var
|
|
2610
|
-
var parsedOutput, _a, response, errorCode, _b, _c, _d, _e, _f, _g,
|
|
2611
|
-
var
|
|
2612
|
-
return __generator(this, function (
|
|
3132
|
+
var deserializeAws_json1_1DescribeThesaurusCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3133
|
+
var parsedOutput, _a, response, errorCode, _b, _c, _d, _e, _f, _g, parsedBody, message;
|
|
3134
|
+
var _h;
|
|
3135
|
+
return __generator(this, function (_j) {
|
|
3136
|
+
switch (_j.label) {
|
|
3137
|
+
case 0:
|
|
3138
|
+
_a = [__assign({}, output)];
|
|
3139
|
+
_h = {};
|
|
3140
|
+
return [4, parseBody(output.body, context)];
|
|
3141
|
+
case 1:
|
|
3142
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_h.body = _j.sent(), _h)]));
|
|
3143
|
+
errorCode = "UnknownError";
|
|
3144
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3145
|
+
_b = errorCode;
|
|
3146
|
+
switch (_b) {
|
|
3147
|
+
case "AccessDeniedException": return [3, 2];
|
|
3148
|
+
case "com.amazonaws.kendra#AccessDeniedException": return [3, 2];
|
|
3149
|
+
case "InternalServerException": return [3, 4];
|
|
3150
|
+
case "com.amazonaws.kendra#InternalServerException": return [3, 4];
|
|
3151
|
+
case "ResourceNotFoundException": return [3, 6];
|
|
3152
|
+
case "com.amazonaws.kendra#ResourceNotFoundException": return [3, 6];
|
|
3153
|
+
case "ThrottlingException": return [3, 8];
|
|
3154
|
+
case "com.amazonaws.kendra#ThrottlingException": return [3, 8];
|
|
3155
|
+
case "ValidationException": return [3, 10];
|
|
3156
|
+
case "com.amazonaws.kendra#ValidationException": return [3, 10];
|
|
3157
|
+
}
|
|
3158
|
+
return [3, 12];
|
|
3159
|
+
case 2:
|
|
3160
|
+
_c = [{}];
|
|
3161
|
+
return [4, deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context)];
|
|
3162
|
+
case 3:
|
|
3163
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3164
|
+
return [3, 13];
|
|
3165
|
+
case 4:
|
|
3166
|
+
_d = [{}];
|
|
3167
|
+
return [4, deserializeAws_json1_1InternalServerExceptionResponse(parsedOutput, context)];
|
|
3168
|
+
case 5:
|
|
3169
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3170
|
+
return [3, 13];
|
|
3171
|
+
case 6:
|
|
3172
|
+
_e = [{}];
|
|
3173
|
+
return [4, deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
3174
|
+
case 7:
|
|
3175
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3176
|
+
return [3, 13];
|
|
3177
|
+
case 8:
|
|
3178
|
+
_f = [{}];
|
|
3179
|
+
return [4, deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context)];
|
|
3180
|
+
case 9:
|
|
3181
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3182
|
+
return [3, 13];
|
|
3183
|
+
case 10:
|
|
3184
|
+
_g = [{}];
|
|
3185
|
+
return [4, deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context)];
|
|
3186
|
+
case 11:
|
|
3187
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3188
|
+
return [3, 13];
|
|
3189
|
+
case 12:
|
|
3190
|
+
parsedBody = parsedOutput.body;
|
|
3191
|
+
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
3192
|
+
response = __assign(__assign({}, parsedBody), { name: "" + errorCode, message: parsedBody.message || parsedBody.Message || errorCode, $fault: "client", $metadata: deserializeMetadata(output) });
|
|
3193
|
+
_j.label = 13;
|
|
3194
|
+
case 13:
|
|
3195
|
+
message = response.message || response.Message || errorCode;
|
|
3196
|
+
response.message = message;
|
|
3197
|
+
delete response.Message;
|
|
3198
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
3199
|
+
}
|
|
3200
|
+
});
|
|
3201
|
+
}); };
|
|
3202
|
+
export var deserializeAws_json1_1DisassociateEntitiesFromExperienceCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3203
|
+
var data, contents, response;
|
|
3204
|
+
return __generator(this, function (_a) {
|
|
3205
|
+
switch (_a.label) {
|
|
3206
|
+
case 0:
|
|
3207
|
+
if (output.statusCode >= 300) {
|
|
3208
|
+
return [2, deserializeAws_json1_1DisassociateEntitiesFromExperienceCommandError(output, context)];
|
|
3209
|
+
}
|
|
3210
|
+
return [4, parseBody(output.body, context)];
|
|
3211
|
+
case 1:
|
|
3212
|
+
data = _a.sent();
|
|
3213
|
+
contents = {};
|
|
3214
|
+
contents = deserializeAws_json1_1DisassociateEntitiesFromExperienceResponse(data, context);
|
|
3215
|
+
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
3216
|
+
return [2, Promise.resolve(response)];
|
|
3217
|
+
}
|
|
3218
|
+
});
|
|
3219
|
+
}); };
|
|
3220
|
+
var deserializeAws_json1_1DisassociateEntitiesFromExperienceCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3221
|
+
var parsedOutput, _a, response, errorCode, _b, _c, _d, _e, _f, _g, parsedBody, message;
|
|
3222
|
+
var _h;
|
|
3223
|
+
return __generator(this, function (_j) {
|
|
3224
|
+
switch (_j.label) {
|
|
3225
|
+
case 0:
|
|
3226
|
+
_a = [__assign({}, output)];
|
|
3227
|
+
_h = {};
|
|
3228
|
+
return [4, parseBody(output.body, context)];
|
|
3229
|
+
case 1:
|
|
3230
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_h.body = _j.sent(), _h)]));
|
|
3231
|
+
errorCode = "UnknownError";
|
|
3232
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3233
|
+
_b = errorCode;
|
|
3234
|
+
switch (_b) {
|
|
3235
|
+
case "AccessDeniedException": return [3, 2];
|
|
3236
|
+
case "com.amazonaws.kendra#AccessDeniedException": return [3, 2];
|
|
3237
|
+
case "InternalServerException": return [3, 4];
|
|
3238
|
+
case "com.amazonaws.kendra#InternalServerException": return [3, 4];
|
|
3239
|
+
case "ResourceNotFoundException": return [3, 6];
|
|
3240
|
+
case "com.amazonaws.kendra#ResourceNotFoundException": return [3, 6];
|
|
3241
|
+
case "ThrottlingException": return [3, 8];
|
|
3242
|
+
case "com.amazonaws.kendra#ThrottlingException": return [3, 8];
|
|
3243
|
+
case "ValidationException": return [3, 10];
|
|
3244
|
+
case "com.amazonaws.kendra#ValidationException": return [3, 10];
|
|
3245
|
+
}
|
|
3246
|
+
return [3, 12];
|
|
3247
|
+
case 2:
|
|
3248
|
+
_c = [{}];
|
|
3249
|
+
return [4, deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context)];
|
|
3250
|
+
case 3:
|
|
3251
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3252
|
+
return [3, 13];
|
|
3253
|
+
case 4:
|
|
3254
|
+
_d = [{}];
|
|
3255
|
+
return [4, deserializeAws_json1_1InternalServerExceptionResponse(parsedOutput, context)];
|
|
3256
|
+
case 5:
|
|
3257
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3258
|
+
return [3, 13];
|
|
3259
|
+
case 6:
|
|
3260
|
+
_e = [{}];
|
|
3261
|
+
return [4, deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
3262
|
+
case 7:
|
|
3263
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3264
|
+
return [3, 13];
|
|
3265
|
+
case 8:
|
|
3266
|
+
_f = [{}];
|
|
3267
|
+
return [4, deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context)];
|
|
3268
|
+
case 9:
|
|
3269
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3270
|
+
return [3, 13];
|
|
3271
|
+
case 10:
|
|
3272
|
+
_g = [{}];
|
|
3273
|
+
return [4, deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context)];
|
|
3274
|
+
case 11:
|
|
3275
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3276
|
+
return [3, 13];
|
|
3277
|
+
case 12:
|
|
3278
|
+
parsedBody = parsedOutput.body;
|
|
3279
|
+
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
3280
|
+
response = __assign(__assign({}, parsedBody), { name: "" + errorCode, message: parsedBody.message || parsedBody.Message || errorCode, $fault: "client", $metadata: deserializeMetadata(output) });
|
|
3281
|
+
_j.label = 13;
|
|
3282
|
+
case 13:
|
|
3283
|
+
message = response.message || response.Message || errorCode;
|
|
3284
|
+
response.message = message;
|
|
3285
|
+
delete response.Message;
|
|
3286
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
3287
|
+
}
|
|
3288
|
+
});
|
|
3289
|
+
}); };
|
|
3290
|
+
export var deserializeAws_json1_1DisassociatePersonasFromEntitiesCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3291
|
+
var data, contents, response;
|
|
3292
|
+
return __generator(this, function (_a) {
|
|
3293
|
+
switch (_a.label) {
|
|
3294
|
+
case 0:
|
|
3295
|
+
if (output.statusCode >= 300) {
|
|
3296
|
+
return [2, deserializeAws_json1_1DisassociatePersonasFromEntitiesCommandError(output, context)];
|
|
3297
|
+
}
|
|
3298
|
+
return [4, parseBody(output.body, context)];
|
|
3299
|
+
case 1:
|
|
3300
|
+
data = _a.sent();
|
|
3301
|
+
contents = {};
|
|
3302
|
+
contents = deserializeAws_json1_1DisassociatePersonasFromEntitiesResponse(data, context);
|
|
3303
|
+
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
3304
|
+
return [2, Promise.resolve(response)];
|
|
3305
|
+
}
|
|
3306
|
+
});
|
|
3307
|
+
}); };
|
|
3308
|
+
var deserializeAws_json1_1DisassociatePersonasFromEntitiesCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3309
|
+
var parsedOutput, _a, response, errorCode, _b, _c, _d, _e, _f, _g, parsedBody, message;
|
|
3310
|
+
var _h;
|
|
3311
|
+
return __generator(this, function (_j) {
|
|
3312
|
+
switch (_j.label) {
|
|
3313
|
+
case 0:
|
|
3314
|
+
_a = [__assign({}, output)];
|
|
3315
|
+
_h = {};
|
|
3316
|
+
return [4, parseBody(output.body, context)];
|
|
3317
|
+
case 1:
|
|
3318
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_h.body = _j.sent(), _h)]));
|
|
3319
|
+
errorCode = "UnknownError";
|
|
3320
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3321
|
+
_b = errorCode;
|
|
3322
|
+
switch (_b) {
|
|
3323
|
+
case "AccessDeniedException": return [3, 2];
|
|
3324
|
+
case "com.amazonaws.kendra#AccessDeniedException": return [3, 2];
|
|
3325
|
+
case "InternalServerException": return [3, 4];
|
|
3326
|
+
case "com.amazonaws.kendra#InternalServerException": return [3, 4];
|
|
3327
|
+
case "ResourceNotFoundException": return [3, 6];
|
|
3328
|
+
case "com.amazonaws.kendra#ResourceNotFoundException": return [3, 6];
|
|
3329
|
+
case "ThrottlingException": return [3, 8];
|
|
3330
|
+
case "com.amazonaws.kendra#ThrottlingException": return [3, 8];
|
|
3331
|
+
case "ValidationException": return [3, 10];
|
|
3332
|
+
case "com.amazonaws.kendra#ValidationException": return [3, 10];
|
|
3333
|
+
}
|
|
3334
|
+
return [3, 12];
|
|
3335
|
+
case 2:
|
|
3336
|
+
_c = [{}];
|
|
3337
|
+
return [4, deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context)];
|
|
3338
|
+
case 3:
|
|
3339
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3340
|
+
return [3, 13];
|
|
3341
|
+
case 4:
|
|
3342
|
+
_d = [{}];
|
|
3343
|
+
return [4, deserializeAws_json1_1InternalServerExceptionResponse(parsedOutput, context)];
|
|
3344
|
+
case 5:
|
|
3345
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3346
|
+
return [3, 13];
|
|
3347
|
+
case 6:
|
|
3348
|
+
_e = [{}];
|
|
3349
|
+
return [4, deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
3350
|
+
case 7:
|
|
3351
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3352
|
+
return [3, 13];
|
|
3353
|
+
case 8:
|
|
3354
|
+
_f = [{}];
|
|
3355
|
+
return [4, deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context)];
|
|
3356
|
+
case 9:
|
|
3357
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3358
|
+
return [3, 13];
|
|
3359
|
+
case 10:
|
|
3360
|
+
_g = [{}];
|
|
3361
|
+
return [4, deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context)];
|
|
3362
|
+
case 11:
|
|
3363
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3364
|
+
return [3, 13];
|
|
3365
|
+
case 12:
|
|
3366
|
+
parsedBody = parsedOutput.body;
|
|
3367
|
+
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
3368
|
+
response = __assign(__assign({}, parsedBody), { name: "" + errorCode, message: parsedBody.message || parsedBody.Message || errorCode, $fault: "client", $metadata: deserializeMetadata(output) });
|
|
3369
|
+
_j.label = 13;
|
|
3370
|
+
case 13:
|
|
3371
|
+
message = response.message || response.Message || errorCode;
|
|
3372
|
+
response.message = message;
|
|
3373
|
+
delete response.Message;
|
|
3374
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
3375
|
+
}
|
|
3376
|
+
});
|
|
3377
|
+
}); };
|
|
3378
|
+
export var deserializeAws_json1_1GetQuerySuggestionsCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3379
|
+
var data, contents, response;
|
|
3380
|
+
return __generator(this, function (_a) {
|
|
3381
|
+
switch (_a.label) {
|
|
3382
|
+
case 0:
|
|
3383
|
+
if (output.statusCode >= 300) {
|
|
3384
|
+
return [2, deserializeAws_json1_1GetQuerySuggestionsCommandError(output, context)];
|
|
3385
|
+
}
|
|
3386
|
+
return [4, parseBody(output.body, context)];
|
|
3387
|
+
case 1:
|
|
3388
|
+
data = _a.sent();
|
|
3389
|
+
contents = {};
|
|
3390
|
+
contents = deserializeAws_json1_1GetQuerySuggestionsResponse(data, context);
|
|
3391
|
+
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
3392
|
+
return [2, Promise.resolve(response)];
|
|
3393
|
+
}
|
|
3394
|
+
});
|
|
3395
|
+
}); };
|
|
3396
|
+
var deserializeAws_json1_1GetQuerySuggestionsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3397
|
+
var parsedOutput, _a, response, errorCode, _b, _c, _d, _e, _f, _g, _h, _j, parsedBody, message;
|
|
3398
|
+
var _k;
|
|
3399
|
+
return __generator(this, function (_l) {
|
|
2613
3400
|
switch (_l.label) {
|
|
2614
3401
|
case 0:
|
|
2615
3402
|
_a = [__assign({}, output)];
|
|
2616
|
-
_k = {};
|
|
3403
|
+
_k = {};
|
|
3404
|
+
return [4, parseBody(output.body, context)];
|
|
3405
|
+
case 1:
|
|
3406
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_k.body = _l.sent(), _k)]));
|
|
3407
|
+
errorCode = "UnknownError";
|
|
3408
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3409
|
+
_b = errorCode;
|
|
3410
|
+
switch (_b) {
|
|
3411
|
+
case "AccessDeniedException": return [3, 2];
|
|
3412
|
+
case "com.amazonaws.kendra#AccessDeniedException": return [3, 2];
|
|
3413
|
+
case "ConflictException": return [3, 4];
|
|
3414
|
+
case "com.amazonaws.kendra#ConflictException": return [3, 4];
|
|
3415
|
+
case "InternalServerException": return [3, 6];
|
|
3416
|
+
case "com.amazonaws.kendra#InternalServerException": return [3, 6];
|
|
3417
|
+
case "ResourceNotFoundException": return [3, 8];
|
|
3418
|
+
case "com.amazonaws.kendra#ResourceNotFoundException": return [3, 8];
|
|
3419
|
+
case "ServiceQuotaExceededException": return [3, 10];
|
|
3420
|
+
case "com.amazonaws.kendra#ServiceQuotaExceededException": return [3, 10];
|
|
3421
|
+
case "ThrottlingException": return [3, 12];
|
|
3422
|
+
case "com.amazonaws.kendra#ThrottlingException": return [3, 12];
|
|
3423
|
+
case "ValidationException": return [3, 14];
|
|
3424
|
+
case "com.amazonaws.kendra#ValidationException": return [3, 14];
|
|
3425
|
+
}
|
|
3426
|
+
return [3, 16];
|
|
3427
|
+
case 2:
|
|
3428
|
+
_c = [{}];
|
|
3429
|
+
return [4, deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context)];
|
|
3430
|
+
case 3:
|
|
3431
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3432
|
+
return [3, 17];
|
|
3433
|
+
case 4:
|
|
3434
|
+
_d = [{}];
|
|
3435
|
+
return [4, deserializeAws_json1_1ConflictExceptionResponse(parsedOutput, context)];
|
|
3436
|
+
case 5:
|
|
3437
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3438
|
+
return [3, 17];
|
|
3439
|
+
case 6:
|
|
3440
|
+
_e = [{}];
|
|
3441
|
+
return [4, deserializeAws_json1_1InternalServerExceptionResponse(parsedOutput, context)];
|
|
3442
|
+
case 7:
|
|
3443
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3444
|
+
return [3, 17];
|
|
3445
|
+
case 8:
|
|
3446
|
+
_f = [{}];
|
|
3447
|
+
return [4, deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
3448
|
+
case 9:
|
|
3449
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3450
|
+
return [3, 17];
|
|
3451
|
+
case 10:
|
|
3452
|
+
_g = [{}];
|
|
3453
|
+
return [4, deserializeAws_json1_1ServiceQuotaExceededExceptionResponse(parsedOutput, context)];
|
|
3454
|
+
case 11:
|
|
3455
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3456
|
+
return [3, 17];
|
|
3457
|
+
case 12:
|
|
3458
|
+
_h = [{}];
|
|
3459
|
+
return [4, deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context)];
|
|
3460
|
+
case 13:
|
|
3461
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _h.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3462
|
+
return [3, 17];
|
|
3463
|
+
case 14:
|
|
3464
|
+
_j = [{}];
|
|
3465
|
+
return [4, deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context)];
|
|
3466
|
+
case 15:
|
|
3467
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _j.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3468
|
+
return [3, 17];
|
|
3469
|
+
case 16:
|
|
3470
|
+
parsedBody = parsedOutput.body;
|
|
3471
|
+
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
3472
|
+
response = __assign(__assign({}, parsedBody), { name: "" + errorCode, message: parsedBody.message || parsedBody.Message || errorCode, $fault: "client", $metadata: deserializeMetadata(output) });
|
|
3473
|
+
_l.label = 17;
|
|
3474
|
+
case 17:
|
|
3475
|
+
message = response.message || response.Message || errorCode;
|
|
3476
|
+
response.message = message;
|
|
3477
|
+
delete response.Message;
|
|
3478
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
3479
|
+
}
|
|
3480
|
+
});
|
|
3481
|
+
}); };
|
|
3482
|
+
export var deserializeAws_json1_1GetSnapshotsCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3483
|
+
var data, contents, response;
|
|
3484
|
+
return __generator(this, function (_a) {
|
|
3485
|
+
switch (_a.label) {
|
|
3486
|
+
case 0:
|
|
3487
|
+
if (output.statusCode >= 300) {
|
|
3488
|
+
return [2, deserializeAws_json1_1GetSnapshotsCommandError(output, context)];
|
|
3489
|
+
}
|
|
3490
|
+
return [4, parseBody(output.body, context)];
|
|
3491
|
+
case 1:
|
|
3492
|
+
data = _a.sent();
|
|
3493
|
+
contents = {};
|
|
3494
|
+
contents = deserializeAws_json1_1GetSnapshotsResponse(data, context);
|
|
3495
|
+
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
3496
|
+
return [2, Promise.resolve(response)];
|
|
3497
|
+
}
|
|
3498
|
+
});
|
|
3499
|
+
}); };
|
|
3500
|
+
var deserializeAws_json1_1GetSnapshotsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3501
|
+
var parsedOutput, _a, response, errorCode, _b, _c, _d, _e, _f, parsedBody, message;
|
|
3502
|
+
var _g;
|
|
3503
|
+
return __generator(this, function (_h) {
|
|
3504
|
+
switch (_h.label) {
|
|
3505
|
+
case 0:
|
|
3506
|
+
_a = [__assign({}, output)];
|
|
3507
|
+
_g = {};
|
|
3508
|
+
return [4, parseBody(output.body, context)];
|
|
3509
|
+
case 1:
|
|
3510
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_g.body = _h.sent(), _g)]));
|
|
3511
|
+
errorCode = "UnknownError";
|
|
3512
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3513
|
+
_b = errorCode;
|
|
3514
|
+
switch (_b) {
|
|
3515
|
+
case "AccessDeniedException": return [3, 2];
|
|
3516
|
+
case "com.amazonaws.kendra#AccessDeniedException": return [3, 2];
|
|
3517
|
+
case "InternalServerException": return [3, 4];
|
|
3518
|
+
case "com.amazonaws.kendra#InternalServerException": return [3, 4];
|
|
3519
|
+
case "InvalidRequestException": return [3, 6];
|
|
3520
|
+
case "com.amazonaws.kendra#InvalidRequestException": return [3, 6];
|
|
3521
|
+
case "ResourceNotFoundException": return [3, 8];
|
|
3522
|
+
case "com.amazonaws.kendra#ResourceNotFoundException": return [3, 8];
|
|
3523
|
+
}
|
|
3524
|
+
return [3, 10];
|
|
3525
|
+
case 2:
|
|
3526
|
+
_c = [{}];
|
|
3527
|
+
return [4, deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context)];
|
|
3528
|
+
case 3:
|
|
3529
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3530
|
+
return [3, 11];
|
|
3531
|
+
case 4:
|
|
3532
|
+
_d = [{}];
|
|
3533
|
+
return [4, deserializeAws_json1_1InternalServerExceptionResponse(parsedOutput, context)];
|
|
3534
|
+
case 5:
|
|
3535
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3536
|
+
return [3, 11];
|
|
3537
|
+
case 6:
|
|
3538
|
+
_e = [{}];
|
|
3539
|
+
return [4, deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context)];
|
|
3540
|
+
case 7:
|
|
3541
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3542
|
+
return [3, 11];
|
|
3543
|
+
case 8:
|
|
3544
|
+
_f = [{}];
|
|
3545
|
+
return [4, deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
3546
|
+
case 9:
|
|
3547
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3548
|
+
return [3, 11];
|
|
3549
|
+
case 10:
|
|
3550
|
+
parsedBody = parsedOutput.body;
|
|
3551
|
+
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
3552
|
+
response = __assign(__assign({}, parsedBody), { name: "" + errorCode, message: parsedBody.message || parsedBody.Message || errorCode, $fault: "client", $metadata: deserializeMetadata(output) });
|
|
3553
|
+
_h.label = 11;
|
|
3554
|
+
case 11:
|
|
3555
|
+
message = response.message || response.Message || errorCode;
|
|
3556
|
+
response.message = message;
|
|
3557
|
+
delete response.Message;
|
|
3558
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
3559
|
+
}
|
|
3560
|
+
});
|
|
3561
|
+
}); };
|
|
3562
|
+
export var deserializeAws_json1_1ListDataSourcesCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3563
|
+
var data, contents, response;
|
|
3564
|
+
return __generator(this, function (_a) {
|
|
3565
|
+
switch (_a.label) {
|
|
3566
|
+
case 0:
|
|
3567
|
+
if (output.statusCode >= 300) {
|
|
3568
|
+
return [2, deserializeAws_json1_1ListDataSourcesCommandError(output, context)];
|
|
3569
|
+
}
|
|
3570
|
+
return [4, parseBody(output.body, context)];
|
|
3571
|
+
case 1:
|
|
3572
|
+
data = _a.sent();
|
|
3573
|
+
contents = {};
|
|
3574
|
+
contents = deserializeAws_json1_1ListDataSourcesResponse(data, context);
|
|
3575
|
+
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
3576
|
+
return [2, Promise.resolve(response)];
|
|
3577
|
+
}
|
|
3578
|
+
});
|
|
3579
|
+
}); };
|
|
3580
|
+
var deserializeAws_json1_1ListDataSourcesCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3581
|
+
var parsedOutput, _a, response, errorCode, _b, _c, _d, _e, _f, _g, parsedBody, message;
|
|
3582
|
+
var _h;
|
|
3583
|
+
return __generator(this, function (_j) {
|
|
3584
|
+
switch (_j.label) {
|
|
3585
|
+
case 0:
|
|
3586
|
+
_a = [__assign({}, output)];
|
|
3587
|
+
_h = {};
|
|
2617
3588
|
return [4, parseBody(output.body, context)];
|
|
2618
3589
|
case 1:
|
|
2619
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(
|
|
3590
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_h.body = _j.sent(), _h)]));
|
|
3591
|
+
errorCode = "UnknownError";
|
|
3592
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3593
|
+
_b = errorCode;
|
|
3594
|
+
switch (_b) {
|
|
3595
|
+
case "AccessDeniedException": return [3, 2];
|
|
3596
|
+
case "com.amazonaws.kendra#AccessDeniedException": return [3, 2];
|
|
3597
|
+
case "InternalServerException": return [3, 4];
|
|
3598
|
+
case "com.amazonaws.kendra#InternalServerException": return [3, 4];
|
|
3599
|
+
case "ResourceNotFoundException": return [3, 6];
|
|
3600
|
+
case "com.amazonaws.kendra#ResourceNotFoundException": return [3, 6];
|
|
3601
|
+
case "ThrottlingException": return [3, 8];
|
|
3602
|
+
case "com.amazonaws.kendra#ThrottlingException": return [3, 8];
|
|
3603
|
+
case "ValidationException": return [3, 10];
|
|
3604
|
+
case "com.amazonaws.kendra#ValidationException": return [3, 10];
|
|
3605
|
+
}
|
|
3606
|
+
return [3, 12];
|
|
3607
|
+
case 2:
|
|
3608
|
+
_c = [{}];
|
|
3609
|
+
return [4, deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context)];
|
|
3610
|
+
case 3:
|
|
3611
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3612
|
+
return [3, 13];
|
|
3613
|
+
case 4:
|
|
3614
|
+
_d = [{}];
|
|
3615
|
+
return [4, deserializeAws_json1_1InternalServerExceptionResponse(parsedOutput, context)];
|
|
3616
|
+
case 5:
|
|
3617
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3618
|
+
return [3, 13];
|
|
3619
|
+
case 6:
|
|
3620
|
+
_e = [{}];
|
|
3621
|
+
return [4, deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
3622
|
+
case 7:
|
|
3623
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3624
|
+
return [3, 13];
|
|
3625
|
+
case 8:
|
|
3626
|
+
_f = [{}];
|
|
3627
|
+
return [4, deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context)];
|
|
3628
|
+
case 9:
|
|
3629
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3630
|
+
return [3, 13];
|
|
3631
|
+
case 10:
|
|
3632
|
+
_g = [{}];
|
|
3633
|
+
return [4, deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context)];
|
|
3634
|
+
case 11:
|
|
3635
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3636
|
+
return [3, 13];
|
|
3637
|
+
case 12:
|
|
3638
|
+
parsedBody = parsedOutput.body;
|
|
3639
|
+
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
3640
|
+
response = __assign(__assign({}, parsedBody), { name: "" + errorCode, message: parsedBody.message || parsedBody.Message || errorCode, $fault: "client", $metadata: deserializeMetadata(output) });
|
|
3641
|
+
_j.label = 13;
|
|
3642
|
+
case 13:
|
|
3643
|
+
message = response.message || response.Message || errorCode;
|
|
3644
|
+
response.message = message;
|
|
3645
|
+
delete response.Message;
|
|
3646
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
3647
|
+
}
|
|
3648
|
+
});
|
|
3649
|
+
}); };
|
|
3650
|
+
export var deserializeAws_json1_1ListDataSourceSyncJobsCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3651
|
+
var data, contents, response;
|
|
3652
|
+
return __generator(this, function (_a) {
|
|
3653
|
+
switch (_a.label) {
|
|
3654
|
+
case 0:
|
|
3655
|
+
if (output.statusCode >= 300) {
|
|
3656
|
+
return [2, deserializeAws_json1_1ListDataSourceSyncJobsCommandError(output, context)];
|
|
3657
|
+
}
|
|
3658
|
+
return [4, parseBody(output.body, context)];
|
|
3659
|
+
case 1:
|
|
3660
|
+
data = _a.sent();
|
|
3661
|
+
contents = {};
|
|
3662
|
+
contents = deserializeAws_json1_1ListDataSourceSyncJobsResponse(data, context);
|
|
3663
|
+
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
3664
|
+
return [2, Promise.resolve(response)];
|
|
3665
|
+
}
|
|
3666
|
+
});
|
|
3667
|
+
}); };
|
|
3668
|
+
var deserializeAws_json1_1ListDataSourceSyncJobsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3669
|
+
var parsedOutput, _a, response, errorCode, _b, _c, _d, _e, _f, _g, _h, parsedBody, message;
|
|
3670
|
+
var _j;
|
|
3671
|
+
return __generator(this, function (_k) {
|
|
3672
|
+
switch (_k.label) {
|
|
3673
|
+
case 0:
|
|
3674
|
+
_a = [__assign({}, output)];
|
|
3675
|
+
_j = {};
|
|
3676
|
+
return [4, parseBody(output.body, context)];
|
|
3677
|
+
case 1:
|
|
3678
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_j.body = _k.sent(), _j)]));
|
|
2620
3679
|
errorCode = "UnknownError";
|
|
2621
3680
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2622
3681
|
_b = errorCode;
|
|
@@ -2629,62 +3688,54 @@ var deserializeAws_json1_1GetQuerySuggestionsCommandError = function (output, co
|
|
|
2629
3688
|
case "com.amazonaws.kendra#InternalServerException": return [3, 6];
|
|
2630
3689
|
case "ResourceNotFoundException": return [3, 8];
|
|
2631
3690
|
case "com.amazonaws.kendra#ResourceNotFoundException": return [3, 8];
|
|
2632
|
-
case "
|
|
2633
|
-
case "com.amazonaws.kendra#
|
|
2634
|
-
case "
|
|
2635
|
-
case "com.amazonaws.kendra#
|
|
2636
|
-
case "ValidationException": return [3, 14];
|
|
2637
|
-
case "com.amazonaws.kendra#ValidationException": return [3, 14];
|
|
3691
|
+
case "ThrottlingException": return [3, 10];
|
|
3692
|
+
case "com.amazonaws.kendra#ThrottlingException": return [3, 10];
|
|
3693
|
+
case "ValidationException": return [3, 12];
|
|
3694
|
+
case "com.amazonaws.kendra#ValidationException": return [3, 12];
|
|
2638
3695
|
}
|
|
2639
|
-
return [3,
|
|
3696
|
+
return [3, 14];
|
|
2640
3697
|
case 2:
|
|
2641
3698
|
_c = [{}];
|
|
2642
3699
|
return [4, deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context)];
|
|
2643
3700
|
case 3:
|
|
2644
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(
|
|
2645
|
-
return [3,
|
|
3701
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3702
|
+
return [3, 15];
|
|
2646
3703
|
case 4:
|
|
2647
3704
|
_d = [{}];
|
|
2648
3705
|
return [4, deserializeAws_json1_1ConflictExceptionResponse(parsedOutput, context)];
|
|
2649
3706
|
case 5:
|
|
2650
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(
|
|
2651
|
-
return [3,
|
|
3707
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3708
|
+
return [3, 15];
|
|
2652
3709
|
case 6:
|
|
2653
3710
|
_e = [{}];
|
|
2654
3711
|
return [4, deserializeAws_json1_1InternalServerExceptionResponse(parsedOutput, context)];
|
|
2655
3712
|
case 7:
|
|
2656
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(
|
|
2657
|
-
return [3,
|
|
3713
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3714
|
+
return [3, 15];
|
|
2658
3715
|
case 8:
|
|
2659
3716
|
_f = [{}];
|
|
2660
3717
|
return [4, deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
2661
3718
|
case 9:
|
|
2662
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(
|
|
2663
|
-
return [3,
|
|
3719
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3720
|
+
return [3, 15];
|
|
2664
3721
|
case 10:
|
|
2665
3722
|
_g = [{}];
|
|
2666
|
-
return [4,
|
|
3723
|
+
return [4, deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context)];
|
|
2667
3724
|
case 11:
|
|
2668
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(
|
|
2669
|
-
return [3,
|
|
3725
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3726
|
+
return [3, 15];
|
|
2670
3727
|
case 12:
|
|
2671
3728
|
_h = [{}];
|
|
2672
|
-
return [4,
|
|
3729
|
+
return [4, deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context)];
|
|
2673
3730
|
case 13:
|
|
2674
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _h.concat([(
|
|
2675
|
-
return [3,
|
|
3731
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _h.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3732
|
+
return [3, 15];
|
|
2676
3733
|
case 14:
|
|
2677
|
-
_j = [{}];
|
|
2678
|
-
return [4, deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context)];
|
|
2679
|
-
case 15:
|
|
2680
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _j.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2681
|
-
return [3, 17];
|
|
2682
|
-
case 16:
|
|
2683
3734
|
parsedBody = parsedOutput.body;
|
|
2684
3735
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
2685
3736
|
response = __assign(__assign({}, parsedBody), { name: "" + errorCode, message: parsedBody.message || parsedBody.Message || errorCode, $fault: "client", $metadata: deserializeMetadata(output) });
|
|
2686
|
-
|
|
2687
|
-
case
|
|
3737
|
+
_k.label = 15;
|
|
3738
|
+
case 15:
|
|
2688
3739
|
message = response.message || response.Message || errorCode;
|
|
2689
3740
|
response.message = message;
|
|
2690
3741
|
delete response.Message;
|
|
@@ -2692,25 +3743,25 @@ var deserializeAws_json1_1GetQuerySuggestionsCommandError = function (output, co
|
|
|
2692
3743
|
}
|
|
2693
3744
|
});
|
|
2694
3745
|
}); };
|
|
2695
|
-
export var
|
|
3746
|
+
export var deserializeAws_json1_1ListEntityPersonasCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2696
3747
|
var data, contents, response;
|
|
2697
3748
|
return __generator(this, function (_a) {
|
|
2698
3749
|
switch (_a.label) {
|
|
2699
3750
|
case 0:
|
|
2700
3751
|
if (output.statusCode >= 300) {
|
|
2701
|
-
return [2,
|
|
3752
|
+
return [2, deserializeAws_json1_1ListEntityPersonasCommandError(output, context)];
|
|
2702
3753
|
}
|
|
2703
3754
|
return [4, parseBody(output.body, context)];
|
|
2704
3755
|
case 1:
|
|
2705
3756
|
data = _a.sent();
|
|
2706
3757
|
contents = {};
|
|
2707
|
-
contents =
|
|
3758
|
+
contents = deserializeAws_json1_1ListEntityPersonasResponse(data, context);
|
|
2708
3759
|
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
2709
3760
|
return [2, Promise.resolve(response)];
|
|
2710
3761
|
}
|
|
2711
3762
|
});
|
|
2712
3763
|
}); };
|
|
2713
|
-
var
|
|
3764
|
+
var deserializeAws_json1_1ListEntityPersonasCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2714
3765
|
var parsedOutput, _a, response, errorCode, _b, _c, _d, _e, _f, _g, parsedBody, message;
|
|
2715
3766
|
var _h;
|
|
2716
3767
|
return __generator(this, function (_j) {
|
|
@@ -2780,95 +3831,175 @@ var deserializeAws_json1_1ListDataSourcesCommandError = function (output, contex
|
|
|
2780
3831
|
}
|
|
2781
3832
|
});
|
|
2782
3833
|
}); };
|
|
2783
|
-
export var
|
|
3834
|
+
export var deserializeAws_json1_1ListExperienceEntitiesCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2784
3835
|
var data, contents, response;
|
|
2785
3836
|
return __generator(this, function (_a) {
|
|
2786
3837
|
switch (_a.label) {
|
|
2787
3838
|
case 0:
|
|
2788
3839
|
if (output.statusCode >= 300) {
|
|
2789
|
-
return [2,
|
|
3840
|
+
return [2, deserializeAws_json1_1ListExperienceEntitiesCommandError(output, context)];
|
|
2790
3841
|
}
|
|
2791
3842
|
return [4, parseBody(output.body, context)];
|
|
2792
3843
|
case 1:
|
|
2793
3844
|
data = _a.sent();
|
|
2794
3845
|
contents = {};
|
|
2795
|
-
contents =
|
|
3846
|
+
contents = deserializeAws_json1_1ListExperienceEntitiesResponse(data, context);
|
|
2796
3847
|
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
2797
3848
|
return [2, Promise.resolve(response)];
|
|
2798
3849
|
}
|
|
2799
3850
|
});
|
|
2800
3851
|
}); };
|
|
2801
|
-
var
|
|
2802
|
-
var parsedOutput, _a, response, errorCode, _b, _c, _d, _e, _f, _g,
|
|
2803
|
-
var
|
|
2804
|
-
return __generator(this, function (
|
|
2805
|
-
switch (
|
|
3852
|
+
var deserializeAws_json1_1ListExperienceEntitiesCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3853
|
+
var parsedOutput, _a, response, errorCode, _b, _c, _d, _e, _f, _g, parsedBody, message;
|
|
3854
|
+
var _h;
|
|
3855
|
+
return __generator(this, function (_j) {
|
|
3856
|
+
switch (_j.label) {
|
|
2806
3857
|
case 0:
|
|
2807
3858
|
_a = [__assign({}, output)];
|
|
2808
|
-
|
|
3859
|
+
_h = {};
|
|
2809
3860
|
return [4, parseBody(output.body, context)];
|
|
2810
3861
|
case 1:
|
|
2811
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(
|
|
3862
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_h.body = _j.sent(), _h)]));
|
|
2812
3863
|
errorCode = "UnknownError";
|
|
2813
3864
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2814
3865
|
_b = errorCode;
|
|
2815
3866
|
switch (_b) {
|
|
2816
3867
|
case "AccessDeniedException": return [3, 2];
|
|
2817
3868
|
case "com.amazonaws.kendra#AccessDeniedException": return [3, 2];
|
|
2818
|
-
case "
|
|
2819
|
-
case "com.amazonaws.kendra#
|
|
2820
|
-
case "
|
|
2821
|
-
case "com.amazonaws.kendra#
|
|
2822
|
-
case "
|
|
2823
|
-
case "com.amazonaws.kendra#
|
|
2824
|
-
case "
|
|
2825
|
-
case "com.amazonaws.kendra#
|
|
2826
|
-
|
|
2827
|
-
|
|
3869
|
+
case "InternalServerException": return [3, 4];
|
|
3870
|
+
case "com.amazonaws.kendra#InternalServerException": return [3, 4];
|
|
3871
|
+
case "ResourceNotFoundException": return [3, 6];
|
|
3872
|
+
case "com.amazonaws.kendra#ResourceNotFoundException": return [3, 6];
|
|
3873
|
+
case "ThrottlingException": return [3, 8];
|
|
3874
|
+
case "com.amazonaws.kendra#ThrottlingException": return [3, 8];
|
|
3875
|
+
case "ValidationException": return [3, 10];
|
|
3876
|
+
case "com.amazonaws.kendra#ValidationException": return [3, 10];
|
|
3877
|
+
}
|
|
3878
|
+
return [3, 12];
|
|
3879
|
+
case 2:
|
|
3880
|
+
_c = [{}];
|
|
3881
|
+
return [4, deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context)];
|
|
3882
|
+
case 3:
|
|
3883
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3884
|
+
return [3, 13];
|
|
3885
|
+
case 4:
|
|
3886
|
+
_d = [{}];
|
|
3887
|
+
return [4, deserializeAws_json1_1InternalServerExceptionResponse(parsedOutput, context)];
|
|
3888
|
+
case 5:
|
|
3889
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3890
|
+
return [3, 13];
|
|
3891
|
+
case 6:
|
|
3892
|
+
_e = [{}];
|
|
3893
|
+
return [4, deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
3894
|
+
case 7:
|
|
3895
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3896
|
+
return [3, 13];
|
|
3897
|
+
case 8:
|
|
3898
|
+
_f = [{}];
|
|
3899
|
+
return [4, deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context)];
|
|
3900
|
+
case 9:
|
|
3901
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3902
|
+
return [3, 13];
|
|
3903
|
+
case 10:
|
|
3904
|
+
_g = [{}];
|
|
3905
|
+
return [4, deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context)];
|
|
3906
|
+
case 11:
|
|
3907
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3908
|
+
return [3, 13];
|
|
3909
|
+
case 12:
|
|
3910
|
+
parsedBody = parsedOutput.body;
|
|
3911
|
+
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
3912
|
+
response = __assign(__assign({}, parsedBody), { name: "" + errorCode, message: parsedBody.message || parsedBody.Message || errorCode, $fault: "client", $metadata: deserializeMetadata(output) });
|
|
3913
|
+
_j.label = 13;
|
|
3914
|
+
case 13:
|
|
3915
|
+
message = response.message || response.Message || errorCode;
|
|
3916
|
+
response.message = message;
|
|
3917
|
+
delete response.Message;
|
|
3918
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
3919
|
+
}
|
|
3920
|
+
});
|
|
3921
|
+
}); };
|
|
3922
|
+
export var deserializeAws_json1_1ListExperiencesCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3923
|
+
var data, contents, response;
|
|
3924
|
+
return __generator(this, function (_a) {
|
|
3925
|
+
switch (_a.label) {
|
|
3926
|
+
case 0:
|
|
3927
|
+
if (output.statusCode >= 300) {
|
|
3928
|
+
return [2, deserializeAws_json1_1ListExperiencesCommandError(output, context)];
|
|
3929
|
+
}
|
|
3930
|
+
return [4, parseBody(output.body, context)];
|
|
3931
|
+
case 1:
|
|
3932
|
+
data = _a.sent();
|
|
3933
|
+
contents = {};
|
|
3934
|
+
contents = deserializeAws_json1_1ListExperiencesResponse(data, context);
|
|
3935
|
+
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
3936
|
+
return [2, Promise.resolve(response)];
|
|
3937
|
+
}
|
|
3938
|
+
});
|
|
3939
|
+
}); };
|
|
3940
|
+
var deserializeAws_json1_1ListExperiencesCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3941
|
+
var parsedOutput, _a, response, errorCode, _b, _c, _d, _e, _f, _g, parsedBody, message;
|
|
3942
|
+
var _h;
|
|
3943
|
+
return __generator(this, function (_j) {
|
|
3944
|
+
switch (_j.label) {
|
|
3945
|
+
case 0:
|
|
3946
|
+
_a = [__assign({}, output)];
|
|
3947
|
+
_h = {};
|
|
3948
|
+
return [4, parseBody(output.body, context)];
|
|
3949
|
+
case 1:
|
|
3950
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_h.body = _j.sent(), _h)]));
|
|
3951
|
+
errorCode = "UnknownError";
|
|
3952
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3953
|
+
_b = errorCode;
|
|
3954
|
+
switch (_b) {
|
|
3955
|
+
case "AccessDeniedException": return [3, 2];
|
|
3956
|
+
case "com.amazonaws.kendra#AccessDeniedException": return [3, 2];
|
|
3957
|
+
case "InternalServerException": return [3, 4];
|
|
3958
|
+
case "com.amazonaws.kendra#InternalServerException": return [3, 4];
|
|
3959
|
+
case "ResourceNotFoundException": return [3, 6];
|
|
3960
|
+
case "com.amazonaws.kendra#ResourceNotFoundException": return [3, 6];
|
|
3961
|
+
case "ThrottlingException": return [3, 8];
|
|
3962
|
+
case "com.amazonaws.kendra#ThrottlingException": return [3, 8];
|
|
3963
|
+
case "ValidationException": return [3, 10];
|
|
3964
|
+
case "com.amazonaws.kendra#ValidationException": return [3, 10];
|
|
2828
3965
|
}
|
|
2829
|
-
return [3,
|
|
3966
|
+
return [3, 12];
|
|
2830
3967
|
case 2:
|
|
2831
3968
|
_c = [{}];
|
|
2832
3969
|
return [4, deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context)];
|
|
2833
3970
|
case 3:
|
|
2834
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(
|
|
2835
|
-
return [3,
|
|
3971
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3972
|
+
return [3, 13];
|
|
2836
3973
|
case 4:
|
|
2837
3974
|
_d = [{}];
|
|
2838
|
-
return [4,
|
|
3975
|
+
return [4, deserializeAws_json1_1InternalServerExceptionResponse(parsedOutput, context)];
|
|
2839
3976
|
case 5:
|
|
2840
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(
|
|
2841
|
-
return [3,
|
|
3977
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3978
|
+
return [3, 13];
|
|
2842
3979
|
case 6:
|
|
2843
3980
|
_e = [{}];
|
|
2844
|
-
return [4,
|
|
3981
|
+
return [4, deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
2845
3982
|
case 7:
|
|
2846
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(
|
|
2847
|
-
return [3,
|
|
3983
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3984
|
+
return [3, 13];
|
|
2848
3985
|
case 8:
|
|
2849
3986
|
_f = [{}];
|
|
2850
|
-
return [4,
|
|
3987
|
+
return [4, deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context)];
|
|
2851
3988
|
case 9:
|
|
2852
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(
|
|
2853
|
-
return [3,
|
|
3989
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3990
|
+
return [3, 13];
|
|
2854
3991
|
case 10:
|
|
2855
3992
|
_g = [{}];
|
|
2856
|
-
return [4,
|
|
3993
|
+
return [4, deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context)];
|
|
2857
3994
|
case 11:
|
|
2858
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(
|
|
2859
|
-
return [3,
|
|
3995
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3996
|
+
return [3, 13];
|
|
2860
3997
|
case 12:
|
|
2861
|
-
_h = [{}];
|
|
2862
|
-
return [4, deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context)];
|
|
2863
|
-
case 13:
|
|
2864
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _h.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2865
|
-
return [3, 15];
|
|
2866
|
-
case 14:
|
|
2867
3998
|
parsedBody = parsedOutput.body;
|
|
2868
3999
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
2869
4000
|
response = __assign(__assign({}, parsedBody), { name: "" + errorCode, message: parsedBody.message || parsedBody.Message || errorCode, $fault: "client", $metadata: deserializeMetadata(output) });
|
|
2870
|
-
|
|
2871
|
-
case
|
|
4001
|
+
_j.label = 13;
|
|
4002
|
+
case 13:
|
|
2872
4003
|
message = response.message || response.Message || errorCode;
|
|
2873
4004
|
response.message = message;
|
|
2874
4005
|
delete response.Message;
|
|
@@ -4172,6 +5303,102 @@ var deserializeAws_json1_1UpdateDataSourceCommandError = function (output, conte
|
|
|
4172
5303
|
}
|
|
4173
5304
|
});
|
|
4174
5305
|
}); };
|
|
5306
|
+
export var deserializeAws_json1_1UpdateExperienceCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
5307
|
+
var response;
|
|
5308
|
+
return __generator(this, function (_a) {
|
|
5309
|
+
switch (_a.label) {
|
|
5310
|
+
case 0:
|
|
5311
|
+
if (output.statusCode >= 300) {
|
|
5312
|
+
return [2, deserializeAws_json1_1UpdateExperienceCommandError(output, context)];
|
|
5313
|
+
}
|
|
5314
|
+
return [4, collectBody(output.body, context)];
|
|
5315
|
+
case 1:
|
|
5316
|
+
_a.sent();
|
|
5317
|
+
response = {
|
|
5318
|
+
$metadata: deserializeMetadata(output),
|
|
5319
|
+
};
|
|
5320
|
+
return [2, Promise.resolve(response)];
|
|
5321
|
+
}
|
|
5322
|
+
});
|
|
5323
|
+
}); };
|
|
5324
|
+
var deserializeAws_json1_1UpdateExperienceCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
5325
|
+
var parsedOutput, _a, response, errorCode, _b, _c, _d, _e, _f, _g, _h, parsedBody, message;
|
|
5326
|
+
var _j;
|
|
5327
|
+
return __generator(this, function (_k) {
|
|
5328
|
+
switch (_k.label) {
|
|
5329
|
+
case 0:
|
|
5330
|
+
_a = [__assign({}, output)];
|
|
5331
|
+
_j = {};
|
|
5332
|
+
return [4, parseBody(output.body, context)];
|
|
5333
|
+
case 1:
|
|
5334
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_j.body = _k.sent(), _j)]));
|
|
5335
|
+
errorCode = "UnknownError";
|
|
5336
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5337
|
+
_b = errorCode;
|
|
5338
|
+
switch (_b) {
|
|
5339
|
+
case "AccessDeniedException": return [3, 2];
|
|
5340
|
+
case "com.amazonaws.kendra#AccessDeniedException": return [3, 2];
|
|
5341
|
+
case "ConflictException": return [3, 4];
|
|
5342
|
+
case "com.amazonaws.kendra#ConflictException": return [3, 4];
|
|
5343
|
+
case "InternalServerException": return [3, 6];
|
|
5344
|
+
case "com.amazonaws.kendra#InternalServerException": return [3, 6];
|
|
5345
|
+
case "ResourceNotFoundException": return [3, 8];
|
|
5346
|
+
case "com.amazonaws.kendra#ResourceNotFoundException": return [3, 8];
|
|
5347
|
+
case "ThrottlingException": return [3, 10];
|
|
5348
|
+
case "com.amazonaws.kendra#ThrottlingException": return [3, 10];
|
|
5349
|
+
case "ValidationException": return [3, 12];
|
|
5350
|
+
case "com.amazonaws.kendra#ValidationException": return [3, 12];
|
|
5351
|
+
}
|
|
5352
|
+
return [3, 14];
|
|
5353
|
+
case 2:
|
|
5354
|
+
_c = [{}];
|
|
5355
|
+
return [4, deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context)];
|
|
5356
|
+
case 3:
|
|
5357
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
5358
|
+
return [3, 15];
|
|
5359
|
+
case 4:
|
|
5360
|
+
_d = [{}];
|
|
5361
|
+
return [4, deserializeAws_json1_1ConflictExceptionResponse(parsedOutput, context)];
|
|
5362
|
+
case 5:
|
|
5363
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
5364
|
+
return [3, 15];
|
|
5365
|
+
case 6:
|
|
5366
|
+
_e = [{}];
|
|
5367
|
+
return [4, deserializeAws_json1_1InternalServerExceptionResponse(parsedOutput, context)];
|
|
5368
|
+
case 7:
|
|
5369
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
5370
|
+
return [3, 15];
|
|
5371
|
+
case 8:
|
|
5372
|
+
_f = [{}];
|
|
5373
|
+
return [4, deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
5374
|
+
case 9:
|
|
5375
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
5376
|
+
return [3, 15];
|
|
5377
|
+
case 10:
|
|
5378
|
+
_g = [{}];
|
|
5379
|
+
return [4, deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context)];
|
|
5380
|
+
case 11:
|
|
5381
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
5382
|
+
return [3, 15];
|
|
5383
|
+
case 12:
|
|
5384
|
+
_h = [{}];
|
|
5385
|
+
return [4, deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context)];
|
|
5386
|
+
case 13:
|
|
5387
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _h.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
5388
|
+
return [3, 15];
|
|
5389
|
+
case 14:
|
|
5390
|
+
parsedBody = parsedOutput.body;
|
|
5391
|
+
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
5392
|
+
response = __assign(__assign({}, parsedBody), { name: "" + errorCode, message: parsedBody.message || parsedBody.Message || errorCode, $fault: "client", $metadata: deserializeMetadata(output) });
|
|
5393
|
+
_k.label = 15;
|
|
5394
|
+
case 15:
|
|
5395
|
+
message = response.message || response.Message || errorCode;
|
|
5396
|
+
response.message = message;
|
|
5397
|
+
delete response.Message;
|
|
5398
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
5399
|
+
}
|
|
5400
|
+
});
|
|
5401
|
+
}); };
|
|
4175
5402
|
export var deserializeAws_json1_1UpdateIndexCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
4176
5403
|
var response;
|
|
4177
5404
|
return __generator(this, function (_a) {
|
|
@@ -4591,6 +5818,15 @@ var deserializeAws_json1_1InternalServerExceptionResponse = function (parsedOutp
|
|
|
4591
5818
|
return [2, contents];
|
|
4592
5819
|
});
|
|
4593
5820
|
}); };
|
|
5821
|
+
var deserializeAws_json1_1InvalidRequestExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
5822
|
+
var body, deserialized, contents;
|
|
5823
|
+
return __generator(this, function (_a) {
|
|
5824
|
+
body = parsedOutput.body;
|
|
5825
|
+
deserialized = deserializeAws_json1_1InvalidRequestException(body, context);
|
|
5826
|
+
contents = __assign({ name: "InvalidRequestException", $fault: "client", $metadata: deserializeMetadata(parsedOutput) }, deserialized);
|
|
5827
|
+
return [2, contents];
|
|
5828
|
+
});
|
|
5829
|
+
}); };
|
|
4594
5830
|
var deserializeAws_json1_1ResourceAlreadyExistExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
4595
5831
|
var body, deserialized, contents;
|
|
4596
5832
|
return __generator(this, function (_a) {
|
|
@@ -4661,6 +5897,26 @@ var serializeAws_json1_1AclConfiguration = function (input, context) {
|
|
|
4661
5897
|
return __assign({}, (input.AllowedGroupsColumnName !== undefined &&
|
|
4662
5898
|
input.AllowedGroupsColumnName !== null && { AllowedGroupsColumnName: input.AllowedGroupsColumnName }));
|
|
4663
5899
|
};
|
|
5900
|
+
var serializeAws_json1_1AssociateEntitiesToExperienceRequest = function (input, context) {
|
|
5901
|
+
return __assign(__assign(__assign({}, (input.EntityList !== undefined &&
|
|
5902
|
+
input.EntityList !== null && { EntityList: serializeAws_json1_1AssociateEntityList(input.EntityList, context) })), (input.Id !== undefined && input.Id !== null && { Id: input.Id })), (input.IndexId !== undefined && input.IndexId !== null && { IndexId: input.IndexId }));
|
|
5903
|
+
};
|
|
5904
|
+
var serializeAws_json1_1AssociateEntityList = function (input, context) {
|
|
5905
|
+
return input
|
|
5906
|
+
.filter(function (e) { return e != null; })
|
|
5907
|
+
.map(function (entry) {
|
|
5908
|
+
if (entry === null) {
|
|
5909
|
+
return null;
|
|
5910
|
+
}
|
|
5911
|
+
return serializeAws_json1_1EntityConfiguration(entry, context);
|
|
5912
|
+
});
|
|
5913
|
+
};
|
|
5914
|
+
var serializeAws_json1_1AssociatePersonasToEntitiesRequest = function (input, context) {
|
|
5915
|
+
return __assign(__assign(__assign({}, (input.Id !== undefined && input.Id !== null && { Id: input.Id })), (input.IndexId !== undefined && input.IndexId !== null && { IndexId: input.IndexId })), (input.Personas !== undefined &&
|
|
5916
|
+
input.Personas !== null && {
|
|
5917
|
+
Personas: serializeAws_json1_1EntityPersonaConfigurationList(input.Personas, context),
|
|
5918
|
+
}));
|
|
5919
|
+
};
|
|
4664
5920
|
var serializeAws_json1_1AttributeFilter = function (input, context) {
|
|
4665
5921
|
return __assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.AndAllFilters !== undefined &&
|
|
4666
5922
|
input.AndAllFilters !== null && {
|
|
@@ -4727,7 +5983,10 @@ var serializeAws_json1_1BatchGetDocumentStatusRequest = function (input, context
|
|
|
4727
5983
|
})), (input.IndexId !== undefined && input.IndexId !== null && { IndexId: input.IndexId }));
|
|
4728
5984
|
};
|
|
4729
5985
|
var serializeAws_json1_1BatchPutDocumentRequest = function (input, context) {
|
|
4730
|
-
return __assign(__assign(__assign({}, (input.
|
|
5986
|
+
return __assign(__assign(__assign(__assign({}, (input.CustomDocumentEnrichmentConfiguration !== undefined &&
|
|
5987
|
+
input.CustomDocumentEnrichmentConfiguration !== null && {
|
|
5988
|
+
CustomDocumentEnrichmentConfiguration: serializeAws_json1_1CustomDocumentEnrichmentConfiguration(input.CustomDocumentEnrichmentConfiguration, context),
|
|
5989
|
+
})), (input.Documents !== undefined &&
|
|
4731
5990
|
input.Documents !== null && { Documents: serializeAws_json1_1DocumentList(input.Documents, context) })), (input.IndexId !== undefined && input.IndexId !== null && { IndexId: input.IndexId })), (input.RoleArn !== undefined && input.RoleArn !== null && { RoleArn: input.RoleArn }));
|
|
4732
5991
|
};
|
|
4733
5992
|
var serializeAws_json1_1CapacityUnitsConfiguration = function (input, context) {
|
|
@@ -4908,13 +6167,31 @@ var serializeAws_json1_1ConfluenceSpaceToIndexFieldMapping = function (input, co
|
|
|
4908
6167
|
var serializeAws_json1_1ConnectionConfiguration = function (input, context) {
|
|
4909
6168
|
return __assign(__assign(__assign(__assign(__assign({}, (input.DatabaseHost !== undefined && input.DatabaseHost !== null && { DatabaseHost: input.DatabaseHost })), (input.DatabaseName !== undefined && input.DatabaseName !== null && { DatabaseName: input.DatabaseName })), (input.DatabasePort !== undefined && input.DatabasePort !== null && { DatabasePort: input.DatabasePort })), (input.SecretArn !== undefined && input.SecretArn !== null && { SecretArn: input.SecretArn })), (input.TableName !== undefined && input.TableName !== null && { TableName: input.TableName }));
|
|
4910
6169
|
};
|
|
6170
|
+
var serializeAws_json1_1ContentSourceConfiguration = function (input, context) {
|
|
6171
|
+
return __assign(__assign(__assign({}, (input.DataSourceIds !== undefined &&
|
|
6172
|
+
input.DataSourceIds !== null && {
|
|
6173
|
+
DataSourceIds: serializeAws_json1_1DataSourceIdList(input.DataSourceIds, context),
|
|
6174
|
+
})), (input.DirectPutContent !== undefined &&
|
|
6175
|
+
input.DirectPutContent !== null && { DirectPutContent: input.DirectPutContent })), (input.FaqIds !== undefined &&
|
|
6176
|
+
input.FaqIds !== null && { FaqIds: serializeAws_json1_1FaqIdsList(input.FaqIds, context) }));
|
|
6177
|
+
};
|
|
4911
6178
|
var serializeAws_json1_1CreateDataSourceRequest = function (input, context) {
|
|
4912
6179
|
var _a;
|
|
4913
|
-
return __assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({ ClientToken: (_a = input.ClientToken) !== null && _a !== void 0 ? _a : generateIdempotencyToken() }, (input.Configuration !== undefined &&
|
|
6180
|
+
return __assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({ ClientToken: (_a = input.ClientToken) !== null && _a !== void 0 ? _a : generateIdempotencyToken() }, (input.Configuration !== undefined &&
|
|
4914
6181
|
input.Configuration !== null && {
|
|
4915
6182
|
Configuration: serializeAws_json1_1DataSourceConfiguration(input.Configuration, context),
|
|
6183
|
+
})), (input.CustomDocumentEnrichmentConfiguration !== undefined &&
|
|
6184
|
+
input.CustomDocumentEnrichmentConfiguration !== null && {
|
|
6185
|
+
CustomDocumentEnrichmentConfiguration: serializeAws_json1_1CustomDocumentEnrichmentConfiguration(input.CustomDocumentEnrichmentConfiguration, context),
|
|
4916
6186
|
})), (input.Description !== undefined && input.Description !== null && { Description: input.Description })), (input.IndexId !== undefined && input.IndexId !== null && { IndexId: input.IndexId })), (input.LanguageCode !== undefined && input.LanguageCode !== null && { LanguageCode: input.LanguageCode })), (input.Name !== undefined && input.Name !== null && { Name: input.Name })), (input.RoleArn !== undefined && input.RoleArn !== null && { RoleArn: input.RoleArn })), (input.Schedule !== undefined && input.Schedule !== null && { Schedule: input.Schedule })), (input.Tags !== undefined && input.Tags !== null && { Tags: serializeAws_json1_1TagList(input.Tags, context) })), (input.Type !== undefined && input.Type !== null && { Type: input.Type }));
|
|
4917
6187
|
};
|
|
6188
|
+
var serializeAws_json1_1CreateExperienceRequest = function (input, context) {
|
|
6189
|
+
var _a;
|
|
6190
|
+
return __assign(__assign(__assign(__assign(__assign({ ClientToken: (_a = input.ClientToken) !== null && _a !== void 0 ? _a : generateIdempotencyToken() }, (input.Configuration !== undefined &&
|
|
6191
|
+
input.Configuration !== null && {
|
|
6192
|
+
Configuration: serializeAws_json1_1ExperienceConfiguration(input.Configuration, context),
|
|
6193
|
+
})), (input.Description !== undefined && input.Description !== null && { Description: input.Description })), (input.IndexId !== undefined && input.IndexId !== null && { IndexId: input.IndexId })), (input.Name !== undefined && input.Name !== null && { Name: input.Name })), (input.RoleArn !== undefined && input.RoleArn !== null && { RoleArn: input.RoleArn }));
|
|
6194
|
+
};
|
|
4918
6195
|
var serializeAws_json1_1CreateFaqRequest = function (input, context) {
|
|
4919
6196
|
var _a;
|
|
4920
6197
|
return __assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({ ClientToken: (_a = input.ClientToken) !== null && _a !== void 0 ? _a : generateIdempotencyToken() }, (input.Description !== undefined && input.Description !== null && { Description: input.Description })), (input.FileFormat !== undefined && input.FileFormat !== null && { FileFormat: input.FileFormat })), (input.IndexId !== undefined && input.IndexId !== null && { IndexId: input.IndexId })), (input.LanguageCode !== undefined && input.LanguageCode !== null && { LanguageCode: input.LanguageCode })), (input.Name !== undefined && input.Name !== null && { Name: input.Name })), (input.RoleArn !== undefined && input.RoleArn !== null && { RoleArn: input.RoleArn })), (input.S3Path !== undefined &&
|
|
@@ -4944,6 +6221,18 @@ var serializeAws_json1_1CreateThesaurusRequest = function (input, context) {
|
|
|
4944
6221
|
return __assign(__assign(__assign(__assign(__assign(__assign({ ClientToken: (_a = input.ClientToken) !== null && _a !== void 0 ? _a : generateIdempotencyToken() }, (input.Description !== undefined && input.Description !== null && { Description: input.Description })), (input.IndexId !== undefined && input.IndexId !== null && { IndexId: input.IndexId })), (input.Name !== undefined && input.Name !== null && { Name: input.Name })), (input.RoleArn !== undefined && input.RoleArn !== null && { RoleArn: input.RoleArn })), (input.SourceS3Path !== undefined &&
|
|
4945
6222
|
input.SourceS3Path !== null && { SourceS3Path: serializeAws_json1_1S3Path(input.SourceS3Path, context) })), (input.Tags !== undefined && input.Tags !== null && { Tags: serializeAws_json1_1TagList(input.Tags, context) }));
|
|
4946
6223
|
};
|
|
6224
|
+
var serializeAws_json1_1CustomDocumentEnrichmentConfiguration = function (input, context) {
|
|
6225
|
+
return __assign(__assign(__assign(__assign({}, (input.InlineConfigurations !== undefined &&
|
|
6226
|
+
input.InlineConfigurations !== null && {
|
|
6227
|
+
InlineConfigurations: serializeAws_json1_1InlineCustomDocumentEnrichmentConfigurationList(input.InlineConfigurations, context),
|
|
6228
|
+
})), (input.PostExtractionHookConfiguration !== undefined &&
|
|
6229
|
+
input.PostExtractionHookConfiguration !== null && {
|
|
6230
|
+
PostExtractionHookConfiguration: serializeAws_json1_1HookConfiguration(input.PostExtractionHookConfiguration, context),
|
|
6231
|
+
})), (input.PreExtractionHookConfiguration !== undefined &&
|
|
6232
|
+
input.PreExtractionHookConfiguration !== null && {
|
|
6233
|
+
PreExtractionHookConfiguration: serializeAws_json1_1HookConfiguration(input.PreExtractionHookConfiguration, context),
|
|
6234
|
+
})), (input.RoleArn !== undefined && input.RoleArn !== null && { RoleArn: input.RoleArn }));
|
|
6235
|
+
};
|
|
4947
6236
|
var serializeAws_json1_1DatabaseConfiguration = function (input, context) {
|
|
4948
6237
|
return __assign(__assign(__assign(__assign(__assign(__assign({}, (input.AclConfiguration !== undefined &&
|
|
4949
6238
|
input.AclConfiguration !== null && {
|
|
@@ -5009,6 +6298,16 @@ var serializeAws_json1_1DataSourceGroups = function (input, context) {
|
|
|
5009
6298
|
return serializeAws_json1_1DataSourceGroup(entry, context);
|
|
5010
6299
|
});
|
|
5011
6300
|
};
|
|
6301
|
+
var serializeAws_json1_1DataSourceIdList = function (input, context) {
|
|
6302
|
+
return input
|
|
6303
|
+
.filter(function (e) { return e != null; })
|
|
6304
|
+
.map(function (entry) {
|
|
6305
|
+
if (entry === null) {
|
|
6306
|
+
return null;
|
|
6307
|
+
}
|
|
6308
|
+
return entry;
|
|
6309
|
+
});
|
|
6310
|
+
};
|
|
5012
6311
|
var serializeAws_json1_1DataSourceInclusionsExclusionsStrings = function (input, context) {
|
|
5013
6312
|
return input
|
|
5014
6313
|
.filter(function (e) { return e != null; })
|
|
@@ -5049,6 +6348,9 @@ var serializeAws_json1_1DataSourceVpcConfiguration = function (input, context) {
|
|
|
5049
6348
|
var serializeAws_json1_1DeleteDataSourceRequest = function (input, context) {
|
|
5050
6349
|
return __assign(__assign({}, (input.Id !== undefined && input.Id !== null && { Id: input.Id })), (input.IndexId !== undefined && input.IndexId !== null && { IndexId: input.IndexId }));
|
|
5051
6350
|
};
|
|
6351
|
+
var serializeAws_json1_1DeleteExperienceRequest = function (input, context) {
|
|
6352
|
+
return __assign(__assign({}, (input.Id !== undefined && input.Id !== null && { Id: input.Id })), (input.IndexId !== undefined && input.IndexId !== null && { IndexId: input.IndexId }));
|
|
6353
|
+
};
|
|
5052
6354
|
var serializeAws_json1_1DeleteFaqRequest = function (input, context) {
|
|
5053
6355
|
return __assign(__assign({}, (input.Id !== undefined && input.Id !== null && { Id: input.Id })), (input.IndexId !== undefined && input.IndexId !== null && { IndexId: input.IndexId }));
|
|
5054
6356
|
};
|
|
@@ -5067,6 +6369,9 @@ var serializeAws_json1_1DeleteThesaurusRequest = function (input, context) {
|
|
|
5067
6369
|
var serializeAws_json1_1DescribeDataSourceRequest = function (input, context) {
|
|
5068
6370
|
return __assign(__assign({}, (input.Id !== undefined && input.Id !== null && { Id: input.Id })), (input.IndexId !== undefined && input.IndexId !== null && { IndexId: input.IndexId }));
|
|
5069
6371
|
};
|
|
6372
|
+
var serializeAws_json1_1DescribeExperienceRequest = function (input, context) {
|
|
6373
|
+
return __assign(__assign({}, (input.Id !== undefined && input.Id !== null && { Id: input.Id })), (input.IndexId !== undefined && input.IndexId !== null && { IndexId: input.IndexId }));
|
|
6374
|
+
};
|
|
5070
6375
|
var serializeAws_json1_1DescribeFaqRequest = function (input, context) {
|
|
5071
6376
|
return __assign(__assign({}, (input.Id !== undefined && input.Id !== null && { Id: input.Id })), (input.IndexId !== undefined && input.IndexId !== null && { IndexId: input.IndexId }));
|
|
5072
6377
|
};
|
|
@@ -5085,6 +6390,26 @@ var serializeAws_json1_1DescribeQuerySuggestionsConfigRequest = function (input,
|
|
|
5085
6390
|
var serializeAws_json1_1DescribeThesaurusRequest = function (input, context) {
|
|
5086
6391
|
return __assign(__assign({}, (input.Id !== undefined && input.Id !== null && { Id: input.Id })), (input.IndexId !== undefined && input.IndexId !== null && { IndexId: input.IndexId }));
|
|
5087
6392
|
};
|
|
6393
|
+
var serializeAws_json1_1DisassociateEntitiesFromExperienceRequest = function (input, context) {
|
|
6394
|
+
return __assign(__assign(__assign({}, (input.EntityList !== undefined &&
|
|
6395
|
+
input.EntityList !== null && {
|
|
6396
|
+
EntityList: serializeAws_json1_1DisassociateEntityList(input.EntityList, context),
|
|
6397
|
+
})), (input.Id !== undefined && input.Id !== null && { Id: input.Id })), (input.IndexId !== undefined && input.IndexId !== null && { IndexId: input.IndexId }));
|
|
6398
|
+
};
|
|
6399
|
+
var serializeAws_json1_1DisassociateEntityList = function (input, context) {
|
|
6400
|
+
return input
|
|
6401
|
+
.filter(function (e) { return e != null; })
|
|
6402
|
+
.map(function (entry) {
|
|
6403
|
+
if (entry === null) {
|
|
6404
|
+
return null;
|
|
6405
|
+
}
|
|
6406
|
+
return serializeAws_json1_1EntityConfiguration(entry, context);
|
|
6407
|
+
});
|
|
6408
|
+
};
|
|
6409
|
+
var serializeAws_json1_1DisassociatePersonasFromEntitiesRequest = function (input, context) {
|
|
6410
|
+
return __assign(__assign(__assign({}, (input.EntityIds !== undefined &&
|
|
6411
|
+
input.EntityIds !== null && { EntityIds: serializeAws_json1_1EntityIdsList(input.EntityIds, context) })), (input.Id !== undefined && input.Id !== null && { Id: input.Id })), (input.IndexId !== undefined && input.IndexId !== null && { IndexId: input.IndexId }));
|
|
6412
|
+
};
|
|
5088
6413
|
var serializeAws_json1_1Document = function (input, context) {
|
|
5089
6414
|
return __assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.AccessControlList !== undefined &&
|
|
5090
6415
|
input.AccessControlList !== null && {
|
|
@@ -5102,6 +6427,15 @@ var serializeAws_json1_1DocumentAttribute = function (input, context) {
|
|
|
5102
6427
|
return __assign(__assign({}, (input.Key !== undefined && input.Key !== null && { Key: input.Key })), (input.Value !== undefined &&
|
|
5103
6428
|
input.Value !== null && { Value: serializeAws_json1_1DocumentAttributeValue(input.Value, context) }));
|
|
5104
6429
|
};
|
|
6430
|
+
var serializeAws_json1_1DocumentAttributeCondition = function (input, context) {
|
|
6431
|
+
return __assign(__assign(__assign({}, (input.ConditionDocumentAttributeKey !== undefined &&
|
|
6432
|
+
input.ConditionDocumentAttributeKey !== null && {
|
|
6433
|
+
ConditionDocumentAttributeKey: input.ConditionDocumentAttributeKey,
|
|
6434
|
+
})), (input.ConditionOnValue !== undefined &&
|
|
6435
|
+
input.ConditionOnValue !== null && {
|
|
6436
|
+
ConditionOnValue: serializeAws_json1_1DocumentAttributeValue(input.ConditionOnValue, context),
|
|
6437
|
+
})), (input.Operator !== undefined && input.Operator !== null && { Operator: input.Operator }));
|
|
6438
|
+
};
|
|
5105
6439
|
var serializeAws_json1_1DocumentAttributeKeyList = function (input, context) {
|
|
5106
6440
|
return input
|
|
5107
6441
|
.filter(function (e) { return e != null; })
|
|
@@ -5132,16 +6466,22 @@ var serializeAws_json1_1DocumentAttributeStringListValue = function (input, cont
|
|
|
5132
6466
|
return entry;
|
|
5133
6467
|
});
|
|
5134
6468
|
};
|
|
6469
|
+
var serializeAws_json1_1DocumentAttributeTarget = function (input, context) {
|
|
6470
|
+
return __assign(__assign(__assign({}, (input.TargetDocumentAttributeKey !== undefined &&
|
|
6471
|
+
input.TargetDocumentAttributeKey !== null && { TargetDocumentAttributeKey: input.TargetDocumentAttributeKey })), (input.TargetDocumentAttributeValue !== undefined &&
|
|
6472
|
+
input.TargetDocumentAttributeValue !== null && {
|
|
6473
|
+
TargetDocumentAttributeValue: serializeAws_json1_1DocumentAttributeValue(input.TargetDocumentAttributeValue, context),
|
|
6474
|
+
})), (input.TargetDocumentAttributeValueDeletion !== undefined &&
|
|
6475
|
+
input.TargetDocumentAttributeValueDeletion !== null && {
|
|
6476
|
+
TargetDocumentAttributeValueDeletion: input.TargetDocumentAttributeValueDeletion,
|
|
6477
|
+
}));
|
|
6478
|
+
};
|
|
5135
6479
|
var serializeAws_json1_1DocumentAttributeValue = function (input, context) {
|
|
5136
|
-
return
|
|
5137
|
-
DateValue
|
|
5138
|
-
|
|
5139
|
-
StringListValue:
|
|
5140
|
-
|
|
5141
|
-
}); },
|
|
5142
|
-
StringValue: function (value) { return ({ StringValue: value }); },
|
|
5143
|
-
_: function (name, value) { return ({ name: value }); },
|
|
5144
|
-
});
|
|
6480
|
+
return __assign(__assign(__assign(__assign({}, (input.DateValue !== undefined &&
|
|
6481
|
+
input.DateValue !== null && { DateValue: Math.round(input.DateValue.getTime() / 1000) })), (input.LongValue !== undefined && input.LongValue !== null && { LongValue: input.LongValue })), (input.StringListValue !== undefined &&
|
|
6482
|
+
input.StringListValue !== null && {
|
|
6483
|
+
StringListValue: serializeAws_json1_1DocumentAttributeStringListValue(input.StringListValue, context),
|
|
6484
|
+
})), (input.StringValue !== undefined && input.StringValue !== null && { StringValue: input.StringValue }));
|
|
5145
6485
|
};
|
|
5146
6486
|
var serializeAws_json1_1DocumentIdList = function (input, context) {
|
|
5147
6487
|
return input
|
|
@@ -5211,6 +6551,32 @@ var serializeAws_json1_1DocumentRelevanceOverrideConfigurationList = function (i
|
|
|
5211
6551
|
var serializeAws_json1_1DocumentsMetadataConfiguration = function (input, context) {
|
|
5212
6552
|
return __assign({}, (input.S3Prefix !== undefined && input.S3Prefix !== null && { S3Prefix: input.S3Prefix }));
|
|
5213
6553
|
};
|
|
6554
|
+
var serializeAws_json1_1EntityConfiguration = function (input, context) {
|
|
6555
|
+
return __assign(__assign({}, (input.EntityId !== undefined && input.EntityId !== null && { EntityId: input.EntityId })), (input.EntityType !== undefined && input.EntityType !== null && { EntityType: input.EntityType }));
|
|
6556
|
+
};
|
|
6557
|
+
var serializeAws_json1_1EntityIdsList = function (input, context) {
|
|
6558
|
+
return input
|
|
6559
|
+
.filter(function (e) { return e != null; })
|
|
6560
|
+
.map(function (entry) {
|
|
6561
|
+
if (entry === null) {
|
|
6562
|
+
return null;
|
|
6563
|
+
}
|
|
6564
|
+
return entry;
|
|
6565
|
+
});
|
|
6566
|
+
};
|
|
6567
|
+
var serializeAws_json1_1EntityPersonaConfiguration = function (input, context) {
|
|
6568
|
+
return __assign(__assign({}, (input.EntityId !== undefined && input.EntityId !== null && { EntityId: input.EntityId })), (input.Persona !== undefined && input.Persona !== null && { Persona: input.Persona }));
|
|
6569
|
+
};
|
|
6570
|
+
var serializeAws_json1_1EntityPersonaConfigurationList = function (input, context) {
|
|
6571
|
+
return input
|
|
6572
|
+
.filter(function (e) { return e != null; })
|
|
6573
|
+
.map(function (entry) {
|
|
6574
|
+
if (entry === null) {
|
|
6575
|
+
return null;
|
|
6576
|
+
}
|
|
6577
|
+
return serializeAws_json1_1EntityPersonaConfiguration(entry, context);
|
|
6578
|
+
});
|
|
6579
|
+
};
|
|
5214
6580
|
var serializeAws_json1_1ExcludeMimeTypesList = function (input, context) {
|
|
5215
6581
|
return input
|
|
5216
6582
|
.filter(function (e) { return e != null; })
|
|
@@ -5241,6 +6607,15 @@ var serializeAws_json1_1ExcludeUserAccountsList = function (input, context) {
|
|
|
5241
6607
|
return entry;
|
|
5242
6608
|
});
|
|
5243
6609
|
};
|
|
6610
|
+
var serializeAws_json1_1ExperienceConfiguration = function (input, context) {
|
|
6611
|
+
return __assign(__assign({}, (input.ContentSourceConfiguration !== undefined &&
|
|
6612
|
+
input.ContentSourceConfiguration !== null && {
|
|
6613
|
+
ContentSourceConfiguration: serializeAws_json1_1ContentSourceConfiguration(input.ContentSourceConfiguration, context),
|
|
6614
|
+
})), (input.UserIdentityConfiguration !== undefined &&
|
|
6615
|
+
input.UserIdentityConfiguration !== null && {
|
|
6616
|
+
UserIdentityConfiguration: serializeAws_json1_1UserIdentityConfiguration(input.UserIdentityConfiguration, context),
|
|
6617
|
+
}));
|
|
6618
|
+
};
|
|
5244
6619
|
var serializeAws_json1_1Facet = function (input, context) {
|
|
5245
6620
|
return __assign({}, (input.DocumentAttributeKey !== undefined &&
|
|
5246
6621
|
input.DocumentAttributeKey !== null && { DocumentAttributeKey: input.DocumentAttributeKey }));
|
|
@@ -5255,10 +6630,23 @@ var serializeAws_json1_1FacetList = function (input, context) {
|
|
|
5255
6630
|
return serializeAws_json1_1Facet(entry, context);
|
|
5256
6631
|
});
|
|
5257
6632
|
};
|
|
6633
|
+
var serializeAws_json1_1FaqIdsList = function (input, context) {
|
|
6634
|
+
return input
|
|
6635
|
+
.filter(function (e) { return e != null; })
|
|
6636
|
+
.map(function (entry) {
|
|
6637
|
+
if (entry === null) {
|
|
6638
|
+
return null;
|
|
6639
|
+
}
|
|
6640
|
+
return entry;
|
|
6641
|
+
});
|
|
6642
|
+
};
|
|
5258
6643
|
var serializeAws_json1_1GetQuerySuggestionsRequest = function (input, context) {
|
|
5259
6644
|
return __assign(__assign(__assign({}, (input.IndexId !== undefined && input.IndexId !== null && { IndexId: input.IndexId })), (input.MaxSuggestionsCount !== undefined &&
|
|
5260
6645
|
input.MaxSuggestionsCount !== null && { MaxSuggestionsCount: input.MaxSuggestionsCount })), (input.QueryText !== undefined && input.QueryText !== null && { QueryText: input.QueryText }));
|
|
5261
6646
|
};
|
|
6647
|
+
var serializeAws_json1_1GetSnapshotsRequest = function (input, context) {
|
|
6648
|
+
return __assign(__assign(__assign(__assign(__assign({}, (input.IndexId !== undefined && input.IndexId !== null && { IndexId: input.IndexId })), (input.Interval !== undefined && input.Interval !== null && { Interval: input.Interval })), (input.MaxResults !== undefined && input.MaxResults !== null && { MaxResults: input.MaxResults })), (input.MetricType !== undefined && input.MetricType !== null && { MetricType: input.MetricType })), (input.NextToken !== undefined && input.NextToken !== null && { NextToken: input.NextToken }));
|
|
6649
|
+
};
|
|
5262
6650
|
var serializeAws_json1_1GoogleDriveConfiguration = function (input, context) {
|
|
5263
6651
|
return __assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.ExcludeMimeTypes !== undefined &&
|
|
5264
6652
|
input.ExcludeMimeTypes !== null && {
|
|
@@ -5314,6 +6702,30 @@ var serializeAws_json1_1HierarchicalPrincipalList = function (input, context) {
|
|
|
5314
6702
|
return serializeAws_json1_1HierarchicalPrincipal(entry, context);
|
|
5315
6703
|
});
|
|
5316
6704
|
};
|
|
6705
|
+
var serializeAws_json1_1HookConfiguration = function (input, context) {
|
|
6706
|
+
return __assign(__assign(__assign({}, (input.InvocationCondition !== undefined &&
|
|
6707
|
+
input.InvocationCondition !== null && {
|
|
6708
|
+
InvocationCondition: serializeAws_json1_1DocumentAttributeCondition(input.InvocationCondition, context),
|
|
6709
|
+
})), (input.LambdaArn !== undefined && input.LambdaArn !== null && { LambdaArn: input.LambdaArn })), (input.S3Bucket !== undefined && input.S3Bucket !== null && { S3Bucket: input.S3Bucket }));
|
|
6710
|
+
};
|
|
6711
|
+
var serializeAws_json1_1InlineCustomDocumentEnrichmentConfiguration = function (input, context) {
|
|
6712
|
+
return __assign(__assign(__assign({}, (input.Condition !== undefined &&
|
|
6713
|
+
input.Condition !== null && {
|
|
6714
|
+
Condition: serializeAws_json1_1DocumentAttributeCondition(input.Condition, context),
|
|
6715
|
+
})), (input.DocumentContentDeletion !== undefined &&
|
|
6716
|
+
input.DocumentContentDeletion !== null && { DocumentContentDeletion: input.DocumentContentDeletion })), (input.Target !== undefined &&
|
|
6717
|
+
input.Target !== null && { Target: serializeAws_json1_1DocumentAttributeTarget(input.Target, context) }));
|
|
6718
|
+
};
|
|
6719
|
+
var serializeAws_json1_1InlineCustomDocumentEnrichmentConfigurationList = function (input, context) {
|
|
6720
|
+
return input
|
|
6721
|
+
.filter(function (e) { return e != null; })
|
|
6722
|
+
.map(function (entry) {
|
|
6723
|
+
if (entry === null) {
|
|
6724
|
+
return null;
|
|
6725
|
+
}
|
|
6726
|
+
return serializeAws_json1_1InlineCustomDocumentEnrichmentConfiguration(entry, context);
|
|
6727
|
+
});
|
|
6728
|
+
};
|
|
5317
6729
|
var serializeAws_json1_1JsonTokenTypeConfiguration = function (input, context) {
|
|
5318
6730
|
return __assign(__assign({}, (input.GroupAttributeField !== undefined &&
|
|
5319
6731
|
input.GroupAttributeField !== null && { GroupAttributeField: input.GroupAttributeField })), (input.UserNameAttributeField !== undefined &&
|
|
@@ -5334,6 +6746,15 @@ var serializeAws_json1_1ListDataSourceSyncJobsRequest = function (input, context
|
|
|
5334
6746
|
StartTimeFilter: serializeAws_json1_1TimeRange(input.StartTimeFilter, context),
|
|
5335
6747
|
})), (input.StatusFilter !== undefined && input.StatusFilter !== null && { StatusFilter: input.StatusFilter }));
|
|
5336
6748
|
};
|
|
6749
|
+
var serializeAws_json1_1ListEntityPersonasRequest = function (input, context) {
|
|
6750
|
+
return __assign(__assign(__assign(__assign({}, (input.Id !== undefined && input.Id !== null && { Id: input.Id })), (input.IndexId !== undefined && input.IndexId !== null && { IndexId: input.IndexId })), (input.MaxResults !== undefined && input.MaxResults !== null && { MaxResults: input.MaxResults })), (input.NextToken !== undefined && input.NextToken !== null && { NextToken: input.NextToken }));
|
|
6751
|
+
};
|
|
6752
|
+
var serializeAws_json1_1ListExperienceEntitiesRequest = function (input, context) {
|
|
6753
|
+
return __assign(__assign(__assign({}, (input.Id !== undefined && input.Id !== null && { Id: input.Id })), (input.IndexId !== undefined && input.IndexId !== null && { IndexId: input.IndexId })), (input.NextToken !== undefined && input.NextToken !== null && { NextToken: input.NextToken }));
|
|
6754
|
+
};
|
|
6755
|
+
var serializeAws_json1_1ListExperiencesRequest = function (input, context) {
|
|
6756
|
+
return __assign(__assign(__assign({}, (input.IndexId !== undefined && input.IndexId !== null && { IndexId: input.IndexId })), (input.MaxResults !== undefined && input.MaxResults !== null && { MaxResults: input.MaxResults })), (input.NextToken !== undefined && input.NextToken !== null && { NextToken: input.NextToken }));
|
|
6757
|
+
};
|
|
5337
6758
|
var serializeAws_json1_1ListFaqsRequest = function (input, context) {
|
|
5338
6759
|
return __assign(__assign(__assign({}, (input.IndexId !== undefined && input.IndexId !== null && { IndexId: input.IndexId })), (input.MaxResults !== undefined && input.MaxResults !== null && { MaxResults: input.MaxResults })), (input.NextToken !== undefined && input.NextToken !== null && { NextToken: input.NextToken }));
|
|
5339
6760
|
};
|
|
@@ -5798,11 +7219,20 @@ var serializeAws_json1_1UntagResourceRequest = function (input, context) {
|
|
|
5798
7219
|
input.TagKeys !== null && { TagKeys: serializeAws_json1_1TagKeyList(input.TagKeys, context) }));
|
|
5799
7220
|
};
|
|
5800
7221
|
var serializeAws_json1_1UpdateDataSourceRequest = function (input, context) {
|
|
5801
|
-
return __assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.Configuration !== undefined &&
|
|
7222
|
+
return __assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.Configuration !== undefined &&
|
|
5802
7223
|
input.Configuration !== null && {
|
|
5803
7224
|
Configuration: serializeAws_json1_1DataSourceConfiguration(input.Configuration, context),
|
|
7225
|
+
})), (input.CustomDocumentEnrichmentConfiguration !== undefined &&
|
|
7226
|
+
input.CustomDocumentEnrichmentConfiguration !== null && {
|
|
7227
|
+
CustomDocumentEnrichmentConfiguration: serializeAws_json1_1CustomDocumentEnrichmentConfiguration(input.CustomDocumentEnrichmentConfiguration, context),
|
|
5804
7228
|
})), (input.Description !== undefined && input.Description !== null && { Description: input.Description })), (input.Id !== undefined && input.Id !== null && { Id: input.Id })), (input.IndexId !== undefined && input.IndexId !== null && { IndexId: input.IndexId })), (input.LanguageCode !== undefined && input.LanguageCode !== null && { LanguageCode: input.LanguageCode })), (input.Name !== undefined && input.Name !== null && { Name: input.Name })), (input.RoleArn !== undefined && input.RoleArn !== null && { RoleArn: input.RoleArn })), (input.Schedule !== undefined && input.Schedule !== null && { Schedule: input.Schedule }));
|
|
5805
7229
|
};
|
|
7230
|
+
var serializeAws_json1_1UpdateExperienceRequest = function (input, context) {
|
|
7231
|
+
return __assign(__assign(__assign(__assign(__assign(__assign({}, (input.Configuration !== undefined &&
|
|
7232
|
+
input.Configuration !== null && {
|
|
7233
|
+
Configuration: serializeAws_json1_1ExperienceConfiguration(input.Configuration, context),
|
|
7234
|
+
})), (input.Description !== undefined && input.Description !== null && { Description: input.Description })), (input.Id !== undefined && input.Id !== null && { Id: input.Id })), (input.IndexId !== undefined && input.IndexId !== null && { IndexId: input.IndexId })), (input.Name !== undefined && input.Name !== null && { Name: input.Name })), (input.RoleArn !== undefined && input.RoleArn !== null && { RoleArn: input.RoleArn }));
|
|
7235
|
+
};
|
|
5806
7236
|
var serializeAws_json1_1UpdateIndexRequest = function (input, context) {
|
|
5807
7237
|
return __assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.CapacityUnits !== undefined &&
|
|
5808
7238
|
input.CapacityUnits !== null && {
|
|
@@ -5860,6 +7290,10 @@ var serializeAws_json1_1UserGroupResolutionConfiguration = function (input, cont
|
|
|
5860
7290
|
return __assign({}, (input.UserGroupResolutionMode !== undefined &&
|
|
5861
7291
|
input.UserGroupResolutionMode !== null && { UserGroupResolutionMode: input.UserGroupResolutionMode }));
|
|
5862
7292
|
};
|
|
7293
|
+
var serializeAws_json1_1UserIdentityConfiguration = function (input, context) {
|
|
7294
|
+
return __assign({}, (input.IdentityAttributeName !== undefined &&
|
|
7295
|
+
input.IdentityAttributeName !== null && { IdentityAttributeName: input.IdentityAttributeName }));
|
|
7296
|
+
};
|
|
5863
7297
|
var serializeAws_json1_1UserTokenConfiguration = function (input, context) {
|
|
5864
7298
|
return __assign(__assign({}, (input.JsonTokenTypeConfiguration !== undefined &&
|
|
5865
7299
|
input.JsonTokenTypeConfiguration !== null && {
|
|
@@ -5943,23 +7377,47 @@ var deserializeAws_json1_1AdditionalResultAttribute = function (output, context)
|
|
|
5943
7377
|
Value: output.Value !== undefined && output.Value !== null
|
|
5944
7378
|
? deserializeAws_json1_1AdditionalResultAttributeValue(output.Value, context)
|
|
5945
7379
|
: undefined,
|
|
5946
|
-
ValueType: __expectString(output.ValueType),
|
|
7380
|
+
ValueType: __expectString(output.ValueType),
|
|
7381
|
+
};
|
|
7382
|
+
};
|
|
7383
|
+
var deserializeAws_json1_1AdditionalResultAttributeList = function (output, context) {
|
|
7384
|
+
return (output || [])
|
|
7385
|
+
.filter(function (e) { return e != null; })
|
|
7386
|
+
.map(function (entry) {
|
|
7387
|
+
if (entry === null) {
|
|
7388
|
+
return null;
|
|
7389
|
+
}
|
|
7390
|
+
return deserializeAws_json1_1AdditionalResultAttribute(entry, context);
|
|
7391
|
+
});
|
|
7392
|
+
};
|
|
7393
|
+
var deserializeAws_json1_1AdditionalResultAttributeValue = function (output, context) {
|
|
7394
|
+
return {
|
|
7395
|
+
TextWithHighlightsValue: output.TextWithHighlightsValue !== undefined && output.TextWithHighlightsValue !== null
|
|
7396
|
+
? deserializeAws_json1_1TextWithHighlights(output.TextWithHighlightsValue, context)
|
|
7397
|
+
: undefined,
|
|
5947
7398
|
};
|
|
5948
7399
|
};
|
|
5949
|
-
var
|
|
7400
|
+
var deserializeAws_json1_1AssociateEntitiesToExperienceFailedEntityList = function (output, context) {
|
|
5950
7401
|
return (output || [])
|
|
5951
7402
|
.filter(function (e) { return e != null; })
|
|
5952
7403
|
.map(function (entry) {
|
|
5953
7404
|
if (entry === null) {
|
|
5954
7405
|
return null;
|
|
5955
7406
|
}
|
|
5956
|
-
return
|
|
7407
|
+
return deserializeAws_json1_1FailedEntity(entry, context);
|
|
5957
7408
|
});
|
|
5958
7409
|
};
|
|
5959
|
-
var
|
|
7410
|
+
var deserializeAws_json1_1AssociateEntitiesToExperienceResponse = function (output, context) {
|
|
5960
7411
|
return {
|
|
5961
|
-
|
|
5962
|
-
?
|
|
7412
|
+
FailedEntityList: output.FailedEntityList !== undefined && output.FailedEntityList !== null
|
|
7413
|
+
? deserializeAws_json1_1AssociateEntitiesToExperienceFailedEntityList(output.FailedEntityList, context)
|
|
7414
|
+
: undefined,
|
|
7415
|
+
};
|
|
7416
|
+
};
|
|
7417
|
+
var deserializeAws_json1_1AssociatePersonasToEntitiesResponse = function (output, context) {
|
|
7418
|
+
return {
|
|
7419
|
+
FailedEntityList: output.FailedEntityList !== undefined && output.FailedEntityList !== null
|
|
7420
|
+
? deserializeAws_json1_1FailedEntityList(output.FailedEntityList, context)
|
|
5963
7421
|
: undefined,
|
|
5964
7422
|
};
|
|
5965
7423
|
};
|
|
@@ -6248,11 +7706,27 @@ var deserializeAws_json1_1ConnectionConfiguration = function (output, context) {
|
|
|
6248
7706
|
TableName: __expectString(output.TableName),
|
|
6249
7707
|
};
|
|
6250
7708
|
};
|
|
7709
|
+
var deserializeAws_json1_1ContentSourceConfiguration = function (output, context) {
|
|
7710
|
+
return {
|
|
7711
|
+
DataSourceIds: output.DataSourceIds !== undefined && output.DataSourceIds !== null
|
|
7712
|
+
? deserializeAws_json1_1DataSourceIdList(output.DataSourceIds, context)
|
|
7713
|
+
: undefined,
|
|
7714
|
+
DirectPutContent: __expectBoolean(output.DirectPutContent),
|
|
7715
|
+
FaqIds: output.FaqIds !== undefined && output.FaqIds !== null
|
|
7716
|
+
? deserializeAws_json1_1FaqIdsList(output.FaqIds, context)
|
|
7717
|
+
: undefined,
|
|
7718
|
+
};
|
|
7719
|
+
};
|
|
6251
7720
|
var deserializeAws_json1_1CreateDataSourceResponse = function (output, context) {
|
|
6252
7721
|
return {
|
|
6253
7722
|
Id: __expectString(output.Id),
|
|
6254
7723
|
};
|
|
6255
7724
|
};
|
|
7725
|
+
var deserializeAws_json1_1CreateExperienceResponse = function (output, context) {
|
|
7726
|
+
return {
|
|
7727
|
+
Id: __expectString(output.Id),
|
|
7728
|
+
};
|
|
7729
|
+
};
|
|
6256
7730
|
var deserializeAws_json1_1CreateFaqResponse = function (output, context) {
|
|
6257
7731
|
return {
|
|
6258
7732
|
Id: __expectString(output.Id),
|
|
@@ -6273,6 +7747,20 @@ var deserializeAws_json1_1CreateThesaurusResponse = function (output, context) {
|
|
|
6273
7747
|
Id: __expectString(output.Id),
|
|
6274
7748
|
};
|
|
6275
7749
|
};
|
|
7750
|
+
var deserializeAws_json1_1CustomDocumentEnrichmentConfiguration = function (output, context) {
|
|
7751
|
+
return {
|
|
7752
|
+
InlineConfigurations: output.InlineConfigurations !== undefined && output.InlineConfigurations !== null
|
|
7753
|
+
? deserializeAws_json1_1InlineCustomDocumentEnrichmentConfigurationList(output.InlineConfigurations, context)
|
|
7754
|
+
: undefined,
|
|
7755
|
+
PostExtractionHookConfiguration: output.PostExtractionHookConfiguration !== undefined && output.PostExtractionHookConfiguration !== null
|
|
7756
|
+
? deserializeAws_json1_1HookConfiguration(output.PostExtractionHookConfiguration, context)
|
|
7757
|
+
: undefined,
|
|
7758
|
+
PreExtractionHookConfiguration: output.PreExtractionHookConfiguration !== undefined && output.PreExtractionHookConfiguration !== null
|
|
7759
|
+
? deserializeAws_json1_1HookConfiguration(output.PreExtractionHookConfiguration, context)
|
|
7760
|
+
: undefined,
|
|
7761
|
+
RoleArn: __expectString(output.RoleArn),
|
|
7762
|
+
};
|
|
7763
|
+
};
|
|
6276
7764
|
var deserializeAws_json1_1DatabaseConfiguration = function (output, context) {
|
|
6277
7765
|
return {
|
|
6278
7766
|
AclConfiguration: output.AclConfiguration !== undefined && output.AclConfiguration !== null
|
|
@@ -6327,6 +7815,16 @@ var deserializeAws_json1_1DataSourceConfiguration = function (output, context) {
|
|
|
6327
7815
|
: undefined,
|
|
6328
7816
|
};
|
|
6329
7817
|
};
|
|
7818
|
+
var deserializeAws_json1_1DataSourceIdList = function (output, context) {
|
|
7819
|
+
return (output || [])
|
|
7820
|
+
.filter(function (e) { return e != null; })
|
|
7821
|
+
.map(function (entry) {
|
|
7822
|
+
if (entry === null) {
|
|
7823
|
+
return null;
|
|
7824
|
+
}
|
|
7825
|
+
return __expectString(entry);
|
|
7826
|
+
});
|
|
7827
|
+
};
|
|
6330
7828
|
var deserializeAws_json1_1DataSourceInclusionsExclusionsStrings = function (output, context) {
|
|
6331
7829
|
return (output || [])
|
|
6332
7830
|
.filter(function (e) { return e != null; })
|
|
@@ -6426,6 +7924,9 @@ var deserializeAws_json1_1DataSourceVpcConfiguration = function (output, context
|
|
|
6426
7924
|
: undefined,
|
|
6427
7925
|
};
|
|
6428
7926
|
};
|
|
7927
|
+
var deserializeAws_json1_1DeleteExperienceResponse = function (output, context) {
|
|
7928
|
+
return {};
|
|
7929
|
+
};
|
|
6429
7930
|
var deserializeAws_json1_1DescribeDataSourceResponse = function (output, context) {
|
|
6430
7931
|
return {
|
|
6431
7932
|
Configuration: output.Configuration !== undefined && output.Configuration !== null
|
|
@@ -6434,6 +7935,10 @@ var deserializeAws_json1_1DescribeDataSourceResponse = function (output, context
|
|
|
6434
7935
|
CreatedAt: output.CreatedAt !== undefined && output.CreatedAt !== null
|
|
6435
7936
|
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.CreatedAt)))
|
|
6436
7937
|
: undefined,
|
|
7938
|
+
CustomDocumentEnrichmentConfiguration: output.CustomDocumentEnrichmentConfiguration !== undefined &&
|
|
7939
|
+
output.CustomDocumentEnrichmentConfiguration !== null
|
|
7940
|
+
? deserializeAws_json1_1CustomDocumentEnrichmentConfiguration(output.CustomDocumentEnrichmentConfiguration, context)
|
|
7941
|
+
: undefined,
|
|
6437
7942
|
Description: __expectString(output.Description),
|
|
6438
7943
|
ErrorMessage: __expectString(output.ErrorMessage),
|
|
6439
7944
|
Id: __expectString(output.Id),
|
|
@@ -6449,6 +7954,29 @@ var deserializeAws_json1_1DescribeDataSourceResponse = function (output, context
|
|
|
6449
7954
|
: undefined,
|
|
6450
7955
|
};
|
|
6451
7956
|
};
|
|
7957
|
+
var deserializeAws_json1_1DescribeExperienceResponse = function (output, context) {
|
|
7958
|
+
return {
|
|
7959
|
+
Configuration: output.Configuration !== undefined && output.Configuration !== null
|
|
7960
|
+
? deserializeAws_json1_1ExperienceConfiguration(output.Configuration, context)
|
|
7961
|
+
: undefined,
|
|
7962
|
+
CreatedAt: output.CreatedAt !== undefined && output.CreatedAt !== null
|
|
7963
|
+
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.CreatedAt)))
|
|
7964
|
+
: undefined,
|
|
7965
|
+
Description: __expectString(output.Description),
|
|
7966
|
+
Endpoints: output.Endpoints !== undefined && output.Endpoints !== null
|
|
7967
|
+
? deserializeAws_json1_1ExperienceEndpoints(output.Endpoints, context)
|
|
7968
|
+
: undefined,
|
|
7969
|
+
ErrorMessage: __expectString(output.ErrorMessage),
|
|
7970
|
+
Id: __expectString(output.Id),
|
|
7971
|
+
IndexId: __expectString(output.IndexId),
|
|
7972
|
+
Name: __expectString(output.Name),
|
|
7973
|
+
RoleArn: __expectString(output.RoleArn),
|
|
7974
|
+
Status: __expectString(output.Status),
|
|
7975
|
+
UpdatedAt: output.UpdatedAt !== undefined && output.UpdatedAt !== null
|
|
7976
|
+
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.UpdatedAt)))
|
|
7977
|
+
: undefined,
|
|
7978
|
+
};
|
|
7979
|
+
};
|
|
6452
7980
|
var deserializeAws_json1_1DescribeFaqResponse = function (output, context) {
|
|
6453
7981
|
return {
|
|
6454
7982
|
CreatedAt: output.CreatedAt !== undefined && output.CreatedAt !== null
|
|
@@ -6579,12 +8107,35 @@ var deserializeAws_json1_1DescribeThesaurusResponse = function (output, context)
|
|
|
6579
8107
|
: undefined,
|
|
6580
8108
|
};
|
|
6581
8109
|
};
|
|
8110
|
+
var deserializeAws_json1_1DisassociateEntitiesFromExperienceResponse = function (output, context) {
|
|
8111
|
+
return {
|
|
8112
|
+
FailedEntityList: output.FailedEntityList !== undefined && output.FailedEntityList !== null
|
|
8113
|
+
? deserializeAws_json1_1FailedEntityList(output.FailedEntityList, context)
|
|
8114
|
+
: undefined,
|
|
8115
|
+
};
|
|
8116
|
+
};
|
|
8117
|
+
var deserializeAws_json1_1DisassociatePersonasFromEntitiesResponse = function (output, context) {
|
|
8118
|
+
return {
|
|
8119
|
+
FailedEntityList: output.FailedEntityList !== undefined && output.FailedEntityList !== null
|
|
8120
|
+
? deserializeAws_json1_1FailedEntityList(output.FailedEntityList, context)
|
|
8121
|
+
: undefined,
|
|
8122
|
+
};
|
|
8123
|
+
};
|
|
6582
8124
|
var deserializeAws_json1_1DocumentAttribute = function (output, context) {
|
|
6583
8125
|
return {
|
|
6584
8126
|
Key: __expectString(output.Key),
|
|
6585
8127
|
Value: output.Value !== undefined && output.Value !== null
|
|
6586
|
-
? deserializeAws_json1_1DocumentAttributeValue(
|
|
8128
|
+
? deserializeAws_json1_1DocumentAttributeValue(output.Value, context)
|
|
8129
|
+
: undefined,
|
|
8130
|
+
};
|
|
8131
|
+
};
|
|
8132
|
+
var deserializeAws_json1_1DocumentAttributeCondition = function (output, context) {
|
|
8133
|
+
return {
|
|
8134
|
+
ConditionDocumentAttributeKey: __expectString(output.ConditionDocumentAttributeKey),
|
|
8135
|
+
ConditionOnValue: output.ConditionOnValue !== undefined && output.ConditionOnValue !== null
|
|
8136
|
+
? deserializeAws_json1_1DocumentAttributeValue(output.ConditionOnValue, context)
|
|
6587
8137
|
: undefined,
|
|
8138
|
+
Operator: __expectString(output.Operator),
|
|
6588
8139
|
};
|
|
6589
8140
|
};
|
|
6590
8141
|
var deserializeAws_json1_1DocumentAttributeList = function (output, context) {
|
|
@@ -6607,30 +8158,32 @@ var deserializeAws_json1_1DocumentAttributeStringListValue = function (output, c
|
|
|
6607
8158
|
return __expectString(entry);
|
|
6608
8159
|
});
|
|
6609
8160
|
};
|
|
8161
|
+
var deserializeAws_json1_1DocumentAttributeTarget = function (output, context) {
|
|
8162
|
+
return {
|
|
8163
|
+
TargetDocumentAttributeKey: __expectString(output.TargetDocumentAttributeKey),
|
|
8164
|
+
TargetDocumentAttributeValue: output.TargetDocumentAttributeValue !== undefined && output.TargetDocumentAttributeValue !== null
|
|
8165
|
+
? deserializeAws_json1_1DocumentAttributeValue(output.TargetDocumentAttributeValue, context)
|
|
8166
|
+
: undefined,
|
|
8167
|
+
TargetDocumentAttributeValueDeletion: __expectBoolean(output.TargetDocumentAttributeValueDeletion),
|
|
8168
|
+
};
|
|
8169
|
+
};
|
|
6610
8170
|
var deserializeAws_json1_1DocumentAttributeValue = function (output, context) {
|
|
6611
|
-
|
|
6612
|
-
|
|
6613
|
-
|
|
6614
|
-
|
|
6615
|
-
|
|
6616
|
-
|
|
6617
|
-
|
|
6618
|
-
|
|
6619
|
-
|
|
6620
|
-
|
|
6621
|
-
StringListValue: deserializeAws_json1_1DocumentAttributeStringListValue(output.StringListValue, context),
|
|
6622
|
-
};
|
|
6623
|
-
}
|
|
6624
|
-
if (__expectString(output.StringValue) !== undefined) {
|
|
6625
|
-
return { StringValue: __expectString(output.StringValue) };
|
|
6626
|
-
}
|
|
6627
|
-
return { $unknown: Object.entries(output)[0] };
|
|
8171
|
+
return {
|
|
8172
|
+
DateValue: output.DateValue !== undefined && output.DateValue !== null
|
|
8173
|
+
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.DateValue)))
|
|
8174
|
+
: undefined,
|
|
8175
|
+
LongValue: __expectLong(output.LongValue),
|
|
8176
|
+
StringListValue: output.StringListValue !== undefined && output.StringListValue !== null
|
|
8177
|
+
? deserializeAws_json1_1DocumentAttributeStringListValue(output.StringListValue, context)
|
|
8178
|
+
: undefined,
|
|
8179
|
+
StringValue: __expectString(output.StringValue),
|
|
8180
|
+
};
|
|
6628
8181
|
};
|
|
6629
8182
|
var deserializeAws_json1_1DocumentAttributeValueCountPair = function (output, context) {
|
|
6630
8183
|
return {
|
|
6631
8184
|
Count: __expectInt32(output.Count),
|
|
6632
8185
|
DocumentAttributeValue: output.DocumentAttributeValue !== undefined && output.DocumentAttributeValue !== null
|
|
6633
|
-
? deserializeAws_json1_1DocumentAttributeValue(
|
|
8186
|
+
? deserializeAws_json1_1DocumentAttributeValue(output.DocumentAttributeValue, context)
|
|
6634
8187
|
: undefined,
|
|
6635
8188
|
};
|
|
6636
8189
|
};
|
|
@@ -6681,6 +8234,15 @@ var deserializeAws_json1_1DocumentStatusList = function (output, context) {
|
|
|
6681
8234
|
return deserializeAws_json1_1Status(entry, context);
|
|
6682
8235
|
});
|
|
6683
8236
|
};
|
|
8237
|
+
var deserializeAws_json1_1EntityDisplayData = function (output, context) {
|
|
8238
|
+
return {
|
|
8239
|
+
FirstName: __expectString(output.FirstName),
|
|
8240
|
+
GroupName: __expectString(output.GroupName),
|
|
8241
|
+
IdentifiedUserName: __expectString(output.IdentifiedUserName),
|
|
8242
|
+
LastName: __expectString(output.LastName),
|
|
8243
|
+
UserName: __expectString(output.UserName),
|
|
8244
|
+
};
|
|
8245
|
+
};
|
|
6684
8246
|
var deserializeAws_json1_1ExcludeMimeTypesList = function (output, context) {
|
|
6685
8247
|
return (output || [])
|
|
6686
8248
|
.filter(function (e) { return e != null; })
|
|
@@ -6711,6 +8273,74 @@ var deserializeAws_json1_1ExcludeUserAccountsList = function (output, context) {
|
|
|
6711
8273
|
return __expectString(entry);
|
|
6712
8274
|
});
|
|
6713
8275
|
};
|
|
8276
|
+
var deserializeAws_json1_1ExperienceConfiguration = function (output, context) {
|
|
8277
|
+
return {
|
|
8278
|
+
ContentSourceConfiguration: output.ContentSourceConfiguration !== undefined && output.ContentSourceConfiguration !== null
|
|
8279
|
+
? deserializeAws_json1_1ContentSourceConfiguration(output.ContentSourceConfiguration, context)
|
|
8280
|
+
: undefined,
|
|
8281
|
+
UserIdentityConfiguration: output.UserIdentityConfiguration !== undefined && output.UserIdentityConfiguration !== null
|
|
8282
|
+
? deserializeAws_json1_1UserIdentityConfiguration(output.UserIdentityConfiguration, context)
|
|
8283
|
+
: undefined,
|
|
8284
|
+
};
|
|
8285
|
+
};
|
|
8286
|
+
var deserializeAws_json1_1ExperienceEndpoint = function (output, context) {
|
|
8287
|
+
return {
|
|
8288
|
+
Endpoint: __expectString(output.Endpoint),
|
|
8289
|
+
EndpointType: __expectString(output.EndpointType),
|
|
8290
|
+
};
|
|
8291
|
+
};
|
|
8292
|
+
var deserializeAws_json1_1ExperienceEndpoints = function (output, context) {
|
|
8293
|
+
return (output || [])
|
|
8294
|
+
.filter(function (e) { return e != null; })
|
|
8295
|
+
.map(function (entry) {
|
|
8296
|
+
if (entry === null) {
|
|
8297
|
+
return null;
|
|
8298
|
+
}
|
|
8299
|
+
return deserializeAws_json1_1ExperienceEndpoint(entry, context);
|
|
8300
|
+
});
|
|
8301
|
+
};
|
|
8302
|
+
var deserializeAws_json1_1ExperienceEntitiesSummary = function (output, context) {
|
|
8303
|
+
return {
|
|
8304
|
+
DisplayData: output.DisplayData !== undefined && output.DisplayData !== null
|
|
8305
|
+
? deserializeAws_json1_1EntityDisplayData(output.DisplayData, context)
|
|
8306
|
+
: undefined,
|
|
8307
|
+
EntityId: __expectString(output.EntityId),
|
|
8308
|
+
EntityType: __expectString(output.EntityType),
|
|
8309
|
+
};
|
|
8310
|
+
};
|
|
8311
|
+
var deserializeAws_json1_1ExperienceEntitiesSummaryList = function (output, context) {
|
|
8312
|
+
return (output || [])
|
|
8313
|
+
.filter(function (e) { return e != null; })
|
|
8314
|
+
.map(function (entry) {
|
|
8315
|
+
if (entry === null) {
|
|
8316
|
+
return null;
|
|
8317
|
+
}
|
|
8318
|
+
return deserializeAws_json1_1ExperienceEntitiesSummary(entry, context);
|
|
8319
|
+
});
|
|
8320
|
+
};
|
|
8321
|
+
var deserializeAws_json1_1ExperiencesSummary = function (output, context) {
|
|
8322
|
+
return {
|
|
8323
|
+
CreatedAt: output.CreatedAt !== undefined && output.CreatedAt !== null
|
|
8324
|
+
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.CreatedAt)))
|
|
8325
|
+
: undefined,
|
|
8326
|
+
Endpoints: output.Endpoints !== undefined && output.Endpoints !== null
|
|
8327
|
+
? deserializeAws_json1_1ExperienceEndpoints(output.Endpoints, context)
|
|
8328
|
+
: undefined,
|
|
8329
|
+
Id: __expectString(output.Id),
|
|
8330
|
+
Name: __expectString(output.Name),
|
|
8331
|
+
Status: __expectString(output.Status),
|
|
8332
|
+
};
|
|
8333
|
+
};
|
|
8334
|
+
var deserializeAws_json1_1ExperiencesSummaryList = function (output, context) {
|
|
8335
|
+
return (output || [])
|
|
8336
|
+
.filter(function (e) { return e != null; })
|
|
8337
|
+
.map(function (entry) {
|
|
8338
|
+
if (entry === null) {
|
|
8339
|
+
return null;
|
|
8340
|
+
}
|
|
8341
|
+
return deserializeAws_json1_1ExperiencesSummary(entry, context);
|
|
8342
|
+
});
|
|
8343
|
+
};
|
|
6714
8344
|
var deserializeAws_json1_1FacetResult = function (output, context) {
|
|
6715
8345
|
return {
|
|
6716
8346
|
DocumentAttributeKey: __expectString(output.DocumentAttributeKey),
|
|
@@ -6730,6 +8360,32 @@ var deserializeAws_json1_1FacetResultList = function (output, context) {
|
|
|
6730
8360
|
return deserializeAws_json1_1FacetResult(entry, context);
|
|
6731
8361
|
});
|
|
6732
8362
|
};
|
|
8363
|
+
var deserializeAws_json1_1FailedEntity = function (output, context) {
|
|
8364
|
+
return {
|
|
8365
|
+
EntityId: __expectString(output.EntityId),
|
|
8366
|
+
ErrorMessage: __expectString(output.ErrorMessage),
|
|
8367
|
+
};
|
|
8368
|
+
};
|
|
8369
|
+
var deserializeAws_json1_1FailedEntityList = function (output, context) {
|
|
8370
|
+
return (output || [])
|
|
8371
|
+
.filter(function (e) { return e != null; })
|
|
8372
|
+
.map(function (entry) {
|
|
8373
|
+
if (entry === null) {
|
|
8374
|
+
return null;
|
|
8375
|
+
}
|
|
8376
|
+
return deserializeAws_json1_1FailedEntity(entry, context);
|
|
8377
|
+
});
|
|
8378
|
+
};
|
|
8379
|
+
var deserializeAws_json1_1FaqIdsList = function (output, context) {
|
|
8380
|
+
return (output || [])
|
|
8381
|
+
.filter(function (e) { return e != null; })
|
|
8382
|
+
.map(function (entry) {
|
|
8383
|
+
if (entry === null) {
|
|
8384
|
+
return null;
|
|
8385
|
+
}
|
|
8386
|
+
return __expectString(entry);
|
|
8387
|
+
});
|
|
8388
|
+
};
|
|
6733
8389
|
var deserializeAws_json1_1FaqStatistics = function (output, context) {
|
|
6734
8390
|
return {
|
|
6735
8391
|
IndexedQuestionAnswersCount: __expectInt32(output.IndexedQuestionAnswersCount),
|
|
@@ -6768,6 +8424,20 @@ var deserializeAws_json1_1GetQuerySuggestionsResponse = function (output, contex
|
|
|
6768
8424
|
: undefined,
|
|
6769
8425
|
};
|
|
6770
8426
|
};
|
|
8427
|
+
var deserializeAws_json1_1GetSnapshotsResponse = function (output, context) {
|
|
8428
|
+
return {
|
|
8429
|
+
NextToken: __expectString(output.NextToken),
|
|
8430
|
+
SnapShotTimeFilter: output.SnapShotTimeFilter !== undefined && output.SnapShotTimeFilter !== null
|
|
8431
|
+
? deserializeAws_json1_1TimeRange(output.SnapShotTimeFilter, context)
|
|
8432
|
+
: undefined,
|
|
8433
|
+
SnapshotsData: output.SnapshotsData !== undefined && output.SnapshotsData !== null
|
|
8434
|
+
? deserializeAws_json1_1SnapshotsDataRecords(output.SnapshotsData, context)
|
|
8435
|
+
: undefined,
|
|
8436
|
+
SnapshotsDataHeader: output.SnapshotsDataHeader !== undefined && output.SnapshotsDataHeader !== null
|
|
8437
|
+
? deserializeAws_json1_1SnapshotsDataHeaderFields(output.SnapshotsDataHeader, context)
|
|
8438
|
+
: undefined,
|
|
8439
|
+
};
|
|
8440
|
+
};
|
|
6771
8441
|
var deserializeAws_json1_1GoogleDriveConfiguration = function (output, context) {
|
|
6772
8442
|
return {
|
|
6773
8443
|
ExcludeMimeTypes: output.ExcludeMimeTypes !== undefined && output.ExcludeMimeTypes !== null
|
|
@@ -6838,6 +8508,15 @@ var deserializeAws_json1_1HighlightList = function (output, context) {
|
|
|
6838
8508
|
return deserializeAws_json1_1Highlight(entry, context);
|
|
6839
8509
|
});
|
|
6840
8510
|
};
|
|
8511
|
+
var deserializeAws_json1_1HookConfiguration = function (output, context) {
|
|
8512
|
+
return {
|
|
8513
|
+
InvocationCondition: output.InvocationCondition !== undefined && output.InvocationCondition !== null
|
|
8514
|
+
? deserializeAws_json1_1DocumentAttributeCondition(output.InvocationCondition, context)
|
|
8515
|
+
: undefined,
|
|
8516
|
+
LambdaArn: __expectString(output.LambdaArn),
|
|
8517
|
+
S3Bucket: __expectString(output.S3Bucket),
|
|
8518
|
+
};
|
|
8519
|
+
};
|
|
6841
8520
|
var deserializeAws_json1_1IndexConfigurationSummary = function (output, context) {
|
|
6842
8521
|
return {
|
|
6843
8522
|
CreatedAt: output.CreatedAt !== undefined && output.CreatedAt !== null
|
|
@@ -6872,11 +8551,37 @@ var deserializeAws_json1_1IndexStatistics = function (output, context) {
|
|
|
6872
8551
|
: undefined,
|
|
6873
8552
|
};
|
|
6874
8553
|
};
|
|
8554
|
+
var deserializeAws_json1_1InlineCustomDocumentEnrichmentConfiguration = function (output, context) {
|
|
8555
|
+
return {
|
|
8556
|
+
Condition: output.Condition !== undefined && output.Condition !== null
|
|
8557
|
+
? deserializeAws_json1_1DocumentAttributeCondition(output.Condition, context)
|
|
8558
|
+
: undefined,
|
|
8559
|
+
DocumentContentDeletion: __expectBoolean(output.DocumentContentDeletion),
|
|
8560
|
+
Target: output.Target !== undefined && output.Target !== null
|
|
8561
|
+
? deserializeAws_json1_1DocumentAttributeTarget(output.Target, context)
|
|
8562
|
+
: undefined,
|
|
8563
|
+
};
|
|
8564
|
+
};
|
|
8565
|
+
var deserializeAws_json1_1InlineCustomDocumentEnrichmentConfigurationList = function (output, context) {
|
|
8566
|
+
return (output || [])
|
|
8567
|
+
.filter(function (e) { return e != null; })
|
|
8568
|
+
.map(function (entry) {
|
|
8569
|
+
if (entry === null) {
|
|
8570
|
+
return null;
|
|
8571
|
+
}
|
|
8572
|
+
return deserializeAws_json1_1InlineCustomDocumentEnrichmentConfiguration(entry, context);
|
|
8573
|
+
});
|
|
8574
|
+
};
|
|
6875
8575
|
var deserializeAws_json1_1InternalServerException = function (output, context) {
|
|
6876
8576
|
return {
|
|
6877
8577
|
Message: __expectString(output.Message),
|
|
6878
8578
|
};
|
|
6879
8579
|
};
|
|
8580
|
+
var deserializeAws_json1_1InvalidRequestException = function (output, context) {
|
|
8581
|
+
return {
|
|
8582
|
+
Message: __expectString(output.Message),
|
|
8583
|
+
};
|
|
8584
|
+
};
|
|
6880
8585
|
var deserializeAws_json1_1JsonTokenTypeConfiguration = function (output, context) {
|
|
6881
8586
|
return {
|
|
6882
8587
|
GroupAttributeField: __expectString(output.GroupAttributeField),
|
|
@@ -6910,6 +8615,30 @@ var deserializeAws_json1_1ListDataSourceSyncJobsResponse = function (output, con
|
|
|
6910
8615
|
NextToken: __expectString(output.NextToken),
|
|
6911
8616
|
};
|
|
6912
8617
|
};
|
|
8618
|
+
var deserializeAws_json1_1ListEntityPersonasResponse = function (output, context) {
|
|
8619
|
+
return {
|
|
8620
|
+
NextToken: __expectString(output.NextToken),
|
|
8621
|
+
SummaryItems: output.SummaryItems !== undefined && output.SummaryItems !== null
|
|
8622
|
+
? deserializeAws_json1_1PersonasSummaryList(output.SummaryItems, context)
|
|
8623
|
+
: undefined,
|
|
8624
|
+
};
|
|
8625
|
+
};
|
|
8626
|
+
var deserializeAws_json1_1ListExperienceEntitiesResponse = function (output, context) {
|
|
8627
|
+
return {
|
|
8628
|
+
NextToken: __expectString(output.NextToken),
|
|
8629
|
+
SummaryItems: output.SummaryItems !== undefined && output.SummaryItems !== null
|
|
8630
|
+
? deserializeAws_json1_1ExperienceEntitiesSummaryList(output.SummaryItems, context)
|
|
8631
|
+
: undefined,
|
|
8632
|
+
};
|
|
8633
|
+
};
|
|
8634
|
+
var deserializeAws_json1_1ListExperiencesResponse = function (output, context) {
|
|
8635
|
+
return {
|
|
8636
|
+
NextToken: __expectString(output.NextToken),
|
|
8637
|
+
SummaryItems: output.SummaryItems !== undefined && output.SummaryItems !== null
|
|
8638
|
+
? deserializeAws_json1_1ExperiencesSummaryList(output.SummaryItems, context)
|
|
8639
|
+
: undefined,
|
|
8640
|
+
};
|
|
8641
|
+
};
|
|
6913
8642
|
var deserializeAws_json1_1ListFaqsResponse = function (output, context) {
|
|
6914
8643
|
return {
|
|
6915
8644
|
FaqSummaryItems: output.FaqSummaryItems !== undefined && output.FaqSummaryItems !== null
|
|
@@ -7006,6 +8735,28 @@ var deserializeAws_json1_1OneDriveUsers = function (output, context) {
|
|
|
7006
8735
|
: undefined,
|
|
7007
8736
|
};
|
|
7008
8737
|
};
|
|
8738
|
+
var deserializeAws_json1_1PersonasSummary = function (output, context) {
|
|
8739
|
+
return {
|
|
8740
|
+
CreatedAt: output.CreatedAt !== undefined && output.CreatedAt !== null
|
|
8741
|
+
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.CreatedAt)))
|
|
8742
|
+
: undefined,
|
|
8743
|
+
EntityId: __expectString(output.EntityId),
|
|
8744
|
+
Persona: __expectString(output.Persona),
|
|
8745
|
+
UpdatedAt: output.UpdatedAt !== undefined && output.UpdatedAt !== null
|
|
8746
|
+
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.UpdatedAt)))
|
|
8747
|
+
: undefined,
|
|
8748
|
+
};
|
|
8749
|
+
};
|
|
8750
|
+
var deserializeAws_json1_1PersonasSummaryList = function (output, context) {
|
|
8751
|
+
return (output || [])
|
|
8752
|
+
.filter(function (e) { return e != null; })
|
|
8753
|
+
.map(function (entry) {
|
|
8754
|
+
if (entry === null) {
|
|
8755
|
+
return null;
|
|
8756
|
+
}
|
|
8757
|
+
return deserializeAws_json1_1PersonasSummary(entry, context);
|
|
8758
|
+
});
|
|
8759
|
+
};
|
|
7009
8760
|
var deserializeAws_json1_1ProxyConfiguration = function (output, context) {
|
|
7010
8761
|
return {
|
|
7011
8762
|
Credentials: __expectString(output.Credentials),
|
|
@@ -7423,6 +9174,36 @@ var deserializeAws_json1_1SiteMapsList = function (output, context) {
|
|
|
7423
9174
|
return __expectString(entry);
|
|
7424
9175
|
});
|
|
7425
9176
|
};
|
|
9177
|
+
var deserializeAws_json1_1SnapshotsDataHeaderFields = function (output, context) {
|
|
9178
|
+
return (output || [])
|
|
9179
|
+
.filter(function (e) { return e != null; })
|
|
9180
|
+
.map(function (entry) {
|
|
9181
|
+
if (entry === null) {
|
|
9182
|
+
return null;
|
|
9183
|
+
}
|
|
9184
|
+
return __expectString(entry);
|
|
9185
|
+
});
|
|
9186
|
+
};
|
|
9187
|
+
var deserializeAws_json1_1SnapshotsDataRecord = function (output, context) {
|
|
9188
|
+
return (output || [])
|
|
9189
|
+
.filter(function (e) { return e != null; })
|
|
9190
|
+
.map(function (entry) {
|
|
9191
|
+
if (entry === null) {
|
|
9192
|
+
return null;
|
|
9193
|
+
}
|
|
9194
|
+
return __expectString(entry);
|
|
9195
|
+
});
|
|
9196
|
+
};
|
|
9197
|
+
var deserializeAws_json1_1SnapshotsDataRecords = function (output, context) {
|
|
9198
|
+
return (output || [])
|
|
9199
|
+
.filter(function (e) { return e != null; })
|
|
9200
|
+
.map(function (entry) {
|
|
9201
|
+
if (entry === null) {
|
|
9202
|
+
return null;
|
|
9203
|
+
}
|
|
9204
|
+
return deserializeAws_json1_1SnapshotsDataRecord(entry, context);
|
|
9205
|
+
});
|
|
9206
|
+
};
|
|
7426
9207
|
var deserializeAws_json1_1SqlConfiguration = function (output, context) {
|
|
7427
9208
|
return {
|
|
7428
9209
|
QueryIdentifiersEnclosingOption: __expectString(output.QueryIdentifiersEnclosingOption),
|
|
@@ -7561,6 +9342,16 @@ var deserializeAws_json1_1ThrottlingException = function (output, context) {
|
|
|
7561
9342
|
Message: __expectString(output.Message),
|
|
7562
9343
|
};
|
|
7563
9344
|
};
|
|
9345
|
+
var deserializeAws_json1_1TimeRange = function (output, context) {
|
|
9346
|
+
return {
|
|
9347
|
+
EndTime: output.EndTime !== undefined && output.EndTime !== null
|
|
9348
|
+
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.EndTime)))
|
|
9349
|
+
: undefined,
|
|
9350
|
+
StartTime: output.StartTime !== undefined && output.StartTime !== null
|
|
9351
|
+
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.StartTime)))
|
|
9352
|
+
: undefined,
|
|
9353
|
+
};
|
|
9354
|
+
};
|
|
7564
9355
|
var deserializeAws_json1_1UntagResourceResponse = function (output, context) {
|
|
7565
9356
|
return {};
|
|
7566
9357
|
};
|
|
@@ -7579,6 +9370,11 @@ var deserializeAws_json1_1UserGroupResolutionConfiguration = function (output, c
|
|
|
7579
9370
|
UserGroupResolutionMode: __expectString(output.UserGroupResolutionMode),
|
|
7580
9371
|
};
|
|
7581
9372
|
};
|
|
9373
|
+
var deserializeAws_json1_1UserIdentityConfiguration = function (output, context) {
|
|
9374
|
+
return {
|
|
9375
|
+
IdentityAttributeName: __expectString(output.IdentityAttributeName),
|
|
9376
|
+
};
|
|
9377
|
+
};
|
|
7582
9378
|
var deserializeAws_json1_1UserTokenConfiguration = function (output, context) {
|
|
7583
9379
|
return {
|
|
7584
9380
|
JsonTokenTypeConfiguration: output.JsonTokenTypeConfiguration !== undefined && output.JsonTokenTypeConfiguration !== null
|