@aws-sdk/client-rds-data 3.476.0 → 3.477.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.
|
@@ -2,16 +2,16 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.de_RollbackTransactionCommand = exports.de_ExecuteStatementCommand = exports.de_ExecuteSqlCommand = exports.de_CommitTransactionCommand = exports.de_BeginTransactionCommand = exports.de_BatchExecuteStatementCommand = exports.se_RollbackTransactionCommand = exports.se_ExecuteStatementCommand = exports.se_ExecuteSqlCommand = exports.se_CommitTransactionCommand = exports.se_BeginTransactionCommand = exports.se_BatchExecuteStatementCommand = void 0;
|
|
4
4
|
const core_1 = require("@aws-sdk/core");
|
|
5
|
-
const
|
|
5
|
+
const core_2 = require("@smithy/core");
|
|
6
6
|
const smithy_client_1 = require("@smithy/smithy-client");
|
|
7
7
|
const models_0_1 = require("../models/models_0");
|
|
8
8
|
const RDSDataServiceException_1 = require("../models/RDSDataServiceException");
|
|
9
9
|
const se_BatchExecuteStatementCommand = async (input, context) => {
|
|
10
|
-
const
|
|
10
|
+
const b = (0, core_2.requestBuilder)(input, context);
|
|
11
11
|
const headers = {
|
|
12
12
|
"content-type": "application/json",
|
|
13
13
|
};
|
|
14
|
-
|
|
14
|
+
b.bp("/BatchExecute");
|
|
15
15
|
let body;
|
|
16
16
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
17
17
|
database: [],
|
|
@@ -22,23 +22,16 @@ const se_BatchExecuteStatementCommand = async (input, context) => {
|
|
|
22
22
|
sql: [],
|
|
23
23
|
transactionId: [],
|
|
24
24
|
}));
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
hostname,
|
|
28
|
-
port,
|
|
29
|
-
method: "POST",
|
|
30
|
-
headers,
|
|
31
|
-
path: resolvedPath,
|
|
32
|
-
body,
|
|
33
|
-
});
|
|
25
|
+
b.m("POST").h(headers).b(body);
|
|
26
|
+
return b.build();
|
|
34
27
|
};
|
|
35
28
|
exports.se_BatchExecuteStatementCommand = se_BatchExecuteStatementCommand;
|
|
36
29
|
const se_BeginTransactionCommand = async (input, context) => {
|
|
37
|
-
const
|
|
30
|
+
const b = (0, core_2.requestBuilder)(input, context);
|
|
38
31
|
const headers = {
|
|
39
32
|
"content-type": "application/json",
|
|
40
33
|
};
|
|
41
|
-
|
|
34
|
+
b.bp("/BeginTransaction");
|
|
42
35
|
let body;
|
|
43
36
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
44
37
|
database: [],
|
|
@@ -46,46 +39,32 @@ const se_BeginTransactionCommand = async (input, context) => {
|
|
|
46
39
|
schema: [],
|
|
47
40
|
secretArn: [],
|
|
48
41
|
}));
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
hostname,
|
|
52
|
-
port,
|
|
53
|
-
method: "POST",
|
|
54
|
-
headers,
|
|
55
|
-
path: resolvedPath,
|
|
56
|
-
body,
|
|
57
|
-
});
|
|
42
|
+
b.m("POST").h(headers).b(body);
|
|
43
|
+
return b.build();
|
|
58
44
|
};
|
|
59
45
|
exports.se_BeginTransactionCommand = se_BeginTransactionCommand;
|
|
60
46
|
const se_CommitTransactionCommand = async (input, context) => {
|
|
61
|
-
const
|
|
47
|
+
const b = (0, core_2.requestBuilder)(input, context);
|
|
62
48
|
const headers = {
|
|
63
49
|
"content-type": "application/json",
|
|
64
50
|
};
|
|
65
|
-
|
|
51
|
+
b.bp("/CommitTransaction");
|
|
66
52
|
let body;
|
|
67
53
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
68
54
|
resourceArn: [],
|
|
69
55
|
secretArn: [],
|
|
70
56
|
transactionId: [],
|
|
71
57
|
}));
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
hostname,
|
|
75
|
-
port,
|
|
76
|
-
method: "POST",
|
|
77
|
-
headers,
|
|
78
|
-
path: resolvedPath,
|
|
79
|
-
body,
|
|
80
|
-
});
|
|
58
|
+
b.m("POST").h(headers).b(body);
|
|
59
|
+
return b.build();
|
|
81
60
|
};
|
|
82
61
|
exports.se_CommitTransactionCommand = se_CommitTransactionCommand;
|
|
83
62
|
const se_ExecuteSqlCommand = async (input, context) => {
|
|
84
|
-
const
|
|
63
|
+
const b = (0, core_2.requestBuilder)(input, context);
|
|
85
64
|
const headers = {
|
|
86
65
|
"content-type": "application/json",
|
|
87
66
|
};
|
|
88
|
-
|
|
67
|
+
b.bp("/ExecuteSql");
|
|
89
68
|
let body;
|
|
90
69
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
91
70
|
awsSecretStoreArn: [],
|
|
@@ -94,23 +73,16 @@ const se_ExecuteSqlCommand = async (input, context) => {
|
|
|
94
73
|
schema: [],
|
|
95
74
|
sqlStatements: [],
|
|
96
75
|
}));
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
hostname,
|
|
100
|
-
port,
|
|
101
|
-
method: "POST",
|
|
102
|
-
headers,
|
|
103
|
-
path: resolvedPath,
|
|
104
|
-
body,
|
|
105
|
-
});
|
|
76
|
+
b.m("POST").h(headers).b(body);
|
|
77
|
+
return b.build();
|
|
106
78
|
};
|
|
107
79
|
exports.se_ExecuteSqlCommand = se_ExecuteSqlCommand;
|
|
108
80
|
const se_ExecuteStatementCommand = async (input, context) => {
|
|
109
|
-
const
|
|
81
|
+
const b = (0, core_2.requestBuilder)(input, context);
|
|
110
82
|
const headers = {
|
|
111
83
|
"content-type": "application/json",
|
|
112
84
|
};
|
|
113
|
-
|
|
85
|
+
b.bp("/Execute");
|
|
114
86
|
let body;
|
|
115
87
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
116
88
|
continueAfterTimeout: [],
|
|
@@ -125,38 +97,24 @@ const se_ExecuteStatementCommand = async (input, context) => {
|
|
|
125
97
|
sql: [],
|
|
126
98
|
transactionId: [],
|
|
127
99
|
}));
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
hostname,
|
|
131
|
-
port,
|
|
132
|
-
method: "POST",
|
|
133
|
-
headers,
|
|
134
|
-
path: resolvedPath,
|
|
135
|
-
body,
|
|
136
|
-
});
|
|
100
|
+
b.m("POST").h(headers).b(body);
|
|
101
|
+
return b.build();
|
|
137
102
|
};
|
|
138
103
|
exports.se_ExecuteStatementCommand = se_ExecuteStatementCommand;
|
|
139
104
|
const se_RollbackTransactionCommand = async (input, context) => {
|
|
140
|
-
const
|
|
105
|
+
const b = (0, core_2.requestBuilder)(input, context);
|
|
141
106
|
const headers = {
|
|
142
107
|
"content-type": "application/json",
|
|
143
108
|
};
|
|
144
|
-
|
|
109
|
+
b.bp("/RollbackTransaction");
|
|
145
110
|
let body;
|
|
146
111
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
147
112
|
resourceArn: [],
|
|
148
113
|
secretArn: [],
|
|
149
114
|
transactionId: [],
|
|
150
115
|
}));
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
hostname,
|
|
154
|
-
port,
|
|
155
|
-
method: "POST",
|
|
156
|
-
headers,
|
|
157
|
-
path: resolvedPath,
|
|
158
|
-
body,
|
|
159
|
-
});
|
|
116
|
+
b.m("POST").h(headers).b(body);
|
|
117
|
+
return b.build();
|
|
160
118
|
};
|
|
161
119
|
exports.se_RollbackTransactionCommand = se_RollbackTransactionCommand;
|
|
162
120
|
const de_BatchExecuteStatementCommand = async (output, context) => {
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { awsExpectUnion as __expectUnion } from "@aws-sdk/core";
|
|
2
|
-
import {
|
|
2
|
+
import { requestBuilder as rb } from "@smithy/core";
|
|
3
3
|
import { _json, collectBody, decorateServiceException as __decorateServiceException, expectBoolean as __expectBoolean, expectInt32 as __expectInt32, expectLong as __expectLong, expectNonNull as __expectNonNull, expectObject as __expectObject, expectString as __expectString, limitedParseDouble as __limitedParseDouble, limitedParseFloat32 as __limitedParseFloat32, map, serializeFloat as __serializeFloat, take, withBaseException, } from "@smithy/smithy-client";
|
|
4
4
|
import { AccessDeniedException, ArrayValue, BadRequestException, Field, ForbiddenException, InternalServerErrorException, NotFoundException, ServiceUnavailableError, StatementTimeoutException, } from "../models/models_0";
|
|
5
5
|
import { RDSDataServiceException as __BaseException } from "../models/RDSDataServiceException";
|
|
6
6
|
export const se_BatchExecuteStatementCommand = async (input, context) => {
|
|
7
|
-
const
|
|
7
|
+
const b = rb(input, context);
|
|
8
8
|
const headers = {
|
|
9
9
|
"content-type": "application/json",
|
|
10
10
|
};
|
|
11
|
-
|
|
11
|
+
b.bp("/BatchExecute");
|
|
12
12
|
let body;
|
|
13
13
|
body = JSON.stringify(take(input, {
|
|
14
14
|
database: [],
|
|
@@ -19,22 +19,15 @@ export const se_BatchExecuteStatementCommand = async (input, context) => {
|
|
|
19
19
|
sql: [],
|
|
20
20
|
transactionId: [],
|
|
21
21
|
}));
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
hostname,
|
|
25
|
-
port,
|
|
26
|
-
method: "POST",
|
|
27
|
-
headers,
|
|
28
|
-
path: resolvedPath,
|
|
29
|
-
body,
|
|
30
|
-
});
|
|
22
|
+
b.m("POST").h(headers).b(body);
|
|
23
|
+
return b.build();
|
|
31
24
|
};
|
|
32
25
|
export const se_BeginTransactionCommand = async (input, context) => {
|
|
33
|
-
const
|
|
26
|
+
const b = rb(input, context);
|
|
34
27
|
const headers = {
|
|
35
28
|
"content-type": "application/json",
|
|
36
29
|
};
|
|
37
|
-
|
|
30
|
+
b.bp("/BeginTransaction");
|
|
38
31
|
let body;
|
|
39
32
|
body = JSON.stringify(take(input, {
|
|
40
33
|
database: [],
|
|
@@ -42,44 +35,30 @@ export const se_BeginTransactionCommand = async (input, context) => {
|
|
|
42
35
|
schema: [],
|
|
43
36
|
secretArn: [],
|
|
44
37
|
}));
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
hostname,
|
|
48
|
-
port,
|
|
49
|
-
method: "POST",
|
|
50
|
-
headers,
|
|
51
|
-
path: resolvedPath,
|
|
52
|
-
body,
|
|
53
|
-
});
|
|
38
|
+
b.m("POST").h(headers).b(body);
|
|
39
|
+
return b.build();
|
|
54
40
|
};
|
|
55
41
|
export const se_CommitTransactionCommand = async (input, context) => {
|
|
56
|
-
const
|
|
42
|
+
const b = rb(input, context);
|
|
57
43
|
const headers = {
|
|
58
44
|
"content-type": "application/json",
|
|
59
45
|
};
|
|
60
|
-
|
|
46
|
+
b.bp("/CommitTransaction");
|
|
61
47
|
let body;
|
|
62
48
|
body = JSON.stringify(take(input, {
|
|
63
49
|
resourceArn: [],
|
|
64
50
|
secretArn: [],
|
|
65
51
|
transactionId: [],
|
|
66
52
|
}));
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
hostname,
|
|
70
|
-
port,
|
|
71
|
-
method: "POST",
|
|
72
|
-
headers,
|
|
73
|
-
path: resolvedPath,
|
|
74
|
-
body,
|
|
75
|
-
});
|
|
53
|
+
b.m("POST").h(headers).b(body);
|
|
54
|
+
return b.build();
|
|
76
55
|
};
|
|
77
56
|
export const se_ExecuteSqlCommand = async (input, context) => {
|
|
78
|
-
const
|
|
57
|
+
const b = rb(input, context);
|
|
79
58
|
const headers = {
|
|
80
59
|
"content-type": "application/json",
|
|
81
60
|
};
|
|
82
|
-
|
|
61
|
+
b.bp("/ExecuteSql");
|
|
83
62
|
let body;
|
|
84
63
|
body = JSON.stringify(take(input, {
|
|
85
64
|
awsSecretStoreArn: [],
|
|
@@ -88,22 +67,15 @@ export const se_ExecuteSqlCommand = async (input, context) => {
|
|
|
88
67
|
schema: [],
|
|
89
68
|
sqlStatements: [],
|
|
90
69
|
}));
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
hostname,
|
|
94
|
-
port,
|
|
95
|
-
method: "POST",
|
|
96
|
-
headers,
|
|
97
|
-
path: resolvedPath,
|
|
98
|
-
body,
|
|
99
|
-
});
|
|
70
|
+
b.m("POST").h(headers).b(body);
|
|
71
|
+
return b.build();
|
|
100
72
|
};
|
|
101
73
|
export const se_ExecuteStatementCommand = async (input, context) => {
|
|
102
|
-
const
|
|
74
|
+
const b = rb(input, context);
|
|
103
75
|
const headers = {
|
|
104
76
|
"content-type": "application/json",
|
|
105
77
|
};
|
|
106
|
-
|
|
78
|
+
b.bp("/Execute");
|
|
107
79
|
let body;
|
|
108
80
|
body = JSON.stringify(take(input, {
|
|
109
81
|
continueAfterTimeout: [],
|
|
@@ -118,37 +90,23 @@ export const se_ExecuteStatementCommand = async (input, context) => {
|
|
|
118
90
|
sql: [],
|
|
119
91
|
transactionId: [],
|
|
120
92
|
}));
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
hostname,
|
|
124
|
-
port,
|
|
125
|
-
method: "POST",
|
|
126
|
-
headers,
|
|
127
|
-
path: resolvedPath,
|
|
128
|
-
body,
|
|
129
|
-
});
|
|
93
|
+
b.m("POST").h(headers).b(body);
|
|
94
|
+
return b.build();
|
|
130
95
|
};
|
|
131
96
|
export const se_RollbackTransactionCommand = async (input, context) => {
|
|
132
|
-
const
|
|
97
|
+
const b = rb(input, context);
|
|
133
98
|
const headers = {
|
|
134
99
|
"content-type": "application/json",
|
|
135
100
|
};
|
|
136
|
-
|
|
101
|
+
b.bp("/RollbackTransaction");
|
|
137
102
|
let body;
|
|
138
103
|
body = JSON.stringify(take(input, {
|
|
139
104
|
resourceArn: [],
|
|
140
105
|
secretArn: [],
|
|
141
106
|
transactionId: [],
|
|
142
107
|
}));
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
hostname,
|
|
146
|
-
port,
|
|
147
|
-
method: "POST",
|
|
148
|
-
headers,
|
|
149
|
-
path: resolvedPath,
|
|
150
|
-
body,
|
|
151
|
-
});
|
|
108
|
+
b.m("POST").h(headers).b(body);
|
|
109
|
+
return b.build();
|
|
152
110
|
};
|
|
153
111
|
export const de_BatchExecuteStatementCommand = async (output, context) => {
|
|
154
112
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
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.477.0",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
|
|
7
7
|
"build:cjs": "tsc -p tsconfig.cjs.json",
|
|
@@ -20,9 +20,9 @@
|
|
|
20
20
|
"dependencies": {
|
|
21
21
|
"@aws-crypto/sha256-browser": "3.0.0",
|
|
22
22
|
"@aws-crypto/sha256-js": "3.0.0",
|
|
23
|
-
"@aws-sdk/client-sts": "3.
|
|
24
|
-
"@aws-sdk/core": "3.
|
|
25
|
-
"@aws-sdk/credential-provider-node": "3.
|
|
23
|
+
"@aws-sdk/client-sts": "3.477.0",
|
|
24
|
+
"@aws-sdk/core": "3.477.0",
|
|
25
|
+
"@aws-sdk/credential-provider-node": "3.477.0",
|
|
26
26
|
"@aws-sdk/middleware-host-header": "3.468.0",
|
|
27
27
|
"@aws-sdk/middleware-logger": "3.468.0",
|
|
28
28
|
"@aws-sdk/middleware-recursion-detection": "3.468.0",
|
|
@@ -34,6 +34,7 @@
|
|
|
34
34
|
"@aws-sdk/util-user-agent-browser": "3.468.0",
|
|
35
35
|
"@aws-sdk/util-user-agent-node": "3.470.0",
|
|
36
36
|
"@smithy/config-resolver": "^2.0.21",
|
|
37
|
+
"@smithy/core": "^1.2.0",
|
|
37
38
|
"@smithy/fetch-http-handler": "^2.3.1",
|
|
38
39
|
"@smithy/hash-node": "^2.0.17",
|
|
39
40
|
"@smithy/invalid-dependency": "^2.0.15",
|