@aws-sdk/client-athena 3.987.0 → 3.988.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.
@@ -0,0 +1,12 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.AthenaServiceException = exports.__ServiceException = void 0;
4
+ const smithy_client_1 = require("@smithy/smithy-client");
5
+ Object.defineProperty(exports, "__ServiceException", { enumerable: true, get: function () { return smithy_client_1.ServiceException; } });
6
+ class AthenaServiceException extends smithy_client_1.ServiceException {
7
+ constructor(options) {
8
+ super(options);
9
+ Object.setPrototypeOf(this, AthenaServiceException.prototype);
10
+ }
11
+ }
12
+ exports.AthenaServiceException = AthenaServiceException;
@@ -0,0 +1,100 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.SessionAlreadyExistsException = exports.MetadataException = exports.ResourceNotFoundException = exports.TooManyRequestsException = exports.InvalidRequestException = exports.InternalServerException = void 0;
4
+ const AthenaServiceException_1 = require("./AthenaServiceException");
5
+ class InternalServerException extends AthenaServiceException_1.AthenaServiceException {
6
+ name = "InternalServerException";
7
+ $fault = "server";
8
+ Message;
9
+ constructor(opts) {
10
+ super({
11
+ name: "InternalServerException",
12
+ $fault: "server",
13
+ ...opts,
14
+ });
15
+ Object.setPrototypeOf(this, InternalServerException.prototype);
16
+ this.Message = opts.Message;
17
+ }
18
+ }
19
+ exports.InternalServerException = InternalServerException;
20
+ class InvalidRequestException extends AthenaServiceException_1.AthenaServiceException {
21
+ name = "InvalidRequestException";
22
+ $fault = "client";
23
+ AthenaErrorCode;
24
+ Message;
25
+ constructor(opts) {
26
+ super({
27
+ name: "InvalidRequestException",
28
+ $fault: "client",
29
+ ...opts,
30
+ });
31
+ Object.setPrototypeOf(this, InvalidRequestException.prototype);
32
+ this.AthenaErrorCode = opts.AthenaErrorCode;
33
+ this.Message = opts.Message;
34
+ }
35
+ }
36
+ exports.InvalidRequestException = InvalidRequestException;
37
+ class TooManyRequestsException extends AthenaServiceException_1.AthenaServiceException {
38
+ name = "TooManyRequestsException";
39
+ $fault = "client";
40
+ Message;
41
+ Reason;
42
+ constructor(opts) {
43
+ super({
44
+ name: "TooManyRequestsException",
45
+ $fault: "client",
46
+ ...opts,
47
+ });
48
+ Object.setPrototypeOf(this, TooManyRequestsException.prototype);
49
+ this.Message = opts.Message;
50
+ this.Reason = opts.Reason;
51
+ }
52
+ }
53
+ exports.TooManyRequestsException = TooManyRequestsException;
54
+ class ResourceNotFoundException extends AthenaServiceException_1.AthenaServiceException {
55
+ name = "ResourceNotFoundException";
56
+ $fault = "client";
57
+ Message;
58
+ ResourceName;
59
+ constructor(opts) {
60
+ super({
61
+ name: "ResourceNotFoundException",
62
+ $fault: "client",
63
+ ...opts,
64
+ });
65
+ Object.setPrototypeOf(this, ResourceNotFoundException.prototype);
66
+ this.Message = opts.Message;
67
+ this.ResourceName = opts.ResourceName;
68
+ }
69
+ }
70
+ exports.ResourceNotFoundException = ResourceNotFoundException;
71
+ class MetadataException extends AthenaServiceException_1.AthenaServiceException {
72
+ name = "MetadataException";
73
+ $fault = "client";
74
+ Message;
75
+ constructor(opts) {
76
+ super({
77
+ name: "MetadataException",
78
+ $fault: "client",
79
+ ...opts,
80
+ });
81
+ Object.setPrototypeOf(this, MetadataException.prototype);
82
+ this.Message = opts.Message;
83
+ }
84
+ }
85
+ exports.MetadataException = MetadataException;
86
+ class SessionAlreadyExistsException extends AthenaServiceException_1.AthenaServiceException {
87
+ name = "SessionAlreadyExistsException";
88
+ $fault = "client";
89
+ Message;
90
+ constructor(opts) {
91
+ super({
92
+ name: "SessionAlreadyExistsException",
93
+ $fault: "client",
94
+ ...opts,
95
+ });
96
+ Object.setPrototypeOf(this, SessionAlreadyExistsException.prototype);
97
+ this.Message = opts.Message;
98
+ }
99
+ }
100
+ exports.SessionAlreadyExistsException = SessionAlreadyExistsException;
@@ -9,6 +9,7 @@ const util_base64_1 = require("@smithy/util-base64");
9
9
  const util_utf8_1 = require("@smithy/util-utf8");
10
10
  const httpAuthSchemeProvider_1 = require("./auth/httpAuthSchemeProvider");
11
11
  const endpointResolver_1 = require("./endpoint/endpointResolver");
12
+ const schemas_0_1 = require("./schemas/schemas_0");
12
13
  const getRuntimeConfig = (config) => {
13
14
  return {
14
15
  apiVersion: "2017-05-18",
@@ -29,6 +30,7 @@ const getRuntimeConfig = (config) => {
29
30
  protocol: config?.protocol ?? protocols_1.AwsJson1_1Protocol,
30
31
  protocolSettings: config?.protocolSettings ?? {
31
32
  defaultNamespace: "com.amazonaws.athena",
33
+ errorTypeRegistries: schemas_0_1.errorTypeRegistries,
32
34
  version: "2017-05-18",
33
35
  serviceTarget: "AmazonAthena",
34
36
  },