@gradientedge/cdk-utils 4.4.0 → 4.4.4

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 (402) hide show
  1. package/README.md +2 -6
  2. package/api-docs/AcmManager.html +8 -5
  3. package/api-docs/AcmProps.html +7 -4
  4. package/api-docs/AlarmProps.html +7 -4
  5. package/api-docs/AlarmStatusWidgetProps.html +7 -4
  6. package/api-docs/ApiDestinationEvent.html +7 -4
  7. package/api-docs/ApiDestinationEventType.html +7 -4
  8. package/api-docs/ApiDestinedLambda.html +7 -4
  9. package/api-docs/ApiDestinedLambdaEnvironment.html +7 -4
  10. package/api-docs/ApiDestinedLambdaType.html +8 -5
  11. package/api-docs/ApiDestinedRestApi.html +7 -4
  12. package/api-docs/ApiDestinedRestApiType.html +8 -5
  13. package/api-docs/ApiManager.html +9 -6
  14. package/api-docs/ApiToEventBridgeTarget.html +22 -19
  15. package/api-docs/ApiToEventBridgeTarget.jpg +0 -0
  16. package/api-docs/ApiToEventBridgeTargetEventProps.html +7 -4
  17. package/api-docs/ApiToEventBridgeTargetLambdaProps.html +7 -4
  18. package/api-docs/ApiToEventBridgeTargetProps.html +7 -4
  19. package/api-docs/ApiToEventBridgeTargetRestApiProps.html +238 -0
  20. package/api-docs/AppConfigManager.html +11 -8
  21. package/api-docs/AppConfigProps.html +6 -3
  22. package/api-docs/CloudFrontManager.html +13 -10
  23. package/api-docs/CloudFrontProps.html +7 -4
  24. package/api-docs/CloudTrailManager.html +8 -5
  25. package/api-docs/CloudTrailProps.html +7 -4
  26. package/api-docs/CloudWatchManager.html +20 -17
  27. package/api-docs/CloudfrontFunctionProps.html +7 -4
  28. package/api-docs/CodeBuildManager.html +9 -6
  29. package/api-docs/CommonConstruct.html +17 -14
  30. package/api-docs/CommonStack.html +11 -8
  31. package/api-docs/CommonStackProps.html +7 -4
  32. package/api-docs/DashboardProps.html +7 -4
  33. package/api-docs/DistributionProps.html +7 -4
  34. package/api-docs/DynamodbManager.html +8 -5
  35. package/api-docs/EcrManager.html +8 -5
  36. package/api-docs/EcsClusterProps.html +7 -4
  37. package/api-docs/EcsManager.html +9 -6
  38. package/api-docs/EcsTaskProps.html +7 -4
  39. package/api-docs/EksClusterProps.html +7 -4
  40. package/api-docs/EksManager.html +8 -5
  41. package/api-docs/EventBusProps.html +7 -4
  42. package/api-docs/EventManager.html +11 -8
  43. package/api-docs/EventRuleProps.html +7 -4
  44. package/api-docs/GraphQLApiLambda.html +20 -17
  45. package/api-docs/GraphQlApiLambdaEnvironment.html +7 -4
  46. package/api-docs/GraphQlApiLambdaProps.html +7 -4
  47. package/api-docs/GraphWidgetProps.html +7 -4
  48. package/api-docs/HealthCheck.html +7 -4
  49. package/api-docs/IamManager.html +30 -27
  50. package/api-docs/LambdaEdgeProps.html +7 -4
  51. package/api-docs/LambdaEnvironment.html +7 -4
  52. package/api-docs/LambdaManager.html +12 -9
  53. package/api-docs/LambdaProps.html +7 -4
  54. package/api-docs/LifecycleRule.html +238 -0
  55. package/api-docs/LogManager.html +10 -7
  56. package/api-docs/LogProps.html +7 -4
  57. package/api-docs/LogQueryWidgetProps.html +7 -4
  58. package/api-docs/MetricFilterProps.html +7 -4
  59. package/api-docs/MetricProps.html +7 -4
  60. package/api-docs/NumericWidgetProps.html +7 -4
  61. package/api-docs/Route53Manager.html +12 -9
  62. package/api-docs/Route53Props.html +7 -4
  63. package/api-docs/RuleProps.html +7 -4
  64. package/api-docs/S3BucketProps.html +7 -4
  65. package/api-docs/S3Manager.html +13 -10
  66. package/api-docs/SSMParameterReader.html +8 -5
  67. package/api-docs/SSMParameterReaderProps.html +7 -4
  68. package/api-docs/SecretsManager.html +12 -9
  69. package/api-docs/SiteWithEcsBackend.html +27 -24
  70. package/api-docs/SiteWithEcsBackendProps.html +7 -4
  71. package/api-docs/SnsManager.html +9 -6
  72. package/api-docs/SsmManager.html +10 -7
  73. package/api-docs/StaticSite.html +17 -14
  74. package/api-docs/StaticSiteProps.html +7 -4
  75. package/api-docs/SubscriptionProps.html +7 -4
  76. package/api-docs/TableProps.html +7 -4
  77. package/api-docs/TextWidgetProps.html +7 -4
  78. package/api-docs/VpcManager.html +64 -8
  79. package/api-docs/WafIPSetProps.html +7 -4
  80. package/api-docs/WafManager.html +9 -6
  81. package/api-docs/WafWebACLProps.html +7 -4
  82. package/api-docs/common_construct.ts.html +8 -4
  83. package/api-docs/common_stack.ts.html +8 -4
  84. package/api-docs/construct_api-to-eventbridge-target_api-destination-event.ts.html +8 -4
  85. package/api-docs/construct_api-to-eventbridge-target_api-destined-lambda.ts.html +8 -4
  86. package/api-docs/construct_api-to-eventbridge-target_api-destined-rest-api.ts.html +8 -4
  87. package/api-docs/construct_api-to-eventbridge-target_main.ts.html +8 -4
  88. package/api-docs/construct_graphql-api-lambda_main.ts.html +8 -4
  89. package/api-docs/construct_site-with-ecs-backend_main.ts.html +9 -5
  90. package/api-docs/construct_static-site_main.ts.html +8 -4
  91. package/api-docs/global.html +16 -13
  92. package/api-docs/index.html +8 -7
  93. package/api-docs/logo.png +0 -0
  94. package/api-docs/manager_aws_acm-manager.ts.html +8 -4
  95. package/api-docs/manager_aws_api-manager.ts.html +8 -4
  96. package/api-docs/manager_aws_app-config-manager.ts.html +10 -5
  97. package/api-docs/manager_aws_cloudfront-manager.ts.html +8 -4
  98. package/api-docs/manager_aws_cloudtrail-manager.ts.html +8 -4
  99. package/api-docs/manager_aws_cloudwatch-manager.ts.html +10 -5
  100. package/api-docs/manager_aws_codebuild-manager.ts.html +8 -4
  101. package/api-docs/manager_aws_dynamodb-manager.ts.html +8 -4
  102. package/api-docs/manager_aws_ecr-manager.ts.html +8 -4
  103. package/api-docs/manager_aws_ecs-manager.ts.html +8 -4
  104. package/api-docs/manager_aws_eks-manager.ts.html +8 -4
  105. package/api-docs/manager_aws_event-manager.ts.html +8 -4
  106. package/api-docs/manager_aws_iam-manager.ts.html +8 -4
  107. package/api-docs/manager_aws_lambda-manager.ts.html +8 -4
  108. package/api-docs/manager_aws_log-manager.ts.html +8 -4
  109. package/api-docs/manager_aws_route53-manager.ts.html +8 -4
  110. package/api-docs/manager_aws_s3-manager.ts.html +8 -4
  111. package/api-docs/manager_aws_secrets-manager.ts.html +8 -4
  112. package/api-docs/manager_aws_sns-manager.ts.html +8 -4
  113. package/api-docs/manager_aws_ssm-manager.ts.html +10 -5
  114. package/api-docs/manager_aws_vpc-manager.ts.html +13 -7
  115. package/api-docs/manager_aws_waf-manager.ts.html +8 -4
  116. package/api-docs/styles.css +113 -0
  117. package/api-docs/tutorial-Architecture.html +5 -1
  118. package/api-docs/tutorial-Build.html +5 -1
  119. package/api-docs/tutorial-CI-CD.html +5 -1
  120. package/api-docs/tutorial-Development.html +5 -1
  121. package/api-docs/types_aws_index.ts.html +104 -50
  122. package/api-docs/utils_aws_index.ts.html +7 -4
  123. package/api-docs/utils_index.ts.html +14 -12
  124. package/app/api-destined-function/package.json +0 -1
  125. package/img/ApiToEventBridgeTarget.jpg +0 -0
  126. package/img/logo.png +0 -0
  127. package/lerna.json +6 -0
  128. package/package.json +14 -14
  129. package/src/lib/common/construct.ts +2 -1
  130. package/src/lib/common/stack.ts +2 -1
  131. package/src/lib/construct/api-to-eventbridge-target/api-destination-event.ts +2 -1
  132. package/src/lib/construct/api-to-eventbridge-target/api-destined-lambda.ts +2 -1
  133. package/src/lib/construct/api-to-eventbridge-target/api-destined-rest-api.ts +2 -1
  134. package/src/lib/construct/api-to-eventbridge-target/main.ts +2 -1
  135. package/src/lib/construct/graphql-api-lambda/main.ts +2 -1
  136. package/src/lib/construct/site-with-ecs-backend/main.ts +3 -2
  137. package/src/lib/construct/static-site/main.ts +2 -1
  138. package/src/lib/manager/aws/acm-manager.ts +2 -1
  139. package/src/lib/manager/aws/api-manager.ts +2 -1
  140. package/src/lib/manager/aws/app-config-manager.ts +4 -2
  141. package/src/lib/manager/aws/cloudfront-manager.ts +2 -1
  142. package/src/lib/manager/aws/cloudtrail-manager.ts +2 -1
  143. package/src/lib/manager/aws/cloudwatch-manager.ts +4 -2
  144. package/src/lib/manager/aws/codebuild-manager.ts +2 -1
  145. package/src/lib/manager/aws/dynamodb-manager.ts +2 -1
  146. package/src/lib/manager/aws/ecr-manager.ts +2 -1
  147. package/src/lib/manager/aws/ecs-manager.ts +2 -1
  148. package/src/lib/manager/aws/eks-manager.ts +2 -1
  149. package/src/lib/manager/aws/event-manager.ts +2 -1
  150. package/src/lib/manager/aws/iam-manager.ts +2 -1
  151. package/src/lib/manager/aws/lambda-manager.ts +2 -1
  152. package/src/lib/manager/aws/log-manager.ts +2 -1
  153. package/src/lib/manager/aws/route53-manager.ts +2 -1
  154. package/src/lib/manager/aws/s3-manager.ts +2 -1
  155. package/src/lib/manager/aws/secrets-manager.ts +2 -1
  156. package/src/lib/manager/aws/sns-manager.ts +2 -1
  157. package/src/lib/manager/aws/ssm-manager.ts +4 -2
  158. package/src/lib/manager/aws/vpc-manager.ts +7 -4
  159. package/src/lib/manager/aws/waf-manager.ts +2 -1
  160. package/src/lib/types/aws/index.ts +98 -47
  161. package/src/lib/utils/aws/index.ts +1 -1
  162. package/src/lib/utils/index.ts +8 -9
  163. package/theme/styles.css +113 -0
  164. package/app/api-destined-function/node_modules/uuid/dist/bin/uuid +0 -2
  165. package/app/api-destined-function/node_modules/uuid/dist/esm-browser/index.js +0 -9
  166. package/app/api-destined-function/node_modules/uuid/dist/esm-browser/md5.js +0 -215
  167. package/app/api-destined-function/node_modules/uuid/dist/esm-browser/nil.js +0 -1
  168. package/app/api-destined-function/node_modules/uuid/dist/esm-browser/parse.js +0 -35
  169. package/app/api-destined-function/node_modules/uuid/dist/esm-browser/regex.js +0 -1
  170. package/app/api-destined-function/node_modules/uuid/dist/esm-browser/rng.js +0 -19
  171. package/app/api-destined-function/node_modules/uuid/dist/esm-browser/sha1.js +0 -96
  172. package/app/api-destined-function/node_modules/uuid/dist/esm-browser/stringify.js +0 -30
  173. package/app/api-destined-function/node_modules/uuid/dist/esm-browser/v1.js +0 -95
  174. package/app/api-destined-function/node_modules/uuid/dist/esm-browser/v3.js +0 -4
  175. package/app/api-destined-function/node_modules/uuid/dist/esm-browser/v35.js +0 -64
  176. package/app/api-destined-function/node_modules/uuid/dist/esm-browser/v4.js +0 -24
  177. package/app/api-destined-function/node_modules/uuid/dist/esm-browser/v5.js +0 -4
  178. package/app/api-destined-function/node_modules/uuid/dist/esm-browser/validate.js +0 -7
  179. package/app/api-destined-function/node_modules/uuid/dist/esm-browser/version.js +0 -11
  180. package/app/api-destined-function/node_modules/uuid/dist/esm-node/index.js +0 -9
  181. package/app/api-destined-function/node_modules/uuid/dist/esm-node/md5.js +0 -13
  182. package/app/api-destined-function/node_modules/uuid/dist/esm-node/nil.js +0 -1
  183. package/app/api-destined-function/node_modules/uuid/dist/esm-node/parse.js +0 -35
  184. package/app/api-destined-function/node_modules/uuid/dist/esm-node/regex.js +0 -1
  185. package/app/api-destined-function/node_modules/uuid/dist/esm-node/rng.js +0 -12
  186. package/app/api-destined-function/node_modules/uuid/dist/esm-node/sha1.js +0 -13
  187. package/app/api-destined-function/node_modules/uuid/dist/esm-node/stringify.js +0 -29
  188. package/app/api-destined-function/node_modules/uuid/dist/esm-node/v1.js +0 -95
  189. package/app/api-destined-function/node_modules/uuid/dist/esm-node/v3.js +0 -4
  190. package/app/api-destined-function/node_modules/uuid/dist/esm-node/v35.js +0 -64
  191. package/app/api-destined-function/node_modules/uuid/dist/esm-node/v4.js +0 -24
  192. package/app/api-destined-function/node_modules/uuid/dist/esm-node/v5.js +0 -4
  193. package/app/api-destined-function/node_modules/uuid/dist/esm-node/validate.js +0 -7
  194. package/app/api-destined-function/node_modules/uuid/dist/esm-node/version.js +0 -11
  195. package/app/api-destined-function/node_modules/uuid/dist/index.js +0 -79
  196. package/app/api-destined-function/node_modules/uuid/dist/md5-browser.js +0 -223
  197. package/app/api-destined-function/node_modules/uuid/dist/md5.js +0 -23
  198. package/app/api-destined-function/node_modules/uuid/dist/nil.js +0 -8
  199. package/app/api-destined-function/node_modules/uuid/dist/parse.js +0 -45
  200. package/app/api-destined-function/node_modules/uuid/dist/regex.js +0 -8
  201. package/app/api-destined-function/node_modules/uuid/dist/rng-browser.js +0 -26
  202. package/app/api-destined-function/node_modules/uuid/dist/rng.js +0 -24
  203. package/app/api-destined-function/node_modules/uuid/dist/sha1-browser.js +0 -104
  204. package/app/api-destined-function/node_modules/uuid/dist/sha1.js +0 -23
  205. package/app/api-destined-function/node_modules/uuid/dist/stringify.js +0 -39
  206. package/app/api-destined-function/node_modules/uuid/dist/umd/uuid.min.js +0 -1
  207. package/app/api-destined-function/node_modules/uuid/dist/umd/uuidNIL.min.js +0 -1
  208. package/app/api-destined-function/node_modules/uuid/dist/umd/uuidParse.min.js +0 -1
  209. package/app/api-destined-function/node_modules/uuid/dist/umd/uuidStringify.min.js +0 -1
  210. package/app/api-destined-function/node_modules/uuid/dist/umd/uuidValidate.min.js +0 -1
  211. package/app/api-destined-function/node_modules/uuid/dist/umd/uuidVersion.min.js +0 -1
  212. package/app/api-destined-function/node_modules/uuid/dist/umd/uuidv1.min.js +0 -1
  213. package/app/api-destined-function/node_modules/uuid/dist/umd/uuidv3.min.js +0 -1
  214. package/app/api-destined-function/node_modules/uuid/dist/umd/uuidv4.min.js +0 -1
  215. package/app/api-destined-function/node_modules/uuid/dist/umd/uuidv5.min.js +0 -1
  216. package/app/api-destined-function/node_modules/uuid/dist/uuid-bin.js +0 -85
  217. package/app/api-destined-function/node_modules/uuid/dist/v1.js +0 -107
  218. package/app/api-destined-function/node_modules/uuid/dist/v3.js +0 -16
  219. package/app/api-destined-function/node_modules/uuid/dist/v35.js +0 -78
  220. package/app/api-destined-function/node_modules/uuid/dist/v4.js +0 -37
  221. package/app/api-destined-function/node_modules/uuid/dist/v5.js +0 -16
  222. package/app/api-destined-function/node_modules/uuid/dist/validate.js +0 -17
  223. package/app/api-destined-function/node_modules/uuid/dist/version.js +0 -21
  224. package/dist/app/api-destined-function/src/lib/lambda.d.ts +0 -19
  225. package/dist/app/api-destined-function/src/lib/lambda.d.ts.map +0 -1
  226. package/dist/app/api-destined-function/src/lib/lambda.js +0 -34
  227. package/dist/app/api-destined-function/src/lib/lambda.js.map +0 -1
  228. package/dist/index.d.ts +0 -6
  229. package/dist/index.d.ts.map +0 -1
  230. package/dist/index.js.map +0 -1
  231. package/dist/src/lib/common/construct.d.ts +0 -79
  232. package/dist/src/lib/common/construct.d.ts.map +0 -1
  233. package/dist/src/lib/common/construct.js +0 -133
  234. package/dist/src/lib/common/construct.js.map +0 -1
  235. package/dist/src/lib/common/index.d.ts +0 -3
  236. package/dist/src/lib/common/index.d.ts.map +0 -1
  237. package/dist/src/lib/common/index.js +0 -15
  238. package/dist/src/lib/common/index.js.map +0 -1
  239. package/dist/src/lib/common/stack.d.ts +0 -54
  240. package/dist/src/lib/common/stack.d.ts.map +0 -1
  241. package/dist/src/lib/common/stack.js +0 -147
  242. package/dist/src/lib/common/stack.js.map +0 -1
  243. package/dist/src/lib/construct/api-to-eventbridge-target/api-destination-event.d.ts +0 -16
  244. package/dist/src/lib/construct/api-to-eventbridge-target/api-destination-event.d.ts.map +0 -1
  245. package/dist/src/lib/construct/api-to-eventbridge-target/api-destination-event.js +0 -17
  246. package/dist/src/lib/construct/api-to-eventbridge-target/api-destination-event.js.map +0 -1
  247. package/dist/src/lib/construct/api-to-eventbridge-target/api-destined-lambda.d.ts +0 -19
  248. package/dist/src/lib/construct/api-to-eventbridge-target/api-destined-lambda.d.ts.map +0 -1
  249. package/dist/src/lib/construct/api-to-eventbridge-target/api-destined-lambda.js +0 -19
  250. package/dist/src/lib/construct/api-to-eventbridge-target/api-destined-lambda.js.map +0 -1
  251. package/dist/src/lib/construct/api-to-eventbridge-target/api-destined-rest-api.d.ts +0 -35
  252. package/dist/src/lib/construct/api-to-eventbridge-target/api-destined-rest-api.d.ts.map +0 -1
  253. package/dist/src/lib/construct/api-to-eventbridge-target/api-destined-rest-api.js +0 -29
  254. package/dist/src/lib/construct/api-to-eventbridge-target/api-destined-rest-api.js.map +0 -1
  255. package/dist/src/lib/construct/api-to-eventbridge-target/index.d.ts +0 -5
  256. package/dist/src/lib/construct/api-to-eventbridge-target/index.d.ts.map +0 -1
  257. package/dist/src/lib/construct/api-to-eventbridge-target/index.js +0 -17
  258. package/dist/src/lib/construct/api-to-eventbridge-target/index.js.map +0 -1
  259. package/dist/src/lib/construct/api-to-eventbridge-target/main.d.ts +0 -134
  260. package/dist/src/lib/construct/api-to-eventbridge-target/main.d.ts.map +0 -1
  261. package/dist/src/lib/construct/api-to-eventbridge-target/main.js +0 -487
  262. package/dist/src/lib/construct/api-to-eventbridge-target/main.js.map +0 -1
  263. package/dist/src/lib/construct/graphql-api-lambda/index.d.ts +0 -2
  264. package/dist/src/lib/construct/graphql-api-lambda/index.d.ts.map +0 -1
  265. package/dist/src/lib/construct/graphql-api-lambda/index.js +0 -14
  266. package/dist/src/lib/construct/graphql-api-lambda/index.js.map +0 -1
  267. package/dist/src/lib/construct/graphql-api-lambda/main.d.ts +0 -112
  268. package/dist/src/lib/construct/graphql-api-lambda/main.d.ts.map +0 -1
  269. package/dist/src/lib/construct/graphql-api-lambda/main.js +0 -201
  270. package/dist/src/lib/construct/graphql-api-lambda/main.js.map +0 -1
  271. package/dist/src/lib/construct/index.d.ts +0 -5
  272. package/dist/src/lib/construct/index.d.ts.map +0 -1
  273. package/dist/src/lib/construct/index.js +0 -17
  274. package/dist/src/lib/construct/index.js.map +0 -1
  275. package/dist/src/lib/construct/site-with-ecs-backend/index.d.ts +0 -2
  276. package/dist/src/lib/construct/site-with-ecs-backend/index.d.ts.map +0 -1
  277. package/dist/src/lib/construct/site-with-ecs-backend/index.js +0 -14
  278. package/dist/src/lib/construct/site-with-ecs-backend/index.js.map +0 -1
  279. package/dist/src/lib/construct/site-with-ecs-backend/main.d.ts +0 -167
  280. package/dist/src/lib/construct/site-with-ecs-backend/main.d.ts.map +0 -1
  281. package/dist/src/lib/construct/site-with-ecs-backend/main.js +0 -327
  282. package/dist/src/lib/construct/site-with-ecs-backend/main.js.map +0 -1
  283. package/dist/src/lib/construct/static-site/index.d.ts +0 -2
  284. package/dist/src/lib/construct/static-site/index.d.ts.map +0 -1
  285. package/dist/src/lib/construct/static-site/index.js +0 -14
  286. package/dist/src/lib/construct/static-site/index.js.map +0 -1
  287. package/dist/src/lib/construct/static-site/main.d.ts +0 -94
  288. package/dist/src/lib/construct/static-site/main.d.ts.map +0 -1
  289. package/dist/src/lib/construct/static-site/main.js +0 -168
  290. package/dist/src/lib/construct/static-site/main.js.map +0 -1
  291. package/dist/src/lib/manager/aws/acm-manager.d.ts +0 -46
  292. package/dist/src/lib/manager/aws/acm-manager.d.ts.map +0 -1
  293. package/dist/src/lib/manager/aws/acm-manager.js +0 -90
  294. package/dist/src/lib/manager/aws/acm-manager.js.map +0 -1
  295. package/dist/src/lib/manager/aws/api-manager.d.ts +0 -43
  296. package/dist/src/lib/manager/aws/api-manager.d.ts.map +0 -1
  297. package/dist/src/lib/manager/aws/api-manager.js +0 -111
  298. package/dist/src/lib/manager/aws/api-manager.js.map +0 -1
  299. package/dist/src/lib/manager/aws/app-config-manager.d.ts +0 -64
  300. package/dist/src/lib/manager/aws/app-config-manager.d.ts.map +0 -1
  301. package/dist/src/lib/manager/aws/app-config-manager.js +0 -147
  302. package/dist/src/lib/manager/aws/app-config-manager.js.map +0 -1
  303. package/dist/src/lib/manager/aws/cloudfront-manager.d.ts +0 -112
  304. package/dist/src/lib/manager/aws/cloudfront-manager.d.ts.map +0 -1
  305. package/dist/src/lib/manager/aws/cloudfront-manager.js +0 -282
  306. package/dist/src/lib/manager/aws/cloudfront-manager.js.map +0 -1
  307. package/dist/src/lib/manager/aws/cloudtrail-manager.d.ts +0 -48
  308. package/dist/src/lib/manager/aws/cloudtrail-manager.d.ts.map +0 -1
  309. package/dist/src/lib/manager/aws/cloudtrail-manager.js +0 -99
  310. package/dist/src/lib/manager/aws/cloudtrail-manager.js.map +0 -1
  311. package/dist/src/lib/manager/aws/cloudwatch-manager.d.ts +0 -121
  312. package/dist/src/lib/manager/aws/cloudwatch-manager.d.ts.map +0 -1
  313. package/dist/src/lib/manager/aws/cloudwatch-manager.js +0 -351
  314. package/dist/src/lib/manager/aws/cloudwatch-manager.js.map +0 -1
  315. package/dist/src/lib/manager/aws/codebuild-manager.d.ts +0 -40
  316. package/dist/src/lib/manager/aws/codebuild-manager.d.ts.map +0 -1
  317. package/dist/src/lib/manager/aws/codebuild-manager.js +0 -94
  318. package/dist/src/lib/manager/aws/codebuild-manager.js.map +0 -1
  319. package/dist/src/lib/manager/aws/dynamodb-manager.d.ts +0 -32
  320. package/dist/src/lib/manager/aws/dynamodb-manager.d.ts.map +0 -1
  321. package/dist/src/lib/manager/aws/dynamodb-manager.js +0 -79
  322. package/dist/src/lib/manager/aws/dynamodb-manager.js.map +0 -1
  323. package/dist/src/lib/manager/aws/ecr-manager.d.ts +0 -31
  324. package/dist/src/lib/manager/aws/ecr-manager.d.ts.map +0 -1
  325. package/dist/src/lib/manager/aws/ecr-manager.js +0 -60
  326. package/dist/src/lib/manager/aws/ecr-manager.js.map +0 -1
  327. package/dist/src/lib/manager/aws/ecs-manager.d.ts +0 -48
  328. package/dist/src/lib/manager/aws/ecs-manager.d.ts.map +0 -1
  329. package/dist/src/lib/manager/aws/ecs-manager.js +0 -103
  330. package/dist/src/lib/manager/aws/ecs-manager.js.map +0 -1
  331. package/dist/src/lib/manager/aws/eks-manager.d.ts +0 -36
  332. package/dist/src/lib/manager/aws/eks-manager.d.ts.map +0 -1
  333. package/dist/src/lib/manager/aws/eks-manager.js +0 -109
  334. package/dist/src/lib/manager/aws/eks-manager.js.map +0 -1
  335. package/dist/src/lib/manager/aws/event-manager.d.ts +0 -67
  336. package/dist/src/lib/manager/aws/event-manager.d.ts.map +0 -1
  337. package/dist/src/lib/manager/aws/event-manager.js +0 -162
  338. package/dist/src/lib/manager/aws/event-manager.js.map +0 -1
  339. package/dist/src/lib/manager/aws/iam-manager.d.ts +0 -154
  340. package/dist/src/lib/manager/aws/iam-manager.d.ts.map +0 -1
  341. package/dist/src/lib/manager/aws/iam-manager.js +0 -380
  342. package/dist/src/lib/manager/aws/iam-manager.js.map +0 -1
  343. package/dist/src/lib/manager/aws/index.d.ts +0 -23
  344. package/dist/src/lib/manager/aws/index.d.ts.map +0 -1
  345. package/dist/src/lib/manager/aws/index.js +0 -35
  346. package/dist/src/lib/manager/aws/index.js.map +0 -1
  347. package/dist/src/lib/manager/aws/lambda-manager.d.ts +0 -94
  348. package/dist/src/lib/manager/aws/lambda-manager.d.ts.map +0 -1
  349. package/dist/src/lib/manager/aws/lambda-manager.js +0 -196
  350. package/dist/src/lib/manager/aws/lambda-manager.js.map +0 -1
  351. package/dist/src/lib/manager/aws/log-manager.d.ts +0 -51
  352. package/dist/src/lib/manager/aws/log-manager.d.ts.map +0 -1
  353. package/dist/src/lib/manager/aws/log-manager.js +0 -108
  354. package/dist/src/lib/manager/aws/log-manager.js.map +0 -1
  355. package/dist/src/lib/manager/aws/route53-manager.d.ts +0 -68
  356. package/dist/src/lib/manager/aws/route53-manager.d.ts.map +0 -1
  357. package/dist/src/lib/manager/aws/route53-manager.js +0 -158
  358. package/dist/src/lib/manager/aws/route53-manager.js.map +0 -1
  359. package/dist/src/lib/manager/aws/s3-manager.d.ts +0 -73
  360. package/dist/src/lib/manager/aws/s3-manager.d.ts.map +0 -1
  361. package/dist/src/lib/manager/aws/s3-manager.js +0 -202
  362. package/dist/src/lib/manager/aws/s3-manager.js.map +0 -1
  363. package/dist/src/lib/manager/aws/secrets-manager.d.ts +0 -57
  364. package/dist/src/lib/manager/aws/secrets-manager.d.ts.map +0 -1
  365. package/dist/src/lib/manager/aws/secrets-manager.js +0 -116
  366. package/dist/src/lib/manager/aws/secrets-manager.js.map +0 -1
  367. package/dist/src/lib/manager/aws/sns-manager.d.ts +0 -42
  368. package/dist/src/lib/manager/aws/sns-manager.d.ts.map +0 -1
  369. package/dist/src/lib/manager/aws/sns-manager.js +0 -90
  370. package/dist/src/lib/manager/aws/sns-manager.js.map +0 -1
  371. package/dist/src/lib/manager/aws/ssm-manager.d.ts +0 -59
  372. package/dist/src/lib/manager/aws/ssm-manager.d.ts.map +0 -1
  373. package/dist/src/lib/manager/aws/ssm-manager.js +0 -123
  374. package/dist/src/lib/manager/aws/ssm-manager.js.map +0 -1
  375. package/dist/src/lib/manager/aws/vpc-manager.d.ts +0 -44
  376. package/dist/src/lib/manager/aws/vpc-manager.d.ts.map +0 -1
  377. package/dist/src/lib/manager/aws/vpc-manager.js +0 -92
  378. package/dist/src/lib/manager/aws/vpc-manager.js.map +0 -1
  379. package/dist/src/lib/manager/aws/waf-manager.d.ts +0 -39
  380. package/dist/src/lib/manager/aws/waf-manager.d.ts.map +0 -1
  381. package/dist/src/lib/manager/aws/waf-manager.js +0 -89
  382. package/dist/src/lib/manager/aws/waf-manager.js.map +0 -1
  383. package/dist/src/lib/manager/index.d.ts +0 -2
  384. package/dist/src/lib/manager/index.d.ts.map +0 -1
  385. package/dist/src/lib/manager/index.js +0 -14
  386. package/dist/src/lib/manager/index.js.map +0 -1
  387. package/dist/src/lib/types/aws/index.d.ts +0 -429
  388. package/dist/src/lib/types/aws/index.d.ts.map +0 -1
  389. package/dist/src/lib/types/aws/index.js +0 -3
  390. package/dist/src/lib/types/aws/index.js.map +0 -1
  391. package/dist/src/lib/types/index.d.ts +0 -2
  392. package/dist/src/lib/types/index.d.ts.map +0 -1
  393. package/dist/src/lib/types/index.js +0 -14
  394. package/dist/src/lib/types/index.js.map +0 -1
  395. package/dist/src/lib/utils/aws/index.d.ts +0 -16
  396. package/dist/src/lib/utils/aws/index.d.ts.map +0 -1
  397. package/dist/src/lib/utils/aws/index.js +0 -50
  398. package/dist/src/lib/utils/aws/index.js.map +0 -1
  399. package/dist/src/lib/utils/index.d.ts +0 -64
  400. package/dist/src/lib/utils/index.d.ts.map +0 -1
  401. package/dist/src/lib/utils/index.js +0 -86
  402. package/dist/src/lib/utils/index.js.map +0 -1
@@ -1,42 +0,0 @@
1
- import * as lambda from 'aws-cdk-lib/aws-lambda';
2
- import * as sns from 'aws-cdk-lib/aws-sns';
3
- import * as common from '../../common';
4
- import * as types from '../../types';
5
- /**
6
- * @stability stable
7
- * @category Application Integration
8
- * @classdesc Provides operations on AWS Simple Notification Service.
9
- * - A new instance of this class is injected into {@link common.CommonConstruct} constructor.
10
- * - If a custom construct extends {@link common.CommonConstruct}, an instance is available within the context.
11
- * @example
12
- * import * as common from '@gradientedge/cdk-utils'
13
- *
14
- * class CustomConstruct extends common.common.CommonConstruct {
15
- * constructor(parent: cdk.Construct, id: string, props: common.CommonStackProps) {
16
- * super(parent, id, props)
17
- * this.props = props
18
- * this.snsManager.createEmailNotificationService('MySns', 'eu-west-1', ['test@example.com'])
19
- * }
20
- * }
21
- *
22
- * @see [CDK Simple Notification Service Module]{@link https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_sns-readme.html}
23
- */
24
- export declare class SnsManager {
25
- /**
26
- * @summary Method to create an email notification service
27
- * @param {string} id scoped id of the resource
28
- * @param {common.CommonConstruct} scope scope in which this resource is defined
29
- * @param {types.SubscriptionProps} props
30
- * @param {string[]} emails
31
- */
32
- createEmailNotificationService(id: string, scope: common.CommonConstruct, props: types.SubscriptionProps, emails: string[]): sns.Topic;
33
- /**
34
- * @summary Method to create a lambda notification service
35
- * @param {string} id scoped id of the resource
36
- * @param {common.CommonConstruct} scope scope in which this resource is defined
37
- * @param {types.SubscriptionProps} props
38
- * @param {lambda.Function} lambdaFunction
39
- */
40
- createLambdaNotificationService(id: string, scope: common.CommonConstruct, props: types.SubscriptionProps, lambdaFunction: lambda.Function): sns.Topic;
41
- }
42
- //# sourceMappingURL=sns-manager.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"sns-manager.d.ts","sourceRoot":"","sources":["../../../../../src/lib/manager/aws/sns-manager.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,MAAM,wBAAwB,CAAA;AAChD,OAAO,KAAK,GAAG,MAAM,qBAAqB,CAAA;AAE1C,OAAO,KAAK,MAAM,MAAM,cAAc,CAAA;AACtC,OAAO,KAAK,KAAK,MAAM,aAAa,CAAA;AAGpC;;;;;;;;;;;;;;;;;;GAkBG;AACH,qBAAa,UAAU;IACrB;;;;;;OAMG;IACI,8BAA8B,CACnC,EAAE,EAAE,MAAM,EACV,KAAK,EAAE,MAAM,CAAC,eAAe,EAC7B,KAAK,EAAE,KAAK,CAAC,iBAAiB,EAC9B,MAAM,EAAE,MAAM,EAAE;IAoBlB;;;;;;OAMG;IACI,+BAA+B,CACpC,EAAE,EAAE,MAAM,EACV,KAAK,EAAE,MAAM,CAAC,eAAe,EAC7B,KAAK,EAAE,KAAK,CAAC,iBAAiB,EAC9B,cAAc,EAAE,MAAM,CAAC,QAAQ;CAiBlC"}
@@ -1,90 +0,0 @@
1
- "use strict";
2
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
- if (k2 === undefined) k2 = k;
4
- Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
5
- }) : (function(o, m, k, k2) {
6
- if (k2 === undefined) k2 = k;
7
- o[k2] = m[k];
8
- }));
9
- var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
10
- Object.defineProperty(o, "default", { enumerable: true, value: v });
11
- }) : function(o, v) {
12
- o["default"] = v;
13
- });
14
- var __importStar = (this && this.__importStar) || function (mod) {
15
- if (mod && mod.__esModule) return mod;
16
- var result = {};
17
- if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
18
- __setModuleDefault(result, mod);
19
- return result;
20
- };
21
- Object.defineProperty(exports, "__esModule", { value: true });
22
- exports.SnsManager = void 0;
23
- const sns = __importStar(require("aws-cdk-lib/aws-sns"));
24
- const subs = __importStar(require("aws-cdk-lib/aws-sns-subscriptions"));
25
- const utils = __importStar(require("../../utils"));
26
- /**
27
- * @stability stable
28
- * @category Application Integration
29
- * @classdesc Provides operations on AWS Simple Notification Service.
30
- * - A new instance of this class is injected into {@link common.CommonConstruct} constructor.
31
- * - If a custom construct extends {@link common.CommonConstruct}, an instance is available within the context.
32
- * @example
33
- * import * as common from '@gradientedge/cdk-utils'
34
- *
35
- * class CustomConstruct extends common.common.CommonConstruct {
36
- * constructor(parent: cdk.Construct, id: string, props: common.CommonStackProps) {
37
- * super(parent, id, props)
38
- * this.props = props
39
- * this.snsManager.createEmailNotificationService('MySns', 'eu-west-1', ['test@example.com'])
40
- * }
41
- * }
42
- *
43
- * @see [CDK Simple Notification Service Module]{@link https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_sns-readme.html}
44
- */
45
- class SnsManager {
46
- /**
47
- * @summary Method to create an email notification service
48
- * @param {string} id scoped id of the resource
49
- * @param {common.CommonConstruct} scope scope in which this resource is defined
50
- * @param {types.SubscriptionProps} props
51
- * @param {string[]} emails
52
- */
53
- createEmailNotificationService(id, scope, props, emails) {
54
- if (!props)
55
- throw `Subscription props undefined`;
56
- const topic = new sns.Topic(scope, id, {
57
- displayName: `${props.topicName}-${scope.props.stage}`,
58
- topicName: `${props.topicName}-${scope.props.stage}`,
59
- fifo: props.fifo,
60
- });
61
- if (emails && emails.length > 0) {
62
- emails.forEach((email) => topic.addSubscription(new subs.EmailSubscription(email)));
63
- }
64
- utils.createCfnOutput(`${id}-subscriptionArn`, scope, topic.topicArn);
65
- utils.createCfnOutput(`${id}-subscriptionName`, scope, topic.topicName);
66
- return topic;
67
- }
68
- /**
69
- * @summary Method to create a lambda notification service
70
- * @param {string} id scoped id of the resource
71
- * @param {common.CommonConstruct} scope scope in which this resource is defined
72
- * @param {types.SubscriptionProps} props
73
- * @param {lambda.Function} lambdaFunction
74
- */
75
- createLambdaNotificationService(id, scope, props, lambdaFunction) {
76
- if (!props)
77
- throw `Subscription props undefined`;
78
- const topic = new sns.Topic(scope, id, {
79
- displayName: `${props.topicName}-${scope.props.stage}`,
80
- topicName: `${props.topicName}-${scope.props.stage}`,
81
- fifo: props.fifo,
82
- });
83
- topic.addSubscription(new subs.LambdaSubscription(lambdaFunction));
84
- utils.createCfnOutput(`${id}-subscriptionArn`, scope, topic.topicArn);
85
- utils.createCfnOutput(`${id}-subscriptionName`, scope, topic.topicName);
86
- return topic;
87
- }
88
- }
89
- exports.SnsManager = SnsManager;
90
- //# sourceMappingURL=sns-manager.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"sns-manager.js","sourceRoot":"","sources":["../../../../../src/lib/manager/aws/sns-manager.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;AACA,yDAA0C;AAC1C,wEAAyD;AAGzD,mDAAoC;AAEpC;;;;;;;;;;;;;;;;;;GAkBG;AACH,MAAa,UAAU;IACrB;;;;;;OAMG;IACI,8BAA8B,CACnC,EAAU,EACV,KAA6B,EAC7B,KAA8B,EAC9B,MAAgB;QAEhB,IAAI,CAAC,KAAK;YAAE,MAAM,8BAA8B,CAAA;QAEhD,MAAM,KAAK,GAAG,IAAI,GAAG,CAAC,KAAK,CAAC,KAAK,EAAE,EAAE,EAAE;YACrC,WAAW,EAAE,GAAG,KAAK,CAAC,SAAS,IAAI,KAAK,CAAC,KAAK,CAAC,KAAK,EAAE;YACtD,SAAS,EAAE,GAAG,KAAK,CAAC,SAAS,IAAI,KAAK,CAAC,KAAK,CAAC,KAAK,EAAE;YACpD,IAAI,EAAE,KAAK,CAAC,IAAI;SACjB,CAAC,CAAA;QAEF,IAAI,MAAM,IAAI,MAAM,CAAC,MAAM,GAAG,CAAC,EAAE;YAC/B,MAAM,CAAC,OAAO,CAAC,CAAC,KAAa,EAAE,EAAE,CAAC,KAAK,CAAC,eAAe,CAAC,IAAI,IAAI,CAAC,iBAAiB,CAAC,KAAK,CAAC,CAAC,CAAC,CAAA;SAC5F;QAED,KAAK,CAAC,eAAe,CAAC,GAAG,EAAE,kBAAkB,EAAE,KAAK,EAAE,KAAK,CAAC,QAAQ,CAAC,CAAA;QACrE,KAAK,CAAC,eAAe,CAAC,GAAG,EAAE,mBAAmB,EAAE,KAAK,EAAE,KAAK,CAAC,SAAS,CAAC,CAAA;QAEvE,OAAO,KAAK,CAAA;IACd,CAAC;IAED;;;;;;OAMG;IACI,+BAA+B,CACpC,EAAU,EACV,KAA6B,EAC7B,KAA8B,EAC9B,cAA+B;QAE/B,IAAI,CAAC,KAAK;YAAE,MAAM,8BAA8B,CAAA;QAEhD,MAAM,KAAK,GAAG,IAAI,GAAG,CAAC,KAAK,CAAC,KAAK,EAAE,EAAE,EAAE;YACrC,WAAW,EAAE,GAAG,KAAK,CAAC,SAAS,IAAI,KAAK,CAAC,KAAK,CAAC,KAAK,EAAE;YACtD,SAAS,EAAE,GAAG,KAAK,CAAC,SAAS,IAAI,KAAK,CAAC,KAAK,CAAC,KAAK,EAAE;YACpD,IAAI,EAAE,KAAK,CAAC,IAAI;SACjB,CAAC,CAAA;QAEF,KAAK,CAAC,eAAe,CAAC,IAAI,IAAI,CAAC,kBAAkB,CAAC,cAAc,CAAC,CAAC,CAAA;QAElE,KAAK,CAAC,eAAe,CAAC,GAAG,EAAE,kBAAkB,EAAE,KAAK,EAAE,KAAK,CAAC,QAAQ,CAAC,CAAA;QACrE,KAAK,CAAC,eAAe,CAAC,GAAG,EAAE,mBAAmB,EAAE,KAAK,EAAE,KAAK,CAAC,SAAS,CAAC,CAAA;QAEvE,OAAO,KAAK,CAAA;IACd,CAAC;CACF;AA5DD,gCA4DC"}
@@ -1,59 +0,0 @@
1
- import * as ssm from 'aws-cdk-lib/aws-ssm';
2
- import * as cr from 'aws-cdk-lib/custom-resources';
3
- import * as common from '../../common';
4
- import * as types from '../../types';
5
- /**
6
- * @stability stable
7
- * @category Management & Governance
8
- * @classdesc Provides operations on AWS Systems Manager.
9
- * - A new instance of this class is injected into {@link common.CommonConstruct} constructor.
10
- * - If a custom construct extends {@link common.CommonConstruct}, an instance is available within the context.
11
- * @example
12
- * import { common.CommonConstruct } from '@gradientedge/cdk-utils'
13
- *
14
- * class CustomConstruct extends common.CommonConstruct {
15
- * constructor(parent: cdk.Construct, id: string, props: common.CommonStackProps) {
16
- * super(parent, id, props)
17
- * this.props = props
18
- * this.acmManager.writeStringToParameters('MyParameter', this, ...props)
19
- * }
20
- * }
21
- *
22
- * @see [CDK Systems Manager Module]{@link https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_ssm-readme.html}
23
- */
24
- export declare class SsmManager {
25
- /**
26
- * Method to write a string parameter to the parameters store
27
- * @param {string} id scoped id of the resource
28
- * @param {common.CommonConstruct} scope scope in which this resource is defined
29
- * @param {ssm.StringParameterProps} props parameter props
30
- */
31
- writeStringToParameters(id: string, scope: common.CommonConstruct, props: ssm.StringParameterProps): ssm.StringParameter;
32
- /**
33
- * Method to read a string parameter from the parameters store
34
- * @param {string} id scoped id of the resource
35
- * @param {common.CommonConstruct} scope scope in which this resource is defined
36
- * @param {string} parameterName parameter name to lookup
37
- */
38
- readStringParameter(id: string, scope: common.CommonConstruct, parameterName: string): string;
39
- /**
40
- * Method to read a string parameter from the parameters store in a given region
41
- * @param {string} id scoped id of the resource
42
- * @param {common.CommonConstruct} scope scope in which this resource is defined
43
- * @param {string} parameterName parameter name to lookup
44
- * @param {string} region region name to lookup parameter
45
- */
46
- readStringParameterFromRegion(id: string, scope: common.CommonConstruct, parameterName: string, region: string): string;
47
- }
48
- /**
49
- * @category Management & Governance
50
- * @classdesc Provides utilities to read same/cross region SSM parameters
51
- */
52
- export declare class SSMParameterReader extends cr.AwsCustomResource {
53
- constructor(scope: common.CommonConstruct, name: string, props: types.SSMParameterReaderProps);
54
- /**
55
- *
56
- */
57
- getParameterValue(): string;
58
- }
59
- //# sourceMappingURL=ssm-manager.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"ssm-manager.d.ts","sourceRoot":"","sources":["../../../../../src/lib/manager/aws/ssm-manager.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,GAAG,MAAM,qBAAqB,CAAA;AAC1C,OAAO,KAAK,EAAE,MAAM,8BAA8B,CAAA;AAClD,OAAO,KAAK,MAAM,MAAM,cAAc,CAAA;AACtC,OAAO,KAAK,KAAK,MAAM,aAAa,CAAA;AAGpC;;;;;;;;;;;;;;;;;;GAkBG;AACH,qBAAa,UAAU;IACrB;;;;;OAKG;IACI,uBAAuB,CAAC,EAAE,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,CAAC,eAAe,EAAE,KAAK,EAAE,GAAG,CAAC,oBAAoB;IAezG;;;;;OAKG;IACI,mBAAmB,CAAC,EAAE,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,CAAC,eAAe,EAAE,aAAa,EAAE,MAAM;IAM3F;;;;;;OAMG;IACI,6BAA6B,CAClC,EAAE,EAAE,MAAM,EACV,KAAK,EAAE,MAAM,CAAC,eAAe,EAC7B,aAAa,EAAE,MAAM,EACrB,MAAM,EAAE,MAAM;CAUjB;AAED;;;GAGG;AACH,qBAAa,kBAAmB,SAAQ,EAAE,CAAC,iBAAiB;gBAC9C,KAAK,EAAE,MAAM,CAAC,eAAe,EAAE,IAAI,EAAE,MAAM,EAAE,KAAK,EAAE,KAAK,CAAC,uBAAuB;IAmB7F;;OAEG;IACI,iBAAiB,IAAI,MAAM;CAGnC"}
@@ -1,123 +0,0 @@
1
- "use strict";
2
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
- if (k2 === undefined) k2 = k;
4
- Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
5
- }) : (function(o, m, k, k2) {
6
- if (k2 === undefined) k2 = k;
7
- o[k2] = m[k];
8
- }));
9
- var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
10
- Object.defineProperty(o, "default", { enumerable: true, value: v });
11
- }) : function(o, v) {
12
- o["default"] = v;
13
- });
14
- var __importStar = (this && this.__importStar) || function (mod) {
15
- if (mod && mod.__esModule) return mod;
16
- var result = {};
17
- if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
18
- __setModuleDefault(result, mod);
19
- return result;
20
- };
21
- Object.defineProperty(exports, "__esModule", { value: true });
22
- exports.SSMParameterReader = exports.SsmManager = void 0;
23
- const ssm = __importStar(require("aws-cdk-lib/aws-ssm"));
24
- const cr = __importStar(require("aws-cdk-lib/custom-resources"));
25
- const utils = __importStar(require("../../utils"));
26
- /**
27
- * @stability stable
28
- * @category Management & Governance
29
- * @classdesc Provides operations on AWS Systems Manager.
30
- * - A new instance of this class is injected into {@link common.CommonConstruct} constructor.
31
- * - If a custom construct extends {@link common.CommonConstruct}, an instance is available within the context.
32
- * @example
33
- * import { common.CommonConstruct } from '@gradientedge/cdk-utils'
34
- *
35
- * class CustomConstruct extends common.CommonConstruct {
36
- * constructor(parent: cdk.Construct, id: string, props: common.CommonStackProps) {
37
- * super(parent, id, props)
38
- * this.props = props
39
- * this.acmManager.writeStringToParameters('MyParameter', this, ...props)
40
- * }
41
- * }
42
- *
43
- * @see [CDK Systems Manager Module]{@link https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_ssm-readme.html}
44
- */
45
- class SsmManager {
46
- /**
47
- * Method to write a string parameter to the parameters store
48
- * @param {string} id scoped id of the resource
49
- * @param {common.CommonConstruct} scope scope in which this resource is defined
50
- * @param {ssm.StringParameterProps} props parameter props
51
- */
52
- writeStringToParameters(id, scope, props) {
53
- if (!props)
54
- throw `Parameter props undefined`;
55
- const parameter = new ssm.StringParameter(scope, `${id}`, {
56
- parameterName: `${props.parameterName}-${scope.props.stage}`,
57
- description: `${props.description} - ${scope.props.stage} stage`,
58
- stringValue: props.stringValue,
59
- });
60
- utils.createCfnOutput(`${id}-parameterArn`, scope, parameter.parameterArn);
61
- utils.createCfnOutput(`${id}-parameterName`, scope, parameter.parameterName);
62
- return parameter;
63
- }
64
- /**
65
- * Method to read a string parameter from the parameters store
66
- * @param {string} id scoped id of the resource
67
- * @param {common.CommonConstruct} scope scope in which this resource is defined
68
- * @param {string} parameterName parameter name to lookup
69
- */
70
- readStringParameter(id, scope, parameterName) {
71
- if (!parameterName || parameterName == '')
72
- throw 'Invalid parameter name';
73
- return ssm.StringParameter.fromStringParameterName(scope, `${id}`, parameterName).stringValue;
74
- }
75
- /**
76
- * Method to read a string parameter from the parameters store in a given region
77
- * @param {string} id scoped id of the resource
78
- * @param {common.CommonConstruct} scope scope in which this resource is defined
79
- * @param {string} parameterName parameter name to lookup
80
- * @param {string} region region name to lookup parameter
81
- */
82
- readStringParameterFromRegion(id, scope, parameterName, region) {
83
- if (!parameterName || parameterName == '')
84
- throw 'Invalid parameter name';
85
- if (!region || region == '')
86
- throw 'Invalid region';
87
- return new SSMParameterReader(scope, `${id}`, {
88
- parameterName: parameterName,
89
- region: region,
90
- }).getParameterValue();
91
- }
92
- }
93
- exports.SsmManager = SsmManager;
94
- /**
95
- * @category Management & Governance
96
- * @classdesc Provides utilities to read same/cross region SSM parameters
97
- */
98
- class SSMParameterReader extends cr.AwsCustomResource {
99
- constructor(scope, name, props) {
100
- const { parameterName, region } = props;
101
- const ssmAwsSdkCall = {
102
- service: 'SSM',
103
- action: 'getParameter',
104
- parameters: {
105
- Name: `${parameterName}-${scope.props.stage}`,
106
- },
107
- region,
108
- physicalResourceId: cr.PhysicalResourceId.of(Date.now().toString()),
109
- };
110
- super(scope, name, {
111
- onUpdate: ssmAwsSdkCall,
112
- policy: cr.AwsCustomResourcePolicy.fromSdkCalls({ resources: cr.AwsCustomResourcePolicy.ANY_RESOURCE }),
113
- });
114
- }
115
- /**
116
- *
117
- */
118
- getParameterValue() {
119
- return this.getResponseField('Parameter.Value');
120
- }
121
- }
122
- exports.SSMParameterReader = SSMParameterReader;
123
- //# sourceMappingURL=ssm-manager.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"ssm-manager.js","sourceRoot":"","sources":["../../../../../src/lib/manager/aws/ssm-manager.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;AAAA,yDAA0C;AAC1C,iEAAkD;AAGlD,mDAAoC;AAEpC;;;;;;;;;;;;;;;;;;GAkBG;AACH,MAAa,UAAU;IACrB;;;;;OAKG;IACI,uBAAuB,CAAC,EAAU,EAAE,KAA6B,EAAE,KAA+B;QACvG,IAAI,CAAC,KAAK;YAAE,MAAM,2BAA2B,CAAA;QAE7C,MAAM,SAAS,GAAG,IAAI,GAAG,CAAC,eAAe,CAAC,KAAK,EAAE,GAAG,EAAE,EAAE,EAAE;YACxD,aAAa,EAAE,GAAG,KAAK,CAAC,aAAa,IAAI,KAAK,CAAC,KAAK,CAAC,KAAK,EAAE;YAC5D,WAAW,EAAE,GAAG,KAAK,CAAC,WAAW,MAAM,KAAK,CAAC,KAAK,CAAC,KAAK,QAAQ;YAChE,WAAW,EAAE,KAAK,CAAC,WAAW;SAC/B,CAAC,CAAA;QAEF,KAAK,CAAC,eAAe,CAAC,GAAG,EAAE,eAAe,EAAE,KAAK,EAAE,SAAS,CAAC,YAAY,CAAC,CAAA;QAC1E,KAAK,CAAC,eAAe,CAAC,GAAG,EAAE,gBAAgB,EAAE,KAAK,EAAE,SAAS,CAAC,aAAa,CAAC,CAAA;QAE5E,OAAO,SAAS,CAAA;IAClB,CAAC;IAED;;;;;OAKG;IACI,mBAAmB,CAAC,EAAU,EAAE,KAA6B,EAAE,aAAqB;QACzF,IAAI,CAAC,aAAa,IAAI,aAAa,IAAI,EAAE;YAAE,MAAM,wBAAwB,CAAA;QAEzE,OAAO,GAAG,CAAC,eAAe,CAAC,uBAAuB,CAAC,KAAK,EAAE,GAAG,EAAE,EAAE,EAAE,aAAa,CAAC,CAAC,WAAW,CAAA;IAC/F,CAAC;IAED;;;;;;OAMG;IACI,6BAA6B,CAClC,EAAU,EACV,KAA6B,EAC7B,aAAqB,EACrB,MAAc;QAEd,IAAI,CAAC,aAAa,IAAI,aAAa,IAAI,EAAE;YAAE,MAAM,wBAAwB,CAAA;QACzE,IAAI,CAAC,MAAM,IAAI,MAAM,IAAI,EAAE;YAAE,MAAM,gBAAgB,CAAA;QAEnD,OAAO,IAAI,kBAAkB,CAAC,KAAK,EAAE,GAAG,EAAE,EAAE,EAAE;YAC5C,aAAa,EAAE,aAAa;YAC5B,MAAM,EAAE,MAAM;SACf,CAAC,CAAC,iBAAiB,EAAE,CAAA;IACxB,CAAC;CACF;AAvDD,gCAuDC;AAED;;;GAGG;AACH,MAAa,kBAAmB,SAAQ,EAAE,CAAC,iBAAiB;IAC1D,YAAY,KAA6B,EAAE,IAAY,EAAE,KAAoC;QAC3F,MAAM,EAAE,aAAa,EAAE,MAAM,EAAE,GAAG,KAAK,CAAA;QAEvC,MAAM,aAAa,GAAkB;YACnC,OAAO,EAAE,KAAK;YACd,MAAM,EAAE,cAAc;YACtB,UAAU,EAAE;gBACV,IAAI,EAAE,GAAG,aAAa,IAAI,KAAK,CAAC,KAAK,CAAC,KAAK,EAAE;aAC9C;YACD,MAAM;YACN,kBAAkB,EAAE,EAAE,CAAC,kBAAkB,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG,EAAE,CAAC,QAAQ,EAAE,CAAC;SACpE,CAAA;QAED,KAAK,CAAC,KAAK,EAAE,IAAI,EAAE;YACjB,QAAQ,EAAE,aAAa;YACvB,MAAM,EAAE,EAAE,CAAC,uBAAuB,CAAC,YAAY,CAAC,EAAE,SAAS,EAAE,EAAE,CAAC,uBAAuB,CAAC,YAAY,EAAE,CAAC;SACxG,CAAC,CAAA;IACJ,CAAC;IAED;;OAEG;IACI,iBAAiB;QACtB,OAAO,IAAI,CAAC,gBAAgB,CAAC,iBAAiB,CAAC,CAAA;IACjD,CAAC;CACF;AA1BD,gDA0BC"}
@@ -1,44 +0,0 @@
1
- import * as cdk from 'aws-cdk-lib';
2
- import * as ec2 from 'aws-cdk-lib/aws-ec2';
3
- import * as common from '../../common';
4
- /**
5
- * @category Networking & Content Delivery
6
- * @classdesc Provides operations on AWS VPC.
7
- * - A new instance of this class is injected into {@link common.CommonConstruct} constructor.
8
- * - If a custom construct extends {@link common.CommonConstruct}, an instance is available within the context.
9
- * @example
10
- * import * as common from '@gradientedge/cdk-utils'
11
- *
12
- * class CustomConstruct extends common.common.CommonConstruct {
13
- * constructor(parent: cdk.Construct, id: string, props: common.CommonStackProps) {
14
- * super(parent, id, props)
15
- * this.props = props
16
- * this.vpcManager.createVpc('MyVPC', this)
17
- * }
18
- * }
19
- *
20
- * @see [CDK VPC Module]{@link https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.@aws-cdk_aws-ec2.Vpc.html}
21
- */
22
- export declare class VpcManager {
23
- /**
24
- * @summary Method to create a new vpc
25
- * @param {string} id scoped id of the resource
26
- * @param {common.CommonConstruct} scope scope in which this resource is defined
27
- * @param {ec2.VpcProps} props
28
- */
29
- createVpc(id: string, scope: common.CommonConstruct, props: ec2.VpcProps): cdk.aws_ec2.Vpc;
30
- /**
31
- * @summary Method to create a common vpc
32
- * @param {common.CommonConstruct} scope scope in which this resource is defined
33
- * @param {ec2.VpcProps} props
34
- * @param {string?} vpcIdentifier optional identifier for VPC
35
- */
36
- createCommonVpc(scope: common.CommonConstruct, props: ec2.VpcProps, vpcIdentifier?: string): cdk.aws_ec2.Vpc;
37
- /**
38
- * @summary Method to retrieve a common vpc
39
- * @param {string} id scoped id of the resource
40
- * @param {common.CommonConstruct} scope scope in which this resource is defined
41
- */
42
- retrieveCommonVpc(id: string, scope: common.CommonConstruct): cdk.aws_ec2.IVpc;
43
- }
44
- //# sourceMappingURL=vpc-manager.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"vpc-manager.d.ts","sourceRoot":"","sources":["../../../../../src/lib/manager/aws/vpc-manager.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,GAAG,MAAM,aAAa,CAAA;AAClC,OAAO,KAAK,GAAG,MAAM,qBAAqB,CAAA;AAC1C,OAAO,KAAK,MAAM,MAAM,cAAc,CAAA;AAStC;;;;;;;;;;;;;;;;;GAiBG;AACH,qBAAa,UAAU;IACrB;;;;;OAKG;IACI,SAAS,CAAC,EAAE,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,CAAC,eAAe,EAAE,KAAK,EAAE,GAAG,CAAC,QAAQ;IAyB/E;;;;;OAKG;IACI,eAAe,CAAC,KAAK,EAAE,MAAM,CAAC,eAAe,EAAE,KAAK,EAAE,GAAG,CAAC,QAAQ,EAAE,aAAa,CAAC,EAAE,MAAM;IAOjG;;;;OAIG;IACI,iBAAiB,CAAC,EAAE,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,CAAC,eAAe;CAGnE"}
@@ -1,92 +0,0 @@
1
- "use strict";
2
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
- if (k2 === undefined) k2 = k;
4
- Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
5
- }) : (function(o, m, k, k2) {
6
- if (k2 === undefined) k2 = k;
7
- o[k2] = m[k];
8
- }));
9
- var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
10
- Object.defineProperty(o, "default", { enumerable: true, value: v });
11
- }) : function(o, v) {
12
- o["default"] = v;
13
- });
14
- var __importStar = (this && this.__importStar) || function (mod) {
15
- if (mod && mod.__esModule) return mod;
16
- var result = {};
17
- if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
18
- __setModuleDefault(result, mod);
19
- return result;
20
- };
21
- Object.defineProperty(exports, "__esModule", { value: true });
22
- exports.VpcManager = void 0;
23
- const cdk = __importStar(require("aws-cdk-lib"));
24
- const ec2 = __importStar(require("aws-cdk-lib/aws-ec2"));
25
- const utils = __importStar(require("../../utils"));
26
- /**
27
- * @stability stable
28
- * @category Utils
29
- */
30
- const CommonVpcIdentifier = 'CommonVpc';
31
- /**
32
- * @category Networking & Content Delivery
33
- * @classdesc Provides operations on AWS VPC.
34
- * - A new instance of this class is injected into {@link common.CommonConstruct} constructor.
35
- * - If a custom construct extends {@link common.CommonConstruct}, an instance is available within the context.
36
- * @example
37
- * import * as common from '@gradientedge/cdk-utils'
38
- *
39
- * class CustomConstruct extends common.common.CommonConstruct {
40
- * constructor(parent: cdk.Construct, id: string, props: common.CommonStackProps) {
41
- * super(parent, id, props)
42
- * this.props = props
43
- * this.vpcManager.createVpc('MyVPC', this)
44
- * }
45
- * }
46
- *
47
- * @see [CDK VPC Module]{@link https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.@aws-cdk_aws-ec2.Vpc.html}
48
- */
49
- class VpcManager {
50
- /**
51
- * @summary Method to create a new vpc
52
- * @param {string} id scoped id of the resource
53
- * @param {common.CommonConstruct} scope scope in which this resource is defined
54
- * @param {ec2.VpcProps} props
55
- */
56
- createVpc(id, scope, props) {
57
- if (!props)
58
- throw 'Vpc props undefined';
59
- const vpc = new ec2.Vpc(scope, `${id}`, {
60
- maxAzs: props.maxAzs,
61
- cidr: props.cidr,
62
- });
63
- utils.createCfnOutput(`${id}Id`, scope, vpc.vpcId);
64
- utils.createCfnOutput(`${id}PublicSubnetIds`, scope, vpc.publicSubnets.map(subnet => subnet.subnetId).toString());
65
- utils.createCfnOutput(`${id}PrivateSubnetIds`, scope, vpc.privateSubnets.map(subnet => subnet.subnetId).toString());
66
- utils.createCfnOutput(`${id}PublicSubnetRouteTableIds`, scope, vpc.publicSubnets.map(subnet => subnet.routeTable.routeTableId).toString());
67
- utils.createCfnOutput(`${id}PrivateSubnetRouteTableIds`, scope, vpc.privateSubnets.map(subnet => subnet.routeTable.routeTableId).toString());
68
- utils.createCfnOutput(`${id}AvailabilityZones`, scope, vpc.availabilityZones.toString());
69
- return vpc;
70
- }
71
- /**
72
- * @summary Method to create a common vpc
73
- * @param {common.CommonConstruct} scope scope in which this resource is defined
74
- * @param {ec2.VpcProps} props
75
- * @param {string?} vpcIdentifier optional identifier for VPC
76
- */
77
- createCommonVpc(scope, props, vpcIdentifier) {
78
- const vpc = this.createVpc(CommonVpcIdentifier, scope, props);
79
- cdk.Tags.of(vpc).add('Name', vpcIdentifier ?? CommonVpcIdentifier);
80
- return vpc;
81
- }
82
- /**
83
- * @summary Method to retrieve a common vpc
84
- * @param {string} id scoped id of the resource
85
- * @param {common.CommonConstruct} scope scope in which this resource is defined
86
- */
87
- retrieveCommonVpc(id, scope) {
88
- return ec2.Vpc.fromLookup(scope, `${id}`, { vpcName: CommonVpcIdentifier });
89
- }
90
- }
91
- exports.VpcManager = VpcManager;
92
- //# sourceMappingURL=vpc-manager.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"vpc-manager.js","sourceRoot":"","sources":["../../../../../src/lib/manager/aws/vpc-manager.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;AAAA,iDAAkC;AAClC,yDAA0C;AAE1C,mDAAoC;AAEpC;;;GAGG;AACH,MAAM,mBAAmB,GAAG,WAAW,CAAA;AAEvC;;;;;;;;;;;;;;;;;GAiBG;AACH,MAAa,UAAU;IACrB;;;;;OAKG;IACI,SAAS,CAAC,EAAU,EAAE,KAA6B,EAAE,KAAmB;QAC7E,IAAI,CAAC,KAAK;YAAE,MAAM,qBAAqB,CAAA;QACvC,MAAM,GAAG,GAAG,IAAI,GAAG,CAAC,GAAG,CAAC,KAAK,EAAE,GAAG,EAAE,EAAE,EAAE;YACtC,MAAM,EAAE,KAAK,CAAC,MAAM;YACpB,IAAI,EAAE,KAAK,CAAC,IAAI;SACjB,CAAC,CAAA;QAEF,KAAK,CAAC,eAAe,CAAC,GAAG,EAAE,IAAI,EAAE,KAAK,EAAE,GAAG,CAAC,KAAK,CAAC,CAAA;QAClD,KAAK,CAAC,eAAe,CAAC,GAAG,EAAE,iBAAiB,EAAE,KAAK,EAAE,GAAG,CAAC,aAAa,CAAC,GAAG,CAAC,MAAM,CAAC,EAAE,CAAC,MAAM,CAAC,QAAQ,CAAC,CAAC,QAAQ,EAAE,CAAC,CAAA;QACjH,KAAK,CAAC,eAAe,CAAC,GAAG,EAAE,kBAAkB,EAAE,KAAK,EAAE,GAAG,CAAC,cAAc,CAAC,GAAG,CAAC,MAAM,CAAC,EAAE,CAAC,MAAM,CAAC,QAAQ,CAAC,CAAC,QAAQ,EAAE,CAAC,CAAA;QACnH,KAAK,CAAC,eAAe,CACnB,GAAG,EAAE,2BAA2B,EAChC,KAAK,EACL,GAAG,CAAC,aAAa,CAAC,GAAG,CAAC,MAAM,CAAC,EAAE,CAAC,MAAM,CAAC,UAAU,CAAC,YAAY,CAAC,CAAC,QAAQ,EAAE,CAC3E,CAAA;QACD,KAAK,CAAC,eAAe,CACnB,GAAG,EAAE,4BAA4B,EACjC,KAAK,EACL,GAAG,CAAC,cAAc,CAAC,GAAG,CAAC,MAAM,CAAC,EAAE,CAAC,MAAM,CAAC,UAAU,CAAC,YAAY,CAAC,CAAC,QAAQ,EAAE,CAC5E,CAAA;QACD,KAAK,CAAC,eAAe,CAAC,GAAG,EAAE,mBAAmB,EAAE,KAAK,EAAE,GAAG,CAAC,iBAAiB,CAAC,QAAQ,EAAE,CAAC,CAAA;QAExF,OAAO,GAAG,CAAA;IACZ,CAAC;IAED;;;;;OAKG;IACI,eAAe,CAAC,KAA6B,EAAE,KAAmB,EAAE,aAAsB;QAC/F,MAAM,GAAG,GAAG,IAAI,CAAC,SAAS,CAAC,mBAAmB,EAAE,KAAK,EAAE,KAAK,CAAC,CAAA;QAC7D,GAAG,CAAC,IAAI,CAAC,EAAE,CAAC,GAAG,CAAC,CAAC,GAAG,CAAC,MAAM,EAAE,aAAa,IAAI,mBAAmB,CAAC,CAAA;QAElE,OAAO,GAAG,CAAA;IACZ,CAAC;IAED;;;;OAIG;IACI,iBAAiB,CAAC,EAAU,EAAE,KAA6B;QAChE,OAAO,GAAG,CAAC,GAAG,CAAC,UAAU,CAAC,KAAK,EAAE,GAAG,EAAE,EAAE,EAAE,EAAE,OAAO,EAAE,mBAAmB,EAAE,CAAC,CAAA;IAC7E,CAAC;CACF;AArDD,gCAqDC"}
@@ -1,39 +0,0 @@
1
- import * as wafv2 from 'aws-cdk-lib/aws-wafv2';
2
- import * as common from '../../common';
3
- import * as types from '../../types';
4
- /**
5
- * @stability stable
6
- * @category Security, Identity & Compliance
7
- * @classdesc Provides operations on AWS WAF.
8
- * - A new instance of this class is injected into {@link common.CommonConstruct} constructor.
9
- * - If a custom construct extends {@link common.CommonConstruct}, an instance is available within the context.
10
- * @example
11
- * import * as common from '@gradientedge/cdk-utils'
12
- *
13
- * class CustomConstruct extends common.common.CommonConstruct {
14
- * constructor(parent: cdk.Construct, id: string, props: common.CommonStackProps) {
15
- * super(parent, id, props)
16
- * this.props = props
17
- * this.wafManager.createWebAcl('MyWebAcl', this)
18
- * }
19
- * }
20
- *
21
- * @see [CDK WAF Module]{@link https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_waf-readme.html}
22
- */
23
- export declare class WafManager {
24
- /**
25
- * @summary Method to create an ip set
26
- * @param {string} id scoped id of the resource
27
- * @param {common.CommonConstruct} scope scope in which this resource is defined
28
- * @param {types.WafIPSetProps} props
29
- */
30
- createIpSet(id: string, scope: common.CommonConstruct, props: types.WafIPSetProps): wafv2.CfnIPSet;
31
- /**
32
- * @summary Method to create a web acl
33
- * @param {string} id scoped id of the resource
34
- * @param {common.CommonConstruct} scope scope in which this resource is defined
35
- * @param {types.WafWebACLProps} props
36
- */
37
- createWebAcl(id: string, scope: common.CommonConstruct, props: types.WafWebACLProps): wafv2.CfnWebACL;
38
- }
39
- //# sourceMappingURL=waf-manager.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"waf-manager.d.ts","sourceRoot":"","sources":["../../../../../src/lib/manager/aws/waf-manager.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,uBAAuB,CAAA;AAC9C,OAAO,KAAK,MAAM,MAAM,cAAc,CAAA;AACtC,OAAO,KAAK,KAAK,MAAM,aAAa,CAAA;AAGpC;;;;;;;;;;;;;;;;;;GAkBG;AACH,qBAAa,UAAU;IACrB;;;;;OAKG;IACI,WAAW,CAAC,EAAE,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,CAAC,eAAe,EAAE,KAAK,EAAE,KAAK,CAAC,aAAa;IAiBxF;;;;;OAKG;IACI,YAAY,CAAC,EAAE,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,CAAC,eAAe,EAAE,KAAK,EAAE,KAAK,CAAC,cAAc;CAkB3F"}
@@ -1,89 +0,0 @@
1
- "use strict";
2
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
- if (k2 === undefined) k2 = k;
4
- Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
5
- }) : (function(o, m, k, k2) {
6
- if (k2 === undefined) k2 = k;
7
- o[k2] = m[k];
8
- }));
9
- var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
10
- Object.defineProperty(o, "default", { enumerable: true, value: v });
11
- }) : function(o, v) {
12
- o["default"] = v;
13
- });
14
- var __importStar = (this && this.__importStar) || function (mod) {
15
- if (mod && mod.__esModule) return mod;
16
- var result = {};
17
- if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
18
- __setModuleDefault(result, mod);
19
- return result;
20
- };
21
- Object.defineProperty(exports, "__esModule", { value: true });
22
- exports.WafManager = void 0;
23
- const wafv2 = __importStar(require("aws-cdk-lib/aws-wafv2"));
24
- const utils = __importStar(require("../../utils"));
25
- /**
26
- * @stability stable
27
- * @category Security, Identity & Compliance
28
- * @classdesc Provides operations on AWS WAF.
29
- * - A new instance of this class is injected into {@link common.CommonConstruct} constructor.
30
- * - If a custom construct extends {@link common.CommonConstruct}, an instance is available within the context.
31
- * @example
32
- * import * as common from '@gradientedge/cdk-utils'
33
- *
34
- * class CustomConstruct extends common.common.CommonConstruct {
35
- * constructor(parent: cdk.Construct, id: string, props: common.CommonStackProps) {
36
- * super(parent, id, props)
37
- * this.props = props
38
- * this.wafManager.createWebAcl('MyWebAcl', this)
39
- * }
40
- * }
41
- *
42
- * @see [CDK WAF Module]{@link https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_waf-readme.html}
43
- */
44
- class WafManager {
45
- /**
46
- * @summary Method to create an ip set
47
- * @param {string} id scoped id of the resource
48
- * @param {common.CommonConstruct} scope scope in which this resource is defined
49
- * @param {types.WafIPSetProps} props
50
- */
51
- createIpSet(id, scope, props) {
52
- if (!props)
53
- throw `WAF Ip Set props undefined`;
54
- const ipSet = new wafv2.CfnIPSet(scope, `${id}`, {
55
- name: scope.isProductionStage() ? props.name : `${props.name}-${scope.props.stage}`,
56
- description: `IP Set for ${id} - ${scope.props.stage} stage`,
57
- addresses: props.addresses,
58
- ipAddressVersion: props.ipAddressVersion,
59
- scope: props.scope,
60
- });
61
- utils.createCfnOutput(`${id}-ipSetId`, scope, ipSet.attrId);
62
- utils.createCfnOutput(`${id}-ipSetArn`, scope, ipSet.attrArn);
63
- return ipSet;
64
- }
65
- /**
66
- * @summary Method to create a web acl
67
- * @param {string} id scoped id of the resource
68
- * @param {common.CommonConstruct} scope scope in which this resource is defined
69
- * @param {types.WafWebACLProps} props
70
- */
71
- createWebAcl(id, scope, props) {
72
- if (!props)
73
- throw `WAF WebACL props undefined`;
74
- const webAcl = new wafv2.CfnWebACL(scope, `${id}`, {
75
- name: scope.isProductionStage() ? props.name : `${props.name}-${scope.props.stage}`,
76
- description: `Web Acl for ${id} - ${scope.props.stage} stage`,
77
- defaultAction: props.defaultAction,
78
- scope: props.scope,
79
- visibilityConfig: props.visibilityConfig,
80
- rules: props.rules,
81
- tags: [{ key: 'service', value: scope.props.name }],
82
- });
83
- utils.createCfnOutput(`${id}-webAclId`, scope, webAcl.attrId);
84
- utils.createCfnOutput(`${id}-webAclArn`, scope, webAcl.attrArn);
85
- return webAcl;
86
- }
87
- }
88
- exports.WafManager = WafManager;
89
- //# sourceMappingURL=waf-manager.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"waf-manager.js","sourceRoot":"","sources":["../../../../../src/lib/manager/aws/waf-manager.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;AAAA,6DAA8C;AAG9C,mDAAoC;AAEpC;;;;;;;;;;;;;;;;;;GAkBG;AACH,MAAa,UAAU;IACrB;;;;;OAKG;IACI,WAAW,CAAC,EAAU,EAAE,KAA6B,EAAE,KAA0B;QACtF,IAAI,CAAC,KAAK;YAAE,MAAM,4BAA4B,CAAA;QAE9C,MAAM,KAAK,GAAG,IAAI,KAAK,CAAC,QAAQ,CAAC,KAAK,EAAE,GAAG,EAAE,EAAE,EAAE;YAC/C,IAAI,EAAE,KAAK,CAAC,iBAAiB,EAAE,CAAC,CAAC,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC,CAAC,GAAG,KAAK,CAAC,IAAI,IAAI,KAAK,CAAC,KAAK,CAAC,KAAK,EAAE;YACnF,WAAW,EAAE,cAAc,EAAE,MAAM,KAAK,CAAC,KAAK,CAAC,KAAK,QAAQ;YAC5D,SAAS,EAAE,KAAK,CAAC,SAAS;YAC1B,gBAAgB,EAAE,KAAK,CAAC,gBAAgB;YACxC,KAAK,EAAE,KAAK,CAAC,KAAK;SACnB,CAAC,CAAA;QAEF,KAAK,CAAC,eAAe,CAAC,GAAG,EAAE,UAAU,EAAE,KAAK,EAAE,KAAK,CAAC,MAAM,CAAC,CAAA;QAC3D,KAAK,CAAC,eAAe,CAAC,GAAG,EAAE,WAAW,EAAE,KAAK,EAAE,KAAK,CAAC,OAAO,CAAC,CAAA;QAE7D,OAAO,KAAK,CAAA;IACd,CAAC;IAED;;;;;OAKG;IACI,YAAY,CAAC,EAAU,EAAE,KAA6B,EAAE,KAA2B;QACxF,IAAI,CAAC,KAAK;YAAE,MAAM,4BAA4B,CAAA;QAE9C,MAAM,MAAM,GAAG,IAAI,KAAK,CAAC,SAAS,CAAC,KAAK,EAAE,GAAG,EAAE,EAAE,EAAE;YACjD,IAAI,EAAE,KAAK,CAAC,iBAAiB,EAAE,CAAC,CAAC,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC,CAAC,GAAG,KAAK,CAAC,IAAI,IAAI,KAAK,CAAC,KAAK,CAAC,KAAK,EAAE;YACnF,WAAW,EAAE,eAAe,EAAE,MAAM,KAAK,CAAC,KAAK,CAAC,KAAK,QAAQ;YAC7D,aAAa,EAAE,KAAK,CAAC,aAAa;YAClC,KAAK,EAAE,KAAK,CAAC,KAAK;YAClB,gBAAgB,EAAE,KAAK,CAAC,gBAAgB;YACxC,KAAK,EAAE,KAAK,CAAC,KAAK;YAClB,IAAI,EAAE,CAAC,EAAE,GAAG,EAAE,SAAS,EAAE,KAAK,EAAE,KAAK,CAAC,KAAK,CAAC,IAAI,EAAE,CAAC;SACpD,CAAC,CAAA;QAEF,KAAK,CAAC,eAAe,CAAC,GAAG,EAAE,WAAW,EAAE,KAAK,EAAE,MAAM,CAAC,MAAM,CAAC,CAAA;QAC7D,KAAK,CAAC,eAAe,CAAC,GAAG,EAAE,YAAY,EAAE,KAAK,EAAE,MAAM,CAAC,OAAO,CAAC,CAAA;QAE/D,OAAO,MAAM,CAAA;IACf,CAAC;CACF;AAhDD,gCAgDC"}
@@ -1,2 +0,0 @@
1
- export * from './aws';
2
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/lib/manager/index.ts"],"names":[],"mappings":"AAAA,cAAc,OAAO,CAAA"}
@@ -1,14 +0,0 @@
1
- "use strict";
2
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
- if (k2 === undefined) k2 = k;
4
- Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
5
- }) : (function(o, m, k, k2) {
6
- if (k2 === undefined) k2 = k;
7
- o[k2] = m[k];
8
- }));
9
- var __exportStar = (this && this.__exportStar) || function(m, exports) {
10
- for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
11
- };
12
- Object.defineProperty(exports, "__esModule", { value: true });
13
- __exportStar(require("./aws"), exports);
14
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/lib/manager/index.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,wCAAqB"}