@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
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import type { JSONValue } from "../../../util/type-guard/json.js";
|
|
1
2
|
import type { SimStatesDefinition } from "./sim-states-definition.js";
|
|
2
3
|
/**
|
|
3
4
|
* Read a state machine definition from the JSON string it was written as.
|
|
@@ -7,4 +8,11 @@ import type { SimStatesDefinition } from "./sim-states-definition.js";
|
|
|
7
8
|
* wrong, and running wrong gives a passing test that lies.
|
|
8
9
|
*/
|
|
9
10
|
export declare function parseSimStatesDefinition(definition: string): SimStatesDefinition;
|
|
11
|
+
/**
|
|
12
|
+
* Read a definition from the JSON object it was written as.
|
|
13
|
+
*
|
|
14
|
+
* A `Parallel` state's branch is a definition of its own, written inside the
|
|
15
|
+
* one holding it, so a branch is read through here as well.
|
|
16
|
+
*/
|
|
17
|
+
export declare function parseSimStatesDefinitionDocument(document: Record<string, JSONValue>): SimStatesDefinition;
|
|
10
18
|
//# sourceMappingURL=sim-states-definition-parse.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sim-states-definition-parse.d.ts","sourceRoot":"","sources":["../../../../src/service/stepfunctions/definition/sim-states-definition-parse.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"sim-states-definition-parse.d.ts","sourceRoot":"","sources":["../../../../src/service/stepfunctions/definition/sim-states-definition-parse.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,kCAAkC,CAAC;AAGlE,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,4BAA4B,CAAC;AAKtE;;;;;;GAMG;AACH,wBAAgB,wBAAwB,CACtC,UAAU,EAAE,MAAM,GACjB,mBAAmB,CAErB;AAED;;;;;GAKG;AACH,wBAAgB,gCAAgC,CAC9C,QAAQ,EAAE,MAAM,CAAC,MAAM,EAAE,SAAS,CAAC,GAClC,mBAAmB,CAyBrB"}
|
|
@@ -10,7 +10,15 @@ import { checkSimStatesTransitions } from "./sim-states-transitions.js";
|
|
|
10
10
|
* wrong, and running wrong gives a passing test that lies.
|
|
11
11
|
*/
|
|
12
12
|
export function parseSimStatesDefinition(definition) {
|
|
13
|
-
|
|
13
|
+
return parseSimStatesDefinitionDocument(readDocument(definition));
|
|
14
|
+
}
|
|
15
|
+
/**
|
|
16
|
+
* Read a definition from the JSON object it was written as.
|
|
17
|
+
*
|
|
18
|
+
* A `Parallel` state's branch is a definition of its own, written inside the
|
|
19
|
+
* one holding it, so a branch is read through here as well.
|
|
20
|
+
*/
|
|
21
|
+
export function parseSimStatesDefinitionDocument(document) {
|
|
14
22
|
const states = readStates(document);
|
|
15
23
|
const startAt = document["StartAt"];
|
|
16
24
|
if (typeof startAt !== "string") {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sim-states-definition-parse.js","sourceRoot":"","sources":["../../../../src/service/stepfunctions/definition/sim-states-definition-parse.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,QAAQ,EAAE,MAAM,oCAAoC,CAAC;AAC9D,OAAO,EAAE,0BAA0B,EAAE,MAAM,sCAAsC,CAAC;AAGlF,OAAO,EAAE,mBAAmB,EAAE,MAAM,6BAA6B,CAAC;AAClE,OAAO,EAAE,yBAAyB,EAAE,MAAM,6BAA6B,CAAC;AAExE;;;;;;GAMG;AACH,MAAM,UAAU,wBAAwB,CACtC,UAAkB;IAElB,
|
|
1
|
+
{"version":3,"file":"sim-states-definition-parse.js","sourceRoot":"","sources":["../../../../src/service/stepfunctions/definition/sim-states-definition-parse.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,QAAQ,EAAE,MAAM,oCAAoC,CAAC;AAC9D,OAAO,EAAE,0BAA0B,EAAE,MAAM,sCAAsC,CAAC;AAGlF,OAAO,EAAE,mBAAmB,EAAE,MAAM,6BAA6B,CAAC;AAClE,OAAO,EAAE,yBAAyB,EAAE,MAAM,6BAA6B,CAAC;AAExE;;;;;;GAMG;AACH,MAAM,UAAU,wBAAwB,CACtC,UAAkB;IAElB,OAAO,gCAAgC,CAAC,YAAY,CAAC,UAAU,CAAC,CAAC,CAAC;AACpE,CAAC;AAED;;;;;GAKG;AACH,MAAM,UAAU,gCAAgC,CAC9C,QAAmC;IAEnC,MAAM,MAAM,GAAG,UAAU,CAAC,QAAQ,CAAC,CAAC;IACpC,MAAM,OAAO,GAAG,QAAQ,CAAC,SAAS,CAAC,CAAC;IAEpC,IAAI,OAAO,OAAO,KAAK,QAAQ,EAAE,CAAC;QAChC,MAAM,IAAI,0BAA0B,CAClC,2EAA2E,CAC5E,CAAC;IACJ,CAAC;IAED,IAAI,CAAC,MAAM,CAAC,GAAG,CAAC,OAAO,CAAC,EAAE,CAAC;QACzB,MAAM,IAAI,0BAA0B,CAClC,iBAAiB,OAAO,oDAAoD,CAC7E,CAAC;IACJ,CAAC;IAED,yBAAyB,CAAC,MAAM,CAAC,CAAC;IAElC,MAAM,OAAO,GAAG,QAAQ,CAAC,SAAS,CAAC,CAAC;IAEpC,OAAO;QACL,GAAG,CAAC,OAAO,OAAO,KAAK,QAAQ,IAAI,EAAE,OAAO,EAAE,OAAO,EAAE,CAAC;QACxD,OAAO,EAAE,OAAO;QAChB,MAAM,EAAE,MAAM;KACf,CAAC;AACJ,CAAC;AAED;;GAEG;AACH,SAAS,YAAY,CAAC,UAAkB;IACtC,IAAI,QAAmB,CAAC;IAExB,IAAI,CAAC;QACH,QAAQ,GAAG,IAAI,CAAC,KAAK,CAAC,UAAU,CAAc,CAAC;IACjD,CAAC;IAAC,MAAM,CAAC;QACP,MAAM,IAAI,0BAA0B,CAClC,2CAA2C,CAC5C,CAAC;IACJ,CAAC;IAED,IAAI,CAAC,QAAQ,CAAC,QAAQ,CAAC,EAAE,CAAC;QACxB,MAAM,IAAI,0BAA0B,CAClC,8CAA8C,CAC/C,CAAC;IACJ,CAAC;IAED,OAAO,QAAQ,CAAC;AAClB,CAAC;AAED;;;GAGG;AACH,SAAS,UAAU,CACjB,QAAmC;IAEnC,MAAM,QAAQ,GAAG,QAAQ,CAAC,QAAQ,CAAC,CAAC;IAEpC,IAAI,CAAC,QAAQ,CAAC,QAAQ,CAAC,IAAI,MAAM,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC,MAAM,KAAK,CAAC,EAAE,CAAC;QAC9D,MAAM,IAAI,0BAA0B,CAClC,8EAA8E,CAC/E,CAAC;IACJ,CAAC;IAED,MAAM,MAAM,GAAG,IAAI,GAAG,EAA0B,CAAC;IAEjD,KAAK,MAAM,CAAC,IAAI,EAAE,KAAK,CAAC,IAAI,MAAM,CAAC,OAAO,CAAC,QAAQ,CAAC,EAAE,CAAC;QACrD,MAAM,CAAC,GAAG,CAAC,IAAI,EAAE,mBAAmB,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC,CAAC;IACrD,CAAC;IAED,OAAO,MAAM,CAAC;AAChB,CAAC"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import type { JSONValue } from "../../../util/type-guard/json.js";
|
|
2
|
+
/**
|
|
3
|
+
* Read what builds each iteration's input.
|
|
4
|
+
*
|
|
5
|
+
* `Parameters` is what `ItemSelector` used to be called, and a `Map` state
|
|
6
|
+
* carrying both says the same thing twice.
|
|
7
|
+
*/
|
|
8
|
+
export declare function readSimStatesItemSelector(named: string, state: Record<string, JSONValue>, parameters: JSONValue | undefined): {
|
|
9
|
+
ItemSelector?: JSONValue;
|
|
10
|
+
};
|
|
11
|
+
/**
|
|
12
|
+
* Read where the items come from, which is the whole input by default.
|
|
13
|
+
*/
|
|
14
|
+
export declare function readSimStatesItemsPath(named: string, state: Record<string, JSONValue>): {
|
|
15
|
+
ItemsPath?: string;
|
|
16
|
+
};
|
|
17
|
+
/**
|
|
18
|
+
* Read how many iterations may run at once.
|
|
19
|
+
*/
|
|
20
|
+
export declare function readSimStatesMaxConcurrency(named: string, state: Record<string, JSONValue>): {
|
|
21
|
+
MaxConcurrency?: number;
|
|
22
|
+
};
|
|
23
|
+
//# sourceMappingURL=sim-states-map-fields.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sim-states-map-fields.d.ts","sourceRoot":"","sources":["../../../../src/service/stepfunctions/definition/sim-states-map-fields.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,kCAAkC,CAAC;AAKlE;;;;;GAKG;AACH,wBAAgB,yBAAyB,CACvC,KAAK,EAAE,MAAM,EACb,KAAK,EAAE,MAAM,CAAC,MAAM,EAAE,SAAS,CAAC,EAChC,UAAU,EAAE,SAAS,GAAG,SAAS,GAChC;IAAE,YAAY,CAAC,EAAE,SAAS,CAAA;CAAE,CA4B9B;AAED;;GAEG;AACH,wBAAgB,sBAAsB,CACpC,KAAK,EAAE,MAAM,EACb,KAAK,EAAE,MAAM,CAAC,MAAM,EAAE,SAAS,CAAC,GAC/B;IAAE,SAAS,CAAC,EAAE,MAAM,CAAA;CAAE,CAgBxB;AAED;;GAEG;AACH,wBAAgB,2BAA2B,CACzC,KAAK,EAAE,MAAM,EACb,KAAK,EAAE,MAAM,CAAC,MAAM,EAAE,SAAS,CAAC,GAC/B;IAAE,cAAc,CAAC,EAAE,MAAM,CAAA;CAAE,CAmB7B"}
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
import { isRecord } from "../../../util/type-guard/record.js";
|
|
2
|
+
import { parseSimStatesReadPath } from "../data/sim-states-context-path.js";
|
|
3
|
+
import { SimStatesInvalidDefinition } from "../error/sim-step-functions.error.js";
|
|
4
|
+
/**
|
|
5
|
+
* Read what builds each iteration's input.
|
|
6
|
+
*
|
|
7
|
+
* `Parameters` is what `ItemSelector` used to be called, and a `Map` state
|
|
8
|
+
* carrying both says the same thing twice.
|
|
9
|
+
*/
|
|
10
|
+
export function readSimStatesItemSelector(named, state, parameters) {
|
|
11
|
+
const selector = state["ItemSelector"];
|
|
12
|
+
if (selector !== undefined && parameters !== undefined) {
|
|
13
|
+
throw new SimStatesInvalidDefinition(`The ${named} carries both ItemSelector and Parameters. Parameters is ` +
|
|
14
|
+
"the older spelling of ItemSelector, and a Map state carries one of " +
|
|
15
|
+
"them.");
|
|
16
|
+
}
|
|
17
|
+
// A field written as null is a Payload Template that is not an object, and
|
|
18
|
+
// is refused below. Falling back to the other spelling would take it for a
|
|
19
|
+
// Map state that carries neither.
|
|
20
|
+
const written = selector === undefined ? parameters : selector;
|
|
21
|
+
if (written === undefined) {
|
|
22
|
+
return {};
|
|
23
|
+
}
|
|
24
|
+
if (!isRecord(written)) {
|
|
25
|
+
throw new SimStatesInvalidDefinition(`The ${named} has an ItemSelector that is not an object. It is a ` +
|
|
26
|
+
"Payload Template, which builds what each iteration is given.");
|
|
27
|
+
}
|
|
28
|
+
return { ItemSelector: written };
|
|
29
|
+
}
|
|
30
|
+
/**
|
|
31
|
+
* Read where the items come from, which is the whole input by default.
|
|
32
|
+
*/
|
|
33
|
+
export function readSimStatesItemsPath(named, state) {
|
|
34
|
+
const written = state["ItemsPath"];
|
|
35
|
+
if (written === undefined) {
|
|
36
|
+
return {};
|
|
37
|
+
}
|
|
38
|
+
if (typeof written !== "string") {
|
|
39
|
+
throw new SimStatesInvalidDefinition(`The ${named} has an ItemsPath that is not a Reference Path.`);
|
|
40
|
+
}
|
|
41
|
+
parseSimStatesReadPath(written);
|
|
42
|
+
return { ItemsPath: written };
|
|
43
|
+
}
|
|
44
|
+
/**
|
|
45
|
+
* Read how many iterations may run at once.
|
|
46
|
+
*/
|
|
47
|
+
export function readSimStatesMaxConcurrency(named, state) {
|
|
48
|
+
const written = state["MaxConcurrency"];
|
|
49
|
+
if (written === undefined) {
|
|
50
|
+
return {};
|
|
51
|
+
}
|
|
52
|
+
if (typeof written !== "number" ||
|
|
53
|
+
!Number.isSafeInteger(written) ||
|
|
54
|
+
written < 0) {
|
|
55
|
+
throw new SimStatesInvalidDefinition(`The ${named} has a MaxConcurrency of ${JSON.stringify(written)}. It ` +
|
|
56
|
+
"is a whole number from 0, where 0 runs every iteration at once.");
|
|
57
|
+
}
|
|
58
|
+
return { MaxConcurrency: written };
|
|
59
|
+
}
|
|
60
|
+
//# sourceMappingURL=sim-states-map-fields.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sim-states-map-fields.js","sourceRoot":"","sources":["../../../../src/service/stepfunctions/definition/sim-states-map-fields.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,QAAQ,EAAE,MAAM,oCAAoC,CAAC;AAC9D,OAAO,EAAE,sBAAsB,EAAE,MAAM,oCAAoC,CAAC;AAC5E,OAAO,EAAE,0BAA0B,EAAE,MAAM,sCAAsC,CAAC;AAElF;;;;;GAKG;AACH,MAAM,UAAU,yBAAyB,CACvC,KAAa,EACb,KAAgC,EAChC,UAAiC;IAEjC,MAAM,QAAQ,GAAG,KAAK,CAAC,cAAc,CAAC,CAAC;IAEvC,IAAI,QAAQ,KAAK,SAAS,IAAI,UAAU,KAAK,SAAS,EAAE,CAAC;QACvD,MAAM,IAAI,0BAA0B,CAClC,OAAO,KAAK,2DAA2D;YACrE,qEAAqE;YACrE,OAAO,CACV,CAAC;IACJ,CAAC;IAED,2EAA2E;IAC3E,2EAA2E;IAC3E,kCAAkC;IAClC,MAAM,OAAO,GAAG,QAAQ,KAAK,SAAS,CAAC,CAAC,CAAC,UAAU,CAAC,CAAC,CAAC,QAAQ,CAAC;IAE/D,IAAI,OAAO,KAAK,SAAS,EAAE,CAAC;QAC1B,OAAO,EAAE,CAAC;IACZ,CAAC;IAED,IAAI,CAAC,QAAQ,CAAC,OAAO,CAAC,EAAE,CAAC;QACvB,MAAM,IAAI,0BAA0B,CAClC,OAAO,KAAK,sDAAsD;YAChE,8DAA8D,CACjE,CAAC;IACJ,CAAC;IAED,OAAO,EAAE,YAAY,EAAE,OAAO,EAAE,CAAC;AACnC,CAAC;AAED;;GAEG;AACH,MAAM,UAAU,sBAAsB,CACpC,KAAa,EACb,KAAgC;IAEhC,MAAM,OAAO,GAAG,KAAK,CAAC,WAAW,CAAC,CAAC;IAEnC,IAAI,OAAO,KAAK,SAAS,EAAE,CAAC;QAC1B,OAAO,EAAE,CAAC;IACZ,CAAC;IAED,IAAI,OAAO,OAAO,KAAK,QAAQ,EAAE,CAAC;QAChC,MAAM,IAAI,0BAA0B,CAClC,OAAO,KAAK,iDAAiD,CAC9D,CAAC;IACJ,CAAC;IAED,sBAAsB,CAAC,OAAO,CAAC,CAAC;IAEhC,OAAO,EAAE,SAAS,EAAE,OAAO,EAAE,CAAC;AAChC,CAAC;AAED;;GAEG;AACH,MAAM,UAAU,2BAA2B,CACzC,KAAa,EACb,KAAgC;IAEhC,MAAM,OAAO,GAAG,KAAK,CAAC,gBAAgB,CAAC,CAAC;IAExC,IAAI,OAAO,KAAK,SAAS,EAAE,CAAC;QAC1B,OAAO,EAAE,CAAC;IACZ,CAAC;IAED,IACE,OAAO,OAAO,KAAK,QAAQ;QAC3B,CAAC,MAAM,CAAC,aAAa,CAAC,OAAO,CAAC;QAC9B,OAAO,GAAG,CAAC,EACX,CAAC;QACD,MAAM,IAAI,0BAA0B,CAClC,OAAO,KAAK,4BAA4B,IAAI,CAAC,SAAS,CAAC,OAAO,CAAC,OAAO;YACpE,iEAAiE,CACpE,CAAC;IACJ,CAAC;IAED,OAAO,EAAE,cAAc,EAAE,OAAO,EAAE,CAAC;AACrC,CAAC"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import type { JSONValue } from "../../../util/type-guard/json.js";
|
|
2
|
+
import type { SimStatesMapState } from "./sim-states-state.js";
|
|
3
|
+
/**
|
|
4
|
+
* Read a `Map` state, whose item processor is read as the state is.
|
|
5
|
+
*
|
|
6
|
+
* The processor is a state machine of its own, so the states inside it are
|
|
7
|
+
* read the same way the states around them are. `Parameters` is the older
|
|
8
|
+
* spelling of `ItemSelector` and arrives as one, which leaves a `Map` state
|
|
9
|
+
* with no data-flow `Parameters` of its own.
|
|
10
|
+
*/
|
|
11
|
+
export declare function readSimStatesMapState(name: string, state: Record<string, JSONValue>): SimStatesMapState;
|
|
12
|
+
//# sourceMappingURL=sim-states-map-parse.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sim-states-map-parse.d.ts","sourceRoot":"","sources":["../../../../src/service/stepfunctions/definition/sim-states-map-parse.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,kCAAkC,CAAC;AASlE,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,uBAAuB,CAAC;AAsB/D;;;;;;;GAOG;AACH,wBAAgB,qBAAqB,CACnC,IAAI,EAAE,MAAM,EACZ,KAAK,EAAE,MAAM,CAAC,MAAM,EAAE,SAAS,CAAC,GAC/B,iBAAiB,CAenB"}
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
import { SimStatesUnsimulatedInput } from "../error/sim-step-functions.error.js";
|
|
2
|
+
import { parseSimStatesErrorHandling } from "../retry/sim-states-error-handling.js";
|
|
3
|
+
import { readSimStatesItemSelector, readSimStatesItemsPath, readSimStatesMaxConcurrency, } from "./sim-states-map-fields.js";
|
|
4
|
+
import { readSimStatesMapProcessor } from "./sim-states-map-processor.js";
|
|
5
|
+
/**
|
|
6
|
+
* The fields of a `Map` state this simulator has no implementation for.
|
|
7
|
+
*
|
|
8
|
+
* All of them belong to a Distributed Map, which reads its items from S3, runs
|
|
9
|
+
* a child execution per batch and writes the results back. That is a second
|
|
10
|
+
* execution model rather than a field or two on this one.
|
|
11
|
+
*/
|
|
12
|
+
const mapFieldsUnsimulated = [
|
|
13
|
+
"ItemReader",
|
|
14
|
+
"ItemBatcher",
|
|
15
|
+
"ResultWriter",
|
|
16
|
+
"ToleratedFailureCount",
|
|
17
|
+
"ToleratedFailureCountPath",
|
|
18
|
+
"ToleratedFailurePercentage",
|
|
19
|
+
"ToleratedFailurePercentagePath",
|
|
20
|
+
"Label",
|
|
21
|
+
"MaxConcurrencyPath",
|
|
22
|
+
"Items",
|
|
23
|
+
];
|
|
24
|
+
/**
|
|
25
|
+
* Read a `Map` state, whose item processor is read as the state is.
|
|
26
|
+
*
|
|
27
|
+
* The processor is a state machine of its own, so the states inside it are
|
|
28
|
+
* read the same way the states around them are. `Parameters` is the older
|
|
29
|
+
* spelling of `ItemSelector` and arrives as one, which leaves a `Map` state
|
|
30
|
+
* with no data-flow `Parameters` of its own.
|
|
31
|
+
*/
|
|
32
|
+
export function readSimStatesMapState(name, state) {
|
|
33
|
+
const named = `Map state ${name}`;
|
|
34
|
+
checkUnsimulated(named, state);
|
|
35
|
+
const { Parameters, ...written } = state;
|
|
36
|
+
return {
|
|
37
|
+
...written,
|
|
38
|
+
ItemProcessor: readSimStatesMapProcessor(named, state),
|
|
39
|
+
...readSimStatesItemSelector(named, state, Parameters),
|
|
40
|
+
...readSimStatesItemsPath(named, state),
|
|
41
|
+
...readSimStatesMaxConcurrency(named, state),
|
|
42
|
+
...parseSimStatesErrorHandling(named, state),
|
|
43
|
+
};
|
|
44
|
+
}
|
|
45
|
+
/**
|
|
46
|
+
* Refuse the fields a Distributed Map carries.
|
|
47
|
+
*/
|
|
48
|
+
function checkUnsimulated(named, state) {
|
|
49
|
+
const present = mapFieldsUnsimulated.filter((field) => Object.hasOwn(state, field));
|
|
50
|
+
if (present.length > 0) {
|
|
51
|
+
throw new SimStatesUnsimulatedInput(`The ${named} carries ${present.join(", ")}, which this simulator does ` +
|
|
52
|
+
"not run. Those fields belong to a Distributed Map, which reads its " +
|
|
53
|
+
"items from S3 and runs a child execution per batch.");
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
//# sourceMappingURL=sim-states-map-parse.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sim-states-map-parse.js","sourceRoot":"","sources":["../../../../src/service/stepfunctions/definition/sim-states-map-parse.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,yBAAyB,EAAE,MAAM,sCAAsC,CAAC;AACjF,OAAO,EAAE,2BAA2B,EAAE,MAAM,uCAAuC,CAAC;AACpF,OAAO,EACL,yBAAyB,EACzB,sBAAsB,EACtB,2BAA2B,GAC5B,MAAM,4BAA4B,CAAC;AACpC,OAAO,EAAE,yBAAyB,EAAE,MAAM,+BAA+B,CAAC;AAG1E;;;;;;GAMG;AACH,MAAM,oBAAoB,GAAG;IAC3B,YAAY;IACZ,aAAa;IACb,cAAc;IACd,uBAAuB;IACvB,2BAA2B;IAC3B,4BAA4B;IAC5B,gCAAgC;IAChC,OAAO;IACP,oBAAoB;IACpB,OAAO;CACC,CAAC;AAEX;;;;;;;GAOG;AACH,MAAM,UAAU,qBAAqB,CACnC,IAAY,EACZ,KAAgC;IAEhC,MAAM,KAAK,GAAG,aAAa,IAAI,EAAE,CAAC;IAElC,gBAAgB,CAAC,KAAK,EAAE,KAAK,CAAC,CAAC;IAE/B,MAAM,EAAE,UAAU,EAAE,GAAG,OAAO,EAAE,GAAG,KAAK,CAAC;IAEzC,OAAO;QACL,GAAI,OAAwC;QAC5C,aAAa,EAAE,yBAAyB,CAAC,KAAK,EAAE,KAAK,CAAC;QACtD,GAAG,yBAAyB,CAAC,KAAK,EAAE,KAAK,EAAE,UAAU,CAAC;QACtD,GAAG,sBAAsB,CAAC,KAAK,EAAE,KAAK,CAAC;QACvC,GAAG,2BAA2B,CAAC,KAAK,EAAE,KAAK,CAAC;QAC5C,GAAG,2BAA2B,CAAC,KAAK,EAAE,KAAK,CAAC;KAC7C,CAAC;AACJ,CAAC;AAED;;GAEG;AACH,SAAS,gBAAgB,CACvB,KAAa,EACb,KAAgC;IAEhC,MAAM,OAAO,GAAG,oBAAoB,CAAC,MAAM,CAAC,CAAC,KAAK,EAAE,EAAE,CACpD,MAAM,CAAC,MAAM,CAAC,KAAK,EAAE,KAAK,CAAC,CAC5B,CAAC;IAEF,IAAI,OAAO,CAAC,MAAM,GAAG,CAAC,EAAE,CAAC;QACvB,MAAM,IAAI,yBAAyB,CACjC,OAAO,KAAK,YAAY,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC,8BAA8B;YACtE,qEAAqE;YACrE,qDAAqD,CACxD,CAAC;IACJ,CAAC;AACH,CAAC"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { JSONValue } from "../../../util/type-guard/json.js";
|
|
2
|
+
import type { SimStatesDefinition } from "./sim-states-definition.js";
|
|
3
|
+
/**
|
|
4
|
+
* Read the states one `Map` state runs per item.
|
|
5
|
+
*
|
|
6
|
+
* `Iterator` is what `ItemProcessor` used to be called, and CDK still emits it
|
|
7
|
+
* for a `Map` built with the deprecated `iterator()` call, so both are read.
|
|
8
|
+
* A state machine carrying both says the same thing twice.
|
|
9
|
+
*/
|
|
10
|
+
export declare function readSimStatesMapProcessor(named: string, state: Record<string, JSONValue>): SimStatesDefinition;
|
|
11
|
+
//# sourceMappingURL=sim-states-map-processor.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sim-states-map-processor.d.ts","sourceRoot":"","sources":["../../../../src/service/stepfunctions/definition/sim-states-map-processor.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,kCAAkC,CAAC;AAMlE,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,4BAA4B,CAAC;AAStE;;;;;;GAMG;AACH,wBAAgB,yBAAyB,CACvC,KAAK,EAAE,MAAM,EACb,KAAK,EAAE,MAAM,CAAC,MAAM,EAAE,SAAS,CAAC,GAC/B,mBAAmB,CAuBrB"}
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
import { isRecord } from "../../../util/type-guard/record.js";
|
|
2
|
+
import { SimStatesInvalidDefinition, SimStatesUnsimulatedInput, } from "../error/sim-step-functions.error.js";
|
|
3
|
+
import { parseSimStatesDefinitionDocument } from "./sim-states-definition-parse.js";
|
|
4
|
+
import { simStatesNestedRefusal } from "./sim-states-nested-refusal.js";
|
|
5
|
+
/**
|
|
6
|
+
* The execution model a `Map` state's processor runs under.
|
|
7
|
+
*/
|
|
8
|
+
const inlineMode = "INLINE";
|
|
9
|
+
/**
|
|
10
|
+
* Read the states one `Map` state runs per item.
|
|
11
|
+
*
|
|
12
|
+
* `Iterator` is what `ItemProcessor` used to be called, and CDK still emits it
|
|
13
|
+
* for a `Map` built with the deprecated `iterator()` call, so both are read.
|
|
14
|
+
* A state machine carrying both says the same thing twice.
|
|
15
|
+
*/
|
|
16
|
+
export function readSimStatesMapProcessor(named, state) {
|
|
17
|
+
const processor = state["ItemProcessor"];
|
|
18
|
+
const iterator = state["Iterator"];
|
|
19
|
+
if (processor !== undefined && iterator !== undefined) {
|
|
20
|
+
throw new SimStatesInvalidDefinition(`The ${named} carries both ItemProcessor and Iterator. Iterator is the ` +
|
|
21
|
+
"older spelling of ItemProcessor, and a Map state carries one of them.");
|
|
22
|
+
}
|
|
23
|
+
const written = processor ?? iterator;
|
|
24
|
+
if (!isRecord(written)) {
|
|
25
|
+
throw new SimStatesInvalidDefinition(`The ${named} needs an ItemProcessor holding the states it runs for ` +
|
|
26
|
+
"each item.");
|
|
27
|
+
}
|
|
28
|
+
checkProcessorConfig(named, written["ProcessorConfig"]);
|
|
29
|
+
return read(named, written);
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* Refuse a processor that runs as a Distributed Map.
|
|
33
|
+
*
|
|
34
|
+
* `ExecutionType` says what a Distributed Map's child executions run as, and
|
|
35
|
+
* an inline processor has none of those, so it is refused alongside the mode
|
|
36
|
+
* that gives it a meaning.
|
|
37
|
+
*/
|
|
38
|
+
function checkProcessorConfig(named, config) {
|
|
39
|
+
if (!isRecord(config)) {
|
|
40
|
+
return;
|
|
41
|
+
}
|
|
42
|
+
const mode = config["Mode"];
|
|
43
|
+
const distributed = mode !== undefined && mode !== inlineMode;
|
|
44
|
+
if (distributed || Object.hasOwn(config, "ExecutionType")) {
|
|
45
|
+
throw new SimStatesUnsimulatedInput(`The ${named} has a ProcessorConfig of ${JSON.stringify(config)}, ` +
|
|
46
|
+
`which this simulator does not run. It runs a Mode of ${inlineMode} ` +
|
|
47
|
+
"with no ExecutionType, where the iterations are states of the " +
|
|
48
|
+
"execution that reached the Map state.");
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
/**
|
|
52
|
+
* Read the processor's states, saying which state they belong to.
|
|
53
|
+
*/
|
|
54
|
+
function read(named, written) {
|
|
55
|
+
try {
|
|
56
|
+
return parseSimStatesDefinitionDocument(written);
|
|
57
|
+
}
|
|
58
|
+
catch (error) {
|
|
59
|
+
throw simStatesNestedRefusal(`The ItemProcessor of the ${named}`, error);
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
//# sourceMappingURL=sim-states-map-processor.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sim-states-map-processor.js","sourceRoot":"","sources":["../../../../src/service/stepfunctions/definition/sim-states-map-processor.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,QAAQ,EAAE,MAAM,oCAAoC,CAAC;AAC9D,OAAO,EACL,0BAA0B,EAC1B,yBAAyB,GAC1B,MAAM,sCAAsC,CAAC;AAE9C,OAAO,EAAE,gCAAgC,EAAE,MAAM,kCAAkC,CAAC;AACpF,OAAO,EAAE,sBAAsB,EAAE,MAAM,gCAAgC,CAAC;AAExE;;GAEG;AACH,MAAM,UAAU,GAAG,QAAQ,CAAC;AAE5B;;;;;;GAMG;AACH,MAAM,UAAU,yBAAyB,CACvC,KAAa,EACb,KAAgC;IAEhC,MAAM,SAAS,GAAG,KAAK,CAAC,eAAe,CAAC,CAAC;IACzC,MAAM,QAAQ,GAAG,KAAK,CAAC,UAAU,CAAC,CAAC;IAEnC,IAAI,SAAS,KAAK,SAAS,IAAI,QAAQ,KAAK,SAAS,EAAE,CAAC;QACtD,MAAM,IAAI,0BAA0B,CAClC,OAAO,KAAK,4DAA4D;YACtE,uEAAuE,CAC1E,CAAC;IACJ,CAAC;IAED,MAAM,OAAO,GAAG,SAAS,IAAI,QAAQ,CAAC;IAEtC,IAAI,CAAC,QAAQ,CAAC,OAAO,CAAC,EAAE,CAAC;QACvB,MAAM,IAAI,0BAA0B,CAClC,OAAO,KAAK,yDAAyD;YACnE,YAAY,CACf,CAAC;IACJ,CAAC;IAED,oBAAoB,CAAC,KAAK,EAAE,OAAO,CAAC,iBAAiB,CAAC,CAAC,CAAC;IAExD,OAAO,IAAI,CAAC,KAAK,EAAE,OAAO,CAAC,CAAC;AAC9B,CAAC;AAED;;;;;;GAMG;AACH,SAAS,oBAAoB,CAC3B,KAAa,EACb,MAA6B;IAE7B,IAAI,CAAC,QAAQ,CAAC,MAAM,CAAC,EAAE,CAAC;QACtB,OAAO;IACT,CAAC;IAED,MAAM,IAAI,GAAG,MAAM,CAAC,MAAM,CAAC,CAAC;IAC5B,MAAM,WAAW,GAAG,IAAI,KAAK,SAAS,IAAI,IAAI,KAAK,UAAU,CAAC;IAE9D,IAAI,WAAW,IAAI,MAAM,CAAC,MAAM,CAAC,MAAM,EAAE,eAAe,CAAC,EAAE,CAAC;QAC1D,MAAM,IAAI,yBAAyB,CACjC,OAAO,KAAK,6BAA6B,IAAI,CAAC,SAAS,CAAC,MAAM,CAAC,IAAI;YACjE,wDAAwD,UAAU,GAAG;YACrE,gEAAgE;YAChE,uCAAuC,CAC1C,CAAC;IACJ,CAAC;AACH,CAAC;AAED;;GAEG;AACH,SAAS,IAAI,CACX,KAAa,EACb,OAAkC;IAElC,IAAI,CAAC;QACH,OAAO,gCAAgC,CAAC,OAAO,CAAC,CAAC;IACnD,CAAC;IAAC,OAAO,KAAK,EAAE,CAAC;QACf,MAAM,sBAAsB,CAAC,4BAA4B,KAAK,EAAE,EAAE,KAAK,CAAC,CAAC;IAC3E,CAAC;AACH,CAAC"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The same refusal, saying which nested state machine raised it.
|
|
3
|
+
*
|
|
4
|
+
* A `Parallel` state's branch and a `Map` state's item processor are both
|
|
5
|
+
* state machines written inside another one, and the refusal a state inside
|
|
6
|
+
* one raises names that state alone. Two branches are free to use the same
|
|
7
|
+
* state name, and without the position the two refusals would read alike.
|
|
8
|
+
*
|
|
9
|
+
* A nested definition using an unsimulated construct keeps that name, since it
|
|
10
|
+
* is the one telling a reader that the definition is good and this simulator
|
|
11
|
+
* is behind. Everything else is a fault in the definition.
|
|
12
|
+
*/
|
|
13
|
+
export declare function simStatesNestedRefusal(where: string, error: unknown): unknown;
|
|
14
|
+
//# sourceMappingURL=sim-states-nested-refusal.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sim-states-nested-refusal.d.ts","sourceRoot":"","sources":["../../../../src/service/stepfunctions/definition/sim-states-nested-refusal.ts"],"names":[],"mappings":"AAMA;;;;;;;;;;;GAWG;AACH,wBAAgB,sBAAsB,CAAC,KAAK,EAAE,MAAM,EAAE,KAAK,EAAE,OAAO,GAAG,OAAO,CAU7E"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { SimStatesInvalidDefinition, SimStatesUnsimulatedInput, SimStepFunctionsError, } from "../error/sim-step-functions.error.js";
|
|
2
|
+
/**
|
|
3
|
+
* The same refusal, saying which nested state machine raised it.
|
|
4
|
+
*
|
|
5
|
+
* A `Parallel` state's branch and a `Map` state's item processor are both
|
|
6
|
+
* state machines written inside another one, and the refusal a state inside
|
|
7
|
+
* one raises names that state alone. Two branches are free to use the same
|
|
8
|
+
* state name, and without the position the two refusals would read alike.
|
|
9
|
+
*
|
|
10
|
+
* A nested definition using an unsimulated construct keeps that name, since it
|
|
11
|
+
* is the one telling a reader that the definition is good and this simulator
|
|
12
|
+
* is behind. Everything else is a fault in the definition.
|
|
13
|
+
*/
|
|
14
|
+
export function simStatesNestedRefusal(where, error) {
|
|
15
|
+
if (error instanceof SimStatesUnsimulatedInput) {
|
|
16
|
+
return new SimStatesUnsimulatedInput(`${where}: ${error.message}`);
|
|
17
|
+
}
|
|
18
|
+
if (error instanceof SimStepFunctionsError) {
|
|
19
|
+
return new SimStatesInvalidDefinition(`${where}: ${error.message}`);
|
|
20
|
+
}
|
|
21
|
+
return error;
|
|
22
|
+
}
|
|
23
|
+
//# sourceMappingURL=sim-states-nested-refusal.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sim-states-nested-refusal.js","sourceRoot":"","sources":["../../../../src/service/stepfunctions/definition/sim-states-nested-refusal.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,0BAA0B,EAC1B,yBAAyB,EACzB,qBAAqB,GACtB,MAAM,sCAAsC,CAAC;AAE9C;;;;;;;;;;;GAWG;AACH,MAAM,UAAU,sBAAsB,CAAC,KAAa,EAAE,KAAc;IAClE,IAAI,KAAK,YAAY,yBAAyB,EAAE,CAAC;QAC/C,OAAO,IAAI,yBAAyB,CAAC,GAAG,KAAK,KAAK,KAAK,CAAC,OAAO,EAAE,CAAC,CAAC;IACrE,CAAC;IAED,IAAI,KAAK,YAAY,qBAAqB,EAAE,CAAC;QAC3C,OAAO,IAAI,0BAA0B,CAAC,GAAG,KAAK,KAAK,KAAK,CAAC,OAAO,EAAE,CAAC,CAAC;IACtE,CAAC;IAED,OAAO,KAAK,CAAC;AACf,CAAC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { JSONValue } from "../../../util/type-guard/json.js";
|
|
2
|
+
import type { SimStatesParallelState } from "./sim-states-state.js";
|
|
3
|
+
/**
|
|
4
|
+
* Read a `Parallel` state, whose branches are read as the state is.
|
|
5
|
+
*
|
|
6
|
+
* A branch is a state machine of its own, so the states inside one are read
|
|
7
|
+
* the same way the states around it are.
|
|
8
|
+
*/
|
|
9
|
+
export declare function readSimStatesParallelState(name: string, state: Record<string, JSONValue>): SimStatesParallelState;
|
|
10
|
+
//# sourceMappingURL=sim-states-parallel-parse.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sim-states-parallel-parse.d.ts","sourceRoot":"","sources":["../../../../src/service/stepfunctions/definition/sim-states-parallel-parse.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,kCAAkC,CAAC;AAOlE,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,uBAAuB,CAAC;AAEpE;;;;;GAKG;AACH,wBAAgB,0BAA0B,CACxC,IAAI,EAAE,MAAM,EACZ,KAAK,EAAE,MAAM,CAAC,MAAM,EAAE,SAAS,CAAC,GAC/B,sBAAsB,CAQxB"}
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import { isRecord } from "../../../util/type-guard/record.js";
|
|
2
|
+
import { SimStatesInvalidDefinition } from "../error/sim-step-functions.error.js";
|
|
3
|
+
import { parseSimStatesErrorHandling } from "../retry/sim-states-error-handling.js";
|
|
4
|
+
import { parseSimStatesDefinitionDocument } from "./sim-states-definition-parse.js";
|
|
5
|
+
import { simStatesNestedRefusal } from "./sim-states-nested-refusal.js";
|
|
6
|
+
/**
|
|
7
|
+
* Read a `Parallel` state, whose branches are read as the state is.
|
|
8
|
+
*
|
|
9
|
+
* A branch is a state machine of its own, so the states inside one are read
|
|
10
|
+
* the same way the states around it are.
|
|
11
|
+
*/
|
|
12
|
+
export function readSimStatesParallelState(name, state) {
|
|
13
|
+
const named = `Parallel state ${name}`;
|
|
14
|
+
return {
|
|
15
|
+
...state,
|
|
16
|
+
Branches: parseSimStatesBranches(named, state),
|
|
17
|
+
...parseSimStatesErrorHandling(named, state),
|
|
18
|
+
};
|
|
19
|
+
}
|
|
20
|
+
/**
|
|
21
|
+
* Read a `Parallel` state's `Branches`.
|
|
22
|
+
*
|
|
23
|
+
* Each branch is a state machine of its own and is read as one, so a branch
|
|
24
|
+
* using something this simulator does not run is refused when the state
|
|
25
|
+
* machine is created rather than when an execution reaches the state.
|
|
26
|
+
*/
|
|
27
|
+
function parseSimStatesBranches(named, state) {
|
|
28
|
+
const declared = state["Branches"];
|
|
29
|
+
if (!Array.isArray(declared) || declared.length === 0) {
|
|
30
|
+
throw new SimStatesInvalidDefinition(`The ${named} needs a Branches array holding at least one branch.`);
|
|
31
|
+
}
|
|
32
|
+
return declared.map((branch, index) => readBranch(named, index, branch));
|
|
33
|
+
}
|
|
34
|
+
/**
|
|
35
|
+
* Read one branch, saying which branch it was where it cannot be read.
|
|
36
|
+
*/
|
|
37
|
+
function readBranch(named, index, branch) {
|
|
38
|
+
const where = `Branch ${String(index + 1)} of the ${named}`;
|
|
39
|
+
if (!isRecord(branch)) {
|
|
40
|
+
throw new SimStatesInvalidDefinition(`${where} is not an object. A branch is a state machine of its own, ` +
|
|
41
|
+
"with its own StartAt and States.");
|
|
42
|
+
}
|
|
43
|
+
try {
|
|
44
|
+
return parseSimStatesDefinitionDocument(branch);
|
|
45
|
+
}
|
|
46
|
+
catch (error) {
|
|
47
|
+
throw simStatesNestedRefusal(where, error);
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
//# sourceMappingURL=sim-states-parallel-parse.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sim-states-parallel-parse.js","sourceRoot":"","sources":["../../../../src/service/stepfunctions/definition/sim-states-parallel-parse.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,QAAQ,EAAE,MAAM,oCAAoC,CAAC;AAC9D,OAAO,EAAE,0BAA0B,EAAE,MAAM,sCAAsC,CAAC;AAClF,OAAO,EAAE,2BAA2B,EAAE,MAAM,uCAAuC,CAAC;AAEpF,OAAO,EAAE,gCAAgC,EAAE,MAAM,kCAAkC,CAAC;AACpF,OAAO,EAAE,sBAAsB,EAAE,MAAM,gCAAgC,CAAC;AAGxE;;;;;GAKG;AACH,MAAM,UAAU,0BAA0B,CACxC,IAAY,EACZ,KAAgC;IAEhC,MAAM,KAAK,GAAG,kBAAkB,IAAI,EAAE,CAAC;IAEvC,OAAO;QACL,GAAI,KAA2C;QAC/C,QAAQ,EAAE,sBAAsB,CAAC,KAAK,EAAE,KAAK,CAAC;QAC9C,GAAG,2BAA2B,CAAC,KAAK,EAAE,KAAK,CAAC;KAC7C,CAAC;AACJ,CAAC;AAED;;;;;;GAMG;AACH,SAAS,sBAAsB,CAC7B,KAAa,EACb,KAAgC;IAEhC,MAAM,QAAQ,GAAG,KAAK,CAAC,UAAU,CAAC,CAAC;IAEnC,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,QAAQ,CAAC,IAAI,QAAQ,CAAC,MAAM,KAAK,CAAC,EAAE,CAAC;QACtD,MAAM,IAAI,0BAA0B,CAClC,OAAO,KAAK,sDAAsD,CACnE,CAAC;IACJ,CAAC;IAED,OAAO,QAAQ,CAAC,GAAG,CAAC,CAAC,MAAM,EAAE,KAAK,EAAE,EAAE,CAAC,UAAU,CAAC,KAAK,EAAE,KAAK,EAAE,MAAM,CAAC,CAAC,CAAC;AAC3E,CAAC;AAED;;GAEG;AACH,SAAS,UAAU,CACjB,KAAa,EACb,KAAa,EACb,MAAiB;IAEjB,MAAM,KAAK,GAAG,UAAU,MAAM,CAAC,KAAK,GAAG,CAAC,CAAC,WAAW,KAAK,EAAE,CAAC;IAE5D,IAAI,CAAC,QAAQ,CAAC,MAAM,CAAC,EAAE,CAAC;QACtB,MAAM,IAAI,0BAA0B,CAClC,GAAG,KAAK,6DAA6D;YACnE,kCAAkC,CACrC,CAAC;IACJ,CAAC;IAED,IAAI,CAAC;QACH,OAAO,gCAAgC,CAAC,MAAM,CAAC,CAAC;IAClD,CAAC;IAAC,OAAO,KAAK,EAAE,CAAC;QACf,MAAM,sBAAsB,CAAC,KAAK,EAAE,KAAK,CAAC,CAAC;IAC7C,CAAC;AACH,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sim-states-state-fields.d.ts","sourceRoot":"","sources":["../../../../src/service/stepfunctions/definition/sim-states-state-fields.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,kCAAkC,CAAC;
|
|
1
|
+
{"version":3,"file":"sim-states-state-fields.d.ts","sourceRoot":"","sources":["../../../../src/service/stepfunctions/definition/sim-states-state-fields.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,kCAAkC,CAAC;AAsBlE;;;;;GAKG;AACH,wBAAgB,2BAA2B,CACzC,IAAI,EAAE,MAAM,EACZ,IAAI,EAAE,MAAM,EACZ,KAAK,EAAE,MAAM,CAAC,MAAM,EAAE,SAAS,CAAC,GAC/B,IAAI,CAUN;AAED;;;;;;GAMG;AACH,wBAAgB,8BAA8B,CAC5C,IAAI,EAAE,MAAM,EACZ,KAAK,EAAE,MAAM,CAAC,MAAM,EAAE,SAAS,CAAC,GAC/B,IAAI,CAiBN"}
|
|
@@ -11,6 +11,11 @@ const stateFieldsRefused = new Map([
|
|
|
11
11
|
// carry the two paths and nothing that reshapes a result.
|
|
12
12
|
["Choice", ["Parameters", "ResultPath", "ResultSelector"]],
|
|
13
13
|
["Wait", ["Parameters", "ResultPath", "ResultSelector"]],
|
|
14
|
+
// Only a Task state, and the state machine itself, take a timeout. A
|
|
15
|
+
// Parallel state runs for as long as its branches do, and a Map state for
|
|
16
|
+
// as long as its iterations do.
|
|
17
|
+
["Parallel", ["TimeoutSeconds", "HeartbeatSeconds"]],
|
|
18
|
+
["Map", ["TimeoutSeconds", "HeartbeatSeconds"]],
|
|
14
19
|
]);
|
|
15
20
|
/**
|
|
16
21
|
* Refuse the fields a state's type does not have.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sim-states-state-fields.js","sourceRoot":"","sources":["../../../../src/service/stepfunctions/definition/sim-states-state-fields.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,0BAA0B,EAAE,MAAM,sCAAsC,CAAC;AAElF,+EAA+E;AAC/E,gDAAgD;AAChD,MAAM,kBAAkB,GAAG,IAAI,GAAG,CAA4B;IAC5D;QACE,MAAM;QACN,CAAC,WAAW,EAAE,YAAY,EAAE,YAAY,EAAE,YAAY,EAAE,gBAAgB,CAAC;KAC1E;IACD,CAAC,SAAS,EAAE,CAAC,YAAY,EAAE,YAAY,EAAE,gBAAgB,CAAC,CAAC;IAC3D,0EAA0E;IAC1E,0DAA0D;IAC1D,CAAC,QAAQ,EAAE,CAAC,YAAY,EAAE,YAAY,EAAE,gBAAgB,CAAC,CAAC;IAC1D,CAAC,MAAM,EAAE,CAAC,YAAY,EAAE,YAAY,EAAE,gBAAgB,CAAC,CAAC;
|
|
1
|
+
{"version":3,"file":"sim-states-state-fields.js","sourceRoot":"","sources":["../../../../src/service/stepfunctions/definition/sim-states-state-fields.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,0BAA0B,EAAE,MAAM,sCAAsC,CAAC;AAElF,+EAA+E;AAC/E,gDAAgD;AAChD,MAAM,kBAAkB,GAAG,IAAI,GAAG,CAA4B;IAC5D;QACE,MAAM;QACN,CAAC,WAAW,EAAE,YAAY,EAAE,YAAY,EAAE,YAAY,EAAE,gBAAgB,CAAC;KAC1E;IACD,CAAC,SAAS,EAAE,CAAC,YAAY,EAAE,YAAY,EAAE,gBAAgB,CAAC,CAAC;IAC3D,0EAA0E;IAC1E,0DAA0D;IAC1D,CAAC,QAAQ,EAAE,CAAC,YAAY,EAAE,YAAY,EAAE,gBAAgB,CAAC,CAAC;IAC1D,CAAC,MAAM,EAAE,CAAC,YAAY,EAAE,YAAY,EAAE,gBAAgB,CAAC,CAAC;IACxD,qEAAqE;IACrE,0EAA0E;IAC1E,gCAAgC;IAChC,CAAC,UAAU,EAAE,CAAC,gBAAgB,EAAE,kBAAkB,CAAC,CAAC;IACpD,CAAC,KAAK,EAAE,CAAC,gBAAgB,EAAE,kBAAkB,CAAC,CAAC;CAChD,CAAC,CAAC;AAEH;;;;;GAKG;AACH,MAAM,UAAU,2BAA2B,CACzC,IAAY,EACZ,IAAY,EACZ,KAAgC;IAEhC,MAAM,OAAO,GAAG,kBAAkB,CAAC,GAAG,CAAC,IAAI,CAAC,IAAI,EAAE,CAAC;IACnD,MAAM,OAAO,GAAG,OAAO,CAAC,MAAM,CAAC,CAAC,KAAK,EAAE,EAAE,CAAC,MAAM,CAAC,MAAM,CAAC,KAAK,EAAE,KAAK,CAAC,CAAC,CAAC;IAEvE,IAAI,OAAO,CAAC,MAAM,GAAG,CAAC,EAAE,CAAC;QACvB,MAAM,IAAI,0BAA0B,CAClC,OAAO,IAAI,UAAU,IAAI,YAAY,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC,YAAY;YACjE,GAAG,IAAI,uBAAuB,CACjC,CAAC;IACJ,CAAC;AACH,CAAC;AAED;;;;;;GAMG;AACH,MAAM,UAAU,8BAA8B,CAC5C,IAAY,EACZ,KAAgC;IAEhC,MAAM,GAAG,GAAG,KAAK,CAAC,KAAK,CAAC,CAAC;IAEzB,IAAI,GAAG,KAAK,SAAS,IAAI,OAAO,GAAG,KAAK,SAAS,EAAE,CAAC;QAClD,MAAM,IAAI,0BAA0B,CAClC,aAAa,IAAI,uDAAuD;YACtE,kBAAkB,CACrB,CAAC;IACJ,CAAC;IAED,MAAM,IAAI,GAAG,KAAK,CAAC,MAAM,CAAC,CAAC;IAE3B,IAAI,IAAI,KAAK,SAAS,IAAI,OAAO,IAAI,KAAK,QAAQ,EAAE,CAAC;QACnD,MAAM,IAAI,0BAA0B,CAClC,aAAa,IAAI,uCAAuC,CACzD,CAAC;IACJ,CAAC;AACH,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sim-states-state-parse.d.ts","sourceRoot":"","sources":["../../../../src/service/stepfunctions/definition/sim-states-state-parse.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,kCAAkC,CAAC;AAiBlE,OAAO,EAEL,KAAK,cAAc,
|
|
1
|
+
{"version":3,"file":"sim-states-state-parse.d.ts","sourceRoot":"","sources":["../../../../src/service/stepfunctions/definition/sim-states-state-parse.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,kCAAkC,CAAC;AAiBlE,OAAO,EAEL,KAAK,cAAc,EAGpB,MAAM,uBAAuB,CAAC;AAE/B;;GAEG;AACH,wBAAgB,mBAAmB,CACjC,IAAI,EAAE,MAAM,EACZ,KAAK,EAAE,SAAS,GACf,cAAc,CA0ChB"}
|
|
@@ -1,11 +1,14 @@
|
|
|
1
1
|
import { isRecord } from "../../../util/type-guard/record.js";
|
|
2
2
|
import { checkSimStatesChoiceDefault, parseSimStatesChoices, } from "../choice/sim-states-choice-parse.js";
|
|
3
|
-
import { SimStatesInvalidDefinition
|
|
3
|
+
import { SimStatesInvalidDefinition } from "../error/sim-step-functions.error.js";
|
|
4
|
+
import { parseSimStatesErrorHandling } from "../retry/sim-states-error-handling.js";
|
|
4
5
|
import { checkSimStatesTaskFields } from "../task/sim-states-task-fields.js";
|
|
5
6
|
import { parseSimStatesTaskResource } from "../task/sim-states-task-resource.js";
|
|
6
7
|
import { checkSimStatesWaitFields } from "../wait/sim-states-wait-fields.js";
|
|
8
|
+
import { readSimStatesMapState } from "./sim-states-map-parse.js";
|
|
9
|
+
import { readSimStatesParallelState } from "./sim-states-parallel-parse.js";
|
|
7
10
|
import { checkSimStatesRefusedFields, checkSimStatesTransitionFields, } from "./sim-states-state-fields.js";
|
|
8
|
-
import {
|
|
11
|
+
import { simStatesStateTypes, } from "./sim-states-state.js";
|
|
9
12
|
/**
|
|
10
13
|
* Check one state's type, and the fields that type is allowed.
|
|
11
14
|
*/
|
|
@@ -21,10 +24,6 @@ export function parseSimStatesState(name, state) {
|
|
|
21
24
|
throw new SimStatesInvalidDefinition(`The state ${name} has a Type of ${type}, which Amazon States Language ` +
|
|
22
25
|
"does not define.");
|
|
23
26
|
}
|
|
24
|
-
if (!simStatesRunnableTypes.includes(type)) {
|
|
25
|
-
throw new SimStatesUnsimulatedInput(`The state ${name} is a ${type} state, which this simulator does not ` +
|
|
26
|
-
`run yet. It runs ${simStatesRunnableTypes.join(", ")}.`);
|
|
27
|
-
}
|
|
28
27
|
checkSimStatesRefusedFields(name, type, state);
|
|
29
28
|
checkSimStatesTransitionFields(name, state);
|
|
30
29
|
if (type === "Choice") {
|
|
@@ -33,6 +32,12 @@ export function parseSimStatesState(name, state) {
|
|
|
33
32
|
if (type === "Task") {
|
|
34
33
|
return readTaskState(name, state);
|
|
35
34
|
}
|
|
35
|
+
if (type === "Parallel") {
|
|
36
|
+
return readSimStatesParallelState(name, state);
|
|
37
|
+
}
|
|
38
|
+
if (type === "Map") {
|
|
39
|
+
return readSimStatesMapState(name, state);
|
|
40
|
+
}
|
|
36
41
|
if (type === "Wait") {
|
|
37
42
|
checkSimStatesWaitFields(name, state);
|
|
38
43
|
}
|
|
@@ -55,13 +60,16 @@ function readChoiceState(name, state) {
|
|
|
55
60
|
* Read a `Task` state, whose `Resource` is read as the state is.
|
|
56
61
|
*
|
|
57
62
|
* The target becomes the object the state invokes through, so a `Task` state
|
|
58
|
-
* that runs has already had its `Resource` and its `Parameters` read.
|
|
63
|
+
* that runs has already had its `Resource` and its `Parameters` read. Its
|
|
64
|
+
* `Retry` and `Catch` are read the same way, leaving the intervals, the
|
|
65
|
+
* attempt counts and the paths known before an execution reaches the state.
|
|
59
66
|
*/
|
|
60
67
|
function readTaskState(name, state) {
|
|
61
68
|
checkSimStatesTaskFields(name, state);
|
|
62
69
|
return {
|
|
63
70
|
...state,
|
|
64
71
|
target: parseSimStatesTaskResource(name, state),
|
|
72
|
+
...parseSimStatesErrorHandling(`Task state ${name}`, state),
|
|
65
73
|
};
|
|
66
74
|
}
|
|
67
75
|
//# sourceMappingURL=sim-states-state-parse.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sim-states-state-parse.js","sourceRoot":"","sources":["../../../../src/service/stepfunctions/definition/sim-states-state-parse.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,QAAQ,EAAE,MAAM,oCAAoC,CAAC;AAC9D,OAAO,EACL,2BAA2B,EAC3B,qBAAqB,GACtB,MAAM,sCAAsC,CAAC;AAC9C,OAAO,
|
|
1
|
+
{"version":3,"file":"sim-states-state-parse.js","sourceRoot":"","sources":["../../../../src/service/stepfunctions/definition/sim-states-state-parse.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,QAAQ,EAAE,MAAM,oCAAoC,CAAC;AAC9D,OAAO,EACL,2BAA2B,EAC3B,qBAAqB,GACtB,MAAM,sCAAsC,CAAC;AAC9C,OAAO,EAAE,0BAA0B,EAAE,MAAM,sCAAsC,CAAC;AAClF,OAAO,EAAE,2BAA2B,EAAE,MAAM,uCAAuC,CAAC;AACpF,OAAO,EAAE,wBAAwB,EAAE,MAAM,mCAAmC,CAAC;AAC7E,OAAO,EAAE,0BAA0B,EAAE,MAAM,qCAAqC,CAAC;AACjF,OAAO,EAAE,wBAAwB,EAAE,MAAM,mCAAmC,CAAC;AAC7E,OAAO,EAAE,qBAAqB,EAAE,MAAM,2BAA2B,CAAC;AAClE,OAAO,EAAE,0BAA0B,EAAE,MAAM,gCAAgC,CAAC;AAC5E,OAAO,EACL,2BAA2B,EAC3B,8BAA8B,GAC/B,MAAM,8BAA8B,CAAC;AACtC,OAAO,EAIL,mBAAmB,GACpB,MAAM,uBAAuB,CAAC;AAE/B;;GAEG;AACH,MAAM,UAAU,mBAAmB,CACjC,IAAY,EACZ,KAAgB;IAEhB,IAAI,CAAC,QAAQ,CAAC,KAAK,CAAC,EAAE,CAAC;QACrB,MAAM,IAAI,0BAA0B,CAAC,aAAa,IAAI,oBAAoB,CAAC,CAAC;IAC9E,CAAC;IAED,MAAM,IAAI,GAAG,KAAK,CAAC,MAAM,CAAC,CAAC;IAE3B,IAAI,OAAO,IAAI,KAAK,QAAQ,EAAE,CAAC;QAC7B,MAAM,IAAI,0BAA0B,CAAC,aAAa,IAAI,eAAe,CAAC,CAAC;IACzE,CAAC;IAED,IAAI,CAAC,mBAAmB,CAAC,QAAQ,CAAC,IAAa,CAAC,EAAE,CAAC;QACjD,MAAM,IAAI,0BAA0B,CAClC,aAAa,IAAI,kBAAkB,IAAI,iCAAiC;YACtE,kBAAkB,CACrB,CAAC;IACJ,CAAC;IAED,2BAA2B,CAAC,IAAI,EAAE,IAAI,EAAE,KAAK,CAAC,CAAC;IAC/C,8BAA8B,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;IAE5C,IAAI,IAAI,KAAK,QAAQ,EAAE,CAAC;QACtB,OAAO,eAAe,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;IACtC,CAAC;IAED,IAAI,IAAI,KAAK,MAAM,EAAE,CAAC;QACpB,OAAO,aAAa,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;IACpC,CAAC;IAED,IAAI,IAAI,KAAK,UAAU,EAAE,CAAC;QACxB,OAAO,0BAA0B,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;IACjD,CAAC;IAED,IAAI,IAAI,KAAK,KAAK,EAAE,CAAC;QACnB,OAAO,qBAAqB,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;IAC5C,CAAC;IAED,IAAI,IAAI,KAAK,MAAM,EAAE,CAAC;QACpB,wBAAwB,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;IACxC,CAAC;IAED,OAAO,KAAkC,CAAC;AAC5C,CAAC;AAED;;;;;GAKG;AACH,SAAS,eAAe,CACtB,IAAY,EACZ,KAAgC;IAEhC,2BAA2B,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;IAEzC,OAAO;QACL,GAAI,KAAyC;QAC7C,OAAO,EAAE,qBAAqB,CAAC,IAAI,EAAE,KAAK,CAAC;KAC5C,CAAC;AACJ,CAAC;AAED;;;;;;;GAOG;AACH,SAAS,aAAa,CACpB,IAAY,EACZ,KAAgC;IAEhC,wBAAwB,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;IAEtC,OAAO;QACL,GAAI,KAAuC;QAC3C,MAAM,EAAE,0BAA0B,CAAC,IAAI,EAAE,KAAK,CAAC;QAC/C,GAAG,2BAA2B,CAAC,cAAc,IAAI,EAAE,EAAE,KAAK,CAAC;KAC5D,CAAC;AACJ,CAAC"}
|
|
@@ -1,20 +1,15 @@
|
|
|
1
1
|
import type { JSONValue } from "../../../util/type-guard/json.js";
|
|
2
2
|
import type { SimStatesChoiceRule } from "../choice/sim-states-choice-rule.js";
|
|
3
3
|
import type { SimStatesDataFlowFields } from "../data/sim-states-data-flow.js";
|
|
4
|
+
import type { SimStatesErrorHandling } from "../retry/sim-states-error-handling.js";
|
|
5
|
+
import type { SimStatesTaskHandling } from "../retry/sim-states-task-handling.js";
|
|
4
6
|
import type { SimStatesTaskTarget } from "../task/sim-states-task-target.js";
|
|
7
|
+
import type { SimStatesDefinition } from "./sim-states-definition.js";
|
|
5
8
|
/**
|
|
6
|
-
* Every state type Amazon States Language defines.
|
|
7
|
-
*
|
|
8
|
-
* The ones this simulator has no implementation for are named here so a
|
|
9
|
-
* definition using one can be refused by its own name.
|
|
9
|
+
* Every state type Amazon States Language defines, all of which run.
|
|
10
10
|
*/
|
|
11
11
|
export declare const simStatesStateTypes: readonly ["Pass", "Succeed", "Fail", "Task", "Choice", "Wait", "Parallel", "Map"];
|
|
12
12
|
export type SimStatesStateType = (typeof simStatesStateTypes)[number];
|
|
13
|
-
/**
|
|
14
|
-
* The state types this simulator runs.
|
|
15
|
-
*/
|
|
16
|
-
export declare const simStatesRunnableTypes: readonly ["Pass", "Succeed", "Fail", "Task", "Choice", "Wait"];
|
|
17
|
-
export type SimStatesRunnableType = (typeof simStatesRunnableTypes)[number];
|
|
18
13
|
/**
|
|
19
14
|
* What every state carries, whatever its type.
|
|
20
15
|
*/
|
|
@@ -36,12 +31,41 @@ export interface SimStatesPassState extends SimStatesCommonState {
|
|
|
36
31
|
* `Resource` is held as it was written, and `target` is what it named. The
|
|
37
32
|
* `Resource` is read when the definition is read, so one this simulator cannot
|
|
38
33
|
* reach is refused there rather than when an execution arrives at the state.
|
|
34
|
+
* `Retry` and `Catch` are read there too, and arrive here as the retriers and
|
|
35
|
+
* catchers a failing task is handled by.
|
|
39
36
|
*/
|
|
40
|
-
export interface SimStatesTaskState extends SimStatesCommonState {
|
|
37
|
+
export interface SimStatesTaskState extends SimStatesCommonState, SimStatesTaskHandling {
|
|
41
38
|
readonly Type: "Task";
|
|
42
39
|
readonly Resource: string;
|
|
43
40
|
readonly target: SimStatesTaskTarget;
|
|
44
41
|
}
|
|
42
|
+
/**
|
|
43
|
+
* A `Parallel` state, which runs each of its branches on the same input.
|
|
44
|
+
*
|
|
45
|
+
* A branch is a state machine of its own, with its own `StartAt` and its own
|
|
46
|
+
* states. The branches are read when the definition is read, so a `Parallel`
|
|
47
|
+
* state that runs is one whose branches are already known to be good.
|
|
48
|
+
*/
|
|
49
|
+
export interface SimStatesParallelState extends SimStatesCommonState, SimStatesErrorHandling {
|
|
50
|
+
readonly Type: "Parallel";
|
|
51
|
+
readonly Branches: readonly SimStatesDefinition[];
|
|
52
|
+
}
|
|
53
|
+
/**
|
|
54
|
+
* A `Map` state, which runs its `ItemProcessor` once per item.
|
|
55
|
+
*
|
|
56
|
+
* `ItemsPath` says where the items are, `ItemSelector` builds what each
|
|
57
|
+
* iteration is given, and `MaxConcurrency` bounds how many iterations run at
|
|
58
|
+
* once. A `Map` state has no `Parameters` of its own. Amazon States Language
|
|
59
|
+
* gave that field to the item, and it arrives here as the `ItemSelector` it
|
|
60
|
+
* was the older spelling of.
|
|
61
|
+
*/
|
|
62
|
+
export interface SimStatesMapState extends Omit<SimStatesCommonState, "Parameters">, SimStatesErrorHandling {
|
|
63
|
+
readonly Type: "Map";
|
|
64
|
+
readonly ItemProcessor: SimStatesDefinition;
|
|
65
|
+
readonly ItemsPath?: string;
|
|
66
|
+
readonly ItemSelector?: JSONValue;
|
|
67
|
+
readonly MaxConcurrency?: number;
|
|
68
|
+
}
|
|
45
69
|
/**
|
|
46
70
|
* A `Succeed` state, which ends an execution successfully.
|
|
47
71
|
*/
|
|
@@ -89,7 +113,7 @@ export interface SimStatesFailState {
|
|
|
89
113
|
readonly Error?: string;
|
|
90
114
|
readonly Cause?: string;
|
|
91
115
|
}
|
|
92
|
-
export type SimStatesState = SimStatesPassState | SimStatesTaskState | SimStatesSucceedState | SimStatesFailState | SimStatesChoiceState | SimStatesWaitState;
|
|
116
|
+
export type SimStatesState = SimStatesPassState | SimStatesTaskState | SimStatesParallelState | SimStatesMapState | SimStatesSucceedState | SimStatesFailState | SimStatesChoiceState | SimStatesWaitState;
|
|
93
117
|
/**
|
|
94
118
|
* Whether a state ends the execution when it is reached.
|
|
95
119
|
*/
|