aws-cdk 0.0.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 (402) hide show
  1. package/CONTRIBUTING.md +276 -0
  2. package/LICENSE +202 -0
  3. package/NOTICE +16 -0
  4. package/README.md +1274 -0
  5. package/THIRD_PARTY_LICENSES +26821 -0
  6. package/bin/cdk +6 -0
  7. package/build-info.json +4 -0
  8. package/db.json.gz +0 -0
  9. package/generate.sh +25 -0
  10. package/images/garbage-collection.png +0 -0
  11. package/lib/api/aws-auth/account-cache.d.ts +39 -0
  12. package/lib/api/aws-auth/account-cache.js +102 -0
  13. package/lib/api/aws-auth/awscli-compatible.d.ts +42 -0
  14. package/lib/api/aws-auth/awscli-compatible.js +264 -0
  15. package/lib/api/aws-auth/cached.d.ts +11 -0
  16. package/lib/api/aws-auth/cached.js +26 -0
  17. package/lib/api/aws-auth/credential-plugins.d.ts +36 -0
  18. package/lib/api/aws-auth/credential-plugins.js +153 -0
  19. package/lib/api/aws-auth/index.d.ts +3 -0
  20. package/lib/api/aws-auth/index.js +20 -0
  21. package/lib/api/aws-auth/provider-caching.d.ts +13 -0
  22. package/lib/api/aws-auth/provider-caching.js +24 -0
  23. package/lib/api/aws-auth/sdk-logger.d.ts +69 -0
  24. package/lib/api/aws-auth/sdk-logger.js +130 -0
  25. package/lib/api/aws-auth/sdk-provider.d.ts +207 -0
  26. package/lib/api/aws-auth/sdk-provider.js +359 -0
  27. package/lib/api/aws-auth/sdk.d.ts +223 -0
  28. package/lib/api/aws-auth/sdk.js +366 -0
  29. package/lib/api/aws-auth/tracing.d.ts +11 -0
  30. package/lib/api/aws-auth/tracing.js +61 -0
  31. package/lib/api/aws-auth/user-agent.d.ts +7 -0
  32. package/lib/api/aws-auth/user-agent.js +21 -0
  33. package/lib/api/aws-auth/util.d.ts +6 -0
  34. package/lib/api/aws-auth/util.js +23 -0
  35. package/lib/api/bootstrap/bootstrap-environment.d.ts +33 -0
  36. package/lib/api/bootstrap/bootstrap-environment.js +322 -0
  37. package/lib/api/bootstrap/bootstrap-props.d.ts +130 -0
  38. package/lib/api/bootstrap/bootstrap-props.js +14 -0
  39. package/lib/api/bootstrap/bootstrap-template.yaml +692 -0
  40. package/lib/api/bootstrap/deploy-bootstrap.d.ts +37 -0
  41. package/lib/api/bootstrap/deploy-bootstrap.js +143 -0
  42. package/lib/api/bootstrap/index.d.ts +2 -0
  43. package/lib/api/bootstrap/index.js +19 -0
  44. package/lib/api/bootstrap/legacy-template.d.ts +2 -0
  45. package/lib/api/bootstrap/legacy-template.js +82 -0
  46. package/lib/api/context.d.ts +40 -0
  47. package/lib/api/context.js +82 -0
  48. package/lib/api/cxapp/cloud-assembly.d.ts +150 -0
  49. package/lib/api/cxapp/cloud-assembly.js +305 -0
  50. package/lib/api/cxapp/cloud-executable.d.ts +44 -0
  51. package/lib/api/cxapp/cloud-executable.js +90 -0
  52. package/lib/api/cxapp/environments.d.ts +9 -0
  53. package/lib/api/cxapp/environments.js +66 -0
  54. package/lib/api/cxapp/exec.d.ts +56 -0
  55. package/lib/api/cxapp/exec.js +275 -0
  56. package/lib/api/deployments/asset-manifest-builder.d.ts +8 -0
  57. package/lib/api/deployments/asset-manifest-builder.js +35 -0
  58. package/lib/api/deployments/asset-publishing.d.ts +77 -0
  59. package/lib/api/deployments/asset-publishing.js +163 -0
  60. package/lib/api/deployments/assets.d.ts +10 -0
  61. package/lib/api/deployments/assets.js +111 -0
  62. package/lib/api/deployments/checks.d.ts +8 -0
  63. package/lib/api/deployments/checks.js +73 -0
  64. package/lib/api/deployments/cloudformation.d.ts +235 -0
  65. package/lib/api/deployments/cloudformation.js +598 -0
  66. package/lib/api/deployments/deploy-stack.d.ts +177 -0
  67. package/lib/api/deployments/deploy-stack.js +484 -0
  68. package/lib/api/deployments/deployment-method.d.ts +24 -0
  69. package/lib/api/deployments/deployment-method.js +3 -0
  70. package/lib/api/deployments/deployment-result.d.ts +21 -0
  71. package/lib/api/deployments/deployment-result.js +10 -0
  72. package/lib/api/deployments/deployments.d.ts +340 -0
  73. package/lib/api/deployments/deployments.js +369 -0
  74. package/lib/api/deployments/hotswap-deployments.d.ts +14 -0
  75. package/lib/api/deployments/hotswap-deployments.js +357 -0
  76. package/lib/api/deployments/index.d.ts +6 -0
  77. package/lib/api/deployments/index.js +23 -0
  78. package/lib/api/deployments/nested-stack-helpers.d.ts +25 -0
  79. package/lib/api/deployments/nested-stack-helpers.js +88 -0
  80. package/lib/api/environment-access.d.ts +138 -0
  81. package/lib/api/environment-access.js +203 -0
  82. package/lib/api/environment-resources.d.ts +73 -0
  83. package/lib/api/environment-resources.js +208 -0
  84. package/lib/api/evaluate-cloudformation-template.d.ts +84 -0
  85. package/lib/api/evaluate-cloudformation-template.js +443 -0
  86. package/lib/api/garbage-collection/garbage-collector.d.ts +152 -0
  87. package/lib/api/garbage-collection/garbage-collector.js +607 -0
  88. package/lib/api/garbage-collection/progress-printer.d.ts +21 -0
  89. package/lib/api/garbage-collection/progress-printer.js +69 -0
  90. package/lib/api/garbage-collection/stack-refresh.d.ts +44 -0
  91. package/lib/api/garbage-collection/stack-refresh.js +154 -0
  92. package/lib/api/hotswap/appsync-mapping-templates.d.ts +3 -0
  93. package/lib/api/hotswap/appsync-mapping-templates.js +157 -0
  94. package/lib/api/hotswap/code-build-projects.d.ts +3 -0
  95. package/lib/api/hotswap/code-build-projects.js +55 -0
  96. package/lib/api/hotswap/common.d.ts +126 -0
  97. package/lib/api/hotswap/common.js +170 -0
  98. package/lib/api/hotswap/ecs-services.d.ts +3 -0
  99. package/lib/api/hotswap/ecs-services.js +140 -0
  100. package/lib/api/hotswap/lambda-functions.d.ts +3 -0
  101. package/lib/api/hotswap/lambda-functions.js +309 -0
  102. package/lib/api/hotswap/s3-bucket-deployments.d.ts +9 -0
  103. package/lib/api/hotswap/s3-bucket-deployments.js +112 -0
  104. package/lib/api/hotswap/stepfunctions-state-machines.d.ts +3 -0
  105. package/lib/api/hotswap/stepfunctions-state-machines.js +42 -0
  106. package/lib/api/index.d.ts +5 -0
  107. package/lib/api/index.js +22 -0
  108. package/lib/api/logs/find-cloudwatch-logs.d.ts +24 -0
  109. package/lib/api/logs/find-cloudwatch-logs.js +97 -0
  110. package/lib/api/logs/logs-monitor.d.ts +53 -0
  111. package/lib/api/logs/logs-monitor.js +169 -0
  112. package/lib/api/plugin/context-provider-plugin.d.ts +6 -0
  113. package/lib/api/plugin/context-provider-plugin.js +7 -0
  114. package/lib/api/plugin/index.d.ts +3 -0
  115. package/lib/api/plugin/index.js +20 -0
  116. package/lib/api/plugin/mode.d.ts +4 -0
  117. package/lib/api/plugin/mode.js +9 -0
  118. package/lib/api/plugin/plugin.d.ts +63 -0
  119. package/lib/api/plugin/plugin.js +106 -0
  120. package/lib/api/settings.d.ts +29 -0
  121. package/lib/api/settings.js +141 -0
  122. package/lib/api/tags.d.ts +9 -0
  123. package/lib/api/tags.js +10 -0
  124. package/lib/api/toolkit-info.d.ts +51 -0
  125. package/lib/api/toolkit-info.js +156 -0
  126. package/lib/api/util/cloudformation/stack-activity-monitor.d.ts +237 -0
  127. package/lib/api/util/cloudformation/stack-activity-monitor.js +550 -0
  128. package/lib/api/util/cloudformation/stack-event-poller.d.ts +63 -0
  129. package/lib/api/util/cloudformation/stack-event-poller.js +129 -0
  130. package/lib/api/util/cloudformation/stack-status.d.ts +42 -0
  131. package/lib/api/util/cloudformation/stack-status.js +88 -0
  132. package/lib/api/util/display.d.ts +13 -0
  133. package/lib/api/util/display.js +80 -0
  134. package/lib/api/util/placeholders.d.ts +10 -0
  135. package/lib/api/util/placeholders.js +24 -0
  136. package/lib/api/util/rwlock.d.ts +65 -0
  137. package/lib/api/util/rwlock.js +179 -0
  138. package/lib/api/util/string-manipulation.d.ts +10 -0
  139. package/lib/api/util/string-manipulation.js +33 -0
  140. package/lib/api/util/template-body-parameter.d.ts +21 -0
  141. package/lib/api/util/template-body-parameter.js +104 -0
  142. package/lib/cli/cdk-toolkit.d.ts +594 -0
  143. package/lib/cli/cdk-toolkit.js +1019 -0
  144. package/lib/cli/cli-config.d.ts +10 -0
  145. package/lib/cli/cli-config.js +406 -0
  146. package/lib/cli/cli.d.ts +4 -0
  147. package/lib/cli/cli.js +538 -0
  148. package/lib/cli/convert-to-user-input.d.ts +3 -0
  149. package/lib/cli/convert-to-user-input.js +434 -0
  150. package/lib/cli/parse-command-line-arguments.d.ts +1 -0
  151. package/lib/cli/parse-command-line-arguments.js +806 -0
  152. package/lib/cli/platform-warnings.d.ts +2 -0
  153. package/lib/cli/platform-warnings.js +45 -0
  154. package/lib/cli/user-configuration.d.ts +90 -0
  155. package/lib/cli/user-configuration.js +272 -0
  156. package/lib/cli/user-input.d.ts +1163 -0
  157. package/lib/cli/user-input.js +3 -0
  158. package/lib/cli/util/console-formatters.d.ts +18 -0
  159. package/lib/cli/util/console-formatters.js +42 -0
  160. package/lib/cli/util/npm.d.ts +1 -0
  161. package/lib/cli/util/npm.js +22 -0
  162. package/lib/cli/util/yargs-helpers.d.ts +22 -0
  163. package/lib/cli/util/yargs-helpers.js +49 -0
  164. package/lib/cli/version.d.ts +13 -0
  165. package/lib/cli/version.js +120 -0
  166. package/lib/commands/context.d.ts +35 -0
  167. package/lib/commands/context.js +156 -0
  168. package/lib/commands/docs.d.ts +13 -0
  169. package/lib/commands/docs.js +32 -0
  170. package/lib/commands/doctor.d.ts +1 -0
  171. package/lib/commands/doctor.js +69 -0
  172. package/lib/commands/migrate.d.ts +327 -0
  173. package/lib/commands/migrate.js +804 -0
  174. package/lib/context-providers/ami.d.ts +11 -0
  175. package/lib/context-providers/ami.js +50 -0
  176. package/lib/context-providers/availability-zones.d.ts +11 -0
  177. package/lib/context-providers/availability-zones.js +27 -0
  178. package/lib/context-providers/endpoint-service-availability-zones.d.ts +11 -0
  179. package/lib/context-providers/endpoint-service-availability-zones.js +33 -0
  180. package/lib/context-providers/hosted-zones.d.ts +10 -0
  181. package/lib/context-providers/hosted-zones.js +67 -0
  182. package/lib/context-providers/index.d.ts +30 -0
  183. package/lib/context-providers/index.js +109 -0
  184. package/lib/context-providers/keys.d.ts +11 -0
  185. package/lib/context-providers/keys.js +52 -0
  186. package/lib/context-providers/load-balancers.d.ts +20 -0
  187. package/lib/context-providers/load-balancers.js +159 -0
  188. package/lib/context-providers/security-groups.d.ts +9 -0
  189. package/lib/context-providers/security-groups.js +70 -0
  190. package/lib/context-providers/ssm-parameters.d.ts +23 -0
  191. package/lib/context-providers/ssm-parameters.js +59 -0
  192. package/lib/context-providers/vpcs.d.ts +11 -0
  193. package/lib/context-providers/vpcs.js +288 -0
  194. package/lib/diff.d.ts +28 -0
  195. package/lib/diff.js +165 -0
  196. package/lib/import.d.ts +182 -0
  197. package/lib/import.js +335 -0
  198. package/lib/index.d.ts +3 -0
  199. package/lib/index.js +348304 -0
  200. package/lib/index_bg.wasm +0 -0
  201. package/lib/init-hooks.d.ts +40 -0
  202. package/lib/init-hooks.js +64 -0
  203. package/lib/init-templates/.init-version.json +1 -0
  204. package/lib/init-templates/.no-packagejson-validator +0 -0
  205. package/lib/init-templates/.recommended-feature-flags.json +68 -0
  206. package/lib/init-templates/LICENSE +16 -0
  207. package/lib/init-templates/app/csharp/.template.gitignore +342 -0
  208. package/lib/init-templates/app/csharp/README.md +14 -0
  209. package/lib/init-templates/app/csharp/cdk.template.json +15 -0
  210. package/lib/init-templates/app/csharp/src/%name.PascalCased%/%name.PascalCased%.template.csproj +20 -0
  211. package/lib/init-templates/app/csharp/src/%name.PascalCased%/%name.PascalCased%Stack.template.cs +13 -0
  212. package/lib/init-templates/app/csharp/src/%name.PascalCased%/GlobalSuppressions.cs +1 -0
  213. package/lib/init-templates/app/csharp/src/%name.PascalCased%/Program.template.cs +44 -0
  214. package/lib/init-templates/app/csharp/src/%name.PascalCased%.template.sln +18 -0
  215. package/lib/init-templates/app/fsharp/.template.gitignore +342 -0
  216. package/lib/init-templates/app/fsharp/README.md +18 -0
  217. package/lib/init-templates/app/fsharp/cdk.template.json +14 -0
  218. package/lib/init-templates/app/fsharp/src/%name.PascalCased%/%name.PascalCased%.template.fsproj +25 -0
  219. package/lib/init-templates/app/fsharp/src/%name.PascalCased%/%name.PascalCased%Stack.template.fs +8 -0
  220. package/lib/init-templates/app/fsharp/src/%name.PascalCased%/Program.template.fs +11 -0
  221. package/lib/init-templates/app/fsharp/src/%name.PascalCased%.template.sln +18 -0
  222. package/lib/init-templates/app/go/%name%.template.go +70 -0
  223. package/lib/init-templates/app/go/%name%_test.template.go +26 -0
  224. package/lib/init-templates/app/go/.template.gitignore +19 -0
  225. package/lib/init-templates/app/go/README.md +12 -0
  226. package/lib/init-templates/app/go/cdk.template.json +13 -0
  227. package/lib/init-templates/app/go/go.template.mod +9 -0
  228. package/lib/init-templates/app/info.json +4 -0
  229. package/lib/init-templates/app/java/.template.gitignore +13 -0
  230. package/lib/init-templates/app/java/README.md +18 -0
  231. package/lib/init-templates/app/java/cdk.json +13 -0
  232. package/lib/init-templates/app/java/pom.xml +60 -0
  233. package/lib/init-templates/app/java/src/main/java/com/myorg/%name.PascalCased%App.template.java +42 -0
  234. package/lib/init-templates/app/java/src/main/java/com/myorg/%name.PascalCased%Stack.template.java +24 -0
  235. package/lib/init-templates/app/java/src/test/java/com/myorg/%name.PascalCased%Test.template.java +26 -0
  236. package/lib/init-templates/app/javascript/.template.gitignore +5 -0
  237. package/lib/init-templates/app/javascript/.template.npmignore +3 -0
  238. package/lib/init-templates/app/javascript/README.md +12 -0
  239. package/lib/init-templates/app/javascript/bin/%name%.template.js +21 -0
  240. package/lib/init-templates/app/javascript/cdk.template.json +15 -0
  241. package/lib/init-templates/app/javascript/jest.config.js +3 -0
  242. package/lib/init-templates/app/javascript/lib/%name%-stack.template.js +23 -0
  243. package/lib/init-templates/app/javascript/package.json +20 -0
  244. package/lib/init-templates/app/javascript/test/%name%.test.template.js +17 -0
  245. package/lib/init-templates/app/python/%name.PythonModule%/%name.PythonModule%_stack.template.py +19 -0
  246. package/lib/init-templates/app/python/%name.PythonModule%/__init__.py +0 -0
  247. package/lib/init-templates/app/python/.template.gitignore +10 -0
  248. package/lib/init-templates/app/python/README.template.md +58 -0
  249. package/lib/init-templates/app/python/app.template.py +28 -0
  250. package/lib/init-templates/app/python/cdk.template.json +15 -0
  251. package/lib/init-templates/app/python/requirements-dev.txt +1 -0
  252. package/lib/init-templates/app/python/requirements.txt +2 -0
  253. package/lib/init-templates/app/python/source.bat +13 -0
  254. package/lib/init-templates/app/python/tests/__init__.py +0 -0
  255. package/lib/init-templates/app/python/tests/unit/__init__.py +0 -0
  256. package/lib/init-templates/app/python/tests/unit/test_%name.PythonModule%_stack.template.py +15 -0
  257. package/lib/init-templates/app/typescript/.template.gitignore +8 -0
  258. package/lib/init-templates/app/typescript/.template.npmignore +6 -0
  259. package/lib/init-templates/app/typescript/README.md +14 -0
  260. package/lib/init-templates/app/typescript/bin/%name%.template.ts +20 -0
  261. package/lib/init-templates/app/typescript/cdk.template.json +17 -0
  262. package/lib/init-templates/app/typescript/jest.config.js +8 -0
  263. package/lib/init-templates/app/typescript/lib/%name%-stack.template.ts +16 -0
  264. package/lib/init-templates/app/typescript/package.json +26 -0
  265. package/lib/init-templates/app/typescript/test/%name%.test.template.ts +17 -0
  266. package/lib/init-templates/app/typescript/tsconfig.json +31 -0
  267. package/lib/init-templates/lib/info.json +4 -0
  268. package/lib/init-templates/lib/typescript/.template.gitignore +8 -0
  269. package/lib/init-templates/lib/typescript/.template.npmignore +6 -0
  270. package/lib/init-templates/lib/typescript/README.template.md +12 -0
  271. package/lib/init-templates/lib/typescript/jest.config.js +8 -0
  272. package/lib/init-templates/lib/typescript/lib/index.template.ts +21 -0
  273. package/lib/init-templates/lib/typescript/package.json +24 -0
  274. package/lib/init-templates/lib/typescript/test/%name%.test.template.ts +18 -0
  275. package/lib/init-templates/lib/typescript/tsconfig.json +31 -0
  276. package/lib/init-templates/sample-app/csharp/.template.gitignore +342 -0
  277. package/lib/init-templates/sample-app/csharp/README.template.md +19 -0
  278. package/lib/init-templates/sample-app/csharp/cdk.template.json +15 -0
  279. package/lib/init-templates/sample-app/csharp/src/%name.PascalCased%/%name.PascalCased%.template.csproj +20 -0
  280. package/lib/init-templates/sample-app/csharp/src/%name.PascalCased%/%name.PascalCased%Stack.template.cs +24 -0
  281. package/lib/init-templates/sample-app/csharp/src/%name.PascalCased%/GlobalSuppressions.cs +1 -0
  282. package/lib/init-templates/sample-app/csharp/src/%name.PascalCased%/Program.template.cs +15 -0
  283. package/lib/init-templates/sample-app/csharp/src/%name.PascalCased%.template.sln +18 -0
  284. package/lib/init-templates/sample-app/fsharp/.template.gitignore +342 -0
  285. package/lib/init-templates/sample-app/fsharp/README.template.md +20 -0
  286. package/lib/init-templates/sample-app/fsharp/cdk.template.json +14 -0
  287. package/lib/init-templates/sample-app/fsharp/src/%name.PascalCased%/%name.PascalCased%.template.fsproj +25 -0
  288. package/lib/init-templates/sample-app/fsharp/src/%name.PascalCased%/%name.PascalCased%Stack.template.fs +14 -0
  289. package/lib/init-templates/sample-app/fsharp/src/%name.PascalCased%/Program.template.fs +11 -0
  290. package/lib/init-templates/sample-app/fsharp/src/%name.PascalCased%.template.sln +18 -0
  291. package/lib/init-templates/sample-app/go/%name%.template.go +73 -0
  292. package/lib/init-templates/sample-app/go/%name%_test.template.go +25 -0
  293. package/lib/init-templates/sample-app/go/.template.gitignore +19 -0
  294. package/lib/init-templates/sample-app/go/README.md +12 -0
  295. package/lib/init-templates/sample-app/go/cdk.template.json +13 -0
  296. package/lib/init-templates/sample-app/go/go.template.mod +9 -0
  297. package/lib/init-templates/sample-app/info.json +4 -0
  298. package/lib/init-templates/sample-app/java/.template.gitignore +13 -0
  299. package/lib/init-templates/sample-app/java/README.template.md +19 -0
  300. package/lib/init-templates/sample-app/java/cdk.json +13 -0
  301. package/lib/init-templates/sample-app/java/pom.xml +55 -0
  302. package/lib/init-templates/sample-app/java/src/main/java/com/myorg/%name.PascalCased%App.template.java +13 -0
  303. package/lib/init-templates/sample-app/java/src/main/java/com/myorg/%name.PascalCased%Stack.template.java +29 -0
  304. package/lib/init-templates/sample-app/java/src/test/java/com/myorg/%name.PascalCased%StackTest.template.java +27 -0
  305. package/lib/init-templates/sample-app/javascript/.template.gitignore +5 -0
  306. package/lib/init-templates/sample-app/javascript/.template.npmignore +3 -0
  307. package/lib/init-templates/sample-app/javascript/README.template.md +13 -0
  308. package/lib/init-templates/sample-app/javascript/bin/%name%.template.js +6 -0
  309. package/lib/init-templates/sample-app/javascript/cdk.template.json +15 -0
  310. package/lib/init-templates/sample-app/javascript/jest.config.js +3 -0
  311. package/lib/init-templates/sample-app/javascript/lib/%name%-stack.template.js +25 -0
  312. package/lib/init-templates/sample-app/javascript/package.json +20 -0
  313. package/lib/init-templates/sample-app/javascript/test/%name%.test.template.js +16 -0
  314. package/lib/init-templates/sample-app/javascript/tsconfig.json +34 -0
  315. package/lib/init-templates/sample-app/python/%name.PythonModule%/%name.PythonModule%_stack.template.py +26 -0
  316. package/lib/init-templates/sample-app/python/%name.PythonModule%/__init__.py +0 -0
  317. package/lib/init-templates/sample-app/python/.template.gitignore +22 -0
  318. package/lib/init-templates/sample-app/python/README.template.md +65 -0
  319. package/lib/init-templates/sample-app/python/app.template.py +11 -0
  320. package/lib/init-templates/sample-app/python/cdk.template.json +15 -0
  321. package/lib/init-templates/sample-app/python/requirements-dev.txt +1 -0
  322. package/lib/init-templates/sample-app/python/requirements.txt +2 -0
  323. package/lib/init-templates/sample-app/python/source.bat +13 -0
  324. package/lib/init-templates/sample-app/python/tests/__init__.py +0 -0
  325. package/lib/init-templates/sample-app/python/tests/unit/__init__.py +0 -0
  326. package/lib/init-templates/sample-app/python/tests/unit/test_%name.PythonModule%_stack.template.py +21 -0
  327. package/lib/init-templates/sample-app/typescript/.template.gitignore +8 -0
  328. package/lib/init-templates/sample-app/typescript/.template.npmignore +6 -0
  329. package/lib/init-templates/sample-app/typescript/README.template.md +15 -0
  330. package/lib/init-templates/sample-app/typescript/bin/%name%.template.ts +6 -0
  331. package/lib/init-templates/sample-app/typescript/cdk.template.json +17 -0
  332. package/lib/init-templates/sample-app/typescript/jest.config.js +8 -0
  333. package/lib/init-templates/sample-app/typescript/lib/%name%-stack.template.ts +19 -0
  334. package/lib/init-templates/sample-app/typescript/package.json +26 -0
  335. package/lib/init-templates/sample-app/typescript/test/%name%.test.template.ts +17 -0
  336. package/lib/init-templates/sample-app/typescript/tsconfig.json +31 -0
  337. package/lib/init.d.ts +52 -0
  338. package/lib/init.js +430 -0
  339. package/lib/legacy-exports-source.d.ts +27 -0
  340. package/lib/legacy-exports-source.js +88 -0
  341. package/lib/legacy-exports.d.ts +10 -0
  342. package/lib/legacy-exports.js +28 -0
  343. package/lib/legacy-logging-source.d.ts +32 -0
  344. package/lib/legacy-logging-source.js +107 -0
  345. package/lib/list-stacks.d.ts +22 -0
  346. package/lib/list-stacks.js +23 -0
  347. package/lib/logging.d.ts +109 -0
  348. package/lib/logging.js +159 -0
  349. package/lib/migrator.d.ts +25 -0
  350. package/lib/migrator.js +67 -0
  351. package/lib/notices.d.ts +156 -0
  352. package/lib/notices.js +373 -0
  353. package/lib/os.d.ts +7 -0
  354. package/lib/os.js +92 -0
  355. package/lib/serialize.d.ts +27 -0
  356. package/lib/serialize.js +86 -0
  357. package/lib/toolkit/cli-io-host.d.ts +208 -0
  358. package/lib/toolkit/cli-io-host.js +282 -0
  359. package/lib/toolkit/error.d.ts +44 -0
  360. package/lib/toolkit/error.js +78 -0
  361. package/lib/tree.d.ts +31 -0
  362. package/lib/tree.js +40 -0
  363. package/lib/util/archive.d.ts +1 -0
  364. package/lib/util/archive.js +86 -0
  365. package/lib/util/arrays.d.ts +14 -0
  366. package/lib/util/arrays.js +36 -0
  367. package/lib/util/bool.d.ts +7 -0
  368. package/lib/util/bool.js +13 -0
  369. package/lib/util/bytes.d.ts +8 -0
  370. package/lib/util/bytes.js +21 -0
  371. package/lib/util/content-hash.d.ts +5 -0
  372. package/lib/util/content-hash.js +43 -0
  373. package/lib/util/directories.d.ts +23 -0
  374. package/lib/util/directories.js +57 -0
  375. package/lib/util/error.d.ts +9 -0
  376. package/lib/util/error.js +22 -0
  377. package/lib/util/index.d.ts +5 -0
  378. package/lib/util/index.js +22 -0
  379. package/lib/util/objects.d.ts +52 -0
  380. package/lib/util/objects.js +183 -0
  381. package/lib/util/parallel.d.ts +6 -0
  382. package/lib/util/parallel.js +44 -0
  383. package/lib/util/tables.d.ts +1 -0
  384. package/lib/util/tables.js +10 -0
  385. package/lib/util/type-brands.d.ts +39 -0
  386. package/lib/util/type-brands.js +38 -0
  387. package/lib/util/types.d.ts +27 -0
  388. package/lib/util/types.js +25 -0
  389. package/lib/util/validate-notification-arn.d.ts +4 -0
  390. package/lib/util/validate-notification-arn.js +10 -0
  391. package/lib/util/version-range.d.ts +2 -0
  392. package/lib/util/version-range.js +36 -0
  393. package/lib/util/work-graph-builder.d.ts +32 -0
  394. package/lib/util/work-graph-builder.js +167 -0
  395. package/lib/util/work-graph-types.d.ts +50 -0
  396. package/lib/util/work-graph-types.js +14 -0
  397. package/lib/util/work-graph.d.ts +70 -0
  398. package/lib/util/work-graph.js +344 -0
  399. package/lib/util/yaml-cfn.d.ts +15 -0
  400. package/lib/util/yaml-cfn.js +56 -0
  401. package/package.json +197 -0
  402. package/scripts/user-input-gen +2 -0
@@ -0,0 +1,1163 @@
1
+ import { Command } from './user-configuration';
2
+ /**
3
+ * The structure of the user input -- either CLI options or cdk.json -- generated from packages/aws-cdk/lib/config.ts
4
+ *
5
+ * @struct
6
+ */
7
+ export interface UserInput {
8
+ /**
9
+ * The CLI command name
10
+ */
11
+ readonly command?: Command;
12
+ /**
13
+ * Global options available to all CLI commands
14
+ */
15
+ readonly globalOptions?: GlobalOptions;
16
+ /**
17
+ * Lists all stacks in the app
18
+ *
19
+ * aliases: ls
20
+ */
21
+ readonly list?: ListOptions;
22
+ /**
23
+ * Synthesizes and prints the CloudFormation template for this stack
24
+ *
25
+ * aliases: synthesize
26
+ */
27
+ readonly synth?: SynthOptions;
28
+ /**
29
+ * Deploys the CDK toolkit stack into an AWS environment
30
+ */
31
+ readonly bootstrap?: BootstrapOptions;
32
+ /**
33
+ * Garbage collect assets. Options detailed here: https://github.com/aws/aws-cdk/blob/main/packages/aws-cdk/README.md#cdk-gc
34
+ */
35
+ readonly gc?: GcOptions;
36
+ /**
37
+ * Deploys the stack(s) named STACKS into your AWS account
38
+ */
39
+ readonly deploy?: DeployOptions;
40
+ /**
41
+ * Rolls back the stack(s) named STACKS to their last stable state
42
+ */
43
+ readonly rollback?: RollbackOptions;
44
+ /**
45
+ * Import existing resource(s) into the given STACK
46
+ */
47
+ readonly import?: ImportOptions;
48
+ /**
49
+ * Shortcut for 'deploy --watch'
50
+ */
51
+ readonly watch?: WatchOptions;
52
+ /**
53
+ * Destroy the stack(s) named STACKS
54
+ */
55
+ readonly destroy?: DestroyOptions;
56
+ /**
57
+ * Compares the specified stack with the deployed stack or a local template file, and returns with status 1 if any difference is found
58
+ */
59
+ readonly diff?: DiffOptions;
60
+ /**
61
+ * Returns all metadata associated with this stack
62
+ */
63
+ readonly metadata?: MetadataOptions;
64
+ /**
65
+ * Acknowledge a notice so that it does not show up anymore
66
+ *
67
+ * aliases: ack
68
+ */
69
+ readonly acknowledge?: AcknowledgeOptions;
70
+ /**
71
+ * Returns a list of relevant notices
72
+ */
73
+ readonly notices?: NoticesOptions;
74
+ /**
75
+ * Create a new, empty CDK project from a template.
76
+ */
77
+ readonly init?: InitOptions;
78
+ /**
79
+ * Migrate existing AWS resources into a CDK app
80
+ */
81
+ readonly migrate?: MigrateOptions;
82
+ /**
83
+ * Manage cached context values
84
+ */
85
+ readonly context?: ContextOptions;
86
+ /**
87
+ * Opens the reference documentation in a browser
88
+ *
89
+ * aliases: doc
90
+ */
91
+ readonly docs?: DocsOptions;
92
+ /**
93
+ * Check your set-up for potential problems
94
+ */
95
+ readonly doctor?: DoctorOptions;
96
+ }
97
+ /**
98
+ * Global options available to all CLI commands
99
+ *
100
+ * @struct
101
+ */
102
+ export interface GlobalOptions {
103
+ /**
104
+ * REQUIRED WHEN RUNNING APP: command-line for executing your app or a cloud assembly directory (e.g. "node bin/my-app.js"). Can also be specified in cdk.json or ~/.cdk.json
105
+ *
106
+ * @default - undefined
107
+ */
108
+ readonly app?: string;
109
+ /**
110
+ * Command-line for a pre-synth build
111
+ *
112
+ * @default - undefined
113
+ */
114
+ readonly build?: string;
115
+ /**
116
+ * Add contextual string parameter (KEY=VALUE)
117
+ *
118
+ * @default - undefined
119
+ */
120
+ readonly context?: Array<string>;
121
+ /**
122
+ * Name or path of a node package that extend the CDK features. Can be specified multiple times
123
+ *
124
+ * @default - undefined
125
+ */
126
+ readonly plugin?: Array<string>;
127
+ /**
128
+ * Print trace for stack warnings
129
+ *
130
+ * @default - undefined
131
+ */
132
+ readonly trace?: boolean;
133
+ /**
134
+ * Do not construct stacks with warnings
135
+ *
136
+ * @default - undefined
137
+ */
138
+ readonly strict?: boolean;
139
+ /**
140
+ * Perform context lookups (synthesis fails if this is disabled and context lookups need to be performed)
141
+ *
142
+ * @default - true
143
+ */
144
+ readonly lookups?: boolean;
145
+ /**
146
+ * Ignores synthesis errors, which will likely produce an invalid output
147
+ *
148
+ * @default - false
149
+ */
150
+ readonly ignoreErrors?: boolean;
151
+ /**
152
+ * Use JSON output instead of YAML when templates are printed to STDOUT
153
+ *
154
+ * @default - false
155
+ */
156
+ readonly json?: boolean;
157
+ /**
158
+ * Show debug logs (specify multiple times to increase verbosity)
159
+ *
160
+ * @default - false
161
+ */
162
+ readonly verbose?: number;
163
+ /**
164
+ * Debug the CDK app. Log additional information during synthesis, such as creation stack traces of tokens (sets CDK_DEBUG, will slow down synthesis)
165
+ *
166
+ * @default - false
167
+ */
168
+ readonly debug?: boolean;
169
+ /**
170
+ * Use the indicated AWS profile as the default environment
171
+ *
172
+ * @default - undefined
173
+ */
174
+ readonly profile?: string;
175
+ /**
176
+ * Use the indicated proxy. Will read from HTTPS_PROXY environment variable if not specified
177
+ *
178
+ * @default - undefined
179
+ */
180
+ readonly proxy?: string;
181
+ /**
182
+ * Path to CA certificate to use when validating HTTPS requests. Will read from AWS_CA_BUNDLE environment variable if not specified
183
+ *
184
+ * @default - undefined
185
+ */
186
+ readonly caBundlePath?: string;
187
+ /**
188
+ * Force trying to fetch EC2 instance credentials. Default: guess EC2 instance status
189
+ *
190
+ * @default - undefined
191
+ */
192
+ readonly ec2creds?: boolean;
193
+ /**
194
+ * Include the "AWS::CDK::Metadata" resource in synthesized templates (enabled by default)
195
+ *
196
+ * @default - undefined
197
+ */
198
+ readonly versionReporting?: boolean;
199
+ /**
200
+ * Include "aws:cdk:path" CloudFormation metadata for each resource (enabled by default)
201
+ *
202
+ * @default - undefined
203
+ */
204
+ readonly pathMetadata?: boolean;
205
+ /**
206
+ * Include "aws:asset:*" CloudFormation metadata for resources that uses assets (enabled by default)
207
+ *
208
+ * @default - undefined
209
+ */
210
+ readonly assetMetadata?: boolean;
211
+ /**
212
+ * ARN of Role to use when invoking CloudFormation
213
+ *
214
+ * @default - undefined
215
+ */
216
+ readonly roleArn?: string;
217
+ /**
218
+ * Copy assets to the output directory (use --no-staging to disable the copy of assets which allows local debugging via the SAM CLI to reference the original source files)
219
+ *
220
+ * @default - true
221
+ */
222
+ readonly staging?: boolean;
223
+ /**
224
+ * Emits the synthesized cloud assembly into a directory (default: cdk.out)
225
+ *
226
+ * @default - undefined
227
+ */
228
+ readonly output?: string;
229
+ /**
230
+ * Show relevant notices
231
+ *
232
+ * @default - undefined
233
+ */
234
+ readonly notices?: boolean;
235
+ /**
236
+ * Removes colors and other style from console output
237
+ *
238
+ * @default - false
239
+ */
240
+ readonly noColor?: boolean;
241
+ /**
242
+ * Force CI detection. If CI=true then logs will be sent to stdout instead of stderr
243
+ *
244
+ * @default - undefined
245
+ */
246
+ readonly ci?: boolean;
247
+ /**
248
+ * Opt in to unstable features. The flag indicates that the scope and API of a feature might still change. Otherwise the feature is generally production ready and fully supported. Can be specified multiple times.
249
+ *
250
+ * @default - []
251
+ */
252
+ readonly unstable?: Array<string>;
253
+ }
254
+ /**
255
+ * Lists all stacks in the app
256
+ *
257
+ * aliases: ls
258
+ *
259
+ * @struct
260
+ */
261
+ export interface ListOptions {
262
+ /**
263
+ * Display environment information for each stack
264
+ *
265
+ * aliases: l
266
+ *
267
+ * @default - false
268
+ */
269
+ readonly long?: boolean;
270
+ /**
271
+ * Display stack dependency information for each stack
272
+ *
273
+ * aliases: d
274
+ *
275
+ * @default - false
276
+ */
277
+ readonly showDependencies?: boolean;
278
+ /**
279
+ * Positional argument for list
280
+ */
281
+ readonly STACKS?: Array<string>;
282
+ }
283
+ /**
284
+ * Synthesizes and prints the CloudFormation template for this stack
285
+ *
286
+ * aliases: synthesize
287
+ *
288
+ * @struct
289
+ */
290
+ export interface SynthOptions {
291
+ /**
292
+ * Only synthesize requested stacks, don't include dependencies
293
+ *
294
+ * aliases: e
295
+ *
296
+ * @default - undefined
297
+ */
298
+ readonly exclusively?: boolean;
299
+ /**
300
+ * After synthesis, validate stacks with the "validateOnSynth" attribute set (can also be controlled with CDK_VALIDATION)
301
+ *
302
+ * @default - true
303
+ */
304
+ readonly validation?: boolean;
305
+ /**
306
+ * Do not output CloudFormation Template to stdout
307
+ *
308
+ * aliases: q
309
+ *
310
+ * @default - false
311
+ */
312
+ readonly quiet?: boolean;
313
+ /**
314
+ * Positional argument for synth
315
+ */
316
+ readonly STACKS?: Array<string>;
317
+ }
318
+ /**
319
+ * Deploys the CDK toolkit stack into an AWS environment
320
+ *
321
+ * @struct
322
+ */
323
+ export interface BootstrapOptions {
324
+ /**
325
+ * The name of the CDK toolkit bucket; bucket will be created and must not exist
326
+ *
327
+ * aliases: b toolkit-bucket-name
328
+ *
329
+ * @default - undefined
330
+ */
331
+ readonly bootstrapBucketName?: string;
332
+ /**
333
+ * AWS KMS master key ID used for the SSE-KMS encryption
334
+ *
335
+ * @default - undefined
336
+ */
337
+ readonly bootstrapKmsKeyId?: string;
338
+ /**
339
+ * Use the example permissions boundary.
340
+ *
341
+ * aliases: epb
342
+ *
343
+ * @default - undefined
344
+ */
345
+ readonly examplePermissionsBoundary?: boolean;
346
+ /**
347
+ * Use the permissions boundary specified by name.
348
+ *
349
+ * aliases: cpb
350
+ *
351
+ * @default - undefined
352
+ */
353
+ readonly customPermissionsBoundary?: string;
354
+ /**
355
+ * Create a Customer Master Key (CMK) for the bootstrap bucket (you will be charged but can customize permissions, modern bootstrapping only)
356
+ *
357
+ * @default - undefined
358
+ */
359
+ readonly bootstrapCustomerKey?: boolean;
360
+ /**
361
+ * String which must be unique for each bootstrap stack. You must configure it on your CDK app if you change this from the default.
362
+ *
363
+ * @default - undefined
364
+ */
365
+ readonly qualifier?: string;
366
+ /**
367
+ * Block public access configuration on CDK toolkit bucket (enabled by default)
368
+ *
369
+ * @default - undefined
370
+ */
371
+ readonly publicAccessBlockConfiguration?: boolean;
372
+ /**
373
+ * Tags to add for the stack (KEY=VALUE)
374
+ *
375
+ * aliases: t
376
+ *
377
+ * @default - []
378
+ */
379
+ readonly tags?: Array<string>;
380
+ /**
381
+ * Whether to execute ChangeSet (--no-execute will NOT execute the ChangeSet)
382
+ *
383
+ * @default - true
384
+ */
385
+ readonly execute?: boolean;
386
+ /**
387
+ * The AWS account IDs that should be trusted to perform deployments into this environment (may be repeated, modern bootstrapping only)
388
+ *
389
+ * @default - []
390
+ */
391
+ readonly trust?: Array<string>;
392
+ /**
393
+ * The AWS account IDs that should be trusted to look up values in this environment (may be repeated, modern bootstrapping only)
394
+ *
395
+ * @default - []
396
+ */
397
+ readonly trustForLookup?: Array<string>;
398
+ /**
399
+ * The AWS account IDs that should not be trusted by this environment (may be repeated, modern bootstrapping only)
400
+ *
401
+ * @default - []
402
+ */
403
+ readonly untrust?: Array<string>;
404
+ /**
405
+ * The Managed Policy ARNs that should be attached to the role performing deployments into this environment (may be repeated, modern bootstrapping only)
406
+ *
407
+ * @default - []
408
+ */
409
+ readonly cloudformationExecutionPolicies?: Array<string>;
410
+ /**
411
+ * Always bootstrap even if it would downgrade template version
412
+ *
413
+ * aliases: f
414
+ *
415
+ * @default - false
416
+ */
417
+ readonly force?: boolean;
418
+ /**
419
+ * Toggle CloudFormation termination protection on the bootstrap stacks
420
+ *
421
+ * @default - undefined
422
+ */
423
+ readonly terminationProtection?: boolean;
424
+ /**
425
+ * Instead of actual bootstrapping, print the current CLI's bootstrapping template to stdout for customization
426
+ *
427
+ * @default - false
428
+ */
429
+ readonly showTemplate?: boolean;
430
+ /**
431
+ * The name of the CDK toolkit stack to create
432
+ *
433
+ * @default - undefined
434
+ */
435
+ readonly toolkitStackName?: string;
436
+ /**
437
+ * Use the template from the given file instead of the built-in one (use --show-template to obtain an example)
438
+ *
439
+ * @default - undefined
440
+ */
441
+ readonly template?: string;
442
+ /**
443
+ * Use previous values for existing parameters (you must specify all parameters on every deployment if this is disabled)
444
+ *
445
+ * @default - true
446
+ */
447
+ readonly previousParameters?: boolean;
448
+ /**
449
+ * Positional argument for bootstrap
450
+ */
451
+ readonly ENVIRONMENTS?: Array<string>;
452
+ }
453
+ /**
454
+ * Garbage collect assets. Options detailed here: https://github.com/aws/aws-cdk/blob/main/packages/aws-cdk/README.md#cdk-gc
455
+ *
456
+ * @struct
457
+ */
458
+ export interface GcOptions {
459
+ /**
460
+ * The action (or sub-action) you want to perform. Valid entires are "print", "tag", "delete-tagged", "full".
461
+ *
462
+ * @default - "full"
463
+ */
464
+ readonly action?: string;
465
+ /**
466
+ * Specify either ecr, s3, or all
467
+ *
468
+ * @default - "all"
469
+ */
470
+ readonly type?: string;
471
+ /**
472
+ * Delete assets that have been marked as isolated for this many days
473
+ *
474
+ * @default - 0
475
+ */
476
+ readonly rollbackBufferDays?: number;
477
+ /**
478
+ * Never delete assets younger than this (in days)
479
+ *
480
+ * @default - 1
481
+ */
482
+ readonly createdBufferDays?: number;
483
+ /**
484
+ * Confirm via manual prompt before deletion
485
+ *
486
+ * @default - true
487
+ */
488
+ readonly confirm?: boolean;
489
+ /**
490
+ * The name of the CDK toolkit stack, if different from the default "CDKToolkit"
491
+ *
492
+ * @default - undefined
493
+ */
494
+ readonly bootstrapStackName?: string;
495
+ /**
496
+ * Positional argument for gc
497
+ */
498
+ readonly ENVIRONMENTS?: Array<string>;
499
+ }
500
+ /**
501
+ * Deploys the stack(s) named STACKS into your AWS account
502
+ *
503
+ * @struct
504
+ */
505
+ export interface DeployOptions {
506
+ /**
507
+ * Deploy all available stacks
508
+ *
509
+ * @default - false
510
+ */
511
+ readonly all?: boolean;
512
+ /**
513
+ * Do not rebuild asset with the given ID. Can be specified multiple times
514
+ *
515
+ * aliases: E
516
+ *
517
+ * @default - []
518
+ */
519
+ readonly buildExclude?: Array<string>;
520
+ /**
521
+ * Only deploy requested stacks, don't include dependencies
522
+ *
523
+ * aliases: e
524
+ *
525
+ * @default - undefined
526
+ */
527
+ readonly exclusively?: boolean;
528
+ /**
529
+ * What security-sensitive changes need manual approval
530
+ *
531
+ * @default - undefined
532
+ */
533
+ readonly requireApproval?: string;
534
+ /**
535
+ * ARNs of SNS topics that CloudFormation will notify with stack related events. These will be added to ARNs specified with the 'notificationArns' stack property.
536
+ *
537
+ * @default - undefined
538
+ */
539
+ readonly notificationArns?: Array<string>;
540
+ /**
541
+ * Tags to add to the stack (KEY=VALUE), overrides tags from Cloud Assembly (deprecated)
542
+ *
543
+ * aliases: t
544
+ *
545
+ * @default - undefined
546
+ */
547
+ readonly tags?: Array<string>;
548
+ /**
549
+ * Whether to execute ChangeSet (--no-execute will NOT execute the ChangeSet) (deprecated)
550
+ *
551
+ * @deprecated true
552
+ * @default - undefined
553
+ */
554
+ readonly execute?: boolean;
555
+ /**
556
+ * Name of the CloudFormation change set to create (only if method is not direct)
557
+ *
558
+ * @default - undefined
559
+ */
560
+ readonly changeSetName?: string;
561
+ /**
562
+ * How to perform the deployment. Direct is a bit faster but lacks progress information
563
+ *
564
+ * aliases: m
565
+ *
566
+ * @default - undefined
567
+ */
568
+ readonly method?: string;
569
+ /**
570
+ * Indicates if the stack set imports resources that already exist.
571
+ *
572
+ * @default - false
573
+ */
574
+ readonly importExistingResources?: boolean;
575
+ /**
576
+ * Always deploy stack even if templates are identical
577
+ *
578
+ * aliases: f
579
+ *
580
+ * @default - false
581
+ */
582
+ readonly force?: boolean;
583
+ /**
584
+ * Additional parameters passed to CloudFormation at deploy time (STACK:KEY=VALUE)
585
+ *
586
+ * @default - {}
587
+ */
588
+ readonly parameters?: Array<string>;
589
+ /**
590
+ * Path to file where stack outputs will be written as JSON
591
+ *
592
+ * aliases: O
593
+ *
594
+ * @default - undefined
595
+ */
596
+ readonly outputsFile?: string;
597
+ /**
598
+ * Use previous values for existing parameters (you must specify all parameters on every deployment if this is disabled)
599
+ *
600
+ * @default - true
601
+ */
602
+ readonly previousParameters?: boolean;
603
+ /**
604
+ * The name of the existing CDK toolkit stack (only used for app using legacy synthesis)
605
+ *
606
+ * @default - undefined
607
+ */
608
+ readonly toolkitStackName?: string;
609
+ /**
610
+ * Display mode for stack activity events
611
+ *
612
+ * @default - undefined
613
+ */
614
+ readonly progress?: string;
615
+ /**
616
+ * Rollback stack to stable state on failure. Defaults to 'true', iterate more rapidly with --no-rollback or -R. Note: do **not** disable this flag for deployments with resource replacements, as that will always fail
617
+ *
618
+ * @default - undefined
619
+ */
620
+ readonly rollback?: boolean;
621
+ /**
622
+ * Attempts to perform a 'hotswap' deployment, but does not fall back to a full deployment if that is not possible. Instead, changes to any non-hotswappable properties are ignored.Do not use this in production environments
623
+ *
624
+ * @default - undefined
625
+ */
626
+ readonly hotswap?: boolean;
627
+ /**
628
+ * Attempts to perform a 'hotswap' deployment, which skips CloudFormation and updates the resources directly, and falls back to a full deployment if that is not possible. Do not use this in production environments
629
+ *
630
+ * @default - undefined
631
+ */
632
+ readonly hotswapFallback?: boolean;
633
+ /**
634
+ * Continuously observe the project files, and deploy the given stack(s) automatically when changes are detected. Implies --hotswap by default
635
+ *
636
+ * @default - undefined
637
+ */
638
+ readonly watch?: boolean;
639
+ /**
640
+ * Show CloudWatch log events from all resources in the selected Stacks in the terminal. 'true' by default, use --no-logs to turn off. Only in effect if specified alongside the '--watch' option
641
+ *
642
+ * @default - true
643
+ */
644
+ readonly logs?: boolean;
645
+ /**
646
+ * Maximum number of simultaneous deployments (dependency permitting) to execute.
647
+ *
648
+ * @default - 1
649
+ */
650
+ readonly concurrency?: number;
651
+ /**
652
+ * Whether to build/publish assets in parallel
653
+ *
654
+ * @default - undefined
655
+ */
656
+ readonly assetParallelism?: boolean;
657
+ /**
658
+ * Whether to build all assets before deploying the first stack (useful for failing Docker builds)
659
+ *
660
+ * @default - true
661
+ */
662
+ readonly assetPrebuild?: boolean;
663
+ /**
664
+ * Whether to deploy if the app contains no stacks
665
+ *
666
+ * @default - false
667
+ */
668
+ readonly ignoreNoStacks?: boolean;
669
+ /**
670
+ * Positional argument for deploy
671
+ */
672
+ readonly STACKS?: Array<string>;
673
+ }
674
+ /**
675
+ * Rolls back the stack(s) named STACKS to their last stable state
676
+ *
677
+ * @struct
678
+ */
679
+ export interface RollbackOptions {
680
+ /**
681
+ * Roll back all available stacks
682
+ *
683
+ * @default - false
684
+ */
685
+ readonly all?: boolean;
686
+ /**
687
+ * The name of the CDK toolkit stack the environment is bootstrapped with
688
+ *
689
+ * @default - undefined
690
+ */
691
+ readonly toolkitStackName?: string;
692
+ /**
693
+ * Orphan all resources for which the rollback operation fails.
694
+ *
695
+ * aliases: f
696
+ *
697
+ * @default - undefined
698
+ */
699
+ readonly force?: boolean;
700
+ /**
701
+ * Whether to validate the bootstrap stack version. Defaults to 'true', disable with --no-validate-bootstrap-version.
702
+ *
703
+ * @default - undefined
704
+ */
705
+ readonly validateBootstrapVersion?: boolean;
706
+ /**
707
+ * Orphan the given resources, identified by their logical ID (can be specified multiple times)
708
+ *
709
+ * @default - []
710
+ */
711
+ readonly orphan?: Array<string>;
712
+ /**
713
+ * Positional argument for rollback
714
+ */
715
+ readonly STACKS?: Array<string>;
716
+ }
717
+ /**
718
+ * Import existing resource(s) into the given STACK
719
+ *
720
+ * @struct
721
+ */
722
+ export interface ImportOptions {
723
+ /**
724
+ * Whether to execute ChangeSet (--no-execute will NOT execute the ChangeSet)
725
+ *
726
+ * @default - true
727
+ */
728
+ readonly execute?: boolean;
729
+ /**
730
+ * Name of the CloudFormation change set to create
731
+ *
732
+ * @default - undefined
733
+ */
734
+ readonly changeSetName?: string;
735
+ /**
736
+ * The name of the CDK toolkit stack to create
737
+ *
738
+ * @default - undefined
739
+ */
740
+ readonly toolkitStackName?: string;
741
+ /**
742
+ * Rollback stack to stable state on failure. Defaults to 'true', iterate more rapidly with --no-rollback or -R. Note: do **not** disable this flag for deployments with resource replacements, as that will always fail
743
+ *
744
+ * @default - undefined
745
+ */
746
+ readonly rollback?: boolean;
747
+ /**
748
+ * Do not abort if the template diff includes updates or deletes. This is probably safe but we're not sure, let us know how it goes.
749
+ *
750
+ * aliases: f
751
+ *
752
+ * @default - undefined
753
+ */
754
+ readonly force?: boolean;
755
+ /**
756
+ * If specified, CDK will generate a mapping of existing physical resources to CDK resources to be imported as. The mapping will be written in the given file path. No actual import operation will be performed
757
+ *
758
+ * aliases: r
759
+ *
760
+ * @default - undefined
761
+ */
762
+ readonly recordResourceMapping?: string;
763
+ /**
764
+ * If specified, CDK will use the given file to map physical resources to CDK resources for import, instead of interactively asking the user. Can be run from scripts
765
+ *
766
+ * aliases: m
767
+ *
768
+ * @default - undefined
769
+ */
770
+ readonly resourceMapping?: string;
771
+ /**
772
+ * Positional argument for import
773
+ */
774
+ readonly STACK?: string;
775
+ }
776
+ /**
777
+ * Shortcut for 'deploy --watch'
778
+ *
779
+ * @struct
780
+ */
781
+ export interface WatchOptions {
782
+ /**
783
+ * Do not rebuild asset with the given ID. Can be specified multiple times
784
+ *
785
+ * aliases: E
786
+ *
787
+ * @default - []
788
+ */
789
+ readonly buildExclude?: Array<string>;
790
+ /**
791
+ * Only deploy requested stacks, don't include dependencies
792
+ *
793
+ * aliases: e
794
+ *
795
+ * @default - undefined
796
+ */
797
+ readonly exclusively?: boolean;
798
+ /**
799
+ * Name of the CloudFormation change set to create
800
+ *
801
+ * @default - undefined
802
+ */
803
+ readonly changeSetName?: string;
804
+ /**
805
+ * Always deploy stack even if templates are identical
806
+ *
807
+ * aliases: f
808
+ *
809
+ * @default - false
810
+ */
811
+ readonly force?: boolean;
812
+ /**
813
+ * The name of the existing CDK toolkit stack (only used for app using legacy synthesis)
814
+ *
815
+ * @default - undefined
816
+ */
817
+ readonly toolkitStackName?: string;
818
+ /**
819
+ * Display mode for stack activity events
820
+ *
821
+ * @default - undefined
822
+ */
823
+ readonly progress?: string;
824
+ /**
825
+ * Rollback stack to stable state on failure. Defaults to 'true', iterate more rapidly with --no-rollback or -R. Note: do **not** disable this flag for deployments with resource replacements, as that will always fail
826
+ *
827
+ * @default - undefined
828
+ */
829
+ readonly rollback?: boolean;
830
+ /**
831
+ * Attempts to perform a 'hotswap' deployment, but does not fall back to a full deployment if that is not possible. Instead, changes to any non-hotswappable properties are ignored.'true' by default, use --no-hotswap to turn off
832
+ *
833
+ * @default - undefined
834
+ */
835
+ readonly hotswap?: boolean;
836
+ /**
837
+ * Attempts to perform a 'hotswap' deployment, which skips CloudFormation and updates the resources directly, and falls back to a full deployment if that is not possible.
838
+ *
839
+ * @default - undefined
840
+ */
841
+ readonly hotswapFallback?: boolean;
842
+ /**
843
+ * Show CloudWatch log events from all resources in the selected Stacks in the terminal. 'true' by default, use --no-logs to turn off
844
+ *
845
+ * @default - true
846
+ */
847
+ readonly logs?: boolean;
848
+ /**
849
+ * Maximum number of simultaneous deployments (dependency permitting) to execute.
850
+ *
851
+ * @default - 1
852
+ */
853
+ readonly concurrency?: number;
854
+ /**
855
+ * Positional argument for watch
856
+ */
857
+ readonly STACKS?: Array<string>;
858
+ }
859
+ /**
860
+ * Destroy the stack(s) named STACKS
861
+ *
862
+ * @struct
863
+ */
864
+ export interface DestroyOptions {
865
+ /**
866
+ * Destroy all available stacks
867
+ *
868
+ * @default - false
869
+ */
870
+ readonly all?: boolean;
871
+ /**
872
+ * Only destroy requested stacks, don't include dependees
873
+ *
874
+ * aliases: e
875
+ *
876
+ * @default - undefined
877
+ */
878
+ readonly exclusively?: boolean;
879
+ /**
880
+ * Do not ask for confirmation before destroying the stacks
881
+ *
882
+ * aliases: f
883
+ *
884
+ * @default - undefined
885
+ */
886
+ readonly force?: boolean;
887
+ /**
888
+ * Positional argument for destroy
889
+ */
890
+ readonly STACKS?: Array<string>;
891
+ }
892
+ /**
893
+ * Compares the specified stack with the deployed stack or a local template file, and returns with status 1 if any difference is found
894
+ *
895
+ * @struct
896
+ */
897
+ export interface DiffOptions {
898
+ /**
899
+ * Only diff requested stacks, don't include dependencies
900
+ *
901
+ * aliases: e
902
+ *
903
+ * @default - undefined
904
+ */
905
+ readonly exclusively?: boolean;
906
+ /**
907
+ * Number of context lines to include in arbitrary JSON diff rendering
908
+ *
909
+ * @default - 3
910
+ */
911
+ readonly contextLines?: number;
912
+ /**
913
+ * The path to the CloudFormation template to compare with
914
+ *
915
+ * @default - undefined
916
+ */
917
+ readonly template?: string;
918
+ /**
919
+ * Do not filter out AWS::CDK::Metadata resources, mangled non-ASCII characters, or the CheckBootstrapVersionRule
920
+ *
921
+ * @default - false
922
+ */
923
+ readonly strict?: boolean;
924
+ /**
925
+ * Only diff for broadened security changes
926
+ *
927
+ * @default - false
928
+ */
929
+ readonly securityOnly?: boolean;
930
+ /**
931
+ * Fail with exit code 1 in case of diff
932
+ *
933
+ * @default - undefined
934
+ */
935
+ readonly fail?: boolean;
936
+ /**
937
+ * Whether to compare against the template with Transforms already processed
938
+ *
939
+ * @default - false
940
+ */
941
+ readonly processed?: boolean;
942
+ /**
943
+ * Do not print stack name and default message when there is no diff to stdout
944
+ *
945
+ * aliases: q
946
+ *
947
+ * @default - false
948
+ */
949
+ readonly quiet?: boolean;
950
+ /**
951
+ * Whether to create a changeset to analyze resource replacements. In this mode, diff will use the deploy role instead of the lookup role.
952
+ *
953
+ * aliases: changeset
954
+ *
955
+ * @default - true
956
+ */
957
+ readonly changeSet?: boolean;
958
+ /**
959
+ * Positional argument for diff
960
+ */
961
+ readonly STACKS?: Array<string>;
962
+ }
963
+ /**
964
+ * Returns all metadata associated with this stack
965
+ *
966
+ * @struct
967
+ */
968
+ export interface MetadataOptions {
969
+ /**
970
+ * Positional argument for metadata
971
+ */
972
+ readonly STACK?: string;
973
+ }
974
+ /**
975
+ * Acknowledge a notice so that it does not show up anymore
976
+ *
977
+ * aliases: ack
978
+ *
979
+ * @struct
980
+ */
981
+ export interface AcknowledgeOptions {
982
+ /**
983
+ * Positional argument for acknowledge
984
+ */
985
+ readonly ID?: string;
986
+ }
987
+ /**
988
+ * Returns a list of relevant notices
989
+ *
990
+ * @struct
991
+ */
992
+ export interface NoticesOptions {
993
+ /**
994
+ * Returns a list of unacknowledged notices
995
+ *
996
+ * aliases: u
997
+ *
998
+ * @default - false
999
+ */
1000
+ readonly unacknowledged?: boolean;
1001
+ }
1002
+ /**
1003
+ * Create a new, empty CDK project from a template.
1004
+ *
1005
+ * @struct
1006
+ */
1007
+ export interface InitOptions {
1008
+ /**
1009
+ * The language to be used for the new project (default can be configured in ~/.cdk.json)
1010
+ *
1011
+ * aliases: l
1012
+ *
1013
+ * @default - undefined
1014
+ */
1015
+ readonly language?: string;
1016
+ /**
1017
+ * List the available templates
1018
+ *
1019
+ * @default - undefined
1020
+ */
1021
+ readonly list?: boolean;
1022
+ /**
1023
+ * If true, only generates project files, without executing additional operations such as setting up a git repo, installing dependencies or compiling the project
1024
+ *
1025
+ * @default - false
1026
+ */
1027
+ readonly generateOnly?: boolean;
1028
+ /**
1029
+ * Positional argument for init
1030
+ */
1031
+ readonly TEMPLATE?: string;
1032
+ }
1033
+ /**
1034
+ * Migrate existing AWS resources into a CDK app
1035
+ *
1036
+ * @struct
1037
+ */
1038
+ export interface MigrateOptions {
1039
+ /**
1040
+ * The name assigned to the stack created in the new project. The name of the app will be based off this name as well.
1041
+ *
1042
+ * aliases: n
1043
+ *
1044
+ * @default - undefined
1045
+ */
1046
+ readonly stackName?: string;
1047
+ /**
1048
+ * The language to be used for the new project
1049
+ *
1050
+ * aliases: l
1051
+ *
1052
+ * @default - "typescript"
1053
+ */
1054
+ readonly language?: string;
1055
+ /**
1056
+ * The account to retrieve the CloudFormation stack template from
1057
+ *
1058
+ * @default - undefined
1059
+ */
1060
+ readonly account?: string;
1061
+ /**
1062
+ * The region to retrieve the CloudFormation stack template from
1063
+ *
1064
+ * @default - undefined
1065
+ */
1066
+ readonly region?: string;
1067
+ /**
1068
+ * The path to the CloudFormation template to migrate. Use this for locally stored templates
1069
+ *
1070
+ * @default - undefined
1071
+ */
1072
+ readonly fromPath?: string;
1073
+ /**
1074
+ * Use this flag to retrieve the template for an existing CloudFormation stack
1075
+ *
1076
+ * @default - undefined
1077
+ */
1078
+ readonly fromStack?: boolean;
1079
+ /**
1080
+ * The output path for the migrated CDK app
1081
+ *
1082
+ * @default - undefined
1083
+ */
1084
+ readonly outputPath?: string;
1085
+ /**
1086
+ * Determines if a new scan should be created, or the last successful existing scan should be used
1087
+ * options are "new" or "most-recent"
1088
+ *
1089
+ * @default - undefined
1090
+ */
1091
+ readonly fromScan?: string;
1092
+ /**
1093
+ * Filters the resource scan based on the provided criteria in the following format: "key1=value1,key2=value2"
1094
+ * This field can be passed multiple times for OR style filtering:
1095
+ * filtering options:
1096
+ * resource-identifier: A key-value pair that identifies the target resource. i.e. {"ClusterName", "myCluster"}
1097
+ * resource-type-prefix: A string that represents a type-name prefix. i.e. "AWS::DynamoDB::"
1098
+ * tag-key: a string that matches resources with at least one tag with the provided key. i.e. "myTagKey"
1099
+ * tag-value: a string that matches resources with at least one tag with the provided value. i.e. "myTagValue"
1100
+ *
1101
+ * @default - undefined
1102
+ */
1103
+ readonly filter?: Array<string>;
1104
+ /**
1105
+ * Use this flag to zip the generated CDK app
1106
+ *
1107
+ * @default - undefined
1108
+ */
1109
+ readonly compress?: boolean;
1110
+ }
1111
+ /**
1112
+ * Manage cached context values
1113
+ *
1114
+ * @struct
1115
+ */
1116
+ export interface ContextOptions {
1117
+ /**
1118
+ * The context key (or its index) to reset
1119
+ *
1120
+ * aliases: e
1121
+ *
1122
+ * @default - undefined
1123
+ */
1124
+ readonly reset?: string;
1125
+ /**
1126
+ * Ignore missing key error
1127
+ *
1128
+ * aliases: f
1129
+ *
1130
+ * @default - false
1131
+ */
1132
+ readonly force?: boolean;
1133
+ /**
1134
+ * Clear all context
1135
+ *
1136
+ * @default - false
1137
+ */
1138
+ readonly clear?: boolean;
1139
+ }
1140
+ /**
1141
+ * Opens the reference documentation in a browser
1142
+ *
1143
+ * aliases: doc
1144
+ *
1145
+ * @struct
1146
+ */
1147
+ export interface DocsOptions {
1148
+ /**
1149
+ * the command to use to open the browser, using %u as a placeholder for the path of the file to open
1150
+ *
1151
+ * aliases: b
1152
+ *
1153
+ * @default - undefined
1154
+ */
1155
+ readonly browser?: string;
1156
+ }
1157
+ /**
1158
+ * Check your set-up for potential problems
1159
+ *
1160
+ * @struct
1161
+ */
1162
+ export interface DoctorOptions {
1163
+ }