@gradientedge/cdk-utils 8.88.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 (367) 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/services/aws/appconfig/main.d.ts +58 -0
  77. package/dist/src/lib/{manager/aws/app-config-manager.js → services/aws/appconfig/main.js} +25 -43
  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/constants.d.ts +4 -0
  111. package/dist/src/lib/services/aws/constants.js +8 -0
  112. package/dist/src/lib/services/aws/dynamodb/index.d.ts +2 -0
  113. package/dist/src/lib/services/aws/dynamodb/index.js +18 -0
  114. package/dist/src/lib/{manager/aws/dynamodb-manager.d.ts → services/aws/dynamodb/main.d.ts} +7 -7
  115. package/dist/src/lib/{manager/aws/dynamodb-manager.js → services/aws/dynamodb/main.js} +5 -5
  116. package/dist/src/lib/services/aws/dynamodb/types.d.ts +9 -0
  117. package/dist/src/lib/services/aws/dynamodb/types.js +2 -0
  118. package/dist/src/lib/services/aws/elastic-container-registry/index.d.ts +1 -0
  119. package/dist/src/lib/services/aws/elastic-container-registry/index.js +17 -0
  120. package/dist/src/lib/{manager/aws/ecr-manager.d.ts → services/aws/elastic-container-registry/main.d.ts} +7 -7
  121. package/dist/src/lib/{manager/aws/ecr-manager.js → services/aws/elastic-container-registry/main.js} +6 -6
  122. package/dist/src/lib/services/aws/elastic-container-service/index.d.ts +2 -0
  123. package/dist/src/lib/services/aws/elastic-container-service/index.js +18 -0
  124. package/dist/src/lib/{manager/aws/ecs-manager.d.ts → services/aws/elastic-container-service/main.d.ts} +15 -15
  125. package/dist/src/lib/{manager/aws/ecs-manager.js → services/aws/elastic-container-service/main.js} +11 -11
  126. package/dist/src/lib/services/aws/elastic-container-service/types.d.ts +46 -0
  127. package/dist/src/lib/services/aws/elastic-container-service/types.js +2 -0
  128. package/dist/src/lib/services/aws/elastic-file-system/index.d.ts +2 -0
  129. package/dist/src/lib/services/aws/elastic-file-system/index.js +18 -0
  130. package/dist/src/lib/{manager/aws/efs-manager.d.ts → services/aws/elastic-file-system/main.d.ts} +10 -10
  131. package/dist/src/lib/{manager/aws/efs-manager.js → services/aws/elastic-file-system/main.js} +8 -8
  132. package/dist/src/lib/services/aws/elastic-file-system/types.d.ts +19 -0
  133. package/dist/src/lib/services/aws/elastic-file-system/types.js +2 -0
  134. package/dist/src/lib/services/aws/elastic-kubernetes-service/index.d.ts +2 -0
  135. package/dist/src/lib/services/aws/elastic-kubernetes-service/index.js +18 -0
  136. package/dist/src/lib/{manager/aws/eks-manager.d.ts → services/aws/elastic-kubernetes-service/main.d.ts} +9 -9
  137. package/dist/src/lib/{manager/aws/eks-manager.js → services/aws/elastic-kubernetes-service/main.js} +7 -7
  138. package/dist/src/lib/services/aws/elastic-kubernetes-service/types.d.ts +9 -0
  139. package/dist/src/lib/services/aws/elastic-kubernetes-service/types.js +2 -0
  140. package/dist/src/lib/services/aws/elasticache/index.d.ts +2 -0
  141. package/dist/src/lib/services/aws/elasticache/index.js +18 -0
  142. package/dist/src/lib/services/aws/elasticache/main.d.ts +51 -0
  143. package/dist/src/lib/{manager/aws/elasticache-manager.js → services/aws/elasticache/main.js} +11 -12
  144. package/dist/src/lib/services/aws/elasticache/types.d.ts +13 -0
  145. package/dist/src/lib/services/aws/elasticache/types.js +2 -0
  146. package/dist/src/lib/services/aws/eventbridge/index.d.ts +3 -0
  147. package/dist/src/lib/services/aws/eventbridge/index.js +19 -0
  148. package/dist/src/lib/{manager/aws/event-manager.d.ts → services/aws/eventbridge/main.d.ts} +20 -20
  149. package/dist/src/lib/{manager/aws/event-manager.js → services/aws/eventbridge/main.js} +21 -15
  150. package/dist/src/lib/{manager/aws/event-target-manager.d.ts → services/aws/eventbridge/target.d.ts} +7 -7
  151. package/dist/src/lib/{manager/aws/event-target-manager.js → services/aws/eventbridge/target.js} +5 -5
  152. package/dist/src/lib/services/aws/eventbridge/types.d.ts +35 -0
  153. package/dist/src/lib/services/aws/eventbridge/types.js +2 -0
  154. package/dist/src/lib/services/aws/evidently/index.d.ts +2 -0
  155. package/dist/src/lib/services/aws/evidently/index.js +18 -0
  156. package/dist/src/lib/{manager/aws/evidently-manager.d.ts → services/aws/evidently/main.d.ts} +16 -16
  157. package/dist/src/lib/{manager/aws/evidently-manager.js → services/aws/evidently/main.js} +10 -10
  158. package/dist/src/lib/services/aws/evidently/types.d.ts +31 -0
  159. package/dist/src/lib/services/aws/evidently/types.js +2 -0
  160. package/dist/src/lib/services/aws/identity-access-management/index.d.ts +1 -0
  161. package/dist/src/lib/services/aws/identity-access-management/index.js +17 -0
  162. package/dist/src/lib/{manager/aws/iam-manager.d.ts → services/aws/identity-access-management/main.d.ts} +39 -40
  163. package/dist/src/lib/{manager/aws/iam-manager.js → services/aws/identity-access-management/main.js} +22 -23
  164. package/dist/src/lib/services/aws/index.d.ts +28 -0
  165. package/dist/src/lib/services/aws/index.js +44 -0
  166. package/dist/src/lib/services/aws/key-management-service/index.d.ts +2 -0
  167. package/dist/src/lib/services/aws/key-management-service/index.js +18 -0
  168. package/dist/src/lib/{manager/aws/kms-manager.d.ts → services/aws/key-management-service/main.d.ts} +7 -7
  169. package/dist/src/lib/{manager/aws/kms-manager.js → services/aws/key-management-service/main.js} +5 -5
  170. package/dist/src/lib/services/aws/key-management-service/types.d.ts +7 -0
  171. package/dist/src/lib/services/aws/key-management-service/types.js +2 -0
  172. package/dist/src/lib/services/aws/lambda/index.d.ts +2 -0
  173. package/dist/src/lib/services/aws/lambda/index.js +18 -0
  174. package/dist/src/lib/{manager/aws/lambda-manager.d.ts → services/aws/lambda/main.d.ts} +22 -21
  175. package/dist/src/lib/{manager/aws/lambda-manager.js → services/aws/lambda/main.js} +21 -21
  176. package/dist/src/lib/services/aws/lambda/types.d.ts +52 -0
  177. package/dist/src/lib/services/aws/lambda/types.js +2 -0
  178. package/dist/src/lib/services/aws/route53/index.d.ts +2 -0
  179. package/dist/src/lib/services/aws/route53/index.js +18 -0
  180. package/dist/src/lib/{manager/aws/route53-manager.d.ts → services/aws/route53/main.d.ts} +17 -17
  181. package/dist/src/lib/{manager/aws/route53-manager.js → services/aws/route53/main.js} +11 -11
  182. package/dist/src/lib/services/aws/route53/types.d.ts +8 -0
  183. package/dist/src/lib/services/aws/route53/types.js +2 -0
  184. package/dist/src/lib/services/aws/secrets-manager/index.d.ts +1 -0
  185. package/dist/src/lib/services/aws/secrets-manager/index.js +17 -0
  186. package/dist/src/lib/{manager/aws/secrets-manager.d.ts → services/aws/secrets-manager/main.d.ts} +8 -8
  187. package/dist/src/lib/{manager/aws/secrets-manager.js → services/aws/secrets-manager/main.js} +6 -6
  188. package/dist/src/lib/services/aws/simple-notification-service/index.d.ts +2 -0
  189. package/dist/src/lib/services/aws/simple-notification-service/index.js +18 -0
  190. package/dist/src/lib/{manager/aws/sns-manager.d.ts → services/aws/simple-notification-service/main.d.ts} +13 -13
  191. package/dist/src/lib/{manager/aws/sns-manager.js → services/aws/simple-notification-service/main.js} +10 -10
  192. package/dist/src/lib/services/aws/simple-notification-service/types.d.ts +7 -0
  193. package/dist/src/lib/services/aws/simple-notification-service/types.js +2 -0
  194. package/dist/src/lib/services/aws/simple-queue-service/index.d.ts +2 -0
  195. package/dist/src/lib/services/aws/simple-queue-service/index.js +18 -0
  196. package/dist/src/lib/services/aws/simple-queue-service/main.d.ts +50 -0
  197. package/dist/src/lib/{manager/aws/sqs-manager.js → services/aws/simple-queue-service/main.js} +11 -11
  198. package/dist/src/lib/services/aws/simple-queue-service/types.d.ts +17 -0
  199. package/dist/src/lib/services/aws/simple-queue-service/types.js +2 -0
  200. package/dist/src/lib/services/aws/simple-storage-service/index.d.ts +2 -0
  201. package/dist/src/lib/services/aws/simple-storage-service/index.js +18 -0
  202. package/dist/src/lib/{manager/aws/s3-manager.d.ts → services/aws/simple-storage-service/main.d.ts} +23 -23
  203. package/dist/src/lib/{manager/aws/s3-manager.js → services/aws/simple-storage-service/main.js} +15 -16
  204. package/dist/src/lib/services/aws/simple-storage-service/types.d.ts +31 -0
  205. package/dist/src/lib/services/aws/simple-storage-service/types.js +2 -0
  206. package/dist/src/lib/services/aws/step-function/index.d.ts +2 -0
  207. package/dist/src/lib/services/aws/step-function/index.js +18 -0
  208. package/dist/src/lib/services/aws/step-function/main.d.ts +157 -0
  209. package/dist/src/lib/{manager/aws/sfn-manager.js → services/aws/step-function/main.js} +35 -35
  210. package/dist/src/lib/services/aws/step-function/types.d.ts +120 -0
  211. package/dist/src/lib/services/aws/step-function/types.js +2 -0
  212. package/dist/src/lib/services/aws/systems-manager/index.d.ts +2 -0
  213. package/dist/src/lib/services/aws/systems-manager/index.js +18 -0
  214. package/dist/src/lib/{manager/aws/ssm-manager.d.ts → services/aws/systems-manager/main.d.ts} +13 -13
  215. package/dist/src/lib/{manager/aws/ssm-manager.js → services/aws/systems-manager/main.js} +8 -8
  216. package/dist/src/lib/services/aws/systems-manager/types.d.ts +8 -0
  217. package/dist/src/lib/services/aws/systems-manager/types.js +2 -0
  218. package/dist/src/lib/services/aws/virtual-private-cloud/index.d.ts +1 -0
  219. package/dist/src/lib/services/aws/virtual-private-cloud/index.js +17 -0
  220. package/dist/src/lib/{manager/aws/vpc-manager.d.ts → services/aws/virtual-private-cloud/main.d.ts} +11 -11
  221. package/dist/src/lib/{manager/aws/vpc-manager.js → services/aws/virtual-private-cloud/main.js} +8 -8
  222. package/dist/src/lib/services/aws/web-application-firewall/index.d.ts +1 -0
  223. package/dist/src/lib/services/aws/web-application-firewall/index.js +17 -0
  224. package/dist/src/lib/services/aws/web-application-firewall/main.d.ts +39 -0
  225. package/dist/src/lib/{manager/aws/waf-manager.js → services/aws/web-application-firewall/main.js} +9 -9
  226. package/dist/src/lib/services/aws/web-application-firewall/types.d.ts +13 -0
  227. package/dist/src/lib/services/aws/web-application-firewall/types.js +2 -0
  228. package/dist/src/lib/types/aws/index.d.ts +0 -921
  229. package/index.ts +1 -1
  230. package/package.json +1 -1
  231. package/src/lib/common/construct.ts +4 -4
  232. package/src/lib/common/index.ts +1 -0
  233. package/src/lib/common/stack.ts +1 -1
  234. package/src/lib/common/types.ts +23 -0
  235. package/src/lib/{helper/api-to-eventbridge-target-rest-api.ts → construct/api-to-eventbridge-target/api.ts} +2 -2
  236. package/src/lib/{helper/api-to-eventbridge-target-event.ts → construct/api-to-eventbridge-target/event.ts} +2 -2
  237. package/src/lib/construct/api-to-eventbridge-target/index.ts +3 -0
  238. package/src/lib/construct/api-to-eventbridge-target/main.ts +13 -8
  239. package/src/lib/construct/api-to-eventbridge-target/types.ts +126 -0
  240. package/src/lib/construct/api-to-eventbridge-target-with-sns/api-destined-lambda.ts +3 -3
  241. package/src/lib/construct/api-to-eventbridge-target-with-sns/index.ts +1 -0
  242. package/src/lib/construct/api-to-eventbridge-target-with-sns/main.ts +15 -9
  243. package/src/lib/construct/api-to-eventbridge-target-with-sns/types.ts +28 -0
  244. package/src/lib/{helper/api-to-lambda-target-rest-api.ts → construct/api-to-lambda-target/api.ts} +2 -2
  245. package/src/lib/construct/api-to-lambda-target/index.ts +2 -0
  246. package/src/lib/construct/api-to-lambda-target/main.ts +6 -6
  247. package/src/lib/construct/api-to-lambda-target/types.ts +78 -0
  248. package/src/lib/construct/graphql-api-lambda/index.ts +1 -0
  249. package/src/lib/construct/graphql-api-lambda/main.ts +1 -1
  250. package/src/lib/construct/graphql-api-lambda/types.ts +31 -0
  251. package/src/lib/construct/graphql-api-lambda-with-cache/index.ts +1 -0
  252. package/src/lib/construct/graphql-api-lambda-with-cache/main.ts +1 -1
  253. package/src/lib/construct/graphql-api-lambda-with-cache/types.ts +16 -0
  254. package/src/lib/construct/lambda-with-iam-access/types.ts +2 -1
  255. package/src/lib/construct/rest-api-lambda/index.ts +1 -0
  256. package/src/lib/construct/rest-api-lambda/main.ts +1 -1
  257. package/src/lib/construct/rest-api-lambda/types.ts +29 -0
  258. package/src/lib/construct/rest-api-lambda-with-cache/index.ts +1 -0
  259. package/src/lib/construct/rest-api-lambda-with-cache/main.ts +1 -1
  260. package/src/lib/construct/rest-api-lambda-with-cache/types.ts +15 -0
  261. package/src/lib/construct/site-with-ecs-backend/index.ts +1 -0
  262. package/src/lib/construct/site-with-ecs-backend/main.ts +1 -1
  263. package/src/lib/construct/site-with-ecs-backend/types.ts +42 -0
  264. package/src/lib/construct/static-asset-deployment/types.ts +2 -1
  265. package/src/lib/construct/static-site/index.ts +1 -0
  266. package/src/lib/construct/static-site/main.ts +1 -1
  267. package/src/lib/construct/static-site/types.ts +27 -0
  268. package/src/lib/index.ts +5 -0
  269. package/src/lib/services/aws/api-gateway/index.ts +2 -0
  270. package/src/lib/{manager/aws/api-manager.ts → services/aws/api-gateway/main.ts} +20 -17
  271. package/src/lib/services/aws/api-gateway/types.ts +10 -0
  272. package/src/lib/services/aws/appconfig/constants.ts +58 -0
  273. package/src/lib/services/aws/appconfig/index.ts +3 -0
  274. package/src/lib/{manager/aws/app-config-manager.ts → services/aws/appconfig/main.ts} +31 -54
  275. package/src/lib/services/aws/appconfig/types.ts +20 -0
  276. package/src/lib/services/aws/certificate-manager/index.ts +2 -0
  277. package/src/lib/{manager/aws/acm-manager.ts → services/aws/certificate-manager/main.ts} +9 -9
  278. package/src/lib/services/aws/certificate-manager/types.ts +14 -0
  279. package/src/lib/services/aws/cloudfront/index.ts +2 -0
  280. package/src/lib/{manager/aws/cloudfront-manager.ts → services/aws/cloudfront/main.ts} +29 -29
  281. package/src/lib/services/aws/cloudfront/types.ts +28 -0
  282. package/src/lib/services/aws/cloudtrail/index.ts +2 -0
  283. package/src/lib/{manager/aws/cloudtrail-manager.ts → services/aws/cloudtrail/main.ts} +11 -11
  284. package/src/lib/services/aws/cloudtrail/types.ts +7 -0
  285. package/src/lib/services/aws/cloudwatch/index.ts +3 -0
  286. package/src/lib/{manager/aws/log-manager.ts → services/aws/cloudwatch/logs.ts} +16 -21
  287. package/src/lib/{manager/aws/cloudwatch-manager.ts → services/aws/cloudwatch/main.ts} +86 -112
  288. package/src/lib/services/aws/cloudwatch/types.ts +121 -0
  289. package/src/lib/services/aws/codebuild/index.ts +1 -0
  290. package/src/lib/{manager/aws/codebuild-manager.ts → services/aws/codebuild/main.ts} +7 -7
  291. package/src/lib/services/aws/constants.ts +4 -0
  292. package/src/lib/services/aws/dynamodb/index.ts +2 -0
  293. package/src/lib/{manager/aws/dynamodb-manager.ts → services/aws/dynamodb/main.ts} +8 -8
  294. package/src/lib/services/aws/dynamodb/types.ts +10 -0
  295. package/src/lib/services/aws/elastic-container-registry/index.ts +1 -0
  296. package/src/lib/{manager/aws/ecr-manager.ts → services/aws/elastic-container-registry/main.ts} +8 -8
  297. package/src/lib/services/aws/elastic-container-service/index.ts +2 -0
  298. package/src/lib/{manager/aws/ecs-manager.ts → services/aws/elastic-container-service/main.ts} +18 -18
  299. package/src/lib/services/aws/elastic-container-service/types.ts +51 -0
  300. package/src/lib/services/aws/elastic-file-system/index.ts +2 -0
  301. package/src/lib/{manager/aws/efs-manager.ts → services/aws/elastic-file-system/main.ts} +13 -13
  302. package/src/lib/services/aws/elastic-file-system/types.ts +20 -0
  303. package/src/lib/services/aws/elastic-kubernetes-service/index.ts +2 -0
  304. package/src/lib/{manager/aws/eks-manager.ts → services/aws/elastic-kubernetes-service/main.ts} +11 -11
  305. package/src/lib/services/aws/elastic-kubernetes-service/types.ts +10 -0
  306. package/src/lib/services/aws/elasticache/index.ts +2 -0
  307. package/src/lib/{manager/aws/elasticache-manager.ts → services/aws/elasticache/main.ts} +18 -20
  308. package/src/lib/services/aws/elasticache/types.ts +13 -0
  309. package/src/lib/services/aws/eventbridge/index.ts +3 -0
  310. package/src/lib/{manager/aws/event-manager.ts → services/aws/eventbridge/main.ts} +32 -26
  311. package/src/lib/{manager/aws/event-target-manager.ts → services/aws/eventbridge/target.ts} +7 -7
  312. package/src/lib/services/aws/eventbridge/types.ts +38 -0
  313. package/src/lib/services/aws/evidently/index.ts +2 -0
  314. package/src/lib/{manager/aws/evidently-manager.ts → services/aws/evidently/main.ts} +23 -18
  315. package/src/lib/services/aws/evidently/types.ts +37 -0
  316. package/src/lib/services/aws/identity-access-management/index.ts +1 -0
  317. package/src/lib/{manager/aws/iam-manager.ts → services/aws/identity-access-management/main.ts} +40 -51
  318. package/src/lib/services/aws/index.ts +28 -0
  319. package/src/lib/services/aws/key-management-service/index.ts +2 -0
  320. package/src/lib/{manager/aws/kms-manager.ts → services/aws/key-management-service/main.ts} +8 -8
  321. package/src/lib/services/aws/key-management-service/types.ts +7 -0
  322. package/src/lib/services/aws/lambda/index.ts +2 -0
  323. package/src/lib/{manager/aws/lambda-manager.ts → services/aws/lambda/main.ts} +30 -30
  324. package/src/lib/services/aws/lambda/types.ts +57 -0
  325. package/src/lib/services/aws/route53/index.ts +2 -0
  326. package/src/lib/{manager/aws/route53-manager.ts → services/aws/route53/main.ts} +18 -18
  327. package/src/lib/services/aws/route53/types.ts +9 -0
  328. package/src/lib/services/aws/secrets-manager/index.ts +1 -0
  329. package/src/lib/{manager/aws/secrets-manager.ts → services/aws/secrets-manager/main.ts} +9 -14
  330. package/src/lib/services/aws/simple-notification-service/index.ts +2 -0
  331. package/src/lib/{manager/aws/sns-manager.ts → services/aws/simple-notification-service/main.ts} +16 -16
  332. package/src/lib/services/aws/simple-notification-service/types.ts +7 -0
  333. package/src/lib/services/aws/simple-queue-service/index.ts +2 -0
  334. package/src/lib/{manager/aws/sqs-manager.ts → services/aws/simple-queue-service/main.ts} +18 -17
  335. package/src/lib/services/aws/simple-queue-service/types.ts +18 -0
  336. package/src/lib/services/aws/simple-storage-service/index.ts +2 -0
  337. package/src/lib/{manager/aws/s3-manager.ts → services/aws/simple-storage-service/main.ts} +26 -27
  338. package/src/lib/services/aws/simple-storage-service/types.ts +34 -0
  339. package/src/lib/services/aws/step-function/index.ts +2 -0
  340. package/src/lib/{manager/aws/sfn-manager.ts → services/aws/step-function/main.ts} +76 -61
  341. package/src/lib/services/aws/step-function/types.ts +152 -0
  342. package/src/lib/services/aws/systems-manager/index.ts +2 -0
  343. package/src/lib/{manager/aws/ssm-manager.ts → services/aws/systems-manager/main.ts} +15 -19
  344. package/src/lib/services/aws/systems-manager/types.ts +8 -0
  345. package/src/lib/services/aws/virtual-private-cloud/index.ts +1 -0
  346. package/src/lib/{manager/aws/vpc-manager.ts → services/aws/virtual-private-cloud/main.ts} +12 -12
  347. package/src/lib/services/aws/web-application-firewall/index.ts +1 -0
  348. package/src/lib/{manager/aws/waf-manager.ts → services/aws/web-application-firewall/main.ts} +13 -13
  349. package/src/lib/services/aws/web-application-firewall/types.ts +13 -0
  350. package/src/lib/types/aws/index.ts +0 -984
  351. package/dist/src/lib/helper/index.d.ts +0 -3
  352. package/dist/src/lib/manager/aws/app-config-manager.d.ts +0 -65
  353. package/dist/src/lib/manager/aws/cloudwatch-manager.d.ts +0 -211
  354. package/dist/src/lib/manager/aws/elasticache-manager.d.ts +0 -52
  355. package/dist/src/lib/manager/aws/index.d.ts +0 -29
  356. package/dist/src/lib/manager/aws/index.js +0 -45
  357. package/dist/src/lib/manager/aws/sfn-manager.d.ts +0 -157
  358. package/dist/src/lib/manager/aws/sqs-manager.d.ts +0 -49
  359. package/dist/src/lib/manager/aws/waf-manager.d.ts +0 -39
  360. package/src/lib/helper/index.ts +0 -3
  361. package/src/lib/manager/aws/index.ts +0 -29
  362. /package/dist/src/lib/{helper/api-to-eventbridge-target-rest-api.js → construct/api-to-eventbridge-target/api.js} +0 -0
  363. /package/dist/src/lib/{helper/api-to-eventbridge-target-event.js → construct/api-to-eventbridge-target/event.js} +0 -0
  364. /package/dist/src/lib/{helper/api-to-lambda-target-rest-api.js → construct/api-to-lambda-target/api.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}/index.ts +0 -0
@@ -2,19 +2,19 @@ import * as cdk from 'aws-cdk-lib';
2
2
  import * as cloudfront from 'aws-cdk-lib/aws-cloudfront';
3
3
  import * as s3 from 'aws-cdk-lib/aws-s3';
4
4
  import * as s3deploy from 'aws-cdk-lib/aws-s3-deployment';
5
- import * as common from '../../common';
6
- import * as types from '../../types';
5
+ import { LifecycleRule, S3BucketProps } from './types';
6
+ import { CommonConstruct } from '../../../common';
7
7
  /**
8
8
  * @stability stable
9
9
  * @category cdk-utils.s3-manager
10
10
  * @subcategory Construct
11
11
  * @classdesc Provides operations on AWS S3.
12
- * - A new instance of this class is injected into {@link common.CommonConstruct} constructor.
13
- * - If a custom construct extends {@link common.CommonConstruct}, an instance is available within the context.
12
+ * - A new instance of this class is injected into {@link CommonConstruct} constructor.
13
+ * - If a custom construct extends {@link CommonConstruct}, an instance is available within the context.
14
14
  * @example
15
- * import * as common from '@gradientedge/cdk-utils'
15
+ * import { CommonConstruct } from '@gradientedge/cdk-utils'
16
16
  *
17
- * class CustomConstruct extends common.common.CommonConstruct {
17
+ * class CustomConstruct extends CommonConstruct {
18
18
  * constructor(parent: cdk.Construct, id: string, props: common.CommonStackProps) {
19
19
  * super(parent, id, props)
20
20
  * this.props = props
@@ -27,62 +27,62 @@ import * as types from '../../types';
27
27
  export declare class S3Manager {
28
28
  /**
29
29
  * @summary Method to determine S3 Bucket lifecycle properties
30
- * @param {types.S3BucketProps} props bucket properties
30
+ * @param {S3BucketProps} props bucket properties
31
31
  * @private
32
32
  */
33
- protected determineBucketLifecycleRules(props: types.S3BucketProps): types.LifecycleRule[] | undefined;
33
+ protected determineBucketLifecycleRules(props: S3BucketProps): LifecycleRule[] | undefined;
34
34
  /**
35
35
  * @summary Method to determine the bucket name using account and region
36
- * @param {common.CommonConstruct} scope scope in which this resource is defined
36
+ * @param {CommonConstruct} scope scope in which this resource is defined
37
37
  * @param {string} bucketName the bucket name
38
38
  * @protected
39
39
  */
40
- protected static determineBucketNameByAccountAndRegion(scope: common.CommonConstruct, bucketName: string): string;
40
+ protected static determineBucketNameByAccountAndRegion(scope: CommonConstruct, bucketName: string): string;
41
41
  /**
42
42
  * @summary Method to determine the bucket name using domain name
43
- * @param {common.CommonConstruct} scope scope in which this resource is defined
43
+ * @param {CommonConstruct} scope scope in which this resource is defined
44
44
  * @param {string} bucketName the bucket name
45
45
  * @protected
46
46
  */
47
- protected static determineBucketNameByDomainName(scope: common.CommonConstruct, bucketName: string): string;
47
+ protected static determineBucketNameByDomainName(scope: CommonConstruct, bucketName: string): string;
48
48
  /**
49
49
  * @summary Method to determine the bucket name
50
- * @param {common.CommonConstruct} scope scope in which this resource is defined
50
+ * @param {CommonConstruct} scope scope in which this resource is defined
51
51
  * @param {string} bucketName the bucket name
52
52
  * @private
53
53
  */
54
- static determineBucketName(scope: common.CommonConstruct, bucketName: string): string;
54
+ static determineBucketName(scope: CommonConstruct, bucketName: string): string;
55
55
  /**
56
56
  * @summary Method to create a s3 bucket
57
57
  * @param {string} id scoped id of the resource
58
- * @param {common.CommonConstruct} scope scope in which this resource is defined
59
- * @param {types.S3BucketProps} props bucket properties
58
+ * @param {CommonConstruct} scope scope in which this resource is defined
59
+ * @param {S3BucketProps} props bucket properties
60
60
  */
61
- createS3Bucket(id: string, scope: common.CommonConstruct, props: types.S3BucketProps): cdk.aws_s3.IBucket;
61
+ createS3Bucket(id: string, scope: CommonConstruct, props: S3BucketProps): cdk.aws_s3.IBucket;
62
62
  /**
63
63
  * @summary Method to create an iam bucket policy for cloudtrail
64
64
  * @param {string} id scoped id of the resource
65
- * @param {common.CommonConstruct} scope scope in which this resource is defined
65
+ * @param {CommonConstruct} scope scope in which this resource is defined
66
66
  * @param {s3.IBucket} bucket
67
67
  */
68
- createBucketPolicyForCloudTrail(id: string, scope: common.CommonConstruct, bucket: s3.IBucket): cdk.aws_s3.CfnBucketPolicy;
68
+ createBucketPolicyForCloudTrail(id: string, scope: CommonConstruct, bucket: s3.IBucket): cdk.aws_s3.CfnBucketPolicy;
69
69
  /**
70
70
  * @summary Method to create a s3 bucket deployment
71
71
  * @param {string} id scoped id of the resource
72
- * @param {common.CommonConstruct} scope scope in which this resource is defined
72
+ * @param {CommonConstruct} scope scope in which this resource is defined
73
73
  * @param {s3.IBucket} siteBucket
74
74
  * @param {cloudfront.IDistribution} distribution
75
75
  * @param {s3deploy.ISource[]} sources
76
76
  * @param {string} prefix
77
77
  * @param {boolean} prune
78
78
  */
79
- doBucketDeployment(id: string, scope: common.CommonConstruct, siteBucket: s3.IBucket, distribution: cloudfront.IDistribution, sources: s3deploy.ISource[], prefix: string, prune?: boolean): void;
79
+ doBucketDeployment(id: string, scope: CommonConstruct, siteBucket: s3.IBucket, distribution: cloudfront.IDistribution, sources: s3deploy.ISource[], prefix: string, prune?: boolean): void;
80
80
  /**
81
81
  *
82
82
  * @param {string} id scoped id of the resource
83
- * @param {common.CommonConstruct} scope scope in which this resource is defined
83
+ * @param {CommonConstruct} scope scope in which this resource is defined
84
84
  * @param {s3.IBucket} bucket bucket to create the folders in
85
85
  * @param {string[]} folders list of folder names to be created in the bucket
86
86
  */
87
- createBucketFolders(id: string, scope: common.CommonConstruct, bucket: s3.IBucket, folders: string[]): void;
87
+ createBucketFolders(id: string, scope: CommonConstruct, bucket: s3.IBucket, folders: string[]): void;
88
88
  }
@@ -28,18 +28,18 @@ const cdk = __importStar(require("aws-cdk-lib"));
28
28
  const iam = __importStar(require("aws-cdk-lib/aws-iam"));
29
29
  const s3 = __importStar(require("aws-cdk-lib/aws-s3"));
30
30
  const s3deploy = __importStar(require("aws-cdk-lib/aws-s3-deployment"));
31
- const utils = __importStar(require("../../utils"));
31
+ const utils = __importStar(require("../../../utils"));
32
32
  /**
33
33
  * @stability stable
34
34
  * @category cdk-utils.s3-manager
35
35
  * @subcategory Construct
36
36
  * @classdesc Provides operations on AWS S3.
37
- * - A new instance of this class is injected into {@link common.CommonConstruct} constructor.
38
- * - If a custom construct extends {@link common.CommonConstruct}, an instance is available within the context.
37
+ * - A new instance of this class is injected into {@link CommonConstruct} constructor.
38
+ * - If a custom construct extends {@link CommonConstruct}, an instance is available within the context.
39
39
  * @example
40
- * import * as common from '@gradientedge/cdk-utils'
40
+ * import { CommonConstruct } from '@gradientedge/cdk-utils'
41
41
  *
42
- * class CustomConstruct extends common.common.CommonConstruct {
42
+ * class CustomConstruct extends CommonConstruct {
43
43
  * constructor(parent: cdk.Construct, id: string, props: common.CommonStackProps) {
44
44
  * super(parent, id, props)
45
45
  * this.props = props
@@ -52,7 +52,7 @@ const utils = __importStar(require("../../utils"));
52
52
  class S3Manager {
53
53
  /**
54
54
  * @summary Method to determine S3 Bucket lifecycle properties
55
- * @param {types.S3BucketProps} props bucket properties
55
+ * @param {S3BucketProps} props bucket properties
56
56
  * @private
57
57
  */
58
58
  determineBucketLifecycleRules(props) {
@@ -80,7 +80,7 @@ class S3Manager {
80
80
  }
81
81
  /**
82
82
  * @summary Method to determine the bucket name using account and region
83
- * @param {common.CommonConstruct} scope scope in which this resource is defined
83
+ * @param {CommonConstruct} scope scope in which this resource is defined
84
84
  * @param {string} bucketName the bucket name
85
85
  * @protected
86
86
  */
@@ -89,7 +89,7 @@ class S3Manager {
89
89
  }
90
90
  /**
91
91
  * @summary Method to determine the bucket name using domain name
92
- * @param {common.CommonConstruct} scope scope in which this resource is defined
92
+ * @param {CommonConstruct} scope scope in which this resource is defined
93
93
  * @param {string} bucketName the bucket name
94
94
  * @protected
95
95
  */
@@ -100,21 +100,20 @@ class S3Manager {
100
100
  }
101
101
  /**
102
102
  * @summary Method to determine the bucket name
103
- * @param {common.CommonConstruct} scope scope in which this resource is defined
103
+ * @param {CommonConstruct} scope scope in which this resource is defined
104
104
  * @param {string} bucketName the bucket name
105
105
  * @private
106
106
  */
107
107
  static determineBucketName(scope, bucketName) {
108
- const sanitisedBucketName = scope.props.excludeDomainNameForBuckets
108
+ return scope.props.excludeDomainNameForBuckets
109
109
  ? S3Manager.determineBucketNameByAccountAndRegion(scope, bucketName)
110
110
  : S3Manager.determineBucketNameByDomainName(scope, bucketName);
111
- return sanitisedBucketName;
112
111
  }
113
112
  /**
114
113
  * @summary Method to create a s3 bucket
115
114
  * @param {string} id scoped id of the resource
116
- * @param {common.CommonConstruct} scope scope in which this resource is defined
117
- * @param {types.S3BucketProps} props bucket properties
115
+ * @param {CommonConstruct} scope scope in which this resource is defined
116
+ * @param {S3BucketProps} props bucket properties
118
117
  */
119
118
  createS3Bucket(id, scope, props) {
120
119
  if (!props)
@@ -169,7 +168,7 @@ class S3Manager {
169
168
  /**
170
169
  * @summary Method to create an iam bucket policy for cloudtrail
171
170
  * @param {string} id scoped id of the resource
172
- * @param {common.CommonConstruct} scope scope in which this resource is defined
171
+ * @param {CommonConstruct} scope scope in which this resource is defined
173
172
  * @param {s3.IBucket} bucket
174
173
  */
175
174
  createBucketPolicyForCloudTrail(id, scope, bucket) {
@@ -199,7 +198,7 @@ class S3Manager {
199
198
  /**
200
199
  * @summary Method to create a s3 bucket deployment
201
200
  * @param {string} id scoped id of the resource
202
- * @param {common.CommonConstruct} scope scope in which this resource is defined
201
+ * @param {CommonConstruct} scope scope in which this resource is defined
203
202
  * @param {s3.IBucket} siteBucket
204
203
  * @param {cloudfront.IDistribution} distribution
205
204
  * @param {s3deploy.ISource[]} sources
@@ -221,7 +220,7 @@ class S3Manager {
221
220
  /**
222
221
  *
223
222
  * @param {string} id scoped id of the resource
224
- * @param {common.CommonConstruct} scope scope in which this resource is defined
223
+ * @param {CommonConstruct} scope scope in which this resource is defined
225
224
  * @param {s3.IBucket} bucket bucket to create the folders in
226
225
  * @param {string[]} folders list of folder names to be created in the bucket
227
226
  */
@@ -0,0 +1,31 @@
1
+ import { TagProps } from '../../../types';
2
+ import * as s3 from 'aws-cdk-lib/aws-s3';
3
+ import * as s3deploy from 'aws-cdk-lib/aws-s3-deployment';
4
+ /**
5
+ * @category cdk-utils.s3-manager
6
+ * @subcategory Properties
7
+ */
8
+ export interface LifecycleRule extends s3.LifecycleRule {
9
+ expirationInDays?: number;
10
+ noncurrentVersionExpirationInDays?: number;
11
+ }
12
+ /**
13
+ * @category cdk-utils.s3-manager
14
+ * @subcategory Properties
15
+ */
16
+ export interface BucketDeploymentProps extends s3deploy.BucketDeploymentProps {
17
+ expirationInDays?: number;
18
+ noncurrentVersionExpirationInDays?: number;
19
+ }
20
+ /**
21
+ * @category cdk-utils.s3-manager
22
+ * @subcategory Properties
23
+ */
24
+ export interface S3BucketProps extends s3.BucketProps {
25
+ enableEventBridge?: boolean;
26
+ lifecycleRules?: LifecycleRule[];
27
+ bucketName: string;
28
+ logBucketName?: string;
29
+ existingBucket?: boolean;
30
+ tags?: TagProps[];
31
+ }
@@ -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);
@@ -0,0 +1,157 @@
1
+ import * as cdk from 'aws-cdk-lib';
2
+ import * as apig from 'aws-cdk-lib/aws-apigateway';
3
+ import * as dynamodb from 'aws-cdk-lib/aws-dynamodb';
4
+ import * as iam from 'aws-cdk-lib/aws-iam';
5
+ import * as lambda from 'aws-cdk-lib/aws-lambda';
6
+ import * as logs from 'aws-cdk-lib/aws-logs';
7
+ import * as sqs from 'aws-cdk-lib/aws-sqs';
8
+ import * as sfn from 'aws-cdk-lib/aws-stepfunctions';
9
+ import * as tasks from 'aws-cdk-lib/aws-stepfunctions-tasks';
10
+ import { CommonConstruct } from '../../../common';
11
+ import { SfnCallApiGatewayRestApiEndpointProps, SfnChoiceProps, SfnDynamoDeleteItemProps, SfnDynamoGetItemProps, SfnDynamoPutItemProps, SfnFailProps, SfnLambdaInvokeProps, SfnMapProps, SfnParallelProps, SfnPassProps, SfnSqsSendMessageProps, SfnStartExecutionProps, SfnStateMachineProps, SfnSucceedProps, SfnWaitProps } from './types';
12
+ /**
13
+ * @stability stable
14
+ * @category cdk-utils.step-functions-manager
15
+ * @subcategory Construct
16
+ * @classdesc Provides operations on AWS Step Functions Service.
17
+ * - A new instance of this class is injected into {@link CommonConstruct} constructor.
18
+ * - If a custom construct extends {@link CommonConstruct}, an instance is available within the context.
19
+ * @example
20
+ * import { CommonConstruct } from '@gradientedge/cdk-utils'
21
+ *
22
+ * class CustomConstruct extends CommonConstruct {
23
+ * constructor(parent: cdk.Construct, id: string, props: common.CommonStackProps) {
24
+ * super(parent, id, props)
25
+ * this.props = props
26
+ * this.sfnManager.createSuccessStep('MyStep', this, myStepProps)
27
+ * }
28
+ * }
29
+ *
30
+ * @see [CDK Step Functions Module]{@link https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_stepfunctions-readme.html}
31
+ */
32
+ export declare class SfnManager {
33
+ /**
34
+ * @summary Method to create a success step
35
+ * @param {string} id scoped id of the resource
36
+ * @param {CommonConstruct} scope scope in which this resource is defined
37
+ * @param {SfnSucceedProps} props
38
+ */
39
+ createSuccessStep(id: string, scope: CommonConstruct, props: SfnSucceedProps): cdk.aws_stepfunctions.Succeed;
40
+ /**
41
+ * @summary Method to create a failure step
42
+ * @param {string} id scoped id of the resource
43
+ * @param {CommonConstruct} scope scope in which this resource is defined
44
+ * @param {SfnFailProps} props
45
+ */
46
+ createFailStep(id: string, scope: CommonConstruct, props: SfnFailProps): cdk.aws_stepfunctions.Fail;
47
+ /**
48
+ * @summary Method to create a pass step
49
+ * @param {string} id scoped id of the resource
50
+ * @param {CommonConstruct} scope scope in which this resource is defined
51
+ * @param {SfnPassProps} props
52
+ */
53
+ createPassStep(id: string, scope: CommonConstruct, props: SfnPassProps): cdk.aws_stepfunctions.Pass;
54
+ /**
55
+ * @summary Method to create a parallel step
56
+ * @param {string} id scoped id of the resource
57
+ * @param {CommonConstruct} scope scope in which this resource is defined
58
+ * @param {SfnParallelProps} props
59
+ */
60
+ createParallelStep(id: string, scope: CommonConstruct, props: SfnParallelProps): cdk.aws_stepfunctions.Parallel;
61
+ /**
62
+ * @summary Method to create a choice step
63
+ * @param {string} id scoped id of the resource
64
+ * @param {CommonConstruct} scope scope in which this resource is defined
65
+ * @param {SfnChoiceProps} props
66
+ */
67
+ createChoiceStep(id: string, scope: CommonConstruct, props: SfnChoiceProps): cdk.aws_stepfunctions.Choice;
68
+ /**
69
+ * @summary Method to create a wait step
70
+ * @param {string} id scoped id of the resource
71
+ * @param {CommonConstruct} scope scope in which this resource is defined
72
+ * @param {SfnWaitProps} props
73
+ */
74
+ createWaitStep(id: string, scope: CommonConstruct, props: SfnWaitProps): cdk.aws_stepfunctions.Wait;
75
+ /**
76
+ * @summary Method to create a DynamoDB get item step
77
+ * @param {string} id scoped id of the resource
78
+ * @param {CommonConstruct} scope scope in which this resource is defined
79
+ * @param {SfnDynamoGetItemProps} props
80
+ * @param {dynamodb.ITable} table The table to get the item from
81
+ * @param tableKey The table key for query/scan
82
+ */
83
+ createDynamoDbGetItemStep(id: string, scope: CommonConstruct, props: SfnDynamoGetItemProps, table: dynamodb.ITable, tableKey: {
84
+ [key: string]: tasks.DynamoAttributeValue;
85
+ }): cdk.aws_stepfunctions_tasks.DynamoGetItem;
86
+ /**
87
+ * @summary Method to create a DynamoDB put item step
88
+ * @param {string} id scoped id of the resource
89
+ * @param {CommonConstruct} scope scope in which this resource is defined
90
+ * @param {SfnDynamoPutItemProps} props
91
+ * @param {dynamodb.ITable} table The table to put the item in
92
+ * @param tableItem The item to add to the table
93
+ */
94
+ createDynamoDbPutItemStep(id: string, scope: CommonConstruct, props: SfnDynamoPutItemProps, table: dynamodb.ITable, tableItem: {
95
+ [key: string]: tasks.DynamoAttributeValue;
96
+ }): cdk.aws_stepfunctions_tasks.DynamoPutItem;
97
+ /**
98
+ * @summary Method to create a DynamoDB delete item step
99
+ * @param {string} id scoped id of the resource
100
+ * @param {CommonConstruct} scope scope in which this resource is defined
101
+ * @param {SfnDynamoDeleteItemProps} props
102
+ * @param {dynamodb.ITable} table The table to put the item in
103
+ * @param tableKey The table key for query/scan
104
+ */
105
+ createDynamoDbDeleteItemStep(id: string, scope: CommonConstruct, props: SfnDynamoDeleteItemProps, table: dynamodb.ITable, tableKey: {
106
+ [key: string]: tasks.DynamoAttributeValue;
107
+ }): cdk.aws_stepfunctions_tasks.DynamoDeleteItem;
108
+ /**
109
+ * @summary Method to send a message to SQS step
110
+ * @param {string} id scoped id of the resource
111
+ * @param {CommonConstruct} scope scope in which this resource is defined
112
+ * @param {SfnSqsSendMessageProps} props
113
+ * @param {sqs.IQueue} queue The queue to send the message to
114
+ */
115
+ createSendSqsMessageStep(id: string, scope: CommonConstruct, props: SfnSqsSendMessageProps, queue: sqs.IQueue): cdk.aws_stepfunctions_tasks.SqsSendMessage;
116
+ /**
117
+ * @summary Method to create a lambda invoke step
118
+ * @param {string} id scoped id of the resource
119
+ * @param {CommonConstruct} scope scope in which this resource is defined
120
+ * @param {SfnLambdaInvokeProps} props
121
+ * @param {lambda.IFunction} lambdaFunction
122
+ */
123
+ createLambdaStep(id: string, scope: CommonConstruct, props: SfnLambdaInvokeProps, lambdaFunction: lambda.IFunction): cdk.aws_stepfunctions_tasks.LambdaInvoke;
124
+ /**
125
+ * @summary Method to create a API Gateway invoke step
126
+ * @param {string} id scoped id of the resource
127
+ * @param {CommonConstruct} scope scope in which this resource is defined
128
+ * @param {SfnLambdaInvokeProps} props
129
+ * @param {apig.IRestApi} api
130
+ */
131
+ createApiStep(id: string, scope: CommonConstruct, props: SfnCallApiGatewayRestApiEndpointProps, api: apig.IRestApi): cdk.aws_stepfunctions_tasks.CallApiGatewayRestApiEndpoint;
132
+ /**
133
+ * @summary Method to create a step function execution step
134
+ * @param {string} id scoped id of the resource
135
+ * @param {CommonConstruct} scope scope in which this resource is defined
136
+ * @param {SfnStartExecutionProps} props props for the step
137
+ * @param {sfn.IStateMachine} stateMachine the state machine to execute
138
+ */
139
+ createSfnExecutionStep(id: string, scope: CommonConstruct, props: SfnStartExecutionProps, stateMachine: sfn.IStateMachine): cdk.aws_stepfunctions_tasks.StepFunctionsStartExecution;
140
+ /**
141
+ * @summary Method to create a step function map state
142
+ * @param {string} id scoped id of the resource
143
+ * @param {CommonConstruct} scope scope in which this resource is defined
144
+ * @param {SfnMapProps} props props for the map state
145
+ */
146
+ createMapState(id: string, scope: CommonConstruct, props: SfnMapProps): cdk.aws_stepfunctions.Map;
147
+ /**
148
+ * @summary Method to create a state machine
149
+ * @param {string} id scoped id of the resource
150
+ * @param {CommonConstruct} scope scope in which this resource is defined
151
+ * @param {SfnStateMachineProps} props
152
+ * @param {sfn.IChainable} definition
153
+ * @param {logs.ILogGroup} logGroup
154
+ * @param {iam.IRole} role
155
+ */
156
+ createStateMachine(id: string, scope: CommonConstruct, props: SfnStateMachineProps, definition: sfn.IChainable, logGroup: logs.ILogGroup, role?: iam.IRole): cdk.aws_stepfunctions.StateMachine;
157
+ }
@@ -27,7 +27,7 @@ exports.SfnManager = void 0;
27
27
  const cdk = __importStar(require("aws-cdk-lib"));
28
28
  const sfn = __importStar(require("aws-cdk-lib/aws-stepfunctions"));
29
29
  const tasks = __importStar(require("aws-cdk-lib/aws-stepfunctions-tasks"));
30
- const utils = __importStar(require("../../utils"));
30
+ const utils = __importStar(require("../../../utils"));
31
31
  const uuid_1 = require("uuid");
32
32
  const DEFAULT_RETRY_CONFIG = [
33
33
  {
@@ -42,12 +42,12 @@ const DEFAULT_RETRY_CONFIG = [
42
42
  * @category cdk-utils.step-functions-manager
43
43
  * @subcategory Construct
44
44
  * @classdesc Provides operations on AWS Step Functions Service.
45
- * - A new instance of this class is injected into {@link common.CommonConstruct} constructor.
46
- * - If a custom construct extends {@link common.CommonConstruct}, an instance is available within the context.
45
+ * - A new instance of this class is injected into {@link CommonConstruct} constructor.
46
+ * - If a custom construct extends {@link CommonConstruct}, an instance is available within the context.
47
47
  * @example
48
- * import * as common from '@gradientedge/cdk-utils'
48
+ * import { CommonConstruct } from '@gradientedge/cdk-utils'
49
49
  *
50
- * class CustomConstruct extends common.common.CommonConstruct {
50
+ * class CustomConstruct extends CommonConstruct {
51
51
  * constructor(parent: cdk.Construct, id: string, props: common.CommonStackProps) {
52
52
  * super(parent, id, props)
53
53
  * this.props = props
@@ -61,8 +61,8 @@ class SfnManager {
61
61
  /**
62
62
  * @summary Method to create a success step
63
63
  * @param {string} id scoped id of the resource
64
- * @param {common.CommonConstruct} scope scope in which this resource is defined
65
- * @param {types.SfnSucceedProps} props
64
+ * @param {CommonConstruct} scope scope in which this resource is defined
65
+ * @param {SfnSucceedProps} props
66
66
  */
67
67
  createSuccessStep(id, scope, props) {
68
68
  if (!props)
@@ -77,8 +77,8 @@ class SfnManager {
77
77
  /**
78
78
  * @summary Method to create a failure step
79
79
  * @param {string} id scoped id of the resource
80
- * @param {common.CommonConstruct} scope scope in which this resource is defined
81
- * @param {types.SfnFailProps} props
80
+ * @param {CommonConstruct} scope scope in which this resource is defined
81
+ * @param {SfnFailProps} props
82
82
  */
83
83
  createFailStep(id, scope, props) {
84
84
  if (!props)
@@ -93,8 +93,8 @@ class SfnManager {
93
93
  /**
94
94
  * @summary Method to create a pass step
95
95
  * @param {string} id scoped id of the resource
96
- * @param {common.CommonConstruct} scope scope in which this resource is defined
97
- * @param {types.SfnPassProps} props
96
+ * @param {CommonConstruct} scope scope in which this resource is defined
97
+ * @param {SfnPassProps} props
98
98
  */
99
99
  createPassStep(id, scope, props) {
100
100
  if (!props)
@@ -109,8 +109,8 @@ class SfnManager {
109
109
  /**
110
110
  * @summary Method to create a parallel step
111
111
  * @param {string} id scoped id of the resource
112
- * @param {common.CommonConstruct} scope scope in which this resource is defined
113
- * @param {types.SfnParallelProps} props
112
+ * @param {CommonConstruct} scope scope in which this resource is defined
113
+ * @param {SfnParallelProps} props
114
114
  */
115
115
  createParallelStep(id, scope, props) {
116
116
  if (!props)
@@ -134,8 +134,8 @@ class SfnManager {
134
134
  /**
135
135
  * @summary Method to create a choice step
136
136
  * @param {string} id scoped id of the resource
137
- * @param {common.CommonConstruct} scope scope in which this resource is defined
138
- * @param {types.SfnChoiceProps} props
137
+ * @param {CommonConstruct} scope scope in which this resource is defined
138
+ * @param {SfnChoiceProps} props
139
139
  */
140
140
  createChoiceStep(id, scope, props) {
141
141
  if (!props)
@@ -150,8 +150,8 @@ class SfnManager {
150
150
  /**
151
151
  * @summary Method to create a wait step
152
152
  * @param {string} id scoped id of the resource
153
- * @param {common.CommonConstruct} scope scope in which this resource is defined
154
- * @param {types.SfnWaitProps} props
153
+ * @param {CommonConstruct} scope scope in which this resource is defined
154
+ * @param {SfnWaitProps} props
155
155
  */
156
156
  createWaitStep(id, scope, props) {
157
157
  return new sfn.Wait(scope, `${props.name}`, {
@@ -165,8 +165,8 @@ class SfnManager {
165
165
  /**
166
166
  * @summary Method to create a DynamoDB get item step
167
167
  * @param {string} id scoped id of the resource
168
- * @param {common.CommonConstruct} scope scope in which this resource is defined
169
- * @param {types.SfnDynamoGetItemProps} props
168
+ * @param {CommonConstruct} scope scope in which this resource is defined
169
+ * @param {SfnDynamoGetItemProps} props
170
170
  * @param {dynamodb.ITable} table The table to get the item from
171
171
  * @param tableKey The table key for query/scan
172
172
  */
@@ -205,8 +205,8 @@ class SfnManager {
205
205
  /**
206
206
  * @summary Method to create a DynamoDB put item step
207
207
  * @param {string} id scoped id of the resource
208
- * @param {common.CommonConstruct} scope scope in which this resource is defined
209
- * @param {types.SfnDynamoPutItemProps} props
208
+ * @param {CommonConstruct} scope scope in which this resource is defined
209
+ * @param {SfnDynamoPutItemProps} props
210
210
  * @param {dynamodb.ITable} table The table to put the item in
211
211
  * @param tableItem The item to add to the table
212
212
  */
@@ -247,8 +247,8 @@ class SfnManager {
247
247
  /**
248
248
  * @summary Method to create a DynamoDB delete item step
249
249
  * @param {string} id scoped id of the resource
250
- * @param {common.CommonConstruct} scope scope in which this resource is defined
251
- * @param {types.SfnDynamoDeleteItemProps} props
250
+ * @param {CommonConstruct} scope scope in which this resource is defined
251
+ * @param {SfnDynamoDeleteItemProps} props
252
252
  * @param {dynamodb.ITable} table The table to put the item in
253
253
  * @param tableKey The table key for query/scan
254
254
  */
@@ -289,8 +289,8 @@ class SfnManager {
289
289
  /**
290
290
  * @summary Method to send a message to SQS step
291
291
  * @param {string} id scoped id of the resource
292
- * @param {common.CommonConstruct} scope scope in which this resource is defined
293
- * @param {types.SfnSqsSendMessageProps} props
292
+ * @param {CommonConstruct} scope scope in which this resource is defined
293
+ * @param {SfnSqsSendMessageProps} props
294
294
  * @param {sqs.IQueue} queue The queue to send the message to
295
295
  */
296
296
  createSendSqsMessageStep(id, scope, props, queue) {
@@ -329,8 +329,8 @@ class SfnManager {
329
329
  /**
330
330
  * @summary Method to create a lambda invoke step
331
331
  * @param {string} id scoped id of the resource
332
- * @param {common.CommonConstruct} scope scope in which this resource is defined
333
- * @param {types.SfnLambdaInvokeProps} props
332
+ * @param {CommonConstruct} scope scope in which this resource is defined
333
+ * @param {SfnLambdaInvokeProps} props
334
334
  * @param {lambda.IFunction} lambdaFunction
335
335
  */
336
336
  createLambdaStep(id, scope, props, lambdaFunction) {
@@ -356,8 +356,8 @@ class SfnManager {
356
356
  /**
357
357
  * @summary Method to create a API Gateway invoke step
358
358
  * @param {string} id scoped id of the resource
359
- * @param {common.CommonConstruct} scope scope in which this resource is defined
360
- * @param {types.SfnLambdaInvokeProps} props
359
+ * @param {CommonConstruct} scope scope in which this resource is defined
360
+ * @param {SfnLambdaInvokeProps} props
361
361
  * @param {apig.IRestApi} api
362
362
  */
363
363
  createApiStep(id, scope, props, api) {
@@ -384,8 +384,8 @@ class SfnManager {
384
384
  /**
385
385
  * @summary Method to create a step function execution step
386
386
  * @param {string} id scoped id of the resource
387
- * @param {common.CommonConstruct} scope scope in which this resource is defined
388
- * @param {types.SfnStartExecutionProps} props props for the step
387
+ * @param {CommonConstruct} scope scope in which this resource is defined
388
+ * @param {SfnStartExecutionProps} props props for the step
389
389
  * @param {sfn.IStateMachine} stateMachine the state machine to execute
390
390
  */
391
391
  createSfnExecutionStep(id, scope, props, stateMachine) {
@@ -409,8 +409,8 @@ class SfnManager {
409
409
  /**
410
410
  * @summary Method to create a step function map state
411
411
  * @param {string} id scoped id of the resource
412
- * @param {common.CommonConstruct} scope scope in which this resource is defined
413
- * @param {types.SfnMapProps} props props for the map state
412
+ * @param {CommonConstruct} scope scope in which this resource is defined
413
+ * @param {SfnMapProps} props props for the map state
414
414
  */
415
415
  createMapState(id, scope, props) {
416
416
  return new sfn.Map(scope, `${id}`, props);
@@ -418,8 +418,8 @@ class SfnManager {
418
418
  /**
419
419
  * @summary Method to create a state machine
420
420
  * @param {string} id scoped id of the resource
421
- * @param {common.CommonConstruct} scope scope in which this resource is defined
422
- * @param {types.SfnStateMachineProps} props
421
+ * @param {CommonConstruct} scope scope in which this resource is defined
422
+ * @param {SfnStateMachineProps} props
423
423
  * @param {sfn.IChainable} definition
424
424
  * @param {logs.ILogGroup} logGroup
425
425
  * @param {iam.IRole} role