@aws-sdk/client-rds-data 3.112.0 → 3.121.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 CHANGED
@@ -3,6 +3,33 @@
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.121.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.120.0...v3.121.0) (2022-06-30)
7
+
8
+
9
+ ### Features
10
+
11
+ * **clients:** fallback to status code for unmodeled errors ([#3752](https://github.com/aws/aws-sdk-js-v3/issues/3752)) ([49bcc4f](https://github.com/aws/aws-sdk-js-v3/commit/49bcc4f153e890e798a8e82fd5fc397b2dcc449f))
12
+
13
+
14
+
15
+
16
+
17
+ ## [3.118.1](https://github.com/aws/aws-sdk-js-v3/compare/v3.118.0...v3.118.1) (2022-06-27)
18
+
19
+ **Note:** Version bump only for package @aws-sdk/client-rds-data
20
+
21
+
22
+
23
+
24
+
25
+ # [3.118.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.117.0...v3.118.0) (2022-06-24)
26
+
27
+ **Note:** Version bump only for package @aws-sdk/client-rds-data
28
+
29
+
30
+
31
+
32
+
6
33
  # [3.112.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.111.0...v3.112.0) (2022-06-16)
7
34
 
8
35
  **Note:** Version bump only for package @aws-sdk/client-rds-data
@@ -191,8 +191,7 @@ const deserializeAws_restJson1BatchExecuteStatementCommandError = async (output,
191
191
  body: await parseBody(output.body, context),
192
192
  };
193
193
  let response;
194
- let errorCode = "UnknownError";
195
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
194
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
196
195
  switch (errorCode) {
197
196
  case "AccessDeniedException":
198
197
  case "com.amazonaws.rdsdata#AccessDeniedException":
@@ -214,10 +213,12 @@ const deserializeAws_restJson1BatchExecuteStatementCommandError = async (output,
214
213
  throw await deserializeAws_restJson1StatementTimeoutExceptionResponse(parsedOutput, context);
215
214
  default:
216
215
  const parsedBody = parsedOutput.body;
216
+ const $metadata = deserializeMetadata(output);
217
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
217
218
  response = new RDSDataServiceException_1.RDSDataServiceException({
218
- name: parsedBody.code || parsedBody.Code || errorCode,
219
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
219
220
  $fault: "client",
220
- $metadata: deserializeMetadata(output),
221
+ $metadata,
221
222
  });
222
223
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
223
224
  }
@@ -243,8 +244,7 @@ const deserializeAws_restJson1BeginTransactionCommandError = async (output, cont
243
244
  body: await parseBody(output.body, context),
244
245
  };
245
246
  let response;
246
- let errorCode = "UnknownError";
247
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
247
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
248
248
  switch (errorCode) {
249
249
  case "AccessDeniedException":
250
250
  case "com.amazonaws.rdsdata#AccessDeniedException":
@@ -266,10 +266,12 @@ const deserializeAws_restJson1BeginTransactionCommandError = async (output, cont
266
266
  throw await deserializeAws_restJson1StatementTimeoutExceptionResponse(parsedOutput, context);
267
267
  default:
268
268
  const parsedBody = parsedOutput.body;
269
+ const $metadata = deserializeMetadata(output);
270
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
269
271
  response = new RDSDataServiceException_1.RDSDataServiceException({
270
- name: parsedBody.code || parsedBody.Code || errorCode,
272
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
271
273
  $fault: "client",
272
- $metadata: deserializeMetadata(output),
274
+ $metadata,
273
275
  });
274
276
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
275
277
  }
@@ -295,8 +297,7 @@ const deserializeAws_restJson1CommitTransactionCommandError = async (output, con
295
297
  body: await parseBody(output.body, context),
296
298
  };
297
299
  let response;
298
- let errorCode = "UnknownError";
299
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
300
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
300
301
  switch (errorCode) {
301
302
  case "AccessDeniedException":
302
303
  case "com.amazonaws.rdsdata#AccessDeniedException":
@@ -321,10 +322,12 @@ const deserializeAws_restJson1CommitTransactionCommandError = async (output, con
321
322
  throw await deserializeAws_restJson1StatementTimeoutExceptionResponse(parsedOutput, context);
322
323
  default:
323
324
  const parsedBody = parsedOutput.body;
325
+ const $metadata = deserializeMetadata(output);
326
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
324
327
  response = new RDSDataServiceException_1.RDSDataServiceException({
325
- name: parsedBody.code || parsedBody.Code || errorCode,
328
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
326
329
  $fault: "client",
327
- $metadata: deserializeMetadata(output),
330
+ $metadata,
328
331
  });
329
332
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
330
333
  }
@@ -350,8 +353,7 @@ const deserializeAws_restJson1ExecuteSqlCommandError = async (output, context) =
350
353
  body: await parseBody(output.body, context),
351
354
  };
352
355
  let response;
353
- let errorCode = "UnknownError";
354
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
356
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
355
357
  switch (errorCode) {
356
358
  case "AccessDeniedException":
357
359
  case "com.amazonaws.rdsdata#AccessDeniedException":
@@ -370,10 +372,12 @@ const deserializeAws_restJson1ExecuteSqlCommandError = async (output, context) =
370
372
  throw await deserializeAws_restJson1ServiceUnavailableErrorResponse(parsedOutput, context);
371
373
  default:
372
374
  const parsedBody = parsedOutput.body;
375
+ const $metadata = deserializeMetadata(output);
376
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
373
377
  response = new RDSDataServiceException_1.RDSDataServiceException({
374
- name: parsedBody.code || parsedBody.Code || errorCode,
378
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
375
379
  $fault: "client",
376
- $metadata: deserializeMetadata(output),
380
+ $metadata,
377
381
  });
378
382
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
379
383
  }
@@ -415,8 +419,7 @@ const deserializeAws_restJson1ExecuteStatementCommandError = async (output, cont
415
419
  body: await parseBody(output.body, context),
416
420
  };
417
421
  let response;
418
- let errorCode = "UnknownError";
419
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
422
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
420
423
  switch (errorCode) {
421
424
  case "AccessDeniedException":
422
425
  case "com.amazonaws.rdsdata#AccessDeniedException":
@@ -438,10 +441,12 @@ const deserializeAws_restJson1ExecuteStatementCommandError = async (output, cont
438
441
  throw await deserializeAws_restJson1StatementTimeoutExceptionResponse(parsedOutput, context);
439
442
  default:
440
443
  const parsedBody = parsedOutput.body;
444
+ const $metadata = deserializeMetadata(output);
445
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
441
446
  response = new RDSDataServiceException_1.RDSDataServiceException({
442
- name: parsedBody.code || parsedBody.Code || errorCode,
447
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
443
448
  $fault: "client",
444
- $metadata: deserializeMetadata(output),
449
+ $metadata,
445
450
  });
446
451
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
447
452
  }
@@ -467,8 +472,7 @@ const deserializeAws_restJson1RollbackTransactionCommandError = async (output, c
467
472
  body: await parseBody(output.body, context),
468
473
  };
469
474
  let response;
470
- let errorCode = "UnknownError";
471
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
475
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
472
476
  switch (errorCode) {
473
477
  case "AccessDeniedException":
474
478
  case "com.amazonaws.rdsdata#AccessDeniedException":
@@ -493,10 +497,12 @@ const deserializeAws_restJson1RollbackTransactionCommandError = async (output, c
493
497
  throw await deserializeAws_restJson1StatementTimeoutExceptionResponse(parsedOutput, context);
494
498
  default:
495
499
  const parsedBody = parsedOutput.body;
500
+ const $metadata = deserializeMetadata(output);
501
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
496
502
  response = new RDSDataServiceException_1.RDSDataServiceException({
497
- name: parsedBody.code || parsedBody.Code || errorCode,
503
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
498
504
  $fault: "client",
499
- $metadata: deserializeMetadata(output),
505
+ $metadata,
500
506
  });
501
507
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
502
508
  }
@@ -1042,5 +1048,4 @@ const loadRestJsonErrorCode = (output, data) => {
1042
1048
  if (data["__type"] !== undefined) {
1043
1049
  return sanitizeErrorCode(data["__type"]);
1044
1050
  }
1045
- return "";
1046
1051
  };
@@ -184,7 +184,7 @@ export var deserializeAws_restJson1BatchExecuteStatementCommand = function (outp
184
184
  });
185
185
  }); };
186
186
  var deserializeAws_restJson1BatchExecuteStatementCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
187
- var parsedOutput, _a, response, errorCode, _b, parsedBody;
187
+ var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
188
188
  var _c;
189
189
  return __generator(this, function (_d) {
190
190
  switch (_d.label) {
@@ -194,7 +194,6 @@ var deserializeAws_restJson1BatchExecuteStatementCommandError = function (output
194
194
  return [4, parseBody(output.body, context)];
195
195
  case 1:
196
196
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
197
- errorCode = "UnknownError";
198
197
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
199
198
  _b = errorCode;
200
199
  switch (_b) {
@@ -226,10 +225,12 @@ var deserializeAws_restJson1BatchExecuteStatementCommandError = function (output
226
225
  case 13: throw _d.sent();
227
226
  case 14:
228
227
  parsedBody = parsedOutput.body;
228
+ $metadata = deserializeMetadata(output);
229
+ statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
229
230
  response = new __BaseException({
230
- name: parsedBody.code || parsedBody.Code || errorCode,
231
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
231
232
  $fault: "client",
232
- $metadata: deserializeMetadata(output),
233
+ $metadata: $metadata,
233
234
  });
234
235
  throw __decorateServiceException(response, parsedBody);
235
236
  }
@@ -260,7 +261,7 @@ export var deserializeAws_restJson1BeginTransactionCommand = function (output, c
260
261
  });
261
262
  }); };
262
263
  var deserializeAws_restJson1BeginTransactionCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
263
- var parsedOutput, _a, response, errorCode, _b, parsedBody;
264
+ var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
264
265
  var _c;
265
266
  return __generator(this, function (_d) {
266
267
  switch (_d.label) {
@@ -270,7 +271,6 @@ var deserializeAws_restJson1BeginTransactionCommandError = function (output, con
270
271
  return [4, parseBody(output.body, context)];
271
272
  case 1:
272
273
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
273
- errorCode = "UnknownError";
274
274
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
275
275
  _b = errorCode;
276
276
  switch (_b) {
@@ -302,10 +302,12 @@ var deserializeAws_restJson1BeginTransactionCommandError = function (output, con
302
302
  case 13: throw _d.sent();
303
303
  case 14:
304
304
  parsedBody = parsedOutput.body;
305
+ $metadata = deserializeMetadata(output);
306
+ statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
305
307
  response = new __BaseException({
306
- name: parsedBody.code || parsedBody.Code || errorCode,
308
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
307
309
  $fault: "client",
308
- $metadata: deserializeMetadata(output),
310
+ $metadata: $metadata,
309
311
  });
310
312
  throw __decorateServiceException(response, parsedBody);
311
313
  }
@@ -336,7 +338,7 @@ export var deserializeAws_restJson1CommitTransactionCommand = function (output,
336
338
  });
337
339
  }); };
338
340
  var deserializeAws_restJson1CommitTransactionCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
339
- var parsedOutput, _a, response, errorCode, _b, parsedBody;
341
+ var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
340
342
  var _c;
341
343
  return __generator(this, function (_d) {
342
344
  switch (_d.label) {
@@ -346,7 +348,6 @@ var deserializeAws_restJson1CommitTransactionCommandError = function (output, co
346
348
  return [4, parseBody(output.body, context)];
347
349
  case 1:
348
350
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
349
- errorCode = "UnknownError";
350
351
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
351
352
  _b = errorCode;
352
353
  switch (_b) {
@@ -382,10 +383,12 @@ var deserializeAws_restJson1CommitTransactionCommandError = function (output, co
382
383
  case 15: throw _d.sent();
383
384
  case 16:
384
385
  parsedBody = parsedOutput.body;
386
+ $metadata = deserializeMetadata(output);
387
+ statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
385
388
  response = new __BaseException({
386
- name: parsedBody.code || parsedBody.Code || errorCode,
389
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
387
390
  $fault: "client",
388
- $metadata: deserializeMetadata(output),
391
+ $metadata: $metadata,
389
392
  });
390
393
  throw __decorateServiceException(response, parsedBody);
391
394
  }
@@ -416,7 +419,7 @@ export var deserializeAws_restJson1ExecuteSqlCommand = function (output, context
416
419
  });
417
420
  }); };
418
421
  var deserializeAws_restJson1ExecuteSqlCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
419
- var parsedOutput, _a, response, errorCode, _b, parsedBody;
422
+ var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
420
423
  var _c;
421
424
  return __generator(this, function (_d) {
422
425
  switch (_d.label) {
@@ -426,7 +429,6 @@ var deserializeAws_restJson1ExecuteSqlCommandError = function (output, context)
426
429
  return [4, parseBody(output.body, context)];
427
430
  case 1:
428
431
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
429
- errorCode = "UnknownError";
430
432
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
431
433
  _b = errorCode;
432
434
  switch (_b) {
@@ -454,10 +456,12 @@ var deserializeAws_restJson1ExecuteSqlCommandError = function (output, context)
454
456
  case 11: throw _d.sent();
455
457
  case 12:
456
458
  parsedBody = parsedOutput.body;
459
+ $metadata = deserializeMetadata(output);
460
+ statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
457
461
  response = new __BaseException({
458
- name: parsedBody.code || parsedBody.Code || errorCode,
462
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
459
463
  $fault: "client",
460
- $metadata: deserializeMetadata(output),
464
+ $metadata: $metadata,
461
465
  });
462
466
  throw __decorateServiceException(response, parsedBody);
463
467
  }
@@ -504,7 +508,7 @@ export var deserializeAws_restJson1ExecuteStatementCommand = function (output, c
504
508
  });
505
509
  }); };
506
510
  var deserializeAws_restJson1ExecuteStatementCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
507
- var parsedOutput, _a, response, errorCode, _b, parsedBody;
511
+ var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
508
512
  var _c;
509
513
  return __generator(this, function (_d) {
510
514
  switch (_d.label) {
@@ -514,7 +518,6 @@ var deserializeAws_restJson1ExecuteStatementCommandError = function (output, con
514
518
  return [4, parseBody(output.body, context)];
515
519
  case 1:
516
520
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
517
- errorCode = "UnknownError";
518
521
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
519
522
  _b = errorCode;
520
523
  switch (_b) {
@@ -546,10 +549,12 @@ var deserializeAws_restJson1ExecuteStatementCommandError = function (output, con
546
549
  case 13: throw _d.sent();
547
550
  case 14:
548
551
  parsedBody = parsedOutput.body;
552
+ $metadata = deserializeMetadata(output);
553
+ statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
549
554
  response = new __BaseException({
550
- name: parsedBody.code || parsedBody.Code || errorCode,
555
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
551
556
  $fault: "client",
552
- $metadata: deserializeMetadata(output),
557
+ $metadata: $metadata,
553
558
  });
554
559
  throw __decorateServiceException(response, parsedBody);
555
560
  }
@@ -580,7 +585,7 @@ export var deserializeAws_restJson1RollbackTransactionCommand = function (output
580
585
  });
581
586
  }); };
582
587
  var deserializeAws_restJson1RollbackTransactionCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
583
- var parsedOutput, _a, response, errorCode, _b, parsedBody;
588
+ var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
584
589
  var _c;
585
590
  return __generator(this, function (_d) {
586
591
  switch (_d.label) {
@@ -590,7 +595,6 @@ var deserializeAws_restJson1RollbackTransactionCommandError = function (output,
590
595
  return [4, parseBody(output.body, context)];
591
596
  case 1:
592
597
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
593
- errorCode = "UnknownError";
594
598
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
595
599
  _b = errorCode;
596
600
  switch (_b) {
@@ -626,10 +630,12 @@ var deserializeAws_restJson1RollbackTransactionCommandError = function (output,
626
630
  case 15: throw _d.sent();
627
631
  case 16:
628
632
  parsedBody = parsedOutput.body;
633
+ $metadata = deserializeMetadata(output);
634
+ statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
629
635
  response = new __BaseException({
630
- name: parsedBody.code || parsedBody.Code || errorCode,
636
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
631
637
  $fault: "client",
632
- $metadata: deserializeMetadata(output),
638
+ $metadata: $metadata,
633
639
  });
634
640
  throw __decorateServiceException(response, parsedBody);
635
641
  }
@@ -1176,5 +1182,4 @@ var loadRestJsonErrorCode = function (output, data) {
1176
1182
  if (data["__type"] !== undefined) {
1177
1183
  return sanitizeErrorCode(data["__type"]);
1178
1184
  }
1179
- return "";
1180
1185
  };
@@ -25,6 +25,12 @@ export declare class RDSData extends RDSDataClient {
25
25
  * <p>If a call isn't part of a transaction because it doesn't include the
26
26
  * <code>transactionID</code> parameter, changes that result from the call are
27
27
  * committed automatically.</p>
28
+ * <p>There isn't a fixed upper limit on the number of parameter sets. However, the maximum size of the HTTP request
29
+ * submitted through the Data API is 4 MiB. If the request exceeds this limit, the Data API returns an error and doesn't
30
+ * process the request. This 4-MiB limit includes the size of the HTTP headers and the JSON notation in the request. Thus, the
31
+ * number of parameter sets that you can include depends on a combination of factors, such as the size of the SQL statement and
32
+ * the size of each parameter set.</p>
33
+ * <p>The response size limit is 1 MiB. If the call returns more than 1 MiB of response data, the call is terminated.</p>
28
34
  * </important>
29
35
  */
30
36
  batchExecuteStatement(args: BatchExecuteStatementCommandInput, options?: __HttpHandlerOptions): Promise<BatchExecuteStatementCommandOutput>;
@@ -72,8 +78,8 @@ export declare class RDSData extends RDSDataClient {
72
78
  * <p>If a call isn't part of a transaction because it doesn't include the
73
79
  * <code>transactionID</code> parameter, changes that result from the call are
74
80
  * committed automatically.</p>
81
+ * <p>If the binary response data from the database is more than 1 MB, the call is terminated.</p>
75
82
  * </important>
76
- * <p>If the binary response data from the database is more than 1 MB, the call is terminated.</p>
77
83
  */
78
84
  executeStatement(args: ExecuteStatementCommandInput, options?: __HttpHandlerOptions): Promise<ExecuteStatementCommandOutput>;
79
85
  executeStatement(args: ExecuteStatementCommandInput, cb: (err: any, data?: ExecuteStatementCommandOutput) => void): void;
@@ -15,6 +15,12 @@ export interface BatchExecuteStatementCommandOutput extends BatchExecuteStatemen
15
15
  * <p>If a call isn't part of a transaction because it doesn't include the
16
16
  * <code>transactionID</code> parameter, changes that result from the call are
17
17
  * committed automatically.</p>
18
+ * <p>There isn't a fixed upper limit on the number of parameter sets. However, the maximum size of the HTTP request
19
+ * submitted through the Data API is 4 MiB. If the request exceeds this limit, the Data API returns an error and doesn't
20
+ * process the request. This 4-MiB limit includes the size of the HTTP headers and the JSON notation in the request. Thus, the
21
+ * number of parameter sets that you can include depends on a combination of factors, such as the size of the SQL statement and
22
+ * the size of each parameter set.</p>
23
+ * <p>The response size limit is 1 MiB. If the call returns more than 1 MiB of response data, the call is terminated.</p>
18
24
  * </important>
19
25
  * @example
20
26
  * Use a bare-bones client and the command you need to make an API call.
@@ -12,8 +12,8 @@ export interface ExecuteStatementCommandOutput extends ExecuteStatementResponse,
12
12
  * <p>If a call isn't part of a transaction because it doesn't include the
13
13
  * <code>transactionID</code> parameter, changes that result from the call are
14
14
  * committed automatically.</p>
15
+ * <p>If the binary response data from the database is more than 1 MB, the call is terminated.</p>
15
16
  * </important>
16
- * <p>If the binary response data from the database is more than 1 MB, the call is terminated.</p>
17
17
  * @example
18
18
  * Use a bare-bones client and the command you need to make an API call.
19
19
  * ```javascript
@@ -253,7 +253,9 @@ export interface ExecuteSqlRequest {
253
253
  */
254
254
  dbClusterOrInstanceArn: string | undefined;
255
255
  /**
256
- * <p>The Amazon Resource Name (ARN) of the secret that enables access to the DB cluster.</p>
256
+ * <p>The Amazon Resource Name (ARN) of the secret that enables access to the DB cluster. Enter the database user name and password
257
+ * for the credentials in the secret.</p>
258
+ * <p>For information about creating the secret, see <a href="https://docs.aws.amazon.com/secretsmanager/latest/userguide/create_database_secret.html">Create a database secret</a>.</p>
257
259
  */
258
260
  awsSecretStoreArn: string | undefined;
259
261
  /**
@@ -864,7 +866,9 @@ export interface ExecuteStatementRequest {
864
866
  */
865
867
  resourceArn: string | undefined;
866
868
  /**
867
- * <p>The name or ARN of the secret that enables access to the DB cluster.</p>
869
+ * <p>The ARN of the secret that enables access to the DB cluster. Enter the database user name and password for the credentials in
870
+ * the secret.</p>
871
+ * <p>For information about creating the secret, see <a href="https://docs.aws.amazon.com/secretsmanager/latest/userguide/create_database_secret.html">Create a database secret</a>.</p>
868
872
  */
869
873
  secretArn: string | undefined;
870
874
  /**
@@ -961,11 +965,13 @@ export interface BatchExecuteStatementRequest {
961
965
  */
962
966
  resourceArn: string | undefined;
963
967
  /**
964
- * <p>The name or ARN of the secret that enables access to the DB cluster.</p>
968
+ * <p>The ARN of the secret that enables access to the DB cluster. Enter the database user name and password for the credentials in
969
+ * the secret.</p>
970
+ * <p>For information about creating the secret, see <a href="https://docs.aws.amazon.com/secretsmanager/latest/userguide/create_database_secret.html">Create a database secret</a>.</p>
965
971
  */
966
972
  secretArn: string | undefined;
967
973
  /**
968
- * <p>The SQL statement to run.</p>
974
+ * <p>The SQL statement to run. Don't include a semicolon (;) at the end of the SQL statement.</p>
969
975
  */
970
976
  sql: string | undefined;
971
977
  /**
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.112.0",
4
+ "version": "3.121.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,9 +18,9 @@
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.112.0",
21
+ "@aws-sdk/client-sts": "3.121.0",
22
22
  "@aws-sdk/config-resolver": "3.110.0",
23
- "@aws-sdk/credential-provider-node": "3.112.0",
23
+ "@aws-sdk/credential-provider-node": "3.121.0",
24
24
  "@aws-sdk/fetch-http-handler": "3.110.0",
25
25
  "@aws-sdk/hash-node": "3.110.0",
26
26
  "@aws-sdk/invalid-dependency": "3.110.0",
@@ -28,13 +28,13 @@
28
28
  "@aws-sdk/middleware-host-header": "3.110.0",
29
29
  "@aws-sdk/middleware-logger": "3.110.0",
30
30
  "@aws-sdk/middleware-recursion-detection": "3.110.0",
31
- "@aws-sdk/middleware-retry": "3.110.0",
31
+ "@aws-sdk/middleware-retry": "3.118.1",
32
32
  "@aws-sdk/middleware-serde": "3.110.0",
33
33
  "@aws-sdk/middleware-signing": "3.110.0",
34
34
  "@aws-sdk/middleware-stack": "3.110.0",
35
35
  "@aws-sdk/middleware-user-agent": "3.110.0",
36
36
  "@aws-sdk/node-config-provider": "3.110.0",
37
- "@aws-sdk/node-http-handler": "3.110.0",
37
+ "@aws-sdk/node-http-handler": "3.118.1",
38
38
  "@aws-sdk/protocol-http": "3.110.0",
39
39
  "@aws-sdk/smithy-client": "3.110.0",
40
40
  "@aws-sdk/types": "3.110.0",
@@ -46,7 +46,7 @@
46
46
  "@aws-sdk/util-defaults-mode-browser": "3.110.0",
47
47
  "@aws-sdk/util-defaults-mode-node": "3.110.0",
48
48
  "@aws-sdk/util-user-agent-browser": "3.110.0",
49
- "@aws-sdk/util-user-agent-node": "3.110.0",
49
+ "@aws-sdk/util-user-agent-node": "3.118.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"