@kensio/yulin 1.20.2 → 1.20.4
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.
- package/README.md +39 -39
- package/dist/sdk/router/resolve-sim-sdk-command-router.d.ts +8 -0
- package/dist/sdk/router/resolve-sim-sdk-command-router.d.ts.map +1 -1
- package/dist/sdk/router/resolve-sim-sdk-command-router.js +10 -0
- package/dist/sdk/router/resolve-sim-sdk-command-router.js.map +1 -1
- package/dist/service/aws/factory/sim-aws-account-region-service-builder.d.ts +4 -0
- package/dist/service/aws/factory/sim-aws-account-region-service-builder.d.ts.map +1 -1
- package/dist/service/aws/factory/sim-aws-account-region-service-builder.js +6 -0
- package/dist/service/aws/factory/sim-aws-account-region-service-builder.js.map +1 -1
- package/dist/service/cloudformation/cdk/ssm/cross-region-parameter/sim-cdk-cross-region-parameter-error.d.ts +15 -0
- package/dist/service/cloudformation/cdk/ssm/cross-region-parameter/sim-cdk-cross-region-parameter-error.d.ts.map +1 -0
- package/dist/service/cloudformation/cdk/ssm/cross-region-parameter/sim-cdk-cross-region-parameter-error.js +18 -0
- package/dist/service/cloudformation/cdk/ssm/cross-region-parameter/sim-cdk-cross-region-parameter-error.js.map +1 -0
- package/dist/service/cloudformation/cdk/ssm/cross-region-parameter/sim-cdk-cross-region-parameter-properties.d.ts +30 -0
- package/dist/service/cloudformation/cdk/ssm/cross-region-parameter/sim-cdk-cross-region-parameter-properties.d.ts.map +1 -0
- package/dist/service/cloudformation/cdk/ssm/cross-region-parameter/sim-cdk-cross-region-parameter-properties.js +74 -0
- package/dist/service/cloudformation/cdk/ssm/cross-region-parameter/sim-cdk-cross-region-parameter-properties.js.map +1 -0
- package/dist/service/cloudformation/cdk/ssm/cross-region-parameter/sim-cdk-cross-region-parameter-reader.d.ts +45 -0
- package/dist/service/cloudformation/cdk/ssm/cross-region-parameter/sim-cdk-cross-region-parameter-reader.d.ts.map +1 -0
- package/dist/service/cloudformation/cdk/ssm/cross-region-parameter/sim-cdk-cross-region-parameter-reader.js +82 -0
- package/dist/service/cloudformation/cdk/ssm/cross-region-parameter/sim-cdk-cross-region-parameter-reader.js.map +1 -0
- package/dist/service/cloudformation/cdk/ssm/cross-region-parameter/sim-cdk-cross-region-parameter-reading.d.ts +27 -0
- package/dist/service/cloudformation/cdk/ssm/cross-region-parameter/sim-cdk-cross-region-parameter-reading.d.ts.map +1 -0
- package/dist/service/cloudformation/cdk/ssm/cross-region-parameter/sim-cdk-cross-region-parameter-reading.js +24 -0
- package/dist/service/cloudformation/cdk/ssm/cross-region-parameter/sim-cdk-cross-region-parameter-reading.js.map +1 -0
- package/dist/service/cloudformation/cdk/ssm/cross-region-parameter/sim-cdk-cross-region-parameter-template.factory.d.ts +39 -0
- package/dist/service/cloudformation/cdk/ssm/cross-region-parameter/sim-cdk-cross-region-parameter-template.factory.d.ts.map +1 -0
- package/dist/service/cloudformation/cdk/ssm/cross-region-parameter/sim-cdk-cross-region-parameter-template.factory.js +42 -0
- package/dist/service/cloudformation/cdk/ssm/cross-region-parameter/sim-cdk-cross-region-parameter-template.factory.js.map +1 -0
- package/dist/service/cloudformation/resource/cfn/cdk/sim-cdk-cross-region-parameter-cfn.d.ts +32 -0
- package/dist/service/cloudformation/resource/cfn/cdk/sim-cdk-cross-region-parameter-cfn.d.ts.map +1 -0
- package/dist/service/cloudformation/resource/cfn/cdk/sim-cdk-cross-region-parameter-cfn.js +36 -0
- package/dist/service/cloudformation/resource/cfn/cdk/sim-cdk-cross-region-parameter-cfn.js.map +1 -0
- package/dist/service/cloudformation/resource/cfn/cdk/sim-cdk-custom-resource-value-adapter.d.ts +14 -0
- package/dist/service/cloudformation/resource/cfn/cdk/sim-cdk-custom-resource-value-adapter.d.ts.map +1 -0
- package/dist/service/cloudformation/resource/cfn/cdk/sim-cdk-custom-resource-value-adapter.js +23 -0
- package/dist/service/cloudformation/resource/cfn/cdk/sim-cdk-custom-resource-value-adapter.js.map +1 -0
- package/dist/service/cloudformation/resource/cfn/sim-cfn-default-resource-value-adapter.d.ts.map +1 -1
- package/dist/service/cloudformation/resource/cfn/sim-cfn-default-resource-value-adapter.js +2 -1
- package/dist/service/cloudformation/resource/cfn/sim-cfn-default-resource-value-adapter.js.map +1 -1
- package/dist/service/cloudformation/resource/cfn/sim-cfn-service-value-adapters.d.ts +2 -1
- package/dist/service/cloudformation/resource/cfn/sim-cfn-service-value-adapters.d.ts.map +1 -1
- package/dist/service/cloudformation/resource/cfn/sim-cfn-service-value-adapters.js +4 -1
- package/dist/service/cloudformation/resource/cfn/sim-cfn-service-value-adapters.js.map +1 -1
- package/dist/service/cloudformation/resource/cfn/sim-cfn-unanswered-attribute.d.ts +23 -0
- package/dist/service/cloudformation/resource/cfn/sim-cfn-unanswered-attribute.d.ts.map +1 -0
- package/dist/service/cloudformation/resource/cfn/sim-cfn-unanswered-attribute.js +46 -0
- package/dist/service/cloudformation/resource/cfn/sim-cfn-unanswered-attribute.js.map +1 -0
- package/dist/service/cloudformation/resource/cfn/stepfunctions/sim-step-functions-cfn-value-adapter.js +1 -1
- package/dist/service/cloudformation/resource/cfn/stepfunctions/sim-step-functions-cfn-value-adapter.js.map +1 -1
- package/dist/service/cloudformation/resource/resolve/service/sim-cfn-custom-resource-factories.d.ts.map +1 -1
- package/dist/service/cloudformation/resource/resolve/service/sim-cfn-custom-resource-factories.js +5 -0
- package/dist/service/cloudformation/resource/resolve/service/sim-cfn-custom-resource-factories.js.map +1 -1
- package/dist/service/cloudformation/resource/resolve/service/sim-cfn-service-factories.d.ts.map +1 -1
- package/dist/service/cloudformation/resource/resolve/service/sim-cfn-service-factories.js +1 -4
- package/dist/service/cloudformation/resource/resolve/service/sim-cfn-service-factories.js.map +1 -1
- package/dist/service/cloudformation/resource/sim-cfn-resource-record.d.ts +7 -0
- package/dist/service/cloudformation/resource/sim-cfn-resource-record.d.ts.map +1 -1
- package/dist/service/cloudformation/resource/sim-cfn-resource-record.js +9 -0
- package/dist/service/cloudformation/resource/sim-cfn-resource-record.js.map +1 -1
- package/dist/service/cloudfront/cfn/distro/sim-cfn-cf-distro-creator.d.ts +5 -4
- package/dist/service/cloudfront/cfn/distro/sim-cfn-cf-distro-creator.d.ts.map +1 -1
- package/dist/service/cloudfront/cfn/distro/sim-cfn-cf-distro-creator.js +14 -5
- package/dist/service/cloudfront/cfn/distro/sim-cfn-cf-distro-creator.js.map +1 -1
- package/dist/service/cloudfront/cfn/distro/sim-cfn-cf-distro-edge-associations.d.ts +19 -0
- package/dist/service/cloudfront/cfn/distro/sim-cfn-cf-distro-edge-associations.d.ts.map +1 -0
- package/dist/service/cloudfront/cfn/distro/sim-cfn-cf-distro-edge-associations.js +78 -0
- package/dist/service/cloudfront/cfn/distro/sim-cfn-cf-distro-edge-associations.js.map +1 -0
- package/dist/service/cloudfront/cfn/distro/sim-cfn-cf-edge-association-skips.d.ts +34 -0
- package/dist/service/cloudfront/cfn/distro/sim-cfn-cf-edge-association-skips.d.ts.map +1 -0
- package/dist/service/cloudfront/cfn/distro/sim-cfn-cf-edge-association-skips.js +58 -0
- package/dist/service/cloudfront/cfn/distro/sim-cfn-cf-edge-association-skips.js.map +1 -0
- package/dist/service/cloudfront/cfn/distro/sim-cfn-cf-edge-skip-reason.d.ts +26 -0
- package/dist/service/cloudfront/cfn/distro/sim-cfn-cf-edge-skip-reason.d.ts.map +1 -0
- package/dist/service/cloudfront/cfn/distro/sim-cfn-cf-edge-skip-reason.js +60 -0
- package/dist/service/cloudfront/cfn/distro/sim-cfn-cf-edge-skip-reason.js.map +1 -0
- package/dist/service/cloudfront/controller/dependency/sim-cf-controller-dependency.d.ts +4 -1
- package/dist/service/cloudfront/controller/dependency/sim-cf-controller-dependency.d.ts.map +1 -1
- package/dist/service/cloudfront/controller/dependency/sim-cf-controller-dependency.js +6 -4
- package/dist/service/cloudfront/controller/dependency/sim-cf-controller-dependency.js.map +1 -1
- package/dist/service/cloudfront/controller/edge/sim-lambda-edge-applicator.d.ts +3 -11
- package/dist/service/cloudfront/controller/edge/sim-lambda-edge-applicator.d.ts.map +1 -1
- package/dist/service/cloudfront/controller/edge/sim-lambda-edge-applicator.js +6 -20
- package/dist/service/cloudfront/controller/edge/sim-lambda-edge-applicator.js.map +1 -1
- package/dist/service/cloudfront/controller/edge/sim-lambda-edge-distribution.d.ts +1 -1
- package/dist/service/cloudfront/controller/edge/sim-lambda-edge-distribution.d.ts.map +1 -1
- package/dist/service/cloudfront/controller/edge/sim-lambda-edge-origin-applicator.d.ts +43 -0
- package/dist/service/cloudfront/controller/edge/sim-lambda-edge-origin-applicator.d.ts.map +1 -0
- package/dist/service/cloudfront/controller/edge/sim-lambda-edge-origin-applicator.js +63 -0
- package/dist/service/cloudfront/controller/edge/sim-lambda-edge-origin-applicator.js.map +1 -0
- package/dist/service/cloudfront/controller/edge/sim-lambda-edge-run.d.ts +16 -0
- package/dist/service/cloudfront/controller/edge/sim-lambda-edge-run.d.ts.map +1 -0
- package/dist/service/cloudfront/controller/edge/sim-lambda-edge-run.js +33 -0
- package/dist/service/cloudfront/controller/edge/sim-lambda-edge-run.js.map +1 -0
- package/dist/service/cloudfront/controller/origin/sim-cf-origin-bound-request.d.ts +14 -0
- package/dist/service/cloudfront/controller/origin/sim-cf-origin-bound-request.d.ts.map +1 -0
- package/dist/service/cloudfront/controller/origin/sim-cf-origin-bound-request.js +2 -0
- package/dist/service/cloudfront/controller/origin/sim-cf-origin-bound-request.js.map +1 -0
- package/dist/service/cloudfront/controller/origin/sim-cf-origin-stage.d.ts +45 -0
- package/dist/service/cloudfront/controller/origin/sim-cf-origin-stage.d.ts.map +1 -0
- package/dist/service/cloudfront/controller/origin/sim-cf-origin-stage.js +47 -0
- package/dist/service/cloudfront/controller/origin/sim-cf-origin-stage.js.map +1 -0
- package/dist/service/cloudfront/controller/origin/sim-cloudfront-origin-fetcher.d.ts +6 -1
- package/dist/service/cloudfront/controller/origin/sim-cloudfront-origin-fetcher.d.ts.map +1 -1
- package/dist/service/cloudfront/controller/origin/sim-cloudfront-origin-fetcher.js +6 -2
- package/dist/service/cloudfront/controller/origin/sim-cloudfront-origin-fetcher.js.map +1 -1
- package/dist/service/cloudfront/controller/sim-cloudfront-request-pipeline.d.ts +4 -3
- package/dist/service/cloudfront/controller/sim-cloudfront-request-pipeline.d.ts.map +1 -1
- package/dist/service/cloudfront/controller/sim-cloudfront-request-pipeline.js +20 -8
- package/dist/service/cloudfront/controller/sim-cloudfront-request-pipeline.js.map +1 -1
- package/dist/service/cloudfront/distribution/configurator/sim-cloud-front-origin-configurator.d.ts.map +1 -1
- package/dist/service/cloudfront/distribution/configurator/sim-cloud-front-origin-configurator.js +1 -0
- package/dist/service/cloudfront/distribution/configurator/sim-cloud-front-origin-configurator.js.map +1 -1
- package/dist/service/cloudfront/edge/adapter/sim-lambda-edge-event-adapter.d.ts +2 -9
- package/dist/service/cloudfront/edge/adapter/sim-lambda-edge-event-adapter.d.ts.map +1 -1
- package/dist/service/cloudfront/edge/adapter/sim-lambda-edge-event-adapter.js +5 -13
- package/dist/service/cloudfront/edge/adapter/sim-lambda-edge-event-adapter.js.map +1 -1
- package/dist/service/cloudfront/edge/adapter/sim-lambda-edge-event-config.d.ts +16 -0
- package/dist/service/cloudfront/edge/adapter/sim-lambda-edge-event-config.d.ts.map +1 -0
- package/dist/service/cloudfront/edge/adapter/sim-lambda-edge-event-config.js +14 -0
- package/dist/service/cloudfront/edge/adapter/sim-lambda-edge-event-config.js.map +1 -0
- package/dist/service/cloudfront/edge/adapter/sim-lambda-edge-origin-event-adapter.d.ts +51 -0
- package/dist/service/cloudfront/edge/adapter/sim-lambda-edge-origin-event-adapter.d.ts.map +1 -0
- package/dist/service/cloudfront/edge/adapter/sim-lambda-edge-origin-event-adapter.js +83 -0
- package/dist/service/cloudfront/edge/adapter/sim-lambda-edge-origin-event-adapter.js.map +1 -0
- package/dist/service/cloudfront/edge/adapter/sim-lambda-edge-origin.d.ts +23 -0
- package/dist/service/cloudfront/edge/adapter/sim-lambda-edge-origin.d.ts.map +1 -0
- package/dist/service/cloudfront/edge/adapter/sim-lambda-edge-origin.js +30 -0
- package/dist/service/cloudfront/edge/adapter/sim-lambda-edge-origin.js.map +1 -0
- package/dist/service/cloudfront/edge/adapter/sim-lambda-edge-request-adapter.d.ts +9 -0
- package/dist/service/cloudfront/edge/adapter/sim-lambda-edge-request-adapter.d.ts.map +1 -1
- package/dist/service/cloudfront/edge/adapter/sim-lambda-edge-request-adapter.js +20 -0
- package/dist/service/cloudfront/edge/adapter/sim-lambda-edge-request-adapter.js.map +1 -1
- package/dist/service/cloudfront/edge/adapter/sim-lambda-edge-response-adapter.d.ts +4 -4
- package/dist/service/cloudfront/edge/adapter/sim-lambda-edge-response-adapter.d.ts.map +1 -1
- package/dist/service/cloudfront/edge/adapter/sim-lambda-edge-response-adapter.js +4 -4
- package/dist/service/cloudfront/edge/adapter/sim-lambda-edge-response-adapter.js.map +1 -1
- package/dist/service/cloudfront/edge/sim-aws-cf-edge-functions.d.ts.map +1 -1
- package/dist/service/cloudfront/edge/sim-aws-cf-edge-functions.js +2 -4
- package/dist/service/cloudfront/edge/sim-aws-cf-edge-functions.js.map +1 -1
- package/dist/service/cloudfront/edge/sim-cf-edge-association-checks.d.ts +20 -6
- package/dist/service/cloudfront/edge/sim-cf-edge-association-checks.d.ts.map +1 -1
- package/dist/service/cloudfront/edge/sim-cf-edge-association-checks.js +43 -8
- package/dist/service/cloudfront/edge/sim-cf-edge-association-checks.js.map +1 -1
- package/dist/service/cloudfront/edge/sim-cf-edge-association-validator.d.ts.map +1 -1
- package/dist/service/cloudfront/edge/sim-cf-edge-association-validator.js +3 -2
- package/dist/service/cloudfront/edge/sim-cf-edge-association-validator.js.map +1 -1
- package/dist/service/cloudfront/edge/sim-cf-edge-association.d.ts +5 -2
- package/dist/service/cloudfront/edge/sim-cf-edge-association.d.ts.map +1 -1
- package/dist/service/cloudfront/edge/sim-cf-edge-associations-configure.d.ts +3 -3
- package/dist/service/cloudfront/edge/sim-cf-edge-associations-configure.d.ts.map +1 -1
- package/dist/service/cloudfront/edge/sim-cf-edge-associations-configure.js +26 -10
- package/dist/service/cloudfront/edge/sim-cf-edge-associations-configure.js.map +1 -1
- package/dist/service/cloudfront/edge/sim-cf-edge-function-arn.d.ts +10 -0
- package/dist/service/cloudfront/edge/sim-cf-edge-function-arn.d.ts.map +1 -1
- package/dist/service/cloudfront/edge/sim-cf-edge-function-arn.js +29 -5
- package/dist/service/cloudfront/edge/sim-cf-edge-function-arn.js.map +1 -1
- package/dist/service/cloudfront/edge/sim-cf-edge-function-version.d.ts +14 -0
- package/dist/service/cloudfront/edge/sim-cf-edge-function-version.d.ts.map +1 -0
- package/dist/service/cloudfront/edge/sim-cf-edge-function-version.js +16 -0
- package/dist/service/cloudfront/edge/sim-cf-edge-function-version.js.map +1 -0
- package/dist/service/cloudfront/origin/custom/sim-cf-custom-origin-edge.d.ts +27 -0
- package/dist/service/cloudfront/origin/custom/sim-cf-custom-origin-edge.d.ts.map +1 -0
- package/dist/service/cloudfront/origin/custom/sim-cf-custom-origin-edge.js +44 -0
- package/dist/service/cloudfront/origin/custom/sim-cf-custom-origin-edge.js.map +1 -0
- package/dist/service/cloudfront/origin/custom/sim-cloudfront-custom-origin.d.ts +23 -3
- package/dist/service/cloudfront/origin/custom/sim-cloudfront-custom-origin.d.ts.map +1 -1
- package/dist/service/cloudfront/origin/custom/sim-cloudfront-custom-origin.js +30 -2
- package/dist/service/cloudfront/origin/custom/sim-cloudfront-custom-origin.js.map +1 -1
- package/dist/service/cloudfront/origin/s3/sim-cf-s3-origin-edge.d.ts +26 -0
- package/dist/service/cloudfront/origin/s3/sim-cf-s3-origin-edge.d.ts.map +1 -0
- package/dist/service/cloudfront/origin/s3/sim-cf-s3-origin-edge.js +63 -0
- package/dist/service/cloudfront/origin/s3/sim-cf-s3-origin-edge.js.map +1 -0
- package/dist/service/cloudfront/origin/s3/sim-cf-s3-origin-object-loader.d.ts.map +1 -1
- package/dist/service/cloudfront/origin/s3/sim-cf-s3-origin-object-loader.js +7 -2
- package/dist/service/cloudfront/origin/s3/sim-cf-s3-origin-object-loader.js.map +1 -1
- package/dist/service/cloudfront/origin/s3/sim-cloudfront-s3-origin.d.ts +17 -2
- package/dist/service/cloudfront/origin/s3/sim-cloudfront-s3-origin.d.ts.map +1 -1
- package/dist/service/cloudfront/origin/s3/sim-cloudfront-s3-origin.js +20 -0
- package/dist/service/cloudfront/origin/s3/sim-cloudfront-s3-origin.js.map +1 -1
- package/dist/service/cloudfront/origin/sim-cf-edge-origin-not-simulated.error.d.ts +15 -0
- package/dist/service/cloudfront/origin/sim-cf-edge-origin-not-simulated.error.d.ts.map +1 -0
- package/dist/service/cloudfront/origin/sim-cf-edge-origin-not-simulated.error.js +15 -0
- package/dist/service/cloudfront/origin/sim-cf-edge-origin-not-simulated.error.js.map +1 -0
- package/dist/service/cloudfront/origin/sim-cloudfront-origin.d.ts +13 -0
- package/dist/service/cloudfront/origin/sim-cloudfront-origin.d.ts.map +1 -1
- package/dist/service/cloudfront/typings/lambda-at-edge.namespace.d.ts +71 -3
- package/dist/service/cloudfront/typings/lambda-at-edge.namespace.d.ts.map +1 -1
- package/dist/service/s3/command/get-object/get-object-loader.d.ts +2 -1
- package/dist/service/s3/command/get-object/get-object-loader.d.ts.map +1 -1
- package/dist/service/s3/command/get-object/get-object-loader.js +4 -2
- package/dist/service/s3/command/get-object/get-object-loader.js.map +1 -1
- package/dist/service/s3/command/get-object/get-object.command.d.ts +6 -1
- package/dist/service/s3/command/get-object/get-object.command.d.ts.map +1 -1
- package/dist/service/s3/command/head-object/head-object-loader.d.ts.map +1 -1
- package/dist/service/s3/command/head-object/head-object-loader.js +2 -1
- package/dist/service/s3/command/head-object/head-object-loader.js.map +1 -1
- package/dist/service/s3/command/head-object/head-object.command.d.ts +2 -1
- package/dist/service/s3/command/head-object/head-object.command.d.ts.map +1 -1
- package/dist/service/s3/object/s3-object.d.ts +14 -0
- package/dist/service/s3/object/s3-object.d.ts.map +1 -1
- package/dist/service/s3/object/s3-object.js +18 -0
- package/dist/service/s3/object/s3-object.js.map +1 -1
- package/dist/service/s3/object/s3-system-metadata-read.d.ts +56 -0
- package/dist/service/s3/object/s3-system-metadata-read.d.ts.map +1 -0
- package/dist/service/s3/object/s3-system-metadata-read.js +66 -0
- package/dist/service/s3/object/s3-system-metadata-read.js.map +1 -0
- package/dist/service/s3/object/s3-system-metadata.d.ts +17 -0
- package/dist/service/s3/object/s3-system-metadata.d.ts.map +1 -1
- package/dist/service/s3/object/s3-system-metadata.js +17 -0
- package/dist/service/s3/object/s3-system-metadata.js.map +1 -1
- package/dist/service/s3/object/s3-write-metadata.d.ts +9 -5
- package/dist/service/s3/object/s3-write-metadata.d.ts.map +1 -1
- package/dist/service/s3/object/s3-write-metadata.js +16 -7
- package/dist/service/s3/object/s3-write-metadata.js.map +1 -1
- package/dist/service/s3/serve/api/sim-s3-api-head-output.d.ts.map +1 -1
- package/dist/service/s3/serve/api/sim-s3-api-head-output.js +2 -1
- package/dist/service/s3/serve/api/sim-s3-api-head-output.js.map +1 -1
- package/dist/service/s3/serve/api/sim-s3-api-object-output.d.ts.map +1 -1
- package/dist/service/s3/serve/api/sim-s3-api-object-output.js +2 -1
- package/dist/service/s3/serve/api/sim-s3-api-object-output.js.map +1 -1
- package/dist/service/s3/serve/sim-s3-rest-object-reader.d.ts.map +1 -1
- package/dist/service/s3/serve/sim-s3-rest-object-reader.js +2 -1
- package/dist/service/s3/serve/sim-s3-rest-object-reader.js.map +1 -1
- package/dist/service/s3/serve/website/sim-s3-website-object-loader.d.ts.map +1 -1
- package/dist/service/s3/serve/website/sim-s3-website-object-loader.js +2 -1
- package/dist/service/s3/serve/website/sim-s3-website-object-loader.js.map +1 -1
- package/dist/service/s3/storage/filesystem/s3-filesystem-object-metadata.d.ts.map +1 -1
- package/dist/service/s3/storage/filesystem/s3-filesystem-object-metadata.js +3 -2
- package/dist/service/s3/storage/filesystem/s3-filesystem-object-metadata.js.map +1 -1
- package/dist/service/{cloudformation/resource/cfn/stepfunctions → stepfunctions/cfn}/sim-cfn-step-functions-resource-deleter.d.ts +2 -2
- package/dist/service/stepfunctions/cfn/sim-cfn-step-functions-resource-deleter.d.ts.map +1 -0
- package/dist/service/{cloudformation/resource/cfn/stepfunctions → stepfunctions/cfn}/sim-cfn-step-functions-resource-deleter.js +1 -1
- package/dist/service/stepfunctions/cfn/sim-cfn-step-functions-resource-deleter.js.map +1 -0
- package/dist/service/stepfunctions/cfn/sim-cfn-step-functions-resource-error.d.ts.map +1 -0
- package/dist/service/{cloudformation/resource/cfn/stepfunctions → stepfunctions/cfn}/sim-cfn-step-functions-resource-error.js +1 -1
- package/dist/service/stepfunctions/cfn/sim-cfn-step-functions-resource-error.js.map +1 -0
- package/dist/service/stepfunctions/cfn/sim-cfn-step-functions-resource-types.d.ts.map +1 -0
- package/dist/service/stepfunctions/cfn/sim-cfn-step-functions-resource-types.js.map +1 -0
- package/dist/service/{cloudformation/resource/cfn/stepfunctions → stepfunctions/cfn}/sim-step-functions-cfn-resource-factory.d.ts +6 -3
- package/dist/service/stepfunctions/cfn/sim-step-functions-cfn-resource-factory.d.ts.map +1 -0
- package/dist/service/{cloudformation/resource/cfn/stepfunctions → stepfunctions/cfn}/sim-step-functions-cfn-resource-factory.js +2 -1
- package/dist/service/stepfunctions/cfn/sim-step-functions-cfn-resource-factory.js.map +1 -0
- package/dist/service/{cloudformation/resource/cfn/stepfunctions → stepfunctions/cfn/state-machine}/sim-cfn-state-machine-creator.d.ts +7 -4
- package/dist/service/stepfunctions/cfn/state-machine/sim-cfn-state-machine-creator.d.ts.map +1 -0
- package/dist/service/{cloudformation/resource/cfn/stepfunctions → stepfunctions/cfn/state-machine}/sim-cfn-state-machine-creator.js +9 -4
- package/dist/service/stepfunctions/cfn/state-machine/sim-cfn-state-machine-creator.js.map +1 -0
- package/dist/service/{cloudformation/resource/cfn/stepfunctions → stepfunctions/cfn/state-machine}/sim-cfn-state-machine-definition.d.ts +12 -13
- package/dist/service/stepfunctions/cfn/state-machine/sim-cfn-state-machine-definition.d.ts.map +1 -0
- package/dist/service/{cloudformation/resource/cfn/stepfunctions → stepfunctions/cfn/state-machine}/sim-cfn-state-machine-definition.js +30 -28
- package/dist/service/stepfunctions/cfn/state-machine/sim-cfn-state-machine-definition.js.map +1 -0
- package/dist/service/stepfunctions/cfn/state-machine/sim-cfn-state-machine-name.d.ts.map +1 -0
- package/dist/service/{cloudformation/resource/cfn/stepfunctions → stepfunctions/cfn/state-machine}/sim-cfn-state-machine-name.js +1 -1
- package/dist/service/stepfunctions/cfn/state-machine/sim-cfn-state-machine-name.js.map +1 -0
- package/dist/service/{cloudformation/resource/cfn/stepfunctions → stepfunctions/cfn/state-machine}/sim-cfn-state-machine-properties.d.ts +11 -3
- package/dist/service/stepfunctions/cfn/state-machine/sim-cfn-state-machine-properties.d.ts.map +1 -0
- package/dist/service/{cloudformation/resource/cfn/stepfunctions → stepfunctions/cfn/state-machine}/sim-cfn-state-machine-properties.js +18 -5
- package/dist/service/stepfunctions/cfn/state-machine/sim-cfn-state-machine-properties.js.map +1 -0
- package/dist/service/stepfunctions/cfn/state-machine/sim-cfn-state-machine-property-names.d.ts.map +1 -0
- package/dist/service/{cloudformation/resource/cfn/stepfunctions → stepfunctions/cfn/state-machine}/sim-cfn-state-machine-property-names.js +0 -5
- package/dist/service/stepfunctions/cfn/state-machine/sim-cfn-state-machine-property-names.js.map +1 -0
- package/dist/service/stepfunctions/cfn/state-machine/sim-cfn-state-machine-s3-definition.d.ts +37 -0
- package/dist/service/stepfunctions/cfn/state-machine/sim-cfn-state-machine-s3-definition.d.ts.map +1 -0
- package/dist/service/stepfunctions/cfn/state-machine/sim-cfn-state-machine-s3-definition.js +63 -0
- package/dist/service/stepfunctions/cfn/state-machine/sim-cfn-state-machine-s3-definition.js.map +1 -0
- package/dist/service/{cloudformation/resource/cfn/stepfunctions → stepfunctions/cfn/state-machine}/sim-cfn-state-machine-substitutions.d.ts +1 -1
- package/dist/service/stepfunctions/cfn/state-machine/sim-cfn-state-machine-substitutions.d.ts.map +1 -0
- package/dist/service/{cloudformation/resource/cfn/stepfunctions → stepfunctions/cfn/state-machine}/sim-cfn-state-machine-substitutions.js +3 -3
- package/dist/service/stepfunctions/cfn/state-machine/sim-cfn-state-machine-substitutions.js.map +1 -0
- package/dist/service/stepfunctions/cfn/state-machine/sim-cfn-state-machine-tags.d.ts +33 -0
- package/dist/service/stepfunctions/cfn/state-machine/sim-cfn-state-machine-tags.d.ts.map +1 -0
- package/dist/service/stepfunctions/cfn/state-machine/sim-cfn-state-machine-tags.js +58 -0
- package/dist/service/stepfunctions/cfn/state-machine/sim-cfn-state-machine-tags.js.map +1 -0
- package/dist/service/stepfunctions/command/execution/sim-states-execution-start.d.ts.map +1 -1
- package/dist/service/stepfunctions/command/execution/sim-states-execution-start.js +15 -4
- package/dist/service/stepfunctions/command/execution/sim-states-execution-start.js.map +1 -1
- package/dist/service/stepfunctions/command/machine/machine.command.d.ts +2 -0
- package/dist/service/stepfunctions/command/machine/machine.command.d.ts.map +1 -1
- package/dist/service/stepfunctions/command/machine/sim-state-machine-input.d.ts +2 -0
- package/dist/service/stepfunctions/command/machine/sim-state-machine-input.d.ts.map +1 -1
- package/dist/service/stepfunctions/command/machine/sim-state-machine-input.js +3 -1
- package/dist/service/stepfunctions/command/machine/sim-state-machine-input.js.map +1 -1
- package/dist/service/stepfunctions/command/sim-step-functions-command.types.d.ts +1 -0
- package/dist/service/stepfunctions/command/sim-step-functions-command.types.d.ts.map +1 -1
- package/dist/service/stepfunctions/command/tag/sim-state-machine-tag-commands.d.ts +36 -0
- package/dist/service/stepfunctions/command/tag/sim-state-machine-tag-commands.d.ts.map +1 -0
- package/dist/service/stepfunctions/command/tag/sim-state-machine-tag-commands.js +76 -0
- package/dist/service/stepfunctions/command/tag/sim-state-machine-tag-commands.js.map +1 -0
- package/dist/service/stepfunctions/command/tag/tag.command.d.ts +46 -0
- package/dist/service/stepfunctions/command/tag/tag.command.d.ts.map +1 -0
- package/dist/service/stepfunctions/command/tag/tag.command.js +2 -0
- package/dist/service/stepfunctions/command/tag/tag.command.js.map +1 -0
- package/dist/service/stepfunctions/data/sim-states-context-object.d.ts +45 -0
- package/dist/service/stepfunctions/data/sim-states-context-object.d.ts.map +1 -0
- package/dist/service/stepfunctions/data/sim-states-context-object.js +48 -0
- package/dist/service/stepfunctions/data/sim-states-context-object.js.map +1 -0
- package/dist/service/stepfunctions/data/sim-states-context-path.d.ts +22 -0
- package/dist/service/stepfunctions/data/sim-states-context-path.d.ts.map +1 -0
- package/dist/service/stepfunctions/data/sim-states-context-path.js +30 -0
- package/dist/service/stepfunctions/data/sim-states-context-path.js.map +1 -0
- package/dist/service/stepfunctions/data/sim-states-data-flow.d.ts +3 -2
- package/dist/service/stepfunctions/data/sim-states-data-flow.d.ts.map +1 -1
- package/dist/service/stepfunctions/data/sim-states-data-flow.js +10 -9
- package/dist/service/stepfunctions/data/sim-states-data-flow.js.map +1 -1
- package/dist/service/stepfunctions/data/sim-states-intrinsic.d.ts +1 -1
- package/dist/service/stepfunctions/data/sim-states-intrinsic.d.ts.map +1 -1
- package/dist/service/stepfunctions/data/sim-states-intrinsic.js +6 -7
- package/dist/service/stepfunctions/data/sim-states-intrinsic.js.map +1 -1
- package/dist/service/stepfunctions/data/sim-states-payload-template.d.ts +9 -6
- package/dist/service/stepfunctions/data/sim-states-payload-template.d.ts.map +1 -1
- package/dist/service/stepfunctions/data/sim-states-payload-template.js +16 -14
- package/dist/service/stepfunctions/data/sim-states-payload-template.js.map +1 -1
- package/dist/service/stepfunctions/data/sim-states-reference-path.d.ts.map +1 -1
- package/dist/service/stepfunctions/data/sim-states-reference-path.js +4 -2
- package/dist/service/stepfunctions/data/sim-states-reference-path.js.map +1 -1
- package/dist/service/stepfunctions/definition/sim-states-definition-parse.d.ts +8 -0
- package/dist/service/stepfunctions/definition/sim-states-definition-parse.d.ts.map +1 -1
- package/dist/service/stepfunctions/definition/sim-states-definition-parse.js +9 -1
- package/dist/service/stepfunctions/definition/sim-states-definition-parse.js.map +1 -1
- package/dist/service/stepfunctions/definition/sim-states-map-fields.d.ts +23 -0
- package/dist/service/stepfunctions/definition/sim-states-map-fields.d.ts.map +1 -0
- package/dist/service/stepfunctions/definition/sim-states-map-fields.js +60 -0
- package/dist/service/stepfunctions/definition/sim-states-map-fields.js.map +1 -0
- package/dist/service/stepfunctions/definition/sim-states-map-parse.d.ts +12 -0
- package/dist/service/stepfunctions/definition/sim-states-map-parse.d.ts.map +1 -0
- package/dist/service/stepfunctions/definition/sim-states-map-parse.js +56 -0
- package/dist/service/stepfunctions/definition/sim-states-map-parse.js.map +1 -0
- package/dist/service/stepfunctions/definition/sim-states-map-processor.d.ts +11 -0
- package/dist/service/stepfunctions/definition/sim-states-map-processor.d.ts.map +1 -0
- package/dist/service/stepfunctions/definition/sim-states-map-processor.js +62 -0
- package/dist/service/stepfunctions/definition/sim-states-map-processor.js.map +1 -0
- package/dist/service/stepfunctions/definition/sim-states-nested-refusal.d.ts +14 -0
- package/dist/service/stepfunctions/definition/sim-states-nested-refusal.d.ts.map +1 -0
- package/dist/service/stepfunctions/definition/sim-states-nested-refusal.js +23 -0
- package/dist/service/stepfunctions/definition/sim-states-nested-refusal.js.map +1 -0
- package/dist/service/stepfunctions/definition/sim-states-parallel-parse.d.ts +10 -0
- package/dist/service/stepfunctions/definition/sim-states-parallel-parse.d.ts.map +1 -0
- package/dist/service/stepfunctions/definition/sim-states-parallel-parse.js +50 -0
- package/dist/service/stepfunctions/definition/sim-states-parallel-parse.js.map +1 -0
- package/dist/service/stepfunctions/definition/sim-states-state-fields.d.ts.map +1 -1
- package/dist/service/stepfunctions/definition/sim-states-state-fields.js +5 -0
- package/dist/service/stepfunctions/definition/sim-states-state-fields.js.map +1 -1
- package/dist/service/stepfunctions/definition/sim-states-state-parse.d.ts.map +1 -1
- package/dist/service/stepfunctions/definition/sim-states-state-parse.js +15 -7
- package/dist/service/stepfunctions/definition/sim-states-state-parse.js.map +1 -1
- package/dist/service/stepfunctions/definition/sim-states-state.d.ts +35 -11
- package/dist/service/stepfunctions/definition/sim-states-state.d.ts.map +1 -1
- package/dist/service/stepfunctions/definition/sim-states-state.js +1 -15
- package/dist/service/stepfunctions/definition/sim-states-state.js.map +1 -1
- package/dist/service/stepfunctions/definition/sim-states-transitions.d.ts.map +1 -1
- package/dist/service/stepfunctions/definition/sim-states-transitions.js +14 -0
- package/dist/service/stepfunctions/definition/sim-states-transitions.js.map +1 -1
- package/dist/service/stepfunctions/definition/store/sim-s3-states-definition-store.d.ts +45 -0
- package/dist/service/stepfunctions/definition/store/sim-s3-states-definition-store.d.ts.map +1 -0
- package/dist/service/stepfunctions/definition/store/sim-s3-states-definition-store.js +58 -0
- package/dist/service/stepfunctions/definition/store/sim-s3-states-definition-store.js.map +1 -0
- package/dist/service/stepfunctions/definition/store/sim-states-definition-store.d.ts +34 -0
- package/dist/service/stepfunctions/definition/store/sim-states-definition-store.d.ts.map +1 -0
- package/dist/service/stepfunctions/definition/store/sim-states-definition-store.js +14 -0
- package/dist/service/stepfunctions/definition/store/sim-states-definition-store.js.map +1 -0
- package/dist/service/stepfunctions/error/sim-step-functions.error.d.ts +36 -0
- package/dist/service/stepfunctions/error/sim-step-functions.error.d.ts.map +1 -1
- package/dist/service/stepfunctions/error/sim-step-functions.error.js +42 -0
- package/dist/service/stepfunctions/error/sim-step-functions.error.js.map +1 -1
- package/dist/service/stepfunctions/execution/sim-states-attempt.d.ts +16 -0
- package/dist/service/stepfunctions/execution/sim-states-attempt.d.ts.map +1 -0
- package/dist/service/stepfunctions/execution/sim-states-attempt.js +2 -0
- package/dist/service/stepfunctions/execution/sim-states-attempt.js.map +1 -0
- package/dist/service/stepfunctions/execution/sim-states-child-failure.d.ts +11 -0
- package/dist/service/stepfunctions/execution/sim-states-child-failure.d.ts.map +1 -0
- package/dist/service/stepfunctions/execution/sim-states-child-failure.js +20 -0
- package/dist/service/stepfunctions/execution/sim-states-child-failure.js.map +1 -0
- package/dist/service/stepfunctions/execution/sim-states-child-run.d.ts +55 -0
- package/dist/service/stepfunctions/execution/sim-states-child-run.d.ts.map +1 -0
- package/dist/service/stepfunctions/execution/sim-states-child-run.js +86 -0
- package/dist/service/stepfunctions/execution/sim-states-child-run.js.map +1 -0
- package/dist/service/stepfunctions/execution/sim-states-child-runs.d.ts +69 -0
- package/dist/service/stepfunctions/execution/sim-states-child-runs.d.ts.map +1 -0
- package/dist/service/stepfunctions/execution/sim-states-child-runs.js +114 -0
- package/dist/service/stepfunctions/execution/sim-states-child-runs.js.map +1 -0
- package/dist/service/stepfunctions/execution/sim-states-child-walk.d.ts +43 -0
- package/dist/service/stepfunctions/execution/sim-states-child-walk.d.ts.map +1 -0
- package/dist/service/stepfunctions/execution/sim-states-child-walk.js +2 -0
- package/dist/service/stepfunctions/execution/sim-states-child-walk.js.map +1 -0
- package/dist/service/stepfunctions/execution/sim-states-child.d.ts +41 -0
- package/dist/service/stepfunctions/execution/sim-states-child.d.ts.map +1 -0
- package/dist/service/stepfunctions/execution/sim-states-child.js +2 -0
- package/dist/service/stepfunctions/execution/sim-states-child.js.map +1 -0
- package/dist/service/stepfunctions/execution/sim-states-execution.d.ts +32 -3
- package/dist/service/stepfunctions/execution/sim-states-execution.d.ts.map +1 -1
- package/dist/service/stepfunctions/execution/sim-states-execution.js +42 -2
- package/dist/service/stepfunctions/execution/sim-states-execution.js.map +1 -1
- package/dist/service/stepfunctions/execution/sim-states-fan-out-outcome.d.ts +19 -0
- package/dist/service/stepfunctions/execution/sim-states-fan-out-outcome.d.ts.map +1 -0
- package/dist/service/stepfunctions/execution/sim-states-fan-out-outcome.js +15 -0
- package/dist/service/stepfunctions/execution/sim-states-fan-out-outcome.js.map +1 -0
- package/dist/service/stepfunctions/execution/sim-states-fan-out.d.ts +46 -0
- package/dist/service/stepfunctions/execution/sim-states-fan-out.d.ts.map +1 -0
- package/dist/service/stepfunctions/execution/sim-states-fan-out.js +106 -0
- package/dist/service/stepfunctions/execution/sim-states-fan-out.js.map +1 -0
- package/dist/service/stepfunctions/execution/sim-states-interpreter.d.ts +18 -11
- package/dist/service/stepfunctions/execution/sim-states-interpreter.d.ts.map +1 -1
- package/dist/service/stepfunctions/execution/sim-states-interpreter.js +55 -65
- package/dist/service/stepfunctions/execution/sim-states-interpreter.js.map +1 -1
- package/dist/service/stepfunctions/execution/sim-states-map-items.d.ts +13 -0
- package/dist/service/stepfunctions/execution/sim-states-map-items.d.ts.map +1 -0
- package/dist/service/stepfunctions/execution/sim-states-map-items.js +38 -0
- package/dist/service/stepfunctions/execution/sim-states-map-items.js.map +1 -0
- package/dist/service/stepfunctions/execution/sim-states-map-iteration.d.ts +32 -0
- package/dist/service/stepfunctions/execution/sim-states-map-iteration.d.ts.map +1 -0
- package/dist/service/stepfunctions/execution/sim-states-map-iteration.js +37 -0
- package/dist/service/stepfunctions/execution/sim-states-map-iteration.js.map +1 -0
- package/dist/service/stepfunctions/execution/sim-states-run-choice.d.ts.map +1 -1
- package/dist/service/stepfunctions/execution/sim-states-run-choice.js +2 -2
- package/dist/service/stepfunctions/execution/sim-states-run-choice.js.map +1 -1
- package/dist/service/stepfunctions/execution/sim-states-run-map.d.ts +12 -0
- package/dist/service/stepfunctions/execution/sim-states-run-map.d.ts.map +1 -0
- package/dist/service/stepfunctions/execution/sim-states-run-map.js +25 -0
- package/dist/service/stepfunctions/execution/sim-states-run-map.js.map +1 -0
- package/dist/service/stepfunctions/execution/sim-states-run-parallel.d.ts +16 -0
- package/dist/service/stepfunctions/execution/sim-states-run-parallel.d.ts.map +1 -0
- package/dist/service/stepfunctions/execution/sim-states-run-parallel.js +31 -0
- package/dist/service/stepfunctions/execution/sim-states-run-parallel.js.map +1 -0
- package/dist/service/stepfunctions/execution/sim-states-run-record.d.ts +47 -0
- package/dist/service/stepfunctions/execution/sim-states-run-record.d.ts.map +1 -0
- package/dist/service/stepfunctions/execution/sim-states-run-record.js +2 -0
- package/dist/service/stepfunctions/execution/sim-states-run-record.js.map +1 -0
- package/dist/service/stepfunctions/execution/sim-states-run-state.d.ts +4 -3
- package/dist/service/stepfunctions/execution/sim-states-run-state.d.ts.map +1 -1
- package/dist/service/stepfunctions/execution/sim-states-run-state.js +20 -11
- package/dist/service/stepfunctions/execution/sim-states-run-state.js.map +1 -1
- package/dist/service/stepfunctions/execution/sim-states-run-task.d.ts.map +1 -1
- package/dist/service/stepfunctions/execution/sim-states-run-task.js +2 -2
- package/dist/service/stepfunctions/execution/sim-states-run-task.js.map +1 -1
- package/dist/service/stepfunctions/execution/sim-states-run-wait.d.ts.map +1 -1
- package/dist/service/stepfunctions/execution/sim-states-run-wait.js +2 -2
- package/dist/service/stepfunctions/execution/sim-states-run-wait.js.map +1 -1
- package/dist/service/stepfunctions/execution/sim-states-settlement.d.ts +7 -3
- package/dist/service/stepfunctions/execution/sim-states-settlement.d.ts.map +1 -1
- package/dist/service/stepfunctions/execution/sim-states-settlement.js +11 -5
- package/dist/service/stepfunctions/execution/sim-states-settlement.js.map +1 -1
- package/dist/service/stepfunctions/execution/sim-states-state-attempts.d.ts +37 -0
- package/dist/service/stepfunctions/execution/sim-states-state-attempts.d.ts.map +1 -0
- package/dist/service/stepfunctions/execution/sim-states-state-attempts.js +112 -0
- package/dist/service/stepfunctions/execution/sim-states-state-attempts.js.map +1 -0
- package/dist/service/stepfunctions/execution/sim-states-state-outcome.d.ts +69 -15
- package/dist/service/stepfunctions/execution/sim-states-state-outcome.d.ts.map +1 -1
- package/dist/service/stepfunctions/execution/sim-states-state-runner.d.ts +26 -12
- package/dist/service/stepfunctions/execution/sim-states-state-runner.d.ts.map +1 -1
- package/dist/service/stepfunctions/execution/sim-states-state-runner.js +55 -15
- package/dist/service/stepfunctions/execution/sim-states-state-runner.js.map +1 -1
- package/dist/service/stepfunctions/execution/sim-states-walk-steps.d.ts +19 -0
- package/dist/service/stepfunctions/execution/sim-states-walk-steps.d.ts.map +1 -0
- package/dist/service/stepfunctions/execution/sim-states-walk-steps.js +35 -0
- package/dist/service/stepfunctions/execution/sim-states-walk-steps.js.map +1 -0
- package/dist/service/stepfunctions/execution/sim-states-walk.d.ts +19 -0
- package/dist/service/stepfunctions/execution/sim-states-walk.d.ts.map +1 -0
- package/dist/service/stepfunctions/execution/sim-states-walk.js +2 -0
- package/dist/service/stepfunctions/execution/sim-states-walk.js.map +1 -0
- package/dist/service/stepfunctions/execution/sim-states-walks.d.ts +25 -0
- package/dist/service/stepfunctions/execution/sim-states-walks.d.ts.map +1 -0
- package/dist/service/stepfunctions/execution/sim-states-walks.js +25 -0
- package/dist/service/stepfunctions/execution/sim-states-walks.js.map +1 -0
- package/dist/service/stepfunctions/index.d.ts +10 -3
- package/dist/service/stepfunctions/index.d.ts.map +1 -1
- package/dist/service/stepfunctions/index.js +4 -2
- package/dist/service/stepfunctions/index.js.map +1 -1
- package/dist/service/stepfunctions/machine/sim-state-machine-tag.d.ts +43 -0
- package/dist/service/stepfunctions/machine/sim-state-machine-tag.d.ts.map +1 -0
- package/dist/service/stepfunctions/machine/sim-state-machine-tag.js +111 -0
- package/dist/service/stepfunctions/machine/sim-state-machine-tag.js.map +1 -0
- package/dist/service/stepfunctions/machine/sim-state-machine-tags.d.ts +39 -0
- package/dist/service/stepfunctions/machine/sim-state-machine-tags.d.ts.map +1 -0
- package/dist/service/stepfunctions/machine/sim-state-machine-tags.js +80 -0
- package/dist/service/stepfunctions/machine/sim-state-machine-tags.js.map +1 -0
- package/dist/service/stepfunctions/machine/sim-state-machine.d.ts +6 -0
- package/dist/service/stepfunctions/machine/sim-state-machine.d.ts.map +1 -1
- package/dist/service/stepfunctions/machine/sim-state-machine.js +5 -0
- package/dist/service/stepfunctions/machine/sim-state-machine.js.map +1 -1
- package/dist/service/stepfunctions/retry/sim-states-attempt-state.d.ts +37 -0
- package/dist/service/stepfunctions/retry/sim-states-attempt-state.d.ts.map +1 -0
- package/dist/service/stepfunctions/retry/sim-states-attempt-state.js +38 -0
- package/dist/service/stepfunctions/retry/sim-states-attempt-state.js.map +1 -0
- package/dist/service/stepfunctions/retry/sim-states-catch-outcome.d.ts +11 -0
- package/dist/service/stepfunctions/retry/sim-states-catch-outcome.d.ts.map +1 -0
- package/dist/service/stepfunctions/retry/sim-states-catch-outcome.js +20 -0
- package/dist/service/stepfunctions/retry/sim-states-catch-outcome.js.map +1 -0
- package/dist/service/stepfunctions/retry/sim-states-catch-parse.d.ts +11 -0
- package/dist/service/stepfunctions/retry/sim-states-catch-parse.d.ts.map +1 -0
- package/dist/service/stepfunctions/retry/sim-states-catch-parse.js +49 -0
- package/dist/service/stepfunctions/retry/sim-states-catch-parse.js.map +1 -0
- package/dist/service/stepfunctions/retry/sim-states-catcher.d.ts +29 -0
- package/dist/service/stepfunctions/retry/sim-states-catcher.d.ts.map +1 -0
- package/dist/service/stepfunctions/retry/sim-states-catcher.js +31 -0
- package/dist/service/stepfunctions/retry/sim-states-catcher.js.map +1 -0
- package/dist/service/stepfunctions/retry/sim-states-error-equals.d.ts +19 -0
- package/dist/service/stepfunctions/retry/sim-states-error-equals.d.ts.map +1 -0
- package/dist/service/stepfunctions/retry/sim-states-error-equals.js +69 -0
- package/dist/service/stepfunctions/retry/sim-states-error-equals.js.map +1 -0
- package/dist/service/stepfunctions/retry/sim-states-error-handling.d.ts +31 -0
- package/dist/service/stepfunctions/retry/sim-states-error-handling.d.ts.map +1 -0
- package/dist/service/stepfunctions/retry/sim-states-error-handling.js +40 -0
- package/dist/service/stepfunctions/retry/sim-states-error-handling.js.map +1 -0
- package/dist/service/stepfunctions/retry/sim-states-error-name.d.ts +29 -0
- package/dist/service/stepfunctions/retry/sim-states-error-name.d.ts.map +1 -0
- package/dist/service/stepfunctions/retry/sim-states-error-name.js +34 -0
- package/dist/service/stepfunctions/retry/sim-states-error-name.js.map +1 -0
- package/dist/service/stepfunctions/retry/sim-states-recover.d.ts +31 -0
- package/dist/service/stepfunctions/retry/sim-states-recover.d.ts.map +1 -0
- package/dist/service/stepfunctions/retry/sim-states-recover.js +23 -0
- package/dist/service/stepfunctions/retry/sim-states-recover.js.map +1 -0
- package/dist/service/stepfunctions/retry/sim-states-recovered.d.ts +22 -0
- package/dist/service/stepfunctions/retry/sim-states-recovered.d.ts.map +1 -0
- package/dist/service/stepfunctions/retry/sim-states-recovered.js +33 -0
- package/dist/service/stepfunctions/retry/sim-states-recovered.js.map +1 -0
- package/dist/service/stepfunctions/retry/sim-states-retrier.d.ts +35 -0
- package/dist/service/stepfunctions/retry/sim-states-retrier.d.ts.map +1 -0
- package/dist/service/stepfunctions/retry/sim-states-retrier.js +31 -0
- package/dist/service/stepfunctions/retry/sim-states-retrier.js.map +1 -0
- package/dist/service/stepfunctions/retry/sim-states-retry-outcome.d.ts +12 -0
- package/dist/service/stepfunctions/retry/sim-states-retry-outcome.d.ts.map +1 -0
- package/dist/service/stepfunctions/retry/sim-states-retry-outcome.js +44 -0
- package/dist/service/stepfunctions/retry/sim-states-retry-outcome.js.map +1 -0
- package/dist/service/stepfunctions/retry/sim-states-retry-parse.d.ts +11 -0
- package/dist/service/stepfunctions/retry/sim-states-retry-parse.d.ts.map +1 -0
- package/dist/service/stepfunctions/retry/sim-states-retry-parse.js +76 -0
- package/dist/service/stepfunctions/retry/sim-states-retry-parse.js.map +1 -0
- package/dist/service/stepfunctions/retry/sim-states-task-deadline.d.ts +43 -0
- package/dist/service/stepfunctions/retry/sim-states-task-deadline.d.ts.map +1 -0
- package/dist/service/stepfunctions/retry/sim-states-task-deadline.js +76 -0
- package/dist/service/stepfunctions/retry/sim-states-task-deadline.js.map +1 -0
- package/dist/service/stepfunctions/retry/sim-states-task-handling.d.ts +11 -0
- package/dist/service/stepfunctions/retry/sim-states-task-handling.d.ts.map +1 -0
- package/dist/service/stepfunctions/retry/sim-states-task-handling.js +2 -0
- package/dist/service/stepfunctions/retry/sim-states-task-handling.js.map +1 -0
- package/dist/service/stepfunctions/sdk/sim-step-functions-sdk-command-router.d.ts.map +1 -1
- package/dist/service/stepfunctions/sdk/sim-step-functions-sdk-command-router.js +12 -0
- package/dist/service/stepfunctions/sdk/sim-step-functions-sdk-command-router.js.map +1 -1
- package/dist/service/stepfunctions/sim-step-functions-inspection.d.ts +28 -0
- package/dist/service/stepfunctions/sim-step-functions-inspection.d.ts.map +1 -1
- package/dist/service/stepfunctions/sim-step-functions-inspection.js +38 -0
- package/dist/service/stepfunctions/sim-step-functions-inspection.js.map +1 -1
- package/dist/service/stepfunctions/sim-step-functions.d.ts +17 -0
- package/dist/service/stepfunctions/sim-step-functions.d.ts.map +1 -1
- package/dist/service/stepfunctions/sim-step-functions.js +31 -1
- package/dist/service/stepfunctions/sim-step-functions.js.map +1 -1
- package/dist/service/stepfunctions/task/service/sim-states-optimized-integrations.d.ts +36 -0
- package/dist/service/stepfunctions/task/service/sim-states-optimized-integrations.d.ts.map +1 -0
- package/dist/service/stepfunctions/task/service/sim-states-optimized-integrations.js +115 -0
- package/dist/service/stepfunctions/task/service/sim-states-optimized-integrations.js.map +1 -0
- package/dist/service/stepfunctions/task/service/sim-states-service-call.d.ts +25 -0
- package/dist/service/stepfunctions/task/service/sim-states-service-call.d.ts.map +1 -0
- package/dist/service/stepfunctions/task/service/sim-states-service-call.js +51 -0
- package/dist/service/stepfunctions/task/service/sim-states-service-call.js.map +1 -0
- package/dist/service/stepfunctions/task/service/sim-states-service-failure.d.ts +17 -0
- package/dist/service/stepfunctions/task/service/sim-states-service-failure.d.ts.map +1 -0
- package/dist/service/stepfunctions/task/service/sim-states-service-failure.js +43 -0
- package/dist/service/stepfunctions/task/service/sim-states-service-failure.js.map +1 -0
- package/dist/service/stepfunctions/task/service/sim-states-service-name.d.ts +42 -0
- package/dist/service/stepfunctions/task/service/sim-states-service-name.d.ts.map +1 -0
- package/dist/service/stepfunctions/task/service/sim-states-service-name.js +74 -0
- package/dist/service/stepfunctions/task/service/sim-states-service-name.js.map +1 -0
- package/dist/service/stepfunctions/task/service/sim-states-service-resource.d.ts +10 -0
- package/dist/service/stepfunctions/task/service/sim-states-service-resource.d.ts.map +1 -0
- package/dist/service/stepfunctions/task/service/sim-states-service-resource.js +79 -0
- package/dist/service/stepfunctions/task/service/sim-states-service-resource.js.map +1 -0
- package/dist/service/stepfunctions/task/service/sim-states-service-shape.d.ts +27 -0
- package/dist/service/stepfunctions/task/service/sim-states-service-shape.d.ts.map +1 -0
- package/dist/service/stepfunctions/task/service/sim-states-service-shape.js +2 -0
- package/dist/service/stepfunctions/task/service/sim-states-service-shape.js.map +1 -0
- package/dist/service/stepfunctions/task/service/sim-states-service-target.d.ts +33 -0
- package/dist/service/stepfunctions/task/service/sim-states-service-target.d.ts.map +1 -0
- package/dist/service/stepfunctions/task/service/sim-states-service-target.js +60 -0
- package/dist/service/stepfunctions/task/service/sim-states-service-target.js.map +1 -0
- package/dist/service/stepfunctions/task/sim-aws-states-task-targets.d.ts +11 -9
- package/dist/service/stepfunctions/task/sim-aws-states-task-targets.d.ts.map +1 -1
- package/dist/service/stepfunctions/task/sim-aws-states-task-targets.js +16 -20
- package/dist/service/stepfunctions/task/sim-aws-states-task-targets.js.map +1 -1
- package/dist/service/stepfunctions/task/sim-states-function-arn-target.d.ts +2 -2
- package/dist/service/stepfunctions/task/sim-states-function-arn-target.d.ts.map +1 -1
- package/dist/service/stepfunctions/task/sim-states-function-arn-target.js +2 -2
- package/dist/service/stepfunctions/task/sim-states-function-arn-target.js.map +1 -1
- package/dist/service/stepfunctions/task/sim-states-lambda-invoke-parameters.d.ts +9 -0
- package/dist/service/stepfunctions/task/sim-states-lambda-invoke-parameters.d.ts.map +1 -0
- package/dist/service/stepfunctions/task/sim-states-lambda-invoke-parameters.js +37 -0
- package/dist/service/stepfunctions/task/sim-states-lambda-invoke-parameters.js.map +1 -0
- package/dist/service/stepfunctions/task/sim-states-lambda-invoke-target.d.ts +2 -2
- package/dist/service/stepfunctions/task/sim-states-lambda-invoke-target.d.ts.map +1 -1
- package/dist/service/stepfunctions/task/sim-states-lambda-invoke-target.js +2 -2
- package/dist/service/stepfunctions/task/sim-states-lambda-invoke-target.js.map +1 -1
- package/dist/service/stepfunctions/task/sim-states-lambda-target.d.ts +38 -0
- package/dist/service/stepfunctions/task/sim-states-lambda-target.d.ts.map +1 -0
- package/dist/service/stepfunctions/task/sim-states-lambda-target.js +37 -0
- package/dist/service/stepfunctions/task/sim-states-lambda-target.js.map +1 -0
- package/dist/service/stepfunctions/task/sim-states-task-fields.d.ts +6 -5
- package/dist/service/stepfunctions/task/sim-states-task-fields.d.ts.map +1 -1
- package/dist/service/stepfunctions/task/sim-states-task-fields.js +9 -10
- package/dist/service/stepfunctions/task/sim-states-task-fields.js.map +1 -1
- package/dist/service/stepfunctions/task/sim-states-task-function.d.ts +2 -2
- package/dist/service/stepfunctions/task/sim-states-task-function.d.ts.map +1 -1
- package/dist/service/stepfunctions/task/sim-states-task-resource.d.ts +2 -2
- package/dist/service/stepfunctions/task/sim-states-task-resource.d.ts.map +1 -1
- package/dist/service/stepfunctions/task/sim-states-task-resource.js +16 -40
- package/dist/service/stepfunctions/task/sim-states-task-resource.js.map +1 -1
- package/dist/service/stepfunctions/task/sim-states-task-target.d.ts +33 -17
- package/dist/service/stepfunctions/task/sim-states-task-target.d.ts.map +1 -1
- package/dist/service/stepfunctions/task/sim-states-task-target.js +4 -5
- package/dist/service/stepfunctions/task/sim-states-task-target.js.map +1 -1
- package/package.json +3 -2
- package/dist/service/cloudformation/resource/cfn/stepfunctions/sim-cfn-state-machine-creator.d.ts.map +0 -1
- package/dist/service/cloudformation/resource/cfn/stepfunctions/sim-cfn-state-machine-creator.js.map +0 -1
- package/dist/service/cloudformation/resource/cfn/stepfunctions/sim-cfn-state-machine-definition.d.ts.map +0 -1
- package/dist/service/cloudformation/resource/cfn/stepfunctions/sim-cfn-state-machine-definition.js.map +0 -1
- package/dist/service/cloudformation/resource/cfn/stepfunctions/sim-cfn-state-machine-name.d.ts.map +0 -1
- package/dist/service/cloudformation/resource/cfn/stepfunctions/sim-cfn-state-machine-name.js.map +0 -1
- package/dist/service/cloudformation/resource/cfn/stepfunctions/sim-cfn-state-machine-properties.d.ts.map +0 -1
- package/dist/service/cloudformation/resource/cfn/stepfunctions/sim-cfn-state-machine-properties.js.map +0 -1
- package/dist/service/cloudformation/resource/cfn/stepfunctions/sim-cfn-state-machine-property-names.d.ts.map +0 -1
- package/dist/service/cloudformation/resource/cfn/stepfunctions/sim-cfn-state-machine-property-names.js.map +0 -1
- package/dist/service/cloudformation/resource/cfn/stepfunctions/sim-cfn-state-machine-substitutions.d.ts.map +0 -1
- package/dist/service/cloudformation/resource/cfn/stepfunctions/sim-cfn-state-machine-substitutions.js.map +0 -1
- package/dist/service/cloudformation/resource/cfn/stepfunctions/sim-cfn-step-functions-resource-deleter.d.ts.map +0 -1
- package/dist/service/cloudformation/resource/cfn/stepfunctions/sim-cfn-step-functions-resource-deleter.js.map +0 -1
- package/dist/service/cloudformation/resource/cfn/stepfunctions/sim-cfn-step-functions-resource-error.d.ts.map +0 -1
- package/dist/service/cloudformation/resource/cfn/stepfunctions/sim-cfn-step-functions-resource-error.js.map +0 -1
- package/dist/service/cloudformation/resource/cfn/stepfunctions/sim-cfn-step-functions-resource-types.d.ts.map +0 -1
- package/dist/service/cloudformation/resource/cfn/stepfunctions/sim-cfn-step-functions-resource-types.js.map +0 -1
- package/dist/service/cloudformation/resource/cfn/stepfunctions/sim-step-functions-cfn-resource-factory.d.ts.map +0 -1
- package/dist/service/cloudformation/resource/cfn/stepfunctions/sim-step-functions-cfn-resource-factory.js.map +0 -1
- /package/dist/service/{cloudformation/resource/cfn/stepfunctions → stepfunctions/cfn}/sim-cfn-step-functions-resource-error.d.ts +0 -0
- /package/dist/service/{cloudformation/resource/cfn/stepfunctions → stepfunctions/cfn}/sim-cfn-step-functions-resource-types.d.ts +0 -0
- /package/dist/service/{cloudformation/resource/cfn/stepfunctions → stepfunctions/cfn}/sim-cfn-step-functions-resource-types.js +0 -0
- /package/dist/service/{cloudformation/resource/cfn/stepfunctions → stepfunctions/cfn/state-machine}/sim-cfn-state-machine-name.d.ts +0 -0
- /package/dist/service/{cloudformation/resource/cfn/stepfunctions → stepfunctions/cfn/state-machine}/sim-cfn-state-machine-property-names.d.ts +0 -0
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { simStatesEffectiveInput } from "../data/sim-states-data-flow.js";
|
|
2
|
+
import { SimStatesFanOut } from "./sim-states-fan-out.js";
|
|
3
|
+
import { simStatesFanOutOutcome } from "./sim-states-fan-out-outcome.js";
|
|
4
|
+
/**
|
|
5
|
+
* A `Parallel` state, which runs each of its branches on the same input.
|
|
6
|
+
*
|
|
7
|
+
* Every branch is given the state's effective input, so `InputPath` and
|
|
8
|
+
* `Parameters` are applied once rather than per branch. The result is an array
|
|
9
|
+
* of what each branch produced, in the order the branches were written, and
|
|
10
|
+
* `ResultSelector`, `ResultPath` and `OutputPath` then apply to that array.
|
|
11
|
+
*
|
|
12
|
+
* All the branches run at once. Nothing bounds how many of them are going,
|
|
13
|
+
* which is what Amazon States Language says of a `Parallel` state.
|
|
14
|
+
*/
|
|
15
|
+
export async function runSimStatesParallel(state, input, context) {
|
|
16
|
+
const effective = simStatesEffectiveInput(input, state, context.contextObject);
|
|
17
|
+
return await new SimStatesFanOut({
|
|
18
|
+
context,
|
|
19
|
+
kind: "branch",
|
|
20
|
+
limit: Infinity,
|
|
21
|
+
children: state.Branches.map((definition, index) => ({
|
|
22
|
+
index,
|
|
23
|
+
definition,
|
|
24
|
+
input: effective,
|
|
25
|
+
contextObject: context.contextObject,
|
|
26
|
+
})),
|
|
27
|
+
names: (index) => `Branch ${String(index + 1)} of the Parallel state ${context.stateName}`,
|
|
28
|
+
answers: (outputs) => simStatesFanOutOutcome(state, input, outputs, context.contextObject),
|
|
29
|
+
}).run();
|
|
30
|
+
}
|
|
31
|
+
//# sourceMappingURL=sim-states-run-parallel.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sim-states-run-parallel.js","sourceRoot":"","sources":["../../../../src/service/stepfunctions/execution/sim-states-run-parallel.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,uBAAuB,EAAE,MAAM,iCAAiC,CAAC;AAE1E,OAAO,EAAE,eAAe,EAAE,MAAM,yBAAyB,CAAC;AAC1D,OAAO,EAAE,sBAAsB,EAAE,MAAM,iCAAiC,CAAC;AAMzE;;;;;;;;;;GAUG;AACH,MAAM,CAAC,KAAK,UAAU,oBAAoB,CACxC,KAA6B,EAC7B,KAAgB,EAChB,OAA8B;IAE9B,MAAM,SAAS,GAAG,uBAAuB,CACvC,KAAK,EACL,KAAK,EACL,OAAO,CAAC,aAAa,CACtB,CAAC;IAEF,OAAO,MAAM,IAAI,eAAe,CAAC;QAC/B,OAAO;QACP,IAAI,EAAE,QAAQ;QACd,KAAK,EAAE,QAAQ;QACf,QAAQ,EAAE,KAAK,CAAC,QAAQ,CAAC,GAAG,CAAC,CAAC,UAAU,EAAE,KAAK,EAAE,EAAE,CAAC,CAAC;YACnD,KAAK;YACL,UAAU;YACV,KAAK,EAAE,SAAS;YAChB,aAAa,EAAE,OAAO,CAAC,aAAa;SACrC,CAAC,CAAC;QACH,KAAK,EAAE,CAAC,KAAK,EAAE,EAAE,CACf,UAAU,MAAM,CAAC,KAAK,GAAG,CAAC,CAAC,0BAA0B,OAAO,CAAC,SAAS,EAAE;QAC1E,OAAO,EAAE,CAAC,OAAO,EAAE,EAAE,CACnB,sBAAsB,CAAC,KAAK,EAAE,KAAK,EAAE,OAAO,EAAE,OAAO,CAAC,aAAa,CAAC;KACvE,CAAC,CAAC,GAAG,EAAE,CAAC;AACX,CAAC"}
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import type { JSONValue } from "../../../util/type-guard/json.js";
|
|
2
|
+
import type { SimStatesChildRun } from "./sim-states-child-run.js";
|
|
3
|
+
/**
|
|
4
|
+
* What a walk over a set of states records as it goes.
|
|
5
|
+
*
|
|
6
|
+
* An execution is one of these, and so is a `Parallel` state's branch. The
|
|
7
|
+
* interpreter walks either without knowing which it has, so a branch gets the
|
|
8
|
+
* same `Wait` states, the same retries and the same clock as the execution
|
|
9
|
+
* holding it.
|
|
10
|
+
*/
|
|
11
|
+
export interface SimStatesRunRecord {
|
|
12
|
+
/**
|
|
13
|
+
* What the walk starts at its first state with.
|
|
14
|
+
*/
|
|
15
|
+
readonly input: JSONValue;
|
|
16
|
+
/**
|
|
17
|
+
* Whether the walk is over, so nothing more of it should run.
|
|
18
|
+
*
|
|
19
|
+
* A branch a sibling's failure abandoned reads as stopped while its states
|
|
20
|
+
* are still scheduled on the clock, which is what stops them.
|
|
21
|
+
*/
|
|
22
|
+
readonly stopped: boolean;
|
|
23
|
+
/**
|
|
24
|
+
* Record that the walk has entered a state.
|
|
25
|
+
*/
|
|
26
|
+
enter(stateName: string): void;
|
|
27
|
+
/**
|
|
28
|
+
* Record that the walk ran a state, and what that run failed with.
|
|
29
|
+
*/
|
|
30
|
+
attempt(stateName: string, error: string | undefined): void;
|
|
31
|
+
/**
|
|
32
|
+
* End the walk with the value its last state produced.
|
|
33
|
+
*/
|
|
34
|
+
succeed(output: JSONValue, at: Date): void;
|
|
35
|
+
/**
|
|
36
|
+
* End the walk with the error that stopped it.
|
|
37
|
+
*/
|
|
38
|
+
fail(error: string, cause: string | undefined, at: Date): void;
|
|
39
|
+
/**
|
|
40
|
+
* Record a branch, which is reported on the execution however deeply
|
|
41
|
+
* nested the state running it is. A branch that is given up on gives up on
|
|
42
|
+
* the branches it was running, so the run is held rather than what it
|
|
43
|
+
* reports.
|
|
44
|
+
*/
|
|
45
|
+
child(child: SimStatesChildRun): void;
|
|
46
|
+
}
|
|
47
|
+
//# sourceMappingURL=sim-states-run-record.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sim-states-run-record.d.ts","sourceRoot":"","sources":["../../../../src/service/stepfunctions/execution/sim-states-run-record.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,kCAAkC,CAAC;AAClE,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,2BAA2B,CAAC;AAEnE;;;;;;;GAOG;AACH,MAAM,WAAW,kBAAkB;IACjC;;OAEG;IACH,QAAQ,CAAC,KAAK,EAAE,SAAS,CAAC;IAE1B;;;;;OAKG;IACH,QAAQ,CAAC,OAAO,EAAE,OAAO,CAAC;IAE1B;;OAEG;IACH,KAAK,CAAC,SAAS,EAAE,MAAM,GAAG,IAAI,CAAC;IAE/B;;OAEG;IACH,OAAO,CAAC,SAAS,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,GAAG,SAAS,GAAG,IAAI,CAAC;IAE5D;;OAEG;IACH,OAAO,CAAC,MAAM,EAAE,SAAS,EAAE,EAAE,EAAE,IAAI,GAAG,IAAI,CAAC;IAE3C;;OAEG;IACH,IAAI,CAAC,KAAK,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,GAAG,SAAS,EAAE,EAAE,EAAE,IAAI,GAAG,IAAI,CAAC;IAE/D;;;;;OAKG;IACH,KAAK,CAAC,KAAK,EAAE,iBAAiB,GAAG,IAAI,CAAC;CACvC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sim-states-run-record.js","sourceRoot":"","sources":["../../../../src/service/stepfunctions/execution/sim-states-run-record.ts"],"names":[],"mappings":""}
|
|
@@ -7,9 +7,10 @@ import type { SimStatesStateContext, SimStatesStateOutcome } from "./sim-states-
|
|
|
7
7
|
* A data-flow field raising is left to the caller, which reads the Amazon
|
|
8
8
|
* States Language error name off whatever came out.
|
|
9
9
|
*
|
|
10
|
-
* This waits on the work a `Task` state does
|
|
11
|
-
*
|
|
12
|
-
*
|
|
10
|
+
* This waits on the work a `Task` state does, and on the branches or
|
|
11
|
+
* iterations a `Parallel` or a `Map` state runs as far as they get. Every other state type answers without
|
|
12
|
+
* waiting for anything. A `Wait` state pauses the walk rather than blocking
|
|
13
|
+
* it, and answers by saying what it is waiting for.
|
|
13
14
|
*/
|
|
14
15
|
export declare function runSimStatesState(state: SimStatesState, input: JSONValue, context: SimStatesStateContext): Promise<SimStatesStateOutcome>;
|
|
15
16
|
//# sourceMappingURL=sim-states-run-state.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sim-states-run-state.d.ts","sourceRoot":"","sources":["../../../../src/service/stepfunctions/execution/sim-states-run-state.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,kCAAkC,CAAC;AAKlE,OAAO,KAAK,EAGV,cAAc,EAEf,MAAM,mCAAmC,CAAC;
|
|
1
|
+
{"version":3,"file":"sim-states-run-state.d.ts","sourceRoot":"","sources":["../../../../src/service/stepfunctions/execution/sim-states-run-state.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,kCAAkC,CAAC;AAKlE,OAAO,KAAK,EAGV,cAAc,EAEf,MAAM,mCAAmC,CAAC;AAM3C,OAAO,KAAK,EACV,qBAAqB,EACrB,qBAAqB,EACtB,MAAM,+BAA+B,CAAC;AAOvC;;;;;;;;;;GAUG;AACH,wBAAsB,iBAAiB,CACrC,KAAK,EAAE,cAAc,EACrB,KAAK,EAAE,SAAS,EAChB,OAAO,EAAE,qBAAqB,GAC7B,OAAO,CAAC,qBAAqB,CAAC,CA8BhC"}
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
import { simStatesEffectiveInput, simStatesEffectiveOutput, } from "../data/sim-states-data-flow.js";
|
|
2
2
|
import { runSimStatesChoice } from "./sim-states-run-choice.js";
|
|
3
|
+
import { runSimStatesMap } from "./sim-states-run-map.js";
|
|
4
|
+
import { runSimStatesParallel } from "./sim-states-run-parallel.js";
|
|
3
5
|
import { runSimStatesTask } from "./sim-states-run-task.js";
|
|
4
6
|
import { runSimStatesWait } from "./sim-states-run-wait.js";
|
|
5
7
|
/**
|
|
@@ -12,9 +14,10 @@ const unnamedFailError = "States.Unknown";
|
|
|
12
14
|
* A data-flow field raising is left to the caller, which reads the Amazon
|
|
13
15
|
* States Language error name off whatever came out.
|
|
14
16
|
*
|
|
15
|
-
* This waits on the work a `Task` state does
|
|
16
|
-
*
|
|
17
|
-
*
|
|
17
|
+
* This waits on the work a `Task` state does, and on the branches or
|
|
18
|
+
* iterations a `Parallel` or a `Map` state runs as far as they get. Every other state type answers without
|
|
19
|
+
* waiting for anything. A `Wait` state pauses the walk rather than blocking
|
|
20
|
+
* it, and answers by saying what it is waiting for.
|
|
18
21
|
*/
|
|
19
22
|
export async function runSimStatesState(state, input, context) {
|
|
20
23
|
if (state.Type === "Task") {
|
|
@@ -24,7 +27,7 @@ export async function runSimStatesState(state, input, context) {
|
|
|
24
27
|
return runFail(state);
|
|
25
28
|
}
|
|
26
29
|
if (state.Type === "Succeed") {
|
|
27
|
-
return runSucceed(state, input);
|
|
30
|
+
return runSucceed(state, input, context);
|
|
28
31
|
}
|
|
29
32
|
if (state.Type === "Choice") {
|
|
30
33
|
return runSimStatesChoice(state, input, context);
|
|
@@ -32,15 +35,21 @@ export async function runSimStatesState(state, input, context) {
|
|
|
32
35
|
if (state.Type === "Wait") {
|
|
33
36
|
return runSimStatesWait(state, input, context);
|
|
34
37
|
}
|
|
35
|
-
|
|
38
|
+
if (state.Type === "Parallel") {
|
|
39
|
+
return await runSimStatesParallel(state, input, context);
|
|
40
|
+
}
|
|
41
|
+
if (state.Type === "Map") {
|
|
42
|
+
return await runSimStatesMap(state, input, context);
|
|
43
|
+
}
|
|
44
|
+
return runPass(state, input, context);
|
|
36
45
|
}
|
|
37
46
|
/**
|
|
38
47
|
* A `Pass` state, whose result is its `Result` or its effective input.
|
|
39
48
|
*/
|
|
40
|
-
function runPass(state, input) {
|
|
41
|
-
const effective = simStatesEffectiveInput(input, state);
|
|
49
|
+
function runPass(state, input, context) {
|
|
50
|
+
const effective = simStatesEffectiveInput(input, state, context.contextObject);
|
|
42
51
|
const result = state.Result === undefined ? effective : state.Result;
|
|
43
|
-
const output = simStatesEffectiveOutput(input, result, state);
|
|
52
|
+
const output = simStatesEffectiveOutput(input, result, state, context.contextObject);
|
|
44
53
|
return state.Next === undefined
|
|
45
54
|
? { kind: "succeed", output }
|
|
46
55
|
: { kind: "next", output, next: state.Next };
|
|
@@ -48,11 +57,11 @@ function runPass(state, input) {
|
|
|
48
57
|
/**
|
|
49
58
|
* A `Succeed` state, which ends the execution with what reaches it.
|
|
50
59
|
*/
|
|
51
|
-
function runSucceed(state, input) {
|
|
52
|
-
const effective = simStatesEffectiveInput(input, state);
|
|
60
|
+
function runSucceed(state, input, context) {
|
|
61
|
+
const effective = simStatesEffectiveInput(input, state, context.contextObject);
|
|
53
62
|
return {
|
|
54
63
|
kind: "succeed",
|
|
55
|
-
output: simStatesEffectiveOutput(effective, effective, state),
|
|
64
|
+
output: simStatesEffectiveOutput(effective, effective, state, context.contextObject),
|
|
56
65
|
};
|
|
57
66
|
}
|
|
58
67
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sim-states-run-state.js","sourceRoot":"","sources":["../../../../src/service/stepfunctions/execution/sim-states-run-state.ts"],"names":[],"mappings":"AACA,OAAO,EACL,uBAAuB,EACvB,wBAAwB,GACzB,MAAM,iCAAiC,CAAC;AAOzC,OAAO,EAAE,kBAAkB,EAAE,MAAM,4BAA4B,CAAC;AAChE,OAAO,EAAE,gBAAgB,EAAE,MAAM,0BAA0B,CAAC;AAC5D,OAAO,EAAE,gBAAgB,EAAE,MAAM,0BAA0B,CAAC;AAM5D;;GAEG;AACH,MAAM,gBAAgB,GAAG,gBAAgB,CAAC;AAE1C
|
|
1
|
+
{"version":3,"file":"sim-states-run-state.js","sourceRoot":"","sources":["../../../../src/service/stepfunctions/execution/sim-states-run-state.ts"],"names":[],"mappings":"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"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sim-states-run-task.d.ts","sourceRoot":"","sources":["../../../../src/service/stepfunctions/execution/sim-states-run-task.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,kCAAkC,CAAC;AAKlE,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,mCAAmC,CAAC;AAC5E,OAAO,KAAK,EACV,qBAAqB,EACrB,qBAAqB,EACtB,MAAM,+BAA+B,CAAC;AAEvC;;;;;;;;GAQG;AACH,wBAAsB,gBAAgB,CACpC,KAAK,EAAE,kBAAkB,EACzB,KAAK,EAAE,SAAS,EAChB,OAAO,EAAE,qBAAqB,GAC7B,OAAO,CAAC,qBAAqB,CAAC,
|
|
1
|
+
{"version":3,"file":"sim-states-run-task.d.ts","sourceRoot":"","sources":["../../../../src/service/stepfunctions/execution/sim-states-run-task.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,kCAAkC,CAAC;AAKlE,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,mCAAmC,CAAC;AAC5E,OAAO,KAAK,EACV,qBAAqB,EACrB,qBAAqB,EACtB,MAAM,+BAA+B,CAAC;AAEvC;;;;;;;;GAQG;AACH,wBAAsB,gBAAgB,CACpC,KAAK,EAAE,kBAAkB,EACzB,KAAK,EAAE,SAAS,EAChB,OAAO,EAAE,qBAAqB,GAC7B,OAAO,CAAC,qBAAqB,CAAC,CAkBhC"}
|
|
@@ -12,10 +12,10 @@ export async function runSimStatesTask(state, input, context) {
|
|
|
12
12
|
const result = await context.tasks.invoke({
|
|
13
13
|
stateName: context.stateName,
|
|
14
14
|
target: state.target,
|
|
15
|
-
payload: simStatesEffectiveInput(input, state),
|
|
15
|
+
payload: simStatesEffectiveInput(input, state, context.contextObject),
|
|
16
16
|
roleArn: context.roleArn,
|
|
17
17
|
});
|
|
18
|
-
const output = simStatesEffectiveOutput(input, result, state);
|
|
18
|
+
const output = simStatesEffectiveOutput(input, result, state, context.contextObject);
|
|
19
19
|
return state.Next === undefined
|
|
20
20
|
? { kind: "succeed", output }
|
|
21
21
|
: { kind: "next", output, next: state.Next };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sim-states-run-task.js","sourceRoot":"","sources":["../../../../src/service/stepfunctions/execution/sim-states-run-task.ts"],"names":[],"mappings":"AACA,OAAO,EACL,uBAAuB,EACvB,wBAAwB,GACzB,MAAM,iCAAiC,CAAC;AAOzC;;;;;;;;GAQG;AACH,MAAM,CAAC,KAAK,UAAU,gBAAgB,CACpC,KAAyB,EACzB,KAAgB,EAChB,OAA8B;IAE9B,MAAM,MAAM,GAAG,MAAM,OAAO,CAAC,KAAK,CAAC,MAAM,CAAC;QACxC,SAAS,EAAE,OAAO,CAAC,SAAS;QAC5B,MAAM,EAAE,KAAK,CAAC,MAAM;QACpB,OAAO,EAAE,uBAAuB,CAAC,KAAK,EAAE,KAAK,CAAC;
|
|
1
|
+
{"version":3,"file":"sim-states-run-task.js","sourceRoot":"","sources":["../../../../src/service/stepfunctions/execution/sim-states-run-task.ts"],"names":[],"mappings":"AACA,OAAO,EACL,uBAAuB,EACvB,wBAAwB,GACzB,MAAM,iCAAiC,CAAC;AAOzC;;;;;;;;GAQG;AACH,MAAM,CAAC,KAAK,UAAU,gBAAgB,CACpC,KAAyB,EACzB,KAAgB,EAChB,OAA8B;IAE9B,MAAM,MAAM,GAAG,MAAM,OAAO,CAAC,KAAK,CAAC,MAAM,CAAC;QACxC,SAAS,EAAE,OAAO,CAAC,SAAS;QAC5B,MAAM,EAAE,KAAK,CAAC,MAAM;QACpB,OAAO,EAAE,uBAAuB,CAAC,KAAK,EAAE,KAAK,EAAE,OAAO,CAAC,aAAa,CAAC;QACrE,OAAO,EAAE,OAAO,CAAC,OAAO;KACzB,CAAC,CAAC;IAEH,MAAM,MAAM,GAAG,wBAAwB,CACrC,KAAK,EACL,MAAM,EACN,KAAK,EACL,OAAO,CAAC,aAAa,CACtB,CAAC;IAEF,OAAO,KAAK,CAAC,IAAI,KAAK,SAAS;QAC7B,CAAC,CAAC,EAAE,IAAI,EAAE,SAAS,EAAE,MAAM,EAAE;QAC7B,CAAC,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,MAAM,EAAE,IAAI,EAAE,KAAK,CAAC,IAAI,EAAE,CAAC;AACjD,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sim-states-run-wait.d.ts","sourceRoot":"","sources":["../../../../src/service/stepfunctions/execution/sim-states-run-wait.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,kCAAkC,CAAC;AAKlE,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,mCAAmC,CAAC;AAE5E,OAAO,KAAK,EAEV,qBAAqB,EACrB,qBAAqB,EACtB,MAAM,+BAA+B,CAAC;AAEvC;;;;;GAKG;AACH,wBAAgB,gBAAgB,CAC9B,KAAK,EAAE,kBAAkB,EACzB,KAAK,EAAE,SAAS,EAChB,OAAO,EAAE,qBAAqB,GAC7B,qBAAqB,
|
|
1
|
+
{"version":3,"file":"sim-states-run-wait.d.ts","sourceRoot":"","sources":["../../../../src/service/stepfunctions/execution/sim-states-run-wait.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,kCAAkC,CAAC;AAKlE,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,mCAAmC,CAAC;AAE5E,OAAO,KAAK,EAEV,qBAAqB,EACrB,qBAAqB,EACtB,MAAM,+BAA+B,CAAC;AAEvC;;;;;GAKG;AACH,wBAAgB,gBAAgB,CAC9B,KAAK,EAAE,kBAAkB,EACzB,KAAK,EAAE,SAAS,EAChB,OAAO,EAAE,qBAAqB,GAC7B,qBAAqB,CAsBvB"}
|
|
@@ -7,8 +7,8 @@ import { simStatesWaitDue } from "../wait/sim-states-wait-due.js";
|
|
|
7
7
|
* is over is its own input.
|
|
8
8
|
*/
|
|
9
9
|
export function runSimStatesWait(state, input, context) {
|
|
10
|
-
const effective = simStatesEffectiveInput(input, state);
|
|
11
|
-
const output = simStatesEffectiveOutput(effective, effective, state);
|
|
10
|
+
const effective = simStatesEffectiveInput(input, state, context.contextObject);
|
|
11
|
+
const output = simStatesEffectiveOutput(effective, effective, state, context.contextObject);
|
|
12
12
|
const resume = state.Next === undefined
|
|
13
13
|
? { kind: "succeed", output }
|
|
14
14
|
: { kind: "next", output, next: state.Next };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sim-states-run-wait.js","sourceRoot":"","sources":["../../../../src/service/stepfunctions/execution/sim-states-run-wait.ts"],"names":[],"mappings":"AACA,OAAO,EACL,uBAAuB,EACvB,wBAAwB,GACzB,MAAM,iCAAiC,CAAC;AAEzC,OAAO,EAAE,gBAAgB,EAAE,MAAM,gCAAgC,CAAC;AAOlE;;;;;GAKG;AACH,MAAM,UAAU,gBAAgB,CAC9B,KAAyB,EACzB,KAAgB,EAChB,OAA8B;IAE9B,MAAM,SAAS,GAAG,uBAAuB,
|
|
1
|
+
{"version":3,"file":"sim-states-run-wait.js","sourceRoot":"","sources":["../../../../src/service/stepfunctions/execution/sim-states-run-wait.ts"],"names":[],"mappings":"AACA,OAAO,EACL,uBAAuB,EACvB,wBAAwB,GACzB,MAAM,iCAAiC,CAAC;AAEzC,OAAO,EAAE,gBAAgB,EAAE,MAAM,gCAAgC,CAAC;AAOlE;;;;;GAKG;AACH,MAAM,UAAU,gBAAgB,CAC9B,KAAyB,EACzB,KAAgB,EAChB,OAA8B;IAE9B,MAAM,SAAS,GAAG,uBAAuB,CACvC,KAAK,EACL,KAAK,EACL,OAAO,CAAC,aAAa,CACtB,CAAC;IACF,MAAM,MAAM,GAAG,wBAAwB,CACrC,SAAS,EACT,SAAS,EACT,KAAK,EACL,OAAO,CAAC,aAAa,CACtB,CAAC;IACF,MAAM,MAAM,GACV,KAAK,CAAC,IAAI,KAAK,SAAS;QACtB,CAAC,CAAC,EAAE,IAAI,EAAE,SAAS,EAAE,MAAM,EAAE;QAC7B,CAAC,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,MAAM,EAAE,IAAI,EAAE,KAAK,CAAC,IAAI,EAAE,CAAC;IAEjD,OAAO;QACL,IAAI,EAAE,MAAM;QACZ,KAAK,EAAE,gBAAgB,CAAC,KAAK,EAAE,SAAS,EAAE,OAAO,CAAC,GAAG,CAAC;QACtD,MAAM;KACP,CAAC;AACJ,CAAC"}
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import type { BackgroundScheduler } from "../../../util/background/background.js";
|
|
2
|
-
import type {
|
|
2
|
+
import type { SimStatesRunRecord } from "./sim-states-run-record.js";
|
|
3
3
|
import type { SimStatesNextOutcome, SimStatesSettledOutcome } from "./sim-states-state-outcome.js";
|
|
4
4
|
interface SimStatesSettlementProperties {
|
|
5
|
-
readonly
|
|
5
|
+
readonly record: SimStatesRunRecord;
|
|
6
6
|
readonly background: BackgroundScheduler;
|
|
7
7
|
}
|
|
8
8
|
/**
|
|
9
|
-
* Records on one
|
|
9
|
+
* Records on one walk whatever its states leave it as.
|
|
10
10
|
*
|
|
11
11
|
* The interpreter walks the states and this holds what the walk did, which
|
|
12
12
|
* keeps the recording in one place for the walk and for a `Wait` state
|
|
@@ -15,6 +15,10 @@ interface SimStatesSettlementProperties {
|
|
|
15
15
|
export declare class SimStatesSettlement {
|
|
16
16
|
#private;
|
|
17
17
|
constructor(properties: SimStatesSettlementProperties);
|
|
18
|
+
/**
|
|
19
|
+
* Whether the walk is over, so nothing waiting on the clock should run.
|
|
20
|
+
*/
|
|
21
|
+
get stopped(): boolean;
|
|
18
22
|
/**
|
|
19
23
|
* Record what a state's outcome ended the execution with.
|
|
20
24
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sim-states-settlement.d.ts","sourceRoot":"","sources":["../../../../src/service/stepfunctions/execution/sim-states-settlement.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,wCAAwC,CAAC;AAClF,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"sim-states-settlement.d.ts","sourceRoot":"","sources":["../../../../src/service/stepfunctions/execution/sim-states-settlement.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,wCAAwC,CAAC;AAClF,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,4BAA4B,CAAC;AACrE,OAAO,KAAK,EACV,oBAAoB,EACpB,uBAAuB,EACxB,MAAM,+BAA+B,CAAC;AAEvC,UAAU,6BAA6B;IACrC,QAAQ,CAAC,MAAM,EAAE,kBAAkB,CAAC;IACpC,QAAQ,CAAC,UAAU,EAAE,mBAAmB,CAAC;CAC1C;AAED;;;;;;GAMG;AACH,qBAAa,mBAAmB;;IAI9B,YAAY,UAAU,EAAE,6BAA6B,EAGpD;IAED;;OAEG;IACH,IAAI,OAAO,IAAI,OAAO,CAErB;IAED;;;;;OAKG;IACH,MAAM,CAAC,OAAO,EAAE,uBAAuB,GAAG,oBAAoB,GAAG,SAAS,CAazE;CACF"}
|
|
@@ -1,17 +1,23 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Records on one
|
|
2
|
+
* Records on one walk whatever its states leave it as.
|
|
3
3
|
*
|
|
4
4
|
* The interpreter walks the states and this holds what the walk did, which
|
|
5
5
|
* keeps the recording in one place for the walk and for a `Wait` state
|
|
6
6
|
* carrying on later.
|
|
7
7
|
*/
|
|
8
8
|
export class SimStatesSettlement {
|
|
9
|
-
#
|
|
9
|
+
#record;
|
|
10
10
|
#background;
|
|
11
11
|
constructor(properties) {
|
|
12
|
-
this.#
|
|
12
|
+
this.#record = properties.record;
|
|
13
13
|
this.#background = properties.background;
|
|
14
14
|
}
|
|
15
|
+
/**
|
|
16
|
+
* Whether the walk is over, so nothing waiting on the clock should run.
|
|
17
|
+
*/
|
|
18
|
+
get stopped() {
|
|
19
|
+
return this.#record.stopped;
|
|
20
|
+
}
|
|
15
21
|
/**
|
|
16
22
|
* Record what a state's outcome ended the execution with.
|
|
17
23
|
*
|
|
@@ -23,10 +29,10 @@ export class SimStatesSettlement {
|
|
|
23
29
|
return outcome;
|
|
24
30
|
}
|
|
25
31
|
if (outcome.kind === "succeed") {
|
|
26
|
-
this.#
|
|
32
|
+
this.#record.succeed(outcome.output, this.#background.now());
|
|
27
33
|
return undefined;
|
|
28
34
|
}
|
|
29
|
-
this.#
|
|
35
|
+
this.#record.fail(outcome.error, outcome.cause, this.#background.now());
|
|
30
36
|
return undefined;
|
|
31
37
|
}
|
|
32
38
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sim-states-settlement.js","sourceRoot":"","sources":["../../../../src/service/stepfunctions/execution/sim-states-settlement.ts"],"names":[],"mappings":"AAYA;;;;;;GAMG;AACH,MAAM,OAAO,mBAAmB;IACrB,
|
|
1
|
+
{"version":3,"file":"sim-states-settlement.js","sourceRoot":"","sources":["../../../../src/service/stepfunctions/execution/sim-states-settlement.ts"],"names":[],"mappings":"AAYA;;;;;;GAMG;AACH,MAAM,OAAO,mBAAmB;IACrB,OAAO,CAAqB;IAC5B,WAAW,CAAsB;IAE1C,YAAY,UAAyC;QACnD,IAAI,CAAC,OAAO,GAAG,UAAU,CAAC,MAAM,CAAC;QACjC,IAAI,CAAC,WAAW,GAAG,UAAU,CAAC,UAAU,CAAC;IAC3C,CAAC;IAED;;OAEG;IACH,IAAI,OAAO;QACT,OAAO,IAAI,CAAC,OAAO,CAAC,OAAO,CAAC;IAC9B,CAAC;IAED;;;;;OAKG;IACH,MAAM,CAAC,OAAgC;QACrC,IAAI,OAAO,CAAC,IAAI,KAAK,MAAM,EAAE,CAAC;YAC5B,OAAO,OAAO,CAAC;QACjB,CAAC;QAED,IAAI,OAAO,CAAC,IAAI,KAAK,SAAS,EAAE,CAAC;YAC/B,IAAI,CAAC,OAAO,CAAC,OAAO,CAAC,OAAO,CAAC,MAAM,EAAE,IAAI,CAAC,WAAW,CAAC,GAAG,EAAE,CAAC,CAAC;YAC7D,OAAO,SAAS,CAAC;QACnB,CAAC;QAED,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,OAAO,CAAC,KAAK,EAAE,OAAO,CAAC,KAAK,EAAE,IAAI,CAAC,WAAW,CAAC,GAAG,EAAE,CAAC,CAAC;QAExE,OAAO,SAAS,CAAC;IACnB,CAAC;CACF"}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import type { BackgroundScheduler } from "../../../util/background/background.js";
|
|
2
|
+
import type { SimStatesSettlement } from "./sim-states-settlement.js";
|
|
3
|
+
import type { SimStatesStateRunner } from "./sim-states-state-runner.js";
|
|
4
|
+
import type { SimStatesNextOutcome } from "./sim-states-state-outcome.js";
|
|
5
|
+
import type { SimStatesStateEntry, SimStatesWalkOn } from "./sim-states-walk.js";
|
|
6
|
+
interface SimStatesStateAttemptsProperties {
|
|
7
|
+
readonly runner: SimStatesStateRunner;
|
|
8
|
+
readonly settlement: SimStatesSettlement;
|
|
9
|
+
readonly background: BackgroundScheduler;
|
|
10
|
+
/**
|
|
11
|
+
* How the walk carries on from a state the clock held up.
|
|
12
|
+
*/
|
|
13
|
+
readonly walkOn: SimStatesWalkOn;
|
|
14
|
+
}
|
|
15
|
+
/**
|
|
16
|
+
* Runs the attempts one state takes, and puts the ones it waits for on the
|
|
17
|
+
* clock.
|
|
18
|
+
*
|
|
19
|
+
* A `Wait` state and a `Retry` both hold the walk `RUNNING` until an instant,
|
|
20
|
+
* and both carry on from where they left off once the clock gets there. A
|
|
21
|
+
* `Parallel` state waits for its branches instead of for an instant, and
|
|
22
|
+
* carries on the same way. That is one job, and it is this one. The
|
|
23
|
+
* interpreter is left walking states.
|
|
24
|
+
*/
|
|
25
|
+
export declare class SimStatesStateAttempts {
|
|
26
|
+
#private;
|
|
27
|
+
constructor(properties: SimStatesStateAttemptsProperties);
|
|
28
|
+
/**
|
|
29
|
+
* Run one state until it moves the walk on, ends it, or leaves it waiting.
|
|
30
|
+
*
|
|
31
|
+
* Answers with the outcome the walk carries on from, and with nothing where
|
|
32
|
+
* the walk has ended or is waiting.
|
|
33
|
+
*/
|
|
34
|
+
run(entry: SimStatesStateEntry): Promise<SimStatesNextOutcome | undefined>;
|
|
35
|
+
}
|
|
36
|
+
export {};
|
|
37
|
+
//# sourceMappingURL=sim-states-state-attempts.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sim-states-state-attempts.d.ts","sourceRoot":"","sources":["../../../../src/service/stepfunctions/execution/sim-states-state-attempts.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,wCAAwC,CAAC;AAKlF,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,4BAA4B,CAAC;AACtE,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,8BAA8B,CAAC;AACzE,OAAO,KAAK,EACV,oBAAoB,EAIrB,MAAM,+BAA+B,CAAC;AACvC,OAAO,KAAK,EACV,mBAAmB,EACnB,eAAe,EAChB,MAAM,sBAAsB,CAAC;AAO9B,UAAU,gCAAgC;IACxC,QAAQ,CAAC,MAAM,EAAE,oBAAoB,CAAC;IACtC,QAAQ,CAAC,UAAU,EAAE,mBAAmB,CAAC;IACzC,QAAQ,CAAC,UAAU,EAAE,mBAAmB,CAAC;IAEzC;;OAEG;IACH,QAAQ,CAAC,MAAM,EAAE,eAAe,CAAC;CAClC;AAED;;;;;;;;;GASG;AACH,qBAAa,sBAAsB;;IAMjC,YAAY,UAAU,EAAE,gCAAgC,EAKvD;IAED;;;;;OAKG;IACG,GAAG,CACP,KAAK,EAAE,mBAAmB,GACzB,OAAO,CAAC,oBAAoB,GAAG,SAAS,CAAC,CAK3C;CA6GF"}
|
|
@@ -0,0 +1,112 @@
|
|
|
1
|
+
import { simStatesFirstAttempt, } from "../retry/sim-states-attempt-state.js";
|
|
2
|
+
/**
|
|
3
|
+
* Runs the attempts one state takes, and puts the ones it waits for on the
|
|
4
|
+
* clock.
|
|
5
|
+
*
|
|
6
|
+
* A `Wait` state and a `Retry` both hold the walk `RUNNING` until an instant,
|
|
7
|
+
* and both carry on from where they left off once the clock gets there. A
|
|
8
|
+
* `Parallel` state waits for its branches instead of for an instant, and
|
|
9
|
+
* carries on the same way. That is one job, and it is this one. The
|
|
10
|
+
* interpreter is left walking states.
|
|
11
|
+
*/
|
|
12
|
+
export class SimStatesStateAttempts {
|
|
13
|
+
#settlement;
|
|
14
|
+
#background;
|
|
15
|
+
#runner;
|
|
16
|
+
#walkOn;
|
|
17
|
+
constructor(properties) {
|
|
18
|
+
this.#runner = properties.runner;
|
|
19
|
+
this.#settlement = properties.settlement;
|
|
20
|
+
this.#background = properties.background;
|
|
21
|
+
this.#walkOn = properties.walkOn;
|
|
22
|
+
}
|
|
23
|
+
/**
|
|
24
|
+
* Run one state until it moves the walk on, ends it, or leaves it waiting.
|
|
25
|
+
*
|
|
26
|
+
* Answers with the outcome the walk carries on from, and with nothing where
|
|
27
|
+
* the walk has ended or is waiting.
|
|
28
|
+
*/
|
|
29
|
+
async run(entry) {
|
|
30
|
+
return await this.#from(entry, simStatesFirstAttempt(entry.state, this.#background.now()));
|
|
31
|
+
}
|
|
32
|
+
/**
|
|
33
|
+
* Make one attempt at a state, and see what the walk does about it.
|
|
34
|
+
*/
|
|
35
|
+
async #from(entry, attempt) {
|
|
36
|
+
const outcome = await this.#runner.run(entry, attempt, async (settled) => {
|
|
37
|
+
await this.#resumed(entry, attempt, settled);
|
|
38
|
+
});
|
|
39
|
+
return await this.#took(entry, outcome);
|
|
40
|
+
}
|
|
41
|
+
/**
|
|
42
|
+
* What the walk does about one attempt's outcome.
|
|
43
|
+
*
|
|
44
|
+
* An attempt due at an instant the clock has already reached holds nothing
|
|
45
|
+
* up, so it is made from here rather than through the scheduler.
|
|
46
|
+
*/
|
|
47
|
+
async #took(entry, outcome) {
|
|
48
|
+
if (outcome.kind === "pending") {
|
|
49
|
+
return undefined;
|
|
50
|
+
}
|
|
51
|
+
if (outcome.kind === "wait") {
|
|
52
|
+
return this.#waited(outcome);
|
|
53
|
+
}
|
|
54
|
+
if (outcome.kind !== "retry") {
|
|
55
|
+
return this.#settlement.settle(outcome);
|
|
56
|
+
}
|
|
57
|
+
if (this.#reached(outcome.until)) {
|
|
58
|
+
return await this.#from(entry, outcome.attempt);
|
|
59
|
+
}
|
|
60
|
+
this.#pause(outcome.until, async () => this.#from(entry, outcome.attempt));
|
|
61
|
+
return undefined;
|
|
62
|
+
}
|
|
63
|
+
/**
|
|
64
|
+
* Carry the walk on from a state that suspended, once it has finished.
|
|
65
|
+
*
|
|
66
|
+
* The walk stopped where the state was, so this takes it from there rather
|
|
67
|
+
* than answering something that is no longer waiting for one.
|
|
68
|
+
*/
|
|
69
|
+
async #resumed(entry, attempt, settled) {
|
|
70
|
+
if (this.#settlement.stopped) {
|
|
71
|
+
return;
|
|
72
|
+
}
|
|
73
|
+
const outcome = this.#runner.answered(entry, attempt, settled);
|
|
74
|
+
await this.#walkOn(await this.#took(entry, outcome));
|
|
75
|
+
}
|
|
76
|
+
/**
|
|
77
|
+
* Hold the walk until the clock reaches what a `Wait` state waits for.
|
|
78
|
+
*
|
|
79
|
+
* An instant already reached holds nothing up, and the walk carries straight
|
|
80
|
+
* on. Under a frozen clock anything later waits for as long as the test
|
|
81
|
+
* leaves it.
|
|
82
|
+
*/
|
|
83
|
+
#waited(outcome) {
|
|
84
|
+
if (this.#reached(outcome.until)) {
|
|
85
|
+
return this.#settlement.settle(outcome.resume);
|
|
86
|
+
}
|
|
87
|
+
this.#pause(outcome.until, () => Promise.resolve(this.#settlement.settle(outcome.resume)));
|
|
88
|
+
return undefined;
|
|
89
|
+
}
|
|
90
|
+
/**
|
|
91
|
+
* Put the rest of one state's work on the clock, and the walk after it.
|
|
92
|
+
*
|
|
93
|
+
* One advance covering a whole backoff runs every attempt in it, because
|
|
94
|
+
* work this schedules is itself due by the time the advance reaches it. A
|
|
95
|
+
* walk that was abandoned while it waited runs none of it.
|
|
96
|
+
*/
|
|
97
|
+
#pause(until, rest) {
|
|
98
|
+
this.#background.scheduleAt(until, async () => {
|
|
99
|
+
if (this.#settlement.stopped) {
|
|
100
|
+
return;
|
|
101
|
+
}
|
|
102
|
+
await this.#walkOn(await rest());
|
|
103
|
+
});
|
|
104
|
+
}
|
|
105
|
+
/**
|
|
106
|
+
* Whether simulated time has got to an instant.
|
|
107
|
+
*/
|
|
108
|
+
#reached(instant) {
|
|
109
|
+
return instant.getTime() <= this.#background.now().getTime();
|
|
110
|
+
}
|
|
111
|
+
}
|
|
112
|
+
//# sourceMappingURL=sim-states-state-attempts.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sim-states-state-attempts.js","sourceRoot":"","sources":["../../../../src/service/stepfunctions/execution/sim-states-state-attempts.ts"],"names":[],"mappings":"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"}
|
|
@@ -1,5 +1,8 @@
|
|
|
1
|
-
import type { JSONValue } from "../../../util/type-guard/json.js";
|
|
1
|
+
import type { JSONObject, JSONValue } from "../../../util/type-guard/json.js";
|
|
2
|
+
import type { SimStatesAttemptState } from "../retry/sim-states-attempt-state.js";
|
|
2
3
|
import type { SimStatesTaskTargets } from "../task/sim-states-task-invocation.js";
|
|
4
|
+
import type { SimStatesChildWalks } from "./sim-states-child-walk.js";
|
|
5
|
+
import type { SimStatesRunRecord } from "./sim-states-run-record.js";
|
|
3
6
|
/**
|
|
4
7
|
* What a state leaves the execution to do once it has run.
|
|
5
8
|
*/
|
|
@@ -12,28 +15,54 @@ export type SimStatesMoveOnOutcome = SimStatesNextOutcome | {
|
|
|
12
15
|
readonly kind: "succeed";
|
|
13
16
|
readonly output: JSONValue;
|
|
14
17
|
};
|
|
15
|
-
|
|
16
|
-
* What running one state did to the execution.
|
|
17
|
-
*
|
|
18
|
-
* A `wait` outcome carries what the execution does once the clock reaches the
|
|
19
|
-
* instant, which is either the next state or the end of the execution.
|
|
20
|
-
*/
|
|
21
|
-
export type SimStatesSettledOutcome = SimStatesMoveOnOutcome | {
|
|
18
|
+
export interface SimStatesFailOutcome {
|
|
22
19
|
readonly kind: "fail";
|
|
23
20
|
readonly error: string;
|
|
24
21
|
readonly cause: string | undefined;
|
|
25
|
-
}
|
|
26
|
-
|
|
22
|
+
}
|
|
23
|
+
/**
|
|
24
|
+
* What running one state did to the execution, where it is over and done with.
|
|
25
|
+
*/
|
|
26
|
+
export type SimStatesSettledOutcome = SimStatesMoveOnOutcome | SimStatesFailOutcome;
|
|
27
|
+
/**
|
|
28
|
+
* A state that failed and is being tried again at an instant on the clock.
|
|
29
|
+
*
|
|
30
|
+
* The attempt state goes with it, so the attempt the clock releases knows what
|
|
31
|
+
* has already been tried.
|
|
32
|
+
*/
|
|
33
|
+
export interface SimStatesRetryOutcome {
|
|
34
|
+
readonly kind: "retry";
|
|
35
|
+
readonly until: Date;
|
|
36
|
+
readonly attempt: SimStatesAttemptState;
|
|
37
|
+
}
|
|
38
|
+
/**
|
|
39
|
+
* A `Wait` state, holding the execution until an instant on the clock.
|
|
40
|
+
*/
|
|
41
|
+
export interface SimStatesWaitOutcome {
|
|
27
42
|
readonly kind: "wait";
|
|
28
43
|
readonly until: Date;
|
|
29
44
|
readonly resume: SimStatesMoveOnOutcome;
|
|
30
|
-
}
|
|
45
|
+
}
|
|
31
46
|
/**
|
|
32
|
-
*
|
|
47
|
+
* A state that has suspended, and will say what it did later.
|
|
48
|
+
*
|
|
49
|
+
* A `Parallel` state whose branches are waiting on the clock is neither done
|
|
50
|
+
* nor waiting for an instant of its own. The walk stops here, and the state
|
|
51
|
+
* carries on through the `resume` it was given once its branches have
|
|
52
|
+
* finished.
|
|
33
53
|
*/
|
|
34
|
-
export interface
|
|
35
|
-
readonly
|
|
36
|
-
|
|
54
|
+
export interface SimStatesPendingOutcome {
|
|
55
|
+
readonly kind: "pending";
|
|
56
|
+
}
|
|
57
|
+
export type SimStatesStateOutcome = SimStatesSettledOutcome | SimStatesRetryOutcome | SimStatesWaitOutcome | SimStatesPendingOutcome;
|
|
58
|
+
/**
|
|
59
|
+
* How a state that suspended says what it finally did.
|
|
60
|
+
*/
|
|
61
|
+
export type SimStatesResume = (outcome: SimStatesSettledOutcome) => Promise<void>;
|
|
62
|
+
/**
|
|
63
|
+
* What every state of one walk is given, whichever state it is.
|
|
64
|
+
*/
|
|
65
|
+
export interface SimStatesWalkContext {
|
|
37
66
|
/**
|
|
38
67
|
* Where a `Task` state does its work.
|
|
39
68
|
*/
|
|
@@ -42,5 +71,30 @@ export interface SimStatesStateContext {
|
|
|
42
71
|
* The state machine's execution role, which a task assumes.
|
|
43
72
|
*/
|
|
44
73
|
readonly roleArn: string;
|
|
74
|
+
/**
|
|
75
|
+
* What the walk is recording itself on, which a `Parallel` state's branch
|
|
76
|
+
* hangs off.
|
|
77
|
+
*/
|
|
78
|
+
readonly record: SimStatesRunRecord;
|
|
79
|
+
/**
|
|
80
|
+
* How a state that runs states of its own gets a walk over them.
|
|
81
|
+
*/
|
|
82
|
+
readonly walkChild: SimStatesChildWalks;
|
|
83
|
+
/**
|
|
84
|
+
* What `$$` reads. The state running adds its own `State` to this, and a
|
|
85
|
+
* `Map` iteration is given one carrying the item it runs for.
|
|
86
|
+
*/
|
|
87
|
+
readonly contextObject: JSONObject;
|
|
88
|
+
}
|
|
89
|
+
/**
|
|
90
|
+
* What a state knows about the execution it is running in.
|
|
91
|
+
*/
|
|
92
|
+
export interface SimStatesStateContext extends SimStatesWalkContext {
|
|
93
|
+
readonly stateName: string;
|
|
94
|
+
readonly now: Date;
|
|
95
|
+
/**
|
|
96
|
+
* How a state that suspends says what it finally did.
|
|
97
|
+
*/
|
|
98
|
+
readonly resume: SimStatesResume;
|
|
45
99
|
}
|
|
46
100
|
//# sourceMappingURL=sim-states-state-outcome.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sim-states-state-outcome.d.ts","sourceRoot":"","sources":["../../../../src/service/stepfunctions/execution/sim-states-state-outcome.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,kCAAkC,CAAC;
|
|
1
|
+
{"version":3,"file":"sim-states-state-outcome.d.ts","sourceRoot":"","sources":["../../../../src/service/stepfunctions/execution/sim-states-state-outcome.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,SAAS,EAAE,MAAM,kCAAkC,CAAC;AAC9E,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,sCAAsC,CAAC;AAClF,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,uCAAuC,CAAC;AAClF,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,4BAA4B,CAAC;AACtE,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,4BAA4B,CAAC;AAErE;;GAEG;AACH,MAAM,WAAW,oBAAoB;IACnC,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IACtB,QAAQ,CAAC,MAAM,EAAE,SAAS,CAAC;IAC3B,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;CACvB;AAED,MAAM,MAAM,sBAAsB,GAC9B,oBAAoB,GACpB;IAAE,QAAQ,CAAC,IAAI,EAAE,SAAS,CAAC;IAAC,QAAQ,CAAC,MAAM,EAAE,SAAS,CAAA;CAAE,CAAC;AAE7D,MAAM,WAAW,oBAAoB;IACnC,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IACtB,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC;IACvB,QAAQ,CAAC,KAAK,EAAE,MAAM,GAAG,SAAS,CAAC;CACpC;AAED;;GAEG;AACH,MAAM,MAAM,uBAAuB,GAC/B,sBAAsB,GACtB,oBAAoB,CAAC;AAEzB;;;;;GAKG;AACH,MAAM,WAAW,qBAAqB;IACpC,QAAQ,CAAC,IAAI,EAAE,OAAO,CAAC;IACvB,QAAQ,CAAC,KAAK,EAAE,IAAI,CAAC;IACrB,QAAQ,CAAC,OAAO,EAAE,qBAAqB,CAAC;CACzC;AAED;;GAEG;AACH,MAAM,WAAW,oBAAoB;IACnC,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IACtB,QAAQ,CAAC,KAAK,EAAE,IAAI,CAAC;IACrB,QAAQ,CAAC,MAAM,EAAE,sBAAsB,CAAC;CACzC;AAED;;;;;;;GAOG;AACH,MAAM,WAAW,uBAAuB;IACtC,QAAQ,CAAC,IAAI,EAAE,SAAS,CAAC;CAC1B;AAED,MAAM,MAAM,qBAAqB,GAC7B,uBAAuB,GACvB,qBAAqB,GACrB,oBAAoB,GACpB,uBAAuB,CAAC;AAE5B;;GAEG;AACH,MAAM,MAAM,eAAe,GAAG,CAC5B,OAAO,EAAE,uBAAuB,KAC7B,OAAO,CAAC,IAAI,CAAC,CAAC;AAEnB;;GAEG;AACH,MAAM,WAAW,oBAAoB;IACnC;;OAEG;IACH,QAAQ,CAAC,KAAK,EAAE,oBAAoB,CAAC;IAErC;;OAEG;IACH,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAC;IAEzB;;;OAGG;IACH,QAAQ,CAAC,MAAM,EAAE,kBAAkB,CAAC;IAEpC;;OAEG;IACH,QAAQ,CAAC,SAAS,EAAE,mBAAmB,CAAC;IAExC;;;OAGG;IACH,QAAQ,CAAC,aAAa,EAAE,UAAU,CAAC;CACpC;AAED;;GAEG;AACH,MAAM,WAAW,qBAAsB,SAAQ,oBAAoB;IACjE,QAAQ,CAAC,SAAS,EAAE,MAAM,CAAC;IAC3B,QAAQ,CAAC,GAAG,EAAE,IAAI,CAAC;IAEnB;;OAEG;IACH,QAAQ,CAAC,MAAM,EAAE,eAAe,CAAC;CAClC"}
|