@aws-sdk/client-connectcampaigns 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 (32) hide show
  1. package/dist-cjs/endpoint/endpointResolver.js +6 -2
  2. package/dist-cjs/index.js +22 -66
  3. package/dist-es/commands/CreateCampaignCommand.js +1 -3
  4. package/dist-es/commands/DeleteCampaignCommand.js +1 -3
  5. package/dist-es/commands/DeleteConnectInstanceConfigCommand.js +1 -3
  6. package/dist-es/commands/DeleteInstanceOnboardingJobCommand.js +1 -3
  7. package/dist-es/commands/DescribeCampaignCommand.js +1 -3
  8. package/dist-es/commands/GetCampaignStateBatchCommand.js +1 -3
  9. package/dist-es/commands/GetCampaignStateCommand.js +1 -3
  10. package/dist-es/commands/GetConnectInstanceConfigCommand.js +1 -3
  11. package/dist-es/commands/GetInstanceOnboardingJobStatusCommand.js +1 -3
  12. package/dist-es/commands/ListCampaignsCommand.js +1 -3
  13. package/dist-es/commands/ListTagsForResourceCommand.js +1 -3
  14. package/dist-es/commands/PauseCampaignCommand.js +1 -3
  15. package/dist-es/commands/PutDialRequestBatchCommand.js +1 -3
  16. package/dist-es/commands/ResumeCampaignCommand.js +1 -3
  17. package/dist-es/commands/StartCampaignCommand.js +1 -3
  18. package/dist-es/commands/StartInstanceOnboardingJobCommand.js +1 -3
  19. package/dist-es/commands/StopCampaignCommand.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/UpdateCampaignDialerConfigCommand.js +1 -3
  23. package/dist-es/commands/UpdateCampaignNameCommand.js +1 -3
  24. package/dist-es/commands/UpdateCampaignOutboundCallConfigCommand.js +1 -3
  25. package/dist-es/endpoint/endpointResolver.js +7 -3
  26. package/dist-types/runtimeConfig.browser.d.ts +2 -0
  27. package/dist-types/runtimeConfig.d.ts +2 -0
  28. package/dist-types/runtimeConfig.native.d.ts +2 -0
  29. package/dist-types/ts3.4/runtimeConfig.browser.d.ts +2 -0
  30. package/dist-types/ts3.4/runtimeConfig.d.ts +2 -0
  31. package/dist-types/ts3.4/runtimeConfig.native.d.ts +2 -0
  32. 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
@@ -1304,9 +1304,7 @@ var _xAET = "xAmzErrorType";
1304
1304
  var _xae = "x-amzn-errortype";
1305
1305
 
1306
1306
  // src/commands/CreateCampaignCommand.ts
1307
- var _CreateCampaignCommand = class _CreateCampaignCommand extends import_smithy_client.Command.classBuilder().ep({
1308
- ...commonParams
1309
- }).m(function(Command, cs, config, o) {
1307
+ var _CreateCampaignCommand = class _CreateCampaignCommand extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1310
1308
  return [
1311
1309
  (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1312
1310
  (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
@@ -1320,9 +1318,7 @@ var CreateCampaignCommand = _CreateCampaignCommand;
1320
1318
 
1321
1319
 
1322
1320
 
1323
- var _DeleteCampaignCommand = class _DeleteCampaignCommand extends import_smithy_client.Command.classBuilder().ep({
1324
- ...commonParams
1325
- }).m(function(Command, cs, config, o) {
1321
+ var _DeleteCampaignCommand = class _DeleteCampaignCommand extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1326
1322
  return [
1327
1323
  (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1328
1324
  (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
@@ -1336,9 +1332,7 @@ var DeleteCampaignCommand = _DeleteCampaignCommand;
1336
1332
 
1337
1333
 
1338
1334
 
1339
- var _DeleteConnectInstanceConfigCommand = class _DeleteConnectInstanceConfigCommand extends import_smithy_client.Command.classBuilder().ep({
1340
- ...commonParams
1341
- }).m(function(Command, cs, config, o) {
1335
+ var _DeleteConnectInstanceConfigCommand = class _DeleteConnectInstanceConfigCommand extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1342
1336
  return [
1343
1337
  (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1344
1338
  (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
@@ -1352,9 +1346,7 @@ var DeleteConnectInstanceConfigCommand = _DeleteConnectInstanceConfigCommand;
1352
1346
 
1353
1347
 
1354
1348
 
1355
- var _DeleteInstanceOnboardingJobCommand = class _DeleteInstanceOnboardingJobCommand extends import_smithy_client.Command.classBuilder().ep({
1356
- ...commonParams
1357
- }).m(function(Command, cs, config, o) {
1349
+ var _DeleteInstanceOnboardingJobCommand = class _DeleteInstanceOnboardingJobCommand extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1358
1350
  return [
1359
1351
  (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1360
1352
  (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
@@ -1368,9 +1360,7 @@ var DeleteInstanceOnboardingJobCommand = _DeleteInstanceOnboardingJobCommand;
1368
1360
 
1369
1361
 
1370
1362
 
1371
- var _DescribeCampaignCommand = class _DescribeCampaignCommand extends import_smithy_client.Command.classBuilder().ep({
1372
- ...commonParams
1373
- }).m(function(Command, cs, config, o) {
1363
+ var _DescribeCampaignCommand = class _DescribeCampaignCommand extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1374
1364
  return [
1375
1365
  (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1376
1366
  (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
@@ -1384,9 +1374,7 @@ var DescribeCampaignCommand = _DescribeCampaignCommand;
1384
1374
 
1385
1375
 
1386
1376
 
1387
- var _GetCampaignStateBatchCommand = class _GetCampaignStateBatchCommand extends import_smithy_client.Command.classBuilder().ep({
1388
- ...commonParams
1389
- }).m(function(Command, cs, config, o) {
1377
+ var _GetCampaignStateBatchCommand = class _GetCampaignStateBatchCommand extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1390
1378
  return [
1391
1379
  (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1392
1380
  (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
@@ -1400,9 +1388,7 @@ var GetCampaignStateBatchCommand = _GetCampaignStateBatchCommand;
1400
1388
 
1401
1389
 
1402
1390
 
1403
- var _GetCampaignStateCommand = class _GetCampaignStateCommand extends import_smithy_client.Command.classBuilder().ep({
1404
- ...commonParams
1405
- }).m(function(Command, cs, config, o) {
1391
+ var _GetCampaignStateCommand = class _GetCampaignStateCommand extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1406
1392
  return [
1407
1393
  (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1408
1394
  (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
@@ -1416,9 +1402,7 @@ var GetCampaignStateCommand = _GetCampaignStateCommand;
1416
1402
 
1417
1403
 
1418
1404
 
1419
- var _GetConnectInstanceConfigCommand = class _GetConnectInstanceConfigCommand extends import_smithy_client.Command.classBuilder().ep({
1420
- ...commonParams
1421
- }).m(function(Command, cs, config, o) {
1405
+ var _GetConnectInstanceConfigCommand = class _GetConnectInstanceConfigCommand extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1422
1406
  return [
1423
1407
  (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1424
1408
  (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
@@ -1432,9 +1416,7 @@ var GetConnectInstanceConfigCommand = _GetConnectInstanceConfigCommand;
1432
1416
 
1433
1417
 
1434
1418
 
1435
- var _GetInstanceOnboardingJobStatusCommand = class _GetInstanceOnboardingJobStatusCommand extends import_smithy_client.Command.classBuilder().ep({
1436
- ...commonParams
1437
- }).m(function(Command, cs, config, o) {
1419
+ var _GetInstanceOnboardingJobStatusCommand = class _GetInstanceOnboardingJobStatusCommand extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1438
1420
  return [
1439
1421
  (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1440
1422
  (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
@@ -1448,9 +1430,7 @@ var GetInstanceOnboardingJobStatusCommand = _GetInstanceOnboardingJobStatusComma
1448
1430
 
1449
1431
 
1450
1432
 
1451
- var _ListCampaignsCommand = class _ListCampaignsCommand extends import_smithy_client.Command.classBuilder().ep({
1452
- ...commonParams
1453
- }).m(function(Command, cs, config, o) {
1433
+ var _ListCampaignsCommand = class _ListCampaignsCommand extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1454
1434
  return [
1455
1435
  (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1456
1436
  (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
@@ -1464,9 +1444,7 @@ var ListCampaignsCommand = _ListCampaignsCommand;
1464
1444
 
1465
1445
 
1466
1446
 
1467
- var _ListTagsForResourceCommand = class _ListTagsForResourceCommand extends import_smithy_client.Command.classBuilder().ep({
1468
- ...commonParams
1469
- }).m(function(Command, cs, config, o) {
1447
+ var _ListTagsForResourceCommand = class _ListTagsForResourceCommand extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1470
1448
  return [
1471
1449
  (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1472
1450
  (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
@@ -1480,9 +1458,7 @@ var ListTagsForResourceCommand = _ListTagsForResourceCommand;
1480
1458
 
1481
1459
 
1482
1460
 
1483
- var _PauseCampaignCommand = class _PauseCampaignCommand extends import_smithy_client.Command.classBuilder().ep({
1484
- ...commonParams
1485
- }).m(function(Command, cs, config, o) {
1461
+ var _PauseCampaignCommand = class _PauseCampaignCommand extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1486
1462
  return [
1487
1463
  (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1488
1464
  (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
@@ -1496,9 +1472,7 @@ var PauseCampaignCommand = _PauseCampaignCommand;
1496
1472
 
1497
1473
 
1498
1474
 
1499
- var _PutDialRequestBatchCommand = class _PutDialRequestBatchCommand extends import_smithy_client.Command.classBuilder().ep({
1500
- ...commonParams
1501
- }).m(function(Command, cs, config, o) {
1475
+ var _PutDialRequestBatchCommand = class _PutDialRequestBatchCommand extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1502
1476
  return [
1503
1477
  (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1504
1478
  (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
@@ -1512,9 +1486,7 @@ var PutDialRequestBatchCommand = _PutDialRequestBatchCommand;
1512
1486
 
1513
1487
 
1514
1488
 
1515
- var _ResumeCampaignCommand = class _ResumeCampaignCommand extends import_smithy_client.Command.classBuilder().ep({
1516
- ...commonParams
1517
- }).m(function(Command, cs, config, o) {
1489
+ var _ResumeCampaignCommand = class _ResumeCampaignCommand extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1518
1490
  return [
1519
1491
  (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1520
1492
  (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
@@ -1528,9 +1500,7 @@ var ResumeCampaignCommand = _ResumeCampaignCommand;
1528
1500
 
1529
1501
 
1530
1502
 
1531
- var _StartCampaignCommand = class _StartCampaignCommand extends import_smithy_client.Command.classBuilder().ep({
1532
- ...commonParams
1533
- }).m(function(Command, cs, config, o) {
1503
+ var _StartCampaignCommand = class _StartCampaignCommand extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1534
1504
  return [
1535
1505
  (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1536
1506
  (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
@@ -1544,9 +1514,7 @@ var StartCampaignCommand = _StartCampaignCommand;
1544
1514
 
1545
1515
 
1546
1516
 
1547
- var _StartInstanceOnboardingJobCommand = class _StartInstanceOnboardingJobCommand extends import_smithy_client.Command.classBuilder().ep({
1548
- ...commonParams
1549
- }).m(function(Command, cs, config, o) {
1517
+ var _StartInstanceOnboardingJobCommand = class _StartInstanceOnboardingJobCommand extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1550
1518
  return [
1551
1519
  (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1552
1520
  (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
@@ -1560,9 +1528,7 @@ var StartInstanceOnboardingJobCommand = _StartInstanceOnboardingJobCommand;
1560
1528
 
1561
1529
 
1562
1530
 
1563
- var _StopCampaignCommand = class _StopCampaignCommand extends import_smithy_client.Command.classBuilder().ep({
1564
- ...commonParams
1565
- }).m(function(Command, cs, config, o) {
1531
+ var _StopCampaignCommand = class _StopCampaignCommand extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1566
1532
  return [
1567
1533
  (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1568
1534
  (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
@@ -1576,9 +1542,7 @@ var StopCampaignCommand = _StopCampaignCommand;
1576
1542
 
1577
1543
 
1578
1544
 
1579
- var _TagResourceCommand = class _TagResourceCommand extends import_smithy_client.Command.classBuilder().ep({
1580
- ...commonParams
1581
- }).m(function(Command, cs, config, o) {
1545
+ var _TagResourceCommand = class _TagResourceCommand extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1582
1546
  return [
1583
1547
  (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1584
1548
  (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
@@ -1592,9 +1556,7 @@ var TagResourceCommand = _TagResourceCommand;
1592
1556
 
1593
1557
 
1594
1558
 
1595
- var _UntagResourceCommand = class _UntagResourceCommand extends import_smithy_client.Command.classBuilder().ep({
1596
- ...commonParams
1597
- }).m(function(Command, cs, config, o) {
1559
+ var _UntagResourceCommand = class _UntagResourceCommand extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1598
1560
  return [
1599
1561
  (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1600
1562
  (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
@@ -1608,9 +1570,7 @@ var UntagResourceCommand = _UntagResourceCommand;
1608
1570
 
1609
1571
 
1610
1572
 
1611
- var _UpdateCampaignDialerConfigCommand = class _UpdateCampaignDialerConfigCommand extends import_smithy_client.Command.classBuilder().ep({
1612
- ...commonParams
1613
- }).m(function(Command, cs, config, o) {
1573
+ var _UpdateCampaignDialerConfigCommand = class _UpdateCampaignDialerConfigCommand extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1614
1574
  return [
1615
1575
  (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1616
1576
  (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
@@ -1624,9 +1584,7 @@ var UpdateCampaignDialerConfigCommand = _UpdateCampaignDialerConfigCommand;
1624
1584
 
1625
1585
 
1626
1586
 
1627
- var _UpdateCampaignNameCommand = class _UpdateCampaignNameCommand extends import_smithy_client.Command.classBuilder().ep({
1628
- ...commonParams
1629
- }).m(function(Command, cs, config, o) {
1587
+ var _UpdateCampaignNameCommand = class _UpdateCampaignNameCommand extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1630
1588
  return [
1631
1589
  (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1632
1590
  (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
@@ -1640,9 +1598,7 @@ var UpdateCampaignNameCommand = _UpdateCampaignNameCommand;
1640
1598
 
1641
1599
 
1642
1600
 
1643
- var _UpdateCampaignOutboundCallConfigCommand = class _UpdateCampaignOutboundCallConfigCommand extends import_smithy_client.Command.classBuilder().ep({
1644
- ...commonParams
1645
- }).m(function(Command, cs, config, o) {
1601
+ var _UpdateCampaignOutboundCallConfigCommand = class _UpdateCampaignOutboundCallConfigCommand extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1646
1602
  return [
1647
1603
  (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1648
1604
  (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
@@ -6,9 +6,7 @@ import { de_CreateCampaignCommand, se_CreateCampaignCommand } from "../protocols
6
6
  export { $Command };
7
7
  export class CreateCampaignCommand 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_DeleteCampaignCommand, se_DeleteCampaignCommand } from "../protocols
6
6
  export { $Command };
7
7
  export class DeleteCampaignCommand 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_DeleteConnectInstanceConfigCommand, se_DeleteConnectInstanceConfigCo
6
6
  export { $Command };
7
7
  export class DeleteConnectInstanceConfigCommand 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_DeleteInstanceOnboardingJobCommand, se_DeleteInstanceOnboardingJobCo
6
6
  export { $Command };
7
7
  export class DeleteInstanceOnboardingJobCommand 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_DescribeCampaignCommand, se_DescribeCampaignCommand } from "../proto
6
6
  export { $Command };
7
7
  export class DescribeCampaignCommand 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_GetCampaignStateBatchCommand, se_GetCampaignStateBatchCommand } from
6
6
  export { $Command };
7
7
  export class GetCampaignStateBatchCommand 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_GetCampaignStateCommand, se_GetCampaignStateCommand } from "../proto
6
6
  export { $Command };
7
7
  export class GetCampaignStateCommand 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_GetConnectInstanceConfigCommand, se_GetConnectInstanceConfigCommand
6
6
  export { $Command };
7
7
  export class GetConnectInstanceConfigCommand 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_GetInstanceOnboardingJobStatusCommand, se_GetInstanceOnboardingJobSt
6
6
  export { $Command };
7
7
  export class GetInstanceOnboardingJobStatusCommand 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_ListCampaignsCommand, se_ListCampaignsCommand } from "../protocols/A
6
6
  export { $Command };
7
7
  export class ListCampaignsCommand 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_PauseCampaignCommand, se_PauseCampaignCommand } from "../protocols/A
6
6
  export { $Command };
7
7
  export class PauseCampaignCommand 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_PutDialRequestBatchCommand, se_PutDialRequestBatchCommand } from "..
7
7
  export { $Command };
8
8
  export class PutDialRequestBatchCommand 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_ResumeCampaignCommand, se_ResumeCampaignCommand } from "../protocols
6
6
  export { $Command };
7
7
  export class ResumeCampaignCommand 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_StartCampaignCommand, se_StartCampaignCommand } from "../protocols/A
6
6
  export { $Command };
7
7
  export class StartCampaignCommand 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_StartInstanceOnboardingJobCommand, se_StartInstanceOnboardingJobComm
6
6
  export { $Command };
7
7
  export class StartInstanceOnboardingJobCommand 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_StopCampaignCommand, se_StopCampaignCommand } from "../protocols/Aws
6
6
  export { $Command };
7
7
  export class StopCampaignCommand 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_UpdateCampaignDialerConfigCommand, se_UpdateCampaignDialerConfigComm
6
6
  export { $Command };
7
7
  export class UpdateCampaignDialerConfigCommand 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_UpdateCampaignNameCommand, se_UpdateCampaignNameCommand } from "../p
6
6
  export { $Command };
7
7
  export class UpdateCampaignNameCommand 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_UpdateCampaignOutboundCallConfigCommand, se_UpdateCampaignOutboundCa
6
6
  export { $Command };
7
7
  export class UpdateCampaignOutboundCallConfigCommand 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: ConnectCampaignsClientConfig) =>
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: ConnectCampaignsClientConfig) =>
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").ConnectCampaignsHttpAuthSchemeProvider;
39
41
  credentials?: import("@smithy/types").AwsCredentialIdentity | import("@smithy/types").AwsCredentialIdentityProvider | undefined;
@@ -18,6 +18,7 @@ export declare const getRuntimeConfig: (config: ConnectCampaignsClientConfig) =>
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: ConnectCampaignsClientConfig) =>
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").ConnectCampaignsHttpAuthSchemeProvider;
39
41
  credentials?: import("@smithy/types").AwsCredentialIdentity | import("@smithy/types").AwsCredentialIdentityProvider | undefined;
@@ -7,6 +7,7 @@ export declare const getRuntimeConfig: (config: ConnectCampaignsClientConfig) =>
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: ConnectCampaignsClientConfig) =>
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").ConnectCampaignsHttpAuthSchemeProvider;
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").ConnectCampaignsHttpAuthSchemeProvider;
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").ConnectCampaignsHttpAuthSchemeProvider;
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").ConnectCampaignsHttpAuthSchemeProvider;
62
64
  credentials?:
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-connectcampaigns",
3
3
  "description": "AWS SDK for JavaScript Connectcampaigns 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-connectcampaigns",
@@ -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
  },