@aws-sdk/client-kendra 3.43.0 → 3.44.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +11 -0
- package/README.md +7 -7
- package/dist-cjs/Kendra.js +180 -0
- package/dist-cjs/commands/AssociateEntitiesToExperienceCommand.js +36 -0
- package/dist-cjs/commands/AssociatePersonasToEntitiesCommand.js +36 -0
- package/dist-cjs/commands/CreateExperienceCommand.js +36 -0
- package/dist-cjs/commands/DeleteExperienceCommand.js +36 -0
- package/dist-cjs/commands/DescribeExperienceCommand.js +36 -0
- package/dist-cjs/commands/DisassociateEntitiesFromExperienceCommand.js +36 -0
- package/dist-cjs/commands/DisassociatePersonasFromEntitiesCommand.js +36 -0
- package/dist-cjs/commands/GetSnapshotsCommand.js +36 -0
- package/dist-cjs/commands/ListEntityPersonasCommand.js +36 -0
- package/dist-cjs/commands/ListExperienceEntitiesCommand.js +36 -0
- package/dist-cjs/commands/ListExperiencesCommand.js +36 -0
- package/dist-cjs/commands/UpdateExperienceCommand.js +36 -0
- package/dist-cjs/commands/index.js +12 -0
- package/dist-cjs/models/models_0.js +342 -39
- package/dist-cjs/pagination/ListEntityPersonasPaginator.js +35 -0
- package/dist-cjs/pagination/ListExperienceEntitiesPaginator.js +34 -0
- package/dist-cjs/pagination/ListExperiencesPaginator.js +35 -0
- package/dist-cjs/pagination/index.js +3 -0
- package/dist-cjs/protocols/Aws_json1_1.js +2043 -261
- package/dist-es/Kendra.js +180 -0
- package/dist-es/commands/AssociateEntitiesToExperienceCommand.js +39 -0
- package/dist-es/commands/AssociatePersonasToEntitiesCommand.js +39 -0
- package/dist-es/commands/CreateExperienceCommand.js +39 -0
- package/dist-es/commands/DeleteExperienceCommand.js +39 -0
- package/dist-es/commands/DescribeExperienceCommand.js +39 -0
- package/dist-es/commands/DisassociateEntitiesFromExperienceCommand.js +39 -0
- package/dist-es/commands/DisassociatePersonasFromEntitiesCommand.js +39 -0
- package/dist-es/commands/GetSnapshotsCommand.js +39 -0
- package/dist-es/commands/ListEntityPersonasCommand.js +39 -0
- package/dist-es/commands/ListExperienceEntitiesCommand.js +39 -0
- package/dist-es/commands/ListExperiencesCommand.js +39 -0
- package/dist-es/commands/UpdateExperienceCommand.js +39 -0
- package/dist-es/commands/index.js +12 -0
- package/dist-es/models/models_0.js +239 -24
- package/dist-es/pagination/ListEntityPersonasPaginator.js +74 -0
- package/dist-es/pagination/ListExperienceEntitiesPaginator.js +73 -0
- package/dist-es/pagination/ListExperiencesPaginator.js +74 -0
- package/dist-es/pagination/index.js +3 -0
- package/dist-es/protocols/Aws_json1_1.js +2042 -234
- package/dist-types/Kendra.d.ts +164 -1
- package/dist-types/KendraClient.d.ts +14 -2
- package/dist-types/commands/AssociateEntitiesToExperienceCommand.d.ts +39 -0
- package/dist-types/commands/AssociatePersonasToEntitiesCommand.d.ts +39 -0
- package/dist-types/commands/ClearQuerySuggestionsCommand.d.ts +3 -0
- package/dist-types/commands/CreateDataSourceCommand.d.ts +2 -0
- package/dist-types/commands/CreateExperienceCommand.d.ts +37 -0
- package/dist-types/commands/CreateQuerySuggestionsBlockListCommand.d.ts +3 -0
- package/dist-types/commands/DeleteExperienceCommand.d.ts +37 -0
- package/dist-types/commands/DeletePrincipalMappingCommand.d.ts +3 -0
- package/dist-types/commands/DeleteQuerySuggestionsBlockListCommand.d.ts +3 -0
- package/dist-types/commands/DescribeExperienceCommand.d.ts +38 -0
- package/dist-types/commands/DescribePrincipalMappingCommand.d.ts +3 -0
- package/dist-types/commands/DescribeQuerySuggestionsBlockListCommand.d.ts +3 -0
- package/dist-types/commands/DescribeQuerySuggestionsConfigCommand.d.ts +3 -0
- package/dist-types/commands/DisassociateEntitiesFromExperienceCommand.d.ts +39 -0
- package/dist-types/commands/DisassociatePersonasFromEntitiesCommand.d.ts +39 -0
- package/dist-types/commands/GetQuerySuggestionsCommand.d.ts +3 -0
- package/dist-types/commands/GetSnapshotsCommand.d.ts +37 -0
- package/dist-types/commands/ListEntityPersonasCommand.d.ts +36 -0
- package/dist-types/commands/ListExperienceEntitiesCommand.d.ts +39 -0
- package/dist-types/commands/ListExperiencesCommand.d.ts +38 -0
- package/dist-types/commands/ListGroupsOlderThanOrderingIdCommand.d.ts +3 -0
- package/dist-types/commands/ListQuerySuggestionsBlockListsCommand.d.ts +3 -0
- package/dist-types/commands/PutPrincipalMappingCommand.d.ts +3 -0
- package/dist-types/commands/SubmitFeedbackCommand.d.ts +4 -1
- package/dist-types/commands/UpdateExperienceCommand.d.ts +37 -0
- package/dist-types/commands/UpdateQuerySuggestionsBlockListCommand.d.ts +3 -0
- package/dist-types/commands/UpdateQuerySuggestionsConfigCommand.d.ts +3 -0
- package/dist-types/commands/index.d.ts +12 -0
- package/dist-types/models/models_0.d.ts +1316 -180
- package/dist-types/pagination/ListEntityPersonasPaginator.d.ts +4 -0
- package/dist-types/pagination/ListExperienceEntitiesPaginator.d.ts +4 -0
- package/dist-types/pagination/ListExperiencesPaginator.d.ts +4 -0
- package/dist-types/pagination/index.d.ts +3 -0
- package/dist-types/protocols/Aws_json1_1.d.ts +36 -0
- package/dist-types/ts3.4/Kendra.d.ts +60 -0
- package/dist-types/ts3.4/KendraClient.d.ts +14 -2
- package/dist-types/ts3.4/commands/AssociateEntitiesToExperienceCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/AssociatePersonasToEntitiesCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/CreateExperienceCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/DeleteExperienceCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/DescribeExperienceCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/DisassociateEntitiesFromExperienceCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/DisassociatePersonasFromEntitiesCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/GetSnapshotsCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/ListEntityPersonasCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/ListExperienceEntitiesCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/ListExperiencesCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/UpdateExperienceCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/index.d.ts +12 -0
- package/dist-types/ts3.4/models/models_0.d.ts +603 -57
- package/dist-types/ts3.4/pagination/ListEntityPersonasPaginator.d.ts +4 -0
- package/dist-types/ts3.4/pagination/ListExperienceEntitiesPaginator.d.ts +4 -0
- package/dist-types/ts3.4/pagination/ListExperiencesPaginator.d.ts +4 -0
- package/dist-types/ts3.4/pagination/index.d.ts +3 -0
- package/dist-types/ts3.4/protocols/Aws_json1_1.d.ts +36 -0
- package/package.json +1 -1
|
@@ -2,6 +2,28 @@ import { __assign, __awaiter, __generator, __read } from "tslib";
|
|
|
2
2
|
import { HttpRequest as __HttpRequest } from "@aws-sdk/protocol-http";
|
|
3
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
|
+
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
|
+
}); };
|
|
5
27
|
export var serializeAws_json1_1BatchDeleteDocumentCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
6
28
|
var headers, body;
|
|
7
29
|
return __generator(this, function (_a) {
|
|
@@ -57,6 +79,17 @@ export var serializeAws_json1_1CreateDataSourceCommand = function (input, contex
|
|
|
57
79
|
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
58
80
|
});
|
|
59
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
|
+
}); };
|
|
60
93
|
export var serializeAws_json1_1CreateFaqCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
61
94
|
var headers, body;
|
|
62
95
|
return __generator(this, function (_a) {
|
|
@@ -112,6 +145,17 @@ export var serializeAws_json1_1DeleteDataSourceCommand = function (input, contex
|
|
|
112
145
|
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
113
146
|
});
|
|
114
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
|
+
}); };
|
|
115
159
|
export var serializeAws_json1_1DeleteFaqCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
116
160
|
var headers, body;
|
|
117
161
|
return __generator(this, function (_a) {
|
|
@@ -178,6 +222,17 @@ export var serializeAws_json1_1DescribeDataSourceCommand = function (input, cont
|
|
|
178
222
|
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
179
223
|
});
|
|
180
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
|
+
}); };
|
|
181
236
|
export var serializeAws_json1_1DescribeFaqCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
182
237
|
var headers, body;
|
|
183
238
|
return __generator(this, function (_a) {
|
|
@@ -244,6 +299,28 @@ export var serializeAws_json1_1DescribeThesaurusCommand = function (input, conte
|
|
|
244
299
|
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
245
300
|
});
|
|
246
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
|
+
}); };
|
|
247
324
|
export var serializeAws_json1_1GetQuerySuggestionsCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
248
325
|
var headers, body;
|
|
249
326
|
return __generator(this, function (_a) {
|
|
@@ -255,6 +332,17 @@ export var serializeAws_json1_1GetQuerySuggestionsCommand = function (input, con
|
|
|
255
332
|
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
256
333
|
});
|
|
257
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
|
+
}); };
|
|
258
346
|
export var serializeAws_json1_1ListDataSourcesCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
259
347
|
var headers, body;
|
|
260
348
|
return __generator(this, function (_a) {
|
|
@@ -277,6 +365,39 @@ export var serializeAws_json1_1ListDataSourceSyncJobsCommand = function (input,
|
|
|
277
365
|
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
278
366
|
});
|
|
279
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
|
+
}); };
|
|
280
401
|
export var serializeAws_json1_1ListFaqsCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
281
402
|
var headers, body;
|
|
282
403
|
return __generator(this, function (_a) {
|
|
@@ -431,6 +552,17 @@ export var serializeAws_json1_1UpdateDataSourceCommand = function (input, contex
|
|
|
431
552
|
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
432
553
|
});
|
|
433
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
|
+
}); };
|
|
434
566
|
export var serializeAws_json1_1UpdateIndexCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
435
567
|
var headers, body;
|
|
436
568
|
return __generator(this, function (_a) {
|
|
@@ -475,25 +607,25 @@ export var serializeAws_json1_1UpdateThesaurusCommand = function (input, context
|
|
|
475
607
|
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
476
608
|
});
|
|
477
609
|
}); };
|
|
478
|
-
export var
|
|
610
|
+
export var deserializeAws_json1_1AssociateEntitiesToExperienceCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
479
611
|
var data, contents, response;
|
|
480
612
|
return __generator(this, function (_a) {
|
|
481
613
|
switch (_a.label) {
|
|
482
614
|
case 0:
|
|
483
615
|
if (output.statusCode >= 300) {
|
|
484
|
-
return [2,
|
|
616
|
+
return [2, deserializeAws_json1_1AssociateEntitiesToExperienceCommandError(output, context)];
|
|
485
617
|
}
|
|
486
618
|
return [4, parseBody(output.body, context)];
|
|
487
619
|
case 1:
|
|
488
620
|
data = _a.sent();
|
|
489
621
|
contents = {};
|
|
490
|
-
contents =
|
|
622
|
+
contents = deserializeAws_json1_1AssociateEntitiesToExperienceResponse(data, context);
|
|
491
623
|
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
492
624
|
return [2, Promise.resolve(response)];
|
|
493
625
|
}
|
|
494
626
|
});
|
|
495
627
|
}); };
|
|
496
|
-
var
|
|
628
|
+
var deserializeAws_json1_1AssociateEntitiesToExperienceCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
497
629
|
var parsedOutput, _a, response, errorCode, _b, _c, _d, _e, _f, _g, _h, parsedBody, message;
|
|
498
630
|
var _j;
|
|
499
631
|
return __generator(this, function (_k) {
|
|
@@ -510,10 +642,10 @@ var deserializeAws_json1_1BatchDeleteDocumentCommandError = function (output, co
|
|
|
510
642
|
switch (_b) {
|
|
511
643
|
case "AccessDeniedException": return [3, 2];
|
|
512
644
|
case "com.amazonaws.kendra#AccessDeniedException": return [3, 2];
|
|
513
|
-
case "
|
|
514
|
-
case "com.amazonaws.kendra#
|
|
515
|
-
case "
|
|
516
|
-
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];
|
|
517
649
|
case "ResourceNotFoundException": return [3, 8];
|
|
518
650
|
case "com.amazonaws.kendra#ResourceNotFoundException": return [3, 8];
|
|
519
651
|
case "ThrottlingException": return [3, 10];
|
|
@@ -530,13 +662,13 @@ var deserializeAws_json1_1BatchDeleteDocumentCommandError = function (output, co
|
|
|
530
662
|
return [3, 15];
|
|
531
663
|
case 4:
|
|
532
664
|
_d = [{}];
|
|
533
|
-
return [4,
|
|
665
|
+
return [4, deserializeAws_json1_1InternalServerExceptionResponse(parsedOutput, context)];
|
|
534
666
|
case 5:
|
|
535
667
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
536
668
|
return [3, 15];
|
|
537
669
|
case 6:
|
|
538
670
|
_e = [{}];
|
|
539
|
-
return [4,
|
|
671
|
+
return [4, deserializeAws_json1_1ResourceAlreadyExistExceptionResponse(parsedOutput, context)];
|
|
540
672
|
case 7:
|
|
541
673
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
542
674
|
return [3, 15];
|
|
@@ -571,25 +703,25 @@ var deserializeAws_json1_1BatchDeleteDocumentCommandError = function (output, co
|
|
|
571
703
|
}
|
|
572
704
|
});
|
|
573
705
|
}); };
|
|
574
|
-
export var
|
|
706
|
+
export var deserializeAws_json1_1AssociatePersonasToEntitiesCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
575
707
|
var data, contents, response;
|
|
576
708
|
return __generator(this, function (_a) {
|
|
577
709
|
switch (_a.label) {
|
|
578
710
|
case 0:
|
|
579
711
|
if (output.statusCode >= 300) {
|
|
580
|
-
return [2,
|
|
712
|
+
return [2, deserializeAws_json1_1AssociatePersonasToEntitiesCommandError(output, context)];
|
|
581
713
|
}
|
|
582
714
|
return [4, parseBody(output.body, context)];
|
|
583
715
|
case 1:
|
|
584
716
|
data = _a.sent();
|
|
585
717
|
contents = {};
|
|
586
|
-
contents =
|
|
718
|
+
contents = deserializeAws_json1_1AssociatePersonasToEntitiesResponse(data, context);
|
|
587
719
|
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
588
720
|
return [2, Promise.resolve(response)];
|
|
589
721
|
}
|
|
590
722
|
});
|
|
591
723
|
}); };
|
|
592
|
-
var
|
|
724
|
+
var deserializeAws_json1_1AssociatePersonasToEntitiesCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
593
725
|
var parsedOutput, _a, response, errorCode, _b, _c, _d, _e, _f, _g, _h, parsedBody, message;
|
|
594
726
|
var _j;
|
|
595
727
|
return __generator(this, function (_k) {
|
|
@@ -606,10 +738,10 @@ var deserializeAws_json1_1BatchGetDocumentStatusCommandError = function (output,
|
|
|
606
738
|
switch (_b) {
|
|
607
739
|
case "AccessDeniedException": return [3, 2];
|
|
608
740
|
case "com.amazonaws.kendra#AccessDeniedException": return [3, 2];
|
|
609
|
-
case "
|
|
610
|
-
case "com.amazonaws.kendra#
|
|
611
|
-
case "
|
|
612
|
-
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];
|
|
613
745
|
case "ResourceNotFoundException": return [3, 8];
|
|
614
746
|
case "com.amazonaws.kendra#ResourceNotFoundException": return [3, 8];
|
|
615
747
|
case "ThrottlingException": return [3, 10];
|
|
@@ -626,13 +758,13 @@ var deserializeAws_json1_1BatchGetDocumentStatusCommandError = function (output,
|
|
|
626
758
|
return [3, 15];
|
|
627
759
|
case 4:
|
|
628
760
|
_d = [{}];
|
|
629
|
-
return [4,
|
|
761
|
+
return [4, deserializeAws_json1_1InternalServerExceptionResponse(parsedOutput, context)];
|
|
630
762
|
case 5:
|
|
631
763
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
632
764
|
return [3, 15];
|
|
633
765
|
case 6:
|
|
634
766
|
_e = [{}];
|
|
635
|
-
return [4,
|
|
767
|
+
return [4, deserializeAws_json1_1ResourceAlreadyExistExceptionResponse(parsedOutput, context)];
|
|
636
768
|
case 7:
|
|
637
769
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
638
770
|
return [3, 15];
|
|
@@ -667,35 +799,35 @@ var deserializeAws_json1_1BatchGetDocumentStatusCommandError = function (output,
|
|
|
667
799
|
}
|
|
668
800
|
});
|
|
669
801
|
}); };
|
|
670
|
-
export var
|
|
802
|
+
export var deserializeAws_json1_1BatchDeleteDocumentCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
671
803
|
var data, contents, response;
|
|
672
804
|
return __generator(this, function (_a) {
|
|
673
805
|
switch (_a.label) {
|
|
674
806
|
case 0:
|
|
675
807
|
if (output.statusCode >= 300) {
|
|
676
|
-
return [2,
|
|
808
|
+
return [2, deserializeAws_json1_1BatchDeleteDocumentCommandError(output, context)];
|
|
677
809
|
}
|
|
678
810
|
return [4, parseBody(output.body, context)];
|
|
679
811
|
case 1:
|
|
680
812
|
data = _a.sent();
|
|
681
813
|
contents = {};
|
|
682
|
-
contents =
|
|
814
|
+
contents = deserializeAws_json1_1BatchDeleteDocumentResponse(data, context);
|
|
683
815
|
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
684
816
|
return [2, Promise.resolve(response)];
|
|
685
817
|
}
|
|
686
818
|
});
|
|
687
819
|
}); };
|
|
688
|
-
var
|
|
689
|
-
var parsedOutput, _a, response, errorCode, _b, _c, _d, _e, _f, _g, _h,
|
|
690
|
-
var
|
|
691
|
-
return __generator(this, function (
|
|
692
|
-
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) {
|
|
693
825
|
case 0:
|
|
694
826
|
_a = [__assign({}, output)];
|
|
695
|
-
|
|
827
|
+
_j = {};
|
|
696
828
|
return [4, parseBody(output.body, context)];
|
|
697
829
|
case 1:
|
|
698
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(
|
|
830
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_j.body = _k.sent(), _j)]));
|
|
699
831
|
errorCode = "UnknownError";
|
|
700
832
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
701
833
|
_b = errorCode;
|
|
@@ -708,62 +840,54 @@ var deserializeAws_json1_1BatchPutDocumentCommandError = function (output, conte
|
|
|
708
840
|
case "com.amazonaws.kendra#InternalServerException": return [3, 6];
|
|
709
841
|
case "ResourceNotFoundException": return [3, 8];
|
|
710
842
|
case "com.amazonaws.kendra#ResourceNotFoundException": return [3, 8];
|
|
711
|
-
case "
|
|
712
|
-
case "com.amazonaws.kendra#
|
|
713
|
-
case "
|
|
714
|
-
case "com.amazonaws.kendra#
|
|
715
|
-
case "ValidationException": return [3, 14];
|
|
716
|
-
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];
|
|
717
847
|
}
|
|
718
|
-
return [3,
|
|
848
|
+
return [3, 14];
|
|
719
849
|
case 2:
|
|
720
850
|
_c = [{}];
|
|
721
851
|
return [4, deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context)];
|
|
722
852
|
case 3:
|
|
723
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(
|
|
724
|
-
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];
|
|
725
855
|
case 4:
|
|
726
856
|
_d = [{}];
|
|
727
857
|
return [4, deserializeAws_json1_1ConflictExceptionResponse(parsedOutput, context)];
|
|
728
858
|
case 5:
|
|
729
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(
|
|
730
|
-
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];
|
|
731
861
|
case 6:
|
|
732
862
|
_e = [{}];
|
|
733
863
|
return [4, deserializeAws_json1_1InternalServerExceptionResponse(parsedOutput, context)];
|
|
734
864
|
case 7:
|
|
735
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(
|
|
736
|
-
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];
|
|
737
867
|
case 8:
|
|
738
868
|
_f = [{}];
|
|
739
869
|
return [4, deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
740
870
|
case 9:
|
|
741
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(
|
|
742
|
-
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];
|
|
743
873
|
case 10:
|
|
744
874
|
_g = [{}];
|
|
745
|
-
return [4,
|
|
875
|
+
return [4, deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context)];
|
|
746
876
|
case 11:
|
|
747
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(
|
|
748
|
-
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];
|
|
749
879
|
case 12:
|
|
750
880
|
_h = [{}];
|
|
751
|
-
return [4,
|
|
881
|
+
return [4, deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context)];
|
|
752
882
|
case 13:
|
|
753
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _h.concat([(
|
|
754
|
-
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];
|
|
755
885
|
case 14:
|
|
756
|
-
_j = [{}];
|
|
757
|
-
return [4, deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context)];
|
|
758
|
-
case 15:
|
|
759
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _j.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
760
|
-
return [3, 17];
|
|
761
|
-
case 16:
|
|
762
886
|
parsedBody = parsedOutput.body;
|
|
763
887
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
764
888
|
response = __assign(__assign({}, parsedBody), { name: "" + errorCode, message: parsedBody.message || parsedBody.Message || errorCode, $fault: "client", $metadata: deserializeMetadata(output) });
|
|
765
|
-
|
|
766
|
-
case
|
|
889
|
+
_k.label = 15;
|
|
890
|
+
case 15:
|
|
767
891
|
message = response.message || response.Message || errorCode;
|
|
768
892
|
response.message = message;
|
|
769
893
|
delete response.Message;
|
|
@@ -771,25 +895,25 @@ var deserializeAws_json1_1BatchPutDocumentCommandError = function (output, conte
|
|
|
771
895
|
}
|
|
772
896
|
});
|
|
773
897
|
}); };
|
|
774
|
-
export var
|
|
775
|
-
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;
|
|
776
900
|
return __generator(this, function (_a) {
|
|
777
901
|
switch (_a.label) {
|
|
778
902
|
case 0:
|
|
779
903
|
if (output.statusCode >= 300) {
|
|
780
|
-
return [2,
|
|
904
|
+
return [2, deserializeAws_json1_1BatchGetDocumentStatusCommandError(output, context)];
|
|
781
905
|
}
|
|
782
|
-
return [4,
|
|
906
|
+
return [4, parseBody(output.body, context)];
|
|
783
907
|
case 1:
|
|
784
|
-
_a.sent();
|
|
785
|
-
|
|
786
|
-
|
|
787
|
-
};
|
|
908
|
+
data = _a.sent();
|
|
909
|
+
contents = {};
|
|
910
|
+
contents = deserializeAws_json1_1BatchGetDocumentStatusResponse(data, context);
|
|
911
|
+
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
788
912
|
return [2, Promise.resolve(response)];
|
|
789
913
|
}
|
|
790
914
|
});
|
|
791
915
|
}); };
|
|
792
|
-
var
|
|
916
|
+
var deserializeAws_json1_1BatchGetDocumentStatusCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
793
917
|
var parsedOutput, _a, response, errorCode, _b, _c, _d, _e, _f, _g, _h, parsedBody, message;
|
|
794
918
|
var _j;
|
|
795
919
|
return __generator(this, function (_k) {
|
|
@@ -867,35 +991,35 @@ var deserializeAws_json1_1ClearQuerySuggestionsCommandError = function (output,
|
|
|
867
991
|
}
|
|
868
992
|
});
|
|
869
993
|
}); };
|
|
870
|
-
export var
|
|
994
|
+
export var deserializeAws_json1_1BatchPutDocumentCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
871
995
|
var data, contents, response;
|
|
872
996
|
return __generator(this, function (_a) {
|
|
873
997
|
switch (_a.label) {
|
|
874
998
|
case 0:
|
|
875
999
|
if (output.statusCode >= 300) {
|
|
876
|
-
return [2,
|
|
1000
|
+
return [2, deserializeAws_json1_1BatchPutDocumentCommandError(output, context)];
|
|
877
1001
|
}
|
|
878
1002
|
return [4, parseBody(output.body, context)];
|
|
879
1003
|
case 1:
|
|
880
1004
|
data = _a.sent();
|
|
881
1005
|
contents = {};
|
|
882
|
-
contents =
|
|
1006
|
+
contents = deserializeAws_json1_1BatchPutDocumentResponse(data, context);
|
|
883
1007
|
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
884
1008
|
return [2, Promise.resolve(response)];
|
|
885
1009
|
}
|
|
886
1010
|
});
|
|
887
1011
|
}); };
|
|
888
|
-
var
|
|
889
|
-
var parsedOutput, _a, response, errorCode, _b, _c, _d, _e, _f, _g, _h, _j,
|
|
890
|
-
var
|
|
891
|
-
return __generator(this, function (
|
|
892
|
-
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) {
|
|
893
1017
|
case 0:
|
|
894
1018
|
_a = [__assign({}, output)];
|
|
895
|
-
|
|
1019
|
+
_k = {};
|
|
896
1020
|
return [4, parseBody(output.body, context)];
|
|
897
1021
|
case 1:
|
|
898
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(
|
|
1022
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_k.body = _l.sent(), _k)]));
|
|
899
1023
|
errorCode = "UnknownError";
|
|
900
1024
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
901
1025
|
_b = errorCode;
|
|
@@ -906,24 +1030,224 @@ var deserializeAws_json1_1CreateDataSourceCommandError = function (output, conte
|
|
|
906
1030
|
case "com.amazonaws.kendra#ConflictException": return [3, 4];
|
|
907
1031
|
case "InternalServerException": return [3, 6];
|
|
908
1032
|
case "com.amazonaws.kendra#InternalServerException": return [3, 6];
|
|
909
|
-
case "
|
|
910
|
-
case "com.amazonaws.kendra#
|
|
911
|
-
case "
|
|
912
|
-
case "com.amazonaws.kendra#
|
|
913
|
-
case "
|
|
914
|
-
case "com.amazonaws.kendra#
|
|
915
|
-
case "
|
|
916
|
-
case "com.amazonaws.kendra#
|
|
917
|
-
case "ValidationException": return [3, 16];
|
|
918
|
-
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];
|
|
919
1041
|
}
|
|
920
|
-
return [3,
|
|
1042
|
+
return [3, 16];
|
|
921
1043
|
case 2:
|
|
922
1044
|
_c = [{}];
|
|
923
1045
|
return [4, deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context)];
|
|
924
1046
|
case 3:
|
|
925
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(
|
|
926
|
-
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];
|
|
927
1251
|
case 4:
|
|
928
1252
|
_d = [{}];
|
|
929
1253
|
return [4, deserializeAws_json1_1ConflictExceptionResponse(parsedOutput, context)];
|
|
@@ -979,25 +1303,25 @@ var deserializeAws_json1_1CreateDataSourceCommandError = function (output, conte
|
|
|
979
1303
|
}
|
|
980
1304
|
});
|
|
981
1305
|
}); };
|
|
982
|
-
export var
|
|
1306
|
+
export var deserializeAws_json1_1CreateExperienceCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
983
1307
|
var data, contents, response;
|
|
984
1308
|
return __generator(this, function (_a) {
|
|
985
1309
|
switch (_a.label) {
|
|
986
1310
|
case 0:
|
|
987
1311
|
if (output.statusCode >= 300) {
|
|
988
|
-
return [2,
|
|
1312
|
+
return [2, deserializeAws_json1_1CreateExperienceCommandError(output, context)];
|
|
989
1313
|
}
|
|
990
1314
|
return [4, parseBody(output.body, context)];
|
|
991
1315
|
case 1:
|
|
992
1316
|
data = _a.sent();
|
|
993
1317
|
contents = {};
|
|
994
|
-
contents =
|
|
1318
|
+
contents = deserializeAws_json1_1CreateExperienceResponse(data, context);
|
|
995
1319
|
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
996
1320
|
return [2, Promise.resolve(response)];
|
|
997
1321
|
}
|
|
998
1322
|
});
|
|
999
1323
|
}); };
|
|
1000
|
-
var
|
|
1324
|
+
var deserializeAws_json1_1CreateExperienceCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1001
1325
|
var parsedOutput, _a, response, errorCode, _b, _c, _d, _e, _f, _g, _h, _j, parsedBody, message;
|
|
1002
1326
|
var _k;
|
|
1003
1327
|
return __generator(this, function (_l) {
|
|
@@ -1083,25 +1407,25 @@ var deserializeAws_json1_1CreateFaqCommandError = function (output, context) { r
|
|
|
1083
1407
|
}
|
|
1084
1408
|
});
|
|
1085
1409
|
}); };
|
|
1086
|
-
export var
|
|
1410
|
+
export var deserializeAws_json1_1CreateFaqCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1087
1411
|
var data, contents, response;
|
|
1088
1412
|
return __generator(this, function (_a) {
|
|
1089
1413
|
switch (_a.label) {
|
|
1090
1414
|
case 0:
|
|
1091
1415
|
if (output.statusCode >= 300) {
|
|
1092
|
-
return [2,
|
|
1416
|
+
return [2, deserializeAws_json1_1CreateFaqCommandError(output, context)];
|
|
1093
1417
|
}
|
|
1094
1418
|
return [4, parseBody(output.body, context)];
|
|
1095
1419
|
case 1:
|
|
1096
1420
|
data = _a.sent();
|
|
1097
1421
|
contents = {};
|
|
1098
|
-
contents =
|
|
1422
|
+
contents = deserializeAws_json1_1CreateFaqResponse(data, context);
|
|
1099
1423
|
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
1100
1424
|
return [2, Promise.resolve(response)];
|
|
1101
1425
|
}
|
|
1102
1426
|
});
|
|
1103
1427
|
}); };
|
|
1104
|
-
var
|
|
1428
|
+
var deserializeAws_json1_1CreateFaqCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1105
1429
|
var parsedOutput, _a, response, errorCode, _b, _c, _d, _e, _f, _g, _h, _j, parsedBody, message;
|
|
1106
1430
|
var _k;
|
|
1107
1431
|
return __generator(this, function (_l) {
|
|
@@ -1122,8 +1446,8 @@ var deserializeAws_json1_1CreateIndexCommandError = function (output, context) {
|
|
|
1122
1446
|
case "com.amazonaws.kendra#ConflictException": return [3, 4];
|
|
1123
1447
|
case "InternalServerException": return [3, 6];
|
|
1124
1448
|
case "com.amazonaws.kendra#InternalServerException": return [3, 6];
|
|
1125
|
-
case "
|
|
1126
|
-
case "com.amazonaws.kendra#
|
|
1449
|
+
case "ResourceNotFoundException": return [3, 8];
|
|
1450
|
+
case "com.amazonaws.kendra#ResourceNotFoundException": return [3, 8];
|
|
1127
1451
|
case "ServiceQuotaExceededException": return [3, 10];
|
|
1128
1452
|
case "com.amazonaws.kendra#ServiceQuotaExceededException": return [3, 10];
|
|
1129
1453
|
case "ThrottlingException": return [3, 12];
|
|
@@ -1152,7 +1476,7 @@ var deserializeAws_json1_1CreateIndexCommandError = function (output, context) {
|
|
|
1152
1476
|
return [3, 17];
|
|
1153
1477
|
case 8:
|
|
1154
1478
|
_f = [{}];
|
|
1155
|
-
return [4,
|
|
1479
|
+
return [4, deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
1156
1480
|
case 9:
|
|
1157
1481
|
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1158
1482
|
return [3, 17];
|
|
@@ -1187,25 +1511,25 @@ var deserializeAws_json1_1CreateIndexCommandError = function (output, context) {
|
|
|
1187
1511
|
}
|
|
1188
1512
|
});
|
|
1189
1513
|
}); };
|
|
1190
|
-
export var
|
|
1514
|
+
export var deserializeAws_json1_1CreateIndexCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1191
1515
|
var data, contents, response;
|
|
1192
1516
|
return __generator(this, function (_a) {
|
|
1193
1517
|
switch (_a.label) {
|
|
1194
1518
|
case 0:
|
|
1195
1519
|
if (output.statusCode >= 300) {
|
|
1196
|
-
return [2,
|
|
1520
|
+
return [2, deserializeAws_json1_1CreateIndexCommandError(output, context)];
|
|
1197
1521
|
}
|
|
1198
1522
|
return [4, parseBody(output.body, context)];
|
|
1199
1523
|
case 1:
|
|
1200
1524
|
data = _a.sent();
|
|
1201
1525
|
contents = {};
|
|
1202
|
-
contents =
|
|
1526
|
+
contents = deserializeAws_json1_1CreateIndexResponse(data, context);
|
|
1203
1527
|
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
1204
1528
|
return [2, Promise.resolve(response)];
|
|
1205
1529
|
}
|
|
1206
1530
|
});
|
|
1207
1531
|
}); };
|
|
1208
|
-
var
|
|
1532
|
+
var deserializeAws_json1_1CreateIndexCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1209
1533
|
var parsedOutput, _a, response, errorCode, _b, _c, _d, _e, _f, _g, _h, _j, parsedBody, message;
|
|
1210
1534
|
var _k;
|
|
1211
1535
|
return __generator(this, function (_l) {
|
|
@@ -1226,8 +1550,8 @@ var deserializeAws_json1_1CreateQuerySuggestionsBlockListCommandError = function
|
|
|
1226
1550
|
case "com.amazonaws.kendra#ConflictException": return [3, 4];
|
|
1227
1551
|
case "InternalServerException": return [3, 6];
|
|
1228
1552
|
case "com.amazonaws.kendra#InternalServerException": return [3, 6];
|
|
1229
|
-
case "
|
|
1230
|
-
case "com.amazonaws.kendra#
|
|
1553
|
+
case "ResourceAlreadyExistException": return [3, 8];
|
|
1554
|
+
case "com.amazonaws.kendra#ResourceAlreadyExistException": return [3, 8];
|
|
1231
1555
|
case "ServiceQuotaExceededException": return [3, 10];
|
|
1232
1556
|
case "com.amazonaws.kendra#ServiceQuotaExceededException": return [3, 10];
|
|
1233
1557
|
case "ThrottlingException": return [3, 12];
|
|
@@ -1256,7 +1580,7 @@ var deserializeAws_json1_1CreateQuerySuggestionsBlockListCommandError = function
|
|
|
1256
1580
|
return [3, 17];
|
|
1257
1581
|
case 8:
|
|
1258
1582
|
_f = [{}];
|
|
1259
|
-
return [4,
|
|
1583
|
+
return [4, deserializeAws_json1_1ResourceAlreadyExistExceptionResponse(parsedOutput, context)];
|
|
1260
1584
|
case 9:
|
|
1261
1585
|
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1262
1586
|
return [3, 17];
|
|
@@ -1291,25 +1615,25 @@ var deserializeAws_json1_1CreateQuerySuggestionsBlockListCommandError = function
|
|
|
1291
1615
|
}
|
|
1292
1616
|
});
|
|
1293
1617
|
}); };
|
|
1294
|
-
export var
|
|
1618
|
+
export var deserializeAws_json1_1CreateQuerySuggestionsBlockListCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1295
1619
|
var data, contents, response;
|
|
1296
1620
|
return __generator(this, function (_a) {
|
|
1297
1621
|
switch (_a.label) {
|
|
1298
1622
|
case 0:
|
|
1299
1623
|
if (output.statusCode >= 300) {
|
|
1300
|
-
return [2,
|
|
1624
|
+
return [2, deserializeAws_json1_1CreateQuerySuggestionsBlockListCommandError(output, context)];
|
|
1301
1625
|
}
|
|
1302
1626
|
return [4, parseBody(output.body, context)];
|
|
1303
1627
|
case 1:
|
|
1304
1628
|
data = _a.sent();
|
|
1305
1629
|
contents = {};
|
|
1306
|
-
contents =
|
|
1630
|
+
contents = deserializeAws_json1_1CreateQuerySuggestionsBlockListResponse(data, context);
|
|
1307
1631
|
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
1308
1632
|
return [2, Promise.resolve(response)];
|
|
1309
1633
|
}
|
|
1310
1634
|
});
|
|
1311
1635
|
}); };
|
|
1312
|
-
var
|
|
1636
|
+
var deserializeAws_json1_1CreateQuerySuggestionsBlockListCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1313
1637
|
var parsedOutput, _a, response, errorCode, _b, _c, _d, _e, _f, _g, _h, _j, parsedBody, message;
|
|
1314
1638
|
var _k;
|
|
1315
1639
|
return __generator(this, function (_l) {
|
|
@@ -1395,22 +1719,126 @@ var deserializeAws_json1_1CreateThesaurusCommandError = function (output, contex
|
|
|
1395
1719
|
}
|
|
1396
1720
|
});
|
|
1397
1721
|
}); };
|
|
1398
|
-
export var
|
|
1399
|
-
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;
|
|
1400
1724
|
return __generator(this, function (_a) {
|
|
1401
1725
|
switch (_a.label) {
|
|
1402
1726
|
case 0:
|
|
1403
1727
|
if (output.statusCode >= 300) {
|
|
1404
|
-
return [2,
|
|
1728
|
+
return [2, deserializeAws_json1_1CreateThesaurusCommandError(output, context)];
|
|
1405
1729
|
}
|
|
1406
|
-
return [4,
|
|
1730
|
+
return [4, parseBody(output.body, context)];
|
|
1407
1731
|
case 1:
|
|
1408
|
-
_a.sent();
|
|
1409
|
-
|
|
1410
|
-
|
|
1411
|
-
};
|
|
1412
|
-
return [2, Promise.resolve(response)];
|
|
1413
|
-
}
|
|
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
|
+
}
|
|
1414
1842
|
});
|
|
1415
1843
|
}); };
|
|
1416
1844
|
var deserializeAws_json1_1DeleteDataSourceCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -1491,6 +1919,102 @@ var deserializeAws_json1_1DeleteDataSourceCommandError = function (output, conte
|
|
|
1491
1919
|
}
|
|
1492
1920
|
});
|
|
1493
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
|
+
}); };
|
|
1494
2018
|
export var deserializeAws_json1_1DeleteFaqCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1495
2019
|
var response;
|
|
1496
2020
|
return __generator(this, function (_a) {
|
|
@@ -2059,25 +2583,25 @@ var deserializeAws_json1_1DescribeDataSourceCommandError = function (output, con
|
|
|
2059
2583
|
}
|
|
2060
2584
|
});
|
|
2061
2585
|
}); };
|
|
2062
|
-
export var
|
|
2586
|
+
export var deserializeAws_json1_1DescribeExperienceCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2063
2587
|
var data, contents, response;
|
|
2064
2588
|
return __generator(this, function (_a) {
|
|
2065
2589
|
switch (_a.label) {
|
|
2066
2590
|
case 0:
|
|
2067
2591
|
if (output.statusCode >= 300) {
|
|
2068
|
-
return [2,
|
|
2592
|
+
return [2, deserializeAws_json1_1DescribeExperienceCommandError(output, context)];
|
|
2069
2593
|
}
|
|
2070
2594
|
return [4, parseBody(output.body, context)];
|
|
2071
2595
|
case 1:
|
|
2072
2596
|
data = _a.sent();
|
|
2073
2597
|
contents = {};
|
|
2074
|
-
contents =
|
|
2598
|
+
contents = deserializeAws_json1_1DescribeExperienceResponse(data, context);
|
|
2075
2599
|
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
2076
2600
|
return [2, Promise.resolve(response)];
|
|
2077
2601
|
}
|
|
2078
2602
|
});
|
|
2079
2603
|
}); };
|
|
2080
|
-
var
|
|
2604
|
+
var deserializeAws_json1_1DescribeExperienceCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2081
2605
|
var parsedOutput, _a, response, errorCode, _b, _c, _d, _e, _f, _g, parsedBody, message;
|
|
2082
2606
|
var _h;
|
|
2083
2607
|
return __generator(this, function (_j) {
|
|
@@ -2147,25 +2671,25 @@ var deserializeAws_json1_1DescribeFaqCommandError = function (output, context) {
|
|
|
2147
2671
|
}
|
|
2148
2672
|
});
|
|
2149
2673
|
}); };
|
|
2150
|
-
export var
|
|
2674
|
+
export var deserializeAws_json1_1DescribeFaqCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2151
2675
|
var data, contents, response;
|
|
2152
2676
|
return __generator(this, function (_a) {
|
|
2153
2677
|
switch (_a.label) {
|
|
2154
2678
|
case 0:
|
|
2155
2679
|
if (output.statusCode >= 300) {
|
|
2156
|
-
return [2,
|
|
2680
|
+
return [2, deserializeAws_json1_1DescribeFaqCommandError(output, context)];
|
|
2157
2681
|
}
|
|
2158
2682
|
return [4, parseBody(output.body, context)];
|
|
2159
2683
|
case 1:
|
|
2160
2684
|
data = _a.sent();
|
|
2161
2685
|
contents = {};
|
|
2162
|
-
contents =
|
|
2686
|
+
contents = deserializeAws_json1_1DescribeFaqResponse(data, context);
|
|
2163
2687
|
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
2164
2688
|
return [2, Promise.resolve(response)];
|
|
2165
2689
|
}
|
|
2166
2690
|
});
|
|
2167
2691
|
}); };
|
|
2168
|
-
var
|
|
2692
|
+
var deserializeAws_json1_1DescribeFaqCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2169
2693
|
var parsedOutput, _a, response, errorCode, _b, _c, _d, _e, _f, _g, parsedBody, message;
|
|
2170
2694
|
var _h;
|
|
2171
2695
|
return __generator(this, function (_j) {
|
|
@@ -2235,25 +2759,25 @@ var deserializeAws_json1_1DescribeIndexCommandError = function (output, context)
|
|
|
2235
2759
|
}
|
|
2236
2760
|
});
|
|
2237
2761
|
}); };
|
|
2238
|
-
export var
|
|
2762
|
+
export var deserializeAws_json1_1DescribeIndexCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2239
2763
|
var data, contents, response;
|
|
2240
2764
|
return __generator(this, function (_a) {
|
|
2241
2765
|
switch (_a.label) {
|
|
2242
2766
|
case 0:
|
|
2243
2767
|
if (output.statusCode >= 300) {
|
|
2244
|
-
return [2,
|
|
2768
|
+
return [2, deserializeAws_json1_1DescribeIndexCommandError(output, context)];
|
|
2245
2769
|
}
|
|
2246
2770
|
return [4, parseBody(output.body, context)];
|
|
2247
2771
|
case 1:
|
|
2248
2772
|
data = _a.sent();
|
|
2249
2773
|
contents = {};
|
|
2250
|
-
contents =
|
|
2774
|
+
contents = deserializeAws_json1_1DescribeIndexResponse(data, context);
|
|
2251
2775
|
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
2252
2776
|
return [2, Promise.resolve(response)];
|
|
2253
2777
|
}
|
|
2254
2778
|
});
|
|
2255
2779
|
}); };
|
|
2256
|
-
var
|
|
2780
|
+
var deserializeAws_json1_1DescribeIndexCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2257
2781
|
var parsedOutput, _a, response, errorCode, _b, _c, _d, _e, _f, _g, parsedBody, message;
|
|
2258
2782
|
var _h;
|
|
2259
2783
|
return __generator(this, function (_j) {
|
|
@@ -2323,25 +2847,25 @@ var deserializeAws_json1_1DescribePrincipalMappingCommandError = function (outpu
|
|
|
2323
2847
|
}
|
|
2324
2848
|
});
|
|
2325
2849
|
}); };
|
|
2326
|
-
export var
|
|
2850
|
+
export var deserializeAws_json1_1DescribePrincipalMappingCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2327
2851
|
var data, contents, response;
|
|
2328
2852
|
return __generator(this, function (_a) {
|
|
2329
2853
|
switch (_a.label) {
|
|
2330
2854
|
case 0:
|
|
2331
2855
|
if (output.statusCode >= 300) {
|
|
2332
|
-
return [2,
|
|
2856
|
+
return [2, deserializeAws_json1_1DescribePrincipalMappingCommandError(output, context)];
|
|
2333
2857
|
}
|
|
2334
2858
|
return [4, parseBody(output.body, context)];
|
|
2335
2859
|
case 1:
|
|
2336
2860
|
data = _a.sent();
|
|
2337
2861
|
contents = {};
|
|
2338
|
-
contents =
|
|
2862
|
+
contents = deserializeAws_json1_1DescribePrincipalMappingResponse(data, context);
|
|
2339
2863
|
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
2340
2864
|
return [2, Promise.resolve(response)];
|
|
2341
2865
|
}
|
|
2342
2866
|
});
|
|
2343
2867
|
}); };
|
|
2344
|
-
var
|
|
2868
|
+
var deserializeAws_json1_1DescribePrincipalMappingCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2345
2869
|
var parsedOutput, _a, response, errorCode, _b, _c, _d, _e, _f, _g, parsedBody, message;
|
|
2346
2870
|
var _h;
|
|
2347
2871
|
return __generator(this, function (_j) {
|
|
@@ -2411,25 +2935,25 @@ var deserializeAws_json1_1DescribeQuerySuggestionsBlockListCommandError = functi
|
|
|
2411
2935
|
}
|
|
2412
2936
|
});
|
|
2413
2937
|
}); };
|
|
2414
|
-
export var
|
|
2938
|
+
export var deserializeAws_json1_1DescribeQuerySuggestionsBlockListCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2415
2939
|
var data, contents, response;
|
|
2416
2940
|
return __generator(this, function (_a) {
|
|
2417
2941
|
switch (_a.label) {
|
|
2418
2942
|
case 0:
|
|
2419
2943
|
if (output.statusCode >= 300) {
|
|
2420
|
-
return [2,
|
|
2944
|
+
return [2, deserializeAws_json1_1DescribeQuerySuggestionsBlockListCommandError(output, context)];
|
|
2421
2945
|
}
|
|
2422
2946
|
return [4, parseBody(output.body, context)];
|
|
2423
2947
|
case 1:
|
|
2424
2948
|
data = _a.sent();
|
|
2425
2949
|
contents = {};
|
|
2426
|
-
contents =
|
|
2950
|
+
contents = deserializeAws_json1_1DescribeQuerySuggestionsBlockListResponse(data, context);
|
|
2427
2951
|
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
2428
2952
|
return [2, Promise.resolve(response)];
|
|
2429
2953
|
}
|
|
2430
2954
|
});
|
|
2431
2955
|
}); };
|
|
2432
|
-
var
|
|
2956
|
+
var deserializeAws_json1_1DescribeQuerySuggestionsBlockListCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2433
2957
|
var parsedOutput, _a, response, errorCode, _b, _c, _d, _e, _f, _g, parsedBody, message;
|
|
2434
2958
|
var _h;
|
|
2435
2959
|
return __generator(this, function (_j) {
|
|
@@ -2499,25 +3023,25 @@ var deserializeAws_json1_1DescribeQuerySuggestionsConfigCommandError = function
|
|
|
2499
3023
|
}
|
|
2500
3024
|
});
|
|
2501
3025
|
}); };
|
|
2502
|
-
export var
|
|
3026
|
+
export var deserializeAws_json1_1DescribeQuerySuggestionsConfigCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2503
3027
|
var data, contents, response;
|
|
2504
3028
|
return __generator(this, function (_a) {
|
|
2505
3029
|
switch (_a.label) {
|
|
2506
3030
|
case 0:
|
|
2507
3031
|
if (output.statusCode >= 300) {
|
|
2508
|
-
return [2,
|
|
3032
|
+
return [2, deserializeAws_json1_1DescribeQuerySuggestionsConfigCommandError(output, context)];
|
|
2509
3033
|
}
|
|
2510
3034
|
return [4, parseBody(output.body, context)];
|
|
2511
3035
|
case 1:
|
|
2512
3036
|
data = _a.sent();
|
|
2513
3037
|
contents = {};
|
|
2514
|
-
contents =
|
|
3038
|
+
contents = deserializeAws_json1_1DescribeQuerySuggestionsConfigResponse(data, context);
|
|
2515
3039
|
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
2516
3040
|
return [2, Promise.resolve(response)];
|
|
2517
3041
|
}
|
|
2518
3042
|
});
|
|
2519
3043
|
}); };
|
|
2520
|
-
var
|
|
3044
|
+
var deserializeAws_json1_1DescribeQuerySuggestionsConfigCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2521
3045
|
var parsedOutput, _a, response, errorCode, _b, _c, _d, _e, _f, _g, parsedBody, message;
|
|
2522
3046
|
var _h;
|
|
2523
3047
|
return __generator(this, function (_j) {
|
|
@@ -2587,35 +3111,571 @@ var deserializeAws_json1_1DescribeThesaurusCommandError = function (output, cont
|
|
|
2587
3111
|
}
|
|
2588
3112
|
});
|
|
2589
3113
|
}); };
|
|
2590
|
-
export var
|
|
3114
|
+
export var deserializeAws_json1_1DescribeThesaurusCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2591
3115
|
var data, contents, response;
|
|
2592
3116
|
return __generator(this, function (_a) {
|
|
2593
3117
|
switch (_a.label) {
|
|
2594
3118
|
case 0:
|
|
2595
3119
|
if (output.statusCode >= 300) {
|
|
2596
|
-
return [2,
|
|
3120
|
+
return [2, deserializeAws_json1_1DescribeThesaurusCommandError(output, context)];
|
|
2597
3121
|
}
|
|
2598
3122
|
return [4, parseBody(output.body, context)];
|
|
2599
3123
|
case 1:
|
|
2600
3124
|
data = _a.sent();
|
|
2601
3125
|
contents = {};
|
|
2602
|
-
contents =
|
|
3126
|
+
contents = deserializeAws_json1_1DescribeThesaurusResponse(data, context);
|
|
2603
3127
|
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
2604
3128
|
return [2, Promise.resolve(response)];
|
|
2605
3129
|
}
|
|
2606
3130
|
});
|
|
2607
3131
|
}); };
|
|
2608
|
-
var
|
|
2609
|
-
var parsedOutput, _a, response, errorCode, _b, _c, _d, _e, _f, _g,
|
|
2610
|
-
var
|
|
2611
|
-
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) {
|
|
2612
3400
|
switch (_l.label) {
|
|
2613
3401
|
case 0:
|
|
2614
3402
|
_a = [__assign({}, output)];
|
|
2615
|
-
_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 = {};
|
|
2616
3588
|
return [4, parseBody(output.body, context)];
|
|
2617
3589
|
case 1:
|
|
2618
|
-
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)]));
|
|
2619
3679
|
errorCode = "UnknownError";
|
|
2620
3680
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2621
3681
|
_b = errorCode;
|
|
@@ -2628,62 +3688,142 @@ var deserializeAws_json1_1GetQuerySuggestionsCommandError = function (output, co
|
|
|
2628
3688
|
case "com.amazonaws.kendra#InternalServerException": return [3, 6];
|
|
2629
3689
|
case "ResourceNotFoundException": return [3, 8];
|
|
2630
3690
|
case "com.amazonaws.kendra#ResourceNotFoundException": return [3, 8];
|
|
2631
|
-
case "
|
|
2632
|
-
case "com.amazonaws.kendra#
|
|
2633
|
-
case "
|
|
2634
|
-
case "com.amazonaws.kendra#
|
|
2635
|
-
case "ValidationException": return [3, 14];
|
|
2636
|
-
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];
|
|
2637
3695
|
}
|
|
2638
|
-
return [3,
|
|
3696
|
+
return [3, 14];
|
|
2639
3697
|
case 2:
|
|
2640
3698
|
_c = [{}];
|
|
2641
3699
|
return [4, deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context)];
|
|
2642
3700
|
case 3:
|
|
2643
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(
|
|
2644
|
-
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];
|
|
2645
3703
|
case 4:
|
|
2646
3704
|
_d = [{}];
|
|
2647
3705
|
return [4, deserializeAws_json1_1ConflictExceptionResponse(parsedOutput, context)];
|
|
2648
3706
|
case 5:
|
|
2649
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(
|
|
2650
|
-
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];
|
|
2651
3709
|
case 6:
|
|
2652
3710
|
_e = [{}];
|
|
2653
3711
|
return [4, deserializeAws_json1_1InternalServerExceptionResponse(parsedOutput, context)];
|
|
2654
3712
|
case 7:
|
|
2655
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(
|
|
2656
|
-
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];
|
|
2657
3715
|
case 8:
|
|
2658
3716
|
_f = [{}];
|
|
2659
3717
|
return [4, deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
2660
3718
|
case 9:
|
|
2661
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(
|
|
2662
|
-
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];
|
|
2663
3721
|
case 10:
|
|
2664
3722
|
_g = [{}];
|
|
2665
|
-
return [4,
|
|
3723
|
+
return [4, deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context)];
|
|
2666
3724
|
case 11:
|
|
2667
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(
|
|
2668
|
-
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];
|
|
2669
3727
|
case 12:
|
|
2670
3728
|
_h = [{}];
|
|
2671
|
-
return [4,
|
|
3729
|
+
return [4, deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context)];
|
|
2672
3730
|
case 13:
|
|
2673
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _h.concat([(
|
|
2674
|
-
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];
|
|
2675
3733
|
case 14:
|
|
2676
|
-
|
|
2677
|
-
|
|
3734
|
+
parsedBody = parsedOutput.body;
|
|
3735
|
+
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
3736
|
+
response = __assign(__assign({}, parsedBody), { name: "" + errorCode, message: parsedBody.message || parsedBody.Message || errorCode, $fault: "client", $metadata: deserializeMetadata(output) });
|
|
3737
|
+
_k.label = 15;
|
|
2678
3738
|
case 15:
|
|
2679
|
-
|
|
2680
|
-
|
|
2681
|
-
|
|
3739
|
+
message = response.message || response.Message || errorCode;
|
|
3740
|
+
response.message = message;
|
|
3741
|
+
delete response.Message;
|
|
3742
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
3743
|
+
}
|
|
3744
|
+
});
|
|
3745
|
+
}); };
|
|
3746
|
+
export var deserializeAws_json1_1ListEntityPersonasCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3747
|
+
var data, contents, response;
|
|
3748
|
+
return __generator(this, function (_a) {
|
|
3749
|
+
switch (_a.label) {
|
|
3750
|
+
case 0:
|
|
3751
|
+
if (output.statusCode >= 300) {
|
|
3752
|
+
return [2, deserializeAws_json1_1ListEntityPersonasCommandError(output, context)];
|
|
3753
|
+
}
|
|
3754
|
+
return [4, parseBody(output.body, context)];
|
|
3755
|
+
case 1:
|
|
3756
|
+
data = _a.sent();
|
|
3757
|
+
contents = {};
|
|
3758
|
+
contents = deserializeAws_json1_1ListEntityPersonasResponse(data, context);
|
|
3759
|
+
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
3760
|
+
return [2, Promise.resolve(response)];
|
|
3761
|
+
}
|
|
3762
|
+
});
|
|
3763
|
+
}); };
|
|
3764
|
+
var deserializeAws_json1_1ListEntityPersonasCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3765
|
+
var parsedOutput, _a, response, errorCode, _b, _c, _d, _e, _f, _g, parsedBody, message;
|
|
3766
|
+
var _h;
|
|
3767
|
+
return __generator(this, function (_j) {
|
|
3768
|
+
switch (_j.label) {
|
|
3769
|
+
case 0:
|
|
3770
|
+
_a = [__assign({}, output)];
|
|
3771
|
+
_h = {};
|
|
3772
|
+
return [4, parseBody(output.body, context)];
|
|
3773
|
+
case 1:
|
|
3774
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_h.body = _j.sent(), _h)]));
|
|
3775
|
+
errorCode = "UnknownError";
|
|
3776
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3777
|
+
_b = errorCode;
|
|
3778
|
+
switch (_b) {
|
|
3779
|
+
case "AccessDeniedException": return [3, 2];
|
|
3780
|
+
case "com.amazonaws.kendra#AccessDeniedException": return [3, 2];
|
|
3781
|
+
case "InternalServerException": return [3, 4];
|
|
3782
|
+
case "com.amazonaws.kendra#InternalServerException": return [3, 4];
|
|
3783
|
+
case "ResourceNotFoundException": return [3, 6];
|
|
3784
|
+
case "com.amazonaws.kendra#ResourceNotFoundException": return [3, 6];
|
|
3785
|
+
case "ThrottlingException": return [3, 8];
|
|
3786
|
+
case "com.amazonaws.kendra#ThrottlingException": return [3, 8];
|
|
3787
|
+
case "ValidationException": return [3, 10];
|
|
3788
|
+
case "com.amazonaws.kendra#ValidationException": return [3, 10];
|
|
3789
|
+
}
|
|
3790
|
+
return [3, 12];
|
|
3791
|
+
case 2:
|
|
3792
|
+
_c = [{}];
|
|
3793
|
+
return [4, deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context)];
|
|
3794
|
+
case 3:
|
|
3795
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3796
|
+
return [3, 13];
|
|
3797
|
+
case 4:
|
|
3798
|
+
_d = [{}];
|
|
3799
|
+
return [4, deserializeAws_json1_1InternalServerExceptionResponse(parsedOutput, context)];
|
|
3800
|
+
case 5:
|
|
3801
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3802
|
+
return [3, 13];
|
|
3803
|
+
case 6:
|
|
3804
|
+
_e = [{}];
|
|
3805
|
+
return [4, deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
3806
|
+
case 7:
|
|
3807
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3808
|
+
return [3, 13];
|
|
3809
|
+
case 8:
|
|
3810
|
+
_f = [{}];
|
|
3811
|
+
return [4, deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context)];
|
|
3812
|
+
case 9:
|
|
3813
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3814
|
+
return [3, 13];
|
|
3815
|
+
case 10:
|
|
3816
|
+
_g = [{}];
|
|
3817
|
+
return [4, deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context)];
|
|
3818
|
+
case 11:
|
|
3819
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3820
|
+
return [3, 13];
|
|
3821
|
+
case 12:
|
|
2682
3822
|
parsedBody = parsedOutput.body;
|
|
2683
3823
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
2684
3824
|
response = __assign(__assign({}, parsedBody), { name: "" + errorCode, message: parsedBody.message || parsedBody.Message || errorCode, $fault: "client", $metadata: deserializeMetadata(output) });
|
|
2685
|
-
|
|
2686
|
-
case
|
|
3825
|
+
_j.label = 13;
|
|
3826
|
+
case 13:
|
|
2687
3827
|
message = response.message || response.Message || errorCode;
|
|
2688
3828
|
response.message = message;
|
|
2689
3829
|
delete response.Message;
|
|
@@ -2691,25 +3831,25 @@ var deserializeAws_json1_1GetQuerySuggestionsCommandError = function (output, co
|
|
|
2691
3831
|
}
|
|
2692
3832
|
});
|
|
2693
3833
|
}); };
|
|
2694
|
-
export var
|
|
3834
|
+
export var deserializeAws_json1_1ListExperienceEntitiesCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2695
3835
|
var data, contents, response;
|
|
2696
3836
|
return __generator(this, function (_a) {
|
|
2697
3837
|
switch (_a.label) {
|
|
2698
3838
|
case 0:
|
|
2699
3839
|
if (output.statusCode >= 300) {
|
|
2700
|
-
return [2,
|
|
3840
|
+
return [2, deserializeAws_json1_1ListExperienceEntitiesCommandError(output, context)];
|
|
2701
3841
|
}
|
|
2702
3842
|
return [4, parseBody(output.body, context)];
|
|
2703
3843
|
case 1:
|
|
2704
3844
|
data = _a.sent();
|
|
2705
3845
|
contents = {};
|
|
2706
|
-
contents =
|
|
3846
|
+
contents = deserializeAws_json1_1ListExperienceEntitiesResponse(data, context);
|
|
2707
3847
|
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
2708
3848
|
return [2, Promise.resolve(response)];
|
|
2709
3849
|
}
|
|
2710
3850
|
});
|
|
2711
3851
|
}); };
|
|
2712
|
-
var
|
|
3852
|
+
var deserializeAws_json1_1ListExperienceEntitiesCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2713
3853
|
var parsedOutput, _a, response, errorCode, _b, _c, _d, _e, _f, _g, parsedBody, message;
|
|
2714
3854
|
var _h;
|
|
2715
3855
|
return __generator(this, function (_j) {
|
|
@@ -2779,95 +3919,87 @@ var deserializeAws_json1_1ListDataSourcesCommandError = function (output, contex
|
|
|
2779
3919
|
}
|
|
2780
3920
|
});
|
|
2781
3921
|
}); };
|
|
2782
|
-
export var
|
|
3922
|
+
export var deserializeAws_json1_1ListExperiencesCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2783
3923
|
var data, contents, response;
|
|
2784
3924
|
return __generator(this, function (_a) {
|
|
2785
3925
|
switch (_a.label) {
|
|
2786
3926
|
case 0:
|
|
2787
3927
|
if (output.statusCode >= 300) {
|
|
2788
|
-
return [2,
|
|
3928
|
+
return [2, deserializeAws_json1_1ListExperiencesCommandError(output, context)];
|
|
2789
3929
|
}
|
|
2790
3930
|
return [4, parseBody(output.body, context)];
|
|
2791
3931
|
case 1:
|
|
2792
3932
|
data = _a.sent();
|
|
2793
3933
|
contents = {};
|
|
2794
|
-
contents =
|
|
3934
|
+
contents = deserializeAws_json1_1ListExperiencesResponse(data, context);
|
|
2795
3935
|
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
2796
3936
|
return [2, Promise.resolve(response)];
|
|
2797
3937
|
}
|
|
2798
3938
|
});
|
|
2799
3939
|
}); };
|
|
2800
|
-
var
|
|
2801
|
-
var parsedOutput, _a, response, errorCode, _b, _c, _d, _e, _f, _g,
|
|
2802
|
-
var
|
|
2803
|
-
return __generator(this, function (
|
|
2804
|
-
switch (
|
|
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) {
|
|
2805
3945
|
case 0:
|
|
2806
3946
|
_a = [__assign({}, output)];
|
|
2807
|
-
|
|
3947
|
+
_h = {};
|
|
2808
3948
|
return [4, parseBody(output.body, context)];
|
|
2809
3949
|
case 1:
|
|
2810
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(
|
|
3950
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_h.body = _j.sent(), _h)]));
|
|
2811
3951
|
errorCode = "UnknownError";
|
|
2812
3952
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2813
3953
|
_b = errorCode;
|
|
2814
3954
|
switch (_b) {
|
|
2815
3955
|
case "AccessDeniedException": return [3, 2];
|
|
2816
3956
|
case "com.amazonaws.kendra#AccessDeniedException": return [3, 2];
|
|
2817
|
-
case "
|
|
2818
|
-
case "com.amazonaws.kendra#
|
|
2819
|
-
case "
|
|
2820
|
-
case "com.amazonaws.kendra#
|
|
2821
|
-
case "
|
|
2822
|
-
case "com.amazonaws.kendra#
|
|
2823
|
-
case "
|
|
2824
|
-
case "com.amazonaws.kendra#
|
|
2825
|
-
case "ValidationException": return [3, 12];
|
|
2826
|
-
case "com.amazonaws.kendra#ValidationException": return [3, 12];
|
|
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];
|
|
2827
3965
|
}
|
|
2828
|
-
return [3,
|
|
3966
|
+
return [3, 12];
|
|
2829
3967
|
case 2:
|
|
2830
3968
|
_c = [{}];
|
|
2831
3969
|
return [4, deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context)];
|
|
2832
3970
|
case 3:
|
|
2833
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(
|
|
2834
|
-
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];
|
|
2835
3973
|
case 4:
|
|
2836
3974
|
_d = [{}];
|
|
2837
|
-
return [4,
|
|
3975
|
+
return [4, deserializeAws_json1_1InternalServerExceptionResponse(parsedOutput, context)];
|
|
2838
3976
|
case 5:
|
|
2839
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(
|
|
2840
|
-
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];
|
|
2841
3979
|
case 6:
|
|
2842
3980
|
_e = [{}];
|
|
2843
|
-
return [4,
|
|
3981
|
+
return [4, deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
2844
3982
|
case 7:
|
|
2845
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(
|
|
2846
|
-
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];
|
|
2847
3985
|
case 8:
|
|
2848
3986
|
_f = [{}];
|
|
2849
|
-
return [4,
|
|
3987
|
+
return [4, deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context)];
|
|
2850
3988
|
case 9:
|
|
2851
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(
|
|
2852
|
-
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];
|
|
2853
3991
|
case 10:
|
|
2854
3992
|
_g = [{}];
|
|
2855
|
-
return [4,
|
|
3993
|
+
return [4, deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context)];
|
|
2856
3994
|
case 11:
|
|
2857
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(
|
|
2858
|
-
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];
|
|
2859
3997
|
case 12:
|
|
2860
|
-
_h = [{}];
|
|
2861
|
-
return [4, deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context)];
|
|
2862
|
-
case 13:
|
|
2863
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _h.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2864
|
-
return [3, 15];
|
|
2865
|
-
case 14:
|
|
2866
3998
|
parsedBody = parsedOutput.body;
|
|
2867
3999
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
2868
4000
|
response = __assign(__assign({}, parsedBody), { name: "" + errorCode, message: parsedBody.message || parsedBody.Message || errorCode, $fault: "client", $metadata: deserializeMetadata(output) });
|
|
2869
|
-
|
|
2870
|
-
case
|
|
4001
|
+
_j.label = 13;
|
|
4002
|
+
case 13:
|
|
2871
4003
|
message = response.message || response.Message || errorCode;
|
|
2872
4004
|
response.message = message;
|
|
2873
4005
|
delete response.Message;
|
|
@@ -4171,6 +5303,102 @@ var deserializeAws_json1_1UpdateDataSourceCommandError = function (output, conte
|
|
|
4171
5303
|
}
|
|
4172
5304
|
});
|
|
4173
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
|
+
}); };
|
|
4174
5402
|
export var deserializeAws_json1_1UpdateIndexCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
4175
5403
|
var response;
|
|
4176
5404
|
return __generator(this, function (_a) {
|
|
@@ -4590,6 +5818,15 @@ var deserializeAws_json1_1InternalServerExceptionResponse = function (parsedOutp
|
|
|
4590
5818
|
return [2, contents];
|
|
4591
5819
|
});
|
|
4592
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
|
+
}); };
|
|
4593
5830
|
var deserializeAws_json1_1ResourceAlreadyExistExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
4594
5831
|
var body, deserialized, contents;
|
|
4595
5832
|
return __generator(this, function (_a) {
|
|
@@ -4660,6 +5897,26 @@ var serializeAws_json1_1AclConfiguration = function (input, context) {
|
|
|
4660
5897
|
return __assign({}, (input.AllowedGroupsColumnName !== undefined &&
|
|
4661
5898
|
input.AllowedGroupsColumnName !== null && { AllowedGroupsColumnName: input.AllowedGroupsColumnName }));
|
|
4662
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
|
+
};
|
|
4663
5920
|
var serializeAws_json1_1AttributeFilter = function (input, context) {
|
|
4664
5921
|
return __assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.AndAllFilters !== undefined &&
|
|
4665
5922
|
input.AndAllFilters !== null && {
|
|
@@ -4726,7 +5983,10 @@ var serializeAws_json1_1BatchGetDocumentStatusRequest = function (input, context
|
|
|
4726
5983
|
})), (input.IndexId !== undefined && input.IndexId !== null && { IndexId: input.IndexId }));
|
|
4727
5984
|
};
|
|
4728
5985
|
var serializeAws_json1_1BatchPutDocumentRequest = function (input, context) {
|
|
4729
|
-
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 &&
|
|
4730
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 }));
|
|
4731
5991
|
};
|
|
4732
5992
|
var serializeAws_json1_1CapacityUnitsConfiguration = function (input, context) {
|
|
@@ -4907,13 +6167,31 @@ var serializeAws_json1_1ConfluenceSpaceToIndexFieldMapping = function (input, co
|
|
|
4907
6167
|
var serializeAws_json1_1ConnectionConfiguration = function (input, context) {
|
|
4908
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 }));
|
|
4909
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
|
+
};
|
|
4910
6178
|
var serializeAws_json1_1CreateDataSourceRequest = function (input, context) {
|
|
4911
6179
|
var _a;
|
|
4912
|
-
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 &&
|
|
4913
6181
|
input.Configuration !== null && {
|
|
4914
6182
|
Configuration: serializeAws_json1_1DataSourceConfiguration(input.Configuration, context),
|
|
6183
|
+
})), (input.CustomDocumentEnrichmentConfiguration !== undefined &&
|
|
6184
|
+
input.CustomDocumentEnrichmentConfiguration !== null && {
|
|
6185
|
+
CustomDocumentEnrichmentConfiguration: serializeAws_json1_1CustomDocumentEnrichmentConfiguration(input.CustomDocumentEnrichmentConfiguration, context),
|
|
4915
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 }));
|
|
4916
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
|
+
};
|
|
4917
6195
|
var serializeAws_json1_1CreateFaqRequest = function (input, context) {
|
|
4918
6196
|
var _a;
|
|
4919
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 &&
|
|
@@ -4943,6 +6221,18 @@ var serializeAws_json1_1CreateThesaurusRequest = function (input, context) {
|
|
|
4943
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 &&
|
|
4944
6222
|
input.SourceS3Path !== null && { SourceS3Path: serializeAws_json1_1S3Path(input.SourceS3Path, context) })), (input.Tags !== undefined && input.Tags !== null && { Tags: serializeAws_json1_1TagList(input.Tags, context) }));
|
|
4945
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
|
+
};
|
|
4946
6236
|
var serializeAws_json1_1DatabaseConfiguration = function (input, context) {
|
|
4947
6237
|
return __assign(__assign(__assign(__assign(__assign(__assign({}, (input.AclConfiguration !== undefined &&
|
|
4948
6238
|
input.AclConfiguration !== null && {
|
|
@@ -5008,6 +6298,16 @@ var serializeAws_json1_1DataSourceGroups = function (input, context) {
|
|
|
5008
6298
|
return serializeAws_json1_1DataSourceGroup(entry, context);
|
|
5009
6299
|
});
|
|
5010
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
|
+
};
|
|
5011
6311
|
var serializeAws_json1_1DataSourceInclusionsExclusionsStrings = function (input, context) {
|
|
5012
6312
|
return input
|
|
5013
6313
|
.filter(function (e) { return e != null; })
|
|
@@ -5048,6 +6348,9 @@ var serializeAws_json1_1DataSourceVpcConfiguration = function (input, context) {
|
|
|
5048
6348
|
var serializeAws_json1_1DeleteDataSourceRequest = function (input, context) {
|
|
5049
6349
|
return __assign(__assign({}, (input.Id !== undefined && input.Id !== null && { Id: input.Id })), (input.IndexId !== undefined && input.IndexId !== null && { IndexId: input.IndexId }));
|
|
5050
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
|
+
};
|
|
5051
6354
|
var serializeAws_json1_1DeleteFaqRequest = function (input, context) {
|
|
5052
6355
|
return __assign(__assign({}, (input.Id !== undefined && input.Id !== null && { Id: input.Id })), (input.IndexId !== undefined && input.IndexId !== null && { IndexId: input.IndexId }));
|
|
5053
6356
|
};
|
|
@@ -5066,6 +6369,9 @@ var serializeAws_json1_1DeleteThesaurusRequest = function (input, context) {
|
|
|
5066
6369
|
var serializeAws_json1_1DescribeDataSourceRequest = function (input, context) {
|
|
5067
6370
|
return __assign(__assign({}, (input.Id !== undefined && input.Id !== null && { Id: input.Id })), (input.IndexId !== undefined && input.IndexId !== null && { IndexId: input.IndexId }));
|
|
5068
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
|
+
};
|
|
5069
6375
|
var serializeAws_json1_1DescribeFaqRequest = function (input, context) {
|
|
5070
6376
|
return __assign(__assign({}, (input.Id !== undefined && input.Id !== null && { Id: input.Id })), (input.IndexId !== undefined && input.IndexId !== null && { IndexId: input.IndexId }));
|
|
5071
6377
|
};
|
|
@@ -5084,6 +6390,26 @@ var serializeAws_json1_1DescribeQuerySuggestionsConfigRequest = function (input,
|
|
|
5084
6390
|
var serializeAws_json1_1DescribeThesaurusRequest = function (input, context) {
|
|
5085
6391
|
return __assign(__assign({}, (input.Id !== undefined && input.Id !== null && { Id: input.Id })), (input.IndexId !== undefined && input.IndexId !== null && { IndexId: input.IndexId }));
|
|
5086
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
|
+
};
|
|
5087
6413
|
var serializeAws_json1_1Document = function (input, context) {
|
|
5088
6414
|
return __assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.AccessControlList !== undefined &&
|
|
5089
6415
|
input.AccessControlList !== null && {
|
|
@@ -5101,6 +6427,15 @@ var serializeAws_json1_1DocumentAttribute = function (input, context) {
|
|
|
5101
6427
|
return __assign(__assign({}, (input.Key !== undefined && input.Key !== null && { Key: input.Key })), (input.Value !== undefined &&
|
|
5102
6428
|
input.Value !== null && { Value: serializeAws_json1_1DocumentAttributeValue(input.Value, context) }));
|
|
5103
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
|
+
};
|
|
5104
6439
|
var serializeAws_json1_1DocumentAttributeKeyList = function (input, context) {
|
|
5105
6440
|
return input
|
|
5106
6441
|
.filter(function (e) { return e != null; })
|
|
@@ -5131,6 +6466,16 @@ var serializeAws_json1_1DocumentAttributeStringListValue = function (input, cont
|
|
|
5131
6466
|
return entry;
|
|
5132
6467
|
});
|
|
5133
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
|
+
};
|
|
5134
6479
|
var serializeAws_json1_1DocumentAttributeValue = function (input, context) {
|
|
5135
6480
|
return __assign(__assign(__assign(__assign({}, (input.DateValue !== undefined &&
|
|
5136
6481
|
input.DateValue !== null && { DateValue: Math.round(input.DateValue.getTime() / 1000) })), (input.LongValue !== undefined && input.LongValue !== null && { LongValue: input.LongValue })), (input.StringListValue !== undefined &&
|
|
@@ -5206,6 +6551,32 @@ var serializeAws_json1_1DocumentRelevanceOverrideConfigurationList = function (i
|
|
|
5206
6551
|
var serializeAws_json1_1DocumentsMetadataConfiguration = function (input, context) {
|
|
5207
6552
|
return __assign({}, (input.S3Prefix !== undefined && input.S3Prefix !== null && { S3Prefix: input.S3Prefix }));
|
|
5208
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
|
+
};
|
|
5209
6580
|
var serializeAws_json1_1ExcludeMimeTypesList = function (input, context) {
|
|
5210
6581
|
return input
|
|
5211
6582
|
.filter(function (e) { return e != null; })
|
|
@@ -5236,6 +6607,15 @@ var serializeAws_json1_1ExcludeUserAccountsList = function (input, context) {
|
|
|
5236
6607
|
return entry;
|
|
5237
6608
|
});
|
|
5238
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
|
+
};
|
|
5239
6619
|
var serializeAws_json1_1Facet = function (input, context) {
|
|
5240
6620
|
return __assign({}, (input.DocumentAttributeKey !== undefined &&
|
|
5241
6621
|
input.DocumentAttributeKey !== null && { DocumentAttributeKey: input.DocumentAttributeKey }));
|
|
@@ -5250,10 +6630,23 @@ var serializeAws_json1_1FacetList = function (input, context) {
|
|
|
5250
6630
|
return serializeAws_json1_1Facet(entry, context);
|
|
5251
6631
|
});
|
|
5252
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
|
+
};
|
|
5253
6643
|
var serializeAws_json1_1GetQuerySuggestionsRequest = function (input, context) {
|
|
5254
6644
|
return __assign(__assign(__assign({}, (input.IndexId !== undefined && input.IndexId !== null && { IndexId: input.IndexId })), (input.MaxSuggestionsCount !== undefined &&
|
|
5255
6645
|
input.MaxSuggestionsCount !== null && { MaxSuggestionsCount: input.MaxSuggestionsCount })), (input.QueryText !== undefined && input.QueryText !== null && { QueryText: input.QueryText }));
|
|
5256
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
|
+
};
|
|
5257
6650
|
var serializeAws_json1_1GoogleDriveConfiguration = function (input, context) {
|
|
5258
6651
|
return __assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.ExcludeMimeTypes !== undefined &&
|
|
5259
6652
|
input.ExcludeMimeTypes !== null && {
|
|
@@ -5309,6 +6702,30 @@ var serializeAws_json1_1HierarchicalPrincipalList = function (input, context) {
|
|
|
5309
6702
|
return serializeAws_json1_1HierarchicalPrincipal(entry, context);
|
|
5310
6703
|
});
|
|
5311
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
|
+
};
|
|
5312
6729
|
var serializeAws_json1_1JsonTokenTypeConfiguration = function (input, context) {
|
|
5313
6730
|
return __assign(__assign({}, (input.GroupAttributeField !== undefined &&
|
|
5314
6731
|
input.GroupAttributeField !== null && { GroupAttributeField: input.GroupAttributeField })), (input.UserNameAttributeField !== undefined &&
|
|
@@ -5329,6 +6746,15 @@ var serializeAws_json1_1ListDataSourceSyncJobsRequest = function (input, context
|
|
|
5329
6746
|
StartTimeFilter: serializeAws_json1_1TimeRange(input.StartTimeFilter, context),
|
|
5330
6747
|
})), (input.StatusFilter !== undefined && input.StatusFilter !== null && { StatusFilter: input.StatusFilter }));
|
|
5331
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
|
+
};
|
|
5332
6758
|
var serializeAws_json1_1ListFaqsRequest = function (input, context) {
|
|
5333
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 }));
|
|
5334
6760
|
};
|
|
@@ -5793,11 +7219,20 @@ var serializeAws_json1_1UntagResourceRequest = function (input, context) {
|
|
|
5793
7219
|
input.TagKeys !== null && { TagKeys: serializeAws_json1_1TagKeyList(input.TagKeys, context) }));
|
|
5794
7220
|
};
|
|
5795
7221
|
var serializeAws_json1_1UpdateDataSourceRequest = function (input, context) {
|
|
5796
|
-
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 &&
|
|
5797
7223
|
input.Configuration !== null && {
|
|
5798
7224
|
Configuration: serializeAws_json1_1DataSourceConfiguration(input.Configuration, context),
|
|
7225
|
+
})), (input.CustomDocumentEnrichmentConfiguration !== undefined &&
|
|
7226
|
+
input.CustomDocumentEnrichmentConfiguration !== null && {
|
|
7227
|
+
CustomDocumentEnrichmentConfiguration: serializeAws_json1_1CustomDocumentEnrichmentConfiguration(input.CustomDocumentEnrichmentConfiguration, context),
|
|
5799
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 }));
|
|
5800
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
|
+
};
|
|
5801
7236
|
var serializeAws_json1_1UpdateIndexRequest = function (input, context) {
|
|
5802
7237
|
return __assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.CapacityUnits !== undefined &&
|
|
5803
7238
|
input.CapacityUnits !== null && {
|
|
@@ -5855,6 +7290,10 @@ var serializeAws_json1_1UserGroupResolutionConfiguration = function (input, cont
|
|
|
5855
7290
|
return __assign({}, (input.UserGroupResolutionMode !== undefined &&
|
|
5856
7291
|
input.UserGroupResolutionMode !== null && { UserGroupResolutionMode: input.UserGroupResolutionMode }));
|
|
5857
7292
|
};
|
|
7293
|
+
var serializeAws_json1_1UserIdentityConfiguration = function (input, context) {
|
|
7294
|
+
return __assign({}, (input.IdentityAttributeName !== undefined &&
|
|
7295
|
+
input.IdentityAttributeName !== null && { IdentityAttributeName: input.IdentityAttributeName }));
|
|
7296
|
+
};
|
|
5858
7297
|
var serializeAws_json1_1UserTokenConfiguration = function (input, context) {
|
|
5859
7298
|
return __assign(__assign({}, (input.JsonTokenTypeConfiguration !== undefined &&
|
|
5860
7299
|
input.JsonTokenTypeConfiguration !== null && {
|
|
@@ -5958,6 +7397,30 @@ var deserializeAws_json1_1AdditionalResultAttributeValue = function (output, con
|
|
|
5958
7397
|
: undefined,
|
|
5959
7398
|
};
|
|
5960
7399
|
};
|
|
7400
|
+
var deserializeAws_json1_1AssociateEntitiesToExperienceFailedEntityList = function (output, context) {
|
|
7401
|
+
return (output || [])
|
|
7402
|
+
.filter(function (e) { return e != null; })
|
|
7403
|
+
.map(function (entry) {
|
|
7404
|
+
if (entry === null) {
|
|
7405
|
+
return null;
|
|
7406
|
+
}
|
|
7407
|
+
return deserializeAws_json1_1FailedEntity(entry, context);
|
|
7408
|
+
});
|
|
7409
|
+
};
|
|
7410
|
+
var deserializeAws_json1_1AssociateEntitiesToExperienceResponse = function (output, context) {
|
|
7411
|
+
return {
|
|
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)
|
|
7421
|
+
: undefined,
|
|
7422
|
+
};
|
|
7423
|
+
};
|
|
5961
7424
|
var deserializeAws_json1_1AuthenticationConfiguration = function (output, context) {
|
|
5962
7425
|
return {
|
|
5963
7426
|
BasicAuthentication: output.BasicAuthentication !== undefined && output.BasicAuthentication !== null
|
|
@@ -6243,11 +7706,27 @@ var deserializeAws_json1_1ConnectionConfiguration = function (output, context) {
|
|
|
6243
7706
|
TableName: __expectString(output.TableName),
|
|
6244
7707
|
};
|
|
6245
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
|
+
};
|
|
6246
7720
|
var deserializeAws_json1_1CreateDataSourceResponse = function (output, context) {
|
|
6247
7721
|
return {
|
|
6248
7722
|
Id: __expectString(output.Id),
|
|
6249
7723
|
};
|
|
6250
7724
|
};
|
|
7725
|
+
var deserializeAws_json1_1CreateExperienceResponse = function (output, context) {
|
|
7726
|
+
return {
|
|
7727
|
+
Id: __expectString(output.Id),
|
|
7728
|
+
};
|
|
7729
|
+
};
|
|
6251
7730
|
var deserializeAws_json1_1CreateFaqResponse = function (output, context) {
|
|
6252
7731
|
return {
|
|
6253
7732
|
Id: __expectString(output.Id),
|
|
@@ -6268,6 +7747,20 @@ var deserializeAws_json1_1CreateThesaurusResponse = function (output, context) {
|
|
|
6268
7747
|
Id: __expectString(output.Id),
|
|
6269
7748
|
};
|
|
6270
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
|
+
};
|
|
6271
7764
|
var deserializeAws_json1_1DatabaseConfiguration = function (output, context) {
|
|
6272
7765
|
return {
|
|
6273
7766
|
AclConfiguration: output.AclConfiguration !== undefined && output.AclConfiguration !== null
|
|
@@ -6322,6 +7815,16 @@ var deserializeAws_json1_1DataSourceConfiguration = function (output, context) {
|
|
|
6322
7815
|
: undefined,
|
|
6323
7816
|
};
|
|
6324
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
|
+
};
|
|
6325
7828
|
var deserializeAws_json1_1DataSourceInclusionsExclusionsStrings = function (output, context) {
|
|
6326
7829
|
return (output || [])
|
|
6327
7830
|
.filter(function (e) { return e != null; })
|
|
@@ -6421,6 +7924,9 @@ var deserializeAws_json1_1DataSourceVpcConfiguration = function (output, context
|
|
|
6421
7924
|
: undefined,
|
|
6422
7925
|
};
|
|
6423
7926
|
};
|
|
7927
|
+
var deserializeAws_json1_1DeleteExperienceResponse = function (output, context) {
|
|
7928
|
+
return {};
|
|
7929
|
+
};
|
|
6424
7930
|
var deserializeAws_json1_1DescribeDataSourceResponse = function (output, context) {
|
|
6425
7931
|
return {
|
|
6426
7932
|
Configuration: output.Configuration !== undefined && output.Configuration !== null
|
|
@@ -6429,6 +7935,10 @@ var deserializeAws_json1_1DescribeDataSourceResponse = function (output, context
|
|
|
6429
7935
|
CreatedAt: output.CreatedAt !== undefined && output.CreatedAt !== null
|
|
6430
7936
|
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.CreatedAt)))
|
|
6431
7937
|
: undefined,
|
|
7938
|
+
CustomDocumentEnrichmentConfiguration: output.CustomDocumentEnrichmentConfiguration !== undefined &&
|
|
7939
|
+
output.CustomDocumentEnrichmentConfiguration !== null
|
|
7940
|
+
? deserializeAws_json1_1CustomDocumentEnrichmentConfiguration(output.CustomDocumentEnrichmentConfiguration, context)
|
|
7941
|
+
: undefined,
|
|
6432
7942
|
Description: __expectString(output.Description),
|
|
6433
7943
|
ErrorMessage: __expectString(output.ErrorMessage),
|
|
6434
7944
|
Id: __expectString(output.Id),
|
|
@@ -6444,6 +7954,29 @@ var deserializeAws_json1_1DescribeDataSourceResponse = function (output, context
|
|
|
6444
7954
|
: undefined,
|
|
6445
7955
|
};
|
|
6446
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
|
+
};
|
|
6447
7980
|
var deserializeAws_json1_1DescribeFaqResponse = function (output, context) {
|
|
6448
7981
|
return {
|
|
6449
7982
|
CreatedAt: output.CreatedAt !== undefined && output.CreatedAt !== null
|
|
@@ -6574,6 +8107,20 @@ var deserializeAws_json1_1DescribeThesaurusResponse = function (output, context)
|
|
|
6574
8107
|
: undefined,
|
|
6575
8108
|
};
|
|
6576
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
|
+
};
|
|
6577
8124
|
var deserializeAws_json1_1DocumentAttribute = function (output, context) {
|
|
6578
8125
|
return {
|
|
6579
8126
|
Key: __expectString(output.Key),
|
|
@@ -6582,6 +8129,15 @@ var deserializeAws_json1_1DocumentAttribute = function (output, context) {
|
|
|
6582
8129
|
: undefined,
|
|
6583
8130
|
};
|
|
6584
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)
|
|
8137
|
+
: undefined,
|
|
8138
|
+
Operator: __expectString(output.Operator),
|
|
8139
|
+
};
|
|
8140
|
+
};
|
|
6585
8141
|
var deserializeAws_json1_1DocumentAttributeList = function (output, context) {
|
|
6586
8142
|
return (output || [])
|
|
6587
8143
|
.filter(function (e) { return e != null; })
|
|
@@ -6602,6 +8158,15 @@ var deserializeAws_json1_1DocumentAttributeStringListValue = function (output, c
|
|
|
6602
8158
|
return __expectString(entry);
|
|
6603
8159
|
});
|
|
6604
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
|
+
};
|
|
6605
8170
|
var deserializeAws_json1_1DocumentAttributeValue = function (output, context) {
|
|
6606
8171
|
return {
|
|
6607
8172
|
DateValue: output.DateValue !== undefined && output.DateValue !== null
|
|
@@ -6669,6 +8234,15 @@ var deserializeAws_json1_1DocumentStatusList = function (output, context) {
|
|
|
6669
8234
|
return deserializeAws_json1_1Status(entry, context);
|
|
6670
8235
|
});
|
|
6671
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
|
+
};
|
|
6672
8246
|
var deserializeAws_json1_1ExcludeMimeTypesList = function (output, context) {
|
|
6673
8247
|
return (output || [])
|
|
6674
8248
|
.filter(function (e) { return e != null; })
|
|
@@ -6699,6 +8273,74 @@ var deserializeAws_json1_1ExcludeUserAccountsList = function (output, context) {
|
|
|
6699
8273
|
return __expectString(entry);
|
|
6700
8274
|
});
|
|
6701
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
|
+
};
|
|
6702
8344
|
var deserializeAws_json1_1FacetResult = function (output, context) {
|
|
6703
8345
|
return {
|
|
6704
8346
|
DocumentAttributeKey: __expectString(output.DocumentAttributeKey),
|
|
@@ -6718,6 +8360,32 @@ var deserializeAws_json1_1FacetResultList = function (output, context) {
|
|
|
6718
8360
|
return deserializeAws_json1_1FacetResult(entry, context);
|
|
6719
8361
|
});
|
|
6720
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
|
+
};
|
|
6721
8389
|
var deserializeAws_json1_1FaqStatistics = function (output, context) {
|
|
6722
8390
|
return {
|
|
6723
8391
|
IndexedQuestionAnswersCount: __expectInt32(output.IndexedQuestionAnswersCount),
|
|
@@ -6756,6 +8424,20 @@ var deserializeAws_json1_1GetQuerySuggestionsResponse = function (output, contex
|
|
|
6756
8424
|
: undefined,
|
|
6757
8425
|
};
|
|
6758
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
|
+
};
|
|
6759
8441
|
var deserializeAws_json1_1GoogleDriveConfiguration = function (output, context) {
|
|
6760
8442
|
return {
|
|
6761
8443
|
ExcludeMimeTypes: output.ExcludeMimeTypes !== undefined && output.ExcludeMimeTypes !== null
|
|
@@ -6826,6 +8508,15 @@ var deserializeAws_json1_1HighlightList = function (output, context) {
|
|
|
6826
8508
|
return deserializeAws_json1_1Highlight(entry, context);
|
|
6827
8509
|
});
|
|
6828
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
|
+
};
|
|
6829
8520
|
var deserializeAws_json1_1IndexConfigurationSummary = function (output, context) {
|
|
6830
8521
|
return {
|
|
6831
8522
|
CreatedAt: output.CreatedAt !== undefined && output.CreatedAt !== null
|
|
@@ -6860,11 +8551,37 @@ var deserializeAws_json1_1IndexStatistics = function (output, context) {
|
|
|
6860
8551
|
: undefined,
|
|
6861
8552
|
};
|
|
6862
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
|
+
};
|
|
6863
8575
|
var deserializeAws_json1_1InternalServerException = function (output, context) {
|
|
6864
8576
|
return {
|
|
6865
8577
|
Message: __expectString(output.Message),
|
|
6866
8578
|
};
|
|
6867
8579
|
};
|
|
8580
|
+
var deserializeAws_json1_1InvalidRequestException = function (output, context) {
|
|
8581
|
+
return {
|
|
8582
|
+
Message: __expectString(output.Message),
|
|
8583
|
+
};
|
|
8584
|
+
};
|
|
6868
8585
|
var deserializeAws_json1_1JsonTokenTypeConfiguration = function (output, context) {
|
|
6869
8586
|
return {
|
|
6870
8587
|
GroupAttributeField: __expectString(output.GroupAttributeField),
|
|
@@ -6898,6 +8615,30 @@ var deserializeAws_json1_1ListDataSourceSyncJobsResponse = function (output, con
|
|
|
6898
8615
|
NextToken: __expectString(output.NextToken),
|
|
6899
8616
|
};
|
|
6900
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
|
+
};
|
|
6901
8642
|
var deserializeAws_json1_1ListFaqsResponse = function (output, context) {
|
|
6902
8643
|
return {
|
|
6903
8644
|
FaqSummaryItems: output.FaqSummaryItems !== undefined && output.FaqSummaryItems !== null
|
|
@@ -6994,6 +8735,28 @@ var deserializeAws_json1_1OneDriveUsers = function (output, context) {
|
|
|
6994
8735
|
: undefined,
|
|
6995
8736
|
};
|
|
6996
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
|
+
};
|
|
6997
8760
|
var deserializeAws_json1_1ProxyConfiguration = function (output, context) {
|
|
6998
8761
|
return {
|
|
6999
8762
|
Credentials: __expectString(output.Credentials),
|
|
@@ -7411,6 +9174,36 @@ var deserializeAws_json1_1SiteMapsList = function (output, context) {
|
|
|
7411
9174
|
return __expectString(entry);
|
|
7412
9175
|
});
|
|
7413
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
|
+
};
|
|
7414
9207
|
var deserializeAws_json1_1SqlConfiguration = function (output, context) {
|
|
7415
9208
|
return {
|
|
7416
9209
|
QueryIdentifiersEnclosingOption: __expectString(output.QueryIdentifiersEnclosingOption),
|
|
@@ -7549,6 +9342,16 @@ var deserializeAws_json1_1ThrottlingException = function (output, context) {
|
|
|
7549
9342
|
Message: __expectString(output.Message),
|
|
7550
9343
|
};
|
|
7551
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
|
+
};
|
|
7552
9355
|
var deserializeAws_json1_1UntagResourceResponse = function (output, context) {
|
|
7553
9356
|
return {};
|
|
7554
9357
|
};
|
|
@@ -7567,6 +9370,11 @@ var deserializeAws_json1_1UserGroupResolutionConfiguration = function (output, c
|
|
|
7567
9370
|
UserGroupResolutionMode: __expectString(output.UserGroupResolutionMode),
|
|
7568
9371
|
};
|
|
7569
9372
|
};
|
|
9373
|
+
var deserializeAws_json1_1UserIdentityConfiguration = function (output, context) {
|
|
9374
|
+
return {
|
|
9375
|
+
IdentityAttributeName: __expectString(output.IdentityAttributeName),
|
|
9376
|
+
};
|
|
9377
|
+
};
|
|
7570
9378
|
var deserializeAws_json1_1UserTokenConfiguration = function (output, context) {
|
|
7571
9379
|
return {
|
|
7572
9380
|
JsonTokenTypeConfiguration: output.JsonTokenTypeConfiguration !== undefined && output.JsonTokenTypeConfiguration !== null
|