@aws-sdk/client-synthetics 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 (31) hide show
  1. package/dist-cjs/endpoint/endpointResolver.js +6 -2
  2. package/dist-cjs/index.js +21 -63
  3. package/dist-es/commands/AssociateResourceCommand.js +1 -3
  4. package/dist-es/commands/CreateCanaryCommand.js +1 -3
  5. package/dist-es/commands/CreateGroupCommand.js +1 -3
  6. package/dist-es/commands/DeleteCanaryCommand.js +1 -3
  7. package/dist-es/commands/DeleteGroupCommand.js +1 -3
  8. package/dist-es/commands/DescribeCanariesCommand.js +1 -3
  9. package/dist-es/commands/DescribeCanariesLastRunCommand.js +1 -3
  10. package/dist-es/commands/DescribeRuntimeVersionsCommand.js +1 -3
  11. package/dist-es/commands/DisassociateResourceCommand.js +1 -3
  12. package/dist-es/commands/GetCanaryCommand.js +1 -3
  13. package/dist-es/commands/GetCanaryRunsCommand.js +1 -3
  14. package/dist-es/commands/GetGroupCommand.js +1 -3
  15. package/dist-es/commands/ListAssociatedGroupsCommand.js +1 -3
  16. package/dist-es/commands/ListGroupResourcesCommand.js +1 -3
  17. package/dist-es/commands/ListGroupsCommand.js +1 -3
  18. package/dist-es/commands/ListTagsForResourceCommand.js +1 -3
  19. package/dist-es/commands/StartCanaryCommand.js +1 -3
  20. package/dist-es/commands/StopCanaryCommand.js +1 -3
  21. package/dist-es/commands/TagResourceCommand.js +1 -3
  22. package/dist-es/commands/UntagResourceCommand.js +1 -3
  23. package/dist-es/commands/UpdateCanaryCommand.js +1 -3
  24. package/dist-es/endpoint/endpointResolver.js +7 -3
  25. package/dist-types/runtimeConfig.browser.d.ts +2 -0
  26. package/dist-types/runtimeConfig.d.ts +2 -0
  27. package/dist-types/runtimeConfig.native.d.ts +2 -0
  28. package/dist-types/ts3.4/runtimeConfig.browser.d.ts +2 -0
  29. package/dist-types/ts3.4/runtimeConfig.d.ts +2 -0
  30. package/dist-types/ts3.4/runtimeConfig.native.d.ts +2 -0
  31. 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
@@ -1325,9 +1325,7 @@ var _dL = "deleteLambda";
1325
1325
  var _tK = "tagKeys";
1326
1326
 
1327
1327
  // src/commands/AssociateResourceCommand.ts
1328
- var _AssociateResourceCommand = class _AssociateResourceCommand extends import_smithy_client.Command.classBuilder().ep({
1329
- ...commonParams
1330
- }).m(function(Command, cs, config, o) {
1328
+ var _AssociateResourceCommand = class _AssociateResourceCommand extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1331
1329
  return [
1332
1330
  (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1333
1331
  (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
@@ -1341,9 +1339,7 @@ var AssociateResourceCommand = _AssociateResourceCommand;
1341
1339
 
1342
1340
 
1343
1341
 
1344
- var _CreateCanaryCommand = class _CreateCanaryCommand extends import_smithy_client.Command.classBuilder().ep({
1345
- ...commonParams
1346
- }).m(function(Command, cs, config, o) {
1342
+ var _CreateCanaryCommand = class _CreateCanaryCommand extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1347
1343
  return [
1348
1344
  (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1349
1345
  (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
@@ -1357,9 +1353,7 @@ var CreateCanaryCommand = _CreateCanaryCommand;
1357
1353
 
1358
1354
 
1359
1355
 
1360
- var _CreateGroupCommand = class _CreateGroupCommand extends import_smithy_client.Command.classBuilder().ep({
1361
- ...commonParams
1362
- }).m(function(Command, cs, config, o) {
1356
+ var _CreateGroupCommand = class _CreateGroupCommand extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1363
1357
  return [
1364
1358
  (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1365
1359
  (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
@@ -1373,9 +1367,7 @@ var CreateGroupCommand = _CreateGroupCommand;
1373
1367
 
1374
1368
 
1375
1369
 
1376
- var _DeleteCanaryCommand = class _DeleteCanaryCommand extends import_smithy_client.Command.classBuilder().ep({
1377
- ...commonParams
1378
- }).m(function(Command, cs, config, o) {
1370
+ var _DeleteCanaryCommand = class _DeleteCanaryCommand extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1379
1371
  return [
1380
1372
  (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1381
1373
  (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
@@ -1389,9 +1381,7 @@ var DeleteCanaryCommand = _DeleteCanaryCommand;
1389
1381
 
1390
1382
 
1391
1383
 
1392
- var _DeleteGroupCommand = class _DeleteGroupCommand extends import_smithy_client.Command.classBuilder().ep({
1393
- ...commonParams
1394
- }).m(function(Command, cs, config, o) {
1384
+ var _DeleteGroupCommand = class _DeleteGroupCommand extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1395
1385
  return [
1396
1386
  (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1397
1387
  (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
@@ -1405,9 +1395,7 @@ var DeleteGroupCommand = _DeleteGroupCommand;
1405
1395
 
1406
1396
 
1407
1397
 
1408
- var _DescribeCanariesCommand = class _DescribeCanariesCommand extends import_smithy_client.Command.classBuilder().ep({
1409
- ...commonParams
1410
- }).m(function(Command, cs, config, o) {
1398
+ var _DescribeCanariesCommand = class _DescribeCanariesCommand extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1411
1399
  return [
1412
1400
  (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1413
1401
  (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
@@ -1421,9 +1409,7 @@ var DescribeCanariesCommand = _DescribeCanariesCommand;
1421
1409
 
1422
1410
 
1423
1411
 
1424
- var _DescribeCanariesLastRunCommand = class _DescribeCanariesLastRunCommand extends import_smithy_client.Command.classBuilder().ep({
1425
- ...commonParams
1426
- }).m(function(Command, cs, config, o) {
1412
+ var _DescribeCanariesLastRunCommand = class _DescribeCanariesLastRunCommand extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1427
1413
  return [
1428
1414
  (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1429
1415
  (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
@@ -1437,9 +1423,7 @@ var DescribeCanariesLastRunCommand = _DescribeCanariesLastRunCommand;
1437
1423
 
1438
1424
 
1439
1425
 
1440
- var _DescribeRuntimeVersionsCommand = class _DescribeRuntimeVersionsCommand extends import_smithy_client.Command.classBuilder().ep({
1441
- ...commonParams
1442
- }).m(function(Command, cs, config, o) {
1426
+ var _DescribeRuntimeVersionsCommand = class _DescribeRuntimeVersionsCommand extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1443
1427
  return [
1444
1428
  (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1445
1429
  (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
@@ -1453,9 +1437,7 @@ var DescribeRuntimeVersionsCommand = _DescribeRuntimeVersionsCommand;
1453
1437
 
1454
1438
 
1455
1439
 
1456
- var _DisassociateResourceCommand = class _DisassociateResourceCommand extends import_smithy_client.Command.classBuilder().ep({
1457
- ...commonParams
1458
- }).m(function(Command, cs, config, o) {
1440
+ var _DisassociateResourceCommand = class _DisassociateResourceCommand extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1459
1441
  return [
1460
1442
  (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1461
1443
  (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
@@ -1469,9 +1451,7 @@ var DisassociateResourceCommand = _DisassociateResourceCommand;
1469
1451
 
1470
1452
 
1471
1453
 
1472
- var _GetCanaryCommand = class _GetCanaryCommand extends import_smithy_client.Command.classBuilder().ep({
1473
- ...commonParams
1474
- }).m(function(Command, cs, config, o) {
1454
+ var _GetCanaryCommand = class _GetCanaryCommand extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1475
1455
  return [
1476
1456
  (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1477
1457
  (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
@@ -1485,9 +1465,7 @@ var GetCanaryCommand = _GetCanaryCommand;
1485
1465
 
1486
1466
 
1487
1467
 
1488
- var _GetCanaryRunsCommand = class _GetCanaryRunsCommand extends import_smithy_client.Command.classBuilder().ep({
1489
- ...commonParams
1490
- }).m(function(Command, cs, config, o) {
1468
+ var _GetCanaryRunsCommand = class _GetCanaryRunsCommand extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1491
1469
  return [
1492
1470
  (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1493
1471
  (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
@@ -1501,9 +1479,7 @@ var GetCanaryRunsCommand = _GetCanaryRunsCommand;
1501
1479
 
1502
1480
 
1503
1481
 
1504
- var _GetGroupCommand = class _GetGroupCommand extends import_smithy_client.Command.classBuilder().ep({
1505
- ...commonParams
1506
- }).m(function(Command, cs, config, o) {
1482
+ var _GetGroupCommand = class _GetGroupCommand extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1507
1483
  return [
1508
1484
  (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1509
1485
  (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
@@ -1517,9 +1493,7 @@ var GetGroupCommand = _GetGroupCommand;
1517
1493
 
1518
1494
 
1519
1495
 
1520
- var _ListAssociatedGroupsCommand = class _ListAssociatedGroupsCommand extends import_smithy_client.Command.classBuilder().ep({
1521
- ...commonParams
1522
- }).m(function(Command, cs, config, o) {
1496
+ var _ListAssociatedGroupsCommand = class _ListAssociatedGroupsCommand extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1523
1497
  return [
1524
1498
  (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1525
1499
  (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
@@ -1533,9 +1507,7 @@ var ListAssociatedGroupsCommand = _ListAssociatedGroupsCommand;
1533
1507
 
1534
1508
 
1535
1509
 
1536
- var _ListGroupResourcesCommand = class _ListGroupResourcesCommand extends import_smithy_client.Command.classBuilder().ep({
1537
- ...commonParams
1538
- }).m(function(Command, cs, config, o) {
1510
+ var _ListGroupResourcesCommand = class _ListGroupResourcesCommand extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1539
1511
  return [
1540
1512
  (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1541
1513
  (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
@@ -1549,9 +1521,7 @@ var ListGroupResourcesCommand = _ListGroupResourcesCommand;
1549
1521
 
1550
1522
 
1551
1523
 
1552
- var _ListGroupsCommand = class _ListGroupsCommand extends import_smithy_client.Command.classBuilder().ep({
1553
- ...commonParams
1554
- }).m(function(Command, cs, config, o) {
1524
+ var _ListGroupsCommand = class _ListGroupsCommand extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1555
1525
  return [
1556
1526
  (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1557
1527
  (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
@@ -1565,9 +1535,7 @@ var ListGroupsCommand = _ListGroupsCommand;
1565
1535
 
1566
1536
 
1567
1537
 
1568
- var _ListTagsForResourceCommand = class _ListTagsForResourceCommand extends import_smithy_client.Command.classBuilder().ep({
1569
- ...commonParams
1570
- }).m(function(Command, cs, config, o) {
1538
+ var _ListTagsForResourceCommand = class _ListTagsForResourceCommand extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1571
1539
  return [
1572
1540
  (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1573
1541
  (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
@@ -1581,9 +1549,7 @@ var ListTagsForResourceCommand = _ListTagsForResourceCommand;
1581
1549
 
1582
1550
 
1583
1551
 
1584
- var _StartCanaryCommand = class _StartCanaryCommand extends import_smithy_client.Command.classBuilder().ep({
1585
- ...commonParams
1586
- }).m(function(Command, cs, config, o) {
1552
+ var _StartCanaryCommand = class _StartCanaryCommand extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1587
1553
  return [
1588
1554
  (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1589
1555
  (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
@@ -1597,9 +1563,7 @@ var StartCanaryCommand = _StartCanaryCommand;
1597
1563
 
1598
1564
 
1599
1565
 
1600
- var _StopCanaryCommand = class _StopCanaryCommand extends import_smithy_client.Command.classBuilder().ep({
1601
- ...commonParams
1602
- }).m(function(Command, cs, config, o) {
1566
+ var _StopCanaryCommand = class _StopCanaryCommand extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1603
1567
  return [
1604
1568
  (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1605
1569
  (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
@@ -1613,9 +1577,7 @@ var StopCanaryCommand = _StopCanaryCommand;
1613
1577
 
1614
1578
 
1615
1579
 
1616
- var _TagResourceCommand = class _TagResourceCommand extends import_smithy_client.Command.classBuilder().ep({
1617
- ...commonParams
1618
- }).m(function(Command, cs, config, o) {
1580
+ var _TagResourceCommand = class _TagResourceCommand extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1619
1581
  return [
1620
1582
  (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1621
1583
  (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
@@ -1629,9 +1591,7 @@ var TagResourceCommand = _TagResourceCommand;
1629
1591
 
1630
1592
 
1631
1593
 
1632
- var _UntagResourceCommand = class _UntagResourceCommand extends import_smithy_client.Command.classBuilder().ep({
1633
- ...commonParams
1634
- }).m(function(Command, cs, config, o) {
1594
+ var _UntagResourceCommand = class _UntagResourceCommand extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1635
1595
  return [
1636
1596
  (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1637
1597
  (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
@@ -1645,9 +1605,7 @@ var UntagResourceCommand = _UntagResourceCommand;
1645
1605
 
1646
1606
 
1647
1607
 
1648
- var _UpdateCanaryCommand = class _UpdateCanaryCommand extends import_smithy_client.Command.classBuilder().ep({
1649
- ...commonParams
1650
- }).m(function(Command, cs, config, o) {
1608
+ var _UpdateCanaryCommand = class _UpdateCanaryCommand extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1651
1609
  return [
1652
1610
  (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1653
1611
  (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
@@ -6,9 +6,7 @@ import { de_AssociateResourceCommand, se_AssociateResourceCommand } from "../pro
6
6
  export { $Command };
7
7
  export class AssociateResourceCommand 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_CreateCanaryCommand, se_CreateCanaryCommand } from "../protocols/Aws
6
6
  export { $Command };
7
7
  export class CreateCanaryCommand 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_CreateGroupCommand, se_CreateGroupCommand } from "../protocols/Aws_r
6
6
  export { $Command };
7
7
  export class CreateGroupCommand 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_DeleteCanaryCommand, se_DeleteCanaryCommand } from "../protocols/Aws
6
6
  export { $Command };
7
7
  export class DeleteCanaryCommand 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_DeleteGroupCommand, se_DeleteGroupCommand } from "../protocols/Aws_r
6
6
  export { $Command };
7
7
  export class DeleteGroupCommand 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_DescribeCanariesCommand, se_DescribeCanariesCommand } from "../proto
6
6
  export { $Command };
7
7
  export class DescribeCanariesCommand 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_DescribeCanariesLastRunCommand, se_DescribeCanariesLastRunCommand }
6
6
  export { $Command };
7
7
  export class DescribeCanariesLastRunCommand 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_DescribeRuntimeVersionsCommand, se_DescribeRuntimeVersionsCommand }
6
6
  export { $Command };
7
7
  export class DescribeRuntimeVersionsCommand 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_DisassociateResourceCommand, se_DisassociateResourceCommand } from "
6
6
  export { $Command };
7
7
  export class DisassociateResourceCommand 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_GetCanaryCommand, se_GetCanaryCommand } from "../protocols/Aws_restJ
6
6
  export { $Command };
7
7
  export class GetCanaryCommand 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_GetCanaryRunsCommand, se_GetCanaryRunsCommand } from "../protocols/A
6
6
  export { $Command };
7
7
  export class GetCanaryRunsCommand 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_GetGroupCommand, se_GetGroupCommand } from "../protocols/Aws_restJso
6
6
  export { $Command };
7
7
  export class GetGroupCommand 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_ListAssociatedGroupsCommand, se_ListAssociatedGroupsCommand } from "
6
6
  export { $Command };
7
7
  export class ListAssociatedGroupsCommand 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_ListGroupResourcesCommand, se_ListGroupResourcesCommand } from "../p
6
6
  export { $Command };
7
7
  export class ListGroupResourcesCommand 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_ListGroupsCommand, se_ListGroupsCommand } from "../protocols/Aws_res
6
6
  export { $Command };
7
7
  export class ListGroupsCommand 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_StartCanaryCommand, se_StartCanaryCommand } from "../protocols/Aws_r
6
6
  export { $Command };
7
7
  export class StartCanaryCommand 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_StopCanaryCommand, se_StopCanaryCommand } from "../protocols/Aws_res
6
6
  export { $Command };
7
7
  export class StopCanaryCommand 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_r
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_UpdateCanaryCommand, se_UpdateCanaryCommand } from "../protocols/Aws
6
6
  export { $Command };
7
7
  export class UpdateCanaryCommand 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: SyntheticsClientConfig) => {
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: SyntheticsClientConfig) => {
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").SyntheticsHttpAuthSchemeProvider;
39
41
  credentials?: import("@smithy/types").AwsCredentialIdentity | import("@smithy/types").AwsCredentialIdentityProvider | undefined;
@@ -18,6 +18,7 @@ export declare const getRuntimeConfig: (config: SyntheticsClientConfig) => {
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: SyntheticsClientConfig) => {
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").SyntheticsHttpAuthSchemeProvider;
39
41
  credentials?: import("@smithy/types").AwsCredentialIdentity | import("@smithy/types").AwsCredentialIdentityProvider | undefined;
@@ -7,6 +7,7 @@ export declare const getRuntimeConfig: (config: SyntheticsClientConfig) => {
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: SyntheticsClientConfig) => {
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").SyntheticsHttpAuthSchemeProvider;
38
40
  credentials?: import("@smithy/types").AwsCredentialIdentity | import("@smithy/types").AwsCredentialIdentityProvider | undefined;
@@ -23,6 +23,7 @@ export declare const getRuntimeConfig: (config: SyntheticsClientConfig) => {
23
23
  useDualstackEndpoint: boolean | import("@smithy/types").Provider<boolean>;
24
24
  useFipsEndpoint: boolean | import("@smithy/types").Provider<boolean>;
25
25
  apiVersion: string;
26
+ cacheMiddleware?: boolean | undefined;
26
27
  urlParser: import("@smithy/types").UrlParser;
27
28
  base64Decoder: import("@smithy/types").Decoder;
28
29
  base64Encoder: (_input: string | Uint8Array) => string;
@@ -61,6 +62,7 @@ export declare const getRuntimeConfig: (config: SyntheticsClientConfig) => {
61
62
  }
62
63
  ) => import("@smithy/types").EndpointV2;
63
64
  tls?: boolean | undefined;
65
+ serviceConfiguredEndpoint?: undefined;
64
66
  httpAuthSchemes: import("@smithy/types").HttpAuthScheme[];
65
67
  httpAuthSchemeProvider: import("./auth/httpAuthSchemeProvider").SyntheticsHttpAuthSchemeProvider;
66
68
  credentials?:
@@ -27,6 +27,7 @@ export declare const getRuntimeConfig: (config: SyntheticsClientConfig) => {
27
27
  useDualstackEndpoint: boolean | import("@smithy/types").Provider<boolean>;
28
28
  useFipsEndpoint: boolean | import("@smithy/types").Provider<boolean>;
29
29
  apiVersion: string;
30
+ cacheMiddleware?: boolean | undefined;
30
31
  urlParser: import("@smithy/types").UrlParser;
31
32
  base64Decoder: import("@smithy/types").Decoder;
32
33
  base64Encoder: (_input: string | Uint8Array) => string;
@@ -65,6 +66,7 @@ export declare const getRuntimeConfig: (config: SyntheticsClientConfig) => {
65
66
  }
66
67
  ) => import("@smithy/types").EndpointV2;
67
68
  tls?: boolean | undefined;
69
+ serviceConfiguredEndpoint?: undefined;
68
70
  httpAuthSchemes: import("@smithy/types").HttpAuthScheme[];
69
71
  httpAuthSchemeProvider: import("./auth/httpAuthSchemeProvider").SyntheticsHttpAuthSchemeProvider;
70
72
  credentials?:
@@ -9,6 +9,7 @@ export declare const getRuntimeConfig: (config: SyntheticsClientConfig) => {
9
9
  | import("@smithy/protocol-http").HttpHandler<any>
10
10
  | import("@smithy/fetch-http-handler").FetchHttpHandler;
11
11
  apiVersion: string;
12
+ cacheMiddleware?: boolean | undefined;
12
13
  urlParser: import("@smithy/types").UrlParser;
13
14
  bodyLengthChecker: import("@smithy/types").BodyLengthCalculator;
14
15
  streamCollector: import("@smithy/types").StreamCollector;
@@ -55,6 +56,7 @@ export declare const getRuntimeConfig: (config: SyntheticsClientConfig) => {
55
56
  }
56
57
  ) => import("@smithy/types").EndpointV2;
57
58
  tls?: boolean | undefined;
59
+ serviceConfiguredEndpoint?: undefined;
58
60
  httpAuthSchemes: import("@smithy/types").HttpAuthScheme[];
59
61
  httpAuthSchemeProvider: import("./auth/httpAuthSchemeProvider").SyntheticsHttpAuthSchemeProvider;
60
62
  credentials?:
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-synthetics",
3
3
  "description": "AWS SDK for JavaScript Synthetics 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-synthetics",
@@ -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
  },