@kensio/yulin 1.10.0 → 1.10.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (677) hide show
  1. package/dist/cli/watch/sim-watch-event-path.js +1 -1
  2. package/dist/cli/watch/sim-watch-restarts.js +1 -1
  3. package/dist/cli/watch/sim-watch-restarts.js.map +1 -1
  4. package/dist/cli/watch/sim-watch-watcher.js +3 -3
  5. package/dist/config/eslint/cffjs2.eslint.config.js +17 -98
  6. package/dist/config/eslint/cffjs2.eslint.config.js.map +1 -1
  7. package/dist/config/lint/cff-js2-lint-plugin.d.ts +16 -0
  8. package/dist/config/lint/cff-js2-lint-plugin.d.ts.map +1 -0
  9. package/dist/config/lint/cff-js2-lint-plugin.js +39 -0
  10. package/dist/config/lint/cff-js2-lint-plugin.js.map +1 -0
  11. package/dist/config/lint/cff-js2-lint-rules.d.ts +20 -0
  12. package/dist/config/lint/cff-js2-lint-rules.d.ts.map +1 -0
  13. package/dist/config/lint/cff-js2-lint-rules.js +53 -0
  14. package/dist/config/lint/cff-js2-lint-rules.js.map +1 -0
  15. package/dist/config/lint/cff-js2-lint.fixture.d.ts +39 -0
  16. package/dist/config/lint/cff-js2-lint.fixture.d.ts.map +1 -0
  17. package/dist/config/lint/cff-js2-lint.fixture.js +229 -0
  18. package/dist/config/lint/cff-js2-lint.fixture.js.map +1 -0
  19. package/dist/config/lint/cff-js2-oxlint-plugin.d.ts +9 -0
  20. package/dist/config/lint/cff-js2-oxlint-plugin.d.ts.map +1 -0
  21. package/dist/config/lint/cff-js2-oxlint-plugin.js +9 -0
  22. package/dist/config/lint/cff-js2-oxlint-plugin.js.map +1 -0
  23. package/dist/config/lint/cff-js2-restriction.d.ts +82 -0
  24. package/dist/config/lint/cff-js2-restriction.d.ts.map +1 -0
  25. package/dist/config/lint/cff-js2-restriction.js +85 -0
  26. package/dist/config/lint/cff-js2-restriction.js.map +1 -0
  27. package/dist/config/lint/cff-js2-unavailable-global.rule.d.ts +10 -0
  28. package/dist/config/lint/cff-js2-unavailable-global.rule.d.ts.map +1 -0
  29. package/dist/config/lint/cff-js2-unavailable-global.rule.js +42 -0
  30. package/dist/config/lint/cff-js2-unavailable-global.rule.js.map +1 -0
  31. package/dist/config/lint/index.d.ts +6 -0
  32. package/dist/config/lint/index.d.ts.map +1 -0
  33. package/dist/config/lint/index.js +5 -0
  34. package/dist/config/lint/index.js.map +1 -0
  35. package/dist/config/lint/lint-plugin.type.d.ts +82 -0
  36. package/dist/config/lint/lint-plugin.type.d.ts.map +1 -0
  37. package/dist/config/lint/lint-plugin.type.js +11 -0
  38. package/dist/config/lint/lint-plugin.type.js.map +1 -0
  39. package/dist/config/lint/repo-lint-plugin.d.ts +68 -0
  40. package/dist/config/lint/repo-lint-plugin.d.ts.map +1 -0
  41. package/dist/config/lint/repo-lint-plugin.js +64 -0
  42. package/dist/config/lint/repo-lint-plugin.js.map +1 -0
  43. package/dist/config/oxlint/cffjs2.oxlint.config.d.ts +26 -0
  44. package/dist/config/oxlint/cffjs2.oxlint.config.d.ts.map +1 -0
  45. package/dist/config/oxlint/cffjs2.oxlint.config.js +28 -0
  46. package/dist/config/oxlint/cffjs2.oxlint.config.js.map +1 -0
  47. package/dist/config/oxlint/cffjs2.oxlintrc.json +36 -0
  48. package/dist/config/oxlint/index.d.ts +2 -0
  49. package/dist/config/oxlint/index.d.ts.map +1 -0
  50. package/dist/config/oxlint/index.js +2 -0
  51. package/dist/config/oxlint/index.js.map +1 -0
  52. package/dist/sdk/module/sim-sdk-module-client-interceptor.js +1 -1
  53. package/dist/sdk/send-patch.js +1 -1
  54. package/dist/sdk/send-patch.js.map +1 -1
  55. package/dist/sdk/sim-sdk-interception.js +1 -1
  56. package/dist/sdk/sim-sdk-interception.js.map +1 -1
  57. package/dist/sdk/sim-sdk.js +1 -1
  58. package/dist/sdk/sim-sdk.js.map +1 -1
  59. package/dist/serve/http/live-reload/sim-live-reload-report.js +1 -1
  60. package/dist/serve/http/live-reload/sim-local-live-reload.d.ts.map +1 -1
  61. package/dist/serve/http/live-reload/sim-local-live-reload.js +2 -3
  62. package/dist/serve/http/live-reload/sim-local-live-reload.js.map +1 -1
  63. package/dist/serve/http/local-server/sim-aws-local-request-handler.js +1 -1
  64. package/dist/serve/http/local-server/sim-aws-local-request-handler.js.map +1 -1
  65. package/dist/service/acm/certificate/sim-acm-certificate.d.ts.map +1 -1
  66. package/dist/service/acm/certificate/sim-acm-certificate.js.map +1 -1
  67. package/dist/service/acm/certificate/sim-acm-domain-validation.d.ts.map +1 -1
  68. package/dist/service/acm/certificate/sim-acm-domain-validation.js.map +1 -1
  69. package/dist/service/acm/cfn/property/sim-cfn-acm-cert-properties.d.ts.map +1 -1
  70. package/dist/service/acm/cfn/property/sim-cfn-acm-cert-properties.js.map +1 -1
  71. package/dist/service/acm/cfn/validation/sim-cfn-acm-validation-records.js +1 -1
  72. package/dist/service/acm/command/describe-certificate/describe-certificate.command.d.ts.map +1 -1
  73. package/dist/service/acm/command/list-certificates/list-certificates.command.d.ts.map +1 -1
  74. package/dist/service/acm/command/request-certificate/request-certificate.command.d.ts.map +1 -1
  75. package/dist/service/acm/validation/sim-acm-certificate-validation.d.ts.map +1 -1
  76. package/dist/service/acm/validation/sim-acm-certificate-validation.js +3 -4
  77. package/dist/service/acm/validation/sim-acm-certificate-validation.js.map +1 -1
  78. package/dist/service/apigatewayv2/command/authorizer/sim-http-api-authorizer-options.d.ts.map +1 -1
  79. package/dist/service/apigatewayv2/command/authorizer/sim-http-api-authorizer-options.js.map +1 -1
  80. package/dist/service/aws/caller/sim-aws-caller-resolver.d.ts.map +1 -1
  81. package/dist/service/aws/caller/sim-aws-caller-resolver.js +2 -3
  82. package/dist/service/aws/caller/sim-aws-caller-resolver.js.map +1 -1
  83. package/dist/service/aws/caller/sim-aws-caller.d.ts.map +1 -1
  84. package/dist/service/aws/factory/account-service-cache-key.d.ts.map +1 -1
  85. package/dist/service/aws/factory/account-service-cache-key.js.map +1 -1
  86. package/dist/service/aws/factory/sim-aws-account-service-cache.js +1 -1
  87. package/dist/service/aws/factory/sim-aws-account-service-cache.js.map +1 -1
  88. package/dist/service/cloudformation/bind/validate/sim-cfn-exec-binding-finder.d.ts.map +1 -1
  89. package/dist/service/cloudformation/bind/validate/sim-cfn-exec-binding-finder.js +1 -1
  90. package/dist/service/cloudformation/bind/validate/sim-cfn-exec-binding-finder.js.map +1 -1
  91. package/dist/service/cloudformation/bind/validate/sim-cfn-exec-binding-matcher.js +2 -2
  92. package/dist/service/cloudformation/cdk/assets/sim-cdk-asset-bytes.js +3 -3
  93. package/dist/service/cloudformation/cdk/assets/sim-cdk-assets-publisher.js +1 -1
  94. package/dist/service/cloudformation/cdk/provider/sim-cdk-provider-scaffolding-template.factory.d.ts +40 -0
  95. package/dist/service/cloudformation/cdk/provider/sim-cdk-provider-scaffolding-template.factory.d.ts.map +1 -0
  96. package/dist/service/cloudformation/cdk/provider/sim-cdk-provider-scaffolding-template.factory.js +107 -0
  97. package/dist/service/cloudformation/cdk/provider/sim-cdk-provider-scaffolding-template.factory.js.map +1 -0
  98. package/dist/service/cloudformation/cdk/provider/sim-cdk-provider-scaffolding.d.ts +66 -0
  99. package/dist/service/cloudformation/cdk/provider/sim-cdk-provider-scaffolding.d.ts.map +1 -0
  100. package/dist/service/cloudformation/cdk/provider/sim-cdk-provider-scaffolding.js +133 -0
  101. package/dist/service/cloudformation/cdk/provider/sim-cdk-provider-scaffolding.js.map +1 -0
  102. package/dist/service/cloudformation/cdk/s3/bucket-deployment/copy/sim-cdk-bucket-deploy-copier.d.ts +6 -1
  103. package/dist/service/cloudformation/cdk/s3/bucket-deployment/copy/sim-cdk-bucket-deploy-copier.d.ts.map +1 -1
  104. package/dist/service/cloudformation/cdk/s3/bucket-deployment/copy/sim-cdk-bucket-deploy-copier.js +7 -1
  105. package/dist/service/cloudformation/cdk/s3/bucket-deployment/copy/sim-cdk-bucket-deploy-copier.js.map +1 -1
  106. package/dist/service/cloudformation/cdk/s3/bucket-deployment/copy/sim-cdk-bucket-deploy-file.js +1 -1
  107. package/dist/service/cloudformation/cdk/s3/bucket-deployment/copy/sim-cdk-bucket-deploy-files.js +2 -2
  108. package/dist/service/cloudformation/cdk/s3/bucket-deployment/destination/sim-cdk-bucket-deploy-destination.d.ts +14 -0
  109. package/dist/service/cloudformation/cdk/s3/bucket-deployment/destination/sim-cdk-bucket-deploy-destination.d.ts.map +1 -0
  110. package/dist/service/cloudformation/cdk/s3/bucket-deployment/destination/sim-cdk-bucket-deploy-destination.js +20 -0
  111. package/dist/service/cloudformation/cdk/s3/bucket-deployment/destination/sim-cdk-bucket-deploy-destination.js.map +1 -0
  112. package/dist/service/cloudformation/cdk/s3/bucket-deployment/filter/sim-cdk-bucket-deploy-filter.js +7 -1
  113. package/dist/service/cloudformation/cdk/s3/bucket-deployment/filter/sim-cdk-bucket-deploy-filter.js.map +1 -1
  114. package/dist/service/cloudformation/cdk/s3/bucket-deployment/metadata/sim-cdk-bucket-deploy-metadata.d.ts +58 -0
  115. package/dist/service/cloudformation/cdk/s3/bucket-deployment/metadata/sim-cdk-bucket-deploy-metadata.d.ts.map +1 -0
  116. package/dist/service/cloudformation/cdk/s3/bucket-deployment/metadata/sim-cdk-bucket-deploy-metadata.js +65 -0
  117. package/dist/service/cloudformation/cdk/s3/bucket-deployment/metadata/sim-cdk-bucket-deploy-metadata.js.map +1 -0
  118. package/dist/service/cloudformation/cdk/s3/bucket-deployment/property/sim-cdk-bucket-deploy-values.js +1 -1
  119. package/dist/service/cloudformation/cdk/s3/bucket-deployment/sim-cdk-bucket-deployment.d.ts.map +1 -1
  120. package/dist/service/cloudformation/cdk/s3/bucket-deployment/sim-cdk-bucket-deployment.js +16 -7
  121. package/dist/service/cloudformation/cdk/s3/bucket-deployment/sim-cdk-bucket-deployment.js.map +1 -1
  122. package/dist/service/cloudformation/cdk/s3/bucket-deployment/source/sim-cdk-bucket-deploy-source.d.ts.map +1 -1
  123. package/dist/service/cloudformation/cdk/s3/bucket-deployment/source/sim-cdk-bucket-deploy-source.js +1 -0
  124. package/dist/service/cloudformation/cdk/s3/bucket-deployment/source/sim-cdk-bucket-deploy-source.js.map +1 -1
  125. package/dist/service/cloudformation/cdk/s3/bucket-notifications/property/sim-cdk-bucket-notification-properties.js +1 -1
  126. package/dist/service/cloudformation/cdk/s3/bucket-notifications/sim-cdk-bucket-notifications.d.ts +4 -2
  127. package/dist/service/cloudformation/cdk/s3/bucket-notifications/sim-cdk-bucket-notifications.d.ts.map +1 -1
  128. package/dist/service/cloudformation/cdk/s3/bucket-notifications/sim-cdk-bucket-notifications.js +4 -2
  129. package/dist/service/cloudformation/cdk/s3/bucket-notifications/sim-cdk-bucket-notifications.js.map +1 -1
  130. package/dist/service/cloudformation/cdk/sim-cdk-out-context.js +1 -1
  131. package/dist/service/cloudformation/command/create-stack/create-stack.handler.d.ts.map +1 -1
  132. package/dist/service/cloudformation/command/create-stack/create-stack.handler.js.map +1 -1
  133. package/dist/service/cloudformation/command/describe-stacks/describe-stacks.handler.d.ts.map +1 -1
  134. package/dist/service/cloudformation/command/describe-stacks/describe-stacks.handler.js.map +1 -1
  135. package/dist/service/cloudformation/deploy/sim-cfn-template-file-loader.js +1 -1
  136. package/dist/service/cloudformation/resource/cfn/cloudfront/sim-cloudfront-cfn-value-adapter.d.ts.map +1 -1
  137. package/dist/service/cloudformation/resource/cfn/cloudfront/sim-cloudfront-cfn-value-adapter.js +8 -0
  138. package/dist/service/cloudformation/resource/cfn/cloudfront/sim-cloudfront-cfn-value-adapter.js.map +1 -1
  139. package/dist/service/cloudformation/resource/cfn/cloudfront/sim-cloudfront-oac-cfn.d.ts +25 -0
  140. package/dist/service/cloudformation/resource/cfn/cloudfront/sim-cloudfront-oac-cfn.d.ts.map +1 -0
  141. package/dist/service/cloudformation/resource/cfn/cloudfront/sim-cloudfront-oac-cfn.js +32 -0
  142. package/dist/service/cloudformation/resource/cfn/cloudfront/sim-cloudfront-oac-cfn.js.map +1 -0
  143. package/dist/service/cloudformation/resource/cfn/dynamodb/sim-dynamodb-table-cfn.d.ts.map +1 -1
  144. package/dist/service/cloudformation/resource/cfn/dynamodb/sim-dynamodb-table-cfn.js +4 -5
  145. package/dist/service/cloudformation/resource/cfn/dynamodb/sim-dynamodb-table-cfn.js.map +1 -1
  146. package/dist/service/cloudformation/resource/create/sim-cfn-resource-create-operation.d.ts +11 -0
  147. package/dist/service/cloudformation/resource/create/sim-cfn-resource-create-operation.d.ts.map +1 -1
  148. package/dist/service/cloudformation/resource/create/sim-cfn-resource-create-operation.js +20 -2
  149. package/dist/service/cloudformation/resource/create/sim-cfn-resource-create-operation.js.map +1 -1
  150. package/dist/service/cloudformation/resource/inert/sim-cfn-inert-resource-types.d.ts +20 -0
  151. package/dist/service/cloudformation/resource/inert/sim-cfn-inert-resource-types.d.ts.map +1 -0
  152. package/dist/service/cloudformation/resource/inert/sim-cfn-inert-resource-types.js +32 -0
  153. package/dist/service/cloudformation/resource/inert/sim-cfn-inert-resource-types.js.map +1 -0
  154. package/dist/service/cloudformation/resource/inert/sim-cfn-inert-resource.d.ts +19 -0
  155. package/dist/service/cloudformation/resource/inert/sim-cfn-inert-resource.d.ts.map +1 -0
  156. package/dist/service/cloudformation/resource/inert/sim-cfn-inert-resource.js +26 -0
  157. package/dist/service/cloudformation/resource/inert/sim-cfn-inert-resource.js.map +1 -0
  158. package/dist/service/cloudformation/resource/resolve/service/sim-cfn-service-resolver.d.ts.map +1 -1
  159. package/dist/service/cloudformation/resource/resolve/service/sim-cfn-service-resolver.js +2 -3
  160. package/dist/service/cloudformation/resource/resolve/service/sim-cfn-service-resolver.js.map +1 -1
  161. package/dist/service/cloudformation/resource/sim-cfn-resource.d.ts +15 -0
  162. package/dist/service/cloudformation/resource/sim-cfn-resource.d.ts.map +1 -1
  163. package/dist/service/cloudformation/resource/sim-cfn-resource.js +21 -0
  164. package/dist/service/cloudformation/resource/sim-cfn-resource.js.map +1 -1
  165. package/dist/service/cloudformation/resource/state/sim-cfn-resource-creation-state.d.ts +20 -0
  166. package/dist/service/cloudformation/resource/state/sim-cfn-resource-creation-state.d.ts.map +1 -1
  167. package/dist/service/cloudformation/resource/state/sim-cfn-resource-creation-state.js +41 -11
  168. package/dist/service/cloudformation/resource/state/sim-cfn-resource-creation-state.js.map +1 -1
  169. package/dist/service/cloudformation/stack/deploy/sim-cfn-stack-resource-batch-creator.d.ts.map +1 -1
  170. package/dist/service/cloudformation/stack/deploy/sim-cfn-stack-resource-batch-creator.js.map +1 -1
  171. package/dist/service/cloudformation/stack/deploy/sim-cfn-stack-resource-creator.js +1 -1
  172. package/dist/service/cloudformation/stack/report/sim-cfn-stack-resource-report.d.ts +9 -0
  173. package/dist/service/cloudformation/stack/report/sim-cfn-stack-resource-report.d.ts.map +1 -1
  174. package/dist/service/cloudformation/stack/report/sim-cfn-stack-resource-report.js +11 -0
  175. package/dist/service/cloudformation/stack/report/sim-cfn-stack-resource-report.js.map +1 -1
  176. package/dist/service/cloudformation/stack/sim-cfn-stack-resource-operations.d.ts.map +1 -1
  177. package/dist/service/cloudformation/stack/sim-cfn-stack-resource-operations.js.map +1 -1
  178. package/dist/service/cloudformation/stack/sim-cfn-stack.d.ts +2 -0
  179. package/dist/service/cloudformation/stack/sim-cfn-stack.d.ts.map +1 -1
  180. package/dist/service/cloudformation/stack/sim-cfn-stack.js +4 -0
  181. package/dist/service/cloudformation/stack/sim-cfn-stack.js.map +1 -1
  182. package/dist/service/cloudformation/stack/teardown/sim-cfn-stack-resource-deleter.js +1 -1
  183. package/dist/service/cloudformation/template/node/fn/find-in-map/sim-cfn-fn-find-in-map.js +2 -2
  184. package/dist/service/cloudformation/template/node/fn/if/sim-cfn-fn-if.d.ts.map +1 -1
  185. package/dist/service/cloudformation/template/node/fn/if/sim-cfn-fn-if.js +3 -4
  186. package/dist/service/cloudformation/template/node/fn/if/sim-cfn-fn-if.js.map +1 -1
  187. package/dist/service/cloudformation/template/node/fn/select/sim-cfn-fn-select.js +1 -1
  188. package/dist/service/cloudformation/watch/sim-cfn-template-file-events.js +1 -1
  189. package/dist/service/cloudformation/watch/sim-cfn-template-watch-report.js +2 -2
  190. package/dist/service/cloudfront/cff/adapter/sim-cff-request-metadata-adapter.js +3 -3
  191. package/dist/service/cloudfront/cff/function-code-module/cff-code-module-file.js +1 -1
  192. package/dist/service/cloudfront/cff/sim-cloudfront-function.d.ts.map +1 -1
  193. package/dist/service/cloudfront/cff/sim-cloudfront-function.js.map +1 -1
  194. package/dist/service/cloudfront/cfn/cff/sim-cfn-cff-create-input-builder.d.ts.map +1 -1
  195. package/dist/service/cloudfront/cfn/cff/sim-cfn-cff-create-input-builder.js.map +1 -1
  196. package/dist/service/cloudfront/cfn/distro/sim-cfn-cf-distro-config-validator.d.ts.map +1 -1
  197. package/dist/service/cloudfront/cfn/distro/sim-cfn-cf-distro-config-validator.js.map +1 -1
  198. package/dist/service/cloudfront/cfn/distro/sim-cfn-cf-distro-deleter.d.ts.map +1 -1
  199. package/dist/service/cloudfront/cfn/distro/sim-cfn-cf-distro-deleter.js.map +1 -1
  200. package/dist/service/cloudfront/cfn/origin-access-control/sim-cfn-cf-oac-config.d.ts +39 -0
  201. package/dist/service/cloudfront/cfn/origin-access-control/sim-cfn-cf-oac-config.d.ts.map +1 -0
  202. package/dist/service/cloudfront/cfn/origin-access-control/sim-cfn-cf-oac-config.js +97 -0
  203. package/dist/service/cloudfront/cfn/origin-access-control/sim-cfn-cf-oac-config.js.map +1 -0
  204. package/dist/service/cloudfront/cfn/origin-access-control/sim-cfn-cf-oac-creator.d.ts +25 -0
  205. package/dist/service/cloudfront/cfn/origin-access-control/sim-cfn-cf-oac-creator.d.ts.map +1 -0
  206. package/dist/service/cloudfront/cfn/origin-access-control/sim-cfn-cf-oac-creator.js +33 -0
  207. package/dist/service/cloudfront/cfn/origin-access-control/sim-cfn-cf-oac-creator.js.map +1 -0
  208. package/dist/service/cloudfront/cfn/response-headers-policy/sim-cfn-cf-rh-policy-config.js +2 -2
  209. package/dist/service/cloudfront/cfn/response-headers-policy/sim-cfn-cf-rh-policy-creator.d.ts.map +1 -1
  210. package/dist/service/cloudfront/cfn/response-headers-policy/sim-cfn-cf-rh-policy-creator.js.map +1 -1
  211. package/dist/service/cloudfront/cfn/sim-cfn-cloudfront-resource-factory.d.ts +1 -0
  212. package/dist/service/cloudfront/cfn/sim-cfn-cloudfront-resource-factory.d.ts.map +1 -1
  213. package/dist/service/cloudfront/cfn/sim-cfn-cloudfront-resource-factory.js +12 -0
  214. package/dist/service/cloudfront/cfn/sim-cfn-cloudfront-resource-factory.js.map +1 -1
  215. package/dist/service/cloudfront/command/create-distribution/create-distribution.command.d.ts +8 -1
  216. package/dist/service/cloudfront/command/create-distribution/create-distribution.command.d.ts.map +1 -1
  217. package/dist/service/cloudfront/command/create-distribution/create-distribution.handler.d.ts +2 -0
  218. package/dist/service/cloudfront/command/create-distribution/create-distribution.handler.d.ts.map +1 -1
  219. package/dist/service/cloudfront/command/create-distribution/create-distribution.handler.js.map +1 -1
  220. package/dist/service/cloudfront/command/create-distribution/sim-cf-distro-config-normalizer.d.ts.map +1 -1
  221. package/dist/service/cloudfront/command/create-distribution/sim-cf-distro-config-normalizer.js.map +1 -1
  222. package/dist/service/cloudfront/command/update-distribution/update-distribution.handler.d.ts +2 -0
  223. package/dist/service/cloudfront/command/update-distribution/update-distribution.handler.d.ts.map +1 -1
  224. package/dist/service/cloudfront/command/update-distribution/update-distribution.handler.js.map +1 -1
  225. package/dist/service/cloudfront/distribution/configurator/sim-cf-distribution-configurator.factory.d.ts +2 -0
  226. package/dist/service/cloudfront/distribution/configurator/sim-cf-distribution-configurator.factory.d.ts.map +1 -1
  227. package/dist/service/cloudfront/distribution/configurator/sim-cf-distribution-configurator.factory.js +1 -1
  228. package/dist/service/cloudfront/distribution/configurator/sim-cf-distribution-configurator.factory.js.map +1 -1
  229. package/dist/service/cloudfront/distribution/configurator/sim-cff-associations-configure.d.ts.map +1 -1
  230. package/dist/service/cloudfront/distribution/configurator/sim-cff-associations-configure.js.map +1 -1
  231. package/dist/service/cloudfront/distribution/configurator/sim-cloud-front-behavior-configurator.js.map +1 -1
  232. package/dist/service/cloudfront/distribution/configurator/sim-cloud-front-origin-configurator.d.ts +19 -1
  233. package/dist/service/cloudfront/distribution/configurator/sim-cloud-front-origin-configurator.d.ts.map +1 -1
  234. package/dist/service/cloudfront/distribution/configurator/sim-cloud-front-origin-configurator.js +51 -4
  235. package/dist/service/cloudfront/distribution/configurator/sim-cloud-front-origin-configurator.js.map +1 -1
  236. package/dist/service/cloudfront/distribution/sim-cf-distribution-reconfigurer.d.ts +2 -0
  237. package/dist/service/cloudfront/distribution/sim-cf-distribution-reconfigurer.d.ts.map +1 -1
  238. package/dist/service/cloudfront/distribution/sim-cf-distribution-reconfigurer.js.map +1 -1
  239. package/dist/service/cloudfront/error/sim-cloudfront.error.d.ts +20 -0
  240. package/dist/service/cloudfront/error/sim-cloudfront.error.d.ts.map +1 -1
  241. package/dist/service/cloudfront/error/sim-cloudfront.error.js +24 -0
  242. package/dist/service/cloudfront/error/sim-cloudfront.error.js.map +1 -1
  243. package/dist/service/cloudfront/origin/s3/sim-cf-s3-origin-access-identity.d.ts +14 -0
  244. package/dist/service/cloudfront/origin/s3/sim-cf-s3-origin-access-identity.d.ts.map +1 -0
  245. package/dist/service/cloudfront/origin/s3/sim-cf-s3-origin-access-identity.js +19 -0
  246. package/dist/service/cloudfront/origin/s3/sim-cf-s3-origin-access-identity.js.map +1 -0
  247. package/dist/service/cloudfront/origin/s3/sim-cf-s3-origin-bucket.d.ts +14 -0
  248. package/dist/service/cloudfront/origin/s3/sim-cf-s3-origin-bucket.d.ts.map +1 -0
  249. package/dist/service/cloudfront/origin/s3/sim-cf-s3-origin-bucket.js +2 -0
  250. package/dist/service/cloudfront/origin/s3/sim-cf-s3-origin-bucket.js.map +1 -0
  251. package/dist/service/cloudfront/origin/s3/sim-cf-s3-origin-object-key.d.ts +17 -0
  252. package/dist/service/cloudfront/origin/s3/sim-cf-s3-origin-object-key.d.ts.map +1 -0
  253. package/dist/service/cloudfront/origin/s3/sim-cf-s3-origin-object-key.js +23 -0
  254. package/dist/service/cloudfront/origin/s3/sim-cf-s3-origin-object-key.js.map +1 -0
  255. package/dist/service/cloudfront/origin/s3/sim-cf-s3-origin-object-loader.d.ts +31 -0
  256. package/dist/service/cloudfront/origin/s3/sim-cf-s3-origin-object-loader.d.ts.map +1 -0
  257. package/dist/service/cloudfront/origin/s3/sim-cf-s3-origin-object-loader.js +54 -0
  258. package/dist/service/cloudfront/origin/s3/sim-cf-s3-origin-object-loader.js.map +1 -0
  259. package/dist/service/cloudfront/origin/s3/sim-cf-s3-origin-resolver-factory.d.ts +11 -2
  260. package/dist/service/cloudfront/origin/s3/sim-cf-s3-origin-resolver-factory.d.ts.map +1 -1
  261. package/dist/service/cloudfront/origin/s3/sim-cf-s3-origin-resolver-factory.js +19 -6
  262. package/dist/service/cloudfront/origin/s3/sim-cf-s3-origin-resolver-factory.js.map +1 -1
  263. package/dist/service/cloudfront/origin/s3/sim-cf-s3-origin-responses.d.ts +32 -0
  264. package/dist/service/cloudfront/origin/s3/sim-cf-s3-origin-responses.d.ts.map +1 -0
  265. package/dist/service/cloudfront/origin/s3/sim-cf-s3-origin-responses.js +51 -0
  266. package/dist/service/cloudfront/origin/s3/sim-cf-s3-origin-responses.js.map +1 -0
  267. package/dist/service/cloudfront/origin/s3/sim-cf-s3-origin-signer.d.ts +26 -0
  268. package/dist/service/cloudfront/origin/s3/sim-cf-s3-origin-signer.d.ts.map +1 -0
  269. package/dist/service/cloudfront/origin/s3/sim-cf-s3-origin-signer.js +36 -0
  270. package/dist/service/cloudfront/origin/s3/sim-cf-s3-origin-signer.js.map +1 -0
  271. package/dist/service/cloudfront/origin/s3/sim-cloudfront-s3-origin.d.ts +25 -9
  272. package/dist/service/cloudfront/origin/s3/sim-cloudfront-s3-origin.d.ts.map +1 -1
  273. package/dist/service/cloudfront/origin/s3/sim-cloudfront-s3-origin.js +40 -48
  274. package/dist/service/cloudfront/origin/s3/sim-cloudfront-s3-origin.js.map +1 -1
  275. package/dist/service/cloudfront/origin-access-control/sim-cf-origin-access-control-registry.d.ts +28 -0
  276. package/dist/service/cloudfront/origin-access-control/sim-cf-origin-access-control-registry.d.ts.map +1 -0
  277. package/dist/service/cloudfront/origin-access-control/sim-cf-origin-access-control-registry.js +41 -0
  278. package/dist/service/cloudfront/origin-access-control/sim-cf-origin-access-control-registry.js.map +1 -0
  279. package/dist/service/cloudfront/origin-access-control/sim-cf-origin-access-control.d.ts +61 -0
  280. package/dist/service/cloudfront/origin-access-control/sim-cf-origin-access-control.d.ts.map +1 -0
  281. package/dist/service/cloudfront/origin-access-control/sim-cf-origin-access-control.js +53 -0
  282. package/dist/service/cloudfront/origin-access-control/sim-cf-origin-access-control.js.map +1 -0
  283. package/dist/service/cloudfront/resolver/sim-cloudfront-path-pattern.d.ts +10 -0
  284. package/dist/service/cloudfront/resolver/sim-cloudfront-path-pattern.d.ts.map +1 -1
  285. package/dist/service/cloudfront/resolver/sim-cloudfront-path-pattern.js +22 -2
  286. package/dist/service/cloudfront/resolver/sim-cloudfront-path-pattern.js.map +1 -1
  287. package/dist/service/cloudfront/sim-cloudfront-commands.d.ts +3 -0
  288. package/dist/service/cloudfront/sim-cloudfront-commands.d.ts.map +1 -1
  289. package/dist/service/cloudfront/sim-cloudfront-commands.js +3 -0
  290. package/dist/service/cloudfront/sim-cloudfront-commands.js.map +1 -1
  291. package/dist/service/cloudfront/sim-cloudfront-service-principal.d.ts +9 -0
  292. package/dist/service/cloudfront/sim-cloudfront-service-principal.d.ts.map +1 -0
  293. package/dist/service/cloudfront/sim-cloudfront-service-principal.js +9 -0
  294. package/dist/service/cloudfront/sim-cloudfront-service-principal.js.map +1 -0
  295. package/dist/service/cloudfront/sim-cloudfront.d.ts +19 -0
  296. package/dist/service/cloudfront/sim-cloudfront.d.ts.map +1 -1
  297. package/dist/service/cloudfront/sim-cloudfront.js +26 -0
  298. package/dist/service/cloudfront/sim-cloudfront.js.map +1 -1
  299. package/dist/service/cognito/command/auth/auth.command.d.ts.map +1 -1
  300. package/dist/service/cognito/command/auth/sim-cognito-new-password-challenge.d.ts.map +1 -1
  301. package/dist/service/cognito/command/auth/sim-cognito-new-password-challenge.js +0 -1
  302. package/dist/service/cognito/command/auth/sim-cognito-new-password-challenge.js.map +1 -1
  303. package/dist/service/cognito/command/client/list-user-pool-clients.command.d.ts.map +1 -1
  304. package/dist/service/cognito/command/user-pool/user-pool.command.d.ts.map +1 -1
  305. package/dist/service/cognito/serve/sim-cognito-openid-configuration.d.ts.map +1 -1
  306. package/dist/service/cognito/serve/sim-cognito-openid-configuration.js.map +1 -1
  307. package/dist/service/cognito/user-pool/auth/sim-cognito-secret-hash.js +1 -1
  308. package/dist/service/cognito/user-pool/client/sim-cognito-token-lifetime.d.ts.map +1 -1
  309. package/dist/service/cognito/user-pool/client/sim-cognito-token-lifetime.js.map +1 -1
  310. package/dist/service/cognito/user-pool/message/sim-cognito-message-occasion.d.ts.map +1 -1
  311. package/dist/service/cognito/user-pool/message/sim-cognito-verification-messages.d.ts.map +1 -1
  312. package/dist/service/cognito/user-pool/message/sim-cognito-verification-messages.js.map +1 -1
  313. package/dist/service/cognito/user-pool/sim-cognito-user-pool-settings.d.ts.map +1 -1
  314. package/dist/service/cognito/user-pool/sim-cognito-user-pool-settings.js.map +1 -1
  315. package/dist/service/cognito/user-pool/token/sim-cognito-access-token.d.ts.map +1 -1
  316. package/dist/service/cognito/user-pool/token/sim-cognito-access-token.js +0 -2
  317. package/dist/service/cognito/user-pool/token/sim-cognito-access-token.js.map +1 -1
  318. package/dist/service/cognito/user-pool/token/sim-cognito-group-override.js +1 -1
  319. package/dist/service/cognito/user-pool/token/sim-cognito-id-token.d.ts.map +1 -1
  320. package/dist/service/cognito/user-pool/token/sim-cognito-id-token.js +0 -2
  321. package/dist/service/cognito/user-pool/token/sim-cognito-id-token.js.map +1 -1
  322. package/dist/service/cognito/user-pool/token/sim-cognito-token-claims.d.ts.map +1 -1
  323. package/dist/service/cognito/user-pool/token/sim-cognito-token-claims.js.map +1 -1
  324. package/dist/service/cognito/user-pool/trigger/sim-aws-cognito-trigger-functions.d.ts.map +1 -1
  325. package/dist/service/cognito/user-pool/trigger/sim-aws-cognito-trigger-functions.js +1 -0
  326. package/dist/service/cognito/user-pool/trigger/sim-aws-cognito-trigger-functions.js.map +1 -1
  327. package/dist/service/cognito/user-pool/user/sim-cognito-user-status.d.ts.map +1 -1
  328. package/dist/service/cognito/user-pool/user/sim-cognito-user-status.js.map +1 -1
  329. package/dist/service/dynamodb/cfn/table/sim-cfn-dynamodb-table-properties.d.ts.map +1 -1
  330. package/dist/service/dynamodb/cfn/table/sim-cfn-dynamodb-table-properties.js.map +1 -1
  331. package/dist/service/dynamodb/command/batch/batch.command.d.ts.map +1 -1
  332. package/dist/service/dynamodb/command/batch/sim-dynamodb-batch-reads.d.ts.map +1 -1
  333. package/dist/service/dynamodb/command/batch/sim-dynamodb-batch-reads.js.map +1 -1
  334. package/dist/service/dynamodb/command/batch/sim-dynamodb-batch-writes.d.ts.map +1 -1
  335. package/dist/service/dynamodb/command/batch/sim-dynamodb-batch-writes.js.map +1 -1
  336. package/dist/service/dynamodb/command/item/item.command.d.ts.map +1 -1
  337. package/dist/service/dynamodb/command/item/item.types.d.ts.map +1 -1
  338. package/dist/service/dynamodb/command/item/sim-dynamodb-condition-check.d.ts.map +1 -1
  339. package/dist/service/dynamodb/command/item/sim-dynamodb-condition-check.js.map +1 -1
  340. package/dist/service/dynamodb/command/item/sim-dynamodb-item-page.d.ts.map +1 -1
  341. package/dist/service/dynamodb/command/item/sim-dynamodb-item-page.js.map +1 -1
  342. package/dist/service/dynamodb/command/item/sim-dynamodb-unsimulated-item-write-input.d.ts.map +1 -1
  343. package/dist/service/dynamodb/command/item/sim-dynamodb-unsimulated-item-write-input.js.map +1 -1
  344. package/dist/service/dynamodb/command/query/query.command.d.ts.map +1 -1
  345. package/dist/service/dynamodb/command/query/sim-dynamodb-query-start-key.d.ts.map +1 -1
  346. package/dist/service/dynamodb/command/query/sim-dynamodb-query-start-key.js.map +1 -1
  347. package/dist/service/dynamodb/command/read/sim-dynamodb-read-answer.d.ts.map +1 -1
  348. package/dist/service/dynamodb/command/read/sim-dynamodb-read-answer.js.map +1 -1
  349. package/dist/service/dynamodb/command/scan/scan.command.d.ts.map +1 -1
  350. package/dist/service/dynamodb/command/scan/sim-dynamodb-scan-start-key.d.ts.map +1 -1
  351. package/dist/service/dynamodb/command/scan/sim-dynamodb-scan-start-key.js.map +1 -1
  352. package/dist/service/dynamodb/command/stream/stream.types.d.ts.map +1 -1
  353. package/dist/service/dynamodb/command/table/table.command.d.ts.map +1 -1
  354. package/dist/service/dynamodb/command/table/table.types.d.ts.map +1 -1
  355. package/dist/service/dynamodb/command/time-to-live/time-to-live.command.d.ts.map +1 -1
  356. package/dist/service/dynamodb/command/time-to-live/time-to-live.types.d.ts.map +1 -1
  357. package/dist/service/dynamodb/command/transact/transact.command.d.ts.map +1 -1
  358. package/dist/service/dynamodb/document/sim-dynamodb-document-path.js +2 -2
  359. package/dist/service/dynamodb/error/dynamodb.error.d.ts.map +1 -1
  360. package/dist/service/dynamodb/error/dynamodb.error.js.map +1 -1
  361. package/dist/service/dynamodb/expression/sim-dynamodb-document-path.d.ts.map +1 -1
  362. package/dist/service/dynamodb/expression/sim-dynamodb-document-path.js.map +1 -1
  363. package/dist/service/dynamodb/expression/sim-dynamodb-expression-parameters.d.ts.map +1 -1
  364. package/dist/service/dynamodb/expression/sim-dynamodb-expression-parameters.js.map +1 -1
  365. package/dist/service/dynamodb/expression/sim-dynamodb-expression-token.d.ts.map +1 -1
  366. package/dist/service/dynamodb/expression/update/sim-dynamodb-update-erase.js +1 -1
  367. package/dist/service/dynamodb/expression/update/sim-dynamodb-update-write.js +1 -1
  368. package/dist/service/dynamodb/item/sim-dynamodb-number.js +1 -1
  369. package/dist/service/dynamodb/secondary-index/sim-dynamodb-local-secondary-indexes.d.ts.map +1 -1
  370. package/dist/service/dynamodb/secondary-index/sim-dynamodb-local-secondary-indexes.js.map +1 -1
  371. package/dist/service/dynamodb/secondary-index/sim-dynamodb-secondary-indexes.d.ts.map +1 -1
  372. package/dist/service/dynamodb/secondary-index/sim-dynamodb-secondary-indexes.js.map +1 -1
  373. package/dist/service/dynamodb/stream/sim-dynamodb-stream.types.d.ts.map +1 -1
  374. package/dist/service/dynamodb/stream/sim-dynamodb-streamed-orders.factory.js +1 -1
  375. package/dist/service/dynamodb/table/sim-dynamodb-item-key.d.ts.map +1 -1
  376. package/dist/service/dynamodb/table/sim-dynamodb-item-key.js.map +1 -1
  377. package/dist/service/iam/authorize/context/sim-iam-auth-z-context-builder.d.ts.map +1 -1
  378. package/dist/service/iam/authorize/context/sim-iam-auth-z-context-builder.js.map +1 -1
  379. package/dist/service/iam/authorize/sim-iam-wildcard.js +1 -1
  380. package/dist/service/iam/cfn/policy/sim-cfn-iam-policy-creator.js +1 -1
  381. package/dist/service/iam/command/policy/create-policy/create-policy-record-factory.d.ts.map +1 -1
  382. package/dist/service/iam/command/policy/create-policy/create-policy-record-factory.js.map +1 -1
  383. package/dist/service/iam/command/policy/create-policy/create-policy.command.d.ts.map +1 -1
  384. package/dist/service/iam/command/policy/put-role-policy/put-role-policy.command.d.ts.map +1 -1
  385. package/dist/service/iam/command/policy/put-user-policy/put-user-policy.command.d.ts.map +1 -1
  386. package/dist/service/iam/command/role/create-role/create-role-record-factory.d.ts.map +1 -1
  387. package/dist/service/iam/command/role/create-role/create-role-record-factory.js.map +1 -1
  388. package/dist/service/iam/credential/session/sim-iam-session-manager.d.ts.map +1 -1
  389. package/dist/service/iam/credential/session/sim-iam-session-manager.js +2 -4
  390. package/dist/service/iam/credential/session/sim-iam-session-manager.js.map +1 -1
  391. package/dist/service/iam/policy/sim-iam-pol-document-statements.js +1 -1
  392. package/dist/service/iam/policy/sim-iam-pol-document-statements.js.map +1 -1
  393. package/dist/service/iam/policy/sim-iam-policy.d.ts.map +1 -1
  394. package/dist/service/iam/principal/sim-iam-principal.d.ts.map +1 -1
  395. package/dist/service/iam/registry/sim-iam-registry.d.ts.map +1 -1
  396. package/dist/service/iam/registry/sim-iam-registry.js +2 -3
  397. package/dist/service/iam/registry/sim-iam-registry.js.map +1 -1
  398. package/dist/service/iam/request/error/sim-aws-request-auth.error.d.ts.map +1 -1
  399. package/dist/service/iam/request/error/sim-aws-request-auth.error.js.map +1 -1
  400. package/dist/service/iam/role/arn/sim-iam-role-arn.js.map +1 -1
  401. package/dist/service/iam/role/sim-iam-role.d.ts.map +1 -1
  402. package/dist/service/iam/user/arn/sim-iam-user-arn.js.map +1 -1
  403. package/dist/service/iam/validate/sim-iam-policy-document-validator.js +1 -1
  404. package/dist/service/iam/validate/sim-iam-policy-document-validator.js.map +1 -1
  405. package/dist/service/iam/validate/trust/sim-iam-trust-policy-document-validator.js +1 -1
  406. package/dist/service/iam/validate/trust/sim-iam-trust-policy-document-validator.js.map +1 -1
  407. package/dist/service/lambda/cfn/event-source-mapping/sim-cfn-lambda-event-source-mapping-properties.d.ts.map +1 -1
  408. package/dist/service/lambda/cfn/event-source-mapping/sim-cfn-lambda-event-source-mapping-properties.js.map +1 -1
  409. package/dist/service/lambda/cfn/function/sim-cfn-lambda-runtime-skip.d.ts +5 -1
  410. package/dist/service/lambda/cfn/function/sim-cfn-lambda-runtime-skip.d.ts.map +1 -1
  411. package/dist/service/lambda/cfn/function/sim-cfn-lambda-runtime-skip.js +5 -1
  412. package/dist/service/lambda/cfn/function/sim-cfn-lambda-runtime-skip.js.map +1 -1
  413. package/dist/service/lambda/cfn/sim-cfn-lambda-resource-deleter.d.ts.map +1 -1
  414. package/dist/service/lambda/cfn/sim-cfn-lambda-resource-deleter.js.map +1 -1
  415. package/dist/service/lambda/command/event-source-mapping/create-event-source-mapping-input.d.ts.map +1 -1
  416. package/dist/service/lambda/command/event-source-mapping/create-event-source-mapping-input.js.map +1 -1
  417. package/dist/service/lambda/event-source/queue/sim-lambda-event-source-queues.d.ts.map +1 -1
  418. package/dist/service/lambda/event-source/queue/sim-lambda-event-source-queues.js.map +1 -1
  419. package/dist/service/lambda/event-source/sim-lambda-event-source-arn.d.ts.map +1 -1
  420. package/dist/service/lambda/event-source/sim-lambda-event-source-arn.js.map +1 -1
  421. package/dist/service/lambda/event-source/sim-lambda-event-source-mapping.d.ts.map +1 -1
  422. package/dist/service/lambda/event-source/sim-lambda-event-source-mapping.js.map +1 -1
  423. package/dist/service/lambda/function/code/sim-lambda-vm-zip-code-factory.d.ts.map +1 -1
  424. package/dist/service/lambda/function/code/sim-lambda-vm-zip-code-factory.js.map +1 -1
  425. package/dist/service/lambda/function/environment/sim-lambda-environment-conflicts.js +2 -2
  426. package/dist/service/lambda/function/environment/sim-lambda-process-environment.js +1 -1
  427. package/dist/service/lambda/function/invoke/sim-lambda-handler-runner.js +1 -1
  428. package/dist/service/lambda/function/invoke/sim-lambda-handler-runner.js.map +1 -1
  429. package/dist/service/lambda/function/sim-lambda-function.d.ts.map +1 -1
  430. package/dist/service/lambda/function/sim-lambda-function.js.map +1 -1
  431. package/dist/service/rekognition/face/sim-rekognition-face-detail-builder.d.ts.map +1 -1
  432. package/dist/service/rekognition/face/sim-rekognition-face-detail-builder.js +1 -1
  433. package/dist/service/rekognition/face/sim-rekognition-face-detail-builder.js.map +1 -1
  434. package/dist/service/rekognition/face/sim-rekognition-face-landmark-points.js +2 -2
  435. package/dist/service/rekognition/label/sim-rekognition-label-declaration.d.ts.map +1 -1
  436. package/dist/service/rekognition/label/sim-rekognition-label-declaration.js.map +1 -1
  437. package/dist/service/rekognition/moderation/sim-rekognition-moderation-result.d.ts.map +1 -1
  438. package/dist/service/rekognition/moderation/sim-rekognition-moderation-result.js.map +1 -1
  439. package/dist/service/rekognition/sample/sim-rekognition-sample-image-files.js +1 -1
  440. package/dist/service/route53/command/list-resource-record-sets/list-resource-record-sets.command.d.ts.map +1 -1
  441. package/dist/service/route53/command/list-resource-record-sets/record-set-output.d.ts.map +1 -1
  442. package/dist/service/route53/command/list-resource-record-sets/record-set-output.js +2 -4
  443. package/dist/service/route53/command/list-resource-record-sets/record-set-output.js.map +1 -1
  444. package/dist/service/route53/dns/dns-record-type.d.ts.map +1 -1
  445. package/dist/service/route53/dns/dns-record-type.js +2 -4
  446. package/dist/service/route53/dns/dns-record-type.js.map +1 -1
  447. package/dist/service/s3/bucket/sim-s3-bucket-access.d.ts +5 -0
  448. package/dist/service/s3/bucket/sim-s3-bucket-access.d.ts.map +1 -1
  449. package/dist/service/s3/bucket/sim-s3-bucket-access.js +13 -1
  450. package/dist/service/s3/bucket/sim-s3-bucket-access.js.map +1 -1
  451. package/dist/service/s3/bucket/sim-s3-bucket-system-metadata.d.ts +29 -0
  452. package/dist/service/s3/bucket/sim-s3-bucket-system-metadata.d.ts.map +1 -0
  453. package/dist/service/s3/bucket/sim-s3-bucket-system-metadata.js +32 -0
  454. package/dist/service/s3/bucket/sim-s3-bucket-system-metadata.js.map +1 -0
  455. package/dist/service/s3/bucket/sim-s3-bucket.d.ts +11 -0
  456. package/dist/service/s3/bucket/sim-s3-bucket.d.ts.map +1 -1
  457. package/dist/service/s3/bucket/sim-s3-bucket.js +13 -0
  458. package/dist/service/s3/bucket/sim-s3-bucket.js.map +1 -1
  459. package/dist/service/s3/bucket/sim-s3-public-read.fixture.d.ts +17 -0
  460. package/dist/service/s3/bucket/sim-s3-public-read.fixture.d.ts.map +1 -0
  461. package/dist/service/s3/bucket/sim-s3-public-read.fixture.js +40 -0
  462. package/dist/service/s3/bucket/sim-s3-public-read.fixture.js.map +1 -0
  463. package/dist/service/s3/bucket/website/redirect/s3-bucket-website-redirects.js +1 -1
  464. package/dist/service/s3/bucket/website/redirect/s3-bucket-website-redirects.js.map +1 -1
  465. package/dist/service/s3/command/authorize/sim-s3-condition-context.d.ts +14 -0
  466. package/dist/service/s3/command/authorize/sim-s3-condition-context.d.ts.map +1 -0
  467. package/dist/service/s3/command/authorize/sim-s3-condition-context.js +22 -0
  468. package/dist/service/s3/command/authorize/sim-s3-condition-context.js.map +1 -0
  469. package/dist/service/s3/command/create-bucket/create-bucket.handler.d.ts +2 -5
  470. package/dist/service/s3/command/create-bucket/create-bucket.handler.d.ts.map +1 -1
  471. package/dist/service/s3/command/create-bucket/create-bucket.handler.js +2 -0
  472. package/dist/service/s3/command/create-bucket/create-bucket.handler.js.map +1 -1
  473. package/dist/service/s3/command/delete-bucket/delete-bucket-authorizer.d.ts +2 -2
  474. package/dist/service/s3/command/delete-bucket/delete-bucket-authorizer.d.ts.map +1 -1
  475. package/dist/service/s3/command/delete-bucket/delete-bucket-authorizer.js +4 -2
  476. package/dist/service/s3/command/delete-bucket/delete-bucket-authorizer.js.map +1 -1
  477. package/dist/service/s3/command/delete-bucket/delete-bucket.handler.d.ts +2 -5
  478. package/dist/service/s3/command/delete-bucket/delete-bucket.handler.d.ts.map +1 -1
  479. package/dist/service/s3/command/delete-bucket/delete-bucket.handler.js +1 -1
  480. package/dist/service/s3/command/delete-bucket/delete-bucket.handler.js.map +1 -1
  481. package/dist/service/s3/command/delete-bucket-policy/delete-bucket-policy-authorizer.d.ts +2 -2
  482. package/dist/service/s3/command/delete-bucket-policy/delete-bucket-policy-authorizer.d.ts.map +1 -1
  483. package/dist/service/s3/command/delete-bucket-policy/delete-bucket-policy-authorizer.js +4 -2
  484. package/dist/service/s3/command/delete-bucket-policy/delete-bucket-policy-authorizer.js.map +1 -1
  485. package/dist/service/s3/command/delete-bucket-policy/delete-bucket-policy.handler.d.ts +2 -5
  486. package/dist/service/s3/command/delete-bucket-policy/delete-bucket-policy.handler.d.ts.map +1 -1
  487. package/dist/service/s3/command/delete-bucket-policy/delete-bucket-policy.handler.js +1 -1
  488. package/dist/service/s3/command/delete-bucket-policy/delete-bucket-policy.handler.js.map +1 -1
  489. package/dist/service/s3/command/delete-object/delete-object-authorizer.d.ts +2 -2
  490. package/dist/service/s3/command/delete-object/delete-object-authorizer.d.ts.map +1 -1
  491. package/dist/service/s3/command/delete-object/delete-object-authorizer.js +4 -2
  492. package/dist/service/s3/command/delete-object/delete-object-authorizer.js.map +1 -1
  493. package/dist/service/s3/command/delete-object/delete-object.handler.d.ts +2 -5
  494. package/dist/service/s3/command/delete-object/delete-object.handler.d.ts.map +1 -1
  495. package/dist/service/s3/command/delete-object/delete-object.handler.js +1 -1
  496. package/dist/service/s3/command/delete-object/delete-object.handler.js.map +1 -1
  497. package/dist/service/s3/command/delete-objects/delete-objects-key-removal.d.ts +2 -2
  498. package/dist/service/s3/command/delete-objects/delete-objects-key-removal.d.ts.map +1 -1
  499. package/dist/service/s3/command/delete-objects/delete-objects-key-removal.js +2 -2
  500. package/dist/service/s3/command/delete-objects/delete-objects-key-removal.js.map +1 -1
  501. package/dist/service/s3/command/delete-objects/delete-objects.handler.d.ts +2 -5
  502. package/dist/service/s3/command/delete-objects/delete-objects.handler.d.ts.map +1 -1
  503. package/dist/service/s3/command/delete-objects/delete-objects.handler.js +1 -1
  504. package/dist/service/s3/command/delete-objects/delete-objects.handler.js.map +1 -1
  505. package/dist/service/s3/command/delete-public-access-block/delete-public-access-block.handler.d.ts +2 -5
  506. package/dist/service/s3/command/delete-public-access-block/delete-public-access-block.handler.d.ts.map +1 -1
  507. package/dist/service/s3/command/delete-public-access-block/delete-public-access-block.handler.js +1 -1
  508. package/dist/service/s3/command/delete-public-access-block/delete-public-access-block.handler.js.map +1 -1
  509. package/dist/service/s3/command/get-bucket-notification-configuration/get-bucket-notification-configuration.command.d.ts.map +1 -1
  510. package/dist/service/s3/command/get-bucket-notification-configuration/get-bucket-notification-configuration.handler.d.ts +2 -5
  511. package/dist/service/s3/command/get-bucket-notification-configuration/get-bucket-notification-configuration.handler.d.ts.map +1 -1
  512. package/dist/service/s3/command/get-bucket-notification-configuration/get-bucket-notification-configuration.handler.js +1 -1
  513. package/dist/service/s3/command/get-bucket-notification-configuration/get-bucket-notification-configuration.handler.js.map +1 -1
  514. package/dist/service/s3/command/get-bucket-policy/get-bucket-policy-authorizer.d.ts +2 -2
  515. package/dist/service/s3/command/get-bucket-policy/get-bucket-policy-authorizer.d.ts.map +1 -1
  516. package/dist/service/s3/command/get-bucket-policy/get-bucket-policy-authorizer.js +4 -2
  517. package/dist/service/s3/command/get-bucket-policy/get-bucket-policy-authorizer.js.map +1 -1
  518. package/dist/service/s3/command/get-bucket-policy/get-bucket-policy.handler.d.ts +2 -5
  519. package/dist/service/s3/command/get-bucket-policy/get-bucket-policy.handler.d.ts.map +1 -1
  520. package/dist/service/s3/command/get-bucket-policy/get-bucket-policy.handler.js +1 -1
  521. package/dist/service/s3/command/get-bucket-policy/get-bucket-policy.handler.js.map +1 -1
  522. package/dist/service/s3/command/get-object/get-object-authorizer.d.ts +6 -2
  523. package/dist/service/s3/command/get-object/get-object-authorizer.d.ts.map +1 -1
  524. package/dist/service/s3/command/get-object/get-object-authorizer.js +8 -2
  525. package/dist/service/s3/command/get-object/get-object-authorizer.js.map +1 -1
  526. package/dist/service/s3/command/get-object/get-object.handler.d.ts +2 -5
  527. package/dist/service/s3/command/get-object/get-object.handler.d.ts.map +1 -1
  528. package/dist/service/s3/command/get-object/get-object.handler.js +1 -1
  529. package/dist/service/s3/command/get-object/get-object.handler.js.map +1 -1
  530. package/dist/service/s3/command/get-public-access-block/get-public-access-block.handler.d.ts +2 -5
  531. package/dist/service/s3/command/get-public-access-block/get-public-access-block.handler.d.ts.map +1 -1
  532. package/dist/service/s3/command/get-public-access-block/get-public-access-block.handler.js +1 -1
  533. package/dist/service/s3/command/get-public-access-block/get-public-access-block.handler.js.map +1 -1
  534. package/dist/service/s3/command/list-buckets/list-buckets-authorizer.d.ts +2 -2
  535. package/dist/service/s3/command/list-buckets/list-buckets-authorizer.d.ts.map +1 -1
  536. package/dist/service/s3/command/list-buckets/list-buckets-authorizer.js +4 -2
  537. package/dist/service/s3/command/list-buckets/list-buckets-authorizer.js.map +1 -1
  538. package/dist/service/s3/command/list-buckets/list-buckets.handler.d.ts +2 -5
  539. package/dist/service/s3/command/list-buckets/list-buckets.handler.d.ts.map +1 -1
  540. package/dist/service/s3/command/list-buckets/list-buckets.handler.js +1 -1
  541. package/dist/service/s3/command/list-buckets/list-buckets.handler.js.map +1 -1
  542. package/dist/service/s3/command/list-objects/list-objects-authorizer.d.ts +2 -2
  543. package/dist/service/s3/command/list-objects/list-objects-authorizer.d.ts.map +1 -1
  544. package/dist/service/s3/command/list-objects/list-objects-authorizer.js +3 -1
  545. package/dist/service/s3/command/list-objects/list-objects-authorizer.js.map +1 -1
  546. package/dist/service/s3/command/list-objects/list-objects.handler.d.ts +2 -5
  547. package/dist/service/s3/command/list-objects/list-objects.handler.d.ts.map +1 -1
  548. package/dist/service/s3/command/list-objects/list-objects.handler.js +1 -1
  549. package/dist/service/s3/command/list-objects/list-objects.handler.js.map +1 -1
  550. package/dist/service/s3/command/notification/sim-s3-notification-authorizer.d.ts +3 -3
  551. package/dist/service/s3/command/notification/sim-s3-notification-authorizer.d.ts.map +1 -1
  552. package/dist/service/s3/command/notification/sim-s3-notification-authorizer.js +8 -6
  553. package/dist/service/s3/command/notification/sim-s3-notification-authorizer.js.map +1 -1
  554. package/dist/service/s3/command/public-access-block/sim-s3-public-access-block-authorizer.d.ts +3 -3
  555. package/dist/service/s3/command/public-access-block/sim-s3-public-access-block-authorizer.d.ts.map +1 -1
  556. package/dist/service/s3/command/public-access-block/sim-s3-public-access-block-authorizer.js +8 -6
  557. package/dist/service/s3/command/public-access-block/sim-s3-public-access-block-authorizer.js.map +1 -1
  558. package/dist/service/s3/command/put-bucket-notification-configuration/put-bucket-notification-configuration.command.d.ts.map +1 -1
  559. package/dist/service/s3/command/put-bucket-notification-configuration/put-bucket-notification-configuration.handler.d.ts +2 -5
  560. package/dist/service/s3/command/put-bucket-notification-configuration/put-bucket-notification-configuration.handler.d.ts.map +1 -1
  561. package/dist/service/s3/command/put-bucket-notification-configuration/put-bucket-notification-configuration.handler.js +1 -1
  562. package/dist/service/s3/command/put-bucket-notification-configuration/put-bucket-notification-configuration.handler.js.map +1 -1
  563. package/dist/service/s3/command/put-bucket-policy/put-bucket-policy-authorizer.d.ts +2 -2
  564. package/dist/service/s3/command/put-bucket-policy/put-bucket-policy-authorizer.d.ts.map +1 -1
  565. package/dist/service/s3/command/put-bucket-policy/put-bucket-policy-authorizer.js +4 -2
  566. package/dist/service/s3/command/put-bucket-policy/put-bucket-policy-authorizer.js.map +1 -1
  567. package/dist/service/s3/command/put-bucket-policy/put-bucket-policy.handler.d.ts +2 -5
  568. package/dist/service/s3/command/put-bucket-policy/put-bucket-policy.handler.d.ts.map +1 -1
  569. package/dist/service/s3/command/put-bucket-policy/put-bucket-policy.handler.js +1 -1
  570. package/dist/service/s3/command/put-bucket-policy/put-bucket-policy.handler.js.map +1 -1
  571. package/dist/service/s3/command/put-bucket-website/put-bucket-website-authorizer.d.ts +2 -2
  572. package/dist/service/s3/command/put-bucket-website/put-bucket-website-authorizer.d.ts.map +1 -1
  573. package/dist/service/s3/command/put-bucket-website/put-bucket-website-authorizer.js +4 -2
  574. package/dist/service/s3/command/put-bucket-website/put-bucket-website-authorizer.js.map +1 -1
  575. package/dist/service/s3/command/put-bucket-website/put-bucket-website.command.d.ts.map +1 -1
  576. package/dist/service/s3/command/put-bucket-website/put-bucket-website.handler.d.ts +2 -5
  577. package/dist/service/s3/command/put-bucket-website/put-bucket-website.handler.d.ts.map +1 -1
  578. package/dist/service/s3/command/put-bucket-website/put-bucket-website.handler.js +1 -1
  579. package/dist/service/s3/command/put-bucket-website/put-bucket-website.handler.js.map +1 -1
  580. package/dist/service/s3/command/put-object/put-object-authorizer.d.ts +2 -2
  581. package/dist/service/s3/command/put-object/put-object-authorizer.d.ts.map +1 -1
  582. package/dist/service/s3/command/put-object/put-object-authorizer.js +4 -2
  583. package/dist/service/s3/command/put-object/put-object-authorizer.js.map +1 -1
  584. package/dist/service/s3/command/put-object/put-object.handler.d.ts +2 -5
  585. package/dist/service/s3/command/put-object/put-object.handler.d.ts.map +1 -1
  586. package/dist/service/s3/command/put-object/put-object.handler.js +1 -1
  587. package/dist/service/s3/command/put-object/put-object.handler.js.map +1 -1
  588. package/dist/service/s3/command/put-public-access-block/put-public-access-block.command.d.ts.map +1 -1
  589. package/dist/service/s3/command/put-public-access-block/put-public-access-block.handler.d.ts +2 -5
  590. package/dist/service/s3/command/put-public-access-block/put-public-access-block.handler.d.ts.map +1 -1
  591. package/dist/service/s3/command/put-public-access-block/put-public-access-block.handler.js +1 -1
  592. package/dist/service/s3/command/put-public-access-block/put-public-access-block.handler.js.map +1 -1
  593. package/dist/service/s3/command/sim-s3-request-options.d.ts +40 -0
  594. package/dist/service/s3/command/sim-s3-request-options.d.ts.map +1 -1
  595. package/dist/service/s3/command/sim-s3-request-options.js +19 -1
  596. package/dist/service/s3/command/sim-s3-request-options.js.map +1 -1
  597. package/dist/service/s3/index.d.ts +2 -0
  598. package/dist/service/s3/index.d.ts.map +1 -1
  599. package/dist/service/s3/mount/sim-s3-mount-directory-events.js +1 -1
  600. package/dist/service/s3/mount/sim-s3-mount.type.d.ts +27 -0
  601. package/dist/service/s3/mount/sim-s3-mount.type.d.ts.map +1 -1
  602. package/dist/service/s3/notification/destination/lambda/sim-aws-s3-notification-functions.d.ts.map +1 -1
  603. package/dist/service/s3/notification/destination/lambda/sim-aws-s3-notification-functions.js +1 -0
  604. package/dist/service/s3/notification/destination/lambda/sim-aws-s3-notification-functions.js.map +1 -1
  605. package/dist/service/s3/notification/sim-s3-notification-failures.js +1 -1
  606. package/dist/service/s3/object/s3-declared-system-metadata.d.ts +63 -0
  607. package/dist/service/s3/object/s3-declared-system-metadata.d.ts.map +1 -0
  608. package/dist/service/s3/object/s3-declared-system-metadata.js +82 -0
  609. package/dist/service/s3/object/s3-declared-system-metadata.js.map +1 -0
  610. package/dist/service/s3/object/s3-key-prefix-metadata.d.ts +32 -0
  611. package/dist/service/s3/object/s3-key-prefix-metadata.d.ts.map +1 -0
  612. package/dist/service/s3/object/s3-key-prefix-metadata.js +25 -0
  613. package/dist/service/s3/object/s3-key-prefix-metadata.js.map +1 -0
  614. package/dist/service/s3/object/s3-system-metadata-declaration.type.d.ts +38 -0
  615. package/dist/service/s3/object/s3-system-metadata-declaration.type.d.ts.map +1 -0
  616. package/dist/service/s3/object/s3-system-metadata-declaration.type.js +2 -0
  617. package/dist/service/s3/object/s3-system-metadata-declaration.type.js.map +1 -0
  618. package/dist/service/s3/object/s3-system-metadata.d.ts +19 -0
  619. package/dist/service/s3/object/s3-system-metadata.d.ts.map +1 -1
  620. package/dist/service/s3/object/s3-system-metadata.js +19 -0
  621. package/dist/service/s3/object/s3-system-metadata.js.map +1 -1
  622. package/dist/service/s3/serve/sim-s3-route.d.ts.map +1 -1
  623. package/dist/service/s3/serve/sim-s3-route.js.map +1 -1
  624. package/dist/service/s3/sim-s3.d.ts +7 -0
  625. package/dist/service/s3/sim-s3.d.ts.map +1 -1
  626. package/dist/service/s3/sim-s3.js +7 -0
  627. package/dist/service/s3/sim-s3.js.map +1 -1
  628. package/dist/service/s3/storage/filesystem/filesystem-path-exists.js +1 -1
  629. package/dist/service/s3/storage/filesystem/s3-filesystem-object-keys.js +1 -1
  630. package/dist/service/s3/storage/filesystem/s3-filesystem-object-metadata.d.ts +6 -1
  631. package/dist/service/s3/storage/filesystem/s3-filesystem-object-metadata.d.ts.map +1 -1
  632. package/dist/service/s3/storage/filesystem/s3-filesystem-object-metadata.js +7 -1
  633. package/dist/service/s3/storage/filesystem/s3-filesystem-object-metadata.js.map +1 -1
  634. package/dist/service/s3/storage/filesystem/s3-filesystem-storage.d.ts +8 -0
  635. package/dist/service/s3/storage/filesystem/s3-filesystem-storage.d.ts.map +1 -1
  636. package/dist/service/s3/storage/filesystem/s3-filesystem-storage.js +8 -4
  637. package/dist/service/s3/storage/filesystem/s3-filesystem-storage.js.map +1 -1
  638. package/dist/service/secretsmanager/secret/generate/sim-secrets-manager-password-character-set.js +1 -1
  639. package/dist/service/secretsmanager/secret/sim-secrets-manager-secret-arn.js +1 -1
  640. package/dist/service/sns/cfn/topic/sim-cfn-sns-topic-creator.js +1 -1
  641. package/dist/service/sns/command/publish/publish.command.d.ts.map +1 -1
  642. package/dist/service/sns/delivery/sim-sns-delivery-failures.js +1 -1
  643. package/dist/service/sns/filter/sim-sns-body-subject.js +1 -1
  644. package/dist/service/sns/subscription/sim-sns-subscription-protocol.d.ts.map +1 -1
  645. package/dist/service/sns/subscription/sim-sns-subscription-protocol.js.map +1 -1
  646. package/dist/service/sqs/command/message/consume.command.d.ts.map +1 -1
  647. package/dist/service/sqs/command/message/receive.command.d.ts.map +1 -1
  648. package/dist/service/sqs/command/message/send.command.d.ts.map +1 -1
  649. package/dist/service/sqs/queue/sim-sqs-redrive-policy.js +1 -1
  650. package/dist/service/ssm/command/parameter/sim-ssm-get-parameter-commands.js +1 -1
  651. package/dist/service/sts/assume/sim-sts-assume-role-request-parser.d.ts.map +1 -1
  652. package/dist/service/sts/assume/sim-sts-assume-role-request-parser.js.map +1 -1
  653. package/dist/service/sts/auth-z/assume-role-auth-z-coordinator.d.ts.map +1 -1
  654. package/dist/service/sts/auth-z/assume-role-auth-z-coordinator.js.map +1 -1
  655. package/dist/service/sts/auth-z/assume-role-target-auth-z.d.ts.map +1 -1
  656. package/dist/service/sts/auth-z/assume-role-target-auth-z.js.map +1 -1
  657. package/dist/service/sts/auth-z/assume-role-trust-policy-authorizer.d.ts.map +1 -1
  658. package/dist/service/sts/auth-z/assume-role-trust-policy-authorizer.js.map +1 -1
  659. package/dist/util/background/background.js +2 -2
  660. package/dist/util/background/background.js.map +1 -1
  661. package/dist/util/background/non-deterministic-background.js +2 -2
  662. package/dist/util/background/non-deterministic-background.js.map +1 -1
  663. package/dist/util/clock/sim-clock-control.js +1 -1
  664. package/dist/util/filesystem/path.js +1 -1
  665. package/dist/util/filesystem/temporary-directory.d.ts +4 -1
  666. package/dist/util/filesystem/temporary-directory.d.ts.map +1 -1
  667. package/dist/util/filesystem/temporary-directory.js +8 -6
  668. package/dist/util/filesystem/temporary-directory.js.map +1 -1
  669. package/dist/util/jwt/sim-jwt-claims.js +1 -1
  670. package/dist/util/type-guard/json.d.ts.map +1 -1
  671. package/dist/util/type-guard/json.js +2 -2
  672. package/dist/util/type-guard/json.js.map +1 -1
  673. package/package.json +15 -12
  674. package/dist/service/s3/bucket/website/sim-s3-public-website.fixture.d.ts +0 -13
  675. package/dist/service/s3/bucket/website/sim-s3-public-website.fixture.d.ts.map +0 -1
  676. package/dist/service/s3/bucket/website/sim-s3-public-website.fixture.js +0 -36
  677. package/dist/service/s3/bucket/website/sim-s3-public-website.fixture.js.map +0 -1
@@ -0,0 +1,107 @@
1
+ import { MappedFactory } from "@kensio/part-factory";
2
+ const providerLogicalId = "BucketDeploymentProvider";
3
+ const assetsBucketName = "cdk-hnb659fds-assets-111111111111-eu-west-2";
4
+ const assumeRolePolicyDocument = {
5
+ Version: "2012-10-17",
6
+ Statement: [
7
+ {
8
+ Effect: "Allow",
9
+ Principal: { Service: "lambda.amazonaws.com" },
10
+ Action: "sts:AssumeRole",
11
+ },
12
+ ],
13
+ };
14
+ /**
15
+ * Builds the template CDK synthesizes for one or more `BucketDeployment`
16
+ * constructs sharing a destination Bucket.
17
+ *
18
+ * ```typescript
19
+ * const template = simCdkProviderScaffoldingTemplateFactory.make({
20
+ * sourceObjectKeys: ["site.zip", "fonts.zip"],
21
+ * });
22
+ * ```
23
+ *
24
+ * The asset object keys have to match an assets manifest beside the template
25
+ * file for the deployments themselves to copy anything, so a test using this
26
+ * writes both.
27
+ */
28
+ export const simCdkProviderScaffoldingTemplateFactory = new MappedFactory(() => ({
29
+ bucketName: "site-bucket",
30
+ sourceObjectKeys: ["site.zip"],
31
+ resources: {},
32
+ }), (input) => ({
33
+ Resources: {
34
+ SiteBucket: {
35
+ Type: "AWS::S3::Bucket",
36
+ Properties: { BucketName: input.bucketName },
37
+ },
38
+ [`${providerLogicalId}Role`]: {
39
+ Type: "AWS::IAM::Role",
40
+ Properties: {
41
+ RoleName: "bucket-deployment-provider-role",
42
+ AssumeRolePolicyDocument: assumeRolePolicyDocument,
43
+ },
44
+ },
45
+ [providerLogicalId]: {
46
+ Type: "AWS::Lambda::Function",
47
+ Properties: {
48
+ Code: { S3Bucket: assetsBucketName, S3Key: "provider.zip" },
49
+ Handler: "index.handler",
50
+ Layers: [{ Ref: `${deploymentPrefix(0)}AwsCliLayer` }],
51
+ Role: { "Fn::GetAtt": [`${providerLogicalId}Role`, "Arn"] },
52
+ Runtime: "python3.13",
53
+ Timeout: 900,
54
+ },
55
+ },
56
+ [`${providerLogicalId}LogGroup`]: {
57
+ Type: "AWS::Logs::LogGroup",
58
+ Properties: {
59
+ LogGroupName: {
60
+ "Fn::Join": ["", ["/aws/lambda/", { Ref: providerLogicalId }]],
61
+ },
62
+ RetentionInDays: 731,
63
+ },
64
+ },
65
+ ...deploymentResources(input),
66
+ ...input.resources,
67
+ },
68
+ }));
69
+ /**
70
+ * The Layer and custom Resource each deployment contributes.
71
+ *
72
+ * Every deployment gets its own AWS CLI Layer, and only the first one's is
73
+ * named by the shared provider function's `Layers`, so the rest are reachable
74
+ * from nothing in the template. That is why a Layer is recognised on what it
75
+ * is rather than on what points at it.
76
+ */
77
+ function deploymentResources(input) {
78
+ const resources = {};
79
+ for (const [index, sourceObjectKey] of input.sourceObjectKeys.entries()) {
80
+ const prefix = deploymentPrefix(index);
81
+ resources[`${prefix}AwsCliLayer`] = {
82
+ Type: "AWS::Lambda::LayerVersion",
83
+ Properties: {
84
+ Content: {
85
+ S3Bucket: assetsBucketName,
86
+ S3Key: "awscli.zip",
87
+ },
88
+ Description: "/opt/awscli/aws",
89
+ },
90
+ };
91
+ resources[`${prefix}CustomResource`] = {
92
+ Type: "Custom::CDKBucketDeployment",
93
+ Properties: {
94
+ ServiceToken: { "Fn::GetAtt": [providerLogicalId, "Arn"] },
95
+ SourceBucketNames: [assetsBucketName],
96
+ SourceObjectKeys: [sourceObjectKey],
97
+ DestinationBucketName: { Ref: "SiteBucket" },
98
+ Prune: index === 0,
99
+ },
100
+ };
101
+ }
102
+ return resources;
103
+ }
104
+ function deploymentPrefix(index) {
105
+ return `Deploy${index}`;
106
+ }
107
+ //# sourceMappingURL=sim-cdk-provider-scaffolding-template.factory.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"sim-cdk-provider-scaffolding-template.factory.js","sourceRoot":"","sources":["../../../../../src/service/cloudformation/cdk/provider/sim-cdk-provider-scaffolding-template.factory.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAC;AA2BrD,MAAM,iBAAiB,GAAG,0BAA0B,CAAC;AACrD,MAAM,gBAAgB,GAAG,6CAA6C,CAAC;AAEvE,MAAM,wBAAwB,GAAG;IAC/B,OAAO,EAAE,YAAY;IACrB,SAAS,EAAE;QACT;YACE,MAAM,EAAE,OAAO;YACf,SAAS,EAAE,EAAE,OAAO,EAAE,sBAAsB,EAAE;YAC9C,MAAM,EAAE,gBAAgB;SACzB;KACF;CACF,CAAC;AAEF;;;;;;;;;;;;;GAaG;AACH,MAAM,CAAC,MAAM,wCAAwC,GAAG,IAAI,aAAa,CAIvE,GAAG,EAAE,CAAC,CAAC;IACL,UAAU,EAAE,aAAa;IACzB,gBAAgB,EAAE,CAAC,UAAU,CAAC;IAC9B,SAAS,EAAE,EAAE;CACd,CAAC,EACF,CAAC,KAAK,EAAE,EAAE,CAAC,CAAC;IACV,SAAS,EAAE;QACT,UAAU,EAAE;YACV,IAAI,EAAE,iBAAiB;YACvB,UAAU,EAAE,EAAE,UAAU,EAAE,KAAK,CAAC,UAAU,EAAE;SAC7C;QACD,CAAC,GAAG,iBAAiB,MAAM,CAAC,EAAE;YAC5B,IAAI,EAAE,gBAAgB;YACtB,UAAU,EAAE;gBACV,QAAQ,EAAE,iCAAiC;gBAC3C,wBAAwB,EAAE,wBAAwB;aACnD;SACF;QACD,CAAC,iBAAiB,CAAC,EAAE;YACnB,IAAI,EAAE,uBAAuB;YAC7B,UAAU,EAAE;gBACV,IAAI,EAAE,EAAE,QAAQ,EAAE,gBAAgB,EAAE,KAAK,EAAE,cAAc,EAAE;gBAC3D,OAAO,EAAE,eAAe;gBACxB,MAAM,EAAE,CAAC,EAAE,GAAG,EAAE,GAAG,gBAAgB,CAAC,CAAC,CAAC,aAAa,EAAE,CAAC;gBACtD,IAAI,EAAE,EAAE,YAAY,EAAE,CAAC,GAAG,iBAAiB,MAAM,EAAE,KAAK,CAAC,EAAE;gBAC3D,OAAO,EAAE,YAAY;gBACrB,OAAO,EAAE,GAAG;aACb;SACF;QACD,CAAC,GAAG,iBAAiB,UAAU,CAAC,EAAE;YAChC,IAAI,EAAE,qBAAqB;YAC3B,UAAU,EAAE;gBACV,YAAY,EAAE;oBACZ,UAAU,EAAE,CAAC,EAAE,EAAE,CAAC,cAAc,EAAE,EAAE,GAAG,EAAE,iBAAiB,EAAE,CAAC,CAAC;iBAC/D;gBACD,eAAe,EAAE,GAAG;aACrB;SACF;QACD,GAAG,mBAAmB,CAAC,KAAK,CAAC;QAC7B,GAAG,KAAK,CAAC,SAAS;KACnB;CACF,CAAC,CACH,CAAC;AAEF;;;;;;;GAOG;AACH,SAAS,mBAAmB,CAC1B,KAA6C;IAE7C,MAAM,SAAS,GAA8B,EAAE,CAAC;IAEhD,KAAK,MAAM,CAAC,KAAK,EAAE,eAAe,CAAC,IAAI,KAAK,CAAC,gBAAgB,CAAC,OAAO,EAAE,EAAE,CAAC;QACxE,MAAM,MAAM,GAAG,gBAAgB,CAAC,KAAK,CAAC,CAAC;QAEvC,SAAS,CAAC,GAAG,MAAM,aAAa,CAAC,GAAG;YAClC,IAAI,EAAE,2BAA2B;YACjC,UAAU,EAAE;gBACV,OAAO,EAAE;oBACP,QAAQ,EAAE,gBAAgB;oBAC1B,KAAK,EAAE,YAAY;iBACpB;gBACD,WAAW,EAAE,iBAAiB;aAC/B;SACF,CAAC;QAEF,SAAS,CAAC,GAAG,MAAM,gBAAgB,CAAC,GAAG;YACrC,IAAI,EAAE,6BAA6B;YACnC,UAAU,EAAE;gBACV,YAAY,EAAE,EAAE,YAAY,EAAE,CAAC,iBAAiB,EAAE,KAAK,CAAC,EAAE;gBAC1D,iBAAiB,EAAE,CAAC,gBAAgB,CAAC;gBACrC,gBAAgB,EAAE,CAAC,eAAe,CAAC;gBACnC,qBAAqB,EAAE,EAAE,GAAG,EAAE,YAAY,EAAE;gBAC5C,KAAK,EAAE,KAAK,KAAK,CAAC;aACnB;SACF,CAAC;IACJ,CAAC;IAED,OAAO,SAAS,CAAC;AACnB,CAAC;AAED,SAAS,gBAAgB,CAAC,KAAa;IACrC,OAAO,SAAS,KAAK,EAAE,CAAC;AAC1B,CAAC"}
@@ -0,0 +1,66 @@
1
+ import type { SimCfnResource } from "../../resource/sim-cfn-resource.js";
2
+ /**
3
+ * The Resources in a Stack that exist only to run a CDK custom Resource sim
4
+ * CloudFormation carries out itself.
5
+ *
6
+ * CDK reaches a feature it has no CloudFormation Resource type for by writing a
7
+ * `Custom::` Resource and a Lambda function to answer it. Where this simulator
8
+ * creates that custom Resource directly, as it does for `BucketDeployment` and
9
+ * Bucket notifications, the function is left holding nothing: it is never
10
+ * invoked, so its code is never loaded and its log group never written to. The
11
+ * work is already done by the time anything would have called it.
12
+ *
13
+ * That makes the function and its log group Resources no test can tell apart
14
+ * from ones that were created, which is the same reason a Resource type nothing
15
+ * simulates has for being reported as a skip, arrived at from the opposite
16
+ * direction. Reporting them as skips is worse than saying nothing: CDK's
17
+ * provider is a Python function, so the skip reads "bind a real in-process
18
+ * handler to this function to simulate it", which is advice that would replace
19
+ * a working simulation with a hand-written one.
20
+ *
21
+ * The recognition is by association rather than by name. CDK's logical IDs are
22
+ * generated from construct paths and a hash, and are not an interface anything
23
+ * should match on; the link from a custom Resource to its provider through
24
+ * `ServiceToken` is one CloudFormation itself relies on.
25
+ */
26
+ export declare class SimCdkProviderScaffolding {
27
+ #private;
28
+ constructor(resources: ReadonlyMap<string, SimCfnResource>);
29
+ /**
30
+ * Why this Resource is scaffolding for a custom Resource this simulator has
31
+ * already carried out, or undefined when it is not.
32
+ */
33
+ reasonFor(resource: SimCfnResource): string | undefined;
34
+ /**
35
+ * The Resource is the provider function itself.
36
+ */
37
+ private providerFunctionReason;
38
+ /**
39
+ * The Resource is the log group of a provider function.
40
+ *
41
+ * A newer CDK writes the provider function's log group into the template
42
+ * rather than leaving Lambda to create it, and names the function in it, so
43
+ * the same association finds it. Only a log group is looked for this way: the
44
+ * provider's IAM Role and Policy name it too, and those this simulator
45
+ * creates for real.
46
+ */
47
+ private providerLogGroupReason;
48
+ /**
49
+ * Each provider function in this Stack, against the custom Resource type it
50
+ * answers for.
51
+ *
52
+ * A `Custom::` Resource names its provider in `ServiceToken`, usually as an
53
+ * `Fn::GetAtt` for the function's ARN. Reading it through the ordinary node
54
+ * parser takes every form CloudFormation accepts, and keeping only names that
55
+ * are Lambda functions in this Stack leaves out a `ServiceToken` pointing at
56
+ * a function deployed somewhere else, which is not this Stack's to reason
57
+ * about.
58
+ *
59
+ * One provider answers every custom Resource of its type in a Stack, since
60
+ * CDK builds it as a singleton, so the first type to claim a function is the
61
+ * one reported against it.
62
+ */
63
+ private findProviderFunctions;
64
+ private functionsNamedBy;
65
+ }
66
+ //# sourceMappingURL=sim-cdk-provider-scaffolding.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"sim-cdk-provider-scaffolding.d.ts","sourceRoot":"","sources":["../../../../../src/service/cloudformation/cdk/provider/sim-cdk-provider-scaffolding.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,oCAAoC,CAAC;AAQzE;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AACH,qBAAa,yBAAyB;;IAIpC,YAAY,SAAS,EAAE,WAAW,CAAC,MAAM,EAAE,cAAc,CAAC,EAGzD;IAED;;;OAGG;IACH,SAAS,CAAC,QAAQ,EAAE,cAAc,GAAG,MAAM,GAAG,SAAS,CAKtD;IAED;;OAEG;IACH,OAAO,CAAC,sBAAsB;IAa9B;;;;;;;;OAQG;IACH,OAAO,CAAC,sBAAsB;IAoB9B;;;;;;;;;;;;;;OAcG;IACH,OAAO,CAAC,qBAAqB;IAoB7B,OAAO,CAAC,gBAAgB;CAezB"}
@@ -0,0 +1,133 @@
1
+ import { simCdkCustomResourceFactories } from "../../resource/resolve/service/sim-cfn-custom-resource-factories.js";
2
+ import { parseSimCfnNode } from "../../template/parse/node/sim-cfn-node-parser.js";
3
+ const customResourceTypePrefix = "Custom::";
4
+ const lambdaFunctionResourceType = "AWS::Lambda::Function";
5
+ const logGroupResourceType = "AWS::Logs::LogGroup";
6
+ /**
7
+ * The Resources in a Stack that exist only to run a CDK custom Resource sim
8
+ * CloudFormation carries out itself.
9
+ *
10
+ * CDK reaches a feature it has no CloudFormation Resource type for by writing a
11
+ * `Custom::` Resource and a Lambda function to answer it. Where this simulator
12
+ * creates that custom Resource directly, as it does for `BucketDeployment` and
13
+ * Bucket notifications, the function is left holding nothing: it is never
14
+ * invoked, so its code is never loaded and its log group never written to. The
15
+ * work is already done by the time anything would have called it.
16
+ *
17
+ * That makes the function and its log group Resources no test can tell apart
18
+ * from ones that were created, which is the same reason a Resource type nothing
19
+ * simulates has for being reported as a skip, arrived at from the opposite
20
+ * direction. Reporting them as skips is worse than saying nothing: CDK's
21
+ * provider is a Python function, so the skip reads "bind a real in-process
22
+ * handler to this function to simulate it", which is advice that would replace
23
+ * a working simulation with a hand-written one.
24
+ *
25
+ * The recognition is by association rather than by name. CDK's logical IDs are
26
+ * generated from construct paths and a hash, and are not an interface anything
27
+ * should match on; the link from a custom Resource to its provider through
28
+ * `ServiceToken` is one CloudFormation itself relies on.
29
+ */
30
+ export class SimCdkProviderScaffolding {
31
+ #resources;
32
+ #providerFunctions;
33
+ constructor(resources) {
34
+ this.#resources = resources;
35
+ this.#providerFunctions = this.findProviderFunctions();
36
+ }
37
+ /**
38
+ * Why this Resource is scaffolding for a custom Resource this simulator has
39
+ * already carried out, or undefined when it is not.
40
+ */
41
+ reasonFor(resource) {
42
+ return (this.providerFunctionReason(resource) ??
43
+ this.providerLogGroupReason(resource));
44
+ }
45
+ /**
46
+ * The Resource is the provider function itself.
47
+ */
48
+ providerFunctionReason(resource) {
49
+ const customResourceType = this.#providerFunctions.get(resource.logicalId);
50
+ if (customResourceType === undefined) {
51
+ return undefined;
52
+ }
53
+ return (`sim CloudFormation carries out ${customResourceType} itself, so CDK's ` +
54
+ `provider function for it is never invoked`);
55
+ }
56
+ /**
57
+ * The Resource is the log group of a provider function.
58
+ *
59
+ * A newer CDK writes the provider function's log group into the template
60
+ * rather than leaving Lambda to create it, and names the function in it, so
61
+ * the same association finds it. Only a log group is looked for this way: the
62
+ * provider's IAM Role and Policy name it too, and those this simulator
63
+ * creates for real.
64
+ */
65
+ providerLogGroupReason(resource) {
66
+ if (resource.type !== logGroupResourceType) {
67
+ return undefined;
68
+ }
69
+ const customResourceType = resource
70
+ .dependencies()
71
+ .map((logicalId) => this.#providerFunctions.get(logicalId))
72
+ .find((found) => found !== undefined);
73
+ if (customResourceType === undefined) {
74
+ return undefined;
75
+ }
76
+ return (`the log group of CDK's ${customResourceType} provider function, which ` +
77
+ `sim CloudFormation never invokes, so nothing is ever written to it`);
78
+ }
79
+ /**
80
+ * Each provider function in this Stack, against the custom Resource type it
81
+ * answers for.
82
+ *
83
+ * A `Custom::` Resource names its provider in `ServiceToken`, usually as an
84
+ * `Fn::GetAtt` for the function's ARN. Reading it through the ordinary node
85
+ * parser takes every form CloudFormation accepts, and keeping only names that
86
+ * are Lambda functions in this Stack leaves out a `ServiceToken` pointing at
87
+ * a function deployed somewhere else, which is not this Stack's to reason
88
+ * about.
89
+ *
90
+ * One provider answers every custom Resource of its type in a Stack, since
91
+ * CDK builds it as a singleton, so the first type to claim a function is the
92
+ * one reported against it.
93
+ */
94
+ findProviderFunctions() {
95
+ const found = new Map();
96
+ for (const resource of this.#resources.values()) {
97
+ const customResourceType = simulatedCustomResourceType(resource);
98
+ if (customResourceType === undefined) {
99
+ continue;
100
+ }
101
+ for (const logicalId of this.functionsNamedBy(resource)) {
102
+ if (!found.has(logicalId)) {
103
+ found.set(logicalId, customResourceType);
104
+ }
105
+ }
106
+ }
107
+ return found;
108
+ }
109
+ functionsNamedBy(customResource) {
110
+ const serviceToken = customResource.properties["ServiceToken"];
111
+ if (serviceToken === undefined) {
112
+ return [];
113
+ }
114
+ return parseSimCfnNode(serviceToken)
115
+ .referencedNames()
116
+ .filter((logicalId) => {
117
+ return (this.#resources.get(logicalId)?.type === lambdaFunctionResourceType);
118
+ });
119
+ }
120
+ }
121
+ /**
122
+ * The custom Resource type this Resource is, when it is one this simulator
123
+ * creates itself rather than by running a provider.
124
+ */
125
+ function simulatedCustomResourceType(resource) {
126
+ const { type } = resource;
127
+ if (type === undefined || !type.startsWith(customResourceTypePrefix)) {
128
+ return undefined;
129
+ }
130
+ const resourceTypeName = type.slice(customResourceTypePrefix.length);
131
+ return simCdkCustomResourceFactories.has(resourceTypeName) ? type : undefined;
132
+ }
133
+ //# sourceMappingURL=sim-cdk-provider-scaffolding.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"sim-cdk-provider-scaffolding.js","sourceRoot":"","sources":["../../../../../src/service/cloudformation/cdk/provider/sim-cdk-provider-scaffolding.ts"],"names":[],"mappings":"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"}
@@ -25,8 +25,13 @@ export declare class SimCdkBucketDeployCopier {
25
25
  constructor(properties: SimCdkBucketDeployCopierProperties);
26
26
  /**
27
27
  * Copy every source directory into the Bucket, then prune what is left over.
28
+ *
29
+ * The keys it deployed are answered rather than kept, because they are what
30
+ * the deployment can say for certain about the Bucket: storage that holds
31
+ * Objects holds their headers with them, and storage that maps them onto
32
+ * files has only the deployment's word for what they are.
28
33
  */
29
- copy(sourceDirectoryPaths: readonly string[]): Promise<void>;
34
+ copy(sourceDirectoryPaths: readonly string[]): Promise<ReadonlySet<string>>;
30
35
  /**
31
36
  * Copy the files one source directory holds and the filters select.
32
37
  */
@@ -1 +1 @@
1
- {"version":3,"file":"sim-cdk-bucket-deploy-copier.d.ts","sourceRoot":"","sources":["../../../../../../../src/service/cloudformation/cdk/s3/bucket-deployment/copy/sim-cdk-bucket-deploy-copier.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,2CAA2C,CAAC;AAE7E,OAAO,KAAK,EAAE,4BAA4B,EAAE,MAAM,iDAAiD,CAAC;AAKpG,UAAU,kCAAkC;IAC1C,QAAQ,CAAC,MAAM,EAAE,WAAW,CAAC;IAC7B,QAAQ,CAAC,UAAU,EAAE,4BAA4B,CAAC;CACnD;AAED;;;;;;;;;;;;GAYG;AACH,qBAAa,wBAAwB;IACnC,OAAO,CAAC,QAAQ,CAAC,UAAU,CAA+B;IAC1D,OAAO,CAAC,QAAQ,CAAC,MAAM,CAA2B;IAClD,OAAO,CAAC,QAAQ,CAAC,IAAI,CAAyB;IAC9C,OAAO,CAAC,QAAQ,CAAC,MAAM,CAA2B;IAElD,YAAY,UAAU,EAAE,kCAAkC,EAYzD;IAED;;OAEG;IACG,IAAI,CAAC,oBAAoB,EAAE,SAAS,MAAM,EAAE,GAAG,OAAO,CAAC,IAAI,CAAC,CAiBjE;IAED;;OAEG;YACW,aAAa;CAa5B"}
1
+ {"version":3,"file":"sim-cdk-bucket-deploy-copier.d.ts","sourceRoot":"","sources":["../../../../../../../src/service/cloudformation/cdk/s3/bucket-deployment/copy/sim-cdk-bucket-deploy-copier.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,2CAA2C,CAAC;AAE7E,OAAO,KAAK,EAAE,4BAA4B,EAAE,MAAM,iDAAiD,CAAC;AAKpG,UAAU,kCAAkC;IAC1C,QAAQ,CAAC,MAAM,EAAE,WAAW,CAAC;IAC7B,QAAQ,CAAC,UAAU,EAAE,4BAA4B,CAAC;CACnD;AAED;;;;;;;;;;;;GAYG;AACH,qBAAa,wBAAwB;IACnC,OAAO,CAAC,QAAQ,CAAC,UAAU,CAA+B;IAC1D,OAAO,CAAC,QAAQ,CAAC,MAAM,CAA2B;IAClD,OAAO,CAAC,QAAQ,CAAC,IAAI,CAAyB;IAC9C,OAAO,CAAC,QAAQ,CAAC,MAAM,CAA2B;IAElD,YAAY,UAAU,EAAE,kCAAkC,EAYzD;IAED;;;;;;;OAOG;IACG,IAAI,CACR,oBAAoB,EAAE,SAAS,MAAM,EAAE,GACtC,OAAO,CAAC,WAAW,CAAC,MAAM,CAAC,CAAC,CAmB9B;IAED;;OAEG;YACW,aAAa;CAa5B"}
@@ -35,13 +35,18 @@ export class SimCdkBucketDeployCopier {
35
35
  }
36
36
  /**
37
37
  * Copy every source directory into the Bucket, then prune what is left over.
38
+ *
39
+ * The keys it deployed are answered rather than kept, because they are what
40
+ * the deployment can say for certain about the Bucket: storage that holds
41
+ * Objects holds their headers with them, and storage that maps them onto
42
+ * files has only the deployment's word for what they are.
38
43
  */
39
44
  async copy(sourceDirectoryPaths) {
40
45
  const deployedKeys = new Set();
41
46
  // One source at a time, because two of them can hold the same path and the
42
47
  // sync the provider function runs lets the later one win.
43
48
  for (const sourceDirectoryPath of sourceDirectoryPaths) {
44
- // eslint-disable-next-line no-await-in-loop -- sources are copied in the order the deployment lists them
49
+ // oxlint-disable-next-line no-await-in-loop -- sources are copied in the order the deployment lists them
45
50
  const keys = await this.copyDirectory(sourceDirectoryPath);
46
51
  for (const key of keys) {
47
52
  deployedKeys.add(key);
@@ -50,6 +55,7 @@ export class SimCdkBucketDeployCopier {
50
55
  if (this.properties.prune) {
51
56
  await this.pruner.prune(deployedKeys);
52
57
  }
58
+ return deployedKeys;
53
59
  }
54
60
  /**
55
61
  * Copy the files one source directory holds and the filters select.
@@ -1 +1 @@
1
- {"version":3,"file":"sim-cdk-bucket-deploy-copier.js","sourceRoot":"","sources":["../../../../../../../src/service/cloudformation/cdk/s3/bucket-deployment/copy/sim-cdk-bucket-deploy-copier.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,wBAAwB,EAAE,MAAM,2CAA2C,CAAC;AAErF,OAAO,EAAE,sBAAsB,EAAE,MAAM,iCAAiC,CAAC;AACzE,OAAO,EAAE,uBAAuB,EAAE,MAAM,kCAAkC,CAAC;AAC3E,OAAO,EAAE,wBAAwB,EAAE,MAAM,mCAAmC,CAAC;AAO7E;;;;;;;;;;;;GAYG;AACH,MAAM,OAAO,wBAAwB;IAClB,UAAU,CAA+B;IACzC,MAAM,CAA2B;IACjC,IAAI,CAAyB;IAC7B,MAAM,CAA2B;IAElD,YAAY,UAA8C;QACxD,IAAI,CAAC,UAAU,GAAG,UAAU,CAAC,UAAU,CAAC;QACxC,IAAI,CAAC,MAAM,GAAG,IAAI,wBAAwB,CAAC;YACzC,OAAO,EAAE,IAAI,CAAC,UAAU,CAAC,OAAO;YAChC,OAAO,EAAE,IAAI,CAAC,UAAU,CAAC,OAAO;SACjC,CAAC,CAAC;QACH,IAAI,CAAC,IAAI,GAAG,IAAI,sBAAsB,CAAC,UAAU,CAAC,CAAC;QACnD,IAAI,CAAC,MAAM,GAAG,IAAI,wBAAwB,CAAC;YACzC,MAAM,EAAE,UAAU,CAAC,MAAM;YACzB,MAAM,EAAE,IAAI,CAAC,MAAM;YACnB,SAAS,EAAE,IAAI,CAAC,UAAU,CAAC,oBAAoB;SAChD,CAAC,CAAC;IACL,CAAC;IAED;;OAEG;IACH,KAAK,CAAC,IAAI,CAAC,oBAAuC;QAChD,MAAM,YAAY,GAAG,IAAI,GAAG,EAAU,CAAC;QAEvC,2EAA2E;QAC3E,0DAA0D;QAC1D,KAAK,MAAM,mBAAmB,IAAI,oBAAoB,EAAE,CAAC;YACvD,yGAAyG;YACzG,MAAM,IAAI,GAAG,MAAM,IAAI,CAAC,aAAa,CAAC,mBAAmB,CAAC,CAAC;YAE3D,KAAK,MAAM,GAAG,IAAI,IAAI,EAAE,CAAC;gBACvB,YAAY,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC;YACxB,CAAC;QACH,CAAC;QAED,IAAI,IAAI,CAAC,UAAU,CAAC,KAAK,EAAE,CAAC;YAC1B,MAAM,IAAI,CAAC,MAAM,CAAC,KAAK,CAAC,YAAY,CAAC,CAAC;QACxC,CAAC;IACH,CAAC;IAED;;OAEG;IACK,KAAK,CAAC,aAAa,CACzB,mBAA2B;QAE3B,MAAM,aAAa,GAAG,MAAM,uBAAuB,CAAC,mBAAmB,CAAC,CAAC;QAEzE,OAAO,MAAM,OAAO,CAAC,GAAG,CACtB,aAAa;aACV,MAAM,CAAC,CAAC,YAAY,EAAE,EAAE,CAAC,IAAI,CAAC,MAAM,CAAC,QAAQ,CAAC,YAAY,CAAC,CAAC;aAC5D,GAAG,CAAC,KAAK,EAAE,YAAY,EAAE,EAAE,CAC1B,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,mBAAmB,EAAE,YAAY,CAAC,CAClD,CACJ,CAAC;IACJ,CAAC;CACF"}
1
+ {"version":3,"file":"sim-cdk-bucket-deploy-copier.js","sourceRoot":"","sources":["../../../../../../../src/service/cloudformation/cdk/s3/bucket-deployment/copy/sim-cdk-bucket-deploy-copier.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,wBAAwB,EAAE,MAAM,2CAA2C,CAAC;AAErF,OAAO,EAAE,sBAAsB,EAAE,MAAM,iCAAiC,CAAC;AACzE,OAAO,EAAE,uBAAuB,EAAE,MAAM,kCAAkC,CAAC;AAC3E,OAAO,EAAE,wBAAwB,EAAE,MAAM,mCAAmC,CAAC;AAO7E;;;;;;;;;;;;GAYG;AACH,MAAM,OAAO,wBAAwB;IAClB,UAAU,CAA+B;IACzC,MAAM,CAA2B;IACjC,IAAI,CAAyB;IAC7B,MAAM,CAA2B;IAElD,YAAY,UAA8C;QACxD,IAAI,CAAC,UAAU,GAAG,UAAU,CAAC,UAAU,CAAC;QACxC,IAAI,CAAC,MAAM,GAAG,IAAI,wBAAwB,CAAC;YACzC,OAAO,EAAE,IAAI,CAAC,UAAU,CAAC,OAAO;YAChC,OAAO,EAAE,IAAI,CAAC,UAAU,CAAC,OAAO;SACjC,CAAC,CAAC;QACH,IAAI,CAAC,IAAI,GAAG,IAAI,sBAAsB,CAAC,UAAU,CAAC,CAAC;QACnD,IAAI,CAAC,MAAM,GAAG,IAAI,wBAAwB,CAAC;YACzC,MAAM,EAAE,UAAU,CAAC,MAAM;YACzB,MAAM,EAAE,IAAI,CAAC,MAAM;YACnB,SAAS,EAAE,IAAI,CAAC,UAAU,CAAC,oBAAoB;SAChD,CAAC,CAAC;IACL,CAAC;IAED;;;;;;;OAOG;IACH,KAAK,CAAC,IAAI,CACR,oBAAuC;QAEvC,MAAM,YAAY,GAAG,IAAI,GAAG,EAAU,CAAC;QAEvC,2EAA2E;QAC3E,0DAA0D;QAC1D,KAAK,MAAM,mBAAmB,IAAI,oBAAoB,EAAE,CAAC;YACvD,yGAAyG;YACzG,MAAM,IAAI,GAAG,MAAM,IAAI,CAAC,aAAa,CAAC,mBAAmB,CAAC,CAAC;YAE3D,KAAK,MAAM,GAAG,IAAI,IAAI,EAAE,CAAC;gBACvB,YAAY,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC;YACxB,CAAC;QACH,CAAC;QAED,IAAI,IAAI,CAAC,UAAU,CAAC,KAAK,EAAE,CAAC;YAC1B,MAAM,IAAI,CAAC,MAAM,CAAC,KAAK,CAAC,YAAY,CAAC,CAAC;QACxC,CAAC;QAED,OAAO,YAAY,CAAC;IACtB,CAAC;IAED;;OAEG;IACK,KAAK,CAAC,aAAa,CACzB,mBAA2B;QAE3B,MAAM,aAAa,GAAG,MAAM,uBAAuB,CAAC,mBAAmB,CAAC,CAAC;QAEzE,OAAO,MAAM,OAAO,CAAC,GAAG,CACtB,aAAa;aACV,MAAM,CAAC,CAAC,YAAY,EAAE,EAAE,CAAC,IAAI,CAAC,MAAM,CAAC,QAAQ,CAAC,YAAY,CAAC,CAAC;aAC5D,GAAG,CAAC,KAAK,EAAE,YAAY,EAAE,EAAE,CAC1B,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,mBAAmB,EAAE,YAAY,CAAC,CAClD,CACJ,CAAC;IACJ,CAAC;CACF"}
@@ -20,7 +20,7 @@ export class SimCdkBucketDeployFile {
20
20
  */
21
21
  async copy(sourceDirectoryPath, relativePath) {
22
22
  const key = this.properties.objectKey(relativePath);
23
- // eslint-disable-next-line security/detect-non-literal-fs-filename
23
+ // oxlint-disable-next-line security/detect-non-literal-fs-filename
24
24
  const body = await readFile(path.join(sourceDirectoryPath, relativePath));
25
25
  await this.bucket.putObject(new SimS3Object({ key, body, metadata: this.metadata(relativePath) }));
26
26
  return key;
@@ -15,7 +15,7 @@ export async function simCdkBucketDeployFiles(directoryPath) {
15
15
  return await filesUnder(directoryPath, directoryPath);
16
16
  }
17
17
  async function filesUnder(rootPath, directoryPath) {
18
- // eslint-disable-next-line security/detect-non-literal-fs-filename
18
+ // oxlint-disable-next-line security/detect-non-literal-fs-filename
19
19
  const entries = await readdir(directoryPath, { withFileTypes: true });
20
20
  const relativePaths = [];
21
21
  const nested = [];
@@ -55,7 +55,7 @@ async function linkedFile(rootPath, entryPath) {
55
55
  async function linkedStats(entryPath) {
56
56
  try {
57
57
  // `stat` rather than `lstat`, so the link is followed to what it names.
58
- // eslint-disable-next-line security/detect-non-literal-fs-filename
58
+ // oxlint-disable-next-line security/detect-non-literal-fs-filename
59
59
  return await stat(entryPath);
60
60
  }
61
61
  catch {
@@ -0,0 +1,14 @@
1
+ import type { SimS3Bucket } from "../../../../../s3/bucket/sim-s3-bucket.js";
2
+ import type { SimCfnResource, SimCloudFormationResourceCreateContext } from "../../../../resource/sim-cfn-resource.js";
3
+ import type { SimCdkBucketDeployProperties } from "../property/sim-cdk-bucket-deploy-properties.js";
4
+ /**
5
+ * The simulated Bucket a deployment publishes into.
6
+ *
7
+ * A deployment names its destination rather than referring to it, so the Bucket
8
+ * is found by name, in the account and Region the Resource itself belongs to.
9
+ * It has to be there: the provider function runs after the Bucket is created,
10
+ * and a deployment into a Bucket that does not exist is a template saying
11
+ * something that cannot happen rather than something to work around.
12
+ */
13
+ export declare function simCdkBucketDeployDestination(resource: SimCfnResource, properties: SimCdkBucketDeployProperties, context: SimCloudFormationResourceCreateContext): SimS3Bucket;
14
+ //# sourceMappingURL=sim-cdk-bucket-deploy-destination.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"sim-cdk-bucket-deploy-destination.d.ts","sourceRoot":"","sources":["../../../../../../../src/service/cloudformation/cdk/s3/bucket-deployment/destination/sim-cdk-bucket-deploy-destination.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,2CAA2C,CAAC;AAC7E,OAAO,KAAK,EACV,cAAc,EACd,sCAAsC,EACvC,MAAM,0CAA0C,CAAC;AAClD,OAAO,KAAK,EAAE,4BAA4B,EAAE,MAAM,iDAAiD,CAAC;AAEpG;;;;;;;;GAQG;AACH,wBAAgB,6BAA6B,CAC3C,QAAQ,EAAE,cAAc,EACxB,UAAU,EAAE,4BAA4B,EACxC,OAAO,EAAE,sCAAsC,GAC9C,WAAW,CAab"}
@@ -0,0 +1,20 @@
1
+ import { assertDefined } from "../../../../../../util/type-guard/defined.js";
2
+ /**
3
+ * The simulated Bucket a deployment publishes into.
4
+ *
5
+ * A deployment names its destination rather than referring to it, so the Bucket
6
+ * is found by name, in the account and Region the Resource itself belongs to.
7
+ * It has to be there: the provider function runs after the Bucket is created,
8
+ * and a deployment into a Bucket that does not exist is a template saying
9
+ * something that cannot happen rather than something to work around.
10
+ */
11
+ export function simCdkBucketDeployDestination(resource, properties, context) {
12
+ const { accountId, regionName } = resource.accountRegionScope;
13
+ const bucket = context.simAws
14
+ .accountRegionScope(accountId, regionName)
15
+ .s3()
16
+ .getSimBucketByName(properties.destinationBucketName);
17
+ assertDefined(bucket, `Custom::CDKBucketDeployment destination Bucket ${properties.destinationBucketName} does not exist`);
18
+ return bucket;
19
+ }
20
+ //# sourceMappingURL=sim-cdk-bucket-deploy-destination.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"sim-cdk-bucket-deploy-destination.js","sourceRoot":"","sources":["../../../../../../../src/service/cloudformation/cdk/s3/bucket-deployment/destination/sim-cdk-bucket-deploy-destination.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,8CAA8C,CAAC;AAQ7E;;;;;;;;GAQG;AACH,MAAM,UAAU,6BAA6B,CAC3C,QAAwB,EACxB,UAAwC,EACxC,OAA+C;IAE/C,MAAM,EAAE,SAAS,EAAE,UAAU,EAAE,GAAG,QAAQ,CAAC,kBAAkB,CAAC;IAC9D,MAAM,MAAM,GAAG,OAAO,CAAC,MAAM;SAC1B,kBAAkB,CAAC,SAAS,EAAE,UAAU,CAAC;SACzC,EAAE,EAAE;SACJ,kBAAkB,CAAC,UAAU,CAAC,qBAAqB,CAAC,CAAC;IAExD,aAAa,CACX,MAAM,EACN,kDAAkD,UAAU,CAAC,qBAAqB,iBAAiB,CACpG,CAAC;IAEF,OAAO,MAAM,CAAC;AAChB,CAAC"}
@@ -65,12 +65,18 @@ function filterExpression(pattern) {
65
65
  // Runs of stars collapse to one first. A star already crosses `/`, so `**`
66
66
  // means what `*` means, and leaving it would compile to `.*.*` and give the
67
67
  // engine a needless amount of backtracking to do on a long near miss.
68
+ //
69
+ // Stars the pattern keeps apart still compile to a `.*` each, and enough of
70
+ // those is slow on a near miss whatever the runs do. That is left alone: a
71
+ // filter pattern is written into a `BucketDeployment` by whoever wrote the
72
+ // template, never carried on a request, so the only run a pathological one
73
+ // can hold up is their own.
68
74
  const expression = pattern
69
75
  .replaceAll(/\*+/gu, "*")
70
76
  .replaceAll(/[$()*+.?[\\\]^{|}]/gu, String.raw `\$&`)
71
77
  .replaceAll(String.raw `\*`, ".*")
72
78
  .replaceAll(String.raw `\?`, ".");
73
- // eslint-disable-next-line security/detect-non-literal-regexp -- built from an escaped template pattern, not from anything a request carries
79
+ // oxlint-disable-next-line security/detect-non-literal-regexp -- built from an escaped template pattern, not from anything a request carries
74
80
  return new RegExp(`^${expression}$`, "u");
75
81
  }
76
82
  //# sourceMappingURL=sim-cdk-bucket-deploy-filter.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"sim-cdk-bucket-deploy-filter.js","sourceRoot":"","sources":["../../../../../../../src/service/cloudformation/cdk/s3/bucket-deployment/filter/sim-cdk-bucket-deploy-filter.ts"],"names":[],"mappings":"AAKA;;;;;;;;;;;;GAYG;AACH,MAAM,OAAO,wBAAwB;IAClB,KAAK,CAAwB;IAE9C,YAAY,UAA8C;QACxD,IAAI,CAAC,KAAK,GAAG;YACX,GAAG,UAAU,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC,OAAO,EAAE,EAAE,CAAC,IAAI,UAAU,CAAC,OAAO,EAAE,KAAK,CAAC,CAAC;YACtE,GAAG,UAAU,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC,OAAO,EAAE,EAAE,CAAC,IAAI,UAAU,CAAC,OAAO,EAAE,IAAI,CAAC,CAAC;SACtE,CAAC;IACJ,CAAC;IAED;;OAEG;IACH,QAAQ,CAAC,YAAoB;QAC3B,IAAI,QAAQ,GAAG,IAAI,CAAC;QAEpB,KAAK,MAAM,IAAI,IAAI,IAAI,CAAC,KAAK,EAAE,CAAC;YAC9B,IAAI,IAAI,CAAC,OAAO,CAAC,YAAY,CAAC,EAAE,CAAC;gBAC/B,QAAQ,GAAG,IAAI,CAAC,QAAQ,CAAC;YAC3B,CAAC;QACH,CAAC;QAED,OAAO,QAAQ,CAAC;IAClB,CAAC;CACF;AAED,MAAM,UAAU;IAKH,QAAQ;IAJF,UAAU,CAAS;IAEpC,YACE,OAAe,EACN,QAAiB;wBAAjB,QAAQ;QAEjB,IAAI,CAAC,UAAU,GAAG,gBAAgB,CAAC,OAAO,CAAC,CAAC;IAC9C,CAAC;IAED,OAAO,CAAC,YAAoB;QAC1B,OAAO,IAAI,CAAC,UAAU,CAAC,IAAI,CAAC,YAAY,CAAC,CAAC;IAC5C,CAAC;CACF;AAED;;;;;;;;;GASG;AACH,SAAS,gBAAgB,CAAC,OAAe;IACvC,IAAI,OAAO,CAAC,QAAQ,CAAC,GAAG,CAAC,EAAE,CAAC;QAC1B,MAAM,IAAI,KAAK,CACb,2CAA2C,OAAO,oBAAoB;YACpE,0DAA0D,CAC7D,CAAC;IACJ,CAAC;IAED,uEAAuE;IACvE,4EAA4E;IAC5E,+DAA+D;IAC/D,EAAE;IACF,2EAA2E;IAC3E,4EAA4E;IAC5E,sEAAsE;IACtE,MAAM,UAAU,GAAG,OAAO;SACvB,UAAU,CAAC,OAAO,EAAE,GAAG,CAAC;SACxB,UAAU,CAAC,sBAAsB,EAAE,MAAM,CAAC,GAAG,CAAA,KAAK,CAAC;SACnD,UAAU,CAAC,MAAM,CAAC,GAAG,CAAA,IAAI,EAAE,IAAI,CAAC;SAChC,UAAU,CAAC,MAAM,CAAC,GAAG,CAAA,IAAI,EAAE,GAAG,CAAC,CAAC;IAEnC,6IAA6I;IAC7I,OAAO,IAAI,MAAM,CAAC,IAAI,UAAU,GAAG,EAAE,GAAG,CAAC,CAAC;AAC5C,CAAC"}
1
+ {"version":3,"file":"sim-cdk-bucket-deploy-filter.js","sourceRoot":"","sources":["../../../../../../../src/service/cloudformation/cdk/s3/bucket-deployment/filter/sim-cdk-bucket-deploy-filter.ts"],"names":[],"mappings":"AAKA;;;;;;;;;;;;GAYG;AACH,MAAM,OAAO,wBAAwB;IAClB,KAAK,CAAwB;IAE9C,YAAY,UAA8C;QACxD,IAAI,CAAC,KAAK,GAAG;YACX,GAAG,UAAU,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC,OAAO,EAAE,EAAE,CAAC,IAAI,UAAU,CAAC,OAAO,EAAE,KAAK,CAAC,CAAC;YACtE,GAAG,UAAU,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC,OAAO,EAAE,EAAE,CAAC,IAAI,UAAU,CAAC,OAAO,EAAE,IAAI,CAAC,CAAC;SACtE,CAAC;IACJ,CAAC;IAED;;OAEG;IACH,QAAQ,CAAC,YAAoB;QAC3B,IAAI,QAAQ,GAAG,IAAI,CAAC;QAEpB,KAAK,MAAM,IAAI,IAAI,IAAI,CAAC,KAAK,EAAE,CAAC;YAC9B,IAAI,IAAI,CAAC,OAAO,CAAC,YAAY,CAAC,EAAE,CAAC;gBAC/B,QAAQ,GAAG,IAAI,CAAC,QAAQ,CAAC;YAC3B,CAAC;QACH,CAAC;QAED,OAAO,QAAQ,CAAC;IAClB,CAAC;CACF;AAED,MAAM,UAAU;IAKH,QAAQ;IAJF,UAAU,CAAS;IAEpC,YACE,OAAe,EACN,QAAiB;wBAAjB,QAAQ;QAEjB,IAAI,CAAC,UAAU,GAAG,gBAAgB,CAAC,OAAO,CAAC,CAAC;IAC9C,CAAC;IAED,OAAO,CAAC,YAAoB;QAC1B,OAAO,IAAI,CAAC,UAAU,CAAC,IAAI,CAAC,YAAY,CAAC,CAAC;IAC5C,CAAC;CACF;AAED;;;;;;;;;GASG;AACH,SAAS,gBAAgB,CAAC,OAAe;IACvC,IAAI,OAAO,CAAC,QAAQ,CAAC,GAAG,CAAC,EAAE,CAAC;QAC1B,MAAM,IAAI,KAAK,CACb,2CAA2C,OAAO,oBAAoB;YACpE,0DAA0D,CAC7D,CAAC;IACJ,CAAC;IAED,uEAAuE;IACvE,4EAA4E;IAC5E,+DAA+D;IAC/D,EAAE;IACF,2EAA2E;IAC3E,4EAA4E;IAC5E,sEAAsE;IACtE,EAAE;IACF,4EAA4E;IAC5E,2EAA2E;IAC3E,2EAA2E;IAC3E,2EAA2E;IAC3E,4BAA4B;IAC5B,MAAM,UAAU,GAAG,OAAO;SACvB,UAAU,CAAC,OAAO,EAAE,GAAG,CAAC;SACxB,UAAU,CAAC,sBAAsB,EAAE,MAAM,CAAC,GAAG,CAAA,KAAK,CAAC;SACnD,UAAU,CAAC,MAAM,CAAC,GAAG,CAAA,IAAI,EAAE,IAAI,CAAC;SAChC,UAAU,CAAC,MAAM,CAAC,GAAG,CAAA,IAAI,EAAE,GAAG,CAAC,CAAC;IAEnC,6IAA6I;IAC7I,OAAO,IAAI,MAAM,CAAC,IAAI,UAAU,GAAG,EAAE,GAAG,CAAC,CAAC;AAC5C,CAAC"}
@@ -0,0 +1,58 @@
1
+ import type { SimCfnResource } from "../../../../resource/sim-cfn-resource.js";
2
+ import type { SimS3Bucket } from "../../../../../s3/bucket/sim-s3-bucket.js";
3
+ import type { SimS3SystemMetadataDeclaration } from "../../../../../s3/object/s3-system-metadata-declaration.type.js";
4
+ import { type SimS3SystemMetadataValues } from "../../../../../s3/object/s3-system-metadata.js";
5
+ import type { SimCdkBucketDeployProperties } from "../property/sim-cdk-bucket-deploy-properties.js";
6
+ interface SimCdkBucketDeployMetadataProperties {
7
+ readonly properties: SimCdkBucketDeployProperties;
8
+ /** The Object keys this deployment put into the Bucket. */
9
+ readonly publishedKeys: ReadonlySet<string>;
10
+ }
11
+ /**
12
+ * What a `BucketDeployment` says S3 reports about the Objects it published.
13
+ *
14
+ * The deployment sets these headers on each Object it copies, and an Object
15
+ * keeps them, so nothing reads this while the Bucket is holding what was
16
+ * deployed. It is read when the storage under those Objects is replaced by a
17
+ * mounted directory, which is the local development arrangement: the site is
18
+ * served out of the generator's output as it is rebuilt, from the Bucket the
19
+ * deployment describes, and the files on disk carry none of what it set.
20
+ *
21
+ * The keys it published are what it is sure of. Its destination prefix and its
22
+ * filters are the rule behind them, which is all there is to go on for a file a
23
+ * later build added, and is a guess rather than a fact: two deployments can
24
+ * publish into one prefix and be told apart only by what their sources hold.
25
+ */
26
+ export declare class SimCdkBucketDeployMetadata implements SimS3SystemMetadataDeclaration {
27
+ readonly metadata: SimS3SystemMetadataValues;
28
+ private readonly keyPrefix;
29
+ private readonly filter;
30
+ private readonly publishedKeys;
31
+ constructor(properties: SimCdkBucketDeployMetadataProperties);
32
+ /** Whether this deployment put the Object under a key into the Bucket. */
33
+ describes(objectKey: string): boolean;
34
+ /**
35
+ * Whether this deployment would publish a file under a key.
36
+ *
37
+ * The deployment's own rule: under its destination prefix, and selected by
38
+ * its filters, matched against the path relative to the prefix the way the
39
+ * sync matches it against the path relative to the source root.
40
+ */
41
+ wouldDescribe(objectKey: string): boolean;
42
+ }
43
+ interface SimCdkBucketDeployDeclareProperties extends SimCdkBucketDeployMetadataProperties {
44
+ readonly bucket: SimS3Bucket;
45
+ readonly resource: SimCfnResource;
46
+ }
47
+ /**
48
+ * Tell the destination Bucket what this deployment publishes.
49
+ *
50
+ * The declaration is kept against the Resource it came from, so a Stack
51
+ * redeployed into a running simulator is the same deployment saying its headers
52
+ * again rather than a second one agreeing with it. Two deployments into one
53
+ * Bucket are two Resources and keep two declarations, which is what lets each
54
+ * describe its own files.
55
+ */
56
+ export declare function declareSimCdkBucketDeployMetadata(properties: SimCdkBucketDeployDeclareProperties): void;
57
+ export {};
58
+ //# sourceMappingURL=sim-cdk-bucket-deploy-metadata.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"sim-cdk-bucket-deploy-metadata.d.ts","sourceRoot":"","sources":["../../../../../../../src/service/cloudformation/cdk/s3/bucket-deployment/metadata/sim-cdk-bucket-deploy-metadata.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,0CAA0C,CAAC;AAC/E,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,2CAA2C,CAAC;AAC7E,OAAO,KAAK,EAAE,8BAA8B,EAAE,MAAM,iEAAiE,CAAC;AACtH,OAAO,EAEL,KAAK,yBAAyB,EAC/B,MAAM,gDAAgD,CAAC;AAExD,OAAO,KAAK,EAAE,4BAA4B,EAAE,MAAM,iDAAiD,CAAC;AAEpG,UAAU,oCAAoC;IAC5C,QAAQ,CAAC,UAAU,EAAE,4BAA4B,CAAC;IAElD,2DAA2D;IAC3D,QAAQ,CAAC,aAAa,EAAE,WAAW,CAAC,MAAM,CAAC,CAAC;CAC7C;AAED;;;;;;;;;;;;;;GAcG;AACH,qBAAa,0BAA2B,YAAW,8BAA8B;IAC/E,QAAQ,CAAC,QAAQ,EAAE,yBAAyB,CAAC;IAE7C,OAAO,CAAC,QAAQ,CAAC,SAAS,CAAS;IACnC,OAAO,CAAC,QAAQ,CAAC,MAAM,CAA2B;IAClD,OAAO,CAAC,QAAQ,CAAC,aAAa,CAAsB;IAEpD,YAAY,UAAU,EAAE,oCAAoC,EAU3D;IAED,0EAA0E;IAC1E,SAAS,CAAC,SAAS,EAAE,MAAM,GAAG,OAAO,CAEpC;IAED;;;;;;OAMG;IACH,aAAa,CAAC,SAAS,EAAE,MAAM,GAAG,OAAO,CAKxC;CACF;AAED,UAAU,mCAAoC,SAAQ,oCAAoC;IACxF,QAAQ,CAAC,MAAM,EAAE,WAAW,CAAC;IAC7B,QAAQ,CAAC,QAAQ,EAAE,cAAc,CAAC;CACnC;AAED;;;;;;;;GAQG;AACH,wBAAgB,iCAAiC,CAC/C,UAAU,EAAE,mCAAmC,GAC9C,IAAI,CAON"}
@@ -0,0 +1,65 @@
1
+ import { simS3SystemMetadataValues, } from "../../../../../s3/object/s3-system-metadata.js";
2
+ import { SimCdkBucketDeployFilter } from "../filter/sim-cdk-bucket-deploy-filter.js";
3
+ /**
4
+ * What a `BucketDeployment` says S3 reports about the Objects it published.
5
+ *
6
+ * The deployment sets these headers on each Object it copies, and an Object
7
+ * keeps them, so nothing reads this while the Bucket is holding what was
8
+ * deployed. It is read when the storage under those Objects is replaced by a
9
+ * mounted directory, which is the local development arrangement: the site is
10
+ * served out of the generator's output as it is rebuilt, from the Bucket the
11
+ * deployment describes, and the files on disk carry none of what it set.
12
+ *
13
+ * The keys it published are what it is sure of. Its destination prefix and its
14
+ * filters are the rule behind them, which is all there is to go on for a file a
15
+ * later build added, and is a guess rather than a fact: two deployments can
16
+ * publish into one prefix and be told apart only by what their sources hold.
17
+ */
18
+ export class SimCdkBucketDeployMetadata {
19
+ metadata;
20
+ keyPrefix;
21
+ filter;
22
+ publishedKeys;
23
+ constructor(properties) {
24
+ const deployProperties = properties.properties;
25
+ this.keyPrefix = deployProperties.destinationKeyPrefix;
26
+ this.filter = new SimCdkBucketDeployFilter({
27
+ exclude: deployProperties.exclude,
28
+ include: deployProperties.include,
29
+ });
30
+ this.metadata = simS3SystemMetadataValues(deployProperties.systemMetadata);
31
+ this.publishedKeys = properties.publishedKeys;
32
+ }
33
+ /** Whether this deployment put the Object under a key into the Bucket. */
34
+ describes(objectKey) {
35
+ return this.publishedKeys.has(objectKey);
36
+ }
37
+ /**
38
+ * Whether this deployment would publish a file under a key.
39
+ *
40
+ * The deployment's own rule: under its destination prefix, and selected by
41
+ * its filters, matched against the path relative to the prefix the way the
42
+ * sync matches it against the path relative to the source root.
43
+ */
44
+ wouldDescribe(objectKey) {
45
+ return (objectKey.startsWith(this.keyPrefix) &&
46
+ this.filter.includes(objectKey.slice(this.keyPrefix.length)));
47
+ }
48
+ }
49
+ /**
50
+ * Tell the destination Bucket what this deployment publishes.
51
+ *
52
+ * The declaration is kept against the Resource it came from, so a Stack
53
+ * redeployed into a running simulator is the same deployment saying its headers
54
+ * again rather than a second one agreeing with it. Two deployments into one
55
+ * Bucket are two Resources and keep two declarations, which is what lets each
56
+ * describe its own files.
57
+ */
58
+ export function declareSimCdkBucketDeployMetadata(properties) {
59
+ const { resource } = properties;
60
+ const source = `Custom::CDKBucketDeployment ${resource.stackName ?? "-"}.${resource.logicalId}`;
61
+ properties.bucket
62
+ .getDeclaredSystemMetadata()
63
+ .declare(source, new SimCdkBucketDeployMetadata(properties));
64
+ }
65
+ //# sourceMappingURL=sim-cdk-bucket-deploy-metadata.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"sim-cdk-bucket-deploy-metadata.js","sourceRoot":"","sources":["../../../../../../../src/service/cloudformation/cdk/s3/bucket-deployment/metadata/sim-cdk-bucket-deploy-metadata.ts"],"names":[],"mappings":"AAGA,OAAO,EACL,yBAAyB,GAE1B,MAAM,gDAAgD,CAAC;AACxD,OAAO,EAAE,wBAAwB,EAAE,MAAM,2CAA2C,CAAC;AAUrF;;;;;;;;;;;;;;GAcG;AACH,MAAM,OAAO,0BAA0B;IAC5B,QAAQ,CAA4B;IAE5B,SAAS,CAAS;IAClB,MAAM,CAA2B;IACjC,aAAa,CAAsB;IAEpD,YAAY,UAAgD;QAC1D,MAAM,gBAAgB,GAAG,UAAU,CAAC,UAAU,CAAC;QAE/C,IAAI,CAAC,SAAS,GAAG,gBAAgB,CAAC,oBAAoB,CAAC;QACvD,IAAI,CAAC,MAAM,GAAG,IAAI,wBAAwB,CAAC;YACzC,OAAO,EAAE,gBAAgB,CAAC,OAAO;YACjC,OAAO,EAAE,gBAAgB,CAAC,OAAO;SAClC,CAAC,CAAC;QACH,IAAI,CAAC,QAAQ,GAAG,yBAAyB,CAAC,gBAAgB,CAAC,cAAc,CAAC,CAAC;QAC3E,IAAI,CAAC,aAAa,GAAG,UAAU,CAAC,aAAa,CAAC;IAChD,CAAC;IAED,0EAA0E;IAC1E,SAAS,CAAC,SAAiB;QACzB,OAAO,IAAI,CAAC,aAAa,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3C,CAAC;IAED;;;;;;OAMG;IACH,aAAa,CAAC,SAAiB;QAC7B,OAAO,CACL,SAAS,CAAC,UAAU,CAAC,IAAI,CAAC,SAAS,CAAC;YACpC,IAAI,CAAC,MAAM,CAAC,QAAQ,CAAC,SAAS,CAAC,KAAK,CAAC,IAAI,CAAC,SAAS,CAAC,MAAM,CAAC,CAAC,CAC7D,CAAC;IACJ,CAAC;CACF;AAOD;;;;;;;;GAQG;AACH,MAAM,UAAU,iCAAiC,CAC/C,UAA+C;IAE/C,MAAM,EAAE,QAAQ,EAAE,GAAG,UAAU,CAAC;IAChC,MAAM,MAAM,GAAG,+BAA+B,QAAQ,CAAC,SAAS,IAAI,GAAG,IAAI,QAAQ,CAAC,SAAS,EAAE,CAAC;IAEhG,UAAU,CAAC,MAAM;SACd,yBAAyB,EAAE;SAC3B,OAAO,CAAC,MAAM,EAAE,IAAI,0BAA0B,CAAC,UAAU,CAAC,CAAC,CAAC;AACjE,CAAC"}