cdktn 0.25.0-pre.20 → 0.25.0-pre.22
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.
- package/.jsii +840 -21
- package/lib/annotations.js +1 -1
- package/lib/app.js +1 -1
- package/lib/aspect.js +1 -1
- package/lib/asset-hash.d.ts +75 -0
- package/lib/asset-hash.js +129 -0
- package/lib/assets.d.ts +168 -0
- package/lib/assets.js +128 -0
- package/lib/backends/azurerm-backend.js +2 -2
- package/lib/backends/cloud-backend.js +4 -4
- package/lib/backends/consul-backend.js +2 -2
- package/lib/backends/cos-backend.js +2 -2
- package/lib/backends/gcs-backend.js +2 -2
- package/lib/backends/http-backend.js +2 -2
- package/lib/backends/local-backend.js +2 -2
- package/lib/backends/oss-backend.js +2 -2
- package/lib/backends/pg-backend.js +2 -2
- package/lib/backends/remote-backend.js +4 -4
- package/lib/backends/s3-backend.js +2 -2
- package/lib/backends/swift-backend.js +2 -2
- package/lib/complex-computed-list.js +26 -26
- package/lib/errors.d.ts +6 -0
- package/lib/errors.js +24 -3
- package/lib/functions/provider-function.js +1 -1
- package/lib/functions/terraform-functions.generated.js +1 -1
- package/lib/ignore-strategy.d.ts +82 -0
- package/lib/ignore-strategy.js +29 -0
- package/lib/importable-resource.js +1 -1
- package/lib/index.d.ts +3 -0
- package/lib/index.js +4 -1
- package/lib/manifest.js +1 -1
- package/lib/private/fs.d.ts +74 -2
- package/lib/private/fs.js +93 -14
- package/lib/resource.js +1 -1
- package/lib/terraform-asset.d.ts +33 -2
- package/lib/terraform-asset.js +77 -30
- package/lib/terraform-backend.js +1 -1
- package/lib/terraform-count.js +1 -1
- package/lib/terraform-data-resource.js +1 -1
- package/lib/terraform-data-source.js +1 -1
- package/lib/terraform-element.js +1 -1
- package/lib/terraform-ephemeral-resource.js +1 -1
- package/lib/terraform-functions.js +1 -1
- package/lib/terraform-hcl-module.js +1 -1
- package/lib/terraform-iterator.js +5 -5
- package/lib/terraform-local.js +1 -1
- package/lib/terraform-module.js +1 -1
- package/lib/terraform-operators.js +1 -1
- package/lib/terraform-output.js +1 -1
- package/lib/terraform-provider.js +1 -1
- package/lib/terraform-provisioner.js +1 -1
- package/lib/terraform-remote-state.js +1 -1
- package/lib/terraform-resource-targets.js +1 -1
- package/lib/terraform-resource.js +1 -1
- package/lib/terraform-stack.js +1 -1
- package/lib/terraform-variable.js +2 -2
- package/lib/testing/index.js +1 -1
- package/lib/testing/matchers.js +1 -1
- package/lib/tokens/lazy.js +2 -2
- package/lib/tokens/resolvable.js +2 -2
- package/lib/tokens/string-fragments.js +1 -1
- package/lib/tokens/token.js +2 -2
- package/lib/upgrade-id-aspect.js +1 -1
- package/package.json +1 -1
package/.jsii
CHANGED
|
@@ -1408,6 +1408,307 @@
|
|
|
1408
1408
|
],
|
|
1409
1409
|
"symbolId": "src/aspect:Aspects"
|
|
1410
1410
|
},
|
|
1411
|
+
"cdktn.AssetHash": {
|
|
1412
|
+
"assembly": "cdktn",
|
|
1413
|
+
"docs": {
|
|
1414
|
+
"remarks": "Providers that read a local path directly — a Docker build `context`, for\nexample — need a content hash to drive `triggers`, but have no use for a\nstaged copy of the source. `Asset` and `TerraformAsset` always produce a\nstaged copy; this is the identity half without the staging half.",
|
|
1415
|
+
"stability": "experimental",
|
|
1416
|
+
"summary": "Computes a content hash of a file or directory without staging it."
|
|
1417
|
+
},
|
|
1418
|
+
"fqn": "cdktn.AssetHash",
|
|
1419
|
+
"kind": "class",
|
|
1420
|
+
"locationInModule": {
|
|
1421
|
+
"filename": "src/asset-hash.ts",
|
|
1422
|
+
"line": 49
|
|
1423
|
+
},
|
|
1424
|
+
"methods": [
|
|
1425
|
+
{
|
|
1426
|
+
"docs": {
|
|
1427
|
+
"remarks": "This is a hash of the source tree, and it does not depend on how the\nsource is later packaged. `hashPath` is always called with `archive`\nunset, so directory records are part of the digest; the hash of a given\ntree is therefore the same whether it is later copied, zipped, or packed\nby a custom `IAssetPackaging` such as `tar.bz2`.\n\nA consequence worth stating: this does not equal\n`TerraformAsset(dir, { type: ARCHIVE }).assetHash` for a directory with\nsubdirectories. That asset frames its hash to the emitted ZIP, which has\nno directory entries (see #323), so directory-only changes move it and\nnot this. It equals a `FILE` / `DIRECTORY` `TerraformAsset` hash only\nwhen the `canonicalAssetHashes` flag is enabled, since that flag is what\nputs the asset on this same canonical scheme.\n\nA relative `filePath` is resolved against the directory containing\n`cdktf.json`, the same base `TerraformAsset` uses, so both hash the same\nsource regardless of the process working directory. Absolute paths are\nused as-is. Throws if `filePath` is relative and no `cdktf.json` is found\nabove the working directory.",
|
|
1428
|
+
"stability": "experimental",
|
|
1429
|
+
"summary": "Content hash of a file or directory, without staging it."
|
|
1430
|
+
},
|
|
1431
|
+
"locationInModule": {
|
|
1432
|
+
"filename": "src/asset-hash.ts",
|
|
1433
|
+
"line": 75
|
|
1434
|
+
},
|
|
1435
|
+
"name": "of",
|
|
1436
|
+
"parameters": [
|
|
1437
|
+
{
|
|
1438
|
+
"docs": {
|
|
1439
|
+
"summary": "- path to a file or directory to hash."
|
|
1440
|
+
},
|
|
1441
|
+
"name": "filePath",
|
|
1442
|
+
"type": {
|
|
1443
|
+
"primitive": "string"
|
|
1444
|
+
}
|
|
1445
|
+
},
|
|
1446
|
+
{
|
|
1447
|
+
"docs": {
|
|
1448
|
+
"summary": "- see {@link AssetHashOptions}."
|
|
1449
|
+
},
|
|
1450
|
+
"name": "options",
|
|
1451
|
+
"optional": true,
|
|
1452
|
+
"type": {
|
|
1453
|
+
"fqn": "cdktn.AssetHashOptions"
|
|
1454
|
+
}
|
|
1455
|
+
}
|
|
1456
|
+
],
|
|
1457
|
+
"returns": {
|
|
1458
|
+
"type": {
|
|
1459
|
+
"primitive": "string"
|
|
1460
|
+
}
|
|
1461
|
+
},
|
|
1462
|
+
"static": true
|
|
1463
|
+
}
|
|
1464
|
+
],
|
|
1465
|
+
"name": "AssetHash",
|
|
1466
|
+
"symbolId": "src/asset-hash:AssetHash"
|
|
1467
|
+
},
|
|
1468
|
+
"cdktn.AssetHashOptions": {
|
|
1469
|
+
"assembly": "cdktn",
|
|
1470
|
+
"datatype": true,
|
|
1471
|
+
"docs": {
|
|
1472
|
+
"stability": "experimental",
|
|
1473
|
+
"summary": "Options for {@link AssetHash.of}."
|
|
1474
|
+
},
|
|
1475
|
+
"fqn": "cdktn.AssetHashOptions",
|
|
1476
|
+
"kind": "interface",
|
|
1477
|
+
"locationInModule": {
|
|
1478
|
+
"filename": "src/asset-hash.ts",
|
|
1479
|
+
"line": 15
|
|
1480
|
+
},
|
|
1481
|
+
"name": "AssetHashOptions",
|
|
1482
|
+
"properties": [
|
|
1483
|
+
{
|
|
1484
|
+
"abstract": true,
|
|
1485
|
+
"docs": {
|
|
1486
|
+
"default": "- nothing is excluded",
|
|
1487
|
+
"remarks": "Cannot be combined with\n`ignoreStrategy`, which replaces this matcher rather than layering on\ntop of it.",
|
|
1488
|
+
"stability": "experimental",
|
|
1489
|
+
"summary": "Paths to exclude, relative to the hashed path."
|
|
1490
|
+
},
|
|
1491
|
+
"immutable": true,
|
|
1492
|
+
"locationInModule": {
|
|
1493
|
+
"filename": "src/asset-hash.ts",
|
|
1494
|
+
"line": 23
|
|
1495
|
+
},
|
|
1496
|
+
"name": "exclude",
|
|
1497
|
+
"optional": true,
|
|
1498
|
+
"type": {
|
|
1499
|
+
"collection": {
|
|
1500
|
+
"elementtype": {
|
|
1501
|
+
"primitive": "string"
|
|
1502
|
+
},
|
|
1503
|
+
"kind": "array"
|
|
1504
|
+
}
|
|
1505
|
+
}
|
|
1506
|
+
},
|
|
1507
|
+
{
|
|
1508
|
+
"abstract": true,
|
|
1509
|
+
"docs": {
|
|
1510
|
+
"default": "- no extra data",
|
|
1511
|
+
"stability": "experimental",
|
|
1512
|
+
"summary": "Extra information to fold into the hash."
|
|
1513
|
+
},
|
|
1514
|
+
"immutable": true,
|
|
1515
|
+
"locationInModule": {
|
|
1516
|
+
"filename": "src/asset-hash.ts",
|
|
1517
|
+
"line": 30
|
|
1518
|
+
},
|
|
1519
|
+
"name": "extraHash",
|
|
1520
|
+
"optional": true,
|
|
1521
|
+
"type": {
|
|
1522
|
+
"primitive": "string"
|
|
1523
|
+
}
|
|
1524
|
+
},
|
|
1525
|
+
{
|
|
1526
|
+
"abstract": true,
|
|
1527
|
+
"docs": {
|
|
1528
|
+
"default": "- `exclude` is used with the built-in matcher",
|
|
1529
|
+
"stability": "experimental",
|
|
1530
|
+
"summary": "Exclusion matching, for callers that need `.gitignore` / `.dockerignore` parity rather than the built-in exact-path / suffix / directory matcher."
|
|
1531
|
+
},
|
|
1532
|
+
"immutable": true,
|
|
1533
|
+
"locationInModule": {
|
|
1534
|
+
"filename": "src/asset-hash.ts",
|
|
1535
|
+
"line": 38
|
|
1536
|
+
},
|
|
1537
|
+
"name": "ignoreStrategy",
|
|
1538
|
+
"optional": true,
|
|
1539
|
+
"type": {
|
|
1540
|
+
"fqn": "cdktn.IIgnoreStrategy"
|
|
1541
|
+
}
|
|
1542
|
+
}
|
|
1543
|
+
],
|
|
1544
|
+
"symbolId": "src/asset-hash:AssetHashOptions"
|
|
1545
|
+
},
|
|
1546
|
+
"cdktn.AssetHashType": {
|
|
1547
|
+
"assembly": "cdktn",
|
|
1548
|
+
"docs": {
|
|
1549
|
+
"remarks": "NOTE: the hash is used in order to identify a specific revision of the asset, and\nused for optimizing and caching deployment activities related to this asset such as\npackaging, uploading to cloud storage, etc.",
|
|
1550
|
+
"stability": "experimental",
|
|
1551
|
+
"summary": "The type of asset hash."
|
|
1552
|
+
},
|
|
1553
|
+
"fqn": "cdktn.AssetHashType",
|
|
1554
|
+
"kind": "enum",
|
|
1555
|
+
"locationInModule": {
|
|
1556
|
+
"filename": "src/assets.ts",
|
|
1557
|
+
"line": 59
|
|
1558
|
+
},
|
|
1559
|
+
"members": [
|
|
1560
|
+
{
|
|
1561
|
+
"docs": {
|
|
1562
|
+
"remarks": "Use `SOURCE` when the content of the asset changes frequently or when\nyou want to track changes to the source files directly.",
|
|
1563
|
+
"stability": "experimental",
|
|
1564
|
+
"summary": "Based on the content of the source path."
|
|
1565
|
+
},
|
|
1566
|
+
"name": "SOURCE"
|
|
1567
|
+
},
|
|
1568
|
+
{
|
|
1569
|
+
"docs": {
|
|
1570
|
+
"remarks": "Use `OUTPUT` when the source of the asset is a top level folder containing\ncode and/or dependencies that are not directly linked to the asset.",
|
|
1571
|
+
"stability": "experimental",
|
|
1572
|
+
"summary": "Based on the content of the bundling output."
|
|
1573
|
+
},
|
|
1574
|
+
"name": "OUTPUT"
|
|
1575
|
+
},
|
|
1576
|
+
{
|
|
1577
|
+
"docs": {
|
|
1578
|
+
"stability": "experimental",
|
|
1579
|
+
"summary": "Use a custom hash."
|
|
1580
|
+
},
|
|
1581
|
+
"name": "CUSTOM"
|
|
1582
|
+
}
|
|
1583
|
+
],
|
|
1584
|
+
"name": "AssetHashType",
|
|
1585
|
+
"symbolId": "src/assets:AssetHashType"
|
|
1586
|
+
},
|
|
1587
|
+
"cdktn.AssetOptions": {
|
|
1588
|
+
"assembly": "cdktn",
|
|
1589
|
+
"datatype": true,
|
|
1590
|
+
"docs": {
|
|
1591
|
+
"stability": "experimental",
|
|
1592
|
+
"summary": "Asset hash options."
|
|
1593
|
+
},
|
|
1594
|
+
"fqn": "cdktn.AssetOptions",
|
|
1595
|
+
"kind": "interface",
|
|
1596
|
+
"locationInModule": {
|
|
1597
|
+
"filename": "src/assets.ts",
|
|
1598
|
+
"line": 23
|
|
1599
|
+
},
|
|
1600
|
+
"name": "AssetOptions",
|
|
1601
|
+
"properties": [
|
|
1602
|
+
{
|
|
1603
|
+
"abstract": true,
|
|
1604
|
+
"docs": {
|
|
1605
|
+
"default": "- based on `assetHashType`",
|
|
1606
|
+
"remarks": "If `assetHashType` is set it must\nbe set to `AssetHashType.CUSTOM`. The value is used verbatim as the asset\nhash, and because it names the staged asset file it may only contain\nletters, digits, `_`, `.` and `-`.\n\nNOTE: the hash is used in order to identify a specific revision of the asset, and\nused for optimizing and caching deployment activities related to this asset such as\npackaging, uploading to cloud storage, etc. If you chose to customize the hash, you will\nneed to make sure it is updated every time the asset changes, or otherwise it is\npossible that some deployments will not be invalidated.",
|
|
1607
|
+
"stability": "experimental",
|
|
1608
|
+
"summary": "Specify a custom hash for this asset."
|
|
1609
|
+
},
|
|
1610
|
+
"immutable": true,
|
|
1611
|
+
"locationInModule": {
|
|
1612
|
+
"filename": "src/assets.ts",
|
|
1613
|
+
"line": 38
|
|
1614
|
+
},
|
|
1615
|
+
"name": "assetHash",
|
|
1616
|
+
"optional": true,
|
|
1617
|
+
"type": {
|
|
1618
|
+
"primitive": "string"
|
|
1619
|
+
}
|
|
1620
|
+
},
|
|
1621
|
+
{
|
|
1622
|
+
"abstract": true,
|
|
1623
|
+
"docs": {
|
|
1624
|
+
"default": "- the default is `AssetHashType.SOURCE`, but if `assetHash` is\nexplicitly specified this value defaults to `AssetHashType.CUSTOM`.",
|
|
1625
|
+
"remarks": "If `assetHash` is configured, this option must be `undefined` or\n`AssetHashType.CUSTOM`.",
|
|
1626
|
+
"stability": "experimental",
|
|
1627
|
+
"summary": "Specifies the type of hash to calculate for this asset."
|
|
1628
|
+
},
|
|
1629
|
+
"immutable": true,
|
|
1630
|
+
"locationInModule": {
|
|
1631
|
+
"filename": "src/assets.ts",
|
|
1632
|
+
"line": 49
|
|
1633
|
+
},
|
|
1634
|
+
"name": "assetHashType",
|
|
1635
|
+
"optional": true,
|
|
1636
|
+
"type": {
|
|
1637
|
+
"fqn": "cdktn.AssetHashType"
|
|
1638
|
+
}
|
|
1639
|
+
}
|
|
1640
|
+
],
|
|
1641
|
+
"symbolId": "src/assets:AssetOptions"
|
|
1642
|
+
},
|
|
1643
|
+
"cdktn.AssetPackaging": {
|
|
1644
|
+
"assembly": "cdktn",
|
|
1645
|
+
"docs": {
|
|
1646
|
+
"remarks": "Custom formats implement `IAssetPackaging`\ndirectly rather than extending this class.",
|
|
1647
|
+
"stability": "experimental",
|
|
1648
|
+
"summary": "Built-in packaging strategies."
|
|
1649
|
+
},
|
|
1650
|
+
"fqn": "cdktn.AssetPackaging",
|
|
1651
|
+
"kind": "class",
|
|
1652
|
+
"locationInModule": {
|
|
1653
|
+
"filename": "src/assets.ts",
|
|
1654
|
+
"line": 193
|
|
1655
|
+
},
|
|
1656
|
+
"name": "AssetPackaging",
|
|
1657
|
+
"properties": [
|
|
1658
|
+
{
|
|
1659
|
+
"const": true,
|
|
1660
|
+
"docs": {
|
|
1661
|
+
"stability": "experimental",
|
|
1662
|
+
"summary": "Copy a directory tree as-is, without archiving."
|
|
1663
|
+
},
|
|
1664
|
+
"immutable": true,
|
|
1665
|
+
"locationInModule": {
|
|
1666
|
+
"filename": "src/assets.ts",
|
|
1667
|
+
"line": 202
|
|
1668
|
+
},
|
|
1669
|
+
"name": "DIRECTORY",
|
|
1670
|
+
"static": true,
|
|
1671
|
+
"type": {
|
|
1672
|
+
"fqn": "cdktn.IAssetPackaging"
|
|
1673
|
+
}
|
|
1674
|
+
},
|
|
1675
|
+
{
|
|
1676
|
+
"const": true,
|
|
1677
|
+
"docs": {
|
|
1678
|
+
"stability": "experimental",
|
|
1679
|
+
"summary": "Copy a single file as-is."
|
|
1680
|
+
},
|
|
1681
|
+
"immutable": true,
|
|
1682
|
+
"locationInModule": {
|
|
1683
|
+
"filename": "src/assets.ts",
|
|
1684
|
+
"line": 197
|
|
1685
|
+
},
|
|
1686
|
+
"name": "FILE",
|
|
1687
|
+
"static": true,
|
|
1688
|
+
"type": {
|
|
1689
|
+
"fqn": "cdktn.IAssetPackaging"
|
|
1690
|
+
}
|
|
1691
|
+
},
|
|
1692
|
+
{
|
|
1693
|
+
"const": true,
|
|
1694
|
+
"docs": {
|
|
1695
|
+
"stability": "experimental",
|
|
1696
|
+
"summary": "Archive a directory tree into a single zip file."
|
|
1697
|
+
},
|
|
1698
|
+
"immutable": true,
|
|
1699
|
+
"locationInModule": {
|
|
1700
|
+
"filename": "src/assets.ts",
|
|
1701
|
+
"line": 207
|
|
1702
|
+
},
|
|
1703
|
+
"name": "ZIP",
|
|
1704
|
+
"static": true,
|
|
1705
|
+
"type": {
|
|
1706
|
+
"fqn": "cdktn.IAssetPackaging"
|
|
1707
|
+
}
|
|
1708
|
+
}
|
|
1709
|
+
],
|
|
1710
|
+
"symbolId": "src/assets:AssetPackaging"
|
|
1711
|
+
},
|
|
1411
1712
|
"cdktn.AssetType": {
|
|
1412
1713
|
"assembly": "cdktn",
|
|
1413
1714
|
"docs": {
|
|
@@ -1417,7 +1718,7 @@
|
|
|
1417
1718
|
"kind": "enum",
|
|
1418
1719
|
"locationInModule": {
|
|
1419
1720
|
"filename": "src/terraform-asset.ts",
|
|
1420
|
-
"line":
|
|
1721
|
+
"line": 49
|
|
1421
1722
|
},
|
|
1422
1723
|
"members": [
|
|
1423
1724
|
{
|
|
@@ -6787,6 +7088,111 @@
|
|
|
6787
7088
|
],
|
|
6788
7089
|
"symbolId": "src/tokens/token:EncodingOptions"
|
|
6789
7090
|
},
|
|
7091
|
+
"cdktn.ExcludeIgnoreStrategy": {
|
|
7092
|
+
"assembly": "cdktn",
|
|
7093
|
+
"docs": {
|
|
7094
|
+
"stability": "experimental",
|
|
7095
|
+
"summary": "The default ignore strategy: exact paths, `*.ext` suffixes, and directories (with everything inside them)."
|
|
7096
|
+
},
|
|
7097
|
+
"fqn": "cdktn.ExcludeIgnoreStrategy",
|
|
7098
|
+
"initializer": {
|
|
7099
|
+
"docs": {
|
|
7100
|
+
"stability": "experimental"
|
|
7101
|
+
},
|
|
7102
|
+
"locationInModule": {
|
|
7103
|
+
"filename": "src/ignore-strategy.ts",
|
|
7104
|
+
"line": 94
|
|
7105
|
+
},
|
|
7106
|
+
"parameters": [
|
|
7107
|
+
{
|
|
7108
|
+
"name": "exclude",
|
|
7109
|
+
"type": {
|
|
7110
|
+
"collection": {
|
|
7111
|
+
"elementtype": {
|
|
7112
|
+
"primitive": "string"
|
|
7113
|
+
},
|
|
7114
|
+
"kind": "array"
|
|
7115
|
+
}
|
|
7116
|
+
}
|
|
7117
|
+
}
|
|
7118
|
+
]
|
|
7119
|
+
},
|
|
7120
|
+
"interfaces": [
|
|
7121
|
+
"cdktn.IIgnoreStrategy"
|
|
7122
|
+
],
|
|
7123
|
+
"kind": "class",
|
|
7124
|
+
"locationInModule": {
|
|
7125
|
+
"filename": "src/ignore-strategy.ts",
|
|
7126
|
+
"line": 85
|
|
7127
|
+
},
|
|
7128
|
+
"methods": [
|
|
7129
|
+
{
|
|
7130
|
+
"docs": {
|
|
7131
|
+
"stability": "experimental",
|
|
7132
|
+
"summary": "Whether the given entry should be excluded."
|
|
7133
|
+
},
|
|
7134
|
+
"locationInModule": {
|
|
7135
|
+
"filename": "src/ignore-strategy.ts",
|
|
7136
|
+
"line": 99
|
|
7137
|
+
},
|
|
7138
|
+
"name": "ignores",
|
|
7139
|
+
"overrides": "cdktn.IIgnoreStrategy",
|
|
7140
|
+
"parameters": [
|
|
7141
|
+
{
|
|
7142
|
+
"name": "query",
|
|
7143
|
+
"type": {
|
|
7144
|
+
"fqn": "cdktn.IgnoreQuery"
|
|
7145
|
+
}
|
|
7146
|
+
}
|
|
7147
|
+
],
|
|
7148
|
+
"returns": {
|
|
7149
|
+
"type": {
|
|
7150
|
+
"primitive": "boolean"
|
|
7151
|
+
}
|
|
7152
|
+
}
|
|
7153
|
+
}
|
|
7154
|
+
],
|
|
7155
|
+
"name": "ExcludeIgnoreStrategy",
|
|
7156
|
+
"properties": [
|
|
7157
|
+
{
|
|
7158
|
+
"docs": {
|
|
7159
|
+
"remarks": "Two strategies that return the same\n`cacheKey` must exclude the same paths.\n\nCallers such as `AssetStaging`'s result cache key on a JSON-serializable\nrepresentation of their inputs, which a strategy instance is not. Omit\nthis when the strategy's behavior can't be summarized this way; the\ncaller then has to treat every call as uncacheable.",
|
|
7160
|
+
"stability": "experimental",
|
|
7161
|
+
"summary": "A value identifying this strategy's exclusion behavior, suitable for folding into a cache key."
|
|
7162
|
+
},
|
|
7163
|
+
"immutable": true,
|
|
7164
|
+
"locationInModule": {
|
|
7165
|
+
"filename": "src/ignore-strategy.ts",
|
|
7166
|
+
"line": 88
|
|
7167
|
+
},
|
|
7168
|
+
"name": "cacheKey",
|
|
7169
|
+
"optional": true,
|
|
7170
|
+
"overrides": "cdktn.IIgnoreStrategy",
|
|
7171
|
+
"type": {
|
|
7172
|
+
"primitive": "string"
|
|
7173
|
+
}
|
|
7174
|
+
},
|
|
7175
|
+
{
|
|
7176
|
+
"docs": {
|
|
7177
|
+
"remarks": "When `true` (the default), the walkers stop descending as soon as a\ndirectory is excluded — cheaper, and correct for a strategy whose\npatterns never re-include a path below an excluded parent.\n\nA strategy with negation patterns must set this to `false`:\n`.gitignore` / `.dockerignore` allow `node_modules` followed by\n`!node_modules/keep`, which is only reachable if the walk descends into\nthe excluded `node_modules` and asks about `node_modules/keep`. The\nexcluded directory entry itself is still omitted; only the descent\nchanges. Opting out costs a full walk of excluded subtrees.",
|
|
7178
|
+
"stability": "experimental",
|
|
7179
|
+
"summary": "Whether excluding a directory also excludes everything beneath it."
|
|
7180
|
+
},
|
|
7181
|
+
"immutable": true,
|
|
7182
|
+
"locationInModule": {
|
|
7183
|
+
"filename": "src/ignore-strategy.ts",
|
|
7184
|
+
"line": 92
|
|
7185
|
+
},
|
|
7186
|
+
"name": "pruneExcludedDirectories",
|
|
7187
|
+
"optional": true,
|
|
7188
|
+
"overrides": "cdktn.IIgnoreStrategy",
|
|
7189
|
+
"type": {
|
|
7190
|
+
"primitive": "boolean"
|
|
7191
|
+
}
|
|
7192
|
+
}
|
|
7193
|
+
],
|
|
7194
|
+
"symbolId": "src/ignore-strategy:ExcludeIgnoreStrategy"
|
|
7195
|
+
},
|
|
6790
7196
|
"cdktn.FileProvisioner": {
|
|
6791
7197
|
"assembly": "cdktn",
|
|
6792
7198
|
"datatype": true,
|
|
@@ -11401,8 +11807,118 @@
|
|
|
11401
11807
|
]
|
|
11402
11808
|
}
|
|
11403
11809
|
],
|
|
11404
|
-
"name": "IAspect",
|
|
11405
|
-
"symbolId": "src/aspect:IAspect"
|
|
11810
|
+
"name": "IAspect",
|
|
11811
|
+
"symbolId": "src/aspect:IAspect"
|
|
11812
|
+
},
|
|
11813
|
+
"cdktn.IAsset": {
|
|
11814
|
+
"assembly": "cdktn",
|
|
11815
|
+
"docs": {
|
|
11816
|
+
"stability": "experimental",
|
|
11817
|
+
"summary": "Common interface for all assets."
|
|
11818
|
+
},
|
|
11819
|
+
"fqn": "cdktn.IAsset",
|
|
11820
|
+
"kind": "interface",
|
|
11821
|
+
"locationInModule": {
|
|
11822
|
+
"filename": "src/assets.ts",
|
|
11823
|
+
"line": 11
|
|
11824
|
+
},
|
|
11825
|
+
"name": "IAsset",
|
|
11826
|
+
"properties": [
|
|
11827
|
+
{
|
|
11828
|
+
"abstract": true,
|
|
11829
|
+
"docs": {
|
|
11830
|
+
"remarks": "As this is a plain string, it\ncan be used in construct IDs in order to enforce creation of a new resource when the content\nhash has changed.",
|
|
11831
|
+
"stability": "experimental",
|
|
11832
|
+
"summary": "A hash of this asset, which is available at construction time."
|
|
11833
|
+
},
|
|
11834
|
+
"immutable": true,
|
|
11835
|
+
"locationInModule": {
|
|
11836
|
+
"filename": "src/assets.ts",
|
|
11837
|
+
"line": 17
|
|
11838
|
+
},
|
|
11839
|
+
"name": "assetHash",
|
|
11840
|
+
"type": {
|
|
11841
|
+
"primitive": "string"
|
|
11842
|
+
}
|
|
11843
|
+
}
|
|
11844
|
+
],
|
|
11845
|
+
"symbolId": "src/assets:IAsset"
|
|
11846
|
+
},
|
|
11847
|
+
"cdktn.IAssetPackaging": {
|
|
11848
|
+
"assembly": "cdktn",
|
|
11849
|
+
"docs": {
|
|
11850
|
+
"remarks": "Packaging answers two independent questions: how the artifact is produced\n(copy, zip, tar.gz, ...) and whether the result is a directory or a single\nfile. A closed enum can only ever answer the second one, so it is an\ninterface rather than an enum — custom formats (e.g. `tar.bz2`) need no\ncore change.",
|
|
11851
|
+
"stability": "experimental",
|
|
11852
|
+
"summary": "How a staged asset is produced and what shape it takes on disk."
|
|
11853
|
+
},
|
|
11854
|
+
"fqn": "cdktn.IAssetPackaging",
|
|
11855
|
+
"kind": "interface",
|
|
11856
|
+
"locationInModule": {
|
|
11857
|
+
"filename": "src/assets.ts",
|
|
11858
|
+
"line": 91
|
|
11859
|
+
},
|
|
11860
|
+
"methods": [
|
|
11861
|
+
{
|
|
11862
|
+
"abstract": true,
|
|
11863
|
+
"docs": {
|
|
11864
|
+
"stability": "experimental",
|
|
11865
|
+
"summary": "Perform the staging transformation, writing the packaged result to `options.target`."
|
|
11866
|
+
},
|
|
11867
|
+
"locationInModule": {
|
|
11868
|
+
"filename": "src/assets.ts",
|
|
11869
|
+
"line": 110
|
|
11870
|
+
},
|
|
11871
|
+
"name": "pack",
|
|
11872
|
+
"parameters": [
|
|
11873
|
+
{
|
|
11874
|
+
"docs": {
|
|
11875
|
+
"summary": "- see {@link PackOptions}."
|
|
11876
|
+
},
|
|
11877
|
+
"name": "options",
|
|
11878
|
+
"type": {
|
|
11879
|
+
"fqn": "cdktn.PackOptions"
|
|
11880
|
+
}
|
|
11881
|
+
}
|
|
11882
|
+
]
|
|
11883
|
+
}
|
|
11884
|
+
],
|
|
11885
|
+
"name": "IAssetPackaging",
|
|
11886
|
+
"properties": [
|
|
11887
|
+
{
|
|
11888
|
+
"abstract": true,
|
|
11889
|
+
"docs": {
|
|
11890
|
+
"stability": "experimental",
|
|
11891
|
+
"summary": "Appended to the staged artifact name, e.g. \".zip\", \"\", \".tar.bz2\"."
|
|
11892
|
+
},
|
|
11893
|
+
"immutable": true,
|
|
11894
|
+
"locationInModule": {
|
|
11895
|
+
"filename": "src/assets.ts",
|
|
11896
|
+
"line": 95
|
|
11897
|
+
},
|
|
11898
|
+
"name": "extension",
|
|
11899
|
+
"type": {
|
|
11900
|
+
"primitive": "string"
|
|
11901
|
+
}
|
|
11902
|
+
},
|
|
11903
|
+
{
|
|
11904
|
+
"abstract": true,
|
|
11905
|
+
"docs": {
|
|
11906
|
+
"remarks": "Publishers branch on this to decide whether they upload one object or\nsync a tree.",
|
|
11907
|
+
"stability": "experimental",
|
|
11908
|
+
"summary": "Whether the staged result is a directory rather than a single file."
|
|
11909
|
+
},
|
|
11910
|
+
"immutable": true,
|
|
11911
|
+
"locationInModule": {
|
|
11912
|
+
"filename": "src/assets.ts",
|
|
11913
|
+
"line": 103
|
|
11914
|
+
},
|
|
11915
|
+
"name": "producesDirectory",
|
|
11916
|
+
"type": {
|
|
11917
|
+
"primitive": "boolean"
|
|
11918
|
+
}
|
|
11919
|
+
}
|
|
11920
|
+
],
|
|
11921
|
+
"symbolId": "src/assets:IAssetPackaging"
|
|
11406
11922
|
},
|
|
11407
11923
|
"cdktn.IFragmentConcatenator": {
|
|
11408
11924
|
"assembly": "cdktn",
|
|
@@ -11453,6 +11969,92 @@
|
|
|
11453
11969
|
"name": "IFragmentConcatenator",
|
|
11454
11970
|
"symbolId": "src/tokens/resolvable:IFragmentConcatenator"
|
|
11455
11971
|
},
|
|
11972
|
+
"cdktn.IIgnoreStrategy": {
|
|
11973
|
+
"assembly": "cdktn",
|
|
11974
|
+
"docs": {
|
|
11975
|
+
"remarks": "Core ships only the exact-path / `*.ext` / directory matcher used by\n`exclude` today (`ExcludeIgnoreStrategy`). Full glob, `.gitignore`, and\n`.dockerignore` parity can be implemented against this interface without\ncore taking on a glob parser.",
|
|
11976
|
+
"stability": "experimental",
|
|
11977
|
+
"summary": "Decides whether a path relative to an asset root is excluded from staging and hashing."
|
|
11978
|
+
},
|
|
11979
|
+
"fqn": "cdktn.IIgnoreStrategy",
|
|
11980
|
+
"kind": "interface",
|
|
11981
|
+
"locationInModule": {
|
|
11982
|
+
"filename": "src/ignore-strategy.ts",
|
|
11983
|
+
"line": 41
|
|
11984
|
+
},
|
|
11985
|
+
"methods": [
|
|
11986
|
+
{
|
|
11987
|
+
"abstract": true,
|
|
11988
|
+
"docs": {
|
|
11989
|
+
"stability": "experimental",
|
|
11990
|
+
"summary": "Whether the given entry should be excluded."
|
|
11991
|
+
},
|
|
11992
|
+
"locationInModule": {
|
|
11993
|
+
"filename": "src/ignore-strategy.ts",
|
|
11994
|
+
"line": 46
|
|
11995
|
+
},
|
|
11996
|
+
"name": "ignores",
|
|
11997
|
+
"parameters": [
|
|
11998
|
+
{
|
|
11999
|
+
"docs": {
|
|
12000
|
+
"summary": "- the entry under consideration, see {@link IgnoreQuery}."
|
|
12001
|
+
},
|
|
12002
|
+
"name": "query",
|
|
12003
|
+
"type": {
|
|
12004
|
+
"fqn": "cdktn.IgnoreQuery"
|
|
12005
|
+
}
|
|
12006
|
+
}
|
|
12007
|
+
],
|
|
12008
|
+
"returns": {
|
|
12009
|
+
"type": {
|
|
12010
|
+
"primitive": "boolean"
|
|
12011
|
+
}
|
|
12012
|
+
}
|
|
12013
|
+
}
|
|
12014
|
+
],
|
|
12015
|
+
"name": "IIgnoreStrategy",
|
|
12016
|
+
"properties": [
|
|
12017
|
+
{
|
|
12018
|
+
"abstract": true,
|
|
12019
|
+
"docs": {
|
|
12020
|
+
"default": "- this strategy cannot be represented in a cache key",
|
|
12021
|
+
"remarks": "Two strategies that return the same\n`cacheKey` must exclude the same paths.\n\nCallers such as `AssetStaging`'s result cache key on a JSON-serializable\nrepresentation of their inputs, which a strategy instance is not. Omit\nthis when the strategy's behavior can't be summarized this way; the\ncaller then has to treat every call as uncacheable.",
|
|
12022
|
+
"stability": "experimental",
|
|
12023
|
+
"summary": "A value identifying this strategy's exclusion behavior, suitable for folding into a cache key."
|
|
12024
|
+
},
|
|
12025
|
+
"immutable": true,
|
|
12026
|
+
"locationInModule": {
|
|
12027
|
+
"filename": "src/ignore-strategy.ts",
|
|
12028
|
+
"line": 78
|
|
12029
|
+
},
|
|
12030
|
+
"name": "cacheKey",
|
|
12031
|
+
"optional": true,
|
|
12032
|
+
"type": {
|
|
12033
|
+
"primitive": "string"
|
|
12034
|
+
}
|
|
12035
|
+
},
|
|
12036
|
+
{
|
|
12037
|
+
"abstract": true,
|
|
12038
|
+
"docs": {
|
|
12039
|
+
"default": "true",
|
|
12040
|
+
"remarks": "When `true` (the default), the walkers stop descending as soon as a\ndirectory is excluded — cheaper, and correct for a strategy whose\npatterns never re-include a path below an excluded parent.\n\nA strategy with negation patterns must set this to `false`:\n`.gitignore` / `.dockerignore` allow `node_modules` followed by\n`!node_modules/keep`, which is only reachable if the walk descends into\nthe excluded `node_modules` and asks about `node_modules/keep`. The\nexcluded directory entry itself is still omitted; only the descent\nchanges. Opting out costs a full walk of excluded subtrees.",
|
|
12041
|
+
"stability": "experimental",
|
|
12042
|
+
"summary": "Whether excluding a directory also excludes everything beneath it."
|
|
12043
|
+
},
|
|
12044
|
+
"immutable": true,
|
|
12045
|
+
"locationInModule": {
|
|
12046
|
+
"filename": "src/ignore-strategy.ts",
|
|
12047
|
+
"line": 64
|
|
12048
|
+
},
|
|
12049
|
+
"name": "pruneExcludedDirectories",
|
|
12050
|
+
"optional": true,
|
|
12051
|
+
"type": {
|
|
12052
|
+
"primitive": "boolean"
|
|
12053
|
+
}
|
|
12054
|
+
}
|
|
12055
|
+
],
|
|
12056
|
+
"symbolId": "src/ignore-strategy:IIgnoreStrategy"
|
|
12057
|
+
},
|
|
11456
12058
|
"cdktn.IImportableConfig": {
|
|
11457
12059
|
"assembly": "cdktn",
|
|
11458
12060
|
"docs": {
|
|
@@ -12879,6 +13481,58 @@
|
|
|
12879
13481
|
"name": "ITokenResolver",
|
|
12880
13482
|
"symbolId": "src/tokens/resolvable:ITokenResolver"
|
|
12881
13483
|
},
|
|
13484
|
+
"cdktn.IgnoreQuery": {
|
|
13485
|
+
"assembly": "cdktn",
|
|
13486
|
+
"datatype": true,
|
|
13487
|
+
"docs": {
|
|
13488
|
+
"remarks": "A struct rather than a positional `relativePath` string so the shape can\nevolve. `isDirectory` is carried from the outset because `.gitignore` /\n`.dockerignore` semantics turn on it: a `foo/` pattern matches a\ndirectory but not a file named `foo`, and a matcher cannot recover\nthat distinction from the path text alone.",
|
|
13489
|
+
"stability": "experimental",
|
|
13490
|
+
"summary": "A single entry presented to an {@link IIgnoreStrategy}."
|
|
13491
|
+
},
|
|
13492
|
+
"fqn": "cdktn.IgnoreQuery",
|
|
13493
|
+
"kind": "interface",
|
|
13494
|
+
"locationInModule": {
|
|
13495
|
+
"filename": "src/ignore-strategy.ts",
|
|
13496
|
+
"line": 14
|
|
13497
|
+
},
|
|
13498
|
+
"name": "IgnoreQuery",
|
|
13499
|
+
"properties": [
|
|
13500
|
+
{
|
|
13501
|
+
"abstract": true,
|
|
13502
|
+
"docs": {
|
|
13503
|
+
"remarks": "The tree walkers set this from `lstat`, so a strategy can honor\ndirectory-only patterns without stat-ing the path itself (which it has\nno root to resolve against). Excluding a directory also excludes\neverything below it, since the walkers stop descending once a directory\nis excluded.",
|
|
13504
|
+
"stability": "experimental",
|
|
13505
|
+
"summary": "Whether this entry is a directory rather than a file or symlink."
|
|
13506
|
+
},
|
|
13507
|
+
"immutable": true,
|
|
13508
|
+
"locationInModule": {
|
|
13509
|
+
"filename": "src/ignore-strategy.ts",
|
|
13510
|
+
"line": 29
|
|
13511
|
+
},
|
|
13512
|
+
"name": "isDirectory",
|
|
13513
|
+
"type": {
|
|
13514
|
+
"primitive": "boolean"
|
|
13515
|
+
}
|
|
13516
|
+
},
|
|
13517
|
+
{
|
|
13518
|
+
"abstract": true,
|
|
13519
|
+
"docs": {
|
|
13520
|
+
"stability": "experimental",
|
|
13521
|
+
"summary": "`/`-separated path relative to the asset root."
|
|
13522
|
+
},
|
|
13523
|
+
"immutable": true,
|
|
13524
|
+
"locationInModule": {
|
|
13525
|
+
"filename": "src/ignore-strategy.ts",
|
|
13526
|
+
"line": 18
|
|
13527
|
+
},
|
|
13528
|
+
"name": "relativePath",
|
|
13529
|
+
"type": {
|
|
13530
|
+
"primitive": "string"
|
|
13531
|
+
}
|
|
13532
|
+
}
|
|
13533
|
+
],
|
|
13534
|
+
"symbolId": "src/ignore-strategy:IgnoreQuery"
|
|
13535
|
+
},
|
|
12882
13536
|
"cdktn.ImportableResource": {
|
|
12883
13537
|
"assembly": "cdktn",
|
|
12884
13538
|
"base": "cdktn.TerraformElement",
|
|
@@ -16374,6 +17028,76 @@
|
|
|
16374
17028
|
],
|
|
16375
17029
|
"symbolId": "src/backends/oss-backend:OssBackendConfig"
|
|
16376
17030
|
},
|
|
17031
|
+
"cdktn.PackOptions": {
|
|
17032
|
+
"assembly": "cdktn",
|
|
17033
|
+
"datatype": true,
|
|
17034
|
+
"docs": {
|
|
17035
|
+
"remarks": "A struct rather than positional parameters: adding a struct field is\nadditive, adding a method parameter is not, and `pack` is called through\nJSII where that distinction is a breaking-change boundary.",
|
|
17036
|
+
"stability": "experimental",
|
|
17037
|
+
"summary": "Options for {@link IAssetPackaging.pack}."
|
|
17038
|
+
},
|
|
17039
|
+
"fqn": "cdktn.PackOptions",
|
|
17040
|
+
"kind": "interface",
|
|
17041
|
+
"locationInModule": {
|
|
17042
|
+
"filename": "src/assets.ts",
|
|
17043
|
+
"line": 120
|
|
17044
|
+
},
|
|
17045
|
+
"name": "PackOptions",
|
|
17046
|
+
"properties": [
|
|
17047
|
+
{
|
|
17048
|
+
"abstract": true,
|
|
17049
|
+
"docs": {
|
|
17050
|
+
"stability": "experimental",
|
|
17051
|
+
"summary": "Path to the resolved (already bundled, if applicable) source."
|
|
17052
|
+
},
|
|
17053
|
+
"immutable": true,
|
|
17054
|
+
"locationInModule": {
|
|
17055
|
+
"filename": "src/assets.ts",
|
|
17056
|
+
"line": 124
|
|
17057
|
+
},
|
|
17058
|
+
"name": "source",
|
|
17059
|
+
"type": {
|
|
17060
|
+
"primitive": "string"
|
|
17061
|
+
}
|
|
17062
|
+
},
|
|
17063
|
+
{
|
|
17064
|
+
"abstract": true,
|
|
17065
|
+
"docs": {
|
|
17066
|
+
"stability": "experimental",
|
|
17067
|
+
"summary": "Path the packaged result should be written to."
|
|
17068
|
+
},
|
|
17069
|
+
"immutable": true,
|
|
17070
|
+
"locationInModule": {
|
|
17071
|
+
"filename": "src/assets.ts",
|
|
17072
|
+
"line": 129
|
|
17073
|
+
},
|
|
17074
|
+
"name": "target",
|
|
17075
|
+
"type": {
|
|
17076
|
+
"primitive": "string"
|
|
17077
|
+
}
|
|
17078
|
+
},
|
|
17079
|
+
{
|
|
17080
|
+
"abstract": true,
|
|
17081
|
+
"docs": {
|
|
17082
|
+
"default": "- nothing is excluded",
|
|
17083
|
+
"remarks": "Must match the strategy used\nto hash the same source, or the hash and the artifact describe\ndifferent sets of files.",
|
|
17084
|
+
"stability": "experimental",
|
|
17085
|
+
"summary": "Entries to omit from the packaged result."
|
|
17086
|
+
},
|
|
17087
|
+
"immutable": true,
|
|
17088
|
+
"locationInModule": {
|
|
17089
|
+
"filename": "src/assets.ts",
|
|
17090
|
+
"line": 138
|
|
17091
|
+
},
|
|
17092
|
+
"name": "ignoreStrategy",
|
|
17093
|
+
"optional": true,
|
|
17094
|
+
"type": {
|
|
17095
|
+
"fqn": "cdktn.IIgnoreStrategy"
|
|
17096
|
+
}
|
|
17097
|
+
}
|
|
17098
|
+
],
|
|
17099
|
+
"symbolId": "src/assets:PackOptions"
|
|
17100
|
+
},
|
|
16377
17101
|
"cdktn.PgBackend": {
|
|
16378
17102
|
"assembly": "cdktn",
|
|
16379
17103
|
"base": "cdktn.TerraformBackend",
|
|
@@ -19470,6 +20194,75 @@
|
|
|
19470
20194
|
],
|
|
19471
20195
|
"symbolId": "src/manifest:StackManifest"
|
|
19472
20196
|
},
|
|
20197
|
+
"cdktn.StagedAsset": {
|
|
20198
|
+
"assembly": "cdktn",
|
|
20199
|
+
"datatype": true,
|
|
20200
|
+
"docs": {
|
|
20201
|
+
"remarks": "Deliberately narrower than a location: `path` and `isDirectory` are known\nonce staging runs, at synth time, before anything is published. Where an\nasset ends up — a bucket name, an object key, a URL — is resolved at\napply time and belongs on the publisher's own reference type instead.",
|
|
20202
|
+
"stability": "experimental",
|
|
20203
|
+
"summary": "A staged artifact, ready to hand to an `IAssetPublisher`."
|
|
20204
|
+
},
|
|
20205
|
+
"fqn": "cdktn.StagedAsset",
|
|
20206
|
+
"kind": "interface",
|
|
20207
|
+
"locationInModule": {
|
|
20208
|
+
"filename": "src/assets.ts",
|
|
20209
|
+
"line": 220
|
|
20210
|
+
},
|
|
20211
|
+
"name": "StagedAsset",
|
|
20212
|
+
"properties": [
|
|
20213
|
+
{
|
|
20214
|
+
"abstract": true,
|
|
20215
|
+
"docs": {
|
|
20216
|
+
"remarks": "This hash is used to uniquely identify this\nasset throughout the system. If this value doesn't change, the asset will\nnot be rebuilt or republished.",
|
|
20217
|
+
"stability": "experimental",
|
|
20218
|
+
"summary": "A hash on the content source."
|
|
20219
|
+
},
|
|
20220
|
+
"immutable": true,
|
|
20221
|
+
"locationInModule": {
|
|
20222
|
+
"filename": "src/assets.ts",
|
|
20223
|
+
"line": 226
|
|
20224
|
+
},
|
|
20225
|
+
"name": "assetHash",
|
|
20226
|
+
"type": {
|
|
20227
|
+
"primitive": "string"
|
|
20228
|
+
}
|
|
20229
|
+
},
|
|
20230
|
+
{
|
|
20231
|
+
"abstract": true,
|
|
20232
|
+
"docs": {
|
|
20233
|
+
"remarks": "Publishers branch on this to decide whether they upload one object or\nsync a tree; see `IAssetPackaging.producesDirectory`.",
|
|
20234
|
+
"stability": "experimental",
|
|
20235
|
+
"summary": "Whether the staged artifact is a directory rather than a single file."
|
|
20236
|
+
},
|
|
20237
|
+
"immutable": true,
|
|
20238
|
+
"locationInModule": {
|
|
20239
|
+
"filename": "src/assets.ts",
|
|
20240
|
+
"line": 239
|
|
20241
|
+
},
|
|
20242
|
+
"name": "isDirectory",
|
|
20243
|
+
"type": {
|
|
20244
|
+
"primitive": "boolean"
|
|
20245
|
+
}
|
|
20246
|
+
},
|
|
20247
|
+
{
|
|
20248
|
+
"abstract": true,
|
|
20249
|
+
"docs": {
|
|
20250
|
+
"stability": "experimental",
|
|
20251
|
+
"summary": "The path to the staged artifact, relative to the stack directory."
|
|
20252
|
+
},
|
|
20253
|
+
"immutable": true,
|
|
20254
|
+
"locationInModule": {
|
|
20255
|
+
"filename": "src/assets.ts",
|
|
20256
|
+
"line": 231
|
|
20257
|
+
},
|
|
20258
|
+
"name": "path",
|
|
20259
|
+
"type": {
|
|
20260
|
+
"primitive": "string"
|
|
20261
|
+
}
|
|
20262
|
+
}
|
|
20263
|
+
],
|
|
20264
|
+
"symbolId": "src/assets:StagedAsset"
|
|
20265
|
+
},
|
|
19473
20266
|
"cdktn.StringConcat": {
|
|
19474
20267
|
"assembly": "cdktn",
|
|
19475
20268
|
"docs": {
|
|
@@ -20945,7 +21738,7 @@
|
|
|
20945
21738
|
},
|
|
20946
21739
|
"locationInModule": {
|
|
20947
21740
|
"filename": "src/terraform-asset.ts",
|
|
20948
|
-
"line":
|
|
21741
|
+
"line": 88
|
|
20949
21742
|
},
|
|
20950
21743
|
"parameters": [
|
|
20951
21744
|
{
|
|
@@ -20968,24 +21761,29 @@
|
|
|
20968
21761
|
}
|
|
20969
21762
|
]
|
|
20970
21763
|
},
|
|
21764
|
+
"interfaces": [
|
|
21765
|
+
"cdktn.IAsset"
|
|
21766
|
+
],
|
|
20971
21767
|
"kind": "class",
|
|
20972
21768
|
"locationInModule": {
|
|
20973
21769
|
"filename": "src/terraform-asset.ts",
|
|
20974
|
-
"line":
|
|
21770
|
+
"line": 73
|
|
20975
21771
|
},
|
|
20976
21772
|
"name": "TerraformAsset",
|
|
20977
21773
|
"properties": [
|
|
20978
21774
|
{
|
|
20979
21775
|
"docs": {
|
|
21776
|
+
"remarks": "As this is a plain string, it\ncan be used in construct IDs in order to enforce creation of a new resource when the content\nhash has changed.",
|
|
20980
21777
|
"stability": "experimental",
|
|
20981
|
-
"summary": "
|
|
21778
|
+
"summary": "A hash of this asset, which is available at construction time."
|
|
20982
21779
|
},
|
|
20983
21780
|
"immutable": true,
|
|
20984
21781
|
"locationInModule": {
|
|
20985
21782
|
"filename": "src/terraform-asset.ts",
|
|
20986
|
-
"line":
|
|
21783
|
+
"line": 77
|
|
20987
21784
|
},
|
|
20988
|
-
"name": "
|
|
21785
|
+
"name": "assetHash",
|
|
21786
|
+
"overrides": "cdktn.IAsset",
|
|
20989
21787
|
"type": {
|
|
20990
21788
|
"primitive": "string"
|
|
20991
21789
|
}
|
|
@@ -20993,27 +21791,29 @@
|
|
|
20993
21791
|
{
|
|
20994
21792
|
"docs": {
|
|
20995
21793
|
"stability": "experimental",
|
|
20996
|
-
"summary": "
|
|
21794
|
+
"summary": "Name of the asset."
|
|
20997
21795
|
},
|
|
20998
21796
|
"immutable": true,
|
|
20999
21797
|
"locationInModule": {
|
|
21000
21798
|
"filename": "src/terraform-asset.ts",
|
|
21001
|
-
"line":
|
|
21799
|
+
"line": 206
|
|
21002
21800
|
},
|
|
21003
|
-
"name": "
|
|
21801
|
+
"name": "fileName",
|
|
21004
21802
|
"type": {
|
|
21005
21803
|
"primitive": "string"
|
|
21006
21804
|
}
|
|
21007
21805
|
},
|
|
21008
21806
|
{
|
|
21009
21807
|
"docs": {
|
|
21010
|
-
"stability": "experimental"
|
|
21808
|
+
"stability": "experimental",
|
|
21809
|
+
"summary": "The path relative to the root of the terraform directory in posix format Use this property to reference the asset."
|
|
21011
21810
|
},
|
|
21811
|
+
"immutable": true,
|
|
21012
21812
|
"locationInModule": {
|
|
21013
21813
|
"filename": "src/terraform-asset.ts",
|
|
21014
|
-
"line":
|
|
21814
|
+
"line": 193
|
|
21015
21815
|
},
|
|
21016
|
-
"name": "
|
|
21816
|
+
"name": "path",
|
|
21017
21817
|
"type": {
|
|
21018
21818
|
"primitive": "string"
|
|
21019
21819
|
}
|
|
@@ -21024,7 +21824,7 @@
|
|
|
21024
21824
|
},
|
|
21025
21825
|
"locationInModule": {
|
|
21026
21826
|
"filename": "src/terraform-asset.ts",
|
|
21027
|
-
"line":
|
|
21827
|
+
"line": 79
|
|
21028
21828
|
},
|
|
21029
21829
|
"name": "type",
|
|
21030
21830
|
"type": {
|
|
@@ -21044,7 +21844,7 @@
|
|
|
21044
21844
|
"kind": "interface",
|
|
21045
21845
|
"locationInModule": {
|
|
21046
21846
|
"filename": "src/terraform-asset.ts",
|
|
21047
|
-
"line":
|
|
21847
|
+
"line": 27
|
|
21048
21848
|
},
|
|
21049
21849
|
"name": "TerraformAssetConfig",
|
|
21050
21850
|
"properties": [
|
|
@@ -21056,7 +21856,7 @@
|
|
|
21056
21856
|
"immutable": true,
|
|
21057
21857
|
"locationInModule": {
|
|
21058
21858
|
"filename": "src/terraform-asset.ts",
|
|
21059
|
-
"line":
|
|
21859
|
+
"line": 29
|
|
21060
21860
|
},
|
|
21061
21861
|
"name": "path",
|
|
21062
21862
|
"type": {
|
|
@@ -21071,7 +21871,7 @@
|
|
|
21071
21871
|
"immutable": true,
|
|
21072
21872
|
"locationInModule": {
|
|
21073
21873
|
"filename": "src/terraform-asset.ts",
|
|
21074
|
-
"line":
|
|
21874
|
+
"line": 33
|
|
21075
21875
|
},
|
|
21076
21876
|
"name": "assetHash",
|
|
21077
21877
|
"optional": true,
|
|
@@ -21079,6 +21879,25 @@
|
|
|
21079
21879
|
"primitive": "string"
|
|
21080
21880
|
}
|
|
21081
21881
|
},
|
|
21882
|
+
{
|
|
21883
|
+
"abstract": true,
|
|
21884
|
+
"docs": {
|
|
21885
|
+
"default": "AssetHashType.SOURCE",
|
|
21886
|
+
"remarks": "`SOURCE` (the default) hashes the source path. `CUSTOM` uses the\n`assetHash` value verbatim and requires it to be set. `OUTPUT` is not\nsupported yet — there is no bundling step to produce an output to hash —\nand throws if requested.\n\nIf `assetHash` is set, this must be `undefined` or `AssetHashType.CUSTOM`.",
|
|
21887
|
+
"stability": "experimental",
|
|
21888
|
+
"summary": "How the `assetHash` is derived."
|
|
21889
|
+
},
|
|
21890
|
+
"immutable": true,
|
|
21891
|
+
"locationInModule": {
|
|
21892
|
+
"filename": "src/terraform-asset.ts",
|
|
21893
|
+
"line": 46
|
|
21894
|
+
},
|
|
21895
|
+
"name": "assetHashType",
|
|
21896
|
+
"optional": true,
|
|
21897
|
+
"type": {
|
|
21898
|
+
"fqn": "cdktn.AssetHashType"
|
|
21899
|
+
}
|
|
21900
|
+
},
|
|
21082
21901
|
{
|
|
21083
21902
|
"abstract": true,
|
|
21084
21903
|
"docs": {
|
|
@@ -21087,7 +21906,7 @@
|
|
|
21087
21906
|
"immutable": true,
|
|
21088
21907
|
"locationInModule": {
|
|
21089
21908
|
"filename": "src/terraform-asset.ts",
|
|
21090
|
-
"line":
|
|
21909
|
+
"line": 31
|
|
21091
21910
|
},
|
|
21092
21911
|
"name": "type",
|
|
21093
21912
|
"optional": true,
|
|
@@ -30961,6 +31780,6 @@
|
|
|
30961
31780
|
"symbolId": "src/testing/matchers:TerraformConstructor"
|
|
30962
31781
|
}
|
|
30963
31782
|
},
|
|
30964
|
-
"version": "0.25.0-pre.
|
|
30965
|
-
"fingerprint": "
|
|
31783
|
+
"version": "0.25.0-pre.22",
|
|
31784
|
+
"fingerprint": "hkAZDKwNRSbTsgHRZDywMIh4qjz3hexPa+eGKQR5YbI="
|
|
30966
31785
|
}
|