truemark-cdk-lib 1.8.0 → 1.9.0-alpha.2

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 (520) hide show
  1. package/LICENSE +26 -201
  2. package/README.md +7 -8
  3. package/lib/aws-apigatewayv2/index.d.ts +2 -0
  4. package/{aws-cdk → lib/aws-apigatewayv2}/index.js +6 -2
  5. package/lib/aws-apigatewayv2/index.js.map +1 -0
  6. package/lib/aws-apigatewayv2/lib/index.d.ts +4 -0
  7. package/{aws-apigatewayv2 → lib/aws-apigatewayv2}/lib/index.js +6 -2
  8. package/lib/aws-apigatewayv2/lib/index.js.map +1 -0
  9. package/{aws-apigatewayv2 → lib/aws-apigatewayv2}/lib/standard-domain-name.d.ts +8 -7
  10. package/lib/aws-apigatewayv2/lib/standard-domain-name.js +71 -0
  11. package/lib/aws-apigatewayv2/lib/standard-domain-name.js.map +1 -0
  12. package/{aws-apigatewayv2 → lib/aws-apigatewayv2}/lib/standard-http-api.d.ts +8 -7
  13. package/lib/aws-apigatewayv2/lib/standard-http-api.js +54 -0
  14. package/lib/aws-apigatewayv2/lib/standard-http-api.js.map +1 -0
  15. package/{aws-apigatewayv2 → lib/aws-apigatewayv2}/lib/standard-web-socket-api.d.ts +7 -6
  16. package/lib/aws-apigatewayv2/lib/standard-web-socket-api.js +53 -0
  17. package/lib/aws-apigatewayv2/lib/standard-web-socket-api.js.map +1 -0
  18. package/lib/aws-cdk/index.d.ts +2 -0
  19. package/{aws-apigatewayv2 → lib/aws-cdk}/index.js +6 -2
  20. package/lib/aws-cdk/index.js.map +1 -0
  21. package/{aws-cdk → lib/aws-cdk}/lib/extended-app.d.ts +3 -2
  22. package/lib/aws-cdk/lib/extended-app.js +41 -0
  23. package/lib/aws-cdk/lib/extended-app.js.map +1 -0
  24. package/{aws-cdk → lib/aws-cdk}/lib/extended-construct.d.ts +3 -2
  25. package/lib/aws-cdk/lib/extended-construct.js +14 -0
  26. package/lib/aws-cdk/lib/extended-construct.js.map +1 -0
  27. package/{aws-cdk → lib/aws-cdk}/lib/extended-stack.d.ts +7 -6
  28. package/lib/aws-cdk/lib/extended-stack.js +66 -0
  29. package/lib/aws-cdk/lib/extended-stack.js.map +1 -0
  30. package/{aws-cdk → lib/aws-cdk}/lib/extended-stage.d.ts +4 -3
  31. package/lib/aws-cdk/lib/extended-stage.js +14 -0
  32. package/lib/aws-cdk/lib/extended-stage.js.map +1 -0
  33. package/lib/aws-cdk/lib/index.d.ts +7 -0
  34. package/{aws-cdk → lib/aws-cdk}/lib/index.js +6 -2
  35. package/lib/aws-cdk/lib/index.js.map +1 -0
  36. package/{aws-cdk → lib/aws-cdk}/lib/single-env-app.d.ts +2 -1
  37. package/lib/aws-cdk/lib/single-env-app.js +44 -0
  38. package/lib/aws-cdk/lib/single-env-app.js.map +1 -0
  39. package/{aws-cdk → lib/aws-cdk}/lib/standard-tags.d.ts +3 -2
  40. package/lib/aws-cdk/lib/standard-tags.js +292 -0
  41. package/lib/aws-cdk/lib/standard-tags.js.map +1 -0
  42. package/lib/aws-centergauge/index.d.ts +2 -0
  43. package/{aws-centergauge → lib/aws-centergauge}/index.js +6 -2
  44. package/lib/aws-centergauge/index.js.map +1 -0
  45. package/{aws-centergauge → lib/aws-centergauge}/lib/alerts-topic.d.ts +4 -3
  46. package/lib/aws-centergauge/lib/alerts-topic.js +65 -0
  47. package/lib/aws-centergauge/lib/alerts-topic.js.map +1 -0
  48. package/lib/aws-centergauge/lib/index.d.ts +2 -0
  49. package/{aws-centergauge → lib/aws-centergauge}/lib/index.js +6 -2
  50. package/lib/aws-centergauge/lib/index.js.map +1 -0
  51. package/lib/aws-cloudfront/index.d.ts +2 -0
  52. package/{aws-cloudfront → lib/aws-cloudfront}/index.js +6 -2
  53. package/lib/aws-cloudfront/index.js.map +1 -0
  54. package/{aws-cloudfront → lib/aws-cloudfront}/lib/behavior-builder.d.ts +8 -7
  55. package/lib/aws-cloudfront/lib/behavior-builder.js +202 -0
  56. package/lib/aws-cloudfront/lib/behavior-builder.js.map +1 -0
  57. package/{aws-cloudfront → lib/aws-cloudfront}/lib/distribution-builder.d.ts +9 -8
  58. package/lib/aws-cloudfront/lib/distribution-builder.js +212 -0
  59. package/lib/aws-cloudfront/lib/distribution-builder.js.map +1 -0
  60. package/lib/aws-cloudfront/lib/index.d.ts +7 -0
  61. package/{aws-cloudfront → lib/aws-cloudfront}/lib/index.js +6 -2
  62. package/lib/aws-cloudfront/lib/index.js.map +1 -0
  63. package/{aws-cloudfront → lib/aws-cloudfront}/lib/invalidation.d.ts +4 -3
  64. package/lib/aws-cloudfront/lib/invalidation.js +53 -0
  65. package/lib/aws-cloudfront/lib/invalidation.js.map +1 -0
  66. package/{aws-cloudfront → lib/aws-cloudfront}/lib/redirect-function.d.ts +7 -6
  67. package/lib/aws-cloudfront/lib/redirect-function.js +80 -0
  68. package/lib/aws-cloudfront/lib/redirect-function.js.map +1 -0
  69. package/{aws-cloudfront → lib/aws-cloudfront}/lib/standard-api-cache-policy.d.ts +3 -2
  70. package/lib/aws-cloudfront/lib/standard-api-cache-policy.js +28 -0
  71. package/lib/aws-cloudfront/lib/standard-api-cache-policy.js.map +1 -0
  72. package/{aws-cloudfront → lib/aws-cloudfront}/lib/standard-api-origin-request-policy.d.ts +3 -2
  73. package/lib/aws-cloudfront/lib/standard-api-origin-request-policy.js +24 -0
  74. package/lib/aws-cloudfront/lib/standard-api-origin-request-policy.js.map +1 -0
  75. package/lib/aws-cloudwatch/index.d.ts +2 -0
  76. package/lib/aws-cloudwatch/index.js +18 -0
  77. package/lib/aws-cloudwatch/index.js.map +1 -0
  78. package/{aws-cloudwatch → lib/aws-cloudwatch}/lib/estimated-charges-alarm.d.ts +6 -5
  79. package/lib/aws-cloudwatch/lib/estimated-charges-alarm.js +26 -0
  80. package/lib/aws-cloudwatch/lib/estimated-charges-alarm.js.map +1 -0
  81. package/{aws-cloudwatch → lib/aws-cloudwatch}/lib/extended-alarm.d.ts +4 -3
  82. package/lib/aws-cloudwatch/lib/extended-alarm.js +57 -0
  83. package/lib/aws-cloudwatch/lib/extended-alarm.js.map +1 -0
  84. package/lib/aws-cloudwatch/lib/index.d.ts +7 -0
  85. package/{aws-cloudwatch → lib/aws-cloudwatch}/lib/index.js +6 -2
  86. package/lib/aws-cloudwatch/lib/index.js.map +1 -0
  87. package/{aws-cloudwatch → lib/aws-cloudwatch}/lib/log-metric-alarm.d.ts +6 -5
  88. package/lib/aws-cloudwatch/lib/log-metric-alarm.js +90 -0
  89. package/lib/aws-cloudwatch/lib/log-metric-alarm.js.map +1 -0
  90. package/{aws-cloudwatch → lib/aws-cloudwatch}/lib/log-metric-filter.d.ts +5 -4
  91. package/lib/aws-cloudwatch/lib/log-metric-filter.js +38 -0
  92. package/lib/aws-cloudwatch/lib/log-metric-filter.js.map +1 -0
  93. package/{aws-cloudwatch → lib/aws-cloudwatch}/lib/metric-alarm-base.d.ts +6 -5
  94. package/lib/aws-cloudwatch/lib/metric-alarm-base.js +74 -0
  95. package/lib/aws-cloudwatch/lib/metric-alarm-base.js.map +1 -0
  96. package/lib/aws-cloudwatch/lib/metric-helper.d.ts +5 -0
  97. package/lib/aws-cloudwatch/lib/metric-helper.js +20 -0
  98. package/lib/aws-cloudwatch/lib/metric-helper.js.map +1 -0
  99. package/lib/aws-codepipeline/index.d.ts +2 -0
  100. package/lib/aws-codepipeline/index.js +18 -0
  101. package/lib/aws-codepipeline/index.js.map +1 -0
  102. package/{aws-codepipeline → lib/aws-codepipeline}/lib/artifact-bucket.d.ts +4 -3
  103. package/lib/aws-codepipeline/lib/artifact-bucket.js +31 -0
  104. package/lib/aws-codepipeline/lib/artifact-bucket.js.map +1 -0
  105. package/{aws-codepipeline → lib/aws-codepipeline}/lib/cdk-pipeline.d.ts +10 -9
  106. package/lib/aws-codepipeline/lib/cdk-pipeline.js +240 -0
  107. package/lib/aws-codepipeline/lib/cdk-pipeline.js.map +1 -0
  108. package/{aws-codepipeline → lib/aws-codepipeline}/lib/enums.d.ts +1 -0
  109. package/lib/aws-codepipeline/lib/enums.js +10 -0
  110. package/lib/aws-codepipeline/lib/enums.js.map +1 -0
  111. package/lib/aws-codepipeline/lib/index.d.ts +5 -0
  112. package/{aws-codepipeline → lib/aws-codepipeline}/lib/index.js +6 -2
  113. package/lib/aws-codepipeline/lib/index.js.map +1 -0
  114. package/{aws-codepipeline → lib/aws-codepipeline}/lib/pipeline-notification-rule.d.ts +6 -5
  115. package/lib/aws-codepipeline/lib/pipeline-notification-rule.js +79 -0
  116. package/lib/aws-codepipeline/lib/pipeline-notification-rule.js.map +1 -0
  117. package/lib/aws-dynamodb/index.d.ts +2 -0
  118. package/lib/aws-dynamodb/index.js +18 -0
  119. package/lib/aws-dynamodb/index.js.map +1 -0
  120. package/{aws-dynamodb → lib/aws-dynamodb}/lib/batch-write-item.d.ts +8 -7
  121. package/lib/aws-dynamodb/lib/batch-write-item.js +114 -0
  122. package/lib/aws-dynamodb/lib/batch-write-item.js.map +1 -0
  123. package/{aws-dynamodb → lib/aws-dynamodb}/lib/extended-table.d.ts +6 -5
  124. package/lib/aws-dynamodb/lib/extended-table.js +30 -0
  125. package/lib/aws-dynamodb/lib/extended-table.js.map +1 -0
  126. package/lib/aws-dynamodb/lib/index.d.ts +7 -0
  127. package/{aws-dynamodb → lib/aws-dynamodb}/lib/index.js +6 -2
  128. package/lib/aws-dynamodb/lib/index.js.map +1 -0
  129. package/{aws-dynamodb → lib/aws-dynamodb}/lib/put-item.d.ts +4 -3
  130. package/lib/aws-dynamodb/lib/put-item.js +50 -0
  131. package/lib/aws-dynamodb/lib/put-item.js.map +1 -0
  132. package/{aws-dynamodb → lib/aws-dynamodb}/lib/put-items.d.ts +4 -3
  133. package/lib/aws-dynamodb/lib/put-items.js +27 -0
  134. package/lib/aws-dynamodb/lib/put-items.js.map +1 -0
  135. package/{aws-dynamodb → lib/aws-dynamodb}/lib/standard-table.d.ts +6 -5
  136. package/lib/aws-dynamodb/lib/standard-table.js +41 -0
  137. package/lib/aws-dynamodb/lib/standard-table.js.map +1 -0
  138. package/{aws-dynamodb → lib/aws-dynamodb}/lib/table-alarms.d.ts +5 -4
  139. package/lib/aws-dynamodb/lib/table-alarms.js +49 -0
  140. package/lib/aws-dynamodb/lib/table-alarms.js.map +1 -0
  141. package/lib/aws-ecs/index.d.ts +2 -0
  142. package/lib/aws-ecs/index.js +18 -0
  143. package/lib/aws-ecs/index.js.map +1 -0
  144. package/{aws-ecs → lib/aws-ecs}/lib/ecs-service-update.d.ts +4 -3
  145. package/lib/aws-ecs/lib/ecs-service-update.js +47 -0
  146. package/lib/aws-ecs/lib/ecs-service-update.js.map +1 -0
  147. package/lib/aws-ecs/lib/index.d.ts +7 -0
  148. package/{aws-ecs → lib/aws-ecs}/lib/index.js +6 -2
  149. package/lib/aws-ecs/lib/index.js.map +1 -0
  150. package/{aws-ecs → lib/aws-ecs}/lib/log-configuration.d.ts +4 -3
  151. package/lib/aws-ecs/lib/log-configuration.js +3 -0
  152. package/lib/aws-ecs/lib/log-configuration.js.map +1 -0
  153. package/{aws-ecs → lib/aws-ecs}/lib/standard-application-fargate-service.d.ts +7 -6
  154. package/lib/aws-ecs/lib/standard-application-fargate-service.js +103 -0
  155. package/lib/aws-ecs/lib/standard-application-fargate-service.js.map +1 -0
  156. package/{aws-ecs → lib/aws-ecs}/lib/standard-fargate-cluster.d.ts +11 -10
  157. package/lib/aws-ecs/lib/standard-fargate-cluster.js +92 -0
  158. package/lib/aws-ecs/lib/standard-fargate-cluster.js.map +1 -0
  159. package/{aws-ecs → lib/aws-ecs}/lib/standard-fargate-service.d.ts +11 -10
  160. package/lib/aws-ecs/lib/standard-fargate-service.js +199 -0
  161. package/lib/aws-ecs/lib/standard-fargate-service.js.map +1 -0
  162. package/{aws-ecs → lib/aws-ecs}/lib/standard-network-fargate-service.d.ts +7 -6
  163. package/lib/aws-ecs/lib/standard-network-fargate-service.js +69 -0
  164. package/lib/aws-ecs/lib/standard-network-fargate-service.js.map +1 -0
  165. package/lib/aws-lambda/index.d.ts +2 -0
  166. package/lib/aws-lambda/index.js +18 -0
  167. package/lib/aws-lambda/index.js.map +1 -0
  168. package/{aws-lambda → lib/aws-lambda}/lib/extended-function.d.ts +5 -4
  169. package/lib/aws-lambda/lib/extended-function.js +34 -0
  170. package/lib/aws-lambda/lib/extended-function.js.map +1 -0
  171. package/{aws-lambda → lib/aws-lambda}/lib/extended-go-function.d.ts +6 -5
  172. package/lib/aws-lambda/lib/extended-go-function.js +34 -0
  173. package/lib/aws-lambda/lib/extended-go-function.js.map +1 -0
  174. package/{aws-lambda → lib/aws-lambda}/lib/extended-nodejs-function.d.ts +6 -5
  175. package/lib/aws-lambda/lib/extended-nodejs-function.js +57 -0
  176. package/lib/aws-lambda/lib/extended-nodejs-function.js.map +1 -0
  177. package/{aws-lambda → lib/aws-lambda}/lib/extended-python-function.d.ts +6 -5
  178. package/lib/aws-lambda/lib/extended-python-function.js +34 -0
  179. package/lib/aws-lambda/lib/extended-python-function.js.map +1 -0
  180. package/{aws-lambda → lib/aws-lambda}/lib/function-alarms.d.ts +7 -6
  181. package/lib/aws-lambda/lib/function-alarms.js +127 -0
  182. package/lib/aws-lambda/lib/function-alarms.js.map +1 -0
  183. package/{aws-lambda → lib/aws-lambda}/lib/function-deployment.d.ts +6 -5
  184. package/lib/aws-lambda/lib/function-deployment.js +66 -0
  185. package/lib/aws-lambda/lib/function-deployment.js.map +1 -0
  186. package/lib/aws-lambda/lib/index.d.ts +9 -0
  187. package/{aws-lambda → lib/aws-lambda}/lib/index.js +6 -2
  188. package/lib/aws-lambda/lib/index.js.map +1 -0
  189. package/{aws-lambda → lib/aws-lambda}/lib/standard-function.d.ts +6 -5
  190. package/lib/aws-lambda/lib/standard-function.js +56 -0
  191. package/lib/aws-lambda/lib/standard-function.js.map +1 -0
  192. package/{aws-lambda → lib/aws-lambda}/lib/standard-python-function.d.ts +5 -4
  193. package/lib/aws-lambda/lib/standard-python-function.js +53 -0
  194. package/lib/aws-lambda/lib/standard-python-function.js.map +1 -0
  195. package/lib/aws-monitoring/index.d.ts +2 -0
  196. package/lib/aws-monitoring/index.js +18 -0
  197. package/lib/aws-monitoring/index.js.map +1 -0
  198. package/{aws-monitoring → lib/aws-monitoring}/lib/alarm-facade.d.ts +6 -5
  199. package/lib/aws-monitoring/lib/alarm-facade.js +112 -0
  200. package/lib/aws-monitoring/lib/alarm-facade.js.map +1 -0
  201. package/{aws-monitoring → lib/aws-monitoring}/lib/alarm-helper.d.ts +6 -5
  202. package/lib/aws-monitoring/lib/alarm-helper.js +35 -0
  203. package/lib/aws-monitoring/lib/alarm-helper.js.map +1 -0
  204. package/{aws-monitoring → lib/aws-monitoring}/lib/alarms-base.d.ts +6 -5
  205. package/lib/aws-monitoring/lib/alarms-base.js +63 -0
  206. package/lib/aws-monitoring/lib/alarms-base.js.map +1 -0
  207. package/lib/aws-monitoring/lib/index.d.ts +5 -0
  208. package/{aws-monitoring → lib/aws-monitoring}/lib/index.js +6 -2
  209. package/lib/aws-monitoring/lib/index.js.map +1 -0
  210. package/{aws-monitoring → lib/aws-monitoring}/lib/standard-alarm-actions-strategy.d.ts +3 -2
  211. package/lib/aws-monitoring/lib/standard-alarm-actions-strategy.js +20 -0
  212. package/lib/aws-monitoring/lib/standard-alarm-actions-strategy.js.map +1 -0
  213. package/lib/aws-patterns-domain-redirect/index.d.ts +2 -0
  214. package/lib/aws-patterns-domain-redirect/index.js +18 -0
  215. package/lib/aws-patterns-domain-redirect/index.js.map +1 -0
  216. package/{aws-patterns-domain-redirect → lib/aws-patterns-domain-redirect}/lib/domain-redirect.d.ts +7 -6
  217. package/lib/aws-patterns-domain-redirect/lib/domain-redirect.js +80 -0
  218. package/lib/aws-patterns-domain-redirect/lib/domain-redirect.js.map +1 -0
  219. package/lib/aws-patterns-domain-redirect/lib/index.d.ts +2 -0
  220. package/{aws-patterns-domain-redirect → lib/aws-patterns-domain-redirect}/lib/index.js +6 -2
  221. package/lib/aws-patterns-domain-redirect/lib/index.js.map +1 -0
  222. package/lib/aws-patterns-website/index.d.ts +2 -0
  223. package/lib/aws-patterns-website/index.js +18 -0
  224. package/lib/aws-patterns-website/index.js.map +1 -0
  225. package/lib/aws-patterns-website/lib/index.d.ts +2 -0
  226. package/{aws-patterns-website → lib/aws-patterns-website}/lib/index.js +6 -2
  227. package/lib/aws-patterns-website/lib/index.js.map +1 -0
  228. package/{aws-patterns-website → lib/aws-patterns-website}/lib/website.d.ts +9 -8
  229. package/lib/aws-patterns-website/lib/website.js +201 -0
  230. package/lib/aws-patterns-website/lib/website.js.map +1 -0
  231. package/lib/aws-patterns-wordpress/index.d.ts +2 -0
  232. package/lib/aws-patterns-wordpress/index.js +18 -0
  233. package/lib/aws-patterns-wordpress/index.js.map +1 -0
  234. package/lib/aws-patterns-wordpress/lib/index.d.ts +3 -0
  235. package/{aws-patterns-wordpress → lib/aws-patterns-wordpress}/lib/index.js +6 -2
  236. package/lib/aws-patterns-wordpress/lib/index.js.map +1 -0
  237. package/{aws-patterns-wordpress → lib/aws-patterns-wordpress}/lib/word-press-distribution.d.ts +6 -5
  238. package/lib/aws-patterns-wordpress/lib/word-press-distribution.js +82 -0
  239. package/lib/aws-patterns-wordpress/lib/word-press-distribution.js.map +1 -0
  240. package/{aws-patterns-wordpress → lib/aws-patterns-wordpress}/lib/word-press-instance.d.ts +8 -7
  241. package/lib/aws-patterns-wordpress/lib/word-press-instance.js +222 -0
  242. package/lib/aws-patterns-wordpress/lib/word-press-instance.js.map +1 -0
  243. package/lib/aws-route53/index.d.ts +2 -0
  244. package/lib/aws-route53/index.js +18 -0
  245. package/lib/aws-route53/index.js.map +1 -0
  246. package/{aws-route53 → lib/aws-route53}/lib/domain-name.d.ts +7 -6
  247. package/lib/aws-route53/lib/domain-name.js +283 -0
  248. package/lib/aws-route53/lib/domain-name.js.map +1 -0
  249. package/{aws-route53 → lib/aws-route53}/lib/extended-record-target.d.ts +2 -1
  250. package/lib/aws-route53/lib/extended-record-target.js +37 -0
  251. package/lib/aws-route53/lib/extended-record-target.js.map +1 -0
  252. package/lib/aws-route53/lib/index.d.ts +5 -0
  253. package/{aws-route53 → lib/aws-route53}/lib/index.js +6 -2
  254. package/lib/aws-route53/lib/index.js.map +1 -0
  255. package/{aws-route53 → lib/aws-route53}/lib/latency-a-record.d.ts +3 -2
  256. package/lib/aws-route53/lib/latency-a-record.js +23 -0
  257. package/lib/aws-route53/lib/latency-a-record.js.map +1 -0
  258. package/{aws-route53 → lib/aws-route53}/lib/weighted-a-record.d.ts +3 -2
  259. package/lib/aws-route53/lib/weighted-a-record.js +23 -0
  260. package/lib/aws-route53/lib/weighted-a-record.js.map +1 -0
  261. package/lib/aws-s3/index.d.ts +2 -0
  262. package/lib/aws-s3/index.js +18 -0
  263. package/lib/aws-s3/index.js.map +1 -0
  264. package/{aws-s3 → lib/aws-s3}/lib/cloud-front-bucket.d.ts +10 -9
  265. package/lib/aws-s3/lib/cloud-front-bucket.js +238 -0
  266. package/lib/aws-s3/lib/cloud-front-bucket.js.map +1 -0
  267. package/lib/aws-s3/lib/index.d.ts +4 -0
  268. package/{aws-s3 → lib/aws-s3}/lib/index.js +6 -2
  269. package/lib/aws-s3/lib/index.js.map +1 -0
  270. package/{aws-s3 → lib/aws-s3}/lib/replication-role.d.ts +5 -4
  271. package/lib/aws-s3/lib/replication-role.js +88 -0
  272. package/lib/aws-s3/lib/replication-role.js.map +1 -0
  273. package/{aws-s3 → lib/aws-s3}/lib/website-bucket.d.ts +9 -8
  274. package/lib/aws-s3/lib/website-bucket.js +199 -0
  275. package/lib/aws-s3/lib/website-bucket.js.map +1 -0
  276. package/lib/aws-ses/index.d.ts +2 -0
  277. package/lib/aws-ses/index.js +18 -0
  278. package/lib/aws-ses/index.js.map +1 -0
  279. package/lib/aws-ses/lib/index.d.ts +2 -0
  280. package/{aws-ses → lib/aws-ses}/lib/index.js +6 -2
  281. package/lib/aws-ses/lib/index.js.map +1 -0
  282. package/{aws-ses → lib/aws-ses}/lib/receipt-rule-set-activator.d.ts +3 -2
  283. package/lib/aws-ses/lib/receipt-rule-set-activator.js +31 -0
  284. package/lib/aws-ses/lib/receipt-rule-set-activator.js.map +1 -0
  285. package/lib/aws-sqs/index.d.ts +2 -0
  286. package/lib/aws-sqs/index.js +18 -0
  287. package/lib/aws-sqs/index.js.map +1 -0
  288. package/{aws-sqs → lib/aws-sqs}/lib/extended-queue.d.ts +4 -3
  289. package/lib/aws-sqs/lib/extended-queue.js +33 -0
  290. package/lib/aws-sqs/lib/extended-queue.js.map +1 -0
  291. package/{aws-sqs → lib/aws-sqs}/lib/index.d.ts +1 -0
  292. package/{aws-sqs → lib/aws-sqs}/lib/index.js +6 -2
  293. package/lib/aws-sqs/lib/index.js.map +1 -0
  294. package/{aws-sqs → lib/aws-sqs}/lib/queue-alarms.d.ts +5 -4
  295. package/lib/aws-sqs/lib/queue-alarms.js +49 -0
  296. package/lib/aws-sqs/lib/queue-alarms.js.map +1 -0
  297. package/{aws-sqs → lib/aws-sqs}/lib/standard-queue.d.ts +10 -9
  298. package/lib/aws-sqs/lib/standard-queue.js +108 -0
  299. package/lib/aws-sqs/lib/standard-queue.js.map +1 -0
  300. package/lib/aws-ssm/index.d.ts +2 -0
  301. package/lib/aws-ssm/index.js +18 -0
  302. package/lib/aws-ssm/index.js.map +1 -0
  303. package/lib/aws-ssm/lib/index.d.ts +4 -0
  304. package/{aws-ssm → lib/aws-ssm}/lib/index.js +6 -2
  305. package/lib/aws-ssm/lib/index.js.map +1 -0
  306. package/{aws-ssm → lib/aws-ssm}/lib/parameter-paths.d.ts +3 -2
  307. package/lib/aws-ssm/lib/parameter-paths.js +67 -0
  308. package/lib/aws-ssm/lib/parameter-paths.js.map +1 -0
  309. package/{aws-ssm → lib/aws-ssm}/lib/parameter-reader.d.ts +4 -3
  310. package/lib/aws-ssm/lib/parameter-reader.js +42 -0
  311. package/lib/aws-ssm/lib/parameter-reader.js.map +1 -0
  312. package/{aws-ssm → lib/aws-ssm}/lib/parameter-store.d.ts +3 -2
  313. package/lib/aws-ssm/lib/parameter-store.js +62 -0
  314. package/lib/aws-ssm/lib/parameter-store.js.map +1 -0
  315. package/lib/aws-vpc/index.d.ts +2 -0
  316. package/lib/aws-vpc/index.js +18 -0
  317. package/lib/aws-vpc/index.js.map +1 -0
  318. package/lib/aws-vpc/lib/index.d.ts +2 -0
  319. package/{aws-vpc → lib/aws-vpc}/lib/index.js +6 -2
  320. package/lib/aws-vpc/lib/index.js.map +1 -0
  321. package/{aws-vpc → lib/aws-vpc}/lib/network-parameters.d.ts +4 -3
  322. package/lib/aws-vpc/lib/network-parameters.js +307 -0
  323. package/lib/aws-vpc/lib/network-parameters.js.map +1 -0
  324. package/lib/helpers/index.d.ts +2 -0
  325. package/lib/helpers/index.js +18 -0
  326. package/lib/helpers/index.js.map +1 -0
  327. package/lib/helpers/lib/index.d.ts +3 -0
  328. package/{helpers → lib/helpers}/lib/index.js +6 -2
  329. package/lib/helpers/lib/index.js.map +1 -0
  330. package/{helpers → lib/helpers}/lib/shell-helper.d.ts +1 -0
  331. package/lib/helpers/lib/shell-helper.js +75 -0
  332. package/lib/helpers/lib/shell-helper.js.map +1 -0
  333. package/{helpers → lib/helpers}/lib/string-helper.d.ts +1 -0
  334. package/lib/helpers/lib/string-helper.js +93 -0
  335. package/lib/helpers/lib/string-helper.js.map +1 -0
  336. package/lib/index.d.ts +21 -0
  337. package/lib/index.js +24 -0
  338. package/lib/index.js.map +1 -0
  339. package/lib/truemark.d.ts +3 -0
  340. package/lib/truemark.js +9 -0
  341. package/lib/truemark.js.map +1 -0
  342. package/package.json +61 -38
  343. package/aws-apigatewayv2/index.d.ts +0 -1
  344. package/aws-apigatewayv2/lib/index.d.ts +0 -3
  345. package/aws-apigatewayv2/lib/standard-domain-name.js +0 -68
  346. package/aws-apigatewayv2/lib/standard-http-api.js +0 -52
  347. package/aws-apigatewayv2/lib/standard-web-socket-api.js +0 -53
  348. package/aws-cdk/index.d.ts +0 -1
  349. package/aws-cdk/lib/extended-app.js +0 -37
  350. package/aws-cdk/lib/extended-construct.js +0 -14
  351. package/aws-cdk/lib/extended-stack.js +0 -66
  352. package/aws-cdk/lib/extended-stack.test.d.ts +0 -1
  353. package/aws-cdk/lib/extended-stack.test.js +0 -21
  354. package/aws-cdk/lib/extended-stage.js +0 -14
  355. package/aws-cdk/lib/index.d.ts +0 -6
  356. package/aws-cdk/lib/single-env-app.js +0 -44
  357. package/aws-cdk/lib/standard-tags.js +0 -292
  358. package/aws-cdk/lib/standard-tags.test.d.ts +0 -1
  359. package/aws-cdk/lib/standard-tags.test.js +0 -128
  360. package/aws-centergauge/index.d.ts +0 -1
  361. package/aws-centergauge/lib/alerts-topic.js +0 -63
  362. package/aws-centergauge/lib/index.d.ts +0 -1
  363. package/aws-cloudfront/index.d.ts +0 -1
  364. package/aws-cloudfront/lib/behavior-builder.js +0 -202
  365. package/aws-cloudfront/lib/distribution-builder.js +0 -211
  366. package/aws-cloudfront/lib/distribution-builder.test.d.ts +0 -1
  367. package/aws-cloudfront/lib/distribution-builder.test.js +0 -16
  368. package/aws-cloudfront/lib/index.d.ts +0 -6
  369. package/aws-cloudfront/lib/invalidation.js +0 -51
  370. package/aws-cloudfront/lib/redirect-function.js +0 -80
  371. package/aws-cloudfront/lib/standard-api-cache-policy.js +0 -28
  372. package/aws-cloudfront/lib/standard-api-origin-request-policy.js +0 -24
  373. package/aws-cloudwatch/index.d.ts +0 -1
  374. package/aws-cloudwatch/index.js +0 -14
  375. package/aws-cloudwatch/lib/estimated-charges-alarm.js +0 -26
  376. package/aws-cloudwatch/lib/estimated-charges-alarm.test.d.ts +0 -1
  377. package/aws-cloudwatch/lib/estimated-charges-alarm.test.js +0 -28
  378. package/aws-cloudwatch/lib/extended-alarm.js +0 -57
  379. package/aws-cloudwatch/lib/index.d.ts +0 -6
  380. package/aws-cloudwatch/lib/log-metric-alarm.js +0 -90
  381. package/aws-cloudwatch/lib/log-metric-filter.js +0 -38
  382. package/aws-cloudwatch/lib/metric-alarm-base.js +0 -74
  383. package/aws-cloudwatch/lib/metric-helper.d.ts +0 -4
  384. package/aws-cloudwatch/lib/metric-helper.js +0 -20
  385. package/aws-codepipeline/index.d.ts +0 -1
  386. package/aws-codepipeline/index.js +0 -14
  387. package/aws-codepipeline/lib/artifact-bucket.js +0 -37
  388. package/aws-codepipeline/lib/cdk-pipeline.js +0 -238
  389. package/aws-codepipeline/lib/cdk-pipeline.test.d.ts +0 -1
  390. package/aws-codepipeline/lib/cdk-pipeline.test.js +0 -17
  391. package/aws-codepipeline/lib/enums.js +0 -10
  392. package/aws-codepipeline/lib/index.d.ts +0 -4
  393. package/aws-codepipeline/lib/pipeline-notification-rule.js +0 -79
  394. package/aws-dynamodb/index.d.ts +0 -1
  395. package/aws-dynamodb/index.js +0 -14
  396. package/aws-dynamodb/lib/batch-write-item.js +0 -112
  397. package/aws-dynamodb/lib/batch-write-item.test.d.ts +0 -1
  398. package/aws-dynamodb/lib/batch-write-item.test.js +0 -42
  399. package/aws-dynamodb/lib/extended-table.js +0 -30
  400. package/aws-dynamodb/lib/extended-table.test.d.ts +0 -1
  401. package/aws-dynamodb/lib/extended-table.test.js +0 -32
  402. package/aws-dynamodb/lib/index.d.ts +0 -6
  403. package/aws-dynamodb/lib/put-item.js +0 -46
  404. package/aws-dynamodb/lib/put-item.test.d.ts +0 -1
  405. package/aws-dynamodb/lib/put-item.test.js +0 -29
  406. package/aws-dynamodb/lib/put-items.js +0 -27
  407. package/aws-dynamodb/lib/standard-table.js +0 -37
  408. package/aws-dynamodb/lib/table-alarms.js +0 -49
  409. package/aws-ecs/index.d.ts +0 -1
  410. package/aws-ecs/index.js +0 -14
  411. package/aws-ecs/lib/ecs-service-update.js +0 -43
  412. package/aws-ecs/lib/index.d.ts +0 -6
  413. package/aws-ecs/lib/log-configuration.js +0 -3
  414. package/aws-ecs/lib/standard-application-fargate-service.js +0 -98
  415. package/aws-ecs/lib/standard-fargate-cluster.js +0 -85
  416. package/aws-ecs/lib/standard-fargate-service.js +0 -195
  417. package/aws-ecs/lib/standard-network-fargate-service.js +0 -69
  418. package/aws-lambda/index.d.ts +0 -1
  419. package/aws-lambda/index.js +0 -14
  420. package/aws-lambda/lib/bundle-python.sh +0 -9
  421. package/aws-lambda/lib/extended-function.js +0 -34
  422. package/aws-lambda/lib/extended-function.test.d.ts +0 -1
  423. package/aws-lambda/lib/extended-function.test.js +0 -20
  424. package/aws-lambda/lib/extended-go-function.js +0 -34
  425. package/aws-lambda/lib/extended-go-function.test.d.ts +0 -1
  426. package/aws-lambda/lib/extended-go-function.test.js +0 -18
  427. package/aws-lambda/lib/extended-nodejs-function.js +0 -57
  428. package/aws-lambda/lib/extended-nodejs-function.test.d.ts +0 -1
  429. package/aws-lambda/lib/extended-nodejs-function.test.js +0 -20
  430. package/aws-lambda/lib/extended-python-function.js +0 -34
  431. package/aws-lambda/lib/extended-python-function.test.d.ts +0 -1
  432. package/aws-lambda/lib/extended-python-function.test.js +0 -17
  433. package/aws-lambda/lib/function-alarms.js +0 -118
  434. package/aws-lambda/lib/function-deployment.js +0 -66
  435. package/aws-lambda/lib/index.d.ts +0 -8
  436. package/aws-lambda/lib/standard-function.js +0 -52
  437. package/aws-lambda/lib/standard-python-function.js +0 -51
  438. package/aws-lambda/lib/standard-python-function.test.d.ts +0 -1
  439. package/aws-lambda/lib/standard-python-function.test.js +0 -16
  440. package/aws-monitoring/index.d.ts +0 -1
  441. package/aws-monitoring/index.js +0 -14
  442. package/aws-monitoring/lib/alarm-facade.js +0 -107
  443. package/aws-monitoring/lib/alarm-facade.test.d.ts +0 -1
  444. package/aws-monitoring/lib/alarm-facade.test.js +0 -77
  445. package/aws-monitoring/lib/alarm-helper.js +0 -35
  446. package/aws-monitoring/lib/alarms-base.js +0 -58
  447. package/aws-monitoring/lib/index.d.ts +0 -4
  448. package/aws-monitoring/lib/standard-alarm-actions-strategy.js +0 -20
  449. package/aws-patterns-domain-redirect/index.d.ts +0 -1
  450. package/aws-patterns-domain-redirect/index.js +0 -14
  451. package/aws-patterns-domain-redirect/lib/domain-redirect.js +0 -71
  452. package/aws-patterns-domain-redirect/lib/index.d.ts +0 -1
  453. package/aws-patterns-website/index.d.ts +0 -1
  454. package/aws-patterns-website/index.js +0 -14
  455. package/aws-patterns-website/lib/index.d.ts +0 -1
  456. package/aws-patterns-website/lib/website.js +0 -188
  457. package/aws-patterns-website/lib/website.test.d.ts +0 -1
  458. package/aws-patterns-website/lib/website.test.js +0 -60
  459. package/aws-patterns-wordpress/index.d.ts +0 -1
  460. package/aws-patterns-wordpress/index.js +0 -14
  461. package/aws-patterns-wordpress/lib/index.d.ts +0 -2
  462. package/aws-patterns-wordpress/lib/init.sh +0 -234
  463. package/aws-patterns-wordpress/lib/word-press-distribution.js +0 -82
  464. package/aws-patterns-wordpress/lib/word-press-instance.js +0 -220
  465. package/aws-route53/index.d.ts +0 -1
  466. package/aws-route53/index.js +0 -14
  467. package/aws-route53/lib/domain-name.js +0 -272
  468. package/aws-route53/lib/domain-name.test.d.ts +0 -1
  469. package/aws-route53/lib/domain-name.test.js +0 -56
  470. package/aws-route53/lib/extended-record-target.js +0 -35
  471. package/aws-route53/lib/extended-record-target.test.d.ts +0 -1
  472. package/aws-route53/lib/extended-record-target.test.js +0 -52
  473. package/aws-route53/lib/index.d.ts +0 -4
  474. package/aws-route53/lib/latency-a-record.js +0 -23
  475. package/aws-route53/lib/weighted-a-record.js +0 -23
  476. package/aws-s3/index.d.ts +0 -1
  477. package/aws-s3/index.js +0 -14
  478. package/aws-s3/lib/cloud-front-bucket.js +0 -234
  479. package/aws-s3/lib/index.d.ts +0 -3
  480. package/aws-s3/lib/replication-role.js +0 -85
  481. package/aws-s3/lib/website-bucket.js +0 -190
  482. package/aws-ses/index.d.ts +0 -1
  483. package/aws-ses/index.js +0 -14
  484. package/aws-ses/lib/index.d.ts +0 -1
  485. package/aws-ses/lib/receipt-rule-set-activator.js +0 -29
  486. package/aws-sqs/index.d.ts +0 -1
  487. package/aws-sqs/index.js +0 -14
  488. package/aws-sqs/lib/extended-queue.js +0 -33
  489. package/aws-sqs/lib/queue-alarms.js +0 -49
  490. package/aws-sqs/lib/standard-queue.js +0 -102
  491. package/aws-sqs/lib/standard-queue.test.d.ts +0 -1
  492. package/aws-sqs/lib/standard-queue.test.js +0 -16
  493. package/aws-ssm/index.d.ts +0 -1
  494. package/aws-ssm/index.js +0 -14
  495. package/aws-ssm/lib/index.d.ts +0 -3
  496. package/aws-ssm/lib/parameter-paths.js +0 -69
  497. package/aws-ssm/lib/parameter-reader.js +0 -40
  498. package/aws-ssm/lib/parameter-store.js +0 -60
  499. package/aws-ssm/lib/parameter-store.test.d.ts +0 -1
  500. package/aws-ssm/lib/parameter-store.test.js +0 -20
  501. package/aws-vpc/index.d.ts +0 -1
  502. package/aws-vpc/index.js +0 -14
  503. package/aws-vpc/lib/index.d.ts +0 -1
  504. package/aws-vpc/lib/network-parameters.js +0 -305
  505. package/clean.sh +0 -7
  506. package/helpers/index.d.ts +0 -1
  507. package/helpers/index.js +0 -14
  508. package/helpers/lib/index.d.ts +0 -2
  509. package/helpers/lib/shell-helper.js +0 -75
  510. package/helpers/lib/string-helper.js +0 -89
  511. package/helpers/lib/string-helper.test.d.ts +0 -1
  512. package/helpers/lib/string-helper.test.js +0 -58
  513. package/index.d.ts +0 -20
  514. package/index.js +0 -24
  515. package/jest.config.js +0 -8
  516. package/test-helper.d.ts +0 -22
  517. package/test-helper.js +0 -45
  518. package/truemark.d.ts +0 -2
  519. package/truemark.js +0 -9
  520. package/tsconfig.json +0 -33
package/LICENSE CHANGED
@@ -1,201 +1,26 @@
1
- Apache License
2
- Version 2.0, January 2004
3
- http://www.apache.org/licenses/
4
-
5
- TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
6
-
7
- 1. Definitions.
8
-
9
- "License" shall mean the terms and conditions for use, reproduction,
10
- and distribution as defined by Sections 1 through 9 of this document.
11
-
12
- "Licensor" shall mean the copyright owner or entity authorized by
13
- the copyright owner that is granting the License.
14
-
15
- "Legal Entity" shall mean the union of the acting entity and all
16
- other entities that control, are controlled by, or are under common
17
- control with that entity. For the purposes of this definition,
18
- "control" means (i) the power, direct or indirect, to cause the
19
- direction or management of such entity, whether by contract or
20
- otherwise, or (ii) ownership of fifty percent (50%) or more of the
21
- outstanding shares, or (iii) beneficial ownership of such entity.
22
-
23
- "You" (or "Your") shall mean an individual or Legal Entity
24
- exercising permissions granted by this License.
25
-
26
- "Source" form shall mean the preferred form for making modifications,
27
- including but not limited to software source code, documentation
28
- source, and configuration files.
29
-
30
- "Object" form shall mean any form resulting from mechanical
31
- transformation or translation of a Source form, including but
32
- not limited to compiled object code, generated documentation,
33
- and conversions to other media types.
34
-
35
- "Work" shall mean the work of authorship, whether in Source or
36
- Object form, made available under the License, as indicated by a
37
- copyright notice that is included in or attached to the work
38
- (an example is provided in the Appendix below).
39
-
40
- "Derivative Works" shall mean any work, whether in Source or Object
41
- form, that is based on (or derived from) the Work and for which the
42
- editorial revisions, annotations, elaborations, or other modifications
43
- represent, as a whole, an original work of authorship. For the purposes
44
- of this License, Derivative Works shall not include works that remain
45
- separable from, or merely link (or bind by name) to the interfaces of,
46
- the Work and Derivative Works thereof.
47
-
48
- "Contribution" shall mean any work of authorship, including
49
- the original version of the Work and any modifications or additions
50
- to that Work or Derivative Works thereof, that is intentionally
51
- submitted to Licensor for inclusion in the Work by the copyright owner
52
- or by an individual or Legal Entity authorized to submit on behalf of
53
- the copyright owner. For the purposes of this definition, "submitted"
54
- means any form of electronic, verbal, or written communication sent
55
- to the Licensor or its representatives, including but not limited to
56
- communication on electronic mailing lists, source code control systems,
57
- and issue tracking systems that are managed by, or on behalf of, the
58
- Licensor for the purpose of discussing and improving the Work, but
59
- excluding communication that is conspicuously marked or otherwise
60
- designated in writing by the copyright owner as "Not a Contribution."
61
-
62
- "Contributor" shall mean Licensor and any individual or Legal Entity
63
- on behalf of whom a Contribution has been received by Licensor and
64
- subsequently incorporated within the Work.
65
-
66
- 2. Grant of Copyright License. Subject to the terms and conditions of
67
- this License, each Contributor hereby grants to You a perpetual,
68
- worldwide, non-exclusive, no-charge, royalty-free, irrevocable
69
- copyright license to reproduce, prepare Derivative Works of,
70
- publicly display, publicly perform, sublicense, and distribute the
71
- Work and such Derivative Works in Source or Object form.
72
-
73
- 3. Grant of Patent License. Subject to the terms and conditions of
74
- this License, each Contributor hereby grants to You a perpetual,
75
- worldwide, non-exclusive, no-charge, royalty-free, irrevocable
76
- (except as stated in this section) patent license to make, have made,
77
- use, offer to sell, sell, import, and otherwise transfer the Work,
78
- where such license applies only to those patent claims licensable
79
- by such Contributor that are necessarily infringed by their
80
- Contribution(s) alone or by combination of their Contribution(s)
81
- with the Work to which such Contribution(s) was submitted. If You
82
- institute patent litigation against any entity (including a
83
- cross-claim or counterclaim in a lawsuit) alleging that the Work
84
- or a Contribution incorporated within the Work constitutes direct
85
- or contributory patent infringement, then any patent licenses
86
- granted to You under this License for that Work shall terminate
87
- as of the date such litigation is filed.
88
-
89
- 4. Redistribution. You may reproduce and distribute copies of the
90
- Work or Derivative Works thereof in any medium, with or without
91
- modifications, and in Source or Object form, provided that You
92
- meet the following conditions:
93
-
94
- (a) You must give any other recipients of the Work or
95
- Derivative Works a copy of this License; and
96
-
97
- (b) You must cause any modified files to carry prominent notices
98
- stating that You changed the files; and
99
-
100
- (c) You must retain, in the Source form of any Derivative Works
101
- that You distribute, all copyright, patent, trademark, and
102
- attribution notices from the Source form of the Work,
103
- excluding those notices that do not pertain to any part of
104
- the Derivative Works; and
105
-
106
- (d) If the Work includes a "NOTICE" text file as part of its
107
- distribution, then any Derivative Works that You distribute must
108
- include a readable copy of the attribution notices contained
109
- within such NOTICE file, excluding those notices that do not
110
- pertain to any part of the Derivative Works, in at least one
111
- of the following places: within a NOTICE text file distributed
112
- as part of the Derivative Works; within the Source form or
113
- documentation, if provided along with the Derivative Works; or,
114
- within a display generated by the Derivative Works, if and
115
- wherever such third-party notices normally appear. The contents
116
- of the NOTICE file are for informational purposes only and
117
- do not modify the License. You may add Your own attribution
118
- notices within Derivative Works that You distribute, alongside
119
- or as an addendum to the NOTICE text from the Work, provided
120
- that such additional attribution notices cannot be construed
121
- as modifying the License.
122
-
123
- You may add Your own copyright statement to Your modifications and
124
- may provide additional or different license terms and conditions
125
- for use, reproduction, or distribution of Your modifications, or
126
- for any such Derivative Works as a whole, provided Your use,
127
- reproduction, and distribution of the Work otherwise complies with
128
- the conditions stated in this License.
129
-
130
- 5. Submission of Contributions. Unless You explicitly state otherwise,
131
- any Contribution intentionally submitted for inclusion in the Work
132
- by You to the Licensor shall be under the terms and conditions of
133
- this License, without any additional terms or conditions.
134
- Notwithstanding the above, nothing herein shall supersede or modify
135
- the terms of any separate license agreement you may have executed
136
- with Licensor regarding such Contributions.
137
-
138
- 6. Trademarks. This License does not grant permission to use the trade
139
- names, trademarks, service marks, or product names of the Licensor,
140
- except as required for reasonable and customary use in describing the
141
- origin of the Work and reproducing the content of the NOTICE file.
142
-
143
- 7. Disclaimer of Warranty. Unless required by applicable law or
144
- agreed to in writing, Licensor provides the Work (and each
145
- Contributor provides its Contributions) on an "AS IS" BASIS,
146
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
147
- implied, including, without limitation, any warranties or conditions
148
- of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
149
- PARTICULAR PURPOSE. You are solely responsible for determining the
150
- appropriateness of using or redistributing the Work and assume any
151
- risks associated with Your exercise of permissions under this License.
152
-
153
- 8. Limitation of Liability. In no event and under no legal theory,
154
- whether in tort (including negligence), contract, or otherwise,
155
- unless required by applicable law (such as deliberate and grossly
156
- negligent acts) or agreed to in writing, shall any Contributor be
157
- liable to You for damages, including any direct, indirect, special,
158
- incidental, or consequential damages of any character arising as a
159
- result of this License or out of the use or inability to use the
160
- Work (including but not limited to damages for loss of goodwill,
161
- work stoppage, computer failure or malfunction, or any and all
162
- other commercial damages or losses), even if such Contributor
163
- has been advised of the possibility of such damages.
164
-
165
- 9. Accepting Warranty or Additional Liability. While redistributing
166
- the Work or Derivative Works thereof, You may choose to offer,
167
- and charge a fee for, acceptance of support, warranty, indemnity,
168
- or other liability obligations and/or rights consistent with this
169
- License. However, in accepting such obligations, You may act only
170
- on Your own behalf and on Your sole responsibility, not on behalf
171
- of any other Contributor, and only if You agree to indemnify,
172
- defend, and hold each Contributor harmless for any liability
173
- incurred by, or claims asserted against, such Contributor by reason
174
- of your accepting any such warranty or additional liability.
175
-
176
- END OF TERMS AND CONDITIONS
177
-
178
- APPENDIX: How to apply the Apache License to your work.
179
-
180
- To apply the Apache License to your work, attach the following
181
- boilerplate notice, with the fields enclosed by brackets "[]"
182
- replaced with your own identifying information. (Don't include
183
- the brackets!) The text should be enclosed in the appropriate
184
- comment syntax for the file format. We also recommend that a
185
- file or class name and description of purpose be included on the
186
- same "printed page" as the copyright notice for easier
187
- identification within third-party archives.
188
-
189
- Copyright 2018-2022 Amazon.com, Inc. or its affiliates. All Rights Reserved.
190
-
191
- Licensed under the Apache License, Version 2.0 (the "License");
192
- you may not use this file except in compliance with the License.
193
- You may obtain a copy of the License at
194
-
195
- http://www.apache.org/licenses/LICENSE-2.0
196
-
197
- Unless required by applicable law or agreed to in writing, software
198
- distributed under the License is distributed on an "AS IS" BASIS,
199
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
200
- See the License for the specific language governing permissions and
201
- limitations under the License.
1
+ Copyright 2023 TrueMark Technologies, Inc.
2
+
3
+ Redistribution and use in source and binary forms, with or without
4
+ modification, are permitted provided that the following conditions are met:
5
+
6
+ 1. Redistributions of source code must retain the above copyright notice, this
7
+ list of conditions and the following disclaimer.
8
+
9
+ 2. Redistributions in binary form must reproduce the above copyright notice,
10
+ this list of conditions and the following disclaimer in the documentation
11
+ and/or other materials provided with the distribution.
12
+
13
+ 3. Neither the name of the copyright holder nor the names of its contributors
14
+ may be used to endorse or promote products derived from this software without
15
+ specific prior written permission.
16
+
17
+ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
18
+ ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
19
+ WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
20
+ DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
21
+ FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
22
+ DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
23
+ SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
24
+ CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
25
+ OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
26
+ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
package/README.md CHANGED
@@ -4,16 +4,16 @@ This library provides common constructs and functionality to ease CDK developmen
4
4
 
5
5
  The main objectives of this project is to
6
6
 
7
- - Provide extended constructs that add additional functionality to existing CDK constructs
8
- - Provide standard constructs that are simple to use and adhere to best practices
9
- - Provide constructs for commonly used patterns
10
- - Reduce the amount of boilerplate coding required to work with CDK
7
+ - Provide extended constructs that add additional functionality to existing CDK constructs
8
+ - Provide standard constructs that are simple to use and adhere to best practices
9
+ - Provide constructs for commonly used patterns
10
+ - Reduce the amount of boilerplate coding required to work with CDK
11
11
 
12
12
  ## Conventions
13
13
 
14
- - **Standard** Constructs are simplified constructs meant for general use. They follow general best practices and have been given sane optimized defaults.
15
- - **Extended** Constructs are extensions of Constructs in the standard CDK library which add functionality such as logging and monitoring.
16
- - Other Constructs found in this library are crafted CDK constructs for specific common use cases which follow CDK's principle of composition over inheritance.
14
+ - **Standard** Constructs are simplified constructs meant for general use. They follow general best practices and have been given sane optimized defaults.
15
+ - **Extended** Constructs are extensions of Constructs in the standard CDK library which add functionality such as logging and monitoring.
16
+ - Other Constructs found in this library are crafted CDK constructs for specific common use cases which follow CDK's principle of composition over inheritance.
17
17
 
18
18
  In general, you should use **Standard** over **Extended** constructs unless they do not fit your use case.
19
19
 
@@ -24,4 +24,3 @@ This project follows a [semantic versioning](https://semver.org/) pattern.
24
24
  ```
25
25
  <major>.<minor>.<patch>
26
26
  ```
27
-
@@ -0,0 +1,2 @@
1
+ export * from './lib';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -1,7 +1,11 @@
1
1
  "use strict";
2
2
  var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
3
  if (k2 === undefined) k2 = k;
4
- Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
5
9
  }) : (function(o, m, k, k2) {
6
10
  if (k2 === undefined) k2 = k;
7
11
  o[k2] = m[k];
@@ -11,4 +15,4 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
11
15
  };
12
16
  Object.defineProperty(exports, "__esModule", { value: true });
13
17
  __exportStar(require("./lib"), exports);
14
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyJpbmRleC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7Ozs7Ozs7Ozs7QUFBQSx3Q0FBcUIiLCJzb3VyY2VzQ29udGVudCI6WyJleHBvcnQgKiBmcm9tIFwiLi9saWJcIlxuIl19
18
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,wCAAsB","sourcesContent":["export * from './lib';\n"]}
@@ -0,0 +1,4 @@
1
+ export * from './standard-domain-name';
2
+ export * from './standard-http-api';
3
+ export * from './standard-web-socket-api';
4
+ //# sourceMappingURL=index.d.ts.map
@@ -1,7 +1,11 @@
1
1
  "use strict";
2
2
  var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
3
  if (k2 === undefined) k2 = k;
4
- Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
5
9
  }) : (function(o, m, k, k2) {
6
10
  if (k2 === undefined) k2 = k;
7
11
  o[k2] = m[k];
@@ -13,4 +17,4 @@ Object.defineProperty(exports, "__esModule", { value: true });
13
17
  __exportStar(require("./standard-domain-name"), exports);
14
18
  __exportStar(require("./standard-http-api"), exports);
15
19
  __exportStar(require("./standard-web-socket-api"), exports);
16
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyJpbmRleC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7Ozs7Ozs7Ozs7QUFBQSx5REFBdUM7QUFDdkMsc0RBQW9DO0FBQ3BDLDREQUEwQyIsInNvdXJjZXNDb250ZW50IjpbImV4cG9ydCAqIGZyb20gXCIuL3N0YW5kYXJkLWRvbWFpbi1uYW1lXCI7XG5leHBvcnQgKiBmcm9tIFwiLi9zdGFuZGFyZC1odHRwLWFwaVwiO1xuZXhwb3J0ICogZnJvbSBcIi4vc3RhbmRhcmQtd2ViLXNvY2tldC1hcGlcIjtcbiJdfQ==
20
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,yDAAuC;AACvC,sDAAoC;AACpC,4DAA0C","sourcesContent":["export * from './standard-domain-name';\nexport * from './standard-http-api';\nexport * from './standard-web-socket-api';\n"]}
@@ -1,10 +1,10 @@
1
- import { Construct } from "constructs";
2
- import * as tmroute53 from "../../aws-route53";
3
- import { ICertificate } from "aws-cdk-lib/aws-certificatemanager";
4
- import { DomainName, SecurityPolicy } from "@aws-cdk/aws-apigatewayv2-alpha";
5
- import { ARecord, RecordTarget } from "aws-cdk-lib/aws-route53";
6
- import { ARecordOptions } from "../../aws-route53";
7
- import { ExtendedConstruct, ExtendedConstructProps } from "../../aws-cdk";
1
+ import { Construct } from 'constructs';
2
+ import * as tmroute53 from '../../aws-route53';
3
+ import { ICertificate } from 'aws-cdk-lib/aws-certificatemanager';
4
+ import { DomainName, SecurityPolicy } from '@aws-cdk/aws-apigatewayv2-alpha';
5
+ import { ARecord, RecordTarget } from 'aws-cdk-lib/aws-route53';
6
+ import { ARecordOptions } from '../../aws-route53';
7
+ import { ExtendedConstruct, ExtendedConstructProps } from '../../aws-cdk';
8
8
  export interface StandardDomainNameProps extends tmroute53.DomainNameProps, ExtendedConstructProps {
9
9
  /**
10
10
  * The optional ACM certificate for this domain name.
@@ -62,3 +62,4 @@ export declare class StandardDomainName extends ExtendedConstruct {
62
62
  */
63
63
  toString(): string;
64
64
  }
65
+ //# sourceMappingURL=standard-domain-name.d.ts.map
@@ -0,0 +1,71 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.StandardDomainName = void 0;
4
+ const tmroute53 = require("../../aws-route53");
5
+ const targets = require("aws-cdk-lib/aws-route53-targets");
6
+ const aws_apigatewayv2_alpha_1 = require("@aws-cdk/aws-apigatewayv2-alpha");
7
+ const aws_route53_1 = require("aws-cdk-lib/aws-route53");
8
+ const aws_route53_2 = require("../../aws-route53");
9
+ const aws_cdk_1 = require("../../aws-cdk");
10
+ const truemark_1 = require("../../truemark");
11
+ /**
12
+ * Standard construct used to create an API Gateway V2 Domain Name.
13
+ */
14
+ class StandardDomainName extends aws_cdk_1.ExtendedConstruct {
15
+ constructor(scope, id, props) {
16
+ var _a;
17
+ super(scope, id, {
18
+ standardTags: aws_cdk_1.StandardTags.merge(props.standardTags, truemark_1.LibStandardTags),
19
+ });
20
+ this.domainName = new tmroute53.DomainName(props);
21
+ this.certificate =
22
+ (_a = props.certificate) !== null && _a !== void 0 ? _a : this.domainName.createCertificate(scope);
23
+ this.gatewayDomainName = new aws_apigatewayv2_alpha_1.DomainName(this, 'Default', {
24
+ domainName: this.domainName.toString(),
25
+ certificate: this.certificate,
26
+ securityPolicy: props.securityPolicy,
27
+ });
28
+ }
29
+ toRecordTarget(evaluateTargetHealth) {
30
+ const domainProperties = new targets.ApiGatewayv2DomainProperties(this.gatewayDomainName.regionalDomainName, this.gatewayDomainName.regionalHostedZoneId);
31
+ return evaluateTargetHealth
32
+ ? aws_route53_2.ExtendedRecordTarget.fromAlias(domainProperties, evaluateTargetHealth)
33
+ : aws_route53_1.RecordTarget.fromAlias(domainProperties);
34
+ }
35
+ /**
36
+ * Creates a route53 ARecord pointing to this domain name.
37
+ *
38
+ * @param evaluateTargetHealth Determines if route53 evaluates the target's health. Defaults to true.
39
+ * @param options additional options for creating the record
40
+ */
41
+ createARecord(evaluateTargetHealth, options) {
42
+ return this.domainName.createARecord(this, this.toRecordTarget(evaluateTargetHealth !== null && evaluateTargetHealth !== void 0 ? evaluateTargetHealth : true), options);
43
+ }
44
+ /**
45
+ * Creates a route53 weighted record pointing to this domain name.
46
+ *
47
+ * @param weight the initial weight; defaults to 0
48
+ * @param evaluateTargetHealth Determines if route53 evaluates the target's health. Defaults to true.
49
+ * @param options additional options for creating the record
50
+ */
51
+ createWeightedARecord(weight, evaluateTargetHealth, options) {
52
+ return this.domainName.createWeightedARecord(this, this.toRecordTarget(evaluateTargetHealth !== null && evaluateTargetHealth !== void 0 ? evaluateTargetHealth : true), weight, options);
53
+ }
54
+ /**
55
+ * Creates a route53 latency record pointing to this domain name.
56
+ *
57
+ * @param evaluateTargetHealth Determines if route53 evaluates the target's health. Defaults to true.
58
+ * @param options additional options for creating the record
59
+ */
60
+ createLatencyARecord(evaluateTargetHealth, options) {
61
+ return this.domainName.createLatencyARecord(this, this.toRecordTarget(evaluateTargetHealth !== null && evaluateTargetHealth !== void 0 ? evaluateTargetHealth : true), options);
62
+ }
63
+ /**
64
+ * Returns the FQDN of this domain name.
65
+ */
66
+ toString() {
67
+ return this.domainName.toString();
68
+ }
69
+ }
70
+ exports.StandardDomainName = StandardDomainName;
71
+ //# sourceMappingURL=standard-domain-name.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"standard-domain-name.js","sourceRoot":"","sources":["standard-domain-name.ts"],"names":[],"mappings":";;;AACA,+CAA+C;AAC/C,2DAA2D;AAE3D,4EAA2E;AAC3E,yDAA8D;AAC9D,mDAAuE;AACvE,2CAIuB;AACvB,6CAA+C;AA4B/C;;GAEG;AACH,MAAa,kBAAmB,SAAQ,2BAAiB;IAKvD,YAAY,KAAgB,EAAE,EAAU,EAAE,KAA8B;;QACtE,KAAK,CAAC,KAAK,EAAE,EAAE,EAAE;YACf,YAAY,EAAE,sBAAY,CAAC,KAAK,CAAC,KAAK,CAAC,YAAY,EAAE,0BAAe,CAAC;SACtE,CAAC,CAAC;QACH,IAAI,CAAC,UAAU,GAAG,IAAI,SAAS,CAAC,UAAU,CAAC,KAAK,CAAC,CAAC;QAClD,IAAI,CAAC,WAAW;YACd,MAAA,KAAK,CAAC,WAAW,mCAAI,IAAI,CAAC,UAAU,CAAC,iBAAiB,CAAC,KAAK,CAAC,CAAC;QAChE,IAAI,CAAC,iBAAiB,GAAG,IAAI,mCAAU,CAAC,IAAI,EAAE,SAAS,EAAE;YACvD,UAAU,EAAE,IAAI,CAAC,UAAU,CAAC,QAAQ,EAAE;YACtC,WAAW,EAAE,IAAI,CAAC,WAAW;YAC7B,cAAc,EAAE,KAAK,CAAC,cAAc;SACrC,CAAC,CAAC;IACL,CAAC;IAED,cAAc,CAAC,oBAA8B;QAC3C,MAAM,gBAAgB,GAAG,IAAI,OAAO,CAAC,4BAA4B,CAC/D,IAAI,CAAC,iBAAiB,CAAC,kBAAkB,EACzC,IAAI,CAAC,iBAAiB,CAAC,oBAAoB,CAC5C,CAAC;QACF,OAAO,oBAAoB;YACzB,CAAC,CAAC,kCAAoB,CAAC,SAAS,CAAC,gBAAgB,EAAE,oBAAoB,CAAC;YACxE,CAAC,CAAC,0BAAY,CAAC,SAAS,CAAC,gBAAgB,CAAC,CAAC;IAC/C,CAAC;IAED;;;;;OAKG;IACH,aAAa,CACX,oBAA8B,EAC9B,OAAwB;QAExB,OAAO,IAAI,CAAC,UAAU,CAAC,aAAa,CAClC,IAAI,EACJ,IAAI,CAAC,cAAc,CAAC,oBAAoB,aAApB,oBAAoB,cAApB,oBAAoB,GAAI,IAAI,CAAC,EACjD,OAAO,CACR,CAAC;IACJ,CAAC;IAED;;;;;;OAMG;IACH,qBAAqB,CACnB,MAAc,EACd,oBAA8B,EAC9B,OAAwB;QAExB,OAAO,IAAI,CAAC,UAAU,CAAC,qBAAqB,CAC1C,IAAI,EACJ,IAAI,CAAC,cAAc,CAAC,oBAAoB,aAApB,oBAAoB,cAApB,oBAAoB,GAAI,IAAI,CAAC,EACjD,MAAM,EACN,OAAO,CACR,CAAC;IACJ,CAAC;IAED;;;;;OAKG;IACH,oBAAoB,CAClB,oBAA8B,EAC9B,OAAwB;QAExB,OAAO,IAAI,CAAC,UAAU,CAAC,oBAAoB,CACzC,IAAI,EACJ,IAAI,CAAC,cAAc,CAAC,oBAAoB,aAApB,oBAAoB,cAApB,oBAAoB,GAAI,IAAI,CAAC,EACjD,OAAO,CACR,CAAC;IACJ,CAAC;IAED;;OAEG;IACH,QAAQ;QACN,OAAO,IAAI,CAAC,UAAU,CAAC,QAAQ,EAAE,CAAC;IACpC,CAAC;CACF;AAzFD,gDAyFC","sourcesContent":["import {Construct} from 'constructs';\nimport * as tmroute53 from '../../aws-route53';\nimport * as targets from 'aws-cdk-lib/aws-route53-targets';\nimport {ICertificate} from 'aws-cdk-lib/aws-certificatemanager';\nimport {DomainName, SecurityPolicy} from '@aws-cdk/aws-apigatewayv2-alpha';\nimport {ARecord, RecordTarget} from 'aws-cdk-lib/aws-route53';\nimport {ARecordOptions, ExtendedRecordTarget} from '../../aws-route53';\nimport {\n ExtendedConstruct,\n ExtendedConstructProps,\n StandardTags,\n} from '../../aws-cdk';\nimport {LibStandardTags} from '../../truemark';\n\nexport interface StandardDomainNameProps\n extends tmroute53.DomainNameProps,\n ExtendedConstructProps {\n /**\n * The optional ACM certificate for this domain name.\n *\n * @default - one is generated\n */\n readonly certificate?: ICertificate;\n\n /**\n * The Transport Layer Security (TLS) version + cipher suite for this domain name.\n *\n * @default - SecurityPolicy.TLS_1_2\n */\n readonly securityPolicy?: SecurityPolicy;\n\n /**\n * Setting this to true will suppress the creation of default tags on resources\n * created by this construct. Default is false.\n *\n * @default - false\n */\n readonly suppressTagging?: boolean;\n}\n\n/**\n * Standard construct used to create an API Gateway V2 Domain Name.\n */\nexport class StandardDomainName extends ExtendedConstruct {\n readonly domainName: tmroute53.DomainName;\n readonly certificate: ICertificate;\n readonly gatewayDomainName: DomainName;\n\n constructor(scope: Construct, id: string, props: StandardDomainNameProps) {\n super(scope, id, {\n standardTags: StandardTags.merge(props.standardTags, LibStandardTags),\n });\n this.domainName = new tmroute53.DomainName(props);\n this.certificate =\n props.certificate ?? this.domainName.createCertificate(scope);\n this.gatewayDomainName = new DomainName(this, 'Default', {\n domainName: this.domainName.toString(),\n certificate: this.certificate,\n securityPolicy: props.securityPolicy,\n });\n }\n\n toRecordTarget(evaluateTargetHealth?: boolean): RecordTarget {\n const domainProperties = new targets.ApiGatewayv2DomainProperties(\n this.gatewayDomainName.regionalDomainName,\n this.gatewayDomainName.regionalHostedZoneId\n );\n return evaluateTargetHealth\n ? ExtendedRecordTarget.fromAlias(domainProperties, evaluateTargetHealth)\n : RecordTarget.fromAlias(domainProperties);\n }\n\n /**\n * Creates a route53 ARecord pointing to this domain name.\n *\n * @param evaluateTargetHealth Determines if route53 evaluates the target's health. Defaults to true.\n * @param options additional options for creating the record\n */\n createARecord(\n evaluateTargetHealth?: boolean,\n options?: ARecordOptions\n ): ARecord {\n return this.domainName.createARecord(\n this,\n this.toRecordTarget(evaluateTargetHealth ?? true),\n options\n );\n }\n\n /**\n * Creates a route53 weighted record pointing to this domain name.\n *\n * @param weight the initial weight; defaults to 0\n * @param evaluateTargetHealth Determines if route53 evaluates the target's health. Defaults to true.\n * @param options additional options for creating the record\n */\n createWeightedARecord(\n weight: number,\n evaluateTargetHealth?: boolean,\n options?: ARecordOptions\n ): ARecord {\n return this.domainName.createWeightedARecord(\n this,\n this.toRecordTarget(evaluateTargetHealth ?? true),\n weight,\n options\n );\n }\n\n /**\n * Creates a route53 latency record pointing to this domain name.\n *\n * @param evaluateTargetHealth Determines if route53 evaluates the target's health. Defaults to true.\n * @param options additional options for creating the record\n */\n createLatencyARecord(\n evaluateTargetHealth?: boolean,\n options?: ARecordOptions\n ): ARecord {\n return this.domainName.createLatencyARecord(\n this,\n this.toRecordTarget(evaluateTargetHealth ?? true),\n options\n );\n }\n\n /**\n * Returns the FQDN of this domain name.\n */\n toString(): string {\n return this.domainName.toString();\n }\n}\n"]}
@@ -1,10 +1,10 @@
1
- import { Construct } from "constructs";
2
- import { LatencyARecord, WeightedARecord } from "../../aws-route53";
3
- import { StandardDomainName } from "./standard-domain-name";
4
- import { CorsPreflightOptions, HttpApi } from "@aws-cdk/aws-apigatewayv2-alpha";
5
- import { ARecord } from "aws-cdk-lib/aws-route53";
6
- import { ExtendedConstruct, ExtendedConstructProps } from "../../aws-cdk";
7
- import { IHttpRouteAuthorizer } from "@aws-cdk/aws-apigatewayv2-alpha/lib/http/authorizer";
1
+ import { Construct } from 'constructs';
2
+ import { LatencyARecord, WeightedARecord } from '../../aws-route53';
3
+ import { StandardDomainName } from './standard-domain-name';
4
+ import { CorsPreflightOptions, HttpApi } from '@aws-cdk/aws-apigatewayv2-alpha';
5
+ import { ARecord } from 'aws-cdk-lib/aws-route53';
6
+ import { ExtendedConstruct, ExtendedConstructProps } from '../../aws-cdk';
7
+ import { IHttpRouteAuthorizer } from '@aws-cdk/aws-apigatewayv2-alpha/lib/http/authorizer';
8
8
  /**
9
9
  * Properties for StandardHttpApi.
10
10
  */
@@ -70,3 +70,4 @@ export declare class StandardHttpApi extends ExtendedConstruct {
70
70
  readonly httpApi: HttpApi;
71
71
  constructor(scope: Construct, id: string, props: StandardHttpApiProps);
72
72
  }
73
+ //# sourceMappingURL=standard-http-api.d.ts.map
@@ -0,0 +1,54 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.StandardHttpApi = void 0;
4
+ const standard_domain_name_1 = require("./standard-domain-name");
5
+ const aws_apigatewayv2_alpha_1 = require("@aws-cdk/aws-apigatewayv2-alpha");
6
+ const aws_cdk_lib_1 = require("aws-cdk-lib");
7
+ const aws_cdk_1 = require("../../aws-cdk");
8
+ const truemark_1 = require("../../truemark");
9
+ /**
10
+ * Abstraction that creates an HttpApi with support infrastructure.
11
+ */
12
+ class StandardHttpApi extends aws_cdk_1.ExtendedConstruct {
13
+ constructor(scope, id, props) {
14
+ var _a, _b, _c;
15
+ super(scope, id, {
16
+ standardTags: aws_cdk_1.StandardTags.merge(props.standardTags, truemark_1.LibStandardTags),
17
+ });
18
+ const domainName = new standard_domain_name_1.StandardDomainName(this, 'DomainName', {
19
+ prefix: props.domainPrefix,
20
+ zone: props.domainZone,
21
+ securityPolicy: aws_apigatewayv2_alpha_1.SecurityPolicy.TLS_1_2, // TODO Should be an option
22
+ });
23
+ // TODO Need to add RecordOptions
24
+ if ((_a = props.createRecord) !== null && _a !== void 0 ? _a : true) {
25
+ if (props.recordWeight) {
26
+ domainName.createWeightedARecord(props.recordWeight, (_b = props.evaluateTargetHealth) !== null && _b !== void 0 ? _b : true);
27
+ }
28
+ else if (props.recordLatency) {
29
+ domainName.createLatencyARecord(true);
30
+ }
31
+ else {
32
+ domainName.createARecord();
33
+ }
34
+ }
35
+ else {
36
+ this.record = undefined;
37
+ }
38
+ const stage = aws_cdk_lib_1.Stage.of(this);
39
+ const stack = aws_cdk_lib_1.Stack.of(this);
40
+ const httpApi = new aws_apigatewayv2_alpha_1.HttpApi(this, 'Default', {
41
+ apiName: (_c = props.apiName) !== null && _c !== void 0 ? _c : `${stage === null || stage === void 0 ? void 0 : stage.stageName}${stack === null || stack === void 0 ? void 0 : stack.stackName}Gateway`,
42
+ defaultDomainMapping: {
43
+ domainName: domainName.gatewayDomainName,
44
+ },
45
+ corsPreflight: props.corsPreflight,
46
+ defaultAuthorizer: props.defaultAuthorizer,
47
+ defaultAuthorizationScopes: props.defaultAuthorizationScopes,
48
+ });
49
+ this.domainName = domainName;
50
+ this.httpApi = httpApi;
51
+ }
52
+ }
53
+ exports.StandardHttpApi = StandardHttpApi;
54
+ //# sourceMappingURL=standard-http-api.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"standard-http-api.js","sourceRoot":"","sources":["standard-http-api.ts"],"names":[],"mappings":";;;AAEA,iEAA0D;AAC1D,4EAIyC;AACzC,6CAAyC;AAEzC,2CAIuB;AACvB,6CAA+C;AAsE/C;;GAEG;AACH,MAAa,eAAgB,SAAQ,2BAAiB;IAKpD,YAAY,KAAgB,EAAE,EAAU,EAAE,KAA2B;;QACnE,KAAK,CAAC,KAAK,EAAE,EAAE,EAAE;YACf,YAAY,EAAE,sBAAY,CAAC,KAAK,CAAC,KAAK,CAAC,YAAY,EAAE,0BAAe,CAAC;SACtE,CAAC,CAAC;QAEH,MAAM,UAAU,GAAG,IAAI,yCAAkB,CAAC,IAAI,EAAE,YAAY,EAAE;YAC5D,MAAM,EAAE,KAAK,CAAC,YAAY;YAC1B,IAAI,EAAE,KAAK,CAAC,UAAU;YACtB,cAAc,EAAE,uCAAc,CAAC,OAAO,EAAE,2BAA2B;SACpE,CAAC,CAAC;QAEH,iCAAiC;QACjC,IAAI,MAAA,KAAK,CAAC,YAAY,mCAAI,IAAI,EAAE;YAC9B,IAAI,KAAK,CAAC,YAAY,EAAE;gBACtB,UAAU,CAAC,qBAAqB,CAC9B,KAAK,CAAC,YAAY,EAClB,MAAA,KAAK,CAAC,oBAAoB,mCAAI,IAAI,CACnC,CAAC;aACH;iBAAM,IAAI,KAAK,CAAC,aAAa,EAAE;gBAC9B,UAAU,CAAC,oBAAoB,CAAC,IAAI,CAAC,CAAC;aACvC;iBAAM;gBACL,UAAU,CAAC,aAAa,EAAE,CAAC;aAC5B;SACF;aAAM;YACL,IAAI,CAAC,MAAM,GAAG,SAAS,CAAC;SACzB;QAED,MAAM,KAAK,GAAG,mBAAK,CAAC,EAAE,CAAC,IAAI,CAAC,CAAC;QAC7B,MAAM,KAAK,GAAG,mBAAK,CAAC,EAAE,CAAC,IAAI,CAAC,CAAC;QAE7B,MAAM,OAAO,GAAG,IAAI,gCAAO,CAAC,IAAI,EAAE,SAAS,EAAE;YAC3C,OAAO,EAAE,MAAA,KAAK,CAAC,OAAO,mCAAI,GAAG,KAAK,aAAL,KAAK,uBAAL,KAAK,CAAE,SAAS,GAAG,KAAK,aAAL,KAAK,uBAAL,KAAK,CAAE,SAAS,SAAS;YACzE,oBAAoB,EAAE;gBACpB,UAAU,EAAE,UAAU,CAAC,iBAAiB;aACzC;YACD,aAAa,EAAE,KAAK,CAAC,aAAa;YAClC,iBAAiB,EAAE,KAAK,CAAC,iBAAiB;YAC1C,0BAA0B,EAAE,KAAK,CAAC,0BAA0B;SAC7D,CAAC,CAAC;QAEH,IAAI,CAAC,UAAU,GAAG,UAAU,CAAC;QAC7B,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;IACzB,CAAC;CACF;AAhDD,0CAgDC","sourcesContent":["import {Construct} from 'constructs';\nimport {LatencyARecord, WeightedARecord} from '../../aws-route53';\nimport {StandardDomainName} from './standard-domain-name';\nimport {\n CorsPreflightOptions,\n HttpApi,\n SecurityPolicy,\n} from '@aws-cdk/aws-apigatewayv2-alpha';\nimport {Stack, Stage} from 'aws-cdk-lib';\nimport {ARecord} from 'aws-cdk-lib/aws-route53';\nimport {\n ExtendedConstruct,\n ExtendedConstructProps,\n StandardTags,\n} from '../../aws-cdk';\nimport {LibStandardTags} from '../../truemark';\nimport {IHttpRouteAuthorizer} from '@aws-cdk/aws-apigatewayv2-alpha/lib/http/authorizer';\n\n/**\n * Properties for StandardHttpApi.\n */\nexport interface StandardHttpApiProps extends ExtendedConstructProps {\n /**\n * The prefix of the domain to create the certificate and DNS record for.\n */\n readonly domainPrefix: string;\n\n /**\n * The zone of the domain to create the certificate and DNS record for.\n */\n readonly domainZone: string;\n\n /**\n * Name of the API Gateway. One will be generated if not provided.\n */\n readonly apiName?: string;\n\n /**\n * Determines if a route53 record is created for the API gateway. Defaults to true.\n *\n * @default - true\n */\n readonly createRecord?: boolean;\n\n /**\n * Creates a weighted route53 record. May not be used with recordLatency.\n */\n readonly recordWeight?: number;\n\n /**\n * Creates a latency route53 record. May not be used with recordWeight.\n */\n readonly recordLatency?: boolean;\n\n /**\n * Evaluates target health on the created route53 record if it's a latency or weighted record. Defaults to true.\n *\n * @default - true\n */\n readonly evaluateTargetHealth?: boolean;\n\n /**\n * Setting this to true will suppress the creation of default tags on resources\n * created by this construct. Default is false.\n *\n * @default - false\n */\n readonly suppressTagging?: boolean;\n\n /**\n * The CORS configuration to apply to this API.\n */\n readonly corsPreflight?: CorsPreflightOptions;\n\n /**\n * Default Authorizer to applied to all routes in the gateway.\n */\n readonly defaultAuthorizer?: IHttpRouteAuthorizer;\n\n /**\n * Default OIDC scopes attached to all routes in the gateway, unless explicitly configured on the route.\n */\n readonly defaultAuthorizationScopes?: string[];\n}\n\n/**\n * Abstraction that creates an HttpApi with support infrastructure.\n */\nexport class StandardHttpApi extends ExtendedConstruct {\n readonly domainName: StandardDomainName;\n readonly record: ARecord | LatencyARecord | WeightedARecord | undefined;\n readonly httpApi: HttpApi;\n\n constructor(scope: Construct, id: string, props: StandardHttpApiProps) {\n super(scope, id, {\n standardTags: StandardTags.merge(props.standardTags, LibStandardTags),\n });\n\n const domainName = new StandardDomainName(this, 'DomainName', {\n prefix: props.domainPrefix,\n zone: props.domainZone,\n securityPolicy: SecurityPolicy.TLS_1_2, // TODO Should be an option\n });\n\n // TODO Need to add RecordOptions\n if (props.createRecord ?? true) {\n if (props.recordWeight) {\n domainName.createWeightedARecord(\n props.recordWeight,\n props.evaluateTargetHealth ?? true\n );\n } else if (props.recordLatency) {\n domainName.createLatencyARecord(true);\n } else {\n domainName.createARecord();\n }\n } else {\n this.record = undefined;\n }\n\n const stage = Stage.of(this);\n const stack = Stack.of(this);\n\n const httpApi = new HttpApi(this, 'Default', {\n apiName: props.apiName ?? `${stage?.stageName}${stack?.stackName}Gateway`,\n defaultDomainMapping: {\n domainName: domainName.gatewayDomainName,\n },\n corsPreflight: props.corsPreflight,\n defaultAuthorizer: props.defaultAuthorizer,\n defaultAuthorizationScopes: props.defaultAuthorizationScopes,\n });\n\n this.domainName = domainName;\n this.httpApi = httpApi;\n }\n}\n"]}
@@ -1,9 +1,9 @@
1
- import { Construct } from "constructs";
2
- import { StandardDomainName } from "./standard-domain-name";
3
- import { WebSocketApi, WebSocketStage } from "@aws-cdk/aws-apigatewayv2-alpha";
4
- import { ARecord } from "aws-cdk-lib/aws-route53";
5
- import { LatencyARecord, WeightedARecord } from "../../aws-route53";
6
- import { ExtendedConstruct, ExtendedConstructProps } from "../../aws-cdk";
1
+ import { Construct } from 'constructs';
2
+ import { StandardDomainName } from './standard-domain-name';
3
+ import { WebSocketApi, WebSocketStage } from '@aws-cdk/aws-apigatewayv2-alpha';
4
+ import { ARecord } from 'aws-cdk-lib/aws-route53';
5
+ import { LatencyARecord, WeightedARecord } from '../../aws-route53';
6
+ import { ExtendedConstruct, ExtendedConstructProps } from '../../aws-cdk';
7
7
  /**
8
8
  * Properties for StandardWebSocketApi.
9
9
  */
@@ -58,3 +58,4 @@ export declare class StandardWebSocketApi extends ExtendedConstruct {
58
58
  readonly webSocketStage: WebSocketStage;
59
59
  constructor(scope: Construct, id: string, props: StandardWebSocketApiProps);
60
60
  }
61
+ //# sourceMappingURL=standard-web-socket-api.d.ts.map
@@ -0,0 +1,53 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.StandardWebSocketApi = void 0;
4
+ const standard_domain_name_1 = require("./standard-domain-name");
5
+ const aws_apigatewayv2_alpha_1 = require("@aws-cdk/aws-apigatewayv2-alpha");
6
+ const aws_cdk_lib_1 = require("aws-cdk-lib");
7
+ const aws_cdk_1 = require("../../aws-cdk");
8
+ /**
9
+ * Abstraction that creates an WebSocketApi with support infrastructure.
10
+ */
11
+ class StandardWebSocketApi extends aws_cdk_1.ExtendedConstruct {
12
+ constructor(scope, id, props) {
13
+ var _a, _b, _c;
14
+ super(scope, id);
15
+ const domainName = new standard_domain_name_1.StandardDomainName(this, 'DomainName', {
16
+ prefix: props.domainPrefix,
17
+ zone: props.domainZone,
18
+ securityPolicy: aws_apigatewayv2_alpha_1.SecurityPolicy.TLS_1_2, // TODO Should be an option
19
+ });
20
+ // TODO Need to add RecordOptions
21
+ if ((_a = props.createRecord) !== null && _a !== void 0 ? _a : true) {
22
+ if (props.recordWeight) {
23
+ domainName.createWeightedARecord(props.recordWeight, (_b = props.evaluateTargetHealth) !== null && _b !== void 0 ? _b : true);
24
+ }
25
+ else if (props.recordLatency) {
26
+ domainName.createLatencyARecord(true);
27
+ }
28
+ else {
29
+ domainName.createARecord();
30
+ }
31
+ }
32
+ else {
33
+ this.record = undefined;
34
+ }
35
+ const stage = aws_cdk_lib_1.Stage.of(this);
36
+ const stack = aws_cdk_lib_1.Stack.of(this);
37
+ const webSocketApi = new aws_apigatewayv2_alpha_1.WebSocketApi(this, 'Default', {
38
+ apiName: (_c = props.apiName) !== null && _c !== void 0 ? _c : `${stage === null || stage === void 0 ? void 0 : stage.stageName}${stack === null || stack === void 0 ? void 0 : stack.stackName}Gateway`,
39
+ });
40
+ const webSocketStage = new aws_apigatewayv2_alpha_1.WebSocketStage(this, 'DefaultStage', {
41
+ webSocketApi,
42
+ stageName: 'default',
43
+ autoDeploy: true,
44
+ domainMapping: {
45
+ domainName: domainName.gatewayDomainName,
46
+ },
47
+ });
48
+ this.webSocketApi = webSocketApi;
49
+ this.webSocketStage = webSocketStage;
50
+ }
51
+ }
52
+ exports.StandardWebSocketApi = StandardWebSocketApi;
53
+ //# sourceMappingURL=standard-web-socket-api.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"standard-web-socket-api.js","sourceRoot":"","sources":["standard-web-socket-api.ts"],"names":[],"mappings":";;;AACA,iEAA0D;AAC1D,4EAIyC;AAGzC,6CAAyC;AACzC,2CAAwE;AAsDxE;;GAEG;AACH,MAAa,oBAAqB,SAAQ,2BAAiB;IAMzD,YAAY,KAAgB,EAAE,EAAU,EAAE,KAAgC;;QACxE,KAAK,CAAC,KAAK,EAAE,EAAE,CAAC,CAAC;QAEjB,MAAM,UAAU,GAAG,IAAI,yCAAkB,CAAC,IAAI,EAAE,YAAY,EAAE;YAC5D,MAAM,EAAE,KAAK,CAAC,YAAY;YAC1B,IAAI,EAAE,KAAK,CAAC,UAAU;YACtB,cAAc,EAAE,uCAAc,CAAC,OAAO,EAAE,2BAA2B;SACpE,CAAC,CAAC;QAEH,iCAAiC;QACjC,IAAI,MAAA,KAAK,CAAC,YAAY,mCAAI,IAAI,EAAE;YAC9B,IAAI,KAAK,CAAC,YAAY,EAAE;gBACtB,UAAU,CAAC,qBAAqB,CAC9B,KAAK,CAAC,YAAY,EAClB,MAAA,KAAK,CAAC,oBAAoB,mCAAI,IAAI,CACnC,CAAC;aACH;iBAAM,IAAI,KAAK,CAAC,aAAa,EAAE;gBAC9B,UAAU,CAAC,oBAAoB,CAAC,IAAI,CAAC,CAAC;aACvC;iBAAM;gBACL,UAAU,CAAC,aAAa,EAAE,CAAC;aAC5B;SACF;aAAM;YACL,IAAI,CAAC,MAAM,GAAG,SAAS,CAAC;SACzB;QAED,MAAM,KAAK,GAAG,mBAAK,CAAC,EAAE,CAAC,IAAI,CAAC,CAAC;QAC7B,MAAM,KAAK,GAAG,mBAAK,CAAC,EAAE,CAAC,IAAI,CAAC,CAAC;QAE7B,MAAM,YAAY,GAAG,IAAI,qCAAY,CAAC,IAAI,EAAE,SAAS,EAAE;YACrD,OAAO,EAAE,MAAA,KAAK,CAAC,OAAO,mCAAI,GAAG,KAAK,aAAL,KAAK,uBAAL,KAAK,CAAE,SAAS,GAAG,KAAK,aAAL,KAAK,uBAAL,KAAK,CAAE,SAAS,SAAS;SAC1E,CAAC,CAAC;QAEH,MAAM,cAAc,GAAG,IAAI,uCAAc,CAAC,IAAI,EAAE,cAAc,EAAE;YAC9D,YAAY;YACZ,SAAS,EAAE,SAAS;YACpB,UAAU,EAAE,IAAI;YAChB,aAAa,EAAE;gBACb,UAAU,EAAE,UAAU,CAAC,iBAAiB;aACzC;SACF,CAAC,CAAC;QAEH,IAAI,CAAC,YAAY,GAAG,YAAY,CAAC;QACjC,IAAI,CAAC,cAAc,GAAG,cAAc,CAAC;IACvC,CAAC;CACF;AAlDD,oDAkDC","sourcesContent":["import {Construct} from 'constructs';\nimport {StandardDomainName} from './standard-domain-name';\nimport {\n SecurityPolicy,\n WebSocketApi,\n WebSocketStage,\n} from '@aws-cdk/aws-apigatewayv2-alpha';\nimport {ARecord} from 'aws-cdk-lib/aws-route53';\nimport {LatencyARecord, WeightedARecord} from '../../aws-route53';\nimport {Stack, Stage} from 'aws-cdk-lib';\nimport {ExtendedConstruct, ExtendedConstructProps} from '../../aws-cdk';\n\n/**\n * Properties for StandardWebSocketApi.\n */\nexport interface StandardWebSocketApiProps extends ExtendedConstructProps {\n /**\n * The prefix of the domain to create the certificate and DNS record for.\n */\n readonly domainPrefix: string;\n\n /**\n * The zone of the domain to create the certificate and DNS record for.\n */\n readonly domainZone: string;\n\n /**\n * Name of the API Gateway. One will be generated if not provided.\n */\n readonly apiName?: string;\n\n /**\n * Determines if a route53 record is created for the API gateway. Defaults to true.\n *\n * @default - true\n */\n readonly createRecord?: boolean;\n\n /**\n * Creates a weighted route53 record. May not be used with recordLatency.\n */\n readonly recordWeight?: number;\n\n /**\n * Creates a latency route53 record. May not be used with recordWeight.\n */\n readonly recordLatency?: boolean;\n\n /**\n * Evaluates target health on the created route53 record if it's a latency or weighted record. Defaults to true.\n *\n * @default - true\n */\n readonly evaluateTargetHealth?: boolean;\n\n /**\n * Setting this to true will suppress the creation of default tags on resources\n * created by this construct. Default is false.\n *\n * @default - false\n */\n readonly suppressTagging?: boolean;\n}\n\n/**\n * Abstraction that creates an WebSocketApi with support infrastructure.\n */\nexport class StandardWebSocketApi extends ExtendedConstruct {\n readonly domainName: StandardDomainName;\n readonly record: ARecord | LatencyARecord | WeightedARecord | undefined;\n readonly webSocketApi: WebSocketApi;\n readonly webSocketStage: WebSocketStage;\n\n constructor(scope: Construct, id: string, props: StandardWebSocketApiProps) {\n super(scope, id);\n\n const domainName = new StandardDomainName(this, 'DomainName', {\n prefix: props.domainPrefix,\n zone: props.domainZone,\n securityPolicy: SecurityPolicy.TLS_1_2, // TODO Should be an option\n });\n\n // TODO Need to add RecordOptions\n if (props.createRecord ?? true) {\n if (props.recordWeight) {\n domainName.createWeightedARecord(\n props.recordWeight,\n props.evaluateTargetHealth ?? true\n );\n } else if (props.recordLatency) {\n domainName.createLatencyARecord(true);\n } else {\n domainName.createARecord();\n }\n } else {\n this.record = undefined;\n }\n\n const stage = Stage.of(this);\n const stack = Stack.of(this);\n\n const webSocketApi = new WebSocketApi(this, 'Default', {\n apiName: props.apiName ?? `${stage?.stageName}${stack?.stackName}Gateway`,\n });\n\n const webSocketStage = new WebSocketStage(this, 'DefaultStage', {\n webSocketApi,\n stageName: 'default',\n autoDeploy: true,\n domainMapping: {\n domainName: domainName.gatewayDomainName,\n },\n });\n\n this.webSocketApi = webSocketApi;\n this.webSocketStage = webSocketStage;\n }\n}\n"]}
@@ -0,0 +1,2 @@
1
+ export * from './lib';
2
+ //# sourceMappingURL=index.d.ts.map