@aws-sdk/client-cloudhsm 3.121.0 → 3.127.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +8 -0
- package/dist-cjs/protocols/Aws_json1_1.js +53 -72
- package/dist-es/protocols/Aws_json1_1.js +30 -49
- package/package.json +26 -26
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,14 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
# [3.127.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.126.0...v3.127.0) (2022-07-11)
|
|
7
|
+
|
|
8
|
+
**Note:** Version bump only for package @aws-sdk/client-cloudhsm
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
|
|
6
14
|
# [3.121.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.120.0...v3.121.0) (2022-06-30)
|
|
7
15
|
|
|
8
16
|
|
|
@@ -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
|
|
1092
|
-
...(input.TagList
|
|
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
|
|
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
|
|
1104
|
-
...(input.EniIp
|
|
1105
|
-
...(input.ExternalId
|
|
1106
|
-
...(input.IamRoleArn
|
|
1107
|
-
...(input.SshKey
|
|
1108
|
-
...(input.SubnetId
|
|
1109
|
-
...(input.SubscriptionType
|
|
1110
|
-
|
|
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
|
|
1117
|
-
...(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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
1143
|
-
...(input.HsmSerialNumber
|
|
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
|
|
1150
|
-
|
|
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
|
|
1157
|
-
...(input.ClientVersion
|
|
1158
|
-
...(input.HapgList
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
1198
|
-
...(input.Label
|
|
1199
|
-
...(input.PartitionSerialList
|
|
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
|
|
1208
|
-
...(input.ExternalId
|
|
1209
|
-
...(input.HsmArn
|
|
1210
|
-
...(input.IamRoleArn
|
|
1211
|
-
...(input.SubnetId
|
|
1212
|
-
...(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
|
|
1218
|
-
...(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
|
|
1234
|
-
...(input.TagKeyList
|
|
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
|
|
1241
|
-
...(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
|
|
1330
|
+
HsmsLastActionFailed: output.HsmsLastActionFailed != null
|
|
1338
1331
|
? deserializeAws_json1_1HsmList(output.HsmsLastActionFailed, context)
|
|
1339
1332
|
: undefined,
|
|
1340
|
-
HsmsPendingDeletion: output.HsmsPendingDeletion
|
|
1333
|
+
HsmsPendingDeletion: output.HsmsPendingDeletion != null
|
|
1341
1334
|
? deserializeAws_json1_1HsmList(output.HsmsPendingDeletion, context)
|
|
1342
1335
|
: undefined,
|
|
1343
|
-
HsmsPendingRegistration: output.HsmsPendingRegistration
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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) => {
|
|
@@ -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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
1603
|
+
HsmsLastActionFailed: output.HsmsLastActionFailed != null
|
|
1611
1604
|
? deserializeAws_json1_1HsmList(output.HsmsLastActionFailed, context)
|
|
1612
1605
|
: undefined,
|
|
1613
|
-
HsmsPendingDeletion: output.HsmsPendingDeletion
|
|
1606
|
+
HsmsPendingDeletion: output.HsmsPendingDeletion != null
|
|
1614
1607
|
? deserializeAws_json1_1HsmList(output.HsmsPendingDeletion, context)
|
|
1615
1608
|
: undefined,
|
|
1616
|
-
HsmsPendingRegistration: output.HsmsPendingRegistration
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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) {
|
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.
|
|
4
|
+
"version": "3.127.0",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
|
|
7
7
|
"build:cjs": "tsc -p tsconfig.cjs.json",
|
|
@@ -18,35 +18,35 @@
|
|
|
18
18
|
"dependencies": {
|
|
19
19
|
"@aws-crypto/sha256-browser": "2.0.0",
|
|
20
20
|
"@aws-crypto/sha256-js": "2.0.0",
|
|
21
|
-
"@aws-sdk/client-sts": "3.
|
|
22
|
-
"@aws-sdk/config-resolver": "3.
|
|
23
|
-
"@aws-sdk/credential-provider-node": "3.
|
|
24
|
-
"@aws-sdk/fetch-http-handler": "3.
|
|
25
|
-
"@aws-sdk/hash-node": "3.
|
|
26
|
-
"@aws-sdk/invalid-dependency": "3.
|
|
27
|
-
"@aws-sdk/middleware-content-length": "3.
|
|
28
|
-
"@aws-sdk/middleware-host-header": "3.
|
|
29
|
-
"@aws-sdk/middleware-logger": "3.
|
|
30
|
-
"@aws-sdk/middleware-recursion-detection": "3.
|
|
31
|
-
"@aws-sdk/middleware-retry": "3.
|
|
32
|
-
"@aws-sdk/middleware-serde": "3.
|
|
33
|
-
"@aws-sdk/middleware-signing": "3.
|
|
34
|
-
"@aws-sdk/middleware-stack": "3.
|
|
35
|
-
"@aws-sdk/middleware-user-agent": "3.
|
|
36
|
-
"@aws-sdk/node-config-provider": "3.
|
|
37
|
-
"@aws-sdk/node-http-handler": "3.
|
|
38
|
-
"@aws-sdk/protocol-http": "3.
|
|
39
|
-
"@aws-sdk/smithy-client": "3.
|
|
40
|
-
"@aws-sdk/types": "3.
|
|
41
|
-
"@aws-sdk/url-parser": "3.
|
|
21
|
+
"@aws-sdk/client-sts": "3.127.0",
|
|
22
|
+
"@aws-sdk/config-resolver": "3.127.0",
|
|
23
|
+
"@aws-sdk/credential-provider-node": "3.127.0",
|
|
24
|
+
"@aws-sdk/fetch-http-handler": "3.127.0",
|
|
25
|
+
"@aws-sdk/hash-node": "3.127.0",
|
|
26
|
+
"@aws-sdk/invalid-dependency": "3.127.0",
|
|
27
|
+
"@aws-sdk/middleware-content-length": "3.127.0",
|
|
28
|
+
"@aws-sdk/middleware-host-header": "3.127.0",
|
|
29
|
+
"@aws-sdk/middleware-logger": "3.127.0",
|
|
30
|
+
"@aws-sdk/middleware-recursion-detection": "3.127.0",
|
|
31
|
+
"@aws-sdk/middleware-retry": "3.127.0",
|
|
32
|
+
"@aws-sdk/middleware-serde": "3.127.0",
|
|
33
|
+
"@aws-sdk/middleware-signing": "3.127.0",
|
|
34
|
+
"@aws-sdk/middleware-stack": "3.127.0",
|
|
35
|
+
"@aws-sdk/middleware-user-agent": "3.127.0",
|
|
36
|
+
"@aws-sdk/node-config-provider": "3.127.0",
|
|
37
|
+
"@aws-sdk/node-http-handler": "3.127.0",
|
|
38
|
+
"@aws-sdk/protocol-http": "3.127.0",
|
|
39
|
+
"@aws-sdk/smithy-client": "3.127.0",
|
|
40
|
+
"@aws-sdk/types": "3.127.0",
|
|
41
|
+
"@aws-sdk/url-parser": "3.127.0",
|
|
42
42
|
"@aws-sdk/util-base64-browser": "3.109.0",
|
|
43
43
|
"@aws-sdk/util-base64-node": "3.55.0",
|
|
44
44
|
"@aws-sdk/util-body-length-browser": "3.55.0",
|
|
45
45
|
"@aws-sdk/util-body-length-node": "3.55.0",
|
|
46
|
-
"@aws-sdk/util-defaults-mode-browser": "3.
|
|
47
|
-
"@aws-sdk/util-defaults-mode-node": "3.
|
|
48
|
-
"@aws-sdk/util-user-agent-browser": "3.
|
|
49
|
-
"@aws-sdk/util-user-agent-node": "3.
|
|
46
|
+
"@aws-sdk/util-defaults-mode-browser": "3.127.0",
|
|
47
|
+
"@aws-sdk/util-defaults-mode-node": "3.127.0",
|
|
48
|
+
"@aws-sdk/util-user-agent-browser": "3.127.0",
|
|
49
|
+
"@aws-sdk/util-user-agent-node": "3.127.0",
|
|
50
50
|
"@aws-sdk/util-utf8-browser": "3.109.0",
|
|
51
51
|
"@aws-sdk/util-utf8-node": "3.109.0",
|
|
52
52
|
"tslib": "^2.3.1"
|