@kensio/yulin 1.20.1 → 1.20.3

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 (787) hide show
  1. package/dist/index.d.ts +1 -0
  2. package/dist/index.d.ts.map +1 -1
  3. package/dist/index.js +1 -0
  4. package/dist/index.js.map +1 -1
  5. package/dist/sdk/router/resolve-sim-sdk-command-router.d.ts +8 -0
  6. package/dist/sdk/router/resolve-sim-sdk-command-router.d.ts.map +1 -1
  7. package/dist/sdk/router/resolve-sim-sdk-command-router.js +10 -0
  8. package/dist/sdk/router/resolve-sim-sdk-command-router.js.map +1 -1
  9. package/dist/service/apigateway/api/sim-rest-api-lambda-proxy.factory.d.ts +2 -5
  10. package/dist/service/apigateway/api/sim-rest-api-lambda-proxy.factory.d.ts.map +1 -1
  11. package/dist/service/apigateway/api/sim-rest-api-lambda-proxy.factory.js +3 -7
  12. package/dist/service/apigateway/api/sim-rest-api-lambda-proxy.factory.js.map +1 -1
  13. package/dist/service/apigateway/api/sim-rest-api-proxy-stage.d.ts +22 -0
  14. package/dist/service/apigateway/api/sim-rest-api-proxy-stage.d.ts.map +1 -0
  15. package/dist/service/apigateway/api/sim-rest-api-proxy-stage.js +31 -0
  16. package/dist/service/apigateway/api/sim-rest-api-proxy-stage.js.map +1 -0
  17. package/dist/service/apigateway/api/stage/settings/sim-rest-api-method-settings.type.d.ts +19 -0
  18. package/dist/service/apigateway/api/stage/settings/sim-rest-api-method-settings.type.d.ts.map +1 -0
  19. package/dist/service/apigateway/api/stage/settings/sim-rest-api-method-settings.type.js +2 -0
  20. package/dist/service/apigateway/api/stage/settings/sim-rest-api-method-settings.type.js.map +1 -0
  21. package/dist/service/apigateway/api/stage/settings/sim-rest-api-stage-method-settings.d.ts +43 -0
  22. package/dist/service/apigateway/api/stage/settings/sim-rest-api-stage-method-settings.d.ts.map +1 -0
  23. package/dist/service/apigateway/api/stage/settings/sim-rest-api-stage-method-settings.js +75 -0
  24. package/dist/service/apigateway/api/stage/settings/sim-rest-api-stage-method-settings.js.map +1 -0
  25. package/dist/service/apigateway/api/stage/sim-rest-api-stage.d.ts +19 -0
  26. package/dist/service/apigateway/api/stage/sim-rest-api-stage.d.ts.map +1 -1
  27. package/dist/service/apigateway/api/stage/sim-rest-api-stage.js +22 -0
  28. package/dist/service/apigateway/api/stage/sim-rest-api-stage.js.map +1 -1
  29. package/dist/service/apigateway/cfn/stage/sim-cfn-rest-api-method-settings-properties.d.ts +33 -0
  30. package/dist/service/apigateway/cfn/stage/sim-cfn-rest-api-method-settings-properties.d.ts.map +1 -0
  31. package/dist/service/apigateway/cfn/stage/sim-cfn-rest-api-method-settings-properties.js +69 -0
  32. package/dist/service/apigateway/cfn/stage/sim-cfn-rest-api-method-settings-properties.js.map +1 -0
  33. package/dist/service/apigateway/cfn/stage/sim-cfn-rest-api-stage-properties.d.ts +4 -1
  34. package/dist/service/apigateway/cfn/stage/sim-cfn-rest-api-stage-properties.d.ts.map +1 -1
  35. package/dist/service/apigateway/cfn/stage/sim-cfn-rest-api-stage-properties.js +13 -4
  36. package/dist/service/apigateway/cfn/stage/sim-cfn-rest-api-stage-properties.js.map +1 -1
  37. package/dist/service/apigateway/command/sim-api-gateway-unsimulated-input.d.ts +6 -1
  38. package/dist/service/apigateway/command/sim-api-gateway-unsimulated-input.d.ts.map +1 -1
  39. package/dist/service/apigateway/command/sim-api-gateway-unsimulated-input.js +8 -3
  40. package/dist/service/apigateway/command/sim-api-gateway-unsimulated-input.js.map +1 -1
  41. package/dist/service/apigateway/command/stage/sim-rest-api-stage-commands.d.ts.map +1 -1
  42. package/dist/service/apigateway/command/stage/sim-rest-api-stage-commands.js +4 -0
  43. package/dist/service/apigateway/command/stage/sim-rest-api-stage-commands.js.map +1 -1
  44. package/dist/service/apigateway/command/stage/sim-rest-api-stage-method-settings-input.d.ts +18 -0
  45. package/dist/service/apigateway/command/stage/sim-rest-api-stage-method-settings-input.d.ts.map +1 -0
  46. package/dist/service/apigateway/command/stage/sim-rest-api-stage-method-settings-input.js +42 -0
  47. package/dist/service/apigateway/command/stage/sim-rest-api-stage-method-settings-input.js.map +1 -0
  48. package/dist/service/apigateway/command/stage/sim-rest-api-stage-publisher.d.ts +9 -0
  49. package/dist/service/apigateway/command/stage/sim-rest-api-stage-publisher.d.ts.map +1 -1
  50. package/dist/service/apigateway/command/stage/sim-rest-api-stage-publisher.js +17 -0
  51. package/dist/service/apigateway/command/stage/sim-rest-api-stage-publisher.js.map +1 -1
  52. package/dist/service/apigateway/command/stage/stage.command.d.ts +11 -0
  53. package/dist/service/apigateway/command/stage/stage.command.d.ts.map +1 -1
  54. package/dist/service/apigateway/index.d.ts +2 -0
  55. package/dist/service/apigateway/index.d.ts.map +1 -1
  56. package/dist/service/apigateway/index.js +1 -0
  57. package/dist/service/apigateway/index.js.map +1 -1
  58. package/dist/service/apigateway/serve/sim-api-gateway-controller.d.ts +4 -1
  59. package/dist/service/apigateway/serve/sim-api-gateway-controller.d.ts.map +1 -1
  60. package/dist/service/apigateway/serve/sim-api-gateway-controller.js +10 -1
  61. package/dist/service/apigateway/serve/sim-api-gateway-controller.js.map +1 -1
  62. package/dist/service/apigateway/serve/sim-api-gateway-error-response.d.ts +8 -0
  63. package/dist/service/apigateway/serve/sim-api-gateway-error-response.d.ts.map +1 -1
  64. package/dist/service/apigateway/serve/sim-api-gateway-error-response.js +10 -0
  65. package/dist/service/apigateway/serve/sim-api-gateway-error-response.js.map +1 -1
  66. package/dist/service/apigatewayv2/api/sim-http-api-lambda-proxy.factory.d.ts +5 -0
  67. package/dist/service/apigatewayv2/api/sim-http-api-lambda-proxy.factory.d.ts.map +1 -1
  68. package/dist/service/apigatewayv2/api/sim-http-api-lambda-proxy.factory.js +4 -0
  69. package/dist/service/apigatewayv2/api/sim-http-api-lambda-proxy.factory.js.map +1 -1
  70. package/dist/service/apigatewayv2/api/stage/settings/sim-http-api-route-settings.type.d.ts +24 -0
  71. package/dist/service/apigatewayv2/api/stage/settings/sim-http-api-route-settings.type.d.ts.map +1 -0
  72. package/dist/service/apigatewayv2/api/stage/settings/sim-http-api-route-settings.type.js +2 -0
  73. package/dist/service/apigatewayv2/api/stage/settings/sim-http-api-route-settings.type.js.map +1 -0
  74. package/dist/service/apigatewayv2/api/stage/settings/sim-http-api-stage-route-settings.d.ts +39 -0
  75. package/dist/service/apigatewayv2/api/stage/settings/sim-http-api-stage-route-settings.d.ts.map +1 -0
  76. package/dist/service/apigatewayv2/api/stage/settings/sim-http-api-stage-route-settings.js +74 -0
  77. package/dist/service/apigatewayv2/api/stage/settings/sim-http-api-stage-route-settings.js.map +1 -0
  78. package/dist/service/apigatewayv2/api/stage/sim-http-api-stage.d.ts +16 -1
  79. package/dist/service/apigatewayv2/api/stage/sim-http-api-stage.d.ts.map +1 -1
  80. package/dist/service/apigatewayv2/api/stage/sim-http-api-stage.js +16 -0
  81. package/dist/service/apigatewayv2/api/stage/sim-http-api-stage.js.map +1 -1
  82. package/dist/service/apigatewayv2/cfn/stage/sim-cfn-http-api-route-settings-properties.d.ts +30 -0
  83. package/dist/service/apigatewayv2/cfn/stage/sim-cfn-http-api-route-settings-properties.d.ts.map +1 -0
  84. package/dist/service/apigatewayv2/cfn/stage/sim-cfn-http-api-route-settings-properties.js +67 -0
  85. package/dist/service/apigatewayv2/cfn/stage/sim-cfn-http-api-route-settings-properties.js.map +1 -0
  86. package/dist/service/apigatewayv2/cfn/stage/sim-cfn-http-api-stage-properties.d.ts +3 -1
  87. package/dist/service/apigatewayv2/cfn/stage/sim-cfn-http-api-stage-properties.d.ts.map +1 -1
  88. package/dist/service/apigatewayv2/cfn/stage/sim-cfn-http-api-stage-properties.js +16 -5
  89. package/dist/service/apigatewayv2/cfn/stage/sim-cfn-http-api-stage-properties.js.map +1 -1
  90. package/dist/service/apigatewayv2/command/sim-api-gateway-v2-unsimulated-input.d.ts +6 -1
  91. package/dist/service/apigatewayv2/command/sim-api-gateway-v2-unsimulated-input.d.ts.map +1 -1
  92. package/dist/service/apigatewayv2/command/sim-api-gateway-v2-unsimulated-input.js +8 -3
  93. package/dist/service/apigatewayv2/command/sim-api-gateway-v2-unsimulated-input.js.map +1 -1
  94. package/dist/service/apigatewayv2/command/stage/sim-http-api-stage-commands.d.ts.map +1 -1
  95. package/dist/service/apigatewayv2/command/stage/sim-http-api-stage-commands.js +8 -0
  96. package/dist/service/apigatewayv2/command/stage/sim-http-api-stage-commands.js.map +1 -1
  97. package/dist/service/apigatewayv2/command/stage/sim-http-api-stage-route-settings-input.d.ts +18 -0
  98. package/dist/service/apigatewayv2/command/stage/sim-http-api-stage-route-settings-input.d.ts.map +1 -0
  99. package/dist/service/apigatewayv2/command/stage/sim-http-api-stage-route-settings-input.js +32 -0
  100. package/dist/service/apigatewayv2/command/stage/sim-http-api-stage-route-settings-input.js.map +1 -0
  101. package/dist/service/apigatewayv2/command/stage/stage.command.d.ts +3 -0
  102. package/dist/service/apigatewayv2/command/stage/stage.command.d.ts.map +1 -1
  103. package/dist/service/apigatewayv2/index.d.ts +2 -0
  104. package/dist/service/apigatewayv2/index.d.ts.map +1 -1
  105. package/dist/service/apigatewayv2/index.js +1 -0
  106. package/dist/service/apigatewayv2/index.js.map +1 -1
  107. package/dist/service/apigatewayv2/serve/sim-api-gateway-v2-controller.d.ts +4 -1
  108. package/dist/service/apigatewayv2/serve/sim-api-gateway-v2-controller.d.ts.map +1 -1
  109. package/dist/service/apigatewayv2/serve/sim-api-gateway-v2-controller.js +11 -2
  110. package/dist/service/apigatewayv2/serve/sim-api-gateway-v2-controller.js.map +1 -1
  111. package/dist/service/apigatewayv2/serve/sim-api-gateway-v2-error-response.d.ts +8 -0
  112. package/dist/service/apigatewayv2/serve/sim-api-gateway-v2-error-response.d.ts.map +1 -1
  113. package/dist/service/apigatewayv2/serve/sim-api-gateway-v2-error-response.js +10 -0
  114. package/dist/service/apigatewayv2/serve/sim-api-gateway-v2-error-response.js.map +1 -1
  115. package/dist/service/aws/factory/sim-aws-account-region-service-builder.d.ts +4 -0
  116. package/dist/service/aws/factory/sim-aws-account-region-service-builder.d.ts.map +1 -1
  117. package/dist/service/aws/factory/sim-aws-account-region-service-builder.js +6 -0
  118. package/dist/service/aws/factory/sim-aws-account-region-service-builder.js.map +1 -1
  119. package/dist/service/aws/factory/sim-aws-account-service-cache.d.ts.map +1 -1
  120. package/dist/service/aws/factory/sim-aws-account-service-cache.js +5 -0
  121. package/dist/service/aws/factory/sim-aws-account-service-cache.js.map +1 -1
  122. package/dist/service/cloudformation/cdk/ssm/cross-region-parameter/sim-cdk-cross-region-parameter-error.d.ts +15 -0
  123. package/dist/service/cloudformation/cdk/ssm/cross-region-parameter/sim-cdk-cross-region-parameter-error.d.ts.map +1 -0
  124. package/dist/service/cloudformation/cdk/ssm/cross-region-parameter/sim-cdk-cross-region-parameter-error.js +18 -0
  125. package/dist/service/cloudformation/cdk/ssm/cross-region-parameter/sim-cdk-cross-region-parameter-error.js.map +1 -0
  126. package/dist/service/cloudformation/cdk/ssm/cross-region-parameter/sim-cdk-cross-region-parameter-properties.d.ts +30 -0
  127. package/dist/service/cloudformation/cdk/ssm/cross-region-parameter/sim-cdk-cross-region-parameter-properties.d.ts.map +1 -0
  128. package/dist/service/cloudformation/cdk/ssm/cross-region-parameter/sim-cdk-cross-region-parameter-properties.js +74 -0
  129. package/dist/service/cloudformation/cdk/ssm/cross-region-parameter/sim-cdk-cross-region-parameter-properties.js.map +1 -0
  130. package/dist/service/cloudformation/cdk/ssm/cross-region-parameter/sim-cdk-cross-region-parameter-reader.d.ts +45 -0
  131. package/dist/service/cloudformation/cdk/ssm/cross-region-parameter/sim-cdk-cross-region-parameter-reader.d.ts.map +1 -0
  132. package/dist/service/cloudformation/cdk/ssm/cross-region-parameter/sim-cdk-cross-region-parameter-reader.js +82 -0
  133. package/dist/service/cloudformation/cdk/ssm/cross-region-parameter/sim-cdk-cross-region-parameter-reader.js.map +1 -0
  134. package/dist/service/cloudformation/cdk/ssm/cross-region-parameter/sim-cdk-cross-region-parameter-reading.d.ts +27 -0
  135. package/dist/service/cloudformation/cdk/ssm/cross-region-parameter/sim-cdk-cross-region-parameter-reading.d.ts.map +1 -0
  136. package/dist/service/cloudformation/cdk/ssm/cross-region-parameter/sim-cdk-cross-region-parameter-reading.js +24 -0
  137. package/dist/service/cloudformation/cdk/ssm/cross-region-parameter/sim-cdk-cross-region-parameter-reading.js.map +1 -0
  138. package/dist/service/cloudformation/cdk/ssm/cross-region-parameter/sim-cdk-cross-region-parameter-template.factory.d.ts +39 -0
  139. package/dist/service/cloudformation/cdk/ssm/cross-region-parameter/sim-cdk-cross-region-parameter-template.factory.d.ts.map +1 -0
  140. package/dist/service/cloudformation/cdk/ssm/cross-region-parameter/sim-cdk-cross-region-parameter-template.factory.js +42 -0
  141. package/dist/service/cloudformation/cdk/ssm/cross-region-parameter/sim-cdk-cross-region-parameter-template.factory.js.map +1 -0
  142. package/dist/service/cloudformation/resource/cfn/cdk/sim-cdk-cross-region-parameter-cfn.d.ts +32 -0
  143. package/dist/service/cloudformation/resource/cfn/cdk/sim-cdk-cross-region-parameter-cfn.d.ts.map +1 -0
  144. package/dist/service/cloudformation/resource/cfn/cdk/sim-cdk-cross-region-parameter-cfn.js +36 -0
  145. package/dist/service/cloudformation/resource/cfn/cdk/sim-cdk-cross-region-parameter-cfn.js.map +1 -0
  146. package/dist/service/cloudformation/resource/cfn/cdk/sim-cdk-custom-resource-value-adapter.d.ts +14 -0
  147. package/dist/service/cloudformation/resource/cfn/cdk/sim-cdk-custom-resource-value-adapter.d.ts.map +1 -0
  148. package/dist/service/cloudformation/resource/cfn/cdk/sim-cdk-custom-resource-value-adapter.js +23 -0
  149. package/dist/service/cloudformation/resource/cfn/cdk/sim-cdk-custom-resource-value-adapter.js.map +1 -0
  150. package/dist/service/cloudformation/resource/cfn/sim-cfn-default-resource-value-adapter.d.ts.map +1 -1
  151. package/dist/service/cloudformation/resource/cfn/sim-cfn-default-resource-value-adapter.js +2 -1
  152. package/dist/service/cloudformation/resource/cfn/sim-cfn-default-resource-value-adapter.js.map +1 -1
  153. package/dist/service/cloudformation/resource/cfn/sim-cfn-service-value-adapters.d.ts +2 -1
  154. package/dist/service/cloudformation/resource/cfn/sim-cfn-service-value-adapters.d.ts.map +1 -1
  155. package/dist/service/cloudformation/resource/cfn/sim-cfn-service-value-adapters.js +4 -1
  156. package/dist/service/cloudformation/resource/cfn/sim-cfn-service-value-adapters.js.map +1 -1
  157. package/dist/service/cloudformation/resource/cfn/sim-cfn-unanswered-attribute.d.ts +23 -0
  158. package/dist/service/cloudformation/resource/cfn/sim-cfn-unanswered-attribute.d.ts.map +1 -0
  159. package/dist/service/cloudformation/resource/cfn/sim-cfn-unanswered-attribute.js +46 -0
  160. package/dist/service/cloudformation/resource/cfn/sim-cfn-unanswered-attribute.js.map +1 -0
  161. package/dist/service/cloudformation/resource/cfn/stepfunctions/sim-step-functions-cfn-value-adapter.js +1 -1
  162. package/dist/service/cloudformation/resource/cfn/stepfunctions/sim-step-functions-cfn-value-adapter.js.map +1 -1
  163. package/dist/service/cloudformation/resource/resolve/service/sim-cfn-custom-resource-factories.d.ts.map +1 -1
  164. package/dist/service/cloudformation/resource/resolve/service/sim-cfn-custom-resource-factories.js +5 -0
  165. package/dist/service/cloudformation/resource/resolve/service/sim-cfn-custom-resource-factories.js.map +1 -1
  166. package/dist/service/cloudformation/resource/resolve/service/sim-cfn-service-factories.d.ts.map +1 -1
  167. package/dist/service/cloudformation/resource/resolve/service/sim-cfn-service-factories.js +1 -4
  168. package/dist/service/cloudformation/resource/resolve/service/sim-cfn-service-factories.js.map +1 -1
  169. package/dist/service/cloudformation/resource/sim-cfn-resource-record.d.ts +7 -0
  170. package/dist/service/cloudformation/resource/sim-cfn-resource-record.d.ts.map +1 -1
  171. package/dist/service/cloudformation/resource/sim-cfn-resource-record.js +9 -0
  172. package/dist/service/cloudformation/resource/sim-cfn-resource-record.js.map +1 -1
  173. package/dist/service/cloudformation/template/node/fn/join/sim-cfn-fn-join.d.ts +7 -0
  174. package/dist/service/cloudformation/template/node/fn/join/sim-cfn-fn-join.d.ts.map +1 -1
  175. package/dist/service/cloudformation/template/node/fn/join/sim-cfn-fn-join.js +9 -1
  176. package/dist/service/cloudformation/template/node/fn/join/sim-cfn-fn-join.js.map +1 -1
  177. package/dist/service/cloudfront/behaviour/sim-cloud-front-behavior.d.ts +5 -0
  178. package/dist/service/cloudfront/behaviour/sim-cloud-front-behavior.d.ts.map +1 -1
  179. package/dist/service/cloudfront/behaviour/sim-cloud-front-behavior.js.map +1 -1
  180. package/dist/service/cloudfront/cff/sim-cff-arn.d.ts +13 -0
  181. package/dist/service/cloudfront/cff/sim-cff-arn.d.ts.map +1 -0
  182. package/dist/service/cloudfront/cff/sim-cff-arn.js +18 -0
  183. package/dist/service/cloudfront/cff/sim-cff-arn.js.map +1 -0
  184. package/dist/service/cloudfront/cfn/distro/sim-cfn-cf-distro-creator.d.ts +5 -4
  185. package/dist/service/cloudfront/cfn/distro/sim-cfn-cf-distro-creator.d.ts.map +1 -1
  186. package/dist/service/cloudfront/cfn/distro/sim-cfn-cf-distro-creator.js +14 -5
  187. package/dist/service/cloudfront/cfn/distro/sim-cfn-cf-distro-creator.js.map +1 -1
  188. package/dist/service/cloudfront/cfn/distro/sim-cfn-cf-distro-edge-associations.d.ts +19 -0
  189. package/dist/service/cloudfront/cfn/distro/sim-cfn-cf-distro-edge-associations.d.ts.map +1 -0
  190. package/dist/service/cloudfront/cfn/distro/sim-cfn-cf-distro-edge-associations.js +78 -0
  191. package/dist/service/cloudfront/cfn/distro/sim-cfn-cf-distro-edge-associations.js.map +1 -0
  192. package/dist/service/cloudfront/cfn/distro/sim-cfn-cf-edge-association-skips.d.ts +34 -0
  193. package/dist/service/cloudfront/cfn/distro/sim-cfn-cf-edge-association-skips.d.ts.map +1 -0
  194. package/dist/service/cloudfront/cfn/distro/sim-cfn-cf-edge-association-skips.js +58 -0
  195. package/dist/service/cloudfront/cfn/distro/sim-cfn-cf-edge-association-skips.js.map +1 -0
  196. package/dist/service/cloudfront/cfn/distro/sim-cfn-cf-edge-skip-reason.d.ts +26 -0
  197. package/dist/service/cloudfront/cfn/distro/sim-cfn-cf-edge-skip-reason.d.ts.map +1 -0
  198. package/dist/service/cloudfront/cfn/distro/sim-cfn-cf-edge-skip-reason.js +60 -0
  199. package/dist/service/cloudfront/cfn/distro/sim-cfn-cf-edge-skip-reason.js.map +1 -0
  200. package/dist/service/cloudfront/command/create-distribution/create-distribution.command.d.ts +16 -0
  201. package/dist/service/cloudfront/command/create-distribution/create-distribution.command.d.ts.map +1 -1
  202. package/dist/service/cloudfront/command/create-distribution/create-distribution.handler.d.ts +3 -0
  203. package/dist/service/cloudfront/command/create-distribution/create-distribution.handler.d.ts.map +1 -1
  204. package/dist/service/cloudfront/command/create-distribution/create-distribution.handler.js +11 -4
  205. package/dist/service/cloudfront/command/create-distribution/create-distribution.handler.js.map +1 -1
  206. package/dist/service/cloudfront/command/create-distribution/sim-cf-distro-config-normalizer.d.ts.map +1 -1
  207. package/dist/service/cloudfront/command/create-distribution/sim-cf-distro-config-normalizer.js +1 -0
  208. package/dist/service/cloudfront/command/create-distribution/sim-cf-distro-config-normalizer.js.map +1 -1
  209. package/dist/service/cloudfront/command/update-distribution/update-distribution.handler.d.ts +3 -0
  210. package/dist/service/cloudfront/command/update-distribution/update-distribution.handler.d.ts.map +1 -1
  211. package/dist/service/cloudfront/command/update-distribution/update-distribution.handler.js +9 -2
  212. package/dist/service/cloudfront/command/update-distribution/update-distribution.handler.js.map +1 -1
  213. package/dist/service/cloudfront/controller/dependency/sim-cf-controller-dependency.d.ts +7 -1
  214. package/dist/service/cloudfront/controller/dependency/sim-cf-controller-dependency.d.ts.map +1 -1
  215. package/dist/service/cloudfront/controller/dependency/sim-cf-controller-dependency.js +9 -1
  216. package/dist/service/cloudfront/controller/dependency/sim-cf-controller-dependency.js.map +1 -1
  217. package/dist/service/cloudfront/controller/edge/sim-lambda-edge-applicator.d.ts +40 -0
  218. package/dist/service/cloudfront/controller/edge/sim-lambda-edge-applicator.d.ts.map +1 -0
  219. package/dist/service/cloudfront/controller/edge/sim-lambda-edge-applicator.js +52 -0
  220. package/dist/service/cloudfront/controller/edge/sim-lambda-edge-applicator.js.map +1 -0
  221. package/dist/service/cloudfront/controller/edge/sim-lambda-edge-distribution.d.ts +11 -0
  222. package/dist/service/cloudfront/controller/edge/sim-lambda-edge-distribution.d.ts.map +1 -0
  223. package/dist/service/cloudfront/controller/edge/sim-lambda-edge-distribution.js +14 -0
  224. package/dist/service/cloudfront/controller/edge/sim-lambda-edge-distribution.js.map +1 -0
  225. package/dist/service/cloudfront/controller/edge/sim-lambda-edge-origin-applicator.d.ts +43 -0
  226. package/dist/service/cloudfront/controller/edge/sim-lambda-edge-origin-applicator.d.ts.map +1 -0
  227. package/dist/service/cloudfront/controller/edge/sim-lambda-edge-origin-applicator.js +63 -0
  228. package/dist/service/cloudfront/controller/edge/sim-lambda-edge-origin-applicator.js.map +1 -0
  229. package/dist/service/cloudfront/controller/edge/sim-lambda-edge-run.d.ts +16 -0
  230. package/dist/service/cloudfront/controller/edge/sim-lambda-edge-run.d.ts.map +1 -0
  231. package/dist/service/cloudfront/controller/edge/sim-lambda-edge-run.js +33 -0
  232. package/dist/service/cloudfront/controller/edge/sim-lambda-edge-run.js.map +1 -0
  233. package/dist/service/cloudfront/controller/origin/sim-cf-origin-bound-request.d.ts +14 -0
  234. package/dist/service/cloudfront/controller/origin/sim-cf-origin-bound-request.d.ts.map +1 -0
  235. package/dist/service/cloudfront/controller/origin/sim-cf-origin-bound-request.js +2 -0
  236. package/dist/service/cloudfront/controller/origin/sim-cf-origin-bound-request.js.map +1 -0
  237. package/dist/service/cloudfront/controller/origin/sim-cf-origin-stage.d.ts +45 -0
  238. package/dist/service/cloudfront/controller/origin/sim-cf-origin-stage.d.ts.map +1 -0
  239. package/dist/service/cloudfront/controller/origin/sim-cf-origin-stage.js +47 -0
  240. package/dist/service/cloudfront/controller/origin/sim-cf-origin-stage.js.map +1 -0
  241. package/dist/service/cloudfront/controller/origin/sim-cloudfront-origin-fetcher.d.ts +6 -1
  242. package/dist/service/cloudfront/controller/origin/sim-cloudfront-origin-fetcher.d.ts.map +1 -1
  243. package/dist/service/cloudfront/controller/origin/sim-cloudfront-origin-fetcher.js +6 -2
  244. package/dist/service/cloudfront/controller/origin/sim-cloudfront-origin-fetcher.js.map +1 -1
  245. package/dist/service/cloudfront/controller/sim-cloudfront-request-pipeline.d.ts +9 -3
  246. package/dist/service/cloudfront/controller/sim-cloudfront-request-pipeline.d.ts.map +1 -1
  247. package/dist/service/cloudfront/controller/sim-cloudfront-request-pipeline.js +36 -9
  248. package/dist/service/cloudfront/controller/sim-cloudfront-request-pipeline.js.map +1 -1
  249. package/dist/service/cloudfront/distribution/configurator/sim-cf-behavior-properties.d.ts.map +1 -1
  250. package/dist/service/cloudfront/distribution/configurator/sim-cf-behavior-properties.js +2 -0
  251. package/dist/service/cloudfront/distribution/configurator/sim-cf-behavior-properties.js.map +1 -1
  252. package/dist/service/cloudfront/distribution/configurator/sim-cloud-front-origin-configurator.d.ts.map +1 -1
  253. package/dist/service/cloudfront/distribution/configurator/sim-cloud-front-origin-configurator.js +1 -0
  254. package/dist/service/cloudfront/distribution/configurator/sim-cloud-front-origin-configurator.js.map +1 -1
  255. package/dist/service/cloudfront/distribution/sim-cf-distribution-configuration-state.d.ts +5 -2
  256. package/dist/service/cloudfront/distribution/sim-cf-distribution-configuration-state.d.ts.map +1 -1
  257. package/dist/service/cloudfront/edge/adapter/sim-lambda-edge-body.d.ts +24 -0
  258. package/dist/service/cloudfront/edge/adapter/sim-lambda-edge-body.d.ts.map +1 -0
  259. package/dist/service/cloudfront/edge/adapter/sim-lambda-edge-body.js +51 -0
  260. package/dist/service/cloudfront/edge/adapter/sim-lambda-edge-body.js.map +1 -0
  261. package/dist/service/cloudfront/edge/adapter/sim-lambda-edge-event-adapter.d.ts +34 -0
  262. package/dist/service/cloudfront/edge/adapter/sim-lambda-edge-event-adapter.d.ts.map +1 -0
  263. package/dist/service/cloudfront/edge/adapter/sim-lambda-edge-event-adapter.js +70 -0
  264. package/dist/service/cloudfront/edge/adapter/sim-lambda-edge-event-adapter.js.map +1 -0
  265. package/dist/service/cloudfront/edge/adapter/sim-lambda-edge-event-config.d.ts +16 -0
  266. package/dist/service/cloudfront/edge/adapter/sim-lambda-edge-event-config.d.ts.map +1 -0
  267. package/dist/service/cloudfront/edge/adapter/sim-lambda-edge-event-config.js +14 -0
  268. package/dist/service/cloudfront/edge/adapter/sim-lambda-edge-event-config.js.map +1 -0
  269. package/dist/service/cloudfront/edge/adapter/sim-lambda-edge-headers.d.ts +20 -0
  270. package/dist/service/cloudfront/edge/adapter/sim-lambda-edge-headers.d.ts.map +1 -0
  271. package/dist/service/cloudfront/edge/adapter/sim-lambda-edge-headers.js +55 -0
  272. package/dist/service/cloudfront/edge/adapter/sim-lambda-edge-headers.js.map +1 -0
  273. package/dist/service/cloudfront/edge/adapter/sim-lambda-edge-origin-event-adapter.d.ts +51 -0
  274. package/dist/service/cloudfront/edge/adapter/sim-lambda-edge-origin-event-adapter.d.ts.map +1 -0
  275. package/dist/service/cloudfront/edge/adapter/sim-lambda-edge-origin-event-adapter.js +83 -0
  276. package/dist/service/cloudfront/edge/adapter/sim-lambda-edge-origin-event-adapter.js.map +1 -0
  277. package/dist/service/cloudfront/edge/adapter/sim-lambda-edge-origin.d.ts +23 -0
  278. package/dist/service/cloudfront/edge/adapter/sim-lambda-edge-origin.d.ts.map +1 -0
  279. package/dist/service/cloudfront/edge/adapter/sim-lambda-edge-origin.js +30 -0
  280. package/dist/service/cloudfront/edge/adapter/sim-lambda-edge-origin.js.map +1 -0
  281. package/dist/service/cloudfront/edge/adapter/sim-lambda-edge-request-adapter.d.ts +39 -0
  282. package/dist/service/cloudfront/edge/adapter/sim-lambda-edge-request-adapter.d.ts.map +1 -0
  283. package/dist/service/cloudfront/edge/adapter/sim-lambda-edge-request-adapter.js +110 -0
  284. package/dist/service/cloudfront/edge/adapter/sim-lambda-edge-request-adapter.js.map +1 -0
  285. package/dist/service/cloudfront/edge/adapter/sim-lambda-edge-response-adapter.d.ts +26 -0
  286. package/dist/service/cloudfront/edge/adapter/sim-lambda-edge-response-adapter.d.ts.map +1 -0
  287. package/dist/service/cloudfront/edge/adapter/sim-lambda-edge-response-adapter.js +47 -0
  288. package/dist/service/cloudfront/edge/adapter/sim-lambda-edge-response-adapter.js.map +1 -0
  289. package/dist/service/cloudfront/edge/sim-aws-cf-edge-functions.d.ts +44 -0
  290. package/dist/service/cloudfront/edge/sim-aws-cf-edge-functions.d.ts.map +1 -0
  291. package/dist/service/cloudfront/edge/sim-aws-cf-edge-functions.js +87 -0
  292. package/dist/service/cloudfront/edge/sim-aws-cf-edge-functions.js.map +1 -0
  293. package/dist/service/cloudfront/edge/sim-cf-edge-association-auth-z.d.ts +7 -0
  294. package/dist/service/cloudfront/edge/sim-cf-edge-association-auth-z.d.ts.map +1 -0
  295. package/dist/service/cloudfront/edge/sim-cf-edge-association-auth-z.js +27 -0
  296. package/dist/service/cloudfront/edge/sim-cf-edge-association-auth-z.js.map +1 -0
  297. package/dist/service/cloudfront/edge/sim-cf-edge-association-checks.d.ts +61 -0
  298. package/dist/service/cloudfront/edge/sim-cf-edge-association-checks.d.ts.map +1 -0
  299. package/dist/service/cloudfront/edge/sim-cf-edge-association-checks.js +106 -0
  300. package/dist/service/cloudfront/edge/sim-cf-edge-association-checks.js.map +1 -0
  301. package/dist/service/cloudfront/edge/sim-cf-edge-association-validator.d.ts +36 -0
  302. package/dist/service/cloudfront/edge/sim-cf-edge-association-validator.d.ts.map +1 -0
  303. package/dist/service/cloudfront/edge/sim-cf-edge-association-validator.js +80 -0
  304. package/dist/service/cloudfront/edge/sim-cf-edge-association-validator.js.map +1 -0
  305. package/dist/service/cloudfront/edge/sim-cf-edge-association.d.ts +26 -0
  306. package/dist/service/cloudfront/edge/sim-cf-edge-association.d.ts.map +1 -0
  307. package/dist/service/cloudfront/edge/sim-cf-edge-association.js +2 -0
  308. package/dist/service/cloudfront/edge/sim-cf-edge-association.js.map +1 -0
  309. package/dist/service/cloudfront/edge/sim-cf-edge-associations-configure.d.ts +14 -0
  310. package/dist/service/cloudfront/edge/sim-cf-edge-associations-configure.d.ts.map +1 -0
  311. package/dist/service/cloudfront/edge/sim-cf-edge-associations-configure.js +52 -0
  312. package/dist/service/cloudfront/edge/sim-cf-edge-associations-configure.js.map +1 -0
  313. package/dist/service/cloudfront/edge/sim-cf-edge-function-arn.d.ts +28 -0
  314. package/dist/service/cloudfront/edge/sim-cf-edge-function-arn.d.ts.map +1 -0
  315. package/dist/service/cloudfront/edge/sim-cf-edge-function-arn.js +71 -0
  316. package/dist/service/cloudfront/edge/sim-cf-edge-function-arn.js.map +1 -0
  317. package/dist/service/cloudfront/edge/sim-cf-edge-function-version.d.ts +14 -0
  318. package/dist/service/cloudfront/edge/sim-cf-edge-function-version.d.ts.map +1 -0
  319. package/dist/service/cloudfront/edge/sim-cf-edge-function-version.js +16 -0
  320. package/dist/service/cloudfront/edge/sim-cf-edge-function-version.js.map +1 -0
  321. package/dist/service/cloudfront/edge/sim-cf-edge-functions.d.ts +25 -0
  322. package/dist/service/cloudfront/edge/sim-cf-edge-functions.d.ts.map +1 -0
  323. package/dist/service/cloudfront/edge/sim-cf-edge-functions.js +2 -0
  324. package/dist/service/cloudfront/edge/sim-cf-edge-functions.js.map +1 -0
  325. package/dist/service/cloudfront/error/sim-cloudfront.error.d.ts +13 -0
  326. package/dist/service/cloudfront/error/sim-cloudfront.error.d.ts.map +1 -1
  327. package/dist/service/cloudfront/error/sim-cloudfront.error.js +15 -0
  328. package/dist/service/cloudfront/error/sim-cloudfront.error.js.map +1 -1
  329. package/dist/service/cloudfront/index.d.ts +1 -0
  330. package/dist/service/cloudfront/index.d.ts.map +1 -1
  331. package/dist/service/cloudfront/origin/custom/sim-cf-custom-origin-edge.d.ts +27 -0
  332. package/dist/service/cloudfront/origin/custom/sim-cf-custom-origin-edge.d.ts.map +1 -0
  333. package/dist/service/cloudfront/origin/custom/sim-cf-custom-origin-edge.js +44 -0
  334. package/dist/service/cloudfront/origin/custom/sim-cf-custom-origin-edge.js.map +1 -0
  335. package/dist/service/cloudfront/origin/custom/sim-cloudfront-custom-origin.d.ts +23 -3
  336. package/dist/service/cloudfront/origin/custom/sim-cloudfront-custom-origin.d.ts.map +1 -1
  337. package/dist/service/cloudfront/origin/custom/sim-cloudfront-custom-origin.js +30 -2
  338. package/dist/service/cloudfront/origin/custom/sim-cloudfront-custom-origin.js.map +1 -1
  339. package/dist/service/cloudfront/origin/s3/sim-cf-s3-origin-edge.d.ts +26 -0
  340. package/dist/service/cloudfront/origin/s3/sim-cf-s3-origin-edge.d.ts.map +1 -0
  341. package/dist/service/cloudfront/origin/s3/sim-cf-s3-origin-edge.js +63 -0
  342. package/dist/service/cloudfront/origin/s3/sim-cf-s3-origin-edge.js.map +1 -0
  343. package/dist/service/cloudfront/origin/s3/sim-cloudfront-s3-origin.d.ts +17 -2
  344. package/dist/service/cloudfront/origin/s3/sim-cloudfront-s3-origin.d.ts.map +1 -1
  345. package/dist/service/cloudfront/origin/s3/sim-cloudfront-s3-origin.js +20 -0
  346. package/dist/service/cloudfront/origin/s3/sim-cloudfront-s3-origin.js.map +1 -1
  347. package/dist/service/cloudfront/origin/sim-cf-edge-origin-not-simulated.error.d.ts +15 -0
  348. package/dist/service/cloudfront/origin/sim-cf-edge-origin-not-simulated.error.d.ts.map +1 -0
  349. package/dist/service/cloudfront/origin/sim-cf-edge-origin-not-simulated.error.js +15 -0
  350. package/dist/service/cloudfront/origin/sim-cf-edge-origin-not-simulated.error.js.map +1 -0
  351. package/dist/service/cloudfront/origin/sim-cloudfront-origin.d.ts +13 -0
  352. package/dist/service/cloudfront/origin/sim-cloudfront-origin.d.ts.map +1 -1
  353. package/dist/service/cloudfront/sim-cloudfront-commands.d.ts +10 -0
  354. package/dist/service/cloudfront/sim-cloudfront-commands.d.ts.map +1 -1
  355. package/dist/service/cloudfront/sim-cloudfront-commands.js +10 -1
  356. package/dist/service/cloudfront/sim-cloudfront-commands.js.map +1 -1
  357. package/dist/service/cloudfront/sim-cloudfront.d.ts.map +1 -1
  358. package/dist/service/cloudfront/sim-cloudfront.js +3 -8
  359. package/dist/service/cloudfront/sim-cloudfront.js.map +1 -1
  360. package/dist/service/cloudfront/typings/lambda-at-edge.namespace.d.ts +159 -0
  361. package/dist/service/cloudfront/typings/lambda-at-edge.namespace.d.ts.map +1 -0
  362. package/dist/service/cloudfront/typings/lambda-at-edge.namespace.js +2 -0
  363. package/dist/service/cloudfront/typings/lambda-at-edge.namespace.js.map +1 -0
  364. package/dist/service/lambda/function/environment/sim-lambda-environment.d.ts +22 -20
  365. package/dist/service/lambda/function/environment/sim-lambda-environment.d.ts.map +1 -1
  366. package/dist/service/lambda/function/environment/sim-lambda-environment.js +27 -29
  367. package/dist/service/lambda/function/environment/sim-lambda-environment.js.map +1 -1
  368. package/dist/service/lambda/function/environment/sim-lambda-host-backed-variables.d.ts +28 -0
  369. package/dist/service/lambda/function/environment/sim-lambda-host-backed-variables.d.ts.map +1 -0
  370. package/dist/service/lambda/function/environment/sim-lambda-host-backed-variables.js +49 -0
  371. package/dist/service/lambda/function/environment/sim-lambda-host-backed-variables.js.map +1 -0
  372. package/dist/service/lambda/function/environment/sim-lambda-runtime-variables.d.ts +18 -0
  373. package/dist/service/lambda/function/environment/sim-lambda-runtime-variables.d.ts.map +1 -0
  374. package/dist/service/lambda/function/environment/sim-lambda-runtime-variables.js +23 -0
  375. package/dist/service/lambda/function/environment/sim-lambda-runtime-variables.js.map +1 -0
  376. package/dist/service/{cloudformation/resource/cfn/stepfunctions → stepfunctions/cfn}/sim-cfn-step-functions-resource-deleter.d.ts +2 -2
  377. package/dist/service/stepfunctions/cfn/sim-cfn-step-functions-resource-deleter.d.ts.map +1 -0
  378. package/dist/service/{cloudformation/resource/cfn/stepfunctions → stepfunctions/cfn}/sim-cfn-step-functions-resource-deleter.js +1 -1
  379. package/dist/service/stepfunctions/cfn/sim-cfn-step-functions-resource-deleter.js.map +1 -0
  380. package/dist/service/stepfunctions/cfn/sim-cfn-step-functions-resource-error.d.ts.map +1 -0
  381. package/dist/service/{cloudformation/resource/cfn/stepfunctions → stepfunctions/cfn}/sim-cfn-step-functions-resource-error.js +1 -1
  382. package/dist/service/stepfunctions/cfn/sim-cfn-step-functions-resource-error.js.map +1 -0
  383. package/dist/service/stepfunctions/cfn/sim-cfn-step-functions-resource-types.d.ts.map +1 -0
  384. package/dist/service/stepfunctions/cfn/sim-cfn-step-functions-resource-types.js.map +1 -0
  385. package/dist/service/{cloudformation/resource/cfn/stepfunctions → stepfunctions/cfn}/sim-step-functions-cfn-resource-factory.d.ts +6 -3
  386. package/dist/service/stepfunctions/cfn/sim-step-functions-cfn-resource-factory.d.ts.map +1 -0
  387. package/dist/service/{cloudformation/resource/cfn/stepfunctions → stepfunctions/cfn}/sim-step-functions-cfn-resource-factory.js +2 -1
  388. package/dist/service/stepfunctions/cfn/sim-step-functions-cfn-resource-factory.js.map +1 -0
  389. package/dist/service/{cloudformation/resource/cfn/stepfunctions → stepfunctions/cfn/state-machine}/sim-cfn-state-machine-creator.d.ts +7 -4
  390. package/dist/service/stepfunctions/cfn/state-machine/sim-cfn-state-machine-creator.d.ts.map +1 -0
  391. package/dist/service/{cloudformation/resource/cfn/stepfunctions → stepfunctions/cfn/state-machine}/sim-cfn-state-machine-creator.js +9 -4
  392. package/dist/service/stepfunctions/cfn/state-machine/sim-cfn-state-machine-creator.js.map +1 -0
  393. package/dist/service/{cloudformation/resource/cfn/stepfunctions → stepfunctions/cfn/state-machine}/sim-cfn-state-machine-definition.d.ts +12 -13
  394. package/dist/service/stepfunctions/cfn/state-machine/sim-cfn-state-machine-definition.d.ts.map +1 -0
  395. package/dist/service/{cloudformation/resource/cfn/stepfunctions → stepfunctions/cfn/state-machine}/sim-cfn-state-machine-definition.js +30 -28
  396. package/dist/service/stepfunctions/cfn/state-machine/sim-cfn-state-machine-definition.js.map +1 -0
  397. package/dist/service/stepfunctions/cfn/state-machine/sim-cfn-state-machine-name.d.ts.map +1 -0
  398. package/dist/service/{cloudformation/resource/cfn/stepfunctions → stepfunctions/cfn/state-machine}/sim-cfn-state-machine-name.js +1 -1
  399. package/dist/service/stepfunctions/cfn/state-machine/sim-cfn-state-machine-name.js.map +1 -0
  400. package/dist/service/{cloudformation/resource/cfn/stepfunctions → stepfunctions/cfn/state-machine}/sim-cfn-state-machine-properties.d.ts +11 -3
  401. package/dist/service/stepfunctions/cfn/state-machine/sim-cfn-state-machine-properties.d.ts.map +1 -0
  402. package/dist/service/{cloudformation/resource/cfn/stepfunctions → stepfunctions/cfn/state-machine}/sim-cfn-state-machine-properties.js +18 -5
  403. package/dist/service/stepfunctions/cfn/state-machine/sim-cfn-state-machine-properties.js.map +1 -0
  404. package/dist/service/stepfunctions/cfn/state-machine/sim-cfn-state-machine-property-names.d.ts.map +1 -0
  405. package/dist/service/{cloudformation/resource/cfn/stepfunctions → stepfunctions/cfn/state-machine}/sim-cfn-state-machine-property-names.js +0 -5
  406. package/dist/service/stepfunctions/cfn/state-machine/sim-cfn-state-machine-property-names.js.map +1 -0
  407. package/dist/service/stepfunctions/cfn/state-machine/sim-cfn-state-machine-s3-definition.d.ts +37 -0
  408. package/dist/service/stepfunctions/cfn/state-machine/sim-cfn-state-machine-s3-definition.d.ts.map +1 -0
  409. package/dist/service/stepfunctions/cfn/state-machine/sim-cfn-state-machine-s3-definition.js +63 -0
  410. package/dist/service/stepfunctions/cfn/state-machine/sim-cfn-state-machine-s3-definition.js.map +1 -0
  411. package/dist/service/{cloudformation/resource/cfn/stepfunctions → stepfunctions/cfn/state-machine}/sim-cfn-state-machine-substitutions.d.ts +1 -1
  412. package/dist/service/stepfunctions/cfn/state-machine/sim-cfn-state-machine-substitutions.d.ts.map +1 -0
  413. package/dist/service/{cloudformation/resource/cfn/stepfunctions → stepfunctions/cfn/state-machine}/sim-cfn-state-machine-substitutions.js +3 -3
  414. package/dist/service/stepfunctions/cfn/state-machine/sim-cfn-state-machine-substitutions.js.map +1 -0
  415. package/dist/service/stepfunctions/cfn/state-machine/sim-cfn-state-machine-tags.d.ts +33 -0
  416. package/dist/service/stepfunctions/cfn/state-machine/sim-cfn-state-machine-tags.d.ts.map +1 -0
  417. package/dist/service/stepfunctions/cfn/state-machine/sim-cfn-state-machine-tags.js +58 -0
  418. package/dist/service/stepfunctions/cfn/state-machine/sim-cfn-state-machine-tags.js.map +1 -0
  419. package/dist/service/stepfunctions/command/execution/sim-states-execution-start.d.ts.map +1 -1
  420. package/dist/service/stepfunctions/command/execution/sim-states-execution-start.js +15 -4
  421. package/dist/service/stepfunctions/command/execution/sim-states-execution-start.js.map +1 -1
  422. package/dist/service/stepfunctions/command/machine/machine.command.d.ts +2 -0
  423. package/dist/service/stepfunctions/command/machine/machine.command.d.ts.map +1 -1
  424. package/dist/service/stepfunctions/command/machine/sim-state-machine-input.d.ts +2 -0
  425. package/dist/service/stepfunctions/command/machine/sim-state-machine-input.d.ts.map +1 -1
  426. package/dist/service/stepfunctions/command/machine/sim-state-machine-input.js +3 -1
  427. package/dist/service/stepfunctions/command/machine/sim-state-machine-input.js.map +1 -1
  428. package/dist/service/stepfunctions/command/sim-step-functions-command.types.d.ts +1 -0
  429. package/dist/service/stepfunctions/command/sim-step-functions-command.types.d.ts.map +1 -1
  430. package/dist/service/stepfunctions/command/tag/sim-state-machine-tag-commands.d.ts +36 -0
  431. package/dist/service/stepfunctions/command/tag/sim-state-machine-tag-commands.d.ts.map +1 -0
  432. package/dist/service/stepfunctions/command/tag/sim-state-machine-tag-commands.js +76 -0
  433. package/dist/service/stepfunctions/command/tag/sim-state-machine-tag-commands.js.map +1 -0
  434. package/dist/service/stepfunctions/command/tag/tag.command.d.ts +46 -0
  435. package/dist/service/stepfunctions/command/tag/tag.command.d.ts.map +1 -0
  436. package/dist/service/stepfunctions/command/tag/tag.command.js +2 -0
  437. package/dist/service/stepfunctions/command/tag/tag.command.js.map +1 -0
  438. package/dist/service/stepfunctions/data/sim-states-context-object.d.ts +45 -0
  439. package/dist/service/stepfunctions/data/sim-states-context-object.d.ts.map +1 -0
  440. package/dist/service/stepfunctions/data/sim-states-context-object.js +48 -0
  441. package/dist/service/stepfunctions/data/sim-states-context-object.js.map +1 -0
  442. package/dist/service/stepfunctions/data/sim-states-context-path.d.ts +22 -0
  443. package/dist/service/stepfunctions/data/sim-states-context-path.d.ts.map +1 -0
  444. package/dist/service/stepfunctions/data/sim-states-context-path.js +30 -0
  445. package/dist/service/stepfunctions/data/sim-states-context-path.js.map +1 -0
  446. package/dist/service/stepfunctions/data/sim-states-data-flow.d.ts +3 -2
  447. package/dist/service/stepfunctions/data/sim-states-data-flow.d.ts.map +1 -1
  448. package/dist/service/stepfunctions/data/sim-states-data-flow.js +10 -9
  449. package/dist/service/stepfunctions/data/sim-states-data-flow.js.map +1 -1
  450. package/dist/service/stepfunctions/data/sim-states-intrinsic.d.ts +1 -1
  451. package/dist/service/stepfunctions/data/sim-states-intrinsic.d.ts.map +1 -1
  452. package/dist/service/stepfunctions/data/sim-states-intrinsic.js +6 -7
  453. package/dist/service/stepfunctions/data/sim-states-intrinsic.js.map +1 -1
  454. package/dist/service/stepfunctions/data/sim-states-payload-template.d.ts +9 -6
  455. package/dist/service/stepfunctions/data/sim-states-payload-template.d.ts.map +1 -1
  456. package/dist/service/stepfunctions/data/sim-states-payload-template.js +16 -14
  457. package/dist/service/stepfunctions/data/sim-states-payload-template.js.map +1 -1
  458. package/dist/service/stepfunctions/data/sim-states-reference-path.d.ts.map +1 -1
  459. package/dist/service/stepfunctions/data/sim-states-reference-path.js +4 -2
  460. package/dist/service/stepfunctions/data/sim-states-reference-path.js.map +1 -1
  461. package/dist/service/stepfunctions/definition/sim-states-definition-parse.d.ts +8 -0
  462. package/dist/service/stepfunctions/definition/sim-states-definition-parse.d.ts.map +1 -1
  463. package/dist/service/stepfunctions/definition/sim-states-definition-parse.js +9 -1
  464. package/dist/service/stepfunctions/definition/sim-states-definition-parse.js.map +1 -1
  465. package/dist/service/stepfunctions/definition/sim-states-map-fields.d.ts +23 -0
  466. package/dist/service/stepfunctions/definition/sim-states-map-fields.d.ts.map +1 -0
  467. package/dist/service/stepfunctions/definition/sim-states-map-fields.js +60 -0
  468. package/dist/service/stepfunctions/definition/sim-states-map-fields.js.map +1 -0
  469. package/dist/service/stepfunctions/definition/sim-states-map-parse.d.ts +12 -0
  470. package/dist/service/stepfunctions/definition/sim-states-map-parse.d.ts.map +1 -0
  471. package/dist/service/stepfunctions/definition/sim-states-map-parse.js +56 -0
  472. package/dist/service/stepfunctions/definition/sim-states-map-parse.js.map +1 -0
  473. package/dist/service/stepfunctions/definition/sim-states-map-processor.d.ts +11 -0
  474. package/dist/service/stepfunctions/definition/sim-states-map-processor.d.ts.map +1 -0
  475. package/dist/service/stepfunctions/definition/sim-states-map-processor.js +62 -0
  476. package/dist/service/stepfunctions/definition/sim-states-map-processor.js.map +1 -0
  477. package/dist/service/stepfunctions/definition/sim-states-nested-refusal.d.ts +14 -0
  478. package/dist/service/stepfunctions/definition/sim-states-nested-refusal.d.ts.map +1 -0
  479. package/dist/service/stepfunctions/definition/sim-states-nested-refusal.js +23 -0
  480. package/dist/service/stepfunctions/definition/sim-states-nested-refusal.js.map +1 -0
  481. package/dist/service/stepfunctions/definition/sim-states-parallel-parse.d.ts +10 -0
  482. package/dist/service/stepfunctions/definition/sim-states-parallel-parse.d.ts.map +1 -0
  483. package/dist/service/stepfunctions/definition/sim-states-parallel-parse.js +50 -0
  484. package/dist/service/stepfunctions/definition/sim-states-parallel-parse.js.map +1 -0
  485. package/dist/service/stepfunctions/definition/sim-states-state-fields.d.ts.map +1 -1
  486. package/dist/service/stepfunctions/definition/sim-states-state-fields.js +5 -0
  487. package/dist/service/stepfunctions/definition/sim-states-state-fields.js.map +1 -1
  488. package/dist/service/stepfunctions/definition/sim-states-state-parse.d.ts.map +1 -1
  489. package/dist/service/stepfunctions/definition/sim-states-state-parse.js +15 -7
  490. package/dist/service/stepfunctions/definition/sim-states-state-parse.js.map +1 -1
  491. package/dist/service/stepfunctions/definition/sim-states-state.d.ts +35 -11
  492. package/dist/service/stepfunctions/definition/sim-states-state.d.ts.map +1 -1
  493. package/dist/service/stepfunctions/definition/sim-states-state.js +1 -15
  494. package/dist/service/stepfunctions/definition/sim-states-state.js.map +1 -1
  495. package/dist/service/stepfunctions/definition/sim-states-transitions.d.ts.map +1 -1
  496. package/dist/service/stepfunctions/definition/sim-states-transitions.js +14 -0
  497. package/dist/service/stepfunctions/definition/sim-states-transitions.js.map +1 -1
  498. package/dist/service/stepfunctions/definition/store/sim-s3-states-definition-store.d.ts +45 -0
  499. package/dist/service/stepfunctions/definition/store/sim-s3-states-definition-store.d.ts.map +1 -0
  500. package/dist/service/stepfunctions/definition/store/sim-s3-states-definition-store.js +58 -0
  501. package/dist/service/stepfunctions/definition/store/sim-s3-states-definition-store.js.map +1 -0
  502. package/dist/service/stepfunctions/definition/store/sim-states-definition-store.d.ts +34 -0
  503. package/dist/service/stepfunctions/definition/store/sim-states-definition-store.d.ts.map +1 -0
  504. package/dist/service/stepfunctions/definition/store/sim-states-definition-store.js +14 -0
  505. package/dist/service/stepfunctions/definition/store/sim-states-definition-store.js.map +1 -0
  506. package/dist/service/stepfunctions/error/sim-step-functions.error.d.ts +36 -0
  507. package/dist/service/stepfunctions/error/sim-step-functions.error.d.ts.map +1 -1
  508. package/dist/service/stepfunctions/error/sim-step-functions.error.js +42 -0
  509. package/dist/service/stepfunctions/error/sim-step-functions.error.js.map +1 -1
  510. package/dist/service/stepfunctions/execution/sim-states-attempt.d.ts +16 -0
  511. package/dist/service/stepfunctions/execution/sim-states-attempt.d.ts.map +1 -0
  512. package/dist/service/stepfunctions/execution/sim-states-attempt.js +2 -0
  513. package/dist/service/stepfunctions/execution/sim-states-attempt.js.map +1 -0
  514. package/dist/service/stepfunctions/execution/sim-states-child-failure.d.ts +11 -0
  515. package/dist/service/stepfunctions/execution/sim-states-child-failure.d.ts.map +1 -0
  516. package/dist/service/stepfunctions/execution/sim-states-child-failure.js +20 -0
  517. package/dist/service/stepfunctions/execution/sim-states-child-failure.js.map +1 -0
  518. package/dist/service/stepfunctions/execution/sim-states-child-run.d.ts +55 -0
  519. package/dist/service/stepfunctions/execution/sim-states-child-run.d.ts.map +1 -0
  520. package/dist/service/stepfunctions/execution/sim-states-child-run.js +86 -0
  521. package/dist/service/stepfunctions/execution/sim-states-child-run.js.map +1 -0
  522. package/dist/service/stepfunctions/execution/sim-states-child-runs.d.ts +69 -0
  523. package/dist/service/stepfunctions/execution/sim-states-child-runs.d.ts.map +1 -0
  524. package/dist/service/stepfunctions/execution/sim-states-child-runs.js +114 -0
  525. package/dist/service/stepfunctions/execution/sim-states-child-runs.js.map +1 -0
  526. package/dist/service/stepfunctions/execution/sim-states-child-walk.d.ts +43 -0
  527. package/dist/service/stepfunctions/execution/sim-states-child-walk.d.ts.map +1 -0
  528. package/dist/service/stepfunctions/execution/sim-states-child-walk.js +2 -0
  529. package/dist/service/stepfunctions/execution/sim-states-child-walk.js.map +1 -0
  530. package/dist/service/stepfunctions/execution/sim-states-child.d.ts +41 -0
  531. package/dist/service/stepfunctions/execution/sim-states-child.d.ts.map +1 -0
  532. package/dist/service/stepfunctions/execution/sim-states-child.js +2 -0
  533. package/dist/service/stepfunctions/execution/sim-states-child.js.map +1 -0
  534. package/dist/service/stepfunctions/execution/sim-states-execution.d.ts +32 -3
  535. package/dist/service/stepfunctions/execution/sim-states-execution.d.ts.map +1 -1
  536. package/dist/service/stepfunctions/execution/sim-states-execution.js +42 -2
  537. package/dist/service/stepfunctions/execution/sim-states-execution.js.map +1 -1
  538. package/dist/service/stepfunctions/execution/sim-states-fan-out-outcome.d.ts +19 -0
  539. package/dist/service/stepfunctions/execution/sim-states-fan-out-outcome.d.ts.map +1 -0
  540. package/dist/service/stepfunctions/execution/sim-states-fan-out-outcome.js +15 -0
  541. package/dist/service/stepfunctions/execution/sim-states-fan-out-outcome.js.map +1 -0
  542. package/dist/service/stepfunctions/execution/sim-states-fan-out.d.ts +46 -0
  543. package/dist/service/stepfunctions/execution/sim-states-fan-out.d.ts.map +1 -0
  544. package/dist/service/stepfunctions/execution/sim-states-fan-out.js +106 -0
  545. package/dist/service/stepfunctions/execution/sim-states-fan-out.js.map +1 -0
  546. package/dist/service/stepfunctions/execution/sim-states-interpreter.d.ts +18 -11
  547. package/dist/service/stepfunctions/execution/sim-states-interpreter.d.ts.map +1 -1
  548. package/dist/service/stepfunctions/execution/sim-states-interpreter.js +55 -65
  549. package/dist/service/stepfunctions/execution/sim-states-interpreter.js.map +1 -1
  550. package/dist/service/stepfunctions/execution/sim-states-map-items.d.ts +13 -0
  551. package/dist/service/stepfunctions/execution/sim-states-map-items.d.ts.map +1 -0
  552. package/dist/service/stepfunctions/execution/sim-states-map-items.js +38 -0
  553. package/dist/service/stepfunctions/execution/sim-states-map-items.js.map +1 -0
  554. package/dist/service/stepfunctions/execution/sim-states-map-iteration.d.ts +32 -0
  555. package/dist/service/stepfunctions/execution/sim-states-map-iteration.d.ts.map +1 -0
  556. package/dist/service/stepfunctions/execution/sim-states-map-iteration.js +37 -0
  557. package/dist/service/stepfunctions/execution/sim-states-map-iteration.js.map +1 -0
  558. package/dist/service/stepfunctions/execution/sim-states-run-choice.d.ts.map +1 -1
  559. package/dist/service/stepfunctions/execution/sim-states-run-choice.js +2 -2
  560. package/dist/service/stepfunctions/execution/sim-states-run-choice.js.map +1 -1
  561. package/dist/service/stepfunctions/execution/sim-states-run-map.d.ts +12 -0
  562. package/dist/service/stepfunctions/execution/sim-states-run-map.d.ts.map +1 -0
  563. package/dist/service/stepfunctions/execution/sim-states-run-map.js +25 -0
  564. package/dist/service/stepfunctions/execution/sim-states-run-map.js.map +1 -0
  565. package/dist/service/stepfunctions/execution/sim-states-run-parallel.d.ts +16 -0
  566. package/dist/service/stepfunctions/execution/sim-states-run-parallel.d.ts.map +1 -0
  567. package/dist/service/stepfunctions/execution/sim-states-run-parallel.js +31 -0
  568. package/dist/service/stepfunctions/execution/sim-states-run-parallel.js.map +1 -0
  569. package/dist/service/stepfunctions/execution/sim-states-run-record.d.ts +47 -0
  570. package/dist/service/stepfunctions/execution/sim-states-run-record.d.ts.map +1 -0
  571. package/dist/service/stepfunctions/execution/sim-states-run-record.js +2 -0
  572. package/dist/service/stepfunctions/execution/sim-states-run-record.js.map +1 -0
  573. package/dist/service/stepfunctions/execution/sim-states-run-state.d.ts +4 -3
  574. package/dist/service/stepfunctions/execution/sim-states-run-state.d.ts.map +1 -1
  575. package/dist/service/stepfunctions/execution/sim-states-run-state.js +20 -11
  576. package/dist/service/stepfunctions/execution/sim-states-run-state.js.map +1 -1
  577. package/dist/service/stepfunctions/execution/sim-states-run-task.d.ts.map +1 -1
  578. package/dist/service/stepfunctions/execution/sim-states-run-task.js +2 -2
  579. package/dist/service/stepfunctions/execution/sim-states-run-task.js.map +1 -1
  580. package/dist/service/stepfunctions/execution/sim-states-run-wait.d.ts.map +1 -1
  581. package/dist/service/stepfunctions/execution/sim-states-run-wait.js +2 -2
  582. package/dist/service/stepfunctions/execution/sim-states-run-wait.js.map +1 -1
  583. package/dist/service/stepfunctions/execution/sim-states-settlement.d.ts +7 -3
  584. package/dist/service/stepfunctions/execution/sim-states-settlement.d.ts.map +1 -1
  585. package/dist/service/stepfunctions/execution/sim-states-settlement.js +11 -5
  586. package/dist/service/stepfunctions/execution/sim-states-settlement.js.map +1 -1
  587. package/dist/service/stepfunctions/execution/sim-states-state-attempts.d.ts +37 -0
  588. package/dist/service/stepfunctions/execution/sim-states-state-attempts.d.ts.map +1 -0
  589. package/dist/service/stepfunctions/execution/sim-states-state-attempts.js +112 -0
  590. package/dist/service/stepfunctions/execution/sim-states-state-attempts.js.map +1 -0
  591. package/dist/service/stepfunctions/execution/sim-states-state-outcome.d.ts +69 -15
  592. package/dist/service/stepfunctions/execution/sim-states-state-outcome.d.ts.map +1 -1
  593. package/dist/service/stepfunctions/execution/sim-states-state-runner.d.ts +26 -12
  594. package/dist/service/stepfunctions/execution/sim-states-state-runner.d.ts.map +1 -1
  595. package/dist/service/stepfunctions/execution/sim-states-state-runner.js +55 -15
  596. package/dist/service/stepfunctions/execution/sim-states-state-runner.js.map +1 -1
  597. package/dist/service/stepfunctions/execution/sim-states-walk-steps.d.ts +19 -0
  598. package/dist/service/stepfunctions/execution/sim-states-walk-steps.d.ts.map +1 -0
  599. package/dist/service/stepfunctions/execution/sim-states-walk-steps.js +35 -0
  600. package/dist/service/stepfunctions/execution/sim-states-walk-steps.js.map +1 -0
  601. package/dist/service/stepfunctions/execution/sim-states-walk.d.ts +19 -0
  602. package/dist/service/stepfunctions/execution/sim-states-walk.d.ts.map +1 -0
  603. package/dist/service/stepfunctions/execution/sim-states-walk.js +2 -0
  604. package/dist/service/stepfunctions/execution/sim-states-walk.js.map +1 -0
  605. package/dist/service/stepfunctions/execution/sim-states-walks.d.ts +25 -0
  606. package/dist/service/stepfunctions/execution/sim-states-walks.d.ts.map +1 -0
  607. package/dist/service/stepfunctions/execution/sim-states-walks.js +25 -0
  608. package/dist/service/stepfunctions/execution/sim-states-walks.js.map +1 -0
  609. package/dist/service/stepfunctions/index.d.ts +10 -3
  610. package/dist/service/stepfunctions/index.d.ts.map +1 -1
  611. package/dist/service/stepfunctions/index.js +4 -2
  612. package/dist/service/stepfunctions/index.js.map +1 -1
  613. package/dist/service/stepfunctions/machine/sim-state-machine-tag.d.ts +43 -0
  614. package/dist/service/stepfunctions/machine/sim-state-machine-tag.d.ts.map +1 -0
  615. package/dist/service/stepfunctions/machine/sim-state-machine-tag.js +111 -0
  616. package/dist/service/stepfunctions/machine/sim-state-machine-tag.js.map +1 -0
  617. package/dist/service/stepfunctions/machine/sim-state-machine-tags.d.ts +39 -0
  618. package/dist/service/stepfunctions/machine/sim-state-machine-tags.d.ts.map +1 -0
  619. package/dist/service/stepfunctions/machine/sim-state-machine-tags.js +80 -0
  620. package/dist/service/stepfunctions/machine/sim-state-machine-tags.js.map +1 -0
  621. package/dist/service/stepfunctions/machine/sim-state-machine.d.ts +6 -0
  622. package/dist/service/stepfunctions/machine/sim-state-machine.d.ts.map +1 -1
  623. package/dist/service/stepfunctions/machine/sim-state-machine.js +5 -0
  624. package/dist/service/stepfunctions/machine/sim-state-machine.js.map +1 -1
  625. package/dist/service/stepfunctions/retry/sim-states-attempt-state.d.ts +37 -0
  626. package/dist/service/stepfunctions/retry/sim-states-attempt-state.d.ts.map +1 -0
  627. package/dist/service/stepfunctions/retry/sim-states-attempt-state.js +38 -0
  628. package/dist/service/stepfunctions/retry/sim-states-attempt-state.js.map +1 -0
  629. package/dist/service/stepfunctions/retry/sim-states-catch-outcome.d.ts +11 -0
  630. package/dist/service/stepfunctions/retry/sim-states-catch-outcome.d.ts.map +1 -0
  631. package/dist/service/stepfunctions/retry/sim-states-catch-outcome.js +20 -0
  632. package/dist/service/stepfunctions/retry/sim-states-catch-outcome.js.map +1 -0
  633. package/dist/service/stepfunctions/retry/sim-states-catch-parse.d.ts +11 -0
  634. package/dist/service/stepfunctions/retry/sim-states-catch-parse.d.ts.map +1 -0
  635. package/dist/service/stepfunctions/retry/sim-states-catch-parse.js +49 -0
  636. package/dist/service/stepfunctions/retry/sim-states-catch-parse.js.map +1 -0
  637. package/dist/service/stepfunctions/retry/sim-states-catcher.d.ts +29 -0
  638. package/dist/service/stepfunctions/retry/sim-states-catcher.d.ts.map +1 -0
  639. package/dist/service/stepfunctions/retry/sim-states-catcher.js +31 -0
  640. package/dist/service/stepfunctions/retry/sim-states-catcher.js.map +1 -0
  641. package/dist/service/stepfunctions/retry/sim-states-error-equals.d.ts +19 -0
  642. package/dist/service/stepfunctions/retry/sim-states-error-equals.d.ts.map +1 -0
  643. package/dist/service/stepfunctions/retry/sim-states-error-equals.js +69 -0
  644. package/dist/service/stepfunctions/retry/sim-states-error-equals.js.map +1 -0
  645. package/dist/service/stepfunctions/retry/sim-states-error-handling.d.ts +31 -0
  646. package/dist/service/stepfunctions/retry/sim-states-error-handling.d.ts.map +1 -0
  647. package/dist/service/stepfunctions/retry/sim-states-error-handling.js +40 -0
  648. package/dist/service/stepfunctions/retry/sim-states-error-handling.js.map +1 -0
  649. package/dist/service/stepfunctions/retry/sim-states-error-name.d.ts +29 -0
  650. package/dist/service/stepfunctions/retry/sim-states-error-name.d.ts.map +1 -0
  651. package/dist/service/stepfunctions/retry/sim-states-error-name.js +34 -0
  652. package/dist/service/stepfunctions/retry/sim-states-error-name.js.map +1 -0
  653. package/dist/service/stepfunctions/retry/sim-states-recover.d.ts +31 -0
  654. package/dist/service/stepfunctions/retry/sim-states-recover.d.ts.map +1 -0
  655. package/dist/service/stepfunctions/retry/sim-states-recover.js +23 -0
  656. package/dist/service/stepfunctions/retry/sim-states-recover.js.map +1 -0
  657. package/dist/service/stepfunctions/retry/sim-states-recovered.d.ts +22 -0
  658. package/dist/service/stepfunctions/retry/sim-states-recovered.d.ts.map +1 -0
  659. package/dist/service/stepfunctions/retry/sim-states-recovered.js +33 -0
  660. package/dist/service/stepfunctions/retry/sim-states-recovered.js.map +1 -0
  661. package/dist/service/stepfunctions/retry/sim-states-retrier.d.ts +35 -0
  662. package/dist/service/stepfunctions/retry/sim-states-retrier.d.ts.map +1 -0
  663. package/dist/service/stepfunctions/retry/sim-states-retrier.js +31 -0
  664. package/dist/service/stepfunctions/retry/sim-states-retrier.js.map +1 -0
  665. package/dist/service/stepfunctions/retry/sim-states-retry-outcome.d.ts +12 -0
  666. package/dist/service/stepfunctions/retry/sim-states-retry-outcome.d.ts.map +1 -0
  667. package/dist/service/stepfunctions/retry/sim-states-retry-outcome.js +44 -0
  668. package/dist/service/stepfunctions/retry/sim-states-retry-outcome.js.map +1 -0
  669. package/dist/service/stepfunctions/retry/sim-states-retry-parse.d.ts +11 -0
  670. package/dist/service/stepfunctions/retry/sim-states-retry-parse.d.ts.map +1 -0
  671. package/dist/service/stepfunctions/retry/sim-states-retry-parse.js +76 -0
  672. package/dist/service/stepfunctions/retry/sim-states-retry-parse.js.map +1 -0
  673. package/dist/service/stepfunctions/retry/sim-states-task-deadline.d.ts +43 -0
  674. package/dist/service/stepfunctions/retry/sim-states-task-deadline.d.ts.map +1 -0
  675. package/dist/service/stepfunctions/retry/sim-states-task-deadline.js +76 -0
  676. package/dist/service/stepfunctions/retry/sim-states-task-deadline.js.map +1 -0
  677. package/dist/service/stepfunctions/retry/sim-states-task-handling.d.ts +11 -0
  678. package/dist/service/stepfunctions/retry/sim-states-task-handling.d.ts.map +1 -0
  679. package/dist/service/stepfunctions/retry/sim-states-task-handling.js +2 -0
  680. package/dist/service/stepfunctions/retry/sim-states-task-handling.js.map +1 -0
  681. package/dist/service/stepfunctions/sdk/sim-step-functions-sdk-command-router.d.ts.map +1 -1
  682. package/dist/service/stepfunctions/sdk/sim-step-functions-sdk-command-router.js +12 -0
  683. package/dist/service/stepfunctions/sdk/sim-step-functions-sdk-command-router.js.map +1 -1
  684. package/dist/service/stepfunctions/sim-step-functions-inspection.d.ts +28 -0
  685. package/dist/service/stepfunctions/sim-step-functions-inspection.d.ts.map +1 -1
  686. package/dist/service/stepfunctions/sim-step-functions-inspection.js +38 -0
  687. package/dist/service/stepfunctions/sim-step-functions-inspection.js.map +1 -1
  688. package/dist/service/stepfunctions/sim-step-functions.d.ts +17 -0
  689. package/dist/service/stepfunctions/sim-step-functions.d.ts.map +1 -1
  690. package/dist/service/stepfunctions/sim-step-functions.js +31 -1
  691. package/dist/service/stepfunctions/sim-step-functions.js.map +1 -1
  692. package/dist/service/stepfunctions/task/service/sim-states-optimized-integrations.d.ts +36 -0
  693. package/dist/service/stepfunctions/task/service/sim-states-optimized-integrations.d.ts.map +1 -0
  694. package/dist/service/stepfunctions/task/service/sim-states-optimized-integrations.js +115 -0
  695. package/dist/service/stepfunctions/task/service/sim-states-optimized-integrations.js.map +1 -0
  696. package/dist/service/stepfunctions/task/service/sim-states-service-call.d.ts +25 -0
  697. package/dist/service/stepfunctions/task/service/sim-states-service-call.d.ts.map +1 -0
  698. package/dist/service/stepfunctions/task/service/sim-states-service-call.js +51 -0
  699. package/dist/service/stepfunctions/task/service/sim-states-service-call.js.map +1 -0
  700. package/dist/service/stepfunctions/task/service/sim-states-service-failure.d.ts +17 -0
  701. package/dist/service/stepfunctions/task/service/sim-states-service-failure.d.ts.map +1 -0
  702. package/dist/service/stepfunctions/task/service/sim-states-service-failure.js +43 -0
  703. package/dist/service/stepfunctions/task/service/sim-states-service-failure.js.map +1 -0
  704. package/dist/service/stepfunctions/task/service/sim-states-service-name.d.ts +42 -0
  705. package/dist/service/stepfunctions/task/service/sim-states-service-name.d.ts.map +1 -0
  706. package/dist/service/stepfunctions/task/service/sim-states-service-name.js +74 -0
  707. package/dist/service/stepfunctions/task/service/sim-states-service-name.js.map +1 -0
  708. package/dist/service/stepfunctions/task/service/sim-states-service-resource.d.ts +10 -0
  709. package/dist/service/stepfunctions/task/service/sim-states-service-resource.d.ts.map +1 -0
  710. package/dist/service/stepfunctions/task/service/sim-states-service-resource.js +79 -0
  711. package/dist/service/stepfunctions/task/service/sim-states-service-resource.js.map +1 -0
  712. package/dist/service/stepfunctions/task/service/sim-states-service-shape.d.ts +27 -0
  713. package/dist/service/stepfunctions/task/service/sim-states-service-shape.d.ts.map +1 -0
  714. package/dist/service/stepfunctions/task/service/sim-states-service-shape.js +2 -0
  715. package/dist/service/stepfunctions/task/service/sim-states-service-shape.js.map +1 -0
  716. package/dist/service/stepfunctions/task/service/sim-states-service-target.d.ts +33 -0
  717. package/dist/service/stepfunctions/task/service/sim-states-service-target.d.ts.map +1 -0
  718. package/dist/service/stepfunctions/task/service/sim-states-service-target.js +60 -0
  719. package/dist/service/stepfunctions/task/service/sim-states-service-target.js.map +1 -0
  720. package/dist/service/stepfunctions/task/sim-aws-states-task-targets.d.ts +11 -9
  721. package/dist/service/stepfunctions/task/sim-aws-states-task-targets.d.ts.map +1 -1
  722. package/dist/service/stepfunctions/task/sim-aws-states-task-targets.js +16 -20
  723. package/dist/service/stepfunctions/task/sim-aws-states-task-targets.js.map +1 -1
  724. package/dist/service/stepfunctions/task/sim-states-function-arn-target.d.ts +2 -2
  725. package/dist/service/stepfunctions/task/sim-states-function-arn-target.d.ts.map +1 -1
  726. package/dist/service/stepfunctions/task/sim-states-function-arn-target.js +2 -2
  727. package/dist/service/stepfunctions/task/sim-states-function-arn-target.js.map +1 -1
  728. package/dist/service/stepfunctions/task/sim-states-lambda-invoke-parameters.d.ts +9 -0
  729. package/dist/service/stepfunctions/task/sim-states-lambda-invoke-parameters.d.ts.map +1 -0
  730. package/dist/service/stepfunctions/task/sim-states-lambda-invoke-parameters.js +37 -0
  731. package/dist/service/stepfunctions/task/sim-states-lambda-invoke-parameters.js.map +1 -0
  732. package/dist/service/stepfunctions/task/sim-states-lambda-invoke-target.d.ts +2 -2
  733. package/dist/service/stepfunctions/task/sim-states-lambda-invoke-target.d.ts.map +1 -1
  734. package/dist/service/stepfunctions/task/sim-states-lambda-invoke-target.js +2 -2
  735. package/dist/service/stepfunctions/task/sim-states-lambda-invoke-target.js.map +1 -1
  736. package/dist/service/stepfunctions/task/sim-states-lambda-target.d.ts +38 -0
  737. package/dist/service/stepfunctions/task/sim-states-lambda-target.d.ts.map +1 -0
  738. package/dist/service/stepfunctions/task/sim-states-lambda-target.js +37 -0
  739. package/dist/service/stepfunctions/task/sim-states-lambda-target.js.map +1 -0
  740. package/dist/service/stepfunctions/task/sim-states-task-fields.d.ts +6 -5
  741. package/dist/service/stepfunctions/task/sim-states-task-fields.d.ts.map +1 -1
  742. package/dist/service/stepfunctions/task/sim-states-task-fields.js +9 -10
  743. package/dist/service/stepfunctions/task/sim-states-task-fields.js.map +1 -1
  744. package/dist/service/stepfunctions/task/sim-states-task-function.d.ts +2 -2
  745. package/dist/service/stepfunctions/task/sim-states-task-function.d.ts.map +1 -1
  746. package/dist/service/stepfunctions/task/sim-states-task-resource.d.ts +2 -2
  747. package/dist/service/stepfunctions/task/sim-states-task-resource.d.ts.map +1 -1
  748. package/dist/service/stepfunctions/task/sim-states-task-resource.js +16 -40
  749. package/dist/service/stepfunctions/task/sim-states-task-resource.js.map +1 -1
  750. package/dist/service/stepfunctions/task/sim-states-task-target.d.ts +33 -17
  751. package/dist/service/stepfunctions/task/sim-states-task-target.d.ts.map +1 -1
  752. package/dist/service/stepfunctions/task/sim-states-task-target.js +4 -5
  753. package/dist/service/stepfunctions/task/sim-states-task-target.js.map +1 -1
  754. package/dist/util/process/sim-process-environment.d.ts +9 -0
  755. package/dist/util/process/sim-process-environment.d.ts.map +1 -1
  756. package/dist/util/process/sim-process-environment.js +17 -0
  757. package/dist/util/process/sim-process-environment.js.map +1 -1
  758. package/dist/util/throttle/sim-token-bucket.d.ts +32 -0
  759. package/dist/util/throttle/sim-token-bucket.d.ts.map +1 -0
  760. package/dist/util/throttle/sim-token-bucket.js +53 -0
  761. package/dist/util/throttle/sim-token-bucket.js.map +1 -0
  762. package/package.json +3 -2
  763. package/dist/service/cloudformation/resource/cfn/stepfunctions/sim-cfn-state-machine-creator.d.ts.map +0 -1
  764. package/dist/service/cloudformation/resource/cfn/stepfunctions/sim-cfn-state-machine-creator.js.map +0 -1
  765. package/dist/service/cloudformation/resource/cfn/stepfunctions/sim-cfn-state-machine-definition.d.ts.map +0 -1
  766. package/dist/service/cloudformation/resource/cfn/stepfunctions/sim-cfn-state-machine-definition.js.map +0 -1
  767. package/dist/service/cloudformation/resource/cfn/stepfunctions/sim-cfn-state-machine-name.d.ts.map +0 -1
  768. package/dist/service/cloudformation/resource/cfn/stepfunctions/sim-cfn-state-machine-name.js.map +0 -1
  769. package/dist/service/cloudformation/resource/cfn/stepfunctions/sim-cfn-state-machine-properties.d.ts.map +0 -1
  770. package/dist/service/cloudformation/resource/cfn/stepfunctions/sim-cfn-state-machine-properties.js.map +0 -1
  771. package/dist/service/cloudformation/resource/cfn/stepfunctions/sim-cfn-state-machine-property-names.d.ts.map +0 -1
  772. package/dist/service/cloudformation/resource/cfn/stepfunctions/sim-cfn-state-machine-property-names.js.map +0 -1
  773. package/dist/service/cloudformation/resource/cfn/stepfunctions/sim-cfn-state-machine-substitutions.d.ts.map +0 -1
  774. package/dist/service/cloudformation/resource/cfn/stepfunctions/sim-cfn-state-machine-substitutions.js.map +0 -1
  775. package/dist/service/cloudformation/resource/cfn/stepfunctions/sim-cfn-step-functions-resource-deleter.d.ts.map +0 -1
  776. package/dist/service/cloudformation/resource/cfn/stepfunctions/sim-cfn-step-functions-resource-deleter.js.map +0 -1
  777. package/dist/service/cloudformation/resource/cfn/stepfunctions/sim-cfn-step-functions-resource-error.d.ts.map +0 -1
  778. package/dist/service/cloudformation/resource/cfn/stepfunctions/sim-cfn-step-functions-resource-error.js.map +0 -1
  779. package/dist/service/cloudformation/resource/cfn/stepfunctions/sim-cfn-step-functions-resource-types.d.ts.map +0 -1
  780. package/dist/service/cloudformation/resource/cfn/stepfunctions/sim-cfn-step-functions-resource-types.js.map +0 -1
  781. package/dist/service/cloudformation/resource/cfn/stepfunctions/sim-step-functions-cfn-resource-factory.d.ts.map +0 -1
  782. package/dist/service/cloudformation/resource/cfn/stepfunctions/sim-step-functions-cfn-resource-factory.js.map +0 -1
  783. /package/dist/service/{cloudformation/resource/cfn/stepfunctions → stepfunctions/cfn}/sim-cfn-step-functions-resource-error.d.ts +0 -0
  784. /package/dist/service/{cloudformation/resource/cfn/stepfunctions → stepfunctions/cfn}/sim-cfn-step-functions-resource-types.d.ts +0 -0
  785. /package/dist/service/{cloudformation/resource/cfn/stepfunctions → stepfunctions/cfn}/sim-cfn-step-functions-resource-types.js +0 -0
  786. /package/dist/service/{cloudformation/resource/cfn/stepfunctions → stepfunctions/cfn/state-machine}/sim-cfn-state-machine-name.d.ts +0 -0
  787. /package/dist/service/{cloudformation/resource/cfn/stepfunctions → stepfunctions/cfn/state-machine}/sim-cfn-state-machine-property-names.d.ts +0 -0
@@ -0,0 +1,51 @@
1
+ import { resolveSimSdkCommandRouter } from "../../../../sdk/router/resolve-sim-sdk-command-router.js";
2
+ import { isRecord } from "../../../../util/type-guard/record.js";
3
+ import { SimStatesTaskFailure } from "../../error/sim-step-functions.error.js";
4
+ /**
5
+ * Find one operation on a simulated service, in the state machine's own
6
+ * Account and Region.
7
+ *
8
+ * The service comes into existence here, on the first task that calls it, so a
9
+ * state machine that is never run reaches nothing. An operation the simulated
10
+ * service has no implementation for is refused here rather than when the state
11
+ * machine was created, because the operations a service runs belong to the
12
+ * service and there was none to ask then.
13
+ */
14
+ export function simStatesServiceRoute(task, call) {
15
+ const { serviceId } = call.service;
16
+ const router = resolveSimSdkCommandRouter(task.simAws, serviceId, task.scope.accountId, task.scope.regionName);
17
+ const route = router.route(call.commandName);
18
+ if (route === undefined) {
19
+ throw new SimStatesTaskFailure(`The Task state ${task.stateName} calls ${call.operation} on ` +
20
+ `${serviceId}, which this simulator does not run. It runs ` +
21
+ `${operationNames(router.supportedCommandNames()).join(", ")}.`);
22
+ }
23
+ return route;
24
+ }
25
+ /**
26
+ * Read what the service answered as the JSON the execution carries on with.
27
+ *
28
+ * The SDK's own response metadata is dropped, because a task's result is the
29
+ * API's answer rather than the client's. The rest crosses the same JSON
30
+ * serialisation a real response does, so a date the service stamped reaches
31
+ * the next state as the string it would there.
32
+ */
33
+ export function simStatesServiceResult(answered) {
34
+ if (!isRecord(answered)) {
35
+ return (answered ?? null);
36
+ }
37
+ const { $metadata: _metadata, ...rest } = answered;
38
+ const serialised = JSON.stringify(rest);
39
+ return JSON.parse(serialised);
40
+ }
41
+ /**
42
+ * The operations a simulated service runs, written the way an integration
43
+ * names them.
44
+ */
45
+ function operationNames(commandNames) {
46
+ return commandNames
47
+ .map((name) => name.replace(/Command$/, ""))
48
+ .map((name) => `${name.charAt(0).toLowerCase()}${name.slice(1)}`)
49
+ .toSorted((one, other) => one.localeCompare(other));
50
+ }
51
+ //# sourceMappingURL=sim-states-service-call.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"sim-states-service-call.js","sourceRoot":"","sources":["../../../../../src/service/stepfunctions/task/service/sim-states-service-call.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,0BAA0B,EAAE,MAAM,0DAA0D,CAAC;AAGtG,OAAO,EAAE,QAAQ,EAAE,MAAM,uCAAuC,CAAC;AACjE,OAAO,EAAE,oBAAoB,EAAE,MAAM,yCAAyC,CAAC;AAI/E;;;;;;;;;GASG;AACH,MAAM,UAAU,qBAAqB,CACnC,IAA0B,EAC1B,IAA0B;IAE1B,MAAM,EAAE,SAAS,EAAE,GAAG,IAAI,CAAC,OAAO,CAAC;IACnC,MAAM,MAAM,GAAG,0BAA0B,CACvC,IAAI,CAAC,MAAM,EACX,SAAS,EACT,IAAI,CAAC,KAAK,CAAC,SAAS,EACpB,IAAI,CAAC,KAAK,CAAC,UAAU,CACtB,CAAC;IACF,MAAM,KAAK,GAAG,MAAM,CAAC,KAAK,CAAC,IAAI,CAAC,WAAW,CAAC,CAAC;IAE7C,IAAI,KAAK,KAAK,SAAS,EAAE,CAAC;QACxB,MAAM,IAAI,oBAAoB,CAC5B,kBAAkB,IAAI,CAAC,SAAS,UAAU,IAAI,CAAC,SAAS,MAAM;YAC5D,GAAG,SAAS,+CAA+C;YAC3D,GAAG,cAAc,CAAC,MAAM,CAAC,qBAAqB,EAAE,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,GAAG,CAClE,CAAC;IACJ,CAAC;IAED,OAAO,KAAK,CAAC;AACf,CAAC;AAED;;;;;;;GAOG;AACH,MAAM,UAAU,sBAAsB,CAAC,QAAiB;IACtD,IAAI,CAAC,QAAQ,CAAC,QAAQ,CAAC,EAAE,CAAC;QACxB,OAAO,CAAC,QAAQ,IAAI,IAAI,CAAc,CAAC;IACzC,CAAC;IAED,MAAM,EAAE,SAAS,EAAE,SAAS,EAAE,GAAG,IAAI,EAAE,GAAG,QAAQ,CAAC;IACnD,MAAM,UAAU,GAAG,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,CAAC;IAExC,OAAO,IAAI,CAAC,KAAK,CAAC,UAAU,CAAc,CAAC;AAC7C,CAAC;AAED;;;GAGG;AACH,SAAS,cAAc,CAAC,YAA+B;IACrD,OAAO,YAAY;SAChB,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,IAAI,CAAC,OAAO,CAAC,UAAU,EAAE,EAAE,CAAC,CAAC;SAC3C,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,GAAG,IAAI,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,WAAW,EAAE,GAAG,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,EAAE,CAAC;SAChE,QAAQ,CAAC,CAAC,GAAG,EAAE,KAAK,EAAE,EAAE,CAAC,GAAG,CAAC,aAAa,CAAC,KAAK,CAAC,CAAC,CAAC;AACxD,CAAC"}
@@ -0,0 +1,17 @@
1
+ import type { SimStatesServiceCall } from "./sim-states-service-shape.js";
2
+ /**
3
+ * What a service refusing a task's call is called.
4
+ *
5
+ * Amazon States Language names a service error after the service and the error
6
+ * together, so `Retry` and `Catch` can tell one refusal from another. A
7
+ * conditional write that did not hold fails the task as
8
+ * `DynamoDb.ConditionalCheckFailedException`, and a role that may not write
9
+ * fails it as `DynamoDb.AccessDenied`, the name simulated IAM gives a
10
+ * refusal.
11
+ *
12
+ * Anything raising under a JavaScript error name never reached the service, so
13
+ * it fails the task as `States.TaskFailed` rather than being reported as
14
+ * something the service said.
15
+ */
16
+ export declare function simStatesServiceFailure(error: unknown, call: SimStatesServiceCall, stateName: string): Error;
17
+ //# sourceMappingURL=sim-states-service-failure.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"sim-states-service-failure.d.ts","sourceRoot":"","sources":["../../../../../src/service/stepfunctions/task/service/sim-states-service-failure.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,+BAA+B,CAAC;AAoB1E;;;;;;;;;;;;;GAaG;AACH,wBAAgB,uBAAuB,CACrC,KAAK,EAAE,OAAO,EACd,IAAI,EAAE,oBAAoB,EAC1B,SAAS,EAAE,MAAM,GAChB,KAAK,CAeP"}
@@ -0,0 +1,43 @@
1
+ import { SimStatesServiceFailure, SimStatesTaskFailure, } from "../../error/sim-step-functions.error.js";
2
+ /**
3
+ * The error names JavaScript gives its own failures.
4
+ *
5
+ * A service names what it refused, and anything raising under one of these
6
+ * names is not the service answering: it is something going wrong on the way
7
+ * there.
8
+ */
9
+ const javascriptErrorNames = new Set([
10
+ "AggregateError",
11
+ "Error",
12
+ "EvalError",
13
+ "RangeError",
14
+ "ReferenceError",
15
+ "SyntaxError",
16
+ "TypeError",
17
+ "URIError",
18
+ ]);
19
+ /**
20
+ * What a service refusing a task's call is called.
21
+ *
22
+ * Amazon States Language names a service error after the service and the error
23
+ * together, so `Retry` and `Catch` can tell one refusal from another. A
24
+ * conditional write that did not hold fails the task as
25
+ * `DynamoDb.ConditionalCheckFailedException`, and a role that may not write
26
+ * fails it as `DynamoDb.AccessDenied`, the name simulated IAM gives a
27
+ * refusal.
28
+ *
29
+ * Anything raising under a JavaScript error name never reached the service, so
30
+ * it fails the task as `States.TaskFailed` rather than being reported as
31
+ * something the service said.
32
+ */
33
+ export function simStatesServiceFailure(error, call, stateName) {
34
+ const raised = error instanceof Error ? error.name : "";
35
+ const said = error instanceof Error ? error.message : String(error);
36
+ const message = `The ${call.operation} call the Task state ${stateName} made was ` +
37
+ `refused: ${said}`;
38
+ if (raised === "" || javascriptErrorNames.has(raised)) {
39
+ return new SimStatesTaskFailure(message);
40
+ }
41
+ return new SimStatesServiceFailure(message, `${call.service.errorPrefix}.${raised}`);
42
+ }
43
+ //# sourceMappingURL=sim-states-service-failure.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"sim-states-service-failure.js","sourceRoot":"","sources":["../../../../../src/service/stepfunctions/task/service/sim-states-service-failure.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,uBAAuB,EACvB,oBAAoB,GACrB,MAAM,yCAAyC,CAAC;AAGjD;;;;;;GAMG;AACH,MAAM,oBAAoB,GAAG,IAAI,GAAG,CAAC;IACnC,gBAAgB;IAChB,OAAO;IACP,WAAW;IACX,YAAY;IACZ,gBAAgB;IAChB,aAAa;IACb,WAAW;IACX,UAAU;CACX,CAAC,CAAC;AAEH;;;;;;;;;;;;;GAaG;AACH,MAAM,UAAU,uBAAuB,CACrC,KAAc,EACd,IAA0B,EAC1B,SAAiB;IAEjB,MAAM,MAAM,GAAG,KAAK,YAAY,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,CAAC;IACxD,MAAM,IAAI,GAAG,KAAK,YAAY,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC;IACpE,MAAM,OAAO,GACX,OAAO,IAAI,CAAC,SAAS,wBAAwB,SAAS,YAAY;QAClE,YAAY,IAAI,EAAE,CAAC;IAErB,IAAI,MAAM,KAAK,EAAE,IAAI,oBAAoB,CAAC,GAAG,CAAC,MAAM,CAAC,EAAE,CAAC;QACtD,OAAO,IAAI,oBAAoB,CAAC,OAAO,CAAC,CAAC;IAC3C,CAAC;IAED,OAAO,IAAI,uBAAuB,CAChC,OAAO,EACP,GAAG,IAAI,CAAC,OAAO,CAAC,WAAW,IAAI,MAAM,EAAE,CACxC,CAAC;AACJ,CAAC"}
@@ -0,0 +1,42 @@
1
+ /**
2
+ * A simulated service a `Task` state calls, and what its failures are called.
3
+ */
4
+ export interface SimStatesService {
5
+ /**
6
+ * The AWS SDK's own service id, and what finds the simulated service.
7
+ */
8
+ readonly serviceId: string;
9
+ /**
10
+ * The name Step Functions puts in front of an error the service raised, so
11
+ * that a `Retry` or a `Catch` matching `DynamoDb.ConditionalCheckFailedException`
12
+ * matches.
13
+ */
14
+ readonly errorPrefix: string;
15
+ }
16
+ /**
17
+ * The service an `aws-sdk` integration named, when this simulation has one.
18
+ */
19
+ export declare function simStatesSdkService(serviceName: string): SimStatesService | undefined;
20
+ /**
21
+ * The names an `aws-sdk` integration can call a service, in the order they
22
+ * read best in a refusal.
23
+ */
24
+ export declare function simStatesSdkServiceNames(): readonly string[];
25
+ /**
26
+ * The service one of the optimized integrations calls.
27
+ *
28
+ * The integration names its own SDK service, since the two do not always agree
29
+ * on what a service is called: `arn:aws:states:::events:putEvents` calls
30
+ * EventBridge and `arn:aws:states:::states:startExecution` calls Step
31
+ * Functions itself.
32
+ */
33
+ export declare function simStatesServiceOf(serviceId: string): SimStatesService;
34
+ /**
35
+ * The SDK Command an operation names.
36
+ *
37
+ * An integration writes the operation the way the API documents it, with a
38
+ * lower-case first letter, and the SDK Command is the same word as a class
39
+ * name.
40
+ */
41
+ export declare function simStatesCommandName(operation: string): string;
42
+ //# sourceMappingURL=sim-states-service-name.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"sim-states-service-name.d.ts","sourceRoot":"","sources":["../../../../../src/service/stepfunctions/task/service/sim-states-service-name.ts"],"names":[],"mappings":"AAEA;;GAEG;AACH,MAAM,WAAW,gBAAgB;IAC/B;;OAEG;IACH,QAAQ,CAAC,SAAS,EAAE,MAAM,CAAC;IAE3B;;;;OAIG;IACH,QAAQ,CAAC,WAAW,EAAE,MAAM,CAAC;CAC9B;AA2BD;;GAEG;AACH,wBAAgB,mBAAmB,CACjC,WAAW,EAAE,MAAM,GAClB,gBAAgB,GAAG,SAAS,CAE9B;AAED;;;GAGG;AACH,wBAAgB,wBAAwB,IAAI,SAAS,MAAM,EAAE,CAK5D;AAED;;;;;;;GAOG;AACH,wBAAgB,kBAAkB,CAAC,SAAS,EAAE,MAAM,GAAG,gBAAgB,CAEtE;AAED;;;;;;GAMG;AACH,wBAAgB,oBAAoB,CAAC,SAAS,EAAE,MAAM,GAAG,MAAM,CAE9D"}
@@ -0,0 +1,74 @@
1
+ import { simSdkInterceptedServiceIds } from "../../../../sdk/router/resolve-sim-sdk-command-router.js";
2
+ /**
3
+ * The simulated services an `aws-sdk` integration can name, by the name Amazon
4
+ * States Language writes them under.
5
+ *
6
+ * `arn:aws:states:::aws-sdk:dynamodb:putItem` names the service the way the
7
+ * AWS SDK does, in lower case and with nothing between the words. Every
8
+ * service the SDK interception reaches is here, because a state machine
9
+ * calling a service and a test calling it through an intercepted client are
10
+ * reaching the same simulation.
11
+ *
12
+ * The table is built for each `Resource` that needs one. Reading the services
13
+ * as this module loads would read them before the table they come from is
14
+ * there, since a simulated service and the SDK interception that reaches it
15
+ * know about each other. Nothing reads this after a state machine has been
16
+ * created, so building it costs a definition rather than an execution.
17
+ */
18
+ function servicesByName() {
19
+ return new Map(simSdkInterceptedServiceIds().map((serviceId) => [
20
+ serviceId.toLowerCase().replaceAll(" ", ""),
21
+ { serviceId, errorPrefix: errorPrefixOf(serviceId) },
22
+ ]));
23
+ }
24
+ /**
25
+ * The service an `aws-sdk` integration named, when this simulation has one.
26
+ */
27
+ export function simStatesSdkService(serviceName) {
28
+ return servicesByName().get(serviceName);
29
+ }
30
+ /**
31
+ * The names an `aws-sdk` integration can call a service, in the order they
32
+ * read best in a refusal.
33
+ */
34
+ export function simStatesSdkServiceNames() {
35
+ return servicesByName()
36
+ .keys()
37
+ .toArray()
38
+ .toSorted((one, other) => one.localeCompare(other));
39
+ }
40
+ /**
41
+ * The service one of the optimized integrations calls.
42
+ *
43
+ * The integration names its own SDK service, since the two do not always agree
44
+ * on what a service is called: `arn:aws:states:::events:putEvents` calls
45
+ * EventBridge and `arn:aws:states:::states:startExecution` calls Step
46
+ * Functions itself.
47
+ */
48
+ export function simStatesServiceOf(serviceId) {
49
+ return { serviceId, errorPrefix: errorPrefixOf(serviceId) };
50
+ }
51
+ /**
52
+ * The SDK Command an operation names.
53
+ *
54
+ * An integration writes the operation the way the API documents it, with a
55
+ * lower-case first letter, and the SDK Command is the same word as a class
56
+ * name.
57
+ */
58
+ export function simStatesCommandName(operation) {
59
+ return `${operation.charAt(0).toUpperCase()}${operation.slice(1)}Command`;
60
+ }
61
+ /**
62
+ * How Step Functions writes a service's name in an error.
63
+ *
64
+ * The SDK's own service id, with the runs of capitals it spells acronyms with
65
+ * written as words. `DynamoDB` is `DynamoDb` and `SNS` is `Sns`, and a `Catch`
66
+ * in a real definition matches on that.
67
+ */
68
+ function errorPrefixOf(serviceId) {
69
+ const words = serviceId
70
+ .replaceAll(" ", "")
71
+ .replaceAll(/[A-Z]+/g, (run) => run.charAt(0) + run.slice(1).toLowerCase());
72
+ return `${words.charAt(0).toUpperCase()}${words.slice(1)}`;
73
+ }
74
+ //# sourceMappingURL=sim-states-service-name.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"sim-states-service-name.js","sourceRoot":"","sources":["../../../../../src/service/stepfunctions/task/service/sim-states-service-name.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,2BAA2B,EAAE,MAAM,0DAA0D,CAAC;AAmBvG;;;;;;;;;;;;;;;GAeG;AACH,SAAS,cAAc;IACrB,OAAO,IAAI,GAAG,CACZ,2BAA2B,EAAE,CAAC,GAAG,CAAC,CAAC,SAAS,EAAE,EAAE,CAAC;QAC/C,SAAS,CAAC,WAAW,EAAE,CAAC,UAAU,CAAC,GAAG,EAAE,EAAE,CAAC;QAC3C,EAAE,SAAS,EAAE,WAAW,EAAE,aAAa,CAAC,SAAS,CAAC,EAAE;KACrD,CAAC,CACH,CAAC;AACJ,CAAC;AAED;;GAEG;AACH,MAAM,UAAU,mBAAmB,CACjC,WAAmB;IAEnB,OAAO,cAAc,EAAE,CAAC,GAAG,CAAC,WAAW,CAAC,CAAC;AAC3C,CAAC;AAED;;;GAGG;AACH,MAAM,UAAU,wBAAwB;IACtC,OAAO,cAAc,EAAE;SACpB,IAAI,EAAE;SACN,OAAO,EAAE;SACT,QAAQ,CAAC,CAAC,GAAG,EAAE,KAAK,EAAE,EAAE,CAAC,GAAG,CAAC,aAAa,CAAC,KAAK,CAAC,CAAC,CAAC;AACxD,CAAC;AAED;;;;;;;GAOG;AACH,MAAM,UAAU,kBAAkB,CAAC,SAAiB;IAClD,OAAO,EAAE,SAAS,EAAE,WAAW,EAAE,aAAa,CAAC,SAAS,CAAC,EAAE,CAAC;AAC9D,CAAC;AAED;;;;;;GAMG;AACH,MAAM,UAAU,oBAAoB,CAAC,SAAiB;IACpD,OAAO,GAAG,SAAS,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,WAAW,EAAE,GAAG,SAAS,CAAC,KAAK,CAAC,CAAC,CAAC,SAAS,CAAC;AAC5E,CAAC;AAED;;;;;;GAMG;AACH,SAAS,aAAa,CAAC,SAAiB;IACtC,MAAM,KAAK,GAAG,SAAS;SACpB,UAAU,CAAC,GAAG,EAAE,EAAE,CAAC;SACnB,UAAU,CAAC,SAAS,EAAE,CAAC,GAAG,EAAE,EAAE,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC,CAAC,GAAG,GAAG,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,WAAW,EAAE,CAAC,CAAC;IAE9E,OAAO,GAAG,KAAK,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,WAAW,EAAE,GAAG,KAAK,CAAC,KAAK,CAAC,CAAC,CAAC,EAAE,CAAC;AAC7D,CAAC"}
@@ -0,0 +1,10 @@
1
+ import type { SimStatesTaskTarget } from "../sim-states-task-target.js";
2
+ /**
3
+ * Read a `Task` state's `Resource` as a call on a simulated service.
4
+ *
5
+ * `call` is what the `Resource` wrote after `arn:aws:states:::`. It is either
6
+ * `aws-sdk:<service>:<operation>` or one of the integrations Step Functions
7
+ * optimises.
8
+ */
9
+ export declare function parseSimStatesServiceResource(stateName: string, resource: string, call: string): SimStatesTaskTarget;
10
+ //# sourceMappingURL=sim-states-service-resource.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"sim-states-service-resource.d.ts","sourceRoot":"","sources":["../../../../../src/service/stepfunctions/task/service/sim-states-service-resource.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,8BAA8B,CAAC;AAqBxE;;;;;;GAMG;AACH,wBAAgB,6BAA6B,CAC3C,SAAS,EAAE,MAAM,EACjB,QAAQ,EAAE,MAAM,EAChB,IAAI,EAAE,MAAM,GACX,mBAAmB,CAiCrB"}
@@ -0,0 +1,79 @@
1
+ import { SimStatesUnsimulatedInput } from "../../error/sim-step-functions.error.js";
2
+ import { simStatesOptimizedIntegrations } from "./sim-states-optimized-integrations.js";
3
+ import { simStatesCommandName, simStatesSdkService, simStatesSdkServiceNames, simStatesServiceOf, } from "./sim-states-service-name.js";
4
+ import { SimStatesServiceTarget } from "./sim-states-service-target.js";
5
+ /**
6
+ * What a `Resource` writes in front of an SDK integration's service.
7
+ */
8
+ const sdkIntegration = "aws-sdk:";
9
+ /**
10
+ * The patterns that hold a `Task` state open, which this simulator has no
11
+ * implementation for.
12
+ */
13
+ const heldPatterns = [".sync", ".waitForTaskToken"];
14
+ /**
15
+ * Read a `Task` state's `Resource` as a call on a simulated service.
16
+ *
17
+ * `call` is what the `Resource` wrote after `arn:aws:states:::`. It is either
18
+ * `aws-sdk:<service>:<operation>` or one of the integrations Step Functions
19
+ * optimises.
20
+ */
21
+ export function parseSimStatesServiceResource(stateName, resource, call) {
22
+ const held = heldPatterns.find((pattern) => call.includes(pattern));
23
+ if (held !== undefined) {
24
+ throw new SimStatesUnsimulatedInput(`The Task state ${stateName} has a Resource of ${resource}, which asks ` +
25
+ `for ${held}. This simulator runs a task that calls and answers, and ` +
26
+ "has no way to hold a state open until a job finishes or until a " +
27
+ "task token comes back.");
28
+ }
29
+ if (call.startsWith(sdkIntegration)) {
30
+ return sdkTarget(stateName, resource, call.slice(sdkIntegration.length));
31
+ }
32
+ const optimized = simStatesOptimizedIntegrations.get(call);
33
+ if (optimized === undefined) {
34
+ throw new SimStatesUnsimulatedInput(`The Task state ${stateName} has a Resource of ${resource}, which this ` +
35
+ `simulator does not run. It runs ${integrationNames().join(", ")}, ` +
36
+ "and any operation of a simulated service through " +
37
+ "arn:aws:states:::aws-sdk:<service>:<operation>.");
38
+ }
39
+ return new SimStatesServiceTarget({
40
+ service: simStatesServiceOf(optimized.serviceId),
41
+ operation: optimized.operation,
42
+ commandName: simStatesCommandName(optimized.operation),
43
+ ...(optimized.shape !== undefined && { shape: optimized.shape }),
44
+ });
45
+ }
46
+ /**
47
+ * Read the service and the operation an `aws-sdk` integration names.
48
+ *
49
+ * A service this simulation does not have is refused here, when the state
50
+ * machine is created, rather than at the task that would have called it. The
51
+ * operation is refused at the task instead, since the operations a service
52
+ * runs belong to the simulated service and there is none to ask yet.
53
+ */
54
+ function sdkTarget(stateName, resource, call) {
55
+ const [serviceName = "", operation = "", ...beyond] = call.split(":");
56
+ if (serviceName === "" || operation === "" || beyond.length > 0) {
57
+ throw new SimStatesUnsimulatedInput(`The Task state ${stateName} has a Resource of ${resource}, which is ` +
58
+ "not an SDK integration. One names a service and an operation, as " +
59
+ "arn:aws:states:::aws-sdk:dynamodb:putItem does.");
60
+ }
61
+ const service = simStatesSdkService(serviceName);
62
+ if (service === undefined) {
63
+ throw new SimStatesUnsimulatedInput(`The Task state ${stateName} calls ${operation} on ${serviceName}, ` +
64
+ `which this simulator has no simulation of. It calls ` +
65
+ `${simStatesSdkServiceNames().join(", ")}.`);
66
+ }
67
+ return new SimStatesServiceTarget({
68
+ service,
69
+ operation,
70
+ commandName: simStatesCommandName(operation),
71
+ });
72
+ }
73
+ /**
74
+ * The optimized integrations this simulator runs, as a `Resource` writes them.
75
+ */
76
+ function integrationNames() {
77
+ return simStatesOptimizedIntegrations.keys().toArray();
78
+ }
79
+ //# sourceMappingURL=sim-states-service-resource.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"sim-states-service-resource.js","sourceRoot":"","sources":["../../../../../src/service/stepfunctions/task/service/sim-states-service-resource.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,yBAAyB,EAAE,MAAM,yCAAyC,CAAC;AAEpF,OAAO,EAAE,8BAA8B,EAAE,MAAM,wCAAwC,CAAC;AACxF,OAAO,EACL,oBAAoB,EACpB,mBAAmB,EACnB,wBAAwB,EACxB,kBAAkB,GACnB,MAAM,8BAA8B,CAAC;AACtC,OAAO,EAAE,sBAAsB,EAAE,MAAM,gCAAgC,CAAC;AAExE;;GAEG;AACH,MAAM,cAAc,GAAG,UAAU,CAAC;AAElC;;;GAGG;AACH,MAAM,YAAY,GAAG,CAAC,OAAO,EAAE,mBAAmB,CAAC,CAAC;AAEpD;;;;;;GAMG;AACH,MAAM,UAAU,6BAA6B,CAC3C,SAAiB,EACjB,QAAgB,EAChB,IAAY;IAEZ,MAAM,IAAI,GAAG,YAAY,CAAC,IAAI,CAAC,CAAC,OAAO,EAAE,EAAE,CAAC,IAAI,CAAC,QAAQ,CAAC,OAAO,CAAC,CAAC,CAAC;IAEpE,IAAI,IAAI,KAAK,SAAS,EAAE,CAAC;QACvB,MAAM,IAAI,yBAAyB,CACjC,kBAAkB,SAAS,sBAAsB,QAAQ,eAAe;YACtE,OAAO,IAAI,2DAA2D;YACtE,kEAAkE;YAClE,wBAAwB,CAC3B,CAAC;IACJ,CAAC;IAED,IAAI,IAAI,CAAC,UAAU,CAAC,cAAc,CAAC,EAAE,CAAC;QACpC,OAAO,SAAS,CAAC,SAAS,EAAE,QAAQ,EAAE,IAAI,CAAC,KAAK,CAAC,cAAc,CAAC,MAAM,CAAC,CAAC,CAAC;IAC3E,CAAC;IAED,MAAM,SAAS,GAAG,8BAA8B,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC;IAE3D,IAAI,SAAS,KAAK,SAAS,EAAE,CAAC;QAC5B,MAAM,IAAI,yBAAyB,CACjC,kBAAkB,SAAS,sBAAsB,QAAQ,eAAe;YACtE,mCAAmC,gBAAgB,EAAE,CAAC,IAAI,CAAC,IAAI,CAAC,IAAI;YACpE,mDAAmD;YACnD,iDAAiD,CACpD,CAAC;IACJ,CAAC;IAED,OAAO,IAAI,sBAAsB,CAAC;QAChC,OAAO,EAAE,kBAAkB,CAAC,SAAS,CAAC,SAAS,CAAC;QAChD,SAAS,EAAE,SAAS,CAAC,SAAS;QAC9B,WAAW,EAAE,oBAAoB,CAAC,SAAS,CAAC,SAAS,CAAC;QACtD,GAAG,CAAC,SAAS,CAAC,KAAK,KAAK,SAAS,IAAI,EAAE,KAAK,EAAE,SAAS,CAAC,KAAK,EAAE,CAAC;KACjE,CAAC,CAAC;AACL,CAAC;AAED;;;;;;;GAOG;AACH,SAAS,SAAS,CAChB,SAAiB,EACjB,QAAgB,EAChB,IAAY;IAEZ,MAAM,CAAC,WAAW,GAAG,EAAE,EAAE,SAAS,GAAG,EAAE,EAAE,GAAG,MAAM,CAAC,GAAG,IAAI,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;IAEtE,IAAI,WAAW,KAAK,EAAE,IAAI,SAAS,KAAK,EAAE,IAAI,MAAM,CAAC,MAAM,GAAG,CAAC,EAAE,CAAC;QAChE,MAAM,IAAI,yBAAyB,CACjC,kBAAkB,SAAS,sBAAsB,QAAQ,aAAa;YACpE,mEAAmE;YACnE,iDAAiD,CACpD,CAAC;IACJ,CAAC;IAED,MAAM,OAAO,GAAG,mBAAmB,CAAC,WAAW,CAAC,CAAC;IAEjD,IAAI,OAAO,KAAK,SAAS,EAAE,CAAC;QAC1B,MAAM,IAAI,yBAAyB,CACjC,kBAAkB,SAAS,UAAU,SAAS,OAAO,WAAW,IAAI;YAClE,sDAAsD;YACtD,GAAG,wBAAwB,EAAE,CAAC,IAAI,CAAC,IAAI,CAAC,GAAG,CAC9C,CAAC;IACJ,CAAC;IAED,OAAO,IAAI,sBAAsB,CAAC;QAChC,OAAO;QACP,SAAS;QACT,WAAW,EAAE,oBAAoB,CAAC,SAAS,CAAC;KAC7C,CAAC,CAAC;AACL,CAAC;AAED;;GAEG;AACH,SAAS,gBAAgB;IACvB,OAAO,8BAA8B,CAAC,IAAI,EAAE,CAAC,OAAO,EAAE,CAAC;AACzD,CAAC"}
@@ -0,0 +1,27 @@
1
+ import type { JSONObject, JSONValue } from "../../../../util/type-guard/json.js";
2
+ import type { SimStatesService } from "./sim-states-service-name.js";
3
+ /**
4
+ * What one of the optimized integrations does to the request and the result,
5
+ * where the shape it defines is not the API's own.
6
+ */
7
+ export interface SimStatesServiceShape {
8
+ readonly request?: (parameters: JSONObject) => JSONObject;
9
+ readonly answer?: (result: JSONValue) => JSONValue;
10
+ }
11
+ /**
12
+ * The call a `Task` state's `Resource` resolved to.
13
+ */
14
+ export interface SimStatesServiceCall {
15
+ readonly service: SimStatesService;
16
+ /**
17
+ * The operation as the API writes it, and what a refusal names.
18
+ */
19
+ readonly operation: string;
20
+ /**
21
+ * The SDK Command the operation is, and what the simulated service routes
22
+ * on.
23
+ */
24
+ readonly commandName: string;
25
+ readonly shape?: SimStatesServiceShape;
26
+ }
27
+ //# sourceMappingURL=sim-states-service-shape.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"sim-states-service-shape.d.ts","sourceRoot":"","sources":["../../../../../src/service/stepfunctions/task/service/sim-states-service-shape.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,UAAU,EACV,SAAS,EACV,MAAM,qCAAqC,CAAC;AAC7C,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,8BAA8B,CAAC;AAErE;;;GAGG;AACH,MAAM,WAAW,qBAAqB;IACpC,QAAQ,CAAC,OAAO,CAAC,EAAE,CAAC,UAAU,EAAE,UAAU,KAAK,UAAU,CAAC;IAC1D,QAAQ,CAAC,MAAM,CAAC,EAAE,CAAC,MAAM,EAAE,SAAS,KAAK,SAAS,CAAC;CACpD;AAED;;GAEG;AACH,MAAM,WAAW,oBAAoB;IACnC,QAAQ,CAAC,OAAO,EAAE,gBAAgB,CAAC;IAEnC;;OAEG;IACH,QAAQ,CAAC,SAAS,EAAE,MAAM,CAAC;IAE3B;;;OAGG;IACH,QAAQ,CAAC,WAAW,EAAE,MAAM,CAAC;IAE7B,QAAQ,CAAC,KAAK,CAAC,EAAE,qBAAqB,CAAC;CACxC"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=sim-states-service-shape.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"sim-states-service-shape.js","sourceRoot":"","sources":["../../../../../src/service/stepfunctions/task/service/sim-states-service-shape.ts"],"names":[],"mappings":""}
@@ -0,0 +1,33 @@
1
+ import type { JSONValue } from "../../../../util/type-guard/json.js";
2
+ import { type SimStatesTaskRequest, SimStatesTaskTarget } from "../sim-states-task-target.js";
3
+ import type { SimStatesServiceCall } from "./sim-states-service-shape.js";
4
+ /**
5
+ * A `Task` state that calls an operation on a simulated service.
6
+ *
7
+ * Both integration forms end here. An `aws-sdk` integration sends its
8
+ * `Parameters` as the request and answers with the response, and an optimized
9
+ * integration is the same call with the request and the result shaped the way
10
+ * that integration defines.
11
+ *
12
+ * The call reaches the simulated service the way an intercepted SDK client's
13
+ * would, carrying the assumed execution role, so simulated IAM answers it
14
+ * against the role's policies and the resource the request names.
15
+ */
16
+ export declare class SimStatesServiceTarget extends SimStatesTaskTarget {
17
+ #private;
18
+ constructor(call: SimStatesServiceCall);
19
+ /**
20
+ * Call the operation in the state machine's own Account and Region.
21
+ */
22
+ run(request: SimStatesTaskRequest): Promise<JSONValue>;
23
+ /**
24
+ * A service refusing the call fails the task under the name Amazon States
25
+ * Language gives that service's error.
26
+ */
27
+ handlerFailure(error: unknown, stateName: string): Error;
28
+ /**
29
+ * Read the request the state's `Parameters` built.
30
+ */
31
+ private parameters;
32
+ }
33
+ //# sourceMappingURL=sim-states-service-target.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"sim-states-service-target.d.ts","sourceRoot":"","sources":["../../../../../src/service/stepfunctions/task/service/sim-states-service-target.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAEV,SAAS,EACV,MAAM,qCAAqC,CAAC;AAG7C,OAAO,EACL,KAAK,oBAAoB,EACzB,mBAAmB,EACpB,MAAM,8BAA8B,CAAC;AAMtC,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,+BAA+B,CAAC;AAE1E;;;;;;;;;;;GAWG;AACH,qBAAa,sBAAuB,SAAQ,mBAAmB;;IAG7D,YAAY,IAAI,EAAE,oBAAoB,EAGrC;IAED;;OAEG;IACY,GAAG,CAAC,OAAO,EAAE,oBAAoB,GAAG,OAAO,CAAC,SAAS,CAAC,CAepE;IAED;;;OAGG;IACM,cAAc,CAAC,KAAK,EAAE,OAAO,EAAE,SAAS,EAAE,MAAM,GAAG,KAAK,CAEhE;IAED;;OAEG;IACH,OAAO,CAAC,UAAU;CAanB"}
@@ -0,0 +1,60 @@
1
+ import { isRecord } from "../../../../util/type-guard/record.js";
2
+ import { SimStatesRuntimeFailure } from "../../error/sim-step-functions.error.js";
3
+ import { SimStatesTaskTarget, } from "../sim-states-task-target.js";
4
+ import { simStatesServiceResult, simStatesServiceRoute, } from "./sim-states-service-call.js";
5
+ import { simStatesServiceFailure } from "./sim-states-service-failure.js";
6
+ /**
7
+ * A `Task` state that calls an operation on a simulated service.
8
+ *
9
+ * Both integration forms end here. An `aws-sdk` integration sends its
10
+ * `Parameters` as the request and answers with the response, and an optimized
11
+ * integration is the same call with the request and the result shaped the way
12
+ * that integration defines.
13
+ *
14
+ * The call reaches the simulated service the way an intercepted SDK client's
15
+ * would, carrying the assumed execution role, so simulated IAM answers it
16
+ * against the role's policies and the resource the request names.
17
+ */
18
+ export class SimStatesServiceTarget extends SimStatesTaskTarget {
19
+ #call;
20
+ constructor(call) {
21
+ super();
22
+ this.#call = call;
23
+ }
24
+ /**
25
+ * Call the operation in the state machine's own Account and Region.
26
+ */
27
+ async run(request) {
28
+ const route = simStatesServiceRoute(request, this.#call);
29
+ const input = this.parameters(request);
30
+ let answered;
31
+ try {
32
+ answered = await route({ input }, { caller: request.caller });
33
+ }
34
+ catch (error) {
35
+ throw this.handlerFailure(error, request.stateName);
36
+ }
37
+ const result = simStatesServiceResult(answered);
38
+ return this.#call.shape?.answer?.(result) ?? result;
39
+ }
40
+ /**
41
+ * A service refusing the call fails the task under the name Amazon States
42
+ * Language gives that service's error.
43
+ */
44
+ handlerFailure(error, stateName) {
45
+ return simStatesServiceFailure(error, this.#call, stateName);
46
+ }
47
+ /**
48
+ * Read the request the state's `Parameters` built.
49
+ */
50
+ parameters(request) {
51
+ const { payload } = request;
52
+ if (!isRecord(payload)) {
53
+ throw new SimStatesRuntimeFailure(`The Task state ${request.stateName} calls ` +
54
+ `${this.#call.operation} and built no request. Its Parameters are ` +
55
+ "what the call is sent.");
56
+ }
57
+ return this.#call.shape?.request?.(payload) ?? payload;
58
+ }
59
+ }
60
+ //# sourceMappingURL=sim-states-service-target.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"sim-states-service-target.js","sourceRoot":"","sources":["../../../../../src/service/stepfunctions/task/service/sim-states-service-target.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,QAAQ,EAAE,MAAM,uCAAuC,CAAC;AACjE,OAAO,EAAE,uBAAuB,EAAE,MAAM,yCAAyC,CAAC;AAClF,OAAO,EAEL,mBAAmB,GACpB,MAAM,8BAA8B,CAAC;AACtC,OAAO,EACL,sBAAsB,EACtB,qBAAqB,GACtB,MAAM,8BAA8B,CAAC;AACtC,OAAO,EAAE,uBAAuB,EAAE,MAAM,iCAAiC,CAAC;AAG1E;;;;;;;;;;;GAWG;AACH,MAAM,OAAO,sBAAuB,SAAQ,mBAAmB;IACpD,KAAK,CAAuB;IAErC,YAAY,IAA0B;QACpC,KAAK,EAAE,CAAC;QACR,IAAI,CAAC,KAAK,GAAG,IAAI,CAAC;IACpB,CAAC;IAED;;OAEG;IACM,KAAK,CAAC,GAAG,CAAC,OAA6B;QAC9C,MAAM,KAAK,GAAG,qBAAqB,CAAC,OAAO,EAAE,IAAI,CAAC,KAAK,CAAC,CAAC;QACzD,MAAM,KAAK,GAAG,IAAI,CAAC,UAAU,CAAC,OAAO,CAAC,CAAC;QAEvC,IAAI,QAAiB,CAAC;QAEtB,IAAI,CAAC;YACH,QAAQ,GAAG,MAAM,KAAK,CAAC,EAAE,KAAK,EAAE,EAAE,EAAE,MAAM,EAAE,OAAO,CAAC,MAAM,EAAE,CAAC,CAAC;QAChE,CAAC;QAAC,OAAO,KAAK,EAAE,CAAC;YACf,MAAM,IAAI,CAAC,cAAc,CAAC,KAAK,EAAE,OAAO,CAAC,SAAS,CAAC,CAAC;QACtD,CAAC;QAED,MAAM,MAAM,GAAG,sBAAsB,CAAC,QAAQ,CAAC,CAAC;QAEhD,OAAO,IAAI,CAAC,KAAK,CAAC,KAAK,EAAE,MAAM,EAAE,CAAC,MAAM,CAAC,IAAI,MAAM,CAAC;IACtD,CAAC;IAED;;;OAGG;IACM,cAAc,CAAC,KAAc,EAAE,SAAiB;QACvD,OAAO,uBAAuB,CAAC,KAAK,EAAE,IAAI,CAAC,KAAK,EAAE,SAAS,CAAC,CAAC;IAC/D,CAAC;IAED;;OAEG;IACK,UAAU,CAAC,OAA6B;QAC9C,MAAM,EAAE,OAAO,EAAE,GAAG,OAAO,CAAC;QAE5B,IAAI,CAAC,QAAQ,CAAC,OAAO,CAAC,EAAE,CAAC;YACvB,MAAM,IAAI,uBAAuB,CAC/B,kBAAkB,OAAO,CAAC,SAAS,SAAS;gBAC1C,GAAG,IAAI,CAAC,KAAK,CAAC,SAAS,4CAA4C;gBACnE,wBAAwB,CAC3B,CAAC;QACJ,CAAC;QAED,OAAO,IAAI,CAAC,KAAK,CAAC,KAAK,EAAE,OAAO,EAAE,CAAC,OAAO,CAAC,IAAI,OAAO,CAAC;IACzD,CAAC;CACF"}
@@ -7,25 +7,27 @@ interface SimAwsStatesTaskTargetsProperties {
7
7
  readonly accountRegionScope: SimAwsAccountRegionScope;
8
8
  }
9
9
  /**
10
- * Everywhere the state machines of one simulated AWS instance can invoke.
10
+ * Everywhere the state machines of one simulated AWS instance can reach.
11
11
  *
12
- * The function is looked up when a task runs, never when this is built:
12
+ * What a task calls is looked up when it runs, never when this is built:
13
13
  * reaching another service while this one is being constructed is a cycle with
14
14
  * no bottom to it.
15
15
  *
16
- * A function in another Account or Region is allowed, since a real execution
17
- * invokes across both, and it is the function's own Account that decides
18
- * whether the execution role may.
16
+ * This owns the execution role and nothing else. Which function, table, topic,
17
+ * queue or bus a task talks to is the target's own business, and a target in
18
+ * another Account or Region is allowed, since a real execution reaches across
19
+ * both.
19
20
  */
20
21
  export declare class SimAwsStatesTaskTargets implements SimStatesTaskTargets {
21
22
  #private;
22
23
  constructor(properties: SimAwsStatesTaskTargetsProperties);
23
24
  /**
24
- * Assume the state machine's execution role, then invoke the function as
25
- * that role.
25
+ * Assume the state machine's execution role, then do the task's work as that
26
+ * role.
26
27
  *
27
- * The role is assumed in its own Account, and the function is reached in the
28
- * function's, which are not necessarily the same one.
28
+ * The role is assumed in its own Account, and that is not always the state
29
+ * machine's. Every call the task goes on to make carries the session that
30
+ * makes. Simulated IAM answers each of them against the role's policies.
29
31
  */
30
32
  invoke(invocation: SimStatesTaskInvocation): Promise<JSONValue>;
31
33
  }
@@ -1 +1 @@
1
- {"version":3,"file":"sim-aws-states-task-targets.d.ts","sourceRoot":"","sources":["../../../../src/service/stepfunctions/task/sim-aws-states-task-targets.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,2CAA2C,CAAC;AAC1F,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,sBAAsB,CAAC;AACnD,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,kCAAkC,CAAC;AAOlE,OAAO,KAAK,EACV,uBAAuB,EACvB,oBAAoB,EACrB,MAAM,iCAAiC,CAAC;AAEzC,UAAU,iCAAiC;IACzC,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAC;IACxB,QAAQ,CAAC,kBAAkB,EAAE,wBAAwB,CAAC;CACvD;AAED;;;;;;;;;;GAUG;AACH,qBAAa,uBAAwB,YAAW,oBAAoB;;IAIlE,YAAY,UAAU,EAAE,iCAAiC,EAGxD;IAED;;;;;;OAMG;IACG,MAAM,CAAC,UAAU,EAAE,uBAAuB,GAAG,OAAO,CAAC,SAAS,CAAC,CA2BpE;CACF"}
1
+ {"version":3,"file":"sim-aws-states-task-targets.d.ts","sourceRoot":"","sources":["../../../../src/service/stepfunctions/task/sim-aws-states-task-targets.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,2CAA2C,CAAC;AAC1F,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,sBAAsB,CAAC;AACnD,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,kCAAkC,CAAC;AAKlE,OAAO,KAAK,EACV,uBAAuB,EACvB,oBAAoB,EACrB,MAAM,iCAAiC,CAAC;AAEzC,UAAU,iCAAiC;IACzC,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAC;IACxB,QAAQ,CAAC,kBAAkB,EAAE,wBAAwB,CAAC;CACvD;AAED;;;;;;;;;;;GAWG;AACH,qBAAa,uBAAwB,YAAW,oBAAoB;;IAIlE,YAAY,UAAU,EAAE,iCAAiC,EAGxD;IAED;;;;;;;OAOG;IACG,MAAM,CAAC,UAAU,EAAE,uBAAuB,GAAG,OAAO,CAAC,SAAS,CAAC,CAgBpE;CACF"}
@@ -1,16 +1,15 @@
1
1
  import { assumeSimStatesExecutionRole, simStatesExecutionRoleTarget, } from "./sim-states-execution-role.js";
2
- import { simStatesFunctionLocation } from "./sim-states-function-location.js";
3
- import { SimStatesTaskFunction } from "./sim-states-task-function.js";
4
2
  /**
5
- * Everywhere the state machines of one simulated AWS instance can invoke.
3
+ * Everywhere the state machines of one simulated AWS instance can reach.
6
4
  *
7
- * The function is looked up when a task runs, never when this is built:
5
+ * What a task calls is looked up when it runs, never when this is built:
8
6
  * reaching another service while this one is being constructed is a cycle with
9
7
  * no bottom to it.
10
8
  *
11
- * A function in another Account or Region is allowed, since a real execution
12
- * invokes across both, and it is the function's own Account that decides
13
- * whether the execution role may.
9
+ * This owns the execution role and nothing else. Which function, table, topic,
10
+ * queue or bus a task talks to is the target's own business, and a target in
11
+ * another Account or Region is allowed, since a real execution reaches across
12
+ * both.
14
13
  */
15
14
  export class SimAwsStatesTaskTargets {
16
15
  #simAws;
@@ -20,29 +19,26 @@ export class SimAwsStatesTaskTargets {
20
19
  this.#accountRegionScope = properties.accountRegionScope;
21
20
  }
22
21
  /**
23
- * Assume the state machine's execution role, then invoke the function as
24
- * that role.
22
+ * Assume the state machine's execution role, then do the task's work as that
23
+ * role.
25
24
  *
26
- * The role is assumed in its own Account, and the function is reached in the
27
- * function's, which are not necessarily the same one.
25
+ * The role is assumed in its own Account, and that is not always the state
26
+ * machine's. Every call the task goes on to make carries the session that
27
+ * makes. Simulated IAM answers each of them against the role's policies.
28
28
  */
29
29
  async invoke(invocation) {
30
30
  const { stateName, target } = invocation;
31
- const call = target.call(invocation.payload, stateName);
32
- const where = simStatesFunctionLocation(call.functionNameOrArn, this.#accountRegionScope, stateName);
33
31
  const role = simStatesExecutionRoleTarget(invocation.roleArn, stateName);
34
32
  const iam = this.#simAws
35
- .accountRegionScope(role.accountId, where.regionName)
33
+ .accountRegionScope(role.accountId, this.#accountRegionScope.regionName)
36
34
  .iam();
37
35
  const caller = await assumeSimStatesExecutionRole(role, iam);
38
- const scope = this.#simAws.accountRegionScope(where.accountId, where.regionName);
39
- return await new SimStatesTaskFunction({ scope }).invoke({
36
+ return await target.run({
40
37
  stateName,
41
- target,
42
- reference: where.reference,
43
- named: call.functionNameOrArn,
44
- payload: call.payload,
38
+ payload: invocation.payload,
45
39
  caller,
40
+ simAws: this.#simAws,
41
+ scope: this.#accountRegionScope,
46
42
  });
47
43
  }
48
44
  }
@@ -1 +1 @@
1
- {"version":3,"file":"sim-aws-states-task-targets.js","sourceRoot":"","sources":["../../../../src/service/stepfunctions/task/sim-aws-states-task-targets.ts"],"names":[],"mappings":"AAGA,OAAO,EACL,4BAA4B,EAC5B,4BAA4B,GAC7B,MAAM,gCAAgC,CAAC;AACxC,OAAO,EAAE,yBAAyB,EAAE,MAAM,mCAAmC,CAAC;AAC9E,OAAO,EAAE,qBAAqB,EAAE,MAAM,+BAA+B,CAAC;AAWtE;;;;;;;;;;GAUG;AACH,MAAM,OAAO,uBAAuB;IACzB,OAAO,CAAS;IAChB,mBAAmB,CAA2B;IAEvD,YAAY,UAA6C;QACvD,IAAI,CAAC,OAAO,GAAG,UAAU,CAAC,MAAM,CAAC;QACjC,IAAI,CAAC,mBAAmB,GAAG,UAAU,CAAC,kBAAkB,CAAC;IAC3D,CAAC;IAED;;;;;;OAMG;IACH,KAAK,CAAC,MAAM,CAAC,UAAmC;QAC9C,MAAM,EAAE,SAAS,EAAE,MAAM,EAAE,GAAG,UAAU,CAAC;QACzC,MAAM,IAAI,GAAG,MAAM,CAAC,IAAI,CAAC,UAAU,CAAC,OAAO,EAAE,SAAS,CAAC,CAAC;QACxD,MAAM,KAAK,GAAG,yBAAyB,CACrC,IAAI,CAAC,iBAAiB,EACtB,IAAI,CAAC,mBAAmB,EACxB,SAAS,CACV,CAAC;QACF,MAAM,IAAI,GAAG,4BAA4B,CAAC,UAAU,CAAC,OAAO,EAAE,SAAS,CAAC,CAAC;QACzE,MAAM,GAAG,GAAG,IAAI,CAAC,OAAO;aACrB,kBAAkB,CAAC,IAAI,CAAC,SAAS,EAAE,KAAK,CAAC,UAAU,CAAC;aACpD,GAAG,EAAE,CAAC;QAET,MAAM,MAAM,GAAG,MAAM,4BAA4B,CAAC,IAAI,EAAE,GAAG,CAAC,CAAC;QAC7D,MAAM,KAAK,GAAG,IAAI,CAAC,OAAO,CAAC,kBAAkB,CAC3C,KAAK,CAAC,SAAS,EACf,KAAK,CAAC,UAAU,CACjB,CAAC;QAEF,OAAO,MAAM,IAAI,qBAAqB,CAAC,EAAE,KAAK,EAAE,CAAC,CAAC,MAAM,CAAC;YACvD,SAAS;YACT,MAAM;YACN,SAAS,EAAE,KAAK,CAAC,SAAS;YAC1B,KAAK,EAAE,IAAI,CAAC,iBAAiB;YAC7B,OAAO,EAAE,IAAI,CAAC,OAAO;YACrB,MAAM;SACP,CAAC,CAAC;IACL,CAAC;CACF"}
1
+ {"version":3,"file":"sim-aws-states-task-targets.js","sourceRoot":"","sources":["../../../../src/service/stepfunctions/task/sim-aws-states-task-targets.ts"],"names":[],"mappings":"AAGA,OAAO,EACL,4BAA4B,EAC5B,4BAA4B,GAC7B,MAAM,gCAAgC,CAAC;AAWxC;;;;;;;;;;;GAWG;AACH,MAAM,OAAO,uBAAuB;IACzB,OAAO,CAAS;IAChB,mBAAmB,CAA2B;IAEvD,YAAY,UAA6C;QACvD,IAAI,CAAC,OAAO,GAAG,UAAU,CAAC,MAAM,CAAC;QACjC,IAAI,CAAC,mBAAmB,GAAG,UAAU,CAAC,kBAAkB,CAAC;IAC3D,CAAC;IAED;;;;;;;OAOG;IACH,KAAK,CAAC,MAAM,CAAC,UAAmC;QAC9C,MAAM,EAAE,SAAS,EAAE,MAAM,EAAE,GAAG,UAAU,CAAC;QACzC,MAAM,IAAI,GAAG,4BAA4B,CAAC,UAAU,CAAC,OAAO,EAAE,SAAS,CAAC,CAAC;QACzE,MAAM,GAAG,GAAG,IAAI,CAAC,OAAO;aACrB,kBAAkB,CAAC,IAAI,CAAC,SAAS,EAAE,IAAI,CAAC,mBAAmB,CAAC,UAAU,CAAC;aACvE,GAAG,EAAE,CAAC;QAET,MAAM,MAAM,GAAG,MAAM,4BAA4B,CAAC,IAAI,EAAE,GAAG,CAAC,CAAC;QAE7D,OAAO,MAAM,MAAM,CAAC,GAAG,CAAC;YACtB,SAAS;YACT,OAAO,EAAE,UAAU,CAAC,OAAO;YAC3B,MAAM;YACN,MAAM,EAAE,IAAI,CAAC,OAAO;YACpB,KAAK,EAAE,IAAI,CAAC,mBAAmB;SAChC,CAAC,CAAC;IACL,CAAC;CACF"}