@aws-sdk/client-redshift-data 3.54.1 → 3.58.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.
@@ -144,7 +144,7 @@ const deserializeAws_json1_1BatchExecuteStatementCommandError = async (output, c
144
144
  $fault: "client",
145
145
  $metadata: deserializeMetadata(output),
146
146
  });
147
- throw smithy_client_1.decorateServiceException(response, parsedBody);
147
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
148
148
  }
149
149
  };
150
150
  const deserializeAws_json1_1CancelStatementCommand = async (output, context) => {
@@ -189,7 +189,7 @@ const deserializeAws_json1_1CancelStatementCommandError = async (output, context
189
189
  $fault: "client",
190
190
  $metadata: deserializeMetadata(output),
191
191
  });
192
- throw smithy_client_1.decorateServiceException(response, parsedBody);
192
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
193
193
  }
194
194
  };
195
195
  const deserializeAws_json1_1DescribeStatementCommand = async (output, context) => {
@@ -231,7 +231,7 @@ const deserializeAws_json1_1DescribeStatementCommandError = async (output, conte
231
231
  $fault: "client",
232
232
  $metadata: deserializeMetadata(output),
233
233
  });
234
- throw smithy_client_1.decorateServiceException(response, parsedBody);
234
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
235
235
  }
236
236
  };
237
237
  const deserializeAws_json1_1DescribeTableCommand = async (output, context) => {
@@ -273,7 +273,7 @@ const deserializeAws_json1_1DescribeTableCommandError = async (output, context)
273
273
  $fault: "client",
274
274
  $metadata: deserializeMetadata(output),
275
275
  });
276
- throw smithy_client_1.decorateServiceException(response, parsedBody);
276
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
277
277
  }
278
278
  };
279
279
  const deserializeAws_json1_1ExecuteStatementCommand = async (output, context) => {
@@ -315,7 +315,7 @@ const deserializeAws_json1_1ExecuteStatementCommandError = async (output, contex
315
315
  $fault: "client",
316
316
  $metadata: deserializeMetadata(output),
317
317
  });
318
- throw smithy_client_1.decorateServiceException(response, parsedBody);
318
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
319
319
  }
320
320
  };
321
321
  const deserializeAws_json1_1GetStatementResultCommand = async (output, context) => {
@@ -357,7 +357,7 @@ const deserializeAws_json1_1GetStatementResultCommandError = async (output, cont
357
357
  $fault: "client",
358
358
  $metadata: deserializeMetadata(output),
359
359
  });
360
- throw smithy_client_1.decorateServiceException(response, parsedBody);
360
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
361
361
  }
362
362
  };
363
363
  const deserializeAws_json1_1ListDatabasesCommand = async (output, context) => {
@@ -399,7 +399,7 @@ const deserializeAws_json1_1ListDatabasesCommandError = async (output, context)
399
399
  $fault: "client",
400
400
  $metadata: deserializeMetadata(output),
401
401
  });
402
- throw smithy_client_1.decorateServiceException(response, parsedBody);
402
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
403
403
  }
404
404
  };
405
405
  const deserializeAws_json1_1ListSchemasCommand = async (output, context) => {
@@ -441,7 +441,7 @@ const deserializeAws_json1_1ListSchemasCommandError = async (output, context) =>
441
441
  $fault: "client",
442
442
  $metadata: deserializeMetadata(output),
443
443
  });
444
- throw smithy_client_1.decorateServiceException(response, parsedBody);
444
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
445
445
  }
446
446
  };
447
447
  const deserializeAws_json1_1ListStatementsCommand = async (output, context) => {
@@ -480,7 +480,7 @@ const deserializeAws_json1_1ListStatementsCommandError = async (output, context)
480
480
  $fault: "client",
481
481
  $metadata: deserializeMetadata(output),
482
482
  });
483
- throw smithy_client_1.decorateServiceException(response, parsedBody);
483
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
484
484
  }
485
485
  };
486
486
  const deserializeAws_json1_1ListTablesCommand = async (output, context) => {
@@ -522,7 +522,7 @@ const deserializeAws_json1_1ListTablesCommandError = async (output, context) =>
522
522
  $fault: "client",
523
523
  $metadata: deserializeMetadata(output),
524
524
  });
525
- throw smithy_client_1.decorateServiceException(response, parsedBody);
525
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
526
526
  }
527
527
  };
528
528
  const deserializeAws_json1_1ActiveStatementsExceededExceptionResponse = async (parsedOutput, context) => {
@@ -532,7 +532,7 @@ const deserializeAws_json1_1ActiveStatementsExceededExceptionResponse = async (p
532
532
  $metadata: deserializeMetadata(parsedOutput),
533
533
  ...deserialized,
534
534
  });
535
- return smithy_client_1.decorateServiceException(exception, body);
535
+ return (0, smithy_client_1.decorateServiceException)(exception, body);
536
536
  };
537
537
  const deserializeAws_json1_1BatchExecuteStatementExceptionResponse = async (parsedOutput, context) => {
538
538
  const body = parsedOutput.body;
@@ -541,7 +541,7 @@ const deserializeAws_json1_1BatchExecuteStatementExceptionResponse = async (pars
541
541
  $metadata: deserializeMetadata(parsedOutput),
542
542
  ...deserialized,
543
543
  });
544
- return smithy_client_1.decorateServiceException(exception, body);
544
+ return (0, smithy_client_1.decorateServiceException)(exception, body);
545
545
  };
546
546
  const deserializeAws_json1_1DatabaseConnectionExceptionResponse = async (parsedOutput, context) => {
547
547
  const body = parsedOutput.body;
@@ -550,7 +550,7 @@ const deserializeAws_json1_1DatabaseConnectionExceptionResponse = async (parsedO
550
550
  $metadata: deserializeMetadata(parsedOutput),
551
551
  ...deserialized,
552
552
  });
553
- return smithy_client_1.decorateServiceException(exception, body);
553
+ return (0, smithy_client_1.decorateServiceException)(exception, body);
554
554
  };
555
555
  const deserializeAws_json1_1ExecuteStatementExceptionResponse = async (parsedOutput, context) => {
556
556
  const body = parsedOutput.body;
@@ -559,7 +559,7 @@ const deserializeAws_json1_1ExecuteStatementExceptionResponse = async (parsedOut
559
559
  $metadata: deserializeMetadata(parsedOutput),
560
560
  ...deserialized,
561
561
  });
562
- return smithy_client_1.decorateServiceException(exception, body);
562
+ return (0, smithy_client_1.decorateServiceException)(exception, body);
563
563
  };
564
564
  const deserializeAws_json1_1InternalServerExceptionResponse = async (parsedOutput, context) => {
565
565
  const body = parsedOutput.body;
@@ -568,7 +568,7 @@ const deserializeAws_json1_1InternalServerExceptionResponse = async (parsedOutpu
568
568
  $metadata: deserializeMetadata(parsedOutput),
569
569
  ...deserialized,
570
570
  });
571
- return smithy_client_1.decorateServiceException(exception, body);
571
+ return (0, smithy_client_1.decorateServiceException)(exception, body);
572
572
  };
573
573
  const deserializeAws_json1_1ResourceNotFoundExceptionResponse = async (parsedOutput, context) => {
574
574
  const body = parsedOutput.body;
@@ -577,7 +577,7 @@ const deserializeAws_json1_1ResourceNotFoundExceptionResponse = async (parsedOut
577
577
  $metadata: deserializeMetadata(parsedOutput),
578
578
  ...deserialized,
579
579
  });
580
- return smithy_client_1.decorateServiceException(exception, body);
580
+ return (0, smithy_client_1.decorateServiceException)(exception, body);
581
581
  };
582
582
  const deserializeAws_json1_1ValidationExceptionResponse = async (parsedOutput, context) => {
583
583
  const body = parsedOutput.body;
@@ -586,7 +586,7 @@ const deserializeAws_json1_1ValidationExceptionResponse = async (parsedOutput, c
586
586
  $metadata: deserializeMetadata(parsedOutput),
587
587
  ...deserialized,
588
588
  });
589
- return smithy_client_1.decorateServiceException(exception, body);
589
+ return (0, smithy_client_1.decorateServiceException)(exception, body);
590
590
  };
591
591
  const serializeAws_json1_1BatchExecuteStatementInput = (input, context) => {
592
592
  return {
@@ -722,30 +722,30 @@ const serializeAws_json1_1SqlParametersList = (input, context) => {
722
722
  };
723
723
  const deserializeAws_json1_1ActiveStatementsExceededException = (output, context) => {
724
724
  return {
725
- Message: smithy_client_1.expectString(output.Message),
725
+ Message: (0, smithy_client_1.expectString)(output.Message),
726
726
  };
727
727
  };
728
728
  const deserializeAws_json1_1BatchExecuteStatementException = (output, context) => {
729
729
  return {
730
- Message: smithy_client_1.expectString(output.Message),
731
- StatementId: smithy_client_1.expectString(output.StatementId),
730
+ Message: (0, smithy_client_1.expectString)(output.Message),
731
+ StatementId: (0, smithy_client_1.expectString)(output.StatementId),
732
732
  };
733
733
  };
734
734
  const deserializeAws_json1_1BatchExecuteStatementOutput = (output, context) => {
735
735
  return {
736
- ClusterIdentifier: smithy_client_1.expectString(output.ClusterIdentifier),
736
+ ClusterIdentifier: (0, smithy_client_1.expectString)(output.ClusterIdentifier),
737
737
  CreatedAt: output.CreatedAt !== undefined && output.CreatedAt !== null
738
- ? smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(output.CreatedAt)))
738
+ ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.CreatedAt)))
739
739
  : undefined,
740
- Database: smithy_client_1.expectString(output.Database),
741
- DbUser: smithy_client_1.expectString(output.DbUser),
742
- Id: smithy_client_1.expectString(output.Id),
743
- SecretArn: smithy_client_1.expectString(output.SecretArn),
740
+ Database: (0, smithy_client_1.expectString)(output.Database),
741
+ DbUser: (0, smithy_client_1.expectString)(output.DbUser),
742
+ Id: (0, smithy_client_1.expectString)(output.Id),
743
+ SecretArn: (0, smithy_client_1.expectString)(output.SecretArn),
744
744
  };
745
745
  };
746
746
  const deserializeAws_json1_1CancelStatementResponse = (output, context) => {
747
747
  return {
748
- Status: smithy_client_1.expectBoolean(output.Status),
748
+ Status: (0, smithy_client_1.expectBoolean)(output.Status),
749
749
  };
750
750
  };
751
751
  const deserializeAws_json1_1ColumnList = (output, context) => {
@@ -761,19 +761,19 @@ const deserializeAws_json1_1ColumnList = (output, context) => {
761
761
  };
762
762
  const deserializeAws_json1_1ColumnMetadata = (output, context) => {
763
763
  return {
764
- columnDefault: smithy_client_1.expectString(output.columnDefault),
765
- isCaseSensitive: smithy_client_1.expectBoolean(output.isCaseSensitive),
766
- isCurrency: smithy_client_1.expectBoolean(output.isCurrency),
767
- isSigned: smithy_client_1.expectBoolean(output.isSigned),
768
- label: smithy_client_1.expectString(output.label),
769
- length: smithy_client_1.expectInt32(output.length),
770
- name: smithy_client_1.expectString(output.name),
771
- nullable: smithy_client_1.expectInt32(output.nullable),
772
- precision: smithy_client_1.expectInt32(output.precision),
773
- scale: smithy_client_1.expectInt32(output.scale),
774
- schemaName: smithy_client_1.expectString(output.schemaName),
775
- tableName: smithy_client_1.expectString(output.tableName),
776
- typeName: smithy_client_1.expectString(output.typeName),
764
+ columnDefault: (0, smithy_client_1.expectString)(output.columnDefault),
765
+ isCaseSensitive: (0, smithy_client_1.expectBoolean)(output.isCaseSensitive),
766
+ isCurrency: (0, smithy_client_1.expectBoolean)(output.isCurrency),
767
+ isSigned: (0, smithy_client_1.expectBoolean)(output.isSigned),
768
+ label: (0, smithy_client_1.expectString)(output.label),
769
+ length: (0, smithy_client_1.expectInt32)(output.length),
770
+ name: (0, smithy_client_1.expectString)(output.name),
771
+ nullable: (0, smithy_client_1.expectInt32)(output.nullable),
772
+ precision: (0, smithy_client_1.expectInt32)(output.precision),
773
+ scale: (0, smithy_client_1.expectInt32)(output.scale),
774
+ schemaName: (0, smithy_client_1.expectString)(output.schemaName),
775
+ tableName: (0, smithy_client_1.expectString)(output.tableName),
776
+ typeName: (0, smithy_client_1.expectString)(output.typeName),
777
777
  };
778
778
  };
779
779
  const deserializeAws_json1_1ColumnMetadataList = (output, context) => {
@@ -789,7 +789,7 @@ const deserializeAws_json1_1ColumnMetadataList = (output, context) => {
789
789
  };
790
790
  const deserializeAws_json1_1DatabaseConnectionException = (output, context) => {
791
791
  return {
792
- Message: smithy_client_1.expectString(output.Message),
792
+ Message: (0, smithy_client_1.expectString)(output.Message),
793
793
  };
794
794
  };
795
795
  const deserializeAws_json1_1DatabaseList = (output, context) => {
@@ -799,37 +799,37 @@ const deserializeAws_json1_1DatabaseList = (output, context) => {
799
799
  if (entry === null) {
800
800
  return null;
801
801
  }
802
- return smithy_client_1.expectString(entry);
802
+ return (0, smithy_client_1.expectString)(entry);
803
803
  });
804
804
  return retVal;
805
805
  };
806
806
  const deserializeAws_json1_1DescribeStatementResponse = (output, context) => {
807
807
  return {
808
- ClusterIdentifier: smithy_client_1.expectString(output.ClusterIdentifier),
808
+ ClusterIdentifier: (0, smithy_client_1.expectString)(output.ClusterIdentifier),
809
809
  CreatedAt: output.CreatedAt !== undefined && output.CreatedAt !== null
810
- ? smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(output.CreatedAt)))
810
+ ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.CreatedAt)))
811
811
  : undefined,
812
- Database: smithy_client_1.expectString(output.Database),
813
- DbUser: smithy_client_1.expectString(output.DbUser),
814
- Duration: smithy_client_1.expectLong(output.Duration),
815
- Error: smithy_client_1.expectString(output.Error),
816
- HasResultSet: smithy_client_1.expectBoolean(output.HasResultSet),
817
- Id: smithy_client_1.expectString(output.Id),
812
+ Database: (0, smithy_client_1.expectString)(output.Database),
813
+ DbUser: (0, smithy_client_1.expectString)(output.DbUser),
814
+ Duration: (0, smithy_client_1.expectLong)(output.Duration),
815
+ Error: (0, smithy_client_1.expectString)(output.Error),
816
+ HasResultSet: (0, smithy_client_1.expectBoolean)(output.HasResultSet),
817
+ Id: (0, smithy_client_1.expectString)(output.Id),
818
818
  QueryParameters: output.QueryParameters !== undefined && output.QueryParameters !== null
819
819
  ? deserializeAws_json1_1SqlParametersList(output.QueryParameters, context)
820
820
  : undefined,
821
- QueryString: smithy_client_1.expectString(output.QueryString),
822
- RedshiftPid: smithy_client_1.expectLong(output.RedshiftPid),
823
- RedshiftQueryId: smithy_client_1.expectLong(output.RedshiftQueryId),
824
- ResultRows: smithy_client_1.expectLong(output.ResultRows),
825
- ResultSize: smithy_client_1.expectLong(output.ResultSize),
826
- SecretArn: smithy_client_1.expectString(output.SecretArn),
827
- Status: smithy_client_1.expectString(output.Status),
821
+ QueryString: (0, smithy_client_1.expectString)(output.QueryString),
822
+ RedshiftPid: (0, smithy_client_1.expectLong)(output.RedshiftPid),
823
+ RedshiftQueryId: (0, smithy_client_1.expectLong)(output.RedshiftQueryId),
824
+ ResultRows: (0, smithy_client_1.expectLong)(output.ResultRows),
825
+ ResultSize: (0, smithy_client_1.expectLong)(output.ResultSize),
826
+ SecretArn: (0, smithy_client_1.expectString)(output.SecretArn),
827
+ Status: (0, smithy_client_1.expectString)(output.Status),
828
828
  SubStatements: output.SubStatements !== undefined && output.SubStatements !== null
829
829
  ? deserializeAws_json1_1SubStatementList(output.SubStatements, context)
830
830
  : undefined,
831
831
  UpdatedAt: output.UpdatedAt !== undefined && output.UpdatedAt !== null
832
- ? smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(output.UpdatedAt)))
832
+ ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.UpdatedAt)))
833
833
  : undefined,
834
834
  };
835
835
  };
@@ -838,26 +838,26 @@ const deserializeAws_json1_1DescribeTableResponse = (output, context) => {
838
838
  ColumnList: output.ColumnList !== undefined && output.ColumnList !== null
839
839
  ? deserializeAws_json1_1ColumnList(output.ColumnList, context)
840
840
  : undefined,
841
- NextToken: smithy_client_1.expectString(output.NextToken),
842
- TableName: smithy_client_1.expectString(output.TableName),
841
+ NextToken: (0, smithy_client_1.expectString)(output.NextToken),
842
+ TableName: (0, smithy_client_1.expectString)(output.TableName),
843
843
  };
844
844
  };
845
845
  const deserializeAws_json1_1ExecuteStatementException = (output, context) => {
846
846
  return {
847
- Message: smithy_client_1.expectString(output.Message),
848
- StatementId: smithy_client_1.expectString(output.StatementId),
847
+ Message: (0, smithy_client_1.expectString)(output.Message),
848
+ StatementId: (0, smithy_client_1.expectString)(output.StatementId),
849
849
  };
850
850
  };
851
851
  const deserializeAws_json1_1ExecuteStatementOutput = (output, context) => {
852
852
  return {
853
- ClusterIdentifier: smithy_client_1.expectString(output.ClusterIdentifier),
853
+ ClusterIdentifier: (0, smithy_client_1.expectString)(output.ClusterIdentifier),
854
854
  CreatedAt: output.CreatedAt !== undefined && output.CreatedAt !== null
855
- ? smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(output.CreatedAt)))
855
+ ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.CreatedAt)))
856
856
  : undefined,
857
- Database: smithy_client_1.expectString(output.Database),
858
- DbUser: smithy_client_1.expectString(output.DbUser),
859
- Id: smithy_client_1.expectString(output.Id),
860
- SecretArn: smithy_client_1.expectString(output.SecretArn),
857
+ Database: (0, smithy_client_1.expectString)(output.Database),
858
+ DbUser: (0, smithy_client_1.expectString)(output.DbUser),
859
+ Id: (0, smithy_client_1.expectString)(output.Id),
860
+ SecretArn: (0, smithy_client_1.expectString)(output.SecretArn),
861
861
  };
862
862
  };
863
863
  const deserializeAws_json1_1Field = (output, context) => {
@@ -866,20 +866,20 @@ const deserializeAws_json1_1Field = (output, context) => {
866
866
  blobValue: context.base64Decoder(output.blobValue),
867
867
  };
868
868
  }
869
- if (smithy_client_1.expectBoolean(output.booleanValue) !== undefined) {
870
- return { booleanValue: smithy_client_1.expectBoolean(output.booleanValue) };
869
+ if ((0, smithy_client_1.expectBoolean)(output.booleanValue) !== undefined) {
870
+ return { booleanValue: (0, smithy_client_1.expectBoolean)(output.booleanValue) };
871
871
  }
872
- if (smithy_client_1.limitedParseDouble(output.doubleValue) !== undefined) {
873
- return { doubleValue: smithy_client_1.limitedParseDouble(output.doubleValue) };
872
+ if ((0, smithy_client_1.limitedParseDouble)(output.doubleValue) !== undefined) {
873
+ return { doubleValue: (0, smithy_client_1.limitedParseDouble)(output.doubleValue) };
874
874
  }
875
- if (smithy_client_1.expectBoolean(output.isNull) !== undefined) {
876
- return { isNull: smithy_client_1.expectBoolean(output.isNull) };
875
+ if ((0, smithy_client_1.expectBoolean)(output.isNull) !== undefined) {
876
+ return { isNull: (0, smithy_client_1.expectBoolean)(output.isNull) };
877
877
  }
878
- if (smithy_client_1.expectLong(output.longValue) !== undefined) {
879
- return { longValue: smithy_client_1.expectLong(output.longValue) };
878
+ if ((0, smithy_client_1.expectLong)(output.longValue) !== undefined) {
879
+ return { longValue: (0, smithy_client_1.expectLong)(output.longValue) };
880
880
  }
881
- if (smithy_client_1.expectString(output.stringValue) !== undefined) {
882
- return { stringValue: smithy_client_1.expectString(output.stringValue) };
881
+ if ((0, smithy_client_1.expectString)(output.stringValue) !== undefined) {
882
+ return { stringValue: (0, smithy_client_1.expectString)(output.stringValue) };
883
883
  }
884
884
  return { $unknown: Object.entries(output)[0] };
885
885
  };
@@ -890,7 +890,7 @@ const deserializeAws_json1_1FieldList = (output, context) => {
890
890
  if (entry === null) {
891
891
  return null;
892
892
  }
893
- return deserializeAws_json1_1Field(smithy_client_1.expectUnion(entry), context);
893
+ return deserializeAws_json1_1Field((0, smithy_client_1.expectUnion)(entry), context);
894
894
  });
895
895
  return retVal;
896
896
  };
@@ -899,16 +899,16 @@ const deserializeAws_json1_1GetStatementResultResponse = (output, context) => {
899
899
  ColumnMetadata: output.ColumnMetadata !== undefined && output.ColumnMetadata !== null
900
900
  ? deserializeAws_json1_1ColumnMetadataList(output.ColumnMetadata, context)
901
901
  : undefined,
902
- NextToken: smithy_client_1.expectString(output.NextToken),
902
+ NextToken: (0, smithy_client_1.expectString)(output.NextToken),
903
903
  Records: output.Records !== undefined && output.Records !== null
904
904
  ? deserializeAws_json1_1SqlRecords(output.Records, context)
905
905
  : undefined,
906
- TotalNumRows: smithy_client_1.expectLong(output.TotalNumRows),
906
+ TotalNumRows: (0, smithy_client_1.expectLong)(output.TotalNumRows),
907
907
  };
908
908
  };
909
909
  const deserializeAws_json1_1InternalServerException = (output, context) => {
910
910
  return {
911
- Message: smithy_client_1.expectString(output.Message),
911
+ Message: (0, smithy_client_1.expectString)(output.Message),
912
912
  };
913
913
  };
914
914
  const deserializeAws_json1_1ListDatabasesResponse = (output, context) => {
@@ -916,12 +916,12 @@ const deserializeAws_json1_1ListDatabasesResponse = (output, context) => {
916
916
  Databases: output.Databases !== undefined && output.Databases !== null
917
917
  ? deserializeAws_json1_1DatabaseList(output.Databases, context)
918
918
  : undefined,
919
- NextToken: smithy_client_1.expectString(output.NextToken),
919
+ NextToken: (0, smithy_client_1.expectString)(output.NextToken),
920
920
  };
921
921
  };
922
922
  const deserializeAws_json1_1ListSchemasResponse = (output, context) => {
923
923
  return {
924
- NextToken: smithy_client_1.expectString(output.NextToken),
924
+ NextToken: (0, smithy_client_1.expectString)(output.NextToken),
925
925
  Schemas: output.Schemas !== undefined && output.Schemas !== null
926
926
  ? deserializeAws_json1_1SchemaList(output.Schemas, context)
927
927
  : undefined,
@@ -929,7 +929,7 @@ const deserializeAws_json1_1ListSchemasResponse = (output, context) => {
929
929
  };
930
930
  const deserializeAws_json1_1ListStatementsResponse = (output, context) => {
931
931
  return {
932
- NextToken: smithy_client_1.expectString(output.NextToken),
932
+ NextToken: (0, smithy_client_1.expectString)(output.NextToken),
933
933
  Statements: output.Statements !== undefined && output.Statements !== null
934
934
  ? deserializeAws_json1_1StatementList(output.Statements, context)
935
935
  : undefined,
@@ -937,7 +937,7 @@ const deserializeAws_json1_1ListStatementsResponse = (output, context) => {
937
937
  };
938
938
  const deserializeAws_json1_1ListTablesResponse = (output, context) => {
939
939
  return {
940
- NextToken: smithy_client_1.expectString(output.NextToken),
940
+ NextToken: (0, smithy_client_1.expectString)(output.NextToken),
941
941
  Tables: output.Tables !== undefined && output.Tables !== null
942
942
  ? deserializeAws_json1_1TableList(output.Tables, context)
943
943
  : undefined,
@@ -945,8 +945,8 @@ const deserializeAws_json1_1ListTablesResponse = (output, context) => {
945
945
  };
946
946
  const deserializeAws_json1_1ResourceNotFoundException = (output, context) => {
947
947
  return {
948
- Message: smithy_client_1.expectString(output.Message),
949
- ResourceId: smithy_client_1.expectString(output.ResourceId),
948
+ Message: (0, smithy_client_1.expectString)(output.Message),
949
+ ResourceId: (0, smithy_client_1.expectString)(output.ResourceId),
950
950
  };
951
951
  };
952
952
  const deserializeAws_json1_1SchemaList = (output, context) => {
@@ -956,14 +956,14 @@ const deserializeAws_json1_1SchemaList = (output, context) => {
956
956
  if (entry === null) {
957
957
  return null;
958
958
  }
959
- return smithy_client_1.expectString(entry);
959
+ return (0, smithy_client_1.expectString)(entry);
960
960
  });
961
961
  return retVal;
962
962
  };
963
963
  const deserializeAws_json1_1SqlParameter = (output, context) => {
964
964
  return {
965
- name: smithy_client_1.expectString(output.name),
966
- value: smithy_client_1.expectString(output.value),
965
+ name: (0, smithy_client_1.expectString)(output.name),
966
+ value: (0, smithy_client_1.expectString)(output.value),
967
967
  };
968
968
  };
969
969
  const deserializeAws_json1_1SqlParametersList = (output, context) => {
@@ -991,22 +991,22 @@ const deserializeAws_json1_1SqlRecords = (output, context) => {
991
991
  const deserializeAws_json1_1StatementData = (output, context) => {
992
992
  return {
993
993
  CreatedAt: output.CreatedAt !== undefined && output.CreatedAt !== null
994
- ? smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(output.CreatedAt)))
994
+ ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.CreatedAt)))
995
995
  : undefined,
996
- Id: smithy_client_1.expectString(output.Id),
997
- IsBatchStatement: smithy_client_1.expectBoolean(output.IsBatchStatement),
996
+ Id: (0, smithy_client_1.expectString)(output.Id),
997
+ IsBatchStatement: (0, smithy_client_1.expectBoolean)(output.IsBatchStatement),
998
998
  QueryParameters: output.QueryParameters !== undefined && output.QueryParameters !== null
999
999
  ? deserializeAws_json1_1SqlParametersList(output.QueryParameters, context)
1000
1000
  : undefined,
1001
- QueryString: smithy_client_1.expectString(output.QueryString),
1001
+ QueryString: (0, smithy_client_1.expectString)(output.QueryString),
1002
1002
  QueryStrings: output.QueryStrings !== undefined && output.QueryStrings !== null
1003
1003
  ? deserializeAws_json1_1StatementStringList(output.QueryStrings, context)
1004
1004
  : undefined,
1005
- SecretArn: smithy_client_1.expectString(output.SecretArn),
1006
- StatementName: smithy_client_1.expectString(output.StatementName),
1007
- Status: smithy_client_1.expectString(output.Status),
1005
+ SecretArn: (0, smithy_client_1.expectString)(output.SecretArn),
1006
+ StatementName: (0, smithy_client_1.expectString)(output.StatementName),
1007
+ Status: (0, smithy_client_1.expectString)(output.Status),
1008
1008
  UpdatedAt: output.UpdatedAt !== undefined && output.UpdatedAt !== null
1009
- ? smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(output.UpdatedAt)))
1009
+ ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.UpdatedAt)))
1010
1010
  : undefined,
1011
1011
  };
1012
1012
  };
@@ -1028,26 +1028,26 @@ const deserializeAws_json1_1StatementStringList = (output, context) => {
1028
1028
  if (entry === null) {
1029
1029
  return null;
1030
1030
  }
1031
- return smithy_client_1.expectString(entry);
1031
+ return (0, smithy_client_1.expectString)(entry);
1032
1032
  });
1033
1033
  return retVal;
1034
1034
  };
1035
1035
  const deserializeAws_json1_1SubStatementData = (output, context) => {
1036
1036
  return {
1037
1037
  CreatedAt: output.CreatedAt !== undefined && output.CreatedAt !== null
1038
- ? smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(output.CreatedAt)))
1038
+ ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.CreatedAt)))
1039
1039
  : undefined,
1040
- Duration: smithy_client_1.expectLong(output.Duration),
1041
- Error: smithy_client_1.expectString(output.Error),
1042
- HasResultSet: smithy_client_1.expectBoolean(output.HasResultSet),
1043
- Id: smithy_client_1.expectString(output.Id),
1044
- QueryString: smithy_client_1.expectString(output.QueryString),
1045
- RedshiftQueryId: smithy_client_1.expectLong(output.RedshiftQueryId),
1046
- ResultRows: smithy_client_1.expectLong(output.ResultRows),
1047
- ResultSize: smithy_client_1.expectLong(output.ResultSize),
1048
- Status: smithy_client_1.expectString(output.Status),
1040
+ Duration: (0, smithy_client_1.expectLong)(output.Duration),
1041
+ Error: (0, smithy_client_1.expectString)(output.Error),
1042
+ HasResultSet: (0, smithy_client_1.expectBoolean)(output.HasResultSet),
1043
+ Id: (0, smithy_client_1.expectString)(output.Id),
1044
+ QueryString: (0, smithy_client_1.expectString)(output.QueryString),
1045
+ RedshiftQueryId: (0, smithy_client_1.expectLong)(output.RedshiftQueryId),
1046
+ ResultRows: (0, smithy_client_1.expectLong)(output.ResultRows),
1047
+ ResultSize: (0, smithy_client_1.expectLong)(output.ResultSize),
1048
+ Status: (0, smithy_client_1.expectString)(output.Status),
1049
1049
  UpdatedAt: output.UpdatedAt !== undefined && output.UpdatedAt !== null
1050
- ? smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(output.UpdatedAt)))
1050
+ ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.UpdatedAt)))
1051
1051
  : undefined,
1052
1052
  };
1053
1053
  };
@@ -1075,14 +1075,14 @@ const deserializeAws_json1_1TableList = (output, context) => {
1075
1075
  };
1076
1076
  const deserializeAws_json1_1TableMember = (output, context) => {
1077
1077
  return {
1078
- name: smithy_client_1.expectString(output.name),
1079
- schema: smithy_client_1.expectString(output.schema),
1080
- type: smithy_client_1.expectString(output.type),
1078
+ name: (0, smithy_client_1.expectString)(output.name),
1079
+ schema: (0, smithy_client_1.expectString)(output.schema),
1080
+ type: (0, smithy_client_1.expectString)(output.type),
1081
1081
  };
1082
1082
  };
1083
1083
  const deserializeAws_json1_1ValidationException = (output, context) => {
1084
1084
  return {
1085
- Message: smithy_client_1.expectString(output.Message),
1085
+ Message: (0, smithy_client_1.expectString)(output.Message),
1086
1086
  };
1087
1087
  };
1088
1088
  const deserializeMetadata = (output) => {
@@ -17,9 +17,9 @@ const smithy_client_1 = require("@aws-sdk/smithy-client");
17
17
  const util_defaults_mode_browser_1 = require("@aws-sdk/util-defaults-mode-browser");
18
18
  const getRuntimeConfig = (config) => {
19
19
  var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q;
20
- const defaultsMode = util_defaults_mode_browser_1.resolveDefaultsModeConfig(config);
20
+ const defaultsMode = (0, util_defaults_mode_browser_1.resolveDefaultsModeConfig)(config);
21
21
  const defaultConfigProvider = () => defaultsMode().then(smithy_client_1.loadConfigsForDefaultMode);
22
- const clientSharedValues = runtimeConfig_shared_1.getRuntimeConfig(config);
22
+ const clientSharedValues = (0, runtimeConfig_shared_1.getRuntimeConfig)(config);
23
23
  return {
24
24
  ...clientSharedValues,
25
25
  ...config,
@@ -29,9 +29,9 @@ const getRuntimeConfig = (config) => {
29
29
  base64Encoder: (_b = config === null || config === void 0 ? void 0 : config.base64Encoder) !== null && _b !== void 0 ? _b : util_base64_browser_1.toBase64,
30
30
  bodyLengthChecker: (_c = config === null || config === void 0 ? void 0 : config.bodyLengthChecker) !== null && _c !== void 0 ? _c : util_body_length_browser_1.calculateBodyLength,
31
31
  credentialDefaultProvider: (_d = config === null || config === void 0 ? void 0 : config.credentialDefaultProvider) !== null && _d !== void 0 ? _d : ((_) => () => Promise.reject(new Error("Credential is missing"))),
32
- defaultUserAgentProvider: (_e = config === null || config === void 0 ? void 0 : config.defaultUserAgentProvider) !== null && _e !== void 0 ? _e : util_user_agent_browser_1.defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: package_json_1.default.version }),
32
+ defaultUserAgentProvider: (_e = config === null || config === void 0 ? void 0 : config.defaultUserAgentProvider) !== null && _e !== void 0 ? _e : (0, util_user_agent_browser_1.defaultUserAgent)({ serviceId: clientSharedValues.serviceId, clientVersion: package_json_1.default.version }),
33
33
  maxAttempts: (_f = config === null || config === void 0 ? void 0 : config.maxAttempts) !== null && _f !== void 0 ? _f : middleware_retry_1.DEFAULT_MAX_ATTEMPTS,
34
- region: (_g = config === null || config === void 0 ? void 0 : config.region) !== null && _g !== void 0 ? _g : invalid_dependency_1.invalidProvider("Region is missing"),
34
+ region: (_g = config === null || config === void 0 ? void 0 : config.region) !== null && _g !== void 0 ? _g : (0, invalid_dependency_1.invalidProvider)("Region is missing"),
35
35
  requestHandler: (_h = config === null || config === void 0 ? void 0 : config.requestHandler) !== null && _h !== void 0 ? _h : new fetch_http_handler_1.FetchHttpHandler(defaultConfigProvider),
36
36
  retryMode: (_j = config === null || config === void 0 ? void 0 : config.retryMode) !== null && _j !== void 0 ? _j : (async () => (await defaultConfigProvider()).retryMode || middleware_retry_1.DEFAULT_RETRY_MODE),
37
37
  sha256: (_k = config === null || config === void 0 ? void 0 : config.sha256) !== null && _k !== void 0 ? _k : sha256_browser_1.Sha256,
@@ -19,9 +19,9 @@ const smithy_client_1 = require("@aws-sdk/smithy-client");
19
19
  const util_defaults_mode_node_1 = require("@aws-sdk/util-defaults-mode-node");
20
20
  const getRuntimeConfig = (config) => {
21
21
  var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q;
22
- const defaultsMode = util_defaults_mode_node_1.resolveDefaultsModeConfig(config);
22
+ const defaultsMode = (0, util_defaults_mode_node_1.resolveDefaultsModeConfig)(config);
23
23
  const defaultConfigProvider = () => defaultsMode().then(smithy_client_1.loadConfigsForDefaultMode);
24
- const clientSharedValues = runtimeConfig_shared_1.getRuntimeConfig(config);
24
+ const clientSharedValues = (0, runtimeConfig_shared_1.getRuntimeConfig)(config);
25
25
  return {
26
26
  ...clientSharedValues,
27
27
  ...config,
@@ -30,19 +30,19 @@ const getRuntimeConfig = (config) => {
30
30
  base64Decoder: (_a = config === null || config === void 0 ? void 0 : config.base64Decoder) !== null && _a !== void 0 ? _a : util_base64_node_1.fromBase64,
31
31
  base64Encoder: (_b = config === null || config === void 0 ? void 0 : config.base64Encoder) !== null && _b !== void 0 ? _b : util_base64_node_1.toBase64,
32
32
  bodyLengthChecker: (_c = config === null || config === void 0 ? void 0 : config.bodyLengthChecker) !== null && _c !== void 0 ? _c : util_body_length_node_1.calculateBodyLength,
33
- credentialDefaultProvider: (_d = config === null || config === void 0 ? void 0 : config.credentialDefaultProvider) !== null && _d !== void 0 ? _d : client_sts_1.decorateDefaultCredentialProvider(credential_provider_node_1.defaultProvider),
34
- defaultUserAgentProvider: (_e = config === null || config === void 0 ? void 0 : config.defaultUserAgentProvider) !== null && _e !== void 0 ? _e : util_user_agent_node_1.defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: package_json_1.default.version }),
35
- maxAttempts: (_f = config === null || config === void 0 ? void 0 : config.maxAttempts) !== null && _f !== void 0 ? _f : node_config_provider_1.loadConfig(middleware_retry_1.NODE_MAX_ATTEMPT_CONFIG_OPTIONS),
36
- region: (_g = config === null || config === void 0 ? void 0 : config.region) !== null && _g !== void 0 ? _g : node_config_provider_1.loadConfig(config_resolver_1.NODE_REGION_CONFIG_OPTIONS, config_resolver_1.NODE_REGION_CONFIG_FILE_OPTIONS),
33
+ credentialDefaultProvider: (_d = config === null || config === void 0 ? void 0 : config.credentialDefaultProvider) !== null && _d !== void 0 ? _d : (0, client_sts_1.decorateDefaultCredentialProvider)(credential_provider_node_1.defaultProvider),
34
+ defaultUserAgentProvider: (_e = config === null || config === void 0 ? void 0 : config.defaultUserAgentProvider) !== null && _e !== void 0 ? _e : (0, util_user_agent_node_1.defaultUserAgent)({ serviceId: clientSharedValues.serviceId, clientVersion: package_json_1.default.version }),
35
+ maxAttempts: (_f = config === null || config === void 0 ? void 0 : config.maxAttempts) !== null && _f !== void 0 ? _f : (0, node_config_provider_1.loadConfig)(middleware_retry_1.NODE_MAX_ATTEMPT_CONFIG_OPTIONS),
36
+ region: (_g = config === null || config === void 0 ? void 0 : config.region) !== null && _g !== void 0 ? _g : (0, node_config_provider_1.loadConfig)(config_resolver_1.NODE_REGION_CONFIG_OPTIONS, config_resolver_1.NODE_REGION_CONFIG_FILE_OPTIONS),
37
37
  requestHandler: (_h = config === null || config === void 0 ? void 0 : config.requestHandler) !== null && _h !== void 0 ? _h : new node_http_handler_1.NodeHttpHandler(defaultConfigProvider),
38
- retryMode: (_j = config === null || config === void 0 ? void 0 : config.retryMode) !== null && _j !== void 0 ? _j : node_config_provider_1.loadConfig({
38
+ retryMode: (_j = config === null || config === void 0 ? void 0 : config.retryMode) !== null && _j !== void 0 ? _j : (0, node_config_provider_1.loadConfig)({
39
39
  ...middleware_retry_1.NODE_RETRY_MODE_CONFIG_OPTIONS,
40
40
  default: async () => (await defaultConfigProvider()).retryMode || middleware_retry_1.DEFAULT_RETRY_MODE,
41
41
  }),
42
42
  sha256: (_k = config === null || config === void 0 ? void 0 : config.sha256) !== null && _k !== void 0 ? _k : hash_node_1.Hash.bind(null, "sha256"),
43
43
  streamCollector: (_l = config === null || config === void 0 ? void 0 : config.streamCollector) !== null && _l !== void 0 ? _l : node_http_handler_1.streamCollector,
44
- useDualstackEndpoint: (_m = config === null || config === void 0 ? void 0 : config.useDualstackEndpoint) !== null && _m !== void 0 ? _m : node_config_provider_1.loadConfig(config_resolver_1.NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS),
45
- useFipsEndpoint: (_o = config === null || config === void 0 ? void 0 : config.useFipsEndpoint) !== null && _o !== void 0 ? _o : node_config_provider_1.loadConfig(config_resolver_1.NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS),
44
+ useDualstackEndpoint: (_m = config === null || config === void 0 ? void 0 : config.useDualstackEndpoint) !== null && _m !== void 0 ? _m : (0, node_config_provider_1.loadConfig)(config_resolver_1.NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS),
45
+ useFipsEndpoint: (_o = config === null || config === void 0 ? void 0 : config.useFipsEndpoint) !== null && _o !== void 0 ? _o : (0, node_config_provider_1.loadConfig)(config_resolver_1.NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS),
46
46
  utf8Decoder: (_p = config === null || config === void 0 ? void 0 : config.utf8Decoder) !== null && _p !== void 0 ? _p : util_utf8_node_1.fromUtf8,
47
47
  utf8Encoder: (_q = config === null || config === void 0 ? void 0 : config.utf8Encoder) !== null && _q !== void 0 ? _q : util_utf8_node_1.toUtf8,
48
48
  };
@@ -5,7 +5,7 @@ const sha256_js_1 = require("@aws-crypto/sha256-js");
5
5
  const runtimeConfig_browser_1 = require("./runtimeConfig.browser");
6
6
  const getRuntimeConfig = (config) => {
7
7
  var _a;
8
- const browserDefaults = runtimeConfig_browser_1.getRuntimeConfig(config);
8
+ const browserDefaults = (0, runtimeConfig_browser_1.getRuntimeConfig)(config);
9
9
  return {
10
10
  ...browserDefaults,
11
11
  ...config,