@depup/aws-cdk 2.1117.0-depup.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 (308) hide show
  1. package/LICENSE +202 -0
  2. package/NOTICE +16 -0
  3. package/README.md +25 -0
  4. package/THIRD_PARTY_LICENSES +24866 -0
  5. package/bin/cdk +6 -0
  6. package/build-info.json +4 -0
  7. package/changes.json +5 -0
  8. package/db.json.gz +0 -0
  9. package/docs/deploy-architecture.md +194 -0
  10. package/lib/api/aws-auth.d.ts +3 -0
  11. package/lib/api/aws-auth.js +21 -0
  12. package/lib/api/bootstrap/bootstrap-template.yaml +855 -0
  13. package/lib/api/bootstrap.d.ts +1 -0
  14. package/lib/api/bootstrap.js +19 -0
  15. package/lib/api/cloud-assembly.d.ts +5 -0
  16. package/lib/api/cloud-assembly.js +23 -0
  17. package/lib/api/cloudformation.d.ts +1 -0
  18. package/lib/api/cloudformation.js +19 -0
  19. package/lib/api/context.d.ts +1 -0
  20. package/lib/api/context.js +19 -0
  21. package/lib/api/deployments.d.ts +1 -0
  22. package/lib/api/deployments.js +19 -0
  23. package/lib/api/hotswap.d.ts +1 -0
  24. package/lib/api/hotswap.js +19 -0
  25. package/lib/api/index.d.ts +16 -0
  26. package/lib/api/index.js +38 -0
  27. package/lib/api/network-detector.d.ts +1 -0
  28. package/lib/api/network-detector.js +19 -0
  29. package/lib/api/notices.d.ts +1 -0
  30. package/lib/api/notices.js +19 -0
  31. package/lib/api/plugin.d.ts +1 -0
  32. package/lib/api/plugin.js +19 -0
  33. package/lib/api/refactor.d.ts +1 -0
  34. package/lib/api/refactor.js +8 -0
  35. package/lib/api/settings.d.ts +1 -0
  36. package/lib/api/settings.js +19 -0
  37. package/lib/api/tags.d.ts +1 -0
  38. package/lib/api/tags.js +19 -0
  39. package/lib/api-private.d.ts +9 -0
  40. package/lib/api-private.js +29 -0
  41. package/lib/cli/cdk-toolkit.d.ts +699 -0
  42. package/lib/cli/cdk-toolkit.js +1260 -0
  43. package/lib/cli/ci-systems.d.ts +29 -0
  44. package/lib/cli/ci-systems.js +61 -0
  45. package/lib/cli/cli-config.d.ts +10 -0
  46. package/lib/cli/cli-config.js +556 -0
  47. package/lib/cli/cli-type-registry.json +1147 -0
  48. package/lib/cli/cli.d.ts +3 -0
  49. package/lib/cli/cli.js +746 -0
  50. package/lib/cli/convert-to-user-input.d.ts +3 -0
  51. package/lib/cli/convert-to-user-input.js +560 -0
  52. package/lib/cli/display-version.d.ts +11 -0
  53. package/lib/cli/display-version.js +101 -0
  54. package/lib/cli/io-host/cli-io-host.d.ts +191 -0
  55. package/lib/cli/io-host/cli-io-host.js +477 -0
  56. package/lib/cli/io-host/index.d.ts +1 -0
  57. package/lib/cli/io-host/index.js +18 -0
  58. package/lib/cli/parse-command-line-arguments.d.ts +1 -0
  59. package/lib/cli/parse-command-line-arguments.js +1067 -0
  60. package/lib/cli/platform-warnings.d.ts +3 -0
  61. package/lib/cli/platform-warnings.js +44 -0
  62. package/lib/cli/pretty-print-error.d.ts +1 -0
  63. package/lib/cli/pretty-print-error.js +37 -0
  64. package/lib/cli/proxy-agent.d.ts +30 -0
  65. package/lib/cli/proxy-agent.js +52 -0
  66. package/lib/cli/root-dir.d.ts +10 -0
  67. package/lib/cli/root-dir.js +23 -0
  68. package/lib/cli/singleton-plugin-host.d.ts +7 -0
  69. package/lib/cli/singleton-plugin-host.js +11 -0
  70. package/lib/cli/tables.d.ts +1 -0
  71. package/lib/cli/tables.js +10 -0
  72. package/lib/cli/telemetry/collect-telemetry.d.ts +5 -0
  73. package/lib/cli/telemetry/collect-telemetry.js +16 -0
  74. package/lib/cli/telemetry/error.d.ts +15 -0
  75. package/lib/cli/telemetry/error.js +68 -0
  76. package/lib/cli/telemetry/feature-flags.d.ts +96 -0
  77. package/lib/cli/telemetry/feature-flags.js +103 -0
  78. package/lib/cli/telemetry/installation-id.d.ts +5 -0
  79. package/lib/cli/telemetry/installation-id.js +47 -0
  80. package/lib/cli/telemetry/library-version.d.ts +2 -0
  81. package/lib/cli/telemetry/library-version.js +30 -0
  82. package/lib/cli/telemetry/messages.d.ts +43 -0
  83. package/lib/cli/telemetry/messages.js +60 -0
  84. package/lib/cli/telemetry/sanitation.d.ts +100 -0
  85. package/lib/cli/telemetry/sanitation.js +79 -0
  86. package/lib/cli/telemetry/schema.d.ts +85 -0
  87. package/lib/cli/telemetry/schema.js +3 -0
  88. package/lib/cli/telemetry/session.d.ts +67 -0
  89. package/lib/cli/telemetry/session.js +174 -0
  90. package/lib/cli/telemetry/sink/endpoint-sink.d.ts +44 -0
  91. package/lib/cli/telemetry/sink/endpoint-sink.js +105 -0
  92. package/lib/cli/telemetry/sink/file-sink.d.ts +32 -0
  93. package/lib/cli/telemetry/sink/file-sink.js +43 -0
  94. package/lib/cli/telemetry/sink/funnel.d.ts +16 -0
  95. package/lib/cli/telemetry/sink/funnel.js +29 -0
  96. package/lib/cli/telemetry/sink/io-host-sink.d.ts +27 -0
  97. package/lib/cli/telemetry/sink/io-host-sink.js +35 -0
  98. package/lib/cli/telemetry/sink/sink-interface.d.ts +18 -0
  99. package/lib/cli/telemetry/sink/sink-interface.js +3 -0
  100. package/lib/cli/user-configuration.d.ts +104 -0
  101. package/lib/cli/user-configuration.js +334 -0
  102. package/lib/cli/user-input.d.ts +1505 -0
  103. package/lib/cli/user-input.js +3 -0
  104. package/lib/cli/util/ci.d.ts +5 -0
  105. package/lib/cli/util/ci.js +11 -0
  106. package/lib/cli/util/console-formatters.d.ts +18 -0
  107. package/lib/cli/util/console-formatters.js +42 -0
  108. package/lib/cli/util/guess-agent.d.ts +7 -0
  109. package/lib/cli/util/guess-agent.js +32 -0
  110. package/lib/cli/util/npm.d.ts +4 -0
  111. package/lib/cli/util/npm.js +34 -0
  112. package/lib/cli/util/trap-errors.d.ts +6 -0
  113. package/lib/cli/util/trap-errors.js +17 -0
  114. package/lib/cli/util/yargs-helpers.d.ts +22 -0
  115. package/lib/cli/util/yargs-helpers.js +49 -0
  116. package/lib/cli/version.d.ts +3 -0
  117. package/lib/cli/version.js +22 -0
  118. package/lib/commands/context.d.ts +40 -0
  119. package/lib/commands/context.js +158 -0
  120. package/lib/commands/deploy.d.ts +13 -0
  121. package/lib/commands/deploy.js +18 -0
  122. package/lib/commands/docs.d.ts +18 -0
  123. package/lib/commands/docs.js +33 -0
  124. package/lib/commands/doctor.d.ts +4 -0
  125. package/lib/commands/doctor.js +69 -0
  126. package/lib/commands/flags/flags.d.ts +13 -0
  127. package/lib/commands/flags/flags.js +30 -0
  128. package/lib/commands/flags/interactive-handler.d.ts +16 -0
  129. package/lib/commands/flags/interactive-handler.js +71 -0
  130. package/lib/commands/flags/obsolete-flags.d.ts +1 -0
  131. package/lib/commands/flags/obsolete-flags.js +9 -0
  132. package/lib/commands/flags/operations.d.ts +80 -0
  133. package/lib/commands/flags/operations.js +467 -0
  134. package/lib/commands/flags/router.d.ts +18 -0
  135. package/lib/commands/flags/router.js +60 -0
  136. package/lib/commands/flags/types.d.ts +12 -0
  137. package/lib/commands/flags/types.js +12 -0
  138. package/lib/commands/flags/validator.d.ts +22 -0
  139. package/lib/commands/flags/validator.js +95 -0
  140. package/lib/commands/init/index.d.ts +1 -0
  141. package/lib/commands/init/index.js +18 -0
  142. package/lib/commands/init/init-hooks.d.ts +41 -0
  143. package/lib/commands/init/init-hooks.js +85 -0
  144. package/lib/commands/init/init.d.ts +139 -0
  145. package/lib/commands/init/init.js +788 -0
  146. package/lib/commands/init/os.d.ts +8 -0
  147. package/lib/commands/init/os.js +91 -0
  148. package/lib/commands/init/package-manager.d.ts +15 -0
  149. package/lib/commands/init/package-manager.js +14 -0
  150. package/lib/commands/language.d.ts +30 -0
  151. package/lib/commands/language.js +46 -0
  152. package/lib/commands/list-stacks.d.ts +21 -0
  153. package/lib/commands/list-stacks.js +28 -0
  154. package/lib/commands/migrate.d.ts +316 -0
  155. package/lib/commands/migrate.js +801 -0
  156. package/lib/context-providers.d.ts +1 -0
  157. package/lib/context-providers.js +19 -0
  158. package/lib/cxapp/cloud-assembly.d.ts +79 -0
  159. package/lib/cxapp/cloud-assembly.js +109 -0
  160. package/lib/cxapp/cloud-executable.d.ts +51 -0
  161. package/lib/cxapp/cloud-executable.js +123 -0
  162. package/lib/cxapp/environments.d.ts +8 -0
  163. package/lib/cxapp/environments.js +66 -0
  164. package/lib/cxapp/exec.d.ts +14 -0
  165. package/lib/cxapp/exec.js +133 -0
  166. package/lib/cxapp/index.d.ts +4 -0
  167. package/lib/cxapp/index.js +21 -0
  168. package/lib/index.d.ts +2 -0
  169. package/lib/index.js +364043 -0
  170. package/lib/index_bg.wasm +0 -0
  171. package/lib/init-templates/.init-version.json +1 -0
  172. package/lib/init-templates/.no-packagejson-validator +0 -0
  173. package/lib/init-templates/.recommended-feature-flags.json +86 -0
  174. package/lib/init-templates/LICENSE +16 -0
  175. package/lib/init-templates/app/csharp/.template.gitignore +342 -0
  176. package/lib/init-templates/app/csharp/README.md +14 -0
  177. package/lib/init-templates/app/csharp/cdk.template.json +15 -0
  178. package/lib/init-templates/app/csharp/src/%name.PascalCased%/%name.PascalCased%.template.csproj +20 -0
  179. package/lib/init-templates/app/csharp/src/%name.PascalCased%/%name.PascalCased%Stack.template.cs +13 -0
  180. package/lib/init-templates/app/csharp/src/%name.PascalCased%/GlobalSuppressions.cs +1 -0
  181. package/lib/init-templates/app/csharp/src/%name.PascalCased%/Program.template.cs +44 -0
  182. package/lib/init-templates/app/csharp/src/%name.PascalCased%.template.sln +18 -0
  183. package/lib/init-templates/app/fsharp/.template.gitignore +342 -0
  184. package/lib/init-templates/app/fsharp/README.md +18 -0
  185. package/lib/init-templates/app/fsharp/cdk.template.json +14 -0
  186. package/lib/init-templates/app/fsharp/src/%name.PascalCased%/%name.PascalCased%.template.fsproj +25 -0
  187. package/lib/init-templates/app/fsharp/src/%name.PascalCased%/%name.PascalCased%Stack.template.fs +8 -0
  188. package/lib/init-templates/app/fsharp/src/%name.PascalCased%/Program.template.fs +11 -0
  189. package/lib/init-templates/app/fsharp/src/%name.PascalCased%.template.sln +18 -0
  190. package/lib/init-templates/app/go/%name%.template.go +70 -0
  191. package/lib/init-templates/app/go/%name%_test.template.go +26 -0
  192. package/lib/init-templates/app/go/.template.gitignore +19 -0
  193. package/lib/init-templates/app/go/README.md +12 -0
  194. package/lib/init-templates/app/go/cdk.template.json +13 -0
  195. package/lib/init-templates/app/go/go.template.mod +9 -0
  196. package/lib/init-templates/app/info.json +4 -0
  197. package/lib/init-templates/app/java/.template.gitignore +13 -0
  198. package/lib/init-templates/app/java/README.md +18 -0
  199. package/lib/init-templates/app/java/cdk.json +13 -0
  200. package/lib/init-templates/app/java/pom.xml +60 -0
  201. package/lib/init-templates/app/java/src/main/java/com/myorg/%name.PascalCased%App.template.java +42 -0
  202. package/lib/init-templates/app/java/src/main/java/com/myorg/%name.PascalCased%Stack.template.java +24 -0
  203. package/lib/init-templates/app/java/src/test/java/com/myorg/%name.PascalCased%Test.template.java +26 -0
  204. package/lib/init-templates/app/javascript/.template.gitignore +5 -0
  205. package/lib/init-templates/app/javascript/.template.npmignore +3 -0
  206. package/lib/init-templates/app/javascript/README.md +12 -0
  207. package/lib/init-templates/app/javascript/bin/%name%.template.js +21 -0
  208. package/lib/init-templates/app/javascript/cdk.template.json +15 -0
  209. package/lib/init-templates/app/javascript/jest.config.js +4 -0
  210. package/lib/init-templates/app/javascript/lib/%name%-stack.template.js +23 -0
  211. package/lib/init-templates/app/javascript/package.json +20 -0
  212. package/lib/init-templates/app/javascript/test/%name%.test.template.js +17 -0
  213. package/lib/init-templates/app/python/%name.PythonModule%/%name.PythonModule%_stack.template.py +19 -0
  214. package/lib/init-templates/app/python/%name.PythonModule%/__init__.py +0 -0
  215. package/lib/init-templates/app/python/.template.gitignore +10 -0
  216. package/lib/init-templates/app/python/README.template.md +58 -0
  217. package/lib/init-templates/app/python/app.template.py +28 -0
  218. package/lib/init-templates/app/python/cdk.template.json +15 -0
  219. package/lib/init-templates/app/python/requirements-dev.txt +1 -0
  220. package/lib/init-templates/app/python/requirements.txt +2 -0
  221. package/lib/init-templates/app/python/source.bat +13 -0
  222. package/lib/init-templates/app/python/tests/__init__.py +0 -0
  223. package/lib/init-templates/app/python/tests/unit/__init__.py +0 -0
  224. package/lib/init-templates/app/python/tests/unit/test_%name.PythonModule%_stack.template.py +15 -0
  225. package/lib/init-templates/app/typescript/.template.gitignore +8 -0
  226. package/lib/init-templates/app/typescript/.template.npmignore +6 -0
  227. package/lib/init-templates/app/typescript/README.md +14 -0
  228. package/lib/init-templates/app/typescript/bin/%name%.template.ts +20 -0
  229. package/lib/init-templates/app/typescript/cdk.template.json +17 -0
  230. package/lib/init-templates/app/typescript/jest.config.js +9 -0
  231. package/lib/init-templates/app/typescript/lib/%name%-stack.template.ts +16 -0
  232. package/lib/init-templates/app/typescript/package.json +26 -0
  233. package/lib/init-templates/app/typescript/test/%name%.test.template.ts +17 -0
  234. package/lib/init-templates/app/typescript/tsconfig.json +32 -0
  235. package/lib/init-templates/lib/info.json +4 -0
  236. package/lib/init-templates/lib/typescript/.template.gitignore +8 -0
  237. package/lib/init-templates/lib/typescript/.template.npmignore +6 -0
  238. package/lib/init-templates/lib/typescript/README.template.md +12 -0
  239. package/lib/init-templates/lib/typescript/jest.config.js +9 -0
  240. package/lib/init-templates/lib/typescript/lib/index.template.ts +21 -0
  241. package/lib/init-templates/lib/typescript/package.json +24 -0
  242. package/lib/init-templates/lib/typescript/test/%name%.test.template.ts +18 -0
  243. package/lib/init-templates/lib/typescript/tsconfig.json +32 -0
  244. package/lib/init-templates/sample-app/csharp/.template.gitignore +342 -0
  245. package/lib/init-templates/sample-app/csharp/README.template.md +19 -0
  246. package/lib/init-templates/sample-app/csharp/cdk.template.json +15 -0
  247. package/lib/init-templates/sample-app/csharp/src/%name.PascalCased%/%name.PascalCased%.template.csproj +20 -0
  248. package/lib/init-templates/sample-app/csharp/src/%name.PascalCased%/%name.PascalCased%Stack.template.cs +24 -0
  249. package/lib/init-templates/sample-app/csharp/src/%name.PascalCased%/GlobalSuppressions.cs +1 -0
  250. package/lib/init-templates/sample-app/csharp/src/%name.PascalCased%/Program.template.cs +15 -0
  251. package/lib/init-templates/sample-app/csharp/src/%name.PascalCased%.template.sln +18 -0
  252. package/lib/init-templates/sample-app/fsharp/.template.gitignore +342 -0
  253. package/lib/init-templates/sample-app/fsharp/README.template.md +20 -0
  254. package/lib/init-templates/sample-app/fsharp/cdk.template.json +14 -0
  255. package/lib/init-templates/sample-app/fsharp/src/%name.PascalCased%/%name.PascalCased%.template.fsproj +25 -0
  256. package/lib/init-templates/sample-app/fsharp/src/%name.PascalCased%/%name.PascalCased%Stack.template.fs +14 -0
  257. package/lib/init-templates/sample-app/fsharp/src/%name.PascalCased%/Program.template.fs +11 -0
  258. package/lib/init-templates/sample-app/fsharp/src/%name.PascalCased%.template.sln +18 -0
  259. package/lib/init-templates/sample-app/go/%name%.template.go +73 -0
  260. package/lib/init-templates/sample-app/go/%name%_test.template.go +25 -0
  261. package/lib/init-templates/sample-app/go/.template.gitignore +19 -0
  262. package/lib/init-templates/sample-app/go/README.md +12 -0
  263. package/lib/init-templates/sample-app/go/cdk.template.json +13 -0
  264. package/lib/init-templates/sample-app/go/go.template.mod +9 -0
  265. package/lib/init-templates/sample-app/info.json +4 -0
  266. package/lib/init-templates/sample-app/java/.template.gitignore +13 -0
  267. package/lib/init-templates/sample-app/java/README.template.md +19 -0
  268. package/lib/init-templates/sample-app/java/cdk.json +13 -0
  269. package/lib/init-templates/sample-app/java/pom.xml +55 -0
  270. package/lib/init-templates/sample-app/java/src/main/java/com/myorg/%name.PascalCased%App.template.java +13 -0
  271. package/lib/init-templates/sample-app/java/src/main/java/com/myorg/%name.PascalCased%Stack.template.java +29 -0
  272. package/lib/init-templates/sample-app/java/src/test/java/com/myorg/%name.PascalCased%StackTest.template.java +27 -0
  273. package/lib/init-templates/sample-app/javascript/.template.gitignore +5 -0
  274. package/lib/init-templates/sample-app/javascript/.template.npmignore +3 -0
  275. package/lib/init-templates/sample-app/javascript/README.template.md +13 -0
  276. package/lib/init-templates/sample-app/javascript/bin/%name%.template.js +6 -0
  277. package/lib/init-templates/sample-app/javascript/cdk.template.json +15 -0
  278. package/lib/init-templates/sample-app/javascript/jest.config.js +4 -0
  279. package/lib/init-templates/sample-app/javascript/lib/%name%-stack.template.js +25 -0
  280. package/lib/init-templates/sample-app/javascript/package.json +20 -0
  281. package/lib/init-templates/sample-app/javascript/test/%name%.test.template.js +16 -0
  282. package/lib/init-templates/sample-app/javascript/tsconfig.json +34 -0
  283. package/lib/init-templates/sample-app/python/%name.PythonModule%/%name.PythonModule%_stack.template.py +26 -0
  284. package/lib/init-templates/sample-app/python/%name.PythonModule%/__init__.py +0 -0
  285. package/lib/init-templates/sample-app/python/.template.gitignore +22 -0
  286. package/lib/init-templates/sample-app/python/README.template.md +65 -0
  287. package/lib/init-templates/sample-app/python/app.template.py +11 -0
  288. package/lib/init-templates/sample-app/python/cdk.template.json +15 -0
  289. package/lib/init-templates/sample-app/python/requirements-dev.txt +1 -0
  290. package/lib/init-templates/sample-app/python/requirements.txt +2 -0
  291. package/lib/init-templates/sample-app/python/source.bat +13 -0
  292. package/lib/init-templates/sample-app/python/tests/__init__.py +0 -0
  293. package/lib/init-templates/sample-app/python/tests/unit/__init__.py +0 -0
  294. package/lib/init-templates/sample-app/python/tests/unit/test_%name.PythonModule%_stack.template.py +21 -0
  295. package/lib/init-templates/sample-app/typescript/.template.gitignore +8 -0
  296. package/lib/init-templates/sample-app/typescript/.template.npmignore +6 -0
  297. package/lib/init-templates/sample-app/typescript/README.template.md +15 -0
  298. package/lib/init-templates/sample-app/typescript/bin/%name%.template.ts +6 -0
  299. package/lib/init-templates/sample-app/typescript/cdk.template.json +17 -0
  300. package/lib/init-templates/sample-app/typescript/jest.config.js +9 -0
  301. package/lib/init-templates/sample-app/typescript/lib/%name%-stack.template.ts +19 -0
  302. package/lib/init-templates/sample-app/typescript/package.json +26 -0
  303. package/lib/init-templates/sample-app/typescript/test/%name%.test.template.ts +17 -0
  304. package/lib/init-templates/sample-app/typescript/tsconfig.json +32 -0
  305. package/lib/util.d.ts +1 -0
  306. package/lib/util.js +19 -0
  307. package/package.json +170 -0
  308. package/release.txt +2 -0
@@ -0,0 +1,1505 @@
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-cli/tree/main/packages/aws-cdk#cdk-gc
34
+ */
35
+ readonly gc?: GcOptions;
36
+ /**
37
+ * View and toggle feature flags.
38
+ */
39
+ readonly flags?: FlagsOptions;
40
+ /**
41
+ * Deploys the stack(s) named STACKS into your AWS account
42
+ */
43
+ readonly deploy?: DeployOptions;
44
+ /**
45
+ * Rolls back the stack(s) named STACKS to their last stable state
46
+ */
47
+ readonly rollback?: RollbackOptions;
48
+ /**
49
+ * Publish assets for the given stack(s) without deploying
50
+ */
51
+ readonly publishAssets?: PublishAssetsOptions;
52
+ /**
53
+ * Import existing resource(s) into the given STACK
54
+ */
55
+ readonly import?: ImportOptions;
56
+ /**
57
+ * Shortcut for 'deploy --watch'
58
+ */
59
+ readonly watch?: WatchOptions;
60
+ /**
61
+ * Destroy the stack(s) named STACKS
62
+ */
63
+ readonly destroy?: DestroyOptions;
64
+ /**
65
+ * Compares the specified stack with the deployed stack or a local template file, and returns with status 1 if any difference is found
66
+ */
67
+ readonly diff?: DiffOptions;
68
+ /**
69
+ * Detect drifts in the given CloudFormation stack(s)
70
+ */
71
+ readonly drift?: DriftOptions;
72
+ /**
73
+ * Returns all metadata associated with this stack
74
+ */
75
+ readonly metadata?: MetadataOptions;
76
+ /**
77
+ * Acknowledge a notice so that it does not show up anymore
78
+ *
79
+ * aliases: ack
80
+ */
81
+ readonly acknowledge?: AcknowledgeOptions;
82
+ /**
83
+ * Returns a list of relevant notices
84
+ */
85
+ readonly notices?: NoticesOptions;
86
+ /**
87
+ * Create a new, empty CDK project from a template.
88
+ */
89
+ readonly init?: InitOptions;
90
+ /**
91
+ * Migrate existing AWS resources into a CDK app
92
+ */
93
+ readonly migrate?: MigrateOptions;
94
+ /**
95
+ * Manage cached context values
96
+ */
97
+ readonly context?: ContextOptions;
98
+ /**
99
+ * Opens the reference documentation in a browser
100
+ *
101
+ * aliases: doc
102
+ */
103
+ readonly docs?: DocsOptions;
104
+ /**
105
+ * Check your set-up for potential problems
106
+ */
107
+ readonly doctor?: {};
108
+ /**
109
+ * Moves resources between stacks or within the same stack
110
+ */
111
+ readonly refactor?: RefactorOptions;
112
+ /**
113
+ * Enable or disable anonymous telemetry
114
+ */
115
+ readonly cliTelemetry?: CliTelemetryOptions;
116
+ }
117
+ /**
118
+ * Global options available to all CLI commands
119
+ *
120
+ * @struct
121
+ */
122
+ export interface GlobalOptions {
123
+ /**
124
+ * 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
125
+ *
126
+ * @default - undefined
127
+ */
128
+ readonly app?: string;
129
+ /**
130
+ * Command-line for a pre-synth build
131
+ *
132
+ * @default - undefined
133
+ */
134
+ readonly build?: string;
135
+ /**
136
+ * Add contextual string parameter (KEY=VALUE)
137
+ *
138
+ * @default - undefined
139
+ */
140
+ readonly context?: Array<string>;
141
+ /**
142
+ * Name or path of a node package that extend the CDK features. Can be specified multiple times
143
+ *
144
+ * @default - undefined
145
+ */
146
+ readonly plugin?: Array<string>;
147
+ /**
148
+ * Print trace for stack warnings
149
+ *
150
+ * @default - undefined
151
+ */
152
+ readonly trace?: boolean;
153
+ /**
154
+ * Do not construct stacks with warnings
155
+ *
156
+ * @default - undefined
157
+ */
158
+ readonly strict?: boolean;
159
+ /**
160
+ * Perform context lookups (synthesis fails if this is disabled and context lookups need to be performed)
161
+ *
162
+ * @default - true
163
+ */
164
+ readonly lookups?: boolean;
165
+ /**
166
+ * Ignores synthesis errors, which will likely produce an invalid output
167
+ *
168
+ * @default - false
169
+ */
170
+ readonly ignoreErrors?: boolean;
171
+ /**
172
+ * Use JSON output instead of YAML when templates are printed to STDOUT
173
+ *
174
+ * @default - false
175
+ */
176
+ readonly json?: boolean;
177
+ /**
178
+ * Show debug logs (specify multiple times to increase verbosity)
179
+ *
180
+ * @default - false
181
+ */
182
+ readonly verbose?: number;
183
+ /**
184
+ * Debug the CDK app. Log additional information during synthesis, such as creation stack traces of tokens (sets CDK_DEBUG, will slow down synthesis)
185
+ *
186
+ * @default - false
187
+ */
188
+ readonly debug?: boolean;
189
+ /**
190
+ * Use the indicated AWS profile as the default environment
191
+ *
192
+ * @default - undefined
193
+ */
194
+ readonly profile?: string;
195
+ /**
196
+ * Use the indicated proxy. Will read from HTTPS_PROXY environment variable if not specified
197
+ *
198
+ * @default - undefined
199
+ */
200
+ readonly proxy?: string;
201
+ /**
202
+ * Path to CA certificate to use when validating HTTPS requests. Will read from AWS_CA_BUNDLE environment variable if not specified
203
+ *
204
+ * @default - undefined
205
+ */
206
+ readonly caBundlePath?: string;
207
+ /**
208
+ * Force trying to fetch EC2 instance credentials. Default: guess EC2 instance status
209
+ *
210
+ * @default - undefined
211
+ */
212
+ readonly ec2creds?: boolean;
213
+ /**
214
+ * Disable CLI telemetry and do not include the "AWS::CDK::Metadata" resource in synthesized templates (enabled by default)
215
+ *
216
+ * @default - undefined
217
+ */
218
+ readonly versionReporting?: boolean;
219
+ /**
220
+ * Include "aws:cdk:path" CloudFormation metadata for each resource (enabled by default)
221
+ *
222
+ * @default - undefined
223
+ */
224
+ readonly pathMetadata?: boolean;
225
+ /**
226
+ * Include "aws:asset:*" CloudFormation metadata for resources that uses assets (enabled by default)
227
+ *
228
+ * @default - undefined
229
+ */
230
+ readonly assetMetadata?: boolean;
231
+ /**
232
+ * ARN of Role to use when invoking CloudFormation
233
+ *
234
+ * @default - undefined
235
+ */
236
+ readonly roleArn?: string;
237
+ /**
238
+ * 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)
239
+ *
240
+ * @default - true
241
+ */
242
+ readonly staging?: boolean;
243
+ /**
244
+ * Emits the synthesized cloud assembly into a directory (default: cdk.out)
245
+ *
246
+ * @default - undefined
247
+ */
248
+ readonly output?: string;
249
+ /**
250
+ * Show relevant notices
251
+ *
252
+ * @default - undefined
253
+ */
254
+ readonly notices?: boolean;
255
+ /**
256
+ * Removes colors and other style from console output
257
+ *
258
+ * @default - false
259
+ */
260
+ readonly noColor?: boolean;
261
+ /**
262
+ * Force colored output even when stdout is not a TTY
263
+ *
264
+ * @default - undefined
265
+ */
266
+ readonly color?: boolean;
267
+ /**
268
+ * Force CI detection. If CI=true then logs will be sent to stdout instead of stderr
269
+ *
270
+ * @default - undefined
271
+ */
272
+ readonly ci?: boolean;
273
+ /**
274
+ * 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.
275
+ *
276
+ * @default - []
277
+ */
278
+ readonly unstable?: Array<string>;
279
+ /**
280
+ * Send telemetry data to a local file.
281
+ *
282
+ * @default - undefined
283
+ */
284
+ readonly telemetryFile?: string;
285
+ /**
286
+ * Automatically answer interactive prompts with the recommended response. This includes confirming actions.
287
+ *
288
+ * @default - false
289
+ */
290
+ readonly yes?: boolean;
291
+ }
292
+ /**
293
+ * Lists all stacks in the app
294
+ *
295
+ * aliases: ls
296
+ *
297
+ * @struct
298
+ */
299
+ export interface ListOptions {
300
+ /**
301
+ * Display environment information for each stack
302
+ *
303
+ * aliases: l
304
+ *
305
+ * @default - false
306
+ */
307
+ readonly long?: boolean;
308
+ /**
309
+ * Display stack dependency information for each stack
310
+ *
311
+ * aliases: d
312
+ *
313
+ * @default - false
314
+ */
315
+ readonly showDependencies?: boolean;
316
+ /**
317
+ * Positional argument for list
318
+ */
319
+ readonly STACKS?: Array<string>;
320
+ }
321
+ /**
322
+ * Synthesizes and prints the CloudFormation template for this stack
323
+ *
324
+ * aliases: synthesize
325
+ *
326
+ * @struct
327
+ */
328
+ export interface SynthOptions {
329
+ /**
330
+ * Only synthesize requested stacks, don't include dependencies
331
+ *
332
+ * aliases: e
333
+ *
334
+ * @default - undefined
335
+ */
336
+ readonly exclusively?: boolean;
337
+ /**
338
+ * After synthesis, validate stacks with the "validateOnSynth" attribute set (can also be controlled with CDK_VALIDATION)
339
+ *
340
+ * @default - true
341
+ */
342
+ readonly validation?: boolean;
343
+ /**
344
+ * Do not output CloudFormation Template to stdout
345
+ *
346
+ * aliases: q
347
+ *
348
+ * @default - false
349
+ */
350
+ readonly quiet?: boolean;
351
+ /**
352
+ * Positional argument for synth
353
+ */
354
+ readonly STACKS?: Array<string>;
355
+ }
356
+ /**
357
+ * Deploys the CDK toolkit stack into an AWS environment
358
+ *
359
+ * @struct
360
+ */
361
+ export interface BootstrapOptions {
362
+ /**
363
+ * The name of the CDK toolkit bucket; bucket will be created and must not exist
364
+ *
365
+ * aliases: b toolkit-bucket-name
366
+ *
367
+ * @default - undefined
368
+ */
369
+ readonly bootstrapBucketName?: string;
370
+ /**
371
+ * AWS KMS master key ID used for the SSE-KMS encryption (specify AWS_MANAGED_KEY to use an AWS-managed key)
372
+ *
373
+ * @default - undefined
374
+ */
375
+ readonly bootstrapKmsKeyId?: string;
376
+ /**
377
+ * Use the example permissions boundary.
378
+ *
379
+ * aliases: epb
380
+ *
381
+ * @default - undefined
382
+ */
383
+ readonly examplePermissionsBoundary?: boolean;
384
+ /**
385
+ * Use the permissions boundary specified by name.
386
+ *
387
+ * aliases: cpb
388
+ *
389
+ * @default - undefined
390
+ */
391
+ readonly customPermissionsBoundary?: string;
392
+ /**
393
+ * Create a Customer Master Key (CMK) for the bootstrap bucket (you will be charged but can customize permissions, modern bootstrapping only)
394
+ *
395
+ * @default - undefined
396
+ */
397
+ readonly bootstrapCustomerKey?: boolean;
398
+ /**
399
+ * String which must be unique for each bootstrap stack. You must configure it on your CDK app if you change this from the default.
400
+ *
401
+ * @default - undefined
402
+ */
403
+ readonly qualifier?: string;
404
+ /**
405
+ * Block public access configuration on CDK toolkit bucket (enabled by default)
406
+ *
407
+ * @default - undefined
408
+ */
409
+ readonly publicAccessBlockConfiguration?: boolean;
410
+ /**
411
+ * Block AssumeRole access to all boostrapped roles if an ExternalId is provided (enabled by default)
412
+ *
413
+ * @default - undefined
414
+ */
415
+ readonly denyExternalId?: boolean;
416
+ /**
417
+ * Tags to add for the stack (KEY=VALUE)
418
+ *
419
+ * aliases: t
420
+ *
421
+ * @default - []
422
+ */
423
+ readonly tags?: Array<string>;
424
+ /**
425
+ * Whether to execute the change set (--no-execute will NOT execute the change set)
426
+ *
427
+ * @default - true
428
+ */
429
+ readonly execute?: boolean;
430
+ /**
431
+ * The AWS account IDs that should be trusted to perform deployments into this environment (may be repeated, modern bootstrapping only)
432
+ *
433
+ * @default - []
434
+ */
435
+ readonly trust?: Array<string>;
436
+ /**
437
+ * The AWS account IDs that should be trusted to look up values in this environment (may be repeated, modern bootstrapping only)
438
+ *
439
+ * @default - []
440
+ */
441
+ readonly trustForLookup?: Array<string>;
442
+ /**
443
+ * The AWS account IDs that should not be trusted by this environment (may be repeated, modern bootstrapping only)
444
+ *
445
+ * @default - []
446
+ */
447
+ readonly untrust?: Array<string>;
448
+ /**
449
+ * The Managed Policy ARNs that should be attached to the role performing deployments into this environment (may be repeated, modern bootstrapping only)
450
+ *
451
+ * @default - []
452
+ */
453
+ readonly cloudformationExecutionPolicies?: Array<string>;
454
+ /**
455
+ * Always bootstrap even if it would downgrade template version
456
+ *
457
+ * aliases: f
458
+ *
459
+ * @default - false
460
+ */
461
+ readonly force?: boolean;
462
+ /**
463
+ * Toggle CloudFormation termination protection on the bootstrap stacks
464
+ *
465
+ * @default - undefined
466
+ */
467
+ readonly terminationProtection?: boolean;
468
+ /**
469
+ * Instead of actual bootstrapping, print the current CLI's bootstrapping template to stdout for customization
470
+ *
471
+ * @default - false
472
+ */
473
+ readonly showTemplate?: boolean;
474
+ /**
475
+ * The name of the CDK toolkit stack to create
476
+ *
477
+ * @default - undefined
478
+ */
479
+ readonly toolkitStackName?: string;
480
+ /**
481
+ * Use the template from the given file instead of the built-in one (use --show-template to obtain an example)
482
+ *
483
+ * @default - undefined
484
+ */
485
+ readonly template?: string;
486
+ /**
487
+ * Use previous values for existing parameters (you must specify all parameters on every deployment if this is disabled)
488
+ *
489
+ * @default - true
490
+ */
491
+ readonly previousParameters?: boolean;
492
+ /**
493
+ * Positional argument for bootstrap
494
+ */
495
+ readonly ENVIRONMENTS?: Array<string>;
496
+ }
497
+ /**
498
+ * Garbage collect assets. Options detailed here: https://github.com/aws/aws-cdk-cli/tree/main/packages/aws-cdk#cdk-gc
499
+ *
500
+ * @struct
501
+ */
502
+ export interface GcOptions {
503
+ /**
504
+ * The action (or sub-action) you want to perform. Valid entires are "print", "tag", "delete-tagged", "full".
505
+ *
506
+ * @default - "full"
507
+ */
508
+ readonly action?: string;
509
+ /**
510
+ * Specify either ecr, s3, or all
511
+ *
512
+ * @default - "all"
513
+ */
514
+ readonly type?: string;
515
+ /**
516
+ * Delete assets that have been marked as isolated for this many days
517
+ *
518
+ * @default - 0
519
+ */
520
+ readonly rollbackBufferDays?: number;
521
+ /**
522
+ * Never delete assets younger than this (in days)
523
+ *
524
+ * @default - 1
525
+ */
526
+ readonly createdBufferDays?: number;
527
+ /**
528
+ * Confirm via manual prompt before deletion
529
+ *
530
+ * @default - true
531
+ */
532
+ readonly confirm?: boolean;
533
+ /**
534
+ * The name of the CDK toolkit stack, if different from the default "CDKToolkit"
535
+ *
536
+ * @default - undefined
537
+ */
538
+ readonly toolkitStackName?: string;
539
+ /**
540
+ * The name of the CDK toolkit stack, if different from the default "CDKToolkit" (deprecated, use --toolkit-stack-name)
541
+ *
542
+ * @deprecated use --toolkit-stack-name
543
+ * @default - undefined
544
+ */
545
+ readonly bootstrapStackName?: string;
546
+ /**
547
+ * Positional argument for gc
548
+ */
549
+ readonly ENVIRONMENTS?: Array<string>;
550
+ }
551
+ /**
552
+ * View and toggle feature flags.
553
+ *
554
+ * @struct
555
+ */
556
+ export interface FlagsOptions {
557
+ /**
558
+ * The value the user would like to set the feature flag configuration to
559
+ *
560
+ * @default - undefined
561
+ */
562
+ readonly value?: string;
563
+ /**
564
+ * Signifies the user would like to modify their feature flag configuration
565
+ *
566
+ * @default - undefined
567
+ */
568
+ readonly set?: boolean;
569
+ /**
570
+ * Modify or view all feature flags
571
+ *
572
+ * @default - undefined
573
+ */
574
+ readonly all?: boolean;
575
+ /**
576
+ * Modify unconfigured feature flags
577
+ *
578
+ * @default - undefined
579
+ */
580
+ readonly unconfigured?: boolean;
581
+ /**
582
+ * Change flags to recommended states
583
+ *
584
+ * @default - undefined
585
+ */
586
+ readonly recommended?: boolean;
587
+ /**
588
+ * Change flags to default state
589
+ *
590
+ * @default - undefined
591
+ */
592
+ readonly default?: boolean;
593
+ /**
594
+ * Interactive option for the flags command
595
+ *
596
+ * aliases: i
597
+ *
598
+ * @default - undefined
599
+ */
600
+ readonly interactive?: boolean;
601
+ /**
602
+ * Enable all feature flags that do not impact the user's application
603
+ *
604
+ * @default - undefined
605
+ */
606
+ readonly safe?: boolean;
607
+ /**
608
+ * Maximum number of simultaneous synths to execute.
609
+ *
610
+ * aliases: n
611
+ *
612
+ * @default - 4
613
+ */
614
+ readonly concurrency?: number;
615
+ /**
616
+ * Positional argument for flags
617
+ */
618
+ readonly FLAGNAME?: Array<string>;
619
+ }
620
+ /**
621
+ * Deploys the stack(s) named STACKS into your AWS account
622
+ *
623
+ * @struct
624
+ */
625
+ export interface DeployOptions {
626
+ /**
627
+ * Deploy all available stacks
628
+ *
629
+ * @default - false
630
+ */
631
+ readonly all?: boolean;
632
+ /**
633
+ * Do not rebuild asset with the given ID. Can be specified multiple times
634
+ *
635
+ * aliases: E
636
+ *
637
+ * @default - []
638
+ */
639
+ readonly buildExclude?: Array<string>;
640
+ /**
641
+ * Only deploy requested stacks, don't include dependencies
642
+ *
643
+ * aliases: e
644
+ *
645
+ * @default - undefined
646
+ */
647
+ readonly exclusively?: boolean;
648
+ /**
649
+ * What changes require manual approval
650
+ *
651
+ * @default - undefined
652
+ */
653
+ readonly requireApproval?: string;
654
+ /**
655
+ * ARNs of SNS topics that CloudFormation will notify with stack related events. These will be added to ARNs specified with the 'notificationArns' stack property.
656
+ *
657
+ * @default - undefined
658
+ */
659
+ readonly notificationArns?: Array<string>;
660
+ /**
661
+ * Tags to add to the stack (KEY=VALUE), overrides tags from Cloud Assembly (deprecated)
662
+ *
663
+ * aliases: t
664
+ *
665
+ * @default - undefined
666
+ */
667
+ readonly tags?: Array<string>;
668
+ /**
669
+ * Whether to execute the change set (--no-execute will NOT execute the change set) (deprecated)
670
+ *
671
+ * @deprecated true
672
+ * @default - undefined
673
+ */
674
+ readonly execute?: boolean;
675
+ /**
676
+ * Name of the CloudFormation change set to create (only if method is not direct)
677
+ *
678
+ * @default - undefined
679
+ */
680
+ readonly changeSetName?: string;
681
+ /**
682
+ * How to perform the deployment. Direct is a bit faster but lacks progress information
683
+ *
684
+ * aliases: m
685
+ *
686
+ * @default - undefined
687
+ */
688
+ readonly method?: string;
689
+ /**
690
+ * Indicates if the stack set imports resources that already exist.
691
+ *
692
+ * @default - false
693
+ */
694
+ readonly importExistingResources?: boolean;
695
+ /**
696
+ * Always deploy stack even if templates are identical
697
+ *
698
+ * aliases: f
699
+ *
700
+ * @default - false
701
+ */
702
+ readonly force?: boolean;
703
+ /**
704
+ * Additional parameters passed to CloudFormation at deploy time (STACK:KEY=VALUE)
705
+ *
706
+ * @default - {}
707
+ */
708
+ readonly parameters?: Array<string>;
709
+ /**
710
+ * Path to file where stack outputs will be written as JSON
711
+ *
712
+ * aliases: O
713
+ *
714
+ * @default - undefined
715
+ */
716
+ readonly outputsFile?: string;
717
+ /**
718
+ * Use previous values for existing parameters (you must specify all parameters on every deployment if this is disabled)
719
+ *
720
+ * @default - true
721
+ */
722
+ readonly previousParameters?: boolean;
723
+ /**
724
+ * The name of the existing CDK toolkit stack (only used for app using legacy synthesis)
725
+ *
726
+ * @default - undefined
727
+ */
728
+ readonly toolkitStackName?: string;
729
+ /**
730
+ * Display mode for stack activity events
731
+ *
732
+ * @default - undefined
733
+ */
734
+ readonly progress?: string;
735
+ /**
736
+ * 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
737
+ *
738
+ * @default - undefined
739
+ */
740
+ readonly rollback?: boolean;
741
+ /**
742
+ * 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
743
+ *
744
+ * @default - undefined
745
+ */
746
+ readonly hotswap?: boolean;
747
+ /**
748
+ * 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
749
+ *
750
+ * @default - undefined
751
+ */
752
+ readonly hotswapFallback?: boolean;
753
+ /**
754
+ * Lower limit on the number of your service's tasks that must remain in the RUNNING state during a deployment, as a percentage of the desiredCount
755
+ *
756
+ * @default - undefined
757
+ */
758
+ readonly hotswapEcsMinimumHealthyPercent?: number;
759
+ /**
760
+ * Upper limit on the number of your service's tasks that are allowed in the RUNNING or PENDING state during a deployment, as a percentage of the desiredCount
761
+ *
762
+ * @default - undefined
763
+ */
764
+ readonly hotswapEcsMaximumHealthyPercent?: number;
765
+ /**
766
+ * Number of seconds to wait for a single service to reach stable state, where the desiredCount is equal to the runningCount
767
+ *
768
+ * @default - undefined
769
+ */
770
+ readonly hotswapEcsStabilizationTimeoutSeconds?: number;
771
+ /**
772
+ * Continuously observe the project files, and deploy the given stack(s) automatically when changes are detected. Implies --hotswap by default
773
+ *
774
+ * @default - undefined
775
+ */
776
+ readonly watch?: boolean;
777
+ /**
778
+ * 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
779
+ *
780
+ * @default - true
781
+ */
782
+ readonly logs?: boolean;
783
+ /**
784
+ * Maximum number of simultaneous deployments (dependency permitting) to execute.
785
+ *
786
+ * @default - 1
787
+ */
788
+ readonly concurrency?: number;
789
+ /**
790
+ * Whether to build/publish assets in parallel
791
+ *
792
+ * @default - undefined
793
+ */
794
+ readonly assetParallelism?: boolean;
795
+ /**
796
+ * Maximum number of asset builds to run in parallel
797
+ *
798
+ * @default - 1
799
+ */
800
+ readonly assetBuildConcurrency?: number;
801
+ /**
802
+ * Whether to build all assets before deploying the first stack (useful for failing Docker builds)
803
+ *
804
+ * @default - true
805
+ */
806
+ readonly assetPrebuild?: boolean;
807
+ /**
808
+ * Whether to deploy if the app contains no stacks
809
+ *
810
+ * @default - false
811
+ */
812
+ readonly ignoreNoStacks?: boolean;
813
+ /**
814
+ * Create a drift-aware change set that brings actual resource states in line with template definitions
815
+ *
816
+ * @default - false
817
+ */
818
+ readonly revertDrift?: boolean;
819
+ /**
820
+ * Positional argument for deploy
821
+ */
822
+ readonly STACKS?: Array<string>;
823
+ }
824
+ /**
825
+ * Rolls back the stack(s) named STACKS to their last stable state
826
+ *
827
+ * @struct
828
+ */
829
+ export interface RollbackOptions {
830
+ /**
831
+ * Roll back all available stacks
832
+ *
833
+ * @default - false
834
+ */
835
+ readonly all?: boolean;
836
+ /**
837
+ * The name of the CDK toolkit stack the environment is bootstrapped with
838
+ *
839
+ * @default - undefined
840
+ */
841
+ readonly toolkitStackName?: string;
842
+ /**
843
+ * Orphan all resources for which the rollback operation fails.
844
+ *
845
+ * aliases: f
846
+ *
847
+ * @default - undefined
848
+ */
849
+ readonly force?: boolean;
850
+ /**
851
+ * Whether to validate the bootstrap stack version. Defaults to 'true', disable with --no-validate-bootstrap-version.
852
+ *
853
+ * @default - undefined
854
+ */
855
+ readonly validateBootstrapVersion?: boolean;
856
+ /**
857
+ * Orphan the given resources, identified by their logical ID (can be specified multiple times)
858
+ *
859
+ * @default - []
860
+ */
861
+ readonly orphan?: Array<string>;
862
+ /**
863
+ * Positional argument for rollback
864
+ */
865
+ readonly STACKS?: Array<string>;
866
+ }
867
+ /**
868
+ * Publish assets for the given stack(s) without deploying
869
+ *
870
+ * @struct
871
+ */
872
+ export interface PublishAssetsOptions {
873
+ /**
874
+ * Publish assets for all available stacks
875
+ *
876
+ * @default - false
877
+ */
878
+ readonly all?: boolean;
879
+ /**
880
+ * Only publish assets for requested stacks, don't include dependencies
881
+ *
882
+ * aliases: e
883
+ *
884
+ * @default - undefined
885
+ */
886
+ readonly exclusively?: boolean;
887
+ /**
888
+ * Always publish assets, even if they are already published
889
+ *
890
+ * aliases: f
891
+ *
892
+ * @default - false
893
+ */
894
+ readonly force?: boolean;
895
+ /**
896
+ * Maximum number of simultaneous asset operations (building and publishing, dependency permitting) to execute.
897
+ *
898
+ * @default - 4
899
+ */
900
+ readonly concurrency?: number;
901
+ /**
902
+ * Positional argument for publish-assets
903
+ */
904
+ readonly STACKS?: Array<string>;
905
+ }
906
+ /**
907
+ * Import existing resource(s) into the given STACK
908
+ *
909
+ * @struct
910
+ */
911
+ export interface ImportOptions {
912
+ /**
913
+ * Whether to execute the change set (--no-execute will NOT execute the change set)
914
+ *
915
+ * @default - true
916
+ */
917
+ readonly execute?: boolean;
918
+ /**
919
+ * Name of the CloudFormation change set to create
920
+ *
921
+ * @default - undefined
922
+ */
923
+ readonly changeSetName?: string;
924
+ /**
925
+ * The name of the CDK toolkit stack to create
926
+ *
927
+ * @default - undefined
928
+ */
929
+ readonly toolkitStackName?: string;
930
+ /**
931
+ * 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
932
+ *
933
+ * @default - undefined
934
+ */
935
+ readonly rollback?: boolean;
936
+ /**
937
+ * 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.
938
+ *
939
+ * aliases: f
940
+ *
941
+ * @default - undefined
942
+ */
943
+ readonly force?: boolean;
944
+ /**
945
+ * 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
946
+ *
947
+ * @default - undefined
948
+ */
949
+ readonly recordResourceMapping?: string;
950
+ /**
951
+ * 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
952
+ *
953
+ * aliases: m
954
+ *
955
+ * @default - undefined
956
+ */
957
+ readonly resourceMapping?: string;
958
+ /**
959
+ * Positional argument for import
960
+ */
961
+ readonly STACK?: string;
962
+ }
963
+ /**
964
+ * Shortcut for 'deploy --watch'
965
+ *
966
+ * @struct
967
+ */
968
+ export interface WatchOptions {
969
+ /**
970
+ * Do not rebuild asset with the given ID. Can be specified multiple times
971
+ *
972
+ * aliases: E
973
+ *
974
+ * @default - []
975
+ */
976
+ readonly buildExclude?: Array<string>;
977
+ /**
978
+ * Only deploy requested stacks, don't include dependencies
979
+ *
980
+ * aliases: e
981
+ *
982
+ * @default - undefined
983
+ */
984
+ readonly exclusively?: boolean;
985
+ /**
986
+ * Name of the CloudFormation change set to create
987
+ *
988
+ * @default - undefined
989
+ */
990
+ readonly changeSetName?: string;
991
+ /**
992
+ * Always deploy stack even if templates are identical
993
+ *
994
+ * aliases: f
995
+ *
996
+ * @default - false
997
+ */
998
+ readonly force?: boolean;
999
+ /**
1000
+ * The name of the existing CDK toolkit stack (only used for app using legacy synthesis)
1001
+ *
1002
+ * @default - undefined
1003
+ */
1004
+ readonly toolkitStackName?: string;
1005
+ /**
1006
+ * Display mode for stack activity events
1007
+ *
1008
+ * @default - undefined
1009
+ */
1010
+ readonly progress?: string;
1011
+ /**
1012
+ * 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
1013
+ *
1014
+ * @default - undefined
1015
+ */
1016
+ readonly rollback?: boolean;
1017
+ /**
1018
+ * 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
1019
+ *
1020
+ * @default - undefined
1021
+ */
1022
+ readonly hotswap?: boolean;
1023
+ /**
1024
+ * 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.
1025
+ *
1026
+ * @default - undefined
1027
+ */
1028
+ readonly hotswapFallback?: boolean;
1029
+ /**
1030
+ * Lower limit on the number of your service's tasks that must remain in the RUNNING state during a deployment, as a percentage of the desiredCount
1031
+ *
1032
+ * @default - undefined
1033
+ */
1034
+ readonly hotswapEcsMinimumHealthyPercent?: number;
1035
+ /**
1036
+ * Upper limit on the number of your service's tasks that are allowed in the RUNNING or PENDING state during a deployment, as a percentage of the desiredCount
1037
+ *
1038
+ * @default - undefined
1039
+ */
1040
+ readonly hotswapEcsMaximumHealthyPercent?: number;
1041
+ /**
1042
+ * Number of seconds to wait for a single service to reach stable state, where the desiredCount is equal to the runningCount
1043
+ *
1044
+ * @default - undefined
1045
+ */
1046
+ readonly hotswapEcsStabilizationTimeoutSeconds?: number;
1047
+ /**
1048
+ * Show CloudWatch log events from all resources in the selected Stacks in the terminal. 'true' by default, use --no-logs to turn off
1049
+ *
1050
+ * @default - true
1051
+ */
1052
+ readonly logs?: boolean;
1053
+ /**
1054
+ * Maximum number of simultaneous deployments (dependency permitting) to execute.
1055
+ *
1056
+ * @default - 1
1057
+ */
1058
+ readonly concurrency?: number;
1059
+ /**
1060
+ * Positional argument for watch
1061
+ */
1062
+ readonly STACKS?: Array<string>;
1063
+ }
1064
+ /**
1065
+ * Destroy the stack(s) named STACKS
1066
+ *
1067
+ * @struct
1068
+ */
1069
+ export interface DestroyOptions {
1070
+ /**
1071
+ * Destroy all available stacks
1072
+ *
1073
+ * @default - false
1074
+ */
1075
+ readonly all?: boolean;
1076
+ /**
1077
+ * Only destroy requested stacks, don't include dependees
1078
+ *
1079
+ * aliases: e
1080
+ *
1081
+ * @default - undefined
1082
+ */
1083
+ readonly exclusively?: boolean;
1084
+ /**
1085
+ * Do not ask for confirmation before destroying the stacks
1086
+ *
1087
+ * aliases: f
1088
+ *
1089
+ * @default - undefined
1090
+ */
1091
+ readonly force?: boolean;
1092
+ /**
1093
+ * Maximum number of simultaneous destroys (dependency permitting) to execute.
1094
+ *
1095
+ * @default - 1
1096
+ */
1097
+ readonly concurrency?: number;
1098
+ /**
1099
+ * Positional argument for destroy
1100
+ */
1101
+ readonly STACKS?: Array<string>;
1102
+ }
1103
+ /**
1104
+ * Compares the specified stack with the deployed stack or a local template file, and returns with status 1 if any difference is found
1105
+ *
1106
+ * @struct
1107
+ */
1108
+ export interface DiffOptions {
1109
+ /**
1110
+ * Only diff requested stacks, don't include dependencies
1111
+ *
1112
+ * aliases: e
1113
+ *
1114
+ * @default - undefined
1115
+ */
1116
+ readonly exclusively?: boolean;
1117
+ /**
1118
+ * Number of context lines to include in arbitrary JSON diff rendering
1119
+ *
1120
+ * @default - 3
1121
+ */
1122
+ readonly contextLines?: number;
1123
+ /**
1124
+ * The path to the CloudFormation template to compare with. Implies --method=template
1125
+ *
1126
+ * @default - undefined
1127
+ */
1128
+ readonly template?: string;
1129
+ /**
1130
+ * Do not filter out AWS::CDK::Metadata resources, mangled non-ASCII characters, or the CheckBootstrapVersionRule
1131
+ *
1132
+ * @default - false
1133
+ */
1134
+ readonly strict?: boolean;
1135
+ /**
1136
+ * Only diff for broadened security changes
1137
+ *
1138
+ * @default - false
1139
+ */
1140
+ readonly securityOnly?: boolean;
1141
+ /**
1142
+ * Fail with exit code 1 in case of diff
1143
+ *
1144
+ * @default - undefined
1145
+ */
1146
+ readonly fail?: boolean;
1147
+ /**
1148
+ * Whether to compare against the template with Transforms already processed
1149
+ *
1150
+ * @default - false
1151
+ */
1152
+ readonly processed?: boolean;
1153
+ /**
1154
+ * Do not print stack name and default message when there is no diff to stdout
1155
+ *
1156
+ * aliases: q
1157
+ *
1158
+ * @default - false
1159
+ */
1160
+ readonly quiet?: boolean;
1161
+ /**
1162
+ * Whether to create a change set to analyze resource replacements. In this mode, diff will use the deploy role instead of the lookup role.
1163
+ *
1164
+ * aliases: changeset
1165
+ *
1166
+ * @deprecated use --method instead
1167
+ * @default - true
1168
+ */
1169
+ readonly changeSet?: boolean;
1170
+ /**
1171
+ * How to compute the diff. "auto" attempts to create a change set and falls back to template-only on failure. "change-set" creates a change set and fails if it cannot be created. Both use the deploy role instead of the lookup role. "template" compares templates directly and uses the lookup role.
1172
+ *
1173
+ * aliases: m
1174
+ *
1175
+ * @default - "auto"
1176
+ */
1177
+ readonly method?: string;
1178
+ /**
1179
+ * Whether or not the change set imports resources that already exist
1180
+ *
1181
+ * @default - false
1182
+ */
1183
+ readonly importExistingResources?: boolean;
1184
+ /**
1185
+ * Whether to include moves in the diff
1186
+ *
1187
+ * @default - false
1188
+ */
1189
+ readonly includeMoves?: boolean;
1190
+ /**
1191
+ * Positional argument for diff
1192
+ */
1193
+ readonly STACKS?: Array<string>;
1194
+ }
1195
+ /**
1196
+ * Detect drifts in the given CloudFormation stack(s)
1197
+ *
1198
+ * @struct
1199
+ */
1200
+ export interface DriftOptions {
1201
+ /**
1202
+ * Fail with exit code 1 if drift is detected
1203
+ *
1204
+ * @default - undefined
1205
+ */
1206
+ readonly fail?: boolean;
1207
+ /**
1208
+ * Positional argument for drift
1209
+ */
1210
+ readonly STACKS?: Array<string>;
1211
+ }
1212
+ /**
1213
+ * Returns all metadata associated with this stack
1214
+ *
1215
+ * @struct
1216
+ */
1217
+ export interface MetadataOptions {
1218
+ /**
1219
+ * Positional argument for metadata
1220
+ */
1221
+ readonly STACK?: string;
1222
+ }
1223
+ /**
1224
+ * Acknowledge a notice so that it does not show up anymore
1225
+ *
1226
+ * aliases: ack
1227
+ *
1228
+ * @struct
1229
+ */
1230
+ export interface AcknowledgeOptions {
1231
+ /**
1232
+ * Positional argument for acknowledge
1233
+ */
1234
+ readonly ID?: string;
1235
+ }
1236
+ /**
1237
+ * Returns a list of relevant notices
1238
+ *
1239
+ * @struct
1240
+ */
1241
+ export interface NoticesOptions {
1242
+ /**
1243
+ * Returns a list of unacknowledged notices
1244
+ *
1245
+ * aliases: u
1246
+ *
1247
+ * @default - false
1248
+ */
1249
+ readonly unacknowledged?: boolean;
1250
+ }
1251
+ /**
1252
+ * Create a new, empty CDK project from a template.
1253
+ *
1254
+ * @struct
1255
+ */
1256
+ export interface InitOptions {
1257
+ /**
1258
+ * The language to be used for the new project (default can be configured in ~/.cdk.json)
1259
+ *
1260
+ * aliases: l
1261
+ *
1262
+ * @default - undefined
1263
+ */
1264
+ readonly language?: string;
1265
+ /**
1266
+ * List the available templates
1267
+ *
1268
+ * @default - undefined
1269
+ */
1270
+ readonly list?: boolean;
1271
+ /**
1272
+ * If true, only generates project files, without executing additional operations such as setting up a git repo, installing dependencies or compiling the project
1273
+ *
1274
+ * @default - false
1275
+ */
1276
+ readonly generateOnly?: boolean;
1277
+ /**
1278
+ * The version of the CDK library (aws-cdk-lib) to initialize built-in templates with. Defaults to the version that was current when this CLI was built.
1279
+ *
1280
+ * aliases: V
1281
+ *
1282
+ * @default - undefined
1283
+ */
1284
+ readonly libVersion?: string;
1285
+ /**
1286
+ * Path to a local custom template directory or multi-template repository
1287
+ *
1288
+ * @default - undefined
1289
+ */
1290
+ readonly fromPath?: string;
1291
+ /**
1292
+ * Path to a specific template within a multi-template repository
1293
+ *
1294
+ * @default - undefined
1295
+ */
1296
+ readonly templatePath?: string;
1297
+ /**
1298
+ * The package manager to use to install dependencies. Only applicable for TypeScript and JavaScript projects. Defaults to npm in TypeScript and JavaScript projects.
1299
+ *
1300
+ * @default - undefined
1301
+ */
1302
+ readonly packageManager?: string;
1303
+ /**
1304
+ * The name of the new project
1305
+ *
1306
+ * aliases: n
1307
+ *
1308
+ * @default - undefined
1309
+ */
1310
+ readonly projectName?: string;
1311
+ /**
1312
+ * Positional argument for init
1313
+ */
1314
+ readonly TEMPLATE?: string;
1315
+ }
1316
+ /**
1317
+ * Migrate existing AWS resources into a CDK app
1318
+ *
1319
+ * @struct
1320
+ */
1321
+ export interface MigrateOptions {
1322
+ /**
1323
+ * The name assigned to the stack created in the new project. The name of the app will be based off this name as well.
1324
+ *
1325
+ * aliases: n
1326
+ *
1327
+ * @default - undefined
1328
+ */
1329
+ readonly stackName?: string;
1330
+ /**
1331
+ * The language to be used for the new project
1332
+ *
1333
+ * aliases: l
1334
+ *
1335
+ * @default - "typescript"
1336
+ */
1337
+ readonly language?: string;
1338
+ /**
1339
+ * The account to retrieve the CloudFormation stack template from
1340
+ *
1341
+ * @default - undefined
1342
+ */
1343
+ readonly account?: string;
1344
+ /**
1345
+ * The region to retrieve the CloudFormation stack template from
1346
+ *
1347
+ * @default - undefined
1348
+ */
1349
+ readonly region?: string;
1350
+ /**
1351
+ * The path to the CloudFormation template to migrate. Use this for locally stored templates
1352
+ *
1353
+ * @default - undefined
1354
+ */
1355
+ readonly fromPath?: string;
1356
+ /**
1357
+ * Use this flag to retrieve the template for an existing CloudFormation stack
1358
+ *
1359
+ * @default - undefined
1360
+ */
1361
+ readonly fromStack?: boolean;
1362
+ /**
1363
+ * The output path for the migrated CDK app
1364
+ *
1365
+ * @default - undefined
1366
+ */
1367
+ readonly outputPath?: string;
1368
+ /**
1369
+ * Determines if a new scan should be created, or the last successful existing scan should be used
1370
+ * options are "new" or "most-recent"
1371
+ *
1372
+ * @default - undefined
1373
+ */
1374
+ readonly fromScan?: string;
1375
+ /**
1376
+ * Filters the resource scan based on the provided criteria in the following format: "key1=value1,key2=value2"
1377
+ * This field can be passed multiple times for OR style filtering:
1378
+ * filtering options:
1379
+ * resource-identifier: A key-value pair that identifies the target resource. i.e. {"ClusterName", "myCluster"}
1380
+ * resource-type-prefix: A string that represents a type-name prefix. i.e. "AWS::DynamoDB::"
1381
+ * tag-key: a string that matches resources with at least one tag with the provided key. i.e. "myTagKey"
1382
+ * tag-value: a string that matches resources with at least one tag with the provided value. i.e. "myTagValue"
1383
+ *
1384
+ * @default - undefined
1385
+ */
1386
+ readonly filter?: Array<string>;
1387
+ /**
1388
+ * Use this flag to zip the generated CDK app
1389
+ *
1390
+ * @default - undefined
1391
+ */
1392
+ readonly compress?: boolean;
1393
+ }
1394
+ /**
1395
+ * Manage cached context values
1396
+ *
1397
+ * @struct
1398
+ */
1399
+ export interface ContextOptions {
1400
+ /**
1401
+ * The context key (or its index) to reset
1402
+ *
1403
+ * aliases: e
1404
+ *
1405
+ * @default - undefined
1406
+ */
1407
+ readonly reset?: string;
1408
+ /**
1409
+ * Ignore missing key error
1410
+ *
1411
+ * aliases: f
1412
+ *
1413
+ * @default - false
1414
+ */
1415
+ readonly force?: boolean;
1416
+ /**
1417
+ * Clear all context
1418
+ *
1419
+ * @default - false
1420
+ */
1421
+ readonly clear?: boolean;
1422
+ }
1423
+ /**
1424
+ * Opens the reference documentation in a browser
1425
+ *
1426
+ * aliases: doc
1427
+ *
1428
+ * @struct
1429
+ */
1430
+ export interface DocsOptions {
1431
+ /**
1432
+ * the command to use to open the browser, using %u as a placeholder for the path of the file to open
1433
+ *
1434
+ * aliases: b
1435
+ *
1436
+ * @default - undefined
1437
+ */
1438
+ readonly browser?: string;
1439
+ }
1440
+ /**
1441
+ * Moves resources between stacks or within the same stack
1442
+ *
1443
+ * @struct
1444
+ */
1445
+ export interface RefactorOptions {
1446
+ /**
1447
+ * Names of deployed stacks to be considered for resource comparison.
1448
+ *
1449
+ * @default - undefined
1450
+ */
1451
+ readonly additionalStackName?: Array<string>;
1452
+ /**
1453
+ * Do not perform any changes, just show what would be done
1454
+ *
1455
+ * @default - false
1456
+ */
1457
+ readonly dryRun?: boolean;
1458
+ /**
1459
+ * A file that declares overrides to be applied to the list of mappings computed by the CLI.
1460
+ *
1461
+ * @default - undefined
1462
+ */
1463
+ readonly overrideFile?: string;
1464
+ /**
1465
+ * If specified, the command will revert the refactor operation. This is only valid if a mapping file was provided.
1466
+ *
1467
+ * @default - false
1468
+ */
1469
+ readonly revert?: boolean;
1470
+ /**
1471
+ * Whether to do the refactor without asking for confirmation
1472
+ *
1473
+ * @default - false
1474
+ */
1475
+ readonly force?: boolean;
1476
+ /**
1477
+ * Positional argument for refactor
1478
+ */
1479
+ readonly STACKS?: Array<string>;
1480
+ }
1481
+ /**
1482
+ * Enable or disable anonymous telemetry
1483
+ *
1484
+ * @struct
1485
+ */
1486
+ export interface CliTelemetryOptions {
1487
+ /**
1488
+ * Enable anonymous telemetry
1489
+ *
1490
+ * @default - undefined
1491
+ */
1492
+ readonly enable?: boolean;
1493
+ /**
1494
+ * Disable anonymous telemetry
1495
+ *
1496
+ * @default - undefined
1497
+ */
1498
+ readonly disable?: boolean;
1499
+ /**
1500
+ * Report telemetry opt-in/out status
1501
+ *
1502
+ * @default - undefined
1503
+ */
1504
+ readonly status?: boolean;
1505
+ }