@aws-sdk/client-rds-data 3.928.0 → 3.929.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist-cjs/index.js CHANGED
@@ -6,6 +6,7 @@ var middlewareRecursionDetection = require('@aws-sdk/middleware-recursion-detect
6
6
  var middlewareUserAgent = require('@aws-sdk/middleware-user-agent');
7
7
  var configResolver = require('@smithy/config-resolver');
8
8
  var core = require('@smithy/core');
9
+ var schema = require('@smithy/core/schema');
9
10
  var middlewareContentLength = require('@smithy/middleware-content-length');
10
11
  var middlewareEndpoint = require('@smithy/middleware-endpoint');
11
12
  var middlewareRetry = require('@smithy/middleware-retry');
@@ -14,8 +15,6 @@ var httpAuthSchemeProvider = require('./auth/httpAuthSchemeProvider');
14
15
  var runtimeConfig = require('./runtimeConfig');
15
16
  var regionConfigResolver = require('@aws-sdk/region-config-resolver');
16
17
  var protocolHttp = require('@smithy/protocol-http');
17
- var middlewareSerde = require('@smithy/middleware-serde');
18
- var core$1 = require('@aws-sdk/core');
19
18
 
20
19
  const resolveClientEndpointParameters = (options) => {
21
20
  return Object.assign(options, {
@@ -91,6 +90,7 @@ class RDSDataClient extends smithyClient.Client {
91
90
  const _config_7 = httpAuthSchemeProvider.resolveHttpAuthSchemeConfig(_config_6);
92
91
  const _config_8 = resolveRuntimeExtensions(_config_7, configuration?.extensions || []);
93
92
  this.config = _config_8;
93
+ this.middlewareStack.use(schema.getSchemaSerdePlugin(this.config));
94
94
  this.middlewareStack.use(middlewareUserAgent.getUserAgentPlugin(this.config));
95
95
  this.middlewareStack.use(middlewareRetry.getRetryPlugin(this.config));
96
96
  this.middlewareStack.use(middlewareContentLength.getContentLengthPlugin(this.config));
@@ -110,14 +110,14 @@ class RDSDataClient extends smithyClient.Client {
110
110
  }
111
111
  }
112
112
 
113
- class RDSDataServiceException extends smithyClient.ServiceException {
113
+ let RDSDataServiceException$1 = class RDSDataServiceException extends smithyClient.ServiceException {
114
114
  constructor(options) {
115
115
  super(options);
116
116
  Object.setPrototypeOf(this, RDSDataServiceException.prototype);
117
117
  }
118
- }
118
+ };
119
119
 
120
- class AccessDeniedException extends RDSDataServiceException {
120
+ let AccessDeniedException$1 = class AccessDeniedException extends RDSDataServiceException$1 {
121
121
  name = "AccessDeniedException";
122
122
  $fault = "client";
123
123
  constructor(opts) {
@@ -128,8 +128,8 @@ class AccessDeniedException extends RDSDataServiceException {
128
128
  });
129
129
  Object.setPrototypeOf(this, AccessDeniedException.prototype);
130
130
  }
131
- }
132
- class BadRequestException extends RDSDataServiceException {
131
+ };
132
+ let BadRequestException$1 = class BadRequestException extends RDSDataServiceException$1 {
133
133
  name = "BadRequestException";
134
134
  $fault = "client";
135
135
  constructor(opts) {
@@ -140,7 +140,7 @@ class BadRequestException extends RDSDataServiceException {
140
140
  });
141
141
  Object.setPrototypeOf(this, BadRequestException.prototype);
142
142
  }
143
- }
143
+ };
144
144
  const TypeHint = {
145
145
  DATE: "DATE",
146
146
  DECIMAL: "DECIMAL",
@@ -149,7 +149,7 @@ const TypeHint = {
149
149
  TIMESTAMP: "TIMESTAMP",
150
150
  UUID: "UUID",
151
151
  };
152
- class DatabaseErrorException extends RDSDataServiceException {
152
+ let DatabaseErrorException$1 = class DatabaseErrorException extends RDSDataServiceException$1 {
153
153
  name = "DatabaseErrorException";
154
154
  $fault = "client";
155
155
  constructor(opts) {
@@ -160,8 +160,8 @@ class DatabaseErrorException extends RDSDataServiceException {
160
160
  });
161
161
  Object.setPrototypeOf(this, DatabaseErrorException.prototype);
162
162
  }
163
- }
164
- class DatabaseNotFoundException extends RDSDataServiceException {
163
+ };
164
+ let DatabaseNotFoundException$1 = class DatabaseNotFoundException extends RDSDataServiceException$1 {
165
165
  name = "DatabaseNotFoundException";
166
166
  $fault = "client";
167
167
  constructor(opts) {
@@ -172,8 +172,8 @@ class DatabaseNotFoundException extends RDSDataServiceException {
172
172
  });
173
173
  Object.setPrototypeOf(this, DatabaseNotFoundException.prototype);
174
174
  }
175
- }
176
- class DatabaseResumingException extends RDSDataServiceException {
175
+ };
176
+ let DatabaseResumingException$1 = class DatabaseResumingException extends RDSDataServiceException$1 {
177
177
  name = "DatabaseResumingException";
178
178
  $fault = "client";
179
179
  constructor(opts) {
@@ -184,8 +184,8 @@ class DatabaseResumingException extends RDSDataServiceException {
184
184
  });
185
185
  Object.setPrototypeOf(this, DatabaseResumingException.prototype);
186
186
  }
187
- }
188
- class DatabaseUnavailableException extends RDSDataServiceException {
187
+ };
188
+ let DatabaseUnavailableException$1 = class DatabaseUnavailableException extends RDSDataServiceException$1 {
189
189
  name = "DatabaseUnavailableException";
190
190
  $fault = "server";
191
191
  constructor(opts) {
@@ -196,8 +196,8 @@ class DatabaseUnavailableException extends RDSDataServiceException {
196
196
  });
197
197
  Object.setPrototypeOf(this, DatabaseUnavailableException.prototype);
198
198
  }
199
- }
200
- class ForbiddenException extends RDSDataServiceException {
199
+ };
200
+ let ForbiddenException$1 = class ForbiddenException extends RDSDataServiceException$1 {
201
201
  name = "ForbiddenException";
202
202
  $fault = "client";
203
203
  constructor(opts) {
@@ -208,8 +208,8 @@ class ForbiddenException extends RDSDataServiceException {
208
208
  });
209
209
  Object.setPrototypeOf(this, ForbiddenException.prototype);
210
210
  }
211
- }
212
- class HttpEndpointNotEnabledException extends RDSDataServiceException {
211
+ };
212
+ let HttpEndpointNotEnabledException$1 = class HttpEndpointNotEnabledException extends RDSDataServiceException$1 {
213
213
  name = "HttpEndpointNotEnabledException";
214
214
  $fault = "client";
215
215
  constructor(opts) {
@@ -220,8 +220,8 @@ class HttpEndpointNotEnabledException extends RDSDataServiceException {
220
220
  });
221
221
  Object.setPrototypeOf(this, HttpEndpointNotEnabledException.prototype);
222
222
  }
223
- }
224
- class InternalServerErrorException extends RDSDataServiceException {
223
+ };
224
+ let InternalServerErrorException$1 = class InternalServerErrorException extends RDSDataServiceException$1 {
225
225
  name = "InternalServerErrorException";
226
226
  $fault = "server";
227
227
  constructor(opts) {
@@ -232,8 +232,8 @@ class InternalServerErrorException extends RDSDataServiceException {
232
232
  });
233
233
  Object.setPrototypeOf(this, InternalServerErrorException.prototype);
234
234
  }
235
- }
236
- class InvalidResourceStateException extends RDSDataServiceException {
235
+ };
236
+ let InvalidResourceStateException$1 = class InvalidResourceStateException extends RDSDataServiceException$1 {
237
237
  name = "InvalidResourceStateException";
238
238
  $fault = "client";
239
239
  constructor(opts) {
@@ -244,8 +244,8 @@ class InvalidResourceStateException extends RDSDataServiceException {
244
244
  });
245
245
  Object.setPrototypeOf(this, InvalidResourceStateException.prototype);
246
246
  }
247
- }
248
- class InvalidSecretException extends RDSDataServiceException {
247
+ };
248
+ let InvalidSecretException$1 = class InvalidSecretException extends RDSDataServiceException$1 {
249
249
  name = "InvalidSecretException";
250
250
  $fault = "client";
251
251
  constructor(opts) {
@@ -256,8 +256,8 @@ class InvalidSecretException extends RDSDataServiceException {
256
256
  });
257
257
  Object.setPrototypeOf(this, InvalidSecretException.prototype);
258
258
  }
259
- }
260
- class SecretsErrorException extends RDSDataServiceException {
259
+ };
260
+ let SecretsErrorException$1 = class SecretsErrorException extends RDSDataServiceException$1 {
261
261
  name = "SecretsErrorException";
262
262
  $fault = "client";
263
263
  constructor(opts) {
@@ -268,8 +268,8 @@ class SecretsErrorException extends RDSDataServiceException {
268
268
  });
269
269
  Object.setPrototypeOf(this, SecretsErrorException.prototype);
270
270
  }
271
- }
272
- class ServiceUnavailableError extends RDSDataServiceException {
271
+ };
272
+ let ServiceUnavailableError$1 = class ServiceUnavailableError extends RDSDataServiceException$1 {
273
273
  name = "ServiceUnavailableError";
274
274
  $fault = "server";
275
275
  constructor(opts) {
@@ -280,8 +280,8 @@ class ServiceUnavailableError extends RDSDataServiceException {
280
280
  });
281
281
  Object.setPrototypeOf(this, ServiceUnavailableError.prototype);
282
282
  }
283
- }
284
- class StatementTimeoutException extends RDSDataServiceException {
283
+ };
284
+ let StatementTimeoutException$1 = class StatementTimeoutException extends RDSDataServiceException$1 {
285
285
  name = "StatementTimeoutException";
286
286
  $fault = "client";
287
287
  dbConnectionId;
@@ -294,8 +294,8 @@ class StatementTimeoutException extends RDSDataServiceException {
294
294
  Object.setPrototypeOf(this, StatementTimeoutException.prototype);
295
295
  this.dbConnectionId = opts.dbConnectionId;
296
296
  }
297
- }
298
- class TransactionNotFoundException extends RDSDataServiceException {
297
+ };
298
+ let TransactionNotFoundException$1 = class TransactionNotFoundException extends RDSDataServiceException$1 {
299
299
  name = "TransactionNotFoundException";
300
300
  $fault = "client";
301
301
  constructor(opts) {
@@ -306,8 +306,8 @@ class TransactionNotFoundException extends RDSDataServiceException {
306
306
  });
307
307
  Object.setPrototypeOf(this, TransactionNotFoundException.prototype);
308
308
  }
309
- }
310
- class NotFoundException extends RDSDataServiceException {
309
+ };
310
+ let NotFoundException$1 = class NotFoundException extends RDSDataServiceException$1 {
311
311
  name = "NotFoundException";
312
312
  $fault = "client";
313
313
  constructor(opts) {
@@ -318,7 +318,7 @@ class NotFoundException extends RDSDataServiceException {
318
318
  });
319
319
  Object.setPrototypeOf(this, NotFoundException.prototype);
320
320
  }
321
- }
321
+ };
322
322
  const DecimalReturnType = {
323
323
  DOUBLE_OR_LONG: "DOUBLE_OR_LONG",
324
324
  STRING: "STRING",
@@ -331,7 +331,7 @@ const LongReturnType = {
331
331
  LONG: "LONG",
332
332
  STRING: "STRING",
333
333
  };
334
- class UnsupportedResultException extends RDSDataServiceException {
334
+ let UnsupportedResultException$1 = class UnsupportedResultException extends RDSDataServiceException$1 {
335
335
  name = "UnsupportedResultException";
336
336
  $fault = "client";
337
337
  constructor(opts) {
@@ -342,7 +342,7 @@ class UnsupportedResultException extends RDSDataServiceException {
342
342
  });
343
343
  Object.setPrototypeOf(this, UnsupportedResultException.prototype);
344
344
  }
345
- }
345
+ };
346
346
  exports.ArrayValue = void 0;
347
347
  (function (ArrayValue) {
348
348
  ArrayValue.visit = (value, visitor) => {
@@ -406,755 +406,496 @@ exports.Value = void 0;
406
406
  };
407
407
  })(exports.Value || (exports.Value = {}));
408
408
 
409
- const se_BatchExecuteStatementCommand = async (input, context) => {
410
- const b = core.requestBuilder(input, context);
411
- const headers = {
412
- "content-type": "application/json",
413
- };
414
- b.bp("/BatchExecute");
415
- let body;
416
- body = JSON.stringify(smithyClient.take(input, {
417
- database: [],
418
- parameterSets: (_) => se_SqlParameterSets(_, context),
419
- resourceArn: [],
420
- schema: [],
421
- secretArn: [],
422
- sql: [],
423
- transactionId: [],
424
- }));
425
- b.m("POST").h(headers).b(body);
426
- return b.build();
427
- };
428
- const se_BeginTransactionCommand = async (input, context) => {
429
- const b = core.requestBuilder(input, context);
430
- const headers = {
431
- "content-type": "application/json",
432
- };
433
- b.bp("/BeginTransaction");
434
- let body;
435
- body = JSON.stringify(smithyClient.take(input, {
436
- database: [],
437
- resourceArn: [],
438
- schema: [],
439
- secretArn: [],
440
- }));
441
- b.m("POST").h(headers).b(body);
442
- return b.build();
443
- };
444
- const se_CommitTransactionCommand = async (input, context) => {
445
- const b = core.requestBuilder(input, context);
446
- const headers = {
447
- "content-type": "application/json",
448
- };
449
- b.bp("/CommitTransaction");
450
- let body;
451
- body = JSON.stringify(smithyClient.take(input, {
452
- resourceArn: [],
453
- secretArn: [],
454
- transactionId: [],
455
- }));
456
- b.m("POST").h(headers).b(body);
457
- return b.build();
458
- };
459
- const se_ExecuteSqlCommand = async (input, context) => {
460
- const b = core.requestBuilder(input, context);
461
- const headers = {
462
- "content-type": "application/json",
463
- };
464
- b.bp("/ExecuteSql");
465
- let body;
466
- body = JSON.stringify(smithyClient.take(input, {
467
- awsSecretStoreArn: [],
468
- database: [],
469
- dbClusterOrInstanceArn: [],
470
- schema: [],
471
- sqlStatements: [],
472
- }));
473
- b.m("POST").h(headers).b(body);
474
- return b.build();
475
- };
476
- const se_ExecuteStatementCommand = async (input, context) => {
477
- const b = core.requestBuilder(input, context);
478
- const headers = {
479
- "content-type": "application/json",
480
- };
481
- b.bp("/Execute");
482
- let body;
483
- body = JSON.stringify(smithyClient.take(input, {
484
- continueAfterTimeout: [],
485
- database: [],
486
- formatRecordsAs: [],
487
- includeResultMetadata: [],
488
- parameters: (_) => se_SqlParametersList(_, context),
489
- resourceArn: [],
490
- resultSetOptions: (_) => smithyClient._json(_),
491
- schema: [],
492
- secretArn: [],
493
- sql: [],
494
- transactionId: [],
495
- }));
496
- b.m("POST").h(headers).b(body);
497
- return b.build();
498
- };
499
- const se_RollbackTransactionCommand = async (input, context) => {
500
- const b = core.requestBuilder(input, context);
501
- const headers = {
502
- "content-type": "application/json",
503
- };
504
- b.bp("/RollbackTransaction");
505
- let body;
506
- body = JSON.stringify(smithyClient.take(input, {
507
- resourceArn: [],
508
- secretArn: [],
509
- transactionId: [],
510
- }));
511
- b.m("POST").h(headers).b(body);
512
- return b.build();
513
- };
514
- const de_BatchExecuteStatementCommand = async (output, context) => {
515
- if (output.statusCode !== 200 && output.statusCode >= 300) {
516
- return de_CommandError(output, context);
517
- }
518
- const contents = smithyClient.map({
519
- $metadata: deserializeMetadata(output),
520
- });
521
- const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
522
- const doc = smithyClient.take(data, {
523
- updateResults: (_) => de_UpdateResults(_, context),
524
- });
525
- Object.assign(contents, doc);
526
- return contents;
527
- };
528
- const de_BeginTransactionCommand = async (output, context) => {
529
- if (output.statusCode !== 200 && output.statusCode >= 300) {
530
- return de_CommandError(output, context);
531
- }
532
- const contents = smithyClient.map({
533
- $metadata: deserializeMetadata(output),
534
- });
535
- const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
536
- const doc = smithyClient.take(data, {
537
- transactionId: smithyClient.expectString,
538
- });
539
- Object.assign(contents, doc);
540
- return contents;
541
- };
542
- const de_CommitTransactionCommand = async (output, context) => {
543
- if (output.statusCode !== 200 && output.statusCode >= 300) {
544
- return de_CommandError(output, context);
545
- }
546
- const contents = smithyClient.map({
547
- $metadata: deserializeMetadata(output),
548
- });
549
- const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
550
- const doc = smithyClient.take(data, {
551
- transactionStatus: smithyClient.expectString,
552
- });
553
- Object.assign(contents, doc);
554
- return contents;
555
- };
556
- const de_ExecuteSqlCommand = async (output, context) => {
557
- if (output.statusCode !== 200 && output.statusCode >= 300) {
558
- return de_CommandError(output, context);
559
- }
560
- const contents = smithyClient.map({
561
- $metadata: deserializeMetadata(output),
562
- });
563
- const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
564
- const doc = smithyClient.take(data, {
565
- sqlStatementResults: (_) => de_SqlStatementResults(_, context),
566
- });
567
- Object.assign(contents, doc);
568
- return contents;
569
- };
570
- const de_ExecuteStatementCommand = async (output, context) => {
571
- if (output.statusCode !== 200 && output.statusCode >= 300) {
572
- return de_CommandError(output, context);
573
- }
574
- const contents = smithyClient.map({
575
- $metadata: deserializeMetadata(output),
576
- });
577
- const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
578
- const doc = smithyClient.take(data, {
579
- columnMetadata: smithyClient._json,
580
- formattedRecords: smithyClient.expectString,
581
- generatedFields: (_) => de_FieldList(_, context),
582
- numberOfRecordsUpdated: smithyClient.expectLong,
583
- records: (_) => de_SqlRecords(_, context),
584
- });
585
- Object.assign(contents, doc);
586
- return contents;
587
- };
588
- const de_RollbackTransactionCommand = async (output, context) => {
589
- if (output.statusCode !== 200 && output.statusCode >= 300) {
590
- return de_CommandError(output, context);
591
- }
592
- const contents = smithyClient.map({
593
- $metadata: deserializeMetadata(output),
594
- });
595
- const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
596
- const doc = smithyClient.take(data, {
597
- transactionStatus: smithyClient.expectString,
598
- });
599
- Object.assign(contents, doc);
600
- return contents;
601
- };
602
- const de_CommandError = async (output, context) => {
603
- const parsedOutput = {
604
- ...output,
605
- body: await core$1.parseJsonErrorBody(output.body, context),
606
- };
607
- const errorCode = core$1.loadRestJsonErrorCode(output, parsedOutput.body);
608
- switch (errorCode) {
609
- case "AccessDeniedException":
610
- case "com.amazonaws.rdsdata#AccessDeniedException":
611
- throw await de_AccessDeniedExceptionRes(parsedOutput);
612
- case "BadRequestException":
613
- case "com.amazonaws.rdsdata#BadRequestException":
614
- throw await de_BadRequestExceptionRes(parsedOutput);
615
- case "DatabaseErrorException":
616
- case "com.amazonaws.rdsdata#DatabaseErrorException":
617
- throw await de_DatabaseErrorExceptionRes(parsedOutput);
618
- case "DatabaseNotFoundException":
619
- case "com.amazonaws.rdsdata#DatabaseNotFoundException":
620
- throw await de_DatabaseNotFoundExceptionRes(parsedOutput);
621
- case "DatabaseResumingException":
622
- case "com.amazonaws.rdsdata#DatabaseResumingException":
623
- throw await de_DatabaseResumingExceptionRes(parsedOutput);
624
- case "DatabaseUnavailableException":
625
- case "com.amazonaws.rdsdata#DatabaseUnavailableException":
626
- throw await de_DatabaseUnavailableExceptionRes(parsedOutput);
627
- case "ForbiddenException":
628
- case "com.amazonaws.rdsdata#ForbiddenException":
629
- throw await de_ForbiddenExceptionRes(parsedOutput);
630
- case "HttpEndpointNotEnabledException":
631
- case "com.amazonaws.rdsdata#HttpEndpointNotEnabledException":
632
- throw await de_HttpEndpointNotEnabledExceptionRes(parsedOutput);
633
- case "InternalServerErrorException":
634
- case "com.amazonaws.rdsdata#InternalServerErrorException":
635
- throw await de_InternalServerErrorExceptionRes(parsedOutput);
636
- case "InvalidResourceStateException":
637
- case "com.amazonaws.rdsdata#InvalidResourceStateException":
638
- throw await de_InvalidResourceStateExceptionRes(parsedOutput);
639
- case "InvalidSecretException":
640
- case "com.amazonaws.rdsdata#InvalidSecretException":
641
- throw await de_InvalidSecretExceptionRes(parsedOutput);
642
- case "SecretsErrorException":
643
- case "com.amazonaws.rdsdata#SecretsErrorException":
644
- throw await de_SecretsErrorExceptionRes(parsedOutput);
645
- case "ServiceUnavailableError":
646
- case "com.amazonaws.rdsdata#ServiceUnavailableError":
647
- throw await de_ServiceUnavailableErrorRes(parsedOutput);
648
- case "StatementTimeoutException":
649
- case "com.amazonaws.rdsdata#StatementTimeoutException":
650
- throw await de_StatementTimeoutExceptionRes(parsedOutput);
651
- case "TransactionNotFoundException":
652
- case "com.amazonaws.rdsdata#TransactionNotFoundException":
653
- throw await de_TransactionNotFoundExceptionRes(parsedOutput);
654
- case "NotFoundException":
655
- case "com.amazonaws.rdsdata#NotFoundException":
656
- throw await de_NotFoundExceptionRes(parsedOutput);
657
- case "UnsupportedResultException":
658
- case "com.amazonaws.rdsdata#UnsupportedResultException":
659
- throw await de_UnsupportedResultExceptionRes(parsedOutput);
660
- default:
661
- const parsedBody = parsedOutput.body;
662
- return throwDefaultError({
663
- output,
664
- parsedBody,
665
- errorCode,
666
- });
667
- }
668
- };
669
- const throwDefaultError = smithyClient.withBaseException(RDSDataServiceException);
670
- const de_AccessDeniedExceptionRes = async (parsedOutput, context) => {
671
- const contents = smithyClient.map({});
672
- const data = parsedOutput.body;
673
- const doc = smithyClient.take(data, {
674
- message: smithyClient.expectString,
675
- });
676
- Object.assign(contents, doc);
677
- const exception = new AccessDeniedException({
678
- $metadata: deserializeMetadata(parsedOutput),
679
- ...contents,
680
- });
681
- return smithyClient.decorateServiceException(exception, parsedOutput.body);
682
- };
683
- const de_BadRequestExceptionRes = async (parsedOutput, context) => {
684
- const contents = smithyClient.map({});
685
- const data = parsedOutput.body;
686
- const doc = smithyClient.take(data, {
687
- message: smithyClient.expectString,
688
- });
689
- Object.assign(contents, doc);
690
- const exception = new BadRequestException({
691
- $metadata: deserializeMetadata(parsedOutput),
692
- ...contents,
693
- });
694
- return smithyClient.decorateServiceException(exception, parsedOutput.body);
695
- };
696
- const de_DatabaseErrorExceptionRes = async (parsedOutput, context) => {
697
- const contents = smithyClient.map({});
698
- const data = parsedOutput.body;
699
- const doc = smithyClient.take(data, {
700
- message: smithyClient.expectString,
701
- });
702
- Object.assign(contents, doc);
703
- const exception = new DatabaseErrorException({
704
- $metadata: deserializeMetadata(parsedOutput),
705
- ...contents,
706
- });
707
- return smithyClient.decorateServiceException(exception, parsedOutput.body);
708
- };
709
- const de_DatabaseNotFoundExceptionRes = async (parsedOutput, context) => {
710
- const contents = smithyClient.map({});
711
- const data = parsedOutput.body;
712
- const doc = smithyClient.take(data, {
713
- message: smithyClient.expectString,
714
- });
715
- Object.assign(contents, doc);
716
- const exception = new DatabaseNotFoundException({
717
- $metadata: deserializeMetadata(parsedOutput),
718
- ...contents,
719
- });
720
- return smithyClient.decorateServiceException(exception, parsedOutput.body);
721
- };
722
- const de_DatabaseResumingExceptionRes = async (parsedOutput, context) => {
723
- const contents = smithyClient.map({});
724
- const data = parsedOutput.body;
725
- const doc = smithyClient.take(data, {
726
- message: smithyClient.expectString,
727
- });
728
- Object.assign(contents, doc);
729
- const exception = new DatabaseResumingException({
730
- $metadata: deserializeMetadata(parsedOutput),
731
- ...contents,
732
- });
733
- return smithyClient.decorateServiceException(exception, parsedOutput.body);
734
- };
735
- const de_DatabaseUnavailableExceptionRes = async (parsedOutput, context) => {
736
- const contents = smithyClient.map({});
737
- const data = parsedOutput.body;
738
- const doc = smithyClient.take(data, {});
739
- Object.assign(contents, doc);
740
- const exception = new DatabaseUnavailableException({
741
- $metadata: deserializeMetadata(parsedOutput),
742
- ...contents,
743
- });
744
- return smithyClient.decorateServiceException(exception, parsedOutput.body);
745
- };
746
- const de_ForbiddenExceptionRes = async (parsedOutput, context) => {
747
- const contents = smithyClient.map({});
748
- const data = parsedOutput.body;
749
- const doc = smithyClient.take(data, {
750
- message: smithyClient.expectString,
751
- });
752
- Object.assign(contents, doc);
753
- const exception = new ForbiddenException({
754
- $metadata: deserializeMetadata(parsedOutput),
755
- ...contents,
756
- });
757
- return smithyClient.decorateServiceException(exception, parsedOutput.body);
758
- };
759
- const de_HttpEndpointNotEnabledExceptionRes = async (parsedOutput, context) => {
760
- const contents = smithyClient.map({});
761
- const data = parsedOutput.body;
762
- const doc = smithyClient.take(data, {
763
- message: smithyClient.expectString,
764
- });
765
- Object.assign(contents, doc);
766
- const exception = new HttpEndpointNotEnabledException({
767
- $metadata: deserializeMetadata(parsedOutput),
768
- ...contents,
769
- });
770
- return smithyClient.decorateServiceException(exception, parsedOutput.body);
771
- };
772
- const de_InternalServerErrorExceptionRes = async (parsedOutput, context) => {
773
- const contents = smithyClient.map({});
774
- const data = parsedOutput.body;
775
- const doc = smithyClient.take(data, {});
776
- Object.assign(contents, doc);
777
- const exception = new InternalServerErrorException({
778
- $metadata: deserializeMetadata(parsedOutput),
779
- ...contents,
780
- });
781
- return smithyClient.decorateServiceException(exception, parsedOutput.body);
782
- };
783
- const de_InvalidResourceStateExceptionRes = async (parsedOutput, context) => {
784
- const contents = smithyClient.map({});
785
- const data = parsedOutput.body;
786
- const doc = smithyClient.take(data, {
787
- message: smithyClient.expectString,
788
- });
789
- Object.assign(contents, doc);
790
- const exception = new InvalidResourceStateException({
791
- $metadata: deserializeMetadata(parsedOutput),
792
- ...contents,
793
- });
794
- return smithyClient.decorateServiceException(exception, parsedOutput.body);
795
- };
796
- const de_InvalidSecretExceptionRes = async (parsedOutput, context) => {
797
- const contents = smithyClient.map({});
798
- const data = parsedOutput.body;
799
- const doc = smithyClient.take(data, {
800
- message: smithyClient.expectString,
801
- });
802
- Object.assign(contents, doc);
803
- const exception = new InvalidSecretException({
804
- $metadata: deserializeMetadata(parsedOutput),
805
- ...contents,
806
- });
807
- return smithyClient.decorateServiceException(exception, parsedOutput.body);
808
- };
809
- const de_NotFoundExceptionRes = async (parsedOutput, context) => {
810
- const contents = smithyClient.map({});
811
- const data = parsedOutput.body;
812
- const doc = smithyClient.take(data, {
813
- message: smithyClient.expectString,
814
- });
815
- Object.assign(contents, doc);
816
- const exception = new NotFoundException({
817
- $metadata: deserializeMetadata(parsedOutput),
818
- ...contents,
819
- });
820
- return smithyClient.decorateServiceException(exception, parsedOutput.body);
821
- };
822
- const de_SecretsErrorExceptionRes = async (parsedOutput, context) => {
823
- const contents = smithyClient.map({});
824
- const data = parsedOutput.body;
825
- const doc = smithyClient.take(data, {
826
- message: smithyClient.expectString,
827
- });
828
- Object.assign(contents, doc);
829
- const exception = new SecretsErrorException({
830
- $metadata: deserializeMetadata(parsedOutput),
831
- ...contents,
832
- });
833
- return smithyClient.decorateServiceException(exception, parsedOutput.body);
834
- };
835
- const de_ServiceUnavailableErrorRes = async (parsedOutput, context) => {
836
- const contents = smithyClient.map({});
837
- const data = parsedOutput.body;
838
- const doc = smithyClient.take(data, {});
839
- Object.assign(contents, doc);
840
- const exception = new ServiceUnavailableError({
841
- $metadata: deserializeMetadata(parsedOutput),
842
- ...contents,
843
- });
844
- return smithyClient.decorateServiceException(exception, parsedOutput.body);
845
- };
846
- const de_StatementTimeoutExceptionRes = async (parsedOutput, context) => {
847
- const contents = smithyClient.map({});
848
- const data = parsedOutput.body;
849
- const doc = smithyClient.take(data, {
850
- dbConnectionId: smithyClient.expectLong,
851
- message: smithyClient.expectString,
852
- });
853
- Object.assign(contents, doc);
854
- const exception = new StatementTimeoutException({
855
- $metadata: deserializeMetadata(parsedOutput),
856
- ...contents,
857
- });
858
- return smithyClient.decorateServiceException(exception, parsedOutput.body);
859
- };
860
- const de_TransactionNotFoundExceptionRes = async (parsedOutput, context) => {
861
- const contents = smithyClient.map({});
862
- const data = parsedOutput.body;
863
- const doc = smithyClient.take(data, {
864
- message: smithyClient.expectString,
865
- });
866
- Object.assign(contents, doc);
867
- const exception = new TransactionNotFoundException({
868
- $metadata: deserializeMetadata(parsedOutput),
869
- ...contents,
870
- });
871
- return smithyClient.decorateServiceException(exception, parsedOutput.body);
872
- };
873
- const de_UnsupportedResultExceptionRes = async (parsedOutput, context) => {
874
- const contents = smithyClient.map({});
875
- const data = parsedOutput.body;
876
- const doc = smithyClient.take(data, {
877
- message: smithyClient.expectString,
878
- });
879
- Object.assign(contents, doc);
880
- const exception = new UnsupportedResultException({
881
- $metadata: deserializeMetadata(parsedOutput),
882
- ...contents,
883
- });
884
- return smithyClient.decorateServiceException(exception, parsedOutput.body);
885
- };
886
- const se_ArrayOfArray = (input, context) => {
887
- return input
888
- .filter((e) => e != null)
889
- .map((entry) => {
890
- return se_ArrayValue(entry);
891
- });
892
- };
893
- const se_ArrayValue = (input, context) => {
894
- return exports.ArrayValue.visit(input, {
895
- arrayValues: (value) => ({ arrayValues: se_ArrayOfArray(value) }),
896
- booleanValues: (value) => ({ booleanValues: smithyClient._json(value) }),
897
- doubleValues: (value) => ({ doubleValues: se_DoubleArray(value) }),
898
- longValues: (value) => ({ longValues: smithyClient._json(value) }),
899
- stringValues: (value) => ({ stringValues: smithyClient._json(value) }),
900
- _: (name, value) => ({ [name]: value }),
901
- });
902
- };
903
- const se_DoubleArray = (input, context) => {
904
- return input
905
- .filter((e) => e != null)
906
- .map((entry) => {
907
- return smithyClient.serializeFloat(entry);
908
- });
909
- };
910
- const se_Field = (input, context) => {
911
- return exports.Field.visit(input, {
912
- arrayValue: (value) => ({ arrayValue: se_ArrayValue(value) }),
913
- blobValue: (value) => ({ blobValue: context.base64Encoder(value) }),
914
- booleanValue: (value) => ({ booleanValue: value }),
915
- doubleValue: (value) => ({ doubleValue: smithyClient.serializeFloat(value) }),
916
- isNull: (value) => ({ isNull: value }),
917
- longValue: (value) => ({ longValue: value }),
918
- stringValue: (value) => ({ stringValue: value }),
919
- _: (name, value) => ({ [name]: value }),
920
- });
921
- };
922
- const se_SqlParameter = (input, context) => {
923
- return smithyClient.take(input, {
924
- name: [],
925
- typeHint: [],
926
- value: (_) => se_Field(_, context),
927
- });
928
- };
929
- const se_SqlParameterSets = (input, context) => {
930
- return input
931
- .filter((e) => e != null)
932
- .map((entry) => {
933
- return se_SqlParametersList(entry, context);
934
- });
935
- };
936
- const se_SqlParametersList = (input, context) => {
937
- return input
938
- .filter((e) => e != null)
939
- .map((entry) => {
940
- return se_SqlParameter(entry, context);
941
- });
942
- };
943
- const de_ArrayOfArray = (output, context) => {
944
- const retVal = (output || [])
945
- .filter((e) => e != null)
946
- .map((entry) => {
947
- return de_ArrayValue(core$1.awsExpectUnion(entry));
948
- });
949
- return retVal;
950
- };
951
- const de_ArrayValue = (output, context) => {
952
- if (output.arrayValues != null) {
953
- return {
954
- arrayValues: de_ArrayOfArray(output.arrayValues),
955
- };
956
- }
957
- if (output.booleanValues != null) {
958
- return {
959
- booleanValues: smithyClient._json(output.booleanValues),
960
- };
961
- }
962
- if (output.doubleValues != null) {
963
- return {
964
- doubleValues: de_DoubleArray(output.doubleValues),
965
- };
966
- }
967
- if (output.longValues != null) {
968
- return {
969
- longValues: smithyClient._json(output.longValues),
970
- };
971
- }
972
- if (output.stringValues != null) {
973
- return {
974
- stringValues: smithyClient._json(output.stringValues),
975
- };
976
- }
977
- return { $unknown: Object.entries(output)[0] };
978
- };
979
- const de_ArrayValueList = (output, context) => {
980
- const retVal = (output || [])
981
- .filter((e) => e != null)
982
- .map((entry) => {
983
- return de_Value(core$1.awsExpectUnion(entry), context);
984
- });
985
- return retVal;
986
- };
987
- const de_DoubleArray = (output, context) => {
988
- const retVal = (output || [])
989
- .filter((e) => e != null)
990
- .map((entry) => {
991
- return smithyClient.limitedParseDouble(entry);
992
- });
993
- return retVal;
994
- };
995
- const de_Field = (output, context) => {
996
- if (output.arrayValue != null) {
997
- return {
998
- arrayValue: de_ArrayValue(core$1.awsExpectUnion(output.arrayValue)),
999
- };
1000
- }
1001
- if (output.blobValue != null) {
1002
- return {
1003
- blobValue: context.base64Decoder(output.blobValue),
1004
- };
1005
- }
1006
- if (smithyClient.expectBoolean(output.booleanValue) !== undefined) {
1007
- return { booleanValue: smithyClient.expectBoolean(output.booleanValue) };
1008
- }
1009
- if (smithyClient.limitedParseDouble(output.doubleValue) !== undefined) {
1010
- return { doubleValue: smithyClient.limitedParseDouble(output.doubleValue) };
1011
- }
1012
- if (smithyClient.expectBoolean(output.isNull) !== undefined) {
1013
- return { isNull: smithyClient.expectBoolean(output.isNull) };
1014
- }
1015
- if (smithyClient.expectLong(output.longValue) !== undefined) {
1016
- return { longValue: smithyClient.expectLong(output.longValue) };
1017
- }
1018
- if (smithyClient.expectString(output.stringValue) !== undefined) {
1019
- return { stringValue: smithyClient.expectString(output.stringValue) };
1020
- }
1021
- return { $unknown: Object.entries(output)[0] };
1022
- };
1023
- const de_FieldList = (output, context) => {
1024
- const retVal = (output || [])
1025
- .filter((e) => e != null)
1026
- .map((entry) => {
1027
- return de_Field(core$1.awsExpectUnion(entry), context);
1028
- });
1029
- return retVal;
1030
- };
1031
- const de__Record = (output, context) => {
1032
- return smithyClient.take(output, {
1033
- values: (_) => de_Row(_, context),
1034
- });
1035
- };
1036
- const de_Records = (output, context) => {
1037
- const retVal = (output || [])
1038
- .filter((e) => e != null)
1039
- .map((entry) => {
1040
- return de__Record(entry, context);
1041
- });
1042
- return retVal;
1043
- };
1044
- const de_ResultFrame = (output, context) => {
1045
- return smithyClient.take(output, {
1046
- records: (_) => de_Records(_, context),
1047
- resultSetMetadata: smithyClient._json,
1048
- });
1049
- };
1050
- const de_Row = (output, context) => {
1051
- const retVal = (output || [])
1052
- .filter((e) => e != null)
1053
- .map((entry) => {
1054
- return de_Value(core$1.awsExpectUnion(entry), context);
1055
- });
1056
- return retVal;
1057
- };
1058
- const de_SqlRecords = (output, context) => {
1059
- const retVal = (output || [])
1060
- .filter((e) => e != null)
1061
- .map((entry) => {
1062
- return de_FieldList(entry, context);
1063
- });
1064
- return retVal;
1065
- };
1066
- const de_SqlStatementResult = (output, context) => {
1067
- return smithyClient.take(output, {
1068
- numberOfRecordsUpdated: smithyClient.expectLong,
1069
- resultFrame: (_) => de_ResultFrame(_, context),
1070
- });
1071
- };
1072
- const de_SqlStatementResults = (output, context) => {
1073
- const retVal = (output || [])
1074
- .filter((e) => e != null)
1075
- .map((entry) => {
1076
- return de_SqlStatementResult(entry, context);
1077
- });
1078
- return retVal;
1079
- };
1080
- const de_StructValue = (output, context) => {
1081
- return smithyClient.take(output, {
1082
- attributes: (_) => de_ArrayValueList(_, context),
1083
- });
1084
- };
1085
- const de_UpdateResult = (output, context) => {
1086
- return smithyClient.take(output, {
1087
- generatedFields: (_) => de_FieldList(_, context),
1088
- });
1089
- };
1090
- const de_UpdateResults = (output, context) => {
1091
- const retVal = (output || [])
1092
- .filter((e) => e != null)
1093
- .map((entry) => {
1094
- return de_UpdateResult(entry, context);
1095
- });
1096
- return retVal;
1097
- };
1098
- const de_Value = (output, context) => {
1099
- if (output.arrayValues != null) {
1100
- return {
1101
- arrayValues: de_ArrayValueList(output.arrayValues, context),
1102
- };
1103
- }
1104
- if (smithyClient.expectLong(output.bigIntValue) !== undefined) {
1105
- return { bigIntValue: smithyClient.expectLong(output.bigIntValue) };
1106
- }
1107
- if (smithyClient.expectBoolean(output.bitValue) !== undefined) {
1108
- return { bitValue: smithyClient.expectBoolean(output.bitValue) };
1109
- }
1110
- if (output.blobValue != null) {
1111
- return {
1112
- blobValue: context.base64Decoder(output.blobValue),
1113
- };
1114
- }
1115
- if (smithyClient.limitedParseDouble(output.doubleValue) !== undefined) {
1116
- return { doubleValue: smithyClient.limitedParseDouble(output.doubleValue) };
1117
- }
1118
- if (smithyClient.expectInt32(output.intValue) !== undefined) {
1119
- return { intValue: smithyClient.expectInt32(output.intValue) };
1120
- }
1121
- if (smithyClient.expectBoolean(output.isNull) !== undefined) {
1122
- return { isNull: smithyClient.expectBoolean(output.isNull) };
1123
- }
1124
- if (smithyClient.limitedParseFloat32(output.realValue) !== undefined) {
1125
- return { realValue: smithyClient.limitedParseFloat32(output.realValue) };
1126
- }
1127
- if (smithyClient.expectString(output.stringValue) !== undefined) {
1128
- return { stringValue: smithyClient.expectString(output.stringValue) };
1129
- }
1130
- if (output.structValue != null) {
1131
- return {
1132
- structValue: de_StructValue(output.structValue, context),
1133
- };
1134
- }
1135
- return { $unknown: Object.entries(output)[0] };
1136
- };
1137
- const deserializeMetadata = (output) => ({
1138
- httpStatusCode: output.statusCode,
1139
- requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
1140
- extendedRequestId: output.headers["x-amz-id-2"],
1141
- cfId: output.headers["x-amz-cf-id"],
1142
- });
409
+ const _ADE = "AccessDeniedException";
410
+ const _AOA = "ArrayOfArray";
411
+ const _AV = "ArrayValue";
412
+ const _AVL = "ArrayValueList";
413
+ const _BES = "BatchExecuteStatement";
414
+ const _BESR = "BatchExecuteStatementRequest";
415
+ const _BESRa = "BatchExecuteStatementResponse";
416
+ const _BRE = "BadRequestException";
417
+ const _BT = "BeginTransaction";
418
+ const _BTR = "BeginTransactionRequest";
419
+ const _BTRe = "BeginTransactionResponse";
420
+ const _CM = "ColumnMetadata";
421
+ const _CT = "CommitTransaction";
422
+ const _CTR = "CommitTransactionRequest";
423
+ const _CTRo = "CommitTransactionResponse";
424
+ const _DEE = "DatabaseErrorException";
425
+ const _DNFE = "DatabaseNotFoundException";
426
+ const _DRE = "DatabaseResumingException";
427
+ const _DUE = "DatabaseUnavailableException";
428
+ const _ES = "ExecuteSql";
429
+ const _ESR = "ExecuteSqlRequest";
430
+ const _ESRx = "ExecuteSqlResponse";
431
+ const _ESRxe = "ExecuteStatementRequest";
432
+ const _ESRxec = "ExecuteStatementResponse";
433
+ const _ESx = "ExecuteStatement";
434
+ const _F = "Field";
435
+ const _FE = "ForbiddenException";
436
+ const _FL = "FieldList";
437
+ const _HENEE = "HttpEndpointNotEnabledException";
438
+ const _IRSE = "InvalidResourceStateException";
439
+ const _ISE = "InvalidSecretException";
440
+ const _ISEE = "InternalServerErrorException";
441
+ const _M = "Metadata";
442
+ const _NFE = "NotFoundException";
443
+ const _R = "Record";
444
+ const _RF = "ResultFrame";
445
+ const _RSM = "ResultSetMetadata";
446
+ const _RSO = "ResultSetOptions";
447
+ const _RT = "RollbackTransaction";
448
+ const _RTR = "RollbackTransactionRequest";
449
+ const _RTRo = "RollbackTransactionResponse";
450
+ const _Re = "Records";
451
+ const _Ro = "Row";
452
+ const _SEE = "SecretsErrorException";
453
+ const _SP = "SqlParameter";
454
+ const _SPL = "SqlParametersList";
455
+ const _SPS = "SqlParameterSets";
456
+ const _SR = "SqlRecords";
457
+ const _SSR = "SqlStatementResult";
458
+ const _SSRq = "SqlStatementResults";
459
+ const _STE = "StatementTimeoutException";
460
+ const _SUE = "ServiceUnavailableError";
461
+ const _SV = "StructValue";
462
+ const _TNFE = "TransactionNotFoundException";
463
+ const _UR = "UpdateResult";
464
+ const _URE = "UnsupportedResultException";
465
+ const _URp = "UpdateResults";
466
+ const _V = "Value";
467
+ const _a = "attributes";
468
+ const _aBCT = "arrayBaseColumnType";
469
+ const _aSSA = "awsSecretStoreArn";
470
+ const _aV = "arrayValues";
471
+ const _aVr = "arrayValue";
472
+ const _bIV = "bigIntValue";
473
+ const _bV = "booleanValues";
474
+ const _bVi = "bitValue";
475
+ const _bVl = "blobValue";
476
+ const _bVo = "booleanValue";
477
+ const _c = "client";
478
+ const _cAT = "continueAfterTimeout";
479
+ const _cC = "columnCount";
480
+ const _cM = "columnMetadata";
481
+ const _d = "database";
482
+ const _dCI = "dbConnectionId";
483
+ const _dCOIA = "dbClusterOrInstanceArn";
484
+ const _dRT = "decimalReturnType";
485
+ const _dV = "doubleValues";
486
+ const _dVo = "doubleValue";
487
+ const _e = "error";
488
+ const _fR = "formattedRecords";
489
+ const _fRA = "formatRecordsAs";
490
+ const _gF = "generatedFields";
491
+ const _h = "http";
492
+ const _hE = "httpError";
493
+ const _iAI = "isAutoIncrement";
494
+ const _iC = "isCurrency";
495
+ const _iCS = "isCaseSensitive";
496
+ const _iN = "isNull";
497
+ const _iRM = "includeResultMetadata";
498
+ const _iS = "isSigned";
499
+ const _iV = "intValue";
500
+ const _l = "label";
501
+ const _lRT = "longReturnType";
502
+ const _lV = "longValues";
503
+ const _lVo = "longValue";
504
+ const _m = "message";
505
+ const _n = "name";
506
+ const _nORU = "numberOfRecordsUpdated";
507
+ const _nu = "nullable";
508
+ const _p = "precision";
509
+ const _pS = "parameterSets";
510
+ const _pa = "parameters";
511
+ const _r = "records";
512
+ const _rA = "resourceArn";
513
+ const _rF = "resultFrame";
514
+ const _rSM = "resultSetMetadata";
515
+ const _rSO = "resultSetOptions";
516
+ const _rV = "realValue";
517
+ const _s = "sql";
518
+ const _sA = "secretArn";
519
+ const _sN = "schemaName";
520
+ const _sS = "sqlStatements";
521
+ const _sSR = "sqlStatementResults";
522
+ const _sV = "stringValues";
523
+ const _sVt = "stringValue";
524
+ const _sVtr = "structValue";
525
+ const _sc = "schema";
526
+ const _sca = "scale";
527
+ const _se = "server";
528
+ const _sm = "smithy.ts.sdk.synthetic.com.amazonaws.rdsdata";
529
+ const _t = "type";
530
+ const _tH = "typeHint";
531
+ const _tI = "transactionId";
532
+ const _tN = "typeName";
533
+ const _tNa = "tableName";
534
+ const _tS = "transactionStatus";
535
+ const _uR = "updateResults";
536
+ const _v = "values";
537
+ const _va = "value";
538
+ const n0 = "com.amazonaws.rdsdata";
539
+ var AccessDeniedException = [
540
+ -3,
541
+ n0,
542
+ _ADE,
543
+ {
544
+ [_e]: _c,
545
+ [_hE]: 403,
546
+ },
547
+ [_m],
548
+ [0],
549
+ ];
550
+ schema.TypeRegistry.for(n0).registerError(AccessDeniedException, AccessDeniedException$1);
551
+ var BadRequestException = [
552
+ -3,
553
+ n0,
554
+ _BRE,
555
+ {
556
+ [_e]: _c,
557
+ [_hE]: 400,
558
+ },
559
+ [_m],
560
+ [0],
561
+ ];
562
+ schema.TypeRegistry.for(n0).registerError(BadRequestException, BadRequestException$1);
563
+ var BatchExecuteStatementRequest = [
564
+ 3,
565
+ n0,
566
+ _BESR,
567
+ 0,
568
+ [_rA, _sA, _s, _d, _sc, _pS, _tI],
569
+ [0, 0, 0, 0, 0, () => SqlParameterSets, 0],
570
+ ];
571
+ var BatchExecuteStatementResponse = [3, n0, _BESRa, 0, [_uR], [() => UpdateResults]];
572
+ var BeginTransactionRequest = [3, n0, _BTR, 0, [_rA, _sA, _d, _sc], [0, 0, 0, 0]];
573
+ var BeginTransactionResponse = [3, n0, _BTRe, 0, [_tI], [0]];
574
+ var ColumnMetadata = [
575
+ 3,
576
+ n0,
577
+ _CM,
578
+ 0,
579
+ [_n, _t, _tN, _l, _sN, _tNa, _iAI, _iS, _iC, _iCS, _nu, _p, _sca, _aBCT],
580
+ [0, 1, 0, 0, 0, 0, 2, 2, 2, 2, 1, 1, 1, 1],
581
+ ];
582
+ var CommitTransactionRequest = [3, n0, _CTR, 0, [_rA, _sA, _tI], [0, 0, 0]];
583
+ var CommitTransactionResponse = [3, n0, _CTRo, 0, [_tS], [0]];
584
+ var DatabaseErrorException = [
585
+ -3,
586
+ n0,
587
+ _DEE,
588
+ {
589
+ [_e]: _c,
590
+ [_hE]: 400,
591
+ },
592
+ [_m],
593
+ [0],
594
+ ];
595
+ schema.TypeRegistry.for(n0).registerError(DatabaseErrorException, DatabaseErrorException$1);
596
+ var DatabaseNotFoundException = [
597
+ -3,
598
+ n0,
599
+ _DNFE,
600
+ {
601
+ [_e]: _c,
602
+ [_hE]: 404,
603
+ },
604
+ [_m],
605
+ [0],
606
+ ];
607
+ schema.TypeRegistry.for(n0).registerError(DatabaseNotFoundException, DatabaseNotFoundException$1);
608
+ var DatabaseResumingException = [
609
+ -3,
610
+ n0,
611
+ _DRE,
612
+ {
613
+ [_e]: _c,
614
+ [_hE]: 400,
615
+ },
616
+ [_m],
617
+ [0],
618
+ ];
619
+ schema.TypeRegistry.for(n0).registerError(DatabaseResumingException, DatabaseResumingException$1);
620
+ var DatabaseUnavailableException = [
621
+ -3,
622
+ n0,
623
+ _DUE,
624
+ {
625
+ [_e]: _se,
626
+ [_hE]: 504,
627
+ },
628
+ [],
629
+ [],
630
+ ];
631
+ schema.TypeRegistry.for(n0).registerError(DatabaseUnavailableException, DatabaseUnavailableException$1);
632
+ var ExecuteSqlRequest = [3, n0, _ESR, 0, [_dCOIA, _aSSA, _sS, _d, _sc], [0, 0, 0, 0, 0]];
633
+ var ExecuteSqlResponse = [3, n0, _ESRx, 0, [_sSR], [() => SqlStatementResults]];
634
+ var ExecuteStatementRequest = [
635
+ 3,
636
+ n0,
637
+ _ESRxe,
638
+ 0,
639
+ [_rA, _sA, _s, _d, _sc, _pa, _tI, _iRM, _cAT, _rSO, _fRA],
640
+ [0, 0, 0, 0, 0, () => SqlParametersList, 0, 2, 2, () => ResultSetOptions, 0],
641
+ ];
642
+ var ExecuteStatementResponse = [
643
+ 3,
644
+ n0,
645
+ _ESRxec,
646
+ 0,
647
+ [_r, _cM, _nORU, _gF, _fR],
648
+ [() => SqlRecords, () => Metadata, 1, () => FieldList, 0],
649
+ ];
650
+ var ForbiddenException = [
651
+ -3,
652
+ n0,
653
+ _FE,
654
+ {
655
+ [_e]: _c,
656
+ [_hE]: 403,
657
+ },
658
+ [_m],
659
+ [0],
660
+ ];
661
+ schema.TypeRegistry.for(n0).registerError(ForbiddenException, ForbiddenException$1);
662
+ var HttpEndpointNotEnabledException = [
663
+ -3,
664
+ n0,
665
+ _HENEE,
666
+ {
667
+ [_e]: _c,
668
+ [_hE]: 400,
669
+ },
670
+ [_m],
671
+ [0],
672
+ ];
673
+ schema.TypeRegistry.for(n0).registerError(HttpEndpointNotEnabledException, HttpEndpointNotEnabledException$1);
674
+ var InternalServerErrorException = [
675
+ -3,
676
+ n0,
677
+ _ISEE,
678
+ {
679
+ [_e]: _se,
680
+ [_hE]: 500,
681
+ },
682
+ [],
683
+ [],
684
+ ];
685
+ schema.TypeRegistry.for(n0).registerError(InternalServerErrorException, InternalServerErrorException$1);
686
+ var InvalidResourceStateException = [
687
+ -3,
688
+ n0,
689
+ _IRSE,
690
+ {
691
+ [_e]: _c,
692
+ [_hE]: 400,
693
+ },
694
+ [_m],
695
+ [0],
696
+ ];
697
+ schema.TypeRegistry.for(n0).registerError(InvalidResourceStateException, InvalidResourceStateException$1);
698
+ var InvalidSecretException = [
699
+ -3,
700
+ n0,
701
+ _ISE,
702
+ {
703
+ [_e]: _c,
704
+ [_hE]: 400,
705
+ },
706
+ [_m],
707
+ [0],
708
+ ];
709
+ schema.TypeRegistry.for(n0).registerError(InvalidSecretException, InvalidSecretException$1);
710
+ var NotFoundException = [
711
+ -3,
712
+ n0,
713
+ _NFE,
714
+ {
715
+ [_e]: _c,
716
+ [_hE]: 404,
717
+ },
718
+ [_m],
719
+ [0],
720
+ ];
721
+ schema.TypeRegistry.for(n0).registerError(NotFoundException, NotFoundException$1);
722
+ var _Record = [3, n0, _R, 0, [_v], [() => Row]];
723
+ var ResultFrame = [3, n0, _RF, 0, [_rSM, _r], [() => ResultSetMetadata, () => Records]];
724
+ var ResultSetMetadata = [3, n0, _RSM, 0, [_cC, _cM], [1, () => Metadata]];
725
+ var ResultSetOptions = [3, n0, _RSO, 0, [_dRT, _lRT], [0, 0]];
726
+ var RollbackTransactionRequest = [3, n0, _RTR, 0, [_rA, _sA, _tI], [0, 0, 0]];
727
+ var RollbackTransactionResponse = [3, n0, _RTRo, 0, [_tS], [0]];
728
+ var SecretsErrorException = [
729
+ -3,
730
+ n0,
731
+ _SEE,
732
+ {
733
+ [_e]: _c,
734
+ [_hE]: 400,
735
+ },
736
+ [_m],
737
+ [0],
738
+ ];
739
+ schema.TypeRegistry.for(n0).registerError(SecretsErrorException, SecretsErrorException$1);
740
+ var ServiceUnavailableError = [
741
+ -3,
742
+ n0,
743
+ _SUE,
744
+ {
745
+ [_e]: _se,
746
+ [_hE]: 503,
747
+ },
748
+ [],
749
+ [],
750
+ ];
751
+ schema.TypeRegistry.for(n0).registerError(ServiceUnavailableError, ServiceUnavailableError$1);
752
+ var SqlParameter = [3, n0, _SP, 0, [_n, _va, _tH], [0, () => Field, 0]];
753
+ var SqlStatementResult = [3, n0, _SSR, 0, [_rF, _nORU], [() => ResultFrame, 1]];
754
+ var StatementTimeoutException = [
755
+ -3,
756
+ n0,
757
+ _STE,
758
+ {
759
+ [_e]: _c,
760
+ [_hE]: 400,
761
+ },
762
+ [_m, _dCI],
763
+ [0, 1],
764
+ ];
765
+ schema.TypeRegistry.for(n0).registerError(StatementTimeoutException, StatementTimeoutException$1);
766
+ var StructValue = [3, n0, _SV, 0, [_a], [() => ArrayValueList]];
767
+ var TransactionNotFoundException = [
768
+ -3,
769
+ n0,
770
+ _TNFE,
771
+ {
772
+ [_e]: _c,
773
+ [_hE]: 404,
774
+ },
775
+ [_m],
776
+ [0],
777
+ ];
778
+ schema.TypeRegistry.for(n0).registerError(TransactionNotFoundException, TransactionNotFoundException$1);
779
+ var UnsupportedResultException = [
780
+ -3,
781
+ n0,
782
+ _URE,
783
+ {
784
+ [_e]: _c,
785
+ [_hE]: 400,
786
+ },
787
+ [_m],
788
+ [0],
789
+ ];
790
+ schema.TypeRegistry.for(n0).registerError(UnsupportedResultException, UnsupportedResultException$1);
791
+ var UpdateResult = [3, n0, _UR, 0, [_gF], [() => FieldList]];
792
+ var RDSDataServiceException = [-3, _sm, "RDSDataServiceException", 0, [], []];
793
+ schema.TypeRegistry.for(_sm).registerError(RDSDataServiceException, RDSDataServiceException$1);
794
+ var ArrayOfArray = [1, n0, _AOA, 0, () => ArrayValue];
795
+ var ArrayValueList = [1, n0, _AVL, 0, () => Value];
796
+ var FieldList = [1, n0, _FL, 0, () => Field];
797
+ var Metadata = [1, n0, _M, 0, () => ColumnMetadata];
798
+ var Records = [1, n0, _Re, 0, () => _Record];
799
+ var Row = [1, n0, _Ro, 0, () => Value];
800
+ var SqlParameterSets = [1, n0, _SPS, 0, () => SqlParametersList];
801
+ var SqlParametersList = [1, n0, _SPL, 0, () => SqlParameter];
802
+ var SqlRecords = [1, n0, _SR, 0, () => FieldList];
803
+ var SqlStatementResults = [1, n0, _SSRq, 0, () => SqlStatementResult];
804
+ var UpdateResults = [1, n0, _URp, 0, () => UpdateResult];
805
+ var ArrayValue = [
806
+ 3,
807
+ n0,
808
+ _AV,
809
+ 0,
810
+ [_bV, _lV, _dV, _sV, _aV],
811
+ [64 | 2, 64 | 1, 64 | 1, 64 | 0, () => ArrayOfArray],
812
+ ];
813
+ var Field = [
814
+ 3,
815
+ n0,
816
+ _F,
817
+ 0,
818
+ [_iN, _bVo, _lVo, _dVo, _sVt, _bVl, _aVr],
819
+ [2, 2, 1, 1, 0, 21, () => ArrayValue],
820
+ ];
821
+ var Value = [
822
+ 3,
823
+ n0,
824
+ _V,
825
+ 0,
826
+ [_iN, _bVi, _bIV, _iV, _dVo, _rV, _sVt, _bVl, _aV, _sVtr],
827
+ [2, 2, 1, 1, 1, 1, 0, 21, () => ArrayValueList, () => StructValue],
828
+ ];
829
+ var BatchExecuteStatement = [
830
+ 9,
831
+ n0,
832
+ _BES,
833
+ {
834
+ [_h]: ["POST", "/BatchExecute", 200],
835
+ },
836
+ () => BatchExecuteStatementRequest,
837
+ () => BatchExecuteStatementResponse,
838
+ ];
839
+ var BeginTransaction = [
840
+ 9,
841
+ n0,
842
+ _BT,
843
+ {
844
+ [_h]: ["POST", "/BeginTransaction", 200],
845
+ },
846
+ () => BeginTransactionRequest,
847
+ () => BeginTransactionResponse,
848
+ ];
849
+ var CommitTransaction = [
850
+ 9,
851
+ n0,
852
+ _CT,
853
+ {
854
+ [_h]: ["POST", "/CommitTransaction", 200],
855
+ },
856
+ () => CommitTransactionRequest,
857
+ () => CommitTransactionResponse,
858
+ ];
859
+ var ExecuteSql = [
860
+ 9,
861
+ n0,
862
+ _ES,
863
+ {
864
+ [_h]: ["POST", "/ExecuteSql", 200],
865
+ },
866
+ () => ExecuteSqlRequest,
867
+ () => ExecuteSqlResponse,
868
+ ];
869
+ var ExecuteStatement = [
870
+ 9,
871
+ n0,
872
+ _ESx,
873
+ {
874
+ [_h]: ["POST", "/Execute", 200],
875
+ },
876
+ () => ExecuteStatementRequest,
877
+ () => ExecuteStatementResponse,
878
+ ];
879
+ var RollbackTransaction = [
880
+ 9,
881
+ n0,
882
+ _RT,
883
+ {
884
+ [_h]: ["POST", "/RollbackTransaction", 200],
885
+ },
886
+ () => RollbackTransactionRequest,
887
+ () => RollbackTransactionResponse,
888
+ ];
1143
889
 
1144
890
  class BatchExecuteStatementCommand extends smithyClient.Command
1145
891
  .classBuilder()
1146
892
  .ep(commonParams)
1147
893
  .m(function (Command, cs, config, o) {
1148
- return [
1149
- middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1150
- middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1151
- ];
894
+ return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1152
895
  })
1153
896
  .s("RdsDataService", "BatchExecuteStatement", {})
1154
897
  .n("RDSDataClient", "BatchExecuteStatementCommand")
1155
- .f(void 0, void 0)
1156
- .ser(se_BatchExecuteStatementCommand)
1157
- .de(de_BatchExecuteStatementCommand)
898
+ .sc(BatchExecuteStatement)
1158
899
  .build() {
1159
900
  }
1160
901
 
@@ -1162,16 +903,11 @@ class BeginTransactionCommand extends smithyClient.Command
1162
903
  .classBuilder()
1163
904
  .ep(commonParams)
1164
905
  .m(function (Command, cs, config, o) {
1165
- return [
1166
- middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1167
- middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1168
- ];
906
+ return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1169
907
  })
1170
908
  .s("RdsDataService", "BeginTransaction", {})
1171
909
  .n("RDSDataClient", "BeginTransactionCommand")
1172
- .f(void 0, void 0)
1173
- .ser(se_BeginTransactionCommand)
1174
- .de(de_BeginTransactionCommand)
910
+ .sc(BeginTransaction)
1175
911
  .build() {
1176
912
  }
1177
913
 
@@ -1179,16 +915,11 @@ class CommitTransactionCommand extends smithyClient.Command
1179
915
  .classBuilder()
1180
916
  .ep(commonParams)
1181
917
  .m(function (Command, cs, config, o) {
1182
- return [
1183
- middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1184
- middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1185
- ];
918
+ return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1186
919
  })
1187
920
  .s("RdsDataService", "CommitTransaction", {})
1188
921
  .n("RDSDataClient", "CommitTransactionCommand")
1189
- .f(void 0, void 0)
1190
- .ser(se_CommitTransactionCommand)
1191
- .de(de_CommitTransactionCommand)
922
+ .sc(CommitTransaction)
1192
923
  .build() {
1193
924
  }
1194
925
 
@@ -1196,16 +927,11 @@ class ExecuteSqlCommand extends smithyClient.Command
1196
927
  .classBuilder()
1197
928
  .ep(commonParams)
1198
929
  .m(function (Command, cs, config, o) {
1199
- return [
1200
- middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1201
- middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1202
- ];
930
+ return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1203
931
  })
1204
932
  .s("RdsDataService", "ExecuteSql", {})
1205
933
  .n("RDSDataClient", "ExecuteSqlCommand")
1206
- .f(void 0, void 0)
1207
- .ser(se_ExecuteSqlCommand)
1208
- .de(de_ExecuteSqlCommand)
934
+ .sc(ExecuteSql)
1209
935
  .build() {
1210
936
  }
1211
937
 
@@ -1213,16 +939,11 @@ class ExecuteStatementCommand extends smithyClient.Command
1213
939
  .classBuilder()
1214
940
  .ep(commonParams)
1215
941
  .m(function (Command, cs, config, o) {
1216
- return [
1217
- middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1218
- middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1219
- ];
942
+ return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1220
943
  })
1221
944
  .s("RdsDataService", "ExecuteStatement", {})
1222
945
  .n("RDSDataClient", "ExecuteStatementCommand")
1223
- .f(void 0, void 0)
1224
- .ser(se_ExecuteStatementCommand)
1225
- .de(de_ExecuteStatementCommand)
946
+ .sc(ExecuteStatement)
1226
947
  .build() {
1227
948
  }
1228
949
 
@@ -1230,16 +951,11 @@ class RollbackTransactionCommand extends smithyClient.Command
1230
951
  .classBuilder()
1231
952
  .ep(commonParams)
1232
953
  .m(function (Command, cs, config, o) {
1233
- return [
1234
- middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1235
- middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1236
- ];
954
+ return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1237
955
  })
1238
956
  .s("RdsDataService", "RollbackTransaction", {})
1239
957
  .n("RDSDataClient", "RollbackTransactionCommand")
1240
- .f(void 0, void 0)
1241
- .ser(se_RollbackTransactionCommand)
1242
- .de(de_RollbackTransactionCommand)
958
+ .sc(RollbackTransaction)
1243
959
  .build() {
1244
960
  }
1245
961
 
@@ -1263,33 +979,33 @@ Object.defineProperty(exports, "__Client", {
1263
979
  enumerable: true,
1264
980
  get: function () { return smithyClient.Client; }
1265
981
  });
1266
- exports.AccessDeniedException = AccessDeniedException;
1267
- exports.BadRequestException = BadRequestException;
982
+ exports.AccessDeniedException = AccessDeniedException$1;
983
+ exports.BadRequestException = BadRequestException$1;
1268
984
  exports.BatchExecuteStatementCommand = BatchExecuteStatementCommand;
1269
985
  exports.BeginTransactionCommand = BeginTransactionCommand;
1270
986
  exports.CommitTransactionCommand = CommitTransactionCommand;
1271
- exports.DatabaseErrorException = DatabaseErrorException;
1272
- exports.DatabaseNotFoundException = DatabaseNotFoundException;
1273
- exports.DatabaseResumingException = DatabaseResumingException;
1274
- exports.DatabaseUnavailableException = DatabaseUnavailableException;
987
+ exports.DatabaseErrorException = DatabaseErrorException$1;
988
+ exports.DatabaseNotFoundException = DatabaseNotFoundException$1;
989
+ exports.DatabaseResumingException = DatabaseResumingException$1;
990
+ exports.DatabaseUnavailableException = DatabaseUnavailableException$1;
1275
991
  exports.DecimalReturnType = DecimalReturnType;
1276
992
  exports.ExecuteSqlCommand = ExecuteSqlCommand;
1277
993
  exports.ExecuteStatementCommand = ExecuteStatementCommand;
1278
- exports.ForbiddenException = ForbiddenException;
1279
- exports.HttpEndpointNotEnabledException = HttpEndpointNotEnabledException;
1280
- exports.InternalServerErrorException = InternalServerErrorException;
1281
- exports.InvalidResourceStateException = InvalidResourceStateException;
1282
- exports.InvalidSecretException = InvalidSecretException;
994
+ exports.ForbiddenException = ForbiddenException$1;
995
+ exports.HttpEndpointNotEnabledException = HttpEndpointNotEnabledException$1;
996
+ exports.InternalServerErrorException = InternalServerErrorException$1;
997
+ exports.InvalidResourceStateException = InvalidResourceStateException$1;
998
+ exports.InvalidSecretException = InvalidSecretException$1;
1283
999
  exports.LongReturnType = LongReturnType;
1284
- exports.NotFoundException = NotFoundException;
1000
+ exports.NotFoundException = NotFoundException$1;
1285
1001
  exports.RDSData = RDSData;
1286
1002
  exports.RDSDataClient = RDSDataClient;
1287
- exports.RDSDataServiceException = RDSDataServiceException;
1003
+ exports.RDSDataServiceException = RDSDataServiceException$1;
1288
1004
  exports.RecordsFormatType = RecordsFormatType;
1289
1005
  exports.RollbackTransactionCommand = RollbackTransactionCommand;
1290
- exports.SecretsErrorException = SecretsErrorException;
1291
- exports.ServiceUnavailableError = ServiceUnavailableError;
1292
- exports.StatementTimeoutException = StatementTimeoutException;
1293
- exports.TransactionNotFoundException = TransactionNotFoundException;
1006
+ exports.SecretsErrorException = SecretsErrorException$1;
1007
+ exports.ServiceUnavailableError = ServiceUnavailableError$1;
1008
+ exports.StatementTimeoutException = StatementTimeoutException$1;
1009
+ exports.TransactionNotFoundException = TransactionNotFoundException$1;
1294
1010
  exports.TypeHint = TypeHint;
1295
- exports.UnsupportedResultException = UnsupportedResultException;
1011
+ exports.UnsupportedResultException = UnsupportedResultException$1;