@aws-sdk/client-rds-data 3.121.0 → 3.127.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/CHANGELOG.md +8 -0
- package/dist-cjs/protocols/Aws_restJson1.js +45 -68
- package/dist-es/protocols/Aws_restJson1.js +17 -40
- package/package.json +26 -26
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,14 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
# [3.127.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.126.0...v3.127.0) (2022-07-11)
|
|
7
|
+
|
|
8
|
+
**Note:** Version bump only for package @aws-sdk/client-rds-data
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
|
|
6
14
|
# [3.121.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.120.0...v3.121.0) (2022-06-30)
|
|
7
15
|
|
|
8
16
|
|
|
@@ -13,16 +13,15 @@ const serializeAws_restJson1BatchExecuteStatementCommand = async (input, context
|
|
|
13
13
|
const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/BatchExecute";
|
|
14
14
|
let body;
|
|
15
15
|
body = JSON.stringify({
|
|
16
|
-
...(input.database
|
|
17
|
-
...(input.parameterSets
|
|
18
|
-
input.parameterSets !== null && {
|
|
16
|
+
...(input.database != null && { database: input.database }),
|
|
17
|
+
...(input.parameterSets != null && {
|
|
19
18
|
parameterSets: serializeAws_restJson1SqlParameterSets(input.parameterSets, context),
|
|
20
19
|
}),
|
|
21
|
-
...(input.resourceArn
|
|
22
|
-
...(input.schema
|
|
23
|
-
...(input.secretArn
|
|
24
|
-
...(input.sql
|
|
25
|
-
...(input.transactionId
|
|
20
|
+
...(input.resourceArn != null && { resourceArn: input.resourceArn }),
|
|
21
|
+
...(input.schema != null && { schema: input.schema }),
|
|
22
|
+
...(input.secretArn != null && { secretArn: input.secretArn }),
|
|
23
|
+
...(input.sql != null && { sql: input.sql }),
|
|
24
|
+
...(input.transactionId != null && { transactionId: input.transactionId }),
|
|
26
25
|
});
|
|
27
26
|
return new protocol_http_1.HttpRequest({
|
|
28
27
|
protocol,
|
|
@@ -43,10 +42,10 @@ const serializeAws_restJson1BeginTransactionCommand = async (input, context) =>
|
|
|
43
42
|
const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/BeginTransaction";
|
|
44
43
|
let body;
|
|
45
44
|
body = JSON.stringify({
|
|
46
|
-
...(input.database
|
|
47
|
-
...(input.resourceArn
|
|
48
|
-
...(input.schema
|
|
49
|
-
...(input.secretArn
|
|
45
|
+
...(input.database != null && { database: input.database }),
|
|
46
|
+
...(input.resourceArn != null && { resourceArn: input.resourceArn }),
|
|
47
|
+
...(input.schema != null && { schema: input.schema }),
|
|
48
|
+
...(input.secretArn != null && { secretArn: input.secretArn }),
|
|
50
49
|
});
|
|
51
50
|
return new protocol_http_1.HttpRequest({
|
|
52
51
|
protocol,
|
|
@@ -67,9 +66,9 @@ const serializeAws_restJson1CommitTransactionCommand = async (input, context) =>
|
|
|
67
66
|
const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/CommitTransaction";
|
|
68
67
|
let body;
|
|
69
68
|
body = JSON.stringify({
|
|
70
|
-
...(input.resourceArn
|
|
71
|
-
...(input.secretArn
|
|
72
|
-
...(input.transactionId
|
|
69
|
+
...(input.resourceArn != null && { resourceArn: input.resourceArn }),
|
|
70
|
+
...(input.secretArn != null && { secretArn: input.secretArn }),
|
|
71
|
+
...(input.transactionId != null && { transactionId: input.transactionId }),
|
|
73
72
|
});
|
|
74
73
|
return new protocol_http_1.HttpRequest({
|
|
75
74
|
protocol,
|
|
@@ -90,13 +89,11 @@ const serializeAws_restJson1ExecuteSqlCommand = async (input, context) => {
|
|
|
90
89
|
const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/ExecuteSql";
|
|
91
90
|
let body;
|
|
92
91
|
body = JSON.stringify({
|
|
93
|
-
...(input.awsSecretStoreArn
|
|
94
|
-
|
|
95
|
-
...(input.
|
|
96
|
-
...(input.
|
|
97
|
-
|
|
98
|
-
...(input.schema !== undefined && input.schema !== null && { schema: input.schema }),
|
|
99
|
-
...(input.sqlStatements !== undefined && input.sqlStatements !== null && { sqlStatements: input.sqlStatements }),
|
|
92
|
+
...(input.awsSecretStoreArn != null && { awsSecretStoreArn: input.awsSecretStoreArn }),
|
|
93
|
+
...(input.database != null && { database: input.database }),
|
|
94
|
+
...(input.dbClusterOrInstanceArn != null && { dbClusterOrInstanceArn: input.dbClusterOrInstanceArn }),
|
|
95
|
+
...(input.schema != null && { schema: input.schema }),
|
|
96
|
+
...(input.sqlStatements != null && { sqlStatements: input.sqlStatements }),
|
|
100
97
|
});
|
|
101
98
|
return new protocol_http_1.HttpRequest({
|
|
102
99
|
protocol,
|
|
@@ -117,24 +114,19 @@ const serializeAws_restJson1ExecuteStatementCommand = async (input, context) =>
|
|
|
117
114
|
const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/Execute";
|
|
118
115
|
let body;
|
|
119
116
|
body = JSON.stringify({
|
|
120
|
-
...(input.continueAfterTimeout
|
|
121
|
-
|
|
122
|
-
...(input.
|
|
123
|
-
...(input.
|
|
124
|
-
|
|
125
|
-
...(input.
|
|
126
|
-
|
|
127
|
-
...(input.parameters !== undefined &&
|
|
128
|
-
input.parameters !== null && { parameters: serializeAws_restJson1SqlParametersList(input.parameters, context) }),
|
|
129
|
-
...(input.resourceArn !== undefined && input.resourceArn !== null && { resourceArn: input.resourceArn }),
|
|
130
|
-
...(input.resultSetOptions !== undefined &&
|
|
131
|
-
input.resultSetOptions !== null && {
|
|
117
|
+
...(input.continueAfterTimeout != null && { continueAfterTimeout: input.continueAfterTimeout }),
|
|
118
|
+
...(input.database != null && { database: input.database }),
|
|
119
|
+
...(input.formatRecordsAs != null && { formatRecordsAs: input.formatRecordsAs }),
|
|
120
|
+
...(input.includeResultMetadata != null && { includeResultMetadata: input.includeResultMetadata }),
|
|
121
|
+
...(input.parameters != null && { parameters: serializeAws_restJson1SqlParametersList(input.parameters, context) }),
|
|
122
|
+
...(input.resourceArn != null && { resourceArn: input.resourceArn }),
|
|
123
|
+
...(input.resultSetOptions != null && {
|
|
132
124
|
resultSetOptions: serializeAws_restJson1ResultSetOptions(input.resultSetOptions, context),
|
|
133
125
|
}),
|
|
134
|
-
...(input.schema
|
|
135
|
-
...(input.secretArn
|
|
136
|
-
...(input.sql
|
|
137
|
-
...(input.transactionId
|
|
126
|
+
...(input.schema != null && { schema: input.schema }),
|
|
127
|
+
...(input.secretArn != null && { secretArn: input.secretArn }),
|
|
128
|
+
...(input.sql != null && { sql: input.sql }),
|
|
129
|
+
...(input.transactionId != null && { transactionId: input.transactionId }),
|
|
138
130
|
});
|
|
139
131
|
return new protocol_http_1.HttpRequest({
|
|
140
132
|
protocol,
|
|
@@ -155,9 +147,9 @@ const serializeAws_restJson1RollbackTransactionCommand = async (input, context)
|
|
|
155
147
|
const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/RollbackTransaction";
|
|
156
148
|
let body;
|
|
157
149
|
body = JSON.stringify({
|
|
158
|
-
...(input.resourceArn
|
|
159
|
-
...(input.secretArn
|
|
160
|
-
...(input.transactionId
|
|
150
|
+
...(input.resourceArn != null && { resourceArn: input.resourceArn }),
|
|
151
|
+
...(input.secretArn != null && { secretArn: input.secretArn }),
|
|
152
|
+
...(input.transactionId != null && { transactionId: input.transactionId }),
|
|
161
153
|
});
|
|
162
154
|
return new protocol_http_1.HttpRequest({
|
|
163
155
|
protocol,
|
|
@@ -652,18 +644,15 @@ const serializeAws_restJson1LongArray = (input, context) => {
|
|
|
652
644
|
};
|
|
653
645
|
const serializeAws_restJson1ResultSetOptions = (input, context) => {
|
|
654
646
|
return {
|
|
655
|
-
...(input.decimalReturnType
|
|
656
|
-
|
|
657
|
-
...(input.longReturnType !== undefined &&
|
|
658
|
-
input.longReturnType !== null && { longReturnType: input.longReturnType }),
|
|
647
|
+
...(input.decimalReturnType != null && { decimalReturnType: input.decimalReturnType }),
|
|
648
|
+
...(input.longReturnType != null && { longReturnType: input.longReturnType }),
|
|
659
649
|
};
|
|
660
650
|
};
|
|
661
651
|
const serializeAws_restJson1SqlParameter = (input, context) => {
|
|
662
652
|
return {
|
|
663
|
-
...(input.name
|
|
664
|
-
...(input.typeHint
|
|
665
|
-
...(input.value
|
|
666
|
-
input.value !== null && { value: serializeAws_restJson1Field(input.value, context) }),
|
|
653
|
+
...(input.name != null && { name: input.name }),
|
|
654
|
+
...(input.typeHint != null && { typeHint: input.typeHint }),
|
|
655
|
+
...(input.value != null && { value: serializeAws_restJson1Field(input.value, context) }),
|
|
667
656
|
};
|
|
668
657
|
};
|
|
669
658
|
const serializeAws_restJson1SqlParameterSets = (input, context) => {
|
|
@@ -849,9 +838,7 @@ const deserializeAws_restJson1Metadata = (output, context) => {
|
|
|
849
838
|
};
|
|
850
839
|
const deserializeAws_restJson1_Record = (output, context) => {
|
|
851
840
|
return {
|
|
852
|
-
values: output.values
|
|
853
|
-
? deserializeAws_restJson1Row(output.values, context)
|
|
854
|
-
: undefined,
|
|
841
|
+
values: output.values != null ? deserializeAws_restJson1Row(output.values, context) : undefined,
|
|
855
842
|
};
|
|
856
843
|
};
|
|
857
844
|
const deserializeAws_restJson1Records = (output, context) => {
|
|
@@ -867,10 +854,8 @@ const deserializeAws_restJson1Records = (output, context) => {
|
|
|
867
854
|
};
|
|
868
855
|
const deserializeAws_restJson1ResultFrame = (output, context) => {
|
|
869
856
|
return {
|
|
870
|
-
records: output.records
|
|
871
|
-
|
|
872
|
-
: undefined,
|
|
873
|
-
resultSetMetadata: output.resultSetMetadata !== undefined && output.resultSetMetadata !== null
|
|
857
|
+
records: output.records != null ? deserializeAws_restJson1Records(output.records, context) : undefined,
|
|
858
|
+
resultSetMetadata: output.resultSetMetadata != null
|
|
874
859
|
? deserializeAws_restJson1ResultSetMetadata(output.resultSetMetadata, context)
|
|
875
860
|
: undefined,
|
|
876
861
|
};
|
|
@@ -878,9 +863,7 @@ const deserializeAws_restJson1ResultFrame = (output, context) => {
|
|
|
878
863
|
const deserializeAws_restJson1ResultSetMetadata = (output, context) => {
|
|
879
864
|
return {
|
|
880
865
|
columnCount: (0, smithy_client_1.expectLong)(output.columnCount),
|
|
881
|
-
columnMetadata: output.columnMetadata
|
|
882
|
-
? deserializeAws_restJson1Metadata(output.columnMetadata, context)
|
|
883
|
-
: undefined,
|
|
866
|
+
columnMetadata: output.columnMetadata != null ? deserializeAws_restJson1Metadata(output.columnMetadata, context) : undefined,
|
|
884
867
|
};
|
|
885
868
|
};
|
|
886
869
|
const deserializeAws_restJson1Row = (output, context) => {
|
|
@@ -908,9 +891,7 @@ const deserializeAws_restJson1SqlRecords = (output, context) => {
|
|
|
908
891
|
const deserializeAws_restJson1SqlStatementResult = (output, context) => {
|
|
909
892
|
return {
|
|
910
893
|
numberOfRecordsUpdated: (0, smithy_client_1.expectLong)(output.numberOfRecordsUpdated),
|
|
911
|
-
resultFrame: output.resultFrame
|
|
912
|
-
? deserializeAws_restJson1ResultFrame(output.resultFrame, context)
|
|
913
|
-
: undefined,
|
|
894
|
+
resultFrame: output.resultFrame != null ? deserializeAws_restJson1ResultFrame(output.resultFrame, context) : undefined,
|
|
914
895
|
};
|
|
915
896
|
};
|
|
916
897
|
const deserializeAws_restJson1SqlStatementResults = (output, context) => {
|
|
@@ -937,16 +918,12 @@ const deserializeAws_restJson1StringArray = (output, context) => {
|
|
|
937
918
|
};
|
|
938
919
|
const deserializeAws_restJson1StructValue = (output, context) => {
|
|
939
920
|
return {
|
|
940
|
-
attributes: output.attributes
|
|
941
|
-
? deserializeAws_restJson1ArrayValueList(output.attributes, context)
|
|
942
|
-
: undefined,
|
|
921
|
+
attributes: output.attributes != null ? deserializeAws_restJson1ArrayValueList(output.attributes, context) : undefined,
|
|
943
922
|
};
|
|
944
923
|
};
|
|
945
924
|
const deserializeAws_restJson1UpdateResult = (output, context) => {
|
|
946
925
|
return {
|
|
947
|
-
generatedFields: output.generatedFields
|
|
948
|
-
? deserializeAws_restJson1FieldList(output.generatedFields, context)
|
|
949
|
-
: undefined,
|
|
926
|
+
generatedFields: output.generatedFields != null ? deserializeAws_restJson1FieldList(output.generatedFields, context) : undefined,
|
|
950
927
|
};
|
|
951
928
|
};
|
|
952
929
|
const deserializeAws_restJson1UpdateResults = (output, context) => {
|
|
@@ -14,10 +14,9 @@ export var serializeAws_restJson1BatchExecuteStatementCommand = function (input,
|
|
|
14
14
|
"content-type": "application/json",
|
|
15
15
|
};
|
|
16
16
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/BatchExecute";
|
|
17
|
-
body = JSON.stringify(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.database
|
|
18
|
-
input.parameterSets !== null && {
|
|
17
|
+
body = JSON.stringify(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.database != null && { database: input.database })), (input.parameterSets != null && {
|
|
19
18
|
parameterSets: serializeAws_restJson1SqlParameterSets(input.parameterSets, context),
|
|
20
|
-
})), (input.resourceArn
|
|
19
|
+
})), (input.resourceArn != null && { resourceArn: input.resourceArn })), (input.schema != null && { schema: input.schema })), (input.secretArn != null && { secretArn: input.secretArn })), (input.sql != null && { sql: input.sql })), (input.transactionId != null && { transactionId: input.transactionId })));
|
|
21
20
|
return [2, new __HttpRequest({
|
|
22
21
|
protocol: protocol,
|
|
23
22
|
hostname: hostname,
|
|
@@ -41,7 +40,7 @@ export var serializeAws_restJson1BeginTransactionCommand = function (input, cont
|
|
|
41
40
|
"content-type": "application/json",
|
|
42
41
|
};
|
|
43
42
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/BeginTransaction";
|
|
44
|
-
body = JSON.stringify(__assign(__assign(__assign(__assign({}, (input.database
|
|
43
|
+
body = JSON.stringify(__assign(__assign(__assign(__assign({}, (input.database != null && { database: input.database })), (input.resourceArn != null && { resourceArn: input.resourceArn })), (input.schema != null && { schema: input.schema })), (input.secretArn != null && { secretArn: input.secretArn })));
|
|
45
44
|
return [2, new __HttpRequest({
|
|
46
45
|
protocol: protocol,
|
|
47
46
|
hostname: hostname,
|
|
@@ -65,7 +64,7 @@ export var serializeAws_restJson1CommitTransactionCommand = function (input, con
|
|
|
65
64
|
"content-type": "application/json",
|
|
66
65
|
};
|
|
67
66
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/CommitTransaction";
|
|
68
|
-
body = JSON.stringify(__assign(__assign(__assign({}, (input.resourceArn
|
|
67
|
+
body = JSON.stringify(__assign(__assign(__assign({}, (input.resourceArn != null && { resourceArn: input.resourceArn })), (input.secretArn != null && { secretArn: input.secretArn })), (input.transactionId != null && { transactionId: input.transactionId })));
|
|
69
68
|
return [2, new __HttpRequest({
|
|
70
69
|
protocol: protocol,
|
|
71
70
|
hostname: hostname,
|
|
@@ -89,9 +88,7 @@ export var serializeAws_restJson1ExecuteSqlCommand = function (input, context) {
|
|
|
89
88
|
"content-type": "application/json",
|
|
90
89
|
};
|
|
91
90
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/ExecuteSql";
|
|
92
|
-
body = JSON.stringify(__assign(__assign(__assign(__assign(__assign({}, (input.awsSecretStoreArn
|
|
93
|
-
input.awsSecretStoreArn !== null && { awsSecretStoreArn: input.awsSecretStoreArn })), (input.database !== undefined && input.database !== null && { database: input.database })), (input.dbClusterOrInstanceArn !== undefined &&
|
|
94
|
-
input.dbClusterOrInstanceArn !== null && { dbClusterOrInstanceArn: input.dbClusterOrInstanceArn })), (input.schema !== undefined && input.schema !== null && { schema: input.schema })), (input.sqlStatements !== undefined && input.sqlStatements !== null && { sqlStatements: input.sqlStatements })));
|
|
91
|
+
body = JSON.stringify(__assign(__assign(__assign(__assign(__assign({}, (input.awsSecretStoreArn != null && { awsSecretStoreArn: input.awsSecretStoreArn })), (input.database != null && { database: input.database })), (input.dbClusterOrInstanceArn != null && { dbClusterOrInstanceArn: input.dbClusterOrInstanceArn })), (input.schema != null && { schema: input.schema })), (input.sqlStatements != null && { sqlStatements: input.sqlStatements })));
|
|
95
92
|
return [2, new __HttpRequest({
|
|
96
93
|
protocol: protocol,
|
|
97
94
|
hostname: hostname,
|
|
@@ -115,14 +112,9 @@ export var serializeAws_restJson1ExecuteStatementCommand = function (input, cont
|
|
|
115
112
|
"content-type": "application/json",
|
|
116
113
|
};
|
|
117
114
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/Execute";
|
|
118
|
-
body = JSON.stringify(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.continueAfterTimeout
|
|
119
|
-
input.continueAfterTimeout !== null && { continueAfterTimeout: input.continueAfterTimeout })), (input.database !== undefined && input.database !== null && { database: input.database })), (input.formatRecordsAs !== undefined &&
|
|
120
|
-
input.formatRecordsAs !== null && { formatRecordsAs: input.formatRecordsAs })), (input.includeResultMetadata !== undefined &&
|
|
121
|
-
input.includeResultMetadata !== null && { includeResultMetadata: input.includeResultMetadata })), (input.parameters !== undefined &&
|
|
122
|
-
input.parameters !== null && { parameters: serializeAws_restJson1SqlParametersList(input.parameters, context) })), (input.resourceArn !== undefined && input.resourceArn !== null && { resourceArn: input.resourceArn })), (input.resultSetOptions !== undefined &&
|
|
123
|
-
input.resultSetOptions !== null && {
|
|
115
|
+
body = JSON.stringify(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.continueAfterTimeout != null && { continueAfterTimeout: input.continueAfterTimeout })), (input.database != null && { database: input.database })), (input.formatRecordsAs != null && { formatRecordsAs: input.formatRecordsAs })), (input.includeResultMetadata != null && { includeResultMetadata: input.includeResultMetadata })), (input.parameters != null && { parameters: serializeAws_restJson1SqlParametersList(input.parameters, context) })), (input.resourceArn != null && { resourceArn: input.resourceArn })), (input.resultSetOptions != null && {
|
|
124
116
|
resultSetOptions: serializeAws_restJson1ResultSetOptions(input.resultSetOptions, context),
|
|
125
|
-
})), (input.schema
|
|
117
|
+
})), (input.schema != null && { schema: input.schema })), (input.secretArn != null && { secretArn: input.secretArn })), (input.sql != null && { sql: input.sql })), (input.transactionId != null && { transactionId: input.transactionId })));
|
|
126
118
|
return [2, new __HttpRequest({
|
|
127
119
|
protocol: protocol,
|
|
128
120
|
hostname: hostname,
|
|
@@ -146,7 +138,7 @@ export var serializeAws_restJson1RollbackTransactionCommand = function (input, c
|
|
|
146
138
|
"content-type": "application/json",
|
|
147
139
|
};
|
|
148
140
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/RollbackTransaction";
|
|
149
|
-
body = JSON.stringify(__assign(__assign(__assign({}, (input.resourceArn
|
|
141
|
+
body = JSON.stringify(__assign(__assign(__assign({}, (input.resourceArn != null && { resourceArn: input.resourceArn })), (input.secretArn != null && { secretArn: input.secretArn })), (input.transactionId != null && { transactionId: input.transactionId })));
|
|
150
142
|
return [2, new __HttpRequest({
|
|
151
143
|
protocol: protocol,
|
|
152
144
|
hostname: hostname,
|
|
@@ -785,13 +777,10 @@ var serializeAws_restJson1LongArray = function (input, context) {
|
|
|
785
777
|
});
|
|
786
778
|
};
|
|
787
779
|
var serializeAws_restJson1ResultSetOptions = function (input, context) {
|
|
788
|
-
return __assign(__assign({}, (input.decimalReturnType
|
|
789
|
-
input.decimalReturnType !== null && { decimalReturnType: input.decimalReturnType })), (input.longReturnType !== undefined &&
|
|
790
|
-
input.longReturnType !== null && { longReturnType: input.longReturnType }));
|
|
780
|
+
return __assign(__assign({}, (input.decimalReturnType != null && { decimalReturnType: input.decimalReturnType })), (input.longReturnType != null && { longReturnType: input.longReturnType }));
|
|
791
781
|
};
|
|
792
782
|
var serializeAws_restJson1SqlParameter = function (input, context) {
|
|
793
|
-
return __assign(__assign(__assign({}, (input.name
|
|
794
|
-
input.value !== null && { value: serializeAws_restJson1Field(input.value, context) }));
|
|
783
|
+
return __assign(__assign(__assign({}, (input.name != null && { name: input.name })), (input.typeHint != null && { typeHint: input.typeHint })), (input.value != null && { value: serializeAws_restJson1Field(input.value, context) }));
|
|
795
784
|
};
|
|
796
785
|
var serializeAws_restJson1SqlParameterSets = function (input, context) {
|
|
797
786
|
return input
|
|
@@ -976,9 +965,7 @@ var deserializeAws_restJson1Metadata = function (output, context) {
|
|
|
976
965
|
};
|
|
977
966
|
var deserializeAws_restJson1_Record = function (output, context) {
|
|
978
967
|
return {
|
|
979
|
-
values: output.values
|
|
980
|
-
? deserializeAws_restJson1Row(output.values, context)
|
|
981
|
-
: undefined,
|
|
968
|
+
values: output.values != null ? deserializeAws_restJson1Row(output.values, context) : undefined,
|
|
982
969
|
};
|
|
983
970
|
};
|
|
984
971
|
var deserializeAws_restJson1Records = function (output, context) {
|
|
@@ -994,10 +981,8 @@ var deserializeAws_restJson1Records = function (output, context) {
|
|
|
994
981
|
};
|
|
995
982
|
var deserializeAws_restJson1ResultFrame = function (output, context) {
|
|
996
983
|
return {
|
|
997
|
-
records: output.records
|
|
998
|
-
|
|
999
|
-
: undefined,
|
|
1000
|
-
resultSetMetadata: output.resultSetMetadata !== undefined && output.resultSetMetadata !== null
|
|
984
|
+
records: output.records != null ? deserializeAws_restJson1Records(output.records, context) : undefined,
|
|
985
|
+
resultSetMetadata: output.resultSetMetadata != null
|
|
1001
986
|
? deserializeAws_restJson1ResultSetMetadata(output.resultSetMetadata, context)
|
|
1002
987
|
: undefined,
|
|
1003
988
|
};
|
|
@@ -1005,9 +990,7 @@ var deserializeAws_restJson1ResultFrame = function (output, context) {
|
|
|
1005
990
|
var deserializeAws_restJson1ResultSetMetadata = function (output, context) {
|
|
1006
991
|
return {
|
|
1007
992
|
columnCount: __expectLong(output.columnCount),
|
|
1008
|
-
columnMetadata: output.columnMetadata
|
|
1009
|
-
? deserializeAws_restJson1Metadata(output.columnMetadata, context)
|
|
1010
|
-
: undefined,
|
|
993
|
+
columnMetadata: output.columnMetadata != null ? deserializeAws_restJson1Metadata(output.columnMetadata, context) : undefined,
|
|
1011
994
|
};
|
|
1012
995
|
};
|
|
1013
996
|
var deserializeAws_restJson1Row = function (output, context) {
|
|
@@ -1035,9 +1018,7 @@ var deserializeAws_restJson1SqlRecords = function (output, context) {
|
|
|
1035
1018
|
var deserializeAws_restJson1SqlStatementResult = function (output, context) {
|
|
1036
1019
|
return {
|
|
1037
1020
|
numberOfRecordsUpdated: __expectLong(output.numberOfRecordsUpdated),
|
|
1038
|
-
resultFrame: output.resultFrame
|
|
1039
|
-
? deserializeAws_restJson1ResultFrame(output.resultFrame, context)
|
|
1040
|
-
: undefined,
|
|
1021
|
+
resultFrame: output.resultFrame != null ? deserializeAws_restJson1ResultFrame(output.resultFrame, context) : undefined,
|
|
1041
1022
|
};
|
|
1042
1023
|
};
|
|
1043
1024
|
var deserializeAws_restJson1SqlStatementResults = function (output, context) {
|
|
@@ -1064,16 +1045,12 @@ var deserializeAws_restJson1StringArray = function (output, context) {
|
|
|
1064
1045
|
};
|
|
1065
1046
|
var deserializeAws_restJson1StructValue = function (output, context) {
|
|
1066
1047
|
return {
|
|
1067
|
-
attributes: output.attributes
|
|
1068
|
-
? deserializeAws_restJson1ArrayValueList(output.attributes, context)
|
|
1069
|
-
: undefined,
|
|
1048
|
+
attributes: output.attributes != null ? deserializeAws_restJson1ArrayValueList(output.attributes, context) : undefined,
|
|
1070
1049
|
};
|
|
1071
1050
|
};
|
|
1072
1051
|
var deserializeAws_restJson1UpdateResult = function (output, context) {
|
|
1073
1052
|
return {
|
|
1074
|
-
generatedFields: output.generatedFields
|
|
1075
|
-
? deserializeAws_restJson1FieldList(output.generatedFields, context)
|
|
1076
|
-
: undefined,
|
|
1053
|
+
generatedFields: output.generatedFields != null ? deserializeAws_restJson1FieldList(output.generatedFields, context) : undefined,
|
|
1077
1054
|
};
|
|
1078
1055
|
};
|
|
1079
1056
|
var deserializeAws_restJson1UpdateResults = function (output, context) {
|
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.127.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",
|
|
@@ -18,35 +18,35 @@
|
|
|
18
18
|
"dependencies": {
|
|
19
19
|
"@aws-crypto/sha256-browser": "2.0.0",
|
|
20
20
|
"@aws-crypto/sha256-js": "2.0.0",
|
|
21
|
-
"@aws-sdk/client-sts": "3.
|
|
22
|
-
"@aws-sdk/config-resolver": "3.
|
|
23
|
-
"@aws-sdk/credential-provider-node": "3.
|
|
24
|
-
"@aws-sdk/fetch-http-handler": "3.
|
|
25
|
-
"@aws-sdk/hash-node": "3.
|
|
26
|
-
"@aws-sdk/invalid-dependency": "3.
|
|
27
|
-
"@aws-sdk/middleware-content-length": "3.
|
|
28
|
-
"@aws-sdk/middleware-host-header": "3.
|
|
29
|
-
"@aws-sdk/middleware-logger": "3.
|
|
30
|
-
"@aws-sdk/middleware-recursion-detection": "3.
|
|
31
|
-
"@aws-sdk/middleware-retry": "3.
|
|
32
|
-
"@aws-sdk/middleware-serde": "3.
|
|
33
|
-
"@aws-sdk/middleware-signing": "3.
|
|
34
|
-
"@aws-sdk/middleware-stack": "3.
|
|
35
|
-
"@aws-sdk/middleware-user-agent": "3.
|
|
36
|
-
"@aws-sdk/node-config-provider": "3.
|
|
37
|
-
"@aws-sdk/node-http-handler": "3.
|
|
38
|
-
"@aws-sdk/protocol-http": "3.
|
|
39
|
-
"@aws-sdk/smithy-client": "3.
|
|
40
|
-
"@aws-sdk/types": "3.
|
|
41
|
-
"@aws-sdk/url-parser": "3.
|
|
21
|
+
"@aws-sdk/client-sts": "3.127.0",
|
|
22
|
+
"@aws-sdk/config-resolver": "3.127.0",
|
|
23
|
+
"@aws-sdk/credential-provider-node": "3.127.0",
|
|
24
|
+
"@aws-sdk/fetch-http-handler": "3.127.0",
|
|
25
|
+
"@aws-sdk/hash-node": "3.127.0",
|
|
26
|
+
"@aws-sdk/invalid-dependency": "3.127.0",
|
|
27
|
+
"@aws-sdk/middleware-content-length": "3.127.0",
|
|
28
|
+
"@aws-sdk/middleware-host-header": "3.127.0",
|
|
29
|
+
"@aws-sdk/middleware-logger": "3.127.0",
|
|
30
|
+
"@aws-sdk/middleware-recursion-detection": "3.127.0",
|
|
31
|
+
"@aws-sdk/middleware-retry": "3.127.0",
|
|
32
|
+
"@aws-sdk/middleware-serde": "3.127.0",
|
|
33
|
+
"@aws-sdk/middleware-signing": "3.127.0",
|
|
34
|
+
"@aws-sdk/middleware-stack": "3.127.0",
|
|
35
|
+
"@aws-sdk/middleware-user-agent": "3.127.0",
|
|
36
|
+
"@aws-sdk/node-config-provider": "3.127.0",
|
|
37
|
+
"@aws-sdk/node-http-handler": "3.127.0",
|
|
38
|
+
"@aws-sdk/protocol-http": "3.127.0",
|
|
39
|
+
"@aws-sdk/smithy-client": "3.127.0",
|
|
40
|
+
"@aws-sdk/types": "3.127.0",
|
|
41
|
+
"@aws-sdk/url-parser": "3.127.0",
|
|
42
42
|
"@aws-sdk/util-base64-browser": "3.109.0",
|
|
43
43
|
"@aws-sdk/util-base64-node": "3.55.0",
|
|
44
44
|
"@aws-sdk/util-body-length-browser": "3.55.0",
|
|
45
45
|
"@aws-sdk/util-body-length-node": "3.55.0",
|
|
46
|
-
"@aws-sdk/util-defaults-mode-browser": "3.
|
|
47
|
-
"@aws-sdk/util-defaults-mode-node": "3.
|
|
48
|
-
"@aws-sdk/util-user-agent-browser": "3.
|
|
49
|
-
"@aws-sdk/util-user-agent-node": "3.
|
|
46
|
+
"@aws-sdk/util-defaults-mode-browser": "3.127.0",
|
|
47
|
+
"@aws-sdk/util-defaults-mode-node": "3.127.0",
|
|
48
|
+
"@aws-sdk/util-user-agent-browser": "3.127.0",
|
|
49
|
+
"@aws-sdk/util-user-agent-node": "3.127.0",
|
|
50
50
|
"@aws-sdk/util-utf8-browser": "3.109.0",
|
|
51
51
|
"@aws-sdk/util-utf8-node": "3.109.0",
|
|
52
52
|
"tslib": "^2.3.1"
|