@gradientedge/cdk-utils 4.4.8 → 4.5.2

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 (322) hide show
  1. package/app/api-destined-function/node_modules/uuid/dist/bin/uuid +2 -0
  2. package/app/api-destined-function/node_modules/uuid/dist/esm-browser/index.js +9 -0
  3. package/app/api-destined-function/node_modules/uuid/dist/esm-browser/md5.js +215 -0
  4. package/app/api-destined-function/node_modules/uuid/dist/esm-browser/nil.js +1 -0
  5. package/app/api-destined-function/node_modules/uuid/dist/esm-browser/parse.js +35 -0
  6. package/app/api-destined-function/node_modules/uuid/dist/esm-browser/regex.js +1 -0
  7. package/app/api-destined-function/node_modules/uuid/dist/esm-browser/rng.js +19 -0
  8. package/app/api-destined-function/node_modules/uuid/dist/esm-browser/sha1.js +96 -0
  9. package/app/api-destined-function/node_modules/uuid/dist/esm-browser/stringify.js +30 -0
  10. package/app/api-destined-function/node_modules/uuid/dist/esm-browser/v1.js +95 -0
  11. package/app/api-destined-function/node_modules/uuid/dist/esm-browser/v3.js +4 -0
  12. package/app/api-destined-function/node_modules/uuid/dist/esm-browser/v35.js +64 -0
  13. package/app/api-destined-function/node_modules/uuid/dist/esm-browser/v4.js +24 -0
  14. package/app/api-destined-function/node_modules/uuid/dist/esm-browser/v5.js +4 -0
  15. package/app/api-destined-function/node_modules/uuid/dist/esm-browser/validate.js +7 -0
  16. package/app/api-destined-function/node_modules/uuid/dist/esm-browser/version.js +11 -0
  17. package/app/api-destined-function/node_modules/uuid/dist/esm-node/index.js +9 -0
  18. package/app/api-destined-function/node_modules/uuid/dist/esm-node/md5.js +13 -0
  19. package/app/api-destined-function/node_modules/uuid/dist/esm-node/nil.js +1 -0
  20. package/app/api-destined-function/node_modules/uuid/dist/esm-node/parse.js +35 -0
  21. package/app/api-destined-function/node_modules/uuid/dist/esm-node/regex.js +1 -0
  22. package/app/api-destined-function/node_modules/uuid/dist/esm-node/rng.js +12 -0
  23. package/app/api-destined-function/node_modules/uuid/dist/esm-node/sha1.js +13 -0
  24. package/app/api-destined-function/node_modules/uuid/dist/esm-node/stringify.js +29 -0
  25. package/app/api-destined-function/node_modules/uuid/dist/esm-node/v1.js +95 -0
  26. package/app/api-destined-function/node_modules/uuid/dist/esm-node/v3.js +4 -0
  27. package/app/api-destined-function/node_modules/uuid/dist/esm-node/v35.js +64 -0
  28. package/app/api-destined-function/node_modules/uuid/dist/esm-node/v4.js +24 -0
  29. package/app/api-destined-function/node_modules/uuid/dist/esm-node/v5.js +4 -0
  30. package/app/api-destined-function/node_modules/uuid/dist/esm-node/validate.js +7 -0
  31. package/app/api-destined-function/node_modules/uuid/dist/esm-node/version.js +11 -0
  32. package/app/api-destined-function/node_modules/uuid/dist/index.js +79 -0
  33. package/app/api-destined-function/node_modules/uuid/dist/md5-browser.js +223 -0
  34. package/app/api-destined-function/node_modules/uuid/dist/md5.js +23 -0
  35. package/app/api-destined-function/node_modules/uuid/dist/nil.js +8 -0
  36. package/app/api-destined-function/node_modules/uuid/dist/parse.js +45 -0
  37. package/app/api-destined-function/node_modules/uuid/dist/regex.js +8 -0
  38. package/app/api-destined-function/node_modules/uuid/dist/rng-browser.js +26 -0
  39. package/app/api-destined-function/node_modules/uuid/dist/rng.js +24 -0
  40. package/app/api-destined-function/node_modules/uuid/dist/sha1-browser.js +104 -0
  41. package/app/api-destined-function/node_modules/uuid/dist/sha1.js +23 -0
  42. package/app/api-destined-function/node_modules/uuid/dist/stringify.js +39 -0
  43. package/app/api-destined-function/node_modules/uuid/dist/umd/uuid.min.js +1 -0
  44. package/app/api-destined-function/node_modules/uuid/dist/umd/uuidNIL.min.js +1 -0
  45. package/app/api-destined-function/node_modules/uuid/dist/umd/uuidParse.min.js +1 -0
  46. package/app/api-destined-function/node_modules/uuid/dist/umd/uuidStringify.min.js +1 -0
  47. package/app/api-destined-function/node_modules/uuid/dist/umd/uuidValidate.min.js +1 -0
  48. package/app/api-destined-function/node_modules/uuid/dist/umd/uuidVersion.min.js +1 -0
  49. package/app/api-destined-function/node_modules/uuid/dist/umd/uuidv1.min.js +1 -0
  50. package/app/api-destined-function/node_modules/uuid/dist/umd/uuidv3.min.js +1 -0
  51. package/app/api-destined-function/node_modules/uuid/dist/umd/uuidv4.min.js +1 -0
  52. package/app/api-destined-function/node_modules/uuid/dist/umd/uuidv5.min.js +1 -0
  53. package/app/api-destined-function/node_modules/uuid/dist/uuid-bin.js +85 -0
  54. package/app/api-destined-function/node_modules/uuid/dist/v1.js +107 -0
  55. package/app/api-destined-function/node_modules/uuid/dist/v3.js +16 -0
  56. package/app/api-destined-function/node_modules/uuid/dist/v35.js +78 -0
  57. package/app/api-destined-function/node_modules/uuid/dist/v4.js +37 -0
  58. package/app/api-destined-function/node_modules/uuid/dist/v5.js +16 -0
  59. package/app/api-destined-function/node_modules/uuid/dist/validate.js +17 -0
  60. package/app/api-destined-function/node_modules/uuid/dist/version.js +21 -0
  61. package/app/api-destined-function/src/lib/lambda.ts +1 -3
  62. package/dist/app/api-destined-function/layers/nodejs/node_modules/.bin/uuid +2 -0
  63. package/dist/app/api-destined-function/layers/nodejs/node_modules/.yarn-integrity +109 -0
  64. package/dist/app/api-destined-function/layers/nodejs/node_modules/@types/uuid/LICENSE +21 -0
  65. package/dist/app/api-destined-function/layers/nodejs/node_modules/@types/uuid/README.md +16 -0
  66. package/dist/app/api-destined-function/layers/nodejs/node_modules/@types/uuid/index.d.mts +10 -0
  67. package/dist/app/api-destined-function/layers/nodejs/node_modules/@types/uuid/index.d.ts +80 -0
  68. package/dist/app/api-destined-function/layers/nodejs/node_modules/@types/uuid/package.json +54 -0
  69. package/dist/app/api-destined-function/layers/nodejs/node_modules/uuid/LICENSE.md +9 -0
  70. package/dist/app/api-destined-function/layers/nodejs/node_modules/uuid/README.md +505 -0
  71. package/dist/app/api-destined-function/layers/nodejs/node_modules/uuid/dist/bin/uuid +2 -0
  72. package/dist/app/api-destined-function/layers/nodejs/node_modules/uuid/dist/esm-browser/index.js +9 -0
  73. package/dist/app/api-destined-function/layers/nodejs/node_modules/uuid/dist/esm-browser/md5.js +215 -0
  74. package/dist/app/api-destined-function/layers/nodejs/node_modules/uuid/dist/esm-browser/nil.js +1 -0
  75. package/dist/app/api-destined-function/layers/nodejs/node_modules/uuid/dist/esm-browser/parse.js +35 -0
  76. package/dist/app/api-destined-function/layers/nodejs/node_modules/uuid/dist/esm-browser/regex.js +1 -0
  77. package/dist/app/api-destined-function/layers/nodejs/node_modules/uuid/dist/esm-browser/rng.js +19 -0
  78. package/dist/app/api-destined-function/layers/nodejs/node_modules/uuid/dist/esm-browser/sha1.js +96 -0
  79. package/dist/app/api-destined-function/layers/nodejs/node_modules/uuid/dist/esm-browser/stringify.js +30 -0
  80. package/dist/app/api-destined-function/layers/nodejs/node_modules/uuid/dist/esm-browser/v1.js +95 -0
  81. package/dist/app/api-destined-function/layers/nodejs/node_modules/uuid/dist/esm-browser/v3.js +4 -0
  82. package/dist/app/api-destined-function/layers/nodejs/node_modules/uuid/dist/esm-browser/v35.js +64 -0
  83. package/dist/app/api-destined-function/layers/nodejs/node_modules/uuid/dist/esm-browser/v4.js +24 -0
  84. package/dist/app/api-destined-function/layers/nodejs/node_modules/uuid/dist/esm-browser/v5.js +4 -0
  85. package/dist/app/api-destined-function/layers/nodejs/node_modules/uuid/dist/esm-browser/validate.js +7 -0
  86. package/dist/app/api-destined-function/layers/nodejs/node_modules/uuid/dist/esm-browser/version.js +11 -0
  87. package/dist/app/api-destined-function/layers/nodejs/node_modules/uuid/dist/esm-node/index.js +9 -0
  88. package/dist/app/api-destined-function/layers/nodejs/node_modules/uuid/dist/esm-node/md5.js +13 -0
  89. package/dist/app/api-destined-function/layers/nodejs/node_modules/uuid/dist/esm-node/nil.js +1 -0
  90. package/dist/app/api-destined-function/layers/nodejs/node_modules/uuid/dist/esm-node/parse.js +35 -0
  91. package/dist/app/api-destined-function/layers/nodejs/node_modules/uuid/dist/esm-node/regex.js +1 -0
  92. package/dist/app/api-destined-function/layers/nodejs/node_modules/uuid/dist/esm-node/rng.js +12 -0
  93. package/dist/app/api-destined-function/layers/nodejs/node_modules/uuid/dist/esm-node/sha1.js +13 -0
  94. package/dist/app/api-destined-function/layers/nodejs/node_modules/uuid/dist/esm-node/stringify.js +29 -0
  95. package/dist/app/api-destined-function/layers/nodejs/node_modules/uuid/dist/esm-node/v1.js +95 -0
  96. package/dist/app/api-destined-function/layers/nodejs/node_modules/uuid/dist/esm-node/v3.js +4 -0
  97. package/dist/app/api-destined-function/layers/nodejs/node_modules/uuid/dist/esm-node/v35.js +64 -0
  98. package/dist/app/api-destined-function/layers/nodejs/node_modules/uuid/dist/esm-node/v4.js +24 -0
  99. package/dist/app/api-destined-function/layers/nodejs/node_modules/uuid/dist/esm-node/v5.js +4 -0
  100. package/dist/app/api-destined-function/layers/nodejs/node_modules/uuid/dist/esm-node/validate.js +7 -0
  101. package/dist/app/api-destined-function/layers/nodejs/node_modules/uuid/dist/esm-node/version.js +11 -0
  102. package/dist/app/api-destined-function/layers/nodejs/node_modules/uuid/dist/index.js +79 -0
  103. package/dist/app/api-destined-function/layers/nodejs/node_modules/uuid/dist/md5-browser.js +223 -0
  104. package/dist/app/api-destined-function/layers/nodejs/node_modules/uuid/dist/md5.js +23 -0
  105. package/dist/app/api-destined-function/layers/nodejs/node_modules/uuid/dist/nil.js +8 -0
  106. package/dist/app/api-destined-function/layers/nodejs/node_modules/uuid/dist/parse.js +45 -0
  107. package/dist/app/api-destined-function/layers/nodejs/node_modules/uuid/dist/regex.js +8 -0
  108. package/dist/app/api-destined-function/layers/nodejs/node_modules/uuid/dist/rng-browser.js +26 -0
  109. package/dist/app/api-destined-function/layers/nodejs/node_modules/uuid/dist/rng.js +24 -0
  110. package/dist/app/api-destined-function/layers/nodejs/node_modules/uuid/dist/sha1-browser.js +104 -0
  111. package/dist/app/api-destined-function/layers/nodejs/node_modules/uuid/dist/sha1.js +23 -0
  112. package/dist/app/api-destined-function/layers/nodejs/node_modules/uuid/dist/stringify.js +39 -0
  113. package/dist/app/api-destined-function/layers/nodejs/node_modules/uuid/dist/umd/uuid.min.js +1 -0
  114. package/dist/app/api-destined-function/layers/nodejs/node_modules/uuid/dist/umd/uuidNIL.min.js +1 -0
  115. package/dist/app/api-destined-function/layers/nodejs/node_modules/uuid/dist/umd/uuidParse.min.js +1 -0
  116. package/dist/app/api-destined-function/layers/nodejs/node_modules/uuid/dist/umd/uuidStringify.min.js +1 -0
  117. package/dist/app/api-destined-function/layers/nodejs/node_modules/uuid/dist/umd/uuidValidate.min.js +1 -0
  118. package/dist/app/api-destined-function/layers/nodejs/node_modules/uuid/dist/umd/uuidVersion.min.js +1 -0
  119. package/dist/app/api-destined-function/layers/nodejs/node_modules/uuid/dist/umd/uuidv1.min.js +1 -0
  120. package/dist/app/api-destined-function/layers/nodejs/node_modules/uuid/dist/umd/uuidv3.min.js +1 -0
  121. package/dist/app/api-destined-function/layers/nodejs/node_modules/uuid/dist/umd/uuidv4.min.js +1 -0
  122. package/dist/app/api-destined-function/layers/nodejs/node_modules/uuid/dist/umd/uuidv5.min.js +1 -0
  123. package/dist/app/api-destined-function/layers/nodejs/node_modules/uuid/dist/uuid-bin.js +85 -0
  124. package/dist/app/api-destined-function/layers/nodejs/node_modules/uuid/dist/v1.js +107 -0
  125. package/dist/app/api-destined-function/layers/nodejs/node_modules/uuid/dist/v3.js +16 -0
  126. package/dist/app/api-destined-function/layers/nodejs/node_modules/uuid/dist/v35.js +78 -0
  127. package/dist/app/api-destined-function/layers/nodejs/node_modules/uuid/dist/v4.js +37 -0
  128. package/dist/app/api-destined-function/layers/nodejs/node_modules/uuid/dist/v5.js +16 -0
  129. package/dist/app/api-destined-function/layers/nodejs/node_modules/uuid/dist/validate.js +17 -0
  130. package/dist/app/api-destined-function/layers/nodejs/node_modules/uuid/dist/version.js +21 -0
  131. package/dist/app/api-destined-function/layers/nodejs/node_modules/uuid/package.json +135 -0
  132. package/dist/app/api-destined-function/layers/nodejs/node_modules/uuid/wrapper.mjs +10 -0
  133. package/dist/app/api-destined-function/layers/nodejs/package.json +30 -0
  134. package/dist/app/api-destined-function/src/lib/lambda.d.ts +17 -0
  135. package/dist/app/api-destined-function/src/lib/lambda.d.ts.map +1 -0
  136. package/dist/app/api-destined-function/src/lib/lambda.js +32 -0
  137. package/dist/app/api-destined-function/src/lib/lambda.js.map +1 -0
  138. package/dist/index.d.ts +6 -0
  139. package/dist/index.d.ts.map +1 -0
  140. package/dist/index.js.map +1 -0
  141. package/dist/src/lib/common/construct.d.ts +81 -0
  142. package/dist/src/lib/common/construct.d.ts.map +1 -0
  143. package/dist/src/lib/common/construct.js +136 -0
  144. package/dist/src/lib/common/construct.js.map +1 -0
  145. package/dist/src/lib/common/index.d.ts +3 -0
  146. package/dist/src/lib/common/index.d.ts.map +1 -0
  147. package/dist/src/lib/common/index.js +15 -0
  148. package/dist/src/lib/common/index.js.map +1 -0
  149. package/dist/src/lib/common/stack.d.ts +55 -0
  150. package/dist/src/lib/common/stack.d.ts.map +1 -0
  151. package/dist/src/lib/common/stack.js +148 -0
  152. package/dist/src/lib/common/stack.js.map +1 -0
  153. package/dist/src/lib/construct/api-to-eventbridge-target/api-destination-event.d.ts +17 -0
  154. package/dist/src/lib/construct/api-to-eventbridge-target/api-destination-event.d.ts.map +1 -0
  155. package/dist/src/lib/construct/api-to-eventbridge-target/api-destination-event.js +18 -0
  156. package/dist/src/lib/construct/api-to-eventbridge-target/api-destination-event.js.map +1 -0
  157. package/dist/src/lib/construct/api-to-eventbridge-target/api-destined-lambda.d.ts +20 -0
  158. package/dist/src/lib/construct/api-to-eventbridge-target/api-destined-lambda.d.ts.map +1 -0
  159. package/dist/src/lib/construct/api-to-eventbridge-target/api-destined-lambda.js +20 -0
  160. package/dist/src/lib/construct/api-to-eventbridge-target/api-destined-lambda.js.map +1 -0
  161. package/dist/src/lib/construct/api-to-eventbridge-target/api-destined-rest-api.d.ts +36 -0
  162. package/dist/src/lib/construct/api-to-eventbridge-target/api-destined-rest-api.d.ts.map +1 -0
  163. package/dist/src/lib/construct/api-to-eventbridge-target/api-destined-rest-api.js +30 -0
  164. package/dist/src/lib/construct/api-to-eventbridge-target/api-destined-rest-api.js.map +1 -0
  165. package/dist/src/lib/construct/api-to-eventbridge-target/index.d.ts +5 -0
  166. package/dist/src/lib/construct/api-to-eventbridge-target/index.d.ts.map +1 -0
  167. package/dist/src/lib/construct/api-to-eventbridge-target/index.js +17 -0
  168. package/dist/src/lib/construct/api-to-eventbridge-target/index.js.map +1 -0
  169. package/dist/src/lib/construct/api-to-eventbridge-target/main.d.ts +136 -0
  170. package/dist/src/lib/construct/api-to-eventbridge-target/main.d.ts.map +1 -0
  171. package/dist/src/lib/construct/api-to-eventbridge-target/main.js +486 -0
  172. package/dist/src/lib/construct/api-to-eventbridge-target/main.js.map +1 -0
  173. package/dist/src/lib/construct/graphql-api-lambda/index.d.ts +2 -0
  174. package/dist/src/lib/construct/graphql-api-lambda/index.d.ts.map +1 -0
  175. package/dist/src/lib/construct/graphql-api-lambda/index.js +14 -0
  176. package/dist/src/lib/construct/graphql-api-lambda/index.js.map +1 -0
  177. package/dist/src/lib/construct/graphql-api-lambda/main.d.ts +113 -0
  178. package/dist/src/lib/construct/graphql-api-lambda/main.d.ts.map +1 -0
  179. package/dist/src/lib/construct/graphql-api-lambda/main.js +202 -0
  180. package/dist/src/lib/construct/graphql-api-lambda/main.js.map +1 -0
  181. package/dist/src/lib/construct/index.d.ts +5 -0
  182. package/dist/src/lib/construct/index.d.ts.map +1 -0
  183. package/dist/src/lib/construct/index.js +17 -0
  184. package/dist/src/lib/construct/index.js.map +1 -0
  185. package/dist/src/lib/construct/site-with-ecs-backend/index.d.ts +2 -0
  186. package/dist/src/lib/construct/site-with-ecs-backend/index.d.ts.map +1 -0
  187. package/dist/src/lib/construct/site-with-ecs-backend/index.js +14 -0
  188. package/dist/src/lib/construct/site-with-ecs-backend/index.js.map +1 -0
  189. package/dist/src/lib/construct/site-with-ecs-backend/main.d.ts +168 -0
  190. package/dist/src/lib/construct/site-with-ecs-backend/main.d.ts.map +1 -0
  191. package/dist/src/lib/construct/site-with-ecs-backend/main.js +328 -0
  192. package/dist/src/lib/construct/site-with-ecs-backend/main.js.map +1 -0
  193. package/dist/src/lib/construct/static-site/index.d.ts +2 -0
  194. package/dist/src/lib/construct/static-site/index.d.ts.map +1 -0
  195. package/dist/src/lib/construct/static-site/index.js +14 -0
  196. package/dist/src/lib/construct/static-site/index.js.map +1 -0
  197. package/dist/src/lib/construct/static-site/main.d.ts +95 -0
  198. package/dist/src/lib/construct/static-site/main.d.ts.map +1 -0
  199. package/dist/src/lib/construct/static-site/main.js +169 -0
  200. package/dist/src/lib/construct/static-site/main.js.map +1 -0
  201. package/dist/src/lib/manager/aws/acm-manager.d.ts +47 -0
  202. package/dist/src/lib/manager/aws/acm-manager.d.ts.map +1 -0
  203. package/dist/src/lib/manager/aws/acm-manager.js +91 -0
  204. package/dist/src/lib/manager/aws/acm-manager.js.map +1 -0
  205. package/dist/src/lib/manager/aws/api-manager.d.ts +44 -0
  206. package/dist/src/lib/manager/aws/api-manager.d.ts.map +1 -0
  207. package/dist/src/lib/manager/aws/api-manager.js +112 -0
  208. package/dist/src/lib/manager/aws/api-manager.js.map +1 -0
  209. package/dist/src/lib/manager/aws/app-config-manager.d.ts +66 -0
  210. package/dist/src/lib/manager/aws/app-config-manager.d.ts.map +1 -0
  211. package/dist/src/lib/manager/aws/app-config-manager.js +149 -0
  212. package/dist/src/lib/manager/aws/app-config-manager.js.map +1 -0
  213. package/dist/src/lib/manager/aws/cloudfront-manager.d.ts +113 -0
  214. package/dist/src/lib/manager/aws/cloudfront-manager.d.ts.map +1 -0
  215. package/dist/src/lib/manager/aws/cloudfront-manager.js +283 -0
  216. package/dist/src/lib/manager/aws/cloudfront-manager.js.map +1 -0
  217. package/dist/src/lib/manager/aws/cloudtrail-manager.d.ts +49 -0
  218. package/dist/src/lib/manager/aws/cloudtrail-manager.d.ts.map +1 -0
  219. package/dist/src/lib/manager/aws/cloudtrail-manager.js +100 -0
  220. package/dist/src/lib/manager/aws/cloudtrail-manager.js.map +1 -0
  221. package/dist/src/lib/manager/aws/cloudwatch-manager.d.ts +122 -0
  222. package/dist/src/lib/manager/aws/cloudwatch-manager.d.ts.map +1 -0
  223. package/dist/src/lib/manager/aws/cloudwatch-manager.js +353 -0
  224. package/dist/src/lib/manager/aws/cloudwatch-manager.js.map +1 -0
  225. package/dist/src/lib/manager/aws/codebuild-manager.d.ts +41 -0
  226. package/dist/src/lib/manager/aws/codebuild-manager.d.ts.map +1 -0
  227. package/dist/src/lib/manager/aws/codebuild-manager.js +95 -0
  228. package/dist/src/lib/manager/aws/codebuild-manager.js.map +1 -0
  229. package/dist/src/lib/manager/aws/dynamodb-manager.d.ts +33 -0
  230. package/dist/src/lib/manager/aws/dynamodb-manager.d.ts.map +1 -0
  231. package/dist/src/lib/manager/aws/dynamodb-manager.js +80 -0
  232. package/dist/src/lib/manager/aws/dynamodb-manager.js.map +1 -0
  233. package/dist/src/lib/manager/aws/ecr-manager.d.ts +32 -0
  234. package/dist/src/lib/manager/aws/ecr-manager.d.ts.map +1 -0
  235. package/dist/src/lib/manager/aws/ecr-manager.js +61 -0
  236. package/dist/src/lib/manager/aws/ecr-manager.js.map +1 -0
  237. package/dist/src/lib/manager/aws/ecs-manager.d.ts +49 -0
  238. package/dist/src/lib/manager/aws/ecs-manager.d.ts.map +1 -0
  239. package/dist/src/lib/manager/aws/ecs-manager.js +104 -0
  240. package/dist/src/lib/manager/aws/ecs-manager.js.map +1 -0
  241. package/dist/src/lib/manager/aws/eks-manager.d.ts +37 -0
  242. package/dist/src/lib/manager/aws/eks-manager.d.ts.map +1 -0
  243. package/dist/src/lib/manager/aws/eks-manager.js +110 -0
  244. package/dist/src/lib/manager/aws/eks-manager.js.map +1 -0
  245. package/dist/src/lib/manager/aws/elasticache-manager.d.ts +43 -0
  246. package/dist/src/lib/manager/aws/elasticache-manager.d.ts.map +1 -0
  247. package/dist/src/lib/manager/aws/elasticache-manager.js +103 -0
  248. package/dist/src/lib/manager/aws/elasticache-manager.js.map +1 -0
  249. package/dist/src/lib/manager/aws/event-manager.d.ts +68 -0
  250. package/dist/src/lib/manager/aws/event-manager.d.ts.map +1 -0
  251. package/dist/src/lib/manager/aws/event-manager.js +163 -0
  252. package/dist/src/lib/manager/aws/event-manager.js.map +1 -0
  253. package/dist/src/lib/manager/aws/iam-manager.d.ts +155 -0
  254. package/dist/src/lib/manager/aws/iam-manager.d.ts.map +1 -0
  255. package/dist/src/lib/manager/aws/iam-manager.js +381 -0
  256. package/dist/src/lib/manager/aws/iam-manager.js.map +1 -0
  257. package/dist/src/lib/manager/aws/index.d.ts +24 -0
  258. package/dist/src/lib/manager/aws/index.d.ts.map +1 -0
  259. package/dist/src/lib/manager/aws/index.js +36 -0
  260. package/dist/src/lib/manager/aws/index.js.map +1 -0
  261. package/dist/src/lib/manager/aws/lambda-manager.d.ts +95 -0
  262. package/dist/src/lib/manager/aws/lambda-manager.d.ts.map +1 -0
  263. package/dist/src/lib/manager/aws/lambda-manager.js +197 -0
  264. package/dist/src/lib/manager/aws/lambda-manager.js.map +1 -0
  265. package/dist/src/lib/manager/aws/log-manager.d.ts +52 -0
  266. package/dist/src/lib/manager/aws/log-manager.d.ts.map +1 -0
  267. package/dist/src/lib/manager/aws/log-manager.js +109 -0
  268. package/dist/src/lib/manager/aws/log-manager.js.map +1 -0
  269. package/dist/src/lib/manager/aws/route53-manager.d.ts +69 -0
  270. package/dist/src/lib/manager/aws/route53-manager.d.ts.map +1 -0
  271. package/dist/src/lib/manager/aws/route53-manager.js +159 -0
  272. package/dist/src/lib/manager/aws/route53-manager.js.map +1 -0
  273. package/dist/src/lib/manager/aws/s3-manager.d.ts +74 -0
  274. package/dist/src/lib/manager/aws/s3-manager.d.ts.map +1 -0
  275. package/dist/src/lib/manager/aws/s3-manager.js +203 -0
  276. package/dist/src/lib/manager/aws/s3-manager.js.map +1 -0
  277. package/dist/src/lib/manager/aws/secrets-manager.d.ts +58 -0
  278. package/dist/src/lib/manager/aws/secrets-manager.d.ts.map +1 -0
  279. package/dist/src/lib/manager/aws/secrets-manager.js +117 -0
  280. package/dist/src/lib/manager/aws/secrets-manager.js.map +1 -0
  281. package/dist/src/lib/manager/aws/sns-manager.d.ts +43 -0
  282. package/dist/src/lib/manager/aws/sns-manager.d.ts.map +1 -0
  283. package/dist/src/lib/manager/aws/sns-manager.js +91 -0
  284. package/dist/src/lib/manager/aws/sns-manager.js.map +1 -0
  285. package/dist/src/lib/manager/aws/ssm-manager.d.ts +61 -0
  286. package/dist/src/lib/manager/aws/ssm-manager.d.ts.map +1 -0
  287. package/dist/src/lib/manager/aws/ssm-manager.js +125 -0
  288. package/dist/src/lib/manager/aws/ssm-manager.js.map +1 -0
  289. package/dist/src/lib/manager/aws/vpc-manager.d.ts +46 -0
  290. package/dist/src/lib/manager/aws/vpc-manager.d.ts.map +1 -0
  291. package/dist/src/lib/manager/aws/vpc-manager.js +95 -0
  292. package/dist/src/lib/manager/aws/vpc-manager.js.map +1 -0
  293. package/dist/src/lib/manager/aws/waf-manager.d.ts +40 -0
  294. package/dist/src/lib/manager/aws/waf-manager.d.ts.map +1 -0
  295. package/dist/src/lib/manager/aws/waf-manager.js +90 -0
  296. package/dist/src/lib/manager/aws/waf-manager.js.map +1 -0
  297. package/dist/src/lib/manager/index.d.ts +2 -0
  298. package/dist/src/lib/manager/index.d.ts.map +1 -0
  299. package/dist/src/lib/manager/index.js +14 -0
  300. package/dist/src/lib/manager/index.js.map +1 -0
  301. package/dist/src/lib/types/aws/index.d.ts +488 -0
  302. package/dist/src/lib/types/aws/index.d.ts.map +1 -0
  303. package/dist/src/lib/types/aws/index.js +3 -0
  304. package/dist/src/lib/types/aws/index.js.map +1 -0
  305. package/dist/src/lib/types/index.d.ts +2 -0
  306. package/dist/src/lib/types/index.d.ts.map +1 -0
  307. package/dist/src/lib/types/index.js +14 -0
  308. package/dist/src/lib/types/index.js.map +1 -0
  309. package/dist/src/lib/utils/aws/index.d.ts +16 -0
  310. package/dist/src/lib/utils/aws/index.d.ts.map +1 -0
  311. package/dist/src/lib/utils/aws/index.js +50 -0
  312. package/dist/src/lib/utils/aws/index.js.map +1 -0
  313. package/dist/src/lib/utils/index.d.ts +63 -0
  314. package/dist/src/lib/utils/index.d.ts.map +1 -0
  315. package/dist/src/lib/utils/index.js +85 -0
  316. package/dist/src/lib/utils/index.js.map +1 -0
  317. package/package.json +1 -1
  318. package/src/lib/common/construct.ts +2 -0
  319. package/src/lib/construct/api-to-eventbridge-target/main.ts +10 -12
  320. package/src/lib/manager/aws/elasticache-manager.ts +98 -0
  321. package/src/lib/manager/aws/index.ts +1 -0
  322. package/src/lib/types/aws/index.ts +9 -1
@@ -0,0 +1,47 @@
1
+ import * as acm from 'aws-cdk-lib/aws-certificatemanager';
2
+ import * as route53 from 'aws-cdk-lib/aws-route53';
3
+ import * as common from '../../common';
4
+ import * as types from '../../types';
5
+ /**
6
+ * @stability stable
7
+ * @category cdk-utils.acm-manager
8
+ * @subcategory Construct
9
+ * @classdesc Provides operations on AWS Certificates.
10
+ * - A new instance of this class is injected into {@link common.CommonConstruct} constructor.
11
+ * - If a custom construct extends {@link common.CommonConstruct}, an instance is available within the context.
12
+ * @example
13
+ * import { CommonConstruct } from '@gradientedge/cdk-utils'
14
+ *
15
+ * class CustomConstruct extends CommonConstruct {
16
+ * constructor(parent: cdk.Construct, id: string, props: common.CommonStackProps) {
17
+ * super(parent, id, props)
18
+ * this.props = props
19
+ * this.acmManager.createCertificate('MyCertificate', this)
20
+ * }
21
+ * }
22
+ *
23
+ * @see [CDK Certificate Module]{@link https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_certificatemanager-readme.html}
24
+ */
25
+ export declare class AcmManager {
26
+ /**
27
+ * @summary Method to create/import a certificate
28
+ * @param {string} id scoped id of the resource
29
+ * @param {common.CommonConstruct} scope scope in which this resource is defined
30
+ * @param {types.AcmProps} props certificate props
31
+ * @param {route53.HostedZone?} hostedZone optional hosted zone to perform DNS validation
32
+ * @returns {acm.ICertificate}
33
+ *
34
+ * @mermaid
35
+ * graph LR;
36
+ * A((Start)) --> B{Valid Properties?};
37
+ * B -- Yes --> C(Fetch By ARN);
38
+ * B -- No --> D[Throw Error];
39
+ * D --> G((Stop));
40
+ * C --> E{Valid ARN?};
41
+ * E -- Yes --> F(Return Certificate);
42
+ * E -- No --> D;
43
+ * F --> G;
44
+ */
45
+ resolveCertificate(id: string, scope: common.CommonConstruct, props: types.AcmProps, hostedZone?: route53.IHostedZone): acm.ICertificate;
46
+ }
47
+ //# sourceMappingURL=acm-manager.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"acm-manager.d.ts","sourceRoot":"","sources":["../../../../../src/lib/manager/aws/acm-manager.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,GAAG,MAAM,oCAAoC,CAAA;AACzD,OAAO,KAAK,OAAO,MAAM,yBAAyB,CAAA;AAClD,OAAO,KAAK,MAAM,MAAM,cAAc,CAAA;AACtC,OAAO,KAAK,KAAK,MAAM,aAAa,CAAA;AAGpC;;;;;;;;;;;;;;;;;;;GAmBG;AACH,qBAAa,UAAU;IACrB;;;;;;;;;;;;;;;;;;OAkBG;IACI,kBAAkB,CACvB,EAAE,EAAE,MAAM,EACV,KAAK,EAAE,MAAM,CAAC,eAAe,EAC7B,KAAK,EAAE,KAAK,CAAC,QAAQ,EACrB,UAAU,CAAC,EAAE,OAAO,CAAC,WAAW,GAC/B,GAAG,CAAC,YAAY;CAyBpB"}
@@ -0,0 +1,91 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
5
+ }) : (function(o, m, k, k2) {
6
+ if (k2 === undefined) k2 = k;
7
+ o[k2] = m[k];
8
+ }));
9
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
10
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
11
+ }) : function(o, v) {
12
+ o["default"] = v;
13
+ });
14
+ var __importStar = (this && this.__importStar) || function (mod) {
15
+ if (mod && mod.__esModule) return mod;
16
+ var result = {};
17
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
18
+ __setModuleDefault(result, mod);
19
+ return result;
20
+ };
21
+ Object.defineProperty(exports, "__esModule", { value: true });
22
+ exports.AcmManager = void 0;
23
+ const cdk = __importStar(require("aws-cdk-lib"));
24
+ const acm = __importStar(require("aws-cdk-lib/aws-certificatemanager"));
25
+ const utils = __importStar(require("../../utils"));
26
+ /**
27
+ * @stability stable
28
+ * @category cdk-utils.acm-manager
29
+ * @subcategory Construct
30
+ * @classdesc Provides operations on AWS Certificates.
31
+ * - A new instance of this class is injected into {@link common.CommonConstruct} constructor.
32
+ * - If a custom construct extends {@link common.CommonConstruct}, an instance is available within the context.
33
+ * @example
34
+ * import { CommonConstruct } from '@gradientedge/cdk-utils'
35
+ *
36
+ * class CustomConstruct extends CommonConstruct {
37
+ * constructor(parent: cdk.Construct, id: string, props: common.CommonStackProps) {
38
+ * super(parent, id, props)
39
+ * this.props = props
40
+ * this.acmManager.createCertificate('MyCertificate', this)
41
+ * }
42
+ * }
43
+ *
44
+ * @see [CDK Certificate Module]{@link https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_certificatemanager-readme.html}
45
+ */
46
+ class AcmManager {
47
+ /**
48
+ * @summary Method to create/import a certificate
49
+ * @param {string} id scoped id of the resource
50
+ * @param {common.CommonConstruct} scope scope in which this resource is defined
51
+ * @param {types.AcmProps} props certificate props
52
+ * @param {route53.HostedZone?} hostedZone optional hosted zone to perform DNS validation
53
+ * @returns {acm.ICertificate}
54
+ *
55
+ * @mermaid
56
+ * graph LR;
57
+ * A((Start)) --> B{Valid Properties?};
58
+ * B -- Yes --> C(Fetch By ARN);
59
+ * B -- No --> D[Throw Error];
60
+ * D --> G((Stop));
61
+ * C --> E{Valid ARN?};
62
+ * E -- Yes --> F(Return Certificate);
63
+ * E -- No --> D;
64
+ * F --> G;
65
+ */
66
+ resolveCertificate(id, scope, props, hostedZone) {
67
+ if (!props)
68
+ throw `Certificate props undefined`;
69
+ let certificate;
70
+ if (props.useExistingCertificate) {
71
+ let certificateArn = props.certificateArn;
72
+ if (!certificateArn) {
73
+ const certificateAccount = props.certificateAccount ? props.certificateAccount : cdk.Stack.of(scope).account;
74
+ const certificateRegion = props.certificateRegion ? props.certificateRegion : cdk.Stack.of(scope).region;
75
+ certificateArn = `arn:aws:acm:${certificateRegion}:${certificateAccount}:certificate/${props.certificateId}`;
76
+ }
77
+ certificate = acm.Certificate.fromCertificateArn(scope, `${id}`, certificateArn);
78
+ }
79
+ else {
80
+ certificate = new acm.Certificate(scope, `${id}`, {
81
+ domainName: props.domainName,
82
+ subjectAlternativeNames: props.subjectAlternativeNames,
83
+ validation: acm.CertificateValidation.fromDns(hostedZone),
84
+ });
85
+ }
86
+ utils.createCfnOutput(`${id}-certificateArn`, scope, certificate.certificateArn);
87
+ return certificate;
88
+ }
89
+ }
90
+ exports.AcmManager = AcmManager;
91
+ //# sourceMappingURL=acm-manager.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"acm-manager.js","sourceRoot":"","sources":["../../../../../src/lib/manager/aws/acm-manager.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;AAAA,iDAAkC;AAClC,wEAAyD;AAIzD,mDAAoC;AAEpC;;;;;;;;;;;;;;;;;;;GAmBG;AACH,MAAa,UAAU;IACrB;;;;;;;;;;;;;;;;;;OAkBG;IACI,kBAAkB,CACvB,EAAU,EACV,KAA6B,EAC7B,KAAqB,EACrB,UAAgC;QAEhC,IAAI,CAAC,KAAK;YAAE,MAAM,6BAA6B,CAAA;QAE/C,IAAI,WAAW,CAAA;QAEf,IAAI,KAAK,CAAC,sBAAsB,EAAE;YAChC,IAAI,cAAc,GAAG,KAAK,CAAC,cAAc,CAAA;YACzC,IAAI,CAAC,cAAc,EAAE;gBACnB,MAAM,kBAAkB,GAAG,KAAK,CAAC,kBAAkB,CAAC,CAAC,CAAC,KAAK,CAAC,kBAAkB,CAAC,CAAC,CAAC,GAAG,CAAC,KAAK,CAAC,EAAE,CAAC,KAAK,CAAC,CAAC,OAAO,CAAA;gBAC5G,MAAM,iBAAiB,GAAG,KAAK,CAAC,iBAAiB,CAAC,CAAC,CAAC,KAAK,CAAC,iBAAiB,CAAC,CAAC,CAAC,GAAG,CAAC,KAAK,CAAC,EAAE,CAAC,KAAK,CAAC,CAAC,MAAM,CAAA;gBACxG,cAAc,GAAG,eAAe,iBAAiB,IAAI,kBAAkB,gBAAgB,KAAK,CAAC,aAAa,EAAE,CAAA;aAC7G;YACD,WAAW,GAAG,GAAG,CAAC,WAAW,CAAC,kBAAkB,CAAC,KAAK,EAAE,GAAG,EAAE,EAAE,EAAE,cAAc,CAAC,CAAA;SACjF;aAAM;YACL,WAAW,GAAG,IAAI,GAAG,CAAC,WAAW,CAAC,KAAK,EAAE,GAAG,EAAE,EAAE,EAAE;gBAChD,UAAU,EAAE,KAAK,CAAC,UAAU;gBAC5B,uBAAuB,EAAE,KAAK,CAAC,uBAAuB;gBACtD,UAAU,EAAE,GAAG,CAAC,qBAAqB,CAAC,OAAO,CAAC,UAAU,CAAC;aAC1D,CAAC,CAAA;SACH;QAED,KAAK,CAAC,eAAe,CAAC,GAAG,EAAE,iBAAiB,EAAE,KAAK,EAAE,WAAW,CAAC,cAAc,CAAC,CAAA;QAEhF,OAAO,WAAW,CAAA;IACpB,CAAC;CACF;AAlDD,gCAkDC"}
@@ -0,0 +1,44 @@
1
+ import * as apig from 'aws-cdk-lib/aws-apigateway';
2
+ import * as acm from 'aws-cdk-lib/aws-certificatemanager';
3
+ import * as lambda from 'aws-cdk-lib/aws-lambda';
4
+ import * as common from '../../common';
5
+ /**
6
+ * @stability stable
7
+ * @category cdk-utils.api-manager
8
+ * @subcategory Construct
9
+ * @classdesc Provides operations on AWS API Gateway.
10
+ * - A new instance of this class is injected into {@link common.CommonConstruct} constructor.
11
+ * - If a custom construct extends {@link common.CommonConstruct}, an instance is available within the context.
12
+ * @example
13
+ * import { common.CommonConstruct } from '@gradientedge/cdk-utils'
14
+ *
15
+ * class CustomConstruct extends common.CommonConstruct {
16
+ * constructor(parent: cdk.Construct, id: string, props: common.CommonStackProps) {
17
+ * super(parent, id, props)
18
+ * this.props = props
19
+ * const lambdaFunction = this.lambdaManager.createLambdaFunction('MyFunction', this, role, layers, code)
20
+ * this.apiManager.createLambdaRestApi('MyCertificate', this, props, lambdaFunction)
21
+ * }
22
+ * }
23
+ *
24
+ * @see [CDK API Gateway Module]{@link https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_apigateway-readme.html}
25
+ */
26
+ export declare class ApiManager {
27
+ /**
28
+ * @summary Method to create a Rest API with Lambda backend/target
29
+ * @param {string} id scoped id of the resource
30
+ * @param {common.CommonConstruct} scope scope in which this resource is defined
31
+ * @param {AcmProps} props lambda rest restApi props
32
+ * @param lambdaFunction
33
+ */
34
+ createLambdaRestApi(id: string, scope: common.CommonConstruct, props: apig.LambdaRestApiProps, lambdaFunction: lambda.Function): apig.LambdaRestApi;
35
+ /**
36
+ * @summary Method to create custom restApi domain
37
+ * @param {string} id scoped id of the resource
38
+ * @param {common.CommonConstruct} scope scope in which this resource is defined
39
+ * @param domainName the domain name to use
40
+ * @param certificate the certificate used for custom restApi domain
41
+ */
42
+ createApiDomain(id: string, scope: common.CommonConstruct, domainName: string, certificate: acm.ICertificate): apig.DomainName;
43
+ }
44
+ //# sourceMappingURL=api-manager.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"api-manager.d.ts","sourceRoot":"","sources":["../../../../../src/lib/manager/aws/api-manager.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,IAAI,MAAM,4BAA4B,CAAA;AAClD,OAAO,KAAK,GAAG,MAAM,oCAAoC,CAAA;AACzD,OAAO,KAAK,MAAM,MAAM,wBAAwB,CAAA;AAChD,OAAO,KAAK,MAAM,MAAM,cAAc,CAAA;AAGtC;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,qBAAa,UAAU;IACrB;;;;;;OAMG;IACI,mBAAmB,CACxB,EAAE,EAAE,MAAM,EACV,KAAK,EAAE,MAAM,CAAC,eAAe,EAC7B,KAAK,EAAE,IAAI,CAAC,kBAAkB,EAC9B,cAAc,EAAE,MAAM,CAAC,QAAQ;IA2CjC;;;;;;OAMG;IACI,eAAe,CAAC,EAAE,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,CAAC,eAAe,EAAE,UAAU,EAAE,MAAM,EAAE,WAAW,EAAE,GAAG,CAAC,YAAY;CAYpH"}
@@ -0,0 +1,112 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
5
+ }) : (function(o, m, k, k2) {
6
+ if (k2 === undefined) k2 = k;
7
+ o[k2] = m[k];
8
+ }));
9
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
10
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
11
+ }) : function(o, v) {
12
+ o["default"] = v;
13
+ });
14
+ var __importStar = (this && this.__importStar) || function (mod) {
15
+ if (mod && mod.__esModule) return mod;
16
+ var result = {};
17
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
18
+ __setModuleDefault(result, mod);
19
+ return result;
20
+ };
21
+ Object.defineProperty(exports, "__esModule", { value: true });
22
+ exports.ApiManager = void 0;
23
+ const apig = __importStar(require("aws-cdk-lib/aws-apigateway"));
24
+ const utils = __importStar(require("../../utils"));
25
+ /**
26
+ * @stability stable
27
+ * @category cdk-utils.api-manager
28
+ * @subcategory Construct
29
+ * @classdesc Provides operations on AWS API Gateway.
30
+ * - A new instance of this class is injected into {@link common.CommonConstruct} constructor.
31
+ * - If a custom construct extends {@link common.CommonConstruct}, an instance is available within the context.
32
+ * @example
33
+ * import { common.CommonConstruct } from '@gradientedge/cdk-utils'
34
+ *
35
+ * class CustomConstruct extends common.CommonConstruct {
36
+ * constructor(parent: cdk.Construct, id: string, props: common.CommonStackProps) {
37
+ * super(parent, id, props)
38
+ * this.props = props
39
+ * const lambdaFunction = this.lambdaManager.createLambdaFunction('MyFunction', this, role, layers, code)
40
+ * this.apiManager.createLambdaRestApi('MyCertificate', this, props, lambdaFunction)
41
+ * }
42
+ * }
43
+ *
44
+ * @see [CDK API Gateway Module]{@link https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_apigateway-readme.html}
45
+ */
46
+ class ApiManager {
47
+ /**
48
+ * @summary Method to create a Rest API with Lambda backend/target
49
+ * @param {string} id scoped id of the resource
50
+ * @param {common.CommonConstruct} scope scope in which this resource is defined
51
+ * @param {AcmProps} props lambda rest restApi props
52
+ * @param lambdaFunction
53
+ */
54
+ createLambdaRestApi(id, scope, props, lambdaFunction) {
55
+ const api = new apig.LambdaRestApi(scope, `${id}`, {
56
+ binaryMediaTypes: props.binaryMediaTypes,
57
+ minimumCompressionSize: props.minimumCompressionSize,
58
+ defaultMethodOptions: props.defaultMethodOptions,
59
+ deploy: props.deploy || true,
60
+ deployOptions: {
61
+ stageName: scope.props.stage,
62
+ accessLogDestination: props.deployOptions?.accessLogDestination,
63
+ accessLogFormat: props.deployOptions?.accessLogFormat,
64
+ tracingEnabled: props.deployOptions?.tracingEnabled,
65
+ cacheClusterEnabled: props.deployOptions?.cacheClusterEnabled,
66
+ cacheClusterSize: props.deployOptions?.cacheClusterSize,
67
+ clientCertificateId: props.deployOptions?.clientCertificateId,
68
+ description: `${id} - ${scope.props.stage} stage`,
69
+ documentationVersion: props.deployOptions?.documentationVersion,
70
+ variables: props.deployOptions?.variables,
71
+ methodOptions: props.deployOptions?.methodOptions,
72
+ },
73
+ retainDeployments: props.retainDeployments,
74
+ parameters: props.parameters,
75
+ policy: props.policy,
76
+ failOnWarnings: props.failOnWarnings || false,
77
+ domainName: props.domainName,
78
+ cloudWatchRole: props.cloudWatchRole || false,
79
+ endpointTypes: props.endpointTypes,
80
+ endpointConfiguration: {
81
+ types: props.endpointConfiguration?.types || [apig.EndpointType.REGIONAL],
82
+ vpcEndpoints: props.endpointConfiguration?.vpcEndpoints,
83
+ },
84
+ restApiName: `${props.restApiName}-${scope.props.stage}`,
85
+ handler: lambdaFunction,
86
+ defaultCorsPreflightOptions: props.defaultCorsPreflightOptions,
87
+ proxy: props.proxy || true,
88
+ });
89
+ utils.createCfnOutput(`${id}-restApiId`, scope, api.restApiId);
90
+ utils.createCfnOutput(`${id}-restApiName`, scope, api.restApiName);
91
+ return api;
92
+ }
93
+ /**
94
+ * @summary Method to create custom restApi domain
95
+ * @param {string} id scoped id of the resource
96
+ * @param {common.CommonConstruct} scope scope in which this resource is defined
97
+ * @param domainName the domain name to use
98
+ * @param certificate the certificate used for custom restApi domain
99
+ */
100
+ createApiDomain(id, scope, domainName, certificate) {
101
+ const apiDomain = new apig.DomainName(scope, `${id}`, {
102
+ domainName: domainName,
103
+ certificate: certificate,
104
+ endpointType: scope.isProductionStage() ? apig.EndpointType.EDGE : apig.EndpointType.REGIONAL,
105
+ securityPolicy: apig.SecurityPolicy.TLS_1_2,
106
+ });
107
+ utils.createCfnOutput(`${id}-customDomainName`, scope, apiDomain.domainName);
108
+ return apiDomain;
109
+ }
110
+ }
111
+ exports.ApiManager = ApiManager;
112
+ //# sourceMappingURL=api-manager.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"api-manager.js","sourceRoot":"","sources":["../../../../../src/lib/manager/aws/api-manager.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;AAAA,iEAAkD;AAIlD,mDAAoC;AAEpC;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,M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ED,gCA0EC"}
@@ -0,0 +1,66 @@
1
+ import * as appconfig from 'aws-cdk-lib/aws-appconfig';
2
+ import * as common from '../../common';
3
+ import * as types from '../../types';
4
+ /**
5
+ * @stability stable
6
+ * @category cdk-utils.app-config-manager
7
+ * @subcategory Construct
8
+ * @returns { Map<string, string> } ArnsByRegion
9
+ */
10
+ export declare const ArnsByRegion: {
11
+ [key: string]: string;
12
+ };
13
+ /**
14
+ * @category cdk-utils.app-config-manager
15
+ * @subcategory Construct
16
+ * @classdesc Provides operations on AWS AppConfig.
17
+ * - A new instance of this class is injected into {@link common.CommonConstruct} constructor.
18
+ * - If a custom construct extends {@link common.CommonConstruct}, an instance is available within the context.
19
+ * @example
20
+ * import * as common from '@gradientedge/cdk-utils'
21
+ *
22
+ * class CustomConstruct extends common.common.CommonConstruct {
23
+ * constructor(parent: cdk.Construct, id: string, props: common.CommonStackProps) {
24
+ * super(parent, id, props)
25
+ * this.props = props
26
+ * this.appConfigManager.createApplication('MyApplication', this)
27
+ * }
28
+ * }
29
+ *
30
+ * @see [CDK AppConfig Module]{@link https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_appconfig-readme.html}
31
+ */
32
+ export declare class AppConfigManager {
33
+ /**
34
+ * Method to get static ARNs for AppConfig extensions
35
+ * @param {common.CommonConstruct} scope scope in which this resource is defined
36
+ */
37
+ getArnForAppConfigExtension(scope: common.CommonConstruct): string;
38
+ /**
39
+ * @summary Method to create an AppConfig Application
40
+ * @param {string} id scoped id of the resource
41
+ * @param {common.CommonConstruct} scope scope in which this resource is defined
42
+ * @param {types.AppConfigProps} props
43
+ * @returns {appconfig.CfnApplication}
44
+ */
45
+ createApplication(id: string, scope: common.CommonConstruct, props: types.AppConfigProps): appconfig.CfnApplication;
46
+ /**
47
+ * @summary Method to create an AppConfig Environment for a given application
48
+ * @param {string} id scoped id of the resource
49
+ * @param {common.CommonConstruct} scope scope in which this resource is defined
50
+ * @param {string} applicationId id of the application
51
+ * @param {types.AppConfigProps} props
52
+ * @returns {appconfig.CfnEnvironment}
53
+ */
54
+ createEnvironment(id: string, scope: common.CommonConstruct, applicationId: string, props: types.AppConfigProps): appconfig.CfnEnvironment;
55
+ /**
56
+ * @summary Method to create an AppConfig Configuration Profile for a given application
57
+ * - <p>&#9888; The <b>locationUri</b> is defaulted to <i>hosted</i> if undefined</p>
58
+ * @param {string} id scoped id of the resource
59
+ * @param {common.CommonConstruct} scope scope in which this resource is defined
60
+ * @param {string} applicationId id of the application
61
+ * @param {types.AppConfigProps} props
62
+ * @returns {appconfig.CfnConfigurationProfile}
63
+ */
64
+ createConfigurationProfile(id: string, scope: common.CommonConstruct, applicationId: string, props: types.AppConfigProps): appconfig.CfnConfigurationProfile;
65
+ }
66
+ //# sourceMappingURL=app-config-manager.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"app-config-manager.d.ts","sourceRoot":"","sources":["../../../../../src/lib/manager/aws/app-config-manager.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,SAAS,MAAM,2BAA2B,CAAA;AACtD,OAAO,KAAK,MAAM,MAAM,cAAc,CAAA;AACtC,OAAO,KAAK,KAAK,MAAM,aAAa,CAAA;AAGpC;;;;;GAKG;AACH,eAAO,MAAM,YAAY,EAAE;IAAE,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAAA;CAqBjD,CAAA;AAED;;;;;;;;;;;;;;;;;;GAkBG;AACH,qBAAa,gBAAgB;IAC3B;;;OAGG;IACI,2BAA2B,CAAC,KAAK,EAAE,MAAM,CAAC,eAAe;IAIhE;;;;;;OAMG;IACI,iBAAiB,CACtB,EAAE,EAAE,MAAM,EACV,KAAK,EAAE,MAAM,CAAC,eAAe,EAC7B,KAAK,EAAE,KAAK,CAAC,cAAc,GAC1B,SAAS,CAAC,cAAc;IAe3B;;;;;;;OAOG;IACI,iBAAiB,CACtB,EAAE,EAAE,MAAM,EACV,KAAK,EAAE,MAAM,CAAC,eAAe,EAC7B,aAAa,EAAE,MAAM,EACrB,KAAK,EAAE,KAAK,CAAC,cAAc,GAC1B,SAAS,CAAC,cAAc;IAiB3B;;;;;;;;OAQG;IACI,0BAA0B,CAC/B,EAAE,EAAE,MAAM,EACV,KAAK,EAAE,MAAM,CAAC,eAAe,EAC7B,aAAa,EAAE,MAAM,EACrB,KAAK,EAAE,KAAK,CAAC,cAAc,GAC1B,SAAS,CAAC,uBAAuB;CAkBrC"}
@@ -0,0 +1,149 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
5
+ }) : (function(o, m, k, k2) {
6
+ if (k2 === undefined) k2 = k;
7
+ o[k2] = m[k];
8
+ }));
9
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
10
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
11
+ }) : function(o, v) {
12
+ o["default"] = v;
13
+ });
14
+ var __importStar = (this && this.__importStar) || function (mod) {
15
+ if (mod && mod.__esModule) return mod;
16
+ var result = {};
17
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
18
+ __setModuleDefault(result, mod);
19
+ return result;
20
+ };
21
+ Object.defineProperty(exports, "__esModule", { value: true });
22
+ exports.AppConfigManager = exports.ArnsByRegion = void 0;
23
+ const cdk = __importStar(require("aws-cdk-lib"));
24
+ const appconfig = __importStar(require("aws-cdk-lib/aws-appconfig"));
25
+ const utils = __importStar(require("../../utils"));
26
+ /**
27
+ * @stability stable
28
+ * @category cdk-utils.app-config-manager
29
+ * @subcategory Construct
30
+ * @returns { Map<string, string> } ArnsByRegion
31
+ */
32
+ exports.ArnsByRegion = {
33
+ 'us-east-1': 'arn:aws:lambda:us-east-1:027255383542:layer:AWS-AppConfig-Extension:11',
34
+ 'us-east-2': 'arn:aws:lambda:us-east-2:728743619870:layer:AWS-AppConfig-Extension:15',
35
+ 'us-west-1': 'arn:aws:lambda:us-west-1:958113053741:layer:AWS-AppConfig-Extension:11',
36
+ 'us-west-2': 'arn:aws:lambda:us-west-2:359756378197:layer:AWS-AppConfig-Extension:18',
37
+ 'ca-central-1': 'arn:aws:lambda:ca-central-1:039592058896:layer:AWS-AppConfig-Extension:15',
38
+ 'eu-central-1': 'arn:aws:lambda:eu-central-1:066940009817:layer:AWS-AppConfig-Extension:19',
39
+ 'eu-west-1': 'arn:aws:lambda:eu-west-1:434848589818:layer:AWS-AppConfig-Extension:11',
40
+ 'eu-west-2': 'arn:aws:lambda:eu-west-2:282860088358:layer:AWS-AppConfig-Extension:15',
41
+ 'eu-west-3': 'arn:aws:lambda:eu-west-3:493207061005:layer:AWS-AppConfig-Extension:15',
42
+ 'eu-north-1': 'arn:aws:lambda:eu-north-1:646970417810:layer:AWS-AppConfig-Extension:19',
43
+ 'ap-east-1': 'arn:aws:lambda:ap-east-1:630222743974:layer:AWS-AppConfig-Extension:15',
44
+ 'ap-northeast-1': 'arn:aws:lambda:ap-northeast-1:980059726660:layer:AWS-AppConfig-Extension:12',
45
+ 'ap-northeast-2': 'arn:aws:lambda:ap-northeast-2:826293736237:layer:AWS-AppConfig-Extension:19',
46
+ 'ap-northeast-3': 'arn:aws:lambda:ap-northeast-3:706869817123:layer:AWS-AppConfig-Extension:3',
47
+ 'ap-southeast-1': 'arn:aws:lambda:ap-southeast-1:421114256042:layer:AWS-AppConfig-Extension:12',
48
+ 'ap-southeast-2': 'arn:aws:lambda:ap-southeast-2:080788657173:layer:AWS-AppConfig-Extension:19',
49
+ 'ap-south-1': 'arn:aws:lambda:ap-south-1:554480029851:layer:AWS-AppConfig-Extension:20',
50
+ 'sa-east-1': 'arn:aws:lambda:sa-east-1:000010852771:layer:AWS-AppConfig-Extension:11',
51
+ 'af-south-1': 'arn:aws:lambda:af-south-1:574348263942:layer:AWS-AppConfig-Extension:15',
52
+ 'me-south-1': 'arn:aws:lambda:me-south-1:559955524753:layer:AWS-AppConfig-Extension:15',
53
+ };
54
+ /**
55
+ * @category cdk-utils.app-config-manager
56
+ * @subcategory Construct
57
+ * @classdesc Provides operations on AWS AppConfig.
58
+ * - A new instance of this class is injected into {@link common.CommonConstruct} constructor.
59
+ * - If a custom construct extends {@link common.CommonConstruct}, an instance is available within the context.
60
+ * @example
61
+ * import * as common from '@gradientedge/cdk-utils'
62
+ *
63
+ * class CustomConstruct extends common.common.CommonConstruct {
64
+ * constructor(parent: cdk.Construct, id: string, props: common.CommonStackProps) {
65
+ * super(parent, id, props)
66
+ * this.props = props
67
+ * this.appConfigManager.createApplication('MyApplication', this)
68
+ * }
69
+ * }
70
+ *
71
+ * @see [CDK AppConfig Module]{@link https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_appconfig-readme.html}
72
+ */
73
+ class AppConfigManager {
74
+ /**
75
+ * Method to get static ARNs for AppConfig extensions
76
+ * @param {common.CommonConstruct} scope scope in which this resource is defined
77
+ */
78
+ getArnForAppConfigExtension(scope) {
79
+ return exports.ArnsByRegion[scope.props.region];
80
+ }
81
+ /**
82
+ * @summary Method to create an AppConfig Application
83
+ * @param {string} id scoped id of the resource
84
+ * @param {common.CommonConstruct} scope scope in which this resource is defined
85
+ * @param {types.AppConfigProps} props
86
+ * @returns {appconfig.CfnApplication}
87
+ */
88
+ createApplication(id, scope, props) {
89
+ if (!props)
90
+ throw `AppConfig props undefined`;
91
+ const application = new appconfig.CfnApplication(scope, `${id}`, {
92
+ name: `${props.application.name}-${scope.props.stage}`,
93
+ description: props.application.description,
94
+ tags: props.application.tags,
95
+ });
96
+ utils.createCfnOutput(`${id}-ApplicationId`, scope, cdk.Fn.ref(application.logicalId));
97
+ utils.createCfnOutput(`${id}-ApplicationName`, scope, application.name);
98
+ return application;
99
+ }
100
+ /**
101
+ * @summary Method to create an AppConfig Environment for a given application
102
+ * @param {string} id scoped id of the resource
103
+ * @param {common.CommonConstruct} scope scope in which this resource is defined
104
+ * @param {string} applicationId id of the application
105
+ * @param {types.AppConfigProps} props
106
+ * @returns {appconfig.CfnEnvironment}
107
+ */
108
+ createEnvironment(id, scope, applicationId, props) {
109
+ if (!props)
110
+ throw `AppConfig props undefined`;
111
+ const environment = new appconfig.CfnEnvironment(scope, `${id}`, {
112
+ applicationId: applicationId,
113
+ name: scope.props.stage,
114
+ description: props.environment.description,
115
+ monitors: props.environment.monitors,
116
+ tags: props.environment.tags,
117
+ });
118
+ utils.createCfnOutput(`${id}-configurationEnvironmentId`, scope, cdk.Fn.ref(environment.logicalId));
119
+ utils.createCfnOutput(`${id}-configurationEnvironmentName`, scope, environment.name);
120
+ return environment;
121
+ }
122
+ /**
123
+ * @summary Method to create an AppConfig Configuration Profile for a given application
124
+ * - <p>&#9888; The <b>locationUri</b> is defaulted to <i>hosted</i> if undefined</p>
125
+ * @param {string} id scoped id of the resource
126
+ * @param {common.CommonConstruct} scope scope in which this resource is defined
127
+ * @param {string} applicationId id of the application
128
+ * @param {types.AppConfigProps} props
129
+ * @returns {appconfig.CfnConfigurationProfile}
130
+ */
131
+ createConfigurationProfile(id, scope, applicationId, props) {
132
+ if (!props)
133
+ throw `AppConfig props undefined`;
134
+ const profile = new appconfig.CfnConfigurationProfile(scope, `${id}`, {
135
+ applicationId: applicationId,
136
+ locationUri: props.configurationProfile.locationUri || 'hosted',
137
+ name: `${props.configurationProfile.name}-${scope.props.stage}`,
138
+ description: props.configurationProfile.description,
139
+ retrievalRoleArn: props.configurationProfile.retrievalRoleArn,
140
+ tags: props.configurationProfile.tags,
141
+ validators: props.configurationProfile.validators,
142
+ });
143
+ utils.createCfnOutput(`${id}-configurationProfileId`, scope, cdk.Fn.ref(profile.logicalId));
144
+ utils.createCfnOutput(`${id}-configurationProfileName`, scope, profile.name);
145
+ return profile;
146
+ }
147
+ }
148
+ exports.AppConfigManager = AppConfigManager;
149
+ //# sourceMappingURL=app-config-manager.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"app-config-manager.js","sourceR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AAE,MAAM,2BAA2B,CAAA;QAE7C,MAAM,OAAO,GAAG,IAAI,SAAS,CAAC,uBAAuB,CAAC,KAAK,EAAE,GAAG,EAAE,EAAE,EAAE;YACpE,aAAa,EAAE,aAAa;YAC5B,WAAW,EAAE,KAAK,CAAC,oBAAoB,CAAC,WAAW,IAAI,QAAQ;YAC/D,IAAI,EAAE,GAAG,KAAK,CAAC,oBAAoB,CAAC,IAAI,IAAI,KAAK,CAAC,KAAK,CAAC,KAAK,EAAE;YAC/D,WAAW,EAAE,KAAK,CAAC,oBAAoB,CAAC,WAAW;YACnD,gBAAgB,EAAE,KAAK,CAAC,oBAAoB,CAAC,gBAAgB;YAC7D,IAAI,EAAE,KAAK,CAAC,oBAAoB,CAAC,IAAI;YACrC,UAAU,EAAE,KAAK,CAAC,oBAAoB,CAAC,UAAU;SAClD,CAAC,CAAA;QAEF,KAAK,CAAC,eAAe,CAAC,GAAG,EAAE,yBAAyB,EAAE,KAAK,EAAE,GAAG,CAAC,EAAE,CAAC,GAAG,CAAC,OAAO,CAAC,SAAS,CAAC,CAAC,CAAA;QAC3F,KAAK,CAAC,eAAe,CAAC,GAAG,EAAE,2BAA2B,EAAE,KAAK,EAAE,OAAO,CAAC,IAAI,CAAC,CAAA;QAE5E,OAAO,OAAO,CAAA;IAChB,CAAC;CACF;AAjGD,4CAiGC"}
@@ -0,0 +1,113 @@
1
+ import * as cdk from 'aws-cdk-lib';
2
+ import * as acm from 'aws-cdk-lib/aws-certificatemanager';
3
+ import * as cloudfront from 'aws-cdk-lib/aws-cloudfront';
4
+ import * as origins from 'aws-cdk-lib/aws-cloudfront-origins';
5
+ import * as ec2 from 'aws-cdk-lib/aws-ec2';
6
+ import * as efs from 'aws-cdk-lib/aws-efs';
7
+ import * as lambda from 'aws-cdk-lib/aws-lambda';
8
+ import * as s3 from 'aws-cdk-lib/aws-s3';
9
+ import * as common from '../../common';
10
+ import * as types from '../../types';
11
+ /**
12
+ * @stability stable
13
+ * @category cdk-utils.cloudfront-manager
14
+ * @subcategory Construct
15
+ * @classdesc Provides operations on AWS CloudFront.
16
+ * - A new instance of this class is injected into {@link common.CommonConstruct} constructor.
17
+ * - If a custom construct extends {@link common.CommonConstruct}, an instance is available within the context.
18
+ * @example
19
+ * import * as common from '@gradientedge/cdk-utils'
20
+ *
21
+ * class CustomConstruct extends common.common.CommonConstruct {
22
+ * constructor(parent: cdk.Construct, id: string, props: common.CommonStackProps) {
23
+ * super(parent, id, props)
24
+ * this.props = props
25
+ * this.cloudFrontManager.createCloudFrontDistribution(
26
+ * 'MyDistribution',
27
+ * this,
28
+ * siteBucket,
29
+ * logBucket,
30
+ * originAccessIdentity,
31
+ * certificate
32
+ * )
33
+ * }
34
+ * }
35
+ *
36
+ * @see [CDK CloudFront Module]{@link https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_cloudfront-readme.html}
37
+ */
38
+ export declare class CloudFrontManager {
39
+ createOriginAccessIdentity(id: string, scope: common.CommonConstruct, accessBucket?: s3.IBucket): cdk.aws_cloudfront.OriginAccessIdentity;
40
+ /**
41
+ * @deprecated Use `createDistributionWithS3Origin` instead
42
+ *
43
+ * @summary Method to create a cloudfront distribution
44
+ * @param {string} id scoped id of the resource
45
+ * @param {common.CommonConstruct} scope scope in which this resource is defined
46
+ * @param {types.CloudFrontProps} props distribution properties
47
+ * @param {s3.IBucket?} siteBucket
48
+ * @param {s3.IBucket?} logBucket
49
+ * @param {cloudfront.OriginAccessIdentity?} oai
50
+ * @param {acm.ICertificate?} certificate
51
+ * @param {string[]?} aliases
52
+ */
53
+ createCloudFrontDistribution(id: string, scope: common.CommonConstruct, props: types.CloudFrontProps, siteBucket?: s3.IBucket, logBucket?: s3.IBucket, oai?: cloudfront.OriginAccessIdentity, certificate?: acm.ICertificate, aliases?: string[]): cdk.aws_cloudfront.CloudFrontWebDistribution;
54
+ /**
55
+ * Method to create a CloudFront distribution with S3 Origin
56
+ * @param {string} id scoped id of the resource
57
+ * @param {common.CommonConstruct} scope scope in which this resource is defined
58
+ * @param {types.DistributionProps} props distribution properties
59
+ * @param {origins.S3Origin} origin
60
+ * @param {s3.IBucket} siteBucket
61
+ * @param {s3.IBucket?} logBucket
62
+ * @param {cloudfront.OriginAccessIdentity?} oai
63
+ * @param {acm.ICertificate?} certificate
64
+ * @param {string[]?} aliases
65
+ * @param {cloudfront.FunctionAssociation?} defaultFunctionAssociations
66
+ */
67
+ createDistributionWithS3Origin(id: string, scope: common.CommonConstruct, props: types.DistributionProps, origin: origins.S3Origin, siteBucket: s3.IBucket, logBucket?: s3.IBucket, oai?: cloudfront.OriginAccessIdentity, certificate?: acm.ICertificate, aliases?: string[], defaultFunctionAssociations?: cloudfront.FunctionAssociation[]): cdk.aws_cloudfront.Distribution;
68
+ /**
69
+ * Method to create a CloudFront distribution with HTTP Origin
70
+ * @param {string} id scoped id of the resource
71
+ * @param {common.CommonConstruct} scope scope in which this resource is defined
72
+ * @param {types.DistributionProps} props distribution properties
73
+ * @param {origins.S3Origin} origin
74
+ * @param {string[]} domainNames
75
+ * @param {s3.IBucket?} logBucket
76
+ * @param {acm.ICertificate?} certificate
77
+ * @param {cloudfront.FunctionAssociation?} defaultFunctionAssociations
78
+ */
79
+ createDistributionWithHttpOrigin(id: string, scope: common.CommonConstruct, props: types.DistributionProps, origin: origins.HttpOrigin, domainNames: string[], logBucket?: s3.IBucket, certificate?: acm.ICertificate, defaultFunctionAssociations?: cloudfront.FunctionAssociation[]): cdk.aws_cloudfront.Distribution;
80
+ /**
81
+ * @summary Method to provision a Lambda@Edge function
82
+ *
83
+ * @param {string} id scoped id of the resource
84
+ * @param {common.CommonConstruct} scope scope in which this resource is defined
85
+ * @param {types.LambdaEdgeProps} props lambda@edge properties
86
+ * @param {lambda.ILayerVersion[]} layers
87
+ * @param {lambda.AssetCode} code
88
+ * @param {Map<string, string>} environment
89
+ * @param {ec2.IVpc} vpc
90
+ * @param {ec2.ISecurityGroup[]} securityGroups
91
+ * @param {efs.IAccessPoint} accessPoint
92
+ * @param {string} mountPath
93
+ */
94
+ createEdgeFunction(id: string, scope: common.CommonConstruct, props: types.LambdaEdgeProps, layers: lambda.ILayerVersion[], code: lambda.AssetCode, environment?: any, vpc?: ec2.IVpc, securityGroups?: ec2.ISecurityGroup[], accessPoint?: efs.IAccessPoint, mountPath?: string): cdk.aws_cloudfront.experimental.EdgeFunction;
95
+ /**
96
+ *
97
+ * @param id
98
+ * @param scope
99
+ * @param dockerFilePath
100
+ * @param distributionId
101
+ * @param paths
102
+ */
103
+ invalidateCache(id: string, scope: common.CommonConstruct, dockerFilePath: string, distributionId: string, paths?: string): void;
104
+ /**
105
+ * @summary Method to provision a Cloudfront function
106
+ *
107
+ * @param {string} id scoped id of the resource
108
+ * @param {common.CommonConstruct} scope scope in which this resource is defined
109
+ * @param {types.CloudfrontFunctionProps} props
110
+ */
111
+ createCloudfrontFunction(id: string, scope: common.CommonConstruct, props: types.CloudfrontFunctionProps): cdk.aws_cloudfront.Function;
112
+ }
113
+ //# sourceMappingURL=cloudfront-manager.d.ts.map