quidproquo-deploy-awscdk 0.0.232 → 0.0.233

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 (243) hide show
  1. package/README.md +41 -21
  2. package/lib/commonjs/constants/index.d.ts +1 -1
  3. package/lib/commonjs/constants/index.js +1 -1
  4. package/lib/commonjs/constructs/base/QpqConstructBlock.d.ts +2 -2
  5. package/lib/commonjs/constructs/base/QpqConstructBlock.js +1 -1
  6. package/lib/commonjs/constructs/basic/BSQpqLambdaWarmerEventConstruct.d.ts +1 -1
  7. package/lib/commonjs/constructs/basic/BSQpqLambdaWarmerEventConstruct.js +1 -1
  8. package/lib/commonjs/constructs/basic/DnsValidatedCertificate.d.ts +2 -2
  9. package/lib/commonjs/constructs/basic/DnsValidatedCertificate.js +4 -6
  10. package/lib/commonjs/constructs/basic/Function.d.ts +2 -2
  11. package/lib/commonjs/constructs/basic/Function.js +4 -4
  12. package/lib/commonjs/constructs/basic/InfQpqWebserverServiceDomainsConstruct.d.ts +1 -1
  13. package/lib/commonjs/constructs/basic/InfQpqWebserverServiceDomainsConstruct.js +1 -3
  14. package/lib/commonjs/constructs/basic/LambdaLayers.d.ts +2 -2
  15. package/lib/commonjs/constructs/basic/LambdaLayers.js +2 -2
  16. package/lib/commonjs/constructs/basic/ServiceDomain.js +1 -1
  17. package/lib/commonjs/constructs/basic/SubdomainName.d.ts +2 -2
  18. package/lib/commonjs/constructs/basic/SubdomainName.js +1 -1
  19. package/lib/commonjs/constructs/basic/WebserverRoll.d.ts +1 -1
  20. package/lib/commonjs/constructs/basic/index.d.ts +2 -2
  21. package/lib/commonjs/constructs/basic/index.js +2 -2
  22. package/lib/commonjs/constructs/feature/config/alarm/QpqConfigAwsAlarm.d.ts +1 -1
  23. package/lib/commonjs/constructs/feature/config/alarm/QpqConfigAwsAlarm.js +1 -1
  24. package/lib/commonjs/constructs/feature/core/auth/QpqInfCoreUserDirectoryConstruct.d.ts +2 -2
  25. package/lib/commonjs/constructs/feature/core/auth/QpqInfCoreUserDirectoryConstruct.js +4 -4
  26. package/lib/commonjs/constructs/feature/core/deployEvents/QpqCoreDeployEventConstruct.d.ts +2 -2
  27. package/lib/commonjs/constructs/feature/core/deployEvents/QpqCoreDeployEventConstruct.js +1 -1
  28. package/lib/commonjs/constructs/feature/core/eventBus/QpqCoreEventBusConstruct.d.ts +2 -2
  29. package/lib/commonjs/constructs/feature/core/eventBus/QpqCoreEventBusConstruct.js +3 -3
  30. package/lib/commonjs/constructs/feature/core/graphDatabase/QpqCoreApiGraphDatabaseConstruct.d.ts +2 -2
  31. package/lib/commonjs/constructs/feature/core/graphDatabase/QpqCoreApiGraphDatabaseConstruct.js +3 -3
  32. package/lib/commonjs/constructs/feature/core/index.d.ts +2 -2
  33. package/lib/commonjs/constructs/feature/core/index.js +2 -2
  34. package/lib/commonjs/constructs/feature/core/keyValueStore/QpqCoreKeyValueStoreConstruct.d.ts +3 -3
  35. package/lib/commonjs/constructs/feature/core/keyValueStore/QpqCoreKeyValueStoreConstruct.js +3 -10
  36. package/lib/commonjs/constructs/feature/core/parameter/QpqCoreParameterConstruct.d.ts +2 -2
  37. package/lib/commonjs/constructs/feature/core/parameter/QpqCoreParameterConstruct.js +3 -3
  38. package/lib/commonjs/constructs/feature/core/queue/QpqApiCoreQueueConstruct.d.ts +2 -2
  39. package/lib/commonjs/constructs/feature/core/queue/QpqApiCoreQueueConstruct.js +5 -5
  40. package/lib/commonjs/constructs/feature/core/queue/QpqCoreQueueConstruct.d.ts +3 -3
  41. package/lib/commonjs/constructs/feature/core/queue/QpqCoreQueueConstruct.js +4 -4
  42. package/lib/commonjs/constructs/feature/core/queue/index.d.ts +1 -1
  43. package/lib/commonjs/constructs/feature/core/queue/index.js +1 -1
  44. package/lib/commonjs/constructs/feature/core/schedule/QpqCoreRecurringScheduleConstruct.d.ts +2 -2
  45. package/lib/commonjs/constructs/feature/core/schedule/QpqCoreRecurringScheduleConstruct.js +1 -1
  46. package/lib/commonjs/constructs/feature/core/secret/QpqCoreSecretConstruct.d.ts +3 -3
  47. package/lib/commonjs/constructs/feature/core/secret/QpqCoreSecretConstruct.js +2 -2
  48. package/lib/commonjs/constructs/feature/core/storageDrive/QpqApiCoreStorageDriveConstruct.d.ts +2 -2
  49. package/lib/commonjs/constructs/feature/core/storageDrive/QpqApiCoreStorageDriveConstruct.js +2 -2
  50. package/lib/commonjs/constructs/feature/core/storageDrive/QpqCoreStorageDriveConstruct.d.ts +3 -3
  51. package/lib/commonjs/constructs/feature/core/storageDrive/QpqCoreStorageDriveConstruct.js +6 -15
  52. package/lib/commonjs/constructs/feature/core/storageDrive/index.d.ts +1 -1
  53. package/lib/commonjs/constructs/feature/core/storageDrive/index.js +1 -1
  54. package/lib/commonjs/constructs/feature/core/virtualNetwork/BootstrapQpqCoreVirtualNetworkConstruct.d.ts +1 -1
  55. package/lib/commonjs/constructs/feature/core/virtualNetwork/BootstrapQpqCoreVirtualNetworkConstruct.js +1 -1
  56. package/lib/commonjs/constructs/feature/webserver/api/ApiQpqWebserverApiConstruct.d.ts +1 -1
  57. package/lib/commonjs/constructs/feature/webserver/api/ApiQpqWebserverApiConstruct.js +3 -3
  58. package/lib/commonjs/constructs/feature/webserver/api/BootstrapQpqWebserverApiConstruct.d.ts +1 -1
  59. package/lib/commonjs/constructs/feature/webserver/apiKey/QpqWebserverApiKeyConstruct.d.ts +1 -1
  60. package/lib/commonjs/constructs/feature/webserver/apiKey/QpqWebserverApiKeyConstruct.js +2 -2
  61. package/lib/commonjs/constructs/feature/webserver/cache/QpqWebServerCacheConstruct.d.ts +2 -2
  62. package/lib/commonjs/constructs/feature/webserver/cache/QpqWebServerCacheConstruct.js +2 -2
  63. package/lib/commonjs/constructs/feature/webserver/certificate/QpqWebserverCertificateConstruct.d.ts +1 -1
  64. package/lib/commonjs/constructs/feature/webserver/certificate/QpqWebserverCertificateConstruct.js +1 -1
  65. package/lib/commonjs/constructs/feature/webserver/domain/QpqWebserverDomainConstruct.d.ts +2 -2
  66. package/lib/commonjs/constructs/feature/webserver/domain/QpqWebserverDomainConstruct.js +2 -2
  67. package/lib/commonjs/constructs/feature/webserver/domainProxy/WebQpqWebserverDomainProxyConstruct.d.ts +1 -1
  68. package/lib/commonjs/constructs/feature/webserver/domainProxy/WebQpqWebserverDomainProxyConstruct.js +5 -5
  69. package/lib/commonjs/constructs/feature/webserver/index.d.ts +1 -1
  70. package/lib/commonjs/constructs/feature/webserver/index.js +1 -1
  71. package/lib/commonjs/constructs/feature/webserver/redirect/QpqWebserverSubdomainRedirectConstruct.d.ts +1 -1
  72. package/lib/commonjs/constructs/feature/webserver/redirect/QpqWebserverSubdomainRedirectConstruct.js +2 -2
  73. package/lib/commonjs/constructs/feature/webserver/serviceFunction/QpqWebserverServiceFunctionConstruct.d.ts +1 -1
  74. package/lib/commonjs/constructs/feature/webserver/serviceFunction/QpqWebserverServiceFunctionConstruct.js +1 -1
  75. package/lib/commonjs/constructs/feature/webserver/webEntry/WebQpqWebserverWebEntryConstruct.d.ts +1 -1
  76. package/lib/commonjs/constructs/feature/webserver/webEntry/WebQpqWebserverWebEntryConstruct.js +8 -8
  77. package/lib/commonjs/constructs/feature/webserver/webEntry/utils/securityHeaders.d.ts +2 -2
  78. package/lib/commonjs/constructs/feature/webserver/webEntry/utils/securityHeaders.js +2 -2
  79. package/lib/commonjs/constructs/feature/webserver/websocket/QpqApiWebserverWebsocketConstruct.d.ts +1 -1
  80. package/lib/commonjs/constructs/feature/webserver/websocket/QpqApiWebserverWebsocketConstruct.js +4 -4
  81. package/lib/commonjs/constructs/feature/webserver/websocket/QpqWebserverWebsocketConstruct.d.ts +1 -1
  82. package/lib/commonjs/constructs/feature/webserver/websocket/QpqWebserverWebsocketConstruct.js +2 -2
  83. package/lib/commonjs/constructs/index.d.ts +1 -1
  84. package/lib/commonjs/constructs/index.js +1 -1
  85. package/lib/commonjs/index.d.ts +1 -1
  86. package/lib/commonjs/index.js +1 -1
  87. package/lib/commonjs/stacks/ApiQpqServiceStack.js +2 -2
  88. package/lib/commonjs/stacks/BootstrapQpqServiceStack.js +1 -1
  89. package/lib/commonjs/stacks/InfQpqServiceStack.js +2 -2
  90. package/lib/commonjs/stacks/WebQpqServiceStack.js +1 -1
  91. package/lib/commonjs/stacks/base/QpqServiceStack.d.ts +1 -1
  92. package/lib/commonjs/stacks/base/QpqServiceStack.js +2 -2
  93. package/lib/commonjs/stacks/index.d.ts +1 -1
  94. package/lib/commonjs/stacks/index.js +1 -1
  95. package/lib/commonjs/utils/qpqDeployAwsCdkUtils.d.ts +2 -2
  96. package/lib/commonjs/utils/qpqDeployAwsCdkUtils.js +3 -4
  97. package/lib/esm/constants/index.d.ts +1 -1
  98. package/lib/esm/constants/index.js +1 -1
  99. package/lib/esm/constructs/base/QpqConstructBlock.d.ts +2 -2
  100. package/lib/esm/constructs/base/QpqConstructBlock.js +1 -1
  101. package/lib/esm/constructs/basic/BSQpqLambdaWarmerEventConstruct.d.ts +1 -1
  102. package/lib/esm/constructs/basic/BSQpqLambdaWarmerEventConstruct.js +2 -2
  103. package/lib/esm/constructs/basic/DnsValidatedCertificate.d.ts +2 -2
  104. package/lib/esm/constructs/basic/DnsValidatedCertificate.js +4 -6
  105. package/lib/esm/constructs/basic/Function.d.ts +2 -2
  106. package/lib/esm/constructs/basic/Function.js +5 -5
  107. package/lib/esm/constructs/basic/InfQpqWebserverServiceDomainsConstruct.d.ts +1 -1
  108. package/lib/esm/constructs/basic/InfQpqWebserverServiceDomainsConstruct.js +1 -3
  109. package/lib/esm/constructs/basic/LambdaLayers.d.ts +2 -2
  110. package/lib/esm/constructs/basic/LambdaLayers.js +2 -2
  111. package/lib/esm/constructs/basic/ServiceDomain.js +1 -1
  112. package/lib/esm/constructs/basic/SubdomainName.d.ts +2 -2
  113. package/lib/esm/constructs/basic/SubdomainName.js +1 -1
  114. package/lib/esm/constructs/basic/WebserverRoll.d.ts +1 -1
  115. package/lib/esm/constructs/basic/index.d.ts +2 -2
  116. package/lib/esm/constructs/basic/index.js +2 -2
  117. package/lib/esm/constructs/feature/config/alarm/QpqConfigAwsAlarm.d.ts +1 -1
  118. package/lib/esm/constructs/feature/config/alarm/QpqConfigAwsAlarm.js +1 -1
  119. package/lib/esm/constructs/feature/core/auth/QpqInfCoreUserDirectoryConstruct.d.ts +2 -2
  120. package/lib/esm/constructs/feature/core/auth/QpqInfCoreUserDirectoryConstruct.js +5 -5
  121. package/lib/esm/constructs/feature/core/deployEvents/QpqCoreDeployEventConstruct.d.ts +2 -2
  122. package/lib/esm/constructs/feature/core/deployEvents/QpqCoreDeployEventConstruct.js +1 -1
  123. package/lib/esm/constructs/feature/core/eventBus/QpqCoreEventBusConstruct.d.ts +2 -2
  124. package/lib/esm/constructs/feature/core/eventBus/QpqCoreEventBusConstruct.js +3 -3
  125. package/lib/esm/constructs/feature/core/graphDatabase/QpqCoreApiGraphDatabaseConstruct.d.ts +2 -2
  126. package/lib/esm/constructs/feature/core/graphDatabase/QpqCoreApiGraphDatabaseConstruct.js +4 -4
  127. package/lib/esm/constructs/feature/core/index.d.ts +2 -2
  128. package/lib/esm/constructs/feature/core/index.js +2 -2
  129. package/lib/esm/constructs/feature/core/keyValueStore/QpqCoreKeyValueStoreConstruct.d.ts +3 -3
  130. package/lib/esm/constructs/feature/core/keyValueStore/QpqCoreKeyValueStoreConstruct.js +3 -10
  131. package/lib/esm/constructs/feature/core/parameter/QpqCoreParameterConstruct.d.ts +2 -2
  132. package/lib/esm/constructs/feature/core/parameter/QpqCoreParameterConstruct.js +3 -3
  133. package/lib/esm/constructs/feature/core/queue/QpqApiCoreQueueConstruct.d.ts +2 -2
  134. package/lib/esm/constructs/feature/core/queue/QpqApiCoreQueueConstruct.js +5 -5
  135. package/lib/esm/constructs/feature/core/queue/QpqCoreQueueConstruct.d.ts +3 -3
  136. package/lib/esm/constructs/feature/core/queue/QpqCoreQueueConstruct.js +5 -5
  137. package/lib/esm/constructs/feature/core/queue/index.d.ts +1 -1
  138. package/lib/esm/constructs/feature/core/queue/index.js +1 -1
  139. package/lib/esm/constructs/feature/core/schedule/QpqCoreRecurringScheduleConstruct.d.ts +2 -2
  140. package/lib/esm/constructs/feature/core/schedule/QpqCoreRecurringScheduleConstruct.js +1 -1
  141. package/lib/esm/constructs/feature/core/secret/QpqCoreSecretConstruct.d.ts +3 -3
  142. package/lib/esm/constructs/feature/core/secret/QpqCoreSecretConstruct.js +3 -3
  143. package/lib/esm/constructs/feature/core/storageDrive/QpqApiCoreStorageDriveConstruct.d.ts +2 -2
  144. package/lib/esm/constructs/feature/core/storageDrive/QpqApiCoreStorageDriveConstruct.js +2 -2
  145. package/lib/esm/constructs/feature/core/storageDrive/QpqCoreStorageDriveConstruct.d.ts +3 -3
  146. package/lib/esm/constructs/feature/core/storageDrive/QpqCoreStorageDriveConstruct.js +7 -16
  147. package/lib/esm/constructs/feature/core/storageDrive/index.d.ts +1 -1
  148. package/lib/esm/constructs/feature/core/storageDrive/index.js +1 -1
  149. package/lib/esm/constructs/feature/core/virtualNetwork/BootstrapQpqCoreVirtualNetworkConstruct.d.ts +1 -1
  150. package/lib/esm/constructs/feature/core/virtualNetwork/BootstrapQpqCoreVirtualNetworkConstruct.js +1 -1
  151. package/lib/esm/constructs/feature/webserver/api/ApiQpqWebserverApiConstruct.d.ts +1 -1
  152. package/lib/esm/constructs/feature/webserver/api/ApiQpqWebserverApiConstruct.js +3 -3
  153. package/lib/esm/constructs/feature/webserver/api/BootstrapQpqWebserverApiConstruct.d.ts +1 -1
  154. package/lib/esm/constructs/feature/webserver/apiKey/QpqWebserverApiKeyConstruct.d.ts +1 -1
  155. package/lib/esm/constructs/feature/webserver/apiKey/QpqWebserverApiKeyConstruct.js +2 -2
  156. package/lib/esm/constructs/feature/webserver/cache/QpqWebServerCacheConstruct.d.ts +2 -2
  157. package/lib/esm/constructs/feature/webserver/cache/QpqWebServerCacheConstruct.js +2 -2
  158. package/lib/esm/constructs/feature/webserver/certificate/QpqWebserverCertificateConstruct.d.ts +1 -1
  159. package/lib/esm/constructs/feature/webserver/certificate/QpqWebserverCertificateConstruct.js +1 -1
  160. package/lib/esm/constructs/feature/webserver/domain/QpqWebserverDomainConstruct.d.ts +2 -2
  161. package/lib/esm/constructs/feature/webserver/domain/QpqWebserverDomainConstruct.js +2 -2
  162. package/lib/esm/constructs/feature/webserver/domainProxy/WebQpqWebserverDomainProxyConstruct.d.ts +1 -1
  163. package/lib/esm/constructs/feature/webserver/domainProxy/WebQpqWebserverDomainProxyConstruct.js +5 -5
  164. package/lib/esm/constructs/feature/webserver/index.d.ts +1 -1
  165. package/lib/esm/constructs/feature/webserver/index.js +1 -1
  166. package/lib/esm/constructs/feature/webserver/redirect/QpqWebserverSubdomainRedirectConstruct.d.ts +1 -1
  167. package/lib/esm/constructs/feature/webserver/redirect/QpqWebserverSubdomainRedirectConstruct.js +2 -2
  168. package/lib/esm/constructs/feature/webserver/serviceFunction/QpqWebserverServiceFunctionConstruct.d.ts +1 -1
  169. package/lib/esm/constructs/feature/webserver/serviceFunction/QpqWebserverServiceFunctionConstruct.js +1 -1
  170. package/lib/esm/constructs/feature/webserver/webEntry/WebQpqWebserverWebEntryConstruct.d.ts +1 -1
  171. package/lib/esm/constructs/feature/webserver/webEntry/WebQpqWebserverWebEntryConstruct.js +9 -9
  172. package/lib/esm/constructs/feature/webserver/webEntry/utils/securityHeaders.d.ts +2 -2
  173. package/lib/esm/constructs/feature/webserver/webEntry/utils/securityHeaders.js +2 -2
  174. package/lib/esm/constructs/feature/webserver/websocket/QpqApiWebserverWebsocketConstruct.d.ts +1 -1
  175. package/lib/esm/constructs/feature/webserver/websocket/QpqApiWebserverWebsocketConstruct.js +4 -4
  176. package/lib/esm/constructs/feature/webserver/websocket/QpqWebserverWebsocketConstruct.d.ts +1 -1
  177. package/lib/esm/constructs/feature/webserver/websocket/QpqWebserverWebsocketConstruct.js +2 -2
  178. package/lib/esm/constructs/index.d.ts +1 -1
  179. package/lib/esm/constructs/index.js +1 -1
  180. package/lib/esm/index.d.ts +1 -1
  181. package/lib/esm/index.js +1 -1
  182. package/lib/esm/stacks/ApiQpqServiceStack.js +2 -2
  183. package/lib/esm/stacks/BootstrapQpqServiceStack.js +1 -1
  184. package/lib/esm/stacks/InfQpqServiceStack.js +3 -3
  185. package/lib/esm/stacks/WebQpqServiceStack.js +1 -1
  186. package/lib/esm/stacks/base/QpqServiceStack.d.ts +1 -1
  187. package/lib/esm/stacks/base/QpqServiceStack.js +2 -2
  188. package/lib/esm/stacks/index.d.ts +1 -1
  189. package/lib/esm/stacks/index.js +1 -1
  190. package/lib/esm/utils/qpqDeployAwsCdkUtils.d.ts +2 -2
  191. package/lib/esm/utils/qpqDeployAwsCdkUtils.js +4 -4
  192. package/package.json +11 -8
  193. package/src/constants/index.ts +1 -1
  194. package/src/constructs/base/QpqConstructBlock.ts +7 -15
  195. package/src/constructs/basic/BSQpqLambdaWarmerEventConstruct.ts +2 -3
  196. package/src/constructs/basic/DnsValidatedCertificate.ts +7 -14
  197. package/src/constructs/basic/Function.ts +6 -7
  198. package/src/constructs/basic/InfQpqWebserverServiceDomainsConstruct.ts +2 -4
  199. package/src/constructs/basic/LambdaLayers.ts +7 -12
  200. package/src/constructs/basic/ServiceDomain.ts +5 -11
  201. package/src/constructs/basic/SubdomainName.ts +5 -11
  202. package/src/constructs/basic/WebserverRoll.ts +1 -1
  203. package/src/constructs/basic/index.ts +2 -2
  204. package/src/constructs/feature/config/alarm/QpqConfigAwsAlarm.ts +6 -18
  205. package/src/constructs/feature/core/auth/QpqInfCoreUserDirectoryConstruct.ts +7 -9
  206. package/src/constructs/feature/core/deployEvents/QpqCoreDeployEventConstruct.ts +3 -4
  207. package/src/constructs/feature/core/eventBus/QpqCoreEventBusConstruct.ts +5 -10
  208. package/src/constructs/feature/core/graphDatabase/QpqCoreApiGraphDatabaseConstruct.ts +6 -5
  209. package/src/constructs/feature/core/index.ts +2 -2
  210. package/src/constructs/feature/core/keyValueStore/QpqCoreKeyValueStoreConstruct.ts +11 -33
  211. package/src/constructs/feature/core/parameter/QpqCoreParameterConstruct.ts +11 -31
  212. package/src/constructs/feature/core/queue/QpqApiCoreQueueConstruct.ts +8 -9
  213. package/src/constructs/feature/core/queue/QpqCoreQueueConstruct.ts +8 -12
  214. package/src/constructs/feature/core/queue/index.ts +1 -1
  215. package/src/constructs/feature/core/schedule/QpqCoreRecurringScheduleConstruct.ts +3 -4
  216. package/src/constructs/feature/core/secret/QpqCoreSecretConstruct.ts +13 -39
  217. package/src/constructs/feature/core/storageDrive/QpqApiCoreStorageDriveConstruct.ts +5 -5
  218. package/src/constructs/feature/core/storageDrive/QpqCoreStorageDriveConstruct.ts +17 -61
  219. package/src/constructs/feature/core/storageDrive/index.ts +1 -1
  220. package/src/constructs/feature/core/virtualNetwork/BootstrapQpqCoreVirtualNetworkConstruct.ts +3 -3
  221. package/src/constructs/feature/webserver/api/ApiQpqWebserverApiConstruct.ts +4 -7
  222. package/src/constructs/feature/webserver/api/BootstrapQpqWebserverApiConstruct.ts +3 -7
  223. package/src/constructs/feature/webserver/apiKey/QpqWebserverApiKeyConstruct.ts +5 -10
  224. package/src/constructs/feature/webserver/cache/QpqWebServerCacheConstruct.ts +6 -17
  225. package/src/constructs/feature/webserver/certificate/QpqWebserverCertificateConstruct.ts +2 -2
  226. package/src/constructs/feature/webserver/domain/QpqWebserverDomainConstruct.ts +4 -5
  227. package/src/constructs/feature/webserver/domainProxy/WebQpqWebserverDomainProxyConstruct.ts +9 -27
  228. package/src/constructs/feature/webserver/index.ts +1 -1
  229. package/src/constructs/feature/webserver/redirect/QpqWebserverSubdomainRedirectConstruct.ts +7 -9
  230. package/src/constructs/feature/webserver/serviceFunction/QpqWebserverServiceFunctionConstruct.ts +4 -5
  231. package/src/constructs/feature/webserver/webEntry/WebQpqWebserverWebEntryConstruct.ts +13 -18
  232. package/src/constructs/feature/webserver/webEntry/utils/securityHeaders.ts +10 -10
  233. package/src/constructs/feature/webserver/websocket/QpqApiWebserverWebsocketConstruct.ts +6 -7
  234. package/src/constructs/feature/webserver/websocket/QpqWebserverWebsocketConstruct.ts +7 -16
  235. package/src/constructs/index.ts +1 -1
  236. package/src/index.ts +1 -2
  237. package/src/stacks/ApiQpqServiceStack.ts +22 -30
  238. package/src/stacks/BootstrapQpqServiceStack.ts +1 -1
  239. package/src/stacks/InfQpqServiceStack.ts +8 -8
  240. package/src/stacks/WebQpqServiceStack.ts +8 -16
  241. package/src/stacks/base/QpqServiceStack.ts +3 -4
  242. package/src/stacks/index.ts +1 -1
  243. package/src/utils/qpqDeployAwsCdkUtils.ts +18 -15
package/README.md CHANGED
@@ -1,61 +1,81 @@
1
1
  # quidproquo-deploy-awscdk
2
2
 
3
- The `quidproquo-deploy-awscdk` library is a key component of the quidproquo framework, providing a set of constructs and utilities for deploying quidproquo-based applications on the AWS Cloud using the AWS CDK (Cloud Development Kit).
3
+ The `quidproquo-deploy-awscdk` library is a key component of the quidproquo framework, providing a set of constructs and utilities for deploying
4
+ quidproquo-based applications on the AWS Cloud using the AWS CDK (Cloud Development Kit).
4
5
 
5
6
  ## WARNING: NOT FOR PRODUCTION
6
7
 
7
- **This project is currently under active development and should not be used in production environments. The APIs and functionality are subject to change without notice.**
8
+ **This project is currently under active development and should not be used in production environments. The APIs and functionality are subject to
9
+ change without notice.**
8
10
 
9
11
  ## Key Features
10
12
 
11
- 1. **Construct-based Deployment**: The `quidproquo-deploy-awscdk` library provides a set of custom constructs that encapsulate the deployment of various quidproquo components, such as APIs, queues, storage drives, and more, on the AWS platform.
13
+ 1. **Construct-based Deployment**: The `quidproquo-deploy-awscdk` library provides a set of custom constructs that encapsulate the deployment of
14
+ various quidproquo components, such as APIs, queues, storage drives, and more, on the AWS platform.
12
15
 
13
- 2. **Seamless Integration**: The constructs in this library are designed to work seamlessly with the core quidproquo functionality, ensuring a consistent and cohesive development experience.
16
+ 2. **Seamless Integration**: The constructs in this library are designed to work seamlessly with the core quidproquo functionality, ensuring a
17
+ consistent and cohesive development experience.
14
18
 
15
- 3. **Extensibility**: The library is designed to be highly extensible, allowing developers to create custom constructs or modify existing ones to meet their specific requirements.
19
+ 3. **Extensibility**: The library is designed to be highly extensible, allowing developers to create custom constructs or modify existing ones to meet
20
+ their specific requirements.
16
21
 
17
- 4. **Automated Provisioning**: The library handles the provisioning of various AWS resources, such as Lambda functions, API Gateways, DynamoDB tables, and more, based on the quidproquo configuration.
22
+ 4. **Automated Provisioning**: The library handles the provisioning of various AWS resources, such as Lambda functions, API Gateways, DynamoDB tables,
23
+ and more, based on the quidproquo configuration.
18
24
 
19
- 5. **Dependency Management**: The library manages the dependencies between various quidproquo components, ensuring that the deployment process is efficient and reliable.
25
+ 5. **Dependency Management**: The library manages the dependencies between various quidproquo components, ensuring that the deployment process is
26
+ efficient and reliable.
20
27
 
21
- 6. **Logging and Observability**: The library integrates with the quidproquo logging and observability features, ensuring that deployment-related logs and metrics are captured and made available for monitoring and troubleshooting.
28
+ 6. **Logging and Observability**: The library integrates with the quidproquo logging and observability features, ensuring that deployment-related logs
29
+ and metrics are captured and made available for monitoring and troubleshooting.
22
30
 
23
- 7. **Reusable Constructs**: The library provides a set of reusable constructs that can be used across multiple quidproquo-based applications, promoting code reuse and consistency.
31
+ 7. **Reusable Constructs**: The library provides a set of reusable constructs that can be used across multiple quidproquo-based applications,
32
+ promoting code reuse and consistency.
24
33
 
25
34
  ## Key Concepts
26
35
 
27
- 1. **Constructs**: Constructs are the fundamental building blocks of the `quidproquo-deploy-awscdk` library. They represent the various AWS resources and configurations required to deploy a quidproquo-based application.
36
+ 1. **Constructs**: Constructs are the fundamental building blocks of the `quidproquo-deploy-awscdk` library. They represent the various AWS resources
37
+ and configurations required to deploy a quidproquo-based application.
28
38
 
29
- 2. **Stacks**: Stacks are higher-level constructs that group related resources and configurations together, ensuring a cohesive and organized deployment process.
39
+ 2. **Stacks**: Stacks are higher-level constructs that group related resources and configurations together, ensuring a cohesive and organized
40
+ deployment process.
30
41
 
31
- 3. **Dependency Management**: The library manages the dependencies between various quidproquo components, ensuring that the deployment process is efficient and reliable.
42
+ 3. **Dependency Management**: The library manages the dependencies between various quidproquo components, ensuring that the deployment process is
43
+ efficient and reliable.
32
44
 
33
- 4. **Naming Conventions**: The library follows a consistent naming convention for the provisioned AWS resources, ensuring that they are easily identifiable and traceable.
45
+ 4. **Naming Conventions**: The library follows a consistent naming convention for the provisioned AWS resources, ensuring that they are easily
46
+ identifiable and traceable.
34
47
 
35
- 5. **Extensibility**: The library is designed to be highly extensible, allowing developers to create custom constructs or modify existing ones to meet their specific requirements.
48
+ 5. **Extensibility**: The library is designed to be highly extensible, allowing developers to create custom constructs or modify existing ones to meet
49
+ their specific requirements.
36
50
 
37
- 6. **Logging and Observability**: The library integrates with the quidproquo logging and observability features, ensuring that deployment-related logs and metrics are captured and made available for monitoring and troubleshooting.
51
+ 6. **Logging and Observability**: The library integrates with the quidproquo logging and observability features, ensuring that deployment-related logs
52
+ and metrics are captured and made available for monitoring and troubleshooting.
38
53
 
39
- 7. **Reusable Constructs**: The library provides a set of reusable constructs that can be used across multiple quidproquo-based applications, promoting code reuse and consistency.
54
+ 7. **Reusable Constructs**: The library provides a set of reusable constructs that can be used across multiple quidproquo-based applications,
55
+ promoting code reuse and consistency.
40
56
 
41
57
  ## Getting Started
42
58
 
43
- To use the `quidproquo-deploy-awscdk` library, you'll need to install the package and its dependencies. You can do this using your preferred package manager, such as npm or yarn:
59
+ To use the `quidproquo-deploy-awscdk` library, you'll need to install the package and its dependencies. You can do this using your preferred package
60
+ manager, such as npm or yarn:
44
61
 
45
62
  ```
46
63
  npm install quidproquo-deploy-awscdk
47
64
  ```
48
65
 
49
- Once you have the package installed, you can start building your quidproquo-based applications on the AWS platform, leveraging the constructs and utilities provided by this library.
66
+ Once you have the package installed, you can start building your quidproquo-based applications on the AWS platform, leveraging the constructs and
67
+ utilities provided by this library.
50
68
 
51
69
  ## Documentation
52
70
 
53
- For more detailed information on using the `quidproquo-deploy-awscdk` library, please refer to the [quidproquo-deploy-awscdk documentation](https://github.com/joe-coady/quidproquo/tree/main/packages/quidproquo-deploy-awscdk).
71
+ For more detailed information on using the `quidproquo-deploy-awscdk` library, please refer to the
72
+ [quidproquo-deploy-awscdk documentation](https://github.com/joe-coady/quidproquo/tree/main/packages/quidproquo-deploy-awscdk).
54
73
 
55
74
  ## Contributing
56
75
 
57
- If you'd like to contribute to the development of `quidproquo-deploy-awscdk`, please refer to the [contributing guidelines](https://github.com/joe-coady/quidproquo/blob/main/CONTRIBUTING.md) for more information.
76
+ If you'd like to contribute to the development of `quidproquo-deploy-awscdk`, please refer to the
77
+ [contributing guidelines](https://github.com/joe-coady/quidproquo/blob/main/CONTRIBUTING.md) for more information.
58
78
 
59
79
  ## License
60
80
 
61
- `quidproquo-deploy-awscdk` is licensed under the [MIT License](https://github.com/joe-coady/quidproquo/blob/main/LICENSE).
81
+ `quidproquo-deploy-awscdk` is licensed under the [MIT License](https://github.com/joe-coady/quidproquo/blob/main/LICENSE).
@@ -1,2 +1,2 @@
1
- export * from './logging';
2
1
  export * from './BootstrapResource';
2
+ export * from './logging';
@@ -14,5 +14,5 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
14
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
- __exportStar(require("./logging"), exports);
18
17
  __exportStar(require("./BootstrapResource"), exports);
18
+ __exportStar(require("./logging"), exports);
@@ -1,8 +1,8 @@
1
1
  import { QPQConfig } from 'quidproquo-core';
2
+ import { aws_iam } from 'aws-cdk-lib';
3
+ import { IGrantable } from 'aws-cdk-lib/aws-iam';
2
4
  import { Construct } from 'constructs';
3
5
  import { QpqResource } from './QpqResource';
4
- import { IGrantable } from 'aws-cdk-lib/aws-iam';
5
- import { aws_iam } from 'aws-cdk-lib';
6
6
  export interface QpqConstructBlockProps {
7
7
  awsAccountId: string;
8
8
  qpqConfig: QPQConfig;
@@ -2,8 +2,8 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.QpqConstructBlock = void 0;
4
4
  const quidproquo_actionprocessor_awslambda_1 = require("quidproquo-actionprocessor-awslambda");
5
- const constructs_1 = require("constructs");
6
5
  const aws_cdk_lib_1 = require("aws-cdk-lib");
6
+ const constructs_1 = require("constructs");
7
7
  class QpqConstructBlock extends constructs_1.Construct {
8
8
  constructor(scope, id, props) {
9
9
  super(scope, id);
@@ -1,5 +1,5 @@
1
- import { QpqConstructBlock, QpqConstructBlockProps } from '../base/QpqConstructBlock';
2
1
  import { Construct } from 'constructs';
2
+ import { QpqConstructBlock, QpqConstructBlockProps } from '../base/QpqConstructBlock';
3
3
  export interface BSQpqLambdaWarmerEventConstructConstructProps extends QpqConstructBlockProps {
4
4
  }
5
5
  export declare class BSQpqLambdaWarmerEventConstructConstruct extends QpqConstructBlock {
@@ -2,8 +2,8 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.BSQpqLambdaWarmerEventConstructConstruct = void 0;
4
4
  const aws_cdk_lib_1 = require("aws-cdk-lib");
5
- const QpqConstructBlock_1 = require("../base/QpqConstructBlock");
6
5
  const constants_1 = require("../../constants");
6
+ const QpqConstructBlock_1 = require("../base/QpqConstructBlock");
7
7
  class BSQpqLambdaWarmerEventConstructConstruct extends QpqConstructBlock_1.QpqConstructBlock {
8
8
  constructor(scope, id, props) {
9
9
  super(scope, id, props);
@@ -1,6 +1,6 @@
1
- import { QpqConstructBlock, QpqConstructBlockProps } from '../base/QpqConstructBlock';
1
+ import { aws_certificatemanager, aws_route53 } from 'aws-cdk-lib';
2
2
  import { Construct } from 'constructs';
3
- import { aws_route53, aws_certificatemanager } from 'aws-cdk-lib';
3
+ import { QpqConstructBlock, QpqConstructBlockProps } from '../base/QpqConstructBlock';
4
4
  interface DomainConfig {
5
5
  rootDomain: string;
6
6
  subDomainNames?: string[];
@@ -24,10 +24,10 @@ var __importStar = (this && this.__importStar) || function (mod) {
24
24
  };
25
25
  Object.defineProperty(exports, "__esModule", { value: true });
26
26
  exports.DnsValidatedCertificate = void 0;
27
- const QpqConstructBlock_1 = require("../base/QpqConstructBlock");
28
- const aws_cdk_lib_1 = require("aws-cdk-lib");
29
27
  const quidproquo_webserver_1 = require("quidproquo-webserver");
28
+ const aws_cdk_lib_1 = require("aws-cdk-lib");
30
29
  const qpqDeployAwsCdkUtils = __importStar(require("../../utils"));
30
+ const QpqConstructBlock_1 = require("../base/QpqConstructBlock");
31
31
  class DnsValidatedCertificate extends QpqConstructBlock_1.QpqConstructBlock {
32
32
  constructor(scope, id, props) {
33
33
  var _a;
@@ -39,11 +39,9 @@ class DnsValidatedCertificate extends QpqConstructBlock_1.QpqConstructBlock {
39
39
  domainName: apexDomain,
40
40
  });
41
41
  // Generate domain names for all subdomains
42
- this.domainNames =
43
- ((_a = props.domain.subDomainNames) === null || _a === void 0 ? void 0 : _a.map((subDomain) => `${subDomain}.${apexDomain}`)) || [];
42
+ this.domainNames = ((_a = props.domain.subDomainNames) === null || _a === void 0 ? void 0 : _a.map((subDomain) => `${subDomain}.${apexDomain}`)) || [];
44
43
  // Include the apex domain if onRootDomain is true
45
- if (props.domain.onRootDomain &&
46
- (!props.domain.subDomainNames || props.domain.subDomainNames.length === 0)) {
44
+ if (props.domain.onRootDomain && (!props.domain.subDomainNames || props.domain.subDomainNames.length === 0)) {
47
45
  this.domainNames.unshift(apexDomain);
48
46
  }
49
47
  // Create the certificate
@@ -1,6 +1,6 @@
1
- import { QpqConstructBlock, QpqConstructBlockProps } from '../base/QpqConstructBlock';
1
+ import { aws_ec2, aws_iam, aws_lambda } from 'aws-cdk-lib';
2
2
  import { Construct } from 'constructs';
3
- import { aws_lambda, aws_iam, aws_ec2 } from 'aws-cdk-lib';
3
+ import { QpqConstructBlock, QpqConstructBlockProps } from '../base/QpqConstructBlock';
4
4
  export interface FunctionProps extends QpqConstructBlockProps {
5
5
  functionName?: string;
6
6
  srcFilename?: string;
@@ -27,13 +27,13 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
27
27
  };
28
28
  Object.defineProperty(exports, "__esModule", { value: true });
29
29
  exports.Function = void 0;
30
- const path_1 = __importDefault(require("path"));
31
- const QpqConstructBlock_1 = require("../base/QpqConstructBlock");
30
+ const quidproquo_config_aws_1 = require("quidproquo-config-aws");
31
+ const quidproquo_core_1 = require("quidproquo-core");
32
32
  const aws_cdk_lib_1 = require("aws-cdk-lib");
33
33
  const cdk = __importStar(require("aws-cdk-lib"));
34
- const quidproquo_config_aws_1 = require("quidproquo-config-aws");
34
+ const path_1 = __importDefault(require("path"));
35
35
  const constants_1 = require("../../constants");
36
- const quidproquo_core_1 = require("quidproquo-core");
36
+ const QpqConstructBlock_1 = require("../base/QpqConstructBlock");
37
37
  class Function extends QpqConstructBlock_1.QpqConstructBlock {
38
38
  constructor(scope, id, props) {
39
39
  var _a;
@@ -1,5 +1,5 @@
1
- import { QpqConstructBlock, QpqConstructBlockProps } from '../base/QpqConstructBlock';
2
1
  import { Construct } from 'constructs';
2
+ import { QpqConstructBlock, QpqConstructBlockProps } from '../base/QpqConstructBlock';
3
3
  export interface InfQpqWebserverServiceDomainsConstructProps extends QpqConstructBlockProps {
4
4
  }
5
5
  export declare class InfQpqWebserverServiceDomainsConstruct extends QpqConstructBlock {
@@ -19,9 +19,7 @@ class InfQpqWebserverServiceDomainsConstruct extends QpqConstructBlock_1.QpqCons
19
19
  .getOwnedWebsocketSettings(props.qpqConfig)
20
20
  .filter((we) => !we.onRootDomain)
21
21
  .map((we) => we.rootDomain);
22
- const uniqueRootDomains = [
23
- ...new Set([...webEntryRootDomains, ...domainProxyRootDomains, ...websocketRootDomains]),
24
- ];
22
+ const uniqueRootDomains = [...new Set([...webEntryRootDomains, ...domainProxyRootDomains, ...websocketRootDomains])];
25
23
  for (const rootDomain of uniqueRootDomains) {
26
24
  new ServiceDomain_1.ServiceDomainConstruct(this, `domain-${rootDomain}`, {
27
25
  awsAccountId: props.awsAccountId,
@@ -1,6 +1,6 @@
1
- import { QpqConstructBlock, QpqConstructBlockProps } from '../base/QpqConstructBlock';
2
- import { Construct } from 'constructs';
3
1
  import { aws_lambda } from 'aws-cdk-lib';
2
+ import { Construct } from 'constructs';
3
+ import { QpqConstructBlock, QpqConstructBlockProps } from '../base/QpqConstructBlock';
4
4
  export interface LambdaLayersProps extends QpqConstructBlockProps {
5
5
  }
6
6
  export declare class LambdaLayers extends QpqConstructBlock {
@@ -2,9 +2,9 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.LambdaLayers = void 0;
4
4
  const quidproquo_actionprocessor_awslambda_1 = require("quidproquo-actionprocessor-awslambda");
5
- const QpqConstructBlock_1 = require("../base/QpqConstructBlock");
6
- const aws_cdk_lib_1 = require("aws-cdk-lib");
7
5
  const quidproquo_config_aws_1 = require("quidproquo-config-aws");
6
+ const aws_cdk_lib_1 = require("aws-cdk-lib");
7
+ const QpqConstructBlock_1 = require("../base/QpqConstructBlock");
8
8
  class LambdaLayers extends QpqConstructBlock_1.QpqConstructBlock {
9
9
  constructor(scope, id, props) {
10
10
  super(scope, id, props);
@@ -1,9 +1,9 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.ServiceDomainConstruct = void 0;
4
- const aws_cdk_lib_1 = require("aws-cdk-lib");
5
4
  const quidproquo_core_1 = require("quidproquo-core");
6
5
  const quidproquo_webserver_1 = require("quidproquo-webserver");
6
+ const aws_cdk_lib_1 = require("aws-cdk-lib");
7
7
  const base_1 = require("../base");
8
8
  class ServiceDomainConstruct extends base_1.QpqConstructBlock {
9
9
  constructor(scope, id, props) {
@@ -1,6 +1,6 @@
1
- import { QpqConstructBlock, QpqConstructBlockProps } from '../base/QpqConstructBlock';
1
+ import { aws_apigateway, aws_certificatemanager, aws_route53 } from 'aws-cdk-lib';
2
2
  import { Construct } from 'constructs';
3
- import { aws_route53, aws_certificatemanager, aws_apigateway } from 'aws-cdk-lib';
3
+ import { QpqConstructBlock, QpqConstructBlockProps } from '../base/QpqConstructBlock';
4
4
  export interface SubdomainNameProps extends QpqConstructBlockProps {
5
5
  subdomain: string;
6
6
  apexDomain: string;
@@ -1,8 +1,8 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.SubdomainName = void 0;
4
- const QpqConstructBlock_1 = require("../base/QpqConstructBlock");
5
4
  const aws_cdk_lib_1 = require("aws-cdk-lib");
5
+ const QpqConstructBlock_1 = require("../base/QpqConstructBlock");
6
6
  class SubdomainName extends QpqConstructBlock_1.QpqConstructBlock {
7
7
  constructor(scope, id, props) {
8
8
  super(scope, id, props);
@@ -1,5 +1,5 @@
1
- import { Construct } from 'constructs';
2
1
  import { aws_iam } from 'aws-cdk-lib';
2
+ import { Construct } from 'constructs';
3
3
  import { QpqConstructBlock, QpqConstructBlockProps } from '../base/QpqConstructBlock';
4
4
  export interface WebserverRollProps extends QpqConstructBlockProps {
5
5
  }
@@ -1,5 +1,5 @@
1
1
  export * from './Function';
2
+ export * from './InfQpqWebserverServiceDomainsConstruct';
2
3
  export * from './LambdaLayers';
3
- export * from './SubdomainName';
4
4
  export * from './ServiceDomain';
5
- export * from './InfQpqWebserverServiceDomainsConstruct';
5
+ export * from './SubdomainName';
@@ -15,7 +15,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
17
  __exportStar(require("./Function"), exports);
18
+ __exportStar(require("./InfQpqWebserverServiceDomainsConstruct"), exports);
18
19
  __exportStar(require("./LambdaLayers"), exports);
19
- __exportStar(require("./SubdomainName"), exports);
20
20
  __exportStar(require("./ServiceDomain"), exports);
21
- __exportStar(require("./InfQpqWebserverServiceDomainsConstruct"), exports);
21
+ __exportStar(require("./SubdomainName"), exports);
@@ -1,6 +1,6 @@
1
+ import { AwsAlarmQPQConfigSetting } from 'quidproquo-config-aws';
1
2
  import { Construct } from 'constructs';
2
3
  import { QpqConstructBlock, QpqConstructBlockProps } from '../../../base/QpqConstructBlock';
3
- import { AwsAlarmQPQConfigSetting } from 'quidproquo-config-aws';
4
4
  export interface QpqConfigAwsAlarmConstructProps extends QpqConstructBlockProps {
5
5
  alarmConfig: AwsAlarmQPQConfigSetting;
6
6
  }
@@ -24,10 +24,10 @@ var __importStar = (this && this.__importStar) || function (mod) {
24
24
  };
25
25
  Object.defineProperty(exports, "__esModule", { value: true });
26
26
  exports.QpqConfigAwsAlarmConstruct = void 0;
27
+ const quidproquo_config_aws_1 = require("quidproquo-config-aws");
27
28
  const aws_cdk_lib_1 = require("aws-cdk-lib");
28
29
  const cdk = __importStar(require("aws-cdk-lib"));
29
30
  const QpqConstructBlock_1 = require("../../../base/QpqConstructBlock");
30
- const quidproquo_config_aws_1 = require("quidproquo-config-aws");
31
31
  const core_1 = require("../../core");
32
32
  function AwsAlarmOperatorToComparisonOperator(operator) {
33
33
  switch (operator) {
@@ -1,7 +1,7 @@
1
1
  import { QPQConfig, UserDirectoryQPQConfigSetting } from 'quidproquo-core';
2
- import { QpqConstructBlock, QpqConstructBlockProps } from '../../../base/QpqConstructBlock';
2
+ import { aws_cognito, aws_iam } from 'aws-cdk-lib';
3
3
  import { Construct } from 'constructs';
4
- import { aws_iam, aws_cognito } from 'aws-cdk-lib';
4
+ import { QpqConstructBlock, QpqConstructBlockProps } from '../../../base/QpqConstructBlock';
5
5
  export interface QpqInfCoreUserDirectoryConstructProps extends QpqConstructBlockProps {
6
6
  userDirectoryConfig: UserDirectoryQPQConfigSetting;
7
7
  }
@@ -24,15 +24,15 @@ var __importStar = (this && this.__importStar) || function (mod) {
24
24
  };
25
25
  Object.defineProperty(exports, "__esModule", { value: true });
26
26
  exports.QpqInfCoreUserDirectoryConstruct = void 0;
27
- const quidproquo_core_1 = require("quidproquo-core");
28
27
  const quidproquo_actionprocessor_awslambda_1 = require("quidproquo-actionprocessor-awslambda");
29
- const QpqConstructBlock_1 = require("../../../base/QpqConstructBlock");
28
+ const quidproquo_config_aws_1 = require("quidproquo-config-aws");
29
+ const quidproquo_core_1 = require("quidproquo-core");
30
30
  const aws_cdk_lib_1 = require("aws-cdk-lib");
31
31
  const cdk = __importStar(require("aws-cdk-lib"));
32
32
  const qpqDeployAwsCdkUtils = __importStar(require("../../../../utils"));
33
- const Function_1 = require("../../../basic/Function");
34
- const quidproquo_config_aws_1 = require("quidproquo-config-aws");
33
+ const QpqConstructBlock_1 = require("../../../base/QpqConstructBlock");
35
34
  const DnsValidatedCertificate_1 = require("../../../basic/DnsValidatedCertificate");
35
+ const Function_1 = require("../../../basic/Function");
36
36
  class QpqInfCoreUserDirectoryConstruct extends QpqConstructBlock_1.QpqConstructBlock {
37
37
  static fromOtherStack(scope, id, qpqConfig, awsAccountId, userDirectoryName) {
38
38
  const userPoolId = qpqDeployAwsCdkUtils.importStackValue(quidproquo_actionprocessor_awslambda_1.awsNamingUtils.getCFExportNameUserPoolIdFromConfig(userDirectoryName, qpqConfig));
@@ -1,7 +1,7 @@
1
1
  import { DeployEventsQPQConfigSetting } from 'quidproquo-core';
2
- import { QpqConstructBlock, QpqConstructBlockProps } from '../../../base/QpqConstructBlock';
3
- import { Construct } from 'constructs';
4
2
  import { aws_lambda } from 'aws-cdk-lib';
3
+ import { Construct } from 'constructs';
4
+ import { QpqConstructBlock, QpqConstructBlockProps } from '../../../base/QpqConstructBlock';
5
5
  export interface QpqCoreDeployEventConstructProps extends QpqConstructBlockProps {
6
6
  deployEventConfig: DeployEventsQPQConfigSetting;
7
7
  apiLayerVersions?: aws_lambda.ILayerVersion[];
@@ -1,8 +1,8 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.QpqCoreDeployEventConstruct = void 0;
4
- const QpqConstructBlock_1 = require("../../../base/QpqConstructBlock");
5
4
  const aws_cdk_lib_1 = require("aws-cdk-lib");
5
+ const QpqConstructBlock_1 = require("../../../base/QpqConstructBlock");
6
6
  const Function_1 = require("../../../basic/Function");
7
7
  class QpqCoreDeployEventConstruct extends QpqConstructBlock_1.QpqConstructBlock {
8
8
  constructor(scope, id, props) {
@@ -1,7 +1,7 @@
1
1
  import { EventBusQPQConfigSetting, QPQConfig } from 'quidproquo-core';
2
- import { QpqConstructBlock, QpqConstructBlockProps } from '../../../base/QpqConstructBlock';
2
+ import { aws_iam, aws_sns } from 'aws-cdk-lib';
3
3
  import { Construct } from 'constructs';
4
- import { aws_sns, aws_iam } from 'aws-cdk-lib';
4
+ import { QpqConstructBlock, QpqConstructBlockProps } from '../../../base/QpqConstructBlock';
5
5
  export interface QpqCoreEventBusConstructProps extends QpqConstructBlockProps {
6
6
  eventBusConfig: EventBusQPQConfigSetting;
7
7
  }
@@ -25,11 +25,11 @@ var __importStar = (this && this.__importStar) || function (mod) {
25
25
  Object.defineProperty(exports, "__esModule", { value: true });
26
26
  exports.QpqCoreEventBusConstruct = exports.QpqCoreEventBusConstructBase = void 0;
27
27
  const quidproquo_actionprocessor_awslambda_1 = require("quidproquo-actionprocessor-awslambda");
28
- const quidproquo_core_1 = require("quidproquo-core");
29
28
  const quidproquo_config_aws_1 = require("quidproquo-config-aws");
30
- const QpqConstructBlock_1 = require("../../../base/QpqConstructBlock");
31
- const qpqDeployAwsCdkUtils = __importStar(require("../../../../utils"));
29
+ const quidproquo_core_1 = require("quidproquo-core");
32
30
  const aws_cdk_lib_1 = require("aws-cdk-lib");
31
+ const qpqDeployAwsCdkUtils = __importStar(require("../../../../utils"));
32
+ const QpqConstructBlock_1 = require("../../../base/QpqConstructBlock");
33
33
  class QpqCoreEventBusConstructBase extends QpqConstructBlock_1.QpqConstructBlock {
34
34
  grantRead(grantee) { }
35
35
  grantWrite(grantee) {
@@ -1,8 +1,8 @@
1
1
  import { GraphDatabaseQPQConfigSetting, QPQConfig } from 'quidproquo-core';
2
- import { QpqConstructBlock, QpqConstructBlockProps } from '../../../base/QpqConstructBlock';
3
- import { Construct } from 'constructs';
4
2
  import { aws_iam } from 'aws-cdk-lib';
3
+ import { Construct } from 'constructs';
5
4
  import * as aws_neptune from '@aws-cdk/aws-neptune-alpha';
5
+ import { QpqConstructBlock, QpqConstructBlockProps } from '../../../base/QpqConstructBlock';
6
6
  export interface QpqCoreApiGraphDatabaseConstructProps extends QpqConstructBlockProps {
7
7
  graphDatabaseConfig: GraphDatabaseQPQConfigSetting;
8
8
  }
@@ -24,12 +24,12 @@ var __importStar = (this && this.__importStar) || function (mod) {
24
24
  };
25
25
  Object.defineProperty(exports, "__esModule", { value: true });
26
26
  exports.QpqCoreApiGraphDatabaseConstruct = void 0;
27
- const QpqConstructBlock_1 = require("../../../base/QpqConstructBlock");
27
+ const quidproquo_actionprocessor_awslambda_1 = require("quidproquo-actionprocessor-awslambda");
28
28
  const quidproquo_config_aws_1 = require("quidproquo-config-aws");
29
29
  const aws_cdk_lib_1 = require("aws-cdk-lib");
30
- const aws_neptune = __importStar(require("@aws-cdk/aws-neptune-alpha"));
31
30
  const cdk = __importStar(require("aws-cdk-lib"));
32
- const quidproquo_actionprocessor_awslambda_1 = require("quidproquo-actionprocessor-awslambda");
31
+ const aws_neptune = __importStar(require("@aws-cdk/aws-neptune-alpha"));
32
+ const QpqConstructBlock_1 = require("../../../base/QpqConstructBlock");
33
33
  class QpqCoreApiGraphDatabaseConstruct extends QpqConstructBlock_1.QpqConstructBlock {
34
34
  static fromOtherStack(scope, id, qpqConfig, awsAccountId, keyValueStoreName) {
35
35
  const tableNameOverride = quidproquo_config_aws_1.qpqConfigAwsUtils.getDynamoTableNameOverrride(keyValueStoreName, qpqConfig);
@@ -1,11 +1,11 @@
1
1
  export * from './auth';
2
+ export * from './deployEvents';
2
3
  export * from './eventBus';
4
+ export * from './graphDatabase';
3
5
  export * from './keyValueStore';
4
6
  export * from './parameter';
5
7
  export * from './queue';
6
8
  export * from './schedule';
7
9
  export * from './secret';
8
10
  export * from './storageDrive';
9
- export * from './deployEvents';
10
- export * from './graphDatabase';
11
11
  export * from './virtualNetwork';
@@ -15,13 +15,13 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
17
  __exportStar(require("./auth"), exports);
18
+ __exportStar(require("./deployEvents"), exports);
18
19
  __exportStar(require("./eventBus"), exports);
20
+ __exportStar(require("./graphDatabase"), exports);
19
21
  __exportStar(require("./keyValueStore"), exports);
20
22
  __exportStar(require("./parameter"), exports);
21
23
  __exportStar(require("./queue"), exports);
22
24
  __exportStar(require("./schedule"), exports);
23
25
  __exportStar(require("./secret"), exports);
24
26
  __exportStar(require("./storageDrive"), exports);
25
- __exportStar(require("./deployEvents"), exports);
26
- __exportStar(require("./graphDatabase"), exports);
27
27
  __exportStar(require("./virtualNetwork"), exports);
@@ -1,7 +1,7 @@
1
- import { KeyValueStoreQPQConfigSetting, QPQConfig, KvsKey } from 'quidproquo-core';
2
- import { QpqConstructBlock, QpqConstructBlockProps } from '../../../base/QpqConstructBlock';
3
- import { Construct } from 'constructs';
1
+ import { KeyValueStoreQPQConfigSetting, KvsKey, QPQConfig } from 'quidproquo-core';
4
2
  import { aws_dynamodb, aws_iam } from 'aws-cdk-lib';
3
+ import { Construct } from 'constructs';
4
+ import { QpqConstructBlock, QpqConstructBlockProps } from '../../../base/QpqConstructBlock';
5
5
  export interface QpqCoreKeyValueStoreConstructProps extends QpqConstructBlockProps {
6
6
  keyValueStoreConfig: KeyValueStoreQPQConfigSetting;
7
7
  }
@@ -24,11 +24,11 @@ var __importStar = (this && this.__importStar) || function (mod) {
24
24
  };
25
25
  Object.defineProperty(exports, "__esModule", { value: true });
26
26
  exports.QpqCoreKeyValueStoreConstruct = exports.convertKvsKeyToDynamodbAttribute = exports.convertKvsKeyTypeToDynamodbAttributeType = exports.QpqCoreKeyValueStoreConstructBase = void 0;
27
- const QpqConstructBlock_1 = require("../../../base/QpqConstructBlock");
28
27
  const quidproquo_config_aws_1 = require("quidproquo-config-aws");
29
- const qpqDeployAwsCdkUtils = __importStar(require("../../../../utils/qpqDeployAwsCdkUtils"));
30
28
  const aws_cdk_lib_1 = require("aws-cdk-lib");
31
29
  const cdk = __importStar(require("aws-cdk-lib"));
30
+ const qpqDeployAwsCdkUtils = __importStar(require("../../../../utils/qpqDeployAwsCdkUtils"));
31
+ const QpqConstructBlock_1 = require("../../../base/QpqConstructBlock");
32
32
  class QpqCoreKeyValueStoreConstructBase extends QpqConstructBlock_1.QpqConstructBlock {
33
33
  grantRead(grantee) {
34
34
  this.table.grantReadData(grantee);
@@ -111,14 +111,7 @@ class QpqCoreKeyValueStoreConstruct extends QpqCoreKeyValueStoreConstructBase {
111
111
  if (kvsList.length > 0) {
112
112
  role.addToPrincipalPolicy(new aws_cdk_lib_1.aws_iam.PolicyStatement({
113
113
  effect: aws_cdk_lib_1.aws_iam.Effect.ALLOW,
114
- actions: [
115
- 'dynamodb:GetItem',
116
- 'dynamodb:PutItem',
117
- 'dynamodb:Query',
118
- 'dynamodb:Scan',
119
- 'dynamodb:UpdateItem',
120
- 'dynamodb:DeleteItem',
121
- ],
114
+ actions: ['dynamodb:GetItem', 'dynamodb:PutItem', 'dynamodb:Query', 'dynamodb:Scan', 'dynamodb:UpdateItem', 'dynamodb:DeleteItem'],
122
115
  resources: kvsList.map((kvs) => kvs.table.tableArn),
123
116
  }));
124
117
  }
@@ -1,8 +1,8 @@
1
1
  import { ParameterQPQConfigSetting, QPQConfig } from 'quidproquo-core';
2
+ import { aws_iam, aws_ssm } from 'aws-cdk-lib';
3
+ import { Construct } from 'constructs';
2
4
  import { QpqConstructBlock, QpqConstructBlockProps } from '../../../base/QpqConstructBlock';
3
5
  import { QpqResource } from '../../../base/QpqResource';
4
- import { Construct } from 'constructs';
5
- import { aws_ssm, aws_iam } from 'aws-cdk-lib';
6
6
  export interface QpqCoreParameterConstructProps extends QpqConstructBlockProps {
7
7
  parameterConfig: ParameterQPQConfigSetting;
8
8
  }
@@ -24,11 +24,11 @@ var __importStar = (this && this.__importStar) || function (mod) {
24
24
  };
25
25
  Object.defineProperty(exports, "__esModule", { value: true });
26
26
  exports.QpqCoreParameterConstruct = exports.QpqCoreParameterConstructBase = void 0;
27
- const QpqConstructBlock_1 = require("../../../base/QpqConstructBlock");
28
- const aws_cdk_lib_1 = require("aws-cdk-lib");
29
- const qpqDeployAwsCdkUtils = __importStar(require("../../../../utils"));
30
27
  const quidproquo_actionprocessor_awslambda_1 = require("quidproquo-actionprocessor-awslambda");
31
28
  const quidproquo_config_aws_1 = require("quidproquo-config-aws");
29
+ const aws_cdk_lib_1 = require("aws-cdk-lib");
30
+ const qpqDeployAwsCdkUtils = __importStar(require("../../../../utils"));
31
+ const QpqConstructBlock_1 = require("../../../base/QpqConstructBlock");
32
32
  class QpqCoreParameterConstructBase extends QpqConstructBlock_1.QpqConstructBlock {
33
33
  grantRead(grantee) {
34
34
  this.stringParameter.grantRead(grantee);
@@ -1,7 +1,7 @@
1
1
  import { QueueQPQConfigSetting } from 'quidproquo-core';
2
- import { QpqConstructBlock, QpqConstructBlockProps } from '../../../base/QpqConstructBlock';
3
- import { Construct } from 'constructs';
4
2
  import { aws_lambda } from 'aws-cdk-lib';
3
+ import { Construct } from 'constructs';
4
+ import { QpqConstructBlock, QpqConstructBlockProps } from '../../../base/QpqConstructBlock';
5
5
  export interface QpqApiCoreQueueConstructProps extends QpqConstructBlockProps {
6
6
  queueConfig: QueueQPQConfigSetting;
7
7
  apiLayerVersions?: aws_lambda.ILayerVersion[];
@@ -24,14 +24,14 @@ var __importStar = (this && this.__importStar) || function (mod) {
24
24
  };
25
25
  Object.defineProperty(exports, "__esModule", { value: true });
26
26
  exports.QpqApiCoreQueueConstruct = void 0;
27
+ const quidproquo_config_aws_1 = require("quidproquo-config-aws");
27
28
  const quidproquo_core_1 = require("quidproquo-core");
28
- const QpqConstructBlock_1 = require("../../../base/QpqConstructBlock");
29
- const QpqCoreQueueConstruct_1 = require("./QpqCoreQueueConstruct");
30
- const QpqCoreEventBusConstruct_1 = require("../eventBus/QpqCoreEventBusConstruct");
31
- const Function_1 = require("../../../basic/Function");
32
29
  const aws_cdk_lib_1 = require("aws-cdk-lib");
33
30
  const cdk = __importStar(require("aws-cdk-lib"));
34
- const quidproquo_config_aws_1 = require("quidproquo-config-aws");
31
+ const QpqConstructBlock_1 = require("../../../base/QpqConstructBlock");
32
+ const Function_1 = require("../../../basic/Function");
33
+ const QpqCoreEventBusConstruct_1 = require("../eventBus/QpqCoreEventBusConstruct");
34
+ const QpqCoreQueueConstruct_1 = require("./QpqCoreQueueConstruct");
35
35
  class QpqApiCoreQueueConstruct extends QpqConstructBlock_1.QpqConstructBlock {
36
36
  constructor(scope, id, props) {
37
37
  super(scope, id, props);