@aws-sdk/client-rds-data 3.478.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 +1 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { awsExpectUnion as __expectUnion } from "@aws-sdk/core";
|
|
2
2
|
import { requestBuilder as rb } from "@smithy/core";
|
|
3
3
|
import { _json, collectBody, decorateServiceException as __decorateServiceException, expectBoolean as __expectBoolean, expectInt32 as __expectInt32, expectLong as __expectLong, expectNonNull as __expectNonNull, expectObject as __expectObject, expectString as __expectString, limitedParseDouble as __limitedParseDouble, limitedParseFloat32 as __limitedParseFloat32, map, serializeFloat as __serializeFloat, take, withBaseException, } from "@smithy/smithy-client";
|
|
4
|
-
import { AccessDeniedException, ArrayValue, BadRequestException, Field, ForbiddenException, InternalServerErrorException, NotFoundException, ServiceUnavailableError, StatementTimeoutException, } from "../models/models_0";
|
|
4
|
+
import { AccessDeniedException, ArrayValue, BadRequestException, DatabaseErrorException, DatabaseNotFoundException, DatabaseUnavailableException, Field, ForbiddenException, HttpEndpointNotEnabledException, InternalServerErrorException, InvalidSecretException, NotFoundException, SecretsErrorException, ServiceUnavailableError, StatementTimeoutException, TransactionNotFoundException, UnsupportedResultException, } from "../models/models_0";
|
|
5
5
|
import { RDSDataServiceException as __BaseException } from "../models/RDSDataServiceException";
|
|
6
6
|
export const se_BatchExecuteStatementCommand = async (input, context) => {
|
|
7
7
|
const b = rb(input, context);
|
|
@@ -135,18 +135,39 @@ const de_BatchExecuteStatementCommandError = async (output, context) => {
|
|
|
135
135
|
case "BadRequestException":
|
|
136
136
|
case "com.amazonaws.rdsdata#BadRequestException":
|
|
137
137
|
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
138
|
+
case "DatabaseErrorException":
|
|
139
|
+
case "com.amazonaws.rdsdata#DatabaseErrorException":
|
|
140
|
+
throw await de_DatabaseErrorExceptionRes(parsedOutput, context);
|
|
141
|
+
case "DatabaseNotFoundException":
|
|
142
|
+
case "com.amazonaws.rdsdata#DatabaseNotFoundException":
|
|
143
|
+
throw await de_DatabaseNotFoundExceptionRes(parsedOutput, context);
|
|
144
|
+
case "DatabaseUnavailableException":
|
|
145
|
+
case "com.amazonaws.rdsdata#DatabaseUnavailableException":
|
|
146
|
+
throw await de_DatabaseUnavailableExceptionRes(parsedOutput, context);
|
|
138
147
|
case "ForbiddenException":
|
|
139
148
|
case "com.amazonaws.rdsdata#ForbiddenException":
|
|
140
149
|
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
150
|
+
case "HttpEndpointNotEnabledException":
|
|
151
|
+
case "com.amazonaws.rdsdata#HttpEndpointNotEnabledException":
|
|
152
|
+
throw await de_HttpEndpointNotEnabledExceptionRes(parsedOutput, context);
|
|
141
153
|
case "InternalServerErrorException":
|
|
142
154
|
case "com.amazonaws.rdsdata#InternalServerErrorException":
|
|
143
155
|
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
156
|
+
case "InvalidSecretException":
|
|
157
|
+
case "com.amazonaws.rdsdata#InvalidSecretException":
|
|
158
|
+
throw await de_InvalidSecretExceptionRes(parsedOutput, context);
|
|
159
|
+
case "SecretsErrorException":
|
|
160
|
+
case "com.amazonaws.rdsdata#SecretsErrorException":
|
|
161
|
+
throw await de_SecretsErrorExceptionRes(parsedOutput, context);
|
|
144
162
|
case "ServiceUnavailableError":
|
|
145
163
|
case "com.amazonaws.rdsdata#ServiceUnavailableError":
|
|
146
164
|
throw await de_ServiceUnavailableErrorRes(parsedOutput, context);
|
|
147
165
|
case "StatementTimeoutException":
|
|
148
166
|
case "com.amazonaws.rdsdata#StatementTimeoutException":
|
|
149
167
|
throw await de_StatementTimeoutExceptionRes(parsedOutput, context);
|
|
168
|
+
case "TransactionNotFoundException":
|
|
169
|
+
case "com.amazonaws.rdsdata#TransactionNotFoundException":
|
|
170
|
+
throw await de_TransactionNotFoundExceptionRes(parsedOutput, context);
|
|
150
171
|
default:
|
|
151
172
|
const parsedBody = parsedOutput.body;
|
|
152
173
|
return throwDefaultError({
|
|
@@ -183,18 +204,39 @@ const de_BeginTransactionCommandError = async (output, context) => {
|
|
|
183
204
|
case "BadRequestException":
|
|
184
205
|
case "com.amazonaws.rdsdata#BadRequestException":
|
|
185
206
|
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
207
|
+
case "DatabaseErrorException":
|
|
208
|
+
case "com.amazonaws.rdsdata#DatabaseErrorException":
|
|
209
|
+
throw await de_DatabaseErrorExceptionRes(parsedOutput, context);
|
|
210
|
+
case "DatabaseNotFoundException":
|
|
211
|
+
case "com.amazonaws.rdsdata#DatabaseNotFoundException":
|
|
212
|
+
throw await de_DatabaseNotFoundExceptionRes(parsedOutput, context);
|
|
213
|
+
case "DatabaseUnavailableException":
|
|
214
|
+
case "com.amazonaws.rdsdata#DatabaseUnavailableException":
|
|
215
|
+
throw await de_DatabaseUnavailableExceptionRes(parsedOutput, context);
|
|
186
216
|
case "ForbiddenException":
|
|
187
217
|
case "com.amazonaws.rdsdata#ForbiddenException":
|
|
188
218
|
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
219
|
+
case "HttpEndpointNotEnabledException":
|
|
220
|
+
case "com.amazonaws.rdsdata#HttpEndpointNotEnabledException":
|
|
221
|
+
throw await de_HttpEndpointNotEnabledExceptionRes(parsedOutput, context);
|
|
189
222
|
case "InternalServerErrorException":
|
|
190
223
|
case "com.amazonaws.rdsdata#InternalServerErrorException":
|
|
191
224
|
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
225
|
+
case "InvalidSecretException":
|
|
226
|
+
case "com.amazonaws.rdsdata#InvalidSecretException":
|
|
227
|
+
throw await de_InvalidSecretExceptionRes(parsedOutput, context);
|
|
228
|
+
case "SecretsErrorException":
|
|
229
|
+
case "com.amazonaws.rdsdata#SecretsErrorException":
|
|
230
|
+
throw await de_SecretsErrorExceptionRes(parsedOutput, context);
|
|
192
231
|
case "ServiceUnavailableError":
|
|
193
232
|
case "com.amazonaws.rdsdata#ServiceUnavailableError":
|
|
194
233
|
throw await de_ServiceUnavailableErrorRes(parsedOutput, context);
|
|
195
234
|
case "StatementTimeoutException":
|
|
196
235
|
case "com.amazonaws.rdsdata#StatementTimeoutException":
|
|
197
236
|
throw await de_StatementTimeoutExceptionRes(parsedOutput, context);
|
|
237
|
+
case "TransactionNotFoundException":
|
|
238
|
+
case "com.amazonaws.rdsdata#TransactionNotFoundException":
|
|
239
|
+
throw await de_TransactionNotFoundExceptionRes(parsedOutput, context);
|
|
198
240
|
default:
|
|
199
241
|
const parsedBody = parsedOutput.body;
|
|
200
242
|
return throwDefaultError({
|
|
@@ -231,21 +273,42 @@ const de_CommitTransactionCommandError = async (output, context) => {
|
|
|
231
273
|
case "BadRequestException":
|
|
232
274
|
case "com.amazonaws.rdsdata#BadRequestException":
|
|
233
275
|
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
276
|
+
case "DatabaseErrorException":
|
|
277
|
+
case "com.amazonaws.rdsdata#DatabaseErrorException":
|
|
278
|
+
throw await de_DatabaseErrorExceptionRes(parsedOutput, context);
|
|
279
|
+
case "DatabaseNotFoundException":
|
|
280
|
+
case "com.amazonaws.rdsdata#DatabaseNotFoundException":
|
|
281
|
+
throw await de_DatabaseNotFoundExceptionRes(parsedOutput, context);
|
|
282
|
+
case "DatabaseUnavailableException":
|
|
283
|
+
case "com.amazonaws.rdsdata#DatabaseUnavailableException":
|
|
284
|
+
throw await de_DatabaseUnavailableExceptionRes(parsedOutput, context);
|
|
234
285
|
case "ForbiddenException":
|
|
235
286
|
case "com.amazonaws.rdsdata#ForbiddenException":
|
|
236
287
|
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
288
|
+
case "HttpEndpointNotEnabledException":
|
|
289
|
+
case "com.amazonaws.rdsdata#HttpEndpointNotEnabledException":
|
|
290
|
+
throw await de_HttpEndpointNotEnabledExceptionRes(parsedOutput, context);
|
|
237
291
|
case "InternalServerErrorException":
|
|
238
292
|
case "com.amazonaws.rdsdata#InternalServerErrorException":
|
|
239
293
|
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
294
|
+
case "InvalidSecretException":
|
|
295
|
+
case "com.amazonaws.rdsdata#InvalidSecretException":
|
|
296
|
+
throw await de_InvalidSecretExceptionRes(parsedOutput, context);
|
|
240
297
|
case "NotFoundException":
|
|
241
298
|
case "com.amazonaws.rdsdata#NotFoundException":
|
|
242
299
|
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
300
|
+
case "SecretsErrorException":
|
|
301
|
+
case "com.amazonaws.rdsdata#SecretsErrorException":
|
|
302
|
+
throw await de_SecretsErrorExceptionRes(parsedOutput, context);
|
|
243
303
|
case "ServiceUnavailableError":
|
|
244
304
|
case "com.amazonaws.rdsdata#ServiceUnavailableError":
|
|
245
305
|
throw await de_ServiceUnavailableErrorRes(parsedOutput, context);
|
|
246
306
|
case "StatementTimeoutException":
|
|
247
307
|
case "com.amazonaws.rdsdata#StatementTimeoutException":
|
|
248
308
|
throw await de_StatementTimeoutExceptionRes(parsedOutput, context);
|
|
309
|
+
case "TransactionNotFoundException":
|
|
310
|
+
case "com.amazonaws.rdsdata#TransactionNotFoundException":
|
|
311
|
+
throw await de_TransactionNotFoundExceptionRes(parsedOutput, context);
|
|
249
312
|
default:
|
|
250
313
|
const parsedBody = parsedOutput.body;
|
|
251
314
|
return throwDefaultError({
|
|
@@ -331,18 +394,42 @@ const de_ExecuteStatementCommandError = async (output, context) => {
|
|
|
331
394
|
case "BadRequestException":
|
|
332
395
|
case "com.amazonaws.rdsdata#BadRequestException":
|
|
333
396
|
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
397
|
+
case "DatabaseErrorException":
|
|
398
|
+
case "com.amazonaws.rdsdata#DatabaseErrorException":
|
|
399
|
+
throw await de_DatabaseErrorExceptionRes(parsedOutput, context);
|
|
400
|
+
case "DatabaseNotFoundException":
|
|
401
|
+
case "com.amazonaws.rdsdata#DatabaseNotFoundException":
|
|
402
|
+
throw await de_DatabaseNotFoundExceptionRes(parsedOutput, context);
|
|
403
|
+
case "DatabaseUnavailableException":
|
|
404
|
+
case "com.amazonaws.rdsdata#DatabaseUnavailableException":
|
|
405
|
+
throw await de_DatabaseUnavailableExceptionRes(parsedOutput, context);
|
|
334
406
|
case "ForbiddenException":
|
|
335
407
|
case "com.amazonaws.rdsdata#ForbiddenException":
|
|
336
408
|
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
409
|
+
case "HttpEndpointNotEnabledException":
|
|
410
|
+
case "com.amazonaws.rdsdata#HttpEndpointNotEnabledException":
|
|
411
|
+
throw await de_HttpEndpointNotEnabledExceptionRes(parsedOutput, context);
|
|
337
412
|
case "InternalServerErrorException":
|
|
338
413
|
case "com.amazonaws.rdsdata#InternalServerErrorException":
|
|
339
414
|
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
415
|
+
case "InvalidSecretException":
|
|
416
|
+
case "com.amazonaws.rdsdata#InvalidSecretException":
|
|
417
|
+
throw await de_InvalidSecretExceptionRes(parsedOutput, context);
|
|
418
|
+
case "SecretsErrorException":
|
|
419
|
+
case "com.amazonaws.rdsdata#SecretsErrorException":
|
|
420
|
+
throw await de_SecretsErrorExceptionRes(parsedOutput, context);
|
|
340
421
|
case "ServiceUnavailableError":
|
|
341
422
|
case "com.amazonaws.rdsdata#ServiceUnavailableError":
|
|
342
423
|
throw await de_ServiceUnavailableErrorRes(parsedOutput, context);
|
|
343
424
|
case "StatementTimeoutException":
|
|
344
425
|
case "com.amazonaws.rdsdata#StatementTimeoutException":
|
|
345
426
|
throw await de_StatementTimeoutExceptionRes(parsedOutput, context);
|
|
427
|
+
case "TransactionNotFoundException":
|
|
428
|
+
case "com.amazonaws.rdsdata#TransactionNotFoundException":
|
|
429
|
+
throw await de_TransactionNotFoundExceptionRes(parsedOutput, context);
|
|
430
|
+
case "UnsupportedResultException":
|
|
431
|
+
case "com.amazonaws.rdsdata#UnsupportedResultException":
|
|
432
|
+
throw await de_UnsupportedResultExceptionRes(parsedOutput, context);
|
|
346
433
|
default:
|
|
347
434
|
const parsedBody = parsedOutput.body;
|
|
348
435
|
return throwDefaultError({
|
|
@@ -379,21 +466,42 @@ const de_RollbackTransactionCommandError = async (output, context) => {
|
|
|
379
466
|
case "BadRequestException":
|
|
380
467
|
case "com.amazonaws.rdsdata#BadRequestException":
|
|
381
468
|
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
469
|
+
case "DatabaseErrorException":
|
|
470
|
+
case "com.amazonaws.rdsdata#DatabaseErrorException":
|
|
471
|
+
throw await de_DatabaseErrorExceptionRes(parsedOutput, context);
|
|
472
|
+
case "DatabaseNotFoundException":
|
|
473
|
+
case "com.amazonaws.rdsdata#DatabaseNotFoundException":
|
|
474
|
+
throw await de_DatabaseNotFoundExceptionRes(parsedOutput, context);
|
|
475
|
+
case "DatabaseUnavailableException":
|
|
476
|
+
case "com.amazonaws.rdsdata#DatabaseUnavailableException":
|
|
477
|
+
throw await de_DatabaseUnavailableExceptionRes(parsedOutput, context);
|
|
382
478
|
case "ForbiddenException":
|
|
383
479
|
case "com.amazonaws.rdsdata#ForbiddenException":
|
|
384
480
|
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
481
|
+
case "HttpEndpointNotEnabledException":
|
|
482
|
+
case "com.amazonaws.rdsdata#HttpEndpointNotEnabledException":
|
|
483
|
+
throw await de_HttpEndpointNotEnabledExceptionRes(parsedOutput, context);
|
|
385
484
|
case "InternalServerErrorException":
|
|
386
485
|
case "com.amazonaws.rdsdata#InternalServerErrorException":
|
|
387
486
|
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
487
|
+
case "InvalidSecretException":
|
|
488
|
+
case "com.amazonaws.rdsdata#InvalidSecretException":
|
|
489
|
+
throw await de_InvalidSecretExceptionRes(parsedOutput, context);
|
|
388
490
|
case "NotFoundException":
|
|
389
491
|
case "com.amazonaws.rdsdata#NotFoundException":
|
|
390
492
|
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
493
|
+
case "SecretsErrorException":
|
|
494
|
+
case "com.amazonaws.rdsdata#SecretsErrorException":
|
|
495
|
+
throw await de_SecretsErrorExceptionRes(parsedOutput, context);
|
|
391
496
|
case "ServiceUnavailableError":
|
|
392
497
|
case "com.amazonaws.rdsdata#ServiceUnavailableError":
|
|
393
498
|
throw await de_ServiceUnavailableErrorRes(parsedOutput, context);
|
|
394
499
|
case "StatementTimeoutException":
|
|
395
500
|
case "com.amazonaws.rdsdata#StatementTimeoutException":
|
|
396
501
|
throw await de_StatementTimeoutExceptionRes(parsedOutput, context);
|
|
502
|
+
case "TransactionNotFoundException":
|
|
503
|
+
case "com.amazonaws.rdsdata#TransactionNotFoundException":
|
|
504
|
+
throw await de_TransactionNotFoundExceptionRes(parsedOutput, context);
|
|
397
505
|
default:
|
|
398
506
|
const parsedBody = parsedOutput.body;
|
|
399
507
|
return throwDefaultError({
|
|
@@ -430,6 +538,43 @@ const de_BadRequestExceptionRes = async (parsedOutput, context) => {
|
|
|
430
538
|
});
|
|
431
539
|
return __decorateServiceException(exception, parsedOutput.body);
|
|
432
540
|
};
|
|
541
|
+
const de_DatabaseErrorExceptionRes = async (parsedOutput, context) => {
|
|
542
|
+
const contents = map({});
|
|
543
|
+
const data = parsedOutput.body;
|
|
544
|
+
const doc = take(data, {
|
|
545
|
+
message: __expectString,
|
|
546
|
+
});
|
|
547
|
+
Object.assign(contents, doc);
|
|
548
|
+
const exception = new DatabaseErrorException({
|
|
549
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
550
|
+
...contents,
|
|
551
|
+
});
|
|
552
|
+
return __decorateServiceException(exception, parsedOutput.body);
|
|
553
|
+
};
|
|
554
|
+
const de_DatabaseNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
555
|
+
const contents = map({});
|
|
556
|
+
const data = parsedOutput.body;
|
|
557
|
+
const doc = take(data, {
|
|
558
|
+
message: __expectString,
|
|
559
|
+
});
|
|
560
|
+
Object.assign(contents, doc);
|
|
561
|
+
const exception = new DatabaseNotFoundException({
|
|
562
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
563
|
+
...contents,
|
|
564
|
+
});
|
|
565
|
+
return __decorateServiceException(exception, parsedOutput.body);
|
|
566
|
+
};
|
|
567
|
+
const de_DatabaseUnavailableExceptionRes = async (parsedOutput, context) => {
|
|
568
|
+
const contents = map({});
|
|
569
|
+
const data = parsedOutput.body;
|
|
570
|
+
const doc = take(data, {});
|
|
571
|
+
Object.assign(contents, doc);
|
|
572
|
+
const exception = new DatabaseUnavailableException({
|
|
573
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
574
|
+
...contents,
|
|
575
|
+
});
|
|
576
|
+
return __decorateServiceException(exception, parsedOutput.body);
|
|
577
|
+
};
|
|
433
578
|
const de_ForbiddenExceptionRes = async (parsedOutput, context) => {
|
|
434
579
|
const contents = map({});
|
|
435
580
|
const data = parsedOutput.body;
|
|
@@ -443,6 +588,19 @@ const de_ForbiddenExceptionRes = async (parsedOutput, context) => {
|
|
|
443
588
|
});
|
|
444
589
|
return __decorateServiceException(exception, parsedOutput.body);
|
|
445
590
|
};
|
|
591
|
+
const de_HttpEndpointNotEnabledExceptionRes = async (parsedOutput, context) => {
|
|
592
|
+
const contents = map({});
|
|
593
|
+
const data = parsedOutput.body;
|
|
594
|
+
const doc = take(data, {
|
|
595
|
+
message: __expectString,
|
|
596
|
+
});
|
|
597
|
+
Object.assign(contents, doc);
|
|
598
|
+
const exception = new HttpEndpointNotEnabledException({
|
|
599
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
600
|
+
...contents,
|
|
601
|
+
});
|
|
602
|
+
return __decorateServiceException(exception, parsedOutput.body);
|
|
603
|
+
};
|
|
446
604
|
const de_InternalServerErrorExceptionRes = async (parsedOutput, context) => {
|
|
447
605
|
const contents = map({});
|
|
448
606
|
const data = parsedOutput.body;
|
|
@@ -454,6 +612,19 @@ const de_InternalServerErrorExceptionRes = async (parsedOutput, context) => {
|
|
|
454
612
|
});
|
|
455
613
|
return __decorateServiceException(exception, parsedOutput.body);
|
|
456
614
|
};
|
|
615
|
+
const de_InvalidSecretExceptionRes = async (parsedOutput, context) => {
|
|
616
|
+
const contents = map({});
|
|
617
|
+
const data = parsedOutput.body;
|
|
618
|
+
const doc = take(data, {
|
|
619
|
+
message: __expectString,
|
|
620
|
+
});
|
|
621
|
+
Object.assign(contents, doc);
|
|
622
|
+
const exception = new InvalidSecretException({
|
|
623
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
624
|
+
...contents,
|
|
625
|
+
});
|
|
626
|
+
return __decorateServiceException(exception, parsedOutput.body);
|
|
627
|
+
};
|
|
457
628
|
const de_NotFoundExceptionRes = async (parsedOutput, context) => {
|
|
458
629
|
const contents = map({});
|
|
459
630
|
const data = parsedOutput.body;
|
|
@@ -467,6 +638,19 @@ const de_NotFoundExceptionRes = async (parsedOutput, context) => {
|
|
|
467
638
|
});
|
|
468
639
|
return __decorateServiceException(exception, parsedOutput.body);
|
|
469
640
|
};
|
|
641
|
+
const de_SecretsErrorExceptionRes = async (parsedOutput, context) => {
|
|
642
|
+
const contents = map({});
|
|
643
|
+
const data = parsedOutput.body;
|
|
644
|
+
const doc = take(data, {
|
|
645
|
+
message: __expectString,
|
|
646
|
+
});
|
|
647
|
+
Object.assign(contents, doc);
|
|
648
|
+
const exception = new SecretsErrorException({
|
|
649
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
650
|
+
...contents,
|
|
651
|
+
});
|
|
652
|
+
return __decorateServiceException(exception, parsedOutput.body);
|
|
653
|
+
};
|
|
470
654
|
const de_ServiceUnavailableErrorRes = async (parsedOutput, context) => {
|
|
471
655
|
const contents = map({});
|
|
472
656
|
const data = parsedOutput.body;
|
|
@@ -492,6 +676,32 @@ const de_StatementTimeoutExceptionRes = async (parsedOutput, context) => {
|
|
|
492
676
|
});
|
|
493
677
|
return __decorateServiceException(exception, parsedOutput.body);
|
|
494
678
|
};
|
|
679
|
+
const de_TransactionNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
680
|
+
const contents = map({});
|
|
681
|
+
const data = parsedOutput.body;
|
|
682
|
+
const doc = take(data, {
|
|
683
|
+
message: __expectString,
|
|
684
|
+
});
|
|
685
|
+
Object.assign(contents, doc);
|
|
686
|
+
const exception = new TransactionNotFoundException({
|
|
687
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
688
|
+
...contents,
|
|
689
|
+
});
|
|
690
|
+
return __decorateServiceException(exception, parsedOutput.body);
|
|
691
|
+
};
|
|
692
|
+
const de_UnsupportedResultExceptionRes = async (parsedOutput, context) => {
|
|
693
|
+
const contents = map({});
|
|
694
|
+
const data = parsedOutput.body;
|
|
695
|
+
const doc = take(data, {
|
|
696
|
+
message: __expectString,
|
|
697
|
+
});
|
|
698
|
+
Object.assign(contents, doc);
|
|
699
|
+
const exception = new UnsupportedResultException({
|
|
700
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
701
|
+
...contents,
|
|
702
|
+
});
|
|
703
|
+
return __decorateServiceException(exception, parsedOutput.body);
|
|
704
|
+
};
|
|
495
705
|
const se_ArrayOfArray = (input, context) => {
|
|
496
706
|
return input
|
|
497
707
|
.filter((e) => e != null)
|
package/dist-types/RDSData.d.ts
CHANGED
|
@@ -46,14 +46,20 @@ export interface RDSData {
|
|
|
46
46
|
}
|
|
47
47
|
/**
|
|
48
48
|
* @public
|
|
49
|
-
* <fullname>
|
|
50
|
-
*
|
|
51
|
-
* statements, you
|
|
52
|
-
*
|
|
53
|
-
*
|
|
54
|
-
*
|
|
55
|
-
*
|
|
56
|
-
*
|
|
49
|
+
* <fullname>RDS Data API</fullname>
|
|
50
|
+
* <p>Amazon RDS provides an HTTP endpoint to run SQL statements on an Amazon Aurora DB cluster. To run these
|
|
51
|
+
* statements, you use the RDS Data API (Data API).</p>
|
|
52
|
+
* <p>Data API is available with the following types of Aurora databases:</p>
|
|
53
|
+
* <ul>
|
|
54
|
+
* <li>
|
|
55
|
+
* <p>Aurora PostgreSQL - Serverless v2, Serverless v1, and provisioned</p>
|
|
56
|
+
* </li>
|
|
57
|
+
* <li>
|
|
58
|
+
* <p>Aurora MySQL - Serverless v1 only</p>
|
|
59
|
+
* </li>
|
|
60
|
+
* </ul>
|
|
61
|
+
* <p>For more information about the Data API, see
|
|
62
|
+
* <a href="https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/data-api.html">Using RDS Data API</a>
|
|
57
63
|
* in the <i>Amazon Aurora User Guide</i>.</p>
|
|
58
64
|
*/
|
|
59
65
|
export declare class RDSData extends RDSDataClient implements RDSData {
|
|
@@ -158,14 +158,20 @@ export interface RDSDataClientResolvedConfig extends RDSDataClientResolvedConfig
|
|
|
158
158
|
}
|
|
159
159
|
/**
|
|
160
160
|
* @public
|
|
161
|
-
* <fullname>
|
|
162
|
-
*
|
|
163
|
-
* statements, you
|
|
164
|
-
*
|
|
165
|
-
*
|
|
166
|
-
*
|
|
167
|
-
*
|
|
168
|
-
*
|
|
161
|
+
* <fullname>RDS Data API</fullname>
|
|
162
|
+
* <p>Amazon RDS provides an HTTP endpoint to run SQL statements on an Amazon Aurora DB cluster. To run these
|
|
163
|
+
* statements, you use the RDS Data API (Data API).</p>
|
|
164
|
+
* <p>Data API is available with the following types of Aurora databases:</p>
|
|
165
|
+
* <ul>
|
|
166
|
+
* <li>
|
|
167
|
+
* <p>Aurora PostgreSQL - Serverless v2, Serverless v1, and provisioned</p>
|
|
168
|
+
* </li>
|
|
169
|
+
* <li>
|
|
170
|
+
* <p>Aurora MySQL - Serverless v1 only</p>
|
|
171
|
+
* </li>
|
|
172
|
+
* </ul>
|
|
173
|
+
* <p>For more information about the Data API, see
|
|
174
|
+
* <a href="https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/data-api.html">Using RDS Data API</a>
|
|
169
175
|
* in the <i>Amazon Aurora User Guide</i>.</p>
|
|
170
176
|
*/
|
|
171
177
|
export declare class RDSDataClient extends __Client<__HttpHandlerOptions, ServiceInputTypes, ServiceOutputTypes, RDSDataClientResolvedConfig> {
|
|
@@ -24,10 +24,10 @@ export interface BatchExecuteStatementCommandOutput extends BatchExecuteStatemen
|
|
|
24
24
|
/**
|
|
25
25
|
* @public
|
|
26
26
|
* <p>Runs a batch SQL statement over an array of data.</p>
|
|
27
|
-
*
|
|
27
|
+
* <p>You can run bulk update and insert operations for multiple records using a DML
|
|
28
28
|
* statement with different parameter sets. Bulk operations can provide a significant
|
|
29
29
|
* performance improvement over individual insert and update operations.</p>
|
|
30
|
-
*
|
|
30
|
+
* <note>
|
|
31
31
|
* <p>If a call isn't part of a transaction because it doesn't include the <code>transactionID</code> parameter,
|
|
32
32
|
* changes that result from the call are committed automatically.</p>
|
|
33
33
|
* <p>There isn't a fixed upper limit on the number of parameter sets. However, the maximum size of the HTTP request
|
|
@@ -36,7 +36,7 @@ export interface BatchExecuteStatementCommandOutput extends BatchExecuteStatemen
|
|
|
36
36
|
* number of parameter sets that you can include depends on a combination of factors, such as the size of the SQL statement and
|
|
37
37
|
* the size of each parameter set.</p>
|
|
38
38
|
* <p>The response size limit is 1 MiB. If the call returns more than 1 MiB of response data, the call is terminated.</p>
|
|
39
|
-
*
|
|
39
|
+
* </note>
|
|
40
40
|
* @example
|
|
41
41
|
* Use a bare-bones client and the command you need to make an API call.
|
|
42
42
|
* ```javascript
|
|
@@ -161,24 +161,56 @@ export interface BatchExecuteStatementCommandOutput extends BatchExecuteStatemen
|
|
|
161
161
|
* @see {@link RDSDataClientResolvedConfig | config} for RDSDataClient's `config` shape.
|
|
162
162
|
*
|
|
163
163
|
* @throws {@link AccessDeniedException} (client fault)
|
|
164
|
-
* <p>You
|
|
164
|
+
* <p>You don't have sufficient access to perform this action.</p>
|
|
165
165
|
*
|
|
166
166
|
* @throws {@link BadRequestException} (client fault)
|
|
167
|
-
* <p>There is an error in the call or in a SQL statement
|
|
167
|
+
* <p>There is an error in the call or in a SQL statement. (This error only appears in calls from Aurora Serverless v1 databases.)</p>
|
|
168
|
+
*
|
|
169
|
+
* @throws {@link DatabaseErrorException} (client fault)
|
|
170
|
+
* <p>There was an error in processing the SQL statement.</p>
|
|
171
|
+
*
|
|
172
|
+
* @throws {@link DatabaseNotFoundException} (client fault)
|
|
173
|
+
* <p>The DB cluster doesn't have a DB instance.</p>
|
|
174
|
+
*
|
|
175
|
+
* @throws {@link DatabaseUnavailableException} (server fault)
|
|
176
|
+
* <p>The writer instance in the DB cluster isn't available.</p>
|
|
168
177
|
*
|
|
169
178
|
* @throws {@link ForbiddenException} (client fault)
|
|
170
179
|
* <p>There are insufficient privileges to make the call.</p>
|
|
171
180
|
*
|
|
181
|
+
* @throws {@link HttpEndpointNotEnabledException} (client fault)
|
|
182
|
+
* <p>The HTTP endpoint for using RDS Data API isn't enabled for the DB cluster.</p>
|
|
183
|
+
*
|
|
172
184
|
* @throws {@link InternalServerErrorException} (server fault)
|
|
173
185
|
* <p>An internal error occurred.</p>
|
|
174
186
|
*
|
|
187
|
+
* @throws {@link InvalidSecretException} (client fault)
|
|
188
|
+
* <p>The Secrets Manager secret used with the request isn't valid.</p>
|
|
189
|
+
*
|
|
190
|
+
* @throws {@link SecretsErrorException} (client fault)
|
|
191
|
+
* <p>There was a problem with the Secrets Manager secret used with the request, caused by one of the following conditions:</p>
|
|
192
|
+
* <ul>
|
|
193
|
+
* <li>
|
|
194
|
+
* <p>RDS Data API timed out retrieving the secret.</p>
|
|
195
|
+
* </li>
|
|
196
|
+
* <li>
|
|
197
|
+
* <p>The secret provided wasn't found.</p>
|
|
198
|
+
* </li>
|
|
199
|
+
* <li>
|
|
200
|
+
* <p>The secret couldn't be decrypted.</p>
|
|
201
|
+
* </li>
|
|
202
|
+
* </ul>
|
|
203
|
+
*
|
|
175
204
|
* @throws {@link ServiceUnavailableError} (server fault)
|
|
176
|
-
* <p>The service specified by the <code>resourceArn</code> parameter
|
|
205
|
+
* <p>The service specified by the <code>resourceArn</code> parameter isn't
|
|
177
206
|
* available.</p>
|
|
178
207
|
*
|
|
179
208
|
* @throws {@link StatementTimeoutException} (client fault)
|
|
180
209
|
* <p>The execution of the SQL statement timed out.</p>
|
|
181
210
|
*
|
|
211
|
+
* @throws {@link TransactionNotFoundException} (client fault)
|
|
212
|
+
* <p>The transaction ID wasn't found.</p>
|
|
213
|
+
*
|
|
182
214
|
* @throws {@link RDSDataServiceException}
|
|
183
215
|
* <p>Base exception class for all service exceptions from RDSData service.</p>
|
|
184
216
|
*
|
|
@@ -24,14 +24,14 @@ export interface BeginTransactionCommandOutput extends BeginTransactionResponse,
|
|
|
24
24
|
/**
|
|
25
25
|
* @public
|
|
26
26
|
* <p>Starts a SQL transaction.</p>
|
|
27
|
-
*
|
|
27
|
+
* <note>
|
|
28
28
|
* <p>A transaction can run for a maximum of 24 hours. A transaction is terminated and rolled back automatically after 24
|
|
29
29
|
* hours.</p>
|
|
30
30
|
* <p>A transaction times out if no calls use its transaction ID in three minutes. If a transaction times out before it's
|
|
31
31
|
* committed, it's rolled back automatically.</p>
|
|
32
32
|
* <p>DDL statements inside a transaction cause an implicit commit. We recommend that you run each DDL statement in a separate
|
|
33
33
|
* <code>ExecuteStatement</code> call with <code>continueAfterTimeout</code> enabled.</p>
|
|
34
|
-
*
|
|
34
|
+
* </note>
|
|
35
35
|
* @example
|
|
36
36
|
* Use a bare-bones client and the command you need to make an API call.
|
|
37
37
|
* ```javascript
|
|
@@ -59,24 +59,56 @@ export interface BeginTransactionCommandOutput extends BeginTransactionResponse,
|
|
|
59
59
|
* @see {@link RDSDataClientResolvedConfig | config} for RDSDataClient's `config` shape.
|
|
60
60
|
*
|
|
61
61
|
* @throws {@link AccessDeniedException} (client fault)
|
|
62
|
-
* <p>You
|
|
62
|
+
* <p>You don't have sufficient access to perform this action.</p>
|
|
63
63
|
*
|
|
64
64
|
* @throws {@link BadRequestException} (client fault)
|
|
65
|
-
* <p>There is an error in the call or in a SQL statement
|
|
65
|
+
* <p>There is an error in the call or in a SQL statement. (This error only appears in calls from Aurora Serverless v1 databases.)</p>
|
|
66
|
+
*
|
|
67
|
+
* @throws {@link DatabaseErrorException} (client fault)
|
|
68
|
+
* <p>There was an error in processing the SQL statement.</p>
|
|
69
|
+
*
|
|
70
|
+
* @throws {@link DatabaseNotFoundException} (client fault)
|
|
71
|
+
* <p>The DB cluster doesn't have a DB instance.</p>
|
|
72
|
+
*
|
|
73
|
+
* @throws {@link DatabaseUnavailableException} (server fault)
|
|
74
|
+
* <p>The writer instance in the DB cluster isn't available.</p>
|
|
66
75
|
*
|
|
67
76
|
* @throws {@link ForbiddenException} (client fault)
|
|
68
77
|
* <p>There are insufficient privileges to make the call.</p>
|
|
69
78
|
*
|
|
79
|
+
* @throws {@link HttpEndpointNotEnabledException} (client fault)
|
|
80
|
+
* <p>The HTTP endpoint for using RDS Data API isn't enabled for the DB cluster.</p>
|
|
81
|
+
*
|
|
70
82
|
* @throws {@link InternalServerErrorException} (server fault)
|
|
71
83
|
* <p>An internal error occurred.</p>
|
|
72
84
|
*
|
|
85
|
+
* @throws {@link InvalidSecretException} (client fault)
|
|
86
|
+
* <p>The Secrets Manager secret used with the request isn't valid.</p>
|
|
87
|
+
*
|
|
88
|
+
* @throws {@link SecretsErrorException} (client fault)
|
|
89
|
+
* <p>There was a problem with the Secrets Manager secret used with the request, caused by one of the following conditions:</p>
|
|
90
|
+
* <ul>
|
|
91
|
+
* <li>
|
|
92
|
+
* <p>RDS Data API timed out retrieving the secret.</p>
|
|
93
|
+
* </li>
|
|
94
|
+
* <li>
|
|
95
|
+
* <p>The secret provided wasn't found.</p>
|
|
96
|
+
* </li>
|
|
97
|
+
* <li>
|
|
98
|
+
* <p>The secret couldn't be decrypted.</p>
|
|
99
|
+
* </li>
|
|
100
|
+
* </ul>
|
|
101
|
+
*
|
|
73
102
|
* @throws {@link ServiceUnavailableError} (server fault)
|
|
74
|
-
* <p>The service specified by the <code>resourceArn</code> parameter
|
|
103
|
+
* <p>The service specified by the <code>resourceArn</code> parameter isn't
|
|
75
104
|
* available.</p>
|
|
76
105
|
*
|
|
77
106
|
* @throws {@link StatementTimeoutException} (client fault)
|
|
78
107
|
* <p>The execution of the SQL statement timed out.</p>
|
|
79
108
|
*
|
|
109
|
+
* @throws {@link TransactionNotFoundException} (client fault)
|
|
110
|
+
* <p>The transaction ID wasn't found.</p>
|
|
111
|
+
*
|
|
80
112
|
* @throws {@link RDSDataServiceException}
|
|
81
113
|
* <p>Base exception class for all service exceptions from RDSData service.</p>
|
|
82
114
|
*
|
|
@@ -51,27 +51,59 @@ export interface CommitTransactionCommandOutput extends CommitTransactionRespons
|
|
|
51
51
|
* @see {@link RDSDataClientResolvedConfig | config} for RDSDataClient's `config` shape.
|
|
52
52
|
*
|
|
53
53
|
* @throws {@link AccessDeniedException} (client fault)
|
|
54
|
-
* <p>You
|
|
54
|
+
* <p>You don't have sufficient access to perform this action.</p>
|
|
55
55
|
*
|
|
56
56
|
* @throws {@link BadRequestException} (client fault)
|
|
57
|
-
* <p>There is an error in the call or in a SQL statement
|
|
57
|
+
* <p>There is an error in the call or in a SQL statement. (This error only appears in calls from Aurora Serverless v1 databases.)</p>
|
|
58
|
+
*
|
|
59
|
+
* @throws {@link DatabaseErrorException} (client fault)
|
|
60
|
+
* <p>There was an error in processing the SQL statement.</p>
|
|
61
|
+
*
|
|
62
|
+
* @throws {@link DatabaseNotFoundException} (client fault)
|
|
63
|
+
* <p>The DB cluster doesn't have a DB instance.</p>
|
|
64
|
+
*
|
|
65
|
+
* @throws {@link DatabaseUnavailableException} (server fault)
|
|
66
|
+
* <p>The writer instance in the DB cluster isn't available.</p>
|
|
58
67
|
*
|
|
59
68
|
* @throws {@link ForbiddenException} (client fault)
|
|
60
69
|
* <p>There are insufficient privileges to make the call.</p>
|
|
61
70
|
*
|
|
71
|
+
* @throws {@link HttpEndpointNotEnabledException} (client fault)
|
|
72
|
+
* <p>The HTTP endpoint for using RDS Data API isn't enabled for the DB cluster.</p>
|
|
73
|
+
*
|
|
62
74
|
* @throws {@link InternalServerErrorException} (server fault)
|
|
63
75
|
* <p>An internal error occurred.</p>
|
|
64
76
|
*
|
|
77
|
+
* @throws {@link InvalidSecretException} (client fault)
|
|
78
|
+
* <p>The Secrets Manager secret used with the request isn't valid.</p>
|
|
79
|
+
*
|
|
65
80
|
* @throws {@link NotFoundException} (client fault)
|
|
66
81
|
* <p>The <code>resourceArn</code>, <code>secretArn</code>, or <code>transactionId</code> value can't be found.</p>
|
|
67
82
|
*
|
|
83
|
+
* @throws {@link SecretsErrorException} (client fault)
|
|
84
|
+
* <p>There was a problem with the Secrets Manager secret used with the request, caused by one of the following conditions:</p>
|
|
85
|
+
* <ul>
|
|
86
|
+
* <li>
|
|
87
|
+
* <p>RDS Data API timed out retrieving the secret.</p>
|
|
88
|
+
* </li>
|
|
89
|
+
* <li>
|
|
90
|
+
* <p>The secret provided wasn't found.</p>
|
|
91
|
+
* </li>
|
|
92
|
+
* <li>
|
|
93
|
+
* <p>The secret couldn't be decrypted.</p>
|
|
94
|
+
* </li>
|
|
95
|
+
* </ul>
|
|
96
|
+
*
|
|
68
97
|
* @throws {@link ServiceUnavailableError} (server fault)
|
|
69
|
-
* <p>The service specified by the <code>resourceArn</code> parameter
|
|
98
|
+
* <p>The service specified by the <code>resourceArn</code> parameter isn't
|
|
70
99
|
* available.</p>
|
|
71
100
|
*
|
|
72
101
|
* @throws {@link StatementTimeoutException} (client fault)
|
|
73
102
|
* <p>The execution of the SQL statement timed out.</p>
|
|
74
103
|
*
|
|
104
|
+
* @throws {@link TransactionNotFoundException} (client fault)
|
|
105
|
+
* <p>The transaction ID wasn't found.</p>
|
|
106
|
+
*
|
|
75
107
|
* @throws {@link RDSDataServiceException}
|
|
76
108
|
* <p>Base exception class for all service exceptions from RDSData service.</p>
|
|
77
109
|
*
|