@gradientedge/cdk-utils 4.2.3 → 4.4.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (527) 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 +930 -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 +238 -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} +3 -13
  272. package/dist/src/lib/common/construct.d.ts.map +1 -0
  273. package/dist/src/lib/common/{commonConstruct.js → construct.js} +4 -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} +4 -16
  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/dynamodb-manager.d.ts +32 -0
  360. package/dist/src/lib/manager/aws/dynamodb-manager.d.ts.map +1 -0
  361. package/dist/src/lib/manager/aws/dynamodb-manager.js +79 -0
  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 -21
  384. package/dist/src/lib/manager/aws/index.d.ts.map +1 -1
  385. package/dist/src/lib/manager/aws/index.js +22 -21
  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} +2 -2
  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} +3 -2
  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 +143 -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} +3 -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} +3 -15
  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/dynamodb-manager.ts +60 -0
  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 -21
  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} +2 -1
  471. package/src/lib/manager/aws/{wafManager.ts → waf-manager.ts} +1 -1
  472. package/src/lib/types/aws/index.ts +146 -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/ecrManager.d.ts.map +0 -1
  501. package/dist/src/lib/manager/aws/ecrManager.js.map +0 -1
  502. package/dist/src/lib/manager/aws/ecsManager.d.ts.map +0 -1
  503. package/dist/src/lib/manager/aws/ecsManager.js.map +0 -1
  504. package/dist/src/lib/manager/aws/eksManager.d.ts.map +0 -1
  505. package/dist/src/lib/manager/aws/eksManager.js.map +0 -1
  506. package/dist/src/lib/manager/aws/eventManager.d.ts.map +0 -1
  507. package/dist/src/lib/manager/aws/eventManager.js.map +0 -1
  508. package/dist/src/lib/manager/aws/iamManager.d.ts.map +0 -1
  509. package/dist/src/lib/manager/aws/iamManager.js.map +0 -1
  510. package/dist/src/lib/manager/aws/lambdaManager.d.ts.map +0 -1
  511. package/dist/src/lib/manager/aws/lambdaManager.js.map +0 -1
  512. package/dist/src/lib/manager/aws/logManager.d.ts.map +0 -1
  513. package/dist/src/lib/manager/aws/logManager.js.map +0 -1
  514. package/dist/src/lib/manager/aws/route53Manager.d.ts.map +0 -1
  515. package/dist/src/lib/manager/aws/route53Manager.js.map +0 -1
  516. package/dist/src/lib/manager/aws/s3Manager.d.ts.map +0 -1
  517. package/dist/src/lib/manager/aws/s3Manager.js.map +0 -1
  518. package/dist/src/lib/manager/aws/secretsManager.d.ts.map +0 -1
  519. package/dist/src/lib/manager/aws/secretsManager.js.map +0 -1
  520. package/dist/src/lib/manager/aws/snsManager.d.ts.map +0 -1
  521. package/dist/src/lib/manager/aws/snsManager.js.map +0 -1
  522. package/dist/src/lib/manager/aws/ssmManager.d.ts.map +0 -1
  523. package/dist/src/lib/manager/aws/ssmManager.js.map +0 -1
  524. package/dist/src/lib/manager/aws/vpcManager.d.ts.map +0 -1
  525. package/dist/src/lib/manager/aws/vpcManager.js.map +0 -1
  526. package/dist/src/lib/manager/aws/wafManager.d.ts.map +0 -1
  527. package/dist/src/lib/manager/aws/wafManager.js.map +0 -1
@@ -0,0 +1,255 @@
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 manager/aws/log-manager.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="">
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
+
46
+ <a href="index.html">
47
+ <h1 class="navbar-item">Gradient Edge CDK Utils Documentation</h1>
48
+ </a>
49
+
50
+ </div>
51
+ <div class="menu">
52
+
53
+ <div class="navigation">
54
+ <a
55
+ href="index.html"
56
+ class="link"
57
+ >
58
+ API Documentation
59
+ </a>
60
+
61
+ <div class="dropdown is-hoverable is-right">
62
+ <a class="dropdown-trigger link">
63
+ Tutorials
64
+ <i class="fas fa-chevron-down fa-xs"></i>
65
+ </a>
66
+ <div class="dropdown-menu">
67
+ <div class="dropdown-content">
68
+
69
+ <a class="dropdown-item" href="tutorial-Architecture.html">
70
+ Architecture
71
+ </a>
72
+
73
+ <a class="dropdown-item" href="tutorial-Build.html">
74
+ Build
75
+ </a>
76
+
77
+ <a class="dropdown-item" href="tutorial-CI-CD.html">
78
+ CI-CD
79
+ </a>
80
+
81
+ <a class="dropdown-item" href="tutorial-Development.html">
82
+ Development
83
+ </a>
84
+
85
+ </div>
86
+ </div>
87
+ </div>
88
+
89
+
90
+
91
+ <a
92
+ class="link user-link "
93
+ href="https://github.com/gradientedge/cdk-utils"
94
+ >
95
+ Github
96
+ </a>
97
+
98
+
99
+
100
+ </div>
101
+ </div>
102
+ </div>
103
+ </div>
104
+ <div id="main">
105
+ <div
106
+ class="sidebar "
107
+ id="sidebarNav"
108
+ >
109
+
110
+ <div class="search-wrapper">
111
+ <input id="search" type="text" placeholder="Search docs..." class="input">
112
+ </div>
113
+
114
+ <nav>
115
+
116
+ <h2><a href="index.html">Documentation</a></h2><div class="category"></div><div class="category"><h2>Application Integration</h2><h3>Classes</h3><ul><li><a href="EventManager.html">EventManager</a></li><li><a href="SnsManager.html">SnsManager</a></li></ul><h3>Interfaces</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><li><a href="SubscriptionProps.html">SubscriptionProps</a></li></ul></div><div class="category"><h2>Compute</h2><h3>Classes</h3><ul><li><a href="LambdaManager.html">LambdaManager</a></li></ul><h3>Interfaces</h3><ul><li><a href="HealthCheck.html">HealthCheck</a></li><li><a href="LambdaEdgeProps.html">LambdaEdgeProps</a></li><li><a href="LambdaProps.html">LambdaProps</a></li></ul></div><div class="category"><h2>Constructs</h2><h3>Classes</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><li><a href="ApiToEventBridgeTarget.html">ApiToEventBridgeTarget</a></li><li><a href="CommonConstruct.html">CommonConstruct</a></li><li><a href="GraphQLApiLambda.html">GraphQLApiLambda</a></li><li><a href="SiteWithEcsBackend.html">SiteWithEcsBackend</a></li><li><a href="StaticSite.html">StaticSite</a></li></ul><h3>Interfaces</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><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="CommonStackProps.html">CommonStackProps</a></li><li><a href="GraphQlApiLambdaEnvironment.html">GraphQlApiLambdaEnvironment</a></li><li><a href="GraphQlApiLambdaProps.html">GraphQlApiLambdaProps</a></li><li><a href="LambdaEnvironment.html">LambdaEnvironment</a></li><li><a href="SiteWithEcsBackendProps.html">SiteWithEcsBackendProps</a></li><li><a href="StaticSiteProps.html">StaticSiteProps</a></li></ul></div><div class="category"><h2>Containers</h2><h3>Classes</h3><ul><li><a href="EcrManager.html">EcrManager</a></li><li><a href="EcsManager.html">EcsManager</a></li><li><a href="EksManager.html">EksManager</a></li></ul><h3>Interfaces</h3><ul><li><a href="EcsClusterProps.html">EcsClusterProps</a></li><li><a href="EcsTaskProps.html">EcsTaskProps</a></li><li><a href="EksClusterProps.html">EksClusterProps</a></li></ul></div><div class="category"><h2>Developer Tools</h2><h3>Classes</h3><ul><li><a href="CodeBuildManager.html">CodeBuildManager</a></li></ul></div><div class="category"><h2>Management & Governance</h2><h3>Classes</h3><ul><li><a href="AppConfigManager.html">AppConfigManager</a></li><li><a href="CloudTrailManager.html">CloudTrailManager</a></li><li><a href="CloudWatchManager.html">CloudWatchManager</a></li><li><a href="LogManager.html">LogManager</a></li><li><a href="SsmManager.html">SsmManager</a></li><li><a href="SSMParameterReader.html">SSMParameterReader</a></li></ul><h3>Interfaces</h3><ul><li><a href="AlarmProps.html">AlarmProps</a></li><li><a href="AlarmStatusWidgetProps.html">AlarmStatusWidgetProps</a></li><li><a href="AppConfigProps.html">AppConfigProps</a></li><li><a href="CloudTrailProps.html">CloudTrailProps</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="SSMParameterReaderProps.html">SSMParameterReaderProps</a></li><li><a href="TextWidgetProps.html">TextWidgetProps</a></li></ul></div><div class="category"><h2>Networking & Content Delivery</h2><h3>Classes</h3><ul><li><a href="ApiManager.html">ApiManager</a></li><li><a href="CloudFrontManager.html">CloudFrontManager</a></li><li><a href="Route53Manager.html">Route53Manager</a></li><li><a href="VpcManager.html">VpcManager</a></li></ul><h3>Interfaces</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><li><a href="Route53Props.html">Route53Props</a></li></ul></div><div class="category"><h2>Security, Identity & Compliance</h2><h3>Classes</h3><ul><li><a href="AcmManager.html">AcmManager</a></li><li><a href="IamManager.html">IamManager</a></li><li><a href="SecretsManager.html">SecretsManager</a></li><li><a href="WafManager.html">WafManager</a></li></ul><h3>Interfaces</h3><ul><li><a href="AcmProps.html">AcmProps</a></li><li><a href="WafIPSetProps.html">WafIPSetProps</a></li><li><a href="WafWebACLProps.html">WafWebACLProps</a></li></ul></div><div class="category"><h2>Stacks</h2><h3>Classes</h3><ul><li><a href="CommonStack.html">CommonStack</a></li></ul></div><div class="category"><h2>Storage</h2><h3>Classes</h3><ul><li><a href="DynamodbManager.html">DynamodbManager</a></li><li><a href="S3Manager.html">S3Manager</a></li></ul><h3>Interfaces</h3><ul><li><a href="S3BucketProps.html">S3BucketProps</a></li><li><a href="TableProps.html">TableProps</a></li></ul></div><div class="category"><h2>Utils</h2><h3>Global</h3><ul><li><a href="global.html#ArnsByRegion">ArnsByRegion</a></li><li><a href="global.html#CloudWatchWidgetType">CloudWatchWidgetType</a></li><li><a href="global.html#CommonVpcIdentifier">CommonVpcIdentifier</a></li><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#redirectError">redirectError</a></li><li><a href="global.html#redirectSuccess">redirectSuccess</a></li></ul></div><div class="category"><h2>Utils
117
+ LogLevel enumeration</h2><h3>Global</h3><ul><li><a href="global.html#LogLevel">LogLevel</a></li></ul></div>
118
+
119
+ </nav>
120
+ </div>
121
+ <div class="core" id="main-content-wrapper">
122
+ <div class="content">
123
+ <header class="page-title">
124
+ <p>Source</p>
125
+ <h1>manager/aws/log-manager.ts</h1>
126
+ </header>
127
+
128
+
129
+
130
+
131
+
132
+ <section>
133
+ <article>
134
+ <pre class="prettyprint source linenums"><code>import * as cdk from 'aws-cdk-lib'
135
+ import * as logs from 'aws-cdk-lib/aws-logs'
136
+ import * as common from '../../common'
137
+ import * as types from '../../types'
138
+ import * as utils from '../../utils'
139
+
140
+ /**
141
+ * @stability stable
142
+ * @category Management &amp; Governance
143
+ * @classdesc Provides operations on AWS CloudWatch.
144
+ * - A new instance of this class is injected into {@link common.CommonConstruct} constructor.
145
+ * - If a custom construct extends {@link common.CommonConstruct}, an instance is available within the context.
146
+ * @example
147
+ * import * as common from '@gradientedge/cdk-utils'
148
+ *
149
+ * class CustomConstruct extends common.common.CommonConstruct {
150
+ * constructor(parent: cdk.Construct, id: string, props: common.CommonStackProps) {
151
+ * super(parent, id, props)
152
+ * this.props = props
153
+ * this.logsManager.createMetricFilter('MyMetricFilter', this, logGroup)
154
+ * }
155
+ * }
156
+ *
157
+ * @see [CDK CloudWatch Module]{@link https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_logs-readme.html}
158
+ */
159
+ export class LogManager {
160
+ /**
161
+ * @summary Method to create a cloudwatch metric filter
162
+ * @param {string} id scoped id of the resource
163
+ * @param {common.CommonConstruct} scope scope in which this resource is defined
164
+ * @param {types.MetricFilterProps} props
165
+ * @param {logs.ILogGroup} logGroup
166
+ */
167
+ public createMetricFilter(
168
+ id: string,
169
+ scope: common.CommonConstruct,
170
+ props: types.MetricFilterProps,
171
+ logGroup: logs.ILogGroup
172
+ ) {
173
+ if (!props) throw `MetricFilter props undefined`
174
+
175
+ const metricFilter = new logs.MetricFilter(scope, `${id}`, {
176
+ logGroup: logGroup,
177
+ metricName: props.metricName,
178
+ metricNamespace: props.metricNamespace,
179
+ metricValue: props.metricValue,
180
+ defaultValue: props.defaultValue,
181
+ filterPattern: props.filterPattern,
182
+ })
183
+
184
+ const metric = props.options
185
+ ? metricFilter.metric({
186
+ dimensionsMap: props.options.dimensionsMap,
187
+ statistic: props.options.statistic,
188
+ period: props.periodInSecs ? cdk.Duration.seconds(props.periodInSecs) : cdk.Duration.minutes(5),
189
+ })
190
+ : metricFilter.metric()
191
+
192
+ return { metricFilter, metric }
193
+ }
194
+
195
+ /**
196
+ * @summary Method to create a cloudwatch log group (cfn)
197
+ * @param {string} id scoped id of the resource
198
+ * @param {common.CommonConstruct} scope scope in which this resource is defined
199
+ * @param {types.LogProps} props
200
+ */
201
+ public createCfnLogGroup(id: string, scope: common.CommonConstruct, props: types.LogProps) {
202
+ if (!props) throw `Logs props undefined`
203
+
204
+ const logGroup = new logs.CfnLogGroup(scope, `${id}`, {
205
+ logGroupName: `${props.logGroupName}-${scope.props.stage}`,
206
+ retentionInDays: props.retention,
207
+ })
208
+
209
+ utils.createCfnOutput(`${id}-logGroupArn`, scope, logGroup.attrArn)
210
+
211
+ return logGroup
212
+ }
213
+
214
+ /**
215
+ * @summary Method to create a cloudwatch log group
216
+ * @param {string} id scoped id of the resource
217
+ * @param {common.CommonConstruct} scope scope in which this resource is defined
218
+ * @param {types.LogProps} props
219
+ */
220
+ public createLogGroup(id: string, scope: common.CommonConstruct, props: types.LogProps) {
221
+ if (!props) throw `Logs props undefined`
222
+
223
+ const logGroup = new logs.LogGroup(scope, `${id}`, {
224
+ logGroupName: `${props.logGroupName}-${scope.props.stage}`,
225
+ retention: props.retention,
226
+ removalPolicy: props.removalPolicy ?? cdk.RemovalPolicy.DESTROY,
227
+ })
228
+
229
+ utils.createCfnOutput(`${id}-logGroupArn`, scope, logGroup.logGroupArn)
230
+
231
+ return logGroup
232
+ }
233
+ }
234
+ </code></pre>
235
+ </article>
236
+ </section>
237
+
238
+
239
+
240
+
241
+ </div>
242
+
243
+ </div>
244
+ <div id="side-nav" class="side-nav">
245
+ </div>
246
+ </div>
247
+ <script src="scripts/app.min.js"></script>
248
+ <script>PR.prettyPrint();</script>
249
+ <script src="scripts/linenumber.js"> </script>
250
+
251
+ <script src="scripts/search.js"> </script>
252
+
253
+
254
+ </body>
255
+ </html>
@@ -0,0 +1,329 @@
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 manager/aws/route53-manager.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="">
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
+
46
+ <a href="index.html">
47
+ <h1 class="navbar-item">Gradient Edge CDK Utils Documentation</h1>
48
+ </a>
49
+
50
+ </div>
51
+ <div class="menu">
52
+
53
+ <div class="navigation">
54
+ <a
55
+ href="index.html"
56
+ class="link"
57
+ >
58
+ API Documentation
59
+ </a>
60
+
61
+ <div class="dropdown is-hoverable is-right">
62
+ <a class="dropdown-trigger link">
63
+ Tutorials
64
+ <i class="fas fa-chevron-down fa-xs"></i>
65
+ </a>
66
+ <div class="dropdown-menu">
67
+ <div class="dropdown-content">
68
+
69
+ <a class="dropdown-item" href="tutorial-Architecture.html">
70
+ Architecture
71
+ </a>
72
+
73
+ <a class="dropdown-item" href="tutorial-Build.html">
74
+ Build
75
+ </a>
76
+
77
+ <a class="dropdown-item" href="tutorial-CI-CD.html">
78
+ CI-CD
79
+ </a>
80
+
81
+ <a class="dropdown-item" href="tutorial-Development.html">
82
+ Development
83
+ </a>
84
+
85
+ </div>
86
+ </div>
87
+ </div>
88
+
89
+
90
+
91
+ <a
92
+ class="link user-link "
93
+ href="https://github.com/gradientedge/cdk-utils"
94
+ >
95
+ Github
96
+ </a>
97
+
98
+
99
+
100
+ </div>
101
+ </div>
102
+ </div>
103
+ </div>
104
+ <div id="main">
105
+ <div
106
+ class="sidebar "
107
+ id="sidebarNav"
108
+ >
109
+
110
+ <div class="search-wrapper">
111
+ <input id="search" type="text" placeholder="Search docs..." class="input">
112
+ </div>
113
+
114
+ <nav>
115
+
116
+ <h2><a href="index.html">Documentation</a></h2><div class="category"></div><div class="category"><h2>Application Integration</h2><h3>Classes</h3><ul><li><a href="EventManager.html">EventManager</a></li><li><a href="SnsManager.html">SnsManager</a></li></ul><h3>Interfaces</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><li><a href="SubscriptionProps.html">SubscriptionProps</a></li></ul></div><div class="category"><h2>Compute</h2><h3>Classes</h3><ul><li><a href="LambdaManager.html">LambdaManager</a></li></ul><h3>Interfaces</h3><ul><li><a href="HealthCheck.html">HealthCheck</a></li><li><a href="LambdaEdgeProps.html">LambdaEdgeProps</a></li><li><a href="LambdaProps.html">LambdaProps</a></li></ul></div><div class="category"><h2>Constructs</h2><h3>Classes</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><li><a href="ApiToEventBridgeTarget.html">ApiToEventBridgeTarget</a></li><li><a href="CommonConstruct.html">CommonConstruct</a></li><li><a href="GraphQLApiLambda.html">GraphQLApiLambda</a></li><li><a href="SiteWithEcsBackend.html">SiteWithEcsBackend</a></li><li><a href="StaticSite.html">StaticSite</a></li></ul><h3>Interfaces</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><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="CommonStackProps.html">CommonStackProps</a></li><li><a href="GraphQlApiLambdaEnvironment.html">GraphQlApiLambdaEnvironment</a></li><li><a href="GraphQlApiLambdaProps.html">GraphQlApiLambdaProps</a></li><li><a href="LambdaEnvironment.html">LambdaEnvironment</a></li><li><a href="SiteWithEcsBackendProps.html">SiteWithEcsBackendProps</a></li><li><a href="StaticSiteProps.html">StaticSiteProps</a></li></ul></div><div class="category"><h2>Containers</h2><h3>Classes</h3><ul><li><a href="EcrManager.html">EcrManager</a></li><li><a href="EcsManager.html">EcsManager</a></li><li><a href="EksManager.html">EksManager</a></li></ul><h3>Interfaces</h3><ul><li><a href="EcsClusterProps.html">EcsClusterProps</a></li><li><a href="EcsTaskProps.html">EcsTaskProps</a></li><li><a href="EksClusterProps.html">EksClusterProps</a></li></ul></div><div class="category"><h2>Developer Tools</h2><h3>Classes</h3><ul><li><a href="CodeBuildManager.html">CodeBuildManager</a></li></ul></div><div class="category"><h2>Management & Governance</h2><h3>Classes</h3><ul><li><a href="AppConfigManager.html">AppConfigManager</a></li><li><a href="CloudTrailManager.html">CloudTrailManager</a></li><li><a href="CloudWatchManager.html">CloudWatchManager</a></li><li><a href="LogManager.html">LogManager</a></li><li><a href="SsmManager.html">SsmManager</a></li><li><a href="SSMParameterReader.html">SSMParameterReader</a></li></ul><h3>Interfaces</h3><ul><li><a href="AlarmProps.html">AlarmProps</a></li><li><a href="AlarmStatusWidgetProps.html">AlarmStatusWidgetProps</a></li><li><a href="AppConfigProps.html">AppConfigProps</a></li><li><a href="CloudTrailProps.html">CloudTrailProps</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="SSMParameterReaderProps.html">SSMParameterReaderProps</a></li><li><a href="TextWidgetProps.html">TextWidgetProps</a></li></ul></div><div class="category"><h2>Networking & Content Delivery</h2><h3>Classes</h3><ul><li><a href="ApiManager.html">ApiManager</a></li><li><a href="CloudFrontManager.html">CloudFrontManager</a></li><li><a href="Route53Manager.html">Route53Manager</a></li><li><a href="VpcManager.html">VpcManager</a></li></ul><h3>Interfaces</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><li><a href="Route53Props.html">Route53Props</a></li></ul></div><div class="category"><h2>Security, Identity & Compliance</h2><h3>Classes</h3><ul><li><a href="AcmManager.html">AcmManager</a></li><li><a href="IamManager.html">IamManager</a></li><li><a href="SecretsManager.html">SecretsManager</a></li><li><a href="WafManager.html">WafManager</a></li></ul><h3>Interfaces</h3><ul><li><a href="AcmProps.html">AcmProps</a></li><li><a href="WafIPSetProps.html">WafIPSetProps</a></li><li><a href="WafWebACLProps.html">WafWebACLProps</a></li></ul></div><div class="category"><h2>Stacks</h2><h3>Classes</h3><ul><li><a href="CommonStack.html">CommonStack</a></li></ul></div><div class="category"><h2>Storage</h2><h3>Classes</h3><ul><li><a href="DynamodbManager.html">DynamodbManager</a></li><li><a href="S3Manager.html">S3Manager</a></li></ul><h3>Interfaces</h3><ul><li><a href="S3BucketProps.html">S3BucketProps</a></li><li><a href="TableProps.html">TableProps</a></li></ul></div><div class="category"><h2>Utils</h2><h3>Global</h3><ul><li><a href="global.html#ArnsByRegion">ArnsByRegion</a></li><li><a href="global.html#CloudWatchWidgetType">CloudWatchWidgetType</a></li><li><a href="global.html#CommonVpcIdentifier">CommonVpcIdentifier</a></li><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#redirectError">redirectError</a></li><li><a href="global.html#redirectSuccess">redirectSuccess</a></li></ul></div><div class="category"><h2>Utils
117
+ LogLevel enumeration</h2><h3>Global</h3><ul><li><a href="global.html#LogLevel">LogLevel</a></li></ul></div>
118
+
119
+ </nav>
120
+ </div>
121
+ <div class="core" id="main-content-wrapper">
122
+ <div class="content">
123
+ <header class="page-title">
124
+ <p>Source</p>
125
+ <h1>manager/aws/route53-manager.ts</h1>
126
+ </header>
127
+
128
+
129
+
130
+
131
+
132
+ <section>
133
+ <article>
134
+ <pre class="prettyprint source linenums"><code>import * as apig from 'aws-cdk-lib/aws-apigateway'
135
+ import * as cloudfront from 'aws-cdk-lib/aws-cloudfront'
136
+ import * as route53 from 'aws-cdk-lib/aws-route53'
137
+ import * as route53Targets from 'aws-cdk-lib/aws-route53-targets'
138
+ import * as common from '../../common'
139
+ import * as types from '../../types'
140
+ import * as utils from '../../utils'
141
+
142
+ /**
143
+ * @stability stable
144
+ * @category Networking &amp; Content Delivery
145
+ * @classdesc Provides operations on AWS Route53.
146
+ * - A new instance of this class is injected into {@link common.CommonConstruct} constructor.
147
+ * - If a custom construct extends {@link common.CommonConstruct}, an instance is available within the context.
148
+ * @example
149
+ * import * as common from '@gradientedge/cdk-utils'
150
+ *
151
+ * class CustomConstruct extends common.common.CommonConstruct {
152
+ * constructor(parent: cdk.Construct, id: string, props: common.CommonStackProps) {
153
+ * super(parent, id, props)
154
+ * this.props = props
155
+ * this.route53Manager.createHostedZone('MyHostedZone', this)
156
+ * }
157
+ * }
158
+ *
159
+ * @see [CDK Route53 Module]{@link https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_route53-readme.html}
160
+ */
161
+ export class Route53Manager {
162
+ /**
163
+ * @summary Method to create a hosted zone
164
+ * @param {string} id scoped id of the resource
165
+ * @param {common.CommonConstruct} scope scope in which this resource is defined
166
+ * @param {types.Route53Props} props
167
+ */
168
+ public createHostedZone(id: string, scope: common.CommonConstruct, props: types.Route53Props) {
169
+ let hostedZone: route53.IHostedZone
170
+
171
+ if (!props) throw `Route53 props undefined`
172
+
173
+ if (props.useExistingHostedZone) {
174
+ hostedZone = route53.HostedZone.fromLookup(scope, `${id}`, {
175
+ domainName: scope.props.domainName,
176
+ })
177
+ } else {
178
+ hostedZone = new route53.HostedZone(scope, `${id}`, {
179
+ zoneName: scope.props.domainName,
180
+ comment: `Hosted zone for ${scope.props.domainName}`,
181
+ })
182
+ }
183
+
184
+ utils.createCfnOutput(`${id}-hostedZoneId`, scope, hostedZone.hostedZoneId)
185
+ utils.createCfnOutput(`${id}-hostedZoneArn`, scope, hostedZone.hostedZoneArn)
186
+
187
+ return hostedZone
188
+ }
189
+
190
+ /**
191
+ * @summary Method to create/lookup a hosted zone
192
+ * @param {string} id scoped id of the resource
193
+ * @param {common.CommonConstruct} scope scope in which this resource is defined
194
+ * @param useExistingHostedZone Flag to indicate whether to lookup vs create new hosted zone
195
+ */
196
+ public withHostedZoneFromFullyQualifiedDomainName(
197
+ id: string,
198
+ scope: common.CommonConstruct,
199
+ useExistingHostedZone: boolean
200
+ ) {
201
+ let hostedZone: route53.IHostedZone
202
+
203
+ if (useExistingHostedZone) {
204
+ hostedZone = route53.HostedZone.fromLookup(scope, `${id}`, {
205
+ domainName: scope.fullyQualifiedDomainName,
206
+ })
207
+ } else {
208
+ hostedZone = new route53.HostedZone(scope, `${id}`, {
209
+ zoneName: scope.fullyQualifiedDomainName,
210
+ comment: `Hosted zone for ${scope.fullyQualifiedDomainName}`,
211
+ })
212
+ }
213
+
214
+ utils.createCfnOutput(`${id}-hostedZoneId`, scope, hostedZone.hostedZoneId)
215
+ utils.createCfnOutput(`${id}-hostedZoneArn`, scope, hostedZone.hostedZoneArn)
216
+
217
+ return hostedZone
218
+ }
219
+
220
+ /**
221
+ * @summary Method to create a-record for cloudfront target
222
+ * @param {string} id scoped id of the resource
223
+ * @param {common.CommonConstruct} scope scope in which this resource is defined
224
+ * @param {cloudfront.IDistribution} distribution
225
+ * @param {route53.IHostedZone} hostedZone
226
+ * @param {string} recordName
227
+ */
228
+ public createCloudFrontTargetARecord(
229
+ id: string,
230
+ scope: common.CommonConstruct,
231
+ distribution?: cloudfront.IDistribution,
232
+ hostedZone?: route53.IHostedZone,
233
+ recordName?: string
234
+ ) {
235
+ if (!distribution) throw `Distribution undefined`
236
+ if (!hostedZone) throw `HostedZone undefined`
237
+
238
+ const aRecord = new route53.ARecord(scope, `${id}`, {
239
+ recordName: recordName &amp;&amp; scope.isProductionStage() ? `${recordName}` : `${recordName}-${scope.props.stage}`,
240
+ target: route53.RecordTarget.fromAlias(new route53Targets.CloudFrontTarget(distribution)),
241
+ zone: hostedZone,
242
+ })
243
+
244
+ utils.createCfnOutput(`${id}-aRecordDomainName`, scope, aRecord.domainName)
245
+
246
+ return aRecord
247
+ }
248
+
249
+ /**
250
+ * @summary Method to create a-record for cloudfront target
251
+ * @param {string} id scoped id of the resource
252
+ * @param {common.CommonConstruct} scope scope in which this resource is defined
253
+ * @param {cloudfront.IDistribution} distribution
254
+ * @param {route53.IHostedZone} hostedZone
255
+ * @param {string} recordName
256
+ */
257
+ public createCloudFrontTargetARecordV2(
258
+ id: string,
259
+ scope: common.CommonConstruct,
260
+ distribution?: cloudfront.IDistribution,
261
+ hostedZone?: route53.IHostedZone,
262
+ recordName?: string
263
+ ) {
264
+ if (!distribution) throw `Distribution undefined`
265
+ if (!hostedZone) throw `HostedZone undefined`
266
+
267
+ const aRecord = new route53.ARecord(scope, `${id}`, {
268
+ recordName: recordName,
269
+ target: route53.RecordTarget.fromAlias(new route53Targets.CloudFrontTarget(distribution)),
270
+ zone: hostedZone,
271
+ })
272
+
273
+ utils.createCfnOutput(`${id}-aRecordDomainName`, scope, aRecord.domainName)
274
+
275
+ return aRecord
276
+ }
277
+
278
+ /**
279
+ * @summary Method to create a-record for restApi gateway target
280
+ * @param {string} id scoped id of the resource
281
+ * @param {common.CommonConstruct} scope scope in which this resource is defined
282
+ * @param recordName
283
+ * @param apiDomain
284
+ * @param hostedZone
285
+ */
286
+ public createApiGatewayARecord(
287
+ id: string,
288
+ scope: common.CommonConstruct,
289
+ recordName: string,
290
+ apiDomain: apig.DomainName,
291
+ hostedZone: route53.IHostedZone
292
+ ) {
293
+ let apiRecordName = ''
294
+ if (recordName &amp;&amp; recordName !== '')
295
+ apiRecordName = scope.isProductionStage() ? `${recordName}` : `${recordName}-${scope.props.stage}`
296
+
297
+ const apiARecord = new route53.ARecord(scope, `${id}`, {
298
+ recordName: apiRecordName,
299
+ target: route53.RecordTarget.fromAlias(new route53Targets.ApiGatewayDomain(apiDomain)),
300
+ zone: hostedZone,
301
+ })
302
+
303
+ utils.createCfnOutput(`${id}-a-record-domain-name`, scope, apiARecord.domainName)
304
+
305
+ return apiARecord
306
+ }
307
+ }
308
+ </code></pre>
309
+ </article>
310
+ </section>
311
+
312
+
313
+
314
+
315
+ </div>
316
+
317
+ </div>
318
+ <div id="side-nav" class="side-nav">
319
+ </div>
320
+ </div>
321
+ <script src="scripts/app.min.js"></script>
322
+ <script>PR.prettyPrint();</script>
323
+ <script src="scripts/linenumber.js"> </script>
324
+
325
+ <script src="scripts/search.js"> </script>
326
+
327
+
328
+ </body>
329
+ </html>