@aws-sdk/client-glue 3.72.0 → 3.76.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 +27 -0
- package/dist-cjs/Glue.js +75 -0
- package/dist-cjs/commands/BatchGetCustomEntityTypesCommand.js +36 -0
- package/dist-cjs/commands/CreateCustomEntityTypeCommand.js +36 -0
- package/dist-cjs/commands/DeleteCustomEntityTypeCommand.js +36 -0
- package/dist-cjs/commands/GetColumnStatisticsForPartitionCommand.js +2 -1
- package/dist-cjs/commands/GetColumnStatisticsForTableCommand.js +3 -3
- package/dist-cjs/commands/GetCustomEntityTypeCommand.js +36 -0
- package/dist-cjs/commands/ListCustomEntityTypesCommand.js +36 -0
- package/dist-cjs/commands/UpdateJobCommand.js +2 -1
- package/dist-cjs/commands/UpdateMLTransformCommand.js +3 -3
- package/dist-cjs/commands/UpdatePartitionCommand.js +3 -3
- package/dist-cjs/commands/UpdateRegistryCommand.js +3 -3
- package/dist-cjs/commands/UpdateSchemaCommand.js +3 -3
- package/dist-cjs/commands/UpdateTableCommand.js +3 -3
- package/dist-cjs/commands/index.js +5 -0
- package/dist-cjs/models/models_0.js +61 -65
- package/dist-cjs/models/models_1.js +76 -72
- package/dist-cjs/models/models_2.js +67 -1
- package/dist-cjs/pagination/ListCustomEntityTypesPaginator.js +35 -0
- package/dist-cjs/pagination/index.js +1 -0
- package/dist-cjs/protocols/Aws_json1_1.js +421 -8
- package/dist-es/Glue.js +75 -0
- package/dist-es/commands/BatchGetCustomEntityTypesCommand.js +39 -0
- package/dist-es/commands/CreateCustomEntityTypeCommand.js +39 -0
- package/dist-es/commands/DeleteCustomEntityTypeCommand.js +39 -0
- package/dist-es/commands/GetColumnStatisticsForPartitionCommand.js +2 -1
- package/dist-es/commands/GetColumnStatisticsForTableCommand.js +1 -1
- package/dist-es/commands/GetCustomEntityTypeCommand.js +39 -0
- package/dist-es/commands/ListCustomEntityTypesCommand.js +39 -0
- package/dist-es/commands/UpdateJobCommand.js +2 -1
- package/dist-es/commands/UpdateMLTransformCommand.js +1 -1
- package/dist-es/commands/UpdatePartitionCommand.js +1 -1
- package/dist-es/commands/UpdateRegistryCommand.js +1 -1
- package/dist-es/commands/UpdateSchemaCommand.js +1 -1
- package/dist-es/commands/UpdateTableCommand.js +1 -1
- package/dist-es/commands/index.js +5 -0
- package/dist-es/models/models_0.js +41 -47
- package/dist-es/models/models_1.js +50 -44
- package/dist-es/models/models_2.js +44 -0
- package/dist-es/pagination/ListCustomEntityTypesPaginator.js +74 -0
- package/dist-es/pagination/index.js +1 -0
- package/dist-es/protocols/Aws_json1_1.js +493 -0
- package/dist-types/Glue.d.ts +20 -0
- package/dist-types/GlueClient.d.ts +7 -2
- package/dist-types/commands/BatchGetCustomEntityTypesCommand.d.ts +18 -0
- package/dist-types/commands/CreateCustomEntityTypeCommand.d.ts +18 -0
- package/dist-types/commands/DeleteCustomEntityTypeCommand.d.ts +18 -0
- package/dist-types/commands/GetColumnStatisticsForPartitionCommand.d.ts +2 -1
- package/dist-types/commands/GetColumnStatisticsForTableCommand.d.ts +1 -1
- package/dist-types/commands/GetCustomEntityTypeCommand.d.ts +18 -0
- package/dist-types/commands/ListCustomEntityTypesCommand.d.ts +18 -0
- package/dist-types/commands/UpdateJobCommand.d.ts +2 -1
- package/dist-types/commands/UpdateMLTransformCommand.d.ts +1 -1
- package/dist-types/commands/UpdatePartitionCommand.d.ts +1 -1
- package/dist-types/commands/UpdateRegistryCommand.d.ts +1 -1
- package/dist-types/commands/UpdateSchemaCommand.d.ts +1 -1
- package/dist-types/commands/UpdateTableCommand.d.ts +1 -1
- package/dist-types/commands/index.d.ts +5 -0
- package/dist-types/models/models_0.d.ts +83 -170
- package/dist-types/models/models_1.d.ts +196 -261
- package/dist-types/models/models_2.d.ts +262 -1
- package/dist-types/pagination/ListCustomEntityTypesPaginator.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/Glue.d.ts +20 -0
- package/dist-types/ts3.4/GlueClient.d.ts +7 -2
- package/dist-types/ts3.4/commands/BatchGetCustomEntityTypesCommand.d.ts +16 -0
- package/dist-types/ts3.4/commands/CreateCustomEntityTypeCommand.d.ts +16 -0
- package/dist-types/ts3.4/commands/DeleteCustomEntityTypeCommand.d.ts +16 -0
- package/dist-types/ts3.4/commands/GetColumnStatisticsForPartitionCommand.d.ts +2 -1
- package/dist-types/ts3.4/commands/GetColumnStatisticsForTableCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/GetCustomEntityTypeCommand.d.ts +16 -0
- package/dist-types/ts3.4/commands/ListCustomEntityTypesCommand.d.ts +16 -0
- package/dist-types/ts3.4/commands/UpdateJobCommand.d.ts +2 -1
- package/dist-types/ts3.4/commands/UpdateMLTransformCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/UpdatePartitionCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/UpdateRegistryCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/UpdateSchemaCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/UpdateTableCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/index.d.ts +5 -0
- package/dist-types/ts3.4/models/models_0.d.ts +24 -0
- package/dist-types/ts3.4/models/models_1.d.ts +125 -1
- package/dist-types/ts3.4/models/models_2.d.ts +137 -1
- package/dist-types/ts3.4/pagination/ListCustomEntityTypesPaginator.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 +9 -9
|
@@ -81,6 +81,17 @@ export var serializeAws_json1_1BatchGetCrawlersCommand = function (input, contex
|
|
|
81
81
|
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
82
82
|
});
|
|
83
83
|
}); };
|
|
84
|
+
export var serializeAws_json1_1BatchGetCustomEntityTypesCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
85
|
+
var headers, body;
|
|
86
|
+
return __generator(this, function (_a) {
|
|
87
|
+
headers = {
|
|
88
|
+
"content-type": "application/x-amz-json-1.1",
|
|
89
|
+
"x-amz-target": "AWSGlue.BatchGetCustomEntityTypes",
|
|
90
|
+
};
|
|
91
|
+
body = JSON.stringify(serializeAws_json1_1BatchGetCustomEntityTypesRequest(input, context));
|
|
92
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
93
|
+
});
|
|
94
|
+
}); };
|
|
84
95
|
export var serializeAws_json1_1BatchGetDevEndpointsCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
85
96
|
var headers, body;
|
|
86
97
|
return __generator(this, function (_a) {
|
|
@@ -235,6 +246,17 @@ export var serializeAws_json1_1CreateCrawlerCommand = function (input, context)
|
|
|
235
246
|
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
236
247
|
});
|
|
237
248
|
}); };
|
|
249
|
+
export var serializeAws_json1_1CreateCustomEntityTypeCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
250
|
+
var headers, body;
|
|
251
|
+
return __generator(this, function (_a) {
|
|
252
|
+
headers = {
|
|
253
|
+
"content-type": "application/x-amz-json-1.1",
|
|
254
|
+
"x-amz-target": "AWSGlue.CreateCustomEntityType",
|
|
255
|
+
};
|
|
256
|
+
body = JSON.stringify(serializeAws_json1_1CreateCustomEntityTypeRequest(input, context));
|
|
257
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
258
|
+
});
|
|
259
|
+
}); };
|
|
238
260
|
export var serializeAws_json1_1CreateDatabaseCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
239
261
|
var headers, body;
|
|
240
262
|
return __generator(this, function (_a) {
|
|
@@ -466,6 +488,17 @@ export var serializeAws_json1_1DeleteCrawlerCommand = function (input, context)
|
|
|
466
488
|
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
467
489
|
});
|
|
468
490
|
}); };
|
|
491
|
+
export var serializeAws_json1_1DeleteCustomEntityTypeCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
492
|
+
var headers, body;
|
|
493
|
+
return __generator(this, function (_a) {
|
|
494
|
+
headers = {
|
|
495
|
+
"content-type": "application/x-amz-json-1.1",
|
|
496
|
+
"x-amz-target": "AWSGlue.DeleteCustomEntityType",
|
|
497
|
+
};
|
|
498
|
+
body = JSON.stringify(serializeAws_json1_1DeleteCustomEntityTypeRequest(input, context));
|
|
499
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
500
|
+
});
|
|
501
|
+
}); };
|
|
469
502
|
export var serializeAws_json1_1DeleteDatabaseCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
470
503
|
var headers, body;
|
|
471
504
|
return __generator(this, function (_a) {
|
|
@@ -796,6 +829,17 @@ export var serializeAws_json1_1GetCrawlersCommand = function (input, context) {
|
|
|
796
829
|
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
797
830
|
});
|
|
798
831
|
}); };
|
|
832
|
+
export var serializeAws_json1_1GetCustomEntityTypeCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
833
|
+
var headers, body;
|
|
834
|
+
return __generator(this, function (_a) {
|
|
835
|
+
headers = {
|
|
836
|
+
"content-type": "application/x-amz-json-1.1",
|
|
837
|
+
"x-amz-target": "AWSGlue.GetCustomEntityType",
|
|
838
|
+
};
|
|
839
|
+
body = JSON.stringify(serializeAws_json1_1GetCustomEntityTypeRequest(input, context));
|
|
840
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
841
|
+
});
|
|
842
|
+
}); };
|
|
799
843
|
export var serializeAws_json1_1GetDatabaseCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
800
844
|
var headers, body;
|
|
801
845
|
return __generator(this, function (_a) {
|
|
@@ -1346,6 +1390,17 @@ export var serializeAws_json1_1ListCrawlersCommand = function (input, context) {
|
|
|
1346
1390
|
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
1347
1391
|
});
|
|
1348
1392
|
}); };
|
|
1393
|
+
export var serializeAws_json1_1ListCustomEntityTypesCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1394
|
+
var headers, body;
|
|
1395
|
+
return __generator(this, function (_a) {
|
|
1396
|
+
headers = {
|
|
1397
|
+
"content-type": "application/x-amz-json-1.1",
|
|
1398
|
+
"x-amz-target": "AWSGlue.ListCustomEntityTypes",
|
|
1399
|
+
};
|
|
1400
|
+
body = JSON.stringify(serializeAws_json1_1ListCustomEntityTypesRequest(input, context));
|
|
1401
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
1402
|
+
});
|
|
1403
|
+
}); };
|
|
1349
1404
|
export var serializeAws_json1_1ListDevEndpointsCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1350
1405
|
var headers, body;
|
|
1351
1406
|
return __generator(this, function (_a) {
|
|
@@ -2396,6 +2451,64 @@ var deserializeAws_json1_1BatchGetCrawlersCommandError = function (output, conte
|
|
|
2396
2451
|
}
|
|
2397
2452
|
});
|
|
2398
2453
|
}); };
|
|
2454
|
+
export var deserializeAws_json1_1BatchGetCustomEntityTypesCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2455
|
+
var data, contents, response;
|
|
2456
|
+
return __generator(this, function (_a) {
|
|
2457
|
+
switch (_a.label) {
|
|
2458
|
+
case 0:
|
|
2459
|
+
if (output.statusCode >= 300) {
|
|
2460
|
+
return [2, deserializeAws_json1_1BatchGetCustomEntityTypesCommandError(output, context)];
|
|
2461
|
+
}
|
|
2462
|
+
return [4, parseBody(output.body, context)];
|
|
2463
|
+
case 1:
|
|
2464
|
+
data = _a.sent();
|
|
2465
|
+
contents = {};
|
|
2466
|
+
contents = deserializeAws_json1_1BatchGetCustomEntityTypesResponse(data, context);
|
|
2467
|
+
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
2468
|
+
return [2, Promise.resolve(response)];
|
|
2469
|
+
}
|
|
2470
|
+
});
|
|
2471
|
+
}); };
|
|
2472
|
+
var deserializeAws_json1_1BatchGetCustomEntityTypesCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2473
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
2474
|
+
var _c;
|
|
2475
|
+
return __generator(this, function (_d) {
|
|
2476
|
+
switch (_d.label) {
|
|
2477
|
+
case 0:
|
|
2478
|
+
_a = [__assign({}, output)];
|
|
2479
|
+
_c = {};
|
|
2480
|
+
return [4, parseBody(output.body, context)];
|
|
2481
|
+
case 1:
|
|
2482
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
2483
|
+
errorCode = "UnknownError";
|
|
2484
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2485
|
+
_b = errorCode;
|
|
2486
|
+
switch (_b) {
|
|
2487
|
+
case "InternalServiceException": return [3, 2];
|
|
2488
|
+
case "com.amazonaws.glue#InternalServiceException": return [3, 2];
|
|
2489
|
+
case "InvalidInputException": return [3, 4];
|
|
2490
|
+
case "com.amazonaws.glue#InvalidInputException": return [3, 4];
|
|
2491
|
+
case "OperationTimeoutException": return [3, 6];
|
|
2492
|
+
case "com.amazonaws.glue#OperationTimeoutException": return [3, 6];
|
|
2493
|
+
}
|
|
2494
|
+
return [3, 8];
|
|
2495
|
+
case 2: return [4, deserializeAws_json1_1InternalServiceExceptionResponse(parsedOutput, context)];
|
|
2496
|
+
case 3: throw _d.sent();
|
|
2497
|
+
case 4: return [4, deserializeAws_json1_1InvalidInputExceptionResponse(parsedOutput, context)];
|
|
2498
|
+
case 5: throw _d.sent();
|
|
2499
|
+
case 6: return [4, deserializeAws_json1_1OperationTimeoutExceptionResponse(parsedOutput, context)];
|
|
2500
|
+
case 7: throw _d.sent();
|
|
2501
|
+
case 8:
|
|
2502
|
+
parsedBody = parsedOutput.body;
|
|
2503
|
+
response = new __BaseException({
|
|
2504
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2505
|
+
$fault: "client",
|
|
2506
|
+
$metadata: deserializeMetadata(output),
|
|
2507
|
+
});
|
|
2508
|
+
throw __decorateServiceException(response, parsedBody);
|
|
2509
|
+
}
|
|
2510
|
+
});
|
|
2511
|
+
}); };
|
|
2399
2512
|
export var deserializeAws_json1_1BatchGetDevEndpointsCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2400
2513
|
var data, contents, response;
|
|
2401
2514
|
return __generator(this, function (_a) {
|
|
@@ -3268,6 +3381,80 @@ var deserializeAws_json1_1CreateCrawlerCommandError = function (output, context)
|
|
|
3268
3381
|
}
|
|
3269
3382
|
});
|
|
3270
3383
|
}); };
|
|
3384
|
+
export var deserializeAws_json1_1CreateCustomEntityTypeCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3385
|
+
var data, contents, response;
|
|
3386
|
+
return __generator(this, function (_a) {
|
|
3387
|
+
switch (_a.label) {
|
|
3388
|
+
case 0:
|
|
3389
|
+
if (output.statusCode >= 300) {
|
|
3390
|
+
return [2, deserializeAws_json1_1CreateCustomEntityTypeCommandError(output, context)];
|
|
3391
|
+
}
|
|
3392
|
+
return [4, parseBody(output.body, context)];
|
|
3393
|
+
case 1:
|
|
3394
|
+
data = _a.sent();
|
|
3395
|
+
contents = {};
|
|
3396
|
+
contents = deserializeAws_json1_1CreateCustomEntityTypeResponse(data, context);
|
|
3397
|
+
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
3398
|
+
return [2, Promise.resolve(response)];
|
|
3399
|
+
}
|
|
3400
|
+
});
|
|
3401
|
+
}); };
|
|
3402
|
+
var deserializeAws_json1_1CreateCustomEntityTypeCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3403
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
3404
|
+
var _c;
|
|
3405
|
+
return __generator(this, function (_d) {
|
|
3406
|
+
switch (_d.label) {
|
|
3407
|
+
case 0:
|
|
3408
|
+
_a = [__assign({}, output)];
|
|
3409
|
+
_c = {};
|
|
3410
|
+
return [4, parseBody(output.body, context)];
|
|
3411
|
+
case 1:
|
|
3412
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
3413
|
+
errorCode = "UnknownError";
|
|
3414
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3415
|
+
_b = errorCode;
|
|
3416
|
+
switch (_b) {
|
|
3417
|
+
case "AccessDeniedException": return [3, 2];
|
|
3418
|
+
case "com.amazonaws.glue#AccessDeniedException": return [3, 2];
|
|
3419
|
+
case "AlreadyExistsException": return [3, 4];
|
|
3420
|
+
case "com.amazonaws.glue#AlreadyExistsException": return [3, 4];
|
|
3421
|
+
case "IdempotentParameterMismatchException": return [3, 6];
|
|
3422
|
+
case "com.amazonaws.glue#IdempotentParameterMismatchException": return [3, 6];
|
|
3423
|
+
case "InternalServiceException": return [3, 8];
|
|
3424
|
+
case "com.amazonaws.glue#InternalServiceException": return [3, 8];
|
|
3425
|
+
case "InvalidInputException": return [3, 10];
|
|
3426
|
+
case "com.amazonaws.glue#InvalidInputException": return [3, 10];
|
|
3427
|
+
case "OperationTimeoutException": return [3, 12];
|
|
3428
|
+
case "com.amazonaws.glue#OperationTimeoutException": return [3, 12];
|
|
3429
|
+
case "ResourceNumberLimitExceededException": return [3, 14];
|
|
3430
|
+
case "com.amazonaws.glue#ResourceNumberLimitExceededException": return [3, 14];
|
|
3431
|
+
}
|
|
3432
|
+
return [3, 16];
|
|
3433
|
+
case 2: return [4, deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context)];
|
|
3434
|
+
case 3: throw _d.sent();
|
|
3435
|
+
case 4: return [4, deserializeAws_json1_1AlreadyExistsExceptionResponse(parsedOutput, context)];
|
|
3436
|
+
case 5: throw _d.sent();
|
|
3437
|
+
case 6: return [4, deserializeAws_json1_1IdempotentParameterMismatchExceptionResponse(parsedOutput, context)];
|
|
3438
|
+
case 7: throw _d.sent();
|
|
3439
|
+
case 8: return [4, deserializeAws_json1_1InternalServiceExceptionResponse(parsedOutput, context)];
|
|
3440
|
+
case 9: throw _d.sent();
|
|
3441
|
+
case 10: return [4, deserializeAws_json1_1InvalidInputExceptionResponse(parsedOutput, context)];
|
|
3442
|
+
case 11: throw _d.sent();
|
|
3443
|
+
case 12: return [4, deserializeAws_json1_1OperationTimeoutExceptionResponse(parsedOutput, context)];
|
|
3444
|
+
case 13: throw _d.sent();
|
|
3445
|
+
case 14: return [4, deserializeAws_json1_1ResourceNumberLimitExceededExceptionResponse(parsedOutput, context)];
|
|
3446
|
+
case 15: throw _d.sent();
|
|
3447
|
+
case 16:
|
|
3448
|
+
parsedBody = parsedOutput.body;
|
|
3449
|
+
response = new __BaseException({
|
|
3450
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3451
|
+
$fault: "client",
|
|
3452
|
+
$metadata: deserializeMetadata(output),
|
|
3453
|
+
});
|
|
3454
|
+
throw __decorateServiceException(response, parsedBody);
|
|
3455
|
+
}
|
|
3456
|
+
});
|
|
3457
|
+
}); };
|
|
3271
3458
|
export var deserializeAws_json1_1CreateDatabaseCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3272
3459
|
var data, contents, response;
|
|
3273
3460
|
return __generator(this, function (_a) {
|
|
@@ -4726,6 +4913,72 @@ var deserializeAws_json1_1DeleteCrawlerCommandError = function (output, context)
|
|
|
4726
4913
|
}
|
|
4727
4914
|
});
|
|
4728
4915
|
}); };
|
|
4916
|
+
export var deserializeAws_json1_1DeleteCustomEntityTypeCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
4917
|
+
var data, contents, response;
|
|
4918
|
+
return __generator(this, function (_a) {
|
|
4919
|
+
switch (_a.label) {
|
|
4920
|
+
case 0:
|
|
4921
|
+
if (output.statusCode >= 300) {
|
|
4922
|
+
return [2, deserializeAws_json1_1DeleteCustomEntityTypeCommandError(output, context)];
|
|
4923
|
+
}
|
|
4924
|
+
return [4, parseBody(output.body, context)];
|
|
4925
|
+
case 1:
|
|
4926
|
+
data = _a.sent();
|
|
4927
|
+
contents = {};
|
|
4928
|
+
contents = deserializeAws_json1_1DeleteCustomEntityTypeResponse(data, context);
|
|
4929
|
+
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
4930
|
+
return [2, Promise.resolve(response)];
|
|
4931
|
+
}
|
|
4932
|
+
});
|
|
4933
|
+
}); };
|
|
4934
|
+
var deserializeAws_json1_1DeleteCustomEntityTypeCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
4935
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
4936
|
+
var _c;
|
|
4937
|
+
return __generator(this, function (_d) {
|
|
4938
|
+
switch (_d.label) {
|
|
4939
|
+
case 0:
|
|
4940
|
+
_a = [__assign({}, output)];
|
|
4941
|
+
_c = {};
|
|
4942
|
+
return [4, parseBody(output.body, context)];
|
|
4943
|
+
case 1:
|
|
4944
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
4945
|
+
errorCode = "UnknownError";
|
|
4946
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4947
|
+
_b = errorCode;
|
|
4948
|
+
switch (_b) {
|
|
4949
|
+
case "AccessDeniedException": return [3, 2];
|
|
4950
|
+
case "com.amazonaws.glue#AccessDeniedException": return [3, 2];
|
|
4951
|
+
case "EntityNotFoundException": return [3, 4];
|
|
4952
|
+
case "com.amazonaws.glue#EntityNotFoundException": return [3, 4];
|
|
4953
|
+
case "InternalServiceException": return [3, 6];
|
|
4954
|
+
case "com.amazonaws.glue#InternalServiceException": return [3, 6];
|
|
4955
|
+
case "InvalidInputException": return [3, 8];
|
|
4956
|
+
case "com.amazonaws.glue#InvalidInputException": return [3, 8];
|
|
4957
|
+
case "OperationTimeoutException": return [3, 10];
|
|
4958
|
+
case "com.amazonaws.glue#OperationTimeoutException": return [3, 10];
|
|
4959
|
+
}
|
|
4960
|
+
return [3, 12];
|
|
4961
|
+
case 2: return [4, deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context)];
|
|
4962
|
+
case 3: throw _d.sent();
|
|
4963
|
+
case 4: return [4, deserializeAws_json1_1EntityNotFoundExceptionResponse(parsedOutput, context)];
|
|
4964
|
+
case 5: throw _d.sent();
|
|
4965
|
+
case 6: return [4, deserializeAws_json1_1InternalServiceExceptionResponse(parsedOutput, context)];
|
|
4966
|
+
case 7: throw _d.sent();
|
|
4967
|
+
case 8: return [4, deserializeAws_json1_1InvalidInputExceptionResponse(parsedOutput, context)];
|
|
4968
|
+
case 9: throw _d.sent();
|
|
4969
|
+
case 10: return [4, deserializeAws_json1_1OperationTimeoutExceptionResponse(parsedOutput, context)];
|
|
4970
|
+
case 11: throw _d.sent();
|
|
4971
|
+
case 12:
|
|
4972
|
+
parsedBody = parsedOutput.body;
|
|
4973
|
+
response = new __BaseException({
|
|
4974
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
4975
|
+
$fault: "client",
|
|
4976
|
+
$metadata: deserializeMetadata(output),
|
|
4977
|
+
});
|
|
4978
|
+
throw __decorateServiceException(response, parsedBody);
|
|
4979
|
+
}
|
|
4980
|
+
});
|
|
4981
|
+
}); };
|
|
4729
4982
|
export var deserializeAws_json1_1DeleteDatabaseCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
4730
4983
|
var data, contents, response;
|
|
4731
4984
|
return __generator(this, function (_a) {
|
|
@@ -6558,6 +6811,72 @@ var deserializeAws_json1_1GetCrawlersCommandError = function (output, context) {
|
|
|
6558
6811
|
}
|
|
6559
6812
|
});
|
|
6560
6813
|
}); };
|
|
6814
|
+
export var deserializeAws_json1_1GetCustomEntityTypeCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
6815
|
+
var data, contents, response;
|
|
6816
|
+
return __generator(this, function (_a) {
|
|
6817
|
+
switch (_a.label) {
|
|
6818
|
+
case 0:
|
|
6819
|
+
if (output.statusCode >= 300) {
|
|
6820
|
+
return [2, deserializeAws_json1_1GetCustomEntityTypeCommandError(output, context)];
|
|
6821
|
+
}
|
|
6822
|
+
return [4, parseBody(output.body, context)];
|
|
6823
|
+
case 1:
|
|
6824
|
+
data = _a.sent();
|
|
6825
|
+
contents = {};
|
|
6826
|
+
contents = deserializeAws_json1_1GetCustomEntityTypeResponse(data, context);
|
|
6827
|
+
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
6828
|
+
return [2, Promise.resolve(response)];
|
|
6829
|
+
}
|
|
6830
|
+
});
|
|
6831
|
+
}); };
|
|
6832
|
+
var deserializeAws_json1_1GetCustomEntityTypeCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
6833
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
6834
|
+
var _c;
|
|
6835
|
+
return __generator(this, function (_d) {
|
|
6836
|
+
switch (_d.label) {
|
|
6837
|
+
case 0:
|
|
6838
|
+
_a = [__assign({}, output)];
|
|
6839
|
+
_c = {};
|
|
6840
|
+
return [4, parseBody(output.body, context)];
|
|
6841
|
+
case 1:
|
|
6842
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
6843
|
+
errorCode = "UnknownError";
|
|
6844
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
6845
|
+
_b = errorCode;
|
|
6846
|
+
switch (_b) {
|
|
6847
|
+
case "AccessDeniedException": return [3, 2];
|
|
6848
|
+
case "com.amazonaws.glue#AccessDeniedException": return [3, 2];
|
|
6849
|
+
case "EntityNotFoundException": return [3, 4];
|
|
6850
|
+
case "com.amazonaws.glue#EntityNotFoundException": return [3, 4];
|
|
6851
|
+
case "InternalServiceException": return [3, 6];
|
|
6852
|
+
case "com.amazonaws.glue#InternalServiceException": return [3, 6];
|
|
6853
|
+
case "InvalidInputException": return [3, 8];
|
|
6854
|
+
case "com.amazonaws.glue#InvalidInputException": return [3, 8];
|
|
6855
|
+
case "OperationTimeoutException": return [3, 10];
|
|
6856
|
+
case "com.amazonaws.glue#OperationTimeoutException": return [3, 10];
|
|
6857
|
+
}
|
|
6858
|
+
return [3, 12];
|
|
6859
|
+
case 2: return [4, deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context)];
|
|
6860
|
+
case 3: throw _d.sent();
|
|
6861
|
+
case 4: return [4, deserializeAws_json1_1EntityNotFoundExceptionResponse(parsedOutput, context)];
|
|
6862
|
+
case 5: throw _d.sent();
|
|
6863
|
+
case 6: return [4, deserializeAws_json1_1InternalServiceExceptionResponse(parsedOutput, context)];
|
|
6864
|
+
case 7: throw _d.sent();
|
|
6865
|
+
case 8: return [4, deserializeAws_json1_1InvalidInputExceptionResponse(parsedOutput, context)];
|
|
6866
|
+
case 9: throw _d.sent();
|
|
6867
|
+
case 10: return [4, deserializeAws_json1_1OperationTimeoutExceptionResponse(parsedOutput, context)];
|
|
6868
|
+
case 11: throw _d.sent();
|
|
6869
|
+
case 12:
|
|
6870
|
+
parsedBody = parsedOutput.body;
|
|
6871
|
+
response = new __BaseException({
|
|
6872
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
6873
|
+
$fault: "client",
|
|
6874
|
+
$metadata: deserializeMetadata(output),
|
|
6875
|
+
});
|
|
6876
|
+
throw __decorateServiceException(response, parsedBody);
|
|
6877
|
+
}
|
|
6878
|
+
});
|
|
6879
|
+
}); };
|
|
6561
6880
|
export var deserializeAws_json1_1GetDatabaseCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
6562
6881
|
var data, contents, response;
|
|
6563
6882
|
return __generator(this, function (_a) {
|
|
@@ -9714,6 +10033,64 @@ var deserializeAws_json1_1ListCrawlersCommandError = function (output, context)
|
|
|
9714
10033
|
}
|
|
9715
10034
|
});
|
|
9716
10035
|
}); };
|
|
10036
|
+
export var deserializeAws_json1_1ListCustomEntityTypesCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
10037
|
+
var data, contents, response;
|
|
10038
|
+
return __generator(this, function (_a) {
|
|
10039
|
+
switch (_a.label) {
|
|
10040
|
+
case 0:
|
|
10041
|
+
if (output.statusCode >= 300) {
|
|
10042
|
+
return [2, deserializeAws_json1_1ListCustomEntityTypesCommandError(output, context)];
|
|
10043
|
+
}
|
|
10044
|
+
return [4, parseBody(output.body, context)];
|
|
10045
|
+
case 1:
|
|
10046
|
+
data = _a.sent();
|
|
10047
|
+
contents = {};
|
|
10048
|
+
contents = deserializeAws_json1_1ListCustomEntityTypesResponse(data, context);
|
|
10049
|
+
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
10050
|
+
return [2, Promise.resolve(response)];
|
|
10051
|
+
}
|
|
10052
|
+
});
|
|
10053
|
+
}); };
|
|
10054
|
+
var deserializeAws_json1_1ListCustomEntityTypesCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
10055
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
10056
|
+
var _c;
|
|
10057
|
+
return __generator(this, function (_d) {
|
|
10058
|
+
switch (_d.label) {
|
|
10059
|
+
case 0:
|
|
10060
|
+
_a = [__assign({}, output)];
|
|
10061
|
+
_c = {};
|
|
10062
|
+
return [4, parseBody(output.body, context)];
|
|
10063
|
+
case 1:
|
|
10064
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
10065
|
+
errorCode = "UnknownError";
|
|
10066
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
10067
|
+
_b = errorCode;
|
|
10068
|
+
switch (_b) {
|
|
10069
|
+
case "InternalServiceException": return [3, 2];
|
|
10070
|
+
case "com.amazonaws.glue#InternalServiceException": return [3, 2];
|
|
10071
|
+
case "InvalidInputException": return [3, 4];
|
|
10072
|
+
case "com.amazonaws.glue#InvalidInputException": return [3, 4];
|
|
10073
|
+
case "OperationTimeoutException": return [3, 6];
|
|
10074
|
+
case "com.amazonaws.glue#OperationTimeoutException": return [3, 6];
|
|
10075
|
+
}
|
|
10076
|
+
return [3, 8];
|
|
10077
|
+
case 2: return [4, deserializeAws_json1_1InternalServiceExceptionResponse(parsedOutput, context)];
|
|
10078
|
+
case 3: throw _d.sent();
|
|
10079
|
+
case 4: return [4, deserializeAws_json1_1InvalidInputExceptionResponse(parsedOutput, context)];
|
|
10080
|
+
case 5: throw _d.sent();
|
|
10081
|
+
case 6: return [4, deserializeAws_json1_1OperationTimeoutExceptionResponse(parsedOutput, context)];
|
|
10082
|
+
case 7: throw _d.sent();
|
|
10083
|
+
case 8:
|
|
10084
|
+
parsedBody = parsedOutput.body;
|
|
10085
|
+
response = new __BaseException({
|
|
10086
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
10087
|
+
$fault: "client",
|
|
10088
|
+
$metadata: deserializeMetadata(output),
|
|
10089
|
+
});
|
|
10090
|
+
throw __decorateServiceException(response, parsedBody);
|
|
10091
|
+
}
|
|
10092
|
+
});
|
|
10093
|
+
}); };
|
|
9717
10094
|
export var deserializeAws_json1_1ListDevEndpointsCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
9718
10095
|
var data, contents, response;
|
|
9719
10096
|
return __generator(this, function (_a) {
|
|
@@ -13759,6 +14136,10 @@ var serializeAws_json1_1BatchGetCrawlersRequest = function (input, context) {
|
|
|
13759
14136
|
CrawlerNames: serializeAws_json1_1CrawlerNameList(input.CrawlerNames, context),
|
|
13760
14137
|
}));
|
|
13761
14138
|
};
|
|
14139
|
+
var serializeAws_json1_1BatchGetCustomEntityTypesRequest = function (input, context) {
|
|
14140
|
+
return __assign({}, (input.Names !== undefined &&
|
|
14141
|
+
input.Names !== null && { Names: serializeAws_json1_1CustomEntityTypeNames(input.Names, context) }));
|
|
14142
|
+
};
|
|
13762
14143
|
var serializeAws_json1_1BatchGetDevEndpointsRequest = function (input, context) {
|
|
13763
14144
|
return __assign({}, (input.DevEndpointNames !== undefined &&
|
|
13764
14145
|
input.DevEndpointNames !== null && {
|
|
@@ -14041,6 +14422,16 @@ var serializeAws_json1_1ConnectionsList = function (input, context) {
|
|
|
14041
14422
|
Connections: serializeAws_json1_1OrchestrationStringList(input.Connections, context),
|
|
14042
14423
|
}));
|
|
14043
14424
|
};
|
|
14425
|
+
var serializeAws_json1_1ContextWords = function (input, context) {
|
|
14426
|
+
return input
|
|
14427
|
+
.filter(function (e) { return e != null; })
|
|
14428
|
+
.map(function (entry) {
|
|
14429
|
+
if (entry === null) {
|
|
14430
|
+
return null;
|
|
14431
|
+
}
|
|
14432
|
+
return entry;
|
|
14433
|
+
});
|
|
14434
|
+
};
|
|
14044
14435
|
var serializeAws_json1_1CrawlerNameList = function (input, context) {
|
|
14045
14436
|
return input
|
|
14046
14437
|
.filter(function (e) { return e != null; })
|
|
@@ -14122,6 +14513,10 @@ var serializeAws_json1_1CreateCsvClassifierRequest = function (input, context) {
|
|
|
14122
14513
|
input.DisableValueTrimming !== null && { DisableValueTrimming: input.DisableValueTrimming })), (input.Header !== undefined &&
|
|
14123
14514
|
input.Header !== null && { Header: serializeAws_json1_1CsvHeader(input.Header, context) })), (input.Name !== undefined && input.Name !== null && { Name: input.Name })), (input.QuoteSymbol !== undefined && input.QuoteSymbol !== null && { QuoteSymbol: input.QuoteSymbol }));
|
|
14124
14515
|
};
|
|
14516
|
+
var serializeAws_json1_1CreateCustomEntityTypeRequest = function (input, context) {
|
|
14517
|
+
return __assign(__assign(__assign({}, (input.ContextWords !== undefined &&
|
|
14518
|
+
input.ContextWords !== null && { ContextWords: serializeAws_json1_1ContextWords(input.ContextWords, context) })), (input.Name !== undefined && input.Name !== null && { Name: input.Name })), (input.RegexString !== undefined && input.RegexString !== null && { RegexString: input.RegexString }));
|
|
14519
|
+
};
|
|
14125
14520
|
var serializeAws_json1_1CreateDatabaseRequest = function (input, context) {
|
|
14126
14521
|
return __assign(__assign({}, (input.CatalogId !== undefined && input.CatalogId !== null && { CatalogId: input.CatalogId })), (input.DatabaseInput !== undefined &&
|
|
14127
14522
|
input.DatabaseInput !== null && {
|
|
@@ -14266,6 +14661,16 @@ var serializeAws_json1_1CsvHeader = function (input, context) {
|
|
|
14266
14661
|
return entry;
|
|
14267
14662
|
});
|
|
14268
14663
|
};
|
|
14664
|
+
var serializeAws_json1_1CustomEntityTypeNames = function (input, context) {
|
|
14665
|
+
return input
|
|
14666
|
+
.filter(function (e) { return e != null; })
|
|
14667
|
+
.map(function (entry) {
|
|
14668
|
+
if (entry === null) {
|
|
14669
|
+
return null;
|
|
14670
|
+
}
|
|
14671
|
+
return entry;
|
|
14672
|
+
});
|
|
14673
|
+
};
|
|
14269
14674
|
var serializeAws_json1_1DagEdges = function (input, context) {
|
|
14270
14675
|
return input
|
|
14271
14676
|
.filter(function (e) { return e != null; })
|
|
@@ -14360,6 +14765,9 @@ var serializeAws_json1_1DeleteConnectionRequest = function (input, context) {
|
|
|
14360
14765
|
var serializeAws_json1_1DeleteCrawlerRequest = function (input, context) {
|
|
14361
14766
|
return __assign({}, (input.Name !== undefined && input.Name !== null && { Name: input.Name }));
|
|
14362
14767
|
};
|
|
14768
|
+
var serializeAws_json1_1DeleteCustomEntityTypeRequest = function (input, context) {
|
|
14769
|
+
return __assign({}, (input.Name !== undefined && input.Name !== null && { Name: input.Name }));
|
|
14770
|
+
};
|
|
14363
14771
|
var serializeAws_json1_1DeleteDatabaseRequest = function (input, context) {
|
|
14364
14772
|
return __assign(__assign({}, (input.CatalogId !== undefined && input.CatalogId !== null && { CatalogId: input.CatalogId })), (input.Name !== undefined && input.Name !== null && { Name: input.Name }));
|
|
14365
14773
|
};
|
|
@@ -14581,6 +14989,9 @@ var serializeAws_json1_1GetCrawlerRequest = function (input, context) {
|
|
|
14581
14989
|
var serializeAws_json1_1GetCrawlersRequest = function (input, context) {
|
|
14582
14990
|
return __assign(__assign({}, (input.MaxResults !== undefined && input.MaxResults !== null && { MaxResults: input.MaxResults })), (input.NextToken !== undefined && input.NextToken !== null && { NextToken: input.NextToken }));
|
|
14583
14991
|
};
|
|
14992
|
+
var serializeAws_json1_1GetCustomEntityTypeRequest = function (input, context) {
|
|
14993
|
+
return __assign({}, (input.Name !== undefined && input.Name !== null && { Name: input.Name }));
|
|
14994
|
+
};
|
|
14584
14995
|
var serializeAws_json1_1GetDatabaseRequest = function (input, context) {
|
|
14585
14996
|
return __assign(__assign({}, (input.CatalogId !== undefined && input.CatalogId !== null && { CatalogId: input.CatalogId })), (input.Name !== undefined && input.Name !== null && { Name: input.Name }));
|
|
14586
14997
|
};
|
|
@@ -14875,6 +15286,9 @@ var serializeAws_json1_1ListBlueprintsRequest = function (input, context) {
|
|
|
14875
15286
|
var serializeAws_json1_1ListCrawlersRequest = function (input, context) {
|
|
14876
15287
|
return __assign(__assign(__assign({}, (input.MaxResults !== undefined && input.MaxResults !== null && { MaxResults: input.MaxResults })), (input.NextToken !== undefined && input.NextToken !== null && { NextToken: input.NextToken })), (input.Tags !== undefined && input.Tags !== null && { Tags: serializeAws_json1_1TagsMap(input.Tags, context) }));
|
|
14877
15288
|
};
|
|
15289
|
+
var serializeAws_json1_1ListCustomEntityTypesRequest = function (input, context) {
|
|
15290
|
+
return __assign(__assign({}, (input.MaxResults !== undefined && input.MaxResults !== null && { MaxResults: input.MaxResults })), (input.NextToken !== undefined && input.NextToken !== null && { NextToken: input.NextToken }));
|
|
15291
|
+
};
|
|
14878
15292
|
var serializeAws_json1_1ListDevEndpointsRequest = function (input, context) {
|
|
14879
15293
|
return __assign(__assign(__assign({}, (input.MaxResults !== undefined && input.MaxResults !== null && { MaxResults: input.MaxResults })), (input.NextToken !== undefined && input.NextToken !== null && { NextToken: input.NextToken })), (input.Tags !== undefined && input.Tags !== null && { Tags: serializeAws_json1_1TagsMap(input.Tags, context) }));
|
|
14880
15294
|
};
|
|
@@ -15899,6 +16313,16 @@ var deserializeAws_json1_1BatchGetCrawlersResponse = function (output, context)
|
|
|
15899
16313
|
: undefined,
|
|
15900
16314
|
};
|
|
15901
16315
|
};
|
|
16316
|
+
var deserializeAws_json1_1BatchGetCustomEntityTypesResponse = function (output, context) {
|
|
16317
|
+
return {
|
|
16318
|
+
CustomEntityTypes: output.CustomEntityTypes !== undefined && output.CustomEntityTypes !== null
|
|
16319
|
+
? deserializeAws_json1_1CustomEntityTypes(output.CustomEntityTypes, context)
|
|
16320
|
+
: undefined,
|
|
16321
|
+
CustomEntityTypesNotFound: output.CustomEntityTypesNotFound !== undefined && output.CustomEntityTypesNotFound !== null
|
|
16322
|
+
? deserializeAws_json1_1CustomEntityTypeNames(output.CustomEntityTypesNotFound, context)
|
|
16323
|
+
: undefined,
|
|
16324
|
+
};
|
|
16325
|
+
};
|
|
15902
16326
|
var deserializeAws_json1_1BatchGetDevEndpointsResponse = function (output, context) {
|
|
15903
16327
|
return {
|
|
15904
16328
|
DevEndpoints: output.DevEndpoints !== undefined && output.DevEndpoints !== null
|
|
@@ -16532,6 +16956,17 @@ var deserializeAws_json1_1ConnectionsList = function (output, context) {
|
|
|
16532
16956
|
: undefined,
|
|
16533
16957
|
};
|
|
16534
16958
|
};
|
|
16959
|
+
var deserializeAws_json1_1ContextWords = function (output, context) {
|
|
16960
|
+
var retVal = (output || [])
|
|
16961
|
+
.filter(function (e) { return e != null; })
|
|
16962
|
+
.map(function (entry) {
|
|
16963
|
+
if (entry === null) {
|
|
16964
|
+
return null;
|
|
16965
|
+
}
|
|
16966
|
+
return __expectString(entry);
|
|
16967
|
+
});
|
|
16968
|
+
return retVal;
|
|
16969
|
+
};
|
|
16535
16970
|
var deserializeAws_json1_1Crawl = function (output, context) {
|
|
16536
16971
|
return {
|
|
16537
16972
|
CompletedOn: output.CompletedOn !== undefined && output.CompletedOn !== null
|
|
@@ -16704,6 +17139,11 @@ var deserializeAws_json1_1CreateConnectionResponse = function (output, context)
|
|
|
16704
17139
|
var deserializeAws_json1_1CreateCrawlerResponse = function (output, context) {
|
|
16705
17140
|
return {};
|
|
16706
17141
|
};
|
|
17142
|
+
var deserializeAws_json1_1CreateCustomEntityTypeResponse = function (output, context) {
|
|
17143
|
+
return {
|
|
17144
|
+
Name: __expectString(output.Name),
|
|
17145
|
+
};
|
|
17146
|
+
};
|
|
16707
17147
|
var deserializeAws_json1_1CreateDatabaseResponse = function (output, context) {
|
|
16708
17148
|
return {};
|
|
16709
17149
|
};
|
|
@@ -16850,6 +17290,37 @@ var deserializeAws_json1_1CsvHeader = function (output, context) {
|
|
|
16850
17290
|
});
|
|
16851
17291
|
return retVal;
|
|
16852
17292
|
};
|
|
17293
|
+
var deserializeAws_json1_1CustomEntityType = function (output, context) {
|
|
17294
|
+
return {
|
|
17295
|
+
ContextWords: output.ContextWords !== undefined && output.ContextWords !== null
|
|
17296
|
+
? deserializeAws_json1_1ContextWords(output.ContextWords, context)
|
|
17297
|
+
: undefined,
|
|
17298
|
+
Name: __expectString(output.Name),
|
|
17299
|
+
RegexString: __expectString(output.RegexString),
|
|
17300
|
+
};
|
|
17301
|
+
};
|
|
17302
|
+
var deserializeAws_json1_1CustomEntityTypeNames = function (output, context) {
|
|
17303
|
+
var retVal = (output || [])
|
|
17304
|
+
.filter(function (e) { return e != null; })
|
|
17305
|
+
.map(function (entry) {
|
|
17306
|
+
if (entry === null) {
|
|
17307
|
+
return null;
|
|
17308
|
+
}
|
|
17309
|
+
return __expectString(entry);
|
|
17310
|
+
});
|
|
17311
|
+
return retVal;
|
|
17312
|
+
};
|
|
17313
|
+
var deserializeAws_json1_1CustomEntityTypes = function (output, context) {
|
|
17314
|
+
var retVal = (output || [])
|
|
17315
|
+
.filter(function (e) { return e != null; })
|
|
17316
|
+
.map(function (entry) {
|
|
17317
|
+
if (entry === null) {
|
|
17318
|
+
return null;
|
|
17319
|
+
}
|
|
17320
|
+
return deserializeAws_json1_1CustomEntityType(entry, context);
|
|
17321
|
+
});
|
|
17322
|
+
return retVal;
|
|
17323
|
+
};
|
|
16853
17324
|
var deserializeAws_json1_1DagEdges = function (output, context) {
|
|
16854
17325
|
var retVal = (output || [])
|
|
16855
17326
|
.filter(function (e) { return e != null; })
|
|
@@ -16976,6 +17447,11 @@ var deserializeAws_json1_1DeleteConnectionResponse = function (output, context)
|
|
|
16976
17447
|
var deserializeAws_json1_1DeleteCrawlerResponse = function (output, context) {
|
|
16977
17448
|
return {};
|
|
16978
17449
|
};
|
|
17450
|
+
var deserializeAws_json1_1DeleteCustomEntityTypeResponse = function (output, context) {
|
|
17451
|
+
return {
|
|
17452
|
+
Name: __expectString(output.Name),
|
|
17453
|
+
};
|
|
17454
|
+
};
|
|
16979
17455
|
var deserializeAws_json1_1DeleteDatabaseResponse = function (output, context) {
|
|
16980
17456
|
return {};
|
|
16981
17457
|
};
|
|
@@ -17395,6 +17871,15 @@ var deserializeAws_json1_1GetCrawlersResponse = function (output, context) {
|
|
|
17395
17871
|
NextToken: __expectString(output.NextToken),
|
|
17396
17872
|
};
|
|
17397
17873
|
};
|
|
17874
|
+
var deserializeAws_json1_1GetCustomEntityTypeResponse = function (output, context) {
|
|
17875
|
+
return {
|
|
17876
|
+
ContextWords: output.ContextWords !== undefined && output.ContextWords !== null
|
|
17877
|
+
? deserializeAws_json1_1ContextWords(output.ContextWords, context)
|
|
17878
|
+
: undefined,
|
|
17879
|
+
Name: __expectString(output.Name),
|
|
17880
|
+
RegexString: __expectString(output.RegexString),
|
|
17881
|
+
};
|
|
17882
|
+
};
|
|
17398
17883
|
var deserializeAws_json1_1GetDatabaseResponse = function (output, context) {
|
|
17399
17884
|
return {
|
|
17400
17885
|
Database: output.Database !== undefined && output.Database !== null
|
|
@@ -18183,6 +18668,14 @@ var deserializeAws_json1_1ListCrawlersResponse = function (output, context) {
|
|
|
18183
18668
|
NextToken: __expectString(output.NextToken),
|
|
18184
18669
|
};
|
|
18185
18670
|
};
|
|
18671
|
+
var deserializeAws_json1_1ListCustomEntityTypesResponse = function (output, context) {
|
|
18672
|
+
return {
|
|
18673
|
+
CustomEntityTypes: output.CustomEntityTypes !== undefined && output.CustomEntityTypes !== null
|
|
18674
|
+
? deserializeAws_json1_1CustomEntityTypes(output.CustomEntityTypes, context)
|
|
18675
|
+
: undefined,
|
|
18676
|
+
NextToken: __expectString(output.NextToken),
|
|
18677
|
+
};
|
|
18678
|
+
};
|
|
18186
18679
|
var deserializeAws_json1_1ListDevEndpointsResponse = function (output, context) {
|
|
18187
18680
|
return {
|
|
18188
18681
|
DevEndpointNames: output.DevEndpointNames !== undefined && output.DevEndpointNames !== null
|