@aws-sdk/client-athena 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/GetQueryResultsPaginator.js +2 -24
- package/dist-cjs/pagination/ListApplicationDPUSizesPaginator.js +2 -24
- package/dist-cjs/pagination/ListCalculationExecutionsPaginator.js +2 -24
- package/dist-cjs/pagination/ListCapacityReservationsPaginator.js +2 -24
- package/dist-cjs/pagination/ListDataCatalogsPaginator.js +2 -24
- package/dist-cjs/pagination/ListDatabasesPaginator.js +2 -24
- package/dist-cjs/pagination/ListEngineVersionsPaginator.js +2 -24
- package/dist-cjs/pagination/ListExecutorsPaginator.js +2 -24
- package/dist-cjs/pagination/ListNamedQueriesPaginator.js +2 -24
- package/dist-cjs/pagination/ListPreparedStatementsPaginator.js +2 -24
- package/dist-cjs/pagination/ListQueryExecutionsPaginator.js +2 -24
- package/dist-cjs/pagination/ListSessionsPaginator.js +2 -24
- package/dist-cjs/pagination/ListTableMetadataPaginator.js +2 -24
- package/dist-cjs/pagination/ListTagsForResourcePaginator.js +2 -24
- package/dist-cjs/pagination/ListWorkGroupsPaginator.js +2 -24
- package/dist-es/pagination/GetQueryResultsPaginator.js +2 -23
- package/dist-es/pagination/ListApplicationDPUSizesPaginator.js +2 -23
- package/dist-es/pagination/ListCalculationExecutionsPaginator.js +2 -23
- package/dist-es/pagination/ListCapacityReservationsPaginator.js +2 -23
- package/dist-es/pagination/ListDataCatalogsPaginator.js +2 -23
- package/dist-es/pagination/ListDatabasesPaginator.js +2 -23
- package/dist-es/pagination/ListEngineVersionsPaginator.js +2 -23
- package/dist-es/pagination/ListExecutorsPaginator.js +2 -23
- package/dist-es/pagination/ListNamedQueriesPaginator.js +2 -23
- package/dist-es/pagination/ListPreparedStatementsPaginator.js +2 -23
- package/dist-es/pagination/ListQueryExecutionsPaginator.js +2 -23
- package/dist-es/pagination/ListSessionsPaginator.js +2 -23
- package/dist-es/pagination/ListTableMetadataPaginator.js +2 -23
- package/dist-es/pagination/ListTagsForResourcePaginator.js +2 -23
- package/dist-es/pagination/ListWorkGroupsPaginator.js +2 -23
- package/dist-types/pagination/GetQueryResultsPaginator.d.ts +1 -1
- package/dist-types/pagination/ListApplicationDPUSizesPaginator.d.ts +1 -1
- package/dist-types/pagination/ListCalculationExecutionsPaginator.d.ts +1 -1
- package/dist-types/pagination/ListCapacityReservationsPaginator.d.ts +1 -1
- package/dist-types/pagination/ListDataCatalogsPaginator.d.ts +1 -1
- package/dist-types/pagination/ListDatabasesPaginator.d.ts +1 -1
- package/dist-types/pagination/ListEngineVersionsPaginator.d.ts +1 -1
- package/dist-types/pagination/ListExecutorsPaginator.d.ts +1 -1
- package/dist-types/pagination/ListNamedQueriesPaginator.d.ts +1 -1
- package/dist-types/pagination/ListPreparedStatementsPaginator.d.ts +1 -1
- package/dist-types/pagination/ListQueryExecutionsPaginator.d.ts +1 -1
- package/dist-types/pagination/ListSessionsPaginator.d.ts +1 -1
- package/dist-types/pagination/ListTableMetadataPaginator.d.ts +1 -1
- package/dist-types/pagination/ListTagsForResourcePaginator.d.ts +1 -1
- package/dist-types/pagination/ListWorkGroupsPaginator.d.ts +1 -1
- package/dist-types/ts3.4/pagination/GetQueryResultsPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListApplicationDPUSizesPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListCalculationExecutionsPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListCapacityReservationsPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListDataCatalogsPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListDatabasesPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListEngineVersionsPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListExecutorsPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListNamedQueriesPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListPreparedStatementsPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListQueryExecutionsPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListSessionsPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListTableMetadataPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListTagsForResourcePaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListWorkGroupsPaginator.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.paginateGetQueryResults = void 0;
|
|
4
|
+
const core_1 = require("@smithy/core");
|
|
4
5
|
const AthenaClient_1 = require("../AthenaClient");
|
|
5
6
|
const GetQueryResultsCommand_1 = require("../commands/GetQueryResultsCommand");
|
|
6
|
-
|
|
7
|
-
return await client.send(new GetQueryResultsCommand_1.GetQueryResultsCommand(input), ...args);
|
|
8
|
-
};
|
|
9
|
-
async function* paginateGetQueryResults(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 AthenaClient_1.AthenaClient) {
|
|
17
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
18
|
-
}
|
|
19
|
-
else {
|
|
20
|
-
throw new Error("Invalid client, expected Athena | AthenaClient");
|
|
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.paginateGetQueryResults = paginateGetQueryResults;
|
|
7
|
+
exports.paginateGetQueryResults = (0, core_1.createPaginator)(AthenaClient_1.AthenaClient, GetQueryResultsCommand_1.GetQueryResultsCommand, "NextToken", "NextToken", "MaxResults");
|
|
@@ -1,29 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.paginateListApplicationDPUSizes = void 0;
|
|
4
|
+
const core_1 = require("@smithy/core");
|
|
4
5
|
const AthenaClient_1 = require("../AthenaClient");
|
|
5
6
|
const ListApplicationDPUSizesCommand_1 = require("../commands/ListApplicationDPUSizesCommand");
|
|
6
|
-
|
|
7
|
-
return await client.send(new ListApplicationDPUSizesCommand_1.ListApplicationDPUSizesCommand(input), ...args);
|
|
8
|
-
};
|
|
9
|
-
async function* paginateListApplicationDPUSizes(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 AthenaClient_1.AthenaClient) {
|
|
17
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
18
|
-
}
|
|
19
|
-
else {
|
|
20
|
-
throw new Error("Invalid client, expected Athena | AthenaClient");
|
|
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.paginateListApplicationDPUSizes = paginateListApplicationDPUSizes;
|
|
7
|
+
exports.paginateListApplicationDPUSizes = (0, core_1.createPaginator)(AthenaClient_1.AthenaClient, ListApplicationDPUSizesCommand_1.ListApplicationDPUSizesCommand, "NextToken", "NextToken", "MaxResults");
|
|
@@ -1,29 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.paginateListCalculationExecutions = void 0;
|
|
4
|
+
const core_1 = require("@smithy/core");
|
|
4
5
|
const AthenaClient_1 = require("../AthenaClient");
|
|
5
6
|
const ListCalculationExecutionsCommand_1 = require("../commands/ListCalculationExecutionsCommand");
|
|
6
|
-
|
|
7
|
-
return await client.send(new ListCalculationExecutionsCommand_1.ListCalculationExecutionsCommand(input), ...args);
|
|
8
|
-
};
|
|
9
|
-
async function* paginateListCalculationExecutions(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 AthenaClient_1.AthenaClient) {
|
|
17
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
18
|
-
}
|
|
19
|
-
else {
|
|
20
|
-
throw new Error("Invalid client, expected Athena | AthenaClient");
|
|
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.paginateListCalculationExecutions = paginateListCalculationExecutions;
|
|
7
|
+
exports.paginateListCalculationExecutions = (0, core_1.createPaginator)(AthenaClient_1.AthenaClient, ListCalculationExecutionsCommand_1.ListCalculationExecutionsCommand, "NextToken", "NextToken", "MaxResults");
|
|
@@ -1,29 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.paginateListCapacityReservations = void 0;
|
|
4
|
+
const core_1 = require("@smithy/core");
|
|
4
5
|
const AthenaClient_1 = require("../AthenaClient");
|
|
5
6
|
const ListCapacityReservationsCommand_1 = require("../commands/ListCapacityReservationsCommand");
|
|
6
|
-
|
|
7
|
-
return await client.send(new ListCapacityReservationsCommand_1.ListCapacityReservationsCommand(input), ...args);
|
|
8
|
-
};
|
|
9
|
-
async function* paginateListCapacityReservations(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 AthenaClient_1.AthenaClient) {
|
|
17
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
18
|
-
}
|
|
19
|
-
else {
|
|
20
|
-
throw new Error("Invalid client, expected Athena | AthenaClient");
|
|
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.paginateListCapacityReservations = paginateListCapacityReservations;
|
|
7
|
+
exports.paginateListCapacityReservations = (0, core_1.createPaginator)(AthenaClient_1.AthenaClient, ListCapacityReservationsCommand_1.ListCapacityReservationsCommand, "NextToken", "NextToken", "MaxResults");
|
|
@@ -1,29 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.paginateListDataCatalogs = void 0;
|
|
4
|
+
const core_1 = require("@smithy/core");
|
|
4
5
|
const AthenaClient_1 = require("../AthenaClient");
|
|
5
6
|
const ListDataCatalogsCommand_1 = require("../commands/ListDataCatalogsCommand");
|
|
6
|
-
|
|
7
|
-
return await client.send(new ListDataCatalogsCommand_1.ListDataCatalogsCommand(input), ...args);
|
|
8
|
-
};
|
|
9
|
-
async function* paginateListDataCatalogs(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 AthenaClient_1.AthenaClient) {
|
|
17
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
18
|
-
}
|
|
19
|
-
else {
|
|
20
|
-
throw new Error("Invalid client, expected Athena | AthenaClient");
|
|
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.paginateListDataCatalogs = paginateListDataCatalogs;
|
|
7
|
+
exports.paginateListDataCatalogs = (0, core_1.createPaginator)(AthenaClient_1.AthenaClient, ListDataCatalogsCommand_1.ListDataCatalogsCommand, "NextToken", "NextToken", "MaxResults");
|
|
@@ -1,29 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.paginateListDatabases = void 0;
|
|
4
|
+
const core_1 = require("@smithy/core");
|
|
4
5
|
const AthenaClient_1 = require("../AthenaClient");
|
|
5
6
|
const ListDatabasesCommand_1 = require("../commands/ListDatabasesCommand");
|
|
6
|
-
|
|
7
|
-
return await client.send(new ListDatabasesCommand_1.ListDatabasesCommand(input), ...args);
|
|
8
|
-
};
|
|
9
|
-
async function* paginateListDatabases(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 AthenaClient_1.AthenaClient) {
|
|
17
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
18
|
-
}
|
|
19
|
-
else {
|
|
20
|
-
throw new Error("Invalid client, expected Athena | AthenaClient");
|
|
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.paginateListDatabases = paginateListDatabases;
|
|
7
|
+
exports.paginateListDatabases = (0, core_1.createPaginator)(AthenaClient_1.AthenaClient, ListDatabasesCommand_1.ListDatabasesCommand, "NextToken", "NextToken", "MaxResults");
|
|
@@ -1,29 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.paginateListEngineVersions = void 0;
|
|
4
|
+
const core_1 = require("@smithy/core");
|
|
4
5
|
const AthenaClient_1 = require("../AthenaClient");
|
|
5
6
|
const ListEngineVersionsCommand_1 = require("../commands/ListEngineVersionsCommand");
|
|
6
|
-
|
|
7
|
-
return await client.send(new ListEngineVersionsCommand_1.ListEngineVersionsCommand(input), ...args);
|
|
8
|
-
};
|
|
9
|
-
async function* paginateListEngineVersions(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 AthenaClient_1.AthenaClient) {
|
|
17
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
18
|
-
}
|
|
19
|
-
else {
|
|
20
|
-
throw new Error("Invalid client, expected Athena | AthenaClient");
|
|
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.paginateListEngineVersions = paginateListEngineVersions;
|
|
7
|
+
exports.paginateListEngineVersions = (0, core_1.createPaginator)(AthenaClient_1.AthenaClient, ListEngineVersionsCommand_1.ListEngineVersionsCommand, "NextToken", "NextToken", "MaxResults");
|
|
@@ -1,29 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.paginateListExecutors = void 0;
|
|
4
|
+
const core_1 = require("@smithy/core");
|
|
4
5
|
const AthenaClient_1 = require("../AthenaClient");
|
|
5
6
|
const ListExecutorsCommand_1 = require("../commands/ListExecutorsCommand");
|
|
6
|
-
|
|
7
|
-
return await client.send(new ListExecutorsCommand_1.ListExecutorsCommand(input), ...args);
|
|
8
|
-
};
|
|
9
|
-
async function* paginateListExecutors(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 AthenaClient_1.AthenaClient) {
|
|
17
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
18
|
-
}
|
|
19
|
-
else {
|
|
20
|
-
throw new Error("Invalid client, expected Athena | AthenaClient");
|
|
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.paginateListExecutors = paginateListExecutors;
|
|
7
|
+
exports.paginateListExecutors = (0, core_1.createPaginator)(AthenaClient_1.AthenaClient, ListExecutorsCommand_1.ListExecutorsCommand, "NextToken", "NextToken", "MaxResults");
|
|
@@ -1,29 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.paginateListNamedQueries = void 0;
|
|
4
|
+
const core_1 = require("@smithy/core");
|
|
4
5
|
const AthenaClient_1 = require("../AthenaClient");
|
|
5
6
|
const ListNamedQueriesCommand_1 = require("../commands/ListNamedQueriesCommand");
|
|
6
|
-
|
|
7
|
-
return await client.send(new ListNamedQueriesCommand_1.ListNamedQueriesCommand(input), ...args);
|
|
8
|
-
};
|
|
9
|
-
async function* paginateListNamedQueries(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 AthenaClient_1.AthenaClient) {
|
|
17
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
18
|
-
}
|
|
19
|
-
else {
|
|
20
|
-
throw new Error("Invalid client, expected Athena | AthenaClient");
|
|
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.paginateListNamedQueries = paginateListNamedQueries;
|
|
7
|
+
exports.paginateListNamedQueries = (0, core_1.createPaginator)(AthenaClient_1.AthenaClient, ListNamedQueriesCommand_1.ListNamedQueriesCommand, "NextToken", "NextToken", "MaxResults");
|
|
@@ -1,29 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.paginateListPreparedStatements = void 0;
|
|
4
|
+
const core_1 = require("@smithy/core");
|
|
4
5
|
const AthenaClient_1 = require("../AthenaClient");
|
|
5
6
|
const ListPreparedStatementsCommand_1 = require("../commands/ListPreparedStatementsCommand");
|
|
6
|
-
|
|
7
|
-
return await client.send(new ListPreparedStatementsCommand_1.ListPreparedStatementsCommand(input), ...args);
|
|
8
|
-
};
|
|
9
|
-
async function* paginateListPreparedStatements(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 AthenaClient_1.AthenaClient) {
|
|
17
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
18
|
-
}
|
|
19
|
-
else {
|
|
20
|
-
throw new Error("Invalid client, expected Athena | AthenaClient");
|
|
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.paginateListPreparedStatements = paginateListPreparedStatements;
|
|
7
|
+
exports.paginateListPreparedStatements = (0, core_1.createPaginator)(AthenaClient_1.AthenaClient, ListPreparedStatementsCommand_1.ListPreparedStatementsCommand, "NextToken", "NextToken", "MaxResults");
|
|
@@ -1,29 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.paginateListQueryExecutions = void 0;
|
|
4
|
+
const core_1 = require("@smithy/core");
|
|
4
5
|
const AthenaClient_1 = require("../AthenaClient");
|
|
5
6
|
const ListQueryExecutionsCommand_1 = require("../commands/ListQueryExecutionsCommand");
|
|
6
|
-
|
|
7
|
-
return await client.send(new ListQueryExecutionsCommand_1.ListQueryExecutionsCommand(input), ...args);
|
|
8
|
-
};
|
|
9
|
-
async function* paginateListQueryExecutions(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 AthenaClient_1.AthenaClient) {
|
|
17
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
18
|
-
}
|
|
19
|
-
else {
|
|
20
|
-
throw new Error("Invalid client, expected Athena | AthenaClient");
|
|
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.paginateListQueryExecutions = paginateListQueryExecutions;
|
|
7
|
+
exports.paginateListQueryExecutions = (0, core_1.createPaginator)(AthenaClient_1.AthenaClient, ListQueryExecutionsCommand_1.ListQueryExecutionsCommand, "NextToken", "NextToken", "MaxResults");
|
|
@@ -1,29 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.paginateListSessions = void 0;
|
|
4
|
+
const core_1 = require("@smithy/core");
|
|
4
5
|
const AthenaClient_1 = require("../AthenaClient");
|
|
5
6
|
const ListSessionsCommand_1 = require("../commands/ListSessionsCommand");
|
|
6
|
-
|
|
7
|
-
return await client.send(new ListSessionsCommand_1.ListSessionsCommand(input), ...args);
|
|
8
|
-
};
|
|
9
|
-
async function* paginateListSessions(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 AthenaClient_1.AthenaClient) {
|
|
17
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
18
|
-
}
|
|
19
|
-
else {
|
|
20
|
-
throw new Error("Invalid client, expected Athena | AthenaClient");
|
|
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.paginateListSessions = paginateListSessions;
|
|
7
|
+
exports.paginateListSessions = (0, core_1.createPaginator)(AthenaClient_1.AthenaClient, ListSessionsCommand_1.ListSessionsCommand, "NextToken", "NextToken", "MaxResults");
|
|
@@ -1,29 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.paginateListTableMetadata = void 0;
|
|
4
|
+
const core_1 = require("@smithy/core");
|
|
4
5
|
const AthenaClient_1 = require("../AthenaClient");
|
|
5
6
|
const ListTableMetadataCommand_1 = require("../commands/ListTableMetadataCommand");
|
|
6
|
-
|
|
7
|
-
return await client.send(new ListTableMetadataCommand_1.ListTableMetadataCommand(input), ...args);
|
|
8
|
-
};
|
|
9
|
-
async function* paginateListTableMetadata(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 AthenaClient_1.AthenaClient) {
|
|
17
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
18
|
-
}
|
|
19
|
-
else {
|
|
20
|
-
throw new Error("Invalid client, expected Athena | AthenaClient");
|
|
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.paginateListTableMetadata = paginateListTableMetadata;
|
|
7
|
+
exports.paginateListTableMetadata = (0, core_1.createPaginator)(AthenaClient_1.AthenaClient, ListTableMetadataCommand_1.ListTableMetadataCommand, "NextToken", "NextToken", "MaxResults");
|
|
@@ -1,29 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.paginateListTagsForResource = void 0;
|
|
4
|
+
const core_1 = require("@smithy/core");
|
|
4
5
|
const AthenaClient_1 = require("../AthenaClient");
|
|
5
6
|
const ListTagsForResourceCommand_1 = require("../commands/ListTagsForResourceCommand");
|
|
6
|
-
|
|
7
|
-
return await client.send(new ListTagsForResourceCommand_1.ListTagsForResourceCommand(input), ...args);
|
|
8
|
-
};
|
|
9
|
-
async function* paginateListTagsForResource(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 AthenaClient_1.AthenaClient) {
|
|
17
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
18
|
-
}
|
|
19
|
-
else {
|
|
20
|
-
throw new Error("Invalid client, expected Athena | AthenaClient");
|
|
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.paginateListTagsForResource = paginateListTagsForResource;
|
|
7
|
+
exports.paginateListTagsForResource = (0, core_1.createPaginator)(AthenaClient_1.AthenaClient, ListTagsForResourceCommand_1.ListTagsForResourceCommand, "NextToken", "NextToken", "MaxResults");
|
|
@@ -1,29 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.paginateListWorkGroups = void 0;
|
|
4
|
+
const core_1 = require("@smithy/core");
|
|
4
5
|
const AthenaClient_1 = require("../AthenaClient");
|
|
5
6
|
const ListWorkGroupsCommand_1 = require("../commands/ListWorkGroupsCommand");
|
|
6
|
-
|
|
7
|
-
return await client.send(new ListWorkGroupsCommand_1.ListWorkGroupsCommand(input), ...args);
|
|
8
|
-
};
|
|
9
|
-
async function* paginateListWorkGroups(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 AthenaClient_1.AthenaClient) {
|
|
17
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
18
|
-
}
|
|
19
|
-
else {
|
|
20
|
-
throw new Error("Invalid client, expected Athena | AthenaClient");
|
|
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.paginateListWorkGroups = paginateListWorkGroups;
|
|
7
|
+
exports.paginateListWorkGroups = (0, core_1.createPaginator)(AthenaClient_1.AthenaClient, ListWorkGroupsCommand_1.ListWorkGroupsCommand, "NextToken", "NextToken", "MaxResults");
|
|
@@ -1,25 +1,4 @@
|
|
|
1
|
+
import { createPaginator } from "@smithy/core";
|
|
1
2
|
import { AthenaClient } from "../AthenaClient";
|
|
2
3
|
import { GetQueryResultsCommand, } from "../commands/GetQueryResultsCommand";
|
|
3
|
-
const
|
|
4
|
-
return await client.send(new GetQueryResultsCommand(input), ...args);
|
|
5
|
-
};
|
|
6
|
-
export async function* paginateGetQueryResults(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 AthenaClient) {
|
|
14
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
15
|
-
}
|
|
16
|
-
else {
|
|
17
|
-
throw new Error("Invalid client, expected Athena | AthenaClient");
|
|
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 paginateGetQueryResults = createPaginator(AthenaClient, GetQueryResultsCommand, "NextToken", "NextToken", "MaxResults");
|
|
@@ -1,25 +1,4 @@
|
|
|
1
|
+
import { createPaginator } from "@smithy/core";
|
|
1
2
|
import { AthenaClient } from "../AthenaClient";
|
|
2
3
|
import { ListApplicationDPUSizesCommand, } from "../commands/ListApplicationDPUSizesCommand";
|
|
3
|
-
const
|
|
4
|
-
return await client.send(new ListApplicationDPUSizesCommand(input), ...args);
|
|
5
|
-
};
|
|
6
|
-
export async function* paginateListApplicationDPUSizes(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 AthenaClient) {
|
|
14
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
15
|
-
}
|
|
16
|
-
else {
|
|
17
|
-
throw new Error("Invalid client, expected Athena | AthenaClient");
|
|
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 paginateListApplicationDPUSizes = createPaginator(AthenaClient, ListApplicationDPUSizesCommand, "NextToken", "NextToken", "MaxResults");
|
|
@@ -1,25 +1,4 @@
|
|
|
1
|
+
import { createPaginator } from "@smithy/core";
|
|
1
2
|
import { AthenaClient } from "../AthenaClient";
|
|
2
3
|
import { ListCalculationExecutionsCommand, } from "../commands/ListCalculationExecutionsCommand";
|
|
3
|
-
const
|
|
4
|
-
return await client.send(new ListCalculationExecutionsCommand(input), ...args);
|
|
5
|
-
};
|
|
6
|
-
export async function* paginateListCalculationExecutions(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 AthenaClient) {
|
|
14
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
15
|
-
}
|
|
16
|
-
else {
|
|
17
|
-
throw new Error("Invalid client, expected Athena | AthenaClient");
|
|
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 paginateListCalculationExecutions = createPaginator(AthenaClient, ListCalculationExecutionsCommand, "NextToken", "NextToken", "MaxResults");
|
|
@@ -1,25 +1,4 @@
|
|
|
1
|
+
import { createPaginator } from "@smithy/core";
|
|
1
2
|
import { AthenaClient } from "../AthenaClient";
|
|
2
3
|
import { ListCapacityReservationsCommand, } from "../commands/ListCapacityReservationsCommand";
|
|
3
|
-
const
|
|
4
|
-
return await client.send(new ListCapacityReservationsCommand(input), ...args);
|
|
5
|
-
};
|
|
6
|
-
export async function* paginateListCapacityReservations(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 AthenaClient) {
|
|
14
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
15
|
-
}
|
|
16
|
-
else {
|
|
17
|
-
throw new Error("Invalid client, expected Athena | AthenaClient");
|
|
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 paginateListCapacityReservations = createPaginator(AthenaClient, ListCapacityReservationsCommand, "NextToken", "NextToken", "MaxResults");
|
|
@@ -1,25 +1,4 @@
|
|
|
1
|
+
import { createPaginator } from "@smithy/core";
|
|
1
2
|
import { AthenaClient } from "../AthenaClient";
|
|
2
3
|
import { ListDataCatalogsCommand, } from "../commands/ListDataCatalogsCommand";
|
|
3
|
-
const
|
|
4
|
-
return await client.send(new ListDataCatalogsCommand(input), ...args);
|
|
5
|
-
};
|
|
6
|
-
export async function* paginateListDataCatalogs(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 AthenaClient) {
|
|
14
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
15
|
-
}
|
|
16
|
-
else {
|
|
17
|
-
throw new Error("Invalid client, expected Athena | AthenaClient");
|
|
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 paginateListDataCatalogs = createPaginator(AthenaClient, ListDataCatalogsCommand, "NextToken", "NextToken", "MaxResults");
|