@gradientedge/cdk-utils 4.4.2 → 4.4.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (449) hide show
  1. package/app/api-destined-function/package.json +1 -2
  2. package/lerna.json +6 -0
  3. package/package.json +7 -8
  4. package/api-docs/AcmManager.html +0 -622
  5. package/api-docs/AcmProps.html +0 -238
  6. package/api-docs/AlarmProps.html +0 -238
  7. package/api-docs/AlarmStatusWidgetProps.html +0 -238
  8. package/api-docs/ApiDestinationEvent.html +0 -297
  9. package/api-docs/ApiDestinationEventType.html +0 -238
  10. package/api-docs/ApiDestinedLambda.html +0 -297
  11. package/api-docs/ApiDestinedLambdaEnvironment.html +0 -238
  12. package/api-docs/ApiDestinedLambdaType.html +0 -238
  13. package/api-docs/ApiDestinedRestApi.html +0 -297
  14. package/api-docs/ApiDestinedRestApiType.html +0 -238
  15. package/api-docs/ApiManager.html +0 -766
  16. package/api-docs/ApiToEventBridgeTarget.html +0 -1877
  17. package/api-docs/ApiToEventBridgeTarget.jpg +0 -0
  18. package/api-docs/ApiToEventBridgeTargetEventProps.html +0 -238
  19. package/api-docs/ApiToEventBridgeTargetLambdaProps.html +0 -238
  20. package/api-docs/ApiToEventBridgeTargetProps.html +0 -238
  21. package/api-docs/ApiToEventBridgeTargetRestApiProps.html +0 -238
  22. package/api-docs/AppConfigManager.html +0 -1203
  23. package/api-docs/AppConfigProps.html +0 -238
  24. package/api-docs/CloudFrontManager.html +0 -2402
  25. package/api-docs/CloudFrontProps.html +0 -238
  26. package/api-docs/CloudTrailManager.html +0 -637
  27. package/api-docs/CloudTrailProps.html +0 -238
  28. package/api-docs/CloudWatchManager.html +0 -2986
  29. package/api-docs/CloudfrontFunctionProps.html +0 -238
  30. package/api-docs/CodeBuildManager.html +0 -736
  31. package/api-docs/CommonConstruct.html +0 -1299
  32. package/api-docs/CommonStack.html +0 -813
  33. package/api-docs/CommonStackProps.html +0 -238
  34. package/api-docs/DashboardProps.html +0 -238
  35. package/api-docs/DistributionProps.html +0 -238
  36. package/api-docs/DynamodbManager.html +0 -530
  37. package/api-docs/EcrManager.html +0 -530
  38. package/api-docs/EcsClusterProps.html +0 -238
  39. package/api-docs/EcsManager.html +0 -880
  40. package/api-docs/EcsTaskProps.html +0 -238
  41. package/api-docs/EksClusterProps.html +0 -238
  42. package/api-docs/EksManager.html +0 -580
  43. package/api-docs/EventBusProps.html +0 -238
  44. package/api-docs/EventManager.html +0 -1454
  45. package/api-docs/EventRuleProps.html +0 -238
  46. package/api-docs/GraphQLApiLambda.html +0 -1671
  47. package/api-docs/GraphQLApiLambda.jpg +0 -0
  48. package/api-docs/GraphQlApiLambdaEnvironment.html +0 -238
  49. package/api-docs/GraphQlApiLambdaProps.html +0 -238
  50. package/api-docs/GraphWidgetProps.html +0 -238
  51. package/api-docs/HealthCheck.html +0 -238
  52. package/api-docs/IamManager.html +0 -3821
  53. package/api-docs/LambdaEdgeProps.html +0 -238
  54. package/api-docs/LambdaEnvironment.html +0 -238
  55. package/api-docs/LambdaManager.html +0 -2378
  56. package/api-docs/LambdaProps.html +0 -238
  57. package/api-docs/LifecycleRule.html +0 -238
  58. package/api-docs/LogManager.html +0 -955
  59. package/api-docs/LogProps.html +0 -238
  60. package/api-docs/LogQueryWidgetProps.html +0 -238
  61. package/api-docs/MetricFilterProps.html +0 -238
  62. package/api-docs/MetricProps.html +0 -238
  63. package/api-docs/NumericWidgetProps.html +0 -238
  64. package/api-docs/Route53Manager.html +0 -1460
  65. package/api-docs/Route53Props.html +0 -238
  66. package/api-docs/RuleProps.html +0 -238
  67. package/api-docs/S3BucketProps.html +0 -238
  68. package/api-docs/S3Manager.html +0 -1546
  69. package/api-docs/SSMParameterReader.html +0 -431
  70. package/api-docs/SSMParameterReaderProps.html +0 -238
  71. package/api-docs/SecretsManager.html +0 -1140
  72. package/api-docs/SiteWithEcsBackend.html +0 -2391
  73. package/api-docs/SiteWithEcsBackendProps.html +0 -238
  74. package/api-docs/SnsManager.html +0 -780
  75. package/api-docs/SsmManager.html +0 -955
  76. package/api-docs/StaticSite.html +0 -1358
  77. package/api-docs/StaticSiteProps.html +0 -238
  78. package/api-docs/SubscriptionProps.html +0 -238
  79. package/api-docs/TableProps.html +0 -238
  80. package/api-docs/TextWidgetProps.html +0 -238
  81. package/api-docs/VpcManager.html +0 -986
  82. package/api-docs/WafIPSetProps.html +0 -238
  83. package/api-docs/WafManager.html +0 -730
  84. package/api-docs/WafWebACLProps.html +0 -238
  85. package/api-docs/common_construct.ts.html +0 -279
  86. package/api-docs/common_stack.ts.html +0 -303
  87. package/api-docs/construct_api-to-eventbridge-target_api-destination-event.ts.html +0 -175
  88. package/api-docs/construct_api-to-eventbridge-target_api-destined-lambda.ts.html +0 -178
  89. package/api-docs/construct_api-to-eventbridge-target_api-destined-rest-api.ts.html +0 -190
  90. package/api-docs/construct_api-to-eventbridge-target_main.ts.html +0 -751
  91. package/api-docs/construct_graphql-api-lambda_main.ts.html +0 -408
  92. package/api-docs/construct_site-with-ecs-backend_main.ts.html +0 -544
  93. package/api-docs/construct_static-site_main.ts.html +0 -374
  94. package/api-docs/global.html +0 -1530
  95. package/api-docs/index.html +0 -208
  96. package/api-docs/logo.png +0 -0
  97. package/api-docs/manager_aws_acm-manager.ts.html +0 -236
  98. package/api-docs/manager_aws_api-manager.ts.html +0 -260
  99. package/api-docs/manager_aws_app-config-manager.ts.html +0 -310
  100. package/api-docs/manager_aws_cloudfront-manager.ts.html +0 -491
  101. package/api-docs/manager_aws_cloudtrail-manager.ts.html +0 -251
  102. package/api-docs/manager_aws_cloudwatch-manager.ts.html +0 -553
  103. package/api-docs/manager_aws_codebuild-manager.ts.html +0 -240
  104. package/api-docs/manager_aws_dynamodb-manager.ts.html +0 -219
  105. package/api-docs/manager_aws_ecr-manager.ts.html +0 -199
  106. package/api-docs/manager_aws_ecs-manager.ts.html +0 -259
  107. package/api-docs/manager_aws_eks-manager.ts.html +0 -260
  108. package/api-docs/manager_aws_event-manager.ts.html +0 -336
  109. package/api-docs/manager_aws_iam-manager.ts.html +0 -573
  110. package/api-docs/manager_aws_lambda-manager.ts.html +0 -400
  111. package/api-docs/manager_aws_log-manager.ts.html +0 -259
  112. package/api-docs/manager_aws_route53-manager.ts.html +0 -333
  113. package/api-docs/manager_aws_s3-manager.ts.html +0 -361
  114. package/api-docs/manager_aws_secrets-manager.ts.html +0 -274
  115. package/api-docs/manager_aws_sns-manager.ts.html +0 -246
  116. package/api-docs/manager_aws_ssm-manager.ts.html +0 -273
  117. package/api-docs/manager_aws_vpc-manager.ts.html +0 -244
  118. package/api-docs/manager_aws_waf-manager.ts.html +0 -232
  119. package/api-docs/scripts/app.min.js +0 -1
  120. package/api-docs/scripts/linenumber.js +0 -26
  121. package/api-docs/scripts/search.js +0 -39
  122. package/api-docs/styles/app.min.css +0 -1
  123. package/api-docs/styles/iframe.css +0 -13
  124. package/api-docs/styles/prettify-jsdoc.css +0 -111
  125. package/api-docs/styles/prettify-tomorrow.css +0 -132
  126. package/api-docs/styles/reset.css +0 -44
  127. package/api-docs/styles.css +0 -113
  128. package/api-docs/tutorial-Architecture.html +0 -151
  129. package/api-docs/tutorial-Build.html +0 -150
  130. package/api-docs/tutorial-CI-CD.html +0 -154
  131. package/api-docs/tutorial-Development.html +0 -227
  132. package/api-docs/types_aws_index.ts.html +0 -665
  133. package/api-docs/utils_aws_index.ts.html +0 -192
  134. package/api-docs/utils_index.ts.html +0 -227
  135. package/app/api-destined-function/node_modules/uuid/dist/bin/uuid +0 -2
  136. package/app/api-destined-function/node_modules/uuid/dist/esm-browser/index.js +0 -9
  137. package/app/api-destined-function/node_modules/uuid/dist/esm-browser/md5.js +0 -215
  138. package/app/api-destined-function/node_modules/uuid/dist/esm-browser/nil.js +0 -1
  139. package/app/api-destined-function/node_modules/uuid/dist/esm-browser/parse.js +0 -35
  140. package/app/api-destined-function/node_modules/uuid/dist/esm-browser/regex.js +0 -1
  141. package/app/api-destined-function/node_modules/uuid/dist/esm-browser/rng.js +0 -19
  142. package/app/api-destined-function/node_modules/uuid/dist/esm-browser/sha1.js +0 -96
  143. package/app/api-destined-function/node_modules/uuid/dist/esm-browser/stringify.js +0 -30
  144. package/app/api-destined-function/node_modules/uuid/dist/esm-browser/v1.js +0 -95
  145. package/app/api-destined-function/node_modules/uuid/dist/esm-browser/v3.js +0 -4
  146. package/app/api-destined-function/node_modules/uuid/dist/esm-browser/v35.js +0 -64
  147. package/app/api-destined-function/node_modules/uuid/dist/esm-browser/v4.js +0 -24
  148. package/app/api-destined-function/node_modules/uuid/dist/esm-browser/v5.js +0 -4
  149. package/app/api-destined-function/node_modules/uuid/dist/esm-browser/validate.js +0 -7
  150. package/app/api-destined-function/node_modules/uuid/dist/esm-browser/version.js +0 -11
  151. package/app/api-destined-function/node_modules/uuid/dist/esm-node/index.js +0 -9
  152. package/app/api-destined-function/node_modules/uuid/dist/esm-node/md5.js +0 -13
  153. package/app/api-destined-function/node_modules/uuid/dist/esm-node/nil.js +0 -1
  154. package/app/api-destined-function/node_modules/uuid/dist/esm-node/parse.js +0 -35
  155. package/app/api-destined-function/node_modules/uuid/dist/esm-node/regex.js +0 -1
  156. package/app/api-destined-function/node_modules/uuid/dist/esm-node/rng.js +0 -12
  157. package/app/api-destined-function/node_modules/uuid/dist/esm-node/sha1.js +0 -13
  158. package/app/api-destined-function/node_modules/uuid/dist/esm-node/stringify.js +0 -29
  159. package/app/api-destined-function/node_modules/uuid/dist/esm-node/v1.js +0 -95
  160. package/app/api-destined-function/node_modules/uuid/dist/esm-node/v3.js +0 -4
  161. package/app/api-destined-function/node_modules/uuid/dist/esm-node/v35.js +0 -64
  162. package/app/api-destined-function/node_modules/uuid/dist/esm-node/v4.js +0 -24
  163. package/app/api-destined-function/node_modules/uuid/dist/esm-node/v5.js +0 -4
  164. package/app/api-destined-function/node_modules/uuid/dist/esm-node/validate.js +0 -7
  165. package/app/api-destined-function/node_modules/uuid/dist/esm-node/version.js +0 -11
  166. package/app/api-destined-function/node_modules/uuid/dist/index.js +0 -79
  167. package/app/api-destined-function/node_modules/uuid/dist/md5-browser.js +0 -223
  168. package/app/api-destined-function/node_modules/uuid/dist/md5.js +0 -23
  169. package/app/api-destined-function/node_modules/uuid/dist/nil.js +0 -8
  170. package/app/api-destined-function/node_modules/uuid/dist/parse.js +0 -45
  171. package/app/api-destined-function/node_modules/uuid/dist/regex.js +0 -8
  172. package/app/api-destined-function/node_modules/uuid/dist/rng-browser.js +0 -26
  173. package/app/api-destined-function/node_modules/uuid/dist/rng.js +0 -24
  174. package/app/api-destined-function/node_modules/uuid/dist/sha1-browser.js +0 -104
  175. package/app/api-destined-function/node_modules/uuid/dist/sha1.js +0 -23
  176. package/app/api-destined-function/node_modules/uuid/dist/stringify.js +0 -39
  177. package/app/api-destined-function/node_modules/uuid/dist/umd/uuid.min.js +0 -1
  178. package/app/api-destined-function/node_modules/uuid/dist/umd/uuidNIL.min.js +0 -1
  179. package/app/api-destined-function/node_modules/uuid/dist/umd/uuidParse.min.js +0 -1
  180. package/app/api-destined-function/node_modules/uuid/dist/umd/uuidStringify.min.js +0 -1
  181. package/app/api-destined-function/node_modules/uuid/dist/umd/uuidValidate.min.js +0 -1
  182. package/app/api-destined-function/node_modules/uuid/dist/umd/uuidVersion.min.js +0 -1
  183. package/app/api-destined-function/node_modules/uuid/dist/umd/uuidv1.min.js +0 -1
  184. package/app/api-destined-function/node_modules/uuid/dist/umd/uuidv3.min.js +0 -1
  185. package/app/api-destined-function/node_modules/uuid/dist/umd/uuidv4.min.js +0 -1
  186. package/app/api-destined-function/node_modules/uuid/dist/umd/uuidv5.min.js +0 -1
  187. package/app/api-destined-function/node_modules/uuid/dist/uuid-bin.js +0 -85
  188. package/app/api-destined-function/node_modules/uuid/dist/v1.js +0 -107
  189. package/app/api-destined-function/node_modules/uuid/dist/v3.js +0 -16
  190. package/app/api-destined-function/node_modules/uuid/dist/v35.js +0 -78
  191. package/app/api-destined-function/node_modules/uuid/dist/v4.js +0 -37
  192. package/app/api-destined-function/node_modules/uuid/dist/v5.js +0 -16
  193. package/app/api-destined-function/node_modules/uuid/dist/validate.js +0 -17
  194. package/app/api-destined-function/node_modules/uuid/dist/version.js +0 -21
  195. package/dist/app/api-destined-function/layers/nodejs/node_modules/.bin/uuid +0 -2
  196. package/dist/app/api-destined-function/layers/nodejs/node_modules/.yarn-integrity +0 -109
  197. package/dist/app/api-destined-function/layers/nodejs/node_modules/@types/uuid/LICENSE +0 -21
  198. package/dist/app/api-destined-function/layers/nodejs/node_modules/@types/uuid/README.md +0 -16
  199. package/dist/app/api-destined-function/layers/nodejs/node_modules/@types/uuid/index.d.mts +0 -10
  200. package/dist/app/api-destined-function/layers/nodejs/node_modules/@types/uuid/index.d.ts +0 -80
  201. package/dist/app/api-destined-function/layers/nodejs/node_modules/@types/uuid/package.json +0 -54
  202. package/dist/app/api-destined-function/layers/nodejs/node_modules/uuid/LICENSE.md +0 -9
  203. package/dist/app/api-destined-function/layers/nodejs/node_modules/uuid/README.md +0 -505
  204. package/dist/app/api-destined-function/layers/nodejs/node_modules/uuid/dist/bin/uuid +0 -2
  205. package/dist/app/api-destined-function/layers/nodejs/node_modules/uuid/dist/esm-browser/index.js +0 -9
  206. package/dist/app/api-destined-function/layers/nodejs/node_modules/uuid/dist/esm-browser/md5.js +0 -215
  207. package/dist/app/api-destined-function/layers/nodejs/node_modules/uuid/dist/esm-browser/nil.js +0 -1
  208. package/dist/app/api-destined-function/layers/nodejs/node_modules/uuid/dist/esm-browser/parse.js +0 -35
  209. package/dist/app/api-destined-function/layers/nodejs/node_modules/uuid/dist/esm-browser/regex.js +0 -1
  210. package/dist/app/api-destined-function/layers/nodejs/node_modules/uuid/dist/esm-browser/rng.js +0 -19
  211. package/dist/app/api-destined-function/layers/nodejs/node_modules/uuid/dist/esm-browser/sha1.js +0 -96
  212. package/dist/app/api-destined-function/layers/nodejs/node_modules/uuid/dist/esm-browser/stringify.js +0 -30
  213. package/dist/app/api-destined-function/layers/nodejs/node_modules/uuid/dist/esm-browser/v1.js +0 -95
  214. package/dist/app/api-destined-function/layers/nodejs/node_modules/uuid/dist/esm-browser/v3.js +0 -4
  215. package/dist/app/api-destined-function/layers/nodejs/node_modules/uuid/dist/esm-browser/v35.js +0 -64
  216. package/dist/app/api-destined-function/layers/nodejs/node_modules/uuid/dist/esm-browser/v4.js +0 -24
  217. package/dist/app/api-destined-function/layers/nodejs/node_modules/uuid/dist/esm-browser/v5.js +0 -4
  218. package/dist/app/api-destined-function/layers/nodejs/node_modules/uuid/dist/esm-browser/validate.js +0 -7
  219. package/dist/app/api-destined-function/layers/nodejs/node_modules/uuid/dist/esm-browser/version.js +0 -11
  220. package/dist/app/api-destined-function/layers/nodejs/node_modules/uuid/dist/esm-node/index.js +0 -9
  221. package/dist/app/api-destined-function/layers/nodejs/node_modules/uuid/dist/esm-node/md5.js +0 -13
  222. package/dist/app/api-destined-function/layers/nodejs/node_modules/uuid/dist/esm-node/nil.js +0 -1
  223. package/dist/app/api-destined-function/layers/nodejs/node_modules/uuid/dist/esm-node/parse.js +0 -35
  224. package/dist/app/api-destined-function/layers/nodejs/node_modules/uuid/dist/esm-node/regex.js +0 -1
  225. package/dist/app/api-destined-function/layers/nodejs/node_modules/uuid/dist/esm-node/rng.js +0 -12
  226. package/dist/app/api-destined-function/layers/nodejs/node_modules/uuid/dist/esm-node/sha1.js +0 -13
  227. package/dist/app/api-destined-function/layers/nodejs/node_modules/uuid/dist/esm-node/stringify.js +0 -29
  228. package/dist/app/api-destined-function/layers/nodejs/node_modules/uuid/dist/esm-node/v1.js +0 -95
  229. package/dist/app/api-destined-function/layers/nodejs/node_modules/uuid/dist/esm-node/v3.js +0 -4
  230. package/dist/app/api-destined-function/layers/nodejs/node_modules/uuid/dist/esm-node/v35.js +0 -64
  231. package/dist/app/api-destined-function/layers/nodejs/node_modules/uuid/dist/esm-node/v4.js +0 -24
  232. package/dist/app/api-destined-function/layers/nodejs/node_modules/uuid/dist/esm-node/v5.js +0 -4
  233. package/dist/app/api-destined-function/layers/nodejs/node_modules/uuid/dist/esm-node/validate.js +0 -7
  234. package/dist/app/api-destined-function/layers/nodejs/node_modules/uuid/dist/esm-node/version.js +0 -11
  235. package/dist/app/api-destined-function/layers/nodejs/node_modules/uuid/dist/index.js +0 -79
  236. package/dist/app/api-destined-function/layers/nodejs/node_modules/uuid/dist/md5-browser.js +0 -223
  237. package/dist/app/api-destined-function/layers/nodejs/node_modules/uuid/dist/md5.js +0 -23
  238. package/dist/app/api-destined-function/layers/nodejs/node_modules/uuid/dist/nil.js +0 -8
  239. package/dist/app/api-destined-function/layers/nodejs/node_modules/uuid/dist/parse.js +0 -45
  240. package/dist/app/api-destined-function/layers/nodejs/node_modules/uuid/dist/regex.js +0 -8
  241. package/dist/app/api-destined-function/layers/nodejs/node_modules/uuid/dist/rng-browser.js +0 -26
  242. package/dist/app/api-destined-function/layers/nodejs/node_modules/uuid/dist/rng.js +0 -24
  243. package/dist/app/api-destined-function/layers/nodejs/node_modules/uuid/dist/sha1-browser.js +0 -104
  244. package/dist/app/api-destined-function/layers/nodejs/node_modules/uuid/dist/sha1.js +0 -23
  245. package/dist/app/api-destined-function/layers/nodejs/node_modules/uuid/dist/stringify.js +0 -39
  246. package/dist/app/api-destined-function/layers/nodejs/node_modules/uuid/dist/umd/uuid.min.js +0 -1
  247. package/dist/app/api-destined-function/layers/nodejs/node_modules/uuid/dist/umd/uuidNIL.min.js +0 -1
  248. package/dist/app/api-destined-function/layers/nodejs/node_modules/uuid/dist/umd/uuidParse.min.js +0 -1
  249. package/dist/app/api-destined-function/layers/nodejs/node_modules/uuid/dist/umd/uuidStringify.min.js +0 -1
  250. package/dist/app/api-destined-function/layers/nodejs/node_modules/uuid/dist/umd/uuidValidate.min.js +0 -1
  251. package/dist/app/api-destined-function/layers/nodejs/node_modules/uuid/dist/umd/uuidVersion.min.js +0 -1
  252. package/dist/app/api-destined-function/layers/nodejs/node_modules/uuid/dist/umd/uuidv1.min.js +0 -1
  253. package/dist/app/api-destined-function/layers/nodejs/node_modules/uuid/dist/umd/uuidv3.min.js +0 -1
  254. package/dist/app/api-destined-function/layers/nodejs/node_modules/uuid/dist/umd/uuidv4.min.js +0 -1
  255. package/dist/app/api-destined-function/layers/nodejs/node_modules/uuid/dist/umd/uuidv5.min.js +0 -1
  256. package/dist/app/api-destined-function/layers/nodejs/node_modules/uuid/dist/uuid-bin.js +0 -85
  257. package/dist/app/api-destined-function/layers/nodejs/node_modules/uuid/dist/v1.js +0 -107
  258. package/dist/app/api-destined-function/layers/nodejs/node_modules/uuid/dist/v3.js +0 -16
  259. package/dist/app/api-destined-function/layers/nodejs/node_modules/uuid/dist/v35.js +0 -78
  260. package/dist/app/api-destined-function/layers/nodejs/node_modules/uuid/dist/v4.js +0 -37
  261. package/dist/app/api-destined-function/layers/nodejs/node_modules/uuid/dist/v5.js +0 -16
  262. package/dist/app/api-destined-function/layers/nodejs/node_modules/uuid/dist/validate.js +0 -17
  263. package/dist/app/api-destined-function/layers/nodejs/node_modules/uuid/dist/version.js +0 -21
  264. package/dist/app/api-destined-function/layers/nodejs/node_modules/uuid/package.json +0 -135
  265. package/dist/app/api-destined-function/layers/nodejs/node_modules/uuid/wrapper.mjs +0 -10
  266. package/dist/app/api-destined-function/layers/nodejs/package.json +0 -30
  267. package/dist/app/api-destined-function/src/lib/lambda.d.ts +0 -19
  268. package/dist/app/api-destined-function/src/lib/lambda.d.ts.map +0 -1
  269. package/dist/app/api-destined-function/src/lib/lambda.js +0 -34
  270. package/dist/app/api-destined-function/src/lib/lambda.js.map +0 -1
  271. package/dist/index.d.ts +0 -6
  272. package/dist/index.d.ts.map +0 -1
  273. package/dist/index.js.map +0 -1
  274. package/dist/src/lib/common/construct.d.ts +0 -80
  275. package/dist/src/lib/common/construct.d.ts.map +0 -1
  276. package/dist/src/lib/common/construct.js +0 -134
  277. package/dist/src/lib/common/construct.js.map +0 -1
  278. package/dist/src/lib/common/index.d.ts +0 -3
  279. package/dist/src/lib/common/index.d.ts.map +0 -1
  280. package/dist/src/lib/common/index.js +0 -15
  281. package/dist/src/lib/common/index.js.map +0 -1
  282. package/dist/src/lib/common/stack.d.ts +0 -55
  283. package/dist/src/lib/common/stack.d.ts.map +0 -1
  284. package/dist/src/lib/common/stack.js +0 -148
  285. package/dist/src/lib/common/stack.js.map +0 -1
  286. package/dist/src/lib/construct/api-to-eventbridge-target/api-destination-event.d.ts +0 -17
  287. package/dist/src/lib/construct/api-to-eventbridge-target/api-destination-event.d.ts.map +0 -1
  288. package/dist/src/lib/construct/api-to-eventbridge-target/api-destination-event.js +0 -18
  289. package/dist/src/lib/construct/api-to-eventbridge-target/api-destination-event.js.map +0 -1
  290. package/dist/src/lib/construct/api-to-eventbridge-target/api-destined-lambda.d.ts +0 -20
  291. package/dist/src/lib/construct/api-to-eventbridge-target/api-destined-lambda.d.ts.map +0 -1
  292. package/dist/src/lib/construct/api-to-eventbridge-target/api-destined-lambda.js +0 -20
  293. package/dist/src/lib/construct/api-to-eventbridge-target/api-destined-lambda.js.map +0 -1
  294. package/dist/src/lib/construct/api-to-eventbridge-target/api-destined-rest-api.d.ts +0 -36
  295. package/dist/src/lib/construct/api-to-eventbridge-target/api-destined-rest-api.d.ts.map +0 -1
  296. package/dist/src/lib/construct/api-to-eventbridge-target/api-destined-rest-api.js +0 -30
  297. package/dist/src/lib/construct/api-to-eventbridge-target/api-destined-rest-api.js.map +0 -1
  298. package/dist/src/lib/construct/api-to-eventbridge-target/index.d.ts +0 -5
  299. package/dist/src/lib/construct/api-to-eventbridge-target/index.d.ts.map +0 -1
  300. package/dist/src/lib/construct/api-to-eventbridge-target/index.js +0 -17
  301. package/dist/src/lib/construct/api-to-eventbridge-target/index.js.map +0 -1
  302. package/dist/src/lib/construct/api-to-eventbridge-target/main.d.ts +0 -135
  303. package/dist/src/lib/construct/api-to-eventbridge-target/main.d.ts.map +0 -1
  304. package/dist/src/lib/construct/api-to-eventbridge-target/main.js +0 -488
  305. package/dist/src/lib/construct/api-to-eventbridge-target/main.js.map +0 -1
  306. package/dist/src/lib/construct/graphql-api-lambda/index.d.ts +0 -2
  307. package/dist/src/lib/construct/graphql-api-lambda/index.d.ts.map +0 -1
  308. package/dist/src/lib/construct/graphql-api-lambda/index.js +0 -14
  309. package/dist/src/lib/construct/graphql-api-lambda/index.js.map +0 -1
  310. package/dist/src/lib/construct/graphql-api-lambda/main.d.ts +0 -113
  311. package/dist/src/lib/construct/graphql-api-lambda/main.d.ts.map +0 -1
  312. package/dist/src/lib/construct/graphql-api-lambda/main.js +0 -202
  313. package/dist/src/lib/construct/graphql-api-lambda/main.js.map +0 -1
  314. package/dist/src/lib/construct/index.d.ts +0 -5
  315. package/dist/src/lib/construct/index.d.ts.map +0 -1
  316. package/dist/src/lib/construct/index.js +0 -17
  317. package/dist/src/lib/construct/index.js.map +0 -1
  318. package/dist/src/lib/construct/site-with-ecs-backend/index.d.ts +0 -2
  319. package/dist/src/lib/construct/site-with-ecs-backend/index.d.ts.map +0 -1
  320. package/dist/src/lib/construct/site-with-ecs-backend/index.js +0 -14
  321. package/dist/src/lib/construct/site-with-ecs-backend/index.js.map +0 -1
  322. package/dist/src/lib/construct/site-with-ecs-backend/main.d.ts +0 -168
  323. package/dist/src/lib/construct/site-with-ecs-backend/main.d.ts.map +0 -1
  324. package/dist/src/lib/construct/site-with-ecs-backend/main.js +0 -328
  325. package/dist/src/lib/construct/site-with-ecs-backend/main.js.map +0 -1
  326. package/dist/src/lib/construct/static-site/index.d.ts +0 -2
  327. package/dist/src/lib/construct/static-site/index.d.ts.map +0 -1
  328. package/dist/src/lib/construct/static-site/index.js +0 -14
  329. package/dist/src/lib/construct/static-site/index.js.map +0 -1
  330. package/dist/src/lib/construct/static-site/main.d.ts +0 -95
  331. package/dist/src/lib/construct/static-site/main.d.ts.map +0 -1
  332. package/dist/src/lib/construct/static-site/main.js +0 -169
  333. package/dist/src/lib/construct/static-site/main.js.map +0 -1
  334. package/dist/src/lib/manager/aws/acm-manager.d.ts +0 -47
  335. package/dist/src/lib/manager/aws/acm-manager.d.ts.map +0 -1
  336. package/dist/src/lib/manager/aws/acm-manager.js +0 -91
  337. package/dist/src/lib/manager/aws/acm-manager.js.map +0 -1
  338. package/dist/src/lib/manager/aws/api-manager.d.ts +0 -44
  339. package/dist/src/lib/manager/aws/api-manager.d.ts.map +0 -1
  340. package/dist/src/lib/manager/aws/api-manager.js +0 -112
  341. package/dist/src/lib/manager/aws/api-manager.js.map +0 -1
  342. package/dist/src/lib/manager/aws/app-config-manager.d.ts +0 -66
  343. package/dist/src/lib/manager/aws/app-config-manager.d.ts.map +0 -1
  344. package/dist/src/lib/manager/aws/app-config-manager.js +0 -149
  345. package/dist/src/lib/manager/aws/app-config-manager.js.map +0 -1
  346. package/dist/src/lib/manager/aws/cloudfront-manager.d.ts +0 -113
  347. package/dist/src/lib/manager/aws/cloudfront-manager.d.ts.map +0 -1
  348. package/dist/src/lib/manager/aws/cloudfront-manager.js +0 -283
  349. package/dist/src/lib/manager/aws/cloudfront-manager.js.map +0 -1
  350. package/dist/src/lib/manager/aws/cloudtrail-manager.d.ts +0 -49
  351. package/dist/src/lib/manager/aws/cloudtrail-manager.d.ts.map +0 -1
  352. package/dist/src/lib/manager/aws/cloudtrail-manager.js +0 -100
  353. package/dist/src/lib/manager/aws/cloudtrail-manager.js.map +0 -1
  354. package/dist/src/lib/manager/aws/cloudwatch-manager.d.ts +0 -122
  355. package/dist/src/lib/manager/aws/cloudwatch-manager.d.ts.map +0 -1
  356. package/dist/src/lib/manager/aws/cloudwatch-manager.js +0 -353
  357. package/dist/src/lib/manager/aws/cloudwatch-manager.js.map +0 -1
  358. package/dist/src/lib/manager/aws/codebuild-manager.d.ts +0 -41
  359. package/dist/src/lib/manager/aws/codebuild-manager.d.ts.map +0 -1
  360. package/dist/src/lib/manager/aws/codebuild-manager.js +0 -95
  361. package/dist/src/lib/manager/aws/codebuild-manager.js.map +0 -1
  362. package/dist/src/lib/manager/aws/dynamodb-manager.d.ts +0 -33
  363. package/dist/src/lib/manager/aws/dynamodb-manager.d.ts.map +0 -1
  364. package/dist/src/lib/manager/aws/dynamodb-manager.js +0 -80
  365. package/dist/src/lib/manager/aws/dynamodb-manager.js.map +0 -1
  366. package/dist/src/lib/manager/aws/ecr-manager.d.ts +0 -32
  367. package/dist/src/lib/manager/aws/ecr-manager.d.ts.map +0 -1
  368. package/dist/src/lib/manager/aws/ecr-manager.js +0 -61
  369. package/dist/src/lib/manager/aws/ecr-manager.js.map +0 -1
  370. package/dist/src/lib/manager/aws/ecs-manager.d.ts +0 -49
  371. package/dist/src/lib/manager/aws/ecs-manager.d.ts.map +0 -1
  372. package/dist/src/lib/manager/aws/ecs-manager.js +0 -104
  373. package/dist/src/lib/manager/aws/ecs-manager.js.map +0 -1
  374. package/dist/src/lib/manager/aws/eks-manager.d.ts +0 -37
  375. package/dist/src/lib/manager/aws/eks-manager.d.ts.map +0 -1
  376. package/dist/src/lib/manager/aws/eks-manager.js +0 -110
  377. package/dist/src/lib/manager/aws/eks-manager.js.map +0 -1
  378. package/dist/src/lib/manager/aws/event-manager.d.ts +0 -68
  379. package/dist/src/lib/manager/aws/event-manager.d.ts.map +0 -1
  380. package/dist/src/lib/manager/aws/event-manager.js +0 -163
  381. package/dist/src/lib/manager/aws/event-manager.js.map +0 -1
  382. package/dist/src/lib/manager/aws/iam-manager.d.ts +0 -155
  383. package/dist/src/lib/manager/aws/iam-manager.d.ts.map +0 -1
  384. package/dist/src/lib/manager/aws/iam-manager.js +0 -381
  385. package/dist/src/lib/manager/aws/iam-manager.js.map +0 -1
  386. package/dist/src/lib/manager/aws/index.d.ts +0 -23
  387. package/dist/src/lib/manager/aws/index.d.ts.map +0 -1
  388. package/dist/src/lib/manager/aws/index.js +0 -35
  389. package/dist/src/lib/manager/aws/index.js.map +0 -1
  390. package/dist/src/lib/manager/aws/lambda-manager.d.ts +0 -95
  391. package/dist/src/lib/manager/aws/lambda-manager.d.ts.map +0 -1
  392. package/dist/src/lib/manager/aws/lambda-manager.js +0 -197
  393. package/dist/src/lib/manager/aws/lambda-manager.js.map +0 -1
  394. package/dist/src/lib/manager/aws/log-manager.d.ts +0 -52
  395. package/dist/src/lib/manager/aws/log-manager.d.ts.map +0 -1
  396. package/dist/src/lib/manager/aws/log-manager.js +0 -109
  397. package/dist/src/lib/manager/aws/log-manager.js.map +0 -1
  398. package/dist/src/lib/manager/aws/route53-manager.d.ts +0 -69
  399. package/dist/src/lib/manager/aws/route53-manager.d.ts.map +0 -1
  400. package/dist/src/lib/manager/aws/route53-manager.js +0 -159
  401. package/dist/src/lib/manager/aws/route53-manager.js.map +0 -1
  402. package/dist/src/lib/manager/aws/s3-manager.d.ts +0 -74
  403. package/dist/src/lib/manager/aws/s3-manager.d.ts.map +0 -1
  404. package/dist/src/lib/manager/aws/s3-manager.js +0 -203
  405. package/dist/src/lib/manager/aws/s3-manager.js.map +0 -1
  406. package/dist/src/lib/manager/aws/secrets-manager.d.ts +0 -58
  407. package/dist/src/lib/manager/aws/secrets-manager.d.ts.map +0 -1
  408. package/dist/src/lib/manager/aws/secrets-manager.js +0 -117
  409. package/dist/src/lib/manager/aws/secrets-manager.js.map +0 -1
  410. package/dist/src/lib/manager/aws/sns-manager.d.ts +0 -43
  411. package/dist/src/lib/manager/aws/sns-manager.d.ts.map +0 -1
  412. package/dist/src/lib/manager/aws/sns-manager.js +0 -91
  413. package/dist/src/lib/manager/aws/sns-manager.js.map +0 -1
  414. package/dist/src/lib/manager/aws/ssm-manager.d.ts +0 -61
  415. package/dist/src/lib/manager/aws/ssm-manager.d.ts.map +0 -1
  416. package/dist/src/lib/manager/aws/ssm-manager.js +0 -125
  417. package/dist/src/lib/manager/aws/ssm-manager.js.map +0 -1
  418. package/dist/src/lib/manager/aws/vpc-manager.d.ts +0 -46
  419. package/dist/src/lib/manager/aws/vpc-manager.d.ts.map +0 -1
  420. package/dist/src/lib/manager/aws/vpc-manager.js +0 -95
  421. package/dist/src/lib/manager/aws/vpc-manager.js.map +0 -1
  422. package/dist/src/lib/manager/aws/waf-manager.d.ts +0 -40
  423. package/dist/src/lib/manager/aws/waf-manager.d.ts.map +0 -1
  424. package/dist/src/lib/manager/aws/waf-manager.js +0 -90
  425. package/dist/src/lib/manager/aws/waf-manager.js.map +0 -1
  426. package/dist/src/lib/manager/index.d.ts +0 -2
  427. package/dist/src/lib/manager/index.d.ts.map +0 -1
  428. package/dist/src/lib/manager/index.js +0 -14
  429. package/dist/src/lib/manager/index.js.map +0 -1
  430. package/dist/src/lib/types/aws/index.d.ts +0 -480
  431. package/dist/src/lib/types/aws/index.d.ts.map +0 -1
  432. package/dist/src/lib/types/aws/index.js +0 -3
  433. package/dist/src/lib/types/aws/index.js.map +0 -1
  434. package/dist/src/lib/types/index.d.ts +0 -2
  435. package/dist/src/lib/types/index.d.ts.map +0 -1
  436. package/dist/src/lib/types/index.js +0 -14
  437. package/dist/src/lib/types/index.js.map +0 -1
  438. package/dist/src/lib/utils/aws/index.d.ts +0 -16
  439. package/dist/src/lib/utils/aws/index.d.ts.map +0 -1
  440. package/dist/src/lib/utils/aws/index.js +0 -50
  441. package/dist/src/lib/utils/aws/index.js.map +0 -1
  442. package/dist/src/lib/utils/index.d.ts +0 -63
  443. package/dist/src/lib/utils/index.d.ts.map +0 -1
  444. package/dist/src/lib/utils/index.js +0 -85
  445. package/dist/src/lib/utils/index.js.map +0 -1
  446. package/img/ApiToEventBridgeTarget.jpg +0 -0
  447. package/img/GraphQLApiLambda.jpg +0 -0
  448. package/img/logo.png +0 -0
  449. package/theme/styles.css +0 -113
@@ -1 +0,0 @@
1
- {"version":3,"file":"cloudfront-manager.d.ts","sourceRoot":"","sources":["../../../../../src/lib/manager/aws/cloudfront-manager.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,GAAG,MAAM,aAAa,CAAA;AAClC,OAAO,KAAK,GAAG,MAAM,oCAAoC,CAAA;AACzD,OAAO,KAAK,UAAU,MAAM,4BAA4B,CAAA;AACxD,OAAO,KAAK,OAAO,MAAM,oCAAoC,CAAA;AAC7D,OAAO,KAAK,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I,gCAAgC,CACrC,EAAE,EAAE,MAAM,EACV,KAAK,EAAE,MAAM,CAAC,eAAe,EAC7B,KAAK,EAAE,KAAK,CAAC,iBAAiB,EAC9B,MAAM,EAAE,OAAO,CAAC,UAAU,EAC1B,WAAW,EAAE,MAAM,EAAE,EACrB,SAAS,CAAC,EAAE,EAAE,CAAC,OAAO,EACtB,WAAW,CAAC,EAAE,GAAG,CAAC,YAAY,EAC9B,2BAA2B,CAAC,EAAE,UAAU,CAAC,mBAAmB,EAAE;IAkChE;;;;;;;;;;;;;OAaG;IACI,kBAAkB,CACvB,EAAE,EAAE,MAAM,EACV,KAAK,EAAE,MAAM,CAAC,eAAe,EAC7B,KAAK,EAAE,KAAK,CAAC,eAAe,EAC5B,MAAM,EAAE,MAAM,CAAC,aAAa,EAAE,EAC9B,IAAI,EAAE,MAAM,CAAC,SAAS,EACtB,WAAW,CAAC,EAAE,GAAG,EACjB,GAAG,CAAC,EAAE,GAAG,CAAC,IAAI,EACd,cAAc,CAAC,EAAE,GAAG,CAAC,cAAc,EAAE,EACrC,WAAW,CAAC,EAAE,GAAG,CAAC,YAAY,EAC9B,SAAS,CAAC,EAAE,MAAM;IA8BpB;;;;;;;OAOG;IACI,eAAe,CACpB,EAAE,EAAE,MAAM,EACV,KAAK,EAAE,MAAM,CAAC,eAAe,EAC7B,cAAc,EAAE,MAAM,EACtB,cAAc,EAAE,MAAM,EACtB,KAAK,CAAC,EAAE,MAAM;IAqBhB;;;;;;OAMG;IACI,wBAAwB,CAAC,EAAE,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,CAAC,eAAe,EAAE,KAAK,EAAE,KAAK,CAAC,uBAAuB;CAchH"}
@@ -1,283 +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.CloudFrontManager = void 0;
23
- const cdk = __importStar(require("aws-cdk-lib"));
24
- const cloudfront = __importStar(require("aws-cdk-lib/aws-cloudfront"));
25
- const lambda = __importStar(require("aws-cdk-lib/aws-lambda"));
26
- const cr = __importStar(require("aws-cdk-lib/custom-resources"));
27
- const utils = __importStar(require("../../utils"));
28
- /**
29
- * @stability stable
30
- * @category cdk-utils.cloudfront-manager
31
- * @subcategory Construct
32
- * @classdesc Provides operations on AWS CloudFront.
33
- * - A new instance of this class is injected into {@link common.CommonConstruct} constructor.
34
- * - If a custom construct extends {@link common.CommonConstruct}, an instance is available within the context.
35
- * @example
36
- * import * as common from '@gradientedge/cdk-utils'
37
- *
38
- * class CustomConstruct extends common.common.CommonConstruct {
39
- * constructor(parent: cdk.Construct, id: string, props: common.CommonStackProps) {
40
- * super(parent, id, props)
41
- * this.props = props
42
- * this.cloudFrontManager.createCloudFrontDistribution(
43
- * 'MyDistribution',
44
- * this,
45
- * siteBucket,
46
- * logBucket,
47
- * originAccessIdentity,
48
- * certificate
49
- * )
50
- * }
51
- * }
52
- *
53
- * @see [CDK CloudFront Module]{@link https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_cloudfront-readme.html}
54
- */
55
- class CloudFrontManager {
56
- createOriginAccessIdentity(id, scope, accessBucket) {
57
- const oai = new cloudfront.OriginAccessIdentity(scope, `${id}`, {
58
- comment: `${id} - ${scope.props.stage} stage`,
59
- });
60
- if (accessBucket)
61
- accessBucket.grantRead(oai);
62
- return oai;
63
- }
64
- /**
65
- * @deprecated Use `createDistributionWithS3Origin` instead
66
- *
67
- * @summary Method to create a cloudfront distribution
68
- * @param {string} id scoped id of the resource
69
- * @param {common.CommonConstruct} scope scope in which this resource is defined
70
- * @param {types.CloudFrontProps} props distribution properties
71
- * @param {s3.IBucket?} siteBucket
72
- * @param {s3.IBucket?} logBucket
73
- * @param {cloudfront.OriginAccessIdentity?} oai
74
- * @param {acm.ICertificate?} certificate
75
- * @param {string[]?} aliases
76
- */
77
- createCloudFrontDistribution(id, scope, props, siteBucket, logBucket, oai, certificate, aliases) {
78
- if (!siteBucket)
79
- throw `SiteBucket not defined`;
80
- if (!certificate)
81
- throw `Certificate not defined`;
82
- if (!props)
83
- throw `CloudFront props undefined`;
84
- const distribution = new cloudfront.CloudFrontWebDistribution(scope, `${id}`, {
85
- comment: `${id} - ${scope.props.stage} stage`,
86
- defaultRootObject: props.defaultRootObject,
87
- enabled: props.enabled ?? true,
88
- enableIpV6: props.enableIpV6,
89
- errorConfigurations: props.errorConfigurations,
90
- geoRestriction: props.geoRestriction,
91
- httpVersion: props.httpVersion ?? cloudfront.HttpVersion.HTTP2,
92
- loggingConfig: {
93
- bucket: logBucket,
94
- prefix: 'cloudfront/',
95
- },
96
- originConfigs: [
97
- {
98
- s3OriginSource: {
99
- s3BucketSource: siteBucket,
100
- originAccessIdentity: oai,
101
- },
102
- behaviors: [{ isDefaultBehavior: true }],
103
- },
104
- ],
105
- priceClass: props.priceClass ?? cloudfront.PriceClass.PRICE_CLASS_ALL,
106
- viewerCertificate: cloudfront.ViewerCertificate.fromAcmCertificate(certificate, {
107
- aliases: aliases ? [...aliases, ...[siteBucket.bucketName]] : [siteBucket.bucketName],
108
- securityPolicy: cloudfront.SecurityPolicyProtocol.TLS_V1_1_2016,
109
- sslMethod: cloudfront.SSLMethod.SNI,
110
- }),
111
- webACLId: props.webACLId,
112
- });
113
- utils.createCfnOutput(`${id}-distributionId`, scope, distribution.distributionId);
114
- utils.createCfnOutput(`${id}-distributionDomainName`, scope, distribution.distributionDomainName);
115
- return distribution;
116
- }
117
- /**
118
- * Method to create a CloudFront distribution with S3 Origin
119
- * @param {string} id scoped id of the resource
120
- * @param {common.CommonConstruct} scope scope in which this resource is defined
121
- * @param {types.DistributionProps} props distribution properties
122
- * @param {origins.S3Origin} origin
123
- * @param {s3.IBucket} siteBucket
124
- * @param {s3.IBucket?} logBucket
125
- * @param {cloudfront.OriginAccessIdentity?} oai
126
- * @param {acm.ICertificate?} certificate
127
- * @param {string[]?} aliases
128
- * @param {cloudfront.FunctionAssociation?} defaultFunctionAssociations
129
- */
130
- createDistributionWithS3Origin(id, scope, props, origin, siteBucket, logBucket, oai, certificate, aliases, defaultFunctionAssociations) {
131
- const distribution = new cloudfront.Distribution(scope, `${id}`, {
132
- certificate: certificate,
133
- comment: `${id} - ${scope.props.stage} stage`,
134
- defaultBehavior: {
135
- cachePolicy: props.defaultBehavior ? props.defaultBehavior.cachePolicy : undefined,
136
- origin: origin,
137
- originRequestPolicy: props.defaultBehavior ? props.defaultBehavior.originRequestPolicy : undefined,
138
- functionAssociations: defaultFunctionAssociations ?? undefined,
139
- },
140
- additionalBehaviors: props.additionalBehaviors,
141
- defaultRootObject: props.defaultRootObject,
142
- domainNames: aliases ? [...aliases, ...[siteBucket.bucketName]] : [siteBucket.bucketName],
143
- enabled: props.enabled ?? true,
144
- enableIpv6: props.enableIpv6,
145
- enableLogging: props.enableLogging ?? true,
146
- errorResponses: props.errorResponses,
147
- geoRestriction: props.geoRestriction,
148
- httpVersion: props.httpVersion ?? cloudfront.HttpVersion.HTTP2,
149
- logBucket: logBucket,
150
- logIncludesCookies: props.logIncludesCookies ?? true,
151
- logFilePrefix: props.logFilePrefix ?? `edge/`,
152
- minimumProtocolVersion: props.minimumProtocolVersion ?? cloudfront.SecurityPolicyProtocol.TLS_V1_2_2021,
153
- priceClass: props.priceClass ?? cloudfront.PriceClass.PRICE_CLASS_ALL,
154
- webAclId: props.webAclId,
155
- });
156
- utils.createCfnOutput(`${id}-distributionId`, scope, distribution.distributionId);
157
- utils.createCfnOutput(`${id}-distributionDomainName`, scope, distribution.distributionDomainName);
158
- return distribution;
159
- }
160
- /**
161
- * Method to create a CloudFront distribution with HTTP Origin
162
- * @param {string} id scoped id of the resource
163
- * @param {common.CommonConstruct} scope scope in which this resource is defined
164
- * @param {types.DistributionProps} props distribution properties
165
- * @param {origins.S3Origin} origin
166
- * @param {string[]} domainNames
167
- * @param {s3.IBucket?} logBucket
168
- * @param {acm.ICertificate?} certificate
169
- * @param {cloudfront.FunctionAssociation?} defaultFunctionAssociations
170
- */
171
- createDistributionWithHttpOrigin(id, scope, props, origin, domainNames, logBucket, certificate, defaultFunctionAssociations) {
172
- const distribution = new cloudfront.Distribution(scope, `${id}`, {
173
- certificate: certificate,
174
- comment: `${id} - ${scope.props.stage} stage`,
175
- defaultBehavior: {
176
- cachePolicy: props.defaultBehavior ? props.defaultBehavior.cachePolicy : undefined,
177
- origin: origin,
178
- originRequestPolicy: props.defaultBehavior ? props.defaultBehavior.originRequestPolicy : undefined,
179
- functionAssociations: defaultFunctionAssociations ?? undefined,
180
- },
181
- additionalBehaviors: props.additionalBehaviors,
182
- defaultRootObject: props.defaultRootObject,
183
- domainNames: domainNames,
184
- enabled: props.enabled ?? true,
185
- enableIpv6: props.enableIpv6,
186
- enableLogging: props.enableLogging ?? true,
187
- errorResponses: props.errorResponses,
188
- geoRestriction: props.geoRestriction,
189
- httpVersion: props.httpVersion ?? cloudfront.HttpVersion.HTTP2,
190
- logBucket: logBucket,
191
- logIncludesCookies: props.logIncludesCookies ?? true,
192
- logFilePrefix: props.logFilePrefix ?? `edge/`,
193
- minimumProtocolVersion: props.minimumProtocolVersion ?? cloudfront.SecurityPolicyProtocol.TLS_V1_2_2021,
194
- priceClass: props.priceClass ?? cloudfront.PriceClass.PRICE_CLASS_ALL,
195
- webAclId: props.webAclId,
196
- });
197
- utils.createCfnOutput(`${id}-distributionId`, scope, distribution.distributionId);
198
- utils.createCfnOutput(`${id}-distributionDomainName`, scope, distribution.distributionDomainName);
199
- return distribution;
200
- }
201
- /**
202
- * @summary Method to provision a Lambda@Edge function
203
- *
204
- * @param {string} id scoped id of the resource
205
- * @param {common.CommonConstruct} scope scope in which this resource is defined
206
- * @param {types.LambdaEdgeProps} props lambda@edge properties
207
- * @param {lambda.ILayerVersion[]} layers
208
- * @param {lambda.AssetCode} code
209
- * @param {Map<string, string>} environment
210
- * @param {ec2.IVpc} vpc
211
- * @param {ec2.ISecurityGroup[]} securityGroups
212
- * @param {efs.IAccessPoint} accessPoint
213
- * @param {string} mountPath
214
- */
215
- createEdgeFunction(id, scope, props, layers, code, environment, vpc, securityGroups, accessPoint, mountPath) {
216
- if (!props)
217
- throw 'EdgeFunction props undefined';
218
- const edgeFunction = new cloudfront.experimental.EdgeFunction(scope, `${id}`, {
219
- code: code,
220
- environment: {
221
- ...environment,
222
- },
223
- filesystem: accessPoint ? lambda.FileSystem.fromEfsAccessPoint(accessPoint, mountPath ?? '/mnt/msg') : undefined,
224
- functionName: `${props.functionName}-${scope.props.stage}`,
225
- handler: props.handler ?? 'index.handler',
226
- layers: layers,
227
- logRetention: props.logRetention,
228
- memorySize: props.memorySize,
229
- reservedConcurrentExecutions: props.reservedConcurrentExecutions,
230
- runtime: props.runtime ?? lambda.Runtime.NODEJS_14_X,
231
- securityGroups: securityGroups,
232
- stackId: `${id}-stack-id-${scope.props.stage}`,
233
- timeout: props.timeoutInSecs ? cdk.Duration.seconds(props.timeoutInSecs) : cdk.Duration.minutes(1),
234
- vpc: vpc,
235
- });
236
- utils.createCfnOutput(`${id}-edgeArn`, scope, edgeFunction.edgeArn);
237
- utils.createCfnOutput(`${id}-edgeFunctionArn`, scope, edgeFunction.functionArn);
238
- utils.createCfnOutput(`${id}-edgeFunctionName`, scope, edgeFunction.functionName);
239
- return edgeFunction;
240
- }
241
- /**
242
- *
243
- * @param id
244
- * @param scope
245
- * @param dockerFilePath
246
- * @param distributionId
247
- * @param paths
248
- */
249
- invalidateCache(id, scope, dockerFilePath, distributionId, paths) {
250
- new cr.AwsCustomResource(scope, `${id}-trigger-codebuild-${new Date().getTime()}`, {
251
- onCreate: {
252
- service: 'CodeBuild',
253
- action: 'startBuild',
254
- parameters: {
255
- projectName: scope.codeBuildManager.createProjectForCloudfrontInvalidation(id, scope, dockerFilePath, distributionId, paths).projectName,
256
- },
257
- physicalResourceId: cr.PhysicalResourceId.fromResponse('build.id'),
258
- },
259
- policy: cr.AwsCustomResourcePolicy.fromSdkCalls({ resources: cr.AwsCustomResourcePolicy.ANY_RESOURCE }),
260
- });
261
- }
262
- /**
263
- * @summary Method to provision a Cloudfront function
264
- *
265
- * @param {string} id scoped id of the resource
266
- * @param {common.CommonConstruct} scope scope in which this resource is defined
267
- * @param {types.CloudfrontFunctionProps} props
268
- */
269
- createCloudfrontFunction(id, scope, props) {
270
- const cloudfrontFunction = new cloudfront.Function(scope, `${id}`, {
271
- code: cloudfront.FunctionCode.fromFile({
272
- filePath: props.functionFilePath,
273
- }),
274
- comment: props.comment,
275
- functionName: `${props.functionName}-${scope.props.stage}`,
276
- });
277
- utils.createCfnOutput(`${id}-functionArn`, scope, cloudfrontFunction.functionArn);
278
- utils.createCfnOutput(`${id}-functionName`, scope, cloudfrontFunction.functionName);
279
- return cloudfrontFunction;
280
- }
281
- }
282
- exports.CloudFrontManager = CloudFrontManager;
283
- //# sourceMappingURL=cloudfront-manager.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"cloudfront-manager.js","sourceRoot":"","sources":["../../../../../src/lib/manager/aws/cloudfront-manager.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;AAAA,iDAAkC;AAElC,uEAAwD;AAIxD,+DAAgD;AAEhD,iEAAkD;AAGlD,mDAAoC;AAEpC;;;;;;;;;;;;;;;;;;;;;;;;;;GA0BG;AACH,MAAa,i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;gBACD,kBAAkB,EAAE,EAAE,CAAC,kBAAkB,CAAC,YAAY,CAAC,UAAU,CAAC;aACnE;YACD,MAAM,EAAE,EAAE,CAAC,uBAAuB,CAAC,YAAY,CAAC,EAAE,SAAS,EAAE,EAAE,CAAC,uBAAuB,CAAC,YAAY,EAAE,CAAC;SACxG,CAAC,CAAA;IACJ,CAAC;IAED;;;;;;OAMG;IACI,wBAAwB,CAAC,EAAU,EAAE,KAA6B,EAAE,KAAoC;QAC7G,MAAM,kBAAkB,GAAG,IAAI,UAAU,CAAC,QAAQ,CAAC,KAAK,EAAE,GAAG,EAAE,EAAE,EAAE;YACjE,IAAI,EAAE,UAAU,CAAC,YAAY,CAAC,QAAQ,CAAC;gBACrC,QAAQ,EAAE,KAAK,CAAC,gBAAgB;aACjC,CAAC;YACF,OAAO,EAAE,KAAK,CAAC,OAAO;YACtB,YAAY,EAAE,GAAG,KAAK,CAAC,YAAY,IAAI,KAAK,CAAC,KAAK,CAAC,KAAK,EAAE;SAC3D,CAAC,CAAA;QAEF,KAAK,CAAC,eAAe,CAAC,GAAG,EAAE,cAAc,EAAE,KAAK,EAAE,kBAAkB,CAAC,WAAW,CAAC,CAAA;QACjF,KAAK,CAAC,eAAe,CAAC,GAAG,EAAE,eAAe,EAAE,KAAK,EAAE,kBAAkB,CAAC,YAAY,CAAC,CAAA;QAEnF,OAAO,kBAAkB,CAAA;IAC3B,CAAC;CACF;AApSD,8CAoSC"}
@@ -1,49 +0,0 @@
1
- import * as cloudtrail from 'aws-cdk-lib/aws-cloudtrail';
2
- import * as logs from 'aws-cdk-lib/aws-logs';
3
- import * as s3 from 'aws-cdk-lib/aws-s3';
4
- import * as common from '../../common';
5
- import * as types from '../../types';
6
- /**
7
- * @stability stable
8
- * @category cdk-utils.cloudtrail-manager
9
- * @subcategory Construct
10
- * @classdesc Provides operations on AWS CloudTrail.
11
- * - A new instance of this class is injected into {@link common.CommonConstruct} constructor.
12
- * - If a custom construct extends {@link common.CommonConstruct}, an instance is available within the context.
13
- * @example
14
- * import * as common from '@gradientedge/cdk-utils'
15
- *
16
- * class CustomConstruct extends common.common.CommonConstruct {
17
- * constructor(parent: cdk.Construct, id: string, props: common.CommonStackProps) {
18
- * super(parent, id, props)
19
- * this.props = props
20
- * this.cloudTrailManager.createCloudTrail(
21
- * 'MyTrail',
22
- * this,
23
- * logGroup,
24
- * dataBucket,
25
- * logBucket,
26
- * logBucketPolicy
27
- * )
28
- * }
29
- * }
30
- *
31
- * @see [CDK CloudTrail Module]{@link https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_cloudtrail-readme.html}
32
- */
33
- export declare class CloudTrailManager {
34
- /**
35
- * @summary Method to create a cloud trail
36
- * @param {string} id scoped id of the resource
37
- * @param {common.CommonConstruct} scope scope in which this resource is defined
38
- * @param {types.CloudTrailProps} props
39
- * @param {logs.CfnLogGroup} logGroup
40
- * @param {s3.IBucket} dataBucket
41
- * @param {s3.IBucket} logBucket
42
- * @param {s3.CfnBucketPolicy} logBucketPolicy
43
- */
44
- createCloudTrail(id: string, scope: common.CommonConstruct, props: types.CloudTrailProps, logGroup: logs.CfnLogGroup, dataBucket: s3.IBucket, logBucket: s3.IBucket, logBucketPolicy: s3.CfnBucketPolicy): {
45
- cloudTrailRole: import("aws-cdk-lib/aws-iam").CfnRole;
46
- cloudTrail: cloudtrail.CfnTrail;
47
- };
48
- }
49
- //# sourceMappingURL=cloudtrail-manager.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"cloudtrail-manager.d.ts","sourceRoot":"","sources":["../../../../../src/lib/manager/aws/cloudtrail-manager.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,UAAU,MAAM,4BAA4B,CAAA;AACxD,OAAO,KAAK,IAAI,MAAM,sBAAsB,CAAA;AAC5C,OAAO,KAAK,EAAE,MAAM,oBAAoB,CAAA;AACxC,OAAO,KAAK,MAAM,MAAM,cAAc,CAAA;AACtC,OAAO,KAAK,KAAK,MAAM,aAAa,CAAA;AAGpC;;;;;;;;;;;;;;;;;;;;;;;;;;GA0BG;AACH,qBAAa,iBAAiB;IAC5B;;;;;;;;;OASG;IACI,gBAAgB,CACrB,EAAE,EAAE,MAAM,EACV,KAAK,EAAE,MAAM,CAAC,eAAe,EAC7B,KAAK,EAAE,KAAK,CAAC,eAAe,EAC5B,QAAQ,EAAE,IAAI,CAAC,WAAW,EAC1B,UAAU,EAAE,EAAE,CAAC,OAAO,EACtB,SAAS,EAAE,EAAE,CAAC,OAAO,EACrB,eAAe,EAAE,EAAE,CAAC,eAAe;;;;CAwCtC"}
@@ -1,100 +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.CloudTrailManager = void 0;
23
- const cloudtrail = __importStar(require("aws-cdk-lib/aws-cloudtrail"));
24
- const utils = __importStar(require("../../utils"));
25
- /**
26
- * @stability stable
27
- * @category cdk-utils.cloudtrail-manager
28
- * @subcategory Construct
29
- * @classdesc Provides operations on AWS CloudTrail.
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.cloudTrailManager.createCloudTrail(
40
- * 'MyTrail',
41
- * this,
42
- * logGroup,
43
- * dataBucket,
44
- * logBucket,
45
- * logBucketPolicy
46
- * )
47
- * }
48
- * }
49
- *
50
- * @see [CDK CloudTrail Module]{@link https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_cloudtrail-readme.html}
51
- */
52
- class CloudTrailManager {
53
- /**
54
- * @summary Method to create a cloud trail
55
- * @param {string} id scoped id of the resource
56
- * @param {common.CommonConstruct} scope scope in which this resource is defined
57
- * @param {types.CloudTrailProps} props
58
- * @param {logs.CfnLogGroup} logGroup
59
- * @param {s3.IBucket} dataBucket
60
- * @param {s3.IBucket} logBucket
61
- * @param {s3.CfnBucketPolicy} logBucketPolicy
62
- */
63
- createCloudTrail(id, scope, props, logGroup, dataBucket, logBucket, logBucketPolicy) {
64
- if (!props)
65
- throw `CloudTrail props undefined`;
66
- const role = scope.iamManager.createRoleForCloudTrail(`${id}Role`, scope, logGroup);
67
- const cloudTrail = new cloudtrail.CfnTrail(scope, `${id}`, {
68
- cloudWatchLogsLogGroupArn: logGroup.attrArn,
69
- cloudWatchLogsRoleArn: role.attrArn,
70
- enableLogFileValidation: props.enableLogFileValidation,
71
- eventSelectors: [
72
- {
73
- dataResources: [
74
- {
75
- type: 'AWS::S3::Object',
76
- values: [dataBucket.arnForObjects('')],
77
- },
78
- ],
79
- includeManagementEvents: false,
80
- readWriteType: 'WriteOnly',
81
- },
82
- ],
83
- includeGlobalServiceEvents: props.includeGlobalServiceEvents,
84
- isLogging: props.isLogging,
85
- isMultiRegionTrail: props.isMultiRegionTrail,
86
- s3BucketName: logBucket.bucketName,
87
- s3KeyPrefix: `logs-${props.trailName}`,
88
- tags: [{ key: 'service', value: scope.props.name }],
89
- trailName: `${props.trailName}-${scope.props.stage}`,
90
- });
91
- cloudTrail.addDependsOn(logBucketPolicy);
92
- cloudTrail.addDependsOn(logGroup);
93
- cloudTrail.addDependsOn(role);
94
- utils.createCfnOutput(`${id}-trailName`, scope, cloudTrail.trailName);
95
- utils.createCfnOutput(`${id}-trailArn`, scope, cloudTrail.attrArn);
96
- return { cloudTrailRole: role, cloudTrail };
97
- }
98
- }
99
- exports.CloudTrailManager = CloudTrailManager;
100
- //# sourceMappingURL=cloudtrail-manager.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"cloudtrail-manager.js","sourceRoot":"","sources":["../../../../../src/lib/manager/aws/cloudtrail-manager.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;AAAA,uEAAwD;AAKxD,mDAAoC;AAEpC;;;;;;;;;;;;;;;;;;;;;;;;;;GA0BG;AACH,MAAa,iBAAiB;IAC5B;;;;;;;;;OASG;IACI,gBAAgB,CACrB,EAAU,EACV,KAA6B,EAC7B,KAA4B,EAC5B,QAA0B,EAC1B,UAAsB,EACtB,SAAqB,EACrB,eAAmC;QAEnC,IAAI,CAAC,KAAK;YAAE,MAAM,4BAA4B,CAAA;QAE9C,MAAM,IAAI,GAAG,KAAK,CAAC,UAAU,CAAC,uBAAuB,CAAC,GAAG,EAAE,MAAM,EAAE,KAAK,EAAE,QAAQ,CAAC,CAAA;QAEnF,MAAM,UAAU,GAAG,IAAI,UAAU,CAAC,QAAQ,CAAC,KAAK,EAAE,GAAG,EAAE,EAAE,EAAE;YACzD,yBAAyB,EAAE,QAAQ,CAAC,OAAO;YAC3C,qBAAqB,EAAE,IAAI,CAAC,OAAO;YACnC,uBAAuB,EAAE,KAAK,CAAC,uBAAuB;YACtD,cAAc,EAAE;gBACd;oBACE,aAAa,EAAE;wBACb;4BACE,IAAI,EAAE,iBAAiB;4BACvB,MAAM,EAAE,CAAC,UAAU,CAAC,aAAa,CAAC,EAAE,CAAC,CAAC;yBACvC;qBACF;oBACD,uBAAuB,EAAE,KAAK;oBAC9B,aAAa,EAAE,WAAW;iBAC3B;aACF;YACD,0BAA0B,EAAE,KAAK,CAAC,0BAA0B;YAC5D,SAAS,EAAE,KAAK,CAAC,SAAS;YAC1B,kBAAkB,EAAE,KAAK,CAAC,kBAAkB;YAC5C,YAAY,EAAE,SAAS,CAAC,UAAU;YAClC,WAAW,EAAE,QAAQ,KAAK,CAAC,SAAS,EAAE;YACtC,IAAI,EAAE,CAAC,EAAE,GAAG,EAAE,SAAS,EAAE,KAAK,EAAE,KAAK,CAAC,KAAK,CAAC,IAAI,EAAE,CAAC;YACnD,SAAS,EAAE,GAAG,KAAK,CAAC,SAAS,IAAI,KAAK,CAAC,KAAK,CAAC,KAAK,EAAE;SACrD,CAAC,CAAA;QAEF,UAAU,CAAC,YAAY,CAAC,eAAe,CAAC,CAAA;QACxC,UAAU,CAAC,YAAY,CAAC,QAAQ,CAAC,CAAA;QACjC,UAAU,CAAC,YAAY,CAAC,IAAI,CAAC,CAAA;QAE7B,KAAK,CAAC,eAAe,CAAC,GAAG,EAAE,YAAY,EAAE,KAAK,EAAE,UAAU,CAAC,SAAS,CAAC,CAAA;QACrE,KAAK,CAAC,eAAe,CAAC,GAAG,EAAE,WAAW,EAAE,KAAK,EAAE,UAAU,CAAC,OAAO,CAAC,CAAA;QAElE,OAAO,EAAE,cAAc,EAAE,IAAI,EAAE,UAAU,EAAE,CAAA;IAC7C,CAAC;CACF;AA1DD,8CA0DC"}
@@ -1,122 +0,0 @@
1
- import * as cdk from 'aws-cdk-lib';
2
- import * as watch from 'aws-cdk-lib/aws-cloudwatch';
3
- import { IMetric } from 'aws-cdk-lib/aws-cloudwatch';
4
- import * as common from '../../common';
5
- import * as types from '../../types';
6
- /**
7
- * @stability stable
8
- * @category cdk-utils.cloudwatch-manager
9
- * @subcategory Construct
10
- * @classdesc Provides operations on AWS CloudWatch.
11
- * - A new instance of this class is injected into {@link common.CommonConstruct} constructor.
12
- * - If a custom construct extends {@link common.CommonConstruct}, an instance is available within the context.
13
- * @example
14
- * import * as common from '@gradientedge/cdk-utils'
15
- *
16
- * class CustomConstruct extends common.common.CommonConstruct {
17
- * constructor(parent: cdk.Construct, id: string, props: common.CommonStackProps) {
18
- * super(parent, id, props)
19
- * this.props = props
20
- * this.cloudWatchManager.createAlarmForMetric('MyAlarm', this, metric)
21
- * }
22
- * }
23
- *
24
- * @see [CDK CloudWatch Module]{@link https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_cloudwatch-readme.html}
25
- */
26
- export declare class CloudWatchManager {
27
- /**
28
- * @summary Method to create a cloudwatch alarm for a given expression
29
- * @param {string} id scoped id of the resource
30
- * @param {common.CommonConstruct} scope scope in which this resource is defined
31
- * @param {types.AlarmProps} props
32
- */
33
- createAlarmForExpression(id: string, scope: common.CommonConstruct, props: types.AlarmProps): cdk.aws_cloudwatch.Alarm;
34
- /**
35
- * @summary Method to create a cloudwatch alarm for a given metric
36
- * @param {string} id scoped id of the resource
37
- * @param {common.CommonConstruct} scope scope in which this resource is defined
38
- * @param {types.AlarmProps} props
39
- * @param metric
40
- */
41
- createAlarmForMetric(id: string, scope: common.CommonConstruct, props: types.AlarmProps, metric: watch.Metric): cdk.aws_cloudwatch.Alarm;
42
- /**
43
- * @summary Method to create a cloudwatch dashboard
44
- * @param {string} id scoped id of the resource
45
- * @param {common.CommonConstruct} scope scope in which this resource is defined
46
- * @param {types.DashboardProps} props
47
- * @param widgets
48
- */
49
- createDashboard(id: string, scope: common.CommonConstruct, props: types.DashboardProps, widgets?: watch.IWidget[][]): cdk.aws_cloudwatch.Dashboard;
50
- /**
51
- * @summary Method to create cloudwatch widgets
52
- * @param {common.CommonConstruct} scope scope in which this resource is defined
53
- * @param props
54
- */
55
- createWidgets(scope: common.CommonConstruct, props: any[]): any;
56
- /**
57
- * @summary Method to create a cloudwatch widget
58
- * @param {string} id scoped id of the resource
59
- * @param {common.CommonConstruct} scope scope in which this resource is defined
60
- * @param props
61
- */
62
- createWidget(id: string, scope: common.CommonConstruct, props: any): cdk.aws_cloudwatch.GraphWidget | cdk.aws_cloudwatch.SingleValueWidget | cdk.aws_cloudwatch.LogQueryWidget | cdk.aws_cloudwatch.TextWidget | cdk.aws_cloudwatch.AlarmStatusWidget;
63
- /**
64
- * @summary Method to create a cloudwatch text widget
65
- * @param {string} id scoped id of the resource
66
- * @param {common.CommonConstruct} scope scope in which this resource is defined
67
- * @param {types.TextWidgetProps} props
68
- */
69
- createTextWidget(id: string, scope: common.CommonConstruct, props: types.TextWidgetProps): cdk.aws_cloudwatch.TextWidget;
70
- /**
71
- * @summary Method to create a cloudwatch numeric widget
72
- * @param {string} id scoped id of the resource
73
- * @param {common.CommonConstruct} scope scope in which this resource is defined
74
- * @param {types.NumericWidgetProps} props
75
- * @param metrics
76
- */
77
- createSingleValueWidget(id: string, scope: common.CommonConstruct, props: types.NumericWidgetProps, metrics: IMetric[]): cdk.aws_cloudwatch.SingleValueWidget;
78
- /**
79
- * @summary Method to create a cloudwatch graph widget
80
- * @param {string} id scoped id of the resource
81
- * @param {common.CommonConstruct} scope scope in which this resource is defined
82
- * @param {types.GraphWidgetProps} props
83
- * @param leftYMetrics
84
- * @param rightYMetrics
85
- */
86
- createGraphWidget(id: string, scope: common.CommonConstruct, props: types.GraphWidgetProps, leftYMetrics?: IMetric[], rightYMetrics?: IMetric[]): cdk.aws_cloudwatch.GraphWidget;
87
- /**
88
- * @summary Method to create a cloudwatch alarm status widget
89
- * @param {string} id scoped id of the resource
90
- * @param {common.CommonConstruct} scope scope in which this resource is defined
91
- * @param {types.AlarmStatusWidgetProps} props
92
- * @param {watch.IAlarm[]} alarms
93
- */
94
- createAlarmStatusWidget(id: string, scope: common.CommonConstruct, props: types.AlarmStatusWidgetProps, alarms: watch.IAlarm[]): cdk.aws_cloudwatch.AlarmStatusWidget;
95
- /**
96
- * @summary Method to create a cloudwatch log query widget
97
- * @param {string} id scoped id of the resource
98
- * @param {common.CommonConstruct} scope scope in which this resource is defined
99
- * @param {types.LogQueryWidgetProps} props
100
- * @param {string[]} logGroupNames
101
- */
102
- createLogQueryWidget(id: string, scope: common.CommonConstruct, props: types.LogQueryWidgetProps, logGroupNames: string[]): cdk.aws_cloudwatch.LogQueryWidget;
103
- /**
104
- * @summary Utility method to determine the metrics and dimensions
105
- * @param {common.CommonConstruct} scope scope in which this resource is defined
106
- * @param {types.MetricProps[]} metricProps
107
- */
108
- private determineMetrics;
109
- /**
110
- * @summary Utility method to determine the time range
111
- * @param {string?} range
112
- */
113
- private static determineTimeRange;
114
- /**
115
- * @summary Utility method to determine the configured alarms
116
- * @param {string} id scoped id of the resource
117
- * @param {common.CommonConstruct} scope scope in which this resource is defined
118
- * @param {watch.AlarmProps[]} alarmProps
119
- */
120
- private determineAlarms;
121
- }
122
- //# sourceMappingURL=cloudwatch-manager.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"cloudwatch-manager.d.ts","sourceRoot":"","sources":["../../../../../src/lib/manager/aws/cloudwatch-manager.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,GAAG,MAAM,aAAa,CAAA;AAClC,OAAO,KAAK,KAAK,MAAM,4BAA4B,CAAA;AACnD,OAAO,EAAE,OAAO,EAAE,MAAM,4BAA4B,CAAA;AACpD,OAAO,KAAK,MAAM,MAAM,cAAc,CAAA;AACtC,OAAO,KAAK,KAAK,MAAM,aAAa,CAAA;AAepC;;;;;;;;;;;;;;;;;;;GAmBG;AACH,qBAAa,iBAAiB;IAC5B;;;;;OAKG;IACI,wBAAwB,CAAC,EAAE,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,CAAC,eAAe,EAAE,KAAK,EAAE,KAAK,CAAC,UAAU;IAgClG;;;;;;OAMG;IACI,oBAAoB,CACzB,EAAE,EAAE,MAAM,EACV,KAAK,EAAE,MAAM,CAAC,eAAe,EAC7B,KAAK,EAAE,KAAK,CAAC,UAAU,EACvB,MAAM,EAAE,KAAK,CAAC,MAAM;IAoBtB;;;;;;OAMG;IACI,eAAe,CACpB,EAAE,EAA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