aws-cdk 2.31.2 → 2.33.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 (355) hide show
  1. package/CONTRIBUTING.md +29 -0
  2. package/README.md +7 -6
  3. package/THIRD_PARTY_LICENSES +9 -5
  4. package/build-info.json +2 -2
  5. package/lib/api/cloudformation-deployments.d.ts +1 -1
  6. package/lib/api/cloudformation-deployments.js +3 -3
  7. package/lib/api/nested-stack-helpers.d.ts +13 -13
  8. package/lib/api/nested-stack-helpers.js +7 -7
  9. package/lib/api/util/cloudformation.d.ts +3 -2
  10. package/lib/api/util/cloudformation.js +9 -5
  11. package/lib/bridge.js +25 -15
  12. package/lib/cdk-toolkit.d.ts +7 -0
  13. package/lib/cdk-toolkit.js +2 -2
  14. package/lib/cli.js +6 -3
  15. package/lib/commands/context.js +67 -7
  16. package/lib/index.js +13639 -5366
  17. package/lib/init-templates/{v1/app → app}/csharp/.template.gitignore +0 -0
  18. package/lib/init-templates/{v1/app → app}/csharp/README.md +0 -0
  19. package/lib/init-templates/app/csharp/add-project.hook.d.ts +2 -0
  20. package/lib/init-templates/{v2/app → app}/csharp/add-project.hook.js +1 -1
  21. package/lib/init-templates/{v1/app → app}/csharp/cdk.template.json +0 -0
  22. package/lib/init-templates/{v2/app → app}/csharp/src/%name.PascalCased%/%name.PascalCased%.template.csproj +0 -0
  23. package/lib/init-templates/{v2/app → app}/csharp/src/%name.PascalCased%/%name.PascalCased%Stack.template.cs +0 -0
  24. package/lib/init-templates/{v1/app → app}/csharp/src/%name.PascalCased%/GlobalSuppressions.cs +0 -0
  25. package/lib/init-templates/{v2/app → app}/csharp/src/%name.PascalCased%/Program.template.cs +0 -0
  26. package/lib/init-templates/{v1/app → app}/csharp/src/%name.PascalCased%.template.sln +0 -0
  27. package/lib/init-templates/{v1/app → app}/fsharp/.template.gitignore +0 -0
  28. package/lib/init-templates/{v1/app → app}/fsharp/README.md +0 -0
  29. package/lib/init-templates/app/fsharp/add-project.hook.d.ts +2 -0
  30. package/lib/init-templates/{v1/app → app}/fsharp/add-project.hook.js +1 -1
  31. package/lib/init-templates/{v1/app → app}/fsharp/cdk.template.json +0 -0
  32. package/lib/init-templates/{v2/app → app}/fsharp/src/%name.PascalCased%/%name.PascalCased%.template.fsproj +0 -0
  33. package/lib/init-templates/{v1/app → app}/fsharp/src/%name.PascalCased%/%name.PascalCased%Stack.template.fs +0 -0
  34. package/lib/init-templates/{v1/app → app}/fsharp/src/%name.PascalCased%/Program.template.fs +0 -0
  35. package/lib/init-templates/{v1/app → app}/fsharp/src/%name.PascalCased%.template.sln +0 -0
  36. package/lib/init-templates/{v2/app → app}/go/%name%.template.go +0 -0
  37. package/lib/init-templates/{v2/app → app}/go/%name%_test.template.go +0 -0
  38. package/lib/init-templates/{v1/app → app}/go/.template.gitignore +0 -0
  39. package/lib/init-templates/{v2/app → app}/go/README.md +1 -3
  40. package/lib/init-templates/{v1/app → app}/go/cdk.template.json +0 -0
  41. package/lib/init-templates/{v2/app → app}/go/go.template.mod +0 -0
  42. package/lib/init-templates/{v1/app → app}/info.json +0 -0
  43. package/lib/init-templates/{v1/app → app}/java/.template.gitignore +0 -0
  44. package/lib/init-templates/{v1/app → app}/java/README.md +0 -0
  45. package/lib/init-templates/{v1/app → app}/java/cdk.json +0 -0
  46. package/lib/init-templates/{v2/app → app}/java/pom.xml +0 -0
  47. package/lib/init-templates/{v2/app → app}/java/src/main/java/com/myorg/%name.PascalCased%App.template.java +0 -0
  48. package/lib/init-templates/{v2/app → app}/java/src/main/java/com/myorg/%name.PascalCased%Stack.template.java +0 -0
  49. package/lib/init-templates/{v2/app → app}/java/src/test/java/com/myorg/%name.PascalCased%Test.template.java +0 -0
  50. package/lib/init-templates/app/java/sub-placeholders.hook.d.ts +2 -0
  51. package/lib/init-templates/{v1/app → app}/java/sub-placeholders.hook.js +1 -1
  52. package/lib/init-templates/{v1/app → app}/javascript/.template.gitignore +0 -0
  53. package/lib/init-templates/{v1/app → app}/javascript/.template.npmignore +0 -0
  54. package/lib/init-templates/{v1/app → app}/javascript/README.md +0 -0
  55. package/lib/init-templates/{v2/app → app}/javascript/bin/%name%.template.js +0 -0
  56. package/lib/init-templates/{v1/app → app}/javascript/cdk.template.json +0 -0
  57. package/lib/init-templates/{v1/sample-app → app}/javascript/jest.config.js +0 -0
  58. package/lib/init-templates/{v2/app → app}/javascript/lib/%name%-stack.template.js +0 -0
  59. package/lib/init-templates/{v2/app → app}/javascript/package.json +0 -0
  60. package/lib/init-templates/app/javascript/sub-placeholders.hook.d.ts +2 -0
  61. package/lib/init-templates/{v1/sample-app → app}/javascript/sub-placeholders.hook.js +1 -1
  62. package/lib/init-templates/{v2/app → app}/javascript/test/%name%.test.template.js +0 -0
  63. package/lib/init-templates/{v2/app → app}/python/%name.PythonModule%/%name.PythonModule%_stack.template.py +0 -0
  64. package/lib/init-templates/{v1/app → app}/python/%name.PythonModule%/__init__.py +0 -0
  65. package/lib/init-templates/{v2/app → app}/python/.template.gitignore +0 -0
  66. package/lib/init-templates/{v1/app → app}/python/README.template.md +0 -0
  67. package/lib/init-templates/{v2/app → app}/python/app.template.py +0 -0
  68. package/lib/init-templates/{v1/app → app}/python/cdk.template.json +0 -0
  69. package/lib/init-templates/{v1/app → app}/python/requirements-dev.txt +0 -0
  70. package/lib/init-templates/{v2/app → app}/python/requirements.txt +0 -0
  71. package/lib/init-templates/{v1/app → app}/python/source.bat +0 -0
  72. package/lib/init-templates/app/python/sub-placeholders.hook.d.ts +2 -0
  73. package/lib/init-templates/{v1/sample-app → app}/python/sub-placeholders.hook.js +1 -1
  74. package/lib/init-templates/{v1/app → app}/python/tests/__init__.py +0 -0
  75. package/lib/init-templates/{v1/app → app}/python/tests/unit/__init__.py +0 -0
  76. package/lib/init-templates/{v2/app → app}/python/tests/unit/test_%name.PythonModule%_stack.template.py +0 -0
  77. package/lib/init-templates/{v1/app → app}/typescript/.template.gitignore +0 -0
  78. package/lib/init-templates/{v1/app → app}/typescript/.template.npmignore +0 -0
  79. package/lib/init-templates/{v1/app → app}/typescript/README.md +0 -0
  80. package/lib/init-templates/{v2/app → app}/typescript/bin/%name%.template.ts +0 -0
  81. package/lib/init-templates/{v1/app → app}/typescript/cdk.template.json +0 -0
  82. package/lib/init-templates/{v1/app → app}/typescript/jest.config.js +0 -0
  83. package/lib/init-templates/{v2/app → app}/typescript/lib/%name%-stack.template.ts +0 -0
  84. package/lib/init-templates/{v2/app → app}/typescript/package.json +1 -1
  85. package/lib/init-templates/app/typescript/sub-placeholders.hook.d.ts +2 -0
  86. package/lib/init-templates/{v1/app/javascript → app/typescript}/sub-placeholders.hook.js +1 -1
  87. package/lib/init-templates/{v2/app → app}/typescript/test/%name%.test.template.ts +0 -0
  88. package/lib/init-templates/{v1/app → app}/typescript/tsconfig.json +0 -0
  89. package/lib/init-templates/{v1/lib → lib}/info.json +0 -0
  90. package/lib/init-templates/{v1/lib → lib}/typescript/.template.gitignore +0 -0
  91. package/lib/init-templates/{v1/lib → lib}/typescript/.template.npmignore +0 -0
  92. package/lib/init-templates/{v2/lib → lib}/typescript/README.template.md +0 -0
  93. package/lib/init-templates/{v1/lib → lib}/typescript/jest.config.js +0 -0
  94. package/lib/init-templates/{v2/lib → lib}/typescript/lib/index.template.ts +0 -0
  95. package/lib/init-templates/{v2/lib → lib}/typescript/package.json +0 -0
  96. package/lib/init-templates/lib/typescript/sub-placeholders.hook.d.ts +2 -0
  97. package/lib/init-templates/{v1/lib → lib}/typescript/sub-placeholders.hook.js +1 -1
  98. package/lib/init-templates/{v2/lib → lib}/typescript/test/%name%.test.template.ts +0 -0
  99. package/lib/init-templates/{v1/lib → lib}/typescript/tsconfig.json +0 -0
  100. package/lib/init-templates/{v1/sample-app → sample-app}/csharp/.template.gitignore +0 -0
  101. package/lib/init-templates/{v2/sample-app → sample-app}/csharp/README.template.md +0 -0
  102. package/lib/init-templates/sample-app/csharp/add-project.hook.d.ts +2 -0
  103. package/lib/init-templates/{v1/sample-app → sample-app}/csharp/add-project.hook.js +1 -1
  104. package/lib/init-templates/{v1/sample-app → sample-app}/csharp/cdk.template.json +0 -0
  105. package/lib/init-templates/{v2/sample-app → sample-app}/csharp/src/%name.PascalCased%/%name.PascalCased%.template.csproj +0 -0
  106. package/lib/init-templates/{v2/sample-app → sample-app}/csharp/src/%name.PascalCased%/%name.PascalCased%Stack.template.cs +0 -0
  107. package/lib/init-templates/{v1/sample-app → sample-app}/csharp/src/%name.PascalCased%/GlobalSuppressions.cs +0 -0
  108. package/lib/init-templates/{v1/sample-app → sample-app}/csharp/src/%name.PascalCased%/Program.template.cs +0 -0
  109. package/lib/init-templates/{v1/sample-app → sample-app}/csharp/src/%name.PascalCased%.template.sln +0 -0
  110. package/lib/init-templates/{v1/sample-app → sample-app}/fsharp/.template.gitignore +0 -0
  111. package/lib/init-templates/{v1/sample-app → sample-app}/fsharp/README.template.md +0 -0
  112. package/lib/init-templates/sample-app/fsharp/add-project.hook.d.ts +2 -0
  113. package/lib/init-templates/{v2/app → sample-app}/fsharp/add-project.hook.js +1 -1
  114. package/lib/init-templates/{v1/sample-app → sample-app}/fsharp/cdk.template.json +0 -0
  115. package/lib/init-templates/{v2/sample-app → sample-app}/fsharp/src/%name.PascalCased%/%name.PascalCased%.template.fsproj +0 -0
  116. package/lib/init-templates/{v2/sample-app → sample-app}/fsharp/src/%name.PascalCased%/%name.PascalCased%Stack.template.fs +1 -1
  117. package/lib/init-templates/{v1/sample-app → sample-app}/fsharp/src/%name.PascalCased%/Program.template.fs +0 -0
  118. package/lib/init-templates/{v1/sample-app → sample-app}/fsharp/src/%name.PascalCased%.template.sln +0 -0
  119. package/lib/init-templates/{v2/sample-app → sample-app}/go/%name%.template.go +0 -0
  120. package/lib/init-templates/{v2/sample-app → sample-app}/go/%name%_test.template.go +0 -0
  121. package/lib/init-templates/{v1/sample-app → sample-app}/go/.template.gitignore +0 -0
  122. package/lib/init-templates/{v2/sample-app → sample-app}/go/README.md +1 -3
  123. package/lib/init-templates/{v1/sample-app → sample-app}/go/cdk.template.json +0 -0
  124. package/lib/init-templates/{v2/sample-app → sample-app}/go/go.template.mod +0 -0
  125. package/lib/init-templates/{v1/sample-app → sample-app}/info.json +0 -0
  126. package/lib/init-templates/{v1/sample-app → sample-app}/java/.template.gitignore +0 -0
  127. package/lib/init-templates/{v2/sample-app → sample-app}/java/README.template.md +0 -0
  128. package/lib/init-templates/{v1/sample-app → sample-app}/java/cdk.json +0 -0
  129. package/lib/init-templates/{v2/sample-app → sample-app}/java/pom.xml +0 -0
  130. package/lib/init-templates/{v2/sample-app → sample-app}/java/src/main/java/com/myorg/%name.PascalCased%App.template.java +0 -0
  131. package/lib/init-templates/{v2/sample-app → sample-app}/java/src/main/java/com/myorg/%name.PascalCased%Stack.template.java +0 -0
  132. package/lib/init-templates/{v2/sample-app → sample-app}/java/src/test/java/com/myorg/%name.PascalCased%StackTest.template.java +0 -0
  133. package/lib/init-templates/sample-app/java/sub-placeholders.hook.d.ts +2 -0
  134. package/lib/init-templates/{v1/sample-app → sample-app}/java/sub-placeholders.hook.js +1 -1
  135. package/lib/init-templates/{v1/sample-app → sample-app}/javascript/.template.gitignore +0 -0
  136. package/lib/init-templates/{v1/sample-app → sample-app}/javascript/.template.npmignore +0 -0
  137. package/lib/init-templates/{v2/sample-app → sample-app}/javascript/README.template.md +0 -0
  138. package/lib/init-templates/{v2/sample-app → sample-app}/javascript/bin/%name%.template.js +0 -0
  139. package/lib/init-templates/{v1/sample-app → sample-app}/javascript/cdk.template.json +0 -0
  140. package/lib/init-templates/{v2/app → sample-app}/javascript/jest.config.js +0 -0
  141. package/lib/init-templates/{v2/sample-app → sample-app}/javascript/lib/%name%-stack.template.js +0 -0
  142. package/lib/init-templates/{v2/sample-app → sample-app}/javascript/package.json +0 -0
  143. package/lib/init-templates/sample-app/javascript/sub-placeholders.hook.d.ts +2 -0
  144. package/lib/init-templates/{v1/app/typescript → sample-app/javascript}/sub-placeholders.hook.js +1 -1
  145. package/lib/init-templates/{v2/sample-app → sample-app}/javascript/test/%name%.test.template.js +0 -0
  146. package/lib/init-templates/{v1/sample-app → sample-app}/javascript/tsconfig.json +0 -0
  147. package/lib/init-templates/{v2/sample-app → sample-app}/python/%name.PythonModule%/%name.PythonModule%_stack.template.py +0 -0
  148. package/lib/init-templates/{v1/sample-app → sample-app}/python/%name.PythonModule%/__init__.py +0 -0
  149. package/lib/init-templates/{v1/sample-app → sample-app}/python/.template.gitignore +0 -0
  150. package/lib/init-templates/{v2/sample-app → sample-app}/python/README.template.md +0 -0
  151. package/lib/init-templates/{v2/sample-app → sample-app}/python/app.template.py +0 -0
  152. package/lib/init-templates/{v1/sample-app → sample-app}/python/cdk.template.json +0 -0
  153. package/lib/init-templates/{v1/sample-app → sample-app}/python/requirements-dev.txt +0 -0
  154. package/lib/init-templates/{v2/sample-app → sample-app}/python/requirements.txt +0 -0
  155. package/lib/init-templates/{v1/sample-app → sample-app}/python/source.bat +0 -0
  156. package/lib/init-templates/sample-app/python/sub-placeholders.hook.d.ts +2 -0
  157. package/lib/init-templates/{v2/app → sample-app}/python/sub-placeholders.hook.js +1 -1
  158. package/lib/init-templates/{v1/sample-app → sample-app}/python/tests/__init__.py +0 -0
  159. package/lib/init-templates/{v1/sample-app → sample-app}/python/tests/unit/__init__.py +0 -0
  160. package/lib/init-templates/{v2/sample-app → sample-app}/python/tests/unit/test_%name.PythonModule%_stack.template.py +0 -0
  161. package/lib/init-templates/{v1/sample-app → sample-app}/typescript/.template.gitignore +0 -0
  162. package/lib/init-templates/{v1/sample-app → sample-app}/typescript/.template.npmignore +0 -0
  163. package/lib/init-templates/{v2/sample-app → sample-app}/typescript/README.template.md +0 -0
  164. package/lib/init-templates/{v2/sample-app → sample-app}/typescript/bin/%name%.template.ts +0 -0
  165. package/lib/init-templates/{v1/sample-app → sample-app}/typescript/cdk.template.json +0 -0
  166. package/lib/init-templates/{v1/sample-app → sample-app}/typescript/jest.config.js +0 -0
  167. package/lib/init-templates/{v2/sample-app → sample-app}/typescript/lib/%name%-stack.template.ts +0 -0
  168. package/lib/init-templates/{v2/sample-app → sample-app}/typescript/package.json +1 -1
  169. package/lib/init-templates/sample-app/typescript/sub-placeholders.hook.d.ts +2 -0
  170. package/lib/init-templates/sample-app/typescript/sub-placeholders.hook.js +9 -0
  171. package/lib/init-templates/{v2/sample-app → sample-app}/typescript/test/%name%.test.template.ts +0 -0
  172. package/lib/init-templates/{v1/sample-app → sample-app}/typescript/tsconfig.json +0 -0
  173. package/lib/init.js +3 -16
  174. package/lib/notices.js +9 -15
  175. package/lib/setup-sandbox.js +6 -3
  176. package/lib/util/directories.d.ts +11 -0
  177. package/lib/util/directories.js +19 -2
  178. package/package.json +14 -13
  179. package/test/api/deploy-stack.test.js +2 -2
  180. package/test/commands/context-command.test.js +186 -47
  181. package/test/init.test.js +50 -56
  182. package/test/integ/cli/cli.integtest.js +30 -1
  183. package/test/integ/cli/sam_cdk_integ_app/src/python/Function/requirements.txt +1 -1
  184. package/test/integ/cli/sam_cdk_integ_app/src/python/Layer/requirements.txt +1 -1
  185. package/test/util/cloudformation.test.js +31 -4
  186. package/lib/init-templates/v1/app/csharp/add-project.hook.d.ts +0 -2
  187. package/lib/init-templates/v1/app/csharp/add-project.hook.js +0 -31
  188. package/lib/init-templates/v1/app/csharp/src/%name.PascalCased%/%name.PascalCased%.template.csproj +0 -19
  189. package/lib/init-templates/v1/app/csharp/src/%name.PascalCased%/%name.PascalCased%Stack.template.cs +0 -12
  190. package/lib/init-templates/v1/app/csharp/src/%name.PascalCased%/Program.template.cs +0 -45
  191. package/lib/init-templates/v1/app/fsharp/add-project.hook.d.ts +0 -2
  192. package/lib/init-templates/v1/app/fsharp/src/%name.PascalCased%/%name.PascalCased%.template.fsproj +0 -24
  193. package/lib/init-templates/v1/app/go/%name%.template.go +0 -68
  194. package/lib/init-templates/v1/app/go/%name%_test.template.go +0 -26
  195. package/lib/init-templates/v1/app/go/README.md +0 -14
  196. package/lib/init-templates/v1/app/go/go.template.mod +0 -9
  197. package/lib/init-templates/v1/app/java/pom.xml +0 -60
  198. package/lib/init-templates/v1/app/java/src/main/java/com/myorg/%name.PascalCased%App.template.java +0 -41
  199. package/lib/init-templates/v1/app/java/src/main/java/com/myorg/%name.PascalCased%Stack.template.java +0 -24
  200. package/lib/init-templates/v1/app/java/src/test/java/com/myorg/%name.PascalCased%Test.template.java +0 -26
  201. package/lib/init-templates/v1/app/java/sub-placeholders.hook.d.ts +0 -2
  202. package/lib/init-templates/v1/app/javascript/bin/%name%.template.js +0 -21
  203. package/lib/init-templates/v1/app/javascript/jest.config.js +0 -3
  204. package/lib/init-templates/v1/app/javascript/lib/%name%-stack.template.js +0 -23
  205. package/lib/init-templates/v1/app/javascript/package.json +0 -20
  206. package/lib/init-templates/v1/app/javascript/sub-placeholders.hook.d.ts +0 -2
  207. package/lib/init-templates/v1/app/javascript/test/%name%.test.template.js +0 -18
  208. package/lib/init-templates/v1/app/python/%name.PythonModule%/%name.PythonModule%_stack.template.py +0 -24
  209. package/lib/init-templates/v1/app/python/.template.gitignore +0 -11
  210. package/lib/init-templates/v1/app/python/app.template.py +0 -34
  211. package/lib/init-templates/v1/app/python/requirements.txt +0 -2
  212. package/lib/init-templates/v1/app/python/sub-placeholders.hook.d.ts +0 -2
  213. package/lib/init-templates/v1/app/python/sub-placeholders.hook.js +0 -9
  214. package/lib/init-templates/v1/app/python/tests/unit/test_%name.PythonModule%_stack.template.py +0 -19
  215. package/lib/init-templates/v1/app/typescript/bin/%name%.template.ts +0 -21
  216. package/lib/init-templates/v1/app/typescript/lib/%name%-stack.template.ts +0 -15
  217. package/lib/init-templates/v1/app/typescript/package.json +0 -28
  218. package/lib/init-templates/v1/app/typescript/sub-placeholders.hook.d.ts +0 -2
  219. package/lib/init-templates/v1/app/typescript/test/%name%.test.template.ts +0 -17
  220. package/lib/init-templates/v1/lib/typescript/README.template.md +0 -12
  221. package/lib/init-templates/v1/lib/typescript/lib/index.template.ts +0 -20
  222. package/lib/init-templates/v1/lib/typescript/package.json +0 -26
  223. package/lib/init-templates/v1/lib/typescript/sub-placeholders.hook.d.ts +0 -2
  224. package/lib/init-templates/v1/lib/typescript/test/%name%.test.template.ts +0 -18
  225. package/lib/init-templates/v1/sample-app/csharp/README.template.md +0 -22
  226. package/lib/init-templates/v1/sample-app/csharp/add-project.hook.d.ts +0 -2
  227. package/lib/init-templates/v1/sample-app/csharp/src/%name.PascalCased%/%name.PascalCased%.template.csproj +0 -23
  228. package/lib/init-templates/v1/sample-app/csharp/src/%name.PascalCased%/%name.PascalCased%Stack.template.cs +0 -23
  229. package/lib/init-templates/v1/sample-app/fsharp/add-project.hook.d.ts +0 -2
  230. package/lib/init-templates/v1/sample-app/fsharp/add-project.hook.js +0 -31
  231. package/lib/init-templates/v1/sample-app/fsharp/src/%name.PascalCased%/%name.PascalCased%.template.fsproj +0 -27
  232. package/lib/init-templates/v1/sample-app/fsharp/src/%name.PascalCased%/%name.PascalCased%Stack.template.fs +0 -14
  233. package/lib/init-templates/v1/sample-app/go/%name%.template.go +0 -71
  234. package/lib/init-templates/v1/sample-app/go/%name%_test.template.go +0 -25
  235. package/lib/init-templates/v1/sample-app/go/README.md +0 -14
  236. package/lib/init-templates/v1/sample-app/go/go.template.mod +0 -9
  237. package/lib/init-templates/v1/sample-app/java/README.template.md +0 -23
  238. package/lib/init-templates/v1/sample-app/java/pom.xml +0 -72
  239. package/lib/init-templates/v1/sample-app/java/src/main/java/com/myorg/%name.PascalCased%App.template.java +0 -13
  240. package/lib/init-templates/v1/sample-app/java/src/main/java/com/myorg/%name.PascalCased%Stack.template.java +0 -29
  241. package/lib/init-templates/v1/sample-app/java/src/test/java/com/myorg/%name.PascalCased%StackTest.template.java +0 -26
  242. package/lib/init-templates/v1/sample-app/java/sub-placeholders.hook.d.ts +0 -2
  243. package/lib/init-templates/v1/sample-app/javascript/README.template.md +0 -17
  244. package/lib/init-templates/v1/sample-app/javascript/bin/%name%.template.js +0 -6
  245. package/lib/init-templates/v1/sample-app/javascript/lib/%name%-stack.template.js +0 -25
  246. package/lib/init-templates/v1/sample-app/javascript/package.json +0 -23
  247. package/lib/init-templates/v1/sample-app/javascript/sub-placeholders.hook.d.ts +0 -2
  248. package/lib/init-templates/v1/sample-app/javascript/test/%name%.test.template.js +0 -25
  249. package/lib/init-templates/v1/sample-app/python/%name.PythonModule%/%name.PythonModule%_stack.template.py +0 -24
  250. package/lib/init-templates/v1/sample-app/python/README.template.md +0 -68
  251. package/lib/init-templates/v1/sample-app/python/app.template.py +0 -11
  252. package/lib/init-templates/v1/sample-app/python/requirements.txt +0 -7
  253. package/lib/init-templates/v1/sample-app/python/sub-placeholders.hook.d.ts +0 -2
  254. package/lib/init-templates/v1/sample-app/python/tests/unit/test_%name.PythonModule%_stack.template.py +0 -24
  255. package/lib/init-templates/v1/sample-app/typescript/README.template.md +0 -19
  256. package/lib/init-templates/v1/sample-app/typescript/bin/%name%.template.ts +0 -6
  257. package/lib/init-templates/v1/sample-app/typescript/lib/%name%-stack.template.ts +0 -18
  258. package/lib/init-templates/v1/sample-app/typescript/package.json +0 -30
  259. package/lib/init-templates/v1/sample-app/typescript/sub-placeholders.hook.d.ts +0 -2
  260. package/lib/init-templates/v1/sample-app/typescript/sub-placeholders.hook.js +0 -9
  261. package/lib/init-templates/v1/sample-app/typescript/test/%name%.test.template.ts +0 -25
  262. package/lib/init-templates/v2/app/csharp/.template.gitignore +0 -342
  263. package/lib/init-templates/v2/app/csharp/README.md +0 -14
  264. package/lib/init-templates/v2/app/csharp/add-project.hook.d.ts +0 -2
  265. package/lib/init-templates/v2/app/csharp/cdk.template.json +0 -15
  266. package/lib/init-templates/v2/app/csharp/src/%name.PascalCased%/GlobalSuppressions.cs +0 -1
  267. package/lib/init-templates/v2/app/csharp/src/%name.PascalCased%.template.sln +0 -18
  268. package/lib/init-templates/v2/app/fsharp/.template.gitignore +0 -342
  269. package/lib/init-templates/v2/app/fsharp/README.md +0 -18
  270. package/lib/init-templates/v2/app/fsharp/add-project.hook.d.ts +0 -2
  271. package/lib/init-templates/v2/app/fsharp/cdk.template.json +0 -14
  272. package/lib/init-templates/v2/app/fsharp/src/%name.PascalCased%/%name.PascalCased%Stack.template.fs +0 -8
  273. package/lib/init-templates/v2/app/fsharp/src/%name.PascalCased%/Program.template.fs +0 -11
  274. package/lib/init-templates/v2/app/fsharp/src/%name.PascalCased%.template.sln +0 -18
  275. package/lib/init-templates/v2/app/go/.template.gitignore +0 -19
  276. package/lib/init-templates/v2/app/go/cdk.template.json +0 -13
  277. package/lib/init-templates/v2/app/info.json +0 -4
  278. package/lib/init-templates/v2/app/java/.template.gitignore +0 -13
  279. package/lib/init-templates/v2/app/java/README.md +0 -18
  280. package/lib/init-templates/v2/app/java/cdk.json +0 -13
  281. package/lib/init-templates/v2/app/java/sub-placeholders.hook.d.ts +0 -2
  282. package/lib/init-templates/v2/app/java/sub-placeholders.hook.js +0 -9
  283. package/lib/init-templates/v2/app/javascript/.template.gitignore +0 -5
  284. package/lib/init-templates/v2/app/javascript/.template.npmignore +0 -3
  285. package/lib/init-templates/v2/app/javascript/README.md +0 -12
  286. package/lib/init-templates/v2/app/javascript/cdk.template.json +0 -15
  287. package/lib/init-templates/v2/app/javascript/sub-placeholders.hook.d.ts +0 -2
  288. package/lib/init-templates/v2/app/javascript/sub-placeholders.hook.js +0 -9
  289. package/lib/init-templates/v2/app/python/%name.PythonModule%/__init__.py +0 -0
  290. package/lib/init-templates/v2/app/python/README.template.md +0 -58
  291. package/lib/init-templates/v2/app/python/cdk.template.json +0 -15
  292. package/lib/init-templates/v2/app/python/requirements-dev.txt +0 -1
  293. package/lib/init-templates/v2/app/python/source.bat +0 -13
  294. package/lib/init-templates/v2/app/python/sub-placeholders.hook.d.ts +0 -2
  295. package/lib/init-templates/v2/app/python/tests/__init__.py +0 -0
  296. package/lib/init-templates/v2/app/python/tests/unit/__init__.py +0 -0
  297. package/lib/init-templates/v2/app/typescript/.template.gitignore +0 -8
  298. package/lib/init-templates/v2/app/typescript/.template.npmignore +0 -6
  299. package/lib/init-templates/v2/app/typescript/README.md +0 -14
  300. package/lib/init-templates/v2/app/typescript/cdk.template.json +0 -17
  301. package/lib/init-templates/v2/app/typescript/jest.config.js +0 -8
  302. package/lib/init-templates/v2/app/typescript/sub-placeholders.hook.d.ts +0 -2
  303. package/lib/init-templates/v2/app/typescript/sub-placeholders.hook.js +0 -9
  304. package/lib/init-templates/v2/app/typescript/tsconfig.json +0 -30
  305. package/lib/init-templates/v2/lib/info.json +0 -4
  306. package/lib/init-templates/v2/lib/typescript/.template.gitignore +0 -8
  307. package/lib/init-templates/v2/lib/typescript/.template.npmignore +0 -6
  308. package/lib/init-templates/v2/lib/typescript/jest.config.js +0 -8
  309. package/lib/init-templates/v2/lib/typescript/sub-placeholders.hook.d.ts +0 -2
  310. package/lib/init-templates/v2/lib/typescript/sub-placeholders.hook.js +0 -9
  311. package/lib/init-templates/v2/lib/typescript/tsconfig.json +0 -30
  312. package/lib/init-templates/v2/sample-app/csharp/.template.gitignore +0 -342
  313. package/lib/init-templates/v2/sample-app/csharp/add-project.hook.d.ts +0 -2
  314. package/lib/init-templates/v2/sample-app/csharp/add-project.hook.js +0 -31
  315. package/lib/init-templates/v2/sample-app/csharp/cdk.template.json +0 -15
  316. package/lib/init-templates/v2/sample-app/csharp/src/%name.PascalCased%/GlobalSuppressions.cs +0 -1
  317. package/lib/init-templates/v2/sample-app/csharp/src/%name.PascalCased%/Program.template.cs +0 -15
  318. package/lib/init-templates/v2/sample-app/csharp/src/%name.PascalCased%.template.sln +0 -18
  319. package/lib/init-templates/v2/sample-app/fsharp/.template.gitignore +0 -342
  320. package/lib/init-templates/v2/sample-app/fsharp/README.template.md +0 -20
  321. package/lib/init-templates/v2/sample-app/fsharp/add-project.hook.d.ts +0 -2
  322. package/lib/init-templates/v2/sample-app/fsharp/add-project.hook.js +0 -31
  323. package/lib/init-templates/v2/sample-app/fsharp/cdk.template.json +0 -14
  324. package/lib/init-templates/v2/sample-app/fsharp/src/%name.PascalCased%/Program.template.fs +0 -11
  325. package/lib/init-templates/v2/sample-app/fsharp/src/%name.PascalCased%.template.sln +0 -18
  326. package/lib/init-templates/v2/sample-app/go/.template.gitignore +0 -19
  327. package/lib/init-templates/v2/sample-app/go/cdk.template.json +0 -13
  328. package/lib/init-templates/v2/sample-app/info.json +0 -4
  329. package/lib/init-templates/v2/sample-app/java/.template.gitignore +0 -13
  330. package/lib/init-templates/v2/sample-app/java/cdk.json +0 -13
  331. package/lib/init-templates/v2/sample-app/java/sub-placeholders.hook.d.ts +0 -2
  332. package/lib/init-templates/v2/sample-app/java/sub-placeholders.hook.js +0 -9
  333. package/lib/init-templates/v2/sample-app/javascript/.template.gitignore +0 -5
  334. package/lib/init-templates/v2/sample-app/javascript/.template.npmignore +0 -3
  335. package/lib/init-templates/v2/sample-app/javascript/cdk.template.json +0 -15
  336. package/lib/init-templates/v2/sample-app/javascript/jest.config.js +0 -3
  337. package/lib/init-templates/v2/sample-app/javascript/sub-placeholders.hook.d.ts +0 -2
  338. package/lib/init-templates/v2/sample-app/javascript/sub-placeholders.hook.js +0 -9
  339. package/lib/init-templates/v2/sample-app/javascript/tsconfig.json +0 -35
  340. package/lib/init-templates/v2/sample-app/python/%name.PythonModule%/__init__.py +0 -0
  341. package/lib/init-templates/v2/sample-app/python/.template.gitignore +0 -22
  342. package/lib/init-templates/v2/sample-app/python/cdk.template.json +0 -15
  343. package/lib/init-templates/v2/sample-app/python/requirements-dev.txt +0 -1
  344. package/lib/init-templates/v2/sample-app/python/source.bat +0 -13
  345. package/lib/init-templates/v2/sample-app/python/sub-placeholders.hook.d.ts +0 -2
  346. package/lib/init-templates/v2/sample-app/python/sub-placeholders.hook.js +0 -9
  347. package/lib/init-templates/v2/sample-app/python/tests/__init__.py +0 -0
  348. package/lib/init-templates/v2/sample-app/python/tests/unit/__init__.py +0 -0
  349. package/lib/init-templates/v2/sample-app/typescript/.template.gitignore +0 -8
  350. package/lib/init-templates/v2/sample-app/typescript/.template.npmignore +0 -6
  351. package/lib/init-templates/v2/sample-app/typescript/cdk.template.json +0 -17
  352. package/lib/init-templates/v2/sample-app/typescript/jest.config.js +0 -8
  353. package/lib/init-templates/v2/sample-app/typescript/sub-placeholders.hook.d.ts +0 -2
  354. package/lib/init-templates/v2/sample-app/typescript/sub-placeholders.hook.js +0 -9
  355. package/lib/init-templates/v2/sample-app/typescript/tsconfig.json +0 -30
@@ -1,18 +0,0 @@
1
- // const { Template } = require('@aws-cdk/assertions');
2
- // const cdk = require('@aws-cdk/core');
3
- // const %name.PascalCased% = require('../lib/%name%-stack');
4
-
5
- // example test. To run these tests, uncomment this file along with the
6
- // example resource in lib/%name%-stack.js
7
- test('SQS Queue Created', () => {
8
- // const app = new cdk.App();
9
- // // WHEN
10
- // const stack = new %name.PascalCased%.%name.PascalCased%Stack(app, 'MyTestStack');
11
- // // THEN
12
- // const template = Template.fromStack(stack);
13
-
14
- // template.hasResourceProperties('AWS::SQS::Queue', {
15
- // VisibilityTimeout: 300
16
- // });
17
- });
18
-
@@ -1,24 +0,0 @@
1
- from aws_cdk import (
2
- core as cdk
3
- # aws_sqs as sqs,
4
- )
5
-
6
- # For consistency with other languages, `cdk` is the preferred import name for
7
- # the CDK's core module. The following line also imports it as `core` for use
8
- # with examples from the CDK Developer's Guide, which are in the process of
9
- # being updated to use `cdk`. You may delete this import if you don't need it.
10
- from aws_cdk import core
11
-
12
-
13
- class %name.PascalCased%Stack(cdk.Stack):
14
-
15
- def __init__(self, scope: cdk.Construct, construct_id: str, **kwargs) -> None:
16
- super().__init__(scope, construct_id, **kwargs)
17
-
18
- # The code that defines your stack goes here
19
-
20
- # example resource
21
- # queue = sqs.Queue(
22
- # self, "%name.PascalCased%Queue",
23
- # visibility_timeout=cdk.Duration.seconds(300),
24
- # )
@@ -1,11 +0,0 @@
1
- *.swp
2
- package-lock.json
3
- __pycache__
4
- .pytest_cache
5
- .env
6
- .venv
7
- *.egg-info
8
-
9
- # CDK asset staging directory
10
- .cdk.staging
11
- cdk.out
@@ -1,34 +0,0 @@
1
- #!/usr/bin/env python3
2
- import os
3
-
4
- from aws_cdk import core as cdk
5
-
6
- # For consistency with TypeScript code, `cdk` is the preferred import name for
7
- # the CDK's core module. The following line also imports it as `core` for use
8
- # with examples from the CDK Developer's Guide, which are in the process of
9
- # being updated to use `cdk`. You may delete this import if you don't need it.
10
- from aws_cdk import core
11
-
12
- from %name.PythonModule%.%name.PythonModule%_stack import %name.PascalCased%Stack
13
-
14
-
15
- app = core.App()
16
- %name.PascalCased%Stack(app, "%name.PascalCased%Stack",
17
- # If you don't specify 'env', this stack will be environment-agnostic.
18
- # Account/Region-dependent features and context lookups will not work,
19
- # but a single synthesized template can be deployed anywhere.
20
-
21
- # Uncomment the next line to specialize this stack for the AWS Account
22
- # and Region that are implied by the current CLI configuration.
23
-
24
- #env=core.Environment(account=os.getenv('CDK_DEFAULT_ACCOUNT'), region=os.getenv('CDK_DEFAULT_REGION')),
25
-
26
- # Uncomment the next line if you know exactly what Account and Region you
27
- # want to deploy the stack to. */
28
-
29
- #env=core.Environment(account='123456789012', region='us-east-1'),
30
-
31
- # For more information, see https://docs.aws.amazon.com/cdk/latest/guide/environments.html
32
- )
33
-
34
- app.synth()
@@ -1,2 +0,0 @@
1
- aws-cdk.core>=%cdk-version%
2
- aws-cdk.assertions>=%cdk-version%
@@ -1,2 +0,0 @@
1
- import { InvokeHook } from '../../../../init';
2
- export declare const invoke: InvokeHook;
@@ -1,9 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.invoke = void 0;
4
- exports.invoke = async (_, context) => {
5
- // File cannot be named like regular template because it needs to be
6
- // processed by dependency updaters.
7
- await context.substitutePlaceholdersIn('requirements.txt');
8
- };
9
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic3ViLXBsYWNlaG9sZGVycy5ob29rLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsic3ViLXBsYWNlaG9sZGVycy5ob29rLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7OztBQUVhLFFBQUEsTUFBTSxHQUFlLEtBQUssRUFBRSxDQUFDLEVBQUUsT0FBTyxFQUFFLEVBQUU7SUFDckQsb0VBQW9FO0lBQ3BFLG9DQUFvQztJQUNwQyxNQUFNLE9BQU8sQ0FBQyx3QkFBd0IsQ0FBQyxrQkFBa0IsQ0FBQyxDQUFDO0FBQzdELENBQUMsQ0FBQyIsInNvdXJjZXNDb250ZW50IjpbImltcG9ydCB7IEludm9rZUhvb2sgfSBmcm9tICcuLi8uLi8uLi8uLi9pbml0JztcblxuZXhwb3J0IGNvbnN0IGludm9rZTogSW52b2tlSG9vayA9IGFzeW5jIChfLCBjb250ZXh0KSA9PiB7XG4gIC8vIEZpbGUgY2Fubm90IGJlIG5hbWVkIGxpa2UgcmVndWxhciB0ZW1wbGF0ZSBiZWNhdXNlIGl0IG5lZWRzIHRvIGJlXG4gIC8vIHByb2Nlc3NlZCBieSBkZXBlbmRlbmN5IHVwZGF0ZXJzLlxuICBhd2FpdCBjb250ZXh0LnN1YnN0aXR1dGVQbGFjZWhvbGRlcnNJbigncmVxdWlyZW1lbnRzLnR4dCcpO1xufTtcbiJdfQ==
@@ -1,19 +0,0 @@
1
- # from aws_cdk import (
2
- # core,
3
- # assertions
4
- # )
5
-
6
- # from %name.PythonModule%.%name.PythonModule%_stack import %name.PascalCased%Stack
7
-
8
-
9
- # example tests. To run these tests, uncomment this file along with the example
10
- # resource in %name.PythonModule%/%name.PythonModule%_stack.py
11
- def test_sqs_queue_created():
12
- # app = core.App()
13
- # stack = %name.PascalCased%Stack(app, "%name.StackName%")
14
- # template = assertions.Template.from_stack(stack)
15
-
16
- # template.has_resource_properties("AWS::SQS::Queue", {
17
- # "VisibilityTimeout": 300
18
- # })
19
- pass
@@ -1,21 +0,0 @@
1
- #!/usr/bin/env node
2
- import 'source-map-support/register';
3
- import * as cdk from '@aws-cdk/core';
4
- import { %name.PascalCased%Stack } from '../lib/%name%-stack';
5
-
6
- const app = new cdk.App();
7
- new %name.PascalCased%Stack(app, '%name.PascalCased%Stack', {
8
- /* If you don't specify 'env', this stack will be environment-agnostic.
9
- * Account/Region-dependent features and context lookups will not work,
10
- * but a single synthesized template can be deployed anywhere. */
11
-
12
- /* Uncomment the next line to specialize this stack for the AWS Account
13
- * and Region that are implied by the current CLI configuration. */
14
- // env: { account: process.env.CDK_DEFAULT_ACCOUNT, region: process.env.CDK_DEFAULT_REGION },
15
-
16
- /* Uncomment the next line if you know exactly what Account and Region you
17
- * want to deploy the stack to. */
18
- // env: { account: '123456789012', region: 'us-east-1' },
19
-
20
- /* For more information, see https://docs.aws.amazon.com/cdk/latest/guide/environments.html */
21
- });
@@ -1,15 +0,0 @@
1
- import * as cdk from '@aws-cdk/core';
2
- // import * as sqs from '@aws-cdk/aws-sqs';
3
-
4
- export class %name.PascalCased%Stack extends cdk.Stack {
5
- constructor(scope: cdk.Construct, id: string, props?: cdk.StackProps) {
6
- super(scope, id, props);
7
-
8
- // The code that defines your stack goes here
9
-
10
- // example resource
11
- // const queue = new sqs.Queue(this, '%name.PascalCased%Queue', {
12
- // visibilityTimeout: cdk.Duration.seconds(300)
13
- // });
14
- }
15
- }
@@ -1,28 +0,0 @@
1
- {
2
- "name": "%name%",
3
- "version": "0.1.0",
4
- "bin": {
5
- "%name%": "bin/%name%.js"
6
- },
7
- "scripts": {
8
- "build": "tsc",
9
- "watch": "tsc -w",
10
- "test": "jest",
11
- "cdk": "cdk"
12
- },
13
- "devDependencies": {
14
- "@aws-cdk/assertions": "%cdk-version%",
15
- "@types/prettier": "2.6.0",
16
- "@types/jest": "^27.5.2",
17
- "@types/node": "10.17.27",
18
- "jest": "^27.5.1",
19
- "ts-jest": "^27.1.4",
20
- "aws-cdk": "%cdk-version%",
21
- "ts-node": "^10.8.1",
22
- "typescript": "~3.9.7"
23
- },
24
- "dependencies": {
25
- "@aws-cdk/core": "%cdk-version%",
26
- "source-map-support": "^0.5.21"
27
- }
28
- }
@@ -1,2 +0,0 @@
1
- import { InvokeHook } from '../../../../init';
2
- export declare const invoke: InvokeHook;
@@ -1,17 +0,0 @@
1
- // import { Template } from '@aws-cdk/assertions';
2
- // import * as cdk from '@aws-cdk/core';
3
- // import * as %name.PascalCased% from '../lib/%name%-stack';
4
-
5
- // example test. To run these tests, uncomment this file along with the
6
- // example resource in lib/%name%-stack.ts
7
- test('SQS Queue Created', () => {
8
- // const app = new cdk.App();
9
- // // WHEN
10
- // const stack = new %name.PascalCased%.%name.PascalCased%Stack(app, 'MyTestStack');
11
- // // THEN
12
- // const template = Template.fromStack(stack);
13
-
14
- // template.hasResourceProperties('AWS::SQS::Queue', {
15
- // VisibilityTimeout: 300
16
- // });
17
- });
@@ -1,12 +0,0 @@
1
- # Welcome to your CDK TypeScript Construct Library project
2
-
3
- You should explore the contents of this project. It demonstrates a CDK Construct Library that includes a construct (`%name.PascalCased%`)
4
- which contains an Amazon SQS queue that is subscribed to an Amazon SNS topic.
5
-
6
- The construct defines an interface (`%name.PascalCased%Props`) to configure the visibility timeout of the queue.
7
-
8
- ## Useful commands
9
-
10
- * `npm run build` compile typescript to js
11
- * `npm run watch` watch for changes and compile
12
- * `npm run test` perform the jest unit tests
@@ -1,20 +0,0 @@
1
- import * as cdk from '@aws-cdk/core';
2
- // import * as sqs from '@aws-cdk/aws-sqs';
3
-
4
- export interface %name.PascalCased%Props {
5
- // Define construct properties here
6
- }
7
-
8
- export class %name.PascalCased% extends cdk.Construct {
9
-
10
- constructor(scope: cdk.Construct, id: string, props: %name.PascalCased%Props = {}) {
11
- super(scope, id);
12
-
13
- // Define construct contents here
14
-
15
- // example resource
16
- // const queue = new sqs.Queue(this, '%name.PascalCased%Queue', {
17
- // visibilityTimeout: cdk.Duration.seconds(300)
18
- // });
19
- }
20
- }
@@ -1,26 +0,0 @@
1
- {
2
- "name": "%name%",
3
- "version": "0.1.0",
4
- "main": "lib/index.js",
5
- "types": "lib/index.d.ts",
6
- "scripts": {
7
- "build": "tsc",
8
- "watch": "tsc -w",
9
- "test": "jest"
10
- },
11
- "devDependencies": {
12
- "@aws-cdk/assertions": "%cdk-version%",
13
- "@types/jest": "^27.5.2",
14
- "@types/prettier": "2.6.0",
15
- "@types/node": "10.17.27",
16
- "jest": "^27.5.1",
17
- "ts-jest": "^27.1.4",
18
- "typescript": "~3.9.7"
19
- },
20
- "peerDependencies": {
21
- "@aws-cdk/core": "%cdk-version%"
22
- },
23
- "dependencies": {
24
- "@aws-cdk/core": "%cdk-version%"
25
- }
26
- }
@@ -1,2 +0,0 @@
1
- import { InvokeHook } from '../../../../init';
2
- export declare const invoke: InvokeHook;
@@ -1,18 +0,0 @@
1
- // import { Template } from '@aws-cdk/assertions';
2
- // import * as cdk from '@aws-cdk/core';
3
- // import * as %name.PascalCased% from '../lib/index';
4
-
5
- // example test. To run these tests, uncomment this file along with the
6
- // example resource in lib/index.ts
7
- test('SQS Queue Created', () => {
8
- // const app = new cdk.App();
9
- // const stack = new cdk.Stack(app, 'TestStack');
10
- // // WHEN
11
- // new %name.PascalCased%.%name.PascalCased%(stack, 'MyTestConstruct');
12
- // // THEN
13
- // const template = Template.fromStack(stack);
14
-
15
- // template.hasResourceProperties('AWS::SQS::Queue', {
16
- // VisibilityTimeout: 300
17
- // });
18
- });
@@ -1,22 +0,0 @@
1
- # Welcome to your CDK C# project!
2
-
3
- You should explore the contents of this project. It demonstrates a CDK app with an instance of a stack (`%name.PascalCased%Stack`)
4
- which contains an Amazon SQS queue that is subscribed to an Amazon SNS topic.
5
-
6
- The `cdk.json` file tells the CDK Toolkit how to execute your app.
7
-
8
- It uses the [.NET Core CLI](https://docs.microsoft.com/dotnet/articles/core/) to compile and execute your project.
9
-
10
- ## Tutorial
11
- See [this useful workshop](https://cdkworkshop.com/40-dotnet.html) on working with the AWS CDK for C# projects.
12
-
13
- ## Useful commands
14
-
15
- * `dotnet build src` compile this app
16
- * `cdk ls` list all stacks in the app
17
- * `cdk synth` emits the synthesized CloudFormation template
18
- * `cdk deploy` deploy this stack to your default AWS account/region
19
- * `cdk diff` compare deployed stack with current state
20
- * `cdk docs` open CDK documentation
21
-
22
- Enjoy!
@@ -1,2 +0,0 @@
1
- import { InvokeHook } from '../../../../init';
2
- export declare const invoke: InvokeHook;
@@ -1,23 +0,0 @@
1
- <Project Sdk="Microsoft.NET.Sdk">
2
-
3
- <PropertyGroup>
4
- <OutputType>Exe</OutputType>
5
- <TargetFramework>netcoreapp3.1</TargetFramework>
6
- <!-- Roll forward to future major versions of the netcoreapp as needed -->
7
- <RollForward>Major</RollForward>
8
- </PropertyGroup>
9
-
10
- <ItemGroup>
11
- <!-- CDK Construct Library dependencies -->
12
- <PackageReference Include="Amazon.CDK" Version="%cdk-version%" />
13
- <PackageReference Include="Amazon.CDK.AWS.IAM" Version="%cdk-version%" />
14
- <PackageReference Include="Amazon.CDK.AWS.SNS" Version="%cdk-version%" />
15
- <PackageReference Include="Amazon.CDK.AWS.SNS.Subscriptions" Version="%cdk-version%" />
16
- <PackageReference Include="Amazon.CDK.AWS.SQS" Version="%cdk-version%" />
17
-
18
- <!-- jsii Roslyn analyzers (un-comment to obtain compile-time checks for missing required props
19
- <PackageReference Include="Amazon.Jsii.Analyzers" Version="*" PrivateAssets="all" />
20
- -->
21
- </ItemGroup>
22
-
23
- </Project>
@@ -1,23 +0,0 @@
1
- using Amazon.CDK;
2
- using Amazon.CDK.AWS.SNS;
3
- using Amazon.CDK.AWS.SNS.Subscriptions;
4
- using Amazon.CDK.AWS.SQS;
5
-
6
- namespace %name.PascalCased%
7
- {
8
- public class %name.PascalCased%Stack : Stack
9
- {
10
- internal %name.PascalCased%Stack(Construct scope, string id, IStackProps props = null) : base(scope, id, props)
11
- {
12
- // The CDK includes built-in constructs for most resource types, such as Queues and Topics.
13
- var queue = new Queue(this, "%name.PascalCased%Queue", new QueueProps
14
- {
15
- VisibilityTimeout = Duration.Seconds(300)
16
- });
17
-
18
- var topic = new Topic(this, "%name.PascalCased%Topic");
19
-
20
- topic.AddSubscription(new SqsSubscription(queue));
21
- }
22
- }
23
- }
@@ -1,2 +0,0 @@
1
- import { InvokeHook } from '../../../../init';
2
- export declare const invoke: InvokeHook;
@@ -1,31 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.invoke = void 0;
4
- const child_process = require("child_process");
5
- const path = require("path");
6
- exports.invoke = async (targetDirectory) => {
7
- const slnPath = path.join(targetDirectory, 'src', '%name.PascalCased%.sln');
8
- const fsprojPath = path.join(targetDirectory, 'src', '%name.PascalCased%', '%name.PascalCased%.fsproj');
9
- const child = child_process.spawn('dotnet', ['sln', slnPath, 'add', fsprojPath], {
10
- // Need this for Windows where we want .cmd and .bat to be found as well.
11
- shell: true,
12
- stdio: ['ignore', 'pipe', 'inherit'],
13
- });
14
- await new Promise((resolve, reject) => {
15
- const stdout = new Array();
16
- child.stdout.on('data', chunk => {
17
- process.stdout.write(chunk);
18
- stdout.push(chunk);
19
- });
20
- child.once('error', reject);
21
- child.once('exit', code => {
22
- if (code === 0) {
23
- resolve(Buffer.concat(stdout).toString('utf-8'));
24
- }
25
- else {
26
- reject(new Error(`Could not add project %name.PascalCased%.fsproj to solution %name.PascalCased%.sln. Error code: ${code}`));
27
- }
28
- });
29
- });
30
- };
31
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYWRkLXByb2plY3QuaG9vay5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbImFkZC1wcm9qZWN0Lmhvb2sudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7O0FBQUEsK0NBQStDO0FBQy9DLDZCQUE2QjtBQUdoQixRQUFBLE1BQU0sR0FBZSxLQUFLLEVBQUUsZUFBdUIsRUFBRSxFQUFFO0lBQ2xFLE1BQU0sT0FBTyxHQUFHLElBQUksQ0FBQyxJQUFJLENBQUMsZUFBZSxFQUFFLEtBQUssRUFBRSx3QkFBd0IsQ0FBQyxDQUFDO0lBQzVFLE1BQU0sVUFBVSxHQUFHLElBQUksQ0FBQyxJQUFJLENBQUMsZUFBZSxFQUFFLEtBQUssRUFBRSxvQkFBb0IsRUFBRSwyQkFBMkIsQ0FBQyxDQUFDO0lBRXhHLE1BQU0sS0FBSyxHQUFHLGFBQWEsQ0FBQyxLQUFLLENBQUMsUUFBUSxFQUFFLENBQUMsS0FBSyxFQUFFLE9BQU8sRUFBRSxLQUFLLEVBQUUsVUFBVSxDQUFDLEVBQUU7UUFDL0UseUVBQXlFO1FBQ3pFLEtBQUssRUFBRSxJQUFJO1FBQ1gsS0FBSyxFQUFFLENBQUMsUUFBUSxFQUFFLE1BQU0sRUFBRSxTQUFTLENBQUM7S0FDckMsQ0FBQyxDQUFDO0lBRUgsTUFBTSxJQUFJLE9BQU8sQ0FBUyxDQUFDLE9BQU8sRUFBRSxNQUFNLEVBQUUsRUFBRTtRQUM1QyxNQUFNLE1BQU0sR0FBRyxJQUFJLEtBQUssRUFBTyxDQUFDO1FBRWhDLEtBQUssQ0FBQyxNQUFNLENBQUMsRUFBRSxDQUFDLE1BQU0sRUFBRSxLQUFLLENBQUMsRUFBRTtZQUM5QixPQUFPLENBQUMsTUFBTSxDQUFDLEtBQUssQ0FBQyxLQUFLLENBQUMsQ0FBQztZQUM1QixNQUFNLENBQUMsSUFBSSxDQUFDLEtBQUssQ0FBQyxDQUFDO1FBQ3JCLENBQUMsQ0FBQyxDQUFDO1FBRUgsS0FBSyxDQUFDLElBQUksQ0FBQyxPQUFPLEVBQUUsTUFBTSxDQUFDLENBQUM7UUFFNUIsS0FBSyxDQUFDLElBQUksQ0FBQyxNQUFNLEVBQUUsSUFBSSxDQUFDLEVBQUU7WUFDeEIsSUFBSSxJQUFJLEtBQUssQ0FBQyxFQUFFO2dCQUNkLE9BQU8sQ0FBQyxNQUFNLENBQUMsTUFBTSxDQUFDLE1BQU0sQ0FBQyxDQUFDLFFBQVEsQ0FBQyxPQUFPLENBQUMsQ0FBQyxDQUFDO2FBQ2xEO2lCQUFNO2dCQUNMLE1BQU0sQ0FBQyxJQUFJLEtBQUssQ0FBQyxtR0FBbUcsSUFBSSxFQUFFLENBQUMsQ0FBQyxDQUFDO2FBQzlIO1FBQ0gsQ0FBQyxDQUFDLENBQUM7SUFDTCxDQUFDLENBQUMsQ0FBQztBQUNMLENBQUMsQ0FBQyIsInNvdXJjZXNDb250ZW50IjpbImltcG9ydCAqIGFzIGNoaWxkX3Byb2Nlc3MgZnJvbSAnY2hpbGRfcHJvY2Vzcyc7XG5pbXBvcnQgKiBhcyBwYXRoIGZyb20gJ3BhdGgnO1xuaW1wb3J0IHsgSW52b2tlSG9vayB9IGZyb20gJy4uLy4uLy4uLy4uL2luaXQnO1xuXG5leHBvcnQgY29uc3QgaW52b2tlOiBJbnZva2VIb29rID0gYXN5bmMgKHRhcmdldERpcmVjdG9yeTogc3RyaW5nKSA9PiB7XG4gIGNvbnN0IHNsblBhdGggPSBwYXRoLmpvaW4odGFyZ2V0RGlyZWN0b3J5LCAnc3JjJywgJyVuYW1lLlBhc2NhbENhc2VkJS5zbG4nKTtcbiAgY29uc3QgZnNwcm9qUGF0aCA9IHBhdGguam9pbih0YXJnZXREaXJlY3RvcnksICdzcmMnLCAnJW5hbWUuUGFzY2FsQ2FzZWQlJywgJyVuYW1lLlBhc2NhbENhc2VkJS5mc3Byb2onKTtcblxuICBjb25zdCBjaGlsZCA9IGNoaWxkX3Byb2Nlc3Muc3Bhd24oJ2RvdG5ldCcsIFsnc2xuJywgc2xuUGF0aCwgJ2FkZCcsIGZzcHJvalBhdGhdLCB7XG4gICAgLy8gTmVlZCB0aGlzIGZvciBXaW5kb3dzIHdoZXJlIHdlIHdhbnQgLmNtZCBhbmQgLmJhdCB0byBiZSBmb3VuZCBhcyB3ZWxsLlxuICAgIHNoZWxsOiB0cnVlLFxuICAgIHN0ZGlvOiBbJ2lnbm9yZScsICdwaXBlJywgJ2luaGVyaXQnXSxcbiAgfSk7XG5cbiAgYXdhaXQgbmV3IFByb21pc2U8c3RyaW5nPigocmVzb2x2ZSwgcmVqZWN0KSA9PiB7XG4gICAgY29uc3Qgc3Rkb3V0ID0gbmV3IEFycmF5PGFueT4oKTtcblxuICAgIGNoaWxkLnN0ZG91dC5vbignZGF0YScsIGNodW5rID0+IHtcbiAgICAgIHByb2Nlc3Muc3Rkb3V0LndyaXRlKGNodW5rKTtcbiAgICAgIHN0ZG91dC5wdXNoKGNodW5rKTtcbiAgICB9KTtcblxuICAgIGNoaWxkLm9uY2UoJ2Vycm9yJywgcmVqZWN0KTtcblxuICAgIGNoaWxkLm9uY2UoJ2V4aXQnLCBjb2RlID0+IHtcbiAgICAgIGlmIChjb2RlID09PSAwKSB7XG4gICAgICAgIHJlc29sdmUoQnVmZmVyLmNvbmNhdChzdGRvdXQpLnRvU3RyaW5nKCd1dGYtOCcpKTtcbiAgICAgIH0gZWxzZSB7XG4gICAgICAgIHJlamVjdChuZXcgRXJyb3IoYENvdWxkIG5vdCBhZGQgcHJvamVjdCAlbmFtZS5QYXNjYWxDYXNlZCUuZnNwcm9qIHRvIHNvbHV0aW9uICVuYW1lLlBhc2NhbENhc2VkJS5zbG4uIEVycm9yIGNvZGU6ICR7Y29kZX1gKSk7XG4gICAgICB9XG4gICAgfSk7XG4gIH0pO1xufTtcbiJdfQ==
@@ -1,27 +0,0 @@
1
- <Project Sdk="Microsoft.NET.Sdk">
2
-
3
- <PropertyGroup>
4
- <OutputType>Exe</OutputType>
5
- <TargetFramework>netcoreapp3.1</TargetFramework>
6
- <!-- Roll forward to future major versions of the netcoreapp as needed -->
7
- <RollForward>Major</RollForward>
8
- </PropertyGroup>
9
-
10
- <ItemGroup>
11
- <Compile Include="%name.PascalCased%Stack.fs" />
12
- <Compile Include="Program.fs" />
13
- </ItemGroup>
14
-
15
- <ItemGroup>
16
- <!-- CDK Construct Library dependencies -->
17
- <PackageReference Include="Amazon.CDK" Version="%cdk-version%" />
18
- <PackageReference Include="Amazon.CDK.AWS.SNS" Version="%cdk-version%" />
19
- <PackageReference Include="Amazon.CDK.AWS.SNS.Subscriptions" Version="%cdk-version%" />
20
- <PackageReference Include="Amazon.CDK.AWS.SQS" Version="%cdk-version%" />
21
-
22
- <!-- jsii Roslyn analyzers (un-comment to obtain compile-time checks for missing required props
23
- <PackageReference Include="Amazon.Jsii.Analyzers" Version="*" PrivateAssets="all" />
24
- -->
25
- </ItemGroup>
26
-
27
- </Project>
@@ -1,14 +0,0 @@
1
- namespace %name.PascalCased%
2
-
3
- open Amazon.CDK
4
- open Amazon.CDK.AWS.SNS
5
- open Amazon.CDK.AWS.SNS.Subscriptions
6
- open Amazon.CDK.AWS.SQS
7
-
8
- type %name.PascalCased%Stack(scope, id, props) as this =
9
- inherit Stack(scope, id, props)
10
-
11
- let queue = Queue(this, "%name.PascalCased%Queue", QueueProps(VisibilityTimeout = Duration.Seconds(300.)))
12
-
13
- let topic = Topic(this, "%name.PascalCased%Topic")
14
- do topic.AddSubscription(SqsSubscription(queue))
@@ -1,71 +0,0 @@
1
- package main
2
-
3
- import (
4
- "github.com/aws/aws-cdk-go/awscdk"
5
- "github.com/aws/aws-cdk-go/awscdk/awssns"
6
- "github.com/aws/aws-cdk-go/awscdk/awssnssubscriptions"
7
- "github.com/aws/aws-cdk-go/awscdk/awssqs"
8
- "github.com/aws/constructs-go/constructs/v3"
9
- "github.com/aws/jsii-runtime-go"
10
- )
11
-
12
- type %name.PascalCased%StackProps struct {
13
- awscdk.StackProps
14
- }
15
-
16
- func New%name.PascalCased%Stack(scope constructs.Construct, id string, props *%name.PascalCased%StackProps) awscdk.Stack {
17
- var sprops awscdk.StackProps
18
- if props != nil {
19
- sprops = props.StackProps
20
- }
21
- stack := awscdk.NewStack(scope, &id, &sprops)
22
-
23
-
24
- queue := awssqs.NewQueue(stack, jsii.String("%name.PascalCased%Queue"), &awssqs.QueueProps{
25
- VisibilityTimeout: awscdk.Duration_Seconds(jsii.Number(300)),
26
- })
27
-
28
- topic := awssns.NewTopic(stack, jsii.String("%name.PascalCased%Topic"), &awssns.TopicProps{})
29
- topic.AddSubscription(awssnssubscriptions.NewSqsSubscription(queue, &awssnssubscriptions.SqsSubscriptionProps{}))
30
-
31
- return stack
32
- }
33
-
34
- func main() {
35
- app := awscdk.NewApp(nil)
36
-
37
- New%name.PascalCased%Stack(app, "%name.PascalCased%Stack", &%name.PascalCased%StackProps{
38
- awscdk.StackProps{
39
- Env: env(),
40
- },
41
- })
42
-
43
- app.Synth(nil)
44
- }
45
-
46
- // env determines the AWS environment (account+region) in which our stack is to
47
- // be deployed. For more information see: https://docs.aws.amazon.com/cdk/latest/guide/environments.html
48
- func env() *awscdk.Environment {
49
- // If unspecified, this stack will be "environment-agnostic".
50
- // Account/Region-dependent features and context lookups will not work, but a
51
- // single synthesized template can be deployed anywhere.
52
- //---------------------------------------------------------------------------
53
- return nil
54
-
55
- // Uncomment if you know exactly what account and region you want to deploy
56
- // the stack to. This is the recommendation for production stacks.
57
- //---------------------------------------------------------------------------
58
- // return &awscdk.Environment{
59
- // Account: jsii.String("123456789012"),
60
- // Region: jsii.String("us-east-1"),
61
- // }
62
-
63
- // Uncomment to specialize this stack for the AWS Account and Region that are
64
- // implied by the current CLI configuration. This is recommended for dev
65
- // stacks.
66
- //---------------------------------------------------------------------------
67
- // return &awscdk.Environment{
68
- // Account: jsii.String(os.Getenv("CDK_DEFAULT_ACCOUNT")),
69
- // Region: jsii.String(os.Getenv("CDK_DEFAULT_REGION")),
70
- // }
71
- }
@@ -1,25 +0,0 @@
1
- package main
2
-
3
- import (
4
- "testing"
5
-
6
- "github.com/aws/aws-cdk-go/awscdk"
7
- "github.com/aws/aws-cdk-go/awscdk/assertions"
8
- "github.com/aws/jsii-runtime-go"
9
- )
10
-
11
- func Test%name.PascalCased%Stack(t *testing.T) {
12
- // GIVEN
13
- app := awscdk.NewApp(nil)
14
-
15
- // WHEN
16
- stack := New%name.PascalCased%Stack(app, "MyStack", nil)
17
-
18
- // THEN
19
- template := assertions.Template_FromStack(stack)
20
-
21
- template.HasResourceProperties(jsii.String("AWS::SQS::Queue"), map[string]interface{}{
22
- "VisibilityTimeout": 300,
23
- })
24
- template.ResourceCountIs(jsii.String("AWS::SNS::Topic"), jsii.Number(1))
25
- }
@@ -1,14 +0,0 @@
1
- # Welcome to your CDK Go project!
2
-
3
- This is a blank project for Go development with CDK.
4
-
5
- **NOTICE**: Go support is still in Developer Preview. This implies that APIs may
6
- change while we address early feedback from the community. We would love to hear
7
- about your experience through GitHub issues.
8
-
9
- ## Useful commands
10
-
11
- * `cdk deploy` deploy this stack to your default AWS account/region
12
- * `cdk diff` compare deployed stack with current state
13
- * `cdk synth` emits the synthesized CloudFormation template
14
- * `go test` run unit tests
@@ -1,9 +0,0 @@
1
- module %name%
2
-
3
- go 1.16
4
-
5
- require (
6
- github.com/aws/aws-cdk-go/awscdk v%cdk-version%-devpreview
7
- github.com/aws/constructs-go/constructs/v3 v3.3.71
8
- github.com/aws/jsii-runtime-go v1.26.0
9
- )
@@ -1,23 +0,0 @@
1
- # Welcome to your CDK Java project!
2
-
3
- You should explore the contents of this project. It demonstrates a CDK app with an instance of a stack (`%name.PascalCased%Stack`)
4
- which contains an Amazon SQS queue that is subscribed to an Amazon SNS topic.
5
-
6
- The `cdk.json` file tells the CDK Toolkit how to execute your app.
7
-
8
- It is a [Maven](https://maven.apache.org/) based project, so you can open this project with any Maven compatible Java IDE to build and run tests.
9
-
10
- ## Tutorial
11
- See [this useful workshop](https://cdkworkshop.com/50-java.html) on working with the AWS CDK for Java projects.
12
-
13
-
14
- ## Useful commands
15
-
16
- * `mvn package` compile and run tests
17
- * `cdk ls` list all stacks in the app
18
- * `cdk synth` emits the synthesized CloudFormation template
19
- * `cdk deploy` deploy this stack to your default AWS account/region
20
- * `cdk diff` compare deployed stack with current state
21
- * `cdk docs` open CDK documentation
22
-
23
- Enjoy!