@aws-sdk/client-kendra 3.127.0 → 3.131.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +32 -0
- package/dist-cjs/Kendra.js +75 -0
- package/dist-cjs/commands/CreateAccessControlConfigurationCommand.js +36 -0
- package/dist-cjs/commands/DeleteAccessControlConfigurationCommand.js +36 -0
- package/dist-cjs/commands/DescribeAccessControlConfigurationCommand.js +36 -0
- package/dist-cjs/commands/ListAccessControlConfigurationsCommand.js +36 -0
- package/dist-cjs/commands/QueryCommand.js +2 -1
- package/dist-cjs/commands/UpdateAccessControlConfigurationCommand.js +36 -0
- package/dist-cjs/commands/index.js +5 -0
- package/dist-cjs/models/index.js +1 -0
- package/dist-cjs/models/models_0.js +72 -12
- package/dist-cjs/models/models_1.js +9 -0
- package/dist-cjs/pagination/ListAccessControlConfigurationsPaginator.js +36 -0
- package/dist-cjs/pagination/index.js +1 -0
- package/dist-cjs/protocols/Aws_json1_1.js +450 -3
- package/dist-es/Kendra.js +75 -0
- package/dist-es/commands/CreateAccessControlConfigurationCommand.js +39 -0
- package/dist-es/commands/DeleteAccessControlConfigurationCommand.js +39 -0
- package/dist-es/commands/DescribeAccessControlConfigurationCommand.js +39 -0
- package/dist-es/commands/ListAccessControlConfigurationsCommand.js +39 -0
- package/dist-es/commands/QueryCommand.js +2 -1
- package/dist-es/commands/UpdateAccessControlConfigurationCommand.js +39 -0
- package/dist-es/commands/index.js +5 -0
- package/dist-es/models/index.js +1 -0
- package/dist-es/models/models_0.js +44 -4
- package/dist-es/models/models_1.js +5 -0
- package/dist-es/pagination/ListAccessControlConfigurationsPaginator.js +75 -0
- package/dist-es/pagination/index.js +1 -0
- package/dist-es/protocols/Aws_json1_1.js +523 -1
- package/dist-types/Kendra.d.ts +99 -11
- package/dist-types/KendraClient.d.ts +7 -2
- package/dist-types/commands/CreateAccessControlConfigurationCommand.d.ts +59 -0
- package/dist-types/commands/CreateFaqCommand.d.ts +1 -1
- package/dist-types/commands/CreateIndexCommand.d.ts +1 -1
- package/dist-types/commands/DeleteAccessControlConfigurationCommand.d.ts +38 -0
- package/dist-types/commands/DescribeAccessControlConfigurationCommand.d.ts +38 -0
- package/dist-types/commands/DescribeIndexCommand.d.ts +1 -1
- package/dist-types/commands/DescribeQuerySuggestionsBlockListCommand.d.ts +2 -1
- package/dist-types/commands/DescribeQuerySuggestionsConfigCommand.d.ts +1 -1
- package/dist-types/commands/DescribeThesaurusCommand.d.ts +1 -1
- package/dist-types/commands/ListAccessControlConfigurationsCommand.d.ts +38 -0
- package/dist-types/commands/ListThesauriCommand.d.ts +1 -1
- package/dist-types/commands/PutPrincipalMappingCommand.d.ts +3 -3
- package/dist-types/commands/QueryCommand.d.ts +2 -1
- package/dist-types/commands/UpdateAccessControlConfigurationCommand.d.ts +54 -0
- package/dist-types/commands/UpdateThesaurusCommand.d.ts +1 -1
- package/dist-types/commands/index.d.ts +5 -0
- package/dist-types/models/index.d.ts +1 -0
- package/dist-types/models/models_0.d.ts +411 -271
- package/dist-types/models/models_1.d.ts +95 -0
- package/dist-types/pagination/ListAccessControlConfigurationsPaginator.d.ts +4 -0
- package/dist-types/pagination/index.d.ts +1 -0
- package/dist-types/protocols/Aws_json1_1.d.ts +15 -0
- package/dist-types/ts3.4/Kendra.d.ts +25 -0
- package/dist-types/ts3.4/KendraClient.d.ts +7 -2
- package/dist-types/ts3.4/commands/CreateAccessControlConfigurationCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/DeleteAccessControlConfigurationCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/DescribeAccessControlConfigurationCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/ListAccessControlConfigurationsCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/QueryCommand.d.ts +2 -1
- package/dist-types/ts3.4/commands/UpdateAccessControlConfigurationCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/index.d.ts +5 -0
- package/dist-types/ts3.4/models/index.d.ts +1 -0
- package/dist-types/ts3.4/models/models_0.d.ts +125 -32
- package/dist-types/ts3.4/models/models_1.d.ts +33 -0
- package/dist-types/ts3.4/pagination/ListAccessControlConfigurationsPaginator.d.ts +4 -0
- package/dist-types/ts3.4/pagination/index.d.ts +1 -0
- package/dist-types/ts3.4/protocols/Aws_json1_1.d.ts +15 -0
- package/package.json +7 -7
|
@@ -70,6 +70,17 @@ export var serializeAws_json1_1ClearQuerySuggestionsCommand = function (input, c
|
|
|
70
70
|
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
71
71
|
});
|
|
72
72
|
}); };
|
|
73
|
+
export var serializeAws_json1_1CreateAccessControlConfigurationCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
74
|
+
var headers, body;
|
|
75
|
+
return __generator(this, function (_a) {
|
|
76
|
+
headers = {
|
|
77
|
+
"content-type": "application/x-amz-json-1.1",
|
|
78
|
+
"x-amz-target": "AWSKendraFrontendService.CreateAccessControlConfiguration",
|
|
79
|
+
};
|
|
80
|
+
body = JSON.stringify(serializeAws_json1_1CreateAccessControlConfigurationRequest(input, context));
|
|
81
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
82
|
+
});
|
|
83
|
+
}); };
|
|
73
84
|
export var serializeAws_json1_1CreateDataSourceCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
74
85
|
var headers, body;
|
|
75
86
|
return __generator(this, function (_a) {
|
|
@@ -136,6 +147,17 @@ export var serializeAws_json1_1CreateThesaurusCommand = function (input, context
|
|
|
136
147
|
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
137
148
|
});
|
|
138
149
|
}); };
|
|
150
|
+
export var serializeAws_json1_1DeleteAccessControlConfigurationCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
151
|
+
var headers, body;
|
|
152
|
+
return __generator(this, function (_a) {
|
|
153
|
+
headers = {
|
|
154
|
+
"content-type": "application/x-amz-json-1.1",
|
|
155
|
+
"x-amz-target": "AWSKendraFrontendService.DeleteAccessControlConfiguration",
|
|
156
|
+
};
|
|
157
|
+
body = JSON.stringify(serializeAws_json1_1DeleteAccessControlConfigurationRequest(input, context));
|
|
158
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
159
|
+
});
|
|
160
|
+
}); };
|
|
139
161
|
export var serializeAws_json1_1DeleteDataSourceCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
140
162
|
var headers, body;
|
|
141
163
|
return __generator(this, function (_a) {
|
|
@@ -213,6 +235,17 @@ export var serializeAws_json1_1DeleteThesaurusCommand = function (input, context
|
|
|
213
235
|
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
214
236
|
});
|
|
215
237
|
}); };
|
|
238
|
+
export var serializeAws_json1_1DescribeAccessControlConfigurationCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
239
|
+
var headers, body;
|
|
240
|
+
return __generator(this, function (_a) {
|
|
241
|
+
headers = {
|
|
242
|
+
"content-type": "application/x-amz-json-1.1",
|
|
243
|
+
"x-amz-target": "AWSKendraFrontendService.DescribeAccessControlConfiguration",
|
|
244
|
+
};
|
|
245
|
+
body = JSON.stringify(serializeAws_json1_1DescribeAccessControlConfigurationRequest(input, context));
|
|
246
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
247
|
+
});
|
|
248
|
+
}); };
|
|
216
249
|
export var serializeAws_json1_1DescribeDataSourceCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
217
250
|
var headers, body;
|
|
218
251
|
return __generator(this, function (_a) {
|
|
@@ -345,6 +378,17 @@ export var serializeAws_json1_1GetSnapshotsCommand = function (input, context) {
|
|
|
345
378
|
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
346
379
|
});
|
|
347
380
|
}); };
|
|
381
|
+
export var serializeAws_json1_1ListAccessControlConfigurationsCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
382
|
+
var headers, body;
|
|
383
|
+
return __generator(this, function (_a) {
|
|
384
|
+
headers = {
|
|
385
|
+
"content-type": "application/x-amz-json-1.1",
|
|
386
|
+
"x-amz-target": "AWSKendraFrontendService.ListAccessControlConfigurations",
|
|
387
|
+
};
|
|
388
|
+
body = JSON.stringify(serializeAws_json1_1ListAccessControlConfigurationsRequest(input, context));
|
|
389
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
390
|
+
});
|
|
391
|
+
}); };
|
|
348
392
|
export var serializeAws_json1_1ListDataSourcesCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
349
393
|
var headers, body;
|
|
350
394
|
return __generator(this, function (_a) {
|
|
@@ -543,6 +587,17 @@ export var serializeAws_json1_1UntagResourceCommand = function (input, context)
|
|
|
543
587
|
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
544
588
|
});
|
|
545
589
|
}); };
|
|
590
|
+
export var serializeAws_json1_1UpdateAccessControlConfigurationCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
591
|
+
var headers, body;
|
|
592
|
+
return __generator(this, function (_a) {
|
|
593
|
+
headers = {
|
|
594
|
+
"content-type": "application/x-amz-json-1.1",
|
|
595
|
+
"x-amz-target": "AWSKendraFrontendService.UpdateAccessControlConfiguration",
|
|
596
|
+
};
|
|
597
|
+
body = JSON.stringify(serializeAws_json1_1UpdateAccessControlConfigurationRequest(input, context));
|
|
598
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
599
|
+
});
|
|
600
|
+
}); };
|
|
546
601
|
export var serializeAws_json1_1UpdateDataSourceCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
547
602
|
var headers, body;
|
|
548
603
|
return __generator(this, function (_a) {
|
|
@@ -1039,6 +1094,81 @@ var deserializeAws_json1_1ClearQuerySuggestionsCommandError = function (output,
|
|
|
1039
1094
|
}
|
|
1040
1095
|
});
|
|
1041
1096
|
}); };
|
|
1097
|
+
export var deserializeAws_json1_1CreateAccessControlConfigurationCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1098
|
+
var data, contents, response;
|
|
1099
|
+
return __generator(this, function (_a) {
|
|
1100
|
+
switch (_a.label) {
|
|
1101
|
+
case 0:
|
|
1102
|
+
if (output.statusCode >= 300) {
|
|
1103
|
+
return [2, deserializeAws_json1_1CreateAccessControlConfigurationCommandError(output, context)];
|
|
1104
|
+
}
|
|
1105
|
+
return [4, parseBody(output.body, context)];
|
|
1106
|
+
case 1:
|
|
1107
|
+
data = _a.sent();
|
|
1108
|
+
contents = {};
|
|
1109
|
+
contents = deserializeAws_json1_1CreateAccessControlConfigurationResponse(data, context);
|
|
1110
|
+
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
1111
|
+
return [2, Promise.resolve(response)];
|
|
1112
|
+
}
|
|
1113
|
+
});
|
|
1114
|
+
}); };
|
|
1115
|
+
var deserializeAws_json1_1CreateAccessControlConfigurationCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1116
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
1117
|
+
var _c;
|
|
1118
|
+
return __generator(this, function (_d) {
|
|
1119
|
+
switch (_d.label) {
|
|
1120
|
+
case 0:
|
|
1121
|
+
_a = [__assign({}, output)];
|
|
1122
|
+
_c = {};
|
|
1123
|
+
return [4, parseBody(output.body, context)];
|
|
1124
|
+
case 1:
|
|
1125
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1126
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1127
|
+
_b = errorCode;
|
|
1128
|
+
switch (_b) {
|
|
1129
|
+
case "AccessDeniedException": return [3, 2];
|
|
1130
|
+
case "com.amazonaws.kendra#AccessDeniedException": return [3, 2];
|
|
1131
|
+
case "ConflictException": return [3, 4];
|
|
1132
|
+
case "com.amazonaws.kendra#ConflictException": return [3, 4];
|
|
1133
|
+
case "InternalServerException": return [3, 6];
|
|
1134
|
+
case "com.amazonaws.kendra#InternalServerException": return [3, 6];
|
|
1135
|
+
case "ResourceNotFoundException": return [3, 8];
|
|
1136
|
+
case "com.amazonaws.kendra#ResourceNotFoundException": return [3, 8];
|
|
1137
|
+
case "ServiceQuotaExceededException": return [3, 10];
|
|
1138
|
+
case "com.amazonaws.kendra#ServiceQuotaExceededException": return [3, 10];
|
|
1139
|
+
case "ThrottlingException": return [3, 12];
|
|
1140
|
+
case "com.amazonaws.kendra#ThrottlingException": return [3, 12];
|
|
1141
|
+
case "ValidationException": return [3, 14];
|
|
1142
|
+
case "com.amazonaws.kendra#ValidationException": return [3, 14];
|
|
1143
|
+
}
|
|
1144
|
+
return [3, 16];
|
|
1145
|
+
case 2: return [4, deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context)];
|
|
1146
|
+
case 3: throw _d.sent();
|
|
1147
|
+
case 4: return [4, deserializeAws_json1_1ConflictExceptionResponse(parsedOutput, context)];
|
|
1148
|
+
case 5: throw _d.sent();
|
|
1149
|
+
case 6: return [4, deserializeAws_json1_1InternalServerExceptionResponse(parsedOutput, context)];
|
|
1150
|
+
case 7: throw _d.sent();
|
|
1151
|
+
case 8: return [4, deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
1152
|
+
case 9: throw _d.sent();
|
|
1153
|
+
case 10: return [4, deserializeAws_json1_1ServiceQuotaExceededExceptionResponse(parsedOutput, context)];
|
|
1154
|
+
case 11: throw _d.sent();
|
|
1155
|
+
case 12: return [4, deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context)];
|
|
1156
|
+
case 13: throw _d.sent();
|
|
1157
|
+
case 14: return [4, deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context)];
|
|
1158
|
+
case 15: throw _d.sent();
|
|
1159
|
+
case 16:
|
|
1160
|
+
parsedBody = parsedOutput.body;
|
|
1161
|
+
$metadata = deserializeMetadata(output);
|
|
1162
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1163
|
+
response = new __BaseException({
|
|
1164
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1165
|
+
$fault: "client",
|
|
1166
|
+
$metadata: $metadata,
|
|
1167
|
+
});
|
|
1168
|
+
throw __decorateServiceException(response, parsedBody);
|
|
1169
|
+
}
|
|
1170
|
+
});
|
|
1171
|
+
}); };
|
|
1042
1172
|
export var deserializeAws_json1_1CreateDataSourceCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1043
1173
|
var data, contents, response;
|
|
1044
1174
|
return __generator(this, function (_a) {
|
|
@@ -1493,6 +1623,77 @@ var deserializeAws_json1_1CreateThesaurusCommandError = function (output, contex
|
|
|
1493
1623
|
}
|
|
1494
1624
|
});
|
|
1495
1625
|
}); };
|
|
1626
|
+
export var deserializeAws_json1_1DeleteAccessControlConfigurationCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1627
|
+
var data, contents, response;
|
|
1628
|
+
return __generator(this, function (_a) {
|
|
1629
|
+
switch (_a.label) {
|
|
1630
|
+
case 0:
|
|
1631
|
+
if (output.statusCode >= 300) {
|
|
1632
|
+
return [2, deserializeAws_json1_1DeleteAccessControlConfigurationCommandError(output, context)];
|
|
1633
|
+
}
|
|
1634
|
+
return [4, parseBody(output.body, context)];
|
|
1635
|
+
case 1:
|
|
1636
|
+
data = _a.sent();
|
|
1637
|
+
contents = {};
|
|
1638
|
+
contents = deserializeAws_json1_1DeleteAccessControlConfigurationResponse(data, context);
|
|
1639
|
+
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
1640
|
+
return [2, Promise.resolve(response)];
|
|
1641
|
+
}
|
|
1642
|
+
});
|
|
1643
|
+
}); };
|
|
1644
|
+
var deserializeAws_json1_1DeleteAccessControlConfigurationCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1645
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
1646
|
+
var _c;
|
|
1647
|
+
return __generator(this, function (_d) {
|
|
1648
|
+
switch (_d.label) {
|
|
1649
|
+
case 0:
|
|
1650
|
+
_a = [__assign({}, output)];
|
|
1651
|
+
_c = {};
|
|
1652
|
+
return [4, parseBody(output.body, context)];
|
|
1653
|
+
case 1:
|
|
1654
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1655
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1656
|
+
_b = errorCode;
|
|
1657
|
+
switch (_b) {
|
|
1658
|
+
case "AccessDeniedException": return [3, 2];
|
|
1659
|
+
case "com.amazonaws.kendra#AccessDeniedException": return [3, 2];
|
|
1660
|
+
case "ConflictException": return [3, 4];
|
|
1661
|
+
case "com.amazonaws.kendra#ConflictException": return [3, 4];
|
|
1662
|
+
case "InternalServerException": return [3, 6];
|
|
1663
|
+
case "com.amazonaws.kendra#InternalServerException": return [3, 6];
|
|
1664
|
+
case "ResourceNotFoundException": return [3, 8];
|
|
1665
|
+
case "com.amazonaws.kendra#ResourceNotFoundException": return [3, 8];
|
|
1666
|
+
case "ThrottlingException": return [3, 10];
|
|
1667
|
+
case "com.amazonaws.kendra#ThrottlingException": return [3, 10];
|
|
1668
|
+
case "ValidationException": return [3, 12];
|
|
1669
|
+
case "com.amazonaws.kendra#ValidationException": return [3, 12];
|
|
1670
|
+
}
|
|
1671
|
+
return [3, 14];
|
|
1672
|
+
case 2: return [4, deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context)];
|
|
1673
|
+
case 3: throw _d.sent();
|
|
1674
|
+
case 4: return [4, deserializeAws_json1_1ConflictExceptionResponse(parsedOutput, context)];
|
|
1675
|
+
case 5: throw _d.sent();
|
|
1676
|
+
case 6: return [4, deserializeAws_json1_1InternalServerExceptionResponse(parsedOutput, context)];
|
|
1677
|
+
case 7: throw _d.sent();
|
|
1678
|
+
case 8: return [4, deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
1679
|
+
case 9: throw _d.sent();
|
|
1680
|
+
case 10: return [4, deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context)];
|
|
1681
|
+
case 11: throw _d.sent();
|
|
1682
|
+
case 12: return [4, deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context)];
|
|
1683
|
+
case 13: throw _d.sent();
|
|
1684
|
+
case 14:
|
|
1685
|
+
parsedBody = parsedOutput.body;
|
|
1686
|
+
$metadata = deserializeMetadata(output);
|
|
1687
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1688
|
+
response = new __BaseException({
|
|
1689
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1690
|
+
$fault: "client",
|
|
1691
|
+
$metadata: $metadata,
|
|
1692
|
+
});
|
|
1693
|
+
throw __decorateServiceException(response, parsedBody);
|
|
1694
|
+
}
|
|
1695
|
+
});
|
|
1696
|
+
}); };
|
|
1496
1697
|
export var deserializeAws_json1_1DeleteDataSourceCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1497
1698
|
var response;
|
|
1498
1699
|
return __generator(this, function (_a) {
|
|
@@ -1990,6 +2191,73 @@ var deserializeAws_json1_1DeleteThesaurusCommandError = function (output, contex
|
|
|
1990
2191
|
}
|
|
1991
2192
|
});
|
|
1992
2193
|
}); };
|
|
2194
|
+
export var deserializeAws_json1_1DescribeAccessControlConfigurationCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2195
|
+
var data, contents, response;
|
|
2196
|
+
return __generator(this, function (_a) {
|
|
2197
|
+
switch (_a.label) {
|
|
2198
|
+
case 0:
|
|
2199
|
+
if (output.statusCode >= 300) {
|
|
2200
|
+
return [2, deserializeAws_json1_1DescribeAccessControlConfigurationCommandError(output, context)];
|
|
2201
|
+
}
|
|
2202
|
+
return [4, parseBody(output.body, context)];
|
|
2203
|
+
case 1:
|
|
2204
|
+
data = _a.sent();
|
|
2205
|
+
contents = {};
|
|
2206
|
+
contents = deserializeAws_json1_1DescribeAccessControlConfigurationResponse(data, context);
|
|
2207
|
+
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
2208
|
+
return [2, Promise.resolve(response)];
|
|
2209
|
+
}
|
|
2210
|
+
});
|
|
2211
|
+
}); };
|
|
2212
|
+
var deserializeAws_json1_1DescribeAccessControlConfigurationCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2213
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
2214
|
+
var _c;
|
|
2215
|
+
return __generator(this, function (_d) {
|
|
2216
|
+
switch (_d.label) {
|
|
2217
|
+
case 0:
|
|
2218
|
+
_a = [__assign({}, output)];
|
|
2219
|
+
_c = {};
|
|
2220
|
+
return [4, parseBody(output.body, context)];
|
|
2221
|
+
case 1:
|
|
2222
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
2223
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2224
|
+
_b = errorCode;
|
|
2225
|
+
switch (_b) {
|
|
2226
|
+
case "AccessDeniedException": return [3, 2];
|
|
2227
|
+
case "com.amazonaws.kendra#AccessDeniedException": return [3, 2];
|
|
2228
|
+
case "InternalServerException": return [3, 4];
|
|
2229
|
+
case "com.amazonaws.kendra#InternalServerException": return [3, 4];
|
|
2230
|
+
case "ResourceNotFoundException": return [3, 6];
|
|
2231
|
+
case "com.amazonaws.kendra#ResourceNotFoundException": return [3, 6];
|
|
2232
|
+
case "ThrottlingException": return [3, 8];
|
|
2233
|
+
case "com.amazonaws.kendra#ThrottlingException": return [3, 8];
|
|
2234
|
+
case "ValidationException": return [3, 10];
|
|
2235
|
+
case "com.amazonaws.kendra#ValidationException": return [3, 10];
|
|
2236
|
+
}
|
|
2237
|
+
return [3, 12];
|
|
2238
|
+
case 2: return [4, deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context)];
|
|
2239
|
+
case 3: throw _d.sent();
|
|
2240
|
+
case 4: return [4, deserializeAws_json1_1InternalServerExceptionResponse(parsedOutput, context)];
|
|
2241
|
+
case 5: throw _d.sent();
|
|
2242
|
+
case 6: return [4, deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
2243
|
+
case 7: throw _d.sent();
|
|
2244
|
+
case 8: return [4, deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context)];
|
|
2245
|
+
case 9: throw _d.sent();
|
|
2246
|
+
case 10: return [4, deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context)];
|
|
2247
|
+
case 11: throw _d.sent();
|
|
2248
|
+
case 12:
|
|
2249
|
+
parsedBody = parsedOutput.body;
|
|
2250
|
+
$metadata = deserializeMetadata(output);
|
|
2251
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2252
|
+
response = new __BaseException({
|
|
2253
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2254
|
+
$fault: "client",
|
|
2255
|
+
$metadata: $metadata,
|
|
2256
|
+
});
|
|
2257
|
+
throw __decorateServiceException(response, parsedBody);
|
|
2258
|
+
}
|
|
2259
|
+
});
|
|
2260
|
+
}); };
|
|
1993
2261
|
export var deserializeAws_json1_1DescribeDataSourceCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1994
2262
|
var data, contents, response;
|
|
1995
2263
|
return __generator(this, function (_a) {
|
|
@@ -2798,6 +3066,73 @@ var deserializeAws_json1_1GetSnapshotsCommandError = function (output, context)
|
|
|
2798
3066
|
}
|
|
2799
3067
|
});
|
|
2800
3068
|
}); };
|
|
3069
|
+
export var deserializeAws_json1_1ListAccessControlConfigurationsCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3070
|
+
var data, contents, response;
|
|
3071
|
+
return __generator(this, function (_a) {
|
|
3072
|
+
switch (_a.label) {
|
|
3073
|
+
case 0:
|
|
3074
|
+
if (output.statusCode >= 300) {
|
|
3075
|
+
return [2, deserializeAws_json1_1ListAccessControlConfigurationsCommandError(output, context)];
|
|
3076
|
+
}
|
|
3077
|
+
return [4, parseBody(output.body, context)];
|
|
3078
|
+
case 1:
|
|
3079
|
+
data = _a.sent();
|
|
3080
|
+
contents = {};
|
|
3081
|
+
contents = deserializeAws_json1_1ListAccessControlConfigurationsResponse(data, context);
|
|
3082
|
+
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
3083
|
+
return [2, Promise.resolve(response)];
|
|
3084
|
+
}
|
|
3085
|
+
});
|
|
3086
|
+
}); };
|
|
3087
|
+
var deserializeAws_json1_1ListAccessControlConfigurationsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3088
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
3089
|
+
var _c;
|
|
3090
|
+
return __generator(this, function (_d) {
|
|
3091
|
+
switch (_d.label) {
|
|
3092
|
+
case 0:
|
|
3093
|
+
_a = [__assign({}, output)];
|
|
3094
|
+
_c = {};
|
|
3095
|
+
return [4, parseBody(output.body, context)];
|
|
3096
|
+
case 1:
|
|
3097
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
3098
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3099
|
+
_b = errorCode;
|
|
3100
|
+
switch (_b) {
|
|
3101
|
+
case "AccessDeniedException": return [3, 2];
|
|
3102
|
+
case "com.amazonaws.kendra#AccessDeniedException": return [3, 2];
|
|
3103
|
+
case "InternalServerException": return [3, 4];
|
|
3104
|
+
case "com.amazonaws.kendra#InternalServerException": return [3, 4];
|
|
3105
|
+
case "ResourceNotFoundException": return [3, 6];
|
|
3106
|
+
case "com.amazonaws.kendra#ResourceNotFoundException": return [3, 6];
|
|
3107
|
+
case "ThrottlingException": return [3, 8];
|
|
3108
|
+
case "com.amazonaws.kendra#ThrottlingException": return [3, 8];
|
|
3109
|
+
case "ValidationException": return [3, 10];
|
|
3110
|
+
case "com.amazonaws.kendra#ValidationException": return [3, 10];
|
|
3111
|
+
}
|
|
3112
|
+
return [3, 12];
|
|
3113
|
+
case 2: return [4, deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context)];
|
|
3114
|
+
case 3: throw _d.sent();
|
|
3115
|
+
case 4: return [4, deserializeAws_json1_1InternalServerExceptionResponse(parsedOutput, context)];
|
|
3116
|
+
case 5: throw _d.sent();
|
|
3117
|
+
case 6: return [4, deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
3118
|
+
case 7: throw _d.sent();
|
|
3119
|
+
case 8: return [4, deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context)];
|
|
3120
|
+
case 9: throw _d.sent();
|
|
3121
|
+
case 10: return [4, deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context)];
|
|
3122
|
+
case 11: throw _d.sent();
|
|
3123
|
+
case 12:
|
|
3124
|
+
parsedBody = parsedOutput.body;
|
|
3125
|
+
$metadata = deserializeMetadata(output);
|
|
3126
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3127
|
+
response = new __BaseException({
|
|
3128
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
3129
|
+
$fault: "client",
|
|
3130
|
+
$metadata: $metadata,
|
|
3131
|
+
});
|
|
3132
|
+
throw __decorateServiceException(response, parsedBody);
|
|
3133
|
+
}
|
|
3134
|
+
});
|
|
3135
|
+
}); };
|
|
2801
3136
|
export var deserializeAws_json1_1ListDataSourcesCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2802
3137
|
var data, contents, response;
|
|
2803
3138
|
return __generator(this, function (_a) {
|
|
@@ -4036,6 +4371,81 @@ var deserializeAws_json1_1UntagResourceCommandError = function (output, context)
|
|
|
4036
4371
|
}
|
|
4037
4372
|
});
|
|
4038
4373
|
}); };
|
|
4374
|
+
export var deserializeAws_json1_1UpdateAccessControlConfigurationCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
4375
|
+
var data, contents, response;
|
|
4376
|
+
return __generator(this, function (_a) {
|
|
4377
|
+
switch (_a.label) {
|
|
4378
|
+
case 0:
|
|
4379
|
+
if (output.statusCode >= 300) {
|
|
4380
|
+
return [2, deserializeAws_json1_1UpdateAccessControlConfigurationCommandError(output, context)];
|
|
4381
|
+
}
|
|
4382
|
+
return [4, parseBody(output.body, context)];
|
|
4383
|
+
case 1:
|
|
4384
|
+
data = _a.sent();
|
|
4385
|
+
contents = {};
|
|
4386
|
+
contents = deserializeAws_json1_1UpdateAccessControlConfigurationResponse(data, context);
|
|
4387
|
+
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
4388
|
+
return [2, Promise.resolve(response)];
|
|
4389
|
+
}
|
|
4390
|
+
});
|
|
4391
|
+
}); };
|
|
4392
|
+
var deserializeAws_json1_1UpdateAccessControlConfigurationCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
4393
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
4394
|
+
var _c;
|
|
4395
|
+
return __generator(this, function (_d) {
|
|
4396
|
+
switch (_d.label) {
|
|
4397
|
+
case 0:
|
|
4398
|
+
_a = [__assign({}, output)];
|
|
4399
|
+
_c = {};
|
|
4400
|
+
return [4, parseBody(output.body, context)];
|
|
4401
|
+
case 1:
|
|
4402
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
4403
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4404
|
+
_b = errorCode;
|
|
4405
|
+
switch (_b) {
|
|
4406
|
+
case "AccessDeniedException": return [3, 2];
|
|
4407
|
+
case "com.amazonaws.kendra#AccessDeniedException": return [3, 2];
|
|
4408
|
+
case "ConflictException": return [3, 4];
|
|
4409
|
+
case "com.amazonaws.kendra#ConflictException": return [3, 4];
|
|
4410
|
+
case "InternalServerException": return [3, 6];
|
|
4411
|
+
case "com.amazonaws.kendra#InternalServerException": return [3, 6];
|
|
4412
|
+
case "ResourceNotFoundException": return [3, 8];
|
|
4413
|
+
case "com.amazonaws.kendra#ResourceNotFoundException": return [3, 8];
|
|
4414
|
+
case "ServiceQuotaExceededException": return [3, 10];
|
|
4415
|
+
case "com.amazonaws.kendra#ServiceQuotaExceededException": return [3, 10];
|
|
4416
|
+
case "ThrottlingException": return [3, 12];
|
|
4417
|
+
case "com.amazonaws.kendra#ThrottlingException": return [3, 12];
|
|
4418
|
+
case "ValidationException": return [3, 14];
|
|
4419
|
+
case "com.amazonaws.kendra#ValidationException": return [3, 14];
|
|
4420
|
+
}
|
|
4421
|
+
return [3, 16];
|
|
4422
|
+
case 2: return [4, deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context)];
|
|
4423
|
+
case 3: throw _d.sent();
|
|
4424
|
+
case 4: return [4, deserializeAws_json1_1ConflictExceptionResponse(parsedOutput, context)];
|
|
4425
|
+
case 5: throw _d.sent();
|
|
4426
|
+
case 6: return [4, deserializeAws_json1_1InternalServerExceptionResponse(parsedOutput, context)];
|
|
4427
|
+
case 7: throw _d.sent();
|
|
4428
|
+
case 8: return [4, deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
4429
|
+
case 9: throw _d.sent();
|
|
4430
|
+
case 10: return [4, deserializeAws_json1_1ServiceQuotaExceededExceptionResponse(parsedOutput, context)];
|
|
4431
|
+
case 11: throw _d.sent();
|
|
4432
|
+
case 12: return [4, deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context)];
|
|
4433
|
+
case 13: throw _d.sent();
|
|
4434
|
+
case 14: return [4, deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context)];
|
|
4435
|
+
case 15: throw _d.sent();
|
|
4436
|
+
case 16:
|
|
4437
|
+
parsedBody = parsedOutput.body;
|
|
4438
|
+
$metadata = deserializeMetadata(output);
|
|
4439
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
4440
|
+
response = new __BaseException({
|
|
4441
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
4442
|
+
$fault: "client",
|
|
4443
|
+
$metadata: $metadata,
|
|
4444
|
+
});
|
|
4445
|
+
throw __decorateServiceException(response, parsedBody);
|
|
4446
|
+
}
|
|
4447
|
+
});
|
|
4448
|
+
}); };
|
|
4039
4449
|
export var deserializeAws_json1_1UpdateDataSourceCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
4040
4450
|
var response;
|
|
4041
4451
|
return __generator(this, function (_a) {
|
|
@@ -4832,6 +5242,14 @@ var serializeAws_json1_1ContentSourceConfiguration = function (input, context) {
|
|
|
4832
5242
|
DataSourceIds: serializeAws_json1_1DataSourceIdList(input.DataSourceIds, context),
|
|
4833
5243
|
})), (input.DirectPutContent != null && { DirectPutContent: input.DirectPutContent })), (input.FaqIds != null && { FaqIds: serializeAws_json1_1FaqIdsList(input.FaqIds, context) }));
|
|
4834
5244
|
};
|
|
5245
|
+
var serializeAws_json1_1CreateAccessControlConfigurationRequest = function (input, context) {
|
|
5246
|
+
var _a;
|
|
5247
|
+
return __assign(__assign(__assign(__assign(__assign(__assign({}, (input.AccessControlList != null && {
|
|
5248
|
+
AccessControlList: serializeAws_json1_1PrincipalList(input.AccessControlList, context),
|
|
5249
|
+
})), { ClientToken: (_a = input.ClientToken) !== null && _a !== void 0 ? _a : generateIdempotencyToken() }), (input.Description != null && { Description: input.Description })), (input.HierarchicalAccessControlList != null && {
|
|
5250
|
+
HierarchicalAccessControlList: serializeAws_json1_1HierarchicalPrincipalList(input.HierarchicalAccessControlList, context),
|
|
5251
|
+
})), (input.IndexId != null && { IndexId: input.IndexId })), (input.Name != null && { Name: input.Name }));
|
|
5252
|
+
};
|
|
4835
5253
|
var serializeAws_json1_1CreateDataSourceRequest = function (input, context) {
|
|
4836
5254
|
var _a;
|
|
4837
5255
|
return __assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({ ClientToken: (_a = input.ClientToken) !== null && _a !== void 0 ? _a : generateIdempotencyToken() }, (input.Configuration != null && {
|
|
@@ -4981,6 +5399,9 @@ var serializeAws_json1_1DataSourceVpcConfiguration = function (input, context) {
|
|
|
4981
5399
|
SecurityGroupIds: serializeAws_json1_1SecurityGroupIdList(input.SecurityGroupIds, context),
|
|
4982
5400
|
})), (input.SubnetIds != null && { SubnetIds: serializeAws_json1_1SubnetIdList(input.SubnetIds, context) }));
|
|
4983
5401
|
};
|
|
5402
|
+
var serializeAws_json1_1DeleteAccessControlConfigurationRequest = function (input, context) {
|
|
5403
|
+
return __assign(__assign({}, (input.Id != null && { Id: input.Id })), (input.IndexId != null && { IndexId: input.IndexId }));
|
|
5404
|
+
};
|
|
4984
5405
|
var serializeAws_json1_1DeleteDataSourceRequest = function (input, context) {
|
|
4985
5406
|
return __assign(__assign({}, (input.Id != null && { Id: input.Id })), (input.IndexId != null && { IndexId: input.IndexId }));
|
|
4986
5407
|
};
|
|
@@ -5002,6 +5423,9 @@ var serializeAws_json1_1DeleteQuerySuggestionsBlockListRequest = function (input
|
|
|
5002
5423
|
var serializeAws_json1_1DeleteThesaurusRequest = function (input, context) {
|
|
5003
5424
|
return __assign(__assign({}, (input.Id != null && { Id: input.Id })), (input.IndexId != null && { IndexId: input.IndexId }));
|
|
5004
5425
|
};
|
|
5426
|
+
var serializeAws_json1_1DescribeAccessControlConfigurationRequest = function (input, context) {
|
|
5427
|
+
return __assign(__assign({}, (input.Id != null && { Id: input.Id })), (input.IndexId != null && { IndexId: input.IndexId }));
|
|
5428
|
+
};
|
|
5005
5429
|
var serializeAws_json1_1DescribeDataSourceRequest = function (input, context) {
|
|
5006
5430
|
return __assign(__assign({}, (input.Id != null && { Id: input.Id })), (input.IndexId != null && { IndexId: input.IndexId }));
|
|
5007
5431
|
};
|
|
@@ -5045,7 +5469,9 @@ var serializeAws_json1_1DisassociatePersonasFromEntitiesRequest = function (inpu
|
|
|
5045
5469
|
return __assign(__assign(__assign({}, (input.EntityIds != null && { EntityIds: serializeAws_json1_1EntityIdsList(input.EntityIds, context) })), (input.Id != null && { Id: input.Id })), (input.IndexId != null && { IndexId: input.IndexId }));
|
|
5046
5470
|
};
|
|
5047
5471
|
var serializeAws_json1_1Document = function (input, context) {
|
|
5048
|
-
return __assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.
|
|
5472
|
+
return __assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.AccessControlConfigurationId != null && {
|
|
5473
|
+
AccessControlConfigurationId: input.AccessControlConfigurationId,
|
|
5474
|
+
})), (input.AccessControlList != null && {
|
|
5049
5475
|
AccessControlList: serializeAws_json1_1PrincipalList(input.AccessControlList, context),
|
|
5050
5476
|
})), (input.Attributes != null && {
|
|
5051
5477
|
Attributes: serializeAws_json1_1DocumentAttributeList(input.Attributes, context),
|
|
@@ -5462,6 +5888,9 @@ var serializeAws_json1_1JsonTokenTypeConfiguration = function (input, context) {
|
|
|
5462
5888
|
var serializeAws_json1_1JwtTokenTypeConfiguration = function (input, context) {
|
|
5463
5889
|
return __assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.ClaimRegex != null && { ClaimRegex: input.ClaimRegex })), (input.GroupAttributeField != null && { GroupAttributeField: input.GroupAttributeField })), (input.Issuer != null && { Issuer: input.Issuer })), (input.KeyLocation != null && { KeyLocation: input.KeyLocation })), (input.SecretManagerArn != null && { SecretManagerArn: input.SecretManagerArn })), (input.URL != null && { URL: input.URL })), (input.UserNameAttributeField != null && { UserNameAttributeField: input.UserNameAttributeField }));
|
|
5464
5890
|
};
|
|
5891
|
+
var serializeAws_json1_1ListAccessControlConfigurationsRequest = function (input, context) {
|
|
5892
|
+
return __assign(__assign(__assign({}, (input.IndexId != null && { IndexId: input.IndexId })), (input.MaxResults != null && { MaxResults: input.MaxResults })), (input.NextToken != null && { NextToken: input.NextToken }));
|
|
5893
|
+
};
|
|
5465
5894
|
var serializeAws_json1_1ListDataSourcesRequest = function (input, context) {
|
|
5466
5895
|
return __assign(__assign(__assign({}, (input.IndexId != null && { IndexId: input.IndexId })), (input.MaxResults != null && { MaxResults: input.MaxResults })), (input.NextToken != null && { NextToken: input.NextToken }));
|
|
5467
5896
|
};
|
|
@@ -5966,6 +6395,13 @@ var serializeAws_json1_1TimeRange = function (input, context) {
|
|
|
5966
6395
|
var serializeAws_json1_1UntagResourceRequest = function (input, context) {
|
|
5967
6396
|
return __assign(__assign({}, (input.ResourceARN != null && { ResourceARN: input.ResourceARN })), (input.TagKeys != null && { TagKeys: serializeAws_json1_1TagKeyList(input.TagKeys, context) }));
|
|
5968
6397
|
};
|
|
6398
|
+
var serializeAws_json1_1UpdateAccessControlConfigurationRequest = function (input, context) {
|
|
6399
|
+
return __assign(__assign(__assign(__assign(__assign(__assign({}, (input.AccessControlList != null && {
|
|
6400
|
+
AccessControlList: serializeAws_json1_1PrincipalList(input.AccessControlList, context),
|
|
6401
|
+
})), (input.Description != null && { Description: input.Description })), (input.HierarchicalAccessControlList != null && {
|
|
6402
|
+
HierarchicalAccessControlList: serializeAws_json1_1HierarchicalPrincipalList(input.HierarchicalAccessControlList, context),
|
|
6403
|
+
})), (input.Id != null && { Id: input.Id })), (input.IndexId != null && { IndexId: input.IndexId })), (input.Name != null && { Name: input.Name }));
|
|
6404
|
+
};
|
|
5969
6405
|
var serializeAws_json1_1UpdateDataSourceRequest = function (input, context) {
|
|
5970
6406
|
return __assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.Configuration != null && {
|
|
5971
6407
|
Configuration: serializeAws_json1_1DataSourceConfiguration(input.Configuration, context),
|
|
@@ -6071,6 +6507,22 @@ var serializeAws_json1_1WorkDocsConfiguration = function (input, context) {
|
|
|
6071
6507
|
InclusionPatterns: serializeAws_json1_1DataSourceInclusionsExclusionsStrings(input.InclusionPatterns, context),
|
|
6072
6508
|
})), (input.OrganizationId != null && { OrganizationId: input.OrganizationId })), (input.UseChangeLog != null && { UseChangeLog: input.UseChangeLog }));
|
|
6073
6509
|
};
|
|
6510
|
+
var deserializeAws_json1_1AccessControlConfigurationSummary = function (output, context) {
|
|
6511
|
+
return {
|
|
6512
|
+
Id: __expectString(output.Id),
|
|
6513
|
+
};
|
|
6514
|
+
};
|
|
6515
|
+
var deserializeAws_json1_1AccessControlConfigurationSummaryList = function (output, context) {
|
|
6516
|
+
var retVal = (output || [])
|
|
6517
|
+
.filter(function (e) { return e != null; })
|
|
6518
|
+
.map(function (entry) {
|
|
6519
|
+
if (entry === null) {
|
|
6520
|
+
return null;
|
|
6521
|
+
}
|
|
6522
|
+
return deserializeAws_json1_1AccessControlConfigurationSummary(entry, context);
|
|
6523
|
+
});
|
|
6524
|
+
return retVal;
|
|
6525
|
+
};
|
|
6074
6526
|
var deserializeAws_json1_1AccessControlListConfiguration = function (output, context) {
|
|
6075
6527
|
return {
|
|
6076
6528
|
KeyPath: __expectString(output.KeyPath),
|
|
@@ -6519,6 +6971,11 @@ var deserializeAws_json1_1CorrectionList = function (output, context) {
|
|
|
6519
6971
|
});
|
|
6520
6972
|
return retVal;
|
|
6521
6973
|
};
|
|
6974
|
+
var deserializeAws_json1_1CreateAccessControlConfigurationResponse = function (output, context) {
|
|
6975
|
+
return {
|
|
6976
|
+
Id: __expectString(output.Id),
|
|
6977
|
+
};
|
|
6978
|
+
};
|
|
6522
6979
|
var deserializeAws_json1_1CreateDataSourceResponse = function (output, context) {
|
|
6523
6980
|
return {
|
|
6524
6981
|
Id: __expectString(output.Id),
|
|
@@ -6740,9 +7197,25 @@ var deserializeAws_json1_1DataSourceVpcConfiguration = function (output, context
|
|
|
6740
7197
|
SubnetIds: output.SubnetIds != null ? deserializeAws_json1_1SubnetIdList(output.SubnetIds, context) : undefined,
|
|
6741
7198
|
};
|
|
6742
7199
|
};
|
|
7200
|
+
var deserializeAws_json1_1DeleteAccessControlConfigurationResponse = function (output, context) {
|
|
7201
|
+
return {};
|
|
7202
|
+
};
|
|
6743
7203
|
var deserializeAws_json1_1DeleteExperienceResponse = function (output, context) {
|
|
6744
7204
|
return {};
|
|
6745
7205
|
};
|
|
7206
|
+
var deserializeAws_json1_1DescribeAccessControlConfigurationResponse = function (output, context) {
|
|
7207
|
+
return {
|
|
7208
|
+
AccessControlList: output.AccessControlList != null
|
|
7209
|
+
? deserializeAws_json1_1PrincipalList(output.AccessControlList, context)
|
|
7210
|
+
: undefined,
|
|
7211
|
+
Description: __expectString(output.Description),
|
|
7212
|
+
ErrorMessage: __expectString(output.ErrorMessage),
|
|
7213
|
+
HierarchicalAccessControlList: output.HierarchicalAccessControlList != null
|
|
7214
|
+
? deserializeAws_json1_1HierarchicalPrincipalList(output.HierarchicalAccessControlList, context)
|
|
7215
|
+
: undefined,
|
|
7216
|
+
Name: __expectString(output.Name),
|
|
7217
|
+
};
|
|
7218
|
+
};
|
|
6746
7219
|
var deserializeAws_json1_1DescribeDataSourceResponse = function (output, context) {
|
|
6747
7220
|
return {
|
|
6748
7221
|
Configuration: output.Configuration != null
|
|
@@ -7384,6 +7857,22 @@ var deserializeAws_json1_1GroupSummary = function (output, context) {
|
|
|
7384
7857
|
OrderingId: __expectLong(output.OrderingId),
|
|
7385
7858
|
};
|
|
7386
7859
|
};
|
|
7860
|
+
var deserializeAws_json1_1HierarchicalPrincipal = function (output, context) {
|
|
7861
|
+
return {
|
|
7862
|
+
PrincipalList: output.PrincipalList != null ? deserializeAws_json1_1PrincipalList(output.PrincipalList, context) : undefined,
|
|
7863
|
+
};
|
|
7864
|
+
};
|
|
7865
|
+
var deserializeAws_json1_1HierarchicalPrincipalList = function (output, context) {
|
|
7866
|
+
var retVal = (output || [])
|
|
7867
|
+
.filter(function (e) { return e != null; })
|
|
7868
|
+
.map(function (entry) {
|
|
7869
|
+
if (entry === null) {
|
|
7870
|
+
return null;
|
|
7871
|
+
}
|
|
7872
|
+
return deserializeAws_json1_1HierarchicalPrincipal(entry, context);
|
|
7873
|
+
});
|
|
7874
|
+
return retVal;
|
|
7875
|
+
};
|
|
7387
7876
|
var deserializeAws_json1_1Highlight = function (output, context) {
|
|
7388
7877
|
return {
|
|
7389
7878
|
BeginOffset: __expectInt32(output.BeginOffset),
|
|
@@ -7558,6 +8047,14 @@ var deserializeAws_json1_1JwtTokenTypeConfiguration = function (output, context)
|
|
|
7558
8047
|
UserNameAttributeField: __expectString(output.UserNameAttributeField),
|
|
7559
8048
|
};
|
|
7560
8049
|
};
|
|
8050
|
+
var deserializeAws_json1_1ListAccessControlConfigurationsResponse = function (output, context) {
|
|
8051
|
+
return {
|
|
8052
|
+
AccessControlConfigurations: output.AccessControlConfigurations != null
|
|
8053
|
+
? deserializeAws_json1_1AccessControlConfigurationSummaryList(output.AccessControlConfigurations, context)
|
|
8054
|
+
: undefined,
|
|
8055
|
+
NextToken: __expectString(output.NextToken),
|
|
8056
|
+
};
|
|
8057
|
+
};
|
|
7561
8058
|
var deserializeAws_json1_1ListDataSourcesResponse = function (output, context) {
|
|
7562
8059
|
return {
|
|
7563
8060
|
NextToken: __expectString(output.NextToken),
|
|
@@ -7714,6 +8211,25 @@ var deserializeAws_json1_1PersonasSummaryList = function (output, context) {
|
|
|
7714
8211
|
});
|
|
7715
8212
|
return retVal;
|
|
7716
8213
|
};
|
|
8214
|
+
var deserializeAws_json1_1Principal = function (output, context) {
|
|
8215
|
+
return {
|
|
8216
|
+
Access: __expectString(output.Access),
|
|
8217
|
+
DataSourceId: __expectString(output.DataSourceId),
|
|
8218
|
+
Name: __expectString(output.Name),
|
|
8219
|
+
Type: __expectString(output.Type),
|
|
8220
|
+
};
|
|
8221
|
+
};
|
|
8222
|
+
var deserializeAws_json1_1PrincipalList = function (output, context) {
|
|
8223
|
+
var retVal = (output || [])
|
|
8224
|
+
.filter(function (e) { return e != null; })
|
|
8225
|
+
.map(function (entry) {
|
|
8226
|
+
if (entry === null) {
|
|
8227
|
+
return null;
|
|
8228
|
+
}
|
|
8229
|
+
return deserializeAws_json1_1Principal(entry, context);
|
|
8230
|
+
});
|
|
8231
|
+
return retVal;
|
|
8232
|
+
};
|
|
7717
8233
|
var deserializeAws_json1_1PrivateChannelFilter = function (output, context) {
|
|
7718
8234
|
var retVal = (output || [])
|
|
7719
8235
|
.filter(function (e) { return e != null; })
|
|
@@ -8450,6 +8966,9 @@ var deserializeAws_json1_1TimeRange = function (output, context) {
|
|
|
8450
8966
|
var deserializeAws_json1_1UntagResourceResponse = function (output, context) {
|
|
8451
8967
|
return {};
|
|
8452
8968
|
};
|
|
8969
|
+
var deserializeAws_json1_1UpdateAccessControlConfigurationResponse = function (output, context) {
|
|
8970
|
+
return {};
|
|
8971
|
+
};
|
|
8453
8972
|
var deserializeAws_json1_1Urls = function (output, context) {
|
|
8454
8973
|
return {
|
|
8455
8974
|
SeedUrlConfiguration: output.SeedUrlConfiguration != null
|
|
@@ -8616,6 +9135,9 @@ var loadRestJsonErrorCode = function (output, data) {
|
|
|
8616
9135
|
var findKey = function (object, key) { return Object.keys(object).find(function (k) { return k.toLowerCase() === key.toLowerCase(); }); };
|
|
8617
9136
|
var sanitizeErrorCode = function (rawValue) {
|
|
8618
9137
|
var cleanValue = rawValue;
|
|
9138
|
+
if (typeof cleanValue === "number") {
|
|
9139
|
+
cleanValue = cleanValue.toString();
|
|
9140
|
+
}
|
|
8619
9141
|
if (cleanValue.indexOf(":") >= 0) {
|
|
8620
9142
|
cleanValue = cleanValue.split(":")[0];
|
|
8621
9143
|
}
|