@gradientedge/cdk-utils 4.3.1 → 4.4.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 (606) hide show
  1. package/README.md +39 -28
  2. package/api-docs/AcmManager.html +622 -0
  3. package/api-docs/AcmProps.html +238 -0
  4. package/api-docs/AlarmProps.html +238 -0
  5. package/api-docs/AlarmStatusWidgetProps.html +238 -0
  6. package/api-docs/ApiDestinationEvent.html +297 -0
  7. package/api-docs/ApiDestinationEventType.html +238 -0
  8. package/api-docs/ApiDestinedLambda.html +297 -0
  9. package/api-docs/ApiDestinedLambdaEnvironment.html +238 -0
  10. package/api-docs/ApiDestinedLambdaType.html +238 -0
  11. package/api-docs/ApiDestinedRestApi.html +297 -0
  12. package/api-docs/ApiDestinedRestApiType.html +238 -0
  13. package/api-docs/ApiManager.html +766 -0
  14. package/api-docs/ApiToEventBridgeTarget.html +1877 -0
  15. package/api-docs/ApiToEventBridgeTarget.jpg +0 -0
  16. package/api-docs/ApiToEventBridgeTargetEventProps.html +238 -0
  17. package/api-docs/ApiToEventBridgeTargetLambdaProps.html +238 -0
  18. package/api-docs/ApiToEventBridgeTargetProps.html +238 -0
  19. package/api-docs/ApiToEventBridgeTargetRestApiProps.html +238 -0
  20. package/api-docs/AppConfigManager.html +1203 -0
  21. package/api-docs/AppConfigProps.html +238 -0
  22. package/api-docs/CloudFrontManager.html +2402 -0
  23. package/api-docs/CloudFrontProps.html +238 -0
  24. package/api-docs/CloudTrailManager.html +637 -0
  25. package/api-docs/CloudTrailProps.html +238 -0
  26. package/api-docs/CloudWatchManager.html +2986 -0
  27. package/api-docs/CloudfrontFunctionProps.html +238 -0
  28. package/api-docs/CodeBuildManager.html +736 -0
  29. package/api-docs/CommonConstruct.html +1299 -0
  30. package/api-docs/CommonStack.html +813 -0
  31. package/api-docs/CommonStackProps.html +238 -0
  32. package/api-docs/DashboardProps.html +238 -0
  33. package/api-docs/DistributionProps.html +238 -0
  34. package/api-docs/DynamodbManager.html +530 -0
  35. package/api-docs/EcrManager.html +530 -0
  36. package/api-docs/EcsClusterProps.html +238 -0
  37. package/api-docs/EcsManager.html +880 -0
  38. package/api-docs/EcsTaskProps.html +238 -0
  39. package/api-docs/EksClusterProps.html +238 -0
  40. package/api-docs/EksManager.html +580 -0
  41. package/api-docs/EventBusProps.html +238 -0
  42. package/api-docs/EventManager.html +1454 -0
  43. package/api-docs/EventRuleProps.html +238 -0
  44. package/api-docs/GraphQLApiLambda.html +1671 -0
  45. package/api-docs/GraphQLApiLambda.jpg +0 -0
  46. package/api-docs/GraphQlApiLambdaEnvironment.html +238 -0
  47. package/api-docs/GraphQlApiLambdaProps.html +238 -0
  48. package/api-docs/GraphWidgetProps.html +238 -0
  49. package/api-docs/HealthCheck.html +238 -0
  50. package/api-docs/IamManager.html +3821 -0
  51. package/api-docs/LambdaEdgeProps.html +238 -0
  52. package/api-docs/LambdaEnvironment.html +238 -0
  53. package/api-docs/LambdaManager.html +2378 -0
  54. package/api-docs/LambdaProps.html +238 -0
  55. package/api-docs/LifecycleRule.html +238 -0
  56. package/api-docs/LogManager.html +955 -0
  57. package/api-docs/LogProps.html +238 -0
  58. package/api-docs/LogQueryWidgetProps.html +238 -0
  59. package/api-docs/MetricFilterProps.html +238 -0
  60. package/api-docs/MetricProps.html +238 -0
  61. package/api-docs/NumericWidgetProps.html +238 -0
  62. package/api-docs/Route53Manager.html +1460 -0
  63. package/api-docs/Route53Props.html +238 -0
  64. package/api-docs/RuleProps.html +238 -0
  65. package/api-docs/S3BucketProps.html +238 -0
  66. package/api-docs/S3Manager.html +1546 -0
  67. package/api-docs/SSMParameterReader.html +431 -0
  68. package/api-docs/SSMParameterReaderProps.html +238 -0
  69. package/api-docs/SecretsManager.html +1140 -0
  70. package/api-docs/SiteWithEcsBackend.html +2391 -0
  71. package/api-docs/SiteWithEcsBackendProps.html +238 -0
  72. package/api-docs/SnsManager.html +780 -0
  73. package/api-docs/SsmManager.html +955 -0
  74. package/api-docs/StaticSite.html +1358 -0
  75. package/api-docs/StaticSiteProps.html +238 -0
  76. package/api-docs/SubscriptionProps.html +238 -0
  77. package/api-docs/TableProps.html +238 -0
  78. package/api-docs/TextWidgetProps.html +238 -0
  79. package/api-docs/VpcManager.html +986 -0
  80. package/api-docs/WafIPSetProps.html +238 -0
  81. package/api-docs/WafManager.html +730 -0
  82. package/api-docs/WafWebACLProps.html +238 -0
  83. package/api-docs/common_construct.ts.html +279 -0
  84. package/api-docs/common_stack.ts.html +303 -0
  85. package/api-docs/construct_api-to-eventbridge-target_api-destination-event.ts.html +175 -0
  86. package/api-docs/construct_api-to-eventbridge-target_api-destined-lambda.ts.html +178 -0
  87. package/api-docs/construct_api-to-eventbridge-target_api-destined-rest-api.ts.html +190 -0
  88. package/api-docs/construct_api-to-eventbridge-target_main.ts.html +751 -0
  89. package/api-docs/construct_graphql-api-lambda_main.ts.html +408 -0
  90. package/api-docs/construct_site-with-ecs-backend_main.ts.html +544 -0
  91. package/api-docs/construct_static-site_main.ts.html +374 -0
  92. package/api-docs/global.html +1530 -0
  93. package/api-docs/index.html +208 -0
  94. package/api-docs/logo.png +0 -0
  95. package/api-docs/manager_aws_acm-manager.ts.html +236 -0
  96. package/api-docs/manager_aws_api-manager.ts.html +260 -0
  97. package/api-docs/manager_aws_app-config-manager.ts.html +310 -0
  98. package/api-docs/manager_aws_cloudfront-manager.ts.html +491 -0
  99. package/api-docs/manager_aws_cloudtrail-manager.ts.html +251 -0
  100. package/api-docs/manager_aws_cloudwatch-manager.ts.html +553 -0
  101. package/api-docs/manager_aws_codebuild-manager.ts.html +240 -0
  102. package/api-docs/manager_aws_dynamodb-manager.ts.html +219 -0
  103. package/api-docs/manager_aws_ecr-manager.ts.html +199 -0
  104. package/api-docs/manager_aws_ecs-manager.ts.html +259 -0
  105. package/api-docs/manager_aws_eks-manager.ts.html +260 -0
  106. package/api-docs/manager_aws_event-manager.ts.html +336 -0
  107. package/api-docs/manager_aws_iam-manager.ts.html +573 -0
  108. package/api-docs/manager_aws_lambda-manager.ts.html +400 -0
  109. package/api-docs/manager_aws_log-manager.ts.html +259 -0
  110. package/api-docs/manager_aws_route53-manager.ts.html +333 -0
  111. package/api-docs/manager_aws_s3-manager.ts.html +361 -0
  112. package/api-docs/manager_aws_secrets-manager.ts.html +274 -0
  113. package/api-docs/manager_aws_sns-manager.ts.html +246 -0
  114. package/api-docs/manager_aws_ssm-manager.ts.html +273 -0
  115. package/api-docs/manager_aws_vpc-manager.ts.html +244 -0
  116. package/api-docs/manager_aws_waf-manager.ts.html +232 -0
  117. package/api-docs/scripts/app.min.js +1 -0
  118. package/api-docs/scripts/linenumber.js +26 -0
  119. package/api-docs/scripts/search.js +39 -0
  120. package/api-docs/styles/app.min.css +1 -0
  121. package/api-docs/styles/iframe.css +13 -0
  122. package/api-docs/styles/prettify-jsdoc.css +111 -0
  123. package/api-docs/styles/prettify-tomorrow.css +132 -0
  124. package/api-docs/styles/reset.css +44 -0
  125. package/api-docs/styles.css +113 -0
  126. package/api-docs/tutorial-Architecture.html +151 -0
  127. package/api-docs/tutorial-Build.html +150 -0
  128. package/api-docs/tutorial-CI-CD.html +154 -0
  129. package/api-docs/tutorial-Development.html +227 -0
  130. package/api-docs/types_aws_index.ts.html +665 -0
  131. package/api-docs/utils_aws_index.ts.html +192 -0
  132. package/api-docs/utils_index.ts.html +227 -0
  133. package/app/api-destined-function/node_modules/.yarn-integrity +180 -0
  134. package/app/api-destined-function/node_modules/@types/uuid/LICENSE +21 -0
  135. package/app/api-destined-function/node_modules/@types/uuid/README.md +16 -0
  136. package/app/api-destined-function/node_modules/@types/uuid/index.d.mts +10 -0
  137. package/app/api-destined-function/node_modules/@types/uuid/index.d.ts +80 -0
  138. package/app/api-destined-function/node_modules/@types/uuid/package.json +54 -0
  139. package/app/api-destined-function/node_modules/balanced-match/LICENSE.md +21 -0
  140. package/app/api-destined-function/node_modules/balanced-match/README.md +97 -0
  141. package/app/api-destined-function/node_modules/balanced-match/index.js +62 -0
  142. package/app/api-destined-function/node_modules/balanced-match/package.json +48 -0
  143. package/app/api-destined-function/node_modules/brace-expansion/LICENSE +21 -0
  144. package/app/api-destined-function/node_modules/brace-expansion/README.md +129 -0
  145. package/app/api-destined-function/node_modules/brace-expansion/index.js +201 -0
  146. package/app/api-destined-function/node_modules/brace-expansion/package.json +47 -0
  147. package/app/api-destined-function/node_modules/concat-map/.travis.yml +4 -0
  148. package/app/api-destined-function/node_modules/concat-map/LICENSE +18 -0
  149. package/app/api-destined-function/node_modules/concat-map/README.markdown +62 -0
  150. package/app/api-destined-function/node_modules/concat-map/example/map.js +6 -0
  151. package/app/api-destined-function/node_modules/concat-map/index.js +13 -0
  152. package/app/api-destined-function/node_modules/concat-map/package.json +43 -0
  153. package/app/api-destined-function/node_modules/fs.realpath/LICENSE +43 -0
  154. package/app/api-destined-function/node_modules/fs.realpath/README.md +33 -0
  155. package/app/api-destined-function/node_modules/fs.realpath/index.js +66 -0
  156. package/app/api-destined-function/node_modules/fs.realpath/old.js +303 -0
  157. package/app/api-destined-function/node_modules/fs.realpath/package.json +26 -0
  158. package/app/api-destined-function/node_modules/glob/LICENSE +21 -0
  159. package/app/api-destined-function/node_modules/glob/README.md +378 -0
  160. package/app/api-destined-function/node_modules/glob/common.js +236 -0
  161. package/app/api-destined-function/node_modules/glob/glob.js +787 -0
  162. package/app/api-destined-function/node_modules/glob/package.json +52 -0
  163. package/app/api-destined-function/node_modules/glob/sync.js +483 -0
  164. package/app/api-destined-function/node_modules/inflight/LICENSE +15 -0
  165. package/app/api-destined-function/node_modules/inflight/README.md +37 -0
  166. package/app/api-destined-function/node_modules/inflight/inflight.js +54 -0
  167. package/app/api-destined-function/node_modules/inflight/package.json +29 -0
  168. package/app/api-destined-function/node_modules/inherits/LICENSE +16 -0
  169. package/app/api-destined-function/node_modules/inherits/README.md +42 -0
  170. package/app/api-destined-function/node_modules/inherits/inherits.js +9 -0
  171. package/app/api-destined-function/node_modules/inherits/inherits_browser.js +27 -0
  172. package/app/api-destined-function/node_modules/inherits/package.json +29 -0
  173. package/app/api-destined-function/node_modules/minimatch/LICENSE +15 -0
  174. package/app/api-destined-function/node_modules/minimatch/README.md +209 -0
  175. package/app/api-destined-function/node_modules/minimatch/minimatch.js +923 -0
  176. package/app/api-destined-function/node_modules/minimatch/package.json +30 -0
  177. package/app/api-destined-function/node_modules/mkdirp/LICENSE +21 -0
  178. package/app/api-destined-function/node_modules/mkdirp/bin/cmd.js +68 -0
  179. package/app/api-destined-function/node_modules/mkdirp/index.js +31 -0
  180. package/app/api-destined-function/node_modules/mkdirp/lib/find-made.js +29 -0
  181. package/app/api-destined-function/node_modules/mkdirp/lib/mkdirp-manual.js +64 -0
  182. package/app/api-destined-function/node_modules/mkdirp/lib/mkdirp-native.js +39 -0
  183. package/app/api-destined-function/node_modules/mkdirp/lib/opts-arg.js +23 -0
  184. package/app/api-destined-function/node_modules/mkdirp/lib/path-arg.js +29 -0
  185. package/app/api-destined-function/node_modules/mkdirp/lib/use-native.js +10 -0
  186. package/app/api-destined-function/node_modules/mkdirp/package.json +44 -0
  187. package/app/api-destined-function/node_modules/mkdirp/readme.markdown +266 -0
  188. package/app/api-destined-function/node_modules/once/LICENSE +15 -0
  189. package/app/api-destined-function/node_modules/once/README.md +79 -0
  190. package/app/api-destined-function/node_modules/once/once.js +42 -0
  191. package/app/api-destined-function/node_modules/once/package.json +33 -0
  192. package/app/api-destined-function/node_modules/path-is-absolute/index.js +20 -0
  193. package/app/api-destined-function/node_modules/path-is-absolute/license +21 -0
  194. package/app/api-destined-function/node_modules/path-is-absolute/package.json +43 -0
  195. package/app/api-destined-function/node_modules/path-is-absolute/readme.md +59 -0
  196. package/app/api-destined-function/node_modules/rimraf/LICENSE +15 -0
  197. package/app/api-destined-function/node_modules/rimraf/README.md +101 -0
  198. package/app/api-destined-function/node_modules/rimraf/bin.js +68 -0
  199. package/app/api-destined-function/node_modules/rimraf/package.json +32 -0
  200. package/app/api-destined-function/node_modules/rimraf/rimraf.js +360 -0
  201. package/app/api-destined-function/node_modules/uuid/LICENSE.md +9 -0
  202. package/app/api-destined-function/node_modules/uuid/README.md +505 -0
  203. package/app/api-destined-function/node_modules/uuid/dist/bin/uuid +2 -0
  204. package/app/api-destined-function/node_modules/uuid/dist/esm-browser/index.js +9 -0
  205. package/app/api-destined-function/node_modules/uuid/dist/esm-browser/md5.js +215 -0
  206. package/app/api-destined-function/node_modules/uuid/dist/esm-browser/nil.js +1 -0
  207. package/app/api-destined-function/node_modules/uuid/dist/esm-browser/parse.js +35 -0
  208. package/app/api-destined-function/node_modules/uuid/dist/esm-browser/regex.js +1 -0
  209. package/app/api-destined-function/node_modules/uuid/dist/esm-browser/rng.js +19 -0
  210. package/app/api-destined-function/node_modules/uuid/dist/esm-browser/sha1.js +96 -0
  211. package/app/api-destined-function/node_modules/uuid/dist/esm-browser/stringify.js +30 -0
  212. package/app/api-destined-function/node_modules/uuid/dist/esm-browser/v1.js +95 -0
  213. package/app/api-destined-function/node_modules/uuid/dist/esm-browser/v3.js +4 -0
  214. package/app/api-destined-function/node_modules/uuid/dist/esm-browser/v35.js +64 -0
  215. package/app/api-destined-function/node_modules/uuid/dist/esm-browser/v4.js +24 -0
  216. package/app/api-destined-function/node_modules/uuid/dist/esm-browser/v5.js +4 -0
  217. package/app/api-destined-function/node_modules/uuid/dist/esm-browser/validate.js +7 -0
  218. package/app/api-destined-function/node_modules/uuid/dist/esm-browser/version.js +11 -0
  219. package/app/api-destined-function/node_modules/uuid/dist/esm-node/index.js +9 -0
  220. package/app/api-destined-function/node_modules/uuid/dist/esm-node/md5.js +13 -0
  221. package/app/api-destined-function/node_modules/uuid/dist/esm-node/nil.js +1 -0
  222. package/app/api-destined-function/node_modules/uuid/dist/esm-node/parse.js +35 -0
  223. package/app/api-destined-function/node_modules/uuid/dist/esm-node/regex.js +1 -0
  224. package/app/api-destined-function/node_modules/uuid/dist/esm-node/rng.js +12 -0
  225. package/app/api-destined-function/node_modules/uuid/dist/esm-node/sha1.js +13 -0
  226. package/app/api-destined-function/node_modules/uuid/dist/esm-node/stringify.js +29 -0
  227. package/app/api-destined-function/node_modules/uuid/dist/esm-node/v1.js +95 -0
  228. package/app/api-destined-function/node_modules/uuid/dist/esm-node/v3.js +4 -0
  229. package/app/api-destined-function/node_modules/uuid/dist/esm-node/v35.js +64 -0
  230. package/app/api-destined-function/node_modules/uuid/dist/esm-node/v4.js +24 -0
  231. package/app/api-destined-function/node_modules/uuid/dist/esm-node/v5.js +4 -0
  232. package/app/api-destined-function/node_modules/uuid/dist/esm-node/validate.js +7 -0
  233. package/app/api-destined-function/node_modules/uuid/dist/esm-node/version.js +11 -0
  234. package/app/api-destined-function/node_modules/uuid/dist/index.js +79 -0
  235. package/app/api-destined-function/node_modules/uuid/dist/md5-browser.js +223 -0
  236. package/app/api-destined-function/node_modules/uuid/dist/md5.js +23 -0
  237. package/app/api-destined-function/node_modules/uuid/dist/nil.js +8 -0
  238. package/app/api-destined-function/node_modules/uuid/dist/parse.js +45 -0
  239. package/app/api-destined-function/node_modules/uuid/dist/regex.js +8 -0
  240. package/app/api-destined-function/node_modules/uuid/dist/rng-browser.js +26 -0
  241. package/app/api-destined-function/node_modules/uuid/dist/rng.js +24 -0
  242. package/app/api-destined-function/node_modules/uuid/dist/sha1-browser.js +104 -0
  243. package/app/api-destined-function/node_modules/uuid/dist/sha1.js +23 -0
  244. package/app/api-destined-function/node_modules/uuid/dist/stringify.js +39 -0
  245. package/app/api-destined-function/node_modules/uuid/dist/umd/uuid.min.js +1 -0
  246. package/app/api-destined-function/node_modules/uuid/dist/umd/uuidNIL.min.js +1 -0
  247. package/app/api-destined-function/node_modules/uuid/dist/umd/uuidParse.min.js +1 -0
  248. package/app/api-destined-function/node_modules/uuid/dist/umd/uuidStringify.min.js +1 -0
  249. package/app/api-destined-function/node_modules/uuid/dist/umd/uuidValidate.min.js +1 -0
  250. package/app/api-destined-function/node_modules/uuid/dist/umd/uuidVersion.min.js +1 -0
  251. package/app/api-destined-function/node_modules/uuid/dist/umd/uuidv1.min.js +1 -0
  252. package/app/api-destined-function/node_modules/uuid/dist/umd/uuidv3.min.js +1 -0
  253. package/app/api-destined-function/node_modules/uuid/dist/umd/uuidv4.min.js +1 -0
  254. package/app/api-destined-function/node_modules/uuid/dist/umd/uuidv5.min.js +1 -0
  255. package/app/api-destined-function/node_modules/uuid/dist/uuid-bin.js +85 -0
  256. package/app/api-destined-function/node_modules/uuid/dist/v1.js +107 -0
  257. package/app/api-destined-function/node_modules/uuid/dist/v3.js +16 -0
  258. package/app/api-destined-function/node_modules/uuid/dist/v35.js +78 -0
  259. package/app/api-destined-function/node_modules/uuid/dist/v4.js +37 -0
  260. package/app/api-destined-function/node_modules/uuid/dist/v5.js +16 -0
  261. package/app/api-destined-function/node_modules/uuid/dist/validate.js +17 -0
  262. package/app/api-destined-function/node_modules/uuid/dist/version.js +21 -0
  263. package/app/api-destined-function/node_modules/uuid/package.json +135 -0
  264. package/app/api-destined-function/node_modules/uuid/wrapper.mjs +10 -0
  265. package/app/api-destined-function/node_modules/wrappy/LICENSE +15 -0
  266. package/app/api-destined-function/node_modules/wrappy/README.md +36 -0
  267. package/app/api-destined-function/node_modules/wrappy/package.json +29 -0
  268. package/app/api-destined-function/node_modules/wrappy/wrappy.js +33 -0
  269. package/app/api-destined-function/package.json +30 -0
  270. package/app/api-destined-function/src/lib/lambda.ts +31 -0
  271. package/dist/app/api-destined-function/layers/nodejs/node_modules/.bin/uuid +2 -0
  272. package/dist/app/api-destined-function/layers/nodejs/node_modules/.yarn-integrity +109 -0
  273. package/dist/app/api-destined-function/layers/nodejs/node_modules/@types/uuid/LICENSE +21 -0
  274. package/dist/app/api-destined-function/layers/nodejs/node_modules/@types/uuid/README.md +16 -0
  275. package/dist/app/api-destined-function/layers/nodejs/node_modules/@types/uuid/index.d.mts +10 -0
  276. package/dist/app/api-destined-function/layers/nodejs/node_modules/@types/uuid/index.d.ts +80 -0
  277. package/dist/app/api-destined-function/layers/nodejs/node_modules/@types/uuid/package.json +54 -0
  278. package/dist/app/api-destined-function/layers/nodejs/node_modules/uuid/LICENSE.md +9 -0
  279. package/dist/app/api-destined-function/layers/nodejs/node_modules/uuid/README.md +505 -0
  280. package/dist/app/api-destined-function/layers/nodejs/node_modules/uuid/dist/bin/uuid +2 -0
  281. package/dist/app/api-destined-function/layers/nodejs/node_modules/uuid/dist/esm-browser/index.js +9 -0
  282. package/dist/app/api-destined-function/layers/nodejs/node_modules/uuid/dist/esm-browser/md5.js +215 -0
  283. package/dist/app/api-destined-function/layers/nodejs/node_modules/uuid/dist/esm-browser/nil.js +1 -0
  284. package/dist/app/api-destined-function/layers/nodejs/node_modules/uuid/dist/esm-browser/parse.js +35 -0
  285. package/dist/app/api-destined-function/layers/nodejs/node_modules/uuid/dist/esm-browser/regex.js +1 -0
  286. package/dist/app/api-destined-function/layers/nodejs/node_modules/uuid/dist/esm-browser/rng.js +19 -0
  287. package/dist/app/api-destined-function/layers/nodejs/node_modules/uuid/dist/esm-browser/sha1.js +96 -0
  288. package/dist/app/api-destined-function/layers/nodejs/node_modules/uuid/dist/esm-browser/stringify.js +30 -0
  289. package/dist/app/api-destined-function/layers/nodejs/node_modules/uuid/dist/esm-browser/v1.js +95 -0
  290. package/dist/app/api-destined-function/layers/nodejs/node_modules/uuid/dist/esm-browser/v3.js +4 -0
  291. package/dist/app/api-destined-function/layers/nodejs/node_modules/uuid/dist/esm-browser/v35.js +64 -0
  292. package/dist/app/api-destined-function/layers/nodejs/node_modules/uuid/dist/esm-browser/v4.js +24 -0
  293. package/dist/app/api-destined-function/layers/nodejs/node_modules/uuid/dist/esm-browser/v5.js +4 -0
  294. package/dist/app/api-destined-function/layers/nodejs/node_modules/uuid/dist/esm-browser/validate.js +7 -0
  295. package/dist/app/api-destined-function/layers/nodejs/node_modules/uuid/dist/esm-browser/version.js +11 -0
  296. package/dist/app/api-destined-function/layers/nodejs/node_modules/uuid/dist/esm-node/index.js +9 -0
  297. package/dist/app/api-destined-function/layers/nodejs/node_modules/uuid/dist/esm-node/md5.js +13 -0
  298. package/dist/app/api-destined-function/layers/nodejs/node_modules/uuid/dist/esm-node/nil.js +1 -0
  299. package/dist/app/api-destined-function/layers/nodejs/node_modules/uuid/dist/esm-node/parse.js +35 -0
  300. package/dist/app/api-destined-function/layers/nodejs/node_modules/uuid/dist/esm-node/regex.js +1 -0
  301. package/dist/app/api-destined-function/layers/nodejs/node_modules/uuid/dist/esm-node/rng.js +12 -0
  302. package/dist/app/api-destined-function/layers/nodejs/node_modules/uuid/dist/esm-node/sha1.js +13 -0
  303. package/dist/app/api-destined-function/layers/nodejs/node_modules/uuid/dist/esm-node/stringify.js +29 -0
  304. package/dist/app/api-destined-function/layers/nodejs/node_modules/uuid/dist/esm-node/v1.js +95 -0
  305. package/dist/app/api-destined-function/layers/nodejs/node_modules/uuid/dist/esm-node/v3.js +4 -0
  306. package/dist/app/api-destined-function/layers/nodejs/node_modules/uuid/dist/esm-node/v35.js +64 -0
  307. package/dist/app/api-destined-function/layers/nodejs/node_modules/uuid/dist/esm-node/v4.js +24 -0
  308. package/dist/app/api-destined-function/layers/nodejs/node_modules/uuid/dist/esm-node/v5.js +4 -0
  309. package/dist/app/api-destined-function/layers/nodejs/node_modules/uuid/dist/esm-node/validate.js +7 -0
  310. package/dist/app/api-destined-function/layers/nodejs/node_modules/uuid/dist/esm-node/version.js +11 -0
  311. package/dist/app/api-destined-function/layers/nodejs/node_modules/uuid/dist/index.js +79 -0
  312. package/dist/app/api-destined-function/layers/nodejs/node_modules/uuid/dist/md5-browser.js +223 -0
  313. package/dist/app/api-destined-function/layers/nodejs/node_modules/uuid/dist/md5.js +23 -0
  314. package/dist/app/api-destined-function/layers/nodejs/node_modules/uuid/dist/nil.js +8 -0
  315. package/dist/app/api-destined-function/layers/nodejs/node_modules/uuid/dist/parse.js +45 -0
  316. package/dist/app/api-destined-function/layers/nodejs/node_modules/uuid/dist/regex.js +8 -0
  317. package/dist/app/api-destined-function/layers/nodejs/node_modules/uuid/dist/rng-browser.js +26 -0
  318. package/dist/app/api-destined-function/layers/nodejs/node_modules/uuid/dist/rng.js +24 -0
  319. package/dist/app/api-destined-function/layers/nodejs/node_modules/uuid/dist/sha1-browser.js +104 -0
  320. package/dist/app/api-destined-function/layers/nodejs/node_modules/uuid/dist/sha1.js +23 -0
  321. package/dist/app/api-destined-function/layers/nodejs/node_modules/uuid/dist/stringify.js +39 -0
  322. package/dist/app/api-destined-function/layers/nodejs/node_modules/uuid/dist/umd/uuid.min.js +1 -0
  323. package/dist/app/api-destined-function/layers/nodejs/node_modules/uuid/dist/umd/uuidNIL.min.js +1 -0
  324. package/dist/app/api-destined-function/layers/nodejs/node_modules/uuid/dist/umd/uuidParse.min.js +1 -0
  325. package/dist/app/api-destined-function/layers/nodejs/node_modules/uuid/dist/umd/uuidStringify.min.js +1 -0
  326. package/dist/app/api-destined-function/layers/nodejs/node_modules/uuid/dist/umd/uuidValidate.min.js +1 -0
  327. package/dist/app/api-destined-function/layers/nodejs/node_modules/uuid/dist/umd/uuidVersion.min.js +1 -0
  328. package/dist/app/api-destined-function/layers/nodejs/node_modules/uuid/dist/umd/uuidv1.min.js +1 -0
  329. package/dist/app/api-destined-function/layers/nodejs/node_modules/uuid/dist/umd/uuidv3.min.js +1 -0
  330. package/dist/app/api-destined-function/layers/nodejs/node_modules/uuid/dist/umd/uuidv4.min.js +1 -0
  331. package/dist/app/api-destined-function/layers/nodejs/node_modules/uuid/dist/umd/uuidv5.min.js +1 -0
  332. package/dist/app/api-destined-function/layers/nodejs/node_modules/uuid/dist/uuid-bin.js +85 -0
  333. package/dist/app/api-destined-function/layers/nodejs/node_modules/uuid/dist/v1.js +107 -0
  334. package/dist/app/api-destined-function/layers/nodejs/node_modules/uuid/dist/v3.js +16 -0
  335. package/dist/app/api-destined-function/layers/nodejs/node_modules/uuid/dist/v35.js +78 -0
  336. package/dist/app/api-destined-function/layers/nodejs/node_modules/uuid/dist/v4.js +37 -0
  337. package/dist/app/api-destined-function/layers/nodejs/node_modules/uuid/dist/v5.js +16 -0
  338. package/dist/app/api-destined-function/layers/nodejs/node_modules/uuid/dist/validate.js +17 -0
  339. package/dist/app/api-destined-function/layers/nodejs/node_modules/uuid/dist/version.js +21 -0
  340. package/dist/app/api-destined-function/layers/nodejs/node_modules/uuid/package.json +135 -0
  341. package/dist/app/api-destined-function/layers/nodejs/node_modules/uuid/wrapper.mjs +10 -0
  342. package/dist/app/api-destined-function/layers/nodejs/package.json +30 -0
  343. package/dist/app/api-destined-function/src/lib/lambda.d.ts +19 -0
  344. package/dist/app/api-destined-function/src/lib/lambda.d.ts.map +1 -0
  345. package/dist/app/api-destined-function/src/lib/lambda.js +34 -0
  346. package/dist/app/api-destined-function/src/lib/lambda.js.map +1 -0
  347. package/dist/src/lib/common/{commonConstruct.d.ts → construct.d.ts} +4 -14
  348. package/dist/src/lib/common/construct.d.ts.map +1 -0
  349. package/dist/src/lib/common/{commonConstruct.js → construct.js} +4 -14
  350. package/dist/src/lib/common/construct.js.map +1 -0
  351. package/dist/src/lib/common/index.d.ts +2 -2
  352. package/dist/src/lib/common/index.d.ts.map +1 -1
  353. package/dist/src/lib/common/index.js +2 -2
  354. package/dist/src/lib/common/index.js.map +1 -1
  355. package/dist/src/lib/common/{commonStack.d.ts → stack.d.ts} +5 -15
  356. package/dist/src/lib/common/stack.d.ts.map +1 -0
  357. package/dist/src/lib/common/{commonStack.js → stack.js} +6 -16
  358. package/dist/src/lib/common/stack.js.map +1 -0
  359. package/dist/src/lib/construct/api-to-eventbridge-target/api-destination-event.d.ts +17 -0
  360. package/dist/src/lib/construct/api-to-eventbridge-target/api-destination-event.d.ts.map +1 -0
  361. package/dist/src/lib/construct/api-to-eventbridge-target/api-destination-event.js +18 -0
  362. package/dist/src/lib/construct/api-to-eventbridge-target/api-destination-event.js.map +1 -0
  363. package/dist/src/lib/construct/api-to-eventbridge-target/api-destined-lambda.d.ts +20 -0
  364. package/dist/src/lib/construct/api-to-eventbridge-target/api-destined-lambda.d.ts.map +1 -0
  365. package/dist/src/lib/construct/api-to-eventbridge-target/api-destined-lambda.js +20 -0
  366. package/dist/src/lib/construct/api-to-eventbridge-target/api-destined-lambda.js.map +1 -0
  367. package/dist/src/lib/construct/api-to-eventbridge-target/api-destined-rest-api.d.ts +36 -0
  368. package/dist/src/lib/construct/api-to-eventbridge-target/api-destined-rest-api.d.ts.map +1 -0
  369. package/dist/src/lib/construct/api-to-eventbridge-target/api-destined-rest-api.js +30 -0
  370. package/dist/src/lib/construct/api-to-eventbridge-target/api-destined-rest-api.js.map +1 -0
  371. package/dist/src/lib/construct/api-to-eventbridge-target/index.d.ts +5 -0
  372. package/dist/src/lib/construct/api-to-eventbridge-target/index.d.ts.map +1 -0
  373. package/dist/src/lib/construct/api-to-eventbridge-target/index.js +17 -0
  374. package/dist/src/lib/construct/api-to-eventbridge-target/index.js.map +1 -0
  375. package/dist/src/lib/construct/api-to-eventbridge-target/main.d.ts +135 -0
  376. package/dist/src/lib/construct/api-to-eventbridge-target/main.d.ts.map +1 -0
  377. package/dist/src/lib/construct/api-to-eventbridge-target/main.js +488 -0
  378. package/dist/src/lib/construct/api-to-eventbridge-target/main.js.map +1 -0
  379. package/dist/src/lib/construct/graphql-api-lambda/index.d.ts +2 -0
  380. package/dist/src/lib/construct/graphql-api-lambda/index.d.ts.map +1 -0
  381. package/dist/src/lib/construct/graphql-api-lambda/index.js +14 -0
  382. package/dist/src/lib/construct/graphql-api-lambda/index.js.map +1 -0
  383. package/dist/src/lib/construct/{graphQLApiLambda.d.ts → graphql-api-lambda/main.d.ts} +14 -23
  384. package/dist/src/lib/construct/graphql-api-lambda/main.d.ts.map +1 -0
  385. package/dist/src/lib/construct/{graphQLApiLambda.js → graphql-api-lambda/main.js} +16 -25
  386. package/dist/src/lib/construct/graphql-api-lambda/main.js.map +1 -0
  387. package/dist/src/lib/construct/index.d.ts +4 -3
  388. package/dist/src/lib/construct/index.d.ts.map +1 -1
  389. package/dist/src/lib/construct/index.js +4 -3
  390. package/dist/src/lib/construct/index.js.map +1 -1
  391. package/dist/src/lib/construct/site-with-ecs-backend/index.d.ts +2 -0
  392. package/dist/src/lib/construct/site-with-ecs-backend/index.d.ts.map +1 -0
  393. package/dist/src/lib/construct/site-with-ecs-backend/index.js +14 -0
  394. package/dist/src/lib/construct/site-with-ecs-backend/index.js.map +1 -0
  395. package/dist/src/lib/construct/{siteWithEcsBackend.d.ts → site-with-ecs-backend/main.d.ts} +7 -18
  396. package/dist/src/lib/construct/site-with-ecs-backend/main.d.ts.map +1 -0
  397. package/dist/src/lib/construct/{siteWithEcsBackend.js → site-with-ecs-backend/main.js} +6 -17
  398. package/dist/src/lib/construct/site-with-ecs-backend/main.js.map +1 -0
  399. package/dist/src/lib/construct/static-site/index.d.ts +2 -0
  400. package/dist/src/lib/construct/static-site/index.d.ts.map +1 -0
  401. package/dist/src/lib/construct/static-site/index.js +14 -0
  402. package/dist/src/lib/construct/static-site/index.js.map +1 -0
  403. package/dist/src/lib/construct/{staticSite.d.ts → static-site/main.d.ts} +6 -17
  404. package/dist/src/lib/construct/static-site/main.d.ts.map +1 -0
  405. package/dist/src/lib/construct/{staticSite.js → static-site/main.js} +6 -17
  406. package/dist/src/lib/construct/static-site/main.js.map +1 -0
  407. package/dist/src/lib/manager/aws/{acmManager.d.ts → acm-manager.d.ts} +4 -3
  408. package/dist/src/lib/manager/aws/acm-manager.d.ts.map +1 -0
  409. package/dist/src/lib/manager/aws/{acmManager.js → acm-manager.js} +4 -3
  410. package/dist/src/lib/manager/aws/acm-manager.js.map +1 -0
  411. package/dist/src/lib/manager/aws/{apiManager.d.ts → api-manager.d.ts} +7 -6
  412. package/dist/src/lib/manager/aws/api-manager.d.ts.map +1 -0
  413. package/dist/src/lib/manager/aws/{apiManager.js → api-manager.js} +7 -6
  414. package/dist/src/lib/manager/aws/api-manager.js.map +1 -0
  415. package/dist/src/lib/manager/aws/{appConfigManager.d.ts → app-config-manager.d.ts} +6 -4
  416. package/dist/src/lib/manager/aws/app-config-manager.d.ts.map +1 -0
  417. package/dist/src/lib/manager/aws/{appConfigManager.js → app-config-manager.js} +6 -4
  418. package/dist/src/lib/manager/aws/app-config-manager.js.map +1 -0
  419. package/dist/src/lib/manager/aws/{cloudFrontManager.d.ts → cloudfront-manager.d.ts} +4 -3
  420. package/dist/src/lib/manager/aws/cloudfront-manager.d.ts.map +1 -0
  421. package/dist/src/lib/manager/aws/{cloudFrontManager.js → cloudfront-manager.js} +4 -3
  422. package/dist/src/lib/manager/aws/cloudfront-manager.js.map +1 -0
  423. package/dist/src/lib/manager/aws/{cloudTrailManager.d.ts → cloudtrail-manager.d.ts} +4 -3
  424. package/dist/src/lib/manager/aws/cloudtrail-manager.d.ts.map +1 -0
  425. package/dist/src/lib/manager/aws/{cloudTrailManager.js → cloudtrail-manager.js} +4 -3
  426. package/dist/src/lib/manager/aws/cloudtrail-manager.js.map +1 -0
  427. package/dist/src/lib/manager/aws/{cloudWatchManager.d.ts → cloudwatch-manager.d.ts} +4 -3
  428. package/dist/src/lib/manager/aws/cloudwatch-manager.d.ts.map +1 -0
  429. package/dist/src/lib/manager/aws/{cloudWatchManager.js → cloudwatch-manager.js} +6 -4
  430. package/dist/src/lib/manager/aws/cloudwatch-manager.js.map +1 -0
  431. package/dist/src/lib/manager/aws/{codeBuildManager.d.ts → codebuild-manager.d.ts} +4 -3
  432. package/dist/src/lib/manager/aws/codebuild-manager.d.ts.map +1 -0
  433. package/dist/src/lib/manager/aws/{codeBuildManager.js → codebuild-manager.js} +4 -3
  434. package/dist/src/lib/manager/aws/codebuild-manager.js.map +1 -0
  435. package/dist/src/lib/manager/aws/{dynamodbManager.d.ts → dynamodb-manager.d.ts} +4 -3
  436. package/dist/src/lib/manager/aws/dynamodb-manager.d.ts.map +1 -0
  437. package/dist/src/lib/manager/aws/{dynamodbManager.js → dynamodb-manager.js} +4 -3
  438. package/dist/src/lib/manager/aws/dynamodb-manager.js.map +1 -0
  439. package/dist/src/lib/manager/aws/{ecrManager.d.ts → ecr-manager.d.ts} +4 -3
  440. package/dist/src/lib/manager/aws/ecr-manager.d.ts.map +1 -0
  441. package/dist/src/lib/manager/aws/{ecrManager.js → ecr-manager.js} +4 -3
  442. package/dist/src/lib/manager/aws/ecr-manager.js.map +1 -0
  443. package/dist/src/lib/manager/aws/{ecsManager.d.ts → ecs-manager.d.ts} +4 -3
  444. package/dist/src/lib/manager/aws/ecs-manager.d.ts.map +1 -0
  445. package/dist/src/lib/manager/aws/{ecsManager.js → ecs-manager.js} +4 -3
  446. package/dist/src/lib/manager/aws/ecs-manager.js.map +1 -0
  447. package/dist/src/lib/manager/aws/{eksManager.d.ts → eks-manager.d.ts} +4 -3
  448. package/dist/src/lib/manager/aws/eks-manager.d.ts.map +1 -0
  449. package/dist/src/lib/manager/aws/{eksManager.js → eks-manager.js} +4 -3
  450. package/dist/src/lib/manager/aws/eks-manager.js.map +1 -0
  451. package/dist/src/lib/manager/aws/{eventManager.d.ts → event-manager.d.ts} +20 -3
  452. package/dist/src/lib/manager/aws/event-manager.d.ts.map +1 -0
  453. package/dist/src/lib/manager/aws/{eventManager.js → event-manager.js} +46 -3
  454. package/dist/src/lib/manager/aws/event-manager.js.map +1 -0
  455. package/dist/src/lib/manager/aws/{iamManager.d.ts → iam-manager.d.ts} +14 -15
  456. package/dist/src/lib/manager/aws/iam-manager.d.ts.map +1 -0
  457. package/dist/src/lib/manager/aws/{iamManager.js → iam-manager.js} +23 -18
  458. package/dist/src/lib/manager/aws/iam-manager.js.map +1 -0
  459. package/dist/src/lib/manager/aws/index.d.ts +22 -22
  460. package/dist/src/lib/manager/aws/index.d.ts.map +1 -1
  461. package/dist/src/lib/manager/aws/index.js +22 -22
  462. package/dist/src/lib/manager/aws/index.js.map +1 -1
  463. package/dist/src/lib/manager/aws/{lambdaManager.d.ts → lambda-manager.d.ts} +30 -28
  464. package/dist/src/lib/manager/aws/lambda-manager.d.ts.map +1 -0
  465. package/dist/src/lib/manager/aws/{lambdaManager.js → lambda-manager.js} +46 -39
  466. package/dist/src/lib/manager/aws/lambda-manager.js.map +1 -0
  467. package/dist/src/lib/manager/aws/{logManager.d.ts → log-manager.d.ts} +4 -3
  468. package/dist/src/lib/manager/aws/log-manager.d.ts.map +1 -0
  469. package/dist/src/lib/manager/aws/{logManager.js → log-manager.js} +4 -3
  470. package/dist/src/lib/manager/aws/log-manager.js.map +1 -0
  471. package/dist/src/lib/manager/aws/{route53Manager.d.ts → route53-manager.d.ts} +5 -4
  472. package/dist/src/lib/manager/aws/route53-manager.d.ts.map +1 -0
  473. package/dist/src/lib/manager/aws/{route53Manager.js → route53-manager.js} +5 -4
  474. package/dist/src/lib/manager/aws/route53-manager.js.map +1 -0
  475. package/dist/src/lib/manager/aws/{s3Manager.d.ts → s3-manager.d.ts} +4 -3
  476. package/dist/src/lib/manager/aws/s3-manager.d.ts.map +1 -0
  477. package/dist/src/lib/manager/aws/{s3Manager.js → s3-manager.js} +4 -3
  478. package/dist/src/lib/manager/aws/s3-manager.js.map +1 -0
  479. package/dist/src/lib/manager/aws/{secretsManager.d.ts → secrets-manager.d.ts} +4 -3
  480. package/dist/src/lib/manager/aws/secrets-manager.d.ts.map +1 -0
  481. package/dist/src/lib/manager/aws/{secretsManager.js → secrets-manager.js} +4 -3
  482. package/dist/src/lib/manager/aws/secrets-manager.js.map +1 -0
  483. package/dist/src/lib/manager/aws/{snsManager.d.ts → sns-manager.d.ts} +4 -3
  484. package/dist/src/lib/manager/aws/sns-manager.d.ts.map +1 -0
  485. package/dist/src/lib/manager/aws/{snsManager.js → sns-manager.js} +4 -3
  486. package/dist/src/lib/manager/aws/sns-manager.js.map +1 -0
  487. package/dist/src/lib/manager/aws/{ssmManager.d.ts → ssm-manager.d.ts} +7 -10
  488. package/dist/src/lib/manager/aws/ssm-manager.d.ts.map +1 -0
  489. package/dist/src/lib/manager/aws/{ssmManager.js → ssm-manager.js} +7 -10
  490. package/dist/src/lib/manager/aws/ssm-manager.js.map +1 -0
  491. package/dist/src/lib/manager/aws/{vpcManager.d.ts → vpc-manager.d.ts} +6 -4
  492. package/dist/src/lib/manager/aws/vpc-manager.d.ts.map +1 -0
  493. package/dist/src/lib/manager/aws/{vpcManager.js → vpc-manager.js} +9 -6
  494. package/dist/src/lib/manager/aws/vpc-manager.js.map +1 -0
  495. package/dist/src/lib/manager/aws/{wafManager.d.ts → waf-manager.d.ts} +4 -3
  496. package/dist/src/lib/manager/aws/waf-manager.d.ts.map +1 -0
  497. package/dist/src/lib/manager/aws/{wafManager.js → waf-manager.js} +4 -3
  498. package/dist/src/lib/manager/aws/waf-manager.js.map +1 -0
  499. package/dist/src/lib/types/aws/index.d.ts +218 -32
  500. package/dist/src/lib/types/aws/index.d.ts.map +1 -1
  501. package/dist/src/lib/utils/aws/index.d.ts +2 -2
  502. package/dist/src/lib/utils/aws/index.d.ts.map +1 -1
  503. package/dist/src/lib/utils/aws/index.js +1 -1
  504. package/dist/src/lib/utils/index.d.ts +7 -7
  505. package/dist/src/lib/utils/index.js +8 -8
  506. package/img/ApiToEventBridgeTarget.jpg +0 -0
  507. package/img/GraphQLApiLambda.jpg +0 -0
  508. package/img/logo.png +0 -0
  509. package/package.json +17 -18
  510. package/src/lib/common/{commonConstruct.ts → construct.ts} +3 -13
  511. package/src/lib/common/index.ts +2 -2
  512. package/src/lib/common/{commonStack.ts → stack.ts} +5 -14
  513. package/src/lib/construct/api-to-eventbridge-target/api-destination-event.ts +17 -0
  514. package/src/lib/construct/api-to-eventbridge-target/api-destined-lambda.ts +20 -0
  515. package/src/lib/construct/api-to-eventbridge-target/api-destined-rest-api.ts +32 -0
  516. package/src/lib/construct/api-to-eventbridge-target/index.ts +4 -0
  517. package/src/lib/construct/api-to-eventbridge-target/main.ts +593 -0
  518. package/src/lib/construct/graphql-api-lambda/index.ts +1 -0
  519. package/src/lib/construct/{graphQLApiLambda.ts → graphql-api-lambda/main.ts} +15 -24
  520. package/src/lib/construct/index.ts +4 -3
  521. package/src/lib/construct/site-with-ecs-backend/index.ts +1 -0
  522. package/src/lib/construct/{siteWithEcsBackend.ts → site-with-ecs-backend/main.ts} +6 -17
  523. package/src/lib/construct/static-site/index.ts +1 -0
  524. package/src/lib/construct/{staticSite.ts → static-site/main.ts} +5 -16
  525. package/src/lib/manager/aws/{acmManager.ts → acm-manager.ts} +3 -2
  526. package/src/lib/manager/aws/{apiManager.ts → api-manager.ts} +6 -5
  527. package/src/lib/manager/aws/{appConfigManager.ts → app-config-manager.ts} +5 -3
  528. package/src/lib/manager/aws/{cloudFrontManager.ts → cloudfront-manager.ts} +3 -2
  529. package/src/lib/manager/aws/{cloudTrailManager.ts → cloudtrail-manager.ts} +3 -2
  530. package/src/lib/manager/aws/{cloudWatchManager.ts → cloudwatch-manager.ts} +5 -3
  531. package/src/lib/manager/aws/{codeBuildManager.ts → codebuild-manager.ts} +3 -2
  532. package/src/lib/manager/aws/{dynamodbManager.ts → dynamodb-manager.ts} +3 -2
  533. package/src/lib/manager/aws/{ecrManager.ts → ecr-manager.ts} +3 -2
  534. package/src/lib/manager/aws/{ecsManager.ts → ecs-manager.ts} +3 -2
  535. package/src/lib/manager/aws/{eksManager.ts → eks-manager.ts} +3 -2
  536. package/src/lib/manager/aws/{eventManager.ts → event-manager.ts} +57 -2
  537. package/src/lib/manager/aws/{iamManager.ts → iam-manager.ts} +23 -17
  538. package/src/lib/manager/aws/index.ts +22 -22
  539. package/src/lib/manager/aws/{lambdaManager.ts → lambda-manager.ts} +52 -44
  540. package/src/lib/manager/aws/{logManager.ts → log-manager.ts} +3 -2
  541. package/src/lib/manager/aws/{route53Manager.ts → route53-manager.ts} +4 -3
  542. package/src/lib/manager/aws/{s3Manager.ts → s3-manager.ts} +3 -2
  543. package/src/lib/manager/aws/{secretsManager.ts → secrets-manager.ts} +3 -2
  544. package/src/lib/manager/aws/{snsManager.ts → sns-manager.ts} +3 -2
  545. package/src/lib/manager/aws/{ssmManager.ts → ssm-manager.ts} +6 -9
  546. package/src/lib/manager/aws/{vpcManager.ts → vpc-manager.ts} +8 -5
  547. package/src/lib/manager/aws/{wafManager.ts → waf-manager.ts} +3 -2
  548. package/src/lib/types/aws/index.ts +221 -32
  549. package/src/lib/utils/aws/index.ts +2 -2
  550. package/src/lib/utils/index.ts +8 -8
  551. package/theme/styles.css +113 -0
  552. package/.releaserc +0 -9
  553. package/dist/src/lib/common/commonConstruct.d.ts.map +0 -1
  554. package/dist/src/lib/common/commonConstruct.js.map +0 -1
  555. package/dist/src/lib/common/commonStack.d.ts.map +0 -1
  556. package/dist/src/lib/common/commonStack.js.map +0 -1
  557. package/dist/src/lib/construct/graphQLApiLambda.d.ts.map +0 -1
  558. package/dist/src/lib/construct/graphQLApiLambda.js.map +0 -1
  559. package/dist/src/lib/construct/siteWithEcsBackend.d.ts.map +0 -1
  560. package/dist/src/lib/construct/siteWithEcsBackend.js.map +0 -1
  561. package/dist/src/lib/construct/staticSite.d.ts.map +0 -1
  562. package/dist/src/lib/construct/staticSite.js.map +0 -1
  563. package/dist/src/lib/manager/aws/acmManager.d.ts.map +0 -1
  564. package/dist/src/lib/manager/aws/acmManager.js.map +0 -1
  565. package/dist/src/lib/manager/aws/apiManager.d.ts.map +0 -1
  566. package/dist/src/lib/manager/aws/apiManager.js.map +0 -1
  567. package/dist/src/lib/manager/aws/appConfigManager.d.ts.map +0 -1
  568. package/dist/src/lib/manager/aws/appConfigManager.js.map +0 -1
  569. package/dist/src/lib/manager/aws/cloudFrontManager.d.ts.map +0 -1
  570. package/dist/src/lib/manager/aws/cloudFrontManager.js.map +0 -1
  571. package/dist/src/lib/manager/aws/cloudTrailManager.d.ts.map +0 -1
  572. package/dist/src/lib/manager/aws/cloudTrailManager.js.map +0 -1
  573. package/dist/src/lib/manager/aws/cloudWatchManager.d.ts.map +0 -1
  574. package/dist/src/lib/manager/aws/cloudWatchManager.js.map +0 -1
  575. package/dist/src/lib/manager/aws/codeBuildManager.d.ts.map +0 -1
  576. package/dist/src/lib/manager/aws/codeBuildManager.js.map +0 -1
  577. package/dist/src/lib/manager/aws/dynamodbManager.d.ts.map +0 -1
  578. package/dist/src/lib/manager/aws/dynamodbManager.js.map +0 -1
  579. package/dist/src/lib/manager/aws/ecrManager.d.ts.map +0 -1
  580. package/dist/src/lib/manager/aws/ecrManager.js.map +0 -1
  581. package/dist/src/lib/manager/aws/ecsManager.d.ts.map +0 -1
  582. package/dist/src/lib/manager/aws/ecsManager.js.map +0 -1
  583. package/dist/src/lib/manager/aws/eksManager.d.ts.map +0 -1
  584. package/dist/src/lib/manager/aws/eksManager.js.map +0 -1
  585. package/dist/src/lib/manager/aws/eventManager.d.ts.map +0 -1
  586. package/dist/src/lib/manager/aws/eventManager.js.map +0 -1
  587. package/dist/src/lib/manager/aws/iamManager.d.ts.map +0 -1
  588. package/dist/src/lib/manager/aws/iamManager.js.map +0 -1
  589. package/dist/src/lib/manager/aws/lambdaManager.d.ts.map +0 -1
  590. package/dist/src/lib/manager/aws/lambdaManager.js.map +0 -1
  591. package/dist/src/lib/manager/aws/logManager.d.ts.map +0 -1
  592. package/dist/src/lib/manager/aws/logManager.js.map +0 -1
  593. package/dist/src/lib/manager/aws/route53Manager.d.ts.map +0 -1
  594. package/dist/src/lib/manager/aws/route53Manager.js.map +0 -1
  595. package/dist/src/lib/manager/aws/s3Manager.d.ts.map +0 -1
  596. package/dist/src/lib/manager/aws/s3Manager.js.map +0 -1
  597. package/dist/src/lib/manager/aws/secretsManager.d.ts.map +0 -1
  598. package/dist/src/lib/manager/aws/secretsManager.js.map +0 -1
  599. package/dist/src/lib/manager/aws/snsManager.d.ts.map +0 -1
  600. package/dist/src/lib/manager/aws/snsManager.js.map +0 -1
  601. package/dist/src/lib/manager/aws/ssmManager.d.ts.map +0 -1
  602. package/dist/src/lib/manager/aws/ssmManager.js.map +0 -1
  603. package/dist/src/lib/manager/aws/vpcManager.d.ts.map +0 -1
  604. package/dist/src/lib/manager/aws/vpcManager.js.map +0 -1
  605. package/dist/src/lib/manager/aws/wafManager.d.ts.map +0 -1
  606. package/dist/src/lib/manager/aws/wafManager.js.map +0 -1
@@ -0,0 +1,751 @@
1
+
2
+
3
+ <!DOCTYPE html>
4
+ <html lang="en">
5
+
6
+ <head>
7
+
8
+ <meta charset="utf-8">
9
+ <meta name="viewport" content="width=device-width, initial-scale=1">
10
+ <title>Gradient Edge CDK Utils construct/api-to-eventbridge-target/main.ts</title>
11
+
12
+ <script src="https://cdn.jsdelivr.net/gh/google/code-prettify@master/loader/run_prettify.js"></script>
13
+ <script src="https://unpkg.com/@babel/standalone/babel.min.js"></script>
14
+ <script src="./build/entry.js"></script>
15
+ <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script>
16
+ <!--[if lt IE 9]>
17
+ <script src="//html5shiv.googlecode.com/svn/trunk/html5.js"></script>
18
+ <![endif]-->
19
+ <link href="https://fonts.googleapis.com/css?family=Roboto:100,400,700|Inconsolata,700" rel="stylesheet">
20
+ <link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.6.3/css/all.css" integrity="sha384-UHRtZLI+pbxtHCWp1t77Bi1L4ZtiqrqD80Kn4Z8NTSRyMA2Fd33n5dQ8lWUE00s/" crossorigin="anonymous">
21
+ <link type="text/css" rel="stylesheet" href="https://jmblog.github.io/color-themes-for-google-code-prettify/themes/tomorrow-night.min.css">
22
+ <link type="text/css" rel="stylesheet" href="styles/app.min.css">
23
+ <link type="text/css" rel="stylesheet" href="styles/iframe.css">
24
+ <link type="text/css" rel="stylesheet" href="styles.css">
25
+ <script async defer src="https://buttons.github.io/buttons.js"></script>
26
+
27
+
28
+ </head>
29
+
30
+
31
+
32
+ <body class="layout small-header">
33
+ <div id="stickyNavbarOverlay"></div>
34
+
35
+
36
+ <div class="top-nav">
37
+ <div class="inner">
38
+ <a id="hamburger" role="button" class="navbar-burger" aria-label="menu" aria-expanded="false">
39
+ <span aria-hidden="true"></span>
40
+ <span aria-hidden="true"></span>
41
+ <span aria-hidden="true"></span>
42
+ </a>
43
+ <div class="logo">
44
+
45
+ <a class="image" href="index.html">
46
+ <img src="logo.png" alt="logo">
47
+ </a>
48
+
49
+
50
+ <a href="index.html">
51
+ <h1 class="navbar-item">Gradient Edge CDK Utils Documentation</h1>
52
+ </a>
53
+
54
+ </div>
55
+ <div class="menu">
56
+
57
+ <div class="navigation">
58
+ <a
59
+ href="index.html"
60
+ class="link"
61
+ >
62
+ API Documentation
63
+ </a>
64
+
65
+ <div class="dropdown is-hoverable is-right">
66
+ <a class="dropdown-trigger link">
67
+ Tutorials
68
+ <i class="fas fa-chevron-down fa-xs"></i>
69
+ </a>
70
+ <div class="dropdown-menu">
71
+ <div class="dropdown-content">
72
+
73
+ <a class="dropdown-item" href="tutorial-Architecture.html">
74
+ Architecture
75
+ </a>
76
+
77
+ <a class="dropdown-item" href="tutorial-Build.html">
78
+ Build
79
+ </a>
80
+
81
+ <a class="dropdown-item" href="tutorial-CI-CD.html">
82
+ CI-CD
83
+ </a>
84
+
85
+ <a class="dropdown-item" href="tutorial-Development.html">
86
+ Development
87
+ </a>
88
+
89
+ </div>
90
+ </div>
91
+ </div>
92
+
93
+
94
+
95
+ <a
96
+ class="link user-link "
97
+ href="https://github.com/gradientedge/cdk-utils"
98
+ >
99
+ Github
100
+ </a>
101
+
102
+
103
+
104
+ </div>
105
+ </div>
106
+ </div>
107
+ </div>
108
+ <div id="main">
109
+ <div
110
+ class="sidebar "
111
+ id="sidebarNav"
112
+ >
113
+
114
+ <div class="search-wrapper">
115
+ <input id="search" type="text" placeholder="Search docs..." class="input">
116
+ </div>
117
+
118
+ <nav>
119
+
120
+ <h2><a href="index.html">Documentation</a></h2><div class="category"></div><div class="category"><h2>cdk-utils.acm-manager</h2><h3>Classes / Construct</h3><ul><li><a href="AcmManager.html">AcmManager</a></li></ul><h3>Interfaces / Properties</h3><ul><li><a href="AcmProps.html">AcmProps</a></li></ul></div><div class="category"><h2>cdk-utils.api-manager</h2><h3>Classes / Construct</h3><ul><li><a href="ApiManager.html">ApiManager</a></li></ul></div><div class="category"><h2>cdk-utils.api-to-eventbridge-target</h2><h3>Classes / member</h3><ul><li><a href="ApiDestinationEvent.html">ApiDestinationEvent</a></li><li><a href="ApiDestinedLambda.html">ApiDestinedLambda</a></li><li><a href="ApiDestinedRestApi.html">ApiDestinedRestApi</a></li></ul><h3>Classes / construct</h3><ul><li><a href="ApiToEventBridgeTarget.html">ApiToEventBridgeTarget</a></li></ul><h3>Interfaces / Types</h3><ul><li><a href="ApiDestinationEventType.html">ApiDestinationEventType</a></li><li><a href="ApiDestinedLambdaEnvironment.html">ApiDestinedLambdaEnvironment</a></li><li><a href="ApiDestinedLambdaType.html">ApiDestinedLambdaType</a></li><li><a href="ApiDestinedRestApiType.html">ApiDestinedRestApiType</a></li></ul><h3>Interfaces / Properties</h3><ul><li><a href="ApiToEventBridgeTargetEventProps.html">ApiToEventBridgeTargetEventProps</a></li><li><a href="ApiToEventBridgeTargetLambdaProps.html">ApiToEventBridgeTargetLambdaProps</a></li><li><a href="ApiToEventBridgeTargetProps.html">ApiToEventBridgeTargetProps</a></li><li><a href="ApiToEventBridgeTargetRestApiProps.html">ApiToEventBridgeTargetRestApiProps</a></li></ul></div><div class="category"><h2>cdk-utils.app-config-manager</h2><h3>Classes / Construct</h3><ul><li><a href="AppConfigManager.html">AppConfigManager</a></li></ul><h3>Interfaces / Properties</h3><ul><li><a href="AppConfigProps.html">AppConfigProps</a></li></ul><h3>Global</h3><ul><li><a href="global.html#ArnsByRegion">ArnsByRegion</a></li></ul></div><div class="category"><h2>cdk-utils.cloudfront-manager</h2><h3>Classes / Construct</h3><ul><li><a href="CloudFrontManager.html">CloudFrontManager</a></li></ul><h3>Interfaces / Properties</h3><ul><li><a href="CloudfrontFunctionProps.html">CloudfrontFunctionProps</a></li><li><a href="CloudFrontProps.html">CloudFrontProps</a></li><li><a href="DistributionProps.html">DistributionProps</a></li></ul></div><div class="category"><h2>cdk-utils.cloudtrail-manager</h2><h3>Classes / Construct</h3><ul><li><a href="CloudTrailManager.html">CloudTrailManager</a></li></ul><h3>Interfaces / Properties</h3><ul><li><a href="CloudTrailProps.html">CloudTrailProps</a></li></ul></div><div class="category"><h2>cdk-utils.cloudwatch-manager</h2><h3>Classes / Construct</h3><ul><li><a href="CloudWatchManager.html">CloudWatchManager</a></li><li><a href="LogManager.html">LogManager</a></li></ul><h3>Interfaces / Properties</h3><ul><li><a href="AlarmProps.html">AlarmProps</a></li><li><a href="AlarmStatusWidgetProps.html">AlarmStatusWidgetProps</a></li><li><a href="DashboardProps.html">DashboardProps</a></li><li><a href="GraphWidgetProps.html">GraphWidgetProps</a></li><li><a href="LogProps.html">LogProps</a></li><li><a href="LogQueryWidgetProps.html">LogQueryWidgetProps</a></li><li><a href="MetricFilterProps.html">MetricFilterProps</a></li><li><a href="MetricProps.html">MetricProps</a></li><li><a href="NumericWidgetProps.html">NumericWidgetProps</a></li><li><a href="TextWidgetProps.html">TextWidgetProps</a></li></ul><h3>Global</h3><ul><li><a href="global.html#CloudWatchWidgetType">CloudWatchWidgetType</a></li></ul></div><div class="category"><h2>cdk-utils.codebuild-manager</h2><h3>Classes / Construct</h3><ul><li><a href="CodeBuildManager.html">CodeBuildManager</a></li></ul></div><div class="category"><h2>cdk-utils.common-construct</h2><h3>Classes / Construct</h3><ul><li><a href="CommonConstruct.html">CommonConstruct</a></li></ul></div><div class="category"><h2>cdk-utils.common-stack</h2><h3>Classes / Construct</h3><ul><li><a href="CommonStack.html">CommonStack</a></li></ul><h3>Interfaces / Properties</h3><ul><li><a href="CommonStackProps.html">CommonStackProps</a></li></ul></div><div class="category"><h2>cdk-utils.dynamodb-manager</h2><h3>Classes / Construct</h3><ul><li><a href="DynamodbManager.html">DynamodbManager</a></li></ul><h3>Interfaces / Properties</h3><ul><li><a href="TableProps.html">TableProps</a></li></ul></div><div class="category"><h2>cdk-utils.ecr-manager</h2><h3>Classes / Construct</h3><ul><li><a href="EcrManager.html">EcrManager</a></li></ul></div><div class="category"><h2>cdk-utils.ecs-manager</h2><h3>Classes / Construct</h3><ul><li><a href="EcsManager.html">EcsManager</a></li></ul><h3>Interfaces / Properties</h3><ul><li><a href="EcsClusterProps.html">EcsClusterProps</a></li><li><a href="EcsTaskProps.html">EcsTaskProps</a></li></ul></div><div class="category"><h2>cdk-utils.eks-manager</h2><h3>Classes / Construct</h3><ul><li><a href="EksManager.html">EksManager</a></li></ul><h3>Interfaces / Properties</h3><ul><li><a href="EksClusterProps.html">EksClusterProps</a></li></ul></div><div class="category"><h2>cdk-utils.event-manager</h2><h3>Classes / Construct</h3><ul><li><a href="EventManager.html">EventManager</a></li></ul><h3>Interfaces / Properties</h3><ul><li><a href="EventBusProps.html">EventBusProps</a></li><li><a href="EventRuleProps.html">EventRuleProps</a></li><li><a href="RuleProps.html">RuleProps</a></li></ul></div><div class="category"><h2>cdk-utils.graphql-api-lambda</h2><h3>Classes / construct</h3><ul><li><a href="GraphQLApiLambda.html">GraphQLApiLambda</a></li></ul><h3>Interfaces / Types</h3><ul><li><a href="GraphQlApiLambdaEnvironment.html">GraphQlApiLambdaEnvironment</a></li></ul><h3>Interfaces / Properties</h3><ul><li><a href="GraphQlApiLambdaProps.html">GraphQlApiLambdaProps</a></li></ul></div><div class="category"><h2>cdk-utils.iam-manager</h2><h3>Classes / Construct</h3><ul><li><a href="IamManager.html">IamManager</a></li></ul></div><div class="category"><h2>cdk-utils.lambda-manager</h2><h3>Classes / Construct</h3><ul><li><a href="LambdaManager.html">LambdaManager</a></li></ul><h3>Interfaces / Properties</h3><ul><li><a href="LambdaEdgeProps.html">LambdaEdgeProps</a></li><li><a href="LambdaProps.html">LambdaProps</a></li></ul><h3>Interfaces / Types</h3><ul><li><a href="LambdaEnvironment.html">LambdaEnvironment</a></li></ul></div><div class="category"><h2>cdk-utils.route53-manager</h2><h3>Classes / Construct</h3><ul><li><a href="Route53Manager.html">Route53Manager</a></li></ul><h3>Interfaces / Properties</h3><ul><li><a href="Route53Props.html">Route53Props</a></li></ul></div><div class="category"><h2>cdk-utils.s3-manager</h2><h3>Classes / Construct</h3><ul><li><a href="S3Manager.html">S3Manager</a></li></ul><h3>Interfaces / Properties</h3><ul><li><a href="LifecycleRule.html">LifecycleRule</a></li><li><a href="S3BucketProps.html">S3BucketProps</a></li></ul></div><div class="category"><h2>cdk-utils.secrets-manager</h2><h3>Classes / Construct</h3><ul><li><a href="SecretsManager.html">SecretsManager</a></li></ul></div><div class="category"><h2>cdk-utils.site-with-ecs-backend</h2><h3>Classes / construct</h3><ul><li><a href="SiteWithEcsBackend.html">SiteWithEcsBackend</a></li></ul><h3>Interfaces / Properties</h3><ul><li><a href="HealthCheck.html">HealthCheck</a></li><li><a href="SiteWithEcsBackendProps.html">SiteWithEcsBackendProps</a></li></ul></div><div class="category"><h2>cdk-utils.sns-manager</h2><h3>Classes / Construct</h3><ul><li><a href="SnsManager.html">SnsManager</a></li></ul><h3>Interfaces / Properties</h3><ul><li><a href="SubscriptionProps.html">SubscriptionProps</a></li></ul></div><div class="category"><h2>cdk-utils.ssm-manager</h2><h3>Classes / Construct</h3><ul><li><a href="SsmManager.html">SsmManager</a></li><li><a href="SSMParameterReader.html">SSMParameterReader</a></li></ul><h3>Interfaces / Properties</h3><ul><li><a href="SSMParameterReaderProps.html">SSMParameterReaderProps</a></li></ul></div><div class="category"><h2>cdk-utils.static-site</h2><h3>Classes / construct</h3><ul><li><a href="StaticSite.html">StaticSite</a></li></ul><h3>Interfaces / Properties</h3><ul><li><a href="StaticSiteProps.html">StaticSiteProps</a></li></ul></div><div class="category"><h2>cdk-utils.utils</h2><h3>Global</h3><ul><li><a href="global.html#createCfnOutput">createCfnOutput</a></li><li><a href="global.html#defaultResponseObject">defaultResponseObject</a></li><li><a href="global.html#isDevStage">isDevStage</a></li><li><a href="global.html#isPrdStage">isPrdStage</a></li><li><a href="global.html#isTestStage">isTestStage</a></li><li><a href="global.html#isUatStage">isUatStage</a></li><li><a href="global.html#LogLevel">LogLevel</a></li><li><a href="global.html#redirectError">redirectError</a></li><li><a href="global.html#redirectSuccess">redirectSuccess</a></li></ul></div><div class="category"><h2>cdk-utils.vpc-manager</h2><h3>Classes / Construct</h3><ul><li><a href="VpcManager.html">VpcManager</a></li></ul><h3>Global</h3><ul><li><a href="global.html#CommonVpcIdentifier">CommonVpcIdentifier</a></li></ul></div><div class="category"><h2>cdk-utils.waf-manager</h2><h3>Classes / Construct</h3><ul><li><a href="WafManager.html">WafManager</a></li></ul><h3>Interfaces / Properties</h3><ul><li><a href="WafIPSetProps.html">WafIPSetProps</a></li><li><a href="WafWebACLProps.html">WafWebACLProps</a></li></ul></div>
121
+
122
+ </nav>
123
+ </div>
124
+ <div class="core" id="main-content-wrapper">
125
+ <div class="content">
126
+ <header class="page-title">
127
+ <p>Source</p>
128
+ <h1>construct/api-to-eventbridge-target/main.ts</h1>
129
+ </header>
130
+
131
+
132
+
133
+
134
+
135
+ <section>
136
+ <article>
137
+ <pre class="prettyprint source linenums"><code>import * as apig from 'aws-cdk-lib/aws-apigateway'
138
+ import * as eventstargets from 'aws-cdk-lib/aws-events-targets'
139
+ import * as iam from 'aws-cdk-lib/aws-iam'
140
+ import * as lambda from 'aws-cdk-lib/aws-lambda'
141
+ import * as destinations from 'aws-cdk-lib/aws-lambda-destinations'
142
+ import * as secretsmanager from 'aws-cdk-lib/aws-secretsmanager'
143
+ import { Construct } from 'constructs'
144
+ import { CommonConstruct } from '../../common'
145
+ import * as types from '../../types'
146
+ import { ApiDestinationEvent } from './api-destination-event'
147
+ import { ApiDestinedLambda } from './api-destined-lambda'
148
+ import { ApiDestinedRestApi } from './api-destined-rest-api'
149
+
150
+ /**
151
+ * @stability stable
152
+ * @category cdk-utils.api-to-eventbridge-target
153
+ * @subcategory construct
154
+ * @classdesc Provides a construct to create and deploy API Gateway invocations to EventBridge
155
+ *
156
+ * &lt;b>Architecture&lt;/b> ![Architecture](./ApiToEventBridgeTarget.jpg)
157
+ *
158
+ * @example
159
+ * import { ApiToEventBridgeTarget, ApiToEventBridgeTargetProps } '@gradientedge/cdk-utils'
160
+ * import { Construct } from 'constructs'
161
+ *
162
+ * class CustomConstruct extends ApiToEventBridgeTarget {
163
+ * constructor(parent: Construct, id: string, props: ApiToEventBridgeTargetProps) {
164
+ * super(parent, id, props)
165
+ * this.props = props
166
+ * this.id = id
167
+ * this.initResources()
168
+ * }
169
+ * }
170
+ *
171
+ */
172
+ export class ApiToEventBridgeTarget extends CommonConstruct {
173
+ props: types.ApiToEventBridgeTargetProps
174
+ id: string
175
+
176
+ /* application related resources */
177
+ applicationSecrets: secretsmanager.ISecret[]
178
+
179
+ /* destined lambda related resources */
180
+ apiDestinedLambdaDirectory = 'app/api-destined-function'
181
+ apiDestinedLambda: types.ApiDestinedLambdaType
182
+
183
+ /* event related resources */
184
+ apiEvent: types.ApiDestinationEventType
185
+
186
+ /* rest restApi related resources */
187
+ apiDestinedRestApi: types.ApiDestinedRestApiType
188
+ apiDestinedBasePathMappings: apig.BasePathMapping[] = []
189
+ apiResource: string
190
+
191
+ constructor(parent: Construct, id: string, props: types.ApiToEventBridgeTargetProps) {
192
+ super(parent, id, props)
193
+
194
+ this.props = props
195
+ this.id = id
196
+
197
+ this.apiDestinedLambda = new ApiDestinedLambda()
198
+ this.apiEvent = new ApiDestinationEvent()
199
+ this.apiDestinedRestApi = new ApiDestinedRestApi()
200
+ this.apiResource = 'notify'
201
+ }
202
+
203
+ protected initResources() {
204
+ /* application related resources */
205
+ this.resolveSecrets()
206
+
207
+ /* core resources */
208
+ this.resolveHostedZone()
209
+ this.resolveCertificate()
210
+
211
+ /* optional custom event bus */
212
+ this.createApiDestinedEventBus()
213
+
214
+ /* destined lambda related resources */
215
+ this.createApiDestinedLambdaPolicy()
216
+ this.createApiDestinedLambdaRole()
217
+ this.createApiDestinedLambdaEnvironment()
218
+ this.createApiDestinedLambdaLayers()
219
+ this.createApiDestinedLambdaDestinations()
220
+ this.createApiDestinedLambdaFunction()
221
+
222
+ /* event related resources */
223
+ this.createApiDestinationLogGroupSuccess()
224
+ this.createApiDestinationRuleSuccess()
225
+ this.createApiDestinationLogGroupFailure()
226
+ this.createApiDestinationRuleFailure()
227
+
228
+ /* restApi related resources */
229
+ this.createApiDestinedTopicRole()
230
+ this.createApiDestinedTopic()
231
+ this.createApiDestinedRestApi()
232
+ this.createApiDestinedResponseModel()
233
+ this.createApiDestinedErrorResponseModel()
234
+ this.createApiDestinedResource()
235
+ this.createApiDestinedIntegrationRequestParameters()
236
+ this.createApiDestinedIntegrationRequestTemplates()
237
+ this.createApiDestinedIntegrationResponse()
238
+ this.createApiDestinedIntegrationErrorResponse()
239
+ this.createApiDestinedIntegration()
240
+ this.createApiDestinedMethodResponse()
241
+ this.createApiDestinedMethodErrorResponse()
242
+ this.createApiDestinedResourceMethod()
243
+ this.createApiDomain()
244
+ this.createApiBasePathMapping()
245
+ this.createApiRouteAssets()
246
+ }
247
+
248
+ /**
249
+ * @summary Method to resolve secrets from SecretsManager
250
+ * - To be implemented in the overriding method in the implementation class
251
+ * @protected
252
+ */
253
+ protected resolveSecrets() {
254
+ this.applicationSecrets = []
255
+ }
256
+
257
+ /**
258
+ * @summary Method to resolve a hosted zone based on domain attributes
259
+ * @protected
260
+ */
261
+ protected resolveHostedZone() {
262
+ this.apiDestinedRestApi.hostedZone = this.route53Manager.withHostedZoneFromFullyQualifiedDomainName(
263
+ `${this.id}-hosted-zone`,
264
+ this,
265
+ this.props.useExistingHostedZone
266
+ )
267
+ }
268
+
269
+ /**
270
+ * @summary Method to resolve a certificate based on attributes
271
+ * @protected
272
+ */
273
+ protected resolveCertificate() {
274
+ if (
275
+ this.props.api.certificate.useExistingCertificate &amp;&amp;
276
+ this.props.api.certificate.certificateSsmName &amp;&amp;
277
+ this.props.api.certificate.certificateRegion
278
+ ) {
279
+ this.props.api.certificate.certificateArn = this.ssMManager.readStringParameterFromRegion(
280
+ `${this.id}-certificate-param`,
281
+ this,
282
+ this.props.api.certificate.certificateSsmName,
283
+ this.props.api.certificate.certificateRegion
284
+ )
285
+ }
286
+
287
+ this.apiDestinedRestApi.certificate = this.acmManager.resolveCertificate(
288
+ `${this.id}-certificate`,
289
+ this,
290
+ this.props.api.certificate
291
+ )
292
+ }
293
+
294
+ /**
295
+ * @summary Method to create iam policy for Api Destined Lambda function
296
+ * @protected
297
+ */
298
+ protected createApiDestinedLambdaPolicy() {
299
+ this.apiDestinedLambda.policy = new iam.PolicyDocument({
300
+ statements: [this.iamManager.statementForReadSecrets(this), this.iamManager.statementForPutEvents()],
301
+ })
302
+ }
303
+
304
+ /**
305
+ * @summary Method to create iam role for Api Destined Lambda function
306
+ * @protected
307
+ */
308
+ protected createApiDestinedLambdaRole() {
309
+ this.apiDestinedLambda.role = this.iamManager.createRoleForLambda(
310
+ `${this.id}-lambda-destined-role`,
311
+ this,
312
+ this.apiDestinedLambda.policy
313
+ )
314
+ }
315
+
316
+ /**
317
+ * @summary Method to create environment variables for Api Destined Lambda function
318
+ * @protected
319
+ */
320
+ protected createApiDestinedLambdaEnvironment() {
321
+ this.apiDestinedLambda.environment = {
322
+ NODE_ENV: this.props.nodeEnv,
323
+ LOG_LEVEL: this.props.logLevel,
324
+ TZ: this.props.timezone,
325
+ SOURCE_ID: this.id,
326
+ }
327
+ }
328
+
329
+ private createApiDestinedLambdaLayersSource() {
330
+ return this.props.lambda.useNative
331
+ ? lambda.AssetCode.fromAsset(`${this.apiDestinedLambdaDirectory}/layers`)
332
+ : lambda.AssetCode.fromAsset(
333
+ `../node_modules/@gradientedge/cdk-utils/dist/${this.apiDestinedLambdaDirectory}/layers`
334
+ )
335
+ }
336
+
337
+ /**
338
+ * @summary Method to create layers for Api Destined Lambda function
339
+ * @protected
340
+ */
341
+ protected createApiDestinedLambdaLayers() {
342
+ const layers: lambda.LayerVersion[] = []
343
+ layers.push(
344
+ this.lambdaManager.createLambdaLayer(
345
+ `${this.id}-lambda-destined-layer`,
346
+ this,
347
+ this.createApiDestinedLambdaLayersSource()
348
+ )
349
+ )
350
+ this.apiDestinedLambda.layers = layers
351
+ }
352
+
353
+ /**
354
+ * @summary Method to create destination for Api Destined function
355
+ * @protected
356
+ */
357
+ protected createApiDestinedLambdaDestinations() {
358
+ this.apiDestinedLambda.destinationSuccess = new destinations.EventBridgeDestination(this.apiEvent.eventBus)
359
+ this.apiDestinedLambda.destinationFailure = new destinations.EventBridgeDestination(this.apiEvent.eventBus)
360
+ }
361
+
362
+ private createApiDestinedLambdaFunctionSource() {
363
+ return this.props.lambda.useNative
364
+ ? lambda.AssetCode.fromAsset(`${this.apiDestinedLambdaDirectory}/src/lib`)
365
+ : lambda.AssetCode.fromAsset(
366
+ `../node_modules/@gradientedge/cdk-utils/dist/${this.apiDestinedLambdaDirectory}/src/lib`
367
+ )
368
+ }
369
+
370
+ /**
371
+ * @summary Method to create lambda function for Api Destined
372
+ * @protected
373
+ */
374
+ protected createApiDestinedLambdaFunction() {
375
+ this.apiDestinedLambda.function = this.lambdaManager.createLambdaFunction(
376
+ `${this.id}-lambda-destined`,
377
+ this,
378
+ {
379
+ ...this.props.lambda.function,
380
+ ...{
381
+ onSuccess: this.apiDestinedLambda.destinationSuccess,
382
+ onFailure: this.apiDestinedLambda.destinationFailure,
383
+ },
384
+ },
385
+ this.apiDestinedLambda.role,
386
+ this.apiDestinedLambda.layers,
387
+ this.createApiDestinedLambdaFunctionSource(),
388
+ 'lambda.handler',
389
+ this.apiDestinedLambda.environment
390
+ )
391
+ }
392
+
393
+ protected createApiDestinedEventBus() {
394
+ this.apiEvent.eventBus = this.eventManager.createEventBus(`${this.id}-destined-event-bus`, this, {
395
+ eventBusName: `${this.props.event.eventBusName}`,
396
+ })
397
+ }
398
+
399
+ protected createApiDestinationLogGroupSuccess() {
400
+ this.apiEvent.logGroupSuccess = this.logManager.createLogGroup(`${this.id}-destination-success-log`, this, {
401
+ ...{
402
+ logGroupName: `/${this.id}/events/api-destination-success`,
403
+ },
404
+ ...this.props.event.logGroupSuccess,
405
+ })
406
+ }
407
+
408
+ /**
409
+ * Method to create EventBridge rule with lambda target for success
410
+ * @protected
411
+ */
412
+ protected createApiDestinationRuleSuccess() {
413
+ this.props.event.ruleSuccess = {
414
+ ...{
415
+ ruleName: `${this.id}-api-destination-success`,
416
+ eventPattern: {
417
+ detail: {
418
+ requestContext: {
419
+ condition: ['Success'],
420
+ },
421
+ responsePayload: {
422
+ source: ['custom:api-destined-lambda'],
423
+ sourceId: [this.id],
424
+ },
425
+ },
426
+ },
427
+ },
428
+ ...this.props.event.ruleSuccess,
429
+ }
430
+ this.apiEvent.ruleSuccess = this.eventManager.createRule(
431
+ `${this.id}-api-destination-rule-success`,
432
+ this,
433
+ this.props.event.ruleSuccess,
434
+ this.apiEvent.eventBus,
435
+ [new eventstargets.CloudWatchLogGroup(this.apiEvent.logGroupSuccess)]
436
+ )
437
+ }
438
+
439
+ protected createApiDestinationLogGroupFailure() {
440
+ this.apiEvent.logGroupFailure = this.logManager.createLogGroup(`${this.id}-destination-failure-log`, this, {
441
+ ...{
442
+ logGroupName: `/${this.id}/events/api-destination-failure`,
443
+ },
444
+ ...this.props.event.logGroupFailure,
445
+ })
446
+ }
447
+
448
+ /**
449
+ * Method to create EventBridge rule with lambda target for failure
450
+ * @protected
451
+ */
452
+ protected createApiDestinationRuleFailure() {
453
+ this.props.event.ruleFailure = {
454
+ ...{
455
+ ruleName: `${this.id}-api-destination-failure`,
456
+ eventPattern: {
457
+ detail: {
458
+ responsePayload: {
459
+ errorType: ['Error'],
460
+ },
461
+ },
462
+ },
463
+ },
464
+ ...this.props.event.ruleFailure,
465
+ }
466
+ this.apiEvent.ruleFailure = this.eventManager.createRule(
467
+ `${this.id}-api-destination-rule-failure`,
468
+ this,
469
+ this.props.event.ruleFailure,
470
+ this.apiEvent.eventBus,
471
+ [new eventstargets.CloudWatchLogGroup(this.apiEvent.logGroupFailure)]
472
+ )
473
+ }
474
+
475
+ protected createApiDestinedTopicRole() {
476
+ this.apiDestinedRestApi.topicRole = new iam.Role(this, `${this.id}-sns-rest-api-role`, {
477
+ assumedBy: new iam.ServicePrincipal('apigateway.amazonaws.com'),
478
+ })
479
+ }
480
+
481
+ protected createApiDestinedTopic() {
482
+ this.apiDestinedRestApi.topic = this.snsManager.createLambdaNotificationService(
483
+ `${this.id}-destined-topic`,
484
+ this,
485
+ {
486
+ topicName: `${this.id}-destined-topic`,
487
+ },
488
+ this.apiDestinedLambda.function
489
+ )
490
+
491
+ this.apiDestinedRestApi.topic.grantPublish(this.apiDestinedRestApi.topicRole)
492
+ }
493
+
494
+ /**
495
+ * @summary Method to create rest restApi for Api
496
+ * @protected
497
+ */
498
+ protected createApiDestinedRestApi() {
499
+ this.apiDestinedRestApi.api = new apig.RestApi(this, `${this.id}-sns-rest-api`, {
500
+ ...{
501
+ deployOptions: {
502
+ dataTraceEnabled: true,
503
+ description: `${this.id} - ${this.props.stage} stage`,
504
+ loggingLevel: apig.MethodLoggingLevel.INFO,
505
+ metricsEnabled: true,
506
+ stageName: this.props.stage,
507
+ },
508
+ endpointConfiguration: {
509
+ types: [apig.EndpointType.REGIONAL],
510
+ },
511
+ defaultCorsPreflightOptions: {
512
+ allowOrigins: apig.Cors.ALL_ORIGINS,
513
+ allowMethods: ['POST'],
514
+ allowHeaders: apig.Cors.DEFAULT_HEADERS,
515
+ },
516
+ restApiName: `${this.id}-destined-rest-api-${this.props.stage}`,
517
+ },
518
+ ...this.props.api,
519
+ })
520
+ }
521
+
522
+ protected createApiDestinedResponseModel() {
523
+ this.apiDestinedRestApi.responseModel = this.apiDestinedRestApi.api.addModel(`${this.id}-response-model`, {
524
+ ...{
525
+ contentType: 'application/json',
526
+ modelName: 'ResponseModel',
527
+ schema: {
528
+ schema: apig.JsonSchemaVersion.DRAFT4,
529
+ title: 'pollResponse',
530
+ type: apig.JsonSchemaType.OBJECT,
531
+ properties: { message: { type: apig.JsonSchemaType.STRING } },
532
+ },
533
+ },
534
+ ...this.props.api.responseModel,
535
+ })
536
+ }
537
+
538
+ protected createApiDestinedErrorResponseModel() {
539
+ this.apiDestinedRestApi.errorResponseModel = this.apiDestinedRestApi.api.addModel(
540
+ `${this.id}-error-response-model`,
541
+ {
542
+ ...{
543
+ contentType: 'application/json',
544
+ modelName: 'ErrorResponseModel',
545
+ schema: {
546
+ schema: apig.JsonSchemaVersion.DRAFT4,
547
+ title: 'errorResponse',
548
+ type: apig.JsonSchemaType.OBJECT,
549
+ properties: {
550
+ state: { type: apig.JsonSchemaType.STRING },
551
+ message: { type: apig.JsonSchemaType.STRING },
552
+ },
553
+ },
554
+ },
555
+ ...this.props.api.errorResponseModel,
556
+ }
557
+ )
558
+ }
559
+
560
+ protected createApiDestinedResource() {
561
+ this.apiDestinedRestApi.resource = this.apiDestinedRestApi.api.root.addResource(
562
+ this.props.api.resource ?? this.apiResource
563
+ )
564
+ }
565
+
566
+ protected createApiDestinedIntegrationRequestParameters() {
567
+ this.apiDestinedRestApi.integrationRequestParameters = {
568
+ 'integration.request.header.Content-Type': "'application/x-www-form-urlencoded'",
569
+ }
570
+ }
571
+
572
+ protected createApiDestinedIntegrationRequestTemplates() {
573
+ this.apiDestinedRestApi.integrationRequestTemplates = {
574
+ 'application/json': [
575
+ 'Action=Publish',
576
+ `TargetArn=$util.urlEncode('${this.apiDestinedRestApi.topic.topicArn}')`,
577
+ 'Message=$input.body',
578
+ 'Version=2010-03-31',
579
+ ].join('&amp;'),
580
+ }
581
+ }
582
+
583
+ protected createApiDestinedIntegrationResponse() {
584
+ this.apiDestinedRestApi.integrationResponse = {
585
+ ...{
586
+ statusCode: '200',
587
+ responseTemplates: {
588
+ 'application/json': JSON.stringify({ message: 'Payload Submitted' }),
589
+ },
590
+ },
591
+ ...this.props.api.integrationResponse,
592
+ }
593
+ }
594
+
595
+ protected createApiDestinedIntegrationErrorResponse() {
596
+ this.apiDestinedRestApi.integrationErrorResponse = {
597
+ ...{
598
+ selectionPattern: '^\\[Error\\].*',
599
+ statusCode: '400',
600
+ responseTemplates: {
601
+ 'application/json': JSON.stringify({
602
+ state: 'error',
603
+ message: "$util.escapeJavaScript($input.path('$.errorMessage'))",
604
+ }),
605
+ },
606
+ responseParameters: {
607
+ 'method.response.header.Content-Type': "'application/json'",
608
+ 'method.response.header.Access-Control-Allow-Origin': "'*'",
609
+ 'method.response.header.Access-Control-Allow-Credentials': "'true'",
610
+ },
611
+ },
612
+ ...this.props.api.integrationErrorResponse,
613
+ }
614
+ }
615
+
616
+ protected createApiDestinedIntegration() {
617
+ this.apiDestinedRestApi.integration = new apig.Integration({
618
+ type: apig.IntegrationType.AWS,
619
+ integrationHttpMethod: 'POST',
620
+ uri: `arn:aws:apigateway:${this.props.region}:sns:path//`,
621
+ options: {
622
+ ...{
623
+ credentialsRole: this.apiDestinedRestApi.topicRole,
624
+ requestParameters: this.apiDestinedRestApi.integrationRequestParameters,
625
+ requestTemplates: this.apiDestinedRestApi.integrationRequestTemplates,
626
+ passthroughBehavior: apig.PassthroughBehavior.NEVER,
627
+ integrationResponses: [
628
+ this.apiDestinedRestApi.integrationResponse,
629
+ this.apiDestinedRestApi.integrationErrorResponse,
630
+ ],
631
+ },
632
+ ...this.props.api.integrationOptions,
633
+ },
634
+ })
635
+ }
636
+
637
+ protected createApiDestinedMethodResponse() {
638
+ this.apiDestinedRestApi.methodResponse = {
639
+ ...{
640
+ statusCode: '200',
641
+ responseParameters: {
642
+ 'method.response.header.Content-Type': true,
643
+ 'method.response.header.Access-Control-Allow-Origin': true,
644
+ 'method.response.header.Access-Control-Allow-Credentials': true,
645
+ },
646
+ responseModels: {
647
+ 'application/json': this.apiDestinedRestApi.responseModel,
648
+ },
649
+ },
650
+ ...this.props.api.methodResponse,
651
+ }
652
+ }
653
+
654
+ protected createApiDestinedMethodErrorResponse() {
655
+ this.apiDestinedRestApi.methodErrorResponse = {
656
+ ...{
657
+ statusCode: '400',
658
+ responseParameters: {
659
+ 'method.response.header.Content-Type': true,
660
+ 'method.response.header.Access-Control-Allow-Origin': true,
661
+ 'method.response.header.Access-Control-Allow-Credentials': true,
662
+ },
663
+ responseModels: {
664
+ 'application/json': this.apiDestinedRestApi.errorResponseModel,
665
+ },
666
+ },
667
+ ...this.props.api.methodErrorResponse,
668
+ }
669
+ }
670
+
671
+ protected createApiDestinedResourceMethod() {
672
+ this.apiDestinedRestApi.method = this.apiDestinedRestApi.resource.addMethod(
673
+ 'POST',
674
+ this.apiDestinedRestApi.integration,
675
+ {
676
+ methodResponses: [this.apiDestinedRestApi.methodResponse, this.apiDestinedRestApi.methodErrorResponse],
677
+ }
678
+ )
679
+ }
680
+
681
+ /**
682
+ * @summary Method to create custom restApi domain for Api API
683
+ * @protected
684
+ */
685
+ protected createApiDomain() {
686
+ this.apiDestinedRestApi.domain = this.apiManager.createApiDomain(
687
+ `${this.id}-api-domain`,
688
+ this,
689
+ this.isProductionStage()
690
+ ? `${this.props.apiSubDomain}.${this.fullyQualifiedDomainName}`
691
+ : `${this.props.apiSubDomain}-${this.props.stage}.${this.fullyQualifiedDomainName}`,
692
+ this.apiDestinedRestApi.certificate
693
+ )
694
+ }
695
+
696
+ /**
697
+ * @summary Method to create base path mappings for Api API
698
+ * @protected
699
+ */
700
+ protected createApiBasePathMapping() {
701
+ const apiRootPaths = this.props.apiRootPaths
702
+ if (apiRootPaths &amp;&amp; apiRootPaths.length > 0) {
703
+ apiRootPaths.forEach((apiRootPath: string) => {
704
+ this.apiDestinedBasePathMappings.push(
705
+ new apig.BasePathMapping(this, `${this.id}-base-bath-mapping-${apiRootPath}`, {
706
+ basePath: this.props.api.resource,
707
+ domainName: this.apiDestinedRestApi.domain,
708
+ restApi: this.apiDestinedRestApi.api,
709
+ stage: this.apiDestinedRestApi.api.deploymentStage,
710
+ })
711
+ )
712
+ })
713
+ }
714
+ }
715
+
716
+ /**
717
+ * @summary Method to create route53 records for Api API
718
+ * @protected
719
+ */
720
+ protected createApiRouteAssets() {
721
+ this.route53Manager.createApiGatewayARecord(
722
+ `${this.id}-custom-domain-a-record`,
723
+ this,
724
+ this.props.apiSubDomain,
725
+ this.apiDestinedRestApi.domain,
726
+ this.apiDestinedRestApi.hostedZone
727
+ )
728
+ }
729
+ }
730
+ </code></pre>
731
+ </article>
732
+ </section>
733
+
734
+
735
+
736
+
737
+ </div>
738
+
739
+ </div>
740
+ <div id="side-nav" class="side-nav">
741
+ </div>
742
+ </div>
743
+ <script src="scripts/app.min.js"></script>
744
+ <script>PR.prettyPrint();</script>
745
+ <script src="scripts/linenumber.js"> </script>
746
+
747
+ <script src="scripts/search.js"> </script>
748
+
749
+
750
+ </body>
751
+ </html>