@kensio/yulin 1.1.0 → 1.2.0

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 (424) hide show
  1. package/dist/service/aws/factory/sim-aws-account-region-service-builder.d.ts +2 -2
  2. package/dist/service/aws/factory/sim-aws-account-region-service-builder.d.ts.map +1 -1
  3. package/dist/service/aws/factory/sim-aws-account-region-service-builder.js +10 -6
  4. package/dist/service/aws/factory/sim-aws-account-region-service-builder.js.map +1 -1
  5. package/dist/service/aws/factory/sim-aws-account-service-cache.d.ts.map +1 -1
  6. package/dist/service/aws/factory/sim-aws-account-service-cache.js +2 -0
  7. package/dist/service/aws/factory/sim-aws-account-service-cache.js.map +1 -1
  8. package/dist/service/cloudformation/cdk/s3/bucket-notifications/configuration/sim-cdk-bucket-notification-configuration.d.ts +2 -0
  9. package/dist/service/cloudformation/cdk/s3/bucket-notifications/configuration/sim-cdk-bucket-notification-configuration.d.ts.map +1 -1
  10. package/dist/service/cloudformation/cdk/s3/bucket-notifications/configuration/sim-cdk-bucket-notification-configuration.js +15 -1
  11. package/dist/service/cloudformation/cdk/s3/bucket-notifications/configuration/sim-cdk-bucket-notification-configuration.js.map +1 -1
  12. package/dist/service/cloudformation/template/condition/sim-cfn-condition-comparison.d.ts +27 -0
  13. package/dist/service/cloudformation/template/condition/sim-cfn-condition-comparison.d.ts.map +1 -0
  14. package/dist/service/cloudformation/template/condition/sim-cfn-condition-comparison.js +44 -0
  15. package/dist/service/cloudformation/template/condition/sim-cfn-condition-comparison.js.map +1 -0
  16. package/dist/service/cloudformation/template/condition/sim-cfn-condition-evaluator.d.ts +36 -0
  17. package/dist/service/cloudformation/template/condition/sim-cfn-condition-evaluator.d.ts.map +1 -0
  18. package/dist/service/cloudformation/template/condition/sim-cfn-condition-evaluator.js +68 -0
  19. package/dist/service/cloudformation/template/condition/sim-cfn-condition-evaluator.js.map +1 -0
  20. package/dist/service/cloudformation/template/condition/sim-cfn-condition-expression.d.ts +45 -0
  21. package/dist/service/cloudformation/template/condition/sim-cfn-condition-expression.d.ts.map +1 -0
  22. package/dist/service/cloudformation/template/condition/sim-cfn-condition-expression.js +80 -0
  23. package/dist/service/cloudformation/template/condition/sim-cfn-condition-expression.js.map +1 -0
  24. package/dist/service/cloudformation/template/condition/sim-cfn-conditions.d.ts +28 -0
  25. package/dist/service/cloudformation/template/condition/sim-cfn-conditions.d.ts.map +1 -0
  26. package/dist/service/cloudformation/template/condition/sim-cfn-conditions.js +29 -0
  27. package/dist/service/cloudformation/template/condition/sim-cfn-conditions.js.map +1 -0
  28. package/dist/service/cloudformation/template/condition/sim-cfn-resource-conditions.d.ts +46 -0
  29. package/dist/service/cloudformation/template/condition/sim-cfn-resource-conditions.d.ts.map +1 -0
  30. package/dist/service/cloudformation/template/condition/sim-cfn-resource-conditions.js +94 -0
  31. package/dist/service/cloudformation/template/condition/sim-cfn-resource-conditions.js.map +1 -0
  32. package/dist/service/cloudformation/template/node/fn/find-in-map/sim-cfn-fn-find-in-map.d.ts +0 -1
  33. package/dist/service/cloudformation/template/node/fn/find-in-map/sim-cfn-fn-find-in-map.d.ts.map +1 -1
  34. package/dist/service/cloudformation/template/node/fn/find-in-map/sim-cfn-fn-find-in-map.js +2 -14
  35. package/dist/service/cloudformation/template/node/fn/find-in-map/sim-cfn-fn-find-in-map.js.map +1 -1
  36. package/dist/service/cloudformation/template/node/fn/if/sim-cfn-fn-if.d.ts +31 -0
  37. package/dist/service/cloudformation/template/node/fn/if/sim-cfn-fn-if.d.ts.map +1 -0
  38. package/dist/service/cloudformation/template/node/fn/if/sim-cfn-fn-if.js +52 -0
  39. package/dist/service/cloudformation/template/node/fn/if/sim-cfn-fn-if.js.map +1 -0
  40. package/dist/service/cloudformation/template/node/fn/select/sim-cfn-fn-select.d.ts +39 -0
  41. package/dist/service/cloudformation/template/node/fn/select/sim-cfn-fn-select.d.ts.map +1 -0
  42. package/dist/service/cloudformation/template/node/fn/select/sim-cfn-fn-select.js +82 -0
  43. package/dist/service/cloudformation/template/node/fn/select/sim-cfn-fn-select.js.map +1 -0
  44. package/dist/service/cloudformation/template/node/fn/split/sim-cfn-fn-split.d.ts +31 -0
  45. package/dist/service/cloudformation/template/node/fn/split/sim-cfn-fn-split.d.ts.map +1 -0
  46. package/dist/service/cloudformation/template/node/fn/split/sim-cfn-fn-split.js +45 -0
  47. package/dist/service/cloudformation/template/node/fn/split/sim-cfn-fn-split.js.map +1 -0
  48. package/dist/service/cloudformation/template/node/sim-cfn-list.d.ts +1 -1
  49. package/dist/service/cloudformation/template/node/sim-cfn-list.d.ts.map +1 -1
  50. package/dist/service/cloudformation/template/node/sim-cfn-list.js +3 -2
  51. package/dist/service/cloudformation/template/node/sim-cfn-list.js.map +1 -1
  52. package/dist/service/cloudformation/template/node/sim-cfn-object.d.ts.map +1 -1
  53. package/dist/service/cloudformation/template/node/sim-cfn-object.js +5 -1
  54. package/dist/service/cloudformation/template/node/sim-cfn-object.js.map +1 -1
  55. package/dist/service/cloudformation/template/parse/fn/if/sim-cfn-fn-if-parser.d.ts +19 -0
  56. package/dist/service/cloudformation/template/parse/fn/if/sim-cfn-fn-if-parser.d.ts.map +1 -0
  57. package/dist/service/cloudformation/template/parse/fn/if/sim-cfn-fn-if-parser.js +33 -0
  58. package/dist/service/cloudformation/template/parse/fn/if/sim-cfn-fn-if-parser.js.map +1 -0
  59. package/dist/service/cloudformation/template/parse/fn/select/sim-cfn-fn-select-parser.d.ts +26 -0
  60. package/dist/service/cloudformation/template/parse/fn/select/sim-cfn-fn-select-parser.d.ts.map +1 -0
  61. package/dist/service/cloudformation/template/parse/fn/select/sim-cfn-fn-select-parser.js +35 -0
  62. package/dist/service/cloudformation/template/parse/fn/select/sim-cfn-fn-select-parser.js.map +1 -0
  63. package/dist/service/cloudformation/template/parse/fn/sim-cfn-function-parser.d.ts +3 -0
  64. package/dist/service/cloudformation/template/parse/fn/sim-cfn-function-parser.d.ts.map +1 -1
  65. package/dist/service/cloudformation/template/parse/fn/sim-cfn-function-parser.js +18 -0
  66. package/dist/service/cloudformation/template/parse/fn/sim-cfn-function-parser.js.map +1 -1
  67. package/dist/service/cloudformation/template/parse/fn/split/sim-cfn-fn-split-parser.d.ts +25 -0
  68. package/dist/service/cloudformation/template/parse/fn/split/sim-cfn-fn-split-parser.d.ts.map +1 -0
  69. package/dist/service/cloudformation/template/parse/fn/split/sim-cfn-fn-split-parser.js +36 -0
  70. package/dist/service/cloudformation/template/parse/fn/split/sim-cfn-fn-split-parser.js.map +1 -0
  71. package/dist/service/cloudformation/template/resolve/sim-cfn-resolve-context.d.ts +14 -4
  72. package/dist/service/cloudformation/template/resolve/sim-cfn-resolve-context.d.ts.map +1 -1
  73. package/dist/service/cloudformation/template/resolve/sim-cfn-resolve-context.js +7 -5
  74. package/dist/service/cloudformation/template/resolve/sim-cfn-resolve-context.js.map +1 -1
  75. package/dist/service/cloudformation/template/sim-cfn-template-body-validator.d.ts.map +1 -1
  76. package/dist/service/cloudformation/template/sim-cfn-template-body-validator.js +4 -0
  77. package/dist/service/cloudformation/template/sim-cfn-template-body-validator.js.map +1 -1
  78. package/dist/service/cloudformation/template/sim-cfn-template.d.ts +14 -0
  79. package/dist/service/cloudformation/template/sim-cfn-template.d.ts.map +1 -1
  80. package/dist/service/cloudformation/template/sim-cfn-template.js +44 -12
  81. package/dist/service/cloudformation/template/sim-cfn-template.js.map +1 -1
  82. package/dist/service/cloudformation/template/value/sim-cfn-template-value-resolver.d.ts +20 -0
  83. package/dist/service/cloudformation/template/value/sim-cfn-template-value-resolver.d.ts.map +1 -1
  84. package/dist/service/cloudformation/template/value/sim-cfn-template-value-resolver.js +32 -2
  85. package/dist/service/cloudformation/template/value/sim-cfn-template-value-resolver.js.map +1 -1
  86. package/dist/service/cloudformation/template/value/sim-cfn-unresolved-expression.d.ts +11 -0
  87. package/dist/service/cloudformation/template/value/sim-cfn-unresolved-expression.d.ts.map +1 -0
  88. package/dist/service/cloudformation/template/value/sim-cfn-unresolved-expression.js +21 -0
  89. package/dist/service/cloudformation/template/value/sim-cfn-unresolved-expression.js.map +1 -0
  90. package/dist/service/cloudformation/template/value/sim-cfn-value-path.d.ts +22 -0
  91. package/dist/service/cloudformation/template/value/sim-cfn-value-path.d.ts.map +1 -0
  92. package/dist/service/cloudformation/template/value/sim-cfn-value-path.js +92 -0
  93. package/dist/service/cloudformation/template/value/sim-cfn-value-path.js.map +1 -0
  94. package/dist/service/cloudfront/command/create-distribution/create-distribution.command.d.ts +7 -0
  95. package/dist/service/cloudfront/command/create-distribution/create-distribution.command.d.ts.map +1 -1
  96. package/dist/service/cloudfront/command/create-distribution/create-distribution.handler.d.ts +2 -0
  97. package/dist/service/cloudfront/command/create-distribution/create-distribution.handler.d.ts.map +1 -1
  98. package/dist/service/cloudfront/command/create-distribution/create-distribution.handler.js +1 -1
  99. package/dist/service/cloudfront/command/create-distribution/create-distribution.handler.js.map +1 -1
  100. package/dist/service/cloudfront/distribution/configurator/sim-cloud-front-origin-configurator.d.ts +10 -1
  101. package/dist/service/cloudfront/distribution/configurator/sim-cloud-front-origin-configurator.d.ts.map +1 -1
  102. package/dist/service/cloudfront/distribution/configurator/sim-cloud-front-origin-configurator.js +21 -1
  103. package/dist/service/cloudfront/distribution/configurator/sim-cloud-front-origin-configurator.js.map +1 -1
  104. package/dist/service/cloudfront/origin/custom/sim-cf-custom-origin-dispatcher.d.ts +24 -0
  105. package/dist/service/cloudfront/origin/custom/sim-cf-custom-origin-dispatcher.d.ts.map +1 -0
  106. package/dist/service/cloudfront/origin/custom/sim-cf-custom-origin-dispatcher.factory.d.ts +7 -0
  107. package/dist/service/cloudfront/origin/custom/sim-cf-custom-origin-dispatcher.factory.d.ts.map +1 -0
  108. package/dist/service/cloudfront/origin/custom/sim-cf-custom-origin-dispatcher.factory.js +38 -0
  109. package/dist/service/cloudfront/origin/custom/sim-cf-custom-origin-dispatcher.factory.js.map +1 -0
  110. package/dist/service/cloudfront/origin/custom/sim-cf-custom-origin-dispatcher.js +2 -0
  111. package/dist/service/cloudfront/origin/custom/sim-cf-custom-origin-dispatcher.js.map +1 -0
  112. package/dist/service/cloudfront/origin/custom/sim-cf-custom-origin-request.d.ts +17 -0
  113. package/dist/service/cloudfront/origin/custom/sim-cf-custom-origin-request.d.ts.map +1 -0
  114. package/dist/service/cloudfront/origin/custom/sim-cf-custom-origin-request.js +37 -0
  115. package/dist/service/cloudfront/origin/custom/sim-cf-custom-origin-request.js.map +1 -0
  116. package/dist/service/cloudfront/origin/custom/sim-cloudfront-custom-origin.d.ts +38 -0
  117. package/dist/service/cloudfront/origin/custom/sim-cloudfront-custom-origin.d.ts.map +1 -0
  118. package/dist/service/cloudfront/origin/custom/sim-cloudfront-custom-origin.js +45 -0
  119. package/dist/service/cloudfront/origin/custom/sim-cloudfront-custom-origin.js.map +1 -0
  120. package/dist/service/cloudfront/sim-cloudfront.d.ts +3 -0
  121. package/dist/service/cloudfront/sim-cloudfront.d.ts.map +1 -1
  122. package/dist/service/cloudfront/sim-cloudfront.js +4 -1
  123. package/dist/service/cloudfront/sim-cloudfront.js.map +1 -1
  124. package/dist/service/dynamodb/command/sim-dynamodb-command-handlers.d.ts +4 -0
  125. package/dist/service/dynamodb/command/sim-dynamodb-command-handlers.d.ts.map +1 -1
  126. package/dist/service/dynamodb/command/sim-dynamodb-command-handlers.js +2 -0
  127. package/dist/service/dynamodb/command/sim-dynamodb-command-handlers.js.map +1 -1
  128. package/dist/service/dynamodb/command/table/sim-dynamodb-create-table.d.ts +6 -0
  129. package/dist/service/dynamodb/command/table/sim-dynamodb-create-table.d.ts.map +1 -1
  130. package/dist/service/dynamodb/command/table/sim-dynamodb-create-table.js +11 -0
  131. package/dist/service/dynamodb/command/table/sim-dynamodb-create-table.js.map +1 -1
  132. package/dist/service/dynamodb/command/table/sim-dynamodb-unsimulated-table-input.d.ts +6 -5
  133. package/dist/service/dynamodb/command/table/sim-dynamodb-unsimulated-table-input.d.ts.map +1 -1
  134. package/dist/service/dynamodb/command/table/sim-dynamodb-unsimulated-table-input.js +6 -16
  135. package/dist/service/dynamodb/command/table/sim-dynamodb-unsimulated-table-input.js.map +1 -1
  136. package/dist/service/dynamodb/command/table/sim-dynamodb-unsimulated-update-input.d.ts +4 -4
  137. package/dist/service/dynamodb/command/table/sim-dynamodb-unsimulated-update-input.d.ts.map +1 -1
  138. package/dist/service/dynamodb/command/table/sim-dynamodb-unsimulated-update-input.js +4 -9
  139. package/dist/service/dynamodb/command/table/sim-dynamodb-unsimulated-update-input.js.map +1 -1
  140. package/dist/service/dynamodb/command/table/table.command.d.ts +2 -1
  141. package/dist/service/dynamodb/command/table/table.command.d.ts.map +1 -1
  142. package/dist/service/dynamodb/command/table/table.types.d.ts +4 -7
  143. package/dist/service/dynamodb/command/table/table.types.d.ts.map +1 -1
  144. package/dist/service/dynamodb/sim-dynamodb.d.ts +42 -60
  145. package/dist/service/dynamodb/sim-dynamodb.d.ts.map +1 -1
  146. package/dist/service/dynamodb/sim-dynamodb.js +48 -60
  147. package/dist/service/dynamodb/sim-dynamodb.js.map +1 -1
  148. package/dist/service/dynamodb/stream/sim-dynamodb-item-change.d.ts +34 -0
  149. package/dist/service/dynamodb/stream/sim-dynamodb-item-change.d.ts.map +1 -0
  150. package/dist/service/dynamodb/stream/sim-dynamodb-item-change.js +2 -0
  151. package/dist/service/dynamodb/stream/sim-dynamodb-item-change.js.map +1 -0
  152. package/dist/service/dynamodb/stream/sim-dynamodb-stream-activity.d.ts +42 -0
  153. package/dist/service/dynamodb/stream/sim-dynamodb-stream-activity.d.ts.map +1 -0
  154. package/dist/service/dynamodb/stream/sim-dynamodb-stream-activity.js +35 -0
  155. package/dist/service/dynamodb/stream/sim-dynamodb-stream-activity.js.map +1 -0
  156. package/dist/service/dynamodb/stream/sim-dynamodb-stream-arn.d.ts +22 -0
  157. package/dist/service/dynamodb/stream/sim-dynamodb-stream-arn.d.ts.map +1 -0
  158. package/dist/service/dynamodb/stream/sim-dynamodb-stream-arn.js +30 -0
  159. package/dist/service/dynamodb/stream/sim-dynamodb-stream-arn.js.map +1 -0
  160. package/dist/service/dynamodb/stream/sim-dynamodb-stream-images.d.ts +22 -0
  161. package/dist/service/dynamodb/stream/sim-dynamodb-stream-images.d.ts.map +1 -0
  162. package/dist/service/dynamodb/stream/sim-dynamodb-stream-images.js +27 -0
  163. package/dist/service/dynamodb/stream/sim-dynamodb-stream-images.js.map +1 -0
  164. package/dist/service/dynamodb/stream/sim-dynamodb-stream-record-keys.d.ts +15 -0
  165. package/dist/service/dynamodb/stream/sim-dynamodb-stream-record-keys.d.ts.map +1 -0
  166. package/dist/service/dynamodb/stream/sim-dynamodb-stream-record-keys.js +25 -0
  167. package/dist/service/dynamodb/stream/sim-dynamodb-stream-record-keys.js.map +1 -0
  168. package/dist/service/dynamodb/stream/sim-dynamodb-stream-record-size.d.ts +11 -0
  169. package/dist/service/dynamodb/stream/sim-dynamodb-stream-record-size.d.ts.map +1 -0
  170. package/dist/service/dynamodb/stream/sim-dynamodb-stream-record-size.js +74 -0
  171. package/dist/service/dynamodb/stream/sim-dynamodb-stream-record-size.js.map +1 -0
  172. package/dist/service/dynamodb/stream/sim-dynamodb-stream-record.d.ts +49 -0
  173. package/dist/service/dynamodb/stream/sim-dynamodb-stream-record.d.ts.map +1 -0
  174. package/dist/service/dynamodb/stream/sim-dynamodb-stream-record.js +60 -0
  175. package/dist/service/dynamodb/stream/sim-dynamodb-stream-record.js.map +1 -0
  176. package/dist/service/dynamodb/stream/sim-dynamodb-stream-sequence-numbers.d.ts +18 -0
  177. package/dist/service/dynamodb/stream/sim-dynamodb-stream-sequence-numbers.d.ts.map +1 -0
  178. package/dist/service/dynamodb/stream/sim-dynamodb-stream-sequence-numbers.js +31 -0
  179. package/dist/service/dynamodb/stream/sim-dynamodb-stream-sequence-numbers.js.map +1 -0
  180. package/dist/service/dynamodb/stream/sim-dynamodb-stream-shard.d.ts +39 -0
  181. package/dist/service/dynamodb/stream/sim-dynamodb-stream-shard.d.ts.map +1 -0
  182. package/dist/service/dynamodb/stream/sim-dynamodb-stream-shard.js +64 -0
  183. package/dist/service/dynamodb/stream/sim-dynamodb-stream-shard.js.map +1 -0
  184. package/dist/service/dynamodb/stream/sim-dynamodb-stream-specification.d.ts +28 -0
  185. package/dist/service/dynamodb/stream/sim-dynamodb-stream-specification.d.ts.map +1 -0
  186. package/dist/service/dynamodb/stream/sim-dynamodb-stream-specification.js +30 -0
  187. package/dist/service/dynamodb/stream/sim-dynamodb-stream-specification.js.map +1 -0
  188. package/dist/service/dynamodb/stream/sim-dynamodb-stream-store.d.ts +26 -0
  189. package/dist/service/dynamodb/stream/sim-dynamodb-stream-store.d.ts.map +1 -0
  190. package/dist/service/dynamodb/stream/sim-dynamodb-stream-store.js +29 -0
  191. package/dist/service/dynamodb/stream/sim-dynamodb-stream-store.js.map +1 -0
  192. package/dist/service/dynamodb/stream/sim-dynamodb-stream-update.d.ts +13 -0
  193. package/dist/service/dynamodb/stream/sim-dynamodb-stream-update.d.ts.map +1 -0
  194. package/dist/service/dynamodb/stream/sim-dynamodb-stream-update.js +48 -0
  195. package/dist/service/dynamodb/stream/sim-dynamodb-stream-update.js.map +1 -0
  196. package/dist/service/dynamodb/stream/sim-dynamodb-stream-view-type.d.ts +10 -0
  197. package/dist/service/dynamodb/stream/sim-dynamodb-stream-view-type.d.ts.map +1 -0
  198. package/dist/service/dynamodb/stream/sim-dynamodb-stream-view-type.js +38 -0
  199. package/dist/service/dynamodb/stream/sim-dynamodb-stream-view-type.js.map +1 -0
  200. package/dist/service/dynamodb/stream/sim-dynamodb-stream.d.ts +74 -0
  201. package/dist/service/dynamodb/stream/sim-dynamodb-stream.d.ts.map +1 -0
  202. package/dist/service/dynamodb/stream/sim-dynamodb-stream.js +82 -0
  203. package/dist/service/dynamodb/stream/sim-dynamodb-stream.js.map +1 -0
  204. package/dist/service/dynamodb/stream/sim-dynamodb-stream.types.d.ts +24 -0
  205. package/dist/service/dynamodb/stream/sim-dynamodb-stream.types.d.ts.map +1 -0
  206. package/dist/service/dynamodb/stream/sim-dynamodb-stream.types.js +2 -0
  207. package/dist/service/dynamodb/stream/sim-dynamodb-stream.types.js.map +1 -0
  208. package/dist/service/dynamodb/stream/sim-dynamodb-streamed-table.factory.d.ts +31 -0
  209. package/dist/service/dynamodb/stream/sim-dynamodb-streamed-table.factory.d.ts.map +1 -0
  210. package/dist/service/dynamodb/stream/sim-dynamodb-streamed-table.factory.js +45 -0
  211. package/dist/service/dynamodb/stream/sim-dynamodb-streamed-table.factory.js.map +1 -0
  212. package/dist/service/dynamodb/stream/sim-dynamodb-table-stream.d.ts +97 -0
  213. package/dist/service/dynamodb/stream/sim-dynamodb-table-stream.d.ts.map +1 -0
  214. package/dist/service/dynamodb/stream/sim-dynamodb-table-stream.js +135 -0
  215. package/dist/service/dynamodb/stream/sim-dynamodb-table-stream.js.map +1 -0
  216. package/dist/service/dynamodb/table/sim-dynamodb-table-description.d.ts.map +1 -1
  217. package/dist/service/dynamodb/table/sim-dynamodb-table-description.js +6 -0
  218. package/dist/service/dynamodb/table/sim-dynamodb-table-description.js.map +1 -1
  219. package/dist/service/dynamodb/table/sim-dynamodb-table-items.d.ts +33 -1
  220. package/dist/service/dynamodb/table/sim-dynamodb-table-items.d.ts.map +1 -1
  221. package/dist/service/dynamodb/table/sim-dynamodb-table-items.js +46 -1
  222. package/dist/service/dynamodb/table/sim-dynamodb-table-items.js.map +1 -1
  223. package/dist/service/dynamodb/table/sim-dynamodb-table-storage.d.ts +95 -0
  224. package/dist/service/dynamodb/table/sim-dynamodb-table-storage.d.ts.map +1 -0
  225. package/dist/service/dynamodb/table/sim-dynamodb-table-storage.js +120 -0
  226. package/dist/service/dynamodb/table/sim-dynamodb-table-storage.js.map +1 -0
  227. package/dist/service/dynamodb/table/sim-dynamodb-table-update.d.ts +2 -0
  228. package/dist/service/dynamodb/table/sim-dynamodb-table-update.d.ts.map +1 -1
  229. package/dist/service/dynamodb/table/sim-dynamodb-table-update.js +11 -6
  230. package/dist/service/dynamodb/table/sim-dynamodb-table-update.js.map +1 -1
  231. package/dist/service/dynamodb/table/sim-dynamodb-table.d.ts +33 -70
  232. package/dist/service/dynamodb/table/sim-dynamodb-table.d.ts.map +1 -1
  233. package/dist/service/dynamodb/table/sim-dynamodb-table.js +50 -93
  234. package/dist/service/dynamodb/table/sim-dynamodb-table.js.map +1 -1
  235. package/dist/service/dynamodb/table/sim-dynamodb-updatable-table.d.ts +6 -3
  236. package/dist/service/dynamodb/table/sim-dynamodb-updatable-table.d.ts.map +1 -1
  237. package/dist/service/dynamodb/time-to-live/sim-dynamodb-table-time-to-live.d.ts.map +1 -1
  238. package/dist/service/dynamodb/time-to-live/sim-dynamodb-table-time-to-live.js +5 -1
  239. package/dist/service/dynamodb/time-to-live/sim-dynamodb-table-time-to-live.js.map +1 -1
  240. package/dist/service/lambda/command/event-source-mapping/create-event-source-mapping-input.d.ts +5 -2
  241. package/dist/service/lambda/command/event-source-mapping/create-event-source-mapping-input.d.ts.map +1 -1
  242. package/dist/service/lambda/command/event-source-mapping/create-event-source-mapping-input.js +13 -8
  243. package/dist/service/lambda/command/event-source-mapping/create-event-source-mapping-input.js.map +1 -1
  244. package/dist/service/lambda/command/event-source-mapping/create-event-source-mapping-refusals.d.ts +4 -0
  245. package/dist/service/lambda/command/event-source-mapping/create-event-source-mapping-refusals.d.ts.map +1 -1
  246. package/dist/service/lambda/command/event-source-mapping/create-event-source-mapping-refusals.js +32 -21
  247. package/dist/service/lambda/command/event-source-mapping/create-event-source-mapping-refusals.js.map +1 -1
  248. package/dist/service/lambda/command/event-source-mapping/create-event-source-mapping-values.d.ts +1 -6
  249. package/dist/service/lambda/command/event-source-mapping/create-event-source-mapping-values.d.ts.map +1 -1
  250. package/dist/service/lambda/command/event-source-mapping/create-event-source-mapping-values.js +1 -22
  251. package/dist/service/lambda/command/event-source-mapping/create-event-source-mapping-values.js.map +1 -1
  252. package/dist/service/lambda/command/event-source-mapping/create-event-source-mapping.handler.d.ts +2 -1
  253. package/dist/service/lambda/command/event-source-mapping/create-event-source-mapping.handler.d.ts.map +1 -1
  254. package/dist/service/lambda/command/event-source-mapping/create-event-source-mapping.handler.js +3 -2
  255. package/dist/service/lambda/command/event-source-mapping/create-event-source-mapping.handler.js.map +1 -1
  256. package/dist/service/lambda/event-source/poll/sim-lambda-batch-item-failures.d.ts +17 -0
  257. package/dist/service/lambda/event-source/poll/sim-lambda-batch-item-failures.d.ts.map +1 -0
  258. package/dist/service/lambda/event-source/poll/sim-lambda-batch-item-failures.js +46 -0
  259. package/dist/service/lambda/event-source/poll/sim-lambda-batch-item-failures.js.map +1 -0
  260. package/dist/service/lambda/event-source/poll/sim-lambda-event-source-batch-response.d.ts +39 -0
  261. package/dist/service/lambda/event-source/poll/sim-lambda-event-source-batch-response.d.ts.map +1 -0
  262. package/dist/service/lambda/event-source/poll/sim-lambda-event-source-batch-response.js +28 -0
  263. package/dist/service/lambda/event-source/poll/sim-lambda-event-source-batch-response.js.map +1 -0
  264. package/dist/service/lambda/event-source/poll/sim-lambda-event-source-delivery.d.ts +33 -7
  265. package/dist/service/lambda/event-source/poll/sim-lambda-event-source-delivery.d.ts.map +1 -1
  266. package/dist/service/lambda/event-source/poll/sim-lambda-event-source-delivery.js +7 -6
  267. package/dist/service/lambda/event-source/poll/sim-lambda-event-source-delivery.js.map +1 -1
  268. package/dist/service/lambda/event-source/poll/sim-lambda-event-source-poller-factory.d.ts +25 -0
  269. package/dist/service/lambda/event-source/poll/sim-lambda-event-source-poller-factory.d.ts.map +1 -0
  270. package/dist/service/lambda/event-source/poll/sim-lambda-event-source-poller-factory.js +16 -0
  271. package/dist/service/lambda/event-source/poll/sim-lambda-event-source-poller-factory.js.map +1 -0
  272. package/dist/service/lambda/event-source/poll/sim-lambda-event-source-poller.d.ts +9 -69
  273. package/dist/service/lambda/event-source/poll/sim-lambda-event-source-poller.d.ts.map +1 -1
  274. package/dist/service/lambda/event-source/poll/sim-lambda-event-source-poller.js +1 -135
  275. package/dist/service/lambda/event-source/poll/sim-lambda-event-source-poller.js.map +1 -1
  276. package/dist/service/lambda/event-source/poll/sim-lambda-sqs-batch-response.d.ts +6 -30
  277. package/dist/service/lambda/event-source/poll/sim-lambda-sqs-batch-response.d.ts.map +1 -1
  278. package/dist/service/lambda/event-source/poll/sim-lambda-sqs-batch-response.js +9 -66
  279. package/dist/service/lambda/event-source/poll/sim-lambda-sqs-batch-response.js.map +1 -1
  280. package/dist/service/lambda/event-source/poll/sim-lambda-sqs-delivery.d.ts +17 -0
  281. package/dist/service/lambda/event-source/poll/sim-lambda-sqs-delivery.d.ts.map +1 -0
  282. package/dist/service/lambda/event-source/poll/sim-lambda-sqs-delivery.js +17 -0
  283. package/dist/service/lambda/event-source/poll/sim-lambda-sqs-delivery.js.map +1 -0
  284. package/dist/service/lambda/event-source/poll/sim-lambda-sqs-event-source-poller.d.ts +88 -0
  285. package/dist/service/lambda/event-source/poll/sim-lambda-sqs-event-source-poller.d.ts.map +1 -0
  286. package/dist/service/lambda/event-source/poll/sim-lambda-sqs-event-source-poller.js +132 -0
  287. package/dist/service/lambda/event-source/poll/sim-lambda-sqs-event-source-poller.js.map +1 -0
  288. package/dist/service/lambda/event-source/poll/sim-lambda-sqs-polled-queue.d.ts +41 -0
  289. package/dist/service/lambda/event-source/poll/sim-lambda-sqs-polled-queue.d.ts.map +1 -0
  290. package/dist/service/lambda/event-source/poll/sim-lambda-sqs-polled-queue.js +60 -0
  291. package/dist/service/lambda/event-source/poll/sim-lambda-sqs-polled-queue.js.map +1 -0
  292. package/dist/service/lambda/event-source/queue/sim-lambda-sqs-event-source-arn.d.ts +23 -5
  293. package/dist/service/lambda/event-source/queue/sim-lambda-sqs-event-source-arn.d.ts.map +1 -1
  294. package/dist/service/lambda/event-source/queue/sim-lambda-sqs-event-source-arn.js +65 -12
  295. package/dist/service/lambda/event-source/queue/sim-lambda-sqs-event-source-arn.js.map +1 -1
  296. package/dist/service/lambda/event-source/sim-lambda-event-source-arn.d.ts +23 -0
  297. package/dist/service/lambda/event-source/sim-lambda-event-source-arn.d.ts.map +1 -0
  298. package/dist/service/lambda/event-source/sim-lambda-event-source-arn.js +30 -0
  299. package/dist/service/lambda/event-source/sim-lambda-event-source-arn.js.map +1 -0
  300. package/dist/service/lambda/event-source/sim-lambda-event-source-batch-rules.d.ts +26 -0
  301. package/dist/service/lambda/event-source/sim-lambda-event-source-batch-rules.d.ts.map +1 -0
  302. package/dist/service/lambda/event-source/sim-lambda-event-source-batch-rules.js +35 -0
  303. package/dist/service/lambda/event-source/sim-lambda-event-source-batch-rules.js.map +1 -0
  304. package/dist/service/lambda/event-source/sim-lambda-event-source-mapping.d.ts +6 -8
  305. package/dist/service/lambda/event-source/sim-lambda-event-source-mapping.d.ts.map +1 -1
  306. package/dist/service/lambda/event-source/sim-lambda-event-source-mapping.js +6 -9
  307. package/dist/service/lambda/event-source/sim-lambda-event-source-mapping.js.map +1 -1
  308. package/dist/service/lambda/event-source/sim-lambda-event-source-pollers.d.ts +5 -5
  309. package/dist/service/lambda/event-source/sim-lambda-event-source-pollers.d.ts.map +1 -1
  310. package/dist/service/lambda/event-source/sim-lambda-event-source-pollers.js +5 -5
  311. package/dist/service/lambda/event-source/sim-lambda-event-source-pollers.js.map +1 -1
  312. package/dist/service/lambda/event-source/sim-lambda-event-source-polling-permission.d.ts +18 -0
  313. package/dist/service/lambda/event-source/sim-lambda-event-source-polling-permission.d.ts.map +1 -0
  314. package/dist/service/lambda/event-source/sim-lambda-event-source-polling-permission.js +23 -0
  315. package/dist/service/lambda/event-source/sim-lambda-event-source-polling-permission.js.map +1 -0
  316. package/dist/service/lambda/event-source/sim-lambda-event-source-role-permissions.d.ts +7 -3
  317. package/dist/service/lambda/event-source/sim-lambda-event-source-role-permissions.d.ts.map +1 -1
  318. package/dist/service/lambda/event-source/sim-lambda-event-source-role-permissions.js +13 -21
  319. package/dist/service/lambda/event-source/sim-lambda-event-source-role-permissions.js.map +1 -1
  320. package/dist/service/s3/bucket/notification/sim-s3-lambda-notification.d.ts +7 -25
  321. package/dist/service/s3/bucket/notification/sim-s3-lambda-notification.d.ts.map +1 -1
  322. package/dist/service/s3/bucket/notification/sim-s3-lambda-notification.js +10 -31
  323. package/dist/service/s3/bucket/notification/sim-s3-lambda-notification.js.map +1 -1
  324. package/dist/service/s3/bucket/notification/sim-s3-notification-configuration-reader.d.ts +6 -10
  325. package/dist/service/s3/bucket/notification/sim-s3-notification-configuration-reader.d.ts.map +1 -1
  326. package/dist/service/s3/bucket/notification/sim-s3-notification-configuration-reader.js +16 -68
  327. package/dist/service/s3/bucket/notification/sim-s3-notification-configuration-reader.js.map +1 -1
  328. package/dist/service/s3/bucket/notification/sim-s3-notification-configuration.d.ts +17 -4
  329. package/dist/service/s3/bucket/notification/sim-s3-notification-configuration.d.ts.map +1 -1
  330. package/dist/service/s3/bucket/notification/sim-s3-notification-configuration.js +19 -10
  331. package/dist/service/s3/bucket/notification/sim-s3-notification-configuration.js.map +1 -1
  332. package/dist/service/s3/bucket/notification/sim-s3-notification-ids.d.ts +9 -0
  333. package/dist/service/s3/bucket/notification/sim-s3-notification-ids.d.ts.map +1 -0
  334. package/dist/service/s3/bucket/notification/sim-s3-notification-ids.js +18 -0
  335. package/dist/service/s3/bucket/notification/sim-s3-notification-ids.js.map +1 -0
  336. package/dist/service/s3/bucket/notification/sim-s3-notification-overlap.d.ts +5 -3
  337. package/dist/service/s3/bucket/notification/sim-s3-notification-overlap.d.ts.map +1 -1
  338. package/dist/service/s3/bucket/notification/sim-s3-notification-overlap.js +3 -1
  339. package/dist/service/s3/bucket/notification/sim-s3-notification-overlap.js.map +1 -1
  340. package/dist/service/s3/bucket/notification/sim-s3-notification-properties.d.ts +19 -0
  341. package/dist/service/s3/bucket/notification/sim-s3-notification-properties.d.ts.map +1 -0
  342. package/dist/service/s3/bucket/notification/sim-s3-notification-properties.js +27 -0
  343. package/dist/service/s3/bucket/notification/sim-s3-notification-properties.js.map +1 -0
  344. package/dist/service/s3/bucket/notification/sim-s3-notification.d.ts +61 -0
  345. package/dist/service/s3/bucket/notification/sim-s3-notification.d.ts.map +1 -0
  346. package/dist/service/s3/bucket/notification/sim-s3-notification.js +50 -0
  347. package/dist/service/s3/bucket/notification/sim-s3-notification.js.map +1 -0
  348. package/dist/service/s3/bucket/notification/sim-s3-queue-notification.d.ts +21 -0
  349. package/dist/service/s3/bucket/notification/sim-s3-queue-notification.d.ts.map +1 -0
  350. package/dist/service/s3/bucket/notification/sim-s3-queue-notification.js +24 -0
  351. package/dist/service/s3/bucket/notification/sim-s3-queue-notification.js.map +1 -0
  352. package/dist/service/s3/bucket/notification/sim-s3-unsimulated-notification-destinations.d.ts +10 -0
  353. package/dist/service/s3/bucket/notification/sim-s3-unsimulated-notification-destinations.d.ts.map +1 -0
  354. package/dist/service/s3/bucket/notification/sim-s3-unsimulated-notification-destinations.js +31 -0
  355. package/dist/service/s3/bucket/notification/sim-s3-unsimulated-notification-destinations.js.map +1 -0
  356. package/dist/service/s3/cfn/bucket/notification/sim-cfn-s3-bucket-notification-configuration.d.ts +3 -0
  357. package/dist/service/s3/cfn/bucket/notification/sim-cfn-s3-bucket-notification-configuration.d.ts.map +1 -1
  358. package/dist/service/s3/cfn/bucket/notification/sim-cfn-s3-bucket-notification-configuration.js +30 -1
  359. package/dist/service/s3/cfn/bucket/notification/sim-cfn-s3-bucket-notification-configuration.js.map +1 -1
  360. package/dist/service/s3/command/get-bucket-notification-configuration/get-bucket-notification-configuration.command.d.ts +2 -1
  361. package/dist/service/s3/command/get-bucket-notification-configuration/get-bucket-notification-configuration.command.d.ts.map +1 -1
  362. package/dist/service/s3/command/put-bucket-notification-configuration/put-bucket-notification-configuration.command.d.ts +10 -1
  363. package/dist/service/s3/command/put-bucket-notification-configuration/put-bucket-notification-configuration.command.d.ts.map +1 -1
  364. package/dist/service/s3/notification/destination/lambda/sim-aws-s3-notification-functions.d.ts +0 -4
  365. package/dist/service/s3/notification/destination/lambda/sim-aws-s3-notification-functions.d.ts.map +1 -1
  366. package/dist/service/s3/notification/destination/lambda/sim-aws-s3-notification-functions.js +1 -4
  367. package/dist/service/s3/notification/destination/lambda/sim-aws-s3-notification-functions.js.map +1 -1
  368. package/dist/service/s3/notification/destination/sim-s3-notification-destination-check.d.ts.map +1 -1
  369. package/dist/service/s3/notification/destination/sim-s3-notification-destination-check.js +6 -4
  370. package/dist/service/s3/notification/destination/sim-s3-notification-destination-check.js.map +1 -1
  371. package/dist/service/s3/notification/destination/sim-s3-notification-destination.d.ts +20 -2
  372. package/dist/service/s3/notification/destination/sim-s3-notification-destination.d.ts.map +1 -1
  373. package/dist/service/s3/notification/destination/sim-s3-service-notification-destinations.d.ts +12 -10
  374. package/dist/service/s3/notification/destination/sim-s3-service-notification-destinations.d.ts.map +1 -1
  375. package/dist/service/s3/notification/destination/sim-s3-service-notification-destinations.js +19 -17
  376. package/dist/service/s3/notification/destination/sim-s3-service-notification-destinations.js.map +1 -1
  377. package/dist/service/s3/notification/destination/sim-s3-service-principal.d.ts +8 -0
  378. package/dist/service/s3/notification/destination/sim-s3-service-principal.d.ts.map +1 -0
  379. package/dist/service/s3/notification/destination/sim-s3-service-principal.js +8 -0
  380. package/dist/service/s3/notification/destination/sim-s3-service-principal.js.map +1 -0
  381. package/dist/service/s3/notification/destination/sqs/sim-aws-s3-notification-queues.d.ts +40 -0
  382. package/dist/service/s3/notification/destination/sqs/sim-aws-s3-notification-queues.d.ts.map +1 -0
  383. package/dist/service/s3/notification/destination/sqs/sim-aws-s3-notification-queues.js +52 -0
  384. package/dist/service/s3/notification/destination/sqs/sim-aws-s3-notification-queues.js.map +1 -0
  385. package/dist/service/s3/notification/destination/sqs/sim-s3-notification-queue-arn.d.ts +33 -0
  386. package/dist/service/s3/notification/destination/sqs/sim-s3-notification-queue-arn.d.ts.map +1 -0
  387. package/dist/service/s3/notification/destination/sqs/sim-s3-notification-queue-arn.js +64 -0
  388. package/dist/service/s3/notification/destination/sqs/sim-s3-notification-queue-arn.js.map +1 -0
  389. package/dist/service/s3/notification/destination/sqs/sim-s3-notification-queue.d.ts +33 -0
  390. package/dist/service/s3/notification/destination/sqs/sim-s3-notification-queue.d.ts.map +1 -0
  391. package/dist/service/s3/notification/destination/sqs/sim-s3-notification-queue.js +55 -0
  392. package/dist/service/s3/notification/destination/sqs/sim-s3-notification-queue.js.map +1 -0
  393. package/dist/service/s3/notification/destination/sqs/sim-s3-notification-queues.d.ts +23 -0
  394. package/dist/service/s3/notification/destination/sqs/sim-s3-notification-queues.d.ts.map +1 -0
  395. package/dist/service/s3/notification/destination/sqs/sim-s3-notification-queues.js +2 -0
  396. package/dist/service/s3/notification/destination/sqs/sim-s3-notification-queues.js.map +1 -0
  397. package/dist/service/s3/notification/destination/sqs/sim-s3-sqs-notification-destination.d.ts +40 -0
  398. package/dist/service/s3/notification/destination/sqs/sim-s3-sqs-notification-destination.d.ts.map +1 -0
  399. package/dist/service/s3/notification/destination/sqs/sim-s3-sqs-notification-destination.js +51 -0
  400. package/dist/service/s3/notification/destination/sqs/sim-s3-sqs-notification-destination.js.map +1 -0
  401. package/dist/service/s3/notification/sim-s3-notification-dispatcher.d.ts +2 -2
  402. package/dist/service/s3/notification/sim-s3-notification-dispatcher.d.ts.map +1 -1
  403. package/dist/service/s3/notification/sim-s3-notification-dispatcher.js +6 -3
  404. package/dist/service/s3/notification/sim-s3-notification-dispatcher.js.map +1 -1
  405. package/dist/service/sqs/command/authorize/sim-sqs-condition-context.d.ts.map +1 -1
  406. package/dist/service/sqs/command/authorize/sim-sqs-condition-context.js +9 -5
  407. package/dist/service/sqs/command/authorize/sim-sqs-condition-context.js.map +1 -1
  408. package/dist/service/sqs/command/authorize/sim-sqs-service-send-authorizer.d.ts +40 -0
  409. package/dist/service/sqs/command/authorize/sim-sqs-service-send-authorizer.d.ts.map +1 -0
  410. package/dist/service/sqs/command/authorize/sim-sqs-service-send-authorizer.js +40 -0
  411. package/dist/service/sqs/command/authorize/sim-sqs-service-send-authorizer.js.map +1 -0
  412. package/dist/service/sqs/command/sim-sqs-request-options.d.ts +16 -0
  413. package/dist/service/sqs/command/sim-sqs-request-options.d.ts.map +1 -1
  414. package/dist/service/sqs/command/sim-sqs-request-options.js +9 -0
  415. package/dist/service/sqs/command/sim-sqs-request-options.js.map +1 -1
  416. package/dist/service/sqs/index.d.ts +2 -2
  417. package/dist/service/sqs/index.d.ts.map +1 -1
  418. package/dist/service/sqs/index.js +2 -2
  419. package/dist/service/sqs/index.js.map +1 -1
  420. package/dist/service/sqs/queue/sim-sqs-queue-arn.d.ts +17 -2
  421. package/dist/service/sqs/queue/sim-sqs-queue-arn.d.ts.map +1 -1
  422. package/dist/service/sqs/queue/sim-sqs-queue-arn.js +9 -5
  423. package/dist/service/sqs/queue/sim-sqs-queue-arn.js.map +1 -1
  424. package/package.json +4 -4
@@ -2,11 +2,14 @@ import type { SimArn } from "../../aws/arn.js";
2
2
  import { type BackgroundScheduler } from "../../../util/background/background.js";
3
3
  import type { SimDynamoDbTableClass, SimDynamoDbTableDescription, SimDynamoDbTableStatus } from "../command/table/table.types.js";
4
4
  import type { SimDynamoDbItem } from "../item/sim-dynamodb-item.js";
5
- import { SimDynamoDbTableTimeToLive } from "../time-to-live/sim-dynamodb-table-time-to-live.js";
5
+ import type { SimDynamoDbStreamActivity } from "../stream/sim-dynamodb-stream-activity.js";
6
+ import type { SimDynamoDbStreamRequest } from "../stream/sim-dynamodb-stream-specification.js";
7
+ import { SimDynamoDbTableStream } from "../stream/sim-dynamodb-table-stream.js";
8
+ import type { SimDynamoDbTableTimeToLive } from "../time-to-live/sim-dynamodb-table-time-to-live.js";
6
9
  import { SimDynamoDbSecondaryIndexes } from "../secondary-index/sim-dynamodb-secondary-indexes.js";
7
10
  import type { SimDynamoDbReadView } from "./sim-dynamodb-read-view.js";
8
11
  import { SimDynamoDbTableTags } from "./sim-dynamodb-table-tags.js";
9
- import { SimDynamoDbTableWrites } from "./sim-dynamodb-table-writes.js";
12
+ import type { SimDynamoDbTableWrites } from "./sim-dynamodb-table-writes.js";
10
13
  import type { SimDynamoDbAttributeDefinitions } from "./sim-dynamodb-attribute-definitions.js";
11
14
  import type { SimDynamoDbKeySchema } from "./sim-dynamodb-key-schema.js";
12
15
  import type { SimDynamoDbTableBilling } from "./sim-dynamodb-table-billing.js";
@@ -22,6 +25,8 @@ interface SimDynamoDbTableProperties {
22
25
  readonly tableClass?: SimDynamoDbTableClass | undefined;
23
26
  readonly deletionProtectionEnabled?: boolean | undefined;
24
27
  readonly tags?: SimDynamoDbTableTags;
28
+ readonly stream?: SimDynamoDbStreamRequest | undefined;
29
+ readonly streamActivity?: SimDynamoDbStreamActivity;
25
30
  readonly background?: BackgroundScheduler;
26
31
  }
27
32
  /**
@@ -54,38 +59,31 @@ export declare class SimDynamoDbTable {
54
59
  */
55
60
  readonly tags: SimDynamoDbTableTags;
56
61
  /**
57
- * This table's time to live, and the item removals it drives.
58
- */
59
- readonly timeToLive: SimDynamoDbTableTimeToLive;
60
- /**
61
- * How this table takes a write, as a check and then a commit, which is what
62
- * lets a transaction prepare all of its writes before committing any.
62
+ * This table's stream, and the item changes captured on it.
63
+ *
64
+ * A table always has one of these, and it holds no stream until one is
65
+ * enabled. That is what lets the item store report every change to the same
66
+ * place whether or not anything is listening.
63
67
  */
64
- readonly writes: SimDynamoDbTableWrites;
65
- private readonly items;
68
+ readonly stream: SimDynamoDbTableStream;
66
69
  private readonly definition;
67
70
  private readonly lifecycle;
71
+ private readonly storage;
68
72
  constructor(properties: SimDynamoDbTableProperties);
69
- /**
70
- * Get the current table status.
71
- */
73
+ /** Get the current table status. */
72
74
  get status(): SimDynamoDbTableStatus;
73
- /**
74
- * The attributes this table's keys are made of.
75
- */
75
+ /** The attributes this table's keys are made of. */
76
76
  get attributeDefinitions(): SimDynamoDbAttributeDefinitions;
77
- /**
78
- * How this table is billed, and what it is provisioned for.
79
- */
77
+ /** How this table is billed, and what it is provisioned for. */
80
78
  get billing(): SimDynamoDbTableBilling;
81
- /**
82
- * The class this table is stored under, when it was given one.
83
- */
79
+ /** The class this table is stored under, when it was given one. */
84
80
  get tableClass(): SimDynamoDbTableClass | undefined;
85
- /**
86
- * Whether this table is protected from deletion.
87
- */
81
+ /** Whether this table is protected from deletion. */
88
82
  get deletionProtectionEnabled(): boolean;
83
+ /** This table's time to live, and the item removals it drives. */
84
+ get timeToLive(): SimDynamoDbTableTimeToLive;
85
+ /** How this table takes a write, as a check and then a commit. */
86
+ get writes(): SimDynamoDbTableWrites;
89
87
  /**
90
88
  * Simulate the table entering ACTIVE status, with its indexes.
91
89
  *
@@ -96,9 +94,7 @@ export declare class SimDynamoDbTable {
96
94
  * which is what AWS gets to by copying them into it.
97
95
  */
98
96
  activate(): Promise<void>;
99
- /**
100
- * Refuse an update this table is not in a state to take.
101
- */
97
+ /** Refuse an update this table is not in a state to take. */
102
98
  assertUpdatable(): void;
103
99
  /**
104
100
  * Apply a change UpdateTable has already checked against this table.
@@ -108,9 +104,7 @@ export declare class SimDynamoDbTable {
108
104
  * either applies whole or was never built.
109
105
  */
110
106
  applyUpdate(update: SimDynamoDbTableUpdate): void;
111
- /**
112
- * Refuse a delete this table is not in a state to take.
113
- */
107
+ /** Refuse a delete this table is not in a state to take. */
114
108
  assertDeletable(): void;
115
109
  /**
116
110
  * Simulate the table entering DELETING status.
@@ -119,52 +113,21 @@ export declare class SimDynamoDbTable {
119
113
  * AWS. What removes it is the background task the delete schedules.
120
114
  */
121
115
  beginDeletion(): void;
122
- /**
123
- * Describe this table the way DynamoDB reports it.
124
- */
116
+ /** Describe this table the way DynamoDB reports it. */
125
117
  toDescription(): SimDynamoDbTableDescription;
126
- /**
127
- * Put an item into the table, and answer with whatever it replaced. The item
128
- * is there by the time this returns, since real DynamoDB acknowledges a write
129
- * once it is durable.
130
- */
118
+ /** Put an item into the table, and answer with whatever it replaced. */
131
119
  putItem(item: SimDynamoDbItem): SimDynamoDbItem | undefined;
132
- /**
133
- * The item already stored under the same primary key as this one.
134
- *
135
- * A conditional write is checked against what is there before it, and what is
136
- * there is found by the key inside the item rather than by a Key of its own.
137
- * The key is read the same way a write reads it, so an item that could not be
138
- * written does not quietly find nothing here either.
139
- */
120
+ /** The item already stored under the same primary key as this one. */
140
121
  itemUnder(item: SimDynamoDbItem): SimDynamoDbItem | undefined;
141
- /**
142
- * The primary key an item is stored under, as this table marshals it.
143
- *
144
- * A batch write tells two operations on the same item apart by comparing
145
- * these, which is why the key is readable rather than only usable. Reading it
146
- * checks the item against the key schema, so a key a write would refuse is
147
- * refused here too.
148
- */
122
+ /** The primary key an item is stored under, as this table marshals it. */
149
123
  keyOfItem(item: SimDynamoDbItem): string;
150
- /**
151
- * The primary key a request's Key names, as this table marshals it.
152
- */
124
+ /** The primary key a request's Key names, as this table marshals it. */
153
125
  keyOfKey(key: SimDynamoDbItem): string;
154
- /**
155
- * Read the item a primary key names, if the table holds one.
156
- *
157
- * Every write has landed by the time it returns, so this reads the latest
158
- * one. That is what real DynamoDB gives a strongly consistent read.
159
- */
126
+ /** Read the item a primary key names, if the table holds one. */
160
127
  getItem(key: SimDynamoDbItem): SimDynamoDbItem | undefined;
161
- /**
162
- * Remove the item a primary key names, and answer with whatever was removed.
163
- */
128
+ /** Remove the item a primary key names, and what was removed with it. */
164
129
  deleteItem(key: SimDynamoDbItem): SimDynamoDbItem | undefined;
165
- /**
166
- * What a Query or a Scan reads: this table, or one of its indexes.
167
- */
130
+ /** What a Query or a Scan reads: this table, or one of its indexes. */
168
131
  view(indexName: string | undefined): SimDynamoDbReadView;
169
132
  }
170
133
  export {};
@@ -1 +1 @@
1
- {"version":3,"file":"sim-dynamodb-table.d.ts","sourceRoot":"","sources":["../../../../src/service/dynamodb/table/sim-dynamodb-table.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,kBAAkB,CAAC;AAC/C,OAAO,EACL,KAAK,mBAAmB,EAEzB,MAAM,wCAAwC,CAAC;AAChD,OAAO,KAAK,EACV,qBAAqB,EACrB,2BAA2B,EAC3B,sBAAsB,EACvB,MAAM,iCAAiC,CAAC;AACzC,OAAO,KAAK,E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ED;;;;;;;OAOG;IACI,SAAS,CAAC,IAAI,EAAE,eAAe,GAAG,eAAe,GAAG,SAAS,CAEnE;IAED;;;;;;;OAOG;IACI,SAAS,CAAC,IAAI,EAAE,eAAe,GAAG,MAAM,CAE9C;IAED;;OAEG;IACI,QAAQ,CAAC,GAAG,EAAE,eAAe,GAAG,MAAM,CAE5C;IAED;;;;;OAKG;IACI,OAAO,CAAC,GAAG,EAAE,eAAe,GAAG,eAAe,GAAG,SAAS,CAEhE;IAED;;OAEG;IACI,UAAU,CAAC,GAAG,EAAE,eAAe,GAAG,eAAe,GAAG,SAAS,CAEnE;IAED;;OAEG;IACI,IAAI,CAAC,SAAS,EAAE,MAAM,GAAG,SAAS,GAAG,mBAAmB,CAU9D;CACF"}
1
+ {"version":3,"file":"sim-dynamodb-table.d.ts","sourceRoot":"","sources":["../../../../src/service/dynamodb/table/sim-dynamodb-table.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,kBAAkB,CAAC;AAC/C,OAAO,EACL,KAAK,mBAAmB,EAEzB,MAAM,wCAAwC,CAAC;AAChD,OAAO,KAAK,EACV,qBAAqB,EACrB,2BAA2B,EAC3B,sBAAsB,EACvB,MAAM,iCAAiC,CAAC;AACzC,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,8BAA8B,CAAC;AACpE,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,2CAA2C,CAAC;AAC3F,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,gDAAgD,CAAC;AAC/F,OAAO,EAAE,sBAAsB,EAAE,MAAM,wCAAwC,CAAC;AAChF,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,oDAAoD,CAAC;AACrG,OAAO,EAAE,2BAA2B,EAAE,MAAM,sDAAsD,CAAC;AACnG,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,6BAA6B,CAAC;AAKvE,OAAO,EAAE,oBAAoB,EAAE,MAAM,8BAA8B,CAAC;AAC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GAAG,SAAS,CAEnE;IAED,0EAA0E;IACnE,SAAS,CAAC,IAAI,EAAE,eAAe,GAAG,MAAM,CAE9C;IAED,wEAAwE;IACjE,QAAQ,CAAC,GAAG,EAAE,eAAe,GAAG,MAAM,CAE5C;IAED,iEAAiE;IAC1D,OAAO,CAAC,GAAG,EAAE,eAAe,GAAG,eAAe,GAAG,SAAS,CAEhE;IAED,yEAAyE;IAClE,UAAU,CAAC,GAAG,EAAE,eAAe,GAAG,eAAe,GAAG,SAAS,CAEnE;IAED,uEAAuE;IAChE,IAAI,CAAC,SAAS,EAAE,MAAM,GAAG,SAAS,GAAG,mBAAmB,CAE9D;CACF"}
@@ -1,14 +1,12 @@
1
1
  import { randomUUID } from "node:crypto";
2
2
  import { BackgroundTasks, } from "../../../util/background/background.js";
3
- import { SimDynamoDbTableTimeToLive } from "../time-to-live/sim-dynamodb-table-time-to-live.js";
3
+ import { SimDynamoDbTableStream } from "../stream/sim-dynamodb-table-stream.js";
4
4
  import { SimDynamoDbSecondaryIndexes } from "../secondary-index/sim-dynamodb-secondary-indexes.js";
5
5
  import { describeSimDynamoDbTable } from "./sim-dynamodb-table-description.js";
6
6
  import { SimDynamoDbTableDefinition } from "./sim-dynamodb-table-definition.js";
7
- import { SimDynamoDbTableItems } from "./sim-dynamodb-table-items.js";
8
7
  import { SimDynamoDbTableLifecycle } from "./sim-dynamodb-table-lifecycle.js";
9
- import { simDynamoDbTableReadView } from "./sim-dynamodb-table-read-view.js";
8
+ import { SimDynamoDbTableStorage } from "./sim-dynamodb-table-storage.js";
10
9
  import { SimDynamoDbTableTags } from "./sim-dynamodb-table-tags.js";
11
- import { SimDynamoDbTableWrites } from "./sim-dynamodb-table-writes.js";
12
10
  /**
13
11
  * One simulated DynamoDB Table.
14
12
  *
@@ -39,17 +37,16 @@ export class SimDynamoDbTable {
39
37
  */
40
38
  tags;
41
39
  /**
42
- * This table's time to live, and the item removals it drives.
43
- */
44
- timeToLive;
45
- /**
46
- * How this table takes a write, as a check and then a commit, which is what
47
- * lets a transaction prepare all of its writes before committing any.
40
+ * This table's stream, and the item changes captured on it.
41
+ *
42
+ * A table always has one of these, and it holds no stream until one is
43
+ * enabled. That is what lets the item store report every change to the same
44
+ * place whether or not anything is listening.
48
45
  */
49
- writes;
50
- items = new SimDynamoDbTableItems();
46
+ stream;
51
47
  definition;
52
48
  lifecycle;
49
+ storage;
53
50
  constructor(properties) {
54
51
  const { name, keySchema, attributeDefinitions, billing, indexes = SimDynamoDbSecondaryIndexes.none(), deletionProtectionEnabled = false, tags = SimDynamoDbTableTags.fromInput([]), background = new BackgroundTasks(), } = properties;
55
52
  this.tableName = name.value;
@@ -68,49 +65,51 @@ export class SimDynamoDbTable {
68
65
  tableName: name.value,
69
66
  deletionProtectionEnabled,
70
67
  });
71
- this.timeToLive = new SimDynamoDbTableTimeToLive({
68
+ this.stream = new SimDynamoDbTableStream({
72
69
  tableName: name.value,
73
- items: this.items,
74
- background,
70
+ tableArn: this.arn,
71
+ keySchema,
72
+ clock: background,
73
+ activity: properties.streamActivity,
75
74
  });
76
- this.writes = new SimDynamoDbTableWrites({
77
- items: this.items,
78
- timeToLive: this.timeToLive,
75
+ this.stream.apply(properties.stream);
76
+ this.storage = new SimDynamoDbTableStorage({
77
+ tableName: name.value,
79
78
  definition: this.definition,
80
79
  indexes: this.indexes,
80
+ stream: this.stream,
81
+ background,
81
82
  });
82
83
  this.creationDateTime = background.now();
83
84
  }
84
- /**
85
- * Get the current table status.
86
- */
85
+ /** Get the current table status. */
87
86
  get status() {
88
87
  return this.lifecycle.status;
89
88
  }
90
- /**
91
- * The attributes this table's keys are made of.
92
- */
89
+ /** The attributes this table's keys are made of. */
93
90
  get attributeDefinitions() {
94
91
  return this.definition.attributeDefinitions;
95
92
  }
96
- /**
97
- * How this table is billed, and what it is provisioned for.
98
- */
93
+ /** How this table is billed, and what it is provisioned for. */
99
94
  get billing() {
100
95
  return this.definition.billing;
101
96
  }
102
- /**
103
- * The class this table is stored under, when it was given one.
104
- */
97
+ /** The class this table is stored under, when it was given one. */
105
98
  get tableClass() {
106
99
  return this.definition.tableClass;
107
100
  }
108
- /**
109
- * Whether this table is protected from deletion.
110
- */
101
+ /** Whether this table is protected from deletion. */
111
102
  get deletionProtectionEnabled() {
112
103
  return this.lifecycle.deletionProtectionEnabled;
113
104
  }
105
+ /** This table's time to live, and the item removals it drives. */
106
+ get timeToLive() {
107
+ return this.storage.timeToLive;
108
+ }
109
+ /** How this table takes a write, as a check and then a commit. */
110
+ get writes() {
111
+ return this.storage.writes;
112
+ }
114
113
  /**
115
114
  * Simulate the table entering ACTIVE status, with its indexes.
116
115
  *
@@ -125,9 +124,7 @@ export class SimDynamoDbTable {
125
124
  this.indexes.global.activate();
126
125
  return Promise.resolve();
127
126
  }
128
- /**
129
- * Refuse an update this table is not in a state to take.
130
- */
127
+ /** Refuse an update this table is not in a state to take. */
131
128
  assertUpdatable() {
132
129
  this.lifecycle.assertUpdatable();
133
130
  }
@@ -142,10 +139,9 @@ export class SimDynamoDbTable {
142
139
  this.definition.apply(update);
143
140
  this.indexes.global.applyUpdate(update);
144
141
  this.lifecycle.applyUpdate(update);
142
+ this.stream.apply(update.stream);
145
143
  }
146
- /**
147
- * Refuse a delete this table is not in a state to take.
148
- */
144
+ /** Refuse a delete this table is not in a state to take. */
149
145
  assertDeletable() {
150
146
  this.lifecycle.assertDeletable();
151
147
  }
@@ -158,76 +154,37 @@ export class SimDynamoDbTable {
158
154
  beginDeletion() {
159
155
  this.lifecycle.beginDeletion();
160
156
  }
161
- /**
162
- * Describe this table the way DynamoDB reports it.
163
- */
157
+ /** Describe this table the way DynamoDB reports it. */
164
158
  toDescription() {
165
159
  return describeSimDynamoDbTable(this);
166
160
  }
167
- /**
168
- * Put an item into the table, and answer with whatever it replaced. The item
169
- * is there by the time this returns, since real DynamoDB acknowledges a write
170
- * once it is durable.
171
- */
161
+ /** Put an item into the table, and answer with whatever it replaced. */
172
162
  putItem(item) {
173
- return this.writes.prepareItem(item).commit();
163
+ return this.storage.putItem(item);
174
164
  }
175
- /**
176
- * The item already stored under the same primary key as this one.
177
- *
178
- * A conditional write is checked against what is there before it, and what is
179
- * there is found by the key inside the item rather than by a Key of its own.
180
- * The key is read the same way a write reads it, so an item that could not be
181
- * written does not quietly find nothing here either.
182
- */
165
+ /** The item already stored under the same primary key as this one. */
183
166
  itemUnder(item) {
184
- return this.items.get(this.definition.itemKey.of(item));
167
+ return this.storage.itemUnder(item);
185
168
  }
186
- /**
187
- * The primary key an item is stored under, as this table marshals it.
188
- *
189
- * A batch write tells two operations on the same item apart by comparing
190
- * these, which is why the key is readable rather than only usable. Reading it
191
- * checks the item against the key schema, so a key a write would refuse is
192
- * refused here too.
193
- */
169
+ /** The primary key an item is stored under, as this table marshals it. */
194
170
  keyOfItem(item) {
195
- return this.definition.itemKey.of(item);
171
+ return this.storage.keyOfItem(item);
196
172
  }
197
- /**
198
- * The primary key a request's Key names, as this table marshals it.
199
- */
173
+ /** The primary key a request's Key names, as this table marshals it. */
200
174
  keyOfKey(key) {
201
- return this.definition.itemKey.ofKey(key);
175
+ return this.storage.keyOfKey(key);
202
176
  }
203
- /**
204
- * Read the item a primary key names, if the table holds one.
205
- *
206
- * Every write has landed by the time it returns, so this reads the latest
207
- * one. That is what real DynamoDB gives a strongly consistent read.
208
- */
177
+ /** Read the item a primary key names, if the table holds one. */
209
178
  getItem(key) {
210
- return this.items.get(this.definition.itemKey.ofKey(key));
179
+ return this.storage.getItem(key);
211
180
  }
212
- /**
213
- * Remove the item a primary key names, and answer with whatever was removed.
214
- */
181
+ /** Remove the item a primary key names, and what was removed with it. */
215
182
  deleteItem(key) {
216
- return this.writes.prepareRemoval(key).commit();
183
+ return this.storage.deleteItem(key);
217
184
  }
218
- /**
219
- * What a Query or a Scan reads: this table, or one of its indexes.
220
- */
185
+ /** What a Query or a Scan reads: this table, or one of its indexes. */
221
186
  view(indexName) {
222
- return simDynamoDbTableReadView({
223
- tableName: this.tableName,
224
- indexName,
225
- items: this.items.entries().values().toArray(),
226
- keySchema: this.keySchema,
227
- attributeDefinitions: this.attributeDefinitions,
228
- indexes: this.indexes,
229
- itemKey: this.definition.itemKey,
230
- });
187
+ return this.storage.view(indexName);
231
188
  }
232
189
  }
233
190
  //# sourceMappingURL=sim-dynamodb-table.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"sim-dynamodb-table.js","sourceRoot":"","sources":["../../../../src/service/dynamodb/table/sim-dynamodb-table.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AAEzC,OAAO,EAEL,eAAe,GAChB,MAAM,wCAAwC,CAAC;AAOhD,OAAO,EAAE,0BAA0B,EAAE,MAAM,oDAAoD,CAAC;AAChG,OAAO,EAAE,2BAA2B,EAAE,MAAM,sDAAsD,CAAC;AAEnG,OAAO,EAAE,wBAAwB,EAAE,MAAM,qCAAqC,CAAC;AAC/E,OAAO,EAAE,0BAA0B,EAAE,MAAM,oCAAoC,CAAC;AAChF,OAAO,EAAE,qBAAqB,EAAE,MAAM,+BAA+B,CAAC;AACtE,OAAO,EAAE,yBAAyB,EAAE,MAAM,mCAAmC,CAAC;AAC9E,OAAO,EAAE,wBAAwB,EAAE,MAAM,mCAAmC,CAAC;AAC7E,OAAO,EAAE,oBAAoB,EAAE,MAAM,8BAA8B,CAAC;AACpE,OAAO,EAAE,sBAAsB,EAAE,MAAM,gCAAgC,CAAC;AAuBxE;;;;;;;GAOG;AACH,MAAM,OAAO,gBAAgB;IACX,gBAAgB,CAAO;IACvB,SAAS,CAAoB;IAC7B,GAAG,CAAS;IACZ,OAAO,CAAS;IAChB,SAAS,CAAuB;IAEhD;;;;;;OAMG;IACa,OAAO,CAA8B;IAErD;;;;;OAKG;IACa,IAAI,CAAuB;IAE3C;;OAEG;IACa,UAAU,CAA6B;IAEvD;;;OAGG;IACa,MAAM,CAAyB;IAE9B,KAAK,GAAG,IAAI,qBAAqB,EAAE,CAAC;IACpC,UAAU,CAA6B;IACvC,SAA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rB,OAAO,EAAE,IAAI,CAAC,UAAU,CAAC,OAAO;SACjC,CAAC,CAAC;IACL,CAAC;CACF"}
1
+ {"version":3,"file":"sim-dynamodb-table.js","sourceRoot":"","sources":["../../../../src/service/dynamodb/table/sim-dynamodb-table.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AAEzC,OAAO,EAEL,eAAe,GAChB,MAAM,wCAAwC,CAAC;AAShD,OAAO,EAAE,sBAAsB,EAAE,MAAM,wCAAwC,CAAC;AAEhF,OAAO,EAAE,2BAA2B,EAAE,MAAM,sDAAsD,CAAC;AAEnG,OAAO,EAAE,wBAAwB,EAAE,MAAM,qCAAqC,CAAC;AAC/E,OAAO,EAAE,0BAA0B,EAAE,MAAM,oCAAoC,CAAC;AAChF,OAAO,EAAE,yBAAyB,EAAE,MAAM,mCAAmC,CAAC;AAC9E,OAAO,EAAE,uBAAuB,EAAE,MAAM,iCAAiC,CAAC;AAC1E,OAAO,EAAE,oBAAoB,EAAE,MAAM,8BAA8B,CAAC;AA0BpE;;;;;;;GAOG;AACH,MAAM,OAAO,gBAAgB;IACX,gBAAgB,CAAO;IACvB,SAAS,CAAoB;IAC7B,GAAG,CAAS;IACZ,OAAO,CAAS;IAChB,SAAS,CAAuB;IAEhD;;;;;;OAMG;IACa,OAAO,CAA8B;IAErD;;;;;OAKG;IACa,IAAI,CAAuB;IAE3C;;;;;;OAMG;IACa,MAAM,CAAyB;IAE9B,UAAU,CAA6B;IACvC,SAAS,CAA4B;IACrC,OAAO,CAA0B;IAElD,YAAY,UAAsC;QAChD,MAAM,EACJ,IAAI,EACJ,SAAS,EACT,oBAAoB,EACpB,OAAO,EACP,OAAO,GAAG,2BAA2B,CAAC,IAAI,EAAE,EAC5C,yBAAyB,GAAG,KAAK,EACjC,IAAI,GAAG,oBAAoB,CAAC,SAAS,CAAC,EAAE,CAAC,EACzC,UAAU,GAAG,IAAI,eAAe,EAAE,GACnC,GAAG,UAAU,CA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;IACnC,CAAC;IAED;;;;;OAKG;IACH,aAAa;QACX,IAAI,CAAC,SAAS,CAAC,aAAa,EAAE,CAAC;IACjC,CAAC;IAED,uDAAuD;IACvD,aAAa;QACX,OAAO,wBAAwB,CAAC,IAAI,CAAC,CAAC;IACxC,CAAC;IAED,wEAAwE;IACjE,OAAO,CAAC,IAAqB;QAClC,OAAO,IAAI,CAAC,OAAO,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC;IACpC,CAAC;IAED,sEAAsE;IAC/D,SAAS,CAAC,IAAqB;QACpC,OAAO,IAAI,CAAC,OAAO,CAAC,SAAS,CAAC,IAAI,CAAC,CAAC;IACtC,CAAC;IAED,0EAA0E;IACnE,SAAS,CAAC,IAAqB;QACpC,OAAO,IAAI,CAAC,OAAO,CAAC,SAAS,CAAC,IAAI,CAAC,CAAC;IACtC,CAAC;IAED,wEAAwE;IACjE,QAAQ,CAAC,GAAoB;QAClC,OAAO,IAAI,CAAC,OAAO,CAAC,QAAQ,CAAC,GAAG,CAAC,CAAC;IACpC,CAAC;IAED,iEAAiE;IAC1D,OAAO,CAAC,GAAoB;QACjC,OAAO,IAAI,CAAC,OAAO,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC;IACnC,CAAC;IAED,yEAAyE;IAClE,UAAU,CAAC,GAAoB;QACpC,OAAO,IAAI,CAAC,OAAO,CAAC,UAAU,CAAC,GAAG,CAAC,CAAC;IACtC,CAAC;IAED,uEAAuE;IAChE,IAAI,CAAC,SAA6B;QACvC,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC;IACtC,CAAC;CACF"}
@@ -1,14 +1,16 @@
1
1
  import type { SimArn } from "../../aws/arn.js";
2
2
  import type { SimDynamoDbSecondaryIndexes } from "../secondary-index/sim-dynamodb-secondary-indexes.js";
3
+ import type { SimDynamoDbTableStream } from "../stream/sim-dynamodb-table-stream.js";
3
4
  import type { SimDynamoDbAttributeDefinitions } from "./sim-dynamodb-attribute-definitions.js";
4
5
  import type { SimDynamoDbKeySchema } from "./sim-dynamodb-key-schema.js";
5
6
  import type { SimDynamoDbTableBilling } from "./sim-dynamodb-table-billing.js";
6
7
  /**
7
8
  * What an update needs to know about the table it is going to be applied to.
8
9
  *
9
- * An index is declared against the table that will carry it, and a capacity
10
- * change is read against the mode the table is already billed under, so the
11
- * request cannot be checked without it.
10
+ * An index is declared against the table that will carry it, a capacity change
11
+ * is read against the mode the table is already billed under, and a stream
12
+ * change is read against the stream the table already has, so the request
13
+ * cannot be checked without it.
12
14
  */
13
15
  export interface SimDynamoDbUpdatableTable {
14
16
  readonly tableName: string;
@@ -17,5 +19,6 @@ export interface SimDynamoDbUpdatableTable {
17
19
  readonly attributeDefinitions: SimDynamoDbAttributeDefinitions;
18
20
  readonly billing: SimDynamoDbTableBilling;
19
21
  readonly indexes: SimDynamoDbSecondaryIndexes;
22
+ readonly stream: SimDynamoDbTableStream;
20
23
  }
21
24
  //# sourceMappingURL=sim-dynamodb-updatable-table.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"sim-dynamodb-updatable-table.d.ts","sourceRoot":"","sources":["../../../../src/service/dynamodb/table/sim-dynamodb-updatable-table.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,kBAAkB,CAAC;AAC/C,OAAO,KAAK,EAAE,2BAA2B,EAAE,MAAM,sDAAsD,CAAC;AACxG,OAAO,KAAK,EAAE,+BAA+B,EAAE,MAAM,yCAAyC,CAAC;AAC/F,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,8BAA8B,CAAC;AACzE,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,iCAAiC,CAAC;AAE/E;;;;;;GAMG;AACH,MAAM,WAAW,yBAAyB;IACxC,QAAQ,CAAC,SAAS,EAAE,MAAM,CAAC;IAC3B,QAAQ,CAAC,GAAG,EAAE,MAAM,CAAC;IACrB,QAAQ,CAAC,SAAS,EAAE,oBAAoB,CAAC;IACzC,QAAQ,CAAC,oBAAoB,EAAE,+BAA+B,CAAC;IAC/D,QAAQ,CAAC,OAAO,EAAE,uBAAuB,CAAC;IAC1C,QAAQ,CAAC,OAAO,EAAE,2BAA2B,CAAC;CAC/C"}
1
+ {"version":3,"file":"sim-dynamodb-updatable-table.d.ts","sourceRoot":"","sources":["../../../../src/service/dynamodb/table/sim-dynamodb-updatable-table.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,kBAAkB,CAAC;AAC/C,OAAO,KAAK,EAAE,2BAA2B,EAAE,MAAM,sDAAsD,CAAC;AACxG,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,wCAAwC,CAAC;AACrF,OAAO,KAAK,EAAE,+BAA+B,EAAE,MAAM,yCAAyC,CAAC;AAC/F,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,8BAA8B,CAAC;AACzE,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,iCAAiC,CAAC;AAE/E;;;;;;;GAOG;AACH,MAAM,WAAW,yBAAyB;IACxC,QAAQ,CAAC,SAAS,EAAE,MAAM,CAAC;IAC3B,QAAQ,CAAC,GAAG,EAAE,MAAM,CAAC;IACrB,QAAQ,CAAC,SAAS,EAAE,oBAAoB,CAAC;IACzC,QAAQ,CAAC,oBAAoB,EAAE,+BAA+B,CAAC;IAC/D,QAAQ,CAAC,OAAO,EAAE,uBAAuB,CAAC;IAC1C,QAAQ,CAAC,OAAO,EAAE,2BAA2B,CAAC;IAC9C,QAAQ,CAAC,MAAM,EAAE,sBAAsB,CAAC;CACzC"}
@@ -1 +1 @@
1
- {"version":3,"file":"sim-dynamodb-table-time-to-live.d.ts","sourceRoot":"","sources":["../../../../src/service/dynamodb/time-to-live/sim-dynamodb-table-time-to-live.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,wCAAwC,CAAC;AAClF,OAAO,KAAK,EAAE,gCAAgC,EAAE,MAAM,+CAA+C,CAAC;AACtG,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,8BAA8B,CAAC;AACpE,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,sCAAsC,CAAC;AAGlF,OAAO,KAAK,EAAE,kCAAkC,EAAE,MAAM,8CAA8C,CAAC;AAEvG,UAAU,oCAAoC;IAC5C,QAAQ,CAAC,SAAS,EAAE,MAAM,CAAC;IAC3B,QAAQ,CAAC,KAAK,EAAE,qBAAqB,CAAC;IACtC,QAAQ,CAAC,UAAU,EAAE,mBAAmB,CAAC;CAC1C;AAED;;;;;;;;;;;GAWG;AACH,qBAAa,0BAA0B;IACrC,OAAO,CAAC,QAAQ,CAAC,KAAK,CAAwB;IAC9C,OAAO,CAAC,QAAQ,CAAC,UAAU,CAAwB;IACnD,OAAO,CAAC,QAAQ,CAAC,UAAU,CAAsB;IAEjD,YAAY,UAAU,EAAE,oCAAoC,EAI3D;IAED;;;;;OAKG;IACH,MAAM,CAAC,aAAa,EAAE,kCAAkC,EAAE,EAAE,EAAE,IAAI,GAAG,IAAI,CAGxE;IAED;;OAEG;IACH,MAAM,IAAI,OAAO,CAAC,IAAI,CAAC,CAItB;IAED;;OAEG;IACH,WAAW,IAAI,gCAAgC,CAE9C;IAED;;;;;;;;;;OAUG;IACH,WAAW,CAAC,GAAG,EAAE,MAAM,EAAE,IAAI,EAAE,eAAe,GAAG,IAAI,CAsBpD;IAED;;;;;OAKG;IACH,OAAO,CAAC,cAAc;IAMtB;;;;;;;;OAQG;IACH,OAAO,CAAC,eAAe;CAsBxB"}
1
+ {"version":3,"file":"sim-dynamodb-table-time-to-live.d.ts","sourceRoot":"","sources":["../../../../src/service/dynamodb/time-to-live/sim-dynamodb-table-time-to-live.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,wCAAwC,CAAC;AAClF,OAAO,KAAK,EAAE,gCAAgC,EAAE,MAAM,+CAA+C,CAAC;AACtG,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,8BAA8B,CAAC;AACpE,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,sCAAsC,CAAC;AAGlF,OAAO,KAAK,EAAE,kCAAkC,EAAE,MAAM,8CAA8C,CAAC;AAEvG,UAAU,oCAAoC;IAC5C,QAAQ,CAAC,SAAS,EAAE,MAAM,CAAC;IAC3B,QAAQ,CAAC,KAAK,EAAE,qBAAqB,CAAC;IACtC,QAAQ,CAAC,UAAU,EAAE,mBAAmB,CAAC;CAC1C;AAED;;;;;;;;;;;GAWG;AACH,qBAAa,0BAA0B;IACrC,OAAO,CAAC,QAAQ,CAAC,KAAK,CAAwB;IAC9C,OAAO,CAAC,QAAQ,CAAC,UAAU,CAAwB;IACnD,OAAO,CAAC,QAAQ,CAAC,UAAU,CAAsB;IAEjD,YAAY,UAAU,EAAE,oCAAoC,EAI3D;IAED;;;;;OAKG;IACH,MAAM,CAAC,aAAa,EAAE,kCAAkC,EAAE,EAAE,EAAE,IAAI,GAAG,IAAI,CAGxE;IAED;;OAEG;IACH,MAAM,IAAI,OAAO,CAAC,IAAI,CAAC,CAItB;IAED;;OAEG;IACH,WAAW,IAAI,gCAAgC,CAE9C;IAED;;;;;;;;;;OAUG;IACH,WAAW,CAAC,GAAG,EAAE,MAAM,EAAE,IAAI,EAAE,eAAe,GAAG,IAAI,CAsBpD;IAED;;;;;OAKG;IACH,OAAO,CAAC,cAAc;IAMtB;;;;;;;;OAQG;IACH,OAAO,CAAC,eAAe;CA0BxB"}
@@ -103,7 +103,11 @@ export class SimDynamoDbTableTimeToLive {
103
103
  if (at === undefined || at.getTime() > now.getTime()) {
104
104
  return;
105
105
  }
106
- this.items.remove(key);
106
+ // Expiring an item is not the same as deleting one. A stream record for a
107
+ // removal DynamoDB made itself carries a `userIdentity`, which is how an
108
+ // application tells it from one it asked for, so the item store is told
109
+ // which of the two this is.
110
+ this.items.expire(key);
107
111
  }
108
112
  }
109
113
  //# sourceMappingURL=sim-dynamodb-table-time-to-live.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"sim-dynamodb-table-time-to-live.js","sourceRoot":"","sources":["../../../../src/service/dynamodb/time-to-live/sim-dynamodb-table-time-to-live.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,8BAA8B,EAAE,MAAM,+BAA+B,CAAC;AAC/E,OAAO,EAAE,qBAAqB,EAAE,MAAM,gCAAgC,CAAC;AASvE;;;;;;;;;;;GAWG;AACH,MAAM,OAAO,0BAA0B;IACpB,KAAK,CAAwB;IAC7B,UAAU,CAAwB;IAClC,UAAU,CAAsB;IAEjD,YAAY,UAAgD;QAC1D,IAAI,CAAC,KAAK,GAAG,UAAU,CAAC,KAAK,CAAC;QAC9B,IAAI,CAAC,UAAU,GAAG,IAAI,qBAAqB,CAAC,UAAU,CAAC,SAAS,CAAC,CAAC;QAClE,IAAI,CAAC,UAAU,GAAG,UAAU,CAAC,UAAU,CAAC;IAC1C,CAAC;IAED;;;;;OAKG;IACH,MAAM,CAAC,aAAiD,EAAE,EAAQ;QAChE,IAAI,CAAC,UAAU,CAAC,MAAM,CAAC,aAAa,EAAE,EAAE,CAAC,CAAC;QAC1C,IAAI,CAAC,cAAc,EAAE,CAAC;IACxB,CAAC;IAED;;OAEG;IACH,MAAM;QACJ,IAAI,CAAC,UAAU,CAAC,MAAM,EAAE,CAAC;QAEzB,OAAO,OAAO,CAAC,OAAO,EAAE,CAAC;IAC3B,CAAC;IAED;;OAEG;IACH,WAAW;QACT,OAAO,IAAI,CAAC,UAAU,CAAC,WAAW,EAAE,CAAC;IACvC,CAAC;IAED;;;;;;;;;;OAUG;IACH,WAAW,CAAC,GAAW,EAAE,IAAqB;QAC5C,MAAM,aAAa,GAAG,IAAI,CAAC,UAAU,CAAC,oBAAoB,EAAE,CAAC;QAE7D,IAAI,aAAa,KAAK,SAAS,EAAE,CAAC;YAChC,OAAO;QACT,CAAC;QAED,MAAM,EAAE,GAAG,8BAA8B,CACvC,IAAI,EACJ,aAAa,EACb,IAAI,CAAC,UAAU,CA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";
2
- import { SimLambdaSqsEventSourceArn } from "../../event-source/queue/sim-lambda-sqs-event-source-arn.js";
2
+ import { type SimLambdaEventSourceArn } from "../../event-source/sim-lambda-event-source-arn.js";
3
3
  import type { SimLambdaFunctionResponseType } from "../../event-source/sim-lambda-event-source-mapping.js";
4
4
  import type { SimCreateEventSourceMappingCommandInput } from "./event-source-mapping.command.js";
5
5
  /**
@@ -8,9 +8,12 @@ import type { SimCreateEventSourceMappingCommandInput } from "./event-source-map
8
8
  * Everything the request is refused for is decided here, before a mapping
9
9
  * exists: a mapping that cannot poll the way it was asked to would look like a
10
10
  * working subscription and deliver nothing.
11
+ *
12
+ * The event source ARN is read first, because what a mapping may ask for
13
+ * depends on the kind of source it names.
11
14
  */
12
15
  export declare class SimLambdaEventSourceMappingInput {
13
- readonly eventSourceArn: SimLambdaSqsEventSourceArn;
16
+ readonly eventSourceArn: SimLambdaEventSourceArn;
14
17
  readonly functionName: string;
15
18
  readonly batchSize: number;
16
19
  readonly enabled: boolean;
@@ -1 +1 @@
1
- {"version":3,"file":"create-event-source-mapping-input.d.ts","sourceRoot":"","sources":["../../../../../src/service/lambda/command/event-source-mapping/create-event-source-mapping-input.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,8CAA8C,CAAC;AAC7F,OAAO,EAAE,0BAA0B,EAAE,MAAM,6DAA6D,CAAC;AACzG,OAAO,KAAK,EAAE,6BAA6B,EAAE,MAAM,uDAAuD,CAAC;AAS3G,OAAO,KAAK,EAAE,uCAAuC,EAAE,MAAM,mCAAmC,CAAC;AAUjG;;;;;;GAMG;AACH,qBAAa,gCAAgC;IAC3C,SAAgB,cAAc,EAAE,0BAA0B,CAAC;IAC3D,SAAgB,YAAY,EAAE,MAAM,CAAC;IACrC,SAAgB,SAAS,EAAE,MAAM,CAAC;IAClC,SAAgB,OAAO,EAAE,OAAO,CAAC;IACjC,SAAgB,qBAAqB,EAAE,SAAS,6BAA6B,EAAE,CAAC;IAEhF,OAAO,eAMN;IAED;;;OAGG;IACH,MAAM,CAAC,EAAE,CACP,KAAK,EAAE,uCAAuC,EAC9C,KAAK,EAAE,wBAAwB,GAC9B,gCAAgC,CAYlC;CACF"}
1
+ {"version":3,"file":"create-event-source-mapping-input.d.ts","sourceRoot":"","sources":["../../../../../src/service/lambda/command/event-source-mapping/create-event-source-mapping-input.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,8CAA8C,CAAC;AAC7F,OAAO,EACL,KAAK,uBAAuB,EAE7B,MAAM,mDAAmD,CAAC;AAC3D,OAAO,KAAK,EAAE,6BAA6B,EAAE,MAAM,uDAAuD,CAAC;AAW3G,OAAO,KAAK,EAAE,uCAAuC,EAAE,MAAM,mCAAmC,CAAC;AAUjG;;;;;;;;;GASG;AACH,qBAAa,gCAAgC;IAC3C,SAAgB,cAAc,EAAE,uBAAuB,CAAC;IACxD,SAAgB,YAAY,EAAE,MAAM,CAAC;IACrC,SAAgB,SAAS,EAAE,MAAM,CAAC;IAClC,SAAgB,OAAO,EAAE,OAAO,CAAC;IACjC,SAAgB,qBAAqB,EAAE,SAAS,6BAA6B,EAAE,CAAC;IAEhF,OAAO,eAMN;IAED;;;OAGG;IACH,MAAM,CAAC,EAAE,CACP,KAAK,EAAE,uCAAuC,EAC9C,KAAK,EAAE,wBAAwB,GAC9B,gCAAgC,CAelC;CACF"}
@@ -1,14 +1,17 @@
1
- import { SimLambdaSqsEventSourceArn } from "../../event-source/queue/sim-lambda-sqs-event-source-arn.js";
1
+ import { simLambdaEventSourceArnOf, } from "../../event-source/sim-lambda-event-source-arn.js";
2
2
  import { SimLambdaInvalidParameterValueException } from "../../error/sim-lambda.error.js";
3
3
  import { simLambdaFunctionNameOf } from "../../function/sim-lambda-function-name.js";
4
- import { batchSizeIn, functionResponseTypesIn, requiredString, } from "./create-event-source-mapping-values.js";
5
- import { refuseUnsimulatedInput } from "./create-event-source-mapping-refusals.js";
4
+ import { functionResponseTypesIn, requiredString, } from "./create-event-source-mapping-values.js";
5
+ import { refuseUnsimulatedInput, refuseUnsupportedEventSourceInput, } from "./create-event-source-mapping-refusals.js";
6
6
  /**
7
7
  * One checked CreateEventSourceMapping request.
8
8
  *
9
9
  * Everything the request is refused for is decided here, before a mapping
10
10
  * exists: a mapping that cannot poll the way it was asked to would look like a
11
11
  * working subscription and deliver nothing.
12
+ *
13
+ * The event source ARN is read first, because what a mapping may ask for
14
+ * depends on the kind of source it names.
12
15
  */
13
16
  export class SimLambdaEventSourceMappingInput {
14
17
  eventSourceArn;
@@ -28,22 +31,24 @@ export class SimLambdaEventSourceMappingInput {
28
31
  * cannot deliver as asked.
29
32
  */
30
33
  static of(input, scope) {
34
+ const eventSourceArn = eventSourceArnIn(input, scope);
35
+ refuseUnsupportedEventSourceInput(input);
31
36
  refuseUnsimulatedInput(input);
32
37
  return new this({
33
- eventSourceArn: eventSourceArnIn(input, scope),
38
+ eventSourceArn,
34
39
  functionName: simLambdaFunctionNameOf(requiredString(input.FunctionName, "functionName")),
35
- batchSize: batchSizeIn(input),
40
+ batchSize: eventSourceArn.batchRules.sizeIn(input.BatchSize),
36
41
  enabled: input.Enabled ?? true,
37
42
  functionResponseTypes: functionResponseTypesIn(input),
38
43
  });
39
44
  }
40
45
  }
41
46
  /**
42
- * The queue an event source ARN names, refusing one this simulated Lambda
43
- * cannot poll.
47
+ * The event source an ARN names, refusing one this simulated Lambda cannot
48
+ * poll.
44
49
  */
45
50
  function eventSourceArnIn(input, scope) {
46
- const eventSourceArn = SimLambdaSqsEventSourceArn.of(requiredString(input.EventSourceArn, "eventSourceArn"));
51
+ const eventSourceArn = simLambdaEventSourceArnOf(requiredString(input.EventSourceArn, "eventSourceArn"));
47
52
  if (!eventSourceArn.isIn(scope.accountId, scope.regionName)) {
48
53
  throw new SimLambdaInvalidParameterValueException(`EventSourceArn ${eventSourceArn.value} names Account ` +
49
54
  `${eventSourceArn.accountId} in ${eventSourceArn.regionName}, and a ` +
@@ -1 +1 @@
1
- {"version":3,"file":"create-event-source-mapping-input.js","sourceRoot":"","sources":["../../../../../src/service/lambda/command/event-source-mapping/create-event-source-mapping-input.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,0BAA0B,EAAE,MAAM,6DAA6D,CAAC;AAEzG,OAAO,EAAE,uCAAuC,EAAE,MAAM,iCAAiC,CAAC;AAC1F,OAAO,EAAE,uBAAuB,EAAE,MAAM,4CAA4C,CAAC;AACrF,OAAO,EACL,WAAW,EACX,uBAAuB,EACvB,cAAc,GACf,MAAM,yCAAyC,CAAC;AACjD,OAAO,EAAE,sBAAsB,EAAE,MAAM,2CAA2C,CAAC;AAWnF;;;;;;GAMG;AACH,MAAM,OAAO,gCAAgC;IAC3B,cAAc,CAA6B;IAC3C,YAAY,CAAS;IACrB,SAAS,CAAS;IAClB,OAAO,CAAU;IACjB,qBAAqB,CAA2C;IAEhF,YAAoB,UAAsD;QACxE,IAAI,CAAC,cAAc,GAAG,UAAU,CAAC,cAAc,CAAC;QAChD,IAAI,CAAC,YAAY,GAAG,UAAU,CAAC,YAAY,CAAC;QAC5C,IAAI,CAAC,SAAS,GAAG,UAAU,CAAC,SAAS,CAAC;QACtC,IAAI,CAAC,OAAO,GAAG,UAAU,CAAC,OAAO,CAAC;QAClC,IAAI,CAAC,qBAAqB,GAAG,UAAU,CAAC,qBAAqB,CAAC;IAChE,CAAC;IAED;;;OAGG;IACH,MAAM,CAAC,EAAE,CACP,KAA8C,EAC9C,KAA+B;QAE/B,sBAAsB,CAAC,KAAK,CAAC,CAAC;QAE9B,OAAO,IAAI,IAAI,CAAC;YACd,cAAc,EAAE,gBAAgB,CAAC,KAAK,EAAE,KAAK,CAAC;YAC9C,YAAY,EAAE,uBAAuB,CACnC,cAAc,CAAC,KAAK,CAAC,YAAY,EAAE,cAAc,CAAC,CACnD;YACD,SAAS,EAAE,WAAW,CAAC,KAAK,CAAC;YAC7B,OAAO,EAAE,KAAK,CAAC,OAAO,IAAI,IAAI;YAC9B,qBAAqB,EAAE,uBAAuB,CAAC,KAAK,CAAC;SACtD,CAAC,CAAC;IACL,CAAC;CACF;AAED;;;GAGG;AACH,SAAS,gBAAgB,CACvB,KAA8C,EAC9C,KAA+B;IAE/B,MAAM,cAAc,GAAG,0BAA0B,CAAC,EAAE,CAClD,cAAc,CAAC,KAAK,CAAC,cAAc,EAAE,gBAAgB,CAAC,CACvD,CAAC;IAEF,IAAI,CAAC,cAAc,CAAC,IAAI,CAAC,KAAK,CAAC,SAAS,EAAE,KAAK,CAAC,UAAU,CAAC,EAAE,CAAC;QAC5D,MAAM,IAAI,uCAAuC,CAC/C,kBAAkB,cAAc,CAAC,KAAK,iBAAiB;YACrD,GAAG,cAAc,CAAC,SAAS,OAAO,cAAc,CAAC,UAAU,UAAU;YACrE,uBAAuB,KAAK,CAAC,SAAS,OAAO,KAAK,CAAC,UAAU,OAAO;YACpE,yDAAyD,CAC5D,CAAC;IACJ,CAAC;IAED,OAAO,cAAc,CAAC;AACxB,CAAC"}
1
+ {"version":3,"file":"create-event-source-mapping-input.js","sourceRoot":"","sources":["../../../../../src/service/lambda/command/event-source-mapping/create-event-source-mapping-input.ts"],"names":[],"mappings":"AACA,OAAO,EAEL,yBAAyB,GAC1B,MAAM,mDAAmD,CAAC;AAE3D,OAAO,EAAE,uCAAuC,EAAE,MAAM,iCAAiC,CAAC;AAC1F,OAAO,EAAE,uBAAuB,EAAE,MAAM,4CAA4C,CAAC;AACrF,OAAO,EACL,uBAAuB,EACvB,cAAc,GACf,MAAM,yCAAyC,CAAC;AACjD,OAAO,EACL,sBAAsB,EACtB,iCAAiC,GAClC,MAAM,2CAA2C,CAAC;AAWnD;;;;;;;;;GASG;AACH,MAAM,OAAO,gCAAgC;IAC3B,cAAc,CAA0B;IACxC,YAAY,CAAS;IACrB,SAAS,CAAS;IAClB,OAAO,CAAU;IACjB,qBAAqB,CAA2C;IAEhF,YAAoB,UAAsD;QACxE,IAAI,CAAC,cAAc,GAAG,UAAU,CAAC,cAAc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C,UAAU,OAAO;YACpE,yDAAyD,CAC5D,CAAC;IACJ,CAAC;IAED,OAAO,cAAc,CAAC;AACxB,CAAC"}
@@ -3,4 +3,8 @@ import type { SimCreateEventSourceMappingCommandInput } from "./event-source-map
3
3
  * Refuse an input this simulation has no behaviour for.
4
4
  */
5
5
  export declare function refuseUnsimulatedInput(input: SimCreateEventSourceMappingCommandInput): void;
6
+ /**
7
+ * Refuse an input belonging to an event source this simulation does not have.
8
+ */
9
+ export declare function refuseUnsupportedEventSourceInput(input: SimCreateEventSourceMappingCommandInput): void;
6
10
  //# sourceMappingURL=create-event-source-mapping-refusals.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"create-event-source-mapping-refusals.d.ts","sourceRoot":"","sources":["../../../../../src/service/lambda/command/event-source-mapping/create-event-source-mapping-refusals.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,uCAAuC,EAAE,MAAM,mCAAmC,CAAC;AAgDjG;;GAEG;AACH,wBAAgB,sBAAsB,CACpC,KAAK,EAAE,uCAAuC,GAC7C,IAAI,CAqBN"}
1
+ {"version":3,"file":"create-event-source-mapping-refusals.d.ts","sourceRoot":"","sources":["../../../../../src/service/lambda/command/event-source-mapping/create-event-source-mapping-refusals.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,uCAAuC,EAAE,MAAM,mCAAmC,CAAC;AAgDjG;;GAEG;AACH,wBAAgB,sBAAsB,CACpC,KAAK,EAAE,uCAAuC,GAC7C,IAAI,CAqBN;AAED;;GAEG;AACH,wBAAgB,iCAAiC,CAC/C,KAAK,EAAE,uCAAuC,GAC7C,IAAI,CASN"}