@kensio/yulin 1.1.0 → 1.3.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 (689) hide show
  1. package/dist/sdk/router/resolve-sim-sdk-command-router.d.ts.map +1 -1
  2. package/dist/sdk/router/resolve-sim-sdk-command-router.js +3 -0
  3. package/dist/sdk/router/resolve-sim-sdk-command-router.js.map +1 -1
  4. package/dist/service/aws/factory/sim-aws-account-region-service-builder.d.ts +5 -4
  5. package/dist/service/aws/factory/sim-aws-account-region-service-builder.d.ts.map +1 -1
  6. package/dist/service/aws/factory/sim-aws-account-region-service-builder.js +17 -8
  7. package/dist/service/aws/factory/sim-aws-account-region-service-builder.js.map +1 -1
  8. package/dist/service/aws/factory/sim-aws-account-service-cache.d.ts.map +1 -1
  9. package/dist/service/aws/factory/sim-aws-account-service-cache.js +2 -0
  10. package/dist/service/aws/factory/sim-aws-account-service-cache.js.map +1 -1
  11. package/dist/service/aws/sim-aws-account-region-scope.d.ts +9 -1
  12. package/dist/service/aws/sim-aws-account-region-scope.d.ts.map +1 -1
  13. package/dist/service/aws/sim-aws-account-region-scope.js +10 -0
  14. package/dist/service/aws/sim-aws-account-region-scope.js.map +1 -1
  15. package/dist/service/aws/sim-aws-account.d.ts +5 -1
  16. package/dist/service/aws/sim-aws-account.d.ts.map +1 -1
  17. package/dist/service/aws/sim-aws-account.js +6 -0
  18. package/dist/service/aws/sim-aws-account.js.map +1 -1
  19. package/dist/service/aws/sim-aws-region.d.ts +5 -1
  20. package/dist/service/aws/sim-aws-region.d.ts.map +1 -1
  21. package/dist/service/aws/sim-aws-region.js +6 -0
  22. package/dist/service/aws/sim-aws-region.js.map +1 -1
  23. package/dist/service/aws/sim-aws-service-accessors.d.ts +3 -1
  24. package/dist/service/aws/sim-aws-service-accessors.d.ts.map +1 -1
  25. package/dist/service/aws/sim-aws-service-accessors.js +4 -0
  26. package/dist/service/aws/sim-aws-service-accessors.js.map +1 -1
  27. package/dist/service/cloudformation/cdk/s3/bucket-notifications/configuration/sim-cdk-bucket-notification-configuration.d.ts +2 -0
  28. package/dist/service/cloudformation/cdk/s3/bucket-notifications/configuration/sim-cdk-bucket-notification-configuration.d.ts.map +1 -1
  29. package/dist/service/cloudformation/cdk/s3/bucket-notifications/configuration/sim-cdk-bucket-notification-configuration.js +15 -1
  30. package/dist/service/cloudformation/cdk/s3/bucket-notifications/configuration/sim-cdk-bucket-notification-configuration.js.map +1 -1
  31. package/dist/service/cloudformation/resource/cfn/dynamodb/sim-dynamodb-table-cfn.d.ts +11 -3
  32. package/dist/service/cloudformation/resource/cfn/dynamodb/sim-dynamodb-table-cfn.d.ts.map +1 -1
  33. package/dist/service/cloudformation/resource/cfn/dynamodb/sim-dynamodb-table-cfn.js +20 -6
  34. package/dist/service/cloudformation/resource/cfn/dynamodb/sim-dynamodb-table-cfn.js.map +1 -1
  35. package/dist/service/cloudformation/template/condition/sim-cfn-condition-comparison.d.ts +27 -0
  36. package/dist/service/cloudformation/template/condition/sim-cfn-condition-comparison.d.ts.map +1 -0
  37. package/dist/service/cloudformation/template/condition/sim-cfn-condition-comparison.js +44 -0
  38. package/dist/service/cloudformation/template/condition/sim-cfn-condition-comparison.js.map +1 -0
  39. package/dist/service/cloudformation/template/condition/sim-cfn-condition-evaluator.d.ts +36 -0
  40. package/dist/service/cloudformation/template/condition/sim-cfn-condition-evaluator.d.ts.map +1 -0
  41. package/dist/service/cloudformation/template/condition/sim-cfn-condition-evaluator.js +68 -0
  42. package/dist/service/cloudformation/template/condition/sim-cfn-condition-evaluator.js.map +1 -0
  43. package/dist/service/cloudformation/template/condition/sim-cfn-condition-expression.d.ts +45 -0
  44. package/dist/service/cloudformation/template/condition/sim-cfn-condition-expression.d.ts.map +1 -0
  45. package/dist/service/cloudformation/template/condition/sim-cfn-condition-expression.js +80 -0
  46. package/dist/service/cloudformation/template/condition/sim-cfn-condition-expression.js.map +1 -0
  47. package/dist/service/cloudformation/template/condition/sim-cfn-conditions.d.ts +28 -0
  48. package/dist/service/cloudformation/template/condition/sim-cfn-conditions.d.ts.map +1 -0
  49. package/dist/service/cloudformation/template/condition/sim-cfn-conditions.js +29 -0
  50. package/dist/service/cloudformation/template/condition/sim-cfn-conditions.js.map +1 -0
  51. package/dist/service/cloudformation/template/condition/sim-cfn-resource-conditions.d.ts +46 -0
  52. package/dist/service/cloudformation/template/condition/sim-cfn-resource-conditions.d.ts.map +1 -0
  53. package/dist/service/cloudformation/template/condition/sim-cfn-resource-conditions.js +94 -0
  54. package/dist/service/cloudformation/template/condition/sim-cfn-resource-conditions.js.map +1 -0
  55. package/dist/service/cloudformation/template/node/fn/find-in-map/sim-cfn-fn-find-in-map.d.ts +0 -1
  56. package/dist/service/cloudformation/template/node/fn/find-in-map/sim-cfn-fn-find-in-map.d.ts.map +1 -1
  57. package/dist/service/cloudformation/template/node/fn/find-in-map/sim-cfn-fn-find-in-map.js +2 -14
  58. package/dist/service/cloudformation/template/node/fn/find-in-map/sim-cfn-fn-find-in-map.js.map +1 -1
  59. package/dist/service/cloudformation/template/node/fn/if/sim-cfn-fn-if.d.ts +31 -0
  60. package/dist/service/cloudformation/template/node/fn/if/sim-cfn-fn-if.d.ts.map +1 -0
  61. package/dist/service/cloudformation/template/node/fn/if/sim-cfn-fn-if.js +52 -0
  62. package/dist/service/cloudformation/template/node/fn/if/sim-cfn-fn-if.js.map +1 -0
  63. package/dist/service/cloudformation/template/node/fn/select/sim-cfn-fn-select.d.ts +39 -0
  64. package/dist/service/cloudformation/template/node/fn/select/sim-cfn-fn-select.d.ts.map +1 -0
  65. package/dist/service/cloudformation/template/node/fn/select/sim-cfn-fn-select.js +82 -0
  66. package/dist/service/cloudformation/template/node/fn/select/sim-cfn-fn-select.js.map +1 -0
  67. package/dist/service/cloudformation/template/node/fn/split/sim-cfn-fn-split.d.ts +31 -0
  68. package/dist/service/cloudformation/template/node/fn/split/sim-cfn-fn-split.d.ts.map +1 -0
  69. package/dist/service/cloudformation/template/node/fn/split/sim-cfn-fn-split.js +45 -0
  70. package/dist/service/cloudformation/template/node/fn/split/sim-cfn-fn-split.js.map +1 -0
  71. package/dist/service/cloudformation/template/node/sim-cfn-list.d.ts +1 -1
  72. package/dist/service/cloudformation/template/node/sim-cfn-list.d.ts.map +1 -1
  73. package/dist/service/cloudformation/template/node/sim-cfn-list.js +3 -2
  74. package/dist/service/cloudformation/template/node/sim-cfn-list.js.map +1 -1
  75. package/dist/service/cloudformation/template/node/sim-cfn-object.d.ts.map +1 -1
  76. package/dist/service/cloudformation/template/node/sim-cfn-object.js +5 -1
  77. package/dist/service/cloudformation/template/node/sim-cfn-object.js.map +1 -1
  78. package/dist/service/cloudformation/template/parse/fn/if/sim-cfn-fn-if-parser.d.ts +19 -0
  79. package/dist/service/cloudformation/template/parse/fn/if/sim-cfn-fn-if-parser.d.ts.map +1 -0
  80. package/dist/service/cloudformation/template/parse/fn/if/sim-cfn-fn-if-parser.js +33 -0
  81. package/dist/service/cloudformation/template/parse/fn/if/sim-cfn-fn-if-parser.js.map +1 -0
  82. package/dist/service/cloudformation/template/parse/fn/select/sim-cfn-fn-select-parser.d.ts +26 -0
  83. package/dist/service/cloudformation/template/parse/fn/select/sim-cfn-fn-select-parser.d.ts.map +1 -0
  84. package/dist/service/cloudformation/template/parse/fn/select/sim-cfn-fn-select-parser.js +35 -0
  85. package/dist/service/cloudformation/template/parse/fn/select/sim-cfn-fn-select-parser.js.map +1 -0
  86. package/dist/service/cloudformation/template/parse/fn/sim-cfn-function-parser.d.ts +3 -0
  87. package/dist/service/cloudformation/template/parse/fn/sim-cfn-function-parser.d.ts.map +1 -1
  88. package/dist/service/cloudformation/template/parse/fn/sim-cfn-function-parser.js +18 -0
  89. package/dist/service/cloudformation/template/parse/fn/sim-cfn-function-parser.js.map +1 -1
  90. package/dist/service/cloudformation/template/parse/fn/split/sim-cfn-fn-split-parser.d.ts +25 -0
  91. package/dist/service/cloudformation/template/parse/fn/split/sim-cfn-fn-split-parser.d.ts.map +1 -0
  92. package/dist/service/cloudformation/template/parse/fn/split/sim-cfn-fn-split-parser.js +36 -0
  93. package/dist/service/cloudformation/template/parse/fn/split/sim-cfn-fn-split-parser.js.map +1 -0
  94. package/dist/service/cloudformation/template/resolve/sim-cfn-resolve-context.d.ts +14 -4
  95. package/dist/service/cloudformation/template/resolve/sim-cfn-resolve-context.d.ts.map +1 -1
  96. package/dist/service/cloudformation/template/resolve/sim-cfn-resolve-context.js +7 -5
  97. package/dist/service/cloudformation/template/resolve/sim-cfn-resolve-context.js.map +1 -1
  98. package/dist/service/cloudformation/template/sim-cfn-template-body-validator.d.ts.map +1 -1
  99. package/dist/service/cloudformation/template/sim-cfn-template-body-validator.js +4 -0
  100. package/dist/service/cloudformation/template/sim-cfn-template-body-validator.js.map +1 -1
  101. package/dist/service/cloudformation/template/sim-cfn-template.d.ts +14 -0
  102. package/dist/service/cloudformation/template/sim-cfn-template.d.ts.map +1 -1
  103. package/dist/service/cloudformation/template/sim-cfn-template.js +44 -12
  104. package/dist/service/cloudformation/template/sim-cfn-template.js.map +1 -1
  105. package/dist/service/cloudformation/template/value/sim-cfn-template-value-resolver.d.ts +20 -0
  106. package/dist/service/cloudformation/template/value/sim-cfn-template-value-resolver.d.ts.map +1 -1
  107. package/dist/service/cloudformation/template/value/sim-cfn-template-value-resolver.js +32 -2
  108. package/dist/service/cloudformation/template/value/sim-cfn-template-value-resolver.js.map +1 -1
  109. package/dist/service/cloudformation/template/value/sim-cfn-unresolved-expression.d.ts +11 -0
  110. package/dist/service/cloudformation/template/value/sim-cfn-unresolved-expression.d.ts.map +1 -0
  111. package/dist/service/cloudformation/template/value/sim-cfn-unresolved-expression.js +21 -0
  112. package/dist/service/cloudformation/template/value/sim-cfn-unresolved-expression.js.map +1 -0
  113. package/dist/service/cloudformation/template/value/sim-cfn-value-path.d.ts +22 -0
  114. package/dist/service/cloudformation/template/value/sim-cfn-value-path.d.ts.map +1 -0
  115. package/dist/service/cloudformation/template/value/sim-cfn-value-path.js +92 -0
  116. package/dist/service/cloudformation/template/value/sim-cfn-value-path.js.map +1 -0
  117. package/dist/service/cloudfront/command/create-distribution/create-distribution.command.d.ts +7 -0
  118. package/dist/service/cloudfront/command/create-distribution/create-distribution.command.d.ts.map +1 -1
  119. package/dist/service/cloudfront/command/create-distribution/create-distribution.handler.d.ts +2 -0
  120. package/dist/service/cloudfront/command/create-distribution/create-distribution.handler.d.ts.map +1 -1
  121. package/dist/service/cloudfront/command/create-distribution/create-distribution.handler.js +1 -1
  122. package/dist/service/cloudfront/command/create-distribution/create-distribution.handler.js.map +1 -1
  123. package/dist/service/cloudfront/distribution/configurator/sim-cloud-front-origin-configurator.d.ts +10 -1
  124. package/dist/service/cloudfront/distribution/configurator/sim-cloud-front-origin-configurator.d.ts.map +1 -1
  125. package/dist/service/cloudfront/distribution/configurator/sim-cloud-front-origin-configurator.js +21 -1
  126. package/dist/service/cloudfront/distribution/configurator/sim-cloud-front-origin-configurator.js.map +1 -1
  127. package/dist/service/cloudfront/origin/custom/sim-cf-custom-origin-dispatcher.d.ts +24 -0
  128. package/dist/service/cloudfront/origin/custom/sim-cf-custom-origin-dispatcher.d.ts.map +1 -0
  129. package/dist/service/cloudfront/origin/custom/sim-cf-custom-origin-dispatcher.factory.d.ts +7 -0
  130. package/dist/service/cloudfront/origin/custom/sim-cf-custom-origin-dispatcher.factory.d.ts.map +1 -0
  131. package/dist/service/cloudfront/origin/custom/sim-cf-custom-origin-dispatcher.factory.js +38 -0
  132. package/dist/service/cloudfront/origin/custom/sim-cf-custom-origin-dispatcher.factory.js.map +1 -0
  133. package/dist/service/cloudfront/origin/custom/sim-cf-custom-origin-dispatcher.js +2 -0
  134. package/dist/service/cloudfront/origin/custom/sim-cf-custom-origin-dispatcher.js.map +1 -0
  135. package/dist/service/cloudfront/origin/custom/sim-cf-custom-origin-request.d.ts +17 -0
  136. package/dist/service/cloudfront/origin/custom/sim-cf-custom-origin-request.d.ts.map +1 -0
  137. package/dist/service/cloudfront/origin/custom/sim-cf-custom-origin-request.js +37 -0
  138. package/dist/service/cloudfront/origin/custom/sim-cf-custom-origin-request.js.map +1 -0
  139. package/dist/service/cloudfront/origin/custom/sim-cloudfront-custom-origin.d.ts +38 -0
  140. package/dist/service/cloudfront/origin/custom/sim-cloudfront-custom-origin.d.ts.map +1 -0
  141. package/dist/service/cloudfront/origin/custom/sim-cloudfront-custom-origin.js +45 -0
  142. package/dist/service/cloudfront/origin/custom/sim-cloudfront-custom-origin.js.map +1 -0
  143. package/dist/service/cloudfront/sim-cloudfront.d.ts +3 -0
  144. package/dist/service/cloudfront/sim-cloudfront.d.ts.map +1 -1
  145. package/dist/service/cloudfront/sim-cloudfront.js +4 -1
  146. package/dist/service/cloudfront/sim-cloudfront.js.map +1 -1
  147. package/dist/service/dynamodb/cfn/table/sim-cfn-dynamodb-table-creator.d.ts.map +1 -1
  148. package/dist/service/dynamodb/cfn/table/sim-cfn-dynamodb-table-creator.js +1 -0
  149. package/dist/service/dynamodb/cfn/table/sim-cfn-dynamodb-table-creator.js.map +1 -1
  150. package/dist/service/dynamodb/cfn/table/sim-cfn-dynamodb-table-properties.d.ts +5 -0
  151. package/dist/service/dynamodb/cfn/table/sim-cfn-dynamodb-table-properties.d.ts.map +1 -1
  152. package/dist/service/dynamodb/cfn/table/sim-cfn-dynamodb-table-properties.js +7 -0
  153. package/dist/service/dynamodb/cfn/table/sim-cfn-dynamodb-table-properties.js.map +1 -1
  154. package/dist/service/dynamodb/cfn/table/sim-cfn-dynamodb-table-property-rules.d.ts +5 -4
  155. package/dist/service/dynamodb/cfn/table/sim-cfn-dynamodb-table-property-rules.d.ts.map +1 -1
  156. package/dist/service/dynamodb/cfn/table/sim-cfn-dynamodb-table-property-rules.js +16 -11
  157. package/dist/service/dynamodb/cfn/table/sim-cfn-dynamodb-table-property-rules.js.map +1 -1
  158. package/dist/service/dynamodb/cfn/table/sim-cfn-dynamodb-table-stream-rules.d.ts +23 -0
  159. package/dist/service/dynamodb/cfn/table/sim-cfn-dynamodb-table-stream-rules.d.ts.map +1 -0
  160. package/dist/service/dynamodb/cfn/table/sim-cfn-dynamodb-table-stream-rules.js +62 -0
  161. package/dist/service/dynamodb/cfn/table/sim-cfn-dynamodb-table-stream-rules.js.map +1 -0
  162. package/dist/service/dynamodb/cfn/table/sim-cfn-dynamodb-table-stream.d.ts +17 -0
  163. package/dist/service/dynamodb/cfn/table/sim-cfn-dynamodb-table-stream.d.ts.map +1 -0
  164. package/dist/service/dynamodb/cfn/table/sim-cfn-dynamodb-table-stream.js +24 -0
  165. package/dist/service/dynamodb/cfn/table/sim-cfn-dynamodb-table-stream.js.map +1 -0
  166. package/dist/service/dynamodb/command/authorize/sim-dynamodb-authorizer.d.ts +11 -0
  167. package/dist/service/dynamodb/command/authorize/sim-dynamodb-authorizer.d.ts.map +1 -1
  168. package/dist/service/dynamodb/command/authorize/sim-dynamodb-authorizer.js +13 -0
  169. package/dist/service/dynamodb/command/authorize/sim-dynamodb-authorizer.js.map +1 -1
  170. package/dist/service/dynamodb/command/sim-dynamodb-command-handlers.d.ts +4 -0
  171. package/dist/service/dynamodb/command/sim-dynamodb-command-handlers.d.ts.map +1 -1
  172. package/dist/service/dynamodb/command/sim-dynamodb-command-handlers.js +2 -0
  173. package/dist/service/dynamodb/command/sim-dynamodb-command-handlers.js.map +1 -1
  174. package/dist/service/dynamodb/command/stream/describe-stream/describe-stream.command.d.ts +43 -0
  175. package/dist/service/dynamodb/command/stream/describe-stream/describe-stream.command.d.ts.map +1 -0
  176. package/dist/service/dynamodb/command/stream/describe-stream/describe-stream.command.js +5 -0
  177. package/dist/service/dynamodb/command/stream/describe-stream/describe-stream.command.js.map +1 -0
  178. package/dist/service/dynamodb/command/stream/describe-stream/sim-dynamodb-describe-stream.d.ts +26 -0
  179. package/dist/service/dynamodb/command/stream/describe-stream/sim-dynamodb-describe-stream.d.ts.map +1 -0
  180. package/dist/service/dynamodb/command/stream/describe-stream/sim-dynamodb-describe-stream.js +77 -0
  181. package/dist/service/dynamodb/command/stream/describe-stream/sim-dynamodb-describe-stream.js.map +1 -0
  182. package/dist/service/dynamodb/command/stream/get-records/get-records.command.d.ts +32 -0
  183. package/dist/service/dynamodb/command/stream/get-records/get-records.command.d.ts.map +1 -0
  184. package/dist/service/dynamodb/command/stream/get-records/get-records.command.js +5 -0
  185. package/dist/service/dynamodb/command/stream/get-records/get-records.command.js.map +1 -0
  186. package/dist/service/dynamodb/command/stream/get-records/sim-dynamodb-get-records.d.ts +29 -0
  187. package/dist/service/dynamodb/command/stream/get-records/sim-dynamodb-get-records.d.ts.map +1 -0
  188. package/dist/service/dynamodb/command/stream/get-records/sim-dynamodb-get-records.js +60 -0
  189. package/dist/service/dynamodb/command/stream/get-records/sim-dynamodb-get-records.js.map +1 -0
  190. package/dist/service/dynamodb/command/stream/get-records/sim-dynamodb-streams-api-record.d.ts +12 -0
  191. package/dist/service/dynamodb/command/stream/get-records/sim-dynamodb-streams-api-record.d.ts.map +1 -0
  192. package/dist/service/dynamodb/command/stream/get-records/sim-dynamodb-streams-api-record.js +52 -0
  193. package/dist/service/dynamodb/command/stream/get-records/sim-dynamodb-streams-api-record.js.map +1 -0
  194. package/dist/service/dynamodb/command/stream/get-shard-iterator/get-shard-iterator.command.d.ts +31 -0
  195. package/dist/service/dynamodb/command/stream/get-shard-iterator/get-shard-iterator.command.d.ts.map +1 -0
  196. package/dist/service/dynamodb/command/stream/get-shard-iterator/get-shard-iterator.command.js +5 -0
  197. package/dist/service/dynamodb/command/stream/get-shard-iterator/get-shard-iterator.command.js.map +1 -0
  198. package/dist/service/dynamodb/command/stream/get-shard-iterator/sim-dynamodb-get-shard-iterator.d.ts +27 -0
  199. package/dist/service/dynamodb/command/stream/get-shard-iterator/sim-dynamodb-get-shard-iterator.d.ts.map +1 -0
  200. package/dist/service/dynamodb/command/stream/get-shard-iterator/sim-dynamodb-get-shard-iterator.js +42 -0
  201. package/dist/service/dynamodb/command/stream/get-shard-iterator/sim-dynamodb-get-shard-iterator.js.map +1 -0
  202. package/dist/service/dynamodb/command/stream/get-shard-iterator/sim-dynamodb-shard-iterator-position.d.ts +11 -0
  203. package/dist/service/dynamodb/command/stream/get-shard-iterator/sim-dynamodb-shard-iterator-position.d.ts.map +1 -0
  204. package/dist/service/dynamodb/command/stream/get-shard-iterator/sim-dynamodb-shard-iterator-position.js +53 -0
  205. package/dist/service/dynamodb/command/stream/get-shard-iterator/sim-dynamodb-shard-iterator-position.js.map +1 -0
  206. package/dist/service/dynamodb/command/stream/list-streams/list-streams.command.d.ts +33 -0
  207. package/dist/service/dynamodb/command/stream/list-streams/list-streams.command.d.ts.map +1 -0
  208. package/dist/service/dynamodb/command/stream/list-streams/list-streams.command.js +5 -0
  209. package/dist/service/dynamodb/command/stream/list-streams/list-streams.command.js.map +1 -0
  210. package/dist/service/dynamodb/command/stream/list-streams/sim-dynamodb-list-streams.d.ts +26 -0
  211. package/dist/service/dynamodb/command/stream/list-streams/sim-dynamodb-list-streams.d.ts.map +1 -0
  212. package/dist/service/dynamodb/command/stream/list-streams/sim-dynamodb-list-streams.js +31 -0
  213. package/dist/service/dynamodb/command/stream/list-streams/sim-dynamodb-list-streams.js.map +1 -0
  214. package/dist/service/dynamodb/command/stream/list-streams/sim-dynamodb-stream-page.d.ts +28 -0
  215. package/dist/service/dynamodb/command/stream/list-streams/sim-dynamodb-stream-page.d.ts.map +1 -0
  216. package/dist/service/dynamodb/command/stream/list-streams/sim-dynamodb-stream-page.js +59 -0
  217. package/dist/service/dynamodb/command/stream/list-streams/sim-dynamodb-stream-page.js.map +1 -0
  218. package/dist/service/dynamodb/command/stream/sim-dynamodb-stream-access.d.ts +44 -0
  219. package/dist/service/dynamodb/command/stream/sim-dynamodb-stream-access.d.ts.map +1 -0
  220. package/dist/service/dynamodb/command/stream/sim-dynamodb-stream-access.js +53 -0
  221. package/dist/service/dynamodb/command/stream/sim-dynamodb-stream-access.js.map +1 -0
  222. package/dist/service/dynamodb/command/stream/sim-dynamodb-stream-command.types.d.ts +8 -0
  223. package/dist/service/dynamodb/command/stream/sim-dynamodb-stream-command.types.d.ts.map +1 -0
  224. package/dist/service/dynamodb/command/stream/sim-dynamodb-stream-command.types.js +2 -0
  225. package/dist/service/dynamodb/command/stream/sim-dynamodb-stream-command.types.js.map +1 -0
  226. package/dist/service/dynamodb/command/stream/stream.types.d.ts +84 -0
  227. package/dist/service/dynamodb/command/stream/stream.types.d.ts.map +1 -0
  228. package/dist/service/dynamodb/command/stream/stream.types.js +2 -0
  229. package/dist/service/dynamodb/command/stream/stream.types.js.map +1 -0
  230. package/dist/service/dynamodb/command/table/sim-dynamodb-create-table.d.ts +6 -0
  231. package/dist/service/dynamodb/command/table/sim-dynamodb-create-table.d.ts.map +1 -1
  232. package/dist/service/dynamodb/command/table/sim-dynamodb-create-table.js +11 -0
  233. package/dist/service/dynamodb/command/table/sim-dynamodb-create-table.js.map +1 -1
  234. package/dist/service/dynamodb/command/table/sim-dynamodb-unsimulated-table-input.d.ts +6 -5
  235. package/dist/service/dynamodb/command/table/sim-dynamodb-unsimulated-table-input.d.ts.map +1 -1
  236. package/dist/service/dynamodb/command/table/sim-dynamodb-unsimulated-table-input.js +6 -16
  237. package/dist/service/dynamodb/command/table/sim-dynamodb-unsimulated-table-input.js.map +1 -1
  238. package/dist/service/dynamodb/command/table/sim-dynamodb-unsimulated-update-input.d.ts +4 -4
  239. package/dist/service/dynamodb/command/table/sim-dynamodb-unsimulated-update-input.d.ts.map +1 -1
  240. package/dist/service/dynamodb/command/table/sim-dynamodb-unsimulated-update-input.js +4 -9
  241. package/dist/service/dynamodb/command/table/sim-dynamodb-unsimulated-update-input.js.map +1 -1
  242. package/dist/service/dynamodb/command/table/table.command.d.ts +2 -1
  243. package/dist/service/dynamodb/command/table/table.command.d.ts.map +1 -1
  244. package/dist/service/dynamodb/command/table/table.types.d.ts +4 -7
  245. package/dist/service/dynamodb/command/table/table.types.d.ts.map +1 -1
  246. package/dist/service/dynamodb/error/dynamodb.error.d.ts +17 -0
  247. package/dist/service/dynamodb/error/dynamodb.error.d.ts.map +1 -1
  248. package/dist/service/dynamodb/error/dynamodb.error.js +19 -0
  249. package/dist/service/dynamodb/error/dynamodb.error.js.map +1 -1
  250. package/dist/service/dynamodb/index.d.ts +1 -0
  251. package/dist/service/dynamodb/index.d.ts.map +1 -1
  252. package/dist/service/dynamodb/index.js +1 -0
  253. package/dist/service/dynamodb/index.js.map +1 -1
  254. package/dist/service/dynamodb/sdk/sim-dynamodb-streams-sdk-command-router.d.ts +24 -0
  255. package/dist/service/dynamodb/sdk/sim-dynamodb-streams-sdk-command-router.d.ts.map +1 -0
  256. package/dist/service/dynamodb/sdk/sim-dynamodb-streams-sdk-command-router.js +46 -0
  257. package/dist/service/dynamodb/sdk/sim-dynamodb-streams-sdk-command-router.js.map +1 -0
  258. package/dist/service/dynamodb/sim-dynamodb-streams.d.ts +59 -0
  259. package/dist/service/dynamodb/sim-dynamodb-streams.d.ts.map +1 -0
  260. package/dist/service/dynamodb/sim-dynamodb-streams.js +79 -0
  261. package/dist/service/dynamodb/sim-dynamodb-streams.js.map +1 -0
  262. package/dist/service/dynamodb/sim-dynamodb.d.ts +45 -60
  263. package/dist/service/dynamodb/sim-dynamodb.d.ts.map +1 -1
  264. package/dist/service/dynamodb/sim-dynamodb.js +59 -60
  265. package/dist/service/dynamodb/sim-dynamodb.js.map +1 -1
  266. package/dist/service/dynamodb/stream/sim-dynamodb-item-change.d.ts +34 -0
  267. package/dist/service/dynamodb/stream/sim-dynamodb-item-change.d.ts.map +1 -0
  268. package/dist/service/dynamodb/stream/sim-dynamodb-item-change.js +2 -0
  269. package/dist/service/dynamodb/stream/sim-dynamodb-item-change.js.map +1 -0
  270. package/dist/service/dynamodb/stream/sim-dynamodb-stream-activity.d.ts +42 -0
  271. package/dist/service/dynamodb/stream/sim-dynamodb-stream-activity.d.ts.map +1 -0
  272. package/dist/service/dynamodb/stream/sim-dynamodb-stream-activity.js +35 -0
  273. package/dist/service/dynamodb/stream/sim-dynamodb-stream-activity.js.map +1 -0
  274. package/dist/service/dynamodb/stream/sim-dynamodb-stream-arn.d.ts +22 -0
  275. package/dist/service/dynamodb/stream/sim-dynamodb-stream-arn.d.ts.map +1 -0
  276. package/dist/service/dynamodb/stream/sim-dynamodb-stream-arn.js +30 -0
  277. package/dist/service/dynamodb/stream/sim-dynamodb-stream-arn.js.map +1 -0
  278. package/dist/service/dynamodb/stream/sim-dynamodb-stream-images.d.ts +22 -0
  279. package/dist/service/dynamodb/stream/sim-dynamodb-stream-images.d.ts.map +1 -0
  280. package/dist/service/dynamodb/stream/sim-dynamodb-stream-images.js +27 -0
  281. package/dist/service/dynamodb/stream/sim-dynamodb-stream-images.js.map +1 -0
  282. package/dist/service/dynamodb/stream/sim-dynamodb-stream-position.d.ts +31 -0
  283. package/dist/service/dynamodb/stream/sim-dynamodb-stream-position.d.ts.map +1 -0
  284. package/dist/service/dynamodb/stream/sim-dynamodb-stream-position.js +13 -0
  285. package/dist/service/dynamodb/stream/sim-dynamodb-stream-position.js.map +1 -0
  286. package/dist/service/dynamodb/stream/sim-dynamodb-stream-read.d.ts +33 -0
  287. package/dist/service/dynamodb/stream/sim-dynamodb-stream-read.d.ts.map +1 -0
  288. package/dist/service/dynamodb/stream/sim-dynamodb-stream-read.js +66 -0
  289. package/dist/service/dynamodb/stream/sim-dynamodb-stream-read.js.map +1 -0
  290. package/dist/service/dynamodb/stream/sim-dynamodb-stream-record-keys.d.ts +15 -0
  291. package/dist/service/dynamodb/stream/sim-dynamodb-stream-record-keys.d.ts.map +1 -0
  292. package/dist/service/dynamodb/stream/sim-dynamodb-stream-record-keys.js +25 -0
  293. package/dist/service/dynamodb/stream/sim-dynamodb-stream-record-keys.js.map +1 -0
  294. package/dist/service/dynamodb/stream/sim-dynamodb-stream-record-size.d.ts +11 -0
  295. package/dist/service/dynamodb/stream/sim-dynamodb-stream-record-size.d.ts.map +1 -0
  296. package/dist/service/dynamodb/stream/sim-dynamodb-stream-record-size.js +74 -0
  297. package/dist/service/dynamodb/stream/sim-dynamodb-stream-record-size.js.map +1 -0
  298. package/dist/service/dynamodb/stream/sim-dynamodb-stream-record.d.ts +49 -0
  299. package/dist/service/dynamodb/stream/sim-dynamodb-stream-record.d.ts.map +1 -0
  300. package/dist/service/dynamodb/stream/sim-dynamodb-stream-record.js +60 -0
  301. package/dist/service/dynamodb/stream/sim-dynamodb-stream-record.js.map +1 -0
  302. package/dist/service/dynamodb/stream/sim-dynamodb-stream-retention.d.ts +17 -0
  303. package/dist/service/dynamodb/stream/sim-dynamodb-stream-retention.d.ts.map +1 -0
  304. package/dist/service/dynamodb/stream/sim-dynamodb-stream-retention.js +24 -0
  305. package/dist/service/dynamodb/stream/sim-dynamodb-stream-retention.js.map +1 -0
  306. package/dist/service/dynamodb/stream/sim-dynamodb-stream-sequence-numbers.d.ts +34 -0
  307. package/dist/service/dynamodb/stream/sim-dynamodb-stream-sequence-numbers.d.ts.map +1 -0
  308. package/dist/service/dynamodb/stream/sim-dynamodb-stream-sequence-numbers.js +63 -0
  309. package/dist/service/dynamodb/stream/sim-dynamodb-stream-sequence-numbers.js.map +1 -0
  310. package/dist/service/dynamodb/stream/sim-dynamodb-stream-shard-iterator.d.ts +25 -0
  311. package/dist/service/dynamodb/stream/sim-dynamodb-stream-shard-iterator.d.ts.map +1 -0
  312. package/dist/service/dynamodb/stream/sim-dynamodb-stream-shard-iterator.js +74 -0
  313. package/dist/service/dynamodb/stream/sim-dynamodb-stream-shard-iterator.js.map +1 -0
  314. package/dist/service/dynamodb/stream/sim-dynamodb-stream-shard.d.ts +72 -0
  315. package/dist/service/dynamodb/stream/sim-dynamodb-stream-shard.d.ts.map +1 -0
  316. package/dist/service/dynamodb/stream/sim-dynamodb-stream-shard.js +113 -0
  317. package/dist/service/dynamodb/stream/sim-dynamodb-stream-shard.js.map +1 -0
  318. package/dist/service/dynamodb/stream/sim-dynamodb-stream-specification.d.ts +28 -0
  319. package/dist/service/dynamodb/stream/sim-dynamodb-stream-specification.d.ts.map +1 -0
  320. package/dist/service/dynamodb/stream/sim-dynamodb-stream-specification.js +30 -0
  321. package/dist/service/dynamodb/stream/sim-dynamodb-stream-specification.js.map +1 -0
  322. package/dist/service/dynamodb/stream/sim-dynamodb-stream-store.d.ts +42 -0
  323. package/dist/service/dynamodb/stream/sim-dynamodb-stream-store.d.ts.map +1 -0
  324. package/dist/service/dynamodb/stream/sim-dynamodb-stream-store.js +54 -0
  325. package/dist/service/dynamodb/stream/sim-dynamodb-stream-store.js.map +1 -0
  326. package/dist/service/dynamodb/stream/sim-dynamodb-stream-update.d.ts +13 -0
  327. package/dist/service/dynamodb/stream/sim-dynamodb-stream-update.d.ts.map +1 -0
  328. package/dist/service/dynamodb/stream/sim-dynamodb-stream-update.js +48 -0
  329. package/dist/service/dynamodb/stream/sim-dynamodb-stream-update.js.map +1 -0
  330. package/dist/service/dynamodb/stream/sim-dynamodb-stream-view-type.d.ts +10 -0
  331. package/dist/service/dynamodb/stream/sim-dynamodb-stream-view-type.d.ts.map +1 -0
  332. package/dist/service/dynamodb/stream/sim-dynamodb-stream-view-type.js +38 -0
  333. package/dist/service/dynamodb/stream/sim-dynamodb-stream-view-type.js.map +1 -0
  334. package/dist/service/dynamodb/stream/sim-dynamodb-stream.d.ts +88 -0
  335. package/dist/service/dynamodb/stream/sim-dynamodb-stream.d.ts.map +1 -0
  336. package/dist/service/dynamodb/stream/sim-dynamodb-stream.js +100 -0
  337. package/dist/service/dynamodb/stream/sim-dynamodb-stream.js.map +1 -0
  338. package/dist/service/dynamodb/stream/sim-dynamodb-stream.types.d.ts +24 -0
  339. package/dist/service/dynamodb/stream/sim-dynamodb-stream.types.d.ts.map +1 -0
  340. package/dist/service/dynamodb/stream/sim-dynamodb-stream.types.js +2 -0
  341. package/dist/service/dynamodb/stream/sim-dynamodb-stream.types.js.map +1 -0
  342. package/dist/service/dynamodb/stream/sim-dynamodb-streamed-orders.factory.d.ts +31 -0
  343. package/dist/service/dynamodb/stream/sim-dynamodb-streamed-orders.factory.d.ts.map +1 -0
  344. package/dist/service/dynamodb/stream/sim-dynamodb-streamed-orders.factory.js +33 -0
  345. package/dist/service/dynamodb/stream/sim-dynamodb-streamed-orders.factory.js.map +1 -0
  346. package/dist/service/dynamodb/stream/sim-dynamodb-streamed-table.factory.d.ts +31 -0
  347. package/dist/service/dynamodb/stream/sim-dynamodb-streamed-table.factory.d.ts.map +1 -0
  348. package/dist/service/dynamodb/stream/sim-dynamodb-streamed-table.factory.js +45 -0
  349. package/dist/service/dynamodb/stream/sim-dynamodb-streamed-table.factory.js.map +1 -0
  350. package/dist/service/dynamodb/stream/sim-dynamodb-table-stream.d.ts +97 -0
  351. package/dist/service/dynamodb/stream/sim-dynamodb-table-stream.d.ts.map +1 -0
  352. package/dist/service/dynamodb/stream/sim-dynamodb-table-stream.js +135 -0
  353. package/dist/service/dynamodb/stream/sim-dynamodb-table-stream.js.map +1 -0
  354. package/dist/service/dynamodb/table/sim-dynamodb-table-description.d.ts.map +1 -1
  355. package/dist/service/dynamodb/table/sim-dynamodb-table-description.js +6 -0
  356. package/dist/service/dynamodb/table/sim-dynamodb-table-description.js.map +1 -1
  357. package/dist/service/dynamodb/table/sim-dynamodb-table-items.d.ts +33 -1
  358. package/dist/service/dynamodb/table/sim-dynamodb-table-items.d.ts.map +1 -1
  359. package/dist/service/dynamodb/table/sim-dynamodb-table-items.js +46 -1
  360. package/dist/service/dynamodb/table/sim-dynamodb-table-items.js.map +1 -1
  361. package/dist/service/dynamodb/table/sim-dynamodb-table-storage.d.ts +95 -0
  362. package/dist/service/dynamodb/table/sim-dynamodb-table-storage.d.ts.map +1 -0
  363. package/dist/service/dynamodb/table/sim-dynamodb-table-storage.js +120 -0
  364. package/dist/service/dynamodb/table/sim-dynamodb-table-storage.js.map +1 -0
  365. package/dist/service/dynamodb/table/sim-dynamodb-table-update.d.ts +2 -0
  366. package/dist/service/dynamodb/table/sim-dynamodb-table-update.d.ts.map +1 -1
  367. package/dist/service/dynamodb/table/sim-dynamodb-table-update.js +11 -6
  368. package/dist/service/dynamodb/table/sim-dynamodb-table-update.js.map +1 -1
  369. package/dist/service/dynamodb/table/sim-dynamodb-table.d.ts +33 -70
  370. package/dist/service/dynamodb/table/sim-dynamodb-table.d.ts.map +1 -1
  371. package/dist/service/dynamodb/table/sim-dynamodb-table.js +50 -93
  372. package/dist/service/dynamodb/table/sim-dynamodb-table.js.map +1 -1
  373. package/dist/service/dynamodb/table/sim-dynamodb-updatable-table.d.ts +6 -3
  374. package/dist/service/dynamodb/table/sim-dynamodb-updatable-table.d.ts.map +1 -1
  375. package/dist/service/dynamodb/time-to-live/sim-dynamodb-table-time-to-live.d.ts.map +1 -1
  376. package/dist/service/dynamodb/time-to-live/sim-dynamodb-table-time-to-live.js +5 -1
  377. package/dist/service/dynamodb/time-to-live/sim-dynamodb-table-time-to-live.js.map +1 -1
  378. package/dist/service/lambda/cfn/event-source-mapping/sim-cfn-lambda-event-source-mapping-properties.d.ts +14 -0
  379. package/dist/service/lambda/cfn/event-source-mapping/sim-cfn-lambda-event-source-mapping-properties.d.ts.map +1 -1
  380. package/dist/service/lambda/cfn/event-source-mapping/sim-cfn-lambda-event-source-mapping-properties.js +29 -1
  381. package/dist/service/lambda/cfn/event-source-mapping/sim-cfn-lambda-event-source-mapping-properties.js.map +1 -1
  382. package/dist/service/lambda/cfn/event-source-mapping/sim-cfn-lambda-event-source-mapping-property-rules.d.ts.map +1 -1
  383. package/dist/service/lambda/cfn/event-source-mapping/sim-cfn-lambda-event-source-mapping-property-rules.js +8 -2
  384. package/dist/service/lambda/cfn/event-source-mapping/sim-cfn-lambda-event-source-mapping-property-rules.js.map +1 -1
  385. package/dist/service/lambda/command/event-source-mapping/create-event-source-mapping-input.d.ts +7 -2
  386. package/dist/service/lambda/command/event-source-mapping/create-event-source-mapping-input.d.ts.map +1 -1
  387. package/dist/service/lambda/command/event-source-mapping/create-event-source-mapping-input.js +20 -9
  388. package/dist/service/lambda/command/event-source-mapping/create-event-source-mapping-input.js.map +1 -1
  389. package/dist/service/lambda/command/event-source-mapping/create-event-source-mapping-refusals.d.ts +4 -0
  390. package/dist/service/lambda/command/event-source-mapping/create-event-source-mapping-refusals.d.ts.map +1 -1
  391. package/dist/service/lambda/command/event-source-mapping/create-event-source-mapping-refusals.js +49 -20
  392. package/dist/service/lambda/command/event-source-mapping/create-event-source-mapping-refusals.js.map +1 -1
  393. package/dist/service/lambda/command/event-source-mapping/create-event-source-mapping-values.d.ts +5 -6
  394. package/dist/service/lambda/command/event-source-mapping/create-event-source-mapping-values.d.ts.map +1 -1
  395. package/dist/service/lambda/command/event-source-mapping/create-event-source-mapping-values.js +5 -22
  396. package/dist/service/lambda/command/event-source-mapping/create-event-source-mapping-values.js.map +1 -1
  397. package/dist/service/lambda/command/event-source-mapping/create-event-source-mapping.handler.d.ts +7 -3
  398. package/dist/service/lambda/command/event-source-mapping/create-event-source-mapping.handler.d.ts.map +1 -1
  399. package/dist/service/lambda/command/event-source-mapping/create-event-source-mapping.handler.js +15 -10
  400. package/dist/service/lambda/command/event-source-mapping/create-event-source-mapping.handler.js.map +1 -1
  401. package/dist/service/lambda/command/event-source-mapping/sim-lambda-event-source-mapping-commands.d.ts +3 -1
  402. package/dist/service/lambda/command/event-source-mapping/sim-lambda-event-source-mapping-commands.d.ts.map +1 -1
  403. package/dist/service/lambda/command/event-source-mapping/sim-lambda-event-source-mapping-commands.js +1 -1
  404. package/dist/service/lambda/command/event-source-mapping/sim-lambda-event-source-mapping-commands.js.map +1 -1
  405. package/dist/service/lambda/event-source/poll/sim-lambda-batch-item-failures.d.ts +17 -0
  406. package/dist/service/lambda/event-source/poll/sim-lambda-batch-item-failures.d.ts.map +1 -0
  407. package/dist/service/lambda/event-source/poll/sim-lambda-batch-item-failures.js +46 -0
  408. package/dist/service/lambda/event-source/poll/sim-lambda-batch-item-failures.js.map +1 -0
  409. package/dist/service/lambda/event-source/poll/sim-lambda-dynamodb-event-image.d.ts +23 -0
  410. package/dist/service/lambda/event-source/poll/sim-lambda-dynamodb-event-image.d.ts.map +1 -0
  411. package/dist/service/lambda/event-source/poll/sim-lambda-dynamodb-event-image.js +55 -0
  412. package/dist/service/lambda/event-source/poll/sim-lambda-dynamodb-event-image.js.map +1 -0
  413. package/dist/service/lambda/event-source/poll/sim-lambda-dynamodb-polled-stream.d.ts +27 -0
  414. package/dist/service/lambda/event-source/poll/sim-lambda-dynamodb-polled-stream.d.ts.map +1 -0
  415. package/dist/service/lambda/event-source/poll/sim-lambda-dynamodb-polled-stream.js +41 -0
  416. package/dist/service/lambda/event-source/poll/sim-lambda-dynamodb-polled-stream.js.map +1 -0
  417. package/dist/service/lambda/event-source/poll/sim-lambda-dynamodb-stream-delivery.d.ts +42 -0
  418. package/dist/service/lambda/event-source/poll/sim-lambda-dynamodb-stream-delivery.d.ts.map +1 -0
  419. package/dist/service/lambda/event-source/poll/sim-lambda-dynamodb-stream-delivery.js +52 -0
  420. package/dist/service/lambda/event-source/poll/sim-lambda-dynamodb-stream-delivery.js.map +1 -0
  421. package/dist/service/lambda/event-source/poll/sim-lambda-dynamodb-stream-event-source-poller.d.ts +77 -0
  422. package/dist/service/lambda/event-source/poll/sim-lambda-dynamodb-stream-event-source-poller.d.ts.map +1 -0
  423. package/dist/service/lambda/event-source/poll/sim-lambda-dynamodb-stream-event-source-poller.js +114 -0
  424. package/dist/service/lambda/event-source/poll/sim-lambda-dynamodb-stream-event-source-poller.js.map +1 -0
  425. package/dist/service/lambda/event-source/poll/sim-lambda-dynamodb-stream-event.d.ts +21 -0
  426. package/dist/service/lambda/event-source/poll/sim-lambda-dynamodb-stream-event.d.ts.map +1 -0
  427. package/dist/service/lambda/event-source/poll/sim-lambda-dynamodb-stream-event.js +56 -0
  428. package/dist/service/lambda/event-source/poll/sim-lambda-dynamodb-stream-event.js.map +1 -0
  429. package/dist/service/lambda/event-source/poll/sim-lambda-dynamodb-stream-event.types.d.ts +78 -0
  430. package/dist/service/lambda/event-source/poll/sim-lambda-dynamodb-stream-event.types.d.ts.map +1 -0
  431. package/dist/service/lambda/event-source/poll/sim-lambda-dynamodb-stream-event.types.js +8 -0
  432. package/dist/service/lambda/event-source/poll/sim-lambda-dynamodb-stream-event.types.js.map +1 -0
  433. package/dist/service/lambda/event-source/poll/sim-lambda-event-source-batch-response.d.ts +39 -0
  434. package/dist/service/lambda/event-source/poll/sim-lambda-event-source-batch-response.d.ts.map +1 -0
  435. package/dist/service/lambda/event-source/poll/sim-lambda-event-source-batch-response.js +28 -0
  436. package/dist/service/lambda/event-source/poll/sim-lambda-event-source-batch-response.js.map +1 -0
  437. package/dist/service/lambda/event-source/poll/sim-lambda-event-source-delivery.d.ts +33 -7
  438. package/dist/service/lambda/event-source/poll/sim-lambda-event-source-delivery.d.ts.map +1 -1
  439. package/dist/service/lambda/event-source/poll/sim-lambda-event-source-delivery.js +7 -6
  440. package/dist/service/lambda/event-source/poll/sim-lambda-event-source-delivery.js.map +1 -1
  441. package/dist/service/lambda/event-source/poll/sim-lambda-event-source-poll-turn.d.ts +40 -0
  442. package/dist/service/lambda/event-source/poll/sim-lambda-event-source-poll-turn.d.ts.map +1 -0
  443. package/dist/service/lambda/event-source/poll/sim-lambda-event-source-poll-turn.js +45 -0
  444. package/dist/service/lambda/event-source/poll/sim-lambda-event-source-poll-turn.js.map +1 -0
  445. package/dist/service/lambda/event-source/poll/sim-lambda-event-source-poller-factory.d.ts +26 -0
  446. package/dist/service/lambda/event-source/poll/sim-lambda-event-source-poller-factory.d.ts.map +1 -0
  447. package/dist/service/lambda/event-source/poll/sim-lambda-event-source-poller-factory.js +29 -0
  448. package/dist/service/lambda/event-source/poll/sim-lambda-event-source-poller-factory.js.map +1 -0
  449. package/dist/service/lambda/event-source/poll/sim-lambda-event-source-poller.d.ts +9 -69
  450. package/dist/service/lambda/event-source/poll/sim-lambda-event-source-poller.d.ts.map +1 -1
  451. package/dist/service/lambda/event-source/poll/sim-lambda-event-source-poller.js +1 -135
  452. package/dist/service/lambda/event-source/poll/sim-lambda-event-source-poller.js.map +1 -1
  453. package/dist/service/lambda/event-source/poll/sim-lambda-sqs-batch-response.d.ts +6 -30
  454. package/dist/service/lambda/event-source/poll/sim-lambda-sqs-batch-response.d.ts.map +1 -1
  455. package/dist/service/lambda/event-source/poll/sim-lambda-sqs-batch-response.js +9 -66
  456. package/dist/service/lambda/event-source/poll/sim-lambda-sqs-batch-response.js.map +1 -1
  457. package/dist/service/lambda/event-source/poll/sim-lambda-sqs-delivery.d.ts +17 -0
  458. package/dist/service/lambda/event-source/poll/sim-lambda-sqs-delivery.d.ts.map +1 -0
  459. package/dist/service/lambda/event-source/poll/sim-lambda-sqs-delivery.js +17 -0
  460. package/dist/service/lambda/event-source/poll/sim-lambda-sqs-delivery.js.map +1 -0
  461. package/dist/service/lambda/event-source/poll/sim-lambda-sqs-event-source-poller.d.ts +88 -0
  462. package/dist/service/lambda/event-source/poll/sim-lambda-sqs-event-source-poller.d.ts.map +1 -0
  463. package/dist/service/lambda/event-source/poll/sim-lambda-sqs-event-source-poller.js +132 -0
  464. package/dist/service/lambda/event-source/poll/sim-lambda-sqs-event-source-poller.js.map +1 -0
  465. package/dist/service/lambda/event-source/poll/sim-lambda-sqs-polled-queue.d.ts +41 -0
  466. package/dist/service/lambda/event-source/poll/sim-lambda-sqs-polled-queue.d.ts.map +1 -0
  467. package/dist/service/lambda/event-source/poll/sim-lambda-sqs-polled-queue.js +60 -0
  468. package/dist/service/lambda/event-source/poll/sim-lambda-sqs-polled-queue.js.map +1 -0
  469. package/dist/service/lambda/event-source/poll/sim-lambda-stream-batch-outcome.d.ts +37 -0
  470. package/dist/service/lambda/event-source/poll/sim-lambda-stream-batch-outcome.d.ts.map +1 -0
  471. package/dist/service/lambda/event-source/poll/sim-lambda-stream-batch-outcome.js +51 -0
  472. package/dist/service/lambda/event-source/poll/sim-lambda-stream-batch-outcome.js.map +1 -0
  473. package/dist/service/lambda/event-source/poll/sim-lambda-stream-batch-response.d.ts +29 -0
  474. package/dist/service/lambda/event-source/poll/sim-lambda-stream-batch-response.d.ts.map +1 -0
  475. package/dist/service/lambda/event-source/poll/sim-lambda-stream-batch-response.js +71 -0
  476. package/dist/service/lambda/event-source/poll/sim-lambda-stream-batch-response.js.map +1 -0
  477. package/dist/service/lambda/event-source/poll/sim-lambda-stream-checkpoint.d.ts +36 -0
  478. package/dist/service/lambda/event-source/poll/sim-lambda-stream-checkpoint.d.ts.map +1 -0
  479. package/dist/service/lambda/event-source/poll/sim-lambda-stream-checkpoint.js +41 -0
  480. package/dist/service/lambda/event-source/poll/sim-lambda-stream-checkpoint.js.map +1 -0
  481. package/dist/service/lambda/event-source/poll/sim-lambda-stream-progress.d.ts +65 -0
  482. package/dist/service/lambda/event-source/poll/sim-lambda-stream-progress.d.ts.map +1 -0
  483. package/dist/service/lambda/event-source/poll/sim-lambda-stream-progress.js +92 -0
  484. package/dist/service/lambda/event-source/poll/sim-lambda-stream-progress.js.map +1 -0
  485. package/dist/service/lambda/event-source/poll/sim-lambda-stream-retry-backoff.d.ts +36 -0
  486. package/dist/service/lambda/event-source/poll/sim-lambda-stream-retry-backoff.d.ts.map +1 -0
  487. package/dist/service/lambda/event-source/poll/sim-lambda-stream-retry-backoff.js +47 -0
  488. package/dist/service/lambda/event-source/poll/sim-lambda-stream-retry-backoff.js.map +1 -0
  489. package/dist/service/lambda/event-source/queue/sim-lambda-sqs-event-source-arn.d.ts +29 -5
  490. package/dist/service/lambda/event-source/queue/sim-lambda-sqs-event-source-arn.d.ts.map +1 -1
  491. package/dist/service/lambda/event-source/queue/sim-lambda-sqs-event-source-arn.js +48 -12
  492. package/dist/service/lambda/event-source/queue/sim-lambda-sqs-event-source-arn.js.map +1 -1
  493. package/dist/service/lambda/event-source/queue/sim-lambda-sqs-event-source-rules.d.ts +24 -0
  494. package/dist/service/lambda/event-source/queue/sim-lambda-sqs-event-source-rules.d.ts.map +1 -0
  495. package/dist/service/lambda/event-source/queue/sim-lambda-sqs-event-source-rules.js +33 -0
  496. package/dist/service/lambda/event-source/queue/sim-lambda-sqs-event-source-rules.js.map +1 -0
  497. package/dist/service/lambda/event-source/sim-lambda-event-source-arn.d.ts +25 -0
  498. package/dist/service/lambda/event-source/sim-lambda-event-source-arn.d.ts.map +1 -0
  499. package/dist/service/lambda/event-source/sim-lambda-event-source-arn.js +33 -0
  500. package/dist/service/lambda/event-source/sim-lambda-event-source-arn.js.map +1 -0
  501. package/dist/service/lambda/event-source/sim-lambda-event-source-batch-rules.d.ts +30 -0
  502. package/dist/service/lambda/event-source/sim-lambda-event-source-batch-rules.d.ts.map +1 -0
  503. package/dist/service/lambda/event-source/sim-lambda-event-source-batch-rules.js +40 -0
  504. package/dist/service/lambda/event-source/sim-lambda-event-source-batch-rules.js.map +1 -0
  505. package/dist/service/lambda/event-source/sim-lambda-event-source-mapping.d.ts +15 -8
  506. package/dist/service/lambda/event-source/sim-lambda-event-source-mapping.d.ts.map +1 -1
  507. package/dist/service/lambda/event-source/sim-lambda-event-source-mapping.js +14 -9
  508. package/dist/service/lambda/event-source/sim-lambda-event-source-mapping.js.map +1 -1
  509. package/dist/service/lambda/event-source/sim-lambda-event-source-pollers.d.ts +7 -5
  510. package/dist/service/lambda/event-source/sim-lambda-event-source-pollers.d.ts.map +1 -1
  511. package/dist/service/lambda/event-source/sim-lambda-event-source-pollers.js +5 -5
  512. package/dist/service/lambda/event-source/sim-lambda-event-source-pollers.js.map +1 -1
  513. package/dist/service/lambda/event-source/sim-lambda-event-source-polling-permission.d.ts +18 -0
  514. package/dist/service/lambda/event-source/sim-lambda-event-source-polling-permission.d.ts.map +1 -0
  515. package/dist/service/lambda/event-source/sim-lambda-event-source-polling-permission.js +23 -0
  516. package/dist/service/lambda/event-source/sim-lambda-event-source-polling-permission.js.map +1 -0
  517. package/dist/service/lambda/event-source/sim-lambda-event-source-reachable.d.ts +27 -0
  518. package/dist/service/lambda/event-source/sim-lambda-event-source-reachable.d.ts.map +1 -0
  519. package/dist/service/lambda/event-source/sim-lambda-event-source-reachable.js +40 -0
  520. package/dist/service/lambda/event-source/sim-lambda-event-source-reachable.js.map +1 -0
  521. package/dist/service/lambda/event-source/sim-lambda-event-source-role-permissions.d.ts +7 -3
  522. package/dist/service/lambda/event-source/sim-lambda-event-source-role-permissions.d.ts.map +1 -1
  523. package/dist/service/lambda/event-source/sim-lambda-event-source-role-permissions.js +13 -21
  524. package/dist/service/lambda/event-source/sim-lambda-event-source-role-permissions.js.map +1 -1
  525. package/dist/service/lambda/event-source/sim-lambda-event-source-starting-position.d.ts +60 -0
  526. package/dist/service/lambda/event-source/sim-lambda-event-source-starting-position.d.ts.map +1 -0
  527. package/dist/service/lambda/event-source/sim-lambda-event-source-starting-position.js +51 -0
  528. package/dist/service/lambda/event-source/sim-lambda-event-source-starting-position.js.map +1 -0
  529. package/dist/service/lambda/event-source/stream/sim-dynamodb-event-source-stream-positions.d.ts +31 -0
  530. package/dist/service/lambda/event-source/stream/sim-dynamodb-event-source-stream-positions.d.ts.map +1 -0
  531. package/dist/service/lambda/event-source/stream/sim-dynamodb-event-source-stream-positions.js +29 -0
  532. package/dist/service/lambda/event-source/stream/sim-dynamodb-event-source-stream-positions.js.map +1 -0
  533. package/dist/service/lambda/event-source/stream/sim-dynamodb-event-source-stream-reader.d.ts +32 -0
  534. package/dist/service/lambda/event-source/stream/sim-dynamodb-event-source-stream-reader.d.ts.map +1 -0
  535. package/dist/service/lambda/event-source/stream/sim-dynamodb-event-source-stream-reader.js +48 -0
  536. package/dist/service/lambda/event-source/stream/sim-dynamodb-event-source-stream-reader.js.map +1 -0
  537. package/dist/service/lambda/event-source/stream/sim-dynamodb-event-source-stream-shard.d.ts +28 -0
  538. package/dist/service/lambda/event-source/stream/sim-dynamodb-event-source-stream-shard.d.ts.map +1 -0
  539. package/dist/service/lambda/event-source/stream/sim-dynamodb-event-source-stream-shard.js +71 -0
  540. package/dist/service/lambda/event-source/stream/sim-dynamodb-event-source-stream-shard.js.map +1 -0
  541. package/dist/service/lambda/event-source/stream/sim-dynamodb-event-source-streams.d.ts +42 -0
  542. package/dist/service/lambda/event-source/stream/sim-dynamodb-event-source-streams.d.ts.map +1 -0
  543. package/dist/service/lambda/event-source/stream/sim-dynamodb-event-source-streams.js +55 -0
  544. package/dist/service/lambda/event-source/stream/sim-dynamodb-event-source-streams.js.map +1 -0
  545. package/dist/service/lambda/event-source/stream/sim-lambda-dynamodb-attribute-value.d.ts +150 -0
  546. package/dist/service/lambda/event-source/stream/sim-lambda-dynamodb-attribute-value.d.ts.map +1 -0
  547. package/dist/service/lambda/event-source/stream/sim-lambda-dynamodb-attribute-value.js +2 -0
  548. package/dist/service/lambda/event-source/stream/sim-lambda-dynamodb-attribute-value.js.map +1 -0
  549. package/dist/service/lambda/event-source/stream/sim-lambda-dynamodb-stream-event-source-arn.d.ts +52 -0
  550. package/dist/service/lambda/event-source/stream/sim-lambda-dynamodb-stream-event-source-arn.d.ts.map +1 -0
  551. package/dist/service/lambda/event-source/stream/sim-lambda-dynamodb-stream-event-source-arn.js +88 -0
  552. package/dist/service/lambda/event-source/stream/sim-lambda-dynamodb-stream-event-source-arn.js.map +1 -0
  553. package/dist/service/lambda/event-source/stream/sim-lambda-dynamodb-stream-event-source-rules.d.ts +25 -0
  554. package/dist/service/lambda/event-source/stream/sim-lambda-dynamodb-stream-event-source-rules.d.ts.map +1 -0
  555. package/dist/service/lambda/event-source/stream/sim-lambda-dynamodb-stream-event-source-rules.js +34 -0
  556. package/dist/service/lambda/event-source/stream/sim-lambda-dynamodb-stream-event-source-rules.js.map +1 -0
  557. package/dist/service/lambda/event-source/stream/sim-lambda-event-source-delivery-context.d.ts +31 -0
  558. package/dist/service/lambda/event-source/stream/sim-lambda-event-source-delivery-context.d.ts.map +1 -0
  559. package/dist/service/lambda/event-source/stream/sim-lambda-event-source-delivery-context.js +33 -0
  560. package/dist/service/lambda/event-source/stream/sim-lambda-event-source-delivery-context.js.map +1 -0
  561. package/dist/service/lambda/event-source/stream/sim-lambda-event-source-stream-service.d.ts +73 -0
  562. package/dist/service/lambda/event-source/stream/sim-lambda-event-source-stream-service.d.ts.map +1 -0
  563. package/dist/service/lambda/event-source/stream/sim-lambda-event-source-stream-service.js +2 -0
  564. package/dist/service/lambda/event-source/stream/sim-lambda-event-source-stream-service.js.map +1 -0
  565. package/dist/service/lambda/event-source/stream/sim-lambda-event-source-streams.d.ts +148 -0
  566. package/dist/service/lambda/event-source/stream/sim-lambda-event-source-streams.d.ts.map +1 -0
  567. package/dist/service/lambda/event-source/stream/sim-lambda-event-source-streams.js +37 -0
  568. package/dist/service/lambda/event-source/stream/sim-lambda-event-source-streams.js.map +1 -0
  569. package/dist/service/lambda/event-source/stream/sim-lambda-stream-cascade-guard.d.ts +36 -0
  570. package/dist/service/lambda/event-source/stream/sim-lambda-stream-cascade-guard.d.ts.map +1 -0
  571. package/dist/service/lambda/event-source/stream/sim-lambda-stream-cascade-guard.js +50 -0
  572. package/dist/service/lambda/event-source/stream/sim-lambda-stream-cascade-guard.js.map +1 -0
  573. package/dist/service/lambda/event-source/stream/sim-lambda-stream-cascade.error.d.ts +24 -0
  574. package/dist/service/lambda/event-source/stream/sim-lambda-stream-cascade.error.d.ts.map +1 -0
  575. package/dist/service/lambda/event-source/stream/sim-lambda-stream-cascade.error.js +24 -0
  576. package/dist/service/lambda/event-source/stream/sim-lambda-stream-cascade.error.js.map +1 -0
  577. package/dist/service/lambda/index.d.ts +3 -0
  578. package/dist/service/lambda/index.d.ts.map +1 -1
  579. package/dist/service/lambda/index.js +1 -0
  580. package/dist/service/lambda/index.js.map +1 -1
  581. package/dist/service/lambda/sim-lambda-commands.d.ts +2 -0
  582. package/dist/service/lambda/sim-lambda-commands.d.ts.map +1 -1
  583. package/dist/service/lambda/sim-lambda-commands.js +7 -3
  584. package/dist/service/lambda/sim-lambda-commands.js.map +1 -1
  585. package/dist/service/s3/bucket/notification/sim-s3-lambda-notification.d.ts +7 -25
  586. package/dist/service/s3/bucket/notification/sim-s3-lambda-notification.d.ts.map +1 -1
  587. package/dist/service/s3/bucket/notification/sim-s3-lambda-notification.js +10 -31
  588. package/dist/service/s3/bucket/notification/sim-s3-lambda-notification.js.map +1 -1
  589. package/dist/service/s3/bucket/notification/sim-s3-notification-configuration-reader.d.ts +6 -10
  590. package/dist/service/s3/bucket/notification/sim-s3-notification-configuration-reader.d.ts.map +1 -1
  591. package/dist/service/s3/bucket/notification/sim-s3-notification-configuration-reader.js +16 -68
  592. package/dist/service/s3/bucket/notification/sim-s3-notification-configuration-reader.js.map +1 -1
  593. package/dist/service/s3/bucket/notification/sim-s3-notification-configuration.d.ts +17 -4
  594. package/dist/service/s3/bucket/notification/sim-s3-notification-configuration.d.ts.map +1 -1
  595. package/dist/service/s3/bucket/notification/sim-s3-notification-configuration.js +19 -10
  596. package/dist/service/s3/bucket/notification/sim-s3-notification-configuration.js.map +1 -1
  597. package/dist/service/s3/bucket/notification/sim-s3-notification-ids.d.ts +9 -0
  598. package/dist/service/s3/bucket/notification/sim-s3-notification-ids.d.ts.map +1 -0
  599. package/dist/service/s3/bucket/notification/sim-s3-notification-ids.js +18 -0
  600. package/dist/service/s3/bucket/notification/sim-s3-notification-ids.js.map +1 -0
  601. package/dist/service/s3/bucket/notification/sim-s3-notification-overlap.d.ts +5 -3
  602. package/dist/service/s3/bucket/notification/sim-s3-notification-overlap.d.ts.map +1 -1
  603. package/dist/service/s3/bucket/notification/sim-s3-notification-overlap.js +3 -1
  604. package/dist/service/s3/bucket/notification/sim-s3-notification-overlap.js.map +1 -1
  605. package/dist/service/s3/bucket/notification/sim-s3-notification-properties.d.ts +19 -0
  606. package/dist/service/s3/bucket/notification/sim-s3-notification-properties.d.ts.map +1 -0
  607. package/dist/service/s3/bucket/notification/sim-s3-notification-properties.js +27 -0
  608. package/dist/service/s3/bucket/notification/sim-s3-notification-properties.js.map +1 -0
  609. package/dist/service/s3/bucket/notification/sim-s3-notification.d.ts +61 -0
  610. package/dist/service/s3/bucket/notification/sim-s3-notification.d.ts.map +1 -0
  611. package/dist/service/s3/bucket/notification/sim-s3-notification.js +50 -0
  612. package/dist/service/s3/bucket/notification/sim-s3-notification.js.map +1 -0
  613. package/dist/service/s3/bucket/notification/sim-s3-queue-notification.d.ts +21 -0
  614. package/dist/service/s3/bucket/notification/sim-s3-queue-notification.d.ts.map +1 -0
  615. package/dist/service/s3/bucket/notification/sim-s3-queue-notification.js +24 -0
  616. package/dist/service/s3/bucket/notification/sim-s3-queue-notification.js.map +1 -0
  617. package/dist/service/s3/bucket/notification/sim-s3-unsimulated-notification-destinations.d.ts +10 -0
  618. package/dist/service/s3/bucket/notification/sim-s3-unsimulated-notification-destinations.d.ts.map +1 -0
  619. package/dist/service/s3/bucket/notification/sim-s3-unsimulated-notification-destinations.js +31 -0
  620. package/dist/service/s3/bucket/notification/sim-s3-unsimulated-notification-destinations.js.map +1 -0
  621. package/dist/service/s3/cfn/bucket/notification/sim-cfn-s3-bucket-notification-configuration.d.ts +3 -0
  622. package/dist/service/s3/cfn/bucket/notification/sim-cfn-s3-bucket-notification-configuration.d.ts.map +1 -1
  623. package/dist/service/s3/cfn/bucket/notification/sim-cfn-s3-bucket-notification-configuration.js +30 -1
  624. package/dist/service/s3/cfn/bucket/notification/sim-cfn-s3-bucket-notification-configuration.js.map +1 -1
  625. package/dist/service/s3/command/get-bucket-notification-configuration/get-bucket-notification-configuration.command.d.ts +2 -1
  626. package/dist/service/s3/command/get-bucket-notification-configuration/get-bucket-notification-configuration.command.d.ts.map +1 -1
  627. package/dist/service/s3/command/put-bucket-notification-configuration/put-bucket-notification-configuration.command.d.ts +10 -1
  628. package/dist/service/s3/command/put-bucket-notification-configuration/put-bucket-notification-configuration.command.d.ts.map +1 -1
  629. package/dist/service/s3/notification/destination/lambda/sim-aws-s3-notification-functions.d.ts +0 -4
  630. package/dist/service/s3/notification/destination/lambda/sim-aws-s3-notification-functions.d.ts.map +1 -1
  631. package/dist/service/s3/notification/destination/lambda/sim-aws-s3-notification-functions.js +1 -4
  632. package/dist/service/s3/notification/destination/lambda/sim-aws-s3-notification-functions.js.map +1 -1
  633. package/dist/service/s3/notification/destination/sim-s3-notification-destination-check.d.ts.map +1 -1
  634. package/dist/service/s3/notification/destination/sim-s3-notification-destination-check.js +6 -4
  635. package/dist/service/s3/notification/destination/sim-s3-notification-destination-check.js.map +1 -1
  636. package/dist/service/s3/notification/destination/sim-s3-notification-destination.d.ts +20 -2
  637. package/dist/service/s3/notification/destination/sim-s3-notification-destination.d.ts.map +1 -1
  638. package/dist/service/s3/notification/destination/sim-s3-service-notification-destinations.d.ts +12 -10
  639. package/dist/service/s3/notification/destination/sim-s3-service-notification-destinations.d.ts.map +1 -1
  640. package/dist/service/s3/notification/destination/sim-s3-service-notification-destinations.js +19 -17
  641. package/dist/service/s3/notification/destination/sim-s3-service-notification-destinations.js.map +1 -1
  642. package/dist/service/s3/notification/destination/sim-s3-service-principal.d.ts +8 -0
  643. package/dist/service/s3/notification/destination/sim-s3-service-principal.d.ts.map +1 -0
  644. package/dist/service/s3/notification/destination/sim-s3-service-principal.js +8 -0
  645. package/dist/service/s3/notification/destination/sim-s3-service-principal.js.map +1 -0
  646. package/dist/service/s3/notification/destination/sqs/sim-aws-s3-notification-queues.d.ts +40 -0
  647. package/dist/service/s3/notification/destination/sqs/sim-aws-s3-notification-queues.d.ts.map +1 -0
  648. package/dist/service/s3/notification/destination/sqs/sim-aws-s3-notification-queues.js +52 -0
  649. package/dist/service/s3/notification/destination/sqs/sim-aws-s3-notification-queues.js.map +1 -0
  650. package/dist/service/s3/notification/destination/sqs/sim-s3-notification-queue-arn.d.ts +33 -0
  651. package/dist/service/s3/notification/destination/sqs/sim-s3-notification-queue-arn.d.ts.map +1 -0
  652. package/dist/service/s3/notification/destination/sqs/sim-s3-notification-queue-arn.js +64 -0
  653. package/dist/service/s3/notification/destination/sqs/sim-s3-notification-queue-arn.js.map +1 -0
  654. package/dist/service/s3/notification/destination/sqs/sim-s3-notification-queue.d.ts +33 -0
  655. package/dist/service/s3/notification/destination/sqs/sim-s3-notification-queue.d.ts.map +1 -0
  656. package/dist/service/s3/notification/destination/sqs/sim-s3-notification-queue.js +55 -0
  657. package/dist/service/s3/notification/destination/sqs/sim-s3-notification-queue.js.map +1 -0
  658. package/dist/service/s3/notification/destination/sqs/sim-s3-notification-queues.d.ts +23 -0
  659. package/dist/service/s3/notification/destination/sqs/sim-s3-notification-queues.d.ts.map +1 -0
  660. package/dist/service/s3/notification/destination/sqs/sim-s3-notification-queues.js +2 -0
  661. package/dist/service/s3/notification/destination/sqs/sim-s3-notification-queues.js.map +1 -0
  662. package/dist/service/s3/notification/destination/sqs/sim-s3-sqs-notification-destination.d.ts +40 -0
  663. package/dist/service/s3/notification/destination/sqs/sim-s3-sqs-notification-destination.d.ts.map +1 -0
  664. package/dist/service/s3/notification/destination/sqs/sim-s3-sqs-notification-destination.js +51 -0
  665. package/dist/service/s3/notification/destination/sqs/sim-s3-sqs-notification-destination.js.map +1 -0
  666. package/dist/service/s3/notification/sim-s3-notification-dispatcher.d.ts +2 -2
  667. package/dist/service/s3/notification/sim-s3-notification-dispatcher.d.ts.map +1 -1
  668. package/dist/service/s3/notification/sim-s3-notification-dispatcher.js +6 -3
  669. package/dist/service/s3/notification/sim-s3-notification-dispatcher.js.map +1 -1
  670. package/dist/service/sqs/command/authorize/sim-sqs-condition-context.d.ts.map +1 -1
  671. package/dist/service/sqs/command/authorize/sim-sqs-condition-context.js +9 -5
  672. package/dist/service/sqs/command/authorize/sim-sqs-condition-context.js.map +1 -1
  673. package/dist/service/sqs/command/authorize/sim-sqs-service-send-authorizer.d.ts +40 -0
  674. package/dist/service/sqs/command/authorize/sim-sqs-service-send-authorizer.d.ts.map +1 -0
  675. package/dist/service/sqs/command/authorize/sim-sqs-service-send-authorizer.js +40 -0
  676. package/dist/service/sqs/command/authorize/sim-sqs-service-send-authorizer.js.map +1 -0
  677. package/dist/service/sqs/command/sim-sqs-request-options.d.ts +16 -0
  678. package/dist/service/sqs/command/sim-sqs-request-options.d.ts.map +1 -1
  679. package/dist/service/sqs/command/sim-sqs-request-options.js +9 -0
  680. package/dist/service/sqs/command/sim-sqs-request-options.js.map +1 -1
  681. package/dist/service/sqs/index.d.ts +2 -2
  682. package/dist/service/sqs/index.d.ts.map +1 -1
  683. package/dist/service/sqs/index.js +2 -2
  684. package/dist/service/sqs/index.js.map +1 -1
  685. package/dist/service/sqs/queue/sim-sqs-queue-arn.d.ts +17 -2
  686. package/dist/service/sqs/queue/sim-sqs-queue-arn.d.ts.map +1 -1
  687. package/dist/service/sqs/queue/sim-sqs-queue-arn.js +9 -5
  688. package/dist/service/sqs/queue/sim-sqs-queue-arn.js.map +1 -1
  689. package/package.json +5 -4
@@ -0,0 +1,29 @@
1
+ import type { SimAwsCaller } from "../../../../aws/caller/sim-aws-caller.js";
2
+ import type { SimAwsAccountRegionScope } from "../../../../aws/sim-aws-account-region-scope.js";
3
+ import type { SimDynamoDbStreamAccess } from "../sim-dynamodb-stream-access.js";
4
+ import type { SimGetRecordsCommand, SimGetRecordsCommandOutput } from "./get-records.command.js";
5
+ interface SimDynamoDbGetRecordsProperties {
6
+ readonly access: SimDynamoDbStreamAccess;
7
+ readonly accountRegionScope: SimAwsAccountRegionScope;
8
+ }
9
+ interface SimDynamoDbGetRecordsOptions {
10
+ readonly caller?: SimAwsCaller;
11
+ }
12
+ /**
13
+ * The command that reads records off a shard.
14
+ */
15
+ export declare class SimDynamoDbGetRecords {
16
+ private readonly access;
17
+ private readonly accountRegionScope;
18
+ constructor(properties: SimDynamoDbGetRecordsProperties);
19
+ /**
20
+ * Read from where a shard iterator points, and say where to carry on.
21
+ *
22
+ * The iterator carries the stream it belongs to, so the caller is authorized
23
+ * against that stream's ARN rather than against anything the request names
24
+ * separately.
25
+ */
26
+ handle(command: SimGetRecordsCommand, options?: SimDynamoDbGetRecordsOptions): SimGetRecordsCommandOutput;
27
+ }
28
+ export {};
29
+ //# sourceMappingURL=sim-dynamodb-get-records.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"sim-dynamodb-get-records.d.ts","sourceRoot":"","sources":["../../../../../../src/service/dynamodb/command/stream/get-records/sim-dynamodb-get-records.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,0CAA0C,CAAC;AAC7E,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,iDAAiD,CAAC;AAUhG,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,kCAAkC,CAAC;AAEhF,OAAO,KAAK,EACV,oBAAoB,EACpB,0BAA0B,EAC3B,MAAM,0BAA0B,CAAC;AAOlC,UAAU,+BAA+B;IACvC,QAAQ,CAAC,MAAM,EAAE,uBAAuB,CAAC;IACzC,QAAQ,CAAC,kBAAkB,EAAE,wBAAwB,CAAC;CACvD;AAED,UAAU,4BAA4B;IACpC,QAAQ,CAAC,MAAM,CAAC,EAAE,YAAY,CAAC;CAChC;AAwBD;;GAEG;AACH,qBAAa,qBAAqB;IAChC,OAAO,CAAC,QAAQ,CAAC,MAAM,CAA0B;IACjD,OAAO,CAAC,QAAQ,CAAC,kBAAkB,CAA2B;IAE9D,YAAY,UAAU,EAAE,+BAA+B,EAGtD;IAED;;;;;;OAMG;IACH,MAAM,CACJ,OAAO,EAAE,oBAAoB,EAC7B,OAAO,CAAC,EAAE,4BAA4B,GACrC,0BAA0B,CA4B5B;CACF"}
@@ -0,0 +1,60 @@
1
+ import { SimDynamoDbResourceNotFoundException, SimDynamoDbValidationException, } from "../../../error/dynamodb.error.js";
2
+ import { simDynamoDbStreamRead } from "../../../stream/sim-dynamodb-stream-read.js";
3
+ import { readSimDynamoDbShardIteratorToken, simDynamoDbShardIteratorToken, } from "../../../stream/sim-dynamodb-stream-shard-iterator.js";
4
+ import { simDynamoDbStreamsApiRecord } from "./sim-dynamodb-streams-api-record.js";
5
+ /**
6
+ * The most records one GetRecords hands back, whatever the request asks for.
7
+ */
8
+ const greatestLimit = 1000;
9
+ /**
10
+ * Read the batch size a request asks for.
11
+ *
12
+ * A request asking for more than the cap is refused rather than quietly given
13
+ * fewer, since a consumer that thinks it asked for 5000 and got 1000 has no way
14
+ * of telling that from having caught up.
15
+ */
16
+ function readLimit(limit) {
17
+ if (limit === undefined) {
18
+ return greatestLimit;
19
+ }
20
+ if (!Number.isSafeInteger(limit) || limit < 1 || limit > greatestLimit) {
21
+ throw new SimDynamoDbValidationException(`Limit ${limit.toString()} is invalid. It is a whole number between 1 ` +
22
+ `and ${greatestLimit.toString()}.`);
23
+ }
24
+ return limit;
25
+ }
26
+ /**
27
+ * The command that reads records off a shard.
28
+ */
29
+ export class SimDynamoDbGetRecords {
30
+ access;
31
+ accountRegionScope;
32
+ constructor(properties) {
33
+ this.access = properties.access;
34
+ this.accountRegionScope = properties.accountRegionScope;
35
+ }
36
+ /**
37
+ * Read from where a shard iterator points, and say where to carry on.
38
+ *
39
+ * The iterator carries the stream it belongs to, so the caller is authorized
40
+ * against that stream's ARN rather than against anything the request names
41
+ * separately.
42
+ */
43
+ handle(command, options) {
44
+ const iterator = readSimDynamoDbShardIteratorToken(command.input.ShardIterator);
45
+ const limit = readLimit(command.input.Limit);
46
+ const stream = this.access.required("dynamodb:GetRecords", iterator.streamArn, options?.caller);
47
+ if (iterator.shardId !== stream.shard.shardId) {
48
+ throw new SimDynamoDbResourceNotFoundException(`Stream ${stream.arn} has no shard ${iterator.shardId}`);
49
+ }
50
+ const read = simDynamoDbStreamRead(stream.shard, iterator.position, limit);
51
+ return {
52
+ Records: read.records.map((record) => simDynamoDbStreamsApiRecord(record, this.accountRegionScope.regionName)),
53
+ NextShardIterator: read.drained
54
+ ? undefined
55
+ : simDynamoDbShardIteratorToken({ ...iterator, position: read.next }),
56
+ $metadata: {},
57
+ };
58
+ }
59
+ }
60
+ //# sourceMappingURL=sim-dynamodb-get-records.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"sim-dynamodb-get-records.js","sourceRoot":"","sources":["../../../../../../src/service/dynamodb/command/stream/get-records/sim-dynamodb-get-records.ts"],"names":[],"mappings":"AAEA,OAAO,EACL,oCAAoC,EACpC,8BAA8B,GAC/B,MAAM,kCAAkC,CAAC;AAC1C,OAAO,EAAE,qBAAqB,EAAE,MAAM,6CAA6C,CAAC;AACpF,OAAO,EACL,iCAAiC,EACjC,6BAA6B,GAC9B,MAAM,uDAAuD,CAAC;AAE/D,OAAO,EAAE,2BAA2B,EAAE,MAAM,sCAAsC,CAAC;AAMnF;;GAEG;AACH,MAAM,aAAa,GAAG,IAAI,CAAC;AAW3B;;;;;;GAMG;AACH,SAAS,SAAS,CAAC,KAAyB;IAC1C,IAAI,KAAK,KAAK,SAAS,EAAE,CAAC;QACxB,OAAO,aAAa,CAAC;IACvB,CAAC;IAED,IAAI,CAAC,MAAM,CAAC,aAAa,CAAC,KAAK,CAAC,IAAI,KAAK,GAAG,CAAC,IAAI,KAAK,GAAG,aAAa,EAAE,CAAC;QACvE,MAAM,IAAI,8BAA8B,CACtC,SAAS,KAAK,CAAC,QAAQ,EAAE,8CAA8C;YACrE,OAAO,aAAa,CAAC,QAAQ,EAAE,GAAG,CACrC,CAAC;IACJ,CAAC;IAED,OAAO,KAAK,CAAC;AACf,CAAC;AAED;;GAEG;AACH,MAAM,OAAO,qBAAqB;IACf,MAAM,CAA0B;IAChC,kBAAkB,CAA2B;IAE9D,YAAY,UAA2C;QACrD,IAAI,CAAC,MAAM,GAAG,UAAU,CAAC,MAAM,CAAC;QAChC,IAAI,CAAC,kBAAkB,GAAG,UAAU,CAAC,kBAAkB,CAAC;IAC1D,CAAC;IAED;;;;;;OAMG;IACH,MAAM,CACJ,OAA6B,EAC7B,OAAsC;QAEtC,MAAM,QAAQ,GAAG,iCAAiC,CAChD,OAAO,CAAC,KAAK,CAAC,aAAa,CAC5B,CAAC;QACF,MAAM,KAAK,GAAG,SAAS,CAAC,OAAO,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC;QAC7C,MAAM,MAAM,GAAG,IAAI,CAAC,MAAM,CAAC,QAAQ,CACjC,qBAAqB,EACrB,QAAQ,CAAC,SAAS,EAClB,OAAO,EAAE,MAAM,CAChB,CAAC;QAEF,IAAI,QAAQ,CAAC,OAAO,KAAK,MAAM,CAAC,KAAK,CAAC,OAAO,EAAE,CAAC;YAC9C,MAAM,IAAI,oCAAoC,CAC5C,UAAU,MAAM,CAAC,GAAG,iBAAiB,QAAQ,CAAC,OAAO,EAAE,CACxD,CAAC;QACJ,CAAC;QAED,MAAM,IAAI,GAAG,qBAAqB,CAAC,MAAM,CAAC,KAAK,EAAE,QAAQ,CAAC,QAAQ,EAAE,KAAK,CAAC,CAAC;QAE3E,OAAO;YACL,OAAO,EAAE,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC,MAAM,EAAE,EAAE,CACnC,2BAA2B,CAAC,MAAM,EAAE,IAAI,CAAC,kBAAkB,CAAC,UAAU,CAAC,CACxE;YACD,iBAAiB,EAAE,IAAI,CAAC,OAAO;gBAC7B,CAAC,CAAC,SAAS;gBACX,CAAC,CAAC,6BAA6B,CAAC,EAAE,GAAG,QAAQ,EAAE,QAAQ,EAAE,IAAI,CAAC,IAAI,EAAE,CAAC;YACvE,SAAS,EAAE,EAAE;SACd,CAAC;IACJ,CAAC;CACF"}
@@ -0,0 +1,12 @@
1
+ import type { AwsRegionName } from "../../../../aws/sim-aws-region.js";
2
+ import type { SimDynamoDbStreamRecord } from "../../../stream/sim-dynamodb-stream-record.js";
3
+ import type { SimDynamoDbStreamsRecord } from "../stream.types.js";
4
+ /**
5
+ * Render a captured record the way the DynamoDB Streams API hands it back.
6
+ *
7
+ * `ApproximateCreationDateTime` is a Date here, where the Lambda event has
8
+ * epoch seconds in the same place. The SDK deserializes a timestamp into a
9
+ * Date, so this is what an application reading GetRecords already expects.
10
+ */
11
+ export declare function simDynamoDbStreamsApiRecord(record: SimDynamoDbStreamRecord, awsRegion: AwsRegionName): SimDynamoDbStreamsRecord;
12
+ //# sourceMappingURL=sim-dynamodb-streams-api-record.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"sim-dynamodb-streams-api-record.d.ts","sourceRoot":"","sources":["../../../../../../src/service/dynamodb/command/stream/get-records/sim-dynamodb-streams-api-record.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,mCAAmC,CAAC;AACvE,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,+CAA+C,CAAC;AAC7F,OAAO,KAAK,EAEV,wBAAwB,EACzB,MAAM,oBAAoB,CAAC;AAgC5B;;;;;;GAMG;AACH,wBAAgB,2BAA2B,CACzC,MAAM,EAAE,uBAAuB,EAC/B,SAAS,EAAE,aAAa,GACvB,wBAAwB,CAkB1B"}
@@ -0,0 +1,52 @@
1
+ /**
2
+ * The record format version the Streams API reports.
3
+ *
4
+ * AWS documents this as subject to change and tells clients not to depend on
5
+ * a particular value. It is here because a record carries it, not because
6
+ * anything should be read from it.
7
+ */
8
+ const eventVersion = "1.1";
9
+ /**
10
+ * Who made a change, as the Streams API capitalizes it.
11
+ *
12
+ * The Lambda event carries the same two values under `principalId` and `type`,
13
+ * which is why the stored record keeps them in its own terms and each surface
14
+ * renders its own. Sharing one payload between the two would leave one of them
15
+ * quietly wrong.
16
+ */
17
+ function identityOf(record) {
18
+ if (record.userIdentity === undefined) {
19
+ return undefined;
20
+ }
21
+ return {
22
+ PrincipalId: record.userIdentity.principalId,
23
+ Type: record.userIdentity.type,
24
+ };
25
+ }
26
+ /**
27
+ * Render a captured record the way the DynamoDB Streams API hands it back.
28
+ *
29
+ * `ApproximateCreationDateTime` is a Date here, where the Lambda event has
30
+ * epoch seconds in the same place. The SDK deserializes a timestamp into a
31
+ * Date, so this is what an application reading GetRecords already expects.
32
+ */
33
+ export function simDynamoDbStreamsApiRecord(record, awsRegion) {
34
+ return {
35
+ eventID: record.eventId,
36
+ eventName: record.eventName,
37
+ eventVersion,
38
+ eventSource: "aws:dynamodb",
39
+ awsRegion,
40
+ dynamodb: {
41
+ ApproximateCreationDateTime: record.approximateCreationDateTime,
42
+ Keys: record.keys.toAttributeValues(),
43
+ NewImage: record.newImage?.toAttributeValues(),
44
+ OldImage: record.oldImage?.toAttributeValues(),
45
+ SequenceNumber: record.sequenceNumber,
46
+ SizeBytes: record.sizeBytes,
47
+ StreamViewType: record.streamViewType,
48
+ },
49
+ userIdentity: identityOf(record),
50
+ };
51
+ }
52
+ //# sourceMappingURL=sim-dynamodb-streams-api-record.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"sim-dynamodb-streams-api-record.js","sourceRoot":"","sources":["../../../../../../src/service/dynamodb/command/stream/get-records/sim-dynamodb-streams-api-record.ts"],"names":[],"mappings":"AAOA;;;;;;GAMG;AACH,MAAM,YAAY,GAAG,KAAK,CAAC;AAE3B;;;;;;;GAOG;AACH,SAAS,UAAU,CACjB,MAA+B;IAE/B,IAAI,MAAM,CAAC,YAAY,KAAK,SAAS,EAAE,CAAC;QACtC,OAAO,SAAS,CAAC;IACnB,CAAC;IAED,OAAO;QACL,WAAW,EAAE,MAAM,CAAC,YAAY,CAAC,WAAW;QAC5C,IAAI,EAAE,MAAM,CAAC,YAAY,CAAC,IAAI;KAC/B,CAAC;AACJ,CAAC;AAED;;;;;;GAMG;AACH,MAAM,UAAU,2BAA2B,CACzC,MAA+B,EAC/B,SAAwB;IAExB,OAAO;QACL,OAAO,EAAE,MAAM,CAAC,OAAO;QACvB,SAAS,EAAE,MAAM,CAAC,SAAS;QAC3B,YAAY;QACZ,WAAW,EAAE,cAAc;QAC3B,SAAS;QACT,QAAQ,EAAE;YACR,2BAA2B,EAAE,MAAM,CAAC,2BAA2B;YAC/D,IAAI,EAAE,MAAM,CAAC,IAAI,CAAC,iBAAiB,EAAE;YACrC,QAAQ,EAAE,MAAM,CAAC,QAAQ,EAAE,iBAAiB,EAAE;YAC9C,QAAQ,EAAE,MAAM,CAAC,QAAQ,EAAE,iBAAiB,EAAE;YAC9C,cAAc,EAAE,MAAM,CAAC,cAAc;YACrC,SAAS,EAAE,MAAM,CAAC,SAAS;YAC3B,cAAc,EAAE,MAAM,CAAC,cAAc;SACtC;QACD,YAAY,EAAE,UAAU,CAAC,MAAM,CAAC;KACjC,CAAC;AACJ,CAAC"}
@@ -0,0 +1,31 @@
1
+ /**
2
+ * https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/dynamodb-streams/command/GetShardIteratorCommand/
3
+ */
4
+ import type { SimResponseMetadata } from "../../../../aws/metadata/response-metadata.type.js";
5
+ /**
6
+ * Minimal structural sim DynamoDB Streams GetShardIterator command.
7
+ */
8
+ export interface SimGetShardIteratorCommand {
9
+ readonly input: SimGetShardIteratorCommandInput;
10
+ }
11
+ /**
12
+ * Minimal structural sim DynamoDB Streams GetShardIterator input.
13
+ *
14
+ * `SequenceNumber` belongs with the two iterator types that name a record, and
15
+ * is refused with the two that do not, so a request cannot half-say where it
16
+ * means to start.
17
+ */
18
+ export interface SimGetShardIteratorCommandInput {
19
+ readonly StreamArn?: string | undefined;
20
+ readonly ShardId?: string | undefined;
21
+ readonly ShardIteratorType?: string | undefined;
22
+ readonly SequenceNumber?: string | undefined;
23
+ }
24
+ /**
25
+ * Minimal structural sim DynamoDB Streams GetShardIterator output.
26
+ */
27
+ export interface SimGetShardIteratorCommandOutput {
28
+ readonly ShardIterator?: string | undefined;
29
+ readonly $metadata: SimResponseMetadata;
30
+ }
31
+ //# sourceMappingURL=get-shard-iterator.command.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"get-shard-iterator.command.d.ts","sourceRoot":"","sources":["../../../../../../src/service/dynamodb/command/stream/get-shard-iterator/get-shard-iterator.command.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,oDAAoD,CAAC;AAE9F;;GAEG;AACH,MAAM,WAAW,0BAA0B;IACzC,QAAQ,CAAC,KAAK,EAAE,+BAA+B,CAAC;CACjD;AAED;;;;;;GAMG;AACH,MAAM,WAAW,+BAA+B;IAC9C,QAAQ,CAAC,SAAS,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IACxC,QAAQ,CAAC,OAAO,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IACtC,QAAQ,CAAC,iBAAiB,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAChD,QAAQ,CAAC,cAAc,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;CAC9C;AAED;;GAEG;AACH,MAAM,WAAW,gCAAgC;IAC/C,QAAQ,CAAC,aAAa,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC5C,QAAQ,CAAC,SAAS,EAAE,mBAAmB,CAAC;CACzC"}
@@ -0,0 +1,5 @@
1
+ /**
2
+ * https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/dynamodb-streams/command/GetShardIteratorCommand/
3
+ */
4
+ export {};
5
+ //# sourceMappingURL=get-shard-iterator.command.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"get-shard-iterator.command.js","sourceRoot":"","sources":["../../../../../../src/service/dynamodb/command/stream/get-shard-iterator/get-shard-iterator.command.ts"],"names":[],"mappings":"AAAA;;GAEG"}
@@ -0,0 +1,27 @@
1
+ import type { SimAwsCaller } from "../../../../aws/caller/sim-aws-caller.js";
2
+ import type { SimDynamoDbStreamAccess } from "../sim-dynamodb-stream-access.js";
3
+ import type { SimGetShardIteratorCommand, SimGetShardIteratorCommandOutput } from "./get-shard-iterator.command.js";
4
+ interface SimDynamoDbGetShardIteratorProperties {
5
+ readonly access: SimDynamoDbStreamAccess;
6
+ }
7
+ interface SimDynamoDbGetShardIteratorOptions {
8
+ readonly caller?: SimAwsCaller;
9
+ }
10
+ /**
11
+ * The command that hands out a place to start reading a shard from.
12
+ */
13
+ export declare class SimDynamoDbGetShardIterator {
14
+ private readonly access;
15
+ constructor(properties: SimDynamoDbGetShardIteratorProperties);
16
+ /**
17
+ * Get an iterator for a shard of a stream.
18
+ *
19
+ * A sequence number the retention window has already outlived is refused
20
+ * here rather than at the GetRecords that would have used the iterator, so a
21
+ * consumer resuming from a checkpoint it kept too long finds out at the call
22
+ * that asked.
23
+ */
24
+ handle(command: SimGetShardIteratorCommand, options?: SimDynamoDbGetShardIteratorOptions): SimGetShardIteratorCommandOutput;
25
+ }
26
+ export {};
27
+ //# sourceMappingURL=sim-dynamodb-get-shard-iterator.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"sim-dynamodb-get-shard-iterator.d.ts","sourceRoot":"","sources":["../../../../../../src/service/dynamodb/command/stream/get-shard-iterator/sim-dynamodb-get-shard-iterator.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,0CAA0C,CAAC;AAO7E,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,kCAAkC,CAAC;AAEhF,OAAO,KAAK,EACV,0BAA0B,EAC1B,gCAAgC,EACjC,MAAM,iCAAiC,CAAC;AAEzC,UAAU,qCAAqC;IAC7C,QAAQ,CAAC,MAAM,EAAE,uBAAuB,CAAC;CAC1C;AAED,UAAU,kCAAkC;IAC1C,QAAQ,CAAC,MAAM,CAAC,EAAE,YAAY,CAAC;CAChC;AAED;;GAEG;AACH,qBAAa,2BAA2B;IACtC,OAAO,CAAC,QAAQ,CAAC,MAAM,CAA0B;IAEjD,YAAY,UAAU,EAAE,qCAAqC,EAE5D;IAED;;;;;;;OAOG;IACH,MAAM,CACJ,OAAO,EAAE,0BAA0B,EACnC,OAAO,CAAC,EAAE,kCAAkC,GAC3C,gCAAgC,CAkClC;CACF"}
@@ -0,0 +1,42 @@
1
+ import { SimDynamoDbResourceNotFoundException, SimDynamoDbValidationException, } from "../../../error/dynamodb.error.js";
2
+ import { assertSimDynamoDbStreamPositionReadable } from "../../../stream/sim-dynamodb-stream-read.js";
3
+ import { simDynamoDbShardIteratorToken } from "../../../stream/sim-dynamodb-stream-shard-iterator.js";
4
+ import { simDynamoDbShardIteratorPosition } from "./sim-dynamodb-shard-iterator-position.js";
5
+ /**
6
+ * The command that hands out a place to start reading a shard from.
7
+ */
8
+ export class SimDynamoDbGetShardIterator {
9
+ access;
10
+ constructor(properties) {
11
+ this.access = properties.access;
12
+ }
13
+ /**
14
+ * Get an iterator for a shard of a stream.
15
+ *
16
+ * A sequence number the retention window has already outlived is refused
17
+ * here rather than at the GetRecords that would have used the iterator, so a
18
+ * consumer resuming from a checkpoint it kept too long finds out at the call
19
+ * that asked.
20
+ */
21
+ handle(command, options) {
22
+ const stream = this.access.required("dynamodb:GetShardIterator", command.input.StreamArn, options?.caller);
23
+ const shardId = command.input.ShardId;
24
+ if (shardId === undefined) {
25
+ throw new SimDynamoDbValidationException("GetShardIterator requires a ShardId");
26
+ }
27
+ if (shardId !== stream.shard.shardId) {
28
+ throw new SimDynamoDbResourceNotFoundException(`Stream ${stream.arn} has no shard ${shardId}`);
29
+ }
30
+ const position = simDynamoDbShardIteratorPosition(command.input, stream.shard);
31
+ assertSimDynamoDbStreamPositionReadable(stream.shard, position);
32
+ return {
33
+ ShardIterator: simDynamoDbShardIteratorToken({
34
+ streamArn: stream.arn,
35
+ shardId: stream.shard.shardId,
36
+ position,
37
+ }),
38
+ $metadata: {},
39
+ };
40
+ }
41
+ }
42
+ //# sourceMappingURL=sim-dynamodb-get-shard-iterator.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"sim-dynamodb-get-shard-iterator.js","sourceRoot":"","sources":["../../../../../../src/service/dynamodb/command/stream/get-shard-iterator/sim-dynamodb-get-shard-iterator.ts"],"names":[],"mappings":"AACA,OAAO,EACL,oCAAoC,EACpC,8BAA8B,GAC/B,MAAM,kCAAkC,CAAC;AAC1C,OAAO,EAAE,uCAAuC,EAAE,MAAM,6CAA6C,CAAC;AACtG,OAAO,EAAE,6BAA6B,EAAE,MAAM,uDAAuD,CAAC;AAEtG,OAAO,EAAE,gCAAgC,EAAE,MAAM,2CAA2C,CAAC;AAc7F;;GAEG;AACH,MAAM,OAAO,2BAA2B;IACrB,MAAM,CAA0B;IAEjD,YAAY,UAAiD;QAC3D,IAAI,CAAC,MAAM,GAAG,UAAU,CAAC,MAAM,CAAC;IAClC,CAAC;IAED;;;;;;;OAOG;IACH,MAAM,CACJ,OAAmC,EACnC,OAA4C;QAE5C,MAAM,MAAM,GAAG,IAAI,CAAC,MAAM,CAAC,QAAQ,CACjC,2BAA2B,EAC3B,OAAO,CAAC,KAAK,CAAC,SAAS,EACvB,OAAO,EAAE,MAAM,CAChB,CAAC;QAEF,MAAM,OAAO,GAAG,OAAO,CAAC,KAAK,CAAC,OAAO,CAAC;QACtC,IAAI,OAAO,KAAK,SAAS,EAAE,CAAC;YAC1B,MAAM,IAAI,8BAA8B,CACtC,qCAAqC,CACtC,CAAC;QACJ,CAAC;QAED,IAAI,OAAO,KAAK,MAAM,CAAC,KAAK,CAAC,OAAO,EAAE,CAAC;YACrC,MAAM,IAAI,oCAAoC,CAC5C,UAAU,MAAM,CAAC,GAAG,iBAAiB,OAAO,EAAE,CAC/C,CAAC;QACJ,CAAC;QAED,MAAM,QAAQ,GAAG,gCAAgC,CAC/C,OAAO,CAAC,KAAK,EACb,MAAM,CAAC,KAAK,CACb,CAAC;QACF,uCAAuC,CAAC,MAAM,CAAC,KAAK,EAAE,QAAQ,CAAC,CAAC;QAEhE,OAAO;YACL,aAAa,EAAE,6BAA6B,CAAC;gBAC3C,SAAS,EAAE,MAAM,CAAC,GAAG;gBACrB,OAAO,EAAE,MAAM,CAAC,KAAK,CAAC,OAAO;gBAC7B,QAAQ;aACT,CAAC;YACF,SAAS,EAAE,EAAE;SACd,CAAC;IACJ,CAAC;CACF"}
@@ -0,0 +1,11 @@
1
+ import { type SimDynamoDbStreamPosition } from "../../../stream/sim-dynamodb-stream-position.js";
2
+ import type { SimDynamoDbStreamShard } from "../../../stream/sim-dynamodb-stream-shard.js";
3
+ import type { SimGetShardIteratorCommandInput } from "./get-shard-iterator.command.js";
4
+ /**
5
+ * Where on a shard the iterator type a request asks for starts reading.
6
+ *
7
+ * LATEST on an empty shard is the start of it, which is the same place: an
8
+ * empty shard has nothing before its end either.
9
+ */
10
+ export declare function simDynamoDbShardIteratorPosition(input: SimGetShardIteratorCommandInput, shard: SimDynamoDbStreamShard): SimDynamoDbStreamPosition;
11
+ //# sourceMappingURL=sim-dynamodb-shard-iterator-position.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"sim-dynamodb-shard-iterator-position.d.ts","sourceRoot":"","sources":["../../../../../../src/service/dynamodb/command/stream/get-shard-iterator/sim-dynamodb-shard-iterator-position.ts"],"names":[],"mappings":"AACA,OAAO,EAEL,KAAK,yBAAyB,EAE/B,MAAM,iDAAiD,CAAC;AAEzD,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,8CAA8C,CAAC;AAC3F,OAAO,KAAK,EAAE,+BAA+B,EAAE,MAAM,iCAAiC,CAAC;AAgCvF;;;;;GAKG;AACH,wBAAgB,gCAAgC,CAC9C,KAAK,EAAE,+BAA+B,EACtC,KAAK,EAAE,sBAAsB,GAC5B,yBAAyB,CAiC3B"}
@@ -0,0 +1,53 @@
1
+ import { SimDynamoDbValidationException } from "../../../error/dynamodb.error.js";
2
+ import { simDynamoDbStreamAfter, simDynamoDbStreamStart, } from "../../../stream/sim-dynamodb-stream-position.js";
3
+ import { readSimDynamoDbSequenceNumber } from "../../../stream/sim-dynamodb-stream-sequence-numbers.js";
4
+ /**
5
+ * The iterator types that name a record, and so carry a sequence number.
6
+ */
7
+ const sequenceNumberTypes = new Set([
8
+ "AT_SEQUENCE_NUMBER",
9
+ "AFTER_SEQUENCE_NUMBER",
10
+ ]);
11
+ /**
12
+ * Refuse a sequence number given with an iterator type that has no place for
13
+ * one.
14
+ *
15
+ * TRIM_HORIZON and LATEST are both ends of the shard rather than a record on
16
+ * it, so a request that gives one of them a sequence number is saying two
17
+ * different things about where to start. Taking the type and dropping the
18
+ * number would silently read from somewhere the caller did not ask for.
19
+ */
20
+ function assertNoSequenceNumber(input, iteratorType) {
21
+ if (input.SequenceNumber !== undefined) {
22
+ throw new SimDynamoDbValidationException(`GetShardIterator takes no SequenceNumber with the ShardIteratorType ${iteratorType}`);
23
+ }
24
+ }
25
+ /**
26
+ * Where on a shard the iterator type a request asks for starts reading.
27
+ *
28
+ * LATEST on an empty shard is the start of it, which is the same place: an
29
+ * empty shard has nothing before its end either.
30
+ */
31
+ export function simDynamoDbShardIteratorPosition(input, shard) {
32
+ const iteratorType = input.ShardIteratorType;
33
+ if (iteratorType === "TRIM_HORIZON") {
34
+ assertNoSequenceNumber(input, iteratorType);
35
+ return simDynamoDbStreamStart;
36
+ }
37
+ if (iteratorType === "LATEST") {
38
+ assertNoSequenceNumber(input, iteratorType);
39
+ const newest = shard.records.at(-1);
40
+ return newest === undefined
41
+ ? simDynamoDbStreamStart
42
+ : simDynamoDbStreamAfter(newest.sequenceNumber);
43
+ }
44
+ if (iteratorType === undefined || !sequenceNumberTypes.has(iteratorType)) {
45
+ throw new SimDynamoDbValidationException(`GetShardIterator needs a ShardIteratorType of TRIM_HORIZON, LATEST, ` +
46
+ `AT_SEQUENCE_NUMBER or AFTER_SEQUENCE_NUMBER`);
47
+ }
48
+ const sequenceNumber = readSimDynamoDbSequenceNumber(input.SequenceNumber, `GetShardIterator with the ShardIteratorType ${iteratorType}`);
49
+ return iteratorType === "AT_SEQUENCE_NUMBER"
50
+ ? { kind: "at", sequenceNumber }
51
+ : simDynamoDbStreamAfter(sequenceNumber);
52
+ }
53
+ //# sourceMappingURL=sim-dynamodb-shard-iterator-position.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"sim-dynamodb-shard-iterator-position.js","sourceRoot":"","sources":["../../../../../../src/service/dynamodb/command/stream/get-shard-iterator/sim-dynamodb-shard-iterator-position.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,8BAA8B,EAAE,MAAM,kCAAkC,CAAC;AAClF,OAAO,EACL,sBAAsB,EAEtB,sBAAsB,GACvB,MAAM,iDAAiD,CAAC;AACzD,OAAO,EAAE,6BAA6B,EAAE,MAAM,yDAAyD,CAAC;AAIxG;;GAEG;AACH,MAAM,mBAAmB,GAAG,IAAI,GAAG,CAAC;IAClC,oBAAoB;IACpB,uBAAuB;CACxB,CAAC,CAAC;AAEH;;;;;;;;GAQG;AACH,SAAS,sBAAsB,CAC7B,KAAsC,EACtC,YAAoB;IAEpB,IAAI,KAAK,CAAC,cAAc,KAAK,SAAS,EAAE,CAAC;QACvC,MAAM,IAAI,8BAA8B,CACtC,uEACE,YACF,EAAE,CACH,CAAC;IACJ,CAAC;AACH,CAAC;AAED;;;;;GAKG;AACH,MAAM,UAAU,gCAAgC,CAC9C,KAAsC,EACtC,KAA6B;IAE7B,MAAM,YAAY,GAAG,KAAK,CAAC,iBAAiB,CAAC;IAE7C,IAAI,YAAY,KAAK,cAAc,EAAE,CAAC;QACpC,sBAAsB,CAAC,KAAK,EAAE,YAAY,CAAC,CAAC;QAE5C,OAAO,sBAAsB,CAAC;IAChC,CAAC;IAED,IAAI,YAAY,KAAK,QAAQ,EAAE,CAAC;QAC9B,sBAAsB,CAAC,KAAK,EAAE,YAAY,CAAC,CAAC;QAC5C,MAAM,MAAM,GAAG,KAAK,CAAC,OAAO,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,CAAC;QAEpC,OAAO,MAAM,KAAK,SAAS;YACzB,CAAC,CAAC,sBAAsB;YACxB,CAAC,CAAC,sBAAsB,CAAC,MAAM,CAAC,cAAc,CAAC,CAAC;IACpD,CAAC;IAED,IAAI,YAAY,KAAK,SAAS,IAAI,CAAC,mBAAmB,CAAC,GAAG,CAAC,YAAY,CAAC,EAAE,CAAC;QACzE,MAAM,IAAI,8BAA8B,CACtC,sEAAsE;YACpE,6CAA6C,CAChD,CAAC;IACJ,CAAC;IAED,MAAM,cAAc,GAAG,6BAA6B,CAClD,KAAK,CAAC,cAAc,EACpB,+CAA+C,YAAY,EAAE,CAC9D,CAAC;IAEF,OAAO,YAAY,KAAK,oBAAoB;QAC1C,CAAC,CAAC,EAAE,IAAI,EAAE,IAAI,EAAE,cAAc,EAAE;QAChC,CAAC,CAAC,sBAAsB,CAAC,cAAc,CAAC,CAAC;AAC7C,CAAC"}
@@ -0,0 +1,33 @@
1
+ /**
2
+ * https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/dynamodb-streams/command/ListStreamsCommand/
3
+ */
4
+ import type { SimArn } from "../../../../aws/arn.js";
5
+ import type { SimResponseMetadata } from "../../../../aws/metadata/response-metadata.type.js";
6
+ import type { SimDynamoDbStreamSummary } from "../stream.types.js";
7
+ /**
8
+ * Minimal structural sim DynamoDB Streams ListStreams command.
9
+ */
10
+ export interface SimListStreamsCommand {
11
+ readonly input: SimListStreamsCommandInput;
12
+ }
13
+ /**
14
+ * Minimal structural sim DynamoDB Streams ListStreams input.
15
+ *
16
+ * `TableName` narrows the answer to one table's streams. Real DynamoDB takes
17
+ * the table's name here rather than its ARN, unlike the DynamoDB API's own
18
+ * `TableName` parameters.
19
+ */
20
+ export interface SimListStreamsCommandInput {
21
+ readonly TableName?: string | undefined;
22
+ readonly Limit?: number | undefined;
23
+ readonly ExclusiveStartStreamArn?: string | undefined;
24
+ }
25
+ /**
26
+ * Minimal structural sim DynamoDB Streams ListStreams output.
27
+ */
28
+ export interface SimListStreamsCommandOutput {
29
+ readonly Streams?: readonly SimDynamoDbStreamSummary[] | undefined;
30
+ readonly LastEvaluatedStreamArn?: SimArn | undefined;
31
+ readonly $metadata: SimResponseMetadata;
32
+ }
33
+ //# sourceMappingURL=list-streams.command.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"list-streams.command.d.ts","sourceRoot":"","sources":["../../../../../../src/service/dynamodb/command/stream/list-streams/list-streams.command.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,wBAAwB,CAAC;AACrD,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,oDAAoD,CAAC;AAC9F,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,oBAAoB,CAAC;AAEnE;;GAEG;AACH,MAAM,WAAW,qBAAqB;IACpC,QAAQ,CAAC,KAAK,EAAE,0BAA0B,CAAC;CAC5C;AAED;;;;;;GAMG;AACH,MAAM,WAAW,0BAA0B;IACzC,QAAQ,CAAC,SAAS,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IACxC,QAAQ,CAAC,KAAK,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IACpC,QAAQ,CAAC,uBAAuB,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;CACvD;AAED;;GAEG;AACH,MAAM,WAAW,2BAA2B;IAC1C,QAAQ,CAAC,OAAO,CAAC,EAAE,SAAS,wBAAwB,EAAE,GAAG,SAAS,CAAC;IACnE,QAAQ,CAAC,sBAAsB,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IACrD,QAAQ,CAAC,SAAS,EAAE,mBAAmB,CAAC;CACzC"}
@@ -0,0 +1,5 @@
1
+ /**
2
+ * https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/dynamodb-streams/command/ListStreamsCommand/
3
+ */
4
+ export {};
5
+ //# sourceMappingURL=list-streams.command.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"list-streams.command.js","sourceRoot":"","sources":["../../../../../../src/service/dynamodb/command/stream/list-streams/list-streams.command.ts"],"names":[],"mappings":"AAAA;;GAEG"}
@@ -0,0 +1,26 @@
1
+ import type { SimAwsCaller } from "../../../../aws/caller/sim-aws-caller.js";
2
+ import type { SimDynamoDbStreamAccess } from "../sim-dynamodb-stream-access.js";
3
+ import type { SimListStreamsCommand, SimListStreamsCommandOutput } from "./list-streams.command.js";
4
+ interface SimDynamoDbListStreamsProperties {
5
+ readonly access: SimDynamoDbStreamAccess;
6
+ }
7
+ interface SimDynamoDbListStreamsOptions {
8
+ readonly caller?: SimAwsCaller;
9
+ }
10
+ /**
11
+ * The command that lists the streams of this Account and Region.
12
+ *
13
+ * A stream stays listed once its table has switched it off, since a disabled
14
+ * stream is readable for the rest of its retention window and a consumer has to
15
+ * be able to find it.
16
+ */
17
+ export declare class SimDynamoDbListStreams {
18
+ private readonly access;
19
+ constructor(properties: SimDynamoDbListStreamsProperties);
20
+ /**
21
+ * List the streams here, optionally only one table's.
22
+ */
23
+ handle(command: SimListStreamsCommand, options?: SimDynamoDbListStreamsOptions): SimListStreamsCommandOutput;
24
+ }
25
+ export {};
26
+ //# sourceMappingURL=sim-dynamodb-list-streams.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"sim-dynamodb-list-streams.d.ts","sourceRoot":"","sources":["../../../../../../src/service/dynamodb/command/stream/list-streams/sim-dynamodb-list-streams.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,0CAA0C,CAAC;AAC7E,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,kCAAkC,CAAC;AAEhF,OAAO,KAAK,EACV,qBAAqB,EACrB,2BAA2B,EAC5B,MAAM,2BAA2B,CAAC;AAEnC,UAAU,gCAAgC;IACxC,QAAQ,CAAC,MAAM,EAAE,uBAAuB,CAAC;CAC1C;AAED,UAAU,6BAA6B;IACrC,QAAQ,CAAC,MAAM,CAAC,EAAE,YAAY,CAAC;CAChC;AAED;;;;;;GAMG;AACH,qBAAa,sBAAsB;IACjC,OAAO,CAAC,QAAQ,CAAC,MAAM,CAA0B;IAEjD,YAAY,UAAU,EAAE,gCAAgC,EAEvD;IAED;;OAEG;IACH,MAAM,CACJ,OAAO,EAAE,qBAAqB,EAC9B,OAAO,CAAC,EAAE,6BAA6B,GACtC,2BAA2B,CAa7B;CACF"}
@@ -0,0 +1,31 @@
1
+ import { SimDynamoDbStreamPage } from "./sim-dynamodb-stream-page.js";
2
+ /**
3
+ * The command that lists the streams of this Account and Region.
4
+ *
5
+ * A stream stays listed once its table has switched it off, since a disabled
6
+ * stream is readable for the rest of its retention window and a consumer has to
7
+ * be able to find it.
8
+ */
9
+ export class SimDynamoDbListStreams {
10
+ access;
11
+ constructor(properties) {
12
+ this.access = properties.access;
13
+ }
14
+ /**
15
+ * List the streams here, optionally only one table's.
16
+ */
17
+ handle(command, options) {
18
+ const streams = this.access.all("dynamodb:ListStreams", options?.caller);
19
+ const page = new SimDynamoDbStreamPage(streams, command.input);
20
+ return {
21
+ Streams: page.streams.map((stream) => ({
22
+ StreamArn: stream.arn,
23
+ TableName: stream.tableName,
24
+ StreamLabel: stream.label,
25
+ })),
26
+ LastEvaluatedStreamArn: page.lastEvaluatedStreamArn,
27
+ $metadata: {},
28
+ };
29
+ }
30
+ }
31
+ //# sourceMappingURL=sim-dynamodb-list-streams.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"sim-dynamodb-list-streams.js","sourceRoot":"","sources":["../../../../../../src/service/dynamodb/command/stream/list-streams/sim-dynamodb-list-streams.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,qBAAqB,EAAE,MAAM,+BAA+B,CAAC;AActE;;;;;;GAMG;AACH,MAAM,OAAO,sBAAsB;IAChB,MAAM,CAA0B;IAEjD,YAAY,UAA4C;QACtD,IAAI,CAAC,MAAM,GAAG,UAAU,CAAC,MAAM,CAAC;IAClC,CAAC;IAED;;OAEG;IACH,MAAM,CACJ,OAA8B,EAC9B,OAAuC;QAEvC,MAAM,OAAO,GAAG,IAAI,CAAC,MAAM,CAAC,GAAG,CAAC,sBAAsB,EAAE,OAAO,EAAE,MAAM,CAAC,CAAC;QACzE,MAAM,IAAI,GAAG,IAAI,qBAAqB,CAAC,OAAO,EAAE,OAAO,CAAC,KAAK,CAAC,CAAC;QAE/D,OAAO;YACL,OAAO,EAAE,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,CAAC;gBACrC,SAAS,EAAE,MAAM,CAAC,GAAG;gBACrB,SAAS,EAAE,MAAM,CAAC,SAAS;gBAC3B,WAAW,EAAE,MAAM,CAAC,KAAK;aAC1B,CAAC,CAAC;YACH,sBAAsB,EAAE,IAAI,CAAC,sBAAsB;YACnD,SAAS,EAAE,EAAE;SACd,CAAC;IACJ,CAAC;CACF"}
@@ -0,0 +1,28 @@
1
+ import type { SimArn } from "../../../../aws/arn.js";
2
+ import type { SimDynamoDbStream } from "../../../stream/sim-dynamodb-stream.js";
3
+ import type { SimListStreamsCommandInput } from "./list-streams.command.js";
4
+ /**
5
+ * One page of streams, as ListStreams hands them out.
6
+ *
7
+ * The token is a stream ARN rather than an opaque cursor, matching the way
8
+ * ListTables pages by table name, so a page resumes at the first ARN after it.
9
+ */
10
+ export declare class SimDynamoDbStreamPage {
11
+ readonly streams: readonly SimDynamoDbStream[];
12
+ readonly lastEvaluatedStreamArn: SimArn | undefined;
13
+ constructor(streams: readonly SimDynamoDbStream[], input: SimListStreamsCommandInput);
14
+ /**
15
+ * The streams of the table a request named, or all of them when it named
16
+ * none.
17
+ *
18
+ * A table with no stream, and a name no table ever had, both list nothing.
19
+ * Real DynamoDB does not refuse either: ListStreams reports what is there
20
+ * rather than checking that the table is.
21
+ */
22
+ private ofTable;
23
+ /**
24
+ * The streams left to list after the ARN a request resumes from.
25
+ */
26
+ private after;
27
+ }
28
+ //# sourceMappingURL=sim-dynamodb-stream-page.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"sim-dynamodb-stream-page.d.ts","sourceRoot":"","sources":["../../../../../../src/service/dynamodb/command/stream/list-streams/sim-dynamodb-stream-page.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,wBAAwB,CAAC;AAErD,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,wCAAwC,CAAC;AAChF,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,2BAA2B,CAAC;AAuB5E;;;;;GAKG;AACH,qBAAa,qBAAqB;IAChC,SAAgB,OAAO,EAAE,SAAS,iBAAiB,EAAE,CAAC;IACtD,SAAgB,sBAAsB,EAAE,MAAM,GAAG,SAAS,CAAC;IAE3D,YACE,OAAO,EAAE,SAAS,iBAAiB,EAAE,EACrC,KAAK,EAAE,0BAA0B,EAUlC;IAED;;;;;;;OAOG;IACH,OAAO,CAAC,OAAO;IAWf;;OAEG;IACH,OAAO,CAAC,KAAK;CAYd"}
@@ -0,0 +1,59 @@
1
+ import { SimDynamoDbValidationException } from "../../../error/dynamodb.error.js";
2
+ const defaultLimit = 100;
3
+ const greatestLimit = 100;
4
+ /**
5
+ * Read the page size a ListStreams request asks for.
6
+ */
7
+ function readLimit(limit) {
8
+ if (limit === undefined) {
9
+ return defaultLimit;
10
+ }
11
+ if (!Number.isSafeInteger(limit) || limit < 1 || limit > greatestLimit) {
12
+ throw new SimDynamoDbValidationException(`Limit ${limit.toString()} is invalid. It is a whole number between 1 ` +
13
+ `and ${greatestLimit.toString()}.`);
14
+ }
15
+ return limit;
16
+ }
17
+ /**
18
+ * One page of streams, as ListStreams hands them out.
19
+ *
20
+ * The token is a stream ARN rather than an opaque cursor, matching the way
21
+ * ListTables pages by table name, so a page resumes at the first ARN after it.
22
+ */
23
+ export class SimDynamoDbStreamPage {
24
+ streams;
25
+ lastEvaluatedStreamArn;
26
+ constructor(streams, input) {
27
+ const named = this.ofTable(streams, input.TableName);
28
+ const remaining = this.after(named, input.ExclusiveStartStreamArn);
29
+ this.streams = remaining.slice(0, readLimit(input.Limit));
30
+ this.lastEvaluatedStreamArn =
31
+ this.streams.length === remaining.length
32
+ ? undefined
33
+ : this.streams.at(-1)?.arn;
34
+ }
35
+ /**
36
+ * The streams of the table a request named, or all of them when it named
37
+ * none.
38
+ *
39
+ * A table with no stream, and a name no table ever had, both list nothing.
40
+ * Real DynamoDB does not refuse either: ListStreams reports what is there
41
+ * rather than checking that the table is.
42
+ */
43
+ ofTable(streams, tableName) {
44
+ if (tableName === undefined) {
45
+ return streams;
46
+ }
47
+ return streams.filter((stream) => stream.tableName === tableName);
48
+ }
49
+ /**
50
+ * The streams left to list after the ARN a request resumes from.
51
+ */
52
+ after(streams, exclusiveStartStreamArn) {
53
+ if (exclusiveStartStreamArn === undefined) {
54
+ return streams;
55
+ }
56
+ return streams.filter((stream) => stream.arn.localeCompare(exclusiveStartStreamArn) > 0);
57
+ }
58
+ }
59
+ //# sourceMappingURL=sim-dynamodb-stream-page.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"sim-dynamodb-stream-page.js","sourceRoot":"","sources":["../../../../../../src/service/dynamodb/command/stream/list-streams/sim-dynamodb-stream-page.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,8BAA8B,EAAE,MAAM,kCAAkC,CAAC;AAIlF,MAAM,YAAY,GAAG,GAAG,CAAC;AACzB,MAAM,aAAa,GAAG,GAAG,CAAC;AAE1B;;GAEG;AACH,SAAS,SAAS,CAAC,KAAyB;IAC1C,IAAI,KAAK,KAAK,SAAS,EAAE,CAAC;QACxB,OAAO,YAAY,CAAC;IACtB,CAAC;IAED,IAAI,CAAC,MAAM,CAAC,aAAa,CAAC,KAAK,CAAC,IAAI,KAAK,GAAG,CAAC,IAAI,KAAK,GAAG,aAAa,EAAE,CAAC;QACvE,MAAM,IAAI,8BAA8B,CACtC,SAAS,KAAK,CAAC,QAAQ,EAAE,8CAA8C;YACrE,OAAO,aAAa,CAAC,QAAQ,EAAE,GAAG,CACrC,CAAC;IACJ,CAAC;IAED,OAAO,KAAK,CAAC;AACf,CAAC;AAED;;;;;GAKG;AACH,MAAM,OAAO,qBAAqB;IAChB,OAAO,CAA+B;IACtC,sBAAsB,CAAqB;IAE3D,YACE,OAAqC,EACrC,KAAiC;QAEjC,MAAM,KAAK,GAAG,IAAI,CAAC,OAAO,CAAC,OAAO,EAAE,KAAK,CAAC,SAAS,CAAC,CAAC;QACrD,MAAM,SAAS,GAAG,IAAI,CAAC,KAAK,CAAC,KAAK,EAAE,KAAK,CAAC,uBAAuB,CAAC,CAAC;QAEnE,IAAI,CAAC,OAAO,GAAG,SAAS,CAAC,KAAK,CAAC,CAAC,EAAE,SAAS,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC,CAAC;QAC1D,IAAI,CAAC,sBAAsB;YACzB,IAAI,CAAC,OAAO,CAAC,MAAM,KAAK,SAAS,CAAC,MAAM;gBACtC,CAAC,CAAC,SAAS;gBACX,CAAC,CAAC,IAAI,CAAC,OAAO,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,EAAE,GAAG,CAAC;IACjC,CAAC;IAED;;;;;;;OAOG;IACK,OAAO,CACb,OAAqC,EACrC,SAA6B;QAE7B,IAAI,SAAS,KAAK,SAAS,EAAE,CAAC;YAC5B,OAAO,OAAO,CAAC;QACjB,CAAC;QAED,OAAO,OAAO,CAAC,MAAM,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,MAAM,CAAC,SAAS,KAAK,SAAS,CAAC,CAAC;IACpE,CAAC;IAED;;OAEG;IACK,KAAK,CACX,OAAqC,EACrC,uBAA2C;QAE3C,IAAI,uBAAuB,KAAK,SAAS,EAAE,CAAC;YAC1C,OAAO,OAAO,CAAC;QACjB,CAAC;QAED,OAAO,OAAO,CAAC,MAAM,CACnB,CAAC,MAAM,EAAE,EAAE,CAAC,MAAM,CAAC,GAAG,CAAC,aAAa,CAAC,uBAAuB,CAAC,GAAG,CAAC,CAClE,CAAC;IACJ,CAAC;CACF"}