@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,47 +0,0 @@
1
- import * as acm from 'aws-cdk-lib/aws-certificatemanager';
2
- import * as route53 from 'aws-cdk-lib/aws-route53';
3
- import * as common from '../../common';
4
- import * as types from '../../types';
5
- /**
6
- * @stability stable
7
- * @category cdk-utils.acm-manager
8
- * @subcategory Construct
9
- * @classdesc Provides operations on AWS Certificates.
10
- * - A new instance of this class is injected into {@link common.CommonConstruct} constructor.
11
- * - If a custom construct extends {@link common.CommonConstruct}, an instance is available within the context.
12
- * @example
13
- * import { CommonConstruct } from '@gradientedge/cdk-utils'
14
- *
15
- * class CustomConstruct extends CommonConstruct {
16
- * constructor(parent: cdk.Construct, id: string, props: common.CommonStackProps) {
17
- * super(parent, id, props)
18
- * this.props = props
19
- * this.acmManager.createCertificate('MyCertificate', this)
20
- * }
21
- * }
22
- *
23
- * @see [CDK Certificate Module]{@link https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_certificatemanager-readme.html}
24
- */
25
- export declare class AcmManager {
26
- /**
27
- * @summary Method to create/import a certificate
28
- * @param {string} id scoped id of the resource
29
- * @param {common.CommonConstruct} scope scope in which this resource is defined
30
- * @param {types.AcmProps} props certificate props
31
- * @param {route53.HostedZone?} hostedZone optional hosted zone to perform DNS validation
32
- * @returns {acm.ICertificate}
33
- *
34
- * @mermaid
35
- * graph LR;
36
- * A((Start)) --> B{Valid Properties?};
37
- * B -- Yes --> C(Fetch By ARN);
38
- * B -- No --> D[Throw Error];
39
- * D --> G((Stop));
40
- * C --> E{Valid ARN?};
41
- * E -- Yes --> F(Return Certificate);
42
- * E -- No --> D;
43
- * F --> G;
44
- */
45
- resolveCertificate(id: string, scope: common.CommonConstruct, props: types.AcmProps, hostedZone?: route53.IHostedZone): acm.ICertificate;
46
- }
47
- //# sourceMappingURL=acm-manager.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"acm-manager.d.ts","sourceRoot":"","sources":["../../../../../src/lib/manager/aws/acm-manager.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,GAAG,MAAM,oCAAoC,CAAA;AACzD,OAAO,KAAK,OAAO,MAAM,yBAAyB,CAAA;AAClD,OAAO,KAAK,MAAM,MAAM,cAAc,CAAA;AACtC,OAAO,KAAK,KAAK,MAAM,aAAa,CAAA;AAGpC;;;;;;;;;;;;;;;;;;;GAmBG;AACH,qBAAa,UAAU;IACrB;;;;;;;;;;;;;;;;;;OAkBG;IACI,kBAAkB,CACvB,EAAE,EAAE,MAAM,EACV,KAAK,EAAE,MAAM,CAAC,eAAe,EAC7B,KAAK,EAAE,KAAK,CAAC,QAAQ,EACrB,UAAU,CAAC,EAAE,OAAO,CAAC,WAAW,GAC/B,GAAG,CAAC,YAAY;CAyBpB"}
@@ -1,91 +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.AcmManager = void 0;
23
- const cdk = __importStar(require("aws-cdk-lib"));
24
- const acm = __importStar(require("aws-cdk-lib/aws-certificatemanager"));
25
- const utils = __importStar(require("../../utils"));
26
- /**
27
- * @stability stable
28
- * @category cdk-utils.acm-manager
29
- * @subcategory Construct
30
- * @classdesc Provides operations on AWS Certificates.
31
- * - A new instance of this class is injected into {@link common.CommonConstruct} constructor.
32
- * - If a custom construct extends {@link common.CommonConstruct}, an instance is available within the context.
33
- * @example
34
- * import { CommonConstruct } from '@gradientedge/cdk-utils'
35
- *
36
- * class CustomConstruct extends CommonConstruct {
37
- * constructor(parent: cdk.Construct, id: string, props: common.CommonStackProps) {
38
- * super(parent, id, props)
39
- * this.props = props
40
- * this.acmManager.createCertificate('MyCertificate', this)
41
- * }
42
- * }
43
- *
44
- * @see [CDK Certificate Module]{@link https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_certificatemanager-readme.html}
45
- */
46
- class AcmManager {
47
- /**
48
- * @summary Method to create/import a certificate
49
- * @param {string} id scoped id of the resource
50
- * @param {common.CommonConstruct} scope scope in which this resource is defined
51
- * @param {types.AcmProps} props certificate props
52
- * @param {route53.HostedZone?} hostedZone optional hosted zone to perform DNS validation
53
- * @returns {acm.ICertificate}
54
- *
55
- * @mermaid
56
- * graph LR;
57
- * A((Start)) --> B{Valid Properties?};
58
- * B -- Yes --> C(Fetch By ARN);
59
- * B -- No --> D[Throw Error];
60
- * D --> G((Stop));
61
- * C --> E{Valid ARN?};
62
- * E -- Yes --> F(Return Certificate);
63
- * E -- No --> D;
64
- * F --> G;
65
- */
66
- resolveCertificate(id, scope, props, hostedZone) {
67
- if (!props)
68
- throw `Certificate props undefined`;
69
- let certificate;
70
- if (props.useExistingCertificate) {
71
- let certificateArn = props.certificateArn;
72
- if (!certificateArn) {
73
- const certificateAccount = props.certificateAccount ? props.certificateAccount : cdk.Stack.of(scope).account;
74
- const certificateRegion = props.certificateRegion ? props.certificateRegion : cdk.Stack.of(scope).region;
75
- certificateArn = `arn:aws:acm:${certificateRegion}:${certificateAccount}:certificate/${props.certificateId}`;
76
- }
77
- certificate = acm.Certificate.fromCertificateArn(scope, `${id}`, certificateArn);
78
- }
79
- else {
80
- certificate = new acm.Certificate(scope, `${id}`, {
81
- domainName: props.domainName,
82
- subjectAlternativeNames: props.subjectAlternativeNames,
83
- validation: acm.CertificateValidation.fromDns(hostedZone),
84
- });
85
- }
86
- utils.createCfnOutput(`${id}-certificateArn`, scope, certificate.certificateArn);
87
- return certificate;
88
- }
89
- }
90
- exports.AcmManager = AcmManager;
91
- //# sourceMappingURL=acm-manager.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"acm-manager.js","sourceRoot":"","sources":["../../../../../src/lib/manager/aws/acm-manager.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;AAAA,iDAAkC;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iBAAiB,EAAE,KAAK,EAAE,WAAW,CAAC,cAAc,CAAC,CAAA;QAEhF,OAAO,WAAW,CAAA;IACpB,CAAC;CACF;AAlDD,gCAkDC"}
@@ -1,44 +0,0 @@
1
- import * as apig from 'aws-cdk-lib/aws-apigateway';
2
- import * as acm from 'aws-cdk-lib/aws-certificatemanager';
3
- import * as lambda from 'aws-cdk-lib/aws-lambda';
4
- import * as common from '../../common';
5
- /**
6
- * @stability stable
7
- * @category cdk-utils.api-manager
8
- * @subcategory Construct
9
- * @classdesc Provides operations on AWS API Gateway.
10
- * - A new instance of this class is injected into {@link common.CommonConstruct} constructor.
11
- * - If a custom construct extends {@link common.CommonConstruct}, an instance is available within the context.
12
- * @example
13
- * import { common.CommonConstruct } from '@gradientedge/cdk-utils'
14
- *
15
- * class CustomConstruct extends common.CommonConstruct {
16
- * constructor(parent: cdk.Construct, id: string, props: common.CommonStackProps) {
17
- * super(parent, id, props)
18
- * this.props = props
19
- * const lambdaFunction = this.lambdaManager.createLambdaFunction('MyFunction', this, role, layers, code)
20
- * this.apiManager.createLambdaRestApi('MyCertificate', this, props, lambdaFunction)
21
- * }
22
- * }
23
- *
24
- * @see [CDK API Gateway Module]{@link https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_apigateway-readme.html}
25
- */
26
- export declare class ApiManager {
27
- /**
28
- * @summary Method to create a Rest API with Lambda backend/target
29
- * @param {string} id scoped id of the resource
30
- * @param {common.CommonConstruct} scope scope in which this resource is defined
31
- * @param {AcmProps} props lambda rest restApi props
32
- * @param lambdaFunction
33
- */
34
- createLambdaRestApi(id: string, scope: common.CommonConstruct, props: apig.LambdaRestApiProps, lambdaFunction: lambda.Function): apig.LambdaRestApi;
35
- /**
36
- * @summary Method to create custom restApi domain
37
- * @param {string} id scoped id of the resource
38
- * @param {common.CommonConstruct} scope scope in which this resource is defined
39
- * @param domainName the domain name to use
40
- * @param certificate the certificate used for custom restApi domain
41
- */
42
- createApiDomain(id: string, scope: common.CommonConstruct, domainName: string, certificate: acm.ICertificate): apig.DomainName;
43
- }
44
- //# sourceMappingURL=api-manager.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"api-manager.d.ts","sourceRoot":"","sources":["../../../../../src/lib/manager/aws/api-manager.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,IAAI,MAAM,4BAA4B,CAAA;AAClD,OAAO,KAAK,GAAG,MAAM,oCAAoC,CAAA;AACzD,OAAO,KAAK,MAAM,MAAM,wBAAwB,CAAA;AAChD,OAAO,KAAK,MAAM,MAAM,cAAc,CAAA;AAGtC;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,qBAAa,UAAU;IACrB;;;;;;OAMG;IACI,mBAAmB,CACxB,EAAE,EAAE,MAAM,EACV,KAAK,EAAE,MAAM,CAAC,eAAe,EAC7B,KAAK,EAAE,IAAI,CAAC,kBAAkB,EAC9B,cAAc,EAAE,MAAM,CAAC,QAAQ;IA2CjC;;;;;;OAMG;IACI,eAAe,CAAC,EAAE,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,CAAC,eAAe,EAAE,UAAU,EAAE,MAAM,EAAE,WAAW,EAAE,GAAG,CAAC,YAAY;CAYpH"}
@@ -1,112 +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.ApiManager = void 0;
23
- const apig = __importStar(require("aws-cdk-lib/aws-apigateway"));
24
- const utils = __importStar(require("../../utils"));
25
- /**
26
- * @stability stable
27
- * @category cdk-utils.api-manager
28
- * @subcategory Construct
29
- * @classdesc Provides operations on AWS API Gateway.
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
- * const lambdaFunction = this.lambdaManager.createLambdaFunction('MyFunction', this, role, layers, code)
40
- * this.apiManager.createLambdaRestApi('MyCertificate', this, props, lambdaFunction)
41
- * }
42
- * }
43
- *
44
- * @see [CDK API Gateway Module]{@link https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_apigateway-readme.html}
45
- */
46
- class ApiManager {
47
- /**
48
- * @summary Method to create a Rest API with Lambda backend/target
49
- * @param {string} id scoped id of the resource
50
- * @param {common.CommonConstruct} scope scope in which this resource is defined
51
- * @param {AcmProps} props lambda rest restApi props
52
- * @param lambdaFunction
53
- */
54
- createLambdaRestApi(id, scope, props, lambdaFunction) {
55
- const api = new apig.LambdaRestApi(scope, `${id}`, {
56
- binaryMediaTypes: props.binaryMediaTypes,
57
- minimumCompressionSize: props.minimumCompressionSize,
58
- defaultMethodOptions: props.defaultMethodOptions,
59
- deploy: props.deploy || true,
60
- deployOptions: {
61
- stageName: scope.props.stage,
62
- accessLogDestination: props.deployOptions?.accessLogDestination,
63
- accessLogFormat: props.deployOptions?.accessLogFormat,
64
- tracingEnabled: props.deployOptions?.tracingEnabled,
65
- cacheClusterEnabled: props.deployOptions?.cacheClusterEnabled,
66
- cacheClusterSize: props.deployOptions?.cacheClusterSize,
67
- clientCertificateId: props.deployOptions?.clientCertificateId,
68
- description: `${id} - ${scope.props.stage} stage`,
69
- documentationVersion: props.deployOptions?.documentationVersion,
70
- variables: props.deployOptions?.variables,
71
- methodOptions: props.deployOptions?.methodOptions,
72
- },
73
- retainDeployments: props.retainDeployments,
74
- parameters: props.parameters,
75
- policy: props.policy,
76
- failOnWarnings: props.failOnWarnings || false,
77
- domainName: props.domainName,
78
- cloudWatchRole: props.cloudWatchRole || false,
79
- endpointTypes: props.endpointTypes,
80
- endpointConfiguration: {
81
- types: props.endpointConfiguration?.types || [apig.EndpointType.REGIONAL],
82
- vpcEndpoints: props.endpointConfiguration?.vpcEndpoints,
83
- },
84
- restApiName: `${props.restApiName}-${scope.props.stage}`,
85
- handler: lambdaFunction,
86
- defaultCorsPreflightOptions: props.defaultCorsPreflightOptions,
87
- proxy: props.proxy || true,
88
- });
89
- utils.createCfnOutput(`${id}-restApiId`, scope, api.restApiId);
90
- utils.createCfnOutput(`${id}-restApiName`, scope, api.restApiName);
91
- return api;
92
- }
93
- /**
94
- * @summary Method to create custom restApi domain
95
- * @param {string} id scoped id of the resource
96
- * @param {common.CommonConstruct} scope scope in which this resource is defined
97
- * @param domainName the domain name to use
98
- * @param certificate the certificate used for custom restApi domain
99
- */
100
- createApiDomain(id, scope, domainName, certificate) {
101
- const apiDomain = new apig.DomainName(scope, `${id}`, {
102
- domainName: domainName,
103
- certificate: certificate,
104
- endpointType: scope.isProductionStage() ? apig.EndpointType.EDGE : apig.EndpointType.REGIONAL,
105
- securityPolicy: apig.SecurityPolicy.TLS_1_2,
106
- });
107
- utils.createCfnOutput(`${id}-customDomainName`, scope, apiDomain.domainName);
108
- return apiDomain;
109
- }
110
- }
111
- exports.ApiManager = ApiManager;
112
- //# sourceMappingURL=api-manager.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"api-manager.js","sourceRoot":"","sources":["../../../../../src/lib/manager/aws/api-man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AAC,GAAG,EAAE,mBAAmB,EAAE,KAAK,EAAE,SAAS,CAAC,UAAU,CAAC,CAAA;QAE5E,OAAO,SAAS,CAAA;IAClB,CAAC;CACF;AA1ED,gCA0EC"}
@@ -1,66 +0,0 @@
1
- import * as appconfig from 'aws-cdk-lib/aws-appconfig';
2
- import * as common from '../../common';
3
- import * as types from '../../types';
4
- /**
5
- * @stability stable
6
- * @category cdk-utils.app-config-manager
7
- * @subcategory Construct
8
- * @returns { Map<string, string> } ArnsByRegion
9
- */
10
- export declare const ArnsByRegion: {
11
- [key: string]: string;
12
- };
13
- /**
14
- * @category cdk-utils.app-config-manager
15
- * @subcategory Construct
16
- * @classdesc Provides operations on AWS AppConfig.
17
- * - A new instance of this class is injected into {@link common.CommonConstruct} constructor.
18
- * - If a custom construct extends {@link common.CommonConstruct}, an instance is available within the context.
19
- * @example
20
- * import * as common from '@gradientedge/cdk-utils'
21
- *
22
- * class CustomConstruct extends common.common.CommonConstruct {
23
- * constructor(parent: cdk.Construct, id: string, props: common.CommonStackProps) {
24
- * super(parent, id, props)
25
- * this.props = props
26
- * this.appConfigManager.createApplication('MyApplication', this)
27
- * }
28
- * }
29
- *
30
- * @see [CDK AppConfig Module]{@link https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_appconfig-readme.html}
31
- */
32
- export declare class AppConfigManager {
33
- /**
34
- * Method to get static ARNs for AppConfig extensions
35
- * @param {common.CommonConstruct} scope scope in which this resource is defined
36
- */
37
- getArnForAppConfigExtension(scope: common.CommonConstruct): string;
38
- /**
39
- * @summary Method to create an AppConfig Application
40
- * @param {string} id scoped id of the resource
41
- * @param {common.CommonConstruct} scope scope in which this resource is defined
42
- * @param {types.AppConfigProps} props
43
- * @returns {appconfig.CfnApplication}
44
- */
45
- createApplication(id: string, scope: common.CommonConstruct, props: types.AppConfigProps): appconfig.CfnApplication;
46
- /**
47
- * @summary Method to create an AppConfig Environment for a given application
48
- * @param {string} id scoped id of the resource
49
- * @param {common.CommonConstruct} scope scope in which this resource is defined
50
- * @param {string} applicationId id of the application
51
- * @param {types.AppConfigProps} props
52
- * @returns {appconfig.CfnEnvironment}
53
- */
54
- createEnvironment(id: string, scope: common.CommonConstruct, applicationId: string, props: types.AppConfigProps): appconfig.CfnEnvironment;
55
- /**
56
- * @summary Method to create an AppConfig Configuration Profile for a given application
57
- * - <p>&#9888; The <b>locationUri</b> is defaulted to <i>hosted</i> if undefined</p>
58
- * @param {string} id scoped id of the resource
59
- * @param {common.CommonConstruct} scope scope in which this resource is defined
60
- * @param {string} applicationId id of the application
61
- * @param {types.AppConfigProps} props
62
- * @returns {appconfig.CfnConfigurationProfile}
63
- */
64
- createConfigurationProfile(id: string, scope: common.CommonConstruct, applicationId: string, props: types.AppConfigProps): appconfig.CfnConfigurationProfile;
65
- }
66
- //# sourceMappingURL=app-config-manager.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"app-config-manager.d.ts","sourceRoot":"","sources":["../../../../../src/lib/manager/aws/app-config-manager.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,SAAS,MAAM,2BAA2B,CAAA;AACtD,OAAO,KAAK,MAAM,MAAM,cAAc,CAAA;AACtC,OAAO,KAAK,KAAK,MAAM,aAAa,CAAA;AAGpC;;;;;GAKG;AACH,eAAO,MAAM,YAAY,EAAE;IAAE,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAAA;CAqBjD,CAAA;AAED;;;;;;;;;;;;;;;;;;GAkBG;AACH,qBAAa,gBAAgB;IAC3B;;;OAGG;IACI,2BAA2B,CAAC,KAAK,EAAE,MAAM,CAAC,eAAe;IAIhE;;;;;;OAMG;IACI,iBAAiB,CACtB,EAAE,EAAE,MAAM,EACV,KAAK,EAAE,MAAM,CAAC,eAAe,EAC7B,KAAK,EAAE,KAAK,CAAC,cAAc,GAC1B,SAAS,CAAC,cAAc;IAe3B;;;;;;;OAOG;IACI,iBAAiB,CACtB,EAAE,EAAE,MAAM,EACV,KAAK,EAAE,MAAM,CAAC,eAAe,EAC7B,aAAa,EAAE,MAAM,EACrB,KAAK,EAAE,KAAK,CAAC,cAAc,GAC1B,SAAS,CAAC,cAAc;IAiB3B;;;;;;;;OAQG;IACI,0BAA0B,CAC/B,EAAE,EAAE,MAAM,EACV,KAAK,EAAE,MAAM,CAAC,eAAe,EAC7B,aAAa,EAAE,MAAM,EACrB,KAAK,EAAE,KAAK,CAAC,cAAc,GAC1B,SAAS,CAAC,uBAAuB;CAkBrC"}
@@ -1,149 +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.AppConfigManager = exports.ArnsByRegion = void 0;
23
- const cdk = __importStar(require("aws-cdk-lib"));
24
- const appconfig = __importStar(require("aws-cdk-lib/aws-appconfig"));
25
- const utils = __importStar(require("../../utils"));
26
- /**
27
- * @stability stable
28
- * @category cdk-utils.app-config-manager
29
- * @subcategory Construct
30
- * @returns { Map<string, string> } ArnsByRegion
31
- */
32
- exports.ArnsByRegion = {
33
- 'us-east-1': 'arn:aws:lambda:us-east-1:027255383542:layer:AWS-AppConfig-Extension:11',
34
- 'us-east-2': 'arn:aws:lambda:us-east-2:728743619870:layer:AWS-AppConfig-Extension:15',
35
- 'us-west-1': 'arn:aws:lambda:us-west-1:958113053741:layer:AWS-AppConfig-Extension:11',
36
- 'us-west-2': 'arn:aws:lambda:us-west-2:359756378197:layer:AWS-AppConfig-Extension:18',
37
- 'ca-central-1': 'arn:aws:lambda:ca-central-1:039592058896:layer:AWS-AppConfig-Extension:15',
38
- 'eu-central-1': 'arn:aws:lambda:eu-central-1:066940009817:layer:AWS-AppConfig-Extension:19',
39
- 'eu-west-1': 'arn:aws:lambda:eu-west-1:434848589818:layer:AWS-AppConfig-Extension:11',
40
- 'eu-west-2': 'arn:aws:lambda:eu-west-2:282860088358:layer:AWS-AppConfig-Extension:15',
41
- 'eu-west-3': 'arn:aws:lambda:eu-west-3:493207061005:layer:AWS-AppConfig-Extension:15',
42
- 'eu-north-1': 'arn:aws:lambda:eu-north-1:646970417810:layer:AWS-AppConfig-Extension:19',
43
- 'ap-east-1': 'arn:aws:lambda:ap-east-1:630222743974:layer:AWS-AppConfig-Extension:15',
44
- 'ap-northeast-1': 'arn:aws:lambda:ap-northeast-1:980059726660:layer:AWS-AppConfig-Extension:12',
45
- 'ap-northeast-2': 'arn:aws:lambda:ap-northeast-2:826293736237:layer:AWS-AppConfig-Extension:19',
46
- 'ap-northeast-3': 'arn:aws:lambda:ap-northeast-3:706869817123:layer:AWS-AppConfig-Extension:3',
47
- 'ap-southeast-1': 'arn:aws:lambda:ap-southeast-1:421114256042:layer:AWS-AppConfig-Extension:12',
48
- 'ap-southeast-2': 'arn:aws:lambda:ap-southeast-2:080788657173:layer:AWS-AppConfig-Extension:19',
49
- 'ap-south-1': 'arn:aws:lambda:ap-south-1:554480029851:layer:AWS-AppConfig-Extension:20',
50
- 'sa-east-1': 'arn:aws:lambda:sa-east-1:000010852771:layer:AWS-AppConfig-Extension:11',
51
- 'af-south-1': 'arn:aws:lambda:af-south-1:574348263942:layer:AWS-AppConfig-Extension:15',
52
- 'me-south-1': 'arn:aws:lambda:me-south-1:559955524753:layer:AWS-AppConfig-Extension:15',
53
- };
54
- /**
55
- * @category cdk-utils.app-config-manager
56
- * @subcategory Construct
57
- * @classdesc Provides operations on AWS AppConfig.
58
- * - A new instance of this class is injected into {@link common.CommonConstruct} constructor.
59
- * - If a custom construct extends {@link common.CommonConstruct}, an instance is available within the context.
60
- * @example
61
- * import * as common from '@gradientedge/cdk-utils'
62
- *
63
- * class CustomConstruct extends common.common.CommonConstruct {
64
- * constructor(parent: cdk.Construct, id: string, props: common.CommonStackProps) {
65
- * super(parent, id, props)
66
- * this.props = props
67
- * this.appConfigManager.createApplication('MyApplication', this)
68
- * }
69
- * }
70
- *
71
- * @see [CDK AppConfig Module]{@link https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_appconfig-readme.html}
72
- */
73
- class AppConfigManager {
74
- /**
75
- * Method to get static ARNs for AppConfig extensions
76
- * @param {common.CommonConstruct} scope scope in which this resource is defined
77
- */
78
- getArnForAppConfigExtension(scope) {
79
- return exports.ArnsByRegion[scope.props.region];
80
- }
81
- /**
82
- * @summary Method to create an AppConfig Application
83
- * @param {string} id scoped id of the resource
84
- * @param {common.CommonConstruct} scope scope in which this resource is defined
85
- * @param {types.AppConfigProps} props
86
- * @returns {appconfig.CfnApplication}
87
- */
88
- createApplication(id, scope, props) {
89
- if (!props)
90
- throw `AppConfig props undefined`;
91
- const application = new appconfig.CfnApplication(scope, `${id}`, {
92
- name: `${props.application.name}-${scope.props.stage}`,
93
- description: props.application.description,
94
- tags: props.application.tags,
95
- });
96
- utils.createCfnOutput(`${id}-ApplicationId`, scope, cdk.Fn.ref(application.logicalId));
97
- utils.createCfnOutput(`${id}-ApplicationName`, scope, application.name);
98
- return application;
99
- }
100
- /**
101
- * @summary Method to create an AppConfig Environment for a given application
102
- * @param {string} id scoped id of the resource
103
- * @param {common.CommonConstruct} scope scope in which this resource is defined
104
- * @param {string} applicationId id of the application
105
- * @param {types.AppConfigProps} props
106
- * @returns {appconfig.CfnEnvironment}
107
- */
108
- createEnvironment(id, scope, applicationId, props) {
109
- if (!props)
110
- throw `AppConfig props undefined`;
111
- const environment = new appconfig.CfnEnvironment(scope, `${id}`, {
112
- applicationId: applicationId,
113
- name: scope.props.stage,
114
- description: props.environment.description,
115
- monitors: props.environment.monitors,
116
- tags: props.environment.tags,
117
- });
118
- utils.createCfnOutput(`${id}-configurationEnvironmentId`, scope, cdk.Fn.ref(environment.logicalId));
119
- utils.createCfnOutput(`${id}-configurationEnvironmentName`, scope, environment.name);
120
- return environment;
121
- }
122
- /**
123
- * @summary Method to create an AppConfig Configuration Profile for a given application
124
- * - <p>&#9888; The <b>locationUri</b> is defaulted to <i>hosted</i> if undefined</p>
125
- * @param {string} id scoped id of the resource
126
- * @param {common.CommonConstruct} scope scope in which this resource is defined
127
- * @param {string} applicationId id of the application
128
- * @param {types.AppConfigProps} props
129
- * @returns {appconfig.CfnConfigurationProfile}
130
- */
131
- createConfigurationProfile(id, scope, applicationId, props) {
132
- if (!props)
133
- throw `AppConfig props undefined`;
134
- const profile = new appconfig.CfnConfigurationProfile(scope, `${id}`, {
135
- applicationId: applicationId,
136
- locationUri: props.configurationProfile.locationUri || 'hosted',
137
- name: `${props.configurationProfile.name}-${scope.props.stage}`,
138
- description: props.configurationProfile.description,
139
- retrievalRoleArn: props.configurationProfile.retrievalRoleArn,
140
- tags: props.configurationProfile.tags,
141
- validators: props.configurationProfile.validators,
142
- });
143
- utils.createCfnOutput(`${id}-configurationProfileId`, scope, cdk.Fn.ref(profile.logicalId));
144
- utils.createCfnOutput(`${id}-configurationProfileName`, scope, profile.name);
145
- return profile;
146
- }
147
- }
148
- exports.AppConfigManager = AppConfigManager;
149
- //# sourceMappingURL=app-config-manager.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"app-config-manager.js","sourceRoot":"","sources":["../../../../../src/lib/manager/aws/app-config-manager.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;AAAA,iDAAkC;AAClC,qEAAsD;AAGtD,mDAAoC;AAEpC;;;;;GAK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;YAC5B,WAAW,EAAE,KAAK,CAAC,oBAAoB,CAAC,WAAW,IAAI,QAAQ;YAC/D,IAAI,EAAE,GAAG,KAAK,CAAC,oBAAoB,CAAC,IAAI,IAAI,KAAK,CAAC,KAAK,CAAC,KAAK,EAAE;YAC/D,WAAW,EAAE,KAAK,CAAC,oBAAoB,CAAC,WAAW;YACnD,gBAAgB,EAAE,KAAK,CAAC,oBAAoB,CAAC,gBAAgB;YAC7D,IAAI,EAAE,KAAK,CAAC,oBAAoB,CAAC,IAAI;YACrC,UAAU,EAAE,KAAK,CAAC,oBAAoB,CAAC,UAAU;SAClD,CAAC,CAAA;QAEF,KAAK,CAAC,eAAe,CAAC,GAAG,EAAE,yBAAyB,EAAE,KAAK,EAAE,GAAG,CAAC,EAAE,CAAC,GAAG,CAAC,OAAO,CAAC,SAAS,CAAC,CAAC,CAAA;QAC3F,KAAK,CAAC,eAAe,CAAC,GAAG,EAAE,2BAA2B,EAAE,KAAK,EAAE,OAAO,CAAC,IAAI,CAAC,CAAA;QAE5E,OAAO,OAAO,CAAA;IAChB,CAAC;CACF;AAjGD,4CAiGC"}
@@ -1,113 +0,0 @@
1
- import * as cdk from 'aws-cdk-lib';
2
- import * as acm from 'aws-cdk-lib/aws-certificatemanager';
3
- import * as cloudfront from 'aws-cdk-lib/aws-cloudfront';
4
- import * as origins from 'aws-cdk-lib/aws-cloudfront-origins';
5
- import * as ec2 from 'aws-cdk-lib/aws-ec2';
6
- import * as efs from 'aws-cdk-lib/aws-efs';
7
- import * as lambda from 'aws-cdk-lib/aws-lambda';
8
- import * as s3 from 'aws-cdk-lib/aws-s3';
9
- import * as common from '../../common';
10
- import * as types from '../../types';
11
- /**
12
- * @stability stable
13
- * @category cdk-utils.cloudfront-manager
14
- * @subcategory Construct
15
- * @classdesc Provides operations on AWS CloudFront.
16
- * - A new instance of this class is injected into {@link common.CommonConstruct} constructor.
17
- * - If a custom construct extends {@link common.CommonConstruct}, an instance is available within the context.
18
- * @example
19
- * import * as common from '@gradientedge/cdk-utils'
20
- *
21
- * class CustomConstruct extends common.common.CommonConstruct {
22
- * constructor(parent: cdk.Construct, id: string, props: common.CommonStackProps) {
23
- * super(parent, id, props)
24
- * this.props = props
25
- * this.cloudFrontManager.createCloudFrontDistribution(
26
- * 'MyDistribution',
27
- * this,
28
- * siteBucket,
29
- * logBucket,
30
- * originAccessIdentity,
31
- * certificate
32
- * )
33
- * }
34
- * }
35
- *
36
- * @see [CDK CloudFront Module]{@link https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_cloudfront-readme.html}
37
- */
38
- export declare class CloudFrontManager {
39
- createOriginAccessIdentity(id: string, scope: common.CommonConstruct, accessBucket?: s3.IBucket): cdk.aws_cloudfront.OriginAccessIdentity;
40
- /**
41
- * @deprecated Use `createDistributionWithS3Origin` instead
42
- *
43
- * @summary Method to create a cloudfront distribution
44
- * @param {string} id scoped id of the resource
45
- * @param {common.CommonConstruct} scope scope in which this resource is defined
46
- * @param {types.CloudFrontProps} props distribution properties
47
- * @param {s3.IBucket?} siteBucket
48
- * @param {s3.IBucket?} logBucket
49
- * @param {cloudfront.OriginAccessIdentity?} oai
50
- * @param {acm.ICertificate?} certificate
51
- * @param {string[]?} aliases
52
- */
53
- createCloudFrontDistribution(id: string, scope: common.CommonConstruct, props: types.CloudFrontProps, siteBucket?: s3.IBucket, logBucket?: s3.IBucket, oai?: cloudfront.OriginAccessIdentity, certificate?: acm.ICertificate, aliases?: string[]): cdk.aws_cloudfront.CloudFrontWebDistribution;
54
- /**
55
- * Method to create a CloudFront distribution with S3 Origin
56
- * @param {string} id scoped id of the resource
57
- * @param {common.CommonConstruct} scope scope in which this resource is defined
58
- * @param {types.DistributionProps} props distribution properties
59
- * @param {origins.S3Origin} origin
60
- * @param {s3.IBucket} siteBucket
61
- * @param {s3.IBucket?} logBucket
62
- * @param {cloudfront.OriginAccessIdentity?} oai
63
- * @param {acm.ICertificate?} certificate
64
- * @param {string[]?} aliases
65
- * @param {cloudfront.FunctionAssociation?} defaultFunctionAssociations
66
- */
67
- createDistributionWithS3Origin(id: string, scope: common.CommonConstruct, props: types.DistributionProps, origin: origins.S3Origin, siteBucket: s3.IBucket, logBucket?: s3.IBucket, oai?: cloudfront.OriginAccessIdentity, certificate?: acm.ICertificate, aliases?: string[], defaultFunctionAssociations?: cloudfront.FunctionAssociation[]): cdk.aws_cloudfront.Distribution;
68
- /**
69
- * Method to create a CloudFront distribution with HTTP Origin
70
- * @param {string} id scoped id of the resource
71
- * @param {common.CommonConstruct} scope scope in which this resource is defined
72
- * @param {types.DistributionProps} props distribution properties
73
- * @param {origins.S3Origin} origin
74
- * @param {string[]} domainNames
75
- * @param {s3.IBucket?} logBucket
76
- * @param {acm.ICertificate?} certificate
77
- * @param {cloudfront.FunctionAssociation?} defaultFunctionAssociations
78
- */
79
- createDistributionWithHttpOrigin(id: string, scope: common.CommonConstruct, props: types.DistributionProps, origin: origins.HttpOrigin, domainNames: string[], logBucket?: s3.IBucket, certificate?: acm.ICertificate, defaultFunctionAssociations?: cloudfront.FunctionAssociation[]): cdk.aws_cloudfront.Distribution;
80
- /**
81
- * @summary Method to provision a Lambda@Edge function
82
- *
83
- * @param {string} id scoped id of the resource
84
- * @param {common.CommonConstruct} scope scope in which this resource is defined
85
- * @param {types.LambdaEdgeProps} props lambda@edge properties
86
- * @param {lambda.ILayerVersion[]} layers
87
- * @param {lambda.AssetCode} code
88
- * @param {Map<string, string>} environment
89
- * @param {ec2.IVpc} vpc
90
- * @param {ec2.ISecurityGroup[]} securityGroups
91
- * @param {efs.IAccessPoint} accessPoint
92
- * @param {string} mountPath
93
- */
94
- createEdgeFunction(id: string, scope: common.CommonConstruct, props: types.LambdaEdgeProps, layers: lambda.ILayerVersion[], code: lambda.AssetCode, environment?: any, vpc?: ec2.IVpc, securityGroups?: ec2.ISecurityGroup[], accessPoint?: efs.IAccessPoint, mountPath?: string): cdk.aws_cloudfront.experimental.EdgeFunction;
95
- /**
96
- *
97
- * @param id
98
- * @param scope
99
- * @param dockerFilePath
100
- * @param distributionId
101
- * @param paths
102
- */
103
- invalidateCache(id: string, scope: common.CommonConstruct, dockerFilePath: string, distributionId: string, paths?: string): void;
104
- /**
105
- * @summary Method to provision a Cloudfront function
106
- *
107
- * @param {string} id scoped id of the resource
108
- * @param {common.CommonConstruct} scope scope in which this resource is defined
109
- * @param {types.CloudfrontFunctionProps} props
110
- */
111
- createCloudfrontFunction(id: string, scope: common.CommonConstruct, props: types.CloudfrontFunctionProps): cdk.aws_cloudfront.Function;
112
- }
113
- //# sourceMappingURL=cloudfront-manager.d.ts.map