@aws-sdk/client-rds-data 3.1056.0 → 3.1058.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/README.md +1 -15
- package/dist-cjs/schemas/schemas_0.js +37 -18
- package/dist-es/schemas/schemas_0.js +37 -18
- package/dist-types/RDSData.d.ts +1 -15
- package/dist-types/RDSDataClient.d.ts +1 -15
- package/dist-types/commands/BatchExecuteStatementCommand.d.ts +5 -32
- package/dist-types/commands/BeginTransactionCommand.d.ts +4 -26
- package/dist-types/commands/CommitTransactionCommand.d.ts +3 -16
- package/dist-types/commands/ExecuteSqlCommand.d.ts +2 -8
- package/dist-types/commands/ExecuteStatementCommand.d.ts +9 -40
- package/dist-types/commands/RollbackTransactionCommand.d.ts +2 -14
- package/dist-types/index.d.ts +1 -15
- package/dist-types/models/errors.d.ts +4 -29
- package/dist-types/models/models_0.d.ts +49 -188
- package/dist-types/ts3.4/models/models_0.d.ts +10 -10
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -6,21 +6,7 @@
|
|
|
6
6
|
|
|
7
7
|
AWS SDK for JavaScript RDSData Client for Node.js, Browser and React Native.
|
|
8
8
|
|
|
9
|
-
<fullname>RDS Data API</fullname>
|
|
10
|
-
<p>Amazon RDS provides an HTTP endpoint to run SQL statements on an Amazon Aurora DB cluster. To run these
|
|
11
|
-
statements, you use the RDS Data API (Data API).</p>
|
|
12
|
-
<p>Data API is available with the following types of Aurora databases:</p>
|
|
13
|
-
<ul>
|
|
14
|
-
<li>
|
|
15
|
-
<p>Aurora PostgreSQL - Serverless v2, provisioned, and Serverless v1</p>
|
|
16
|
-
</li>
|
|
17
|
-
<li>
|
|
18
|
-
<p>Aurora MySQL - Serverless v2, provisioned, and Serverless v1</p>
|
|
19
|
-
</li>
|
|
20
|
-
</ul>
|
|
21
|
-
<p>For more information about the Data API, see
|
|
22
|
-
<a href="https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/data-api.html">Using RDS Data API</a>
|
|
23
|
-
in the <i>Amazon Aurora User Guide</i>.</p>
|
|
9
|
+
<fullname>RDS Data API</fullname> <p>Amazon RDS provides an HTTP endpoint to run SQL statements on an Amazon Aurora DB cluster. To run these statements, you use the RDS Data API (Data API).</p> <p>Data API is available with the following types of Aurora databases:</p> <ul> <li> <p>Aurora PostgreSQL - Serverless v2, provisioned, and Serverless v1</p> </li> <li> <p>Aurora MySQL - Serverless v2, provisioned, and Serverless v1</p> </li> </ul> <p>For more information about the Data API, see <a href="https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/data-api.html">Using RDS Data API</a> in the <i>Amazon Aurora User Guide</i>.</p>
|
|
24
10
|
|
|
25
11
|
## Installing
|
|
26
12
|
|
|
@@ -5,6 +5,7 @@ const _ADE = "AccessDeniedException";
|
|
|
5
5
|
const _AOA = "ArrayOfArray";
|
|
6
6
|
const _AV = "ArrayValue";
|
|
7
7
|
const _AVL = "ArrayValueList";
|
|
8
|
+
const _BA = "BooleanArray";
|
|
8
9
|
const _BES = "BatchExecuteStatement";
|
|
9
10
|
const _BESR = "BatchExecuteStatementRequest";
|
|
10
11
|
const _BESRa = "BatchExecuteStatementResponse";
|
|
@@ -16,6 +17,7 @@ const _CM = "ColumnMetadata";
|
|
|
16
17
|
const _CT = "CommitTransaction";
|
|
17
18
|
const _CTR = "CommitTransactionRequest";
|
|
18
19
|
const _CTRo = "CommitTransactionResponse";
|
|
20
|
+
const _DA = "DoubleArray";
|
|
19
21
|
const _DEE = "DatabaseErrorException";
|
|
20
22
|
const _DNFE = "DatabaseNotFoundException";
|
|
21
23
|
const _DRE = "DatabaseResumingException";
|
|
@@ -33,6 +35,7 @@ const _HENEE = "HttpEndpointNotEnabledException";
|
|
|
33
35
|
const _IRSE = "InvalidResourceStateException";
|
|
34
36
|
const _ISE = "InvalidSecretException";
|
|
35
37
|
const _ISEE = "InternalServerErrorException";
|
|
38
|
+
const _LA = "LongArray";
|
|
36
39
|
const _M = "Metadata";
|
|
37
40
|
const _NFE = "NotFoundException";
|
|
38
41
|
const _R = "Record";
|
|
@@ -44,6 +47,7 @@ const _RTR = "RollbackTransactionRequest";
|
|
|
44
47
|
const _RTRo = "RollbackTransactionResponse";
|
|
45
48
|
const _Re = "Records";
|
|
46
49
|
const _Ro = "Row";
|
|
50
|
+
const _SA = "StringArray";
|
|
47
51
|
const _SEE = "SecretsErrorException";
|
|
48
52
|
const _SP = "SqlParameter";
|
|
49
53
|
const _SPL = "SqlParametersList";
|
|
@@ -120,6 +124,7 @@ const _sVtr = "structValue";
|
|
|
120
124
|
const _sc = "schema";
|
|
121
125
|
const _sca = "scale";
|
|
122
126
|
const _se = "server";
|
|
127
|
+
const _sp = "sparse";
|
|
123
128
|
const _sq = "sql";
|
|
124
129
|
const _t = "type";
|
|
125
130
|
const _tH = "typeHint";
|
|
@@ -247,12 +252,12 @@ exports.errorTypeRegistries = [
|
|
|
247
252
|
exports.BatchExecuteStatementRequest$ = [3, n0, _BESR,
|
|
248
253
|
0,
|
|
249
254
|
[_rA, _sA, _sq, _d, _sc, _pS, _tI],
|
|
250
|
-
[0, 0, 0, 0, 0, () => SqlParameterSets, 0], 3
|
|
255
|
+
[0, 0, 0, 0, 0, [() => SqlParameterSets, 0], 0], 3
|
|
251
256
|
];
|
|
252
257
|
exports.BatchExecuteStatementResponse$ = [3, n0, _BESRa,
|
|
253
258
|
0,
|
|
254
259
|
[_uR],
|
|
255
|
-
[() => UpdateResults]
|
|
260
|
+
[[() => UpdateResults, 0]]
|
|
256
261
|
];
|
|
257
262
|
exports.BeginTransactionRequest$ = [3, n0, _BTR,
|
|
258
263
|
0,
|
|
@@ -292,12 +297,12 @@ exports.ExecuteSqlResponse$ = [3, n0, _ESRx,
|
|
|
292
297
|
exports.ExecuteStatementRequest$ = [3, n0, _ESRxe,
|
|
293
298
|
0,
|
|
294
299
|
[_rA, _sA, _sq, _d, _sc, _pa, _tI, _iRM, _cAT, _rSO, _fRA],
|
|
295
|
-
[0, 0, 0, 0, 0, () => SqlParametersList, 0, 2, 2, () => exports.ResultSetOptions$, 0], 3
|
|
300
|
+
[0, 0, 0, 0, 0, [() => SqlParametersList, 0], 0, 2, 2, () => exports.ResultSetOptions$, 0], 3
|
|
296
301
|
];
|
|
297
302
|
exports.ExecuteStatementResponse$ = [3, n0, _ESRxec,
|
|
298
303
|
0,
|
|
299
304
|
[_r, _cM, _nORU, _gF, _fR],
|
|
300
|
-
[() => SqlRecords, () => Metadata, 1, () => FieldList, 0]
|
|
305
|
+
[[() => SqlRecords, 0], () => Metadata, 1, [() => FieldList, 0], 0]
|
|
301
306
|
];
|
|
302
307
|
exports._Record$ = [3, n0, _R,
|
|
303
308
|
0,
|
|
@@ -332,7 +337,7 @@ exports.RollbackTransactionResponse$ = [3, n0, _RTRo,
|
|
|
332
337
|
exports.SqlParameter$ = [3, n0, _SP,
|
|
333
338
|
0,
|
|
334
339
|
[_n, _va, _tH],
|
|
335
|
-
[0, () => exports.Field$, 0]
|
|
340
|
+
[0, [() => exports.Field$, 0], 0]
|
|
336
341
|
];
|
|
337
342
|
exports.SqlStatementResult$ = [3, n0, _SSR,
|
|
338
343
|
0,
|
|
@@ -347,20 +352,28 @@ exports.StructValue$ = [3, n0, _SV,
|
|
|
347
352
|
exports.UpdateResult$ = [3, n0, _UR,
|
|
348
353
|
0,
|
|
349
354
|
[_gF],
|
|
350
|
-
[() => FieldList]
|
|
355
|
+
[[() => FieldList, 0]]
|
|
351
356
|
];
|
|
352
357
|
var ArrayOfArray = [1, n0, _AOA,
|
|
353
|
-
|
|
358
|
+
{ [_sp]: 1 }, [() => exports.ArrayValue$,
|
|
359
|
+
0]
|
|
354
360
|
];
|
|
355
361
|
var ArrayValueList = [1, n0, _AVL,
|
|
356
362
|
0, () => exports.Value$
|
|
357
363
|
];
|
|
358
|
-
var BooleanArray =
|
|
359
|
-
|
|
364
|
+
var BooleanArray = [1, n0, _BA,
|
|
365
|
+
{ [_sp]: 1 }, 2
|
|
366
|
+
];
|
|
367
|
+
var DoubleArray = [1, n0, _DA,
|
|
368
|
+
{ [_sp]: 1 }, 1
|
|
369
|
+
];
|
|
360
370
|
var FieldList = [1, n0, _FL,
|
|
361
|
-
0, () => exports.Field
|
|
371
|
+
0, [() => exports.Field$,
|
|
372
|
+
0]
|
|
373
|
+
];
|
|
374
|
+
var LongArray = [1, n0, _LA,
|
|
375
|
+
{ [_sp]: 1 }, 1
|
|
362
376
|
];
|
|
363
|
-
var LongArray = 64 | 1;
|
|
364
377
|
var Metadata = [1, n0, _M,
|
|
365
378
|
0, () => exports.ColumnMetadata$
|
|
366
379
|
];
|
|
@@ -371,30 +384,36 @@ var Row = [1, n0, _Ro,
|
|
|
371
384
|
0, () => exports.Value$
|
|
372
385
|
];
|
|
373
386
|
var SqlParameterSets = [1, n0, _SPS,
|
|
374
|
-
0, () => SqlParametersList
|
|
387
|
+
0, [() => SqlParametersList,
|
|
388
|
+
0]
|
|
375
389
|
];
|
|
376
390
|
var SqlParametersList = [1, n0, _SPL,
|
|
377
|
-
0, () => exports.SqlParameter
|
|
391
|
+
0, [() => exports.SqlParameter$,
|
|
392
|
+
0]
|
|
378
393
|
];
|
|
379
394
|
var SqlRecords = [1, n0, _SR,
|
|
380
|
-
0, () => FieldList
|
|
395
|
+
0, [() => FieldList,
|
|
396
|
+
0]
|
|
381
397
|
];
|
|
382
398
|
var SqlStatementResults = [1, n0, _SSRq,
|
|
383
399
|
0, () => exports.SqlStatementResult$
|
|
384
400
|
];
|
|
385
|
-
var StringArray =
|
|
401
|
+
var StringArray = [1, n0, _SA,
|
|
402
|
+
{ [_sp]: 1 }, 0
|
|
403
|
+
];
|
|
386
404
|
var UpdateResults = [1, n0, _URp,
|
|
387
|
-
0, () => exports.UpdateResult
|
|
405
|
+
0, [() => exports.UpdateResult$,
|
|
406
|
+
0]
|
|
388
407
|
];
|
|
389
408
|
exports.ArrayValue$ = [4, n0, _AV,
|
|
390
409
|
0,
|
|
391
410
|
[_bV, _lV, _dV, _sV, _aV],
|
|
392
|
-
[
|
|
411
|
+
[[() => BooleanArray, 0], [() => LongArray, 0], [() => DoubleArray, 0], [() => StringArray, 0], [() => ArrayOfArray, 0]]
|
|
393
412
|
];
|
|
394
413
|
exports.Field$ = [4, n0, _F,
|
|
395
414
|
0,
|
|
396
415
|
[_iN, _bVo, _lVo, _dVo, _sVt, _bVl, _aVr],
|
|
397
|
-
[2, 2, 1, 1, 0, 21, () => exports.ArrayValue
|
|
416
|
+
[2, 2, 1, 1, 0, 21, [() => exports.ArrayValue$, 0]]
|
|
398
417
|
];
|
|
399
418
|
exports.Value$ = [4, n0, _V,
|
|
400
419
|
0,
|
|
@@ -2,6 +2,7 @@ const _ADE = "AccessDeniedException";
|
|
|
2
2
|
const _AOA = "ArrayOfArray";
|
|
3
3
|
const _AV = "ArrayValue";
|
|
4
4
|
const _AVL = "ArrayValueList";
|
|
5
|
+
const _BA = "BooleanArray";
|
|
5
6
|
const _BES = "BatchExecuteStatement";
|
|
6
7
|
const _BESR = "BatchExecuteStatementRequest";
|
|
7
8
|
const _BESRa = "BatchExecuteStatementResponse";
|
|
@@ -13,6 +14,7 @@ const _CM = "ColumnMetadata";
|
|
|
13
14
|
const _CT = "CommitTransaction";
|
|
14
15
|
const _CTR = "CommitTransactionRequest";
|
|
15
16
|
const _CTRo = "CommitTransactionResponse";
|
|
17
|
+
const _DA = "DoubleArray";
|
|
16
18
|
const _DEE = "DatabaseErrorException";
|
|
17
19
|
const _DNFE = "DatabaseNotFoundException";
|
|
18
20
|
const _DRE = "DatabaseResumingException";
|
|
@@ -30,6 +32,7 @@ const _HENEE = "HttpEndpointNotEnabledException";
|
|
|
30
32
|
const _IRSE = "InvalidResourceStateException";
|
|
31
33
|
const _ISE = "InvalidSecretException";
|
|
32
34
|
const _ISEE = "InternalServerErrorException";
|
|
35
|
+
const _LA = "LongArray";
|
|
33
36
|
const _M = "Metadata";
|
|
34
37
|
const _NFE = "NotFoundException";
|
|
35
38
|
const _R = "Record";
|
|
@@ -41,6 +44,7 @@ const _RTR = "RollbackTransactionRequest";
|
|
|
41
44
|
const _RTRo = "RollbackTransactionResponse";
|
|
42
45
|
const _Re = "Records";
|
|
43
46
|
const _Ro = "Row";
|
|
47
|
+
const _SA = "StringArray";
|
|
44
48
|
const _SEE = "SecretsErrorException";
|
|
45
49
|
const _SP = "SqlParameter";
|
|
46
50
|
const _SPL = "SqlParametersList";
|
|
@@ -117,6 +121,7 @@ const _sVtr = "structValue";
|
|
|
117
121
|
const _sc = "schema";
|
|
118
122
|
const _sca = "scale";
|
|
119
123
|
const _se = "server";
|
|
124
|
+
const _sp = "sparse";
|
|
120
125
|
const _sq = "sql";
|
|
121
126
|
const _t = "type";
|
|
122
127
|
const _tH = "typeHint";
|
|
@@ -244,12 +249,12 @@ export const errorTypeRegistries = [
|
|
|
244
249
|
export var BatchExecuteStatementRequest$ = [3, n0, _BESR,
|
|
245
250
|
0,
|
|
246
251
|
[_rA, _sA, _sq, _d, _sc, _pS, _tI],
|
|
247
|
-
[0, 0, 0, 0, 0, () => SqlParameterSets, 0], 3
|
|
252
|
+
[0, 0, 0, 0, 0, [() => SqlParameterSets, 0], 0], 3
|
|
248
253
|
];
|
|
249
254
|
export var BatchExecuteStatementResponse$ = [3, n0, _BESRa,
|
|
250
255
|
0,
|
|
251
256
|
[_uR],
|
|
252
|
-
[() => UpdateResults]
|
|
257
|
+
[[() => UpdateResults, 0]]
|
|
253
258
|
];
|
|
254
259
|
export var BeginTransactionRequest$ = [3, n0, _BTR,
|
|
255
260
|
0,
|
|
@@ -289,12 +294,12 @@ export var ExecuteSqlResponse$ = [3, n0, _ESRx,
|
|
|
289
294
|
export var ExecuteStatementRequest$ = [3, n0, _ESRxe,
|
|
290
295
|
0,
|
|
291
296
|
[_rA, _sA, _sq, _d, _sc, _pa, _tI, _iRM, _cAT, _rSO, _fRA],
|
|
292
|
-
[0, 0, 0, 0, 0, () => SqlParametersList, 0, 2, 2, () => ResultSetOptions$, 0], 3
|
|
297
|
+
[0, 0, 0, 0, 0, [() => SqlParametersList, 0], 0, 2, 2, () => ResultSetOptions$, 0], 3
|
|
293
298
|
];
|
|
294
299
|
export var ExecuteStatementResponse$ = [3, n0, _ESRxec,
|
|
295
300
|
0,
|
|
296
301
|
[_r, _cM, _nORU, _gF, _fR],
|
|
297
|
-
[() => SqlRecords, () => Metadata, 1, () => FieldList, 0]
|
|
302
|
+
[[() => SqlRecords, 0], () => Metadata, 1, [() => FieldList, 0], 0]
|
|
298
303
|
];
|
|
299
304
|
export var _Record$ = [3, n0, _R,
|
|
300
305
|
0,
|
|
@@ -329,7 +334,7 @@ export var RollbackTransactionResponse$ = [3, n0, _RTRo,
|
|
|
329
334
|
export var SqlParameter$ = [3, n0, _SP,
|
|
330
335
|
0,
|
|
331
336
|
[_n, _va, _tH],
|
|
332
|
-
[0, () => Field$, 0]
|
|
337
|
+
[0, [() => Field$, 0], 0]
|
|
333
338
|
];
|
|
334
339
|
export var SqlStatementResult$ = [3, n0, _SSR,
|
|
335
340
|
0,
|
|
@@ -344,20 +349,28 @@ export var StructValue$ = [3, n0, _SV,
|
|
|
344
349
|
export var UpdateResult$ = [3, n0, _UR,
|
|
345
350
|
0,
|
|
346
351
|
[_gF],
|
|
347
|
-
[() => FieldList]
|
|
352
|
+
[[() => FieldList, 0]]
|
|
348
353
|
];
|
|
349
354
|
var ArrayOfArray = [1, n0, _AOA,
|
|
350
|
-
|
|
355
|
+
{ [_sp]: 1 }, [() => ArrayValue$,
|
|
356
|
+
0]
|
|
351
357
|
];
|
|
352
358
|
var ArrayValueList = [1, n0, _AVL,
|
|
353
359
|
0, () => Value$
|
|
354
360
|
];
|
|
355
|
-
var BooleanArray =
|
|
356
|
-
|
|
361
|
+
var BooleanArray = [1, n0, _BA,
|
|
362
|
+
{ [_sp]: 1 }, 2
|
|
363
|
+
];
|
|
364
|
+
var DoubleArray = [1, n0, _DA,
|
|
365
|
+
{ [_sp]: 1 }, 1
|
|
366
|
+
];
|
|
357
367
|
var FieldList = [1, n0, _FL,
|
|
358
|
-
0, () => Field
|
|
368
|
+
0, [() => Field$,
|
|
369
|
+
0]
|
|
370
|
+
];
|
|
371
|
+
var LongArray = [1, n0, _LA,
|
|
372
|
+
{ [_sp]: 1 }, 1
|
|
359
373
|
];
|
|
360
|
-
var LongArray = 64 | 1;
|
|
361
374
|
var Metadata = [1, n0, _M,
|
|
362
375
|
0, () => ColumnMetadata$
|
|
363
376
|
];
|
|
@@ -368,30 +381,36 @@ var Row = [1, n0, _Ro,
|
|
|
368
381
|
0, () => Value$
|
|
369
382
|
];
|
|
370
383
|
var SqlParameterSets = [1, n0, _SPS,
|
|
371
|
-
0, () => SqlParametersList
|
|
384
|
+
0, [() => SqlParametersList,
|
|
385
|
+
0]
|
|
372
386
|
];
|
|
373
387
|
var SqlParametersList = [1, n0, _SPL,
|
|
374
|
-
0, () => SqlParameter
|
|
388
|
+
0, [() => SqlParameter$,
|
|
389
|
+
0]
|
|
375
390
|
];
|
|
376
391
|
var SqlRecords = [1, n0, _SR,
|
|
377
|
-
0, () => FieldList
|
|
392
|
+
0, [() => FieldList,
|
|
393
|
+
0]
|
|
378
394
|
];
|
|
379
395
|
var SqlStatementResults = [1, n0, _SSRq,
|
|
380
396
|
0, () => SqlStatementResult$
|
|
381
397
|
];
|
|
382
|
-
var StringArray =
|
|
398
|
+
var StringArray = [1, n0, _SA,
|
|
399
|
+
{ [_sp]: 1 }, 0
|
|
400
|
+
];
|
|
383
401
|
var UpdateResults = [1, n0, _URp,
|
|
384
|
-
0, () => UpdateResult
|
|
402
|
+
0, [() => UpdateResult$,
|
|
403
|
+
0]
|
|
385
404
|
];
|
|
386
405
|
export var ArrayValue$ = [4, n0, _AV,
|
|
387
406
|
0,
|
|
388
407
|
[_bV, _lV, _dV, _sV, _aV],
|
|
389
|
-
[
|
|
408
|
+
[[() => BooleanArray, 0], [() => LongArray, 0], [() => DoubleArray, 0], [() => StringArray, 0], [() => ArrayOfArray, 0]]
|
|
390
409
|
];
|
|
391
410
|
export var Field$ = [4, n0, _F,
|
|
392
411
|
0,
|
|
393
412
|
[_iN, _bVo, _lVo, _dVo, _sVt, _bVl, _aVr],
|
|
394
|
-
[2, 2, 1, 1, 0, 21, () => ArrayValue
|
|
413
|
+
[2, 2, 1, 1, 0, 21, [() => ArrayValue$, 0]]
|
|
395
414
|
];
|
|
396
415
|
export var Value$ = [4, n0, _V,
|
|
397
416
|
0,
|
package/dist-types/RDSData.d.ts
CHANGED
|
@@ -45,21 +45,7 @@ export interface RDSData {
|
|
|
45
45
|
rollbackTransaction(args: RollbackTransactionCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: RollbackTransactionCommandOutput) => void): void;
|
|
46
46
|
}
|
|
47
47
|
/**
|
|
48
|
-
* <fullname>RDS Data API</fullname>
|
|
49
|
-
* <p>Amazon RDS provides an HTTP endpoint to run SQL statements on an Amazon Aurora DB cluster. To run these
|
|
50
|
-
* statements, you use the RDS Data API (Data API).</p>
|
|
51
|
-
* <p>Data API is available with the following types of Aurora databases:</p>
|
|
52
|
-
* <ul>
|
|
53
|
-
* <li>
|
|
54
|
-
* <p>Aurora PostgreSQL - Serverless v2, provisioned, and Serverless v1</p>
|
|
55
|
-
* </li>
|
|
56
|
-
* <li>
|
|
57
|
-
* <p>Aurora MySQL - Serverless v2, provisioned, and Serverless v1</p>
|
|
58
|
-
* </li>
|
|
59
|
-
* </ul>
|
|
60
|
-
* <p>For more information about the Data API, see
|
|
61
|
-
* <a href="https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/data-api.html">Using RDS Data API</a>
|
|
62
|
-
* in the <i>Amazon Aurora User Guide</i>.</p>
|
|
48
|
+
* <fullname>RDS Data API</fullname> <p>Amazon RDS provides an HTTP endpoint to run SQL statements on an Amazon Aurora DB cluster. To run these statements, you use the RDS Data API (Data API).</p> <p>Data API is available with the following types of Aurora databases:</p> <ul> <li> <p>Aurora PostgreSQL - Serverless v2, provisioned, and Serverless v1</p> </li> <li> <p>Aurora MySQL - Serverless v2, provisioned, and Serverless v1</p> </li> </ul> <p>For more information about the Data API, see <a href="https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/data-api.html">Using RDS Data API</a> in the <i>Amazon Aurora User Guide</i>.</p>
|
|
63
49
|
* @public
|
|
64
50
|
*/
|
|
65
51
|
export declare class RDSData extends RDSDataClient implements RDSData {
|
|
@@ -174,21 +174,7 @@ export type RDSDataClientResolvedConfigType = __SmithyResolvedConfiguration<__Ht
|
|
|
174
174
|
export interface RDSDataClientResolvedConfig extends RDSDataClientResolvedConfigType {
|
|
175
175
|
}
|
|
176
176
|
/**
|
|
177
|
-
* <fullname>RDS Data API</fullname>
|
|
178
|
-
* <p>Amazon RDS provides an HTTP endpoint to run SQL statements on an Amazon Aurora DB cluster. To run these
|
|
179
|
-
* statements, you use the RDS Data API (Data API).</p>
|
|
180
|
-
* <p>Data API is available with the following types of Aurora databases:</p>
|
|
181
|
-
* <ul>
|
|
182
|
-
* <li>
|
|
183
|
-
* <p>Aurora PostgreSQL - Serverless v2, provisioned, and Serverless v1</p>
|
|
184
|
-
* </li>
|
|
185
|
-
* <li>
|
|
186
|
-
* <p>Aurora MySQL - Serverless v2, provisioned, and Serverless v1</p>
|
|
187
|
-
* </li>
|
|
188
|
-
* </ul>
|
|
189
|
-
* <p>For more information about the Data API, see
|
|
190
|
-
* <a href="https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/data-api.html">Using RDS Data API</a>
|
|
191
|
-
* in the <i>Amazon Aurora User Guide</i>.</p>
|
|
177
|
+
* <fullname>RDS Data API</fullname> <p>Amazon RDS provides an HTTP endpoint to run SQL statements on an Amazon Aurora DB cluster. To run these statements, you use the RDS Data API (Data API).</p> <p>Data API is available with the following types of Aurora databases:</p> <ul> <li> <p>Aurora PostgreSQL - Serverless v2, provisioned, and Serverless v1</p> </li> <li> <p>Aurora MySQL - Serverless v2, provisioned, and Serverless v1</p> </li> </ul> <p>For more information about the Data API, see <a href="https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/data-api.html">Using RDS Data API</a> in the <i>Amazon Aurora User Guide</i>.</p>
|
|
192
178
|
* @public
|
|
193
179
|
*/
|
|
194
180
|
export declare class RDSDataClient extends __Client<__HttpHandlerOptions, ServiceInputTypes, ServiceOutputTypes, RDSDataClientResolvedConfig> {
|
|
@@ -29,20 +29,7 @@ declare const BatchExecuteStatementCommand_base: {
|
|
|
29
29
|
};
|
|
30
30
|
};
|
|
31
31
|
/**
|
|
32
|
-
* <p>Runs a batch SQL statement over an array of data.</p>
|
|
33
|
-
* <p>You can run bulk update and insert operations for multiple records using a DML
|
|
34
|
-
* statement with different parameter sets. Bulk operations can provide a significant
|
|
35
|
-
* performance improvement over individual insert and update operations.</p>
|
|
36
|
-
* <note>
|
|
37
|
-
* <p>If a call isn't part of a transaction because it doesn't include the <code>transactionID</code> parameter,
|
|
38
|
-
* changes that result from the call are committed automatically.</p>
|
|
39
|
-
* <p>There isn't a fixed upper limit on the number of parameter sets. However, the maximum size of the HTTP request
|
|
40
|
-
* submitted through the Data API is 4 MiB. If the request exceeds this limit, the Data API returns an error and doesn't
|
|
41
|
-
* process the request. This 4-MiB limit includes the size of the HTTP headers and the JSON notation in the request. Thus, the
|
|
42
|
-
* number of parameter sets that you can include depends on a combination of factors, such as the size of the SQL statement and
|
|
43
|
-
* the size of each parameter set.</p>
|
|
44
|
-
* <p>The response size limit is 1 MiB. If the call returns more than 1 MiB of response data, the call is terminated.</p>
|
|
45
|
-
* </note>
|
|
32
|
+
* <p>Runs a batch SQL statement over an array of data.</p> <p>You can run bulk update and insert operations for multiple records using a DML statement with different parameter sets. Bulk operations can provide a significant performance improvement over individual insert and update operations.</p> <note> <p>If a call isn't part of a transaction because it doesn't include the <code>transactionID</code> parameter, changes that result from the call are committed automatically.</p> <p>There isn't a fixed upper limit on the number of parameter sets. However, the maximum size of the HTTP request submitted through the Data API is 4 MiB. If the request exceeds this limit, the Data API returns an error and doesn't process the request. This 4-MiB limit includes the size of the HTTP headers and the JSON notation in the request. Thus, the number of parameter sets that you can include depends on a combination of factors, such as the size of the SQL statement and the size of each parameter set.</p> <p>The response size limit is 1 MiB. If the call returns more than 1 MiB of response data, the call is terminated.</p> </note>
|
|
46
33
|
* @example
|
|
47
34
|
* Use a bare-bones client and the command you need to make an API call.
|
|
48
35
|
* ```javascript
|
|
@@ -102,7 +89,7 @@ declare const BatchExecuteStatementCommand_base: {
|
|
|
102
89
|
* ],
|
|
103
90
|
* },
|
|
104
91
|
* },
|
|
105
|
-
* typeHint: "
|
|
92
|
+
* typeHint: "JSON" || "UUID" || "TIMESTAMP" || "DATE" || "TIME" || "DECIMAL",
|
|
106
93
|
* },
|
|
107
94
|
* ],
|
|
108
95
|
* ],
|
|
@@ -181,9 +168,7 @@ declare const BatchExecuteStatementCommand_base: {
|
|
|
181
168
|
* <p>The DB cluster doesn't have a DB instance.</p>
|
|
182
169
|
*
|
|
183
170
|
* @throws {@link DatabaseResumingException} (client fault)
|
|
184
|
-
* <p>A request was cancelled because the Aurora Serverless v2 DB instance was paused.
|
|
185
|
-
* The Data API request automatically resumes the DB instance. Wait a few seconds and
|
|
186
|
-
* try again.</p>
|
|
171
|
+
* <p>A request was cancelled because the Aurora Serverless v2 DB instance was paused. The Data API request automatically resumes the DB instance. Wait a few seconds and try again.</p>
|
|
187
172
|
*
|
|
188
173
|
* @throws {@link DatabaseUnavailableException} (server fault)
|
|
189
174
|
* <p>The writer instance in the DB cluster isn't available.</p>
|
|
@@ -204,22 +189,10 @@ declare const BatchExecuteStatementCommand_base: {
|
|
|
204
189
|
* <p>The Secrets Manager secret used with the request isn't valid.</p>
|
|
205
190
|
*
|
|
206
191
|
* @throws {@link SecretsErrorException} (client fault)
|
|
207
|
-
* <p>There was a problem with the Secrets Manager secret used with the request, caused by one of the following conditions:</p>
|
|
208
|
-
* <ul>
|
|
209
|
-
* <li>
|
|
210
|
-
* <p>RDS Data API timed out retrieving the secret.</p>
|
|
211
|
-
* </li>
|
|
212
|
-
* <li>
|
|
213
|
-
* <p>The secret provided wasn't found.</p>
|
|
214
|
-
* </li>
|
|
215
|
-
* <li>
|
|
216
|
-
* <p>The secret couldn't be decrypted.</p>
|
|
217
|
-
* </li>
|
|
218
|
-
* </ul>
|
|
192
|
+
* <p>There was a problem with the Secrets Manager secret used with the request, caused by one of the following conditions:</p> <ul> <li> <p>RDS Data API timed out retrieving the secret.</p> </li> <li> <p>The secret provided wasn't found.</p> </li> <li> <p>The secret couldn't be decrypted.</p> </li> </ul>
|
|
219
193
|
*
|
|
220
194
|
* @throws {@link ServiceUnavailableError} (server fault)
|
|
221
|
-
* <p>The service specified by the <code>resourceArn</code> parameter isn't
|
|
222
|
-
* available.</p>
|
|
195
|
+
* <p>The service specified by the <code>resourceArn</code> parameter isn't available.</p>
|
|
223
196
|
*
|
|
224
197
|
* @throws {@link StatementTimeoutException} (client fault)
|
|
225
198
|
* <p>The execution of the SQL statement timed out.</p>
|
|
@@ -29,15 +29,7 @@ declare const BeginTransactionCommand_base: {
|
|
|
29
29
|
};
|
|
30
30
|
};
|
|
31
31
|
/**
|
|
32
|
-
* <p>Starts a SQL transaction.</p>
|
|
33
|
-
* <note>
|
|
34
|
-
* <p>A transaction can run for a maximum of 24 hours. A transaction is terminated and rolled back automatically after 24
|
|
35
|
-
* hours.</p>
|
|
36
|
-
* <p>A transaction times out if no calls use its transaction ID in three minutes. If a transaction times out before it's
|
|
37
|
-
* committed, it's rolled back automatically.</p>
|
|
38
|
-
* <p>For Aurora MySQL, DDL statements inside a transaction cause an implicit commit. We recommend that you run each MySQL DDL statement in a separate
|
|
39
|
-
* <code>ExecuteStatement</code> call with <code>continueAfterTimeout</code> enabled.</p>
|
|
40
|
-
* </note>
|
|
32
|
+
* <p>Starts a SQL transaction.</p> <note> <p>A transaction can run for a maximum of 24 hours. A transaction is terminated and rolled back automatically after 24 hours.</p> <p>A transaction times out if no calls use its transaction ID in three minutes. If a transaction times out before it's committed, it's rolled back automatically.</p> <p>For Aurora MySQL, DDL statements inside a transaction cause an implicit commit. We recommend that you run each MySQL DDL statement in a separate <code>ExecuteStatement</code> call with <code>continueAfterTimeout</code> enabled.</p> </note>
|
|
41
33
|
* @example
|
|
42
34
|
* Use a bare-bones client and the command you need to make an API call.
|
|
43
35
|
* ```javascript
|
|
@@ -79,9 +71,7 @@ declare const BeginTransactionCommand_base: {
|
|
|
79
71
|
* <p>The DB cluster doesn't have a DB instance.</p>
|
|
80
72
|
*
|
|
81
73
|
* @throws {@link DatabaseResumingException} (client fault)
|
|
82
|
-
* <p>A request was cancelled because the Aurora Serverless v2 DB instance was paused.
|
|
83
|
-
* The Data API request automatically resumes the DB instance. Wait a few seconds and
|
|
84
|
-
* try again.</p>
|
|
74
|
+
* <p>A request was cancelled because the Aurora Serverless v2 DB instance was paused. The Data API request automatically resumes the DB instance. Wait a few seconds and try again.</p>
|
|
85
75
|
*
|
|
86
76
|
* @throws {@link DatabaseUnavailableException} (server fault)
|
|
87
77
|
* <p>The writer instance in the DB cluster isn't available.</p>
|
|
@@ -102,22 +92,10 @@ declare const BeginTransactionCommand_base: {
|
|
|
102
92
|
* <p>The Secrets Manager secret used with the request isn't valid.</p>
|
|
103
93
|
*
|
|
104
94
|
* @throws {@link SecretsErrorException} (client fault)
|
|
105
|
-
* <p>There was a problem with the Secrets Manager secret used with the request, caused by one of the following conditions:</p>
|
|
106
|
-
* <ul>
|
|
107
|
-
* <li>
|
|
108
|
-
* <p>RDS Data API timed out retrieving the secret.</p>
|
|
109
|
-
* </li>
|
|
110
|
-
* <li>
|
|
111
|
-
* <p>The secret provided wasn't found.</p>
|
|
112
|
-
* </li>
|
|
113
|
-
* <li>
|
|
114
|
-
* <p>The secret couldn't be decrypted.</p>
|
|
115
|
-
* </li>
|
|
116
|
-
* </ul>
|
|
95
|
+
* <p>There was a problem with the Secrets Manager secret used with the request, caused by one of the following conditions:</p> <ul> <li> <p>RDS Data API timed out retrieving the secret.</p> </li> <li> <p>The secret provided wasn't found.</p> </li> <li> <p>The secret couldn't be decrypted.</p> </li> </ul>
|
|
117
96
|
*
|
|
118
97
|
* @throws {@link ServiceUnavailableError} (server fault)
|
|
119
|
-
* <p>The service specified by the <code>resourceArn</code> parameter isn't
|
|
120
|
-
* available.</p>
|
|
98
|
+
* <p>The service specified by the <code>resourceArn</code> parameter isn't available.</p>
|
|
121
99
|
*
|
|
122
100
|
* @throws {@link StatementTimeoutException} (client fault)
|
|
123
101
|
* <p>The execution of the SQL statement timed out.</p>
|
|
@@ -29,8 +29,7 @@ declare const CommitTransactionCommand_base: {
|
|
|
29
29
|
};
|
|
30
30
|
};
|
|
31
31
|
/**
|
|
32
|
-
* <p>Ends a SQL transaction started with the <code>BeginTransaction</code> operation and
|
|
33
|
-
* commits the changes.</p>
|
|
32
|
+
* <p>Ends a SQL transaction started with the <code>BeginTransaction</code> operation and commits the changes.</p>
|
|
34
33
|
* @example
|
|
35
34
|
* Use a bare-bones client and the command you need to make an API call.
|
|
36
35
|
* ```javascript
|
|
@@ -92,22 +91,10 @@ declare const CommitTransactionCommand_base: {
|
|
|
92
91
|
* <p>The <code>resourceArn</code>, <code>secretArn</code>, or <code>transactionId</code> value can't be found.</p>
|
|
93
92
|
*
|
|
94
93
|
* @throws {@link SecretsErrorException} (client fault)
|
|
95
|
-
* <p>There was a problem with the Secrets Manager secret used with the request, caused by one of the following conditions:</p>
|
|
96
|
-
* <ul>
|
|
97
|
-
* <li>
|
|
98
|
-
* <p>RDS Data API timed out retrieving the secret.</p>
|
|
99
|
-
* </li>
|
|
100
|
-
* <li>
|
|
101
|
-
* <p>The secret provided wasn't found.</p>
|
|
102
|
-
* </li>
|
|
103
|
-
* <li>
|
|
104
|
-
* <p>The secret couldn't be decrypted.</p>
|
|
105
|
-
* </li>
|
|
106
|
-
* </ul>
|
|
94
|
+
* <p>There was a problem with the Secrets Manager secret used with the request, caused by one of the following conditions:</p> <ul> <li> <p>RDS Data API timed out retrieving the secret.</p> </li> <li> <p>The secret provided wasn't found.</p> </li> <li> <p>The secret couldn't be decrypted.</p> </li> </ul>
|
|
107
95
|
*
|
|
108
96
|
* @throws {@link ServiceUnavailableError} (server fault)
|
|
109
|
-
* <p>The service specified by the <code>resourceArn</code> parameter isn't
|
|
110
|
-
* available.</p>
|
|
97
|
+
* <p>The service specified by the <code>resourceArn</code> parameter isn't available.</p>
|
|
111
98
|
*
|
|
112
99
|
* @throws {@link StatementTimeoutException} (client fault)
|
|
113
100
|
* <p>The execution of the SQL statement timed out.</p>
|
|
@@ -29,12 +29,7 @@ declare const ExecuteSqlCommand_base: {
|
|
|
29
29
|
};
|
|
30
30
|
};
|
|
31
31
|
/**
|
|
32
|
-
* <p>Runs one or more SQL statements.</p>
|
|
33
|
-
* <note>
|
|
34
|
-
* <p>This operation isn't supported for Aurora Serverless v2 and provisioned DB clusters.
|
|
35
|
-
* For Aurora Serverless v1 DB clusters, the operation is deprecated.
|
|
36
|
-
* Use the <code>BatchExecuteStatement</code> or <code>ExecuteStatement</code> operation.</p>
|
|
37
|
-
* </note>
|
|
32
|
+
* <p>Runs one or more SQL statements.</p> <note> <p>This operation isn't supported for Aurora Serverless v2 and provisioned DB clusters. For Aurora Serverless v1 DB clusters, the operation is deprecated. Use the <code>BatchExecuteStatement</code> or <code>ExecuteStatement</code> operation.</p> </note>
|
|
38
33
|
*
|
|
39
34
|
* @deprecated (since 2019-03-21) The ExecuteSql API is deprecated, please use the ExecuteStatement API.
|
|
40
35
|
* @example
|
|
@@ -143,8 +138,7 @@ declare const ExecuteSqlCommand_base: {
|
|
|
143
138
|
* <p>An internal error occurred.</p>
|
|
144
139
|
*
|
|
145
140
|
* @throws {@link ServiceUnavailableError} (server fault)
|
|
146
|
-
* <p>The service specified by the <code>resourceArn</code> parameter isn't
|
|
147
|
-
* available.</p>
|
|
141
|
+
* <p>The service specified by the <code>resourceArn</code> parameter isn't available.</p>
|
|
148
142
|
*
|
|
149
143
|
* @throws {@link RDSDataServiceException}
|
|
150
144
|
* <p>Base exception class for all service exceptions from RDSData service.</p>
|