@aws-sdk/client-athena 3.218.0 → 3.221.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/Athena.js +345 -0
- package/dist-cjs/commands/CreateNotebookCommand.js +46 -0
- package/dist-cjs/commands/CreatePresignedNotebookUrlCommand.js +46 -0
- package/dist-cjs/commands/DeleteNotebookCommand.js +46 -0
- package/dist-cjs/commands/ExportNotebookCommand.js +46 -0
- package/dist-cjs/commands/GetCalculationExecutionCodeCommand.js +46 -0
- package/dist-cjs/commands/GetCalculationExecutionCommand.js +46 -0
- package/dist-cjs/commands/GetCalculationExecutionStatusCommand.js +46 -0
- package/dist-cjs/commands/GetNotebookMetadataCommand.js +46 -0
- package/dist-cjs/commands/GetSessionCommand.js +46 -0
- package/dist-cjs/commands/GetSessionStatusCommand.js +46 -0
- package/dist-cjs/commands/ImportNotebookCommand.js +46 -0
- package/dist-cjs/commands/ListApplicationDPUSizesCommand.js +46 -0
- package/dist-cjs/commands/ListCalculationExecutionsCommand.js +46 -0
- package/dist-cjs/commands/ListExecutorsCommand.js +46 -0
- package/dist-cjs/commands/ListNotebookMetadataCommand.js +46 -0
- package/dist-cjs/commands/ListNotebookSessionsCommand.js +46 -0
- package/dist-cjs/commands/ListSessionsCommand.js +46 -0
- package/dist-cjs/commands/StartCalculationExecutionCommand.js +46 -0
- package/dist-cjs/commands/StartSessionCommand.js +46 -0
- package/dist-cjs/commands/StopCalculationExecutionCommand.js +46 -0
- package/dist-cjs/commands/TerminateSessionCommand.js +46 -0
- package/dist-cjs/commands/UpdateNotebookCommand.js +46 -0
- package/dist-cjs/commands/UpdateNotebookMetadataCommand.js +46 -0
- package/dist-cjs/commands/index.js +23 -0
- package/dist-cjs/models/models_0.js +322 -18
- package/dist-cjs/pagination/ListApplicationDPUSizesPaginator.js +36 -0
- package/dist-cjs/pagination/ListCalculationExecutionsPaginator.js +36 -0
- package/dist-cjs/pagination/ListExecutorsPaginator.js +36 -0
- package/dist-cjs/pagination/ListSessionsPaginator.js +36 -0
- package/dist-cjs/pagination/index.js +4 -0
- package/dist-cjs/protocols/Aws_json1_1.js +1908 -183
- package/dist-es/Athena.js +345 -0
- package/dist-es/commands/CreateNotebookCommand.js +42 -0
- package/dist-es/commands/CreatePresignedNotebookUrlCommand.js +42 -0
- package/dist-es/commands/DeleteNotebookCommand.js +42 -0
- package/dist-es/commands/ExportNotebookCommand.js +42 -0
- package/dist-es/commands/GetCalculationExecutionCodeCommand.js +42 -0
- package/dist-es/commands/GetCalculationExecutionCommand.js +42 -0
- package/dist-es/commands/GetCalculationExecutionStatusCommand.js +42 -0
- package/dist-es/commands/GetNotebookMetadataCommand.js +42 -0
- package/dist-es/commands/GetSessionCommand.js +42 -0
- package/dist-es/commands/GetSessionStatusCommand.js +42 -0
- package/dist-es/commands/ImportNotebookCommand.js +42 -0
- package/dist-es/commands/ListApplicationDPUSizesCommand.js +42 -0
- package/dist-es/commands/ListCalculationExecutionsCommand.js +42 -0
- package/dist-es/commands/ListExecutorsCommand.js +42 -0
- package/dist-es/commands/ListNotebookMetadataCommand.js +42 -0
- package/dist-es/commands/ListNotebookSessionsCommand.js +42 -0
- package/dist-es/commands/ListSessionsCommand.js +42 -0
- package/dist-es/commands/StartCalculationExecutionCommand.js +42 -0
- package/dist-es/commands/StartSessionCommand.js +42 -0
- package/dist-es/commands/StopCalculationExecutionCommand.js +42 -0
- package/dist-es/commands/TerminateSessionCommand.js +42 -0
- package/dist-es/commands/UpdateNotebookCommand.js +42 -0
- package/dist-es/commands/UpdateNotebookMetadataCommand.js +42 -0
- package/dist-es/commands/index.js +23 -0
- package/dist-es/models/models_0.js +254 -14
- package/dist-es/pagination/ListApplicationDPUSizesPaginator.js +32 -0
- package/dist-es/pagination/ListCalculationExecutionsPaginator.js +32 -0
- package/dist-es/pagination/ListExecutorsPaginator.js +32 -0
- package/dist-es/pagination/ListSessionsPaginator.js +32 -0
- package/dist-es/pagination/index.js +4 -0
- package/dist-es/protocols/Aws_json1_1.js +1835 -157
- package/dist-types/Athena.d.ts +212 -8
- package/dist-types/AthenaClient.d.ts +25 -2
- package/dist-types/commands/BatchGetPreparedStatementCommand.d.ts +5 -1
- package/dist-types/commands/CreateNotebookCommand.d.ts +39 -0
- package/dist-types/commands/CreatePresignedNotebookUrlCommand.d.ts +39 -0
- package/dist-types/commands/CreateWorkGroupCommand.d.ts +4 -1
- package/dist-types/commands/DeleteNotebookCommand.d.ts +37 -0
- package/dist-types/commands/ExportNotebookCommand.d.ts +37 -0
- package/dist-types/commands/GetCalculationExecutionCodeCommand.d.ts +38 -0
- package/dist-types/commands/GetCalculationExecutionCommand.d.ts +37 -0
- package/dist-types/commands/GetCalculationExecutionStatusCommand.d.ts +37 -0
- package/dist-types/commands/GetNotebookMetadataCommand.d.ts +37 -0
- package/dist-types/commands/GetQueryRuntimeStatisticsCommand.d.ts +4 -4
- package/dist-types/commands/GetSessionCommand.d.ts +38 -0
- package/dist-types/commands/GetSessionStatusCommand.d.ts +37 -0
- package/dist-types/commands/ImportNotebookCommand.d.ts +39 -0
- package/dist-types/commands/ListApplicationDPUSizesCommand.d.ts +38 -0
- package/dist-types/commands/ListCalculationExecutionsCommand.d.ts +38 -0
- package/dist-types/commands/ListExecutorsCommand.d.ts +39 -0
- package/dist-types/commands/ListNotebookMetadataCommand.d.ts +37 -0
- package/dist-types/commands/ListNotebookSessionsCommand.d.ts +40 -0
- package/dist-types/commands/ListSessionsCommand.d.ts +40 -0
- package/dist-types/commands/StartCalculationExecutionCommand.d.ts +38 -0
- package/dist-types/commands/StartSessionCommand.d.ts +38 -0
- package/dist-types/commands/StopCalculationExecutionCommand.d.ts +46 -0
- package/dist-types/commands/TerminateSessionCommand.d.ts +41 -0
- package/dist-types/commands/UpdateNotebookCommand.d.ts +37 -0
- package/dist-types/commands/UpdateNotebookMetadataCommand.d.ts +37 -0
- package/dist-types/commands/UpdateWorkGroupCommand.d.ts +5 -2
- package/dist-types/commands/index.d.ts +23 -0
- package/dist-types/models/models_0.d.ts +1511 -101
- package/dist-types/pagination/ListApplicationDPUSizesPaginator.d.ts +4 -0
- package/dist-types/pagination/ListCalculationExecutionsPaginator.d.ts +4 -0
- package/dist-types/pagination/ListExecutorsPaginator.d.ts +4 -0
- package/dist-types/pagination/ListSessionsPaginator.d.ts +4 -0
- package/dist-types/pagination/index.d.ts +4 -0
- package/dist-types/protocols/Aws_json1_1.d.ts +69 -0
- package/dist-types/ts3.4/Athena.d.ts +391 -0
- package/dist-types/ts3.4/AthenaClient.d.ts +138 -0
- package/dist-types/ts3.4/commands/CreateNotebookCommand.d.ts +34 -0
- package/dist-types/ts3.4/commands/CreatePresignedNotebookUrlCommand.d.ts +41 -0
- package/dist-types/ts3.4/commands/DeleteNotebookCommand.d.ts +34 -0
- package/dist-types/ts3.4/commands/ExportNotebookCommand.d.ts +34 -0
- package/dist-types/ts3.4/commands/GetCalculationExecutionCodeCommand.d.ts +41 -0
- package/dist-types/ts3.4/commands/GetCalculationExecutionCommand.d.ts +41 -0
- package/dist-types/ts3.4/commands/GetCalculationExecutionStatusCommand.d.ts +41 -0
- package/dist-types/ts3.4/commands/GetNotebookMetadataCommand.d.ts +38 -0
- package/dist-types/ts3.4/commands/GetSessionCommand.d.ts +34 -0
- package/dist-types/ts3.4/commands/GetSessionStatusCommand.d.ts +37 -0
- package/dist-types/ts3.4/commands/ImportNotebookCommand.d.ts +34 -0
- package/dist-types/ts3.4/commands/ListApplicationDPUSizesCommand.d.ts +41 -0
- package/dist-types/ts3.4/commands/ListCalculationExecutionsCommand.d.ts +41 -0
- package/dist-types/ts3.4/commands/ListExecutorsCommand.d.ts +37 -0
- package/dist-types/ts3.4/commands/ListNotebookMetadataCommand.d.ts +41 -0
- package/dist-types/ts3.4/commands/ListNotebookSessionsCommand.d.ts +41 -0
- package/dist-types/ts3.4/commands/ListSessionsCommand.d.ts +34 -0
- package/dist-types/ts3.4/commands/StartCalculationExecutionCommand.d.ts +41 -0
- package/dist-types/ts3.4/commands/StartSessionCommand.d.ts +34 -0
- package/dist-types/ts3.4/commands/StopCalculationExecutionCommand.d.ts +41 -0
- package/dist-types/ts3.4/commands/TerminateSessionCommand.d.ts +37 -0
- package/dist-types/ts3.4/commands/UpdateNotebookCommand.d.ts +34 -0
- package/dist-types/ts3.4/commands/UpdateNotebookMetadataCommand.d.ts +41 -0
- package/dist-types/ts3.4/commands/index.d.ts +23 -0
- package/dist-types/ts3.4/models/models_0.d.ts +538 -21
- package/dist-types/ts3.4/pagination/ListApplicationDPUSizesPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/ListCalculationExecutionsPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/ListExecutorsPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/ListSessionsPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/index.d.ts +4 -0
- package/dist-types/ts3.4/protocols/Aws_json1_1.d.ts +276 -0
- package/package.json +1 -1
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { Athena } from "../Athena";
|
|
2
|
+
import { AthenaClient } from "../AthenaClient";
|
|
3
|
+
import { ListExecutorsCommand, } from "../commands/ListExecutorsCommand";
|
|
4
|
+
const makePagedClientRequest = async (client, input, ...args) => {
|
|
5
|
+
return await client.send(new ListExecutorsCommand(input), ...args);
|
|
6
|
+
};
|
|
7
|
+
const makePagedRequest = async (client, input, ...args) => {
|
|
8
|
+
return await client.listExecutors(input, ...args);
|
|
9
|
+
};
|
|
10
|
+
export async function* paginateListExecutors(config, input, ...additionalArguments) {
|
|
11
|
+
let token = config.startingToken || undefined;
|
|
12
|
+
let hasNext = true;
|
|
13
|
+
let page;
|
|
14
|
+
while (hasNext) {
|
|
15
|
+
input.NextToken = token;
|
|
16
|
+
input["MaxResults"] = config.pageSize;
|
|
17
|
+
if (config.client instanceof Athena) {
|
|
18
|
+
page = await makePagedRequest(config.client, input, ...additionalArguments);
|
|
19
|
+
}
|
|
20
|
+
else if (config.client instanceof AthenaClient) {
|
|
21
|
+
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
22
|
+
}
|
|
23
|
+
else {
|
|
24
|
+
throw new Error("Invalid client, expected Athena | AthenaClient");
|
|
25
|
+
}
|
|
26
|
+
yield page;
|
|
27
|
+
const prevToken = token;
|
|
28
|
+
token = page.NextToken;
|
|
29
|
+
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
30
|
+
}
|
|
31
|
+
return undefined;
|
|
32
|
+
}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { Athena } from "../Athena";
|
|
2
|
+
import { AthenaClient } from "../AthenaClient";
|
|
3
|
+
import { ListSessionsCommand, } from "../commands/ListSessionsCommand";
|
|
4
|
+
const makePagedClientRequest = async (client, input, ...args) => {
|
|
5
|
+
return await client.send(new ListSessionsCommand(input), ...args);
|
|
6
|
+
};
|
|
7
|
+
const makePagedRequest = async (client, input, ...args) => {
|
|
8
|
+
return await client.listSessions(input, ...args);
|
|
9
|
+
};
|
|
10
|
+
export async function* paginateListSessions(config, input, ...additionalArguments) {
|
|
11
|
+
let token = config.startingToken || undefined;
|
|
12
|
+
let hasNext = true;
|
|
13
|
+
let page;
|
|
14
|
+
while (hasNext) {
|
|
15
|
+
input.NextToken = token;
|
|
16
|
+
input["MaxResults"] = config.pageSize;
|
|
17
|
+
if (config.client instanceof Athena) {
|
|
18
|
+
page = await makePagedRequest(config.client, input, ...additionalArguments);
|
|
19
|
+
}
|
|
20
|
+
else if (config.client instanceof AthenaClient) {
|
|
21
|
+
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
22
|
+
}
|
|
23
|
+
else {
|
|
24
|
+
throw new Error("Invalid client, expected Athena | AthenaClient");
|
|
25
|
+
}
|
|
26
|
+
yield page;
|
|
27
|
+
const prevToken = token;
|
|
28
|
+
token = page.NextToken;
|
|
29
|
+
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
30
|
+
}
|
|
31
|
+
return undefined;
|
|
32
|
+
}
|
|
@@ -1,11 +1,15 @@
|
|
|
1
1
|
export * from "./GetQueryResultsPaginator";
|
|
2
2
|
export * from "./Interfaces";
|
|
3
|
+
export * from "./ListApplicationDPUSizesPaginator";
|
|
4
|
+
export * from "./ListCalculationExecutionsPaginator";
|
|
3
5
|
export * from "./ListDataCatalogsPaginator";
|
|
4
6
|
export * from "./ListDatabasesPaginator";
|
|
5
7
|
export * from "./ListEngineVersionsPaginator";
|
|
8
|
+
export * from "./ListExecutorsPaginator";
|
|
6
9
|
export * from "./ListNamedQueriesPaginator";
|
|
7
10
|
export * from "./ListPreparedStatementsPaginator";
|
|
8
11
|
export * from "./ListQueryExecutionsPaginator";
|
|
12
|
+
export * from "./ListSessionsPaginator";
|
|
9
13
|
export * from "./ListTableMetadataPaginator";
|
|
10
14
|
export * from "./ListTagsForResourcePaginator";
|
|
11
15
|
export * from "./ListWorkGroupsPaginator";
|