@aws-sdk/client-rds-data 3.490.0 → 3.496.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-cjs/RDSData.js +1 -23
- package/dist-cjs/RDSDataClient.js +1 -43
- package/dist-cjs/commands/BatchExecuteStatementCommand.js +1 -28
- package/dist-cjs/commands/BeginTransactionCommand.js +1 -28
- package/dist-cjs/commands/CommitTransactionCommand.js +1 -28
- package/dist-cjs/commands/ExecuteSqlCommand.js +1 -28
- package/dist-cjs/commands/ExecuteStatementCommand.js +1 -28
- package/dist-cjs/commands/RollbackTransactionCommand.js +1 -28
- package/dist-cjs/commands/index.js +1 -9
- package/dist-cjs/endpoint/EndpointParameters.js +1 -18
- package/dist-cjs/extensionConfiguration.js +1 -2
- package/dist-cjs/index.js +1647 -10
- package/dist-cjs/models/RDSDataServiceException.js +1 -12
- package/dist-cjs/models/index.js +1 -4
- package/dist-cjs/models/models_0.js +1 -282
- package/dist-cjs/protocols/Aws_restJson1.js +1 -1022
- package/dist-cjs/runtimeExtensions.js +1 -22
- package/package.json +40 -40
|
@@ -1,12 +1 @@
|
|
|
1
|
-
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.RDSDataServiceException = 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 RDSDataServiceException extends smithy_client_1.ServiceException {
|
|
7
|
-
constructor(options) {
|
|
8
|
-
super(options);
|
|
9
|
-
Object.setPrototypeOf(this, RDSDataServiceException.prototype);
|
|
10
|
-
}
|
|
11
|
-
}
|
|
12
|
-
exports.RDSDataServiceException = RDSDataServiceException;
|
|
1
|
+
module.exports = require("../index.js");
|
package/dist-cjs/models/index.js
CHANGED
|
@@ -1,282 +1 @@
|
|
|
1
|
-
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.Value = exports.Field = exports.ArrayValue = exports.UnsupportedResultException = exports.LongReturnType = exports.RecordsFormatType = exports.DecimalReturnType = exports.NotFoundException = exports.TransactionNotFoundException = exports.StatementTimeoutException = exports.ServiceUnavailableError = exports.SecretsErrorException = exports.InvalidSecretException = exports.InternalServerErrorException = exports.HttpEndpointNotEnabledException = exports.ForbiddenException = exports.DatabaseUnavailableException = exports.DatabaseNotFoundException = exports.DatabaseErrorException = exports.TypeHint = exports.BadRequestException = exports.AccessDeniedException = void 0;
|
|
4
|
-
const RDSDataServiceException_1 = require("./RDSDataServiceException");
|
|
5
|
-
class AccessDeniedException extends RDSDataServiceException_1.RDSDataServiceException {
|
|
6
|
-
constructor(opts) {
|
|
7
|
-
super({
|
|
8
|
-
name: "AccessDeniedException",
|
|
9
|
-
$fault: "client",
|
|
10
|
-
...opts,
|
|
11
|
-
});
|
|
12
|
-
this.name = "AccessDeniedException";
|
|
13
|
-
this.$fault = "client";
|
|
14
|
-
Object.setPrototypeOf(this, AccessDeniedException.prototype);
|
|
15
|
-
}
|
|
16
|
-
}
|
|
17
|
-
exports.AccessDeniedException = AccessDeniedException;
|
|
18
|
-
class BadRequestException extends RDSDataServiceException_1.RDSDataServiceException {
|
|
19
|
-
constructor(opts) {
|
|
20
|
-
super({
|
|
21
|
-
name: "BadRequestException",
|
|
22
|
-
$fault: "client",
|
|
23
|
-
...opts,
|
|
24
|
-
});
|
|
25
|
-
this.name = "BadRequestException";
|
|
26
|
-
this.$fault = "client";
|
|
27
|
-
Object.setPrototypeOf(this, BadRequestException.prototype);
|
|
28
|
-
}
|
|
29
|
-
}
|
|
30
|
-
exports.BadRequestException = BadRequestException;
|
|
31
|
-
exports.TypeHint = {
|
|
32
|
-
DATE: "DATE",
|
|
33
|
-
DECIMAL: "DECIMAL",
|
|
34
|
-
JSON: "JSON",
|
|
35
|
-
TIME: "TIME",
|
|
36
|
-
TIMESTAMP: "TIMESTAMP",
|
|
37
|
-
UUID: "UUID",
|
|
38
|
-
};
|
|
39
|
-
class DatabaseErrorException extends RDSDataServiceException_1.RDSDataServiceException {
|
|
40
|
-
constructor(opts) {
|
|
41
|
-
super({
|
|
42
|
-
name: "DatabaseErrorException",
|
|
43
|
-
$fault: "client",
|
|
44
|
-
...opts,
|
|
45
|
-
});
|
|
46
|
-
this.name = "DatabaseErrorException";
|
|
47
|
-
this.$fault = "client";
|
|
48
|
-
Object.setPrototypeOf(this, DatabaseErrorException.prototype);
|
|
49
|
-
}
|
|
50
|
-
}
|
|
51
|
-
exports.DatabaseErrorException = DatabaseErrorException;
|
|
52
|
-
class DatabaseNotFoundException extends RDSDataServiceException_1.RDSDataServiceException {
|
|
53
|
-
constructor(opts) {
|
|
54
|
-
super({
|
|
55
|
-
name: "DatabaseNotFoundException",
|
|
56
|
-
$fault: "client",
|
|
57
|
-
...opts,
|
|
58
|
-
});
|
|
59
|
-
this.name = "DatabaseNotFoundException";
|
|
60
|
-
this.$fault = "client";
|
|
61
|
-
Object.setPrototypeOf(this, DatabaseNotFoundException.prototype);
|
|
62
|
-
}
|
|
63
|
-
}
|
|
64
|
-
exports.DatabaseNotFoundException = DatabaseNotFoundException;
|
|
65
|
-
class DatabaseUnavailableException extends RDSDataServiceException_1.RDSDataServiceException {
|
|
66
|
-
constructor(opts) {
|
|
67
|
-
super({
|
|
68
|
-
name: "DatabaseUnavailableException",
|
|
69
|
-
$fault: "server",
|
|
70
|
-
...opts,
|
|
71
|
-
});
|
|
72
|
-
this.name = "DatabaseUnavailableException";
|
|
73
|
-
this.$fault = "server";
|
|
74
|
-
Object.setPrototypeOf(this, DatabaseUnavailableException.prototype);
|
|
75
|
-
}
|
|
76
|
-
}
|
|
77
|
-
exports.DatabaseUnavailableException = DatabaseUnavailableException;
|
|
78
|
-
class ForbiddenException extends RDSDataServiceException_1.RDSDataServiceException {
|
|
79
|
-
constructor(opts) {
|
|
80
|
-
super({
|
|
81
|
-
name: "ForbiddenException",
|
|
82
|
-
$fault: "client",
|
|
83
|
-
...opts,
|
|
84
|
-
});
|
|
85
|
-
this.name = "ForbiddenException";
|
|
86
|
-
this.$fault = "client";
|
|
87
|
-
Object.setPrototypeOf(this, ForbiddenException.prototype);
|
|
88
|
-
}
|
|
89
|
-
}
|
|
90
|
-
exports.ForbiddenException = ForbiddenException;
|
|
91
|
-
class HttpEndpointNotEnabledException extends RDSDataServiceException_1.RDSDataServiceException {
|
|
92
|
-
constructor(opts) {
|
|
93
|
-
super({
|
|
94
|
-
name: "HttpEndpointNotEnabledException",
|
|
95
|
-
$fault: "client",
|
|
96
|
-
...opts,
|
|
97
|
-
});
|
|
98
|
-
this.name = "HttpEndpointNotEnabledException";
|
|
99
|
-
this.$fault = "client";
|
|
100
|
-
Object.setPrototypeOf(this, HttpEndpointNotEnabledException.prototype);
|
|
101
|
-
}
|
|
102
|
-
}
|
|
103
|
-
exports.HttpEndpointNotEnabledException = HttpEndpointNotEnabledException;
|
|
104
|
-
class InternalServerErrorException extends RDSDataServiceException_1.RDSDataServiceException {
|
|
105
|
-
constructor(opts) {
|
|
106
|
-
super({
|
|
107
|
-
name: "InternalServerErrorException",
|
|
108
|
-
$fault: "server",
|
|
109
|
-
...opts,
|
|
110
|
-
});
|
|
111
|
-
this.name = "InternalServerErrorException";
|
|
112
|
-
this.$fault = "server";
|
|
113
|
-
Object.setPrototypeOf(this, InternalServerErrorException.prototype);
|
|
114
|
-
}
|
|
115
|
-
}
|
|
116
|
-
exports.InternalServerErrorException = InternalServerErrorException;
|
|
117
|
-
class InvalidSecretException extends RDSDataServiceException_1.RDSDataServiceException {
|
|
118
|
-
constructor(opts) {
|
|
119
|
-
super({
|
|
120
|
-
name: "InvalidSecretException",
|
|
121
|
-
$fault: "client",
|
|
122
|
-
...opts,
|
|
123
|
-
});
|
|
124
|
-
this.name = "InvalidSecretException";
|
|
125
|
-
this.$fault = "client";
|
|
126
|
-
Object.setPrototypeOf(this, InvalidSecretException.prototype);
|
|
127
|
-
}
|
|
128
|
-
}
|
|
129
|
-
exports.InvalidSecretException = InvalidSecretException;
|
|
130
|
-
class SecretsErrorException extends RDSDataServiceException_1.RDSDataServiceException {
|
|
131
|
-
constructor(opts) {
|
|
132
|
-
super({
|
|
133
|
-
name: "SecretsErrorException",
|
|
134
|
-
$fault: "client",
|
|
135
|
-
...opts,
|
|
136
|
-
});
|
|
137
|
-
this.name = "SecretsErrorException";
|
|
138
|
-
this.$fault = "client";
|
|
139
|
-
Object.setPrototypeOf(this, SecretsErrorException.prototype);
|
|
140
|
-
}
|
|
141
|
-
}
|
|
142
|
-
exports.SecretsErrorException = SecretsErrorException;
|
|
143
|
-
class ServiceUnavailableError extends RDSDataServiceException_1.RDSDataServiceException {
|
|
144
|
-
constructor(opts) {
|
|
145
|
-
super({
|
|
146
|
-
name: "ServiceUnavailableError",
|
|
147
|
-
$fault: "server",
|
|
148
|
-
...opts,
|
|
149
|
-
});
|
|
150
|
-
this.name = "ServiceUnavailableError";
|
|
151
|
-
this.$fault = "server";
|
|
152
|
-
Object.setPrototypeOf(this, ServiceUnavailableError.prototype);
|
|
153
|
-
}
|
|
154
|
-
}
|
|
155
|
-
exports.ServiceUnavailableError = ServiceUnavailableError;
|
|
156
|
-
class StatementTimeoutException extends RDSDataServiceException_1.RDSDataServiceException {
|
|
157
|
-
constructor(opts) {
|
|
158
|
-
super({
|
|
159
|
-
name: "StatementTimeoutException",
|
|
160
|
-
$fault: "client",
|
|
161
|
-
...opts,
|
|
162
|
-
});
|
|
163
|
-
this.name = "StatementTimeoutException";
|
|
164
|
-
this.$fault = "client";
|
|
165
|
-
Object.setPrototypeOf(this, StatementTimeoutException.prototype);
|
|
166
|
-
this.dbConnectionId = opts.dbConnectionId;
|
|
167
|
-
}
|
|
168
|
-
}
|
|
169
|
-
exports.StatementTimeoutException = StatementTimeoutException;
|
|
170
|
-
class TransactionNotFoundException extends RDSDataServiceException_1.RDSDataServiceException {
|
|
171
|
-
constructor(opts) {
|
|
172
|
-
super({
|
|
173
|
-
name: "TransactionNotFoundException",
|
|
174
|
-
$fault: "client",
|
|
175
|
-
...opts,
|
|
176
|
-
});
|
|
177
|
-
this.name = "TransactionNotFoundException";
|
|
178
|
-
this.$fault = "client";
|
|
179
|
-
Object.setPrototypeOf(this, TransactionNotFoundException.prototype);
|
|
180
|
-
}
|
|
181
|
-
}
|
|
182
|
-
exports.TransactionNotFoundException = TransactionNotFoundException;
|
|
183
|
-
class NotFoundException extends RDSDataServiceException_1.RDSDataServiceException {
|
|
184
|
-
constructor(opts) {
|
|
185
|
-
super({
|
|
186
|
-
name: "NotFoundException",
|
|
187
|
-
$fault: "client",
|
|
188
|
-
...opts,
|
|
189
|
-
});
|
|
190
|
-
this.name = "NotFoundException";
|
|
191
|
-
this.$fault = "client";
|
|
192
|
-
Object.setPrototypeOf(this, NotFoundException.prototype);
|
|
193
|
-
}
|
|
194
|
-
}
|
|
195
|
-
exports.NotFoundException = NotFoundException;
|
|
196
|
-
exports.DecimalReturnType = {
|
|
197
|
-
DOUBLE_OR_LONG: "DOUBLE_OR_LONG",
|
|
198
|
-
STRING: "STRING",
|
|
199
|
-
};
|
|
200
|
-
exports.RecordsFormatType = {
|
|
201
|
-
JSON: "JSON",
|
|
202
|
-
NONE: "NONE",
|
|
203
|
-
};
|
|
204
|
-
exports.LongReturnType = {
|
|
205
|
-
LONG: "LONG",
|
|
206
|
-
STRING: "STRING",
|
|
207
|
-
};
|
|
208
|
-
class UnsupportedResultException extends RDSDataServiceException_1.RDSDataServiceException {
|
|
209
|
-
constructor(opts) {
|
|
210
|
-
super({
|
|
211
|
-
name: "UnsupportedResultException",
|
|
212
|
-
$fault: "client",
|
|
213
|
-
...opts,
|
|
214
|
-
});
|
|
215
|
-
this.name = "UnsupportedResultException";
|
|
216
|
-
this.$fault = "client";
|
|
217
|
-
Object.setPrototypeOf(this, UnsupportedResultException.prototype);
|
|
218
|
-
}
|
|
219
|
-
}
|
|
220
|
-
exports.UnsupportedResultException = UnsupportedResultException;
|
|
221
|
-
var ArrayValue;
|
|
222
|
-
(function (ArrayValue) {
|
|
223
|
-
ArrayValue.visit = (value, visitor) => {
|
|
224
|
-
if (value.booleanValues !== undefined)
|
|
225
|
-
return visitor.booleanValues(value.booleanValues);
|
|
226
|
-
if (value.longValues !== undefined)
|
|
227
|
-
return visitor.longValues(value.longValues);
|
|
228
|
-
if (value.doubleValues !== undefined)
|
|
229
|
-
return visitor.doubleValues(value.doubleValues);
|
|
230
|
-
if (value.stringValues !== undefined)
|
|
231
|
-
return visitor.stringValues(value.stringValues);
|
|
232
|
-
if (value.arrayValues !== undefined)
|
|
233
|
-
return visitor.arrayValues(value.arrayValues);
|
|
234
|
-
return visitor._(value.$unknown[0], value.$unknown[1]);
|
|
235
|
-
};
|
|
236
|
-
})(ArrayValue = exports.ArrayValue || (exports.ArrayValue = {}));
|
|
237
|
-
var Field;
|
|
238
|
-
(function (Field) {
|
|
239
|
-
Field.visit = (value, visitor) => {
|
|
240
|
-
if (value.isNull !== undefined)
|
|
241
|
-
return visitor.isNull(value.isNull);
|
|
242
|
-
if (value.booleanValue !== undefined)
|
|
243
|
-
return visitor.booleanValue(value.booleanValue);
|
|
244
|
-
if (value.longValue !== undefined)
|
|
245
|
-
return visitor.longValue(value.longValue);
|
|
246
|
-
if (value.doubleValue !== undefined)
|
|
247
|
-
return visitor.doubleValue(value.doubleValue);
|
|
248
|
-
if (value.stringValue !== undefined)
|
|
249
|
-
return visitor.stringValue(value.stringValue);
|
|
250
|
-
if (value.blobValue !== undefined)
|
|
251
|
-
return visitor.blobValue(value.blobValue);
|
|
252
|
-
if (value.arrayValue !== undefined)
|
|
253
|
-
return visitor.arrayValue(value.arrayValue);
|
|
254
|
-
return visitor._(value.$unknown[0], value.$unknown[1]);
|
|
255
|
-
};
|
|
256
|
-
})(Field = exports.Field || (exports.Field = {}));
|
|
257
|
-
var Value;
|
|
258
|
-
(function (Value) {
|
|
259
|
-
Value.visit = (value, visitor) => {
|
|
260
|
-
if (value.isNull !== undefined)
|
|
261
|
-
return visitor.isNull(value.isNull);
|
|
262
|
-
if (value.bitValue !== undefined)
|
|
263
|
-
return visitor.bitValue(value.bitValue);
|
|
264
|
-
if (value.bigIntValue !== undefined)
|
|
265
|
-
return visitor.bigIntValue(value.bigIntValue);
|
|
266
|
-
if (value.intValue !== undefined)
|
|
267
|
-
return visitor.intValue(value.intValue);
|
|
268
|
-
if (value.doubleValue !== undefined)
|
|
269
|
-
return visitor.doubleValue(value.doubleValue);
|
|
270
|
-
if (value.realValue !== undefined)
|
|
271
|
-
return visitor.realValue(value.realValue);
|
|
272
|
-
if (value.stringValue !== undefined)
|
|
273
|
-
return visitor.stringValue(value.stringValue);
|
|
274
|
-
if (value.blobValue !== undefined)
|
|
275
|
-
return visitor.blobValue(value.blobValue);
|
|
276
|
-
if (value.arrayValues !== undefined)
|
|
277
|
-
return visitor.arrayValues(value.arrayValues);
|
|
278
|
-
if (value.structValue !== undefined)
|
|
279
|
-
return visitor.structValue(value.structValue);
|
|
280
|
-
return visitor._(value.$unknown[0], value.$unknown[1]);
|
|
281
|
-
};
|
|
282
|
-
})(Value = exports.Value || (exports.Value = {}));
|
|
1
|
+
module.exports = require("../index.js");
|