@gradientedge/cdk-utils 4.3.0 → 4.4.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (529) hide show
  1. package/README.md +38 -23
  2. package/api-docs/AcmManager.html +619 -0
  3. package/api-docs/AcmProps.html +235 -0
  4. package/api-docs/AlarmProps.html +235 -0
  5. package/api-docs/AlarmStatusWidgetProps.html +235 -0
  6. package/api-docs/ApiDestinationEvent.html +294 -0
  7. package/api-docs/ApiDestinationEventType.html +235 -0
  8. package/api-docs/ApiDestinedLambda.html +294 -0
  9. package/api-docs/ApiDestinedLambdaEnvironment.html +235 -0
  10. package/api-docs/ApiDestinedLambdaType.html +235 -0
  11. package/api-docs/ApiDestinedRestApi.html +294 -0
  12. package/api-docs/ApiDestinedRestApiType.html +235 -0
  13. package/api-docs/ApiManager.html +763 -0
  14. package/api-docs/ApiToEventBridgeTarget.html +1874 -0
  15. package/api-docs/ApiToEventBridgeTarget.jpg +0 -0
  16. package/api-docs/ApiToEventBridgeTargetEventProps.html +235 -0
  17. package/api-docs/ApiToEventBridgeTargetLambdaProps.html +235 -0
  18. package/api-docs/ApiToEventBridgeTargetProps.html +235 -0
  19. package/api-docs/AppConfigManager.html +1200 -0
  20. package/api-docs/AppConfigProps.html +235 -0
  21. package/api-docs/CloudFrontManager.html +2399 -0
  22. package/api-docs/CloudFrontProps.html +235 -0
  23. package/api-docs/CloudTrailManager.html +634 -0
  24. package/api-docs/CloudTrailProps.html +235 -0
  25. package/api-docs/CloudWatchManager.html +2983 -0
  26. package/api-docs/CloudfrontFunctionProps.html +235 -0
  27. package/api-docs/CodeBuildManager.html +733 -0
  28. package/api-docs/CommonConstruct.html +1296 -0
  29. package/api-docs/CommonStack.html +810 -0
  30. package/api-docs/CommonStackProps.html +235 -0
  31. package/api-docs/DashboardProps.html +235 -0
  32. package/api-docs/DistributionProps.html +235 -0
  33. package/api-docs/DynamodbManager.html +527 -0
  34. package/api-docs/EcrManager.html +527 -0
  35. package/api-docs/EcsClusterProps.html +235 -0
  36. package/api-docs/EcsManager.html +877 -0
  37. package/api-docs/EcsTaskProps.html +235 -0
  38. package/api-docs/EksClusterProps.html +235 -0
  39. package/api-docs/EksManager.html +577 -0
  40. package/api-docs/EventBusProps.html +235 -0
  41. package/api-docs/EventManager.html +1451 -0
  42. package/api-docs/EventRuleProps.html +235 -0
  43. package/api-docs/GraphQLApiLambda.html +1668 -0
  44. package/api-docs/GraphQLApiLambda.jpg +0 -0
  45. package/api-docs/GraphQlApiLambdaEnvironment.html +235 -0
  46. package/api-docs/GraphQlApiLambdaProps.html +235 -0
  47. package/api-docs/GraphWidgetProps.html +235 -0
  48. package/api-docs/HealthCheck.html +235 -0
  49. package/api-docs/IamManager.html +3818 -0
  50. package/api-docs/LambdaEdgeProps.html +235 -0
  51. package/api-docs/LambdaEnvironment.html +235 -0
  52. package/api-docs/LambdaManager.html +2375 -0
  53. package/api-docs/LambdaProps.html +235 -0
  54. package/api-docs/LogManager.html +952 -0
  55. package/api-docs/LogProps.html +235 -0
  56. package/api-docs/LogQueryWidgetProps.html +235 -0
  57. package/api-docs/MetricFilterProps.html +235 -0
  58. package/api-docs/MetricProps.html +235 -0
  59. package/api-docs/NumericWidgetProps.html +235 -0
  60. package/api-docs/Route53Manager.html +1457 -0
  61. package/api-docs/Route53Props.html +235 -0
  62. package/api-docs/RuleProps.html +235 -0
  63. package/api-docs/S3BucketProps.html +235 -0
  64. package/api-docs/S3Manager.html +1543 -0
  65. package/api-docs/SSMParameterReader.html +428 -0
  66. package/api-docs/SSMParameterReaderProps.html +235 -0
  67. package/api-docs/SecretsManager.html +1137 -0
  68. package/api-docs/SiteWithEcsBackend.html +2388 -0
  69. package/api-docs/SiteWithEcsBackendProps.html +235 -0
  70. package/api-docs/SnsManager.html +777 -0
  71. package/api-docs/SsmManager.html +952 -0
  72. package/api-docs/StaticSite.html +1355 -0
  73. package/api-docs/StaticSiteProps.html +235 -0
  74. package/api-docs/SubscriptionProps.html +235 -0
  75. package/api-docs/TableProps.html +235 -0
  76. package/api-docs/TextWidgetProps.html +235 -0
  77. package/api-docs/VpcManager.html +983 -0
  78. package/api-docs/WafIPSetProps.html +235 -0
  79. package/api-docs/WafManager.html +727 -0
  80. package/api-docs/WafWebACLProps.html +235 -0
  81. package/api-docs/common_construct.ts.html +275 -0
  82. package/api-docs/common_stack.ts.html +299 -0
  83. package/api-docs/construct_api-to-eventbridge-target_api-destination-event.ts.html +171 -0
  84. package/api-docs/construct_api-to-eventbridge-target_api-destined-lambda.ts.html +174 -0
  85. package/api-docs/construct_api-to-eventbridge-target_api-destined-rest-api.ts.html +186 -0
  86. package/api-docs/construct_api-to-eventbridge-target_main.ts.html +747 -0
  87. package/api-docs/construct_graphql-api-lambda_main.ts.html +404 -0
  88. package/api-docs/construct_site-with-ecs-backend_main.ts.html +540 -0
  89. package/api-docs/construct_static-site_main.ts.html +370 -0
  90. package/api-docs/global.html +1527 -0
  91. package/api-docs/index.html +207 -0
  92. package/api-docs/manager_aws_acm-manager.ts.html +232 -0
  93. package/api-docs/manager_aws_api-manager.ts.html +256 -0
  94. package/api-docs/manager_aws_app-config-manager.ts.html +305 -0
  95. package/api-docs/manager_aws_cloudfront-manager.ts.html +487 -0
  96. package/api-docs/manager_aws_cloudtrail-manager.ts.html +247 -0
  97. package/api-docs/manager_aws_cloudwatch-manager.ts.html +548 -0
  98. package/api-docs/manager_aws_codebuild-manager.ts.html +236 -0
  99. package/api-docs/manager_aws_dynamodb-manager.ts.html +215 -0
  100. package/api-docs/manager_aws_ecr-manager.ts.html +195 -0
  101. package/api-docs/manager_aws_ecs-manager.ts.html +255 -0
  102. package/api-docs/manager_aws_eks-manager.ts.html +256 -0
  103. package/api-docs/manager_aws_event-manager.ts.html +332 -0
  104. package/api-docs/manager_aws_iam-manager.ts.html +569 -0
  105. package/api-docs/manager_aws_lambda-manager.ts.html +396 -0
  106. package/api-docs/manager_aws_log-manager.ts.html +255 -0
  107. package/api-docs/manager_aws_route53-manager.ts.html +329 -0
  108. package/api-docs/manager_aws_s3-manager.ts.html +357 -0
  109. package/api-docs/manager_aws_secrets-manager.ts.html +270 -0
  110. package/api-docs/manager_aws_sns-manager.ts.html +242 -0
  111. package/api-docs/manager_aws_ssm-manager.ts.html +268 -0
  112. package/api-docs/manager_aws_vpc-manager.ts.html +239 -0
  113. package/api-docs/manager_aws_waf-manager.ts.html +228 -0
  114. package/api-docs/scripts/app.min.js +1 -0
  115. package/api-docs/scripts/linenumber.js +26 -0
  116. package/api-docs/scripts/search.js +39 -0
  117. package/api-docs/styles/app.min.css +1 -0
  118. package/api-docs/styles/iframe.css +13 -0
  119. package/api-docs/styles/prettify-jsdoc.css +111 -0
  120. package/api-docs/styles/prettify-tomorrow.css +132 -0
  121. package/api-docs/styles/reset.css +44 -0
  122. package/api-docs/tutorial-Architecture.html +147 -0
  123. package/api-docs/tutorial-Build.html +146 -0
  124. package/api-docs/tutorial-CI-CD.html +150 -0
  125. package/api-docs/tutorial-Development.html +223 -0
  126. package/api-docs/types_aws_index.ts.html +611 -0
  127. package/api-docs/utils_aws_index.ts.html +189 -0
  128. package/api-docs/utils_index.ts.html +225 -0
  129. package/app/api-destined-function/node_modules/.yarn-integrity +180 -0
  130. package/app/api-destined-function/node_modules/@types/uuid/LICENSE +21 -0
  131. package/app/api-destined-function/node_modules/@types/uuid/README.md +16 -0
  132. package/app/api-destined-function/node_modules/@types/uuid/index.d.mts +10 -0
  133. package/app/api-destined-function/node_modules/@types/uuid/index.d.ts +80 -0
  134. package/app/api-destined-function/node_modules/@types/uuid/package.json +54 -0
  135. package/app/api-destined-function/node_modules/balanced-match/LICENSE.md +21 -0
  136. package/app/api-destined-function/node_modules/balanced-match/README.md +97 -0
  137. package/app/api-destined-function/node_modules/balanced-match/index.js +62 -0
  138. package/app/api-destined-function/node_modules/balanced-match/package.json +48 -0
  139. package/app/api-destined-function/node_modules/brace-expansion/LICENSE +21 -0
  140. package/app/api-destined-function/node_modules/brace-expansion/README.md +129 -0
  141. package/app/api-destined-function/node_modules/brace-expansion/index.js +201 -0
  142. package/app/api-destined-function/node_modules/brace-expansion/package.json +47 -0
  143. package/app/api-destined-function/node_modules/concat-map/.travis.yml +4 -0
  144. package/app/api-destined-function/node_modules/concat-map/LICENSE +18 -0
  145. package/app/api-destined-function/node_modules/concat-map/README.markdown +62 -0
  146. package/app/api-destined-function/node_modules/concat-map/example/map.js +6 -0
  147. package/app/api-destined-function/node_modules/concat-map/index.js +13 -0
  148. package/app/api-destined-function/node_modules/concat-map/package.json +43 -0
  149. package/app/api-destined-function/node_modules/fs.realpath/LICENSE +43 -0
  150. package/app/api-destined-function/node_modules/fs.realpath/README.md +33 -0
  151. package/app/api-destined-function/node_modules/fs.realpath/index.js +66 -0
  152. package/app/api-destined-function/node_modules/fs.realpath/old.js +303 -0
  153. package/app/api-destined-function/node_modules/fs.realpath/package.json +26 -0
  154. package/app/api-destined-function/node_modules/glob/LICENSE +21 -0
  155. package/app/api-destined-function/node_modules/glob/README.md +378 -0
  156. package/app/api-destined-function/node_modules/glob/common.js +236 -0
  157. package/app/api-destined-function/node_modules/glob/glob.js +787 -0
  158. package/app/api-destined-function/node_modules/glob/package.json +52 -0
  159. package/app/api-destined-function/node_modules/glob/sync.js +483 -0
  160. package/app/api-destined-function/node_modules/inflight/LICENSE +15 -0
  161. package/app/api-destined-function/node_modules/inflight/README.md +37 -0
  162. package/app/api-destined-function/node_modules/inflight/inflight.js +54 -0
  163. package/app/api-destined-function/node_modules/inflight/package.json +29 -0
  164. package/app/api-destined-function/node_modules/inherits/LICENSE +16 -0
  165. package/app/api-destined-function/node_modules/inherits/README.md +42 -0
  166. package/app/api-destined-function/node_modules/inherits/inherits.js +9 -0
  167. package/app/api-destined-function/node_modules/inherits/inherits_browser.js +27 -0
  168. package/app/api-destined-function/node_modules/inherits/package.json +29 -0
  169. package/app/api-destined-function/node_modules/minimatch/LICENSE +15 -0
  170. package/app/api-destined-function/node_modules/minimatch/README.md +209 -0
  171. package/app/api-destined-function/node_modules/minimatch/minimatch.js +923 -0
  172. package/app/api-destined-function/node_modules/minimatch/package.json +30 -0
  173. package/app/api-destined-function/node_modules/mkdirp/LICENSE +21 -0
  174. package/app/api-destined-function/node_modules/mkdirp/bin/cmd.js +68 -0
  175. package/app/api-destined-function/node_modules/mkdirp/index.js +31 -0
  176. package/app/api-destined-function/node_modules/mkdirp/lib/find-made.js +29 -0
  177. package/app/api-destined-function/node_modules/mkdirp/lib/mkdirp-manual.js +64 -0
  178. package/app/api-destined-function/node_modules/mkdirp/lib/mkdirp-native.js +39 -0
  179. package/app/api-destined-function/node_modules/mkdirp/lib/opts-arg.js +23 -0
  180. package/app/api-destined-function/node_modules/mkdirp/lib/path-arg.js +29 -0
  181. package/app/api-destined-function/node_modules/mkdirp/lib/use-native.js +10 -0
  182. package/app/api-destined-function/node_modules/mkdirp/package.json +44 -0
  183. package/app/api-destined-function/node_modules/mkdirp/readme.markdown +266 -0
  184. package/app/api-destined-function/node_modules/once/LICENSE +15 -0
  185. package/app/api-destined-function/node_modules/once/README.md +79 -0
  186. package/app/api-destined-function/node_modules/once/once.js +42 -0
  187. package/app/api-destined-function/node_modules/once/package.json +33 -0
  188. package/app/api-destined-function/node_modules/path-is-absolute/index.js +20 -0
  189. package/app/api-destined-function/node_modules/path-is-absolute/license +21 -0
  190. package/app/api-destined-function/node_modules/path-is-absolute/package.json +43 -0
  191. package/app/api-destined-function/node_modules/path-is-absolute/readme.md +59 -0
  192. package/app/api-destined-function/node_modules/rimraf/LICENSE +15 -0
  193. package/app/api-destined-function/node_modules/rimraf/README.md +101 -0
  194. package/app/api-destined-function/node_modules/rimraf/bin.js +68 -0
  195. package/app/api-destined-function/node_modules/rimraf/package.json +32 -0
  196. package/app/api-destined-function/node_modules/rimraf/rimraf.js +360 -0
  197. package/app/api-destined-function/node_modules/uuid/LICENSE.md +9 -0
  198. package/app/api-destined-function/node_modules/uuid/README.md +505 -0
  199. package/app/api-destined-function/node_modules/uuid/dist/bin/uuid +2 -0
  200. package/app/api-destined-function/node_modules/uuid/dist/esm-browser/index.js +9 -0
  201. package/app/api-destined-function/node_modules/uuid/dist/esm-browser/md5.js +215 -0
  202. package/app/api-destined-function/node_modules/uuid/dist/esm-browser/nil.js +1 -0
  203. package/app/api-destined-function/node_modules/uuid/dist/esm-browser/parse.js +35 -0
  204. package/app/api-destined-function/node_modules/uuid/dist/esm-browser/regex.js +1 -0
  205. package/app/api-destined-function/node_modules/uuid/dist/esm-browser/rng.js +19 -0
  206. package/app/api-destined-function/node_modules/uuid/dist/esm-browser/sha1.js +96 -0
  207. package/app/api-destined-function/node_modules/uuid/dist/esm-browser/stringify.js +30 -0
  208. package/app/api-destined-function/node_modules/uuid/dist/esm-browser/v1.js +95 -0
  209. package/app/api-destined-function/node_modules/uuid/dist/esm-browser/v3.js +4 -0
  210. package/app/api-destined-function/node_modules/uuid/dist/esm-browser/v35.js +64 -0
  211. package/app/api-destined-function/node_modules/uuid/dist/esm-browser/v4.js +24 -0
  212. package/app/api-destined-function/node_modules/uuid/dist/esm-browser/v5.js +4 -0
  213. package/app/api-destined-function/node_modules/uuid/dist/esm-browser/validate.js +7 -0
  214. package/app/api-destined-function/node_modules/uuid/dist/esm-browser/version.js +11 -0
  215. package/app/api-destined-function/node_modules/uuid/dist/esm-node/index.js +9 -0
  216. package/app/api-destined-function/node_modules/uuid/dist/esm-node/md5.js +13 -0
  217. package/app/api-destined-function/node_modules/uuid/dist/esm-node/nil.js +1 -0
  218. package/app/api-destined-function/node_modules/uuid/dist/esm-node/parse.js +35 -0
  219. package/app/api-destined-function/node_modules/uuid/dist/esm-node/regex.js +1 -0
  220. package/app/api-destined-function/node_modules/uuid/dist/esm-node/rng.js +12 -0
  221. package/app/api-destined-function/node_modules/uuid/dist/esm-node/sha1.js +13 -0
  222. package/app/api-destined-function/node_modules/uuid/dist/esm-node/stringify.js +29 -0
  223. package/app/api-destined-function/node_modules/uuid/dist/esm-node/v1.js +95 -0
  224. package/app/api-destined-function/node_modules/uuid/dist/esm-node/v3.js +4 -0
  225. package/app/api-destined-function/node_modules/uuid/dist/esm-node/v35.js +64 -0
  226. package/app/api-destined-function/node_modules/uuid/dist/esm-node/v4.js +24 -0
  227. package/app/api-destined-function/node_modules/uuid/dist/esm-node/v5.js +4 -0
  228. package/app/api-destined-function/node_modules/uuid/dist/esm-node/validate.js +7 -0
  229. package/app/api-destined-function/node_modules/uuid/dist/esm-node/version.js +11 -0
  230. package/app/api-destined-function/node_modules/uuid/dist/index.js +79 -0
  231. package/app/api-destined-function/node_modules/uuid/dist/md5-browser.js +223 -0
  232. package/app/api-destined-function/node_modules/uuid/dist/md5.js +23 -0
  233. package/app/api-destined-function/node_modules/uuid/dist/nil.js +8 -0
  234. package/app/api-destined-function/node_modules/uuid/dist/parse.js +45 -0
  235. package/app/api-destined-function/node_modules/uuid/dist/regex.js +8 -0
  236. package/app/api-destined-function/node_modules/uuid/dist/rng-browser.js +26 -0
  237. package/app/api-destined-function/node_modules/uuid/dist/rng.js +24 -0
  238. package/app/api-destined-function/node_modules/uuid/dist/sha1-browser.js +104 -0
  239. package/app/api-destined-function/node_modules/uuid/dist/sha1.js +23 -0
  240. package/app/api-destined-function/node_modules/uuid/dist/stringify.js +39 -0
  241. package/app/api-destined-function/node_modules/uuid/dist/umd/uuid.min.js +1 -0
  242. package/app/api-destined-function/node_modules/uuid/dist/umd/uuidNIL.min.js +1 -0
  243. package/app/api-destined-function/node_modules/uuid/dist/umd/uuidParse.min.js +1 -0
  244. package/app/api-destined-function/node_modules/uuid/dist/umd/uuidStringify.min.js +1 -0
  245. package/app/api-destined-function/node_modules/uuid/dist/umd/uuidValidate.min.js +1 -0
  246. package/app/api-destined-function/node_modules/uuid/dist/umd/uuidVersion.min.js +1 -0
  247. package/app/api-destined-function/node_modules/uuid/dist/umd/uuidv1.min.js +1 -0
  248. package/app/api-destined-function/node_modules/uuid/dist/umd/uuidv3.min.js +1 -0
  249. package/app/api-destined-function/node_modules/uuid/dist/umd/uuidv4.min.js +1 -0
  250. package/app/api-destined-function/node_modules/uuid/dist/umd/uuidv5.min.js +1 -0
  251. package/app/api-destined-function/node_modules/uuid/dist/uuid-bin.js +85 -0
  252. package/app/api-destined-function/node_modules/uuid/dist/v1.js +107 -0
  253. package/app/api-destined-function/node_modules/uuid/dist/v3.js +16 -0
  254. package/app/api-destined-function/node_modules/uuid/dist/v35.js +78 -0
  255. package/app/api-destined-function/node_modules/uuid/dist/v4.js +37 -0
  256. package/app/api-destined-function/node_modules/uuid/dist/v5.js +16 -0
  257. package/app/api-destined-function/node_modules/uuid/dist/validate.js +17 -0
  258. package/app/api-destined-function/node_modules/uuid/dist/version.js +21 -0
  259. package/app/api-destined-function/node_modules/uuid/package.json +135 -0
  260. package/app/api-destined-function/node_modules/uuid/wrapper.mjs +10 -0
  261. package/app/api-destined-function/node_modules/wrappy/LICENSE +15 -0
  262. package/app/api-destined-function/node_modules/wrappy/README.md +36 -0
  263. package/app/api-destined-function/node_modules/wrappy/package.json +29 -0
  264. package/app/api-destined-function/node_modules/wrappy/wrappy.js +33 -0
  265. package/app/api-destined-function/package.json +30 -0
  266. package/app/api-destined-function/src/lib/lambda.ts +31 -0
  267. package/dist/app/api-destined-function/src/lib/lambda.d.ts +19 -0
  268. package/dist/app/api-destined-function/src/lib/lambda.d.ts.map +1 -0
  269. package/dist/app/api-destined-function/src/lib/lambda.js +34 -0
  270. package/dist/app/api-destined-function/src/lib/lambda.js.map +1 -0
  271. package/dist/src/lib/common/{commonConstruct.d.ts → construct.d.ts} +2 -13
  272. package/dist/src/lib/common/construct.d.ts.map +1 -0
  273. package/dist/src/lib/common/{commonConstruct.js → construct.js} +2 -14
  274. package/dist/src/lib/common/construct.js.map +1 -0
  275. package/dist/src/lib/common/index.d.ts +2 -2
  276. package/dist/src/lib/common/index.d.ts.map +1 -1
  277. package/dist/src/lib/common/index.js +2 -2
  278. package/dist/src/lib/common/index.js.map +1 -1
  279. package/dist/src/lib/common/{commonStack.d.ts → stack.d.ts} +3 -14
  280. package/dist/src/lib/common/stack.d.ts.map +1 -0
  281. package/dist/src/lib/common/{commonStack.js → stack.js} +4 -15
  282. package/dist/src/lib/common/stack.js.map +1 -0
  283. package/dist/src/lib/construct/api-to-eventbridge-target/api-destination-event.d.ts +16 -0
  284. package/dist/src/lib/construct/api-to-eventbridge-target/api-destination-event.d.ts.map +1 -0
  285. package/dist/src/lib/construct/api-to-eventbridge-target/api-destination-event.js +17 -0
  286. package/dist/src/lib/construct/api-to-eventbridge-target/api-destination-event.js.map +1 -0
  287. package/dist/src/lib/construct/api-to-eventbridge-target/api-destined-lambda.d.ts +19 -0
  288. package/dist/src/lib/construct/api-to-eventbridge-target/api-destined-lambda.d.ts.map +1 -0
  289. package/dist/src/lib/construct/api-to-eventbridge-target/api-destined-lambda.js +19 -0
  290. package/dist/src/lib/construct/api-to-eventbridge-target/api-destined-lambda.js.map +1 -0
  291. package/dist/src/lib/construct/api-to-eventbridge-target/api-destined-rest-api.d.ts +35 -0
  292. package/dist/src/lib/construct/api-to-eventbridge-target/api-destined-rest-api.d.ts.map +1 -0
  293. package/dist/src/lib/construct/api-to-eventbridge-target/api-destined-rest-api.js +29 -0
  294. package/dist/src/lib/construct/api-to-eventbridge-target/api-destined-rest-api.js.map +1 -0
  295. package/dist/src/lib/construct/api-to-eventbridge-target/index.d.ts +5 -0
  296. package/dist/src/lib/construct/api-to-eventbridge-target/index.d.ts.map +1 -0
  297. package/dist/src/lib/construct/api-to-eventbridge-target/index.js +17 -0
  298. package/dist/src/lib/construct/api-to-eventbridge-target/index.js.map +1 -0
  299. package/dist/src/lib/construct/api-to-eventbridge-target/main.d.ts +134 -0
  300. package/dist/src/lib/construct/api-to-eventbridge-target/main.d.ts.map +1 -0
  301. package/dist/src/lib/construct/api-to-eventbridge-target/main.js +487 -0
  302. package/dist/src/lib/construct/api-to-eventbridge-target/main.js.map +1 -0
  303. package/dist/src/lib/construct/graphql-api-lambda/index.d.ts +2 -0
  304. package/dist/src/lib/construct/graphql-api-lambda/index.d.ts.map +1 -0
  305. package/dist/src/lib/construct/graphql-api-lambda/index.js +14 -0
  306. package/dist/src/lib/construct/graphql-api-lambda/index.js.map +1 -0
  307. package/dist/src/lib/construct/{graphQLApiLambda.d.ts → graphql-api-lambda/main.d.ts} +12 -22
  308. package/dist/src/lib/construct/graphql-api-lambda/main.d.ts.map +1 -0
  309. package/dist/src/lib/construct/{graphQLApiLambda.js → graphql-api-lambda/main.js} +14 -24
  310. package/dist/src/lib/construct/graphql-api-lambda/main.js.map +1 -0
  311. package/dist/src/lib/construct/index.d.ts +4 -3
  312. package/dist/src/lib/construct/index.d.ts.map +1 -1
  313. package/dist/src/lib/construct/index.js +4 -3
  314. package/dist/src/lib/construct/index.js.map +1 -1
  315. package/dist/src/lib/construct/site-with-ecs-backend/index.d.ts +2 -0
  316. package/dist/src/lib/construct/site-with-ecs-backend/index.d.ts.map +1 -0
  317. package/dist/src/lib/construct/site-with-ecs-backend/index.js +14 -0
  318. package/dist/src/lib/construct/site-with-ecs-backend/index.js.map +1 -0
  319. package/dist/src/lib/construct/{siteWithEcsBackend.d.ts → site-with-ecs-backend/main.d.ts} +5 -17
  320. package/dist/src/lib/construct/site-with-ecs-backend/main.d.ts.map +1 -0
  321. package/dist/src/lib/construct/{siteWithEcsBackend.js → site-with-ecs-backend/main.js} +4 -16
  322. package/dist/src/lib/construct/site-with-ecs-backend/main.js.map +1 -0
  323. package/dist/src/lib/construct/static-site/index.d.ts +2 -0
  324. package/dist/src/lib/construct/static-site/index.d.ts.map +1 -0
  325. package/dist/src/lib/construct/static-site/index.js +14 -0
  326. package/dist/src/lib/construct/static-site/index.js.map +1 -0
  327. package/dist/src/lib/construct/{staticSite.d.ts → static-site/main.d.ts} +4 -16
  328. package/dist/src/lib/construct/static-site/main.d.ts.map +1 -0
  329. package/dist/src/lib/construct/{staticSite.js → static-site/main.js} +4 -16
  330. package/dist/src/lib/construct/static-site/main.js.map +1 -0
  331. package/dist/src/lib/manager/aws/{acmManager.d.ts → acm-manager.d.ts} +2 -2
  332. package/dist/src/lib/manager/aws/acm-manager.d.ts.map +1 -0
  333. package/dist/src/lib/manager/aws/{acmManager.js → acm-manager.js} +2 -2
  334. package/dist/src/lib/manager/aws/acm-manager.js.map +1 -0
  335. package/dist/src/lib/manager/aws/{apiManager.d.ts → api-manager.d.ts} +5 -5
  336. package/dist/src/lib/manager/aws/api-manager.d.ts.map +1 -0
  337. package/dist/src/lib/manager/aws/{apiManager.js → api-manager.js} +5 -5
  338. package/dist/src/lib/manager/aws/api-manager.js.map +1 -0
  339. package/dist/src/lib/manager/aws/{appConfigManager.d.ts → app-config-manager.d.ts} +2 -2
  340. package/dist/src/lib/manager/aws/app-config-manager.d.ts.map +1 -0
  341. package/dist/src/lib/manager/aws/{appConfigManager.js → app-config-manager.js} +2 -2
  342. package/dist/src/lib/manager/aws/app-config-manager.js.map +1 -0
  343. package/dist/src/lib/manager/aws/{cloudFrontManager.d.ts → cloudfront-manager.d.ts} +2 -2
  344. package/dist/src/lib/manager/aws/cloudfront-manager.d.ts.map +1 -0
  345. package/dist/src/lib/manager/aws/{cloudFrontManager.js → cloudfront-manager.js} +2 -2
  346. package/dist/src/lib/manager/aws/cloudfront-manager.js.map +1 -0
  347. package/dist/src/lib/manager/aws/{cloudTrailManager.d.ts → cloudtrail-manager.d.ts} +2 -2
  348. package/dist/src/lib/manager/aws/cloudtrail-manager.d.ts.map +1 -0
  349. package/dist/src/lib/manager/aws/{cloudTrailManager.js → cloudtrail-manager.js} +2 -2
  350. package/dist/src/lib/manager/aws/cloudtrail-manager.js.map +1 -0
  351. package/dist/src/lib/manager/aws/{cloudWatchManager.d.ts → cloudwatch-manager.d.ts} +2 -2
  352. package/dist/src/lib/manager/aws/cloudwatch-manager.d.ts.map +1 -0
  353. package/dist/src/lib/manager/aws/{cloudWatchManager.js → cloudwatch-manager.js} +2 -2
  354. package/dist/src/lib/manager/aws/cloudwatch-manager.js.map +1 -0
  355. package/dist/src/lib/manager/aws/{codeBuildManager.d.ts → codebuild-manager.d.ts} +2 -2
  356. package/dist/src/lib/manager/aws/codebuild-manager.d.ts.map +1 -0
  357. package/dist/src/lib/manager/aws/{codeBuildManager.js → codebuild-manager.js} +2 -2
  358. package/dist/src/lib/manager/aws/codebuild-manager.js.map +1 -0
  359. package/dist/src/lib/manager/aws/{dynamodbManager.d.ts → dynamodb-manager.d.ts} +2 -2
  360. package/dist/src/lib/manager/aws/dynamodb-manager.d.ts.map +1 -0
  361. package/dist/src/lib/manager/aws/{dynamodbManager.js → dynamodb-manager.js} +2 -2
  362. package/dist/src/lib/manager/aws/dynamodb-manager.js.map +1 -0
  363. package/dist/src/lib/manager/aws/{ecrManager.d.ts → ecr-manager.d.ts} +2 -2
  364. package/dist/src/lib/manager/aws/ecr-manager.d.ts.map +1 -0
  365. package/dist/src/lib/manager/aws/{ecrManager.js → ecr-manager.js} +2 -2
  366. package/dist/src/lib/manager/aws/ecr-manager.js.map +1 -0
  367. package/dist/src/lib/manager/aws/{ecsManager.d.ts → ecs-manager.d.ts} +2 -2
  368. package/dist/src/lib/manager/aws/ecs-manager.d.ts.map +1 -0
  369. package/dist/src/lib/manager/aws/{ecsManager.js → ecs-manager.js} +2 -2
  370. package/dist/src/lib/manager/aws/ecs-manager.js.map +1 -0
  371. package/dist/src/lib/manager/aws/{eksManager.d.ts → eks-manager.d.ts} +2 -2
  372. package/dist/src/lib/manager/aws/eks-manager.d.ts.map +1 -0
  373. package/dist/src/lib/manager/aws/{eksManager.js → eks-manager.js} +2 -2
  374. package/dist/src/lib/manager/aws/eks-manager.js.map +1 -0
  375. package/dist/src/lib/manager/aws/{eventManager.d.ts → event-manager.d.ts} +18 -2
  376. package/dist/src/lib/manager/aws/event-manager.d.ts.map +1 -0
  377. package/dist/src/lib/manager/aws/{eventManager.js → event-manager.js} +44 -2
  378. package/dist/src/lib/manager/aws/event-manager.js.map +1 -0
  379. package/dist/src/lib/manager/aws/{iamManager.d.ts → iam-manager.d.ts} +12 -14
  380. package/dist/src/lib/manager/aws/iam-manager.d.ts.map +1 -0
  381. package/dist/src/lib/manager/aws/{iamManager.js → iam-manager.js} +21 -17
  382. package/dist/src/lib/manager/aws/iam-manager.js.map +1 -0
  383. package/dist/src/lib/manager/aws/index.d.ts +22 -22
  384. package/dist/src/lib/manager/aws/index.d.ts.map +1 -1
  385. package/dist/src/lib/manager/aws/index.js +22 -22
  386. package/dist/src/lib/manager/aws/index.js.map +1 -1
  387. package/dist/src/lib/manager/aws/{lambdaManager.d.ts → lambda-manager.d.ts} +28 -26
  388. package/dist/src/lib/manager/aws/lambda-manager.d.ts.map +1 -0
  389. package/dist/src/lib/manager/aws/{lambdaManager.js → lambda-manager.js} +45 -37
  390. package/dist/src/lib/manager/aws/lambda-manager.js.map +1 -0
  391. package/dist/src/lib/manager/aws/{logManager.d.ts → log-manager.d.ts} +2 -2
  392. package/dist/src/lib/manager/aws/log-manager.d.ts.map +1 -0
  393. package/dist/src/lib/manager/aws/{logManager.js → log-manager.js} +2 -2
  394. package/dist/src/lib/manager/aws/log-manager.js.map +1 -0
  395. package/dist/src/lib/manager/aws/{route53Manager.d.ts → route53-manager.d.ts} +3 -3
  396. package/dist/src/lib/manager/aws/route53-manager.d.ts.map +1 -0
  397. package/dist/src/lib/manager/aws/{route53Manager.js → route53-manager.js} +3 -3
  398. package/dist/src/lib/manager/aws/route53-manager.js.map +1 -0
  399. package/dist/src/lib/manager/aws/{s3Manager.d.ts → s3-manager.d.ts} +2 -2
  400. package/dist/src/lib/manager/aws/s3-manager.d.ts.map +1 -0
  401. package/dist/src/lib/manager/aws/{s3Manager.js → s3-manager.js} +2 -2
  402. package/dist/src/lib/manager/aws/s3-manager.js.map +1 -0
  403. package/dist/src/lib/manager/aws/{secretsManager.d.ts → secrets-manager.d.ts} +2 -2
  404. package/dist/src/lib/manager/aws/secrets-manager.d.ts.map +1 -0
  405. package/dist/src/lib/manager/aws/{secretsManager.js → secrets-manager.js} +2 -2
  406. package/dist/src/lib/manager/aws/secrets-manager.js.map +1 -0
  407. package/dist/src/lib/manager/aws/{snsManager.d.ts → sns-manager.d.ts} +2 -2
  408. package/dist/src/lib/manager/aws/sns-manager.d.ts.map +1 -0
  409. package/dist/src/lib/manager/aws/{snsManager.js → sns-manager.js} +2 -2
  410. package/dist/src/lib/manager/aws/sns-manager.js.map +1 -0
  411. package/dist/src/lib/manager/aws/{ssmManager.d.ts → ssm-manager.d.ts} +4 -9
  412. package/dist/src/lib/manager/aws/ssm-manager.d.ts.map +1 -0
  413. package/dist/src/lib/manager/aws/{ssmManager.js → ssm-manager.js} +4 -9
  414. package/dist/src/lib/manager/aws/ssm-manager.js.map +1 -0
  415. package/dist/src/lib/manager/aws/{vpcManager.d.ts → vpc-manager.d.ts} +4 -3
  416. package/dist/src/lib/manager/aws/vpc-manager.d.ts.map +1 -0
  417. package/dist/src/lib/manager/aws/{vpcManager.js → vpc-manager.js} +6 -4
  418. package/dist/src/lib/manager/aws/vpc-manager.js.map +1 -0
  419. package/dist/src/lib/manager/aws/{wafManager.d.ts → waf-manager.d.ts} +2 -2
  420. package/dist/src/lib/manager/aws/waf-manager.d.ts.map +1 -0
  421. package/dist/src/lib/manager/aws/{wafManager.js → waf-manager.js} +2 -2
  422. package/dist/src/lib/manager/aws/waf-manager.js.map +1 -0
  423. package/dist/src/lib/types/aws/index.d.ts +137 -2
  424. package/dist/src/lib/types/aws/index.d.ts.map +1 -1
  425. package/dist/src/lib/utils/aws/index.d.ts +1 -1
  426. package/dist/src/lib/utils/aws/index.d.ts.map +1 -1
  427. package/dist/src/lib/utils/index.d.ts +1 -0
  428. package/dist/src/lib/utils/index.d.ts.map +1 -1
  429. package/dist/src/lib/utils/index.js +1 -0
  430. package/dist/src/lib/utils/index.js.map +1 -1
  431. package/img/ApiToEventBridgeTarget.jpg +0 -0
  432. package/img/GraphQLApiLambda.jpg +0 -0
  433. package/package.json +12 -13
  434. package/src/lib/common/{commonConstruct.ts → construct.ts} +1 -13
  435. package/src/lib/common/index.ts +2 -2
  436. package/src/lib/common/{commonStack.ts → stack.ts} +3 -13
  437. package/src/lib/construct/api-to-eventbridge-target/api-destination-event.ts +16 -0
  438. package/src/lib/construct/api-to-eventbridge-target/api-destined-lambda.ts +19 -0
  439. package/src/lib/construct/api-to-eventbridge-target/api-destined-rest-api.ts +31 -0
  440. package/src/lib/construct/api-to-eventbridge-target/index.ts +4 -0
  441. package/src/lib/construct/api-to-eventbridge-target/main.ts +592 -0
  442. package/src/lib/construct/graphql-api-lambda/index.ts +1 -0
  443. package/src/lib/construct/{graphQLApiLambda.ts → graphql-api-lambda/main.ts} +13 -23
  444. package/src/lib/construct/index.ts +4 -3
  445. package/src/lib/construct/site-with-ecs-backend/index.ts +1 -0
  446. package/src/lib/construct/{siteWithEcsBackend.ts → site-with-ecs-backend/main.ts} +4 -16
  447. package/src/lib/construct/static-site/index.ts +1 -0
  448. package/src/lib/construct/{staticSite.ts → static-site/main.ts} +3 -15
  449. package/src/lib/manager/aws/{acmManager.ts → acm-manager.ts} +1 -1
  450. package/src/lib/manager/aws/{apiManager.ts → api-manager.ts} +4 -4
  451. package/src/lib/manager/aws/{appConfigManager.ts → app-config-manager.ts} +1 -1
  452. package/src/lib/manager/aws/{cloudFrontManager.ts → cloudfront-manager.ts} +1 -1
  453. package/src/lib/manager/aws/{cloudTrailManager.ts → cloudtrail-manager.ts} +1 -1
  454. package/src/lib/manager/aws/{cloudWatchManager.ts → cloudwatch-manager.ts} +1 -1
  455. package/src/lib/manager/aws/{codeBuildManager.ts → codebuild-manager.ts} +1 -1
  456. package/src/lib/manager/aws/{dynamodbManager.ts → dynamodb-manager.ts} +1 -1
  457. package/src/lib/manager/aws/{ecrManager.ts → ecr-manager.ts} +1 -1
  458. package/src/lib/manager/aws/{ecsManager.ts → ecs-manager.ts} +1 -1
  459. package/src/lib/manager/aws/{eksManager.ts → eks-manager.ts} +1 -1
  460. package/src/lib/manager/aws/{eventManager.ts → event-manager.ts} +55 -1
  461. package/src/lib/manager/aws/{iamManager.ts → iam-manager.ts} +21 -16
  462. package/src/lib/manager/aws/index.ts +22 -22
  463. package/src/lib/manager/aws/{lambdaManager.ts → lambda-manager.ts} +51 -41
  464. package/src/lib/manager/aws/{logManager.ts → log-manager.ts} +1 -1
  465. package/src/lib/manager/aws/{route53Manager.ts → route53-manager.ts} +2 -2
  466. package/src/lib/manager/aws/{s3Manager.ts → s3-manager.ts} +1 -1
  467. package/src/lib/manager/aws/{secretsManager.ts → secrets-manager.ts} +1 -1
  468. package/src/lib/manager/aws/{snsManager.ts → sns-manager.ts} +1 -1
  469. package/src/lib/manager/aws/{ssmManager.ts → ssm-manager.ts} +3 -8
  470. package/src/lib/manager/aws/{vpcManager.ts → vpc-manager.ts} +5 -3
  471. package/src/lib/manager/aws/{wafManager.ts → waf-manager.ts} +1 -1
  472. package/src/lib/types/aws/index.ts +140 -2
  473. package/src/lib/utils/aws/index.ts +1 -1
  474. package/src/lib/utils/index.ts +1 -0
  475. package/.releaserc +0 -9
  476. package/dist/src/lib/common/commonConstruct.d.ts.map +0 -1
  477. package/dist/src/lib/common/commonConstruct.js.map +0 -1
  478. package/dist/src/lib/common/commonStack.d.ts.map +0 -1
  479. package/dist/src/lib/common/commonStack.js.map +0 -1
  480. package/dist/src/lib/construct/graphQLApiLambda.d.ts.map +0 -1
  481. package/dist/src/lib/construct/graphQLApiLambda.js.map +0 -1
  482. package/dist/src/lib/construct/siteWithEcsBackend.d.ts.map +0 -1
  483. package/dist/src/lib/construct/siteWithEcsBackend.js.map +0 -1
  484. package/dist/src/lib/construct/staticSite.d.ts.map +0 -1
  485. package/dist/src/lib/construct/staticSite.js.map +0 -1
  486. package/dist/src/lib/manager/aws/acmManager.d.ts.map +0 -1
  487. package/dist/src/lib/manager/aws/acmManager.js.map +0 -1
  488. package/dist/src/lib/manager/aws/apiManager.d.ts.map +0 -1
  489. package/dist/src/lib/manager/aws/apiManager.js.map +0 -1
  490. package/dist/src/lib/manager/aws/appConfigManager.d.ts.map +0 -1
  491. package/dist/src/lib/manager/aws/appConfigManager.js.map +0 -1
  492. package/dist/src/lib/manager/aws/cloudFrontManager.d.ts.map +0 -1
  493. package/dist/src/lib/manager/aws/cloudFrontManager.js.map +0 -1
  494. package/dist/src/lib/manager/aws/cloudTrailManager.d.ts.map +0 -1
  495. package/dist/src/lib/manager/aws/cloudTrailManager.js.map +0 -1
  496. package/dist/src/lib/manager/aws/cloudWatchManager.d.ts.map +0 -1
  497. package/dist/src/lib/manager/aws/cloudWatchManager.js.map +0 -1
  498. package/dist/src/lib/manager/aws/codeBuildManager.d.ts.map +0 -1
  499. package/dist/src/lib/manager/aws/codeBuildManager.js.map +0 -1
  500. package/dist/src/lib/manager/aws/dynamodbManager.d.ts.map +0 -1
  501. package/dist/src/lib/manager/aws/dynamodbManager.js.map +0 -1
  502. package/dist/src/lib/manager/aws/ecrManager.d.ts.map +0 -1
  503. package/dist/src/lib/manager/aws/ecrManager.js.map +0 -1
  504. package/dist/src/lib/manager/aws/ecsManager.d.ts.map +0 -1
  505. package/dist/src/lib/manager/aws/ecsManager.js.map +0 -1
  506. package/dist/src/lib/manager/aws/eksManager.d.ts.map +0 -1
  507. package/dist/src/lib/manager/aws/eksManager.js.map +0 -1
  508. package/dist/src/lib/manager/aws/eventManager.d.ts.map +0 -1
  509. package/dist/src/lib/manager/aws/eventManager.js.map +0 -1
  510. package/dist/src/lib/manager/aws/iamManager.d.ts.map +0 -1
  511. package/dist/src/lib/manager/aws/iamManager.js.map +0 -1
  512. package/dist/src/lib/manager/aws/lambdaManager.d.ts.map +0 -1
  513. package/dist/src/lib/manager/aws/lambdaManager.js.map +0 -1
  514. package/dist/src/lib/manager/aws/logManager.d.ts.map +0 -1
  515. package/dist/src/lib/manager/aws/logManager.js.map +0 -1
  516. package/dist/src/lib/manager/aws/route53Manager.d.ts.map +0 -1
  517. package/dist/src/lib/manager/aws/route53Manager.js.map +0 -1
  518. package/dist/src/lib/manager/aws/s3Manager.d.ts.map +0 -1
  519. package/dist/src/lib/manager/aws/s3Manager.js.map +0 -1
  520. package/dist/src/lib/manager/aws/secretsManager.d.ts.map +0 -1
  521. package/dist/src/lib/manager/aws/secretsManager.js.map +0 -1
  522. package/dist/src/lib/manager/aws/snsManager.d.ts.map +0 -1
  523. package/dist/src/lib/manager/aws/snsManager.js.map +0 -1
  524. package/dist/src/lib/manager/aws/ssmManager.d.ts.map +0 -1
  525. package/dist/src/lib/manager/aws/ssmManager.js.map +0 -1
  526. package/dist/src/lib/manager/aws/vpcManager.d.ts.map +0 -1
  527. package/dist/src/lib/manager/aws/vpcManager.js.map +0 -1
  528. package/dist/src/lib/manager/aws/wafManager.d.ts.map +0 -1
  529. package/dist/src/lib/manager/aws/wafManager.js.map +0 -1
@@ -12,13 +12,13 @@ import * as route53 from 'aws-cdk-lib/aws-route53'
12
12
  import * as s3 from 'aws-cdk-lib/aws-s3'
13
13
  import * as secretsmanager from 'aws-cdk-lib/aws-secretsmanager'
14
14
  import { Construct } from 'constructs'
15
- import { CommonConstruct } from '../common/commonConstruct'
16
- import { SiteWithEcsBackendProps } from '../types'
15
+ import { CommonConstruct } from '../../common'
16
+ import { SiteWithEcsBackendProps } from '../../types'
17
17
 
18
18
  /**
19
19
  * @stability stable
20
20
  * @category Constructs
21
- * @summary Provides a construct to create and deploy a site hosted with an clustered ECS/ELB backend
21
+ * @classdesc Provides a construct to create and deploy a site hosted with an clustered ECS/ELB backend
22
22
  *
23
23
  * @example
24
24
  * import { SiteWithEcsBackend, SiteWithEcsBackendProps } '@gradientedge/cdk-utils'
@@ -32,12 +32,6 @@ import { SiteWithEcsBackendProps } from '../types'
32
32
  * this.initResources()
33
33
  * }
34
34
  * }
35
- *
36
- * @mermaid
37
- * graph LR;
38
- * A[StaticSite]-.->|extends|B(CommonConstruct);
39
- * B(CommonConstruct)-->|extends|C(Construct);
40
- * C(Construct)-->|implements|D(IConstruct);
41
35
  */
42
36
  export class SiteWithEcsBackend extends CommonConstruct {
43
37
  /* site properties */
@@ -50,7 +44,7 @@ export class SiteWithEcsBackend extends CommonConstruct {
50
44
  siteEcsPolicy: iam.PolicyDocument
51
45
  siteEcsRole: iam.Role
52
46
  siteEcsEnvironment: { [key: string]: string }
53
- siteVpc: ec2.Vpc
47
+ siteVpc: ec2.IVpc
54
48
  siteSecrets: any
55
49
  siteEcsCluster: ecs.Cluster
56
50
  siteEcsLogGroup: logs.LogGroup
@@ -71,12 +65,6 @@ export class SiteWithEcsBackend extends CommonConstruct {
71
65
  siteCloudfrontFunction: cloudfront.Function
72
66
  siteFunctionAssociations: cloudfront.FunctionAssociation[]
73
67
 
74
- /**
75
- * @summary Constructor to initialise the SiteWithEcsBackend Construct
76
- * @param {Construct} parent
77
- * @param {string} id
78
- * @param {SiteWithEcsBackendProps} props
79
- */
80
68
  constructor(parent: Construct, id: string, props: SiteWithEcsBackendProps) {
81
69
  super(parent, id, props)
82
70
 
@@ -0,0 +1 @@
1
+ export * from './main'
@@ -4,13 +4,13 @@ import * as origins from 'aws-cdk-lib/aws-cloudfront-origins'
4
4
  import * as route53 from 'aws-cdk-lib/aws-route53'
5
5
  import * as s3 from 'aws-cdk-lib/aws-s3'
6
6
  import { Construct } from 'constructs'
7
- import { CommonConstruct } from '../common/commonConstruct'
8
- import { StaticSiteProps } from '../types'
7
+ import { CommonConstruct } from '../../common'
8
+ import { StaticSiteProps } from '../../types'
9
9
 
10
10
  /**
11
11
  * @stability stable
12
12
  * @category Constructs
13
- * @summary Provides a construct to create and deploy a s3 hosted static site
13
+ * @classdesc Provides a construct to create and deploy a s3 hosted static site
14
14
  *
15
15
  * @example
16
16
  * import { StaticSite, StaticSiteProps } '@gradientedge/cdk-utils'
@@ -24,12 +24,6 @@ import { StaticSiteProps } from '../types'
24
24
  * this.initResources()
25
25
  * }
26
26
  * }
27
- *
28
- * @mermaid
29
- * graph LR;
30
- * A[StaticSite]-.->|extends|B(CommonConstruct);
31
- * B(CommonConstruct)-->|extends|C(Construct);
32
- * C(Construct)-->|implements|D(IConstruct);
33
27
  */
34
28
  export class StaticSite extends CommonConstruct {
35
29
  /* static site properties */
@@ -49,12 +43,6 @@ export class StaticSite extends CommonConstruct {
49
43
  siteCloudfrontFunction: cloudfront.Function
50
44
  siteFunctionAssociations: cloudfront.FunctionAssociation[]
51
45
 
52
- /**
53
- * @summary Constructor to initialise the StaticSite Construct
54
- * @param {Construct} parent
55
- * @param {string} id
56
- * @param {StaticSiteProps} props
57
- */
58
46
  constructor(parent: Construct, id: string, props: StaticSiteProps) {
59
47
  super(parent, id, props)
60
48
 
@@ -8,7 +8,7 @@ import * as utils from '../../utils'
8
8
  /**
9
9
  * @stability stable
10
10
  * @category Security, Identity & Compliance
11
- * @summary Provides operations on AWS Certificates.
11
+ * @classdesc Provides operations on AWS Certificates.
12
12
  * - A new instance of this class is injected into {@link common.CommonConstruct} constructor.
13
13
  * - If a custom construct extends {@link common.CommonConstruct}, an instance is available within the context.
14
14
  * @example
@@ -7,7 +7,7 @@ import * as utils from '../../utils'
7
7
  /**
8
8
  * @stability stable
9
9
  * @category Networking & Content Delivery
10
- * @summary Provides operations on AWS API Gateway.
10
+ * @classdesc Provides operations on AWS API Gateway.
11
11
  * - A new instance of this class is injected into {@link common.CommonConstruct} constructor.
12
12
  * - If a custom construct extends {@link common.CommonConstruct}, an instance is available within the context.
13
13
  * @example
@@ -29,7 +29,7 @@ export class ApiManager {
29
29
  * @summary Method to create a Rest API with Lambda backend/target
30
30
  * @param {string} id scoped id of the resource
31
31
  * @param {common.CommonConstruct} scope scope in which this resource is defined
32
- * @param {AcmProps} props lambda rest api props
32
+ * @param {AcmProps} props lambda rest restApi props
33
33
  * @param lambdaFunction
34
34
  */
35
35
  public createLambdaRestApi(
@@ -80,11 +80,11 @@ export class ApiManager {
80
80
  }
81
81
 
82
82
  /**
83
- * @summary Method to create custom api domain
83
+ * @summary Method to create custom restApi domain
84
84
  * @param {string} id scoped id of the resource
85
85
  * @param {common.CommonConstruct} scope scope in which this resource is defined
86
86
  * @param domainName the domain name to use
87
- * @param certificate the certificate used for custom api domain
87
+ * @param certificate the certificate used for custom restApi domain
88
88
  */
89
89
  public createApiDomain(id: string, scope: common.CommonConstruct, domainName: string, certificate: acm.ICertificate) {
90
90
  const apiDomain = new apig.DomainName(scope, `${id}`, {
@@ -34,7 +34,7 @@ export const ArnsByRegion: { [key: string]: string } = {
34
34
 
35
35
  /**
36
36
  * @category Management & Governance
37
- * @summary Provides operations on AWS AppConfig.
37
+ * @classdesc Provides operations on AWS AppConfig.
38
38
  * - A new instance of this class is injected into {@link common.CommonConstruct} constructor.
39
39
  * - If a custom construct extends {@link common.CommonConstruct}, an instance is available within the context.
40
40
  * @example
@@ -14,7 +14,7 @@ import * as utils from '../../utils'
14
14
  /**
15
15
  * @stability stable
16
16
  * @category Networking & Content Delivery
17
- * @summary Provides operations on AWS CloudFront.
17
+ * @classdesc Provides operations on AWS CloudFront.
18
18
  * - A new instance of this class is injected into {@link common.CommonConstruct} constructor.
19
19
  * - If a custom construct extends {@link common.CommonConstruct}, an instance is available within the context.
20
20
  * @example
@@ -8,7 +8,7 @@ import * as utils from '../../utils'
8
8
  /**
9
9
  * @stability stable
10
10
  * @category Management & Governance
11
- * @summary Provides operations on AWS CloudTrail.
11
+ * @classdesc Provides operations on AWS CloudTrail.
12
12
  * - A new instance of this class is injected into {@link common.CommonConstruct} constructor.
13
13
  * - If a custom construct extends {@link common.CommonConstruct}, an instance is available within the context.
14
14
  * @example
@@ -19,7 +19,7 @@ enum CloudWatchWidgetType {
19
19
  /**
20
20
  * @stability stable
21
21
  * @category Management & Governance
22
- * @summary Provides operations on AWS CloudWatch.
22
+ * @classdesc Provides operations on AWS CloudWatch.
23
23
  * - A new instance of this class is injected into {@link common.CommonConstruct} constructor.
24
24
  * - If a custom construct extends {@link common.CommonConstruct}, an instance is available within the context.
25
25
  * @example
@@ -5,7 +5,7 @@ import * as common from '../../common'
5
5
  /**
6
6
  * @stability stable
7
7
  * @category Developer Tools
8
- * @summary Provides operations on AWS Code Build.
8
+ * @classdesc Provides operations on AWS Code Build.
9
9
  * - A new instance of this class is injected into {@link common.CommonConstruct} constructor.
10
10
  * - If a custom construct extends {@link common.CommonConstruct}, an instance is available within the context.
11
11
  * @example
@@ -6,7 +6,7 @@ import * as utils from '../../utils'
6
6
  /**
7
7
  * @stability stable
8
8
  * @category Storage
9
- * @summary Provides operations on AWS DynamoDB.
9
+ * @classdesc Provides operations on AWS DynamoDB.
10
10
  * - A new instance of this class is injected into {@link common.CommonConstruct} constructor.
11
11
  * - If a custom construct extends {@link common.CommonConstruct}, an instance is available within the context.
12
12
  * @example
@@ -5,7 +5,7 @@ import * as utils from '../../utils'
5
5
  /**
6
6
  * @stability stable
7
7
  * @category Containers
8
- * @summary Provides operations on AWS Elastic Container Registry.
8
+ * @classdesc Provides operations on AWS Elastic Container Registry.
9
9
  * - A new instance of this class is injected into {@link common.CommonConstruct} constructor.
10
10
  * - If a custom construct extends {@link common.CommonConstruct}, an instance is available within the context.
11
11
  * @example
@@ -9,7 +9,7 @@ import * as utils from '../../utils'
9
9
  /**
10
10
  * @stability stable
11
11
  * @category Containers
12
- * @summary Provides operations on AWS Elastic Container Service.
12
+ * @classdesc Provides operations on AWS Elastic Container Service.
13
13
  * - A new instance of this class is injected into {@link common.CommonConstruct} constructor.
14
14
  * - If a custom construct extends {@link common.CommonConstruct}, an instance is available within the context.
15
15
  * @example
@@ -8,7 +8,7 @@ import * as utils from '../../utils'
8
8
  /**
9
9
  * @stability stable
10
10
  * @category Containers
11
- * @summary Provides operations on AWS Elastic Kubernetes Service.
11
+ * @classdesc Provides operations on AWS Elastic Kubernetes Service.
12
12
  * - A new instance of this class is injected into {@link common.CommonConstruct} constructor.
13
13
  * - If a custom construct extends {@link common.CommonConstruct}, an instance is available within the context.
14
14
  * @example
@@ -9,7 +9,7 @@ import * as utils from '../../utils'
9
9
  /**
10
10
  * @stability stable
11
11
  * @category Application Integration
12
- * @summary Provides operations on AWS EventBridge.
12
+ * @classdesc Provides operations on AWS EventBridge.
13
13
  * - A new instance of this class is injected into {@link common.CommonConstruct} constructor.
14
14
  * - If a custom construct extends {@link common.CommonConstruct}, an instance is available within the context.
15
15
  * @example
@@ -26,6 +26,60 @@ import * as utils from '../../utils'
26
26
  * @see [CDK EventBridge Module]{@link https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_events-readme.html}
27
27
  */
28
28
  export class EventManager {
29
+ /**
30
+ * Method to create an event bus
31
+ * @param {string} id scoped id of the resource
32
+ * @param {common.CommonConstruct} scope scope in which this resource is defined
33
+ * @param {types.EventBusProps} props event bus properties
34
+ */
35
+ public createEventBus(id: string, scope: common.CommonConstruct, props: types.EventBusProps) {
36
+ if (!props) throw 'EventBus props undefined'
37
+
38
+ const eventBus = new events.EventBus(scope, `${id}`, {
39
+ eventBusName: `${props.eventBusName}-${scope.props.stage}`,
40
+ })
41
+
42
+ utils.createCfnOutput(`${id}-eventBusName`, scope, eventBus.eventBusName)
43
+ utils.createCfnOutput(`${id}-eventBusArn`, scope, eventBus.eventBusArn)
44
+
45
+ return eventBus
46
+ }
47
+
48
+ /**
49
+ * Method to create an event rule
50
+ * @param {string} id scoped id of the resource
51
+ * @param {common.CommonConstruct} scope scope in which this resource is defined
52
+ * @param {types.EventRuleProps} props event rule properties
53
+ * @param {events.IEventBus?} eventBus optional custom event bus
54
+ * @param {events.IRuleTarget[]?} targets optional event targets
55
+ */
56
+ public createRule(
57
+ id: string,
58
+ scope: common.CommonConstruct,
59
+ props: types.EventRuleProps,
60
+ eventBus?: events.IEventBus,
61
+ targets?: events.IRuleTarget[]
62
+ ) {
63
+ if (!props) throw `EventRule props undefined`
64
+
65
+ const rule = new events.Rule(scope, `${id}`, {
66
+ eventBus: eventBus,
67
+ description: props.description,
68
+ ruleName: `${props.ruleName}-${scope.props.stage}`,
69
+ eventPattern: props.eventPattern,
70
+ })
71
+
72
+ if (targets && targets.length > 0) {
73
+ targets.forEach(target => {
74
+ rule.addTarget(target)
75
+ })
76
+ }
77
+
78
+ utils.createCfnOutput(`${id}-ruleArn`, scope, rule.ruleArn)
79
+ utils.createCfnOutput(`${id}-ruleName`, scope, rule.ruleName)
80
+
81
+ return rule
82
+ }
29
83
  /**
30
84
  * @summary Method to create an eventbridge rule with lambda target
31
85
  * @param {string} id scoped id of the resource
@@ -9,7 +9,7 @@ import * as utils from '../../utils'
9
9
  /**
10
10
  * @stability stable
11
11
  * @category Security, Identity & Compliance
12
- * @summary Provides operations on AWS IAM.
12
+ * @classdesc Provides operations on AWS IAM.
13
13
  * - A new instance of this class is injected into {@link common.CommonConstruct} constructor.
14
14
  * - If a custom construct extends {@link common.CommonConstruct}, an instance is available within the context.
15
15
  * @example
@@ -38,11 +38,21 @@ export class IamManager {
38
38
  })
39
39
  }
40
40
 
41
+ /**
42
+ * @summary Method to create iam statement to put events
43
+ */
44
+ public statementForPutEvents() {
45
+ return new iam.PolicyStatement({
46
+ effect: iam.Effect.ALLOW,
47
+ actions: ['events:PutEvents'],
48
+ resources: ['*'],
49
+ })
50
+ }
51
+
41
52
  /**
42
53
  * @summary Method to create iam statement to read app config
43
- * @param {common.CommonConstruct} scope scope in which this resource is defined
44
54
  */
45
- public statementForReadAnyAppConfig(scope: common.CommonConstruct) {
55
+ public statementForReadAnyAppConfig() {
46
56
  return new iam.PolicyStatement({
47
57
  effect: iam.Effect.ALLOW,
48
58
  actions: [
@@ -78,9 +88,8 @@ export class IamManager {
78
88
 
79
89
  /**
80
90
  * @summary Method to create iam statement to list all s3 buckets
81
- * @param {common.CommonConstruct} scope scope in which this resource is defined
82
91
  */
83
- public statementForListAllMyBuckets(scope: common.CommonConstruct) {
92
+ public statementForListAllMyBuckets() {
84
93
  return new iam.PolicyStatement({
85
94
  effect: iam.Effect.ALLOW,
86
95
  actions: ['s3:ListAllMyBuckets'],
@@ -129,9 +138,8 @@ export class IamManager {
129
138
 
130
139
  /**
131
140
  * @summary Method to create iam statement to pass iam role
132
- * @param {common.CommonConstruct} scope scope in which this resource is defined
133
141
  */
134
- public statementForPassRole(scope: common.CommonConstruct) {
142
+ public statementForPassRole() {
135
143
  return new iam.PolicyStatement({
136
144
  effect: iam.Effect.ALLOW,
137
145
  actions: ['iam:PassRole'],
@@ -141,9 +149,8 @@ export class IamManager {
141
149
 
142
150
  /**
143
151
  * @summary Method to create iam statement to invalidate cloudfront cache
144
- * @param {common.CommonConstruct} scope scope in which this resource is defined
145
152
  */
146
- public statementForCloudfrontInvalidation(scope: common.CommonConstruct) {
153
+ public statementForCloudfrontInvalidation() {
147
154
  return new iam.PolicyStatement({
148
155
  effect: iam.Effect.ALLOW,
149
156
  actions: ['cloudfront:GetInvalidation', 'cloudfront:CreateInvalidation'],
@@ -153,14 +160,13 @@ export class IamManager {
153
160
 
154
161
  /**
155
162
  * @summary Method to create iam policy to invalidate cloudfront cache
156
- * @param {common.CommonConstruct} scope scope in which this resource is defined
157
163
  */
158
- public policyForCloudfrontInvalidation(scope: common.CommonConstruct) {
164
+ public policyForCloudfrontInvalidation() {
159
165
  return new iam.PolicyDocument({
160
166
  statements: [
161
167
  this.statementForCreateAnyLogStream(),
162
168
  this.statementForPutAnyLogEvent(),
163
- this.statementForCloudfrontInvalidation(scope),
169
+ this.statementForCloudfrontInvalidation(),
164
170
  new iam.PolicyStatement({
165
171
  effect: iam.Effect.ALLOW,
166
172
  actions: [
@@ -184,7 +190,7 @@ export class IamManager {
184
190
  return new iam.Role(scope, `${id}-install-deps-project-role`, {
185
191
  assumedBy: new iam.ServicePrincipal('codebuild.amazonaws.com'),
186
192
  inlinePolicies: {
187
- codeBuildPolicy: this.policyForCloudfrontInvalidation(scope),
193
+ codeBuildPolicy: this.policyForCloudfrontInvalidation(),
188
194
  },
189
195
  })
190
196
  }
@@ -204,9 +210,8 @@ export class IamManager {
204
210
 
205
211
  /**
206
212
  * @summary Method to create iam statement to pass ecs role
207
- * @param {common.CommonConstruct} scope scope in which this resource is defined
208
213
  */
209
- public statementForEcsPassRole(scope: common.CommonConstruct) {
214
+ public statementForEcsPassRole() {
210
215
  return new iam.PolicyStatement({
211
216
  effect: iam.Effect.ALLOW,
212
217
  actions: ['iam:PassRole'],
@@ -331,7 +336,7 @@ export class IamManager {
331
336
  task: ecs.ITaskDefinition
332
337
  ) {
333
338
  const policy = new iam.PolicyDocument({
334
- statements: [this.statementForRunEcsTask(scope, cluster, task), this.statementForEcsPassRole(scope)],
339
+ statements: [this.statementForRunEcsTask(scope, cluster, task), this.statementForEcsPassRole()],
335
340
  })
336
341
 
337
342
  const role = new iam.Role(scope, `${id}`, {
@@ -1,22 +1,22 @@
1
- export * from './acmManager'
2
- export * from './apiManager'
3
- export * from './appConfigManager'
4
- export * from './cloudFrontManager'
5
- export * from './cloudTrailManager'
6
- export * from './cloudWatchManager'
7
- export * from './codeBuildManager'
8
- export * from './dynamodbManager'
9
- export * from './ecrManager'
10
- export * from './ecsManager'
11
- export * from './eksManager'
12
- export * from './eventManager'
13
- export * from './iamManager'
14
- export * from './lambdaManager'
15
- export * from './logManager'
16
- export * from './route53Manager'
17
- export * from './s3Manager'
18
- export * from './secretsManager'
19
- export * from './snsManager'
20
- export * from './ssmManager'
21
- export * from './vpcManager'
22
- export * from './wafManager'
1
+ export * from './acm-manager'
2
+ export * from './api-manager'
3
+ export * from './app-config-manager'
4
+ export * from './cloudfront-manager'
5
+ export * from './cloudtrail-manager'
6
+ export * from './cloudwatch-manager'
7
+ export * from './codebuild-manager'
8
+ export * from './dynamodb-manager'
9
+ export * from './ecr-manager'
10
+ export * from './ecs-manager'
11
+ export * from './eks-manager'
12
+ export * from './event-manager'
13
+ export * from './iam-manager'
14
+ export * from './lambda-manager'
15
+ export * from './log-manager'
16
+ export * from './route53-manager'
17
+ export * from './s3-manager'
18
+ export * from './secrets-manager'
19
+ export * from './sns-manager'
20
+ export * from './ssm-manager'
21
+ export * from './vpc-manager'
22
+ export * from './waf-manager'
@@ -7,12 +7,12 @@ import * as lambda from 'aws-cdk-lib/aws-lambda'
7
7
  import * as common from '../../common'
8
8
  import * as types from '../../types'
9
9
  import * as utils from '../../utils'
10
- import { CloudFrontManager } from './cloudFrontManager'
10
+ import { CloudFrontManager } from './cloudfront-manager'
11
11
 
12
12
  /**
13
13
  * @stability stable
14
14
  * @category Compute
15
- * @summary Provides operations on AWS Lambda.
15
+ * @classdesc Provides operations on AWS Lambda.
16
16
  * - A new instance of this class is injected into {@link common.CommonConstruct} constructor.
17
17
  * - If a custom construct extends {@link common.CommonConstruct}, an instance is available within the context.
18
18
  * @example
@@ -68,43 +68,49 @@ export class LambdaManager {
68
68
  }
69
69
 
70
70
  /**
71
- * @summary Method to create a lambda function (nodejs)
71
+ * @summary Method to create a lambda function (python)
72
72
  * @param {string} id scoped id of the resource
73
73
  * @param {common.CommonConstruct} scope scope in which this resource is defined
74
74
  * @param {types.LambdaProps} props
75
75
  * @param {iam.Role | iam.CfnRole} role
76
76
  * @param {lambda.ILayerVersion[]} layers
77
- * @param {lambda.AssetCode} code
78
- * @param {string} handler
79
- * @param {Map<string, string>} environment
80
- * @param {ec2.IVpc} vpc
81
- * @param {ec2.ISecurityGroup[]} securityGroups
82
- * @param {efs.IAccessPoint} accessPoint
83
- * @param {string} mountPath
77
+ * @param {string} entry path to lambda source
78
+ * @param {string?} index
79
+ * @param {string?} handler
80
+ * @param {Map<string, string>?} environment
81
+ * @param {ec2.IVpc?} vpc
82
+ * @param {ec2.ISecurityGroup[]?} securityGroups
83
+ * @param {efs.IAccessPoint?} accessPoint
84
+ * @param {string?} mountPath
85
+ * @param {ec2.SubnetSelection?} vpcSubnets
84
86
  */
85
- public createLambdaFunction(
87
+
88
+ public createPythonLambdaFunction(
86
89
  id: string,
87
90
  scope: common.CommonConstruct,
88
91
  props: types.LambdaProps,
89
92
  role: iam.Role | iam.CfnRole,
90
93
  layers: lambda.ILayerVersion[],
91
- code: lambda.AssetCode,
94
+ entry: string,
95
+ index?: string,
92
96
  handler?: string,
93
97
  environment?: any,
94
98
  vpc?: ec2.IVpc,
95
99
  securityGroups?: ec2.ISecurityGroup[],
96
100
  accessPoint?: efs.IAccessPoint,
97
- mountPath?: string
101
+ mountPath?: string,
102
+ vpcSubnets?: ec2.SubnetSelection
98
103
  ) {
99
104
  if (!props) throw `Lambda props undefined`
100
105
 
101
106
  const functionName = `${props.functionName}-${scope.props.stage}`
102
- const lambdaFunction = new lambda.Function(scope, `${id}`, {
107
+ const lambdaFunction = new pylambda.PythonFunction(scope, `${id}`, {
103
108
  allowPublicSubnet: !!vpc,
104
109
  functionName: functionName,
105
- handler: handler || 'index.lambda_handler',
106
- runtime: lambda.Runtime.NODEJS_14_X,
107
- code: code,
110
+ index: index,
111
+ handler: handler,
112
+ runtime: lambda.Runtime.PYTHON_3_8,
113
+ entry: entry,
108
114
  environment: {
109
115
  REGION: scope.props.region,
110
116
  ...environment,
@@ -113,11 +119,14 @@ export class LambdaManager {
113
119
  layers: layers,
114
120
  logRetention: props.logRetention,
115
121
  memorySize: props.memorySize,
122
+ onFailure: props.onFailure,
123
+ onSuccess: props.onSuccess,
116
124
  reservedConcurrentExecutions: props.reservedConcurrentExecutions,
117
125
  role: role instanceof iam.Role ? role : undefined,
118
126
  securityGroups: securityGroups,
119
127
  timeout: props.timeoutInSecs ? cdk.Duration.seconds(props.timeoutInSecs) : cdk.Duration.minutes(1),
120
128
  vpc: vpc,
129
+ vpcSubnets: vpcSubnets,
121
130
  })
122
131
 
123
132
  utils.createCfnOutput(`${id}-lambdaArn`, scope, lambdaFunction.functionArn)
@@ -127,47 +136,45 @@ export class LambdaManager {
127
136
  }
128
137
 
129
138
  /**
130
- * @summary Method to create a lambda function (python)
139
+ * @summary Method to create a lambda function (nodejs)
131
140
  * @param {string} id scoped id of the resource
132
141
  * @param {common.CommonConstruct} scope scope in which this resource is defined
133
142
  * @param {types.LambdaProps} props
134
143
  * @param {iam.Role | iam.CfnRole} role
135
144
  * @param {lambda.ILayerVersion[]} layers
136
- * @param {string} entry path to lambda source
137
- * @param {string} index
138
- * @param {string} handler
139
- * @param {Map<string, string>} environment
140
- * @param {ec2.IVpc} vpc
141
- * @param {ec2.ISecurityGroup[]} securityGroups
142
- * @param {efs.IAccessPoint} accessPoint
143
- * @param {string} mountPath
145
+ * @param {lambda.AssetCode} code
146
+ * @param {string?} handler
147
+ * @param {Map<string, string>?} environment
148
+ * @param {ec2.IVpc?} vpc
149
+ * @param {ec2.ISecurityGroup[]?} securityGroups
150
+ * @param {efs.IAccessPoint?} accessPoint
151
+ * @param {string?} mountPath
152
+ * @param {ec2.SubnetSelection?} vpcSubnets
144
153
  */
145
-
146
- public createPythonLambdaFunction(
154
+ public createLambdaFunction(
147
155
  id: string,
148
156
  scope: common.CommonConstruct,
149
157
  props: types.LambdaProps,
150
158
  role: iam.Role | iam.CfnRole,
151
159
  layers: lambda.ILayerVersion[],
152
- entry: string,
153
- index?: string,
160
+ code: lambda.AssetCode,
154
161
  handler?: string,
155
162
  environment?: any,
156
163
  vpc?: ec2.IVpc,
157
164
  securityGroups?: ec2.ISecurityGroup[],
158
165
  accessPoint?: efs.IAccessPoint,
159
- mountPath?: string
166
+ mountPath?: string,
167
+ vpcSubnets?: ec2.SubnetSelection
160
168
  ) {
161
169
  if (!props) throw `Lambda props undefined`
162
170
 
163
171
  const functionName = `${props.functionName}-${scope.props.stage}`
164
- const lambdaFunction = new pylambda.PythonFunction(scope, `${id}`, {
172
+ const lambdaFunction = new lambda.Function(scope, `${id}`, {
165
173
  allowPublicSubnet: !!vpc,
166
174
  functionName: functionName,
167
- index: index,
168
- handler: handler,
169
- runtime: lambda.Runtime.PYTHON_3_8,
170
- entry: entry,
175
+ handler: handler || 'index.lambda_handler',
176
+ runtime: lambda.Runtime.NODEJS_14_X,
177
+ code: code,
171
178
  environment: {
172
179
  REGION: scope.props.region,
173
180
  ...environment,
@@ -176,11 +183,14 @@ export class LambdaManager {
176
183
  layers: layers,
177
184
  logRetention: props.logRetention,
178
185
  memorySize: props.memorySize,
186
+ onFailure: props.onFailure,
187
+ onSuccess: props.onSuccess,
179
188
  reservedConcurrentExecutions: props.reservedConcurrentExecutions,
180
189
  role: role instanceof iam.Role ? role : undefined,
181
190
  securityGroups: securityGroups,
182
191
  timeout: props.timeoutInSecs ? cdk.Duration.seconds(props.timeoutInSecs) : cdk.Duration.minutes(1),
183
192
  vpc: vpc,
193
+ vpcSubnets: vpcSubnets,
184
194
  })
185
195
 
186
196
  utils.createCfnOutput(`${id}-lambdaArn`, scope, lambdaFunction.functionArn)
@@ -197,11 +207,11 @@ export class LambdaManager {
197
207
  * @param {types.LambdaEdgeProps} props lambda@edge properties
198
208
  * @param {lambda.ILayerVersion[]} layers
199
209
  * @param {lambda.AssetCode} code
200
- * @param {Map<string, string>} environment
201
- * @param {ec2.IVpc} vpc
202
- * @param {ec2.ISecurityGroup[]} securityGroups
203
- * @param {efs.IAccessPoint} accessPoint
204
- * @param {string} mountPath
210
+ * @param {Map<string, string>?} environment
211
+ * @param {ec2.IVpc?} vpc
212
+ * @param {ec2.ISecurityGroup[]?} securityGroups
213
+ * @param {efs.IAccessPoint?} accessPoint
214
+ * @param {string?} mountPath
205
215
  */
206
216
  public createEdgeFunction(
207
217
  id: string,
@@ -7,7 +7,7 @@ import * as utils from '../../utils'
7
7
  /**
8
8
  * @stability stable
9
9
  * @category Management & Governance
10
- * @summary Provides operations on AWS CloudWatch.
10
+ * @classdesc Provides operations on AWS CloudWatch.
11
11
  * - A new instance of this class is injected into {@link common.CommonConstruct} constructor.
12
12
  * - If a custom construct extends {@link common.CommonConstruct}, an instance is available within the context.
13
13
  * @example