@aws-sdk/client-rds-data 3.943.0 → 3.947.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 +23 -205
- package/dist-cjs/runtimeConfig.browser.js +2 -2
- package/dist-cjs/runtimeConfig.js +3 -4
- package/dist-es/RDSDataClient.js +2 -2
- package/dist-es/runtimeConfig.browser.js +2 -2
- package/dist-es/runtimeConfig.js +2 -3
- package/dist-es/schemas/schemas_0.js +23 -205
- package/dist-types/RDSData.d.ts +1 -1
- package/dist-types/RDSDataClient.d.ts +10 -10
- package/dist-types/auth/httpAuthExtensionConfiguration.d.ts +2 -2
- package/dist-types/auth/httpAuthSchemeProvider.d.ts +2 -2
- package/dist-types/commands/BatchExecuteStatementCommand.d.ts +3 -3
- package/dist-types/commands/BeginTransactionCommand.d.ts +3 -3
- package/dist-types/commands/CommitTransactionCommand.d.ts +3 -3
- package/dist-types/commands/ExecuteSqlCommand.d.ts +3 -3
- package/dist-types/commands/ExecuteStatementCommand.d.ts +3 -3
- package/dist-types/commands/RollbackTransactionCommand.d.ts +3 -3
- package/dist-types/endpoint/EndpointParameters.d.ts +13 -1
- package/dist-types/endpoint/endpointResolver.d.ts +5 -2
- package/dist-types/extensionConfiguration.d.ts +4 -4
- package/dist-types/models/RDSDataServiceException.d.ts +1 -1
- package/dist-types/models/errors.d.ts +1 -1
- package/dist-types/runtimeConfig.browser.d.ts +1 -1
- package/dist-types/runtimeConfig.d.ts +1 -1
- package/dist-types/runtimeConfig.native.d.ts +1 -1
- package/dist-types/runtimeConfig.shared.d.ts +1 -1
- package/dist-types/runtimeExtensions.d.ts +1 -1
- package/dist-types/schemas/schemas_0.d.ts +1 -1
- package/dist-types/ts3.4/RDSDataClient.d.ts +3 -3
- package/dist-types/ts3.4/auth/httpAuthExtensionConfiguration.d.ts +1 -1
- package/dist-types/ts3.4/models/RDSDataServiceException.d.ts +1 -1
- package/package.json +13 -12
package/dist-cjs/index.js
CHANGED
|
@@ -454,29 +454,9 @@ const _uR = "updateResults";
|
|
|
454
454
|
const _v = "values";
|
|
455
455
|
const _va = "value";
|
|
456
456
|
const n0 = "com.amazonaws.rdsdata";
|
|
457
|
-
var AccessDeniedException = [
|
|
458
|
-
-3,
|
|
459
|
-
n0,
|
|
460
|
-
_ADE,
|
|
461
|
-
{
|
|
462
|
-
[_e]: _c,
|
|
463
|
-
[_hE]: 403,
|
|
464
|
-
},
|
|
465
|
-
[_m],
|
|
466
|
-
[0],
|
|
467
|
-
];
|
|
457
|
+
var AccessDeniedException = [-3, n0, _ADE, { [_e]: _c, [_hE]: 403 }, [_m], [0]];
|
|
468
458
|
schema.TypeRegistry.for(n0).registerError(AccessDeniedException, AccessDeniedException$1);
|
|
469
|
-
var BadRequestException = [
|
|
470
|
-
-3,
|
|
471
|
-
n0,
|
|
472
|
-
_BRE,
|
|
473
|
-
{
|
|
474
|
-
[_e]: _c,
|
|
475
|
-
[_hE]: 400,
|
|
476
|
-
},
|
|
477
|
-
[_m],
|
|
478
|
-
[0],
|
|
479
|
-
];
|
|
459
|
+
var BadRequestException = [-3, n0, _BRE, { [_e]: _c, [_hE]: 400 }, [_m], [0]];
|
|
480
460
|
schema.TypeRegistry.for(n0).registerError(BadRequestException, BadRequestException$1);
|
|
481
461
|
var BatchExecuteStatementRequest = [
|
|
482
462
|
3,
|
|
@@ -499,53 +479,13 @@ var ColumnMetadata = [
|
|
|
499
479
|
];
|
|
500
480
|
var CommitTransactionRequest = [3, n0, _CTR, 0, [_rA, _sA, _tI], [0, 0, 0]];
|
|
501
481
|
var CommitTransactionResponse = [3, n0, _CTRo, 0, [_tS], [0]];
|
|
502
|
-
var DatabaseErrorException = [
|
|
503
|
-
-3,
|
|
504
|
-
n0,
|
|
505
|
-
_DEE,
|
|
506
|
-
{
|
|
507
|
-
[_e]: _c,
|
|
508
|
-
[_hE]: 400,
|
|
509
|
-
},
|
|
510
|
-
[_m],
|
|
511
|
-
[0],
|
|
512
|
-
];
|
|
482
|
+
var DatabaseErrorException = [-3, n0, _DEE, { [_e]: _c, [_hE]: 400 }, [_m], [0]];
|
|
513
483
|
schema.TypeRegistry.for(n0).registerError(DatabaseErrorException, DatabaseErrorException$1);
|
|
514
|
-
var DatabaseNotFoundException = [
|
|
515
|
-
-3,
|
|
516
|
-
n0,
|
|
517
|
-
_DNFE,
|
|
518
|
-
{
|
|
519
|
-
[_e]: _c,
|
|
520
|
-
[_hE]: 404,
|
|
521
|
-
},
|
|
522
|
-
[_m],
|
|
523
|
-
[0],
|
|
524
|
-
];
|
|
484
|
+
var DatabaseNotFoundException = [-3, n0, _DNFE, { [_e]: _c, [_hE]: 404 }, [_m], [0]];
|
|
525
485
|
schema.TypeRegistry.for(n0).registerError(DatabaseNotFoundException, DatabaseNotFoundException$1);
|
|
526
|
-
var DatabaseResumingException = [
|
|
527
|
-
-3,
|
|
528
|
-
n0,
|
|
529
|
-
_DRE,
|
|
530
|
-
{
|
|
531
|
-
[_e]: _c,
|
|
532
|
-
[_hE]: 400,
|
|
533
|
-
},
|
|
534
|
-
[_m],
|
|
535
|
-
[0],
|
|
536
|
-
];
|
|
486
|
+
var DatabaseResumingException = [-3, n0, _DRE, { [_e]: _c, [_hE]: 400 }, [_m], [0]];
|
|
537
487
|
schema.TypeRegistry.for(n0).registerError(DatabaseResumingException, DatabaseResumingException$1);
|
|
538
|
-
var DatabaseUnavailableException = [
|
|
539
|
-
-3,
|
|
540
|
-
n0,
|
|
541
|
-
_DUE,
|
|
542
|
-
{
|
|
543
|
-
[_e]: _se,
|
|
544
|
-
[_hE]: 504,
|
|
545
|
-
},
|
|
546
|
-
[],
|
|
547
|
-
[],
|
|
548
|
-
];
|
|
488
|
+
var DatabaseUnavailableException = [-3, n0, _DUE, { [_e]: _se, [_hE]: 504 }, [], []];
|
|
549
489
|
schema.TypeRegistry.for(n0).registerError(DatabaseUnavailableException, DatabaseUnavailableException$1);
|
|
550
490
|
var ExecuteSqlRequest = [3, n0, _ESR, 0, [_dCOIA, _aSSA, _sS, _d, _sc], [0, 0, 0, 0, 0]];
|
|
551
491
|
var ExecuteSqlResponse = [3, n0, _ESRx, 0, [_sSR], [() => SqlStatementResults]];
|
|
@@ -565,77 +505,17 @@ var ExecuteStatementResponse = [
|
|
|
565
505
|
[_r, _cM, _nORU, _gF, _fR],
|
|
566
506
|
[() => SqlRecords, () => Metadata, 1, () => FieldList, 0],
|
|
567
507
|
];
|
|
568
|
-
var ForbiddenException = [
|
|
569
|
-
-3,
|
|
570
|
-
n0,
|
|
571
|
-
_FE,
|
|
572
|
-
{
|
|
573
|
-
[_e]: _c,
|
|
574
|
-
[_hE]: 403,
|
|
575
|
-
},
|
|
576
|
-
[_m],
|
|
577
|
-
[0],
|
|
578
|
-
];
|
|
508
|
+
var ForbiddenException = [-3, n0, _FE, { [_e]: _c, [_hE]: 403 }, [_m], [0]];
|
|
579
509
|
schema.TypeRegistry.for(n0).registerError(ForbiddenException, ForbiddenException$1);
|
|
580
|
-
var HttpEndpointNotEnabledException = [
|
|
581
|
-
-3,
|
|
582
|
-
n0,
|
|
583
|
-
_HENEE,
|
|
584
|
-
{
|
|
585
|
-
[_e]: _c,
|
|
586
|
-
[_hE]: 400,
|
|
587
|
-
},
|
|
588
|
-
[_m],
|
|
589
|
-
[0],
|
|
590
|
-
];
|
|
510
|
+
var HttpEndpointNotEnabledException = [-3, n0, _HENEE, { [_e]: _c, [_hE]: 400 }, [_m], [0]];
|
|
591
511
|
schema.TypeRegistry.for(n0).registerError(HttpEndpointNotEnabledException, HttpEndpointNotEnabledException$1);
|
|
592
|
-
var InternalServerErrorException = [
|
|
593
|
-
-3,
|
|
594
|
-
n0,
|
|
595
|
-
_ISEE,
|
|
596
|
-
{
|
|
597
|
-
[_e]: _se,
|
|
598
|
-
[_hE]: 500,
|
|
599
|
-
},
|
|
600
|
-
[],
|
|
601
|
-
[],
|
|
602
|
-
];
|
|
512
|
+
var InternalServerErrorException = [-3, n0, _ISEE, { [_e]: _se, [_hE]: 500 }, [], []];
|
|
603
513
|
schema.TypeRegistry.for(n0).registerError(InternalServerErrorException, InternalServerErrorException$1);
|
|
604
|
-
var InvalidResourceStateException = [
|
|
605
|
-
-3,
|
|
606
|
-
n0,
|
|
607
|
-
_IRSE,
|
|
608
|
-
{
|
|
609
|
-
[_e]: _c,
|
|
610
|
-
[_hE]: 400,
|
|
611
|
-
},
|
|
612
|
-
[_m],
|
|
613
|
-
[0],
|
|
614
|
-
];
|
|
514
|
+
var InvalidResourceStateException = [-3, n0, _IRSE, { [_e]: _c, [_hE]: 400 }, [_m], [0]];
|
|
615
515
|
schema.TypeRegistry.for(n0).registerError(InvalidResourceStateException, InvalidResourceStateException$1);
|
|
616
|
-
var InvalidSecretException = [
|
|
617
|
-
-3,
|
|
618
|
-
n0,
|
|
619
|
-
_ISE,
|
|
620
|
-
{
|
|
621
|
-
[_e]: _c,
|
|
622
|
-
[_hE]: 400,
|
|
623
|
-
},
|
|
624
|
-
[_m],
|
|
625
|
-
[0],
|
|
626
|
-
];
|
|
516
|
+
var InvalidSecretException = [-3, n0, _ISE, { [_e]: _c, [_hE]: 400 }, [_m], [0]];
|
|
627
517
|
schema.TypeRegistry.for(n0).registerError(InvalidSecretException, InvalidSecretException$1);
|
|
628
|
-
var NotFoundException = [
|
|
629
|
-
-3,
|
|
630
|
-
n0,
|
|
631
|
-
_NFE,
|
|
632
|
-
{
|
|
633
|
-
[_e]: _c,
|
|
634
|
-
[_hE]: 404,
|
|
635
|
-
},
|
|
636
|
-
[_m],
|
|
637
|
-
[0],
|
|
638
|
-
];
|
|
518
|
+
var NotFoundException = [-3, n0, _NFE, { [_e]: _c, [_hE]: 404 }, [_m], [0]];
|
|
639
519
|
schema.TypeRegistry.for(n0).registerError(NotFoundException, NotFoundException$1);
|
|
640
520
|
var _Record = [3, n0, _R, 0, [_v], [() => Row]];
|
|
641
521
|
var ResultFrame = [3, n0, _RF, 0, [_rSM, _r], [() => ResultSetMetadata, () => Records]];
|
|
@@ -643,68 +523,18 @@ var ResultSetMetadata = [3, n0, _RSM, 0, [_cC, _cM], [1, () => Metadata]];
|
|
|
643
523
|
var ResultSetOptions = [3, n0, _RSO, 0, [_dRT, _lRT], [0, 0]];
|
|
644
524
|
var RollbackTransactionRequest = [3, n0, _RTR, 0, [_rA, _sA, _tI], [0, 0, 0]];
|
|
645
525
|
var RollbackTransactionResponse = [3, n0, _RTRo, 0, [_tS], [0]];
|
|
646
|
-
var SecretsErrorException = [
|
|
647
|
-
-3,
|
|
648
|
-
n0,
|
|
649
|
-
_SEE,
|
|
650
|
-
{
|
|
651
|
-
[_e]: _c,
|
|
652
|
-
[_hE]: 400,
|
|
653
|
-
},
|
|
654
|
-
[_m],
|
|
655
|
-
[0],
|
|
656
|
-
];
|
|
526
|
+
var SecretsErrorException = [-3, n0, _SEE, { [_e]: _c, [_hE]: 400 }, [_m], [0]];
|
|
657
527
|
schema.TypeRegistry.for(n0).registerError(SecretsErrorException, SecretsErrorException$1);
|
|
658
|
-
var ServiceUnavailableError = [
|
|
659
|
-
-3,
|
|
660
|
-
n0,
|
|
661
|
-
_SUE,
|
|
662
|
-
{
|
|
663
|
-
[_e]: _se,
|
|
664
|
-
[_hE]: 503,
|
|
665
|
-
},
|
|
666
|
-
[],
|
|
667
|
-
[],
|
|
668
|
-
];
|
|
528
|
+
var ServiceUnavailableError = [-3, n0, _SUE, { [_e]: _se, [_hE]: 503 }, [], []];
|
|
669
529
|
schema.TypeRegistry.for(n0).registerError(ServiceUnavailableError, ServiceUnavailableError$1);
|
|
670
530
|
var SqlParameter = [3, n0, _SP, 0, [_n, _va, _tH], [0, () => Field, 0]];
|
|
671
531
|
var SqlStatementResult = [3, n0, _SSR, 0, [_rF, _nORU], [() => ResultFrame, 1]];
|
|
672
|
-
var StatementTimeoutException = [
|
|
673
|
-
-3,
|
|
674
|
-
n0,
|
|
675
|
-
_STE,
|
|
676
|
-
{
|
|
677
|
-
[_e]: _c,
|
|
678
|
-
[_hE]: 400,
|
|
679
|
-
},
|
|
680
|
-
[_m, _dCI],
|
|
681
|
-
[0, 1],
|
|
682
|
-
];
|
|
532
|
+
var StatementTimeoutException = [-3, n0, _STE, { [_e]: _c, [_hE]: 400 }, [_m, _dCI], [0, 1]];
|
|
683
533
|
schema.TypeRegistry.for(n0).registerError(StatementTimeoutException, StatementTimeoutException$1);
|
|
684
534
|
var StructValue = [3, n0, _SV, 0, [_a], [() => ArrayValueList]];
|
|
685
|
-
var TransactionNotFoundException = [
|
|
686
|
-
-3,
|
|
687
|
-
n0,
|
|
688
|
-
_TNFE,
|
|
689
|
-
{
|
|
690
|
-
[_e]: _c,
|
|
691
|
-
[_hE]: 404,
|
|
692
|
-
},
|
|
693
|
-
[_m],
|
|
694
|
-
[0],
|
|
695
|
-
];
|
|
535
|
+
var TransactionNotFoundException = [-3, n0, _TNFE, { [_e]: _c, [_hE]: 404 }, [_m], [0]];
|
|
696
536
|
schema.TypeRegistry.for(n0).registerError(TransactionNotFoundException, TransactionNotFoundException$1);
|
|
697
|
-
var UnsupportedResultException = [
|
|
698
|
-
-3,
|
|
699
|
-
n0,
|
|
700
|
-
_URE,
|
|
701
|
-
{
|
|
702
|
-
[_e]: _c,
|
|
703
|
-
[_hE]: 400,
|
|
704
|
-
},
|
|
705
|
-
[_m],
|
|
706
|
-
[0],
|
|
707
|
-
];
|
|
537
|
+
var UnsupportedResultException = [-3, n0, _URE, { [_e]: _c, [_hE]: 400 }, [_m], [0]];
|
|
708
538
|
schema.TypeRegistry.for(n0).registerError(UnsupportedResultException, UnsupportedResultException$1);
|
|
709
539
|
var UpdateResult = [3, n0, _UR, 0, [_gF], [() => FieldList]];
|
|
710
540
|
var RDSDataServiceException = [-3, _sm, "RDSDataServiceException", 0, [], []];
|
|
@@ -748,9 +578,7 @@ var BatchExecuteStatement = [
|
|
|
748
578
|
9,
|
|
749
579
|
n0,
|
|
750
580
|
_BES,
|
|
751
|
-
{
|
|
752
|
-
[_h]: ["POST", "/BatchExecute", 200],
|
|
753
|
-
},
|
|
581
|
+
{ [_h]: ["POST", "/BatchExecute", 200] },
|
|
754
582
|
() => BatchExecuteStatementRequest,
|
|
755
583
|
() => BatchExecuteStatementResponse,
|
|
756
584
|
];
|
|
@@ -758,9 +586,7 @@ var BeginTransaction = [
|
|
|
758
586
|
9,
|
|
759
587
|
n0,
|
|
760
588
|
_BT,
|
|
761
|
-
{
|
|
762
|
-
[_h]: ["POST", "/BeginTransaction", 200],
|
|
763
|
-
},
|
|
589
|
+
{ [_h]: ["POST", "/BeginTransaction", 200] },
|
|
764
590
|
() => BeginTransactionRequest,
|
|
765
591
|
() => BeginTransactionResponse,
|
|
766
592
|
];
|
|
@@ -768,9 +594,7 @@ var CommitTransaction = [
|
|
|
768
594
|
9,
|
|
769
595
|
n0,
|
|
770
596
|
_CT,
|
|
771
|
-
{
|
|
772
|
-
[_h]: ["POST", "/CommitTransaction", 200],
|
|
773
|
-
},
|
|
597
|
+
{ [_h]: ["POST", "/CommitTransaction", 200] },
|
|
774
598
|
() => CommitTransactionRequest,
|
|
775
599
|
() => CommitTransactionResponse,
|
|
776
600
|
];
|
|
@@ -778,9 +602,7 @@ var ExecuteSql = [
|
|
|
778
602
|
9,
|
|
779
603
|
n0,
|
|
780
604
|
_ES,
|
|
781
|
-
{
|
|
782
|
-
[_h]: ["POST", "/ExecuteSql", 200],
|
|
783
|
-
},
|
|
605
|
+
{ [_h]: ["POST", "/ExecuteSql", 200] },
|
|
784
606
|
() => ExecuteSqlRequest,
|
|
785
607
|
() => ExecuteSqlResponse,
|
|
786
608
|
];
|
|
@@ -788,9 +610,7 @@ var ExecuteStatement = [
|
|
|
788
610
|
9,
|
|
789
611
|
n0,
|
|
790
612
|
_ESx,
|
|
791
|
-
{
|
|
792
|
-
[_h]: ["POST", "/Execute", 200],
|
|
793
|
-
},
|
|
613
|
+
{ [_h]: ["POST", "/Execute", 200] },
|
|
794
614
|
() => ExecuteStatementRequest,
|
|
795
615
|
() => ExecuteStatementResponse,
|
|
796
616
|
];
|
|
@@ -798,9 +618,7 @@ var RollbackTransaction = [
|
|
|
798
618
|
9,
|
|
799
619
|
n0,
|
|
800
620
|
_RT,
|
|
801
|
-
{
|
|
802
|
-
[_h]: ["POST", "/RollbackTransaction", 200],
|
|
803
|
-
},
|
|
621
|
+
{ [_h]: ["POST", "/RollbackTransaction", 200] },
|
|
804
622
|
() => RollbackTransactionRequest,
|
|
805
623
|
() => RollbackTransactionResponse,
|
|
806
624
|
];
|
|
@@ -8,11 +8,11 @@ const util_user_agent_browser_1 = require("@aws-sdk/util-user-agent-browser");
|
|
|
8
8
|
const config_resolver_1 = require("@smithy/config-resolver");
|
|
9
9
|
const fetch_http_handler_1 = require("@smithy/fetch-http-handler");
|
|
10
10
|
const invalid_dependency_1 = require("@smithy/invalid-dependency");
|
|
11
|
+
const smithy_client_1 = require("@smithy/smithy-client");
|
|
11
12
|
const util_body_length_browser_1 = require("@smithy/util-body-length-browser");
|
|
13
|
+
const util_defaults_mode_browser_1 = require("@smithy/util-defaults-mode-browser");
|
|
12
14
|
const util_retry_1 = require("@smithy/util-retry");
|
|
13
15
|
const runtimeConfig_shared_1 = require("./runtimeConfig.shared");
|
|
14
|
-
const smithy_client_1 = require("@smithy/smithy-client");
|
|
15
|
-
const util_defaults_mode_browser_1 = require("@smithy/util-defaults-mode-browser");
|
|
16
16
|
const getRuntimeConfig = (config) => {
|
|
17
17
|
const defaultsMode = (0, util_defaults_mode_browser_1.resolveDefaultsModeConfig)(config);
|
|
18
18
|
const defaultConfigProvider = () => defaultsMode().then(smithy_client_1.loadConfigsForDefaultMode);
|
|
@@ -11,14 +11,13 @@ const hash_node_1 = require("@smithy/hash-node");
|
|
|
11
11
|
const middleware_retry_1 = require("@smithy/middleware-retry");
|
|
12
12
|
const node_config_provider_1 = require("@smithy/node-config-provider");
|
|
13
13
|
const node_http_handler_1 = require("@smithy/node-http-handler");
|
|
14
|
+
const smithy_client_1 = require("@smithy/smithy-client");
|
|
14
15
|
const util_body_length_node_1 = require("@smithy/util-body-length-node");
|
|
16
|
+
const util_defaults_mode_node_1 = require("@smithy/util-defaults-mode-node");
|
|
15
17
|
const util_retry_1 = require("@smithy/util-retry");
|
|
16
18
|
const runtimeConfig_shared_1 = require("./runtimeConfig.shared");
|
|
17
|
-
const smithy_client_1 = require("@smithy/smithy-client");
|
|
18
|
-
const util_defaults_mode_node_1 = require("@smithy/util-defaults-mode-node");
|
|
19
|
-
const smithy_client_2 = require("@smithy/smithy-client");
|
|
20
19
|
const getRuntimeConfig = (config) => {
|
|
21
|
-
(0,
|
|
20
|
+
(0, smithy_client_1.emitWarningIfUnsupportedVersion)(process.version);
|
|
22
21
|
const defaultsMode = (0, util_defaults_mode_node_1.resolveDefaultsModeConfig)(config);
|
|
23
22
|
const defaultConfigProvider = () => defaultsMode().then(smithy_client_1.loadConfigsForDefaultMode);
|
|
24
23
|
const clientSharedValues = (0, runtimeConfig_shared_1.getRuntimeConfig)(config);
|
package/dist-es/RDSDataClient.js
CHANGED
|
@@ -6,8 +6,8 @@ import { resolveRegionConfig } from "@smithy/config-resolver";
|
|
|
6
6
|
import { DefaultIdentityProviderConfig, getHttpAuthSchemeEndpointRuleSetPlugin, getHttpSigningPlugin, } from "@smithy/core";
|
|
7
7
|
import { getSchemaSerdePlugin } from "@smithy/core/schema";
|
|
8
8
|
import { getContentLengthPlugin } from "@smithy/middleware-content-length";
|
|
9
|
-
import { resolveEndpointConfig } from "@smithy/middleware-endpoint";
|
|
10
|
-
import { getRetryPlugin, resolveRetryConfig } from "@smithy/middleware-retry";
|
|
9
|
+
import { resolveEndpointConfig, } from "@smithy/middleware-endpoint";
|
|
10
|
+
import { getRetryPlugin, resolveRetryConfig, } from "@smithy/middleware-retry";
|
|
11
11
|
import { Client as __Client, } from "@smithy/smithy-client";
|
|
12
12
|
import { defaultRDSDataHttpAuthSchemeParametersProvider, resolveHttpAuthSchemeConfig, } from "./auth/httpAuthSchemeProvider";
|
|
13
13
|
import { resolveClientEndpointParameters, } from "./endpoint/EndpointParameters";
|
|
@@ -4,11 +4,11 @@ import { createDefaultUserAgentProvider } from "@aws-sdk/util-user-agent-browser
|
|
|
4
4
|
import { DEFAULT_USE_DUALSTACK_ENDPOINT, DEFAULT_USE_FIPS_ENDPOINT } from "@smithy/config-resolver";
|
|
5
5
|
import { FetchHttpHandler as RequestHandler, streamCollector } from "@smithy/fetch-http-handler";
|
|
6
6
|
import { invalidProvider } from "@smithy/invalid-dependency";
|
|
7
|
+
import { loadConfigsForDefaultMode } from "@smithy/smithy-client";
|
|
7
8
|
import { calculateBodyLength } from "@smithy/util-body-length-browser";
|
|
9
|
+
import { resolveDefaultsModeConfig } from "@smithy/util-defaults-mode-browser";
|
|
8
10
|
import { DEFAULT_MAX_ATTEMPTS, DEFAULT_RETRY_MODE } from "@smithy/util-retry";
|
|
9
11
|
import { getRuntimeConfig as getSharedRuntimeConfig } from "./runtimeConfig.shared";
|
|
10
|
-
import { loadConfigsForDefaultMode } from "@smithy/smithy-client";
|
|
11
|
-
import { resolveDefaultsModeConfig } from "@smithy/util-defaults-mode-browser";
|
|
12
12
|
export const getRuntimeConfig = (config) => {
|
|
13
13
|
const defaultsMode = resolveDefaultsModeConfig(config);
|
|
14
14
|
const defaultConfigProvider = () => defaultsMode().then(loadConfigsForDefaultMode);
|
package/dist-es/runtimeConfig.js
CHANGED
|
@@ -7,12 +7,11 @@ import { Hash } from "@smithy/hash-node";
|
|
|
7
7
|
import { NODE_MAX_ATTEMPT_CONFIG_OPTIONS, NODE_RETRY_MODE_CONFIG_OPTIONS } from "@smithy/middleware-retry";
|
|
8
8
|
import { loadConfig as loadNodeConfig } from "@smithy/node-config-provider";
|
|
9
9
|
import { NodeHttpHandler as RequestHandler, streamCollector } from "@smithy/node-http-handler";
|
|
10
|
+
import { emitWarningIfUnsupportedVersion, loadConfigsForDefaultMode } from "@smithy/smithy-client";
|
|
10
11
|
import { calculateBodyLength } from "@smithy/util-body-length-node";
|
|
12
|
+
import { resolveDefaultsModeConfig } from "@smithy/util-defaults-mode-node";
|
|
11
13
|
import { DEFAULT_RETRY_MODE } from "@smithy/util-retry";
|
|
12
14
|
import { getRuntimeConfig as getSharedRuntimeConfig } from "./runtimeConfig.shared";
|
|
13
|
-
import { loadConfigsForDefaultMode } from "@smithy/smithy-client";
|
|
14
|
-
import { resolveDefaultsModeConfig } from "@smithy/util-defaults-mode-node";
|
|
15
|
-
import { emitWarningIfUnsupportedVersion } from "@smithy/smithy-client";
|
|
16
15
|
export const getRuntimeConfig = (config) => {
|
|
17
16
|
emitWarningIfUnsupportedVersion(process.version);
|
|
18
17
|
const defaultsMode = resolveDefaultsModeConfig(config);
|
|
@@ -131,29 +131,9 @@ const n0 = "com.amazonaws.rdsdata";
|
|
|
131
131
|
import { TypeRegistry } from "@smithy/core/schema";
|
|
132
132
|
import { AccessDeniedException as __AccessDeniedException, BadRequestException as __BadRequestException, DatabaseErrorException as __DatabaseErrorException, DatabaseNotFoundException as __DatabaseNotFoundException, DatabaseResumingException as __DatabaseResumingException, DatabaseUnavailableException as __DatabaseUnavailableException, ForbiddenException as __ForbiddenException, HttpEndpointNotEnabledException as __HttpEndpointNotEnabledException, InternalServerErrorException as __InternalServerErrorException, InvalidResourceStateException as __InvalidResourceStateException, InvalidSecretException as __InvalidSecretException, NotFoundException as __NotFoundException, SecretsErrorException as __SecretsErrorException, ServiceUnavailableError as __ServiceUnavailableError, StatementTimeoutException as __StatementTimeoutException, TransactionNotFoundException as __TransactionNotFoundException, UnsupportedResultException as __UnsupportedResultException, } from "../models/errors";
|
|
133
133
|
import { RDSDataServiceException as __RDSDataServiceException } from "../models/RDSDataServiceException";
|
|
134
|
-
export var AccessDeniedException = [
|
|
135
|
-
-3,
|
|
136
|
-
n0,
|
|
137
|
-
_ADE,
|
|
138
|
-
{
|
|
139
|
-
[_e]: _c,
|
|
140
|
-
[_hE]: 403,
|
|
141
|
-
},
|
|
142
|
-
[_m],
|
|
143
|
-
[0],
|
|
144
|
-
];
|
|
134
|
+
export var AccessDeniedException = [-3, n0, _ADE, { [_e]: _c, [_hE]: 403 }, [_m], [0]];
|
|
145
135
|
TypeRegistry.for(n0).registerError(AccessDeniedException, __AccessDeniedException);
|
|
146
|
-
export var BadRequestException = [
|
|
147
|
-
-3,
|
|
148
|
-
n0,
|
|
149
|
-
_BRE,
|
|
150
|
-
{
|
|
151
|
-
[_e]: _c,
|
|
152
|
-
[_hE]: 400,
|
|
153
|
-
},
|
|
154
|
-
[_m],
|
|
155
|
-
[0],
|
|
156
|
-
];
|
|
136
|
+
export var BadRequestException = [-3, n0, _BRE, { [_e]: _c, [_hE]: 400 }, [_m], [0]];
|
|
157
137
|
TypeRegistry.for(n0).registerError(BadRequestException, __BadRequestException);
|
|
158
138
|
export var BatchExecuteStatementRequest = [
|
|
159
139
|
3,
|
|
@@ -176,53 +156,13 @@ export var ColumnMetadata = [
|
|
|
176
156
|
];
|
|
177
157
|
export var CommitTransactionRequest = [3, n0, _CTR, 0, [_rA, _sA, _tI], [0, 0, 0]];
|
|
178
158
|
export var CommitTransactionResponse = [3, n0, _CTRo, 0, [_tS], [0]];
|
|
179
|
-
export var DatabaseErrorException = [
|
|
180
|
-
-3,
|
|
181
|
-
n0,
|
|
182
|
-
_DEE,
|
|
183
|
-
{
|
|
184
|
-
[_e]: _c,
|
|
185
|
-
[_hE]: 400,
|
|
186
|
-
},
|
|
187
|
-
[_m],
|
|
188
|
-
[0],
|
|
189
|
-
];
|
|
159
|
+
export var DatabaseErrorException = [-3, n0, _DEE, { [_e]: _c, [_hE]: 400 }, [_m], [0]];
|
|
190
160
|
TypeRegistry.for(n0).registerError(DatabaseErrorException, __DatabaseErrorException);
|
|
191
|
-
export var DatabaseNotFoundException = [
|
|
192
|
-
-3,
|
|
193
|
-
n0,
|
|
194
|
-
_DNFE,
|
|
195
|
-
{
|
|
196
|
-
[_e]: _c,
|
|
197
|
-
[_hE]: 404,
|
|
198
|
-
},
|
|
199
|
-
[_m],
|
|
200
|
-
[0],
|
|
201
|
-
];
|
|
161
|
+
export var DatabaseNotFoundException = [-3, n0, _DNFE, { [_e]: _c, [_hE]: 404 }, [_m], [0]];
|
|
202
162
|
TypeRegistry.for(n0).registerError(DatabaseNotFoundException, __DatabaseNotFoundException);
|
|
203
|
-
export var DatabaseResumingException = [
|
|
204
|
-
-3,
|
|
205
|
-
n0,
|
|
206
|
-
_DRE,
|
|
207
|
-
{
|
|
208
|
-
[_e]: _c,
|
|
209
|
-
[_hE]: 400,
|
|
210
|
-
},
|
|
211
|
-
[_m],
|
|
212
|
-
[0],
|
|
213
|
-
];
|
|
163
|
+
export var DatabaseResumingException = [-3, n0, _DRE, { [_e]: _c, [_hE]: 400 }, [_m], [0]];
|
|
214
164
|
TypeRegistry.for(n0).registerError(DatabaseResumingException, __DatabaseResumingException);
|
|
215
|
-
export var DatabaseUnavailableException = [
|
|
216
|
-
-3,
|
|
217
|
-
n0,
|
|
218
|
-
_DUE,
|
|
219
|
-
{
|
|
220
|
-
[_e]: _se,
|
|
221
|
-
[_hE]: 504,
|
|
222
|
-
},
|
|
223
|
-
[],
|
|
224
|
-
[],
|
|
225
|
-
];
|
|
165
|
+
export var DatabaseUnavailableException = [-3, n0, _DUE, { [_e]: _se, [_hE]: 504 }, [], []];
|
|
226
166
|
TypeRegistry.for(n0).registerError(DatabaseUnavailableException, __DatabaseUnavailableException);
|
|
227
167
|
export var ExecuteSqlRequest = [3, n0, _ESR, 0, [_dCOIA, _aSSA, _sS, _d, _sc], [0, 0, 0, 0, 0]];
|
|
228
168
|
export var ExecuteSqlResponse = [3, n0, _ESRx, 0, [_sSR], [() => SqlStatementResults]];
|
|
@@ -242,77 +182,17 @@ export var ExecuteStatementResponse = [
|
|
|
242
182
|
[_r, _cM, _nORU, _gF, _fR],
|
|
243
183
|
[() => SqlRecords, () => Metadata, 1, () => FieldList, 0],
|
|
244
184
|
];
|
|
245
|
-
export var ForbiddenException = [
|
|
246
|
-
-3,
|
|
247
|
-
n0,
|
|
248
|
-
_FE,
|
|
249
|
-
{
|
|
250
|
-
[_e]: _c,
|
|
251
|
-
[_hE]: 403,
|
|
252
|
-
},
|
|
253
|
-
[_m],
|
|
254
|
-
[0],
|
|
255
|
-
];
|
|
185
|
+
export var ForbiddenException = [-3, n0, _FE, { [_e]: _c, [_hE]: 403 }, [_m], [0]];
|
|
256
186
|
TypeRegistry.for(n0).registerError(ForbiddenException, __ForbiddenException);
|
|
257
|
-
export var HttpEndpointNotEnabledException = [
|
|
258
|
-
-3,
|
|
259
|
-
n0,
|
|
260
|
-
_HENEE,
|
|
261
|
-
{
|
|
262
|
-
[_e]: _c,
|
|
263
|
-
[_hE]: 400,
|
|
264
|
-
},
|
|
265
|
-
[_m],
|
|
266
|
-
[0],
|
|
267
|
-
];
|
|
187
|
+
export var HttpEndpointNotEnabledException = [-3, n0, _HENEE, { [_e]: _c, [_hE]: 400 }, [_m], [0]];
|
|
268
188
|
TypeRegistry.for(n0).registerError(HttpEndpointNotEnabledException, __HttpEndpointNotEnabledException);
|
|
269
|
-
export var InternalServerErrorException = [
|
|
270
|
-
-3,
|
|
271
|
-
n0,
|
|
272
|
-
_ISEE,
|
|
273
|
-
{
|
|
274
|
-
[_e]: _se,
|
|
275
|
-
[_hE]: 500,
|
|
276
|
-
},
|
|
277
|
-
[],
|
|
278
|
-
[],
|
|
279
|
-
];
|
|
189
|
+
export var InternalServerErrorException = [-3, n0, _ISEE, { [_e]: _se, [_hE]: 500 }, [], []];
|
|
280
190
|
TypeRegistry.for(n0).registerError(InternalServerErrorException, __InternalServerErrorException);
|
|
281
|
-
export var InvalidResourceStateException = [
|
|
282
|
-
-3,
|
|
283
|
-
n0,
|
|
284
|
-
_IRSE,
|
|
285
|
-
{
|
|
286
|
-
[_e]: _c,
|
|
287
|
-
[_hE]: 400,
|
|
288
|
-
},
|
|
289
|
-
[_m],
|
|
290
|
-
[0],
|
|
291
|
-
];
|
|
191
|
+
export var InvalidResourceStateException = [-3, n0, _IRSE, { [_e]: _c, [_hE]: 400 }, [_m], [0]];
|
|
292
192
|
TypeRegistry.for(n0).registerError(InvalidResourceStateException, __InvalidResourceStateException);
|
|
293
|
-
export var InvalidSecretException = [
|
|
294
|
-
-3,
|
|
295
|
-
n0,
|
|
296
|
-
_ISE,
|
|
297
|
-
{
|
|
298
|
-
[_e]: _c,
|
|
299
|
-
[_hE]: 400,
|
|
300
|
-
},
|
|
301
|
-
[_m],
|
|
302
|
-
[0],
|
|
303
|
-
];
|
|
193
|
+
export var InvalidSecretException = [-3, n0, _ISE, { [_e]: _c, [_hE]: 400 }, [_m], [0]];
|
|
304
194
|
TypeRegistry.for(n0).registerError(InvalidSecretException, __InvalidSecretException);
|
|
305
|
-
export var NotFoundException = [
|
|
306
|
-
-3,
|
|
307
|
-
n0,
|
|
308
|
-
_NFE,
|
|
309
|
-
{
|
|
310
|
-
[_e]: _c,
|
|
311
|
-
[_hE]: 404,
|
|
312
|
-
},
|
|
313
|
-
[_m],
|
|
314
|
-
[0],
|
|
315
|
-
];
|
|
195
|
+
export var NotFoundException = [-3, n0, _NFE, { [_e]: _c, [_hE]: 404 }, [_m], [0]];
|
|
316
196
|
TypeRegistry.for(n0).registerError(NotFoundException, __NotFoundException);
|
|
317
197
|
export var _Record = [3, n0, _R, 0, [_v], [() => Row]];
|
|
318
198
|
export var ResultFrame = [3, n0, _RF, 0, [_rSM, _r], [() => ResultSetMetadata, () => Records]];
|
|
@@ -320,68 +200,18 @@ export var ResultSetMetadata = [3, n0, _RSM, 0, [_cC, _cM], [1, () => Metadata]]
|
|
|
320
200
|
export var ResultSetOptions = [3, n0, _RSO, 0, [_dRT, _lRT], [0, 0]];
|
|
321
201
|
export var RollbackTransactionRequest = [3, n0, _RTR, 0, [_rA, _sA, _tI], [0, 0, 0]];
|
|
322
202
|
export var RollbackTransactionResponse = [3, n0, _RTRo, 0, [_tS], [0]];
|
|
323
|
-
export var SecretsErrorException = [
|
|
324
|
-
-3,
|
|
325
|
-
n0,
|
|
326
|
-
_SEE,
|
|
327
|
-
{
|
|
328
|
-
[_e]: _c,
|
|
329
|
-
[_hE]: 400,
|
|
330
|
-
},
|
|
331
|
-
[_m],
|
|
332
|
-
[0],
|
|
333
|
-
];
|
|
203
|
+
export var SecretsErrorException = [-3, n0, _SEE, { [_e]: _c, [_hE]: 400 }, [_m], [0]];
|
|
334
204
|
TypeRegistry.for(n0).registerError(SecretsErrorException, __SecretsErrorException);
|
|
335
|
-
export var ServiceUnavailableError = [
|
|
336
|
-
-3,
|
|
337
|
-
n0,
|
|
338
|
-
_SUE,
|
|
339
|
-
{
|
|
340
|
-
[_e]: _se,
|
|
341
|
-
[_hE]: 503,
|
|
342
|
-
},
|
|
343
|
-
[],
|
|
344
|
-
[],
|
|
345
|
-
];
|
|
205
|
+
export var ServiceUnavailableError = [-3, n0, _SUE, { [_e]: _se, [_hE]: 503 }, [], []];
|
|
346
206
|
TypeRegistry.for(n0).registerError(ServiceUnavailableError, __ServiceUnavailableError);
|
|
347
207
|
export var SqlParameter = [3, n0, _SP, 0, [_n, _va, _tH], [0, () => Field, 0]];
|
|
348
208
|
export var SqlStatementResult = [3, n0, _SSR, 0, [_rF, _nORU], [() => ResultFrame, 1]];
|
|
349
|
-
export var StatementTimeoutException = [
|
|
350
|
-
-3,
|
|
351
|
-
n0,
|
|
352
|
-
_STE,
|
|
353
|
-
{
|
|
354
|
-
[_e]: _c,
|
|
355
|
-
[_hE]: 400,
|
|
356
|
-
},
|
|
357
|
-
[_m, _dCI],
|
|
358
|
-
[0, 1],
|
|
359
|
-
];
|
|
209
|
+
export var StatementTimeoutException = [-3, n0, _STE, { [_e]: _c, [_hE]: 400 }, [_m, _dCI], [0, 1]];
|
|
360
210
|
TypeRegistry.for(n0).registerError(StatementTimeoutException, __StatementTimeoutException);
|
|
361
211
|
export var StructValue = [3, n0, _SV, 0, [_a], [() => ArrayValueList]];
|
|
362
|
-
export var TransactionNotFoundException = [
|
|
363
|
-
-3,
|
|
364
|
-
n0,
|
|
365
|
-
_TNFE,
|
|
366
|
-
{
|
|
367
|
-
[_e]: _c,
|
|
368
|
-
[_hE]: 404,
|
|
369
|
-
},
|
|
370
|
-
[_m],
|
|
371
|
-
[0],
|
|
372
|
-
];
|
|
212
|
+
export var TransactionNotFoundException = [-3, n0, _TNFE, { [_e]: _c, [_hE]: 404 }, [_m], [0]];
|
|
373
213
|
TypeRegistry.for(n0).registerError(TransactionNotFoundException, __TransactionNotFoundException);
|
|
374
|
-
export var UnsupportedResultException = [
|
|
375
|
-
-3,
|
|
376
|
-
n0,
|
|
377
|
-
_URE,
|
|
378
|
-
{
|
|
379
|
-
[_e]: _c,
|
|
380
|
-
[_hE]: 400,
|
|
381
|
-
},
|
|
382
|
-
[_m],
|
|
383
|
-
[0],
|
|
384
|
-
];
|
|
214
|
+
export var UnsupportedResultException = [-3, n0, _URE, { [_e]: _c, [_hE]: 400 }, [_m], [0]];
|
|
385
215
|
TypeRegistry.for(n0).registerError(UnsupportedResultException, __UnsupportedResultException);
|
|
386
216
|
export var UpdateResult = [3, n0, _UR, 0, [_gF], [() => FieldList]];
|
|
387
217
|
export var RDSDataServiceException = [-3, _sm, "RDSDataServiceException", 0, [], []];
|
|
@@ -429,9 +259,7 @@ export var BatchExecuteStatement = [
|
|
|
429
259
|
9,
|
|
430
260
|
n0,
|
|
431
261
|
_BES,
|
|
432
|
-
{
|
|
433
|
-
[_h]: ["POST", "/BatchExecute", 200],
|
|
434
|
-
},
|
|
262
|
+
{ [_h]: ["POST", "/BatchExecute", 200] },
|
|
435
263
|
() => BatchExecuteStatementRequest,
|
|
436
264
|
() => BatchExecuteStatementResponse,
|
|
437
265
|
];
|
|
@@ -439,9 +267,7 @@ export var BeginTransaction = [
|
|
|
439
267
|
9,
|
|
440
268
|
n0,
|
|
441
269
|
_BT,
|
|
442
|
-
{
|
|
443
|
-
[_h]: ["POST", "/BeginTransaction", 200],
|
|
444
|
-
},
|
|
270
|
+
{ [_h]: ["POST", "/BeginTransaction", 200] },
|
|
445
271
|
() => BeginTransactionRequest,
|
|
446
272
|
() => BeginTransactionResponse,
|
|
447
273
|
];
|
|
@@ -449,9 +275,7 @@ export var CommitTransaction = [
|
|
|
449
275
|
9,
|
|
450
276
|
n0,
|
|
451
277
|
_CT,
|
|
452
|
-
{
|
|
453
|
-
[_h]: ["POST", "/CommitTransaction", 200],
|
|
454
|
-
},
|
|
278
|
+
{ [_h]: ["POST", "/CommitTransaction", 200] },
|
|
455
279
|
() => CommitTransactionRequest,
|
|
456
280
|
() => CommitTransactionResponse,
|
|
457
281
|
];
|
|
@@ -459,9 +283,7 @@ export var ExecuteSql = [
|
|
|
459
283
|
9,
|
|
460
284
|
n0,
|
|
461
285
|
_ES,
|
|
462
|
-
{
|
|
463
|
-
[_h]: ["POST", "/ExecuteSql", 200],
|
|
464
|
-
},
|
|
286
|
+
{ [_h]: ["POST", "/ExecuteSql", 200] },
|
|
465
287
|
() => ExecuteSqlRequest,
|
|
466
288
|
() => ExecuteSqlResponse,
|
|
467
289
|
];
|
|
@@ -469,9 +291,7 @@ export var ExecuteStatement = [
|
|
|
469
291
|
9,
|
|
470
292
|
n0,
|
|
471
293
|
_ESx,
|
|
472
|
-
{
|
|
473
|
-
[_h]: ["POST", "/Execute", 200],
|
|
474
|
-
},
|
|
294
|
+
{ [_h]: ["POST", "/Execute", 200] },
|
|
475
295
|
() => ExecuteStatementRequest,
|
|
476
296
|
() => ExecuteStatementResponse,
|
|
477
297
|
];
|
|
@@ -479,9 +299,7 @@ export var RollbackTransaction = [
|
|
|
479
299
|
9,
|
|
480
300
|
n0,
|
|
481
301
|
_RT,
|
|
482
|
-
{
|
|
483
|
-
[_h]: ["POST", "/RollbackTransaction", 200],
|
|
484
|
-
},
|
|
302
|
+
{ [_h]: ["POST", "/RollbackTransaction", 200] },
|
|
485
303
|
() => RollbackTransactionRequest,
|
|
486
304
|
() => RollbackTransactionResponse,
|
|
487
305
|
];
|
package/dist-types/RDSData.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { HttpHandlerOptions as __HttpHandlerOptions } from "@smithy/types";
|
|
1
|
+
import type { HttpHandlerOptions as __HttpHandlerOptions } from "@smithy/types";
|
|
2
2
|
import { BatchExecuteStatementCommandInput, BatchExecuteStatementCommandOutput } from "./commands/BatchExecuteStatementCommand";
|
|
3
3
|
import { BeginTransactionCommandInput, BeginTransactionCommandOutput } from "./commands/BeginTransactionCommand";
|
|
4
4
|
import { CommitTransactionCommandInput, CommitTransactionCommandOutput } from "./commands/CommitTransactionCommand";
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { HostHeaderInputConfig, HostHeaderResolvedConfig } from "@aws-sdk/middleware-host-header";
|
|
2
|
-
import { UserAgentInputConfig, UserAgentResolvedConfig } from "@aws-sdk/middleware-user-agent";
|
|
3
|
-
import { RegionInputConfig, RegionResolvedConfig } from "@smithy/config-resolver";
|
|
4
|
-
import { EndpointInputConfig, EndpointResolvedConfig } from "@smithy/middleware-endpoint";
|
|
5
|
-
import { RetryInputConfig, RetryResolvedConfig } from "@smithy/middleware-retry";
|
|
6
|
-
import { HttpHandlerUserInput as __HttpHandlerUserInput } from "@smithy/protocol-http";
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import { HttpAuthSchemeInputConfig, HttpAuthSchemeResolvedConfig } from "./auth/httpAuthSchemeProvider";
|
|
1
|
+
import { type HostHeaderInputConfig, type HostHeaderResolvedConfig } from "@aws-sdk/middleware-host-header";
|
|
2
|
+
import { type UserAgentInputConfig, type UserAgentResolvedConfig } from "@aws-sdk/middleware-user-agent";
|
|
3
|
+
import { type RegionInputConfig, type RegionResolvedConfig } from "@smithy/config-resolver";
|
|
4
|
+
import { type EndpointInputConfig, type EndpointResolvedConfig } from "@smithy/middleware-endpoint";
|
|
5
|
+
import { type RetryInputConfig, type RetryResolvedConfig } from "@smithy/middleware-retry";
|
|
6
|
+
import type { HttpHandlerUserInput as __HttpHandlerUserInput } from "@smithy/protocol-http";
|
|
7
|
+
import { type DefaultsMode as __DefaultsMode, type SmithyConfiguration as __SmithyConfiguration, type SmithyResolvedConfiguration as __SmithyResolvedConfiguration, Client as __Client } from "@smithy/smithy-client";
|
|
8
|
+
import { type BodyLengthCalculator as __BodyLengthCalculator, type CheckOptionalClientConfig as __CheckOptionalClientConfig, type ChecksumConstructor as __ChecksumConstructor, type ClientProtocol, type Decoder as __Decoder, type Encoder as __Encoder, type HashConstructor as __HashConstructor, type HttpHandlerOptions as __HttpHandlerOptions, type HttpRequest, type HttpResponse, type Logger as __Logger, type Provider as __Provider, type StreamCollector as __StreamCollector, type UrlParser as __UrlParser, AwsCredentialIdentityProvider, Provider, UserAgent as __UserAgent } from "@smithy/types";
|
|
9
|
+
import { type HttpAuthSchemeInputConfig, type HttpAuthSchemeResolvedConfig } from "./auth/httpAuthSchemeProvider";
|
|
10
10
|
import { BatchExecuteStatementCommandInput, BatchExecuteStatementCommandOutput } from "./commands/BatchExecuteStatementCommand";
|
|
11
11
|
import { BeginTransactionCommandInput, BeginTransactionCommandOutput } from "./commands/BeginTransactionCommand";
|
|
12
12
|
import { CommitTransactionCommandInput, CommitTransactionCommandOutput } from "./commands/CommitTransactionCommand";
|
|
@@ -14,7 +14,7 @@ import { ExecuteSqlCommandInput, ExecuteSqlCommandOutput } from "./commands/Exec
|
|
|
14
14
|
import { ExecuteStatementCommandInput, ExecuteStatementCommandOutput } from "./commands/ExecuteStatementCommand";
|
|
15
15
|
import { RollbackTransactionCommandInput, RollbackTransactionCommandOutput } from "./commands/RollbackTransactionCommand";
|
|
16
16
|
import { ClientInputEndpointParameters, ClientResolvedEndpointParameters, EndpointParameters } from "./endpoint/EndpointParameters";
|
|
17
|
-
import { RuntimeExtension, RuntimeExtensionsConfig } from "./runtimeExtensions";
|
|
17
|
+
import { type RuntimeExtension, type RuntimeExtensionsConfig } from "./runtimeExtensions";
|
|
18
18
|
export { __Client };
|
|
19
19
|
/**
|
|
20
20
|
* @public
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { AwsCredentialIdentity, AwsCredentialIdentityProvider
|
|
2
|
-
import { RDSDataHttpAuthSchemeProvider } from "./httpAuthSchemeProvider";
|
|
1
|
+
import { type HttpAuthScheme, AwsCredentialIdentity, AwsCredentialIdentityProvider } from "@smithy/types";
|
|
2
|
+
import type { RDSDataHttpAuthSchemeProvider } from "./httpAuthSchemeProvider";
|
|
3
3
|
/**
|
|
4
4
|
* @internal
|
|
5
5
|
*/
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { AwsSdkSigV4AuthInputConfig, AwsSdkSigV4AuthResolvedConfig, AwsSdkSigV4PreviouslyResolved } from "@aws-sdk/core";
|
|
2
|
-
import { HandlerExecutionContext, HttpAuthScheme, HttpAuthSchemeParameters, HttpAuthSchemeParametersProvider, HttpAuthSchemeProvider, Provider } from "@smithy/types";
|
|
3
|
-
import { RDSDataClientResolvedConfig } from "../RDSDataClient";
|
|
2
|
+
import type { HandlerExecutionContext, HttpAuthScheme, HttpAuthSchemeParameters, HttpAuthSchemeParametersProvider, HttpAuthSchemeProvider, Provider } from "@smithy/types";
|
|
3
|
+
import { type RDSDataClientResolvedConfig } from "../RDSDataClient";
|
|
4
4
|
/**
|
|
5
5
|
* @internal
|
|
6
6
|
*/
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Command as $Command } from "@smithy/smithy-client";
|
|
2
|
-
import { MetadataBearer as __MetadataBearer } from "@smithy/types";
|
|
3
|
-
import { BatchExecuteStatementRequest, BatchExecuteStatementResponse } from "../models/models_0";
|
|
4
|
-
import { RDSDataClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../RDSDataClient";
|
|
2
|
+
import type { MetadataBearer as __MetadataBearer } from "@smithy/types";
|
|
3
|
+
import type { BatchExecuteStatementRequest, BatchExecuteStatementResponse } from "../models/models_0";
|
|
4
|
+
import type { RDSDataClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../RDSDataClient";
|
|
5
5
|
/**
|
|
6
6
|
* @public
|
|
7
7
|
*/
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Command as $Command } from "@smithy/smithy-client";
|
|
2
|
-
import { MetadataBearer as __MetadataBearer } from "@smithy/types";
|
|
3
|
-
import { BeginTransactionRequest, BeginTransactionResponse } from "../models/models_0";
|
|
4
|
-
import { RDSDataClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../RDSDataClient";
|
|
2
|
+
import type { MetadataBearer as __MetadataBearer } from "@smithy/types";
|
|
3
|
+
import type { BeginTransactionRequest, BeginTransactionResponse } from "../models/models_0";
|
|
4
|
+
import type { RDSDataClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../RDSDataClient";
|
|
5
5
|
/**
|
|
6
6
|
* @public
|
|
7
7
|
*/
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Command as $Command } from "@smithy/smithy-client";
|
|
2
|
-
import { MetadataBearer as __MetadataBearer } from "@smithy/types";
|
|
3
|
-
import { CommitTransactionRequest, CommitTransactionResponse } from "../models/models_0";
|
|
4
|
-
import { RDSDataClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../RDSDataClient";
|
|
2
|
+
import type { MetadataBearer as __MetadataBearer } from "@smithy/types";
|
|
3
|
+
import type { CommitTransactionRequest, CommitTransactionResponse } from "../models/models_0";
|
|
4
|
+
import type { RDSDataClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../RDSDataClient";
|
|
5
5
|
/**
|
|
6
6
|
* @public
|
|
7
7
|
*/
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Command as $Command } from "@smithy/smithy-client";
|
|
2
|
-
import { MetadataBearer as __MetadataBearer } from "@smithy/types";
|
|
3
|
-
import { ExecuteSqlRequest, ExecuteSqlResponse } from "../models/models_0";
|
|
4
|
-
import { RDSDataClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../RDSDataClient";
|
|
2
|
+
import type { MetadataBearer as __MetadataBearer } from "@smithy/types";
|
|
3
|
+
import type { ExecuteSqlRequest, ExecuteSqlResponse } from "../models/models_0";
|
|
4
|
+
import type { RDSDataClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../RDSDataClient";
|
|
5
5
|
/**
|
|
6
6
|
* @public
|
|
7
7
|
*/
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Command as $Command } from "@smithy/smithy-client";
|
|
2
|
-
import { MetadataBearer as __MetadataBearer } from "@smithy/types";
|
|
3
|
-
import { ExecuteStatementRequest, ExecuteStatementResponse } from "../models/models_0";
|
|
4
|
-
import { RDSDataClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../RDSDataClient";
|
|
2
|
+
import type { MetadataBearer as __MetadataBearer } from "@smithy/types";
|
|
3
|
+
import type { ExecuteStatementRequest, ExecuteStatementResponse } from "../models/models_0";
|
|
4
|
+
import type { RDSDataClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../RDSDataClient";
|
|
5
5
|
/**
|
|
6
6
|
* @public
|
|
7
7
|
*/
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Command as $Command } from "@smithy/smithy-client";
|
|
2
|
-
import { MetadataBearer as __MetadataBearer } from "@smithy/types";
|
|
3
|
-
import { RollbackTransactionRequest, RollbackTransactionResponse } from "../models/models_0";
|
|
4
|
-
import { RDSDataClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../RDSDataClient";
|
|
2
|
+
import type { MetadataBearer as __MetadataBearer } from "@smithy/types";
|
|
3
|
+
import type { RollbackTransactionRequest, RollbackTransactionResponse } from "../models/models_0";
|
|
4
|
+
import type { RDSDataClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../RDSDataClient";
|
|
5
5
|
/**
|
|
6
6
|
* @public
|
|
7
7
|
*/
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Endpoint, EndpointParameters as __EndpointParameters, EndpointV2, Provider } from "@smithy/types";
|
|
1
|
+
import type { Endpoint, EndpointParameters as __EndpointParameters, EndpointV2, Provider } from "@smithy/types";
|
|
2
2
|
/**
|
|
3
3
|
* @public
|
|
4
4
|
*/
|
|
@@ -8,10 +8,19 @@ export interface ClientInputEndpointParameters {
|
|
|
8
8
|
useFipsEndpoint?: boolean | undefined | Provider<boolean | undefined>;
|
|
9
9
|
endpoint?: string | Provider<string> | Endpoint | Provider<Endpoint> | EndpointV2 | Provider<EndpointV2>;
|
|
10
10
|
}
|
|
11
|
+
/**
|
|
12
|
+
* @public
|
|
13
|
+
*/
|
|
11
14
|
export type ClientResolvedEndpointParameters = Omit<ClientInputEndpointParameters, "endpoint"> & {
|
|
12
15
|
defaultSigningName: string;
|
|
13
16
|
};
|
|
17
|
+
/**
|
|
18
|
+
* @internal
|
|
19
|
+
*/
|
|
14
20
|
export declare const resolveClientEndpointParameters: <T>(options: T & ClientInputEndpointParameters) => T & ClientResolvedEndpointParameters;
|
|
21
|
+
/**
|
|
22
|
+
* @internal
|
|
23
|
+
*/
|
|
15
24
|
export declare const commonParams: {
|
|
16
25
|
readonly UseFIPS: {
|
|
17
26
|
readonly type: "builtInParams";
|
|
@@ -30,6 +39,9 @@ export declare const commonParams: {
|
|
|
30
39
|
readonly name: "useDualstackEndpoint";
|
|
31
40
|
};
|
|
32
41
|
};
|
|
42
|
+
/**
|
|
43
|
+
* @internal
|
|
44
|
+
*/
|
|
33
45
|
export interface EndpointParameters extends __EndpointParameters {
|
|
34
46
|
Region?: string | undefined;
|
|
35
47
|
UseDualStack?: boolean | undefined;
|
|
@@ -1,5 +1,8 @@
|
|
|
1
|
-
import { EndpointV2, Logger } from "@smithy/types";
|
|
2
|
-
import { EndpointParameters } from "./EndpointParameters";
|
|
1
|
+
import type { EndpointV2, Logger } from "@smithy/types";
|
|
2
|
+
import type { EndpointParameters } from "./EndpointParameters";
|
|
3
|
+
/**
|
|
4
|
+
* @internal
|
|
5
|
+
*/
|
|
3
6
|
export declare const defaultEndpointResolver: (endpointParams: EndpointParameters, context?: {
|
|
4
7
|
logger?: Logger;
|
|
5
8
|
}) => EndpointV2;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { AwsRegionExtensionConfiguration } from "@aws-sdk/types";
|
|
2
|
-
import { HttpHandlerExtensionConfiguration } from "@smithy/protocol-http";
|
|
3
|
-
import { DefaultExtensionConfiguration } from "@smithy/types";
|
|
4
|
-
import { HttpAuthExtensionConfiguration } from "./auth/httpAuthExtensionConfiguration";
|
|
1
|
+
import type { AwsRegionExtensionConfiguration } from "@aws-sdk/types";
|
|
2
|
+
import type { HttpHandlerExtensionConfiguration } from "@smithy/protocol-http";
|
|
3
|
+
import type { DefaultExtensionConfiguration } from "@smithy/types";
|
|
4
|
+
import type { HttpAuthExtensionConfiguration } from "./auth/httpAuthExtensionConfiguration";
|
|
5
5
|
/**
|
|
6
6
|
* @internal
|
|
7
7
|
*/
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { type ServiceExceptionOptions as __ServiceExceptionOptions, ServiceException as __ServiceException } from "@smithy/smithy-client";
|
|
2
2
|
export type { __ServiceExceptionOptions };
|
|
3
3
|
export { __ServiceException };
|
|
4
4
|
/**
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ExceptionOptionType as __ExceptionOptionType } from "@smithy/smithy-client";
|
|
1
|
+
import type { ExceptionOptionType as __ExceptionOptionType } from "@smithy/smithy-client";
|
|
2
2
|
import { RDSDataServiceException as __BaseException } from "./RDSDataServiceException";
|
|
3
3
|
/**
|
|
4
4
|
* <p>You don't have sufficient access to perform this action.</p>
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { StaticErrorSchema, StaticListSchema, StaticOperationSchema, StaticStructureSchema } from "@smithy/types";
|
|
1
|
+
import type { StaticErrorSchema, StaticListSchema, StaticOperationSchema, StaticStructureSchema } from "@smithy/types";
|
|
2
2
|
export declare var AccessDeniedException: StaticErrorSchema;
|
|
3
3
|
export declare var BadRequestException: StaticErrorSchema;
|
|
4
4
|
export declare var BatchExecuteStatementRequest: StaticStructureSchema;
|
|
@@ -20,13 +20,12 @@ import {
|
|
|
20
20
|
} from "@smithy/middleware-retry";
|
|
21
21
|
import { HttpHandlerUserInput as __HttpHandlerUserInput } from "@smithy/protocol-http";
|
|
22
22
|
import {
|
|
23
|
-
Client as __Client,
|
|
24
23
|
DefaultsMode as __DefaultsMode,
|
|
25
24
|
SmithyConfiguration as __SmithyConfiguration,
|
|
26
25
|
SmithyResolvedConfiguration as __SmithyResolvedConfiguration,
|
|
26
|
+
Client as __Client,
|
|
27
27
|
} from "@smithy/smithy-client";
|
|
28
28
|
import {
|
|
29
|
-
AwsCredentialIdentityProvider,
|
|
30
29
|
BodyLengthCalculator as __BodyLengthCalculator,
|
|
31
30
|
CheckOptionalClientConfig as __CheckOptionalClientConfig,
|
|
32
31
|
ChecksumConstructor as __ChecksumConstructor,
|
|
@@ -39,9 +38,10 @@ import {
|
|
|
39
38
|
HttpResponse,
|
|
40
39
|
Logger as __Logger,
|
|
41
40
|
Provider as __Provider,
|
|
42
|
-
Provider,
|
|
43
41
|
StreamCollector as __StreamCollector,
|
|
44
42
|
UrlParser as __UrlParser,
|
|
43
|
+
AwsCredentialIdentityProvider,
|
|
44
|
+
Provider,
|
|
45
45
|
UserAgent as __UserAgent,
|
|
46
46
|
} from "@smithy/types";
|
|
47
47
|
import {
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/client-rds-data",
|
|
3
3
|
"description": "AWS SDK for JavaScript Rds Data Client for Node.js, Browser and React Native",
|
|
4
|
-
"version": "3.
|
|
4
|
+
"version": "3.947.0",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
|
|
7
7
|
"build:cjs": "node ../../scripts/compilation/inline client-rds-data",
|
|
@@ -11,7 +11,8 @@
|
|
|
11
11
|
"build:types:downlevel": "downlevel-dts dist-types dist-types/ts3.4",
|
|
12
12
|
"clean": "rimraf ./dist-* && rimraf *.tsbuildinfo",
|
|
13
13
|
"extract:docs": "api-extractor run --local",
|
|
14
|
-
"generate:client": "node ../../scripts/generate-clients/single-service --solo rds-data"
|
|
14
|
+
"generate:client": "node ../../scripts/generate-clients/single-service --solo rds-data",
|
|
15
|
+
"test:index": "tsc --noEmit ./test/index-types.ts && node ./test/index-objects.spec.mjs"
|
|
15
16
|
},
|
|
16
17
|
"main": "./dist-cjs/index.js",
|
|
17
18
|
"types": "./dist-types/index.d.ts",
|
|
@@ -20,38 +21,38 @@
|
|
|
20
21
|
"dependencies": {
|
|
21
22
|
"@aws-crypto/sha256-browser": "5.2.0",
|
|
22
23
|
"@aws-crypto/sha256-js": "5.2.0",
|
|
23
|
-
"@aws-sdk/core": "3.
|
|
24
|
-
"@aws-sdk/credential-provider-node": "3.
|
|
24
|
+
"@aws-sdk/core": "3.947.0",
|
|
25
|
+
"@aws-sdk/credential-provider-node": "3.947.0",
|
|
25
26
|
"@aws-sdk/middleware-host-header": "3.936.0",
|
|
26
27
|
"@aws-sdk/middleware-logger": "3.936.0",
|
|
27
28
|
"@aws-sdk/middleware-recursion-detection": "3.936.0",
|
|
28
|
-
"@aws-sdk/middleware-user-agent": "3.
|
|
29
|
+
"@aws-sdk/middleware-user-agent": "3.947.0",
|
|
29
30
|
"@aws-sdk/region-config-resolver": "3.936.0",
|
|
30
31
|
"@aws-sdk/types": "3.936.0",
|
|
31
32
|
"@aws-sdk/util-endpoints": "3.936.0",
|
|
32
33
|
"@aws-sdk/util-user-agent-browser": "3.936.0",
|
|
33
|
-
"@aws-sdk/util-user-agent-node": "3.
|
|
34
|
+
"@aws-sdk/util-user-agent-node": "3.947.0",
|
|
34
35
|
"@smithy/config-resolver": "^4.4.3",
|
|
35
|
-
"@smithy/core": "^3.18.
|
|
36
|
+
"@smithy/core": "^3.18.7",
|
|
36
37
|
"@smithy/fetch-http-handler": "^5.3.6",
|
|
37
38
|
"@smithy/hash-node": "^4.2.5",
|
|
38
39
|
"@smithy/invalid-dependency": "^4.2.5",
|
|
39
40
|
"@smithy/middleware-content-length": "^4.2.5",
|
|
40
|
-
"@smithy/middleware-endpoint": "^4.3.
|
|
41
|
-
"@smithy/middleware-retry": "^4.4.
|
|
41
|
+
"@smithy/middleware-endpoint": "^4.3.14",
|
|
42
|
+
"@smithy/middleware-retry": "^4.4.14",
|
|
42
43
|
"@smithy/middleware-serde": "^4.2.6",
|
|
43
44
|
"@smithy/middleware-stack": "^4.2.5",
|
|
44
45
|
"@smithy/node-config-provider": "^4.3.5",
|
|
45
46
|
"@smithy/node-http-handler": "^4.4.5",
|
|
46
47
|
"@smithy/protocol-http": "^5.3.5",
|
|
47
|
-
"@smithy/smithy-client": "^4.9.
|
|
48
|
+
"@smithy/smithy-client": "^4.9.10",
|
|
48
49
|
"@smithy/types": "^4.9.0",
|
|
49
50
|
"@smithy/url-parser": "^4.2.5",
|
|
50
51
|
"@smithy/util-base64": "^4.3.0",
|
|
51
52
|
"@smithy/util-body-length-browser": "^4.2.0",
|
|
52
53
|
"@smithy/util-body-length-node": "^4.2.1",
|
|
53
|
-
"@smithy/util-defaults-mode-browser": "^4.3.
|
|
54
|
-
"@smithy/util-defaults-mode-node": "^4.2.
|
|
54
|
+
"@smithy/util-defaults-mode-browser": "^4.3.13",
|
|
55
|
+
"@smithy/util-defaults-mode-node": "^4.2.16",
|
|
55
56
|
"@smithy/util-endpoints": "^3.2.5",
|
|
56
57
|
"@smithy/util-middleware": "^4.2.5",
|
|
57
58
|
"@smithy/util-retry": "^4.2.5",
|