@quadnix/octo-aws-cdk 0.1.0 → 0.2.1

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 (675) hide show
  1. package/README.md +108 -21
  2. package/dist/anchors/aws-cloudfront/aws-cloudfront.anchor.d.ts +12 -0
  3. package/dist/anchors/{aws-ecs/aws-ecs-server.anchor.js → aws-cloudfront/aws-cloudfront.anchor.js} +5 -5
  4. package/dist/anchors/aws-cloudfront/aws-cloudfront.anchor.js.map +1 -0
  5. package/dist/anchors/aws-cloudfront/aws-cloudfront.anchor.schema.d.ts +26 -0
  6. package/dist/anchors/{aws-iam/aws-iam-role.anchor.schema.js → aws-cloudfront/aws-cloudfront.anchor.schema.js} +11 -7
  7. package/dist/anchors/aws-cloudfront/aws-cloudfront.anchor.schema.js.map +1 -0
  8. package/dist/anchors/aws-deployment/aws-deployment.anchor.d.ts +12 -0
  9. package/dist/anchors/{aws-ecs/aws-ecs-task-definition.anchor.js → aws-deployment/aws-deployment.anchor.js} +5 -5
  10. package/dist/anchors/aws-deployment/aws-deployment.anchor.js.map +1 -0
  11. package/dist/anchors/aws-deployment/aws-deployment.anchor.schema.d.ts +100 -0
  12. package/dist/anchors/aws-deployment/aws-deployment.anchor.schema.js +149 -0
  13. package/dist/anchors/aws-deployment/aws-deployment.anchor.schema.js.map +1 -0
  14. package/dist/anchors/aws-dynamodb/aws-dynamodb.anchor.schema.d.ts +4 -0
  15. package/dist/anchors/aws-dynamodb/aws-dynamodb.anchor.schema.js +7 -1
  16. package/dist/anchors/aws-dynamodb/aws-dynamodb.anchor.schema.js.map +1 -1
  17. package/dist/anchors/aws-environment/aws-serverless-environment.anchor.d.ts +12 -0
  18. package/dist/anchors/{aws-s3-storage-service/aws-s3-storage-service-directory.anchor.js → aws-environment/aws-serverless-environment.anchor.js} +5 -5
  19. package/dist/anchors/aws-environment/aws-serverless-environment.anchor.js.map +1 -0
  20. package/dist/anchors/aws-environment/aws-serverless-environment.anchor.schema.d.ts +31 -0
  21. package/dist/anchors/aws-environment/aws-serverless-environment.anchor.schema.js +58 -0
  22. package/dist/anchors/aws-environment/aws-serverless-environment.anchor.schema.js.map +1 -0
  23. package/dist/anchors/aws-lambda/aws-lambda-execution.anchor.d.ts +12 -0
  24. package/dist/anchors/aws-lambda/aws-lambda-execution.anchor.js +27 -0
  25. package/dist/anchors/aws-lambda/aws-lambda-execution.anchor.js.map +1 -0
  26. package/dist/anchors/aws-lambda/aws-lambda-execution.anchor.schema.d.ts +28 -0
  27. package/dist/anchors/aws-lambda/aws-lambda-execution.anchor.schema.js +54 -0
  28. package/dist/anchors/aws-lambda/aws-lambda-execution.anchor.schema.js.map +1 -0
  29. package/dist/anchors/aws-lambda/aws-lambda-function.anchor.d.ts +12 -0
  30. package/dist/anchors/aws-lambda/aws-lambda-function.anchor.js +27 -0
  31. package/dist/anchors/aws-lambda/aws-lambda-function.anchor.js.map +1 -0
  32. package/dist/anchors/aws-lambda/aws-lambda-function.anchor.schema.d.ts +28 -0
  33. package/dist/anchors/aws-lambda/aws-lambda-function.anchor.schema.js +47 -0
  34. package/dist/anchors/aws-lambda/aws-lambda-function.anchor.schema.js.map +1 -0
  35. package/dist/anchors/aws-region/aws-serverless-region.anchor.d.ts +12 -0
  36. package/dist/anchors/aws-region/aws-serverless-region.anchor.js +27 -0
  37. package/dist/anchors/aws-region/aws-serverless-region.anchor.js.map +1 -0
  38. package/dist/anchors/aws-region/aws-serverless-region.anchor.schema.d.ts +30 -0
  39. package/dist/anchors/aws-region/aws-serverless-region.anchor.schema.js +49 -0
  40. package/dist/anchors/aws-region/aws-serverless-region.anchor.schema.js.map +1 -0
  41. package/dist/anchors/aws-s3-storage-service/aws-s3-storage-service-access-prefix.anchor.d.ts +12 -0
  42. package/dist/anchors/aws-s3-storage-service/aws-s3-storage-service-access-prefix.anchor.js +27 -0
  43. package/dist/anchors/aws-s3-storage-service/aws-s3-storage-service-access-prefix.anchor.js.map +1 -0
  44. package/dist/anchors/aws-s3-storage-service/{aws-s3-storage-service-directory.anchor.schema.d.ts → aws-s3-storage-service-access-prefix.anchor.schema.d.ts} +5 -4
  45. package/dist/anchors/aws-s3-storage-service/{aws-s3-storage-service-directory.anchor.schema.js → aws-s3-storage-service-access-prefix.anchor.schema.js} +7 -6
  46. package/dist/anchors/aws-s3-storage-service/aws-s3-storage-service-access-prefix.anchor.schema.js.map +1 -0
  47. package/dist/anchors/aws-s3-storage-service/aws-s3-storage-service.anchor.schema.d.ts +3 -0
  48. package/dist/anchors/aws-s3-storage-service/aws-s3-storage-service.anchor.schema.js +3 -0
  49. package/dist/anchors/aws-s3-storage-service/aws-s3-storage-service.anchor.schema.js.map +1 -1
  50. package/dist/anchors/aws-security-group/aws-security-group.anchor.schema.d.ts +3 -2
  51. package/dist/anchors/aws-security-group/aws-security-group.anchor.schema.js +2 -1
  52. package/dist/anchors/aws-security-group/aws-security-group.anchor.schema.js.map +1 -1
  53. package/dist/anchors/aws-server/aws-server.anchor.d.ts +12 -0
  54. package/dist/anchors/{aws-iam/aws-iam-role.anchor.js → aws-server/aws-server.anchor.js} +5 -5
  55. package/dist/anchors/aws-server/aws-server.anchor.js.map +1 -0
  56. package/dist/anchors/aws-server/aws-server.anchor.schema.d.ts +50 -0
  57. package/dist/anchors/aws-server/aws-server.anchor.schema.js +51 -0
  58. package/dist/anchors/aws-server/aws-server.anchor.schema.js.map +1 -0
  59. package/dist/anchors/aws-subnet/aws-serverless-subnet.anchor.d.ts +12 -0
  60. package/dist/anchors/aws-subnet/aws-serverless-subnet.anchor.js +27 -0
  61. package/dist/anchors/aws-subnet/aws-serverless-subnet.anchor.js.map +1 -0
  62. package/dist/anchors/aws-subnet/aws-serverless-subnet.anchor.schema.d.ts +28 -0
  63. package/dist/anchors/{aws-ecs/aws-ecs-server.anchor.schema.js → aws-subnet/aws-serverless-subnet.anchor.schema.js} +14 -12
  64. package/dist/anchors/aws-subnet/aws-serverless-subnet.anchor.schema.js.map +1 -0
  65. package/dist/factories/aws-client.factory.d.ts +28 -0
  66. package/dist/factories/aws-client.factory.js +36 -0
  67. package/dist/factories/aws-client.factory.js.map +1 -1
  68. package/dist/modules/account/aws-credentials-account/aws-credentials-account.module.d.ts +2 -1
  69. package/dist/modules/account/aws-credentials-account/aws-credentials-account.module.js +2 -1
  70. package/dist/modules/account/aws-credentials-account/aws-credentials-account.module.js.map +1 -1
  71. package/dist/modules/account/aws-ini-account/aws-ini-account.module.d.ts +2 -1
  72. package/dist/modules/account/aws-ini-account/aws-ini-account.module.js +2 -1
  73. package/dist/modules/account/aws-ini-account/aws-ini-account.module.js.map +1 -1
  74. package/dist/modules/account/aws-localstack-account/aws-localstack-account.module.d.ts +2 -1
  75. package/dist/modules/account/aws-localstack-account/aws-localstack-account.module.js +2 -1
  76. package/dist/modules/account/aws-localstack-account/aws-localstack-account.module.js.map +1 -1
  77. package/dist/modules/account/aws-moto-account/aws-moto-account.module.d.ts +2 -1
  78. package/dist/modules/account/aws-moto-account/aws-moto-account.module.js +2 -1
  79. package/dist/modules/account/aws-moto-account/aws-moto-account.module.js.map +1 -1
  80. package/dist/modules/app/simple-app/index.schema.d.ts +1 -1
  81. package/dist/modules/app/simple-app/index.schema.js +1 -1
  82. package/dist/modules/deployment/aws-deployment/aws-deployment.module.d.ts +45 -0
  83. package/dist/modules/deployment/aws-deployment/aws-deployment.module.js +96 -0
  84. package/dist/modules/deployment/aws-deployment/aws-deployment.module.js.map +1 -0
  85. package/dist/modules/deployment/aws-deployment/index.d.ts +1 -0
  86. package/dist/modules/deployment/aws-deployment/index.js +2 -0
  87. package/dist/modules/deployment/aws-deployment/index.js.map +1 -0
  88. package/dist/modules/deployment/aws-deployment/index.schema.d.ts +60 -0
  89. package/dist/modules/deployment/aws-deployment/index.schema.js +160 -0
  90. package/dist/modules/deployment/aws-deployment/index.schema.js.map +1 -0
  91. package/dist/modules/deployment/aws-deployment/models/deployment/actions/add-aws-deployment.model.action.d.ts +27 -0
  92. package/dist/modules/deployment/{aws-ecs-deployment/models/deployment/actions/add-aws-ecs-deployment.model.action.js → aws-deployment/models/deployment/actions/add-aws-deployment.model.action.js} +16 -14
  93. package/dist/modules/deployment/aws-deployment/models/deployment/actions/add-aws-deployment.model.action.js.map +1 -0
  94. package/dist/modules/deployment/aws-deployment/models/deployment/aws-deployment.model.d.ts +11 -0
  95. package/dist/modules/deployment/{aws-ecs-deployment/models/deployment/aws-ecs-deployment.model.js → aws-deployment/models/deployment/aws-deployment.model.js} +9 -9
  96. package/dist/modules/deployment/aws-deployment/models/deployment/aws-deployment.model.js.map +1 -0
  97. package/dist/modules/deployment/{aws-ecs-deployment/models/deployment/aws-ecs-deployment.schema.d.ts → aws-deployment/models/deployment/aws-deployment.schema.d.ts} +1 -1
  98. package/dist/modules/deployment/aws-deployment/models/deployment/aws-deployment.schema.js +7 -0
  99. package/dist/modules/deployment/aws-deployment/models/deployment/aws-deployment.schema.js.map +1 -0
  100. package/dist/modules/deployment/aws-deployment/models/deployment/index.d.ts +2 -0
  101. package/dist/modules/deployment/aws-deployment/models/deployment/index.js +3 -0
  102. package/dist/modules/deployment/aws-deployment/models/deployment/index.js.map +1 -0
  103. package/dist/modules/deployment/aws-deployment/overlays/aws-deployment-image/actions/add-aws-deployment-image.overlay.action.d.ts +28 -0
  104. package/dist/modules/deployment/aws-deployment/overlays/aws-deployment-image/actions/add-aws-deployment-image.overlay.action.js +53 -0
  105. package/dist/modules/deployment/aws-deployment/overlays/aws-deployment-image/actions/add-aws-deployment-image.overlay.action.js.map +1 -0
  106. package/dist/modules/deployment/aws-deployment/overlays/aws-deployment-image/aws-deployment-image.overlay.d.ts +22 -0
  107. package/dist/modules/deployment/aws-deployment/overlays/aws-deployment-image/aws-deployment-image.overlay.js +37 -0
  108. package/dist/modules/deployment/aws-deployment/overlays/aws-deployment-image/aws-deployment-image.overlay.js.map +1 -0
  109. package/dist/modules/deployment/aws-deployment/overlays/aws-deployment-image/aws-deployment-image.schema.d.ts +12 -0
  110. package/dist/modules/deployment/aws-deployment/overlays/aws-deployment-image/aws-deployment-image.schema.js +32 -0
  111. package/dist/modules/deployment/aws-deployment/overlays/aws-deployment-image/aws-deployment-image.schema.js.map +1 -0
  112. package/dist/modules/deployment/aws-deployment/overlays/aws-deployment-image/index.d.ts +2 -0
  113. package/dist/modules/deployment/aws-deployment/overlays/aws-deployment-image/index.js +3 -0
  114. package/dist/modules/deployment/aws-deployment/overlays/aws-deployment-image/index.js.map +1 -0
  115. package/dist/modules/environment/aws-ecs-environment/aws-ecs-environment.module.d.ts +2 -1
  116. package/dist/modules/environment/aws-ecs-environment/aws-ecs-environment.module.js +2 -1
  117. package/dist/modules/environment/aws-ecs-environment/aws-ecs-environment.module.js.map +1 -1
  118. package/dist/modules/environment/aws-serverless-environment/aws-serverless-environment.module.d.ts +33 -0
  119. package/dist/modules/environment/aws-serverless-environment/aws-serverless-environment.module.js +60 -0
  120. package/dist/modules/environment/aws-serverless-environment/aws-serverless-environment.module.js.map +1 -0
  121. package/dist/modules/environment/aws-serverless-environment/index.d.ts +1 -0
  122. package/dist/modules/environment/aws-serverless-environment/index.js +2 -0
  123. package/dist/modules/environment/aws-serverless-environment/index.js.map +1 -0
  124. package/dist/modules/environment/aws-serverless-environment/index.schema.d.ts +27 -0
  125. package/dist/modules/environment/aws-serverless-environment/index.schema.js +73 -0
  126. package/dist/modules/environment/aws-serverless-environment/index.schema.js.map +1 -0
  127. package/dist/modules/environment/aws-serverless-environment/models/environment/actions/add-aws-serverless-environment.model.action.d.ts +28 -0
  128. package/dist/modules/environment/aws-serverless-environment/models/environment/actions/add-aws-serverless-environment.model.action.js +53 -0
  129. package/dist/modules/environment/aws-serverless-environment/models/environment/actions/add-aws-serverless-environment.model.action.js.map +1 -0
  130. package/dist/modules/environment/aws-serverless-environment/models/environment/aws-serverless-environment.model.d.ts +11 -0
  131. package/dist/modules/environment/aws-serverless-environment/models/environment/aws-serverless-environment.model.js +29 -0
  132. package/dist/modules/environment/aws-serverless-environment/models/environment/aws-serverless-environment.model.js.map +1 -0
  133. package/dist/modules/environment/aws-serverless-environment/models/environment/aws-serverless-environment.schema.d.ts +6 -0
  134. package/dist/modules/environment/aws-serverless-environment/models/environment/aws-serverless-environment.schema.js +7 -0
  135. package/dist/modules/environment/aws-serverless-environment/models/environment/aws-serverless-environment.schema.js.map +1 -0
  136. package/dist/modules/environment/aws-serverless-environment/models/environment/index.d.ts +2 -0
  137. package/dist/modules/environment/aws-serverless-environment/models/environment/index.js +3 -0
  138. package/dist/modules/environment/aws-serverless-environment/models/environment/index.js.map +1 -0
  139. package/dist/modules/execution/aws-ecs-execution/aws-ecs-execution.module.d.ts +7 -6
  140. package/dist/modules/execution/aws-ecs-execution/aws-ecs-execution.module.js +138 -63
  141. package/dist/modules/execution/aws-ecs-execution/aws-ecs-execution.module.js.map +1 -1
  142. package/dist/modules/execution/aws-ecs-execution/index.schema.d.ts +6 -6
  143. package/dist/modules/execution/aws-ecs-execution/index.schema.js +6 -6
  144. package/dist/modules/execution/aws-ecs-execution/index.schema.js.map +1 -1
  145. package/dist/modules/execution/aws-ecs-execution/models/execution/aws-ecs-execution.model.js +5 -0
  146. package/dist/modules/execution/aws-ecs-execution/models/execution/aws-ecs-execution.model.js.map +1 -1
  147. package/dist/modules/execution/aws-ecs-execution/overlays/aws-ecs-execution/actions/add-aws-ecs-execution.overlay.action.js +131 -40
  148. package/dist/modules/execution/aws-ecs-execution/overlays/aws-ecs-execution/actions/add-aws-ecs-execution.overlay.action.js.map +1 -1
  149. package/dist/modules/execution/aws-ecs-execution/overlays/aws-ecs-execution/aws-ecs-execution.overlay.d.ts +9 -5
  150. package/dist/modules/execution/aws-ecs-execution/overlays/aws-ecs-execution/aws-ecs-execution.overlay.js +4 -0
  151. package/dist/modules/execution/aws-ecs-execution/overlays/aws-ecs-execution/aws-ecs-execution.overlay.js.map +1 -1
  152. package/dist/modules/execution/aws-ecs-execution/overlays/aws-ecs-execution/aws-ecs-execution.schema.d.ts +20 -0
  153. package/dist/modules/execution/aws-ecs-execution/overlays/aws-ecs-execution/aws-ecs-execution.schema.js +5 -0
  154. package/dist/modules/execution/aws-ecs-execution/overlays/aws-ecs-execution/aws-ecs-execution.schema.js.map +1 -1
  155. package/dist/modules/execution/aws-ecs-execution/overlays/aws-ecs-execution-server-security-group/actions/add-aws-ecs-execution-server-security-group.overlay.action.js +32 -20
  156. package/dist/modules/execution/aws-ecs-execution/overlays/aws-ecs-execution-server-security-group/actions/add-aws-ecs-execution-server-security-group.overlay.action.js.map +1 -1
  157. package/dist/modules/execution/aws-ecs-execution/overlays/aws-ecs-execution-server-security-group/aws-ecs-execution-server-security-group.overlay.d.ts +10 -2
  158. package/dist/modules/execution/aws-ecs-execution/overlays/aws-ecs-execution-server-security-group/aws-ecs-execution-server-security-group.overlay.js.map +1 -1
  159. package/dist/modules/execution/aws-lambda-execution/aws-lambda-execution.module.d.ts +57 -0
  160. package/dist/modules/execution/aws-lambda-execution/aws-lambda-execution.module.js +177 -0
  161. package/dist/modules/execution/aws-lambda-execution/aws-lambda-execution.module.js.map +1 -0
  162. package/dist/modules/execution/aws-lambda-execution/index.d.ts +1 -0
  163. package/dist/modules/execution/aws-lambda-execution/index.js +2 -0
  164. package/dist/modules/execution/aws-lambda-execution/index.js.map +1 -0
  165. package/dist/modules/execution/aws-lambda-execution/index.schema.d.ts +56 -0
  166. package/dist/modules/execution/aws-lambda-execution/index.schema.js +154 -0
  167. package/dist/modules/execution/aws-lambda-execution/index.schema.js.map +1 -0
  168. package/dist/modules/execution/aws-lambda-execution/models/execution/actions/add-aws-lambda-execution.model.action.d.ts +25 -0
  169. package/dist/modules/execution/aws-lambda-execution/models/execution/actions/add-aws-lambda-execution.model.action.js +51 -0
  170. package/dist/modules/execution/aws-lambda-execution/models/execution/actions/add-aws-lambda-execution.model.action.js.map +1 -0
  171. package/dist/modules/execution/aws-lambda-execution/models/execution/aws-lambda-execution.model.d.ts +28 -0
  172. package/dist/modules/execution/aws-lambda-execution/models/execution/aws-lambda-execution.model.js +85 -0
  173. package/dist/modules/execution/aws-lambda-execution/models/execution/aws-lambda-execution.model.js.map +1 -0
  174. package/dist/modules/execution/aws-lambda-execution/models/execution/aws-lambda-execution.schema.d.ts +7 -0
  175. package/dist/modules/execution/aws-lambda-execution/models/execution/aws-lambda-execution.schema.js +24 -0
  176. package/dist/modules/execution/aws-lambda-execution/models/execution/aws-lambda-execution.schema.js.map +1 -0
  177. package/dist/modules/execution/aws-lambda-execution/models/execution/index.d.ts +2 -0
  178. package/dist/modules/execution/aws-lambda-execution/models/execution/index.js +3 -0
  179. package/dist/modules/execution/aws-lambda-execution/models/execution/index.js.map +1 -0
  180. package/dist/modules/execution/aws-lambda-execution/overlays/aws-lambda-execution/actions/add-aws-lambda-execution.overlay.action.d.ts +26 -0
  181. package/dist/modules/execution/aws-lambda-execution/overlays/aws-lambda-execution/actions/add-aws-lambda-execution.overlay.action.js +172 -0
  182. package/dist/modules/execution/aws-lambda-execution/overlays/aws-lambda-execution/actions/add-aws-lambda-execution.overlay.action.js.map +1 -0
  183. package/dist/modules/execution/aws-lambda-execution/overlays/aws-lambda-execution/aws-lambda-execution.overlay.d.ts +38 -0
  184. package/dist/modules/execution/aws-lambda-execution/overlays/aws-lambda-execution/aws-lambda-execution.overlay.js +37 -0
  185. package/dist/modules/execution/aws-lambda-execution/overlays/aws-lambda-execution/aws-lambda-execution.overlay.js.map +1 -0
  186. package/dist/modules/execution/aws-lambda-execution/overlays/aws-lambda-execution/aws-lambda-execution.schema.d.ts +41 -0
  187. package/dist/modules/execution/aws-lambda-execution/overlays/aws-lambda-execution/aws-lambda-execution.schema.js +43 -0
  188. package/dist/modules/execution/aws-lambda-execution/overlays/aws-lambda-execution/aws-lambda-execution.schema.js.map +1 -0
  189. package/dist/modules/execution/aws-lambda-execution/overlays/aws-lambda-execution/index.d.ts +2 -0
  190. package/dist/modules/execution/aws-lambda-execution/overlays/aws-lambda-execution/index.js +3 -0
  191. package/dist/modules/execution/aws-lambda-execution/overlays/aws-lambda-execution/index.js.map +1 -0
  192. package/dist/modules/filesystem/aws-efs-filesystem/aws-efs-filesystem.module.d.ts +2 -1
  193. package/dist/modules/filesystem/aws-efs-filesystem/aws-efs-filesystem.module.js +2 -1
  194. package/dist/modules/filesystem/aws-efs-filesystem/aws-efs-filesystem.module.js.map +1 -1
  195. package/dist/modules/filesystem/aws-efs-filesystem/models/filesystem/actions/add-aws-efs-filesystem.model.action.js +1 -2
  196. package/dist/modules/filesystem/aws-efs-filesystem/models/filesystem/actions/add-aws-efs-filesystem.model.action.js.map +1 -1
  197. package/dist/modules/image/aws-ecr-image/aws-ecr-image.module.d.ts +10 -5
  198. package/dist/modules/image/aws-ecr-image/aws-ecr-image.module.js +31 -13
  199. package/dist/modules/image/aws-ecr-image/aws-ecr-image.module.js.map +1 -1
  200. package/dist/modules/image/aws-ecr-image/index.schema.d.ts +1 -1
  201. package/dist/modules/image/aws-ecr-image/index.schema.js +2 -3
  202. package/dist/modules/image/aws-ecr-image/index.schema.js.map +1 -1
  203. package/dist/modules/image/aws-ecr-image/models/image/actions/add-aws-ecr-image-region.model.action.d.ts +28 -0
  204. package/dist/modules/image/aws-ecr-image/models/image/actions/add-aws-ecr-image-region.model.action.js +53 -0
  205. package/dist/modules/image/aws-ecr-image/models/image/actions/add-aws-ecr-image-region.model.action.js.map +1 -0
  206. package/dist/modules/image/aws-ecr-image/models/image/actions/add-aws-ecr-image.model.action.js +1 -1
  207. package/dist/modules/image/aws-ecr-image/models/image/actions/add-aws-ecr-image.model.action.js.map +1 -1
  208. package/dist/modules/image/aws-ecr-image/models/image/index.d.ts +1 -0
  209. package/dist/modules/image/aws-ecr-image/models/image/index.js +1 -0
  210. package/dist/modules/image/aws-ecr-image/models/image/index.js.map +1 -1
  211. package/dist/modules/image/aws-ecr-image-tag/aws-ecr-image-tag.module.d.ts +5 -1
  212. package/dist/modules/image/aws-ecr-image-tag/aws-ecr-image-tag.module.js +12 -3
  213. package/dist/modules/image/aws-ecr-image-tag/aws-ecr-image-tag.module.js.map +1 -1
  214. package/dist/modules/image/aws-ecr-image-tag/index.schema.d.ts +18 -0
  215. package/dist/modules/image/aws-ecr-image-tag/index.schema.js +42 -0
  216. package/dist/modules/image/aws-ecr-image-tag/index.schema.js.map +1 -1
  217. package/dist/modules/image/aws-ecr-image-tag/overlays/aws-ecr-image-tag/actions/add-aws-ecr-image-tag.overlay.action.js +3 -0
  218. package/dist/modules/image/aws-ecr-image-tag/overlays/aws-ecr-image-tag/actions/add-aws-ecr-image-tag.overlay.action.js.map +1 -1
  219. package/dist/modules/image/aws-ecr-image-tag/overlays/aws-ecr-image-tag/aws-ecr-image-tag.schema.d.ts +4 -0
  220. package/dist/modules/image/aws-ecr-image-tag/overlays/aws-ecr-image-tag/aws-ecr-image-tag.schema.js +1 -0
  221. package/dist/modules/image/aws-ecr-image-tag/overlays/aws-ecr-image-tag/aws-ecr-image-tag.schema.js.map +1 -1
  222. package/dist/modules/region/aws-multi-az-region/aws-multi-az-region.module.d.ts +3 -1
  223. package/dist/modules/region/aws-multi-az-region/aws-multi-az-region.module.js +3 -5
  224. package/dist/modules/region/aws-multi-az-region/aws-multi-az-region.module.js.map +1 -1
  225. package/dist/modules/region/aws-multi-az-region/models/region/aws-multi-az-region.model.d.ts +0 -4
  226. package/dist/modules/region/aws-multi-az-region/models/region/aws-multi-az-region.model.js +2 -11
  227. package/dist/modules/region/aws-multi-az-region/models/region/aws-multi-az-region.model.js.map +1 -1
  228. package/dist/modules/region/aws-serverless-region/aws-serverless-region.module.d.ts +35 -0
  229. package/dist/modules/region/aws-serverless-region/aws-serverless-region.module.js +58 -0
  230. package/dist/modules/region/aws-serverless-region/aws-serverless-region.module.js.map +1 -0
  231. package/dist/modules/region/aws-serverless-region/index.d.ts +1 -0
  232. package/dist/modules/region/aws-serverless-region/index.js +2 -0
  233. package/dist/modules/region/aws-serverless-region/index.js.map +1 -0
  234. package/dist/modules/region/aws-serverless-region/index.schema.d.ts +27 -0
  235. package/dist/modules/region/aws-serverless-region/index.schema.js +64 -0
  236. package/dist/modules/region/aws-serverless-region/index.schema.js.map +1 -0
  237. package/dist/modules/region/aws-serverless-region/models/region/actions/add-aws-serverless-region.model.action.d.ts +28 -0
  238. package/dist/modules/region/aws-serverless-region/models/region/actions/add-aws-serverless-region.model.action.js +53 -0
  239. package/dist/modules/region/aws-serverless-region/models/region/actions/add-aws-serverless-region.model.action.js.map +1 -0
  240. package/dist/modules/region/aws-serverless-region/models/region/aws-serverless-region.model.d.ts +30 -0
  241. package/dist/modules/region/aws-serverless-region/models/region/aws-serverless-region.model.js +56 -0
  242. package/dist/modules/region/aws-serverless-region/models/region/aws-serverless-region.model.js.map +1 -0
  243. package/dist/modules/region/aws-serverless-region/models/region/aws-serverless-region.schema.d.ts +7 -0
  244. package/dist/modules/region/aws-serverless-region/models/region/aws-serverless-region.schema.js +24 -0
  245. package/dist/modules/region/aws-serverless-region/models/region/aws-serverless-region.schema.js.map +1 -0
  246. package/dist/modules/region/aws-serverless-region/models/region/index.d.ts +2 -0
  247. package/dist/modules/region/aws-serverless-region/models/region/index.js +3 -0
  248. package/dist/modules/region/aws-serverless-region/models/region/index.js.map +1 -0
  249. package/dist/modules/region/aws-single-az-region/aws-single-az-region.module.d.ts +3 -1
  250. package/dist/modules/region/aws-single-az-region/aws-single-az-region.module.js +3 -5
  251. package/dist/modules/region/aws-single-az-region/aws-single-az-region.module.js.map +1 -1
  252. package/dist/modules/region/aws-single-az-region/models/region/aws-single-az-region.model.d.ts +0 -4
  253. package/dist/modules/region/aws-single-az-region/models/region/aws-single-az-region.model.js +3 -12
  254. package/dist/modules/region/aws-single-az-region/models/region/aws-single-az-region.model.js.map +1 -1
  255. package/dist/modules/server/aws-server/aws-server.module.d.ts +72 -0
  256. package/dist/modules/server/aws-server/aws-server.module.js +182 -0
  257. package/dist/modules/server/aws-server/aws-server.module.js.map +1 -0
  258. package/dist/modules/server/aws-server/index.d.ts +1 -0
  259. package/dist/modules/server/aws-server/index.js +2 -0
  260. package/dist/modules/server/aws-server/index.js.map +1 -0
  261. package/dist/modules/server/aws-server/index.schema.d.ts +123 -0
  262. package/dist/modules/server/aws-server/index.schema.js +246 -0
  263. package/dist/modules/server/aws-server/index.schema.js.map +1 -0
  264. package/dist/modules/server/aws-server/models/server/actions/add-aws-server.model.action.d.ts +27 -0
  265. package/dist/modules/server/aws-server/models/server/actions/add-aws-server.model.action.js +53 -0
  266. package/dist/modules/server/aws-server/models/server/actions/add-aws-server.model.action.js.map +1 -0
  267. package/dist/modules/server/aws-server/models/server/aws-server.model.d.ts +11 -0
  268. package/dist/modules/server/{aws-ecs-server/models/server/aws-ecs-server.model.js → aws-server/models/server/aws-server.model.js} +9 -9
  269. package/dist/modules/server/aws-server/models/server/aws-server.model.js.map +1 -0
  270. package/dist/modules/server/{aws-ecs-server/models/server/aws-ecs-server.schema.d.ts → aws-server/models/server/aws-server.schema.d.ts} +1 -1
  271. package/dist/modules/server/aws-server/models/server/aws-server.schema.js +7 -0
  272. package/dist/modules/server/aws-server/models/server/aws-server.schema.js.map +1 -0
  273. package/dist/modules/server/aws-server/models/server/index.d.ts +2 -0
  274. package/dist/modules/server/aws-server/models/server/index.js +3 -0
  275. package/dist/modules/server/aws-server/models/server/index.js.map +1 -0
  276. package/dist/modules/server/aws-server/overlays/aws-server-dynamodb-access/actions/add-aws-server-dynamodb-access.overlay.action.d.ts +28 -0
  277. package/dist/modules/server/aws-server/overlays/aws-server-dynamodb-access/actions/add-aws-server-dynamodb-access.overlay.action.js +53 -0
  278. package/dist/modules/server/aws-server/overlays/aws-server-dynamodb-access/actions/add-aws-server-dynamodb-access.overlay.action.js.map +1 -0
  279. package/dist/modules/server/aws-server/overlays/aws-server-dynamodb-access/aws-server-dynamodb-access.overlay.d.ts +22 -0
  280. package/dist/modules/server/aws-server/overlays/aws-server-dynamodb-access/aws-server-dynamodb-access.overlay.js +37 -0
  281. package/dist/modules/server/aws-server/overlays/aws-server-dynamodb-access/aws-server-dynamodb-access.overlay.js.map +1 -0
  282. package/dist/modules/server/aws-server/overlays/aws-server-dynamodb-access/aws-server-dynamodb-access.schema.d.ts +13 -0
  283. package/dist/modules/server/aws-server/overlays/aws-server-dynamodb-access/aws-server-dynamodb-access.schema.js +33 -0
  284. package/dist/modules/server/aws-server/overlays/aws-server-dynamodb-access/aws-server-dynamodb-access.schema.js.map +1 -0
  285. package/dist/modules/server/aws-server/overlays/aws-server-dynamodb-access/index.d.ts +2 -0
  286. package/dist/modules/server/aws-server/overlays/aws-server-dynamodb-access/index.js +3 -0
  287. package/dist/modules/server/aws-server/overlays/aws-server-dynamodb-access/index.js.map +1 -0
  288. package/dist/modules/server/aws-server/overlays/aws-server-s3-access/actions/add-aws-server-s3-access.overlay.action.d.ts +28 -0
  289. package/dist/modules/server/aws-server/overlays/aws-server-s3-access/actions/add-aws-server-s3-access.overlay.action.js +53 -0
  290. package/dist/modules/server/aws-server/overlays/aws-server-s3-access/actions/add-aws-server-s3-access.overlay.action.js.map +1 -0
  291. package/dist/modules/server/aws-server/overlays/aws-server-s3-access/aws-server-s3-access.overlay.d.ts +22 -0
  292. package/dist/modules/server/aws-server/overlays/aws-server-s3-access/aws-server-s3-access.overlay.js +37 -0
  293. package/dist/modules/server/aws-server/overlays/aws-server-s3-access/aws-server-s3-access.overlay.js.map +1 -0
  294. package/dist/modules/server/{aws-ecs-server/overlays/aws-ecs-server-s3-access/aws-ecs-server-s3-access.schema.d.ts → aws-server/overlays/aws-server-s3-access/aws-server-s3-access.schema.d.ts} +3 -4
  295. package/dist/modules/server/{aws-ecs-server/overlays/aws-ecs-server-s3-access/aws-ecs-server-s3-access.schema.js → aws-server/overlays/aws-server-s3-access/aws-server-s3-access.schema.js} +5 -6
  296. package/dist/modules/server/aws-server/overlays/aws-server-s3-access/aws-server-s3-access.schema.js.map +1 -0
  297. package/dist/modules/server/aws-server/overlays/aws-server-s3-access/index.d.ts +2 -0
  298. package/dist/modules/server/aws-server/overlays/aws-server-s3-access/index.js +3 -0
  299. package/dist/modules/server/aws-server/overlays/aws-server-s3-access/index.js.map +1 -0
  300. package/dist/modules/service/aws-cloudfront-invalidation-service/aws-cloudfront-invalidation-service.module.d.ts +36 -0
  301. package/dist/modules/service/aws-cloudfront-invalidation-service/aws-cloudfront-invalidation-service.module.js +66 -0
  302. package/dist/modules/service/aws-cloudfront-invalidation-service/aws-cloudfront-invalidation-service.module.js.map +1 -0
  303. package/dist/modules/service/aws-cloudfront-invalidation-service/index.d.ts +1 -0
  304. package/dist/modules/service/aws-cloudfront-invalidation-service/index.js +2 -0
  305. package/dist/modules/service/aws-cloudfront-invalidation-service/index.js.map +1 -0
  306. package/dist/modules/service/aws-cloudfront-invalidation-service/index.schema.d.ts +23 -0
  307. package/dist/modules/service/aws-cloudfront-invalidation-service/index.schema.js +65 -0
  308. package/dist/modules/service/aws-cloudfront-invalidation-service/index.schema.js.map +1 -0
  309. package/dist/modules/service/aws-cloudfront-invalidation-service/overlays/aws-cloudfront-invalidation/actions/add-aws-cloudfront-invalidation.overlay.action.d.ts +26 -0
  310. package/dist/modules/service/aws-cloudfront-invalidation-service/overlays/aws-cloudfront-invalidation/actions/add-aws-cloudfront-invalidation.overlay.action.js +68 -0
  311. package/dist/modules/service/aws-cloudfront-invalidation-service/overlays/aws-cloudfront-invalidation/actions/add-aws-cloudfront-invalidation.overlay.action.js.map +1 -0
  312. package/dist/modules/service/aws-cloudfront-invalidation-service/overlays/aws-cloudfront-invalidation/aws-cloudfront-invalidation.overlay.d.ts +22 -0
  313. package/dist/modules/service/aws-cloudfront-invalidation-service/overlays/aws-cloudfront-invalidation/aws-cloudfront-invalidation.overlay.js +38 -0
  314. package/dist/modules/service/aws-cloudfront-invalidation-service/overlays/aws-cloudfront-invalidation/aws-cloudfront-invalidation.overlay.js.map +1 -0
  315. package/dist/modules/service/aws-cloudfront-invalidation-service/overlays/aws-cloudfront-invalidation/aws-cloudfront-invalidation.schema.d.ts +12 -0
  316. package/dist/modules/service/aws-cloudfront-invalidation-service/overlays/aws-cloudfront-invalidation/aws-cloudfront-invalidation.schema.js +32 -0
  317. package/dist/modules/service/aws-cloudfront-invalidation-service/overlays/aws-cloudfront-invalidation/aws-cloudfront-invalidation.schema.js.map +1 -0
  318. package/dist/modules/service/aws-cloudfront-invalidation-service/overlays/aws-cloudfront-invalidation/index.d.ts +2 -0
  319. package/dist/modules/service/aws-cloudfront-invalidation-service/overlays/aws-cloudfront-invalidation/index.js +3 -0
  320. package/dist/modules/service/aws-cloudfront-invalidation-service/overlays/aws-cloudfront-invalidation/index.js.map +1 -0
  321. package/dist/modules/service/aws-cloudfront-service/aws-cloudfront-service.module.d.ts +76 -0
  322. package/dist/modules/service/aws-cloudfront-service/aws-cloudfront-service.module.js +192 -0
  323. package/dist/modules/service/aws-cloudfront-service/aws-cloudfront-service.module.js.map +1 -0
  324. package/dist/modules/service/aws-cloudfront-service/index.d.ts +1 -0
  325. package/dist/modules/service/aws-cloudfront-service/index.js +2 -0
  326. package/dist/modules/service/aws-cloudfront-service/index.js.map +1 -0
  327. package/dist/modules/service/aws-cloudfront-service/index.schema.d.ts +170 -0
  328. package/dist/modules/service/aws-cloudfront-service/index.schema.js +396 -0
  329. package/dist/modules/service/aws-cloudfront-service/index.schema.js.map +1 -0
  330. package/dist/modules/service/aws-cloudfront-service/models/service/actions/add-aws-cloudfront-service.model.action.d.ts +26 -0
  331. package/dist/modules/service/aws-cloudfront-service/models/service/actions/add-aws-cloudfront-service.model.action.js +137 -0
  332. package/dist/modules/service/aws-cloudfront-service/models/service/actions/add-aws-cloudfront-service.model.action.js.map +1 -0
  333. package/dist/modules/service/aws-cloudfront-service/models/service/aws-cloudfront-service.model.d.ts +20 -0
  334. package/dist/modules/service/aws-cloudfront-service/models/service/aws-cloudfront-service.model.js +50 -0
  335. package/dist/modules/service/aws-cloudfront-service/models/service/aws-cloudfront-service.model.js.map +1 -0
  336. package/dist/modules/service/aws-cloudfront-service/models/service/aws-cloudfront-service.schema.d.ts +7 -0
  337. package/dist/modules/service/aws-cloudfront-service/models/service/aws-cloudfront-service.schema.js +24 -0
  338. package/dist/modules/service/aws-cloudfront-service/models/service/aws-cloudfront-service.schema.js.map +1 -0
  339. package/dist/modules/service/aws-cloudfront-service/models/service/index.d.ts +2 -0
  340. package/dist/modules/service/aws-cloudfront-service/models/service/index.js +3 -0
  341. package/dist/modules/service/aws-cloudfront-service/models/service/index.js.map +1 -0
  342. package/dist/modules/service/aws-cloudfront-service/overlays/aws-cloudfront-alb-origin/actions/add-aws-cloudfront-alb-origin.overlay.action.d.ts +26 -0
  343. package/dist/modules/service/aws-cloudfront-service/overlays/aws-cloudfront-alb-origin/actions/add-aws-cloudfront-alb-origin.overlay.action.js +68 -0
  344. package/dist/modules/service/aws-cloudfront-service/overlays/aws-cloudfront-alb-origin/actions/add-aws-cloudfront-alb-origin.overlay.action.js.map +1 -0
  345. package/dist/modules/service/aws-cloudfront-service/overlays/aws-cloudfront-alb-origin/aws-cloudfront-alb-origin.overlay.d.ts +21 -0
  346. package/dist/modules/service/aws-cloudfront-service/overlays/aws-cloudfront-alb-origin/aws-cloudfront-alb-origin.overlay.js +36 -0
  347. package/dist/modules/service/aws-cloudfront-service/overlays/aws-cloudfront-alb-origin/aws-cloudfront-alb-origin.overlay.js.map +1 -0
  348. package/dist/modules/service/aws-cloudfront-service/overlays/aws-cloudfront-alb-origin/aws-cloudfront-alb-origin.schema.d.ts +9 -0
  349. package/dist/modules/service/aws-cloudfront-service/overlays/aws-cloudfront-alb-origin/aws-cloudfront-alb-origin.schema.js +11 -0
  350. package/dist/modules/service/aws-cloudfront-service/overlays/aws-cloudfront-alb-origin/aws-cloudfront-alb-origin.schema.js.map +1 -0
  351. package/dist/modules/service/aws-cloudfront-service/overlays/aws-cloudfront-alb-origin/index.d.ts +2 -0
  352. package/dist/modules/service/aws-cloudfront-service/overlays/aws-cloudfront-alb-origin/index.js +3 -0
  353. package/dist/modules/service/aws-cloudfront-service/overlays/aws-cloudfront-alb-origin/index.js.map +1 -0
  354. package/dist/modules/service/aws-cloudfront-service/overlays/aws-cloudfront-lambda-origin/actions/add-aws-cloudfront-lambda-origin.overlay.action.d.ts +26 -0
  355. package/dist/modules/service/aws-cloudfront-service/overlays/aws-cloudfront-lambda-origin/actions/add-aws-cloudfront-lambda-origin.overlay.action.js +73 -0
  356. package/dist/modules/service/aws-cloudfront-service/overlays/aws-cloudfront-lambda-origin/actions/add-aws-cloudfront-lambda-origin.overlay.action.js.map +1 -0
  357. package/dist/modules/service/aws-cloudfront-service/overlays/aws-cloudfront-lambda-origin/aws-cloudfront-lambda-origin.overlay.d.ts +21 -0
  358. package/dist/modules/service/aws-cloudfront-service/overlays/aws-cloudfront-lambda-origin/aws-cloudfront-lambda-origin.overlay.js +36 -0
  359. package/dist/modules/service/aws-cloudfront-service/overlays/aws-cloudfront-lambda-origin/aws-cloudfront-lambda-origin.overlay.js.map +1 -0
  360. package/dist/modules/service/aws-cloudfront-service/overlays/aws-cloudfront-lambda-origin/aws-cloudfront-lambda-origin.schema.d.ts +9 -0
  361. package/dist/modules/service/aws-cloudfront-service/overlays/aws-cloudfront-lambda-origin/aws-cloudfront-lambda-origin.schema.js +11 -0
  362. package/dist/modules/service/aws-cloudfront-service/overlays/aws-cloudfront-lambda-origin/aws-cloudfront-lambda-origin.schema.js.map +1 -0
  363. package/dist/modules/service/aws-cloudfront-service/overlays/aws-cloudfront-lambda-origin/index.d.ts +2 -0
  364. package/dist/modules/service/aws-cloudfront-service/overlays/aws-cloudfront-lambda-origin/index.js +3 -0
  365. package/dist/modules/service/aws-cloudfront-service/overlays/aws-cloudfront-lambda-origin/index.js.map +1 -0
  366. package/dist/modules/service/aws-cloudfront-service/overlays/aws-cloudfront-s3-origin/actions/add-aws-cloudfront-s3-origin.overlay.action.d.ts +26 -0
  367. package/dist/modules/service/aws-cloudfront-service/overlays/aws-cloudfront-s3-origin/actions/add-aws-cloudfront-s3-origin.overlay.action.js +80 -0
  368. package/dist/modules/service/aws-cloudfront-service/overlays/aws-cloudfront-s3-origin/actions/add-aws-cloudfront-s3-origin.overlay.action.js.map +1 -0
  369. package/dist/modules/service/aws-cloudfront-service/overlays/aws-cloudfront-s3-origin/aws-cloudfront-s3-origin.overlay.d.ts +20 -0
  370. package/dist/modules/{server/aws-ecs-server/overlays/aws-ecs-server-s3-access/aws-ecs-server-s3-access.overlay.js → service/aws-cloudfront-service/overlays/aws-cloudfront-s3-origin/aws-cloudfront-s3-origin.overlay.js} +10 -8
  371. package/dist/modules/service/aws-cloudfront-service/overlays/aws-cloudfront-s3-origin/aws-cloudfront-s3-origin.overlay.js.map +1 -0
  372. package/dist/modules/service/aws-cloudfront-service/overlays/aws-cloudfront-s3-origin/aws-cloudfront-s3-origin.schema.d.ts +9 -0
  373. package/dist/modules/service/aws-cloudfront-service/overlays/aws-cloudfront-s3-origin/aws-cloudfront-s3-origin.schema.js +11 -0
  374. package/dist/modules/service/aws-cloudfront-service/overlays/aws-cloudfront-s3-origin/aws-cloudfront-s3-origin.schema.js.map +1 -0
  375. package/dist/modules/service/aws-cloudfront-service/overlays/aws-cloudfront-s3-origin/index.d.ts +2 -0
  376. package/dist/modules/service/aws-cloudfront-service/overlays/aws-cloudfront-s3-origin/index.js +3 -0
  377. package/dist/modules/service/aws-cloudfront-service/overlays/aws-cloudfront-s3-origin/index.js.map +1 -0
  378. package/dist/modules/service/aws-dynamodb-global-service/aws-dynamodb-global-service.module.d.ts +9 -7
  379. package/dist/modules/service/aws-dynamodb-global-service/aws-dynamodb-global-service.module.js +32 -11
  380. package/dist/modules/service/aws-dynamodb-global-service/aws-dynamodb-global-service.module.js.map +1 -1
  381. package/dist/modules/service/aws-dynamodb-global-service/index.schema.d.ts +3 -2
  382. package/dist/modules/service/aws-dynamodb-global-service/index.schema.js +3 -2
  383. package/dist/modules/service/aws-dynamodb-global-service/index.schema.js.map +1 -1
  384. package/dist/modules/service/aws-dynamodb-global-service/models/service/actions/add-aws-dynamodb-global-service-replica-region.model.action.d.ts +29 -0
  385. package/dist/modules/service/aws-dynamodb-global-service/models/service/actions/add-aws-dynamodb-global-service-replica-region.model.action.js +54 -0
  386. package/dist/modules/service/aws-dynamodb-global-service/models/service/actions/add-aws-dynamodb-global-service-replica-region.model.action.js.map +1 -0
  387. package/dist/modules/service/aws-dynamodb-global-service/models/service/actions/add-aws-dynamodb-global-service.model.action.js +12 -3
  388. package/dist/modules/service/aws-dynamodb-global-service/models/service/actions/add-aws-dynamodb-global-service.model.action.js.map +1 -1
  389. package/dist/modules/service/aws-dynamodb-global-service/models/service/aws-dynamodb-global-service.model.d.ts +7 -3
  390. package/dist/modules/service/aws-dynamodb-global-service/models/service/aws-dynamodb-global-service.model.js +14 -7
  391. package/dist/modules/service/aws-dynamodb-global-service/models/service/aws-dynamodb-global-service.model.js.map +1 -1
  392. package/dist/modules/service/aws-dynamodb-global-service/models/service/index.d.ts +1 -0
  393. package/dist/modules/service/aws-dynamodb-global-service/models/service/index.js +1 -0
  394. package/dist/modules/service/aws-dynamodb-global-service/models/service/index.js.map +1 -1
  395. package/dist/modules/service/aws-dynamodb-service/aws-dynamodb-service.module.d.ts +5 -4
  396. package/dist/modules/service/aws-dynamodb-service/aws-dynamodb-service.module.js +17 -12
  397. package/dist/modules/service/aws-dynamodb-service/aws-dynamodb-service.module.js.map +1 -1
  398. package/dist/modules/service/aws-dynamodb-service/index.schema.d.ts +1 -2
  399. package/dist/modules/service/aws-dynamodb-service/index.schema.js +2 -4
  400. package/dist/modules/service/aws-dynamodb-service/index.schema.js.map +1 -1
  401. package/dist/modules/service/aws-dynamodb-service/models/service/aws-dynamodb-service.model.d.ts +3 -3
  402. package/dist/modules/service/aws-dynamodb-service/models/service/aws-dynamodb-service.model.js +8 -7
  403. package/dist/modules/service/aws-dynamodb-service/models/service/aws-dynamodb-service.model.js.map +1 -1
  404. package/dist/modules/service/aws-ecs-alb-service/aws-ecs-alb-service.module.d.ts +20 -10
  405. package/dist/modules/service/aws-ecs-alb-service/aws-ecs-alb-service.module.js +23 -17
  406. package/dist/modules/service/aws-ecs-alb-service/aws-ecs-alb-service.module.js.map +1 -1
  407. package/dist/modules/service/aws-ecs-alb-service/models/service/actions/add-aws-ecs-alb-service.model.action.js +2 -2
  408. package/dist/modules/service/aws-ecs-alb-service/models/service/actions/add-aws-ecs-alb-service.model.action.js.map +1 -1
  409. package/dist/modules/service/aws-ecs-alb-service/models/service/aws-ecs-alb-service.model.d.ts +1 -5
  410. package/dist/modules/service/aws-ecs-alb-service/models/service/aws-ecs-alb-service.model.js +4 -22
  411. package/dist/modules/service/aws-ecs-alb-service/models/service/aws-ecs-alb-service.model.js.map +1 -1
  412. package/dist/modules/service/aws-ecs-alb-service/models/service/aws-ecs-alb-service.schema.d.ts +1 -2
  413. package/dist/modules/service/aws-ecs-alb-service/models/service/aws-ecs-alb-service.schema.js +0 -1
  414. package/dist/modules/service/aws-ecs-alb-service/models/service/aws-ecs-alb-service.schema.js.map +1 -1
  415. package/dist/modules/service/aws-ecs-alb-service/overlays/aws-ecs-alb-service/actions/add-aws-ecs-alb-service.overlay.action.js +7 -8
  416. package/dist/modules/service/aws-ecs-alb-service/overlays/aws-ecs-alb-service/actions/add-aws-ecs-alb-service.overlay.action.js.map +1 -1
  417. package/dist/modules/service/aws-s3-static-website-service/aws-s3-static-website-service.module.d.ts +9 -8
  418. package/dist/modules/service/aws-s3-static-website-service/aws-s3-static-website-service.module.js +18 -13
  419. package/dist/modules/service/aws-s3-static-website-service/aws-s3-static-website-service.module.js.map +1 -1
  420. package/dist/modules/service/aws-s3-static-website-service/index.schema.d.ts +5 -10
  421. package/dist/modules/service/aws-s3-static-website-service/index.schema.js +20 -31
  422. package/dist/modules/service/aws-s3-static-website-service/index.schema.js.map +1 -1
  423. package/dist/modules/service/aws-s3-static-website-service/models/service/actions/add-aws-s3-static-website-service.model.action.js +6 -3
  424. package/dist/modules/service/aws-s3-static-website-service/models/service/actions/add-aws-s3-static-website-service.model.action.js.map +1 -1
  425. package/dist/modules/service/aws-s3-static-website-service/models/service/actions/update-aws-s3-static-website-service-source-paths.model.action.d.ts +2 -1
  426. package/dist/modules/service/aws-s3-static-website-service/models/service/actions/update-aws-s3-static-website-service-source-paths.model.action.js +2 -1
  427. package/dist/modules/service/aws-s3-static-website-service/models/service/actions/update-aws-s3-static-website-service-source-paths.model.action.js.map +1 -1
  428. package/dist/modules/service/aws-s3-static-website-service/models/service/aws-s3-static-website-service.model.d.ts +6 -24
  429. package/dist/modules/service/aws-s3-static-website-service/models/service/aws-s3-static-website-service.model.js +11 -86
  430. package/dist/modules/service/aws-s3-static-website-service/models/service/aws-s3-static-website-service.model.js.map +1 -1
  431. package/dist/modules/service/aws-s3-storage-service/aws-s3-storage-service.module.d.ts +19 -8
  432. package/dist/modules/service/aws-s3-storage-service/aws-s3-storage-service.module.js +44 -20
  433. package/dist/modules/service/aws-s3-storage-service/aws-s3-storage-service.module.js.map +1 -1
  434. package/dist/modules/service/aws-s3-storage-service/index.schema.d.ts +53 -7
  435. package/dist/modules/service/aws-s3-storage-service/index.schema.js +126 -11
  436. package/dist/modules/service/aws-s3-storage-service/index.schema.js.map +1 -1
  437. package/dist/modules/service/aws-s3-storage-service/models/service/actions/add-aws-s3-storage-service.model.action.js +4 -0
  438. package/dist/modules/service/aws-s3-storage-service/models/service/actions/add-aws-s3-storage-service.model.action.js.map +1 -1
  439. package/dist/modules/service/aws-s3-storage-service/models/service/actions/update-aws-s3-storage-service-source-paths.model.action.d.ts +27 -0
  440. package/dist/modules/service/aws-s3-storage-service/models/service/actions/update-aws-s3-storage-service-source-paths.model.action.js +56 -0
  441. package/dist/modules/service/aws-s3-storage-service/models/service/actions/update-aws-s3-storage-service-source-paths.model.action.js.map +1 -0
  442. package/dist/modules/service/aws-s3-storage-service/models/service/aws-s3-storage-service.model.d.ts +26 -8
  443. package/dist/modules/service/aws-s3-storage-service/models/service/aws-s3-storage-service.model.js +56 -20
  444. package/dist/modules/service/aws-s3-storage-service/models/service/aws-s3-storage-service.model.js.map +1 -1
  445. package/dist/modules/service/aws-s3-storage-service/models/service/aws-s3-storage-service.schema.d.ts +13 -3
  446. package/dist/modules/service/aws-s3-storage-service/models/service/aws-s3-storage-service.schema.js +19 -3
  447. package/dist/modules/service/aws-s3-storage-service/models/service/aws-s3-storage-service.schema.js.map +1 -1
  448. package/dist/modules/service/aws-s3-storage-service/models/service/index.d.ts +1 -0
  449. package/dist/modules/service/aws-s3-storage-service/models/service/index.js +1 -0
  450. package/dist/modules/service/aws-s3-storage-service/models/service/index.js.map +1 -1
  451. package/dist/modules/subnet/aws-serverless-subnet/aws-serverless-subnet.module.d.ts +31 -0
  452. package/dist/modules/subnet/aws-serverless-subnet/aws-serverless-subnet.module.js +55 -0
  453. package/dist/modules/subnet/aws-serverless-subnet/aws-serverless-subnet.module.js.map +1 -0
  454. package/dist/modules/subnet/aws-serverless-subnet/index.d.ts +1 -0
  455. package/dist/modules/subnet/aws-serverless-subnet/index.js +2 -0
  456. package/dist/modules/subnet/aws-serverless-subnet/index.js.map +1 -0
  457. package/dist/modules/subnet/aws-serverless-subnet/index.schema.d.ts +17 -0
  458. package/dist/modules/subnet/aws-serverless-subnet/index.schema.js +46 -0
  459. package/dist/modules/subnet/aws-serverless-subnet/index.schema.js.map +1 -0
  460. package/dist/modules/subnet/aws-serverless-subnet/models/subnet/actions/add-aws-serverless-subnet.model.action.d.ts +28 -0
  461. package/dist/modules/subnet/aws-serverless-subnet/models/subnet/actions/add-aws-serverless-subnet.model.action.js +53 -0
  462. package/dist/modules/subnet/aws-serverless-subnet/models/subnet/actions/add-aws-serverless-subnet.model.action.js.map +1 -0
  463. package/dist/modules/subnet/aws-serverless-subnet/models/subnet/aws-serverless-subnet.model.d.ts +11 -0
  464. package/dist/modules/subnet/aws-serverless-subnet/models/subnet/aws-serverless-subnet.model.js +26 -0
  465. package/dist/modules/subnet/aws-serverless-subnet/models/subnet/aws-serverless-subnet.model.js.map +1 -0
  466. package/dist/modules/subnet/aws-serverless-subnet/models/subnet/aws-serverless-subnet.schema.d.ts +6 -0
  467. package/dist/modules/subnet/aws-serverless-subnet/models/subnet/aws-serverless-subnet.schema.js +7 -0
  468. package/dist/modules/subnet/aws-serverless-subnet/models/subnet/aws-serverless-subnet.schema.js.map +1 -0
  469. package/dist/modules/subnet/aws-serverless-subnet/models/subnet/index.d.ts +2 -0
  470. package/dist/modules/subnet/aws-serverless-subnet/models/subnet/index.js +3 -0
  471. package/dist/modules/subnet/aws-serverless-subnet/models/subnet/index.js.map +1 -0
  472. package/dist/modules/subnet/aws-simple-subnet/aws-simple-subnet.module.d.ts +4 -3
  473. package/dist/modules/subnet/aws-simple-subnet/aws-simple-subnet.module.js +7 -4
  474. package/dist/modules/subnet/aws-simple-subnet/aws-simple-subnet.module.js.map +1 -1
  475. package/dist/modules/subnet/aws-simple-subnet/models/subnet/actions/add-aws-simple-subnet.model.action.js +9 -9
  476. package/dist/modules/subnet/aws-simple-subnet/models/subnet/actions/add-aws-simple-subnet.model.action.js.map +1 -1
  477. package/dist/modules/subnet/aws-simple-subnet/overlays/aws-simple-subnet-local-filesystem-mount/actions/add-aws-simple-subnet-local-filesystem-mount.overlay.action.js +11 -9
  478. package/dist/modules/subnet/aws-simple-subnet/overlays/aws-simple-subnet-local-filesystem-mount/actions/add-aws-simple-subnet-local-filesystem-mount.overlay.action.js.map +1 -1
  479. package/dist/modules/subnet/aws-simple-subnet/overlays/aws-simple-subnet-local-filesystem-mount/aws-simple-subnet-local-filesystem-mount.overlay.d.ts +1 -0
  480. package/dist/modules/subnet/aws-simple-subnet/overlays/aws-simple-subnet-local-filesystem-mount/aws-simple-subnet-local-filesystem-mount.overlay.js.map +1 -1
  481. package/dist/resources/alb/alb.resource.js +3 -1
  482. package/dist/resources/alb/alb.resource.js.map +1 -1
  483. package/dist/resources/alb-listener/index.schema.d.ts +2 -2
  484. package/dist/resources/alb-listener/index.schema.js +2 -2
  485. package/dist/resources/alb-target-group/alb-target-group.resource.js +3 -1
  486. package/dist/resources/alb-target-group/alb-target-group.resource.js.map +1 -1
  487. package/dist/resources/cloudfront-distribution/cloudfront-behavior.schema.d.ts +136 -0
  488. package/dist/resources/cloudfront-distribution/cloudfront-behavior.schema.js +215 -0
  489. package/dist/resources/cloudfront-distribution/cloudfront-behavior.schema.js.map +1 -0
  490. package/dist/resources/cloudfront-distribution/cloudfront-distribution.resource.d.ts +129 -0
  491. package/dist/resources/cloudfront-distribution/cloudfront-distribution.resource.js +693 -0
  492. package/dist/resources/cloudfront-distribution/cloudfront-distribution.resource.js.map +1 -0
  493. package/dist/resources/cloudfront-distribution/cloudfront-origin.schema.d.ts +93 -0
  494. package/dist/resources/cloudfront-distribution/cloudfront-origin.schema.js +136 -0
  495. package/dist/resources/cloudfront-distribution/cloudfront-origin.schema.js.map +1 -0
  496. package/dist/resources/cloudfront-distribution/cloudfront-policy.schema.d.ts +361 -0
  497. package/dist/resources/cloudfront-distribution/cloudfront-policy.schema.js +467 -0
  498. package/dist/resources/cloudfront-distribution/cloudfront-policy.schema.js.map +1 -0
  499. package/dist/resources/cloudfront-distribution/cloudfront-response.schema.d.ts +29 -0
  500. package/dist/resources/cloudfront-distribution/cloudfront-response.schema.js +58 -0
  501. package/dist/resources/cloudfront-distribution/cloudfront-response.schema.js.map +1 -0
  502. package/dist/resources/cloudfront-distribution/index.d.ts +1 -0
  503. package/dist/resources/cloudfront-distribution/index.js +2 -0
  504. package/dist/resources/cloudfront-distribution/index.js.map +1 -0
  505. package/dist/resources/cloudfront-distribution/index.schema.d.ts +150 -0
  506. package/dist/resources/cloudfront-distribution/index.schema.js +217 -0
  507. package/dist/resources/cloudfront-distribution/index.schema.js.map +1 -0
  508. package/dist/resources/cloudfront-invalidation/actions/add-cloudfront-invalidation.resource.action.d.ts +36 -0
  509. package/dist/resources/cloudfront-invalidation/actions/add-cloudfront-invalidation.resource.action.js +90 -0
  510. package/dist/resources/cloudfront-invalidation/actions/add-cloudfront-invalidation.resource.action.js.map +1 -0
  511. package/dist/resources/cloudfront-invalidation/actions/delete-cloudfront-invalidation.resource.action.d.ts +39 -0
  512. package/dist/resources/cloudfront-invalidation/actions/delete-cloudfront-invalidation.resource.action.js +69 -0
  513. package/dist/resources/cloudfront-invalidation/actions/delete-cloudfront-invalidation.resource.action.js.map +1 -0
  514. package/dist/resources/cloudfront-invalidation/actions/update-cloudfront-invalidation.resource.action.d.ts +37 -0
  515. package/dist/resources/cloudfront-invalidation/actions/update-cloudfront-invalidation.resource.action.js +91 -0
  516. package/dist/resources/cloudfront-invalidation/actions/update-cloudfront-invalidation.resource.action.js.map +1 -0
  517. package/dist/resources/cloudfront-invalidation/cloudfront-invalidation.resource.d.ts +66 -0
  518. package/dist/resources/cloudfront-invalidation/cloudfront-invalidation.resource.js +92 -0
  519. package/dist/resources/cloudfront-invalidation/cloudfront-invalidation.resource.js.map +1 -0
  520. package/dist/resources/cloudfront-invalidation/index.d.ts +5 -0
  521. package/dist/resources/cloudfront-invalidation/index.js +6 -0
  522. package/dist/resources/cloudfront-invalidation/index.js.map +1 -0
  523. package/dist/resources/cloudfront-invalidation/index.schema.d.ts +64 -0
  524. package/dist/resources/cloudfront-invalidation/index.schema.js +113 -0
  525. package/dist/resources/cloudfront-invalidation/index.schema.js.map +1 -0
  526. package/dist/resources/dynamodb/dynamodb.resource.js +16 -4
  527. package/dist/resources/dynamodb/dynamodb.resource.js.map +1 -1
  528. package/dist/resources/dynamodb-global/dynamodb-global.resource.js +1 -1
  529. package/dist/resources/dynamodb-global/dynamodb-global.resource.js.map +1 -1
  530. package/dist/resources/ecr/ecr-image.resource.js +4 -1
  531. package/dist/resources/ecr/ecr-image.resource.js.map +1 -1
  532. package/dist/resources/ecr-image-tag/actions/add-ecr-image-tag.resource.action.d.ts +1 -1
  533. package/dist/resources/ecr-image-tag/actions/add-ecr-image-tag.resource.action.js +15 -5
  534. package/dist/resources/ecr-image-tag/actions/add-ecr-image-tag.resource.action.js.map +1 -1
  535. package/dist/resources/ecr-image-tag/actions/delete-ecr-image-tag.resource.action.js +1 -1
  536. package/dist/resources/ecr-image-tag/actions/delete-ecr-image-tag.resource.action.js.map +1 -1
  537. package/dist/resources/ecr-image-tag/ecr-image-tag.resource.js +3 -1
  538. package/dist/resources/ecr-image-tag/ecr-image-tag.resource.js.map +1 -1
  539. package/dist/resources/ecr-image-tag/index.schema.d.ts +11 -0
  540. package/dist/resources/ecr-image-tag/index.schema.js +26 -11
  541. package/dist/resources/ecr-image-tag/index.schema.js.map +1 -1
  542. package/dist/resources/ecs-cluster/ecs-cluster.resource.js +3 -1
  543. package/dist/resources/ecs-cluster/ecs-cluster.resource.js.map +1 -1
  544. package/dist/resources/ecs-service/ecs-service.resource.js +0 -4
  545. package/dist/resources/ecs-service/ecs-service.resource.js.map +1 -1
  546. package/dist/resources/ecs-task-definition/ecs-task-definition.resource.d.ts +9 -6
  547. package/dist/resources/ecs-task-definition/ecs-task-definition.resource.js +18 -8
  548. package/dist/resources/ecs-task-definition/ecs-task-definition.resource.js.map +1 -1
  549. package/dist/resources/ecs-task-definition/index.schema.d.ts +5 -6
  550. package/dist/resources/ecs-task-definition/index.schema.js +9 -6
  551. package/dist/resources/ecs-task-definition/index.schema.js.map +1 -1
  552. package/dist/resources/efs/efs.resource.js +1 -1
  553. package/dist/resources/efs/efs.resource.js.map +1 -1
  554. package/dist/resources/efs-mount-target/index.schema.d.ts +1 -1
  555. package/dist/resources/efs-mount-target/index.schema.js +1 -1
  556. package/dist/resources/iam-role/iam-role.resource.d.ts +29 -2
  557. package/dist/resources/iam-role/iam-role.resource.js +163 -37
  558. package/dist/resources/iam-role/iam-role.resource.js.map +1 -1
  559. package/dist/resources/iam-role/index.schema.d.ts +45 -11
  560. package/dist/resources/iam-role/index.schema.js.map +1 -1
  561. package/dist/resources/iam-user/iam-user.resource.d.ts +23 -2
  562. package/dist/resources/iam-user/iam-user.resource.js +130 -27
  563. package/dist/resources/iam-user/iam-user.resource.js.map +1 -1
  564. package/dist/resources/iam-user/index.schema.d.ts +33 -5
  565. package/dist/resources/iam-user/index.schema.js.map +1 -1
  566. package/dist/resources/lambda-function/index.d.ts +1 -0
  567. package/dist/resources/lambda-function/index.js +2 -0
  568. package/dist/resources/lambda-function/index.js.map +1 -0
  569. package/dist/resources/lambda-function/index.schema.d.ts +75 -0
  570. package/dist/resources/lambda-function/index.schema.js +139 -0
  571. package/dist/resources/lambda-function/index.schema.js.map +1 -0
  572. package/dist/resources/lambda-function/lambda-function.resource.d.ts +50 -0
  573. package/dist/resources/lambda-function/lambda-function.resource.js +199 -0
  574. package/dist/resources/lambda-function/lambda-function.resource.js.map +1 -0
  575. package/dist/resources/nat-gateway/nat-gateway.resource.d.ts +2 -7
  576. package/dist/resources/nat-gateway/nat-gateway.resource.js +2 -2
  577. package/dist/resources/nat-gateway/nat-gateway.resource.js.map +1 -1
  578. package/dist/resources/s3-storage/index.schema.d.ts +118 -6
  579. package/dist/resources/s3-storage/index.schema.js +200 -7
  580. package/dist/resources/s3-storage/index.schema.js.map +1 -1
  581. package/dist/resources/s3-storage/s3-storage.resource.d.ts +25 -12
  582. package/dist/resources/s3-storage/s3-storage.resource.js +211 -110
  583. package/dist/resources/s3-storage/s3-storage.resource.js.map +1 -1
  584. package/dist/resources/s3-website/index.schema.d.ts +2 -0
  585. package/dist/resources/s3-website/index.schema.js +5 -0
  586. package/dist/resources/s3-website/index.schema.js.map +1 -1
  587. package/dist/resources/s3-website/s3-website.resource.d.ts +1 -11
  588. package/dist/resources/s3-website/s3-website.resource.js +6 -3
  589. package/dist/resources/s3-website/s3-website.resource.js.map +1 -1
  590. package/dist/resources/security-group/security-group.resource.js +13 -2
  591. package/dist/resources/security-group/security-group.resource.js.map +1 -1
  592. package/dist/services/docker/docker.service.d.ts +28 -7
  593. package/dist/services/docker/docker.service.js +53 -17
  594. package/dist/services/docker/docker.service.js.map +1 -1
  595. package/dist/utilities/aws-region/aws-region.utility.d.ts +15 -0
  596. package/dist/utilities/aws-region/aws-region.utility.js +19 -0
  597. package/dist/utilities/aws-region/aws-region.utility.js.map +1 -0
  598. package/dist/utilities/file/file.utility.d.ts +0 -4
  599. package/dist/utilities/file/file.utility.js +0 -6
  600. package/dist/utilities/file/file.utility.js.map +1 -1
  601. package/dist/utilities/retry/retry.utility.d.ts +5 -9
  602. package/dist/utilities/retry/retry.utility.js +0 -20
  603. package/dist/utilities/retry/retry.utility.js.map +1 -1
  604. package/dist/utilities/s3-file-source/s3-file-source.utility.d.ts +53 -0
  605. package/dist/utilities/s3-file-source/s3-file-source.utility.js +112 -0
  606. package/dist/utilities/s3-file-source/s3-file-source.utility.js.map +1 -0
  607. package/package.json +33 -10
  608. package/dist/anchors/aws-ecs/aws-ecs-server.anchor.d.ts +0 -12
  609. package/dist/anchors/aws-ecs/aws-ecs-server.anchor.js.map +0 -1
  610. package/dist/anchors/aws-ecs/aws-ecs-server.anchor.schema.d.ts +0 -27
  611. package/dist/anchors/aws-ecs/aws-ecs-server.anchor.schema.js.map +0 -1
  612. package/dist/anchors/aws-ecs/aws-ecs-task-definition.anchor.d.ts +0 -12
  613. package/dist/anchors/aws-ecs/aws-ecs-task-definition.anchor.js.map +0 -1
  614. package/dist/anchors/aws-ecs/aws-ecs-task-definition.anchor.schema.d.ts +0 -88
  615. package/dist/anchors/aws-ecs/aws-ecs-task-definition.anchor.schema.js +0 -138
  616. package/dist/anchors/aws-ecs/aws-ecs-task-definition.anchor.schema.js.map +0 -1
  617. package/dist/anchors/aws-iam/aws-iam-role.anchor.d.ts +0 -12
  618. package/dist/anchors/aws-iam/aws-iam-role.anchor.js.map +0 -1
  619. package/dist/anchors/aws-iam/aws-iam-role.anchor.schema.d.ts +0 -24
  620. package/dist/anchors/aws-iam/aws-iam-role.anchor.schema.js.map +0 -1
  621. package/dist/anchors/aws-s3-storage-service/aws-s3-storage-service-directory.anchor.d.ts +0 -12
  622. package/dist/anchors/aws-s3-storage-service/aws-s3-storage-service-directory.anchor.js.map +0 -1
  623. package/dist/anchors/aws-s3-storage-service/aws-s3-storage-service-directory.anchor.schema.js.map +0 -1
  624. package/dist/modules/deployment/aws-ecs-deployment/aws-ecs-deployment.module.d.ts +0 -41
  625. package/dist/modules/deployment/aws-ecs-deployment/aws-ecs-deployment.module.js +0 -61
  626. package/dist/modules/deployment/aws-ecs-deployment/aws-ecs-deployment.module.js.map +0 -1
  627. package/dist/modules/deployment/aws-ecs-deployment/index.d.ts +0 -1
  628. package/dist/modules/deployment/aws-ecs-deployment/index.js +0 -2
  629. package/dist/modules/deployment/aws-ecs-deployment/index.js.map +0 -1
  630. package/dist/modules/deployment/aws-ecs-deployment/index.schema.d.ts +0 -33
  631. package/dist/modules/deployment/aws-ecs-deployment/index.schema.js +0 -71
  632. package/dist/modules/deployment/aws-ecs-deployment/index.schema.js.map +0 -1
  633. package/dist/modules/deployment/aws-ecs-deployment/models/deployment/actions/add-aws-ecs-deployment.model.action.d.ts +0 -25
  634. package/dist/modules/deployment/aws-ecs-deployment/models/deployment/actions/add-aws-ecs-deployment.model.action.js.map +0 -1
  635. package/dist/modules/deployment/aws-ecs-deployment/models/deployment/aws-ecs-deployment.model.d.ts +0 -11
  636. package/dist/modules/deployment/aws-ecs-deployment/models/deployment/aws-ecs-deployment.model.js.map +0 -1
  637. package/dist/modules/deployment/aws-ecs-deployment/models/deployment/aws-ecs-deployment.schema.js +0 -7
  638. package/dist/modules/deployment/aws-ecs-deployment/models/deployment/aws-ecs-deployment.schema.js.map +0 -1
  639. package/dist/modules/deployment/aws-ecs-deployment/models/deployment/index.d.ts +0 -2
  640. package/dist/modules/deployment/aws-ecs-deployment/models/deployment/index.js +0 -3
  641. package/dist/modules/deployment/aws-ecs-deployment/models/deployment/index.js.map +0 -1
  642. package/dist/modules/server/aws-ecs-server/aws-ecs-server.module.d.ts +0 -58
  643. package/dist/modules/server/aws-ecs-server/aws-ecs-server.module.js +0 -148
  644. package/dist/modules/server/aws-ecs-server/aws-ecs-server.module.js.map +0 -1
  645. package/dist/modules/server/aws-ecs-server/index.d.ts +0 -1
  646. package/dist/modules/server/aws-ecs-server/index.js +0 -2
  647. package/dist/modules/server/aws-ecs-server/index.js.map +0 -1
  648. package/dist/modules/server/aws-ecs-server/index.schema.d.ts +0 -83
  649. package/dist/modules/server/aws-ecs-server/index.schema.js +0 -153
  650. package/dist/modules/server/aws-ecs-server/index.schema.js.map +0 -1
  651. package/dist/modules/server/aws-ecs-server/models/server/actions/add-aws-ecs-server.model.action.d.ts +0 -25
  652. package/dist/modules/server/aws-ecs-server/models/server/actions/add-aws-ecs-server.model.action.js +0 -71
  653. package/dist/modules/server/aws-ecs-server/models/server/actions/add-aws-ecs-server.model.action.js.map +0 -1
  654. package/dist/modules/server/aws-ecs-server/models/server/aws-ecs-server.model.d.ts +0 -11
  655. package/dist/modules/server/aws-ecs-server/models/server/aws-ecs-server.model.js.map +0 -1
  656. package/dist/modules/server/aws-ecs-server/models/server/aws-ecs-server.schema.js +0 -7
  657. package/dist/modules/server/aws-ecs-server/models/server/aws-ecs-server.schema.js.map +0 -1
  658. package/dist/modules/server/aws-ecs-server/models/server/index.d.ts +0 -2
  659. package/dist/modules/server/aws-ecs-server/models/server/index.js +0 -3
  660. package/dist/modules/server/aws-ecs-server/models/server/index.js.map +0 -1
  661. package/dist/modules/server/aws-ecs-server/overlays/aws-ecs-server-s3-access/actions/add-aws-ecs-server-s3-access.overlay.action.d.ts +0 -26
  662. package/dist/modules/server/aws-ecs-server/overlays/aws-ecs-server-s3-access/actions/add-aws-ecs-server-s3-access.overlay.action.js +0 -73
  663. package/dist/modules/server/aws-ecs-server/overlays/aws-ecs-server-s3-access/actions/add-aws-ecs-server-s3-access.overlay.action.js.map +0 -1
  664. package/dist/modules/server/aws-ecs-server/overlays/aws-ecs-server-s3-access/aws-ecs-server-s3-access.overlay.d.ts +0 -19
  665. package/dist/modules/server/aws-ecs-server/overlays/aws-ecs-server-s3-access/aws-ecs-server-s3-access.overlay.js.map +0 -1
  666. package/dist/modules/server/aws-ecs-server/overlays/aws-ecs-server-s3-access/aws-ecs-server-s3-access.schema.js.map +0 -1
  667. package/dist/modules/server/aws-ecs-server/overlays/aws-ecs-server-s3-access/index.d.ts +0 -2
  668. package/dist/modules/server/aws-ecs-server/overlays/aws-ecs-server-s3-access/index.js +0 -3
  669. package/dist/modules/server/aws-ecs-server/overlays/aws-ecs-server-s3-access/index.js.map +0 -1
  670. package/dist/utilities/common/common.utility.d.ts +0 -13
  671. package/dist/utilities/common/common.utility.js +0 -28
  672. package/dist/utilities/common/common.utility.js.map +0 -1
  673. package/dist/utilities/hcl/hcl.utility.d.ts +0 -34
  674. package/dist/utilities/hcl/hcl.utility.js +0 -163
  675. package/dist/utilities/hcl/hcl.utility.js.map +0 -1
@@ -8,10 +8,8 @@ var __metadata = (this && this.__metadata) || function (k, v) {
8
8
  if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
9
9
  };
10
10
  var AwsS3StaticWebsiteService_1;
11
- import { lstat, readdir } from 'fs/promises';
12
- import { join, parse, resolve } from 'path';
13
- import { Diff, DiffAction, Model, ModelError, Service, Validate } from '@quadnix/octo';
14
- import { FileUtility } from '../../../../../utilities/file/file.utility.js';
11
+ import { Diff, DiffAction, Model, ModelError, Service, ServiceType, Validate, } from '@quadnix/octo';
12
+ import { S3FileSourceUtility, } from '../../../../../utilities/s3-file-source/s3-file-source.utility.js';
15
13
  import { AwsS3StaticWebsiteServiceSchema } from './aws-s3-static-website-service.schema.js';
16
14
  /**
17
15
  * @internal
@@ -20,8 +18,8 @@ let AwsS3StaticWebsiteService = AwsS3StaticWebsiteService_1 = class AwsS3StaticW
20
18
  /**
21
19
  * @internal
22
20
  */
23
- constructor(bucketName) {
24
- super(`${bucketName}-s3-static-website`);
21
+ constructor(bucketName, region) {
22
+ super(`${bucketName}-s3-static-website`, [region], ServiceType.STORAGE, 's3-static-website');
25
23
  this.excludePaths = [];
26
24
  this.sourcePaths = [];
27
25
  this.bucketName = bucketName;
@@ -29,64 +27,22 @@ let AwsS3StaticWebsiteService = AwsS3StaticWebsiteService_1 = class AwsS3StaticW
29
27
  /**
30
28
  * @internal
31
29
  */
32
- static async unSynth(service) {
33
- return new AwsS3StaticWebsiteService_1(service.bucketName);
30
+ static async unSynth(service, deReferenceContext) {
31
+ const region = (await deReferenceContext(service.parents[0].context));
32
+ return new AwsS3StaticWebsiteService_1(service.bucketName, region);
34
33
  }
35
34
  /**
36
35
  * @internal
37
36
  */
38
37
  async addSource(directoryPath, subDirectoryOrFilePath, filter, transform) {
39
- directoryPath = resolve(directoryPath);
40
- if (!subDirectoryOrFilePath) {
41
- subDirectoryOrFilePath = '';
42
- }
43
- // Remove leading slashes.
44
- subDirectoryOrFilePath = subDirectoryOrFilePath.replace(/^\/+/g, '');
45
- // Ensure subDirectoryOrFilePath exists, and is readable.
46
- const relativeSubDirectoryOrFilePath = join(directoryPath, subDirectoryOrFilePath);
47
- const stats = await lstat(relativeSubDirectoryOrFilePath);
48
- if (stats.isFile()) {
49
- if (!subDirectoryOrFilePath) {
50
- const { base, dir } = parse(directoryPath);
51
- directoryPath = dir;
52
- subDirectoryOrFilePath = base;
53
- }
54
- const shouldInclude = filter ? filter(subDirectoryOrFilePath) : true;
55
- if (shouldInclude) {
56
- this.sourcePaths.push({
57
- directoryPath,
58
- isDirectory: false,
59
- remotePath: transform ? transform(subDirectoryOrFilePath) : subDirectoryOrFilePath,
60
- subDirectoryOrFilePath,
61
- });
62
- }
63
- }
64
- else {
65
- this.sourcePaths.push({
66
- directoryPath,
67
- isDirectory: true,
68
- remotePath: transform ? transform(subDirectoryOrFilePath) : subDirectoryOrFilePath,
69
- subDirectoryOrFilePath,
70
- });
71
- const filePaths = await readdir(relativeSubDirectoryOrFilePath, { recursive: true });
72
- for (let filePath of filePaths) {
73
- filePath = join(subDirectoryOrFilePath, filePath);
74
- const shouldInclude = filter ? filter(filePath) : true;
75
- if (!shouldInclude) {
76
- this.excludePaths.push({
77
- directoryPath,
78
- subDirectoryOrFilePath: filePath,
79
- });
80
- }
81
- }
82
- }
38
+ await S3FileSourceUtility.addSource(this.sourcePaths, this.excludePaths, directoryPath, subDirectoryOrFilePath, filter, transform);
83
39
  }
84
40
  /**
85
41
  * @internal
86
42
  */
87
43
  async diffProperties() {
88
44
  // Generate new manifest.
89
- const newManifestData = await this.generateSourceManifest();
45
+ const newManifestData = await S3FileSourceUtility.generateManifest(this.sourcePaths, this.excludePaths);
90
46
  // Ensure index.html exists.
91
47
  if (this.sourcePaths.length > 0 && !(newManifestData['error.html'] || newManifestData['index.html'])) {
92
48
  throw new ModelError('error.html/index.html missing in root of website!', this);
@@ -108,41 +64,10 @@ let AwsS3StaticWebsiteService = AwsS3StaticWebsiteService_1 = class AwsS3StaticW
108
64
  */
109
65
  synth() {
110
66
  return {
67
+ ...super.synth(),
111
68
  bucketName: this.bucketName,
112
- serviceId: this.serviceId,
113
69
  };
114
70
  }
115
- /**
116
- * @internal
117
- */
118
- async generateSourceManifest() {
119
- const manifest = {};
120
- const sourcePaths = [...this.sourcePaths];
121
- for (const sourcePath of sourcePaths) {
122
- if (!sourcePath.isDirectory) {
123
- const filePath = join(sourcePath.directoryPath, sourcePath.subDirectoryOrFilePath);
124
- const digest = await FileUtility.hash(filePath);
125
- manifest[sourcePath.remotePath] = { algorithm: 'sha1', digest, filePath };
126
- }
127
- else {
128
- const directoryPath = join(sourcePath.directoryPath, sourcePath.subDirectoryOrFilePath);
129
- const directoryFilePaths = await readdir(directoryPath, { recursive: true });
130
- for (const directoryFilePath of directoryFilePaths) {
131
- const filePath = join(directoryPath, directoryFilePath);
132
- const stats = await lstat(filePath);
133
- if (stats.isDirectory()) {
134
- continue;
135
- }
136
- if (this.excludePaths.findIndex((p) => join(p.directoryPath, p.subDirectoryOrFilePath) === filePath) === -1) {
137
- const remotePath = join(sourcePath.remotePath, directoryFilePath);
138
- const digest = await FileUtility.hash(filePath);
139
- manifest[remotePath] = { algorithm: 'sha1', digest, filePath };
140
- }
141
- }
142
- }
143
- }
144
- return manifest;
145
- }
146
71
  };
147
72
  __decorate([
148
73
  Validate({ options: { maxLength: 128, minLength: 2, regex: /^[a-zA-Z0-9][\w.-]*[a-zA-Z0-9]$/ } }),
@@ -150,7 +75,7 @@ __decorate([
150
75
  ], AwsS3StaticWebsiteService.prototype, "bucketName", void 0);
151
76
  AwsS3StaticWebsiteService = AwsS3StaticWebsiteService_1 = __decorate([
152
77
  Model('@octo', 'service', AwsS3StaticWebsiteServiceSchema),
153
- __metadata("design:paramtypes", [Object])
78
+ __metadata("design:paramtypes", [Object, Function])
154
79
  ], AwsS3StaticWebsiteService);
155
80
  export { AwsS3StaticWebsiteService };
156
81
  //# sourceMappingURL=aws-s3-static-website-service.model.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"aws-s3-static-website-service.model.js","sourceRoot":"","sources":["../../../../../../src/modules/service/aws-s3-static-website-service/models/service/aws-s3-static-website-service.model.ts"],"names":[],"mappings":";;;;;;;;;;AAAA,OAAO,EAAE,KAAK,EAAE,OAAO,EAAE,MAAM,aAAa,CAAC;AAC7C,OAAO,EAAE,IAAI,EAAE,KAAK,EAAE,OAAO,EAAE,MAAM,MAAM,CAAC;AAC5C,OAAO,EAAE,IAAI,EAAE,UAAU,EAAE,KAAK,EAAE,UAAU,EAAE,OAAO,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAC;AACvF,OAAO,EAAE,WAAW,EAAE,MAAM,+CAA+C,CAAC;AAC5E,OAAO,EAAE,+BAA+B,EAAE,MAAM,2CAA2C,CAAC;AAI5F;;GAEG;AAEI,IAAM,yBAAyB,iCAA/B,MAAM,yBAA0B,SAAQ,OAAO;IAapD;;OAEG;IACH,YAAY,UAAyD;QACnE,KAAK,CAAC,GAAG,UAAU,oBAAoB,CAAC,CAAC;QAblC,iBAAY,GAAgE,EAAE,CAAC;QAE/E,gBAAW,GAKd,EAAE,CAAC;QAQP,IAAI,CAAC,UAAU,GAAG,UAAU,CAAC;IAC/B,CAAC;IAED;;OAEG;IACH,MAAM,CAAU,KAAK,CAAC,OAAO,CAAC,OAAwC;QACpE,OAAO,IAAI,2BAAyB,CAAC,OAAO,CAAC,UAAU,CAAC,CAAC;IAC3D,CAAC;IAED;;OAEG;IACH,KAAK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,GAAG,IAAI,CAAC,aAAa,EAAE,iBAAiB,CAAC,CAAC;oBACxD,MAAM,KAAK,GAAG,MAAM,KAAK,CAAC,QAAQ,CAAC,CAAC;oBACpC,IAAI,KAAK,CAAC,WAAW,EAAE,EAAE,CAAC;wBACxB,SAAS;oBACX,CAAC;oBAED,IAAI,IAAI,CAAC,YAAY,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,IAAI,CAAC,CAAC,CAAC,aAAa,EAAE,CAAC,CAAC,sBAAsB,CAAC,KAAK,QAAQ,CAAC,KAAK,CAAC,CAAC,EAAE,CAAC;wBAC5G,MAAM,UAAU,GAAG,IAAI,CAAC,UAAU,CAAC,UAAU,EAAE,iBAAiB,CAAC,CAAC;wBAClE,MAAM,MAAM,GAAG,MAAM,WAAW,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC;wBAChD,QAAQ,CAAC,UAAU,CAAC,GAAG,EAAE,SAAS,EAAE,MAAM,EAAE,MAAM,EAAE,QAAQ,EAAE,CAAC;oBACjE,CAAC;gBACH,CAAC;YACH,CAAC;QACH,CAAC;QAED,OAAO,QAAQ,CAAC;IAClB,CAAC;CACF,CAAA;AA1JU;IADR,QAAQ,CAAC,EAAE,OAAO,EAAE,EAAE,SAAS,EAAE,GAAG,EAAE,SAAS,EAAE,CAAC,EAAE,KAAK,EAAE,iCAAiC,EAAE,EAAE,CAAC;;6DACtE;AAFjB,yBAAyB;IADrC,KAAK,CAA4B,OAAO,EAAE,SAAS,EAAE,+BAA+B,CAAC;;GACzE,yBAAyB,CA4JrC"}
1
+ {"version":3,"file":"aws-s3-static-website-service.model.js","sourceRoot":"","sources":["../../../../../../src/modules/service/aws-s3-static-website-service/models/service/aws-s3-static-website-service.model.ts"],"names":[],"mappings":";;;;;;;;;;AAAA,OAAO,EAEL,IAAI,EACJ,UAAU,EACV,KAAK,EACL,UAAU,EAEV,OAAO,EACP,WAAW,EACX,QAAQ,GACT,MAAM,eAAe,CAAC;AACvB,OA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3StorageServiceModuleSchema } from './index.schema.js';
3
3
  import { AwsS3StorageService } from './models/service/index.js';
4
4
  /**
5
5
  * `AwsS3StorageServiceModule` is an S3-based AWS storage service module
6
6
  * that provides an implementation for the `Service` model.
7
- * This module creates S3 buckets for object storage with support for directory organization and remote file management.
8
- * It provides scalable, durable storage for applications with configurable directory structures.
7
+ * This module creates an S3 bucket for object storage, declares the key prefixes in it that other
8
+ * modules may be granted access to, and optionally uploads the files of a local directory into it.
9
+ *
10
+ * The bucket is closed to the public by default. To serve its files, pass it as an origin to
11
+ * `AwsCloudFrontServiceModule`, which grants its distribution access. For a bucket that serves a
12
+ * website on its own, use `AwsS3StaticWebsiteServiceModule`.
13
+ * The bucket lives in a region created by any of the AWS region modules.
9
14
  *
10
15
  * @example
11
16
  * TypeScript
12
17
  * ```ts
18
+ * import { type Region, stub } from '@quadnix/octo';
13
19
  * import { AwsS3StorageServiceModule } from '@quadnix/octo-aws-cdk/modules/service/aws-s3-storage-service';
14
20
  *
15
21
  * octo.loadModule(AwsS3StorageServiceModule, 'my-storage-module', {
22
+ * accessPrefixes: ['uploads', 'documents', 'images'],
16
23
  * bucketName: 'my-app-storage',
17
- * region: myRegion,
18
- * remoteDirectoryPaths: ['uploads', 'documents', 'images']
24
+ * corsRules: [{ allowHeaders: ['Range'], allowMethods: ['GET'], allowOrigins: ['https://app.example.com'] }],
25
+ * directoryPath: 'website',
26
+ * filter: (filePath) => !filePath.includes('.DS_Store'),
27
+ * lifecycleRules: [{ expirationInDays: 1, tags: { upload: 'pending' } }],
28
+ * region: stub<Region>('${{my-region-module.model.region}}')
19
29
  * });
20
30
  * ```
21
31
  *
@@ -29,14 +39,15 @@ import { AwsS3StorageService } from './models/service/index.js';
29
39
  */
30
40
  export declare class AwsS3StorageServiceModule extends AModule<AwsS3StorageServiceModuleSchema, AwsS3StorageService> {
31
41
  /**
32
- * Creates the bucket service, and registers each directory in it along with who may read or write it.
42
+ * Creates the bucket service, registers the local files it uploads, and registers each access
43
+ * prefix in it that other modules may be granted access to.
33
44
  */
34
45
  onInit(inputs: AwsS3StorageServiceModuleSchema): Promise<AwsS3StorageService>;
35
46
  /**
36
- * Resolves the app, account, and region this bucket is created in.
47
+ * Resolves the account and region this bucket is created in.
48
+ * The region may be networked or serverless; the bucket only needs its AWS region ID.
37
49
  */
38
50
  registerMetadata(inputs: AwsS3StorageServiceModuleSchema): Promise<{
39
- app: App;
40
51
  awsAccountId: string;
41
52
  awsRegionId: string;
42
53
  }>;
@@ -4,26 +4,37 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
4
4
  else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
5
5
  return c > 3 && r && Object.defineProperty(target, key, r), r;
6
6
  };
7
- import { AModule, Module } from '@quadnix/octo';
7
+ import { AModule, Module, ModuleError } from '@quadnix/octo';
8
8
  import { AwsRegionAnchorSchema } from '../../../anchors/aws-region/aws-region.anchor.schema.js';
9
+ import { AwsServerlessRegionAnchorSchema } from '../../../anchors/aws-region/aws-serverless-region.anchor.schema.js';
9
10
  import { AwsS3StorageServiceAnchor } from '../../../anchors/aws-s3-storage-service/aws-s3-storage-service.anchor.js';
10
11
  import { AwsS3StorageServiceModuleSchema } from './index.schema.js';
11
12
  import { AwsS3StorageService } from './models/service/index.js';
12
13
  /**
13
14
  * `AwsS3StorageServiceModule` is an S3-based AWS storage service module
14
15
  * that provides an implementation for the `Service` model.
15
- * This module creates S3 buckets for object storage with support for directory organization and remote file management.
16
- * It provides scalable, durable storage for applications with configurable directory structures.
16
+ * This module creates an S3 bucket for object storage, declares the key prefixes in it that other
17
+ * modules may be granted access to, and optionally uploads the files of a local directory into it.
18
+ *
19
+ * The bucket is closed to the public by default. To serve its files, pass it as an origin to
20
+ * `AwsCloudFrontServiceModule`, which grants its distribution access. For a bucket that serves a
21
+ * website on its own, use `AwsS3StaticWebsiteServiceModule`.
22
+ * The bucket lives in a region created by any of the AWS region modules.
17
23
  *
18
24
  * @example
19
25
  * TypeScript
20
26
  * ```ts
27
+ * import { type Region, stub } from '@quadnix/octo';
21
28
  * import { AwsS3StorageServiceModule } from '@quadnix/octo-aws-cdk/modules/service/aws-s3-storage-service';
22
29
  *
23
30
  * octo.loadModule(AwsS3StorageServiceModule, 'my-storage-module', {
31
+ * accessPrefixes: ['uploads', 'documents', 'images'],
24
32
  * bucketName: 'my-app-storage',
25
- * region: myRegion,
26
- * remoteDirectoryPaths: ['uploads', 'documents', 'images']
33
+ * corsRules: [{ allowHeaders: ['Range'], allowMethods: ['GET'], allowOrigins: ['https://app.example.com'] }],
34
+ * directoryPath: 'website',
35
+ * filter: (filePath) => !filePath.includes('.DS_Store'),
36
+ * lifecycleRules: [{ expirationInDays: 1, tags: { upload: 'pending' } }],
37
+ * region: stub<Region>('${{my-region-module.model.region}}')
27
38
  * });
28
39
  * ```
29
40
  *
@@ -37,35 +48,48 @@ import { AwsS3StorageService } from './models/service/index.js';
37
48
  */
38
49
  let AwsS3StorageServiceModule = class AwsS3StorageServiceModule extends AModule {
39
50
  /**
40
- * Creates the bucket service, and registers each directory in it along with who may read or write it.
51
+ * Creates the bucket service, registers the local files it uploads, and registers each access
52
+ * prefix in it that other modules may be granted access to.
41
53
  */
42
54
  async onInit(inputs) {
43
- const { app, awsAccountId, awsRegionId } = await this.registerMetadata(inputs);
44
- // Create a new service service.
45
- const s3StorageService = new AwsS3StorageService(inputs.bucketName);
46
- app.addService(s3StorageService);
55
+ const { awsAccountId, awsRegionId } = await this.registerMetadata(inputs);
56
+ // Create a new s3-storage service.
57
+ const s3StorageService = new AwsS3StorageService(inputs.bucketName, inputs.region);
58
+ // Add source files.
59
+ if (inputs.directoryPath) {
60
+ await s3StorageService.addSource(inputs.directoryPath, inputs.subDirectoryOrFilePath || undefined, inputs.filter || undefined, inputs.transform || undefined);
61
+ }
47
62
  // Add anchors.
48
- s3StorageService.addAnchor(new AwsS3StorageServiceAnchor('AwsS3StorageServiceAnchor', { awsAccountId, awsRegionId, bucketName: inputs.bucketName }, s3StorageService));
49
- // Add S3 directories.
50
- for (const remoteDirectoryPath of inputs.remoteDirectoryPaths || []) {
51
- s3StorageService.addDirectory(remoteDirectoryPath);
63
+ s3StorageService.addAnchor(new AwsS3StorageServiceAnchor('AwsS3StorageServiceAnchor', {
64
+ awsAccountId,
65
+ awsRegionId,
66
+ bucketName: inputs.bucketName,
67
+ contentDigest: await s3StorageService.getContentDigest(),
68
+ }, s3StorageService));
69
+ // Add access prefixes.
70
+ for (const accessPrefix of inputs.accessPrefixes || []) {
71
+ s3StorageService.addAccessPrefix(accessPrefix);
52
72
  }
53
73
  return s3StorageService;
54
74
  }
55
75
  /**
56
- * Resolves the app, account, and region this bucket is created in.
76
+ * Resolves the account and region this bucket is created in.
77
+ * The region may be networked or serverless; the bucket only needs its AWS region ID.
57
78
  */
58
79
  async registerMetadata(inputs) {
59
80
  const region = inputs.region;
60
81
  const account = region.getParents()['account'][0].to;
61
- const app = account.getParents()['app'][0].to;
62
82
  // Get AWS Region ID.
63
- const [matchingAnchor] = await region.getAnchorsMatchingSchema(AwsRegionAnchorSchema, [], {
64
- searchBoundaryMembers: false,
65
- });
83
+ const [[matchingRegionAnchor], [matchingServerlessRegionAnchor]] = await Promise.all([
84
+ region.getAnchorsMatchingSchema(AwsRegionAnchorSchema, [], { searchBoundaryMembers: false }),
85
+ region.getAnchorsMatchingSchema(AwsServerlessRegionAnchorSchema, [], { searchBoundaryMembers: false }),
86
+ ]);
87
+ const matchingAnchor = matchingRegionAnchor || matchingServerlessRegionAnchor;
88
+ if (!matchingAnchor) {
89
+ throw new ModuleError('Region is not an AWS region!', this.constructor.name);
90
+ }
66
91
  const awsRegionId = matchingAnchor.getSchemaInstance().properties.awsRegionId;
67
92
  return {
68
- app,
69
93
  awsAccountId: account.accountId,
70
94
  awsRegionId,
71
95
  };
@@ -1 +1 @@
1
- {"version":3,"file":"aws-s3-storage-service.module.js","sourceRoot":"","sources":["../../../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O,GAAG,MAAM,CAAC,UAAU,EAAE,CAAC,SAAS,CAAC,CAAC,CAAC,CAAC,CAAC,EAAa,CAAC;QAChE,MAAM,GAAG,GAAG,OAAO,CAAC,UAAU,EAAE,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC,EAAS,CAAC;QAErD,qBAAqB;QACrB,MAAM,CAAC,cAAc,CAAC,GAAG,MAAM,MAAM,CAAC,wBAAwB,CAAC,qBAAqB,EAAE,EAAE,EAAE;YACxF,qBAAqB,EAAE,KAAK;SAC7B,CAAC,CAAC;QACH,MAAM,WAAW,GAAG,cAAc,CAAC,iBAAiB,EAAE,CAAC,UAAU,CAAC,WAAW,CAAC;QAE9E,OAAO;YACL,GAAG;YACH,YAAY,EAAE,OAAO,CAAC,SAAS;YAC/B,WAAW;SACZ,CAAC;IACJ,CAAC;CACF,CAAA;AAjDY,yBAAyB;IADrC,MAAM,CAA4B,OAAO,EAAE,+BAA+B,CAAC;GAC/D,yBAAyB,CAiDrC"}
1
+ {"version":3,"file":"aws-s3-storage-service.module.js","sourceRoot":"","sources":["../../../../src/modules/service/aws-s3-storage-service/aws-s3-storage-service.module.ts"],"names":[],"mappings":";;;;;;AAAA,OAAO,EAAE,OAAO,EAAgB,MAAM,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAC3E,OAAO,EAAE,qBAAqB,EAAE,MAAM,yDAAyD,CAAC;AAChG,OAAO,EAAE,+BAA+B,EAAE,MAAM,oEAAoE,CAAC;AACrH,OAAO,EAAE,yBAAyB,EAAE,MAAM,0EAA0E,CAAC;AACrH,OAAO,EAAE,+BAA+B,EAAE,MAAM,mBAAmB,CAAC;AACpE,OAAO,EAAE,mBAAmB,EAAE,MAAM,2BAA2B,CAAC;AAEhE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAmCG;AAEI,IAAM,yBAAyB,GAA/B,MAAM,yBAA0B,SAAQ,OAA6D;IAC1G;;;OAGG;IACH,KAAK,CAAC,MAAM,CAAC,M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AC,wBAAwB,CAAC,qBAAqB,EAAE,EAAE,EAAE,EAAE,qBAAqB,EAAE,KAAK,EAAE,CAAC;YAC5F,MAAM,CAAC,wBAAwB,CAAC,+BAA+B,EAAE,EAAE,EAAE,EAAE,qBAAqB,EAAE,KAAK,EAAE,CAAC;SACvG,CAAC,CAAC;QACH,MAAM,cAAc,GAAG,oBAAoB,IAAI,8BAA8B,CAAC;QAC9E,IAAI,CAAC,cAAc,EAAE,CAAC;YACpB,MAAM,IAAI,WAAW,CAAC,8BAA8B,EAAE,IAAI,CAAC,WAAW,CAAC,IAAI,CAAC,CAAC;QAC/E,CAAC;QACD,MAAM,WAAW,GAAG,cAAc,CAAC,iBAAiB,EAAE,CAAC,UAAU,CAAC,WAAW,CAAC;QAE9E,OAAO;YACL,YAAY,EAAE,OAAO,CAAC,SAAS;YAC/B,WAAW;SACZ,CAAC;IACJ,CAAC;CACF,CAAA;AApEY,yBAAyB;IADrC,MAAM,CAA4B,OAAO,EAAE,+BAA+B,CAAC;GAC/D,yBAAyB,CAoErC"}
@@ -1,8 +1,9 @@
1
1
  import { type Region } from '@quadnix/octo';
2
+ import { S3StorageCorsRuleSchema, S3StorageLifecycleRuleSchema } from '../../../resources/s3-storage/index.schema.js';
2
3
  /**
3
4
  * `AwsS3StorageServiceModuleSchema` is the input schema for the `AwsS3StorageServiceModule` module.
4
5
  * This schema defines the configuration for S3-based storage services including bucket naming,
5
- * region placement, and directory organization.
6
+ * region placement, access prefixes, CORS and lifecycle rules, and the local files to upload.
6
7
  *
7
8
  * @group Modules/Service/AwsS3StorageService
8
9
  *
@@ -11,6 +12,16 @@ import { type Region } from '@quadnix/octo';
11
12
  * @see {@link AwsS3StorageServiceModule} to learn more about the `AwsS3StorageServiceModule` module.
12
13
  */
13
14
  export declare class AwsS3StorageServiceModuleSchema {
15
+ /**
16
+ * Optional key prefixes within the S3 bucket, e.g. `uploads`, that other modules may be granted
17
+ * read or write access to. A prefix creates nothing in the bucket; each one publishes an anchor
18
+ * that a module such as `AwsServerModule` grants access through.
19
+ */
20
+ accessPrefixes?: string[] | undefined;
21
+ /**
22
+ * Blocks every public ACL and public policy on the bucket.
23
+ */
24
+ blockPublicAccess?: boolean | undefined;
14
25
  /**
15
26
  * The name of the S3 bucket to create.
16
27
  * This name must be globally unique across all AWS accounts and regions.
@@ -18,14 +29,49 @@ export declare class AwsS3StorageServiceModuleSchema {
18
29
  */
19
30
  bucketName: string;
20
31
  /**
21
- * The AWS region where the S3 bucket will be created.
22
- * The region must have AWS region anchors configured.
32
+ * Optional rules letting a page on another origin call the bucket from a browser, such as one
33
+ * uploading through a presigned URL, or reading a range of an object, which sends `Range`. Without
34
+ * rules, a browser refuses every cross-origin response from the bucket.
35
+ *
36
+ * Changing the rules updates the bucket in place.
37
+ */
38
+ corsRules?: S3StorageCorsRuleSchema[] | undefined;
39
+ /**
40
+ * Optional local directory path containing the files to upload.
41
+ * When set, the directory is synchronized to the bucket. When omitted, nothing is uploaded.
42
+ */
43
+ directoryPath?: string | null | undefined;
44
+ /**
45
+ * Optional filter function to exclude specific files from upload.
46
+ * This function receives a file path and returns true to include the file or false to exclude it.
47
+ * Useful for excluding development files, system files, or temporary files.
48
+ */
49
+ filter?: ((filePath: string) => boolean) | null | undefined;
50
+ /**
51
+ * Optional rules expiring the bucket's objects some days after each was written. A rule matches
52
+ * the objects under its `prefix` that carry every one of its `tags`, or the whole bucket with
53
+ * neither. Without rules, the bucket keeps every object until it is deleted.
54
+ *
55
+ * Changing the rules updates the bucket in place.
56
+ */
57
+ lifecycleRules?: S3StorageLifecycleRuleSchema[] | undefined;
58
+ /**
59
+ * The region the bucket is created in, as produced by any of the AWS region modules.
23
60
  */
24
61
  region: Region;
25
62
  /**
26
- * Optional array of directory paths to create within the S3 bucket.
27
- * These directories provide organization for stored objects and can be used
28
- * for permission management and access control.
63
+ * Optional subdirectory or specific file path within `directoryPath`.
64
+ * When specified, only this subdirectory or file will be uploaded instead of the entire directory,
65
+ * but the path leading up to this subdirectory or file will still be preserved.
66
+ *
67
+ * For example, if `subDirectoryOrFilePath` is `subdirectory/file.html`, only the file `file.html` will be uploaded,
68
+ * but the path `subdirectory/` will still be preserved. Its key in the bucket will be `subdirectory/file.html`.
69
+ */
70
+ subDirectoryOrFilePath?: string | null | undefined;
71
+ /**
72
+ * Optional transform function to modify file paths before upload.
73
+ * This function receives the original file path and returns the transformed path.
74
+ * Useful for renaming files, changing directory structures, or modifying extensions.
29
75
  */
30
- remoteDirectoryPaths?: string[] | undefined;
76
+ transform?: ((filePath: string) => string) | null | undefined;
31
77
  }
@@ -8,11 +8,11 @@ var __metadata = (this && this.__metadata) || function (k, v) {
8
8
  if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
9
9
  };
10
10
  import { RegionSchema, Schema, Validate } from '@quadnix/octo';
11
- import { AwsRegionAnchorSchema } from '../../../anchors/aws-region/aws-region.anchor.schema.js';
11
+ import { S3StorageCorsRuleSchema, S3StorageLifecycleRuleSchema } from '../../../resources/s3-storage/index.schema.js';
12
12
  /**
13
13
  * `AwsS3StorageServiceModuleSchema` is the input schema for the `AwsS3StorageServiceModule` module.
14
14
  * This schema defines the configuration for S3-based storage services including bucket naming,
15
- * region placement, and directory organization.
15
+ * region placement, access prefixes, CORS and lifecycle rules, and the local files to upload.
16
16
  *
17
17
  * @group Modules/Service/AwsS3StorageService
18
18
  *
@@ -22,6 +22,16 @@ import { AwsRegionAnchorSchema } from '../../../anchors/aws-region/aws-region.an
22
22
  */
23
23
  export class AwsS3StorageServiceModuleSchema {
24
24
  constructor() {
25
+ /**
26
+ * Optional key prefixes within the S3 bucket, e.g. `uploads`, that other modules may be granted
27
+ * read or write access to. A prefix creates nothing in the bucket; each one publishes an anchor
28
+ * that a module such as `AwsServerModule` grants access through.
29
+ */
30
+ this.accessPrefixes = Schema([]);
31
+ /**
32
+ * Blocks every public ACL and public policy on the bucket.
33
+ */
34
+ this.blockPublicAccess = Schema(true);
25
35
  /**
26
36
  * The name of the S3 bucket to create.
27
37
  * This name must be globally unique across all AWS accounts and regions.
@@ -29,27 +39,111 @@ export class AwsS3StorageServiceModuleSchema {
29
39
  */
30
40
  this.bucketName = Schema();
31
41
  /**
32
- * The AWS region where the S3 bucket will be created.
33
- * The region must have AWS region anchors configured.
42
+ * Optional rules letting a page on another origin call the bucket from a browser, such as one
43
+ * uploading through a presigned URL, or reading a range of an object, which sends `Range`. Without
44
+ * rules, a browser refuses every cross-origin response from the bucket.
45
+ *
46
+ * Changing the rules updates the bucket in place.
47
+ */
48
+ this.corsRules = Schema([]);
49
+ /**
50
+ * Optional local directory path containing the files to upload.
51
+ * When set, the directory is synchronized to the bucket. When omitted, nothing is uploaded.
52
+ */
53
+ this.directoryPath = Schema(null);
54
+ /**
55
+ * Optional filter function to exclude specific files from upload.
56
+ * This function receives a file path and returns true to include the file or false to exclude it.
57
+ * Useful for excluding development files, system files, or temporary files.
58
+ */
59
+ this.filter = Schema(null);
60
+ /**
61
+ * Optional rules expiring the bucket's objects some days after each was written. A rule matches
62
+ * the objects under its `prefix` that carry every one of its `tags`, or the whole bucket with
63
+ * neither. Without rules, the bucket keeps every object until it is deleted.
64
+ *
65
+ * Changing the rules updates the bucket in place.
66
+ */
67
+ this.lifecycleRules = Schema([]);
68
+ /**
69
+ * The region the bucket is created in, as produced by any of the AWS region modules.
34
70
  */
35
71
  this.region = Schema();
36
72
  /**
37
- * Optional array of directory paths to create within the S3 bucket.
38
- * These directories provide organization for stored objects and can be used
39
- * for permission management and access control.
73
+ * Optional subdirectory or specific file path within `directoryPath`.
74
+ * When specified, only this subdirectory or file will be uploaded instead of the entire directory,
75
+ * but the path leading up to this subdirectory or file will still be preserved.
76
+ *
77
+ * For example, if `subDirectoryOrFilePath` is `subdirectory/file.html`, only the file `file.html` will be uploaded,
78
+ * but the path `subdirectory/` will still be preserved. Its key in the bucket will be `subdirectory/file.html`.
40
79
  */
41
- this.remoteDirectoryPaths = Schema([]);
80
+ this.subDirectoryOrFilePath = Schema(null);
81
+ /**
82
+ * Optional transform function to modify file paths before upload.
83
+ * This function receives the original file path and returns the transformed path.
84
+ * Useful for renaming files, changing directory structures, or modifying extensions.
85
+ */
86
+ this.transform = Schema(null);
42
87
  }
43
88
  }
89
+ __decorate([
90
+ Validate({
91
+ destruct: (value) => value,
92
+ options: { minLength: 1 },
93
+ }),
94
+ __metadata("design:type", Object)
95
+ ], AwsS3StorageServiceModuleSchema.prototype, "accessPrefixes", void 0);
44
96
  __decorate([
45
97
  Validate({ options: { minLength: 1 } }),
46
98
  __metadata("design:type", Object)
47
99
  ], AwsS3StorageServiceModuleSchema.prototype, "bucketName", void 0);
100
+ __decorate([
101
+ Validate({
102
+ destruct: (value) => value,
103
+ options: { isSchema: { schema: S3StorageCorsRuleSchema } },
104
+ }),
105
+ __metadata("design:type", Object)
106
+ ], AwsS3StorageServiceModuleSchema.prototype, "corsRules", void 0);
107
+ __decorate([
108
+ Validate({
109
+ destruct: (value) => {
110
+ const subjects = [];
111
+ if (value !== null && value !== undefined) {
112
+ subjects.push(value);
113
+ }
114
+ return subjects;
115
+ },
116
+ options: { minLength: 1 },
117
+ }),
118
+ __metadata("design:type", Object)
119
+ ], AwsS3StorageServiceModuleSchema.prototype, "directoryPath", void 0);
120
+ __decorate([
121
+ Validate({
122
+ destruct: (value) => {
123
+ const subjects = [];
124
+ if (value) {
125
+ subjects.push(value);
126
+ }
127
+ return subjects;
128
+ },
129
+ options: {
130
+ custom: (value) => value.every((v) => typeof v === 'function'),
131
+ },
132
+ }),
133
+ __metadata("design:type", Object)
134
+ ], AwsS3StorageServiceModuleSchema.prototype, "filter", void 0);
135
+ __decorate([
136
+ Validate({
137
+ destruct: (value) => value,
138
+ options: { isSchema: { schema: S3StorageLifecycleRuleSchema } },
139
+ }),
140
+ __metadata("design:type", Object)
141
+ ], AwsS3StorageServiceModuleSchema.prototype, "lifecycleRules", void 0);
48
142
  __decorate([
49
143
  Validate([
50
144
  {
51
145
  options: {
52
- isModel: { anchors: [{ schema: AwsRegionAnchorSchema }], NODE_NAME: 'region' },
146
+ isModel: { NODE_NAME: 'region' },
53
147
  },
54
148
  },
55
149
  {
@@ -63,9 +157,30 @@ __decorate([
63
157
  ], AwsS3StorageServiceModuleSchema.prototype, "region", void 0);
64
158
  __decorate([
65
159
  Validate({
66
- destruct: (value) => value,
160
+ destruct: (value) => {
161
+ const subjects = [];
162
+ if (value) {
163
+ subjects.push(value);
164
+ }
165
+ return subjects;
166
+ },
67
167
  options: { minLength: 1 },
68
168
  }),
69
169
  __metadata("design:type", Object)
70
- ], AwsS3StorageServiceModuleSchema.prototype, "remoteDirectoryPaths", void 0);
170
+ ], AwsS3StorageServiceModuleSchema.prototype, "subDirectoryOrFilePath", void 0);
171
+ __decorate([
172
+ Validate({
173
+ destruct: (value) => {
174
+ const subjects = [];
175
+ if (value) {
176
+ subjects.push(value);
177
+ }
178
+ return subjects;
179
+ },
180
+ options: {
181
+ custom: (value) => value.every((v) => typeof v === 'function'),
182
+ },
183
+ }),
184
+ __metadata("design:type", Object)
185
+ ], AwsS3StorageServiceModuleSchema.prototype, "transform", void 0);
71
186
  //# sourceMappingURL=index.schema.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.schema.js","sourceRoot":"","sources":["../../../../src/modules/service/aws-s3-storage-service/index.schema.ts"],"names":[],"mappings":";;;;;;;;;AAAA,OAAO,EAAe,YAAY,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAC;AAC5E,OAAO,EAAE,qBAAqB,EAAE,MAAM,yDAAyD,CAAC;AAEhG;;;;;;;;;;GAUG;AACH,MAAM,OAAO,+BAA+B;IAA5C;QACE;;;;WAIG;QAEH,eAAU,GAAG,MAAM,EAAU,CAAC;QAE9B;;;WAGG;QAcH,WAAM,GAAG,MAAM,EAAU,CAAC;QAE1B;;;;WAIG;QAKH,yBAAoB,GAAI,MAAM,CAAW,EAAE,CAAC,CAAC;IAC/C,CAAC;CAAA;AA/BC;IADC,QAAQ,CAAC,EAAE,OAAO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ACvB,CAAC;YACD,OAAO,QAAQ,CAAC;QAClB,CAAC;QACD,OAAO,EAAE;YACP,MAAM,EAAE,CAAC,KAAuC,EAAW,EAAE,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,OAAO,CAAC,KAAK,UAAU,CAAC;SAC1G;KACF,CAAC;;kEAC+D"}
@@ -25,12 +25,16 @@ let AddAwsS3StorageServiceModelAction = class AddAwsS3StorageServiceModelAction
25
25
  */
26
26
  async handle(diff, actionInputs, actionOutputs) {
27
27
  const { bucketName } = diff.node;
28
+ const { blockPublicAccess, corsRules, lifecycleRules } = actionInputs.inputs;
28
29
  const { awsAccountId, awsRegionId } = actionInputs.metadata;
29
30
  // Create S3 Bucket.
30
31
  const s3Storage = new S3Storage(`bucket-${bucketName.replace(/[^\w-]/g, '-')}`, {
31
32
  awsAccountId,
32
33
  awsRegionId,
34
+ blockPublicAccess: blockPublicAccess ?? true,
33
35
  Bucket: bucketName,
36
+ corsRules: JSON.parse(JSON.stringify(corsRules ?? [])),
37
+ lifecycleRules: JSON.parse(JSON.stringify(lifecycleRules ?? [])),
34
38
  permissions: [],
35
39
  });
36
40
  actionOutputs[s3Storage.resourceId] = s3Storage;