@aws-sdk/client-healthlake 3.121.0 → 3.130.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -3,6 +3,33 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ # [3.130.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.129.0...v3.130.0) (2022-07-14)
7
+
8
+
9
+ ### Bug Fixes
10
+
11
+ * **codegen:** fix error code parsing when it's a number ([#3371](https://github.com/aws/aws-sdk-js-v3/issues/3371)) ([c2d8522](https://github.com/aws/aws-sdk-js-v3/commit/c2d852279a3d23958521a6ceb4f4c642b0cb1848))
12
+
13
+
14
+
15
+
16
+
17
+ # [3.128.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.127.0...v3.128.0) (2022-07-12)
18
+
19
+ **Note:** Version bump only for package @aws-sdk/client-healthlake
20
+
21
+
22
+
23
+
24
+
25
+ # [3.127.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.126.0...v3.127.0) (2022-07-11)
26
+
27
+ **Note:** Version bump only for package @aws-sdk/client-healthlake
28
+
29
+
30
+
31
+
32
+
6
33
  # [3.121.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.120.0...v3.121.0) (2022-06-30)
7
34
 
8
35
 
@@ -789,51 +789,45 @@ const serializeAws_json1_0CreateFHIRDatastoreRequest = (input, context) => {
789
789
  var _a;
790
790
  return {
791
791
  ClientToken: (_a = input.ClientToken) !== null && _a !== void 0 ? _a : (0, uuid_1.v4)(),
792
- ...(input.DatastoreName !== undefined && input.DatastoreName !== null && { DatastoreName: input.DatastoreName }),
793
- ...(input.DatastoreTypeVersion !== undefined &&
794
- input.DatastoreTypeVersion !== null && { DatastoreTypeVersion: input.DatastoreTypeVersion }),
795
- ...(input.PreloadDataConfig !== undefined &&
796
- input.PreloadDataConfig !== null && {
792
+ ...(input.DatastoreName != null && { DatastoreName: input.DatastoreName }),
793
+ ...(input.DatastoreTypeVersion != null && { DatastoreTypeVersion: input.DatastoreTypeVersion }),
794
+ ...(input.PreloadDataConfig != null && {
797
795
  PreloadDataConfig: serializeAws_json1_0PreloadDataConfig(input.PreloadDataConfig, context),
798
796
  }),
799
- ...(input.SseConfiguration !== undefined &&
800
- input.SseConfiguration !== null && {
797
+ ...(input.SseConfiguration != null && {
801
798
  SseConfiguration: serializeAws_json1_0SseConfiguration(input.SseConfiguration, context),
802
799
  }),
803
- ...(input.Tags !== undefined && input.Tags !== null && { Tags: serializeAws_json1_0TagList(input.Tags, context) }),
800
+ ...(input.Tags != null && { Tags: serializeAws_json1_0TagList(input.Tags, context) }),
804
801
  };
805
802
  };
806
803
  const serializeAws_json1_0DatastoreFilter = (input, context) => {
807
804
  return {
808
- ...(input.CreatedAfter !== undefined &&
809
- input.CreatedAfter !== null && { CreatedAfter: Math.round(input.CreatedAfter.getTime() / 1000) }),
810
- ...(input.CreatedBefore !== undefined &&
811
- input.CreatedBefore !== null && { CreatedBefore: Math.round(input.CreatedBefore.getTime() / 1000) }),
812
- ...(input.DatastoreName !== undefined && input.DatastoreName !== null && { DatastoreName: input.DatastoreName }),
813
- ...(input.DatastoreStatus !== undefined &&
814
- input.DatastoreStatus !== null && { DatastoreStatus: input.DatastoreStatus }),
805
+ ...(input.CreatedAfter != null && { CreatedAfter: Math.round(input.CreatedAfter.getTime() / 1000) }),
806
+ ...(input.CreatedBefore != null && { CreatedBefore: Math.round(input.CreatedBefore.getTime() / 1000) }),
807
+ ...(input.DatastoreName != null && { DatastoreName: input.DatastoreName }),
808
+ ...(input.DatastoreStatus != null && { DatastoreStatus: input.DatastoreStatus }),
815
809
  };
816
810
  };
817
811
  const serializeAws_json1_0DeleteFHIRDatastoreRequest = (input, context) => {
818
812
  return {
819
- ...(input.DatastoreId !== undefined && input.DatastoreId !== null && { DatastoreId: input.DatastoreId }),
813
+ ...(input.DatastoreId != null && { DatastoreId: input.DatastoreId }),
820
814
  };
821
815
  };
822
816
  const serializeAws_json1_0DescribeFHIRDatastoreRequest = (input, context) => {
823
817
  return {
824
- ...(input.DatastoreId !== undefined && input.DatastoreId !== null && { DatastoreId: input.DatastoreId }),
818
+ ...(input.DatastoreId != null && { DatastoreId: input.DatastoreId }),
825
819
  };
826
820
  };
827
821
  const serializeAws_json1_0DescribeFHIRExportJobRequest = (input, context) => {
828
822
  return {
829
- ...(input.DatastoreId !== undefined && input.DatastoreId !== null && { DatastoreId: input.DatastoreId }),
830
- ...(input.JobId !== undefined && input.JobId !== null && { JobId: input.JobId }),
823
+ ...(input.DatastoreId != null && { DatastoreId: input.DatastoreId }),
824
+ ...(input.JobId != null && { JobId: input.JobId }),
831
825
  };
832
826
  };
833
827
  const serializeAws_json1_0DescribeFHIRImportJobRequest = (input, context) => {
834
828
  return {
835
- ...(input.DatastoreId !== undefined && input.DatastoreId !== null && { DatastoreId: input.DatastoreId }),
836
- ...(input.JobId !== undefined && input.JobId !== null && { JobId: input.JobId }),
829
+ ...(input.DatastoreId != null && { DatastoreId: input.DatastoreId }),
830
+ ...(input.JobId != null && { JobId: input.JobId }),
837
831
  };
838
832
  };
839
833
  const serializeAws_json1_0InputDataConfig = (input, context) => {
@@ -844,47 +838,42 @@ const serializeAws_json1_0InputDataConfig = (input, context) => {
844
838
  };
845
839
  const serializeAws_json1_0KmsEncryptionConfig = (input, context) => {
846
840
  return {
847
- ...(input.CmkType !== undefined && input.CmkType !== null && { CmkType: input.CmkType }),
848
- ...(input.KmsKeyId !== undefined && input.KmsKeyId !== null && { KmsKeyId: input.KmsKeyId }),
841
+ ...(input.CmkType != null && { CmkType: input.CmkType }),
842
+ ...(input.KmsKeyId != null && { KmsKeyId: input.KmsKeyId }),
849
843
  };
850
844
  };
851
845
  const serializeAws_json1_0ListFHIRDatastoresRequest = (input, context) => {
852
846
  return {
853
- ...(input.Filter !== undefined &&
854
- input.Filter !== null && { Filter: serializeAws_json1_0DatastoreFilter(input.Filter, context) }),
855
- ...(input.MaxResults !== undefined && input.MaxResults !== null && { MaxResults: input.MaxResults }),
856
- ...(input.NextToken !== undefined && input.NextToken !== null && { NextToken: input.NextToken }),
847
+ ...(input.Filter != null && { Filter: serializeAws_json1_0DatastoreFilter(input.Filter, context) }),
848
+ ...(input.MaxResults != null && { MaxResults: input.MaxResults }),
849
+ ...(input.NextToken != null && { NextToken: input.NextToken }),
857
850
  };
858
851
  };
859
852
  const serializeAws_json1_0ListFHIRExportJobsRequest = (input, context) => {
860
853
  return {
861
- ...(input.DatastoreId !== undefined && input.DatastoreId !== null && { DatastoreId: input.DatastoreId }),
862
- ...(input.JobName !== undefined && input.JobName !== null && { JobName: input.JobName }),
863
- ...(input.JobStatus !== undefined && input.JobStatus !== null && { JobStatus: input.JobStatus }),
864
- ...(input.MaxResults !== undefined && input.MaxResults !== null && { MaxResults: input.MaxResults }),
865
- ...(input.NextToken !== undefined && input.NextToken !== null && { NextToken: input.NextToken }),
866
- ...(input.SubmittedAfter !== undefined &&
867
- input.SubmittedAfter !== null && { SubmittedAfter: Math.round(input.SubmittedAfter.getTime() / 1000) }),
868
- ...(input.SubmittedBefore !== undefined &&
869
- input.SubmittedBefore !== null && { SubmittedBefore: Math.round(input.SubmittedBefore.getTime() / 1000) }),
854
+ ...(input.DatastoreId != null && { DatastoreId: input.DatastoreId }),
855
+ ...(input.JobName != null && { JobName: input.JobName }),
856
+ ...(input.JobStatus != null && { JobStatus: input.JobStatus }),
857
+ ...(input.MaxResults != null && { MaxResults: input.MaxResults }),
858
+ ...(input.NextToken != null && { NextToken: input.NextToken }),
859
+ ...(input.SubmittedAfter != null && { SubmittedAfter: Math.round(input.SubmittedAfter.getTime() / 1000) }),
860
+ ...(input.SubmittedBefore != null && { SubmittedBefore: Math.round(input.SubmittedBefore.getTime() / 1000) }),
870
861
  };
871
862
  };
872
863
  const serializeAws_json1_0ListFHIRImportJobsRequest = (input, context) => {
873
864
  return {
874
- ...(input.DatastoreId !== undefined && input.DatastoreId !== null && { DatastoreId: input.DatastoreId }),
875
- ...(input.JobName !== undefined && input.JobName !== null && { JobName: input.JobName }),
876
- ...(input.JobStatus !== undefined && input.JobStatus !== null && { JobStatus: input.JobStatus }),
877
- ...(input.MaxResults !== undefined && input.MaxResults !== null && { MaxResults: input.MaxResults }),
878
- ...(input.NextToken !== undefined && input.NextToken !== null && { NextToken: input.NextToken }),
879
- ...(input.SubmittedAfter !== undefined &&
880
- input.SubmittedAfter !== null && { SubmittedAfter: Math.round(input.SubmittedAfter.getTime() / 1000) }),
881
- ...(input.SubmittedBefore !== undefined &&
882
- input.SubmittedBefore !== null && { SubmittedBefore: Math.round(input.SubmittedBefore.getTime() / 1000) }),
865
+ ...(input.DatastoreId != null && { DatastoreId: input.DatastoreId }),
866
+ ...(input.JobName != null && { JobName: input.JobName }),
867
+ ...(input.JobStatus != null && { JobStatus: input.JobStatus }),
868
+ ...(input.MaxResults != null && { MaxResults: input.MaxResults }),
869
+ ...(input.NextToken != null && { NextToken: input.NextToken }),
870
+ ...(input.SubmittedAfter != null && { SubmittedAfter: Math.round(input.SubmittedAfter.getTime() / 1000) }),
871
+ ...(input.SubmittedBefore != null && { SubmittedBefore: Math.round(input.SubmittedBefore.getTime() / 1000) }),
883
872
  };
884
873
  };
885
874
  const serializeAws_json1_0ListTagsForResourceRequest = (input, context) => {
886
875
  return {
887
- ...(input.ResourceARN !== undefined && input.ResourceARN !== null && { ResourceARN: input.ResourceARN }),
876
+ ...(input.ResourceARN != null && { ResourceARN: input.ResourceARN }),
888
877
  };
889
878
  };
890
879
  const serializeAws_json1_0OutputDataConfig = (input, context) => {
@@ -895,20 +884,18 @@ const serializeAws_json1_0OutputDataConfig = (input, context) => {
895
884
  };
896
885
  const serializeAws_json1_0PreloadDataConfig = (input, context) => {
897
886
  return {
898
- ...(input.PreloadDataType !== undefined &&
899
- input.PreloadDataType !== null && { PreloadDataType: input.PreloadDataType }),
887
+ ...(input.PreloadDataType != null && { PreloadDataType: input.PreloadDataType }),
900
888
  };
901
889
  };
902
890
  const serializeAws_json1_0S3Configuration = (input, context) => {
903
891
  return {
904
- ...(input.KmsKeyId !== undefined && input.KmsKeyId !== null && { KmsKeyId: input.KmsKeyId }),
905
- ...(input.S3Uri !== undefined && input.S3Uri !== null && { S3Uri: input.S3Uri }),
892
+ ...(input.KmsKeyId != null && { KmsKeyId: input.KmsKeyId }),
893
+ ...(input.S3Uri != null && { S3Uri: input.S3Uri }),
906
894
  };
907
895
  };
908
896
  const serializeAws_json1_0SseConfiguration = (input, context) => {
909
897
  return {
910
- ...(input.KmsEncryptionConfig !== undefined &&
911
- input.KmsEncryptionConfig !== null && {
898
+ ...(input.KmsEncryptionConfig != null && {
912
899
  KmsEncryptionConfig: serializeAws_json1_0KmsEncryptionConfig(input.KmsEncryptionConfig, context),
913
900
  }),
914
901
  };
@@ -917,12 +904,10 @@ const serializeAws_json1_0StartFHIRExportJobRequest = (input, context) => {
917
904
  var _a;
918
905
  return {
919
906
  ClientToken: (_a = input.ClientToken) !== null && _a !== void 0 ? _a : (0, uuid_1.v4)(),
920
- ...(input.DataAccessRoleArn !== undefined &&
921
- input.DataAccessRoleArn !== null && { DataAccessRoleArn: input.DataAccessRoleArn }),
922
- ...(input.DatastoreId !== undefined && input.DatastoreId !== null && { DatastoreId: input.DatastoreId }),
923
- ...(input.JobName !== undefined && input.JobName !== null && { JobName: input.JobName }),
924
- ...(input.OutputDataConfig !== undefined &&
925
- input.OutputDataConfig !== null && {
907
+ ...(input.DataAccessRoleArn != null && { DataAccessRoleArn: input.DataAccessRoleArn }),
908
+ ...(input.DatastoreId != null && { DatastoreId: input.DatastoreId }),
909
+ ...(input.JobName != null && { JobName: input.JobName }),
910
+ ...(input.OutputDataConfig != null && {
926
911
  OutputDataConfig: serializeAws_json1_0OutputDataConfig(input.OutputDataConfig, context),
927
912
  }),
928
913
  };
@@ -931,24 +916,21 @@ const serializeAws_json1_0StartFHIRImportJobRequest = (input, context) => {
931
916
  var _a;
932
917
  return {
933
918
  ClientToken: (_a = input.ClientToken) !== null && _a !== void 0 ? _a : (0, uuid_1.v4)(),
934
- ...(input.DataAccessRoleArn !== undefined &&
935
- input.DataAccessRoleArn !== null && { DataAccessRoleArn: input.DataAccessRoleArn }),
936
- ...(input.DatastoreId !== undefined && input.DatastoreId !== null && { DatastoreId: input.DatastoreId }),
937
- ...(input.InputDataConfig !== undefined &&
938
- input.InputDataConfig !== null && {
919
+ ...(input.DataAccessRoleArn != null && { DataAccessRoleArn: input.DataAccessRoleArn }),
920
+ ...(input.DatastoreId != null && { DatastoreId: input.DatastoreId }),
921
+ ...(input.InputDataConfig != null && {
939
922
  InputDataConfig: serializeAws_json1_0InputDataConfig(input.InputDataConfig, context),
940
923
  }),
941
- ...(input.JobName !== undefined && input.JobName !== null && { JobName: input.JobName }),
942
- ...(input.JobOutputDataConfig !== undefined &&
943
- input.JobOutputDataConfig !== null && {
924
+ ...(input.JobName != null && { JobName: input.JobName }),
925
+ ...(input.JobOutputDataConfig != null && {
944
926
  JobOutputDataConfig: serializeAws_json1_0OutputDataConfig(input.JobOutputDataConfig, context),
945
927
  }),
946
928
  };
947
929
  };
948
930
  const serializeAws_json1_0Tag = (input, context) => {
949
931
  return {
950
- ...(input.Key !== undefined && input.Key !== null && { Key: input.Key }),
951
- ...(input.Value !== undefined && input.Value !== null && { Value: input.Value }),
932
+ ...(input.Key != null && { Key: input.Key }),
933
+ ...(input.Value != null && { Value: input.Value }),
952
934
  };
953
935
  };
954
936
  const serializeAws_json1_0TagKeyList = (input, context) => {
@@ -973,15 +955,14 @@ const serializeAws_json1_0TagList = (input, context) => {
973
955
  };
974
956
  const serializeAws_json1_0TagResourceRequest = (input, context) => {
975
957
  return {
976
- ...(input.ResourceARN !== undefined && input.ResourceARN !== null && { ResourceARN: input.ResourceARN }),
977
- ...(input.Tags !== undefined && input.Tags !== null && { Tags: serializeAws_json1_0TagList(input.Tags, context) }),
958
+ ...(input.ResourceARN != null && { ResourceARN: input.ResourceARN }),
959
+ ...(input.Tags != null && { Tags: serializeAws_json1_0TagList(input.Tags, context) }),
978
960
  };
979
961
  };
980
962
  const serializeAws_json1_0UntagResourceRequest = (input, context) => {
981
963
  return {
982
- ...(input.ResourceARN !== undefined && input.ResourceARN !== null && { ResourceARN: input.ResourceARN }),
983
- ...(input.TagKeys !== undefined &&
984
- input.TagKeys !== null && { TagKeys: serializeAws_json1_0TagKeyList(input.TagKeys, context) }),
964
+ ...(input.ResourceARN != null && { ResourceARN: input.ResourceARN }),
965
+ ...(input.TagKeys != null && { TagKeys: serializeAws_json1_0TagKeyList(input.TagKeys, context) }),
985
966
  };
986
967
  };
987
968
  const deserializeAws_json1_0AccessDeniedException = (output, context) => {
@@ -1004,19 +985,17 @@ const deserializeAws_json1_0CreateFHIRDatastoreResponse = (output, context) => {
1004
985
  };
1005
986
  const deserializeAws_json1_0DatastoreProperties = (output, context) => {
1006
987
  return {
1007
- CreatedAt: output.CreatedAt !== undefined && output.CreatedAt !== null
1008
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.CreatedAt)))
1009
- : undefined,
988
+ CreatedAt: output.CreatedAt != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.CreatedAt))) : undefined,
1010
989
  DatastoreArn: (0, smithy_client_1.expectString)(output.DatastoreArn),
1011
990
  DatastoreEndpoint: (0, smithy_client_1.expectString)(output.DatastoreEndpoint),
1012
991
  DatastoreId: (0, smithy_client_1.expectString)(output.DatastoreId),
1013
992
  DatastoreName: (0, smithy_client_1.expectString)(output.DatastoreName),
1014
993
  DatastoreStatus: (0, smithy_client_1.expectString)(output.DatastoreStatus),
1015
994
  DatastoreTypeVersion: (0, smithy_client_1.expectString)(output.DatastoreTypeVersion),
1016
- PreloadDataConfig: output.PreloadDataConfig !== undefined && output.PreloadDataConfig !== null
995
+ PreloadDataConfig: output.PreloadDataConfig != null
1017
996
  ? deserializeAws_json1_0PreloadDataConfig(output.PreloadDataConfig, context)
1018
997
  : undefined,
1019
- SseConfiguration: output.SseConfiguration !== undefined && output.SseConfiguration !== null
998
+ SseConfiguration: output.SseConfiguration != null
1020
999
  ? deserializeAws_json1_0SseConfiguration(output.SseConfiguration, context)
1021
1000
  : undefined,
1022
1001
  };
@@ -1042,21 +1021,21 @@ const deserializeAws_json1_0DeleteFHIRDatastoreResponse = (output, context) => {
1042
1021
  };
1043
1022
  const deserializeAws_json1_0DescribeFHIRDatastoreResponse = (output, context) => {
1044
1023
  return {
1045
- DatastoreProperties: output.DatastoreProperties !== undefined && output.DatastoreProperties !== null
1024
+ DatastoreProperties: output.DatastoreProperties != null
1046
1025
  ? deserializeAws_json1_0DatastoreProperties(output.DatastoreProperties, context)
1047
1026
  : undefined,
1048
1027
  };
1049
1028
  };
1050
1029
  const deserializeAws_json1_0DescribeFHIRExportJobResponse = (output, context) => {
1051
1030
  return {
1052
- ExportJobProperties: output.ExportJobProperties !== undefined && output.ExportJobProperties !== null
1031
+ ExportJobProperties: output.ExportJobProperties != null
1053
1032
  ? deserializeAws_json1_0ExportJobProperties(output.ExportJobProperties, context)
1054
1033
  : undefined,
1055
1034
  };
1056
1035
  };
1057
1036
  const deserializeAws_json1_0DescribeFHIRImportJobResponse = (output, context) => {
1058
1037
  return {
1059
- ImportJobProperties: output.ImportJobProperties !== undefined && output.ImportJobProperties !== null
1038
+ ImportJobProperties: output.ImportJobProperties != null
1060
1039
  ? deserializeAws_json1_0ImportJobProperties(output.ImportJobProperties, context)
1061
1040
  : undefined,
1062
1041
  };
@@ -1065,19 +1044,15 @@ const deserializeAws_json1_0ExportJobProperties = (output, context) => {
1065
1044
  return {
1066
1045
  DataAccessRoleArn: (0, smithy_client_1.expectString)(output.DataAccessRoleArn),
1067
1046
  DatastoreId: (0, smithy_client_1.expectString)(output.DatastoreId),
1068
- EndTime: output.EndTime !== undefined && output.EndTime !== null
1069
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.EndTime)))
1070
- : undefined,
1047
+ EndTime: output.EndTime != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.EndTime))) : undefined,
1071
1048
  JobId: (0, smithy_client_1.expectString)(output.JobId),
1072
1049
  JobName: (0, smithy_client_1.expectString)(output.JobName),
1073
1050
  JobStatus: (0, smithy_client_1.expectString)(output.JobStatus),
1074
1051
  Message: (0, smithy_client_1.expectString)(output.Message),
1075
- OutputDataConfig: output.OutputDataConfig !== undefined && output.OutputDataConfig !== null
1052
+ OutputDataConfig: output.OutputDataConfig != null
1076
1053
  ? deserializeAws_json1_0OutputDataConfig((0, smithy_client_1.expectUnion)(output.OutputDataConfig), context)
1077
1054
  : undefined,
1078
- SubmitTime: output.SubmitTime !== undefined && output.SubmitTime !== null
1079
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.SubmitTime)))
1080
- : undefined,
1055
+ SubmitTime: output.SubmitTime != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.SubmitTime))) : undefined,
1081
1056
  };
1082
1057
  };
1083
1058
  const deserializeAws_json1_0ExportJobPropertiesList = (output, context) => {
@@ -1095,22 +1070,18 @@ const deserializeAws_json1_0ImportJobProperties = (output, context) => {
1095
1070
  return {
1096
1071
  DataAccessRoleArn: (0, smithy_client_1.expectString)(output.DataAccessRoleArn),
1097
1072
  DatastoreId: (0, smithy_client_1.expectString)(output.DatastoreId),
1098
- EndTime: output.EndTime !== undefined && output.EndTime !== null
1099
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.EndTime)))
1100
- : undefined,
1101
- InputDataConfig: output.InputDataConfig !== undefined && output.InputDataConfig !== null
1073
+ EndTime: output.EndTime != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.EndTime))) : undefined,
1074
+ InputDataConfig: output.InputDataConfig != null
1102
1075
  ? deserializeAws_json1_0InputDataConfig((0, smithy_client_1.expectUnion)(output.InputDataConfig), context)
1103
1076
  : undefined,
1104
1077
  JobId: (0, smithy_client_1.expectString)(output.JobId),
1105
1078
  JobName: (0, smithy_client_1.expectString)(output.JobName),
1106
- JobOutputDataConfig: output.JobOutputDataConfig !== undefined && output.JobOutputDataConfig !== null
1079
+ JobOutputDataConfig: output.JobOutputDataConfig != null
1107
1080
  ? deserializeAws_json1_0OutputDataConfig((0, smithy_client_1.expectUnion)(output.JobOutputDataConfig), context)
1108
1081
  : undefined,
1109
1082
  JobStatus: (0, smithy_client_1.expectString)(output.JobStatus),
1110
1083
  Message: (0, smithy_client_1.expectString)(output.Message),
1111
- SubmitTime: output.SubmitTime !== undefined && output.SubmitTime !== null
1112
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.SubmitTime)))
1113
- : undefined,
1084
+ SubmitTime: output.SubmitTime != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.SubmitTime))) : undefined,
1114
1085
  };
1115
1086
  };
1116
1087
  const deserializeAws_json1_0ImportJobPropertiesList = (output, context) => {
@@ -1143,7 +1114,7 @@ const deserializeAws_json1_0KmsEncryptionConfig = (output, context) => {
1143
1114
  };
1144
1115
  const deserializeAws_json1_0ListFHIRDatastoresResponse = (output, context) => {
1145
1116
  return {
1146
- DatastorePropertiesList: output.DatastorePropertiesList !== undefined && output.DatastorePropertiesList !== null
1117
+ DatastorePropertiesList: output.DatastorePropertiesList != null
1147
1118
  ? deserializeAws_json1_0DatastorePropertiesList(output.DatastorePropertiesList, context)
1148
1119
  : undefined,
1149
1120
  NextToken: (0, smithy_client_1.expectString)(output.NextToken),
@@ -1151,7 +1122,7 @@ const deserializeAws_json1_0ListFHIRDatastoresResponse = (output, context) => {
1151
1122
  };
1152
1123
  const deserializeAws_json1_0ListFHIRExportJobsResponse = (output, context) => {
1153
1124
  return {
1154
- ExportJobPropertiesList: output.ExportJobPropertiesList !== undefined && output.ExportJobPropertiesList !== null
1125
+ ExportJobPropertiesList: output.ExportJobPropertiesList != null
1155
1126
  ? deserializeAws_json1_0ExportJobPropertiesList(output.ExportJobPropertiesList, context)
1156
1127
  : undefined,
1157
1128
  NextToken: (0, smithy_client_1.expectString)(output.NextToken),
@@ -1159,7 +1130,7 @@ const deserializeAws_json1_0ListFHIRExportJobsResponse = (output, context) => {
1159
1130
  };
1160
1131
  const deserializeAws_json1_0ListFHIRImportJobsResponse = (output, context) => {
1161
1132
  return {
1162
- ImportJobPropertiesList: output.ImportJobPropertiesList !== undefined && output.ImportJobPropertiesList !== null
1133
+ ImportJobPropertiesList: output.ImportJobPropertiesList != null
1163
1134
  ? deserializeAws_json1_0ImportJobPropertiesList(output.ImportJobPropertiesList, context)
1164
1135
  : undefined,
1165
1136
  NextToken: (0, smithy_client_1.expectString)(output.NextToken),
@@ -1167,9 +1138,7 @@ const deserializeAws_json1_0ListFHIRImportJobsResponse = (output, context) => {
1167
1138
  };
1168
1139
  const deserializeAws_json1_0ListTagsForResourceResponse = (output, context) => {
1169
1140
  return {
1170
- Tags: output.Tags !== undefined && output.Tags !== null
1171
- ? deserializeAws_json1_0TagList(output.Tags, context)
1172
- : undefined,
1141
+ Tags: output.Tags != null ? deserializeAws_json1_0TagList(output.Tags, context) : undefined,
1173
1142
  };
1174
1143
  };
1175
1144
  const deserializeAws_json1_0OutputDataConfig = (output, context) => {
@@ -1198,7 +1167,7 @@ const deserializeAws_json1_0S3Configuration = (output, context) => {
1198
1167
  };
1199
1168
  const deserializeAws_json1_0SseConfiguration = (output, context) => {
1200
1169
  return {
1201
- KmsEncryptionConfig: output.KmsEncryptionConfig !== undefined && output.KmsEncryptionConfig !== null
1170
+ KmsEncryptionConfig: output.KmsEncryptionConfig != null
1202
1171
  ? deserializeAws_json1_0KmsEncryptionConfig(output.KmsEncryptionConfig, context)
1203
1172
  : undefined,
1204
1173
  };
@@ -1294,6 +1263,9 @@ const loadRestJsonErrorCode = (output, data) => {
1294
1263
  const findKey = (object, key) => Object.keys(object).find((k) => k.toLowerCase() === key.toLowerCase());
1295
1264
  const sanitizeErrorCode = (rawValue) => {
1296
1265
  let cleanValue = rawValue;
1266
+ if (typeof cleanValue === "number") {
1267
+ cleanValue = cleanValue.toString();
1268
+ }
1297
1269
  if (cleanValue.indexOf(":") >= 0) {
1298
1270
  cleanValue = cleanValue.split(":")[0];
1299
1271
  }
@@ -1018,32 +1018,26 @@ var deserializeAws_json1_0ValidationExceptionResponse = function (parsedOutput,
1018
1018
  }); };
1019
1019
  var serializeAws_json1_0CreateFHIRDatastoreRequest = function (input, context) {
1020
1020
  var _a;
1021
- return __assign(__assign(__assign(__assign(__assign({ ClientToken: (_a = input.ClientToken) !== null && _a !== void 0 ? _a : generateIdempotencyToken() }, (input.DatastoreName !== undefined && input.DatastoreName !== null && { DatastoreName: input.DatastoreName })), (input.DatastoreTypeVersion !== undefined &&
1022
- input.DatastoreTypeVersion !== null && { DatastoreTypeVersion: input.DatastoreTypeVersion })), (input.PreloadDataConfig !== undefined &&
1023
- input.PreloadDataConfig !== null && {
1021
+ return __assign(__assign(__assign(__assign(__assign({ ClientToken: (_a = input.ClientToken) !== null && _a !== void 0 ? _a : generateIdempotencyToken() }, (input.DatastoreName != null && { DatastoreName: input.DatastoreName })), (input.DatastoreTypeVersion != null && { DatastoreTypeVersion: input.DatastoreTypeVersion })), (input.PreloadDataConfig != null && {
1024
1022
  PreloadDataConfig: serializeAws_json1_0PreloadDataConfig(input.PreloadDataConfig, context),
1025
- })), (input.SseConfiguration !== undefined &&
1026
- input.SseConfiguration !== null && {
1023
+ })), (input.SseConfiguration != null && {
1027
1024
  SseConfiguration: serializeAws_json1_0SseConfiguration(input.SseConfiguration, context),
1028
- })), (input.Tags !== undefined && input.Tags !== null && { Tags: serializeAws_json1_0TagList(input.Tags, context) }));
1025
+ })), (input.Tags != null && { Tags: serializeAws_json1_0TagList(input.Tags, context) }));
1029
1026
  };
1030
1027
  var serializeAws_json1_0DatastoreFilter = function (input, context) {
1031
- return __assign(__assign(__assign(__assign({}, (input.CreatedAfter !== undefined &&
1032
- input.CreatedAfter !== null && { CreatedAfter: Math.round(input.CreatedAfter.getTime() / 1000) })), (input.CreatedBefore !== undefined &&
1033
- input.CreatedBefore !== null && { CreatedBefore: Math.round(input.CreatedBefore.getTime() / 1000) })), (input.DatastoreName !== undefined && input.DatastoreName !== null && { DatastoreName: input.DatastoreName })), (input.DatastoreStatus !== undefined &&
1034
- input.DatastoreStatus !== null && { DatastoreStatus: input.DatastoreStatus }));
1028
+ return __assign(__assign(__assign(__assign({}, (input.CreatedAfter != null && { CreatedAfter: Math.round(input.CreatedAfter.getTime() / 1000) })), (input.CreatedBefore != null && { CreatedBefore: Math.round(input.CreatedBefore.getTime() / 1000) })), (input.DatastoreName != null && { DatastoreName: input.DatastoreName })), (input.DatastoreStatus != null && { DatastoreStatus: input.DatastoreStatus }));
1035
1029
  };
1036
1030
  var serializeAws_json1_0DeleteFHIRDatastoreRequest = function (input, context) {
1037
- return __assign({}, (input.DatastoreId !== undefined && input.DatastoreId !== null && { DatastoreId: input.DatastoreId }));
1031
+ return __assign({}, (input.DatastoreId != null && { DatastoreId: input.DatastoreId }));
1038
1032
  };
1039
1033
  var serializeAws_json1_0DescribeFHIRDatastoreRequest = function (input, context) {
1040
- return __assign({}, (input.DatastoreId !== undefined && input.DatastoreId !== null && { DatastoreId: input.DatastoreId }));
1034
+ return __assign({}, (input.DatastoreId != null && { DatastoreId: input.DatastoreId }));
1041
1035
  };
1042
1036
  var serializeAws_json1_0DescribeFHIRExportJobRequest = function (input, context) {
1043
- return __assign(__assign({}, (input.DatastoreId !== undefined && input.DatastoreId !== null && { DatastoreId: input.DatastoreId })), (input.JobId !== undefined && input.JobId !== null && { JobId: input.JobId }));
1037
+ return __assign(__assign({}, (input.DatastoreId != null && { DatastoreId: input.DatastoreId })), (input.JobId != null && { JobId: input.JobId }));
1044
1038
  };
1045
1039
  var serializeAws_json1_0DescribeFHIRImportJobRequest = function (input, context) {
1046
- return __assign(__assign({}, (input.DatastoreId !== undefined && input.DatastoreId !== null && { DatastoreId: input.DatastoreId })), (input.JobId !== undefined && input.JobId !== null && { JobId: input.JobId }));
1040
+ return __assign(__assign({}, (input.DatastoreId != null && { DatastoreId: input.DatastoreId })), (input.JobId != null && { JobId: input.JobId }));
1047
1041
  };
1048
1042
  var serializeAws_json1_0InputDataConfig = function (input, context) {
1049
1043
  return InputDataConfig.visit(input, {
@@ -1052,24 +1046,19 @@ var serializeAws_json1_0InputDataConfig = function (input, context) {
1052
1046
  });
1053
1047
  };
1054
1048
  var serializeAws_json1_0KmsEncryptionConfig = function (input, context) {
1055
- return __assign(__assign({}, (input.CmkType !== undefined && input.CmkType !== null && { CmkType: input.CmkType })), (input.KmsKeyId !== undefined && input.KmsKeyId !== null && { KmsKeyId: input.KmsKeyId }));
1049
+ return __assign(__assign({}, (input.CmkType != null && { CmkType: input.CmkType })), (input.KmsKeyId != null && { KmsKeyId: input.KmsKeyId }));
1056
1050
  };
1057
1051
  var serializeAws_json1_0ListFHIRDatastoresRequest = function (input, context) {
1058
- return __assign(__assign(__assign({}, (input.Filter !== undefined &&
1059
- input.Filter !== null && { Filter: serializeAws_json1_0DatastoreFilter(input.Filter, context) })), (input.MaxResults !== undefined && input.MaxResults !== null && { MaxResults: input.MaxResults })), (input.NextToken !== undefined && input.NextToken !== null && { NextToken: input.NextToken }));
1052
+ return __assign(__assign(__assign({}, (input.Filter != null && { Filter: serializeAws_json1_0DatastoreFilter(input.Filter, context) })), (input.MaxResults != null && { MaxResults: input.MaxResults })), (input.NextToken != null && { NextToken: input.NextToken }));
1060
1053
  };
1061
1054
  var serializeAws_json1_0ListFHIRExportJobsRequest = function (input, context) {
1062
- return __assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.DatastoreId !== undefined && input.DatastoreId !== null && { DatastoreId: input.DatastoreId })), (input.JobName !== undefined && input.JobName !== null && { JobName: input.JobName })), (input.JobStatus !== undefined && input.JobStatus !== null && { JobStatus: input.JobStatus })), (input.MaxResults !== undefined && input.MaxResults !== null && { MaxResults: input.MaxResults })), (input.NextToken !== undefined && input.NextToken !== null && { NextToken: input.NextToken })), (input.SubmittedAfter !== undefined &&
1063
- input.SubmittedAfter !== null && { SubmittedAfter: Math.round(input.SubmittedAfter.getTime() / 1000) })), (input.SubmittedBefore !== undefined &&
1064
- input.SubmittedBefore !== null && { SubmittedBefore: Math.round(input.SubmittedBefore.getTime() / 1000) }));
1055
+ return __assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.DatastoreId != null && { DatastoreId: input.DatastoreId })), (input.JobName != null && { JobName: input.JobName })), (input.JobStatus != null && { JobStatus: input.JobStatus })), (input.MaxResults != null && { MaxResults: input.MaxResults })), (input.NextToken != null && { NextToken: input.NextToken })), (input.SubmittedAfter != null && { SubmittedAfter: Math.round(input.SubmittedAfter.getTime() / 1000) })), (input.SubmittedBefore != null && { SubmittedBefore: Math.round(input.SubmittedBefore.getTime() / 1000) }));
1065
1056
  };
1066
1057
  var serializeAws_json1_0ListFHIRImportJobsRequest = function (input, context) {
1067
- return __assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.DatastoreId !== undefined && input.DatastoreId !== null && { DatastoreId: input.DatastoreId })), (input.JobName !== undefined && input.JobName !== null && { JobName: input.JobName })), (input.JobStatus !== undefined && input.JobStatus !== null && { JobStatus: input.JobStatus })), (input.MaxResults !== undefined && input.MaxResults !== null && { MaxResults: input.MaxResults })), (input.NextToken !== undefined && input.NextToken !== null && { NextToken: input.NextToken })), (input.SubmittedAfter !== undefined &&
1068
- input.SubmittedAfter !== null && { SubmittedAfter: Math.round(input.SubmittedAfter.getTime() / 1000) })), (input.SubmittedBefore !== undefined &&
1069
- input.SubmittedBefore !== null && { SubmittedBefore: Math.round(input.SubmittedBefore.getTime() / 1000) }));
1058
+ return __assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.DatastoreId != null && { DatastoreId: input.DatastoreId })), (input.JobName != null && { JobName: input.JobName })), (input.JobStatus != null && { JobStatus: input.JobStatus })), (input.MaxResults != null && { MaxResults: input.MaxResults })), (input.NextToken != null && { NextToken: input.NextToken })), (input.SubmittedAfter != null && { SubmittedAfter: Math.round(input.SubmittedAfter.getTime() / 1000) })), (input.SubmittedBefore != null && { SubmittedBefore: Math.round(input.SubmittedBefore.getTime() / 1000) }));
1070
1059
  };
1071
1060
  var serializeAws_json1_0ListTagsForResourceRequest = function (input, context) {
1072
- return __assign({}, (input.ResourceARN !== undefined && input.ResourceARN !== null && { ResourceARN: input.ResourceARN }));
1061
+ return __assign({}, (input.ResourceARN != null && { ResourceARN: input.ResourceARN }));
1073
1062
  };
1074
1063
  var serializeAws_json1_0OutputDataConfig = function (input, context) {
1075
1064
  return OutputDataConfig.visit(input, {
@@ -1078,39 +1067,32 @@ var serializeAws_json1_0OutputDataConfig = function (input, context) {
1078
1067
  });
1079
1068
  };
1080
1069
  var serializeAws_json1_0PreloadDataConfig = function (input, context) {
1081
- return __assign({}, (input.PreloadDataType !== undefined &&
1082
- input.PreloadDataType !== null && { PreloadDataType: input.PreloadDataType }));
1070
+ return __assign({}, (input.PreloadDataType != null && { PreloadDataType: input.PreloadDataType }));
1083
1071
  };
1084
1072
  var serializeAws_json1_0S3Configuration = function (input, context) {
1085
- return __assign(__assign({}, (input.KmsKeyId !== undefined && input.KmsKeyId !== null && { KmsKeyId: input.KmsKeyId })), (input.S3Uri !== undefined && input.S3Uri !== null && { S3Uri: input.S3Uri }));
1073
+ return __assign(__assign({}, (input.KmsKeyId != null && { KmsKeyId: input.KmsKeyId })), (input.S3Uri != null && { S3Uri: input.S3Uri }));
1086
1074
  };
1087
1075
  var serializeAws_json1_0SseConfiguration = function (input, context) {
1088
- return __assign({}, (input.KmsEncryptionConfig !== undefined &&
1089
- input.KmsEncryptionConfig !== null && {
1076
+ return __assign({}, (input.KmsEncryptionConfig != null && {
1090
1077
  KmsEncryptionConfig: serializeAws_json1_0KmsEncryptionConfig(input.KmsEncryptionConfig, context),
1091
1078
  }));
1092
1079
  };
1093
1080
  var serializeAws_json1_0StartFHIRExportJobRequest = function (input, context) {
1094
1081
  var _a;
1095
- return __assign(__assign(__assign(__assign({ ClientToken: (_a = input.ClientToken) !== null && _a !== void 0 ? _a : generateIdempotencyToken() }, (input.DataAccessRoleArn !== undefined &&
1096
- input.DataAccessRoleArn !== null && { DataAccessRoleArn: input.DataAccessRoleArn })), (input.DatastoreId !== undefined && input.DatastoreId !== null && { DatastoreId: input.DatastoreId })), (input.JobName !== undefined && input.JobName !== null && { JobName: input.JobName })), (input.OutputDataConfig !== undefined &&
1097
- input.OutputDataConfig !== null && {
1082
+ return __assign(__assign(__assign(__assign({ ClientToken: (_a = input.ClientToken) !== null && _a !== void 0 ? _a : generateIdempotencyToken() }, (input.DataAccessRoleArn != null && { DataAccessRoleArn: input.DataAccessRoleArn })), (input.DatastoreId != null && { DatastoreId: input.DatastoreId })), (input.JobName != null && { JobName: input.JobName })), (input.OutputDataConfig != null && {
1098
1083
  OutputDataConfig: serializeAws_json1_0OutputDataConfig(input.OutputDataConfig, context),
1099
1084
  }));
1100
1085
  };
1101
1086
  var serializeAws_json1_0StartFHIRImportJobRequest = function (input, context) {
1102
1087
  var _a;
1103
- return __assign(__assign(__assign(__assign(__assign({ ClientToken: (_a = input.ClientToken) !== null && _a !== void 0 ? _a : generateIdempotencyToken() }, (input.DataAccessRoleArn !== undefined &&
1104
- input.DataAccessRoleArn !== null && { DataAccessRoleArn: input.DataAccessRoleArn })), (input.DatastoreId !== undefined && input.DatastoreId !== null && { DatastoreId: input.DatastoreId })), (input.InputDataConfig !== undefined &&
1105
- input.InputDataConfig !== null && {
1088
+ return __assign(__assign(__assign(__assign(__assign({ ClientToken: (_a = input.ClientToken) !== null && _a !== void 0 ? _a : generateIdempotencyToken() }, (input.DataAccessRoleArn != null && { DataAccessRoleArn: input.DataAccessRoleArn })), (input.DatastoreId != null && { DatastoreId: input.DatastoreId })), (input.InputDataConfig != null && {
1106
1089
  InputDataConfig: serializeAws_json1_0InputDataConfig(input.InputDataConfig, context),
1107
- })), (input.JobName !== undefined && input.JobName !== null && { JobName: input.JobName })), (input.JobOutputDataConfig !== undefined &&
1108
- input.JobOutputDataConfig !== null && {
1090
+ })), (input.JobName != null && { JobName: input.JobName })), (input.JobOutputDataConfig != null && {
1109
1091
  JobOutputDataConfig: serializeAws_json1_0OutputDataConfig(input.JobOutputDataConfig, context),
1110
1092
  }));
1111
1093
  };
1112
1094
  var serializeAws_json1_0Tag = function (input, context) {
1113
- return __assign(__assign({}, (input.Key !== undefined && input.Key !== null && { Key: input.Key })), (input.Value !== undefined && input.Value !== null && { Value: input.Value }));
1095
+ return __assign(__assign({}, (input.Key != null && { Key: input.Key })), (input.Value != null && { Value: input.Value }));
1114
1096
  };
1115
1097
  var serializeAws_json1_0TagKeyList = function (input, context) {
1116
1098
  return input
@@ -1133,11 +1115,10 @@ var serializeAws_json1_0TagList = function (input, context) {
1133
1115
  });
1134
1116
  };
1135
1117
  var serializeAws_json1_0TagResourceRequest = function (input, context) {
1136
- return __assign(__assign({}, (input.ResourceARN !== undefined && input.ResourceARN !== null && { ResourceARN: input.ResourceARN })), (input.Tags !== undefined && input.Tags !== null && { Tags: serializeAws_json1_0TagList(input.Tags, context) }));
1118
+ return __assign(__assign({}, (input.ResourceARN != null && { ResourceARN: input.ResourceARN })), (input.Tags != null && { Tags: serializeAws_json1_0TagList(input.Tags, context) }));
1137
1119
  };
1138
1120
  var serializeAws_json1_0UntagResourceRequest = function (input, context) {
1139
- return __assign(__assign({}, (input.ResourceARN !== undefined && input.ResourceARN !== null && { ResourceARN: input.ResourceARN })), (input.TagKeys !== undefined &&
1140
- input.TagKeys !== null && { TagKeys: serializeAws_json1_0TagKeyList(input.TagKeys, context) }));
1121
+ return __assign(__assign({}, (input.ResourceARN != null && { ResourceARN: input.ResourceARN })), (input.TagKeys != null && { TagKeys: serializeAws_json1_0TagKeyList(input.TagKeys, context) }));
1141
1122
  };
1142
1123
  var deserializeAws_json1_0AccessDeniedException = function (output, context) {
1143
1124
  return {
@@ -1159,19 +1140,17 @@ var deserializeAws_json1_0CreateFHIRDatastoreResponse = function (output, contex
1159
1140
  };
1160
1141
  var deserializeAws_json1_0DatastoreProperties = function (output, context) {
1161
1142
  return {
1162
- CreatedAt: output.CreatedAt !== undefined && output.CreatedAt !== null
1163
- ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.CreatedAt)))
1164
- : undefined,
1143
+ CreatedAt: output.CreatedAt != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.CreatedAt))) : undefined,
1165
1144
  DatastoreArn: __expectString(output.DatastoreArn),
1166
1145
  DatastoreEndpoint: __expectString(output.DatastoreEndpoint),
1167
1146
  DatastoreId: __expectString(output.DatastoreId),
1168
1147
  DatastoreName: __expectString(output.DatastoreName),
1169
1148
  DatastoreStatus: __expectString(output.DatastoreStatus),
1170
1149
  DatastoreTypeVersion: __expectString(output.DatastoreTypeVersion),
1171
- PreloadDataConfig: output.PreloadDataConfig !== undefined && output.PreloadDataConfig !== null
1150
+ PreloadDataConfig: output.PreloadDataConfig != null
1172
1151
  ? deserializeAws_json1_0PreloadDataConfig(output.PreloadDataConfig, context)
1173
1152
  : undefined,
1174
- SseConfiguration: output.SseConfiguration !== undefined && output.SseConfiguration !== null
1153
+ SseConfiguration: output.SseConfiguration != null
1175
1154
  ? deserializeAws_json1_0SseConfiguration(output.SseConfiguration, context)
1176
1155
  : undefined,
1177
1156
  };
@@ -1197,21 +1176,21 @@ var deserializeAws_json1_0DeleteFHIRDatastoreResponse = function (output, contex
1197
1176
  };
1198
1177
  var deserializeAws_json1_0DescribeFHIRDatastoreResponse = function (output, context) {
1199
1178
  return {
1200
- DatastoreProperties: output.DatastoreProperties !== undefined && output.DatastoreProperties !== null
1179
+ DatastoreProperties: output.DatastoreProperties != null
1201
1180
  ? deserializeAws_json1_0DatastoreProperties(output.DatastoreProperties, context)
1202
1181
  : undefined,
1203
1182
  };
1204
1183
  };
1205
1184
  var deserializeAws_json1_0DescribeFHIRExportJobResponse = function (output, context) {
1206
1185
  return {
1207
- ExportJobProperties: output.ExportJobProperties !== undefined && output.ExportJobProperties !== null
1186
+ ExportJobProperties: output.ExportJobProperties != null
1208
1187
  ? deserializeAws_json1_0ExportJobProperties(output.ExportJobProperties, context)
1209
1188
  : undefined,
1210
1189
  };
1211
1190
  };
1212
1191
  var deserializeAws_json1_0DescribeFHIRImportJobResponse = function (output, context) {
1213
1192
  return {
1214
- ImportJobProperties: output.ImportJobProperties !== undefined && output.ImportJobProperties !== null
1193
+ ImportJobProperties: output.ImportJobProperties != null
1215
1194
  ? deserializeAws_json1_0ImportJobProperties(output.ImportJobProperties, context)
1216
1195
  : undefined,
1217
1196
  };
@@ -1220,19 +1199,15 @@ var deserializeAws_json1_0ExportJobProperties = function (output, context) {
1220
1199
  return {
1221
1200
  DataAccessRoleArn: __expectString(output.DataAccessRoleArn),
1222
1201
  DatastoreId: __expectString(output.DatastoreId),
1223
- EndTime: output.EndTime !== undefined && output.EndTime !== null
1224
- ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.EndTime)))
1225
- : undefined,
1202
+ EndTime: output.EndTime != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.EndTime))) : undefined,
1226
1203
  JobId: __expectString(output.JobId),
1227
1204
  JobName: __expectString(output.JobName),
1228
1205
  JobStatus: __expectString(output.JobStatus),
1229
1206
  Message: __expectString(output.Message),
1230
- OutputDataConfig: output.OutputDataConfig !== undefined && output.OutputDataConfig !== null
1207
+ OutputDataConfig: output.OutputDataConfig != null
1231
1208
  ? deserializeAws_json1_0OutputDataConfig(__expectUnion(output.OutputDataConfig), context)
1232
1209
  : undefined,
1233
- SubmitTime: output.SubmitTime !== undefined && output.SubmitTime !== null
1234
- ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.SubmitTime)))
1235
- : undefined,
1210
+ SubmitTime: output.SubmitTime != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.SubmitTime))) : undefined,
1236
1211
  };
1237
1212
  };
1238
1213
  var deserializeAws_json1_0ExportJobPropertiesList = function (output, context) {
@@ -1250,22 +1225,18 @@ var deserializeAws_json1_0ImportJobProperties = function (output, context) {
1250
1225
  return {
1251
1226
  DataAccessRoleArn: __expectString(output.DataAccessRoleArn),
1252
1227
  DatastoreId: __expectString(output.DatastoreId),
1253
- EndTime: output.EndTime !== undefined && output.EndTime !== null
1254
- ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.EndTime)))
1255
- : undefined,
1256
- InputDataConfig: output.InputDataConfig !== undefined && output.InputDataConfig !== null
1228
+ EndTime: output.EndTime != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.EndTime))) : undefined,
1229
+ InputDataConfig: output.InputDataConfig != null
1257
1230
  ? deserializeAws_json1_0InputDataConfig(__expectUnion(output.InputDataConfig), context)
1258
1231
  : undefined,
1259
1232
  JobId: __expectString(output.JobId),
1260
1233
  JobName: __expectString(output.JobName),
1261
- JobOutputDataConfig: output.JobOutputDataConfig !== undefined && output.JobOutputDataConfig !== null
1234
+ JobOutputDataConfig: output.JobOutputDataConfig != null
1262
1235
  ? deserializeAws_json1_0OutputDataConfig(__expectUnion(output.JobOutputDataConfig), context)
1263
1236
  : undefined,
1264
1237
  JobStatus: __expectString(output.JobStatus),
1265
1238
  Message: __expectString(output.Message),
1266
- SubmitTime: output.SubmitTime !== undefined && output.SubmitTime !== null
1267
- ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.SubmitTime)))
1268
- : undefined,
1239
+ SubmitTime: output.SubmitTime != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.SubmitTime))) : undefined,
1269
1240
  };
1270
1241
  };
1271
1242
  var deserializeAws_json1_0ImportJobPropertiesList = function (output, context) {
@@ -1298,7 +1269,7 @@ var deserializeAws_json1_0KmsEncryptionConfig = function (output, context) {
1298
1269
  };
1299
1270
  var deserializeAws_json1_0ListFHIRDatastoresResponse = function (output, context) {
1300
1271
  return {
1301
- DatastorePropertiesList: output.DatastorePropertiesList !== undefined && output.DatastorePropertiesList !== null
1272
+ DatastorePropertiesList: output.DatastorePropertiesList != null
1302
1273
  ? deserializeAws_json1_0DatastorePropertiesList(output.DatastorePropertiesList, context)
1303
1274
  : undefined,
1304
1275
  NextToken: __expectString(output.NextToken),
@@ -1306,7 +1277,7 @@ var deserializeAws_json1_0ListFHIRDatastoresResponse = function (output, context
1306
1277
  };
1307
1278
  var deserializeAws_json1_0ListFHIRExportJobsResponse = function (output, context) {
1308
1279
  return {
1309
- ExportJobPropertiesList: output.ExportJobPropertiesList !== undefined && output.ExportJobPropertiesList !== null
1280
+ ExportJobPropertiesList: output.ExportJobPropertiesList != null
1310
1281
  ? deserializeAws_json1_0ExportJobPropertiesList(output.ExportJobPropertiesList, context)
1311
1282
  : undefined,
1312
1283
  NextToken: __expectString(output.NextToken),
@@ -1314,7 +1285,7 @@ var deserializeAws_json1_0ListFHIRExportJobsResponse = function (output, context
1314
1285
  };
1315
1286
  var deserializeAws_json1_0ListFHIRImportJobsResponse = function (output, context) {
1316
1287
  return {
1317
- ImportJobPropertiesList: output.ImportJobPropertiesList !== undefined && output.ImportJobPropertiesList !== null
1288
+ ImportJobPropertiesList: output.ImportJobPropertiesList != null
1318
1289
  ? deserializeAws_json1_0ImportJobPropertiesList(output.ImportJobPropertiesList, context)
1319
1290
  : undefined,
1320
1291
  NextToken: __expectString(output.NextToken),
@@ -1322,9 +1293,7 @@ var deserializeAws_json1_0ListFHIRImportJobsResponse = function (output, context
1322
1293
  };
1323
1294
  var deserializeAws_json1_0ListTagsForResourceResponse = function (output, context) {
1324
1295
  return {
1325
- Tags: output.Tags !== undefined && output.Tags !== null
1326
- ? deserializeAws_json1_0TagList(output.Tags, context)
1327
- : undefined,
1296
+ Tags: output.Tags != null ? deserializeAws_json1_0TagList(output.Tags, context) : undefined,
1328
1297
  };
1329
1298
  };
1330
1299
  var deserializeAws_json1_0OutputDataConfig = function (output, context) {
@@ -1353,7 +1322,7 @@ var deserializeAws_json1_0S3Configuration = function (output, context) {
1353
1322
  };
1354
1323
  var deserializeAws_json1_0SseConfiguration = function (output, context) {
1355
1324
  return {
1356
- KmsEncryptionConfig: output.KmsEncryptionConfig !== undefined && output.KmsEncryptionConfig !== null
1325
+ KmsEncryptionConfig: output.KmsEncryptionConfig != null
1357
1326
  ? deserializeAws_json1_0KmsEncryptionConfig(output.KmsEncryptionConfig, context)
1358
1327
  : undefined,
1359
1328
  };
@@ -1461,6 +1430,9 @@ var loadRestJsonErrorCode = function (output, data) {
1461
1430
  var findKey = function (object, key) { return Object.keys(object).find(function (k) { return k.toLowerCase() === key.toLowerCase(); }); };
1462
1431
  var sanitizeErrorCode = function (rawValue) {
1463
1432
  var cleanValue = rawValue;
1433
+ if (typeof cleanValue === "number") {
1434
+ cleanValue = cleanValue.toString();
1435
+ }
1464
1436
  if (cleanValue.indexOf(":") >= 0) {
1465
1437
  cleanValue = cleanValue.split(":")[0];
1466
1438
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-healthlake",
3
3
  "description": "AWS SDK for JavaScript Healthlake Client for Node.js, Browser and React Native",
4
- "version": "3.121.0",
4
+ "version": "3.130.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.130.0",
22
+ "@aws-sdk/config-resolver": "3.130.0",
23
+ "@aws-sdk/credential-provider-node": "3.130.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.130.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.130.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",