@aws-sdk/client-athena 3.52.0 → 3.53.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 +11 -0
- package/dist-cjs/index.js +3 -0
- package/dist-cjs/models/AthenaServiceException.js +11 -0
- package/dist-cjs/models/models_0.js +77 -3
- package/dist-cjs/protocols/Aws_json1_1.js +266 -856
- package/dist-es/index.js +1 -0
- package/dist-es/models/AthenaServiceException.js +12 -0
- package/dist-es/models/models_0.js +70 -1
- package/dist-es/protocols/Aws_json1_1.js +618 -983
- 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 +37 -16
- 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 +27 -16
- package/package.json +25 -25
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,17 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
# [3.53.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.52.0...v3.53.0) (2022-02-24)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Features
|
|
10
|
+
|
|
11
|
+
* **clients:** generate service exceptions as classes ([#3267](https://github.com/aws/aws-sdk-js-v3/issues/3267)) ([ca64fee](https://github.com/aws/aws-sdk-js-v3/commit/ca64feed3351c394c07dc26b782a5760a396a074))
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
6
17
|
# [3.52.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.51.0...v3.52.0) (2022-02-18)
|
|
7
18
|
|
|
8
19
|
|
package/dist-cjs/index.js
CHANGED
|
@@ -1,8 +1,11 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.AthenaServiceException = void 0;
|
|
3
4
|
const tslib_1 = require("tslib");
|
|
4
5
|
tslib_1.__exportStar(require("./Athena"), exports);
|
|
5
6
|
tslib_1.__exportStar(require("./AthenaClient"), exports);
|
|
6
7
|
tslib_1.__exportStar(require("./commands"), exports);
|
|
7
8
|
tslib_1.__exportStar(require("./models"), exports);
|
|
8
9
|
tslib_1.__exportStar(require("./pagination"), exports);
|
|
10
|
+
var AthenaServiceException_1 = require("./models/AthenaServiceException");
|
|
11
|
+
Object.defineProperty(exports, "AthenaServiceException", { enumerable: true, get: function () { return AthenaServiceException_1.AthenaServiceException; } });
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.AthenaServiceException = void 0;
|
|
4
|
+
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
5
|
+
class AthenaServiceException extends smithy_client_1.ServiceException {
|
|
6
|
+
constructor(options) {
|
|
7
|
+
super(options);
|
|
8
|
+
Object.setPrototypeOf(this, AthenaServiceException.prototype);
|
|
9
|
+
}
|
|
10
|
+
}
|
|
11
|
+
exports.AthenaServiceException = AthenaServiceException;
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
4
|
-
exports.
|
|
5
|
-
exports.UpdateWorkGroupOutput = exports.UpdateWorkGroupInput = exports.WorkGroupConfigurationUpdates = exports.ResultConfigurationUpdates = void 0;
|
|
3
|
+
exports.GetPreparedStatementInput = exports.GetNamedQueryOutput = exports.GetNamedQueryInput = exports.GetDataCatalogOutput = exports.DataCatalog = exports.GetDataCatalogInput = exports.MetadataException = exports.GetDatabaseOutput = exports.Database = exports.GetDatabaseInput = exports.DeleteWorkGroupOutput = exports.DeleteWorkGroupInput = exports.ResourceNotFoundException = exports.DeletePreparedStatementOutput = exports.DeletePreparedStatementInput = exports.DeleteNamedQueryOutput = exports.DeleteNamedQueryInput = exports.DeleteDataCatalogOutput = exports.DeleteDataCatalogInput = exports.CreateWorkGroupOutput = exports.CreateWorkGroupInput = exports.WorkGroupConfiguration = exports.CreatePreparedStatementOutput = exports.CreatePreparedStatementInput = exports.CreateNamedQueryOutput = exports.CreateNamedQueryInput = exports.CreateDataCatalogOutput = exports.CreateDataCatalogInput = exports.DataCatalogType = exports.Tag = exports.BatchGetQueryExecutionOutput = exports.UnprocessedQueryExecutionId = exports.QueryExecution = exports.QueryExecutionStatus = exports.QueryExecutionState = exports.AthenaError = exports.QueryExecutionStatistics = exports.StatementType = exports.ResultConfiguration = exports.EncryptionConfiguration = exports.EncryptionOption = exports.QueryExecutionContext = exports.EngineVersion = exports.BatchGetQueryExecutionInput = exports.InvalidRequestException = exports.InternalServerException = exports.BatchGetNamedQueryOutput = exports.UnprocessedNamedQueryId = exports.NamedQuery = exports.BatchGetNamedQueryInput = void 0;
|
|
4
|
+
exports.UntagResourceInput = exports.TagResourceOutput = exports.TagResourceInput = exports.StopQueryExecutionOutput = exports.StopQueryExecutionInput = exports.TooManyRequestsException = exports.ThrottleReason = exports.StartQueryExecutionOutput = exports.StartQueryExecutionInput = exports.ListWorkGroupsOutput = exports.WorkGroupSummary = exports.ListWorkGroupsInput = exports.ListTagsForResourceOutput = exports.ListTagsForResourceInput = exports.ListTableMetadataOutput = exports.ListTableMetadataInput = exports.ListQueryExecutionsOutput = exports.ListQueryExecutionsInput = exports.ListPreparedStatementsOutput = exports.PreparedStatementSummary = exports.ListPreparedStatementsInput = exports.ListNamedQueriesOutput = exports.ListNamedQueriesInput = exports.ListEngineVersionsOutput = exports.ListEngineVersionsInput = exports.ListDataCatalogsOutput = exports.DataCatalogSummary = exports.ListDataCatalogsInput = exports.ListDatabasesOutput = exports.ListDatabasesInput = exports.GetWorkGroupOutput = exports.WorkGroup = exports.WorkGroupState = exports.GetWorkGroupInput = exports.GetTableMetadataOutput = exports.TableMetadata = exports.Column = exports.GetTableMetadataInput = exports.GetQueryResultsOutput = exports.ResultSet = exports.Row = exports.Datum = exports.ResultSetMetadata = exports.ColumnInfo = exports.ColumnNullable = exports.GetQueryResultsInput = exports.GetQueryExecutionOutput = exports.GetQueryExecutionInput = exports.GetPreparedStatementOutput = exports.PreparedStatement = void 0;
|
|
5
|
+
exports.UpdateWorkGroupOutput = exports.UpdateWorkGroupInput = exports.WorkGroupConfigurationUpdates = exports.ResultConfigurationUpdates = exports.UpdatePreparedStatementOutput = exports.UpdatePreparedStatementInput = exports.UpdateDataCatalogOutput = exports.UpdateDataCatalogInput = exports.UntagResourceOutput = void 0;
|
|
6
|
+
const AthenaServiceException_1 = require("./AthenaServiceException");
|
|
6
7
|
var BatchGetNamedQueryInput;
|
|
7
8
|
(function (BatchGetNamedQueryInput) {
|
|
8
9
|
BatchGetNamedQueryInput.filterSensitiveLog = (obj) => ({
|
|
@@ -27,6 +28,35 @@ var BatchGetNamedQueryOutput;
|
|
|
27
28
|
...obj,
|
|
28
29
|
});
|
|
29
30
|
})(BatchGetNamedQueryOutput = exports.BatchGetNamedQueryOutput || (exports.BatchGetNamedQueryOutput = {}));
|
|
31
|
+
class InternalServerException extends AthenaServiceException_1.AthenaServiceException {
|
|
32
|
+
constructor(opts) {
|
|
33
|
+
super({
|
|
34
|
+
name: "InternalServerException",
|
|
35
|
+
$fault: "server",
|
|
36
|
+
...opts,
|
|
37
|
+
});
|
|
38
|
+
this.name = "InternalServerException";
|
|
39
|
+
this.$fault = "server";
|
|
40
|
+
Object.setPrototypeOf(this, InternalServerException.prototype);
|
|
41
|
+
this.Message = opts.Message;
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
exports.InternalServerException = InternalServerException;
|
|
45
|
+
class InvalidRequestException extends AthenaServiceException_1.AthenaServiceException {
|
|
46
|
+
constructor(opts) {
|
|
47
|
+
super({
|
|
48
|
+
name: "InvalidRequestException",
|
|
49
|
+
$fault: "client",
|
|
50
|
+
...opts,
|
|
51
|
+
});
|
|
52
|
+
this.name = "InvalidRequestException";
|
|
53
|
+
this.$fault = "client";
|
|
54
|
+
Object.setPrototypeOf(this, InvalidRequestException.prototype);
|
|
55
|
+
this.AthenaErrorCode = opts.AthenaErrorCode;
|
|
56
|
+
this.Message = opts.Message;
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
exports.InvalidRequestException = InvalidRequestException;
|
|
30
60
|
var BatchGetQueryExecutionInput;
|
|
31
61
|
(function (BatchGetQueryExecutionInput) {
|
|
32
62
|
BatchGetQueryExecutionInput.filterSensitiveLog = (obj) => ({
|
|
@@ -215,6 +245,21 @@ var DeletePreparedStatementOutput;
|
|
|
215
245
|
...obj,
|
|
216
246
|
});
|
|
217
247
|
})(DeletePreparedStatementOutput = exports.DeletePreparedStatementOutput || (exports.DeletePreparedStatementOutput = {}));
|
|
248
|
+
class ResourceNotFoundException extends AthenaServiceException_1.AthenaServiceException {
|
|
249
|
+
constructor(opts) {
|
|
250
|
+
super({
|
|
251
|
+
name: "ResourceNotFoundException",
|
|
252
|
+
$fault: "client",
|
|
253
|
+
...opts,
|
|
254
|
+
});
|
|
255
|
+
this.name = "ResourceNotFoundException";
|
|
256
|
+
this.$fault = "client";
|
|
257
|
+
Object.setPrototypeOf(this, ResourceNotFoundException.prototype);
|
|
258
|
+
this.Message = opts.Message;
|
|
259
|
+
this.ResourceName = opts.ResourceName;
|
|
260
|
+
}
|
|
261
|
+
}
|
|
262
|
+
exports.ResourceNotFoundException = ResourceNotFoundException;
|
|
218
263
|
var DeleteWorkGroupInput;
|
|
219
264
|
(function (DeleteWorkGroupInput) {
|
|
220
265
|
DeleteWorkGroupInput.filterSensitiveLog = (obj) => ({
|
|
@@ -245,6 +290,20 @@ var GetDatabaseOutput;
|
|
|
245
290
|
...obj,
|
|
246
291
|
});
|
|
247
292
|
})(GetDatabaseOutput = exports.GetDatabaseOutput || (exports.GetDatabaseOutput = {}));
|
|
293
|
+
class MetadataException extends AthenaServiceException_1.AthenaServiceException {
|
|
294
|
+
constructor(opts) {
|
|
295
|
+
super({
|
|
296
|
+
name: "MetadataException",
|
|
297
|
+
$fault: "client",
|
|
298
|
+
...opts,
|
|
299
|
+
});
|
|
300
|
+
this.name = "MetadataException";
|
|
301
|
+
this.$fault = "client";
|
|
302
|
+
Object.setPrototypeOf(this, MetadataException.prototype);
|
|
303
|
+
this.Message = opts.Message;
|
|
304
|
+
}
|
|
305
|
+
}
|
|
306
|
+
exports.MetadataException = MetadataException;
|
|
248
307
|
var GetDataCatalogInput;
|
|
249
308
|
(function (GetDataCatalogInput) {
|
|
250
309
|
GetDataCatalogInput.filterSensitiveLog = (obj) => ({
|
|
@@ -542,6 +601,21 @@ var ThrottleReason;
|
|
|
542
601
|
(function (ThrottleReason) {
|
|
543
602
|
ThrottleReason["CONCURRENT_QUERY_LIMIT_EXCEEDED"] = "CONCURRENT_QUERY_LIMIT_EXCEEDED";
|
|
544
603
|
})(ThrottleReason = exports.ThrottleReason || (exports.ThrottleReason = {}));
|
|
604
|
+
class TooManyRequestsException extends AthenaServiceException_1.AthenaServiceException {
|
|
605
|
+
constructor(opts) {
|
|
606
|
+
super({
|
|
607
|
+
name: "TooManyRequestsException",
|
|
608
|
+
$fault: "client",
|
|
609
|
+
...opts,
|
|
610
|
+
});
|
|
611
|
+
this.name = "TooManyRequestsException";
|
|
612
|
+
this.$fault = "client";
|
|
613
|
+
Object.setPrototypeOf(this, TooManyRequestsException.prototype);
|
|
614
|
+
this.Message = opts.Message;
|
|
615
|
+
this.Reason = opts.Reason;
|
|
616
|
+
}
|
|
617
|
+
}
|
|
618
|
+
exports.TooManyRequestsException = TooManyRequestsException;
|
|
545
619
|
var StopQueryExecutionInput;
|
|
546
620
|
(function (StopQueryExecutionInput) {
|
|
547
621
|
StopQueryExecutionInput.filterSensitiveLog = (obj) => ({
|