@aws-sdk/client-lakeformation 3.43.0 → 3.44.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +11 -0
- package/README.md +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/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/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 +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 +1 -1
- package/dist-types/commands/DeleteDataCellsFilterCommand.d.ts +35 -0
- package/dist-types/commands/DeleteLFTagCommand.d.ts +1 -1
- package/dist-types/commands/DeleteObjectsOnCancelCommand.d.ts +42 -0
- package/dist-types/commands/DescribeResourceCommand.d.ts +1 -1
- package/dist-types/commands/DescribeTransactionCommand.d.ts +35 -0
- package/dist-types/commands/ExtendTransactionCommand.d.ts +37 -0
- package/dist-types/commands/GetLFTagCommand.d.ts +1 -1
- 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 +1 -1
- 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/ListDataCellsFilterCommand.d.ts +35 -0
- package/dist-types/commands/ListLFTagsCommand.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/RegisterResourceCommand.d.ts +2 -2
- package/dist-types/commands/RemoveLFTagsFromResourceCommand.d.ts +1 -1
- package/dist-types/commands/SearchTablesByLFTagsCommand.d.ts +1 -1
- 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 +1 -1
- package/dist-types/commands/UpdateResourceCommand.d.ts +1 -1
- 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 +1 -1
- 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
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
import { __asyncGenerator, __await, __awaiter, __generator, __read, __spreadArray } from "tslib";
|
|
2
|
+
import { ListTableStorageOptimizersCommand, } from "../commands/ListTableStorageOptimizersCommand";
|
|
3
|
+
import { LakeFormation } from "../LakeFormation";
|
|
4
|
+
import { LakeFormationClient } from "../LakeFormationClient";
|
|
5
|
+
var makePagedClientRequest = function (client, input) {
|
|
6
|
+
var args = [];
|
|
7
|
+
for (var _i = 2; _i < arguments.length; _i++) {
|
|
8
|
+
args[_i - 2] = arguments[_i];
|
|
9
|
+
}
|
|
10
|
+
return __awaiter(void 0, void 0, void 0, function () {
|
|
11
|
+
return __generator(this, function (_a) {
|
|
12
|
+
switch (_a.label) {
|
|
13
|
+
case 0: return [4, client.send.apply(client, __spreadArray([new ListTableStorageOptimizersCommand(input)], __read(args)))];
|
|
14
|
+
case 1: return [2, _a.sent()];
|
|
15
|
+
}
|
|
16
|
+
});
|
|
17
|
+
});
|
|
18
|
+
};
|
|
19
|
+
var makePagedRequest = function (client, input) {
|
|
20
|
+
var args = [];
|
|
21
|
+
for (var _i = 2; _i < arguments.length; _i++) {
|
|
22
|
+
args[_i - 2] = arguments[_i];
|
|
23
|
+
}
|
|
24
|
+
return __awaiter(void 0, void 0, void 0, function () {
|
|
25
|
+
return __generator(this, function (_a) {
|
|
26
|
+
switch (_a.label) {
|
|
27
|
+
case 0: return [4, client.listTableStorageOptimizers.apply(client, __spreadArray([input], __read(args)))];
|
|
28
|
+
case 1: return [2, _a.sent()];
|
|
29
|
+
}
|
|
30
|
+
});
|
|
31
|
+
});
|
|
32
|
+
};
|
|
33
|
+
export function paginateListTableStorageOptimizers(config, input) {
|
|
34
|
+
var additionalArguments = [];
|
|
35
|
+
for (var _i = 2; _i < arguments.length; _i++) {
|
|
36
|
+
additionalArguments[_i - 2] = arguments[_i];
|
|
37
|
+
}
|
|
38
|
+
return __asyncGenerator(this, arguments, function paginateListTableStorageOptimizers_1() {
|
|
39
|
+
var token, hasNext, page;
|
|
40
|
+
return __generator(this, function (_a) {
|
|
41
|
+
switch (_a.label) {
|
|
42
|
+
case 0:
|
|
43
|
+
token = config.startingToken || undefined;
|
|
44
|
+
hasNext = true;
|
|
45
|
+
_a.label = 1;
|
|
46
|
+
case 1:
|
|
47
|
+
if (!hasNext) return [3, 9];
|
|
48
|
+
input.NextToken = token;
|
|
49
|
+
input["MaxResults"] = config.pageSize;
|
|
50
|
+
if (!(config.client instanceof LakeFormation)) return [3, 3];
|
|
51
|
+
return [4, __await(makePagedRequest.apply(void 0, __spreadArray([config.client, input], __read(additionalArguments))))];
|
|
52
|
+
case 2:
|
|
53
|
+
page = _a.sent();
|
|
54
|
+
return [3, 6];
|
|
55
|
+
case 3:
|
|
56
|
+
if (!(config.client instanceof LakeFormationClient)) return [3, 5];
|
|
57
|
+
return [4, __await(makePagedClientRequest.apply(void 0, __spreadArray([config.client, input], __read(additionalArguments))))];
|
|
58
|
+
case 4:
|
|
59
|
+
page = _a.sent();
|
|
60
|
+
return [3, 6];
|
|
61
|
+
case 5: throw new Error("Invalid client, expected LakeFormation | LakeFormationClient");
|
|
62
|
+
case 6: return [4, __await(page)];
|
|
63
|
+
case 7: return [4, _a.sent()];
|
|
64
|
+
case 8:
|
|
65
|
+
_a.sent();
|
|
66
|
+
token = page.NextToken;
|
|
67
|
+
hasNext = !!token;
|
|
68
|
+
return [3, 1];
|
|
69
|
+
case 9: return [4, __await(undefined)];
|
|
70
|
+
case 10: return [2, _a.sent()];
|
|
71
|
+
}
|
|
72
|
+
});
|
|
73
|
+
});
|
|
74
|
+
}
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
import { __asyncGenerator, __await, __awaiter, __generator, __read, __spreadArray } from "tslib";
|
|
2
|
+
import { ListTransactionsCommand, } from "../commands/ListTransactionsCommand";
|
|
3
|
+
import { LakeFormation } from "../LakeFormation";
|
|
4
|
+
import { LakeFormationClient } from "../LakeFormationClient";
|
|
5
|
+
var makePagedClientRequest = function (client, input) {
|
|
6
|
+
var args = [];
|
|
7
|
+
for (var _i = 2; _i < arguments.length; _i++) {
|
|
8
|
+
args[_i - 2] = arguments[_i];
|
|
9
|
+
}
|
|
10
|
+
return __awaiter(void 0, void 0, void 0, function () {
|
|
11
|
+
return __generator(this, function (_a) {
|
|
12
|
+
switch (_a.label) {
|
|
13
|
+
case 0: return [4, client.send.apply(client, __spreadArray([new ListTransactionsCommand(input)], __read(args)))];
|
|
14
|
+
case 1: return [2, _a.sent()];
|
|
15
|
+
}
|
|
16
|
+
});
|
|
17
|
+
});
|
|
18
|
+
};
|
|
19
|
+
var makePagedRequest = function (client, input) {
|
|
20
|
+
var args = [];
|
|
21
|
+
for (var _i = 2; _i < arguments.length; _i++) {
|
|
22
|
+
args[_i - 2] = arguments[_i];
|
|
23
|
+
}
|
|
24
|
+
return __awaiter(void 0, void 0, void 0, function () {
|
|
25
|
+
return __generator(this, function (_a) {
|
|
26
|
+
switch (_a.label) {
|
|
27
|
+
case 0: return [4, client.listTransactions.apply(client, __spreadArray([input], __read(args)))];
|
|
28
|
+
case 1: return [2, _a.sent()];
|
|
29
|
+
}
|
|
30
|
+
});
|
|
31
|
+
});
|
|
32
|
+
};
|
|
33
|
+
export function paginateListTransactions(config, input) {
|
|
34
|
+
var additionalArguments = [];
|
|
35
|
+
for (var _i = 2; _i < arguments.length; _i++) {
|
|
36
|
+
additionalArguments[_i - 2] = arguments[_i];
|
|
37
|
+
}
|
|
38
|
+
return __asyncGenerator(this, arguments, function paginateListTransactions_1() {
|
|
39
|
+
var token, hasNext, page;
|
|
40
|
+
return __generator(this, function (_a) {
|
|
41
|
+
switch (_a.label) {
|
|
42
|
+
case 0:
|
|
43
|
+
token = config.startingToken || undefined;
|
|
44
|
+
hasNext = true;
|
|
45
|
+
_a.label = 1;
|
|
46
|
+
case 1:
|
|
47
|
+
if (!hasNext) return [3, 9];
|
|
48
|
+
input.NextToken = token;
|
|
49
|
+
input["MaxResults"] = config.pageSize;
|
|
50
|
+
if (!(config.client instanceof LakeFormation)) return [3, 3];
|
|
51
|
+
return [4, __await(makePagedRequest.apply(void 0, __spreadArray([config.client, input], __read(additionalArguments))))];
|
|
52
|
+
case 2:
|
|
53
|
+
page = _a.sent();
|
|
54
|
+
return [3, 6];
|
|
55
|
+
case 3:
|
|
56
|
+
if (!(config.client instanceof LakeFormationClient)) return [3, 5];
|
|
57
|
+
return [4, __await(makePagedClientRequest.apply(void 0, __spreadArray([config.client, input], __read(additionalArguments))))];
|
|
58
|
+
case 4:
|
|
59
|
+
page = _a.sent();
|
|
60
|
+
return [3, 6];
|
|
61
|
+
case 5: throw new Error("Invalid client, expected LakeFormation | LakeFormationClient");
|
|
62
|
+
case 6: return [4, __await(page)];
|
|
63
|
+
case 7: return [4, _a.sent()];
|
|
64
|
+
case 8:
|
|
65
|
+
_a.sent();
|
|
66
|
+
token = page.NextToken;
|
|
67
|
+
hasNext = !!token;
|
|
68
|
+
return [3, 1];
|
|
69
|
+
case 9: return [4, __await(undefined)];
|
|
70
|
+
case 10: return [2, _a.sent()];
|
|
71
|
+
}
|
|
72
|
+
});
|
|
73
|
+
});
|
|
74
|
+
}
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
import { __asyncGenerator, __await, __awaiter, __generator, __read, __spreadArray } from "tslib";
|
|
2
|
+
import { SearchDatabasesByLFTagsCommand, } from "../commands/SearchDatabasesByLFTagsCommand";
|
|
3
|
+
import { LakeFormation } from "../LakeFormation";
|
|
4
|
+
import { LakeFormationClient } from "../LakeFormationClient";
|
|
5
|
+
var makePagedClientRequest = function (client, input) {
|
|
6
|
+
var args = [];
|
|
7
|
+
for (var _i = 2; _i < arguments.length; _i++) {
|
|
8
|
+
args[_i - 2] = arguments[_i];
|
|
9
|
+
}
|
|
10
|
+
return __awaiter(void 0, void 0, void 0, function () {
|
|
11
|
+
return __generator(this, function (_a) {
|
|
12
|
+
switch (_a.label) {
|
|
13
|
+
case 0: return [4, client.send.apply(client, __spreadArray([new SearchDatabasesByLFTagsCommand(input)], __read(args)))];
|
|
14
|
+
case 1: return [2, _a.sent()];
|
|
15
|
+
}
|
|
16
|
+
});
|
|
17
|
+
});
|
|
18
|
+
};
|
|
19
|
+
var makePagedRequest = function (client, input) {
|
|
20
|
+
var args = [];
|
|
21
|
+
for (var _i = 2; _i < arguments.length; _i++) {
|
|
22
|
+
args[_i - 2] = arguments[_i];
|
|
23
|
+
}
|
|
24
|
+
return __awaiter(void 0, void 0, void 0, function () {
|
|
25
|
+
return __generator(this, function (_a) {
|
|
26
|
+
switch (_a.label) {
|
|
27
|
+
case 0: return [4, client.searchDatabasesByLFTags.apply(client, __spreadArray([input], __read(args)))];
|
|
28
|
+
case 1: return [2, _a.sent()];
|
|
29
|
+
}
|
|
30
|
+
});
|
|
31
|
+
});
|
|
32
|
+
};
|
|
33
|
+
export function paginateSearchDatabasesByLFTags(config, input) {
|
|
34
|
+
var additionalArguments = [];
|
|
35
|
+
for (var _i = 2; _i < arguments.length; _i++) {
|
|
36
|
+
additionalArguments[_i - 2] = arguments[_i];
|
|
37
|
+
}
|
|
38
|
+
return __asyncGenerator(this, arguments, function paginateSearchDatabasesByLFTags_1() {
|
|
39
|
+
var token, hasNext, page;
|
|
40
|
+
return __generator(this, function (_a) {
|
|
41
|
+
switch (_a.label) {
|
|
42
|
+
case 0:
|
|
43
|
+
token = config.startingToken || undefined;
|
|
44
|
+
hasNext = true;
|
|
45
|
+
_a.label = 1;
|
|
46
|
+
case 1:
|
|
47
|
+
if (!hasNext) return [3, 9];
|
|
48
|
+
input.NextToken = token;
|
|
49
|
+
input["MaxResults"] = config.pageSize;
|
|
50
|
+
if (!(config.client instanceof LakeFormation)) return [3, 3];
|
|
51
|
+
return [4, __await(makePagedRequest.apply(void 0, __spreadArray([config.client, input], __read(additionalArguments))))];
|
|
52
|
+
case 2:
|
|
53
|
+
page = _a.sent();
|
|
54
|
+
return [3, 6];
|
|
55
|
+
case 3:
|
|
56
|
+
if (!(config.client instanceof LakeFormationClient)) return [3, 5];
|
|
57
|
+
return [4, __await(makePagedClientRequest.apply(void 0, __spreadArray([config.client, input], __read(additionalArguments))))];
|
|
58
|
+
case 4:
|
|
59
|
+
page = _a.sent();
|
|
60
|
+
return [3, 6];
|
|
61
|
+
case 5: throw new Error("Invalid client, expected LakeFormation | LakeFormationClient");
|
|
62
|
+
case 6: return [4, __await(page)];
|
|
63
|
+
case 7: return [4, _a.sent()];
|
|
64
|
+
case 8:
|
|
65
|
+
_a.sent();
|
|
66
|
+
token = page.NextToken;
|
|
67
|
+
hasNext = !!token;
|
|
68
|
+
return [3, 1];
|
|
69
|
+
case 9: return [4, __await(undefined)];
|
|
70
|
+
case 10: return [2, _a.sent()];
|
|
71
|
+
}
|
|
72
|
+
});
|
|
73
|
+
});
|
|
74
|
+
}
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
import { __asyncGenerator, __await, __awaiter, __generator, __read, __spreadArray } from "tslib";
|
|
2
|
+
import { SearchTablesByLFTagsCommand, } from "../commands/SearchTablesByLFTagsCommand";
|
|
3
|
+
import { LakeFormation } from "../LakeFormation";
|
|
4
|
+
import { LakeFormationClient } from "../LakeFormationClient";
|
|
5
|
+
var makePagedClientRequest = function (client, input) {
|
|
6
|
+
var args = [];
|
|
7
|
+
for (var _i = 2; _i < arguments.length; _i++) {
|
|
8
|
+
args[_i - 2] = arguments[_i];
|
|
9
|
+
}
|
|
10
|
+
return __awaiter(void 0, void 0, void 0, function () {
|
|
11
|
+
return __generator(this, function (_a) {
|
|
12
|
+
switch (_a.label) {
|
|
13
|
+
case 0: return [4, client.send.apply(client, __spreadArray([new SearchTablesByLFTagsCommand(input)], __read(args)))];
|
|
14
|
+
case 1: return [2, _a.sent()];
|
|
15
|
+
}
|
|
16
|
+
});
|
|
17
|
+
});
|
|
18
|
+
};
|
|
19
|
+
var makePagedRequest = function (client, input) {
|
|
20
|
+
var args = [];
|
|
21
|
+
for (var _i = 2; _i < arguments.length; _i++) {
|
|
22
|
+
args[_i - 2] = arguments[_i];
|
|
23
|
+
}
|
|
24
|
+
return __awaiter(void 0, void 0, void 0, function () {
|
|
25
|
+
return __generator(this, function (_a) {
|
|
26
|
+
switch (_a.label) {
|
|
27
|
+
case 0: return [4, client.searchTablesByLFTags.apply(client, __spreadArray([input], __read(args)))];
|
|
28
|
+
case 1: return [2, _a.sent()];
|
|
29
|
+
}
|
|
30
|
+
});
|
|
31
|
+
});
|
|
32
|
+
};
|
|
33
|
+
export function paginateSearchTablesByLFTags(config, input) {
|
|
34
|
+
var additionalArguments = [];
|
|
35
|
+
for (var _i = 2; _i < arguments.length; _i++) {
|
|
36
|
+
additionalArguments[_i - 2] = arguments[_i];
|
|
37
|
+
}
|
|
38
|
+
return __asyncGenerator(this, arguments, function paginateSearchTablesByLFTags_1() {
|
|
39
|
+
var token, hasNext, page;
|
|
40
|
+
return __generator(this, function (_a) {
|
|
41
|
+
switch (_a.label) {
|
|
42
|
+
case 0:
|
|
43
|
+
token = config.startingToken || undefined;
|
|
44
|
+
hasNext = true;
|
|
45
|
+
_a.label = 1;
|
|
46
|
+
case 1:
|
|
47
|
+
if (!hasNext) return [3, 9];
|
|
48
|
+
input.NextToken = token;
|
|
49
|
+
input["MaxResults"] = config.pageSize;
|
|
50
|
+
if (!(config.client instanceof LakeFormation)) return [3, 3];
|
|
51
|
+
return [4, __await(makePagedRequest.apply(void 0, __spreadArray([config.client, input], __read(additionalArguments))))];
|
|
52
|
+
case 2:
|
|
53
|
+
page = _a.sent();
|
|
54
|
+
return [3, 6];
|
|
55
|
+
case 3:
|
|
56
|
+
if (!(config.client instanceof LakeFormationClient)) return [3, 5];
|
|
57
|
+
return [4, __await(makePagedClientRequest.apply(void 0, __spreadArray([config.client, input], __read(additionalArguments))))];
|
|
58
|
+
case 4:
|
|
59
|
+
page = _a.sent();
|
|
60
|
+
return [3, 6];
|
|
61
|
+
case 5: throw new Error("Invalid client, expected LakeFormation | LakeFormationClient");
|
|
62
|
+
case 6: return [4, __await(page)];
|
|
63
|
+
case 7: return [4, _a.sent()];
|
|
64
|
+
case 8:
|
|
65
|
+
_a.sent();
|
|
66
|
+
token = page.NextToken;
|
|
67
|
+
hasNext = !!token;
|
|
68
|
+
return [3, 1];
|
|
69
|
+
case 9: return [4, __await(undefined)];
|
|
70
|
+
case 10: return [2, _a.sent()];
|
|
71
|
+
}
|
|
72
|
+
});
|
|
73
|
+
});
|
|
74
|
+
}
|
|
@@ -1,4 +1,12 @@
|
|
|
1
1
|
export * from "./GetEffectivePermissionsForPathPaginator";
|
|
2
|
+
export * from "./GetTableObjectsPaginator";
|
|
3
|
+
export * from "./GetWorkUnitsPaginator";
|
|
2
4
|
export * from "./Interfaces";
|
|
5
|
+
export * from "./ListDataCellsFilterPaginator";
|
|
6
|
+
export * from "./ListLFTagsPaginator";
|
|
3
7
|
export * from "./ListPermissionsPaginator";
|
|
4
8
|
export * from "./ListResourcesPaginator";
|
|
9
|
+
export * from "./ListTableStorageOptimizersPaginator";
|
|
10
|
+
export * from "./ListTransactionsPaginator";
|
|
11
|
+
export * from "./SearchDatabasesByLFTagsPaginator";
|
|
12
|
+
export * from "./SearchTablesByLFTagsPaginator";
|