@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/dist-es/index.js CHANGED
@@ -3,3 +3,4 @@ export * from "./AthenaClient";
3
3
  export * from "./commands";
4
4
  export * from "./models";
5
5
  export * from "./pagination";
6
+ export { AthenaServiceException } from "./models/AthenaServiceException";
@@ -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,5 @@
1
- import { __assign } from "tslib";
1
+ import { __assign, __extends } from "tslib";
2
+ import { AthenaServiceException as __BaseException } from "./AthenaServiceException";
2
3
  export var BatchGetNamedQueryInput;
3
4
  (function (BatchGetNamedQueryInput) {
4
5
  BatchGetNamedQueryInput.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
@@ -15,6 +16,33 @@ export var BatchGetNamedQueryOutput;
15
16
  (function (BatchGetNamedQueryOutput) {
16
17
  BatchGetNamedQueryOutput.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
17
18
  })(BatchGetNamedQueryOutput || (BatchGetNamedQueryOutput = {}));
19
+ var InternalServerException = (function (_super) {
20
+ __extends(InternalServerException, _super);
21
+ function InternalServerException(opts) {
22
+ var _this = _super.call(this, __assign({ name: "InternalServerException", $fault: "server" }, opts)) || this;
23
+ _this.name = "InternalServerException";
24
+ _this.$fault = "server";
25
+ Object.setPrototypeOf(_this, InternalServerException.prototype);
26
+ _this.Message = opts.Message;
27
+ return _this;
28
+ }
29
+ return InternalServerException;
30
+ }(__BaseException));
31
+ export { InternalServerException };
32
+ var InvalidRequestException = (function (_super) {
33
+ __extends(InvalidRequestException, _super);
34
+ function InvalidRequestException(opts) {
35
+ var _this = _super.call(this, __assign({ name: "InvalidRequestException", $fault: "client" }, opts)) || this;
36
+ _this.name = "InvalidRequestException";
37
+ _this.$fault = "client";
38
+ Object.setPrototypeOf(_this, InvalidRequestException.prototype);
39
+ _this.AthenaErrorCode = opts.AthenaErrorCode;
40
+ _this.Message = opts.Message;
41
+ return _this;
42
+ }
43
+ return InvalidRequestException;
44
+ }(__BaseException));
45
+ export { InvalidRequestException };
18
46
  export var BatchGetQueryExecutionInput;
19
47
  (function (BatchGetQueryExecutionInput) {
20
48
  BatchGetQueryExecutionInput.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
@@ -149,6 +177,20 @@ export var DeletePreparedStatementOutput;
149
177
  (function (DeletePreparedStatementOutput) {
150
178
  DeletePreparedStatementOutput.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
151
179
  })(DeletePreparedStatementOutput || (DeletePreparedStatementOutput = {}));
180
+ var ResourceNotFoundException = (function (_super) {
181
+ __extends(ResourceNotFoundException, _super);
182
+ function ResourceNotFoundException(opts) {
183
+ var _this = _super.call(this, __assign({ name: "ResourceNotFoundException", $fault: "client" }, opts)) || this;
184
+ _this.name = "ResourceNotFoundException";
185
+ _this.$fault = "client";
186
+ Object.setPrototypeOf(_this, ResourceNotFoundException.prototype);
187
+ _this.Message = opts.Message;
188
+ _this.ResourceName = opts.ResourceName;
189
+ return _this;
190
+ }
191
+ return ResourceNotFoundException;
192
+ }(__BaseException));
193
+ export { ResourceNotFoundException };
152
194
  export var DeleteWorkGroupInput;
153
195
  (function (DeleteWorkGroupInput) {
154
196
  DeleteWorkGroupInput.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
@@ -169,6 +211,19 @@ export var GetDatabaseOutput;
169
211
  (function (GetDatabaseOutput) {
170
212
  GetDatabaseOutput.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
171
213
  })(GetDatabaseOutput || (GetDatabaseOutput = {}));
214
+ var MetadataException = (function (_super) {
215
+ __extends(MetadataException, _super);
216
+ function MetadataException(opts) {
217
+ var _this = _super.call(this, __assign({ name: "MetadataException", $fault: "client" }, opts)) || this;
218
+ _this.name = "MetadataException";
219
+ _this.$fault = "client";
220
+ Object.setPrototypeOf(_this, MetadataException.prototype);
221
+ _this.Message = opts.Message;
222
+ return _this;
223
+ }
224
+ return MetadataException;
225
+ }(__BaseException));
226
+ export { MetadataException };
172
227
  export var GetDataCatalogInput;
173
228
  (function (GetDataCatalogInput) {
174
229
  GetDataCatalogInput.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
@@ -372,6 +427,20 @@ export var ThrottleReason;
372
427
  (function (ThrottleReason) {
373
428
  ThrottleReason["CONCURRENT_QUERY_LIMIT_EXCEEDED"] = "CONCURRENT_QUERY_LIMIT_EXCEEDED";
374
429
  })(ThrottleReason || (ThrottleReason = {}));
430
+ var TooManyRequestsException = (function (_super) {
431
+ __extends(TooManyRequestsException, _super);
432
+ function TooManyRequestsException(opts) {
433
+ var _this = _super.call(this, __assign({ name: "TooManyRequestsException", $fault: "client" }, opts)) || this;
434
+ _this.name = "TooManyRequestsException";
435
+ _this.$fault = "client";
436
+ Object.setPrototypeOf(_this, TooManyRequestsException.prototype);
437
+ _this.Message = opts.Message;
438
+ _this.Reason = opts.Reason;
439
+ return _this;
440
+ }
441
+ return TooManyRequestsException;
442
+ }(__BaseException));
443
+ export { TooManyRequestsException };
375
444
  export var StopQueryExecutionInput;
376
445
  (function (StopQueryExecutionInput) {
377
446
  StopQueryExecutionInput.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };