@kensio/yulin 1.20.0 → 1.20.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (626) hide show
  1. package/README.md +1 -0
  2. package/dist/sdk/router/resolve-sim-sdk-command-router.d.ts.map +1 -1
  3. package/dist/sdk/router/resolve-sim-sdk-command-router.js +8 -0
  4. package/dist/sdk/router/resolve-sim-sdk-command-router.js.map +1 -1
  5. package/dist/service/aws/factory/sim-aws-account-region-service-builder.d.ts +11 -0
  6. package/dist/service/aws/factory/sim-aws-account-region-service-builder.d.ts.map +1 -1
  7. package/dist/service/aws/factory/sim-aws-account-region-service-builder.js +17 -1
  8. package/dist/service/aws/factory/sim-aws-account-region-service-builder.js.map +1 -1
  9. package/dist/service/aws/factory/sim-aws-cross-account-collaborators.d.ts +10 -0
  10. package/dist/service/aws/factory/sim-aws-cross-account-collaborators.d.ts.map +1 -1
  11. package/dist/service/aws/factory/sim-aws-cross-account-collaborators.js +15 -0
  12. package/dist/service/aws/factory/sim-aws-cross-account-collaborators.js.map +1 -1
  13. package/dist/service/aws/factory/sim-aws-self-contained-service-builder.d.ts +9 -0
  14. package/dist/service/aws/factory/sim-aws-self-contained-service-builder.d.ts.map +1 -1
  15. package/dist/service/aws/factory/sim-aws-self-contained-service-builder.js +15 -0
  16. package/dist/service/aws/factory/sim-aws-self-contained-service-builder.js.map +1 -1
  17. package/dist/service/aws/factory/sim-aws-service-factory.d.ts +6 -0
  18. package/dist/service/aws/factory/sim-aws-service-factory.d.ts.map +1 -1
  19. package/dist/service/aws/factory/sim-aws-service-factory.js +8 -0
  20. package/dist/service/aws/factory/sim-aws-service-factory.js.map +1 -1
  21. package/dist/service/aws/sim-aws-account-region-scope.d.ts +6 -0
  22. package/dist/service/aws/sim-aws-account-region-scope.d.ts.map +1 -1
  23. package/dist/service/aws/sim-aws-account-region-scope.js +8 -0
  24. package/dist/service/aws/sim-aws-account-region-scope.js.map +1 -1
  25. package/dist/service/aws/sim-aws-account.d.ts +5 -0
  26. package/dist/service/aws/sim-aws-account.d.ts.map +1 -1
  27. package/dist/service/aws/sim-aws-account.js +6 -0
  28. package/dist/service/aws/sim-aws-account.js.map +1 -1
  29. package/dist/service/aws/sim-aws-region.d.ts +5 -0
  30. package/dist/service/aws/sim-aws-region.d.ts.map +1 -1
  31. package/dist/service/aws/sim-aws-region.js +6 -0
  32. package/dist/service/aws/sim-aws-region.js.map +1 -1
  33. package/dist/service/aws/sim-aws-service-accessors.d.ts +6 -0
  34. package/dist/service/aws/sim-aws-service-accessors.d.ts.map +1 -1
  35. package/dist/service/aws/sim-aws-service-accessors.js +8 -0
  36. package/dist/service/aws/sim-aws-service-accessors.js.map +1 -1
  37. package/dist/service/cloudformation/resource/cfn/firehose/sim-firehose-cfn-value-adapter.d.ts +6 -0
  38. package/dist/service/cloudformation/resource/cfn/firehose/sim-firehose-cfn-value-adapter.d.ts.map +1 -0
  39. package/dist/service/cloudformation/resource/cfn/firehose/sim-firehose-cfn-value-adapter.js +15 -0
  40. package/dist/service/cloudformation/resource/cfn/firehose/sim-firehose-cfn-value-adapter.js.map +1 -0
  41. package/dist/service/cloudformation/resource/cfn/firehose/sim-firehose-delivery-stream-cfn.d.ts +23 -0
  42. package/dist/service/cloudformation/resource/cfn/firehose/sim-firehose-delivery-stream-cfn.d.ts.map +1 -0
  43. package/dist/service/cloudformation/resource/cfn/firehose/sim-firehose-delivery-stream-cfn.js +29 -0
  44. package/dist/service/cloudformation/resource/cfn/firehose/sim-firehose-delivery-stream-cfn.js.map +1 -0
  45. package/dist/service/cloudformation/resource/cfn/sim-cfn-service-value-adapters.d.ts.map +1 -1
  46. package/dist/service/cloudformation/resource/cfn/sim-cfn-service-value-adapters.js +4 -0
  47. package/dist/service/cloudformation/resource/cfn/sim-cfn-service-value-adapters.js.map +1 -1
  48. package/dist/service/cloudformation/resource/cfn/stepfunctions/sim-cfn-state-machine-creator.d.ts +27 -0
  49. package/dist/service/cloudformation/resource/cfn/stepfunctions/sim-cfn-state-machine-creator.d.ts.map +1 -0
  50. package/dist/service/cloudformation/resource/cfn/stepfunctions/sim-cfn-state-machine-creator.js +47 -0
  51. package/dist/service/cloudformation/resource/cfn/stepfunctions/sim-cfn-state-machine-creator.js.map +1 -0
  52. package/dist/service/cloudformation/resource/cfn/stepfunctions/sim-cfn-state-machine-definition.d.ts +49 -0
  53. package/dist/service/cloudformation/resource/cfn/stepfunctions/sim-cfn-state-machine-definition.d.ts.map +1 -0
  54. package/dist/service/cloudformation/resource/cfn/stepfunctions/sim-cfn-state-machine-definition.js +89 -0
  55. package/dist/service/cloudformation/resource/cfn/stepfunctions/sim-cfn-state-machine-definition.js.map +1 -0
  56. package/dist/service/cloudformation/resource/cfn/stepfunctions/sim-cfn-state-machine-name.d.ts +23 -0
  57. package/dist/service/cloudformation/resource/cfn/stepfunctions/sim-cfn-state-machine-name.d.ts.map +1 -0
  58. package/dist/service/cloudformation/resource/cfn/stepfunctions/sim-cfn-state-machine-name.js +28 -0
  59. package/dist/service/cloudformation/resource/cfn/stepfunctions/sim-cfn-state-machine-name.js.map +1 -0
  60. package/dist/service/cloudformation/resource/cfn/stepfunctions/sim-cfn-state-machine-properties.d.ts +57 -0
  61. package/dist/service/cloudformation/resource/cfn/stepfunctions/sim-cfn-state-machine-properties.d.ts.map +1 -0
  62. package/dist/service/cloudformation/resource/cfn/stepfunctions/sim-cfn-state-machine-properties.js +99 -0
  63. package/dist/service/cloudformation/resource/cfn/stepfunctions/sim-cfn-state-machine-properties.js.map +1 -0
  64. package/dist/service/cloudformation/resource/cfn/stepfunctions/sim-cfn-state-machine-property-names.d.ts +21 -0
  65. package/dist/service/cloudformation/resource/cfn/stepfunctions/sim-cfn-state-machine-property-names.d.ts.map +1 -0
  66. package/dist/service/cloudformation/resource/cfn/stepfunctions/sim-cfn-state-machine-property-names.js +37 -0
  67. package/dist/service/cloudformation/resource/cfn/stepfunctions/sim-cfn-state-machine-property-names.js.map +1 -0
  68. package/dist/service/cloudformation/resource/cfn/stepfunctions/sim-cfn-state-machine-substitutions.d.ts +32 -0
  69. package/dist/service/cloudformation/resource/cfn/stepfunctions/sim-cfn-state-machine-substitutions.d.ts.map +1 -0
  70. package/dist/service/cloudformation/resource/cfn/stepfunctions/sim-cfn-state-machine-substitutions.js +56 -0
  71. package/dist/service/cloudformation/resource/cfn/stepfunctions/sim-cfn-state-machine-substitutions.js.map +1 -0
  72. package/dist/service/cloudformation/resource/cfn/stepfunctions/sim-cfn-step-functions-resource-deleter.d.ts +20 -0
  73. package/dist/service/cloudformation/resource/cfn/stepfunctions/sim-cfn-step-functions-resource-deleter.d.ts.map +1 -0
  74. package/dist/service/cloudformation/resource/cfn/stepfunctions/sim-cfn-step-functions-resource-deleter.js +28 -0
  75. package/dist/service/cloudformation/resource/cfn/stepfunctions/sim-cfn-step-functions-resource-deleter.js.map +1 -0
  76. package/dist/service/cloudformation/resource/cfn/stepfunctions/sim-cfn-step-functions-resource-error.d.ts +43 -0
  77. package/dist/service/cloudformation/resource/cfn/stepfunctions/sim-cfn-step-functions-resource-error.d.ts.map +1 -0
  78. package/dist/service/cloudformation/resource/cfn/stepfunctions/sim-cfn-step-functions-resource-error.js +64 -0
  79. package/dist/service/cloudformation/resource/cfn/stepfunctions/sim-cfn-step-functions-resource-error.js.map +1 -0
  80. package/dist/service/cloudformation/resource/cfn/stepfunctions/sim-cfn-step-functions-resource-types.d.ts +10 -0
  81. package/dist/service/cloudformation/resource/cfn/stepfunctions/sim-cfn-step-functions-resource-types.d.ts.map +1 -0
  82. package/dist/service/cloudformation/resource/cfn/stepfunctions/sim-cfn-step-functions-resource-types.js +10 -0
  83. package/dist/service/cloudformation/resource/cfn/stepfunctions/sim-cfn-step-functions-resource-types.js.map +1 -0
  84. package/dist/service/cloudformation/resource/cfn/stepfunctions/sim-state-machine-cfn.d.ts +27 -0
  85. package/dist/service/cloudformation/resource/cfn/stepfunctions/sim-state-machine-cfn.d.ts.map +1 -0
  86. package/dist/service/cloudformation/resource/cfn/stepfunctions/sim-state-machine-cfn.js +37 -0
  87. package/dist/service/cloudformation/resource/cfn/stepfunctions/sim-state-machine-cfn.js.map +1 -0
  88. package/dist/service/cloudformation/resource/cfn/stepfunctions/sim-step-functions-cfn-resource-factory.d.ts +31 -0
  89. package/dist/service/cloudformation/resource/cfn/stepfunctions/sim-step-functions-cfn-resource-factory.d.ts.map +1 -0
  90. package/dist/service/cloudformation/resource/cfn/stepfunctions/sim-step-functions-cfn-resource-factory.js +42 -0
  91. package/dist/service/cloudformation/resource/cfn/stepfunctions/sim-step-functions-cfn-resource-factory.js.map +1 -0
  92. package/dist/service/cloudformation/resource/cfn/stepfunctions/sim-step-functions-cfn-value-adapter.d.ts +7 -0
  93. package/dist/service/cloudformation/resource/cfn/stepfunctions/sim-step-functions-cfn-value-adapter.d.ts.map +1 -0
  94. package/dist/service/cloudformation/resource/cfn/stepfunctions/sim-step-functions-cfn-value-adapter.js +16 -0
  95. package/dist/service/cloudformation/resource/cfn/stepfunctions/sim-step-functions-cfn-value-adapter.js.map +1 -0
  96. package/dist/service/cloudformation/resource/resolve/service/sim-cfn-service-factories.d.ts.map +1 -1
  97. package/dist/service/cloudformation/resource/resolve/service/sim-cfn-service-factories.js +11 -0
  98. package/dist/service/cloudformation/resource/resolve/service/sim-cfn-service-factories.js.map +1 -1
  99. package/dist/service/cloudfront/command/create-distribution/create-distribution.command.d.ts +25 -0
  100. package/dist/service/cloudfront/command/create-distribution/create-distribution.command.d.ts.map +1 -1
  101. package/dist/service/cloudfront/command/create-distribution/sim-cf-distro-config-normalizer.d.ts +0 -1
  102. package/dist/service/cloudfront/command/create-distribution/sim-cf-distro-config-normalizer.d.ts.map +1 -1
  103. package/dist/service/cloudfront/command/create-distribution/sim-cf-distro-config-normalizer.js +8 -36
  104. package/dist/service/cloudfront/command/create-distribution/sim-cf-distro-config-normalizer.js.map +1 -1
  105. package/dist/service/cloudfront/command/create-distribution/sim-cf-normalize-list.d.ts +19 -0
  106. package/dist/service/cloudfront/command/create-distribution/sim-cf-normalize-list.d.ts.map +1 -0
  107. package/dist/service/cloudfront/command/create-distribution/sim-cf-normalize-list.js +39 -0
  108. package/dist/service/cloudfront/command/create-distribution/sim-cf-normalize-list.js.map +1 -0
  109. package/dist/service/cloudfront/command/create-distribution/sim-cf-normalize-origin.d.ts +10 -0
  110. package/dist/service/cloudfront/command/create-distribution/sim-cf-normalize-origin.d.ts.map +1 -0
  111. package/dist/service/cloudfront/command/create-distribution/sim-cf-normalize-origin.js +17 -0
  112. package/dist/service/cloudfront/command/create-distribution/sim-cf-normalize-origin.js.map +1 -0
  113. package/dist/service/cloudfront/distribution/configurator/sim-cloud-front-origin-configurator.d.ts.map +1 -1
  114. package/dist/service/cloudfront/distribution/configurator/sim-cloud-front-origin-configurator.js +8 -0
  115. package/dist/service/cloudfront/distribution/configurator/sim-cloud-front-origin-configurator.js.map +1 -1
  116. package/dist/service/cloudfront/origin/custom/sim-cf-custom-origin-request.d.ts +4 -0
  117. package/dist/service/cloudfront/origin/custom/sim-cf-custom-origin-request.d.ts.map +1 -1
  118. package/dist/service/cloudfront/origin/custom/sim-cf-custom-origin-request.js +7 -0
  119. package/dist/service/cloudfront/origin/custom/sim-cf-custom-origin-request.js.map +1 -1
  120. package/dist/service/cloudfront/origin/custom/sim-cloudfront-custom-origin.d.ts +6 -0
  121. package/dist/service/cloudfront/origin/custom/sim-cloudfront-custom-origin.d.ts.map +1 -1
  122. package/dist/service/cloudfront/origin/custom/sim-cloudfront-custom-origin.js +3 -0
  123. package/dist/service/cloudfront/origin/custom/sim-cloudfront-custom-origin.js.map +1 -1
  124. package/dist/service/cloudfront/origin/sim-cf-origin-custom-headers.d.ts +15 -0
  125. package/dist/service/cloudfront/origin/sim-cf-origin-custom-headers.d.ts.map +1 -0
  126. package/dist/service/cloudfront/origin/sim-cf-origin-custom-headers.js +74 -0
  127. package/dist/service/cloudfront/origin/sim-cf-origin-custom-headers.js.map +1 -0
  128. package/dist/service/firehose/cfn/delivery-stream/sim-cfn-firehose-delivery-stream-creator.d.ts +33 -0
  129. package/dist/service/firehose/cfn/delivery-stream/sim-cfn-firehose-delivery-stream-creator.d.ts.map +1 -0
  130. package/dist/service/firehose/cfn/delivery-stream/sim-cfn-firehose-delivery-stream-creator.js +44 -0
  131. package/dist/service/firehose/cfn/delivery-stream/sim-cfn-firehose-delivery-stream-creator.js.map +1 -0
  132. package/dist/service/firehose/cfn/delivery-stream/sim-cfn-firehose-delivery-stream-name.d.ts +23 -0
  133. package/dist/service/firehose/cfn/delivery-stream/sim-cfn-firehose-delivery-stream-name.d.ts.map +1 -0
  134. package/dist/service/firehose/cfn/delivery-stream/sim-cfn-firehose-delivery-stream-name.js +28 -0
  135. package/dist/service/firehose/cfn/delivery-stream/sim-cfn-firehose-delivery-stream-name.js.map +1 -0
  136. package/dist/service/firehose/cfn/delivery-stream/sim-cfn-firehose-delivery-stream-properties.d.ts +48 -0
  137. package/dist/service/firehose/cfn/delivery-stream/sim-cfn-firehose-delivery-stream-properties.d.ts.map +1 -0
  138. package/dist/service/firehose/cfn/delivery-stream/sim-cfn-firehose-delivery-stream-properties.js +92 -0
  139. package/dist/service/firehose/cfn/delivery-stream/sim-cfn-firehose-delivery-stream-properties.js.map +1 -0
  140. package/dist/service/firehose/cfn/delivery-stream/sim-cfn-firehose-delivery-stream-property-names.d.ts +51 -0
  141. package/dist/service/firehose/cfn/delivery-stream/sim-cfn-firehose-delivery-stream-property-names.d.ts.map +1 -0
  142. package/dist/service/firehose/cfn/delivery-stream/sim-cfn-firehose-delivery-stream-property-names.js +114 -0
  143. package/dist/service/firehose/cfn/delivery-stream/sim-cfn-firehose-delivery-stream-property-names.js.map +1 -0
  144. package/dist/service/firehose/cfn/delivery-stream/sim-cfn-firehose-destination-choice.d.ts +19 -0
  145. package/dist/service/firehose/cfn/delivery-stream/sim-cfn-firehose-destination-choice.d.ts.map +1 -0
  146. package/dist/service/firehose/cfn/delivery-stream/sim-cfn-firehose-destination-choice.js +44 -0
  147. package/dist/service/firehose/cfn/delivery-stream/sim-cfn-firehose-destination-choice.js.map +1 -0
  148. package/dist/service/firehose/cfn/delivery-stream/sim-cfn-firehose-s3-destination.d.ts +47 -0
  149. package/dist/service/firehose/cfn/delivery-stream/sim-cfn-firehose-s3-destination.d.ts.map +1 -0
  150. package/dist/service/firehose/cfn/delivery-stream/sim-cfn-firehose-s3-destination.js +105 -0
  151. package/dist/service/firehose/cfn/delivery-stream/sim-cfn-firehose-s3-destination.js.map +1 -0
  152. package/dist/service/firehose/cfn/delivery-stream/sim-cfn-firehose-source-choice.d.ts +19 -0
  153. package/dist/service/firehose/cfn/delivery-stream/sim-cfn-firehose-source-choice.d.ts.map +1 -0
  154. package/dist/service/firehose/cfn/delivery-stream/sim-cfn-firehose-source-choice.js +58 -0
  155. package/dist/service/firehose/cfn/delivery-stream/sim-cfn-firehose-source-choice.js.map +1 -0
  156. package/dist/service/firehose/cfn/delivery-stream/sim-cfn-firehose-tags.d.ts +11 -0
  157. package/dist/service/firehose/cfn/delivery-stream/sim-cfn-firehose-tags.d.ts.map +1 -0
  158. package/dist/service/firehose/cfn/delivery-stream/sim-cfn-firehose-tags.js +33 -0
  159. package/dist/service/firehose/cfn/delivery-stream/sim-cfn-firehose-tags.js.map +1 -0
  160. package/dist/service/firehose/cfn/sim-cfn-firehose-archive.resources.d.ts +44 -0
  161. package/dist/service/firehose/cfn/sim-cfn-firehose-archive.resources.d.ts.map +1 -0
  162. package/dist/service/firehose/cfn/sim-cfn-firehose-archive.resources.js +144 -0
  163. package/dist/service/firehose/cfn/sim-cfn-firehose-archive.resources.js.map +1 -0
  164. package/dist/service/firehose/cfn/sim-cfn-firehose-delivery-stream-template.factory.d.ts +51 -0
  165. package/dist/service/firehose/cfn/sim-cfn-firehose-delivery-stream-template.factory.d.ts.map +1 -0
  166. package/dist/service/firehose/cfn/sim-cfn-firehose-delivery-stream-template.factory.js +65 -0
  167. package/dist/service/firehose/cfn/sim-cfn-firehose-delivery-stream-template.factory.js.map +1 -0
  168. package/dist/service/firehose/cfn/sim-cfn-firehose-resource-deleter.d.ts +19 -0
  169. package/dist/service/firehose/cfn/sim-cfn-firehose-resource-deleter.d.ts.map +1 -0
  170. package/dist/service/firehose/cfn/sim-cfn-firehose-resource-deleter.js +26 -0
  171. package/dist/service/firehose/cfn/sim-cfn-firehose-resource-deleter.js.map +1 -0
  172. package/dist/service/firehose/cfn/sim-cfn-firehose-resource-error.d.ts +44 -0
  173. package/dist/service/firehose/cfn/sim-cfn-firehose-resource-error.d.ts.map +1 -0
  174. package/dist/service/firehose/cfn/sim-cfn-firehose-resource-error.js +75 -0
  175. package/dist/service/firehose/cfn/sim-cfn-firehose-resource-error.js.map +1 -0
  176. package/dist/service/firehose/cfn/sim-cfn-firehose-resource-types.d.ts +14 -0
  177. package/dist/service/firehose/cfn/sim-cfn-firehose-resource-types.d.ts.map +1 -0
  178. package/dist/service/firehose/cfn/sim-cfn-firehose-resource-types.js +14 -0
  179. package/dist/service/firehose/cfn/sim-cfn-firehose-resource-types.js.map +1 -0
  180. package/dist/service/firehose/cfn/sim-firehose-cfn-resource-factory.d.ts +29 -0
  181. package/dist/service/firehose/cfn/sim-firehose-cfn-resource-factory.d.ts.map +1 -0
  182. package/dist/service/firehose/cfn/sim-firehose-cfn-resource-factory.js +38 -0
  183. package/dist/service/firehose/cfn/sim-firehose-cfn-resource-factory.js.map +1 -0
  184. package/dist/service/firehose/command/authorize/sim-firehose-authorizer.d.ts +39 -0
  185. package/dist/service/firehose/command/authorize/sim-firehose-authorizer.d.ts.map +1 -0
  186. package/dist/service/firehose/command/authorize/sim-firehose-authorizer.js +49 -0
  187. package/dist/service/firehose/command/authorize/sim-firehose-authorizer.js.map +1 -0
  188. package/dist/service/firehose/command/record/record.command.d.ts +55 -0
  189. package/dist/service/firehose/command/record/record.command.d.ts.map +1 -0
  190. package/dist/service/firehose/command/record/record.command.js +2 -0
  191. package/dist/service/firehose/command/record/record.command.js.map +1 -0
  192. package/dist/service/firehose/command/record/sim-firehose-put-commands.d.ts +43 -0
  193. package/dist/service/firehose/command/record/sim-firehose-put-commands.d.ts.map +1 -0
  194. package/dist/service/firehose/command/record/sim-firehose-put-commands.js +59 -0
  195. package/dist/service/firehose/command/record/sim-firehose-put-commands.js.map +1 -0
  196. package/dist/service/firehose/command/record/sim-firehose-record-data.d.ts +21 -0
  197. package/dist/service/firehose/command/record/sim-firehose-record-data.d.ts.map +1 -0
  198. package/dist/service/firehose/command/record/sim-firehose-record-data.js +54 -0
  199. package/dist/service/firehose/command/record/sim-firehose-record-data.js.map +1 -0
  200. package/dist/service/firehose/command/sim-firehose-command.types.d.ts +6 -0
  201. package/dist/service/firehose/command/sim-firehose-command.types.d.ts.map +1 -0
  202. package/dist/service/firehose/command/sim-firehose-command.types.js +2 -0
  203. package/dist/service/firehose/command/sim-firehose-command.types.js.map +1 -0
  204. package/dist/service/firehose/command/sim-firehose-commands.d.ts +37 -0
  205. package/dist/service/firehose/command/sim-firehose-commands.d.ts.map +1 -0
  206. package/dist/service/firehose/command/sim-firehose-commands.js +57 -0
  207. package/dist/service/firehose/command/sim-firehose-commands.js.map +1 -0
  208. package/dist/service/firehose/command/sim-firehose-delivery-stream-access.d.ts +47 -0
  209. package/dist/service/firehose/command/sim-firehose-delivery-stream-access.d.ts.map +1 -0
  210. package/dist/service/firehose/command/sim-firehose-delivery-stream-access.js +58 -0
  211. package/dist/service/firehose/command/sim-firehose-delivery-stream-access.js.map +1 -0
  212. package/dist/service/firehose/command/sim-firehose-request-options.d.ts +12 -0
  213. package/dist/service/firehose/command/sim-firehose-request-options.d.ts.map +1 -0
  214. package/dist/service/firehose/command/sim-firehose-request-options.js +2 -0
  215. package/dist/service/firehose/command/sim-firehose-request-options.js.map +1 -0
  216. package/dist/service/firehose/command/stream/sim-firehose-create-delivery-stream.d.ts +49 -0
  217. package/dist/service/firehose/command/stream/sim-firehose-create-delivery-stream.d.ts.map +1 -0
  218. package/dist/service/firehose/command/stream/sim-firehose-create-delivery-stream.js +69 -0
  219. package/dist/service/firehose/command/stream/sim-firehose-create-delivery-stream.js.map +1 -0
  220. package/dist/service/firehose/command/stream/sim-firehose-delivery-stream-page.d.ts +19 -0
  221. package/dist/service/firehose/command/stream/sim-firehose-delivery-stream-page.d.ts.map +1 -0
  222. package/dist/service/firehose/command/stream/sim-firehose-delivery-stream-page.js +24 -0
  223. package/dist/service/firehose/command/stream/sim-firehose-delivery-stream-page.js.map +1 -0
  224. package/dist/service/firehose/command/stream/sim-firehose-stream-commands.d.ts +50 -0
  225. package/dist/service/firehose/command/stream/sim-firehose-stream-commands.d.ts.map +1 -0
  226. package/dist/service/firehose/command/stream/sim-firehose-stream-commands.js +72 -0
  227. package/dist/service/firehose/command/stream/sim-firehose-stream-commands.js.map +1 -0
  228. package/dist/service/firehose/command/stream/sim-firehose-stream-descriptions.d.ts +7 -0
  229. package/dist/service/firehose/command/stream/sim-firehose-stream-descriptions.d.ts.map +1 -0
  230. package/dist/service/firehose/command/stream/sim-firehose-stream-descriptions.js +70 -0
  231. package/dist/service/firehose/command/stream/sim-firehose-stream-descriptions.js.map +1 -0
  232. package/dist/service/firehose/command/stream/stream.command.d.ts +137 -0
  233. package/dist/service/firehose/command/stream/stream.command.d.ts.map +1 -0
  234. package/dist/service/firehose/command/stream/stream.command.js +2 -0
  235. package/dist/service/firehose/command/stream/stream.command.js.map +1 -0
  236. package/dist/service/firehose/delivery/sim-firehose-buffer.d.ts +36 -0
  237. package/dist/service/firehose/delivery/sim-firehose-buffer.d.ts.map +1 -0
  238. package/dist/service/firehose/delivery/sim-firehose-buffer.js +55 -0
  239. package/dist/service/firehose/delivery/sim-firehose-buffer.js.map +1 -0
  240. package/dist/service/firehose/delivery/sim-firehose-delivery-failures.d.ts +34 -0
  241. package/dist/service/firehose/delivery/sim-firehose-delivery-failures.d.ts.map +1 -0
  242. package/dist/service/firehose/delivery/sim-firehose-delivery-failures.js +24 -0
  243. package/dist/service/firehose/delivery/sim-firehose-delivery-failures.js.map +1 -0
  244. package/dist/service/firehose/delivery/sim-firehose-delivery.d.ts +47 -0
  245. package/dist/service/firehose/delivery/sim-firehose-delivery.d.ts.map +1 -0
  246. package/dist/service/firehose/delivery/sim-firehose-delivery.js +76 -0
  247. package/dist/service/firehose/delivery/sim-firehose-delivery.js.map +1 -0
  248. package/dist/service/firehose/delivery/sim-firehose-object-key.d.ts +21 -0
  249. package/dist/service/firehose/delivery/sim-firehose-object-key.d.ts.map +1 -0
  250. package/dist/service/firehose/delivery/sim-firehose-object-key.js +27 -0
  251. package/dist/service/firehose/delivery/sim-firehose-object-key.js.map +1 -0
  252. package/dist/service/firehose/delivery/sim-firehose-object-writer.d.ts +50 -0
  253. package/dist/service/firehose/delivery/sim-firehose-object-writer.d.ts.map +1 -0
  254. package/dist/service/firehose/delivery/sim-firehose-object-writer.js +57 -0
  255. package/dist/service/firehose/delivery/sim-firehose-object-writer.js.map +1 -0
  256. package/dist/service/firehose/destination/sim-firehose-buffering-hints.d.ts +29 -0
  257. package/dist/service/firehose/destination/sim-firehose-buffering-hints.d.ts.map +1 -0
  258. package/dist/service/firehose/destination/sim-firehose-buffering-hints.js +45 -0
  259. package/dist/service/firehose/destination/sim-firehose-buffering-hints.js.map +1 -0
  260. package/dist/service/firehose/destination/sim-firehose-destination-choice.d.ts +35 -0
  261. package/dist/service/firehose/destination/sim-firehose-destination-choice.d.ts.map +1 -0
  262. package/dist/service/firehose/destination/sim-firehose-destination-choice.js +48 -0
  263. package/dist/service/firehose/destination/sim-firehose-destination-choice.js.map +1 -0
  264. package/dist/service/firehose/destination/sim-firehose-s3-destination.d.ts +32 -0
  265. package/dist/service/firehose/destination/sim-firehose-s3-destination.d.ts.map +1 -0
  266. package/dist/service/firehose/destination/sim-firehose-s3-destination.js +51 -0
  267. package/dist/service/firehose/destination/sim-firehose-s3-destination.js.map +1 -0
  268. package/dist/service/firehose/error/sim-firehose.error.d.ts +69 -0
  269. package/dist/service/firehose/error/sim-firehose.error.d.ts.map +1 -0
  270. package/dist/service/firehose/error/sim-firehose.error.js +79 -0
  271. package/dist/service/firehose/error/sim-firehose.error.js.map +1 -0
  272. package/dist/service/firehose/failure/sim-firehose-failure.d.ts +38 -0
  273. package/dist/service/firehose/failure/sim-firehose-failure.d.ts.map +1 -0
  274. package/dist/service/firehose/failure/sim-firehose-failure.js +40 -0
  275. package/dist/service/firehose/failure/sim-firehose-failure.js.map +1 -0
  276. package/dist/service/firehose/failure/sim-firehose-failures.d.ts +32 -0
  277. package/dist/service/firehose/failure/sim-firehose-failures.d.ts.map +1 -0
  278. package/dist/service/firehose/failure/sim-firehose-failures.js +47 -0
  279. package/dist/service/firehose/failure/sim-firehose-failures.js.map +1 -0
  280. package/dist/service/firehose/index.d.ts +17 -0
  281. package/dist/service/firehose/index.d.ts.map +1 -0
  282. package/dist/service/firehose/index.js +12 -0
  283. package/dist/service/firehose/index.js.map +1 -0
  284. package/dist/service/firehose/sdk/sim-firehose-sdk-command-router.d.ts +18 -0
  285. package/dist/service/firehose/sdk/sim-firehose-sdk-command-router.d.ts.map +1 -0
  286. package/dist/service/firehose/sdk/sim-firehose-sdk-command-router.js +48 -0
  287. package/dist/service/firehose/sdk/sim-firehose-sdk-command-router.js.map +1 -0
  288. package/dist/service/firehose/sim-firehose.d.ts +104 -0
  289. package/dist/service/firehose/sim-firehose.d.ts.map +1 -0
  290. package/dist/service/firehose/sim-firehose.js +130 -0
  291. package/dist/service/firehose/sim-firehose.js.map +1 -0
  292. package/dist/service/firehose/source/read/sim-firehose-source-poll.d.ts +39 -0
  293. package/dist/service/firehose/source/read/sim-firehose-source-poll.d.ts.map +1 -0
  294. package/dist/service/firehose/source/read/sim-firehose-source-poll.js +48 -0
  295. package/dist/service/firehose/source/read/sim-firehose-source-poll.js.map +1 -0
  296. package/dist/service/firehose/source/read/sim-firehose-source-reader.d.ts +62 -0
  297. package/dist/service/firehose/source/read/sim-firehose-source-reader.d.ts.map +1 -0
  298. package/dist/service/firehose/source/read/sim-firehose-source-reader.js +94 -0
  299. package/dist/service/firehose/source/read/sim-firehose-source-reader.js.map +1 -0
  300. package/dist/service/firehose/source/read/sim-firehose-source-reading.d.ts +39 -0
  301. package/dist/service/firehose/source/read/sim-firehose-source-reading.d.ts.map +1 -0
  302. package/dist/service/firehose/source/read/sim-firehose-source-reading.js +48 -0
  303. package/dist/service/firehose/source/read/sim-firehose-source-reading.js.map +1 -0
  304. package/dist/service/firehose/source/read/sim-firehose-source-shard-ids.d.ts +12 -0
  305. package/dist/service/firehose/source/read/sim-firehose-source-shard-ids.d.ts.map +1 -0
  306. package/dist/service/firehose/source/read/sim-firehose-source-shard-ids.js +56 -0
  307. package/dist/service/firehose/source/read/sim-firehose-source-shard-ids.js.map +1 -0
  308. package/dist/service/firehose/source/read/sim-firehose-source-shard.d.ts +36 -0
  309. package/dist/service/firehose/source/read/sim-firehose-source-shard.d.ts.map +1 -0
  310. package/dist/service/firehose/source/read/sim-firehose-source-shard.js +45 -0
  311. package/dist/service/firehose/source/read/sim-firehose-source-shard.js.map +1 -0
  312. package/dist/service/firehose/source/read/sim-firehose-source-shards.d.ts +42 -0
  313. package/dist/service/firehose/source/read/sim-firehose-source-shards.d.ts.map +1 -0
  314. package/dist/service/firehose/source/read/sim-firehose-source-shards.js +53 -0
  315. package/dist/service/firehose/source/read/sim-firehose-source-shards.js.map +1 -0
  316. package/dist/service/firehose/source/sim-firehose-kinesis-source-arn.d.ts +29 -0
  317. package/dist/service/firehose/source/sim-firehose-kinesis-source-arn.d.ts.map +1 -0
  318. package/dist/service/firehose/source/sim-firehose-kinesis-source-arn.js +57 -0
  319. package/dist/service/firehose/source/sim-firehose-kinesis-source-arn.js.map +1 -0
  320. package/dist/service/firehose/source/sim-firehose-record-source.d.ts +140 -0
  321. package/dist/service/firehose/source/sim-firehose-record-source.d.ts.map +1 -0
  322. package/dist/service/firehose/source/sim-firehose-record-source.js +53 -0
  323. package/dist/service/firehose/source/sim-firehose-record-source.js.map +1 -0
  324. package/dist/service/firehose/source/sim-firehose-source-choice.d.ts +26 -0
  325. package/dist/service/firehose/source/sim-firehose-source-choice.d.ts.map +1 -0
  326. package/dist/service/firehose/source/sim-firehose-source-choice.js +68 -0
  327. package/dist/service/firehose/source/sim-firehose-source-choice.js.map +1 -0
  328. package/dist/service/firehose/source/sim-firehose-source-failures.d.ts +38 -0
  329. package/dist/service/firehose/source/sim-firehose-source-failures.d.ts.map +1 -0
  330. package/dist/service/firehose/source/sim-firehose-source-failures.js +33 -0
  331. package/dist/service/firehose/source/sim-firehose-source-failures.js.map +1 -0
  332. package/dist/service/firehose/source/sim-firehose-source.d.ts +64 -0
  333. package/dist/service/firehose/source/sim-firehose-source.d.ts.map +1 -0
  334. package/dist/service/firehose/source/sim-firehose-source.js +58 -0
  335. package/dist/service/firehose/source/sim-firehose-source.js.map +1 -0
  336. package/dist/service/firehose/stream/sim-firehose-delivery-stream-arn.d.ts +10 -0
  337. package/dist/service/firehose/stream/sim-firehose-delivery-stream-arn.d.ts.map +1 -0
  338. package/dist/service/firehose/stream/sim-firehose-delivery-stream-arn.js +12 -0
  339. package/dist/service/firehose/stream/sim-firehose-delivery-stream-arn.js.map +1 -0
  340. package/dist/service/firehose/stream/sim-firehose-delivery-stream-name.d.ts +9 -0
  341. package/dist/service/firehose/stream/sim-firehose-delivery-stream-name.d.ts.map +1 -0
  342. package/dist/service/firehose/stream/sim-firehose-delivery-stream-name.js +25 -0
  343. package/dist/service/firehose/stream/sim-firehose-delivery-stream-name.js.map +1 -0
  344. package/dist/service/firehose/stream/sim-firehose-delivery-stream-store.d.ts +37 -0
  345. package/dist/service/firehose/stream/sim-firehose-delivery-stream-store.d.ts.map +1 -0
  346. package/dist/service/firehose/stream/sim-firehose-delivery-stream-store.js +55 -0
  347. package/dist/service/firehose/stream/sim-firehose-delivery-stream-store.js.map +1 -0
  348. package/dist/service/firehose/stream/sim-firehose-delivery-stream.d.ts +50 -0
  349. package/dist/service/firehose/stream/sim-firehose-delivery-stream.d.ts.map +1 -0
  350. package/dist/service/firehose/stream/sim-firehose-delivery-stream.factory.d.ts +57 -0
  351. package/dist/service/firehose/stream/sim-firehose-delivery-stream.factory.d.ts.map +1 -0
  352. package/dist/service/firehose/stream/sim-firehose-delivery-stream.factory.js +61 -0
  353. package/dist/service/firehose/stream/sim-firehose-delivery-stream.factory.js.map +1 -0
  354. package/dist/service/firehose/stream/sim-firehose-delivery-stream.js +42 -0
  355. package/dist/service/firehose/stream/sim-firehose-delivery-stream.js.map +1 -0
  356. package/dist/service/stepfunctions/choice/sim-states-choice-group-test.d.ts +32 -0
  357. package/dist/service/stepfunctions/choice/sim-states-choice-group-test.d.ts.map +1 -0
  358. package/dist/service/stepfunctions/choice/sim-states-choice-group-test.js +42 -0
  359. package/dist/service/stepfunctions/choice/sim-states-choice-group-test.js.map +1 -0
  360. package/dist/service/stepfunctions/choice/sim-states-choice-operand.d.ts +29 -0
  361. package/dist/service/stepfunctions/choice/sim-states-choice-operand.d.ts.map +1 -0
  362. package/dist/service/stepfunctions/choice/sim-states-choice-operand.js +38 -0
  363. package/dist/service/stepfunctions/choice/sim-states-choice-operand.js.map +1 -0
  364. package/dist/service/stepfunctions/choice/sim-states-choice-parse.d.ts +15 -0
  365. package/dist/service/stepfunctions/choice/sim-states-choice-parse.d.ts.map +1 -0
  366. package/dist/service/stepfunctions/choice/sim-states-choice-parse.js +44 -0
  367. package/dist/service/stepfunctions/choice/sim-states-choice-parse.js.map +1 -0
  368. package/dist/service/stepfunctions/choice/sim-states-choice-rule-record.d.ts +10 -0
  369. package/dist/service/stepfunctions/choice/sim-states-choice-rule-record.d.ts.map +1 -0
  370. package/dist/service/stepfunctions/choice/sim-states-choice-rule-record.js +31 -0
  371. package/dist/service/stepfunctions/choice/sim-states-choice-rule-record.js.map +1 -0
  372. package/dist/service/stepfunctions/choice/sim-states-choice-rule.d.ts +15 -0
  373. package/dist/service/stepfunctions/choice/sim-states-choice-rule.d.ts.map +1 -0
  374. package/dist/service/stepfunctions/choice/sim-states-choice-rule.js +18 -0
  375. package/dist/service/stepfunctions/choice/sim-states-choice-rule.js.map +1 -0
  376. package/dist/service/stepfunctions/choice/sim-states-choice-test-parse.d.ts +7 -0
  377. package/dist/service/stepfunctions/choice/sim-states-choice-test-parse.d.ts.map +1 -0
  378. package/dist/service/stepfunctions/choice/sim-states-choice-test-parse.js +72 -0
  379. package/dist/service/stepfunctions/choice/sim-states-choice-test-parse.js.map +1 -0
  380. package/dist/service/stepfunctions/choice/sim-states-choice-test.d.ts +33 -0
  381. package/dist/service/stepfunctions/choice/sim-states-choice-test.d.ts.map +1 -0
  382. package/dist/service/stepfunctions/choice/sim-states-choice-test.js +34 -0
  383. package/dist/service/stepfunctions/choice/sim-states-choice-test.js.map +1 -0
  384. package/dist/service/stepfunctions/choice/sim-states-comparison-families.d.ts +26 -0
  385. package/dist/service/stepfunctions/choice/sim-states-comparison-families.d.ts.map +1 -0
  386. package/dist/service/stepfunctions/choice/sim-states-comparison-families.js +65 -0
  387. package/dist/service/stepfunctions/choice/sim-states-comparison-families.js.map +1 -0
  388. package/dist/service/stepfunctions/choice/sim-states-comparison-parse.d.ts +15 -0
  389. package/dist/service/stepfunctions/choice/sim-states-comparison-parse.d.ts.map +1 -0
  390. package/dist/service/stepfunctions/choice/sim-states-comparison-parse.js +43 -0
  391. package/dist/service/stepfunctions/choice/sim-states-comparison-parse.js.map +1 -0
  392. package/dist/service/stepfunctions/choice/sim-states-comparison.d.ts +49 -0
  393. package/dist/service/stepfunctions/choice/sim-states-comparison.d.ts.map +1 -0
  394. package/dist/service/stepfunctions/choice/sim-states-comparison.js +51 -0
  395. package/dist/service/stepfunctions/choice/sim-states-comparison.js.map +1 -0
  396. package/dist/service/stepfunctions/choice/sim-states-comparisons.d.ts +6 -0
  397. package/dist/service/stepfunctions/choice/sim-states-comparisons.d.ts.map +1 -0
  398. package/dist/service/stepfunctions/choice/sim-states-comparisons.js +64 -0
  399. package/dist/service/stepfunctions/choice/sim-states-comparisons.js.map +1 -0
  400. package/dist/service/stepfunctions/choice/sim-states-glob.d.ts +14 -0
  401. package/dist/service/stepfunctions/choice/sim-states-glob.d.ts.map +1 -0
  402. package/dist/service/stepfunctions/choice/sim-states-glob.js +73 -0
  403. package/dist/service/stepfunctions/choice/sim-states-glob.js.map +1 -0
  404. package/dist/service/stepfunctions/command/execution/execution.command.d.ts +32 -0
  405. package/dist/service/stepfunctions/command/execution/execution.command.d.ts.map +1 -0
  406. package/dist/service/stepfunctions/command/execution/execution.command.js +2 -0
  407. package/dist/service/stepfunctions/command/execution/execution.command.js.map +1 -0
  408. package/dist/service/stepfunctions/command/execution/sim-states-execution-describe.d.ts +11 -0
  409. package/dist/service/stepfunctions/command/execution/sim-states-execution-describe.d.ts.map +1 -0
  410. package/dist/service/stepfunctions/command/execution/sim-states-execution-describe.js +23 -0
  411. package/dist/service/stepfunctions/command/execution/sim-states-execution-describe.js.map +1 -0
  412. package/dist/service/stepfunctions/command/execution/sim-states-execution-name.d.ts +12 -0
  413. package/dist/service/stepfunctions/command/execution/sim-states-execution-name.d.ts.map +1 -0
  414. package/dist/service/stepfunctions/command/execution/sim-states-execution-name.js +23 -0
  415. package/dist/service/stepfunctions/command/execution/sim-states-execution-name.js.map +1 -0
  416. package/dist/service/stepfunctions/command/execution/sim-states-execution-repeat.d.ts +12 -0
  417. package/dist/service/stepfunctions/command/execution/sim-states-execution-repeat.d.ts.map +1 -0
  418. package/dist/service/stepfunctions/command/execution/sim-states-execution-repeat.js +21 -0
  419. package/dist/service/stepfunctions/command/execution/sim-states-execution-repeat.js.map +1 -0
  420. package/dist/service/stepfunctions/command/execution/sim-states-execution-start.d.ts +36 -0
  421. package/dist/service/stepfunctions/command/execution/sim-states-execution-start.d.ts.map +1 -0
  422. package/dist/service/stepfunctions/command/execution/sim-states-execution-start.js +64 -0
  423. package/dist/service/stepfunctions/command/execution/sim-states-execution-start.js.map +1 -0
  424. package/dist/service/stepfunctions/command/execution/sim-states-execution-view.d.ts +18 -0
  425. package/dist/service/stepfunctions/command/execution/sim-states-execution-view.d.ts.map +1 -0
  426. package/dist/service/stepfunctions/command/execution/sim-states-execution-view.js +41 -0
  427. package/dist/service/stepfunctions/command/execution/sim-states-execution-view.js.map +1 -0
  428. package/dist/service/stepfunctions/command/machine/machine.command.d.ts +63 -0
  429. package/dist/service/stepfunctions/command/machine/machine.command.d.ts.map +1 -0
  430. package/dist/service/stepfunctions/command/machine/machine.command.js +2 -0
  431. package/dist/service/stepfunctions/command/machine/machine.command.js.map +1 -0
  432. package/dist/service/stepfunctions/command/machine/sim-state-machine-create.d.ts +30 -0
  433. package/dist/service/stepfunctions/command/machine/sim-state-machine-create.d.ts.map +1 -0
  434. package/dist/service/stepfunctions/command/machine/sim-state-machine-create.js +64 -0
  435. package/dist/service/stepfunctions/command/machine/sim-state-machine-create.js.map +1 -0
  436. package/dist/service/stepfunctions/command/machine/sim-state-machine-input.d.ts +22 -0
  437. package/dist/service/stepfunctions/command/machine/sim-state-machine-input.d.ts.map +1 -0
  438. package/dist/service/stepfunctions/command/machine/sim-state-machine-input.js +38 -0
  439. package/dist/service/stepfunctions/command/machine/sim-state-machine-input.js.map +1 -0
  440. package/dist/service/stepfunctions/command/machine/sim-state-machine-lookup.d.ts +7 -0
  441. package/dist/service/stepfunctions/command/machine/sim-state-machine-lookup.d.ts.map +1 -0
  442. package/dist/service/stepfunctions/command/machine/sim-state-machine-lookup.js +15 -0
  443. package/dist/service/stepfunctions/command/machine/sim-state-machine-lookup.js.map +1 -0
  444. package/dist/service/stepfunctions/command/machine/sim-state-machine-reads.d.ts +18 -0
  445. package/dist/service/stepfunctions/command/machine/sim-state-machine-reads.d.ts.map +1 -0
  446. package/dist/service/stepfunctions/command/machine/sim-state-machine-reads.js +49 -0
  447. package/dist/service/stepfunctions/command/machine/sim-state-machine-reads.js.map +1 -0
  448. package/dist/service/stepfunctions/command/machine/sim-state-machine-writes.d.ts +26 -0
  449. package/dist/service/stepfunctions/command/machine/sim-state-machine-writes.d.ts.map +1 -0
  450. package/dist/service/stepfunctions/command/machine/sim-state-machine-writes.js +44 -0
  451. package/dist/service/stepfunctions/command/machine/sim-state-machine-writes.js.map +1 -0
  452. package/dist/service/stepfunctions/command/sim-step-functions-command.types.d.ts +6 -0
  453. package/dist/service/stepfunctions/command/sim-step-functions-command.types.d.ts.map +1 -0
  454. package/dist/service/stepfunctions/command/sim-step-functions-command.types.js +2 -0
  455. package/dist/service/stepfunctions/command/sim-step-functions-command.types.js.map +1 -0
  456. package/dist/service/stepfunctions/command/sim-step-functions-request-options.d.ts +12 -0
  457. package/dist/service/stepfunctions/command/sim-step-functions-request-options.d.ts.map +1 -0
  458. package/dist/service/stepfunctions/command/sim-step-functions-request-options.js +2 -0
  459. package/dist/service/stepfunctions/command/sim-step-functions-request-options.js.map +1 -0
  460. package/dist/service/stepfunctions/data/sim-states-result-path.js +1 -1
  461. package/dist/service/stepfunctions/data/sim-states-result-path.js.map +1 -1
  462. package/dist/service/stepfunctions/data/sim-states-timestamp-fields.d.ts +10 -0
  463. package/dist/service/stepfunctions/data/sim-states-timestamp-fields.d.ts.map +1 -0
  464. package/dist/service/stepfunctions/data/sim-states-timestamp-fields.js +45 -0
  465. package/dist/service/stepfunctions/data/sim-states-timestamp-fields.js.map +1 -0
  466. package/dist/service/stepfunctions/data/sim-states-timestamp.d.ts +10 -0
  467. package/dist/service/stepfunctions/data/sim-states-timestamp.d.ts.map +1 -0
  468. package/dist/service/stepfunctions/data/sim-states-timestamp.js +26 -0
  469. package/dist/service/stepfunctions/data/sim-states-timestamp.js.map +1 -0
  470. package/dist/service/stepfunctions/definition/sim-states-definition-parse.d.ts +10 -0
  471. package/dist/service/stepfunctions/definition/sim-states-definition-parse.d.ts.map +1 -0
  472. package/dist/service/stepfunctions/definition/sim-states-definition-parse.js +61 -0
  473. package/dist/service/stepfunctions/definition/sim-states-definition-parse.js.map +1 -0
  474. package/dist/service/stepfunctions/definition/sim-states-definition.d.ts +15 -0
  475. package/dist/service/stepfunctions/definition/sim-states-definition.d.ts.map +1 -0
  476. package/dist/service/stepfunctions/definition/sim-states-definition.js +2 -0
  477. package/dist/service/stepfunctions/definition/sim-states-definition.js.map +1 -0
  478. package/dist/service/stepfunctions/definition/sim-states-state-fields.d.ts +17 -0
  479. package/dist/service/stepfunctions/definition/sim-states-state-fields.d.ts.map +1 -0
  480. package/dist/service/stepfunctions/definition/sim-states-state-fields.js +47 -0
  481. package/dist/service/stepfunctions/definition/sim-states-state-fields.js.map +1 -0
  482. package/dist/service/stepfunctions/definition/sim-states-state-parse.d.ts +7 -0
  483. package/dist/service/stepfunctions/definition/sim-states-state-parse.d.ts.map +1 -0
  484. package/dist/service/stepfunctions/definition/sim-states-state-parse.js +67 -0
  485. package/dist/service/stepfunctions/definition/sim-states-state-parse.js.map +1 -0
  486. package/dist/service/stepfunctions/definition/sim-states-state.d.ts +98 -0
  487. package/dist/service/stepfunctions/definition/sim-states-state.d.ts.map +1 -0
  488. package/dist/service/stepfunctions/definition/sim-states-state.js +34 -0
  489. package/dist/service/stepfunctions/definition/sim-states-state.js.map +1 -0
  490. package/dist/service/stepfunctions/definition/sim-states-transitions.d.ts +10 -0
  491. package/dist/service/stepfunctions/definition/sim-states-transitions.d.ts.map +1 -0
  492. package/dist/service/stepfunctions/definition/sim-states-transitions.js +79 -0
  493. package/dist/service/stepfunctions/definition/sim-states-transitions.js.map +1 -0
  494. package/dist/service/stepfunctions/error/sim-step-functions.error.d.ts +99 -0
  495. package/dist/service/stepfunctions/error/sim-step-functions.error.d.ts.map +1 -1
  496. package/dist/service/stepfunctions/error/sim-step-functions.error.js +119 -0
  497. package/dist/service/stepfunctions/error/sim-step-functions.error.js.map +1 -1
  498. package/dist/service/stepfunctions/execution/sim-states-execution-store.d.ts +33 -0
  499. package/dist/service/stepfunctions/execution/sim-states-execution-store.d.ts.map +1 -0
  500. package/dist/service/stepfunctions/execution/sim-states-execution-store.js +55 -0
  501. package/dist/service/stepfunctions/execution/sim-states-execution-store.js.map +1 -0
  502. package/dist/service/stepfunctions/execution/sim-states-execution.d.ts +53 -0
  503. package/dist/service/stepfunctions/execution/sim-states-execution.d.ts.map +1 -0
  504. package/dist/service/stepfunctions/execution/sim-states-execution.js +77 -0
  505. package/dist/service/stepfunctions/execution/sim-states-execution.js.map +1 -0
  506. package/dist/service/stepfunctions/execution/sim-states-failure.d.ts +24 -0
  507. package/dist/service/stepfunctions/execution/sim-states-failure.d.ts.map +1 -0
  508. package/dist/service/stepfunctions/execution/sim-states-failure.js +50 -0
  509. package/dist/service/stepfunctions/execution/sim-states-failure.js.map +1 -0
  510. package/dist/service/stepfunctions/execution/sim-states-interpreter.d.ts +42 -0
  511. package/dist/service/stepfunctions/execution/sim-states-interpreter.d.ts.map +1 -0
  512. package/dist/service/stepfunctions/execution/sim-states-interpreter.js +124 -0
  513. package/dist/service/stepfunctions/execution/sim-states-interpreter.js.map +1 -0
  514. package/dist/service/stepfunctions/execution/sim-states-run-choice.d.ts +12 -0
  515. package/dist/service/stepfunctions/execution/sim-states-run-choice.d.ts.map +1 -0
  516. package/dist/service/stepfunctions/execution/sim-states-run-choice.js +24 -0
  517. package/dist/service/stepfunctions/execution/sim-states-run-choice.js.map +1 -0
  518. package/dist/service/stepfunctions/execution/sim-states-run-state.d.ts +15 -0
  519. package/dist/service/stepfunctions/execution/sim-states-run-state.d.ts.map +1 -0
  520. package/dist/service/stepfunctions/execution/sim-states-run-state.js +68 -0
  521. package/dist/service/stepfunctions/execution/sim-states-run-state.js.map +1 -0
  522. package/dist/service/stepfunctions/execution/sim-states-run-task.d.ts +14 -0
  523. package/dist/service/stepfunctions/execution/sim-states-run-task.d.ts.map +1 -0
  524. package/dist/service/stepfunctions/execution/sim-states-run-task.js +23 -0
  525. package/dist/service/stepfunctions/execution/sim-states-run-task.js.map +1 -0
  526. package/dist/service/stepfunctions/execution/sim-states-run-wait.d.ts +11 -0
  527. package/dist/service/stepfunctions/execution/sim-states-run-wait.d.ts.map +1 -0
  528. package/dist/service/stepfunctions/execution/sim-states-run-wait.js +21 -0
  529. package/dist/service/stepfunctions/execution/sim-states-run-wait.js.map +1 -0
  530. package/dist/service/stepfunctions/execution/sim-states-settlement.d.ts +27 -0
  531. package/dist/service/stepfunctions/execution/sim-states-settlement.d.ts.map +1 -0
  532. package/dist/service/stepfunctions/execution/sim-states-settlement.js +33 -0
  533. package/dist/service/stepfunctions/execution/sim-states-settlement.js.map +1 -0
  534. package/dist/service/stepfunctions/execution/sim-states-state-outcome.d.ts +46 -0
  535. package/dist/service/stepfunctions/execution/sim-states-state-outcome.d.ts.map +1 -0
  536. package/dist/service/stepfunctions/execution/sim-states-state-outcome.js +2 -0
  537. package/dist/service/stepfunctions/execution/sim-states-state-outcome.js.map +1 -0
  538. package/dist/service/stepfunctions/execution/sim-states-state-runner.d.ts +27 -0
  539. package/dist/service/stepfunctions/execution/sim-states-state-runner.d.ts.map +1 -0
  540. package/dist/service/stepfunctions/execution/sim-states-state-runner.js +36 -0
  541. package/dist/service/stepfunctions/execution/sim-states-state-runner.js.map +1 -0
  542. package/dist/service/stepfunctions/index.d.ts +16 -0
  543. package/dist/service/stepfunctions/index.d.ts.map +1 -0
  544. package/dist/service/stepfunctions/index.js +9 -0
  545. package/dist/service/stepfunctions/index.js.map +1 -0
  546. package/dist/service/stepfunctions/machine/sim-state-machine-arn.d.ts +30 -0
  547. package/dist/service/stepfunctions/machine/sim-state-machine-arn.d.ts.map +1 -0
  548. package/dist/service/stepfunctions/machine/sim-state-machine-arn.js +48 -0
  549. package/dist/service/stepfunctions/machine/sim-state-machine-arn.js.map +1 -0
  550. package/dist/service/stepfunctions/machine/sim-state-machine-store.d.ts +20 -0
  551. package/dist/service/stepfunctions/machine/sim-state-machine-store.d.ts.map +1 -0
  552. package/dist/service/stepfunctions/machine/sim-state-machine-store.js +32 -0
  553. package/dist/service/stepfunctions/machine/sim-state-machine-store.js.map +1 -0
  554. package/dist/service/stepfunctions/machine/sim-state-machine.d.ts +54 -0
  555. package/dist/service/stepfunctions/machine/sim-state-machine.d.ts.map +1 -0
  556. package/dist/service/stepfunctions/machine/sim-state-machine.js +60 -0
  557. package/dist/service/stepfunctions/machine/sim-state-machine.js.map +1 -0
  558. package/dist/service/stepfunctions/machine/sim-states-name.d.ts +10 -0
  559. package/dist/service/stepfunctions/machine/sim-states-name.d.ts.map +1 -0
  560. package/dist/service/stepfunctions/machine/sim-states-name.js +42 -0
  561. package/dist/service/stepfunctions/machine/sim-states-name.js.map +1 -0
  562. package/dist/service/stepfunctions/sdk/sim-step-functions-sdk-command-router.d.ts +19 -0
  563. package/dist/service/stepfunctions/sdk/sim-step-functions-sdk-command-router.d.ts.map +1 -0
  564. package/dist/service/stepfunctions/sdk/sim-step-functions-sdk-command-router.js +53 -0
  565. package/dist/service/stepfunctions/sdk/sim-step-functions-sdk-command-router.js.map +1 -0
  566. package/dist/service/stepfunctions/sim-step-functions-inspection.d.ts +22 -0
  567. package/dist/service/stepfunctions/sim-step-functions-inspection.d.ts.map +1 -0
  568. package/dist/service/stepfunctions/sim-step-functions-inspection.js +29 -0
  569. package/dist/service/stepfunctions/sim-step-functions-inspection.js.map +1 -0
  570. package/dist/service/stepfunctions/sim-step-functions.d.ts +67 -0
  571. package/dist/service/stepfunctions/sim-step-functions.d.ts.map +1 -0
  572. package/dist/service/stepfunctions/sim-step-functions.js +124 -0
  573. package/dist/service/stepfunctions/sim-step-functions.js.map +1 -0
  574. package/dist/service/stepfunctions/task/sim-aws-states-task-targets.d.ts +33 -0
  575. package/dist/service/stepfunctions/task/sim-aws-states-task-targets.d.ts.map +1 -0
  576. package/dist/service/stepfunctions/task/sim-aws-states-task-targets.js +49 -0
  577. package/dist/service/stepfunctions/task/sim-aws-states-task-targets.js.map +1 -0
  578. package/dist/service/stepfunctions/task/sim-states-execution-role.d.ts +25 -0
  579. package/dist/service/stepfunctions/task/sim-states-execution-role.d.ts.map +1 -0
  580. package/dist/service/stepfunctions/task/sim-states-execution-role.js +57 -0
  581. package/dist/service/stepfunctions/task/sim-states-execution-role.js.map +1 -0
  582. package/dist/service/stepfunctions/task/sim-states-function-arn-target.d.ts +31 -0
  583. package/dist/service/stepfunctions/task/sim-states-function-arn-target.d.ts.map +1 -0
  584. package/dist/service/stepfunctions/task/sim-states-function-arn-target.js +39 -0
  585. package/dist/service/stepfunctions/task/sim-states-function-arn-target.js.map +1 -0
  586. package/dist/service/stepfunctions/task/sim-states-function-location.d.ts +20 -0
  587. package/dist/service/stepfunctions/task/sim-states-function-location.d.ts.map +1 -0
  588. package/dist/service/stepfunctions/task/sim-states-function-location.js +28 -0
  589. package/dist/service/stepfunctions/task/sim-states-function-location.js.map +1 -0
  590. package/dist/service/stepfunctions/task/sim-states-lambda-invoke-target.d.ts +34 -0
  591. package/dist/service/stepfunctions/task/sim-states-lambda-invoke-target.d.ts.map +1 -0
  592. package/dist/service/stepfunctions/task/sim-states-lambda-invoke-target.js +65 -0
  593. package/dist/service/stepfunctions/task/sim-states-lambda-invoke-target.js.map +1 -0
  594. package/dist/service/stepfunctions/task/sim-states-no-task-targets.d.ts +16 -0
  595. package/dist/service/stepfunctions/task/sim-states-no-task-targets.d.ts.map +1 -0
  596. package/dist/service/stepfunctions/task/sim-states-no-task-targets.js +19 -0
  597. package/dist/service/stepfunctions/task/sim-states-no-task-targets.js.map +1 -0
  598. package/dist/service/stepfunctions/task/sim-states-task-fields.d.ts +14 -0
  599. package/dist/service/stepfunctions/task/sim-states-task-fields.d.ts.map +1 -0
  600. package/dist/service/stepfunctions/task/sim-states-task-fields.js +29 -0
  601. package/dist/service/stepfunctions/task/sim-states-task-fields.js.map +1 -0
  602. package/dist/service/stepfunctions/task/sim-states-task-function.d.ts +57 -0
  603. package/dist/service/stepfunctions/task/sim-states-task-function.d.ts.map +1 -0
  604. package/dist/service/stepfunctions/task/sim-states-task-function.js +93 -0
  605. package/dist/service/stepfunctions/task/sim-states-task-function.js.map +1 -0
  606. package/dist/service/stepfunctions/task/sim-states-task-invocation.d.ts +29 -0
  607. package/dist/service/stepfunctions/task/sim-states-task-invocation.d.ts.map +1 -0
  608. package/dist/service/stepfunctions/task/sim-states-task-invocation.js +2 -0
  609. package/dist/service/stepfunctions/task/sim-states-task-invocation.js.map +1 -0
  610. package/dist/service/stepfunctions/task/sim-states-task-resource.d.ts +12 -0
  611. package/dist/service/stepfunctions/task/sim-states-task-resource.d.ts.map +1 -0
  612. package/dist/service/stepfunctions/task/sim-states-task-resource.js +64 -0
  613. package/dist/service/stepfunctions/task/sim-states-task-resource.js.map +1 -0
  614. package/dist/service/stepfunctions/task/sim-states-task-target.d.ts +37 -0
  615. package/dist/service/stepfunctions/task/sim-states-task-target.d.ts.map +1 -0
  616. package/dist/service/stepfunctions/task/sim-states-task-target.js +12 -0
  617. package/dist/service/stepfunctions/task/sim-states-task-target.js.map +1 -0
  618. package/dist/service/stepfunctions/wait/sim-states-wait-due.d.ts +11 -0
  619. package/dist/service/stepfunctions/wait/sim-states-wait-due.d.ts.map +1 -0
  620. package/dist/service/stepfunctions/wait/sim-states-wait-due.js +67 -0
  621. package/dist/service/stepfunctions/wait/sim-states-wait-due.js.map +1 -0
  622. package/dist/service/stepfunctions/wait/sim-states-wait-fields.d.ts +18 -0
  623. package/dist/service/stepfunctions/wait/sim-states-wait-fields.d.ts.map +1 -0
  624. package/dist/service/stepfunctions/wait/sim-states-wait-fields.js +85 -0
  625. package/dist/service/stepfunctions/wait/sim-states-wait-fields.js.map +1 -0
  626. package/package.json +11 -1
@@ -0,0 +1,55 @@
1
+ /**
2
+ * The executions one simulated Step Functions holds, by ARN.
3
+ *
4
+ * Executions are kept after they end. `DescribeExecution` answers for a
5
+ * finished one, and real Step Functions keeps a standard execution's history
6
+ * for 90 days.
7
+ */
8
+ export class SimStatesExecutionStore {
9
+ #byArn = new Map();
10
+ add(execution) {
11
+ this.#byArn.set(execution.arn, execution);
12
+ }
13
+ find(arn) {
14
+ return this.#byArn.get(arn);
15
+ }
16
+ /**
17
+ * Every execution of one state machine, most recently started first.
18
+ */
19
+ forStateMachine(stateMachineArn) {
20
+ return this.#byArn
21
+ .values()
22
+ .filter((execution) => execution.stateMachineArn === stateMachineArn)
23
+ .toArray()
24
+ .toReversed();
25
+ }
26
+ /**
27
+ * One state machine's execution of a name, where it has one.
28
+ *
29
+ * Real Step Functions keeps a name taken for 90 days after the execution
30
+ * closes, which is what makes a name usable for idempotency.
31
+ */
32
+ findByName(stateMachineArn, name) {
33
+ return this.#byArn
34
+ .values()
35
+ .find((execution) => execution.stateMachineArn === stateMachineArn &&
36
+ execution.name === name);
37
+ }
38
+ /**
39
+ * Whether one state machine already has an execution of this name.
40
+ */
41
+ hasName(stateMachineArn, name) {
42
+ return this.findByName(stateMachineArn, name) !== undefined;
43
+ }
44
+ /**
45
+ * Forget every execution of one state machine.
46
+ */
47
+ removeForStateMachine(stateMachineArn) {
48
+ for (const [arn, execution] of this.#byArn) {
49
+ if (execution.stateMachineArn === stateMachineArn) {
50
+ this.#byArn.delete(arn);
51
+ }
52
+ }
53
+ }
54
+ }
55
+ //# sourceMappingURL=sim-states-execution-store.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"sim-states-execution-store.js","sourceRoot":"","sources":["../../../../src/service/stepfunctions/execution/sim-states-execution-store.ts"],"names":[],"mappings":"AAEA;;;;;;GAMG;AACH,MAAM,OAAO,uBAAuB;IACzB,MAAM,GAAG,IAAI,GAAG,EAA8B,CAAC;IAExD,GAAG,CAAC,SAA6B;QAC/B,IAAI,CAAC,MAAM,CAAC,GAAG,CAAC,SAAS,CAAC,GAAG,EAAE,SAAS,CAAC,CAAC;IAC5C,CAAC;IAED,IAAI,CAAC,GAAW;QACd,OAAO,IAAI,CAAC,MAAM,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC;IAC9B,CAAC;IAED;;OAEG;IACH,eAAe,CAAC,eAAuB;QACrC,OAAO,IAAI,CAAC,MAAM;aACf,MAAM,EAAE;aACR,MAAM,CAAC,CAAC,SAAS,EAAE,EAAE,CAAC,SAAS,CAAC,eAAe,KAAK,eAAe,CAAC;aACpE,OAAO,EAAE;aACT,UAAU,EAAE,CAAC;IAClB,CAAC;IAED;;;;;OAKG;IACH,UAAU,CACR,eAAuB,EACvB,IAAY;QAEZ,OAAO,IAAI,CAAC,MAAM;aACf,MAAM,EAAE;aACR,IAAI,CACH,CAAC,SAAS,EAAE,EAAE,CACZ,SAAS,CAAC,eAAe,KAAK,eAAe;YAC7C,SAAS,CAAC,IAAI,KAAK,IAAI,CAC1B,CAAC;IACN,CAAC;IAED;;OAEG;IACH,OAAO,CAAC,eAAuB,EAAE,IAAY;QAC3C,OAAO,IAAI,CAAC,UAAU,CAAC,eAAe,EAAE,IAAI,CAAC,KAAK,SAAS,CAAC;IAC9D,CAAC;IAED;;OAEG;IACH,qBAAqB,CAAC,eAAuB;QAC3C,KAAK,MAAM,CAAC,GAAG,EAAE,SAAS,CAAC,IAAI,IAAI,CAAC,MAAM,EAAE,CAAC;YAC3C,IAAI,SAAS,CAAC,eAAe,KAAK,eAAe,EAAE,CAAC;gBAClD,IAAI,CAAC,MAAM,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC;YAC1B,CAAC;QACH,CAAC;IACH,CAAC;CACF"}
@@ -0,0 +1,53 @@
1
+ import type { JSONValue } from "../../../util/type-guard/json.js";
2
+ export type SimStatesExecutionStatus = "RUNNING" | "SUCCEEDED" | "FAILED" | "TIMED_OUT" | "ABORTED";
3
+ interface SimStatesExecutionProperties {
4
+ readonly arn: string;
5
+ readonly name: string;
6
+ readonly stateMachineArn: string;
7
+ readonly input: JSONValue;
8
+ readonly startDate: Date;
9
+ }
10
+ /**
11
+ * One run of a state machine.
12
+ *
13
+ * An execution holds what it has done as well as where it got to, because the
14
+ * states it visited are what a test asserts on. Real Step Functions keeps the
15
+ * same record and answers it through `GetExecutionHistory`.
16
+ */
17
+ export declare class SimStatesExecution {
18
+ #private;
19
+ readonly arn: string;
20
+ readonly name: string;
21
+ readonly stateMachineArn: string;
22
+ readonly input: JSONValue;
23
+ readonly startDate: Date;
24
+ constructor(properties: SimStatesExecutionProperties);
25
+ get status(): SimStatesExecutionStatus;
26
+ get output(): JSONValue | undefined;
27
+ get error(): string | undefined;
28
+ get cause(): string | undefined;
29
+ get stopDate(): Date | undefined;
30
+ /**
31
+ * The states this execution has entered, in the order it entered them.
32
+ */
33
+ get visitedStates(): readonly string[];
34
+ /**
35
+ * Record that the execution has entered a state.
36
+ */
37
+ enter(stateName: string): void;
38
+ /**
39
+ * End the execution with the value its last state produced.
40
+ */
41
+ succeed(output: JSONValue, at: Date): void;
42
+ /**
43
+ * End the execution with the error that stopped it.
44
+ *
45
+ * Nothing is thrown from here. An execution failing is as often the thing a
46
+ * test is asserting on as it is a fault, and advancing the clock past a
47
+ * failure elsewhere in the same test would otherwise raise from that
48
+ * caller's `advanceBy`.
49
+ */
50
+ fail(error: string, cause: string | undefined, at: Date): void;
51
+ }
52
+ export {};
53
+ //# sourceMappingURL=sim-states-execution.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"sim-states-execution.d.ts","sourceRoot":"","sources":["../../../../src/service/stepfunctions/execution/sim-states-execution.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,kCAAkC,CAAC;AAElE,MAAM,MAAM,wBAAwB,GAChC,SAAS,GACT,WAAW,GACX,QAAQ,GACR,WAAW,GACX,SAAS,CAAC;AAEd,UAAU,4BAA4B;IACpC,QAAQ,CAAC,GAAG,EAAE,MAAM,CAAC;IACrB,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IACtB,QAAQ,CAAC,eAAe,EAAE,MAAM,CAAC;IACjC,QAAQ,CAAC,KAAK,EAAE,SAAS,CAAC;IAC1B,QAAQ,CAAC,SAAS,EAAE,IAAI,CAAC;CAC1B;AAED;;;;;;GAMG;AACH,qBAAa,kBAAkB;;IAC7B,QAAQ,CAAC,GAAG,EAAE,MAAM,CAAC;IACrB,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IACtB,QAAQ,CAAC,eAAe,EAAE,MAAM,CAAC;IACjC,QAAQ,CAAC,KAAK,EAAE,SAAS,CAAC;IAC1B,QAAQ,CAAC,SAAS,EAAE,IAAI,CAAC;IASzB,YAAY,UAAU,EAAE,4BAA4B,EAMnD;IAED,IAAI,MAAM,IAAI,wBAAwB,CAErC;IAED,IAAI,MAAM,IAAI,SAAS,GAAG,SAAS,CAElC;IAED,IAAI,KAAK,IAAI,MAAM,GAAG,SAAS,CAE9B;IAED,IAAI,KAAK,IAAI,MAAM,GAAG,SAAS,CAE9B;IAED,IAAI,QAAQ,IAAI,IAAI,GAAG,SAAS,CAE/B;IAED;;OAEG;IACH,IAAI,aAAa,IAAI,SAAS,MAAM,EAAE,CAErC;IAED;;OAEG;IACH,KAAK,CAAC,SAAS,EAAE,MAAM,GAAG,IAAI,CAE7B;IAED;;OAEG;IACH,OAAO,CAAC,MAAM,EAAE,SAAS,EAAE,EAAE,EAAE,IAAI,GAAG,IAAI,CAIzC;IAED;;;;;;;OAOG;IACH,IAAI,CAAC,KAAK,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,GAAG,SAAS,EAAE,EAAE,EAAE,IAAI,GAAG,IAAI,CAK7D;CACF"}
@@ -0,0 +1,77 @@
1
+ /**
2
+ * One run of a state machine.
3
+ *
4
+ * An execution holds what it has done as well as where it got to, because the
5
+ * states it visited are what a test asserts on. Real Step Functions keeps the
6
+ * same record and answers it through `GetExecutionHistory`.
7
+ */
8
+ export class SimStatesExecution {
9
+ arn;
10
+ name;
11
+ stateMachineArn;
12
+ input;
13
+ startDate;
14
+ #status = "RUNNING";
15
+ #output;
16
+ #error;
17
+ #cause;
18
+ #stopDate;
19
+ #visited = [];
20
+ constructor(properties) {
21
+ this.arn = properties.arn;
22
+ this.name = properties.name;
23
+ this.stateMachineArn = properties.stateMachineArn;
24
+ this.input = properties.input;
25
+ this.startDate = properties.startDate;
26
+ }
27
+ get status() {
28
+ return this.#status;
29
+ }
30
+ get output() {
31
+ return this.#output;
32
+ }
33
+ get error() {
34
+ return this.#error;
35
+ }
36
+ get cause() {
37
+ return this.#cause;
38
+ }
39
+ get stopDate() {
40
+ return this.#stopDate;
41
+ }
42
+ /**
43
+ * The states this execution has entered, in the order it entered them.
44
+ */
45
+ get visitedStates() {
46
+ return [...this.#visited];
47
+ }
48
+ /**
49
+ * Record that the execution has entered a state.
50
+ */
51
+ enter(stateName) {
52
+ this.#visited.push(stateName);
53
+ }
54
+ /**
55
+ * End the execution with the value its last state produced.
56
+ */
57
+ succeed(output, at) {
58
+ this.#status = "SUCCEEDED";
59
+ this.#output = output;
60
+ this.#stopDate = at;
61
+ }
62
+ /**
63
+ * End the execution with the error that stopped it.
64
+ *
65
+ * Nothing is thrown from here. An execution failing is as often the thing a
66
+ * test is asserting on as it is a fault, and advancing the clock past a
67
+ * failure elsewhere in the same test would otherwise raise from that
68
+ * caller's `advanceBy`.
69
+ */
70
+ fail(error, cause, at) {
71
+ this.#status = "FAILED";
72
+ this.#error = error;
73
+ this.#cause = cause;
74
+ this.#stopDate = at;
75
+ }
76
+ }
77
+ //# sourceMappingURL=sim-states-execution.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"sim-states-execution.js","sourceRoot":"","sources":["../../../../src/service/stepfunctions/execution/sim-states-execution.ts"],"names":[],"mappings":"AAiBA;;;;;;GAMG;AACH,MAAM,OAAO,kBAAkB;IACpB,GAAG,CAAS;IACZ,IAAI,CAAS;IACb,eAAe,CAAS;IACxB,KAAK,CAAY;IACjB,SAAS,CAAO;IAEzB,OAAO,GAA6B,SAAS,CAAC;IAC9C,OAAO,CAAwB;IAC/B,MAAM,CAAqB;IAC3B,MAAM,CAAqB;IAC3B,SAAS,CAAmB;IACnB,QAAQ,GAAa,EAAE,CAAC;IAEjC,YAAY,UAAwC;QAClD,IAAI,CAAC,GAAG,GAAG,UAAU,CAAC,GAAG,CAAC;QAC1B,IAAI,CAAC,IAAI,GAAG,UAAU,CAAC,IAAI,CAAC;QAC5B,IAAI,CAAC,eAAe,GAAG,UAAU,CAAC,eAAe,CAAC;QAClD,IAAI,CAAC,KAAK,GAAG,UAAU,CAAC,KAAK,CAAC;QAC9B,IAAI,CAAC,SAAS,GAAG,UAAU,CAAC,SAAS,CAAC;IACxC,CAAC;IAED,IAAI,MAAM;QACR,OAAO,IAAI,CAAC,OAAO,CAAC;IACtB,CAAC;IAED,IAAI,MAAM;QACR,OAAO,IAAI,CAAC,OAAO,CAAC;IACtB,CAAC;IAED,IAAI,KAAK;QACP,OAAO,IAAI,CAAC,MAAM,CAAC;IACrB,CAAC;IAED,IAAI,KAAK;QACP,OAAO,IAAI,CAAC,MAAM,CAAC;IACrB,CAAC;IAED,IAAI,QAAQ;QACV,OAAO,IAAI,CAAC,SAAS,CAAC;IACxB,CAAC;IAED;;OAEG;IACH,IAAI,aAAa;QACf,OAAO,CAAC,GAAG,IAAI,CAAC,QAAQ,CAAC,CAAC;IAC5B,CAAC;IAED;;OAEG;IACH,KAAK,CAAC,SAAiB;QACrB,IAAI,CAAC,QAAQ,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC;IAChC,CAAC;IAED;;OAEG;IACH,OAAO,CAAC,MAAiB,EAAE,EAAQ;QACjC,IAAI,CAAC,OAAO,GAAG,WAAW,CAAC;QAC3B,IAAI,CAAC,OAAO,GAAG,MAAM,CAAC;QACtB,IAAI,CAAC,SAAS,GAAG,EAAE,CAAC;IACtB,CAAC;IAED;;;;;;;OAOG;IACH,IAAI,CAAC,KAAa,EAAE,KAAyB,EAAE,EAAQ;QACrD,IAAI,CAAC,OAAO,GAAG,QAAQ,CAAC;QACxB,IAAI,CAAC,MAAM,GAAG,KAAK,CAAC;QACpB,IAAI,CAAC,MAAM,GAAG,KAAK,CAAC;QACpB,IAAI,CAAC,SAAS,GAAG,EAAE,CAAC;IACtB,CAAC;CACF"}
@@ -0,0 +1,24 @@
1
+ import type { SimStatesSettledOutcome } from "./sim-states-state-outcome.js";
2
+ /**
3
+ * Read the Amazon States Language error name off whatever was raised.
4
+ */
5
+ export declare function simStatesFailureFrom(error: unknown): SimStatesSettledOutcome;
6
+ /**
7
+ * How many state transitions one execution may make.
8
+ *
9
+ * Amazon States Language allows a cycle, so a definition can be valid and
10
+ * still never reach a terminal state. Real Step Functions stops such an
11
+ * execution when it runs out of execution history events, and this stands in
12
+ * for that limit. Without it the walk never returns and `StartExecution` never
13
+ * answers, which is the one failure a test tool must not have.
14
+ */
15
+ export declare const simStatesMaximumTransitions = 25000;
16
+ /**
17
+ * The failure an execution whose states form a cycle ends with.
18
+ */
19
+ export declare function simStatesCycleFailure(): SimStatesSettledOutcome;
20
+ /**
21
+ * The failure a transition naming no state ends the execution with.
22
+ */
23
+ export declare function simStatesUnknownStateFailure(name: string): SimStatesSettledOutcome;
24
+ //# sourceMappingURL=sim-states-failure.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"sim-states-failure.d.ts","sourceRoot":"","sources":["../../../../src/service/stepfunctions/execution/sim-states-failure.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,+BAA+B,CAAC;AAE7E;;GAEG;AACH,wBAAgB,oBAAoB,CAAC,KAAK,EAAE,OAAO,GAAG,uBAAuB,CAc5E;AAED;;;;;;;;GAQG;AACH,eAAO,MAAM,2BAA2B,QAAS,CAAC;AAElD;;GAEG;AACH,wBAAgB,qBAAqB,IAAI,uBAAuB,CAQ/D;AAED;;GAEG;AACH,wBAAgB,4BAA4B,CAC1C,IAAI,EAAE,MAAM,GACX,uBAAuB,CAMzB"}
@@ -0,0 +1,50 @@
1
+ import { SimStepFunctionsError } from "../error/sim-step-functions.error.js";
2
+ /**
3
+ * Read the Amazon States Language error name off whatever was raised.
4
+ */
5
+ export function simStatesFailureFrom(error) {
6
+ if (error instanceof SimStepFunctionsError) {
7
+ return {
8
+ kind: "fail",
9
+ error: error.statesErrorName,
10
+ cause: error.message,
11
+ };
12
+ }
13
+ return {
14
+ kind: "fail",
15
+ error: "States.Runtime",
16
+ cause: error instanceof Error ? error.message : String(error),
17
+ };
18
+ }
19
+ /**
20
+ * How many state transitions one execution may make.
21
+ *
22
+ * Amazon States Language allows a cycle, so a definition can be valid and
23
+ * still never reach a terminal state. Real Step Functions stops such an
24
+ * execution when it runs out of execution history events, and this stands in
25
+ * for that limit. Without it the walk never returns and `StartExecution` never
26
+ * answers, which is the one failure a test tool must not have.
27
+ */
28
+ export const simStatesMaximumTransitions = 25_000;
29
+ /**
30
+ * The failure an execution whose states form a cycle ends with.
31
+ */
32
+ export function simStatesCycleFailure() {
33
+ return {
34
+ kind: "fail",
35
+ error: "States.Runtime",
36
+ cause: `The execution made ${String(simStatesMaximumTransitions)} ` +
37
+ "transitions without reaching a terminal state. Its states form a cycle.",
38
+ };
39
+ }
40
+ /**
41
+ * The failure a transition naming no state ends the execution with.
42
+ */
43
+ export function simStatesUnknownStateFailure(name) {
44
+ return {
45
+ kind: "fail",
46
+ error: "States.Runtime",
47
+ cause: `The state ${name} is not one of this state machine's states.`,
48
+ };
49
+ }
50
+ //# sourceMappingURL=sim-states-failure.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"sim-states-failure.js","sourceRoot":"","sources":["../../../../src/service/stepfunctions/execution/sim-states-failure.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,qBAAqB,EAAE,MAAM,sCAAsC,CAAC;AAG7E;;GAEG;AACH,MAAM,UAAU,oBAAoB,CAAC,KAAc;IACjD,IAAI,KAAK,YAAY,qBAAqB,EAAE,CAAC;QAC3C,OAAO;YACL,IAAI,EAAE,MAAM;YACZ,KAAK,EAAE,KAAK,CAAC,eAAe;YAC5B,KAAK,EAAE,KAAK,CAAC,OAAO;SACrB,CAAC;IACJ,CAAC;IAED,OAAO;QACL,IAAI,EAAE,MAAM;QACZ,KAAK,EAAE,gBAAgB;QACvB,KAAK,EAAE,KAAK,YAAY,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC,MAAM,CAAC,KAAK,CAAC;KAC9D,CAAC;AACJ,CAAC;AAED;;;;;;;;GAQG;AACH,MAAM,CAAC,MAAM,2BAA2B,GAAG,MAAM,CAAC;AAElD;;GAEG;AACH,MAAM,UAAU,qBAAqB;IACnC,OAAO;QACL,IAAI,EAAE,MAAM;QACZ,KAAK,EAAE,gBAAgB;QACvB,KAAK,EACH,sBAAsB,MAAM,CAAC,2BAA2B,CAAC,GAAG;YAC5D,yEAAyE;KAC5E,CAAC;AACJ,CAAC;AAED;;GAEG;AACH,MAAM,UAAU,4BAA4B,CAC1C,IAAY;IAEZ,OAAO;QACL,IAAI,EAAE,MAAM;QACZ,KAAK,EAAE,gBAAgB;QACvB,KAAK,EAAE,aAAa,IAAI,6CAA6C;KACtE,CAAC;AACJ,CAAC"}
@@ -0,0 +1,42 @@
1
+ import type { BackgroundScheduler } from "../../../util/background/background.js";
2
+ import type { SimStatesDefinition } from "../definition/sim-states-definition.js";
3
+ import type { SimStatesTaskTargets } from "../task/sim-states-task-invocation.js";
4
+ import type { SimStatesExecution } from "./sim-states-execution.js";
5
+ interface SimStatesInterpreterProperties {
6
+ readonly definition: SimStatesDefinition;
7
+ readonly execution: SimStatesExecution;
8
+ readonly background: BackgroundScheduler;
9
+ /**
10
+ * Where a `Task` state does its work.
11
+ */
12
+ readonly tasks: SimStatesTaskTargets;
13
+ /**
14
+ * The state machine's execution role, which a task assumes.
15
+ */
16
+ readonly roleArn: string;
17
+ }
18
+ /**
19
+ * Walks one execution through its state machine.
20
+ *
21
+ * The walk is a loop over a map of states, which is all Amazon States Language
22
+ * asks for. Everything interesting happens either side of a state, in the
23
+ * data-flow fields.
24
+ *
25
+ * A `Wait` state pauses the walk rather than blocking it. The rest of it is
26
+ * scheduled on the simulation's clock, so the execution stays `RUNNING` until
27
+ * something moves simulated time to the instant it is waiting for.
28
+ */
29
+ export declare class SimStatesInterpreter {
30
+ #private;
31
+ constructor(properties: SimStatesInterpreterProperties);
32
+ /**
33
+ * Run the execution as far as it goes without waiting on the clock.
34
+ *
35
+ * A failure ends the execution and is recorded on it. Nothing raises out of
36
+ * here, since this runs where a caller advancing the clock would otherwise
37
+ * see the raise.
38
+ */
39
+ run(): Promise<void>;
40
+ }
41
+ export {};
42
+ //# sourceMappingURL=sim-states-interpreter.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"sim-states-interpreter.d.ts","sourceRoot":"","sources":["../../../../src/service/stepfunctions/execution/sim-states-interpreter.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,wCAAwC,CAAC;AAElF,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,wCAAwC,CAAC;AAElF,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,uCAAuC,CAAC;AAClF,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,2BAA2B,CAAC;AAcpE,UAAU,8BAA8B;IACtC,QAAQ,CAAC,UAAU,EAAE,mBAAmB,CAAC;IACzC,QAAQ,CAAC,SAAS,EAAE,kBAAkB,CAAC;IACvC,QAAQ,CAAC,UAAU,EAAE,mBAAmB,CAAC;IAEzC;;OAEG;IACH,QAAQ,CAAC,KAAK,EAAE,oBAAoB,CAAC;IAErC;;OAEG;IACH,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAC;CAC1B;AAED;;;;;;;;;;GAUG;AACH,qBAAa,oBAAoB;;IAY/B,YAAY,UAAU,EAAE,8BAA8B,EAarD;IAED;;;;;;OAMG;IACG,GAAG,IAAI,OAAO,CAAC,IAAI,CAAC,CAEzB;CAgGF"}
@@ -0,0 +1,124 @@
1
+ import { simStatesCycleFailure, simStatesMaximumTransitions, simStatesUnknownStateFailure, } from "./sim-states-failure.js";
2
+ import { SimStatesSettlement } from "./sim-states-settlement.js";
3
+ import { SimStatesStateRunner } from "./sim-states-state-runner.js";
4
+ /**
5
+ * Walks one execution through its state machine.
6
+ *
7
+ * The walk is a loop over a map of states, which is all Amazon States Language
8
+ * asks for. Everything interesting happens either side of a state, in the
9
+ * data-flow fields.
10
+ *
11
+ * A `Wait` state pauses the walk rather than blocking it. The rest of it is
12
+ * scheduled on the simulation's clock, so the execution stays `RUNNING` until
13
+ * something moves simulated time to the instant it is waiting for.
14
+ */
15
+ export class SimStatesInterpreter {
16
+ #definition;
17
+ #execution;
18
+ #background;
19
+ #runner;
20
+ #settlement;
21
+ /**
22
+ * Transitions made so far, counted across the pauses a `Wait` state makes.
23
+ */
24
+ #taken = 0;
25
+ constructor(properties) {
26
+ this.#definition = properties.definition;
27
+ this.#execution = properties.execution;
28
+ this.#background = properties.background;
29
+ this.#runner = new SimStatesStateRunner({
30
+ background: properties.background,
31
+ tasks: properties.tasks,
32
+ roleArn: properties.roleArn,
33
+ });
34
+ this.#settlement = new SimStatesSettlement({
35
+ execution: properties.execution,
36
+ background: properties.background,
37
+ });
38
+ }
39
+ /**
40
+ * Run the execution as far as it goes without waiting on the clock.
41
+ *
42
+ * A failure ends the execution and is recorded on it. Nothing raises out of
43
+ * here, since this runs where a caller advancing the clock would otherwise
44
+ * see the raise.
45
+ */
46
+ async run() {
47
+ await this.#walk(this.#definition.StartAt, this.#execution.input);
48
+ }
49
+ /**
50
+ * Walk from one state until the execution ends or a `Wait` pauses it.
51
+ */
52
+ async #walk(from, value) {
53
+ let current = from;
54
+ let carried = value;
55
+ for (;;) {
56
+ const state = this.#nextState(current);
57
+ if (state === undefined) {
58
+ return;
59
+ }
60
+ this.#execution.enter(current);
61
+ // One sequencing point per state. The states are a chain, so there is
62
+ // nothing here to run in parallel.
63
+ // oxlint-disable-next-line eslint/no-await-in-loop
64
+ await this.#background.sequence();
65
+ const carrying = this.#resolve(
66
+ // One state at a time, since each one's input is what the state
67
+ // before it produced.
68
+ // oxlint-disable-next-line eslint/no-await-in-loop
69
+ await this.#runner.run(state, carried, current));
70
+ if (carrying === undefined) {
71
+ return;
72
+ }
73
+ carried = carrying.output;
74
+ current = carrying.next;
75
+ }
76
+ }
77
+ /**
78
+ * The state a name stands for, failing the execution where there is none.
79
+ */
80
+ #nextState(current) {
81
+ if (this.#taken++ >= simStatesMaximumTransitions) {
82
+ this.#settlement.settle(simStatesCycleFailure());
83
+ return undefined;
84
+ }
85
+ const state = this.#definition.States.get(current);
86
+ if (state === undefined) {
87
+ this.#settlement.settle(simStatesUnknownStateFailure(current));
88
+ }
89
+ return state;
90
+ }
91
+ /**
92
+ * Settle what a state left to do, or schedule the rest of the walk.
93
+ *
94
+ * Answers with the outcome the walk carries on from, and with nothing where
95
+ * the execution has ended or is waiting on the clock.
96
+ */
97
+ #resolve(outcome) {
98
+ if (outcome.kind === "wait") {
99
+ return this.#wait(outcome.until, outcome.resume);
100
+ }
101
+ return this.#settlement.settle(outcome);
102
+ }
103
+ /**
104
+ * Hold the execution until the clock reaches an instant.
105
+ *
106
+ * An instant already reached holds nothing up, and the walk carries straight
107
+ * on. Anything later is scheduled, and the execution is left `RUNNING` until
108
+ * simulated time gets there. Under a frozen clock that is for as long as the
109
+ * test leaves it.
110
+ */
111
+ #wait(until, resume) {
112
+ if (until.getTime() <= this.#background.now().getTime()) {
113
+ return this.#settlement.settle(resume);
114
+ }
115
+ this.#background.scheduleAt(until, async () => {
116
+ const carrying = this.#settlement.settle(resume);
117
+ if (carrying !== undefined) {
118
+ await this.#walk(carrying.next, carrying.output);
119
+ }
120
+ });
121
+ return undefined;
122
+ }
123
+ }
124
+ //# sourceMappingURL=sim-states-interpreter.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"sim-states-interpreter.js","sourceRoot":"","sources":["../../../../src/service/stepfunctions/execution/sim-states-interpreter.ts"],"names":[],"mappings":"AAMA,OAAO,EACL,qBAAqB,EACrB,2BAA2B,EAC3B,4BAA4B,GAC7B,MAAM,yBAAyB,CAAC;AACjC,OAAO,EAAE,mBAAmB,EAAE,MAAM,4BAA4B,CAAC;AACjE,OAAO,EAAE,oBAAoB,EAAE,MAAM,8BAA8B,CAAC;AAuBpE;;;;;;;;;;GAUG;AACH,MAAM,OAAO,oBAAoB;IACtB,WAAW,CAAsB;IACjC,UAAU,CAAqB;IAC/B,WAAW,CAAsB;IACjC,OAAO,CAAuB;IAC9B,WAAW,CAAsB;IAE1C;;OAEG;IACH,MAAM,GAAG,CAAC,CAAC;IAEX,YAAY,UAA0C;QACpD,IAAI,CAAC,WAAW,GAAG,UAAU,CAAC,UAAU,CAAC;QACzC,IAAI,CAAC,UAAU,GAAG,UAAU,CAAC,SAAS,CAAC;QACvC,IAAI,CAAC,WAAW,GAAG,UAAU,CAAC,UAAU,CAAC;QACzC,IAAI,CAAC,OAAO,GAAG,IAAI,oBAAoB,CAAC;YACtC,UAAU,EAAE,UAAU,CAAC,UAAU;YACjC,KAAK,EAAE,UAAU,CAAC,KAAK;YACvB,OAAO,EAAE,UAAU,CAAC,OAAO;SAC5B,CAAC,CAAC;QACH,IAAI,CAAC,WAAW,GAAG,IAAI,mBAAmB,CAAC;YACzC,SAAS,EAAE,UAAU,CAAC,SAAS;YAC/B,UAAU,EAAE,UAAU,CAAC,UAAU;SAClC,CAAC,CAAC;IACL,CAAC;IAED;;;;;;OAMG;IACH,KAAK,CAAC,GAAG;QACP,MAAM,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,WAAW,CAAC,OAAO,EAAE,IAAI,CAAC,UAAU,CAAC,KAAK,CAAC,CAAC;IACpE,CAAC;IAED;;OAEG;IACH,KAAK,CAAC,KAAK,CAAC,IAAY,EAAE,KAAgB;QACxC,IAAI,OAAO,GAAG,IAAI,CAAC;QACnB,IAAI,OAAO,GAAG,KAAK,CAAC;QAEpB,SAAS,CAAC;YACR,MAAM,KAAK,GAAG,IAAI,CAAC,UAAU,CAAC,OAAO,CAAC,CAAC;YAEvC,IAAI,KAAK,KAAK,SAAS,EAAE,CAAC;gBACxB,OAAO;YACT,CAAC;YAED,IAAI,CAAC,UAAU,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC;YAC/B,sEAAsE;YACtE,mCAAmC;YACnC,mDAAmD;YACnD,MAAM,IAAI,CAAC,WAAW,CAAC,QAAQ,EAAE,CAAC;YAElC,MAAM,QAAQ,GAAG,IAAI,CAAC,QAAQ;YAC5B,gEAAgE;YAChE,sBAAsB;YACtB,mDAAmD;YACnD,MAAM,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,KAAK,EAAE,OAAO,EAAE,OAAO,CAAC,CAChD,CAAC;YAEF,IAAI,QAAQ,KAAK,SAAS,EAAE,CAAC;gBAC3B,OAAO;YACT,CAAC;YAED,OAAO,GAAG,QAAQ,CAAC,MAAM,CAAC;YAC1B,OAAO,GAAG,QAAQ,CAAC,IAAI,CAAC;QAC1B,CAAC;IACH,CAAC;IAED;;OAEG;IACH,UAAU,CAAC,OAAe;QACxB,IAAI,IAAI,CAAC,MAAM,EAAE,IAAI,2BAA2B,EAAE,CAAC;YACjD,IAAI,CAAC,WAAW,CAAC,MAAM,CAAC,qBAAqB,EAAE,CAAC,CAAC;YACjD,OAAO,SAAS,CAAC;QACnB,CAAC;QAED,MAAM,KAAK,GAAG,IAAI,CAAC,WAAW,CAAC,MAAM,CAAC,GAAG,CAAC,OAAO,CAAC,CAAC;QAEnD,IAAI,KAAK,KAAK,SAAS,EAAE,CAAC;YACxB,IAAI,CAAC,WAAW,CAAC,MAAM,CAAC,4BAA4B,CAAC,OAAO,CAAC,CAAC,CAAC;QACjE,CAAC;QAED,OAAO,KAAK,CAAC;IACf,CAAC;IAED;;;;;OAKG;IACH,QAAQ,CAAC,OAA8B;QACrC,IAAI,OAAO,CAAC,IAAI,KAAK,MAAM,EAAE,CAAC;YAC5B,OAAO,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,EAAE,OAAO,CAAC,MAAM,CAAC,CAAC;QACnD,CAAC;QAED,OAAO,IAAI,CAAC,WAAW,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC;IAC1C,CAAC;IAED;;;;;;;OAOG;IACH,KAAK,CACH,KAAW,EACX,MAA8B;QAE9B,IAAI,KAAK,CAAC,OAAO,EAAE,IAAI,IAAI,CAAC,WAAW,CAAC,GAAG,EAAE,CAAC,OAAO,EAAE,EAAE,CAAC;YACxD,OAAO,IAAI,CAAC,WAAW,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC;QACzC,CAAC;QAED,IAAI,CAAC,WAAW,CAAC,UAAU,CAAC,KAAK,EAAE,KAAK,IAAI,EAAE;YAC5C,MAAM,QAAQ,GAAG,IAAI,CAAC,WAAW,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC;YAEjD,IAAI,QAAQ,KAAK,SAAS,EAAE,CAAC;gBAC3B,MAAM,IAAI,CAAC,KAAK,CAAC,QAAQ,CAAC,IAAI,EAAE,QAAQ,CAAC,MAAM,CAAC,CAAC;YACnD,CAAC;QACH,CAAC,CAAC,CAAC;QAEH,OAAO,SAAS,CAAC;IACnB,CAAC;CACF"}
@@ -0,0 +1,12 @@
1
+ import type { JSONValue } from "../../../util/type-guard/json.js";
2
+ import type { SimStatesChoiceState } from "../definition/sim-states-state.js";
3
+ import type { SimStatesStateContext, SimStatesStateOutcome } from "./sim-states-state-outcome.js";
4
+ /**
5
+ * A `Choice` state, which takes the first rule its input matches.
6
+ *
7
+ * The rules are tested in the order they were written, which is what lets a
8
+ * definition put its narrower rule first. A `Choice` state produces no result,
9
+ * so what it passes on is its own input.
10
+ */
11
+ export declare function runSimStatesChoice(state: SimStatesChoiceState, input: JSONValue, context: SimStatesStateContext): SimStatesStateOutcome;
12
+ //# sourceMappingURL=sim-states-run-choice.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"sim-states-run-choice.d.ts","sourceRoot":"","sources":["../../../../src/service/stepfunctions/execution/sim-states-run-choice.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,kCAAkC,CAAC;AAKlE,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,mCAAmC,CAAC;AAE9E,OAAO,KAAK,EACV,qBAAqB,EACrB,qBAAqB,EACtB,MAAM,+BAA+B,CAAC;AAEvC;;;;;;GAMG;AACH,wBAAgB,kBAAkB,CAChC,KAAK,EAAE,oBAAoB,EAC3B,KAAK,EAAE,SAAS,EAChB,OAAO,EAAE,qBAAqB,GAC7B,qBAAqB,CAiBvB"}
@@ -0,0 +1,24 @@
1
+ import { simStatesEffectiveInput, simStatesEffectiveOutput, } from "../data/sim-states-data-flow.js";
2
+ import { SimStatesNoChoiceMatched } from "../error/sim-step-functions.error.js";
3
+ /**
4
+ * A `Choice` state, which takes the first rule its input matches.
5
+ *
6
+ * The rules are tested in the order they were written, which is what lets a
7
+ * definition put its narrower rule first. A `Choice` state produces no result,
8
+ * so what it passes on is its own input.
9
+ */
10
+ export function runSimStatesChoice(state, input, context) {
11
+ const effective = simStatesEffectiveInput(input, state);
12
+ const matched = state.Choices.find((rule) => rule.matches(effective));
13
+ const next = matched?.next ?? state.Default;
14
+ if (next === undefined) {
15
+ throw new SimStatesNoChoiceMatched(`The Choice state ${context.stateName} matched none of its rules and ` +
16
+ "carries no Default to fall back on.");
17
+ }
18
+ return {
19
+ kind: "next",
20
+ output: simStatesEffectiveOutput(effective, effective, state),
21
+ next,
22
+ };
23
+ }
24
+ //# sourceMappingURL=sim-states-run-choice.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"sim-states-run-choice.js","sourceRoot":"","sources":["../../../../src/service/stepfunctions/execution/sim-states-run-choice.ts"],"names":[],"mappings":"AACA,OAAO,EACL,uBAAuB,EACvB,wBAAwB,GACzB,MAAM,iCAAiC,CAAC;AAEzC,OAAO,EAAE,wBAAwB,EAAE,MAAM,sCAAsC,CAAC;AAMhF;;;;;;GAMG;AACH,MAAM,UAAU,kBAAkB,CAChC,KAA2B,EAC3B,KAAgB,EAChB,OAA8B;IAE9B,MAAM,SAAS,GAAG,uBAAuB,CAAC,KAAK,EAAE,KAAK,CAAC,CAAC;IACxD,MAAM,OAAO,GAAG,KAAK,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,IAAI,CAAC,OAAO,CAAC,SAAS,CAAC,CAAC,CAAC;IACtE,MAAM,IAAI,GAAG,OAAO,EAAE,IAAI,IAAI,KAAK,CAAC,OAAO,CAAC;IAE5C,IAAI,IAAI,KAAK,SAAS,EAAE,CAAC;QACvB,MAAM,IAAI,wBAAwB,CAChC,oBAAoB,OAAO,CAAC,SAAS,iCAAiC;YACpE,qCAAqC,CACxC,CAAC;IACJ,CAAC;IAED,OAAO;QACL,IAAI,EAAE,MAAM;QACZ,MAAM,EAAE,wBAAwB,CAAC,SAAS,EAAE,SAAS,EAAE,KAAK,CAAC;QAC7D,IAAI;KACL,CAAC;AACJ,CAAC"}
@@ -0,0 +1,15 @@
1
+ import type { JSONValue } from "../../../util/type-guard/json.js";
2
+ import type { SimStatesState } from "../definition/sim-states-state.js";
3
+ import type { SimStatesStateContext, SimStatesStateOutcome } from "./sim-states-state-outcome.js";
4
+ /**
5
+ * Run one state and say what happened.
6
+ *
7
+ * A data-flow field raising is left to the caller, which reads the Amazon
8
+ * States Language error name off whatever came out.
9
+ *
10
+ * This waits on the work a `Task` state does. Every other state type answers
11
+ * without waiting for anything. A `Wait` state pauses the walk rather than
12
+ * blocking it, and answers by saying what it is waiting for.
13
+ */
14
+ export declare function runSimStatesState(state: SimStatesState, input: JSONValue, context: SimStatesStateContext): Promise<SimStatesStateOutcome>;
15
+ //# sourceMappingURL=sim-states-run-state.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"sim-states-run-state.d.ts","sourceRoot":"","sources":["../../../../src/service/stepfunctions/execution/sim-states-run-state.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,kCAAkC,CAAC;AAKlE,OAAO,KAAK,EAGV,cAAc,EAEf,MAAM,mCAAmC,CAAC;AAI3C,OAAO,KAAK,EACV,qBAAqB,EACrB,qBAAqB,EACtB,MAAM,+BAA+B,CAAC;AAOvC;;;;;;;;;GASG;AACH,wBAAsB,iBAAiB,CACrC,KAAK,EAAE,cAAc,EACrB,KAAK,EAAE,SAAS,EAChB,OAAO,EAAE,qBAAqB,GAC7B,OAAO,CAAC,qBAAqB,CAAC,CAsBhC"}
@@ -0,0 +1,68 @@
1
+ import { simStatesEffectiveInput, simStatesEffectiveOutput, } from "../data/sim-states-data-flow.js";
2
+ import { runSimStatesChoice } from "./sim-states-run-choice.js";
3
+ import { runSimStatesTask } from "./sim-states-run-task.js";
4
+ import { runSimStatesWait } from "./sim-states-run-wait.js";
5
+ /**
6
+ * The default a `Fail` state reports when it names no error.
7
+ */
8
+ const unnamedFailError = "States.Unknown";
9
+ /**
10
+ * Run one state and say what happened.
11
+ *
12
+ * A data-flow field raising is left to the caller, which reads the Amazon
13
+ * States Language error name off whatever came out.
14
+ *
15
+ * This waits on the work a `Task` state does. Every other state type answers
16
+ * without waiting for anything. A `Wait` state pauses the walk rather than
17
+ * blocking it, and answers by saying what it is waiting for.
18
+ */
19
+ export async function runSimStatesState(state, input, context) {
20
+ if (state.Type === "Task") {
21
+ return await runSimStatesTask(state, input, context);
22
+ }
23
+ if (state.Type === "Fail") {
24
+ return runFail(state);
25
+ }
26
+ if (state.Type === "Succeed") {
27
+ return runSucceed(state, input);
28
+ }
29
+ if (state.Type === "Choice") {
30
+ return runSimStatesChoice(state, input, context);
31
+ }
32
+ if (state.Type === "Wait") {
33
+ return runSimStatesWait(state, input, context);
34
+ }
35
+ return runPass(state, input);
36
+ }
37
+ /**
38
+ * A `Pass` state, whose result is its `Result` or its effective input.
39
+ */
40
+ function runPass(state, input) {
41
+ const effective = simStatesEffectiveInput(input, state);
42
+ const result = state.Result === undefined ? effective : state.Result;
43
+ const output = simStatesEffectiveOutput(input, result, state);
44
+ return state.Next === undefined
45
+ ? { kind: "succeed", output }
46
+ : { kind: "next", output, next: state.Next };
47
+ }
48
+ /**
49
+ * A `Succeed` state, which ends the execution with what reaches it.
50
+ */
51
+ function runSucceed(state, input) {
52
+ const effective = simStatesEffectiveInput(input, state);
53
+ return {
54
+ kind: "succeed",
55
+ output: simStatesEffectiveOutput(effective, effective, state),
56
+ };
57
+ }
58
+ /**
59
+ * A `Fail` state, which ends the execution with the error it names.
60
+ */
61
+ function runFail(state) {
62
+ return {
63
+ kind: "fail",
64
+ error: state.Error ?? unnamedFailError,
65
+ cause: state.Cause,
66
+ };
67
+ }
68
+ //# sourceMappingURL=sim-states-run-state.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"sim-states-run-state.js","sourceRoot":"","sources":["../../../../src/service/stepfunctions/execution/sim-states-run-state.ts"],"names":[],"mappings":"AACA,OAAO,EACL,uBAAuB,EACvB,wBAAwB,GACzB,MAAM,iCAAiC,CAAC;AAOzC,OAAO,EAAE,kBAAkB,EAAE,MAAM,4BAA4B,CAAC;AAChE,OAAO,EAAE,gBAAgB,EAAE,MAAM,0BAA0B,CAAC;AAC5D,OAAO,EAAE,gBAAgB,EAAE,MAAM,0BAA0B,CAAC;AAM5D;;GAEG;AACH,MAAM,gBAAgB,GAAG,gBAAgB,CAAC;AAE1C;;;;;;;;;GASG;AACH,MAAM,CAAC,KAAK,UAAU,iBAAiB,CACrC,KAAqB,EACrB,KAAgB,EAChB,OAA8B;IAE9B,IAAI,KAAK,CAAC,IAAI,KAAK,MAAM,EAAE,CAAC;QAC1B,OAAO,MAAM,gBAAgB,CAAC,KAAK,EAAE,KAAK,EAAE,OAAO,CAAC,CAAC;IACvD,CAAC;IAED,IAAI,KAAK,CAAC,IAAI,KAAK,MAAM,EAAE,CAAC;QAC1B,OAAO,OAAO,CAAC,KAAK,CAAC,CAAC;IACxB,CAAC;IAED,IAAI,KAAK,CAAC,IAAI,KAAK,SAAS,EAAE,CAAC;QAC7B,OAAO,UAAU,CAAC,KAAK,EAAE,KAAK,CAAC,CAAC;IAClC,CAAC;IAED,IAAI,KAAK,CAAC,IAAI,KAAK,QAAQ,EAAE,CAAC;QAC5B,OAAO,kBAAkB,CAAC,KAAK,EAAE,KAAK,EAAE,OAAO,CAAC,CAAC;IACnD,CAAC;IAED,IAAI,KAAK,CAAC,IAAI,KAAK,MAAM,EAAE,CAAC;QAC1B,OAAO,gBAAgB,CAAC,KAAK,EAAE,KAAK,EAAE,OAAO,CAAC,CAAC;IACjD,CAAC;IAED,OAAO,OAAO,CAAC,KAAK,EAAE,KAAK,CAAC,CAAC;AAC/B,CAAC;AAED;;GAEG;AACH,SAAS,OAAO,CACd,KAAyB,EACzB,KAAgB;IAEhB,MAAM,SAAS,GAAG,uBAAuB,CAAC,KAAK,EAAE,KAAK,CAAC,CAAC;IACxD,MAAM,MAAM,GAAG,KAAK,CAAC,MAAM,KAAK,SAAS,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,KAAK,CAAC,MAAM,CAAC;IACrE,MAAM,MAAM,GAAG,wBAAwB,CAAC,KAAK,EAAE,MAAM,EAAE,KAAK,CAAC,CAAC;IAE9D,OAAO,KAAK,CAAC,IAAI,KAAK,SAAS;QAC7B,CAAC,CAAC,EAAE,IAAI,EAAE,SAAS,EAAE,MAAM,EAAE;QAC7B,CAAC,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,MAAM,EAAE,IAAI,EAAE,KAAK,CAAC,IAAI,EAAE,CAAC;AACjD,CAAC;AAED;;GAEG;AACH,SAAS,UAAU,CACjB,KAA4B,EAC5B,KAAgB;IAEhB,MAAM,SAAS,GAAG,uBAAuB,CAAC,KAAK,EAAE,KAAK,CAAC,CAAC;IAExD,OAAO;QACL,IAAI,EAAE,SAAS;QACf,MAAM,EAAE,wBAAwB,CAAC,SAAS,EAAE,SAAS,EAAE,KAAK,CAAC;KAC9D,CAAC;AACJ,CAAC;AAED;;GAEG;AACH,SAAS,OAAO,CAAC,KAAyB;IACxC,OAAO;QACL,IAAI,EAAE,MAAM;QACZ,KAAK,EAAE,KAAK,CAAC,KAAK,IAAI,gBAAgB;QACtC,KAAK,EAAE,KAAK,CAAC,KAAK;KACnB,CAAC;AACJ,CAAC"}
@@ -0,0 +1,14 @@
1
+ import type { JSONValue } from "../../../util/type-guard/json.js";
2
+ import type { SimStatesTaskState } from "../definition/sim-states-state.js";
3
+ import type { SimStatesStateContext, SimStatesStateOutcome } from "./sim-states-state-outcome.js";
4
+ /**
5
+ * A `Task` state, which does its work outside the state machine.
6
+ *
7
+ * The data-flow fields apply around the work the way they do around any other
8
+ * state. `InputPath` and `Parameters` build what the task is sent, and
9
+ * `ResultSelector`, `ResultPath` and `OutputPath` shape what comes back.
10
+ * `ResultPath` reads the state's raw input, so a task can put its result
11
+ * beside the input it was given.
12
+ */
13
+ export declare function runSimStatesTask(state: SimStatesTaskState, input: JSONValue, context: SimStatesStateContext): Promise<SimStatesStateOutcome>;
14
+ //# sourceMappingURL=sim-states-run-task.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"sim-states-run-task.d.ts","sourceRoot":"","sources":["../../../../src/service/stepfunctions/execution/sim-states-run-task.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,kCAAkC,CAAC;AAKlE,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,mCAAmC,CAAC;AAC5E,OAAO,KAAK,EACV,qBAAqB,EACrB,qBAAqB,EACtB,MAAM,+BAA+B,CAAC;AAEvC;;;;;;;;GAQG;AACH,wBAAsB,gBAAgB,CACpC,KAAK,EAAE,kBAAkB,EACzB,KAAK,EAAE,SAAS,EAChB,OAAO,EAAE,qBAAqB,GAC7B,OAAO,CAAC,qBAAqB,CAAC,CAahC"}
@@ -0,0 +1,23 @@
1
+ import { simStatesEffectiveInput, simStatesEffectiveOutput, } from "../data/sim-states-data-flow.js";
2
+ /**
3
+ * A `Task` state, which does its work outside the state machine.
4
+ *
5
+ * The data-flow fields apply around the work the way they do around any other
6
+ * state. `InputPath` and `Parameters` build what the task is sent, and
7
+ * `ResultSelector`, `ResultPath` and `OutputPath` shape what comes back.
8
+ * `ResultPath` reads the state's raw input, so a task can put its result
9
+ * beside the input it was given.
10
+ */
11
+ export async function runSimStatesTask(state, input, context) {
12
+ const result = await context.tasks.invoke({
13
+ stateName: context.stateName,
14
+ target: state.target,
15
+ payload: simStatesEffectiveInput(input, state),
16
+ roleArn: context.roleArn,
17
+ });
18
+ const output = simStatesEffectiveOutput(input, result, state);
19
+ return state.Next === undefined
20
+ ? { kind: "succeed", output }
21
+ : { kind: "next", output, next: state.Next };
22
+ }
23
+ //# sourceMappingURL=sim-states-run-task.js.map