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