@aws-sdk/client-athena 3.112.0 → 3.121.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 +28 -0
- package/dist-cjs/Athena.js +15 -0
- package/dist-cjs/commands/BatchGetPreparedStatementCommand.js +36 -0
- package/dist-cjs/commands/index.js +1 -0
- package/dist-cjs/models/models_0.js +27 -9
- package/dist-cjs/protocols/Aws_json1_1.js +313 -143
- package/dist-es/Athena.js +15 -0
- package/dist-es/commands/BatchGetPreparedStatementCommand.js +39 -0
- package/dist-es/commands/index.js +1 -0
- package/dist-es/models/models_0.js +16 -4
- package/dist-es/protocols/Aws_json1_1.js +324 -142
- package/dist-types/Athena.d.ts +8 -1
- package/dist-types/AthenaClient.d.ts +3 -2
- package/dist-types/commands/BatchGetPreparedStatementCommand.d.ts +35 -0
- package/dist-types/commands/ListPreparedStatementsCommand.d.ts +1 -1
- package/dist-types/commands/index.d.ts +1 -0
- package/dist-types/models/models_0.d.ts +115 -31
- package/dist-types/protocols/Aws_json1_1.d.ts +3 -0
- package/dist-types/ts3.4/Athena.d.ts +5 -0
- package/dist-types/ts3.4/AthenaClient.d.ts +3 -2
- package/dist-types/ts3.4/commands/BatchGetPreparedStatementCommand.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 +55 -17
- package/dist-types/ts3.4/protocols/Aws_json1_1.d.ts +3 -0
- package/package.json +6 -6
package/dist-es/Athena.js
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { __extends } from "tslib";
|
|
2
2
|
import { AthenaClient } from "./AthenaClient";
|
|
3
3
|
import { BatchGetNamedQueryCommand, } from "./commands/BatchGetNamedQueryCommand";
|
|
4
|
+
import { BatchGetPreparedStatementCommand, } from "./commands/BatchGetPreparedStatementCommand";
|
|
4
5
|
import { BatchGetQueryExecutionCommand, } from "./commands/BatchGetQueryExecutionCommand";
|
|
5
6
|
import { CreateDataCatalogCommand, } from "./commands/CreateDataCatalogCommand";
|
|
6
7
|
import { CreateNamedQueryCommand, } from "./commands/CreateNamedQueryCommand";
|
|
@@ -54,6 +55,20 @@ var Athena = (function (_super) {
|
|
|
54
55
|
return this.send(command, optionsOrCb);
|
|
55
56
|
}
|
|
56
57
|
};
|
|
58
|
+
Athena.prototype.batchGetPreparedStatement = function (args, optionsOrCb, cb) {
|
|
59
|
+
var command = new BatchGetPreparedStatementCommand(args);
|
|
60
|
+
if (typeof optionsOrCb === "function") {
|
|
61
|
+
this.send(command, optionsOrCb);
|
|
62
|
+
}
|
|
63
|
+
else if (typeof cb === "function") {
|
|
64
|
+
if (typeof optionsOrCb !== "object")
|
|
65
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
66
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
67
|
+
}
|
|
68
|
+
else {
|
|
69
|
+
return this.send(command, optionsOrCb);
|
|
70
|
+
}
|
|
71
|
+
};
|
|
57
72
|
Athena.prototype.batchGetQueryExecution = function (args, optionsOrCb, cb) {
|
|
58
73
|
var command = new BatchGetQueryExecutionCommand(args);
|
|
59
74
|
if (typeof optionsOrCb === "function") {
|
|
@@ -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 { BatchGetPreparedStatementInput, BatchGetPreparedStatementOutput } from "../models/models_0";
|
|
5
|
+
import { deserializeAws_json1_1BatchGetPreparedStatementCommand, serializeAws_json1_1BatchGetPreparedStatementCommand, } from "../protocols/Aws_json1_1";
|
|
6
|
+
var BatchGetPreparedStatementCommand = (function (_super) {
|
|
7
|
+
__extends(BatchGetPreparedStatementCommand, _super);
|
|
8
|
+
function BatchGetPreparedStatementCommand(input) {
|
|
9
|
+
var _this = _super.call(this) || this;
|
|
10
|
+
_this.input = input;
|
|
11
|
+
return _this;
|
|
12
|
+
}
|
|
13
|
+
BatchGetPreparedStatementCommand.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 = "BatchGetPreparedStatementCommand";
|
|
19
|
+
var handlerExecutionContext = {
|
|
20
|
+
logger: logger,
|
|
21
|
+
clientName: clientName,
|
|
22
|
+
commandName: commandName,
|
|
23
|
+
inputFilterSensitiveLog: BatchGetPreparedStatementInput.filterSensitiveLog,
|
|
24
|
+
outputFilterSensitiveLog: BatchGetPreparedStatementOutput.filterSensitiveLog,
|
|
25
|
+
};
|
|
26
|
+
var requestHandler = configuration.requestHandler;
|
|
27
|
+
return stack.resolve(function (request) {
|
|
28
|
+
return requestHandler.handle(request.request, options || {});
|
|
29
|
+
}, handlerExecutionContext);
|
|
30
|
+
};
|
|
31
|
+
BatchGetPreparedStatementCommand.prototype.serialize = function (input, context) {
|
|
32
|
+
return serializeAws_json1_1BatchGetPreparedStatementCommand(input, context);
|
|
33
|
+
};
|
|
34
|
+
BatchGetPreparedStatementCommand.prototype.deserialize = function (output, context) {
|
|
35
|
+
return deserializeAws_json1_1BatchGetPreparedStatementCommand(output, context);
|
|
36
|
+
};
|
|
37
|
+
return BatchGetPreparedStatementCommand;
|
|
38
|
+
}($Command));
|
|
39
|
+
export { BatchGetPreparedStatementCommand };
|
|
@@ -51,6 +51,22 @@ var InvalidRequestException = (function (_super) {
|
|
|
51
51
|
return InvalidRequestException;
|
|
52
52
|
}(__BaseException));
|
|
53
53
|
export { InvalidRequestException };
|
|
54
|
+
export var BatchGetPreparedStatementInput;
|
|
55
|
+
(function (BatchGetPreparedStatementInput) {
|
|
56
|
+
BatchGetPreparedStatementInput.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
57
|
+
})(BatchGetPreparedStatementInput || (BatchGetPreparedStatementInput = {}));
|
|
58
|
+
export var PreparedStatement;
|
|
59
|
+
(function (PreparedStatement) {
|
|
60
|
+
PreparedStatement.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
61
|
+
})(PreparedStatement || (PreparedStatement = {}));
|
|
62
|
+
export var UnprocessedPreparedStatementName;
|
|
63
|
+
(function (UnprocessedPreparedStatementName) {
|
|
64
|
+
UnprocessedPreparedStatementName.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
65
|
+
})(UnprocessedPreparedStatementName || (UnprocessedPreparedStatementName = {}));
|
|
66
|
+
export var BatchGetPreparedStatementOutput;
|
|
67
|
+
(function (BatchGetPreparedStatementOutput) {
|
|
68
|
+
BatchGetPreparedStatementOutput.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
69
|
+
})(BatchGetPreparedStatementOutput || (BatchGetPreparedStatementOutput = {}));
|
|
54
70
|
export var BatchGetQueryExecutionInput;
|
|
55
71
|
(function (BatchGetQueryExecutionInput) {
|
|
56
72
|
BatchGetQueryExecutionInput.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
@@ -256,10 +272,6 @@ export var GetPreparedStatementInput;
|
|
|
256
272
|
(function (GetPreparedStatementInput) {
|
|
257
273
|
GetPreparedStatementInput.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
258
274
|
})(GetPreparedStatementInput || (GetPreparedStatementInput = {}));
|
|
259
|
-
export var PreparedStatement;
|
|
260
|
-
(function (PreparedStatement) {
|
|
261
|
-
PreparedStatement.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
262
|
-
})(PreparedStatement || (PreparedStatement = {}));
|
|
263
275
|
export var GetPreparedStatementOutput;
|
|
264
276
|
(function (GetPreparedStatementOutput) {
|
|
265
277
|
GetPreparedStatementOutput.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|