@aws-sdk/client-rds-data 3.186.0 → 3.190.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 +16 -0
- package/dist-es/RDSData.js +26 -33
- package/dist-es/RDSDataClient.js +22 -28
- package/dist-es/commands/BatchExecuteStatementCommand.js +21 -28
- package/dist-es/commands/BeginTransactionCommand.js +21 -28
- package/dist-es/commands/CommitTransactionCommand.js +21 -28
- package/dist-es/commands/ExecuteSqlCommand.js +21 -28
- package/dist-es/commands/ExecuteStatementCommand.js +21 -28
- package/dist-es/commands/RollbackTransactionCommand.js +21 -28
- package/dist-es/endpoints.js +8 -8
- package/dist-es/models/RDSDataServiceException.js +5 -10
- package/dist-es/models/models_0.js +164 -116
- package/dist-es/protocols/Aws_restJson1.js +666 -844
- package/dist-es/runtimeConfig.browser.js +26 -12
- package/dist-es/runtimeConfig.js +30 -12
- package/dist-es/runtimeConfig.native.js +8 -5
- package/dist-es/runtimeConfig.shared.js +8 -11
- package/dist-types/models/models_0.d.ts +3 -0
- package/package.json +33 -33
|
@@ -1,29 +1,28 @@
|
|
|
1
|
-
import { __assign, __extends } from "tslib";
|
|
2
1
|
import { RDSDataServiceException as __BaseException } from "./RDSDataServiceException";
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
2
|
+
export class AccessDeniedException extends __BaseException {
|
|
3
|
+
constructor(opts) {
|
|
4
|
+
super({
|
|
5
|
+
name: "AccessDeniedException",
|
|
6
|
+
$fault: "client",
|
|
7
|
+
...opts,
|
|
8
|
+
});
|
|
9
|
+
this.name = "AccessDeniedException";
|
|
10
|
+
this.$fault = "client";
|
|
11
|
+
Object.setPrototypeOf(this, AccessDeniedException.prototype);
|
|
11
12
|
}
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
13
|
+
}
|
|
14
|
+
export class BadRequestException extends __BaseException {
|
|
15
|
+
constructor(opts) {
|
|
16
|
+
super({
|
|
17
|
+
name: "BadRequestException",
|
|
18
|
+
$fault: "client",
|
|
19
|
+
...opts,
|
|
20
|
+
});
|
|
21
|
+
this.name = "BadRequestException";
|
|
22
|
+
this.$fault = "client";
|
|
23
|
+
Object.setPrototypeOf(this, BadRequestException.prototype);
|
|
23
24
|
}
|
|
24
|
-
|
|
25
|
-
}(__BaseException));
|
|
26
|
-
export { BadRequestException };
|
|
25
|
+
}
|
|
27
26
|
export var TypeHint;
|
|
28
27
|
(function (TypeHint) {
|
|
29
28
|
TypeHint["DATE"] = "DATE";
|
|
@@ -33,67 +32,67 @@ export var TypeHint;
|
|
|
33
32
|
TypeHint["TIMESTAMP"] = "TIMESTAMP";
|
|
34
33
|
TypeHint["UUID"] = "UUID";
|
|
35
34
|
})(TypeHint || (TypeHint = {}));
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
35
|
+
export class ForbiddenException extends __BaseException {
|
|
36
|
+
constructor(opts) {
|
|
37
|
+
super({
|
|
38
|
+
name: "ForbiddenException",
|
|
39
|
+
$fault: "client",
|
|
40
|
+
...opts,
|
|
41
|
+
});
|
|
42
|
+
this.name = "ForbiddenException";
|
|
43
|
+
this.$fault = "client";
|
|
44
|
+
Object.setPrototypeOf(this, ForbiddenException.prototype);
|
|
44
45
|
}
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
46
|
+
}
|
|
47
|
+
export class InternalServerErrorException extends __BaseException {
|
|
48
|
+
constructor(opts) {
|
|
49
|
+
super({
|
|
50
|
+
name: "InternalServerErrorException",
|
|
51
|
+
$fault: "server",
|
|
52
|
+
...opts,
|
|
53
|
+
});
|
|
54
|
+
this.name = "InternalServerErrorException";
|
|
55
|
+
this.$fault = "server";
|
|
56
|
+
Object.setPrototypeOf(this, InternalServerErrorException.prototype);
|
|
56
57
|
}
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
58
|
+
}
|
|
59
|
+
export class ServiceUnavailableError extends __BaseException {
|
|
60
|
+
constructor(opts) {
|
|
61
|
+
super({
|
|
62
|
+
name: "ServiceUnavailableError",
|
|
63
|
+
$fault: "server",
|
|
64
|
+
...opts,
|
|
65
|
+
});
|
|
66
|
+
this.name = "ServiceUnavailableError";
|
|
67
|
+
this.$fault = "server";
|
|
68
|
+
Object.setPrototypeOf(this, ServiceUnavailableError.prototype);
|
|
68
69
|
}
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
70
|
+
}
|
|
71
|
+
export class StatementTimeoutException extends __BaseException {
|
|
72
|
+
constructor(opts) {
|
|
73
|
+
super({
|
|
74
|
+
name: "StatementTimeoutException",
|
|
75
|
+
$fault: "client",
|
|
76
|
+
...opts,
|
|
77
|
+
});
|
|
78
|
+
this.name = "StatementTimeoutException";
|
|
79
|
+
this.$fault = "client";
|
|
80
|
+
Object.setPrototypeOf(this, StatementTimeoutException.prototype);
|
|
81
|
+
this.dbConnectionId = opts.dbConnectionId;
|
|
81
82
|
}
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
83
|
+
}
|
|
84
|
+
export class NotFoundException extends __BaseException {
|
|
85
|
+
constructor(opts) {
|
|
86
|
+
super({
|
|
87
|
+
name: "NotFoundException",
|
|
88
|
+
$fault: "client",
|
|
89
|
+
...opts,
|
|
90
|
+
});
|
|
91
|
+
this.name = "NotFoundException";
|
|
92
|
+
this.$fault = "client";
|
|
93
|
+
Object.setPrototypeOf(this, NotFoundException.prototype);
|
|
93
94
|
}
|
|
94
|
-
|
|
95
|
-
}(__BaseException));
|
|
96
|
-
export { NotFoundException };
|
|
95
|
+
}
|
|
97
96
|
export var DecimalReturnType;
|
|
98
97
|
(function (DecimalReturnType) {
|
|
99
98
|
DecimalReturnType["DOUBLE_OR_LONG"] = "DOUBLE_OR_LONG";
|
|
@@ -111,7 +110,7 @@ export var LongReturnType;
|
|
|
111
110
|
})(LongReturnType || (LongReturnType = {}));
|
|
112
111
|
export var ArrayValue;
|
|
113
112
|
(function (ArrayValue) {
|
|
114
|
-
ArrayValue.visit =
|
|
113
|
+
ArrayValue.visit = (value, visitor) => {
|
|
115
114
|
if (value.booleanValues !== undefined)
|
|
116
115
|
return visitor.booleanValues(value.booleanValues);
|
|
117
116
|
if (value.longValues !== undefined)
|
|
@@ -127,7 +126,7 @@ export var ArrayValue;
|
|
|
127
126
|
})(ArrayValue || (ArrayValue = {}));
|
|
128
127
|
export var Field;
|
|
129
128
|
(function (Field) {
|
|
130
|
-
Field.visit =
|
|
129
|
+
Field.visit = (value, visitor) => {
|
|
131
130
|
if (value.isNull !== undefined)
|
|
132
131
|
return visitor.isNull(value.isNull);
|
|
133
132
|
if (value.booleanValue !== undefined)
|
|
@@ -147,7 +146,7 @@ export var Field;
|
|
|
147
146
|
})(Field || (Field = {}));
|
|
148
147
|
export var Value;
|
|
149
148
|
(function (Value) {
|
|
150
|
-
Value.visit =
|
|
149
|
+
Value.visit = (value, visitor) => {
|
|
151
150
|
if (value.isNull !== undefined)
|
|
152
151
|
return visitor.isNull(value.isNull);
|
|
153
152
|
if (value.bitValue !== undefined)
|
|
@@ -171,18 +170,37 @@ export var Value;
|
|
|
171
170
|
return visitor._(value.$unknown[0], value.$unknown[1]);
|
|
172
171
|
};
|
|
173
172
|
})(Value || (Value = {}));
|
|
174
|
-
export
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
export
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
export
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
export
|
|
184
|
-
|
|
185
|
-
|
|
173
|
+
export const BeginTransactionRequestFilterSensitiveLog = (obj) => ({
|
|
174
|
+
...obj,
|
|
175
|
+
});
|
|
176
|
+
export const BeginTransactionResponseFilterSensitiveLog = (obj) => ({
|
|
177
|
+
...obj,
|
|
178
|
+
});
|
|
179
|
+
export const ColumnMetadataFilterSensitiveLog = (obj) => ({
|
|
180
|
+
...obj,
|
|
181
|
+
});
|
|
182
|
+
export const CommitTransactionRequestFilterSensitiveLog = (obj) => ({
|
|
183
|
+
...obj,
|
|
184
|
+
});
|
|
185
|
+
export const CommitTransactionResponseFilterSensitiveLog = (obj) => ({
|
|
186
|
+
...obj,
|
|
187
|
+
});
|
|
188
|
+
export const ExecuteSqlRequestFilterSensitiveLog = (obj) => ({
|
|
189
|
+
...obj,
|
|
190
|
+
});
|
|
191
|
+
export const ResultSetMetadataFilterSensitiveLog = (obj) => ({
|
|
192
|
+
...obj,
|
|
193
|
+
});
|
|
194
|
+
export const ResultSetOptionsFilterSensitiveLog = (obj) => ({
|
|
195
|
+
...obj,
|
|
196
|
+
});
|
|
197
|
+
export const RollbackTransactionRequestFilterSensitiveLog = (obj) => ({
|
|
198
|
+
...obj,
|
|
199
|
+
});
|
|
200
|
+
export const RollbackTransactionResponseFilterSensitiveLog = (obj) => ({
|
|
201
|
+
...obj,
|
|
202
|
+
});
|
|
203
|
+
export const ArrayValueFilterSensitiveLog = (obj) => {
|
|
186
204
|
if (obj.booleanValues !== undefined)
|
|
187
205
|
return { booleanValues: obj.booleanValues };
|
|
188
206
|
if (obj.longValues !== undefined)
|
|
@@ -192,12 +210,11 @@ export var ArrayValueFilterSensitiveLog = function (obj) {
|
|
|
192
210
|
if (obj.stringValues !== undefined)
|
|
193
211
|
return { stringValues: obj.stringValues };
|
|
194
212
|
if (obj.arrayValues !== undefined)
|
|
195
|
-
return { arrayValues: obj.arrayValues.map(
|
|
213
|
+
return { arrayValues: obj.arrayValues.map((item) => ArrayValueFilterSensitiveLog(item)) };
|
|
196
214
|
if (obj.$unknown !== undefined)
|
|
197
|
-
return
|
|
215
|
+
return { [obj.$unknown[0]]: "UNKNOWN" };
|
|
198
216
|
};
|
|
199
|
-
export
|
|
200
|
-
var _a;
|
|
217
|
+
export const FieldFilterSensitiveLog = (obj) => {
|
|
201
218
|
if (obj.isNull !== undefined)
|
|
202
219
|
return { isNull: obj.isNull };
|
|
203
220
|
if (obj.booleanValue !== undefined)
|
|
@@ -213,12 +230,17 @@ export var FieldFilterSensitiveLog = function (obj) {
|
|
|
213
230
|
if (obj.arrayValue !== undefined)
|
|
214
231
|
return { arrayValue: ArrayValueFilterSensitiveLog(obj.arrayValue) };
|
|
215
232
|
if (obj.$unknown !== undefined)
|
|
216
|
-
return
|
|
233
|
+
return { [obj.$unknown[0]]: "UNKNOWN" };
|
|
217
234
|
};
|
|
218
|
-
export
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
235
|
+
export const SqlParameterFilterSensitiveLog = (obj) => ({
|
|
236
|
+
...obj,
|
|
237
|
+
...(obj.value && { value: FieldFilterSensitiveLog(obj.value) }),
|
|
238
|
+
});
|
|
239
|
+
export const UpdateResultFilterSensitiveLog = (obj) => ({
|
|
240
|
+
...obj,
|
|
241
|
+
...(obj.generatedFields && { generatedFields: obj.generatedFields.map((item) => FieldFilterSensitiveLog(item)) }),
|
|
242
|
+
});
|
|
243
|
+
export const ValueFilterSensitiveLog = (obj) => {
|
|
222
244
|
if (obj.isNull !== undefined)
|
|
223
245
|
return { isNull: obj.isNull };
|
|
224
246
|
if (obj.bitValue !== undefined)
|
|
@@ -236,20 +258,46 @@ export var ValueFilterSensitiveLog = function (obj) {
|
|
|
236
258
|
if (obj.blobValue !== undefined)
|
|
237
259
|
return { blobValue: obj.blobValue };
|
|
238
260
|
if (obj.arrayValues !== undefined)
|
|
239
|
-
return { arrayValues: obj.arrayValues.map(
|
|
261
|
+
return { arrayValues: obj.arrayValues.map((item) => ValueFilterSensitiveLog(item)) };
|
|
240
262
|
if (obj.structValue !== undefined)
|
|
241
263
|
return { structValue: StructValueFilterSensitiveLog(obj.structValue) };
|
|
242
264
|
if (obj.$unknown !== undefined)
|
|
243
|
-
return
|
|
265
|
+
return { [obj.$unknown[0]]: "UNKNOWN" };
|
|
244
266
|
};
|
|
245
|
-
export
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
export
|
|
254
|
-
|
|
255
|
-
|
|
267
|
+
export const ExecuteStatementRequestFilterSensitiveLog = (obj) => ({
|
|
268
|
+
...obj,
|
|
269
|
+
...(obj.parameters && { parameters: obj.parameters.map((item) => SqlParameterFilterSensitiveLog(item)) }),
|
|
270
|
+
});
|
|
271
|
+
export const StructValueFilterSensitiveLog = (obj) => ({
|
|
272
|
+
...obj,
|
|
273
|
+
...(obj.attributes && { attributes: obj.attributes.map((item) => ValueFilterSensitiveLog(item)) }),
|
|
274
|
+
});
|
|
275
|
+
export const BatchExecuteStatementRequestFilterSensitiveLog = (obj) => ({
|
|
276
|
+
...obj,
|
|
277
|
+
...(obj.parameterSets && {
|
|
278
|
+
parameterSets: obj.parameterSets.map((item) => item.map((item) => SqlParameterFilterSensitiveLog(item))),
|
|
279
|
+
}),
|
|
280
|
+
});
|
|
281
|
+
export const BatchExecuteStatementResponseFilterSensitiveLog = (obj) => ({
|
|
282
|
+
...obj,
|
|
283
|
+
...(obj.updateResults && { updateResults: obj.updateResults.map((item) => UpdateResultFilterSensitiveLog(item)) }),
|
|
284
|
+
});
|
|
285
|
+
export const _RecordFilterSensitiveLog = (obj) => ({
|
|
286
|
+
...obj,
|
|
287
|
+
...(obj.values && { values: obj.values.map((item) => ValueFilterSensitiveLog(item)) }),
|
|
288
|
+
});
|
|
289
|
+
export const ExecuteStatementResponseFilterSensitiveLog = (obj) => ({
|
|
290
|
+
...obj,
|
|
291
|
+
...(obj.records && { records: obj.records.map((item) => item.map((item) => FieldFilterSensitiveLog(item))) }),
|
|
292
|
+
...(obj.generatedFields && { generatedFields: obj.generatedFields.map((item) => FieldFilterSensitiveLog(item)) }),
|
|
293
|
+
});
|
|
294
|
+
export const ResultFrameFilterSensitiveLog = (obj) => ({
|
|
295
|
+
...obj,
|
|
296
|
+
...(obj.records && { records: obj.records.map((item) => _RecordFilterSensitiveLog(item)) }),
|
|
297
|
+
});
|
|
298
|
+
export const SqlStatementResultFilterSensitiveLog = (obj) => ({
|
|
299
|
+
...obj,
|
|
300
|
+
});
|
|
301
|
+
export const ExecuteSqlResponseFilterSensitiveLog = (obj) => ({
|
|
302
|
+
...obj,
|
|
303
|
+
});
|