@aws-sdk/client-lakeformation 3.477.0 → 3.480.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 +12 -0
- 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 +12 -0
- package/dist-types/commands/GetTemporaryGlueTableCredentialsCommand.d.ts +13 -0
- package/dist-types/models/models_0.d.ts +47 -1
- 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/models/models_0.d.ts +10 -0
- 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 +5 -5
|
@@ -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");
|
|
@@ -483,6 +483,8 @@ const se_GetTemporaryGlueTableCredentialsCommand = async (input, context) => {
|
|
|
483
483
|
AuditContext: (_) => (0, smithy_client_1._json)(_),
|
|
484
484
|
DurationSeconds: [],
|
|
485
485
|
Permissions: (_) => (0, smithy_client_1._json)(_),
|
|
486
|
+
QuerySessionContext: (_) => se_QuerySessionContext(_, context),
|
|
487
|
+
S3Path: [],
|
|
486
488
|
SupportedPermissionTypes: (_) => (0, smithy_client_1._json)(_),
|
|
487
489
|
TableArn: [],
|
|
488
490
|
}));
|
|
@@ -2257,6 +2259,7 @@ const de_GetTemporaryGlueTableCredentialsCommand = async (output, context) => {
|
|
|
2257
2259
|
Expiration: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
2258
2260
|
SecretAccessKey: smithy_client_1.expectString,
|
|
2259
2261
|
SessionToken: smithy_client_1.expectString,
|
|
2262
|
+
VendedS3Path: smithy_client_1._json,
|
|
2260
2263
|
});
|
|
2261
2264
|
Object.assign(contents, doc);
|
|
2262
2265
|
return contents;
|
|
@@ -3590,6 +3593,15 @@ const se_QueryPlanningContext = (input, context) => {
|
|
|
3590
3593
|
TransactionId: [],
|
|
3591
3594
|
});
|
|
3592
3595
|
};
|
|
3596
|
+
const se_QuerySessionContext = (input, context) => {
|
|
3597
|
+
return (0, smithy_client_1.take)(input, {
|
|
3598
|
+
AdditionalContext: smithy_client_1._json,
|
|
3599
|
+
ClusterId: [],
|
|
3600
|
+
QueryAuthorizationId: [],
|
|
3601
|
+
QueryId: [],
|
|
3602
|
+
QueryStartTime: (_) => Math.round(_.getTime() / 1000),
|
|
3603
|
+
});
|
|
3604
|
+
};
|
|
3593
3605
|
const de_LakeFormationOptInsInfo = (output, context) => {
|
|
3594
3606
|
return (0, smithy_client_1.take)(output, {
|
|
3595
3607
|
LastModified: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
@@ -1,25 +1,4 @@
|
|
|
1
|
+
import { createPaginator } from "@smithy/core";
|
|
1
2
|
import { GetEffectivePermissionsForPathCommand, } from "../commands/GetEffectivePermissionsForPathCommand";
|
|
2
3
|
import { LakeFormationClient } from "../LakeFormationClient";
|
|
3
|
-
const
|
|
4
|
-
return await client.send(new GetEffectivePermissionsForPathCommand(input), ...args);
|
|
5
|
-
};
|
|
6
|
-
export async function* paginateGetEffectivePermissionsForPath(config, input, ...additionalArguments) {
|
|
7
|
-
let token = config.startingToken || undefined;
|
|
8
|
-
let hasNext = true;
|
|
9
|
-
let page;
|
|
10
|
-
while (hasNext) {
|
|
11
|
-
input.NextToken = token;
|
|
12
|
-
input["MaxResults"] = config.pageSize;
|
|
13
|
-
if (config.client instanceof LakeFormationClient) {
|
|
14
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
15
|
-
}
|
|
16
|
-
else {
|
|
17
|
-
throw new Error("Invalid client, expected LakeFormation | LakeFormationClient");
|
|
18
|
-
}
|
|
19
|
-
yield page;
|
|
20
|
-
const prevToken = token;
|
|
21
|
-
token = page.NextToken;
|
|
22
|
-
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
23
|
-
}
|
|
24
|
-
return undefined;
|
|
25
|
-
}
|
|
4
|
+
export const paginateGetEffectivePermissionsForPath = createPaginator(LakeFormationClient, GetEffectivePermissionsForPathCommand, "NextToken", "NextToken", "MaxResults");
|
|
@@ -1,25 +1,4 @@
|
|
|
1
|
+
import { createPaginator } from "@smithy/core";
|
|
1
2
|
import { GetTableObjectsCommand, } from "../commands/GetTableObjectsCommand";
|
|
2
3
|
import { LakeFormationClient } from "../LakeFormationClient";
|
|
3
|
-
const
|
|
4
|
-
return await client.send(new GetTableObjectsCommand(input), ...args);
|
|
5
|
-
};
|
|
6
|
-
export async function* paginateGetTableObjects(config, input, ...additionalArguments) {
|
|
7
|
-
let token = config.startingToken || undefined;
|
|
8
|
-
let hasNext = true;
|
|
9
|
-
let page;
|
|
10
|
-
while (hasNext) {
|
|
11
|
-
input.NextToken = token;
|
|
12
|
-
input["MaxResults"] = config.pageSize;
|
|
13
|
-
if (config.client instanceof LakeFormationClient) {
|
|
14
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
15
|
-
}
|
|
16
|
-
else {
|
|
17
|
-
throw new Error("Invalid client, expected LakeFormation | LakeFormationClient");
|
|
18
|
-
}
|
|
19
|
-
yield page;
|
|
20
|
-
const prevToken = token;
|
|
21
|
-
token = page.NextToken;
|
|
22
|
-
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
23
|
-
}
|
|
24
|
-
return undefined;
|
|
25
|
-
}
|
|
4
|
+
export const paginateGetTableObjects = createPaginator(LakeFormationClient, GetTableObjectsCommand, "NextToken", "NextToken", "MaxResults");
|
|
@@ -1,25 +1,4 @@
|
|
|
1
|
+
import { createPaginator } from "@smithy/core";
|
|
1
2
|
import { GetWorkUnitsCommand, } from "../commands/GetWorkUnitsCommand";
|
|
2
3
|
import { LakeFormationClient } from "../LakeFormationClient";
|
|
3
|
-
const
|
|
4
|
-
return await client.send(new GetWorkUnitsCommand(input), ...args);
|
|
5
|
-
};
|
|
6
|
-
export async function* paginateGetWorkUnits(config, input, ...additionalArguments) {
|
|
7
|
-
let token = config.startingToken || undefined;
|
|
8
|
-
let hasNext = true;
|
|
9
|
-
let page;
|
|
10
|
-
while (hasNext) {
|
|
11
|
-
input.NextToken = token;
|
|
12
|
-
input["PageSize"] = config.pageSize;
|
|
13
|
-
if (config.client instanceof LakeFormationClient) {
|
|
14
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
15
|
-
}
|
|
16
|
-
else {
|
|
17
|
-
throw new Error("Invalid client, expected LakeFormation | LakeFormationClient");
|
|
18
|
-
}
|
|
19
|
-
yield page;
|
|
20
|
-
const prevToken = token;
|
|
21
|
-
token = page.NextToken;
|
|
22
|
-
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
23
|
-
}
|
|
24
|
-
return undefined;
|
|
25
|
-
}
|
|
4
|
+
export const paginateGetWorkUnits = createPaginator(LakeFormationClient, GetWorkUnitsCommand, "NextToken", "NextToken", "PageSize");
|
|
@@ -1,25 +1,4 @@
|
|
|
1
|
+
import { createPaginator } from "@smithy/core";
|
|
1
2
|
import { ListDataCellsFilterCommand, } from "../commands/ListDataCellsFilterCommand";
|
|
2
3
|
import { LakeFormationClient } from "../LakeFormationClient";
|
|
3
|
-
const
|
|
4
|
-
return await client.send(new ListDataCellsFilterCommand(input), ...args);
|
|
5
|
-
};
|
|
6
|
-
export async function* paginateListDataCellsFilter(config, input, ...additionalArguments) {
|
|
7
|
-
let token = config.startingToken || undefined;
|
|
8
|
-
let hasNext = true;
|
|
9
|
-
let page;
|
|
10
|
-
while (hasNext) {
|
|
11
|
-
input.NextToken = token;
|
|
12
|
-
input["MaxResults"] = config.pageSize;
|
|
13
|
-
if (config.client instanceof LakeFormationClient) {
|
|
14
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
15
|
-
}
|
|
16
|
-
else {
|
|
17
|
-
throw new Error("Invalid client, expected LakeFormation | LakeFormationClient");
|
|
18
|
-
}
|
|
19
|
-
yield page;
|
|
20
|
-
const prevToken = token;
|
|
21
|
-
token = page.NextToken;
|
|
22
|
-
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
23
|
-
}
|
|
24
|
-
return undefined;
|
|
25
|
-
}
|
|
4
|
+
export const paginateListDataCellsFilter = createPaginator(LakeFormationClient, ListDataCellsFilterCommand, "NextToken", "NextToken", "MaxResults");
|
|
@@ -1,25 +1,4 @@
|
|
|
1
|
+
import { createPaginator } from "@smithy/core";
|
|
1
2
|
import { ListLFTagsCommand } from "../commands/ListLFTagsCommand";
|
|
2
3
|
import { LakeFormationClient } from "../LakeFormationClient";
|
|
3
|
-
const
|
|
4
|
-
return await client.send(new ListLFTagsCommand(input), ...args);
|
|
5
|
-
};
|
|
6
|
-
export async function* paginateListLFTags(config, input, ...additionalArguments) {
|
|
7
|
-
let token = config.startingToken || undefined;
|
|
8
|
-
let hasNext = true;
|
|
9
|
-
let page;
|
|
10
|
-
while (hasNext) {
|
|
11
|
-
input.NextToken = token;
|
|
12
|
-
input["MaxResults"] = config.pageSize;
|
|
13
|
-
if (config.client instanceof LakeFormationClient) {
|
|
14
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
15
|
-
}
|
|
16
|
-
else {
|
|
17
|
-
throw new Error("Invalid client, expected LakeFormation | LakeFormationClient");
|
|
18
|
-
}
|
|
19
|
-
yield page;
|
|
20
|
-
const prevToken = token;
|
|
21
|
-
token = page.NextToken;
|
|
22
|
-
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
23
|
-
}
|
|
24
|
-
return undefined;
|
|
25
|
-
}
|
|
4
|
+
export const paginateListLFTags = createPaginator(LakeFormationClient, ListLFTagsCommand, "NextToken", "NextToken", "MaxResults");
|
|
@@ -1,25 +1,4 @@
|
|
|
1
|
+
import { createPaginator } from "@smithy/core";
|
|
1
2
|
import { ListLakeFormationOptInsCommand, } from "../commands/ListLakeFormationOptInsCommand";
|
|
2
3
|
import { LakeFormationClient } from "../LakeFormationClient";
|
|
3
|
-
const
|
|
4
|
-
return await client.send(new ListLakeFormationOptInsCommand(input), ...args);
|
|
5
|
-
};
|
|
6
|
-
export async function* paginateListLakeFormationOptIns(config, input, ...additionalArguments) {
|
|
7
|
-
let token = config.startingToken || undefined;
|
|
8
|
-
let hasNext = true;
|
|
9
|
-
let page;
|
|
10
|
-
while (hasNext) {
|
|
11
|
-
input.NextToken = token;
|
|
12
|
-
input["MaxResults"] = config.pageSize;
|
|
13
|
-
if (config.client instanceof LakeFormationClient) {
|
|
14
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
15
|
-
}
|
|
16
|
-
else {
|
|
17
|
-
throw new Error("Invalid client, expected LakeFormation | LakeFormationClient");
|
|
18
|
-
}
|
|
19
|
-
yield page;
|
|
20
|
-
const prevToken = token;
|
|
21
|
-
token = page.NextToken;
|
|
22
|
-
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
23
|
-
}
|
|
24
|
-
return undefined;
|
|
25
|
-
}
|
|
4
|
+
export const paginateListLakeFormationOptIns = createPaginator(LakeFormationClient, ListLakeFormationOptInsCommand, "NextToken", "NextToken", "MaxResults");
|
|
@@ -1,25 +1,4 @@
|
|
|
1
|
+
import { createPaginator } from "@smithy/core";
|
|
1
2
|
import { ListPermissionsCommand, } from "../commands/ListPermissionsCommand";
|
|
2
3
|
import { LakeFormationClient } from "../LakeFormationClient";
|
|
3
|
-
const
|
|
4
|
-
return await client.send(new ListPermissionsCommand(input), ...args);
|
|
5
|
-
};
|
|
6
|
-
export async function* paginateListPermissions(config, input, ...additionalArguments) {
|
|
7
|
-
let token = config.startingToken || undefined;
|
|
8
|
-
let hasNext = true;
|
|
9
|
-
let page;
|
|
10
|
-
while (hasNext) {
|
|
11
|
-
input.NextToken = token;
|
|
12
|
-
input["MaxResults"] = config.pageSize;
|
|
13
|
-
if (config.client instanceof LakeFormationClient) {
|
|
14
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
15
|
-
}
|
|
16
|
-
else {
|
|
17
|
-
throw new Error("Invalid client, expected LakeFormation | LakeFormationClient");
|
|
18
|
-
}
|
|
19
|
-
yield page;
|
|
20
|
-
const prevToken = token;
|
|
21
|
-
token = page.NextToken;
|
|
22
|
-
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
23
|
-
}
|
|
24
|
-
return undefined;
|
|
25
|
-
}
|
|
4
|
+
export const paginateListPermissions = createPaginator(LakeFormationClient, ListPermissionsCommand, "NextToken", "NextToken", "MaxResults");
|