@aws-sdk/client-rds-data 3.478.0 → 3.481.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/commands/BatchExecuteStatementCommand.js +18 -41
- package/dist-cjs/commands/BeginTransactionCommand.js +18 -41
- package/dist-cjs/commands/CommitTransactionCommand.js +18 -41
- package/dist-cjs/commands/ExecuteSqlCommand.js +18 -41
- package/dist-cjs/commands/ExecuteStatementCommand.js +18 -41
- package/dist-cjs/commands/RollbackTransactionCommand.js +18 -41
- package/dist-cjs/endpoint/EndpointParameters.js +7 -1
- package/dist-cjs/models/models_0.js +105 -1
- package/dist-cjs/protocols/Aws_restJson1.js +210 -0
- package/dist-es/commands/BatchExecuteStatementCommand.js +18 -41
- package/dist-es/commands/BeginTransactionCommand.js +18 -41
- package/dist-es/commands/CommitTransactionCommand.js +18 -41
- package/dist-es/commands/ExecuteSqlCommand.js +18 -41
- package/dist-es/commands/ExecuteStatementCommand.js +18 -41
- package/dist-es/commands/RollbackTransactionCommand.js +18 -41
- package/dist-es/endpoint/EndpointParameters.js +6 -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 +44 -27
- package/dist-types/commands/BeginTransactionCommand.d.ts +43 -26
- package/dist-types/commands/CommitTransactionCommand.d.ts +41 -24
- package/dist-types/commands/ExecuteSqlCommand.d.ts +13 -28
- package/dist-types/commands/ExecuteStatementCommand.d.ts +57 -26
- package/dist-types/commands/RollbackTransactionCommand.d.ts +41 -24
- package/dist-types/endpoint/EndpointParameters.d.ts +18 -0
- package/dist-types/index.d.ts +14 -8
- package/dist-types/models/models_0.d.ts +160 -45
- package/dist-types/ts3.4/commands/BatchExecuteStatementCommand.d.ts +12 -24
- package/dist-types/ts3.4/commands/BeginTransactionCommand.d.ts +14 -23
- package/dist-types/ts3.4/commands/CommitTransactionCommand.d.ts +14 -23
- package/dist-types/ts3.4/commands/ExecuteSqlCommand.d.ts +14 -23
- package/dist-types/ts3.4/commands/ExecuteStatementCommand.d.ts +14 -23
- package/dist-types/ts3.4/commands/RollbackTransactionCommand.d.ts +14 -23
- package/dist-types/ts3.4/endpoint/EndpointParameters.d.ts +18 -0
- package/dist-types/ts3.4/models/models_0.d.ts +59 -0
- package/package.json +9 -9
|
@@ -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)
|
|
@@ -1,47 +1,24 @@
|
|
|
1
1
|
import { getEndpointPlugin } from "@smithy/middleware-endpoint";
|
|
2
2
|
import { getSerdePlugin } from "@smithy/middleware-serde";
|
|
3
3
|
import { Command as $Command } from "@smithy/smithy-client";
|
|
4
|
-
import {
|
|
4
|
+
import { commonParams } from "../endpoint/EndpointParameters";
|
|
5
5
|
import { de_BatchExecuteStatementCommand, se_BatchExecuteStatementCommand } from "../protocols/Aws_restJson1";
|
|
6
6
|
export { $Command };
|
|
7
|
-
export class BatchExecuteStatementCommand extends $Command
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
const { logger } = configuration;
|
|
25
|
-
const clientName = "RDSDataClient";
|
|
26
|
-
const commandName = "BatchExecuteStatementCommand";
|
|
27
|
-
const handlerExecutionContext = {
|
|
28
|
-
logger,
|
|
29
|
-
clientName,
|
|
30
|
-
commandName,
|
|
31
|
-
inputFilterSensitiveLog: (_) => _,
|
|
32
|
-
outputFilterSensitiveLog: (_) => _,
|
|
33
|
-
[SMITHY_CONTEXT_KEY]: {
|
|
34
|
-
service: "RdsDataService",
|
|
35
|
-
operation: "BatchExecuteStatement",
|
|
36
|
-
},
|
|
37
|
-
};
|
|
38
|
-
const { requestHandler } = configuration;
|
|
39
|
-
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
40
|
-
}
|
|
41
|
-
serialize(input, context) {
|
|
42
|
-
return se_BatchExecuteStatementCommand(input, context);
|
|
43
|
-
}
|
|
44
|
-
deserialize(output, context) {
|
|
45
|
-
return de_BatchExecuteStatementCommand(output, context);
|
|
46
|
-
}
|
|
7
|
+
export class BatchExecuteStatementCommand extends $Command
|
|
8
|
+
.classBuilder()
|
|
9
|
+
.ep({
|
|
10
|
+
...commonParams,
|
|
11
|
+
})
|
|
12
|
+
.m(function (Command, cs, config, o) {
|
|
13
|
+
return [
|
|
14
|
+
getSerdePlugin(config, this.serialize, this.deserialize),
|
|
15
|
+
getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
16
|
+
];
|
|
17
|
+
})
|
|
18
|
+
.s("RdsDataService", "BatchExecuteStatement", {})
|
|
19
|
+
.n("RDSDataClient", "BatchExecuteStatementCommand")
|
|
20
|
+
.f(void 0, void 0)
|
|
21
|
+
.ser(se_BatchExecuteStatementCommand)
|
|
22
|
+
.de(de_BatchExecuteStatementCommand)
|
|
23
|
+
.build() {
|
|
47
24
|
}
|
|
@@ -1,47 +1,24 @@
|
|
|
1
1
|
import { getEndpointPlugin } from "@smithy/middleware-endpoint";
|
|
2
2
|
import { getSerdePlugin } from "@smithy/middleware-serde";
|
|
3
3
|
import { Command as $Command } from "@smithy/smithy-client";
|
|
4
|
-
import {
|
|
4
|
+
import { commonParams } from "../endpoint/EndpointParameters";
|
|
5
5
|
import { de_BeginTransactionCommand, se_BeginTransactionCommand } from "../protocols/Aws_restJson1";
|
|
6
6
|
export { $Command };
|
|
7
|
-
export class BeginTransactionCommand extends $Command
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
const { logger } = configuration;
|
|
25
|
-
const clientName = "RDSDataClient";
|
|
26
|
-
const commandName = "BeginTransactionCommand";
|
|
27
|
-
const handlerExecutionContext = {
|
|
28
|
-
logger,
|
|
29
|
-
clientName,
|
|
30
|
-
commandName,
|
|
31
|
-
inputFilterSensitiveLog: (_) => _,
|
|
32
|
-
outputFilterSensitiveLog: (_) => _,
|
|
33
|
-
[SMITHY_CONTEXT_KEY]: {
|
|
34
|
-
service: "RdsDataService",
|
|
35
|
-
operation: "BeginTransaction",
|
|
36
|
-
},
|
|
37
|
-
};
|
|
38
|
-
const { requestHandler } = configuration;
|
|
39
|
-
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
40
|
-
}
|
|
41
|
-
serialize(input, context) {
|
|
42
|
-
return se_BeginTransactionCommand(input, context);
|
|
43
|
-
}
|
|
44
|
-
deserialize(output, context) {
|
|
45
|
-
return de_BeginTransactionCommand(output, context);
|
|
46
|
-
}
|
|
7
|
+
export class BeginTransactionCommand extends $Command
|
|
8
|
+
.classBuilder()
|
|
9
|
+
.ep({
|
|
10
|
+
...commonParams,
|
|
11
|
+
})
|
|
12
|
+
.m(function (Command, cs, config, o) {
|
|
13
|
+
return [
|
|
14
|
+
getSerdePlugin(config, this.serialize, this.deserialize),
|
|
15
|
+
getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
16
|
+
];
|
|
17
|
+
})
|
|
18
|
+
.s("RdsDataService", "BeginTransaction", {})
|
|
19
|
+
.n("RDSDataClient", "BeginTransactionCommand")
|
|
20
|
+
.f(void 0, void 0)
|
|
21
|
+
.ser(se_BeginTransactionCommand)
|
|
22
|
+
.de(de_BeginTransactionCommand)
|
|
23
|
+
.build() {
|
|
47
24
|
}
|
|
@@ -1,47 +1,24 @@
|
|
|
1
1
|
import { getEndpointPlugin } from "@smithy/middleware-endpoint";
|
|
2
2
|
import { getSerdePlugin } from "@smithy/middleware-serde";
|
|
3
3
|
import { Command as $Command } from "@smithy/smithy-client";
|
|
4
|
-
import {
|
|
4
|
+
import { commonParams } from "../endpoint/EndpointParameters";
|
|
5
5
|
import { de_CommitTransactionCommand, se_CommitTransactionCommand } from "../protocols/Aws_restJson1";
|
|
6
6
|
export { $Command };
|
|
7
|
-
export class CommitTransactionCommand extends $Command
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
const { logger } = configuration;
|
|
25
|
-
const clientName = "RDSDataClient";
|
|
26
|
-
const commandName = "CommitTransactionCommand";
|
|
27
|
-
const handlerExecutionContext = {
|
|
28
|
-
logger,
|
|
29
|
-
clientName,
|
|
30
|
-
commandName,
|
|
31
|
-
inputFilterSensitiveLog: (_) => _,
|
|
32
|
-
outputFilterSensitiveLog: (_) => _,
|
|
33
|
-
[SMITHY_CONTEXT_KEY]: {
|
|
34
|
-
service: "RdsDataService",
|
|
35
|
-
operation: "CommitTransaction",
|
|
36
|
-
},
|
|
37
|
-
};
|
|
38
|
-
const { requestHandler } = configuration;
|
|
39
|
-
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
40
|
-
}
|
|
41
|
-
serialize(input, context) {
|
|
42
|
-
return se_CommitTransactionCommand(input, context);
|
|
43
|
-
}
|
|
44
|
-
deserialize(output, context) {
|
|
45
|
-
return de_CommitTransactionCommand(output, context);
|
|
46
|
-
}
|
|
7
|
+
export class CommitTransactionCommand extends $Command
|
|
8
|
+
.classBuilder()
|
|
9
|
+
.ep({
|
|
10
|
+
...commonParams,
|
|
11
|
+
})
|
|
12
|
+
.m(function (Command, cs, config, o) {
|
|
13
|
+
return [
|
|
14
|
+
getSerdePlugin(config, this.serialize, this.deserialize),
|
|
15
|
+
getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
16
|
+
];
|
|
17
|
+
})
|
|
18
|
+
.s("RdsDataService", "CommitTransaction", {})
|
|
19
|
+
.n("RDSDataClient", "CommitTransactionCommand")
|
|
20
|
+
.f(void 0, void 0)
|
|
21
|
+
.ser(se_CommitTransactionCommand)
|
|
22
|
+
.de(de_CommitTransactionCommand)
|
|
23
|
+
.build() {
|
|
47
24
|
}
|
|
@@ -1,47 +1,24 @@
|
|
|
1
1
|
import { getEndpointPlugin } from "@smithy/middleware-endpoint";
|
|
2
2
|
import { getSerdePlugin } from "@smithy/middleware-serde";
|
|
3
3
|
import { Command as $Command } from "@smithy/smithy-client";
|
|
4
|
-
import {
|
|
4
|
+
import { commonParams } from "../endpoint/EndpointParameters";
|
|
5
5
|
import { de_ExecuteSqlCommand, se_ExecuteSqlCommand } from "../protocols/Aws_restJson1";
|
|
6
6
|
export { $Command };
|
|
7
|
-
export class ExecuteSqlCommand extends $Command
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
const { logger } = configuration;
|
|
25
|
-
const clientName = "RDSDataClient";
|
|
26
|
-
const commandName = "ExecuteSqlCommand";
|
|
27
|
-
const handlerExecutionContext = {
|
|
28
|
-
logger,
|
|
29
|
-
clientName,
|
|
30
|
-
commandName,
|
|
31
|
-
inputFilterSensitiveLog: (_) => _,
|
|
32
|
-
outputFilterSensitiveLog: (_) => _,
|
|
33
|
-
[SMITHY_CONTEXT_KEY]: {
|
|
34
|
-
service: "RdsDataService",
|
|
35
|
-
operation: "ExecuteSql",
|
|
36
|
-
},
|
|
37
|
-
};
|
|
38
|
-
const { requestHandler } = configuration;
|
|
39
|
-
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
40
|
-
}
|
|
41
|
-
serialize(input, context) {
|
|
42
|
-
return se_ExecuteSqlCommand(input, context);
|
|
43
|
-
}
|
|
44
|
-
deserialize(output, context) {
|
|
45
|
-
return de_ExecuteSqlCommand(output, context);
|
|
46
|
-
}
|
|
7
|
+
export class ExecuteSqlCommand extends $Command
|
|
8
|
+
.classBuilder()
|
|
9
|
+
.ep({
|
|
10
|
+
...commonParams,
|
|
11
|
+
})
|
|
12
|
+
.m(function (Command, cs, config, o) {
|
|
13
|
+
return [
|
|
14
|
+
getSerdePlugin(config, this.serialize, this.deserialize),
|
|
15
|
+
getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
16
|
+
];
|
|
17
|
+
})
|
|
18
|
+
.s("RdsDataService", "ExecuteSql", {})
|
|
19
|
+
.n("RDSDataClient", "ExecuteSqlCommand")
|
|
20
|
+
.f(void 0, void 0)
|
|
21
|
+
.ser(se_ExecuteSqlCommand)
|
|
22
|
+
.de(de_ExecuteSqlCommand)
|
|
23
|
+
.build() {
|
|
47
24
|
}
|