@aws-sdk/client-lakeformation 3.476.0 → 3.478.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/dist-cjs/pagination/GetEffectivePermissionsForPathPaginator.js +2 -24
- package/dist-cjs/pagination/GetTableObjectsPaginator.js +2 -24
- package/dist-cjs/pagination/GetWorkUnitsPaginator.js +2 -24
- package/dist-cjs/pagination/ListDataCellsFilterPaginator.js +2 -24
- package/dist-cjs/pagination/ListLFTagsPaginator.js +2 -24
- package/dist-cjs/pagination/ListLakeFormationOptInsPaginator.js +2 -24
- package/dist-cjs/pagination/ListPermissionsPaginator.js +2 -24
- package/dist-cjs/pagination/ListResourcesPaginator.js +2 -24
- package/dist-cjs/pagination/ListTableStorageOptimizersPaginator.js +2 -24
- package/dist-cjs/pagination/ListTransactionsPaginator.js +2 -24
- package/dist-cjs/pagination/SearchDatabasesByLFTagsPaginator.js +2 -24
- package/dist-cjs/pagination/SearchTablesByLFTagsPaginator.js +2 -24
- package/dist-cjs/protocols/Aws_restJson1.js +222 -598
- package/dist-es/pagination/GetEffectivePermissionsForPathPaginator.js +2 -23
- package/dist-es/pagination/GetTableObjectsPaginator.js +2 -23
- package/dist-es/pagination/GetWorkUnitsPaginator.js +2 -23
- package/dist-es/pagination/ListDataCellsFilterPaginator.js +2 -23
- package/dist-es/pagination/ListLFTagsPaginator.js +2 -23
- package/dist-es/pagination/ListLakeFormationOptInsPaginator.js +2 -23
- package/dist-es/pagination/ListPermissionsPaginator.js +2 -23
- package/dist-es/pagination/ListResourcesPaginator.js +2 -23
- package/dist-es/pagination/ListTableStorageOptimizersPaginator.js +2 -23
- package/dist-es/pagination/ListTransactionsPaginator.js +2 -23
- package/dist-es/pagination/SearchDatabasesByLFTagsPaginator.js +2 -23
- package/dist-es/pagination/SearchTablesByLFTagsPaginator.js +2 -23
- package/dist-es/protocols/Aws_restJson1.js +223 -599
- package/dist-types/pagination/GetEffectivePermissionsForPathPaginator.d.ts +1 -1
- package/dist-types/pagination/GetTableObjectsPaginator.d.ts +1 -1
- package/dist-types/pagination/GetWorkUnitsPaginator.d.ts +1 -1
- package/dist-types/pagination/ListDataCellsFilterPaginator.d.ts +1 -1
- package/dist-types/pagination/ListLFTagsPaginator.d.ts +1 -1
- package/dist-types/pagination/ListLakeFormationOptInsPaginator.d.ts +1 -1
- package/dist-types/pagination/ListPermissionsPaginator.d.ts +1 -1
- package/dist-types/pagination/ListResourcesPaginator.d.ts +1 -1
- package/dist-types/pagination/ListTableStorageOptimizersPaginator.d.ts +1 -1
- package/dist-types/pagination/ListTransactionsPaginator.d.ts +1 -1
- package/dist-types/pagination/SearchDatabasesByLFTagsPaginator.d.ts +1 -1
- package/dist-types/pagination/SearchTablesByLFTagsPaginator.d.ts +1 -1
- package/dist-types/ts3.4/pagination/GetEffectivePermissionsForPathPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/GetTableObjectsPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/GetWorkUnitsPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListDataCellsFilterPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListLFTagsPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListLakeFormationOptInsPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListPermissionsPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListResourcesPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListTableStorageOptimizersPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListTransactionsPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/SearchDatabasesByLFTagsPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/SearchTablesByLFTagsPaginator.d.ts +3 -3
- package/package.json +7 -6
|
@@ -1,29 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.paginateGetEffectivePermissionsForPath = void 0;
|
|
4
|
+
const core_1 = require("@smithy/core");
|
|
4
5
|
const GetEffectivePermissionsForPathCommand_1 = require("../commands/GetEffectivePermissionsForPathCommand");
|
|
5
6
|
const LakeFormationClient_1 = require("../LakeFormationClient");
|
|
6
|
-
|
|
7
|
-
return await client.send(new GetEffectivePermissionsForPathCommand_1.GetEffectivePermissionsForPathCommand(input), ...args);
|
|
8
|
-
};
|
|
9
|
-
async function* paginateGetEffectivePermissionsForPath(config, input, ...additionalArguments) {
|
|
10
|
-
let token = config.startingToken || undefined;
|
|
11
|
-
let hasNext = true;
|
|
12
|
-
let page;
|
|
13
|
-
while (hasNext) {
|
|
14
|
-
input.NextToken = token;
|
|
15
|
-
input["MaxResults"] = config.pageSize;
|
|
16
|
-
if (config.client instanceof LakeFormationClient_1.LakeFormationClient) {
|
|
17
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
18
|
-
}
|
|
19
|
-
else {
|
|
20
|
-
throw new Error("Invalid client, expected LakeFormation | LakeFormationClient");
|
|
21
|
-
}
|
|
22
|
-
yield page;
|
|
23
|
-
const prevToken = token;
|
|
24
|
-
token = page.NextToken;
|
|
25
|
-
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
26
|
-
}
|
|
27
|
-
return undefined;
|
|
28
|
-
}
|
|
29
|
-
exports.paginateGetEffectivePermissionsForPath = paginateGetEffectivePermissionsForPath;
|
|
7
|
+
exports.paginateGetEffectivePermissionsForPath = (0, core_1.createPaginator)(LakeFormationClient_1.LakeFormationClient, GetEffectivePermissionsForPathCommand_1.GetEffectivePermissionsForPathCommand, "NextToken", "NextToken", "MaxResults");
|
|
@@ -1,29 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.paginateGetTableObjects = void 0;
|
|
4
|
+
const core_1 = require("@smithy/core");
|
|
4
5
|
const GetTableObjectsCommand_1 = require("../commands/GetTableObjectsCommand");
|
|
5
6
|
const LakeFormationClient_1 = require("../LakeFormationClient");
|
|
6
|
-
|
|
7
|
-
return await client.send(new GetTableObjectsCommand_1.GetTableObjectsCommand(input), ...args);
|
|
8
|
-
};
|
|
9
|
-
async function* paginateGetTableObjects(config, input, ...additionalArguments) {
|
|
10
|
-
let token = config.startingToken || undefined;
|
|
11
|
-
let hasNext = true;
|
|
12
|
-
let page;
|
|
13
|
-
while (hasNext) {
|
|
14
|
-
input.NextToken = token;
|
|
15
|
-
input["MaxResults"] = config.pageSize;
|
|
16
|
-
if (config.client instanceof LakeFormationClient_1.LakeFormationClient) {
|
|
17
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
18
|
-
}
|
|
19
|
-
else {
|
|
20
|
-
throw new Error("Invalid client, expected LakeFormation | LakeFormationClient");
|
|
21
|
-
}
|
|
22
|
-
yield page;
|
|
23
|
-
const prevToken = token;
|
|
24
|
-
token = page.NextToken;
|
|
25
|
-
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
26
|
-
}
|
|
27
|
-
return undefined;
|
|
28
|
-
}
|
|
29
|
-
exports.paginateGetTableObjects = paginateGetTableObjects;
|
|
7
|
+
exports.paginateGetTableObjects = (0, core_1.createPaginator)(LakeFormationClient_1.LakeFormationClient, GetTableObjectsCommand_1.GetTableObjectsCommand, "NextToken", "NextToken", "MaxResults");
|
|
@@ -1,29 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.paginateGetWorkUnits = void 0;
|
|
4
|
+
const core_1 = require("@smithy/core");
|
|
4
5
|
const GetWorkUnitsCommand_1 = require("../commands/GetWorkUnitsCommand");
|
|
5
6
|
const LakeFormationClient_1 = require("../LakeFormationClient");
|
|
6
|
-
|
|
7
|
-
return await client.send(new GetWorkUnitsCommand_1.GetWorkUnitsCommand(input), ...args);
|
|
8
|
-
};
|
|
9
|
-
async function* paginateGetWorkUnits(config, input, ...additionalArguments) {
|
|
10
|
-
let token = config.startingToken || undefined;
|
|
11
|
-
let hasNext = true;
|
|
12
|
-
let page;
|
|
13
|
-
while (hasNext) {
|
|
14
|
-
input.NextToken = token;
|
|
15
|
-
input["PageSize"] = config.pageSize;
|
|
16
|
-
if (config.client instanceof LakeFormationClient_1.LakeFormationClient) {
|
|
17
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
18
|
-
}
|
|
19
|
-
else {
|
|
20
|
-
throw new Error("Invalid client, expected LakeFormation | LakeFormationClient");
|
|
21
|
-
}
|
|
22
|
-
yield page;
|
|
23
|
-
const prevToken = token;
|
|
24
|
-
token = page.NextToken;
|
|
25
|
-
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
26
|
-
}
|
|
27
|
-
return undefined;
|
|
28
|
-
}
|
|
29
|
-
exports.paginateGetWorkUnits = paginateGetWorkUnits;
|
|
7
|
+
exports.paginateGetWorkUnits = (0, core_1.createPaginator)(LakeFormationClient_1.LakeFormationClient, GetWorkUnitsCommand_1.GetWorkUnitsCommand, "NextToken", "NextToken", "PageSize");
|
|
@@ -1,29 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.paginateListDataCellsFilter = void 0;
|
|
4
|
+
const core_1 = require("@smithy/core");
|
|
4
5
|
const ListDataCellsFilterCommand_1 = require("../commands/ListDataCellsFilterCommand");
|
|
5
6
|
const LakeFormationClient_1 = require("../LakeFormationClient");
|
|
6
|
-
|
|
7
|
-
return await client.send(new ListDataCellsFilterCommand_1.ListDataCellsFilterCommand(input), ...args);
|
|
8
|
-
};
|
|
9
|
-
async function* paginateListDataCellsFilter(config, input, ...additionalArguments) {
|
|
10
|
-
let token = config.startingToken || undefined;
|
|
11
|
-
let hasNext = true;
|
|
12
|
-
let page;
|
|
13
|
-
while (hasNext) {
|
|
14
|
-
input.NextToken = token;
|
|
15
|
-
input["MaxResults"] = config.pageSize;
|
|
16
|
-
if (config.client instanceof LakeFormationClient_1.LakeFormationClient) {
|
|
17
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
18
|
-
}
|
|
19
|
-
else {
|
|
20
|
-
throw new Error("Invalid client, expected LakeFormation | LakeFormationClient");
|
|
21
|
-
}
|
|
22
|
-
yield page;
|
|
23
|
-
const prevToken = token;
|
|
24
|
-
token = page.NextToken;
|
|
25
|
-
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
26
|
-
}
|
|
27
|
-
return undefined;
|
|
28
|
-
}
|
|
29
|
-
exports.paginateListDataCellsFilter = paginateListDataCellsFilter;
|
|
7
|
+
exports.paginateListDataCellsFilter = (0, core_1.createPaginator)(LakeFormationClient_1.LakeFormationClient, ListDataCellsFilterCommand_1.ListDataCellsFilterCommand, "NextToken", "NextToken", "MaxResults");
|
|
@@ -1,29 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.paginateListLFTags = void 0;
|
|
4
|
+
const core_1 = require("@smithy/core");
|
|
4
5
|
const ListLFTagsCommand_1 = require("../commands/ListLFTagsCommand");
|
|
5
6
|
const LakeFormationClient_1 = require("../LakeFormationClient");
|
|
6
|
-
|
|
7
|
-
return await client.send(new ListLFTagsCommand_1.ListLFTagsCommand(input), ...args);
|
|
8
|
-
};
|
|
9
|
-
async function* paginateListLFTags(config, input, ...additionalArguments) {
|
|
10
|
-
let token = config.startingToken || undefined;
|
|
11
|
-
let hasNext = true;
|
|
12
|
-
let page;
|
|
13
|
-
while (hasNext) {
|
|
14
|
-
input.NextToken = token;
|
|
15
|
-
input["MaxResults"] = config.pageSize;
|
|
16
|
-
if (config.client instanceof LakeFormationClient_1.LakeFormationClient) {
|
|
17
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
18
|
-
}
|
|
19
|
-
else {
|
|
20
|
-
throw new Error("Invalid client, expected LakeFormation | LakeFormationClient");
|
|
21
|
-
}
|
|
22
|
-
yield page;
|
|
23
|
-
const prevToken = token;
|
|
24
|
-
token = page.NextToken;
|
|
25
|
-
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
26
|
-
}
|
|
27
|
-
return undefined;
|
|
28
|
-
}
|
|
29
|
-
exports.paginateListLFTags = paginateListLFTags;
|
|
7
|
+
exports.paginateListLFTags = (0, core_1.createPaginator)(LakeFormationClient_1.LakeFormationClient, ListLFTagsCommand_1.ListLFTagsCommand, "NextToken", "NextToken", "MaxResults");
|
|
@@ -1,29 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.paginateListLakeFormationOptIns = void 0;
|
|
4
|
+
const core_1 = require("@smithy/core");
|
|
4
5
|
const ListLakeFormationOptInsCommand_1 = require("../commands/ListLakeFormationOptInsCommand");
|
|
5
6
|
const LakeFormationClient_1 = require("../LakeFormationClient");
|
|
6
|
-
|
|
7
|
-
return await client.send(new ListLakeFormationOptInsCommand_1.ListLakeFormationOptInsCommand(input), ...args);
|
|
8
|
-
};
|
|
9
|
-
async function* paginateListLakeFormationOptIns(config, input, ...additionalArguments) {
|
|
10
|
-
let token = config.startingToken || undefined;
|
|
11
|
-
let hasNext = true;
|
|
12
|
-
let page;
|
|
13
|
-
while (hasNext) {
|
|
14
|
-
input.NextToken = token;
|
|
15
|
-
input["MaxResults"] = config.pageSize;
|
|
16
|
-
if (config.client instanceof LakeFormationClient_1.LakeFormationClient) {
|
|
17
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
18
|
-
}
|
|
19
|
-
else {
|
|
20
|
-
throw new Error("Invalid client, expected LakeFormation | LakeFormationClient");
|
|
21
|
-
}
|
|
22
|
-
yield page;
|
|
23
|
-
const prevToken = token;
|
|
24
|
-
token = page.NextToken;
|
|
25
|
-
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
26
|
-
}
|
|
27
|
-
return undefined;
|
|
28
|
-
}
|
|
29
|
-
exports.paginateListLakeFormationOptIns = paginateListLakeFormationOptIns;
|
|
7
|
+
exports.paginateListLakeFormationOptIns = (0, core_1.createPaginator)(LakeFormationClient_1.LakeFormationClient, ListLakeFormationOptInsCommand_1.ListLakeFormationOptInsCommand, "NextToken", "NextToken", "MaxResults");
|
|
@@ -1,29 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.paginateListPermissions = void 0;
|
|
4
|
+
const core_1 = require("@smithy/core");
|
|
4
5
|
const ListPermissionsCommand_1 = require("../commands/ListPermissionsCommand");
|
|
5
6
|
const LakeFormationClient_1 = require("../LakeFormationClient");
|
|
6
|
-
|
|
7
|
-
return await client.send(new ListPermissionsCommand_1.ListPermissionsCommand(input), ...args);
|
|
8
|
-
};
|
|
9
|
-
async function* paginateListPermissions(config, input, ...additionalArguments) {
|
|
10
|
-
let token = config.startingToken || undefined;
|
|
11
|
-
let hasNext = true;
|
|
12
|
-
let page;
|
|
13
|
-
while (hasNext) {
|
|
14
|
-
input.NextToken = token;
|
|
15
|
-
input["MaxResults"] = config.pageSize;
|
|
16
|
-
if (config.client instanceof LakeFormationClient_1.LakeFormationClient) {
|
|
17
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
18
|
-
}
|
|
19
|
-
else {
|
|
20
|
-
throw new Error("Invalid client, expected LakeFormation | LakeFormationClient");
|
|
21
|
-
}
|
|
22
|
-
yield page;
|
|
23
|
-
const prevToken = token;
|
|
24
|
-
token = page.NextToken;
|
|
25
|
-
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
26
|
-
}
|
|
27
|
-
return undefined;
|
|
28
|
-
}
|
|
29
|
-
exports.paginateListPermissions = paginateListPermissions;
|
|
7
|
+
exports.paginateListPermissions = (0, core_1.createPaginator)(LakeFormationClient_1.LakeFormationClient, ListPermissionsCommand_1.ListPermissionsCommand, "NextToken", "NextToken", "MaxResults");
|
|
@@ -1,29 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.paginateListResources = void 0;
|
|
4
|
+
const core_1 = require("@smithy/core");
|
|
4
5
|
const ListResourcesCommand_1 = require("../commands/ListResourcesCommand");
|
|
5
6
|
const LakeFormationClient_1 = require("../LakeFormationClient");
|
|
6
|
-
|
|
7
|
-
return await client.send(new ListResourcesCommand_1.ListResourcesCommand(input), ...args);
|
|
8
|
-
};
|
|
9
|
-
async function* paginateListResources(config, input, ...additionalArguments) {
|
|
10
|
-
let token = config.startingToken || undefined;
|
|
11
|
-
let hasNext = true;
|
|
12
|
-
let page;
|
|
13
|
-
while (hasNext) {
|
|
14
|
-
input.NextToken = token;
|
|
15
|
-
input["MaxResults"] = config.pageSize;
|
|
16
|
-
if (config.client instanceof LakeFormationClient_1.LakeFormationClient) {
|
|
17
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
18
|
-
}
|
|
19
|
-
else {
|
|
20
|
-
throw new Error("Invalid client, expected LakeFormation | LakeFormationClient");
|
|
21
|
-
}
|
|
22
|
-
yield page;
|
|
23
|
-
const prevToken = token;
|
|
24
|
-
token = page.NextToken;
|
|
25
|
-
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
26
|
-
}
|
|
27
|
-
return undefined;
|
|
28
|
-
}
|
|
29
|
-
exports.paginateListResources = paginateListResources;
|
|
7
|
+
exports.paginateListResources = (0, core_1.createPaginator)(LakeFormationClient_1.LakeFormationClient, ListResourcesCommand_1.ListResourcesCommand, "NextToken", "NextToken", "MaxResults");
|
|
@@ -1,29 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.paginateListTableStorageOptimizers = void 0;
|
|
4
|
+
const core_1 = require("@smithy/core");
|
|
4
5
|
const ListTableStorageOptimizersCommand_1 = require("../commands/ListTableStorageOptimizersCommand");
|
|
5
6
|
const LakeFormationClient_1 = require("../LakeFormationClient");
|
|
6
|
-
|
|
7
|
-
return await client.send(new ListTableStorageOptimizersCommand_1.ListTableStorageOptimizersCommand(input), ...args);
|
|
8
|
-
};
|
|
9
|
-
async function* paginateListTableStorageOptimizers(config, input, ...additionalArguments) {
|
|
10
|
-
let token = config.startingToken || undefined;
|
|
11
|
-
let hasNext = true;
|
|
12
|
-
let page;
|
|
13
|
-
while (hasNext) {
|
|
14
|
-
input.NextToken = token;
|
|
15
|
-
input["MaxResults"] = config.pageSize;
|
|
16
|
-
if (config.client instanceof LakeFormationClient_1.LakeFormationClient) {
|
|
17
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
18
|
-
}
|
|
19
|
-
else {
|
|
20
|
-
throw new Error("Invalid client, expected LakeFormation | LakeFormationClient");
|
|
21
|
-
}
|
|
22
|
-
yield page;
|
|
23
|
-
const prevToken = token;
|
|
24
|
-
token = page.NextToken;
|
|
25
|
-
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
26
|
-
}
|
|
27
|
-
return undefined;
|
|
28
|
-
}
|
|
29
|
-
exports.paginateListTableStorageOptimizers = paginateListTableStorageOptimizers;
|
|
7
|
+
exports.paginateListTableStorageOptimizers = (0, core_1.createPaginator)(LakeFormationClient_1.LakeFormationClient, ListTableStorageOptimizersCommand_1.ListTableStorageOptimizersCommand, "NextToken", "NextToken", "MaxResults");
|
|
@@ -1,29 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.paginateListTransactions = void 0;
|
|
4
|
+
const core_1 = require("@smithy/core");
|
|
4
5
|
const ListTransactionsCommand_1 = require("../commands/ListTransactionsCommand");
|
|
5
6
|
const LakeFormationClient_1 = require("../LakeFormationClient");
|
|
6
|
-
|
|
7
|
-
return await client.send(new ListTransactionsCommand_1.ListTransactionsCommand(input), ...args);
|
|
8
|
-
};
|
|
9
|
-
async function* paginateListTransactions(config, input, ...additionalArguments) {
|
|
10
|
-
let token = config.startingToken || undefined;
|
|
11
|
-
let hasNext = true;
|
|
12
|
-
let page;
|
|
13
|
-
while (hasNext) {
|
|
14
|
-
input.NextToken = token;
|
|
15
|
-
input["MaxResults"] = config.pageSize;
|
|
16
|
-
if (config.client instanceof LakeFormationClient_1.LakeFormationClient) {
|
|
17
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
18
|
-
}
|
|
19
|
-
else {
|
|
20
|
-
throw new Error("Invalid client, expected LakeFormation | LakeFormationClient");
|
|
21
|
-
}
|
|
22
|
-
yield page;
|
|
23
|
-
const prevToken = token;
|
|
24
|
-
token = page.NextToken;
|
|
25
|
-
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
26
|
-
}
|
|
27
|
-
return undefined;
|
|
28
|
-
}
|
|
29
|
-
exports.paginateListTransactions = paginateListTransactions;
|
|
7
|
+
exports.paginateListTransactions = (0, core_1.createPaginator)(LakeFormationClient_1.LakeFormationClient, ListTransactionsCommand_1.ListTransactionsCommand, "NextToken", "NextToken", "MaxResults");
|
|
@@ -1,29 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.paginateSearchDatabasesByLFTags = void 0;
|
|
4
|
+
const core_1 = require("@smithy/core");
|
|
4
5
|
const SearchDatabasesByLFTagsCommand_1 = require("../commands/SearchDatabasesByLFTagsCommand");
|
|
5
6
|
const LakeFormationClient_1 = require("../LakeFormationClient");
|
|
6
|
-
|
|
7
|
-
return await client.send(new SearchDatabasesByLFTagsCommand_1.SearchDatabasesByLFTagsCommand(input), ...args);
|
|
8
|
-
};
|
|
9
|
-
async function* paginateSearchDatabasesByLFTags(config, input, ...additionalArguments) {
|
|
10
|
-
let token = config.startingToken || undefined;
|
|
11
|
-
let hasNext = true;
|
|
12
|
-
let page;
|
|
13
|
-
while (hasNext) {
|
|
14
|
-
input.NextToken = token;
|
|
15
|
-
input["MaxResults"] = config.pageSize;
|
|
16
|
-
if (config.client instanceof LakeFormationClient_1.LakeFormationClient) {
|
|
17
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
18
|
-
}
|
|
19
|
-
else {
|
|
20
|
-
throw new Error("Invalid client, expected LakeFormation | LakeFormationClient");
|
|
21
|
-
}
|
|
22
|
-
yield page;
|
|
23
|
-
const prevToken = token;
|
|
24
|
-
token = page.NextToken;
|
|
25
|
-
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
26
|
-
}
|
|
27
|
-
return undefined;
|
|
28
|
-
}
|
|
29
|
-
exports.paginateSearchDatabasesByLFTags = paginateSearchDatabasesByLFTags;
|
|
7
|
+
exports.paginateSearchDatabasesByLFTags = (0, core_1.createPaginator)(LakeFormationClient_1.LakeFormationClient, SearchDatabasesByLFTagsCommand_1.SearchDatabasesByLFTagsCommand, "NextToken", "NextToken", "MaxResults");
|
|
@@ -1,29 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.paginateSearchTablesByLFTags = void 0;
|
|
4
|
+
const core_1 = require("@smithy/core");
|
|
4
5
|
const SearchTablesByLFTagsCommand_1 = require("../commands/SearchTablesByLFTagsCommand");
|
|
5
6
|
const LakeFormationClient_1 = require("../LakeFormationClient");
|
|
6
|
-
|
|
7
|
-
return await client.send(new SearchTablesByLFTagsCommand_1.SearchTablesByLFTagsCommand(input), ...args);
|
|
8
|
-
};
|
|
9
|
-
async function* paginateSearchTablesByLFTags(config, input, ...additionalArguments) {
|
|
10
|
-
let token = config.startingToken || undefined;
|
|
11
|
-
let hasNext = true;
|
|
12
|
-
let page;
|
|
13
|
-
while (hasNext) {
|
|
14
|
-
input.NextToken = token;
|
|
15
|
-
input["MaxResults"] = config.pageSize;
|
|
16
|
-
if (config.client instanceof LakeFormationClient_1.LakeFormationClient) {
|
|
17
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
18
|
-
}
|
|
19
|
-
else {
|
|
20
|
-
throw new Error("Invalid client, expected LakeFormation | LakeFormationClient");
|
|
21
|
-
}
|
|
22
|
-
yield page;
|
|
23
|
-
const prevToken = token;
|
|
24
|
-
token = page.NextToken;
|
|
25
|
-
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
26
|
-
}
|
|
27
|
-
return undefined;
|
|
28
|
-
}
|
|
29
|
-
exports.paginateSearchTablesByLFTags = paginateSearchTablesByLFTags;
|
|
7
|
+
exports.paginateSearchTablesByLFTags = (0, core_1.createPaginator)(LakeFormationClient_1.LakeFormationClient, SearchTablesByLFTagsCommand_1.SearchTablesByLFTagsCommand, "NextToken", "NextToken", "MaxResults");
|