@aws-sdk/client-athena 3.281.0 → 3.287.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/endpoint/ruleset.js +3 -3
- package/dist-cjs/pagination/GetQueryResultsPaginator.js +1 -8
- package/dist-cjs/pagination/ListApplicationDPUSizesPaginator.js +1 -8
- package/dist-cjs/pagination/ListCalculationExecutionsPaginator.js +1 -8
- package/dist-cjs/pagination/ListDataCatalogsPaginator.js +1 -8
- package/dist-cjs/pagination/ListDatabasesPaginator.js +1 -8
- package/dist-cjs/pagination/ListEngineVersionsPaginator.js +1 -8
- package/dist-cjs/pagination/ListExecutorsPaginator.js +1 -8
- package/dist-cjs/pagination/ListNamedQueriesPaginator.js +1 -8
- package/dist-cjs/pagination/ListPreparedStatementsPaginator.js +1 -8
- package/dist-cjs/pagination/ListQueryExecutionsPaginator.js +1 -8
- package/dist-cjs/pagination/ListSessionsPaginator.js +1 -8
- package/dist-cjs/pagination/ListTableMetadataPaginator.js +1 -8
- package/dist-cjs/pagination/ListTagsForResourcePaginator.js +1 -8
- package/dist-cjs/pagination/ListWorkGroupsPaginator.js +1 -8
- package/dist-cjs/protocols/Aws_json1_1.js +1 -0
- package/dist-es/endpoint/ruleset.js +3 -3
- package/dist-es/pagination/GetQueryResultsPaginator.js +1 -8
- package/dist-es/pagination/ListApplicationDPUSizesPaginator.js +1 -8
- package/dist-es/pagination/ListCalculationExecutionsPaginator.js +1 -8
- package/dist-es/pagination/ListDataCatalogsPaginator.js +1 -8
- package/dist-es/pagination/ListDatabasesPaginator.js +1 -8
- package/dist-es/pagination/ListEngineVersionsPaginator.js +1 -8
- package/dist-es/pagination/ListExecutorsPaginator.js +1 -8
- package/dist-es/pagination/ListNamedQueriesPaginator.js +1 -8
- package/dist-es/pagination/ListPreparedStatementsPaginator.js +1 -8
- package/dist-es/pagination/ListQueryExecutionsPaginator.js +1 -8
- package/dist-es/pagination/ListSessionsPaginator.js +1 -8
- package/dist-es/pagination/ListTableMetadataPaginator.js +1 -8
- package/dist-es/pagination/ListTagsForResourcePaginator.js +1 -8
- package/dist-es/pagination/ListWorkGroupsPaginator.js +1 -8
- package/dist-es/protocols/Aws_json1_1.js +1 -0
- package/dist-types/Athena.d.ts +3 -0
- package/dist-types/commands/ListDataCatalogsCommand.d.ts +3 -0
- package/dist-types/endpoint/EndpointParameters.d.ts +1 -1
- package/dist-types/models/models_0.d.ts +8 -1
- package/dist-types/pagination/Interfaces.d.ts +1 -2
- package/dist-types/ts3.4/endpoint/EndpointParameters.d.ts +1 -1
- package/dist-types/ts3.4/models/models_0.d.ts +1 -0
- package/dist-types/ts3.4/pagination/Interfaces.d.ts +1 -2
- package/package.json +19 -19
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.ruleSet = void 0;
|
|
4
|
-
const q = "
|
|
5
|
-
const a =
|
|
6
|
-
const _data = { version: "1.0", parameters: { Region:
|
|
4
|
+
const q = "required", r = "fn", s = "argv", t = "ref";
|
|
5
|
+
const a = "isSet", b = "tree", c = "error", d = "endpoint", e = "PartitionResult", f = { [q]: false, "type": "String" }, g = { [q]: true, "default": false, "type": "Boolean" }, h = { [t]: "Endpoint" }, i = { [r]: "booleanEquals", [s]: [{ [t]: "UseFIPS" }, true] }, j = { [r]: "booleanEquals", [s]: [{ [t]: "UseDualStack" }, true] }, k = {}, l = { [r]: "booleanEquals", [s]: [true, { [r]: "getAttr", [s]: [{ [t]: e }, "supportsFIPS"] }] }, m = { [r]: "booleanEquals", [s]: [true, { [r]: "getAttr", [s]: [{ [t]: e }, "supportsDualStack"] }] }, n = [i], o = [j], p = [{ [t]: "Region" }];
|
|
6
|
+
const _data = { version: "1.0", parameters: { Region: f, UseDualStack: g, UseFIPS: g, Endpoint: f }, rules: [{ conditions: [{ [r]: a, [s]: [h] }], type: b, rules: [{ conditions: n, error: "Invalid Configuration: FIPS and custom endpoint are not supported", type: c }, { type: b, rules: [{ conditions: o, error: "Invalid Configuration: Dualstack and custom endpoint are not supported", type: c }, { endpoint: { url: h, properties: k, headers: k }, type: d }] }] }, { type: b, rules: [{ conditions: [{ [r]: a, [s]: p }], type: b, rules: [{ conditions: [{ [r]: "aws.partition", [s]: p, assign: e }], type: b, rules: [{ conditions: [i, j], type: b, rules: [{ conditions: [l, m], type: b, rules: [{ type: b, rules: [{ endpoint: { url: "https://athena-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: k, headers: k }, type: d }] }] }, { error: "FIPS and DualStack are enabled, but this partition does not support one or both", type: c }] }, { conditions: n, type: b, rules: [{ conditions: [l], type: b, rules: [{ type: b, rules: [{ endpoint: { url: "https://athena-fips.{Region}.{PartitionResult#dnsSuffix}", properties: k, headers: k }, type: d }] }] }, { error: "FIPS is enabled but this partition does not support FIPS", type: c }] }, { conditions: o, type: b, rules: [{ conditions: [m], type: b, rules: [{ type: b, rules: [{ endpoint: { url: "https://athena.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: k, headers: k }, type: d }] }] }, { error: "DualStack is enabled but this partition does not support DualStack", type: c }] }, { type: b, rules: [{ endpoint: { url: "https://athena.{Region}.{PartitionResult#dnsSuffix}", properties: k, headers: k }, type: d }] }] }] }, { error: "Invalid Configuration: Missing Region", type: c }] }] };
|
|
7
7
|
exports.ruleSet = _data;
|
|
@@ -1,15 +1,11 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.paginateGetQueryResults = void 0;
|
|
4
|
-
const Athena_1 = require("../Athena");
|
|
5
4
|
const AthenaClient_1 = require("../AthenaClient");
|
|
6
5
|
const GetQueryResultsCommand_1 = require("../commands/GetQueryResultsCommand");
|
|
7
6
|
const makePagedClientRequest = async (client, input, ...args) => {
|
|
8
7
|
return await client.send(new GetQueryResultsCommand_1.GetQueryResultsCommand(input), ...args);
|
|
9
8
|
};
|
|
10
|
-
const makePagedRequest = async (client, input, ...args) => {
|
|
11
|
-
return await client.getQueryResults(input, ...args);
|
|
12
|
-
};
|
|
13
9
|
async function* paginateGetQueryResults(config, input, ...additionalArguments) {
|
|
14
10
|
let token = config.startingToken || undefined;
|
|
15
11
|
let hasNext = true;
|
|
@@ -17,10 +13,7 @@ async function* paginateGetQueryResults(config, input, ...additionalArguments) {
|
|
|
17
13
|
while (hasNext) {
|
|
18
14
|
input.NextToken = token;
|
|
19
15
|
input["MaxResults"] = config.pageSize;
|
|
20
|
-
if (config.client instanceof
|
|
21
|
-
page = await makePagedRequest(config.client, input, ...additionalArguments);
|
|
22
|
-
}
|
|
23
|
-
else if (config.client instanceof AthenaClient_1.AthenaClient) {
|
|
16
|
+
if (config.client instanceof AthenaClient_1.AthenaClient) {
|
|
24
17
|
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
25
18
|
}
|
|
26
19
|
else {
|
|
@@ -1,15 +1,11 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.paginateListApplicationDPUSizes = void 0;
|
|
4
|
-
const Athena_1 = require("../Athena");
|
|
5
4
|
const AthenaClient_1 = require("../AthenaClient");
|
|
6
5
|
const ListApplicationDPUSizesCommand_1 = require("../commands/ListApplicationDPUSizesCommand");
|
|
7
6
|
const makePagedClientRequest = async (client, input, ...args) => {
|
|
8
7
|
return await client.send(new ListApplicationDPUSizesCommand_1.ListApplicationDPUSizesCommand(input), ...args);
|
|
9
8
|
};
|
|
10
|
-
const makePagedRequest = async (client, input, ...args) => {
|
|
11
|
-
return await client.listApplicationDPUSizes(input, ...args);
|
|
12
|
-
};
|
|
13
9
|
async function* paginateListApplicationDPUSizes(config, input, ...additionalArguments) {
|
|
14
10
|
let token = config.startingToken || undefined;
|
|
15
11
|
let hasNext = true;
|
|
@@ -17,10 +13,7 @@ async function* paginateListApplicationDPUSizes(config, input, ...additionalArgu
|
|
|
17
13
|
while (hasNext) {
|
|
18
14
|
input.NextToken = token;
|
|
19
15
|
input["MaxResults"] = config.pageSize;
|
|
20
|
-
if (config.client instanceof
|
|
21
|
-
page = await makePagedRequest(config.client, input, ...additionalArguments);
|
|
22
|
-
}
|
|
23
|
-
else if (config.client instanceof AthenaClient_1.AthenaClient) {
|
|
16
|
+
if (config.client instanceof AthenaClient_1.AthenaClient) {
|
|
24
17
|
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
25
18
|
}
|
|
26
19
|
else {
|
|
@@ -1,15 +1,11 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.paginateListCalculationExecutions = void 0;
|
|
4
|
-
const Athena_1 = require("../Athena");
|
|
5
4
|
const AthenaClient_1 = require("../AthenaClient");
|
|
6
5
|
const ListCalculationExecutionsCommand_1 = require("../commands/ListCalculationExecutionsCommand");
|
|
7
6
|
const makePagedClientRequest = async (client, input, ...args) => {
|
|
8
7
|
return await client.send(new ListCalculationExecutionsCommand_1.ListCalculationExecutionsCommand(input), ...args);
|
|
9
8
|
};
|
|
10
|
-
const makePagedRequest = async (client, input, ...args) => {
|
|
11
|
-
return await client.listCalculationExecutions(input, ...args);
|
|
12
|
-
};
|
|
13
9
|
async function* paginateListCalculationExecutions(config, input, ...additionalArguments) {
|
|
14
10
|
let token = config.startingToken || undefined;
|
|
15
11
|
let hasNext = true;
|
|
@@ -17,10 +13,7 @@ async function* paginateListCalculationExecutions(config, input, ...additionalAr
|
|
|
17
13
|
while (hasNext) {
|
|
18
14
|
input.NextToken = token;
|
|
19
15
|
input["MaxResults"] = config.pageSize;
|
|
20
|
-
if (config.client instanceof
|
|
21
|
-
page = await makePagedRequest(config.client, input, ...additionalArguments);
|
|
22
|
-
}
|
|
23
|
-
else if (config.client instanceof AthenaClient_1.AthenaClient) {
|
|
16
|
+
if (config.client instanceof AthenaClient_1.AthenaClient) {
|
|
24
17
|
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
25
18
|
}
|
|
26
19
|
else {
|
|
@@ -1,15 +1,11 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.paginateListDataCatalogs = void 0;
|
|
4
|
-
const Athena_1 = require("../Athena");
|
|
5
4
|
const AthenaClient_1 = require("../AthenaClient");
|
|
6
5
|
const ListDataCatalogsCommand_1 = require("../commands/ListDataCatalogsCommand");
|
|
7
6
|
const makePagedClientRequest = async (client, input, ...args) => {
|
|
8
7
|
return await client.send(new ListDataCatalogsCommand_1.ListDataCatalogsCommand(input), ...args);
|
|
9
8
|
};
|
|
10
|
-
const makePagedRequest = async (client, input, ...args) => {
|
|
11
|
-
return await client.listDataCatalogs(input, ...args);
|
|
12
|
-
};
|
|
13
9
|
async function* paginateListDataCatalogs(config, input, ...additionalArguments) {
|
|
14
10
|
let token = config.startingToken || undefined;
|
|
15
11
|
let hasNext = true;
|
|
@@ -17,10 +13,7 @@ async function* paginateListDataCatalogs(config, input, ...additionalArguments)
|
|
|
17
13
|
while (hasNext) {
|
|
18
14
|
input.NextToken = token;
|
|
19
15
|
input["MaxResults"] = config.pageSize;
|
|
20
|
-
if (config.client instanceof
|
|
21
|
-
page = await makePagedRequest(config.client, input, ...additionalArguments);
|
|
22
|
-
}
|
|
23
|
-
else if (config.client instanceof AthenaClient_1.AthenaClient) {
|
|
16
|
+
if (config.client instanceof AthenaClient_1.AthenaClient) {
|
|
24
17
|
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
25
18
|
}
|
|
26
19
|
else {
|
|
@@ -1,15 +1,11 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.paginateListDatabases = void 0;
|
|
4
|
-
const Athena_1 = require("../Athena");
|
|
5
4
|
const AthenaClient_1 = require("../AthenaClient");
|
|
6
5
|
const ListDatabasesCommand_1 = require("../commands/ListDatabasesCommand");
|
|
7
6
|
const makePagedClientRequest = async (client, input, ...args) => {
|
|
8
7
|
return await client.send(new ListDatabasesCommand_1.ListDatabasesCommand(input), ...args);
|
|
9
8
|
};
|
|
10
|
-
const makePagedRequest = async (client, input, ...args) => {
|
|
11
|
-
return await client.listDatabases(input, ...args);
|
|
12
|
-
};
|
|
13
9
|
async function* paginateListDatabases(config, input, ...additionalArguments) {
|
|
14
10
|
let token = config.startingToken || undefined;
|
|
15
11
|
let hasNext = true;
|
|
@@ -17,10 +13,7 @@ async function* paginateListDatabases(config, input, ...additionalArguments) {
|
|
|
17
13
|
while (hasNext) {
|
|
18
14
|
input.NextToken = token;
|
|
19
15
|
input["MaxResults"] = config.pageSize;
|
|
20
|
-
if (config.client instanceof
|
|
21
|
-
page = await makePagedRequest(config.client, input, ...additionalArguments);
|
|
22
|
-
}
|
|
23
|
-
else if (config.client instanceof AthenaClient_1.AthenaClient) {
|
|
16
|
+
if (config.client instanceof AthenaClient_1.AthenaClient) {
|
|
24
17
|
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
25
18
|
}
|
|
26
19
|
else {
|
|
@@ -1,15 +1,11 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.paginateListEngineVersions = void 0;
|
|
4
|
-
const Athena_1 = require("../Athena");
|
|
5
4
|
const AthenaClient_1 = require("../AthenaClient");
|
|
6
5
|
const ListEngineVersionsCommand_1 = require("../commands/ListEngineVersionsCommand");
|
|
7
6
|
const makePagedClientRequest = async (client, input, ...args) => {
|
|
8
7
|
return await client.send(new ListEngineVersionsCommand_1.ListEngineVersionsCommand(input), ...args);
|
|
9
8
|
};
|
|
10
|
-
const makePagedRequest = async (client, input, ...args) => {
|
|
11
|
-
return await client.listEngineVersions(input, ...args);
|
|
12
|
-
};
|
|
13
9
|
async function* paginateListEngineVersions(config, input, ...additionalArguments) {
|
|
14
10
|
let token = config.startingToken || undefined;
|
|
15
11
|
let hasNext = true;
|
|
@@ -17,10 +13,7 @@ async function* paginateListEngineVersions(config, input, ...additionalArguments
|
|
|
17
13
|
while (hasNext) {
|
|
18
14
|
input.NextToken = token;
|
|
19
15
|
input["MaxResults"] = config.pageSize;
|
|
20
|
-
if (config.client instanceof
|
|
21
|
-
page = await makePagedRequest(config.client, input, ...additionalArguments);
|
|
22
|
-
}
|
|
23
|
-
else if (config.client instanceof AthenaClient_1.AthenaClient) {
|
|
16
|
+
if (config.client instanceof AthenaClient_1.AthenaClient) {
|
|
24
17
|
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
25
18
|
}
|
|
26
19
|
else {
|
|
@@ -1,15 +1,11 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.paginateListExecutors = void 0;
|
|
4
|
-
const Athena_1 = require("../Athena");
|
|
5
4
|
const AthenaClient_1 = require("../AthenaClient");
|
|
6
5
|
const ListExecutorsCommand_1 = require("../commands/ListExecutorsCommand");
|
|
7
6
|
const makePagedClientRequest = async (client, input, ...args) => {
|
|
8
7
|
return await client.send(new ListExecutorsCommand_1.ListExecutorsCommand(input), ...args);
|
|
9
8
|
};
|
|
10
|
-
const makePagedRequest = async (client, input, ...args) => {
|
|
11
|
-
return await client.listExecutors(input, ...args);
|
|
12
|
-
};
|
|
13
9
|
async function* paginateListExecutors(config, input, ...additionalArguments) {
|
|
14
10
|
let token = config.startingToken || undefined;
|
|
15
11
|
let hasNext = true;
|
|
@@ -17,10 +13,7 @@ async function* paginateListExecutors(config, input, ...additionalArguments) {
|
|
|
17
13
|
while (hasNext) {
|
|
18
14
|
input.NextToken = token;
|
|
19
15
|
input["MaxResults"] = config.pageSize;
|
|
20
|
-
if (config.client instanceof
|
|
21
|
-
page = await makePagedRequest(config.client, input, ...additionalArguments);
|
|
22
|
-
}
|
|
23
|
-
else if (config.client instanceof AthenaClient_1.AthenaClient) {
|
|
16
|
+
if (config.client instanceof AthenaClient_1.AthenaClient) {
|
|
24
17
|
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
25
18
|
}
|
|
26
19
|
else {
|
|
@@ -1,15 +1,11 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.paginateListNamedQueries = void 0;
|
|
4
|
-
const Athena_1 = require("../Athena");
|
|
5
4
|
const AthenaClient_1 = require("../AthenaClient");
|
|
6
5
|
const ListNamedQueriesCommand_1 = require("../commands/ListNamedQueriesCommand");
|
|
7
6
|
const makePagedClientRequest = async (client, input, ...args) => {
|
|
8
7
|
return await client.send(new ListNamedQueriesCommand_1.ListNamedQueriesCommand(input), ...args);
|
|
9
8
|
};
|
|
10
|
-
const makePagedRequest = async (client, input, ...args) => {
|
|
11
|
-
return await client.listNamedQueries(input, ...args);
|
|
12
|
-
};
|
|
13
9
|
async function* paginateListNamedQueries(config, input, ...additionalArguments) {
|
|
14
10
|
let token = config.startingToken || undefined;
|
|
15
11
|
let hasNext = true;
|
|
@@ -17,10 +13,7 @@ async function* paginateListNamedQueries(config, input, ...additionalArguments)
|
|
|
17
13
|
while (hasNext) {
|
|
18
14
|
input.NextToken = token;
|
|
19
15
|
input["MaxResults"] = config.pageSize;
|
|
20
|
-
if (config.client instanceof
|
|
21
|
-
page = await makePagedRequest(config.client, input, ...additionalArguments);
|
|
22
|
-
}
|
|
23
|
-
else if (config.client instanceof AthenaClient_1.AthenaClient) {
|
|
16
|
+
if (config.client instanceof AthenaClient_1.AthenaClient) {
|
|
24
17
|
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
25
18
|
}
|
|
26
19
|
else {
|
|
@@ -1,15 +1,11 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.paginateListPreparedStatements = void 0;
|
|
4
|
-
const Athena_1 = require("../Athena");
|
|
5
4
|
const AthenaClient_1 = require("../AthenaClient");
|
|
6
5
|
const ListPreparedStatementsCommand_1 = require("../commands/ListPreparedStatementsCommand");
|
|
7
6
|
const makePagedClientRequest = async (client, input, ...args) => {
|
|
8
7
|
return await client.send(new ListPreparedStatementsCommand_1.ListPreparedStatementsCommand(input), ...args);
|
|
9
8
|
};
|
|
10
|
-
const makePagedRequest = async (client, input, ...args) => {
|
|
11
|
-
return await client.listPreparedStatements(input, ...args);
|
|
12
|
-
};
|
|
13
9
|
async function* paginateListPreparedStatements(config, input, ...additionalArguments) {
|
|
14
10
|
let token = config.startingToken || undefined;
|
|
15
11
|
let hasNext = true;
|
|
@@ -17,10 +13,7 @@ async function* paginateListPreparedStatements(config, input, ...additionalArgum
|
|
|
17
13
|
while (hasNext) {
|
|
18
14
|
input.NextToken = token;
|
|
19
15
|
input["MaxResults"] = config.pageSize;
|
|
20
|
-
if (config.client instanceof
|
|
21
|
-
page = await makePagedRequest(config.client, input, ...additionalArguments);
|
|
22
|
-
}
|
|
23
|
-
else if (config.client instanceof AthenaClient_1.AthenaClient) {
|
|
16
|
+
if (config.client instanceof AthenaClient_1.AthenaClient) {
|
|
24
17
|
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
25
18
|
}
|
|
26
19
|
else {
|
|
@@ -1,15 +1,11 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.paginateListQueryExecutions = void 0;
|
|
4
|
-
const Athena_1 = require("../Athena");
|
|
5
4
|
const AthenaClient_1 = require("../AthenaClient");
|
|
6
5
|
const ListQueryExecutionsCommand_1 = require("../commands/ListQueryExecutionsCommand");
|
|
7
6
|
const makePagedClientRequest = async (client, input, ...args) => {
|
|
8
7
|
return await client.send(new ListQueryExecutionsCommand_1.ListQueryExecutionsCommand(input), ...args);
|
|
9
8
|
};
|
|
10
|
-
const makePagedRequest = async (client, input, ...args) => {
|
|
11
|
-
return await client.listQueryExecutions(input, ...args);
|
|
12
|
-
};
|
|
13
9
|
async function* paginateListQueryExecutions(config, input, ...additionalArguments) {
|
|
14
10
|
let token = config.startingToken || undefined;
|
|
15
11
|
let hasNext = true;
|
|
@@ -17,10 +13,7 @@ async function* paginateListQueryExecutions(config, input, ...additionalArgument
|
|
|
17
13
|
while (hasNext) {
|
|
18
14
|
input.NextToken = token;
|
|
19
15
|
input["MaxResults"] = config.pageSize;
|
|
20
|
-
if (config.client instanceof
|
|
21
|
-
page = await makePagedRequest(config.client, input, ...additionalArguments);
|
|
22
|
-
}
|
|
23
|
-
else if (config.client instanceof AthenaClient_1.AthenaClient) {
|
|
16
|
+
if (config.client instanceof AthenaClient_1.AthenaClient) {
|
|
24
17
|
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
25
18
|
}
|
|
26
19
|
else {
|
|
@@ -1,15 +1,11 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.paginateListSessions = void 0;
|
|
4
|
-
const Athena_1 = require("../Athena");
|
|
5
4
|
const AthenaClient_1 = require("../AthenaClient");
|
|
6
5
|
const ListSessionsCommand_1 = require("../commands/ListSessionsCommand");
|
|
7
6
|
const makePagedClientRequest = async (client, input, ...args) => {
|
|
8
7
|
return await client.send(new ListSessionsCommand_1.ListSessionsCommand(input), ...args);
|
|
9
8
|
};
|
|
10
|
-
const makePagedRequest = async (client, input, ...args) => {
|
|
11
|
-
return await client.listSessions(input, ...args);
|
|
12
|
-
};
|
|
13
9
|
async function* paginateListSessions(config, input, ...additionalArguments) {
|
|
14
10
|
let token = config.startingToken || undefined;
|
|
15
11
|
let hasNext = true;
|
|
@@ -17,10 +13,7 @@ async function* paginateListSessions(config, input, ...additionalArguments) {
|
|
|
17
13
|
while (hasNext) {
|
|
18
14
|
input.NextToken = token;
|
|
19
15
|
input["MaxResults"] = config.pageSize;
|
|
20
|
-
if (config.client instanceof
|
|
21
|
-
page = await makePagedRequest(config.client, input, ...additionalArguments);
|
|
22
|
-
}
|
|
23
|
-
else if (config.client instanceof AthenaClient_1.AthenaClient) {
|
|
16
|
+
if (config.client instanceof AthenaClient_1.AthenaClient) {
|
|
24
17
|
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
25
18
|
}
|
|
26
19
|
else {
|
|
@@ -1,15 +1,11 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.paginateListTableMetadata = void 0;
|
|
4
|
-
const Athena_1 = require("../Athena");
|
|
5
4
|
const AthenaClient_1 = require("../AthenaClient");
|
|
6
5
|
const ListTableMetadataCommand_1 = require("../commands/ListTableMetadataCommand");
|
|
7
6
|
const makePagedClientRequest = async (client, input, ...args) => {
|
|
8
7
|
return await client.send(new ListTableMetadataCommand_1.ListTableMetadataCommand(input), ...args);
|
|
9
8
|
};
|
|
10
|
-
const makePagedRequest = async (client, input, ...args) => {
|
|
11
|
-
return await client.listTableMetadata(input, ...args);
|
|
12
|
-
};
|
|
13
9
|
async function* paginateListTableMetadata(config, input, ...additionalArguments) {
|
|
14
10
|
let token = config.startingToken || undefined;
|
|
15
11
|
let hasNext = true;
|
|
@@ -17,10 +13,7 @@ async function* paginateListTableMetadata(config, input, ...additionalArguments)
|
|
|
17
13
|
while (hasNext) {
|
|
18
14
|
input.NextToken = token;
|
|
19
15
|
input["MaxResults"] = config.pageSize;
|
|
20
|
-
if (config.client instanceof
|
|
21
|
-
page = await makePagedRequest(config.client, input, ...additionalArguments);
|
|
22
|
-
}
|
|
23
|
-
else if (config.client instanceof AthenaClient_1.AthenaClient) {
|
|
16
|
+
if (config.client instanceof AthenaClient_1.AthenaClient) {
|
|
24
17
|
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
25
18
|
}
|
|
26
19
|
else {
|
|
@@ -1,15 +1,11 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.paginateListTagsForResource = void 0;
|
|
4
|
-
const Athena_1 = require("../Athena");
|
|
5
4
|
const AthenaClient_1 = require("../AthenaClient");
|
|
6
5
|
const ListTagsForResourceCommand_1 = require("../commands/ListTagsForResourceCommand");
|
|
7
6
|
const makePagedClientRequest = async (client, input, ...args) => {
|
|
8
7
|
return await client.send(new ListTagsForResourceCommand_1.ListTagsForResourceCommand(input), ...args);
|
|
9
8
|
};
|
|
10
|
-
const makePagedRequest = async (client, input, ...args) => {
|
|
11
|
-
return await client.listTagsForResource(input, ...args);
|
|
12
|
-
};
|
|
13
9
|
async function* paginateListTagsForResource(config, input, ...additionalArguments) {
|
|
14
10
|
let token = config.startingToken || undefined;
|
|
15
11
|
let hasNext = true;
|
|
@@ -17,10 +13,7 @@ async function* paginateListTagsForResource(config, input, ...additionalArgument
|
|
|
17
13
|
while (hasNext) {
|
|
18
14
|
input.NextToken = token;
|
|
19
15
|
input["MaxResults"] = config.pageSize;
|
|
20
|
-
if (config.client instanceof
|
|
21
|
-
page = await makePagedRequest(config.client, input, ...additionalArguments);
|
|
22
|
-
}
|
|
23
|
-
else if (config.client instanceof AthenaClient_1.AthenaClient) {
|
|
16
|
+
if (config.client instanceof AthenaClient_1.AthenaClient) {
|
|
24
17
|
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
25
18
|
}
|
|
26
19
|
else {
|
|
@@ -1,15 +1,11 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.paginateListWorkGroups = void 0;
|
|
4
|
-
const Athena_1 = require("../Athena");
|
|
5
4
|
const AthenaClient_1 = require("../AthenaClient");
|
|
6
5
|
const ListWorkGroupsCommand_1 = require("../commands/ListWorkGroupsCommand");
|
|
7
6
|
const makePagedClientRequest = async (client, input, ...args) => {
|
|
8
7
|
return await client.send(new ListWorkGroupsCommand_1.ListWorkGroupsCommand(input), ...args);
|
|
9
8
|
};
|
|
10
|
-
const makePagedRequest = async (client, input, ...args) => {
|
|
11
|
-
return await client.listWorkGroups(input, ...args);
|
|
12
|
-
};
|
|
13
9
|
async function* paginateListWorkGroups(config, input, ...additionalArguments) {
|
|
14
10
|
let token = config.startingToken || undefined;
|
|
15
11
|
let hasNext = true;
|
|
@@ -17,10 +13,7 @@ async function* paginateListWorkGroups(config, input, ...additionalArguments) {
|
|
|
17
13
|
while (hasNext) {
|
|
18
14
|
input.NextToken = token;
|
|
19
15
|
input["MaxResults"] = config.pageSize;
|
|
20
|
-
if (config.client instanceof
|
|
21
|
-
page = await makePagedRequest(config.client, input, ...additionalArguments);
|
|
22
|
-
}
|
|
23
|
-
else if (config.client instanceof AthenaClient_1.AthenaClient) {
|
|
16
|
+
if (config.client instanceof AthenaClient_1.AthenaClient) {
|
|
24
17
|
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
25
18
|
}
|
|
26
19
|
else {
|
|
@@ -4320,6 +4320,7 @@ const deserializeAws_json1_1QueryExecution = (output, context) => {
|
|
|
4320
4320
|
? deserializeAws_json1_1QueryExecutionStatistics(output.Statistics, context)
|
|
4321
4321
|
: undefined,
|
|
4322
4322
|
Status: output.Status != null ? deserializeAws_json1_1QueryExecutionStatus(output.Status, context) : undefined,
|
|
4323
|
+
SubstatementType: (0, smithy_client_1.expectString)(output.SubstatementType),
|
|
4323
4324
|
WorkGroup: (0, smithy_client_1.expectString)(output.WorkGroup),
|
|
4324
4325
|
};
|
|
4325
4326
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
const q = "
|
|
2
|
-
const a =
|
|
3
|
-
const _data = { version: "1.0", parameters: { Region:
|
|
1
|
+
const q = "required", r = "fn", s = "argv", t = "ref";
|
|
2
|
+
const a = "isSet", b = "tree", c = "error", d = "endpoint", e = "PartitionResult", f = { [q]: false, "type": "String" }, g = { [q]: true, "default": false, "type": "Boolean" }, h = { [t]: "Endpoint" }, i = { [r]: "booleanEquals", [s]: [{ [t]: "UseFIPS" }, true] }, j = { [r]: "booleanEquals", [s]: [{ [t]: "UseDualStack" }, true] }, k = {}, l = { [r]: "booleanEquals", [s]: [true, { [r]: "getAttr", [s]: [{ [t]: e }, "supportsFIPS"] }] }, m = { [r]: "booleanEquals", [s]: [true, { [r]: "getAttr", [s]: [{ [t]: e }, "supportsDualStack"] }] }, n = [i], o = [j], p = [{ [t]: "Region" }];
|
|
3
|
+
const _data = { version: "1.0", parameters: { Region: f, UseDualStack: g, UseFIPS: g, Endpoint: f }, rules: [{ conditions: [{ [r]: a, [s]: [h] }], type: b, rules: [{ conditions: n, error: "Invalid Configuration: FIPS and custom endpoint are not supported", type: c }, { type: b, rules: [{ conditions: o, error: "Invalid Configuration: Dualstack and custom endpoint are not supported", type: c }, { endpoint: { url: h, properties: k, headers: k }, type: d }] }] }, { type: b, rules: [{ conditions: [{ [r]: a, [s]: p }], type: b, rules: [{ conditions: [{ [r]: "aws.partition", [s]: p, assign: e }], type: b, rules: [{ conditions: [i, j], type: b, rules: [{ conditions: [l, m], type: b, rules: [{ type: b, rules: [{ endpoint: { url: "https://athena-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: k, headers: k }, type: d }] }] }, { error: "FIPS and DualStack are enabled, but this partition does not support one or both", type: c }] }, { conditions: n, type: b, rules: [{ conditions: [l], type: b, rules: [{ type: b, rules: [{ endpoint: { url: "https://athena-fips.{Region}.{PartitionResult#dnsSuffix}", properties: k, headers: k }, type: d }] }] }, { error: "FIPS is enabled but this partition does not support FIPS", type: c }] }, { conditions: o, type: b, rules: [{ conditions: [m], type: b, rules: [{ type: b, rules: [{ endpoint: { url: "https://athena.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: k, headers: k }, type: d }] }] }, { error: "DualStack is enabled but this partition does not support DualStack", type: c }] }, { type: b, rules: [{ endpoint: { url: "https://athena.{Region}.{PartitionResult#dnsSuffix}", properties: k, headers: k }, type: d }] }] }] }, { error: "Invalid Configuration: Missing Region", type: c }] }] };
|
|
4
4
|
export const ruleSet = _data;
|
|
@@ -1,12 +1,8 @@
|
|
|
1
|
-
import { Athena } from "../Athena";
|
|
2
1
|
import { AthenaClient } from "../AthenaClient";
|
|
3
2
|
import { GetQueryResultsCommand, } from "../commands/GetQueryResultsCommand";
|
|
4
3
|
const makePagedClientRequest = async (client, input, ...args) => {
|
|
5
4
|
return await client.send(new GetQueryResultsCommand(input), ...args);
|
|
6
5
|
};
|
|
7
|
-
const makePagedRequest = async (client, input, ...args) => {
|
|
8
|
-
return await client.getQueryResults(input, ...args);
|
|
9
|
-
};
|
|
10
6
|
export async function* paginateGetQueryResults(config, input, ...additionalArguments) {
|
|
11
7
|
let token = config.startingToken || undefined;
|
|
12
8
|
let hasNext = true;
|
|
@@ -14,10 +10,7 @@ export async function* paginateGetQueryResults(config, input, ...additionalArgum
|
|
|
14
10
|
while (hasNext) {
|
|
15
11
|
input.NextToken = token;
|
|
16
12
|
input["MaxResults"] = config.pageSize;
|
|
17
|
-
if (config.client instanceof
|
|
18
|
-
page = await makePagedRequest(config.client, input, ...additionalArguments);
|
|
19
|
-
}
|
|
20
|
-
else if (config.client instanceof AthenaClient) {
|
|
13
|
+
if (config.client instanceof AthenaClient) {
|
|
21
14
|
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
22
15
|
}
|
|
23
16
|
else {
|
|
@@ -1,12 +1,8 @@
|
|
|
1
|
-
import { Athena } from "../Athena";
|
|
2
1
|
import { AthenaClient } from "../AthenaClient";
|
|
3
2
|
import { ListApplicationDPUSizesCommand, } from "../commands/ListApplicationDPUSizesCommand";
|
|
4
3
|
const makePagedClientRequest = async (client, input, ...args) => {
|
|
5
4
|
return await client.send(new ListApplicationDPUSizesCommand(input), ...args);
|
|
6
5
|
};
|
|
7
|
-
const makePagedRequest = async (client, input, ...args) => {
|
|
8
|
-
return await client.listApplicationDPUSizes(input, ...args);
|
|
9
|
-
};
|
|
10
6
|
export async function* paginateListApplicationDPUSizes(config, input, ...additionalArguments) {
|
|
11
7
|
let token = config.startingToken || undefined;
|
|
12
8
|
let hasNext = true;
|
|
@@ -14,10 +10,7 @@ export async function* paginateListApplicationDPUSizes(config, input, ...additio
|
|
|
14
10
|
while (hasNext) {
|
|
15
11
|
input.NextToken = token;
|
|
16
12
|
input["MaxResults"] = config.pageSize;
|
|
17
|
-
if (config.client instanceof
|
|
18
|
-
page = await makePagedRequest(config.client, input, ...additionalArguments);
|
|
19
|
-
}
|
|
20
|
-
else if (config.client instanceof AthenaClient) {
|
|
13
|
+
if (config.client instanceof AthenaClient) {
|
|
21
14
|
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
22
15
|
}
|
|
23
16
|
else {
|
|
@@ -1,12 +1,8 @@
|
|
|
1
|
-
import { Athena } from "../Athena";
|
|
2
1
|
import { AthenaClient } from "../AthenaClient";
|
|
3
2
|
import { ListCalculationExecutionsCommand, } from "../commands/ListCalculationExecutionsCommand";
|
|
4
3
|
const makePagedClientRequest = async (client, input, ...args) => {
|
|
5
4
|
return await client.send(new ListCalculationExecutionsCommand(input), ...args);
|
|
6
5
|
};
|
|
7
|
-
const makePagedRequest = async (client, input, ...args) => {
|
|
8
|
-
return await client.listCalculationExecutions(input, ...args);
|
|
9
|
-
};
|
|
10
6
|
export async function* paginateListCalculationExecutions(config, input, ...additionalArguments) {
|
|
11
7
|
let token = config.startingToken || undefined;
|
|
12
8
|
let hasNext = true;
|
|
@@ -14,10 +10,7 @@ export async function* paginateListCalculationExecutions(config, input, ...addit
|
|
|
14
10
|
while (hasNext) {
|
|
15
11
|
input.NextToken = token;
|
|
16
12
|
input["MaxResults"] = config.pageSize;
|
|
17
|
-
if (config.client instanceof
|
|
18
|
-
page = await makePagedRequest(config.client, input, ...additionalArguments);
|
|
19
|
-
}
|
|
20
|
-
else if (config.client instanceof AthenaClient) {
|
|
13
|
+
if (config.client instanceof AthenaClient) {
|
|
21
14
|
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
22
15
|
}
|
|
23
16
|
else {
|
|
@@ -1,12 +1,8 @@
|
|
|
1
|
-
import { Athena } from "../Athena";
|
|
2
1
|
import { AthenaClient } from "../AthenaClient";
|
|
3
2
|
import { ListDataCatalogsCommand, } from "../commands/ListDataCatalogsCommand";
|
|
4
3
|
const makePagedClientRequest = async (client, input, ...args) => {
|
|
5
4
|
return await client.send(new ListDataCatalogsCommand(input), ...args);
|
|
6
5
|
};
|
|
7
|
-
const makePagedRequest = async (client, input, ...args) => {
|
|
8
|
-
return await client.listDataCatalogs(input, ...args);
|
|
9
|
-
};
|
|
10
6
|
export async function* paginateListDataCatalogs(config, input, ...additionalArguments) {
|
|
11
7
|
let token = config.startingToken || undefined;
|
|
12
8
|
let hasNext = true;
|
|
@@ -14,10 +10,7 @@ export async function* paginateListDataCatalogs(config, input, ...additionalArgu
|
|
|
14
10
|
while (hasNext) {
|
|
15
11
|
input.NextToken = token;
|
|
16
12
|
input["MaxResults"] = config.pageSize;
|
|
17
|
-
if (config.client instanceof
|
|
18
|
-
page = await makePagedRequest(config.client, input, ...additionalArguments);
|
|
19
|
-
}
|
|
20
|
-
else if (config.client instanceof AthenaClient) {
|
|
13
|
+
if (config.client instanceof AthenaClient) {
|
|
21
14
|
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
22
15
|
}
|
|
23
16
|
else {
|
|
@@ -1,12 +1,8 @@
|
|
|
1
|
-
import { Athena } from "../Athena";
|
|
2
1
|
import { AthenaClient } from "../AthenaClient";
|
|
3
2
|
import { ListDatabasesCommand, } from "../commands/ListDatabasesCommand";
|
|
4
3
|
const makePagedClientRequest = async (client, input, ...args) => {
|
|
5
4
|
return await client.send(new ListDatabasesCommand(input), ...args);
|
|
6
5
|
};
|
|
7
|
-
const makePagedRequest = async (client, input, ...args) => {
|
|
8
|
-
return await client.listDatabases(input, ...args);
|
|
9
|
-
};
|
|
10
6
|
export async function* paginateListDatabases(config, input, ...additionalArguments) {
|
|
11
7
|
let token = config.startingToken || undefined;
|
|
12
8
|
let hasNext = true;
|
|
@@ -14,10 +10,7 @@ export async function* paginateListDatabases(config, input, ...additionalArgumen
|
|
|
14
10
|
while (hasNext) {
|
|
15
11
|
input.NextToken = token;
|
|
16
12
|
input["MaxResults"] = config.pageSize;
|
|
17
|
-
if (config.client instanceof
|
|
18
|
-
page = await makePagedRequest(config.client, input, ...additionalArguments);
|
|
19
|
-
}
|
|
20
|
-
else if (config.client instanceof AthenaClient) {
|
|
13
|
+
if (config.client instanceof AthenaClient) {
|
|
21
14
|
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
22
15
|
}
|
|
23
16
|
else {
|
|
@@ -1,12 +1,8 @@
|
|
|
1
|
-
import { Athena } from "../Athena";
|
|
2
1
|
import { AthenaClient } from "../AthenaClient";
|
|
3
2
|
import { ListEngineVersionsCommand, } from "../commands/ListEngineVersionsCommand";
|
|
4
3
|
const makePagedClientRequest = async (client, input, ...args) => {
|
|
5
4
|
return await client.send(new ListEngineVersionsCommand(input), ...args);
|
|
6
5
|
};
|
|
7
|
-
const makePagedRequest = async (client, input, ...args) => {
|
|
8
|
-
return await client.listEngineVersions(input, ...args);
|
|
9
|
-
};
|
|
10
6
|
export async function* paginateListEngineVersions(config, input, ...additionalArguments) {
|
|
11
7
|
let token = config.startingToken || undefined;
|
|
12
8
|
let hasNext = true;
|
|
@@ -14,10 +10,7 @@ export async function* paginateListEngineVersions(config, input, ...additionalAr
|
|
|
14
10
|
while (hasNext) {
|
|
15
11
|
input.NextToken = token;
|
|
16
12
|
input["MaxResults"] = config.pageSize;
|
|
17
|
-
if (config.client instanceof
|
|
18
|
-
page = await makePagedRequest(config.client, input, ...additionalArguments);
|
|
19
|
-
}
|
|
20
|
-
else if (config.client instanceof AthenaClient) {
|
|
13
|
+
if (config.client instanceof AthenaClient) {
|
|
21
14
|
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
22
15
|
}
|
|
23
16
|
else {
|
|
@@ -1,12 +1,8 @@
|
|
|
1
|
-
import { Athena } from "../Athena";
|
|
2
1
|
import { AthenaClient } from "../AthenaClient";
|
|
3
2
|
import { ListExecutorsCommand, } from "../commands/ListExecutorsCommand";
|
|
4
3
|
const makePagedClientRequest = async (client, input, ...args) => {
|
|
5
4
|
return await client.send(new ListExecutorsCommand(input), ...args);
|
|
6
5
|
};
|
|
7
|
-
const makePagedRequest = async (client, input, ...args) => {
|
|
8
|
-
return await client.listExecutors(input, ...args);
|
|
9
|
-
};
|
|
10
6
|
export async function* paginateListExecutors(config, input, ...additionalArguments) {
|
|
11
7
|
let token = config.startingToken || undefined;
|
|
12
8
|
let hasNext = true;
|
|
@@ -14,10 +10,7 @@ export async function* paginateListExecutors(config, input, ...additionalArgumen
|
|
|
14
10
|
while (hasNext) {
|
|
15
11
|
input.NextToken = token;
|
|
16
12
|
input["MaxResults"] = config.pageSize;
|
|
17
|
-
if (config.client instanceof
|
|
18
|
-
page = await makePagedRequest(config.client, input, ...additionalArguments);
|
|
19
|
-
}
|
|
20
|
-
else if (config.client instanceof AthenaClient) {
|
|
13
|
+
if (config.client instanceof AthenaClient) {
|
|
21
14
|
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
22
15
|
}
|
|
23
16
|
else {
|
|
@@ -1,12 +1,8 @@
|
|
|
1
|
-
import { Athena } from "../Athena";
|
|
2
1
|
import { AthenaClient } from "../AthenaClient";
|
|
3
2
|
import { ListNamedQueriesCommand, } from "../commands/ListNamedQueriesCommand";
|
|
4
3
|
const makePagedClientRequest = async (client, input, ...args) => {
|
|
5
4
|
return await client.send(new ListNamedQueriesCommand(input), ...args);
|
|
6
5
|
};
|
|
7
|
-
const makePagedRequest = async (client, input, ...args) => {
|
|
8
|
-
return await client.listNamedQueries(input, ...args);
|
|
9
|
-
};
|
|
10
6
|
export async function* paginateListNamedQueries(config, input, ...additionalArguments) {
|
|
11
7
|
let token = config.startingToken || undefined;
|
|
12
8
|
let hasNext = true;
|
|
@@ -14,10 +10,7 @@ export async function* paginateListNamedQueries(config, input, ...additionalArgu
|
|
|
14
10
|
while (hasNext) {
|
|
15
11
|
input.NextToken = token;
|
|
16
12
|
input["MaxResults"] = config.pageSize;
|
|
17
|
-
if (config.client instanceof
|
|
18
|
-
page = await makePagedRequest(config.client, input, ...additionalArguments);
|
|
19
|
-
}
|
|
20
|
-
else if (config.client instanceof AthenaClient) {
|
|
13
|
+
if (config.client instanceof AthenaClient) {
|
|
21
14
|
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
22
15
|
}
|
|
23
16
|
else {
|
|
@@ -1,12 +1,8 @@
|
|
|
1
|
-
import { Athena } from "../Athena";
|
|
2
1
|
import { AthenaClient } from "../AthenaClient";
|
|
3
2
|
import { ListPreparedStatementsCommand, } from "../commands/ListPreparedStatementsCommand";
|
|
4
3
|
const makePagedClientRequest = async (client, input, ...args) => {
|
|
5
4
|
return await client.send(new ListPreparedStatementsCommand(input), ...args);
|
|
6
5
|
};
|
|
7
|
-
const makePagedRequest = async (client, input, ...args) => {
|
|
8
|
-
return await client.listPreparedStatements(input, ...args);
|
|
9
|
-
};
|
|
10
6
|
export async function* paginateListPreparedStatements(config, input, ...additionalArguments) {
|
|
11
7
|
let token = config.startingToken || undefined;
|
|
12
8
|
let hasNext = true;
|
|
@@ -14,10 +10,7 @@ export async function* paginateListPreparedStatements(config, input, ...addition
|
|
|
14
10
|
while (hasNext) {
|
|
15
11
|
input.NextToken = token;
|
|
16
12
|
input["MaxResults"] = config.pageSize;
|
|
17
|
-
if (config.client instanceof
|
|
18
|
-
page = await makePagedRequest(config.client, input, ...additionalArguments);
|
|
19
|
-
}
|
|
20
|
-
else if (config.client instanceof AthenaClient) {
|
|
13
|
+
if (config.client instanceof AthenaClient) {
|
|
21
14
|
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
22
15
|
}
|
|
23
16
|
else {
|
|
@@ -1,12 +1,8 @@
|
|
|
1
|
-
import { Athena } from "../Athena";
|
|
2
1
|
import { AthenaClient } from "../AthenaClient";
|
|
3
2
|
import { ListQueryExecutionsCommand, } from "../commands/ListQueryExecutionsCommand";
|
|
4
3
|
const makePagedClientRequest = async (client, input, ...args) => {
|
|
5
4
|
return await client.send(new ListQueryExecutionsCommand(input), ...args);
|
|
6
5
|
};
|
|
7
|
-
const makePagedRequest = async (client, input, ...args) => {
|
|
8
|
-
return await client.listQueryExecutions(input, ...args);
|
|
9
|
-
};
|
|
10
6
|
export async function* paginateListQueryExecutions(config, input, ...additionalArguments) {
|
|
11
7
|
let token = config.startingToken || undefined;
|
|
12
8
|
let hasNext = true;
|
|
@@ -14,10 +10,7 @@ export async function* paginateListQueryExecutions(config, input, ...additionalA
|
|
|
14
10
|
while (hasNext) {
|
|
15
11
|
input.NextToken = token;
|
|
16
12
|
input["MaxResults"] = config.pageSize;
|
|
17
|
-
if (config.client instanceof
|
|
18
|
-
page = await makePagedRequest(config.client, input, ...additionalArguments);
|
|
19
|
-
}
|
|
20
|
-
else if (config.client instanceof AthenaClient) {
|
|
13
|
+
if (config.client instanceof AthenaClient) {
|
|
21
14
|
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
22
15
|
}
|
|
23
16
|
else {
|
|
@@ -1,12 +1,8 @@
|
|
|
1
|
-
import { Athena } from "../Athena";
|
|
2
1
|
import { AthenaClient } from "../AthenaClient";
|
|
3
2
|
import { ListSessionsCommand, } from "../commands/ListSessionsCommand";
|
|
4
3
|
const makePagedClientRequest = async (client, input, ...args) => {
|
|
5
4
|
return await client.send(new ListSessionsCommand(input), ...args);
|
|
6
5
|
};
|
|
7
|
-
const makePagedRequest = async (client, input, ...args) => {
|
|
8
|
-
return await client.listSessions(input, ...args);
|
|
9
|
-
};
|
|
10
6
|
export async function* paginateListSessions(config, input, ...additionalArguments) {
|
|
11
7
|
let token = config.startingToken || undefined;
|
|
12
8
|
let hasNext = true;
|
|
@@ -14,10 +10,7 @@ export async function* paginateListSessions(config, input, ...additionalArgument
|
|
|
14
10
|
while (hasNext) {
|
|
15
11
|
input.NextToken = token;
|
|
16
12
|
input["MaxResults"] = config.pageSize;
|
|
17
|
-
if (config.client instanceof
|
|
18
|
-
page = await makePagedRequest(config.client, input, ...additionalArguments);
|
|
19
|
-
}
|
|
20
|
-
else if (config.client instanceof AthenaClient) {
|
|
13
|
+
if (config.client instanceof AthenaClient) {
|
|
21
14
|
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
22
15
|
}
|
|
23
16
|
else {
|
|
@@ -1,12 +1,8 @@
|
|
|
1
|
-
import { Athena } from "../Athena";
|
|
2
1
|
import { AthenaClient } from "../AthenaClient";
|
|
3
2
|
import { ListTableMetadataCommand, } from "../commands/ListTableMetadataCommand";
|
|
4
3
|
const makePagedClientRequest = async (client, input, ...args) => {
|
|
5
4
|
return await client.send(new ListTableMetadataCommand(input), ...args);
|
|
6
5
|
};
|
|
7
|
-
const makePagedRequest = async (client, input, ...args) => {
|
|
8
|
-
return await client.listTableMetadata(input, ...args);
|
|
9
|
-
};
|
|
10
6
|
export async function* paginateListTableMetadata(config, input, ...additionalArguments) {
|
|
11
7
|
let token = config.startingToken || undefined;
|
|
12
8
|
let hasNext = true;
|
|
@@ -14,10 +10,7 @@ export async function* paginateListTableMetadata(config, input, ...additionalArg
|
|
|
14
10
|
while (hasNext) {
|
|
15
11
|
input.NextToken = token;
|
|
16
12
|
input["MaxResults"] = config.pageSize;
|
|
17
|
-
if (config.client instanceof
|
|
18
|
-
page = await makePagedRequest(config.client, input, ...additionalArguments);
|
|
19
|
-
}
|
|
20
|
-
else if (config.client instanceof AthenaClient) {
|
|
13
|
+
if (config.client instanceof AthenaClient) {
|
|
21
14
|
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
22
15
|
}
|
|
23
16
|
else {
|
|
@@ -1,12 +1,8 @@
|
|
|
1
|
-
import { Athena } from "../Athena";
|
|
2
1
|
import { AthenaClient } from "../AthenaClient";
|
|
3
2
|
import { ListTagsForResourceCommand, } from "../commands/ListTagsForResourceCommand";
|
|
4
3
|
const makePagedClientRequest = async (client, input, ...args) => {
|
|
5
4
|
return await client.send(new ListTagsForResourceCommand(input), ...args);
|
|
6
5
|
};
|
|
7
|
-
const makePagedRequest = async (client, input, ...args) => {
|
|
8
|
-
return await client.listTagsForResource(input, ...args);
|
|
9
|
-
};
|
|
10
6
|
export async function* paginateListTagsForResource(config, input, ...additionalArguments) {
|
|
11
7
|
let token = config.startingToken || undefined;
|
|
12
8
|
let hasNext = true;
|
|
@@ -14,10 +10,7 @@ export async function* paginateListTagsForResource(config, input, ...additionalA
|
|
|
14
10
|
while (hasNext) {
|
|
15
11
|
input.NextToken = token;
|
|
16
12
|
input["MaxResults"] = config.pageSize;
|
|
17
|
-
if (config.client instanceof
|
|
18
|
-
page = await makePagedRequest(config.client, input, ...additionalArguments);
|
|
19
|
-
}
|
|
20
|
-
else if (config.client instanceof AthenaClient) {
|
|
13
|
+
if (config.client instanceof AthenaClient) {
|
|
21
14
|
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
22
15
|
}
|
|
23
16
|
else {
|
|
@@ -1,12 +1,8 @@
|
|
|
1
|
-
import { Athena } from "../Athena";
|
|
2
1
|
import { AthenaClient } from "../AthenaClient";
|
|
3
2
|
import { ListWorkGroupsCommand, } from "../commands/ListWorkGroupsCommand";
|
|
4
3
|
const makePagedClientRequest = async (client, input, ...args) => {
|
|
5
4
|
return await client.send(new ListWorkGroupsCommand(input), ...args);
|
|
6
5
|
};
|
|
7
|
-
const makePagedRequest = async (client, input, ...args) => {
|
|
8
|
-
return await client.listWorkGroups(input, ...args);
|
|
9
|
-
};
|
|
10
6
|
export async function* paginateListWorkGroups(config, input, ...additionalArguments) {
|
|
11
7
|
let token = config.startingToken || undefined;
|
|
12
8
|
let hasNext = true;
|
|
@@ -14,10 +10,7 @@ export async function* paginateListWorkGroups(config, input, ...additionalArgume
|
|
|
14
10
|
while (hasNext) {
|
|
15
11
|
input.NextToken = token;
|
|
16
12
|
input["MaxResults"] = config.pageSize;
|
|
17
|
-
if (config.client instanceof
|
|
18
|
-
page = await makePagedRequest(config.client, input, ...additionalArguments);
|
|
19
|
-
}
|
|
20
|
-
else if (config.client instanceof AthenaClient) {
|
|
13
|
+
if (config.client instanceof AthenaClient) {
|
|
21
14
|
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
22
15
|
}
|
|
23
16
|
else {
|
|
@@ -4195,6 +4195,7 @@ const deserializeAws_json1_1QueryExecution = (output, context) => {
|
|
|
4195
4195
|
? deserializeAws_json1_1QueryExecutionStatistics(output.Statistics, context)
|
|
4196
4196
|
: undefined,
|
|
4197
4197
|
Status: output.Status != null ? deserializeAws_json1_1QueryExecutionStatus(output.Status, context) : undefined,
|
|
4198
|
+
SubstatementType: __expectString(output.SubstatementType),
|
|
4198
4199
|
WorkGroup: __expectString(output.WorkGroup),
|
|
4199
4200
|
};
|
|
4200
4201
|
};
|
package/dist-types/Athena.d.ts
CHANGED
|
@@ -347,6 +347,9 @@ export declare class Athena extends AthenaClient {
|
|
|
347
347
|
listDatabases(args: ListDatabasesCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListDatabasesCommandOutput) => void): void;
|
|
348
348
|
/**
|
|
349
349
|
* <p>Lists the data catalogs in the current Amazon Web Services account.</p>
|
|
350
|
+
* <note>
|
|
351
|
+
* <p>In the Athena console, data catalogs are listed as "data sources" on the <b>Data sources</b> page under the <b>Data source name</b> column.</p>
|
|
352
|
+
* </note>
|
|
350
353
|
*/
|
|
351
354
|
listDataCatalogs(args: ListDataCatalogsCommandInput, options?: __HttpHandlerOptions): Promise<ListDataCatalogsCommandOutput>;
|
|
352
355
|
listDataCatalogs(args: ListDataCatalogsCommandInput, cb: (err: any, data?: ListDataCatalogsCommandOutput) => void): void;
|
|
@@ -15,6 +15,9 @@ export interface ListDataCatalogsCommandOutput extends ListDataCatalogsOutput, _
|
|
|
15
15
|
}
|
|
16
16
|
/**
|
|
17
17
|
* <p>Lists the data catalogs in the current Amazon Web Services account.</p>
|
|
18
|
+
* <note>
|
|
19
|
+
* <p>In the Athena console, data catalogs are listed as "data sources" on the <b>Data sources</b> page under the <b>Data source name</b> column.</p>
|
|
20
|
+
* </note>
|
|
18
21
|
* @example
|
|
19
22
|
* Use a bare-bones client and the command you need to make an API call.
|
|
20
23
|
* ```javascript
|
|
@@ -12,7 +12,7 @@ export declare const resolveClientEndpointParameters: <T>(options: T & ClientInp
|
|
|
12
12
|
defaultSigningName: string;
|
|
13
13
|
};
|
|
14
14
|
export interface EndpointParameters extends __EndpointParameters {
|
|
15
|
-
Region
|
|
15
|
+
Region?: string;
|
|
16
16
|
UseDualStack?: boolean;
|
|
17
17
|
UseFIPS?: boolean;
|
|
18
18
|
Endpoint?: string;
|
|
@@ -217,7 +217,7 @@ export interface BatchGetQueryExecutionInput {
|
|
|
217
217
|
export interface EngineVersion {
|
|
218
218
|
/**
|
|
219
219
|
* <p>The engine version requested by the user. Possible values are determined by the output
|
|
220
|
-
* of <code>ListEngineVersions</code>, including
|
|
220
|
+
* of <code>ListEngineVersions</code>, including AUTO. The default is AUTO.</p>
|
|
221
221
|
*/
|
|
222
222
|
SelectedEngineVersion?: string;
|
|
223
223
|
/**
|
|
@@ -543,6 +543,10 @@ export interface QueryExecution {
|
|
|
543
543
|
* the parameters in the query in the order in which the parameters occur.</p>
|
|
544
544
|
*/
|
|
545
545
|
ExecutionParameters?: string[];
|
|
546
|
+
/**
|
|
547
|
+
* <p>The kind of query statement that was run.</p>
|
|
548
|
+
*/
|
|
549
|
+
SubstatementType?: string;
|
|
546
550
|
}
|
|
547
551
|
/**
|
|
548
552
|
* <p>Describes a query execution that failed to process.</p>
|
|
@@ -1251,6 +1255,9 @@ export interface GetDataCatalogInput {
|
|
|
1251
1255
|
}
|
|
1252
1256
|
/**
|
|
1253
1257
|
* <p>Contains information about a data catalog in an Amazon Web Services account.</p>
|
|
1258
|
+
* <note>
|
|
1259
|
+
* <p>In the Athena console, data catalogs are listed as "data sources" on the <b>Data sources</b> page under the <b>Data source name</b> column.</p>
|
|
1260
|
+
* </note>
|
|
1254
1261
|
*/
|
|
1255
1262
|
export interface DataCatalog {
|
|
1256
1263
|
/**
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { PaginationConfiguration } from "@aws-sdk/types";
|
|
2
|
-
import { Athena } from "../Athena";
|
|
3
2
|
import { AthenaClient } from "../AthenaClient";
|
|
4
3
|
export interface AthenaPaginationConfiguration extends PaginationConfiguration {
|
|
5
|
-
client:
|
|
4
|
+
client: AthenaClient;
|
|
6
5
|
}
|
|
@@ -27,7 +27,7 @@ export declare const resolveClientEndpointParameters: <T>(
|
|
|
27
27
|
defaultSigningName: string;
|
|
28
28
|
};
|
|
29
29
|
export interface EndpointParameters extends __EndpointParameters {
|
|
30
|
-
Region
|
|
30
|
+
Region?: string;
|
|
31
31
|
UseDualStack?: boolean;
|
|
32
32
|
UseFIPS?: boolean;
|
|
33
33
|
Endpoint?: string;
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { PaginationConfiguration } from "@aws-sdk/types";
|
|
2
|
-
import { Athena } from "../Athena";
|
|
3
2
|
import { AthenaClient } from "../AthenaClient";
|
|
4
3
|
export interface AthenaPaginationConfiguration extends PaginationConfiguration {
|
|
5
|
-
client:
|
|
4
|
+
client: AthenaClient;
|
|
6
5
|
}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/client-athena",
|
|
3
3
|
"description": "AWS SDK for JavaScript Athena Client for Node.js, Browser and React Native",
|
|
4
|
-
"version": "3.
|
|
4
|
+
"version": "3.287.0",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
|
|
7
7
|
"build:cjs": "tsc -p tsconfig.cjs.json",
|
|
@@ -20,25 +20,25 @@
|
|
|
20
20
|
"dependencies": {
|
|
21
21
|
"@aws-crypto/sha256-browser": "3.0.0",
|
|
22
22
|
"@aws-crypto/sha256-js": "3.0.0",
|
|
23
|
-
"@aws-sdk/client-sts": "3.
|
|
24
|
-
"@aws-sdk/config-resolver": "3.
|
|
25
|
-
"@aws-sdk/credential-provider-node": "3.
|
|
26
|
-
"@aws-sdk/fetch-http-handler": "3.
|
|
23
|
+
"@aws-sdk/client-sts": "3.287.0",
|
|
24
|
+
"@aws-sdk/config-resolver": "3.287.0",
|
|
25
|
+
"@aws-sdk/credential-provider-node": "3.287.0",
|
|
26
|
+
"@aws-sdk/fetch-http-handler": "3.282.0",
|
|
27
27
|
"@aws-sdk/hash-node": "3.272.0",
|
|
28
28
|
"@aws-sdk/invalid-dependency": "3.272.0",
|
|
29
|
-
"@aws-sdk/middleware-content-length": "3.
|
|
30
|
-
"@aws-sdk/middleware-endpoint": "3.
|
|
31
|
-
"@aws-sdk/middleware-host-header": "3.
|
|
32
|
-
"@aws-sdk/middleware-logger": "3.
|
|
33
|
-
"@aws-sdk/middleware-recursion-detection": "3.
|
|
34
|
-
"@aws-sdk/middleware-retry": "3.
|
|
29
|
+
"@aws-sdk/middleware-content-length": "3.282.0",
|
|
30
|
+
"@aws-sdk/middleware-endpoint": "3.282.0",
|
|
31
|
+
"@aws-sdk/middleware-host-header": "3.282.0",
|
|
32
|
+
"@aws-sdk/middleware-logger": "3.287.0",
|
|
33
|
+
"@aws-sdk/middleware-recursion-detection": "3.282.0",
|
|
34
|
+
"@aws-sdk/middleware-retry": "3.287.0",
|
|
35
35
|
"@aws-sdk/middleware-serde": "3.272.0",
|
|
36
|
-
"@aws-sdk/middleware-signing": "3.
|
|
36
|
+
"@aws-sdk/middleware-signing": "3.282.0",
|
|
37
37
|
"@aws-sdk/middleware-stack": "3.272.0",
|
|
38
|
-
"@aws-sdk/middleware-user-agent": "3.
|
|
39
|
-
"@aws-sdk/node-config-provider": "3.
|
|
40
|
-
"@aws-sdk/node-http-handler": "3.
|
|
41
|
-
"@aws-sdk/protocol-http": "3.
|
|
38
|
+
"@aws-sdk/middleware-user-agent": "3.282.0",
|
|
39
|
+
"@aws-sdk/node-config-provider": "3.287.0",
|
|
40
|
+
"@aws-sdk/node-http-handler": "3.282.0",
|
|
41
|
+
"@aws-sdk/protocol-http": "3.282.0",
|
|
42
42
|
"@aws-sdk/smithy-client": "3.279.0",
|
|
43
43
|
"@aws-sdk/types": "3.272.0",
|
|
44
44
|
"@aws-sdk/url-parser": "3.272.0",
|
|
@@ -46,11 +46,11 @@
|
|
|
46
46
|
"@aws-sdk/util-body-length-browser": "3.188.0",
|
|
47
47
|
"@aws-sdk/util-body-length-node": "3.208.0",
|
|
48
48
|
"@aws-sdk/util-defaults-mode-browser": "3.279.0",
|
|
49
|
-
"@aws-sdk/util-defaults-mode-node": "3.
|
|
49
|
+
"@aws-sdk/util-defaults-mode-node": "3.287.0",
|
|
50
50
|
"@aws-sdk/util-endpoints": "3.272.0",
|
|
51
51
|
"@aws-sdk/util-retry": "3.272.0",
|
|
52
|
-
"@aws-sdk/util-user-agent-browser": "3.
|
|
53
|
-
"@aws-sdk/util-user-agent-node": "3.
|
|
52
|
+
"@aws-sdk/util-user-agent-browser": "3.282.0",
|
|
53
|
+
"@aws-sdk/util-user-agent-node": "3.287.0",
|
|
54
54
|
"@aws-sdk/util-utf8": "3.254.0",
|
|
55
55
|
"tslib": "^2.3.1",
|
|
56
56
|
"uuid": "^8.3.2"
|