@aws-sdk/client-rds-data 3.1136.0 → 3.1138.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 +3 -3
- package/dist-es/schemas/schemas_0.js +2 -2
- package/dist-types/RDSData.d.ts +19 -13
- package/dist-types/ts3.4/RDSData.d.ts +19 -13
- package/package.json +8 -8
package/dist-cjs/index.js
CHANGED
|
@@ -69,7 +69,7 @@ const commonParams = {
|
|
|
69
69
|
UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
|
|
70
70
|
};
|
|
71
71
|
|
|
72
|
-
var version = "3.
|
|
72
|
+
var version = "3.1137.0";
|
|
73
73
|
var packageInfo = {
|
|
74
74
|
version: version};
|
|
75
75
|
|
|
@@ -480,10 +480,10 @@ const _uR = "updateResults";
|
|
|
480
480
|
const _v = "values";
|
|
481
481
|
const _va = "value";
|
|
482
482
|
const n0 = "com.amazonaws.rdsdata";
|
|
483
|
-
const _s_registry = TypeRegistry
|
|
483
|
+
const _s_registry = new TypeRegistry(_s);
|
|
484
484
|
var RDSDataServiceException$ = [-3, _s, "RDSDataServiceException", 0, [], []];
|
|
485
485
|
_s_registry.registerError(RDSDataServiceException$, RDSDataServiceException);
|
|
486
|
-
const n0_registry = TypeRegistry
|
|
486
|
+
const n0_registry = new TypeRegistry(n0);
|
|
487
487
|
var AccessDeniedException$ = [-3, n0, _ADE,
|
|
488
488
|
{ [_e]: _c, [_hE]: 403 },
|
|
489
489
|
[_m],
|
|
@@ -136,10 +136,10 @@ const n0 = "com.amazonaws.rdsdata";
|
|
|
136
136
|
import { TypeRegistry } from "@smithy/core/schema";
|
|
137
137
|
import { AccessDeniedException, BadRequestException, DatabaseErrorException, DatabaseNotFoundException, DatabaseResumingException, DatabaseUnavailableException, ForbiddenException, HttpEndpointNotEnabledException, InternalServerErrorException, InvalidResourceStateException, InvalidSecretException, NotFoundException, SecretsErrorException, ServiceUnavailableError, StatementTimeoutException, TransactionNotFoundException, UnsupportedResultException, } from "../models/errors";
|
|
138
138
|
import { RDSDataServiceException } from "../models/RDSDataServiceException";
|
|
139
|
-
const _s_registry = TypeRegistry
|
|
139
|
+
const _s_registry = new TypeRegistry(_s);
|
|
140
140
|
export var RDSDataServiceException$ = [-3, _s, "RDSDataServiceException", 0, [], []];
|
|
141
141
|
_s_registry.registerError(RDSDataServiceException$, RDSDataServiceException);
|
|
142
|
-
const n0_registry = TypeRegistry
|
|
142
|
+
const n0_registry = new TypeRegistry(n0);
|
|
143
143
|
export var AccessDeniedException$ = [-3, n0, _ADE,
|
|
144
144
|
{ [_e]: _c, [_hE]: 403 },
|
|
145
145
|
[_m],
|
package/dist-types/RDSData.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { HttpHandlerOptions as __HttpHandlerOptions } from "@smithy/types";
|
|
1
|
+
import type { HttpHandlerOptions as __HttpHandlerOptions, MetricsRecorder as __MetricsRecorder } from "@smithy/types";
|
|
2
2
|
import { type BatchExecuteStatementCommandInput, type BatchExecuteStatementCommandOutput } from "./commands/BatchExecuteStatementCommand";
|
|
3
3
|
import { type BeginTransactionCommandInput, type BeginTransactionCommandOutput } from "./commands/BeginTransactionCommand";
|
|
4
4
|
import { type CommitTransactionCommandInput, type CommitTransactionCommandOutput } from "./commands/CommitTransactionCommand";
|
|
@@ -6,43 +6,49 @@ import { type ExecuteSqlCommandInput, type ExecuteSqlCommandOutput } from "./com
|
|
|
6
6
|
import { type ExecuteStatementCommandInput, type ExecuteStatementCommandOutput } from "./commands/ExecuteStatementCommand";
|
|
7
7
|
import { type RollbackTransactionCommandInput, type RollbackTransactionCommandOutput } from "./commands/RollbackTransactionCommand";
|
|
8
8
|
import { RDSDataClient } from "./RDSDataClient";
|
|
9
|
+
/**
|
|
10
|
+
* @public
|
|
11
|
+
*/
|
|
12
|
+
export interface RDSDataRequestOptions extends __HttpHandlerOptions {
|
|
13
|
+
metricsRecorder?: __MetricsRecorder<unknown>;
|
|
14
|
+
}
|
|
9
15
|
export interface RDSData {
|
|
10
16
|
/**
|
|
11
17
|
* @see {@link BatchExecuteStatementCommand}
|
|
12
18
|
*/
|
|
13
|
-
batchExecuteStatement(args: BatchExecuteStatementCommandInput, options?:
|
|
19
|
+
batchExecuteStatement(args: BatchExecuteStatementCommandInput, options?: RDSDataRequestOptions): Promise<BatchExecuteStatementCommandOutput>;
|
|
14
20
|
batchExecuteStatement(args: BatchExecuteStatementCommandInput, cb: (err: any, data?: BatchExecuteStatementCommandOutput) => void): void;
|
|
15
|
-
batchExecuteStatement(args: BatchExecuteStatementCommandInput, options:
|
|
21
|
+
batchExecuteStatement(args: BatchExecuteStatementCommandInput, options: RDSDataRequestOptions, cb: (err: any, data?: BatchExecuteStatementCommandOutput) => void): void;
|
|
16
22
|
/**
|
|
17
23
|
* @see {@link BeginTransactionCommand}
|
|
18
24
|
*/
|
|
19
|
-
beginTransaction(args: BeginTransactionCommandInput, options?:
|
|
25
|
+
beginTransaction(args: BeginTransactionCommandInput, options?: RDSDataRequestOptions): Promise<BeginTransactionCommandOutput>;
|
|
20
26
|
beginTransaction(args: BeginTransactionCommandInput, cb: (err: any, data?: BeginTransactionCommandOutput) => void): void;
|
|
21
|
-
beginTransaction(args: BeginTransactionCommandInput, options:
|
|
27
|
+
beginTransaction(args: BeginTransactionCommandInput, options: RDSDataRequestOptions, cb: (err: any, data?: BeginTransactionCommandOutput) => void): void;
|
|
22
28
|
/**
|
|
23
29
|
* @see {@link CommitTransactionCommand}
|
|
24
30
|
*/
|
|
25
|
-
commitTransaction(args: CommitTransactionCommandInput, options?:
|
|
31
|
+
commitTransaction(args: CommitTransactionCommandInput, options?: RDSDataRequestOptions): Promise<CommitTransactionCommandOutput>;
|
|
26
32
|
commitTransaction(args: CommitTransactionCommandInput, cb: (err: any, data?: CommitTransactionCommandOutput) => void): void;
|
|
27
|
-
commitTransaction(args: CommitTransactionCommandInput, options:
|
|
33
|
+
commitTransaction(args: CommitTransactionCommandInput, options: RDSDataRequestOptions, cb: (err: any, data?: CommitTransactionCommandOutput) => void): void;
|
|
28
34
|
/**
|
|
29
35
|
* @see {@link ExecuteSqlCommand}
|
|
30
36
|
*/
|
|
31
|
-
executeSql(args: ExecuteSqlCommandInput, options?:
|
|
37
|
+
executeSql(args: ExecuteSqlCommandInput, options?: RDSDataRequestOptions): Promise<ExecuteSqlCommandOutput>;
|
|
32
38
|
executeSql(args: ExecuteSqlCommandInput, cb: (err: any, data?: ExecuteSqlCommandOutput) => void): void;
|
|
33
|
-
executeSql(args: ExecuteSqlCommandInput, options:
|
|
39
|
+
executeSql(args: ExecuteSqlCommandInput, options: RDSDataRequestOptions, cb: (err: any, data?: ExecuteSqlCommandOutput) => void): void;
|
|
34
40
|
/**
|
|
35
41
|
* @see {@link ExecuteStatementCommand}
|
|
36
42
|
*/
|
|
37
|
-
executeStatement(args: ExecuteStatementCommandInput, options?:
|
|
43
|
+
executeStatement(args: ExecuteStatementCommandInput, options?: RDSDataRequestOptions): Promise<ExecuteStatementCommandOutput>;
|
|
38
44
|
executeStatement(args: ExecuteStatementCommandInput, cb: (err: any, data?: ExecuteStatementCommandOutput) => void): void;
|
|
39
|
-
executeStatement(args: ExecuteStatementCommandInput, options:
|
|
45
|
+
executeStatement(args: ExecuteStatementCommandInput, options: RDSDataRequestOptions, cb: (err: any, data?: ExecuteStatementCommandOutput) => void): void;
|
|
40
46
|
/**
|
|
41
47
|
* @see {@link RollbackTransactionCommand}
|
|
42
48
|
*/
|
|
43
|
-
rollbackTransaction(args: RollbackTransactionCommandInput, options?:
|
|
49
|
+
rollbackTransaction(args: RollbackTransactionCommandInput, options?: RDSDataRequestOptions): Promise<RollbackTransactionCommandOutput>;
|
|
44
50
|
rollbackTransaction(args: RollbackTransactionCommandInput, cb: (err: any, data?: RollbackTransactionCommandOutput) => void): void;
|
|
45
|
-
rollbackTransaction(args: RollbackTransactionCommandInput, options:
|
|
51
|
+
rollbackTransaction(args: RollbackTransactionCommandInput, options: RDSDataRequestOptions, cb: (err: any, data?: RollbackTransactionCommandOutput) => void): void;
|
|
46
52
|
}
|
|
47
53
|
/**
|
|
48
54
|
* <fullname>RDS Data API</fullname> <p>Amazon RDS provides an HTTP endpoint to run SQL statements on an Amazon Aurora DB cluster. To run these statements, you use the RDS Data API (Data API).</p> <p>Data API is available with the following types of Aurora databases:</p> <ul> <li> <p>Aurora PostgreSQL - Serverless and provisioned</p> </li> <li> <p>Aurora MySQL - Serverless and provisioned</p> </li> </ul> <p>For more information about the Data API, see <a href="https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/data-api.html">Using RDS Data API</a> in the <i>Amazon Aurora User Guide</i>.</p>
|
|
@@ -1,4 +1,7 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import {
|
|
2
|
+
HttpHandlerOptions as __HttpHandlerOptions,
|
|
3
|
+
MetricsRecorder as __MetricsRecorder,
|
|
4
|
+
} from "@smithy/types";
|
|
2
5
|
import {
|
|
3
6
|
BatchExecuteStatementCommandInput,
|
|
4
7
|
BatchExecuteStatementCommandOutput,
|
|
@@ -21,10 +24,13 @@ import {
|
|
|
21
24
|
RollbackTransactionCommandOutput,
|
|
22
25
|
} from "./commands/RollbackTransactionCommand";
|
|
23
26
|
import { RDSDataClient } from "./RDSDataClient";
|
|
27
|
+
export interface RDSDataRequestOptions extends __HttpHandlerOptions {
|
|
28
|
+
metricsRecorder?: __MetricsRecorder<unknown>;
|
|
29
|
+
}
|
|
24
30
|
export interface RDSData {
|
|
25
31
|
batchExecuteStatement(
|
|
26
32
|
args: BatchExecuteStatementCommandInput,
|
|
27
|
-
options?:
|
|
33
|
+
options?: RDSDataRequestOptions,
|
|
28
34
|
): Promise<BatchExecuteStatementCommandOutput>;
|
|
29
35
|
batchExecuteStatement(
|
|
30
36
|
args: BatchExecuteStatementCommandInput,
|
|
@@ -32,12 +38,12 @@ export interface RDSData {
|
|
|
32
38
|
): void;
|
|
33
39
|
batchExecuteStatement(
|
|
34
40
|
args: BatchExecuteStatementCommandInput,
|
|
35
|
-
options:
|
|
41
|
+
options: RDSDataRequestOptions,
|
|
36
42
|
cb: (err: any, data?: BatchExecuteStatementCommandOutput) => void,
|
|
37
43
|
): void;
|
|
38
44
|
beginTransaction(
|
|
39
45
|
args: BeginTransactionCommandInput,
|
|
40
|
-
options?:
|
|
46
|
+
options?: RDSDataRequestOptions,
|
|
41
47
|
): Promise<BeginTransactionCommandOutput>;
|
|
42
48
|
beginTransaction(
|
|
43
49
|
args: BeginTransactionCommandInput,
|
|
@@ -45,12 +51,12 @@ export interface RDSData {
|
|
|
45
51
|
): void;
|
|
46
52
|
beginTransaction(
|
|
47
53
|
args: BeginTransactionCommandInput,
|
|
48
|
-
options:
|
|
54
|
+
options: RDSDataRequestOptions,
|
|
49
55
|
cb: (err: any, data?: BeginTransactionCommandOutput) => void,
|
|
50
56
|
): void;
|
|
51
57
|
commitTransaction(
|
|
52
58
|
args: CommitTransactionCommandInput,
|
|
53
|
-
options?:
|
|
59
|
+
options?: RDSDataRequestOptions,
|
|
54
60
|
): Promise<CommitTransactionCommandOutput>;
|
|
55
61
|
commitTransaction(
|
|
56
62
|
args: CommitTransactionCommandInput,
|
|
@@ -58,12 +64,12 @@ export interface RDSData {
|
|
|
58
64
|
): void;
|
|
59
65
|
commitTransaction(
|
|
60
66
|
args: CommitTransactionCommandInput,
|
|
61
|
-
options:
|
|
67
|
+
options: RDSDataRequestOptions,
|
|
62
68
|
cb: (err: any, data?: CommitTransactionCommandOutput) => void,
|
|
63
69
|
): void;
|
|
64
70
|
executeSql(
|
|
65
71
|
args: ExecuteSqlCommandInput,
|
|
66
|
-
options?:
|
|
72
|
+
options?: RDSDataRequestOptions,
|
|
67
73
|
): Promise<ExecuteSqlCommandOutput>;
|
|
68
74
|
executeSql(
|
|
69
75
|
args: ExecuteSqlCommandInput,
|
|
@@ -71,12 +77,12 @@ export interface RDSData {
|
|
|
71
77
|
): void;
|
|
72
78
|
executeSql(
|
|
73
79
|
args: ExecuteSqlCommandInput,
|
|
74
|
-
options:
|
|
80
|
+
options: RDSDataRequestOptions,
|
|
75
81
|
cb: (err: any, data?: ExecuteSqlCommandOutput) => void,
|
|
76
82
|
): void;
|
|
77
83
|
executeStatement(
|
|
78
84
|
args: ExecuteStatementCommandInput,
|
|
79
|
-
options?:
|
|
85
|
+
options?: RDSDataRequestOptions,
|
|
80
86
|
): Promise<ExecuteStatementCommandOutput>;
|
|
81
87
|
executeStatement(
|
|
82
88
|
args: ExecuteStatementCommandInput,
|
|
@@ -84,12 +90,12 @@ export interface RDSData {
|
|
|
84
90
|
): void;
|
|
85
91
|
executeStatement(
|
|
86
92
|
args: ExecuteStatementCommandInput,
|
|
87
|
-
options:
|
|
93
|
+
options: RDSDataRequestOptions,
|
|
88
94
|
cb: (err: any, data?: ExecuteStatementCommandOutput) => void,
|
|
89
95
|
): void;
|
|
90
96
|
rollbackTransaction(
|
|
91
97
|
args: RollbackTransactionCommandInput,
|
|
92
|
-
options?:
|
|
98
|
+
options?: RDSDataRequestOptions,
|
|
93
99
|
): Promise<RollbackTransactionCommandOutput>;
|
|
94
100
|
rollbackTransaction(
|
|
95
101
|
args: RollbackTransactionCommandInput,
|
|
@@ -97,7 +103,7 @@ export interface RDSData {
|
|
|
97
103
|
): void;
|
|
98
104
|
rollbackTransaction(
|
|
99
105
|
args: RollbackTransactionCommandInput,
|
|
100
|
-
options:
|
|
106
|
+
options: RDSDataRequestOptions,
|
|
101
107
|
cb: (err: any, data?: RollbackTransactionCommandOutput) => void,
|
|
102
108
|
): void;
|
|
103
109
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/client-rds-data",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.1138.0",
|
|
4
4
|
"description": "AWS SDK for JavaScript Rds Data Client for Node.js, Browser and React Native",
|
|
5
5
|
"homepage": "https://github.com/aws/aws-sdk-js-v3/tree/main/clients/client-rds-data",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -46,13 +46,13 @@
|
|
|
46
46
|
"test:index": "tsc -p tsconfig.test.json && node ./test/index-objects.spec.mjs"
|
|
47
47
|
},
|
|
48
48
|
"dependencies": {
|
|
49
|
-
"@aws-sdk/core": "^3.978.
|
|
50
|
-
"@aws-sdk/credential-provider-node": "^3.972.
|
|
51
|
-
"@aws-sdk/types": "^3.974.
|
|
52
|
-
"@smithy/core": "^3.
|
|
53
|
-
"@smithy/fetch-http-handler": "^5.
|
|
54
|
-
"@smithy/node-http-handler": "^4.
|
|
55
|
-
"@smithy/types": "^4.
|
|
49
|
+
"@aws-sdk/core": "^3.978.1",
|
|
50
|
+
"@aws-sdk/credential-provider-node": "^3.972.84",
|
|
51
|
+
"@aws-sdk/types": "^3.974.6",
|
|
52
|
+
"@smithy/core": "^3.35.0",
|
|
53
|
+
"@smithy/fetch-http-handler": "^5.8.0",
|
|
54
|
+
"@smithy/node-http-handler": "^4.12.1",
|
|
55
|
+
"@smithy/types": "^4.19.0",
|
|
56
56
|
"tslib": "^2.6.2"
|
|
57
57
|
},
|
|
58
58
|
"devDependencies": {
|