@aws-sdk/client-redshift-data 3.121.0 → 3.127.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,14 @@
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.127.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.126.0...v3.127.0) (2022-07-11)
7
+
8
+ **Note:** Version bump only for package @aws-sdk/client-redshift-data
9
+
10
+
11
+
12
+
13
+
6
14
  # [3.121.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.120.0...v3.121.0) (2022-06-30)
7
15
 
8
16
 
@@ -600,114 +600,104 @@ const deserializeAws_json1_1ValidationExceptionResponse = async (parsedOutput, c
600
600
  };
601
601
  const serializeAws_json1_1BatchExecuteStatementInput = (input, context) => {
602
602
  return {
603
- ...(input.ClusterIdentifier !== undefined &&
604
- input.ClusterIdentifier !== null && { ClusterIdentifier: input.ClusterIdentifier }),
605
- ...(input.Database !== undefined && input.Database !== null && { Database: input.Database }),
606
- ...(input.DbUser !== undefined && input.DbUser !== null && { DbUser: input.DbUser }),
607
- ...(input.SecretArn !== undefined && input.SecretArn !== null && { SecretArn: input.SecretArn }),
608
- ...(input.Sqls !== undefined && input.Sqls !== null && { Sqls: serializeAws_json1_1SqlList(input.Sqls, context) }),
609
- ...(input.StatementName !== undefined && input.StatementName !== null && { StatementName: input.StatementName }),
610
- ...(input.WithEvent !== undefined && input.WithEvent !== null && { WithEvent: input.WithEvent }),
611
- ...(input.WorkgroupName !== undefined && input.WorkgroupName !== null && { WorkgroupName: input.WorkgroupName }),
603
+ ...(input.ClusterIdentifier != null && { ClusterIdentifier: input.ClusterIdentifier }),
604
+ ...(input.Database != null && { Database: input.Database }),
605
+ ...(input.DbUser != null && { DbUser: input.DbUser }),
606
+ ...(input.SecretArn != null && { SecretArn: input.SecretArn }),
607
+ ...(input.Sqls != null && { Sqls: serializeAws_json1_1SqlList(input.Sqls, context) }),
608
+ ...(input.StatementName != null && { StatementName: input.StatementName }),
609
+ ...(input.WithEvent != null && { WithEvent: input.WithEvent }),
610
+ ...(input.WorkgroupName != null && { WorkgroupName: input.WorkgroupName }),
612
611
  };
613
612
  };
614
613
  const serializeAws_json1_1CancelStatementRequest = (input, context) => {
615
614
  return {
616
- ...(input.Id !== undefined && input.Id !== null && { Id: input.Id }),
615
+ ...(input.Id != null && { Id: input.Id }),
617
616
  };
618
617
  };
619
618
  const serializeAws_json1_1DescribeStatementRequest = (input, context) => {
620
619
  return {
621
- ...(input.Id !== undefined && input.Id !== null && { Id: input.Id }),
620
+ ...(input.Id != null && { Id: input.Id }),
622
621
  };
623
622
  };
624
623
  const serializeAws_json1_1DescribeTableRequest = (input, context) => {
625
624
  return {
626
- ...(input.ClusterIdentifier !== undefined &&
627
- input.ClusterIdentifier !== null && { ClusterIdentifier: input.ClusterIdentifier }),
628
- ...(input.ConnectedDatabase !== undefined &&
629
- input.ConnectedDatabase !== null && { ConnectedDatabase: input.ConnectedDatabase }),
630
- ...(input.Database !== undefined && input.Database !== null && { Database: input.Database }),
631
- ...(input.DbUser !== undefined && input.DbUser !== null && { DbUser: input.DbUser }),
632
- ...(input.MaxResults !== undefined && input.MaxResults !== null && { MaxResults: input.MaxResults }),
633
- ...(input.NextToken !== undefined && input.NextToken !== null && { NextToken: input.NextToken }),
634
- ...(input.Schema !== undefined && input.Schema !== null && { Schema: input.Schema }),
635
- ...(input.SecretArn !== undefined && input.SecretArn !== null && { SecretArn: input.SecretArn }),
636
- ...(input.Table !== undefined && input.Table !== null && { Table: input.Table }),
637
- ...(input.WorkgroupName !== undefined && input.WorkgroupName !== null && { WorkgroupName: input.WorkgroupName }),
625
+ ...(input.ClusterIdentifier != null && { ClusterIdentifier: input.ClusterIdentifier }),
626
+ ...(input.ConnectedDatabase != null && { ConnectedDatabase: input.ConnectedDatabase }),
627
+ ...(input.Database != null && { Database: input.Database }),
628
+ ...(input.DbUser != null && { DbUser: input.DbUser }),
629
+ ...(input.MaxResults != null && { MaxResults: input.MaxResults }),
630
+ ...(input.NextToken != null && { NextToken: input.NextToken }),
631
+ ...(input.Schema != null && { Schema: input.Schema }),
632
+ ...(input.SecretArn != null && { SecretArn: input.SecretArn }),
633
+ ...(input.Table != null && { Table: input.Table }),
634
+ ...(input.WorkgroupName != null && { WorkgroupName: input.WorkgroupName }),
638
635
  };
639
636
  };
640
637
  const serializeAws_json1_1ExecuteStatementInput = (input, context) => {
641
638
  return {
642
- ...(input.ClusterIdentifier !== undefined &&
643
- input.ClusterIdentifier !== null && { ClusterIdentifier: input.ClusterIdentifier }),
644
- ...(input.Database !== undefined && input.Database !== null && { Database: input.Database }),
645
- ...(input.DbUser !== undefined && input.DbUser !== null && { DbUser: input.DbUser }),
646
- ...(input.Parameters !== undefined &&
647
- input.Parameters !== null && { Parameters: serializeAws_json1_1SqlParametersList(input.Parameters, context) }),
648
- ...(input.SecretArn !== undefined && input.SecretArn !== null && { SecretArn: input.SecretArn }),
649
- ...(input.Sql !== undefined && input.Sql !== null && { Sql: input.Sql }),
650
- ...(input.StatementName !== undefined && input.StatementName !== null && { StatementName: input.StatementName }),
651
- ...(input.WithEvent !== undefined && input.WithEvent !== null && { WithEvent: input.WithEvent }),
652
- ...(input.WorkgroupName !== undefined && input.WorkgroupName !== null && { WorkgroupName: input.WorkgroupName }),
639
+ ...(input.ClusterIdentifier != null && { ClusterIdentifier: input.ClusterIdentifier }),
640
+ ...(input.Database != null && { Database: input.Database }),
641
+ ...(input.DbUser != null && { DbUser: input.DbUser }),
642
+ ...(input.Parameters != null && { Parameters: serializeAws_json1_1SqlParametersList(input.Parameters, context) }),
643
+ ...(input.SecretArn != null && { SecretArn: input.SecretArn }),
644
+ ...(input.Sql != null && { Sql: input.Sql }),
645
+ ...(input.StatementName != null && { StatementName: input.StatementName }),
646
+ ...(input.WithEvent != null && { WithEvent: input.WithEvent }),
647
+ ...(input.WorkgroupName != null && { WorkgroupName: input.WorkgroupName }),
653
648
  };
654
649
  };
655
650
  const serializeAws_json1_1GetStatementResultRequest = (input, context) => {
656
651
  return {
657
- ...(input.Id !== undefined && input.Id !== null && { Id: input.Id }),
658
- ...(input.NextToken !== undefined && input.NextToken !== null && { NextToken: input.NextToken }),
652
+ ...(input.Id != null && { Id: input.Id }),
653
+ ...(input.NextToken != null && { NextToken: input.NextToken }),
659
654
  };
660
655
  };
661
656
  const serializeAws_json1_1ListDatabasesRequest = (input, context) => {
662
657
  return {
663
- ...(input.ClusterIdentifier !== undefined &&
664
- input.ClusterIdentifier !== null && { ClusterIdentifier: input.ClusterIdentifier }),
665
- ...(input.Database !== undefined && input.Database !== null && { Database: input.Database }),
666
- ...(input.DbUser !== undefined && input.DbUser !== null && { DbUser: input.DbUser }),
667
- ...(input.MaxResults !== undefined && input.MaxResults !== null && { MaxResults: input.MaxResults }),
668
- ...(input.NextToken !== undefined && input.NextToken !== null && { NextToken: input.NextToken }),
669
- ...(input.SecretArn !== undefined && input.SecretArn !== null && { SecretArn: input.SecretArn }),
670
- ...(input.WorkgroupName !== undefined && input.WorkgroupName !== null && { WorkgroupName: input.WorkgroupName }),
658
+ ...(input.ClusterIdentifier != null && { ClusterIdentifier: input.ClusterIdentifier }),
659
+ ...(input.Database != null && { Database: input.Database }),
660
+ ...(input.DbUser != null && { DbUser: input.DbUser }),
661
+ ...(input.MaxResults != null && { MaxResults: input.MaxResults }),
662
+ ...(input.NextToken != null && { NextToken: input.NextToken }),
663
+ ...(input.SecretArn != null && { SecretArn: input.SecretArn }),
664
+ ...(input.WorkgroupName != null && { WorkgroupName: input.WorkgroupName }),
671
665
  };
672
666
  };
673
667
  const serializeAws_json1_1ListSchemasRequest = (input, context) => {
674
668
  return {
675
- ...(input.ClusterIdentifier !== undefined &&
676
- input.ClusterIdentifier !== null && { ClusterIdentifier: input.ClusterIdentifier }),
677
- ...(input.ConnectedDatabase !== undefined &&
678
- input.ConnectedDatabase !== null && { ConnectedDatabase: input.ConnectedDatabase }),
679
- ...(input.Database !== undefined && input.Database !== null && { Database: input.Database }),
680
- ...(input.DbUser !== undefined && input.DbUser !== null && { DbUser: input.DbUser }),
681
- ...(input.MaxResults !== undefined && input.MaxResults !== null && { MaxResults: input.MaxResults }),
682
- ...(input.NextToken !== undefined && input.NextToken !== null && { NextToken: input.NextToken }),
683
- ...(input.SchemaPattern !== undefined && input.SchemaPattern !== null && { SchemaPattern: input.SchemaPattern }),
684
- ...(input.SecretArn !== undefined && input.SecretArn !== null && { SecretArn: input.SecretArn }),
685
- ...(input.WorkgroupName !== undefined && input.WorkgroupName !== null && { WorkgroupName: input.WorkgroupName }),
669
+ ...(input.ClusterIdentifier != null && { ClusterIdentifier: input.ClusterIdentifier }),
670
+ ...(input.ConnectedDatabase != null && { ConnectedDatabase: input.ConnectedDatabase }),
671
+ ...(input.Database != null && { Database: input.Database }),
672
+ ...(input.DbUser != null && { DbUser: input.DbUser }),
673
+ ...(input.MaxResults != null && { MaxResults: input.MaxResults }),
674
+ ...(input.NextToken != null && { NextToken: input.NextToken }),
675
+ ...(input.SchemaPattern != null && { SchemaPattern: input.SchemaPattern }),
676
+ ...(input.SecretArn != null && { SecretArn: input.SecretArn }),
677
+ ...(input.WorkgroupName != null && { WorkgroupName: input.WorkgroupName }),
686
678
  };
687
679
  };
688
680
  const serializeAws_json1_1ListStatementsRequest = (input, context) => {
689
681
  return {
690
- ...(input.MaxResults !== undefined && input.MaxResults !== null && { MaxResults: input.MaxResults }),
691
- ...(input.NextToken !== undefined && input.NextToken !== null && { NextToken: input.NextToken }),
692
- ...(input.RoleLevel !== undefined && input.RoleLevel !== null && { RoleLevel: input.RoleLevel }),
693
- ...(input.StatementName !== undefined && input.StatementName !== null && { StatementName: input.StatementName }),
694
- ...(input.Status !== undefined && input.Status !== null && { Status: input.Status }),
682
+ ...(input.MaxResults != null && { MaxResults: input.MaxResults }),
683
+ ...(input.NextToken != null && { NextToken: input.NextToken }),
684
+ ...(input.RoleLevel != null && { RoleLevel: input.RoleLevel }),
685
+ ...(input.StatementName != null && { StatementName: input.StatementName }),
686
+ ...(input.Status != null && { Status: input.Status }),
695
687
  };
696
688
  };
697
689
  const serializeAws_json1_1ListTablesRequest = (input, context) => {
698
690
  return {
699
- ...(input.ClusterIdentifier !== undefined &&
700
- input.ClusterIdentifier !== null && { ClusterIdentifier: input.ClusterIdentifier }),
701
- ...(input.ConnectedDatabase !== undefined &&
702
- input.ConnectedDatabase !== null && { ConnectedDatabase: input.ConnectedDatabase }),
703
- ...(input.Database !== undefined && input.Database !== null && { Database: input.Database }),
704
- ...(input.DbUser !== undefined && input.DbUser !== null && { DbUser: input.DbUser }),
705
- ...(input.MaxResults !== undefined && input.MaxResults !== null && { MaxResults: input.MaxResults }),
706
- ...(input.NextToken !== undefined && input.NextToken !== null && { NextToken: input.NextToken }),
707
- ...(input.SchemaPattern !== undefined && input.SchemaPattern !== null && { SchemaPattern: input.SchemaPattern }),
708
- ...(input.SecretArn !== undefined && input.SecretArn !== null && { SecretArn: input.SecretArn }),
709
- ...(input.TablePattern !== undefined && input.TablePattern !== null && { TablePattern: input.TablePattern }),
710
- ...(input.WorkgroupName !== undefined && input.WorkgroupName !== null && { WorkgroupName: input.WorkgroupName }),
691
+ ...(input.ClusterIdentifier != null && { ClusterIdentifier: input.ClusterIdentifier }),
692
+ ...(input.ConnectedDatabase != null && { ConnectedDatabase: input.ConnectedDatabase }),
693
+ ...(input.Database != null && { Database: input.Database }),
694
+ ...(input.DbUser != null && { DbUser: input.DbUser }),
695
+ ...(input.MaxResults != null && { MaxResults: input.MaxResults }),
696
+ ...(input.NextToken != null && { NextToken: input.NextToken }),
697
+ ...(input.SchemaPattern != null && { SchemaPattern: input.SchemaPattern }),
698
+ ...(input.SecretArn != null && { SecretArn: input.SecretArn }),
699
+ ...(input.TablePattern != null && { TablePattern: input.TablePattern }),
700
+ ...(input.WorkgroupName != null && { WorkgroupName: input.WorkgroupName }),
711
701
  };
712
702
  };
713
703
  const serializeAws_json1_1SqlList = (input, context) => {
@@ -722,8 +712,8 @@ const serializeAws_json1_1SqlList = (input, context) => {
722
712
  };
723
713
  const serializeAws_json1_1SqlParameter = (input, context) => {
724
714
  return {
725
- ...(input.name !== undefined && input.name !== null && { name: input.name }),
726
- ...(input.value !== undefined && input.value !== null && { value: input.value }),
715
+ ...(input.name != null && { name: input.name }),
716
+ ...(input.value != null && { value: input.value }),
727
717
  };
728
718
  };
729
719
  const serializeAws_json1_1SqlParametersList = (input, context) => {
@@ -750,9 +740,7 @@ const deserializeAws_json1_1BatchExecuteStatementException = (output, context) =
750
740
  const deserializeAws_json1_1BatchExecuteStatementOutput = (output, context) => {
751
741
  return {
752
742
  ClusterIdentifier: (0, smithy_client_1.expectString)(output.ClusterIdentifier),
753
- CreatedAt: output.CreatedAt !== undefined && output.CreatedAt !== null
754
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.CreatedAt)))
755
- : undefined,
743
+ CreatedAt: output.CreatedAt != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.CreatedAt))) : undefined,
756
744
  Database: (0, smithy_client_1.expectString)(output.Database),
757
745
  DbUser: (0, smithy_client_1.expectString)(output.DbUser),
758
746
  Id: (0, smithy_client_1.expectString)(output.Id),
@@ -823,16 +811,14 @@ const deserializeAws_json1_1DatabaseList = (output, context) => {
823
811
  const deserializeAws_json1_1DescribeStatementResponse = (output, context) => {
824
812
  return {
825
813
  ClusterIdentifier: (0, smithy_client_1.expectString)(output.ClusterIdentifier),
826
- CreatedAt: output.CreatedAt !== undefined && output.CreatedAt !== null
827
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.CreatedAt)))
828
- : undefined,
814
+ CreatedAt: output.CreatedAt != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.CreatedAt))) : undefined,
829
815
  Database: (0, smithy_client_1.expectString)(output.Database),
830
816
  DbUser: (0, smithy_client_1.expectString)(output.DbUser),
831
817
  Duration: (0, smithy_client_1.expectLong)(output.Duration),
832
818
  Error: (0, smithy_client_1.expectString)(output.Error),
833
819
  HasResultSet: (0, smithy_client_1.expectBoolean)(output.HasResultSet),
834
820
  Id: (0, smithy_client_1.expectString)(output.Id),
835
- QueryParameters: output.QueryParameters !== undefined && output.QueryParameters !== null
821
+ QueryParameters: output.QueryParameters != null
836
822
  ? deserializeAws_json1_1SqlParametersList(output.QueryParameters, context)
837
823
  : undefined,
838
824
  QueryString: (0, smithy_client_1.expectString)(output.QueryString),
@@ -842,20 +828,14 @@ const deserializeAws_json1_1DescribeStatementResponse = (output, context) => {
842
828
  ResultSize: (0, smithy_client_1.expectLong)(output.ResultSize),
843
829
  SecretArn: (0, smithy_client_1.expectString)(output.SecretArn),
844
830
  Status: (0, smithy_client_1.expectString)(output.Status),
845
- SubStatements: output.SubStatements !== undefined && output.SubStatements !== null
846
- ? deserializeAws_json1_1SubStatementList(output.SubStatements, context)
847
- : undefined,
848
- UpdatedAt: output.UpdatedAt !== undefined && output.UpdatedAt !== null
849
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.UpdatedAt)))
850
- : undefined,
831
+ SubStatements: output.SubStatements != null ? deserializeAws_json1_1SubStatementList(output.SubStatements, context) : undefined,
832
+ UpdatedAt: output.UpdatedAt != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.UpdatedAt))) : undefined,
851
833
  WorkgroupName: (0, smithy_client_1.expectString)(output.WorkgroupName),
852
834
  };
853
835
  };
854
836
  const deserializeAws_json1_1DescribeTableResponse = (output, context) => {
855
837
  return {
856
- ColumnList: output.ColumnList !== undefined && output.ColumnList !== null
857
- ? deserializeAws_json1_1ColumnList(output.ColumnList, context)
858
- : undefined,
838
+ ColumnList: output.ColumnList != null ? deserializeAws_json1_1ColumnList(output.ColumnList, context) : undefined,
859
839
  NextToken: (0, smithy_client_1.expectString)(output.NextToken),
860
840
  TableName: (0, smithy_client_1.expectString)(output.TableName),
861
841
  };
@@ -869,9 +849,7 @@ const deserializeAws_json1_1ExecuteStatementException = (output, context) => {
869
849
  const deserializeAws_json1_1ExecuteStatementOutput = (output, context) => {
870
850
  return {
871
851
  ClusterIdentifier: (0, smithy_client_1.expectString)(output.ClusterIdentifier),
872
- CreatedAt: output.CreatedAt !== undefined && output.CreatedAt !== null
873
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.CreatedAt)))
874
- : undefined,
852
+ CreatedAt: output.CreatedAt != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.CreatedAt))) : undefined,
875
853
  Database: (0, smithy_client_1.expectString)(output.Database),
876
854
  DbUser: (0, smithy_client_1.expectString)(output.DbUser),
877
855
  Id: (0, smithy_client_1.expectString)(output.Id),
@@ -915,13 +893,11 @@ const deserializeAws_json1_1FieldList = (output, context) => {
915
893
  };
916
894
  const deserializeAws_json1_1GetStatementResultResponse = (output, context) => {
917
895
  return {
918
- ColumnMetadata: output.ColumnMetadata !== undefined && output.ColumnMetadata !== null
896
+ ColumnMetadata: output.ColumnMetadata != null
919
897
  ? deserializeAws_json1_1ColumnMetadataList(output.ColumnMetadata, context)
920
898
  : undefined,
921
899
  NextToken: (0, smithy_client_1.expectString)(output.NextToken),
922
- Records: output.Records !== undefined && output.Records !== null
923
- ? deserializeAws_json1_1SqlRecords(output.Records, context)
924
- : undefined,
900
+ Records: output.Records != null ? deserializeAws_json1_1SqlRecords(output.Records, context) : undefined,
925
901
  TotalNumRows: (0, smithy_client_1.expectLong)(output.TotalNumRows),
926
902
  };
927
903
  };
@@ -932,34 +908,26 @@ const deserializeAws_json1_1InternalServerException = (output, context) => {
932
908
  };
933
909
  const deserializeAws_json1_1ListDatabasesResponse = (output, context) => {
934
910
  return {
935
- Databases: output.Databases !== undefined && output.Databases !== null
936
- ? deserializeAws_json1_1DatabaseList(output.Databases, context)
937
- : undefined,
911
+ Databases: output.Databases != null ? deserializeAws_json1_1DatabaseList(output.Databases, context) : undefined,
938
912
  NextToken: (0, smithy_client_1.expectString)(output.NextToken),
939
913
  };
940
914
  };
941
915
  const deserializeAws_json1_1ListSchemasResponse = (output, context) => {
942
916
  return {
943
917
  NextToken: (0, smithy_client_1.expectString)(output.NextToken),
944
- Schemas: output.Schemas !== undefined && output.Schemas !== null
945
- ? deserializeAws_json1_1SchemaList(output.Schemas, context)
946
- : undefined,
918
+ Schemas: output.Schemas != null ? deserializeAws_json1_1SchemaList(output.Schemas, context) : undefined,
947
919
  };
948
920
  };
949
921
  const deserializeAws_json1_1ListStatementsResponse = (output, context) => {
950
922
  return {
951
923
  NextToken: (0, smithy_client_1.expectString)(output.NextToken),
952
- Statements: output.Statements !== undefined && output.Statements !== null
953
- ? deserializeAws_json1_1StatementList(output.Statements, context)
954
- : undefined,
924
+ Statements: output.Statements != null ? deserializeAws_json1_1StatementList(output.Statements, context) : undefined,
955
925
  };
956
926
  };
957
927
  const deserializeAws_json1_1ListTablesResponse = (output, context) => {
958
928
  return {
959
929
  NextToken: (0, smithy_client_1.expectString)(output.NextToken),
960
- Tables: output.Tables !== undefined && output.Tables !== null
961
- ? deserializeAws_json1_1TableList(output.Tables, context)
962
- : undefined,
930
+ Tables: output.Tables != null ? deserializeAws_json1_1TableList(output.Tables, context) : undefined,
963
931
  };
964
932
  };
965
933
  const deserializeAws_json1_1ResourceNotFoundException = (output, context) => {
@@ -1009,24 +977,18 @@ const deserializeAws_json1_1SqlRecords = (output, context) => {
1009
977
  };
1010
978
  const deserializeAws_json1_1StatementData = (output, context) => {
1011
979
  return {
1012
- CreatedAt: output.CreatedAt !== undefined && output.CreatedAt !== null
1013
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.CreatedAt)))
1014
- : undefined,
980
+ CreatedAt: output.CreatedAt != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.CreatedAt))) : undefined,
1015
981
  Id: (0, smithy_client_1.expectString)(output.Id),
1016
982
  IsBatchStatement: (0, smithy_client_1.expectBoolean)(output.IsBatchStatement),
1017
- QueryParameters: output.QueryParameters !== undefined && output.QueryParameters !== null
983
+ QueryParameters: output.QueryParameters != null
1018
984
  ? deserializeAws_json1_1SqlParametersList(output.QueryParameters, context)
1019
985
  : undefined,
1020
986
  QueryString: (0, smithy_client_1.expectString)(output.QueryString),
1021
- QueryStrings: output.QueryStrings !== undefined && output.QueryStrings !== null
1022
- ? deserializeAws_json1_1StatementStringList(output.QueryStrings, context)
1023
- : undefined,
987
+ QueryStrings: output.QueryStrings != null ? deserializeAws_json1_1StatementStringList(output.QueryStrings, context) : undefined,
1024
988
  SecretArn: (0, smithy_client_1.expectString)(output.SecretArn),
1025
989
  StatementName: (0, smithy_client_1.expectString)(output.StatementName),
1026
990
  Status: (0, smithy_client_1.expectString)(output.Status),
1027
- UpdatedAt: output.UpdatedAt !== undefined && output.UpdatedAt !== null
1028
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.UpdatedAt)))
1029
- : undefined,
991
+ UpdatedAt: output.UpdatedAt != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.UpdatedAt))) : undefined,
1030
992
  };
1031
993
  };
1032
994
  const deserializeAws_json1_1StatementList = (output, context) => {
@@ -1053,9 +1015,7 @@ const deserializeAws_json1_1StatementStringList = (output, context) => {
1053
1015
  };
1054
1016
  const deserializeAws_json1_1SubStatementData = (output, context) => {
1055
1017
  return {
1056
- CreatedAt: output.CreatedAt !== undefined && output.CreatedAt !== null
1057
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.CreatedAt)))
1058
- : undefined,
1018
+ CreatedAt: output.CreatedAt != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.CreatedAt))) : undefined,
1059
1019
  Duration: (0, smithy_client_1.expectLong)(output.Duration),
1060
1020
  Error: (0, smithy_client_1.expectString)(output.Error),
1061
1021
  HasResultSet: (0, smithy_client_1.expectBoolean)(output.HasResultSet),
@@ -1065,9 +1025,7 @@ const deserializeAws_json1_1SubStatementData = (output, context) => {
1065
1025
  ResultRows: (0, smithy_client_1.expectLong)(output.ResultRows),
1066
1026
  ResultSize: (0, smithy_client_1.expectLong)(output.ResultSize),
1067
1027
  Status: (0, smithy_client_1.expectString)(output.Status),
1068
- UpdatedAt: output.UpdatedAt !== undefined && output.UpdatedAt !== null
1069
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.UpdatedAt)))
1070
- : undefined,
1028
+ UpdatedAt: output.UpdatedAt != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.UpdatedAt))) : undefined,
1071
1029
  };
1072
1030
  };
1073
1031
  const deserializeAws_json1_1SubStatementList = (output, context) => {
@@ -767,44 +767,34 @@ var deserializeAws_json1_1ValidationExceptionResponse = function (parsedOutput,
767
767
  });
768
768
  }); };
769
769
  var serializeAws_json1_1BatchExecuteStatementInput = function (input, context) {
770
- return __assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.ClusterIdentifier !== undefined &&
771
- input.ClusterIdentifier !== null && { ClusterIdentifier: input.ClusterIdentifier })), (input.Database !== undefined && input.Database !== null && { Database: input.Database })), (input.DbUser !== undefined && input.DbUser !== null && { DbUser: input.DbUser })), (input.SecretArn !== undefined && input.SecretArn !== null && { SecretArn: input.SecretArn })), (input.Sqls !== undefined && input.Sqls !== null && { Sqls: serializeAws_json1_1SqlList(input.Sqls, context) })), (input.StatementName !== undefined && input.StatementName !== null && { StatementName: input.StatementName })), (input.WithEvent !== undefined && input.WithEvent !== null && { WithEvent: input.WithEvent })), (input.WorkgroupName !== undefined && input.WorkgroupName !== null && { WorkgroupName: input.WorkgroupName }));
770
+ return __assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.ClusterIdentifier != null && { ClusterIdentifier: input.ClusterIdentifier })), (input.Database != null && { Database: input.Database })), (input.DbUser != null && { DbUser: input.DbUser })), (input.SecretArn != null && { SecretArn: input.SecretArn })), (input.Sqls != null && { Sqls: serializeAws_json1_1SqlList(input.Sqls, context) })), (input.StatementName != null && { StatementName: input.StatementName })), (input.WithEvent != null && { WithEvent: input.WithEvent })), (input.WorkgroupName != null && { WorkgroupName: input.WorkgroupName }));
772
771
  };
773
772
  var serializeAws_json1_1CancelStatementRequest = function (input, context) {
774
- return __assign({}, (input.Id !== undefined && input.Id !== null && { Id: input.Id }));
773
+ return __assign({}, (input.Id != null && { Id: input.Id }));
775
774
  };
776
775
  var serializeAws_json1_1DescribeStatementRequest = function (input, context) {
777
- return __assign({}, (input.Id !== undefined && input.Id !== null && { Id: input.Id }));
776
+ return __assign({}, (input.Id != null && { Id: input.Id }));
778
777
  };
779
778
  var serializeAws_json1_1DescribeTableRequest = function (input, context) {
780
- return __assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.ClusterIdentifier !== undefined &&
781
- input.ClusterIdentifier !== null && { ClusterIdentifier: input.ClusterIdentifier })), (input.ConnectedDatabase !== undefined &&
782
- input.ConnectedDatabase !== null && { ConnectedDatabase: input.ConnectedDatabase })), (input.Database !== undefined && input.Database !== null && { Database: input.Database })), (input.DbUser !== undefined && input.DbUser !== null && { DbUser: input.DbUser })), (input.MaxResults !== undefined && input.MaxResults !== null && { MaxResults: input.MaxResults })), (input.NextToken !== undefined && input.NextToken !== null && { NextToken: input.NextToken })), (input.Schema !== undefined && input.Schema !== null && { Schema: input.Schema })), (input.SecretArn !== undefined && input.SecretArn !== null && { SecretArn: input.SecretArn })), (input.Table !== undefined && input.Table !== null && { Table: input.Table })), (input.WorkgroupName !== undefined && input.WorkgroupName !== null && { WorkgroupName: input.WorkgroupName }));
779
+ return __assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.ClusterIdentifier != null && { ClusterIdentifier: input.ClusterIdentifier })), (input.ConnectedDatabase != null && { ConnectedDatabase: input.ConnectedDatabase })), (input.Database != null && { Database: input.Database })), (input.DbUser != null && { DbUser: input.DbUser })), (input.MaxResults != null && { MaxResults: input.MaxResults })), (input.NextToken != null && { NextToken: input.NextToken })), (input.Schema != null && { Schema: input.Schema })), (input.SecretArn != null && { SecretArn: input.SecretArn })), (input.Table != null && { Table: input.Table })), (input.WorkgroupName != null && { WorkgroupName: input.WorkgroupName }));
783
780
  };
784
781
  var serializeAws_json1_1ExecuteStatementInput = function (input, context) {
785
- return __assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.ClusterIdentifier !== undefined &&
786
- input.ClusterIdentifier !== null && { ClusterIdentifier: input.ClusterIdentifier })), (input.Database !== undefined && input.Database !== null && { Database: input.Database })), (input.DbUser !== undefined && input.DbUser !== null && { DbUser: input.DbUser })), (input.Parameters !== undefined &&
787
- input.Parameters !== null && { Parameters: serializeAws_json1_1SqlParametersList(input.Parameters, context) })), (input.SecretArn !== undefined && input.SecretArn !== null && { SecretArn: input.SecretArn })), (input.Sql !== undefined && input.Sql !== null && { Sql: input.Sql })), (input.StatementName !== undefined && input.StatementName !== null && { StatementName: input.StatementName })), (input.WithEvent !== undefined && input.WithEvent !== null && { WithEvent: input.WithEvent })), (input.WorkgroupName !== undefined && input.WorkgroupName !== null && { WorkgroupName: input.WorkgroupName }));
782
+ return __assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.ClusterIdentifier != null && { ClusterIdentifier: input.ClusterIdentifier })), (input.Database != null && { Database: input.Database })), (input.DbUser != null && { DbUser: input.DbUser })), (input.Parameters != null && { Parameters: serializeAws_json1_1SqlParametersList(input.Parameters, context) })), (input.SecretArn != null && { SecretArn: input.SecretArn })), (input.Sql != null && { Sql: input.Sql })), (input.StatementName != null && { StatementName: input.StatementName })), (input.WithEvent != null && { WithEvent: input.WithEvent })), (input.WorkgroupName != null && { WorkgroupName: input.WorkgroupName }));
788
783
  };
789
784
  var serializeAws_json1_1GetStatementResultRequest = function (input, context) {
790
- return __assign(__assign({}, (input.Id !== undefined && input.Id !== null && { Id: input.Id })), (input.NextToken !== undefined && input.NextToken !== null && { NextToken: input.NextToken }));
785
+ return __assign(__assign({}, (input.Id != null && { Id: input.Id })), (input.NextToken != null && { NextToken: input.NextToken }));
791
786
  };
792
787
  var serializeAws_json1_1ListDatabasesRequest = function (input, context) {
793
- return __assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.ClusterIdentifier !== undefined &&
794
- input.ClusterIdentifier !== null && { ClusterIdentifier: input.ClusterIdentifier })), (input.Database !== undefined && input.Database !== null && { Database: input.Database })), (input.DbUser !== undefined && input.DbUser !== null && { DbUser: input.DbUser })), (input.MaxResults !== undefined && input.MaxResults !== null && { MaxResults: input.MaxResults })), (input.NextToken !== undefined && input.NextToken !== null && { NextToken: input.NextToken })), (input.SecretArn !== undefined && input.SecretArn !== null && { SecretArn: input.SecretArn })), (input.WorkgroupName !== undefined && input.WorkgroupName !== null && { WorkgroupName: input.WorkgroupName }));
788
+ return __assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.ClusterIdentifier != null && { ClusterIdentifier: input.ClusterIdentifier })), (input.Database != null && { Database: input.Database })), (input.DbUser != null && { DbUser: input.DbUser })), (input.MaxResults != null && { MaxResults: input.MaxResults })), (input.NextToken != null && { NextToken: input.NextToken })), (input.SecretArn != null && { SecretArn: input.SecretArn })), (input.WorkgroupName != null && { WorkgroupName: input.WorkgroupName }));
795
789
  };
796
790
  var serializeAws_json1_1ListSchemasRequest = function (input, context) {
797
- return __assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.ClusterIdentifier !== undefined &&
798
- input.ClusterIdentifier !== null && { ClusterIdentifier: input.ClusterIdentifier })), (input.ConnectedDatabase !== undefined &&
799
- input.ConnectedDatabase !== null && { ConnectedDatabase: input.ConnectedDatabase })), (input.Database !== undefined && input.Database !== null && { Database: input.Database })), (input.DbUser !== undefined && input.DbUser !== null && { DbUser: input.DbUser })), (input.MaxResults !== undefined && input.MaxResults !== null && { MaxResults: input.MaxResults })), (input.NextToken !== undefined && input.NextToken !== null && { NextToken: input.NextToken })), (input.SchemaPattern !== undefined && input.SchemaPattern !== null && { SchemaPattern: input.SchemaPattern })), (input.SecretArn !== undefined && input.SecretArn !== null && { SecretArn: input.SecretArn })), (input.WorkgroupName !== undefined && input.WorkgroupName !== null && { WorkgroupName: input.WorkgroupName }));
791
+ return __assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.ClusterIdentifier != null && { ClusterIdentifier: input.ClusterIdentifier })), (input.ConnectedDatabase != null && { ConnectedDatabase: input.ConnectedDatabase })), (input.Database != null && { Database: input.Database })), (input.DbUser != null && { DbUser: input.DbUser })), (input.MaxResults != null && { MaxResults: input.MaxResults })), (input.NextToken != null && { NextToken: input.NextToken })), (input.SchemaPattern != null && { SchemaPattern: input.SchemaPattern })), (input.SecretArn != null && { SecretArn: input.SecretArn })), (input.WorkgroupName != null && { WorkgroupName: input.WorkgroupName }));
800
792
  };
801
793
  var serializeAws_json1_1ListStatementsRequest = function (input, context) {
802
- return __assign(__assign(__assign(__assign(__assign({}, (input.MaxResults !== undefined && input.MaxResults !== null && { MaxResults: input.MaxResults })), (input.NextToken !== undefined && input.NextToken !== null && { NextToken: input.NextToken })), (input.RoleLevel !== undefined && input.RoleLevel !== null && { RoleLevel: input.RoleLevel })), (input.StatementName !== undefined && input.StatementName !== null && { StatementName: input.StatementName })), (input.Status !== undefined && input.Status !== null && { Status: input.Status }));
794
+ return __assign(__assign(__assign(__assign(__assign({}, (input.MaxResults != null && { MaxResults: input.MaxResults })), (input.NextToken != null && { NextToken: input.NextToken })), (input.RoleLevel != null && { RoleLevel: input.RoleLevel })), (input.StatementName != null && { StatementName: input.StatementName })), (input.Status != null && { Status: input.Status }));
803
795
  };
804
796
  var serializeAws_json1_1ListTablesRequest = function (input, context) {
805
- return __assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.ClusterIdentifier !== undefined &&
806
- input.ClusterIdentifier !== null && { ClusterIdentifier: input.ClusterIdentifier })), (input.ConnectedDatabase !== undefined &&
807
- input.ConnectedDatabase !== null && { ConnectedDatabase: input.ConnectedDatabase })), (input.Database !== undefined && input.Database !== null && { Database: input.Database })), (input.DbUser !== undefined && input.DbUser !== null && { DbUser: input.DbUser })), (input.MaxResults !== undefined && input.MaxResults !== null && { MaxResults: input.MaxResults })), (input.NextToken !== undefined && input.NextToken !== null && { NextToken: input.NextToken })), (input.SchemaPattern !== undefined && input.SchemaPattern !== null && { SchemaPattern: input.SchemaPattern })), (input.SecretArn !== undefined && input.SecretArn !== null && { SecretArn: input.SecretArn })), (input.TablePattern !== undefined && input.TablePattern !== null && { TablePattern: input.TablePattern })), (input.WorkgroupName !== undefined && input.WorkgroupName !== null && { WorkgroupName: input.WorkgroupName }));
797
+ return __assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.ClusterIdentifier != null && { ClusterIdentifier: input.ClusterIdentifier })), (input.ConnectedDatabase != null && { ConnectedDatabase: input.ConnectedDatabase })), (input.Database != null && { Database: input.Database })), (input.DbUser != null && { DbUser: input.DbUser })), (input.MaxResults != null && { MaxResults: input.MaxResults })), (input.NextToken != null && { NextToken: input.NextToken })), (input.SchemaPattern != null && { SchemaPattern: input.SchemaPattern })), (input.SecretArn != null && { SecretArn: input.SecretArn })), (input.TablePattern != null && { TablePattern: input.TablePattern })), (input.WorkgroupName != null && { WorkgroupName: input.WorkgroupName }));
808
798
  };
809
799
  var serializeAws_json1_1SqlList = function (input, context) {
810
800
  return input
@@ -817,7 +807,7 @@ var serializeAws_json1_1SqlList = function (input, context) {
817
807
  });
818
808
  };
819
809
  var serializeAws_json1_1SqlParameter = function (input, context) {
820
- return __assign(__assign({}, (input.name !== undefined && input.name !== null && { name: input.name })), (input.value !== undefined && input.value !== null && { value: input.value }));
810
+ return __assign(__assign({}, (input.name != null && { name: input.name })), (input.value != null && { value: input.value }));
821
811
  };
822
812
  var serializeAws_json1_1SqlParametersList = function (input, context) {
823
813
  return input
@@ -843,9 +833,7 @@ var deserializeAws_json1_1BatchExecuteStatementException = function (output, con
843
833
  var deserializeAws_json1_1BatchExecuteStatementOutput = function (output, context) {
844
834
  return {
845
835
  ClusterIdentifier: __expectString(output.ClusterIdentifier),
846
- CreatedAt: output.CreatedAt !== undefined && output.CreatedAt !== null
847
- ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.CreatedAt)))
848
- : undefined,
836
+ CreatedAt: output.CreatedAt != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.CreatedAt))) : undefined,
849
837
  Database: __expectString(output.Database),
850
838
  DbUser: __expectString(output.DbUser),
851
839
  Id: __expectString(output.Id),
@@ -916,16 +904,14 @@ var deserializeAws_json1_1DatabaseList = function (output, context) {
916
904
  var deserializeAws_json1_1DescribeStatementResponse = function (output, context) {
917
905
  return {
918
906
  ClusterIdentifier: __expectString(output.ClusterIdentifier),
919
- CreatedAt: output.CreatedAt !== undefined && output.CreatedAt !== null
920
- ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.CreatedAt)))
921
- : undefined,
907
+ CreatedAt: output.CreatedAt != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.CreatedAt))) : undefined,
922
908
  Database: __expectString(output.Database),
923
909
  DbUser: __expectString(output.DbUser),
924
910
  Duration: __expectLong(output.Duration),
925
911
  Error: __expectString(output.Error),
926
912
  HasResultSet: __expectBoolean(output.HasResultSet),
927
913
  Id: __expectString(output.Id),
928
- QueryParameters: output.QueryParameters !== undefined && output.QueryParameters !== null
914
+ QueryParameters: output.QueryParameters != null
929
915
  ? deserializeAws_json1_1SqlParametersList(output.QueryParameters, context)
930
916
  : undefined,
931
917
  QueryString: __expectString(output.QueryString),
@@ -935,20 +921,14 @@ var deserializeAws_json1_1DescribeStatementResponse = function (output, context)
935
921
  ResultSize: __expectLong(output.ResultSize),
936
922
  SecretArn: __expectString(output.SecretArn),
937
923
  Status: __expectString(output.Status),
938
- SubStatements: output.SubStatements !== undefined && output.SubStatements !== null
939
- ? deserializeAws_json1_1SubStatementList(output.SubStatements, context)
940
- : undefined,
941
- UpdatedAt: output.UpdatedAt !== undefined && output.UpdatedAt !== null
942
- ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.UpdatedAt)))
943
- : undefined,
924
+ SubStatements: output.SubStatements != null ? deserializeAws_json1_1SubStatementList(output.SubStatements, context) : undefined,
925
+ UpdatedAt: output.UpdatedAt != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.UpdatedAt))) : undefined,
944
926
  WorkgroupName: __expectString(output.WorkgroupName),
945
927
  };
946
928
  };
947
929
  var deserializeAws_json1_1DescribeTableResponse = function (output, context) {
948
930
  return {
949
- ColumnList: output.ColumnList !== undefined && output.ColumnList !== null
950
- ? deserializeAws_json1_1ColumnList(output.ColumnList, context)
951
- : undefined,
931
+ ColumnList: output.ColumnList != null ? deserializeAws_json1_1ColumnList(output.ColumnList, context) : undefined,
952
932
  NextToken: __expectString(output.NextToken),
953
933
  TableName: __expectString(output.TableName),
954
934
  };
@@ -962,9 +942,7 @@ var deserializeAws_json1_1ExecuteStatementException = function (output, context)
962
942
  var deserializeAws_json1_1ExecuteStatementOutput = function (output, context) {
963
943
  return {
964
944
  ClusterIdentifier: __expectString(output.ClusterIdentifier),
965
- CreatedAt: output.CreatedAt !== undefined && output.CreatedAt !== null
966
- ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.CreatedAt)))
967
- : undefined,
945
+ CreatedAt: output.CreatedAt != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.CreatedAt))) : undefined,
968
946
  Database: __expectString(output.Database),
969
947
  DbUser: __expectString(output.DbUser),
970
948
  Id: __expectString(output.Id),
@@ -1008,13 +986,11 @@ var deserializeAws_json1_1FieldList = function (output, context) {
1008
986
  };
1009
987
  var deserializeAws_json1_1GetStatementResultResponse = function (output, context) {
1010
988
  return {
1011
- ColumnMetadata: output.ColumnMetadata !== undefined && output.ColumnMetadata !== null
989
+ ColumnMetadata: output.ColumnMetadata != null
1012
990
  ? deserializeAws_json1_1ColumnMetadataList(output.ColumnMetadata, context)
1013
991
  : undefined,
1014
992
  NextToken: __expectString(output.NextToken),
1015
- Records: output.Records !== undefined && output.Records !== null
1016
- ? deserializeAws_json1_1SqlRecords(output.Records, context)
1017
- : undefined,
993
+ Records: output.Records != null ? deserializeAws_json1_1SqlRecords(output.Records, context) : undefined,
1018
994
  TotalNumRows: __expectLong(output.TotalNumRows),
1019
995
  };
1020
996
  };
@@ -1025,34 +1001,26 @@ var deserializeAws_json1_1InternalServerException = function (output, context) {
1025
1001
  };
1026
1002
  var deserializeAws_json1_1ListDatabasesResponse = function (output, context) {
1027
1003
  return {
1028
- Databases: output.Databases !== undefined && output.Databases !== null
1029
- ? deserializeAws_json1_1DatabaseList(output.Databases, context)
1030
- : undefined,
1004
+ Databases: output.Databases != null ? deserializeAws_json1_1DatabaseList(output.Databases, context) : undefined,
1031
1005
  NextToken: __expectString(output.NextToken),
1032
1006
  };
1033
1007
  };
1034
1008
  var deserializeAws_json1_1ListSchemasResponse = function (output, context) {
1035
1009
  return {
1036
1010
  NextToken: __expectString(output.NextToken),
1037
- Schemas: output.Schemas !== undefined && output.Schemas !== null
1038
- ? deserializeAws_json1_1SchemaList(output.Schemas, context)
1039
- : undefined,
1011
+ Schemas: output.Schemas != null ? deserializeAws_json1_1SchemaList(output.Schemas, context) : undefined,
1040
1012
  };
1041
1013
  };
1042
1014
  var deserializeAws_json1_1ListStatementsResponse = function (output, context) {
1043
1015
  return {
1044
1016
  NextToken: __expectString(output.NextToken),
1045
- Statements: output.Statements !== undefined && output.Statements !== null
1046
- ? deserializeAws_json1_1StatementList(output.Statements, context)
1047
- : undefined,
1017
+ Statements: output.Statements != null ? deserializeAws_json1_1StatementList(output.Statements, context) : undefined,
1048
1018
  };
1049
1019
  };
1050
1020
  var deserializeAws_json1_1ListTablesResponse = function (output, context) {
1051
1021
  return {
1052
1022
  NextToken: __expectString(output.NextToken),
1053
- Tables: output.Tables !== undefined && output.Tables !== null
1054
- ? deserializeAws_json1_1TableList(output.Tables, context)
1055
- : undefined,
1023
+ Tables: output.Tables != null ? deserializeAws_json1_1TableList(output.Tables, context) : undefined,
1056
1024
  };
1057
1025
  };
1058
1026
  var deserializeAws_json1_1ResourceNotFoundException = function (output, context) {
@@ -1102,24 +1070,18 @@ var deserializeAws_json1_1SqlRecords = function (output, context) {
1102
1070
  };
1103
1071
  var deserializeAws_json1_1StatementData = function (output, context) {
1104
1072
  return {
1105
- CreatedAt: output.CreatedAt !== undefined && output.CreatedAt !== null
1106
- ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.CreatedAt)))
1107
- : undefined,
1073
+ CreatedAt: output.CreatedAt != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.CreatedAt))) : undefined,
1108
1074
  Id: __expectString(output.Id),
1109
1075
  IsBatchStatement: __expectBoolean(output.IsBatchStatement),
1110
- QueryParameters: output.QueryParameters !== undefined && output.QueryParameters !== null
1076
+ QueryParameters: output.QueryParameters != null
1111
1077
  ? deserializeAws_json1_1SqlParametersList(output.QueryParameters, context)
1112
1078
  : undefined,
1113
1079
  QueryString: __expectString(output.QueryString),
1114
- QueryStrings: output.QueryStrings !== undefined && output.QueryStrings !== null
1115
- ? deserializeAws_json1_1StatementStringList(output.QueryStrings, context)
1116
- : undefined,
1080
+ QueryStrings: output.QueryStrings != null ? deserializeAws_json1_1StatementStringList(output.QueryStrings, context) : undefined,
1117
1081
  SecretArn: __expectString(output.SecretArn),
1118
1082
  StatementName: __expectString(output.StatementName),
1119
1083
  Status: __expectString(output.Status),
1120
- UpdatedAt: output.UpdatedAt !== undefined && output.UpdatedAt !== null
1121
- ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.UpdatedAt)))
1122
- : undefined,
1084
+ UpdatedAt: output.UpdatedAt != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.UpdatedAt))) : undefined,
1123
1085
  };
1124
1086
  };
1125
1087
  var deserializeAws_json1_1StatementList = function (output, context) {
@@ -1146,9 +1108,7 @@ var deserializeAws_json1_1StatementStringList = function (output, context) {
1146
1108
  };
1147
1109
  var deserializeAws_json1_1SubStatementData = function (output, context) {
1148
1110
  return {
1149
- CreatedAt: output.CreatedAt !== undefined && output.CreatedAt !== null
1150
- ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.CreatedAt)))
1151
- : undefined,
1111
+ CreatedAt: output.CreatedAt != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.CreatedAt))) : undefined,
1152
1112
  Duration: __expectLong(output.Duration),
1153
1113
  Error: __expectString(output.Error),
1154
1114
  HasResultSet: __expectBoolean(output.HasResultSet),
@@ -1158,9 +1118,7 @@ var deserializeAws_json1_1SubStatementData = function (output, context) {
1158
1118
  ResultRows: __expectLong(output.ResultRows),
1159
1119
  ResultSize: __expectLong(output.ResultSize),
1160
1120
  Status: __expectString(output.Status),
1161
- UpdatedAt: output.UpdatedAt !== undefined && output.UpdatedAt !== null
1162
- ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.UpdatedAt)))
1163
- : undefined,
1121
+ UpdatedAt: output.UpdatedAt != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.UpdatedAt))) : undefined,
1164
1122
  };
1165
1123
  };
1166
1124
  var deserializeAws_json1_1SubStatementList = function (output, context) {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-redshift-data",
3
3
  "description": "AWS SDK for JavaScript Redshift Data Client for Node.js, Browser and React Native",
4
- "version": "3.121.0",
4
+ "version": "3.127.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,35 +18,35 @@
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.121.0",
22
- "@aws-sdk/config-resolver": "3.110.0",
23
- "@aws-sdk/credential-provider-node": "3.121.0",
24
- "@aws-sdk/fetch-http-handler": "3.110.0",
25
- "@aws-sdk/hash-node": "3.110.0",
26
- "@aws-sdk/invalid-dependency": "3.110.0",
27
- "@aws-sdk/middleware-content-length": "3.110.0",
28
- "@aws-sdk/middleware-host-header": "3.110.0",
29
- "@aws-sdk/middleware-logger": "3.110.0",
30
- "@aws-sdk/middleware-recursion-detection": "3.110.0",
31
- "@aws-sdk/middleware-retry": "3.118.1",
32
- "@aws-sdk/middleware-serde": "3.110.0",
33
- "@aws-sdk/middleware-signing": "3.110.0",
34
- "@aws-sdk/middleware-stack": "3.110.0",
35
- "@aws-sdk/middleware-user-agent": "3.110.0",
36
- "@aws-sdk/node-config-provider": "3.110.0",
37
- "@aws-sdk/node-http-handler": "3.118.1",
38
- "@aws-sdk/protocol-http": "3.110.0",
39
- "@aws-sdk/smithy-client": "3.110.0",
40
- "@aws-sdk/types": "3.110.0",
41
- "@aws-sdk/url-parser": "3.110.0",
21
+ "@aws-sdk/client-sts": "3.127.0",
22
+ "@aws-sdk/config-resolver": "3.127.0",
23
+ "@aws-sdk/credential-provider-node": "3.127.0",
24
+ "@aws-sdk/fetch-http-handler": "3.127.0",
25
+ "@aws-sdk/hash-node": "3.127.0",
26
+ "@aws-sdk/invalid-dependency": "3.127.0",
27
+ "@aws-sdk/middleware-content-length": "3.127.0",
28
+ "@aws-sdk/middleware-host-header": "3.127.0",
29
+ "@aws-sdk/middleware-logger": "3.127.0",
30
+ "@aws-sdk/middleware-recursion-detection": "3.127.0",
31
+ "@aws-sdk/middleware-retry": "3.127.0",
32
+ "@aws-sdk/middleware-serde": "3.127.0",
33
+ "@aws-sdk/middleware-signing": "3.127.0",
34
+ "@aws-sdk/middleware-stack": "3.127.0",
35
+ "@aws-sdk/middleware-user-agent": "3.127.0",
36
+ "@aws-sdk/node-config-provider": "3.127.0",
37
+ "@aws-sdk/node-http-handler": "3.127.0",
38
+ "@aws-sdk/protocol-http": "3.127.0",
39
+ "@aws-sdk/smithy-client": "3.127.0",
40
+ "@aws-sdk/types": "3.127.0",
41
+ "@aws-sdk/url-parser": "3.127.0",
42
42
  "@aws-sdk/util-base64-browser": "3.109.0",
43
43
  "@aws-sdk/util-base64-node": "3.55.0",
44
44
  "@aws-sdk/util-body-length-browser": "3.55.0",
45
45
  "@aws-sdk/util-body-length-node": "3.55.0",
46
- "@aws-sdk/util-defaults-mode-browser": "3.110.0",
47
- "@aws-sdk/util-defaults-mode-node": "3.110.0",
48
- "@aws-sdk/util-user-agent-browser": "3.110.0",
49
- "@aws-sdk/util-user-agent-node": "3.118.0",
46
+ "@aws-sdk/util-defaults-mode-browser": "3.127.0",
47
+ "@aws-sdk/util-defaults-mode-node": "3.127.0",
48
+ "@aws-sdk/util-user-agent-browser": "3.127.0",
49
+ "@aws-sdk/util-user-agent-node": "3.127.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"