@gradientedge/cdk-utils 4.4.2 → 4.4.6

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 (449) hide show
  1. package/app/api-destined-function/package.json +1 -2
  2. package/lerna.json +6 -0
  3. package/package.json +7 -8
  4. package/api-docs/AcmManager.html +0 -622
  5. package/api-docs/AcmProps.html +0 -238
  6. package/api-docs/AlarmProps.html +0 -238
  7. package/api-docs/AlarmStatusWidgetProps.html +0 -238
  8. package/api-docs/ApiDestinationEvent.html +0 -297
  9. package/api-docs/ApiDestinationEventType.html +0 -238
  10. package/api-docs/ApiDestinedLambda.html +0 -297
  11. package/api-docs/ApiDestinedLambdaEnvironment.html +0 -238
  12. package/api-docs/ApiDestinedLambdaType.html +0 -238
  13. package/api-docs/ApiDestinedRestApi.html +0 -297
  14. package/api-docs/ApiDestinedRestApiType.html +0 -238
  15. package/api-docs/ApiManager.html +0 -766
  16. package/api-docs/ApiToEventBridgeTarget.html +0 -1877
  17. package/api-docs/ApiToEventBridgeTarget.jpg +0 -0
  18. package/api-docs/ApiToEventBridgeTargetEventProps.html +0 -238
  19. package/api-docs/ApiToEventBridgeTargetLambdaProps.html +0 -238
  20. package/api-docs/ApiToEventBridgeTargetProps.html +0 -238
  21. package/api-docs/ApiToEventBridgeTargetRestApiProps.html +0 -238
  22. package/api-docs/AppConfigManager.html +0 -1203
  23. package/api-docs/AppConfigProps.html +0 -238
  24. package/api-docs/CloudFrontManager.html +0 -2402
  25. package/api-docs/CloudFrontProps.html +0 -238
  26. package/api-docs/CloudTrailManager.html +0 -637
  27. package/api-docs/CloudTrailProps.html +0 -238
  28. package/api-docs/CloudWatchManager.html +0 -2986
  29. package/api-docs/CloudfrontFunctionProps.html +0 -238
  30. package/api-docs/CodeBuildManager.html +0 -736
  31. package/api-docs/CommonConstruct.html +0 -1299
  32. package/api-docs/CommonStack.html +0 -813
  33. package/api-docs/CommonStackProps.html +0 -238
  34. package/api-docs/DashboardProps.html +0 -238
  35. package/api-docs/DistributionProps.html +0 -238
  36. package/api-docs/DynamodbManager.html +0 -530
  37. package/api-docs/EcrManager.html +0 -530
  38. package/api-docs/EcsClusterProps.html +0 -238
  39. package/api-docs/EcsManager.html +0 -880
  40. package/api-docs/EcsTaskProps.html +0 -238
  41. package/api-docs/EksClusterProps.html +0 -238
  42. package/api-docs/EksManager.html +0 -580
  43. package/api-docs/EventBusProps.html +0 -238
  44. package/api-docs/EventManager.html +0 -1454
  45. package/api-docs/EventRuleProps.html +0 -238
  46. package/api-docs/GraphQLApiLambda.html +0 -1671
  47. package/api-docs/GraphQLApiLambda.jpg +0 -0
  48. package/api-docs/GraphQlApiLambdaEnvironment.html +0 -238
  49. package/api-docs/GraphQlApiLambdaProps.html +0 -238
  50. package/api-docs/GraphWidgetProps.html +0 -238
  51. package/api-docs/HealthCheck.html +0 -238
  52. package/api-docs/IamManager.html +0 -3821
  53. package/api-docs/LambdaEdgeProps.html +0 -238
  54. package/api-docs/LambdaEnvironment.html +0 -238
  55. package/api-docs/LambdaManager.html +0 -2378
  56. package/api-docs/LambdaProps.html +0 -238
  57. package/api-docs/LifecycleRule.html +0 -238
  58. package/api-docs/LogManager.html +0 -955
  59. package/api-docs/LogProps.html +0 -238
  60. package/api-docs/LogQueryWidgetProps.html +0 -238
  61. package/api-docs/MetricFilterProps.html +0 -238
  62. package/api-docs/MetricProps.html +0 -238
  63. package/api-docs/NumericWidgetProps.html +0 -238
  64. package/api-docs/Route53Manager.html +0 -1460
  65. package/api-docs/Route53Props.html +0 -238
  66. package/api-docs/RuleProps.html +0 -238
  67. package/api-docs/S3BucketProps.html +0 -238
  68. package/api-docs/S3Manager.html +0 -1546
  69. package/api-docs/SSMParameterReader.html +0 -431
  70. package/api-docs/SSMParameterReaderProps.html +0 -238
  71. package/api-docs/SecretsManager.html +0 -1140
  72. package/api-docs/SiteWithEcsBackend.html +0 -2391
  73. package/api-docs/SiteWithEcsBackendProps.html +0 -238
  74. package/api-docs/SnsManager.html +0 -780
  75. package/api-docs/SsmManager.html +0 -955
  76. package/api-docs/StaticSite.html +0 -1358
  77. package/api-docs/StaticSiteProps.html +0 -238
  78. package/api-docs/SubscriptionProps.html +0 -238
  79. package/api-docs/TableProps.html +0 -238
  80. package/api-docs/TextWidgetProps.html +0 -238
  81. package/api-docs/VpcManager.html +0 -986
  82. package/api-docs/WafIPSetProps.html +0 -238
  83. package/api-docs/WafManager.html +0 -730
  84. package/api-docs/WafWebACLProps.html +0 -238
  85. package/api-docs/common_construct.ts.html +0 -279
  86. package/api-docs/common_stack.ts.html +0 -303
  87. package/api-docs/construct_api-to-eventbridge-target_api-destination-event.ts.html +0 -175
  88. package/api-docs/construct_api-to-eventbridge-target_api-destined-lambda.ts.html +0 -178
  89. package/api-docs/construct_api-to-eventbridge-target_api-destined-rest-api.ts.html +0 -190
  90. package/api-docs/construct_api-to-eventbridge-target_main.ts.html +0 -751
  91. package/api-docs/construct_graphql-api-lambda_main.ts.html +0 -408
  92. package/api-docs/construct_site-with-ecs-backend_main.ts.html +0 -544
  93. package/api-docs/construct_static-site_main.ts.html +0 -374
  94. package/api-docs/global.html +0 -1530
  95. package/api-docs/index.html +0 -208
  96. package/api-docs/logo.png +0 -0
  97. package/api-docs/manager_aws_acm-manager.ts.html +0 -236
  98. package/api-docs/manager_aws_api-manager.ts.html +0 -260
  99. package/api-docs/manager_aws_app-config-manager.ts.html +0 -310
  100. package/api-docs/manager_aws_cloudfront-manager.ts.html +0 -491
  101. package/api-docs/manager_aws_cloudtrail-manager.ts.html +0 -251
  102. package/api-docs/manager_aws_cloudwatch-manager.ts.html +0 -553
  103. package/api-docs/manager_aws_codebuild-manager.ts.html +0 -240
  104. package/api-docs/manager_aws_dynamodb-manager.ts.html +0 -219
  105. package/api-docs/manager_aws_ecr-manager.ts.html +0 -199
  106. package/api-docs/manager_aws_ecs-manager.ts.html +0 -259
  107. package/api-docs/manager_aws_eks-manager.ts.html +0 -260
  108. package/api-docs/manager_aws_event-manager.ts.html +0 -336
  109. package/api-docs/manager_aws_iam-manager.ts.html +0 -573
  110. package/api-docs/manager_aws_lambda-manager.ts.html +0 -400
  111. package/api-docs/manager_aws_log-manager.ts.html +0 -259
  112. package/api-docs/manager_aws_route53-manager.ts.html +0 -333
  113. package/api-docs/manager_aws_s3-manager.ts.html +0 -361
  114. package/api-docs/manager_aws_secrets-manager.ts.html +0 -274
  115. package/api-docs/manager_aws_sns-manager.ts.html +0 -246
  116. package/api-docs/manager_aws_ssm-manager.ts.html +0 -273
  117. package/api-docs/manager_aws_vpc-manager.ts.html +0 -244
  118. package/api-docs/manager_aws_waf-manager.ts.html +0 -232
  119. package/api-docs/scripts/app.min.js +0 -1
  120. package/api-docs/scripts/linenumber.js +0 -26
  121. package/api-docs/scripts/search.js +0 -39
  122. package/api-docs/styles/app.min.css +0 -1
  123. package/api-docs/styles/iframe.css +0 -13
  124. package/api-docs/styles/prettify-jsdoc.css +0 -111
  125. package/api-docs/styles/prettify-tomorrow.css +0 -132
  126. package/api-docs/styles/reset.css +0 -44
  127. package/api-docs/styles.css +0 -113
  128. package/api-docs/tutorial-Architecture.html +0 -151
  129. package/api-docs/tutorial-Build.html +0 -150
  130. package/api-docs/tutorial-CI-CD.html +0 -154
  131. package/api-docs/tutorial-Development.html +0 -227
  132. package/api-docs/types_aws_index.ts.html +0 -665
  133. package/api-docs/utils_aws_index.ts.html +0 -192
  134. package/api-docs/utils_index.ts.html +0 -227
  135. package/app/api-destined-function/node_modules/uuid/dist/bin/uuid +0 -2
  136. package/app/api-destined-function/node_modules/uuid/dist/esm-browser/index.js +0 -9
  137. package/app/api-destined-function/node_modules/uuid/dist/esm-browser/md5.js +0 -215
  138. package/app/api-destined-function/node_modules/uuid/dist/esm-browser/nil.js +0 -1
  139. package/app/api-destined-function/node_modules/uuid/dist/esm-browser/parse.js +0 -35
  140. package/app/api-destined-function/node_modules/uuid/dist/esm-browser/regex.js +0 -1
  141. package/app/api-destined-function/node_modules/uuid/dist/esm-browser/rng.js +0 -19
  142. package/app/api-destined-function/node_modules/uuid/dist/esm-browser/sha1.js +0 -96
  143. package/app/api-destined-function/node_modules/uuid/dist/esm-browser/stringify.js +0 -30
  144. package/app/api-destined-function/node_modules/uuid/dist/esm-browser/v1.js +0 -95
  145. package/app/api-destined-function/node_modules/uuid/dist/esm-browser/v3.js +0 -4
  146. package/app/api-destined-function/node_modules/uuid/dist/esm-browser/v35.js +0 -64
  147. package/app/api-destined-function/node_modules/uuid/dist/esm-browser/v4.js +0 -24
  148. package/app/api-destined-function/node_modules/uuid/dist/esm-browser/v5.js +0 -4
  149. package/app/api-destined-function/node_modules/uuid/dist/esm-browser/validate.js +0 -7
  150. package/app/api-destined-function/node_modules/uuid/dist/esm-browser/version.js +0 -11
  151. package/app/api-destined-function/node_modules/uuid/dist/esm-node/index.js +0 -9
  152. package/app/api-destined-function/node_modules/uuid/dist/esm-node/md5.js +0 -13
  153. package/app/api-destined-function/node_modules/uuid/dist/esm-node/nil.js +0 -1
  154. package/app/api-destined-function/node_modules/uuid/dist/esm-node/parse.js +0 -35
  155. package/app/api-destined-function/node_modules/uuid/dist/esm-node/regex.js +0 -1
  156. package/app/api-destined-function/node_modules/uuid/dist/esm-node/rng.js +0 -12
  157. package/app/api-destined-function/node_modules/uuid/dist/esm-node/sha1.js +0 -13
  158. package/app/api-destined-function/node_modules/uuid/dist/esm-node/stringify.js +0 -29
  159. package/app/api-destined-function/node_modules/uuid/dist/esm-node/v1.js +0 -95
  160. package/app/api-destined-function/node_modules/uuid/dist/esm-node/v3.js +0 -4
  161. package/app/api-destined-function/node_modules/uuid/dist/esm-node/v35.js +0 -64
  162. package/app/api-destined-function/node_modules/uuid/dist/esm-node/v4.js +0 -24
  163. package/app/api-destined-function/node_modules/uuid/dist/esm-node/v5.js +0 -4
  164. package/app/api-destined-function/node_modules/uuid/dist/esm-node/validate.js +0 -7
  165. package/app/api-destined-function/node_modules/uuid/dist/esm-node/version.js +0 -11
  166. package/app/api-destined-function/node_modules/uuid/dist/index.js +0 -79
  167. package/app/api-destined-function/node_modules/uuid/dist/md5-browser.js +0 -223
  168. package/app/api-destined-function/node_modules/uuid/dist/md5.js +0 -23
  169. package/app/api-destined-function/node_modules/uuid/dist/nil.js +0 -8
  170. package/app/api-destined-function/node_modules/uuid/dist/parse.js +0 -45
  171. package/app/api-destined-function/node_modules/uuid/dist/regex.js +0 -8
  172. package/app/api-destined-function/node_modules/uuid/dist/rng-browser.js +0 -26
  173. package/app/api-destined-function/node_modules/uuid/dist/rng.js +0 -24
  174. package/app/api-destined-function/node_modules/uuid/dist/sha1-browser.js +0 -104
  175. package/app/api-destined-function/node_modules/uuid/dist/sha1.js +0 -23
  176. package/app/api-destined-function/node_modules/uuid/dist/stringify.js +0 -39
  177. package/app/api-destined-function/node_modules/uuid/dist/umd/uuid.min.js +0 -1
  178. package/app/api-destined-function/node_modules/uuid/dist/umd/uuidNIL.min.js +0 -1
  179. package/app/api-destined-function/node_modules/uuid/dist/umd/uuidParse.min.js +0 -1
  180. package/app/api-destined-function/node_modules/uuid/dist/umd/uuidStringify.min.js +0 -1
  181. package/app/api-destined-function/node_modules/uuid/dist/umd/uuidValidate.min.js +0 -1
  182. package/app/api-destined-function/node_modules/uuid/dist/umd/uuidVersion.min.js +0 -1
  183. package/app/api-destined-function/node_modules/uuid/dist/umd/uuidv1.min.js +0 -1
  184. package/app/api-destined-function/node_modules/uuid/dist/umd/uuidv3.min.js +0 -1
  185. package/app/api-destined-function/node_modules/uuid/dist/umd/uuidv4.min.js +0 -1
  186. package/app/api-destined-function/node_modules/uuid/dist/umd/uuidv5.min.js +0 -1
  187. package/app/api-destined-function/node_modules/uuid/dist/uuid-bin.js +0 -85
  188. package/app/api-destined-function/node_modules/uuid/dist/v1.js +0 -107
  189. package/app/api-destined-function/node_modules/uuid/dist/v3.js +0 -16
  190. package/app/api-destined-function/node_modules/uuid/dist/v35.js +0 -78
  191. package/app/api-destined-function/node_modules/uuid/dist/v4.js +0 -37
  192. package/app/api-destined-function/node_modules/uuid/dist/v5.js +0 -16
  193. package/app/api-destined-function/node_modules/uuid/dist/validate.js +0 -17
  194. package/app/api-destined-function/node_modules/uuid/dist/version.js +0 -21
  195. package/dist/app/api-destined-function/layers/nodejs/node_modules/.bin/uuid +0 -2
  196. package/dist/app/api-destined-function/layers/nodejs/node_modules/.yarn-integrity +0 -109
  197. package/dist/app/api-destined-function/layers/nodejs/node_modules/@types/uuid/LICENSE +0 -21
  198. package/dist/app/api-destined-function/layers/nodejs/node_modules/@types/uuid/README.md +0 -16
  199. package/dist/app/api-destined-function/layers/nodejs/node_modules/@types/uuid/index.d.mts +0 -10
  200. package/dist/app/api-destined-function/layers/nodejs/node_modules/@types/uuid/index.d.ts +0 -80
  201. package/dist/app/api-destined-function/layers/nodejs/node_modules/@types/uuid/package.json +0 -54
  202. package/dist/app/api-destined-function/layers/nodejs/node_modules/uuid/LICENSE.md +0 -9
  203. package/dist/app/api-destined-function/layers/nodejs/node_modules/uuid/README.md +0 -505
  204. package/dist/app/api-destined-function/layers/nodejs/node_modules/uuid/dist/bin/uuid +0 -2
  205. package/dist/app/api-destined-function/layers/nodejs/node_modules/uuid/dist/esm-browser/index.js +0 -9
  206. package/dist/app/api-destined-function/layers/nodejs/node_modules/uuid/dist/esm-browser/md5.js +0 -215
  207. package/dist/app/api-destined-function/layers/nodejs/node_modules/uuid/dist/esm-browser/nil.js +0 -1
  208. package/dist/app/api-destined-function/layers/nodejs/node_modules/uuid/dist/esm-browser/parse.js +0 -35
  209. package/dist/app/api-destined-function/layers/nodejs/node_modules/uuid/dist/esm-browser/regex.js +0 -1
  210. package/dist/app/api-destined-function/layers/nodejs/node_modules/uuid/dist/esm-browser/rng.js +0 -19
  211. package/dist/app/api-destined-function/layers/nodejs/node_modules/uuid/dist/esm-browser/sha1.js +0 -96
  212. package/dist/app/api-destined-function/layers/nodejs/node_modules/uuid/dist/esm-browser/stringify.js +0 -30
  213. package/dist/app/api-destined-function/layers/nodejs/node_modules/uuid/dist/esm-browser/v1.js +0 -95
  214. package/dist/app/api-destined-function/layers/nodejs/node_modules/uuid/dist/esm-browser/v3.js +0 -4
  215. package/dist/app/api-destined-function/layers/nodejs/node_modules/uuid/dist/esm-browser/v35.js +0 -64
  216. package/dist/app/api-destined-function/layers/nodejs/node_modules/uuid/dist/esm-browser/v4.js +0 -24
  217. package/dist/app/api-destined-function/layers/nodejs/node_modules/uuid/dist/esm-browser/v5.js +0 -4
  218. package/dist/app/api-destined-function/layers/nodejs/node_modules/uuid/dist/esm-browser/validate.js +0 -7
  219. package/dist/app/api-destined-function/layers/nodejs/node_modules/uuid/dist/esm-browser/version.js +0 -11
  220. package/dist/app/api-destined-function/layers/nodejs/node_modules/uuid/dist/esm-node/index.js +0 -9
  221. package/dist/app/api-destined-function/layers/nodejs/node_modules/uuid/dist/esm-node/md5.js +0 -13
  222. package/dist/app/api-destined-function/layers/nodejs/node_modules/uuid/dist/esm-node/nil.js +0 -1
  223. package/dist/app/api-destined-function/layers/nodejs/node_modules/uuid/dist/esm-node/parse.js +0 -35
  224. package/dist/app/api-destined-function/layers/nodejs/node_modules/uuid/dist/esm-node/regex.js +0 -1
  225. package/dist/app/api-destined-function/layers/nodejs/node_modules/uuid/dist/esm-node/rng.js +0 -12
  226. package/dist/app/api-destined-function/layers/nodejs/node_modules/uuid/dist/esm-node/sha1.js +0 -13
  227. package/dist/app/api-destined-function/layers/nodejs/node_modules/uuid/dist/esm-node/stringify.js +0 -29
  228. package/dist/app/api-destined-function/layers/nodejs/node_modules/uuid/dist/esm-node/v1.js +0 -95
  229. package/dist/app/api-destined-function/layers/nodejs/node_modules/uuid/dist/esm-node/v3.js +0 -4
  230. package/dist/app/api-destined-function/layers/nodejs/node_modules/uuid/dist/esm-node/v35.js +0 -64
  231. package/dist/app/api-destined-function/layers/nodejs/node_modules/uuid/dist/esm-node/v4.js +0 -24
  232. package/dist/app/api-destined-function/layers/nodejs/node_modules/uuid/dist/esm-node/v5.js +0 -4
  233. package/dist/app/api-destined-function/layers/nodejs/node_modules/uuid/dist/esm-node/validate.js +0 -7
  234. package/dist/app/api-destined-function/layers/nodejs/node_modules/uuid/dist/esm-node/version.js +0 -11
  235. package/dist/app/api-destined-function/layers/nodejs/node_modules/uuid/dist/index.js +0 -79
  236. package/dist/app/api-destined-function/layers/nodejs/node_modules/uuid/dist/md5-browser.js +0 -223
  237. package/dist/app/api-destined-function/layers/nodejs/node_modules/uuid/dist/md5.js +0 -23
  238. package/dist/app/api-destined-function/layers/nodejs/node_modules/uuid/dist/nil.js +0 -8
  239. package/dist/app/api-destined-function/layers/nodejs/node_modules/uuid/dist/parse.js +0 -45
  240. package/dist/app/api-destined-function/layers/nodejs/node_modules/uuid/dist/regex.js +0 -8
  241. package/dist/app/api-destined-function/layers/nodejs/node_modules/uuid/dist/rng-browser.js +0 -26
  242. package/dist/app/api-destined-function/layers/nodejs/node_modules/uuid/dist/rng.js +0 -24
  243. package/dist/app/api-destined-function/layers/nodejs/node_modules/uuid/dist/sha1-browser.js +0 -104
  244. package/dist/app/api-destined-function/layers/nodejs/node_modules/uuid/dist/sha1.js +0 -23
  245. package/dist/app/api-destined-function/layers/nodejs/node_modules/uuid/dist/stringify.js +0 -39
  246. package/dist/app/api-destined-function/layers/nodejs/node_modules/uuid/dist/umd/uuid.min.js +0 -1
  247. package/dist/app/api-destined-function/layers/nodejs/node_modules/uuid/dist/umd/uuidNIL.min.js +0 -1
  248. package/dist/app/api-destined-function/layers/nodejs/node_modules/uuid/dist/umd/uuidParse.min.js +0 -1
  249. package/dist/app/api-destined-function/layers/nodejs/node_modules/uuid/dist/umd/uuidStringify.min.js +0 -1
  250. package/dist/app/api-destined-function/layers/nodejs/node_modules/uuid/dist/umd/uuidValidate.min.js +0 -1
  251. package/dist/app/api-destined-function/layers/nodejs/node_modules/uuid/dist/umd/uuidVersion.min.js +0 -1
  252. package/dist/app/api-destined-function/layers/nodejs/node_modules/uuid/dist/umd/uuidv1.min.js +0 -1
  253. package/dist/app/api-destined-function/layers/nodejs/node_modules/uuid/dist/umd/uuidv3.min.js +0 -1
  254. package/dist/app/api-destined-function/layers/nodejs/node_modules/uuid/dist/umd/uuidv4.min.js +0 -1
  255. package/dist/app/api-destined-function/layers/nodejs/node_modules/uuid/dist/umd/uuidv5.min.js +0 -1
  256. package/dist/app/api-destined-function/layers/nodejs/node_modules/uuid/dist/uuid-bin.js +0 -85
  257. package/dist/app/api-destined-function/layers/nodejs/node_modules/uuid/dist/v1.js +0 -107
  258. package/dist/app/api-destined-function/layers/nodejs/node_modules/uuid/dist/v3.js +0 -16
  259. package/dist/app/api-destined-function/layers/nodejs/node_modules/uuid/dist/v35.js +0 -78
  260. package/dist/app/api-destined-function/layers/nodejs/node_modules/uuid/dist/v4.js +0 -37
  261. package/dist/app/api-destined-function/layers/nodejs/node_modules/uuid/dist/v5.js +0 -16
  262. package/dist/app/api-destined-function/layers/nodejs/node_modules/uuid/dist/validate.js +0 -17
  263. package/dist/app/api-destined-function/layers/nodejs/node_modules/uuid/dist/version.js +0 -21
  264. package/dist/app/api-destined-function/layers/nodejs/node_modules/uuid/package.json +0 -135
  265. package/dist/app/api-destined-function/layers/nodejs/node_modules/uuid/wrapper.mjs +0 -10
  266. package/dist/app/api-destined-function/layers/nodejs/package.json +0 -30
  267. package/dist/app/api-destined-function/src/lib/lambda.d.ts +0 -19
  268. package/dist/app/api-destined-function/src/lib/lambda.d.ts.map +0 -1
  269. package/dist/app/api-destined-function/src/lib/lambda.js +0 -34
  270. package/dist/app/api-destined-function/src/lib/lambda.js.map +0 -1
  271. package/dist/index.d.ts +0 -6
  272. package/dist/index.d.ts.map +0 -1
  273. package/dist/index.js.map +0 -1
  274. package/dist/src/lib/common/construct.d.ts +0 -80
  275. package/dist/src/lib/common/construct.d.ts.map +0 -1
  276. package/dist/src/lib/common/construct.js +0 -134
  277. package/dist/src/lib/common/construct.js.map +0 -1
  278. package/dist/src/lib/common/index.d.ts +0 -3
  279. package/dist/src/lib/common/index.d.ts.map +0 -1
  280. package/dist/src/lib/common/index.js +0 -15
  281. package/dist/src/lib/common/index.js.map +0 -1
  282. package/dist/src/lib/common/stack.d.ts +0 -55
  283. package/dist/src/lib/common/stack.d.ts.map +0 -1
  284. package/dist/src/lib/common/stack.js +0 -148
  285. package/dist/src/lib/common/stack.js.map +0 -1
  286. package/dist/src/lib/construct/api-to-eventbridge-target/api-destination-event.d.ts +0 -17
  287. package/dist/src/lib/construct/api-to-eventbridge-target/api-destination-event.d.ts.map +0 -1
  288. package/dist/src/lib/construct/api-to-eventbridge-target/api-destination-event.js +0 -18
  289. package/dist/src/lib/construct/api-to-eventbridge-target/api-destination-event.js.map +0 -1
  290. package/dist/src/lib/construct/api-to-eventbridge-target/api-destined-lambda.d.ts +0 -20
  291. package/dist/src/lib/construct/api-to-eventbridge-target/api-destined-lambda.d.ts.map +0 -1
  292. package/dist/src/lib/construct/api-to-eventbridge-target/api-destined-lambda.js +0 -20
  293. package/dist/src/lib/construct/api-to-eventbridge-target/api-destined-lambda.js.map +0 -1
  294. package/dist/src/lib/construct/api-to-eventbridge-target/api-destined-rest-api.d.ts +0 -36
  295. package/dist/src/lib/construct/api-to-eventbridge-target/api-destined-rest-api.d.ts.map +0 -1
  296. package/dist/src/lib/construct/api-to-eventbridge-target/api-destined-rest-api.js +0 -30
  297. package/dist/src/lib/construct/api-to-eventbridge-target/api-destined-rest-api.js.map +0 -1
  298. package/dist/src/lib/construct/api-to-eventbridge-target/index.d.ts +0 -5
  299. package/dist/src/lib/construct/api-to-eventbridge-target/index.d.ts.map +0 -1
  300. package/dist/src/lib/construct/api-to-eventbridge-target/index.js +0 -17
  301. package/dist/src/lib/construct/api-to-eventbridge-target/index.js.map +0 -1
  302. package/dist/src/lib/construct/api-to-eventbridge-target/main.d.ts +0 -135
  303. package/dist/src/lib/construct/api-to-eventbridge-target/main.d.ts.map +0 -1
  304. package/dist/src/lib/construct/api-to-eventbridge-target/main.js +0 -488
  305. package/dist/src/lib/construct/api-to-eventbridge-target/main.js.map +0 -1
  306. package/dist/src/lib/construct/graphql-api-lambda/index.d.ts +0 -2
  307. package/dist/src/lib/construct/graphql-api-lambda/index.d.ts.map +0 -1
  308. package/dist/src/lib/construct/graphql-api-lambda/index.js +0 -14
  309. package/dist/src/lib/construct/graphql-api-lambda/index.js.map +0 -1
  310. package/dist/src/lib/construct/graphql-api-lambda/main.d.ts +0 -113
  311. package/dist/src/lib/construct/graphql-api-lambda/main.d.ts.map +0 -1
  312. package/dist/src/lib/construct/graphql-api-lambda/main.js +0 -202
  313. package/dist/src/lib/construct/graphql-api-lambda/main.js.map +0 -1
  314. package/dist/src/lib/construct/index.d.ts +0 -5
  315. package/dist/src/lib/construct/index.d.ts.map +0 -1
  316. package/dist/src/lib/construct/index.js +0 -17
  317. package/dist/src/lib/construct/index.js.map +0 -1
  318. package/dist/src/lib/construct/site-with-ecs-backend/index.d.ts +0 -2
  319. package/dist/src/lib/construct/site-with-ecs-backend/index.d.ts.map +0 -1
  320. package/dist/src/lib/construct/site-with-ecs-backend/index.js +0 -14
  321. package/dist/src/lib/construct/site-with-ecs-backend/index.js.map +0 -1
  322. package/dist/src/lib/construct/site-with-ecs-backend/main.d.ts +0 -168
  323. package/dist/src/lib/construct/site-with-ecs-backend/main.d.ts.map +0 -1
  324. package/dist/src/lib/construct/site-with-ecs-backend/main.js +0 -328
  325. package/dist/src/lib/construct/site-with-ecs-backend/main.js.map +0 -1
  326. package/dist/src/lib/construct/static-site/index.d.ts +0 -2
  327. package/dist/src/lib/construct/static-site/index.d.ts.map +0 -1
  328. package/dist/src/lib/construct/static-site/index.js +0 -14
  329. package/dist/src/lib/construct/static-site/index.js.map +0 -1
  330. package/dist/src/lib/construct/static-site/main.d.ts +0 -95
  331. package/dist/src/lib/construct/static-site/main.d.ts.map +0 -1
  332. package/dist/src/lib/construct/static-site/main.js +0 -169
  333. package/dist/src/lib/construct/static-site/main.js.map +0 -1
  334. package/dist/src/lib/manager/aws/acm-manager.d.ts +0 -47
  335. package/dist/src/lib/manager/aws/acm-manager.d.ts.map +0 -1
  336. package/dist/src/lib/manager/aws/acm-manager.js +0 -91
  337. package/dist/src/lib/manager/aws/acm-manager.js.map +0 -1
  338. package/dist/src/lib/manager/aws/api-manager.d.ts +0 -44
  339. package/dist/src/lib/manager/aws/api-manager.d.ts.map +0 -1
  340. package/dist/src/lib/manager/aws/api-manager.js +0 -112
  341. package/dist/src/lib/manager/aws/api-manager.js.map +0 -1
  342. package/dist/src/lib/manager/aws/app-config-manager.d.ts +0 -66
  343. package/dist/src/lib/manager/aws/app-config-manager.d.ts.map +0 -1
  344. package/dist/src/lib/manager/aws/app-config-manager.js +0 -149
  345. package/dist/src/lib/manager/aws/app-config-manager.js.map +0 -1
  346. package/dist/src/lib/manager/aws/cloudfront-manager.d.ts +0 -113
  347. package/dist/src/lib/manager/aws/cloudfront-manager.d.ts.map +0 -1
  348. package/dist/src/lib/manager/aws/cloudfront-manager.js +0 -283
  349. package/dist/src/lib/manager/aws/cloudfront-manager.js.map +0 -1
  350. package/dist/src/lib/manager/aws/cloudtrail-manager.d.ts +0 -49
  351. package/dist/src/lib/manager/aws/cloudtrail-manager.d.ts.map +0 -1
  352. package/dist/src/lib/manager/aws/cloudtrail-manager.js +0 -100
  353. package/dist/src/lib/manager/aws/cloudtrail-manager.js.map +0 -1
  354. package/dist/src/lib/manager/aws/cloudwatch-manager.d.ts +0 -122
  355. package/dist/src/lib/manager/aws/cloudwatch-manager.d.ts.map +0 -1
  356. package/dist/src/lib/manager/aws/cloudwatch-manager.js +0 -353
  357. package/dist/src/lib/manager/aws/cloudwatch-manager.js.map +0 -1
  358. package/dist/src/lib/manager/aws/codebuild-manager.d.ts +0 -41
  359. package/dist/src/lib/manager/aws/codebuild-manager.d.ts.map +0 -1
  360. package/dist/src/lib/manager/aws/codebuild-manager.js +0 -95
  361. package/dist/src/lib/manager/aws/codebuild-manager.js.map +0 -1
  362. package/dist/src/lib/manager/aws/dynamodb-manager.d.ts +0 -33
  363. package/dist/src/lib/manager/aws/dynamodb-manager.d.ts.map +0 -1
  364. package/dist/src/lib/manager/aws/dynamodb-manager.js +0 -80
  365. package/dist/src/lib/manager/aws/dynamodb-manager.js.map +0 -1
  366. package/dist/src/lib/manager/aws/ecr-manager.d.ts +0 -32
  367. package/dist/src/lib/manager/aws/ecr-manager.d.ts.map +0 -1
  368. package/dist/src/lib/manager/aws/ecr-manager.js +0 -61
  369. package/dist/src/lib/manager/aws/ecr-manager.js.map +0 -1
  370. package/dist/src/lib/manager/aws/ecs-manager.d.ts +0 -49
  371. package/dist/src/lib/manager/aws/ecs-manager.d.ts.map +0 -1
  372. package/dist/src/lib/manager/aws/ecs-manager.js +0 -104
  373. package/dist/src/lib/manager/aws/ecs-manager.js.map +0 -1
  374. package/dist/src/lib/manager/aws/eks-manager.d.ts +0 -37
  375. package/dist/src/lib/manager/aws/eks-manager.d.ts.map +0 -1
  376. package/dist/src/lib/manager/aws/eks-manager.js +0 -110
  377. package/dist/src/lib/manager/aws/eks-manager.js.map +0 -1
  378. package/dist/src/lib/manager/aws/event-manager.d.ts +0 -68
  379. package/dist/src/lib/manager/aws/event-manager.d.ts.map +0 -1
  380. package/dist/src/lib/manager/aws/event-manager.js +0 -163
  381. package/dist/src/lib/manager/aws/event-manager.js.map +0 -1
  382. package/dist/src/lib/manager/aws/iam-manager.d.ts +0 -155
  383. package/dist/src/lib/manager/aws/iam-manager.d.ts.map +0 -1
  384. package/dist/src/lib/manager/aws/iam-manager.js +0 -381
  385. package/dist/src/lib/manager/aws/iam-manager.js.map +0 -1
  386. package/dist/src/lib/manager/aws/index.d.ts +0 -23
  387. package/dist/src/lib/manager/aws/index.d.ts.map +0 -1
  388. package/dist/src/lib/manager/aws/index.js +0 -35
  389. package/dist/src/lib/manager/aws/index.js.map +0 -1
  390. package/dist/src/lib/manager/aws/lambda-manager.d.ts +0 -95
  391. package/dist/src/lib/manager/aws/lambda-manager.d.ts.map +0 -1
  392. package/dist/src/lib/manager/aws/lambda-manager.js +0 -197
  393. package/dist/src/lib/manager/aws/lambda-manager.js.map +0 -1
  394. package/dist/src/lib/manager/aws/log-manager.d.ts +0 -52
  395. package/dist/src/lib/manager/aws/log-manager.d.ts.map +0 -1
  396. package/dist/src/lib/manager/aws/log-manager.js +0 -109
  397. package/dist/src/lib/manager/aws/log-manager.js.map +0 -1
  398. package/dist/src/lib/manager/aws/route53-manager.d.ts +0 -69
  399. package/dist/src/lib/manager/aws/route53-manager.d.ts.map +0 -1
  400. package/dist/src/lib/manager/aws/route53-manager.js +0 -159
  401. package/dist/src/lib/manager/aws/route53-manager.js.map +0 -1
  402. package/dist/src/lib/manager/aws/s3-manager.d.ts +0 -74
  403. package/dist/src/lib/manager/aws/s3-manager.d.ts.map +0 -1
  404. package/dist/src/lib/manager/aws/s3-manager.js +0 -203
  405. package/dist/src/lib/manager/aws/s3-manager.js.map +0 -1
  406. package/dist/src/lib/manager/aws/secrets-manager.d.ts +0 -58
  407. package/dist/src/lib/manager/aws/secrets-manager.d.ts.map +0 -1
  408. package/dist/src/lib/manager/aws/secrets-manager.js +0 -117
  409. package/dist/src/lib/manager/aws/secrets-manager.js.map +0 -1
  410. package/dist/src/lib/manager/aws/sns-manager.d.ts +0 -43
  411. package/dist/src/lib/manager/aws/sns-manager.d.ts.map +0 -1
  412. package/dist/src/lib/manager/aws/sns-manager.js +0 -91
  413. package/dist/src/lib/manager/aws/sns-manager.js.map +0 -1
  414. package/dist/src/lib/manager/aws/ssm-manager.d.ts +0 -61
  415. package/dist/src/lib/manager/aws/ssm-manager.d.ts.map +0 -1
  416. package/dist/src/lib/manager/aws/ssm-manager.js +0 -125
  417. package/dist/src/lib/manager/aws/ssm-manager.js.map +0 -1
  418. package/dist/src/lib/manager/aws/vpc-manager.d.ts +0 -46
  419. package/dist/src/lib/manager/aws/vpc-manager.d.ts.map +0 -1
  420. package/dist/src/lib/manager/aws/vpc-manager.js +0 -95
  421. package/dist/src/lib/manager/aws/vpc-manager.js.map +0 -1
  422. package/dist/src/lib/manager/aws/waf-manager.d.ts +0 -40
  423. package/dist/src/lib/manager/aws/waf-manager.d.ts.map +0 -1
  424. package/dist/src/lib/manager/aws/waf-manager.js +0 -90
  425. package/dist/src/lib/manager/aws/waf-manager.js.map +0 -1
  426. package/dist/src/lib/manager/index.d.ts +0 -2
  427. package/dist/src/lib/manager/index.d.ts.map +0 -1
  428. package/dist/src/lib/manager/index.js +0 -14
  429. package/dist/src/lib/manager/index.js.map +0 -1
  430. package/dist/src/lib/types/aws/index.d.ts +0 -480
  431. package/dist/src/lib/types/aws/index.d.ts.map +0 -1
  432. package/dist/src/lib/types/aws/index.js +0 -3
  433. package/dist/src/lib/types/aws/index.js.map +0 -1
  434. package/dist/src/lib/types/index.d.ts +0 -2
  435. package/dist/src/lib/types/index.d.ts.map +0 -1
  436. package/dist/src/lib/types/index.js +0 -14
  437. package/dist/src/lib/types/index.js.map +0 -1
  438. package/dist/src/lib/utils/aws/index.d.ts +0 -16
  439. package/dist/src/lib/utils/aws/index.d.ts.map +0 -1
  440. package/dist/src/lib/utils/aws/index.js +0 -50
  441. package/dist/src/lib/utils/aws/index.js.map +0 -1
  442. package/dist/src/lib/utils/index.d.ts +0 -63
  443. package/dist/src/lib/utils/index.d.ts.map +0 -1
  444. package/dist/src/lib/utils/index.js +0 -85
  445. package/dist/src/lib/utils/index.js.map +0 -1
  446. package/img/ApiToEventBridgeTarget.jpg +0 -0
  447. package/img/GraphQLApiLambda.jpg +0 -0
  448. package/img/logo.png +0 -0
  449. package/theme/styles.css +0 -113
@@ -1,95 +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 cdk-utils.lambda-manager
12
- * @subcategory Construct
13
- * @classdesc Provides operations on AWS Lambda.
14
- * - A new instance of this class is injected into {@link common.CommonConstruct} constructor.
15
- * - If a custom construct extends {@link common.CommonConstruct}, an instance is available within the context.
16
- * @example
17
- * import * as common from '@gradientedge/cdk-utils'
18
- *
19
- * class CustomConstruct extends common.common.CommonConstruct {
20
- * constructor(parent: cdk.Construct, id: string, props: common.CommonStackProps) {
21
- * super(parent, id, props)
22
- * this.props = props
23
- * this.lambdaManager.createLambdaFunction('MyFunction', this, role, layers, code)
24
- * }
25
- * }
26
- *
27
- * @see [CDK Lambda Module]{@link https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_lambda-readme.html}
28
- */
29
- export declare class LambdaManager {
30
- /**
31
- * @summary Method to create a lambda layer (nodejs)
32
- * @param {string} id scoped id of the resource
33
- * @param {common.CommonConstruct} scope scope in which this resource is defined
34
- * @param {lambda.AssetCode} code
35
- */
36
- createLambdaLayer(id: string, scope: common.CommonConstruct, code: lambda.AssetCode): cdk.aws_lambda.LayerVersion;
37
- /**
38
- * @summary Method to create a lambda layer (python)
39
- * @param {string} id scoped id of the resource
40
- * @param {common.CommonConstruct} scope scope in which this resource is defined
41
- * @param {string} entry path to layer source
42
- */
43
- createPythonLambdaLayer(id: string, scope: common.CommonConstruct, entry: string): pylambda.PythonLayerVersion;
44
- /**
45
- * @summary Method to create a lambda function (python)
46
- * @param {string} id scoped id of the resource
47
- * @param {common.CommonConstruct} scope scope in which this resource is defined
48
- * @param {types.LambdaProps} props
49
- * @param {iam.Role | iam.CfnRole} role
50
- * @param {lambda.ILayerVersion[]} layers
51
- * @param {string} entry path to lambda source
52
- * @param {string?} index
53
- * @param {string?} handler
54
- * @param {Map<string, string>?} environment
55
- * @param {ec2.IVpc?} vpc
56
- * @param {ec2.ISecurityGroup[]?} securityGroups
57
- * @param {efs.IAccessPoint?} accessPoint
58
- * @param {string?} mountPath
59
- * @param {ec2.SubnetSelection?} vpcSubnets
60
- */
61
- 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;
62
- /**
63
- * @summary Method to create a lambda function (nodejs)
64
- * @param {string} id scoped id of the resource
65
- * @param {common.CommonConstruct} scope scope in which this resource is defined
66
- * @param {types.LambdaProps} props
67
- * @param {iam.Role | iam.CfnRole} role
68
- * @param {lambda.ILayerVersion[]} layers
69
- * @param {lambda.AssetCode} code
70
- * @param {string?} handler
71
- * @param {Map<string, string>?} environment
72
- * @param {ec2.IVpc?} vpc
73
- * @param {ec2.ISecurityGroup[]?} securityGroups
74
- * @param {efs.IAccessPoint?} accessPoint
75
- * @param {string?} mountPath
76
- * @param {ec2.SubnetSelection?} vpcSubnets
77
- */
78
- 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;
79
- /**
80
- * @summary Method to provision a Lambda@Edge function
81
- *
82
- * @param {string} id scoped id of the resource
83
- * @param {common.CommonConstruct} scope scope in which this resource is defined
84
- * @param {types.LambdaEdgeProps} props lambda@edge properties
85
- * @param {lambda.ILayerVersion[]} layers
86
- * @param {lambda.AssetCode} code
87
- * @param {Map<string, string>?} environment
88
- * @param {ec2.IVpc?} vpc
89
- * @param {ec2.ISecurityGroup[]?} securityGroups
90
- * @param {efs.IAccessPoint?} accessPoint
91
- * @param {string?} mountPath
92
- */
93
- 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;
94
- }
95
- //# sourceMappingURL=lambda-manager.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"lambda-manager.d.ts","sourceRoot":"","sources":["../../../../../src/lib/manager/aws/lambda-manager.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,QAAQ,MAAM,kCAAkC,CAAA;AAC5D,OAAO,KAAK,GAAG,MAAM,aAAa,CAAA;AAClC,OAAO,KAAK,GAAG,MAAM,qBAAqB,CAAA;AAC1C,OAAO,KAAK,GAAG,MAAM,qBAAqB,CAAA;AAC1C,OAAO,KAAK,GAAG,MAAM,qBAAqB,CAAA;AAC1C,OAAO,KAAK,MAAM,MAAM,wBAAwB,CAAA;AAChD,OAAO,KAAK,MAAM,MAAM,cAAc,CAAA;AACtC,OAAO,KAAK,KAAK,MAAM,aAAa,CAAA;AAIpC;;;;;;;;;;;;;;;;;;;GAmBG;AACH,qBAAa,aAAa;IACxB;;;;;OAKG;IACI,iBAAiB,CAAC,EAAE,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,CAAC,eAAe,EAAE,IAAI,EAAE,MAAM,CAAC,SAAS;IAa1F;;;;;OAKG;IACI,uBAAuB,CAAC,EAAE,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,CAAC,eAAe,EAAE,KAAK,EAAE,MAAM;IAavF;;;;;;;;;;;;;;;;OAgBG;IAEI,0BAA0B,CAC/B,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,KAAK,EAAE,MAAM,EACb,KAAK,CAAC,EAAE,MAAM,EACd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 +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 cloudfront_manager_1 = require("./cloudfront-manager");
29
- /**
30
- * @stability stable
31
- * @category cdk-utils.lambda-manager
32
- * @subcategory Construct
33
- * @classdesc Provides operations on AWS Lambda.
34
- * - A new instance of this class is injected into {@link common.CommonConstruct} constructor.
35
- * - If a custom construct extends {@link common.CommonConstruct}, an instance is available within the context.
36
- * @example
37
- * import * as common from '@gradientedge/cdk-utils'
38
- *
39
- * class CustomConstruct extends common.common.CommonConstruct {
40
- * constructor(parent: cdk.Construct, id: string, props: common.CommonStackProps) {
41
- * super(parent, id, props)
42
- * this.props = props
43
- * this.lambdaManager.createLambdaFunction('MyFunction', this, role, layers, code)
44
- * }
45
- * }
46
- *
47
- * @see [CDK Lambda Module]{@link https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_lambda-readme.html}
48
- */
49
- class LambdaManager {
50
- /**
51
- * @summary Method to create a lambda layer (nodejs)
52
- * @param {string} id scoped id of the resource
53
- * @param {common.CommonConstruct} scope scope in which this resource is defined
54
- * @param {lambda.AssetCode} code
55
- */
56
- createLambdaLayer(id, scope, code) {
57
- const lambdaLayer = new lambda.LayerVersion(scope, `${id}`, {
58
- compatibleRuntimes: [lambda.Runtime.NODEJS_14_X],
59
- code: code,
60
- description: `${id}`,
61
- layerVersionName: `${id}-${scope.props.stage}`,
62
- });
63
- utils.createCfnOutput(`${id}-lambdaLayerArn`, scope, lambdaLayer.layerVersionArn);
64
- return lambdaLayer;
65
- }
66
- /**
67
- * @summary Method to create a lambda layer (python)
68
- * @param {string} id scoped id of the resource
69
- * @param {common.CommonConstruct} scope scope in which this resource is defined
70
- * @param {string} entry path to layer source
71
- */
72
- createPythonLambdaLayer(id, scope, entry) {
73
- const lambdaLayer = new pylambda.PythonLayerVersion(scope, `${id}`, {
74
- compatibleRuntimes: [lambda.Runtime.PYTHON_3_8],
75
- description: `${id}`,
76
- entry: entry,
77
- layerVersionName: `${id}-${scope.props.stage}`,
78
- });
79
- utils.createCfnOutput(`${id}-lambdaLayerArn`, scope, lambdaLayer.layerVersionArn);
80
- return lambdaLayer;
81
- }
82
- /**
83
- * @summary Method to create a lambda function (python)
84
- * @param {string} id scoped id of the resource
85
- * @param {common.CommonConstruct} scope scope in which this resource is defined
86
- * @param {types.LambdaProps} props
87
- * @param {iam.Role | iam.CfnRole} role
88
- * @param {lambda.ILayerVersion[]} layers
89
- * @param {string} entry path to lambda source
90
- * @param {string?} index
91
- * @param {string?} handler
92
- * @param {Map<string, string>?} environment
93
- * @param {ec2.IVpc?} vpc
94
- * @param {ec2.ISecurityGroup[]?} securityGroups
95
- * @param {efs.IAccessPoint?} accessPoint
96
- * @param {string?} mountPath
97
- * @param {ec2.SubnetSelection?} vpcSubnets
98
- */
99
- createPythonLambdaFunction(id, scope, props, role, layers, entry, index, handler, environment, vpc, securityGroups, accessPoint, mountPath, vpcSubnets) {
100
- if (!props)
101
- throw `Lambda props undefined`;
102
- const functionName = `${props.functionName}-${scope.props.stage}`;
103
- const lambdaFunction = new pylambda.PythonFunction(scope, `${id}`, {
104
- allowPublicSubnet: !!vpc,
105
- functionName: functionName,
106
- index: index,
107
- handler: handler,
108
- runtime: lambda.Runtime.PYTHON_3_8,
109
- entry: entry,
110
- environment: {
111
- REGION: scope.props.region,
112
- ...environment,
113
- },
114
- filesystem: accessPoint ? lambda.FileSystem.fromEfsAccessPoint(accessPoint, mountPath || '/mnt/msg') : undefined,
115
- layers: layers,
116
- logRetention: props.logRetention,
117
- memorySize: props.memorySize,
118
- onFailure: props.onFailure,
119
- onSuccess: props.onSuccess,
120
- reservedConcurrentExecutions: props.reservedConcurrentExecutions,
121
- role: role instanceof iam.Role ? role : undefined,
122
- securityGroups: securityGroups,
123
- timeout: props.timeoutInSecs ? cdk.Duration.seconds(props.timeoutInSecs) : cdk.Duration.minutes(1),
124
- vpc: vpc,
125
- vpcSubnets: vpcSubnets,
126
- });
127
- utils.createCfnOutput(`${id}-lambdaArn`, scope, lambdaFunction.functionArn);
128
- utils.createCfnOutput(`${id}-lambdaName`, scope, lambdaFunction.functionName);
129
- return lambdaFunction;
130
- }
131
- /**
132
- * @summary Method to create a lambda function (nodejs)
133
- * @param {string} id scoped id of the resource
134
- * @param {common.CommonConstruct} scope scope in which this resource is defined
135
- * @param {types.LambdaProps} props
136
- * @param {iam.Role | iam.CfnRole} role
137
- * @param {lambda.ILayerVersion[]} layers
138
- * @param {lambda.AssetCode} code
139
- * @param {string?} handler
140
- * @param {Map<string, string>?} environment
141
- * @param {ec2.IVpc?} vpc
142
- * @param {ec2.ISecurityGroup[]?} securityGroups
143
- * @param {efs.IAccessPoint?} accessPoint
144
- * @param {string?} mountPath
145
- * @param {ec2.SubnetSelection?} vpcSubnets
146
- */
147
- createLambdaFunction(id, scope, props, role, layers, code, handler, environment, vpc, securityGroups, accessPoint, mountPath, vpcSubnets) {
148
- if (!props)
149
- throw `Lambda props undefined`;
150
- const functionName = `${props.functionName}-${scope.props.stage}`;
151
- const lambdaFunction = new lambda.Function(scope, `${id}`, {
152
- allowPublicSubnet: !!vpc,
153
- functionName: functionName,
154
- handler: handler || 'index.lambda_handler',
155
- runtime: lambda.Runtime.NODEJS_14_X,
156
- code: code,
157
- environment: {
158
- REGION: scope.props.region,
159
- ...environment,
160
- },
161
- filesystem: accessPoint ? lambda.FileSystem.fromEfsAccessPoint(accessPoint, mountPath || '/mnt/msg') : undefined,
162
- layers: layers,
163
- logRetention: props.logRetention,
164
- memorySize: props.memorySize,
165
- onFailure: props.onFailure,
166
- onSuccess: props.onSuccess,
167
- reservedConcurrentExecutions: props.reservedConcurrentExecutions,
168
- role: role instanceof iam.Role ? role : undefined,
169
- securityGroups: securityGroups,
170
- timeout: props.timeoutInSecs ? cdk.Duration.seconds(props.timeoutInSecs) : cdk.Duration.minutes(1),
171
- vpc: vpc,
172
- vpcSubnets: vpcSubnets,
173
- });
174
- utils.createCfnOutput(`${id}-lambdaArn`, scope, lambdaFunction.functionArn);
175
- utils.createCfnOutput(`${id}-lambdaName`, scope, lambdaFunction.functionName);
176
- return lambdaFunction;
177
- }
178
- /**
179
- * @summary Method to provision a Lambda@Edge function
180
- *
181
- * @param {string} id scoped id of the resource
182
- * @param {common.CommonConstruct} scope scope in which this resource is defined
183
- * @param {types.LambdaEdgeProps} props lambda@edge properties
184
- * @param {lambda.ILayerVersion[]} layers
185
- * @param {lambda.AssetCode} code
186
- * @param {Map<string, string>?} environment
187
- * @param {ec2.IVpc?} vpc
188
- * @param {ec2.ISecurityGroup[]?} securityGroups
189
- * @param {efs.IAccessPoint?} accessPoint
190
- * @param {string?} mountPath
191
- */
192
- createEdgeFunction(id, scope, props, layers, code, environment, vpc, securityGroups, accessPoint, mountPath) {
193
- return new cloudfront_manager_1.CloudFrontManager().createEdgeFunction(id, scope, props, layers, code, environment, vpc, securityGroups, accessPoint, mountPath);
194
- }
195
- }
196
- exports.LambdaManager = LambdaManager;
197
- //# sourceMappingURL=lambda-manager.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"lambda-manager.js","sourceRoot":"","sources":["../../../../../src/lib/manager/aws/lambda-manager.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;AAAA,2EAA4D;AAC5D,iDAAkC;AAGlC,yDAA0C;AAC1C,+DAAgD;AAGhD,mDAAoC;AACpC,6DAAwD;AAExD;;;;;;;;;;;;;;;;;;;GAmBG;AACH,MAAa,aAAa;IACxB;;;;;OAKG;IACI,iBAAiB,CAAC,EAAU,EAAE,KAA6B,EAAE,IAAsB;QACxF,MAAM,WAAW,GAAG,IAAI,MAAM,CAAC,YAAY,CAAC,KAAK,EAAE,GAAG,EAAE,EAAE,EAAE;YAC1D,kBAAkB,EAAE,CAAC,MAAM,CAAC,OAAO,CAAC,WAAW,CAAC;YAChD,IAAI,EAAE,IAAI;YACV,WAAW,EAAE,GAAG,EAAE,EAAE;YACpB,gBAAgB,EAAE,GAAG,EAAE,IAAI,KAAK,CAAC,KAAK,CAAC,KAAK,EAAE;SAC/C,CAAC,CAAA;QAEF,KAAK,CAAC,eAAe,CAAC,GAAG,EAAE,iBAAiB,EAAE,KAAK,EAAE,WAAW,CAAC,eAAe,CAAC,CAAA;QAEjF,OAAO,WAAW,CAAA;IACpB,CAAC;IAED;;;;;OAKG;IACI,uBAAuB,CAAC,EAAU,EAAE,KAA6B,EAAE,KAAa;QACrF,MAAM,WAAW,GAAG,IAAI,QAAQ,CAAC,kBAAkB,CAAC,KAAK,EAAE,GAAG,EAAE,EAAE,EAAE;YAClE,kBAAkB,EAAE,CAAC,MAAM,CAAC,OAAO,CAAC,UAAU,CAAC;YAC/C,WAAW,EAAE,GAAG,EAAE,EAAE;YACpB,KAAK,EAAE,KAAK;YACZ,gBAAgB,EAAE,GAAG,EAAE,IAAI,KAAK,CAAC,KAAK,CAAC,KAAK,E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QAElB,OAAO,IAAI,sCAAiB,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,52 +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 cdk-utils.cloudwatch-manager
8
- * @subcategory Construct
9
- * @classdesc Provides operations on AWS CloudWatch.
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.logsManager.createMetricFilter('MyMetricFilter', this, logGroup)
20
- * }
21
- * }
22
- *
23
- * @see [CDK CloudWatch Module]{@link https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_logs-readme.html}
24
- */
25
- export declare class LogManager {
26
- /**
27
- * @summary Method to create a cloudwatch metric filter
28
- * @param {string} id scoped id of the resource
29
- * @param {common.CommonConstruct} scope scope in which this resource is defined
30
- * @param {types.MetricFilterProps} props
31
- * @param {logs.ILogGroup} logGroup
32
- */
33
- createMetricFilter(id: string, scope: common.CommonConstruct, props: types.MetricFilterProps, logGroup: logs.ILogGroup): {
34
- metricFilter: cdk.aws_logs.MetricFilter;
35
- metric: cdk.aws_cloudwatch.Metric;
36
- };
37
- /**
38
- * @summary Method to create a cloudwatch log group (cfn)
39
- * @param {string} id scoped id of the resource
40
- * @param {common.CommonConstruct} scope scope in which this resource is defined
41
- * @param {types.LogProps} props
42
- */
43
- createCfnLogGroup(id: string, scope: common.CommonConstruct, props: types.LogProps): cdk.aws_logs.CfnLogGroup;
44
- /**
45
- * @summary Method to create a cloudwatch log group
46
- * @param {string} id scoped id of the resource
47
- * @param {common.CommonConstruct} scope scope in which this resource is defined
48
- * @param {types.LogProps} props
49
- */
50
- createLogGroup(id: string, scope: common.CommonConstruct, props: types.LogProps): cdk.aws_logs.LogGroup;
51
- }
52
- //# sourceMappingURL=log-manager.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"log-manager.d.ts","sourceRoot":"","sources":["../../../../../src/lib/manager/aws/log-manager.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;;;;;;;;;;;;;;;;;;;GAmBG;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,109 +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 cdk-utils.cloudwatch-manager
29
- * @subcategory Construct
30
- * @classdesc Provides operations on AWS CloudWatch.
31
- * - A new instance of this class is injected into {@link common.CommonConstruct} constructor.
32
- * - If a custom construct extends {@link common.CommonConstruct}, an instance is available within the context.
33
- * @example
34
- * import * as common from '@gradientedge/cdk-utils'
35
- *
36
- * class CustomConstruct extends common.common.CommonConstruct {
37
- * constructor(parent: cdk.Construct, id: string, props: common.CommonStackProps) {
38
- * super(parent, id, props)
39
- * this.props = props
40
- * this.logsManager.createMetricFilter('MyMetricFilter', this, logGroup)
41
- * }
42
- * }
43
- *
44
- * @see [CDK CloudWatch Module]{@link https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_logs-readme.html}
45
- */
46
- class LogManager {
47
- /**
48
- * @summary Method to create a cloudwatch metric filter
49
- * @param {string} id scoped id of the resource
50
- * @param {common.CommonConstruct} scope scope in which this resource is defined
51
- * @param {types.MetricFilterProps} props
52
- * @param {logs.ILogGroup} logGroup
53
- */
54
- createMetricFilter(id, scope, props, logGroup) {
55
- if (!props)
56
- throw `MetricFilter props undefined`;
57
- const metricFilter = new logs.MetricFilter(scope, `${id}`, {
58
- logGroup: logGroup,
59
- metricName: props.metricName,
60
- metricNamespace: props.metricNamespace,
61
- metricValue: props.metricValue,
62
- defaultValue: props.defaultValue,
63
- filterPattern: props.filterPattern,
64
- });
65
- const metric = props.options
66
- ? metricFilter.metric({
67
- dimensionsMap: props.options.dimensionsMap,
68
- statistic: props.options.statistic,
69
- period: props.periodInSecs ? cdk.Duration.seconds(props.periodInSecs) : cdk.Duration.minutes(5),
70
- })
71
- : metricFilter.metric();
72
- return { metricFilter, metric };
73
- }
74
- /**
75
- * @summary Method to create a cloudwatch log group (cfn)
76
- * @param {string} id scoped id of the resource
77
- * @param {common.CommonConstruct} scope scope in which this resource is defined
78
- * @param {types.LogProps} props
79
- */
80
- createCfnLogGroup(id, scope, props) {
81
- if (!props)
82
- throw `Logs props undefined`;
83
- const logGroup = new logs.CfnLogGroup(scope, `${id}`, {
84
- logGroupName: `${props.logGroupName}-${scope.props.stage}`,
85
- retentionInDays: props.retention,
86
- });
87
- utils.createCfnOutput(`${id}-logGroupArn`, scope, logGroup.attrArn);
88
- return logGroup;
89
- }
90
- /**
91
- * @summary Method to create a cloudwatch log group
92
- * @param {string} id scoped id of the resource
93
- * @param {common.CommonConstruct} scope scope in which this resource is defined
94
- * @param {types.LogProps} props
95
- */
96
- createLogGroup(id, scope, props) {
97
- if (!props)
98
- throw `Logs props undefined`;
99
- const logGroup = new logs.LogGroup(scope, `${id}`, {
100
- logGroupName: `${props.logGroupName}-${scope.props.stage}`,
101
- retention: props.retention,
102
- removalPolicy: props.removalPolicy ?? cdk.RemovalPolicy.DESTROY,
103
- });
104
- utils.createCfnOutput(`${id}-logGroupArn`, scope, logGroup.logGroupArn);
105
- return logGroup;
106
- }
107
- }
108
- exports.LogManager = LogManager;
109
- //# sourceMappingURL=log-manager.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"log-manager.js","sourceRoot":"","sources":["../../../../../src/lib/manager/aws/log-manager.ts"],"names":[],"mappings":";;;;;;;;;;;;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,EAAE,GAAG,EAAE,EAAE,EAAE;YACpD,YAAY,EAAE,GAAG,KAAK,CAAC,YAAY,IAAI,KAAK,CAAC,KAAK,CAAC,KAAK,EAAE;YAC1D,eAAe,EAAE,KAAK,CAAC,SAAS;SACjC,CAAC,CAAA;QAEF,KAAK,CAAC,eAAe,CAAC,GAAG,EAAE,cAAc,EAAE,KAAK,EAAE,QAAQ,CAAC,OAAO,CAAC,CAAA;QAEnE,OAAO,QAAQ,CAAA;IACjB,CAAC;IAED;;;;;OAKG;IACI,cAAc,CAAC,EAAU,EAAE,KAA6B,EAAE,KAAqB;QACpF,IAAI,CAAC,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,69 +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 cdk-utils.route53-manager
9
- * @subcategory Construct
10
- * @classdesc Provides operations on AWS Route53.
11
- * - A new instance of this class is injected into {@link common.CommonConstruct} constructor.
12
- * - If a custom construct extends {@link common.CommonConstruct}, an instance is available within the context.
13
- * @example
14
- * import * as common from '@gradientedge/cdk-utils'
15
- *
16
- * class CustomConstruct extends common.common.CommonConstruct {
17
- * constructor(parent: cdk.Construct, id: string, props: common.CommonStackProps) {
18
- * super(parent, id, props)
19
- * this.props = props
20
- * this.route53Manager.createHostedZone('MyHostedZone', this)
21
- * }
22
- * }
23
- *
24
- * @see [CDK Route53 Module]{@link https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_route53-readme.html}
25
- */
26
- export declare class Route53Manager {
27
- /**
28
- * @summary Method to create a hosted zone
29
- * @param {string} id scoped id of the resource
30
- * @param {common.CommonConstruct} scope scope in which this resource is defined
31
- * @param {types.Route53Props} props
32
- */
33
- createHostedZone(id: string, scope: common.CommonConstruct, props: types.Route53Props): route53.IHostedZone;
34
- /**
35
- * @summary Method to create/lookup a hosted zone
36
- * @param {string} id scoped id of the resource
37
- * @param {common.CommonConstruct} scope scope in which this resource is defined
38
- * @param useExistingHostedZone Flag to indicate whether to lookup vs create new hosted zone
39
- */
40
- withHostedZoneFromFullyQualifiedDomainName(id: string, scope: common.CommonConstruct, useExistingHostedZone: boolean): route53.IHostedZone;
41
- /**
42
- * @summary Method to create a-record for cloudfront target
43
- * @param {string} id scoped id of the resource
44
- * @param {common.CommonConstruct} scope scope in which this resource is defined
45
- * @param {cloudfront.IDistribution} distribution
46
- * @param {route53.IHostedZone} hostedZone
47
- * @param {string} recordName
48
- */
49
- createCloudFrontTargetARecord(id: string, scope: common.CommonConstruct, distribution?: cloudfront.IDistribution, hostedZone?: route53.IHostedZone, recordName?: string): route53.ARecord;
50
- /**
51
- * @summary Method to create a-record for cloudfront target
52
- * @param {string} id scoped id of the resource
53
- * @param {common.CommonConstruct} scope scope in which this resource is defined
54
- * @param {cloudfront.IDistribution} distribution
55
- * @param {route53.IHostedZone} hostedZone
56
- * @param {string} recordName
57
- */
58
- createCloudFrontTargetARecordV2(id: string, scope: common.CommonConstruct, distribution?: cloudfront.IDistribution, hostedZone?: route53.IHostedZone, recordName?: string): route53.ARecord;
59
- /**
60
- * @summary Method to create a-record for restApi gateway target
61
- * @param {string} id scoped id of the resource
62
- * @param {common.CommonConstruct} scope scope in which this resource is defined
63
- * @param recordName
64
- * @param apiDomain
65
- * @param hostedZone
66
- */
67
- createApiGatewayARecord(id: string, scope: common.CommonConstruct, recordName: string, apiDomain: apig.DomainName, hostedZone: route53.IHostedZone): route53.ARecord;
68
- }
69
- //# sourceMappingURL=route53-manager.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"route53-manager.d.ts","sourceRoot":"","sources":["../../../../../src/lib/manager/aws/route53-manager.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,IAAI,MAAM,4BAA4B,CAAA;AAClD,OAAO,KAAK,UAAU,MAAM,4BAA4B,CAAA;AACxD,OAAO,KAAK,OAAO,MAAM,yBAAyB,CAAA;AAElD,OAAO,KAAK,MAAM,MAAM,cAAc,CAAA;AACtC,OAAO,KAAK,KAAK,MAAM,aAAa,CAAA;AAGpC;;;;;;;;;;;;;;;;;;;GAmBG;AACH,qBAAa,cAAc;IACzB;;;;;OAKG;IACI,gBAAgB,CAAC,EAAE,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,CAAC,eAAe,EAAE,KAAK,EAAE,KAAK,CAAC,YAAY;IAsB5F;;;;;OAKG;IACI,0CAA0C,CAC/C,EAAE,EAAE,MAAM,EACV,KAAK,EAAE,MAAM,CAAC,eAAe,EAC7B,qBAAqB,EAAE,OAAO;IAqBhC;;;;;;;OAOG;IACI,6BAA6B,CAClC,EAAE,EAAE,MAAM,EACV,KAAK,EAAE,MAAM,CAAC,eAAe,EAC7B,YAAY,CAAC,EAAE,UAAU,CAAC,aAAa,EACvC,UAAU,CAAC,EAAE,OAAO,CAAC,WAAW,EAChC,UAAU,CAAC,EAAE,MAAM;IAgBrB;;;;;;;OAOG;IACI,+BAA+B,CACpC,EAAE,EAAE,MAAM,EACV,KAAK,EAAE,MAAM,CAAC,eAAe,EAC7B,YAAY,CAAC,EA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