@aws-sdk/client-rds-data 3.299.0 → 3.300.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-types/commands/BatchExecuteStatementCommand.d.ts +63 -0
- package/dist-types/commands/BeginTransactionCommand.d.ts +6 -0
- package/dist-types/commands/CommitTransactionCommand.d.ts +5 -0
- package/dist-types/commands/ExecuteSqlCommand.d.ts +7 -0
- package/dist-types/commands/ExecuteStatementCommand.d.ts +68 -0
- package/dist-types/commands/RollbackTransactionCommand.d.ts +5 -0
- package/package.json +8 -8
|
@@ -39,6 +39,69 @@ export interface BatchExecuteStatementCommandOutput extends BatchExecuteStatemen
|
|
|
39
39
|
* import { RDSDataClient, BatchExecuteStatementCommand } from "@aws-sdk/client-rds-data"; // ES Modules import
|
|
40
40
|
* // const { RDSDataClient, BatchExecuteStatementCommand } = require("@aws-sdk/client-rds-data"); // CommonJS import
|
|
41
41
|
* const client = new RDSDataClient(config);
|
|
42
|
+
* const input = {
|
|
43
|
+
* resourceArn: "STRING_VALUE", // required
|
|
44
|
+
* secretArn: "STRING_VALUE", // required
|
|
45
|
+
* sql: "STRING_VALUE", // required
|
|
46
|
+
* database: "STRING_VALUE",
|
|
47
|
+
* schema: "STRING_VALUE",
|
|
48
|
+
* parameterSets: [
|
|
49
|
+
* [
|
|
50
|
+
* {
|
|
51
|
+
* name: "STRING_VALUE",
|
|
52
|
+
* value: { // Union: only one key present
|
|
53
|
+
* isNull: true || false,
|
|
54
|
+
* booleanValue: true || false,
|
|
55
|
+
* longValue: Number("long"),
|
|
56
|
+
* doubleValue: Number("double"),
|
|
57
|
+
* stringValue: "STRING_VALUE",
|
|
58
|
+
* blobValue: "BLOB_VALUE",
|
|
59
|
+
* arrayValue: { // Union: only one key present
|
|
60
|
+
* booleanValues: [
|
|
61
|
+
* true || false,
|
|
62
|
+
* ],
|
|
63
|
+
* longValues: [
|
|
64
|
+
* Number("long"),
|
|
65
|
+
* ],
|
|
66
|
+
* doubleValues: [
|
|
67
|
+
* Number("double"),
|
|
68
|
+
* ],
|
|
69
|
+
* stringValues: [
|
|
70
|
+
* "STRING_VALUE",
|
|
71
|
+
* ],
|
|
72
|
+
* arrayValues: [
|
|
73
|
+
* { // Union: only one key present
|
|
74
|
+
* booleanValues: [
|
|
75
|
+
* true || false,
|
|
76
|
+
* ],
|
|
77
|
+
* longValues: [
|
|
78
|
+
* Number("long"),
|
|
79
|
+
* ],
|
|
80
|
+
* doubleValues: [
|
|
81
|
+
* Number("double"),
|
|
82
|
+
* ],
|
|
83
|
+
* stringValues: [
|
|
84
|
+
* "STRING_VALUE",
|
|
85
|
+
* ],
|
|
86
|
+
* arrayValues: [
|
|
87
|
+
* { // Union: only one key present
|
|
88
|
+
* booleanValues: "<ArrayValue>",
|
|
89
|
+
* longValues: "<ArrayValue>",
|
|
90
|
+
* doubleValues: "<ArrayValue>",
|
|
91
|
+
* stringValues: "<ArrayValue>",
|
|
92
|
+
* arrayValues: "<ArrayValue>",
|
|
93
|
+
* },
|
|
94
|
+
* ],
|
|
95
|
+
* },
|
|
96
|
+
* ],
|
|
97
|
+
* },
|
|
98
|
+
* },
|
|
99
|
+
* typeHint: "STRING_VALUE",
|
|
100
|
+
* },
|
|
101
|
+
* ],
|
|
102
|
+
* ],
|
|
103
|
+
* transactionId: "STRING_VALUE",
|
|
104
|
+
* };
|
|
42
105
|
* const command = new BatchExecuteStatementCommand(input);
|
|
43
106
|
* const response = await client.send(command);
|
|
44
107
|
* ```
|
|
@@ -34,6 +34,12 @@ export interface BeginTransactionCommandOutput extends BeginTransactionResponse,
|
|
|
34
34
|
* import { RDSDataClient, BeginTransactionCommand } from "@aws-sdk/client-rds-data"; // ES Modules import
|
|
35
35
|
* // const { RDSDataClient, BeginTransactionCommand } = require("@aws-sdk/client-rds-data"); // CommonJS import
|
|
36
36
|
* const client = new RDSDataClient(config);
|
|
37
|
+
* const input = {
|
|
38
|
+
* resourceArn: "STRING_VALUE", // required
|
|
39
|
+
* secretArn: "STRING_VALUE", // required
|
|
40
|
+
* database: "STRING_VALUE",
|
|
41
|
+
* schema: "STRING_VALUE",
|
|
42
|
+
* };
|
|
37
43
|
* const command = new BeginTransactionCommand(input);
|
|
38
44
|
* const response = await client.send(command);
|
|
39
45
|
* ```
|
|
@@ -27,6 +27,11 @@ export interface CommitTransactionCommandOutput extends CommitTransactionRespons
|
|
|
27
27
|
* import { RDSDataClient, CommitTransactionCommand } from "@aws-sdk/client-rds-data"; // ES Modules import
|
|
28
28
|
* // const { RDSDataClient, CommitTransactionCommand } = require("@aws-sdk/client-rds-data"); // CommonJS import
|
|
29
29
|
* const client = new RDSDataClient(config);
|
|
30
|
+
* const input = {
|
|
31
|
+
* resourceArn: "STRING_VALUE", // required
|
|
32
|
+
* secretArn: "STRING_VALUE", // required
|
|
33
|
+
* transactionId: "STRING_VALUE", // required
|
|
34
|
+
* };
|
|
30
35
|
* const command = new CommitTransactionCommand(input);
|
|
31
36
|
* const response = await client.send(command);
|
|
32
37
|
* ```
|
|
@@ -32,6 +32,13 @@ export interface ExecuteSqlCommandOutput extends ExecuteSqlResponse, __MetadataB
|
|
|
32
32
|
* import { RDSDataClient, ExecuteSqlCommand } from "@aws-sdk/client-rds-data"; // ES Modules import
|
|
33
33
|
* // const { RDSDataClient, ExecuteSqlCommand } = require("@aws-sdk/client-rds-data"); // CommonJS import
|
|
34
34
|
* const client = new RDSDataClient(config);
|
|
35
|
+
* const input = {
|
|
36
|
+
* dbClusterOrInstanceArn: "STRING_VALUE", // required
|
|
37
|
+
* awsSecretStoreArn: "STRING_VALUE", // required
|
|
38
|
+
* sqlStatements: "STRING_VALUE", // required
|
|
39
|
+
* database: "STRING_VALUE",
|
|
40
|
+
* schema: "STRING_VALUE",
|
|
41
|
+
* };
|
|
35
42
|
* const command = new ExecuteSqlCommand(input);
|
|
36
43
|
* const response = await client.send(command);
|
|
37
44
|
* ```
|
|
@@ -32,6 +32,74 @@ export interface ExecuteStatementCommandOutput extends ExecuteStatementResponse,
|
|
|
32
32
|
* import { RDSDataClient, ExecuteStatementCommand } from "@aws-sdk/client-rds-data"; // ES Modules import
|
|
33
33
|
* // const { RDSDataClient, ExecuteStatementCommand } = require("@aws-sdk/client-rds-data"); // CommonJS import
|
|
34
34
|
* const client = new RDSDataClient(config);
|
|
35
|
+
* const input = {
|
|
36
|
+
* resourceArn: "STRING_VALUE", // required
|
|
37
|
+
* secretArn: "STRING_VALUE", // required
|
|
38
|
+
* sql: "STRING_VALUE", // required
|
|
39
|
+
* database: "STRING_VALUE",
|
|
40
|
+
* schema: "STRING_VALUE",
|
|
41
|
+
* parameters: [
|
|
42
|
+
* {
|
|
43
|
+
* name: "STRING_VALUE",
|
|
44
|
+
* value: { // Union: only one key present
|
|
45
|
+
* isNull: true || false,
|
|
46
|
+
* booleanValue: true || false,
|
|
47
|
+
* longValue: Number("long"),
|
|
48
|
+
* doubleValue: Number("double"),
|
|
49
|
+
* stringValue: "STRING_VALUE",
|
|
50
|
+
* blobValue: "BLOB_VALUE",
|
|
51
|
+
* arrayValue: { // Union: only one key present
|
|
52
|
+
* booleanValues: [
|
|
53
|
+
* true || false,
|
|
54
|
+
* ],
|
|
55
|
+
* longValues: [
|
|
56
|
+
* Number("long"),
|
|
57
|
+
* ],
|
|
58
|
+
* doubleValues: [
|
|
59
|
+
* Number("double"),
|
|
60
|
+
* ],
|
|
61
|
+
* stringValues: [
|
|
62
|
+
* "STRING_VALUE",
|
|
63
|
+
* ],
|
|
64
|
+
* arrayValues: [
|
|
65
|
+
* { // Union: only one key present
|
|
66
|
+
* booleanValues: [
|
|
67
|
+
* true || false,
|
|
68
|
+
* ],
|
|
69
|
+
* longValues: [
|
|
70
|
+
* Number("long"),
|
|
71
|
+
* ],
|
|
72
|
+
* doubleValues: [
|
|
73
|
+
* Number("double"),
|
|
74
|
+
* ],
|
|
75
|
+
* stringValues: [
|
|
76
|
+
* "STRING_VALUE",
|
|
77
|
+
* ],
|
|
78
|
+
* arrayValues: [
|
|
79
|
+
* { // Union: only one key present
|
|
80
|
+
* booleanValues: "<ArrayValue>",
|
|
81
|
+
* longValues: "<ArrayValue>",
|
|
82
|
+
* doubleValues: "<ArrayValue>",
|
|
83
|
+
* stringValues: "<ArrayValue>",
|
|
84
|
+
* arrayValues: "<ArrayValue>",
|
|
85
|
+
* },
|
|
86
|
+
* ],
|
|
87
|
+
* },
|
|
88
|
+
* ],
|
|
89
|
+
* },
|
|
90
|
+
* },
|
|
91
|
+
* typeHint: "STRING_VALUE",
|
|
92
|
+
* },
|
|
93
|
+
* ],
|
|
94
|
+
* transactionId: "STRING_VALUE",
|
|
95
|
+
* includeResultMetadata: true || false,
|
|
96
|
+
* continueAfterTimeout: true || false,
|
|
97
|
+
* resultSetOptions: {
|
|
98
|
+
* decimalReturnType: "STRING_VALUE",
|
|
99
|
+
* longReturnType: "STRING_VALUE",
|
|
100
|
+
* },
|
|
101
|
+
* formatRecordsAs: "STRING_VALUE",
|
|
102
|
+
* };
|
|
35
103
|
* const command = new ExecuteStatementCommand(input);
|
|
36
104
|
* const response = await client.send(command);
|
|
37
105
|
* ```
|
|
@@ -26,6 +26,11 @@ export interface RollbackTransactionCommandOutput extends RollbackTransactionRes
|
|
|
26
26
|
* import { RDSDataClient, RollbackTransactionCommand } from "@aws-sdk/client-rds-data"; // ES Modules import
|
|
27
27
|
* // const { RDSDataClient, RollbackTransactionCommand } = require("@aws-sdk/client-rds-data"); // CommonJS import
|
|
28
28
|
* const client = new RDSDataClient(config);
|
|
29
|
+
* const input = {
|
|
30
|
+
* resourceArn: "STRING_VALUE", // required
|
|
31
|
+
* secretArn: "STRING_VALUE", // required
|
|
32
|
+
* transactionId: "STRING_VALUE", // required
|
|
33
|
+
* };
|
|
29
34
|
* const command = new RollbackTransactionCommand(input);
|
|
30
35
|
* const response = await client.send(command);
|
|
31
36
|
* ```
|
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.300.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",
|
|
@@ -21,9 +21,9 @@
|
|
|
21
21
|
"dependencies": {
|
|
22
22
|
"@aws-crypto/sha256-browser": "3.0.0",
|
|
23
23
|
"@aws-crypto/sha256-js": "3.0.0",
|
|
24
|
-
"@aws-sdk/client-sts": "3.
|
|
25
|
-
"@aws-sdk/config-resolver": "3.
|
|
26
|
-
"@aws-sdk/credential-provider-node": "3.
|
|
24
|
+
"@aws-sdk/client-sts": "3.300.0",
|
|
25
|
+
"@aws-sdk/config-resolver": "3.300.0",
|
|
26
|
+
"@aws-sdk/credential-provider-node": "3.300.0",
|
|
27
27
|
"@aws-sdk/fetch-http-handler": "3.296.0",
|
|
28
28
|
"@aws-sdk/hash-node": "3.296.0",
|
|
29
29
|
"@aws-sdk/invalid-dependency": "3.296.0",
|
|
@@ -32,12 +32,12 @@
|
|
|
32
32
|
"@aws-sdk/middleware-host-header": "3.296.0",
|
|
33
33
|
"@aws-sdk/middleware-logger": "3.296.0",
|
|
34
34
|
"@aws-sdk/middleware-recursion-detection": "3.296.0",
|
|
35
|
-
"@aws-sdk/middleware-retry": "3.
|
|
35
|
+
"@aws-sdk/middleware-retry": "3.300.0",
|
|
36
36
|
"@aws-sdk/middleware-serde": "3.296.0",
|
|
37
37
|
"@aws-sdk/middleware-signing": "3.299.0",
|
|
38
38
|
"@aws-sdk/middleware-stack": "3.296.0",
|
|
39
39
|
"@aws-sdk/middleware-user-agent": "3.299.0",
|
|
40
|
-
"@aws-sdk/node-config-provider": "3.
|
|
40
|
+
"@aws-sdk/node-config-provider": "3.300.0",
|
|
41
41
|
"@aws-sdk/node-http-handler": "3.296.0",
|
|
42
42
|
"@aws-sdk/protocol-http": "3.296.0",
|
|
43
43
|
"@aws-sdk/smithy-client": "3.296.0",
|
|
@@ -47,11 +47,11 @@
|
|
|
47
47
|
"@aws-sdk/util-body-length-browser": "3.295.0",
|
|
48
48
|
"@aws-sdk/util-body-length-node": "3.295.0",
|
|
49
49
|
"@aws-sdk/util-defaults-mode-browser": "3.296.0",
|
|
50
|
-
"@aws-sdk/util-defaults-mode-node": "3.
|
|
50
|
+
"@aws-sdk/util-defaults-mode-node": "3.300.0",
|
|
51
51
|
"@aws-sdk/util-endpoints": "3.296.0",
|
|
52
52
|
"@aws-sdk/util-retry": "3.296.0",
|
|
53
53
|
"@aws-sdk/util-user-agent-browser": "3.299.0",
|
|
54
|
-
"@aws-sdk/util-user-agent-node": "3.
|
|
54
|
+
"@aws-sdk/util-user-agent-node": "3.300.0",
|
|
55
55
|
"@aws-sdk/util-utf8": "3.295.0",
|
|
56
56
|
"tslib": "^2.5.0"
|
|
57
57
|
},
|