@aws-sdk/client-lakeformation 3.40.0 → 3.44.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +38 -0
- package/README.md +2 -2
- package/dist-cjs/LakeFormation.js +285 -0
- package/dist-cjs/commands/AddLFTagsToResourceCommand.js +3 -3
- package/dist-cjs/commands/BatchGrantPermissionsCommand.js +3 -3
- package/dist-cjs/commands/BatchRevokePermissionsCommand.js +3 -3
- package/dist-cjs/commands/CancelTransactionCommand.js +36 -0
- package/dist-cjs/commands/CommitTransactionCommand.js +36 -0
- package/dist-cjs/commands/CreateDataCellsFilterCommand.js +36 -0
- package/dist-cjs/commands/CreateLFTagCommand.js +3 -3
- package/dist-cjs/commands/DeleteDataCellsFilterCommand.js +36 -0
- package/dist-cjs/commands/DeleteLFTagCommand.js +3 -3
- package/dist-cjs/commands/DeleteObjectsOnCancelCommand.js +36 -0
- package/dist-cjs/commands/DeregisterResourceCommand.js +3 -3
- package/dist-cjs/commands/DescribeResourceCommand.js +3 -3
- package/dist-cjs/commands/DescribeTransactionCommand.js +36 -0
- package/dist-cjs/commands/ExtendTransactionCommand.js +36 -0
- package/dist-cjs/commands/GetDataLakeSettingsCommand.js +3 -3
- package/dist-cjs/commands/GetEffectivePermissionsForPathCommand.js +3 -3
- package/dist-cjs/commands/GetLFTagCommand.js +3 -3
- package/dist-cjs/commands/GetQueryStateCommand.js +36 -0
- package/dist-cjs/commands/GetQueryStatisticsCommand.js +36 -0
- package/dist-cjs/commands/GetResourceLFTagsCommand.js +3 -3
- package/dist-cjs/commands/GetTableObjectsCommand.js +36 -0
- package/dist-cjs/commands/GetWorkUnitResultsCommand.js +36 -0
- package/dist-cjs/commands/GetWorkUnitsCommand.js +36 -0
- package/dist-cjs/commands/GrantPermissionsCommand.js +3 -3
- package/dist-cjs/commands/ListDataCellsFilterCommand.js +36 -0
- package/dist-cjs/commands/ListLFTagsCommand.js +3 -3
- package/dist-cjs/commands/ListPermissionsCommand.js +3 -3
- package/dist-cjs/commands/ListResourcesCommand.js +3 -3
- package/dist-cjs/commands/ListTableStorageOptimizersCommand.js +36 -0
- package/dist-cjs/commands/ListTransactionsCommand.js +36 -0
- package/dist-cjs/commands/PutDataLakeSettingsCommand.js +3 -3
- package/dist-cjs/commands/RegisterResourceCommand.js +3 -3
- package/dist-cjs/commands/RemoveLFTagsFromResourceCommand.js +3 -3
- package/dist-cjs/commands/RevokePermissionsCommand.js +3 -3
- package/dist-cjs/commands/SearchDatabasesByLFTagsCommand.js +3 -3
- package/dist-cjs/commands/SearchTablesByLFTagsCommand.js +3 -3
- package/dist-cjs/commands/StartQueryPlanningCommand.js +36 -0
- package/dist-cjs/commands/StartTransactionCommand.js +36 -0
- package/dist-cjs/commands/UpdateLFTagCommand.js +3 -3
- package/dist-cjs/commands/UpdateResourceCommand.js +3 -3
- package/dist-cjs/commands/UpdateTableObjectsCommand.js +36 -0
- package/dist-cjs/commands/UpdateTableStorageOptimizerCommand.js +36 -0
- package/dist-cjs/commands/index.js +19 -0
- package/dist-cjs/endpoints.js +8 -0
- package/dist-cjs/models/models_0.js +417 -6
- package/dist-cjs/pagination/GetTableObjectsPaginator.js +35 -0
- package/dist-cjs/pagination/GetWorkUnitsPaginator.js +35 -0
- package/dist-cjs/pagination/ListDataCellsFilterPaginator.js +35 -0
- package/dist-cjs/pagination/ListLFTagsPaginator.js +35 -0
- package/dist-cjs/pagination/ListTableStorageOptimizersPaginator.js +35 -0
- package/dist-cjs/pagination/ListTransactionsPaginator.js +35 -0
- package/dist-cjs/pagination/SearchDatabasesByLFTagsPaginator.js +35 -0
- package/dist-cjs/pagination/SearchTablesByLFTagsPaginator.js +35 -0
- package/dist-cjs/pagination/index.js +8 -0
- package/dist-cjs/protocols/Aws_restJson1.js +5676 -0
- package/dist-es/LakeFormation.js +285 -0
- package/dist-es/commands/AddLFTagsToResourceCommand.js +3 -3
- package/dist-es/commands/BatchGrantPermissionsCommand.js +3 -3
- package/dist-es/commands/BatchRevokePermissionsCommand.js +3 -3
- package/dist-es/commands/CancelTransactionCommand.js +39 -0
- package/dist-es/commands/CommitTransactionCommand.js +39 -0
- package/dist-es/commands/CreateDataCellsFilterCommand.js +39 -0
- package/dist-es/commands/CreateLFTagCommand.js +3 -3
- package/dist-es/commands/DeleteDataCellsFilterCommand.js +39 -0
- package/dist-es/commands/DeleteLFTagCommand.js +3 -3
- package/dist-es/commands/DeleteObjectsOnCancelCommand.js +39 -0
- package/dist-es/commands/DeregisterResourceCommand.js +3 -3
- package/dist-es/commands/DescribeResourceCommand.js +3 -3
- package/dist-es/commands/DescribeTransactionCommand.js +39 -0
- package/dist-es/commands/ExtendTransactionCommand.js +39 -0
- package/dist-es/commands/GetDataLakeSettingsCommand.js +3 -3
- package/dist-es/commands/GetEffectivePermissionsForPathCommand.js +3 -3
- package/dist-es/commands/GetLFTagCommand.js +3 -3
- package/dist-es/commands/GetQueryStateCommand.js +39 -0
- package/dist-es/commands/GetQueryStatisticsCommand.js +39 -0
- package/dist-es/commands/GetResourceLFTagsCommand.js +3 -3
- package/dist-es/commands/GetTableObjectsCommand.js +39 -0
- package/dist-es/commands/GetWorkUnitResultsCommand.js +39 -0
- package/dist-es/commands/GetWorkUnitsCommand.js +39 -0
- package/dist-es/commands/GrantPermissionsCommand.js +3 -3
- package/dist-es/commands/ListDataCellsFilterCommand.js +39 -0
- package/dist-es/commands/ListLFTagsCommand.js +3 -3
- package/dist-es/commands/ListPermissionsCommand.js +3 -3
- package/dist-es/commands/ListResourcesCommand.js +3 -3
- package/dist-es/commands/ListTableStorageOptimizersCommand.js +39 -0
- package/dist-es/commands/ListTransactionsCommand.js +39 -0
- package/dist-es/commands/PutDataLakeSettingsCommand.js +3 -3
- package/dist-es/commands/RegisterResourceCommand.js +3 -3
- package/dist-es/commands/RemoveLFTagsFromResourceCommand.js +3 -3
- package/dist-es/commands/RevokePermissionsCommand.js +3 -3
- package/dist-es/commands/SearchDatabasesByLFTagsCommand.js +3 -3
- package/dist-es/commands/SearchTablesByLFTagsCommand.js +3 -3
- package/dist-es/commands/StartQueryPlanningCommand.js +39 -0
- package/dist-es/commands/StartTransactionCommand.js +39 -0
- package/dist-es/commands/UpdateLFTagCommand.js +3 -3
- package/dist-es/commands/UpdateResourceCommand.js +3 -3
- package/dist-es/commands/UpdateTableObjectsCommand.js +39 -0
- package/dist-es/commands/UpdateTableStorageOptimizerCommand.js +39 -0
- package/dist-es/commands/index.js +19 -0
- package/dist-es/endpoints.js +8 -0
- package/dist-es/models/models_0.js +287 -4
- package/dist-es/pagination/GetTableObjectsPaginator.js +74 -0
- package/dist-es/pagination/GetWorkUnitsPaginator.js +74 -0
- package/dist-es/pagination/ListDataCellsFilterPaginator.js +74 -0
- package/dist-es/pagination/ListLFTagsPaginator.js +74 -0
- package/dist-es/pagination/ListTableStorageOptimizersPaginator.js +74 -0
- package/dist-es/pagination/ListTransactionsPaginator.js +74 -0
- package/dist-es/pagination/SearchDatabasesByLFTagsPaginator.js +74 -0
- package/dist-es/pagination/SearchTablesByLFTagsPaginator.js +74 -0
- package/dist-es/pagination/index.js +8 -0
- package/dist-es/protocols/Aws_restJson1.js +6231 -0
- package/dist-types/LakeFormation.d.ts +160 -15
- package/dist-types/LakeFormationClient.d.ts +23 -4
- package/dist-types/commands/AddLFTagsToResourceCommand.d.ts +2 -2
- package/dist-types/commands/BatchGrantPermissionsCommand.d.ts +1 -1
- package/dist-types/commands/BatchRevokePermissionsCommand.d.ts +1 -1
- package/dist-types/commands/CancelTransactionCommand.d.ts +35 -0
- package/dist-types/commands/CommitTransactionCommand.d.ts +35 -0
- package/dist-types/commands/CreateDataCellsFilterCommand.d.ts +35 -0
- package/dist-types/commands/CreateLFTagCommand.d.ts +2 -2
- package/dist-types/commands/DeleteDataCellsFilterCommand.d.ts +35 -0
- package/dist-types/commands/DeleteLFTagCommand.d.ts +2 -2
- package/dist-types/commands/DeleteObjectsOnCancelCommand.d.ts +42 -0
- package/dist-types/commands/DeregisterResourceCommand.d.ts +1 -1
- package/dist-types/commands/DescribeResourceCommand.d.ts +2 -2
- package/dist-types/commands/DescribeTransactionCommand.d.ts +35 -0
- package/dist-types/commands/ExtendTransactionCommand.d.ts +37 -0
- package/dist-types/commands/GetDataLakeSettingsCommand.d.ts +1 -1
- package/dist-types/commands/GetEffectivePermissionsForPathCommand.d.ts +1 -1
- package/dist-types/commands/GetLFTagCommand.d.ts +2 -2
- package/dist-types/commands/GetQueryStateCommand.d.ts +35 -0
- package/dist-types/commands/GetQueryStatisticsCommand.d.ts +35 -0
- package/dist-types/commands/GetResourceLFTagsCommand.d.ts +2 -2
- package/dist-types/commands/GetTableObjectsCommand.d.ts +35 -0
- package/dist-types/commands/GetWorkUnitResultsCommand.d.ts +35 -0
- package/dist-types/commands/GetWorkUnitsCommand.d.ts +35 -0
- package/dist-types/commands/GrantPermissionsCommand.d.ts +1 -1
- package/dist-types/commands/ListDataCellsFilterCommand.d.ts +35 -0
- package/dist-types/commands/ListLFTagsCommand.d.ts +2 -2
- package/dist-types/commands/ListPermissionsCommand.d.ts +1 -1
- package/dist-types/commands/ListResourcesCommand.d.ts +1 -1
- package/dist-types/commands/ListTableStorageOptimizersCommand.d.ts +35 -0
- package/dist-types/commands/ListTransactionsCommand.d.ts +36 -0
- package/dist-types/commands/PutDataLakeSettingsCommand.d.ts +1 -1
- package/dist-types/commands/RegisterResourceCommand.d.ts +3 -3
- package/dist-types/commands/RemoveLFTagsFromResourceCommand.d.ts +2 -2
- package/dist-types/commands/RevokePermissionsCommand.d.ts +1 -1
- package/dist-types/commands/SearchDatabasesByLFTagsCommand.d.ts +1 -1
- package/dist-types/commands/SearchTablesByLFTagsCommand.d.ts +2 -2
- package/dist-types/commands/StartQueryPlanningCommand.d.ts +37 -0
- package/dist-types/commands/StartTransactionCommand.d.ts +35 -0
- package/dist-types/commands/UpdateLFTagCommand.d.ts +2 -2
- package/dist-types/commands/UpdateResourceCommand.d.ts +2 -2
- package/dist-types/commands/UpdateTableObjectsCommand.d.ts +35 -0
- package/dist-types/commands/UpdateTableStorageOptimizerCommand.d.ts +35 -0
- package/dist-types/commands/index.d.ts +19 -0
- package/dist-types/models/models_0.d.ts +1475 -234
- package/dist-types/pagination/GetTableObjectsPaginator.d.ts +4 -0
- package/dist-types/pagination/GetWorkUnitsPaginator.d.ts +4 -0
- package/dist-types/pagination/ListDataCellsFilterPaginator.d.ts +4 -0
- package/dist-types/pagination/ListLFTagsPaginator.d.ts +4 -0
- package/dist-types/pagination/ListTableStorageOptimizersPaginator.d.ts +4 -0
- package/dist-types/pagination/ListTransactionsPaginator.d.ts +4 -0
- package/dist-types/pagination/SearchDatabasesByLFTagsPaginator.d.ts +4 -0
- package/dist-types/pagination/SearchTablesByLFTagsPaginator.d.ts +4 -0
- package/dist-types/pagination/index.d.ts +8 -0
- package/dist-types/protocols/Aws_restJson1.d.ts +128 -0
- package/dist-types/ts3.4/LakeFormation.d.ts +95 -0
- package/dist-types/ts3.4/LakeFormationClient.d.ts +21 -2
- package/dist-types/ts3.4/commands/CancelTransactionCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/CommitTransactionCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/CreateDataCellsFilterCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/DeleteDataCellsFilterCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/DeleteObjectsOnCancelCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/DescribeTransactionCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/ExtendTransactionCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/GetQueryStateCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/GetQueryStatisticsCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/GetTableObjectsCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/GetWorkUnitResultsCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/GetWorkUnitsCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/ListDataCellsFilterCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/ListTableStorageOptimizersCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/ListTransactionsCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/StartQueryPlanningCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/StartTransactionCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/UpdateTableObjectsCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/UpdateTableStorageOptimizerCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/index.d.ts +19 -0
- package/dist-types/ts3.4/models/models_0.d.ts +745 -7
- package/dist-types/ts3.4/pagination/GetTableObjectsPaginator.d.ts +4 -0
- package/dist-types/ts3.4/pagination/GetWorkUnitsPaginator.d.ts +4 -0
- package/dist-types/ts3.4/pagination/ListDataCellsFilterPaginator.d.ts +4 -0
- package/dist-types/ts3.4/pagination/ListLFTagsPaginator.d.ts +4 -0
- package/dist-types/ts3.4/pagination/ListTableStorageOptimizersPaginator.d.ts +4 -0
- package/dist-types/ts3.4/pagination/ListTransactionsPaginator.d.ts +4 -0
- package/dist-types/ts3.4/pagination/SearchDatabasesByLFTagsPaginator.d.ts +4 -0
- package/dist-types/ts3.4/pagination/SearchTablesByLFTagsPaginator.d.ts +4 -0
- package/dist-types/ts3.4/pagination/index.d.ts +8 -0
- package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +128 -0
- package/package.json +4 -4
- package/dist-cjs/protocols/Aws_json1_1.js +0 -3153
- package/dist-es/protocols/Aws_json1_1.js +0 -3221
- package/dist-types/protocols/Aws_json1_1.d.ts +0 -71
- package/dist-types/ts3.4/protocols/Aws_json1_1.d.ts +0 -71
|
@@ -1,3153 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.deserializeAws_json1_1UpdateResourceCommand = exports.deserializeAws_json1_1UpdateLFTagCommand = exports.deserializeAws_json1_1SearchTablesByLFTagsCommand = exports.deserializeAws_json1_1SearchDatabasesByLFTagsCommand = exports.deserializeAws_json1_1RevokePermissionsCommand = exports.deserializeAws_json1_1RemoveLFTagsFromResourceCommand = exports.deserializeAws_json1_1RegisterResourceCommand = exports.deserializeAws_json1_1PutDataLakeSettingsCommand = exports.deserializeAws_json1_1ListResourcesCommand = exports.deserializeAws_json1_1ListPermissionsCommand = exports.deserializeAws_json1_1ListLFTagsCommand = exports.deserializeAws_json1_1GrantPermissionsCommand = exports.deserializeAws_json1_1GetResourceLFTagsCommand = exports.deserializeAws_json1_1GetLFTagCommand = exports.deserializeAws_json1_1GetEffectivePermissionsForPathCommand = exports.deserializeAws_json1_1GetDataLakeSettingsCommand = exports.deserializeAws_json1_1DescribeResourceCommand = exports.deserializeAws_json1_1DeregisterResourceCommand = exports.deserializeAws_json1_1DeleteLFTagCommand = exports.deserializeAws_json1_1CreateLFTagCommand = exports.deserializeAws_json1_1BatchRevokePermissionsCommand = exports.deserializeAws_json1_1BatchGrantPermissionsCommand = exports.deserializeAws_json1_1AddLFTagsToResourceCommand = exports.serializeAws_json1_1UpdateResourceCommand = exports.serializeAws_json1_1UpdateLFTagCommand = exports.serializeAws_json1_1SearchTablesByLFTagsCommand = exports.serializeAws_json1_1SearchDatabasesByLFTagsCommand = exports.serializeAws_json1_1RevokePermissionsCommand = exports.serializeAws_json1_1RemoveLFTagsFromResourceCommand = exports.serializeAws_json1_1RegisterResourceCommand = exports.serializeAws_json1_1PutDataLakeSettingsCommand = exports.serializeAws_json1_1ListResourcesCommand = exports.serializeAws_json1_1ListPermissionsCommand = exports.serializeAws_json1_1ListLFTagsCommand = exports.serializeAws_json1_1GrantPermissionsCommand = exports.serializeAws_json1_1GetResourceLFTagsCommand = exports.serializeAws_json1_1GetLFTagCommand = exports.serializeAws_json1_1GetEffectivePermissionsForPathCommand = exports.serializeAws_json1_1GetDataLakeSettingsCommand = exports.serializeAws_json1_1DescribeResourceCommand = exports.serializeAws_json1_1DeregisterResourceCommand = exports.serializeAws_json1_1DeleteLFTagCommand = exports.serializeAws_json1_1CreateLFTagCommand = exports.serializeAws_json1_1BatchRevokePermissionsCommand = exports.serializeAws_json1_1BatchGrantPermissionsCommand = exports.serializeAws_json1_1AddLFTagsToResourceCommand = void 0;
|
|
4
|
-
const protocol_http_1 = require("@aws-sdk/protocol-http");
|
|
5
|
-
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
6
|
-
const serializeAws_json1_1AddLFTagsToResourceCommand = async (input, context) => {
|
|
7
|
-
const headers = {
|
|
8
|
-
"content-type": "application/x-amz-json-1.1",
|
|
9
|
-
"x-amz-target": "AWSLakeFormation.AddLFTagsToResource",
|
|
10
|
-
};
|
|
11
|
-
let body;
|
|
12
|
-
body = JSON.stringify(serializeAws_json1_1AddLFTagsToResourceRequest(input, context));
|
|
13
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
14
|
-
};
|
|
15
|
-
exports.serializeAws_json1_1AddLFTagsToResourceCommand = serializeAws_json1_1AddLFTagsToResourceCommand;
|
|
16
|
-
const serializeAws_json1_1BatchGrantPermissionsCommand = async (input, context) => {
|
|
17
|
-
const headers = {
|
|
18
|
-
"content-type": "application/x-amz-json-1.1",
|
|
19
|
-
"x-amz-target": "AWSLakeFormation.BatchGrantPermissions",
|
|
20
|
-
};
|
|
21
|
-
let body;
|
|
22
|
-
body = JSON.stringify(serializeAws_json1_1BatchGrantPermissionsRequest(input, context));
|
|
23
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
24
|
-
};
|
|
25
|
-
exports.serializeAws_json1_1BatchGrantPermissionsCommand = serializeAws_json1_1BatchGrantPermissionsCommand;
|
|
26
|
-
const serializeAws_json1_1BatchRevokePermissionsCommand = async (input, context) => {
|
|
27
|
-
const headers = {
|
|
28
|
-
"content-type": "application/x-amz-json-1.1",
|
|
29
|
-
"x-amz-target": "AWSLakeFormation.BatchRevokePermissions",
|
|
30
|
-
};
|
|
31
|
-
let body;
|
|
32
|
-
body = JSON.stringify(serializeAws_json1_1BatchRevokePermissionsRequest(input, context));
|
|
33
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
34
|
-
};
|
|
35
|
-
exports.serializeAws_json1_1BatchRevokePermissionsCommand = serializeAws_json1_1BatchRevokePermissionsCommand;
|
|
36
|
-
const serializeAws_json1_1CreateLFTagCommand = async (input, context) => {
|
|
37
|
-
const headers = {
|
|
38
|
-
"content-type": "application/x-amz-json-1.1",
|
|
39
|
-
"x-amz-target": "AWSLakeFormation.CreateLFTag",
|
|
40
|
-
};
|
|
41
|
-
let body;
|
|
42
|
-
body = JSON.stringify(serializeAws_json1_1CreateLFTagRequest(input, context));
|
|
43
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
44
|
-
};
|
|
45
|
-
exports.serializeAws_json1_1CreateLFTagCommand = serializeAws_json1_1CreateLFTagCommand;
|
|
46
|
-
const serializeAws_json1_1DeleteLFTagCommand = async (input, context) => {
|
|
47
|
-
const headers = {
|
|
48
|
-
"content-type": "application/x-amz-json-1.1",
|
|
49
|
-
"x-amz-target": "AWSLakeFormation.DeleteLFTag",
|
|
50
|
-
};
|
|
51
|
-
let body;
|
|
52
|
-
body = JSON.stringify(serializeAws_json1_1DeleteLFTagRequest(input, context));
|
|
53
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
54
|
-
};
|
|
55
|
-
exports.serializeAws_json1_1DeleteLFTagCommand = serializeAws_json1_1DeleteLFTagCommand;
|
|
56
|
-
const serializeAws_json1_1DeregisterResourceCommand = async (input, context) => {
|
|
57
|
-
const headers = {
|
|
58
|
-
"content-type": "application/x-amz-json-1.1",
|
|
59
|
-
"x-amz-target": "AWSLakeFormation.DeregisterResource",
|
|
60
|
-
};
|
|
61
|
-
let body;
|
|
62
|
-
body = JSON.stringify(serializeAws_json1_1DeregisterResourceRequest(input, context));
|
|
63
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
64
|
-
};
|
|
65
|
-
exports.serializeAws_json1_1DeregisterResourceCommand = serializeAws_json1_1DeregisterResourceCommand;
|
|
66
|
-
const serializeAws_json1_1DescribeResourceCommand = async (input, context) => {
|
|
67
|
-
const headers = {
|
|
68
|
-
"content-type": "application/x-amz-json-1.1",
|
|
69
|
-
"x-amz-target": "AWSLakeFormation.DescribeResource",
|
|
70
|
-
};
|
|
71
|
-
let body;
|
|
72
|
-
body = JSON.stringify(serializeAws_json1_1DescribeResourceRequest(input, context));
|
|
73
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
74
|
-
};
|
|
75
|
-
exports.serializeAws_json1_1DescribeResourceCommand = serializeAws_json1_1DescribeResourceCommand;
|
|
76
|
-
const serializeAws_json1_1GetDataLakeSettingsCommand = async (input, context) => {
|
|
77
|
-
const headers = {
|
|
78
|
-
"content-type": "application/x-amz-json-1.1",
|
|
79
|
-
"x-amz-target": "AWSLakeFormation.GetDataLakeSettings",
|
|
80
|
-
};
|
|
81
|
-
let body;
|
|
82
|
-
body = JSON.stringify(serializeAws_json1_1GetDataLakeSettingsRequest(input, context));
|
|
83
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
84
|
-
};
|
|
85
|
-
exports.serializeAws_json1_1GetDataLakeSettingsCommand = serializeAws_json1_1GetDataLakeSettingsCommand;
|
|
86
|
-
const serializeAws_json1_1GetEffectivePermissionsForPathCommand = async (input, context) => {
|
|
87
|
-
const headers = {
|
|
88
|
-
"content-type": "application/x-amz-json-1.1",
|
|
89
|
-
"x-amz-target": "AWSLakeFormation.GetEffectivePermissionsForPath",
|
|
90
|
-
};
|
|
91
|
-
let body;
|
|
92
|
-
body = JSON.stringify(serializeAws_json1_1GetEffectivePermissionsForPathRequest(input, context));
|
|
93
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
94
|
-
};
|
|
95
|
-
exports.serializeAws_json1_1GetEffectivePermissionsForPathCommand = serializeAws_json1_1GetEffectivePermissionsForPathCommand;
|
|
96
|
-
const serializeAws_json1_1GetLFTagCommand = async (input, context) => {
|
|
97
|
-
const headers = {
|
|
98
|
-
"content-type": "application/x-amz-json-1.1",
|
|
99
|
-
"x-amz-target": "AWSLakeFormation.GetLFTag",
|
|
100
|
-
};
|
|
101
|
-
let body;
|
|
102
|
-
body = JSON.stringify(serializeAws_json1_1GetLFTagRequest(input, context));
|
|
103
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
104
|
-
};
|
|
105
|
-
exports.serializeAws_json1_1GetLFTagCommand = serializeAws_json1_1GetLFTagCommand;
|
|
106
|
-
const serializeAws_json1_1GetResourceLFTagsCommand = async (input, context) => {
|
|
107
|
-
const headers = {
|
|
108
|
-
"content-type": "application/x-amz-json-1.1",
|
|
109
|
-
"x-amz-target": "AWSLakeFormation.GetResourceLFTags",
|
|
110
|
-
};
|
|
111
|
-
let body;
|
|
112
|
-
body = JSON.stringify(serializeAws_json1_1GetResourceLFTagsRequest(input, context));
|
|
113
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
114
|
-
};
|
|
115
|
-
exports.serializeAws_json1_1GetResourceLFTagsCommand = serializeAws_json1_1GetResourceLFTagsCommand;
|
|
116
|
-
const serializeAws_json1_1GrantPermissionsCommand = async (input, context) => {
|
|
117
|
-
const headers = {
|
|
118
|
-
"content-type": "application/x-amz-json-1.1",
|
|
119
|
-
"x-amz-target": "AWSLakeFormation.GrantPermissions",
|
|
120
|
-
};
|
|
121
|
-
let body;
|
|
122
|
-
body = JSON.stringify(serializeAws_json1_1GrantPermissionsRequest(input, context));
|
|
123
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
124
|
-
};
|
|
125
|
-
exports.serializeAws_json1_1GrantPermissionsCommand = serializeAws_json1_1GrantPermissionsCommand;
|
|
126
|
-
const serializeAws_json1_1ListLFTagsCommand = async (input, context) => {
|
|
127
|
-
const headers = {
|
|
128
|
-
"content-type": "application/x-amz-json-1.1",
|
|
129
|
-
"x-amz-target": "AWSLakeFormation.ListLFTags",
|
|
130
|
-
};
|
|
131
|
-
let body;
|
|
132
|
-
body = JSON.stringify(serializeAws_json1_1ListLFTagsRequest(input, context));
|
|
133
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
134
|
-
};
|
|
135
|
-
exports.serializeAws_json1_1ListLFTagsCommand = serializeAws_json1_1ListLFTagsCommand;
|
|
136
|
-
const serializeAws_json1_1ListPermissionsCommand = async (input, context) => {
|
|
137
|
-
const headers = {
|
|
138
|
-
"content-type": "application/x-amz-json-1.1",
|
|
139
|
-
"x-amz-target": "AWSLakeFormation.ListPermissions",
|
|
140
|
-
};
|
|
141
|
-
let body;
|
|
142
|
-
body = JSON.stringify(serializeAws_json1_1ListPermissionsRequest(input, context));
|
|
143
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
144
|
-
};
|
|
145
|
-
exports.serializeAws_json1_1ListPermissionsCommand = serializeAws_json1_1ListPermissionsCommand;
|
|
146
|
-
const serializeAws_json1_1ListResourcesCommand = async (input, context) => {
|
|
147
|
-
const headers = {
|
|
148
|
-
"content-type": "application/x-amz-json-1.1",
|
|
149
|
-
"x-amz-target": "AWSLakeFormation.ListResources",
|
|
150
|
-
};
|
|
151
|
-
let body;
|
|
152
|
-
body = JSON.stringify(serializeAws_json1_1ListResourcesRequest(input, context));
|
|
153
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
154
|
-
};
|
|
155
|
-
exports.serializeAws_json1_1ListResourcesCommand = serializeAws_json1_1ListResourcesCommand;
|
|
156
|
-
const serializeAws_json1_1PutDataLakeSettingsCommand = async (input, context) => {
|
|
157
|
-
const headers = {
|
|
158
|
-
"content-type": "application/x-amz-json-1.1",
|
|
159
|
-
"x-amz-target": "AWSLakeFormation.PutDataLakeSettings",
|
|
160
|
-
};
|
|
161
|
-
let body;
|
|
162
|
-
body = JSON.stringify(serializeAws_json1_1PutDataLakeSettingsRequest(input, context));
|
|
163
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
164
|
-
};
|
|
165
|
-
exports.serializeAws_json1_1PutDataLakeSettingsCommand = serializeAws_json1_1PutDataLakeSettingsCommand;
|
|
166
|
-
const serializeAws_json1_1RegisterResourceCommand = async (input, context) => {
|
|
167
|
-
const headers = {
|
|
168
|
-
"content-type": "application/x-amz-json-1.1",
|
|
169
|
-
"x-amz-target": "AWSLakeFormation.RegisterResource",
|
|
170
|
-
};
|
|
171
|
-
let body;
|
|
172
|
-
body = JSON.stringify(serializeAws_json1_1RegisterResourceRequest(input, context));
|
|
173
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
174
|
-
};
|
|
175
|
-
exports.serializeAws_json1_1RegisterResourceCommand = serializeAws_json1_1RegisterResourceCommand;
|
|
176
|
-
const serializeAws_json1_1RemoveLFTagsFromResourceCommand = async (input, context) => {
|
|
177
|
-
const headers = {
|
|
178
|
-
"content-type": "application/x-amz-json-1.1",
|
|
179
|
-
"x-amz-target": "AWSLakeFormation.RemoveLFTagsFromResource",
|
|
180
|
-
};
|
|
181
|
-
let body;
|
|
182
|
-
body = JSON.stringify(serializeAws_json1_1RemoveLFTagsFromResourceRequest(input, context));
|
|
183
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
184
|
-
};
|
|
185
|
-
exports.serializeAws_json1_1RemoveLFTagsFromResourceCommand = serializeAws_json1_1RemoveLFTagsFromResourceCommand;
|
|
186
|
-
const serializeAws_json1_1RevokePermissionsCommand = async (input, context) => {
|
|
187
|
-
const headers = {
|
|
188
|
-
"content-type": "application/x-amz-json-1.1",
|
|
189
|
-
"x-amz-target": "AWSLakeFormation.RevokePermissions",
|
|
190
|
-
};
|
|
191
|
-
let body;
|
|
192
|
-
body = JSON.stringify(serializeAws_json1_1RevokePermissionsRequest(input, context));
|
|
193
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
194
|
-
};
|
|
195
|
-
exports.serializeAws_json1_1RevokePermissionsCommand = serializeAws_json1_1RevokePermissionsCommand;
|
|
196
|
-
const serializeAws_json1_1SearchDatabasesByLFTagsCommand = async (input, context) => {
|
|
197
|
-
const headers = {
|
|
198
|
-
"content-type": "application/x-amz-json-1.1",
|
|
199
|
-
"x-amz-target": "AWSLakeFormation.SearchDatabasesByLFTags",
|
|
200
|
-
};
|
|
201
|
-
let body;
|
|
202
|
-
body = JSON.stringify(serializeAws_json1_1SearchDatabasesByLFTagsRequest(input, context));
|
|
203
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
204
|
-
};
|
|
205
|
-
exports.serializeAws_json1_1SearchDatabasesByLFTagsCommand = serializeAws_json1_1SearchDatabasesByLFTagsCommand;
|
|
206
|
-
const serializeAws_json1_1SearchTablesByLFTagsCommand = async (input, context) => {
|
|
207
|
-
const headers = {
|
|
208
|
-
"content-type": "application/x-amz-json-1.1",
|
|
209
|
-
"x-amz-target": "AWSLakeFormation.SearchTablesByLFTags",
|
|
210
|
-
};
|
|
211
|
-
let body;
|
|
212
|
-
body = JSON.stringify(serializeAws_json1_1SearchTablesByLFTagsRequest(input, context));
|
|
213
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
214
|
-
};
|
|
215
|
-
exports.serializeAws_json1_1SearchTablesByLFTagsCommand = serializeAws_json1_1SearchTablesByLFTagsCommand;
|
|
216
|
-
const serializeAws_json1_1UpdateLFTagCommand = async (input, context) => {
|
|
217
|
-
const headers = {
|
|
218
|
-
"content-type": "application/x-amz-json-1.1",
|
|
219
|
-
"x-amz-target": "AWSLakeFormation.UpdateLFTag",
|
|
220
|
-
};
|
|
221
|
-
let body;
|
|
222
|
-
body = JSON.stringify(serializeAws_json1_1UpdateLFTagRequest(input, context));
|
|
223
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
224
|
-
};
|
|
225
|
-
exports.serializeAws_json1_1UpdateLFTagCommand = serializeAws_json1_1UpdateLFTagCommand;
|
|
226
|
-
const serializeAws_json1_1UpdateResourceCommand = async (input, context) => {
|
|
227
|
-
const headers = {
|
|
228
|
-
"content-type": "application/x-amz-json-1.1",
|
|
229
|
-
"x-amz-target": "AWSLakeFormation.UpdateResource",
|
|
230
|
-
};
|
|
231
|
-
let body;
|
|
232
|
-
body = JSON.stringify(serializeAws_json1_1UpdateResourceRequest(input, context));
|
|
233
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
234
|
-
};
|
|
235
|
-
exports.serializeAws_json1_1UpdateResourceCommand = serializeAws_json1_1UpdateResourceCommand;
|
|
236
|
-
const deserializeAws_json1_1AddLFTagsToResourceCommand = async (output, context) => {
|
|
237
|
-
if (output.statusCode >= 300) {
|
|
238
|
-
return deserializeAws_json1_1AddLFTagsToResourceCommandError(output, context);
|
|
239
|
-
}
|
|
240
|
-
const data = await parseBody(output.body, context);
|
|
241
|
-
let contents = {};
|
|
242
|
-
contents = deserializeAws_json1_1AddLFTagsToResourceResponse(data, context);
|
|
243
|
-
const response = {
|
|
244
|
-
$metadata: deserializeMetadata(output),
|
|
245
|
-
...contents,
|
|
246
|
-
};
|
|
247
|
-
return Promise.resolve(response);
|
|
248
|
-
};
|
|
249
|
-
exports.deserializeAws_json1_1AddLFTagsToResourceCommand = deserializeAws_json1_1AddLFTagsToResourceCommand;
|
|
250
|
-
const deserializeAws_json1_1AddLFTagsToResourceCommandError = async (output, context) => {
|
|
251
|
-
const parsedOutput = {
|
|
252
|
-
...output,
|
|
253
|
-
body: await parseBody(output.body, context),
|
|
254
|
-
};
|
|
255
|
-
let response;
|
|
256
|
-
let errorCode = "UnknownError";
|
|
257
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
258
|
-
switch (errorCode) {
|
|
259
|
-
case "AccessDeniedException":
|
|
260
|
-
case "com.amazonaws.lakeformation#AccessDeniedException":
|
|
261
|
-
response = {
|
|
262
|
-
...(await deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context)),
|
|
263
|
-
name: errorCode,
|
|
264
|
-
$metadata: deserializeMetadata(output),
|
|
265
|
-
};
|
|
266
|
-
break;
|
|
267
|
-
case "ConcurrentModificationException":
|
|
268
|
-
case "com.amazonaws.lakeformation#ConcurrentModificationException":
|
|
269
|
-
response = {
|
|
270
|
-
...(await deserializeAws_json1_1ConcurrentModificationExceptionResponse(parsedOutput, context)),
|
|
271
|
-
name: errorCode,
|
|
272
|
-
$metadata: deserializeMetadata(output),
|
|
273
|
-
};
|
|
274
|
-
break;
|
|
275
|
-
case "EntityNotFoundException":
|
|
276
|
-
case "com.amazonaws.lakeformation#EntityNotFoundException":
|
|
277
|
-
response = {
|
|
278
|
-
...(await deserializeAws_json1_1EntityNotFoundExceptionResponse(parsedOutput, context)),
|
|
279
|
-
name: errorCode,
|
|
280
|
-
$metadata: deserializeMetadata(output),
|
|
281
|
-
};
|
|
282
|
-
break;
|
|
283
|
-
case "InternalServiceException":
|
|
284
|
-
case "com.amazonaws.lakeformation#InternalServiceException":
|
|
285
|
-
response = {
|
|
286
|
-
...(await deserializeAws_json1_1InternalServiceExceptionResponse(parsedOutput, context)),
|
|
287
|
-
name: errorCode,
|
|
288
|
-
$metadata: deserializeMetadata(output),
|
|
289
|
-
};
|
|
290
|
-
break;
|
|
291
|
-
case "InvalidInputException":
|
|
292
|
-
case "com.amazonaws.lakeformation#InvalidInputException":
|
|
293
|
-
response = {
|
|
294
|
-
...(await deserializeAws_json1_1InvalidInputExceptionResponse(parsedOutput, context)),
|
|
295
|
-
name: errorCode,
|
|
296
|
-
$metadata: deserializeMetadata(output),
|
|
297
|
-
};
|
|
298
|
-
break;
|
|
299
|
-
case "OperationTimeoutException":
|
|
300
|
-
case "com.amazonaws.lakeformation#OperationTimeoutException":
|
|
301
|
-
response = {
|
|
302
|
-
...(await deserializeAws_json1_1OperationTimeoutExceptionResponse(parsedOutput, context)),
|
|
303
|
-
name: errorCode,
|
|
304
|
-
$metadata: deserializeMetadata(output),
|
|
305
|
-
};
|
|
306
|
-
break;
|
|
307
|
-
default:
|
|
308
|
-
const parsedBody = parsedOutput.body;
|
|
309
|
-
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
310
|
-
response = {
|
|
311
|
-
...parsedBody,
|
|
312
|
-
name: `${errorCode}`,
|
|
313
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
314
|
-
$fault: "client",
|
|
315
|
-
$metadata: deserializeMetadata(output),
|
|
316
|
-
};
|
|
317
|
-
}
|
|
318
|
-
const message = response.message || response.Message || errorCode;
|
|
319
|
-
response.message = message;
|
|
320
|
-
delete response.Message;
|
|
321
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
322
|
-
};
|
|
323
|
-
const deserializeAws_json1_1BatchGrantPermissionsCommand = async (output, context) => {
|
|
324
|
-
if (output.statusCode >= 300) {
|
|
325
|
-
return deserializeAws_json1_1BatchGrantPermissionsCommandError(output, context);
|
|
326
|
-
}
|
|
327
|
-
const data = await parseBody(output.body, context);
|
|
328
|
-
let contents = {};
|
|
329
|
-
contents = deserializeAws_json1_1BatchGrantPermissionsResponse(data, context);
|
|
330
|
-
const response = {
|
|
331
|
-
$metadata: deserializeMetadata(output),
|
|
332
|
-
...contents,
|
|
333
|
-
};
|
|
334
|
-
return Promise.resolve(response);
|
|
335
|
-
};
|
|
336
|
-
exports.deserializeAws_json1_1BatchGrantPermissionsCommand = deserializeAws_json1_1BatchGrantPermissionsCommand;
|
|
337
|
-
const deserializeAws_json1_1BatchGrantPermissionsCommandError = async (output, context) => {
|
|
338
|
-
const parsedOutput = {
|
|
339
|
-
...output,
|
|
340
|
-
body: await parseBody(output.body, context),
|
|
341
|
-
};
|
|
342
|
-
let response;
|
|
343
|
-
let errorCode = "UnknownError";
|
|
344
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
345
|
-
switch (errorCode) {
|
|
346
|
-
case "InvalidInputException":
|
|
347
|
-
case "com.amazonaws.lakeformation#InvalidInputException":
|
|
348
|
-
response = {
|
|
349
|
-
...(await deserializeAws_json1_1InvalidInputExceptionResponse(parsedOutput, context)),
|
|
350
|
-
name: errorCode,
|
|
351
|
-
$metadata: deserializeMetadata(output),
|
|
352
|
-
};
|
|
353
|
-
break;
|
|
354
|
-
case "OperationTimeoutException":
|
|
355
|
-
case "com.amazonaws.lakeformation#OperationTimeoutException":
|
|
356
|
-
response = {
|
|
357
|
-
...(await deserializeAws_json1_1OperationTimeoutExceptionResponse(parsedOutput, context)),
|
|
358
|
-
name: errorCode,
|
|
359
|
-
$metadata: deserializeMetadata(output),
|
|
360
|
-
};
|
|
361
|
-
break;
|
|
362
|
-
default:
|
|
363
|
-
const parsedBody = parsedOutput.body;
|
|
364
|
-
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
365
|
-
response = {
|
|
366
|
-
...parsedBody,
|
|
367
|
-
name: `${errorCode}`,
|
|
368
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
369
|
-
$fault: "client",
|
|
370
|
-
$metadata: deserializeMetadata(output),
|
|
371
|
-
};
|
|
372
|
-
}
|
|
373
|
-
const message = response.message || response.Message || errorCode;
|
|
374
|
-
response.message = message;
|
|
375
|
-
delete response.Message;
|
|
376
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
377
|
-
};
|
|
378
|
-
const deserializeAws_json1_1BatchRevokePermissionsCommand = async (output, context) => {
|
|
379
|
-
if (output.statusCode >= 300) {
|
|
380
|
-
return deserializeAws_json1_1BatchRevokePermissionsCommandError(output, context);
|
|
381
|
-
}
|
|
382
|
-
const data = await parseBody(output.body, context);
|
|
383
|
-
let contents = {};
|
|
384
|
-
contents = deserializeAws_json1_1BatchRevokePermissionsResponse(data, context);
|
|
385
|
-
const response = {
|
|
386
|
-
$metadata: deserializeMetadata(output),
|
|
387
|
-
...contents,
|
|
388
|
-
};
|
|
389
|
-
return Promise.resolve(response);
|
|
390
|
-
};
|
|
391
|
-
exports.deserializeAws_json1_1BatchRevokePermissionsCommand = deserializeAws_json1_1BatchRevokePermissionsCommand;
|
|
392
|
-
const deserializeAws_json1_1BatchRevokePermissionsCommandError = async (output, context) => {
|
|
393
|
-
const parsedOutput = {
|
|
394
|
-
...output,
|
|
395
|
-
body: await parseBody(output.body, context),
|
|
396
|
-
};
|
|
397
|
-
let response;
|
|
398
|
-
let errorCode = "UnknownError";
|
|
399
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
400
|
-
switch (errorCode) {
|
|
401
|
-
case "InvalidInputException":
|
|
402
|
-
case "com.amazonaws.lakeformation#InvalidInputException":
|
|
403
|
-
response = {
|
|
404
|
-
...(await deserializeAws_json1_1InvalidInputExceptionResponse(parsedOutput, context)),
|
|
405
|
-
name: errorCode,
|
|
406
|
-
$metadata: deserializeMetadata(output),
|
|
407
|
-
};
|
|
408
|
-
break;
|
|
409
|
-
case "OperationTimeoutException":
|
|
410
|
-
case "com.amazonaws.lakeformation#OperationTimeoutException":
|
|
411
|
-
response = {
|
|
412
|
-
...(await deserializeAws_json1_1OperationTimeoutExceptionResponse(parsedOutput, context)),
|
|
413
|
-
name: errorCode,
|
|
414
|
-
$metadata: deserializeMetadata(output),
|
|
415
|
-
};
|
|
416
|
-
break;
|
|
417
|
-
default:
|
|
418
|
-
const parsedBody = parsedOutput.body;
|
|
419
|
-
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
420
|
-
response = {
|
|
421
|
-
...parsedBody,
|
|
422
|
-
name: `${errorCode}`,
|
|
423
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
424
|
-
$fault: "client",
|
|
425
|
-
$metadata: deserializeMetadata(output),
|
|
426
|
-
};
|
|
427
|
-
}
|
|
428
|
-
const message = response.message || response.Message || errorCode;
|
|
429
|
-
response.message = message;
|
|
430
|
-
delete response.Message;
|
|
431
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
432
|
-
};
|
|
433
|
-
const deserializeAws_json1_1CreateLFTagCommand = async (output, context) => {
|
|
434
|
-
if (output.statusCode >= 300) {
|
|
435
|
-
return deserializeAws_json1_1CreateLFTagCommandError(output, context);
|
|
436
|
-
}
|
|
437
|
-
const data = await parseBody(output.body, context);
|
|
438
|
-
let contents = {};
|
|
439
|
-
contents = deserializeAws_json1_1CreateLFTagResponse(data, context);
|
|
440
|
-
const response = {
|
|
441
|
-
$metadata: deserializeMetadata(output),
|
|
442
|
-
...contents,
|
|
443
|
-
};
|
|
444
|
-
return Promise.resolve(response);
|
|
445
|
-
};
|
|
446
|
-
exports.deserializeAws_json1_1CreateLFTagCommand = deserializeAws_json1_1CreateLFTagCommand;
|
|
447
|
-
const deserializeAws_json1_1CreateLFTagCommandError = async (output, context) => {
|
|
448
|
-
const parsedOutput = {
|
|
449
|
-
...output,
|
|
450
|
-
body: await parseBody(output.body, context),
|
|
451
|
-
};
|
|
452
|
-
let response;
|
|
453
|
-
let errorCode = "UnknownError";
|
|
454
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
455
|
-
switch (errorCode) {
|
|
456
|
-
case "AccessDeniedException":
|
|
457
|
-
case "com.amazonaws.lakeformation#AccessDeniedException":
|
|
458
|
-
response = {
|
|
459
|
-
...(await deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context)),
|
|
460
|
-
name: errorCode,
|
|
461
|
-
$metadata: deserializeMetadata(output),
|
|
462
|
-
};
|
|
463
|
-
break;
|
|
464
|
-
case "EntityNotFoundException":
|
|
465
|
-
case "com.amazonaws.lakeformation#EntityNotFoundException":
|
|
466
|
-
response = {
|
|
467
|
-
...(await deserializeAws_json1_1EntityNotFoundExceptionResponse(parsedOutput, context)),
|
|
468
|
-
name: errorCode,
|
|
469
|
-
$metadata: deserializeMetadata(output),
|
|
470
|
-
};
|
|
471
|
-
break;
|
|
472
|
-
case "InternalServiceException":
|
|
473
|
-
case "com.amazonaws.lakeformation#InternalServiceException":
|
|
474
|
-
response = {
|
|
475
|
-
...(await deserializeAws_json1_1InternalServiceExceptionResponse(parsedOutput, context)),
|
|
476
|
-
name: errorCode,
|
|
477
|
-
$metadata: deserializeMetadata(output),
|
|
478
|
-
};
|
|
479
|
-
break;
|
|
480
|
-
case "InvalidInputException":
|
|
481
|
-
case "com.amazonaws.lakeformation#InvalidInputException":
|
|
482
|
-
response = {
|
|
483
|
-
...(await deserializeAws_json1_1InvalidInputExceptionResponse(parsedOutput, context)),
|
|
484
|
-
name: errorCode,
|
|
485
|
-
$metadata: deserializeMetadata(output),
|
|
486
|
-
};
|
|
487
|
-
break;
|
|
488
|
-
case "OperationTimeoutException":
|
|
489
|
-
case "com.amazonaws.lakeformation#OperationTimeoutException":
|
|
490
|
-
response = {
|
|
491
|
-
...(await deserializeAws_json1_1OperationTimeoutExceptionResponse(parsedOutput, context)),
|
|
492
|
-
name: errorCode,
|
|
493
|
-
$metadata: deserializeMetadata(output),
|
|
494
|
-
};
|
|
495
|
-
break;
|
|
496
|
-
case "ResourceNumberLimitExceededException":
|
|
497
|
-
case "com.amazonaws.lakeformation#ResourceNumberLimitExceededException":
|
|
498
|
-
response = {
|
|
499
|
-
...(await deserializeAws_json1_1ResourceNumberLimitExceededExceptionResponse(parsedOutput, context)),
|
|
500
|
-
name: errorCode,
|
|
501
|
-
$metadata: deserializeMetadata(output),
|
|
502
|
-
};
|
|
503
|
-
break;
|
|
504
|
-
default:
|
|
505
|
-
const parsedBody = parsedOutput.body;
|
|
506
|
-
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
507
|
-
response = {
|
|
508
|
-
...parsedBody,
|
|
509
|
-
name: `${errorCode}`,
|
|
510
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
511
|
-
$fault: "client",
|
|
512
|
-
$metadata: deserializeMetadata(output),
|
|
513
|
-
};
|
|
514
|
-
}
|
|
515
|
-
const message = response.message || response.Message || errorCode;
|
|
516
|
-
response.message = message;
|
|
517
|
-
delete response.Message;
|
|
518
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
519
|
-
};
|
|
520
|
-
const deserializeAws_json1_1DeleteLFTagCommand = async (output, context) => {
|
|
521
|
-
if (output.statusCode >= 300) {
|
|
522
|
-
return deserializeAws_json1_1DeleteLFTagCommandError(output, context);
|
|
523
|
-
}
|
|
524
|
-
const data = await parseBody(output.body, context);
|
|
525
|
-
let contents = {};
|
|
526
|
-
contents = deserializeAws_json1_1DeleteLFTagResponse(data, context);
|
|
527
|
-
const response = {
|
|
528
|
-
$metadata: deserializeMetadata(output),
|
|
529
|
-
...contents,
|
|
530
|
-
};
|
|
531
|
-
return Promise.resolve(response);
|
|
532
|
-
};
|
|
533
|
-
exports.deserializeAws_json1_1DeleteLFTagCommand = deserializeAws_json1_1DeleteLFTagCommand;
|
|
534
|
-
const deserializeAws_json1_1DeleteLFTagCommandError = async (output, context) => {
|
|
535
|
-
const parsedOutput = {
|
|
536
|
-
...output,
|
|
537
|
-
body: await parseBody(output.body, context),
|
|
538
|
-
};
|
|
539
|
-
let response;
|
|
540
|
-
let errorCode = "UnknownError";
|
|
541
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
542
|
-
switch (errorCode) {
|
|
543
|
-
case "AccessDeniedException":
|
|
544
|
-
case "com.amazonaws.lakeformation#AccessDeniedException":
|
|
545
|
-
response = {
|
|
546
|
-
...(await deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context)),
|
|
547
|
-
name: errorCode,
|
|
548
|
-
$metadata: deserializeMetadata(output),
|
|
549
|
-
};
|
|
550
|
-
break;
|
|
551
|
-
case "EntityNotFoundException":
|
|
552
|
-
case "com.amazonaws.lakeformation#EntityNotFoundException":
|
|
553
|
-
response = {
|
|
554
|
-
...(await deserializeAws_json1_1EntityNotFoundExceptionResponse(parsedOutput, context)),
|
|
555
|
-
name: errorCode,
|
|
556
|
-
$metadata: deserializeMetadata(output),
|
|
557
|
-
};
|
|
558
|
-
break;
|
|
559
|
-
case "InternalServiceException":
|
|
560
|
-
case "com.amazonaws.lakeformation#InternalServiceException":
|
|
561
|
-
response = {
|
|
562
|
-
...(await deserializeAws_json1_1InternalServiceExceptionResponse(parsedOutput, context)),
|
|
563
|
-
name: errorCode,
|
|
564
|
-
$metadata: deserializeMetadata(output),
|
|
565
|
-
};
|
|
566
|
-
break;
|
|
567
|
-
case "InvalidInputException":
|
|
568
|
-
case "com.amazonaws.lakeformation#InvalidInputException":
|
|
569
|
-
response = {
|
|
570
|
-
...(await deserializeAws_json1_1InvalidInputExceptionResponse(parsedOutput, context)),
|
|
571
|
-
name: errorCode,
|
|
572
|
-
$metadata: deserializeMetadata(output),
|
|
573
|
-
};
|
|
574
|
-
break;
|
|
575
|
-
case "OperationTimeoutException":
|
|
576
|
-
case "com.amazonaws.lakeformation#OperationTimeoutException":
|
|
577
|
-
response = {
|
|
578
|
-
...(await deserializeAws_json1_1OperationTimeoutExceptionResponse(parsedOutput, context)),
|
|
579
|
-
name: errorCode,
|
|
580
|
-
$metadata: deserializeMetadata(output),
|
|
581
|
-
};
|
|
582
|
-
break;
|
|
583
|
-
default:
|
|
584
|
-
const parsedBody = parsedOutput.body;
|
|
585
|
-
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
586
|
-
response = {
|
|
587
|
-
...parsedBody,
|
|
588
|
-
name: `${errorCode}`,
|
|
589
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
590
|
-
$fault: "client",
|
|
591
|
-
$metadata: deserializeMetadata(output),
|
|
592
|
-
};
|
|
593
|
-
}
|
|
594
|
-
const message = response.message || response.Message || errorCode;
|
|
595
|
-
response.message = message;
|
|
596
|
-
delete response.Message;
|
|
597
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
598
|
-
};
|
|
599
|
-
const deserializeAws_json1_1DeregisterResourceCommand = async (output, context) => {
|
|
600
|
-
if (output.statusCode >= 300) {
|
|
601
|
-
return deserializeAws_json1_1DeregisterResourceCommandError(output, context);
|
|
602
|
-
}
|
|
603
|
-
const data = await parseBody(output.body, context);
|
|
604
|
-
let contents = {};
|
|
605
|
-
contents = deserializeAws_json1_1DeregisterResourceResponse(data, context);
|
|
606
|
-
const response = {
|
|
607
|
-
$metadata: deserializeMetadata(output),
|
|
608
|
-
...contents,
|
|
609
|
-
};
|
|
610
|
-
return Promise.resolve(response);
|
|
611
|
-
};
|
|
612
|
-
exports.deserializeAws_json1_1DeregisterResourceCommand = deserializeAws_json1_1DeregisterResourceCommand;
|
|
613
|
-
const deserializeAws_json1_1DeregisterResourceCommandError = async (output, context) => {
|
|
614
|
-
const parsedOutput = {
|
|
615
|
-
...output,
|
|
616
|
-
body: await parseBody(output.body, context),
|
|
617
|
-
};
|
|
618
|
-
let response;
|
|
619
|
-
let errorCode = "UnknownError";
|
|
620
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
621
|
-
switch (errorCode) {
|
|
622
|
-
case "EntityNotFoundException":
|
|
623
|
-
case "com.amazonaws.lakeformation#EntityNotFoundException":
|
|
624
|
-
response = {
|
|
625
|
-
...(await deserializeAws_json1_1EntityNotFoundExceptionResponse(parsedOutput, context)),
|
|
626
|
-
name: errorCode,
|
|
627
|
-
$metadata: deserializeMetadata(output),
|
|
628
|
-
};
|
|
629
|
-
break;
|
|
630
|
-
case "InternalServiceException":
|
|
631
|
-
case "com.amazonaws.lakeformation#InternalServiceException":
|
|
632
|
-
response = {
|
|
633
|
-
...(await deserializeAws_json1_1InternalServiceExceptionResponse(parsedOutput, context)),
|
|
634
|
-
name: errorCode,
|
|
635
|
-
$metadata: deserializeMetadata(output),
|
|
636
|
-
};
|
|
637
|
-
break;
|
|
638
|
-
case "InvalidInputException":
|
|
639
|
-
case "com.amazonaws.lakeformation#InvalidInputException":
|
|
640
|
-
response = {
|
|
641
|
-
...(await deserializeAws_json1_1InvalidInputExceptionResponse(parsedOutput, context)),
|
|
642
|
-
name: errorCode,
|
|
643
|
-
$metadata: deserializeMetadata(output),
|
|
644
|
-
};
|
|
645
|
-
break;
|
|
646
|
-
case "OperationTimeoutException":
|
|
647
|
-
case "com.amazonaws.lakeformation#OperationTimeoutException":
|
|
648
|
-
response = {
|
|
649
|
-
...(await deserializeAws_json1_1OperationTimeoutExceptionResponse(parsedOutput, context)),
|
|
650
|
-
name: errorCode,
|
|
651
|
-
$metadata: deserializeMetadata(output),
|
|
652
|
-
};
|
|
653
|
-
break;
|
|
654
|
-
default:
|
|
655
|
-
const parsedBody = parsedOutput.body;
|
|
656
|
-
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
657
|
-
response = {
|
|
658
|
-
...parsedBody,
|
|
659
|
-
name: `${errorCode}`,
|
|
660
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
661
|
-
$fault: "client",
|
|
662
|
-
$metadata: deserializeMetadata(output),
|
|
663
|
-
};
|
|
664
|
-
}
|
|
665
|
-
const message = response.message || response.Message || errorCode;
|
|
666
|
-
response.message = message;
|
|
667
|
-
delete response.Message;
|
|
668
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
669
|
-
};
|
|
670
|
-
const deserializeAws_json1_1DescribeResourceCommand = async (output, context) => {
|
|
671
|
-
if (output.statusCode >= 300) {
|
|
672
|
-
return deserializeAws_json1_1DescribeResourceCommandError(output, context);
|
|
673
|
-
}
|
|
674
|
-
const data = await parseBody(output.body, context);
|
|
675
|
-
let contents = {};
|
|
676
|
-
contents = deserializeAws_json1_1DescribeResourceResponse(data, context);
|
|
677
|
-
const response = {
|
|
678
|
-
$metadata: deserializeMetadata(output),
|
|
679
|
-
...contents,
|
|
680
|
-
};
|
|
681
|
-
return Promise.resolve(response);
|
|
682
|
-
};
|
|
683
|
-
exports.deserializeAws_json1_1DescribeResourceCommand = deserializeAws_json1_1DescribeResourceCommand;
|
|
684
|
-
const deserializeAws_json1_1DescribeResourceCommandError = async (output, context) => {
|
|
685
|
-
const parsedOutput = {
|
|
686
|
-
...output,
|
|
687
|
-
body: await parseBody(output.body, context),
|
|
688
|
-
};
|
|
689
|
-
let response;
|
|
690
|
-
let errorCode = "UnknownError";
|
|
691
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
692
|
-
switch (errorCode) {
|
|
693
|
-
case "EntityNotFoundException":
|
|
694
|
-
case "com.amazonaws.lakeformation#EntityNotFoundException":
|
|
695
|
-
response = {
|
|
696
|
-
...(await deserializeAws_json1_1EntityNotFoundExceptionResponse(parsedOutput, context)),
|
|
697
|
-
name: errorCode,
|
|
698
|
-
$metadata: deserializeMetadata(output),
|
|
699
|
-
};
|
|
700
|
-
break;
|
|
701
|
-
case "InternalServiceException":
|
|
702
|
-
case "com.amazonaws.lakeformation#InternalServiceException":
|
|
703
|
-
response = {
|
|
704
|
-
...(await deserializeAws_json1_1InternalServiceExceptionResponse(parsedOutput, context)),
|
|
705
|
-
name: errorCode,
|
|
706
|
-
$metadata: deserializeMetadata(output),
|
|
707
|
-
};
|
|
708
|
-
break;
|
|
709
|
-
case "InvalidInputException":
|
|
710
|
-
case "com.amazonaws.lakeformation#InvalidInputException":
|
|
711
|
-
response = {
|
|
712
|
-
...(await deserializeAws_json1_1InvalidInputExceptionResponse(parsedOutput, context)),
|
|
713
|
-
name: errorCode,
|
|
714
|
-
$metadata: deserializeMetadata(output),
|
|
715
|
-
};
|
|
716
|
-
break;
|
|
717
|
-
case "OperationTimeoutException":
|
|
718
|
-
case "com.amazonaws.lakeformation#OperationTimeoutException":
|
|
719
|
-
response = {
|
|
720
|
-
...(await deserializeAws_json1_1OperationTimeoutExceptionResponse(parsedOutput, context)),
|
|
721
|
-
name: errorCode,
|
|
722
|
-
$metadata: deserializeMetadata(output),
|
|
723
|
-
};
|
|
724
|
-
break;
|
|
725
|
-
default:
|
|
726
|
-
const parsedBody = parsedOutput.body;
|
|
727
|
-
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
728
|
-
response = {
|
|
729
|
-
...parsedBody,
|
|
730
|
-
name: `${errorCode}`,
|
|
731
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
732
|
-
$fault: "client",
|
|
733
|
-
$metadata: deserializeMetadata(output),
|
|
734
|
-
};
|
|
735
|
-
}
|
|
736
|
-
const message = response.message || response.Message || errorCode;
|
|
737
|
-
response.message = message;
|
|
738
|
-
delete response.Message;
|
|
739
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
740
|
-
};
|
|
741
|
-
const deserializeAws_json1_1GetDataLakeSettingsCommand = async (output, context) => {
|
|
742
|
-
if (output.statusCode >= 300) {
|
|
743
|
-
return deserializeAws_json1_1GetDataLakeSettingsCommandError(output, context);
|
|
744
|
-
}
|
|
745
|
-
const data = await parseBody(output.body, context);
|
|
746
|
-
let contents = {};
|
|
747
|
-
contents = deserializeAws_json1_1GetDataLakeSettingsResponse(data, context);
|
|
748
|
-
const response = {
|
|
749
|
-
$metadata: deserializeMetadata(output),
|
|
750
|
-
...contents,
|
|
751
|
-
};
|
|
752
|
-
return Promise.resolve(response);
|
|
753
|
-
};
|
|
754
|
-
exports.deserializeAws_json1_1GetDataLakeSettingsCommand = deserializeAws_json1_1GetDataLakeSettingsCommand;
|
|
755
|
-
const deserializeAws_json1_1GetDataLakeSettingsCommandError = async (output, context) => {
|
|
756
|
-
const parsedOutput = {
|
|
757
|
-
...output,
|
|
758
|
-
body: await parseBody(output.body, context),
|
|
759
|
-
};
|
|
760
|
-
let response;
|
|
761
|
-
let errorCode = "UnknownError";
|
|
762
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
763
|
-
switch (errorCode) {
|
|
764
|
-
case "EntityNotFoundException":
|
|
765
|
-
case "com.amazonaws.lakeformation#EntityNotFoundException":
|
|
766
|
-
response = {
|
|
767
|
-
...(await deserializeAws_json1_1EntityNotFoundExceptionResponse(parsedOutput, context)),
|
|
768
|
-
name: errorCode,
|
|
769
|
-
$metadata: deserializeMetadata(output),
|
|
770
|
-
};
|
|
771
|
-
break;
|
|
772
|
-
case "InternalServiceException":
|
|
773
|
-
case "com.amazonaws.lakeformation#InternalServiceException":
|
|
774
|
-
response = {
|
|
775
|
-
...(await deserializeAws_json1_1InternalServiceExceptionResponse(parsedOutput, context)),
|
|
776
|
-
name: errorCode,
|
|
777
|
-
$metadata: deserializeMetadata(output),
|
|
778
|
-
};
|
|
779
|
-
break;
|
|
780
|
-
case "InvalidInputException":
|
|
781
|
-
case "com.amazonaws.lakeformation#InvalidInputException":
|
|
782
|
-
response = {
|
|
783
|
-
...(await deserializeAws_json1_1InvalidInputExceptionResponse(parsedOutput, context)),
|
|
784
|
-
name: errorCode,
|
|
785
|
-
$metadata: deserializeMetadata(output),
|
|
786
|
-
};
|
|
787
|
-
break;
|
|
788
|
-
default:
|
|
789
|
-
const parsedBody = parsedOutput.body;
|
|
790
|
-
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
791
|
-
response = {
|
|
792
|
-
...parsedBody,
|
|
793
|
-
name: `${errorCode}`,
|
|
794
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
795
|
-
$fault: "client",
|
|
796
|
-
$metadata: deserializeMetadata(output),
|
|
797
|
-
};
|
|
798
|
-
}
|
|
799
|
-
const message = response.message || response.Message || errorCode;
|
|
800
|
-
response.message = message;
|
|
801
|
-
delete response.Message;
|
|
802
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
803
|
-
};
|
|
804
|
-
const deserializeAws_json1_1GetEffectivePermissionsForPathCommand = async (output, context) => {
|
|
805
|
-
if (output.statusCode >= 300) {
|
|
806
|
-
return deserializeAws_json1_1GetEffectivePermissionsForPathCommandError(output, context);
|
|
807
|
-
}
|
|
808
|
-
const data = await parseBody(output.body, context);
|
|
809
|
-
let contents = {};
|
|
810
|
-
contents = deserializeAws_json1_1GetEffectivePermissionsForPathResponse(data, context);
|
|
811
|
-
const response = {
|
|
812
|
-
$metadata: deserializeMetadata(output),
|
|
813
|
-
...contents,
|
|
814
|
-
};
|
|
815
|
-
return Promise.resolve(response);
|
|
816
|
-
};
|
|
817
|
-
exports.deserializeAws_json1_1GetEffectivePermissionsForPathCommand = deserializeAws_json1_1GetEffectivePermissionsForPathCommand;
|
|
818
|
-
const deserializeAws_json1_1GetEffectivePermissionsForPathCommandError = async (output, context) => {
|
|
819
|
-
const parsedOutput = {
|
|
820
|
-
...output,
|
|
821
|
-
body: await parseBody(output.body, context),
|
|
822
|
-
};
|
|
823
|
-
let response;
|
|
824
|
-
let errorCode = "UnknownError";
|
|
825
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
826
|
-
switch (errorCode) {
|
|
827
|
-
case "EntityNotFoundException":
|
|
828
|
-
case "com.amazonaws.lakeformation#EntityNotFoundException":
|
|
829
|
-
response = {
|
|
830
|
-
...(await deserializeAws_json1_1EntityNotFoundExceptionResponse(parsedOutput, context)),
|
|
831
|
-
name: errorCode,
|
|
832
|
-
$metadata: deserializeMetadata(output),
|
|
833
|
-
};
|
|
834
|
-
break;
|
|
835
|
-
case "InternalServiceException":
|
|
836
|
-
case "com.amazonaws.lakeformation#InternalServiceException":
|
|
837
|
-
response = {
|
|
838
|
-
...(await deserializeAws_json1_1InternalServiceExceptionResponse(parsedOutput, context)),
|
|
839
|
-
name: errorCode,
|
|
840
|
-
$metadata: deserializeMetadata(output),
|
|
841
|
-
};
|
|
842
|
-
break;
|
|
843
|
-
case "InvalidInputException":
|
|
844
|
-
case "com.amazonaws.lakeformation#InvalidInputException":
|
|
845
|
-
response = {
|
|
846
|
-
...(await deserializeAws_json1_1InvalidInputExceptionResponse(parsedOutput, context)),
|
|
847
|
-
name: errorCode,
|
|
848
|
-
$metadata: deserializeMetadata(output),
|
|
849
|
-
};
|
|
850
|
-
break;
|
|
851
|
-
case "OperationTimeoutException":
|
|
852
|
-
case "com.amazonaws.lakeformation#OperationTimeoutException":
|
|
853
|
-
response = {
|
|
854
|
-
...(await deserializeAws_json1_1OperationTimeoutExceptionResponse(parsedOutput, context)),
|
|
855
|
-
name: errorCode,
|
|
856
|
-
$metadata: deserializeMetadata(output),
|
|
857
|
-
};
|
|
858
|
-
break;
|
|
859
|
-
default:
|
|
860
|
-
const parsedBody = parsedOutput.body;
|
|
861
|
-
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
862
|
-
response = {
|
|
863
|
-
...parsedBody,
|
|
864
|
-
name: `${errorCode}`,
|
|
865
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
866
|
-
$fault: "client",
|
|
867
|
-
$metadata: deserializeMetadata(output),
|
|
868
|
-
};
|
|
869
|
-
}
|
|
870
|
-
const message = response.message || response.Message || errorCode;
|
|
871
|
-
response.message = message;
|
|
872
|
-
delete response.Message;
|
|
873
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
874
|
-
};
|
|
875
|
-
const deserializeAws_json1_1GetLFTagCommand = async (output, context) => {
|
|
876
|
-
if (output.statusCode >= 300) {
|
|
877
|
-
return deserializeAws_json1_1GetLFTagCommandError(output, context);
|
|
878
|
-
}
|
|
879
|
-
const data = await parseBody(output.body, context);
|
|
880
|
-
let contents = {};
|
|
881
|
-
contents = deserializeAws_json1_1GetLFTagResponse(data, context);
|
|
882
|
-
const response = {
|
|
883
|
-
$metadata: deserializeMetadata(output),
|
|
884
|
-
...contents,
|
|
885
|
-
};
|
|
886
|
-
return Promise.resolve(response);
|
|
887
|
-
};
|
|
888
|
-
exports.deserializeAws_json1_1GetLFTagCommand = deserializeAws_json1_1GetLFTagCommand;
|
|
889
|
-
const deserializeAws_json1_1GetLFTagCommandError = async (output, context) => {
|
|
890
|
-
const parsedOutput = {
|
|
891
|
-
...output,
|
|
892
|
-
body: await parseBody(output.body, context),
|
|
893
|
-
};
|
|
894
|
-
let response;
|
|
895
|
-
let errorCode = "UnknownError";
|
|
896
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
897
|
-
switch (errorCode) {
|
|
898
|
-
case "AccessDeniedException":
|
|
899
|
-
case "com.amazonaws.lakeformation#AccessDeniedException":
|
|
900
|
-
response = {
|
|
901
|
-
...(await deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context)),
|
|
902
|
-
name: errorCode,
|
|
903
|
-
$metadata: deserializeMetadata(output),
|
|
904
|
-
};
|
|
905
|
-
break;
|
|
906
|
-
case "EntityNotFoundException":
|
|
907
|
-
case "com.amazonaws.lakeformation#EntityNotFoundException":
|
|
908
|
-
response = {
|
|
909
|
-
...(await deserializeAws_json1_1EntityNotFoundExceptionResponse(parsedOutput, context)),
|
|
910
|
-
name: errorCode,
|
|
911
|
-
$metadata: deserializeMetadata(output),
|
|
912
|
-
};
|
|
913
|
-
break;
|
|
914
|
-
case "InternalServiceException":
|
|
915
|
-
case "com.amazonaws.lakeformation#InternalServiceException":
|
|
916
|
-
response = {
|
|
917
|
-
...(await deserializeAws_json1_1InternalServiceExceptionResponse(parsedOutput, context)),
|
|
918
|
-
name: errorCode,
|
|
919
|
-
$metadata: deserializeMetadata(output),
|
|
920
|
-
};
|
|
921
|
-
break;
|
|
922
|
-
case "InvalidInputException":
|
|
923
|
-
case "com.amazonaws.lakeformation#InvalidInputException":
|
|
924
|
-
response = {
|
|
925
|
-
...(await deserializeAws_json1_1InvalidInputExceptionResponse(parsedOutput, context)),
|
|
926
|
-
name: errorCode,
|
|
927
|
-
$metadata: deserializeMetadata(output),
|
|
928
|
-
};
|
|
929
|
-
break;
|
|
930
|
-
case "OperationTimeoutException":
|
|
931
|
-
case "com.amazonaws.lakeformation#OperationTimeoutException":
|
|
932
|
-
response = {
|
|
933
|
-
...(await deserializeAws_json1_1OperationTimeoutExceptionResponse(parsedOutput, context)),
|
|
934
|
-
name: errorCode,
|
|
935
|
-
$metadata: deserializeMetadata(output),
|
|
936
|
-
};
|
|
937
|
-
break;
|
|
938
|
-
default:
|
|
939
|
-
const parsedBody = parsedOutput.body;
|
|
940
|
-
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
941
|
-
response = {
|
|
942
|
-
...parsedBody,
|
|
943
|
-
name: `${errorCode}`,
|
|
944
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
945
|
-
$fault: "client",
|
|
946
|
-
$metadata: deserializeMetadata(output),
|
|
947
|
-
};
|
|
948
|
-
}
|
|
949
|
-
const message = response.message || response.Message || errorCode;
|
|
950
|
-
response.message = message;
|
|
951
|
-
delete response.Message;
|
|
952
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
953
|
-
};
|
|
954
|
-
const deserializeAws_json1_1GetResourceLFTagsCommand = async (output, context) => {
|
|
955
|
-
if (output.statusCode >= 300) {
|
|
956
|
-
return deserializeAws_json1_1GetResourceLFTagsCommandError(output, context);
|
|
957
|
-
}
|
|
958
|
-
const data = await parseBody(output.body, context);
|
|
959
|
-
let contents = {};
|
|
960
|
-
contents = deserializeAws_json1_1GetResourceLFTagsResponse(data, context);
|
|
961
|
-
const response = {
|
|
962
|
-
$metadata: deserializeMetadata(output),
|
|
963
|
-
...contents,
|
|
964
|
-
};
|
|
965
|
-
return Promise.resolve(response);
|
|
966
|
-
};
|
|
967
|
-
exports.deserializeAws_json1_1GetResourceLFTagsCommand = deserializeAws_json1_1GetResourceLFTagsCommand;
|
|
968
|
-
const deserializeAws_json1_1GetResourceLFTagsCommandError = async (output, context) => {
|
|
969
|
-
const parsedOutput = {
|
|
970
|
-
...output,
|
|
971
|
-
body: await parseBody(output.body, context),
|
|
972
|
-
};
|
|
973
|
-
let response;
|
|
974
|
-
let errorCode = "UnknownError";
|
|
975
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
976
|
-
switch (errorCode) {
|
|
977
|
-
case "AccessDeniedException":
|
|
978
|
-
case "com.amazonaws.lakeformation#AccessDeniedException":
|
|
979
|
-
response = {
|
|
980
|
-
...(await deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context)),
|
|
981
|
-
name: errorCode,
|
|
982
|
-
$metadata: deserializeMetadata(output),
|
|
983
|
-
};
|
|
984
|
-
break;
|
|
985
|
-
case "EntityNotFoundException":
|
|
986
|
-
case "com.amazonaws.lakeformation#EntityNotFoundException":
|
|
987
|
-
response = {
|
|
988
|
-
...(await deserializeAws_json1_1EntityNotFoundExceptionResponse(parsedOutput, context)),
|
|
989
|
-
name: errorCode,
|
|
990
|
-
$metadata: deserializeMetadata(output),
|
|
991
|
-
};
|
|
992
|
-
break;
|
|
993
|
-
case "GlueEncryptionException":
|
|
994
|
-
case "com.amazonaws.lakeformation#GlueEncryptionException":
|
|
995
|
-
response = {
|
|
996
|
-
...(await deserializeAws_json1_1GlueEncryptionExceptionResponse(parsedOutput, context)),
|
|
997
|
-
name: errorCode,
|
|
998
|
-
$metadata: deserializeMetadata(output),
|
|
999
|
-
};
|
|
1000
|
-
break;
|
|
1001
|
-
case "InternalServiceException":
|
|
1002
|
-
case "com.amazonaws.lakeformation#InternalServiceException":
|
|
1003
|
-
response = {
|
|
1004
|
-
...(await deserializeAws_json1_1InternalServiceExceptionResponse(parsedOutput, context)),
|
|
1005
|
-
name: errorCode,
|
|
1006
|
-
$metadata: deserializeMetadata(output),
|
|
1007
|
-
};
|
|
1008
|
-
break;
|
|
1009
|
-
case "InvalidInputException":
|
|
1010
|
-
case "com.amazonaws.lakeformation#InvalidInputException":
|
|
1011
|
-
response = {
|
|
1012
|
-
...(await deserializeAws_json1_1InvalidInputExceptionResponse(parsedOutput, context)),
|
|
1013
|
-
name: errorCode,
|
|
1014
|
-
$metadata: deserializeMetadata(output),
|
|
1015
|
-
};
|
|
1016
|
-
break;
|
|
1017
|
-
case "OperationTimeoutException":
|
|
1018
|
-
case "com.amazonaws.lakeformation#OperationTimeoutException":
|
|
1019
|
-
response = {
|
|
1020
|
-
...(await deserializeAws_json1_1OperationTimeoutExceptionResponse(parsedOutput, context)),
|
|
1021
|
-
name: errorCode,
|
|
1022
|
-
$metadata: deserializeMetadata(output),
|
|
1023
|
-
};
|
|
1024
|
-
break;
|
|
1025
|
-
default:
|
|
1026
|
-
const parsedBody = parsedOutput.body;
|
|
1027
|
-
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
1028
|
-
response = {
|
|
1029
|
-
...parsedBody,
|
|
1030
|
-
name: `${errorCode}`,
|
|
1031
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1032
|
-
$fault: "client",
|
|
1033
|
-
$metadata: deserializeMetadata(output),
|
|
1034
|
-
};
|
|
1035
|
-
}
|
|
1036
|
-
const message = response.message || response.Message || errorCode;
|
|
1037
|
-
response.message = message;
|
|
1038
|
-
delete response.Message;
|
|
1039
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
1040
|
-
};
|
|
1041
|
-
const deserializeAws_json1_1GrantPermissionsCommand = async (output, context) => {
|
|
1042
|
-
if (output.statusCode >= 300) {
|
|
1043
|
-
return deserializeAws_json1_1GrantPermissionsCommandError(output, context);
|
|
1044
|
-
}
|
|
1045
|
-
const data = await parseBody(output.body, context);
|
|
1046
|
-
let contents = {};
|
|
1047
|
-
contents = deserializeAws_json1_1GrantPermissionsResponse(data, context);
|
|
1048
|
-
const response = {
|
|
1049
|
-
$metadata: deserializeMetadata(output),
|
|
1050
|
-
...contents,
|
|
1051
|
-
};
|
|
1052
|
-
return Promise.resolve(response);
|
|
1053
|
-
};
|
|
1054
|
-
exports.deserializeAws_json1_1GrantPermissionsCommand = deserializeAws_json1_1GrantPermissionsCommand;
|
|
1055
|
-
const deserializeAws_json1_1GrantPermissionsCommandError = async (output, context) => {
|
|
1056
|
-
const parsedOutput = {
|
|
1057
|
-
...output,
|
|
1058
|
-
body: await parseBody(output.body, context),
|
|
1059
|
-
};
|
|
1060
|
-
let response;
|
|
1061
|
-
let errorCode = "UnknownError";
|
|
1062
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1063
|
-
switch (errorCode) {
|
|
1064
|
-
case "ConcurrentModificationException":
|
|
1065
|
-
case "com.amazonaws.lakeformation#ConcurrentModificationException":
|
|
1066
|
-
response = {
|
|
1067
|
-
...(await deserializeAws_json1_1ConcurrentModificationExceptionResponse(parsedOutput, context)),
|
|
1068
|
-
name: errorCode,
|
|
1069
|
-
$metadata: deserializeMetadata(output),
|
|
1070
|
-
};
|
|
1071
|
-
break;
|
|
1072
|
-
case "EntityNotFoundException":
|
|
1073
|
-
case "com.amazonaws.lakeformation#EntityNotFoundException":
|
|
1074
|
-
response = {
|
|
1075
|
-
...(await deserializeAws_json1_1EntityNotFoundExceptionResponse(parsedOutput, context)),
|
|
1076
|
-
name: errorCode,
|
|
1077
|
-
$metadata: deserializeMetadata(output),
|
|
1078
|
-
};
|
|
1079
|
-
break;
|
|
1080
|
-
case "InvalidInputException":
|
|
1081
|
-
case "com.amazonaws.lakeformation#InvalidInputException":
|
|
1082
|
-
response = {
|
|
1083
|
-
...(await deserializeAws_json1_1InvalidInputExceptionResponse(parsedOutput, context)),
|
|
1084
|
-
name: errorCode,
|
|
1085
|
-
$metadata: deserializeMetadata(output),
|
|
1086
|
-
};
|
|
1087
|
-
break;
|
|
1088
|
-
default:
|
|
1089
|
-
const parsedBody = parsedOutput.body;
|
|
1090
|
-
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
1091
|
-
response = {
|
|
1092
|
-
...parsedBody,
|
|
1093
|
-
name: `${errorCode}`,
|
|
1094
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1095
|
-
$fault: "client",
|
|
1096
|
-
$metadata: deserializeMetadata(output),
|
|
1097
|
-
};
|
|
1098
|
-
}
|
|
1099
|
-
const message = response.message || response.Message || errorCode;
|
|
1100
|
-
response.message = message;
|
|
1101
|
-
delete response.Message;
|
|
1102
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
1103
|
-
};
|
|
1104
|
-
const deserializeAws_json1_1ListLFTagsCommand = async (output, context) => {
|
|
1105
|
-
if (output.statusCode >= 300) {
|
|
1106
|
-
return deserializeAws_json1_1ListLFTagsCommandError(output, context);
|
|
1107
|
-
}
|
|
1108
|
-
const data = await parseBody(output.body, context);
|
|
1109
|
-
let contents = {};
|
|
1110
|
-
contents = deserializeAws_json1_1ListLFTagsResponse(data, context);
|
|
1111
|
-
const response = {
|
|
1112
|
-
$metadata: deserializeMetadata(output),
|
|
1113
|
-
...contents,
|
|
1114
|
-
};
|
|
1115
|
-
return Promise.resolve(response);
|
|
1116
|
-
};
|
|
1117
|
-
exports.deserializeAws_json1_1ListLFTagsCommand = deserializeAws_json1_1ListLFTagsCommand;
|
|
1118
|
-
const deserializeAws_json1_1ListLFTagsCommandError = async (output, context) => {
|
|
1119
|
-
const parsedOutput = {
|
|
1120
|
-
...output,
|
|
1121
|
-
body: await parseBody(output.body, context),
|
|
1122
|
-
};
|
|
1123
|
-
let response;
|
|
1124
|
-
let errorCode = "UnknownError";
|
|
1125
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1126
|
-
switch (errorCode) {
|
|
1127
|
-
case "EntityNotFoundException":
|
|
1128
|
-
case "com.amazonaws.lakeformation#EntityNotFoundException":
|
|
1129
|
-
response = {
|
|
1130
|
-
...(await deserializeAws_json1_1EntityNotFoundExceptionResponse(parsedOutput, context)),
|
|
1131
|
-
name: errorCode,
|
|
1132
|
-
$metadata: deserializeMetadata(output),
|
|
1133
|
-
};
|
|
1134
|
-
break;
|
|
1135
|
-
case "InternalServiceException":
|
|
1136
|
-
case "com.amazonaws.lakeformation#InternalServiceException":
|
|
1137
|
-
response = {
|
|
1138
|
-
...(await deserializeAws_json1_1InternalServiceExceptionResponse(parsedOutput, context)),
|
|
1139
|
-
name: errorCode,
|
|
1140
|
-
$metadata: deserializeMetadata(output),
|
|
1141
|
-
};
|
|
1142
|
-
break;
|
|
1143
|
-
case "InvalidInputException":
|
|
1144
|
-
case "com.amazonaws.lakeformation#InvalidInputException":
|
|
1145
|
-
response = {
|
|
1146
|
-
...(await deserializeAws_json1_1InvalidInputExceptionResponse(parsedOutput, context)),
|
|
1147
|
-
name: errorCode,
|
|
1148
|
-
$metadata: deserializeMetadata(output),
|
|
1149
|
-
};
|
|
1150
|
-
break;
|
|
1151
|
-
case "OperationTimeoutException":
|
|
1152
|
-
case "com.amazonaws.lakeformation#OperationTimeoutException":
|
|
1153
|
-
response = {
|
|
1154
|
-
...(await deserializeAws_json1_1OperationTimeoutExceptionResponse(parsedOutput, context)),
|
|
1155
|
-
name: errorCode,
|
|
1156
|
-
$metadata: deserializeMetadata(output),
|
|
1157
|
-
};
|
|
1158
|
-
break;
|
|
1159
|
-
default:
|
|
1160
|
-
const parsedBody = parsedOutput.body;
|
|
1161
|
-
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
1162
|
-
response = {
|
|
1163
|
-
...parsedBody,
|
|
1164
|
-
name: `${errorCode}`,
|
|
1165
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1166
|
-
$fault: "client",
|
|
1167
|
-
$metadata: deserializeMetadata(output),
|
|
1168
|
-
};
|
|
1169
|
-
}
|
|
1170
|
-
const message = response.message || response.Message || errorCode;
|
|
1171
|
-
response.message = message;
|
|
1172
|
-
delete response.Message;
|
|
1173
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
1174
|
-
};
|
|
1175
|
-
const deserializeAws_json1_1ListPermissionsCommand = async (output, context) => {
|
|
1176
|
-
if (output.statusCode >= 300) {
|
|
1177
|
-
return deserializeAws_json1_1ListPermissionsCommandError(output, context);
|
|
1178
|
-
}
|
|
1179
|
-
const data = await parseBody(output.body, context);
|
|
1180
|
-
let contents = {};
|
|
1181
|
-
contents = deserializeAws_json1_1ListPermissionsResponse(data, context);
|
|
1182
|
-
const response = {
|
|
1183
|
-
$metadata: deserializeMetadata(output),
|
|
1184
|
-
...contents,
|
|
1185
|
-
};
|
|
1186
|
-
return Promise.resolve(response);
|
|
1187
|
-
};
|
|
1188
|
-
exports.deserializeAws_json1_1ListPermissionsCommand = deserializeAws_json1_1ListPermissionsCommand;
|
|
1189
|
-
const deserializeAws_json1_1ListPermissionsCommandError = async (output, context) => {
|
|
1190
|
-
const parsedOutput = {
|
|
1191
|
-
...output,
|
|
1192
|
-
body: await parseBody(output.body, context),
|
|
1193
|
-
};
|
|
1194
|
-
let response;
|
|
1195
|
-
let errorCode = "UnknownError";
|
|
1196
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1197
|
-
switch (errorCode) {
|
|
1198
|
-
case "InternalServiceException":
|
|
1199
|
-
case "com.amazonaws.lakeformation#InternalServiceException":
|
|
1200
|
-
response = {
|
|
1201
|
-
...(await deserializeAws_json1_1InternalServiceExceptionResponse(parsedOutput, context)),
|
|
1202
|
-
name: errorCode,
|
|
1203
|
-
$metadata: deserializeMetadata(output),
|
|
1204
|
-
};
|
|
1205
|
-
break;
|
|
1206
|
-
case "InvalidInputException":
|
|
1207
|
-
case "com.amazonaws.lakeformation#InvalidInputException":
|
|
1208
|
-
response = {
|
|
1209
|
-
...(await deserializeAws_json1_1InvalidInputExceptionResponse(parsedOutput, context)),
|
|
1210
|
-
name: errorCode,
|
|
1211
|
-
$metadata: deserializeMetadata(output),
|
|
1212
|
-
};
|
|
1213
|
-
break;
|
|
1214
|
-
case "OperationTimeoutException":
|
|
1215
|
-
case "com.amazonaws.lakeformation#OperationTimeoutException":
|
|
1216
|
-
response = {
|
|
1217
|
-
...(await deserializeAws_json1_1OperationTimeoutExceptionResponse(parsedOutput, context)),
|
|
1218
|
-
name: errorCode,
|
|
1219
|
-
$metadata: deserializeMetadata(output),
|
|
1220
|
-
};
|
|
1221
|
-
break;
|
|
1222
|
-
default:
|
|
1223
|
-
const parsedBody = parsedOutput.body;
|
|
1224
|
-
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
1225
|
-
response = {
|
|
1226
|
-
...parsedBody,
|
|
1227
|
-
name: `${errorCode}`,
|
|
1228
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1229
|
-
$fault: "client",
|
|
1230
|
-
$metadata: deserializeMetadata(output),
|
|
1231
|
-
};
|
|
1232
|
-
}
|
|
1233
|
-
const message = response.message || response.Message || errorCode;
|
|
1234
|
-
response.message = message;
|
|
1235
|
-
delete response.Message;
|
|
1236
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
1237
|
-
};
|
|
1238
|
-
const deserializeAws_json1_1ListResourcesCommand = async (output, context) => {
|
|
1239
|
-
if (output.statusCode >= 300) {
|
|
1240
|
-
return deserializeAws_json1_1ListResourcesCommandError(output, context);
|
|
1241
|
-
}
|
|
1242
|
-
const data = await parseBody(output.body, context);
|
|
1243
|
-
let contents = {};
|
|
1244
|
-
contents = deserializeAws_json1_1ListResourcesResponse(data, context);
|
|
1245
|
-
const response = {
|
|
1246
|
-
$metadata: deserializeMetadata(output),
|
|
1247
|
-
...contents,
|
|
1248
|
-
};
|
|
1249
|
-
return Promise.resolve(response);
|
|
1250
|
-
};
|
|
1251
|
-
exports.deserializeAws_json1_1ListResourcesCommand = deserializeAws_json1_1ListResourcesCommand;
|
|
1252
|
-
const deserializeAws_json1_1ListResourcesCommandError = async (output, context) => {
|
|
1253
|
-
const parsedOutput = {
|
|
1254
|
-
...output,
|
|
1255
|
-
body: await parseBody(output.body, context),
|
|
1256
|
-
};
|
|
1257
|
-
let response;
|
|
1258
|
-
let errorCode = "UnknownError";
|
|
1259
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1260
|
-
switch (errorCode) {
|
|
1261
|
-
case "InternalServiceException":
|
|
1262
|
-
case "com.amazonaws.lakeformation#InternalServiceException":
|
|
1263
|
-
response = {
|
|
1264
|
-
...(await deserializeAws_json1_1InternalServiceExceptionResponse(parsedOutput, context)),
|
|
1265
|
-
name: errorCode,
|
|
1266
|
-
$metadata: deserializeMetadata(output),
|
|
1267
|
-
};
|
|
1268
|
-
break;
|
|
1269
|
-
case "InvalidInputException":
|
|
1270
|
-
case "com.amazonaws.lakeformation#InvalidInputException":
|
|
1271
|
-
response = {
|
|
1272
|
-
...(await deserializeAws_json1_1InvalidInputExceptionResponse(parsedOutput, context)),
|
|
1273
|
-
name: errorCode,
|
|
1274
|
-
$metadata: deserializeMetadata(output),
|
|
1275
|
-
};
|
|
1276
|
-
break;
|
|
1277
|
-
case "OperationTimeoutException":
|
|
1278
|
-
case "com.amazonaws.lakeformation#OperationTimeoutException":
|
|
1279
|
-
response = {
|
|
1280
|
-
...(await deserializeAws_json1_1OperationTimeoutExceptionResponse(parsedOutput, context)),
|
|
1281
|
-
name: errorCode,
|
|
1282
|
-
$metadata: deserializeMetadata(output),
|
|
1283
|
-
};
|
|
1284
|
-
break;
|
|
1285
|
-
default:
|
|
1286
|
-
const parsedBody = parsedOutput.body;
|
|
1287
|
-
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
1288
|
-
response = {
|
|
1289
|
-
...parsedBody,
|
|
1290
|
-
name: `${errorCode}`,
|
|
1291
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1292
|
-
$fault: "client",
|
|
1293
|
-
$metadata: deserializeMetadata(output),
|
|
1294
|
-
};
|
|
1295
|
-
}
|
|
1296
|
-
const message = response.message || response.Message || errorCode;
|
|
1297
|
-
response.message = message;
|
|
1298
|
-
delete response.Message;
|
|
1299
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
1300
|
-
};
|
|
1301
|
-
const deserializeAws_json1_1PutDataLakeSettingsCommand = async (output, context) => {
|
|
1302
|
-
if (output.statusCode >= 300) {
|
|
1303
|
-
return deserializeAws_json1_1PutDataLakeSettingsCommandError(output, context);
|
|
1304
|
-
}
|
|
1305
|
-
const data = await parseBody(output.body, context);
|
|
1306
|
-
let contents = {};
|
|
1307
|
-
contents = deserializeAws_json1_1PutDataLakeSettingsResponse(data, context);
|
|
1308
|
-
const response = {
|
|
1309
|
-
$metadata: deserializeMetadata(output),
|
|
1310
|
-
...contents,
|
|
1311
|
-
};
|
|
1312
|
-
return Promise.resolve(response);
|
|
1313
|
-
};
|
|
1314
|
-
exports.deserializeAws_json1_1PutDataLakeSettingsCommand = deserializeAws_json1_1PutDataLakeSettingsCommand;
|
|
1315
|
-
const deserializeAws_json1_1PutDataLakeSettingsCommandError = async (output, context) => {
|
|
1316
|
-
const parsedOutput = {
|
|
1317
|
-
...output,
|
|
1318
|
-
body: await parseBody(output.body, context),
|
|
1319
|
-
};
|
|
1320
|
-
let response;
|
|
1321
|
-
let errorCode = "UnknownError";
|
|
1322
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1323
|
-
switch (errorCode) {
|
|
1324
|
-
case "InternalServiceException":
|
|
1325
|
-
case "com.amazonaws.lakeformation#InternalServiceException":
|
|
1326
|
-
response = {
|
|
1327
|
-
...(await deserializeAws_json1_1InternalServiceExceptionResponse(parsedOutput, context)),
|
|
1328
|
-
name: errorCode,
|
|
1329
|
-
$metadata: deserializeMetadata(output),
|
|
1330
|
-
};
|
|
1331
|
-
break;
|
|
1332
|
-
case "InvalidInputException":
|
|
1333
|
-
case "com.amazonaws.lakeformation#InvalidInputException":
|
|
1334
|
-
response = {
|
|
1335
|
-
...(await deserializeAws_json1_1InvalidInputExceptionResponse(parsedOutput, context)),
|
|
1336
|
-
name: errorCode,
|
|
1337
|
-
$metadata: deserializeMetadata(output),
|
|
1338
|
-
};
|
|
1339
|
-
break;
|
|
1340
|
-
default:
|
|
1341
|
-
const parsedBody = parsedOutput.body;
|
|
1342
|
-
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
1343
|
-
response = {
|
|
1344
|
-
...parsedBody,
|
|
1345
|
-
name: `${errorCode}`,
|
|
1346
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1347
|
-
$fault: "client",
|
|
1348
|
-
$metadata: deserializeMetadata(output),
|
|
1349
|
-
};
|
|
1350
|
-
}
|
|
1351
|
-
const message = response.message || response.Message || errorCode;
|
|
1352
|
-
response.message = message;
|
|
1353
|
-
delete response.Message;
|
|
1354
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
1355
|
-
};
|
|
1356
|
-
const deserializeAws_json1_1RegisterResourceCommand = async (output, context) => {
|
|
1357
|
-
if (output.statusCode >= 300) {
|
|
1358
|
-
return deserializeAws_json1_1RegisterResourceCommandError(output, context);
|
|
1359
|
-
}
|
|
1360
|
-
const data = await parseBody(output.body, context);
|
|
1361
|
-
let contents = {};
|
|
1362
|
-
contents = deserializeAws_json1_1RegisterResourceResponse(data, context);
|
|
1363
|
-
const response = {
|
|
1364
|
-
$metadata: deserializeMetadata(output),
|
|
1365
|
-
...contents,
|
|
1366
|
-
};
|
|
1367
|
-
return Promise.resolve(response);
|
|
1368
|
-
};
|
|
1369
|
-
exports.deserializeAws_json1_1RegisterResourceCommand = deserializeAws_json1_1RegisterResourceCommand;
|
|
1370
|
-
const deserializeAws_json1_1RegisterResourceCommandError = async (output, context) => {
|
|
1371
|
-
const parsedOutput = {
|
|
1372
|
-
...output,
|
|
1373
|
-
body: await parseBody(output.body, context),
|
|
1374
|
-
};
|
|
1375
|
-
let response;
|
|
1376
|
-
let errorCode = "UnknownError";
|
|
1377
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1378
|
-
switch (errorCode) {
|
|
1379
|
-
case "AlreadyExistsException":
|
|
1380
|
-
case "com.amazonaws.lakeformation#AlreadyExistsException":
|
|
1381
|
-
response = {
|
|
1382
|
-
...(await deserializeAws_json1_1AlreadyExistsExceptionResponse(parsedOutput, context)),
|
|
1383
|
-
name: errorCode,
|
|
1384
|
-
$metadata: deserializeMetadata(output),
|
|
1385
|
-
};
|
|
1386
|
-
break;
|
|
1387
|
-
case "InternalServiceException":
|
|
1388
|
-
case "com.amazonaws.lakeformation#InternalServiceException":
|
|
1389
|
-
response = {
|
|
1390
|
-
...(await deserializeAws_json1_1InternalServiceExceptionResponse(parsedOutput, context)),
|
|
1391
|
-
name: errorCode,
|
|
1392
|
-
$metadata: deserializeMetadata(output),
|
|
1393
|
-
};
|
|
1394
|
-
break;
|
|
1395
|
-
case "InvalidInputException":
|
|
1396
|
-
case "com.amazonaws.lakeformation#InvalidInputException":
|
|
1397
|
-
response = {
|
|
1398
|
-
...(await deserializeAws_json1_1InvalidInputExceptionResponse(parsedOutput, context)),
|
|
1399
|
-
name: errorCode,
|
|
1400
|
-
$metadata: deserializeMetadata(output),
|
|
1401
|
-
};
|
|
1402
|
-
break;
|
|
1403
|
-
case "OperationTimeoutException":
|
|
1404
|
-
case "com.amazonaws.lakeformation#OperationTimeoutException":
|
|
1405
|
-
response = {
|
|
1406
|
-
...(await deserializeAws_json1_1OperationTimeoutExceptionResponse(parsedOutput, context)),
|
|
1407
|
-
name: errorCode,
|
|
1408
|
-
$metadata: deserializeMetadata(output),
|
|
1409
|
-
};
|
|
1410
|
-
break;
|
|
1411
|
-
default:
|
|
1412
|
-
const parsedBody = parsedOutput.body;
|
|
1413
|
-
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
1414
|
-
response = {
|
|
1415
|
-
...parsedBody,
|
|
1416
|
-
name: `${errorCode}`,
|
|
1417
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1418
|
-
$fault: "client",
|
|
1419
|
-
$metadata: deserializeMetadata(output),
|
|
1420
|
-
};
|
|
1421
|
-
}
|
|
1422
|
-
const message = response.message || response.Message || errorCode;
|
|
1423
|
-
response.message = message;
|
|
1424
|
-
delete response.Message;
|
|
1425
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
1426
|
-
};
|
|
1427
|
-
const deserializeAws_json1_1RemoveLFTagsFromResourceCommand = async (output, context) => {
|
|
1428
|
-
if (output.statusCode >= 300) {
|
|
1429
|
-
return deserializeAws_json1_1RemoveLFTagsFromResourceCommandError(output, context);
|
|
1430
|
-
}
|
|
1431
|
-
const data = await parseBody(output.body, context);
|
|
1432
|
-
let contents = {};
|
|
1433
|
-
contents = deserializeAws_json1_1RemoveLFTagsFromResourceResponse(data, context);
|
|
1434
|
-
const response = {
|
|
1435
|
-
$metadata: deserializeMetadata(output),
|
|
1436
|
-
...contents,
|
|
1437
|
-
};
|
|
1438
|
-
return Promise.resolve(response);
|
|
1439
|
-
};
|
|
1440
|
-
exports.deserializeAws_json1_1RemoveLFTagsFromResourceCommand = deserializeAws_json1_1RemoveLFTagsFromResourceCommand;
|
|
1441
|
-
const deserializeAws_json1_1RemoveLFTagsFromResourceCommandError = async (output, context) => {
|
|
1442
|
-
const parsedOutput = {
|
|
1443
|
-
...output,
|
|
1444
|
-
body: await parseBody(output.body, context),
|
|
1445
|
-
};
|
|
1446
|
-
let response;
|
|
1447
|
-
let errorCode = "UnknownError";
|
|
1448
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1449
|
-
switch (errorCode) {
|
|
1450
|
-
case "AccessDeniedException":
|
|
1451
|
-
case "com.amazonaws.lakeformation#AccessDeniedException":
|
|
1452
|
-
response = {
|
|
1453
|
-
...(await deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context)),
|
|
1454
|
-
name: errorCode,
|
|
1455
|
-
$metadata: deserializeMetadata(output),
|
|
1456
|
-
};
|
|
1457
|
-
break;
|
|
1458
|
-
case "ConcurrentModificationException":
|
|
1459
|
-
case "com.amazonaws.lakeformation#ConcurrentModificationException":
|
|
1460
|
-
response = {
|
|
1461
|
-
...(await deserializeAws_json1_1ConcurrentModificationExceptionResponse(parsedOutput, context)),
|
|
1462
|
-
name: errorCode,
|
|
1463
|
-
$metadata: deserializeMetadata(output),
|
|
1464
|
-
};
|
|
1465
|
-
break;
|
|
1466
|
-
case "EntityNotFoundException":
|
|
1467
|
-
case "com.amazonaws.lakeformation#EntityNotFoundException":
|
|
1468
|
-
response = {
|
|
1469
|
-
...(await deserializeAws_json1_1EntityNotFoundExceptionResponse(parsedOutput, context)),
|
|
1470
|
-
name: errorCode,
|
|
1471
|
-
$metadata: deserializeMetadata(output),
|
|
1472
|
-
};
|
|
1473
|
-
break;
|
|
1474
|
-
case "GlueEncryptionException":
|
|
1475
|
-
case "com.amazonaws.lakeformation#GlueEncryptionException":
|
|
1476
|
-
response = {
|
|
1477
|
-
...(await deserializeAws_json1_1GlueEncryptionExceptionResponse(parsedOutput, context)),
|
|
1478
|
-
name: errorCode,
|
|
1479
|
-
$metadata: deserializeMetadata(output),
|
|
1480
|
-
};
|
|
1481
|
-
break;
|
|
1482
|
-
case "InternalServiceException":
|
|
1483
|
-
case "com.amazonaws.lakeformation#InternalServiceException":
|
|
1484
|
-
response = {
|
|
1485
|
-
...(await deserializeAws_json1_1InternalServiceExceptionResponse(parsedOutput, context)),
|
|
1486
|
-
name: errorCode,
|
|
1487
|
-
$metadata: deserializeMetadata(output),
|
|
1488
|
-
};
|
|
1489
|
-
break;
|
|
1490
|
-
case "InvalidInputException":
|
|
1491
|
-
case "com.amazonaws.lakeformation#InvalidInputException":
|
|
1492
|
-
response = {
|
|
1493
|
-
...(await deserializeAws_json1_1InvalidInputExceptionResponse(parsedOutput, context)),
|
|
1494
|
-
name: errorCode,
|
|
1495
|
-
$metadata: deserializeMetadata(output),
|
|
1496
|
-
};
|
|
1497
|
-
break;
|
|
1498
|
-
case "OperationTimeoutException":
|
|
1499
|
-
case "com.amazonaws.lakeformation#OperationTimeoutException":
|
|
1500
|
-
response = {
|
|
1501
|
-
...(await deserializeAws_json1_1OperationTimeoutExceptionResponse(parsedOutput, context)),
|
|
1502
|
-
name: errorCode,
|
|
1503
|
-
$metadata: deserializeMetadata(output),
|
|
1504
|
-
};
|
|
1505
|
-
break;
|
|
1506
|
-
default:
|
|
1507
|
-
const parsedBody = parsedOutput.body;
|
|
1508
|
-
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
1509
|
-
response = {
|
|
1510
|
-
...parsedBody,
|
|
1511
|
-
name: `${errorCode}`,
|
|
1512
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1513
|
-
$fault: "client",
|
|
1514
|
-
$metadata: deserializeMetadata(output),
|
|
1515
|
-
};
|
|
1516
|
-
}
|
|
1517
|
-
const message = response.message || response.Message || errorCode;
|
|
1518
|
-
response.message = message;
|
|
1519
|
-
delete response.Message;
|
|
1520
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
1521
|
-
};
|
|
1522
|
-
const deserializeAws_json1_1RevokePermissionsCommand = async (output, context) => {
|
|
1523
|
-
if (output.statusCode >= 300) {
|
|
1524
|
-
return deserializeAws_json1_1RevokePermissionsCommandError(output, context);
|
|
1525
|
-
}
|
|
1526
|
-
const data = await parseBody(output.body, context);
|
|
1527
|
-
let contents = {};
|
|
1528
|
-
contents = deserializeAws_json1_1RevokePermissionsResponse(data, context);
|
|
1529
|
-
const response = {
|
|
1530
|
-
$metadata: deserializeMetadata(output),
|
|
1531
|
-
...contents,
|
|
1532
|
-
};
|
|
1533
|
-
return Promise.resolve(response);
|
|
1534
|
-
};
|
|
1535
|
-
exports.deserializeAws_json1_1RevokePermissionsCommand = deserializeAws_json1_1RevokePermissionsCommand;
|
|
1536
|
-
const deserializeAws_json1_1RevokePermissionsCommandError = async (output, context) => {
|
|
1537
|
-
const parsedOutput = {
|
|
1538
|
-
...output,
|
|
1539
|
-
body: await parseBody(output.body, context),
|
|
1540
|
-
};
|
|
1541
|
-
let response;
|
|
1542
|
-
let errorCode = "UnknownError";
|
|
1543
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1544
|
-
switch (errorCode) {
|
|
1545
|
-
case "ConcurrentModificationException":
|
|
1546
|
-
case "com.amazonaws.lakeformation#ConcurrentModificationException":
|
|
1547
|
-
response = {
|
|
1548
|
-
...(await deserializeAws_json1_1ConcurrentModificationExceptionResponse(parsedOutput, context)),
|
|
1549
|
-
name: errorCode,
|
|
1550
|
-
$metadata: deserializeMetadata(output),
|
|
1551
|
-
};
|
|
1552
|
-
break;
|
|
1553
|
-
case "EntityNotFoundException":
|
|
1554
|
-
case "com.amazonaws.lakeformation#EntityNotFoundException":
|
|
1555
|
-
response = {
|
|
1556
|
-
...(await deserializeAws_json1_1EntityNotFoundExceptionResponse(parsedOutput, context)),
|
|
1557
|
-
name: errorCode,
|
|
1558
|
-
$metadata: deserializeMetadata(output),
|
|
1559
|
-
};
|
|
1560
|
-
break;
|
|
1561
|
-
case "InvalidInputException":
|
|
1562
|
-
case "com.amazonaws.lakeformation#InvalidInputException":
|
|
1563
|
-
response = {
|
|
1564
|
-
...(await deserializeAws_json1_1InvalidInputExceptionResponse(parsedOutput, context)),
|
|
1565
|
-
name: errorCode,
|
|
1566
|
-
$metadata: deserializeMetadata(output),
|
|
1567
|
-
};
|
|
1568
|
-
break;
|
|
1569
|
-
default:
|
|
1570
|
-
const parsedBody = parsedOutput.body;
|
|
1571
|
-
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
1572
|
-
response = {
|
|
1573
|
-
...parsedBody,
|
|
1574
|
-
name: `${errorCode}`,
|
|
1575
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1576
|
-
$fault: "client",
|
|
1577
|
-
$metadata: deserializeMetadata(output),
|
|
1578
|
-
};
|
|
1579
|
-
}
|
|
1580
|
-
const message = response.message || response.Message || errorCode;
|
|
1581
|
-
response.message = message;
|
|
1582
|
-
delete response.Message;
|
|
1583
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
1584
|
-
};
|
|
1585
|
-
const deserializeAws_json1_1SearchDatabasesByLFTagsCommand = async (output, context) => {
|
|
1586
|
-
if (output.statusCode >= 300) {
|
|
1587
|
-
return deserializeAws_json1_1SearchDatabasesByLFTagsCommandError(output, context);
|
|
1588
|
-
}
|
|
1589
|
-
const data = await parseBody(output.body, context);
|
|
1590
|
-
let contents = {};
|
|
1591
|
-
contents = deserializeAws_json1_1SearchDatabasesByLFTagsResponse(data, context);
|
|
1592
|
-
const response = {
|
|
1593
|
-
$metadata: deserializeMetadata(output),
|
|
1594
|
-
...contents,
|
|
1595
|
-
};
|
|
1596
|
-
return Promise.resolve(response);
|
|
1597
|
-
};
|
|
1598
|
-
exports.deserializeAws_json1_1SearchDatabasesByLFTagsCommand = deserializeAws_json1_1SearchDatabasesByLFTagsCommand;
|
|
1599
|
-
const deserializeAws_json1_1SearchDatabasesByLFTagsCommandError = async (output, context) => {
|
|
1600
|
-
const parsedOutput = {
|
|
1601
|
-
...output,
|
|
1602
|
-
body: await parseBody(output.body, context),
|
|
1603
|
-
};
|
|
1604
|
-
let response;
|
|
1605
|
-
let errorCode = "UnknownError";
|
|
1606
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1607
|
-
switch (errorCode) {
|
|
1608
|
-
case "AccessDeniedException":
|
|
1609
|
-
case "com.amazonaws.lakeformation#AccessDeniedException":
|
|
1610
|
-
response = {
|
|
1611
|
-
...(await deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context)),
|
|
1612
|
-
name: errorCode,
|
|
1613
|
-
$metadata: deserializeMetadata(output),
|
|
1614
|
-
};
|
|
1615
|
-
break;
|
|
1616
|
-
case "EntityNotFoundException":
|
|
1617
|
-
case "com.amazonaws.lakeformation#EntityNotFoundException":
|
|
1618
|
-
response = {
|
|
1619
|
-
...(await deserializeAws_json1_1EntityNotFoundExceptionResponse(parsedOutput, context)),
|
|
1620
|
-
name: errorCode,
|
|
1621
|
-
$metadata: deserializeMetadata(output),
|
|
1622
|
-
};
|
|
1623
|
-
break;
|
|
1624
|
-
case "GlueEncryptionException":
|
|
1625
|
-
case "com.amazonaws.lakeformation#GlueEncryptionException":
|
|
1626
|
-
response = {
|
|
1627
|
-
...(await deserializeAws_json1_1GlueEncryptionExceptionResponse(parsedOutput, context)),
|
|
1628
|
-
name: errorCode,
|
|
1629
|
-
$metadata: deserializeMetadata(output),
|
|
1630
|
-
};
|
|
1631
|
-
break;
|
|
1632
|
-
case "InternalServiceException":
|
|
1633
|
-
case "com.amazonaws.lakeformation#InternalServiceException":
|
|
1634
|
-
response = {
|
|
1635
|
-
...(await deserializeAws_json1_1InternalServiceExceptionResponse(parsedOutput, context)),
|
|
1636
|
-
name: errorCode,
|
|
1637
|
-
$metadata: deserializeMetadata(output),
|
|
1638
|
-
};
|
|
1639
|
-
break;
|
|
1640
|
-
case "InvalidInputException":
|
|
1641
|
-
case "com.amazonaws.lakeformation#InvalidInputException":
|
|
1642
|
-
response = {
|
|
1643
|
-
...(await deserializeAws_json1_1InvalidInputExceptionResponse(parsedOutput, context)),
|
|
1644
|
-
name: errorCode,
|
|
1645
|
-
$metadata: deserializeMetadata(output),
|
|
1646
|
-
};
|
|
1647
|
-
break;
|
|
1648
|
-
case "OperationTimeoutException":
|
|
1649
|
-
case "com.amazonaws.lakeformation#OperationTimeoutException":
|
|
1650
|
-
response = {
|
|
1651
|
-
...(await deserializeAws_json1_1OperationTimeoutExceptionResponse(parsedOutput, context)),
|
|
1652
|
-
name: errorCode,
|
|
1653
|
-
$metadata: deserializeMetadata(output),
|
|
1654
|
-
};
|
|
1655
|
-
break;
|
|
1656
|
-
default:
|
|
1657
|
-
const parsedBody = parsedOutput.body;
|
|
1658
|
-
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
1659
|
-
response = {
|
|
1660
|
-
...parsedBody,
|
|
1661
|
-
name: `${errorCode}`,
|
|
1662
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1663
|
-
$fault: "client",
|
|
1664
|
-
$metadata: deserializeMetadata(output),
|
|
1665
|
-
};
|
|
1666
|
-
}
|
|
1667
|
-
const message = response.message || response.Message || errorCode;
|
|
1668
|
-
response.message = message;
|
|
1669
|
-
delete response.Message;
|
|
1670
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
1671
|
-
};
|
|
1672
|
-
const deserializeAws_json1_1SearchTablesByLFTagsCommand = async (output, context) => {
|
|
1673
|
-
if (output.statusCode >= 300) {
|
|
1674
|
-
return deserializeAws_json1_1SearchTablesByLFTagsCommandError(output, context);
|
|
1675
|
-
}
|
|
1676
|
-
const data = await parseBody(output.body, context);
|
|
1677
|
-
let contents = {};
|
|
1678
|
-
contents = deserializeAws_json1_1SearchTablesByLFTagsResponse(data, context);
|
|
1679
|
-
const response = {
|
|
1680
|
-
$metadata: deserializeMetadata(output),
|
|
1681
|
-
...contents,
|
|
1682
|
-
};
|
|
1683
|
-
return Promise.resolve(response);
|
|
1684
|
-
};
|
|
1685
|
-
exports.deserializeAws_json1_1SearchTablesByLFTagsCommand = deserializeAws_json1_1SearchTablesByLFTagsCommand;
|
|
1686
|
-
const deserializeAws_json1_1SearchTablesByLFTagsCommandError = async (output, context) => {
|
|
1687
|
-
const parsedOutput = {
|
|
1688
|
-
...output,
|
|
1689
|
-
body: await parseBody(output.body, context),
|
|
1690
|
-
};
|
|
1691
|
-
let response;
|
|
1692
|
-
let errorCode = "UnknownError";
|
|
1693
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1694
|
-
switch (errorCode) {
|
|
1695
|
-
case "AccessDeniedException":
|
|
1696
|
-
case "com.amazonaws.lakeformation#AccessDeniedException":
|
|
1697
|
-
response = {
|
|
1698
|
-
...(await deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context)),
|
|
1699
|
-
name: errorCode,
|
|
1700
|
-
$metadata: deserializeMetadata(output),
|
|
1701
|
-
};
|
|
1702
|
-
break;
|
|
1703
|
-
case "EntityNotFoundException":
|
|
1704
|
-
case "com.amazonaws.lakeformation#EntityNotFoundException":
|
|
1705
|
-
response = {
|
|
1706
|
-
...(await deserializeAws_json1_1EntityNotFoundExceptionResponse(parsedOutput, context)),
|
|
1707
|
-
name: errorCode,
|
|
1708
|
-
$metadata: deserializeMetadata(output),
|
|
1709
|
-
};
|
|
1710
|
-
break;
|
|
1711
|
-
case "GlueEncryptionException":
|
|
1712
|
-
case "com.amazonaws.lakeformation#GlueEncryptionException":
|
|
1713
|
-
response = {
|
|
1714
|
-
...(await deserializeAws_json1_1GlueEncryptionExceptionResponse(parsedOutput, context)),
|
|
1715
|
-
name: errorCode,
|
|
1716
|
-
$metadata: deserializeMetadata(output),
|
|
1717
|
-
};
|
|
1718
|
-
break;
|
|
1719
|
-
case "InternalServiceException":
|
|
1720
|
-
case "com.amazonaws.lakeformation#InternalServiceException":
|
|
1721
|
-
response = {
|
|
1722
|
-
...(await deserializeAws_json1_1InternalServiceExceptionResponse(parsedOutput, context)),
|
|
1723
|
-
name: errorCode,
|
|
1724
|
-
$metadata: deserializeMetadata(output),
|
|
1725
|
-
};
|
|
1726
|
-
break;
|
|
1727
|
-
case "InvalidInputException":
|
|
1728
|
-
case "com.amazonaws.lakeformation#InvalidInputException":
|
|
1729
|
-
response = {
|
|
1730
|
-
...(await deserializeAws_json1_1InvalidInputExceptionResponse(parsedOutput, context)),
|
|
1731
|
-
name: errorCode,
|
|
1732
|
-
$metadata: deserializeMetadata(output),
|
|
1733
|
-
};
|
|
1734
|
-
break;
|
|
1735
|
-
case "OperationTimeoutException":
|
|
1736
|
-
case "com.amazonaws.lakeformation#OperationTimeoutException":
|
|
1737
|
-
response = {
|
|
1738
|
-
...(await deserializeAws_json1_1OperationTimeoutExceptionResponse(parsedOutput, context)),
|
|
1739
|
-
name: errorCode,
|
|
1740
|
-
$metadata: deserializeMetadata(output),
|
|
1741
|
-
};
|
|
1742
|
-
break;
|
|
1743
|
-
default:
|
|
1744
|
-
const parsedBody = parsedOutput.body;
|
|
1745
|
-
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
1746
|
-
response = {
|
|
1747
|
-
...parsedBody,
|
|
1748
|
-
name: `${errorCode}`,
|
|
1749
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1750
|
-
$fault: "client",
|
|
1751
|
-
$metadata: deserializeMetadata(output),
|
|
1752
|
-
};
|
|
1753
|
-
}
|
|
1754
|
-
const message = response.message || response.Message || errorCode;
|
|
1755
|
-
response.message = message;
|
|
1756
|
-
delete response.Message;
|
|
1757
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
1758
|
-
};
|
|
1759
|
-
const deserializeAws_json1_1UpdateLFTagCommand = async (output, context) => {
|
|
1760
|
-
if (output.statusCode >= 300) {
|
|
1761
|
-
return deserializeAws_json1_1UpdateLFTagCommandError(output, context);
|
|
1762
|
-
}
|
|
1763
|
-
const data = await parseBody(output.body, context);
|
|
1764
|
-
let contents = {};
|
|
1765
|
-
contents = deserializeAws_json1_1UpdateLFTagResponse(data, context);
|
|
1766
|
-
const response = {
|
|
1767
|
-
$metadata: deserializeMetadata(output),
|
|
1768
|
-
...contents,
|
|
1769
|
-
};
|
|
1770
|
-
return Promise.resolve(response);
|
|
1771
|
-
};
|
|
1772
|
-
exports.deserializeAws_json1_1UpdateLFTagCommand = deserializeAws_json1_1UpdateLFTagCommand;
|
|
1773
|
-
const deserializeAws_json1_1UpdateLFTagCommandError = async (output, context) => {
|
|
1774
|
-
const parsedOutput = {
|
|
1775
|
-
...output,
|
|
1776
|
-
body: await parseBody(output.body, context),
|
|
1777
|
-
};
|
|
1778
|
-
let response;
|
|
1779
|
-
let errorCode = "UnknownError";
|
|
1780
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1781
|
-
switch (errorCode) {
|
|
1782
|
-
case "AccessDeniedException":
|
|
1783
|
-
case "com.amazonaws.lakeformation#AccessDeniedException":
|
|
1784
|
-
response = {
|
|
1785
|
-
...(await deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context)),
|
|
1786
|
-
name: errorCode,
|
|
1787
|
-
$metadata: deserializeMetadata(output),
|
|
1788
|
-
};
|
|
1789
|
-
break;
|
|
1790
|
-
case "ConcurrentModificationException":
|
|
1791
|
-
case "com.amazonaws.lakeformation#ConcurrentModificationException":
|
|
1792
|
-
response = {
|
|
1793
|
-
...(await deserializeAws_json1_1ConcurrentModificationExceptionResponse(parsedOutput, context)),
|
|
1794
|
-
name: errorCode,
|
|
1795
|
-
$metadata: deserializeMetadata(output),
|
|
1796
|
-
};
|
|
1797
|
-
break;
|
|
1798
|
-
case "EntityNotFoundException":
|
|
1799
|
-
case "com.amazonaws.lakeformation#EntityNotFoundException":
|
|
1800
|
-
response = {
|
|
1801
|
-
...(await deserializeAws_json1_1EntityNotFoundExceptionResponse(parsedOutput, context)),
|
|
1802
|
-
name: errorCode,
|
|
1803
|
-
$metadata: deserializeMetadata(output),
|
|
1804
|
-
};
|
|
1805
|
-
break;
|
|
1806
|
-
case "InternalServiceException":
|
|
1807
|
-
case "com.amazonaws.lakeformation#InternalServiceException":
|
|
1808
|
-
response = {
|
|
1809
|
-
...(await deserializeAws_json1_1InternalServiceExceptionResponse(parsedOutput, context)),
|
|
1810
|
-
name: errorCode,
|
|
1811
|
-
$metadata: deserializeMetadata(output),
|
|
1812
|
-
};
|
|
1813
|
-
break;
|
|
1814
|
-
case "InvalidInputException":
|
|
1815
|
-
case "com.amazonaws.lakeformation#InvalidInputException":
|
|
1816
|
-
response = {
|
|
1817
|
-
...(await deserializeAws_json1_1InvalidInputExceptionResponse(parsedOutput, context)),
|
|
1818
|
-
name: errorCode,
|
|
1819
|
-
$metadata: deserializeMetadata(output),
|
|
1820
|
-
};
|
|
1821
|
-
break;
|
|
1822
|
-
case "OperationTimeoutException":
|
|
1823
|
-
case "com.amazonaws.lakeformation#OperationTimeoutException":
|
|
1824
|
-
response = {
|
|
1825
|
-
...(await deserializeAws_json1_1OperationTimeoutExceptionResponse(parsedOutput, context)),
|
|
1826
|
-
name: errorCode,
|
|
1827
|
-
$metadata: deserializeMetadata(output),
|
|
1828
|
-
};
|
|
1829
|
-
break;
|
|
1830
|
-
default:
|
|
1831
|
-
const parsedBody = parsedOutput.body;
|
|
1832
|
-
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
1833
|
-
response = {
|
|
1834
|
-
...parsedBody,
|
|
1835
|
-
name: `${errorCode}`,
|
|
1836
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1837
|
-
$fault: "client",
|
|
1838
|
-
$metadata: deserializeMetadata(output),
|
|
1839
|
-
};
|
|
1840
|
-
}
|
|
1841
|
-
const message = response.message || response.Message || errorCode;
|
|
1842
|
-
response.message = message;
|
|
1843
|
-
delete response.Message;
|
|
1844
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
1845
|
-
};
|
|
1846
|
-
const deserializeAws_json1_1UpdateResourceCommand = async (output, context) => {
|
|
1847
|
-
if (output.statusCode >= 300) {
|
|
1848
|
-
return deserializeAws_json1_1UpdateResourceCommandError(output, context);
|
|
1849
|
-
}
|
|
1850
|
-
const data = await parseBody(output.body, context);
|
|
1851
|
-
let contents = {};
|
|
1852
|
-
contents = deserializeAws_json1_1UpdateResourceResponse(data, context);
|
|
1853
|
-
const response = {
|
|
1854
|
-
$metadata: deserializeMetadata(output),
|
|
1855
|
-
...contents,
|
|
1856
|
-
};
|
|
1857
|
-
return Promise.resolve(response);
|
|
1858
|
-
};
|
|
1859
|
-
exports.deserializeAws_json1_1UpdateResourceCommand = deserializeAws_json1_1UpdateResourceCommand;
|
|
1860
|
-
const deserializeAws_json1_1UpdateResourceCommandError = async (output, context) => {
|
|
1861
|
-
const parsedOutput = {
|
|
1862
|
-
...output,
|
|
1863
|
-
body: await parseBody(output.body, context),
|
|
1864
|
-
};
|
|
1865
|
-
let response;
|
|
1866
|
-
let errorCode = "UnknownError";
|
|
1867
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1868
|
-
switch (errorCode) {
|
|
1869
|
-
case "EntityNotFoundException":
|
|
1870
|
-
case "com.amazonaws.lakeformation#EntityNotFoundException":
|
|
1871
|
-
response = {
|
|
1872
|
-
...(await deserializeAws_json1_1EntityNotFoundExceptionResponse(parsedOutput, context)),
|
|
1873
|
-
name: errorCode,
|
|
1874
|
-
$metadata: deserializeMetadata(output),
|
|
1875
|
-
};
|
|
1876
|
-
break;
|
|
1877
|
-
case "InternalServiceException":
|
|
1878
|
-
case "com.amazonaws.lakeformation#InternalServiceException":
|
|
1879
|
-
response = {
|
|
1880
|
-
...(await deserializeAws_json1_1InternalServiceExceptionResponse(parsedOutput, context)),
|
|
1881
|
-
name: errorCode,
|
|
1882
|
-
$metadata: deserializeMetadata(output),
|
|
1883
|
-
};
|
|
1884
|
-
break;
|
|
1885
|
-
case "InvalidInputException":
|
|
1886
|
-
case "com.amazonaws.lakeformation#InvalidInputException":
|
|
1887
|
-
response = {
|
|
1888
|
-
...(await deserializeAws_json1_1InvalidInputExceptionResponse(parsedOutput, context)),
|
|
1889
|
-
name: errorCode,
|
|
1890
|
-
$metadata: deserializeMetadata(output),
|
|
1891
|
-
};
|
|
1892
|
-
break;
|
|
1893
|
-
case "OperationTimeoutException":
|
|
1894
|
-
case "com.amazonaws.lakeformation#OperationTimeoutException":
|
|
1895
|
-
response = {
|
|
1896
|
-
...(await deserializeAws_json1_1OperationTimeoutExceptionResponse(parsedOutput, context)),
|
|
1897
|
-
name: errorCode,
|
|
1898
|
-
$metadata: deserializeMetadata(output),
|
|
1899
|
-
};
|
|
1900
|
-
break;
|
|
1901
|
-
default:
|
|
1902
|
-
const parsedBody = parsedOutput.body;
|
|
1903
|
-
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
1904
|
-
response = {
|
|
1905
|
-
...parsedBody,
|
|
1906
|
-
name: `${errorCode}`,
|
|
1907
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1908
|
-
$fault: "client",
|
|
1909
|
-
$metadata: deserializeMetadata(output),
|
|
1910
|
-
};
|
|
1911
|
-
}
|
|
1912
|
-
const message = response.message || response.Message || errorCode;
|
|
1913
|
-
response.message = message;
|
|
1914
|
-
delete response.Message;
|
|
1915
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
1916
|
-
};
|
|
1917
|
-
const deserializeAws_json1_1AccessDeniedExceptionResponse = async (parsedOutput, context) => {
|
|
1918
|
-
const body = parsedOutput.body;
|
|
1919
|
-
const deserialized = deserializeAws_json1_1AccessDeniedException(body, context);
|
|
1920
|
-
const contents = {
|
|
1921
|
-
name: "AccessDeniedException",
|
|
1922
|
-
$fault: "client",
|
|
1923
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1924
|
-
...deserialized,
|
|
1925
|
-
};
|
|
1926
|
-
return contents;
|
|
1927
|
-
};
|
|
1928
|
-
const deserializeAws_json1_1AlreadyExistsExceptionResponse = async (parsedOutput, context) => {
|
|
1929
|
-
const body = parsedOutput.body;
|
|
1930
|
-
const deserialized = deserializeAws_json1_1AlreadyExistsException(body, context);
|
|
1931
|
-
const contents = {
|
|
1932
|
-
name: "AlreadyExistsException",
|
|
1933
|
-
$fault: "client",
|
|
1934
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1935
|
-
...deserialized,
|
|
1936
|
-
};
|
|
1937
|
-
return contents;
|
|
1938
|
-
};
|
|
1939
|
-
const deserializeAws_json1_1ConcurrentModificationExceptionResponse = async (parsedOutput, context) => {
|
|
1940
|
-
const body = parsedOutput.body;
|
|
1941
|
-
const deserialized = deserializeAws_json1_1ConcurrentModificationException(body, context);
|
|
1942
|
-
const contents = {
|
|
1943
|
-
name: "ConcurrentModificationException",
|
|
1944
|
-
$fault: "client",
|
|
1945
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1946
|
-
...deserialized,
|
|
1947
|
-
};
|
|
1948
|
-
return contents;
|
|
1949
|
-
};
|
|
1950
|
-
const deserializeAws_json1_1EntityNotFoundExceptionResponse = async (parsedOutput, context) => {
|
|
1951
|
-
const body = parsedOutput.body;
|
|
1952
|
-
const deserialized = deserializeAws_json1_1EntityNotFoundException(body, context);
|
|
1953
|
-
const contents = {
|
|
1954
|
-
name: "EntityNotFoundException",
|
|
1955
|
-
$fault: "client",
|
|
1956
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1957
|
-
...deserialized,
|
|
1958
|
-
};
|
|
1959
|
-
return contents;
|
|
1960
|
-
};
|
|
1961
|
-
const deserializeAws_json1_1GlueEncryptionExceptionResponse = async (parsedOutput, context) => {
|
|
1962
|
-
const body = parsedOutput.body;
|
|
1963
|
-
const deserialized = deserializeAws_json1_1GlueEncryptionException(body, context);
|
|
1964
|
-
const contents = {
|
|
1965
|
-
name: "GlueEncryptionException",
|
|
1966
|
-
$fault: "client",
|
|
1967
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1968
|
-
...deserialized,
|
|
1969
|
-
};
|
|
1970
|
-
return contents;
|
|
1971
|
-
};
|
|
1972
|
-
const deserializeAws_json1_1InternalServiceExceptionResponse = async (parsedOutput, context) => {
|
|
1973
|
-
const body = parsedOutput.body;
|
|
1974
|
-
const deserialized = deserializeAws_json1_1InternalServiceException(body, context);
|
|
1975
|
-
const contents = {
|
|
1976
|
-
name: "InternalServiceException",
|
|
1977
|
-
$fault: "server",
|
|
1978
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1979
|
-
...deserialized,
|
|
1980
|
-
};
|
|
1981
|
-
return contents;
|
|
1982
|
-
};
|
|
1983
|
-
const deserializeAws_json1_1InvalidInputExceptionResponse = async (parsedOutput, context) => {
|
|
1984
|
-
const body = parsedOutput.body;
|
|
1985
|
-
const deserialized = deserializeAws_json1_1InvalidInputException(body, context);
|
|
1986
|
-
const contents = {
|
|
1987
|
-
name: "InvalidInputException",
|
|
1988
|
-
$fault: "client",
|
|
1989
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1990
|
-
...deserialized,
|
|
1991
|
-
};
|
|
1992
|
-
return contents;
|
|
1993
|
-
};
|
|
1994
|
-
const deserializeAws_json1_1OperationTimeoutExceptionResponse = async (parsedOutput, context) => {
|
|
1995
|
-
const body = parsedOutput.body;
|
|
1996
|
-
const deserialized = deserializeAws_json1_1OperationTimeoutException(body, context);
|
|
1997
|
-
const contents = {
|
|
1998
|
-
name: "OperationTimeoutException",
|
|
1999
|
-
$fault: "client",
|
|
2000
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
2001
|
-
...deserialized,
|
|
2002
|
-
};
|
|
2003
|
-
return contents;
|
|
2004
|
-
};
|
|
2005
|
-
const deserializeAws_json1_1ResourceNumberLimitExceededExceptionResponse = async (parsedOutput, context) => {
|
|
2006
|
-
const body = parsedOutput.body;
|
|
2007
|
-
const deserialized = deserializeAws_json1_1ResourceNumberLimitExceededException(body, context);
|
|
2008
|
-
const contents = {
|
|
2009
|
-
name: "ResourceNumberLimitExceededException",
|
|
2010
|
-
$fault: "client",
|
|
2011
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
2012
|
-
...deserialized,
|
|
2013
|
-
};
|
|
2014
|
-
return contents;
|
|
2015
|
-
};
|
|
2016
|
-
const serializeAws_json1_1AddLFTagsToResourceRequest = (input, context) => {
|
|
2017
|
-
return {
|
|
2018
|
-
...(input.CatalogId !== undefined && input.CatalogId !== null && { CatalogId: input.CatalogId }),
|
|
2019
|
-
...(input.LFTags !== undefined &&
|
|
2020
|
-
input.LFTags !== null && { LFTags: serializeAws_json1_1LFTagsList(input.LFTags, context) }),
|
|
2021
|
-
...(input.Resource !== undefined &&
|
|
2022
|
-
input.Resource !== null && { Resource: serializeAws_json1_1Resource(input.Resource, context) }),
|
|
2023
|
-
};
|
|
2024
|
-
};
|
|
2025
|
-
const serializeAws_json1_1BatchGrantPermissionsRequest = (input, context) => {
|
|
2026
|
-
return {
|
|
2027
|
-
...(input.CatalogId !== undefined && input.CatalogId !== null && { CatalogId: input.CatalogId }),
|
|
2028
|
-
...(input.Entries !== undefined &&
|
|
2029
|
-
input.Entries !== null && {
|
|
2030
|
-
Entries: serializeAws_json1_1BatchPermissionsRequestEntryList(input.Entries, context),
|
|
2031
|
-
}),
|
|
2032
|
-
};
|
|
2033
|
-
};
|
|
2034
|
-
const serializeAws_json1_1BatchPermissionsRequestEntry = (input, context) => {
|
|
2035
|
-
return {
|
|
2036
|
-
...(input.Id !== undefined && input.Id !== null && { Id: input.Id }),
|
|
2037
|
-
...(input.Permissions !== undefined &&
|
|
2038
|
-
input.Permissions !== null && { Permissions: serializeAws_json1_1PermissionList(input.Permissions, context) }),
|
|
2039
|
-
...(input.PermissionsWithGrantOption !== undefined &&
|
|
2040
|
-
input.PermissionsWithGrantOption !== null && {
|
|
2041
|
-
PermissionsWithGrantOption: serializeAws_json1_1PermissionList(input.PermissionsWithGrantOption, context),
|
|
2042
|
-
}),
|
|
2043
|
-
...(input.Principal !== undefined &&
|
|
2044
|
-
input.Principal !== null && { Principal: serializeAws_json1_1DataLakePrincipal(input.Principal, context) }),
|
|
2045
|
-
...(input.Resource !== undefined &&
|
|
2046
|
-
input.Resource !== null && { Resource: serializeAws_json1_1Resource(input.Resource, context) }),
|
|
2047
|
-
};
|
|
2048
|
-
};
|
|
2049
|
-
const serializeAws_json1_1BatchPermissionsRequestEntryList = (input, context) => {
|
|
2050
|
-
return input
|
|
2051
|
-
.filter((e) => e != null)
|
|
2052
|
-
.map((entry) => {
|
|
2053
|
-
if (entry === null) {
|
|
2054
|
-
return null;
|
|
2055
|
-
}
|
|
2056
|
-
return serializeAws_json1_1BatchPermissionsRequestEntry(entry, context);
|
|
2057
|
-
});
|
|
2058
|
-
};
|
|
2059
|
-
const serializeAws_json1_1BatchRevokePermissionsRequest = (input, context) => {
|
|
2060
|
-
return {
|
|
2061
|
-
...(input.CatalogId !== undefined && input.CatalogId !== null && { CatalogId: input.CatalogId }),
|
|
2062
|
-
...(input.Entries !== undefined &&
|
|
2063
|
-
input.Entries !== null && {
|
|
2064
|
-
Entries: serializeAws_json1_1BatchPermissionsRequestEntryList(input.Entries, context),
|
|
2065
|
-
}),
|
|
2066
|
-
};
|
|
2067
|
-
};
|
|
2068
|
-
const serializeAws_json1_1CatalogResource = (input, context) => {
|
|
2069
|
-
return {};
|
|
2070
|
-
};
|
|
2071
|
-
const serializeAws_json1_1ColumnNames = (input, context) => {
|
|
2072
|
-
return input
|
|
2073
|
-
.filter((e) => e != null)
|
|
2074
|
-
.map((entry) => {
|
|
2075
|
-
if (entry === null) {
|
|
2076
|
-
return null;
|
|
2077
|
-
}
|
|
2078
|
-
return entry;
|
|
2079
|
-
});
|
|
2080
|
-
};
|
|
2081
|
-
const serializeAws_json1_1ColumnWildcard = (input, context) => {
|
|
2082
|
-
return {
|
|
2083
|
-
...(input.ExcludedColumnNames !== undefined &&
|
|
2084
|
-
input.ExcludedColumnNames !== null && {
|
|
2085
|
-
ExcludedColumnNames: serializeAws_json1_1ColumnNames(input.ExcludedColumnNames, context),
|
|
2086
|
-
}),
|
|
2087
|
-
};
|
|
2088
|
-
};
|
|
2089
|
-
const serializeAws_json1_1CreateLFTagRequest = (input, context) => {
|
|
2090
|
-
return {
|
|
2091
|
-
...(input.CatalogId !== undefined && input.CatalogId !== null && { CatalogId: input.CatalogId }),
|
|
2092
|
-
...(input.TagKey !== undefined && input.TagKey !== null && { TagKey: input.TagKey }),
|
|
2093
|
-
...(input.TagValues !== undefined &&
|
|
2094
|
-
input.TagValues !== null && { TagValues: serializeAws_json1_1TagValueList(input.TagValues, context) }),
|
|
2095
|
-
};
|
|
2096
|
-
};
|
|
2097
|
-
const serializeAws_json1_1DatabaseResource = (input, context) => {
|
|
2098
|
-
return {
|
|
2099
|
-
...(input.CatalogId !== undefined && input.CatalogId !== null && { CatalogId: input.CatalogId }),
|
|
2100
|
-
...(input.Name !== undefined && input.Name !== null && { Name: input.Name }),
|
|
2101
|
-
};
|
|
2102
|
-
};
|
|
2103
|
-
const serializeAws_json1_1DataLakePrincipal = (input, context) => {
|
|
2104
|
-
return {
|
|
2105
|
-
...(input.DataLakePrincipalIdentifier !== undefined &&
|
|
2106
|
-
input.DataLakePrincipalIdentifier !== null && { DataLakePrincipalIdentifier: input.DataLakePrincipalIdentifier }),
|
|
2107
|
-
};
|
|
2108
|
-
};
|
|
2109
|
-
const serializeAws_json1_1DataLakePrincipalList = (input, context) => {
|
|
2110
|
-
return input
|
|
2111
|
-
.filter((e) => e != null)
|
|
2112
|
-
.map((entry) => {
|
|
2113
|
-
if (entry === null) {
|
|
2114
|
-
return null;
|
|
2115
|
-
}
|
|
2116
|
-
return serializeAws_json1_1DataLakePrincipal(entry, context);
|
|
2117
|
-
});
|
|
2118
|
-
};
|
|
2119
|
-
const serializeAws_json1_1DataLakeSettings = (input, context) => {
|
|
2120
|
-
return {
|
|
2121
|
-
...(input.CreateDatabaseDefaultPermissions !== undefined &&
|
|
2122
|
-
input.CreateDatabaseDefaultPermissions !== null && {
|
|
2123
|
-
CreateDatabaseDefaultPermissions: serializeAws_json1_1PrincipalPermissionsList(input.CreateDatabaseDefaultPermissions, context),
|
|
2124
|
-
}),
|
|
2125
|
-
...(input.CreateTableDefaultPermissions !== undefined &&
|
|
2126
|
-
input.CreateTableDefaultPermissions !== null && {
|
|
2127
|
-
CreateTableDefaultPermissions: serializeAws_json1_1PrincipalPermissionsList(input.CreateTableDefaultPermissions, context),
|
|
2128
|
-
}),
|
|
2129
|
-
...(input.DataLakeAdmins !== undefined &&
|
|
2130
|
-
input.DataLakeAdmins !== null && {
|
|
2131
|
-
DataLakeAdmins: serializeAws_json1_1DataLakePrincipalList(input.DataLakeAdmins, context),
|
|
2132
|
-
}),
|
|
2133
|
-
...(input.TrustedResourceOwners !== undefined &&
|
|
2134
|
-
input.TrustedResourceOwners !== null && {
|
|
2135
|
-
TrustedResourceOwners: serializeAws_json1_1TrustedResourceOwners(input.TrustedResourceOwners, context),
|
|
2136
|
-
}),
|
|
2137
|
-
};
|
|
2138
|
-
};
|
|
2139
|
-
const serializeAws_json1_1DataLocationResource = (input, context) => {
|
|
2140
|
-
return {
|
|
2141
|
-
...(input.CatalogId !== undefined && input.CatalogId !== null && { CatalogId: input.CatalogId }),
|
|
2142
|
-
...(input.ResourceArn !== undefined && input.ResourceArn !== null && { ResourceArn: input.ResourceArn }),
|
|
2143
|
-
};
|
|
2144
|
-
};
|
|
2145
|
-
const serializeAws_json1_1DeleteLFTagRequest = (input, context) => {
|
|
2146
|
-
return {
|
|
2147
|
-
...(input.CatalogId !== undefined && input.CatalogId !== null && { CatalogId: input.CatalogId }),
|
|
2148
|
-
...(input.TagKey !== undefined && input.TagKey !== null && { TagKey: input.TagKey }),
|
|
2149
|
-
};
|
|
2150
|
-
};
|
|
2151
|
-
const serializeAws_json1_1DeregisterResourceRequest = (input, context) => {
|
|
2152
|
-
return {
|
|
2153
|
-
...(input.ResourceArn !== undefined && input.ResourceArn !== null && { ResourceArn: input.ResourceArn }),
|
|
2154
|
-
};
|
|
2155
|
-
};
|
|
2156
|
-
const serializeAws_json1_1DescribeResourceRequest = (input, context) => {
|
|
2157
|
-
return {
|
|
2158
|
-
...(input.ResourceArn !== undefined && input.ResourceArn !== null && { ResourceArn: input.ResourceArn }),
|
|
2159
|
-
};
|
|
2160
|
-
};
|
|
2161
|
-
const serializeAws_json1_1Expression = (input, context) => {
|
|
2162
|
-
return input
|
|
2163
|
-
.filter((e) => e != null)
|
|
2164
|
-
.map((entry) => {
|
|
2165
|
-
if (entry === null) {
|
|
2166
|
-
return null;
|
|
2167
|
-
}
|
|
2168
|
-
return serializeAws_json1_1LFTag(entry, context);
|
|
2169
|
-
});
|
|
2170
|
-
};
|
|
2171
|
-
const serializeAws_json1_1FilterCondition = (input, context) => {
|
|
2172
|
-
return {
|
|
2173
|
-
...(input.ComparisonOperator !== undefined &&
|
|
2174
|
-
input.ComparisonOperator !== null && { ComparisonOperator: input.ComparisonOperator }),
|
|
2175
|
-
...(input.Field !== undefined && input.Field !== null && { Field: input.Field }),
|
|
2176
|
-
...(input.StringValueList !== undefined &&
|
|
2177
|
-
input.StringValueList !== null && {
|
|
2178
|
-
StringValueList: serializeAws_json1_1StringValueList(input.StringValueList, context),
|
|
2179
|
-
}),
|
|
2180
|
-
};
|
|
2181
|
-
};
|
|
2182
|
-
const serializeAws_json1_1FilterConditionList = (input, context) => {
|
|
2183
|
-
return input
|
|
2184
|
-
.filter((e) => e != null)
|
|
2185
|
-
.map((entry) => {
|
|
2186
|
-
if (entry === null) {
|
|
2187
|
-
return null;
|
|
2188
|
-
}
|
|
2189
|
-
return serializeAws_json1_1FilterCondition(entry, context);
|
|
2190
|
-
});
|
|
2191
|
-
};
|
|
2192
|
-
const serializeAws_json1_1GetDataLakeSettingsRequest = (input, context) => {
|
|
2193
|
-
return {
|
|
2194
|
-
...(input.CatalogId !== undefined && input.CatalogId !== null && { CatalogId: input.CatalogId }),
|
|
2195
|
-
};
|
|
2196
|
-
};
|
|
2197
|
-
const serializeAws_json1_1GetEffectivePermissionsForPathRequest = (input, context) => {
|
|
2198
|
-
return {
|
|
2199
|
-
...(input.CatalogId !== undefined && input.CatalogId !== null && { CatalogId: input.CatalogId }),
|
|
2200
|
-
...(input.MaxResults !== undefined && input.MaxResults !== null && { MaxResults: input.MaxResults }),
|
|
2201
|
-
...(input.NextToken !== undefined && input.NextToken !== null && { NextToken: input.NextToken }),
|
|
2202
|
-
...(input.ResourceArn !== undefined && input.ResourceArn !== null && { ResourceArn: input.ResourceArn }),
|
|
2203
|
-
};
|
|
2204
|
-
};
|
|
2205
|
-
const serializeAws_json1_1GetLFTagRequest = (input, context) => {
|
|
2206
|
-
return {
|
|
2207
|
-
...(input.CatalogId !== undefined && input.CatalogId !== null && { CatalogId: input.CatalogId }),
|
|
2208
|
-
...(input.TagKey !== undefined && input.TagKey !== null && { TagKey: input.TagKey }),
|
|
2209
|
-
};
|
|
2210
|
-
};
|
|
2211
|
-
const serializeAws_json1_1GetResourceLFTagsRequest = (input, context) => {
|
|
2212
|
-
return {
|
|
2213
|
-
...(input.CatalogId !== undefined && input.CatalogId !== null && { CatalogId: input.CatalogId }),
|
|
2214
|
-
...(input.Resource !== undefined &&
|
|
2215
|
-
input.Resource !== null && { Resource: serializeAws_json1_1Resource(input.Resource, context) }),
|
|
2216
|
-
...(input.ShowAssignedLFTags !== undefined &&
|
|
2217
|
-
input.ShowAssignedLFTags !== null && { ShowAssignedLFTags: input.ShowAssignedLFTags }),
|
|
2218
|
-
};
|
|
2219
|
-
};
|
|
2220
|
-
const serializeAws_json1_1GrantPermissionsRequest = (input, context) => {
|
|
2221
|
-
return {
|
|
2222
|
-
...(input.CatalogId !== undefined && input.CatalogId !== null && { CatalogId: input.CatalogId }),
|
|
2223
|
-
...(input.Permissions !== undefined &&
|
|
2224
|
-
input.Permissions !== null && { Permissions: serializeAws_json1_1PermissionList(input.Permissions, context) }),
|
|
2225
|
-
...(input.PermissionsWithGrantOption !== undefined &&
|
|
2226
|
-
input.PermissionsWithGrantOption !== null && {
|
|
2227
|
-
PermissionsWithGrantOption: serializeAws_json1_1PermissionList(input.PermissionsWithGrantOption, context),
|
|
2228
|
-
}),
|
|
2229
|
-
...(input.Principal !== undefined &&
|
|
2230
|
-
input.Principal !== null && { Principal: serializeAws_json1_1DataLakePrincipal(input.Principal, context) }),
|
|
2231
|
-
...(input.Resource !== undefined &&
|
|
2232
|
-
input.Resource !== null && { Resource: serializeAws_json1_1Resource(input.Resource, context) }),
|
|
2233
|
-
};
|
|
2234
|
-
};
|
|
2235
|
-
const serializeAws_json1_1LFTag = (input, context) => {
|
|
2236
|
-
return {
|
|
2237
|
-
...(input.TagKey !== undefined && input.TagKey !== null && { TagKey: input.TagKey }),
|
|
2238
|
-
...(input.TagValues !== undefined &&
|
|
2239
|
-
input.TagValues !== null && { TagValues: serializeAws_json1_1TagValueList(input.TagValues, context) }),
|
|
2240
|
-
};
|
|
2241
|
-
};
|
|
2242
|
-
const serializeAws_json1_1LFTagKeyResource = (input, context) => {
|
|
2243
|
-
return {
|
|
2244
|
-
...(input.CatalogId !== undefined && input.CatalogId !== null && { CatalogId: input.CatalogId }),
|
|
2245
|
-
...(input.TagKey !== undefined && input.TagKey !== null && { TagKey: input.TagKey }),
|
|
2246
|
-
...(input.TagValues !== undefined &&
|
|
2247
|
-
input.TagValues !== null && { TagValues: serializeAws_json1_1TagValueList(input.TagValues, context) }),
|
|
2248
|
-
};
|
|
2249
|
-
};
|
|
2250
|
-
const serializeAws_json1_1LFTagPair = (input, context) => {
|
|
2251
|
-
return {
|
|
2252
|
-
...(input.CatalogId !== undefined && input.CatalogId !== null && { CatalogId: input.CatalogId }),
|
|
2253
|
-
...(input.TagKey !== undefined && input.TagKey !== null && { TagKey: input.TagKey }),
|
|
2254
|
-
...(input.TagValues !== undefined &&
|
|
2255
|
-
input.TagValues !== null && { TagValues: serializeAws_json1_1TagValueList(input.TagValues, context) }),
|
|
2256
|
-
};
|
|
2257
|
-
};
|
|
2258
|
-
const serializeAws_json1_1LFTagPolicyResource = (input, context) => {
|
|
2259
|
-
return {
|
|
2260
|
-
...(input.CatalogId !== undefined && input.CatalogId !== null && { CatalogId: input.CatalogId }),
|
|
2261
|
-
...(input.Expression !== undefined &&
|
|
2262
|
-
input.Expression !== null && { Expression: serializeAws_json1_1Expression(input.Expression, context) }),
|
|
2263
|
-
...(input.ResourceType !== undefined && input.ResourceType !== null && { ResourceType: input.ResourceType }),
|
|
2264
|
-
};
|
|
2265
|
-
};
|
|
2266
|
-
const serializeAws_json1_1LFTagsList = (input, context) => {
|
|
2267
|
-
return input
|
|
2268
|
-
.filter((e) => e != null)
|
|
2269
|
-
.map((entry) => {
|
|
2270
|
-
if (entry === null) {
|
|
2271
|
-
return null;
|
|
2272
|
-
}
|
|
2273
|
-
return serializeAws_json1_1LFTagPair(entry, context);
|
|
2274
|
-
});
|
|
2275
|
-
};
|
|
2276
|
-
const serializeAws_json1_1ListLFTagsRequest = (input, context) => {
|
|
2277
|
-
return {
|
|
2278
|
-
...(input.CatalogId !== undefined && input.CatalogId !== null && { CatalogId: input.CatalogId }),
|
|
2279
|
-
...(input.MaxResults !== undefined && input.MaxResults !== null && { MaxResults: input.MaxResults }),
|
|
2280
|
-
...(input.NextToken !== undefined && input.NextToken !== null && { NextToken: input.NextToken }),
|
|
2281
|
-
...(input.ResourceShareType !== undefined &&
|
|
2282
|
-
input.ResourceShareType !== null && { ResourceShareType: input.ResourceShareType }),
|
|
2283
|
-
};
|
|
2284
|
-
};
|
|
2285
|
-
const serializeAws_json1_1ListPermissionsRequest = (input, context) => {
|
|
2286
|
-
return {
|
|
2287
|
-
...(input.CatalogId !== undefined && input.CatalogId !== null && { CatalogId: input.CatalogId }),
|
|
2288
|
-
...(input.MaxResults !== undefined && input.MaxResults !== null && { MaxResults: input.MaxResults }),
|
|
2289
|
-
...(input.NextToken !== undefined && input.NextToken !== null && { NextToken: input.NextToken }),
|
|
2290
|
-
...(input.Principal !== undefined &&
|
|
2291
|
-
input.Principal !== null && { Principal: serializeAws_json1_1DataLakePrincipal(input.Principal, context) }),
|
|
2292
|
-
...(input.Resource !== undefined &&
|
|
2293
|
-
input.Resource !== null && { Resource: serializeAws_json1_1Resource(input.Resource, context) }),
|
|
2294
|
-
...(input.ResourceType !== undefined && input.ResourceType !== null && { ResourceType: input.ResourceType }),
|
|
2295
|
-
};
|
|
2296
|
-
};
|
|
2297
|
-
const serializeAws_json1_1ListResourcesRequest = (input, context) => {
|
|
2298
|
-
return {
|
|
2299
|
-
...(input.FilterConditionList !== undefined &&
|
|
2300
|
-
input.FilterConditionList !== null && {
|
|
2301
|
-
FilterConditionList: serializeAws_json1_1FilterConditionList(input.FilterConditionList, context),
|
|
2302
|
-
}),
|
|
2303
|
-
...(input.MaxResults !== undefined && input.MaxResults !== null && { MaxResults: input.MaxResults }),
|
|
2304
|
-
...(input.NextToken !== undefined && input.NextToken !== null && { NextToken: input.NextToken }),
|
|
2305
|
-
};
|
|
2306
|
-
};
|
|
2307
|
-
const serializeAws_json1_1PermissionList = (input, context) => {
|
|
2308
|
-
return input
|
|
2309
|
-
.filter((e) => e != null)
|
|
2310
|
-
.map((entry) => {
|
|
2311
|
-
if (entry === null) {
|
|
2312
|
-
return null;
|
|
2313
|
-
}
|
|
2314
|
-
return entry;
|
|
2315
|
-
});
|
|
2316
|
-
};
|
|
2317
|
-
const serializeAws_json1_1PrincipalPermissions = (input, context) => {
|
|
2318
|
-
return {
|
|
2319
|
-
...(input.Permissions !== undefined &&
|
|
2320
|
-
input.Permissions !== null && { Permissions: serializeAws_json1_1PermissionList(input.Permissions, context) }),
|
|
2321
|
-
...(input.Principal !== undefined &&
|
|
2322
|
-
input.Principal !== null && { Principal: serializeAws_json1_1DataLakePrincipal(input.Principal, context) }),
|
|
2323
|
-
};
|
|
2324
|
-
};
|
|
2325
|
-
const serializeAws_json1_1PrincipalPermissionsList = (input, context) => {
|
|
2326
|
-
return input
|
|
2327
|
-
.filter((e) => e != null)
|
|
2328
|
-
.map((entry) => {
|
|
2329
|
-
if (entry === null) {
|
|
2330
|
-
return null;
|
|
2331
|
-
}
|
|
2332
|
-
return serializeAws_json1_1PrincipalPermissions(entry, context);
|
|
2333
|
-
});
|
|
2334
|
-
};
|
|
2335
|
-
const serializeAws_json1_1PutDataLakeSettingsRequest = (input, context) => {
|
|
2336
|
-
return {
|
|
2337
|
-
...(input.CatalogId !== undefined && input.CatalogId !== null && { CatalogId: input.CatalogId }),
|
|
2338
|
-
...(input.DataLakeSettings !== undefined &&
|
|
2339
|
-
input.DataLakeSettings !== null && {
|
|
2340
|
-
DataLakeSettings: serializeAws_json1_1DataLakeSettings(input.DataLakeSettings, context),
|
|
2341
|
-
}),
|
|
2342
|
-
};
|
|
2343
|
-
};
|
|
2344
|
-
const serializeAws_json1_1RegisterResourceRequest = (input, context) => {
|
|
2345
|
-
return {
|
|
2346
|
-
...(input.ResourceArn !== undefined && input.ResourceArn !== null && { ResourceArn: input.ResourceArn }),
|
|
2347
|
-
...(input.RoleArn !== undefined && input.RoleArn !== null && { RoleArn: input.RoleArn }),
|
|
2348
|
-
...(input.UseServiceLinkedRole !== undefined &&
|
|
2349
|
-
input.UseServiceLinkedRole !== null && { UseServiceLinkedRole: input.UseServiceLinkedRole }),
|
|
2350
|
-
};
|
|
2351
|
-
};
|
|
2352
|
-
const serializeAws_json1_1RemoveLFTagsFromResourceRequest = (input, context) => {
|
|
2353
|
-
return {
|
|
2354
|
-
...(input.CatalogId !== undefined && input.CatalogId !== null && { CatalogId: input.CatalogId }),
|
|
2355
|
-
...(input.LFTags !== undefined &&
|
|
2356
|
-
input.LFTags !== null && { LFTags: serializeAws_json1_1LFTagsList(input.LFTags, context) }),
|
|
2357
|
-
...(input.Resource !== undefined &&
|
|
2358
|
-
input.Resource !== null && { Resource: serializeAws_json1_1Resource(input.Resource, context) }),
|
|
2359
|
-
};
|
|
2360
|
-
};
|
|
2361
|
-
const serializeAws_json1_1Resource = (input, context) => {
|
|
2362
|
-
return {
|
|
2363
|
-
...(input.Catalog !== undefined &&
|
|
2364
|
-
input.Catalog !== null && { Catalog: serializeAws_json1_1CatalogResource(input.Catalog, context) }),
|
|
2365
|
-
...(input.DataLocation !== undefined &&
|
|
2366
|
-
input.DataLocation !== null && {
|
|
2367
|
-
DataLocation: serializeAws_json1_1DataLocationResource(input.DataLocation, context),
|
|
2368
|
-
}),
|
|
2369
|
-
...(input.Database !== undefined &&
|
|
2370
|
-
input.Database !== null && { Database: serializeAws_json1_1DatabaseResource(input.Database, context) }),
|
|
2371
|
-
...(input.LFTag !== undefined &&
|
|
2372
|
-
input.LFTag !== null && { LFTag: serializeAws_json1_1LFTagKeyResource(input.LFTag, context) }),
|
|
2373
|
-
...(input.LFTagPolicy !== undefined &&
|
|
2374
|
-
input.LFTagPolicy !== null && {
|
|
2375
|
-
LFTagPolicy: serializeAws_json1_1LFTagPolicyResource(input.LFTagPolicy, context),
|
|
2376
|
-
}),
|
|
2377
|
-
...(input.Table !== undefined &&
|
|
2378
|
-
input.Table !== null && { Table: serializeAws_json1_1TableResource(input.Table, context) }),
|
|
2379
|
-
...(input.TableWithColumns !== undefined &&
|
|
2380
|
-
input.TableWithColumns !== null && {
|
|
2381
|
-
TableWithColumns: serializeAws_json1_1TableWithColumnsResource(input.TableWithColumns, context),
|
|
2382
|
-
}),
|
|
2383
|
-
};
|
|
2384
|
-
};
|
|
2385
|
-
const serializeAws_json1_1RevokePermissionsRequest = (input, context) => {
|
|
2386
|
-
return {
|
|
2387
|
-
...(input.CatalogId !== undefined && input.CatalogId !== null && { CatalogId: input.CatalogId }),
|
|
2388
|
-
...(input.Permissions !== undefined &&
|
|
2389
|
-
input.Permissions !== null && { Permissions: serializeAws_json1_1PermissionList(input.Permissions, context) }),
|
|
2390
|
-
...(input.PermissionsWithGrantOption !== undefined &&
|
|
2391
|
-
input.PermissionsWithGrantOption !== null && {
|
|
2392
|
-
PermissionsWithGrantOption: serializeAws_json1_1PermissionList(input.PermissionsWithGrantOption, context),
|
|
2393
|
-
}),
|
|
2394
|
-
...(input.Principal !== undefined &&
|
|
2395
|
-
input.Principal !== null && { Principal: serializeAws_json1_1DataLakePrincipal(input.Principal, context) }),
|
|
2396
|
-
...(input.Resource !== undefined &&
|
|
2397
|
-
input.Resource !== null && { Resource: serializeAws_json1_1Resource(input.Resource, context) }),
|
|
2398
|
-
};
|
|
2399
|
-
};
|
|
2400
|
-
const serializeAws_json1_1SearchDatabasesByLFTagsRequest = (input, context) => {
|
|
2401
|
-
return {
|
|
2402
|
-
...(input.CatalogId !== undefined && input.CatalogId !== null && { CatalogId: input.CatalogId }),
|
|
2403
|
-
...(input.Expression !== undefined &&
|
|
2404
|
-
input.Expression !== null && { Expression: serializeAws_json1_1Expression(input.Expression, context) }),
|
|
2405
|
-
...(input.MaxResults !== undefined && input.MaxResults !== null && { MaxResults: input.MaxResults }),
|
|
2406
|
-
...(input.NextToken !== undefined && input.NextToken !== null && { NextToken: input.NextToken }),
|
|
2407
|
-
};
|
|
2408
|
-
};
|
|
2409
|
-
const serializeAws_json1_1SearchTablesByLFTagsRequest = (input, context) => {
|
|
2410
|
-
return {
|
|
2411
|
-
...(input.CatalogId !== undefined && input.CatalogId !== null && { CatalogId: input.CatalogId }),
|
|
2412
|
-
...(input.Expression !== undefined &&
|
|
2413
|
-
input.Expression !== null && { Expression: serializeAws_json1_1Expression(input.Expression, context) }),
|
|
2414
|
-
...(input.MaxResults !== undefined && input.MaxResults !== null && { MaxResults: input.MaxResults }),
|
|
2415
|
-
...(input.NextToken !== undefined && input.NextToken !== null && { NextToken: input.NextToken }),
|
|
2416
|
-
};
|
|
2417
|
-
};
|
|
2418
|
-
const serializeAws_json1_1StringValueList = (input, context) => {
|
|
2419
|
-
return input
|
|
2420
|
-
.filter((e) => e != null)
|
|
2421
|
-
.map((entry) => {
|
|
2422
|
-
if (entry === null) {
|
|
2423
|
-
return null;
|
|
2424
|
-
}
|
|
2425
|
-
return entry;
|
|
2426
|
-
});
|
|
2427
|
-
};
|
|
2428
|
-
const serializeAws_json1_1TableResource = (input, context) => {
|
|
2429
|
-
return {
|
|
2430
|
-
...(input.CatalogId !== undefined && input.CatalogId !== null && { CatalogId: input.CatalogId }),
|
|
2431
|
-
...(input.DatabaseName !== undefined && input.DatabaseName !== null && { DatabaseName: input.DatabaseName }),
|
|
2432
|
-
...(input.Name !== undefined && input.Name !== null && { Name: input.Name }),
|
|
2433
|
-
...(input.TableWildcard !== undefined &&
|
|
2434
|
-
input.TableWildcard !== null && {
|
|
2435
|
-
TableWildcard: serializeAws_json1_1TableWildcard(input.TableWildcard, context),
|
|
2436
|
-
}),
|
|
2437
|
-
};
|
|
2438
|
-
};
|
|
2439
|
-
const serializeAws_json1_1TableWildcard = (input, context) => {
|
|
2440
|
-
return {};
|
|
2441
|
-
};
|
|
2442
|
-
const serializeAws_json1_1TableWithColumnsResource = (input, context) => {
|
|
2443
|
-
return {
|
|
2444
|
-
...(input.CatalogId !== undefined && input.CatalogId !== null && { CatalogId: input.CatalogId }),
|
|
2445
|
-
...(input.ColumnNames !== undefined &&
|
|
2446
|
-
input.ColumnNames !== null && { ColumnNames: serializeAws_json1_1ColumnNames(input.ColumnNames, context) }),
|
|
2447
|
-
...(input.ColumnWildcard !== undefined &&
|
|
2448
|
-
input.ColumnWildcard !== null && {
|
|
2449
|
-
ColumnWildcard: serializeAws_json1_1ColumnWildcard(input.ColumnWildcard, context),
|
|
2450
|
-
}),
|
|
2451
|
-
...(input.DatabaseName !== undefined && input.DatabaseName !== null && { DatabaseName: input.DatabaseName }),
|
|
2452
|
-
...(input.Name !== undefined && input.Name !== null && { Name: input.Name }),
|
|
2453
|
-
};
|
|
2454
|
-
};
|
|
2455
|
-
const serializeAws_json1_1TagValueList = (input, context) => {
|
|
2456
|
-
return input
|
|
2457
|
-
.filter((e) => e != null)
|
|
2458
|
-
.map((entry) => {
|
|
2459
|
-
if (entry === null) {
|
|
2460
|
-
return null;
|
|
2461
|
-
}
|
|
2462
|
-
return entry;
|
|
2463
|
-
});
|
|
2464
|
-
};
|
|
2465
|
-
const serializeAws_json1_1TrustedResourceOwners = (input, context) => {
|
|
2466
|
-
return input
|
|
2467
|
-
.filter((e) => e != null)
|
|
2468
|
-
.map((entry) => {
|
|
2469
|
-
if (entry === null) {
|
|
2470
|
-
return null;
|
|
2471
|
-
}
|
|
2472
|
-
return entry;
|
|
2473
|
-
});
|
|
2474
|
-
};
|
|
2475
|
-
const serializeAws_json1_1UpdateLFTagRequest = (input, context) => {
|
|
2476
|
-
return {
|
|
2477
|
-
...(input.CatalogId !== undefined && input.CatalogId !== null && { CatalogId: input.CatalogId }),
|
|
2478
|
-
...(input.TagKey !== undefined && input.TagKey !== null && { TagKey: input.TagKey }),
|
|
2479
|
-
...(input.TagValuesToAdd !== undefined &&
|
|
2480
|
-
input.TagValuesToAdd !== null && {
|
|
2481
|
-
TagValuesToAdd: serializeAws_json1_1TagValueList(input.TagValuesToAdd, context),
|
|
2482
|
-
}),
|
|
2483
|
-
...(input.TagValuesToDelete !== undefined &&
|
|
2484
|
-
input.TagValuesToDelete !== null && {
|
|
2485
|
-
TagValuesToDelete: serializeAws_json1_1TagValueList(input.TagValuesToDelete, context),
|
|
2486
|
-
}),
|
|
2487
|
-
};
|
|
2488
|
-
};
|
|
2489
|
-
const serializeAws_json1_1UpdateResourceRequest = (input, context) => {
|
|
2490
|
-
return {
|
|
2491
|
-
...(input.ResourceArn !== undefined && input.ResourceArn !== null && { ResourceArn: input.ResourceArn }),
|
|
2492
|
-
...(input.RoleArn !== undefined && input.RoleArn !== null && { RoleArn: input.RoleArn }),
|
|
2493
|
-
};
|
|
2494
|
-
};
|
|
2495
|
-
const deserializeAws_json1_1AccessDeniedException = (output, context) => {
|
|
2496
|
-
return {
|
|
2497
|
-
Message: smithy_client_1.expectString(output.Message),
|
|
2498
|
-
};
|
|
2499
|
-
};
|
|
2500
|
-
const deserializeAws_json1_1AddLFTagsToResourceResponse = (output, context) => {
|
|
2501
|
-
return {
|
|
2502
|
-
Failures: output.Failures !== undefined && output.Failures !== null
|
|
2503
|
-
? deserializeAws_json1_1LFTagErrors(output.Failures, context)
|
|
2504
|
-
: undefined,
|
|
2505
|
-
};
|
|
2506
|
-
};
|
|
2507
|
-
const deserializeAws_json1_1AlreadyExistsException = (output, context) => {
|
|
2508
|
-
return {
|
|
2509
|
-
Message: smithy_client_1.expectString(output.Message),
|
|
2510
|
-
};
|
|
2511
|
-
};
|
|
2512
|
-
const deserializeAws_json1_1BatchGrantPermissionsResponse = (output, context) => {
|
|
2513
|
-
return {
|
|
2514
|
-
Failures: output.Failures !== undefined && output.Failures !== null
|
|
2515
|
-
? deserializeAws_json1_1BatchPermissionsFailureList(output.Failures, context)
|
|
2516
|
-
: undefined,
|
|
2517
|
-
};
|
|
2518
|
-
};
|
|
2519
|
-
const deserializeAws_json1_1BatchPermissionsFailureEntry = (output, context) => {
|
|
2520
|
-
return {
|
|
2521
|
-
Error: output.Error !== undefined && output.Error !== null
|
|
2522
|
-
? deserializeAws_json1_1ErrorDetail(output.Error, context)
|
|
2523
|
-
: undefined,
|
|
2524
|
-
RequestEntry: output.RequestEntry !== undefined && output.RequestEntry !== null
|
|
2525
|
-
? deserializeAws_json1_1BatchPermissionsRequestEntry(output.RequestEntry, context)
|
|
2526
|
-
: undefined,
|
|
2527
|
-
};
|
|
2528
|
-
};
|
|
2529
|
-
const deserializeAws_json1_1BatchPermissionsFailureList = (output, context) => {
|
|
2530
|
-
return (output || [])
|
|
2531
|
-
.filter((e) => e != null)
|
|
2532
|
-
.map((entry) => {
|
|
2533
|
-
if (entry === null) {
|
|
2534
|
-
return null;
|
|
2535
|
-
}
|
|
2536
|
-
return deserializeAws_json1_1BatchPermissionsFailureEntry(entry, context);
|
|
2537
|
-
});
|
|
2538
|
-
};
|
|
2539
|
-
const deserializeAws_json1_1BatchPermissionsRequestEntry = (output, context) => {
|
|
2540
|
-
return {
|
|
2541
|
-
Id: smithy_client_1.expectString(output.Id),
|
|
2542
|
-
Permissions: output.Permissions !== undefined && output.Permissions !== null
|
|
2543
|
-
? deserializeAws_json1_1PermissionList(output.Permissions, context)
|
|
2544
|
-
: undefined,
|
|
2545
|
-
PermissionsWithGrantOption: output.PermissionsWithGrantOption !== undefined && output.PermissionsWithGrantOption !== null
|
|
2546
|
-
? deserializeAws_json1_1PermissionList(output.PermissionsWithGrantOption, context)
|
|
2547
|
-
: undefined,
|
|
2548
|
-
Principal: output.Principal !== undefined && output.Principal !== null
|
|
2549
|
-
? deserializeAws_json1_1DataLakePrincipal(output.Principal, context)
|
|
2550
|
-
: undefined,
|
|
2551
|
-
Resource: output.Resource !== undefined && output.Resource !== null
|
|
2552
|
-
? deserializeAws_json1_1Resource(output.Resource, context)
|
|
2553
|
-
: undefined,
|
|
2554
|
-
};
|
|
2555
|
-
};
|
|
2556
|
-
const deserializeAws_json1_1BatchRevokePermissionsResponse = (output, context) => {
|
|
2557
|
-
return {
|
|
2558
|
-
Failures: output.Failures !== undefined && output.Failures !== null
|
|
2559
|
-
? deserializeAws_json1_1BatchPermissionsFailureList(output.Failures, context)
|
|
2560
|
-
: undefined,
|
|
2561
|
-
};
|
|
2562
|
-
};
|
|
2563
|
-
const deserializeAws_json1_1CatalogResource = (output, context) => {
|
|
2564
|
-
return {};
|
|
2565
|
-
};
|
|
2566
|
-
const deserializeAws_json1_1ColumnLFTag = (output, context) => {
|
|
2567
|
-
return {
|
|
2568
|
-
LFTags: output.LFTags !== undefined && output.LFTags !== null
|
|
2569
|
-
? deserializeAws_json1_1LFTagsList(output.LFTags, context)
|
|
2570
|
-
: undefined,
|
|
2571
|
-
Name: smithy_client_1.expectString(output.Name),
|
|
2572
|
-
};
|
|
2573
|
-
};
|
|
2574
|
-
const deserializeAws_json1_1ColumnLFTagsList = (output, context) => {
|
|
2575
|
-
return (output || [])
|
|
2576
|
-
.filter((e) => e != null)
|
|
2577
|
-
.map((entry) => {
|
|
2578
|
-
if (entry === null) {
|
|
2579
|
-
return null;
|
|
2580
|
-
}
|
|
2581
|
-
return deserializeAws_json1_1ColumnLFTag(entry, context);
|
|
2582
|
-
});
|
|
2583
|
-
};
|
|
2584
|
-
const deserializeAws_json1_1ColumnNames = (output, context) => {
|
|
2585
|
-
return (output || [])
|
|
2586
|
-
.filter((e) => e != null)
|
|
2587
|
-
.map((entry) => {
|
|
2588
|
-
if (entry === null) {
|
|
2589
|
-
return null;
|
|
2590
|
-
}
|
|
2591
|
-
return smithy_client_1.expectString(entry);
|
|
2592
|
-
});
|
|
2593
|
-
};
|
|
2594
|
-
const deserializeAws_json1_1ColumnWildcard = (output, context) => {
|
|
2595
|
-
return {
|
|
2596
|
-
ExcludedColumnNames: output.ExcludedColumnNames !== undefined && output.ExcludedColumnNames !== null
|
|
2597
|
-
? deserializeAws_json1_1ColumnNames(output.ExcludedColumnNames, context)
|
|
2598
|
-
: undefined,
|
|
2599
|
-
};
|
|
2600
|
-
};
|
|
2601
|
-
const deserializeAws_json1_1ConcurrentModificationException = (output, context) => {
|
|
2602
|
-
return {
|
|
2603
|
-
Message: smithy_client_1.expectString(output.Message),
|
|
2604
|
-
};
|
|
2605
|
-
};
|
|
2606
|
-
const deserializeAws_json1_1CreateLFTagResponse = (output, context) => {
|
|
2607
|
-
return {};
|
|
2608
|
-
};
|
|
2609
|
-
const deserializeAws_json1_1DatabaseLFTagsList = (output, context) => {
|
|
2610
|
-
return (output || [])
|
|
2611
|
-
.filter((e) => e != null)
|
|
2612
|
-
.map((entry) => {
|
|
2613
|
-
if (entry === null) {
|
|
2614
|
-
return null;
|
|
2615
|
-
}
|
|
2616
|
-
return deserializeAws_json1_1TaggedDatabase(entry, context);
|
|
2617
|
-
});
|
|
2618
|
-
};
|
|
2619
|
-
const deserializeAws_json1_1DatabaseResource = (output, context) => {
|
|
2620
|
-
return {
|
|
2621
|
-
CatalogId: smithy_client_1.expectString(output.CatalogId),
|
|
2622
|
-
Name: smithy_client_1.expectString(output.Name),
|
|
2623
|
-
};
|
|
2624
|
-
};
|
|
2625
|
-
const deserializeAws_json1_1DataLakePrincipal = (output, context) => {
|
|
2626
|
-
return {
|
|
2627
|
-
DataLakePrincipalIdentifier: smithy_client_1.expectString(output.DataLakePrincipalIdentifier),
|
|
2628
|
-
};
|
|
2629
|
-
};
|
|
2630
|
-
const deserializeAws_json1_1DataLakePrincipalList = (output, context) => {
|
|
2631
|
-
return (output || [])
|
|
2632
|
-
.filter((e) => e != null)
|
|
2633
|
-
.map((entry) => {
|
|
2634
|
-
if (entry === null) {
|
|
2635
|
-
return null;
|
|
2636
|
-
}
|
|
2637
|
-
return deserializeAws_json1_1DataLakePrincipal(entry, context);
|
|
2638
|
-
});
|
|
2639
|
-
};
|
|
2640
|
-
const deserializeAws_json1_1DataLakeSettings = (output, context) => {
|
|
2641
|
-
return {
|
|
2642
|
-
CreateDatabaseDefaultPermissions: output.CreateDatabaseDefaultPermissions !== undefined && output.CreateDatabaseDefaultPermissions !== null
|
|
2643
|
-
? deserializeAws_json1_1PrincipalPermissionsList(output.CreateDatabaseDefaultPermissions, context)
|
|
2644
|
-
: undefined,
|
|
2645
|
-
CreateTableDefaultPermissions: output.CreateTableDefaultPermissions !== undefined && output.CreateTableDefaultPermissions !== null
|
|
2646
|
-
? deserializeAws_json1_1PrincipalPermissionsList(output.CreateTableDefaultPermissions, context)
|
|
2647
|
-
: undefined,
|
|
2648
|
-
DataLakeAdmins: output.DataLakeAdmins !== undefined && output.DataLakeAdmins !== null
|
|
2649
|
-
? deserializeAws_json1_1DataLakePrincipalList(output.DataLakeAdmins, context)
|
|
2650
|
-
: undefined,
|
|
2651
|
-
TrustedResourceOwners: output.TrustedResourceOwners !== undefined && output.TrustedResourceOwners !== null
|
|
2652
|
-
? deserializeAws_json1_1TrustedResourceOwners(output.TrustedResourceOwners, context)
|
|
2653
|
-
: undefined,
|
|
2654
|
-
};
|
|
2655
|
-
};
|
|
2656
|
-
const deserializeAws_json1_1DataLocationResource = (output, context) => {
|
|
2657
|
-
return {
|
|
2658
|
-
CatalogId: smithy_client_1.expectString(output.CatalogId),
|
|
2659
|
-
ResourceArn: smithy_client_1.expectString(output.ResourceArn),
|
|
2660
|
-
};
|
|
2661
|
-
};
|
|
2662
|
-
const deserializeAws_json1_1DeleteLFTagResponse = (output, context) => {
|
|
2663
|
-
return {};
|
|
2664
|
-
};
|
|
2665
|
-
const deserializeAws_json1_1DeregisterResourceResponse = (output, context) => {
|
|
2666
|
-
return {};
|
|
2667
|
-
};
|
|
2668
|
-
const deserializeAws_json1_1DescribeResourceResponse = (output, context) => {
|
|
2669
|
-
return {
|
|
2670
|
-
ResourceInfo: output.ResourceInfo !== undefined && output.ResourceInfo !== null
|
|
2671
|
-
? deserializeAws_json1_1ResourceInfo(output.ResourceInfo, context)
|
|
2672
|
-
: undefined,
|
|
2673
|
-
};
|
|
2674
|
-
};
|
|
2675
|
-
const deserializeAws_json1_1DetailsMap = (output, context) => {
|
|
2676
|
-
return {
|
|
2677
|
-
ResourceShare: output.ResourceShare !== undefined && output.ResourceShare !== null
|
|
2678
|
-
? deserializeAws_json1_1ResourceShareList(output.ResourceShare, context)
|
|
2679
|
-
: undefined,
|
|
2680
|
-
};
|
|
2681
|
-
};
|
|
2682
|
-
const deserializeAws_json1_1EntityNotFoundException = (output, context) => {
|
|
2683
|
-
return {
|
|
2684
|
-
Message: smithy_client_1.expectString(output.Message),
|
|
2685
|
-
};
|
|
2686
|
-
};
|
|
2687
|
-
const deserializeAws_json1_1ErrorDetail = (output, context) => {
|
|
2688
|
-
return {
|
|
2689
|
-
ErrorCode: smithy_client_1.expectString(output.ErrorCode),
|
|
2690
|
-
ErrorMessage: smithy_client_1.expectString(output.ErrorMessage),
|
|
2691
|
-
};
|
|
2692
|
-
};
|
|
2693
|
-
const deserializeAws_json1_1Expression = (output, context) => {
|
|
2694
|
-
return (output || [])
|
|
2695
|
-
.filter((e) => e != null)
|
|
2696
|
-
.map((entry) => {
|
|
2697
|
-
if (entry === null) {
|
|
2698
|
-
return null;
|
|
2699
|
-
}
|
|
2700
|
-
return deserializeAws_json1_1LFTag(entry, context);
|
|
2701
|
-
});
|
|
2702
|
-
};
|
|
2703
|
-
const deserializeAws_json1_1GetDataLakeSettingsResponse = (output, context) => {
|
|
2704
|
-
return {
|
|
2705
|
-
DataLakeSettings: output.DataLakeSettings !== undefined && output.DataLakeSettings !== null
|
|
2706
|
-
? deserializeAws_json1_1DataLakeSettings(output.DataLakeSettings, context)
|
|
2707
|
-
: undefined,
|
|
2708
|
-
};
|
|
2709
|
-
};
|
|
2710
|
-
const deserializeAws_json1_1GetEffectivePermissionsForPathResponse = (output, context) => {
|
|
2711
|
-
return {
|
|
2712
|
-
NextToken: smithy_client_1.expectString(output.NextToken),
|
|
2713
|
-
Permissions: output.Permissions !== undefined && output.Permissions !== null
|
|
2714
|
-
? deserializeAws_json1_1PrincipalResourcePermissionsList(output.Permissions, context)
|
|
2715
|
-
: undefined,
|
|
2716
|
-
};
|
|
2717
|
-
};
|
|
2718
|
-
const deserializeAws_json1_1GetLFTagResponse = (output, context) => {
|
|
2719
|
-
return {
|
|
2720
|
-
CatalogId: smithy_client_1.expectString(output.CatalogId),
|
|
2721
|
-
TagKey: smithy_client_1.expectString(output.TagKey),
|
|
2722
|
-
TagValues: output.TagValues !== undefined && output.TagValues !== null
|
|
2723
|
-
? deserializeAws_json1_1TagValueList(output.TagValues, context)
|
|
2724
|
-
: undefined,
|
|
2725
|
-
};
|
|
2726
|
-
};
|
|
2727
|
-
const deserializeAws_json1_1GetResourceLFTagsResponse = (output, context) => {
|
|
2728
|
-
return {
|
|
2729
|
-
LFTagOnDatabase: output.LFTagOnDatabase !== undefined && output.LFTagOnDatabase !== null
|
|
2730
|
-
? deserializeAws_json1_1LFTagsList(output.LFTagOnDatabase, context)
|
|
2731
|
-
: undefined,
|
|
2732
|
-
LFTagsOnColumns: output.LFTagsOnColumns !== undefined && output.LFTagsOnColumns !== null
|
|
2733
|
-
? deserializeAws_json1_1ColumnLFTagsList(output.LFTagsOnColumns, context)
|
|
2734
|
-
: undefined,
|
|
2735
|
-
LFTagsOnTable: output.LFTagsOnTable !== undefined && output.LFTagsOnTable !== null
|
|
2736
|
-
? deserializeAws_json1_1LFTagsList(output.LFTagsOnTable, context)
|
|
2737
|
-
: undefined,
|
|
2738
|
-
};
|
|
2739
|
-
};
|
|
2740
|
-
const deserializeAws_json1_1GlueEncryptionException = (output, context) => {
|
|
2741
|
-
return {
|
|
2742
|
-
Message: smithy_client_1.expectString(output.Message),
|
|
2743
|
-
};
|
|
2744
|
-
};
|
|
2745
|
-
const deserializeAws_json1_1GrantPermissionsResponse = (output, context) => {
|
|
2746
|
-
return {};
|
|
2747
|
-
};
|
|
2748
|
-
const deserializeAws_json1_1InternalServiceException = (output, context) => {
|
|
2749
|
-
return {
|
|
2750
|
-
Message: smithy_client_1.expectString(output.Message),
|
|
2751
|
-
};
|
|
2752
|
-
};
|
|
2753
|
-
const deserializeAws_json1_1InvalidInputException = (output, context) => {
|
|
2754
|
-
return {
|
|
2755
|
-
Message: smithy_client_1.expectString(output.Message),
|
|
2756
|
-
};
|
|
2757
|
-
};
|
|
2758
|
-
const deserializeAws_json1_1LFTag = (output, context) => {
|
|
2759
|
-
return {
|
|
2760
|
-
TagKey: smithy_client_1.expectString(output.TagKey),
|
|
2761
|
-
TagValues: output.TagValues !== undefined && output.TagValues !== null
|
|
2762
|
-
? deserializeAws_json1_1TagValueList(output.TagValues, context)
|
|
2763
|
-
: undefined,
|
|
2764
|
-
};
|
|
2765
|
-
};
|
|
2766
|
-
const deserializeAws_json1_1LFTagError = (output, context) => {
|
|
2767
|
-
return {
|
|
2768
|
-
Error: output.Error !== undefined && output.Error !== null
|
|
2769
|
-
? deserializeAws_json1_1ErrorDetail(output.Error, context)
|
|
2770
|
-
: undefined,
|
|
2771
|
-
LFTag: output.LFTag !== undefined && output.LFTag !== null
|
|
2772
|
-
? deserializeAws_json1_1LFTagPair(output.LFTag, context)
|
|
2773
|
-
: undefined,
|
|
2774
|
-
};
|
|
2775
|
-
};
|
|
2776
|
-
const deserializeAws_json1_1LFTagErrors = (output, context) => {
|
|
2777
|
-
return (output || [])
|
|
2778
|
-
.filter((e) => e != null)
|
|
2779
|
-
.map((entry) => {
|
|
2780
|
-
if (entry === null) {
|
|
2781
|
-
return null;
|
|
2782
|
-
}
|
|
2783
|
-
return deserializeAws_json1_1LFTagError(entry, context);
|
|
2784
|
-
});
|
|
2785
|
-
};
|
|
2786
|
-
const deserializeAws_json1_1LFTagKeyResource = (output, context) => {
|
|
2787
|
-
return {
|
|
2788
|
-
CatalogId: smithy_client_1.expectString(output.CatalogId),
|
|
2789
|
-
TagKey: smithy_client_1.expectString(output.TagKey),
|
|
2790
|
-
TagValues: output.TagValues !== undefined && output.TagValues !== null
|
|
2791
|
-
? deserializeAws_json1_1TagValueList(output.TagValues, context)
|
|
2792
|
-
: undefined,
|
|
2793
|
-
};
|
|
2794
|
-
};
|
|
2795
|
-
const deserializeAws_json1_1LFTagPair = (output, context) => {
|
|
2796
|
-
return {
|
|
2797
|
-
CatalogId: smithy_client_1.expectString(output.CatalogId),
|
|
2798
|
-
TagKey: smithy_client_1.expectString(output.TagKey),
|
|
2799
|
-
TagValues: output.TagValues !== undefined && output.TagValues !== null
|
|
2800
|
-
? deserializeAws_json1_1TagValueList(output.TagValues, context)
|
|
2801
|
-
: undefined,
|
|
2802
|
-
};
|
|
2803
|
-
};
|
|
2804
|
-
const deserializeAws_json1_1LFTagPolicyResource = (output, context) => {
|
|
2805
|
-
return {
|
|
2806
|
-
CatalogId: smithy_client_1.expectString(output.CatalogId),
|
|
2807
|
-
Expression: output.Expression !== undefined && output.Expression !== null
|
|
2808
|
-
? deserializeAws_json1_1Expression(output.Expression, context)
|
|
2809
|
-
: undefined,
|
|
2810
|
-
ResourceType: smithy_client_1.expectString(output.ResourceType),
|
|
2811
|
-
};
|
|
2812
|
-
};
|
|
2813
|
-
const deserializeAws_json1_1LFTagsList = (output, context) => {
|
|
2814
|
-
return (output || [])
|
|
2815
|
-
.filter((e) => e != null)
|
|
2816
|
-
.map((entry) => {
|
|
2817
|
-
if (entry === null) {
|
|
2818
|
-
return null;
|
|
2819
|
-
}
|
|
2820
|
-
return deserializeAws_json1_1LFTagPair(entry, context);
|
|
2821
|
-
});
|
|
2822
|
-
};
|
|
2823
|
-
const deserializeAws_json1_1ListLFTagsResponse = (output, context) => {
|
|
2824
|
-
return {
|
|
2825
|
-
LFTags: output.LFTags !== undefined && output.LFTags !== null
|
|
2826
|
-
? deserializeAws_json1_1LFTagsList(output.LFTags, context)
|
|
2827
|
-
: undefined,
|
|
2828
|
-
NextToken: smithy_client_1.expectString(output.NextToken),
|
|
2829
|
-
};
|
|
2830
|
-
};
|
|
2831
|
-
const deserializeAws_json1_1ListPermissionsResponse = (output, context) => {
|
|
2832
|
-
return {
|
|
2833
|
-
NextToken: smithy_client_1.expectString(output.NextToken),
|
|
2834
|
-
PrincipalResourcePermissions: output.PrincipalResourcePermissions !== undefined && output.PrincipalResourcePermissions !== null
|
|
2835
|
-
? deserializeAws_json1_1PrincipalResourcePermissionsList(output.PrincipalResourcePermissions, context)
|
|
2836
|
-
: undefined,
|
|
2837
|
-
};
|
|
2838
|
-
};
|
|
2839
|
-
const deserializeAws_json1_1ListResourcesResponse = (output, context) => {
|
|
2840
|
-
return {
|
|
2841
|
-
NextToken: smithy_client_1.expectString(output.NextToken),
|
|
2842
|
-
ResourceInfoList: output.ResourceInfoList !== undefined && output.ResourceInfoList !== null
|
|
2843
|
-
? deserializeAws_json1_1ResourceInfoList(output.ResourceInfoList, context)
|
|
2844
|
-
: undefined,
|
|
2845
|
-
};
|
|
2846
|
-
};
|
|
2847
|
-
const deserializeAws_json1_1OperationTimeoutException = (output, context) => {
|
|
2848
|
-
return {
|
|
2849
|
-
Message: smithy_client_1.expectString(output.Message),
|
|
2850
|
-
};
|
|
2851
|
-
};
|
|
2852
|
-
const deserializeAws_json1_1PermissionList = (output, context) => {
|
|
2853
|
-
return (output || [])
|
|
2854
|
-
.filter((e) => e != null)
|
|
2855
|
-
.map((entry) => {
|
|
2856
|
-
if (entry === null) {
|
|
2857
|
-
return null;
|
|
2858
|
-
}
|
|
2859
|
-
return smithy_client_1.expectString(entry);
|
|
2860
|
-
});
|
|
2861
|
-
};
|
|
2862
|
-
const deserializeAws_json1_1PrincipalPermissions = (output, context) => {
|
|
2863
|
-
return {
|
|
2864
|
-
Permissions: output.Permissions !== undefined && output.Permissions !== null
|
|
2865
|
-
? deserializeAws_json1_1PermissionList(output.Permissions, context)
|
|
2866
|
-
: undefined,
|
|
2867
|
-
Principal: output.Principal !== undefined && output.Principal !== null
|
|
2868
|
-
? deserializeAws_json1_1DataLakePrincipal(output.Principal, context)
|
|
2869
|
-
: undefined,
|
|
2870
|
-
};
|
|
2871
|
-
};
|
|
2872
|
-
const deserializeAws_json1_1PrincipalPermissionsList = (output, context) => {
|
|
2873
|
-
return (output || [])
|
|
2874
|
-
.filter((e) => e != null)
|
|
2875
|
-
.map((entry) => {
|
|
2876
|
-
if (entry === null) {
|
|
2877
|
-
return null;
|
|
2878
|
-
}
|
|
2879
|
-
return deserializeAws_json1_1PrincipalPermissions(entry, context);
|
|
2880
|
-
});
|
|
2881
|
-
};
|
|
2882
|
-
const deserializeAws_json1_1PrincipalResourcePermissions = (output, context) => {
|
|
2883
|
-
return {
|
|
2884
|
-
AdditionalDetails: output.AdditionalDetails !== undefined && output.AdditionalDetails !== null
|
|
2885
|
-
? deserializeAws_json1_1DetailsMap(output.AdditionalDetails, context)
|
|
2886
|
-
: undefined,
|
|
2887
|
-
Permissions: output.Permissions !== undefined && output.Permissions !== null
|
|
2888
|
-
? deserializeAws_json1_1PermissionList(output.Permissions, context)
|
|
2889
|
-
: undefined,
|
|
2890
|
-
PermissionsWithGrantOption: output.PermissionsWithGrantOption !== undefined && output.PermissionsWithGrantOption !== null
|
|
2891
|
-
? deserializeAws_json1_1PermissionList(output.PermissionsWithGrantOption, context)
|
|
2892
|
-
: undefined,
|
|
2893
|
-
Principal: output.Principal !== undefined && output.Principal !== null
|
|
2894
|
-
? deserializeAws_json1_1DataLakePrincipal(output.Principal, context)
|
|
2895
|
-
: undefined,
|
|
2896
|
-
Resource: output.Resource !== undefined && output.Resource !== null
|
|
2897
|
-
? deserializeAws_json1_1Resource(output.Resource, context)
|
|
2898
|
-
: undefined,
|
|
2899
|
-
};
|
|
2900
|
-
};
|
|
2901
|
-
const deserializeAws_json1_1PrincipalResourcePermissionsList = (output, context) => {
|
|
2902
|
-
return (output || [])
|
|
2903
|
-
.filter((e) => e != null)
|
|
2904
|
-
.map((entry) => {
|
|
2905
|
-
if (entry === null) {
|
|
2906
|
-
return null;
|
|
2907
|
-
}
|
|
2908
|
-
return deserializeAws_json1_1PrincipalResourcePermissions(entry, context);
|
|
2909
|
-
});
|
|
2910
|
-
};
|
|
2911
|
-
const deserializeAws_json1_1PutDataLakeSettingsResponse = (output, context) => {
|
|
2912
|
-
return {};
|
|
2913
|
-
};
|
|
2914
|
-
const deserializeAws_json1_1RegisterResourceResponse = (output, context) => {
|
|
2915
|
-
return {};
|
|
2916
|
-
};
|
|
2917
|
-
const deserializeAws_json1_1RemoveLFTagsFromResourceResponse = (output, context) => {
|
|
2918
|
-
return {
|
|
2919
|
-
Failures: output.Failures !== undefined && output.Failures !== null
|
|
2920
|
-
? deserializeAws_json1_1LFTagErrors(output.Failures, context)
|
|
2921
|
-
: undefined,
|
|
2922
|
-
};
|
|
2923
|
-
};
|
|
2924
|
-
const deserializeAws_json1_1Resource = (output, context) => {
|
|
2925
|
-
return {
|
|
2926
|
-
Catalog: output.Catalog !== undefined && output.Catalog !== null
|
|
2927
|
-
? deserializeAws_json1_1CatalogResource(output.Catalog, context)
|
|
2928
|
-
: undefined,
|
|
2929
|
-
DataLocation: output.DataLocation !== undefined && output.DataLocation !== null
|
|
2930
|
-
? deserializeAws_json1_1DataLocationResource(output.DataLocation, context)
|
|
2931
|
-
: undefined,
|
|
2932
|
-
Database: output.Database !== undefined && output.Database !== null
|
|
2933
|
-
? deserializeAws_json1_1DatabaseResource(output.Database, context)
|
|
2934
|
-
: undefined,
|
|
2935
|
-
LFTag: output.LFTag !== undefined && output.LFTag !== null
|
|
2936
|
-
? deserializeAws_json1_1LFTagKeyResource(output.LFTag, context)
|
|
2937
|
-
: undefined,
|
|
2938
|
-
LFTagPolicy: output.LFTagPolicy !== undefined && output.LFTagPolicy !== null
|
|
2939
|
-
? deserializeAws_json1_1LFTagPolicyResource(output.LFTagPolicy, context)
|
|
2940
|
-
: undefined,
|
|
2941
|
-
Table: output.Table !== undefined && output.Table !== null
|
|
2942
|
-
? deserializeAws_json1_1TableResource(output.Table, context)
|
|
2943
|
-
: undefined,
|
|
2944
|
-
TableWithColumns: output.TableWithColumns !== undefined && output.TableWithColumns !== null
|
|
2945
|
-
? deserializeAws_json1_1TableWithColumnsResource(output.TableWithColumns, context)
|
|
2946
|
-
: undefined,
|
|
2947
|
-
};
|
|
2948
|
-
};
|
|
2949
|
-
const deserializeAws_json1_1ResourceInfo = (output, context) => {
|
|
2950
|
-
return {
|
|
2951
|
-
LastModified: output.LastModified !== undefined && output.LastModified !== null
|
|
2952
|
-
? smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(output.LastModified)))
|
|
2953
|
-
: undefined,
|
|
2954
|
-
ResourceArn: smithy_client_1.expectString(output.ResourceArn),
|
|
2955
|
-
RoleArn: smithy_client_1.expectString(output.RoleArn),
|
|
2956
|
-
};
|
|
2957
|
-
};
|
|
2958
|
-
const deserializeAws_json1_1ResourceInfoList = (output, context) => {
|
|
2959
|
-
return (output || [])
|
|
2960
|
-
.filter((e) => e != null)
|
|
2961
|
-
.map((entry) => {
|
|
2962
|
-
if (entry === null) {
|
|
2963
|
-
return null;
|
|
2964
|
-
}
|
|
2965
|
-
return deserializeAws_json1_1ResourceInfo(entry, context);
|
|
2966
|
-
});
|
|
2967
|
-
};
|
|
2968
|
-
const deserializeAws_json1_1ResourceNumberLimitExceededException = (output, context) => {
|
|
2969
|
-
return {
|
|
2970
|
-
Message: smithy_client_1.expectString(output.Message),
|
|
2971
|
-
};
|
|
2972
|
-
};
|
|
2973
|
-
const deserializeAws_json1_1ResourceShareList = (output, context) => {
|
|
2974
|
-
return (output || [])
|
|
2975
|
-
.filter((e) => e != null)
|
|
2976
|
-
.map((entry) => {
|
|
2977
|
-
if (entry === null) {
|
|
2978
|
-
return null;
|
|
2979
|
-
}
|
|
2980
|
-
return smithy_client_1.expectString(entry);
|
|
2981
|
-
});
|
|
2982
|
-
};
|
|
2983
|
-
const deserializeAws_json1_1RevokePermissionsResponse = (output, context) => {
|
|
2984
|
-
return {};
|
|
2985
|
-
};
|
|
2986
|
-
const deserializeAws_json1_1SearchDatabasesByLFTagsResponse = (output, context) => {
|
|
2987
|
-
return {
|
|
2988
|
-
DatabaseList: output.DatabaseList !== undefined && output.DatabaseList !== null
|
|
2989
|
-
? deserializeAws_json1_1DatabaseLFTagsList(output.DatabaseList, context)
|
|
2990
|
-
: undefined,
|
|
2991
|
-
NextToken: smithy_client_1.expectString(output.NextToken),
|
|
2992
|
-
};
|
|
2993
|
-
};
|
|
2994
|
-
const deserializeAws_json1_1SearchTablesByLFTagsResponse = (output, context) => {
|
|
2995
|
-
return {
|
|
2996
|
-
NextToken: smithy_client_1.expectString(output.NextToken),
|
|
2997
|
-
TableList: output.TableList !== undefined && output.TableList !== null
|
|
2998
|
-
? deserializeAws_json1_1TableLFTagsList(output.TableList, context)
|
|
2999
|
-
: undefined,
|
|
3000
|
-
};
|
|
3001
|
-
};
|
|
3002
|
-
const deserializeAws_json1_1TableLFTagsList = (output, context) => {
|
|
3003
|
-
return (output || [])
|
|
3004
|
-
.filter((e) => e != null)
|
|
3005
|
-
.map((entry) => {
|
|
3006
|
-
if (entry === null) {
|
|
3007
|
-
return null;
|
|
3008
|
-
}
|
|
3009
|
-
return deserializeAws_json1_1TaggedTable(entry, context);
|
|
3010
|
-
});
|
|
3011
|
-
};
|
|
3012
|
-
const deserializeAws_json1_1TableResource = (output, context) => {
|
|
3013
|
-
return {
|
|
3014
|
-
CatalogId: smithy_client_1.expectString(output.CatalogId),
|
|
3015
|
-
DatabaseName: smithy_client_1.expectString(output.DatabaseName),
|
|
3016
|
-
Name: smithy_client_1.expectString(output.Name),
|
|
3017
|
-
TableWildcard: output.TableWildcard !== undefined && output.TableWildcard !== null
|
|
3018
|
-
? deserializeAws_json1_1TableWildcard(output.TableWildcard, context)
|
|
3019
|
-
: undefined,
|
|
3020
|
-
};
|
|
3021
|
-
};
|
|
3022
|
-
const deserializeAws_json1_1TableWildcard = (output, context) => {
|
|
3023
|
-
return {};
|
|
3024
|
-
};
|
|
3025
|
-
const deserializeAws_json1_1TableWithColumnsResource = (output, context) => {
|
|
3026
|
-
return {
|
|
3027
|
-
CatalogId: smithy_client_1.expectString(output.CatalogId),
|
|
3028
|
-
ColumnNames: output.ColumnNames !== undefined && output.ColumnNames !== null
|
|
3029
|
-
? deserializeAws_json1_1ColumnNames(output.ColumnNames, context)
|
|
3030
|
-
: undefined,
|
|
3031
|
-
ColumnWildcard: output.ColumnWildcard !== undefined && output.ColumnWildcard !== null
|
|
3032
|
-
? deserializeAws_json1_1ColumnWildcard(output.ColumnWildcard, context)
|
|
3033
|
-
: undefined,
|
|
3034
|
-
DatabaseName: smithy_client_1.expectString(output.DatabaseName),
|
|
3035
|
-
Name: smithy_client_1.expectString(output.Name),
|
|
3036
|
-
};
|
|
3037
|
-
};
|
|
3038
|
-
const deserializeAws_json1_1TaggedDatabase = (output, context) => {
|
|
3039
|
-
return {
|
|
3040
|
-
Database: output.Database !== undefined && output.Database !== null
|
|
3041
|
-
? deserializeAws_json1_1DatabaseResource(output.Database, context)
|
|
3042
|
-
: undefined,
|
|
3043
|
-
LFTags: output.LFTags !== undefined && output.LFTags !== null
|
|
3044
|
-
? deserializeAws_json1_1LFTagsList(output.LFTags, context)
|
|
3045
|
-
: undefined,
|
|
3046
|
-
};
|
|
3047
|
-
};
|
|
3048
|
-
const deserializeAws_json1_1TaggedTable = (output, context) => {
|
|
3049
|
-
return {
|
|
3050
|
-
LFTagOnDatabase: output.LFTagOnDatabase !== undefined && output.LFTagOnDatabase !== null
|
|
3051
|
-
? deserializeAws_json1_1LFTagsList(output.LFTagOnDatabase, context)
|
|
3052
|
-
: undefined,
|
|
3053
|
-
LFTagsOnColumns: output.LFTagsOnColumns !== undefined && output.LFTagsOnColumns !== null
|
|
3054
|
-
? deserializeAws_json1_1ColumnLFTagsList(output.LFTagsOnColumns, context)
|
|
3055
|
-
: undefined,
|
|
3056
|
-
LFTagsOnTable: output.LFTagsOnTable !== undefined && output.LFTagsOnTable !== null
|
|
3057
|
-
? deserializeAws_json1_1LFTagsList(output.LFTagsOnTable, context)
|
|
3058
|
-
: undefined,
|
|
3059
|
-
Table: output.Table !== undefined && output.Table !== null
|
|
3060
|
-
? deserializeAws_json1_1TableResource(output.Table, context)
|
|
3061
|
-
: undefined,
|
|
3062
|
-
};
|
|
3063
|
-
};
|
|
3064
|
-
const deserializeAws_json1_1TagValueList = (output, context) => {
|
|
3065
|
-
return (output || [])
|
|
3066
|
-
.filter((e) => e != null)
|
|
3067
|
-
.map((entry) => {
|
|
3068
|
-
if (entry === null) {
|
|
3069
|
-
return null;
|
|
3070
|
-
}
|
|
3071
|
-
return smithy_client_1.expectString(entry);
|
|
3072
|
-
});
|
|
3073
|
-
};
|
|
3074
|
-
const deserializeAws_json1_1TrustedResourceOwners = (output, context) => {
|
|
3075
|
-
return (output || [])
|
|
3076
|
-
.filter((e) => e != null)
|
|
3077
|
-
.map((entry) => {
|
|
3078
|
-
if (entry === null) {
|
|
3079
|
-
return null;
|
|
3080
|
-
}
|
|
3081
|
-
return smithy_client_1.expectString(entry);
|
|
3082
|
-
});
|
|
3083
|
-
};
|
|
3084
|
-
const deserializeAws_json1_1UpdateLFTagResponse = (output, context) => {
|
|
3085
|
-
return {};
|
|
3086
|
-
};
|
|
3087
|
-
const deserializeAws_json1_1UpdateResourceResponse = (output, context) => {
|
|
3088
|
-
return {};
|
|
3089
|
-
};
|
|
3090
|
-
const deserializeMetadata = (output) => {
|
|
3091
|
-
var _a;
|
|
3092
|
-
return ({
|
|
3093
|
-
httpStatusCode: output.statusCode,
|
|
3094
|
-
requestId: (_a = output.headers["x-amzn-requestid"]) !== null && _a !== void 0 ? _a : output.headers["x-amzn-request-id"],
|
|
3095
|
-
extendedRequestId: output.headers["x-amz-id-2"],
|
|
3096
|
-
cfId: output.headers["x-amz-cf-id"],
|
|
3097
|
-
});
|
|
3098
|
-
};
|
|
3099
|
-
const collectBody = (streamBody = new Uint8Array(), context) => {
|
|
3100
|
-
if (streamBody instanceof Uint8Array) {
|
|
3101
|
-
return Promise.resolve(streamBody);
|
|
3102
|
-
}
|
|
3103
|
-
return context.streamCollector(streamBody) || Promise.resolve(new Uint8Array());
|
|
3104
|
-
};
|
|
3105
|
-
const collectBodyString = (streamBody, context) => collectBody(streamBody, context).then((body) => context.utf8Encoder(body));
|
|
3106
|
-
const buildHttpRpcRequest = async (context, headers, path, resolvedHostname, body) => {
|
|
3107
|
-
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
3108
|
-
const contents = {
|
|
3109
|
-
protocol,
|
|
3110
|
-
hostname,
|
|
3111
|
-
port,
|
|
3112
|
-
method: "POST",
|
|
3113
|
-
path: basePath.endsWith("/") ? basePath.slice(0, -1) + path : basePath + path,
|
|
3114
|
-
headers,
|
|
3115
|
-
};
|
|
3116
|
-
if (resolvedHostname !== undefined) {
|
|
3117
|
-
contents.hostname = resolvedHostname;
|
|
3118
|
-
}
|
|
3119
|
-
if (body !== undefined) {
|
|
3120
|
-
contents.body = body;
|
|
3121
|
-
}
|
|
3122
|
-
return new protocol_http_1.HttpRequest(contents);
|
|
3123
|
-
};
|
|
3124
|
-
const parseBody = (streamBody, context) => collectBodyString(streamBody, context).then((encoded) => {
|
|
3125
|
-
if (encoded.length) {
|
|
3126
|
-
return JSON.parse(encoded);
|
|
3127
|
-
}
|
|
3128
|
-
return {};
|
|
3129
|
-
});
|
|
3130
|
-
const loadRestJsonErrorCode = (output, data) => {
|
|
3131
|
-
const findKey = (object, key) => Object.keys(object).find((k) => k.toLowerCase() === key.toLowerCase());
|
|
3132
|
-
const sanitizeErrorCode = (rawValue) => {
|
|
3133
|
-
let cleanValue = rawValue;
|
|
3134
|
-
if (cleanValue.indexOf(":") >= 0) {
|
|
3135
|
-
cleanValue = cleanValue.split(":")[0];
|
|
3136
|
-
}
|
|
3137
|
-
if (cleanValue.indexOf("#") >= 0) {
|
|
3138
|
-
cleanValue = cleanValue.split("#")[1];
|
|
3139
|
-
}
|
|
3140
|
-
return cleanValue;
|
|
3141
|
-
};
|
|
3142
|
-
const headerKey = findKey(output.headers, "x-amzn-errortype");
|
|
3143
|
-
if (headerKey !== undefined) {
|
|
3144
|
-
return sanitizeErrorCode(output.headers[headerKey]);
|
|
3145
|
-
}
|
|
3146
|
-
if (data.code !== undefined) {
|
|
3147
|
-
return sanitizeErrorCode(data.code);
|
|
3148
|
-
}
|
|
3149
|
-
if (data["__type"] !== undefined) {
|
|
3150
|
-
return sanitizeErrorCode(data["__type"]);
|
|
3151
|
-
}
|
|
3152
|
-
return "";
|
|
3153
|
-
};
|