@aws-sdk/client-cloudhsm 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
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
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
 
@@ -1088,75 +1088,70 @@ const deserializeAws_json1_1InvalidRequestExceptionResponse = async (parsedOutpu
1088
1088
  };
1089
1089
  const serializeAws_json1_1AddTagsToResourceRequest = (input, context) => {
1090
1090
  return {
1091
- ...(input.ResourceArn !== undefined && input.ResourceArn !== null && { ResourceArn: input.ResourceArn }),
1092
- ...(input.TagList !== undefined &&
1093
- input.TagList !== null && { TagList: serializeAws_json1_1TagList(input.TagList, context) }),
1091
+ ...(input.ResourceArn != null && { ResourceArn: input.ResourceArn }),
1092
+ ...(input.TagList != null && { TagList: serializeAws_json1_1TagList(input.TagList, context) }),
1094
1093
  };
1095
1094
  };
1096
1095
  const serializeAws_json1_1CreateHapgRequest = (input, context) => {
1097
1096
  return {
1098
- ...(input.Label !== undefined && input.Label !== null && { Label: input.Label }),
1097
+ ...(input.Label != null && { Label: input.Label }),
1099
1098
  };
1100
1099
  };
1101
1100
  const serializeAws_json1_1CreateHsmRequest = (input, context) => {
1102
1101
  return {
1103
- ...(input.ClientToken !== undefined && input.ClientToken !== null && { ClientToken: input.ClientToken }),
1104
- ...(input.EniIp !== undefined && input.EniIp !== null && { EniIp: input.EniIp }),
1105
- ...(input.ExternalId !== undefined && input.ExternalId !== null && { ExternalId: input.ExternalId }),
1106
- ...(input.IamRoleArn !== undefined && input.IamRoleArn !== null && { IamRoleArn: input.IamRoleArn }),
1107
- ...(input.SshKey !== undefined && input.SshKey !== null && { SshKey: input.SshKey }),
1108
- ...(input.SubnetId !== undefined && input.SubnetId !== null && { SubnetId: input.SubnetId }),
1109
- ...(input.SubscriptionType !== undefined &&
1110
- input.SubscriptionType !== null && { SubscriptionType: input.SubscriptionType }),
1111
- ...(input.SyslogIp !== undefined && input.SyslogIp !== null && { SyslogIp: input.SyslogIp }),
1102
+ ...(input.ClientToken != null && { ClientToken: input.ClientToken }),
1103
+ ...(input.EniIp != null && { EniIp: input.EniIp }),
1104
+ ...(input.ExternalId != null && { ExternalId: input.ExternalId }),
1105
+ ...(input.IamRoleArn != null && { IamRoleArn: input.IamRoleArn }),
1106
+ ...(input.SshKey != null && { SshKey: input.SshKey }),
1107
+ ...(input.SubnetId != null && { SubnetId: input.SubnetId }),
1108
+ ...(input.SubscriptionType != null && { SubscriptionType: input.SubscriptionType }),
1109
+ ...(input.SyslogIp != null && { SyslogIp: input.SyslogIp }),
1112
1110
  };
1113
1111
  };
1114
1112
  const serializeAws_json1_1CreateLunaClientRequest = (input, context) => {
1115
1113
  return {
1116
- ...(input.Certificate !== undefined && input.Certificate !== null && { Certificate: input.Certificate }),
1117
- ...(input.Label !== undefined && input.Label !== null && { Label: input.Label }),
1114
+ ...(input.Certificate != null && { Certificate: input.Certificate }),
1115
+ ...(input.Label != null && { Label: input.Label }),
1118
1116
  };
1119
1117
  };
1120
1118
  const serializeAws_json1_1DeleteHapgRequest = (input, context) => {
1121
1119
  return {
1122
- ...(input.HapgArn !== undefined && input.HapgArn !== null && { HapgArn: input.HapgArn }),
1120
+ ...(input.HapgArn != null && { HapgArn: input.HapgArn }),
1123
1121
  };
1124
1122
  };
1125
1123
  const serializeAws_json1_1DeleteHsmRequest = (input, context) => {
1126
1124
  return {
1127
- ...(input.HsmArn !== undefined && input.HsmArn !== null && { HsmArn: input.HsmArn }),
1125
+ ...(input.HsmArn != null && { HsmArn: input.HsmArn }),
1128
1126
  };
1129
1127
  };
1130
1128
  const serializeAws_json1_1DeleteLunaClientRequest = (input, context) => {
1131
1129
  return {
1132
- ...(input.ClientArn !== undefined && input.ClientArn !== null && { ClientArn: input.ClientArn }),
1130
+ ...(input.ClientArn != null && { ClientArn: input.ClientArn }),
1133
1131
  };
1134
1132
  };
1135
1133
  const serializeAws_json1_1DescribeHapgRequest = (input, context) => {
1136
1134
  return {
1137
- ...(input.HapgArn !== undefined && input.HapgArn !== null && { HapgArn: input.HapgArn }),
1135
+ ...(input.HapgArn != null && { HapgArn: input.HapgArn }),
1138
1136
  };
1139
1137
  };
1140
1138
  const serializeAws_json1_1DescribeHsmRequest = (input, context) => {
1141
1139
  return {
1142
- ...(input.HsmArn !== undefined && input.HsmArn !== null && { HsmArn: input.HsmArn }),
1143
- ...(input.HsmSerialNumber !== undefined &&
1144
- input.HsmSerialNumber !== null && { HsmSerialNumber: input.HsmSerialNumber }),
1140
+ ...(input.HsmArn != null && { HsmArn: input.HsmArn }),
1141
+ ...(input.HsmSerialNumber != null && { HsmSerialNumber: input.HsmSerialNumber }),
1145
1142
  };
1146
1143
  };
1147
1144
  const serializeAws_json1_1DescribeLunaClientRequest = (input, context) => {
1148
1145
  return {
1149
- ...(input.CertificateFingerprint !== undefined &&
1150
- input.CertificateFingerprint !== null && { CertificateFingerprint: input.CertificateFingerprint }),
1151
- ...(input.ClientArn !== undefined && input.ClientArn !== null && { ClientArn: input.ClientArn }),
1146
+ ...(input.CertificateFingerprint != null && { CertificateFingerprint: input.CertificateFingerprint }),
1147
+ ...(input.ClientArn != null && { ClientArn: input.ClientArn }),
1152
1148
  };
1153
1149
  };
1154
1150
  const serializeAws_json1_1GetConfigRequest = (input, context) => {
1155
1151
  return {
1156
- ...(input.ClientArn !== undefined && input.ClientArn !== null && { ClientArn: input.ClientArn }),
1157
- ...(input.ClientVersion !== undefined && input.ClientVersion !== null && { ClientVersion: input.ClientVersion }),
1158
- ...(input.HapgList !== undefined &&
1159
- input.HapgList !== null && { HapgList: serializeAws_json1_1HapgList(input.HapgList, context) }),
1152
+ ...(input.ClientArn != null && { ClientArn: input.ClientArn }),
1153
+ ...(input.ClientVersion != null && { ClientVersion: input.ClientVersion }),
1154
+ ...(input.HapgList != null && { HapgList: serializeAws_json1_1HapgList(input.HapgList, context) }),
1160
1155
  };
1161
1156
  };
1162
1157
  const serializeAws_json1_1HapgList = (input, context) => {
@@ -1174,48 +1169,47 @@ const serializeAws_json1_1ListAvailableZonesRequest = (input, context) => {
1174
1169
  };
1175
1170
  const serializeAws_json1_1ListHapgsRequest = (input, context) => {
1176
1171
  return {
1177
- ...(input.NextToken !== undefined && input.NextToken !== null && { NextToken: input.NextToken }),
1172
+ ...(input.NextToken != null && { NextToken: input.NextToken }),
1178
1173
  };
1179
1174
  };
1180
1175
  const serializeAws_json1_1ListHsmsRequest = (input, context) => {
1181
1176
  return {
1182
- ...(input.NextToken !== undefined && input.NextToken !== null && { NextToken: input.NextToken }),
1177
+ ...(input.NextToken != null && { NextToken: input.NextToken }),
1183
1178
  };
1184
1179
  };
1185
1180
  const serializeAws_json1_1ListLunaClientsRequest = (input, context) => {
1186
1181
  return {
1187
- ...(input.NextToken !== undefined && input.NextToken !== null && { NextToken: input.NextToken }),
1182
+ ...(input.NextToken != null && { NextToken: input.NextToken }),
1188
1183
  };
1189
1184
  };
1190
1185
  const serializeAws_json1_1ListTagsForResourceRequest = (input, context) => {
1191
1186
  return {
1192
- ...(input.ResourceArn !== undefined && input.ResourceArn !== null && { ResourceArn: input.ResourceArn }),
1187
+ ...(input.ResourceArn != null && { ResourceArn: input.ResourceArn }),
1193
1188
  };
1194
1189
  };
1195
1190
  const serializeAws_json1_1ModifyHapgRequest = (input, context) => {
1196
1191
  return {
1197
- ...(input.HapgArn !== undefined && input.HapgArn !== null && { HapgArn: input.HapgArn }),
1198
- ...(input.Label !== undefined && input.Label !== null && { Label: input.Label }),
1199
- ...(input.PartitionSerialList !== undefined &&
1200
- input.PartitionSerialList !== null && {
1192
+ ...(input.HapgArn != null && { HapgArn: input.HapgArn }),
1193
+ ...(input.Label != null && { Label: input.Label }),
1194
+ ...(input.PartitionSerialList != null && {
1201
1195
  PartitionSerialList: serializeAws_json1_1PartitionSerialList(input.PartitionSerialList, context),
1202
1196
  }),
1203
1197
  };
1204
1198
  };
1205
1199
  const serializeAws_json1_1ModifyHsmRequest = (input, context) => {
1206
1200
  return {
1207
- ...(input.EniIp !== undefined && input.EniIp !== null && { EniIp: input.EniIp }),
1208
- ...(input.ExternalId !== undefined && input.ExternalId !== null && { ExternalId: input.ExternalId }),
1209
- ...(input.HsmArn !== undefined && input.HsmArn !== null && { HsmArn: input.HsmArn }),
1210
- ...(input.IamRoleArn !== undefined && input.IamRoleArn !== null && { IamRoleArn: input.IamRoleArn }),
1211
- ...(input.SubnetId !== undefined && input.SubnetId !== null && { SubnetId: input.SubnetId }),
1212
- ...(input.SyslogIp !== undefined && input.SyslogIp !== null && { SyslogIp: input.SyslogIp }),
1201
+ ...(input.EniIp != null && { EniIp: input.EniIp }),
1202
+ ...(input.ExternalId != null && { ExternalId: input.ExternalId }),
1203
+ ...(input.HsmArn != null && { HsmArn: input.HsmArn }),
1204
+ ...(input.IamRoleArn != null && { IamRoleArn: input.IamRoleArn }),
1205
+ ...(input.SubnetId != null && { SubnetId: input.SubnetId }),
1206
+ ...(input.SyslogIp != null && { SyslogIp: input.SyslogIp }),
1213
1207
  };
1214
1208
  };
1215
1209
  const serializeAws_json1_1ModifyLunaClientRequest = (input, context) => {
1216
1210
  return {
1217
- ...(input.Certificate !== undefined && input.Certificate !== null && { Certificate: input.Certificate }),
1218
- ...(input.ClientArn !== undefined && input.ClientArn !== null && { ClientArn: input.ClientArn }),
1211
+ ...(input.Certificate != null && { Certificate: input.Certificate }),
1212
+ ...(input.ClientArn != null && { ClientArn: input.ClientArn }),
1219
1213
  };
1220
1214
  };
1221
1215
  const serializeAws_json1_1PartitionSerialList = (input, context) => {
@@ -1230,15 +1224,14 @@ const serializeAws_json1_1PartitionSerialList = (input, context) => {
1230
1224
  };
1231
1225
  const serializeAws_json1_1RemoveTagsFromResourceRequest = (input, context) => {
1232
1226
  return {
1233
- ...(input.ResourceArn !== undefined && input.ResourceArn !== null && { ResourceArn: input.ResourceArn }),
1234
- ...(input.TagKeyList !== undefined &&
1235
- input.TagKeyList !== null && { TagKeyList: serializeAws_json1_1TagKeyList(input.TagKeyList, context) }),
1227
+ ...(input.ResourceArn != null && { ResourceArn: input.ResourceArn }),
1228
+ ...(input.TagKeyList != null && { TagKeyList: serializeAws_json1_1TagKeyList(input.TagKeyList, context) }),
1236
1229
  };
1237
1230
  };
1238
1231
  const serializeAws_json1_1Tag = (input, context) => {
1239
1232
  return {
1240
- ...(input.Key !== undefined && input.Key !== null && { Key: input.Key }),
1241
- ...(input.Value !== undefined && input.Value !== null && { Value: input.Value }),
1233
+ ...(input.Key != null && { Key: input.Key }),
1234
+ ...(input.Value != null && { Value: input.Value }),
1242
1235
  };
1243
1236
  };
1244
1237
  const serializeAws_json1_1TagKeyList = (input, context) => {
@@ -1334,18 +1327,18 @@ const deserializeAws_json1_1DescribeHapgResponse = (output, context) => {
1334
1327
  return {
1335
1328
  HapgArn: (0, smithy_client_1.expectString)(output.HapgArn),
1336
1329
  HapgSerial: (0, smithy_client_1.expectString)(output.HapgSerial),
1337
- HsmsLastActionFailed: output.HsmsLastActionFailed !== undefined && output.HsmsLastActionFailed !== null
1330
+ HsmsLastActionFailed: output.HsmsLastActionFailed != null
1338
1331
  ? deserializeAws_json1_1HsmList(output.HsmsLastActionFailed, context)
1339
1332
  : undefined,
1340
- HsmsPendingDeletion: output.HsmsPendingDeletion !== undefined && output.HsmsPendingDeletion !== null
1333
+ HsmsPendingDeletion: output.HsmsPendingDeletion != null
1341
1334
  ? deserializeAws_json1_1HsmList(output.HsmsPendingDeletion, context)
1342
1335
  : undefined,
1343
- HsmsPendingRegistration: output.HsmsPendingRegistration !== undefined && output.HsmsPendingRegistration !== null
1336
+ HsmsPendingRegistration: output.HsmsPendingRegistration != null
1344
1337
  ? deserializeAws_json1_1HsmList(output.HsmsPendingRegistration, context)
1345
1338
  : undefined,
1346
1339
  Label: (0, smithy_client_1.expectString)(output.Label),
1347
1340
  LastModifiedTimestamp: (0, smithy_client_1.expectString)(output.LastModifiedTimestamp),
1348
- PartitionSerialList: output.PartitionSerialList !== undefined && output.PartitionSerialList !== null
1341
+ PartitionSerialList: output.PartitionSerialList != null
1349
1342
  ? deserializeAws_json1_1PartitionSerialList(output.PartitionSerialList, context)
1350
1343
  : undefined,
1351
1344
  State: (0, smithy_client_1.expectString)(output.State),
@@ -1359,9 +1352,7 @@ const deserializeAws_json1_1DescribeHsmResponse = (output, context) => {
1359
1352
  HsmArn: (0, smithy_client_1.expectString)(output.HsmArn),
1360
1353
  HsmType: (0, smithy_client_1.expectString)(output.HsmType),
1361
1354
  IamRoleArn: (0, smithy_client_1.expectString)(output.IamRoleArn),
1362
- Partitions: output.Partitions !== undefined && output.Partitions !== null
1363
- ? deserializeAws_json1_1PartitionList(output.Partitions, context)
1364
- : undefined,
1355
+ Partitions: output.Partitions != null ? deserializeAws_json1_1PartitionList(output.Partitions, context) : undefined,
1365
1356
  SerialNumber: (0, smithy_client_1.expectString)(output.SerialNumber),
1366
1357
  ServerCertLastUpdated: (0, smithy_client_1.expectString)(output.ServerCertLastUpdated),
1367
1358
  ServerCertUri: (0, smithy_client_1.expectString)(output.ServerCertUri),
@@ -1424,40 +1415,30 @@ const deserializeAws_json1_1InvalidRequestException = (output, context) => {
1424
1415
  };
1425
1416
  const deserializeAws_json1_1ListAvailableZonesResponse = (output, context) => {
1426
1417
  return {
1427
- AZList: output.AZList !== undefined && output.AZList !== null
1428
- ? deserializeAws_json1_1AZList(output.AZList, context)
1429
- : undefined,
1418
+ AZList: output.AZList != null ? deserializeAws_json1_1AZList(output.AZList, context) : undefined,
1430
1419
  };
1431
1420
  };
1432
1421
  const deserializeAws_json1_1ListHapgsResponse = (output, context) => {
1433
1422
  return {
1434
- HapgList: output.HapgList !== undefined && output.HapgList !== null
1435
- ? deserializeAws_json1_1HapgList(output.HapgList, context)
1436
- : undefined,
1423
+ HapgList: output.HapgList != null ? deserializeAws_json1_1HapgList(output.HapgList, context) : undefined,
1437
1424
  NextToken: (0, smithy_client_1.expectString)(output.NextToken),
1438
1425
  };
1439
1426
  };
1440
1427
  const deserializeAws_json1_1ListHsmsResponse = (output, context) => {
1441
1428
  return {
1442
- HsmList: output.HsmList !== undefined && output.HsmList !== null
1443
- ? deserializeAws_json1_1HsmList(output.HsmList, context)
1444
- : undefined,
1429
+ HsmList: output.HsmList != null ? deserializeAws_json1_1HsmList(output.HsmList, context) : undefined,
1445
1430
  NextToken: (0, smithy_client_1.expectString)(output.NextToken),
1446
1431
  };
1447
1432
  };
1448
1433
  const deserializeAws_json1_1ListLunaClientsResponse = (output, context) => {
1449
1434
  return {
1450
- ClientList: output.ClientList !== undefined && output.ClientList !== null
1451
- ? deserializeAws_json1_1ClientList(output.ClientList, context)
1452
- : undefined,
1435
+ ClientList: output.ClientList != null ? deserializeAws_json1_1ClientList(output.ClientList, context) : undefined,
1453
1436
  NextToken: (0, smithy_client_1.expectString)(output.NextToken),
1454
1437
  };
1455
1438
  };
1456
1439
  const deserializeAws_json1_1ListTagsForResourceResponse = (output, context) => {
1457
1440
  return {
1458
- TagList: output.TagList !== undefined && output.TagList !== null
1459
- ? deserializeAws_json1_1TagList(output.TagList, context)
1460
- : undefined,
1441
+ TagList: output.TagList != null ? deserializeAws_json1_1TagList(output.TagList, context) : undefined,
1461
1442
  };
1462
1443
  };
1463
1444
  const deserializeAws_json1_1ModifyHapgResponse = (output, context) => {
@@ -1563,6 +1544,9 @@ const loadRestJsonErrorCode = (output, data) => {
1563
1544
  const findKey = (object, key) => Object.keys(object).find((k) => k.toLowerCase() === key.toLowerCase());
1564
1545
  const sanitizeErrorCode = (rawValue) => {
1565
1546
  let cleanValue = rawValue;
1547
+ if (typeof cleanValue === "number") {
1548
+ cleanValue = cleanValue.toString();
1549
+ }
1566
1550
  if (cleanValue.indexOf(":") >= 0) {
1567
1551
  cleanValue = cleanValue.split(":")[0];
1568
1552
  }
@@ -1423,42 +1423,37 @@ var deserializeAws_json1_1InvalidRequestExceptionResponse = function (parsedOutp
1423
1423
  });
1424
1424
  }); };
1425
1425
  var serializeAws_json1_1AddTagsToResourceRequest = function (input, context) {
1426
- return __assign(__assign({}, (input.ResourceArn !== undefined && input.ResourceArn !== null && { ResourceArn: input.ResourceArn })), (input.TagList !== undefined &&
1427
- input.TagList !== null && { TagList: serializeAws_json1_1TagList(input.TagList, context) }));
1426
+ return __assign(__assign({}, (input.ResourceArn != null && { ResourceArn: input.ResourceArn })), (input.TagList != null && { TagList: serializeAws_json1_1TagList(input.TagList, context) }));
1428
1427
  };
1429
1428
  var serializeAws_json1_1CreateHapgRequest = function (input, context) {
1430
- return __assign({}, (input.Label !== undefined && input.Label !== null && { Label: input.Label }));
1429
+ return __assign({}, (input.Label != null && { Label: input.Label }));
1431
1430
  };
1432
1431
  var serializeAws_json1_1CreateHsmRequest = function (input, context) {
1433
- return __assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.ClientToken !== undefined && input.ClientToken !== null && { ClientToken: input.ClientToken })), (input.EniIp !== undefined && input.EniIp !== null && { EniIp: input.EniIp })), (input.ExternalId !== undefined && input.ExternalId !== null && { ExternalId: input.ExternalId })), (input.IamRoleArn !== undefined && input.IamRoleArn !== null && { IamRoleArn: input.IamRoleArn })), (input.SshKey !== undefined && input.SshKey !== null && { SshKey: input.SshKey })), (input.SubnetId !== undefined && input.SubnetId !== null && { SubnetId: input.SubnetId })), (input.SubscriptionType !== undefined &&
1434
- input.SubscriptionType !== null && { SubscriptionType: input.SubscriptionType })), (input.SyslogIp !== undefined && input.SyslogIp !== null && { SyslogIp: input.SyslogIp }));
1432
+ return __assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.ClientToken != null && { ClientToken: input.ClientToken })), (input.EniIp != null && { EniIp: input.EniIp })), (input.ExternalId != null && { ExternalId: input.ExternalId })), (input.IamRoleArn != null && { IamRoleArn: input.IamRoleArn })), (input.SshKey != null && { SshKey: input.SshKey })), (input.SubnetId != null && { SubnetId: input.SubnetId })), (input.SubscriptionType != null && { SubscriptionType: input.SubscriptionType })), (input.SyslogIp != null && { SyslogIp: input.SyslogIp }));
1435
1433
  };
1436
1434
  var serializeAws_json1_1CreateLunaClientRequest = function (input, context) {
1437
- return __assign(__assign({}, (input.Certificate !== undefined && input.Certificate !== null && { Certificate: input.Certificate })), (input.Label !== undefined && input.Label !== null && { Label: input.Label }));
1435
+ return __assign(__assign({}, (input.Certificate != null && { Certificate: input.Certificate })), (input.Label != null && { Label: input.Label }));
1438
1436
  };
1439
1437
  var serializeAws_json1_1DeleteHapgRequest = function (input, context) {
1440
- return __assign({}, (input.HapgArn !== undefined && input.HapgArn !== null && { HapgArn: input.HapgArn }));
1438
+ return __assign({}, (input.HapgArn != null && { HapgArn: input.HapgArn }));
1441
1439
  };
1442
1440
  var serializeAws_json1_1DeleteHsmRequest = function (input, context) {
1443
- return __assign({}, (input.HsmArn !== undefined && input.HsmArn !== null && { HsmArn: input.HsmArn }));
1441
+ return __assign({}, (input.HsmArn != null && { HsmArn: input.HsmArn }));
1444
1442
  };
1445
1443
  var serializeAws_json1_1DeleteLunaClientRequest = function (input, context) {
1446
- return __assign({}, (input.ClientArn !== undefined && input.ClientArn !== null && { ClientArn: input.ClientArn }));
1444
+ return __assign({}, (input.ClientArn != null && { ClientArn: input.ClientArn }));
1447
1445
  };
1448
1446
  var serializeAws_json1_1DescribeHapgRequest = function (input, context) {
1449
- return __assign({}, (input.HapgArn !== undefined && input.HapgArn !== null && { HapgArn: input.HapgArn }));
1447
+ return __assign({}, (input.HapgArn != null && { HapgArn: input.HapgArn }));
1450
1448
  };
1451
1449
  var serializeAws_json1_1DescribeHsmRequest = function (input, context) {
1452
- return __assign(__assign({}, (input.HsmArn !== undefined && input.HsmArn !== null && { HsmArn: input.HsmArn })), (input.HsmSerialNumber !== undefined &&
1453
- input.HsmSerialNumber !== null && { HsmSerialNumber: input.HsmSerialNumber }));
1450
+ return __assign(__assign({}, (input.HsmArn != null && { HsmArn: input.HsmArn })), (input.HsmSerialNumber != null && { HsmSerialNumber: input.HsmSerialNumber }));
1454
1451
  };
1455
1452
  var serializeAws_json1_1DescribeLunaClientRequest = function (input, context) {
1456
- return __assign(__assign({}, (input.CertificateFingerprint !== undefined &&
1457
- input.CertificateFingerprint !== null && { CertificateFingerprint: input.CertificateFingerprint })), (input.ClientArn !== undefined && input.ClientArn !== null && { ClientArn: input.ClientArn }));
1453
+ return __assign(__assign({}, (input.CertificateFingerprint != null && { CertificateFingerprint: input.CertificateFingerprint })), (input.ClientArn != null && { ClientArn: input.ClientArn }));
1458
1454
  };
1459
1455
  var serializeAws_json1_1GetConfigRequest = function (input, context) {
1460
- return __assign(__assign(__assign({}, (input.ClientArn !== undefined && input.ClientArn !== null && { ClientArn: input.ClientArn })), (input.ClientVersion !== undefined && input.ClientVersion !== null && { ClientVersion: input.ClientVersion })), (input.HapgList !== undefined &&
1461
- input.HapgList !== null && { HapgList: serializeAws_json1_1HapgList(input.HapgList, context) }));
1456
+ return __assign(__assign(__assign({}, (input.ClientArn != null && { ClientArn: input.ClientArn })), (input.ClientVersion != null && { ClientVersion: input.ClientVersion })), (input.HapgList != null && { HapgList: serializeAws_json1_1HapgList(input.HapgList, context) }));
1462
1457
  };
1463
1458
  var serializeAws_json1_1HapgList = function (input, context) {
1464
1459
  return input
@@ -1474,28 +1469,27 @@ var serializeAws_json1_1ListAvailableZonesRequest = function (input, context) {
1474
1469
  return {};
1475
1470
  };
1476
1471
  var serializeAws_json1_1ListHapgsRequest = function (input, context) {
1477
- return __assign({}, (input.NextToken !== undefined && input.NextToken !== null && { NextToken: input.NextToken }));
1472
+ return __assign({}, (input.NextToken != null && { NextToken: input.NextToken }));
1478
1473
  };
1479
1474
  var serializeAws_json1_1ListHsmsRequest = function (input, context) {
1480
- return __assign({}, (input.NextToken !== undefined && input.NextToken !== null && { NextToken: input.NextToken }));
1475
+ return __assign({}, (input.NextToken != null && { NextToken: input.NextToken }));
1481
1476
  };
1482
1477
  var serializeAws_json1_1ListLunaClientsRequest = function (input, context) {
1483
- return __assign({}, (input.NextToken !== undefined && input.NextToken !== null && { NextToken: input.NextToken }));
1478
+ return __assign({}, (input.NextToken != null && { NextToken: input.NextToken }));
1484
1479
  };
1485
1480
  var serializeAws_json1_1ListTagsForResourceRequest = function (input, context) {
1486
- return __assign({}, (input.ResourceArn !== undefined && input.ResourceArn !== null && { ResourceArn: input.ResourceArn }));
1481
+ return __assign({}, (input.ResourceArn != null && { ResourceArn: input.ResourceArn }));
1487
1482
  };
1488
1483
  var serializeAws_json1_1ModifyHapgRequest = function (input, context) {
1489
- return __assign(__assign(__assign({}, (input.HapgArn !== undefined && input.HapgArn !== null && { HapgArn: input.HapgArn })), (input.Label !== undefined && input.Label !== null && { Label: input.Label })), (input.PartitionSerialList !== undefined &&
1490
- input.PartitionSerialList !== null && {
1484
+ return __assign(__assign(__assign({}, (input.HapgArn != null && { HapgArn: input.HapgArn })), (input.Label != null && { Label: input.Label })), (input.PartitionSerialList != null && {
1491
1485
  PartitionSerialList: serializeAws_json1_1PartitionSerialList(input.PartitionSerialList, context),
1492
1486
  }));
1493
1487
  };
1494
1488
  var serializeAws_json1_1ModifyHsmRequest = function (input, context) {
1495
- return __assign(__assign(__assign(__assign(__assign(__assign({}, (input.EniIp !== undefined && input.EniIp !== null && { EniIp: input.EniIp })), (input.ExternalId !== undefined && input.ExternalId !== null && { ExternalId: input.ExternalId })), (input.HsmArn !== undefined && input.HsmArn !== null && { HsmArn: input.HsmArn })), (input.IamRoleArn !== undefined && input.IamRoleArn !== null && { IamRoleArn: input.IamRoleArn })), (input.SubnetId !== undefined && input.SubnetId !== null && { SubnetId: input.SubnetId })), (input.SyslogIp !== undefined && input.SyslogIp !== null && { SyslogIp: input.SyslogIp }));
1489
+ return __assign(__assign(__assign(__assign(__assign(__assign({}, (input.EniIp != null && { EniIp: input.EniIp })), (input.ExternalId != null && { ExternalId: input.ExternalId })), (input.HsmArn != null && { HsmArn: input.HsmArn })), (input.IamRoleArn != null && { IamRoleArn: input.IamRoleArn })), (input.SubnetId != null && { SubnetId: input.SubnetId })), (input.SyslogIp != null && { SyslogIp: input.SyslogIp }));
1496
1490
  };
1497
1491
  var serializeAws_json1_1ModifyLunaClientRequest = function (input, context) {
1498
- return __assign(__assign({}, (input.Certificate !== undefined && input.Certificate !== null && { Certificate: input.Certificate })), (input.ClientArn !== undefined && input.ClientArn !== null && { ClientArn: input.ClientArn }));
1492
+ return __assign(__assign({}, (input.Certificate != null && { Certificate: input.Certificate })), (input.ClientArn != null && { ClientArn: input.ClientArn }));
1499
1493
  };
1500
1494
  var serializeAws_json1_1PartitionSerialList = function (input, context) {
1501
1495
  return input
@@ -1508,11 +1502,10 @@ var serializeAws_json1_1PartitionSerialList = function (input, context) {
1508
1502
  });
1509
1503
  };
1510
1504
  var serializeAws_json1_1RemoveTagsFromResourceRequest = function (input, context) {
1511
- return __assign(__assign({}, (input.ResourceArn !== undefined && input.ResourceArn !== null && { ResourceArn: input.ResourceArn })), (input.TagKeyList !== undefined &&
1512
- input.TagKeyList !== null && { TagKeyList: serializeAws_json1_1TagKeyList(input.TagKeyList, context) }));
1505
+ return __assign(__assign({}, (input.ResourceArn != null && { ResourceArn: input.ResourceArn })), (input.TagKeyList != null && { TagKeyList: serializeAws_json1_1TagKeyList(input.TagKeyList, context) }));
1513
1506
  };
1514
1507
  var serializeAws_json1_1Tag = function (input, context) {
1515
- return __assign(__assign({}, (input.Key !== undefined && input.Key !== null && { Key: input.Key })), (input.Value !== undefined && input.Value !== null && { Value: input.Value }));
1508
+ return __assign(__assign({}, (input.Key != null && { Key: input.Key })), (input.Value != null && { Value: input.Value }));
1516
1509
  };
1517
1510
  var serializeAws_json1_1TagKeyList = function (input, context) {
1518
1511
  return input
@@ -1607,18 +1600,18 @@ var deserializeAws_json1_1DescribeHapgResponse = function (output, context) {
1607
1600
  return {
1608
1601
  HapgArn: __expectString(output.HapgArn),
1609
1602
  HapgSerial: __expectString(output.HapgSerial),
1610
- HsmsLastActionFailed: output.HsmsLastActionFailed !== undefined && output.HsmsLastActionFailed !== null
1603
+ HsmsLastActionFailed: output.HsmsLastActionFailed != null
1611
1604
  ? deserializeAws_json1_1HsmList(output.HsmsLastActionFailed, context)
1612
1605
  : undefined,
1613
- HsmsPendingDeletion: output.HsmsPendingDeletion !== undefined && output.HsmsPendingDeletion !== null
1606
+ HsmsPendingDeletion: output.HsmsPendingDeletion != null
1614
1607
  ? deserializeAws_json1_1HsmList(output.HsmsPendingDeletion, context)
1615
1608
  : undefined,
1616
- HsmsPendingRegistration: output.HsmsPendingRegistration !== undefined && output.HsmsPendingRegistration !== null
1609
+ HsmsPendingRegistration: output.HsmsPendingRegistration != null
1617
1610
  ? deserializeAws_json1_1HsmList(output.HsmsPendingRegistration, context)
1618
1611
  : undefined,
1619
1612
  Label: __expectString(output.Label),
1620
1613
  LastModifiedTimestamp: __expectString(output.LastModifiedTimestamp),
1621
- PartitionSerialList: output.PartitionSerialList !== undefined && output.PartitionSerialList !== null
1614
+ PartitionSerialList: output.PartitionSerialList != null
1622
1615
  ? deserializeAws_json1_1PartitionSerialList(output.PartitionSerialList, context)
1623
1616
  : undefined,
1624
1617
  State: __expectString(output.State),
@@ -1632,9 +1625,7 @@ var deserializeAws_json1_1DescribeHsmResponse = function (output, context) {
1632
1625
  HsmArn: __expectString(output.HsmArn),
1633
1626
  HsmType: __expectString(output.HsmType),
1634
1627
  IamRoleArn: __expectString(output.IamRoleArn),
1635
- Partitions: output.Partitions !== undefined && output.Partitions !== null
1636
- ? deserializeAws_json1_1PartitionList(output.Partitions, context)
1637
- : undefined,
1628
+ Partitions: output.Partitions != null ? deserializeAws_json1_1PartitionList(output.Partitions, context) : undefined,
1638
1629
  SerialNumber: __expectString(output.SerialNumber),
1639
1630
  ServerCertLastUpdated: __expectString(output.ServerCertLastUpdated),
1640
1631
  ServerCertUri: __expectString(output.ServerCertUri),
@@ -1697,40 +1688,30 @@ var deserializeAws_json1_1InvalidRequestException = function (output, context) {
1697
1688
  };
1698
1689
  var deserializeAws_json1_1ListAvailableZonesResponse = function (output, context) {
1699
1690
  return {
1700
- AZList: output.AZList !== undefined && output.AZList !== null
1701
- ? deserializeAws_json1_1AZList(output.AZList, context)
1702
- : undefined,
1691
+ AZList: output.AZList != null ? deserializeAws_json1_1AZList(output.AZList, context) : undefined,
1703
1692
  };
1704
1693
  };
1705
1694
  var deserializeAws_json1_1ListHapgsResponse = function (output, context) {
1706
1695
  return {
1707
- HapgList: output.HapgList !== undefined && output.HapgList !== null
1708
- ? deserializeAws_json1_1HapgList(output.HapgList, context)
1709
- : undefined,
1696
+ HapgList: output.HapgList != null ? deserializeAws_json1_1HapgList(output.HapgList, context) : undefined,
1710
1697
  NextToken: __expectString(output.NextToken),
1711
1698
  };
1712
1699
  };
1713
1700
  var deserializeAws_json1_1ListHsmsResponse = function (output, context) {
1714
1701
  return {
1715
- HsmList: output.HsmList !== undefined && output.HsmList !== null
1716
- ? deserializeAws_json1_1HsmList(output.HsmList, context)
1717
- : undefined,
1702
+ HsmList: output.HsmList != null ? deserializeAws_json1_1HsmList(output.HsmList, context) : undefined,
1718
1703
  NextToken: __expectString(output.NextToken),
1719
1704
  };
1720
1705
  };
1721
1706
  var deserializeAws_json1_1ListLunaClientsResponse = function (output, context) {
1722
1707
  return {
1723
- ClientList: output.ClientList !== undefined && output.ClientList !== null
1724
- ? deserializeAws_json1_1ClientList(output.ClientList, context)
1725
- : undefined,
1708
+ ClientList: output.ClientList != null ? deserializeAws_json1_1ClientList(output.ClientList, context) : undefined,
1726
1709
  NextToken: __expectString(output.NextToken),
1727
1710
  };
1728
1711
  };
1729
1712
  var deserializeAws_json1_1ListTagsForResourceResponse = function (output, context) {
1730
1713
  return {
1731
- TagList: output.TagList !== undefined && output.TagList !== null
1732
- ? deserializeAws_json1_1TagList(output.TagList, context)
1733
- : undefined,
1714
+ TagList: output.TagList != null ? deserializeAws_json1_1TagList(output.TagList, context) : undefined,
1734
1715
  };
1735
1716
  };
1736
1717
  var deserializeAws_json1_1ModifyHapgResponse = function (output, context) {
@@ -1848,6 +1829,9 @@ var loadRestJsonErrorCode = function (output, data) {
1848
1829
  var findKey = function (object, key) { return Object.keys(object).find(function (k) { return k.toLowerCase() === key.toLowerCase(); }); };
1849
1830
  var sanitizeErrorCode = function (rawValue) {
1850
1831
  var cleanValue = rawValue;
1832
+ if (typeof cleanValue === "number") {
1833
+ cleanValue = cleanValue.toString();
1834
+ }
1851
1835
  if (cleanValue.indexOf(":") >= 0) {
1852
1836
  cleanValue = cleanValue.split(":")[0];
1853
1837
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-cloudhsm",
3
3
  "description": "AWS SDK for JavaScript Cloudhsm 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"