@aws-sdk/client-synthetics 3.649.0 → 3.651.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 (29) hide show
  1. package/dist-cjs/index.js +27 -63
  2. package/dist-es/commands/AssociateResourceCommand.js +1 -3
  3. package/dist-es/commands/CreateCanaryCommand.js +1 -3
  4. package/dist-es/commands/CreateGroupCommand.js +1 -3
  5. package/dist-es/commands/DeleteCanaryCommand.js +1 -3
  6. package/dist-es/commands/DeleteGroupCommand.js +1 -3
  7. package/dist-es/commands/DescribeCanariesCommand.js +1 -3
  8. package/dist-es/commands/DescribeCanariesLastRunCommand.js +1 -3
  9. package/dist-es/commands/DescribeRuntimeVersionsCommand.js +1 -3
  10. package/dist-es/commands/DisassociateResourceCommand.js +1 -3
  11. package/dist-es/commands/GetCanaryCommand.js +1 -3
  12. package/dist-es/commands/GetCanaryRunsCommand.js +1 -3
  13. package/dist-es/commands/GetGroupCommand.js +1 -3
  14. package/dist-es/commands/ListAssociatedGroupsCommand.js +1 -3
  15. package/dist-es/commands/ListGroupResourcesCommand.js +1 -3
  16. package/dist-es/commands/ListGroupsCommand.js +1 -3
  17. package/dist-es/commands/ListTagsForResourceCommand.js +1 -3
  18. package/dist-es/commands/StartCanaryCommand.js +1 -3
  19. package/dist-es/commands/StopCanaryCommand.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/UpdateCanaryCommand.js +1 -3
  23. package/dist-es/models/models_0.js +3 -0
  24. package/dist-es/protocols/Aws_restJson1.js +1 -0
  25. package/dist-types/commands/CreateCanaryCommand.d.ts +3 -0
  26. package/dist-types/commands/DeleteCanaryCommand.d.ts +9 -6
  27. package/dist-types/models/models_0.d.ts +39 -1
  28. package/dist-types/ts3.4/models/models_0.d.ts +5 -0
  29. package/package.json +4 -4
package/dist-cjs/index.js CHANGED
@@ -49,6 +49,7 @@ __export(src_exports, {
49
49
  NotFoundException: () => NotFoundException,
50
50
  RequestEntityTooLargeException: () => RequestEntityTooLargeException,
51
51
  ResourceNotFoundException: () => ResourceNotFoundException,
52
+ ResourceToTag: () => ResourceToTag,
52
53
  ServiceQuotaExceededException: () => ServiceQuotaExceededException,
53
54
  StartCanaryCommand: () => StartCanaryCommand,
54
55
  StopCanaryCommand: () => StopCanaryCommand,
@@ -382,6 +383,9 @@ var CanaryRunStateReasonCode = {
382
383
  CANARY_FAILURE: "CANARY_FAILURE",
383
384
  EXECUTION_FAILURE: "EXECUTION_FAILURE"
384
385
  };
386
+ var ResourceToTag = {
387
+ LAMBDA_FUNCTION: "lambda-function"
388
+ };
385
389
  var _RequestEntityTooLargeException = class _RequestEntityTooLargeException extends SyntheticsServiceException {
386
390
  /**
387
391
  * @internal
@@ -487,6 +491,7 @@ var se_CreateCanaryCommand = /* @__PURE__ */ __name(async (input, context) => {
487
491
  ExecutionRoleArn: [],
488
492
  FailureRetentionPeriodInDays: [],
489
493
  Name: [],
494
+ ResourcesToReplicateTags: (_) => (0, import_smithy_client._json)(_),
490
495
  RunConfig: (_) => (0, import_smithy_client._json)(_),
491
496
  RuntimeVersion: [],
492
497
  Schedule: (_) => (0, import_smithy_client._json)(_),
@@ -1325,9 +1330,7 @@ var _dL = "deleteLambda";
1325
1330
  var _tK = "tagKeys";
1326
1331
 
1327
1332
  // 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) {
1333
+ var _AssociateResourceCommand = class _AssociateResourceCommand extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1331
1334
  return [
1332
1335
  (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1333
1336
  (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
@@ -1341,9 +1344,7 @@ var AssociateResourceCommand = _AssociateResourceCommand;
1341
1344
 
1342
1345
 
1343
1346
 
1344
- var _CreateCanaryCommand = class _CreateCanaryCommand extends import_smithy_client.Command.classBuilder().ep({
1345
- ...commonParams
1346
- }).m(function(Command, cs, config, o) {
1347
+ var _CreateCanaryCommand = class _CreateCanaryCommand extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1347
1348
  return [
1348
1349
  (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1349
1350
  (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
@@ -1357,9 +1358,7 @@ var CreateCanaryCommand = _CreateCanaryCommand;
1357
1358
 
1358
1359
 
1359
1360
 
1360
- var _CreateGroupCommand = class _CreateGroupCommand extends import_smithy_client.Command.classBuilder().ep({
1361
- ...commonParams
1362
- }).m(function(Command, cs, config, o) {
1361
+ var _CreateGroupCommand = class _CreateGroupCommand extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1363
1362
  return [
1364
1363
  (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1365
1364
  (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
@@ -1373,9 +1372,7 @@ var CreateGroupCommand = _CreateGroupCommand;
1373
1372
 
1374
1373
 
1375
1374
 
1376
- var _DeleteCanaryCommand = class _DeleteCanaryCommand extends import_smithy_client.Command.classBuilder().ep({
1377
- ...commonParams
1378
- }).m(function(Command, cs, config, o) {
1375
+ var _DeleteCanaryCommand = class _DeleteCanaryCommand extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1379
1376
  return [
1380
1377
  (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1381
1378
  (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
@@ -1389,9 +1386,7 @@ var DeleteCanaryCommand = _DeleteCanaryCommand;
1389
1386
 
1390
1387
 
1391
1388
 
1392
- var _DeleteGroupCommand = class _DeleteGroupCommand extends import_smithy_client.Command.classBuilder().ep({
1393
- ...commonParams
1394
- }).m(function(Command, cs, config, o) {
1389
+ var _DeleteGroupCommand = class _DeleteGroupCommand extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1395
1390
  return [
1396
1391
  (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1397
1392
  (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
@@ -1405,9 +1400,7 @@ var DeleteGroupCommand = _DeleteGroupCommand;
1405
1400
 
1406
1401
 
1407
1402
 
1408
- var _DescribeCanariesCommand = class _DescribeCanariesCommand extends import_smithy_client.Command.classBuilder().ep({
1409
- ...commonParams
1410
- }).m(function(Command, cs, config, o) {
1403
+ var _DescribeCanariesCommand = class _DescribeCanariesCommand extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1411
1404
  return [
1412
1405
  (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1413
1406
  (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
@@ -1421,9 +1414,7 @@ var DescribeCanariesCommand = _DescribeCanariesCommand;
1421
1414
 
1422
1415
 
1423
1416
 
1424
- var _DescribeCanariesLastRunCommand = class _DescribeCanariesLastRunCommand extends import_smithy_client.Command.classBuilder().ep({
1425
- ...commonParams
1426
- }).m(function(Command, cs, config, o) {
1417
+ var _DescribeCanariesLastRunCommand = class _DescribeCanariesLastRunCommand extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1427
1418
  return [
1428
1419
  (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1429
1420
  (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
@@ -1437,9 +1428,7 @@ var DescribeCanariesLastRunCommand = _DescribeCanariesLastRunCommand;
1437
1428
 
1438
1429
 
1439
1430
 
1440
- var _DescribeRuntimeVersionsCommand = class _DescribeRuntimeVersionsCommand extends import_smithy_client.Command.classBuilder().ep({
1441
- ...commonParams
1442
- }).m(function(Command, cs, config, o) {
1431
+ var _DescribeRuntimeVersionsCommand = class _DescribeRuntimeVersionsCommand extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1443
1432
  return [
1444
1433
  (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1445
1434
  (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
@@ -1453,9 +1442,7 @@ var DescribeRuntimeVersionsCommand = _DescribeRuntimeVersionsCommand;
1453
1442
 
1454
1443
 
1455
1444
 
1456
- var _DisassociateResourceCommand = class _DisassociateResourceCommand extends import_smithy_client.Command.classBuilder().ep({
1457
- ...commonParams
1458
- }).m(function(Command, cs, config, o) {
1445
+ var _DisassociateResourceCommand = class _DisassociateResourceCommand extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1459
1446
  return [
1460
1447
  (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1461
1448
  (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
@@ -1469,9 +1456,7 @@ var DisassociateResourceCommand = _DisassociateResourceCommand;
1469
1456
 
1470
1457
 
1471
1458
 
1472
- var _GetCanaryCommand = class _GetCanaryCommand extends import_smithy_client.Command.classBuilder().ep({
1473
- ...commonParams
1474
- }).m(function(Command, cs, config, o) {
1459
+ var _GetCanaryCommand = class _GetCanaryCommand extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1475
1460
  return [
1476
1461
  (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1477
1462
  (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
@@ -1485,9 +1470,7 @@ var GetCanaryCommand = _GetCanaryCommand;
1485
1470
 
1486
1471
 
1487
1472
 
1488
- var _GetCanaryRunsCommand = class _GetCanaryRunsCommand extends import_smithy_client.Command.classBuilder().ep({
1489
- ...commonParams
1490
- }).m(function(Command, cs, config, o) {
1473
+ var _GetCanaryRunsCommand = class _GetCanaryRunsCommand extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1491
1474
  return [
1492
1475
  (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1493
1476
  (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
@@ -1501,9 +1484,7 @@ var GetCanaryRunsCommand = _GetCanaryRunsCommand;
1501
1484
 
1502
1485
 
1503
1486
 
1504
- var _GetGroupCommand = class _GetGroupCommand extends import_smithy_client.Command.classBuilder().ep({
1505
- ...commonParams
1506
- }).m(function(Command, cs, config, o) {
1487
+ var _GetGroupCommand = class _GetGroupCommand extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1507
1488
  return [
1508
1489
  (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1509
1490
  (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
@@ -1517,9 +1498,7 @@ var GetGroupCommand = _GetGroupCommand;
1517
1498
 
1518
1499
 
1519
1500
 
1520
- var _ListAssociatedGroupsCommand = class _ListAssociatedGroupsCommand extends import_smithy_client.Command.classBuilder().ep({
1521
- ...commonParams
1522
- }).m(function(Command, cs, config, o) {
1501
+ var _ListAssociatedGroupsCommand = class _ListAssociatedGroupsCommand extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1523
1502
  return [
1524
1503
  (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1525
1504
  (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
@@ -1533,9 +1512,7 @@ var ListAssociatedGroupsCommand = _ListAssociatedGroupsCommand;
1533
1512
 
1534
1513
 
1535
1514
 
1536
- var _ListGroupResourcesCommand = class _ListGroupResourcesCommand extends import_smithy_client.Command.classBuilder().ep({
1537
- ...commonParams
1538
- }).m(function(Command, cs, config, o) {
1515
+ var _ListGroupResourcesCommand = class _ListGroupResourcesCommand extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1539
1516
  return [
1540
1517
  (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1541
1518
  (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
@@ -1549,9 +1526,7 @@ var ListGroupResourcesCommand = _ListGroupResourcesCommand;
1549
1526
 
1550
1527
 
1551
1528
 
1552
- var _ListGroupsCommand = class _ListGroupsCommand extends import_smithy_client.Command.classBuilder().ep({
1553
- ...commonParams
1554
- }).m(function(Command, cs, config, o) {
1529
+ var _ListGroupsCommand = class _ListGroupsCommand extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1555
1530
  return [
1556
1531
  (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1557
1532
  (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
@@ -1565,9 +1540,7 @@ var ListGroupsCommand = _ListGroupsCommand;
1565
1540
 
1566
1541
 
1567
1542
 
1568
- var _ListTagsForResourceCommand = class _ListTagsForResourceCommand extends import_smithy_client.Command.classBuilder().ep({
1569
- ...commonParams
1570
- }).m(function(Command, cs, config, o) {
1543
+ var _ListTagsForResourceCommand = class _ListTagsForResourceCommand extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1571
1544
  return [
1572
1545
  (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1573
1546
  (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
@@ -1581,9 +1554,7 @@ var ListTagsForResourceCommand = _ListTagsForResourceCommand;
1581
1554
 
1582
1555
 
1583
1556
 
1584
- var _StartCanaryCommand = class _StartCanaryCommand extends import_smithy_client.Command.classBuilder().ep({
1585
- ...commonParams
1586
- }).m(function(Command, cs, config, o) {
1557
+ var _StartCanaryCommand = class _StartCanaryCommand extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1587
1558
  return [
1588
1559
  (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1589
1560
  (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
@@ -1597,9 +1568,7 @@ var StartCanaryCommand = _StartCanaryCommand;
1597
1568
 
1598
1569
 
1599
1570
 
1600
- var _StopCanaryCommand = class _StopCanaryCommand extends import_smithy_client.Command.classBuilder().ep({
1601
- ...commonParams
1602
- }).m(function(Command, cs, config, o) {
1571
+ var _StopCanaryCommand = class _StopCanaryCommand extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1603
1572
  return [
1604
1573
  (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1605
1574
  (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
@@ -1613,9 +1582,7 @@ var StopCanaryCommand = _StopCanaryCommand;
1613
1582
 
1614
1583
 
1615
1584
 
1616
- var _TagResourceCommand = class _TagResourceCommand extends import_smithy_client.Command.classBuilder().ep({
1617
- ...commonParams
1618
- }).m(function(Command, cs, config, o) {
1585
+ var _TagResourceCommand = class _TagResourceCommand extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1619
1586
  return [
1620
1587
  (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1621
1588
  (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
@@ -1629,9 +1596,7 @@ var TagResourceCommand = _TagResourceCommand;
1629
1596
 
1630
1597
 
1631
1598
 
1632
- var _UntagResourceCommand = class _UntagResourceCommand extends import_smithy_client.Command.classBuilder().ep({
1633
- ...commonParams
1634
- }).m(function(Command, cs, config, o) {
1599
+ var _UntagResourceCommand = class _UntagResourceCommand extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1635
1600
  return [
1636
1601
  (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1637
1602
  (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
@@ -1645,9 +1610,7 @@ var UntagResourceCommand = _UntagResourceCommand;
1645
1610
 
1646
1611
 
1647
1612
 
1648
- var _UpdateCanaryCommand = class _UpdateCanaryCommand extends import_smithy_client.Command.classBuilder().ep({
1649
- ...commonParams
1650
- }).m(function(Command, cs, config, o) {
1613
+ var _UpdateCanaryCommand = class _UpdateCanaryCommand extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1651
1614
  return [
1652
1615
  (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1653
1616
  (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
@@ -1761,6 +1724,7 @@ var paginateListGroups = (0, import_core.createPaginator)(SyntheticsClient, List
1761
1724
  CanaryStateReasonCode,
1762
1725
  CanaryRunState,
1763
1726
  CanaryRunStateReasonCode,
1727
+ ResourceToTag,
1764
1728
  RequestEntityTooLargeException,
1765
1729
  InternalFailureException,
1766
1730
  NotFoundException,
@@ -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),
@@ -115,6 +115,9 @@ export const CanaryRunStateReasonCode = {
115
115
  CANARY_FAILURE: "CANARY_FAILURE",
116
116
  EXECUTION_FAILURE: "EXECUTION_FAILURE",
117
117
  };
118
+ export const ResourceToTag = {
119
+ LAMBDA_FUNCTION: "lambda-function",
120
+ };
118
121
  export class RequestEntityTooLargeException extends __BaseException {
119
122
  constructor(opts) {
120
123
  super({
@@ -31,6 +31,7 @@ export const se_CreateCanaryCommand = async (input, context) => {
31
31
  ExecutionRoleArn: [],
32
32
  FailureRetentionPeriodInDays: [],
33
33
  Name: [],
34
+ ResourcesToReplicateTags: (_) => _json(_),
34
35
  RunConfig: (_) => _json(_),
35
36
  RuntimeVersion: [],
36
37
  Schedule: (_) => _json(_),
@@ -81,6 +81,9 @@ declare const CreateCanaryCommand_base: {
81
81
  * "STRING_VALUE",
82
82
  * ],
83
83
  * },
84
+ * ResourcesToReplicateTags: [ // ResourceList
85
+ * "lambda-function",
86
+ * ],
84
87
  * Tags: { // TagMap
85
88
  * "<keys>": "STRING_VALUE",
86
89
  * },
@@ -37,8 +37,9 @@ declare const DeleteCanaryCommand_base: {
37
37
  * <ul>
38
38
  * <li>
39
39
  * <p>The CloudWatch alarms created for this canary. These alarms have a name of
40
- * <code>Synthetics-SharpDrop-Alarm-<i>MyCanaryName</i>
41
- * </code>.</p>
40
+ * <code>Synthetics-Alarm-<i>first-198-characters-of-canary-name</i>-<i>canaryId</i>-<i>alarm number</i>
41
+ * </code>
42
+ * </p>
42
43
  * </li>
43
44
  * <li>
44
45
  * <p>Amazon S3 objects and buckets, such as the canary's artifact location.</p>
@@ -46,13 +47,15 @@ declare const DeleteCanaryCommand_base: {
46
47
  * <li>
47
48
  * <p>IAM roles created for the canary. If they were created in the console, these roles
48
49
  * have the name <code>
49
- * role/service-role/CloudWatchSyntheticsRole-<i>MyCanaryName</i>
50
- * </code>.</p>
50
+ * role/service-role/CloudWatchSyntheticsRole-<i>First-21-Characters-of-CanaryName</i>
51
+ * </code>
52
+ * </p>
51
53
  * </li>
52
54
  * <li>
53
55
  * <p>CloudWatch Logs log groups created for the canary. These logs groups have the name
54
- * <code>/aws/lambda/cwsyn-<i>MyCanaryName</i>
55
- * </code>. </p>
56
+ * <code>/aws/lambda/cwsyn-<i>First-21-Characters-of-CanaryName</i>
57
+ * </code>
58
+ * </p>
56
59
  * </li>
57
60
  * </ul>
58
61
  * <p>Before you delete a canary, you might want to use <code>GetCanary</code> to display
@@ -613,6 +613,23 @@ export interface CanaryLastRun {
613
613
  * script is stored in an S3 bucket, the bucket name, key, and version are also included. If
614
614
  * the script was passed into the canary directly, the script code is contained in the value
615
615
  * of <code>Zipfile</code>. </p>
616
+ * <p>If you are uploading your canary scripts with an Amazon S3 bucket, your zip file should include your
617
+ * script in a certain folder structure.</p>
618
+ * <ul>
619
+ * <li>
620
+ * <p>For Node.js canaries, the folder structure must be <code>nodejs/node_modules/<i>myCanaryFilename.js</i>
621
+ * </code>
622
+ * For more information, see <a href="https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/CloudWatch_Synthetics_Canaries_WritingCanary_Nodejs.html#CloudWatch_Synthetics_Canaries_package">Packaging your Node.js canary files</a>
623
+ * </p>
624
+ * </li>
625
+ * <li>
626
+ * <p>For Python canaries, the folder structure must be <code>python/<i>myCanaryFilename.p</i>
627
+ * </code> or <code>python/<i>myFolder/myCanaryFilename.py</i>
628
+ * </code>
629
+ * For more information, see <a href="https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/CloudWatch_Synthetics_Canaries_WritingCanary_Python.html#CloudWatch_Synthetics_Canaries_WritingCanary_Python_package">Packaging your Python canary files</a>
630
+ * </p>
631
+ * </li>
632
+ * </ul>
616
633
  * @public
617
634
  */
618
635
  export interface CanaryCodeInput {
@@ -738,6 +755,17 @@ export interface CanaryScheduleInput {
738
755
  */
739
756
  DurationInSeconds?: number;
740
757
  }
758
+ /**
759
+ * @public
760
+ * @enum
761
+ */
762
+ export declare const ResourceToTag: {
763
+ readonly LAMBDA_FUNCTION: "lambda-function";
764
+ };
765
+ /**
766
+ * @public
767
+ */
768
+ export type ResourceToTag = (typeof ResourceToTag)[keyof typeof ResourceToTag];
741
769
  /**
742
770
  * <p>If this canary is to test an endpoint in a VPC, this structure contains
743
771
  * information about the subnets and security groups of the VPC endpoint.
@@ -874,6 +902,14 @@ export interface CreateCanaryRequest {
874
902
  * @public
875
903
  */
876
904
  VpcConfig?: VpcConfigInput;
905
+ /**
906
+ * <p>To have the tags that you apply to this canary also be applied to the Lambda function that
907
+ * the canary uses, specify this parameter with the value <code>lambda-function</code>.</p>
908
+ * <p>If you specify this parameter and don't specify any tags in the <code>Tags</code>
909
+ * parameter, the canary creation fails.</p>
910
+ * @public
911
+ */
912
+ ResourcesToReplicateTags?: ResourceToTag[];
877
913
  /**
878
914
  * <p>A list of key-value pairs to associate with the canary.
879
915
  * You can associate as many as 50 tags with a canary.</p>
@@ -881,6 +917,8 @@ export interface CreateCanaryRequest {
881
917
  * resources. You can also use them to scope user permissions, by
882
918
  * granting a user permission to access or change only the resources that have
883
919
  * certain tag values.</p>
920
+ * <p>To have the tags that you apply to this canary also be applied to the Lambda function that
921
+ * the canary uses, specify this parameter with the value <code>lambda-function</code>.</p>
884
922
  * @public
885
923
  */
886
924
  Tags?: Record<string, string>;
@@ -1032,7 +1070,7 @@ export interface DescribeCanariesRequest {
1032
1070
  NextToken?: string;
1033
1071
  /**
1034
1072
  * <p>Specify this parameter to limit how many canaries are returned each time you use
1035
- * the <code>DescribeCanaries</code> operation. If you omit this parameter, the default of 100 is used.</p>
1073
+ * the <code>DescribeCanaries</code> operation. If you omit this parameter, the default of 20 is used.</p>
1036
1074
  * @public
1037
1075
  */
1038
1076
  MaxResults?: number;
@@ -201,6 +201,10 @@ export interface CanaryScheduleInput {
201
201
  Expression: string | undefined;
202
202
  DurationInSeconds?: number;
203
203
  }
204
+ export declare const ResourceToTag: {
205
+ readonly LAMBDA_FUNCTION: "lambda-function";
206
+ };
207
+ export type ResourceToTag = (typeof ResourceToTag)[keyof typeof ResourceToTag];
204
208
  export interface VpcConfigInput {
205
209
  SubnetIds?: string[];
206
210
  SecurityGroupIds?: string[];
@@ -216,6 +220,7 @@ export interface CreateCanaryRequest {
216
220
  FailureRetentionPeriodInDays?: number;
217
221
  RuntimeVersion: string | undefined;
218
222
  VpcConfig?: VpcConfigInput;
223
+ ResourcesToReplicateTags?: ResourceToTag[];
219
224
  Tags?: Record<string, string>;
220
225
  ArtifactConfig?: ArtifactConfigInput;
221
226
  }
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.649.0",
4
+ "version": "3.651.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,10 +20,10 @@
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.649.0",
24
- "@aws-sdk/client-sts": "3.649.0",
23
+ "@aws-sdk/client-sso-oidc": "3.650.0",
24
+ "@aws-sdk/client-sts": "3.650.0",
25
25
  "@aws-sdk/core": "3.649.0",
26
- "@aws-sdk/credential-provider-node": "3.649.0",
26
+ "@aws-sdk/credential-provider-node": "3.650.0",
27
27
  "@aws-sdk/middleware-host-header": "3.649.0",
28
28
  "@aws-sdk/middleware-logger": "3.649.0",
29
29
  "@aws-sdk/middleware-recursion-detection": "3.649.0",