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