@kensio/yulin 1.20.0 → 1.20.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (868) hide show
  1. package/README.md +1 -0
  2. package/dist/index.d.ts +1 -0
  3. package/dist/index.d.ts.map +1 -1
  4. package/dist/index.js +1 -0
  5. package/dist/index.js.map +1 -1
  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 +8 -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 +11 -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 +17 -1
  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/aws/factory/sim-aws-cross-account-collaborators.d.ts +10 -0
  123. package/dist/service/aws/factory/sim-aws-cross-account-collaborators.d.ts.map +1 -1
  124. package/dist/service/aws/factory/sim-aws-cross-account-collaborators.js +15 -0
  125. package/dist/service/aws/factory/sim-aws-cross-account-collaborators.js.map +1 -1
  126. package/dist/service/aws/factory/sim-aws-self-contained-service-builder.d.ts +9 -0
  127. package/dist/service/aws/factory/sim-aws-self-contained-service-builder.d.ts.map +1 -1
  128. package/dist/service/aws/factory/sim-aws-self-contained-service-builder.js +15 -0
  129. package/dist/service/aws/factory/sim-aws-self-contained-service-builder.js.map +1 -1
  130. package/dist/service/aws/factory/sim-aws-service-factory.d.ts +6 -0
  131. package/dist/service/aws/factory/sim-aws-service-factory.d.ts.map +1 -1
  132. package/dist/service/aws/factory/sim-aws-service-factory.js +8 -0
  133. package/dist/service/aws/factory/sim-aws-service-factory.js.map +1 -1
  134. package/dist/service/aws/sim-aws-account-region-scope.d.ts +6 -0
  135. package/dist/service/aws/sim-aws-account-region-scope.d.ts.map +1 -1
  136. package/dist/service/aws/sim-aws-account-region-scope.js +8 -0
  137. package/dist/service/aws/sim-aws-account-region-scope.js.map +1 -1
  138. package/dist/service/aws/sim-aws-account.d.ts +5 -0
  139. package/dist/service/aws/sim-aws-account.d.ts.map +1 -1
  140. package/dist/service/aws/sim-aws-account.js +6 -0
  141. package/dist/service/aws/sim-aws-account.js.map +1 -1
  142. package/dist/service/aws/sim-aws-region.d.ts +5 -0
  143. package/dist/service/aws/sim-aws-region.d.ts.map +1 -1
  144. package/dist/service/aws/sim-aws-region.js +6 -0
  145. package/dist/service/aws/sim-aws-region.js.map +1 -1
  146. package/dist/service/aws/sim-aws-service-accessors.d.ts +6 -0
  147. package/dist/service/aws/sim-aws-service-accessors.d.ts.map +1 -1
  148. package/dist/service/aws/sim-aws-service-accessors.js +8 -0
  149. package/dist/service/aws/sim-aws-service-accessors.js.map +1 -1
  150. package/dist/service/cloudformation/resource/cfn/firehose/sim-firehose-cfn-value-adapter.d.ts +6 -0
  151. package/dist/service/cloudformation/resource/cfn/firehose/sim-firehose-cfn-value-adapter.d.ts.map +1 -0
  152. package/dist/service/cloudformation/resource/cfn/firehose/sim-firehose-cfn-value-adapter.js +15 -0
  153. package/dist/service/cloudformation/resource/cfn/firehose/sim-firehose-cfn-value-adapter.js.map +1 -0
  154. package/dist/service/cloudformation/resource/cfn/firehose/sim-firehose-delivery-stream-cfn.d.ts +23 -0
  155. package/dist/service/cloudformation/resource/cfn/firehose/sim-firehose-delivery-stream-cfn.d.ts.map +1 -0
  156. package/dist/service/cloudformation/resource/cfn/firehose/sim-firehose-delivery-stream-cfn.js +29 -0
  157. package/dist/service/cloudformation/resource/cfn/firehose/sim-firehose-delivery-stream-cfn.js.map +1 -0
  158. package/dist/service/cloudformation/resource/cfn/sim-cfn-service-value-adapters.d.ts.map +1 -1
  159. package/dist/service/cloudformation/resource/cfn/sim-cfn-service-value-adapters.js +4 -0
  160. package/dist/service/cloudformation/resource/cfn/sim-cfn-service-value-adapters.js.map +1 -1
  161. package/dist/service/cloudformation/resource/cfn/stepfunctions/sim-cfn-state-machine-creator.d.ts +27 -0
  162. package/dist/service/cloudformation/resource/cfn/stepfunctions/sim-cfn-state-machine-creator.d.ts.map +1 -0
  163. package/dist/service/cloudformation/resource/cfn/stepfunctions/sim-cfn-state-machine-creator.js +47 -0
  164. package/dist/service/cloudformation/resource/cfn/stepfunctions/sim-cfn-state-machine-creator.js.map +1 -0
  165. package/dist/service/cloudformation/resource/cfn/stepfunctions/sim-cfn-state-machine-definition.d.ts +49 -0
  166. package/dist/service/cloudformation/resource/cfn/stepfunctions/sim-cfn-state-machine-definition.d.ts.map +1 -0
  167. package/dist/service/cloudformation/resource/cfn/stepfunctions/sim-cfn-state-machine-definition.js +89 -0
  168. package/dist/service/cloudformation/resource/cfn/stepfunctions/sim-cfn-state-machine-definition.js.map +1 -0
  169. package/dist/service/cloudformation/resource/cfn/stepfunctions/sim-cfn-state-machine-name.d.ts +23 -0
  170. package/dist/service/cloudformation/resource/cfn/stepfunctions/sim-cfn-state-machine-name.d.ts.map +1 -0
  171. package/dist/service/cloudformation/resource/cfn/stepfunctions/sim-cfn-state-machine-name.js +28 -0
  172. package/dist/service/cloudformation/resource/cfn/stepfunctions/sim-cfn-state-machine-name.js.map +1 -0
  173. package/dist/service/cloudformation/resource/cfn/stepfunctions/sim-cfn-state-machine-properties.d.ts +57 -0
  174. package/dist/service/cloudformation/resource/cfn/stepfunctions/sim-cfn-state-machine-properties.d.ts.map +1 -0
  175. package/dist/service/cloudformation/resource/cfn/stepfunctions/sim-cfn-state-machine-properties.js +99 -0
  176. package/dist/service/cloudformation/resource/cfn/stepfunctions/sim-cfn-state-machine-properties.js.map +1 -0
  177. package/dist/service/cloudformation/resource/cfn/stepfunctions/sim-cfn-state-machine-property-names.d.ts +21 -0
  178. package/dist/service/cloudformation/resource/cfn/stepfunctions/sim-cfn-state-machine-property-names.d.ts.map +1 -0
  179. package/dist/service/cloudformation/resource/cfn/stepfunctions/sim-cfn-state-machine-property-names.js +37 -0
  180. package/dist/service/cloudformation/resource/cfn/stepfunctions/sim-cfn-state-machine-property-names.js.map +1 -0
  181. package/dist/service/cloudformation/resource/cfn/stepfunctions/sim-cfn-state-machine-substitutions.d.ts +32 -0
  182. package/dist/service/cloudformation/resource/cfn/stepfunctions/sim-cfn-state-machine-substitutions.d.ts.map +1 -0
  183. package/dist/service/cloudformation/resource/cfn/stepfunctions/sim-cfn-state-machine-substitutions.js +56 -0
  184. package/dist/service/cloudformation/resource/cfn/stepfunctions/sim-cfn-state-machine-substitutions.js.map +1 -0
  185. package/dist/service/cloudformation/resource/cfn/stepfunctions/sim-cfn-step-functions-resource-deleter.d.ts +20 -0
  186. package/dist/service/cloudformation/resource/cfn/stepfunctions/sim-cfn-step-functions-resource-deleter.d.ts.map +1 -0
  187. package/dist/service/cloudformation/resource/cfn/stepfunctions/sim-cfn-step-functions-resource-deleter.js +28 -0
  188. package/dist/service/cloudformation/resource/cfn/stepfunctions/sim-cfn-step-functions-resource-deleter.js.map +1 -0
  189. package/dist/service/cloudformation/resource/cfn/stepfunctions/sim-cfn-step-functions-resource-error.d.ts +43 -0
  190. package/dist/service/cloudformation/resource/cfn/stepfunctions/sim-cfn-step-functions-resource-error.d.ts.map +1 -0
  191. package/dist/service/cloudformation/resource/cfn/stepfunctions/sim-cfn-step-functions-resource-error.js +64 -0
  192. package/dist/service/cloudformation/resource/cfn/stepfunctions/sim-cfn-step-functions-resource-error.js.map +1 -0
  193. package/dist/service/cloudformation/resource/cfn/stepfunctions/sim-cfn-step-functions-resource-types.d.ts +10 -0
  194. package/dist/service/cloudformation/resource/cfn/stepfunctions/sim-cfn-step-functions-resource-types.d.ts.map +1 -0
  195. package/dist/service/cloudformation/resource/cfn/stepfunctions/sim-cfn-step-functions-resource-types.js +10 -0
  196. package/dist/service/cloudformation/resource/cfn/stepfunctions/sim-cfn-step-functions-resource-types.js.map +1 -0
  197. package/dist/service/cloudformation/resource/cfn/stepfunctions/sim-state-machine-cfn.d.ts +27 -0
  198. package/dist/service/cloudformation/resource/cfn/stepfunctions/sim-state-machine-cfn.d.ts.map +1 -0
  199. package/dist/service/cloudformation/resource/cfn/stepfunctions/sim-state-machine-cfn.js +37 -0
  200. package/dist/service/cloudformation/resource/cfn/stepfunctions/sim-state-machine-cfn.js.map +1 -0
  201. package/dist/service/cloudformation/resource/cfn/stepfunctions/sim-step-functions-cfn-resource-factory.d.ts +31 -0
  202. package/dist/service/cloudformation/resource/cfn/stepfunctions/sim-step-functions-cfn-resource-factory.d.ts.map +1 -0
  203. package/dist/service/cloudformation/resource/cfn/stepfunctions/sim-step-functions-cfn-resource-factory.js +42 -0
  204. package/dist/service/cloudformation/resource/cfn/stepfunctions/sim-step-functions-cfn-resource-factory.js.map +1 -0
  205. package/dist/service/cloudformation/resource/cfn/stepfunctions/sim-step-functions-cfn-value-adapter.d.ts +7 -0
  206. package/dist/service/cloudformation/resource/cfn/stepfunctions/sim-step-functions-cfn-value-adapter.d.ts.map +1 -0
  207. package/dist/service/cloudformation/resource/cfn/stepfunctions/sim-step-functions-cfn-value-adapter.js +16 -0
  208. package/dist/service/cloudformation/resource/cfn/stepfunctions/sim-step-functions-cfn-value-adapter.js.map +1 -0
  209. package/dist/service/cloudformation/resource/resolve/service/sim-cfn-service-factories.d.ts.map +1 -1
  210. package/dist/service/cloudformation/resource/resolve/service/sim-cfn-service-factories.js +11 -0
  211. package/dist/service/cloudformation/resource/resolve/service/sim-cfn-service-factories.js.map +1 -1
  212. package/dist/service/cloudformation/template/node/fn/join/sim-cfn-fn-join.d.ts +7 -0
  213. package/dist/service/cloudformation/template/node/fn/join/sim-cfn-fn-join.d.ts.map +1 -1
  214. package/dist/service/cloudformation/template/node/fn/join/sim-cfn-fn-join.js +9 -1
  215. package/dist/service/cloudformation/template/node/fn/join/sim-cfn-fn-join.js.map +1 -1
  216. package/dist/service/cloudfront/behaviour/sim-cloud-front-behavior.d.ts +5 -0
  217. package/dist/service/cloudfront/behaviour/sim-cloud-front-behavior.d.ts.map +1 -1
  218. package/dist/service/cloudfront/behaviour/sim-cloud-front-behavior.js.map +1 -1
  219. package/dist/service/cloudfront/cff/sim-cff-arn.d.ts +13 -0
  220. package/dist/service/cloudfront/cff/sim-cff-arn.d.ts.map +1 -0
  221. package/dist/service/cloudfront/cff/sim-cff-arn.js +18 -0
  222. package/dist/service/cloudfront/cff/sim-cff-arn.js.map +1 -0
  223. package/dist/service/cloudfront/command/create-distribution/create-distribution.command.d.ts +41 -0
  224. package/dist/service/cloudfront/command/create-distribution/create-distribution.command.d.ts.map +1 -1
  225. package/dist/service/cloudfront/command/create-distribution/create-distribution.handler.d.ts +3 -0
  226. package/dist/service/cloudfront/command/create-distribution/create-distribution.handler.d.ts.map +1 -1
  227. package/dist/service/cloudfront/command/create-distribution/create-distribution.handler.js +11 -4
  228. package/dist/service/cloudfront/command/create-distribution/create-distribution.handler.js.map +1 -1
  229. package/dist/service/cloudfront/command/create-distribution/sim-cf-distro-config-normalizer.d.ts +0 -1
  230. package/dist/service/cloudfront/command/create-distribution/sim-cf-distro-config-normalizer.d.ts.map +1 -1
  231. package/dist/service/cloudfront/command/create-distribution/sim-cf-distro-config-normalizer.js +9 -36
  232. package/dist/service/cloudfront/command/create-distribution/sim-cf-distro-config-normalizer.js.map +1 -1
  233. package/dist/service/cloudfront/command/create-distribution/sim-cf-normalize-list.d.ts +19 -0
  234. package/dist/service/cloudfront/command/create-distribution/sim-cf-normalize-list.d.ts.map +1 -0
  235. package/dist/service/cloudfront/command/create-distribution/sim-cf-normalize-list.js +39 -0
  236. package/dist/service/cloudfront/command/create-distribution/sim-cf-normalize-list.js.map +1 -0
  237. package/dist/service/cloudfront/command/create-distribution/sim-cf-normalize-origin.d.ts +10 -0
  238. package/dist/service/cloudfront/command/create-distribution/sim-cf-normalize-origin.d.ts.map +1 -0
  239. package/dist/service/cloudfront/command/create-distribution/sim-cf-normalize-origin.js +17 -0
  240. package/dist/service/cloudfront/command/create-distribution/sim-cf-normalize-origin.js.map +1 -0
  241. package/dist/service/cloudfront/command/update-distribution/update-distribution.handler.d.ts +3 -0
  242. package/dist/service/cloudfront/command/update-distribution/update-distribution.handler.d.ts.map +1 -1
  243. package/dist/service/cloudfront/command/update-distribution/update-distribution.handler.js +9 -2
  244. package/dist/service/cloudfront/command/update-distribution/update-distribution.handler.js.map +1 -1
  245. package/dist/service/cloudfront/controller/dependency/sim-cf-controller-dependency.d.ts +3 -0
  246. package/dist/service/cloudfront/controller/dependency/sim-cf-controller-dependency.d.ts.map +1 -1
  247. package/dist/service/cloudfront/controller/dependency/sim-cf-controller-dependency.js +6 -0
  248. package/dist/service/cloudfront/controller/dependency/sim-cf-controller-dependency.js.map +1 -1
  249. package/dist/service/cloudfront/controller/edge/sim-lambda-edge-applicator.d.ts +48 -0
  250. package/dist/service/cloudfront/controller/edge/sim-lambda-edge-applicator.d.ts.map +1 -0
  251. package/dist/service/cloudfront/controller/edge/sim-lambda-edge-applicator.js +66 -0
  252. package/dist/service/cloudfront/controller/edge/sim-lambda-edge-applicator.js.map +1 -0
  253. package/dist/service/cloudfront/controller/edge/sim-lambda-edge-distribution.d.ts +11 -0
  254. package/dist/service/cloudfront/controller/edge/sim-lambda-edge-distribution.d.ts.map +1 -0
  255. package/dist/service/cloudfront/controller/edge/sim-lambda-edge-distribution.js +14 -0
  256. package/dist/service/cloudfront/controller/edge/sim-lambda-edge-distribution.js.map +1 -0
  257. package/dist/service/cloudfront/controller/sim-cloudfront-request-pipeline.d.ts +5 -0
  258. package/dist/service/cloudfront/controller/sim-cloudfront-request-pipeline.d.ts.map +1 -1
  259. package/dist/service/cloudfront/controller/sim-cloudfront-request-pipeline.js +16 -1
  260. package/dist/service/cloudfront/controller/sim-cloudfront-request-pipeline.js.map +1 -1
  261. package/dist/service/cloudfront/distribution/configurator/sim-cf-behavior-properties.d.ts.map +1 -1
  262. package/dist/service/cloudfront/distribution/configurator/sim-cf-behavior-properties.js +2 -0
  263. package/dist/service/cloudfront/distribution/configurator/sim-cf-behavior-properties.js.map +1 -1
  264. package/dist/service/cloudfront/distribution/configurator/sim-cloud-front-origin-configurator.d.ts.map +1 -1
  265. package/dist/service/cloudfront/distribution/configurator/sim-cloud-front-origin-configurator.js +8 -0
  266. package/dist/service/cloudfront/distribution/configurator/sim-cloud-front-origin-configurator.js.map +1 -1
  267. package/dist/service/cloudfront/distribution/sim-cf-distribution-configuration-state.d.ts +5 -2
  268. package/dist/service/cloudfront/distribution/sim-cf-distribution-configuration-state.d.ts.map +1 -1
  269. package/dist/service/cloudfront/edge/adapter/sim-lambda-edge-body.d.ts +24 -0
  270. package/dist/service/cloudfront/edge/adapter/sim-lambda-edge-body.d.ts.map +1 -0
  271. package/dist/service/cloudfront/edge/adapter/sim-lambda-edge-body.js +51 -0
  272. package/dist/service/cloudfront/edge/adapter/sim-lambda-edge-body.js.map +1 -0
  273. package/dist/service/cloudfront/edge/adapter/sim-lambda-edge-event-adapter.d.ts +41 -0
  274. package/dist/service/cloudfront/edge/adapter/sim-lambda-edge-event-adapter.d.ts.map +1 -0
  275. package/dist/service/cloudfront/edge/adapter/sim-lambda-edge-event-adapter.js +78 -0
  276. package/dist/service/cloudfront/edge/adapter/sim-lambda-edge-event-adapter.js.map +1 -0
  277. package/dist/service/cloudfront/edge/adapter/sim-lambda-edge-headers.d.ts +20 -0
  278. package/dist/service/cloudfront/edge/adapter/sim-lambda-edge-headers.d.ts.map +1 -0
  279. package/dist/service/cloudfront/edge/adapter/sim-lambda-edge-headers.js +55 -0
  280. package/dist/service/cloudfront/edge/adapter/sim-lambda-edge-headers.js.map +1 -0
  281. package/dist/service/cloudfront/edge/adapter/sim-lambda-edge-request-adapter.d.ts +30 -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 +90 -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 +89 -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 +47 -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 +71 -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 +79 -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 +23 -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 +36 -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 +18 -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 +47 -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-functions.d.ts +25 -0
  318. package/dist/service/cloudfront/edge/sim-cf-edge-functions.d.ts.map +1 -0
  319. package/dist/service/cloudfront/edge/sim-cf-edge-functions.js +2 -0
  320. package/dist/service/cloudfront/edge/sim-cf-edge-functions.js.map +1 -0
  321. package/dist/service/cloudfront/error/sim-cloudfront.error.d.ts +13 -0
  322. package/dist/service/cloudfront/error/sim-cloudfront.error.d.ts.map +1 -1
  323. package/dist/service/cloudfront/error/sim-cloudfront.error.js +15 -0
  324. package/dist/service/cloudfront/error/sim-cloudfront.error.js.map +1 -1
  325. package/dist/service/cloudfront/index.d.ts +1 -0
  326. package/dist/service/cloudfront/index.d.ts.map +1 -1
  327. package/dist/service/cloudfront/origin/custom/sim-cf-custom-origin-request.d.ts +4 -0
  328. package/dist/service/cloudfront/origin/custom/sim-cf-custom-origin-request.d.ts.map +1 -1
  329. package/dist/service/cloudfront/origin/custom/sim-cf-custom-origin-request.js +7 -0
  330. package/dist/service/cloudfront/origin/custom/sim-cf-custom-origin-request.js.map +1 -1
  331. package/dist/service/cloudfront/origin/custom/sim-cloudfront-custom-origin.d.ts +6 -0
  332. package/dist/service/cloudfront/origin/custom/sim-cloudfront-custom-origin.d.ts.map +1 -1
  333. package/dist/service/cloudfront/origin/custom/sim-cloudfront-custom-origin.js +3 -0
  334. package/dist/service/cloudfront/origin/custom/sim-cloudfront-custom-origin.js.map +1 -1
  335. package/dist/service/cloudfront/origin/sim-cf-origin-custom-headers.d.ts +15 -0
  336. package/dist/service/cloudfront/origin/sim-cf-origin-custom-headers.d.ts.map +1 -0
  337. package/dist/service/cloudfront/origin/sim-cf-origin-custom-headers.js +74 -0
  338. package/dist/service/cloudfront/origin/sim-cf-origin-custom-headers.js.map +1 -0
  339. package/dist/service/cloudfront/sim-cloudfront-commands.d.ts +10 -0
  340. package/dist/service/cloudfront/sim-cloudfront-commands.d.ts.map +1 -1
  341. package/dist/service/cloudfront/sim-cloudfront-commands.js +10 -1
  342. package/dist/service/cloudfront/sim-cloudfront-commands.js.map +1 -1
  343. package/dist/service/cloudfront/sim-cloudfront.d.ts.map +1 -1
  344. package/dist/service/cloudfront/sim-cloudfront.js +3 -8
  345. package/dist/service/cloudfront/sim-cloudfront.js.map +1 -1
  346. package/dist/service/cloudfront/typings/lambda-at-edge.namespace.d.ts +91 -0
  347. package/dist/service/cloudfront/typings/lambda-at-edge.namespace.d.ts.map +1 -0
  348. package/dist/service/cloudfront/typings/lambda-at-edge.namespace.js +2 -0
  349. package/dist/service/cloudfront/typings/lambda-at-edge.namespace.js.map +1 -0
  350. package/dist/service/firehose/cfn/delivery-stream/sim-cfn-firehose-delivery-stream-creator.d.ts +33 -0
  351. package/dist/service/firehose/cfn/delivery-stream/sim-cfn-firehose-delivery-stream-creator.d.ts.map +1 -0
  352. package/dist/service/firehose/cfn/delivery-stream/sim-cfn-firehose-delivery-stream-creator.js +44 -0
  353. package/dist/service/firehose/cfn/delivery-stream/sim-cfn-firehose-delivery-stream-creator.js.map +1 -0
  354. package/dist/service/firehose/cfn/delivery-stream/sim-cfn-firehose-delivery-stream-name.d.ts +23 -0
  355. package/dist/service/firehose/cfn/delivery-stream/sim-cfn-firehose-delivery-stream-name.d.ts.map +1 -0
  356. package/dist/service/firehose/cfn/delivery-stream/sim-cfn-firehose-delivery-stream-name.js +28 -0
  357. package/dist/service/firehose/cfn/delivery-stream/sim-cfn-firehose-delivery-stream-name.js.map +1 -0
  358. package/dist/service/firehose/cfn/delivery-stream/sim-cfn-firehose-delivery-stream-properties.d.ts +48 -0
  359. package/dist/service/firehose/cfn/delivery-stream/sim-cfn-firehose-delivery-stream-properties.d.ts.map +1 -0
  360. package/dist/service/firehose/cfn/delivery-stream/sim-cfn-firehose-delivery-stream-properties.js +92 -0
  361. package/dist/service/firehose/cfn/delivery-stream/sim-cfn-firehose-delivery-stream-properties.js.map +1 -0
  362. package/dist/service/firehose/cfn/delivery-stream/sim-cfn-firehose-delivery-stream-property-names.d.ts +51 -0
  363. package/dist/service/firehose/cfn/delivery-stream/sim-cfn-firehose-delivery-stream-property-names.d.ts.map +1 -0
  364. package/dist/service/firehose/cfn/delivery-stream/sim-cfn-firehose-delivery-stream-property-names.js +114 -0
  365. package/dist/service/firehose/cfn/delivery-stream/sim-cfn-firehose-delivery-stream-property-names.js.map +1 -0
  366. package/dist/service/firehose/cfn/delivery-stream/sim-cfn-firehose-destination-choice.d.ts +19 -0
  367. package/dist/service/firehose/cfn/delivery-stream/sim-cfn-firehose-destination-choice.d.ts.map +1 -0
  368. package/dist/service/firehose/cfn/delivery-stream/sim-cfn-firehose-destination-choice.js +44 -0
  369. package/dist/service/firehose/cfn/delivery-stream/sim-cfn-firehose-destination-choice.js.map +1 -0
  370. package/dist/service/firehose/cfn/delivery-stream/sim-cfn-firehose-s3-destination.d.ts +47 -0
  371. package/dist/service/firehose/cfn/delivery-stream/sim-cfn-firehose-s3-destination.d.ts.map +1 -0
  372. package/dist/service/firehose/cfn/delivery-stream/sim-cfn-firehose-s3-destination.js +105 -0
  373. package/dist/service/firehose/cfn/delivery-stream/sim-cfn-firehose-s3-destination.js.map +1 -0
  374. package/dist/service/firehose/cfn/delivery-stream/sim-cfn-firehose-source-choice.d.ts +19 -0
  375. package/dist/service/firehose/cfn/delivery-stream/sim-cfn-firehose-source-choice.d.ts.map +1 -0
  376. package/dist/service/firehose/cfn/delivery-stream/sim-cfn-firehose-source-choice.js +58 -0
  377. package/dist/service/firehose/cfn/delivery-stream/sim-cfn-firehose-source-choice.js.map +1 -0
  378. package/dist/service/firehose/cfn/delivery-stream/sim-cfn-firehose-tags.d.ts +11 -0
  379. package/dist/service/firehose/cfn/delivery-stream/sim-cfn-firehose-tags.d.ts.map +1 -0
  380. package/dist/service/firehose/cfn/delivery-stream/sim-cfn-firehose-tags.js +33 -0
  381. package/dist/service/firehose/cfn/delivery-stream/sim-cfn-firehose-tags.js.map +1 -0
  382. package/dist/service/firehose/cfn/sim-cfn-firehose-archive.resources.d.ts +44 -0
  383. package/dist/service/firehose/cfn/sim-cfn-firehose-archive.resources.d.ts.map +1 -0
  384. package/dist/service/firehose/cfn/sim-cfn-firehose-archive.resources.js +144 -0
  385. package/dist/service/firehose/cfn/sim-cfn-firehose-archive.resources.js.map +1 -0
  386. package/dist/service/firehose/cfn/sim-cfn-firehose-delivery-stream-template.factory.d.ts +51 -0
  387. package/dist/service/firehose/cfn/sim-cfn-firehose-delivery-stream-template.factory.d.ts.map +1 -0
  388. package/dist/service/firehose/cfn/sim-cfn-firehose-delivery-stream-template.factory.js +65 -0
  389. package/dist/service/firehose/cfn/sim-cfn-firehose-delivery-stream-template.factory.js.map +1 -0
  390. package/dist/service/firehose/cfn/sim-cfn-firehose-resource-deleter.d.ts +19 -0
  391. package/dist/service/firehose/cfn/sim-cfn-firehose-resource-deleter.d.ts.map +1 -0
  392. package/dist/service/firehose/cfn/sim-cfn-firehose-resource-deleter.js +26 -0
  393. package/dist/service/firehose/cfn/sim-cfn-firehose-resource-deleter.js.map +1 -0
  394. package/dist/service/firehose/cfn/sim-cfn-firehose-resource-error.d.ts +44 -0
  395. package/dist/service/firehose/cfn/sim-cfn-firehose-resource-error.d.ts.map +1 -0
  396. package/dist/service/firehose/cfn/sim-cfn-firehose-resource-error.js +75 -0
  397. package/dist/service/firehose/cfn/sim-cfn-firehose-resource-error.js.map +1 -0
  398. package/dist/service/firehose/cfn/sim-cfn-firehose-resource-types.d.ts +14 -0
  399. package/dist/service/firehose/cfn/sim-cfn-firehose-resource-types.d.ts.map +1 -0
  400. package/dist/service/firehose/cfn/sim-cfn-firehose-resource-types.js +14 -0
  401. package/dist/service/firehose/cfn/sim-cfn-firehose-resource-types.js.map +1 -0
  402. package/dist/service/firehose/cfn/sim-firehose-cfn-resource-factory.d.ts +29 -0
  403. package/dist/service/firehose/cfn/sim-firehose-cfn-resource-factory.d.ts.map +1 -0
  404. package/dist/service/firehose/cfn/sim-firehose-cfn-resource-factory.js +38 -0
  405. package/dist/service/firehose/cfn/sim-firehose-cfn-resource-factory.js.map +1 -0
  406. package/dist/service/firehose/command/authorize/sim-firehose-authorizer.d.ts +39 -0
  407. package/dist/service/firehose/command/authorize/sim-firehose-authorizer.d.ts.map +1 -0
  408. package/dist/service/firehose/command/authorize/sim-firehose-authorizer.js +49 -0
  409. package/dist/service/firehose/command/authorize/sim-firehose-authorizer.js.map +1 -0
  410. package/dist/service/firehose/command/record/record.command.d.ts +55 -0
  411. package/dist/service/firehose/command/record/record.command.d.ts.map +1 -0
  412. package/dist/service/firehose/command/record/record.command.js +2 -0
  413. package/dist/service/firehose/command/record/record.command.js.map +1 -0
  414. package/dist/service/firehose/command/record/sim-firehose-put-commands.d.ts +43 -0
  415. package/dist/service/firehose/command/record/sim-firehose-put-commands.d.ts.map +1 -0
  416. package/dist/service/firehose/command/record/sim-firehose-put-commands.js +59 -0
  417. package/dist/service/firehose/command/record/sim-firehose-put-commands.js.map +1 -0
  418. package/dist/service/firehose/command/record/sim-firehose-record-data.d.ts +21 -0
  419. package/dist/service/firehose/command/record/sim-firehose-record-data.d.ts.map +1 -0
  420. package/dist/service/firehose/command/record/sim-firehose-record-data.js +54 -0
  421. package/dist/service/firehose/command/record/sim-firehose-record-data.js.map +1 -0
  422. package/dist/service/firehose/command/sim-firehose-command.types.d.ts +6 -0
  423. package/dist/service/firehose/command/sim-firehose-command.types.d.ts.map +1 -0
  424. package/dist/service/firehose/command/sim-firehose-command.types.js +2 -0
  425. package/dist/service/firehose/command/sim-firehose-command.types.js.map +1 -0
  426. package/dist/service/firehose/command/sim-firehose-commands.d.ts +37 -0
  427. package/dist/service/firehose/command/sim-firehose-commands.d.ts.map +1 -0
  428. package/dist/service/firehose/command/sim-firehose-commands.js +57 -0
  429. package/dist/service/firehose/command/sim-firehose-commands.js.map +1 -0
  430. package/dist/service/firehose/command/sim-firehose-delivery-stream-access.d.ts +47 -0
  431. package/dist/service/firehose/command/sim-firehose-delivery-stream-access.d.ts.map +1 -0
  432. package/dist/service/firehose/command/sim-firehose-delivery-stream-access.js +58 -0
  433. package/dist/service/firehose/command/sim-firehose-delivery-stream-access.js.map +1 -0
  434. package/dist/service/firehose/command/sim-firehose-request-options.d.ts +12 -0
  435. package/dist/service/firehose/command/sim-firehose-request-options.d.ts.map +1 -0
  436. package/dist/service/firehose/command/sim-firehose-request-options.js +2 -0
  437. package/dist/service/firehose/command/sim-firehose-request-options.js.map +1 -0
  438. package/dist/service/firehose/command/stream/sim-firehose-create-delivery-stream.d.ts +49 -0
  439. package/dist/service/firehose/command/stream/sim-firehose-create-delivery-stream.d.ts.map +1 -0
  440. package/dist/service/firehose/command/stream/sim-firehose-create-delivery-stream.js +69 -0
  441. package/dist/service/firehose/command/stream/sim-firehose-create-delivery-stream.js.map +1 -0
  442. package/dist/service/firehose/command/stream/sim-firehose-delivery-stream-page.d.ts +19 -0
  443. package/dist/service/firehose/command/stream/sim-firehose-delivery-stream-page.d.ts.map +1 -0
  444. package/dist/service/firehose/command/stream/sim-firehose-delivery-stream-page.js +24 -0
  445. package/dist/service/firehose/command/stream/sim-firehose-delivery-stream-page.js.map +1 -0
  446. package/dist/service/firehose/command/stream/sim-firehose-stream-commands.d.ts +50 -0
  447. package/dist/service/firehose/command/stream/sim-firehose-stream-commands.d.ts.map +1 -0
  448. package/dist/service/firehose/command/stream/sim-firehose-stream-commands.js +72 -0
  449. package/dist/service/firehose/command/stream/sim-firehose-stream-commands.js.map +1 -0
  450. package/dist/service/firehose/command/stream/sim-firehose-stream-descriptions.d.ts +7 -0
  451. package/dist/service/firehose/command/stream/sim-firehose-stream-descriptions.d.ts.map +1 -0
  452. package/dist/service/firehose/command/stream/sim-firehose-stream-descriptions.js +70 -0
  453. package/dist/service/firehose/command/stream/sim-firehose-stream-descriptions.js.map +1 -0
  454. package/dist/service/firehose/command/stream/stream.command.d.ts +137 -0
  455. package/dist/service/firehose/command/stream/stream.command.d.ts.map +1 -0
  456. package/dist/service/firehose/command/stream/stream.command.js +2 -0
  457. package/dist/service/firehose/command/stream/stream.command.js.map +1 -0
  458. package/dist/service/firehose/delivery/sim-firehose-buffer.d.ts +36 -0
  459. package/dist/service/firehose/delivery/sim-firehose-buffer.d.ts.map +1 -0
  460. package/dist/service/firehose/delivery/sim-firehose-buffer.js +55 -0
  461. package/dist/service/firehose/delivery/sim-firehose-buffer.js.map +1 -0
  462. package/dist/service/firehose/delivery/sim-firehose-delivery-failures.d.ts +34 -0
  463. package/dist/service/firehose/delivery/sim-firehose-delivery-failures.d.ts.map +1 -0
  464. package/dist/service/firehose/delivery/sim-firehose-delivery-failures.js +24 -0
  465. package/dist/service/firehose/delivery/sim-firehose-delivery-failures.js.map +1 -0
  466. package/dist/service/firehose/delivery/sim-firehose-delivery.d.ts +47 -0
  467. package/dist/service/firehose/delivery/sim-firehose-delivery.d.ts.map +1 -0
  468. package/dist/service/firehose/delivery/sim-firehose-delivery.js +76 -0
  469. package/dist/service/firehose/delivery/sim-firehose-delivery.js.map +1 -0
  470. package/dist/service/firehose/delivery/sim-firehose-object-key.d.ts +21 -0
  471. package/dist/service/firehose/delivery/sim-firehose-object-key.d.ts.map +1 -0
  472. package/dist/service/firehose/delivery/sim-firehose-object-key.js +27 -0
  473. package/dist/service/firehose/delivery/sim-firehose-object-key.js.map +1 -0
  474. package/dist/service/firehose/delivery/sim-firehose-object-writer.d.ts +50 -0
  475. package/dist/service/firehose/delivery/sim-firehose-object-writer.d.ts.map +1 -0
  476. package/dist/service/firehose/delivery/sim-firehose-object-writer.js +57 -0
  477. package/dist/service/firehose/delivery/sim-firehose-object-writer.js.map +1 -0
  478. package/dist/service/firehose/destination/sim-firehose-buffering-hints.d.ts +29 -0
  479. package/dist/service/firehose/destination/sim-firehose-buffering-hints.d.ts.map +1 -0
  480. package/dist/service/firehose/destination/sim-firehose-buffering-hints.js +45 -0
  481. package/dist/service/firehose/destination/sim-firehose-buffering-hints.js.map +1 -0
  482. package/dist/service/firehose/destination/sim-firehose-destination-choice.d.ts +35 -0
  483. package/dist/service/firehose/destination/sim-firehose-destination-choice.d.ts.map +1 -0
  484. package/dist/service/firehose/destination/sim-firehose-destination-choice.js +48 -0
  485. package/dist/service/firehose/destination/sim-firehose-destination-choice.js.map +1 -0
  486. package/dist/service/firehose/destination/sim-firehose-s3-destination.d.ts +32 -0
  487. package/dist/service/firehose/destination/sim-firehose-s3-destination.d.ts.map +1 -0
  488. package/dist/service/firehose/destination/sim-firehose-s3-destination.js +51 -0
  489. package/dist/service/firehose/destination/sim-firehose-s3-destination.js.map +1 -0
  490. package/dist/service/firehose/error/sim-firehose.error.d.ts +69 -0
  491. package/dist/service/firehose/error/sim-firehose.error.d.ts.map +1 -0
  492. package/dist/service/firehose/error/sim-firehose.error.js +79 -0
  493. package/dist/service/firehose/error/sim-firehose.error.js.map +1 -0
  494. package/dist/service/firehose/failure/sim-firehose-failure.d.ts +38 -0
  495. package/dist/service/firehose/failure/sim-firehose-failure.d.ts.map +1 -0
  496. package/dist/service/firehose/failure/sim-firehose-failure.js +40 -0
  497. package/dist/service/firehose/failure/sim-firehose-failure.js.map +1 -0
  498. package/dist/service/firehose/failure/sim-firehose-failures.d.ts +32 -0
  499. package/dist/service/firehose/failure/sim-firehose-failures.d.ts.map +1 -0
  500. package/dist/service/firehose/failure/sim-firehose-failures.js +47 -0
  501. package/dist/service/firehose/failure/sim-firehose-failures.js.map +1 -0
  502. package/dist/service/firehose/index.d.ts +17 -0
  503. package/dist/service/firehose/index.d.ts.map +1 -0
  504. package/dist/service/firehose/index.js +12 -0
  505. package/dist/service/firehose/index.js.map +1 -0
  506. package/dist/service/firehose/sdk/sim-firehose-sdk-command-router.d.ts +18 -0
  507. package/dist/service/firehose/sdk/sim-firehose-sdk-command-router.d.ts.map +1 -0
  508. package/dist/service/firehose/sdk/sim-firehose-sdk-command-router.js +48 -0
  509. package/dist/service/firehose/sdk/sim-firehose-sdk-command-router.js.map +1 -0
  510. package/dist/service/firehose/sim-firehose.d.ts +104 -0
  511. package/dist/service/firehose/sim-firehose.d.ts.map +1 -0
  512. package/dist/service/firehose/sim-firehose.js +130 -0
  513. package/dist/service/firehose/sim-firehose.js.map +1 -0
  514. package/dist/service/firehose/source/read/sim-firehose-source-poll.d.ts +39 -0
  515. package/dist/service/firehose/source/read/sim-firehose-source-poll.d.ts.map +1 -0
  516. package/dist/service/firehose/source/read/sim-firehose-source-poll.js +48 -0
  517. package/dist/service/firehose/source/read/sim-firehose-source-poll.js.map +1 -0
  518. package/dist/service/firehose/source/read/sim-firehose-source-reader.d.ts +62 -0
  519. package/dist/service/firehose/source/read/sim-firehose-source-reader.d.ts.map +1 -0
  520. package/dist/service/firehose/source/read/sim-firehose-source-reader.js +94 -0
  521. package/dist/service/firehose/source/read/sim-firehose-source-reader.js.map +1 -0
  522. package/dist/service/firehose/source/read/sim-firehose-source-reading.d.ts +39 -0
  523. package/dist/service/firehose/source/read/sim-firehose-source-reading.d.ts.map +1 -0
  524. package/dist/service/firehose/source/read/sim-firehose-source-reading.js +48 -0
  525. package/dist/service/firehose/source/read/sim-firehose-source-reading.js.map +1 -0
  526. package/dist/service/firehose/source/read/sim-firehose-source-shard-ids.d.ts +12 -0
  527. package/dist/service/firehose/source/read/sim-firehose-source-shard-ids.d.ts.map +1 -0
  528. package/dist/service/firehose/source/read/sim-firehose-source-shard-ids.js +56 -0
  529. package/dist/service/firehose/source/read/sim-firehose-source-shard-ids.js.map +1 -0
  530. package/dist/service/firehose/source/read/sim-firehose-source-shard.d.ts +36 -0
  531. package/dist/service/firehose/source/read/sim-firehose-source-shard.d.ts.map +1 -0
  532. package/dist/service/firehose/source/read/sim-firehose-source-shard.js +45 -0
  533. package/dist/service/firehose/source/read/sim-firehose-source-shard.js.map +1 -0
  534. package/dist/service/firehose/source/read/sim-firehose-source-shards.d.ts +42 -0
  535. package/dist/service/firehose/source/read/sim-firehose-source-shards.d.ts.map +1 -0
  536. package/dist/service/firehose/source/read/sim-firehose-source-shards.js +53 -0
  537. package/dist/service/firehose/source/read/sim-firehose-source-shards.js.map +1 -0
  538. package/dist/service/firehose/source/sim-firehose-kinesis-source-arn.d.ts +29 -0
  539. package/dist/service/firehose/source/sim-firehose-kinesis-source-arn.d.ts.map +1 -0
  540. package/dist/service/firehose/source/sim-firehose-kinesis-source-arn.js +57 -0
  541. package/dist/service/firehose/source/sim-firehose-kinesis-source-arn.js.map +1 -0
  542. package/dist/service/firehose/source/sim-firehose-record-source.d.ts +140 -0
  543. package/dist/service/firehose/source/sim-firehose-record-source.d.ts.map +1 -0
  544. package/dist/service/firehose/source/sim-firehose-record-source.js +53 -0
  545. package/dist/service/firehose/source/sim-firehose-record-source.js.map +1 -0
  546. package/dist/service/firehose/source/sim-firehose-source-choice.d.ts +26 -0
  547. package/dist/service/firehose/source/sim-firehose-source-choice.d.ts.map +1 -0
  548. package/dist/service/firehose/source/sim-firehose-source-choice.js +68 -0
  549. package/dist/service/firehose/source/sim-firehose-source-choice.js.map +1 -0
  550. package/dist/service/firehose/source/sim-firehose-source-failures.d.ts +38 -0
  551. package/dist/service/firehose/source/sim-firehose-source-failures.d.ts.map +1 -0
  552. package/dist/service/firehose/source/sim-firehose-source-failures.js +33 -0
  553. package/dist/service/firehose/source/sim-firehose-source-failures.js.map +1 -0
  554. package/dist/service/firehose/source/sim-firehose-source.d.ts +64 -0
  555. package/dist/service/firehose/source/sim-firehose-source.d.ts.map +1 -0
  556. package/dist/service/firehose/source/sim-firehose-source.js +58 -0
  557. package/dist/service/firehose/source/sim-firehose-source.js.map +1 -0
  558. package/dist/service/firehose/stream/sim-firehose-delivery-stream-arn.d.ts +10 -0
  559. package/dist/service/firehose/stream/sim-firehose-delivery-stream-arn.d.ts.map +1 -0
  560. package/dist/service/firehose/stream/sim-firehose-delivery-stream-arn.js +12 -0
  561. package/dist/service/firehose/stream/sim-firehose-delivery-stream-arn.js.map +1 -0
  562. package/dist/service/firehose/stream/sim-firehose-delivery-stream-name.d.ts +9 -0
  563. package/dist/service/firehose/stream/sim-firehose-delivery-stream-name.d.ts.map +1 -0
  564. package/dist/service/firehose/stream/sim-firehose-delivery-stream-name.js +25 -0
  565. package/dist/service/firehose/stream/sim-firehose-delivery-stream-name.js.map +1 -0
  566. package/dist/service/firehose/stream/sim-firehose-delivery-stream-store.d.ts +37 -0
  567. package/dist/service/firehose/stream/sim-firehose-delivery-stream-store.d.ts.map +1 -0
  568. package/dist/service/firehose/stream/sim-firehose-delivery-stream-store.js +55 -0
  569. package/dist/service/firehose/stream/sim-firehose-delivery-stream-store.js.map +1 -0
  570. package/dist/service/firehose/stream/sim-firehose-delivery-stream.d.ts +50 -0
  571. package/dist/service/firehose/stream/sim-firehose-delivery-stream.d.ts.map +1 -0
  572. package/dist/service/firehose/stream/sim-firehose-delivery-stream.factory.d.ts +57 -0
  573. package/dist/service/firehose/stream/sim-firehose-delivery-stream.factory.d.ts.map +1 -0
  574. package/dist/service/firehose/stream/sim-firehose-delivery-stream.factory.js +61 -0
  575. package/dist/service/firehose/stream/sim-firehose-delivery-stream.factory.js.map +1 -0
  576. package/dist/service/firehose/stream/sim-firehose-delivery-stream.js +42 -0
  577. package/dist/service/firehose/stream/sim-firehose-delivery-stream.js.map +1 -0
  578. package/dist/service/lambda/function/environment/sim-lambda-environment.d.ts +22 -20
  579. package/dist/service/lambda/function/environment/sim-lambda-environment.d.ts.map +1 -1
  580. package/dist/service/lambda/function/environment/sim-lambda-environment.js +27 -29
  581. package/dist/service/lambda/function/environment/sim-lambda-environment.js.map +1 -1
  582. package/dist/service/lambda/function/environment/sim-lambda-host-backed-variables.d.ts +28 -0
  583. package/dist/service/lambda/function/environment/sim-lambda-host-backed-variables.d.ts.map +1 -0
  584. package/dist/service/lambda/function/environment/sim-lambda-host-backed-variables.js +49 -0
  585. package/dist/service/lambda/function/environment/sim-lambda-host-backed-variables.js.map +1 -0
  586. package/dist/service/lambda/function/environment/sim-lambda-runtime-variables.d.ts +18 -0
  587. package/dist/service/lambda/function/environment/sim-lambda-runtime-variables.d.ts.map +1 -0
  588. package/dist/service/lambda/function/environment/sim-lambda-runtime-variables.js +23 -0
  589. package/dist/service/lambda/function/environment/sim-lambda-runtime-variables.js.map +1 -0
  590. package/dist/service/stepfunctions/choice/sim-states-choice-group-test.d.ts +32 -0
  591. package/dist/service/stepfunctions/choice/sim-states-choice-group-test.d.ts.map +1 -0
  592. package/dist/service/stepfunctions/choice/sim-states-choice-group-test.js +42 -0
  593. package/dist/service/stepfunctions/choice/sim-states-choice-group-test.js.map +1 -0
  594. package/dist/service/stepfunctions/choice/sim-states-choice-operand.d.ts +29 -0
  595. package/dist/service/stepfunctions/choice/sim-states-choice-operand.d.ts.map +1 -0
  596. package/dist/service/stepfunctions/choice/sim-states-choice-operand.js +38 -0
  597. package/dist/service/stepfunctions/choice/sim-states-choice-operand.js.map +1 -0
  598. package/dist/service/stepfunctions/choice/sim-states-choice-parse.d.ts +15 -0
  599. package/dist/service/stepfunctions/choice/sim-states-choice-parse.d.ts.map +1 -0
  600. package/dist/service/stepfunctions/choice/sim-states-choice-parse.js +44 -0
  601. package/dist/service/stepfunctions/choice/sim-states-choice-parse.js.map +1 -0
  602. package/dist/service/stepfunctions/choice/sim-states-choice-rule-record.d.ts +10 -0
  603. package/dist/service/stepfunctions/choice/sim-states-choice-rule-record.d.ts.map +1 -0
  604. package/dist/service/stepfunctions/choice/sim-states-choice-rule-record.js +31 -0
  605. package/dist/service/stepfunctions/choice/sim-states-choice-rule-record.js.map +1 -0
  606. package/dist/service/stepfunctions/choice/sim-states-choice-rule.d.ts +15 -0
  607. package/dist/service/stepfunctions/choice/sim-states-choice-rule.d.ts.map +1 -0
  608. package/dist/service/stepfunctions/choice/sim-states-choice-rule.js +18 -0
  609. package/dist/service/stepfunctions/choice/sim-states-choice-rule.js.map +1 -0
  610. package/dist/service/stepfunctions/choice/sim-states-choice-test-parse.d.ts +7 -0
  611. package/dist/service/stepfunctions/choice/sim-states-choice-test-parse.d.ts.map +1 -0
  612. package/dist/service/stepfunctions/choice/sim-states-choice-test-parse.js +72 -0
  613. package/dist/service/stepfunctions/choice/sim-states-choice-test-parse.js.map +1 -0
  614. package/dist/service/stepfunctions/choice/sim-states-choice-test.d.ts +33 -0
  615. package/dist/service/stepfunctions/choice/sim-states-choice-test.d.ts.map +1 -0
  616. package/dist/service/stepfunctions/choice/sim-states-choice-test.js +34 -0
  617. package/dist/service/stepfunctions/choice/sim-states-choice-test.js.map +1 -0
  618. package/dist/service/stepfunctions/choice/sim-states-comparison-families.d.ts +26 -0
  619. package/dist/service/stepfunctions/choice/sim-states-comparison-families.d.ts.map +1 -0
  620. package/dist/service/stepfunctions/choice/sim-states-comparison-families.js +65 -0
  621. package/dist/service/stepfunctions/choice/sim-states-comparison-families.js.map +1 -0
  622. package/dist/service/stepfunctions/choice/sim-states-comparison-parse.d.ts +15 -0
  623. package/dist/service/stepfunctions/choice/sim-states-comparison-parse.d.ts.map +1 -0
  624. package/dist/service/stepfunctions/choice/sim-states-comparison-parse.js +43 -0
  625. package/dist/service/stepfunctions/choice/sim-states-comparison-parse.js.map +1 -0
  626. package/dist/service/stepfunctions/choice/sim-states-comparison.d.ts +49 -0
  627. package/dist/service/stepfunctions/choice/sim-states-comparison.d.ts.map +1 -0
  628. package/dist/service/stepfunctions/choice/sim-states-comparison.js +51 -0
  629. package/dist/service/stepfunctions/choice/sim-states-comparison.js.map +1 -0
  630. package/dist/service/stepfunctions/choice/sim-states-comparisons.d.ts +6 -0
  631. package/dist/service/stepfunctions/choice/sim-states-comparisons.d.ts.map +1 -0
  632. package/dist/service/stepfunctions/choice/sim-states-comparisons.js +64 -0
  633. package/dist/service/stepfunctions/choice/sim-states-comparisons.js.map +1 -0
  634. package/dist/service/stepfunctions/choice/sim-states-glob.d.ts +14 -0
  635. package/dist/service/stepfunctions/choice/sim-states-glob.d.ts.map +1 -0
  636. package/dist/service/stepfunctions/choice/sim-states-glob.js +73 -0
  637. package/dist/service/stepfunctions/choice/sim-states-glob.js.map +1 -0
  638. package/dist/service/stepfunctions/command/execution/execution.command.d.ts +32 -0
  639. package/dist/service/stepfunctions/command/execution/execution.command.d.ts.map +1 -0
  640. package/dist/service/stepfunctions/command/execution/execution.command.js +2 -0
  641. package/dist/service/stepfunctions/command/execution/execution.command.js.map +1 -0
  642. package/dist/service/stepfunctions/command/execution/sim-states-execution-describe.d.ts +11 -0
  643. package/dist/service/stepfunctions/command/execution/sim-states-execution-describe.d.ts.map +1 -0
  644. package/dist/service/stepfunctions/command/execution/sim-states-execution-describe.js +23 -0
  645. package/dist/service/stepfunctions/command/execution/sim-states-execution-describe.js.map +1 -0
  646. package/dist/service/stepfunctions/command/execution/sim-states-execution-name.d.ts +12 -0
  647. package/dist/service/stepfunctions/command/execution/sim-states-execution-name.d.ts.map +1 -0
  648. package/dist/service/stepfunctions/command/execution/sim-states-execution-name.js +23 -0
  649. package/dist/service/stepfunctions/command/execution/sim-states-execution-name.js.map +1 -0
  650. package/dist/service/stepfunctions/command/execution/sim-states-execution-repeat.d.ts +12 -0
  651. package/dist/service/stepfunctions/command/execution/sim-states-execution-repeat.d.ts.map +1 -0
  652. package/dist/service/stepfunctions/command/execution/sim-states-execution-repeat.js +21 -0
  653. package/dist/service/stepfunctions/command/execution/sim-states-execution-repeat.js.map +1 -0
  654. package/dist/service/stepfunctions/command/execution/sim-states-execution-start.d.ts +36 -0
  655. package/dist/service/stepfunctions/command/execution/sim-states-execution-start.d.ts.map +1 -0
  656. package/dist/service/stepfunctions/command/execution/sim-states-execution-start.js +64 -0
  657. package/dist/service/stepfunctions/command/execution/sim-states-execution-start.js.map +1 -0
  658. package/dist/service/stepfunctions/command/execution/sim-states-execution-view.d.ts +18 -0
  659. package/dist/service/stepfunctions/command/execution/sim-states-execution-view.d.ts.map +1 -0
  660. package/dist/service/stepfunctions/command/execution/sim-states-execution-view.js +41 -0
  661. package/dist/service/stepfunctions/command/execution/sim-states-execution-view.js.map +1 -0
  662. package/dist/service/stepfunctions/command/machine/machine.command.d.ts +63 -0
  663. package/dist/service/stepfunctions/command/machine/machine.command.d.ts.map +1 -0
  664. package/dist/service/stepfunctions/command/machine/machine.command.js +2 -0
  665. package/dist/service/stepfunctions/command/machine/machine.command.js.map +1 -0
  666. package/dist/service/stepfunctions/command/machine/sim-state-machine-create.d.ts +30 -0
  667. package/dist/service/stepfunctions/command/machine/sim-state-machine-create.d.ts.map +1 -0
  668. package/dist/service/stepfunctions/command/machine/sim-state-machine-create.js +64 -0
  669. package/dist/service/stepfunctions/command/machine/sim-state-machine-create.js.map +1 -0
  670. package/dist/service/stepfunctions/command/machine/sim-state-machine-input.d.ts +22 -0
  671. package/dist/service/stepfunctions/command/machine/sim-state-machine-input.d.ts.map +1 -0
  672. package/dist/service/stepfunctions/command/machine/sim-state-machine-input.js +38 -0
  673. package/dist/service/stepfunctions/command/machine/sim-state-machine-input.js.map +1 -0
  674. package/dist/service/stepfunctions/command/machine/sim-state-machine-lookup.d.ts +7 -0
  675. package/dist/service/stepfunctions/command/machine/sim-state-machine-lookup.d.ts.map +1 -0
  676. package/dist/service/stepfunctions/command/machine/sim-state-machine-lookup.js +15 -0
  677. package/dist/service/stepfunctions/command/machine/sim-state-machine-lookup.js.map +1 -0
  678. package/dist/service/stepfunctions/command/machine/sim-state-machine-reads.d.ts +18 -0
  679. package/dist/service/stepfunctions/command/machine/sim-state-machine-reads.d.ts.map +1 -0
  680. package/dist/service/stepfunctions/command/machine/sim-state-machine-reads.js +49 -0
  681. package/dist/service/stepfunctions/command/machine/sim-state-machine-reads.js.map +1 -0
  682. package/dist/service/stepfunctions/command/machine/sim-state-machine-writes.d.ts +26 -0
  683. package/dist/service/stepfunctions/command/machine/sim-state-machine-writes.d.ts.map +1 -0
  684. package/dist/service/stepfunctions/command/machine/sim-state-machine-writes.js +44 -0
  685. package/dist/service/stepfunctions/command/machine/sim-state-machine-writes.js.map +1 -0
  686. package/dist/service/stepfunctions/command/sim-step-functions-command.types.d.ts +6 -0
  687. package/dist/service/stepfunctions/command/sim-step-functions-command.types.d.ts.map +1 -0
  688. package/dist/service/stepfunctions/command/sim-step-functions-command.types.js +2 -0
  689. package/dist/service/stepfunctions/command/sim-step-functions-command.types.js.map +1 -0
  690. package/dist/service/stepfunctions/command/sim-step-functions-request-options.d.ts +12 -0
  691. package/dist/service/stepfunctions/command/sim-step-functions-request-options.d.ts.map +1 -0
  692. package/dist/service/stepfunctions/command/sim-step-functions-request-options.js +2 -0
  693. package/dist/service/stepfunctions/command/sim-step-functions-request-options.js.map +1 -0
  694. package/dist/service/stepfunctions/data/sim-states-result-path.js +1 -1
  695. package/dist/service/stepfunctions/data/sim-states-result-path.js.map +1 -1
  696. package/dist/service/stepfunctions/data/sim-states-timestamp-fields.d.ts +10 -0
  697. package/dist/service/stepfunctions/data/sim-states-timestamp-fields.d.ts.map +1 -0
  698. package/dist/service/stepfunctions/data/sim-states-timestamp-fields.js +45 -0
  699. package/dist/service/stepfunctions/data/sim-states-timestamp-fields.js.map +1 -0
  700. package/dist/service/stepfunctions/data/sim-states-timestamp.d.ts +10 -0
  701. package/dist/service/stepfunctions/data/sim-states-timestamp.d.ts.map +1 -0
  702. package/dist/service/stepfunctions/data/sim-states-timestamp.js +26 -0
  703. package/dist/service/stepfunctions/data/sim-states-timestamp.js.map +1 -0
  704. package/dist/service/stepfunctions/definition/sim-states-definition-parse.d.ts +10 -0
  705. package/dist/service/stepfunctions/definition/sim-states-definition-parse.d.ts.map +1 -0
  706. package/dist/service/stepfunctions/definition/sim-states-definition-parse.js +61 -0
  707. package/dist/service/stepfunctions/definition/sim-states-definition-parse.js.map +1 -0
  708. package/dist/service/stepfunctions/definition/sim-states-definition.d.ts +15 -0
  709. package/dist/service/stepfunctions/definition/sim-states-definition.d.ts.map +1 -0
  710. package/dist/service/stepfunctions/definition/sim-states-definition.js +2 -0
  711. package/dist/service/stepfunctions/definition/sim-states-definition.js.map +1 -0
  712. package/dist/service/stepfunctions/definition/sim-states-state-fields.d.ts +17 -0
  713. package/dist/service/stepfunctions/definition/sim-states-state-fields.d.ts.map +1 -0
  714. package/dist/service/stepfunctions/definition/sim-states-state-fields.js +47 -0
  715. package/dist/service/stepfunctions/definition/sim-states-state-fields.js.map +1 -0
  716. package/dist/service/stepfunctions/definition/sim-states-state-parse.d.ts +7 -0
  717. package/dist/service/stepfunctions/definition/sim-states-state-parse.d.ts.map +1 -0
  718. package/dist/service/stepfunctions/definition/sim-states-state-parse.js +67 -0
  719. package/dist/service/stepfunctions/definition/sim-states-state-parse.js.map +1 -0
  720. package/dist/service/stepfunctions/definition/sim-states-state.d.ts +98 -0
  721. package/dist/service/stepfunctions/definition/sim-states-state.d.ts.map +1 -0
  722. package/dist/service/stepfunctions/definition/sim-states-state.js +34 -0
  723. package/dist/service/stepfunctions/definition/sim-states-state.js.map +1 -0
  724. package/dist/service/stepfunctions/definition/sim-states-transitions.d.ts +10 -0
  725. package/dist/service/stepfunctions/definition/sim-states-transitions.d.ts.map +1 -0
  726. package/dist/service/stepfunctions/definition/sim-states-transitions.js +79 -0
  727. package/dist/service/stepfunctions/definition/sim-states-transitions.js.map +1 -0
  728. package/dist/service/stepfunctions/error/sim-step-functions.error.d.ts +99 -0
  729. package/dist/service/stepfunctions/error/sim-step-functions.error.d.ts.map +1 -1
  730. package/dist/service/stepfunctions/error/sim-step-functions.error.js +119 -0
  731. package/dist/service/stepfunctions/error/sim-step-functions.error.js.map +1 -1
  732. package/dist/service/stepfunctions/execution/sim-states-execution-store.d.ts +33 -0
  733. package/dist/service/stepfunctions/execution/sim-states-execution-store.d.ts.map +1 -0
  734. package/dist/service/stepfunctions/execution/sim-states-execution-store.js +55 -0
  735. package/dist/service/stepfunctions/execution/sim-states-execution-store.js.map +1 -0
  736. package/dist/service/stepfunctions/execution/sim-states-execution.d.ts +53 -0
  737. package/dist/service/stepfunctions/execution/sim-states-execution.d.ts.map +1 -0
  738. package/dist/service/stepfunctions/execution/sim-states-execution.js +77 -0
  739. package/dist/service/stepfunctions/execution/sim-states-execution.js.map +1 -0
  740. package/dist/service/stepfunctions/execution/sim-states-failure.d.ts +24 -0
  741. package/dist/service/stepfunctions/execution/sim-states-failure.d.ts.map +1 -0
  742. package/dist/service/stepfunctions/execution/sim-states-failure.js +50 -0
  743. package/dist/service/stepfunctions/execution/sim-states-failure.js.map +1 -0
  744. package/dist/service/stepfunctions/execution/sim-states-interpreter.d.ts +42 -0
  745. package/dist/service/stepfunctions/execution/sim-states-interpreter.d.ts.map +1 -0
  746. package/dist/service/stepfunctions/execution/sim-states-interpreter.js +124 -0
  747. package/dist/service/stepfunctions/execution/sim-states-interpreter.js.map +1 -0
  748. package/dist/service/stepfunctions/execution/sim-states-run-choice.d.ts +12 -0
  749. package/dist/service/stepfunctions/execution/sim-states-run-choice.d.ts.map +1 -0
  750. package/dist/service/stepfunctions/execution/sim-states-run-choice.js +24 -0
  751. package/dist/service/stepfunctions/execution/sim-states-run-choice.js.map +1 -0
  752. package/dist/service/stepfunctions/execution/sim-states-run-state.d.ts +15 -0
  753. package/dist/service/stepfunctions/execution/sim-states-run-state.d.ts.map +1 -0
  754. package/dist/service/stepfunctions/execution/sim-states-run-state.js +68 -0
  755. package/dist/service/stepfunctions/execution/sim-states-run-state.js.map +1 -0
  756. package/dist/service/stepfunctions/execution/sim-states-run-task.d.ts +14 -0
  757. package/dist/service/stepfunctions/execution/sim-states-run-task.d.ts.map +1 -0
  758. package/dist/service/stepfunctions/execution/sim-states-run-task.js +23 -0
  759. package/dist/service/stepfunctions/execution/sim-states-run-task.js.map +1 -0
  760. package/dist/service/stepfunctions/execution/sim-states-run-wait.d.ts +11 -0
  761. package/dist/service/stepfunctions/execution/sim-states-run-wait.d.ts.map +1 -0
  762. package/dist/service/stepfunctions/execution/sim-states-run-wait.js +21 -0
  763. package/dist/service/stepfunctions/execution/sim-states-run-wait.js.map +1 -0
  764. package/dist/service/stepfunctions/execution/sim-states-settlement.d.ts +27 -0
  765. package/dist/service/stepfunctions/execution/sim-states-settlement.d.ts.map +1 -0
  766. package/dist/service/stepfunctions/execution/sim-states-settlement.js +33 -0
  767. package/dist/service/stepfunctions/execution/sim-states-settlement.js.map +1 -0
  768. package/dist/service/stepfunctions/execution/sim-states-state-outcome.d.ts +46 -0
  769. package/dist/service/stepfunctions/execution/sim-states-state-outcome.d.ts.map +1 -0
  770. package/dist/service/stepfunctions/execution/sim-states-state-outcome.js +2 -0
  771. package/dist/service/stepfunctions/execution/sim-states-state-outcome.js.map +1 -0
  772. package/dist/service/stepfunctions/execution/sim-states-state-runner.d.ts +27 -0
  773. package/dist/service/stepfunctions/execution/sim-states-state-runner.d.ts.map +1 -0
  774. package/dist/service/stepfunctions/execution/sim-states-state-runner.js +36 -0
  775. package/dist/service/stepfunctions/execution/sim-states-state-runner.js.map +1 -0
  776. package/dist/service/stepfunctions/index.d.ts +16 -0
  777. package/dist/service/stepfunctions/index.d.ts.map +1 -0
  778. package/dist/service/stepfunctions/index.js +9 -0
  779. package/dist/service/stepfunctions/index.js.map +1 -0
  780. package/dist/service/stepfunctions/machine/sim-state-machine-arn.d.ts +30 -0
  781. package/dist/service/stepfunctions/machine/sim-state-machine-arn.d.ts.map +1 -0
  782. package/dist/service/stepfunctions/machine/sim-state-machine-arn.js +48 -0
  783. package/dist/service/stepfunctions/machine/sim-state-machine-arn.js.map +1 -0
  784. package/dist/service/stepfunctions/machine/sim-state-machine-store.d.ts +20 -0
  785. package/dist/service/stepfunctions/machine/sim-state-machine-store.d.ts.map +1 -0
  786. package/dist/service/stepfunctions/machine/sim-state-machine-store.js +32 -0
  787. package/dist/service/stepfunctions/machine/sim-state-machine-store.js.map +1 -0
  788. package/dist/service/stepfunctions/machine/sim-state-machine.d.ts +54 -0
  789. package/dist/service/stepfunctions/machine/sim-state-machine.d.ts.map +1 -0
  790. package/dist/service/stepfunctions/machine/sim-state-machine.js +60 -0
  791. package/dist/service/stepfunctions/machine/sim-state-machine.js.map +1 -0
  792. package/dist/service/stepfunctions/machine/sim-states-name.d.ts +10 -0
  793. package/dist/service/stepfunctions/machine/sim-states-name.d.ts.map +1 -0
  794. package/dist/service/stepfunctions/machine/sim-states-name.js +42 -0
  795. package/dist/service/stepfunctions/machine/sim-states-name.js.map +1 -0
  796. package/dist/service/stepfunctions/sdk/sim-step-functions-sdk-command-router.d.ts +19 -0
  797. package/dist/service/stepfunctions/sdk/sim-step-functions-sdk-command-router.d.ts.map +1 -0
  798. package/dist/service/stepfunctions/sdk/sim-step-functions-sdk-command-router.js +53 -0
  799. package/dist/service/stepfunctions/sdk/sim-step-functions-sdk-command-router.js.map +1 -0
  800. package/dist/service/stepfunctions/sim-step-functions-inspection.d.ts +22 -0
  801. package/dist/service/stepfunctions/sim-step-functions-inspection.d.ts.map +1 -0
  802. package/dist/service/stepfunctions/sim-step-functions-inspection.js +29 -0
  803. package/dist/service/stepfunctions/sim-step-functions-inspection.js.map +1 -0
  804. package/dist/service/stepfunctions/sim-step-functions.d.ts +67 -0
  805. package/dist/service/stepfunctions/sim-step-functions.d.ts.map +1 -0
  806. package/dist/service/stepfunctions/sim-step-functions.js +124 -0
  807. package/dist/service/stepfunctions/sim-step-functions.js.map +1 -0
  808. package/dist/service/stepfunctions/task/sim-aws-states-task-targets.d.ts +33 -0
  809. package/dist/service/stepfunctions/task/sim-aws-states-task-targets.d.ts.map +1 -0
  810. package/dist/service/stepfunctions/task/sim-aws-states-task-targets.js +49 -0
  811. package/dist/service/stepfunctions/task/sim-aws-states-task-targets.js.map +1 -0
  812. package/dist/service/stepfunctions/task/sim-states-execution-role.d.ts +25 -0
  813. package/dist/service/stepfunctions/task/sim-states-execution-role.d.ts.map +1 -0
  814. package/dist/service/stepfunctions/task/sim-states-execution-role.js +57 -0
  815. package/dist/service/stepfunctions/task/sim-states-execution-role.js.map +1 -0
  816. package/dist/service/stepfunctions/task/sim-states-function-arn-target.d.ts +31 -0
  817. package/dist/service/stepfunctions/task/sim-states-function-arn-target.d.ts.map +1 -0
  818. package/dist/service/stepfunctions/task/sim-states-function-arn-target.js +39 -0
  819. package/dist/service/stepfunctions/task/sim-states-function-arn-target.js.map +1 -0
  820. package/dist/service/stepfunctions/task/sim-states-function-location.d.ts +20 -0
  821. package/dist/service/stepfunctions/task/sim-states-function-location.d.ts.map +1 -0
  822. package/dist/service/stepfunctions/task/sim-states-function-location.js +28 -0
  823. package/dist/service/stepfunctions/task/sim-states-function-location.js.map +1 -0
  824. package/dist/service/stepfunctions/task/sim-states-lambda-invoke-target.d.ts +34 -0
  825. package/dist/service/stepfunctions/task/sim-states-lambda-invoke-target.d.ts.map +1 -0
  826. package/dist/service/stepfunctions/task/sim-states-lambda-invoke-target.js +65 -0
  827. package/dist/service/stepfunctions/task/sim-states-lambda-invoke-target.js.map +1 -0
  828. package/dist/service/stepfunctions/task/sim-states-no-task-targets.d.ts +16 -0
  829. package/dist/service/stepfunctions/task/sim-states-no-task-targets.d.ts.map +1 -0
  830. package/dist/service/stepfunctions/task/sim-states-no-task-targets.js +19 -0
  831. package/dist/service/stepfunctions/task/sim-states-no-task-targets.js.map +1 -0
  832. package/dist/service/stepfunctions/task/sim-states-task-fields.d.ts +14 -0
  833. package/dist/service/stepfunctions/task/sim-states-task-fields.d.ts.map +1 -0
  834. package/dist/service/stepfunctions/task/sim-states-task-fields.js +29 -0
  835. package/dist/service/stepfunctions/task/sim-states-task-fields.js.map +1 -0
  836. package/dist/service/stepfunctions/task/sim-states-task-function.d.ts +57 -0
  837. package/dist/service/stepfunctions/task/sim-states-task-function.d.ts.map +1 -0
  838. package/dist/service/stepfunctions/task/sim-states-task-function.js +93 -0
  839. package/dist/service/stepfunctions/task/sim-states-task-function.js.map +1 -0
  840. package/dist/service/stepfunctions/task/sim-states-task-invocation.d.ts +29 -0
  841. package/dist/service/stepfunctions/task/sim-states-task-invocation.d.ts.map +1 -0
  842. package/dist/service/stepfunctions/task/sim-states-task-invocation.js +2 -0
  843. package/dist/service/stepfunctions/task/sim-states-task-invocation.js.map +1 -0
  844. package/dist/service/stepfunctions/task/sim-states-task-resource.d.ts +12 -0
  845. package/dist/service/stepfunctions/task/sim-states-task-resource.d.ts.map +1 -0
  846. package/dist/service/stepfunctions/task/sim-states-task-resource.js +64 -0
  847. package/dist/service/stepfunctions/task/sim-states-task-resource.js.map +1 -0
  848. package/dist/service/stepfunctions/task/sim-states-task-target.d.ts +37 -0
  849. package/dist/service/stepfunctions/task/sim-states-task-target.d.ts.map +1 -0
  850. package/dist/service/stepfunctions/task/sim-states-task-target.js +12 -0
  851. package/dist/service/stepfunctions/task/sim-states-task-target.js.map +1 -0
  852. package/dist/service/stepfunctions/wait/sim-states-wait-due.d.ts +11 -0
  853. package/dist/service/stepfunctions/wait/sim-states-wait-due.d.ts.map +1 -0
  854. package/dist/service/stepfunctions/wait/sim-states-wait-due.js +67 -0
  855. package/dist/service/stepfunctions/wait/sim-states-wait-due.js.map +1 -0
  856. package/dist/service/stepfunctions/wait/sim-states-wait-fields.d.ts +18 -0
  857. package/dist/service/stepfunctions/wait/sim-states-wait-fields.d.ts.map +1 -0
  858. package/dist/service/stepfunctions/wait/sim-states-wait-fields.js +85 -0
  859. package/dist/service/stepfunctions/wait/sim-states-wait-fields.js.map +1 -0
  860. package/dist/util/process/sim-process-environment.d.ts +9 -0
  861. package/dist/util/process/sim-process-environment.d.ts.map +1 -1
  862. package/dist/util/process/sim-process-environment.js +17 -0
  863. package/dist/util/process/sim-process-environment.js.map +1 -1
  864. package/dist/util/throttle/sim-token-bucket.d.ts +32 -0
  865. package/dist/util/throttle/sim-token-bucket.d.ts.map +1 -0
  866. package/dist/util/throttle/sim-token-bucket.js +53 -0
  867. package/dist/util/throttle/sim-token-bucket.js.map +1 -0
  868. package/package.json +11 -1
@@ -0,0 +1,124 @@
1
+ import { BackgroundTasks, } from "../../util/background/background.js";
2
+ import { simAwsAccountRegionScopeFactory } from "../aws/sim-aws-account-region-scope.factory.js";
3
+ import { SimStatesExecutionDescribe } from "./command/execution/sim-states-execution-describe.js";
4
+ import { SimStatesExecutionStart } from "./command/execution/sim-states-execution-start.js";
5
+ import { SimStateMachineCreate } from "./command/machine/sim-state-machine-create.js";
6
+ import { SimStateMachineReads } from "./command/machine/sim-state-machine-reads.js";
7
+ import { SimStateMachineWrites } from "./command/machine/sim-state-machine-writes.js";
8
+ import { SimStatesExecutionStore } from "./execution/sim-states-execution-store.js";
9
+ import { SimStateMachineStore } from "./machine/sim-state-machine-store.js";
10
+ import { SimStepFunctionsSdkCommandRouter } from "./sdk/sim-step-functions-sdk-command-router.js";
11
+ import { SimStatesNoTaskTargets } from "./task/sim-states-no-task-targets.js";
12
+ import { SimStepFunctionsInspection } from "./sim-step-functions-inspection.js";
13
+ /**
14
+ * Simulated Step Functions. Handles SDK commands. Emulates AWS behaviour and
15
+ * state.
16
+ *
17
+ * A state machine's definition is checked when it is created, so an execution
18
+ * walks a definition it can rely on. The state types this runs are `Pass`,
19
+ * `Task`, `Choice`, `Wait`, `Succeed` and `Fail`, and a definition using any
20
+ * other is refused by name.
21
+ *
22
+ * An execution runs on the simulation's background scheduler rather than in
23
+ * the `StartExecution` call. An execution with nothing to wait for settles
24
+ * before the caller sees it. A failing execution records the failure and never
25
+ * raises out of the scheduler, following the way simulated EventBridge records
26
+ * a delivery it could not make.
27
+ */
28
+ export class SimStepFunctions {
29
+ #stateMachines = new SimStateMachineStore();
30
+ #executions = new SimStatesExecutionStore();
31
+ #machineReads;
32
+ #machineWrites;
33
+ #machineCreate;
34
+ #executionStart;
35
+ #executionDescribe;
36
+ #background;
37
+ #sdkRouter = new SimStepFunctionsSdkCommandRouter(this);
38
+ #inspection = new SimStepFunctionsInspection(this.#executions);
39
+ constructor(properties = {}) {
40
+ const { accountRegionScope = simAwsAccountRegionScopeFactory.make(), background = new BackgroundTasks(), taskTargets = new SimStatesNoTaskTargets(), } = properties;
41
+ this.#background = background;
42
+ this.#machineReads = new SimStateMachineReads(this.#stateMachines);
43
+ this.#machineWrites = new SimStateMachineWrites({
44
+ stateMachines: this.#stateMachines,
45
+ executions: this.#executions,
46
+ background,
47
+ });
48
+ this.#machineCreate = new SimStateMachineCreate({
49
+ stateMachines: this.#stateMachines,
50
+ accountRegionScope,
51
+ background,
52
+ });
53
+ this.#executionStart = new SimStatesExecutionStart({
54
+ stateMachines: this.#stateMachines,
55
+ executions: this.#executions,
56
+ accountRegionScope,
57
+ background,
58
+ tasks: taskTargets,
59
+ });
60
+ this.#executionDescribe = new SimStatesExecutionDescribe(this.#executions);
61
+ }
62
+ /**
63
+ * Find a state machine by name.
64
+ *
65
+ * This is the simulator's own accessor, for tests seeding or inspecting
66
+ * state machines without going through a Command.
67
+ */
68
+ findStateMachine(name) {
69
+ return this.#stateMachines.findByName(name);
70
+ }
71
+ /**
72
+ * What a test can read about the executions this service has run.
73
+ */
74
+ inspection() {
75
+ return this.#inspection;
76
+ }
77
+ /** Handle a CreateStateMachine Command from the SDK. */
78
+ async createStateMachine(command, _options) {
79
+ await this.#background.sequence();
80
+ return this.#machineCreate.handle(command);
81
+ }
82
+ /** Handle a DescribeStateMachine Command from the SDK. */
83
+ async describeStateMachine(command, _options) {
84
+ await this.#background.sequence();
85
+ return this.#machineReads.describe(command);
86
+ }
87
+ /** Handle an UpdateStateMachine Command from the SDK. */
88
+ async updateStateMachine(command, _options) {
89
+ await this.#background.sequence();
90
+ return this.#machineWrites.update(command);
91
+ }
92
+ /** Handle a DeleteStateMachine Command from the SDK. */
93
+ async deleteStateMachine(command, _options) {
94
+ await this.#background.sequence();
95
+ return this.#machineWrites.delete(command);
96
+ }
97
+ /** Handle a ListStateMachines Command from the SDK. */
98
+ async listStateMachines(command, _options) {
99
+ await this.#background.sequence();
100
+ return this.#machineReads.list(command);
101
+ }
102
+ /** Handle a StartExecution Command from the SDK. */
103
+ async startExecution(command, _options) {
104
+ await this.#background.sequence();
105
+ const started = this.#executionStart.handle(command);
106
+ // The walk was scheduled rather than run. Yielding here lets an execution
107
+ // with nothing to wait for finish before the caller reads it back, which
108
+ // is what a test asserting straight after StartExecution expects.
109
+ await this.#background.sequence();
110
+ return started;
111
+ }
112
+ /** Handle a DescribeExecution Command from the SDK. */
113
+ async describeExecution(command, _options) {
114
+ await this.#background.sequence();
115
+ return this.#executionDescribe.handle(command);
116
+ }
117
+ /**
118
+ * Get this service's SDK Command router for SDK client interception.
119
+ */
120
+ sdkCommandRouter() {
121
+ return this.#sdkRouter;
122
+ }
123
+ }
124
+ //# sourceMappingURL=sim-step-functions.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"sim-step-functions.js","sourceRoot":"","sources":["../../../src/service/stepfunctions/sim-step-functions.ts"],"names":[],"mappings":"AACA,OAAO,EAEL,eAAe,GAChB,MAAM,qCAAqC,CAAC;AAE7C,OAAO,EAAE,+BAA+B,EAAE,MAAM,gDAAgD,CAAC;AAEjG,OAAO,EAAE,0BAA0B,EAAE,MAAM,sDAAsD,CAAC;AAClG,OAAO,EAAE,uBAAuB,EAAE,MAAM,mDAAmD,CAAC;AAC5F,OAAO,EAAE,qBAAqB,EAAE,MAAM,+CAA+C,CAAC;AACtF,OAAO,EAAE,oBAAoB,EAAE,MAAM,8CAA8C,CAAC;AACpF,OAAO,EAAE,qBAAqB,EAAE,MAAM,+CAA+C,CAAC;AAEtF,OAAO,EAAE,uBAAuB,EAAE,MAAM,2CAA2C,CAAC;AAEpF,OAAO,EAAE,oBAAoB,EAAE,MAAM,sCAAsC,CAAC;AAC5E,OAAO,EAAE,gCAAgC,EAAE,MAAM,gDAAgD,CAAC;AAClG,OAAO,EAAE,sBAAsB,EAAE,MAAM,sCAAsC,CAAC;AAE9E,OAAO,EAAE,0BAA0B,EAAE,MAAM,oCAAoC,CAAC;AAahF;;;;;;;;;;;;;;GAcG;AACH,MAAM,OAAO,gBAAgB;IAClB,cAAc,GAAG,IAAI,oBAAoB,EAAE,CAAC;IAC5C,WAAW,GAAG,IAAI,uBAAuB,EAAE,CAAC;IAC5C,aAAa,CAAuB;IACpC,cAAc,CAAwB;IACtC,cAAc,CAAwB;IACtC,eAAe,CAA0B;IACzC,kBAAkB,CAA6B;IAC/C,WAAW,CAAsB;IACjC,UAAU,GAAG,IAAI,gCAAgC,CAAC,IAAI,CAAC,CAAC;IACxD,WAAW,GAAG,IAAI,0BAA0B,CAAC,IAAI,CAAC,WAAW,CAAC,CAAC;IAExE,YAAY,UAAU,GAA+B,EAAE;QACrD,MAAM,EACJ,kBAAkB,GAAG,+BAA+B,CAAC,IAAI,EAAE,EAC3D,UAAU,GAAG,IAAI,eAAe,EAAE,EAClC,WAAW,GAAG,IAAI,sBAAsB,EAAE,GAC3C,GAAG,UAAU,CAAC;QAEf,IAAI,CAAC,WAAW,GAAG,UAAU,CAAC;QAC9B,IAAI,CAAC,aAAa,GAAG,IAAI,oBAAoB,CAAC,IAAI,CAAC,cAAc,CAAC,CAAC;QACnE,IAAI,CAAC,cAAc,GAAG,IAAI,qBAAqB,CAAC;YAC9C,aAAa,EAAE,IAAI,CAAC,cAAc;YAClC,UAAU,EAAE,IAAI,CAAC,WAAW;YAC5B,UAAU;SACX,CAAC,CAAC;QACH,IAAI,CAAC,cAAc,GAAG,IAAI,qBAAqB,CAAC;YAC9C,aAAa,EAAE,IAAI,CAAC,cAAc;YAClC,kBAAkB;YAClB,UAAU;SACX,CAAC,CAAC;QACH,IAAI,CAAC,eAAe,GAAG,IAAI,uBAAuB,CAAC;YACjD,aAAa,EAAE,IAAI,CAAC,cAAc;YAClC,UAAU,EAAE,IAAI,CAAC,WAAW;YAC5B,kBAAkB;YAClB,UAAU;YACV,KAAK,EAAE,WAAW;SACnB,CAAC,CAAC;QACH,IAAI,CAAC,kBAAkB,GAAG,IAAI,0BAA0B,CAAC,IAAI,CAAC,WAAW,CAAC,CAAC;IAC7E,CAAC;IAED;;;;;OAKG;IACH,gBAAgB,CAAC,IAAY;QAC3B,OAAO,IAAI,CAAC,cAAc,CAAC,UAAU,CAAC,IAAI,CAAC,CAAC;IAC9C,CAAC;IAED;;OAEG;IACH,UAAU;QACR,OAAO,IAAI,CAAC,WAAW,CAAC;IAC1B,CAAC;IAED,wDAAwD;IACxD,KAAK,CAAC,kBAAkB,CACtB,OAAuD,EACvD,QAAyC;QAEzC,MAAM,IAAI,CAAC,WAAW,CAAC,QAAQ,EAAE,CAAC;QAClC,OAAO,IAAI,CAAC,cAAc,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC;IAC7C,CAAC;IAED,0DAA0D;IAC1D,KAAK,CAAC,oBAAoB,CACxB,OAAyD,EACzD,QAAyC;QAEzC,MAAM,IAAI,CAAC,WAAW,CAAC,QAAQ,EAAE,CAAC;QAClC,OAAO,IAAI,CAAC,aAAa,CAAC,QAAQ,CAAC,OAAO,CAAC,CAAC;IAC9C,CAAC;IAED,yDAAyD;IACzD,KAAK,CAAC,kBAAkB,CACtB,OAAuD,EACvD,QAAyC;QAEzC,MAAM,IAAI,CAAC,WAAW,CAAC,QAAQ,EAAE,CAAC;QAClC,OAAO,IAAI,CAAC,cAAc,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC;IAC7C,CAAC;IAED,wDAAwD;IACxD,KAAK,CAAC,kBAAkB,CACtB,OAAuD,EACvD,QAAyC;QAEzC,MAAM,IAAI,CAAC,WAAW,CAAC,QAAQ,EAAE,CAAC;QAClC,OAAO,IAAI,CAAC,cAAc,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC;IAC7C,CAAC;IAED,uDAAuD;IACvD,KAAK,CAAC,iBAAiB,CACrB,OAAsD,EACtD,QAAyC;QAEzC,MAAM,IAAI,CAAC,WAAW,CAAC,QAAQ,EAAE,CAAC;QAClC,OAAO,IAAI,CAAC,aAAa,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;IAC1C,CAAC;IAED,oDAAoD;IACpD,KAAK,CAAC,cAAc,CAClB,OAAmD,EACnD,QAAyC;QAEzC,MAAM,IAAI,CAAC,WAAW,CAAC,QAAQ,EAAE,CAAC;QAElC,MAAM,OAAO,GAAG,IAAI,CAAC,eAAe,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC;QAErD,0EAA0E;QAC1E,yEAAyE;QACzE,kEAAkE;QAClE,MAAM,IAAI,CAAC,WAAW,CAAC,QAAQ,EAAE,CAAC;QAElC,OAAO,OAAO,CAAC;IACjB,CAAC;IAED,uDAAuD;IACvD,KAAK,CAAC,iBAAiB,CACrB,OAAsD,EACtD,QAAyC;QAEzC,MAAM,IAAI,CAAC,WAAW,CAAC,QAAQ,EAAE,CAAC;QAClC,OAAO,IAAI,CAAC,kBAAkB,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC;IACjD,CAAC;IAED;;OAEG;IACH,gBAAgB;QACd,OAAO,IAAI,CAAC,UAAU,CAAC;IACzB,CAAC;CACF"}
@@ -0,0 +1,33 @@
1
+ import type { SimAwsAccountRegionScope } from "../../aws/sim-aws-account-region-scope.js";
2
+ import type { SimAws } from "../../aws/sim-aws.js";
3
+ import type { JSONValue } from "../../../util/type-guard/json.js";
4
+ import type { SimStatesTaskInvocation, SimStatesTaskTargets } from "./sim-states-task-invocation.js";
5
+ interface SimAwsStatesTaskTargetsProperties {
6
+ readonly simAws: SimAws;
7
+ readonly accountRegionScope: SimAwsAccountRegionScope;
8
+ }
9
+ /**
10
+ * Everywhere the state machines of one simulated AWS instance can invoke.
11
+ *
12
+ * The function is looked up when a task runs, never when this is built:
13
+ * reaching another service while this one is being constructed is a cycle with
14
+ * no bottom to it.
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.
19
+ */
20
+ export declare class SimAwsStatesTaskTargets implements SimStatesTaskTargets {
21
+ #private;
22
+ constructor(properties: SimAwsStatesTaskTargetsProperties);
23
+ /**
24
+ * Assume the state machine's execution role, then invoke the function as
25
+ * that role.
26
+ *
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.
29
+ */
30
+ invoke(invocation: SimStatesTaskInvocation): Promise<JSONValue>;
31
+ }
32
+ export {};
33
+ //# sourceMappingURL=sim-aws-states-task-targets.d.ts.map
@@ -0,0 +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"}
@@ -0,0 +1,49 @@
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
+ /**
5
+ * Everywhere the state machines of one simulated AWS instance can invoke.
6
+ *
7
+ * The function is looked up when a task runs, never when this is built:
8
+ * reaching another service while this one is being constructed is a cycle with
9
+ * no bottom to it.
10
+ *
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.
14
+ */
15
+ export class SimAwsStatesTaskTargets {
16
+ #simAws;
17
+ #accountRegionScope;
18
+ constructor(properties) {
19
+ this.#simAws = properties.simAws;
20
+ this.#accountRegionScope = properties.accountRegionScope;
21
+ }
22
+ /**
23
+ * Assume the state machine's execution role, then invoke the function as
24
+ * that role.
25
+ *
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.
28
+ */
29
+ async invoke(invocation) {
30
+ const { stateName, target } = invocation;
31
+ const call = target.call(invocation.payload, stateName);
32
+ const where = simStatesFunctionLocation(call.functionNameOrArn, this.#accountRegionScope, stateName);
33
+ const role = simStatesExecutionRoleTarget(invocation.roleArn, stateName);
34
+ const iam = this.#simAws
35
+ .accountRegionScope(role.accountId, where.regionName)
36
+ .iam();
37
+ const caller = await assumeSimStatesExecutionRole(role, iam);
38
+ const scope = this.#simAws.accountRegionScope(where.accountId, where.regionName);
39
+ return await new SimStatesTaskFunction({ scope }).invoke({
40
+ stateName,
41
+ target,
42
+ reference: where.reference,
43
+ named: call.functionNameOrArn,
44
+ payload: call.payload,
45
+ caller,
46
+ });
47
+ }
48
+ }
49
+ //# sourceMappingURL=sim-aws-states-task-targets.js.map
@@ -0,0 +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"}
@@ -0,0 +1,25 @@
1
+ import type { SimAwsCaller } from "../../aws/caller/sim-aws-caller.js";
2
+ import type { SimIam } from "../../iam/sim-iam.js";
3
+ import { type SimServiceRoleTarget } from "../../sts/service-role/sim-service-role.js";
4
+ /**
5
+ * The service principal a state machine's execution role trusts.
6
+ */
7
+ export declare const simStatesServicePrincipal = "states.amazonaws.com";
8
+ /**
9
+ * Read the Account and name out of a state machine's `RoleArn`.
10
+ *
11
+ * `CreateStateMachine` takes the role ARN as it is written, so a value that is
12
+ * not a role ARN at all is found here, at the first task that needs it.
13
+ */
14
+ export declare function simStatesExecutionRoleTarget(roleArn: string, stateName: string): SimServiceRoleTarget;
15
+ /**
16
+ * Assume a state machine's execution role, and answer with the caller it
17
+ * makes.
18
+ *
19
+ * A task reaches a function as a session of this role, and the role's own
20
+ * policies decide what it may do. That is the difference from an EventBridge
21
+ * rule, which reaches a function as a service principal and is admitted by the
22
+ * function's resource policy.
23
+ */
24
+ export declare function assumeSimStatesExecutionRole(target: SimServiceRoleTarget, iam: SimIam): Promise<SimAwsCaller>;
25
+ //# sourceMappingURL=sim-states-execution-role.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"sim-states-execution-role.d.ts","sourceRoot":"","sources":["../../../../src/service/stepfunctions/task/sim-states-execution-role.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,oCAAoC,CAAC;AACvE,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,sBAAsB,CAAC;AACnD,OAAO,EAGL,KAAK,oBAAoB,EAE1B,MAAM,4CAA4C,CAAC;AAGpD;;GAEG;AACH,eAAO,MAAM,yBAAyB,yBAAyB,CAAC;AAUhE;;;;;GAKG;AACH,wBAAgB,4BAA4B,CAC1C,OAAO,EAAE,MAAM,EACf,SAAS,EAAE,MAAM,GAChB,oBAAoB,CAStB;AAmBD;;;;;;;;GAQG;AACH,wBAAsB,4BAA4B,CAChD,MAAM,EAAE,oBAAoB,EAC5B,GAAG,EAAE,MAAM,GACV,OAAO,CAAC,YAAY,CAAC,CAQvB"}
@@ -0,0 +1,57 @@
1
+ import { assumeSimServiceRole, simServiceRoleTarget, } from "../../sts/service-role/sim-service-role.js";
2
+ import { SimStatesTaskFailure } from "../error/sim-step-functions.error.js";
3
+ /**
4
+ * The service principal a state machine's execution role trusts.
5
+ */
6
+ export const simStatesServicePrincipal = "states.amazonaws.com";
7
+ /**
8
+ * The session name this gives the role an execution assumes.
9
+ *
10
+ * Nothing in the simulation reads it apart from the principal ARN a policy
11
+ * condition could match on.
12
+ */
13
+ const sessionName = "StatesExecution";
14
+ /**
15
+ * Read the Account and name out of a state machine's `RoleArn`.
16
+ *
17
+ * `CreateStateMachine` takes the role ARN as it is written, so a value that is
18
+ * not a role ARN at all is found here, at the first task that needs it.
19
+ */
20
+ export function simStatesExecutionRoleTarget(roleArn, stateName) {
21
+ try {
22
+ return simServiceRoleTarget(roleArn);
23
+ }
24
+ catch {
25
+ throw new SimStatesTaskFailure(`The state machine's RoleArn is ${roleArn}, which is not an IAM role ` +
26
+ `ARN, so the Task state ${stateName} had no role to assume.`);
27
+ }
28
+ }
29
+ /**
30
+ * What a state machine says when it could not assume its execution role.
31
+ */
32
+ const refusals = {
33
+ missingRole: (target) => new SimStatesTaskFailure(`${target.roleArn} is not a simulated IAM role, so the execution ` +
34
+ "could not assume it to do its task."),
35
+ untrustedRole: (target, servicePrincipal) => new SimStatesTaskFailure(`The trust policy of ${target.roleArn} does not allow ` +
36
+ `${servicePrincipal} to assume it, so the execution could not do ` +
37
+ "its task. Add it to the role's AssumeRolePolicyDocument."),
38
+ };
39
+ /**
40
+ * Assume a state machine's execution role, and answer with the caller it
41
+ * makes.
42
+ *
43
+ * A task reaches a function as a session of this role, and the role's own
44
+ * policies decide what it may do. That is the difference from an EventBridge
45
+ * rule, which reaches a function as a service principal and is admitted by the
46
+ * function's resource policy.
47
+ */
48
+ export async function assumeSimStatesExecutionRole(target, iam) {
49
+ return await assumeSimServiceRole({
50
+ target,
51
+ servicePrincipal: simStatesServicePrincipal,
52
+ sessionName,
53
+ iam,
54
+ refusals,
55
+ });
56
+ }
57
+ //# sourceMappingURL=sim-states-execution-role.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"sim-states-execution-role.js","sourceRoot":"","sources":["../../../../src/service/stepfunctions/task/sim-states-execution-role.ts"],"names":[],"mappings":"AAEA,OAAO,EACL,oBAAoB,EAGpB,oBAAoB,GACrB,MAAM,4CAA4C,CAAC;AACpD,OAAO,EAAE,oBAAoB,EAAE,MAAM,sCAAsC,CAAC;AAE5E;;GAEG;AACH,MAAM,CAAC,MAAM,yBAAyB,GAAG,sBAAsB,CAAC;AAEhE;;;;;GAKG;AACH,MAAM,WAAW,GAAG,iBAAiB,CAAC;AAEtC;;;;;GAKG;AACH,MAAM,UAAU,4BAA4B,CAC1C,OAAe,EACf,SAAiB;IAEjB,IAAI,CAAC;QACH,OAAO,oBAAoB,CAAC,OAAO,CAAC,CAAC;IACvC,CAAC;IAAC,MAAM,CAAC;QACP,MAAM,IAAI,oBAAoB,CAC5B,kCAAkC,OAAO,6BAA6B;YACpE,0BAA0B,SAAS,yBAAyB,CAC/D,CAAC;IACJ,CAAC;AACH,CAAC;AAED;;GAEG;AACH,MAAM,QAAQ,GAA2B;IACvC,WAAW,EAAE,CAAC,MAAM,EAAE,EAAE,CACtB,IAAI,oBAAoB,CACtB,GAAG,MAAM,CAAC,OAAO,iDAAiD;QAChE,qCAAqC,CACxC;IACH,aAAa,EAAE,CAAC,MAAM,EAAE,gBAAgB,EAAE,EAAE,CAC1C,IAAI,oBAAoB,CACtB,uBAAuB,MAAM,CAAC,OAAO,kBAAkB;QACrD,GAAG,gBAAgB,+CAA+C;QAClE,0DAA0D,CAC7D;CACJ,CAAC;AAEF;;;;;;;;GAQG;AACH,MAAM,CAAC,KAAK,UAAU,4BAA4B,CAChD,MAA4B,EAC5B,GAAW;IAEX,OAAO,MAAM,oBAAoB,CAAC;QAChC,MAAM;QACN,gBAAgB,EAAE,yBAAyB;QAC3C,WAAW;QACX,GAAG;QACH,QAAQ;KACT,CAAC,CAAC;AACL,CAAC"}
@@ -0,0 +1,31 @@
1
+ import type { JSONValue } from "../../../util/type-guard/json.js";
2
+ import { type SimStatesTaskCall, SimStatesTaskTarget } from "./sim-states-task-target.js";
3
+ interface SimStatesFunctionArnTargetProperties {
4
+ readonly functionArn: string;
5
+ }
6
+ /**
7
+ * A `Task` state whose `Resource` is a function ARN.
8
+ *
9
+ * The state is talking to the function rather than to the Lambda API, so what
10
+ * it sends is its own input and what it gets back is what the handler
11
+ * answered. CDK's `LambdaInvoke` emits this form for `payloadResponseOnly`.
12
+ */
13
+ export declare class SimStatesFunctionArnTarget extends SimStatesTaskTarget {
14
+ #private;
15
+ constructor(properties: SimStatesFunctionArnTargetProperties);
16
+ /**
17
+ * Send the state's own input to the function the `Resource` named.
18
+ */
19
+ call(payload: JSONValue): SimStatesTaskCall;
20
+ /**
21
+ * Answer with what the handler answered, with nothing around it.
22
+ */
23
+ answer(result: JSONValue): JSONValue;
24
+ /**
25
+ * A handler raising fails the task under the handler's own error type, which
26
+ * is the name a `Retry` or a `Catch` on this form matches.
27
+ */
28
+ handlerFailure(error: unknown, stateName: string): Error;
29
+ }
30
+ export {};
31
+ //# sourceMappingURL=sim-states-function-arn-target.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"sim-states-function-arn-target.d.ts","sourceRoot":"","sources":["../../../../src/service/stepfunctions/task/sim-states-function-arn-target.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,kCAAkC,CAAC;AAElE,OAAO,EACL,KAAK,iBAAiB,EACtB,mBAAmB,EACpB,MAAM,6BAA6B,CAAC;AAErC,UAAU,oCAAoC;IAC5C,QAAQ,CAAC,WAAW,EAAE,MAAM,CAAC;CAC9B;AAED;;;;;;GAMG;AACH,qBAAa,0BAA2B,SAAQ,mBAAmB;;IAGjE,YAAY,UAAU,EAAE,oCAAoC,EAG3D;IAED;;OAEG;IACM,IAAI,CAAC,OAAO,EAAE,SAAS,GAAG,iBAAiB,CAEnD;IAED;;OAEG;IACM,MAAM,CAAC,MAAM,EAAE,SAAS,GAAG,SAAS,CAE5C;IAED;;;OAGG;IACM,cAAc,CAAC,KAAK,EAAE,OAAO,EAAE,SAAS,EAAE,MAAM,GAAG,KAAK,CAQhE;CACF"}
@@ -0,0 +1,39 @@
1
+ import { functionErrorDocument } from "../../lambda/command/invoke/invoke-payload.js";
2
+ import { SimStatesTaskHandlerFailure } from "../error/sim-step-functions.error.js";
3
+ import { SimStatesTaskTarget, } from "./sim-states-task-target.js";
4
+ /**
5
+ * A `Task` state whose `Resource` is a function ARN.
6
+ *
7
+ * The state is talking to the function rather than to the Lambda API, so what
8
+ * it sends is its own input and what it gets back is what the handler
9
+ * answered. CDK's `LambdaInvoke` emits this form for `payloadResponseOnly`.
10
+ */
11
+ export class SimStatesFunctionArnTarget extends SimStatesTaskTarget {
12
+ #functionArn;
13
+ constructor(properties) {
14
+ super();
15
+ this.#functionArn = properties.functionArn;
16
+ }
17
+ /**
18
+ * Send the state's own input to the function the `Resource` named.
19
+ */
20
+ call(payload) {
21
+ return { functionNameOrArn: this.#functionArn, payload };
22
+ }
23
+ /**
24
+ * Answer with what the handler answered, with nothing around it.
25
+ */
26
+ answer(result) {
27
+ return result;
28
+ }
29
+ /**
30
+ * A handler raising fails the task under the handler's own error type, which
31
+ * is the name a `Retry` or a `Catch` on this form matches.
32
+ */
33
+ handlerFailure(error, stateName) {
34
+ const document = functionErrorDocument(error);
35
+ return new SimStatesTaskHandlerFailure(`The function the Task state ${stateName} invoked raised ` +
36
+ `${document.errorType}: ${document.errorMessage}`, document.errorType);
37
+ }
38
+ }
39
+ //# sourceMappingURL=sim-states-function-arn-target.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"sim-states-function-arn-target.js","sourceRoot":"","sources":["../../../../src/service/stepfunctions/task/sim-states-function-arn-target.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,qBAAqB,EAAE,MAAM,+CAA+C,CAAC;AAEtF,OAAO,EAAE,2BAA2B,EAAE,MAAM,sCAAsC,CAAC;AACnF,OAAO,EAEL,mBAAmB,GACpB,MAAM,6BAA6B,CAAC;AAMrC;;;;;;GAMG;AACH,MAAM,OAAO,0BAA2B,SAAQ,mBAAmB;IACxD,YAAY,CAAS;IAE9B,YAAY,UAAgD;QAC1D,KAAK,EAAE,CAAC;QACR,IAAI,CAAC,YAAY,GAAG,UAAU,CAAC,WAAW,CAAC;IAC7C,CAAC;IAED;;OAEG;IACM,IAAI,CAAC,OAAkB;QAC9B,OAAO,EAAE,iBAAiB,EAAE,IAAI,CAAC,YAAY,EAAE,OAAO,EAAE,CAAC;IAC3D,CAAC;IAED;;OAEG;IACM,MAAM,CAAC,MAAiB;QAC/B,OAAO,MAAM,CAAC;IAChB,CAAC;IAED;;;OAGG;IACM,cAAc,CAAC,KAAc,EAAE,SAAiB;QACvD,MAAM,QAAQ,GAAG,qBAAqB,CAAC,KAAK,CAAC,CAAC;QAE9C,OAAO,IAAI,2BAA2B,CACpC,+BAA+B,SAAS,kBAAkB;YACxD,GAAG,QAAQ,CAAC,SAAS,KAAK,QAAQ,CAAC,YAAY,EAAE,EACnD,QAAQ,CAAC,SAAS,CACnB,CAAC;IACJ,CAAC;CACF"}
@@ -0,0 +1,20 @@
1
+ import type { SimAwsAccountId } from "../../aws/sim-aws-account.js";
2
+ import type { SimAwsAccountRegionScope } from "../../aws/sim-aws-account-region-scope.js";
3
+ import type { AwsRegionName } from "../../aws/sim-aws-region.js";
4
+ import { type SimLambdaFunctionReference } from "../../lambda/function/sim-lambda-function-reference.js";
5
+ /**
6
+ * Where a function a `Task` state named is, and what it is called there.
7
+ */
8
+ export interface SimStatesFunctionLocation {
9
+ readonly accountId: SimAwsAccountId;
10
+ readonly regionName: AwsRegionName;
11
+ readonly reference: SimLambdaFunctionReference;
12
+ }
13
+ /**
14
+ * Work out where the function a task named lives.
15
+ *
16
+ * An ARN carries its own Account and Region. A bare name, which the Lambda API
17
+ * takes as well, is a function of the state machine's own Account and Region.
18
+ */
19
+ export declare function simStatesFunctionLocation(functionNameOrArn: string, scope: SimAwsAccountRegionScope, stateName: string): SimStatesFunctionLocation;
20
+ //# sourceMappingURL=sim-states-function-location.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"sim-states-function-location.d.ts","sourceRoot":"","sources":["../../../../src/service/stepfunctions/task/sim-states-function-location.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,8BAA8B,CAAC;AACpE,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,2CAA2C,CAAC;AAC1F,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,6BAA6B,CAAC;AAEjE,OAAO,EACL,KAAK,0BAA0B,EAEhC,MAAM,wDAAwD,CAAC;AAGhE;;GAEG;AACH,MAAM,WAAW,yBAAyB;IACxC,QAAQ,CAAC,SAAS,EAAE,eAAe,CAAC;IACpC,QAAQ,CAAC,UAAU,EAAE,aAAa,CAAC;IACnC,QAAQ,CAAC,SAAS,EAAE,0BAA0B,CAAC;CAChD;AAED;;;;;GAKG;AACH,wBAAgB,yBAAyB,CACvC,iBAAiB,EAAE,MAAM,EACzB,KAAK,EAAE,wBAAwB,EAC/B,SAAS,EAAE,MAAM,GAChB,yBAAyB,CAsB3B"}
@@ -0,0 +1,28 @@
1
+ import { parseSimLambdaFunctionArn } from "../../lambda/function/sim-lambda-function-arn-parts.js";
2
+ import { simLambdaFunctionReferenceOf, } from "../../lambda/function/sim-lambda-function-reference.js";
3
+ import { SimStatesTaskFailure } from "../error/sim-step-functions.error.js";
4
+ /**
5
+ * Work out where the function a task named lives.
6
+ *
7
+ * An ARN carries its own Account and Region. A bare name, which the Lambda API
8
+ * takes as well, is a function of the state machine's own Account and Region.
9
+ */
10
+ export function simStatesFunctionLocation(functionNameOrArn, scope, stateName) {
11
+ if (!functionNameOrArn.startsWith("arn:")) {
12
+ return {
13
+ ...scope,
14
+ reference: simLambdaFunctionReferenceOf(functionNameOrArn),
15
+ };
16
+ }
17
+ const parts = parseSimLambdaFunctionArn(functionNameOrArn);
18
+ if (parts === undefined) {
19
+ throw new SimStatesTaskFailure(`The Task state ${stateName} invokes ${functionNameOrArn}, which is ` +
20
+ "not the ARN of a Lambda function.");
21
+ }
22
+ return {
23
+ accountId: parts.accountId,
24
+ regionName: parts.regionName,
25
+ reference: { functionName: parts.functionName, qualifier: parts.qualifier },
26
+ };
27
+ }
28
+ //# sourceMappingURL=sim-states-function-location.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"sim-states-function-location.js","sourceRoot":"","sources":["../../../../src/service/stepfunctions/task/sim-states-function-location.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,yBAAyB,EAAE,MAAM,wDAAwD,CAAC;AACnG,OAAO,EAEL,4BAA4B,GAC7B,MAAM,wDAAwD,CAAC;AAChE,OAAO,EAAE,oBAAoB,EAAE,MAAM,sCAAsC,CAAC;AAW5E;;;;;GAKG;AACH,MAAM,UAAU,yBAAyB,CACvC,iBAAyB,EACzB,KAA+B,EAC/B,SAAiB;IAEjB,IAAI,CAAC,iBAAiB,CAAC,UAAU,CAAC,MAAM,CAAC,EAAE,CAAC;QAC1C,OAAO;YACL,GAAG,KAAK;YACR,SAAS,EAAE,4BAA4B,CAAC,iBAAiB,CAAC;SAC3D,CAAC;IACJ,CAAC;IAED,MAAM,KAAK,GAAG,yBAAyB,CAAC,iBAAiB,CAAC,CAAC;IAE3D,IAAI,KAAK,KAAK,SAAS,EAAE,CAAC;QACxB,MAAM,IAAI,oBAAoB,CAC5B,kBAAkB,SAAS,YAAY,iBAAiB,aAAa;YACnE,mCAAmC,CACtC,CAAC;IACJ,CAAC;IAED,OAAO;QACL,SAAS,EAAE,KAAK,CAAC,SAAS;QAC1B,UAAU,EAAE,KAAK,CAAC,UAAU;QAC5B,SAAS,EAAE,EAAE,YAAY,EAAE,KAAK,CAAC,YAAY,EAAE,SAAS,EAAE,KAAK,CAAC,SAAS,EAAE;KAC5E,CAAC;AACJ,CAAC"}
@@ -0,0 +1,34 @@
1
+ import type { JSONValue } from "../../../util/type-guard/json.js";
2
+ import { type SimStatesTaskCall, SimStatesTaskTarget } from "./sim-states-task-target.js";
3
+ /**
4
+ * The `Resource` of the Lambda integration Step Functions optimises.
5
+ */
6
+ export declare const simStatesLambdaInvokeResource = "arn:aws:states:::lambda:invoke";
7
+ /**
8
+ * The two fields of the invocation this integration takes.
9
+ */
10
+ export declare const simStatesLambdaInvokeParameters: readonly ["FunctionName", "Payload"];
11
+ /**
12
+ * A `Task` state invoking a function through `arn:aws:states:::lambda:invoke`.
13
+ *
14
+ * The state is talking to the Lambda API rather than to the function, so its
15
+ * `Parameters` are an `Invoke` request and its result is an `Invoke` response.
16
+ * That is the form CDK's `LambdaInvoke` emits by default.
17
+ */
18
+ export declare class SimStatesLambdaInvokeTarget extends SimStatesTaskTarget {
19
+ /**
20
+ * Read the `Invoke` request the state's `Parameters` built.
21
+ */
22
+ call(payload: JSONValue, stateName: string): SimStatesTaskCall;
23
+ /**
24
+ * Answer the way the Lambda API answers an `Invoke`.
25
+ */
26
+ answer(result: JSONValue, executedVersion: string): JSONValue;
27
+ /**
28
+ * A handler raising fails the task under the name Step Functions gives a
29
+ * task that failed, which is what a `Retry` or a `Catch` on this integration
30
+ * matches.
31
+ */
32
+ handlerFailure(error: unknown, stateName: string): Error;
33
+ }
34
+ //# sourceMappingURL=sim-states-lambda-invoke-target.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"sim-states-lambda-invoke-target.d.ts","sourceRoot":"","sources":["../../../../src/service/stepfunctions/task/sim-states-lambda-invoke-target.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,kCAAkC,CAAC;AAMlE,OAAO,EACL,KAAK,iBAAiB,EACtB,mBAAmB,EACpB,MAAM,6BAA6B,CAAC;AAErC;;GAEG;AACH,eAAO,MAAM,6BAA6B,mCAAmC,CAAC;AAE9E;;GAEG;AACH,eAAO,MAAM,+BAA+B,YAC1C,cAAc,EACd,SAAS,CACD,CAAC;AAEX;;;;;;GAMG;AACH,qBAAa,2BAA4B,SAAQ,mBAAmB;IAClE;;OAEG;IACM,IAAI,CAAC,OAAO,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM,GAAG,iBAAiB,CAuBtE;IAED;;OAEG;IACM,MAAM,CAAC,MAAM,EAAE,SAAS,EAAE,eAAe,EAAE,MAAM,GAAG,SAAS,CAMrE;IAED;;;;OAIG;IACM,cAAc,CAAC,KAAK,EAAE,OAAO,EAAE,SAAS,EAAE,MAAM,GAAG,KAAK,CAOhE;CACF"}
@@ -0,0 +1,65 @@
1
+ import { functionErrorDocument } from "../../lambda/command/invoke/invoke-payload.js";
2
+ import { isRecord } from "../../../util/type-guard/record.js";
3
+ import { SimStatesRuntimeFailure, SimStatesTaskFailure, } from "../error/sim-step-functions.error.js";
4
+ import { SimStatesTaskTarget, } from "./sim-states-task-target.js";
5
+ /**
6
+ * The `Resource` of the Lambda integration Step Functions optimises.
7
+ */
8
+ export const simStatesLambdaInvokeResource = "arn:aws:states:::lambda:invoke";
9
+ /**
10
+ * The two fields of the invocation this integration takes.
11
+ */
12
+ export const simStatesLambdaInvokeParameters = [
13
+ "FunctionName",
14
+ "Payload",
15
+ ];
16
+ /**
17
+ * A `Task` state invoking a function through `arn:aws:states:::lambda:invoke`.
18
+ *
19
+ * The state is talking to the Lambda API rather than to the function, so its
20
+ * `Parameters` are an `Invoke` request and its result is an `Invoke` response.
21
+ * That is the form CDK's `LambdaInvoke` emits by default.
22
+ */
23
+ export class SimStatesLambdaInvokeTarget extends SimStatesTaskTarget {
24
+ /**
25
+ * Read the `Invoke` request the state's `Parameters` built.
26
+ */
27
+ call(payload, stateName) {
28
+ if (!isRecord(payload)) {
29
+ throw new SimStatesRuntimeFailure(`The Task state ${stateName} built no Invoke request. Its ` +
30
+ "Parameters name the function to invoke.");
31
+ }
32
+ const functionName = payload["FunctionName"];
33
+ if (typeof functionName !== "string") {
34
+ throw new SimStatesRuntimeFailure(`The Task state ${stateName} has a FunctionName that is not the ` +
35
+ "name or ARN of a function.");
36
+ }
37
+ return {
38
+ functionNameOrArn: functionName,
39
+ // A request carrying no Payload invokes the function with an empty
40
+ // event, as an Invoke carrying no payload does.
41
+ payload: payload["Payload"] ?? {},
42
+ };
43
+ }
44
+ /**
45
+ * Answer the way the Lambda API answers an `Invoke`.
46
+ */
47
+ answer(result, executedVersion) {
48
+ return {
49
+ ExecutedVersion: executedVersion,
50
+ Payload: result,
51
+ StatusCode: 200,
52
+ };
53
+ }
54
+ /**
55
+ * A handler raising fails the task under the name Step Functions gives a
56
+ * task that failed, which is what a `Retry` or a `Catch` on this integration
57
+ * matches.
58
+ */
59
+ handlerFailure(error, stateName) {
60
+ const document = functionErrorDocument(error);
61
+ return new SimStatesTaskFailure(`The function the Task state ${stateName} invoked raised ` +
62
+ `${document.errorType}: ${document.errorMessage}`);
63
+ }
64
+ }
65
+ //# sourceMappingURL=sim-states-lambda-invoke-target.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"sim-states-lambda-invoke-target.js","sourceRoot":"","sources":["../../../../src/service/stepfunctions/task/sim-states-lambda-invoke-target.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,qBAAqB,EAAE,MAAM,+CAA+C,CAAC;AAEtF,OAAO,EAAE,QAAQ,EAAE,MAAM,oCAAoC,CAAC;AAC9D,OAAO,EACL,uBAAuB,EACvB,oBAAoB,GACrB,MAAM,sCAAsC,CAAC;AAC9C,OAAO,EAEL,mBAAmB,GACpB,MAAM,6BAA6B,CAAC;AAErC;;GAEG;AACH,MAAM,CAAC,MAAM,6BAA6B,GAAG,gCAAgC,CAAC;AAE9E;;GAEG;AACH,MAAM,CAAC,MAAM,+BAA+B,GAAG;IAC7C,cAAc;IACd,SAAS;CACD,CAAC;AAEX;;;;;;GAMG;AACH,MAAM,OAAO,2BAA4B,SAAQ,mBAAmB;IAClE;;OAEG;IACM,IAAI,CAAC,OAAkB,EAAE,SAAiB;QACjD,IAAI,CAAC,QAAQ,CAAC,OAAO,CAAC,EAAE,CAAC;YACvB,MAAM,IAAI,uBAAuB,CAC/B,kBAAkB,SAAS,gCAAgC;gBACzD,yCAAyC,CAC5C,CAAC;QACJ,CAAC;QAED,MAAM,YAAY,GAAG,OAAO,CAAC,cAAc,CAAC,CAAC;QAE7C,IAAI,OAAO,YAAY,KAAK,QAAQ,EAAE,CAAC;YACrC,MAAM,IAAI,uBAAuB,CAC/B,kBAAkB,SAAS,sCAAsC;gBAC/D,4BAA4B,CAC/B,CAAC;QACJ,CAAC;QAED,OAAO;YACL,iBAAiB,EAAE,YAAY;YAC/B,mEAAmE;YACnE,gDAAgD;YAChD,OAAO,EAAE,OAAO,CAAC,SAAS,CAAC,IAAI,EAAE;SAClC,CAAC;IACJ,CAAC;IAED;;OAEG;IACM,MAAM,CAAC,MAAiB,EAAE,eAAuB;QACxD,OAAO;YACL,eAAe,EAAE,eAAe;YAChC,OAAO,EAAE,MAAM;YACf,UAAU,EAAE,GAAG;SAChB,CAAC;IACJ,CAAC;IAED;;;;OAIG;IACM,cAAc,CAAC,KAAc,EAAE,SAAiB;QACvD,MAAM,QAAQ,GAAG,qBAAqB,CAAC,KAAK,CAAC,CAAC;QAE9C,OAAO,IAAI,oBAAoB,CAC7B,+BAA+B,SAAS,kBAAkB;YACxD,GAAG,QAAQ,CAAC,SAAS,KAAK,QAAQ,CAAC,YAAY,EAAE,CACpD,CAAC;IACJ,CAAC;CACF"}
@@ -0,0 +1,16 @@
1
+ import type { JSONValue } from "../../../util/type-guard/json.js";
2
+ import type { SimStatesTaskInvocation, SimStatesTaskTargets } from "./sim-states-task-invocation.js";
3
+ /**
4
+ * What a simulated Step Functions built on its own can invoke, which is
5
+ * nothing.
6
+ *
7
+ * A Lambda function in another simulated service is only reachable through
8
+ * SimAws, so a `SimStepFunctions` constructed directly has nowhere to send a
9
+ * task. Every task fails saying so, rather than quietly succeeding: a state
10
+ * machine that appears to have invoked a function that was never reachable is
11
+ * the worst of the possible answers.
12
+ */
13
+ export declare class SimStatesNoTaskTargets implements SimStatesTaskTargets {
14
+ invoke(invocation: SimStatesTaskInvocation): Promise<JSONValue>;
15
+ }
16
+ //# sourceMappingURL=sim-states-no-task-targets.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"sim-states-no-task-targets.d.ts","sourceRoot":"","sources":["../../../../src/service/stepfunctions/task/sim-states-no-task-targets.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,kCAAkC,CAAC;AAElE,OAAO,KAAK,EACV,uBAAuB,EACvB,oBAAoB,EACrB,MAAM,iCAAiC,CAAC;AAEzC;;;;;;;;;GASG;AACH,qBAAa,sBAAuB,YAAW,oBAAoB;IACjE,MAAM,CAAC,UAAU,EAAE,uBAAuB,GAAG,OAAO,CAAC,SAAS,CAAC,CAQ9D;CACF"}
@@ -0,0 +1,19 @@
1
+ import { SimStatesTaskFailure } from "../error/sim-step-functions.error.js";
2
+ /**
3
+ * What a simulated Step Functions built on its own can invoke, which is
4
+ * nothing.
5
+ *
6
+ * A Lambda function in another simulated service is only reachable through
7
+ * SimAws, so a `SimStepFunctions` constructed directly has nowhere to send a
8
+ * task. Every task fails saying so, rather than quietly succeeding: a state
9
+ * machine that appears to have invoked a function that was never reachable is
10
+ * the worst of the possible answers.
11
+ */
12
+ export class SimStatesNoTaskTargets {
13
+ invoke(invocation) {
14
+ return Promise.reject(new SimStatesTaskFailure(`This simulated Step Functions has no functions to invoke, so the ` +
15
+ `Task state ${invocation.stateName} did nothing. Reach Step ` +
16
+ "Functions through SimAws for a state machine that invokes one."));
17
+ }
18
+ }
19
+ //# sourceMappingURL=sim-states-no-task-targets.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"sim-states-no-task-targets.js","sourceRoot":"","sources":["../../../../src/service/stepfunctions/task/sim-states-no-task-targets.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,oBAAoB,EAAE,MAAM,sCAAsC,CAAC;AAM5E;;;;;;;;;GASG;AACH,MAAM,OAAO,sBAAsB;IACjC,MAAM,CAAC,UAAmC;QACxC,OAAO,OAAO,CAAC,MAAM,CACnB,IAAI,oBAAoB,CACtB,mEAAmE;YACjE,cAAc,UAAU,CAAC,SAAS,2BAA2B;YAC7D,gEAAgE,CACnE,CACF,CAAC;IACJ,CAAC;CACF"}
@@ -0,0 +1,14 @@
1
+ import type { JSONValue } from "../../../util/type-guard/json.js";
2
+ /**
3
+ * The fields of a `Task` state this simulator has no implementation for.
4
+ */
5
+ export declare const simStatesTaskFieldsUnsimulated: readonly ["Retry", "Catch", "TimeoutSeconds", "TimeoutSecondsPath", "HeartbeatSeconds", "HeartbeatSecondsPath", "Credentials"];
6
+ /**
7
+ * Refuse the fields of a `Task` state this simulator does not run.
8
+ *
9
+ * A definition carrying one of them would behave differently here than it does
10
+ * on AWS. A task that failed would end the execution rather than being retried,
11
+ * and a task that ran long would answer rather than time out.
12
+ */
13
+ export declare function checkSimStatesTaskFields(stateName: string, state: Record<string, JSONValue>): void;
14
+ //# sourceMappingURL=sim-states-task-fields.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"sim-states-task-fields.d.ts","sourceRoot":"","sources":["../../../../src/service/stepfunctions/task/sim-states-task-fields.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,kCAAkC,CAAC;AAGlE;;GAEG;AACH,eAAO,MAAM,8BAA8B,YACzC,OAAO,EACP,OAAO,EACP,gBAAgB,EAChB,oBAAoB,EACpB,kBAAkB,EAClB,sBAAsB,EACtB,aAAa,CACL,CAAC;AAEX;;;;;;GAMG;AACH,wBAAgB,wBAAwB,CACtC,SAAS,EAAE,MAAM,EACjB,KAAK,EAAE,MAAM,CAAC,MAAM,EAAE,SAAS,CAAC,GAC/B,IAAI,CAYN"}