@gradientedge/cdk-utils 4.3.2 → 4.4.3

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 (400) 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/package.json +135 -0
  204. package/app/api-destined-function/node_modules/uuid/wrapper.mjs +10 -0
  205. package/app/api-destined-function/node_modules/wrappy/LICENSE +15 -0
  206. package/app/api-destined-function/node_modules/wrappy/README.md +36 -0
  207. package/app/api-destined-function/node_modules/wrappy/package.json +29 -0
  208. package/app/api-destined-function/node_modules/wrappy/wrappy.js +33 -0
  209. package/app/api-destined-function/package.json +29 -0
  210. package/app/api-destined-function/src/lib/lambda.ts +31 -0
  211. package/img/ApiToEventBridgeTarget.jpg +0 -0
  212. package/img/GraphQLApiLambda.jpg +0 -0
  213. package/img/logo.png +0 -0
  214. package/package.json +17 -18
  215. package/src/lib/common/{commonConstruct.ts → construct.ts} +3 -13
  216. package/src/lib/common/index.ts +2 -2
  217. package/src/lib/common/{commonStack.ts → stack.ts} +5 -14
  218. package/src/lib/construct/api-to-eventbridge-target/api-destination-event.ts +17 -0
  219. package/src/lib/construct/api-to-eventbridge-target/api-destined-lambda.ts +20 -0
  220. package/src/lib/construct/api-to-eventbridge-target/api-destined-rest-api.ts +32 -0
  221. package/src/lib/construct/api-to-eventbridge-target/index.ts +4 -0
  222. package/src/lib/construct/api-to-eventbridge-target/main.ts +593 -0
  223. package/src/lib/construct/graphql-api-lambda/index.ts +1 -0
  224. package/src/lib/construct/{graphQLApiLambda.ts → graphql-api-lambda/main.ts} +11 -20
  225. package/src/lib/construct/index.ts +4 -3
  226. package/src/lib/construct/site-with-ecs-backend/index.ts +1 -0
  227. package/src/lib/construct/{siteWithEcsBackend.ts → site-with-ecs-backend/main.ts} +6 -17
  228. package/src/lib/construct/static-site/index.ts +1 -0
  229. package/src/lib/construct/{staticSite.ts → static-site/main.ts} +5 -16
  230. package/src/lib/manager/aws/{acmManager.ts → acm-manager.ts} +3 -2
  231. package/src/lib/manager/aws/{apiManager.ts → api-manager.ts} +6 -5
  232. package/src/lib/manager/aws/{appConfigManager.ts → app-config-manager.ts} +5 -3
  233. package/src/lib/manager/aws/{cloudFrontManager.ts → cloudfront-manager.ts} +3 -2
  234. package/src/lib/manager/aws/{cloudTrailManager.ts → cloudtrail-manager.ts} +3 -2
  235. package/src/lib/manager/aws/{cloudWatchManager.ts → cloudwatch-manager.ts} +5 -3
  236. package/src/lib/manager/aws/{codeBuildManager.ts → codebuild-manager.ts} +3 -2
  237. package/src/lib/manager/aws/{dynamodbManager.ts → dynamodb-manager.ts} +3 -2
  238. package/src/lib/manager/aws/{ecrManager.ts → ecr-manager.ts} +3 -2
  239. package/src/lib/manager/aws/{ecsManager.ts → ecs-manager.ts} +3 -2
  240. package/src/lib/manager/aws/{eksManager.ts → eks-manager.ts} +3 -2
  241. package/src/lib/manager/aws/{eventManager.ts → event-manager.ts} +57 -2
  242. package/src/lib/manager/aws/{iamManager.ts → iam-manager.ts} +23 -17
  243. package/src/lib/manager/aws/index.ts +22 -22
  244. package/src/lib/manager/aws/{lambdaManager.ts → lambda-manager.ts} +4 -3
  245. package/src/lib/manager/aws/{logManager.ts → log-manager.ts} +3 -2
  246. package/src/lib/manager/aws/{route53Manager.ts → route53-manager.ts} +4 -3
  247. package/src/lib/manager/aws/{s3Manager.ts → s3-manager.ts} +3 -2
  248. package/src/lib/manager/aws/{secretsManager.ts → secrets-manager.ts} +3 -2
  249. package/src/lib/manager/aws/{snsManager.ts → sns-manager.ts} +3 -2
  250. package/src/lib/manager/aws/{ssmManager.ts → ssm-manager.ts} +6 -9
  251. package/src/lib/manager/aws/{vpcManager.ts → vpc-manager.ts} +8 -5
  252. package/src/lib/manager/aws/{wafManager.ts → waf-manager.ts} +3 -2
  253. package/src/lib/types/aws/index.ts +221 -32
  254. package/src/lib/utils/aws/index.ts +2 -2
  255. package/src/lib/utils/index.ts +8 -8
  256. package/theme/styles.css +113 -0
  257. package/.releaserc +0 -9
  258. package/dist/index.d.ts +0 -6
  259. package/dist/index.d.ts.map +0 -1
  260. package/dist/index.js.map +0 -1
  261. package/dist/src/lib/common/commonConstruct.d.ts +0 -90
  262. package/dist/src/lib/common/commonConstruct.d.ts.map +0 -1
  263. package/dist/src/lib/common/commonConstruct.js +0 -144
  264. package/dist/src/lib/common/commonConstruct.js.map +0 -1
  265. package/dist/src/lib/common/commonStack.d.ts +0 -65
  266. package/dist/src/lib/common/commonStack.d.ts.map +0 -1
  267. package/dist/src/lib/common/commonStack.js +0 -158
  268. package/dist/src/lib/common/commonStack.js.map +0 -1
  269. package/dist/src/lib/common/index.d.ts +0 -3
  270. package/dist/src/lib/common/index.d.ts.map +0 -1
  271. package/dist/src/lib/common/index.js +0 -15
  272. package/dist/src/lib/common/index.js.map +0 -1
  273. package/dist/src/lib/construct/graphQLApiLambda.d.ts +0 -122
  274. package/dist/src/lib/construct/graphQLApiLambda.d.ts.map +0 -1
  275. package/dist/src/lib/construct/graphQLApiLambda.js +0 -211
  276. package/dist/src/lib/construct/graphQLApiLambda.js.map +0 -1
  277. package/dist/src/lib/construct/index.d.ts +0 -4
  278. package/dist/src/lib/construct/index.d.ts.map +0 -1
  279. package/dist/src/lib/construct/index.js +0 -16
  280. package/dist/src/lib/construct/index.js.map +0 -1
  281. package/dist/src/lib/construct/siteWithEcsBackend.d.ts +0 -179
  282. package/dist/src/lib/construct/siteWithEcsBackend.d.ts.map +0 -1
  283. package/dist/src/lib/construct/siteWithEcsBackend.js +0 -339
  284. package/dist/src/lib/construct/siteWithEcsBackend.js.map +0 -1
  285. package/dist/src/lib/construct/staticSite.d.ts +0 -106
  286. package/dist/src/lib/construct/staticSite.d.ts.map +0 -1
  287. package/dist/src/lib/construct/staticSite.js +0 -180
  288. package/dist/src/lib/construct/staticSite.js.map +0 -1
  289. package/dist/src/lib/manager/aws/acmManager.d.ts +0 -46
  290. package/dist/src/lib/manager/aws/acmManager.d.ts.map +0 -1
  291. package/dist/src/lib/manager/aws/acmManager.js +0 -90
  292. package/dist/src/lib/manager/aws/acmManager.js.map +0 -1
  293. package/dist/src/lib/manager/aws/apiManager.d.ts +0 -43
  294. package/dist/src/lib/manager/aws/apiManager.d.ts.map +0 -1
  295. package/dist/src/lib/manager/aws/apiManager.js +0 -111
  296. package/dist/src/lib/manager/aws/apiManager.js.map +0 -1
  297. package/dist/src/lib/manager/aws/appConfigManager.d.ts +0 -64
  298. package/dist/src/lib/manager/aws/appConfigManager.d.ts.map +0 -1
  299. package/dist/src/lib/manager/aws/appConfigManager.js +0 -147
  300. package/dist/src/lib/manager/aws/appConfigManager.js.map +0 -1
  301. package/dist/src/lib/manager/aws/cloudFrontManager.d.ts +0 -112
  302. package/dist/src/lib/manager/aws/cloudFrontManager.d.ts.map +0 -1
  303. package/dist/src/lib/manager/aws/cloudFrontManager.js +0 -282
  304. package/dist/src/lib/manager/aws/cloudFrontManager.js.map +0 -1
  305. package/dist/src/lib/manager/aws/cloudTrailManager.d.ts +0 -48
  306. package/dist/src/lib/manager/aws/cloudTrailManager.d.ts.map +0 -1
  307. package/dist/src/lib/manager/aws/cloudTrailManager.js +0 -99
  308. package/dist/src/lib/manager/aws/cloudTrailManager.js.map +0 -1
  309. package/dist/src/lib/manager/aws/cloudWatchManager.d.ts +0 -121
  310. package/dist/src/lib/manager/aws/cloudWatchManager.d.ts.map +0 -1
  311. package/dist/src/lib/manager/aws/cloudWatchManager.js +0 -351
  312. package/dist/src/lib/manager/aws/cloudWatchManager.js.map +0 -1
  313. package/dist/src/lib/manager/aws/codeBuildManager.d.ts +0 -40
  314. package/dist/src/lib/manager/aws/codeBuildManager.d.ts.map +0 -1
  315. package/dist/src/lib/manager/aws/codeBuildManager.js +0 -94
  316. package/dist/src/lib/manager/aws/codeBuildManager.js.map +0 -1
  317. package/dist/src/lib/manager/aws/dynamodbManager.d.ts +0 -32
  318. package/dist/src/lib/manager/aws/dynamodbManager.d.ts.map +0 -1
  319. package/dist/src/lib/manager/aws/dynamodbManager.js +0 -79
  320. package/dist/src/lib/manager/aws/dynamodbManager.js.map +0 -1
  321. package/dist/src/lib/manager/aws/ecrManager.d.ts +0 -31
  322. package/dist/src/lib/manager/aws/ecrManager.d.ts.map +0 -1
  323. package/dist/src/lib/manager/aws/ecrManager.js +0 -60
  324. package/dist/src/lib/manager/aws/ecrManager.js.map +0 -1
  325. package/dist/src/lib/manager/aws/ecsManager.d.ts +0 -48
  326. package/dist/src/lib/manager/aws/ecsManager.d.ts.map +0 -1
  327. package/dist/src/lib/manager/aws/ecsManager.js +0 -103
  328. package/dist/src/lib/manager/aws/ecsManager.js.map +0 -1
  329. package/dist/src/lib/manager/aws/eksManager.d.ts +0 -36
  330. package/dist/src/lib/manager/aws/eksManager.d.ts.map +0 -1
  331. package/dist/src/lib/manager/aws/eksManager.js +0 -109
  332. package/dist/src/lib/manager/aws/eksManager.js.map +0 -1
  333. package/dist/src/lib/manager/aws/eventManager.d.ts +0 -51
  334. package/dist/src/lib/manager/aws/eventManager.d.ts.map +0 -1
  335. package/dist/src/lib/manager/aws/eventManager.js +0 -120
  336. package/dist/src/lib/manager/aws/eventManager.js.map +0 -1
  337. package/dist/src/lib/manager/aws/iamManager.d.ts +0 -156
  338. package/dist/src/lib/manager/aws/iamManager.d.ts.map +0 -1
  339. package/dist/src/lib/manager/aws/iamManager.js +0 -376
  340. package/dist/src/lib/manager/aws/iamManager.js.map +0 -1
  341. package/dist/src/lib/manager/aws/index.d.ts +0 -23
  342. package/dist/src/lib/manager/aws/index.d.ts.map +0 -1
  343. package/dist/src/lib/manager/aws/index.js +0 -35
  344. package/dist/src/lib/manager/aws/index.js.map +0 -1
  345. package/dist/src/lib/manager/aws/lambdaManager.d.ts +0 -94
  346. package/dist/src/lib/manager/aws/lambdaManager.d.ts.map +0 -1
  347. package/dist/src/lib/manager/aws/lambdaManager.js +0 -196
  348. package/dist/src/lib/manager/aws/lambdaManager.js.map +0 -1
  349. package/dist/src/lib/manager/aws/logManager.d.ts +0 -51
  350. package/dist/src/lib/manager/aws/logManager.d.ts.map +0 -1
  351. package/dist/src/lib/manager/aws/logManager.js +0 -108
  352. package/dist/src/lib/manager/aws/logManager.js.map +0 -1
  353. package/dist/src/lib/manager/aws/route53Manager.d.ts +0 -68
  354. package/dist/src/lib/manager/aws/route53Manager.d.ts.map +0 -1
  355. package/dist/src/lib/manager/aws/route53Manager.js +0 -158
  356. package/dist/src/lib/manager/aws/route53Manager.js.map +0 -1
  357. package/dist/src/lib/manager/aws/s3Manager.d.ts +0 -73
  358. package/dist/src/lib/manager/aws/s3Manager.d.ts.map +0 -1
  359. package/dist/src/lib/manager/aws/s3Manager.js +0 -202
  360. package/dist/src/lib/manager/aws/s3Manager.js.map +0 -1
  361. package/dist/src/lib/manager/aws/secretsManager.d.ts +0 -57
  362. package/dist/src/lib/manager/aws/secretsManager.d.ts.map +0 -1
  363. package/dist/src/lib/manager/aws/secretsManager.js +0 -116
  364. package/dist/src/lib/manager/aws/secretsManager.js.map +0 -1
  365. package/dist/src/lib/manager/aws/snsManager.d.ts +0 -42
  366. package/dist/src/lib/manager/aws/snsManager.d.ts.map +0 -1
  367. package/dist/src/lib/manager/aws/snsManager.js +0 -90
  368. package/dist/src/lib/manager/aws/snsManager.js.map +0 -1
  369. package/dist/src/lib/manager/aws/ssmManager.d.ts +0 -64
  370. package/dist/src/lib/manager/aws/ssmManager.d.ts.map +0 -1
  371. package/dist/src/lib/manager/aws/ssmManager.js +0 -128
  372. package/dist/src/lib/manager/aws/ssmManager.js.map +0 -1
  373. package/dist/src/lib/manager/aws/vpcManager.d.ts +0 -44
  374. package/dist/src/lib/manager/aws/vpcManager.d.ts.map +0 -1
  375. package/dist/src/lib/manager/aws/vpcManager.js +0 -92
  376. package/dist/src/lib/manager/aws/vpcManager.js.map +0 -1
  377. package/dist/src/lib/manager/aws/wafManager.d.ts +0 -39
  378. package/dist/src/lib/manager/aws/wafManager.d.ts.map +0 -1
  379. package/dist/src/lib/manager/aws/wafManager.js +0 -89
  380. package/dist/src/lib/manager/aws/wafManager.js.map +0 -1
  381. package/dist/src/lib/manager/index.d.ts +0 -2
  382. package/dist/src/lib/manager/index.d.ts.map +0 -1
  383. package/dist/src/lib/manager/index.js +0 -14
  384. package/dist/src/lib/manager/index.js.map +0 -1
  385. package/dist/src/lib/types/aws/index.d.ts +0 -294
  386. package/dist/src/lib/types/aws/index.d.ts.map +0 -1
  387. package/dist/src/lib/types/aws/index.js +0 -3
  388. package/dist/src/lib/types/aws/index.js.map +0 -1
  389. package/dist/src/lib/types/index.d.ts +0 -2
  390. package/dist/src/lib/types/index.d.ts.map +0 -1
  391. package/dist/src/lib/types/index.js +0 -14
  392. package/dist/src/lib/types/index.js.map +0 -1
  393. package/dist/src/lib/utils/aws/index.d.ts +0 -16
  394. package/dist/src/lib/utils/aws/index.d.ts.map +0 -1
  395. package/dist/src/lib/utils/aws/index.js +0 -50
  396. package/dist/src/lib/utils/aws/index.js.map +0 -1
  397. package/dist/src/lib/utils/index.d.ts +0 -63
  398. package/dist/src/lib/utils/index.d.ts.map +0 -1
  399. package/dist/src/lib/utils/index.js +0 -85
  400. package/dist/src/lib/utils/index.js.map +0 -1
@@ -1,94 +0,0 @@
1
- import * as pylambda from '@aws-cdk/aws-lambda-python-alpha';
2
- import * as cdk from 'aws-cdk-lib';
3
- import * as ec2 from 'aws-cdk-lib/aws-ec2';
4
- import * as efs from 'aws-cdk-lib/aws-efs';
5
- import * as iam from 'aws-cdk-lib/aws-iam';
6
- import * as lambda from 'aws-cdk-lib/aws-lambda';
7
- import * as common from '../../common';
8
- import * as types from '../../types';
9
- /**
10
- * @stability stable
11
- * @category Compute
12
- * @summary Provides operations on AWS Lambda.
13
- * - A new instance of this class is injected into {@link common.CommonConstruct} constructor.
14
- * - If a custom construct extends {@link common.CommonConstruct}, an instance is available within the context.
15
- * @example
16
- * import * as common from '@gradientedge/cdk-utils'
17
- *
18
- * class CustomConstruct extends common.common.CommonConstruct {
19
- * constructor(parent: cdk.Construct, id: string, props: common.CommonStackProps) {
20
- * super(parent, id, props)
21
- * this.props = props
22
- * this.lambdaManager.createLambdaFunction('MyFunction', this, role, layers, code)
23
- * }
24
- * }
25
- *
26
- * @see [CDK Lambda Module]{@link https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_lambda-readme.html}
27
- */
28
- export declare class LambdaManager {
29
- /**
30
- * @summary Method to create a lambda layer (nodejs)
31
- * @param {string} id scoped id of the resource
32
- * @param {common.CommonConstruct} scope scope in which this resource is defined
33
- * @param {lambda.AssetCode} code
34
- */
35
- createLambdaLayer(id: string, scope: common.CommonConstruct, code: lambda.AssetCode): cdk.aws_lambda.LayerVersion;
36
- /**
37
- * @summary Method to create a lambda layer (python)
38
- * @param {string} id scoped id of the resource
39
- * @param {common.CommonConstruct} scope scope in which this resource is defined
40
- * @param {string} entry path to layer source
41
- */
42
- createPythonLambdaLayer(id: string, scope: common.CommonConstruct, entry: string): pylambda.PythonLayerVersion;
43
- /**
44
- * @summary Method to create a lambda function (python)
45
- * @param {string} id scoped id of the resource
46
- * @param {common.CommonConstruct} scope scope in which this resource is defined
47
- * @param {types.LambdaProps} props
48
- * @param {iam.Role | iam.CfnRole} role
49
- * @param {lambda.ILayerVersion[]} layers
50
- * @param {string} entry path to lambda source
51
- * @param {string?} index
52
- * @param {string?} handler
53
- * @param {Map<string, string>?} environment
54
- * @param {ec2.IVpc?} vpc
55
- * @param {ec2.ISecurityGroup[]?} securityGroups
56
- * @param {efs.IAccessPoint?} accessPoint
57
- * @param {string?} mountPath
58
- * @param {ec2.SubnetSelection?} vpcSubnets
59
- */
60
- createPythonLambdaFunction(id: string, scope: common.CommonConstruct, props: types.LambdaProps, role: iam.Role | iam.CfnRole, layers: lambda.ILayerVersion[], entry: string, index?: string, handler?: string, environment?: any, vpc?: ec2.IVpc, securityGroups?: ec2.ISecurityGroup[], accessPoint?: efs.IAccessPoint, mountPath?: string, vpcSubnets?: ec2.SubnetSelection): pylambda.PythonFunction;
61
- /**
62
- * @summary Method to create a lambda function (nodejs)
63
- * @param {string} id scoped id of the resource
64
- * @param {common.CommonConstruct} scope scope in which this resource is defined
65
- * @param {types.LambdaProps} props
66
- * @param {iam.Role | iam.CfnRole} role
67
- * @param {lambda.ILayerVersion[]} layers
68
- * @param {lambda.AssetCode} code
69
- * @param {string?} handler
70
- * @param {Map<string, string>?} environment
71
- * @param {ec2.IVpc?} vpc
72
- * @param {ec2.ISecurityGroup[]?} securityGroups
73
- * @param {efs.IAccessPoint?} accessPoint
74
- * @param {string?} mountPath
75
- * @param {ec2.SubnetSelection?} vpcSubnets
76
- */
77
- createLambdaFunction(id: string, scope: common.CommonConstruct, props: types.LambdaProps, role: iam.Role | iam.CfnRole, layers: lambda.ILayerVersion[], code: lambda.AssetCode, handler?: string, environment?: any, vpc?: ec2.IVpc, securityGroups?: ec2.ISecurityGroup[], accessPoint?: efs.IAccessPoint, mountPath?: string, vpcSubnets?: ec2.SubnetSelection): cdk.aws_lambda.Function;
78
- /**
79
- * @summary Method to provision a Lambda@Edge function
80
- *
81
- * @param {string} id scoped id of the resource
82
- * @param {common.CommonConstruct} scope scope in which this resource is defined
83
- * @param {types.LambdaEdgeProps} props lambda@edge properties
84
- * @param {lambda.ILayerVersion[]} layers
85
- * @param {lambda.AssetCode} code
86
- * @param {Map<string, string>?} environment
87
- * @param {ec2.IVpc?} vpc
88
- * @param {ec2.ISecurityGroup[]?} securityGroups
89
- * @param {efs.IAccessPoint?} accessPoint
90
- * @param {string?} mountPath
91
- */
92
- createEdgeFunction(id: string, scope: common.CommonConstruct, props: types.LambdaEdgeProps, layers: lambda.ILayerVersion[], code: lambda.AssetCode, environment?: any, vpc?: ec2.IVpc, securityGroups?: ec2.ISecurityGroup[], accessPoint?: efs.IAccessPoint, mountPath?: string): cdk.aws_cloudfront.experimental.EdgeFunction;
93
- }
94
- //# sourceMappingURL=lambdaManager.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"lambdaManager.d.ts","sourceRoot":"","sources":["../../../../../src/lib/manager/aws/lambdaManager.ts"],"names":[],"mappings":"AAAA,OA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eG;IACI,oBAAoB,CACzB,EAAE,EAAE,MAAM,EACV,KAAK,EAAE,MAAM,CAAC,eAAe,EAC7B,KAAK,EAAE,KAAK,CAAC,WAAW,EACxB,IAAI,EAAE,GAAG,CAAC,IAAI,GAAG,GAAG,CAAC,OAAO,EAC5B,MAAM,EAAE,MAAM,CAAC,aAAa,EAAE,EAC9B,IAAI,EAAE,MAAM,CAAC,SAAS,EACtB,OAAO,CAAC,EAAE,MAAM,EAChB,WAAW,CAAC,EAAE,GAAG,EACjB,GAAG,CAAC,EAAE,GAAG,CAAC,IAAI,EACd,cAAc,CAAC,EAAE,GAAG,CAAC,cAAc,EAAE,EACrC,WAAW,CAAC,EAAE,GAAG,CAAC,YAAY,EAC9B,SAAS,CAAC,EAAE,MAAM,EAClB,UAAU,CAAC,EAAE,GAAG,CAAC,eAAe;IAmClC;;;;;;;;;;;;;OAaG;IACI,kBAAkB,CACvB,EAAE,EAAE,MAAM,EACV,KAAK,EAAE,MAAM,CAAC,eAAe,EAC7B,KAAK,EAAE,KAAK,CAAC,eAAe,EAC5B,MAAM,EAAE,MAAM,CAAC,aAAa,EAAE,EAC9B,IAAI,EAAE,MAAM,CAAC,SAAS,EACtB,WAAW,CAAC,EAAE,GAAG,EACjB,GAAG,CAAC,EAAE,GAAG,CAAC,IAAI,EACd,cAAc,CAAC,EAAE,GAAG,CAAC,cAAc,EAAE,EACrC,WAAW,CAAC,EAAE,GAAG,CAAC,YAAY,EAC9B,SAAS,CAAC,EAAE,MAAM;CAerB"}
@@ -1,196 +0,0 @@
1
- "use strict";
2
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
- if (k2 === undefined) k2 = k;
4
- Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
5
- }) : (function(o, m, k, k2) {
6
- if (k2 === undefined) k2 = k;
7
- o[k2] = m[k];
8
- }));
9
- var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
10
- Object.defineProperty(o, "default", { enumerable: true, value: v });
11
- }) : function(o, v) {
12
- o["default"] = v;
13
- });
14
- var __importStar = (this && this.__importStar) || function (mod) {
15
- if (mod && mod.__esModule) return mod;
16
- var result = {};
17
- if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
18
- __setModuleDefault(result, mod);
19
- return result;
20
- };
21
- Object.defineProperty(exports, "__esModule", { value: true });
22
- exports.LambdaManager = void 0;
23
- const pylambda = __importStar(require("@aws-cdk/aws-lambda-python-alpha"));
24
- const cdk = __importStar(require("aws-cdk-lib"));
25
- const iam = __importStar(require("aws-cdk-lib/aws-iam"));
26
- const lambda = __importStar(require("aws-cdk-lib/aws-lambda"));
27
- const utils = __importStar(require("../../utils"));
28
- const cloudFrontManager_1 = require("./cloudFrontManager");
29
- /**
30
- * @stability stable
31
- * @category Compute
32
- * @summary Provides operations on AWS Lambda.
33
- * - A new instance of this class is injected into {@link common.CommonConstruct} constructor.
34
- * - If a custom construct extends {@link common.CommonConstruct}, an instance is available within the context.
35
- * @example
36
- * import * as common from '@gradientedge/cdk-utils'
37
- *
38
- * class CustomConstruct extends common.common.CommonConstruct {
39
- * constructor(parent: cdk.Construct, id: string, props: common.CommonStackProps) {
40
- * super(parent, id, props)
41
- * this.props = props
42
- * this.lambdaManager.createLambdaFunction('MyFunction', this, role, layers, code)
43
- * }
44
- * }
45
- *
46
- * @see [CDK Lambda Module]{@link https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_lambda-readme.html}
47
- */
48
- class LambdaManager {
49
- /**
50
- * @summary Method to create a lambda layer (nodejs)
51
- * @param {string} id scoped id of the resource
52
- * @param {common.CommonConstruct} scope scope in which this resource is defined
53
- * @param {lambda.AssetCode} code
54
- */
55
- createLambdaLayer(id, scope, code) {
56
- const lambdaLayer = new lambda.LayerVersion(scope, `${id}`, {
57
- compatibleRuntimes: [lambda.Runtime.NODEJS_14_X],
58
- code: code,
59
- description: `${id}`,
60
- layerVersionName: `${id}-${scope.props.stage}`,
61
- });
62
- utils.createCfnOutput(`${id}-lambdaLayerArn`, scope, lambdaLayer.layerVersionArn);
63
- return lambdaLayer;
64
- }
65
- /**
66
- * @summary Method to create a lambda layer (python)
67
- * @param {string} id scoped id of the resource
68
- * @param {common.CommonConstruct} scope scope in which this resource is defined
69
- * @param {string} entry path to layer source
70
- */
71
- createPythonLambdaLayer(id, scope, entry) {
72
- const lambdaLayer = new pylambda.PythonLayerVersion(scope, `${id}`, {
73
- compatibleRuntimes: [lambda.Runtime.PYTHON_3_8],
74
- description: `${id}`,
75
- entry: entry,
76
- layerVersionName: `${id}-${scope.props.stage}`,
77
- });
78
- utils.createCfnOutput(`${id}-lambdaLayerArn`, scope, lambdaLayer.layerVersionArn);
79
- return lambdaLayer;
80
- }
81
- /**
82
- * @summary Method to create a lambda function (python)
83
- * @param {string} id scoped id of the resource
84
- * @param {common.CommonConstruct} scope scope in which this resource is defined
85
- * @param {types.LambdaProps} props
86
- * @param {iam.Role | iam.CfnRole} role
87
- * @param {lambda.ILayerVersion[]} layers
88
- * @param {string} entry path to lambda source
89
- * @param {string?} index
90
- * @param {string?} handler
91
- * @param {Map<string, string>?} environment
92
- * @param {ec2.IVpc?} vpc
93
- * @param {ec2.ISecurityGroup[]?} securityGroups
94
- * @param {efs.IAccessPoint?} accessPoint
95
- * @param {string?} mountPath
96
- * @param {ec2.SubnetSelection?} vpcSubnets
97
- */
98
- createPythonLambdaFunction(id, scope, props, role, layers, entry, index, handler, environment, vpc, securityGroups, accessPoint, mountPath, vpcSubnets) {
99
- if (!props)
100
- throw `Lambda props undefined`;
101
- const functionName = `${props.functionName}-${scope.props.stage}`;
102
- const lambdaFunction = new pylambda.PythonFunction(scope, `${id}`, {
103
- allowPublicSubnet: !!vpc,
104
- functionName: functionName,
105
- index: index,
106
- handler: handler,
107
- runtime: lambda.Runtime.PYTHON_3_8,
108
- entry: entry,
109
- environment: {
110
- REGION: scope.props.region,
111
- ...environment,
112
- },
113
- filesystem: accessPoint ? lambda.FileSystem.fromEfsAccessPoint(accessPoint, mountPath || '/mnt/msg') : undefined,
114
- layers: layers,
115
- logRetention: props.logRetention,
116
- memorySize: props.memorySize,
117
- onFailure: props.onFailure,
118
- onSuccess: props.onSuccess,
119
- reservedConcurrentExecutions: props.reservedConcurrentExecutions,
120
- role: role instanceof iam.Role ? role : undefined,
121
- securityGroups: securityGroups,
122
- timeout: props.timeoutInSecs ? cdk.Duration.seconds(props.timeoutInSecs) : cdk.Duration.minutes(1),
123
- vpc: vpc,
124
- vpcSubnets: vpcSubnets,
125
- });
126
- utils.createCfnOutput(`${id}-lambdaArn`, scope, lambdaFunction.functionArn);
127
- utils.createCfnOutput(`${id}-lambdaName`, scope, lambdaFunction.functionName);
128
- return lambdaFunction;
129
- }
130
- /**
131
- * @summary Method to create a lambda function (nodejs)
132
- * @param {string} id scoped id of the resource
133
- * @param {common.CommonConstruct} scope scope in which this resource is defined
134
- * @param {types.LambdaProps} props
135
- * @param {iam.Role | iam.CfnRole} role
136
- * @param {lambda.ILayerVersion[]} layers
137
- * @param {lambda.AssetCode} code
138
- * @param {string?} handler
139
- * @param {Map<string, string>?} environment
140
- * @param {ec2.IVpc?} vpc
141
- * @param {ec2.ISecurityGroup[]?} securityGroups
142
- * @param {efs.IAccessPoint?} accessPoint
143
- * @param {string?} mountPath
144
- * @param {ec2.SubnetSelection?} vpcSubnets
145
- */
146
- createLambdaFunction(id, scope, props, role, layers, code, handler, environment, vpc, securityGroups, accessPoint, mountPath, vpcSubnets) {
147
- if (!props)
148
- throw `Lambda props undefined`;
149
- const functionName = `${props.functionName}-${scope.props.stage}`;
150
- const lambdaFunction = new lambda.Function(scope, `${id}`, {
151
- allowPublicSubnet: !!vpc,
152
- functionName: functionName,
153
- handler: handler || 'index.lambda_handler',
154
- runtime: lambda.Runtime.NODEJS_14_X,
155
- code: code,
156
- environment: {
157
- REGION: scope.props.region,
158
- ...environment,
159
- },
160
- filesystem: accessPoint ? lambda.FileSystem.fromEfsAccessPoint(accessPoint, mountPath || '/mnt/msg') : undefined,
161
- layers: layers,
162
- logRetention: props.logRetention,
163
- memorySize: props.memorySize,
164
- onFailure: props.onFailure,
165
- onSuccess: props.onSuccess,
166
- reservedConcurrentExecutions: props.reservedConcurrentExecutions,
167
- role: role instanceof iam.Role ? role : undefined,
168
- securityGroups: securityGroups,
169
- timeout: props.timeoutInSecs ? cdk.Duration.seconds(props.timeoutInSecs) : cdk.Duration.minutes(1),
170
- vpc: vpc,
171
- vpcSubnets: vpcSubnets,
172
- });
173
- utils.createCfnOutput(`${id}-lambdaArn`, scope, lambdaFunction.functionArn);
174
- utils.createCfnOutput(`${id}-lambdaName`, scope, lambdaFunction.functionName);
175
- return lambdaFunction;
176
- }
177
- /**
178
- * @summary Method to provision a Lambda@Edge function
179
- *
180
- * @param {string} id scoped id of the resource
181
- * @param {common.CommonConstruct} scope scope in which this resource is defined
182
- * @param {types.LambdaEdgeProps} props lambda@edge properties
183
- * @param {lambda.ILayerVersion[]} layers
184
- * @param {lambda.AssetCode} code
185
- * @param {Map<string, string>?} environment
186
- * @param {ec2.IVpc?} vpc
187
- * @param {ec2.ISecurityGroup[]?} securityGroups
188
- * @param {efs.IAccessPoint?} accessPoint
189
- * @param {string?} mountPath
190
- */
191
- createEdgeFunction(id, scope, props, layers, code, environment, vpc, securityGroups, accessPoint, mountPath) {
192
- return new cloudFrontManager_1.CloudFrontManager().createEdgeFunction(id, scope, props, layers, code, environment, vpc, securityGroups, accessPoint, mountPath);
193
- }
194
- }
195
- exports.LambdaManager = LambdaManager;
196
- //# sourceMappingURL=lambdaManager.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"lambdaManager.js","sourceRoot":"","sources":["../../../../../src/lib/manager/aws/lambdaManager.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;AAAA,2EAA4D;AAC5D,iDAAkC;AAGlC,yDAA0C;AAC1C,+DAAgD;AAGhD,mDAAoC;AACpC,2DAAuD;A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AU,EAAE,KAAK,CAAC,UAAU;YAC5B,SAAS,EAAE,KAAK,CAAC,SAAS;YAC1B,SAAS,EAAE,KAAK,CAAC,SAAS;YAC1B,4BAA4B,EAAE,KAAK,CAAC,4BAA4B;YAChE,IAAI,EAAE,IAAI,YAAY,GAAG,CAAC,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,SAAS;YACjD,cAAc,EAAE,cAAc;YAC9B,OAAO,EAAE,KAAK,CAAC,aAAa,CAAC,CAAC,CAAC,GAAG,CAAC,QAAQ,CAAC,OAAO,CAAC,KAAK,CAAC,aAAa,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,QAAQ,CAAC,OAAO,CAAC,CAAC,CAAC;YAClG,GAAG,EAAE,GAAG;YACR,UAAU,EAAE,UAAU;SACvB,CAAC,CAAA;QAEF,KAAK,CAAC,eAAe,CAAC,GAAG,EAAE,YAAY,EAAE,KAAK,EAAE,cAAc,CAAC,WAAW,CAAC,CAAA;QAC3E,KAAK,CAAC,eAAe,CAAC,GAAG,EAAE,aAAa,EAAE,KAAK,EAAE,cAAc,CAAC,YAAY,CAAC,CAAA;QAE7E,OAAO,cAAc,CAAA;IACvB,CAAC;IAED;;;;;;;;;;;;;OAaG;IACI,kBAAkB,CACvB,EAAU,EACV,KAA6B,EAC7B,KAA4B,EAC5B,MAA8B,EAC9B,IAAsB,EACtB,WAAiB,EACjB,GAAc,EACd,cAAqC,EACrC,WAA8B,EAC9B,SAAkB;QAElB,OAAO,IAAI,qCAAiB,EAAE,CAAC,kBAAkB,CAC/C,EAAE,EACF,KAAK,EACL,KAAK,EACL,MAAM,EACN,IAAI,EACJ,WAAW,EACX,GAAG,EACH,cAAc,EACd,WAAW,EACX,SAAS,CACV,CAAA;IACH,CAAC;CACF;AAlND,sCAkNC"}
@@ -1,51 +0,0 @@
1
- import * as cdk from 'aws-cdk-lib';
2
- import * as logs from 'aws-cdk-lib/aws-logs';
3
- import * as common from '../../common';
4
- import * as types from '../../types';
5
- /**
6
- * @stability stable
7
- * @category Management & Governance
8
- * @summary Provides operations on AWS CloudWatch.
9
- * - A new instance of this class is injected into {@link common.CommonConstruct} constructor.
10
- * - If a custom construct extends {@link common.CommonConstruct}, an instance is available within the context.
11
- * @example
12
- * import * as common from '@gradientedge/cdk-utils'
13
- *
14
- * class CustomConstruct extends common.common.CommonConstruct {
15
- * constructor(parent: cdk.Construct, id: string, props: common.CommonStackProps) {
16
- * super(parent, id, props)
17
- * this.props = props
18
- * this.logsManager.createMetricFilter('MyMetricFilter', this, logGroup)
19
- * }
20
- * }
21
- *
22
- * @see [CDK CloudWatch Module]{@link https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_logs-readme.html}
23
- */
24
- export declare class LogManager {
25
- /**
26
- * @summary Method to create a cloudwatch metric filter
27
- * @param {string} id scoped id of the resource
28
- * @param {common.CommonConstruct} scope scope in which this resource is defined
29
- * @param {types.MetricFilterProps} props
30
- * @param {logs.ILogGroup} logGroup
31
- */
32
- createMetricFilter(id: string, scope: common.CommonConstruct, props: types.MetricFilterProps, logGroup: logs.ILogGroup): {
33
- metricFilter: cdk.aws_logs.MetricFilter;
34
- metric: cdk.aws_cloudwatch.Metric;
35
- };
36
- /**
37
- * @summary Method to create a cloudwatch log group (cfn)
38
- * @param {string} id scoped id of the resource
39
- * @param {common.CommonConstruct} scope scope in which this resource is defined
40
- * @param {types.LogProps} props
41
- */
42
- createCfnLogGroup(id: string, scope: common.CommonConstruct, props: types.LogProps): cdk.aws_logs.CfnLogGroup;
43
- /**
44
- * @summary Method to create a cloudwatch log group
45
- * @param {string} id scoped id of the resource
46
- * @param {common.CommonConstruct} scope scope in which this resource is defined
47
- * @param {types.LogProps} props
48
- */
49
- createLogGroup(id: string, scope: common.CommonConstruct, props: types.LogProps): cdk.aws_logs.LogGroup;
50
- }
51
- //# sourceMappingURL=logManager.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"logManager.d.ts","sourceRoot":"","sources":["../../../../../src/lib/manager/aws/logManager.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,GAAG,MAAM,aAAa,CAAA;AAClC,OAAO,KAAK,IAAI,MAAM,sBAAsB,CAAA;AAC5C,OAAO,KAAK,MAAM,MAAM,cAAc,CAAA;AACtC,OAAO,KAAK,KAAK,MAAM,aAAa,CAAA;AAGpC;;;;;;;;;;;;;;;;;;GAkBG;AACH,qBAAa,UAAU;IACrB;;;;;;OAMG;IACI,kBAAkB,CACvB,EAAE,EAAE,MAAM,EACV,KAAK,EAAE,MAAM,CAAC,eAAe,EAC7B,KAAK,EAAE,KAAK,CAAC,iBAAiB,EAC9B,QAAQ,EAAE,IAAI,CAAC,SAAS;;;;IAwB1B;;;;;OAKG;IACI,iBAAiB,CAAC,EAAE,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,CAAC,eAAe,EAAE,KAAK,EAAE,KAAK,CAAC,QAAQ;IAazF;;;;;OAKG;IACI,cAAc,CAAC,EAAE,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,CAAC,eAAe,EAAE,KAAK,EAAE,KAAK,CAAC,QAAQ;CAavF"}
@@ -1,108 +0,0 @@
1
- "use strict";
2
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
- if (k2 === undefined) k2 = k;
4
- Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
5
- }) : (function(o, m, k, k2) {
6
- if (k2 === undefined) k2 = k;
7
- o[k2] = m[k];
8
- }));
9
- var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
10
- Object.defineProperty(o, "default", { enumerable: true, value: v });
11
- }) : function(o, v) {
12
- o["default"] = v;
13
- });
14
- var __importStar = (this && this.__importStar) || function (mod) {
15
- if (mod && mod.__esModule) return mod;
16
- var result = {};
17
- if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
18
- __setModuleDefault(result, mod);
19
- return result;
20
- };
21
- Object.defineProperty(exports, "__esModule", { value: true });
22
- exports.LogManager = void 0;
23
- const cdk = __importStar(require("aws-cdk-lib"));
24
- const logs = __importStar(require("aws-cdk-lib/aws-logs"));
25
- const utils = __importStar(require("../../utils"));
26
- /**
27
- * @stability stable
28
- * @category Management & Governance
29
- * @summary Provides operations on AWS CloudWatch.
30
- * - A new instance of this class is injected into {@link common.CommonConstruct} constructor.
31
- * - If a custom construct extends {@link common.CommonConstruct}, an instance is available within the context.
32
- * @example
33
- * import * as common from '@gradientedge/cdk-utils'
34
- *
35
- * class CustomConstruct extends common.common.CommonConstruct {
36
- * constructor(parent: cdk.Construct, id: string, props: common.CommonStackProps) {
37
- * super(parent, id, props)
38
- * this.props = props
39
- * this.logsManager.createMetricFilter('MyMetricFilter', this, logGroup)
40
- * }
41
- * }
42
- *
43
- * @see [CDK CloudWatch Module]{@link https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_logs-readme.html}
44
- */
45
- class LogManager {
46
- /**
47
- * @summary Method to create a cloudwatch metric filter
48
- * @param {string} id scoped id of the resource
49
- * @param {common.CommonConstruct} scope scope in which this resource is defined
50
- * @param {types.MetricFilterProps} props
51
- * @param {logs.ILogGroup} logGroup
52
- */
53
- createMetricFilter(id, scope, props, logGroup) {
54
- if (!props)
55
- throw `MetricFilter props undefined`;
56
- const metricFilter = new logs.MetricFilter(scope, `${id}`, {
57
- logGroup: logGroup,
58
- metricName: props.metricName,
59
- metricNamespace: props.metricNamespace,
60
- metricValue: props.metricValue,
61
- defaultValue: props.defaultValue,
62
- filterPattern: props.filterPattern,
63
- });
64
- const metric = props.options
65
- ? metricFilter.metric({
66
- dimensionsMap: props.options.dimensionsMap,
67
- statistic: props.options.statistic,
68
- period: props.periodInSecs ? cdk.Duration.seconds(props.periodInSecs) : cdk.Duration.minutes(5),
69
- })
70
- : metricFilter.metric();
71
- return { metricFilter, metric };
72
- }
73
- /**
74
- * @summary Method to create a cloudwatch log group (cfn)
75
- * @param {string} id scoped id of the resource
76
- * @param {common.CommonConstruct} scope scope in which this resource is defined
77
- * @param {types.LogProps} props
78
- */
79
- createCfnLogGroup(id, scope, props) {
80
- if (!props)
81
- throw `Logs props undefined`;
82
- const logGroup = new logs.CfnLogGroup(scope, `${id}`, {
83
- logGroupName: `${props.logGroupName}-${scope.props.stage}`,
84
- retentionInDays: props.retention,
85
- });
86
- utils.createCfnOutput(`${id}-logGroupArn`, scope, logGroup.attrArn);
87
- return logGroup;
88
- }
89
- /**
90
- * @summary Method to create a cloudwatch log group
91
- * @param {string} id scoped id of the resource
92
- * @param {common.CommonConstruct} scope scope in which this resource is defined
93
- * @param {types.LogProps} props
94
- */
95
- createLogGroup(id, scope, props) {
96
- if (!props)
97
- throw `Logs props undefined`;
98
- const logGroup = new logs.LogGroup(scope, `${id}`, {
99
- logGroupName: `${props.logGroupName}-${scope.props.stage}`,
100
- retention: props.retention,
101
- removalPolicy: props.removalPolicy ?? cdk.RemovalPolicy.DESTROY,
102
- });
103
- utils.createCfnOutput(`${id}-logGroupArn`, scope, logGroup.logGroupArn);
104
- return logGroup;
105
- }
106
- }
107
- exports.LogManager = LogManager;
108
- //# sourceMappingURL=logManager.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"logManager.js","sourceRoot":"","sources":["../../../../../src/lib/manager/aws/logManager.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;AAAA,iDAAkC;AAClC,2DAA4C;AAG5C,mDAAoC;AAEpC;;;;;;;;;;;;;;;;;;GAkBG;AACH,MAAa,UAAU;IACrB;;;;;;OAMG;IACI,kBAAkB,CACvB,EAAU,EACV,KAA6B,EAC7B,KAA8B,EAC9B,QAAwB;QAExB,IAAI,CAAC,KAAK;YAAE,MAAM,8BAA8B,CAAA;QAEhD,MAAM,YAAY,GAAG,IAAI,IAAI,CAAC,YAAY,CAAC,KAAK,EAAE,GAAG,EAAE,EAAE,EAAE;YACzD,QAAQ,EAAE,QAAQ;YAClB,UAAU,EAAE,KAAK,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AC,KAAK;YAAE,MAAM,sBAAsB,CAAA;QAExC,MAAM,QAAQ,GAAG,IAAI,IAAI,CAAC,QAAQ,CAAC,KAAK,EAAE,GAAG,EAAE,EAAE,EAAE;YACjD,YAAY,EAAE,GAAG,KAAK,CAAC,YAAY,IAAI,KAAK,CAAC,KAAK,CAAC,KAAK,EAAE;YAC1D,SAAS,EAAE,KAAK,CAAC,SAAS;YAC1B,aAAa,EAAE,KAAK,CAAC,aAAa,IAAI,GAAG,CAAC,aAAa,CAAC,OAAO;SAChE,CAAC,CAAA;QAEF,KAAK,CAAC,eAAe,CAAC,GAAG,EAAE,cAAc,EAAE,KAAK,EAAE,QAAQ,CAAC,WAAW,CAAC,CAAA;QAEvE,OAAO,QAAQ,CAAA;IACjB,CAAC;CACF;AA1ED,gCA0EC"}
@@ -1,68 +0,0 @@
1
- import * as apig from 'aws-cdk-lib/aws-apigateway';
2
- import * as cloudfront from 'aws-cdk-lib/aws-cloudfront';
3
- import * as route53 from 'aws-cdk-lib/aws-route53';
4
- import * as common from '../../common';
5
- import * as types from '../../types';
6
- /**
7
- * @stability stable
8
- * @category Networking & Content Delivery
9
- * @summary Provides operations on AWS Route53.
10
- * - A new instance of this class is injected into {@link common.CommonConstruct} constructor.
11
- * - If a custom construct extends {@link common.CommonConstruct}, an instance is available within the context.
12
- * @example
13
- * import * as common from '@gradientedge/cdk-utils'
14
- *
15
- * class CustomConstruct extends common.common.CommonConstruct {
16
- * constructor(parent: cdk.Construct, id: string, props: common.CommonStackProps) {
17
- * super(parent, id, props)
18
- * this.props = props
19
- * this.route53Manager.createHostedZone('MyHostedZone', this)
20
- * }
21
- * }
22
- *
23
- * @see [CDK Route53 Module]{@link https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_route53-readme.html}
24
- */
25
- export declare class Route53Manager {
26
- /**
27
- * @summary Method to create a hosted zone
28
- * @param {string} id scoped id of the resource
29
- * @param {common.CommonConstruct} scope scope in which this resource is defined
30
- * @param {types.Route53Props} props
31
- */
32
- createHostedZone(id: string, scope: common.CommonConstruct, props: types.Route53Props): route53.IHostedZone;
33
- /**
34
- * @summary Method to create/lookup a hosted zone
35
- * @param {string} id scoped id of the resource
36
- * @param {common.CommonConstruct} scope scope in which this resource is defined
37
- * @param useExistingHostedZone Flag to indicate whether to lookup vs create new hosted zone
38
- */
39
- withHostedZoneFromFullyQualifiedDomainName(id: string, scope: common.CommonConstruct, useExistingHostedZone: boolean): route53.IHostedZone;
40
- /**
41
- * @summary Method to create a-record for cloudfront target
42
- * @param {string} id scoped id of the resource
43
- * @param {common.CommonConstruct} scope scope in which this resource is defined
44
- * @param {cloudfront.IDistribution} distribution
45
- * @param {route53.IHostedZone} hostedZone
46
- * @param {string} recordName
47
- */
48
- createCloudFrontTargetARecord(id: string, scope: common.CommonConstruct, distribution?: cloudfront.IDistribution, hostedZone?: route53.IHostedZone, recordName?: string): route53.ARecord;
49
- /**
50
- * @summary Method to create a-record for cloudfront target
51
- * @param {string} id scoped id of the resource
52
- * @param {common.CommonConstruct} scope scope in which this resource is defined
53
- * @param {cloudfront.IDistribution} distribution
54
- * @param {route53.IHostedZone} hostedZone
55
- * @param {string} recordName
56
- */
57
- createCloudFrontTargetARecordV2(id: string, scope: common.CommonConstruct, distribution?: cloudfront.IDistribution, hostedZone?: route53.IHostedZone, recordName?: string): route53.ARecord;
58
- /**
59
- * @summary Method to create a-record for api gateway target
60
- * @param {string} id scoped id of the resource
61
- * @param {common.CommonConstruct} scope scope in which this resource is defined
62
- * @param recordName
63
- * @param apiDomain
64
- * @param hostedZone
65
- */
66
- createApiGatewayARecord(id: string, scope: common.CommonConstruct, recordName: string, apiDomain: apig.DomainName, hostedZone: route53.IHostedZone): route53.ARecord;
67
- }
68
- //# sourceMappingURL=route53Manager.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"route53Manager.d.ts","sourceRoot":"","sources":["../../../../../src/lib/manager/aws/route53Manager.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,IA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