@aws-sdk/client-cloudhsm 3.53.0 → 3.55.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.
Files changed (37) hide show
  1. package/CHANGELOG.md +24 -0
  2. package/dist-cjs/CloudHSMClient.js +13 -13
  3. package/dist-cjs/commands/AddTagsToResourceCommand.js +3 -3
  4. package/dist-cjs/commands/CreateHapgCommand.js +3 -3
  5. package/dist-cjs/commands/CreateHsmCommand.js +3 -3
  6. package/dist-cjs/commands/CreateLunaClientCommand.js +3 -3
  7. package/dist-cjs/commands/DeleteHapgCommand.js +3 -3
  8. package/dist-cjs/commands/DeleteHsmCommand.js +3 -3
  9. package/dist-cjs/commands/DeleteLunaClientCommand.js +3 -3
  10. package/dist-cjs/commands/DescribeHapgCommand.js +3 -3
  11. package/dist-cjs/commands/DescribeHsmCommand.js +3 -3
  12. package/dist-cjs/commands/DescribeLunaClientCommand.js +3 -3
  13. package/dist-cjs/commands/GetConfigCommand.js +3 -3
  14. package/dist-cjs/commands/ListAvailableZonesCommand.js +3 -3
  15. package/dist-cjs/commands/ListHapgsCommand.js +3 -3
  16. package/dist-cjs/commands/ListHsmsCommand.js +3 -3
  17. package/dist-cjs/commands/ListLunaClientsCommand.js +3 -3
  18. package/dist-cjs/commands/ListTagsForResourceCommand.js +3 -3
  19. package/dist-cjs/commands/ModifyHapgCommand.js +3 -3
  20. package/dist-cjs/commands/ModifyHsmCommand.js +3 -3
  21. package/dist-cjs/commands/ModifyLunaClientCommand.js +3 -3
  22. package/dist-cjs/commands/RemoveTagsFromResourceCommand.js +3 -3
  23. package/dist-cjs/endpoints.js +1 -1
  24. package/dist-cjs/protocols/Aws_json1_1.js +84 -84
  25. package/dist-cjs/runtimeConfig.browser.js +4 -4
  26. package/dist-cjs/runtimeConfig.js +9 -9
  27. package/dist-cjs/runtimeConfig.native.js +1 -1
  28. package/dist-es/CloudHSM.js +20 -20
  29. package/dist-types/CloudHSMClient.d.ts +2 -2
  30. package/dist-types/runtimeConfig.browser.d.ts +1 -1
  31. package/dist-types/runtimeConfig.d.ts +1 -1
  32. package/dist-types/runtimeConfig.native.d.ts +3 -3
  33. package/dist-types/ts3.4/CloudHSMClient.d.ts +2 -2
  34. package/dist-types/ts3.4/runtimeConfig.browser.d.ts +1 -1
  35. package/dist-types/ts3.4/runtimeConfig.d.ts +1 -1
  36. package/dist-types/ts3.4/runtimeConfig.native.d.ts +3 -3
  37. package/package.json +34 -34
@@ -244,7 +244,7 @@ const deserializeAws_json1_1AddTagsToResourceCommandError = async (output, conte
244
244
  $fault: "client",
245
245
  $metadata: deserializeMetadata(output),
246
246
  });
247
- throw smithy_client_1.decorateServiceException(response, parsedBody);
247
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
248
248
  }
249
249
  };
250
250
  const deserializeAws_json1_1CreateHapgCommand = async (output, context) => {
@@ -286,7 +286,7 @@ const deserializeAws_json1_1CreateHapgCommandError = async (output, context) =>
286
286
  $fault: "client",
287
287
  $metadata: deserializeMetadata(output),
288
288
  });
289
- throw smithy_client_1.decorateServiceException(response, parsedBody);
289
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
290
290
  }
291
291
  };
292
292
  const deserializeAws_json1_1CreateHsmCommand = async (output, context) => {
@@ -328,7 +328,7 @@ const deserializeAws_json1_1CreateHsmCommandError = async (output, context) => {
328
328
  $fault: "client",
329
329
  $metadata: deserializeMetadata(output),
330
330
  });
331
- throw smithy_client_1.decorateServiceException(response, parsedBody);
331
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
332
332
  }
333
333
  };
334
334
  const deserializeAws_json1_1CreateLunaClientCommand = async (output, context) => {
@@ -370,7 +370,7 @@ const deserializeAws_json1_1CreateLunaClientCommandError = async (output, contex
370
370
  $fault: "client",
371
371
  $metadata: deserializeMetadata(output),
372
372
  });
373
- throw smithy_client_1.decorateServiceException(response, parsedBody);
373
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
374
374
  }
375
375
  };
376
376
  const deserializeAws_json1_1DeleteHapgCommand = async (output, context) => {
@@ -412,7 +412,7 @@ const deserializeAws_json1_1DeleteHapgCommandError = async (output, context) =>
412
412
  $fault: "client",
413
413
  $metadata: deserializeMetadata(output),
414
414
  });
415
- throw smithy_client_1.decorateServiceException(response, parsedBody);
415
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
416
416
  }
417
417
  };
418
418
  const deserializeAws_json1_1DeleteHsmCommand = async (output, context) => {
@@ -454,7 +454,7 @@ const deserializeAws_json1_1DeleteHsmCommandError = async (output, context) => {
454
454
  $fault: "client",
455
455
  $metadata: deserializeMetadata(output),
456
456
  });
457
- throw smithy_client_1.decorateServiceException(response, parsedBody);
457
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
458
458
  }
459
459
  };
460
460
  const deserializeAws_json1_1DeleteLunaClientCommand = async (output, context) => {
@@ -496,7 +496,7 @@ const deserializeAws_json1_1DeleteLunaClientCommandError = async (output, contex
496
496
  $fault: "client",
497
497
  $metadata: deserializeMetadata(output),
498
498
  });
499
- throw smithy_client_1.decorateServiceException(response, parsedBody);
499
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
500
500
  }
501
501
  };
502
502
  const deserializeAws_json1_1DescribeHapgCommand = async (output, context) => {
@@ -538,7 +538,7 @@ const deserializeAws_json1_1DescribeHapgCommandError = async (output, context) =
538
538
  $fault: "client",
539
539
  $metadata: deserializeMetadata(output),
540
540
  });
541
- throw smithy_client_1.decorateServiceException(response, parsedBody);
541
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
542
542
  }
543
543
  };
544
544
  const deserializeAws_json1_1DescribeHsmCommand = async (output, context) => {
@@ -580,7 +580,7 @@ const deserializeAws_json1_1DescribeHsmCommandError = async (output, context) =>
580
580
  $fault: "client",
581
581
  $metadata: deserializeMetadata(output),
582
582
  });
583
- throw smithy_client_1.decorateServiceException(response, parsedBody);
583
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
584
584
  }
585
585
  };
586
586
  const deserializeAws_json1_1DescribeLunaClientCommand = async (output, context) => {
@@ -622,7 +622,7 @@ const deserializeAws_json1_1DescribeLunaClientCommandError = async (output, cont
622
622
  $fault: "client",
623
623
  $metadata: deserializeMetadata(output),
624
624
  });
625
- throw smithy_client_1.decorateServiceException(response, parsedBody);
625
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
626
626
  }
627
627
  };
628
628
  const deserializeAws_json1_1GetConfigCommand = async (output, context) => {
@@ -664,7 +664,7 @@ const deserializeAws_json1_1GetConfigCommandError = async (output, context) => {
664
664
  $fault: "client",
665
665
  $metadata: deserializeMetadata(output),
666
666
  });
667
- throw smithy_client_1.decorateServiceException(response, parsedBody);
667
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
668
668
  }
669
669
  };
670
670
  const deserializeAws_json1_1ListAvailableZonesCommand = async (output, context) => {
@@ -706,7 +706,7 @@ const deserializeAws_json1_1ListAvailableZonesCommandError = async (output, cont
706
706
  $fault: "client",
707
707
  $metadata: deserializeMetadata(output),
708
708
  });
709
- throw smithy_client_1.decorateServiceException(response, parsedBody);
709
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
710
710
  }
711
711
  };
712
712
  const deserializeAws_json1_1ListHapgsCommand = async (output, context) => {
@@ -748,7 +748,7 @@ const deserializeAws_json1_1ListHapgsCommandError = async (output, context) => {
748
748
  $fault: "client",
749
749
  $metadata: deserializeMetadata(output),
750
750
  });
751
- throw smithy_client_1.decorateServiceException(response, parsedBody);
751
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
752
752
  }
753
753
  };
754
754
  const deserializeAws_json1_1ListHsmsCommand = async (output, context) => {
@@ -790,7 +790,7 @@ const deserializeAws_json1_1ListHsmsCommandError = async (output, context) => {
790
790
  $fault: "client",
791
791
  $metadata: deserializeMetadata(output),
792
792
  });
793
- throw smithy_client_1.decorateServiceException(response, parsedBody);
793
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
794
794
  }
795
795
  };
796
796
  const deserializeAws_json1_1ListLunaClientsCommand = async (output, context) => {
@@ -832,7 +832,7 @@ const deserializeAws_json1_1ListLunaClientsCommandError = async (output, context
832
832
  $fault: "client",
833
833
  $metadata: deserializeMetadata(output),
834
834
  });
835
- throw smithy_client_1.decorateServiceException(response, parsedBody);
835
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
836
836
  }
837
837
  };
838
838
  const deserializeAws_json1_1ListTagsForResourceCommand = async (output, context) => {
@@ -874,7 +874,7 @@ const deserializeAws_json1_1ListTagsForResourceCommandError = async (output, con
874
874
  $fault: "client",
875
875
  $metadata: deserializeMetadata(output),
876
876
  });
877
- throw smithy_client_1.decorateServiceException(response, parsedBody);
877
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
878
878
  }
879
879
  };
880
880
  const deserializeAws_json1_1ModifyHapgCommand = async (output, context) => {
@@ -916,7 +916,7 @@ const deserializeAws_json1_1ModifyHapgCommandError = async (output, context) =>
916
916
  $fault: "client",
917
917
  $metadata: deserializeMetadata(output),
918
918
  });
919
- throw smithy_client_1.decorateServiceException(response, parsedBody);
919
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
920
920
  }
921
921
  };
922
922
  const deserializeAws_json1_1ModifyHsmCommand = async (output, context) => {
@@ -958,7 +958,7 @@ const deserializeAws_json1_1ModifyHsmCommandError = async (output, context) => {
958
958
  $fault: "client",
959
959
  $metadata: deserializeMetadata(output),
960
960
  });
961
- throw smithy_client_1.decorateServiceException(response, parsedBody);
961
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
962
962
  }
963
963
  };
964
964
  const deserializeAws_json1_1ModifyLunaClientCommand = async (output, context) => {
@@ -994,7 +994,7 @@ const deserializeAws_json1_1ModifyLunaClientCommandError = async (output, contex
994
994
  $fault: "client",
995
995
  $metadata: deserializeMetadata(output),
996
996
  });
997
- throw smithy_client_1.decorateServiceException(response, parsedBody);
997
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
998
998
  }
999
999
  };
1000
1000
  const deserializeAws_json1_1RemoveTagsFromResourceCommand = async (output, context) => {
@@ -1036,7 +1036,7 @@ const deserializeAws_json1_1RemoveTagsFromResourceCommandError = async (output,
1036
1036
  $fault: "client",
1037
1037
  $metadata: deserializeMetadata(output),
1038
1038
  });
1039
- throw smithy_client_1.decorateServiceException(response, parsedBody);
1039
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
1040
1040
  }
1041
1041
  };
1042
1042
  const deserializeAws_json1_1CloudHsmInternalExceptionResponse = async (parsedOutput, context) => {
@@ -1046,7 +1046,7 @@ const deserializeAws_json1_1CloudHsmInternalExceptionResponse = async (parsedOut
1046
1046
  $metadata: deserializeMetadata(parsedOutput),
1047
1047
  ...deserialized,
1048
1048
  });
1049
- return smithy_client_1.decorateServiceException(exception, body);
1049
+ return (0, smithy_client_1.decorateServiceException)(exception, body);
1050
1050
  };
1051
1051
  const deserializeAws_json1_1CloudHsmServiceExceptionResponse = async (parsedOutput, context) => {
1052
1052
  const body = parsedOutput.body;
@@ -1055,7 +1055,7 @@ const deserializeAws_json1_1CloudHsmServiceExceptionResponse = async (parsedOutp
1055
1055
  $metadata: deserializeMetadata(parsedOutput),
1056
1056
  ...deserialized,
1057
1057
  });
1058
- return smithy_client_1.decorateServiceException(exception, body);
1058
+ return (0, smithy_client_1.decorateServiceException)(exception, body);
1059
1059
  };
1060
1060
  const deserializeAws_json1_1InvalidRequestExceptionResponse = async (parsedOutput, context) => {
1061
1061
  const body = parsedOutput.body;
@@ -1064,7 +1064,7 @@ const deserializeAws_json1_1InvalidRequestExceptionResponse = async (parsedOutpu
1064
1064
  $metadata: deserializeMetadata(parsedOutput),
1065
1065
  ...deserialized,
1066
1066
  });
1067
- return smithy_client_1.decorateServiceException(exception, body);
1067
+ return (0, smithy_client_1.decorateServiceException)(exception, body);
1068
1068
  };
1069
1069
  const serializeAws_json1_1AddTagsToResourceRequest = (input, context) => {
1070
1070
  return {
@@ -1243,7 +1243,7 @@ const serializeAws_json1_1TagList = (input, context) => {
1243
1243
  };
1244
1244
  const deserializeAws_json1_1AddTagsToResourceResponse = (output, context) => {
1245
1245
  return {
1246
- Status: smithy_client_1.expectString(output.Status),
1246
+ Status: (0, smithy_client_1.expectString)(output.Status),
1247
1247
  };
1248
1248
  };
1249
1249
  const deserializeAws_json1_1AZList = (output, context) => {
@@ -1253,7 +1253,7 @@ const deserializeAws_json1_1AZList = (output, context) => {
1253
1253
  if (entry === null) {
1254
1254
  return null;
1255
1255
  }
1256
- return smithy_client_1.expectString(entry);
1256
+ return (0, smithy_client_1.expectString)(entry);
1257
1257
  });
1258
1258
  return retVal;
1259
1259
  };
@@ -1264,56 +1264,56 @@ const deserializeAws_json1_1ClientList = (output, context) => {
1264
1264
  if (entry === null) {
1265
1265
  return null;
1266
1266
  }
1267
- return smithy_client_1.expectString(entry);
1267
+ return (0, smithy_client_1.expectString)(entry);
1268
1268
  });
1269
1269
  return retVal;
1270
1270
  };
1271
1271
  const deserializeAws_json1_1CloudHsmInternalException = (output, context) => {
1272
1272
  return {
1273
- message: smithy_client_1.expectString(output.message),
1274
- retryable: smithy_client_1.expectBoolean(output.retryable),
1273
+ message: (0, smithy_client_1.expectString)(output.message),
1274
+ retryable: (0, smithy_client_1.expectBoolean)(output.retryable),
1275
1275
  };
1276
1276
  };
1277
1277
  const deserializeAws_json1_1CloudHsmServiceException = (output, context) => {
1278
1278
  return {
1279
- message: smithy_client_1.expectString(output.message),
1280
- retryable: smithy_client_1.expectBoolean(output.retryable),
1279
+ message: (0, smithy_client_1.expectString)(output.message),
1280
+ retryable: (0, smithy_client_1.expectBoolean)(output.retryable),
1281
1281
  };
1282
1282
  };
1283
1283
  const deserializeAws_json1_1CreateHapgResponse = (output, context) => {
1284
1284
  return {
1285
- HapgArn: smithy_client_1.expectString(output.HapgArn),
1285
+ HapgArn: (0, smithy_client_1.expectString)(output.HapgArn),
1286
1286
  };
1287
1287
  };
1288
1288
  const deserializeAws_json1_1CreateHsmResponse = (output, context) => {
1289
1289
  return {
1290
- HsmArn: smithy_client_1.expectString(output.HsmArn),
1290
+ HsmArn: (0, smithy_client_1.expectString)(output.HsmArn),
1291
1291
  };
1292
1292
  };
1293
1293
  const deserializeAws_json1_1CreateLunaClientResponse = (output, context) => {
1294
1294
  return {
1295
- ClientArn: smithy_client_1.expectString(output.ClientArn),
1295
+ ClientArn: (0, smithy_client_1.expectString)(output.ClientArn),
1296
1296
  };
1297
1297
  };
1298
1298
  const deserializeAws_json1_1DeleteHapgResponse = (output, context) => {
1299
1299
  return {
1300
- Status: smithy_client_1.expectString(output.Status),
1300
+ Status: (0, smithy_client_1.expectString)(output.Status),
1301
1301
  };
1302
1302
  };
1303
1303
  const deserializeAws_json1_1DeleteHsmResponse = (output, context) => {
1304
1304
  return {
1305
- Status: smithy_client_1.expectString(output.Status),
1305
+ Status: (0, smithy_client_1.expectString)(output.Status),
1306
1306
  };
1307
1307
  };
1308
1308
  const deserializeAws_json1_1DeleteLunaClientResponse = (output, context) => {
1309
1309
  return {
1310
- Status: smithy_client_1.expectString(output.Status),
1310
+ Status: (0, smithy_client_1.expectString)(output.Status),
1311
1311
  };
1312
1312
  };
1313
1313
  const deserializeAws_json1_1DescribeHapgResponse = (output, context) => {
1314
1314
  return {
1315
- HapgArn: smithy_client_1.expectString(output.HapgArn),
1316
- HapgSerial: smithy_client_1.expectString(output.HapgSerial),
1315
+ HapgArn: (0, smithy_client_1.expectString)(output.HapgArn),
1316
+ HapgSerial: (0, smithy_client_1.expectString)(output.HapgSerial),
1317
1317
  HsmsLastActionFailed: output.HsmsLastActionFailed !== undefined && output.HsmsLastActionFailed !== null
1318
1318
  ? deserializeAws_json1_1HsmList(output.HsmsLastActionFailed, context)
1319
1319
  : undefined,
@@ -1323,55 +1323,55 @@ const deserializeAws_json1_1DescribeHapgResponse = (output, context) => {
1323
1323
  HsmsPendingRegistration: output.HsmsPendingRegistration !== undefined && output.HsmsPendingRegistration !== null
1324
1324
  ? deserializeAws_json1_1HsmList(output.HsmsPendingRegistration, context)
1325
1325
  : undefined,
1326
- Label: smithy_client_1.expectString(output.Label),
1327
- LastModifiedTimestamp: smithy_client_1.expectString(output.LastModifiedTimestamp),
1326
+ Label: (0, smithy_client_1.expectString)(output.Label),
1327
+ LastModifiedTimestamp: (0, smithy_client_1.expectString)(output.LastModifiedTimestamp),
1328
1328
  PartitionSerialList: output.PartitionSerialList !== undefined && output.PartitionSerialList !== null
1329
1329
  ? deserializeAws_json1_1PartitionSerialList(output.PartitionSerialList, context)
1330
1330
  : undefined,
1331
- State: smithy_client_1.expectString(output.State),
1331
+ State: (0, smithy_client_1.expectString)(output.State),
1332
1332
  };
1333
1333
  };
1334
1334
  const deserializeAws_json1_1DescribeHsmResponse = (output, context) => {
1335
1335
  return {
1336
- AvailabilityZone: smithy_client_1.expectString(output.AvailabilityZone),
1337
- EniId: smithy_client_1.expectString(output.EniId),
1338
- EniIp: smithy_client_1.expectString(output.EniIp),
1339
- HsmArn: smithy_client_1.expectString(output.HsmArn),
1340
- HsmType: smithy_client_1.expectString(output.HsmType),
1341
- IamRoleArn: smithy_client_1.expectString(output.IamRoleArn),
1336
+ AvailabilityZone: (0, smithy_client_1.expectString)(output.AvailabilityZone),
1337
+ EniId: (0, smithy_client_1.expectString)(output.EniId),
1338
+ EniIp: (0, smithy_client_1.expectString)(output.EniIp),
1339
+ HsmArn: (0, smithy_client_1.expectString)(output.HsmArn),
1340
+ HsmType: (0, smithy_client_1.expectString)(output.HsmType),
1341
+ IamRoleArn: (0, smithy_client_1.expectString)(output.IamRoleArn),
1342
1342
  Partitions: output.Partitions !== undefined && output.Partitions !== null
1343
1343
  ? deserializeAws_json1_1PartitionList(output.Partitions, context)
1344
1344
  : undefined,
1345
- SerialNumber: smithy_client_1.expectString(output.SerialNumber),
1346
- ServerCertLastUpdated: smithy_client_1.expectString(output.ServerCertLastUpdated),
1347
- ServerCertUri: smithy_client_1.expectString(output.ServerCertUri),
1348
- SoftwareVersion: smithy_client_1.expectString(output.SoftwareVersion),
1349
- SshKeyLastUpdated: smithy_client_1.expectString(output.SshKeyLastUpdated),
1350
- SshPublicKey: smithy_client_1.expectString(output.SshPublicKey),
1351
- Status: smithy_client_1.expectString(output.Status),
1352
- StatusDetails: smithy_client_1.expectString(output.StatusDetails),
1353
- SubnetId: smithy_client_1.expectString(output.SubnetId),
1354
- SubscriptionEndDate: smithy_client_1.expectString(output.SubscriptionEndDate),
1355
- SubscriptionStartDate: smithy_client_1.expectString(output.SubscriptionStartDate),
1356
- SubscriptionType: smithy_client_1.expectString(output.SubscriptionType),
1357
- VendorName: smithy_client_1.expectString(output.VendorName),
1358
- VpcId: smithy_client_1.expectString(output.VpcId),
1345
+ SerialNumber: (0, smithy_client_1.expectString)(output.SerialNumber),
1346
+ ServerCertLastUpdated: (0, smithy_client_1.expectString)(output.ServerCertLastUpdated),
1347
+ ServerCertUri: (0, smithy_client_1.expectString)(output.ServerCertUri),
1348
+ SoftwareVersion: (0, smithy_client_1.expectString)(output.SoftwareVersion),
1349
+ SshKeyLastUpdated: (0, smithy_client_1.expectString)(output.SshKeyLastUpdated),
1350
+ SshPublicKey: (0, smithy_client_1.expectString)(output.SshPublicKey),
1351
+ Status: (0, smithy_client_1.expectString)(output.Status),
1352
+ StatusDetails: (0, smithy_client_1.expectString)(output.StatusDetails),
1353
+ SubnetId: (0, smithy_client_1.expectString)(output.SubnetId),
1354
+ SubscriptionEndDate: (0, smithy_client_1.expectString)(output.SubscriptionEndDate),
1355
+ SubscriptionStartDate: (0, smithy_client_1.expectString)(output.SubscriptionStartDate),
1356
+ SubscriptionType: (0, smithy_client_1.expectString)(output.SubscriptionType),
1357
+ VendorName: (0, smithy_client_1.expectString)(output.VendorName),
1358
+ VpcId: (0, smithy_client_1.expectString)(output.VpcId),
1359
1359
  };
1360
1360
  };
1361
1361
  const deserializeAws_json1_1DescribeLunaClientResponse = (output, context) => {
1362
1362
  return {
1363
- Certificate: smithy_client_1.expectString(output.Certificate),
1364
- CertificateFingerprint: smithy_client_1.expectString(output.CertificateFingerprint),
1365
- ClientArn: smithy_client_1.expectString(output.ClientArn),
1366
- Label: smithy_client_1.expectString(output.Label),
1367
- LastModifiedTimestamp: smithy_client_1.expectString(output.LastModifiedTimestamp),
1363
+ Certificate: (0, smithy_client_1.expectString)(output.Certificate),
1364
+ CertificateFingerprint: (0, smithy_client_1.expectString)(output.CertificateFingerprint),
1365
+ ClientArn: (0, smithy_client_1.expectString)(output.ClientArn),
1366
+ Label: (0, smithy_client_1.expectString)(output.Label),
1367
+ LastModifiedTimestamp: (0, smithy_client_1.expectString)(output.LastModifiedTimestamp),
1368
1368
  };
1369
1369
  };
1370
1370
  const deserializeAws_json1_1GetConfigResponse = (output, context) => {
1371
1371
  return {
1372
- ConfigCred: smithy_client_1.expectString(output.ConfigCred),
1373
- ConfigFile: smithy_client_1.expectString(output.ConfigFile),
1374
- ConfigType: smithy_client_1.expectString(output.ConfigType),
1372
+ ConfigCred: (0, smithy_client_1.expectString)(output.ConfigCred),
1373
+ ConfigFile: (0, smithy_client_1.expectString)(output.ConfigFile),
1374
+ ConfigType: (0, smithy_client_1.expectString)(output.ConfigType),
1375
1375
  };
1376
1376
  };
1377
1377
  const deserializeAws_json1_1HapgList = (output, context) => {
@@ -1381,7 +1381,7 @@ const deserializeAws_json1_1HapgList = (output, context) => {
1381
1381
  if (entry === null) {
1382
1382
  return null;
1383
1383
  }
1384
- return smithy_client_1.expectString(entry);
1384
+ return (0, smithy_client_1.expectString)(entry);
1385
1385
  });
1386
1386
  return retVal;
1387
1387
  };
@@ -1392,14 +1392,14 @@ const deserializeAws_json1_1HsmList = (output, context) => {
1392
1392
  if (entry === null) {
1393
1393
  return null;
1394
1394
  }
1395
- return smithy_client_1.expectString(entry);
1395
+ return (0, smithy_client_1.expectString)(entry);
1396
1396
  });
1397
1397
  return retVal;
1398
1398
  };
1399
1399
  const deserializeAws_json1_1InvalidRequestException = (output, context) => {
1400
1400
  return {
1401
- message: smithy_client_1.expectString(output.message),
1402
- retryable: smithy_client_1.expectBoolean(output.retryable),
1401
+ message: (0, smithy_client_1.expectString)(output.message),
1402
+ retryable: (0, smithy_client_1.expectBoolean)(output.retryable),
1403
1403
  };
1404
1404
  };
1405
1405
  const deserializeAws_json1_1ListAvailableZonesResponse = (output, context) => {
@@ -1414,7 +1414,7 @@ const deserializeAws_json1_1ListHapgsResponse = (output, context) => {
1414
1414
  HapgList: output.HapgList !== undefined && output.HapgList !== null
1415
1415
  ? deserializeAws_json1_1HapgList(output.HapgList, context)
1416
1416
  : undefined,
1417
- NextToken: smithy_client_1.expectString(output.NextToken),
1417
+ NextToken: (0, smithy_client_1.expectString)(output.NextToken),
1418
1418
  };
1419
1419
  };
1420
1420
  const deserializeAws_json1_1ListHsmsResponse = (output, context) => {
@@ -1422,7 +1422,7 @@ const deserializeAws_json1_1ListHsmsResponse = (output, context) => {
1422
1422
  HsmList: output.HsmList !== undefined && output.HsmList !== null
1423
1423
  ? deserializeAws_json1_1HsmList(output.HsmList, context)
1424
1424
  : undefined,
1425
- NextToken: smithy_client_1.expectString(output.NextToken),
1425
+ NextToken: (0, smithy_client_1.expectString)(output.NextToken),
1426
1426
  };
1427
1427
  };
1428
1428
  const deserializeAws_json1_1ListLunaClientsResponse = (output, context) => {
@@ -1430,7 +1430,7 @@ const deserializeAws_json1_1ListLunaClientsResponse = (output, context) => {
1430
1430
  ClientList: output.ClientList !== undefined && output.ClientList !== null
1431
1431
  ? deserializeAws_json1_1ClientList(output.ClientList, context)
1432
1432
  : undefined,
1433
- NextToken: smithy_client_1.expectString(output.NextToken),
1433
+ NextToken: (0, smithy_client_1.expectString)(output.NextToken),
1434
1434
  };
1435
1435
  };
1436
1436
  const deserializeAws_json1_1ListTagsForResourceResponse = (output, context) => {
@@ -1442,17 +1442,17 @@ const deserializeAws_json1_1ListTagsForResourceResponse = (output, context) => {
1442
1442
  };
1443
1443
  const deserializeAws_json1_1ModifyHapgResponse = (output, context) => {
1444
1444
  return {
1445
- HapgArn: smithy_client_1.expectString(output.HapgArn),
1445
+ HapgArn: (0, smithy_client_1.expectString)(output.HapgArn),
1446
1446
  };
1447
1447
  };
1448
1448
  const deserializeAws_json1_1ModifyHsmResponse = (output, context) => {
1449
1449
  return {
1450
- HsmArn: smithy_client_1.expectString(output.HsmArn),
1450
+ HsmArn: (0, smithy_client_1.expectString)(output.HsmArn),
1451
1451
  };
1452
1452
  };
1453
1453
  const deserializeAws_json1_1ModifyLunaClientResponse = (output, context) => {
1454
1454
  return {
1455
- ClientArn: smithy_client_1.expectString(output.ClientArn),
1455
+ ClientArn: (0, smithy_client_1.expectString)(output.ClientArn),
1456
1456
  };
1457
1457
  };
1458
1458
  const deserializeAws_json1_1PartitionList = (output, context) => {
@@ -1462,7 +1462,7 @@ const deserializeAws_json1_1PartitionList = (output, context) => {
1462
1462
  if (entry === null) {
1463
1463
  return null;
1464
1464
  }
1465
- return smithy_client_1.expectString(entry);
1465
+ return (0, smithy_client_1.expectString)(entry);
1466
1466
  });
1467
1467
  return retVal;
1468
1468
  };
@@ -1473,19 +1473,19 @@ const deserializeAws_json1_1PartitionSerialList = (output, context) => {
1473
1473
  if (entry === null) {
1474
1474
  return null;
1475
1475
  }
1476
- return smithy_client_1.expectString(entry);
1476
+ return (0, smithy_client_1.expectString)(entry);
1477
1477
  });
1478
1478
  return retVal;
1479
1479
  };
1480
1480
  const deserializeAws_json1_1RemoveTagsFromResourceResponse = (output, context) => {
1481
1481
  return {
1482
- Status: smithy_client_1.expectString(output.Status),
1482
+ Status: (0, smithy_client_1.expectString)(output.Status),
1483
1483
  };
1484
1484
  };
1485
1485
  const deserializeAws_json1_1Tag = (output, context) => {
1486
1486
  return {
1487
- Key: smithy_client_1.expectString(output.Key),
1488
- Value: smithy_client_1.expectString(output.Value),
1487
+ Key: (0, smithy_client_1.expectString)(output.Key),
1488
+ Value: (0, smithy_client_1.expectString)(output.Value),
1489
1489
  };
1490
1490
  };
1491
1491
  const deserializeAws_json1_1TagList = (output, context) => {
@@ -17,9 +17,9 @@ const smithy_client_1 = require("@aws-sdk/smithy-client");
17
17
  const util_defaults_mode_browser_1 = require("@aws-sdk/util-defaults-mode-browser");
18
18
  const getRuntimeConfig = (config) => {
19
19
  var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q;
20
- const defaultsMode = util_defaults_mode_browser_1.resolveDefaultsModeConfig(config);
20
+ const defaultsMode = (0, util_defaults_mode_browser_1.resolveDefaultsModeConfig)(config);
21
21
  const defaultConfigProvider = () => defaultsMode().then(smithy_client_1.loadConfigsForDefaultMode);
22
- const clientSharedValues = runtimeConfig_shared_1.getRuntimeConfig(config);
22
+ const clientSharedValues = (0, runtimeConfig_shared_1.getRuntimeConfig)(config);
23
23
  return {
24
24
  ...clientSharedValues,
25
25
  ...config,
@@ -29,9 +29,9 @@ const getRuntimeConfig = (config) => {
29
29
  base64Encoder: (_b = config === null || config === void 0 ? void 0 : config.base64Encoder) !== null && _b !== void 0 ? _b : util_base64_browser_1.toBase64,
30
30
  bodyLengthChecker: (_c = config === null || config === void 0 ? void 0 : config.bodyLengthChecker) !== null && _c !== void 0 ? _c : util_body_length_browser_1.calculateBodyLength,
31
31
  credentialDefaultProvider: (_d = config === null || config === void 0 ? void 0 : config.credentialDefaultProvider) !== null && _d !== void 0 ? _d : ((_) => () => Promise.reject(new Error("Credential is missing"))),
32
- defaultUserAgentProvider: (_e = config === null || config === void 0 ? void 0 : config.defaultUserAgentProvider) !== null && _e !== void 0 ? _e : util_user_agent_browser_1.defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: package_json_1.default.version }),
32
+ defaultUserAgentProvider: (_e = config === null || config === void 0 ? void 0 : config.defaultUserAgentProvider) !== null && _e !== void 0 ? _e : (0, util_user_agent_browser_1.defaultUserAgent)({ serviceId: clientSharedValues.serviceId, clientVersion: package_json_1.default.version }),
33
33
  maxAttempts: (_f = config === null || config === void 0 ? void 0 : config.maxAttempts) !== null && _f !== void 0 ? _f : middleware_retry_1.DEFAULT_MAX_ATTEMPTS,
34
- region: (_g = config === null || config === void 0 ? void 0 : config.region) !== null && _g !== void 0 ? _g : invalid_dependency_1.invalidProvider("Region is missing"),
34
+ region: (_g = config === null || config === void 0 ? void 0 : config.region) !== null && _g !== void 0 ? _g : (0, invalid_dependency_1.invalidProvider)("Region is missing"),
35
35
  requestHandler: (_h = config === null || config === void 0 ? void 0 : config.requestHandler) !== null && _h !== void 0 ? _h : new fetch_http_handler_1.FetchHttpHandler(defaultConfigProvider),
36
36
  retryMode: (_j = config === null || config === void 0 ? void 0 : config.retryMode) !== null && _j !== void 0 ? _j : (async () => (await defaultConfigProvider()).retryMode || middleware_retry_1.DEFAULT_RETRY_MODE),
37
37
  sha256: (_k = config === null || config === void 0 ? void 0 : config.sha256) !== null && _k !== void 0 ? _k : sha256_browser_1.Sha256,
@@ -19,9 +19,9 @@ const smithy_client_1 = require("@aws-sdk/smithy-client");
19
19
  const util_defaults_mode_node_1 = require("@aws-sdk/util-defaults-mode-node");
20
20
  const getRuntimeConfig = (config) => {
21
21
  var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q;
22
- const defaultsMode = util_defaults_mode_node_1.resolveDefaultsModeConfig(config);
22
+ const defaultsMode = (0, util_defaults_mode_node_1.resolveDefaultsModeConfig)(config);
23
23
  const defaultConfigProvider = () => defaultsMode().then(smithy_client_1.loadConfigsForDefaultMode);
24
- const clientSharedValues = runtimeConfig_shared_1.getRuntimeConfig(config);
24
+ const clientSharedValues = (0, runtimeConfig_shared_1.getRuntimeConfig)(config);
25
25
  return {
26
26
  ...clientSharedValues,
27
27
  ...config,
@@ -30,19 +30,19 @@ const getRuntimeConfig = (config) => {
30
30
  base64Decoder: (_a = config === null || config === void 0 ? void 0 : config.base64Decoder) !== null && _a !== void 0 ? _a : util_base64_node_1.fromBase64,
31
31
  base64Encoder: (_b = config === null || config === void 0 ? void 0 : config.base64Encoder) !== null && _b !== void 0 ? _b : util_base64_node_1.toBase64,
32
32
  bodyLengthChecker: (_c = config === null || config === void 0 ? void 0 : config.bodyLengthChecker) !== null && _c !== void 0 ? _c : util_body_length_node_1.calculateBodyLength,
33
- credentialDefaultProvider: (_d = config === null || config === void 0 ? void 0 : config.credentialDefaultProvider) !== null && _d !== void 0 ? _d : client_sts_1.decorateDefaultCredentialProvider(credential_provider_node_1.defaultProvider),
34
- defaultUserAgentProvider: (_e = config === null || config === void 0 ? void 0 : config.defaultUserAgentProvider) !== null && _e !== void 0 ? _e : util_user_agent_node_1.defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: package_json_1.default.version }),
35
- maxAttempts: (_f = config === null || config === void 0 ? void 0 : config.maxAttempts) !== null && _f !== void 0 ? _f : node_config_provider_1.loadConfig(middleware_retry_1.NODE_MAX_ATTEMPT_CONFIG_OPTIONS),
36
- region: (_g = config === null || config === void 0 ? void 0 : config.region) !== null && _g !== void 0 ? _g : node_config_provider_1.loadConfig(config_resolver_1.NODE_REGION_CONFIG_OPTIONS, config_resolver_1.NODE_REGION_CONFIG_FILE_OPTIONS),
33
+ credentialDefaultProvider: (_d = config === null || config === void 0 ? void 0 : config.credentialDefaultProvider) !== null && _d !== void 0 ? _d : (0, client_sts_1.decorateDefaultCredentialProvider)(credential_provider_node_1.defaultProvider),
34
+ defaultUserAgentProvider: (_e = config === null || config === void 0 ? void 0 : config.defaultUserAgentProvider) !== null && _e !== void 0 ? _e : (0, util_user_agent_node_1.defaultUserAgent)({ serviceId: clientSharedValues.serviceId, clientVersion: package_json_1.default.version }),
35
+ maxAttempts: (_f = config === null || config === void 0 ? void 0 : config.maxAttempts) !== null && _f !== void 0 ? _f : (0, node_config_provider_1.loadConfig)(middleware_retry_1.NODE_MAX_ATTEMPT_CONFIG_OPTIONS),
36
+ region: (_g = config === null || config === void 0 ? void 0 : config.region) !== null && _g !== void 0 ? _g : (0, node_config_provider_1.loadConfig)(config_resolver_1.NODE_REGION_CONFIG_OPTIONS, config_resolver_1.NODE_REGION_CONFIG_FILE_OPTIONS),
37
37
  requestHandler: (_h = config === null || config === void 0 ? void 0 : config.requestHandler) !== null && _h !== void 0 ? _h : new node_http_handler_1.NodeHttpHandler(defaultConfigProvider),
38
- retryMode: (_j = config === null || config === void 0 ? void 0 : config.retryMode) !== null && _j !== void 0 ? _j : node_config_provider_1.loadConfig({
38
+ retryMode: (_j = config === null || config === void 0 ? void 0 : config.retryMode) !== null && _j !== void 0 ? _j : (0, node_config_provider_1.loadConfig)({
39
39
  ...middleware_retry_1.NODE_RETRY_MODE_CONFIG_OPTIONS,
40
40
  default: async () => (await defaultConfigProvider()).retryMode || middleware_retry_1.DEFAULT_RETRY_MODE,
41
41
  }),
42
42
  sha256: (_k = config === null || config === void 0 ? void 0 : config.sha256) !== null && _k !== void 0 ? _k : hash_node_1.Hash.bind(null, "sha256"),
43
43
  streamCollector: (_l = config === null || config === void 0 ? void 0 : config.streamCollector) !== null && _l !== void 0 ? _l : node_http_handler_1.streamCollector,
44
- useDualstackEndpoint: (_m = config === null || config === void 0 ? void 0 : config.useDualstackEndpoint) !== null && _m !== void 0 ? _m : node_config_provider_1.loadConfig(config_resolver_1.NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS),
45
- useFipsEndpoint: (_o = config === null || config === void 0 ? void 0 : config.useFipsEndpoint) !== null && _o !== void 0 ? _o : node_config_provider_1.loadConfig(config_resolver_1.NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS),
44
+ useDualstackEndpoint: (_m = config === null || config === void 0 ? void 0 : config.useDualstackEndpoint) !== null && _m !== void 0 ? _m : (0, node_config_provider_1.loadConfig)(config_resolver_1.NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS),
45
+ useFipsEndpoint: (_o = config === null || config === void 0 ? void 0 : config.useFipsEndpoint) !== null && _o !== void 0 ? _o : (0, node_config_provider_1.loadConfig)(config_resolver_1.NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS),
46
46
  utf8Decoder: (_p = config === null || config === void 0 ? void 0 : config.utf8Decoder) !== null && _p !== void 0 ? _p : util_utf8_node_1.fromUtf8,
47
47
  utf8Encoder: (_q = config === null || config === void 0 ? void 0 : config.utf8Encoder) !== null && _q !== void 0 ? _q : util_utf8_node_1.toUtf8,
48
48
  };
@@ -5,7 +5,7 @@ const sha256_js_1 = require("@aws-crypto/sha256-js");
5
5
  const runtimeConfig_browser_1 = require("./runtimeConfig.browser");
6
6
  const getRuntimeConfig = (config) => {
7
7
  var _a;
8
- const browserDefaults = runtimeConfig_browser_1.getRuntimeConfig(config);
8
+ const browserDefaults = (0, runtimeConfig_browser_1.getRuntimeConfig)(config);
9
9
  return {
10
10
  ...browserDefaults,
11
11
  ...config,