@aws-sdk/client-rds-data 3.477.0 → 3.479.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/README.md +15 -9
- package/dist-cjs/models/models_0.js +105 -1
- package/dist-cjs/protocols/Aws_restJson1.js +210 -0
- package/dist-es/models/models_0.js +96 -0
- package/dist-es/protocols/Aws_restJson1.js +211 -1
- package/dist-types/RDSData.d.ts +14 -8
- package/dist-types/RDSDataClient.d.ts +14 -8
- package/dist-types/commands/BatchExecuteStatementCommand.d.ts +38 -6
- package/dist-types/commands/BeginTransactionCommand.d.ts +37 -5
- package/dist-types/commands/CommitTransactionCommand.d.ts +35 -3
- package/dist-types/commands/ExecuteSqlCommand.d.ts +7 -7
- package/dist-types/commands/ExecuteStatementCommand.d.ts +51 -5
- package/dist-types/commands/RollbackTransactionCommand.d.ts +35 -3
- package/dist-types/index.d.ts +14 -8
- package/dist-types/models/models_0.d.ts +160 -45
- package/dist-types/ts3.4/models/models_0.d.ts +59 -0
- package/package.json +5 -5
package/README.md
CHANGED
|
@@ -6,15 +6,21 @@
|
|
|
6
6
|
|
|
7
7
|
AWS SDK for JavaScript RDSData Client for Node.js, Browser and React Native.
|
|
8
8
|
|
|
9
|
-
<fullname>
|
|
10
|
-
|
|
11
|
-
<p>Amazon RDS provides an HTTP endpoint to run SQL statements on an Amazon Aurora
|
|
12
|
-
statements, you
|
|
13
|
-
<
|
|
14
|
-
<
|
|
15
|
-
|
|
16
|
-
<p>
|
|
17
|
-
|
|
9
|
+
<fullname>RDS Data API</fullname>
|
|
10
|
+
|
|
11
|
+
<p>Amazon RDS provides an HTTP endpoint to run SQL statements on an Amazon Aurora DB cluster. To run these
|
|
12
|
+
statements, you use the RDS Data API (Data API).</p>
|
|
13
|
+
<p>Data API is available with the following types of Aurora databases:</p>
|
|
14
|
+
<ul>
|
|
15
|
+
<li>
|
|
16
|
+
<p>Aurora PostgreSQL - Serverless v2, Serverless v1, and provisioned</p>
|
|
17
|
+
</li>
|
|
18
|
+
<li>
|
|
19
|
+
<p>Aurora MySQL - Serverless v1 only</p>
|
|
20
|
+
</li>
|
|
21
|
+
</ul>
|
|
22
|
+
<p>For more information about the Data API, see
|
|
23
|
+
<a href="https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/data-api.html">Using RDS Data API</a>
|
|
18
24
|
in the <i>Amazon Aurora User Guide</i>.</p>
|
|
19
25
|
|
|
20
26
|
## Installing
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.Value = exports.Field = exports.ArrayValue = exports.LongReturnType = exports.RecordsFormatType = exports.DecimalReturnType = exports.NotFoundException = exports.StatementTimeoutException = exports.ServiceUnavailableError = exports.InternalServerErrorException = exports.ForbiddenException = exports.TypeHint = exports.BadRequestException = exports.AccessDeniedException = void 0;
|
|
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
4
|
const RDSDataServiceException_1 = require("./RDSDataServiceException");
|
|
5
5
|
class AccessDeniedException extends RDSDataServiceException_1.RDSDataServiceException {
|
|
6
6
|
constructor(opts) {
|
|
@@ -36,6 +36,45 @@ exports.TypeHint = {
|
|
|
36
36
|
TIMESTAMP: "TIMESTAMP",
|
|
37
37
|
UUID: "UUID",
|
|
38
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;
|
|
39
78
|
class ForbiddenException extends RDSDataServiceException_1.RDSDataServiceException {
|
|
40
79
|
constructor(opts) {
|
|
41
80
|
super({
|
|
@@ -49,6 +88,19 @@ class ForbiddenException extends RDSDataServiceException_1.RDSDataServiceExcepti
|
|
|
49
88
|
}
|
|
50
89
|
}
|
|
51
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;
|
|
52
104
|
class InternalServerErrorException extends RDSDataServiceException_1.RDSDataServiceException {
|
|
53
105
|
constructor(opts) {
|
|
54
106
|
super({
|
|
@@ -62,6 +114,32 @@ class InternalServerErrorException extends RDSDataServiceException_1.RDSDataServ
|
|
|
62
114
|
}
|
|
63
115
|
}
|
|
64
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;
|
|
65
143
|
class ServiceUnavailableError extends RDSDataServiceException_1.RDSDataServiceException {
|
|
66
144
|
constructor(opts) {
|
|
67
145
|
super({
|
|
@@ -89,6 +167,19 @@ class StatementTimeoutException extends RDSDataServiceException_1.RDSDataService
|
|
|
89
167
|
}
|
|
90
168
|
}
|
|
91
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;
|
|
92
183
|
class NotFoundException extends RDSDataServiceException_1.RDSDataServiceException {
|
|
93
184
|
constructor(opts) {
|
|
94
185
|
super({
|
|
@@ -114,6 +205,19 @@ exports.LongReturnType = {
|
|
|
114
205
|
LONG: "LONG",
|
|
115
206
|
STRING: "STRING",
|
|
116
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;
|
|
117
221
|
var ArrayValue;
|
|
118
222
|
(function (ArrayValue) {
|
|
119
223
|
ArrayValue.visit = (value, visitor) => {
|
|
@@ -145,18 +145,39 @@ const de_BatchExecuteStatementCommandError = async (output, context) => {
|
|
|
145
145
|
case "BadRequestException":
|
|
146
146
|
case "com.amazonaws.rdsdata#BadRequestException":
|
|
147
147
|
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
148
|
+
case "DatabaseErrorException":
|
|
149
|
+
case "com.amazonaws.rdsdata#DatabaseErrorException":
|
|
150
|
+
throw await de_DatabaseErrorExceptionRes(parsedOutput, context);
|
|
151
|
+
case "DatabaseNotFoundException":
|
|
152
|
+
case "com.amazonaws.rdsdata#DatabaseNotFoundException":
|
|
153
|
+
throw await de_DatabaseNotFoundExceptionRes(parsedOutput, context);
|
|
154
|
+
case "DatabaseUnavailableException":
|
|
155
|
+
case "com.amazonaws.rdsdata#DatabaseUnavailableException":
|
|
156
|
+
throw await de_DatabaseUnavailableExceptionRes(parsedOutput, context);
|
|
148
157
|
case "ForbiddenException":
|
|
149
158
|
case "com.amazonaws.rdsdata#ForbiddenException":
|
|
150
159
|
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
160
|
+
case "HttpEndpointNotEnabledException":
|
|
161
|
+
case "com.amazonaws.rdsdata#HttpEndpointNotEnabledException":
|
|
162
|
+
throw await de_HttpEndpointNotEnabledExceptionRes(parsedOutput, context);
|
|
151
163
|
case "InternalServerErrorException":
|
|
152
164
|
case "com.amazonaws.rdsdata#InternalServerErrorException":
|
|
153
165
|
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
166
|
+
case "InvalidSecretException":
|
|
167
|
+
case "com.amazonaws.rdsdata#InvalidSecretException":
|
|
168
|
+
throw await de_InvalidSecretExceptionRes(parsedOutput, context);
|
|
169
|
+
case "SecretsErrorException":
|
|
170
|
+
case "com.amazonaws.rdsdata#SecretsErrorException":
|
|
171
|
+
throw await de_SecretsErrorExceptionRes(parsedOutput, context);
|
|
154
172
|
case "ServiceUnavailableError":
|
|
155
173
|
case "com.amazonaws.rdsdata#ServiceUnavailableError":
|
|
156
174
|
throw await de_ServiceUnavailableErrorRes(parsedOutput, context);
|
|
157
175
|
case "StatementTimeoutException":
|
|
158
176
|
case "com.amazonaws.rdsdata#StatementTimeoutException":
|
|
159
177
|
throw await de_StatementTimeoutExceptionRes(parsedOutput, context);
|
|
178
|
+
case "TransactionNotFoundException":
|
|
179
|
+
case "com.amazonaws.rdsdata#TransactionNotFoundException":
|
|
180
|
+
throw await de_TransactionNotFoundExceptionRes(parsedOutput, context);
|
|
160
181
|
default:
|
|
161
182
|
const parsedBody = parsedOutput.body;
|
|
162
183
|
return throwDefaultError({
|
|
@@ -194,18 +215,39 @@ const de_BeginTransactionCommandError = async (output, context) => {
|
|
|
194
215
|
case "BadRequestException":
|
|
195
216
|
case "com.amazonaws.rdsdata#BadRequestException":
|
|
196
217
|
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
218
|
+
case "DatabaseErrorException":
|
|
219
|
+
case "com.amazonaws.rdsdata#DatabaseErrorException":
|
|
220
|
+
throw await de_DatabaseErrorExceptionRes(parsedOutput, context);
|
|
221
|
+
case "DatabaseNotFoundException":
|
|
222
|
+
case "com.amazonaws.rdsdata#DatabaseNotFoundException":
|
|
223
|
+
throw await de_DatabaseNotFoundExceptionRes(parsedOutput, context);
|
|
224
|
+
case "DatabaseUnavailableException":
|
|
225
|
+
case "com.amazonaws.rdsdata#DatabaseUnavailableException":
|
|
226
|
+
throw await de_DatabaseUnavailableExceptionRes(parsedOutput, context);
|
|
197
227
|
case "ForbiddenException":
|
|
198
228
|
case "com.amazonaws.rdsdata#ForbiddenException":
|
|
199
229
|
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
230
|
+
case "HttpEndpointNotEnabledException":
|
|
231
|
+
case "com.amazonaws.rdsdata#HttpEndpointNotEnabledException":
|
|
232
|
+
throw await de_HttpEndpointNotEnabledExceptionRes(parsedOutput, context);
|
|
200
233
|
case "InternalServerErrorException":
|
|
201
234
|
case "com.amazonaws.rdsdata#InternalServerErrorException":
|
|
202
235
|
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
236
|
+
case "InvalidSecretException":
|
|
237
|
+
case "com.amazonaws.rdsdata#InvalidSecretException":
|
|
238
|
+
throw await de_InvalidSecretExceptionRes(parsedOutput, context);
|
|
239
|
+
case "SecretsErrorException":
|
|
240
|
+
case "com.amazonaws.rdsdata#SecretsErrorException":
|
|
241
|
+
throw await de_SecretsErrorExceptionRes(parsedOutput, context);
|
|
203
242
|
case "ServiceUnavailableError":
|
|
204
243
|
case "com.amazonaws.rdsdata#ServiceUnavailableError":
|
|
205
244
|
throw await de_ServiceUnavailableErrorRes(parsedOutput, context);
|
|
206
245
|
case "StatementTimeoutException":
|
|
207
246
|
case "com.amazonaws.rdsdata#StatementTimeoutException":
|
|
208
247
|
throw await de_StatementTimeoutExceptionRes(parsedOutput, context);
|
|
248
|
+
case "TransactionNotFoundException":
|
|
249
|
+
case "com.amazonaws.rdsdata#TransactionNotFoundException":
|
|
250
|
+
throw await de_TransactionNotFoundExceptionRes(parsedOutput, context);
|
|
209
251
|
default:
|
|
210
252
|
const parsedBody = parsedOutput.body;
|
|
211
253
|
return throwDefaultError({
|
|
@@ -243,21 +285,42 @@ const de_CommitTransactionCommandError = async (output, context) => {
|
|
|
243
285
|
case "BadRequestException":
|
|
244
286
|
case "com.amazonaws.rdsdata#BadRequestException":
|
|
245
287
|
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
288
|
+
case "DatabaseErrorException":
|
|
289
|
+
case "com.amazonaws.rdsdata#DatabaseErrorException":
|
|
290
|
+
throw await de_DatabaseErrorExceptionRes(parsedOutput, context);
|
|
291
|
+
case "DatabaseNotFoundException":
|
|
292
|
+
case "com.amazonaws.rdsdata#DatabaseNotFoundException":
|
|
293
|
+
throw await de_DatabaseNotFoundExceptionRes(parsedOutput, context);
|
|
294
|
+
case "DatabaseUnavailableException":
|
|
295
|
+
case "com.amazonaws.rdsdata#DatabaseUnavailableException":
|
|
296
|
+
throw await de_DatabaseUnavailableExceptionRes(parsedOutput, context);
|
|
246
297
|
case "ForbiddenException":
|
|
247
298
|
case "com.amazonaws.rdsdata#ForbiddenException":
|
|
248
299
|
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
300
|
+
case "HttpEndpointNotEnabledException":
|
|
301
|
+
case "com.amazonaws.rdsdata#HttpEndpointNotEnabledException":
|
|
302
|
+
throw await de_HttpEndpointNotEnabledExceptionRes(parsedOutput, context);
|
|
249
303
|
case "InternalServerErrorException":
|
|
250
304
|
case "com.amazonaws.rdsdata#InternalServerErrorException":
|
|
251
305
|
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
306
|
+
case "InvalidSecretException":
|
|
307
|
+
case "com.amazonaws.rdsdata#InvalidSecretException":
|
|
308
|
+
throw await de_InvalidSecretExceptionRes(parsedOutput, context);
|
|
252
309
|
case "NotFoundException":
|
|
253
310
|
case "com.amazonaws.rdsdata#NotFoundException":
|
|
254
311
|
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
312
|
+
case "SecretsErrorException":
|
|
313
|
+
case "com.amazonaws.rdsdata#SecretsErrorException":
|
|
314
|
+
throw await de_SecretsErrorExceptionRes(parsedOutput, context);
|
|
255
315
|
case "ServiceUnavailableError":
|
|
256
316
|
case "com.amazonaws.rdsdata#ServiceUnavailableError":
|
|
257
317
|
throw await de_ServiceUnavailableErrorRes(parsedOutput, context);
|
|
258
318
|
case "StatementTimeoutException":
|
|
259
319
|
case "com.amazonaws.rdsdata#StatementTimeoutException":
|
|
260
320
|
throw await de_StatementTimeoutExceptionRes(parsedOutput, context);
|
|
321
|
+
case "TransactionNotFoundException":
|
|
322
|
+
case "com.amazonaws.rdsdata#TransactionNotFoundException":
|
|
323
|
+
throw await de_TransactionNotFoundExceptionRes(parsedOutput, context);
|
|
261
324
|
default:
|
|
262
325
|
const parsedBody = parsedOutput.body;
|
|
263
326
|
return throwDefaultError({
|
|
@@ -345,18 +408,42 @@ const de_ExecuteStatementCommandError = async (output, context) => {
|
|
|
345
408
|
case "BadRequestException":
|
|
346
409
|
case "com.amazonaws.rdsdata#BadRequestException":
|
|
347
410
|
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
411
|
+
case "DatabaseErrorException":
|
|
412
|
+
case "com.amazonaws.rdsdata#DatabaseErrorException":
|
|
413
|
+
throw await de_DatabaseErrorExceptionRes(parsedOutput, context);
|
|
414
|
+
case "DatabaseNotFoundException":
|
|
415
|
+
case "com.amazonaws.rdsdata#DatabaseNotFoundException":
|
|
416
|
+
throw await de_DatabaseNotFoundExceptionRes(parsedOutput, context);
|
|
417
|
+
case "DatabaseUnavailableException":
|
|
418
|
+
case "com.amazonaws.rdsdata#DatabaseUnavailableException":
|
|
419
|
+
throw await de_DatabaseUnavailableExceptionRes(parsedOutput, context);
|
|
348
420
|
case "ForbiddenException":
|
|
349
421
|
case "com.amazonaws.rdsdata#ForbiddenException":
|
|
350
422
|
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
423
|
+
case "HttpEndpointNotEnabledException":
|
|
424
|
+
case "com.amazonaws.rdsdata#HttpEndpointNotEnabledException":
|
|
425
|
+
throw await de_HttpEndpointNotEnabledExceptionRes(parsedOutput, context);
|
|
351
426
|
case "InternalServerErrorException":
|
|
352
427
|
case "com.amazonaws.rdsdata#InternalServerErrorException":
|
|
353
428
|
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
429
|
+
case "InvalidSecretException":
|
|
430
|
+
case "com.amazonaws.rdsdata#InvalidSecretException":
|
|
431
|
+
throw await de_InvalidSecretExceptionRes(parsedOutput, context);
|
|
432
|
+
case "SecretsErrorException":
|
|
433
|
+
case "com.amazonaws.rdsdata#SecretsErrorException":
|
|
434
|
+
throw await de_SecretsErrorExceptionRes(parsedOutput, context);
|
|
354
435
|
case "ServiceUnavailableError":
|
|
355
436
|
case "com.amazonaws.rdsdata#ServiceUnavailableError":
|
|
356
437
|
throw await de_ServiceUnavailableErrorRes(parsedOutput, context);
|
|
357
438
|
case "StatementTimeoutException":
|
|
358
439
|
case "com.amazonaws.rdsdata#StatementTimeoutException":
|
|
359
440
|
throw await de_StatementTimeoutExceptionRes(parsedOutput, context);
|
|
441
|
+
case "TransactionNotFoundException":
|
|
442
|
+
case "com.amazonaws.rdsdata#TransactionNotFoundException":
|
|
443
|
+
throw await de_TransactionNotFoundExceptionRes(parsedOutput, context);
|
|
444
|
+
case "UnsupportedResultException":
|
|
445
|
+
case "com.amazonaws.rdsdata#UnsupportedResultException":
|
|
446
|
+
throw await de_UnsupportedResultExceptionRes(parsedOutput, context);
|
|
360
447
|
default:
|
|
361
448
|
const parsedBody = parsedOutput.body;
|
|
362
449
|
return throwDefaultError({
|
|
@@ -394,21 +481,42 @@ const de_RollbackTransactionCommandError = async (output, context) => {
|
|
|
394
481
|
case "BadRequestException":
|
|
395
482
|
case "com.amazonaws.rdsdata#BadRequestException":
|
|
396
483
|
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
484
|
+
case "DatabaseErrorException":
|
|
485
|
+
case "com.amazonaws.rdsdata#DatabaseErrorException":
|
|
486
|
+
throw await de_DatabaseErrorExceptionRes(parsedOutput, context);
|
|
487
|
+
case "DatabaseNotFoundException":
|
|
488
|
+
case "com.amazonaws.rdsdata#DatabaseNotFoundException":
|
|
489
|
+
throw await de_DatabaseNotFoundExceptionRes(parsedOutput, context);
|
|
490
|
+
case "DatabaseUnavailableException":
|
|
491
|
+
case "com.amazonaws.rdsdata#DatabaseUnavailableException":
|
|
492
|
+
throw await de_DatabaseUnavailableExceptionRes(parsedOutput, context);
|
|
397
493
|
case "ForbiddenException":
|
|
398
494
|
case "com.amazonaws.rdsdata#ForbiddenException":
|
|
399
495
|
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
496
|
+
case "HttpEndpointNotEnabledException":
|
|
497
|
+
case "com.amazonaws.rdsdata#HttpEndpointNotEnabledException":
|
|
498
|
+
throw await de_HttpEndpointNotEnabledExceptionRes(parsedOutput, context);
|
|
400
499
|
case "InternalServerErrorException":
|
|
401
500
|
case "com.amazonaws.rdsdata#InternalServerErrorException":
|
|
402
501
|
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
502
|
+
case "InvalidSecretException":
|
|
503
|
+
case "com.amazonaws.rdsdata#InvalidSecretException":
|
|
504
|
+
throw await de_InvalidSecretExceptionRes(parsedOutput, context);
|
|
403
505
|
case "NotFoundException":
|
|
404
506
|
case "com.amazonaws.rdsdata#NotFoundException":
|
|
405
507
|
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
508
|
+
case "SecretsErrorException":
|
|
509
|
+
case "com.amazonaws.rdsdata#SecretsErrorException":
|
|
510
|
+
throw await de_SecretsErrorExceptionRes(parsedOutput, context);
|
|
406
511
|
case "ServiceUnavailableError":
|
|
407
512
|
case "com.amazonaws.rdsdata#ServiceUnavailableError":
|
|
408
513
|
throw await de_ServiceUnavailableErrorRes(parsedOutput, context);
|
|
409
514
|
case "StatementTimeoutException":
|
|
410
515
|
case "com.amazonaws.rdsdata#StatementTimeoutException":
|
|
411
516
|
throw await de_StatementTimeoutExceptionRes(parsedOutput, context);
|
|
517
|
+
case "TransactionNotFoundException":
|
|
518
|
+
case "com.amazonaws.rdsdata#TransactionNotFoundException":
|
|
519
|
+
throw await de_TransactionNotFoundExceptionRes(parsedOutput, context);
|
|
412
520
|
default:
|
|
413
521
|
const parsedBody = parsedOutput.body;
|
|
414
522
|
return throwDefaultError({
|
|
@@ -445,6 +553,43 @@ const de_BadRequestExceptionRes = async (parsedOutput, context) => {
|
|
|
445
553
|
});
|
|
446
554
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
447
555
|
};
|
|
556
|
+
const de_DatabaseErrorExceptionRes = async (parsedOutput, context) => {
|
|
557
|
+
const contents = (0, smithy_client_1.map)({});
|
|
558
|
+
const data = parsedOutput.body;
|
|
559
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
560
|
+
message: smithy_client_1.expectString,
|
|
561
|
+
});
|
|
562
|
+
Object.assign(contents, doc);
|
|
563
|
+
const exception = new models_0_1.DatabaseErrorException({
|
|
564
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
565
|
+
...contents,
|
|
566
|
+
});
|
|
567
|
+
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
568
|
+
};
|
|
569
|
+
const de_DatabaseNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
570
|
+
const contents = (0, smithy_client_1.map)({});
|
|
571
|
+
const data = parsedOutput.body;
|
|
572
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
573
|
+
message: smithy_client_1.expectString,
|
|
574
|
+
});
|
|
575
|
+
Object.assign(contents, doc);
|
|
576
|
+
const exception = new models_0_1.DatabaseNotFoundException({
|
|
577
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
578
|
+
...contents,
|
|
579
|
+
});
|
|
580
|
+
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
581
|
+
};
|
|
582
|
+
const de_DatabaseUnavailableExceptionRes = async (parsedOutput, context) => {
|
|
583
|
+
const contents = (0, smithy_client_1.map)({});
|
|
584
|
+
const data = parsedOutput.body;
|
|
585
|
+
const doc = (0, smithy_client_1.take)(data, {});
|
|
586
|
+
Object.assign(contents, doc);
|
|
587
|
+
const exception = new models_0_1.DatabaseUnavailableException({
|
|
588
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
589
|
+
...contents,
|
|
590
|
+
});
|
|
591
|
+
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
592
|
+
};
|
|
448
593
|
const de_ForbiddenExceptionRes = async (parsedOutput, context) => {
|
|
449
594
|
const contents = (0, smithy_client_1.map)({});
|
|
450
595
|
const data = parsedOutput.body;
|
|
@@ -458,6 +603,19 @@ const de_ForbiddenExceptionRes = async (parsedOutput, context) => {
|
|
|
458
603
|
});
|
|
459
604
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
460
605
|
};
|
|
606
|
+
const de_HttpEndpointNotEnabledExceptionRes = async (parsedOutput, context) => {
|
|
607
|
+
const contents = (0, smithy_client_1.map)({});
|
|
608
|
+
const data = parsedOutput.body;
|
|
609
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
610
|
+
message: smithy_client_1.expectString,
|
|
611
|
+
});
|
|
612
|
+
Object.assign(contents, doc);
|
|
613
|
+
const exception = new models_0_1.HttpEndpointNotEnabledException({
|
|
614
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
615
|
+
...contents,
|
|
616
|
+
});
|
|
617
|
+
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
618
|
+
};
|
|
461
619
|
const de_InternalServerErrorExceptionRes = async (parsedOutput, context) => {
|
|
462
620
|
const contents = (0, smithy_client_1.map)({});
|
|
463
621
|
const data = parsedOutput.body;
|
|
@@ -469,6 +627,19 @@ const de_InternalServerErrorExceptionRes = async (parsedOutput, context) => {
|
|
|
469
627
|
});
|
|
470
628
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
471
629
|
};
|
|
630
|
+
const de_InvalidSecretExceptionRes = async (parsedOutput, context) => {
|
|
631
|
+
const contents = (0, smithy_client_1.map)({});
|
|
632
|
+
const data = parsedOutput.body;
|
|
633
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
634
|
+
message: smithy_client_1.expectString,
|
|
635
|
+
});
|
|
636
|
+
Object.assign(contents, doc);
|
|
637
|
+
const exception = new models_0_1.InvalidSecretException({
|
|
638
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
639
|
+
...contents,
|
|
640
|
+
});
|
|
641
|
+
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
642
|
+
};
|
|
472
643
|
const de_NotFoundExceptionRes = async (parsedOutput, context) => {
|
|
473
644
|
const contents = (0, smithy_client_1.map)({});
|
|
474
645
|
const data = parsedOutput.body;
|
|
@@ -482,6 +653,19 @@ const de_NotFoundExceptionRes = async (parsedOutput, context) => {
|
|
|
482
653
|
});
|
|
483
654
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
484
655
|
};
|
|
656
|
+
const de_SecretsErrorExceptionRes = async (parsedOutput, context) => {
|
|
657
|
+
const contents = (0, smithy_client_1.map)({});
|
|
658
|
+
const data = parsedOutput.body;
|
|
659
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
660
|
+
message: smithy_client_1.expectString,
|
|
661
|
+
});
|
|
662
|
+
Object.assign(contents, doc);
|
|
663
|
+
const exception = new models_0_1.SecretsErrorException({
|
|
664
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
665
|
+
...contents,
|
|
666
|
+
});
|
|
667
|
+
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
668
|
+
};
|
|
485
669
|
const de_ServiceUnavailableErrorRes = async (parsedOutput, context) => {
|
|
486
670
|
const contents = (0, smithy_client_1.map)({});
|
|
487
671
|
const data = parsedOutput.body;
|
|
@@ -507,6 +691,32 @@ const de_StatementTimeoutExceptionRes = async (parsedOutput, context) => {
|
|
|
507
691
|
});
|
|
508
692
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
509
693
|
};
|
|
694
|
+
const de_TransactionNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
695
|
+
const contents = (0, smithy_client_1.map)({});
|
|
696
|
+
const data = parsedOutput.body;
|
|
697
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
698
|
+
message: smithy_client_1.expectString,
|
|
699
|
+
});
|
|
700
|
+
Object.assign(contents, doc);
|
|
701
|
+
const exception = new models_0_1.TransactionNotFoundException({
|
|
702
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
703
|
+
...contents,
|
|
704
|
+
});
|
|
705
|
+
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
706
|
+
};
|
|
707
|
+
const de_UnsupportedResultExceptionRes = async (parsedOutput, context) => {
|
|
708
|
+
const contents = (0, smithy_client_1.map)({});
|
|
709
|
+
const data = parsedOutput.body;
|
|
710
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
711
|
+
message: smithy_client_1.expectString,
|
|
712
|
+
});
|
|
713
|
+
Object.assign(contents, doc);
|
|
714
|
+
const exception = new models_0_1.UnsupportedResultException({
|
|
715
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
716
|
+
...contents,
|
|
717
|
+
});
|
|
718
|
+
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
719
|
+
};
|
|
510
720
|
const se_ArrayOfArray = (input, context) => {
|
|
511
721
|
return input
|
|
512
722
|
.filter((e) => e != null)
|
|
@@ -31,6 +31,42 @@ export const TypeHint = {
|
|
|
31
31
|
TIMESTAMP: "TIMESTAMP",
|
|
32
32
|
UUID: "UUID",
|
|
33
33
|
};
|
|
34
|
+
export class DatabaseErrorException extends __BaseException {
|
|
35
|
+
constructor(opts) {
|
|
36
|
+
super({
|
|
37
|
+
name: "DatabaseErrorException",
|
|
38
|
+
$fault: "client",
|
|
39
|
+
...opts,
|
|
40
|
+
});
|
|
41
|
+
this.name = "DatabaseErrorException";
|
|
42
|
+
this.$fault = "client";
|
|
43
|
+
Object.setPrototypeOf(this, DatabaseErrorException.prototype);
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
export class DatabaseNotFoundException extends __BaseException {
|
|
47
|
+
constructor(opts) {
|
|
48
|
+
super({
|
|
49
|
+
name: "DatabaseNotFoundException",
|
|
50
|
+
$fault: "client",
|
|
51
|
+
...opts,
|
|
52
|
+
});
|
|
53
|
+
this.name = "DatabaseNotFoundException";
|
|
54
|
+
this.$fault = "client";
|
|
55
|
+
Object.setPrototypeOf(this, DatabaseNotFoundException.prototype);
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
export class DatabaseUnavailableException extends __BaseException {
|
|
59
|
+
constructor(opts) {
|
|
60
|
+
super({
|
|
61
|
+
name: "DatabaseUnavailableException",
|
|
62
|
+
$fault: "server",
|
|
63
|
+
...opts,
|
|
64
|
+
});
|
|
65
|
+
this.name = "DatabaseUnavailableException";
|
|
66
|
+
this.$fault = "server";
|
|
67
|
+
Object.setPrototypeOf(this, DatabaseUnavailableException.prototype);
|
|
68
|
+
}
|
|
69
|
+
}
|
|
34
70
|
export class ForbiddenException extends __BaseException {
|
|
35
71
|
constructor(opts) {
|
|
36
72
|
super({
|
|
@@ -43,6 +79,18 @@ export class ForbiddenException extends __BaseException {
|
|
|
43
79
|
Object.setPrototypeOf(this, ForbiddenException.prototype);
|
|
44
80
|
}
|
|
45
81
|
}
|
|
82
|
+
export class HttpEndpointNotEnabledException extends __BaseException {
|
|
83
|
+
constructor(opts) {
|
|
84
|
+
super({
|
|
85
|
+
name: "HttpEndpointNotEnabledException",
|
|
86
|
+
$fault: "client",
|
|
87
|
+
...opts,
|
|
88
|
+
});
|
|
89
|
+
this.name = "HttpEndpointNotEnabledException";
|
|
90
|
+
this.$fault = "client";
|
|
91
|
+
Object.setPrototypeOf(this, HttpEndpointNotEnabledException.prototype);
|
|
92
|
+
}
|
|
93
|
+
}
|
|
46
94
|
export class InternalServerErrorException extends __BaseException {
|
|
47
95
|
constructor(opts) {
|
|
48
96
|
super({
|
|
@@ -55,6 +103,30 @@ export class InternalServerErrorException extends __BaseException {
|
|
|
55
103
|
Object.setPrototypeOf(this, InternalServerErrorException.prototype);
|
|
56
104
|
}
|
|
57
105
|
}
|
|
106
|
+
export class InvalidSecretException extends __BaseException {
|
|
107
|
+
constructor(opts) {
|
|
108
|
+
super({
|
|
109
|
+
name: "InvalidSecretException",
|
|
110
|
+
$fault: "client",
|
|
111
|
+
...opts,
|
|
112
|
+
});
|
|
113
|
+
this.name = "InvalidSecretException";
|
|
114
|
+
this.$fault = "client";
|
|
115
|
+
Object.setPrototypeOf(this, InvalidSecretException.prototype);
|
|
116
|
+
}
|
|
117
|
+
}
|
|
118
|
+
export class SecretsErrorException extends __BaseException {
|
|
119
|
+
constructor(opts) {
|
|
120
|
+
super({
|
|
121
|
+
name: "SecretsErrorException",
|
|
122
|
+
$fault: "client",
|
|
123
|
+
...opts,
|
|
124
|
+
});
|
|
125
|
+
this.name = "SecretsErrorException";
|
|
126
|
+
this.$fault = "client";
|
|
127
|
+
Object.setPrototypeOf(this, SecretsErrorException.prototype);
|
|
128
|
+
}
|
|
129
|
+
}
|
|
58
130
|
export class ServiceUnavailableError extends __BaseException {
|
|
59
131
|
constructor(opts) {
|
|
60
132
|
super({
|
|
@@ -80,6 +152,18 @@ export class StatementTimeoutException extends __BaseException {
|
|
|
80
152
|
this.dbConnectionId = opts.dbConnectionId;
|
|
81
153
|
}
|
|
82
154
|
}
|
|
155
|
+
export class TransactionNotFoundException extends __BaseException {
|
|
156
|
+
constructor(opts) {
|
|
157
|
+
super({
|
|
158
|
+
name: "TransactionNotFoundException",
|
|
159
|
+
$fault: "client",
|
|
160
|
+
...opts,
|
|
161
|
+
});
|
|
162
|
+
this.name = "TransactionNotFoundException";
|
|
163
|
+
this.$fault = "client";
|
|
164
|
+
Object.setPrototypeOf(this, TransactionNotFoundException.prototype);
|
|
165
|
+
}
|
|
166
|
+
}
|
|
83
167
|
export class NotFoundException extends __BaseException {
|
|
84
168
|
constructor(opts) {
|
|
85
169
|
super({
|
|
@@ -104,6 +188,18 @@ export const LongReturnType = {
|
|
|
104
188
|
LONG: "LONG",
|
|
105
189
|
STRING: "STRING",
|
|
106
190
|
};
|
|
191
|
+
export class UnsupportedResultException extends __BaseException {
|
|
192
|
+
constructor(opts) {
|
|
193
|
+
super({
|
|
194
|
+
name: "UnsupportedResultException",
|
|
195
|
+
$fault: "client",
|
|
196
|
+
...opts,
|
|
197
|
+
});
|
|
198
|
+
this.name = "UnsupportedResultException";
|
|
199
|
+
this.$fault = "client";
|
|
200
|
+
Object.setPrototypeOf(this, UnsupportedResultException.prototype);
|
|
201
|
+
}
|
|
202
|
+
}
|
|
107
203
|
export var ArrayValue;
|
|
108
204
|
(function (ArrayValue) {
|
|
109
205
|
ArrayValue.visit = (value, visitor) => {
|