@aws-sdk/client-payment-cryptography 3.645.0 → 3.650.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 (30) hide show
  1. package/dist-cjs/endpoint/endpointResolver.js +6 -2
  2. package/dist-cjs/index.js +20 -60
  3. package/dist-es/commands/CreateAliasCommand.js +1 -3
  4. package/dist-es/commands/CreateKeyCommand.js +1 -3
  5. package/dist-es/commands/DeleteAliasCommand.js +1 -3
  6. package/dist-es/commands/DeleteKeyCommand.js +1 -3
  7. package/dist-es/commands/ExportKeyCommand.js +1 -3
  8. package/dist-es/commands/GetAliasCommand.js +1 -3
  9. package/dist-es/commands/GetKeyCommand.js +1 -3
  10. package/dist-es/commands/GetParametersForExportCommand.js +1 -3
  11. package/dist-es/commands/GetParametersForImportCommand.js +1 -3
  12. package/dist-es/commands/GetPublicKeyCertificateCommand.js +1 -3
  13. package/dist-es/commands/ImportKeyCommand.js +1 -3
  14. package/dist-es/commands/ListAliasesCommand.js +1 -3
  15. package/dist-es/commands/ListKeysCommand.js +1 -3
  16. package/dist-es/commands/ListTagsForResourceCommand.js +1 -3
  17. package/dist-es/commands/RestoreKeyCommand.js +1 -3
  18. package/dist-es/commands/StartKeyUsageCommand.js +1 -3
  19. package/dist-es/commands/StopKeyUsageCommand.js +1 -3
  20. package/dist-es/commands/TagResourceCommand.js +1 -3
  21. package/dist-es/commands/UntagResourceCommand.js +1 -3
  22. package/dist-es/commands/UpdateAliasCommand.js +1 -3
  23. package/dist-es/endpoint/endpointResolver.js +7 -3
  24. package/dist-types/runtimeConfig.browser.d.ts +2 -0
  25. package/dist-types/runtimeConfig.d.ts +2 -0
  26. package/dist-types/runtimeConfig.native.d.ts +2 -0
  27. package/dist-types/ts3.4/runtimeConfig.browser.d.ts +2 -0
  28. package/dist-types/ts3.4/runtimeConfig.d.ts +2 -0
  29. package/dist-types/ts3.4/runtimeConfig.native.d.ts +2 -0
  30. package/package.json +35 -35
@@ -4,11 +4,15 @@ exports.defaultEndpointResolver = void 0;
4
4
  const util_endpoints_1 = require("@aws-sdk/util-endpoints");
5
5
  const util_endpoints_2 = require("@smithy/util-endpoints");
6
6
  const ruleset_1 = require("./ruleset");
7
+ const cache = new util_endpoints_2.EndpointCache({
8
+ size: 50,
9
+ params: ["Endpoint", "Region", "UseDualStack", "UseFIPS"],
10
+ });
7
11
  const defaultEndpointResolver = (endpointParams, context = {}) => {
8
- return (0, util_endpoints_2.resolveEndpoint)(ruleset_1.ruleSet, {
12
+ return cache.get(endpointParams, () => (0, util_endpoints_2.resolveEndpoint)(ruleset_1.ruleSet, {
9
13
  endpointParams: endpointParams,
10
14
  logger: context.logger,
11
- });
15
+ }));
12
16
  };
13
17
  exports.defaultEndpointResolver = defaultEndpointResolver;
14
18
  util_endpoints_2.customEndpointFunctions.aws = util_endpoints_1.awsEndpointFunctions;
package/dist-cjs/index.js CHANGED
@@ -1196,9 +1196,7 @@ function sharedHeaders(operation) {
1196
1196
  __name(sharedHeaders, "sharedHeaders");
1197
1197
 
1198
1198
  // src/commands/CreateAliasCommand.ts
1199
- var _CreateAliasCommand = class _CreateAliasCommand extends import_smithy_client.Command.classBuilder().ep({
1200
- ...commonParams
1201
- }).m(function(Command, cs, config, o) {
1199
+ var _CreateAliasCommand = class _CreateAliasCommand extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1202
1200
  return [
1203
1201
  (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1204
1202
  (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
@@ -1212,9 +1210,7 @@ var CreateAliasCommand = _CreateAliasCommand;
1212
1210
 
1213
1211
 
1214
1212
 
1215
- var _CreateKeyCommand = class _CreateKeyCommand extends import_smithy_client.Command.classBuilder().ep({
1216
- ...commonParams
1217
- }).m(function(Command, cs, config, o) {
1213
+ var _CreateKeyCommand = class _CreateKeyCommand extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1218
1214
  return [
1219
1215
  (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1220
1216
  (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
@@ -1228,9 +1224,7 @@ var CreateKeyCommand = _CreateKeyCommand;
1228
1224
 
1229
1225
 
1230
1226
 
1231
- var _DeleteAliasCommand = class _DeleteAliasCommand extends import_smithy_client.Command.classBuilder().ep({
1232
- ...commonParams
1233
- }).m(function(Command, cs, config, o) {
1227
+ var _DeleteAliasCommand = class _DeleteAliasCommand extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1234
1228
  return [
1235
1229
  (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1236
1230
  (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
@@ -1244,9 +1238,7 @@ var DeleteAliasCommand = _DeleteAliasCommand;
1244
1238
 
1245
1239
 
1246
1240
 
1247
- var _DeleteKeyCommand = class _DeleteKeyCommand extends import_smithy_client.Command.classBuilder().ep({
1248
- ...commonParams
1249
- }).m(function(Command, cs, config, o) {
1241
+ var _DeleteKeyCommand = class _DeleteKeyCommand extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1250
1242
  return [
1251
1243
  (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1252
1244
  (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
@@ -1260,9 +1252,7 @@ var DeleteKeyCommand = _DeleteKeyCommand;
1260
1252
 
1261
1253
 
1262
1254
 
1263
- var _ExportKeyCommand = class _ExportKeyCommand extends import_smithy_client.Command.classBuilder().ep({
1264
- ...commonParams
1265
- }).m(function(Command, cs, config, o) {
1255
+ var _ExportKeyCommand = class _ExportKeyCommand extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1266
1256
  return [
1267
1257
  (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1268
1258
  (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
@@ -1276,9 +1266,7 @@ var ExportKeyCommand = _ExportKeyCommand;
1276
1266
 
1277
1267
 
1278
1268
 
1279
- var _GetAliasCommand = class _GetAliasCommand extends import_smithy_client.Command.classBuilder().ep({
1280
- ...commonParams
1281
- }).m(function(Command, cs, config, o) {
1269
+ var _GetAliasCommand = class _GetAliasCommand extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1282
1270
  return [
1283
1271
  (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1284
1272
  (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
@@ -1292,9 +1280,7 @@ var GetAliasCommand = _GetAliasCommand;
1292
1280
 
1293
1281
 
1294
1282
 
1295
- var _GetKeyCommand = class _GetKeyCommand extends import_smithy_client.Command.classBuilder().ep({
1296
- ...commonParams
1297
- }).m(function(Command, cs, config, o) {
1283
+ var _GetKeyCommand = class _GetKeyCommand extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1298
1284
  return [
1299
1285
  (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1300
1286
  (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
@@ -1308,9 +1294,7 @@ var GetKeyCommand = _GetKeyCommand;
1308
1294
 
1309
1295
 
1310
1296
 
1311
- var _GetParametersForExportCommand = class _GetParametersForExportCommand extends import_smithy_client.Command.classBuilder().ep({
1312
- ...commonParams
1313
- }).m(function(Command, cs, config, o) {
1297
+ var _GetParametersForExportCommand = class _GetParametersForExportCommand extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1314
1298
  return [
1315
1299
  (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1316
1300
  (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
@@ -1324,9 +1308,7 @@ var GetParametersForExportCommand = _GetParametersForExportCommand;
1324
1308
 
1325
1309
 
1326
1310
 
1327
- var _GetParametersForImportCommand = class _GetParametersForImportCommand extends import_smithy_client.Command.classBuilder().ep({
1328
- ...commonParams
1329
- }).m(function(Command, cs, config, o) {
1311
+ var _GetParametersForImportCommand = class _GetParametersForImportCommand extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1330
1312
  return [
1331
1313
  (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1332
1314
  (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
@@ -1340,9 +1322,7 @@ var GetParametersForImportCommand = _GetParametersForImportCommand;
1340
1322
 
1341
1323
 
1342
1324
 
1343
- var _GetPublicKeyCertificateCommand = class _GetPublicKeyCertificateCommand extends import_smithy_client.Command.classBuilder().ep({
1344
- ...commonParams
1345
- }).m(function(Command, cs, config, o) {
1325
+ var _GetPublicKeyCertificateCommand = class _GetPublicKeyCertificateCommand extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1346
1326
  return [
1347
1327
  (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1348
1328
  (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
@@ -1356,9 +1336,7 @@ var GetPublicKeyCertificateCommand = _GetPublicKeyCertificateCommand;
1356
1336
 
1357
1337
 
1358
1338
 
1359
- var _ImportKeyCommand = class _ImportKeyCommand extends import_smithy_client.Command.classBuilder().ep({
1360
- ...commonParams
1361
- }).m(function(Command, cs, config, o) {
1339
+ var _ImportKeyCommand = class _ImportKeyCommand extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1362
1340
  return [
1363
1341
  (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1364
1342
  (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
@@ -1372,9 +1350,7 @@ var ImportKeyCommand = _ImportKeyCommand;
1372
1350
 
1373
1351
 
1374
1352
 
1375
- var _ListAliasesCommand = class _ListAliasesCommand extends import_smithy_client.Command.classBuilder().ep({
1376
- ...commonParams
1377
- }).m(function(Command, cs, config, o) {
1353
+ var _ListAliasesCommand = class _ListAliasesCommand extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1378
1354
  return [
1379
1355
  (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1380
1356
  (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
@@ -1388,9 +1364,7 @@ var ListAliasesCommand = _ListAliasesCommand;
1388
1364
 
1389
1365
 
1390
1366
 
1391
- var _ListKeysCommand = class _ListKeysCommand extends import_smithy_client.Command.classBuilder().ep({
1392
- ...commonParams
1393
- }).m(function(Command, cs, config, o) {
1367
+ var _ListKeysCommand = class _ListKeysCommand extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1394
1368
  return [
1395
1369
  (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1396
1370
  (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
@@ -1404,9 +1378,7 @@ var ListKeysCommand = _ListKeysCommand;
1404
1378
 
1405
1379
 
1406
1380
 
1407
- var _ListTagsForResourceCommand = class _ListTagsForResourceCommand extends import_smithy_client.Command.classBuilder().ep({
1408
- ...commonParams
1409
- }).m(function(Command, cs, config, o) {
1381
+ var _ListTagsForResourceCommand = class _ListTagsForResourceCommand extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1410
1382
  return [
1411
1383
  (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1412
1384
  (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
@@ -1420,9 +1392,7 @@ var ListTagsForResourceCommand = _ListTagsForResourceCommand;
1420
1392
 
1421
1393
 
1422
1394
 
1423
- var _RestoreKeyCommand = class _RestoreKeyCommand extends import_smithy_client.Command.classBuilder().ep({
1424
- ...commonParams
1425
- }).m(function(Command, cs, config, o) {
1395
+ var _RestoreKeyCommand = class _RestoreKeyCommand extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1426
1396
  return [
1427
1397
  (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1428
1398
  (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
@@ -1436,9 +1406,7 @@ var RestoreKeyCommand = _RestoreKeyCommand;
1436
1406
 
1437
1407
 
1438
1408
 
1439
- var _StartKeyUsageCommand = class _StartKeyUsageCommand extends import_smithy_client.Command.classBuilder().ep({
1440
- ...commonParams
1441
- }).m(function(Command, cs, config, o) {
1409
+ var _StartKeyUsageCommand = class _StartKeyUsageCommand extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1442
1410
  return [
1443
1411
  (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1444
1412
  (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
@@ -1452,9 +1420,7 @@ var StartKeyUsageCommand = _StartKeyUsageCommand;
1452
1420
 
1453
1421
 
1454
1422
 
1455
- var _StopKeyUsageCommand = class _StopKeyUsageCommand extends import_smithy_client.Command.classBuilder().ep({
1456
- ...commonParams
1457
- }).m(function(Command, cs, config, o) {
1423
+ var _StopKeyUsageCommand = class _StopKeyUsageCommand extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1458
1424
  return [
1459
1425
  (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1460
1426
  (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
@@ -1468,9 +1434,7 @@ var StopKeyUsageCommand = _StopKeyUsageCommand;
1468
1434
 
1469
1435
 
1470
1436
 
1471
- var _TagResourceCommand = class _TagResourceCommand extends import_smithy_client.Command.classBuilder().ep({
1472
- ...commonParams
1473
- }).m(function(Command, cs, config, o) {
1437
+ var _TagResourceCommand = class _TagResourceCommand extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1474
1438
  return [
1475
1439
  (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1476
1440
  (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
@@ -1484,9 +1448,7 @@ var TagResourceCommand = _TagResourceCommand;
1484
1448
 
1485
1449
 
1486
1450
 
1487
- var _UntagResourceCommand = class _UntagResourceCommand extends import_smithy_client.Command.classBuilder().ep({
1488
- ...commonParams
1489
- }).m(function(Command, cs, config, o) {
1451
+ var _UntagResourceCommand = class _UntagResourceCommand extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1490
1452
  return [
1491
1453
  (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1492
1454
  (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
@@ -1500,9 +1462,7 @@ var UntagResourceCommand = _UntagResourceCommand;
1500
1462
 
1501
1463
 
1502
1464
 
1503
- var _UpdateAliasCommand = class _UpdateAliasCommand extends import_smithy_client.Command.classBuilder().ep({
1504
- ...commonParams
1505
- }).m(function(Command, cs, config, o) {
1465
+ var _UpdateAliasCommand = class _UpdateAliasCommand extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1506
1466
  return [
1507
1467
  (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1508
1468
  (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
@@ -6,9 +6,7 @@ import { de_CreateAliasCommand, se_CreateAliasCommand } from "../protocols/Aws_j
6
6
  export { $Command };
7
7
  export class CreateAliasCommand extends $Command
8
8
  .classBuilder()
9
- .ep({
10
- ...commonParams,
11
- })
9
+ .ep(commonParams)
12
10
  .m(function (Command, cs, config, o) {
13
11
  return [
14
12
  getSerdePlugin(config, this.serialize, this.deserialize),
@@ -6,9 +6,7 @@ import { de_CreateKeyCommand, se_CreateKeyCommand } from "../protocols/Aws_json1
6
6
  export { $Command };
7
7
  export class CreateKeyCommand extends $Command
8
8
  .classBuilder()
9
- .ep({
10
- ...commonParams,
11
- })
9
+ .ep(commonParams)
12
10
  .m(function (Command, cs, config, o) {
13
11
  return [
14
12
  getSerdePlugin(config, this.serialize, this.deserialize),
@@ -6,9 +6,7 @@ import { de_DeleteAliasCommand, se_DeleteAliasCommand } from "../protocols/Aws_j
6
6
  export { $Command };
7
7
  export class DeleteAliasCommand extends $Command
8
8
  .classBuilder()
9
- .ep({
10
- ...commonParams,
11
- })
9
+ .ep(commonParams)
12
10
  .m(function (Command, cs, config, o) {
13
11
  return [
14
12
  getSerdePlugin(config, this.serialize, this.deserialize),
@@ -6,9 +6,7 @@ import { de_DeleteKeyCommand, se_DeleteKeyCommand } from "../protocols/Aws_json1
6
6
  export { $Command };
7
7
  export class DeleteKeyCommand extends $Command
8
8
  .classBuilder()
9
- .ep({
10
- ...commonParams,
11
- })
9
+ .ep(commonParams)
12
10
  .m(function (Command, cs, config, o) {
13
11
  return [
14
12
  getSerdePlugin(config, this.serialize, this.deserialize),
@@ -7,9 +7,7 @@ import { de_ExportKeyCommand, se_ExportKeyCommand } from "../protocols/Aws_json1
7
7
  export { $Command };
8
8
  export class ExportKeyCommand extends $Command
9
9
  .classBuilder()
10
- .ep({
11
- ...commonParams,
12
- })
10
+ .ep(commonParams)
13
11
  .m(function (Command, cs, config, o) {
14
12
  return [
15
13
  getSerdePlugin(config, this.serialize, this.deserialize),
@@ -6,9 +6,7 @@ import { de_GetAliasCommand, se_GetAliasCommand } from "../protocols/Aws_json1_0
6
6
  export { $Command };
7
7
  export class GetAliasCommand extends $Command
8
8
  .classBuilder()
9
- .ep({
10
- ...commonParams,
11
- })
9
+ .ep(commonParams)
12
10
  .m(function (Command, cs, config, o) {
13
11
  return [
14
12
  getSerdePlugin(config, this.serialize, this.deserialize),
@@ -6,9 +6,7 @@ import { de_GetKeyCommand, se_GetKeyCommand } from "../protocols/Aws_json1_0";
6
6
  export { $Command };
7
7
  export class GetKeyCommand extends $Command
8
8
  .classBuilder()
9
- .ep({
10
- ...commonParams,
11
- })
9
+ .ep(commonParams)
12
10
  .m(function (Command, cs, config, o) {
13
11
  return [
14
12
  getSerdePlugin(config, this.serialize, this.deserialize),
@@ -7,9 +7,7 @@ import { de_GetParametersForExportCommand, se_GetParametersForExportCommand } fr
7
7
  export { $Command };
8
8
  export class GetParametersForExportCommand extends $Command
9
9
  .classBuilder()
10
- .ep({
11
- ...commonParams,
12
- })
10
+ .ep(commonParams)
13
11
  .m(function (Command, cs, config, o) {
14
12
  return [
15
13
  getSerdePlugin(config, this.serialize, this.deserialize),
@@ -7,9 +7,7 @@ import { de_GetParametersForImportCommand, se_GetParametersForImportCommand } fr
7
7
  export { $Command };
8
8
  export class GetParametersForImportCommand extends $Command
9
9
  .classBuilder()
10
- .ep({
11
- ...commonParams,
12
- })
10
+ .ep(commonParams)
13
11
  .m(function (Command, cs, config, o) {
14
12
  return [
15
13
  getSerdePlugin(config, this.serialize, this.deserialize),
@@ -7,9 +7,7 @@ import { de_GetPublicKeyCertificateCommand, se_GetPublicKeyCertificateCommand }
7
7
  export { $Command };
8
8
  export class GetPublicKeyCertificateCommand extends $Command
9
9
  .classBuilder()
10
- .ep({
11
- ...commonParams,
12
- })
10
+ .ep(commonParams)
13
11
  .m(function (Command, cs, config, o) {
14
12
  return [
15
13
  getSerdePlugin(config, this.serialize, this.deserialize),
@@ -7,9 +7,7 @@ import { de_ImportKeyCommand, se_ImportKeyCommand } from "../protocols/Aws_json1
7
7
  export { $Command };
8
8
  export class ImportKeyCommand extends $Command
9
9
  .classBuilder()
10
- .ep({
11
- ...commonParams,
12
- })
10
+ .ep(commonParams)
13
11
  .m(function (Command, cs, config, o) {
14
12
  return [
15
13
  getSerdePlugin(config, this.serialize, this.deserialize),
@@ -6,9 +6,7 @@ import { de_ListAliasesCommand, se_ListAliasesCommand } from "../protocols/Aws_j
6
6
  export { $Command };
7
7
  export class ListAliasesCommand extends $Command
8
8
  .classBuilder()
9
- .ep({
10
- ...commonParams,
11
- })
9
+ .ep(commonParams)
12
10
  .m(function (Command, cs, config, o) {
13
11
  return [
14
12
  getSerdePlugin(config, this.serialize, this.deserialize),
@@ -6,9 +6,7 @@ import { de_ListKeysCommand, se_ListKeysCommand } from "../protocols/Aws_json1_0
6
6
  export { $Command };
7
7
  export class ListKeysCommand extends $Command
8
8
  .classBuilder()
9
- .ep({
10
- ...commonParams,
11
- })
9
+ .ep(commonParams)
12
10
  .m(function (Command, cs, config, o) {
13
11
  return [
14
12
  getSerdePlugin(config, this.serialize, this.deserialize),
@@ -6,9 +6,7 @@ import { de_ListTagsForResourceCommand, se_ListTagsForResourceCommand } from "..
6
6
  export { $Command };
7
7
  export class ListTagsForResourceCommand extends $Command
8
8
  .classBuilder()
9
- .ep({
10
- ...commonParams,
11
- })
9
+ .ep(commonParams)
12
10
  .m(function (Command, cs, config, o) {
13
11
  return [
14
12
  getSerdePlugin(config, this.serialize, this.deserialize),
@@ -6,9 +6,7 @@ import { de_RestoreKeyCommand, se_RestoreKeyCommand } from "../protocols/Aws_jso
6
6
  export { $Command };
7
7
  export class RestoreKeyCommand extends $Command
8
8
  .classBuilder()
9
- .ep({
10
- ...commonParams,
11
- })
9
+ .ep(commonParams)
12
10
  .m(function (Command, cs, config, o) {
13
11
  return [
14
12
  getSerdePlugin(config, this.serialize, this.deserialize),
@@ -6,9 +6,7 @@ import { de_StartKeyUsageCommand, se_StartKeyUsageCommand } from "../protocols/A
6
6
  export { $Command };
7
7
  export class StartKeyUsageCommand extends $Command
8
8
  .classBuilder()
9
- .ep({
10
- ...commonParams,
11
- })
9
+ .ep(commonParams)
12
10
  .m(function (Command, cs, config, o) {
13
11
  return [
14
12
  getSerdePlugin(config, this.serialize, this.deserialize),
@@ -6,9 +6,7 @@ import { de_StopKeyUsageCommand, se_StopKeyUsageCommand } from "../protocols/Aws
6
6
  export { $Command };
7
7
  export class StopKeyUsageCommand extends $Command
8
8
  .classBuilder()
9
- .ep({
10
- ...commonParams,
11
- })
9
+ .ep(commonParams)
12
10
  .m(function (Command, cs, config, o) {
13
11
  return [
14
12
  getSerdePlugin(config, this.serialize, this.deserialize),
@@ -6,9 +6,7 @@ import { de_TagResourceCommand, se_TagResourceCommand } from "../protocols/Aws_j
6
6
  export { $Command };
7
7
  export class TagResourceCommand extends $Command
8
8
  .classBuilder()
9
- .ep({
10
- ...commonParams,
11
- })
9
+ .ep(commonParams)
12
10
  .m(function (Command, cs, config, o) {
13
11
  return [
14
12
  getSerdePlugin(config, this.serialize, this.deserialize),
@@ -6,9 +6,7 @@ import { de_UntagResourceCommand, se_UntagResourceCommand } from "../protocols/A
6
6
  export { $Command };
7
7
  export class UntagResourceCommand extends $Command
8
8
  .classBuilder()
9
- .ep({
10
- ...commonParams,
11
- })
9
+ .ep(commonParams)
12
10
  .m(function (Command, cs, config, o) {
13
11
  return [
14
12
  getSerdePlugin(config, this.serialize, this.deserialize),
@@ -6,9 +6,7 @@ import { de_UpdateAliasCommand, se_UpdateAliasCommand } from "../protocols/Aws_j
6
6
  export { $Command };
7
7
  export class UpdateAliasCommand extends $Command
8
8
  .classBuilder()
9
- .ep({
10
- ...commonParams,
11
- })
9
+ .ep(commonParams)
12
10
  .m(function (Command, cs, config, o) {
13
11
  return [
14
12
  getSerdePlugin(config, this.serialize, this.deserialize),
@@ -1,10 +1,14 @@
1
1
  import { awsEndpointFunctions } from "@aws-sdk/util-endpoints";
2
- import { customEndpointFunctions, resolveEndpoint } from "@smithy/util-endpoints";
2
+ import { customEndpointFunctions, EndpointCache, resolveEndpoint } from "@smithy/util-endpoints";
3
3
  import { ruleSet } from "./ruleset";
4
+ const cache = new EndpointCache({
5
+ size: 50,
6
+ params: ["Endpoint", "Region", "UseDualStack", "UseFIPS"],
7
+ });
4
8
  export const defaultEndpointResolver = (endpointParams, context = {}) => {
5
- return resolveEndpoint(ruleSet, {
9
+ return cache.get(endpointParams, () => resolveEndpoint(ruleSet, {
6
10
  endpointParams: endpointParams,
7
11
  logger: context.logger,
8
- });
12
+ }));
9
13
  };
10
14
  customEndpointFunctions.aws = awsEndpointFunctions;
@@ -18,6 +18,7 @@ export declare const getRuntimeConfig: (config: PaymentCryptographyClientConfig)
18
18
  useDualstackEndpoint: boolean | import("@smithy/types").Provider<boolean>;
19
19
  useFipsEndpoint: boolean | import("@smithy/types").Provider<boolean>;
20
20
  apiVersion: string;
21
+ cacheMiddleware?: boolean | undefined;
21
22
  urlParser: import("@smithy/types").UrlParser;
22
23
  base64Decoder: import("@smithy/types").Decoder;
23
24
  base64Encoder: (_input: string | Uint8Array) => string;
@@ -34,6 +35,7 @@ export declare const getRuntimeConfig: (config: PaymentCryptographyClientConfig)
34
35
  logger?: import("@smithy/types").Logger | undefined;
35
36
  }) => import("@smithy/types").EndpointV2;
36
37
  tls?: boolean | undefined;
38
+ serviceConfiguredEndpoint?: undefined;
37
39
  httpAuthSchemes: import("@smithy/types").HttpAuthScheme[];
38
40
  httpAuthSchemeProvider: import("./auth/httpAuthSchemeProvider").PaymentCryptographyHttpAuthSchemeProvider;
39
41
  credentials?: import("@smithy/types").AwsCredentialIdentity | import("@smithy/types").AwsCredentialIdentityProvider | undefined;
@@ -18,6 +18,7 @@ export declare const getRuntimeConfig: (config: PaymentCryptographyClientConfig)
18
18
  useDualstackEndpoint: boolean | import("@smithy/types").Provider<boolean>;
19
19
  useFipsEndpoint: boolean | import("@smithy/types").Provider<boolean>;
20
20
  apiVersion: string;
21
+ cacheMiddleware?: boolean | undefined;
21
22
  urlParser: import("@smithy/types").UrlParser;
22
23
  base64Decoder: import("@smithy/types").Decoder;
23
24
  base64Encoder: (_input: string | Uint8Array) => string;
@@ -34,6 +35,7 @@ export declare const getRuntimeConfig: (config: PaymentCryptographyClientConfig)
34
35
  logger?: import("@smithy/types").Logger | undefined;
35
36
  }) => import("@smithy/types").EndpointV2;
36
37
  tls?: boolean | undefined;
38
+ serviceConfiguredEndpoint?: undefined;
37
39
  httpAuthSchemes: import("@smithy/types").HttpAuthScheme[];
38
40
  httpAuthSchemeProvider: import("./auth/httpAuthSchemeProvider").PaymentCryptographyHttpAuthSchemeProvider;
39
41
  credentials?: import("@smithy/types").AwsCredentialIdentity | import("@smithy/types").AwsCredentialIdentityProvider | undefined;
@@ -7,6 +7,7 @@ export declare const getRuntimeConfig: (config: PaymentCryptographyClientConfig)
7
7
  sha256: import("@smithy/types").HashConstructor;
8
8
  requestHandler: import("@smithy/types").NodeHttpHandlerOptions | import("@smithy/types").FetchHttpHandlerOptions | Record<string, unknown> | import("@smithy/protocol-http").HttpHandler<any> | import("@smithy/fetch-http-handler").FetchHttpHandler;
9
9
  apiVersion: string;
10
+ cacheMiddleware?: boolean | undefined;
10
11
  urlParser: import("@smithy/types").UrlParser;
11
12
  bodyLengthChecker: import("@smithy/types").BodyLengthCalculator;
12
13
  streamCollector: import("@smithy/types").StreamCollector;
@@ -33,6 +34,7 @@ export declare const getRuntimeConfig: (config: PaymentCryptographyClientConfig)
33
34
  logger?: import("@smithy/types").Logger | undefined;
34
35
  }) => import("@smithy/types").EndpointV2;
35
36
  tls?: boolean | undefined;
37
+ serviceConfiguredEndpoint?: undefined;
36
38
  httpAuthSchemes: import("@smithy/types").HttpAuthScheme[];
37
39
  httpAuthSchemeProvider: import("./auth/httpAuthSchemeProvider").PaymentCryptographyHttpAuthSchemeProvider;
38
40
  credentials?: import("@smithy/types").AwsCredentialIdentity | import("@smithy/types").AwsCredentialIdentityProvider | undefined;
@@ -25,6 +25,7 @@ export declare const getRuntimeConfig: (
25
25
  useDualstackEndpoint: boolean | import("@smithy/types").Provider<boolean>;
26
26
  useFipsEndpoint: boolean | import("@smithy/types").Provider<boolean>;
27
27
  apiVersion: string;
28
+ cacheMiddleware?: boolean | undefined;
28
29
  urlParser: import("@smithy/types").UrlParser;
29
30
  base64Decoder: import("@smithy/types").Decoder;
30
31
  base64Encoder: (_input: string | Uint8Array) => string;
@@ -63,6 +64,7 @@ export declare const getRuntimeConfig: (
63
64
  }
64
65
  ) => import("@smithy/types").EndpointV2;
65
66
  tls?: boolean | undefined;
67
+ serviceConfiguredEndpoint?: undefined;
66
68
  httpAuthSchemes: import("@smithy/types").HttpAuthScheme[];
67
69
  httpAuthSchemeProvider: import("./auth/httpAuthSchemeProvider").PaymentCryptographyHttpAuthSchemeProvider;
68
70
  credentials?:
@@ -29,6 +29,7 @@ export declare const getRuntimeConfig: (
29
29
  useDualstackEndpoint: boolean | import("@smithy/types").Provider<boolean>;
30
30
  useFipsEndpoint: boolean | import("@smithy/types").Provider<boolean>;
31
31
  apiVersion: string;
32
+ cacheMiddleware?: boolean | undefined;
32
33
  urlParser: import("@smithy/types").UrlParser;
33
34
  base64Decoder: import("@smithy/types").Decoder;
34
35
  base64Encoder: (_input: string | Uint8Array) => string;
@@ -67,6 +68,7 @@ export declare const getRuntimeConfig: (
67
68
  }
68
69
  ) => import("@smithy/types").EndpointV2;
69
70
  tls?: boolean | undefined;
71
+ serviceConfiguredEndpoint?: undefined;
70
72
  httpAuthSchemes: import("@smithy/types").HttpAuthScheme[];
71
73
  httpAuthSchemeProvider: import("./auth/httpAuthSchemeProvider").PaymentCryptographyHttpAuthSchemeProvider;
72
74
  credentials?:
@@ -11,6 +11,7 @@ export declare const getRuntimeConfig: (
11
11
  | import("@smithy/protocol-http").HttpHandler<any>
12
12
  | import("@smithy/fetch-http-handler").FetchHttpHandler;
13
13
  apiVersion: string;
14
+ cacheMiddleware?: boolean | undefined;
14
15
  urlParser: import("@smithy/types").UrlParser;
15
16
  bodyLengthChecker: import("@smithy/types").BodyLengthCalculator;
16
17
  streamCollector: import("@smithy/types").StreamCollector;
@@ -57,6 +58,7 @@ export declare const getRuntimeConfig: (
57
58
  }
58
59
  ) => import("@smithy/types").EndpointV2;
59
60
  tls?: boolean | undefined;
61
+ serviceConfiguredEndpoint?: undefined;
60
62
  httpAuthSchemes: import("@smithy/types").HttpAuthScheme[];
61
63
  httpAuthSchemeProvider: import("./auth/httpAuthSchemeProvider").PaymentCryptographyHttpAuthSchemeProvider;
62
64
  credentials?:
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-payment-cryptography",
3
3
  "description": "AWS SDK for JavaScript Payment Cryptography Client for Node.js, Browser and React Native",
4
- "version": "3.645.0",
4
+ "version": "3.650.0",
5
5
  "scripts": {
6
6
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
7
7
  "build:cjs": "node ../../scripts/compilation/inline client-payment-cryptography",
@@ -20,43 +20,43 @@
20
20
  "dependencies": {
21
21
  "@aws-crypto/sha256-browser": "5.2.0",
22
22
  "@aws-crypto/sha256-js": "5.2.0",
23
- "@aws-sdk/client-sso-oidc": "3.645.0",
24
- "@aws-sdk/client-sts": "3.645.0",
25
- "@aws-sdk/core": "3.635.0",
26
- "@aws-sdk/credential-provider-node": "3.645.0",
27
- "@aws-sdk/middleware-host-header": "3.620.0",
28
- "@aws-sdk/middleware-logger": "3.609.0",
29
- "@aws-sdk/middleware-recursion-detection": "3.620.0",
30
- "@aws-sdk/middleware-user-agent": "3.645.0",
31
- "@aws-sdk/region-config-resolver": "3.614.0",
32
- "@aws-sdk/types": "3.609.0",
33
- "@aws-sdk/util-endpoints": "3.645.0",
34
- "@aws-sdk/util-user-agent-browser": "3.609.0",
35
- "@aws-sdk/util-user-agent-node": "3.614.0",
36
- "@smithy/config-resolver": "^3.0.5",
37
- "@smithy/core": "^2.4.0",
38
- "@smithy/fetch-http-handler": "^3.2.4",
39
- "@smithy/hash-node": "^3.0.3",
40
- "@smithy/invalid-dependency": "^3.0.3",
41
- "@smithy/middleware-content-length": "^3.0.5",
42
- "@smithy/middleware-endpoint": "^3.1.0",
43
- "@smithy/middleware-retry": "^3.0.15",
44
- "@smithy/middleware-serde": "^3.0.3",
45
- "@smithy/middleware-stack": "^3.0.3",
46
- "@smithy/node-config-provider": "^3.1.4",
47
- "@smithy/node-http-handler": "^3.1.4",
48
- "@smithy/protocol-http": "^4.1.0",
49
- "@smithy/smithy-client": "^3.2.0",
50
- "@smithy/types": "^3.3.0",
51
- "@smithy/url-parser": "^3.0.3",
23
+ "@aws-sdk/client-sso-oidc": "3.650.0",
24
+ "@aws-sdk/client-sts": "3.650.0",
25
+ "@aws-sdk/core": "3.649.0",
26
+ "@aws-sdk/credential-provider-node": "3.650.0",
27
+ "@aws-sdk/middleware-host-header": "3.649.0",
28
+ "@aws-sdk/middleware-logger": "3.649.0",
29
+ "@aws-sdk/middleware-recursion-detection": "3.649.0",
30
+ "@aws-sdk/middleware-user-agent": "3.649.0",
31
+ "@aws-sdk/region-config-resolver": "3.649.0",
32
+ "@aws-sdk/types": "3.649.0",
33
+ "@aws-sdk/util-endpoints": "3.649.0",
34
+ "@aws-sdk/util-user-agent-browser": "3.649.0",
35
+ "@aws-sdk/util-user-agent-node": "3.649.0",
36
+ "@smithy/config-resolver": "^3.0.6",
37
+ "@smithy/core": "^2.4.1",
38
+ "@smithy/fetch-http-handler": "^3.2.5",
39
+ "@smithy/hash-node": "^3.0.4",
40
+ "@smithy/invalid-dependency": "^3.0.4",
41
+ "@smithy/middleware-content-length": "^3.0.6",
42
+ "@smithy/middleware-endpoint": "^3.1.1",
43
+ "@smithy/middleware-retry": "^3.0.16",
44
+ "@smithy/middleware-serde": "^3.0.4",
45
+ "@smithy/middleware-stack": "^3.0.4",
46
+ "@smithy/node-config-provider": "^3.1.5",
47
+ "@smithy/node-http-handler": "^3.2.0",
48
+ "@smithy/protocol-http": "^4.1.1",
49
+ "@smithy/smithy-client": "^3.3.0",
50
+ "@smithy/types": "^3.4.0",
51
+ "@smithy/url-parser": "^3.0.4",
52
52
  "@smithy/util-base64": "^3.0.0",
53
53
  "@smithy/util-body-length-browser": "^3.0.0",
54
54
  "@smithy/util-body-length-node": "^3.0.0",
55
- "@smithy/util-defaults-mode-browser": "^3.0.15",
56
- "@smithy/util-defaults-mode-node": "^3.0.15",
57
- "@smithy/util-endpoints": "^2.0.5",
58
- "@smithy/util-middleware": "^3.0.3",
59
- "@smithy/util-retry": "^3.0.3",
55
+ "@smithy/util-defaults-mode-browser": "^3.0.16",
56
+ "@smithy/util-defaults-mode-node": "^3.0.16",
57
+ "@smithy/util-endpoints": "^2.1.0",
58
+ "@smithy/util-middleware": "^3.0.4",
59
+ "@smithy/util-retry": "^3.0.4",
60
60
  "@smithy/util-utf8": "^3.0.0",
61
61
  "tslib": "^2.6.2"
62
62
  },