@aws-cdk/cloud-assembly-api 0.0.1 → 2.0.1

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 (114) hide show
  1. package/LICENSE +202 -0
  2. package/README.md +15 -41
  3. package/design/NESTED_ASSEMBLIES.md +93 -0
  4. package/lib/artifacts/asset-manifest-artifact.d.ts +46 -0
  5. package/lib/artifacts/asset-manifest-artifact.js +66 -0
  6. package/lib/artifacts/cloudformation-artifact.d.ts +147 -0
  7. package/lib/artifacts/cloudformation-artifact.js +94 -0
  8. package/lib/artifacts/nested-cloud-assembly-artifact-aug.d.ts +1 -0
  9. package/lib/artifacts/nested-cloud-assembly-artifact-aug.js +19 -0
  10. package/lib/artifacts/nested-cloud-assembly-artifact.d.ts +45 -0
  11. package/lib/artifacts/nested-cloud-assembly-artifact.js +56 -0
  12. package/lib/artifacts/tree-cloud-artifact.d.ts +25 -0
  13. package/lib/artifacts/tree-cloud-artifact.js +49 -0
  14. package/lib/assets.d.ts +33 -0
  15. package/lib/assets.js +37 -0
  16. package/lib/bootstrap.d.ts +7 -0
  17. package/lib/bootstrap.js +12 -0
  18. package/lib/cloud-artifact-aug.d.ts +1 -0
  19. package/lib/cloud-artifact-aug.js +29 -0
  20. package/lib/cloud-artifact.d.ts +73 -0
  21. package/lib/cloud-artifact.js +94 -0
  22. package/lib/cloud-assembly.d.ts +266 -0
  23. package/lib/cloud-assembly.js +374 -0
  24. package/lib/context/ami.d.ts +4 -0
  25. package/lib/context/ami.js +3 -0
  26. package/lib/context/availability-zones.d.ts +12 -0
  27. package/lib/context/availability-zones.js +12 -0
  28. package/lib/context/endpoint-service-availability-zones.d.ts +22 -0
  29. package/lib/context/endpoint-service-availability-zones.js +5 -0
  30. package/lib/context/generic.d.ts +4 -0
  31. package/lib/context/generic.js +8 -0
  32. package/lib/context/key.d.ts +9 -0
  33. package/lib/context/key.js +3 -0
  34. package/lib/context/load-balancer.d.ts +63 -0
  35. package/lib/context/load-balancer.js +22 -0
  36. package/lib/context/security-group.d.ts +15 -0
  37. package/lib/context/security-group.js +3 -0
  38. package/lib/context/vpc.d.ts +152 -0
  39. package/lib/context/vpc.js +18 -0
  40. package/lib/environment.d.ts +24 -0
  41. package/lib/environment.js +40 -0
  42. package/lib/index.d.ts +21 -0
  43. package/lib/index.js +38 -0
  44. package/lib/metadata.d.ts +27 -0
  45. package/lib/metadata.js +14 -0
  46. package/lib/placeholders.d.ts +66 -0
  47. package/lib/placeholders.js +90 -0
  48. package/lib/private/error.d.ts +1 -0
  49. package/lib/private/error.js +47 -0
  50. package/lib/private/toposort.d.ts +11 -0
  51. package/lib/private/toposort.js +35 -0
  52. package/node_modules/jsonschema/.editorconfig +10 -0
  53. package/node_modules/jsonschema/LICENSE +21 -0
  54. package/node_modules/jsonschema/README.md +421 -0
  55. package/node_modules/jsonschema/lib/attribute.js +978 -0
  56. package/node_modules/jsonschema/lib/helpers.js +390 -0
  57. package/node_modules/jsonschema/lib/index.d.ts +142 -0
  58. package/node_modules/jsonschema/lib/index.js +15 -0
  59. package/node_modules/jsonschema/lib/scan.js +75 -0
  60. package/node_modules/jsonschema/lib/validator.js +336 -0
  61. package/node_modules/jsonschema/package.json +42 -0
  62. package/node_modules/semver/LICENSE +15 -0
  63. package/node_modules/semver/README.md +664 -0
  64. package/node_modules/semver/bin/semver.js +191 -0
  65. package/node_modules/semver/classes/comparator.js +143 -0
  66. package/node_modules/semver/classes/index.js +7 -0
  67. package/node_modules/semver/classes/range.js +557 -0
  68. package/node_modules/semver/classes/semver.js +333 -0
  69. package/node_modules/semver/functions/clean.js +8 -0
  70. package/node_modules/semver/functions/cmp.js +54 -0
  71. package/node_modules/semver/functions/coerce.js +62 -0
  72. package/node_modules/semver/functions/compare-build.js +9 -0
  73. package/node_modules/semver/functions/compare-loose.js +5 -0
  74. package/node_modules/semver/functions/compare.js +7 -0
  75. package/node_modules/semver/functions/diff.js +60 -0
  76. package/node_modules/semver/functions/eq.js +5 -0
  77. package/node_modules/semver/functions/gt.js +5 -0
  78. package/node_modules/semver/functions/gte.js +5 -0
  79. package/node_modules/semver/functions/inc.js +21 -0
  80. package/node_modules/semver/functions/lt.js +5 -0
  81. package/node_modules/semver/functions/lte.js +5 -0
  82. package/node_modules/semver/functions/major.js +5 -0
  83. package/node_modules/semver/functions/minor.js +5 -0
  84. package/node_modules/semver/functions/neq.js +5 -0
  85. package/node_modules/semver/functions/parse.js +18 -0
  86. package/node_modules/semver/functions/patch.js +5 -0
  87. package/node_modules/semver/functions/prerelease.js +8 -0
  88. package/node_modules/semver/functions/rcompare.js +5 -0
  89. package/node_modules/semver/functions/rsort.js +5 -0
  90. package/node_modules/semver/functions/satisfies.js +12 -0
  91. package/node_modules/semver/functions/sort.js +5 -0
  92. package/node_modules/semver/functions/valid.js +8 -0
  93. package/node_modules/semver/index.js +91 -0
  94. package/node_modules/semver/internal/constants.js +37 -0
  95. package/node_modules/semver/internal/debug.js +11 -0
  96. package/node_modules/semver/internal/identifiers.js +29 -0
  97. package/node_modules/semver/internal/lrucache.js +42 -0
  98. package/node_modules/semver/internal/parse-options.js +17 -0
  99. package/node_modules/semver/internal/re.js +223 -0
  100. package/node_modules/semver/package.json +78 -0
  101. package/node_modules/semver/preload.js +4 -0
  102. package/node_modules/semver/range.bnf +16 -0
  103. package/node_modules/semver/ranges/gtr.js +6 -0
  104. package/node_modules/semver/ranges/intersects.js +9 -0
  105. package/node_modules/semver/ranges/ltr.js +6 -0
  106. package/node_modules/semver/ranges/max-satisfying.js +27 -0
  107. package/node_modules/semver/ranges/min-satisfying.js +26 -0
  108. package/node_modules/semver/ranges/min-version.js +63 -0
  109. package/node_modules/semver/ranges/outside.js +82 -0
  110. package/node_modules/semver/ranges/simplify.js +49 -0
  111. package/node_modules/semver/ranges/subset.js +249 -0
  112. package/node_modules/semver/ranges/to-comparators.js +10 -0
  113. package/node_modules/semver/ranges/valid.js +13 -0
  114. package/package.json +80 -6
package/LICENSE ADDED
@@ -0,0 +1,202 @@
1
+
2
+ Apache License
3
+ Version 2.0, January 2004
4
+ http://www.apache.org/licenses/
5
+
6
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
7
+
8
+ 1. Definitions.
9
+
10
+ "License" shall mean the terms and conditions for use, reproduction,
11
+ and distribution as defined by Sections 1 through 9 of this document.
12
+
13
+ "Licensor" shall mean the copyright owner or entity authorized by
14
+ the copyright owner that is granting the License.
15
+
16
+ "Legal Entity" shall mean the union of the acting entity and all
17
+ other entities that control, are controlled by, or are under common
18
+ control with that entity. For the purposes of this definition,
19
+ "control" means (i) the power, direct or indirect, to cause the
20
+ direction or management of such entity, whether by contract or
21
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
22
+ outstanding shares, or (iii) beneficial ownership of such entity.
23
+
24
+ "You" (or "Your") shall mean an individual or Legal Entity
25
+ exercising permissions granted by this License.
26
+
27
+ "Source" form shall mean the preferred form for making modifications,
28
+ including but not limited to software source code, documentation
29
+ source, and configuration files.
30
+
31
+ "Object" form shall mean any form resulting from mechanical
32
+ transformation or translation of a Source form, including but
33
+ not limited to compiled object code, generated documentation,
34
+ and conversions to other media types.
35
+
36
+ "Work" shall mean the work of authorship, whether in Source or
37
+ Object form, made available under the License, as indicated by a
38
+ copyright notice that is included in or attached to the work
39
+ (an example is provided in the Appendix below).
40
+
41
+ "Derivative Works" shall mean any work, whether in Source or Object
42
+ form, that is based on (or derived from) the Work and for which the
43
+ editorial revisions, annotations, elaborations, or other modifications
44
+ represent, as a whole, an original work of authorship. For the purposes
45
+ of this License, Derivative Works shall not include works that remain
46
+ separable from, or merely link (or bind by name) to the interfaces of,
47
+ the Work and Derivative Works thereof.
48
+
49
+ "Contribution" shall mean any work of authorship, including
50
+ the original version of the Work and any modifications or additions
51
+ to that Work or Derivative Works thereof, that is intentionally
52
+ submitted to Licensor for inclusion in the Work by the copyright owner
53
+ or by an individual or Legal Entity authorized to submit on behalf of
54
+ the copyright owner. For the purposes of this definition, "submitted"
55
+ means any form of electronic, verbal, or written communication sent
56
+ to the Licensor or its representatives, including but not limited to
57
+ communication on electronic mailing lists, source code control systems,
58
+ and issue tracking systems that are managed by, or on behalf of, the
59
+ Licensor for the purpose of discussing and improving the Work, but
60
+ excluding communication that is conspicuously marked or otherwise
61
+ designated in writing by the copyright owner as "Not a Contribution."
62
+
63
+ "Contributor" shall mean Licensor and any individual or Legal Entity
64
+ on behalf of whom a Contribution has been received by Licensor and
65
+ subsequently incorporated within the Work.
66
+
67
+ 2. Grant of Copyright License. Subject to the terms and conditions of
68
+ this License, each Contributor hereby grants to You a perpetual,
69
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
70
+ copyright license to reproduce, prepare Derivative Works of,
71
+ publicly display, publicly perform, sublicense, and distribute the
72
+ Work and such Derivative Works in Source or Object form.
73
+
74
+ 3. Grant of Patent License. Subject to the terms and conditions of
75
+ this License, each Contributor hereby grants to You a perpetual,
76
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
77
+ (except as stated in this section) patent license to make, have made,
78
+ use, offer to sell, sell, import, and otherwise transfer the Work,
79
+ where such license applies only to those patent claims licensable
80
+ by such Contributor that are necessarily infringed by their
81
+ Contribution(s) alone or by combination of their Contribution(s)
82
+ with the Work to which such Contribution(s) was submitted. If You
83
+ institute patent litigation against any entity (including a
84
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
85
+ or a Contribution incorporated within the Work constitutes direct
86
+ or contributory patent infringement, then any patent licenses
87
+ granted to You under this License for that Work shall terminate
88
+ as of the date such litigation is filed.
89
+
90
+ 4. Redistribution. You may reproduce and distribute copies of the
91
+ Work or Derivative Works thereof in any medium, with or without
92
+ modifications, and in Source or Object form, provided that You
93
+ meet the following conditions:
94
+
95
+ (a) You must give any other recipients of the Work or
96
+ Derivative Works a copy of this License; and
97
+
98
+ (b) You must cause any modified files to carry prominent notices
99
+ stating that You changed the files; and
100
+
101
+ (c) You must retain, in the Source form of any Derivative Works
102
+ that You distribute, all copyright, patent, trademark, and
103
+ attribution notices from the Source form of the Work,
104
+ excluding those notices that do not pertain to any part of
105
+ the Derivative Works; and
106
+
107
+ (d) If the Work includes a "NOTICE" text file as part of its
108
+ distribution, then any Derivative Works that You distribute must
109
+ include a readable copy of the attribution notices contained
110
+ within such NOTICE file, excluding those notices that do not
111
+ pertain to any part of the Derivative Works, in at least one
112
+ of the following places: within a NOTICE text file distributed
113
+ as part of the Derivative Works; within the Source form or
114
+ documentation, if provided along with the Derivative Works; or,
115
+ within a display generated by the Derivative Works, if and
116
+ wherever such third-party notices normally appear. The contents
117
+ of the NOTICE file are for informational purposes only and
118
+ do not modify the License. You may add Your own attribution
119
+ notices within Derivative Works that You distribute, alongside
120
+ or as an addendum to the NOTICE text from the Work, provided
121
+ that such additional attribution notices cannot be construed
122
+ as modifying the License.
123
+
124
+ You may add Your own copyright statement to Your modifications and
125
+ may provide additional or different license terms and conditions
126
+ for use, reproduction, or distribution of Your modifications, or
127
+ for any such Derivative Works as a whole, provided Your use,
128
+ reproduction, and distribution of the Work otherwise complies with
129
+ the conditions stated in this License.
130
+
131
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
132
+ any Contribution intentionally submitted for inclusion in the Work
133
+ by You to the Licensor shall be under the terms and conditions of
134
+ this License, without any additional terms or conditions.
135
+ Notwithstanding the above, nothing herein shall supersede or modify
136
+ the terms of any separate license agreement you may have executed
137
+ with Licensor regarding such Contributions.
138
+
139
+ 6. Trademarks. This License does not grant permission to use the trade
140
+ names, trademarks, service marks, or product names of the Licensor,
141
+ except as required for reasonable and customary use in describing the
142
+ origin of the Work and reproducing the content of the NOTICE file.
143
+
144
+ 7. Disclaimer of Warranty. Unless required by applicable law or
145
+ agreed to in writing, Licensor provides the Work (and each
146
+ Contributor provides its Contributions) on an "AS IS" BASIS,
147
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
148
+ implied, including, without limitation, any warranties or conditions
149
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
150
+ PARTICULAR PURPOSE. You are solely responsible for determining the
151
+ appropriateness of using or redistributing the Work and assume any
152
+ risks associated with Your exercise of permissions under this License.
153
+
154
+ 8. Limitation of Liability. In no event and under no legal theory,
155
+ whether in tort (including negligence), contract, or otherwise,
156
+ unless required by applicable law (such as deliberate and grossly
157
+ negligent acts) or agreed to in writing, shall any Contributor be
158
+ liable to You for damages, including any direct, indirect, special,
159
+ incidental, or consequential damages of any character arising as a
160
+ result of this License or out of the use or inability to use the
161
+ Work (including but not limited to damages for loss of goodwill,
162
+ work stoppage, computer failure or malfunction, or any and all
163
+ other commercial damages or losses), even if such Contributor
164
+ has been advised of the possibility of such damages.
165
+
166
+ 9. Accepting Warranty or Additional Liability. While redistributing
167
+ the Work or Derivative Works thereof, You may choose to offer,
168
+ and charge a fee for, acceptance of support, warranty, indemnity,
169
+ or other liability obligations and/or rights consistent with this
170
+ License. However, in accepting such obligations, You may act only
171
+ on Your own behalf and on Your sole responsibility, not on behalf
172
+ of any other Contributor, and only if You agree to indemnify,
173
+ defend, and hold each Contributor harmless for any liability
174
+ incurred by, or claims asserted against, such Contributor by reason
175
+ of your accepting any such warranty or additional liability.
176
+
177
+ END OF TERMS AND CONDITIONS
178
+
179
+ APPENDIX: How to apply the Apache License to your work.
180
+
181
+ To apply the Apache License to your work, attach the following
182
+ boilerplate notice, with the fields enclosed by brackets "[]"
183
+ replaced with your own identifying information. (Don't include
184
+ the brackets!) The text should be enclosed in the appropriate
185
+ comment syntax for the file format. We also recommend that a
186
+ file or class name and description of purpose be included on the
187
+ same "printed page" as the copyright notice for easier
188
+ identification within third-party archives.
189
+
190
+ Copyright [yyyy] [name of copyright owner]
191
+
192
+ Licensed under the Apache License, Version 2.0 (the "License");
193
+ you may not use this file except in compliance with the License.
194
+ You may obtain a copy of the License at
195
+
196
+ http://www.apache.org/licenses/LICENSE-2.0
197
+
198
+ Unless required by applicable law or agreed to in writing, software
199
+ distributed under the License is distributed on an "AS IS" BASIS,
200
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
201
+ See the License for the specific language governing permissions and
202
+ limitations under the License.
package/README.md CHANGED
@@ -1,45 +1,19 @@
1
- # @aws-cdk/cloud-assembly-api
1
+ # Cloud Assembly API
2
2
 
3
- ## ⚠️ IMPORTANT NOTICE ⚠️
3
+ This module is part of the [AWS Cloud Development Kit](https://github.com/aws/aws-cdk) project.
4
4
 
5
- **This package is created solely for the purpose of setting up OIDC (OpenID Connect) trusted publishing with npm.**
5
+ It provides routines to save and load Cloud Assembly manifests, as defined in
6
+ the `@aws-cdk/cloud-assembly-schema` package.
6
7
 
7
- This is **NOT** a functional package and contains **NO** code or functionality beyond the OIDC setup configuration.
8
+ A lot of this code used to live in the `@aws-cdk/cx-api` package, but has been
9
+ extracted from it to its own package. That original package used to define the
10
+ `Cloud Executable <--> CDK CLI` contract in both directions, but this
11
+ responsibility has now been split:
8
12
 
9
- ## Purpose
10
-
11
- This package exists to:
12
- 1. Configure OIDC trusted publishing for the package name `@aws-cdk/cloud-assembly-api`
13
- 2. Enable secure, token-less publishing from CI/CD workflows
14
- 3. Establish provenance for packages published under this name
15
-
16
- ## What is OIDC Trusted Publishing?
17
-
18
- OIDC trusted publishing allows package maintainers to publish packages directly from their CI/CD workflows without needing to manage npm access tokens. Instead, it uses OpenID Connect to establish trust between the CI/CD provider (like GitHub Actions) and npm.
19
-
20
- ## Setup Instructions
21
-
22
- To properly configure OIDC trusted publishing for this package:
23
-
24
- 1. Go to [npmjs.com](https://www.npmjs.com/) and navigate to your package settings
25
- 2. Configure the trusted publisher (e.g., GitHub Actions)
26
- 3. Specify the repository and workflow that should be allowed to publish
27
- 4. Use the configured workflow to publish your actual package
28
-
29
- ## DO NOT USE THIS PACKAGE
30
-
31
- This package is a placeholder for OIDC configuration only. It:
32
- - Contains no executable code
33
- - Provides no functionality
34
- - Should not be installed as a dependency
35
- - Exists only for administrative purposes
36
-
37
- ## More Information
38
-
39
- For more details about npm's trusted publishing feature, see:
40
- - [npm Trusted Publishing Documentation](https://docs.npmjs.com/generating-provenance-statements)
41
- - [GitHub Actions OIDC Documentation](https://docs.github.com/en/actions/deployment/security-hardening-your-deployments/about-security-hardening-with-openid-connect)
42
-
43
- ---
44
-
45
- **Maintained for OIDC setup purposes only**
13
+ ```
14
+ ┌────────────────────────┐ @/cloud-assembly-api ┌────────────────┐
15
+ │ │────────────────────────▶│ │
16
+ │ Cloud Executable │ │ CDK CLI │
17
+ │ │◀────────────────────────│ │
18
+ └────────────────────────┘ @/cx-api └────────────────┘
19
+ ```
@@ -0,0 +1,93 @@
1
+ # Nested Assemblies
2
+
3
+ For the CI/CD project we need to be able to a final, authoritative, immutable
4
+ rendition of part of the construct tree. This is a part of the application
5
+ that we can ask the CI/CD system to deploy as a unit, and have it get a fighting
6
+ chance of getting it right. This is because:
7
+
8
+ - The stacks will be known.
9
+ - Their interdependencies will be known, and won't change anymore.
10
+
11
+ To that end, we're introducing the concept of an "nested cloud assembly".
12
+ This is a part of the construct tree that is finalized independently of the
13
+ rest, so that other constructs can reflect on it.
14
+
15
+ Constructs of type `Stage` will produce nested cloud assemblies.
16
+
17
+ ## Restrictions
18
+
19
+ ### Assets
20
+
21
+ Right now, if the same asset is used in multiple cloud assemblies, it will
22
+ be staged independently in ever Cloud Assembly (making it take up more
23
+ space than necessary).
24
+
25
+ This is unfortunate. We can think about sharing the staging directories
26
+ between Stages, should be an easy optimization that can be applied later.
27
+
28
+ ### Dependencies
29
+
30
+ It seems that it might be desirable to have dependencies that reach outside
31
+ a single `Stage`. Consider the case where we have shared resources that
32
+ may be shared between Stages. A typical example would be a VPC:
33
+
34
+ ```
35
+ ┌───────────────┐
36
+ │ │
37
+ │ VpcStack │
38
+ │ │
39
+ └───────────────┘
40
+
41
+
42
+
43
+ ┌─────────────┴─────────────┐
44
+ │ │
45
+ ┌───────────────┼──────────┐ ┌──────────┼───────────────┐
46
+ │Stage │ │ │ │ Stage│
47
+ │ │ │ │ │ │
48
+ │ ┌───────────────┐ │ │ ┌───────────────┐ │
49
+ │ │ │ │ │ │ │ │
50
+ │ │ App1Stack │ │ │ │ App2Stack │ │
51
+ │ │ │ │ │ │ │ │
52
+ │ └───────────────┘ │ │ └───────────────┘ │
53
+ │ │ │ │
54
+ └──────────────────────────┘ └──────────────────────────┘
55
+ ```
56
+
57
+ This seems like a reasonable thing to want to be able to do.
58
+
59
+
60
+ Right now, for practical reasons we're disallowing dependencies outside
61
+ nested assemblies. That is not to say that this can never be made to work,
62
+ but as it's really rather a significant chunk of work it has not been
63
+ implemented yet. Things to consider:
64
+
65
+ - Do artifact identifiers need to be globally unique? (Does that destroy
66
+ local assumptions around naming that constructs can make?)
67
+ - How are artifacts addressed across assembly boundaries? Are they just the
68
+ absolute name, wherever in the Cloud Assembly tree the artifact is? Do they
69
+ represent a path from the top-level cloud assembly
70
+ (`SubAsm/SubAsm/Artifact`)? Are they relative paths (`../SubAsm/Artifact`)?
71
+ - Can there be cyclic dependencies between nested assemblies? Is it okay to
72
+ have both dependencies `AsmA/Stack1 -> AsmB/Stack1`, and `AsmB/Stack2 ->
73
+ AsmA/Stack2`? Why, or why not? How will we ensure that?
74
+
75
+ Even if we can make the addressing work at the artifact level, at the
76
+ construct tree level we'd be giving up the guarantees we are getting from
77
+ having `Stage` constructs produce isolated Cloud Assemblies by having
78
+ dependencies outside them. Consider having two stages, `StageA` with `StackA`
79
+ and `StageB` with `StackB`. We must `synth()` them in some order, either A or
80
+ B first. Let's say A goes first (but the same argument obviously holds in
81
+ reverse). What if during the `synth()` of `StageB`, we discover `StackB`
82
+ introduces a dependency on `StackA`? By that point, `StageA` has already
83
+ synthesized and `StackA` has produced a (so-called "immutable") template.
84
+ Obviously we can't change that anymore, so we can't introduce that dependency
85
+ anymore.
86
+
87
+ Seems like we should be calling `synth()` on multiple stages consumer-first!
88
+
89
+ The problem is that we are generally building a Pipeline *producer*-first, since
90
+ we are modeling and building it in deployment order, which is the reverse order
91
+ the pipeline would `synth()` each of the stages in, in order to build itself.
92
+
93
+ Since this is all very tricky, let's consider it out of scope for now.
@@ -0,0 +1,46 @@
1
+ import type * as cxschema from '@aws-cdk/cloud-assembly-schema';
2
+ import { CloudArtifact } from '../cloud-artifact';
3
+ import type { CloudAssembly } from '../cloud-assembly';
4
+ /**
5
+ * Asset manifest is a description of a set of assets which need to be built and published
6
+ */
7
+ export declare class AssetManifestArtifact extends CloudArtifact {
8
+ /**
9
+ * Checks if `art` is an instance of this class.
10
+ *
11
+ * Use this method instead of `instanceof` to properly detect `AssetManifestArtifact`
12
+ * instances, even when the construct library is symlinked.
13
+ *
14
+ * Explanation: in JavaScript, multiple copies of the `cx-api` library on
15
+ * disk are seen as independent, completely different libraries. As a
16
+ * consequence, the class `AssetManifestArtifact` in each copy of the `cx-api` library
17
+ * is seen as a different class, and an instance of one class will not test as
18
+ * `instanceof` the other class. `npm install` will not create installations
19
+ * like this, but users may manually symlink construct libraries together or
20
+ * use a monorepo tool: in those cases, multiple copies of the `cx-api`
21
+ * library can be accidentally installed, and `instanceof` will behave
22
+ * unpredictably. It is safest to avoid using `instanceof`, and using
23
+ * this type-testing method instead.
24
+ */
25
+ static isAssetManifestArtifact(this: void, art: any): art is AssetManifestArtifact;
26
+ /**
27
+ * The file name of the asset manifest
28
+ */
29
+ readonly file: string;
30
+ /**
31
+ * Version of bootstrap stack required to deploy this stack
32
+ */
33
+ readonly requiresBootstrapStackVersion: number | undefined;
34
+ /**
35
+ * Name of SSM parameter with bootstrap stack version
36
+ *
37
+ * @default - Discover SSM parameter by reading stack
38
+ */
39
+ readonly bootstrapStackVersionSsmParameter?: string;
40
+ private _contents?;
41
+ constructor(assembly: CloudAssembly, name: string, artifact: cxschema.ArtifactManifest);
42
+ /**
43
+ * The Asset Manifest contents
44
+ */
45
+ get contents(): cxschema.AssetManifest;
46
+ }
@@ -0,0 +1,66 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.AssetManifestArtifact = void 0;
4
+ const fs = require("fs");
5
+ const path = require("path");
6
+ const cloud_artifact_1 = require("../cloud-artifact");
7
+ const error_1 = require("../private/error");
8
+ const ASSET_MANIFEST_ARTIFACT_SYM = Symbol.for('@aws-cdk/cx-api.AssetManifestArtifact');
9
+ /**
10
+ * Asset manifest is a description of a set of assets which need to be built and published
11
+ */
12
+ class AssetManifestArtifact extends cloud_artifact_1.CloudArtifact {
13
+ /**
14
+ * Checks if `art` is an instance of this class.
15
+ *
16
+ * Use this method instead of `instanceof` to properly detect `AssetManifestArtifact`
17
+ * instances, even when the construct library is symlinked.
18
+ *
19
+ * Explanation: in JavaScript, multiple copies of the `cx-api` library on
20
+ * disk are seen as independent, completely different libraries. As a
21
+ * consequence, the class `AssetManifestArtifact` in each copy of the `cx-api` library
22
+ * is seen as a different class, and an instance of one class will not test as
23
+ * `instanceof` the other class. `npm install` will not create installations
24
+ * like this, but users may manually symlink construct libraries together or
25
+ * use a monorepo tool: in those cases, multiple copies of the `cx-api`
26
+ * library can be accidentally installed, and `instanceof` will behave
27
+ * unpredictably. It is safest to avoid using `instanceof`, and using
28
+ * this type-testing method instead.
29
+ */
30
+ static isAssetManifestArtifact(art) {
31
+ return art && typeof art === 'object' && art[ASSET_MANIFEST_ARTIFACT_SYM];
32
+ }
33
+ constructor(assembly, name, artifact) {
34
+ super(assembly, name, artifact);
35
+ const properties = (this.manifest.properties || {});
36
+ if (!properties.file) {
37
+ throw new error_1.CloudAssemblyError('Invalid AssetManifestArtifact. Missing "file" property');
38
+ }
39
+ this.file = path.resolve(this.assembly.directory, properties.file);
40
+ this.requiresBootstrapStackVersion = properties.requiresBootstrapStackVersion;
41
+ this.bootstrapStackVersionSsmParameter = properties.bootstrapStackVersionSsmParameter;
42
+ }
43
+ /**
44
+ * The Asset Manifest contents
45
+ */
46
+ get contents() {
47
+ if (this._contents !== undefined) {
48
+ return this._contents;
49
+ }
50
+ const contents = this._contents = JSON.parse(fs.readFileSync(this.file, 'utf-8'));
51
+ return contents;
52
+ }
53
+ }
54
+ exports.AssetManifestArtifact = AssetManifestArtifact;
55
+ /**
56
+ * Mark all instances of 'AssetManifestArtifact'
57
+ *
58
+ * Why not put this in the constructor? Because this is a class property,
59
+ * not an instance property. It applies to all instances of the class.
60
+ */
61
+ Object.defineProperty(AssetManifestArtifact.prototype, ASSET_MANIFEST_ARTIFACT_SYM, {
62
+ value: true,
63
+ enumerable: false,
64
+ writable: false,
65
+ });
66
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYXNzZXQtbWFuaWZlc3QtYXJ0aWZhY3QuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyJhc3NldC1tYW5pZmVzdC1hcnRpZmFjdC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7QUFBQSx5QkFBeUI7QUFDekIsNkJBQTZCO0FBRTdCLHNEQUFrRDtBQUVsRCw0Q0FBc0Q7QUFFdEQsTUFBTSwyQkFBMkIsR0FBRyxNQUFNLENBQUMsR0FBRyxDQUFDLHVDQUF1QyxDQUFDLENBQUM7QUFFeEY7O0dBRUc7QUFDSCxNQUFhLHFCQUFzQixTQUFRLDhCQUFhO0lBQ3REOzs7Ozs7Ozs7Ozs7Ozs7O09BZ0JHO0lBQ0ksTUFBTSxDQUFDLHVCQUF1QixDQUFhLEdBQVE7UUFDeEQsT0FBTyxHQUFHLElBQUksT0FBTyxHQUFHLEtBQUssUUFBUSxJQUFJLEdBQUcsQ0FBQywyQkFBMkIsQ0FBQyxDQUFDO0lBQzVFLENBQUM7SUFxQkQsWUFBWSxRQUF1QixFQUFFLElBQVksRUFBRSxRQUFtQztRQUNwRixLQUFLLENBQUMsUUFBUSxFQUFFLElBQUksRUFBRSxRQUFRLENBQUMsQ0FBQztRQUVoQyxNQUFNLFVBQVUsR0FBRyxDQUFDLElBQUksQ0FBQyxRQUFRLENBQUMsVUFBVSxJQUFJLEVBQUUsQ0FBcUMsQ0FBQztRQUN4RixJQUFJLENBQUMsVUFBVSxDQUFDLEl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Bwcm9wZXJ0eS4gSXQgYXBwbGllcyB0byBhbGwgaW5zdGFuY2VzIG9mIHRoZSBjbGFzcy5cbiAqL1xuT2JqZWN0LmRlZmluZVByb3BlcnR5KEFzc2V0TWFuaWZlc3RBcnRpZmFjdC5wcm90b3R5cGUsIEFTU0VUX01BTklGRVNUX0FSVElGQUNUX1NZTSwge1xuICB2YWx1ZTogdHJ1ZSxcbiAgZW51bWVyYWJsZTogZmFsc2UsXG4gIHdyaXRhYmxlOiBmYWxzZSxcbn0pO1xuIl19
@@ -0,0 +1,147 @@
1
+ import * as cxschema from '@aws-cdk/cloud-assembly-schema';
2
+ import { CloudArtifact } from '../cloud-artifact';
3
+ import type { CloudAssembly } from '../cloud-assembly';
4
+ import type { Environment } from '../environment';
5
+ export declare class CloudFormationStackArtifact extends CloudArtifact {
6
+ /**
7
+ * Checks if `art` is an instance of this class.
8
+ *
9
+ * Use this method instead of `instanceof` to properly detect `CloudFormationStackArtifact`
10
+ * instances, even when the construct library is symlinked.
11
+ *
12
+ * Explanation: in JavaScript, multiple copies of the `cx-api` library on
13
+ * disk are seen as independent, completely different libraries. As a
14
+ * consequence, the class `CloudFormationStackArtifact` in each copy of the `cx-api` library
15
+ * is seen as a different class, and an instance of one class will not test as
16
+ * `instanceof` the other class. `npm install` will not create installations
17
+ * like this, but users may manually symlink construct libraries together or
18
+ * use a monorepo tool: in those cases, multiple copies of the `cx-api`
19
+ * library can be accidentally installed, and `instanceof` will behave
20
+ * unpredictably. It is safest to avoid using `instanceof`, and using
21
+ * this type-testing method instead.
22
+ */
23
+ static isCloudFormationStackArtifact(art: any): art is CloudFormationStackArtifact;
24
+ /**
25
+ * The file name of the template.
26
+ */
27
+ readonly templateFile: string;
28
+ /**
29
+ * The original name as defined in the CDK app.
30
+ */
31
+ readonly originalName: string;
32
+ /**
33
+ * Any assets associated with this stack.
34
+ */
35
+ readonly assets: cxschema.AssetMetadataEntry[];
36
+ /**
37
+ * CloudFormation parameters to pass to the stack.
38
+ */
39
+ readonly parameters: {
40
+ [id: string]: string;
41
+ };
42
+ /**
43
+ * CloudFormation tags to pass to the stack.
44
+ */
45
+ readonly tags: {
46
+ [id: string]: string;
47
+ };
48
+ /**
49
+ * SNS Topics that will receive stack events.
50
+ */
51
+ readonly notificationArns?: string[];
52
+ /**
53
+ * The physical name of this stack.
54
+ */
55
+ readonly stackName: string;
56
+ /**
57
+ * A string that represents this stack. Should only be used in user
58
+ * interfaces. If the stackName has not been set explicitly, or has been set
59
+ * to artifactId, it will return the hierarchicalId of the stack. Otherwise,
60
+ * it will return something like "<hierarchicalId> (<stackName>)"
61
+ */
62
+ readonly displayName: string;
63
+ /**
64
+ * The physical name of this stack.
65
+ * @deprecated renamed to `stackName`
66
+ */
67
+ readonly name: string;
68
+ /**
69
+ * The environment into which to deploy this artifact.
70
+ */
71
+ readonly environment: Environment;
72
+ /**
73
+ * The role that needs to be assumed to deploy the stack
74
+ *
75
+ * @default - No role is assumed (current credentials are used)
76
+ */
77
+ readonly assumeRoleArn?: string;
78
+ /**
79
+ * External ID to use when assuming role for cloudformation deployments
80
+ *
81
+ * @default - No external ID
82
+ */
83
+ readonly assumeRoleExternalId?: string;
84
+ /**
85
+ * Additional options to pass to STS when assuming the role for cloudformation deployments.
86
+ *
87
+ * - `RoleArn` should not be used. Use the dedicated `assumeRoleArn` property instead.
88
+ * - `ExternalId` should not be used. Use the dedicated `assumeRoleExternalId` instead.
89
+ * - `TransitiveTagKeys` defaults to use all keys (if any) specified in `Tags`. E.g, all tags are transitive by default.
90
+ *
91
+ * @see https://docs.aws.amazon.com/AWSJavaScriptSDK/latest/AWS/STS.html#assumeRole-property
92
+ * @default - No additional options.
93
+ */
94
+ readonly assumeRoleAdditionalOptions?: {
95
+ [key: string]: any;
96
+ };
97
+ /**
98
+ * The role that is passed to CloudFormation to execute the change set
99
+ *
100
+ * @default - No role is passed (currently assumed role/credentials are used)
101
+ */
102
+ readonly cloudFormationExecutionRoleArn?: string;
103
+ /**
104
+ * The role to use to look up values from the target AWS account
105
+ *
106
+ * @default - No role is assumed (current credentials are used)
107
+ */
108
+ readonly lookupRole?: cxschema.BootstrapRole;
109
+ /**
110
+ * If the stack template has already been included in the asset manifest, its asset URL
111
+ *
112
+ * @default - Not uploaded yet, upload just before deploying
113
+ */
114
+ readonly stackTemplateAssetObjectUrl?: string;
115
+ /**
116
+ * Version of bootstrap stack required to deploy this stack
117
+ *
118
+ * @default - No bootstrap stack required
119
+ */
120
+ readonly requiresBootstrapStackVersion?: number;
121
+ /**
122
+ * Name of SSM parameter with bootstrap stack version
123
+ *
124
+ * @default - Discover SSM parameter by reading stack
125
+ */
126
+ readonly bootstrapStackVersionSsmParameter?: string;
127
+ /**
128
+ * Whether termination protection is enabled for this stack.
129
+ */
130
+ readonly terminationProtection?: boolean;
131
+ /**
132
+ * Whether this stack should be validated by the CLI after synthesis
133
+ *
134
+ * @default - false
135
+ */
136
+ readonly validateOnSynth?: boolean;
137
+ private _template;
138
+ constructor(assembly: CloudAssembly, artifactId: string, artifact: cxschema.ArtifactManifest);
139
+ /**
140
+ * Full path to the template file
141
+ */
142
+ get templateFullPath(): string;
143
+ /**
144
+ * The CloudFormation template for this stack.
145
+ */
146
+ get template(): any;
147
+ }