@aws-sdk/client-rds-data 3.131.0 → 3.142.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.
@@ -166,15 +166,14 @@ const deserializeAws_restJson1BatchExecuteStatementCommand = async (output, cont
166
166
  if (output.statusCode !== 200 && output.statusCode >= 300) {
167
167
  return deserializeAws_restJson1BatchExecuteStatementCommandError(output, context);
168
168
  }
169
- const contents = {
169
+ const contents = map({
170
170
  $metadata: deserializeMetadata(output),
171
- updateResults: undefined,
172
- };
171
+ });
173
172
  const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
174
- if (data.updateResults !== undefined && data.updateResults !== null) {
173
+ if (data.updateResults != null) {
175
174
  contents.updateResults = deserializeAws_restJson1UpdateResults(data.updateResults, context);
176
175
  }
177
- return Promise.resolve(contents);
176
+ return contents;
178
177
  };
179
178
  exports.deserializeAws_restJson1BatchExecuteStatementCommand = deserializeAws_restJson1BatchExecuteStatementCommand;
180
179
  const deserializeAws_restJson1BatchExecuteStatementCommandError = async (output, context) => {
@@ -182,7 +181,6 @@ const deserializeAws_restJson1BatchExecuteStatementCommandError = async (output,
182
181
  ...output,
183
182
  body: await parseBody(output.body, context),
184
183
  };
185
- let response;
186
184
  const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
187
185
  switch (errorCode) {
188
186
  case "AccessDeniedException":
@@ -205,29 +203,26 @@ const deserializeAws_restJson1BatchExecuteStatementCommandError = async (output,
205
203
  throw await deserializeAws_restJson1StatementTimeoutExceptionResponse(parsedOutput, context);
206
204
  default:
207
205
  const parsedBody = parsedOutput.body;
208
- const $metadata = deserializeMetadata(output);
209
- const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
210
- response = new RDSDataServiceException_1.RDSDataServiceException({
211
- name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
212
- $fault: "client",
213
- $metadata,
206
+ (0, smithy_client_1.throwDefaultError)({
207
+ output,
208
+ parsedBody,
209
+ exceptionCtor: RDSDataServiceException_1.RDSDataServiceException,
210
+ errorCode,
214
211
  });
215
- throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
216
212
  }
217
213
  };
218
214
  const deserializeAws_restJson1BeginTransactionCommand = async (output, context) => {
219
215
  if (output.statusCode !== 200 && output.statusCode >= 300) {
220
216
  return deserializeAws_restJson1BeginTransactionCommandError(output, context);
221
217
  }
222
- const contents = {
218
+ const contents = map({
223
219
  $metadata: deserializeMetadata(output),
224
- transactionId: undefined,
225
- };
220
+ });
226
221
  const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
227
- if (data.transactionId !== undefined && data.transactionId !== null) {
222
+ if (data.transactionId != null) {
228
223
  contents.transactionId = (0, smithy_client_1.expectString)(data.transactionId);
229
224
  }
230
- return Promise.resolve(contents);
225
+ return contents;
231
226
  };
232
227
  exports.deserializeAws_restJson1BeginTransactionCommand = deserializeAws_restJson1BeginTransactionCommand;
233
228
  const deserializeAws_restJson1BeginTransactionCommandError = async (output, context) => {
@@ -235,7 +230,6 @@ const deserializeAws_restJson1BeginTransactionCommandError = async (output, cont
235
230
  ...output,
236
231
  body: await parseBody(output.body, context),
237
232
  };
238
- let response;
239
233
  const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
240
234
  switch (errorCode) {
241
235
  case "AccessDeniedException":
@@ -258,29 +252,26 @@ const deserializeAws_restJson1BeginTransactionCommandError = async (output, cont
258
252
  throw await deserializeAws_restJson1StatementTimeoutExceptionResponse(parsedOutput, context);
259
253
  default:
260
254
  const parsedBody = parsedOutput.body;
261
- const $metadata = deserializeMetadata(output);
262
- const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
263
- response = new RDSDataServiceException_1.RDSDataServiceException({
264
- name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
265
- $fault: "client",
266
- $metadata,
255
+ (0, smithy_client_1.throwDefaultError)({
256
+ output,
257
+ parsedBody,
258
+ exceptionCtor: RDSDataServiceException_1.RDSDataServiceException,
259
+ errorCode,
267
260
  });
268
- throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
269
261
  }
270
262
  };
271
263
  const deserializeAws_restJson1CommitTransactionCommand = async (output, context) => {
272
264
  if (output.statusCode !== 200 && output.statusCode >= 300) {
273
265
  return deserializeAws_restJson1CommitTransactionCommandError(output, context);
274
266
  }
275
- const contents = {
267
+ const contents = map({
276
268
  $metadata: deserializeMetadata(output),
277
- transactionStatus: undefined,
278
- };
269
+ });
279
270
  const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
280
- if (data.transactionStatus !== undefined && data.transactionStatus !== null) {
271
+ if (data.transactionStatus != null) {
281
272
  contents.transactionStatus = (0, smithy_client_1.expectString)(data.transactionStatus);
282
273
  }
283
- return Promise.resolve(contents);
274
+ return contents;
284
275
  };
285
276
  exports.deserializeAws_restJson1CommitTransactionCommand = deserializeAws_restJson1CommitTransactionCommand;
286
277
  const deserializeAws_restJson1CommitTransactionCommandError = async (output, context) => {
@@ -288,7 +279,6 @@ const deserializeAws_restJson1CommitTransactionCommandError = async (output, con
288
279
  ...output,
289
280
  body: await parseBody(output.body, context),
290
281
  };
291
- let response;
292
282
  const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
293
283
  switch (errorCode) {
294
284
  case "AccessDeniedException":
@@ -314,29 +304,26 @@ const deserializeAws_restJson1CommitTransactionCommandError = async (output, con
314
304
  throw await deserializeAws_restJson1StatementTimeoutExceptionResponse(parsedOutput, context);
315
305
  default:
316
306
  const parsedBody = parsedOutput.body;
317
- const $metadata = deserializeMetadata(output);
318
- const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
319
- response = new RDSDataServiceException_1.RDSDataServiceException({
320
- name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
321
- $fault: "client",
322
- $metadata,
307
+ (0, smithy_client_1.throwDefaultError)({
308
+ output,
309
+ parsedBody,
310
+ exceptionCtor: RDSDataServiceException_1.RDSDataServiceException,
311
+ errorCode,
323
312
  });
324
- throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
325
313
  }
326
314
  };
327
315
  const deserializeAws_restJson1ExecuteSqlCommand = async (output, context) => {
328
316
  if (output.statusCode !== 200 && output.statusCode >= 300) {
329
317
  return deserializeAws_restJson1ExecuteSqlCommandError(output, context);
330
318
  }
331
- const contents = {
319
+ const contents = map({
332
320
  $metadata: deserializeMetadata(output),
333
- sqlStatementResults: undefined,
334
- };
321
+ });
335
322
  const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
336
- if (data.sqlStatementResults !== undefined && data.sqlStatementResults !== null) {
323
+ if (data.sqlStatementResults != null) {
337
324
  contents.sqlStatementResults = deserializeAws_restJson1SqlStatementResults(data.sqlStatementResults, context);
338
325
  }
339
- return Promise.resolve(contents);
326
+ return contents;
340
327
  };
341
328
  exports.deserializeAws_restJson1ExecuteSqlCommand = deserializeAws_restJson1ExecuteSqlCommand;
342
329
  const deserializeAws_restJson1ExecuteSqlCommandError = async (output, context) => {
@@ -344,7 +331,6 @@ const deserializeAws_restJson1ExecuteSqlCommandError = async (output, context) =
344
331
  ...output,
345
332
  body: await parseBody(output.body, context),
346
333
  };
347
- let response;
348
334
  const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
349
335
  switch (errorCode) {
350
336
  case "AccessDeniedException":
@@ -364,45 +350,38 @@ const deserializeAws_restJson1ExecuteSqlCommandError = async (output, context) =
364
350
  throw await deserializeAws_restJson1ServiceUnavailableErrorResponse(parsedOutput, context);
365
351
  default:
366
352
  const parsedBody = parsedOutput.body;
367
- const $metadata = deserializeMetadata(output);
368
- const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
369
- response = new RDSDataServiceException_1.RDSDataServiceException({
370
- name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
371
- $fault: "client",
372
- $metadata,
353
+ (0, smithy_client_1.throwDefaultError)({
354
+ output,
355
+ parsedBody,
356
+ exceptionCtor: RDSDataServiceException_1.RDSDataServiceException,
357
+ errorCode,
373
358
  });
374
- throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
375
359
  }
376
360
  };
377
361
  const deserializeAws_restJson1ExecuteStatementCommand = async (output, context) => {
378
362
  if (output.statusCode !== 200 && output.statusCode >= 300) {
379
363
  return deserializeAws_restJson1ExecuteStatementCommandError(output, context);
380
364
  }
381
- const contents = {
365
+ const contents = map({
382
366
  $metadata: deserializeMetadata(output),
383
- columnMetadata: undefined,
384
- formattedRecords: undefined,
385
- generatedFields: undefined,
386
- numberOfRecordsUpdated: undefined,
387
- records: undefined,
388
- };
367
+ });
389
368
  const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
390
- if (data.columnMetadata !== undefined && data.columnMetadata !== null) {
369
+ if (data.columnMetadata != null) {
391
370
  contents.columnMetadata = deserializeAws_restJson1Metadata(data.columnMetadata, context);
392
371
  }
393
- if (data.formattedRecords !== undefined && data.formattedRecords !== null) {
372
+ if (data.formattedRecords != null) {
394
373
  contents.formattedRecords = (0, smithy_client_1.expectString)(data.formattedRecords);
395
374
  }
396
- if (data.generatedFields !== undefined && data.generatedFields !== null) {
375
+ if (data.generatedFields != null) {
397
376
  contents.generatedFields = deserializeAws_restJson1FieldList(data.generatedFields, context);
398
377
  }
399
- if (data.numberOfRecordsUpdated !== undefined && data.numberOfRecordsUpdated !== null) {
378
+ if (data.numberOfRecordsUpdated != null) {
400
379
  contents.numberOfRecordsUpdated = (0, smithy_client_1.expectLong)(data.numberOfRecordsUpdated);
401
380
  }
402
- if (data.records !== undefined && data.records !== null) {
381
+ if (data.records != null) {
403
382
  contents.records = deserializeAws_restJson1SqlRecords(data.records, context);
404
383
  }
405
- return Promise.resolve(contents);
384
+ return contents;
406
385
  };
407
386
  exports.deserializeAws_restJson1ExecuteStatementCommand = deserializeAws_restJson1ExecuteStatementCommand;
408
387
  const deserializeAws_restJson1ExecuteStatementCommandError = async (output, context) => {
@@ -410,7 +389,6 @@ const deserializeAws_restJson1ExecuteStatementCommandError = async (output, cont
410
389
  ...output,
411
390
  body: await parseBody(output.body, context),
412
391
  };
413
- let response;
414
392
  const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
415
393
  switch (errorCode) {
416
394
  case "AccessDeniedException":
@@ -433,29 +411,26 @@ const deserializeAws_restJson1ExecuteStatementCommandError = async (output, cont
433
411
  throw await deserializeAws_restJson1StatementTimeoutExceptionResponse(parsedOutput, context);
434
412
  default:
435
413
  const parsedBody = parsedOutput.body;
436
- const $metadata = deserializeMetadata(output);
437
- const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
438
- response = new RDSDataServiceException_1.RDSDataServiceException({
439
- name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
440
- $fault: "client",
441
- $metadata,
414
+ (0, smithy_client_1.throwDefaultError)({
415
+ output,
416
+ parsedBody,
417
+ exceptionCtor: RDSDataServiceException_1.RDSDataServiceException,
418
+ errorCode,
442
419
  });
443
- throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
444
420
  }
445
421
  };
446
422
  const deserializeAws_restJson1RollbackTransactionCommand = async (output, context) => {
447
423
  if (output.statusCode !== 200 && output.statusCode >= 300) {
448
424
  return deserializeAws_restJson1RollbackTransactionCommandError(output, context);
449
425
  }
450
- const contents = {
426
+ const contents = map({
451
427
  $metadata: deserializeMetadata(output),
452
- transactionStatus: undefined,
453
- };
428
+ });
454
429
  const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
455
- if (data.transactionStatus !== undefined && data.transactionStatus !== null) {
430
+ if (data.transactionStatus != null) {
456
431
  contents.transactionStatus = (0, smithy_client_1.expectString)(data.transactionStatus);
457
432
  }
458
- return Promise.resolve(contents);
433
+ return contents;
459
434
  };
460
435
  exports.deserializeAws_restJson1RollbackTransactionCommand = deserializeAws_restJson1RollbackTransactionCommand;
461
436
  const deserializeAws_restJson1RollbackTransactionCommandError = async (output, context) => {
@@ -463,7 +438,6 @@ const deserializeAws_restJson1RollbackTransactionCommandError = async (output, c
463
438
  ...output,
464
439
  body: await parseBody(output.body, context),
465
440
  };
466
- let response;
467
441
  const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
468
442
  switch (errorCode) {
469
443
  case "AccessDeniedException":
@@ -489,20 +463,19 @@ const deserializeAws_restJson1RollbackTransactionCommandError = async (output, c
489
463
  throw await deserializeAws_restJson1StatementTimeoutExceptionResponse(parsedOutput, context);
490
464
  default:
491
465
  const parsedBody = parsedOutput.body;
492
- const $metadata = deserializeMetadata(output);
493
- const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
494
- response = new RDSDataServiceException_1.RDSDataServiceException({
495
- name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
496
- $fault: "client",
497
- $metadata,
466
+ (0, smithy_client_1.throwDefaultError)({
467
+ output,
468
+ parsedBody,
469
+ exceptionCtor: RDSDataServiceException_1.RDSDataServiceException,
470
+ errorCode,
498
471
  });
499
- throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
500
472
  }
501
473
  };
474
+ const map = smithy_client_1.map;
502
475
  const deserializeAws_restJson1AccessDeniedExceptionResponse = async (parsedOutput, context) => {
503
- const contents = {};
476
+ const contents = map({});
504
477
  const data = parsedOutput.body;
505
- if (data.message !== undefined && data.message !== null) {
478
+ if (data.message != null) {
506
479
  contents.message = (0, smithy_client_1.expectString)(data.message);
507
480
  }
508
481
  const exception = new models_0_1.AccessDeniedException({
@@ -512,9 +485,9 @@ const deserializeAws_restJson1AccessDeniedExceptionResponse = async (parsedOutpu
512
485
  return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
513
486
  };
514
487
  const deserializeAws_restJson1BadRequestExceptionResponse = async (parsedOutput, context) => {
515
- const contents = {};
488
+ const contents = map({});
516
489
  const data = parsedOutput.body;
517
- if (data.message !== undefined && data.message !== null) {
490
+ if (data.message != null) {
518
491
  contents.message = (0, smithy_client_1.expectString)(data.message);
519
492
  }
520
493
  const exception = new models_0_1.BadRequestException({
@@ -524,9 +497,9 @@ const deserializeAws_restJson1BadRequestExceptionResponse = async (parsedOutput,
524
497
  return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
525
498
  };
526
499
  const deserializeAws_restJson1ForbiddenExceptionResponse = async (parsedOutput, context) => {
527
- const contents = {};
500
+ const contents = map({});
528
501
  const data = parsedOutput.body;
529
- if (data.message !== undefined && data.message !== null) {
502
+ if (data.message != null) {
530
503
  contents.message = (0, smithy_client_1.expectString)(data.message);
531
504
  }
532
505
  const exception = new models_0_1.ForbiddenException({
@@ -536,7 +509,7 @@ const deserializeAws_restJson1ForbiddenExceptionResponse = async (parsedOutput,
536
509
  return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
537
510
  };
538
511
  const deserializeAws_restJson1InternalServerErrorExceptionResponse = async (parsedOutput, context) => {
539
- const contents = {};
512
+ const contents = map({});
540
513
  const data = parsedOutput.body;
541
514
  const exception = new models_0_1.InternalServerErrorException({
542
515
  $metadata: deserializeMetadata(parsedOutput),
@@ -545,9 +518,9 @@ const deserializeAws_restJson1InternalServerErrorExceptionResponse = async (pars
545
518
  return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
546
519
  };
547
520
  const deserializeAws_restJson1NotFoundExceptionResponse = async (parsedOutput, context) => {
548
- const contents = {};
521
+ const contents = map({});
549
522
  const data = parsedOutput.body;
550
- if (data.message !== undefined && data.message !== null) {
523
+ if (data.message != null) {
551
524
  contents.message = (0, smithy_client_1.expectString)(data.message);
552
525
  }
553
526
  const exception = new models_0_1.NotFoundException({
@@ -557,7 +530,7 @@ const deserializeAws_restJson1NotFoundExceptionResponse = async (parsedOutput, c
557
530
  return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
558
531
  };
559
532
  const deserializeAws_restJson1ServiceUnavailableErrorResponse = async (parsedOutput, context) => {
560
- const contents = {};
533
+ const contents = map({});
561
534
  const data = parsedOutput.body;
562
535
  const exception = new models_0_1.ServiceUnavailableError({
563
536
  $metadata: deserializeMetadata(parsedOutput),
@@ -566,12 +539,12 @@ const deserializeAws_restJson1ServiceUnavailableErrorResponse = async (parsedOut
566
539
  return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
567
540
  };
568
541
  const deserializeAws_restJson1StatementTimeoutExceptionResponse = async (parsedOutput, context) => {
569
- const contents = {};
542
+ const contents = map({});
570
543
  const data = parsedOutput.body;
571
- if (data.dbConnectionId !== undefined && data.dbConnectionId !== null) {
544
+ if (data.dbConnectionId != null) {
572
545
  contents.dbConnectionId = (0, smithy_client_1.expectLong)(data.dbConnectionId);
573
546
  }
574
- if (data.message !== undefined && data.message !== null) {
547
+ if (data.message != null) {
575
548
  contents.message = (0, smithy_client_1.expectString)(data.message);
576
549
  }
577
550
  const exception = new models_0_1.StatementTimeoutException({
@@ -584,9 +557,6 @@ const serializeAws_restJson1ArrayOfArray = (input, context) => {
584
557
  return input
585
558
  .filter((e) => e != null)
586
559
  .map((entry) => {
587
- if (entry === null) {
588
- return null;
589
- }
590
560
  return serializeAws_restJson1ArrayValue(entry, context);
591
561
  });
592
562
  };
@@ -604,9 +574,6 @@ const serializeAws_restJson1BooleanArray = (input, context) => {
604
574
  return input
605
575
  .filter((e) => e != null)
606
576
  .map((entry) => {
607
- if (entry === null) {
608
- return null;
609
- }
610
577
  return entry;
611
578
  });
612
579
  };
@@ -614,9 +581,6 @@ const serializeAws_restJson1DoubleArray = (input, context) => {
614
581
  return input
615
582
  .filter((e) => e != null)
616
583
  .map((entry) => {
617
- if (entry === null) {
618
- return null;
619
- }
620
584
  return (0, smithy_client_1.serializeFloat)(entry);
621
585
  });
622
586
  };
@@ -636,9 +600,6 @@ const serializeAws_restJson1LongArray = (input, context) => {
636
600
  return input
637
601
  .filter((e) => e != null)
638
602
  .map((entry) => {
639
- if (entry === null) {
640
- return null;
641
- }
642
603
  return entry;
643
604
  });
644
605
  };
@@ -659,9 +620,6 @@ const serializeAws_restJson1SqlParameterSets = (input, context) => {
659
620
  return input
660
621
  .filter((e) => e != null)
661
622
  .map((entry) => {
662
- if (entry === null) {
663
- return null;
664
- }
665
623
  return serializeAws_restJson1SqlParametersList(entry, context);
666
624
  });
667
625
  };
@@ -669,9 +627,6 @@ const serializeAws_restJson1SqlParametersList = (input, context) => {
669
627
  return input
670
628
  .filter((e) => e != null)
671
629
  .map((entry) => {
672
- if (entry === null) {
673
- return null;
674
- }
675
630
  return serializeAws_restJson1SqlParameter(entry, context);
676
631
  });
677
632
  };
@@ -679,9 +634,6 @@ const serializeAws_restJson1StringArray = (input, context) => {
679
634
  return input
680
635
  .filter((e) => e != null)
681
636
  .map((entry) => {
682
- if (entry === null) {
683
- return null;
684
- }
685
637
  return entry;
686
638
  });
687
639
  };
@@ -697,27 +649,27 @@ const deserializeAws_restJson1ArrayOfArray = (output, context) => {
697
649
  return retVal;
698
650
  };
699
651
  const deserializeAws_restJson1ArrayValue = (output, context) => {
700
- if (output.arrayValues !== undefined && output.arrayValues !== null) {
652
+ if (output.arrayValues != null) {
701
653
  return {
702
654
  arrayValues: deserializeAws_restJson1ArrayOfArray(output.arrayValues, context),
703
655
  };
704
656
  }
705
- if (output.booleanValues !== undefined && output.booleanValues !== null) {
657
+ if (output.booleanValues != null) {
706
658
  return {
707
659
  booleanValues: deserializeAws_restJson1BooleanArray(output.booleanValues, context),
708
660
  };
709
661
  }
710
- if (output.doubleValues !== undefined && output.doubleValues !== null) {
662
+ if (output.doubleValues != null) {
711
663
  return {
712
664
  doubleValues: deserializeAws_restJson1DoubleArray(output.doubleValues, context),
713
665
  };
714
666
  }
715
- if (output.longValues !== undefined && output.longValues !== null) {
667
+ if (output.longValues != null) {
716
668
  return {
717
669
  longValues: deserializeAws_restJson1LongArray(output.longValues, context),
718
670
  };
719
671
  }
720
- if (output.stringValues !== undefined && output.stringValues !== null) {
672
+ if (output.stringValues != null) {
721
673
  return {
722
674
  stringValues: deserializeAws_restJson1StringArray(output.stringValues, context),
723
675
  };
@@ -776,12 +728,12 @@ const deserializeAws_restJson1DoubleArray = (output, context) => {
776
728
  return retVal;
777
729
  };
778
730
  const deserializeAws_restJson1Field = (output, context) => {
779
- if (output.arrayValue !== undefined && output.arrayValue !== null) {
731
+ if (output.arrayValue != null) {
780
732
  return {
781
733
  arrayValue: deserializeAws_restJson1ArrayValue((0, smithy_client_1.expectUnion)(output.arrayValue), context),
782
734
  };
783
735
  }
784
- if (output.blobValue !== undefined && output.blobValue !== null) {
736
+ if (output.blobValue != null) {
785
737
  return {
786
738
  blobValue: context.base64Decoder(output.blobValue),
787
739
  };
@@ -938,7 +890,7 @@ const deserializeAws_restJson1UpdateResults = (output, context) => {
938
890
  return retVal;
939
891
  };
940
892
  const deserializeAws_restJson1Value = (output, context) => {
941
- if (output.arrayValues !== undefined && output.arrayValues !== null) {
893
+ if (output.arrayValues != null) {
942
894
  return {
943
895
  arrayValues: deserializeAws_restJson1ArrayValueList(output.arrayValues, context),
944
896
  };
@@ -949,7 +901,7 @@ const deserializeAws_restJson1Value = (output, context) => {
949
901
  if ((0, smithy_client_1.expectBoolean)(output.bitValue) !== undefined) {
950
902
  return { bitValue: (0, smithy_client_1.expectBoolean)(output.bitValue) };
951
903
  }
952
- if (output.blobValue !== undefined && output.blobValue !== null) {
904
+ if (output.blobValue != null) {
953
905
  return {
954
906
  blobValue: context.base64Decoder(output.blobValue),
955
907
  };
@@ -969,7 +921,7 @@ const deserializeAws_restJson1Value = (output, context) => {
969
921
  if ((0, smithy_client_1.expectString)(output.stringValue) !== undefined) {
970
922
  return { stringValue: (0, smithy_client_1.expectString)(output.stringValue) };
971
923
  }
972
- if (output.structValue !== undefined && output.structValue !== null) {
924
+ if (output.structValue != null) {
973
925
  return {
974
926
  structValue: deserializeAws_restJson1StructValue(output.structValue, context),
975
927
  };
@@ -1,7 +1,7 @@
1
1
  import { __extends } from "tslib";
2
2
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
3
  import { Command as $Command } from "@aws-sdk/smithy-client";
4
- import { BatchExecuteStatementRequest, BatchExecuteStatementResponse } from "../models/models_0";
4
+ import { BatchExecuteStatementRequestFilterSensitiveLog, BatchExecuteStatementResponseFilterSensitiveLog, } from "../models/models_0";
5
5
  import { deserializeAws_restJson1BatchExecuteStatementCommand, serializeAws_restJson1BatchExecuteStatementCommand, } from "../protocols/Aws_restJson1";
6
6
  var BatchExecuteStatementCommand = (function (_super) {
7
7
  __extends(BatchExecuteStatementCommand, _super);
@@ -20,8 +20,8 @@ var BatchExecuteStatementCommand = (function (_super) {
20
20
  logger: logger,
21
21
  clientName: clientName,
22
22
  commandName: commandName,
23
- inputFilterSensitiveLog: BatchExecuteStatementRequest.filterSensitiveLog,
24
- outputFilterSensitiveLog: BatchExecuteStatementResponse.filterSensitiveLog,
23
+ inputFilterSensitiveLog: BatchExecuteStatementRequestFilterSensitiveLog,
24
+ outputFilterSensitiveLog: BatchExecuteStatementResponseFilterSensitiveLog,
25
25
  };
26
26
  var requestHandler = configuration.requestHandler;
27
27
  return stack.resolve(function (request) {
@@ -1,7 +1,7 @@
1
1
  import { __extends } from "tslib";
2
2
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
3
  import { Command as $Command } from "@aws-sdk/smithy-client";
4
- import { BeginTransactionRequest, BeginTransactionResponse } from "../models/models_0";
4
+ import { BeginTransactionRequestFilterSensitiveLog, BeginTransactionResponseFilterSensitiveLog, } from "../models/models_0";
5
5
  import { deserializeAws_restJson1BeginTransactionCommand, serializeAws_restJson1BeginTransactionCommand, } from "../protocols/Aws_restJson1";
6
6
  var BeginTransactionCommand = (function (_super) {
7
7
  __extends(BeginTransactionCommand, _super);
@@ -20,8 +20,8 @@ var BeginTransactionCommand = (function (_super) {
20
20
  logger: logger,
21
21
  clientName: clientName,
22
22
  commandName: commandName,
23
- inputFilterSensitiveLog: BeginTransactionRequest.filterSensitiveLog,
24
- outputFilterSensitiveLog: BeginTransactionResponse.filterSensitiveLog,
23
+ inputFilterSensitiveLog: BeginTransactionRequestFilterSensitiveLog,
24
+ outputFilterSensitiveLog: BeginTransactionResponseFilterSensitiveLog,
25
25
  };
26
26
  var requestHandler = configuration.requestHandler;
27
27
  return stack.resolve(function (request) {
@@ -1,7 +1,7 @@
1
1
  import { __extends } from "tslib";
2
2
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
3
  import { Command as $Command } from "@aws-sdk/smithy-client";
4
- import { CommitTransactionRequest, CommitTransactionResponse } from "../models/models_0";
4
+ import { CommitTransactionRequestFilterSensitiveLog, CommitTransactionResponseFilterSensitiveLog, } from "../models/models_0";
5
5
  import { deserializeAws_restJson1CommitTransactionCommand, serializeAws_restJson1CommitTransactionCommand, } from "../protocols/Aws_restJson1";
6
6
  var CommitTransactionCommand = (function (_super) {
7
7
  __extends(CommitTransactionCommand, _super);
@@ -20,8 +20,8 @@ var CommitTransactionCommand = (function (_super) {
20
20
  logger: logger,
21
21
  clientName: clientName,
22
22
  commandName: commandName,
23
- inputFilterSensitiveLog: CommitTransactionRequest.filterSensitiveLog,
24
- outputFilterSensitiveLog: CommitTransactionResponse.filterSensitiveLog,
23
+ inputFilterSensitiveLog: CommitTransactionRequestFilterSensitiveLog,
24
+ outputFilterSensitiveLog: CommitTransactionResponseFilterSensitiveLog,
25
25
  };
26
26
  var requestHandler = configuration.requestHandler;
27
27
  return stack.resolve(function (request) {
@@ -1,7 +1,7 @@
1
1
  import { __extends } from "tslib";
2
2
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
3
  import { Command as $Command } from "@aws-sdk/smithy-client";
4
- import { ExecuteSqlRequest, ExecuteSqlResponse } from "../models/models_0";
4
+ import { ExecuteSqlRequestFilterSensitiveLog, ExecuteSqlResponseFilterSensitiveLog, } from "../models/models_0";
5
5
  import { deserializeAws_restJson1ExecuteSqlCommand, serializeAws_restJson1ExecuteSqlCommand, } from "../protocols/Aws_restJson1";
6
6
  var ExecuteSqlCommand = (function (_super) {
7
7
  __extends(ExecuteSqlCommand, _super);
@@ -20,8 +20,8 @@ var ExecuteSqlCommand = (function (_super) {
20
20
  logger: logger,
21
21
  clientName: clientName,
22
22
  commandName: commandName,
23
- inputFilterSensitiveLog: ExecuteSqlRequest.filterSensitiveLog,
24
- outputFilterSensitiveLog: ExecuteSqlResponse.filterSensitiveLog,
23
+ inputFilterSensitiveLog: ExecuteSqlRequestFilterSensitiveLog,
24
+ outputFilterSensitiveLog: ExecuteSqlResponseFilterSensitiveLog,
25
25
  };
26
26
  var requestHandler = configuration.requestHandler;
27
27
  return stack.resolve(function (request) {
@@ -1,7 +1,7 @@
1
1
  import { __extends } from "tslib";
2
2
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
3
  import { Command as $Command } from "@aws-sdk/smithy-client";
4
- import { ExecuteStatementRequest, ExecuteStatementResponse } from "../models/models_0";
4
+ import { ExecuteStatementRequestFilterSensitiveLog, ExecuteStatementResponseFilterSensitiveLog, } from "../models/models_0";
5
5
  import { deserializeAws_restJson1ExecuteStatementCommand, serializeAws_restJson1ExecuteStatementCommand, } from "../protocols/Aws_restJson1";
6
6
  var ExecuteStatementCommand = (function (_super) {
7
7
  __extends(ExecuteStatementCommand, _super);
@@ -20,8 +20,8 @@ var ExecuteStatementCommand = (function (_super) {
20
20
  logger: logger,
21
21
  clientName: clientName,
22
22
  commandName: commandName,
23
- inputFilterSensitiveLog: ExecuteStatementRequest.filterSensitiveLog,
24
- outputFilterSensitiveLog: ExecuteStatementResponse.filterSensitiveLog,
23
+ inputFilterSensitiveLog: ExecuteStatementRequestFilterSensitiveLog,
24
+ outputFilterSensitiveLog: ExecuteStatementResponseFilterSensitiveLog,
25
25
  };
26
26
  var requestHandler = configuration.requestHandler;
27
27
  return stack.resolve(function (request) {
@@ -1,7 +1,7 @@
1
1
  import { __extends } from "tslib";
2
2
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
3
  import { Command as $Command } from "@aws-sdk/smithy-client";
4
- import { RollbackTransactionRequest, RollbackTransactionResponse } from "../models/models_0";
4
+ import { RollbackTransactionRequestFilterSensitiveLog, RollbackTransactionResponseFilterSensitiveLog, } from "../models/models_0";
5
5
  import { deserializeAws_restJson1RollbackTransactionCommand, serializeAws_restJson1RollbackTransactionCommand, } from "../protocols/Aws_restJson1";
6
6
  var RollbackTransactionCommand = (function (_super) {
7
7
  __extends(RollbackTransactionCommand, _super);
@@ -20,8 +20,8 @@ var RollbackTransactionCommand = (function (_super) {
20
20
  logger: logger,
21
21
  clientName: clientName,
22
22
  commandName: commandName,
23
- inputFilterSensitiveLog: RollbackTransactionRequest.filterSensitiveLog,
24
- outputFilterSensitiveLog: RollbackTransactionResponse.filterSensitiveLog,
23
+ inputFilterSensitiveLog: RollbackTransactionRequestFilterSensitiveLog,
24
+ outputFilterSensitiveLog: RollbackTransactionResponseFilterSensitiveLog,
25
25
  };
26
26
  var requestHandler = configuration.requestHandler;
27
27
  return stack.resolve(function (request) {