@aws-sdk/client-cloudhsm-v2 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-cloudhsm-v2
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-cloudhsm-v2
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
 
@@ -967,75 +967,66 @@ const deserializeAws_json1_1CloudHsmTagExceptionResponse = async (parsedOutput,
967
967
  };
968
968
  const serializeAws_json1_1BackupRetentionPolicy = (input, context) => {
969
969
  return {
970
- ...(input.Type !== undefined && input.Type !== null && { Type: input.Type }),
971
- ...(input.Value !== undefined && input.Value !== null && { Value: input.Value }),
970
+ ...(input.Type != null && { Type: input.Type }),
971
+ ...(input.Value != null && { Value: input.Value }),
972
972
  };
973
973
  };
974
974
  const serializeAws_json1_1CopyBackupToRegionRequest = (input, context) => {
975
975
  return {
976
- ...(input.BackupId !== undefined && input.BackupId !== null && { BackupId: input.BackupId }),
977
- ...(input.DestinationRegion !== undefined &&
978
- input.DestinationRegion !== null && { DestinationRegion: input.DestinationRegion }),
979
- ...(input.TagList !== undefined &&
980
- input.TagList !== null && { TagList: serializeAws_json1_1TagList(input.TagList, context) }),
976
+ ...(input.BackupId != null && { BackupId: input.BackupId }),
977
+ ...(input.DestinationRegion != null && { DestinationRegion: input.DestinationRegion }),
978
+ ...(input.TagList != null && { TagList: serializeAws_json1_1TagList(input.TagList, context) }),
981
979
  };
982
980
  };
983
981
  const serializeAws_json1_1CreateClusterRequest = (input, context) => {
984
982
  return {
985
- ...(input.BackupRetentionPolicy !== undefined &&
986
- input.BackupRetentionPolicy !== null && {
983
+ ...(input.BackupRetentionPolicy != null && {
987
984
  BackupRetentionPolicy: serializeAws_json1_1BackupRetentionPolicy(input.BackupRetentionPolicy, context),
988
985
  }),
989
- ...(input.HsmType !== undefined && input.HsmType !== null && { HsmType: input.HsmType }),
990
- ...(input.SourceBackupId !== undefined &&
991
- input.SourceBackupId !== null && { SourceBackupId: input.SourceBackupId }),
992
- ...(input.SubnetIds !== undefined &&
993
- input.SubnetIds !== null && { SubnetIds: serializeAws_json1_1SubnetIds(input.SubnetIds, context) }),
994
- ...(input.TagList !== undefined &&
995
- input.TagList !== null && { TagList: serializeAws_json1_1TagList(input.TagList, context) }),
986
+ ...(input.HsmType != null && { HsmType: input.HsmType }),
987
+ ...(input.SourceBackupId != null && { SourceBackupId: input.SourceBackupId }),
988
+ ...(input.SubnetIds != null && { SubnetIds: serializeAws_json1_1SubnetIds(input.SubnetIds, context) }),
989
+ ...(input.TagList != null && { TagList: serializeAws_json1_1TagList(input.TagList, context) }),
996
990
  };
997
991
  };
998
992
  const serializeAws_json1_1CreateHsmRequest = (input, context) => {
999
993
  return {
1000
- ...(input.AvailabilityZone !== undefined &&
1001
- input.AvailabilityZone !== null && { AvailabilityZone: input.AvailabilityZone }),
1002
- ...(input.ClusterId !== undefined && input.ClusterId !== null && { ClusterId: input.ClusterId }),
1003
- ...(input.IpAddress !== undefined && input.IpAddress !== null && { IpAddress: input.IpAddress }),
994
+ ...(input.AvailabilityZone != null && { AvailabilityZone: input.AvailabilityZone }),
995
+ ...(input.ClusterId != null && { ClusterId: input.ClusterId }),
996
+ ...(input.IpAddress != null && { IpAddress: input.IpAddress }),
1004
997
  };
1005
998
  };
1006
999
  const serializeAws_json1_1DeleteBackupRequest = (input, context) => {
1007
1000
  return {
1008
- ...(input.BackupId !== undefined && input.BackupId !== null && { BackupId: input.BackupId }),
1001
+ ...(input.BackupId != null && { BackupId: input.BackupId }),
1009
1002
  };
1010
1003
  };
1011
1004
  const serializeAws_json1_1DeleteClusterRequest = (input, context) => {
1012
1005
  return {
1013
- ...(input.ClusterId !== undefined && input.ClusterId !== null && { ClusterId: input.ClusterId }),
1006
+ ...(input.ClusterId != null && { ClusterId: input.ClusterId }),
1014
1007
  };
1015
1008
  };
1016
1009
  const serializeAws_json1_1DeleteHsmRequest = (input, context) => {
1017
1010
  return {
1018
- ...(input.ClusterId !== undefined && input.ClusterId !== null && { ClusterId: input.ClusterId }),
1019
- ...(input.EniId !== undefined && input.EniId !== null && { EniId: input.EniId }),
1020
- ...(input.EniIp !== undefined && input.EniIp !== null && { EniIp: input.EniIp }),
1021
- ...(input.HsmId !== undefined && input.HsmId !== null && { HsmId: input.HsmId }),
1011
+ ...(input.ClusterId != null && { ClusterId: input.ClusterId }),
1012
+ ...(input.EniId != null && { EniId: input.EniId }),
1013
+ ...(input.EniIp != null && { EniIp: input.EniIp }),
1014
+ ...(input.HsmId != null && { HsmId: input.HsmId }),
1022
1015
  };
1023
1016
  };
1024
1017
  const serializeAws_json1_1DescribeBackupsRequest = (input, context) => {
1025
1018
  return {
1026
- ...(input.Filters !== undefined &&
1027
- input.Filters !== null && { Filters: serializeAws_json1_1Filters(input.Filters, context) }),
1028
- ...(input.MaxResults !== undefined && input.MaxResults !== null && { MaxResults: input.MaxResults }),
1029
- ...(input.NextToken !== undefined && input.NextToken !== null && { NextToken: input.NextToken }),
1030
- ...(input.SortAscending !== undefined && input.SortAscending !== null && { SortAscending: input.SortAscending }),
1019
+ ...(input.Filters != null && { Filters: serializeAws_json1_1Filters(input.Filters, context) }),
1020
+ ...(input.MaxResults != null && { MaxResults: input.MaxResults }),
1021
+ ...(input.NextToken != null && { NextToken: input.NextToken }),
1022
+ ...(input.SortAscending != null && { SortAscending: input.SortAscending }),
1031
1023
  };
1032
1024
  };
1033
1025
  const serializeAws_json1_1DescribeClustersRequest = (input, context) => {
1034
1026
  return {
1035
- ...(input.Filters !== undefined &&
1036
- input.Filters !== null && { Filters: serializeAws_json1_1Filters(input.Filters, context) }),
1037
- ...(input.MaxResults !== undefined && input.MaxResults !== null && { MaxResults: input.MaxResults }),
1038
- ...(input.NextToken !== undefined && input.NextToken !== null && { NextToken: input.NextToken }),
1027
+ ...(input.Filters != null && { Filters: serializeAws_json1_1Filters(input.Filters, context) }),
1028
+ ...(input.MaxResults != null && { MaxResults: input.MaxResults }),
1029
+ ...(input.NextToken != null && { NextToken: input.NextToken }),
1039
1030
  };
1040
1031
  };
1041
1032
  const serializeAws_json1_1Filters = (input, context) => {
@@ -1051,36 +1042,35 @@ const serializeAws_json1_1Filters = (input, context) => {
1051
1042
  };
1052
1043
  const serializeAws_json1_1InitializeClusterRequest = (input, context) => {
1053
1044
  return {
1054
- ...(input.ClusterId !== undefined && input.ClusterId !== null && { ClusterId: input.ClusterId }),
1055
- ...(input.SignedCert !== undefined && input.SignedCert !== null && { SignedCert: input.SignedCert }),
1056
- ...(input.TrustAnchor !== undefined && input.TrustAnchor !== null && { TrustAnchor: input.TrustAnchor }),
1045
+ ...(input.ClusterId != null && { ClusterId: input.ClusterId }),
1046
+ ...(input.SignedCert != null && { SignedCert: input.SignedCert }),
1047
+ ...(input.TrustAnchor != null && { TrustAnchor: input.TrustAnchor }),
1057
1048
  };
1058
1049
  };
1059
1050
  const serializeAws_json1_1ListTagsRequest = (input, context) => {
1060
1051
  return {
1061
- ...(input.MaxResults !== undefined && input.MaxResults !== null && { MaxResults: input.MaxResults }),
1062
- ...(input.NextToken !== undefined && input.NextToken !== null && { NextToken: input.NextToken }),
1063
- ...(input.ResourceId !== undefined && input.ResourceId !== null && { ResourceId: input.ResourceId }),
1052
+ ...(input.MaxResults != null && { MaxResults: input.MaxResults }),
1053
+ ...(input.NextToken != null && { NextToken: input.NextToken }),
1054
+ ...(input.ResourceId != null && { ResourceId: input.ResourceId }),
1064
1055
  };
1065
1056
  };
1066
1057
  const serializeAws_json1_1ModifyBackupAttributesRequest = (input, context) => {
1067
1058
  return {
1068
- ...(input.BackupId !== undefined && input.BackupId !== null && { BackupId: input.BackupId }),
1069
- ...(input.NeverExpires !== undefined && input.NeverExpires !== null && { NeverExpires: input.NeverExpires }),
1059
+ ...(input.BackupId != null && { BackupId: input.BackupId }),
1060
+ ...(input.NeverExpires != null && { NeverExpires: input.NeverExpires }),
1070
1061
  };
1071
1062
  };
1072
1063
  const serializeAws_json1_1ModifyClusterRequest = (input, context) => {
1073
1064
  return {
1074
- ...(input.BackupRetentionPolicy !== undefined &&
1075
- input.BackupRetentionPolicy !== null && {
1065
+ ...(input.BackupRetentionPolicy != null && {
1076
1066
  BackupRetentionPolicy: serializeAws_json1_1BackupRetentionPolicy(input.BackupRetentionPolicy, context),
1077
1067
  }),
1078
- ...(input.ClusterId !== undefined && input.ClusterId !== null && { ClusterId: input.ClusterId }),
1068
+ ...(input.ClusterId != null && { ClusterId: input.ClusterId }),
1079
1069
  };
1080
1070
  };
1081
1071
  const serializeAws_json1_1RestoreBackupRequest = (input, context) => {
1082
1072
  return {
1083
- ...(input.BackupId !== undefined && input.BackupId !== null && { BackupId: input.BackupId }),
1073
+ ...(input.BackupId != null && { BackupId: input.BackupId }),
1084
1074
  };
1085
1075
  };
1086
1076
  const serializeAws_json1_1Strings = (input, context) => {
@@ -1105,8 +1095,8 @@ const serializeAws_json1_1SubnetIds = (input, context) => {
1105
1095
  };
1106
1096
  const serializeAws_json1_1Tag = (input, context) => {
1107
1097
  return {
1108
- ...(input.Key !== undefined && input.Key !== null && { Key: input.Key }),
1109
- ...(input.Value !== undefined && input.Value !== null && { Value: input.Value }),
1098
+ ...(input.Key != null && { Key: input.Key }),
1099
+ ...(input.Value != null && { Value: input.Value }),
1110
1100
  };
1111
1101
  };
1112
1102
  const serializeAws_json1_1TagKeyList = (input, context) => {
@@ -1131,16 +1121,14 @@ const serializeAws_json1_1TagList = (input, context) => {
1131
1121
  };
1132
1122
  const serializeAws_json1_1TagResourceRequest = (input, context) => {
1133
1123
  return {
1134
- ...(input.ResourceId !== undefined && input.ResourceId !== null && { ResourceId: input.ResourceId }),
1135
- ...(input.TagList !== undefined &&
1136
- input.TagList !== null && { TagList: serializeAws_json1_1TagList(input.TagList, context) }),
1124
+ ...(input.ResourceId != null && { ResourceId: input.ResourceId }),
1125
+ ...(input.TagList != null && { TagList: serializeAws_json1_1TagList(input.TagList, context) }),
1137
1126
  };
1138
1127
  };
1139
1128
  const serializeAws_json1_1UntagResourceRequest = (input, context) => {
1140
1129
  return {
1141
- ...(input.ResourceId !== undefined && input.ResourceId !== null && { ResourceId: input.ResourceId }),
1142
- ...(input.TagKeyList !== undefined &&
1143
- input.TagKeyList !== null && { TagKeyList: serializeAws_json1_1TagKeyList(input.TagKeyList, context) }),
1130
+ ...(input.ResourceId != null && { ResourceId: input.ResourceId }),
1131
+ ...(input.TagKeyList != null && { TagKeyList: serializeAws_json1_1TagKeyList(input.TagKeyList, context) }),
1144
1132
  };
1145
1133
  };
1146
1134
  const deserializeAws_json1_1Backup = (output, context) => {
@@ -1148,22 +1136,20 @@ const deserializeAws_json1_1Backup = (output, context) => {
1148
1136
  BackupId: (0, smithy_client_1.expectString)(output.BackupId),
1149
1137
  BackupState: (0, smithy_client_1.expectString)(output.BackupState),
1150
1138
  ClusterId: (0, smithy_client_1.expectString)(output.ClusterId),
1151
- CopyTimestamp: output.CopyTimestamp !== undefined && output.CopyTimestamp !== null
1139
+ CopyTimestamp: output.CopyTimestamp != null
1152
1140
  ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.CopyTimestamp)))
1153
1141
  : undefined,
1154
- CreateTimestamp: output.CreateTimestamp !== undefined && output.CreateTimestamp !== null
1142
+ CreateTimestamp: output.CreateTimestamp != null
1155
1143
  ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.CreateTimestamp)))
1156
1144
  : undefined,
1157
- DeleteTimestamp: output.DeleteTimestamp !== undefined && output.DeleteTimestamp !== null
1145
+ DeleteTimestamp: output.DeleteTimestamp != null
1158
1146
  ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.DeleteTimestamp)))
1159
1147
  : undefined,
1160
1148
  NeverExpires: (0, smithy_client_1.expectBoolean)(output.NeverExpires),
1161
1149
  SourceBackup: (0, smithy_client_1.expectString)(output.SourceBackup),
1162
1150
  SourceCluster: (0, smithy_client_1.expectString)(output.SourceCluster),
1163
1151
  SourceRegion: (0, smithy_client_1.expectString)(output.SourceRegion),
1164
- TagList: output.TagList !== undefined && output.TagList !== null
1165
- ? deserializeAws_json1_1TagList(output.TagList, context)
1166
- : undefined,
1152
+ TagList: output.TagList != null ? deserializeAws_json1_1TagList(output.TagList, context) : undefined,
1167
1153
  };
1168
1154
  };
1169
1155
  const deserializeAws_json1_1BackupRetentionPolicy = (output, context) => {
@@ -1225,29 +1211,25 @@ const deserializeAws_json1_1CloudHsmTagException = (output, context) => {
1225
1211
  const deserializeAws_json1_1Cluster = (output, context) => {
1226
1212
  return {
1227
1213
  BackupPolicy: (0, smithy_client_1.expectString)(output.BackupPolicy),
1228
- BackupRetentionPolicy: output.BackupRetentionPolicy !== undefined && output.BackupRetentionPolicy !== null
1214
+ BackupRetentionPolicy: output.BackupRetentionPolicy != null
1229
1215
  ? deserializeAws_json1_1BackupRetentionPolicy(output.BackupRetentionPolicy, context)
1230
1216
  : undefined,
1231
- Certificates: output.Certificates !== undefined && output.Certificates !== null
1232
- ? deserializeAws_json1_1Certificates(output.Certificates, context)
1233
- : undefined,
1217
+ Certificates: output.Certificates != null ? deserializeAws_json1_1Certificates(output.Certificates, context) : undefined,
1234
1218
  ClusterId: (0, smithy_client_1.expectString)(output.ClusterId),
1235
- CreateTimestamp: output.CreateTimestamp !== undefined && output.CreateTimestamp !== null
1219
+ CreateTimestamp: output.CreateTimestamp != null
1236
1220
  ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.CreateTimestamp)))
1237
1221
  : undefined,
1238
1222
  HsmType: (0, smithy_client_1.expectString)(output.HsmType),
1239
- Hsms: output.Hsms !== undefined && output.Hsms !== null ? deserializeAws_json1_1Hsms(output.Hsms, context) : undefined,
1223
+ Hsms: output.Hsms != null ? deserializeAws_json1_1Hsms(output.Hsms, context) : undefined,
1240
1224
  PreCoPassword: (0, smithy_client_1.expectString)(output.PreCoPassword),
1241
1225
  SecurityGroup: (0, smithy_client_1.expectString)(output.SecurityGroup),
1242
1226
  SourceBackupId: (0, smithy_client_1.expectString)(output.SourceBackupId),
1243
1227
  State: (0, smithy_client_1.expectString)(output.State),
1244
1228
  StateMessage: (0, smithy_client_1.expectString)(output.StateMessage),
1245
- SubnetMapping: output.SubnetMapping !== undefined && output.SubnetMapping !== null
1229
+ SubnetMapping: output.SubnetMapping != null
1246
1230
  ? deserializeAws_json1_1ExternalSubnetMapping(output.SubnetMapping, context)
1247
1231
  : undefined,
1248
- TagList: output.TagList !== undefined && output.TagList !== null
1249
- ? deserializeAws_json1_1TagList(output.TagList, context)
1250
- : undefined,
1232
+ TagList: output.TagList != null ? deserializeAws_json1_1TagList(output.TagList, context) : undefined,
1251
1233
  VpcId: (0, smithy_client_1.expectString)(output.VpcId),
1252
1234
  };
1253
1235
  };
@@ -1264,35 +1246,29 @@ const deserializeAws_json1_1Clusters = (output, context) => {
1264
1246
  };
1265
1247
  const deserializeAws_json1_1CopyBackupToRegionResponse = (output, context) => {
1266
1248
  return {
1267
- DestinationBackup: output.DestinationBackup !== undefined && output.DestinationBackup !== null
1249
+ DestinationBackup: output.DestinationBackup != null
1268
1250
  ? deserializeAws_json1_1DestinationBackup(output.DestinationBackup, context)
1269
1251
  : undefined,
1270
1252
  };
1271
1253
  };
1272
1254
  const deserializeAws_json1_1CreateClusterResponse = (output, context) => {
1273
1255
  return {
1274
- Cluster: output.Cluster !== undefined && output.Cluster !== null
1275
- ? deserializeAws_json1_1Cluster(output.Cluster, context)
1276
- : undefined,
1256
+ Cluster: output.Cluster != null ? deserializeAws_json1_1Cluster(output.Cluster, context) : undefined,
1277
1257
  };
1278
1258
  };
1279
1259
  const deserializeAws_json1_1CreateHsmResponse = (output, context) => {
1280
1260
  return {
1281
- Hsm: output.Hsm !== undefined && output.Hsm !== null ? deserializeAws_json1_1Hsm(output.Hsm, context) : undefined,
1261
+ Hsm: output.Hsm != null ? deserializeAws_json1_1Hsm(output.Hsm, context) : undefined,
1282
1262
  };
1283
1263
  };
1284
1264
  const deserializeAws_json1_1DeleteBackupResponse = (output, context) => {
1285
1265
  return {
1286
- Backup: output.Backup !== undefined && output.Backup !== null
1287
- ? deserializeAws_json1_1Backup(output.Backup, context)
1288
- : undefined,
1266
+ Backup: output.Backup != null ? deserializeAws_json1_1Backup(output.Backup, context) : undefined,
1289
1267
  };
1290
1268
  };
1291
1269
  const deserializeAws_json1_1DeleteClusterResponse = (output, context) => {
1292
1270
  return {
1293
- Cluster: output.Cluster !== undefined && output.Cluster !== null
1294
- ? deserializeAws_json1_1Cluster(output.Cluster, context)
1295
- : undefined,
1271
+ Cluster: output.Cluster != null ? deserializeAws_json1_1Cluster(output.Cluster, context) : undefined,
1296
1272
  };
1297
1273
  };
1298
1274
  const deserializeAws_json1_1DeleteHsmResponse = (output, context) => {
@@ -1302,23 +1278,19 @@ const deserializeAws_json1_1DeleteHsmResponse = (output, context) => {
1302
1278
  };
1303
1279
  const deserializeAws_json1_1DescribeBackupsResponse = (output, context) => {
1304
1280
  return {
1305
- Backups: output.Backups !== undefined && output.Backups !== null
1306
- ? deserializeAws_json1_1Backups(output.Backups, context)
1307
- : undefined,
1281
+ Backups: output.Backups != null ? deserializeAws_json1_1Backups(output.Backups, context) : undefined,
1308
1282
  NextToken: (0, smithy_client_1.expectString)(output.NextToken),
1309
1283
  };
1310
1284
  };
1311
1285
  const deserializeAws_json1_1DescribeClustersResponse = (output, context) => {
1312
1286
  return {
1313
- Clusters: output.Clusters !== undefined && output.Clusters !== null
1314
- ? deserializeAws_json1_1Clusters(output.Clusters, context)
1315
- : undefined,
1287
+ Clusters: output.Clusters != null ? deserializeAws_json1_1Clusters(output.Clusters, context) : undefined,
1316
1288
  NextToken: (0, smithy_client_1.expectString)(output.NextToken),
1317
1289
  };
1318
1290
  };
1319
1291
  const deserializeAws_json1_1DestinationBackup = (output, context) => {
1320
1292
  return {
1321
- CreateTimestamp: output.CreateTimestamp !== undefined && output.CreateTimestamp !== null
1293
+ CreateTimestamp: output.CreateTimestamp != null
1322
1294
  ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.CreateTimestamp)))
1323
1295
  : undefined,
1324
1296
  SourceBackup: (0, smithy_client_1.expectString)(output.SourceBackup),
@@ -1369,30 +1341,22 @@ const deserializeAws_json1_1InitializeClusterResponse = (output, context) => {
1369
1341
  const deserializeAws_json1_1ListTagsResponse = (output, context) => {
1370
1342
  return {
1371
1343
  NextToken: (0, smithy_client_1.expectString)(output.NextToken),
1372
- TagList: output.TagList !== undefined && output.TagList !== null
1373
- ? deserializeAws_json1_1TagList(output.TagList, context)
1374
- : undefined,
1344
+ TagList: output.TagList != null ? deserializeAws_json1_1TagList(output.TagList, context) : undefined,
1375
1345
  };
1376
1346
  };
1377
1347
  const deserializeAws_json1_1ModifyBackupAttributesResponse = (output, context) => {
1378
1348
  return {
1379
- Backup: output.Backup !== undefined && output.Backup !== null
1380
- ? deserializeAws_json1_1Backup(output.Backup, context)
1381
- : undefined,
1349
+ Backup: output.Backup != null ? deserializeAws_json1_1Backup(output.Backup, context) : undefined,
1382
1350
  };
1383
1351
  };
1384
1352
  const deserializeAws_json1_1ModifyClusterResponse = (output, context) => {
1385
1353
  return {
1386
- Cluster: output.Cluster !== undefined && output.Cluster !== null
1387
- ? deserializeAws_json1_1Cluster(output.Cluster, context)
1388
- : undefined,
1354
+ Cluster: output.Cluster != null ? deserializeAws_json1_1Cluster(output.Cluster, context) : undefined,
1389
1355
  };
1390
1356
  };
1391
1357
  const deserializeAws_json1_1RestoreBackupResponse = (output, context) => {
1392
1358
  return {
1393
- Backup: output.Backup !== undefined && output.Backup !== null
1394
- ? deserializeAws_json1_1Backup(output.Backup, context)
1395
- : undefined,
1359
+ Backup: output.Backup != null ? deserializeAws_json1_1Backup(output.Backup, context) : undefined,
1396
1360
  };
1397
1361
  };
1398
1362
  const deserializeAws_json1_1Tag = (output, context) => {
@@ -1462,6 +1426,9 @@ const loadRestJsonErrorCode = (output, data) => {
1462
1426
  const findKey = (object, key) => Object.keys(object).find((k) => k.toLowerCase() === key.toLowerCase());
1463
1427
  const sanitizeErrorCode = (rawValue) => {
1464
1428
  let cleanValue = rawValue;
1429
+ if (typeof cleanValue === "number") {
1430
+ cleanValue = cleanValue.toString();
1431
+ }
1465
1432
  if (cleanValue.indexOf(":") >= 0) {
1466
1433
  cleanValue = cleanValue.split(":")[0];
1467
1434
  }
@@ -1256,42 +1256,33 @@ var deserializeAws_json1_1CloudHsmTagExceptionResponse = function (parsedOutput,
1256
1256
  });
1257
1257
  }); };
1258
1258
  var serializeAws_json1_1BackupRetentionPolicy = function (input, context) {
1259
- return __assign(__assign({}, (input.Type !== undefined && input.Type !== null && { Type: input.Type })), (input.Value !== undefined && input.Value !== null && { Value: input.Value }));
1259
+ return __assign(__assign({}, (input.Type != null && { Type: input.Type })), (input.Value != null && { Value: input.Value }));
1260
1260
  };
1261
1261
  var serializeAws_json1_1CopyBackupToRegionRequest = function (input, context) {
1262
- return __assign(__assign(__assign({}, (input.BackupId !== undefined && input.BackupId !== null && { BackupId: input.BackupId })), (input.DestinationRegion !== undefined &&
1263
- input.DestinationRegion !== null && { DestinationRegion: input.DestinationRegion })), (input.TagList !== undefined &&
1264
- input.TagList !== null && { TagList: serializeAws_json1_1TagList(input.TagList, context) }));
1262
+ return __assign(__assign(__assign({}, (input.BackupId != null && { BackupId: input.BackupId })), (input.DestinationRegion != null && { DestinationRegion: input.DestinationRegion })), (input.TagList != null && { TagList: serializeAws_json1_1TagList(input.TagList, context) }));
1265
1263
  };
1266
1264
  var serializeAws_json1_1CreateClusterRequest = function (input, context) {
1267
- return __assign(__assign(__assign(__assign(__assign({}, (input.BackupRetentionPolicy !== undefined &&
1268
- input.BackupRetentionPolicy !== null && {
1265
+ return __assign(__assign(__assign(__assign(__assign({}, (input.BackupRetentionPolicy != null && {
1269
1266
  BackupRetentionPolicy: serializeAws_json1_1BackupRetentionPolicy(input.BackupRetentionPolicy, context),
1270
- })), (input.HsmType !== undefined && input.HsmType !== null && { HsmType: input.HsmType })), (input.SourceBackupId !== undefined &&
1271
- input.SourceBackupId !== null && { SourceBackupId: input.SourceBackupId })), (input.SubnetIds !== undefined &&
1272
- input.SubnetIds !== null && { SubnetIds: serializeAws_json1_1SubnetIds(input.SubnetIds, context) })), (input.TagList !== undefined &&
1273
- input.TagList !== null && { TagList: serializeAws_json1_1TagList(input.TagList, context) }));
1267
+ })), (input.HsmType != null && { HsmType: input.HsmType })), (input.SourceBackupId != null && { SourceBackupId: input.SourceBackupId })), (input.SubnetIds != null && { SubnetIds: serializeAws_json1_1SubnetIds(input.SubnetIds, context) })), (input.TagList != null && { TagList: serializeAws_json1_1TagList(input.TagList, context) }));
1274
1268
  };
1275
1269
  var serializeAws_json1_1CreateHsmRequest = function (input, context) {
1276
- return __assign(__assign(__assign({}, (input.AvailabilityZone !== undefined &&
1277
- input.AvailabilityZone !== null && { AvailabilityZone: input.AvailabilityZone })), (input.ClusterId !== undefined && input.ClusterId !== null && { ClusterId: input.ClusterId })), (input.IpAddress !== undefined && input.IpAddress !== null && { IpAddress: input.IpAddress }));
1270
+ return __assign(__assign(__assign({}, (input.AvailabilityZone != null && { AvailabilityZone: input.AvailabilityZone })), (input.ClusterId != null && { ClusterId: input.ClusterId })), (input.IpAddress != null && { IpAddress: input.IpAddress }));
1278
1271
  };
1279
1272
  var serializeAws_json1_1DeleteBackupRequest = function (input, context) {
1280
- return __assign({}, (input.BackupId !== undefined && input.BackupId !== null && { BackupId: input.BackupId }));
1273
+ return __assign({}, (input.BackupId != null && { BackupId: input.BackupId }));
1281
1274
  };
1282
1275
  var serializeAws_json1_1DeleteClusterRequest = function (input, context) {
1283
- return __assign({}, (input.ClusterId !== undefined && input.ClusterId !== null && { ClusterId: input.ClusterId }));
1276
+ return __assign({}, (input.ClusterId != null && { ClusterId: input.ClusterId }));
1284
1277
  };
1285
1278
  var serializeAws_json1_1DeleteHsmRequest = function (input, context) {
1286
- return __assign(__assign(__assign(__assign({}, (input.ClusterId !== undefined && input.ClusterId !== null && { ClusterId: input.ClusterId })), (input.EniId !== undefined && input.EniId !== null && { EniId: input.EniId })), (input.EniIp !== undefined && input.EniIp !== null && { EniIp: input.EniIp })), (input.HsmId !== undefined && input.HsmId !== null && { HsmId: input.HsmId }));
1279
+ return __assign(__assign(__assign(__assign({}, (input.ClusterId != null && { ClusterId: input.ClusterId })), (input.EniId != null && { EniId: input.EniId })), (input.EniIp != null && { EniIp: input.EniIp })), (input.HsmId != null && { HsmId: input.HsmId }));
1287
1280
  };
1288
1281
  var serializeAws_json1_1DescribeBackupsRequest = function (input, context) {
1289
- return __assign(__assign(__assign(__assign({}, (input.Filters !== undefined &&
1290
- input.Filters !== null && { Filters: serializeAws_json1_1Filters(input.Filters, context) })), (input.MaxResults !== undefined && input.MaxResults !== null && { MaxResults: input.MaxResults })), (input.NextToken !== undefined && input.NextToken !== null && { NextToken: input.NextToken })), (input.SortAscending !== undefined && input.SortAscending !== null && { SortAscending: input.SortAscending }));
1282
+ return __assign(__assign(__assign(__assign({}, (input.Filters != null && { Filters: serializeAws_json1_1Filters(input.Filters, context) })), (input.MaxResults != null && { MaxResults: input.MaxResults })), (input.NextToken != null && { NextToken: input.NextToken })), (input.SortAscending != null && { SortAscending: input.SortAscending }));
1291
1283
  };
1292
1284
  var serializeAws_json1_1DescribeClustersRequest = function (input, context) {
1293
- return __assign(__assign(__assign({}, (input.Filters !== undefined &&
1294
- input.Filters !== null && { Filters: serializeAws_json1_1Filters(input.Filters, context) })), (input.MaxResults !== undefined && input.MaxResults !== null && { MaxResults: input.MaxResults })), (input.NextToken !== undefined && input.NextToken !== null && { NextToken: input.NextToken }));
1285
+ return __assign(__assign(__assign({}, (input.Filters != null && { Filters: serializeAws_json1_1Filters(input.Filters, context) })), (input.MaxResults != null && { MaxResults: input.MaxResults })), (input.NextToken != null && { NextToken: input.NextToken }));
1295
1286
  };
1296
1287
  var serializeAws_json1_1Filters = function (input, context) {
1297
1288
  return Object.entries(input).reduce(function (acc, _a) {
@@ -1304,22 +1295,21 @@ var serializeAws_json1_1Filters = function (input, context) {
1304
1295
  }, {});
1305
1296
  };
1306
1297
  var serializeAws_json1_1InitializeClusterRequest = function (input, context) {
1307
- return __assign(__assign(__assign({}, (input.ClusterId !== undefined && input.ClusterId !== null && { ClusterId: input.ClusterId })), (input.SignedCert !== undefined && input.SignedCert !== null && { SignedCert: input.SignedCert })), (input.TrustAnchor !== undefined && input.TrustAnchor !== null && { TrustAnchor: input.TrustAnchor }));
1298
+ return __assign(__assign(__assign({}, (input.ClusterId != null && { ClusterId: input.ClusterId })), (input.SignedCert != null && { SignedCert: input.SignedCert })), (input.TrustAnchor != null && { TrustAnchor: input.TrustAnchor }));
1308
1299
  };
1309
1300
  var serializeAws_json1_1ListTagsRequest = function (input, context) {
1310
- return __assign(__assign(__assign({}, (input.MaxResults !== undefined && input.MaxResults !== null && { MaxResults: input.MaxResults })), (input.NextToken !== undefined && input.NextToken !== null && { NextToken: input.NextToken })), (input.ResourceId !== undefined && input.ResourceId !== null && { ResourceId: input.ResourceId }));
1301
+ return __assign(__assign(__assign({}, (input.MaxResults != null && { MaxResults: input.MaxResults })), (input.NextToken != null && { NextToken: input.NextToken })), (input.ResourceId != null && { ResourceId: input.ResourceId }));
1311
1302
  };
1312
1303
  var serializeAws_json1_1ModifyBackupAttributesRequest = function (input, context) {
1313
- return __assign(__assign({}, (input.BackupId !== undefined && input.BackupId !== null && { BackupId: input.BackupId })), (input.NeverExpires !== undefined && input.NeverExpires !== null && { NeverExpires: input.NeverExpires }));
1304
+ return __assign(__assign({}, (input.BackupId != null && { BackupId: input.BackupId })), (input.NeverExpires != null && { NeverExpires: input.NeverExpires }));
1314
1305
  };
1315
1306
  var serializeAws_json1_1ModifyClusterRequest = function (input, context) {
1316
- return __assign(__assign({}, (input.BackupRetentionPolicy !== undefined &&
1317
- input.BackupRetentionPolicy !== null && {
1307
+ return __assign(__assign({}, (input.BackupRetentionPolicy != null && {
1318
1308
  BackupRetentionPolicy: serializeAws_json1_1BackupRetentionPolicy(input.BackupRetentionPolicy, context),
1319
- })), (input.ClusterId !== undefined && input.ClusterId !== null && { ClusterId: input.ClusterId }));
1309
+ })), (input.ClusterId != null && { ClusterId: input.ClusterId }));
1320
1310
  };
1321
1311
  var serializeAws_json1_1RestoreBackupRequest = function (input, context) {
1322
- return __assign({}, (input.BackupId !== undefined && input.BackupId !== null && { BackupId: input.BackupId }));
1312
+ return __assign({}, (input.BackupId != null && { BackupId: input.BackupId }));
1323
1313
  };
1324
1314
  var serializeAws_json1_1Strings = function (input, context) {
1325
1315
  return input
@@ -1342,7 +1332,7 @@ var serializeAws_json1_1SubnetIds = function (input, context) {
1342
1332
  });
1343
1333
  };
1344
1334
  var serializeAws_json1_1Tag = function (input, context) {
1345
- return __assign(__assign({}, (input.Key !== undefined && input.Key !== null && { Key: input.Key })), (input.Value !== undefined && input.Value !== null && { Value: input.Value }));
1335
+ return __assign(__assign({}, (input.Key != null && { Key: input.Key })), (input.Value != null && { Value: input.Value }));
1346
1336
  };
1347
1337
  var serializeAws_json1_1TagKeyList = function (input, context) {
1348
1338
  return input
@@ -1365,34 +1355,30 @@ var serializeAws_json1_1TagList = function (input, context) {
1365
1355
  });
1366
1356
  };
1367
1357
  var serializeAws_json1_1TagResourceRequest = function (input, context) {
1368
- return __assign(__assign({}, (input.ResourceId !== undefined && input.ResourceId !== null && { ResourceId: input.ResourceId })), (input.TagList !== undefined &&
1369
- input.TagList !== null && { TagList: serializeAws_json1_1TagList(input.TagList, context) }));
1358
+ return __assign(__assign({}, (input.ResourceId != null && { ResourceId: input.ResourceId })), (input.TagList != null && { TagList: serializeAws_json1_1TagList(input.TagList, context) }));
1370
1359
  };
1371
1360
  var serializeAws_json1_1UntagResourceRequest = function (input, context) {
1372
- return __assign(__assign({}, (input.ResourceId !== undefined && input.ResourceId !== null && { ResourceId: input.ResourceId })), (input.TagKeyList !== undefined &&
1373
- input.TagKeyList !== null && { TagKeyList: serializeAws_json1_1TagKeyList(input.TagKeyList, context) }));
1361
+ return __assign(__assign({}, (input.ResourceId != null && { ResourceId: input.ResourceId })), (input.TagKeyList != null && { TagKeyList: serializeAws_json1_1TagKeyList(input.TagKeyList, context) }));
1374
1362
  };
1375
1363
  var deserializeAws_json1_1Backup = function (output, context) {
1376
1364
  return {
1377
1365
  BackupId: __expectString(output.BackupId),
1378
1366
  BackupState: __expectString(output.BackupState),
1379
1367
  ClusterId: __expectString(output.ClusterId),
1380
- CopyTimestamp: output.CopyTimestamp !== undefined && output.CopyTimestamp !== null
1368
+ CopyTimestamp: output.CopyTimestamp != null
1381
1369
  ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.CopyTimestamp)))
1382
1370
  : undefined,
1383
- CreateTimestamp: output.CreateTimestamp !== undefined && output.CreateTimestamp !== null
1371
+ CreateTimestamp: output.CreateTimestamp != null
1384
1372
  ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.CreateTimestamp)))
1385
1373
  : undefined,
1386
- DeleteTimestamp: output.DeleteTimestamp !== undefined && output.DeleteTimestamp !== null
1374
+ DeleteTimestamp: output.DeleteTimestamp != null
1387
1375
  ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.DeleteTimestamp)))
1388
1376
  : undefined,
1389
1377
  NeverExpires: __expectBoolean(output.NeverExpires),
1390
1378
  SourceBackup: __expectString(output.SourceBackup),
1391
1379
  SourceCluster: __expectString(output.SourceCluster),
1392
1380
  SourceRegion: __expectString(output.SourceRegion),
1393
- TagList: output.TagList !== undefined && output.TagList !== null
1394
- ? deserializeAws_json1_1TagList(output.TagList, context)
1395
- : undefined,
1381
+ TagList: output.TagList != null ? deserializeAws_json1_1TagList(output.TagList, context) : undefined,
1396
1382
  };
1397
1383
  };
1398
1384
  var deserializeAws_json1_1BackupRetentionPolicy = function (output, context) {
@@ -1454,29 +1440,25 @@ var deserializeAws_json1_1CloudHsmTagException = function (output, context) {
1454
1440
  var deserializeAws_json1_1Cluster = function (output, context) {
1455
1441
  return {
1456
1442
  BackupPolicy: __expectString(output.BackupPolicy),
1457
- BackupRetentionPolicy: output.BackupRetentionPolicy !== undefined && output.BackupRetentionPolicy !== null
1443
+ BackupRetentionPolicy: output.BackupRetentionPolicy != null
1458
1444
  ? deserializeAws_json1_1BackupRetentionPolicy(output.BackupRetentionPolicy, context)
1459
1445
  : undefined,
1460
- Certificates: output.Certificates !== undefined && output.Certificates !== null
1461
- ? deserializeAws_json1_1Certificates(output.Certificates, context)
1462
- : undefined,
1446
+ Certificates: output.Certificates != null ? deserializeAws_json1_1Certificates(output.Certificates, context) : undefined,
1463
1447
  ClusterId: __expectString(output.ClusterId),
1464
- CreateTimestamp: output.CreateTimestamp !== undefined && output.CreateTimestamp !== null
1448
+ CreateTimestamp: output.CreateTimestamp != null
1465
1449
  ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.CreateTimestamp)))
1466
1450
  : undefined,
1467
1451
  HsmType: __expectString(output.HsmType),
1468
- Hsms: output.Hsms !== undefined && output.Hsms !== null ? deserializeAws_json1_1Hsms(output.Hsms, context) : undefined,
1452
+ Hsms: output.Hsms != null ? deserializeAws_json1_1Hsms(output.Hsms, context) : undefined,
1469
1453
  PreCoPassword: __expectString(output.PreCoPassword),
1470
1454
  SecurityGroup: __expectString(output.SecurityGroup),
1471
1455
  SourceBackupId: __expectString(output.SourceBackupId),
1472
1456
  State: __expectString(output.State),
1473
1457
  StateMessage: __expectString(output.StateMessage),
1474
- SubnetMapping: output.SubnetMapping !== undefined && output.SubnetMapping !== null
1458
+ SubnetMapping: output.SubnetMapping != null
1475
1459
  ? deserializeAws_json1_1ExternalSubnetMapping(output.SubnetMapping, context)
1476
1460
  : undefined,
1477
- TagList: output.TagList !== undefined && output.TagList !== null
1478
- ? deserializeAws_json1_1TagList(output.TagList, context)
1479
- : undefined,
1461
+ TagList: output.TagList != null ? deserializeAws_json1_1TagList(output.TagList, context) : undefined,
1480
1462
  VpcId: __expectString(output.VpcId),
1481
1463
  };
1482
1464
  };
@@ -1493,35 +1475,29 @@ var deserializeAws_json1_1Clusters = function (output, context) {
1493
1475
  };
1494
1476
  var deserializeAws_json1_1CopyBackupToRegionResponse = function (output, context) {
1495
1477
  return {
1496
- DestinationBackup: output.DestinationBackup !== undefined && output.DestinationBackup !== null
1478
+ DestinationBackup: output.DestinationBackup != null
1497
1479
  ? deserializeAws_json1_1DestinationBackup(output.DestinationBackup, context)
1498
1480
  : undefined,
1499
1481
  };
1500
1482
  };
1501
1483
  var deserializeAws_json1_1CreateClusterResponse = function (output, context) {
1502
1484
  return {
1503
- Cluster: output.Cluster !== undefined && output.Cluster !== null
1504
- ? deserializeAws_json1_1Cluster(output.Cluster, context)
1505
- : undefined,
1485
+ Cluster: output.Cluster != null ? deserializeAws_json1_1Cluster(output.Cluster, context) : undefined,
1506
1486
  };
1507
1487
  };
1508
1488
  var deserializeAws_json1_1CreateHsmResponse = function (output, context) {
1509
1489
  return {
1510
- Hsm: output.Hsm !== undefined && output.Hsm !== null ? deserializeAws_json1_1Hsm(output.Hsm, context) : undefined,
1490
+ Hsm: output.Hsm != null ? deserializeAws_json1_1Hsm(output.Hsm, context) : undefined,
1511
1491
  };
1512
1492
  };
1513
1493
  var deserializeAws_json1_1DeleteBackupResponse = function (output, context) {
1514
1494
  return {
1515
- Backup: output.Backup !== undefined && output.Backup !== null
1516
- ? deserializeAws_json1_1Backup(output.Backup, context)
1517
- : undefined,
1495
+ Backup: output.Backup != null ? deserializeAws_json1_1Backup(output.Backup, context) : undefined,
1518
1496
  };
1519
1497
  };
1520
1498
  var deserializeAws_json1_1DeleteClusterResponse = function (output, context) {
1521
1499
  return {
1522
- Cluster: output.Cluster !== undefined && output.Cluster !== null
1523
- ? deserializeAws_json1_1Cluster(output.Cluster, context)
1524
- : undefined,
1500
+ Cluster: output.Cluster != null ? deserializeAws_json1_1Cluster(output.Cluster, context) : undefined,
1525
1501
  };
1526
1502
  };
1527
1503
  var deserializeAws_json1_1DeleteHsmResponse = function (output, context) {
@@ -1531,23 +1507,19 @@ var deserializeAws_json1_1DeleteHsmResponse = function (output, context) {
1531
1507
  };
1532
1508
  var deserializeAws_json1_1DescribeBackupsResponse = function (output, context) {
1533
1509
  return {
1534
- Backups: output.Backups !== undefined && output.Backups !== null
1535
- ? deserializeAws_json1_1Backups(output.Backups, context)
1536
- : undefined,
1510
+ Backups: output.Backups != null ? deserializeAws_json1_1Backups(output.Backups, context) : undefined,
1537
1511
  NextToken: __expectString(output.NextToken),
1538
1512
  };
1539
1513
  };
1540
1514
  var deserializeAws_json1_1DescribeClustersResponse = function (output, context) {
1541
1515
  return {
1542
- Clusters: output.Clusters !== undefined && output.Clusters !== null
1543
- ? deserializeAws_json1_1Clusters(output.Clusters, context)
1544
- : undefined,
1516
+ Clusters: output.Clusters != null ? deserializeAws_json1_1Clusters(output.Clusters, context) : undefined,
1545
1517
  NextToken: __expectString(output.NextToken),
1546
1518
  };
1547
1519
  };
1548
1520
  var deserializeAws_json1_1DestinationBackup = function (output, context) {
1549
1521
  return {
1550
- CreateTimestamp: output.CreateTimestamp !== undefined && output.CreateTimestamp !== null
1522
+ CreateTimestamp: output.CreateTimestamp != null
1551
1523
  ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.CreateTimestamp)))
1552
1524
  : undefined,
1553
1525
  SourceBackup: __expectString(output.SourceBackup),
@@ -1597,30 +1569,22 @@ var deserializeAws_json1_1InitializeClusterResponse = function (output, context)
1597
1569
  var deserializeAws_json1_1ListTagsResponse = function (output, context) {
1598
1570
  return {
1599
1571
  NextToken: __expectString(output.NextToken),
1600
- TagList: output.TagList !== undefined && output.TagList !== null
1601
- ? deserializeAws_json1_1TagList(output.TagList, context)
1602
- : undefined,
1572
+ TagList: output.TagList != null ? deserializeAws_json1_1TagList(output.TagList, context) : undefined,
1603
1573
  };
1604
1574
  };
1605
1575
  var deserializeAws_json1_1ModifyBackupAttributesResponse = function (output, context) {
1606
1576
  return {
1607
- Backup: output.Backup !== undefined && output.Backup !== null
1608
- ? deserializeAws_json1_1Backup(output.Backup, context)
1609
- : undefined,
1577
+ Backup: output.Backup != null ? deserializeAws_json1_1Backup(output.Backup, context) : undefined,
1610
1578
  };
1611
1579
  };
1612
1580
  var deserializeAws_json1_1ModifyClusterResponse = function (output, context) {
1613
1581
  return {
1614
- Cluster: output.Cluster !== undefined && output.Cluster !== null
1615
- ? deserializeAws_json1_1Cluster(output.Cluster, context)
1616
- : undefined,
1582
+ Cluster: output.Cluster != null ? deserializeAws_json1_1Cluster(output.Cluster, context) : undefined,
1617
1583
  };
1618
1584
  };
1619
1585
  var deserializeAws_json1_1RestoreBackupResponse = function (output, context) {
1620
1586
  return {
1621
- Backup: output.Backup !== undefined && output.Backup !== null
1622
- ? deserializeAws_json1_1Backup(output.Backup, context)
1623
- : undefined,
1587
+ Backup: output.Backup != null ? deserializeAws_json1_1Backup(output.Backup, context) : undefined,
1624
1588
  };
1625
1589
  };
1626
1590
  var deserializeAws_json1_1Tag = function (output, context) {
@@ -1702,6 +1666,9 @@ var loadRestJsonErrorCode = function (output, data) {
1702
1666
  var findKey = function (object, key) { return Object.keys(object).find(function (k) { return k.toLowerCase() === key.toLowerCase(); }); };
1703
1667
  var sanitizeErrorCode = function (rawValue) {
1704
1668
  var cleanValue = rawValue;
1669
+ if (typeof cleanValue === "number") {
1670
+ cleanValue = cleanValue.toString();
1671
+ }
1705
1672
  if (cleanValue.indexOf(":") >= 0) {
1706
1673
  cleanValue = cleanValue.split(":")[0];
1707
1674
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-cloudhsm-v2",
3
3
  "description": "AWS SDK for JavaScript Cloudhsm V2 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"