@aws-sdk/client-athena 3.52.0 → 3.54.1
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 +30 -0
- package/dist-cjs/Athena.js +15 -0
- package/dist-cjs/commands/UpdateNamedQueryCommand.js +36 -0
- package/dist-cjs/commands/index.js +1 -0
- package/dist-cjs/index.js +3 -0
- package/dist-cjs/models/AthenaServiceException.js +11 -0
- package/dist-cjs/models/models_0.js +99 -3
- package/dist-cjs/protocols/Aws_json1_1.js +349 -856
- package/dist-es/Athena.js +15 -0
- package/dist-es/commands/UpdateNamedQueryCommand.js +39 -0
- package/dist-es/commands/index.js +1 -0
- package/dist-es/index.js +1 -0
- package/dist-es/models/AthenaServiceException.js +12 -0
- package/dist-es/models/models_0.js +86 -1
- package/dist-es/protocols/Aws_json1_1.js +710 -986
- 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/index.d.ts +1 -0
- package/dist-types/models/AthenaServiceException.d.ts +10 -0
- package/dist-types/models/models_0.d.ts +127 -23
- 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 +1 -1
- 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/index.d.ts +1 -0
- package/dist-types/ts3.4/models/AthenaServiceException.d.ts +6 -0
- package/dist-types/ts3.4/models/models_0.d.ts +65 -16
- 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 +1 -1
- package/package.json +27 -27
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) {
|
|
@@ -487,6 +488,20 @@ var Athena = (function (_super) {
|
|
|
487
488
|
return this.send(command, optionsOrCb);
|
|
488
489
|
}
|
|
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 " + typeof optionsOrCb);
|
|
499
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
500
|
+
}
|
|
501
|
+
else {
|
|
502
|
+
return this.send(command, optionsOrCb);
|
|
503
|
+
}
|
|
504
|
+
};
|
|
490
505
|
Athena.prototype.updatePreparedStatement = function (args, optionsOrCb, cb) {
|
|
491
506
|
var command = new UpdatePreparedStatementCommand(args);
|
|
492
507
|
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 { 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";
|
package/dist-es/index.js
CHANGED
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { __extends } from "tslib";
|
|
2
|
+
import { ServiceException as __ServiceException, } from "@aws-sdk/smithy-client";
|
|
3
|
+
var AthenaServiceException = (function (_super) {
|
|
4
|
+
__extends(AthenaServiceException, _super);
|
|
5
|
+
function AthenaServiceException(options) {
|
|
6
|
+
var _this = _super.call(this, options) || this;
|
|
7
|
+
Object.setPrototypeOf(_this, AthenaServiceException.prototype);
|
|
8
|
+
return _this;
|
|
9
|
+
}
|
|
10
|
+
return AthenaServiceException;
|
|
11
|
+
}(__ServiceException));
|
|
12
|
+
export { AthenaServiceException };
|
|
@@ -1,4 +1,13 @@
|
|
|
1
|
-
import { __assign } from "tslib";
|
|
1
|
+
import { __assign, __extends } from "tslib";
|
|
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 = {}));
|
|
2
11
|
export var BatchGetNamedQueryInput;
|
|
3
12
|
(function (BatchGetNamedQueryInput) {
|
|
4
13
|
BatchGetNamedQueryInput.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
@@ -15,6 +24,33 @@ export var BatchGetNamedQueryOutput;
|
|
|
15
24
|
(function (BatchGetNamedQueryOutput) {
|
|
16
25
|
BatchGetNamedQueryOutput.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
17
26
|
})(BatchGetNamedQueryOutput || (BatchGetNamedQueryOutput = {}));
|
|
27
|
+
var InternalServerException = (function (_super) {
|
|
28
|
+
__extends(InternalServerException, _super);
|
|
29
|
+
function InternalServerException(opts) {
|
|
30
|
+
var _this = _super.call(this, __assign({ name: "InternalServerException", $fault: "server" }, opts)) || this;
|
|
31
|
+
_this.name = "InternalServerException";
|
|
32
|
+
_this.$fault = "server";
|
|
33
|
+
Object.setPrototypeOf(_this, InternalServerException.prototype);
|
|
34
|
+
_this.Message = opts.Message;
|
|
35
|
+
return _this;
|
|
36
|
+
}
|
|
37
|
+
return InternalServerException;
|
|
38
|
+
}(__BaseException));
|
|
39
|
+
export { InternalServerException };
|
|
40
|
+
var InvalidRequestException = (function (_super) {
|
|
41
|
+
__extends(InvalidRequestException, _super);
|
|
42
|
+
function InvalidRequestException(opts) {
|
|
43
|
+
var _this = _super.call(this, __assign({ name: "InvalidRequestException", $fault: "client" }, opts)) || this;
|
|
44
|
+
_this.name = "InvalidRequestException";
|
|
45
|
+
_this.$fault = "client";
|
|
46
|
+
Object.setPrototypeOf(_this, InvalidRequestException.prototype);
|
|
47
|
+
_this.AthenaErrorCode = opts.AthenaErrorCode;
|
|
48
|
+
_this.Message = opts.Message;
|
|
49
|
+
return _this;
|
|
50
|
+
}
|
|
51
|
+
return InvalidRequestException;
|
|
52
|
+
}(__BaseException));
|
|
53
|
+
export { InvalidRequestException };
|
|
18
54
|
export var BatchGetQueryExecutionInput;
|
|
19
55
|
(function (BatchGetQueryExecutionInput) {
|
|
20
56
|
BatchGetQueryExecutionInput.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
@@ -149,6 +185,20 @@ export var DeletePreparedStatementOutput;
|
|
|
149
185
|
(function (DeletePreparedStatementOutput) {
|
|
150
186
|
DeletePreparedStatementOutput.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
151
187
|
})(DeletePreparedStatementOutput || (DeletePreparedStatementOutput = {}));
|
|
188
|
+
var ResourceNotFoundException = (function (_super) {
|
|
189
|
+
__extends(ResourceNotFoundException, _super);
|
|
190
|
+
function ResourceNotFoundException(opts) {
|
|
191
|
+
var _this = _super.call(this, __assign({ name: "ResourceNotFoundException", $fault: "client" }, opts)) || this;
|
|
192
|
+
_this.name = "ResourceNotFoundException";
|
|
193
|
+
_this.$fault = "client";
|
|
194
|
+
Object.setPrototypeOf(_this, ResourceNotFoundException.prototype);
|
|
195
|
+
_this.Message = opts.Message;
|
|
196
|
+
_this.ResourceName = opts.ResourceName;
|
|
197
|
+
return _this;
|
|
198
|
+
}
|
|
199
|
+
return ResourceNotFoundException;
|
|
200
|
+
}(__BaseException));
|
|
201
|
+
export { ResourceNotFoundException };
|
|
152
202
|
export var DeleteWorkGroupInput;
|
|
153
203
|
(function (DeleteWorkGroupInput) {
|
|
154
204
|
DeleteWorkGroupInput.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
@@ -169,6 +219,19 @@ export var GetDatabaseOutput;
|
|
|
169
219
|
(function (GetDatabaseOutput) {
|
|
170
220
|
GetDatabaseOutput.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
171
221
|
})(GetDatabaseOutput || (GetDatabaseOutput = {}));
|
|
222
|
+
var MetadataException = (function (_super) {
|
|
223
|
+
__extends(MetadataException, _super);
|
|
224
|
+
function MetadataException(opts) {
|
|
225
|
+
var _this = _super.call(this, __assign({ name: "MetadataException", $fault: "client" }, opts)) || this;
|
|
226
|
+
_this.name = "MetadataException";
|
|
227
|
+
_this.$fault = "client";
|
|
228
|
+
Object.setPrototypeOf(_this, MetadataException.prototype);
|
|
229
|
+
_this.Message = opts.Message;
|
|
230
|
+
return _this;
|
|
231
|
+
}
|
|
232
|
+
return MetadataException;
|
|
233
|
+
}(__BaseException));
|
|
234
|
+
export { MetadataException };
|
|
172
235
|
export var GetDataCatalogInput;
|
|
173
236
|
(function (GetDataCatalogInput) {
|
|
174
237
|
GetDataCatalogInput.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
@@ -372,6 +435,20 @@ export var ThrottleReason;
|
|
|
372
435
|
(function (ThrottleReason) {
|
|
373
436
|
ThrottleReason["CONCURRENT_QUERY_LIMIT_EXCEEDED"] = "CONCURRENT_QUERY_LIMIT_EXCEEDED";
|
|
374
437
|
})(ThrottleReason || (ThrottleReason = {}));
|
|
438
|
+
var TooManyRequestsException = (function (_super) {
|
|
439
|
+
__extends(TooManyRequestsException, _super);
|
|
440
|
+
function TooManyRequestsException(opts) {
|
|
441
|
+
var _this = _super.call(this, __assign({ name: "TooManyRequestsException", $fault: "client" }, opts)) || this;
|
|
442
|
+
_this.name = "TooManyRequestsException";
|
|
443
|
+
_this.$fault = "client";
|
|
444
|
+
Object.setPrototypeOf(_this, TooManyRequestsException.prototype);
|
|
445
|
+
_this.Message = opts.Message;
|
|
446
|
+
_this.Reason = opts.Reason;
|
|
447
|
+
return _this;
|
|
448
|
+
}
|
|
449
|
+
return TooManyRequestsException;
|
|
450
|
+
}(__BaseException));
|
|
451
|
+
export { TooManyRequestsException };
|
|
375
452
|
export var StopQueryExecutionInput;
|
|
376
453
|
(function (StopQueryExecutionInput) {
|
|
377
454
|
StopQueryExecutionInput.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
@@ -404,6 +481,14 @@ export var UpdateDataCatalogOutput;
|
|
|
404
481
|
(function (UpdateDataCatalogOutput) {
|
|
405
482
|
UpdateDataCatalogOutput.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
406
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 = {}));
|
|
407
492
|
export var UpdatePreparedStatementInput;
|
|
408
493
|
(function (UpdatePreparedStatementInput) {
|
|
409
494
|
UpdatePreparedStatementInput.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|