@aws-sdk/client-rds-data 3.928.0 → 3.930.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 +548 -894
- package/dist-cjs/runtimeConfig.shared.js +2 -0
- package/dist-es/RDSDataClient.js +2 -0
- package/dist-es/commands/BatchExecuteStatementCommand.js +3 -9
- package/dist-es/commands/BeginTransactionCommand.js +3 -9
- package/dist-es/commands/CommitTransactionCommand.js +3 -9
- package/dist-es/commands/ExecuteSqlCommand.js +3 -9
- package/dist-es/commands/ExecuteStatementCommand.js +3 -9
- package/dist-es/commands/RollbackTransactionCommand.js +3 -9
- package/dist-es/models/models_0.js +0 -62
- package/dist-es/runtimeConfig.shared.js +2 -0
- package/dist-es/schemas/schemas_0.js +487 -0
- package/dist-types/RDSDataClient.d.ts +10 -1
- package/dist-types/models/models_0.d.ts +12 -3
- package/dist-types/runtimeConfig.browser.d.ts +1 -0
- package/dist-types/runtimeConfig.d.ts +1 -0
- package/dist-types/runtimeConfig.native.d.ts +1 -0
- package/dist-types/runtimeConfig.shared.d.ts +1 -0
- package/dist-types/schemas/schemas_0.d.ts +64 -0
- package/dist-types/ts3.4/RDSDataClient.d.ts +4 -0
- package/dist-types/ts3.4/models/models_0.d.ts +0 -3
- package/dist-types/ts3.4/runtimeConfig.browser.d.ts +4 -0
- package/dist-types/ts3.4/runtimeConfig.d.ts +4 -0
- package/dist-types/ts3.4/runtimeConfig.native.d.ts +4 -0
- package/dist-types/ts3.4/runtimeConfig.shared.d.ts +4 -0
- package/dist-types/ts3.4/schemas/schemas_0.d.ts +69 -0
- package/package.json +33 -33
- package/dist-es/protocols/Aws_restJson1.js +0 -740
- package/dist-types/protocols/Aws_restJson1.d.ts +0 -56
- package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +0 -77
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.getRuntimeConfig = void 0;
|
|
4
4
|
const core_1 = require("@aws-sdk/core");
|
|
5
|
+
const protocols_1 = require("@aws-sdk/core/protocols");
|
|
5
6
|
const smithy_client_1 = require("@smithy/smithy-client");
|
|
6
7
|
const url_parser_1 = require("@smithy/url-parser");
|
|
7
8
|
const util_base64_1 = require("@smithy/util-base64");
|
|
@@ -25,6 +26,7 @@ const getRuntimeConfig = (config) => {
|
|
|
25
26
|
},
|
|
26
27
|
],
|
|
27
28
|
logger: config?.logger ?? new smithy_client_1.NoOpLogger(),
|
|
29
|
+
protocol: config?.protocol ?? new protocols_1.AwsRestJsonProtocol({ defaultNamespace: "com.amazonaws.rdsdata" }),
|
|
28
30
|
serviceId: config?.serviceId ?? "RDS Data",
|
|
29
31
|
urlParser: config?.urlParser ?? url_parser_1.parseUrl,
|
|
30
32
|
utf8Decoder: config?.utf8Decoder ?? util_utf8_1.fromUtf8,
|
package/dist-es/RDSDataClient.js
CHANGED
|
@@ -4,6 +4,7 @@ import { getRecursionDetectionPlugin } from "@aws-sdk/middleware-recursion-detec
|
|
|
4
4
|
import { getUserAgentPlugin, resolveUserAgentConfig, } from "@aws-sdk/middleware-user-agent";
|
|
5
5
|
import { resolveRegionConfig } from "@smithy/config-resolver";
|
|
6
6
|
import { DefaultIdentityProviderConfig, getHttpAuthSchemeEndpointRuleSetPlugin, getHttpSigningPlugin, } from "@smithy/core";
|
|
7
|
+
import { getSchemaSerdePlugin } from "@smithy/core/schema";
|
|
7
8
|
import { getContentLengthPlugin } from "@smithy/middleware-content-length";
|
|
8
9
|
import { resolveEndpointConfig } from "@smithy/middleware-endpoint";
|
|
9
10
|
import { getRetryPlugin, resolveRetryConfig } from "@smithy/middleware-retry";
|
|
@@ -28,6 +29,7 @@ export class RDSDataClient extends __Client {
|
|
|
28
29
|
const _config_7 = resolveHttpAuthSchemeConfig(_config_6);
|
|
29
30
|
const _config_8 = resolveRuntimeExtensions(_config_7, configuration?.extensions || []);
|
|
30
31
|
this.config = _config_8;
|
|
32
|
+
this.middlewareStack.use(getSchemaSerdePlugin(this.config));
|
|
31
33
|
this.middlewareStack.use(getUserAgentPlugin(this.config));
|
|
32
34
|
this.middlewareStack.use(getRetryPlugin(this.config));
|
|
33
35
|
this.middlewareStack.use(getContentLengthPlugin(this.config));
|
|
@@ -1,22 +1,16 @@
|
|
|
1
1
|
import { getEndpointPlugin } from "@smithy/middleware-endpoint";
|
|
2
|
-
import { getSerdePlugin } from "@smithy/middleware-serde";
|
|
3
2
|
import { Command as $Command } from "@smithy/smithy-client";
|
|
4
3
|
import { commonParams } from "../endpoint/EndpointParameters";
|
|
5
|
-
import {
|
|
4
|
+
import { BatchExecuteStatement } from "../schemas/schemas_0";
|
|
6
5
|
export { $Command };
|
|
7
6
|
export class BatchExecuteStatementCommand extends $Command
|
|
8
7
|
.classBuilder()
|
|
9
8
|
.ep(commonParams)
|
|
10
9
|
.m(function (Command, cs, config, o) {
|
|
11
|
-
return [
|
|
12
|
-
getSerdePlugin(config, this.serialize, this.deserialize),
|
|
13
|
-
getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
14
|
-
];
|
|
10
|
+
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
15
11
|
})
|
|
16
12
|
.s("RdsDataService", "BatchExecuteStatement", {})
|
|
17
13
|
.n("RDSDataClient", "BatchExecuteStatementCommand")
|
|
18
|
-
.
|
|
19
|
-
.ser(se_BatchExecuteStatementCommand)
|
|
20
|
-
.de(de_BatchExecuteStatementCommand)
|
|
14
|
+
.sc(BatchExecuteStatement)
|
|
21
15
|
.build() {
|
|
22
16
|
}
|
|
@@ -1,22 +1,16 @@
|
|
|
1
1
|
import { getEndpointPlugin } from "@smithy/middleware-endpoint";
|
|
2
|
-
import { getSerdePlugin } from "@smithy/middleware-serde";
|
|
3
2
|
import { Command as $Command } from "@smithy/smithy-client";
|
|
4
3
|
import { commonParams } from "../endpoint/EndpointParameters";
|
|
5
|
-
import {
|
|
4
|
+
import { BeginTransaction } from "../schemas/schemas_0";
|
|
6
5
|
export { $Command };
|
|
7
6
|
export class BeginTransactionCommand extends $Command
|
|
8
7
|
.classBuilder()
|
|
9
8
|
.ep(commonParams)
|
|
10
9
|
.m(function (Command, cs, config, o) {
|
|
11
|
-
return [
|
|
12
|
-
getSerdePlugin(config, this.serialize, this.deserialize),
|
|
13
|
-
getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
14
|
-
];
|
|
10
|
+
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
15
11
|
})
|
|
16
12
|
.s("RdsDataService", "BeginTransaction", {})
|
|
17
13
|
.n("RDSDataClient", "BeginTransactionCommand")
|
|
18
|
-
.
|
|
19
|
-
.ser(se_BeginTransactionCommand)
|
|
20
|
-
.de(de_BeginTransactionCommand)
|
|
14
|
+
.sc(BeginTransaction)
|
|
21
15
|
.build() {
|
|
22
16
|
}
|
|
@@ -1,22 +1,16 @@
|
|
|
1
1
|
import { getEndpointPlugin } from "@smithy/middleware-endpoint";
|
|
2
|
-
import { getSerdePlugin } from "@smithy/middleware-serde";
|
|
3
2
|
import { Command as $Command } from "@smithy/smithy-client";
|
|
4
3
|
import { commonParams } from "../endpoint/EndpointParameters";
|
|
5
|
-
import {
|
|
4
|
+
import { CommitTransaction } from "../schemas/schemas_0";
|
|
6
5
|
export { $Command };
|
|
7
6
|
export class CommitTransactionCommand extends $Command
|
|
8
7
|
.classBuilder()
|
|
9
8
|
.ep(commonParams)
|
|
10
9
|
.m(function (Command, cs, config, o) {
|
|
11
|
-
return [
|
|
12
|
-
getSerdePlugin(config, this.serialize, this.deserialize),
|
|
13
|
-
getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
14
|
-
];
|
|
10
|
+
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
15
11
|
})
|
|
16
12
|
.s("RdsDataService", "CommitTransaction", {})
|
|
17
13
|
.n("RDSDataClient", "CommitTransactionCommand")
|
|
18
|
-
.
|
|
19
|
-
.ser(se_CommitTransactionCommand)
|
|
20
|
-
.de(de_CommitTransactionCommand)
|
|
14
|
+
.sc(CommitTransaction)
|
|
21
15
|
.build() {
|
|
22
16
|
}
|
|
@@ -1,22 +1,16 @@
|
|
|
1
1
|
import { getEndpointPlugin } from "@smithy/middleware-endpoint";
|
|
2
|
-
import { getSerdePlugin } from "@smithy/middleware-serde";
|
|
3
2
|
import { Command as $Command } from "@smithy/smithy-client";
|
|
4
3
|
import { commonParams } from "../endpoint/EndpointParameters";
|
|
5
|
-
import {
|
|
4
|
+
import { ExecuteSql } from "../schemas/schemas_0";
|
|
6
5
|
export { $Command };
|
|
7
6
|
export class ExecuteSqlCommand extends $Command
|
|
8
7
|
.classBuilder()
|
|
9
8
|
.ep(commonParams)
|
|
10
9
|
.m(function (Command, cs, config, o) {
|
|
11
|
-
return [
|
|
12
|
-
getSerdePlugin(config, this.serialize, this.deserialize),
|
|
13
|
-
getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
14
|
-
];
|
|
10
|
+
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
15
11
|
})
|
|
16
12
|
.s("RdsDataService", "ExecuteSql", {})
|
|
17
13
|
.n("RDSDataClient", "ExecuteSqlCommand")
|
|
18
|
-
.
|
|
19
|
-
.ser(se_ExecuteSqlCommand)
|
|
20
|
-
.de(de_ExecuteSqlCommand)
|
|
14
|
+
.sc(ExecuteSql)
|
|
21
15
|
.build() {
|
|
22
16
|
}
|
|
@@ -1,22 +1,16 @@
|
|
|
1
1
|
import { getEndpointPlugin } from "@smithy/middleware-endpoint";
|
|
2
|
-
import { getSerdePlugin } from "@smithy/middleware-serde";
|
|
3
2
|
import { Command as $Command } from "@smithy/smithy-client";
|
|
4
3
|
import { commonParams } from "../endpoint/EndpointParameters";
|
|
5
|
-
import {
|
|
4
|
+
import { ExecuteStatement } from "../schemas/schemas_0";
|
|
6
5
|
export { $Command };
|
|
7
6
|
export class ExecuteStatementCommand extends $Command
|
|
8
7
|
.classBuilder()
|
|
9
8
|
.ep(commonParams)
|
|
10
9
|
.m(function (Command, cs, config, o) {
|
|
11
|
-
return [
|
|
12
|
-
getSerdePlugin(config, this.serialize, this.deserialize),
|
|
13
|
-
getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
14
|
-
];
|
|
10
|
+
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
15
11
|
})
|
|
16
12
|
.s("RdsDataService", "ExecuteStatement", {})
|
|
17
13
|
.n("RDSDataClient", "ExecuteStatementCommand")
|
|
18
|
-
.
|
|
19
|
-
.ser(se_ExecuteStatementCommand)
|
|
20
|
-
.de(de_ExecuteStatementCommand)
|
|
14
|
+
.sc(ExecuteStatement)
|
|
21
15
|
.build() {
|
|
22
16
|
}
|
|
@@ -1,22 +1,16 @@
|
|
|
1
1
|
import { getEndpointPlugin } from "@smithy/middleware-endpoint";
|
|
2
|
-
import { getSerdePlugin } from "@smithy/middleware-serde";
|
|
3
2
|
import { Command as $Command } from "@smithy/smithy-client";
|
|
4
3
|
import { commonParams } from "../endpoint/EndpointParameters";
|
|
5
|
-
import {
|
|
4
|
+
import { RollbackTransaction } from "../schemas/schemas_0";
|
|
6
5
|
export { $Command };
|
|
7
6
|
export class RollbackTransactionCommand extends $Command
|
|
8
7
|
.classBuilder()
|
|
9
8
|
.ep(commonParams)
|
|
10
9
|
.m(function (Command, cs, config, o) {
|
|
11
|
-
return [
|
|
12
|
-
getSerdePlugin(config, this.serialize, this.deserialize),
|
|
13
|
-
getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
14
|
-
];
|
|
10
|
+
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
15
11
|
})
|
|
16
12
|
.s("RdsDataService", "RollbackTransaction", {})
|
|
17
13
|
.n("RDSDataClient", "RollbackTransactionCommand")
|
|
18
|
-
.
|
|
19
|
-
.ser(se_RollbackTransactionCommand)
|
|
20
|
-
.de(de_RollbackTransactionCommand)
|
|
14
|
+
.sc(RollbackTransaction)
|
|
21
15
|
.build() {
|
|
22
16
|
}
|
|
@@ -225,65 +225,3 @@ export class UnsupportedResultException extends __BaseException {
|
|
|
225
225
|
Object.setPrototypeOf(this, UnsupportedResultException.prototype);
|
|
226
226
|
}
|
|
227
227
|
}
|
|
228
|
-
export var ArrayValue;
|
|
229
|
-
(function (ArrayValue) {
|
|
230
|
-
ArrayValue.visit = (value, visitor) => {
|
|
231
|
-
if (value.booleanValues !== undefined)
|
|
232
|
-
return visitor.booleanValues(value.booleanValues);
|
|
233
|
-
if (value.longValues !== undefined)
|
|
234
|
-
return visitor.longValues(value.longValues);
|
|
235
|
-
if (value.doubleValues !== undefined)
|
|
236
|
-
return visitor.doubleValues(value.doubleValues);
|
|
237
|
-
if (value.stringValues !== undefined)
|
|
238
|
-
return visitor.stringValues(value.stringValues);
|
|
239
|
-
if (value.arrayValues !== undefined)
|
|
240
|
-
return visitor.arrayValues(value.arrayValues);
|
|
241
|
-
return visitor._(value.$unknown[0], value.$unknown[1]);
|
|
242
|
-
};
|
|
243
|
-
})(ArrayValue || (ArrayValue = {}));
|
|
244
|
-
export var Field;
|
|
245
|
-
(function (Field) {
|
|
246
|
-
Field.visit = (value, visitor) => {
|
|
247
|
-
if (value.isNull !== undefined)
|
|
248
|
-
return visitor.isNull(value.isNull);
|
|
249
|
-
if (value.booleanValue !== undefined)
|
|
250
|
-
return visitor.booleanValue(value.booleanValue);
|
|
251
|
-
if (value.longValue !== undefined)
|
|
252
|
-
return visitor.longValue(value.longValue);
|
|
253
|
-
if (value.doubleValue !== undefined)
|
|
254
|
-
return visitor.doubleValue(value.doubleValue);
|
|
255
|
-
if (value.stringValue !== undefined)
|
|
256
|
-
return visitor.stringValue(value.stringValue);
|
|
257
|
-
if (value.blobValue !== undefined)
|
|
258
|
-
return visitor.blobValue(value.blobValue);
|
|
259
|
-
if (value.arrayValue !== undefined)
|
|
260
|
-
return visitor.arrayValue(value.arrayValue);
|
|
261
|
-
return visitor._(value.$unknown[0], value.$unknown[1]);
|
|
262
|
-
};
|
|
263
|
-
})(Field || (Field = {}));
|
|
264
|
-
export var Value;
|
|
265
|
-
(function (Value) {
|
|
266
|
-
Value.visit = (value, visitor) => {
|
|
267
|
-
if (value.isNull !== undefined)
|
|
268
|
-
return visitor.isNull(value.isNull);
|
|
269
|
-
if (value.bitValue !== undefined)
|
|
270
|
-
return visitor.bitValue(value.bitValue);
|
|
271
|
-
if (value.bigIntValue !== undefined)
|
|
272
|
-
return visitor.bigIntValue(value.bigIntValue);
|
|
273
|
-
if (value.intValue !== undefined)
|
|
274
|
-
return visitor.intValue(value.intValue);
|
|
275
|
-
if (value.doubleValue !== undefined)
|
|
276
|
-
return visitor.doubleValue(value.doubleValue);
|
|
277
|
-
if (value.realValue !== undefined)
|
|
278
|
-
return visitor.realValue(value.realValue);
|
|
279
|
-
if (value.stringValue !== undefined)
|
|
280
|
-
return visitor.stringValue(value.stringValue);
|
|
281
|
-
if (value.blobValue !== undefined)
|
|
282
|
-
return visitor.blobValue(value.blobValue);
|
|
283
|
-
if (value.arrayValues !== undefined)
|
|
284
|
-
return visitor.arrayValues(value.arrayValues);
|
|
285
|
-
if (value.structValue !== undefined)
|
|
286
|
-
return visitor.structValue(value.structValue);
|
|
287
|
-
return visitor._(value.$unknown[0], value.$unknown[1]);
|
|
288
|
-
};
|
|
289
|
-
})(Value || (Value = {}));
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { AwsSdkSigV4Signer } from "@aws-sdk/core";
|
|
2
|
+
import { AwsRestJsonProtocol } from "@aws-sdk/core/protocols";
|
|
2
3
|
import { NoOpLogger } from "@smithy/smithy-client";
|
|
3
4
|
import { parseUrl } from "@smithy/url-parser";
|
|
4
5
|
import { fromBase64, toBase64 } from "@smithy/util-base64";
|
|
@@ -22,6 +23,7 @@ export const getRuntimeConfig = (config) => {
|
|
|
22
23
|
},
|
|
23
24
|
],
|
|
24
25
|
logger: config?.logger ?? new NoOpLogger(),
|
|
26
|
+
protocol: config?.protocol ?? new AwsRestJsonProtocol({ defaultNamespace: "com.amazonaws.rdsdata" }),
|
|
25
27
|
serviceId: config?.serviceId ?? "RDS Data",
|
|
26
28
|
urlParser: config?.urlParser ?? parseUrl,
|
|
27
29
|
utf8Decoder: config?.utf8Decoder ?? fromUtf8,
|