@gradientedge/cdk-utils 8.118.0 → 8.120.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 (309) hide show
  1. package/app/api-destined-function/package.json +1 -1
  2. package/dist/src/lib/common/construct.d.ts +32 -32
  3. package/dist/src/lib/common/construct.js +36 -59
  4. package/dist/src/lib/common/stack.d.ts +8 -7
  5. package/dist/src/lib/common/stack.js +17 -37
  6. package/dist/src/lib/common/types.d.ts +2 -2
  7. package/dist/src/lib/construct/api-to-eventbridge-target/api.d.ts +22 -22
  8. package/dist/src/lib/construct/api-to-eventbridge-target/event.d.ts +9 -9
  9. package/dist/src/lib/construct/api-to-eventbridge-target/main.d.ts +3 -3
  10. package/dist/src/lib/construct/api-to-eventbridge-target/main.js +37 -60
  11. package/dist/src/lib/construct/api-to-eventbridge-target-with-sns/api-destined-lambda.d.ts +9 -9
  12. package/dist/src/lib/construct/api-to-eventbridge-target-with-sns/main.d.ts +3 -3
  13. package/dist/src/lib/construct/api-to-eventbridge-target-with-sns/main.js +40 -63
  14. package/dist/src/lib/construct/api-to-lambda-target/api.d.ts +23 -23
  15. package/dist/src/lib/construct/api-to-lambda-target/main.d.ts +2 -2
  16. package/dist/src/lib/construct/api-to-lambda-target/main.js +15 -38
  17. package/dist/src/lib/construct/application-configuration/main.d.ts +7 -7
  18. package/dist/src/lib/construct/application-configuration/main.js +17 -41
  19. package/dist/src/lib/construct/graphql-api-lambda/main.d.ts +17 -17
  20. package/dist/src/lib/construct/graphql-api-lambda/main.js +6 -29
  21. package/dist/src/lib/construct/graphql-api-lambda-with-cache/main.d.ts +5 -5
  22. package/dist/src/lib/construct/graphql-api-lambda-with-cache/main.js +7 -7
  23. package/dist/src/lib/construct/lambda-with-iam-access/main.d.ts +16 -16
  24. package/dist/src/lib/construct/lambda-with-iam-access/main.js +8 -31
  25. package/dist/src/lib/construct/lambda-with-iam-access/types.d.ts +4 -4
  26. package/dist/src/lib/construct/rest-api-lambda/main.d.ts +16 -16
  27. package/dist/src/lib/construct/rest-api-lambda/main.js +5 -28
  28. package/dist/src/lib/construct/rest-api-lambda-with-cache/main.d.ts +5 -5
  29. package/dist/src/lib/construct/rest-api-lambda-with-cache/main.js +9 -32
  30. package/dist/src/lib/construct/site-with-ecs-backend/main.d.ts +38 -39
  31. package/dist/src/lib/construct/site-with-ecs-backend/main.js +33 -54
  32. package/dist/src/lib/construct/static-asset-deployment/main.d.ts +4 -4
  33. package/dist/src/lib/construct/static-asset-deployment/main.js +3 -26
  34. package/dist/src/lib/construct/static-site/main.d.ts +15 -15
  35. package/dist/src/lib/construct/static-site/main.js +4 -27
  36. package/dist/src/lib/services/{aws/api-gateway → api-gateway}/main.d.ts +10 -10
  37. package/dist/src/lib/services/{aws/api-gateway → api-gateway}/main.js +21 -44
  38. package/dist/src/lib/services/api-gateway/types.d.ts +7 -0
  39. package/dist/src/lib/services/{aws/appconfig → appconfig}/main.d.ts +7 -7
  40. package/dist/src/lib/services/{aws/appconfig → appconfig}/main.js +14 -37
  41. package/dist/src/lib/services/{aws/certificate-manager → certificate-manager}/main.d.ts +5 -5
  42. package/dist/src/lib/services/{aws/certificate-manager → certificate-manager}/main.js +10 -33
  43. package/dist/src/lib/services/{aws/certificate-manager → certificate-manager}/types.d.ts +2 -2
  44. package/dist/src/lib/services/{aws/cloudfront → cloudfront}/main.d.ts +19 -19
  45. package/dist/src/lib/services/{aws/cloudfront → cloudfront}/main.js +47 -46
  46. package/dist/src/lib/services/{aws/cloudfront → cloudfront}/types.d.ts +3 -4
  47. package/dist/src/lib/services/{aws/cloudtrail → cloudtrail}/main.d.ts +6 -6
  48. package/dist/src/lib/services/{aws/cloudtrail → cloudtrail}/main.js +5 -28
  49. package/dist/src/lib/services/{aws/cloudwatch → cloudwatch}/logs.d.ts +1 -1
  50. package/dist/src/lib/services/{aws/cloudwatch → cloudwatch}/logs.js +1 -1
  51. package/dist/src/lib/services/{aws/cloudwatch → cloudwatch}/main.d.ts +1 -1
  52. package/dist/src/lib/services/{aws/cloudwatch → cloudwatch}/main.js +1 -1
  53. package/dist/src/lib/services/{aws/cloudwatch → cloudwatch}/types.d.ts +1 -1
  54. package/dist/src/lib/services/{aws/codebuild → codebuild}/main.d.ts +4 -4
  55. package/dist/src/lib/services/{aws/codebuild → codebuild}/main.js +7 -30
  56. package/dist/src/lib/services/{aws/dynamodb → dynamodb}/main.d.ts +4 -4
  57. package/dist/src/lib/services/{aws/dynamodb → dynamodb}/main.js +8 -31
  58. package/dist/src/lib/services/{aws/dynamodb → dynamodb}/types.d.ts +1 -1
  59. package/dist/src/lib/services/{aws/elastic-container-registry → elastic-container-registry}/main.d.ts +3 -3
  60. package/dist/src/lib/services/elastic-container-registry/main.js +37 -0
  61. package/dist/src/lib/services/{aws/elastic-container-service → elastic-container-service}/main.d.ts +11 -11
  62. package/dist/src/lib/services/{aws/elastic-container-service → elastic-container-service}/main.js +27 -50
  63. package/dist/src/lib/services/{aws/elastic-container-service → elastic-container-service}/types.d.ts +4 -4
  64. package/dist/src/lib/services/{aws/elastic-file-system → elastic-file-system}/main.d.ts +4 -4
  65. package/dist/src/lib/services/{aws/elastic-file-system → elastic-file-system}/main.js +12 -35
  66. package/dist/src/lib/services/{aws/elastic-kubernetes-service → elastic-kubernetes-service}/main.d.ts +5 -5
  67. package/dist/src/lib/services/{aws/elastic-kubernetes-service → elastic-kubernetes-service}/main.js +8 -31
  68. package/dist/src/lib/services/{aws/elasticache → elasticache}/main.d.ts +5 -5
  69. package/dist/src/lib/services/{aws/elasticache → elasticache}/main.js +10 -33
  70. package/dist/src/lib/services/{aws/eventbridge → eventbridge}/main.d.ts +14 -14
  71. package/dist/src/lib/services/{aws/eventbridge → eventbridge}/main.js +26 -49
  72. package/dist/src/lib/services/{aws/eventbridge → eventbridge}/target.d.ts +11 -11
  73. package/dist/src/lib/services/{aws/eventbridge → eventbridge}/target.js +6 -29
  74. package/dist/src/lib/services/{aws/eventbridge → eventbridge}/types.d.ts +1 -1
  75. package/dist/src/lib/services/{aws/evidently → evidently}/main.d.ts +8 -8
  76. package/dist/src/lib/services/{aws/evidently → evidently}/main.js +18 -41
  77. package/dist/src/lib/services/{aws/identity-access-management → identity-access-management}/main.d.ts +49 -50
  78. package/dist/src/lib/services/{aws/identity-access-management → identity-access-management}/main.js +110 -133
  79. package/dist/src/lib/services/index.d.ts +28 -1
  80. package/dist/src/lib/services/index.js +28 -1
  81. package/dist/src/lib/services/{aws/key-management-service → key-management-service}/main.d.ts +3 -3
  82. package/dist/src/lib/services/{aws/key-management-service → key-management-service}/main.js +5 -28
  83. package/dist/src/lib/services/{aws/lambda → lambda}/main.d.ts +12 -14
  84. package/dist/src/lib/services/{aws/lambda → lambda}/main.js +32 -59
  85. package/dist/src/lib/services/{aws/lambda → lambda}/types.d.ts +1 -1
  86. package/dist/src/lib/services/{aws/route53 → route53}/main.d.ts +10 -10
  87. package/dist/src/lib/services/{aws/route53 → route53}/main.js +21 -44
  88. package/dist/src/lib/services/{aws/secrets-manager → secrets-manager}/main.d.ts +6 -7
  89. package/dist/src/lib/services/{aws/secrets-manager → secrets-manager}/main.js +10 -33
  90. package/dist/src/lib/services/{aws/simple-notification-service → simple-notification-service}/main.d.ts +5 -5
  91. package/dist/src/lib/services/{aws/simple-notification-service → simple-notification-service}/main.js +11 -34
  92. package/dist/src/lib/services/{aws/simple-queue-service → simple-queue-service}/main.d.ts +7 -8
  93. package/dist/src/lib/services/{aws/simple-queue-service → simple-queue-service}/main.js +15 -38
  94. package/dist/src/lib/services/{aws/simple-queue-service → simple-queue-service}/types.d.ts +1 -1
  95. package/dist/src/lib/services/{aws/simple-storage-service → simple-storage-service}/main.d.ts +10 -11
  96. package/dist/src/lib/services/{aws/simple-storage-service → simple-storage-service}/main.js +31 -54
  97. package/dist/src/lib/services/{aws/simple-storage-service → simple-storage-service}/types.d.ts +1 -1
  98. package/dist/src/lib/services/{aws/step-function → step-function}/main.d.ts +32 -33
  99. package/dist/src/lib/services/{aws/step-function → step-function}/main.js +33 -57
  100. package/dist/src/lib/services/{aws/systems-manager → systems-manager}/main.d.ts +5 -5
  101. package/dist/src/lib/services/{aws/systems-manager → systems-manager}/main.js +10 -33
  102. package/dist/src/lib/services/{aws/virtual-private-cloud → virtual-private-cloud}/main.d.ts +6 -7
  103. package/dist/src/lib/services/virtual-private-cloud/main.js +70 -0
  104. package/dist/src/lib/services/{aws/web-application-firewall → web-application-firewall}/main.d.ts +4 -4
  105. package/dist/src/lib/services/{aws/web-application-firewall → web-application-firewall}/main.js +8 -31
  106. package/dist/src/lib/utils/aws/index.d.ts +6 -3
  107. package/dist/src/lib/utils/aws/index.js +9 -26
  108. package/package.json +15 -15
  109. package/src/lib/common/construct.ts +97 -67
  110. package/src/lib/common/stack.ts +12 -12
  111. package/src/lib/common/types.ts +2 -2
  112. package/src/lib/construct/api-to-eventbridge-target/api.ts +31 -22
  113. package/src/lib/construct/api-to-eventbridge-target/event.ts +9 -9
  114. package/src/lib/construct/api-to-eventbridge-target/main.ts +56 -41
  115. package/src/lib/construct/api-to-eventbridge-target-with-sns/api-destined-lambda.ts +9 -9
  116. package/src/lib/construct/api-to-eventbridge-target-with-sns/main.ts +62 -47
  117. package/src/lib/construct/api-to-lambda-target/api.ts +33 -23
  118. package/src/lib/construct/api-to-lambda-target/main.ts +24 -18
  119. package/src/lib/construct/application-configuration/main.ts +31 -24
  120. package/src/lib/construct/graphql-api-lambda/main.ts +22 -22
  121. package/src/lib/construct/graphql-api-lambda-with-cache/main.ts +13 -13
  122. package/src/lib/construct/lambda-with-iam-access/main.ts +25 -25
  123. package/src/lib/construct/lambda-with-iam-access/types.ts +4 -4
  124. package/src/lib/construct/rest-api-lambda/main.ts +21 -21
  125. package/src/lib/construct/rest-api-lambda-with-cache/main.ts +14 -14
  126. package/src/lib/construct/site-with-ecs-backend/main.ts +79 -60
  127. package/src/lib/construct/static-asset-deployment/main.ts +6 -6
  128. package/src/lib/construct/static-site/main.ts +23 -17
  129. package/src/lib/services/{aws/api-gateway → api-gateway}/main.ts +42 -36
  130. package/src/lib/services/api-gateway/types.ts +8 -0
  131. package/src/lib/services/{aws/appconfig → appconfig}/main.ts +19 -19
  132. package/src/lib/services/{aws/certificate-manager → certificate-manager}/main.ts +14 -14
  133. package/src/lib/services/{aws/certificate-manager → certificate-manager}/types.ts +2 -2
  134. package/src/lib/services/{aws/cloudfront → cloudfront}/main.ts +89 -75
  135. package/src/lib/services/{aws/cloudfront → cloudfront}/types.ts +7 -4
  136. package/src/lib/services/{aws/cloudtrail → cloudtrail}/main.ts +12 -12
  137. package/src/lib/services/{aws/cloudwatch → cloudwatch}/logs.ts +2 -2
  138. package/src/lib/services/{aws/cloudwatch → cloudwatch}/main.ts +2 -2
  139. package/src/lib/services/{aws/cloudwatch → cloudwatch}/types.ts +1 -1
  140. package/src/lib/services/{aws/codebuild → codebuild}/main.ts +8 -8
  141. package/src/lib/services/{aws/dynamodb → dynamodb}/main.ts +9 -9
  142. package/src/lib/services/{aws/dynamodb → dynamodb}/types.ts +1 -1
  143. package/src/lib/services/{aws/elastic-container-registry → elastic-container-registry}/main.ts +5 -5
  144. package/src/lib/services/{aws/elastic-container-service → elastic-container-service}/main.ts +49 -38
  145. package/src/lib/services/{aws/elastic-container-service → elastic-container-service}/types.ts +4 -4
  146. package/src/lib/services/{aws/elastic-file-system → elastic-file-system}/main.ts +17 -17
  147. package/src/lib/services/{aws/elastic-kubernetes-service → elastic-kubernetes-service}/main.ts +12 -12
  148. package/src/lib/services/{aws/elasticache → elasticache}/main.ts +11 -11
  149. package/src/lib/services/{aws/eventbridge → eventbridge}/main.ts +38 -38
  150. package/src/lib/services/{aws/eventbridge → eventbridge}/target.ts +15 -15
  151. package/src/lib/services/{aws/eventbridge → eventbridge}/types.ts +1 -1
  152. package/src/lib/services/{aws/evidently → evidently}/main.ts +19 -19
  153. package/src/lib/services/{aws/identity-access-management → identity-access-management}/main.ts +143 -135
  154. package/src/lib/services/index.ts +28 -1
  155. package/src/lib/services/{aws/key-management-service → key-management-service}/main.ts +6 -6
  156. package/src/lib/services/{aws/lambda → lambda}/main.ts +66 -60
  157. package/src/lib/services/{aws/lambda → lambda}/types.ts +1 -1
  158. package/src/lib/services/{aws/route53 → route53}/main.ts +32 -32
  159. package/src/lib/services/{aws/secrets-manager → secrets-manager}/main.ts +12 -16
  160. package/src/lib/services/{aws/simple-notification-service → simple-notification-service}/main.ts +14 -14
  161. package/src/lib/services/{aws/simple-queue-service → simple-queue-service}/main.ts +19 -19
  162. package/src/lib/services/{aws/simple-queue-service → simple-queue-service}/types.ts +1 -1
  163. package/src/lib/services/{aws/simple-storage-service → simple-storage-service}/main.ts +40 -40
  164. package/src/lib/services/{aws/simple-storage-service → simple-storage-service}/types.ts +1 -1
  165. package/src/lib/services/{aws/step-function → step-function}/main.ts +78 -66
  166. package/src/lib/services/{aws/systems-manager → systems-manager}/main.ts +18 -13
  167. package/src/lib/services/{aws/virtual-private-cloud → virtual-private-cloud}/main.ts +17 -17
  168. package/src/lib/services/{aws/web-application-firewall → web-application-firewall}/main.ts +9 -9
  169. package/src/lib/utils/aws/index.ts +8 -5
  170. package/dist/src/lib/services/aws/api-gateway/types.d.ts +0 -7
  171. package/dist/src/lib/services/aws/elastic-container-registry/main.js +0 -60
  172. package/dist/src/lib/services/aws/index.d.ts +0 -28
  173. package/dist/src/lib/services/aws/index.js +0 -44
  174. package/dist/src/lib/services/aws/virtual-private-cloud/main.js +0 -93
  175. package/src/lib/services/aws/api-gateway/types.ts +0 -8
  176. package/src/lib/services/aws/index.ts +0 -28
  177. /package/dist/src/lib/services/{aws/api-gateway → api-gateway}/index.d.ts +0 -0
  178. /package/dist/src/lib/services/{aws/api-gateway → api-gateway}/index.js +0 -0
  179. /package/dist/src/lib/services/{aws/api-gateway → api-gateway}/types.js +0 -0
  180. /package/dist/src/lib/services/{aws/appconfig → appconfig}/constants.d.ts +0 -0
  181. /package/dist/src/lib/services/{aws/appconfig → appconfig}/constants.js +0 -0
  182. /package/dist/src/lib/services/{aws/appconfig → appconfig}/index.d.ts +0 -0
  183. /package/dist/src/lib/services/{aws/appconfig → appconfig}/index.js +0 -0
  184. /package/dist/src/lib/services/{aws/appconfig → appconfig}/types.d.ts +0 -0
  185. /package/dist/src/lib/services/{aws/appconfig → appconfig}/types.js +0 -0
  186. /package/dist/src/lib/services/{aws/certificate-manager → certificate-manager}/index.d.ts +0 -0
  187. /package/dist/src/lib/services/{aws/certificate-manager → certificate-manager}/index.js +0 -0
  188. /package/dist/src/lib/services/{aws/certificate-manager → certificate-manager}/types.js +0 -0
  189. /package/dist/src/lib/services/{aws/cloudfront → cloudfront}/index.d.ts +0 -0
  190. /package/dist/src/lib/services/{aws/cloudfront → cloudfront}/index.js +0 -0
  191. /package/dist/src/lib/services/{aws/cloudfront → cloudfront}/types.js +0 -0
  192. /package/dist/src/lib/services/{aws/cloudtrail → cloudtrail}/index.d.ts +0 -0
  193. /package/dist/src/lib/services/{aws/cloudtrail → cloudtrail}/index.js +0 -0
  194. /package/dist/src/lib/services/{aws/cloudtrail → cloudtrail}/types.d.ts +0 -0
  195. /package/dist/src/lib/services/{aws/cloudtrail → cloudtrail}/types.js +0 -0
  196. /package/dist/src/lib/services/{aws/cloudwatch → cloudwatch}/index.d.ts +0 -0
  197. /package/dist/src/lib/services/{aws/cloudwatch → cloudwatch}/index.js +0 -0
  198. /package/dist/src/lib/services/{aws/cloudwatch → cloudwatch}/types.js +0 -0
  199. /package/dist/src/lib/services/{aws/codebuild → codebuild}/index.d.ts +0 -0
  200. /package/dist/src/lib/services/{aws/codebuild → codebuild}/index.js +0 -0
  201. /package/dist/src/lib/services/{aws/constants.d.ts → constants.d.ts} +0 -0
  202. /package/dist/src/lib/services/{aws/constants.js → constants.js} +0 -0
  203. /package/dist/src/lib/services/{aws/dynamodb → dynamodb}/index.d.ts +0 -0
  204. /package/dist/src/lib/services/{aws/dynamodb → dynamodb}/index.js +0 -0
  205. /package/dist/src/lib/services/{aws/dynamodb → dynamodb}/types.js +0 -0
  206. /package/dist/src/lib/services/{aws/elastic-container-registry → elastic-container-registry}/index.d.ts +0 -0
  207. /package/dist/src/lib/services/{aws/elastic-container-registry → elastic-container-registry}/index.js +0 -0
  208. /package/dist/src/lib/services/{aws/elastic-container-service → elastic-container-service}/index.d.ts +0 -0
  209. /package/dist/src/lib/services/{aws/elastic-container-service → elastic-container-service}/index.js +0 -0
  210. /package/dist/src/lib/services/{aws/elastic-container-service → elastic-container-service}/types.js +0 -0
  211. /package/dist/src/lib/services/{aws/elastic-file-system → elastic-file-system}/index.d.ts +0 -0
  212. /package/dist/src/lib/services/{aws/elastic-file-system → elastic-file-system}/index.js +0 -0
  213. /package/dist/src/lib/services/{aws/elastic-file-system → elastic-file-system}/types.d.ts +0 -0
  214. /package/dist/src/lib/services/{aws/elastic-file-system → elastic-file-system}/types.js +0 -0
  215. /package/dist/src/lib/services/{aws/elastic-kubernetes-service → elastic-kubernetes-service}/index.d.ts +0 -0
  216. /package/dist/src/lib/services/{aws/elastic-kubernetes-service → elastic-kubernetes-service}/index.js +0 -0
  217. /package/dist/src/lib/services/{aws/elastic-kubernetes-service → elastic-kubernetes-service}/types.d.ts +0 -0
  218. /package/dist/src/lib/services/{aws/elastic-kubernetes-service → elastic-kubernetes-service}/types.js +0 -0
  219. /package/dist/src/lib/services/{aws/elasticache → elasticache}/index.d.ts +0 -0
  220. /package/dist/src/lib/services/{aws/elasticache → elasticache}/index.js +0 -0
  221. /package/dist/src/lib/services/{aws/elasticache → elasticache}/types.d.ts +0 -0
  222. /package/dist/src/lib/services/{aws/elasticache → elasticache}/types.js +0 -0
  223. /package/dist/src/lib/services/{aws/eventbridge → eventbridge}/index.d.ts +0 -0
  224. /package/dist/src/lib/services/{aws/eventbridge → eventbridge}/index.js +0 -0
  225. /package/dist/src/lib/services/{aws/eventbridge → eventbridge}/types.js +0 -0
  226. /package/dist/src/lib/services/{aws/evidently → evidently}/index.d.ts +0 -0
  227. /package/dist/src/lib/services/{aws/evidently → evidently}/index.js +0 -0
  228. /package/dist/src/lib/services/{aws/evidently → evidently}/types.d.ts +0 -0
  229. /package/dist/src/lib/services/{aws/evidently → evidently}/types.js +0 -0
  230. /package/dist/src/lib/services/{aws/identity-access-management → identity-access-management}/index.d.ts +0 -0
  231. /package/dist/src/lib/services/{aws/identity-access-management → identity-access-management}/index.js +0 -0
  232. /package/dist/src/lib/services/{aws/key-management-service → key-management-service}/index.d.ts +0 -0
  233. /package/dist/src/lib/services/{aws/key-management-service → key-management-service}/index.js +0 -0
  234. /package/dist/src/lib/services/{aws/key-management-service → key-management-service}/types.d.ts +0 -0
  235. /package/dist/src/lib/services/{aws/key-management-service → key-management-service}/types.js +0 -0
  236. /package/dist/src/lib/services/{aws/lambda → lambda}/index.d.ts +0 -0
  237. /package/dist/src/lib/services/{aws/lambda → lambda}/index.js +0 -0
  238. /package/dist/src/lib/services/{aws/lambda → lambda}/types.js +0 -0
  239. /package/dist/src/lib/services/{aws/route53 → route53}/index.d.ts +0 -0
  240. /package/dist/src/lib/services/{aws/route53 → route53}/index.js +0 -0
  241. /package/dist/src/lib/services/{aws/route53 → route53}/types.d.ts +0 -0
  242. /package/dist/src/lib/services/{aws/route53 → route53}/types.js +0 -0
  243. /package/dist/src/lib/services/{aws/secrets-manager → secrets-manager}/index.d.ts +0 -0
  244. /package/dist/src/lib/services/{aws/secrets-manager → secrets-manager}/index.js +0 -0
  245. /package/dist/src/lib/services/{aws/simple-notification-service → simple-notification-service}/index.d.ts +0 -0
  246. /package/dist/src/lib/services/{aws/simple-notification-service → simple-notification-service}/index.js +0 -0
  247. /package/dist/src/lib/services/{aws/simple-notification-service → simple-notification-service}/types.d.ts +0 -0
  248. /package/dist/src/lib/services/{aws/simple-notification-service → simple-notification-service}/types.js +0 -0
  249. /package/dist/src/lib/services/{aws/simple-queue-service → simple-queue-service}/index.d.ts +0 -0
  250. /package/dist/src/lib/services/{aws/simple-queue-service → simple-queue-service}/index.js +0 -0
  251. /package/dist/src/lib/services/{aws/simple-queue-service → simple-queue-service}/types.js +0 -0
  252. /package/dist/src/lib/services/{aws/simple-storage-service → simple-storage-service}/index.d.ts +0 -0
  253. /package/dist/src/lib/services/{aws/simple-storage-service → simple-storage-service}/index.js +0 -0
  254. /package/dist/src/lib/services/{aws/simple-storage-service → simple-storage-service}/types.js +0 -0
  255. /package/dist/src/lib/services/{aws/step-function → step-function}/index.d.ts +0 -0
  256. /package/dist/src/lib/services/{aws/step-function → step-function}/index.js +0 -0
  257. /package/dist/src/lib/services/{aws/step-function → step-function}/types.d.ts +0 -0
  258. /package/dist/src/lib/services/{aws/step-function → step-function}/types.js +0 -0
  259. /package/dist/src/lib/services/{aws/systems-manager → systems-manager}/index.d.ts +0 -0
  260. /package/dist/src/lib/services/{aws/systems-manager → systems-manager}/index.js +0 -0
  261. /package/dist/src/lib/services/{aws/systems-manager → systems-manager}/types.d.ts +0 -0
  262. /package/dist/src/lib/services/{aws/systems-manager → systems-manager}/types.js +0 -0
  263. /package/dist/src/lib/services/{aws/virtual-private-cloud → virtual-private-cloud}/index.d.ts +0 -0
  264. /package/dist/src/lib/services/{aws/virtual-private-cloud → virtual-private-cloud}/index.js +0 -0
  265. /package/dist/src/lib/services/{aws/web-application-firewall → web-application-firewall}/index.d.ts +0 -0
  266. /package/dist/src/lib/services/{aws/web-application-firewall → web-application-firewall}/index.js +0 -0
  267. /package/dist/src/lib/services/{aws/web-application-firewall → web-application-firewall}/types.d.ts +0 -0
  268. /package/dist/src/lib/services/{aws/web-application-firewall → web-application-firewall}/types.js +0 -0
  269. /package/src/lib/services/{aws/api-gateway → api-gateway}/index.ts +0 -0
  270. /package/src/lib/services/{aws/appconfig → appconfig}/constants.ts +0 -0
  271. /package/src/lib/services/{aws/appconfig → appconfig}/index.ts +0 -0
  272. /package/src/lib/services/{aws/appconfig → appconfig}/types.ts +0 -0
  273. /package/src/lib/services/{aws/certificate-manager → certificate-manager}/index.ts +0 -0
  274. /package/src/lib/services/{aws/cloudfront → cloudfront}/index.ts +0 -0
  275. /package/src/lib/services/{aws/cloudtrail → cloudtrail}/index.ts +0 -0
  276. /package/src/lib/services/{aws/cloudtrail → cloudtrail}/types.ts +0 -0
  277. /package/src/lib/services/{aws/cloudwatch → cloudwatch}/index.ts +0 -0
  278. /package/src/lib/services/{aws/codebuild → codebuild}/index.ts +0 -0
  279. /package/src/lib/services/{aws/constants.ts → constants.ts} +0 -0
  280. /package/src/lib/services/{aws/dynamodb → dynamodb}/index.ts +0 -0
  281. /package/src/lib/services/{aws/elastic-container-registry → elastic-container-registry}/index.ts +0 -0
  282. /package/src/lib/services/{aws/elastic-container-service → elastic-container-service}/index.ts +0 -0
  283. /package/src/lib/services/{aws/elastic-file-system → elastic-file-system}/index.ts +0 -0
  284. /package/src/lib/services/{aws/elastic-file-system → elastic-file-system}/types.ts +0 -0
  285. /package/src/lib/services/{aws/elastic-kubernetes-service → elastic-kubernetes-service}/index.ts +0 -0
  286. /package/src/lib/services/{aws/elastic-kubernetes-service → elastic-kubernetes-service}/types.ts +0 -0
  287. /package/src/lib/services/{aws/elasticache → elasticache}/index.ts +0 -0
  288. /package/src/lib/services/{aws/elasticache → elasticache}/types.ts +0 -0
  289. /package/src/lib/services/{aws/eventbridge → eventbridge}/index.ts +0 -0
  290. /package/src/lib/services/{aws/evidently → evidently}/index.ts +0 -0
  291. /package/src/lib/services/{aws/evidently → evidently}/types.ts +0 -0
  292. /package/src/lib/services/{aws/identity-access-management → identity-access-management}/index.ts +0 -0
  293. /package/src/lib/services/{aws/key-management-service → key-management-service}/index.ts +0 -0
  294. /package/src/lib/services/{aws/key-management-service → key-management-service}/types.ts +0 -0
  295. /package/src/lib/services/{aws/lambda → lambda}/index.ts +0 -0
  296. /package/src/lib/services/{aws/route53 → route53}/index.ts +0 -0
  297. /package/src/lib/services/{aws/route53 → route53}/types.ts +0 -0
  298. /package/src/lib/services/{aws/secrets-manager → secrets-manager}/index.ts +0 -0
  299. /package/src/lib/services/{aws/simple-notification-service → simple-notification-service}/index.ts +0 -0
  300. /package/src/lib/services/{aws/simple-notification-service → simple-notification-service}/types.ts +0 -0
  301. /package/src/lib/services/{aws/simple-queue-service → simple-queue-service}/index.ts +0 -0
  302. /package/src/lib/services/{aws/simple-storage-service → simple-storage-service}/index.ts +0 -0
  303. /package/src/lib/services/{aws/step-function → step-function}/index.ts +0 -0
  304. /package/src/lib/services/{aws/step-function → step-function}/types.ts +0 -0
  305. /package/src/lib/services/{aws/systems-manager → systems-manager}/index.ts +0 -0
  306. /package/src/lib/services/{aws/systems-manager → systems-manager}/types.ts +0 -0
  307. /package/src/lib/services/{aws/virtual-private-cloud → virtual-private-cloud}/index.ts +0 -0
  308. /package/src/lib/services/{aws/web-application-firewall → web-application-firewall}/index.ts +0 -0
  309. /package/src/lib/services/{aws/web-application-firewall → web-application-firewall}/types.ts +0 -0
@@ -1,41 +1,18 @@
1
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 __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
14
- Object.defineProperty(o, "default", { enumerable: true, value: v });
15
- }) : function(o, v) {
16
- o["default"] = v;
17
- });
18
- var __importStar = (this && this.__importStar) || function (mod) {
19
- if (mod && mod.__esModule) return mod;
20
- var result = {};
21
- if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
22
- __setModuleDefault(result, mod);
23
- return result;
24
- };
25
2
  Object.defineProperty(exports, "__esModule", { value: true });
26
3
  exports.IamManager = void 0;
27
- const cdk = __importStar(require("aws-cdk-lib"));
28
- const iam = __importStar(require("aws-cdk-lib/aws-iam"));
29
- const utils = __importStar(require("../../../utils"));
4
+ const aws_cdk_lib_1 = require("aws-cdk-lib");
5
+ const aws_iam_1 = require("aws-cdk-lib/aws-iam");
6
+ const utils_1 = require("../../utils");
30
7
  /**
31
- * @classdesc Provides operations on AWS IAM.
8
+ * @classdesc Provides operations on AWS
32
9
  * - A new instance of this class is injected into {@link CommonConstruct} constructor.
33
10
  * - If a custom construct extends {@link CommonConstruct}, an instance is available within the context.
34
11
  * @example
35
12
  * import { CommonConstruct } from '@gradientedge/cdk-utils'
36
13
  *
37
14
  * class CustomConstruct extends CommonConstruct {
38
- * constructor(parent: cdk.Construct, id: string, props: common.CommonStackProps) {
15
+ * constructor(parent: Construct, id: string, props: common.CommonStackProps) {
39
16
  * super(parent, id, props)
40
17
  * this.props = props
41
18
  * this.iamManager.createRoleForEcsEvent('MyEcsRole', this, cluster, task)
@@ -50,11 +27,11 @@ class IamManager {
50
27
  * @param resourceArns list of ARNs to allow access to
51
28
  */
52
29
  statementForReadSecrets(scope, resourceArns) {
53
- return new iam.PolicyStatement({
30
+ return new aws_iam_1.PolicyStatement({
54
31
  actions: ['secretsmanager:GetSecretValue'],
55
- effect: iam.Effect.ALLOW,
32
+ effect: aws_iam_1.Effect.ALLOW,
56
33
  resources: resourceArns ?? [
57
- `arn:aws:secretsmanager:${cdk.Stack.of(scope).region}:${cdk.Stack.of(scope).account}:secret:*`,
34
+ `arn:aws:secretsmanager:${aws_cdk_lib_1.Stack.of(scope).region}:${aws_cdk_lib_1.Stack.of(scope).account}:secret:*`,
58
35
  ],
59
36
  });
60
37
  }
@@ -63,20 +40,20 @@ class IamManager {
63
40
  * @param resourceArns list of ARNs to allow access to
64
41
  */
65
42
  statementForPutEvents(resourceArns) {
66
- return new iam.PolicyStatement({
43
+ return new aws_iam_1.PolicyStatement({
67
44
  actions: ['events:PutEvents'],
68
- effect: iam.Effect.ALLOW,
45
+ effect: aws_iam_1.Effect.ALLOW,
69
46
  resources: resourceArns ?? ['*'],
70
47
  });
71
48
  }
72
49
  /**
73
- * @summary Method to create iam statement to start stepfunction execution
50
+ * @summary Method to create iam statement to start step function execution
74
51
  * @param resourceArns list of ARNs to allow access to
75
52
  */
76
53
  statementForStartExecution(resourceArns) {
77
- return new iam.PolicyStatement({
54
+ return new aws_iam_1.PolicyStatement({
78
55
  actions: ['states:StartExecution'],
79
- effect: iam.Effect.ALLOW,
56
+ effect: aws_iam_1.Effect.ALLOW,
80
57
  resources: resourceArns ?? ['*'],
81
58
  });
82
59
  }
@@ -85,9 +62,9 @@ class IamManager {
85
62
  * @param resourceArns list of ARNs to allow access to
86
63
  */
87
64
  statementForPollQueue(resourceArns) {
88
- return new iam.PolicyStatement({
65
+ return new aws_iam_1.PolicyStatement({
89
66
  actions: ['sqs:ReceiveMessage', 'sqs:DeleteMessage', 'sqs:GetQueueAttributes'],
90
- effect: iam.Effect.ALLOW,
67
+ effect: aws_iam_1.Effect.ALLOW,
91
68
  resources: resourceArns ?? ['*'],
92
69
  });
93
70
  }
@@ -96,9 +73,9 @@ class IamManager {
96
73
  * @param resourceArns list of ARNs to allow access to
97
74
  */
98
75
  statementForInvokeLambda(resourceArns) {
99
- return new iam.PolicyStatement({
76
+ return new aws_iam_1.PolicyStatement({
100
77
  actions: ['lambda:InvokeFunction'],
101
- effect: iam.Effect.ALLOW,
78
+ effect: aws_iam_1.Effect.ALLOW,
102
79
  resources: resourceArns ?? ['*'],
103
80
  });
104
81
  }
@@ -107,7 +84,7 @@ class IamManager {
107
84
  * @param resourceArns list of ARNs to allow access to
108
85
  */
109
86
  statementForReadAnyAppConfig(resourceArns) {
110
- return new iam.PolicyStatement({
87
+ return new aws_iam_1.PolicyStatement({
111
88
  actions: [
112
89
  'ssm:GetDocument',
113
90
  'ssm:ListDocuments',
@@ -122,7 +99,7 @@ class IamManager {
122
99
  'appconfig:GetConfiguration',
123
100
  'appconfig:ListDeployments',
124
101
  ],
125
- effect: iam.Effect.ALLOW,
102
+ effect: aws_iam_1.Effect.ALLOW,
126
103
  resources: resourceArns ?? ['*'],
127
104
  });
128
105
  }
@@ -131,9 +108,9 @@ class IamManager {
131
108
  * @param resourceArns list of ARNs to allow access to
132
109
  */
133
110
  statementForAppConfigExecution(resourceArns) {
134
- return new iam.PolicyStatement({
111
+ return new aws_iam_1.PolicyStatement({
135
112
  actions: ['appconfig:GetLatestConfiguration', 'appconfig:StartConfigurationSession'],
136
- effect: iam.Effect.ALLOW,
113
+ effect: aws_iam_1.Effect.ALLOW,
137
114
  resources: resourceArns ?? ['*'],
138
115
  });
139
116
  }
@@ -142,9 +119,9 @@ class IamManager {
142
119
  * @param resourceArns list of ARNs to allow access to
143
120
  */
144
121
  statementForPutXrayTelemetry(resourceArns) {
145
- return new iam.PolicyStatement({
122
+ return new aws_iam_1.PolicyStatement({
146
123
  actions: ['xray:PutTraceSegments', 'xray:PutTelemetryRecords'],
147
- effect: iam.Effect.ALLOW,
124
+ effect: aws_iam_1.Effect.ALLOW,
148
125
  resources: resourceArns ?? ['*'],
149
126
  });
150
127
  }
@@ -153,9 +130,9 @@ class IamManager {
153
130
  * @param resourceArns list of ARNs to allow access to
154
131
  */
155
132
  statementForDecryptKms(resourceArns) {
156
- return new iam.PolicyStatement({
133
+ return new aws_iam_1.PolicyStatement({
157
134
  actions: ['kms:Decrypt'],
158
- effect: iam.Effect.ALLOW,
135
+ effect: aws_iam_1.Effect.ALLOW,
159
136
  resources: resourceArns ?? ['*'],
160
137
  });
161
138
  }
@@ -165,9 +142,9 @@ class IamManager {
165
142
  * @param bucket
166
143
  */
167
144
  statementForListBucket(scope, bucket) {
168
- return new iam.PolicyStatement({
145
+ return new aws_iam_1.PolicyStatement({
169
146
  actions: ['s3:ListBucket'],
170
- effect: iam.Effect.ALLOW,
147
+ effect: aws_iam_1.Effect.ALLOW,
171
148
  resources: [bucket.bucketArn],
172
149
  });
173
150
  }
@@ -176,9 +153,9 @@ class IamManager {
176
153
  * @param resourceArns list of ARNs to allow access to
177
154
  */
178
155
  statementForListAllMyBuckets(resourceArns) {
179
- return new iam.PolicyStatement({
156
+ return new aws_iam_1.PolicyStatement({
180
157
  actions: ['s3:ListAllMyBuckets'],
181
- effect: iam.Effect.ALLOW,
158
+ effect: aws_iam_1.Effect.ALLOW,
182
159
  resources: resourceArns ?? ['*'],
183
160
  });
184
161
  }
@@ -189,9 +166,9 @@ class IamManager {
189
166
  * @param resourceArns list of ARNs to allow access to
190
167
  */
191
168
  statementForGetAnyS3Objects(scope, bucket, resourceArns) {
192
- return new iam.PolicyStatement({
169
+ return new aws_iam_1.PolicyStatement({
193
170
  actions: ['s3:GetObject', 's3:GetObjectAcl'],
194
- effect: iam.Effect.ALLOW,
171
+ effect: aws_iam_1.Effect.ALLOW,
195
172
  resources: resourceArns ?? [bucket.arnForObjects(`*`)],
196
173
  });
197
174
  }
@@ -202,9 +179,9 @@ class IamManager {
202
179
  * @param resourceArns list of ARNs to allow access to
203
180
  */
204
181
  statementForDeleteAnyS3Objects(scope, bucket, resourceArns) {
205
- return new iam.PolicyStatement({
182
+ return new aws_iam_1.PolicyStatement({
206
183
  actions: ['s3:DeleteObject'],
207
- effect: iam.Effect.ALLOW,
184
+ effect: aws_iam_1.Effect.ALLOW,
208
185
  resources: resourceArns ?? [bucket.arnForObjects(`*`)],
209
186
  });
210
187
  }
@@ -215,9 +192,9 @@ class IamManager {
215
192
  * @param resourceArns list of ARNs to allow access to
216
193
  */
217
194
  statementForPutAnyS3Objects(scope, bucket, resourceArns) {
218
- return new iam.PolicyStatement({
195
+ return new aws_iam_1.PolicyStatement({
219
196
  actions: ['s3:PutObject', 's3:PutObjectAcl'],
220
- effect: iam.Effect.ALLOW,
197
+ effect: aws_iam_1.Effect.ALLOW,
221
198
  resources: resourceArns ?? [bucket.arnForObjects(`*`)],
222
199
  });
223
200
  }
@@ -226,9 +203,9 @@ class IamManager {
226
203
  * @param resourceArns list of ARNs to allow access to
227
204
  */
228
205
  statementForPassRole(resourceArns) {
229
- return new iam.PolicyStatement({
206
+ return new aws_iam_1.PolicyStatement({
230
207
  actions: ['iam:PassRole'],
231
- effect: iam.Effect.ALLOW,
208
+ effect: aws_iam_1.Effect.ALLOW,
232
209
  resources: resourceArns ?? ['*'],
233
210
  });
234
211
  }
@@ -237,9 +214,9 @@ class IamManager {
237
214
  * @param resourceArns list of ARNs to allow access to
238
215
  */
239
216
  statementForCloudfrontInvalidation(resourceArns) {
240
- return new iam.PolicyStatement({
217
+ return new aws_iam_1.PolicyStatement({
241
218
  actions: ['cloudfront:GetInvalidation', 'cloudfront:CreateInvalidation'],
242
- effect: iam.Effect.ALLOW,
219
+ effect: aws_iam_1.Effect.ALLOW,
243
220
  resources: resourceArns ?? ['*'],
244
221
  });
245
222
  }
@@ -248,9 +225,9 @@ class IamManager {
248
225
  * @param resourceArns list of ARNs to allow access to
249
226
  */
250
227
  statementForWriteEfs(resourceArns) {
251
- return new iam.PolicyStatement({
228
+ return new aws_iam_1.PolicyStatement({
252
229
  actions: ['elasticfilesystem:*'],
253
- effect: iam.Effect.ALLOW,
230
+ effect: aws_iam_1.Effect.ALLOW,
254
231
  resources: resourceArns ?? ['*'],
255
232
  });
256
233
  }
@@ -259,19 +236,19 @@ class IamManager {
259
236
  * @param resourceArns list of ARNs to allow access to
260
237
  */
261
238
  policyForCloudfrontInvalidation(resourceArns) {
262
- return new iam.PolicyDocument({
239
+ return new aws_iam_1.PolicyDocument({
263
240
  statements: [
264
241
  this.statementForCreateAnyLogStream(),
265
242
  this.statementForPutAnyLogEvent(),
266
243
  this.statementForCloudfrontInvalidation(),
267
- new iam.PolicyStatement({
244
+ new aws_iam_1.PolicyStatement({
268
245
  actions: [
269
246
  'ecr:GetDownloadUrlForLayer',
270
247
  'ecr:BatchGetImage',
271
248
  'ecr:BatchCheckLayerAvailability',
272
249
  'ecr:GetAuthorizationToken',
273
250
  ],
274
- effect: iam.Effect.ALLOW,
251
+ effect: aws_iam_1.Effect.ALLOW,
275
252
  resources: resourceArns ?? ['*'],
276
253
  }),
277
254
  ],
@@ -283,8 +260,8 @@ class IamManager {
283
260
  * @param scope scope in which this resource is defined
284
261
  */
285
262
  roleForCloudfrontInvalidation(id, scope) {
286
- return new iam.Role(scope, `${id}-install-deps-project-role`, {
287
- assumedBy: new iam.ServicePrincipal('codebuild.amazonaws.com'),
263
+ return new aws_iam_1.Role(scope, `${id}-install-deps-project-role`, {
264
+ assumedBy: new aws_iam_1.ServicePrincipal('codebuild.amazonaws.com'),
288
265
  inlinePolicies: {
289
266
  codeBuildPolicy: this.policyForCloudfrontInvalidation(),
290
267
  },
@@ -296,9 +273,9 @@ class IamManager {
296
273
  * @param servicePrincipals
297
274
  */
298
275
  statementForAssumeRole(scope, servicePrincipals) {
299
- return new iam.PolicyStatement({
276
+ return new aws_iam_1.PolicyStatement({
300
277
  actions: ['sts:AssumeRole'],
301
- effect: iam.Effect.ALLOW,
278
+ effect: aws_iam_1.Effect.ALLOW,
302
279
  principals: servicePrincipals,
303
280
  });
304
281
  }
@@ -307,10 +284,10 @@ class IamManager {
307
284
  * @param resourceArns list of ARNs to allow access to
308
285
  */
309
286
  statementForEcsPassRole(resourceArns) {
310
- return new iam.PolicyStatement({
287
+ return new aws_iam_1.PolicyStatement({
311
288
  actions: ['iam:PassRole'],
312
289
  conditions: { StringLike: { 'iam:PassedToService': 'ecs-tasks.amazonaws.com' } },
313
- effect: iam.Effect.ALLOW,
290
+ effect: aws_iam_1.Effect.ALLOW,
314
291
  resources: resourceArns ?? ['*'],
315
292
  });
316
293
  }
@@ -321,10 +298,10 @@ class IamManager {
321
298
  * @param task
322
299
  */
323
300
  statementForRunEcsTask(scope, cluster, task) {
324
- return new iam.PolicyStatement({
301
+ return new aws_iam_1.PolicyStatement({
325
302
  actions: ['ecs:RunTask'],
326
303
  conditions: { ArnLike: { 'ecs:cluster': cluster.clusterArn } },
327
- effect: iam.Effect.ALLOW,
304
+ effect: aws_iam_1.Effect.ALLOW,
328
305
  resources: [task.taskDefinitionArn],
329
306
  });
330
307
  }
@@ -334,11 +311,11 @@ class IamManager {
334
311
  * @param logGroup
335
312
  */
336
313
  statementForCreateLogStream(scope, logGroup) {
337
- return new iam.PolicyStatement({
314
+ return new aws_iam_1.PolicyStatement({
338
315
  actions: ['logs:CreateLogStream'],
339
- effect: iam.Effect.ALLOW,
316
+ effect: aws_iam_1.Effect.ALLOW,
340
317
  resources: [
341
- `arn:aws:logs:${cdk.Stack.of(scope).region}:${cdk.Stack.of(scope).account}:log-group:${logGroup.logGroupName}:log-stream:${cdk.Stack.of(scope).account}_CloudTrail_eu-west-1*`,
318
+ `arn:aws:logs:${aws_cdk_lib_1.Stack.of(scope).region}:${aws_cdk_lib_1.Stack.of(scope).account}:log-group:${logGroup.logGroupName}:log-stream:${aws_cdk_lib_1.Stack.of(scope).account}_CloudTrail_eu-west-1*`,
342
319
  ],
343
320
  sid: 'AWSCloudTrailCreateLogStream2014110',
344
321
  });
@@ -348,9 +325,9 @@ class IamManager {
348
325
  * @param resourceArns list of ARNs to allow access to
349
326
  */
350
327
  statementForCreateAnyLogStream(resourceArns) {
351
- return new iam.PolicyStatement({
328
+ return new aws_iam_1.PolicyStatement({
352
329
  actions: ['logs:CreateLogStream'],
353
- effect: iam.Effect.ALLOW,
330
+ effect: aws_iam_1.Effect.ALLOW,
354
331
  resources: resourceArns ?? ['*'],
355
332
  });
356
333
  }
@@ -360,11 +337,11 @@ class IamManager {
360
337
  * @param logGroup
361
338
  */
362
339
  statementForPutLogEvent(scope, logGroup) {
363
- return new iam.PolicyStatement({
340
+ return new aws_iam_1.PolicyStatement({
364
341
  actions: ['logs:PutLogEvents'],
365
- effect: iam.Effect.ALLOW,
342
+ effect: aws_iam_1.Effect.ALLOW,
366
343
  resources: [
367
- `arn:aws:logs:${cdk.Stack.of(scope).region}:${cdk.Stack.of(scope).account}:log-group:${logGroup.logGroupName}:log-stream:${cdk.Stack.of(scope).account}_CloudTrail_eu-west-1*`,
344
+ `arn:aws:logs:${aws_cdk_lib_1.Stack.of(scope).region}:${aws_cdk_lib_1.Stack.of(scope).account}:log-group:${logGroup.logGroupName}:log-stream:${aws_cdk_lib_1.Stack.of(scope).account}_CloudTrail_eu-west-1*`,
368
345
  ],
369
346
  sid: 'AWSCloudTrailPutLogEvents20141101',
370
347
  });
@@ -374,9 +351,9 @@ class IamManager {
374
351
  * @param resourceArns list of ARNs to allow access to
375
352
  */
376
353
  statementForPutAnyLogEvent(resourceArns) {
377
- return new iam.PolicyStatement({
354
+ return new aws_iam_1.PolicyStatement({
378
355
  actions: ['logs:PutLogEvents'],
379
- effect: iam.Effect.ALLOW,
356
+ effect: aws_iam_1.Effect.ALLOW,
380
357
  resources: resourceArns ?? ['*'],
381
358
  });
382
359
  }
@@ -385,7 +362,7 @@ class IamManager {
385
362
  * @param resourceArns list of ARNs to allow access to
386
363
  */
387
364
  statementForReadTableItems(resourceArns) {
388
- return new iam.PolicyStatement({
365
+ return new aws_iam_1.PolicyStatement({
389
366
  actions: [
390
367
  'dynamodb:PartiQLSelect',
391
368
  'dynamodb:DescribeTable',
@@ -396,7 +373,7 @@ class IamManager {
396
373
  'dynamodb:GetRecords',
397
374
  'dynamodb:BatchGetItem',
398
375
  ],
399
- effect: iam.Effect.ALLOW,
376
+ effect: aws_iam_1.Effect.ALLOW,
400
377
  resources: resourceArns ?? ['*'],
401
378
  });
402
379
  }
@@ -405,9 +382,9 @@ class IamManager {
405
382
  * @param resourceArns list of ARNs to allow access to
406
383
  */
407
384
  statementForWriteTableItems(resourceArns) {
408
- return new iam.PolicyStatement({
385
+ return new aws_iam_1.PolicyStatement({
409
386
  actions: ['dynamodb:BatchWriteItem', 'dynamodb:DeleteItem', 'dynamodb:PutItem', 'dynamodb:UpdateItem'],
410
- effect: iam.Effect.ALLOW,
387
+ effect: aws_iam_1.Effect.ALLOW,
411
388
  resources: resourceArns ?? ['*'],
412
389
  });
413
390
  }
@@ -418,12 +395,12 @@ class IamManager {
418
395
  * @param logGroup
419
396
  */
420
397
  createRoleForCloudTrail(id, scope, logGroup) {
421
- const policy = new iam.PolicyDocument({
398
+ const policy = new aws_iam_1.PolicyDocument({
422
399
  statements: [this.statementForCreateLogStream(scope, logGroup), this.statementForPutLogEvent(scope, logGroup)],
423
400
  });
424
- const role = new iam.CfnRole(scope, `${id}`, {
425
- assumeRolePolicyDocument: new iam.PolicyDocument({
426
- statements: [this.statementForAssumeRole(scope, [new iam.ServicePrincipal('cloudtrail.amazonaws.com')])],
401
+ const role = new aws_iam_1.CfnRole(scope, `${id}`, {
402
+ assumeRolePolicyDocument: new aws_iam_1.PolicyDocument({
403
+ statements: [this.statementForAssumeRole(scope, [new aws_iam_1.ServicePrincipal('cloudtrail.amazonaws.com')])],
427
404
  }),
428
405
  policies: [
429
406
  {
@@ -433,8 +410,8 @@ class IamManager {
433
410
  ],
434
411
  roleName: `${id}-${scope.props.stage}`,
435
412
  });
436
- utils.createCfnOutput(`${id}Arn`, scope, role.attrArn);
437
- utils.createCfnOutput(`${id}Name`, scope, role.roleName);
413
+ (0, utils_1.createCfnOutput)(`${id}Arn`, scope, role.attrArn);
414
+ (0, utils_1.createCfnOutput)(`${id}Name`, scope, role.roleName);
438
415
  return role;
439
416
  }
440
417
  /**
@@ -445,17 +422,17 @@ class IamManager {
445
422
  * @param task
446
423
  */
447
424
  createRoleForEcsEvent(id, scope, cluster, task) {
448
- const policy = new iam.PolicyDocument({
425
+ const policy = new aws_iam_1.PolicyDocument({
449
426
  statements: [this.statementForRunEcsTask(scope, cluster, task), this.statementForEcsPassRole()],
450
427
  });
451
- const role = new iam.Role(scope, `${id}`, {
452
- assumedBy: new iam.ServicePrincipal('events.amazonaws.com'),
428
+ const role = new aws_iam_1.Role(scope, `${id}`, {
429
+ assumedBy: new aws_iam_1.ServicePrincipal('events.amazonaws.com'),
453
430
  description: `Role for ${id} ECS Task execution from EventBridge`,
454
431
  inlinePolicies: { policy },
455
432
  roleName: `${id}-${scope.props.stage}`,
456
433
  });
457
- utils.createCfnOutput(`${id}Arn`, scope, role.roleArn);
458
- utils.createCfnOutput(`${id}Name`, scope, role.roleName);
434
+ (0, utils_1.createCfnOutput)(`${id}Arn`, scope, role.roleArn);
435
+ (0, utils_1.createCfnOutput)(`${id}Name`, scope, role.roleName);
459
436
  return role;
460
437
  }
461
438
  /**
@@ -465,17 +442,17 @@ class IamManager {
465
442
  * @param policy
466
443
  */
467
444
  createRoleForEcsExecution(id, scope, policy) {
468
- const role = new iam.Role(scope, `${id}`, {
469
- assumedBy: new iam.ServicePrincipal('ecs-tasks.amazonaws.com'),
445
+ const role = new aws_iam_1.Role(scope, `${id}`, {
446
+ assumedBy: new aws_iam_1.ServicePrincipal('ecs-tasks.amazonaws.com'),
470
447
  description: `Role for ${id} ECS Task execution`,
471
448
  inlinePolicies: { policy },
472
449
  managedPolicies: [
473
- iam.ManagedPolicy.fromManagedPolicyArn(scope, `${id}-AmazonECSTaskExecutionRolePolicy`, 'arn:aws:iam::aws:policy/service-role/AmazonECSTaskExecutionRolePolicy'),
450
+ aws_iam_1.ManagedPolicy.fromManagedPolicyArn(scope, `${id}-AmazonECSTaskExecutionRolePolicy`, 'arn:aws:iam::aws:policy/service-role/AmazonECSTaskExecutionRolePolicy'),
474
451
  ],
475
452
  roleName: `${id}-${scope.props.stage}`,
476
453
  });
477
- utils.createCfnOutput(`${id}Arn`, scope, role.roleArn);
478
- utils.createCfnOutput(`${id}Name`, scope, role.roleName);
454
+ (0, utils_1.createCfnOutput)(`${id}Arn`, scope, role.roleArn);
455
+ (0, utils_1.createCfnOutput)(`${id}Name`, scope, role.roleName);
479
456
  return role;
480
457
  }
481
458
  /**
@@ -483,20 +460,20 @@ class IamManager {
483
460
  * @param id scoped id of the resource
484
461
  * @param scope scope in which this resource is defined
485
462
  * @param policy
486
- * @param servicePrinicpal
463
+ * @param servicePrincipal
487
464
  */
488
- createRoleForLambda(id, scope, policy, servicePrinicpal) {
489
- const role = new iam.Role(scope, `${id}`, {
490
- assumedBy: servicePrinicpal ?? new iam.ServicePrincipal('lambda.amazonaws.com'),
465
+ createRoleForLambda(id, scope, policy, servicePrincipal) {
466
+ const role = new aws_iam_1.Role(scope, `${id}`, {
467
+ assumedBy: servicePrincipal ?? new aws_iam_1.ServicePrincipal('lambda.amazonaws.com'),
491
468
  description: `Role for ${id} Lambda function`,
492
469
  inlinePolicies: { policy },
493
470
  managedPolicies: [
494
- iam.ManagedPolicy.fromManagedPolicyArn(scope, `${id}-AWSLambdaBasicExecutionRole`, 'arn:aws:iam::aws:policy/service-role/AWSLambdaBasicExecutionRole'),
471
+ aws_iam_1.ManagedPolicy.fromManagedPolicyArn(scope, `${id}-AWSLambdaBasicExecutionRole`, 'arn:aws:iam::aws:policy/service-role/AWSLambdaBasicExecutionRole'),
495
472
  ],
496
473
  roleName: `${id}-${scope.props.stage}`,
497
474
  });
498
- utils.createCfnOutput(`${id}Arn`, scope, role.roleArn);
499
- utils.createCfnOutput(`${id}Name`, scope, role.roleName);
475
+ (0, utils_1.createCfnOutput)(`${id}Arn`, scope, role.roleArn);
476
+ (0, utils_1.createCfnOutput)(`${id}Name`, scope, role.roleName);
500
477
  return role;
501
478
  }
502
479
  /**
@@ -504,17 +481,17 @@ class IamManager {
504
481
  * @param id scoped id of the resource
505
482
  * @param scope scope in which this resource is defined
506
483
  * @param policy
507
- * @param servicePrinicpal
484
+ * @param servicePrincipal
508
485
  */
509
- createRoleForAppConfigSecrets(id, scope, policy, servicePrinicpal) {
510
- const role = new iam.Role(scope, `${id}`, {
511
- assumedBy: servicePrinicpal ?? new iam.ServicePrincipal('appconfig.amazonaws.com'),
486
+ createRoleForAppConfigSecrets(id, scope, policy, servicePrincipal) {
487
+ const role = new aws_iam_1.Role(scope, `${id}`, {
488
+ assumedBy: servicePrincipal ?? new aws_iam_1.ServicePrincipal('appconfig.amazonaws.com'),
512
489
  description: `Role for ${id} AppConfig Secrets`,
513
490
  inlinePolicies: { policy },
514
491
  roleName: `${id}-${scope.props.stage}`,
515
492
  });
516
- utils.createCfnOutput(`${id}Arn`, scope, role.roleArn);
517
- utils.createCfnOutput(`${id}Name`, scope, role.roleName);
493
+ (0, utils_1.createCfnOutput)(`${id}Arn`, scope, role.roleArn);
494
+ (0, utils_1.createCfnOutput)(`${id}Name`, scope, role.roleName);
518
495
  return role;
519
496
  }
520
497
  /**
@@ -522,20 +499,20 @@ class IamManager {
522
499
  * @param id scoped id of the resource
523
500
  * @param scope scope in which this resource is defined
524
501
  * @param policy
525
- * @param servicePrinicpal
502
+ * @param servicePrincipal
526
503
  */
527
- createRoleForStepFunction(id, scope, policy, servicePrinicpal) {
528
- const role = new iam.Role(scope, `${id}`, {
529
- assumedBy: servicePrinicpal ?? new iam.ServicePrincipal('states.amazonaws.com'),
504
+ createRoleForStepFunction(id, scope, policy, servicePrincipal) {
505
+ const role = new aws_iam_1.Role(scope, `${id}`, {
506
+ assumedBy: servicePrincipal ?? new aws_iam_1.ServicePrincipal('states.amazonaws.com'),
530
507
  description: `Role for ${id} Lambda function`,
531
508
  inlinePolicies: { policy },
532
509
  managedPolicies: [
533
- iam.ManagedPolicy.fromManagedPolicyArn(scope, `${id}-AWSLambdaBasicExecutionRole`, 'arn:aws:iam::aws:policy/service-role/AWSLambdaBasicExecutionRole'),
510
+ aws_iam_1.ManagedPolicy.fromManagedPolicyArn(scope, `${id}-AWSLambdaBasicExecutionRole`, 'arn:aws:iam::aws:policy/service-role/AWSLambdaBasicExecutionRole'),
534
511
  ],
535
512
  roleName: `${id}-${scope.props.stage}`,
536
513
  });
537
- utils.createCfnOutput(`${id}Arn`, scope, role.roleArn);
538
- utils.createCfnOutput(`${id}Name`, scope, role.roleName);
514
+ (0, utils_1.createCfnOutput)(`${id}Arn`, scope, role.roleArn);
515
+ (0, utils_1.createCfnOutput)(`${id}Name`, scope, role.roleName);
539
516
  return role;
540
517
  }
541
518
  /**
@@ -546,15 +523,15 @@ class IamManager {
546
523
  * @param stepFunctionArn the arn of the step function
547
524
  */
548
525
  createRoleForSqsToSfnPipe(id, scope, queueArn, stepFunctionArn) {
549
- const role = new iam.Role(scope, `${id}`, {
550
- assumedBy: new iam.ServicePrincipal('pipes.amazonaws.com'),
526
+ const role = new aws_iam_1.Role(scope, `${id}`, {
527
+ assumedBy: new aws_iam_1.ServicePrincipal('pipes.amazonaws.com'),
551
528
  description: `Role for ${id} Pipe`,
552
529
  roleName: `${id}-${scope.props.stage}`,
553
530
  });
554
531
  role.addToPolicy(this.statementForPollQueue([queueArn]));
555
532
  role.addToPolicy(this.statementForStartExecution([stepFunctionArn]));
556
- utils.createCfnOutput(`${id}Arn`, scope, role.roleArn);
557
- utils.createCfnOutput(`${id}Name`, scope, role.roleName);
533
+ (0, utils_1.createCfnOutput)(`${id}Arn`, scope, role.roleArn);
534
+ (0, utils_1.createCfnOutput)(`${id}Name`, scope, role.roleName);
558
535
  return role;
559
536
  }
560
537
  /**
@@ -566,17 +543,17 @@ class IamManager {
566
543
  * @param servicePrincipals
567
544
  */
568
545
  createPolicyForSqsEvent(id, scope, sqsQueue, eventBridgeRule, servicePrincipals) {
569
- return new iam.PolicyDocument({
546
+ return new aws_iam_1.PolicyDocument({
570
547
  statements: [
571
- new iam.PolicyStatement({
548
+ new aws_iam_1.PolicyStatement({
572
549
  actions: ['sqs:*'],
573
550
  conditions: {
574
551
  ArnEquals: {
575
552
  'aws:SourceArn': eventBridgeRule,
576
553
  },
577
554
  },
578
- effect: iam.Effect.ALLOW,
579
- principals: servicePrincipals ?? [new iam.ServicePrincipal('events.amazonaws.com')],
555
+ effect: aws_iam_1.Effect.ALLOW,
556
+ principals: servicePrincipals ?? [new aws_iam_1.ServicePrincipal('events.amazonaws.com')],
580
557
  resources: [sqsQueue.queueArn],
581
558
  }),
582
559
  ],
@@ -1 +1,28 @@
1
- export * from './aws';
1
+ export * from './api-gateway';
2
+ export * from './appconfig';
3
+ export * from './certificate-manager';
4
+ export * from './cloudfront';
5
+ export * from './cloudtrail';
6
+ export * from './cloudwatch';
7
+ export * from './codebuild';
8
+ export * from './constants';
9
+ export * from './dynamodb';
10
+ export * from './elastic-container-registry';
11
+ export * from './elastic-container-service';
12
+ export * from './elastic-file-system';
13
+ export * from './elastic-kubernetes-service';
14
+ export * from './elasticache';
15
+ export * from './eventbridge';
16
+ export * from './evidently';
17
+ export * from './identity-access-management';
18
+ export * from './key-management-service';
19
+ export * from './lambda';
20
+ export * from './route53';
21
+ export * from './secrets-manager';
22
+ export * from './simple-notification-service';
23
+ export * from './simple-queue-service';
24
+ export * from './simple-storage-service';
25
+ export * from './step-function';
26
+ export * from './systems-manager';
27
+ export * from './virtual-private-cloud';
28
+ export * from './web-application-firewall';
@@ -14,4 +14,31 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
14
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
- __exportStar(require("./aws"), exports);
17
+ __exportStar(require("./api-gateway"), exports);
18
+ __exportStar(require("./appconfig"), exports);
19
+ __exportStar(require("./certificate-manager"), exports);
20
+ __exportStar(require("./cloudfront"), exports);
21
+ __exportStar(require("./cloudtrail"), exports);
22
+ __exportStar(require("./cloudwatch"), exports);
23
+ __exportStar(require("./codebuild"), exports);
24
+ __exportStar(require("./constants"), exports);
25
+ __exportStar(require("./dynamodb"), exports);
26
+ __exportStar(require("./elastic-container-registry"), exports);
27
+ __exportStar(require("./elastic-container-service"), exports);
28
+ __exportStar(require("./elastic-file-system"), exports);
29
+ __exportStar(require("./elastic-kubernetes-service"), exports);
30
+ __exportStar(require("./elasticache"), exports);
31
+ __exportStar(require("./eventbridge"), exports);
32
+ __exportStar(require("./evidently"), exports);
33
+ __exportStar(require("./identity-access-management"), exports);
34
+ __exportStar(require("./key-management-service"), exports);
35
+ __exportStar(require("./lambda"), exports);
36
+ __exportStar(require("./route53"), exports);
37
+ __exportStar(require("./secrets-manager"), exports);
38
+ __exportStar(require("./simple-notification-service"), exports);
39
+ __exportStar(require("./simple-queue-service"), exports);
40
+ __exportStar(require("./simple-storage-service"), exports);
41
+ __exportStar(require("./step-function"), exports);
42
+ __exportStar(require("./systems-manager"), exports);
43
+ __exportStar(require("./virtual-private-cloud"), exports);
44
+ __exportStar(require("./web-application-firewall"), exports);