@gradientedge/cdk-utils 8.89.0 → 8.90.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (368) hide show
  1. package/dist/index.d.ts +1 -1
  2. package/dist/index.js +1 -1
  3. package/dist/src/lib/common/construct.d.ts +4 -4
  4. package/dist/src/lib/common/construct.js +1 -1
  5. package/dist/src/lib/common/index.d.ts +1 -0
  6. package/dist/src/lib/common/index.js +1 -0
  7. package/dist/src/lib/common/stack.d.ts +1 -1
  8. package/dist/src/lib/common/types.d.ts +22 -0
  9. package/dist/src/lib/common/types.js +2 -0
  10. package/dist/src/lib/{helper/api-to-eventbridge-target-rest-api.d.ts → construct/api-to-eventbridge-target/api.d.ts} +2 -2
  11. package/dist/src/lib/{helper/api-to-eventbridge-target-event.d.ts → construct/api-to-eventbridge-target/event.d.ts} +2 -2
  12. package/dist/src/lib/construct/api-to-eventbridge-target/index.d.ts +3 -0
  13. package/dist/src/lib/construct/api-to-eventbridge-target/index.js +3 -0
  14. package/dist/src/lib/construct/api-to-eventbridge-target/main.d.ts +5 -5
  15. package/dist/src/lib/construct/api-to-eventbridge-target/main.js +4 -3
  16. package/dist/src/lib/construct/api-to-eventbridge-target/types.d.ts +112 -0
  17. package/dist/src/lib/construct/api-to-eventbridge-target/types.js +2 -0
  18. package/dist/src/lib/construct/api-to-eventbridge-target-with-sns/api-destined-lambda.d.ts +3 -3
  19. package/dist/src/lib/construct/api-to-eventbridge-target-with-sns/index.d.ts +1 -0
  20. package/dist/src/lib/construct/api-to-eventbridge-target-with-sns/index.js +1 -0
  21. package/dist/src/lib/construct/api-to-eventbridge-target-with-sns/main.d.ts +7 -6
  22. package/dist/src/lib/construct/api-to-eventbridge-target-with-sns/main.js +3 -3
  23. package/dist/src/lib/construct/api-to-eventbridge-target-with-sns/types.d.ts +26 -0
  24. package/dist/src/lib/construct/api-to-eventbridge-target-with-sns/types.js +2 -0
  25. package/dist/src/lib/{helper/api-to-lambda-target-rest-api.d.ts → construct/api-to-lambda-target/api.d.ts} +2 -2
  26. package/dist/src/lib/construct/api-to-lambda-target/index.d.ts +2 -0
  27. package/dist/src/lib/construct/api-to-lambda-target/index.js +2 -0
  28. package/dist/src/lib/construct/api-to-lambda-target/main.d.ts +4 -4
  29. package/dist/src/lib/construct/api-to-lambda-target/main.js +2 -2
  30. package/dist/src/lib/construct/api-to-lambda-target/types.d.ts +68 -0
  31. package/dist/src/lib/construct/api-to-lambda-target/types.js +2 -0
  32. package/dist/src/lib/construct/graphql-api-lambda/index.d.ts +1 -0
  33. package/dist/src/lib/construct/graphql-api-lambda/index.js +1 -0
  34. package/dist/src/lib/construct/graphql-api-lambda/main.d.ts +1 -1
  35. package/dist/src/lib/construct/graphql-api-lambda/types.d.ts +30 -0
  36. package/dist/src/lib/construct/graphql-api-lambda/types.js +2 -0
  37. package/dist/src/lib/construct/graphql-api-lambda-with-cache/index.d.ts +1 -0
  38. package/dist/src/lib/construct/graphql-api-lambda-with-cache/index.js +1 -0
  39. package/dist/src/lib/construct/graphql-api-lambda-with-cache/main.d.ts +1 -1
  40. package/dist/src/lib/construct/graphql-api-lambda-with-cache/types.d.ts +15 -0
  41. package/dist/src/lib/construct/graphql-api-lambda-with-cache/types.js +2 -0
  42. package/dist/src/lib/construct/lambda-with-iam-access/types.d.ts +2 -1
  43. package/dist/src/lib/construct/rest-api-lambda/index.d.ts +1 -0
  44. package/dist/src/lib/construct/rest-api-lambda/index.js +1 -0
  45. package/dist/src/lib/construct/rest-api-lambda/main.d.ts +1 -1
  46. package/dist/src/lib/construct/rest-api-lambda/types.d.ts +28 -0
  47. package/dist/src/lib/construct/rest-api-lambda/types.js +2 -0
  48. package/dist/src/lib/construct/rest-api-lambda-with-cache/index.d.ts +1 -0
  49. package/dist/src/lib/construct/rest-api-lambda-with-cache/index.js +1 -0
  50. package/dist/src/lib/construct/rest-api-lambda-with-cache/main.d.ts +1 -1
  51. package/dist/src/lib/construct/rest-api-lambda-with-cache/types.d.ts +14 -0
  52. package/dist/src/lib/construct/rest-api-lambda-with-cache/types.js +2 -0
  53. package/dist/src/lib/construct/site-with-ecs-backend/index.d.ts +1 -0
  54. package/dist/src/lib/construct/site-with-ecs-backend/index.js +1 -0
  55. package/dist/src/lib/construct/site-with-ecs-backend/main.d.ts +1 -1
  56. package/dist/src/lib/construct/site-with-ecs-backend/types.d.ts +30 -0
  57. package/dist/src/lib/construct/site-with-ecs-backend/types.js +2 -0
  58. package/dist/src/lib/construct/static-asset-deployment/types.d.ts +2 -1
  59. package/dist/src/lib/construct/static-site/index.d.ts +1 -0
  60. package/dist/src/lib/construct/static-site/index.js +1 -0
  61. package/dist/src/lib/construct/static-site/main.d.ts +1 -1
  62. package/dist/src/lib/construct/static-site/types.d.ts +26 -0
  63. package/dist/src/lib/construct/static-site/types.js +2 -0
  64. package/dist/src/lib/index.d.ts +5 -0
  65. package/dist/src/lib/index.js +21 -0
  66. package/dist/src/lib/services/aws/api-gateway/index.d.ts +2 -0
  67. package/dist/src/lib/{helper → services/aws/api-gateway}/index.js +2 -3
  68. package/dist/src/lib/{manager/aws/api-manager.d.ts → services/aws/api-gateway/main.d.ts} +14 -14
  69. package/dist/src/lib/{manager/aws/api-manager.js → services/aws/api-gateway/main.js} +13 -10
  70. package/dist/src/lib/services/aws/api-gateway/types.d.ts +9 -0
  71. package/dist/src/lib/services/aws/api-gateway/types.js +2 -0
  72. package/dist/src/lib/services/aws/appconfig/constants.d.ts +18 -0
  73. package/dist/src/lib/services/aws/appconfig/constants.js +60 -0
  74. package/dist/src/lib/services/aws/appconfig/index.d.ts +3 -0
  75. package/dist/src/lib/services/aws/appconfig/index.js +19 -0
  76. package/dist/src/lib/{manager/aws/app-config-manager.d.ts → services/aws/appconfig/main.d.ts} +18 -18
  77. package/dist/src/lib/services/aws/appconfig/main.js +135 -0
  78. package/dist/src/lib/services/aws/appconfig/types.d.ts +13 -0
  79. package/dist/src/lib/services/aws/appconfig/types.js +2 -0
  80. package/dist/src/lib/services/aws/certificate-manager/index.d.ts +2 -0
  81. package/dist/src/lib/services/aws/certificate-manager/index.js +18 -0
  82. package/dist/src/lib/{manager/aws/acm-manager.d.ts → services/aws/certificate-manager/main.d.ts} +7 -7
  83. package/dist/src/lib/{manager/aws/acm-manager.js → services/aws/certificate-manager/main.js} +5 -5
  84. package/dist/src/lib/services/aws/certificate-manager/types.d.ts +13 -0
  85. package/dist/src/lib/services/aws/certificate-manager/types.js +2 -0
  86. package/dist/src/lib/services/aws/cloudfront/index.d.ts +2 -0
  87. package/dist/src/lib/services/aws/cloudfront/index.js +18 -0
  88. package/dist/src/lib/{manager/aws/cloudfront-manager.d.ts → services/aws/cloudfront/main.d.ts} +24 -23
  89. package/dist/src/lib/{manager/aws/cloudfront-manager.js → services/aws/cloudfront/main.js} +16 -16
  90. package/dist/src/lib/services/aws/cloudfront/types.d.ts +25 -0
  91. package/dist/src/lib/services/aws/cloudfront/types.js +2 -0
  92. package/dist/src/lib/services/aws/cloudtrail/index.d.ts +2 -0
  93. package/dist/src/lib/services/aws/cloudtrail/index.js +18 -0
  94. package/dist/src/lib/{manager/aws/cloudtrail-manager.d.ts → services/aws/cloudtrail/main.d.ts} +9 -9
  95. package/dist/src/lib/{manager/aws/cloudtrail-manager.js → services/aws/cloudtrail/main.js} +7 -7
  96. package/dist/src/lib/services/aws/cloudtrail/types.d.ts +7 -0
  97. package/dist/src/lib/services/aws/cloudtrail/types.js +2 -0
  98. package/dist/src/lib/services/aws/cloudwatch/index.d.ts +3 -0
  99. package/dist/src/lib/services/aws/cloudwatch/index.js +19 -0
  100. package/dist/src/lib/{manager/aws/log-manager.d.ts → services/aws/cloudwatch/logs.d.ts} +15 -15
  101. package/dist/src/lib/{manager/aws/log-manager.js → services/aws/cloudwatch/logs.js} +11 -11
  102. package/dist/src/lib/services/aws/cloudwatch/main.d.ts +211 -0
  103. package/dist/src/lib/{manager/aws/cloudwatch-manager.js → services/aws/cloudwatch/main.js} +48 -48
  104. package/dist/src/lib/services/aws/cloudwatch/types.d.ts +111 -0
  105. package/dist/src/lib/services/aws/cloudwatch/types.js +2 -0
  106. package/dist/src/lib/services/aws/codebuild/index.d.ts +1 -0
  107. package/dist/src/lib/services/aws/codebuild/index.js +17 -0
  108. package/dist/src/lib/{manager/aws/codebuild-manager.d.ts → services/aws/codebuild/main.d.ts} +7 -7
  109. package/dist/src/lib/{manager/aws/codebuild-manager.js → services/aws/codebuild/main.js} +4 -4
  110. package/dist/src/lib/services/aws/dynamodb/index.d.ts +2 -0
  111. package/dist/src/lib/services/aws/dynamodb/index.js +18 -0
  112. package/dist/src/lib/{manager/aws/dynamodb-manager.d.ts → services/aws/dynamodb/main.d.ts} +7 -7
  113. package/dist/src/lib/{manager/aws/dynamodb-manager.js → services/aws/dynamodb/main.js} +5 -5
  114. package/dist/src/lib/services/aws/dynamodb/types.d.ts +9 -0
  115. package/dist/src/lib/services/aws/dynamodb/types.js +2 -0
  116. package/dist/src/lib/services/aws/elastic-container-registry/index.d.ts +1 -0
  117. package/dist/src/lib/services/aws/elastic-container-registry/index.js +17 -0
  118. package/dist/src/lib/{manager/aws/ecr-manager.d.ts → services/aws/elastic-container-registry/main.d.ts} +7 -7
  119. package/dist/src/lib/{manager/aws/ecr-manager.js → services/aws/elastic-container-registry/main.js} +6 -6
  120. package/dist/src/lib/services/aws/elastic-container-service/index.d.ts +2 -0
  121. package/dist/src/lib/services/aws/elastic-container-service/index.js +18 -0
  122. package/dist/src/lib/{manager/aws/ecs-manager.d.ts → services/aws/elastic-container-service/main.d.ts} +15 -15
  123. package/dist/src/lib/{manager/aws/ecs-manager.js → services/aws/elastic-container-service/main.js} +11 -11
  124. package/dist/src/lib/services/aws/elastic-container-service/types.d.ts +46 -0
  125. package/dist/src/lib/services/aws/elastic-container-service/types.js +2 -0
  126. package/dist/src/lib/services/aws/elastic-file-system/index.d.ts +2 -0
  127. package/dist/src/lib/services/aws/elastic-file-system/index.js +18 -0
  128. package/dist/src/lib/{manager/aws/efs-manager.d.ts → services/aws/elastic-file-system/main.d.ts} +10 -10
  129. package/dist/src/lib/{manager/aws/efs-manager.js → services/aws/elastic-file-system/main.js} +8 -8
  130. package/dist/src/lib/services/aws/elastic-file-system/types.d.ts +19 -0
  131. package/dist/src/lib/services/aws/elastic-file-system/types.js +2 -0
  132. package/dist/src/lib/services/aws/elastic-kubernetes-service/index.d.ts +2 -0
  133. package/dist/src/lib/services/aws/elastic-kubernetes-service/index.js +18 -0
  134. package/dist/src/lib/{manager/aws/eks-manager.d.ts → services/aws/elastic-kubernetes-service/main.d.ts} +9 -9
  135. package/dist/src/lib/{manager/aws/eks-manager.js → services/aws/elastic-kubernetes-service/main.js} +7 -7
  136. package/dist/src/lib/services/aws/elastic-kubernetes-service/types.d.ts +9 -0
  137. package/dist/src/lib/services/aws/elastic-kubernetes-service/types.js +2 -0
  138. package/dist/src/lib/services/aws/elasticache/index.d.ts +2 -0
  139. package/dist/src/lib/services/aws/elasticache/index.js +18 -0
  140. package/dist/src/lib/services/aws/elasticache/main.d.ts +51 -0
  141. package/dist/src/lib/{manager/aws/elasticache-manager.js → services/aws/elasticache/main.js} +11 -12
  142. package/dist/src/lib/services/aws/elasticache/types.d.ts +13 -0
  143. package/dist/src/lib/services/aws/elasticache/types.js +2 -0
  144. package/dist/src/lib/services/aws/eventbridge/index.d.ts +3 -0
  145. package/dist/src/lib/services/aws/eventbridge/index.js +19 -0
  146. package/dist/src/lib/{manager/aws/event-manager.d.ts → services/aws/eventbridge/main.d.ts} +20 -20
  147. package/dist/src/lib/{manager/aws/event-manager.js → services/aws/eventbridge/main.js} +21 -15
  148. package/dist/src/lib/{manager/aws/event-target-manager.d.ts → services/aws/eventbridge/target.d.ts} +7 -7
  149. package/dist/src/lib/{manager/aws/event-target-manager.js → services/aws/eventbridge/target.js} +5 -5
  150. package/dist/src/lib/services/aws/eventbridge/types.d.ts +35 -0
  151. package/dist/src/lib/services/aws/eventbridge/types.js +2 -0
  152. package/dist/src/lib/services/aws/evidently/index.d.ts +2 -0
  153. package/dist/src/lib/services/aws/evidently/index.js +18 -0
  154. package/dist/src/lib/{manager/aws/evidently-manager.d.ts → services/aws/evidently/main.d.ts} +16 -16
  155. package/dist/src/lib/{manager/aws/evidently-manager.js → services/aws/evidently/main.js} +10 -10
  156. package/dist/src/lib/services/aws/evidently/types.d.ts +31 -0
  157. package/dist/src/lib/services/aws/evidently/types.js +2 -0
  158. package/dist/src/lib/services/aws/identity-access-management/index.d.ts +1 -0
  159. package/dist/src/lib/services/aws/identity-access-management/index.js +17 -0
  160. package/dist/src/lib/{manager/aws/iam-manager.d.ts → services/aws/identity-access-management/main.d.ts} +39 -40
  161. package/dist/src/lib/{manager/aws/iam-manager.js → services/aws/identity-access-management/main.js} +22 -23
  162. package/dist/src/lib/services/aws/index.d.ts +28 -0
  163. package/dist/src/lib/services/aws/index.js +44 -0
  164. package/dist/src/lib/services/aws/key-management-service/index.d.ts +2 -0
  165. package/dist/src/lib/services/aws/key-management-service/index.js +18 -0
  166. package/dist/src/lib/{manager/aws/kms-manager.d.ts → services/aws/key-management-service/main.d.ts} +7 -7
  167. package/dist/src/lib/{manager/aws/kms-manager.js → services/aws/key-management-service/main.js} +5 -5
  168. package/dist/src/lib/services/aws/key-management-service/types.d.ts +7 -0
  169. package/dist/src/lib/services/aws/key-management-service/types.js +2 -0
  170. package/dist/src/lib/services/aws/lambda/index.d.ts +2 -0
  171. package/dist/src/lib/services/aws/lambda/index.js +18 -0
  172. package/dist/src/lib/{manager/aws/lambda-manager.d.ts → services/aws/lambda/main.d.ts} +22 -21
  173. package/dist/src/lib/{manager/aws/lambda-manager.js → services/aws/lambda/main.js} +21 -21
  174. package/dist/src/lib/services/aws/lambda/types.d.ts +52 -0
  175. package/dist/src/lib/services/aws/lambda/types.js +2 -0
  176. package/dist/src/lib/services/aws/route53/index.d.ts +2 -0
  177. package/dist/src/lib/services/aws/route53/index.js +18 -0
  178. package/dist/src/lib/{manager/aws/route53-manager.d.ts → services/aws/route53/main.d.ts} +17 -17
  179. package/dist/src/lib/{manager/aws/route53-manager.js → services/aws/route53/main.js} +11 -11
  180. package/dist/src/lib/services/aws/route53/types.d.ts +8 -0
  181. package/dist/src/lib/services/aws/route53/types.js +2 -0
  182. package/dist/src/lib/services/aws/secrets-manager/index.d.ts +1 -0
  183. package/dist/src/lib/services/aws/secrets-manager/index.js +17 -0
  184. package/dist/src/lib/{manager/aws/secrets-manager.d.ts → services/aws/secrets-manager/main.d.ts} +8 -8
  185. package/dist/src/lib/{manager/aws/secrets-manager.js → services/aws/secrets-manager/main.js} +6 -6
  186. package/dist/src/lib/services/aws/simple-notification-service/index.d.ts +2 -0
  187. package/dist/src/lib/services/aws/simple-notification-service/index.js +18 -0
  188. package/dist/src/lib/{manager/aws/sns-manager.d.ts → services/aws/simple-notification-service/main.d.ts} +13 -13
  189. package/dist/src/lib/{manager/aws/sns-manager.js → services/aws/simple-notification-service/main.js} +10 -10
  190. package/dist/src/lib/services/aws/simple-notification-service/types.d.ts +7 -0
  191. package/dist/src/lib/services/aws/simple-notification-service/types.js +2 -0
  192. package/dist/src/lib/services/aws/simple-queue-service/index.d.ts +2 -0
  193. package/dist/src/lib/services/aws/simple-queue-service/index.js +18 -0
  194. package/dist/src/lib/services/aws/simple-queue-service/main.d.ts +50 -0
  195. package/dist/src/lib/{manager/aws/sqs-manager.js → services/aws/simple-queue-service/main.js} +11 -11
  196. package/dist/src/lib/services/aws/simple-queue-service/types.d.ts +17 -0
  197. package/dist/src/lib/services/aws/simple-queue-service/types.js +2 -0
  198. package/dist/src/lib/services/aws/simple-storage-service/index.d.ts +2 -0
  199. package/dist/src/lib/services/aws/simple-storage-service/index.js +18 -0
  200. package/dist/src/lib/{manager/aws/s3-manager.d.ts → services/aws/simple-storage-service/main.d.ts} +23 -23
  201. package/dist/src/lib/{manager/aws/s3-manager.js → services/aws/simple-storage-service/main.js} +15 -16
  202. package/dist/src/lib/services/aws/simple-storage-service/types.d.ts +31 -0
  203. package/dist/src/lib/services/aws/simple-storage-service/types.js +2 -0
  204. package/dist/src/lib/services/aws/step-function/index.d.ts +2 -0
  205. package/dist/src/lib/services/aws/step-function/index.js +18 -0
  206. package/dist/src/lib/services/aws/step-function/main.d.ts +157 -0
  207. package/dist/src/lib/{manager/aws/sfn-manager.js → services/aws/step-function/main.js} +35 -35
  208. package/dist/src/lib/services/aws/step-function/types.d.ts +120 -0
  209. package/dist/src/lib/services/aws/step-function/types.js +2 -0
  210. package/dist/src/lib/services/aws/systems-manager/index.d.ts +2 -0
  211. package/dist/src/lib/services/aws/systems-manager/index.js +18 -0
  212. package/dist/src/lib/{manager/aws/ssm-manager.d.ts → services/aws/systems-manager/main.d.ts} +13 -13
  213. package/dist/src/lib/{manager/aws/ssm-manager.js → services/aws/systems-manager/main.js} +8 -8
  214. package/dist/src/lib/services/aws/systems-manager/types.d.ts +8 -0
  215. package/dist/src/lib/services/aws/systems-manager/types.js +2 -0
  216. package/dist/src/lib/services/aws/virtual-private-cloud/index.d.ts +1 -0
  217. package/dist/src/lib/services/aws/virtual-private-cloud/index.js +17 -0
  218. package/dist/src/lib/{manager/aws/vpc-manager.d.ts → services/aws/virtual-private-cloud/main.d.ts} +11 -11
  219. package/dist/src/lib/{manager/aws/vpc-manager.js → services/aws/virtual-private-cloud/main.js} +8 -8
  220. package/dist/src/lib/services/aws/web-application-firewall/index.d.ts +1 -0
  221. package/dist/src/lib/services/aws/web-application-firewall/index.js +17 -0
  222. package/dist/src/lib/services/aws/web-application-firewall/main.d.ts +39 -0
  223. package/dist/src/lib/{manager/aws/waf-manager.js → services/aws/web-application-firewall/main.js} +9 -9
  224. package/dist/src/lib/services/aws/web-application-firewall/types.d.ts +13 -0
  225. package/dist/src/lib/services/aws/web-application-firewall/types.js +2 -0
  226. package/dist/src/lib/types/aws/index.d.ts +0 -921
  227. package/index.ts +1 -1
  228. package/package.json +1 -1
  229. package/src/lib/common/construct.ts +4 -4
  230. package/src/lib/common/index.ts +1 -0
  231. package/src/lib/common/stack.ts +1 -1
  232. package/src/lib/common/types.ts +23 -0
  233. package/src/lib/{helper/api-to-eventbridge-target-rest-api.ts → construct/api-to-eventbridge-target/api.ts} +2 -2
  234. package/src/lib/{helper/api-to-eventbridge-target-event.ts → construct/api-to-eventbridge-target/event.ts} +2 -2
  235. package/src/lib/construct/api-to-eventbridge-target/index.ts +3 -0
  236. package/src/lib/construct/api-to-eventbridge-target/main.ts +13 -8
  237. package/src/lib/construct/api-to-eventbridge-target/types.ts +126 -0
  238. package/src/lib/construct/api-to-eventbridge-target-with-sns/api-destined-lambda.ts +3 -3
  239. package/src/lib/construct/api-to-eventbridge-target-with-sns/index.ts +1 -0
  240. package/src/lib/construct/api-to-eventbridge-target-with-sns/main.ts +15 -9
  241. package/src/lib/construct/api-to-eventbridge-target-with-sns/types.ts +28 -0
  242. package/src/lib/{helper/api-to-lambda-target-rest-api.ts → construct/api-to-lambda-target/api.ts} +2 -2
  243. package/src/lib/construct/api-to-lambda-target/index.ts +2 -0
  244. package/src/lib/construct/api-to-lambda-target/main.ts +6 -6
  245. package/src/lib/construct/api-to-lambda-target/types.ts +78 -0
  246. package/src/lib/construct/graphql-api-lambda/index.ts +1 -0
  247. package/src/lib/construct/graphql-api-lambda/main.ts +1 -1
  248. package/src/lib/construct/graphql-api-lambda/types.ts +31 -0
  249. package/src/lib/construct/graphql-api-lambda-with-cache/index.ts +1 -0
  250. package/src/lib/construct/graphql-api-lambda-with-cache/main.ts +1 -1
  251. package/src/lib/construct/graphql-api-lambda-with-cache/types.ts +16 -0
  252. package/src/lib/construct/lambda-with-iam-access/types.ts +2 -1
  253. package/src/lib/construct/rest-api-lambda/index.ts +1 -0
  254. package/src/lib/construct/rest-api-lambda/main.ts +1 -1
  255. package/src/lib/construct/rest-api-lambda/types.ts +29 -0
  256. package/src/lib/construct/rest-api-lambda-with-cache/index.ts +1 -0
  257. package/src/lib/construct/rest-api-lambda-with-cache/main.ts +1 -1
  258. package/src/lib/construct/rest-api-lambda-with-cache/types.ts +15 -0
  259. package/src/lib/construct/site-with-ecs-backend/index.ts +1 -0
  260. package/src/lib/construct/site-with-ecs-backend/main.ts +1 -1
  261. package/src/lib/construct/site-with-ecs-backend/types.ts +42 -0
  262. package/src/lib/construct/static-asset-deployment/types.ts +2 -1
  263. package/src/lib/construct/static-site/index.ts +1 -0
  264. package/src/lib/construct/static-site/main.ts +1 -1
  265. package/src/lib/construct/static-site/types.ts +27 -0
  266. package/src/lib/index.ts +5 -0
  267. package/src/lib/services/aws/api-gateway/index.ts +2 -0
  268. package/src/lib/{manager/aws/api-manager.ts → services/aws/api-gateway/main.ts} +20 -17
  269. package/src/lib/services/aws/api-gateway/types.ts +10 -0
  270. package/src/lib/services/aws/appconfig/constants.ts +58 -0
  271. package/src/lib/services/aws/appconfig/index.ts +3 -0
  272. package/src/lib/services/aws/appconfig/main.ts +130 -0
  273. package/src/lib/services/aws/appconfig/types.ts +20 -0
  274. package/src/lib/services/aws/certificate-manager/index.ts +2 -0
  275. package/src/lib/{manager/aws/acm-manager.ts → services/aws/certificate-manager/main.ts} +9 -9
  276. package/src/lib/services/aws/certificate-manager/types.ts +14 -0
  277. package/src/lib/services/aws/cloudfront/index.ts +2 -0
  278. package/src/lib/{manager/aws/cloudfront-manager.ts → services/aws/cloudfront/main.ts} +29 -29
  279. package/src/lib/services/aws/cloudfront/types.ts +28 -0
  280. package/src/lib/services/aws/cloudtrail/index.ts +2 -0
  281. package/src/lib/{manager/aws/cloudtrail-manager.ts → services/aws/cloudtrail/main.ts} +11 -11
  282. package/src/lib/services/aws/cloudtrail/types.ts +7 -0
  283. package/src/lib/services/aws/cloudwatch/index.ts +3 -0
  284. package/src/lib/{manager/aws/log-manager.ts → services/aws/cloudwatch/logs.ts} +16 -21
  285. package/src/lib/{manager/aws/cloudwatch-manager.ts → services/aws/cloudwatch/main.ts} +86 -112
  286. package/src/lib/services/aws/cloudwatch/types.ts +121 -0
  287. package/src/lib/services/aws/codebuild/index.ts +1 -0
  288. package/src/lib/{manager/aws/codebuild-manager.ts → services/aws/codebuild/main.ts} +7 -7
  289. package/src/lib/services/aws/dynamodb/index.ts +2 -0
  290. package/src/lib/{manager/aws/dynamodb-manager.ts → services/aws/dynamodb/main.ts} +8 -8
  291. package/src/lib/services/aws/dynamodb/types.ts +10 -0
  292. package/src/lib/services/aws/elastic-container-registry/index.ts +1 -0
  293. package/src/lib/{manager/aws/ecr-manager.ts → services/aws/elastic-container-registry/main.ts} +8 -8
  294. package/src/lib/services/aws/elastic-container-service/index.ts +2 -0
  295. package/src/lib/{manager/aws/ecs-manager.ts → services/aws/elastic-container-service/main.ts} +18 -18
  296. package/src/lib/services/aws/elastic-container-service/types.ts +51 -0
  297. package/src/lib/services/aws/elastic-file-system/index.ts +2 -0
  298. package/src/lib/{manager/aws/efs-manager.ts → services/aws/elastic-file-system/main.ts} +13 -13
  299. package/src/lib/services/aws/elastic-file-system/types.ts +20 -0
  300. package/src/lib/services/aws/elastic-kubernetes-service/index.ts +2 -0
  301. package/src/lib/{manager/aws/eks-manager.ts → services/aws/elastic-kubernetes-service/main.ts} +11 -11
  302. package/src/lib/services/aws/elastic-kubernetes-service/types.ts +10 -0
  303. package/src/lib/services/aws/elasticache/index.ts +2 -0
  304. package/src/lib/{manager/aws/elasticache-manager.ts → services/aws/elasticache/main.ts} +18 -20
  305. package/src/lib/services/aws/elasticache/types.ts +13 -0
  306. package/src/lib/services/aws/eventbridge/index.ts +3 -0
  307. package/src/lib/{manager/aws/event-manager.ts → services/aws/eventbridge/main.ts} +32 -26
  308. package/src/lib/{manager/aws/event-target-manager.ts → services/aws/eventbridge/target.ts} +7 -7
  309. package/src/lib/services/aws/eventbridge/types.ts +38 -0
  310. package/src/lib/services/aws/evidently/index.ts +2 -0
  311. package/src/lib/{manager/aws/evidently-manager.ts → services/aws/evidently/main.ts} +23 -18
  312. package/src/lib/services/aws/evidently/types.ts +37 -0
  313. package/src/lib/services/aws/identity-access-management/index.ts +1 -0
  314. package/src/lib/{manager/aws/iam-manager.ts → services/aws/identity-access-management/main.ts} +40 -51
  315. package/src/lib/services/aws/index.ts +28 -0
  316. package/src/lib/services/aws/key-management-service/index.ts +2 -0
  317. package/src/lib/{manager/aws/kms-manager.ts → services/aws/key-management-service/main.ts} +8 -8
  318. package/src/lib/services/aws/key-management-service/types.ts +7 -0
  319. package/src/lib/services/aws/lambda/index.ts +2 -0
  320. package/src/lib/{manager/aws/lambda-manager.ts → services/aws/lambda/main.ts} +30 -30
  321. package/src/lib/services/aws/lambda/types.ts +57 -0
  322. package/src/lib/services/aws/route53/index.ts +2 -0
  323. package/src/lib/{manager/aws/route53-manager.ts → services/aws/route53/main.ts} +18 -18
  324. package/src/lib/services/aws/route53/types.ts +9 -0
  325. package/src/lib/services/aws/secrets-manager/index.ts +1 -0
  326. package/src/lib/{manager/aws/secrets-manager.ts → services/aws/secrets-manager/main.ts} +9 -14
  327. package/src/lib/services/aws/simple-notification-service/index.ts +2 -0
  328. package/src/lib/{manager/aws/sns-manager.ts → services/aws/simple-notification-service/main.ts} +16 -16
  329. package/src/lib/services/aws/simple-notification-service/types.ts +7 -0
  330. package/src/lib/services/aws/simple-queue-service/index.ts +2 -0
  331. package/src/lib/{manager/aws/sqs-manager.ts → services/aws/simple-queue-service/main.ts} +18 -17
  332. package/src/lib/services/aws/simple-queue-service/types.ts +18 -0
  333. package/src/lib/services/aws/simple-storage-service/index.ts +2 -0
  334. package/src/lib/{manager/aws/s3-manager.ts → services/aws/simple-storage-service/main.ts} +26 -27
  335. package/src/lib/services/aws/simple-storage-service/types.ts +34 -0
  336. package/src/lib/services/aws/step-function/index.ts +2 -0
  337. package/src/lib/{manager/aws/sfn-manager.ts → services/aws/step-function/main.ts} +76 -61
  338. package/src/lib/services/aws/step-function/types.ts +152 -0
  339. package/src/lib/services/aws/systems-manager/index.ts +2 -0
  340. package/src/lib/{manager/aws/ssm-manager.ts → services/aws/systems-manager/main.ts} +15 -19
  341. package/src/lib/services/aws/systems-manager/types.ts +8 -0
  342. package/src/lib/services/aws/virtual-private-cloud/index.ts +1 -0
  343. package/src/lib/{manager/aws/vpc-manager.ts → services/aws/virtual-private-cloud/main.ts} +12 -12
  344. package/src/lib/services/aws/web-application-firewall/index.ts +1 -0
  345. package/src/lib/{manager/aws/waf-manager.ts → services/aws/web-application-firewall/main.ts} +13 -13
  346. package/src/lib/services/aws/web-application-firewall/types.ts +13 -0
  347. package/src/lib/types/aws/index.ts +0 -984
  348. package/dist/src/lib/helper/index.d.ts +0 -3
  349. package/dist/src/lib/manager/aws/app-config-manager.js +0 -191
  350. package/dist/src/lib/manager/aws/cloudwatch-manager.d.ts +0 -211
  351. package/dist/src/lib/manager/aws/elasticache-manager.d.ts +0 -52
  352. package/dist/src/lib/manager/aws/index.d.ts +0 -30
  353. package/dist/src/lib/manager/aws/index.js +0 -46
  354. package/dist/src/lib/manager/aws/sfn-manager.d.ts +0 -157
  355. package/dist/src/lib/manager/aws/sqs-manager.d.ts +0 -49
  356. package/dist/src/lib/manager/aws/waf-manager.d.ts +0 -39
  357. package/src/lib/helper/index.ts +0 -3
  358. package/src/lib/manager/aws/app-config-manager.ts +0 -192
  359. package/src/lib/manager/aws/index.ts +0 -30
  360. /package/dist/src/lib/{helper/api-to-eventbridge-target-rest-api.js → construct/api-to-eventbridge-target/api.js} +0 -0
  361. /package/dist/src/lib/{helper/api-to-eventbridge-target-event.js → construct/api-to-eventbridge-target/event.js} +0 -0
  362. /package/dist/src/lib/{helper/api-to-lambda-target-rest-api.js → construct/api-to-lambda-target/api.js} +0 -0
  363. /package/dist/src/lib/{manager → services}/aws/constants.d.ts +0 -0
  364. /package/dist/src/lib/{manager → services}/aws/constants.js +0 -0
  365. /package/dist/src/lib/{manager → services}/index.d.ts +0 -0
  366. /package/dist/src/lib/{manager → services}/index.js +0 -0
  367. /package/src/lib/{manager → services}/aws/constants.ts +0 -0
  368. /package/src/lib/{manager → services}/index.ts +0 -0
@@ -3,19 +3,20 @@ import * as ec2 from 'aws-cdk-lib/aws-ec2';
3
3
  import * as efs from 'aws-cdk-lib/aws-efs';
4
4
  import * as iam from 'aws-cdk-lib/aws-iam';
5
5
  import * as lambda from 'aws-cdk-lib/aws-lambda';
6
- import * as common from '../../common';
7
- import * as types from '../../types';
6
+ import { IVersion } from 'aws-cdk-lib/aws-lambda';
7
+ import { CommonConstruct } from '../../../common';
8
+ import { LambdaAliasProps, LambdaEdgeProps, LambdaProps } from './types';
8
9
  /**
9
10
  * @stability stable
10
11
  * @category cdk-utils.lambda-manager
11
12
  * @subcategory Construct
12
13
  * @classdesc 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.
14
+ * - A new instance of this class is injected into {@link CommonConstruct} constructor.
15
+ * - If a custom construct extends {@link CommonConstruct}, an instance is available within the context.
15
16
  * @example
16
- * import * as common from '@gradientedge/cdk-utils'
17
+ * import { CommonConstruct } from '@gradientedge/cdk-utils'
17
18
  *
18
- * class CustomConstruct extends common.common.CommonConstruct {
19
+ * class CustomConstruct extends CommonConstruct {
19
20
  * constructor(parent: cdk.Construct, id: string, props: common.CommonStackProps) {
20
21
  * super(parent, id, props)
21
22
  * this.props = props
@@ -29,15 +30,15 @@ export declare class LambdaManager {
29
30
  /**
30
31
  * @summary Method to create a lambda layer (nodejs)
31
32
  * @param {string} id scoped id of the resource
32
- * @param {common.CommonConstruct} scope scope in which this resource is defined
33
+ * @param {CommonConstruct} scope scope in which this resource is defined
33
34
  * @param {lambda.AssetCode} code
34
35
  */
35
- createLambdaLayer(id: string, scope: common.CommonConstruct, code: lambda.AssetCode): cdk.aws_lambda.LayerVersion;
36
+ createLambdaLayer(id: string, scope: CommonConstruct, code: lambda.AssetCode): cdk.aws_lambda.LayerVersion;
36
37
  /**
37
38
  * @summary Method to create a lambda function (nodejs)
38
39
  * @param {string} id scoped id of the resource
39
- * @param {common.CommonConstruct} scope scope in which this resource is defined
40
- * @param {types.LambdaProps} props
40
+ * @param {CommonConstruct} scope scope in which this resource is defined
41
+ * @param {LambdaProps} props
41
42
  * @param {iam.Role | iam.CfnRole} role
42
43
  * @param {lambda.ILayerVersion[]} layers
43
44
  * @param {lambda.AssetCode} code
@@ -49,13 +50,13 @@ export declare class LambdaManager {
49
50
  * @param {string?} mountPath
50
51
  * @param {ec2.SubnetSelection?} vpcSubnets
51
52
  */
52
- 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;
53
+ createLambdaFunction(id: string, scope: CommonConstruct, props: 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;
53
54
  /**
54
55
  * @summary Method to provision a Lambda@Edge function
55
56
  *
56
57
  * @param {string} id scoped id of the resource
57
- * @param {common.CommonConstruct} scope scope in which this resource is defined
58
- * @param {types.LambdaEdgeProps} props lambda@edge properties
58
+ * @param {CommonConstruct} scope scope in which this resource is defined
59
+ * @param {LambdaEdgeProps} props lambda@edge properties
59
60
  * @param {lambda.ILayerVersion[]} layers
60
61
  * @param {lambda.AssetCode} code
61
62
  * @param {iam.Role} role
@@ -65,12 +66,12 @@ export declare class LambdaManager {
65
66
  * @param {efs.IAccessPoint?} accessPoint
66
67
  * @param {string?} mountPath
67
68
  */
68
- createEdgeFunction(id: string, scope: common.CommonConstruct, props: types.LambdaEdgeProps, layers: lambda.ILayerVersion[], code: lambda.AssetCode, role: iam.Role, environment?: any, vpc?: ec2.IVpc, securityGroups?: ec2.ISecurityGroup[], accessPoint?: efs.IAccessPoint, mountPath?: string): cdk.aws_cloudfront.experimental.EdgeFunction;
69
+ createEdgeFunction(id: string, scope: CommonConstruct, props: LambdaEdgeProps, layers: lambda.ILayerVersion[], code: lambda.AssetCode, role: iam.Role, environment?: any, vpc?: ec2.IVpc, securityGroups?: ec2.ISecurityGroup[], accessPoint?: efs.IAccessPoint, mountPath?: string): cdk.aws_cloudfront.experimental.EdgeFunction;
69
70
  /**
70
71
  * @summary Method to create a lambda function (nodejs) with docker image
71
72
  * @param {string} id scoped id of the resource
72
- * @param {common.CommonConstruct} scope scope in which this resource is defined
73
- * @param {types.LambdaProps} props
73
+ * @param {CommonConstruct} scope scope in which this resource is defined
74
+ * @param {LambdaProps} props
74
75
  * @param {iam.Role | iam.CfnRole} role
75
76
  * @param {lambda.DockerImageCode} code
76
77
  * @param {Map<string, string>?} environment
@@ -80,13 +81,13 @@ export declare class LambdaManager {
80
81
  * @param {string?} mountPath
81
82
  * @param {ec2.SubnetSelection?} vpcSubnets
82
83
  */
83
- createLambdaDockerFunction(id: string, scope: common.CommonConstruct, props: types.LambdaProps, role: iam.Role | iam.CfnRole, code: lambda.DockerImageCode, environment?: any, vpc?: ec2.IVpc, securityGroups?: ec2.ISecurityGroup[], accessPoint?: efs.IAccessPoint, mountPath?: string, vpcSubnets?: ec2.SubnetSelection): cdk.aws_lambda.DockerImageFunction;
84
+ createLambdaDockerFunction(id: string, scope: CommonConstruct, props: LambdaProps, role: iam.Role | iam.CfnRole, code: lambda.DockerImageCode, environment?: any, vpc?: ec2.IVpc, securityGroups?: ec2.ISecurityGroup[], accessPoint?: efs.IAccessPoint, mountPath?: string, vpcSubnets?: ec2.SubnetSelection): cdk.aws_lambda.DockerImageFunction;
84
85
  /**
85
86
  * @summary Method to create a lambda function Alias
86
87
  * @param {string} id scoped id of the resource
87
- * @param {common.CommonConstruct} scope scope in which this resource is defined
88
- * @param {types.LambdaAliasProps} props
89
- * @param {types.LambdaAliasProps} lambdaVersion
88
+ * @param {CommonConstruct} scope scope in which this resource is defined
89
+ * @param {LambdaAliasProps} props
90
+ * @param {IVersion} lambdaVersion
90
91
  */
91
- createLambdaFunctionAlias(id: string, scope: common.CommonConstruct, props: types.LambdaAliasProps, lambdaVersion: lambda.IVersion): cdk.aws_lambda.Alias;
92
+ createLambdaFunctionAlias(id: string, scope: CommonConstruct, props: LambdaAliasProps, lambdaVersion: IVersion): cdk.aws_lambda.Alias;
92
93
  }
@@ -28,21 +28,21 @@ const cdk = __importStar(require("aws-cdk-lib"));
28
28
  const iam = __importStar(require("aws-cdk-lib/aws-iam"));
29
29
  const lambda = __importStar(require("aws-cdk-lib/aws-lambda"));
30
30
  const eventSources = __importStar(require("aws-cdk-lib/aws-lambda-event-sources"));
31
- const common_1 = require("../../common");
32
- const utils = __importStar(require("../../utils"));
33
- const cloudfront_manager_1 = require("./cloudfront-manager");
34
- const ssm_manager_1 = require("./ssm-manager");
31
+ const utils = __importStar(require("../../../utils"));
32
+ const common_1 = require("../../../common");
33
+ const cloudfront_1 = require("../cloudfront");
34
+ const systems_manager_1 = require("../systems-manager");
35
35
  /**
36
36
  * @stability stable
37
37
  * @category cdk-utils.lambda-manager
38
38
  * @subcategory Construct
39
39
  * @classdesc Provides operations on AWS Lambda.
40
- * - A new instance of this class is injected into {@link common.CommonConstruct} constructor.
41
- * - If a custom construct extends {@link common.CommonConstruct}, an instance is available within the context.
40
+ * - A new instance of this class is injected into {@link CommonConstruct} constructor.
41
+ * - If a custom construct extends {@link CommonConstruct}, an instance is available within the context.
42
42
  * @example
43
- * import * as common from '@gradientedge/cdk-utils'
43
+ * import { CommonConstruct } from '@gradientedge/cdk-utils'
44
44
  *
45
- * class CustomConstruct extends common.common.CommonConstruct {
45
+ * class CustomConstruct extends CommonConstruct {
46
46
  * constructor(parent: cdk.Construct, id: string, props: common.CommonStackProps) {
47
47
  * super(parent, id, props)
48
48
  * this.props = props
@@ -56,7 +56,7 @@ class LambdaManager {
56
56
  /**
57
57
  * @summary Method to create a lambda layer (nodejs)
58
58
  * @param {string} id scoped id of the resource
59
- * @param {common.CommonConstruct} scope scope in which this resource is defined
59
+ * @param {CommonConstruct} scope scope in which this resource is defined
60
60
  * @param {lambda.AssetCode} code
61
61
  */
62
62
  createLambdaLayer(id, scope, code) {
@@ -72,8 +72,8 @@ class LambdaManager {
72
72
  /**
73
73
  * @summary Method to create a lambda function (nodejs)
74
74
  * @param {string} id scoped id of the resource
75
- * @param {common.CommonConstruct} scope scope in which this resource is defined
76
- * @param {types.LambdaProps} props
75
+ * @param {CommonConstruct} scope scope in which this resource is defined
76
+ * @param {LambdaProps} props
77
77
  * @param {iam.Role | iam.CfnRole} role
78
78
  * @param {lambda.ILayerVersion[]} layers
79
79
  * @param {lambda.AssetCode} code
@@ -109,7 +109,7 @@ class LambdaManager {
109
109
  STAGE: scope.props.stage,
110
110
  LAST_MODIFIED_TS: props.excludeLastModifiedTimestamp
111
111
  ? ''
112
- : scope.ssmManager.readStringParameter(`${id}-sm-ts`, scope, `${ssm_manager_1.SsmManager.SECRETS_MODIFIED_TIMESTAMP_PARAM}-${scope.props.stage}`),
112
+ : scope.ssmManager.readStringParameter(`${id}-sm-ts`, scope, `${systems_manager_1.SsmManager.SECRETS_MODIFIED_TIMESTAMP_PARAM}-${scope.props.stage}`),
113
113
  ...environment,
114
114
  },
115
115
  filesystem: accessPoint
@@ -160,8 +160,8 @@ class LambdaManager {
160
160
  * @summary Method to provision a Lambda@Edge function
161
161
  *
162
162
  * @param {string} id scoped id of the resource
163
- * @param {common.CommonConstruct} scope scope in which this resource is defined
164
- * @param {types.LambdaEdgeProps} props lambda@edge properties
163
+ * @param {CommonConstruct} scope scope in which this resource is defined
164
+ * @param {LambdaEdgeProps} props lambda@edge properties
165
165
  * @param {lambda.ILayerVersion[]} layers
166
166
  * @param {lambda.AssetCode} code
167
167
  * @param {iam.Role} role
@@ -172,13 +172,13 @@ class LambdaManager {
172
172
  * @param {string?} mountPath
173
173
  */
174
174
  createEdgeFunction(id, scope, props, layers, code, role, environment, vpc, securityGroups, accessPoint, mountPath) {
175
- return new cloudfront_manager_1.CloudFrontManager().createEdgeFunction(id, scope, props, layers, code, role, environment, vpc, securityGroups, accessPoint, mountPath);
175
+ return new cloudfront_1.CloudFrontManager().createEdgeFunction(id, scope, props, layers, code, role, environment, vpc, securityGroups, accessPoint, mountPath);
176
176
  }
177
177
  /**
178
178
  * @summary Method to create a lambda function (nodejs) with docker image
179
179
  * @param {string} id scoped id of the resource
180
- * @param {common.CommonConstruct} scope scope in which this resource is defined
181
- * @param {types.LambdaProps} props
180
+ * @param {CommonConstruct} scope scope in which this resource is defined
181
+ * @param {LambdaProps} props
182
182
  * @param {iam.Role | iam.CfnRole} role
183
183
  * @param {lambda.DockerImageCode} code
184
184
  * @param {Map<string, string>?} environment
@@ -211,7 +211,7 @@ class LambdaManager {
211
211
  STAGE: scope.props.stage,
212
212
  LAST_MODIFIED_TS: props.excludeLastModifiedTimestamp
213
213
  ? ''
214
- : scope.ssmManager.readStringParameter(`${id}-sm-ts`, scope, `${ssm_manager_1.SsmManager.SECRETS_MODIFIED_TIMESTAMP_PARAM}-${scope.props.stage}`),
214
+ : scope.ssmManager.readStringParameter(`${id}-sm-ts`, scope, `${systems_manager_1.SsmManager.SECRETS_MODIFIED_TIMESTAMP_PARAM}-${scope.props.stage}`),
215
215
  ...environment,
216
216
  },
217
217
  filesystem: accessPoint
@@ -241,9 +241,9 @@ class LambdaManager {
241
241
  /**
242
242
  * @summary Method to create a lambda function Alias
243
243
  * @param {string} id scoped id of the resource
244
- * @param {common.CommonConstruct} scope scope in which this resource is defined
245
- * @param {types.LambdaAliasProps} props
246
- * @param {types.LambdaAliasProps} lambdaVersion
244
+ * @param {CommonConstruct} scope scope in which this resource is defined
245
+ * @param {LambdaAliasProps} props
246
+ * @param {IVersion} lambdaVersion
247
247
  */
248
248
  createLambdaFunctionAlias(id, scope, props, lambdaVersion) {
249
249
  if (!props)
@@ -0,0 +1,52 @@
1
+ import { AliasProps, FunctionProps } from 'aws-cdk-lib/aws-lambda';
2
+ import { TagProps } from '../../../types';
3
+ import { EdgeFunctionProps } from 'aws-cdk-lib/aws-cloudfront/lib/experimental';
4
+ import { QueueProps } from '../simple-queue-service';
5
+ /**
6
+ * @category cdk-utils.lambda-manager
7
+ * @subcategory Properties
8
+ */
9
+ export interface ProvisionedConcurrencyProps {
10
+ minCapacity: number;
11
+ maxCapacity: number;
12
+ utilizationTarget: number;
13
+ }
14
+ /**
15
+ * @category cdk-utils.lambda-manager
16
+ * @subcategory Properties
17
+ */
18
+ export interface LambdaProps extends FunctionProps {
19
+ dlq?: QueueProps;
20
+ redriveq?: QueueProps;
21
+ timeoutInSecs?: number;
22
+ excludeLastModifiedTimestamp?: boolean;
23
+ tags?: TagProps[];
24
+ lambdaAliases?: LambdaAliasProps[];
25
+ }
26
+ /**
27
+ * @category cdk-utils.lambda-manager
28
+ * @subcategory Properties
29
+ */
30
+ export interface LambdaAliasProps extends AliasProps {
31
+ id?: string;
32
+ provisionedConcurrency?: ProvisionedConcurrencyProps;
33
+ }
34
+ /**
35
+ * @category cdk-utils.lambda-manager
36
+ * @subcategory Properties
37
+ */
38
+ export interface LambdaEdgeProps extends EdgeFunctionProps {
39
+ timeoutInSecs?: number;
40
+ tags?: TagProps[];
41
+ }
42
+ /**
43
+ * @category cdk-utils.lambda-manager
44
+ * @subcategory Types
45
+ */
46
+ export interface LambdaEnvironment {
47
+ NODE_ENV: string;
48
+ LOG_LEVEL: string;
49
+ REGION?: string;
50
+ STAGE?: string;
51
+ TZ: string;
52
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,2 @@
1
+ export * from './main';
2
+ export * from './types';
@@ -0,0 +1,18 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./main"), exports);
18
+ __exportStar(require("./types"), exports);
@@ -1,19 +1,19 @@
1
1
  import * as apig from 'aws-cdk-lib/aws-apigateway';
2
2
  import * as cloudfront from 'aws-cdk-lib/aws-cloudfront';
3
3
  import * as route53 from 'aws-cdk-lib/aws-route53';
4
- import * as common from '../../common';
5
- import * as types from '../../types';
4
+ import { CommonConstruct } from '../../../common';
5
+ import { Route53Props } from './types';
6
6
  /**
7
7
  * @stability stable
8
8
  * @category cdk-utils.route53-manager
9
9
  * @subcategory Construct
10
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.
11
+ * - A new instance of this class is injected into {@link CommonConstruct} constructor.
12
+ * - If a custom construct extends {@link CommonConstruct}, an instance is available within the context.
13
13
  * @example
14
- * import * as common from '@gradientedge/cdk-utils'
14
+ * import { CommonConstruct } from '@gradientedge/cdk-utils'
15
15
  *
16
- * class CustomConstruct extends common.common.CommonConstruct {
16
+ * class CustomConstruct extends CommonConstruct {
17
17
  * constructor(parent: cdk.Construct, id: string, props: common.CommonStackProps) {
18
18
  * super(parent, id, props)
19
19
  * this.props = props
@@ -27,44 +27,44 @@ export declare class Route53Manager {
27
27
  /**
28
28
  * @summary Method to create a hosted zone
29
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
30
+ * @param {CommonConstruct} scope scope in which this resource is defined
31
+ * @param {Route53Props} props
32
32
  */
33
- createHostedZone(id: string, scope: common.CommonConstruct, props: types.Route53Props): route53.IHostedZone;
33
+ createHostedZone(id: string, scope: CommonConstruct, props: Route53Props): route53.IHostedZone;
34
34
  /**
35
35
  * @summary Method to create/lookup a hosted zone
36
36
  * @param {string} id scoped id of the resource
37
- * @param {common.CommonConstruct} scope scope in which this resource is defined
37
+ * @param {CommonConstruct} scope scope in which this resource is defined
38
38
  * @param useExistingHostedZone Flag to indicate whether to lookup vs create new hosted zone
39
39
  */
40
- withHostedZoneFromFullyQualifiedDomainName(id: string, scope: common.CommonConstruct, useExistingHostedZone: boolean): route53.IHostedZone;
40
+ withHostedZoneFromFullyQualifiedDomainName(id: string, scope: CommonConstruct, useExistingHostedZone: boolean): route53.IHostedZone;
41
41
  /**
42
42
  * @summary Method to create a-record for cloudfront target
43
43
  * @param {string} id scoped id of the resource
44
- * @param {common.CommonConstruct} scope scope in which this resource is defined
44
+ * @param {CommonConstruct} scope scope in which this resource is defined
45
45
  * @param {cloudfront.IDistribution} distribution
46
46
  * @param {route53.IHostedZone} hostedZone
47
47
  * @param {string} recordName
48
48
  * @param skipStageFromRecord
49
49
  */
50
- createCloudFrontTargetARecord(id: string, scope: common.CommonConstruct, distribution?: cloudfront.IDistribution, hostedZone?: route53.IHostedZone, recordName?: string, skipStageFromRecord?: boolean): route53.ARecord;
50
+ createCloudFrontTargetARecord(id: string, scope: CommonConstruct, distribution?: cloudfront.IDistribution, hostedZone?: route53.IHostedZone, recordName?: string, skipStageFromRecord?: boolean): route53.ARecord;
51
51
  /**
52
52
  * @summary Method to create a-record for cloudfront target
53
53
  * @param {string} id scoped id of the resource
54
- * @param {common.CommonConstruct} scope scope in which this resource is defined
54
+ * @param {CommonConstruct} scope scope in which this resource is defined
55
55
  * @param {cloudfront.IDistribution} distribution
56
56
  * @param {route53.IHostedZone} hostedZone
57
57
  * @param {string} recordName
58
58
  */
59
- createCloudFrontTargetARecordV2(id: string, scope: common.CommonConstruct, distribution?: cloudfront.IDistribution, hostedZone?: route53.IHostedZone, recordName?: string): route53.ARecord;
59
+ createCloudFrontTargetARecordV2(id: string, scope: CommonConstruct, distribution?: cloudfront.IDistribution, hostedZone?: route53.IHostedZone, recordName?: string): route53.ARecord;
60
60
  /**
61
61
  * @summary Method to create a-record for restApi gateway target
62
62
  * @param {string} id scoped id of the resource
63
- * @param {common.CommonConstruct} scope scope in which this resource is defined
63
+ * @param {CommonConstruct} scope scope in which this resource is defined
64
64
  * @param recordName
65
65
  * @param apiDomain
66
66
  * @param hostedZone
67
67
  * @param skipStageFromRecord
68
68
  */
69
- createApiGatewayARecord(id: string, scope: common.CommonConstruct, recordName: string, apiDomain: apig.DomainName, hostedZone: route53.IHostedZone, skipStageFromRecord?: boolean): route53.ARecord;
69
+ createApiGatewayARecord(id: string, scope: CommonConstruct, recordName: string, apiDomain: apig.DomainName, hostedZone: route53.IHostedZone, skipStageFromRecord?: boolean): route53.ARecord;
70
70
  }
@@ -26,18 +26,18 @@ Object.defineProperty(exports, "__esModule", { value: true });
26
26
  exports.Route53Manager = void 0;
27
27
  const route53 = __importStar(require("aws-cdk-lib/aws-route53"));
28
28
  const route53Targets = __importStar(require("aws-cdk-lib/aws-route53-targets"));
29
- const utils = __importStar(require("../../utils"));
29
+ const utils = __importStar(require("../../../utils"));
30
30
  /**
31
31
  * @stability stable
32
32
  * @category cdk-utils.route53-manager
33
33
  * @subcategory Construct
34
34
  * @classdesc Provides operations on AWS Route53.
35
- * - A new instance of this class is injected into {@link common.CommonConstruct} constructor.
36
- * - If a custom construct extends {@link common.CommonConstruct}, an instance is available within the context.
35
+ * - A new instance of this class is injected into {@link CommonConstruct} constructor.
36
+ * - If a custom construct extends {@link CommonConstruct}, an instance is available within the context.
37
37
  * @example
38
- * import * as common from '@gradientedge/cdk-utils'
38
+ * import { CommonConstruct } from '@gradientedge/cdk-utils'
39
39
  *
40
- * class CustomConstruct extends common.common.CommonConstruct {
40
+ * class CustomConstruct extends CommonConstruct {
41
41
  * constructor(parent: cdk.Construct, id: string, props: common.CommonStackProps) {
42
42
  * super(parent, id, props)
43
43
  * this.props = props
@@ -51,8 +51,8 @@ class Route53Manager {
51
51
  /**
52
52
  * @summary Method to create a hosted zone
53
53
  * @param {string} id scoped id of the resource
54
- * @param {common.CommonConstruct} scope scope in which this resource is defined
55
- * @param {types.Route53Props} props
54
+ * @param {CommonConstruct} scope scope in which this resource is defined
55
+ * @param {Route53Props} props
56
56
  */
57
57
  createHostedZone(id, scope, props) {
58
58
  let hostedZone;
@@ -76,7 +76,7 @@ class Route53Manager {
76
76
  /**
77
77
  * @summary Method to create/lookup a hosted zone
78
78
  * @param {string} id scoped id of the resource
79
- * @param {common.CommonConstruct} scope scope in which this resource is defined
79
+ * @param {CommonConstruct} scope scope in which this resource is defined
80
80
  * @param useExistingHostedZone Flag to indicate whether to lookup vs create new hosted zone
81
81
  */
82
82
  withHostedZoneFromFullyQualifiedDomainName(id, scope, useExistingHostedZone) {
@@ -99,7 +99,7 @@ class Route53Manager {
99
99
  /**
100
100
  * @summary Method to create a-record for cloudfront target
101
101
  * @param {string} id scoped id of the resource
102
- * @param {common.CommonConstruct} scope scope in which this resource is defined
102
+ * @param {CommonConstruct} scope scope in which this resource is defined
103
103
  * @param {cloudfront.IDistribution} distribution
104
104
  * @param {route53.IHostedZone} hostedZone
105
105
  * @param {string} recordName
@@ -123,7 +123,7 @@ class Route53Manager {
123
123
  /**
124
124
  * @summary Method to create a-record for cloudfront target
125
125
  * @param {string} id scoped id of the resource
126
- * @param {common.CommonConstruct} scope scope in which this resource is defined
126
+ * @param {CommonConstruct} scope scope in which this resource is defined
127
127
  * @param {cloudfront.IDistribution} distribution
128
128
  * @param {route53.IHostedZone} hostedZone
129
129
  * @param {string} recordName
@@ -144,7 +144,7 @@ class Route53Manager {
144
144
  /**
145
145
  * @summary Method to create a-record for restApi gateway target
146
146
  * @param {string} id scoped id of the resource
147
- * @param {common.CommonConstruct} scope scope in which this resource is defined
147
+ * @param {CommonConstruct} scope scope in which this resource is defined
148
148
  * @param recordName
149
149
  * @param apiDomain
150
150
  * @param hostedZone
@@ -0,0 +1,8 @@
1
+ import { HostedZoneProps } from 'aws-cdk-lib/aws-route53';
2
+ /**
3
+ * @category cdk-utils.route53-manager
4
+ * @subcategory Properties
5
+ */
6
+ export interface Route53Props extends HostedZoneProps {
7
+ useExistingHostedZone?: boolean;
8
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1 @@
1
+ export * from './main';
@@ -0,0 +1,17 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./main"), exports);
@@ -1,18 +1,18 @@
1
1
  import { SecretsManager as SM } from '@aws-sdk/client-secrets-manager';
2
2
  import * as cdk from 'aws-cdk-lib';
3
3
  import * as secretsManager from 'aws-cdk-lib/aws-secretsmanager';
4
- import * as common from '../../common';
4
+ import { CommonConstruct } from '../../../common';
5
5
  /**
6
6
  * @stability experimental
7
7
  * @category cdk-utils.secrets-manager
8
8
  * @subcategory Construct
9
9
  * @classdesc Provides operations on AWS Secrets Manager.
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.
10
+ * - A new instance of this class is injected into {@link CommonConstruct} constructor.
11
+ * - If a custom construct extends {@link CommonConstruct}, an instance is available within the context.
12
12
  * @example
13
- * import * as common from '@gradientedge/cdk-utils'
13
+ * import { CommonConstruct } from '@gradientedge/cdk-utils'
14
14
  *
15
- * class CustomConstruct extends common.common.CommonConstruct {
15
+ * class CustomConstruct extends CommonConstruct {
16
16
  * constructor(parent: cdk.Construct, id: string, props: common.CommonStackProps) {
17
17
  * super(parent, id, props)
18
18
  * this.props = props
@@ -50,12 +50,12 @@ export declare class SecretsManager {
50
50
  * @param stackName
51
51
  * @param exportName
52
52
  */
53
- retrieveSecretFromSecretsManager(id: string, scope: common.CommonConstruct, stackName: string, exportName: string): cdk.aws_secretsmanager.ISecret;
53
+ retrieveSecretFromSecretsManager(id: string, scope: CommonConstruct, stackName: string, exportName: string): cdk.aws_secretsmanager.ISecret;
54
54
  /**
55
55
  * @summary Method to create a secret
56
56
  * @param {string} id scoped id of the resource
57
- * @param {common.CommonConstruct} scope scope in which this resource is defined
57
+ * @param {CommonConstruct} scope scope in which this resource is defined
58
58
  * @param {secretsManager.SecretProps} props the secret properties
59
59
  */
60
- createSecret(id: string, scope: common.CommonConstruct, props: secretsManager.SecretProps): cdk.aws_secretsmanager.Secret;
60
+ createSecret(id: string, scope: CommonConstruct, props: secretsManager.SecretProps): cdk.aws_secretsmanager.Secret;
61
61
  }
@@ -27,18 +27,18 @@ exports.SecretsManager = void 0;
27
27
  const client_secrets_manager_1 = require("@aws-sdk/client-secrets-manager");
28
28
  const cdk = __importStar(require("aws-cdk-lib"));
29
29
  const secretsManager = __importStar(require("aws-cdk-lib/aws-secretsmanager"));
30
- const utils = __importStar(require("../../utils"));
30
+ const utils = __importStar(require("../../../utils"));
31
31
  /**
32
32
  * @stability experimental
33
33
  * @category cdk-utils.secrets-manager
34
34
  * @subcategory Construct
35
35
  * @classdesc Provides operations on AWS Secrets Manager.
36
- * - A new instance of this class is injected into {@link common.CommonConstruct} constructor.
37
- * - If a custom construct extends {@link common.CommonConstruct}, an instance is available within the context.
36
+ * - A new instance of this class is injected into {@link CommonConstruct} constructor.
37
+ * - If a custom construct extends {@link CommonConstruct}, an instance is available within the context.
38
38
  * @example
39
- * import * as common from '@gradientedge/cdk-utils'
39
+ * import { CommonConstruct } from '@gradientedge/cdk-utils'
40
40
  *
41
- * class CustomConstruct extends common.common.CommonConstruct {
41
+ * class CustomConstruct extends CommonConstruct {
42
42
  * constructor(parent: cdk.Construct, id: string, props: common.CommonStackProps) {
43
43
  * super(parent, id, props)
44
44
  * this.props = props
@@ -94,7 +94,7 @@ class SecretsManager {
94
94
  /**
95
95
  * @summary Method to create a secret
96
96
  * @param {string} id scoped id of the resource
97
- * @param {common.CommonConstruct} scope scope in which this resource is defined
97
+ * @param {CommonConstruct} scope scope in which this resource is defined
98
98
  * @param {secretsManager.SecretProps} props the secret properties
99
99
  */
100
100
  createSecret(id, scope, props) {
@@ -0,0 +1,2 @@
1
+ export * from './main';
2
+ export * from './types';
@@ -0,0 +1,18 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./main"), exports);
18
+ __exportStar(require("./types"), exports);
@@ -1,22 +1,22 @@
1
1
  import * as lambda from 'aws-cdk-lib/aws-lambda';
2
2
  import * as sns from 'aws-cdk-lib/aws-sns';
3
- import * as common from '../../common';
4
- import * as types from '../../types';
3
+ import { CommonConstruct } from '../../../common';
4
+ import { SubscriptionProps } from './types';
5
5
  /**
6
6
  * @stability stable
7
7
  * @category cdk-utils.sns-manager
8
8
  * @subcategory Construct
9
9
  * @classdesc Provides operations on AWS Simple Notification Service.
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.
10
+ * - A new instance of this class is injected into {@link CommonConstruct} constructor.
11
+ * - If a custom construct extends {@link CommonConstruct}, an instance is available within the context.
12
12
  * @example
13
- * import * as common from '@gradientedge/cdk-utils'
13
+ * import { CommonConstruct } from '@gradientedge/cdk-utils'
14
14
  *
15
- * class CustomConstruct extends common.common.CommonConstruct {
15
+ * class CustomConstruct extends CommonConstruct {
16
16
  * constructor(parent: cdk.Construct, id: string, props: common.CommonStackProps) {
17
17
  * super(parent, id, props)
18
18
  * this.props = props
19
- * this.snsManager.createEmailNotificationService('MySns', 'eu-west-1', ['test@example.com'])
19
+ * this.snsManager.createEmailNotificationService('MySns', 'eu-west-1', ["test@example.com"])
20
20
  * }
21
21
  * }
22
22
  *
@@ -26,17 +26,17 @@ export declare class SnsManager {
26
26
  /**
27
27
  * @summary Method to create an email notification service
28
28
  * @param {string} id scoped id of the resource
29
- * @param {common.CommonConstruct} scope scope in which this resource is defined
30
- * @param {types.SubscriptionProps} props
29
+ * @param {CommonConstruct} scope scope in which this resource is defined
30
+ * @param {SubscriptionProps} props
31
31
  * @param {string[]} emails
32
32
  */
33
- createEmailNotificationService(id: string, scope: common.CommonConstruct, props: types.SubscriptionProps, emails: string[]): sns.Topic;
33
+ createEmailNotificationService(id: string, scope: CommonConstruct, props: SubscriptionProps, emails: string[]): sns.Topic;
34
34
  /**
35
35
  * @summary Method to create a lambda notification service
36
36
  * @param {string} id scoped id of the resource
37
- * @param {common.CommonConstruct} scope scope in which this resource is defined
38
- * @param {types.SubscriptionProps} props
37
+ * @param {CommonConstruct} scope scope in which this resource is defined
38
+ * @param {SubscriptionProps} props
39
39
  * @param {lambda.IFunction} lambdaFunction
40
40
  */
41
- createLambdaNotificationService(id: string, scope: common.CommonConstruct, props: types.SubscriptionProps, lambdaFunction: lambda.IFunction): sns.Topic;
41
+ createLambdaNotificationService(id: string, scope: CommonConstruct, props: SubscriptionProps, lambdaFunction: lambda.IFunction): sns.Topic;
42
42
  }