@aws-sdk/client-athena 3.53.0 → 3.55.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/CHANGELOG.md +27 -0
- package/dist-cjs/Athena.js +15 -0
- package/dist-cjs/AthenaClient.js +13 -13
- package/dist-cjs/commands/BatchGetNamedQueryCommand.js +3 -3
- package/dist-cjs/commands/BatchGetQueryExecutionCommand.js +3 -3
- package/dist-cjs/commands/CreateDataCatalogCommand.js +3 -3
- package/dist-cjs/commands/CreateNamedQueryCommand.js +3 -3
- package/dist-cjs/commands/CreatePreparedStatementCommand.js +3 -3
- package/dist-cjs/commands/CreateWorkGroupCommand.js +3 -3
- package/dist-cjs/commands/DeleteDataCatalogCommand.js +3 -3
- package/dist-cjs/commands/DeleteNamedQueryCommand.js +3 -3
- package/dist-cjs/commands/DeletePreparedStatementCommand.js +3 -3
- package/dist-cjs/commands/DeleteWorkGroupCommand.js +3 -3
- package/dist-cjs/commands/GetDataCatalogCommand.js +3 -3
- package/dist-cjs/commands/GetDatabaseCommand.js +3 -3
- package/dist-cjs/commands/GetNamedQueryCommand.js +3 -3
- package/dist-cjs/commands/GetPreparedStatementCommand.js +3 -3
- package/dist-cjs/commands/GetQueryExecutionCommand.js +3 -3
- package/dist-cjs/commands/GetQueryResultsCommand.js +3 -3
- package/dist-cjs/commands/GetTableMetadataCommand.js +3 -3
- package/dist-cjs/commands/GetWorkGroupCommand.js +3 -3
- package/dist-cjs/commands/ListDataCatalogsCommand.js +3 -3
- package/dist-cjs/commands/ListDatabasesCommand.js +3 -3
- package/dist-cjs/commands/ListEngineVersionsCommand.js +3 -3
- package/dist-cjs/commands/ListNamedQueriesCommand.js +3 -3
- package/dist-cjs/commands/ListPreparedStatementsCommand.js +3 -3
- package/dist-cjs/commands/ListQueryExecutionsCommand.js +3 -3
- package/dist-cjs/commands/ListTableMetadataCommand.js +3 -3
- package/dist-cjs/commands/ListTagsForResourceCommand.js +3 -3
- package/dist-cjs/commands/ListWorkGroupsCommand.js +3 -3
- package/dist-cjs/commands/StartQueryExecutionCommand.js +3 -3
- package/dist-cjs/commands/StopQueryExecutionCommand.js +3 -3
- package/dist-cjs/commands/TagResourceCommand.js +3 -3
- package/dist-cjs/commands/UntagResourceCommand.js +3 -3
- package/dist-cjs/commands/UpdateDataCatalogCommand.js +3 -3
- package/dist-cjs/commands/UpdateNamedQueryCommand.js +36 -0
- package/dist-cjs/commands/UpdatePreparedStatementCommand.js +3 -3
- package/dist-cjs/commands/UpdateWorkGroupCommand.js +3 -3
- package/dist-cjs/commands/index.js +1 -0
- package/dist-cjs/endpoints.js +1 -1
- package/dist-cjs/models/models_0.js +25 -3
- package/dist-cjs/protocols/Aws_json1_1.js +235 -152
- package/dist-cjs/runtimeConfig.browser.js +4 -4
- package/dist-cjs/runtimeConfig.js +9 -9
- package/dist-cjs/runtimeConfig.native.js +1 -1
- package/dist-es/Athena.js +49 -34
- package/dist-es/commands/UpdateNamedQueryCommand.js +39 -0
- package/dist-es/commands/index.js +1 -0
- package/dist-es/models/models_0.js +16 -0
- package/dist-es/pagination/GetQueryResultsPaginator.js +4 -4
- package/dist-es/pagination/ListDataCatalogsPaginator.js +4 -4
- package/dist-es/pagination/ListDatabasesPaginator.js +4 -4
- package/dist-es/pagination/ListNamedQueriesPaginator.js +4 -4
- package/dist-es/pagination/ListPreparedStatementsPaginator.js +4 -4
- package/dist-es/pagination/ListQueryExecutionsPaginator.js +4 -4
- package/dist-es/pagination/ListTableMetadataPaginator.js +4 -4
- package/dist-es/pagination/ListTagsForResourcePaginator.js +4 -4
- package/dist-es/pagination/ListWorkGroupsPaginator.js +4 -4
- package/dist-es/protocols/Aws_json1_1.js +92 -3
- package/dist-types/Athena.d.ts +7 -0
- package/dist-types/AthenaClient.d.ts +5 -4
- package/dist-types/commands/UpdateNamedQueryCommand.d.ts +35 -0
- package/dist-types/commands/index.d.ts +1 -0
- package/dist-types/models/models_0.d.ts +90 -7
- package/dist-types/protocols/Aws_json1_1.d.ts +3 -0
- package/dist-types/runtimeConfig.browser.d.ts +1 -1
- package/dist-types/runtimeConfig.d.ts +1 -1
- package/dist-types/runtimeConfig.native.d.ts +3 -3
- package/dist-types/ts3.4/Athena.d.ts +5 -0
- package/dist-types/ts3.4/AthenaClient.d.ts +5 -4
- package/dist-types/ts3.4/commands/UpdateNamedQueryCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/index.d.ts +1 -0
- package/dist-types/ts3.4/models/models_0.d.ts +38 -0
- package/dist-types/ts3.4/protocols/Aws_json1_1.d.ts +3 -0
- package/dist-types/ts3.4/runtimeConfig.browser.d.ts +1 -1
- package/dist-types/ts3.4/runtimeConfig.d.ts +1 -1
- package/dist-types/ts3.4/runtimeConfig.native.d.ts +3 -3
- package/package.json +34 -34
|
@@ -17,9 +17,9 @@ const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
|
17
17
|
const util_defaults_mode_browser_1 = require("@aws-sdk/util-defaults-mode-browser");
|
|
18
18
|
const getRuntimeConfig = (config) => {
|
|
19
19
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q;
|
|
20
|
-
const defaultsMode = util_defaults_mode_browser_1.resolveDefaultsModeConfig(config);
|
|
20
|
+
const defaultsMode = (0, util_defaults_mode_browser_1.resolveDefaultsModeConfig)(config);
|
|
21
21
|
const defaultConfigProvider = () => defaultsMode().then(smithy_client_1.loadConfigsForDefaultMode);
|
|
22
|
-
const clientSharedValues = runtimeConfig_shared_1.getRuntimeConfig(config);
|
|
22
|
+
const clientSharedValues = (0, runtimeConfig_shared_1.getRuntimeConfig)(config);
|
|
23
23
|
return {
|
|
24
24
|
...clientSharedValues,
|
|
25
25
|
...config,
|
|
@@ -29,9 +29,9 @@ const getRuntimeConfig = (config) => {
|
|
|
29
29
|
base64Encoder: (_b = config === null || config === void 0 ? void 0 : config.base64Encoder) !== null && _b !== void 0 ? _b : util_base64_browser_1.toBase64,
|
|
30
30
|
bodyLengthChecker: (_c = config === null || config === void 0 ? void 0 : config.bodyLengthChecker) !== null && _c !== void 0 ? _c : util_body_length_browser_1.calculateBodyLength,
|
|
31
31
|
credentialDefaultProvider: (_d = config === null || config === void 0 ? void 0 : config.credentialDefaultProvider) !== null && _d !== void 0 ? _d : ((_) => () => Promise.reject(new Error("Credential is missing"))),
|
|
32
|
-
defaultUserAgentProvider: (_e = config === null || config === void 0 ? void 0 : config.defaultUserAgentProvider) !== null && _e !== void 0 ? _e : util_user_agent_browser_1.defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: package_json_1.default.version }),
|
|
32
|
+
defaultUserAgentProvider: (_e = config === null || config === void 0 ? void 0 : config.defaultUserAgentProvider) !== null && _e !== void 0 ? _e : (0, util_user_agent_browser_1.defaultUserAgent)({ serviceId: clientSharedValues.serviceId, clientVersion: package_json_1.default.version }),
|
|
33
33
|
maxAttempts: (_f = config === null || config === void 0 ? void 0 : config.maxAttempts) !== null && _f !== void 0 ? _f : middleware_retry_1.DEFAULT_MAX_ATTEMPTS,
|
|
34
|
-
region: (_g = config === null || config === void 0 ? void 0 : config.region) !== null && _g !== void 0 ? _g : invalid_dependency_1.invalidProvider("Region is missing"),
|
|
34
|
+
region: (_g = config === null || config === void 0 ? void 0 : config.region) !== null && _g !== void 0 ? _g : (0, invalid_dependency_1.invalidProvider)("Region is missing"),
|
|
35
35
|
requestHandler: (_h = config === null || config === void 0 ? void 0 : config.requestHandler) !== null && _h !== void 0 ? _h : new fetch_http_handler_1.FetchHttpHandler(defaultConfigProvider),
|
|
36
36
|
retryMode: (_j = config === null || config === void 0 ? void 0 : config.retryMode) !== null && _j !== void 0 ? _j : (async () => (await defaultConfigProvider()).retryMode || middleware_retry_1.DEFAULT_RETRY_MODE),
|
|
37
37
|
sha256: (_k = config === null || config === void 0 ? void 0 : config.sha256) !== null && _k !== void 0 ? _k : sha256_browser_1.Sha256,
|
|
@@ -19,9 +19,9 @@ const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
|
19
19
|
const util_defaults_mode_node_1 = require("@aws-sdk/util-defaults-mode-node");
|
|
20
20
|
const getRuntimeConfig = (config) => {
|
|
21
21
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q;
|
|
22
|
-
const defaultsMode = util_defaults_mode_node_1.resolveDefaultsModeConfig(config);
|
|
22
|
+
const defaultsMode = (0, util_defaults_mode_node_1.resolveDefaultsModeConfig)(config);
|
|
23
23
|
const defaultConfigProvider = () => defaultsMode().then(smithy_client_1.loadConfigsForDefaultMode);
|
|
24
|
-
const clientSharedValues = runtimeConfig_shared_1.getRuntimeConfig(config);
|
|
24
|
+
const clientSharedValues = (0, runtimeConfig_shared_1.getRuntimeConfig)(config);
|
|
25
25
|
return {
|
|
26
26
|
...clientSharedValues,
|
|
27
27
|
...config,
|
|
@@ -30,19 +30,19 @@ const getRuntimeConfig = (config) => {
|
|
|
30
30
|
base64Decoder: (_a = config === null || config === void 0 ? void 0 : config.base64Decoder) !== null && _a !== void 0 ? _a : util_base64_node_1.fromBase64,
|
|
31
31
|
base64Encoder: (_b = config === null || config === void 0 ? void 0 : config.base64Encoder) !== null && _b !== void 0 ? _b : util_base64_node_1.toBase64,
|
|
32
32
|
bodyLengthChecker: (_c = config === null || config === void 0 ? void 0 : config.bodyLengthChecker) !== null && _c !== void 0 ? _c : util_body_length_node_1.calculateBodyLength,
|
|
33
|
-
credentialDefaultProvider: (_d = config === null || config === void 0 ? void 0 : config.credentialDefaultProvider) !== null && _d !== void 0 ? _d : client_sts_1.decorateDefaultCredentialProvider(credential_provider_node_1.defaultProvider),
|
|
34
|
-
defaultUserAgentProvider: (_e = config === null || config === void 0 ? void 0 : config.defaultUserAgentProvider) !== null && _e !== void 0 ? _e : util_user_agent_node_1.defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: package_json_1.default.version }),
|
|
35
|
-
maxAttempts: (_f = config === null || config === void 0 ? void 0 : config.maxAttempts) !== null && _f !== void 0 ? _f : node_config_provider_1.loadConfig(middleware_retry_1.NODE_MAX_ATTEMPT_CONFIG_OPTIONS),
|
|
36
|
-
region: (_g = config === null || config === void 0 ? void 0 : config.region) !== null && _g !== void 0 ? _g : node_config_provider_1.loadConfig(config_resolver_1.NODE_REGION_CONFIG_OPTIONS, config_resolver_1.NODE_REGION_CONFIG_FILE_OPTIONS),
|
|
33
|
+
credentialDefaultProvider: (_d = config === null || config === void 0 ? void 0 : config.credentialDefaultProvider) !== null && _d !== void 0 ? _d : (0, client_sts_1.decorateDefaultCredentialProvider)(credential_provider_node_1.defaultProvider),
|
|
34
|
+
defaultUserAgentProvider: (_e = config === null || config === void 0 ? void 0 : config.defaultUserAgentProvider) !== null && _e !== void 0 ? _e : (0, util_user_agent_node_1.defaultUserAgent)({ serviceId: clientSharedValues.serviceId, clientVersion: package_json_1.default.version }),
|
|
35
|
+
maxAttempts: (_f = config === null || config === void 0 ? void 0 : config.maxAttempts) !== null && _f !== void 0 ? _f : (0, node_config_provider_1.loadConfig)(middleware_retry_1.NODE_MAX_ATTEMPT_CONFIG_OPTIONS),
|
|
36
|
+
region: (_g = config === null || config === void 0 ? void 0 : config.region) !== null && _g !== void 0 ? _g : (0, node_config_provider_1.loadConfig)(config_resolver_1.NODE_REGION_CONFIG_OPTIONS, config_resolver_1.NODE_REGION_CONFIG_FILE_OPTIONS),
|
|
37
37
|
requestHandler: (_h = config === null || config === void 0 ? void 0 : config.requestHandler) !== null && _h !== void 0 ? _h : new node_http_handler_1.NodeHttpHandler(defaultConfigProvider),
|
|
38
|
-
retryMode: (_j = config === null || config === void 0 ? void 0 : config.retryMode) !== null && _j !== void 0 ? _j : node_config_provider_1.loadConfig({
|
|
38
|
+
retryMode: (_j = config === null || config === void 0 ? void 0 : config.retryMode) !== null && _j !== void 0 ? _j : (0, node_config_provider_1.loadConfig)({
|
|
39
39
|
...middleware_retry_1.NODE_RETRY_MODE_CONFIG_OPTIONS,
|
|
40
40
|
default: async () => (await defaultConfigProvider()).retryMode || middleware_retry_1.DEFAULT_RETRY_MODE,
|
|
41
41
|
}),
|
|
42
42
|
sha256: (_k = config === null || config === void 0 ? void 0 : config.sha256) !== null && _k !== void 0 ? _k : hash_node_1.Hash.bind(null, "sha256"),
|
|
43
43
|
streamCollector: (_l = config === null || config === void 0 ? void 0 : config.streamCollector) !== null && _l !== void 0 ? _l : node_http_handler_1.streamCollector,
|
|
44
|
-
useDualstackEndpoint: (_m = config === null || config === void 0 ? void 0 : config.useDualstackEndpoint) !== null && _m !== void 0 ? _m : node_config_provider_1.loadConfig(config_resolver_1.NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS),
|
|
45
|
-
useFipsEndpoint: (_o = config === null || config === void 0 ? void 0 : config.useFipsEndpoint) !== null && _o !== void 0 ? _o : node_config_provider_1.loadConfig(config_resolver_1.NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS),
|
|
44
|
+
useDualstackEndpoint: (_m = config === null || config === void 0 ? void 0 : config.useDualstackEndpoint) !== null && _m !== void 0 ? _m : (0, node_config_provider_1.loadConfig)(config_resolver_1.NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS),
|
|
45
|
+
useFipsEndpoint: (_o = config === null || config === void 0 ? void 0 : config.useFipsEndpoint) !== null && _o !== void 0 ? _o : (0, node_config_provider_1.loadConfig)(config_resolver_1.NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS),
|
|
46
46
|
utf8Decoder: (_p = config === null || config === void 0 ? void 0 : config.utf8Decoder) !== null && _p !== void 0 ? _p : util_utf8_node_1.fromUtf8,
|
|
47
47
|
utf8Encoder: (_q = config === null || config === void 0 ? void 0 : config.utf8Encoder) !== null && _q !== void 0 ? _q : util_utf8_node_1.toUtf8,
|
|
48
48
|
};
|
|
@@ -5,7 +5,7 @@ const sha256_js_1 = require("@aws-crypto/sha256-js");
|
|
|
5
5
|
const runtimeConfig_browser_1 = require("./runtimeConfig.browser");
|
|
6
6
|
const getRuntimeConfig = (config) => {
|
|
7
7
|
var _a;
|
|
8
|
-
const browserDefaults = runtimeConfig_browser_1.getRuntimeConfig(config);
|
|
8
|
+
const browserDefaults = (0, runtimeConfig_browser_1.getRuntimeConfig)(config);
|
|
9
9
|
return {
|
|
10
10
|
...browserDefaults,
|
|
11
11
|
...config,
|
package/dist-es/Athena.js
CHANGED
|
@@ -32,6 +32,7 @@ import { StopQueryExecutionCommand, } from "./commands/StopQueryExecutionCommand
|
|
|
32
32
|
import { TagResourceCommand } from "./commands/TagResourceCommand";
|
|
33
33
|
import { UntagResourceCommand, } from "./commands/UntagResourceCommand";
|
|
34
34
|
import { UpdateDataCatalogCommand, } from "./commands/UpdateDataCatalogCommand";
|
|
35
|
+
import { UpdateNamedQueryCommand, } from "./commands/UpdateNamedQueryCommand";
|
|
35
36
|
import { UpdatePreparedStatementCommand, } from "./commands/UpdatePreparedStatementCommand";
|
|
36
37
|
import { UpdateWorkGroupCommand, } from "./commands/UpdateWorkGroupCommand";
|
|
37
38
|
var Athena = (function (_super) {
|
|
@@ -46,7 +47,7 @@ var Athena = (function (_super) {
|
|
|
46
47
|
}
|
|
47
48
|
else if (typeof cb === "function") {
|
|
48
49
|
if (typeof optionsOrCb !== "object")
|
|
49
|
-
throw new Error("Expect http options but get "
|
|
50
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
50
51
|
this.send(command, optionsOrCb || {}, cb);
|
|
51
52
|
}
|
|
52
53
|
else {
|
|
@@ -60,7 +61,7 @@ var Athena = (function (_super) {
|
|
|
60
61
|
}
|
|
61
62
|
else if (typeof cb === "function") {
|
|
62
63
|
if (typeof optionsOrCb !== "object")
|
|
63
|
-
throw new Error("Expect http options but get "
|
|
64
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
64
65
|
this.send(command, optionsOrCb || {}, cb);
|
|
65
66
|
}
|
|
66
67
|
else {
|
|
@@ -74,7 +75,7 @@ var Athena = (function (_super) {
|
|
|
74
75
|
}
|
|
75
76
|
else if (typeof cb === "function") {
|
|
76
77
|
if (typeof optionsOrCb !== "object")
|
|
77
|
-
throw new Error("Expect http options but get "
|
|
78
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
78
79
|
this.send(command, optionsOrCb || {}, cb);
|
|
79
80
|
}
|
|
80
81
|
else {
|
|
@@ -88,7 +89,7 @@ var Athena = (function (_super) {
|
|
|
88
89
|
}
|
|
89
90
|
else if (typeof cb === "function") {
|
|
90
91
|
if (typeof optionsOrCb !== "object")
|
|
91
|
-
throw new Error("Expect http options but get "
|
|
92
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
92
93
|
this.send(command, optionsOrCb || {}, cb);
|
|
93
94
|
}
|
|
94
95
|
else {
|
|
@@ -102,7 +103,7 @@ var Athena = (function (_super) {
|
|
|
102
103
|
}
|
|
103
104
|
else if (typeof cb === "function") {
|
|
104
105
|
if (typeof optionsOrCb !== "object")
|
|
105
|
-
throw new Error("Expect http options but get "
|
|
106
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
106
107
|
this.send(command, optionsOrCb || {}, cb);
|
|
107
108
|
}
|
|
108
109
|
else {
|
|
@@ -116,7 +117,7 @@ var Athena = (function (_super) {
|
|
|
116
117
|
}
|
|
117
118
|
else if (typeof cb === "function") {
|
|
118
119
|
if (typeof optionsOrCb !== "object")
|
|
119
|
-
throw new Error("Expect http options but get "
|
|
120
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
120
121
|
this.send(command, optionsOrCb || {}, cb);
|
|
121
122
|
}
|
|
122
123
|
else {
|
|
@@ -130,7 +131,7 @@ var Athena = (function (_super) {
|
|
|
130
131
|
}
|
|
131
132
|
else if (typeof cb === "function") {
|
|
132
133
|
if (typeof optionsOrCb !== "object")
|
|
133
|
-
throw new Error("Expect http options but get "
|
|
134
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
134
135
|
this.send(command, optionsOrCb || {}, cb);
|
|
135
136
|
}
|
|
136
137
|
else {
|
|
@@ -144,7 +145,7 @@ var Athena = (function (_super) {
|
|
|
144
145
|
}
|
|
145
146
|
else if (typeof cb === "function") {
|
|
146
147
|
if (typeof optionsOrCb !== "object")
|
|
147
|
-
throw new Error("Expect http options but get "
|
|
148
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
148
149
|
this.send(command, optionsOrCb || {}, cb);
|
|
149
150
|
}
|
|
150
151
|
else {
|
|
@@ -158,7 +159,7 @@ var Athena = (function (_super) {
|
|
|
158
159
|
}
|
|
159
160
|
else if (typeof cb === "function") {
|
|
160
161
|
if (typeof optionsOrCb !== "object")
|
|
161
|
-
throw new Error("Expect http options but get "
|
|
162
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
162
163
|
this.send(command, optionsOrCb || {}, cb);
|
|
163
164
|
}
|
|
164
165
|
else {
|
|
@@ -172,7 +173,7 @@ var Athena = (function (_super) {
|
|
|
172
173
|
}
|
|
173
174
|
else if (typeof cb === "function") {
|
|
174
175
|
if (typeof optionsOrCb !== "object")
|
|
175
|
-
throw new Error("Expect http options but get "
|
|
176
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
176
177
|
this.send(command, optionsOrCb || {}, cb);
|
|
177
178
|
}
|
|
178
179
|
else {
|
|
@@ -186,7 +187,7 @@ var Athena = (function (_super) {
|
|
|
186
187
|
}
|
|
187
188
|
else if (typeof cb === "function") {
|
|
188
189
|
if (typeof optionsOrCb !== "object")
|
|
189
|
-
throw new Error("Expect http options but get "
|
|
190
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
190
191
|
this.send(command, optionsOrCb || {}, cb);
|
|
191
192
|
}
|
|
192
193
|
else {
|
|
@@ -200,7 +201,7 @@ var Athena = (function (_super) {
|
|
|
200
201
|
}
|
|
201
202
|
else if (typeof cb === "function") {
|
|
202
203
|
if (typeof optionsOrCb !== "object")
|
|
203
|
-
throw new Error("Expect http options but get "
|
|
204
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
204
205
|
this.send(command, optionsOrCb || {}, cb);
|
|
205
206
|
}
|
|
206
207
|
else {
|
|
@@ -214,7 +215,7 @@ var Athena = (function (_super) {
|
|
|
214
215
|
}
|
|
215
216
|
else if (typeof cb === "function") {
|
|
216
217
|
if (typeof optionsOrCb !== "object")
|
|
217
|
-
throw new Error("Expect http options but get "
|
|
218
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
218
219
|
this.send(command, optionsOrCb || {}, cb);
|
|
219
220
|
}
|
|
220
221
|
else {
|
|
@@ -228,7 +229,7 @@ var Athena = (function (_super) {
|
|
|
228
229
|
}
|
|
229
230
|
else if (typeof cb === "function") {
|
|
230
231
|
if (typeof optionsOrCb !== "object")
|
|
231
|
-
throw new Error("Expect http options but get "
|
|
232
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
232
233
|
this.send(command, optionsOrCb || {}, cb);
|
|
233
234
|
}
|
|
234
235
|
else {
|
|
@@ -242,7 +243,7 @@ var Athena = (function (_super) {
|
|
|
242
243
|
}
|
|
243
244
|
else if (typeof cb === "function") {
|
|
244
245
|
if (typeof optionsOrCb !== "object")
|
|
245
|
-
throw new Error("Expect http options but get "
|
|
246
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
246
247
|
this.send(command, optionsOrCb || {}, cb);
|
|
247
248
|
}
|
|
248
249
|
else {
|
|
@@ -256,7 +257,7 @@ var Athena = (function (_super) {
|
|
|
256
257
|
}
|
|
257
258
|
else if (typeof cb === "function") {
|
|
258
259
|
if (typeof optionsOrCb !== "object")
|
|
259
|
-
throw new Error("Expect http options but get "
|
|
260
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
260
261
|
this.send(command, optionsOrCb || {}, cb);
|
|
261
262
|
}
|
|
262
263
|
else {
|
|
@@ -270,7 +271,7 @@ var Athena = (function (_super) {
|
|
|
270
271
|
}
|
|
271
272
|
else if (typeof cb === "function") {
|
|
272
273
|
if (typeof optionsOrCb !== "object")
|
|
273
|
-
throw new Error("Expect http options but get "
|
|
274
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
274
275
|
this.send(command, optionsOrCb || {}, cb);
|
|
275
276
|
}
|
|
276
277
|
else {
|
|
@@ -284,7 +285,7 @@ var Athena = (function (_super) {
|
|
|
284
285
|
}
|
|
285
286
|
else if (typeof cb === "function") {
|
|
286
287
|
if (typeof optionsOrCb !== "object")
|
|
287
|
-
throw new Error("Expect http options but get "
|
|
288
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
288
289
|
this.send(command, optionsOrCb || {}, cb);
|
|
289
290
|
}
|
|
290
291
|
else {
|
|
@@ -298,7 +299,7 @@ var Athena = (function (_super) {
|
|
|
298
299
|
}
|
|
299
300
|
else if (typeof cb === "function") {
|
|
300
301
|
if (typeof optionsOrCb !== "object")
|
|
301
|
-
throw new Error("Expect http options but get "
|
|
302
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
302
303
|
this.send(command, optionsOrCb || {}, cb);
|
|
303
304
|
}
|
|
304
305
|
else {
|
|
@@ -312,7 +313,7 @@ var Athena = (function (_super) {
|
|
|
312
313
|
}
|
|
313
314
|
else if (typeof cb === "function") {
|
|
314
315
|
if (typeof optionsOrCb !== "object")
|
|
315
|
-
throw new Error("Expect http options but get "
|
|
316
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
316
317
|
this.send(command, optionsOrCb || {}, cb);
|
|
317
318
|
}
|
|
318
319
|
else {
|
|
@@ -326,7 +327,7 @@ var Athena = (function (_super) {
|
|
|
326
327
|
}
|
|
327
328
|
else if (typeof cb === "function") {
|
|
328
329
|
if (typeof optionsOrCb !== "object")
|
|
329
|
-
throw new Error("Expect http options but get "
|
|
330
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
330
331
|
this.send(command, optionsOrCb || {}, cb);
|
|
331
332
|
}
|
|
332
333
|
else {
|
|
@@ -340,7 +341,7 @@ var Athena = (function (_super) {
|
|
|
340
341
|
}
|
|
341
342
|
else if (typeof cb === "function") {
|
|
342
343
|
if (typeof optionsOrCb !== "object")
|
|
343
|
-
throw new Error("Expect http options but get "
|
|
344
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
344
345
|
this.send(command, optionsOrCb || {}, cb);
|
|
345
346
|
}
|
|
346
347
|
else {
|
|
@@ -354,7 +355,7 @@ var Athena = (function (_super) {
|
|
|
354
355
|
}
|
|
355
356
|
else if (typeof cb === "function") {
|
|
356
357
|
if (typeof optionsOrCb !== "object")
|
|
357
|
-
throw new Error("Expect http options but get "
|
|
358
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
358
359
|
this.send(command, optionsOrCb || {}, cb);
|
|
359
360
|
}
|
|
360
361
|
else {
|
|
@@ -368,7 +369,7 @@ var Athena = (function (_super) {
|
|
|
368
369
|
}
|
|
369
370
|
else if (typeof cb === "function") {
|
|
370
371
|
if (typeof optionsOrCb !== "object")
|
|
371
|
-
throw new Error("Expect http options but get "
|
|
372
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
372
373
|
this.send(command, optionsOrCb || {}, cb);
|
|
373
374
|
}
|
|
374
375
|
else {
|
|
@@ -382,7 +383,7 @@ var Athena = (function (_super) {
|
|
|
382
383
|
}
|
|
383
384
|
else if (typeof cb === "function") {
|
|
384
385
|
if (typeof optionsOrCb !== "object")
|
|
385
|
-
throw new Error("Expect http options but get "
|
|
386
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
386
387
|
this.send(command, optionsOrCb || {}, cb);
|
|
387
388
|
}
|
|
388
389
|
else {
|
|
@@ -396,7 +397,7 @@ var Athena = (function (_super) {
|
|
|
396
397
|
}
|
|
397
398
|
else if (typeof cb === "function") {
|
|
398
399
|
if (typeof optionsOrCb !== "object")
|
|
399
|
-
throw new Error("Expect http options but get "
|
|
400
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
400
401
|
this.send(command, optionsOrCb || {}, cb);
|
|
401
402
|
}
|
|
402
403
|
else {
|
|
@@ -410,7 +411,7 @@ var Athena = (function (_super) {
|
|
|
410
411
|
}
|
|
411
412
|
else if (typeof cb === "function") {
|
|
412
413
|
if (typeof optionsOrCb !== "object")
|
|
413
|
-
throw new Error("Expect http options but get "
|
|
414
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
414
415
|
this.send(command, optionsOrCb || {}, cb);
|
|
415
416
|
}
|
|
416
417
|
else {
|
|
@@ -424,7 +425,7 @@ var Athena = (function (_super) {
|
|
|
424
425
|
}
|
|
425
426
|
else if (typeof cb === "function") {
|
|
426
427
|
if (typeof optionsOrCb !== "object")
|
|
427
|
-
throw new Error("Expect http options but get "
|
|
428
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
428
429
|
this.send(command, optionsOrCb || {}, cb);
|
|
429
430
|
}
|
|
430
431
|
else {
|
|
@@ -438,7 +439,7 @@ var Athena = (function (_super) {
|
|
|
438
439
|
}
|
|
439
440
|
else if (typeof cb === "function") {
|
|
440
441
|
if (typeof optionsOrCb !== "object")
|
|
441
|
-
throw new Error("Expect http options but get "
|
|
442
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
442
443
|
this.send(command, optionsOrCb || {}, cb);
|
|
443
444
|
}
|
|
444
445
|
else {
|
|
@@ -452,7 +453,7 @@ var Athena = (function (_super) {
|
|
|
452
453
|
}
|
|
453
454
|
else if (typeof cb === "function") {
|
|
454
455
|
if (typeof optionsOrCb !== "object")
|
|
455
|
-
throw new Error("Expect http options but get "
|
|
456
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
456
457
|
this.send(command, optionsOrCb || {}, cb);
|
|
457
458
|
}
|
|
458
459
|
else {
|
|
@@ -466,7 +467,7 @@ var Athena = (function (_super) {
|
|
|
466
467
|
}
|
|
467
468
|
else if (typeof cb === "function") {
|
|
468
469
|
if (typeof optionsOrCb !== "object")
|
|
469
|
-
throw new Error("Expect http options but get "
|
|
470
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
470
471
|
this.send(command, optionsOrCb || {}, cb);
|
|
471
472
|
}
|
|
472
473
|
else {
|
|
@@ -480,7 +481,21 @@ var Athena = (function (_super) {
|
|
|
480
481
|
}
|
|
481
482
|
else if (typeof cb === "function") {
|
|
482
483
|
if (typeof optionsOrCb !== "object")
|
|
483
|
-
throw new Error("Expect http options but get "
|
|
484
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
485
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
486
|
+
}
|
|
487
|
+
else {
|
|
488
|
+
return this.send(command, optionsOrCb);
|
|
489
|
+
}
|
|
490
|
+
};
|
|
491
|
+
Athena.prototype.updateNamedQuery = function (args, optionsOrCb, cb) {
|
|
492
|
+
var command = new UpdateNamedQueryCommand(args);
|
|
493
|
+
if (typeof optionsOrCb === "function") {
|
|
494
|
+
this.send(command, optionsOrCb);
|
|
495
|
+
}
|
|
496
|
+
else if (typeof cb === "function") {
|
|
497
|
+
if (typeof optionsOrCb !== "object")
|
|
498
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
484
499
|
this.send(command, optionsOrCb || {}, cb);
|
|
485
500
|
}
|
|
486
501
|
else {
|
|
@@ -494,7 +509,7 @@ var Athena = (function (_super) {
|
|
|
494
509
|
}
|
|
495
510
|
else if (typeof cb === "function") {
|
|
496
511
|
if (typeof optionsOrCb !== "object")
|
|
497
|
-
throw new Error("Expect http options but get "
|
|
512
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
498
513
|
this.send(command, optionsOrCb || {}, cb);
|
|
499
514
|
}
|
|
500
515
|
else {
|
|
@@ -508,7 +523,7 @@ var Athena = (function (_super) {
|
|
|
508
523
|
}
|
|
509
524
|
else if (typeof cb === "function") {
|
|
510
525
|
if (typeof optionsOrCb !== "object")
|
|
511
|
-
throw new Error("Expect http options but get "
|
|
526
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
512
527
|
this.send(command, optionsOrCb || {}, cb);
|
|
513
528
|
}
|
|
514
529
|
else {
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { __extends } from "tslib";
|
|
2
|
+
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
3
|
+
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
4
|
+
import { UpdateNamedQueryInput, UpdateNamedQueryOutput } from "../models/models_0";
|
|
5
|
+
import { deserializeAws_json1_1UpdateNamedQueryCommand, serializeAws_json1_1UpdateNamedQueryCommand, } from "../protocols/Aws_json1_1";
|
|
6
|
+
var UpdateNamedQueryCommand = (function (_super) {
|
|
7
|
+
__extends(UpdateNamedQueryCommand, _super);
|
|
8
|
+
function UpdateNamedQueryCommand(input) {
|
|
9
|
+
var _this = _super.call(this) || this;
|
|
10
|
+
_this.input = input;
|
|
11
|
+
return _this;
|
|
12
|
+
}
|
|
13
|
+
UpdateNamedQueryCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
|
|
14
|
+
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
15
|
+
var stack = clientStack.concat(this.middlewareStack);
|
|
16
|
+
var logger = configuration.logger;
|
|
17
|
+
var clientName = "AthenaClient";
|
|
18
|
+
var commandName = "UpdateNamedQueryCommand";
|
|
19
|
+
var handlerExecutionContext = {
|
|
20
|
+
logger: logger,
|
|
21
|
+
clientName: clientName,
|
|
22
|
+
commandName: commandName,
|
|
23
|
+
inputFilterSensitiveLog: UpdateNamedQueryInput.filterSensitiveLog,
|
|
24
|
+
outputFilterSensitiveLog: UpdateNamedQueryOutput.filterSensitiveLog,
|
|
25
|
+
};
|
|
26
|
+
var requestHandler = configuration.requestHandler;
|
|
27
|
+
return stack.resolve(function (request) {
|
|
28
|
+
return requestHandler.handle(request.request, options || {});
|
|
29
|
+
}, handlerExecutionContext);
|
|
30
|
+
};
|
|
31
|
+
UpdateNamedQueryCommand.prototype.serialize = function (input, context) {
|
|
32
|
+
return serializeAws_json1_1UpdateNamedQueryCommand(input, context);
|
|
33
|
+
};
|
|
34
|
+
UpdateNamedQueryCommand.prototype.deserialize = function (output, context) {
|
|
35
|
+
return deserializeAws_json1_1UpdateNamedQueryCommand(output, context);
|
|
36
|
+
};
|
|
37
|
+
return UpdateNamedQueryCommand;
|
|
38
|
+
}($Command));
|
|
39
|
+
export { UpdateNamedQueryCommand };
|
|
@@ -30,5 +30,6 @@ export * from "./StopQueryExecutionCommand";
|
|
|
30
30
|
export * from "./TagResourceCommand";
|
|
31
31
|
export * from "./UntagResourceCommand";
|
|
32
32
|
export * from "./UpdateDataCatalogCommand";
|
|
33
|
+
export * from "./UpdateNamedQueryCommand";
|
|
33
34
|
export * from "./UpdatePreparedStatementCommand";
|
|
34
35
|
export * from "./UpdateWorkGroupCommand";
|
|
@@ -1,5 +1,13 @@
|
|
|
1
1
|
import { __assign, __extends } from "tslib";
|
|
2
2
|
import { AthenaServiceException as __BaseException } from "./AthenaServiceException";
|
|
3
|
+
export var S3AclOption;
|
|
4
|
+
(function (S3AclOption) {
|
|
5
|
+
S3AclOption["BUCKET_OWNER_FULL_CONTROL"] = "BUCKET_OWNER_FULL_CONTROL";
|
|
6
|
+
})(S3AclOption || (S3AclOption = {}));
|
|
7
|
+
export var AclConfiguration;
|
|
8
|
+
(function (AclConfiguration) {
|
|
9
|
+
AclConfiguration.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
10
|
+
})(AclConfiguration || (AclConfiguration = {}));
|
|
3
11
|
export var BatchGetNamedQueryInput;
|
|
4
12
|
(function (BatchGetNamedQueryInput) {
|
|
5
13
|
BatchGetNamedQueryInput.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
@@ -473,6 +481,14 @@ export var UpdateDataCatalogOutput;
|
|
|
473
481
|
(function (UpdateDataCatalogOutput) {
|
|
474
482
|
UpdateDataCatalogOutput.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
475
483
|
})(UpdateDataCatalogOutput || (UpdateDataCatalogOutput = {}));
|
|
484
|
+
export var UpdateNamedQueryInput;
|
|
485
|
+
(function (UpdateNamedQueryInput) {
|
|
486
|
+
UpdateNamedQueryInput.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
487
|
+
})(UpdateNamedQueryInput || (UpdateNamedQueryInput = {}));
|
|
488
|
+
export var UpdateNamedQueryOutput;
|
|
489
|
+
(function (UpdateNamedQueryOutput) {
|
|
490
|
+
UpdateNamedQueryOutput.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
491
|
+
})(UpdateNamedQueryOutput || (UpdateNamedQueryOutput = {}));
|
|
476
492
|
export var UpdatePreparedStatementInput;
|
|
477
493
|
(function (UpdatePreparedStatementInput) {
|
|
478
494
|
UpdatePreparedStatementInput.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
@@ -10,7 +10,7 @@ var makePagedClientRequest = function (client, input) {
|
|
|
10
10
|
return __awaiter(void 0, void 0, void 0, function () {
|
|
11
11
|
return __generator(this, function (_a) {
|
|
12
12
|
switch (_a.label) {
|
|
13
|
-
case 0: return [4, client.send.apply(client, __spreadArray([new GetQueryResultsCommand(input)], __read(args)))];
|
|
13
|
+
case 0: return [4, client.send.apply(client, __spreadArray([new GetQueryResultsCommand(input)], __read(args), false))];
|
|
14
14
|
case 1: return [2, _a.sent()];
|
|
15
15
|
}
|
|
16
16
|
});
|
|
@@ -24,7 +24,7 @@ var makePagedRequest = function (client, input) {
|
|
|
24
24
|
return __awaiter(void 0, void 0, void 0, function () {
|
|
25
25
|
return __generator(this, function (_a) {
|
|
26
26
|
switch (_a.label) {
|
|
27
|
-
case 0: return [4, client.getQueryResults.apply(client, __spreadArray([input], __read(args)))];
|
|
27
|
+
case 0: return [4, client.getQueryResults.apply(client, __spreadArray([input], __read(args), false))];
|
|
28
28
|
case 1: return [2, _a.sent()];
|
|
29
29
|
}
|
|
30
30
|
});
|
|
@@ -48,13 +48,13 @@ export function paginateGetQueryResults(config, input) {
|
|
|
48
48
|
input.NextToken = token;
|
|
49
49
|
input["MaxResults"] = config.pageSize;
|
|
50
50
|
if (!(config.client instanceof Athena)) return [3, 3];
|
|
51
|
-
return [4, __await(makePagedRequest.apply(void 0, __spreadArray([config.client, input], __read(additionalArguments))))];
|
|
51
|
+
return [4, __await(makePagedRequest.apply(void 0, __spreadArray([config.client, input], __read(additionalArguments), false)))];
|
|
52
52
|
case 2:
|
|
53
53
|
page = _a.sent();
|
|
54
54
|
return [3, 6];
|
|
55
55
|
case 3:
|
|
56
56
|
if (!(config.client instanceof AthenaClient)) return [3, 5];
|
|
57
|
-
return [4, __await(makePagedClientRequest.apply(void 0, __spreadArray([config.client, input], __read(additionalArguments))))];
|
|
57
|
+
return [4, __await(makePagedClientRequest.apply(void 0, __spreadArray([config.client, input], __read(additionalArguments), false)))];
|
|
58
58
|
case 4:
|
|
59
59
|
page = _a.sent();
|
|
60
60
|
return [3, 6];
|
|
@@ -10,7 +10,7 @@ var makePagedClientRequest = function (client, input) {
|
|
|
10
10
|
return __awaiter(void 0, void 0, void 0, function () {
|
|
11
11
|
return __generator(this, function (_a) {
|
|
12
12
|
switch (_a.label) {
|
|
13
|
-
case 0: return [4, client.send.apply(client, __spreadArray([new ListDataCatalogsCommand(input)], __read(args)))];
|
|
13
|
+
case 0: return [4, client.send.apply(client, __spreadArray([new ListDataCatalogsCommand(input)], __read(args), false))];
|
|
14
14
|
case 1: return [2, _a.sent()];
|
|
15
15
|
}
|
|
16
16
|
});
|
|
@@ -24,7 +24,7 @@ var makePagedRequest = function (client, input) {
|
|
|
24
24
|
return __awaiter(void 0, void 0, void 0, function () {
|
|
25
25
|
return __generator(this, function (_a) {
|
|
26
26
|
switch (_a.label) {
|
|
27
|
-
case 0: return [4, client.listDataCatalogs.apply(client, __spreadArray([input], __read(args)))];
|
|
27
|
+
case 0: return [4, client.listDataCatalogs.apply(client, __spreadArray([input], __read(args), false))];
|
|
28
28
|
case 1: return [2, _a.sent()];
|
|
29
29
|
}
|
|
30
30
|
});
|
|
@@ -48,13 +48,13 @@ export function paginateListDataCatalogs(config, input) {
|
|
|
48
48
|
input.NextToken = token;
|
|
49
49
|
input["MaxResults"] = config.pageSize;
|
|
50
50
|
if (!(config.client instanceof Athena)) return [3, 3];
|
|
51
|
-
return [4, __await(makePagedRequest.apply(void 0, __spreadArray([config.client, input], __read(additionalArguments))))];
|
|
51
|
+
return [4, __await(makePagedRequest.apply(void 0, __spreadArray([config.client, input], __read(additionalArguments), false)))];
|
|
52
52
|
case 2:
|
|
53
53
|
page = _a.sent();
|
|
54
54
|
return [3, 6];
|
|
55
55
|
case 3:
|
|
56
56
|
if (!(config.client instanceof AthenaClient)) return [3, 5];
|
|
57
|
-
return [4, __await(makePagedClientRequest.apply(void 0, __spreadArray([config.client, input], __read(additionalArguments))))];
|
|
57
|
+
return [4, __await(makePagedClientRequest.apply(void 0, __spreadArray([config.client, input], __read(additionalArguments), false)))];
|
|
58
58
|
case 4:
|
|
59
59
|
page = _a.sent();
|
|
60
60
|
return [3, 6];
|
|
@@ -10,7 +10,7 @@ var makePagedClientRequest = function (client, input) {
|
|
|
10
10
|
return __awaiter(void 0, void 0, void 0, function () {
|
|
11
11
|
return __generator(this, function (_a) {
|
|
12
12
|
switch (_a.label) {
|
|
13
|
-
case 0: return [4, client.send.apply(client, __spreadArray([new ListDatabasesCommand(input)], __read(args)))];
|
|
13
|
+
case 0: return [4, client.send.apply(client, __spreadArray([new ListDatabasesCommand(input)], __read(args), false))];
|
|
14
14
|
case 1: return [2, _a.sent()];
|
|
15
15
|
}
|
|
16
16
|
});
|
|
@@ -24,7 +24,7 @@ var makePagedRequest = function (client, input) {
|
|
|
24
24
|
return __awaiter(void 0, void 0, void 0, function () {
|
|
25
25
|
return __generator(this, function (_a) {
|
|
26
26
|
switch (_a.label) {
|
|
27
|
-
case 0: return [4, client.listDatabases.apply(client, __spreadArray([input], __read(args)))];
|
|
27
|
+
case 0: return [4, client.listDatabases.apply(client, __spreadArray([input], __read(args), false))];
|
|
28
28
|
case 1: return [2, _a.sent()];
|
|
29
29
|
}
|
|
30
30
|
});
|
|
@@ -48,13 +48,13 @@ export function paginateListDatabases(config, input) {
|
|
|
48
48
|
input.NextToken = token;
|
|
49
49
|
input["MaxResults"] = config.pageSize;
|
|
50
50
|
if (!(config.client instanceof Athena)) return [3, 3];
|
|
51
|
-
return [4, __await(makePagedRequest.apply(void 0, __spreadArray([config.client, input], __read(additionalArguments))))];
|
|
51
|
+
return [4, __await(makePagedRequest.apply(void 0, __spreadArray([config.client, input], __read(additionalArguments), false)))];
|
|
52
52
|
case 2:
|
|
53
53
|
page = _a.sent();
|
|
54
54
|
return [3, 6];
|
|
55
55
|
case 3:
|
|
56
56
|
if (!(config.client instanceof AthenaClient)) return [3, 5];
|
|
57
|
-
return [4, __await(makePagedClientRequest.apply(void 0, __spreadArray([config.client, input], __read(additionalArguments))))];
|
|
57
|
+
return [4, __await(makePagedClientRequest.apply(void 0, __spreadArray([config.client, input], __read(additionalArguments), false)))];
|
|
58
58
|
case 4:
|
|
59
59
|
page = _a.sent();
|
|
60
60
|
return [3, 6];
|
|
@@ -10,7 +10,7 @@ var makePagedClientRequest = function (client, input) {
|
|
|
10
10
|
return __awaiter(void 0, void 0, void 0, function () {
|
|
11
11
|
return __generator(this, function (_a) {
|
|
12
12
|
switch (_a.label) {
|
|
13
|
-
case 0: return [4, client.send.apply(client, __spreadArray([new ListNamedQueriesCommand(input)], __read(args)))];
|
|
13
|
+
case 0: return [4, client.send.apply(client, __spreadArray([new ListNamedQueriesCommand(input)], __read(args), false))];
|
|
14
14
|
case 1: return [2, _a.sent()];
|
|
15
15
|
}
|
|
16
16
|
});
|
|
@@ -24,7 +24,7 @@ var makePagedRequest = function (client, input) {
|
|
|
24
24
|
return __awaiter(void 0, void 0, void 0, function () {
|
|
25
25
|
return __generator(this, function (_a) {
|
|
26
26
|
switch (_a.label) {
|
|
27
|
-
case 0: return [4, client.listNamedQueries.apply(client, __spreadArray([input], __read(args)))];
|
|
27
|
+
case 0: return [4, client.listNamedQueries.apply(client, __spreadArray([input], __read(args), false))];
|
|
28
28
|
case 1: return [2, _a.sent()];
|
|
29
29
|
}
|
|
30
30
|
});
|
|
@@ -48,13 +48,13 @@ export function paginateListNamedQueries(config, input) {
|
|
|
48
48
|
input.NextToken = token;
|
|
49
49
|
input["MaxResults"] = config.pageSize;
|
|
50
50
|
if (!(config.client instanceof Athena)) return [3, 3];
|
|
51
|
-
return [4, __await(makePagedRequest.apply(void 0, __spreadArray([config.client, input], __read(additionalArguments))))];
|
|
51
|
+
return [4, __await(makePagedRequest.apply(void 0, __spreadArray([config.client, input], __read(additionalArguments), false)))];
|
|
52
52
|
case 2:
|
|
53
53
|
page = _a.sent();
|
|
54
54
|
return [3, 6];
|
|
55
55
|
case 3:
|
|
56
56
|
if (!(config.client instanceof AthenaClient)) return [3, 5];
|
|
57
|
-
return [4, __await(makePagedClientRequest.apply(void 0, __spreadArray([config.client, input], __read(additionalArguments))))];
|
|
57
|
+
return [4, __await(makePagedClientRequest.apply(void 0, __spreadArray([config.client, input], __read(additionalArguments), false)))];
|
|
58
58
|
case 4:
|
|
59
59
|
page = _a.sent();
|
|
60
60
|
return [3, 6];
|
|
@@ -10,7 +10,7 @@ var makePagedClientRequest = function (client, input) {
|
|
|
10
10
|
return __awaiter(void 0, void 0, void 0, function () {
|
|
11
11
|
return __generator(this, function (_a) {
|
|
12
12
|
switch (_a.label) {
|
|
13
|
-
case 0: return [4, client.send.apply(client, __spreadArray([new ListPreparedStatementsCommand(input)], __read(args)))];
|
|
13
|
+
case 0: return [4, client.send.apply(client, __spreadArray([new ListPreparedStatementsCommand(input)], __read(args), false))];
|
|
14
14
|
case 1: return [2, _a.sent()];
|
|
15
15
|
}
|
|
16
16
|
});
|
|
@@ -24,7 +24,7 @@ var makePagedRequest = function (client, input) {
|
|
|
24
24
|
return __awaiter(void 0, void 0, void 0, function () {
|
|
25
25
|
return __generator(this, function (_a) {
|
|
26
26
|
switch (_a.label) {
|
|
27
|
-
case 0: return [4, client.listPreparedStatements.apply(client, __spreadArray([input], __read(args)))];
|
|
27
|
+
case 0: return [4, client.listPreparedStatements.apply(client, __spreadArray([input], __read(args), false))];
|
|
28
28
|
case 1: return [2, _a.sent()];
|
|
29
29
|
}
|
|
30
30
|
});
|
|
@@ -48,13 +48,13 @@ export function paginateListPreparedStatements(config, input) {
|
|
|
48
48
|
input.NextToken = token;
|
|
49
49
|
input["MaxResults"] = config.pageSize;
|
|
50
50
|
if (!(config.client instanceof Athena)) return [3, 3];
|
|
51
|
-
return [4, __await(makePagedRequest.apply(void 0, __spreadArray([config.client, input], __read(additionalArguments))))];
|
|
51
|
+
return [4, __await(makePagedRequest.apply(void 0, __spreadArray([config.client, input], __read(additionalArguments), false)))];
|
|
52
52
|
case 2:
|
|
53
53
|
page = _a.sent();
|
|
54
54
|
return [3, 6];
|
|
55
55
|
case 3:
|
|
56
56
|
if (!(config.client instanceof AthenaClient)) return [3, 5];
|
|
57
|
-
return [4, __await(makePagedClientRequest.apply(void 0, __spreadArray([config.client, input], __read(additionalArguments))))];
|
|
57
|
+
return [4, __await(makePagedClientRequest.apply(void 0, __spreadArray([config.client, input], __read(additionalArguments), false)))];
|
|
58
58
|
case 4:
|
|
59
59
|
page = _a.sent();
|
|
60
60
|
return [3, 6];
|