@kensio/yulin 1.20.0 → 1.20.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -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 +8 -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 +11 -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 +17 -1
- package/dist/service/aws/factory/sim-aws-account-region-service-builder.js.map +1 -1
- package/dist/service/aws/factory/sim-aws-cross-account-collaborators.d.ts +10 -0
- package/dist/service/aws/factory/sim-aws-cross-account-collaborators.d.ts.map +1 -1
- package/dist/service/aws/factory/sim-aws-cross-account-collaborators.js +15 -0
- package/dist/service/aws/factory/sim-aws-cross-account-collaborators.js.map +1 -1
- package/dist/service/aws/factory/sim-aws-self-contained-service-builder.d.ts +9 -0
- package/dist/service/aws/factory/sim-aws-self-contained-service-builder.d.ts.map +1 -1
- package/dist/service/aws/factory/sim-aws-self-contained-service-builder.js +15 -0
- package/dist/service/aws/factory/sim-aws-self-contained-service-builder.js.map +1 -1
- package/dist/service/aws/factory/sim-aws-service-factory.d.ts +6 -0
- package/dist/service/aws/factory/sim-aws-service-factory.d.ts.map +1 -1
- package/dist/service/aws/factory/sim-aws-service-factory.js +8 -0
- package/dist/service/aws/factory/sim-aws-service-factory.js.map +1 -1
- package/dist/service/aws/sim-aws-account-region-scope.d.ts +6 -0
- package/dist/service/aws/sim-aws-account-region-scope.d.ts.map +1 -1
- package/dist/service/aws/sim-aws-account-region-scope.js +8 -0
- package/dist/service/aws/sim-aws-account-region-scope.js.map +1 -1
- package/dist/service/aws/sim-aws-account.d.ts +5 -0
- package/dist/service/aws/sim-aws-account.d.ts.map +1 -1
- package/dist/service/aws/sim-aws-account.js +6 -0
- package/dist/service/aws/sim-aws-account.js.map +1 -1
- package/dist/service/aws/sim-aws-region.d.ts +5 -0
- package/dist/service/aws/sim-aws-region.d.ts.map +1 -1
- package/dist/service/aws/sim-aws-region.js +6 -0
- package/dist/service/aws/sim-aws-region.js.map +1 -1
- package/dist/service/aws/sim-aws-service-accessors.d.ts +6 -0
- package/dist/service/aws/sim-aws-service-accessors.d.ts.map +1 -1
- package/dist/service/aws/sim-aws-service-accessors.js +8 -0
- package/dist/service/aws/sim-aws-service-accessors.js.map +1 -1
- package/dist/service/cloudformation/resource/cfn/firehose/sim-firehose-cfn-value-adapter.d.ts +6 -0
- package/dist/service/cloudformation/resource/cfn/firehose/sim-firehose-cfn-value-adapter.d.ts.map +1 -0
- package/dist/service/cloudformation/resource/cfn/firehose/sim-firehose-cfn-value-adapter.js +15 -0
- package/dist/service/cloudformation/resource/cfn/firehose/sim-firehose-cfn-value-adapter.js.map +1 -0
- package/dist/service/cloudformation/resource/cfn/firehose/sim-firehose-delivery-stream-cfn.d.ts +23 -0
- package/dist/service/cloudformation/resource/cfn/firehose/sim-firehose-delivery-stream-cfn.d.ts.map +1 -0
- package/dist/service/cloudformation/resource/cfn/firehose/sim-firehose-delivery-stream-cfn.js +29 -0
- package/dist/service/cloudformation/resource/cfn/firehose/sim-firehose-delivery-stream-cfn.js.map +1 -0
- 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 -0
- package/dist/service/cloudformation/resource/cfn/sim-cfn-service-value-adapters.js.map +1 -1
- package/dist/service/cloudformation/resource/cfn/stepfunctions/sim-cfn-state-machine-creator.d.ts +27 -0
- package/dist/service/cloudformation/resource/cfn/stepfunctions/sim-cfn-state-machine-creator.d.ts.map +1 -0
- package/dist/service/cloudformation/resource/cfn/stepfunctions/sim-cfn-state-machine-creator.js +47 -0
- package/dist/service/cloudformation/resource/cfn/stepfunctions/sim-cfn-state-machine-creator.js.map +1 -0
- package/dist/service/cloudformation/resource/cfn/stepfunctions/sim-cfn-state-machine-definition.d.ts +49 -0
- package/dist/service/cloudformation/resource/cfn/stepfunctions/sim-cfn-state-machine-definition.d.ts.map +1 -0
- package/dist/service/cloudformation/resource/cfn/stepfunctions/sim-cfn-state-machine-definition.js +89 -0
- package/dist/service/cloudformation/resource/cfn/stepfunctions/sim-cfn-state-machine-definition.js.map +1 -0
- package/dist/service/cloudformation/resource/cfn/stepfunctions/sim-cfn-state-machine-name.d.ts +23 -0
- package/dist/service/cloudformation/resource/cfn/stepfunctions/sim-cfn-state-machine-name.d.ts.map +1 -0
- package/dist/service/cloudformation/resource/cfn/stepfunctions/sim-cfn-state-machine-name.js +28 -0
- package/dist/service/cloudformation/resource/cfn/stepfunctions/sim-cfn-state-machine-name.js.map +1 -0
- package/dist/service/cloudformation/resource/cfn/stepfunctions/sim-cfn-state-machine-properties.d.ts +57 -0
- package/dist/service/cloudformation/resource/cfn/stepfunctions/sim-cfn-state-machine-properties.d.ts.map +1 -0
- package/dist/service/cloudformation/resource/cfn/stepfunctions/sim-cfn-state-machine-properties.js +99 -0
- package/dist/service/cloudformation/resource/cfn/stepfunctions/sim-cfn-state-machine-properties.js.map +1 -0
- package/dist/service/cloudformation/resource/cfn/stepfunctions/sim-cfn-state-machine-property-names.d.ts +21 -0
- package/dist/service/cloudformation/resource/cfn/stepfunctions/sim-cfn-state-machine-property-names.d.ts.map +1 -0
- package/dist/service/cloudformation/resource/cfn/stepfunctions/sim-cfn-state-machine-property-names.js +37 -0
- package/dist/service/cloudformation/resource/cfn/stepfunctions/sim-cfn-state-machine-property-names.js.map +1 -0
- package/dist/service/cloudformation/resource/cfn/stepfunctions/sim-cfn-state-machine-substitutions.d.ts +32 -0
- package/dist/service/cloudformation/resource/cfn/stepfunctions/sim-cfn-state-machine-substitutions.d.ts.map +1 -0
- package/dist/service/cloudformation/resource/cfn/stepfunctions/sim-cfn-state-machine-substitutions.js +56 -0
- package/dist/service/cloudformation/resource/cfn/stepfunctions/sim-cfn-state-machine-substitutions.js.map +1 -0
- package/dist/service/cloudformation/resource/cfn/stepfunctions/sim-cfn-step-functions-resource-deleter.d.ts +20 -0
- package/dist/service/cloudformation/resource/cfn/stepfunctions/sim-cfn-step-functions-resource-deleter.d.ts.map +1 -0
- package/dist/service/cloudformation/resource/cfn/stepfunctions/sim-cfn-step-functions-resource-deleter.js +28 -0
- package/dist/service/cloudformation/resource/cfn/stepfunctions/sim-cfn-step-functions-resource-deleter.js.map +1 -0
- package/dist/service/cloudformation/resource/cfn/stepfunctions/sim-cfn-step-functions-resource-error.d.ts +43 -0
- package/dist/service/cloudformation/resource/cfn/stepfunctions/sim-cfn-step-functions-resource-error.d.ts.map +1 -0
- package/dist/service/cloudformation/resource/cfn/stepfunctions/sim-cfn-step-functions-resource-error.js +64 -0
- package/dist/service/cloudformation/resource/cfn/stepfunctions/sim-cfn-step-functions-resource-error.js.map +1 -0
- package/dist/service/cloudformation/resource/cfn/stepfunctions/sim-cfn-step-functions-resource-types.d.ts +10 -0
- package/dist/service/cloudformation/resource/cfn/stepfunctions/sim-cfn-step-functions-resource-types.d.ts.map +1 -0
- package/dist/service/cloudformation/resource/cfn/stepfunctions/sim-cfn-step-functions-resource-types.js +10 -0
- package/dist/service/cloudformation/resource/cfn/stepfunctions/sim-cfn-step-functions-resource-types.js.map +1 -0
- package/dist/service/cloudformation/resource/cfn/stepfunctions/sim-state-machine-cfn.d.ts +27 -0
- package/dist/service/cloudformation/resource/cfn/stepfunctions/sim-state-machine-cfn.d.ts.map +1 -0
- package/dist/service/cloudformation/resource/cfn/stepfunctions/sim-state-machine-cfn.js +37 -0
- package/dist/service/cloudformation/resource/cfn/stepfunctions/sim-state-machine-cfn.js.map +1 -0
- package/dist/service/cloudformation/resource/cfn/stepfunctions/sim-step-functions-cfn-resource-factory.d.ts +31 -0
- package/dist/service/cloudformation/resource/cfn/stepfunctions/sim-step-functions-cfn-resource-factory.d.ts.map +1 -0
- package/dist/service/cloudformation/resource/cfn/stepfunctions/sim-step-functions-cfn-resource-factory.js +42 -0
- package/dist/service/cloudformation/resource/cfn/stepfunctions/sim-step-functions-cfn-resource-factory.js.map +1 -0
- package/dist/service/cloudformation/resource/cfn/stepfunctions/sim-step-functions-cfn-value-adapter.d.ts +7 -0
- package/dist/service/cloudformation/resource/cfn/stepfunctions/sim-step-functions-cfn-value-adapter.d.ts.map +1 -0
- package/dist/service/cloudformation/resource/cfn/stepfunctions/sim-step-functions-cfn-value-adapter.js +16 -0
- package/dist/service/cloudformation/resource/cfn/stepfunctions/sim-step-functions-cfn-value-adapter.js.map +1 -0
- 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 +11 -0
- package/dist/service/cloudformation/resource/resolve/service/sim-cfn-service-factories.js.map +1 -1
- package/dist/service/cloudfront/command/create-distribution/create-distribution.command.d.ts +25 -0
- package/dist/service/cloudfront/command/create-distribution/create-distribution.command.d.ts.map +1 -1
- package/dist/service/cloudfront/command/create-distribution/sim-cf-distro-config-normalizer.d.ts +0 -1
- package/dist/service/cloudfront/command/create-distribution/sim-cf-distro-config-normalizer.d.ts.map +1 -1
- package/dist/service/cloudfront/command/create-distribution/sim-cf-distro-config-normalizer.js +8 -36
- package/dist/service/cloudfront/command/create-distribution/sim-cf-distro-config-normalizer.js.map +1 -1
- package/dist/service/cloudfront/command/create-distribution/sim-cf-normalize-list.d.ts +19 -0
- package/dist/service/cloudfront/command/create-distribution/sim-cf-normalize-list.d.ts.map +1 -0
- package/dist/service/cloudfront/command/create-distribution/sim-cf-normalize-list.js +39 -0
- package/dist/service/cloudfront/command/create-distribution/sim-cf-normalize-list.js.map +1 -0
- package/dist/service/cloudfront/command/create-distribution/sim-cf-normalize-origin.d.ts +10 -0
- package/dist/service/cloudfront/command/create-distribution/sim-cf-normalize-origin.d.ts.map +1 -0
- package/dist/service/cloudfront/command/create-distribution/sim-cf-normalize-origin.js +17 -0
- package/dist/service/cloudfront/command/create-distribution/sim-cf-normalize-origin.js.map +1 -0
- 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 +8 -0
- package/dist/service/cloudfront/distribution/configurator/sim-cloud-front-origin-configurator.js.map +1 -1
- package/dist/service/cloudfront/origin/custom/sim-cf-custom-origin-request.d.ts +4 -0
- package/dist/service/cloudfront/origin/custom/sim-cf-custom-origin-request.d.ts.map +1 -1
- package/dist/service/cloudfront/origin/custom/sim-cf-custom-origin-request.js +7 -0
- package/dist/service/cloudfront/origin/custom/sim-cf-custom-origin-request.js.map +1 -1
- package/dist/service/cloudfront/origin/custom/sim-cloudfront-custom-origin.d.ts +6 -0
- 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 +3 -0
- package/dist/service/cloudfront/origin/custom/sim-cloudfront-custom-origin.js.map +1 -1
- package/dist/service/cloudfront/origin/sim-cf-origin-custom-headers.d.ts +15 -0
- package/dist/service/cloudfront/origin/sim-cf-origin-custom-headers.d.ts.map +1 -0
- package/dist/service/cloudfront/origin/sim-cf-origin-custom-headers.js +74 -0
- package/dist/service/cloudfront/origin/sim-cf-origin-custom-headers.js.map +1 -0
- package/dist/service/firehose/cfn/delivery-stream/sim-cfn-firehose-delivery-stream-creator.d.ts +33 -0
- package/dist/service/firehose/cfn/delivery-stream/sim-cfn-firehose-delivery-stream-creator.d.ts.map +1 -0
- package/dist/service/firehose/cfn/delivery-stream/sim-cfn-firehose-delivery-stream-creator.js +44 -0
- package/dist/service/firehose/cfn/delivery-stream/sim-cfn-firehose-delivery-stream-creator.js.map +1 -0
- package/dist/service/firehose/cfn/delivery-stream/sim-cfn-firehose-delivery-stream-name.d.ts +23 -0
- package/dist/service/firehose/cfn/delivery-stream/sim-cfn-firehose-delivery-stream-name.d.ts.map +1 -0
- package/dist/service/firehose/cfn/delivery-stream/sim-cfn-firehose-delivery-stream-name.js +28 -0
- package/dist/service/firehose/cfn/delivery-stream/sim-cfn-firehose-delivery-stream-name.js.map +1 -0
- package/dist/service/firehose/cfn/delivery-stream/sim-cfn-firehose-delivery-stream-properties.d.ts +48 -0
- package/dist/service/firehose/cfn/delivery-stream/sim-cfn-firehose-delivery-stream-properties.d.ts.map +1 -0
- package/dist/service/firehose/cfn/delivery-stream/sim-cfn-firehose-delivery-stream-properties.js +92 -0
- package/dist/service/firehose/cfn/delivery-stream/sim-cfn-firehose-delivery-stream-properties.js.map +1 -0
- package/dist/service/firehose/cfn/delivery-stream/sim-cfn-firehose-delivery-stream-property-names.d.ts +51 -0
- package/dist/service/firehose/cfn/delivery-stream/sim-cfn-firehose-delivery-stream-property-names.d.ts.map +1 -0
- package/dist/service/firehose/cfn/delivery-stream/sim-cfn-firehose-delivery-stream-property-names.js +114 -0
- package/dist/service/firehose/cfn/delivery-stream/sim-cfn-firehose-delivery-stream-property-names.js.map +1 -0
- package/dist/service/firehose/cfn/delivery-stream/sim-cfn-firehose-destination-choice.d.ts +19 -0
- package/dist/service/firehose/cfn/delivery-stream/sim-cfn-firehose-destination-choice.d.ts.map +1 -0
- package/dist/service/firehose/cfn/delivery-stream/sim-cfn-firehose-destination-choice.js +44 -0
- package/dist/service/firehose/cfn/delivery-stream/sim-cfn-firehose-destination-choice.js.map +1 -0
- package/dist/service/firehose/cfn/delivery-stream/sim-cfn-firehose-s3-destination.d.ts +47 -0
- package/dist/service/firehose/cfn/delivery-stream/sim-cfn-firehose-s3-destination.d.ts.map +1 -0
- package/dist/service/firehose/cfn/delivery-stream/sim-cfn-firehose-s3-destination.js +105 -0
- package/dist/service/firehose/cfn/delivery-stream/sim-cfn-firehose-s3-destination.js.map +1 -0
- package/dist/service/firehose/cfn/delivery-stream/sim-cfn-firehose-source-choice.d.ts +19 -0
- package/dist/service/firehose/cfn/delivery-stream/sim-cfn-firehose-source-choice.d.ts.map +1 -0
- package/dist/service/firehose/cfn/delivery-stream/sim-cfn-firehose-source-choice.js +58 -0
- package/dist/service/firehose/cfn/delivery-stream/sim-cfn-firehose-source-choice.js.map +1 -0
- package/dist/service/firehose/cfn/delivery-stream/sim-cfn-firehose-tags.d.ts +11 -0
- package/dist/service/firehose/cfn/delivery-stream/sim-cfn-firehose-tags.d.ts.map +1 -0
- package/dist/service/firehose/cfn/delivery-stream/sim-cfn-firehose-tags.js +33 -0
- package/dist/service/firehose/cfn/delivery-stream/sim-cfn-firehose-tags.js.map +1 -0
- package/dist/service/firehose/cfn/sim-cfn-firehose-archive.resources.d.ts +44 -0
- package/dist/service/firehose/cfn/sim-cfn-firehose-archive.resources.d.ts.map +1 -0
- package/dist/service/firehose/cfn/sim-cfn-firehose-archive.resources.js +144 -0
- package/dist/service/firehose/cfn/sim-cfn-firehose-archive.resources.js.map +1 -0
- package/dist/service/firehose/cfn/sim-cfn-firehose-delivery-stream-template.factory.d.ts +51 -0
- package/dist/service/firehose/cfn/sim-cfn-firehose-delivery-stream-template.factory.d.ts.map +1 -0
- package/dist/service/firehose/cfn/sim-cfn-firehose-delivery-stream-template.factory.js +65 -0
- package/dist/service/firehose/cfn/sim-cfn-firehose-delivery-stream-template.factory.js.map +1 -0
- package/dist/service/firehose/cfn/sim-cfn-firehose-resource-deleter.d.ts +19 -0
- package/dist/service/firehose/cfn/sim-cfn-firehose-resource-deleter.d.ts.map +1 -0
- package/dist/service/firehose/cfn/sim-cfn-firehose-resource-deleter.js +26 -0
- package/dist/service/firehose/cfn/sim-cfn-firehose-resource-deleter.js.map +1 -0
- package/dist/service/firehose/cfn/sim-cfn-firehose-resource-error.d.ts +44 -0
- package/dist/service/firehose/cfn/sim-cfn-firehose-resource-error.d.ts.map +1 -0
- package/dist/service/firehose/cfn/sim-cfn-firehose-resource-error.js +75 -0
- package/dist/service/firehose/cfn/sim-cfn-firehose-resource-error.js.map +1 -0
- package/dist/service/firehose/cfn/sim-cfn-firehose-resource-types.d.ts +14 -0
- package/dist/service/firehose/cfn/sim-cfn-firehose-resource-types.d.ts.map +1 -0
- package/dist/service/firehose/cfn/sim-cfn-firehose-resource-types.js +14 -0
- package/dist/service/firehose/cfn/sim-cfn-firehose-resource-types.js.map +1 -0
- package/dist/service/firehose/cfn/sim-firehose-cfn-resource-factory.d.ts +29 -0
- package/dist/service/firehose/cfn/sim-firehose-cfn-resource-factory.d.ts.map +1 -0
- package/dist/service/firehose/cfn/sim-firehose-cfn-resource-factory.js +38 -0
- package/dist/service/firehose/cfn/sim-firehose-cfn-resource-factory.js.map +1 -0
- package/dist/service/firehose/command/authorize/sim-firehose-authorizer.d.ts +39 -0
- package/dist/service/firehose/command/authorize/sim-firehose-authorizer.d.ts.map +1 -0
- package/dist/service/firehose/command/authorize/sim-firehose-authorizer.js +49 -0
- package/dist/service/firehose/command/authorize/sim-firehose-authorizer.js.map +1 -0
- package/dist/service/firehose/command/record/record.command.d.ts +55 -0
- package/dist/service/firehose/command/record/record.command.d.ts.map +1 -0
- package/dist/service/firehose/command/record/record.command.js +2 -0
- package/dist/service/firehose/command/record/record.command.js.map +1 -0
- package/dist/service/firehose/command/record/sim-firehose-put-commands.d.ts +43 -0
- package/dist/service/firehose/command/record/sim-firehose-put-commands.d.ts.map +1 -0
- package/dist/service/firehose/command/record/sim-firehose-put-commands.js +59 -0
- package/dist/service/firehose/command/record/sim-firehose-put-commands.js.map +1 -0
- package/dist/service/firehose/command/record/sim-firehose-record-data.d.ts +21 -0
- package/dist/service/firehose/command/record/sim-firehose-record-data.d.ts.map +1 -0
- package/dist/service/firehose/command/record/sim-firehose-record-data.js +54 -0
- package/dist/service/firehose/command/record/sim-firehose-record-data.js.map +1 -0
- package/dist/service/firehose/command/sim-firehose-command.types.d.ts +6 -0
- package/dist/service/firehose/command/sim-firehose-command.types.d.ts.map +1 -0
- package/dist/service/firehose/command/sim-firehose-command.types.js +2 -0
- package/dist/service/firehose/command/sim-firehose-command.types.js.map +1 -0
- package/dist/service/firehose/command/sim-firehose-commands.d.ts +37 -0
- package/dist/service/firehose/command/sim-firehose-commands.d.ts.map +1 -0
- package/dist/service/firehose/command/sim-firehose-commands.js +57 -0
- package/dist/service/firehose/command/sim-firehose-commands.js.map +1 -0
- package/dist/service/firehose/command/sim-firehose-delivery-stream-access.d.ts +47 -0
- package/dist/service/firehose/command/sim-firehose-delivery-stream-access.d.ts.map +1 -0
- package/dist/service/firehose/command/sim-firehose-delivery-stream-access.js +58 -0
- package/dist/service/firehose/command/sim-firehose-delivery-stream-access.js.map +1 -0
- package/dist/service/firehose/command/sim-firehose-request-options.d.ts +12 -0
- package/dist/service/firehose/command/sim-firehose-request-options.d.ts.map +1 -0
- package/dist/service/firehose/command/sim-firehose-request-options.js +2 -0
- package/dist/service/firehose/command/sim-firehose-request-options.js.map +1 -0
- package/dist/service/firehose/command/stream/sim-firehose-create-delivery-stream.d.ts +49 -0
- package/dist/service/firehose/command/stream/sim-firehose-create-delivery-stream.d.ts.map +1 -0
- package/dist/service/firehose/command/stream/sim-firehose-create-delivery-stream.js +69 -0
- package/dist/service/firehose/command/stream/sim-firehose-create-delivery-stream.js.map +1 -0
- package/dist/service/firehose/command/stream/sim-firehose-delivery-stream-page.d.ts +19 -0
- package/dist/service/firehose/command/stream/sim-firehose-delivery-stream-page.d.ts.map +1 -0
- package/dist/service/firehose/command/stream/sim-firehose-delivery-stream-page.js +24 -0
- package/dist/service/firehose/command/stream/sim-firehose-delivery-stream-page.js.map +1 -0
- package/dist/service/firehose/command/stream/sim-firehose-stream-commands.d.ts +50 -0
- package/dist/service/firehose/command/stream/sim-firehose-stream-commands.d.ts.map +1 -0
- package/dist/service/firehose/command/stream/sim-firehose-stream-commands.js +72 -0
- package/dist/service/firehose/command/stream/sim-firehose-stream-commands.js.map +1 -0
- package/dist/service/firehose/command/stream/sim-firehose-stream-descriptions.d.ts +7 -0
- package/dist/service/firehose/command/stream/sim-firehose-stream-descriptions.d.ts.map +1 -0
- package/dist/service/firehose/command/stream/sim-firehose-stream-descriptions.js +70 -0
- package/dist/service/firehose/command/stream/sim-firehose-stream-descriptions.js.map +1 -0
- package/dist/service/firehose/command/stream/stream.command.d.ts +137 -0
- package/dist/service/firehose/command/stream/stream.command.d.ts.map +1 -0
- package/dist/service/firehose/command/stream/stream.command.js +2 -0
- package/dist/service/firehose/command/stream/stream.command.js.map +1 -0
- package/dist/service/firehose/delivery/sim-firehose-buffer.d.ts +36 -0
- package/dist/service/firehose/delivery/sim-firehose-buffer.d.ts.map +1 -0
- package/dist/service/firehose/delivery/sim-firehose-buffer.js +55 -0
- package/dist/service/firehose/delivery/sim-firehose-buffer.js.map +1 -0
- package/dist/service/firehose/delivery/sim-firehose-delivery-failures.d.ts +34 -0
- package/dist/service/firehose/delivery/sim-firehose-delivery-failures.d.ts.map +1 -0
- package/dist/service/firehose/delivery/sim-firehose-delivery-failures.js +24 -0
- package/dist/service/firehose/delivery/sim-firehose-delivery-failures.js.map +1 -0
- package/dist/service/firehose/delivery/sim-firehose-delivery.d.ts +47 -0
- package/dist/service/firehose/delivery/sim-firehose-delivery.d.ts.map +1 -0
- package/dist/service/firehose/delivery/sim-firehose-delivery.js +76 -0
- package/dist/service/firehose/delivery/sim-firehose-delivery.js.map +1 -0
- package/dist/service/firehose/delivery/sim-firehose-object-key.d.ts +21 -0
- package/dist/service/firehose/delivery/sim-firehose-object-key.d.ts.map +1 -0
- package/dist/service/firehose/delivery/sim-firehose-object-key.js +27 -0
- package/dist/service/firehose/delivery/sim-firehose-object-key.js.map +1 -0
- package/dist/service/firehose/delivery/sim-firehose-object-writer.d.ts +50 -0
- package/dist/service/firehose/delivery/sim-firehose-object-writer.d.ts.map +1 -0
- package/dist/service/firehose/delivery/sim-firehose-object-writer.js +57 -0
- package/dist/service/firehose/delivery/sim-firehose-object-writer.js.map +1 -0
- package/dist/service/firehose/destination/sim-firehose-buffering-hints.d.ts +29 -0
- package/dist/service/firehose/destination/sim-firehose-buffering-hints.d.ts.map +1 -0
- package/dist/service/firehose/destination/sim-firehose-buffering-hints.js +45 -0
- package/dist/service/firehose/destination/sim-firehose-buffering-hints.js.map +1 -0
- package/dist/service/firehose/destination/sim-firehose-destination-choice.d.ts +35 -0
- package/dist/service/firehose/destination/sim-firehose-destination-choice.d.ts.map +1 -0
- package/dist/service/firehose/destination/sim-firehose-destination-choice.js +48 -0
- package/dist/service/firehose/destination/sim-firehose-destination-choice.js.map +1 -0
- package/dist/service/firehose/destination/sim-firehose-s3-destination.d.ts +32 -0
- package/dist/service/firehose/destination/sim-firehose-s3-destination.d.ts.map +1 -0
- package/dist/service/firehose/destination/sim-firehose-s3-destination.js +51 -0
- package/dist/service/firehose/destination/sim-firehose-s3-destination.js.map +1 -0
- package/dist/service/firehose/error/sim-firehose.error.d.ts +69 -0
- package/dist/service/firehose/error/sim-firehose.error.d.ts.map +1 -0
- package/dist/service/firehose/error/sim-firehose.error.js +79 -0
- package/dist/service/firehose/error/sim-firehose.error.js.map +1 -0
- package/dist/service/firehose/failure/sim-firehose-failure.d.ts +38 -0
- package/dist/service/firehose/failure/sim-firehose-failure.d.ts.map +1 -0
- package/dist/service/firehose/failure/sim-firehose-failure.js +40 -0
- package/dist/service/firehose/failure/sim-firehose-failure.js.map +1 -0
- package/dist/service/firehose/failure/sim-firehose-failures.d.ts +32 -0
- package/dist/service/firehose/failure/sim-firehose-failures.d.ts.map +1 -0
- package/dist/service/firehose/failure/sim-firehose-failures.js +47 -0
- package/dist/service/firehose/failure/sim-firehose-failures.js.map +1 -0
- package/dist/service/firehose/index.d.ts +17 -0
- package/dist/service/firehose/index.d.ts.map +1 -0
- package/dist/service/firehose/index.js +12 -0
- package/dist/service/firehose/index.js.map +1 -0
- package/dist/service/firehose/sdk/sim-firehose-sdk-command-router.d.ts +18 -0
- package/dist/service/firehose/sdk/sim-firehose-sdk-command-router.d.ts.map +1 -0
- package/dist/service/firehose/sdk/sim-firehose-sdk-command-router.js +48 -0
- package/dist/service/firehose/sdk/sim-firehose-sdk-command-router.js.map +1 -0
- package/dist/service/firehose/sim-firehose.d.ts +104 -0
- package/dist/service/firehose/sim-firehose.d.ts.map +1 -0
- package/dist/service/firehose/sim-firehose.js +130 -0
- package/dist/service/firehose/sim-firehose.js.map +1 -0
- package/dist/service/firehose/source/read/sim-firehose-source-poll.d.ts +39 -0
- package/dist/service/firehose/source/read/sim-firehose-source-poll.d.ts.map +1 -0
- package/dist/service/firehose/source/read/sim-firehose-source-poll.js +48 -0
- package/dist/service/firehose/source/read/sim-firehose-source-poll.js.map +1 -0
- package/dist/service/firehose/source/read/sim-firehose-source-reader.d.ts +62 -0
- package/dist/service/firehose/source/read/sim-firehose-source-reader.d.ts.map +1 -0
- package/dist/service/firehose/source/read/sim-firehose-source-reader.js +94 -0
- package/dist/service/firehose/source/read/sim-firehose-source-reader.js.map +1 -0
- package/dist/service/firehose/source/read/sim-firehose-source-reading.d.ts +39 -0
- package/dist/service/firehose/source/read/sim-firehose-source-reading.d.ts.map +1 -0
- package/dist/service/firehose/source/read/sim-firehose-source-reading.js +48 -0
- package/dist/service/firehose/source/read/sim-firehose-source-reading.js.map +1 -0
- package/dist/service/firehose/source/read/sim-firehose-source-shard-ids.d.ts +12 -0
- package/dist/service/firehose/source/read/sim-firehose-source-shard-ids.d.ts.map +1 -0
- package/dist/service/firehose/source/read/sim-firehose-source-shard-ids.js +56 -0
- package/dist/service/firehose/source/read/sim-firehose-source-shard-ids.js.map +1 -0
- package/dist/service/firehose/source/read/sim-firehose-source-shard.d.ts +36 -0
- package/dist/service/firehose/source/read/sim-firehose-source-shard.d.ts.map +1 -0
- package/dist/service/firehose/source/read/sim-firehose-source-shard.js +45 -0
- package/dist/service/firehose/source/read/sim-firehose-source-shard.js.map +1 -0
- package/dist/service/firehose/source/read/sim-firehose-source-shards.d.ts +42 -0
- package/dist/service/firehose/source/read/sim-firehose-source-shards.d.ts.map +1 -0
- package/dist/service/firehose/source/read/sim-firehose-source-shards.js +53 -0
- package/dist/service/firehose/source/read/sim-firehose-source-shards.js.map +1 -0
- package/dist/service/firehose/source/sim-firehose-kinesis-source-arn.d.ts +29 -0
- package/dist/service/firehose/source/sim-firehose-kinesis-source-arn.d.ts.map +1 -0
- package/dist/service/firehose/source/sim-firehose-kinesis-source-arn.js +57 -0
- package/dist/service/firehose/source/sim-firehose-kinesis-source-arn.js.map +1 -0
- package/dist/service/firehose/source/sim-firehose-record-source.d.ts +140 -0
- package/dist/service/firehose/source/sim-firehose-record-source.d.ts.map +1 -0
- package/dist/service/firehose/source/sim-firehose-record-source.js +53 -0
- package/dist/service/firehose/source/sim-firehose-record-source.js.map +1 -0
- package/dist/service/firehose/source/sim-firehose-source-choice.d.ts +26 -0
- package/dist/service/firehose/source/sim-firehose-source-choice.d.ts.map +1 -0
- package/dist/service/firehose/source/sim-firehose-source-choice.js +68 -0
- package/dist/service/firehose/source/sim-firehose-source-choice.js.map +1 -0
- package/dist/service/firehose/source/sim-firehose-source-failures.d.ts +38 -0
- package/dist/service/firehose/source/sim-firehose-source-failures.d.ts.map +1 -0
- package/dist/service/firehose/source/sim-firehose-source-failures.js +33 -0
- package/dist/service/firehose/source/sim-firehose-source-failures.js.map +1 -0
- package/dist/service/firehose/source/sim-firehose-source.d.ts +64 -0
- package/dist/service/firehose/source/sim-firehose-source.d.ts.map +1 -0
- package/dist/service/firehose/source/sim-firehose-source.js +58 -0
- package/dist/service/firehose/source/sim-firehose-source.js.map +1 -0
- package/dist/service/firehose/stream/sim-firehose-delivery-stream-arn.d.ts +10 -0
- package/dist/service/firehose/stream/sim-firehose-delivery-stream-arn.d.ts.map +1 -0
- package/dist/service/firehose/stream/sim-firehose-delivery-stream-arn.js +12 -0
- package/dist/service/firehose/stream/sim-firehose-delivery-stream-arn.js.map +1 -0
- package/dist/service/firehose/stream/sim-firehose-delivery-stream-name.d.ts +9 -0
- package/dist/service/firehose/stream/sim-firehose-delivery-stream-name.d.ts.map +1 -0
- package/dist/service/firehose/stream/sim-firehose-delivery-stream-name.js +25 -0
- package/dist/service/firehose/stream/sim-firehose-delivery-stream-name.js.map +1 -0
- package/dist/service/firehose/stream/sim-firehose-delivery-stream-store.d.ts +37 -0
- package/dist/service/firehose/stream/sim-firehose-delivery-stream-store.d.ts.map +1 -0
- package/dist/service/firehose/stream/sim-firehose-delivery-stream-store.js +55 -0
- package/dist/service/firehose/stream/sim-firehose-delivery-stream-store.js.map +1 -0
- package/dist/service/firehose/stream/sim-firehose-delivery-stream.d.ts +50 -0
- package/dist/service/firehose/stream/sim-firehose-delivery-stream.d.ts.map +1 -0
- package/dist/service/firehose/stream/sim-firehose-delivery-stream.factory.d.ts +57 -0
- package/dist/service/firehose/stream/sim-firehose-delivery-stream.factory.d.ts.map +1 -0
- package/dist/service/firehose/stream/sim-firehose-delivery-stream.factory.js +61 -0
- package/dist/service/firehose/stream/sim-firehose-delivery-stream.factory.js.map +1 -0
- package/dist/service/firehose/stream/sim-firehose-delivery-stream.js +42 -0
- package/dist/service/firehose/stream/sim-firehose-delivery-stream.js.map +1 -0
- package/dist/service/stepfunctions/choice/sim-states-choice-group-test.d.ts +32 -0
- package/dist/service/stepfunctions/choice/sim-states-choice-group-test.d.ts.map +1 -0
- package/dist/service/stepfunctions/choice/sim-states-choice-group-test.js +42 -0
- package/dist/service/stepfunctions/choice/sim-states-choice-group-test.js.map +1 -0
- package/dist/service/stepfunctions/choice/sim-states-choice-operand.d.ts +29 -0
- package/dist/service/stepfunctions/choice/sim-states-choice-operand.d.ts.map +1 -0
- package/dist/service/stepfunctions/choice/sim-states-choice-operand.js +38 -0
- package/dist/service/stepfunctions/choice/sim-states-choice-operand.js.map +1 -0
- package/dist/service/stepfunctions/choice/sim-states-choice-parse.d.ts +15 -0
- package/dist/service/stepfunctions/choice/sim-states-choice-parse.d.ts.map +1 -0
- package/dist/service/stepfunctions/choice/sim-states-choice-parse.js +44 -0
- package/dist/service/stepfunctions/choice/sim-states-choice-parse.js.map +1 -0
- package/dist/service/stepfunctions/choice/sim-states-choice-rule-record.d.ts +10 -0
- package/dist/service/stepfunctions/choice/sim-states-choice-rule-record.d.ts.map +1 -0
- package/dist/service/stepfunctions/choice/sim-states-choice-rule-record.js +31 -0
- package/dist/service/stepfunctions/choice/sim-states-choice-rule-record.js.map +1 -0
- package/dist/service/stepfunctions/choice/sim-states-choice-rule.d.ts +15 -0
- package/dist/service/stepfunctions/choice/sim-states-choice-rule.d.ts.map +1 -0
- package/dist/service/stepfunctions/choice/sim-states-choice-rule.js +18 -0
- package/dist/service/stepfunctions/choice/sim-states-choice-rule.js.map +1 -0
- package/dist/service/stepfunctions/choice/sim-states-choice-test-parse.d.ts +7 -0
- package/dist/service/stepfunctions/choice/sim-states-choice-test-parse.d.ts.map +1 -0
- package/dist/service/stepfunctions/choice/sim-states-choice-test-parse.js +72 -0
- package/dist/service/stepfunctions/choice/sim-states-choice-test-parse.js.map +1 -0
- package/dist/service/stepfunctions/choice/sim-states-choice-test.d.ts +33 -0
- package/dist/service/stepfunctions/choice/sim-states-choice-test.d.ts.map +1 -0
- package/dist/service/stepfunctions/choice/sim-states-choice-test.js +34 -0
- package/dist/service/stepfunctions/choice/sim-states-choice-test.js.map +1 -0
- package/dist/service/stepfunctions/choice/sim-states-comparison-families.d.ts +26 -0
- package/dist/service/stepfunctions/choice/sim-states-comparison-families.d.ts.map +1 -0
- package/dist/service/stepfunctions/choice/sim-states-comparison-families.js +65 -0
- package/dist/service/stepfunctions/choice/sim-states-comparison-families.js.map +1 -0
- package/dist/service/stepfunctions/choice/sim-states-comparison-parse.d.ts +15 -0
- package/dist/service/stepfunctions/choice/sim-states-comparison-parse.d.ts.map +1 -0
- package/dist/service/stepfunctions/choice/sim-states-comparison-parse.js +43 -0
- package/dist/service/stepfunctions/choice/sim-states-comparison-parse.js.map +1 -0
- package/dist/service/stepfunctions/choice/sim-states-comparison.d.ts +49 -0
- package/dist/service/stepfunctions/choice/sim-states-comparison.d.ts.map +1 -0
- package/dist/service/stepfunctions/choice/sim-states-comparison.js +51 -0
- package/dist/service/stepfunctions/choice/sim-states-comparison.js.map +1 -0
- package/dist/service/stepfunctions/choice/sim-states-comparisons.d.ts +6 -0
- package/dist/service/stepfunctions/choice/sim-states-comparisons.d.ts.map +1 -0
- package/dist/service/stepfunctions/choice/sim-states-comparisons.js +64 -0
- package/dist/service/stepfunctions/choice/sim-states-comparisons.js.map +1 -0
- package/dist/service/stepfunctions/choice/sim-states-glob.d.ts +14 -0
- package/dist/service/stepfunctions/choice/sim-states-glob.d.ts.map +1 -0
- package/dist/service/stepfunctions/choice/sim-states-glob.js +73 -0
- package/dist/service/stepfunctions/choice/sim-states-glob.js.map +1 -0
- package/dist/service/stepfunctions/command/execution/execution.command.d.ts +32 -0
- package/dist/service/stepfunctions/command/execution/execution.command.d.ts.map +1 -0
- package/dist/service/stepfunctions/command/execution/execution.command.js +2 -0
- package/dist/service/stepfunctions/command/execution/execution.command.js.map +1 -0
- package/dist/service/stepfunctions/command/execution/sim-states-execution-describe.d.ts +11 -0
- package/dist/service/stepfunctions/command/execution/sim-states-execution-describe.d.ts.map +1 -0
- package/dist/service/stepfunctions/command/execution/sim-states-execution-describe.js +23 -0
- package/dist/service/stepfunctions/command/execution/sim-states-execution-describe.js.map +1 -0
- package/dist/service/stepfunctions/command/execution/sim-states-execution-name.d.ts +12 -0
- package/dist/service/stepfunctions/command/execution/sim-states-execution-name.d.ts.map +1 -0
- package/dist/service/stepfunctions/command/execution/sim-states-execution-name.js +23 -0
- package/dist/service/stepfunctions/command/execution/sim-states-execution-name.js.map +1 -0
- package/dist/service/stepfunctions/command/execution/sim-states-execution-repeat.d.ts +12 -0
- package/dist/service/stepfunctions/command/execution/sim-states-execution-repeat.d.ts.map +1 -0
- package/dist/service/stepfunctions/command/execution/sim-states-execution-repeat.js +21 -0
- package/dist/service/stepfunctions/command/execution/sim-states-execution-repeat.js.map +1 -0
- package/dist/service/stepfunctions/command/execution/sim-states-execution-start.d.ts +36 -0
- package/dist/service/stepfunctions/command/execution/sim-states-execution-start.d.ts.map +1 -0
- package/dist/service/stepfunctions/command/execution/sim-states-execution-start.js +64 -0
- package/dist/service/stepfunctions/command/execution/sim-states-execution-start.js.map +1 -0
- package/dist/service/stepfunctions/command/execution/sim-states-execution-view.d.ts +18 -0
- package/dist/service/stepfunctions/command/execution/sim-states-execution-view.d.ts.map +1 -0
- package/dist/service/stepfunctions/command/execution/sim-states-execution-view.js +41 -0
- package/dist/service/stepfunctions/command/execution/sim-states-execution-view.js.map +1 -0
- package/dist/service/stepfunctions/command/machine/machine.command.d.ts +63 -0
- package/dist/service/stepfunctions/command/machine/machine.command.d.ts.map +1 -0
- package/dist/service/stepfunctions/command/machine/machine.command.js +2 -0
- package/dist/service/stepfunctions/command/machine/machine.command.js.map +1 -0
- package/dist/service/stepfunctions/command/machine/sim-state-machine-create.d.ts +30 -0
- package/dist/service/stepfunctions/command/machine/sim-state-machine-create.d.ts.map +1 -0
- package/dist/service/stepfunctions/command/machine/sim-state-machine-create.js +64 -0
- package/dist/service/stepfunctions/command/machine/sim-state-machine-create.js.map +1 -0
- package/dist/service/stepfunctions/command/machine/sim-state-machine-input.d.ts +22 -0
- package/dist/service/stepfunctions/command/machine/sim-state-machine-input.d.ts.map +1 -0
- package/dist/service/stepfunctions/command/machine/sim-state-machine-input.js +38 -0
- package/dist/service/stepfunctions/command/machine/sim-state-machine-input.js.map +1 -0
- package/dist/service/stepfunctions/command/machine/sim-state-machine-lookup.d.ts +7 -0
- package/dist/service/stepfunctions/command/machine/sim-state-machine-lookup.d.ts.map +1 -0
- package/dist/service/stepfunctions/command/machine/sim-state-machine-lookup.js +15 -0
- package/dist/service/stepfunctions/command/machine/sim-state-machine-lookup.js.map +1 -0
- package/dist/service/stepfunctions/command/machine/sim-state-machine-reads.d.ts +18 -0
- package/dist/service/stepfunctions/command/machine/sim-state-machine-reads.d.ts.map +1 -0
- package/dist/service/stepfunctions/command/machine/sim-state-machine-reads.js +49 -0
- package/dist/service/stepfunctions/command/machine/sim-state-machine-reads.js.map +1 -0
- package/dist/service/stepfunctions/command/machine/sim-state-machine-writes.d.ts +26 -0
- package/dist/service/stepfunctions/command/machine/sim-state-machine-writes.d.ts.map +1 -0
- package/dist/service/stepfunctions/command/machine/sim-state-machine-writes.js +44 -0
- package/dist/service/stepfunctions/command/machine/sim-state-machine-writes.js.map +1 -0
- package/dist/service/stepfunctions/command/sim-step-functions-command.types.d.ts +6 -0
- package/dist/service/stepfunctions/command/sim-step-functions-command.types.d.ts.map +1 -0
- package/dist/service/stepfunctions/command/sim-step-functions-command.types.js +2 -0
- package/dist/service/stepfunctions/command/sim-step-functions-command.types.js.map +1 -0
- package/dist/service/stepfunctions/command/sim-step-functions-request-options.d.ts +12 -0
- package/dist/service/stepfunctions/command/sim-step-functions-request-options.d.ts.map +1 -0
- package/dist/service/stepfunctions/command/sim-step-functions-request-options.js +2 -0
- package/dist/service/stepfunctions/command/sim-step-functions-request-options.js.map +1 -0
- package/dist/service/stepfunctions/data/sim-states-result-path.js +1 -1
- package/dist/service/stepfunctions/data/sim-states-result-path.js.map +1 -1
- package/dist/service/stepfunctions/data/sim-states-timestamp-fields.d.ts +10 -0
- package/dist/service/stepfunctions/data/sim-states-timestamp-fields.d.ts.map +1 -0
- package/dist/service/stepfunctions/data/sim-states-timestamp-fields.js +45 -0
- package/dist/service/stepfunctions/data/sim-states-timestamp-fields.js.map +1 -0
- package/dist/service/stepfunctions/data/sim-states-timestamp.d.ts +10 -0
- package/dist/service/stepfunctions/data/sim-states-timestamp.d.ts.map +1 -0
- package/dist/service/stepfunctions/data/sim-states-timestamp.js +26 -0
- package/dist/service/stepfunctions/data/sim-states-timestamp.js.map +1 -0
- package/dist/service/stepfunctions/definition/sim-states-definition-parse.d.ts +10 -0
- package/dist/service/stepfunctions/definition/sim-states-definition-parse.d.ts.map +1 -0
- package/dist/service/stepfunctions/definition/sim-states-definition-parse.js +61 -0
- package/dist/service/stepfunctions/definition/sim-states-definition-parse.js.map +1 -0
- package/dist/service/stepfunctions/definition/sim-states-definition.d.ts +15 -0
- package/dist/service/stepfunctions/definition/sim-states-definition.d.ts.map +1 -0
- package/dist/service/stepfunctions/definition/sim-states-definition.js +2 -0
- package/dist/service/stepfunctions/definition/sim-states-definition.js.map +1 -0
- package/dist/service/stepfunctions/definition/sim-states-state-fields.d.ts +17 -0
- package/dist/service/stepfunctions/definition/sim-states-state-fields.d.ts.map +1 -0
- package/dist/service/stepfunctions/definition/sim-states-state-fields.js +47 -0
- package/dist/service/stepfunctions/definition/sim-states-state-fields.js.map +1 -0
- package/dist/service/stepfunctions/definition/sim-states-state-parse.d.ts +7 -0
- package/dist/service/stepfunctions/definition/sim-states-state-parse.d.ts.map +1 -0
- package/dist/service/stepfunctions/definition/sim-states-state-parse.js +67 -0
- package/dist/service/stepfunctions/definition/sim-states-state-parse.js.map +1 -0
- package/dist/service/stepfunctions/definition/sim-states-state.d.ts +98 -0
- package/dist/service/stepfunctions/definition/sim-states-state.d.ts.map +1 -0
- package/dist/service/stepfunctions/definition/sim-states-state.js +34 -0
- package/dist/service/stepfunctions/definition/sim-states-state.js.map +1 -0
- package/dist/service/stepfunctions/definition/sim-states-transitions.d.ts +10 -0
- package/dist/service/stepfunctions/definition/sim-states-transitions.d.ts.map +1 -0
- package/dist/service/stepfunctions/definition/sim-states-transitions.js +79 -0
- package/dist/service/stepfunctions/definition/sim-states-transitions.js.map +1 -0
- package/dist/service/stepfunctions/error/sim-step-functions.error.d.ts +99 -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 +119 -0
- package/dist/service/stepfunctions/error/sim-step-functions.error.js.map +1 -1
- package/dist/service/stepfunctions/execution/sim-states-execution-store.d.ts +33 -0
- package/dist/service/stepfunctions/execution/sim-states-execution-store.d.ts.map +1 -0
- package/dist/service/stepfunctions/execution/sim-states-execution-store.js +55 -0
- package/dist/service/stepfunctions/execution/sim-states-execution-store.js.map +1 -0
- package/dist/service/stepfunctions/execution/sim-states-execution.d.ts +53 -0
- package/dist/service/stepfunctions/execution/sim-states-execution.d.ts.map +1 -0
- package/dist/service/stepfunctions/execution/sim-states-execution.js +77 -0
- package/dist/service/stepfunctions/execution/sim-states-execution.js.map +1 -0
- package/dist/service/stepfunctions/execution/sim-states-failure.d.ts +24 -0
- package/dist/service/stepfunctions/execution/sim-states-failure.d.ts.map +1 -0
- package/dist/service/stepfunctions/execution/sim-states-failure.js +50 -0
- package/dist/service/stepfunctions/execution/sim-states-failure.js.map +1 -0
- package/dist/service/stepfunctions/execution/sim-states-interpreter.d.ts +42 -0
- package/dist/service/stepfunctions/execution/sim-states-interpreter.d.ts.map +1 -0
- package/dist/service/stepfunctions/execution/sim-states-interpreter.js +124 -0
- package/dist/service/stepfunctions/execution/sim-states-interpreter.js.map +1 -0
- package/dist/service/stepfunctions/execution/sim-states-run-choice.d.ts +12 -0
- package/dist/service/stepfunctions/execution/sim-states-run-choice.d.ts.map +1 -0
- package/dist/service/stepfunctions/execution/sim-states-run-choice.js +24 -0
- package/dist/service/stepfunctions/execution/sim-states-run-choice.js.map +1 -0
- package/dist/service/stepfunctions/execution/sim-states-run-state.d.ts +15 -0
- package/dist/service/stepfunctions/execution/sim-states-run-state.d.ts.map +1 -0
- package/dist/service/stepfunctions/execution/sim-states-run-state.js +68 -0
- package/dist/service/stepfunctions/execution/sim-states-run-state.js.map +1 -0
- package/dist/service/stepfunctions/execution/sim-states-run-task.d.ts +14 -0
- package/dist/service/stepfunctions/execution/sim-states-run-task.d.ts.map +1 -0
- package/dist/service/stepfunctions/execution/sim-states-run-task.js +23 -0
- package/dist/service/stepfunctions/execution/sim-states-run-task.js.map +1 -0
- package/dist/service/stepfunctions/execution/sim-states-run-wait.d.ts +11 -0
- package/dist/service/stepfunctions/execution/sim-states-run-wait.d.ts.map +1 -0
- package/dist/service/stepfunctions/execution/sim-states-run-wait.js +21 -0
- package/dist/service/stepfunctions/execution/sim-states-run-wait.js.map +1 -0
- package/dist/service/stepfunctions/execution/sim-states-settlement.d.ts +27 -0
- package/dist/service/stepfunctions/execution/sim-states-settlement.d.ts.map +1 -0
- package/dist/service/stepfunctions/execution/sim-states-settlement.js +33 -0
- package/dist/service/stepfunctions/execution/sim-states-settlement.js.map +1 -0
- package/dist/service/stepfunctions/execution/sim-states-state-outcome.d.ts +46 -0
- package/dist/service/stepfunctions/execution/sim-states-state-outcome.d.ts.map +1 -0
- package/dist/service/stepfunctions/execution/sim-states-state-outcome.js +2 -0
- package/dist/service/stepfunctions/execution/sim-states-state-outcome.js.map +1 -0
- package/dist/service/stepfunctions/execution/sim-states-state-runner.d.ts +27 -0
- package/dist/service/stepfunctions/execution/sim-states-state-runner.d.ts.map +1 -0
- package/dist/service/stepfunctions/execution/sim-states-state-runner.js +36 -0
- package/dist/service/stepfunctions/execution/sim-states-state-runner.js.map +1 -0
- package/dist/service/stepfunctions/index.d.ts +16 -0
- package/dist/service/stepfunctions/index.d.ts.map +1 -0
- package/dist/service/stepfunctions/index.js +9 -0
- package/dist/service/stepfunctions/index.js.map +1 -0
- package/dist/service/stepfunctions/machine/sim-state-machine-arn.d.ts +30 -0
- package/dist/service/stepfunctions/machine/sim-state-machine-arn.d.ts.map +1 -0
- package/dist/service/stepfunctions/machine/sim-state-machine-arn.js +48 -0
- package/dist/service/stepfunctions/machine/sim-state-machine-arn.js.map +1 -0
- package/dist/service/stepfunctions/machine/sim-state-machine-store.d.ts +20 -0
- package/dist/service/stepfunctions/machine/sim-state-machine-store.d.ts.map +1 -0
- package/dist/service/stepfunctions/machine/sim-state-machine-store.js +32 -0
- package/dist/service/stepfunctions/machine/sim-state-machine-store.js.map +1 -0
- package/dist/service/stepfunctions/machine/sim-state-machine.d.ts +54 -0
- package/dist/service/stepfunctions/machine/sim-state-machine.d.ts.map +1 -0
- package/dist/service/stepfunctions/machine/sim-state-machine.js +60 -0
- package/dist/service/stepfunctions/machine/sim-state-machine.js.map +1 -0
- package/dist/service/stepfunctions/machine/sim-states-name.d.ts +10 -0
- package/dist/service/stepfunctions/machine/sim-states-name.d.ts.map +1 -0
- package/dist/service/stepfunctions/machine/sim-states-name.js +42 -0
- package/dist/service/stepfunctions/machine/sim-states-name.js.map +1 -0
- package/dist/service/stepfunctions/sdk/sim-step-functions-sdk-command-router.d.ts +19 -0
- package/dist/service/stepfunctions/sdk/sim-step-functions-sdk-command-router.d.ts.map +1 -0
- package/dist/service/stepfunctions/sdk/sim-step-functions-sdk-command-router.js +53 -0
- package/dist/service/stepfunctions/sdk/sim-step-functions-sdk-command-router.js.map +1 -0
- package/dist/service/stepfunctions/sim-step-functions-inspection.d.ts +22 -0
- package/dist/service/stepfunctions/sim-step-functions-inspection.d.ts.map +1 -0
- package/dist/service/stepfunctions/sim-step-functions-inspection.js +29 -0
- package/dist/service/stepfunctions/sim-step-functions-inspection.js.map +1 -0
- package/dist/service/stepfunctions/sim-step-functions.d.ts +67 -0
- package/dist/service/stepfunctions/sim-step-functions.d.ts.map +1 -0
- package/dist/service/stepfunctions/sim-step-functions.js +124 -0
- package/dist/service/stepfunctions/sim-step-functions.js.map +1 -0
- package/dist/service/stepfunctions/task/sim-aws-states-task-targets.d.ts +33 -0
- package/dist/service/stepfunctions/task/sim-aws-states-task-targets.d.ts.map +1 -0
- package/dist/service/stepfunctions/task/sim-aws-states-task-targets.js +49 -0
- package/dist/service/stepfunctions/task/sim-aws-states-task-targets.js.map +1 -0
- package/dist/service/stepfunctions/task/sim-states-execution-role.d.ts +25 -0
- package/dist/service/stepfunctions/task/sim-states-execution-role.d.ts.map +1 -0
- package/dist/service/stepfunctions/task/sim-states-execution-role.js +57 -0
- package/dist/service/stepfunctions/task/sim-states-execution-role.js.map +1 -0
- package/dist/service/stepfunctions/task/sim-states-function-arn-target.d.ts +31 -0
- package/dist/service/stepfunctions/task/sim-states-function-arn-target.d.ts.map +1 -0
- package/dist/service/stepfunctions/task/sim-states-function-arn-target.js +39 -0
- package/dist/service/stepfunctions/task/sim-states-function-arn-target.js.map +1 -0
- package/dist/service/stepfunctions/task/sim-states-function-location.d.ts +20 -0
- package/dist/service/stepfunctions/task/sim-states-function-location.d.ts.map +1 -0
- package/dist/service/stepfunctions/task/sim-states-function-location.js +28 -0
- package/dist/service/stepfunctions/task/sim-states-function-location.js.map +1 -0
- package/dist/service/stepfunctions/task/sim-states-lambda-invoke-target.d.ts +34 -0
- package/dist/service/stepfunctions/task/sim-states-lambda-invoke-target.d.ts.map +1 -0
- package/dist/service/stepfunctions/task/sim-states-lambda-invoke-target.js +65 -0
- package/dist/service/stepfunctions/task/sim-states-lambda-invoke-target.js.map +1 -0
- package/dist/service/stepfunctions/task/sim-states-no-task-targets.d.ts +16 -0
- package/dist/service/stepfunctions/task/sim-states-no-task-targets.d.ts.map +1 -0
- package/dist/service/stepfunctions/task/sim-states-no-task-targets.js +19 -0
- package/dist/service/stepfunctions/task/sim-states-no-task-targets.js.map +1 -0
- package/dist/service/stepfunctions/task/sim-states-task-fields.d.ts +14 -0
- package/dist/service/stepfunctions/task/sim-states-task-fields.d.ts.map +1 -0
- package/dist/service/stepfunctions/task/sim-states-task-fields.js +29 -0
- package/dist/service/stepfunctions/task/sim-states-task-fields.js.map +1 -0
- package/dist/service/stepfunctions/task/sim-states-task-function.d.ts +57 -0
- package/dist/service/stepfunctions/task/sim-states-task-function.d.ts.map +1 -0
- package/dist/service/stepfunctions/task/sim-states-task-function.js +93 -0
- package/dist/service/stepfunctions/task/sim-states-task-function.js.map +1 -0
- package/dist/service/stepfunctions/task/sim-states-task-invocation.d.ts +29 -0
- package/dist/service/stepfunctions/task/sim-states-task-invocation.d.ts.map +1 -0
- package/dist/service/stepfunctions/task/sim-states-task-invocation.js +2 -0
- package/dist/service/stepfunctions/task/sim-states-task-invocation.js.map +1 -0
- package/dist/service/stepfunctions/task/sim-states-task-resource.d.ts +12 -0
- package/dist/service/stepfunctions/task/sim-states-task-resource.d.ts.map +1 -0
- package/dist/service/stepfunctions/task/sim-states-task-resource.js +64 -0
- package/dist/service/stepfunctions/task/sim-states-task-resource.js.map +1 -0
- package/dist/service/stepfunctions/task/sim-states-task-target.d.ts +37 -0
- package/dist/service/stepfunctions/task/sim-states-task-target.d.ts.map +1 -0
- package/dist/service/stepfunctions/task/sim-states-task-target.js +12 -0
- package/dist/service/stepfunctions/task/sim-states-task-target.js.map +1 -0
- package/dist/service/stepfunctions/wait/sim-states-wait-due.d.ts +11 -0
- package/dist/service/stepfunctions/wait/sim-states-wait-due.d.ts.map +1 -0
- package/dist/service/stepfunctions/wait/sim-states-wait-due.js +67 -0
- package/dist/service/stepfunctions/wait/sim-states-wait-due.js.map +1 -0
- package/dist/service/stepfunctions/wait/sim-states-wait-fields.d.ts +18 -0
- package/dist/service/stepfunctions/wait/sim-states-wait-fields.d.ts.map +1 -0
- package/dist/service/stepfunctions/wait/sim-states-wait-fields.js +85 -0
- package/dist/service/stepfunctions/wait/sim-states-wait-fields.js.map +1 -0
- package/package.json +11 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sim-states-function-location.d.ts","sourceRoot":"","sources":["../../../../src/service/stepfunctions/task/sim-states-function-location.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,8BAA8B,CAAC;AACpE,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,2CAA2C,CAAC;AAC1F,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,6BAA6B,CAAC;AAEjE,OAAO,EACL,KAAK,0BAA0B,EAEhC,MAAM,wDAAwD,CAAC;AAGhE;;GAEG;AACH,MAAM,WAAW,yBAAyB;IACxC,QAAQ,CAAC,SAAS,EAAE,eAAe,CAAC;IACpC,QAAQ,CAAC,UAAU,EAAE,aAAa,CAAC;IACnC,QAAQ,CAAC,SAAS,EAAE,0BAA0B,CAAC;CAChD;AAED;;;;;GAKG;AACH,wBAAgB,yBAAyB,CACvC,iBAAiB,EAAE,MAAM,EACzB,KAAK,EAAE,wBAAwB,EAC/B,SAAS,EAAE,MAAM,GAChB,yBAAyB,CAsB3B"}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { parseSimLambdaFunctionArn } from "../../lambda/function/sim-lambda-function-arn-parts.js";
|
|
2
|
+
import { simLambdaFunctionReferenceOf, } from "../../lambda/function/sim-lambda-function-reference.js";
|
|
3
|
+
import { SimStatesTaskFailure } from "../error/sim-step-functions.error.js";
|
|
4
|
+
/**
|
|
5
|
+
* Work out where the function a task named lives.
|
|
6
|
+
*
|
|
7
|
+
* An ARN carries its own Account and Region. A bare name, which the Lambda API
|
|
8
|
+
* takes as well, is a function of the state machine's own Account and Region.
|
|
9
|
+
*/
|
|
10
|
+
export function simStatesFunctionLocation(functionNameOrArn, scope, stateName) {
|
|
11
|
+
if (!functionNameOrArn.startsWith("arn:")) {
|
|
12
|
+
return {
|
|
13
|
+
...scope,
|
|
14
|
+
reference: simLambdaFunctionReferenceOf(functionNameOrArn),
|
|
15
|
+
};
|
|
16
|
+
}
|
|
17
|
+
const parts = parseSimLambdaFunctionArn(functionNameOrArn);
|
|
18
|
+
if (parts === undefined) {
|
|
19
|
+
throw new SimStatesTaskFailure(`The Task state ${stateName} invokes ${functionNameOrArn}, which is ` +
|
|
20
|
+
"not the ARN of a Lambda function.");
|
|
21
|
+
}
|
|
22
|
+
return {
|
|
23
|
+
accountId: parts.accountId,
|
|
24
|
+
regionName: parts.regionName,
|
|
25
|
+
reference: { functionName: parts.functionName, qualifier: parts.qualifier },
|
|
26
|
+
};
|
|
27
|
+
}
|
|
28
|
+
//# sourceMappingURL=sim-states-function-location.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sim-states-function-location.js","sourceRoot":"","sources":["../../../../src/service/stepfunctions/task/sim-states-function-location.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,yBAAyB,EAAE,MAAM,wDAAwD,CAAC;AACnG,OAAO,EAEL,4BAA4B,GAC7B,MAAM,wDAAwD,CAAC;AAChE,OAAO,EAAE,oBAAoB,EAAE,MAAM,sCAAsC,CAAC;AAW5E;;;;;GAKG;AACH,MAAM,UAAU,yBAAyB,CACvC,iBAAyB,EACzB,KAA+B,EAC/B,SAAiB;IAEjB,IAAI,CAAC,iBAAiB,CAAC,UAAU,CAAC,MAAM,CAAC,EAAE,CAAC;QAC1C,OAAO;YACL,GAAG,KAAK;YACR,SAAS,EAAE,4BAA4B,CAAC,iBAAiB,CAAC;SAC3D,CAAC;IACJ,CAAC;IAED,MAAM,KAAK,GAAG,yBAAyB,CAAC,iBAAiB,CAAC,CAAC;IAE3D,IAAI,KAAK,KAAK,SAAS,EAAE,CAAC;QACxB,MAAM,IAAI,oBAAoB,CAC5B,kBAAkB,SAAS,YAAY,iBAAiB,aAAa;YACnE,mCAAmC,CACtC,CAAC;IACJ,CAAC;IAED,OAAO;QACL,SAAS,EAAE,KAAK,CAAC,SAAS;QAC1B,UAAU,EAAE,KAAK,CAAC,UAAU;QAC5B,SAAS,EAAE,EAAE,YAAY,EAAE,KAAK,CAAC,YAAY,EAAE,SAAS,EAAE,KAAK,CAAC,SAAS,EAAE;KAC5E,CAAC;AACJ,CAAC"}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import type { JSONValue } from "../../../util/type-guard/json.js";
|
|
2
|
+
import { type SimStatesTaskCall, SimStatesTaskTarget } from "./sim-states-task-target.js";
|
|
3
|
+
/**
|
|
4
|
+
* The `Resource` of the Lambda integration Step Functions optimises.
|
|
5
|
+
*/
|
|
6
|
+
export declare const simStatesLambdaInvokeResource = "arn:aws:states:::lambda:invoke";
|
|
7
|
+
/**
|
|
8
|
+
* The two fields of the invocation this integration takes.
|
|
9
|
+
*/
|
|
10
|
+
export declare const simStatesLambdaInvokeParameters: readonly ["FunctionName", "Payload"];
|
|
11
|
+
/**
|
|
12
|
+
* A `Task` state invoking a function through `arn:aws:states:::lambda:invoke`.
|
|
13
|
+
*
|
|
14
|
+
* The state is talking to the Lambda API rather than to the function, so its
|
|
15
|
+
* `Parameters` are an `Invoke` request and its result is an `Invoke` response.
|
|
16
|
+
* That is the form CDK's `LambdaInvoke` emits by default.
|
|
17
|
+
*/
|
|
18
|
+
export declare class SimStatesLambdaInvokeTarget extends SimStatesTaskTarget {
|
|
19
|
+
/**
|
|
20
|
+
* Read the `Invoke` request the state's `Parameters` built.
|
|
21
|
+
*/
|
|
22
|
+
call(payload: JSONValue, stateName: string): SimStatesTaskCall;
|
|
23
|
+
/**
|
|
24
|
+
* Answer the way the Lambda API answers an `Invoke`.
|
|
25
|
+
*/
|
|
26
|
+
answer(result: JSONValue, executedVersion: string): JSONValue;
|
|
27
|
+
/**
|
|
28
|
+
* A handler raising fails the task under the name Step Functions gives a
|
|
29
|
+
* task that failed, which is what a `Retry` or a `Catch` on this integration
|
|
30
|
+
* matches.
|
|
31
|
+
*/
|
|
32
|
+
handlerFailure(error: unknown, stateName: string): Error;
|
|
33
|
+
}
|
|
34
|
+
//# sourceMappingURL=sim-states-lambda-invoke-target.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sim-states-lambda-invoke-target.d.ts","sourceRoot":"","sources":["../../../../src/service/stepfunctions/task/sim-states-lambda-invoke-target.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,kCAAkC,CAAC;AAMlE,OAAO,EACL,KAAK,iBAAiB,EACtB,mBAAmB,EACpB,MAAM,6BAA6B,CAAC;AAErC;;GAEG;AACH,eAAO,MAAM,6BAA6B,mCAAmC,CAAC;AAE9E;;GAEG;AACH,eAAO,MAAM,+BAA+B,YAC1C,cAAc,EACd,SAAS,CACD,CAAC;AAEX;;;;;;GAMG;AACH,qBAAa,2BAA4B,SAAQ,mBAAmB;IAClE;;OAEG;IACM,IAAI,CAAC,OAAO,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM,GAAG,iBAAiB,CAuBtE;IAED;;OAEG;IACM,MAAM,CAAC,MAAM,EAAE,SAAS,EAAE,eAAe,EAAE,MAAM,GAAG,SAAS,CAMrE;IAED;;;;OAIG;IACM,cAAc,CAAC,KAAK,EAAE,OAAO,EAAE,SAAS,EAAE,MAAM,GAAG,KAAK,CAOhE;CACF"}
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
import { functionErrorDocument } from "../../lambda/command/invoke/invoke-payload.js";
|
|
2
|
+
import { isRecord } from "../../../util/type-guard/record.js";
|
|
3
|
+
import { SimStatesRuntimeFailure, SimStatesTaskFailure, } from "../error/sim-step-functions.error.js";
|
|
4
|
+
import { SimStatesTaskTarget, } from "./sim-states-task-target.js";
|
|
5
|
+
/**
|
|
6
|
+
* The `Resource` of the Lambda integration Step Functions optimises.
|
|
7
|
+
*/
|
|
8
|
+
export const simStatesLambdaInvokeResource = "arn:aws:states:::lambda:invoke";
|
|
9
|
+
/**
|
|
10
|
+
* The two fields of the invocation this integration takes.
|
|
11
|
+
*/
|
|
12
|
+
export const simStatesLambdaInvokeParameters = [
|
|
13
|
+
"FunctionName",
|
|
14
|
+
"Payload",
|
|
15
|
+
];
|
|
16
|
+
/**
|
|
17
|
+
* A `Task` state invoking a function through `arn:aws:states:::lambda:invoke`.
|
|
18
|
+
*
|
|
19
|
+
* The state is talking to the Lambda API rather than to the function, so its
|
|
20
|
+
* `Parameters` are an `Invoke` request and its result is an `Invoke` response.
|
|
21
|
+
* That is the form CDK's `LambdaInvoke` emits by default.
|
|
22
|
+
*/
|
|
23
|
+
export class SimStatesLambdaInvokeTarget extends SimStatesTaskTarget {
|
|
24
|
+
/**
|
|
25
|
+
* Read the `Invoke` request the state's `Parameters` built.
|
|
26
|
+
*/
|
|
27
|
+
call(payload, stateName) {
|
|
28
|
+
if (!isRecord(payload)) {
|
|
29
|
+
throw new SimStatesRuntimeFailure(`The Task state ${stateName} built no Invoke request. Its ` +
|
|
30
|
+
"Parameters name the function to invoke.");
|
|
31
|
+
}
|
|
32
|
+
const functionName = payload["FunctionName"];
|
|
33
|
+
if (typeof functionName !== "string") {
|
|
34
|
+
throw new SimStatesRuntimeFailure(`The Task state ${stateName} has a FunctionName that is not the ` +
|
|
35
|
+
"name or ARN of a function.");
|
|
36
|
+
}
|
|
37
|
+
return {
|
|
38
|
+
functionNameOrArn: functionName,
|
|
39
|
+
// A request carrying no Payload invokes the function with an empty
|
|
40
|
+
// event, as an Invoke carrying no payload does.
|
|
41
|
+
payload: payload["Payload"] ?? {},
|
|
42
|
+
};
|
|
43
|
+
}
|
|
44
|
+
/**
|
|
45
|
+
* Answer the way the Lambda API answers an `Invoke`.
|
|
46
|
+
*/
|
|
47
|
+
answer(result, executedVersion) {
|
|
48
|
+
return {
|
|
49
|
+
ExecutedVersion: executedVersion,
|
|
50
|
+
Payload: result,
|
|
51
|
+
StatusCode: 200,
|
|
52
|
+
};
|
|
53
|
+
}
|
|
54
|
+
/**
|
|
55
|
+
* A handler raising fails the task under the name Step Functions gives a
|
|
56
|
+
* task that failed, which is what a `Retry` or a `Catch` on this integration
|
|
57
|
+
* matches.
|
|
58
|
+
*/
|
|
59
|
+
handlerFailure(error, stateName) {
|
|
60
|
+
const document = functionErrorDocument(error);
|
|
61
|
+
return new SimStatesTaskFailure(`The function the Task state ${stateName} invoked raised ` +
|
|
62
|
+
`${document.errorType}: ${document.errorMessage}`);
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
//# sourceMappingURL=sim-states-lambda-invoke-target.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sim-states-lambda-invoke-target.js","sourceRoot":"","sources":["../../../../src/service/stepfunctions/task/sim-states-lambda-invoke-target.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,qBAAqB,EAAE,MAAM,+CAA+C,CAAC;AAEtF,OAAO,EAAE,QAAQ,EAAE,MAAM,oCAAoC,CAAC;AAC9D,OAAO,EACL,uBAAuB,EACvB,oBAAoB,GACrB,MAAM,sCAAsC,CAAC;AAC9C,OAAO,EAEL,mBAAmB,GACpB,MAAM,6BAA6B,CAAC;AAErC;;GAEG;AACH,MAAM,CAAC,MAAM,6BAA6B,GAAG,gCAAgC,CAAC;AAE9E;;GAEG;AACH,MAAM,CAAC,MAAM,+BAA+B,GAAG;IAC7C,cAAc;IACd,SAAS;CACD,CAAC;AAEX;;;;;;GAMG;AACH,MAAM,OAAO,2BAA4B,SAAQ,mBAAmB;IAClE;;OAEG;IACM,IAAI,CAAC,OAAkB,EAAE,SAAiB;QACjD,IAAI,CAAC,QAAQ,CAAC,OAAO,CAAC,EAAE,CAAC;YACvB,MAAM,IAAI,uBAAuB,CAC/B,kBAAkB,SAAS,gCAAgC;gBACzD,yCAAyC,CAC5C,CAAC;QACJ,CAAC;QAED,MAAM,YAAY,GAAG,OAAO,CAAC,cAAc,CAAC,CAAC;QAE7C,IAAI,OAAO,YAAY,KAAK,QAAQ,EAAE,CAAC;YACrC,MAAM,IAAI,uBAAuB,CAC/B,kBAAkB,SAAS,sCAAsC;gBAC/D,4BAA4B,CAC/B,CAAC;QACJ,CAAC;QAED,OAAO;YACL,iBAAiB,EAAE,YAAY;YAC/B,mEAAmE;YACnE,gDAAgD;YAChD,OAAO,EAAE,OAAO,CAAC,SAAS,CAAC,IAAI,EAAE;SAClC,CAAC;IACJ,CAAC;IAED;;OAEG;IACM,MAAM,CAAC,MAAiB,EAAE,eAAuB;QACxD,OAAO;YACL,eAAe,EAAE,eAAe;YAChC,OAAO,EAAE,MAAM;YACf,UAAU,EAAE,GAAG;SAChB,CAAC;IACJ,CAAC;IAED;;;;OAIG;IACM,cAAc,CAAC,KAAc,EAAE,SAAiB;QACvD,MAAM,QAAQ,GAAG,qBAAqB,CAAC,KAAK,CAAC,CAAC;QAE9C,OAAO,IAAI,oBAAoB,CAC7B,+BAA+B,SAAS,kBAAkB;YACxD,GAAG,QAAQ,CAAC,SAAS,KAAK,QAAQ,CAAC,YAAY,EAAE,CACpD,CAAC;IACJ,CAAC;CACF"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import type { JSONValue } from "../../../util/type-guard/json.js";
|
|
2
|
+
import type { SimStatesTaskInvocation, SimStatesTaskTargets } from "./sim-states-task-invocation.js";
|
|
3
|
+
/**
|
|
4
|
+
* What a simulated Step Functions built on its own can invoke, which is
|
|
5
|
+
* nothing.
|
|
6
|
+
*
|
|
7
|
+
* A Lambda function in another simulated service is only reachable through
|
|
8
|
+
* SimAws, so a `SimStepFunctions` constructed directly has nowhere to send a
|
|
9
|
+
* task. Every task fails saying so, rather than quietly succeeding: a state
|
|
10
|
+
* machine that appears to have invoked a function that was never reachable is
|
|
11
|
+
* the worst of the possible answers.
|
|
12
|
+
*/
|
|
13
|
+
export declare class SimStatesNoTaskTargets implements SimStatesTaskTargets {
|
|
14
|
+
invoke(invocation: SimStatesTaskInvocation): Promise<JSONValue>;
|
|
15
|
+
}
|
|
16
|
+
//# sourceMappingURL=sim-states-no-task-targets.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sim-states-no-task-targets.d.ts","sourceRoot":"","sources":["../../../../src/service/stepfunctions/task/sim-states-no-task-targets.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,kCAAkC,CAAC;AAElE,OAAO,KAAK,EACV,uBAAuB,EACvB,oBAAoB,EACrB,MAAM,iCAAiC,CAAC;AAEzC;;;;;;;;;GASG;AACH,qBAAa,sBAAuB,YAAW,oBAAoB;IACjE,MAAM,CAAC,UAAU,EAAE,uBAAuB,GAAG,OAAO,CAAC,SAAS,CAAC,CAQ9D;CACF"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { SimStatesTaskFailure } from "../error/sim-step-functions.error.js";
|
|
2
|
+
/**
|
|
3
|
+
* What a simulated Step Functions built on its own can invoke, which is
|
|
4
|
+
* nothing.
|
|
5
|
+
*
|
|
6
|
+
* A Lambda function in another simulated service is only reachable through
|
|
7
|
+
* SimAws, so a `SimStepFunctions` constructed directly has nowhere to send a
|
|
8
|
+
* task. Every task fails saying so, rather than quietly succeeding: a state
|
|
9
|
+
* machine that appears to have invoked a function that was never reachable is
|
|
10
|
+
* the worst of the possible answers.
|
|
11
|
+
*/
|
|
12
|
+
export class SimStatesNoTaskTargets {
|
|
13
|
+
invoke(invocation) {
|
|
14
|
+
return Promise.reject(new SimStatesTaskFailure(`This simulated Step Functions has no functions to invoke, so the ` +
|
|
15
|
+
`Task state ${invocation.stateName} did nothing. Reach Step ` +
|
|
16
|
+
"Functions through SimAws for a state machine that invokes one."));
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
//# sourceMappingURL=sim-states-no-task-targets.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sim-states-no-task-targets.js","sourceRoot":"","sources":["../../../../src/service/stepfunctions/task/sim-states-no-task-targets.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,oBAAoB,EAAE,MAAM,sCAAsC,CAAC;AAM5E;;;;;;;;;GASG;AACH,MAAM,OAAO,sBAAsB;IACjC,MAAM,CAAC,UAAmC;QACxC,OAAO,OAAO,CAAC,MAAM,CACnB,IAAI,oBAAoB,CACtB,mEAAmE;YACjE,cAAc,UAAU,CAAC,SAAS,2BAA2B;YAC7D,gEAAgE,CACnE,CACF,CAAC;IACJ,CAAC;CACF"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import type { JSONValue } from "../../../util/type-guard/json.js";
|
|
2
|
+
/**
|
|
3
|
+
* The fields of a `Task` state this simulator has no implementation for.
|
|
4
|
+
*/
|
|
5
|
+
export declare const simStatesTaskFieldsUnsimulated: readonly ["Retry", "Catch", "TimeoutSeconds", "TimeoutSecondsPath", "HeartbeatSeconds", "HeartbeatSecondsPath", "Credentials"];
|
|
6
|
+
/**
|
|
7
|
+
* Refuse the fields of a `Task` state this simulator does not run.
|
|
8
|
+
*
|
|
9
|
+
* A definition carrying one of them would behave differently here than it does
|
|
10
|
+
* on AWS. A task that failed would end the execution rather than being retried,
|
|
11
|
+
* and a task that ran long would answer rather than time out.
|
|
12
|
+
*/
|
|
13
|
+
export declare function checkSimStatesTaskFields(stateName: string, state: Record<string, JSONValue>): void;
|
|
14
|
+
//# sourceMappingURL=sim-states-task-fields.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sim-states-task-fields.d.ts","sourceRoot":"","sources":["../../../../src/service/stepfunctions/task/sim-states-task-fields.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,kCAAkC,CAAC;AAGlE;;GAEG;AACH,eAAO,MAAM,8BAA8B,YACzC,OAAO,EACP,OAAO,EACP,gBAAgB,EAChB,oBAAoB,EACpB,kBAAkB,EAClB,sBAAsB,EACtB,aAAa,CACL,CAAC;AAEX;;;;;;GAMG;AACH,wBAAgB,wBAAwB,CACtC,SAAS,EAAE,MAAM,EACjB,KAAK,EAAE,MAAM,CAAC,MAAM,EAAE,SAAS,CAAC,GAC/B,IAAI,CAYN"}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { SimStatesUnsimulatedInput } from "../error/sim-step-functions.error.js";
|
|
2
|
+
/**
|
|
3
|
+
* The fields of a `Task` state this simulator has no implementation for.
|
|
4
|
+
*/
|
|
5
|
+
export const simStatesTaskFieldsUnsimulated = [
|
|
6
|
+
"Retry",
|
|
7
|
+
"Catch",
|
|
8
|
+
"TimeoutSeconds",
|
|
9
|
+
"TimeoutSecondsPath",
|
|
10
|
+
"HeartbeatSeconds",
|
|
11
|
+
"HeartbeatSecondsPath",
|
|
12
|
+
"Credentials",
|
|
13
|
+
];
|
|
14
|
+
/**
|
|
15
|
+
* Refuse the fields of a `Task` state this simulator does not run.
|
|
16
|
+
*
|
|
17
|
+
* A definition carrying one of them would behave differently here than it does
|
|
18
|
+
* on AWS. A task that failed would end the execution rather than being retried,
|
|
19
|
+
* and a task that ran long would answer rather than time out.
|
|
20
|
+
*/
|
|
21
|
+
export function checkSimStatesTaskFields(stateName, state) {
|
|
22
|
+
const present = simStatesTaskFieldsUnsimulated.filter((field) => Object.hasOwn(state, field));
|
|
23
|
+
if (present.length > 0) {
|
|
24
|
+
throw new SimStatesUnsimulatedInput(`The Task state ${stateName} carries ${present.join(", ")}, which this ` +
|
|
25
|
+
"simulator does not run yet. A task that fails ends the execution, " +
|
|
26
|
+
"and a task that runs long runs to whatever its handler answers.");
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
//# sourceMappingURL=sim-states-task-fields.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sim-states-task-fields.js","sourceRoot":"","sources":["../../../../src/service/stepfunctions/task/sim-states-task-fields.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,yBAAyB,EAAE,MAAM,sCAAsC,CAAC;AAEjF;;GAEG;AACH,MAAM,CAAC,MAAM,8BAA8B,GAAG;IAC5C,OAAO;IACP,OAAO;IACP,gBAAgB;IAChB,oBAAoB;IACpB,kBAAkB;IAClB,sBAAsB;IACtB,aAAa;CACL,CAAC;AAEX;;;;;;GAMG;AACH,MAAM,UAAU,wBAAwB,CACtC,SAAiB,EACjB,KAAgC;IAEhC,MAAM,OAAO,GAAG,8BAA8B,CAAC,MAAM,CAAC,CAAC,KAAK,EAAE,EAAE,CAC9D,MAAM,CAAC,MAAM,CAAC,KAAK,EAAE,KAAK,CAAC,CAC5B,CAAC;IAEF,IAAI,OAAO,CAAC,MAAM,GAAG,CAAC,EAAE,CAAC;QACvB,MAAM,IAAI,yBAAyB,CACjC,kBAAkB,SAAS,YAAY,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC,eAAe;YACtE,oEAAoE;YACpE,iEAAiE,CACpE,CAAC;IACJ,CAAC;AACH,CAAC"}
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
import type { SimAwsCaller } from "../../aws/caller/sim-aws-caller.js";
|
|
2
|
+
import type { SimAwsAccountRegionContainer } from "../../aws/sim-aws-account-region-scope.js";
|
|
3
|
+
import type { SimLambdaFunctionReference } from "../../lambda/function/sim-lambda-function-reference.js";
|
|
4
|
+
import type { JSONValue } from "../../../util/type-guard/json.js";
|
|
5
|
+
import type { SimStatesTaskTarget } from "./sim-states-task-target.js";
|
|
6
|
+
interface SimStatesTaskFunctionProperties {
|
|
7
|
+
readonly scope: SimAwsAccountRegionContainer;
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* One `Task` state's invocation of a function.
|
|
11
|
+
*/
|
|
12
|
+
export interface SimStatesTaskFunctionRequest {
|
|
13
|
+
readonly stateName: string;
|
|
14
|
+
readonly target: SimStatesTaskTarget;
|
|
15
|
+
readonly reference: SimLambdaFunctionReference;
|
|
16
|
+
/**
|
|
17
|
+
* What the state named the function, which is what its messages say.
|
|
18
|
+
*/
|
|
19
|
+
readonly named: string;
|
|
20
|
+
readonly payload: JSONValue;
|
|
21
|
+
readonly caller: SimAwsCaller;
|
|
22
|
+
}
|
|
23
|
+
/**
|
|
24
|
+
* A Lambda function a `Task` state invokes, in the Account and Region the
|
|
25
|
+
* function is in.
|
|
26
|
+
*
|
|
27
|
+
* The function is resolved on every task rather than when the state machine
|
|
28
|
+
* was created, so an alias moved to another version moves what runs and a
|
|
29
|
+
* permission taken away stops the task.
|
|
30
|
+
*/
|
|
31
|
+
export declare class SimStatesTaskFunction {
|
|
32
|
+
#private;
|
|
33
|
+
constructor(properties: SimStatesTaskFunctionProperties);
|
|
34
|
+
/**
|
|
35
|
+
* Invoke the function as the execution role, if the role may.
|
|
36
|
+
*/
|
|
37
|
+
invoke(request: SimStatesTaskFunctionRequest): Promise<JSONValue>;
|
|
38
|
+
/**
|
|
39
|
+
* Ask the function's own Account whether the execution role may invoke it.
|
|
40
|
+
*
|
|
41
|
+
* The function's resource policy is not consulted, which is the difference
|
|
42
|
+
* from an EventBridge rule target. The task arrives as an assumed role
|
|
43
|
+
* rather than as a service principal, and a role in the same Account needs
|
|
44
|
+
* only its own identity policy.
|
|
45
|
+
*/
|
|
46
|
+
private authorize;
|
|
47
|
+
/**
|
|
48
|
+
* Run the handler, and read a task failure off it raising.
|
|
49
|
+
*
|
|
50
|
+
* Invoked directly rather than through an `Invoke` command, because a
|
|
51
|
+
* handler failure has to reach the task rather than being answered as an
|
|
52
|
+
* error payload the state would take for a result.
|
|
53
|
+
*/
|
|
54
|
+
private run;
|
|
55
|
+
}
|
|
56
|
+
export {};
|
|
57
|
+
//# sourceMappingURL=sim-states-task-function.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sim-states-task-function.d.ts","sourceRoot":"","sources":["../../../../src/service/stepfunctions/task/sim-states-task-function.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,oCAAoC,CAAC;AACvE,OAAO,KAAK,EAAE,4BAA4B,EAAE,MAAM,2CAA2C,CAAC;AAE9F,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,wDAAwD,CAAC;AACzG,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,kCAAkC,CAAC;AAElE,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,6BAA6B,CAAC;AAOvE,UAAU,+BAA+B;IACvC,QAAQ,CAAC,KAAK,EAAE,4BAA4B,CAAC;CAC9C;AAED;;GAEG;AACH,MAAM,WAAW,4BAA4B;IAC3C,QAAQ,CAAC,SAAS,EAAE,MAAM,CAAC;IAC3B,QAAQ,CAAC,MAAM,EAAE,mBAAmB,CAAC;IACrC,QAAQ,CAAC,SAAS,EAAE,0BAA0B,CAAC;IAE/C;;OAEG;IACH,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC;IAEvB,QAAQ,CAAC,OAAO,EAAE,SAAS,CAAC;IAC5B,QAAQ,CAAC,MAAM,EAAE,YAAY,CAAC;CAC/B;AAED;;;;;;;GAOG;AACH,qBAAa,qBAAqB;;IAGhC,YAAY,UAAU,EAAE,+BAA+B,EAEtD;IAED;;OAEG;IACG,MAAM,CAAC,OAAO,EAAE,4BAA4B,GAAG,OAAO,CAAC,SAAS,CAAC,CAoBtE;IAED;;;;;;;OAOG;IACH,OAAO,CAAC,SAAS;IAmBjB;;;;;;OAMG;YACW,GAAG;CAclB"}
|
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
import { SimStatesTaskFailure } from "../error/sim-step-functions.error.js";
|
|
2
|
+
/**
|
|
3
|
+
* The action an execution needs to invoke a function.
|
|
4
|
+
*/
|
|
5
|
+
const invokeAction = "lambda:InvokeFunction";
|
|
6
|
+
/**
|
|
7
|
+
* A Lambda function a `Task` state invokes, in the Account and Region the
|
|
8
|
+
* function is in.
|
|
9
|
+
*
|
|
10
|
+
* The function is resolved on every task rather than when the state machine
|
|
11
|
+
* was created, so an alias moved to another version moves what runs and a
|
|
12
|
+
* permission taken away stops the task.
|
|
13
|
+
*/
|
|
14
|
+
export class SimStatesTaskFunction {
|
|
15
|
+
#scope;
|
|
16
|
+
constructor(properties) {
|
|
17
|
+
this.#scope = properties.scope;
|
|
18
|
+
}
|
|
19
|
+
/**
|
|
20
|
+
* Invoke the function as the execution role, if the role may.
|
|
21
|
+
*/
|
|
22
|
+
async invoke(request) {
|
|
23
|
+
const found = this.#scope
|
|
24
|
+
.lambda()
|
|
25
|
+
.getSimFunctionTarget(request.reference.functionName, request.reference.qualifier);
|
|
26
|
+
if (found === undefined) {
|
|
27
|
+
throw new SimStatesTaskFailure(`The Task state ${request.stateName} invokes ${request.named}, ` +
|
|
28
|
+
"which is not a simulated Lambda function.");
|
|
29
|
+
}
|
|
30
|
+
this.authorize(request, found.resource.arn);
|
|
31
|
+
const result = await this.run(request, found.simFunction);
|
|
32
|
+
return request.target.answer(result, found.simFunction.version);
|
|
33
|
+
}
|
|
34
|
+
/**
|
|
35
|
+
* Ask the function's own Account whether the execution role may invoke it.
|
|
36
|
+
*
|
|
37
|
+
* The function's resource policy is not consulted, which is the difference
|
|
38
|
+
* from an EventBridge rule target. The task arrives as an assumed role
|
|
39
|
+
* rather than as a service principal, and a role in the same Account needs
|
|
40
|
+
* only its own identity policy.
|
|
41
|
+
*/
|
|
42
|
+
authorize(request, functionArn) {
|
|
43
|
+
const decision = this.#scope.iam().authorize({
|
|
44
|
+
action: invokeAction,
|
|
45
|
+
resource: functionArn,
|
|
46
|
+
caller: request.caller,
|
|
47
|
+
});
|
|
48
|
+
if (decision.isDenied) {
|
|
49
|
+
throw new SimStatesTaskFailure(`The Task state ${request.stateName} is not allowed to ` +
|
|
50
|
+
`${invokeAction} on ${functionArn}. Grant it in a policy on the ` +
|
|
51
|
+
"state machine's execution role.");
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
/**
|
|
55
|
+
* Run the handler, and read a task failure off it raising.
|
|
56
|
+
*
|
|
57
|
+
* Invoked directly rather than through an `Invoke` command, because a
|
|
58
|
+
* handler failure has to reach the task rather than being answered as an
|
|
59
|
+
* error payload the state would take for a result.
|
|
60
|
+
*/
|
|
61
|
+
async run(request, simFunction) {
|
|
62
|
+
let result;
|
|
63
|
+
try {
|
|
64
|
+
result = await simFunction.invoke(request.payload);
|
|
65
|
+
}
|
|
66
|
+
catch (error) {
|
|
67
|
+
throw request.target.handlerFailure(error, request.stateName);
|
|
68
|
+
}
|
|
69
|
+
return readTaskResult(result, request.stateName);
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
/**
|
|
73
|
+
* Read what the handler answered as the JSON the execution carries on with.
|
|
74
|
+
*
|
|
75
|
+
* The answer crosses the same JSON serialisation a real invocation's payload
|
|
76
|
+
* does, so a `Date` a handler returns reaches the next state as the string it
|
|
77
|
+
* would there, and a handler answering with nothing answers `null`.
|
|
78
|
+
*/
|
|
79
|
+
function readTaskResult(result, stateName) {
|
|
80
|
+
if (result === undefined) {
|
|
81
|
+
return null;
|
|
82
|
+
}
|
|
83
|
+
let serialised;
|
|
84
|
+
try {
|
|
85
|
+
serialised = JSON.stringify(result);
|
|
86
|
+
}
|
|
87
|
+
catch {
|
|
88
|
+
throw new SimStatesTaskFailure(`The function the Task state ${stateName} invoked answered with ` +
|
|
89
|
+
"something that is not JSON.");
|
|
90
|
+
}
|
|
91
|
+
return JSON.parse(serialised);
|
|
92
|
+
}
|
|
93
|
+
//# sourceMappingURL=sim-states-task-function.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sim-states-task-function.js","sourceRoot":"","sources":["../../../../src/service/stepfunctions/task/sim-states-task-function.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,oBAAoB,EAAE,MAAM,sCAAsC,CAAC;AAG5E;;GAEG;AACH,MAAM,YAAY,GAAG,uBAAuB,CAAC;AAuB7C;;;;;;;GAOG;AACH,MAAM,OAAO,qBAAqB;IACvB,MAAM,CAA+B;IAE9C,YAAY,UAA2C;QACrD,IAAI,CAAC,MAAM,GAAG,UAAU,CAAC,KAAK,CAAC;IACjC,CAAC;IAED;;OAEG;IACH,KAAK,CAAC,MAAM,CAAC,OAAqC;QAChD,MAAM,KAAK,GAAG,IAAI,CAAC,MAAM;aACtB,MAAM,EAAE;aACR,oBAAoB,CACnB,OAAO,CAAC,SAAS,CAAC,YAAY,EAC9B,OAAO,CAAC,SAAS,CAAC,SAAS,CAC5B,CAAC;QAEJ,IAAI,KAAK,KAAK,SAAS,EAAE,CAAC;YACxB,MAAM,IAAI,oBAAoB,CAC5B,kBAAkB,OAAO,CAAC,SAAS,YAAY,OAAO,CAAC,KAAK,IAAI;gBAC9D,2CAA2C,CAC9C,CAAC;QACJ,CAAC;QAED,IAAI,CAAC,SAAS,CAAC,OAAO,EAAE,KAAK,CAAC,QAAQ,CAAC,GAAG,CAAC,CAAC;QAE5C,MAAM,MAAM,GAAG,MAAM,IAAI,CAAC,GAAG,CAAC,OAAO,EAAE,KAAK,CAAC,WAAW,CAAC,CAAC;QAE1D,OAAO,OAAO,CAAC,MAAM,CAAC,MAAM,CAAC,MAAM,EAAE,KAAK,CAAC,WAAW,CAAC,OAAO,CAAC,CAAC;IAClE,CAAC;IAED;;;;;;;OAOG;IACK,SAAS,CACf,OAAqC,EACrC,WAAmB;QAEnB,MAAM,QAAQ,GAAG,IAAI,CAAC,MAAM,CAAC,GAAG,EAAE,CAAC,SAAS,CAAC;YAC3C,MAAM,EAAE,YAAY;YACpB,QAAQ,EAAE,WAAW;YACrB,MAAM,EAAE,OAAO,CAAC,MAAM;SACvB,CAAC,CAAC;QAEH,IAAI,QAAQ,CAAC,QAAQ,EAAE,CAAC;YACtB,MAAM,IAAI,oBAAoB,CAC5B,kBAAkB,OAAO,CAAC,SAAS,qBAAqB;gBACtD,GAAG,YAAY,OAAO,WAAW,gCAAgC;gBACjE,iCAAiC,CACpC,CAAC;QACJ,CAAC;IACH,CAAC;IAED;;;;;;OAMG;IACK,KAAK,CAAC,GAAG,CACf,OAAqC,EACrC,WAA8B;QAE9B,IAAI,MAAe,CAAC;QAEpB,IAAI,CAAC;YACH,MAAM,GAAG,MAAM,WAAW,CAAC,MAAM,CAAC,OAAO,CAAC,OAAO,CAAC,CAAC;QACrD,CAAC;QAAC,OAAO,KAAK,EAAE,CAAC;YACf,MAAM,OAAO,CAAC,MAAM,CAAC,cAAc,CAAC,KAAK,EAAE,OAAO,CAAC,SAAS,CAAC,CAAC;QAChE,CAAC;QAED,OAAO,cAAc,CAAC,MAAM,EAAE,OAAO,CAAC,SAAS,CAAC,CAAC;IACnD,CAAC;CACF;AAED;;;;;;GAMG;AACH,SAAS,cAAc,CAAC,MAAe,EAAE,SAAiB;IACxD,IAAI,MAAM,KAAK,SAAS,EAAE,CAAC;QACzB,OAAO,IAAI,CAAC;IACd,CAAC;IAED,IAAI,UAAkB,CAAC;IAEvB,IAAI,CAAC;QACH,UAAU,GAAG,IAAI,CAAC,SAAS,CAAC,MAAM,CAAC,CAAC;IACtC,CAAC;IAAC,MAAM,CAAC;QACP,MAAM,IAAI,oBAAoB,CAC5B,+BAA+B,SAAS,yBAAyB;YAC/D,6BAA6B,CAChC,CAAC;IACJ,CAAC;IAED,OAAO,IAAI,CAAC,KAAK,CAAC,UAAU,CAAc,CAAC;AAC7C,CAAC"}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import type { JSONValue } from "../../../util/type-guard/json.js";
|
|
2
|
+
import type { SimStatesTaskTarget } from "./sim-states-task-target.js";
|
|
3
|
+
/**
|
|
4
|
+
* One `Task` state's invocation, as the state leaves it.
|
|
5
|
+
*/
|
|
6
|
+
export interface SimStatesTaskInvocation {
|
|
7
|
+
readonly stateName: string;
|
|
8
|
+
readonly target: SimStatesTaskTarget;
|
|
9
|
+
/**
|
|
10
|
+
* What the state's `InputPath` and `Parameters` produced.
|
|
11
|
+
*/
|
|
12
|
+
readonly payload: JSONValue;
|
|
13
|
+
/**
|
|
14
|
+
* The state machine's execution role, which the execution assumes to do the
|
|
15
|
+
* work.
|
|
16
|
+
*/
|
|
17
|
+
readonly roleArn: string;
|
|
18
|
+
}
|
|
19
|
+
/**
|
|
20
|
+
* Where a `Task` state's work is done.
|
|
21
|
+
*
|
|
22
|
+
* A state machine reaches a function through this rather than holding one, so
|
|
23
|
+
* a `SimStepFunctions` built on its own has somewhere to say that there is
|
|
24
|
+
* nothing to reach.
|
|
25
|
+
*/
|
|
26
|
+
export interface SimStatesTaskTargets {
|
|
27
|
+
invoke(invocation: SimStatesTaskInvocation): Promise<JSONValue>;
|
|
28
|
+
}
|
|
29
|
+
//# sourceMappingURL=sim-states-task-invocation.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sim-states-task-invocation.d.ts","sourceRoot":"","sources":["../../../../src/service/stepfunctions/task/sim-states-task-invocation.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,kCAAkC,CAAC;AAClE,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,6BAA6B,CAAC;AAEvE;;GAEG;AACH,MAAM,WAAW,uBAAuB;IACtC,QAAQ,CAAC,SAAS,EAAE,MAAM,CAAC;IAC3B,QAAQ,CAAC,MAAM,EAAE,mBAAmB,CAAC;IAErC;;OAEG;IACH,QAAQ,CAAC,OAAO,EAAE,SAAS,CAAC;IAE5B;;;OAGG;IACH,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAC;CAC1B;AAED;;;;;;GAMG;AACH,MAAM,WAAW,oBAAoB;IACnC,MAAM,CAAC,UAAU,EAAE,uBAAuB,GAAG,OAAO,CAAC,SAAS,CAAC,CAAC;CACjE"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sim-states-task-invocation.js","sourceRoot":"","sources":["../../../../src/service/stepfunctions/task/sim-states-task-invocation.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import type { JSONValue } from "../../../util/type-guard/json.js";
|
|
2
|
+
import type { SimStatesTaskTarget } from "./sim-states-task-target.js";
|
|
3
|
+
/**
|
|
4
|
+
* Read what a `Task` state's `Resource` names.
|
|
5
|
+
*
|
|
6
|
+
* This runs when the state machine is created, so a `Resource` this simulator
|
|
7
|
+
* cannot reach is refused there rather than when an execution arrives at the
|
|
8
|
+
* state. The service integrations beyond Lambda are refused here by name, and
|
|
9
|
+
* are where each of them will be added.
|
|
10
|
+
*/
|
|
11
|
+
export declare function parseSimStatesTaskResource(stateName: string, state: Record<string, JSONValue>): SimStatesTaskTarget;
|
|
12
|
+
//# sourceMappingURL=sim-states-task-resource.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sim-states-task-resource.d.ts","sourceRoot":"","sources":["../../../../src/service/stepfunctions/task/sim-states-task-resource.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,kCAAkC,CAAC;AAYlE,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,6BAA6B,CAAC;AAEvE;;;;;;;GAOG;AACH,wBAAgB,0BAA0B,CACxC,SAAS,EAAE,MAAM,EACjB,KAAK,EAAE,MAAM,CAAC,MAAM,EAAE,SAAS,CAAC,GAC/B,mBAAmB,CAyBrB"}
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
import { parseSimLambdaFunctionArn } from "../../lambda/function/sim-lambda-function-arn-parts.js";
|
|
2
|
+
import { isRecord } from "../../../util/type-guard/record.js";
|
|
3
|
+
import { SimStatesInvalidDefinition, SimStatesUnsimulatedInput, } from "../error/sim-step-functions.error.js";
|
|
4
|
+
import { SimStatesFunctionArnTarget } from "./sim-states-function-arn-target.js";
|
|
5
|
+
import { SimStatesLambdaInvokeTarget, simStatesLambdaInvokeParameters, simStatesLambdaInvokeResource, } from "./sim-states-lambda-invoke-target.js";
|
|
6
|
+
/**
|
|
7
|
+
* Read what a `Task` state's `Resource` names.
|
|
8
|
+
*
|
|
9
|
+
* This runs when the state machine is created, so a `Resource` this simulator
|
|
10
|
+
* cannot reach is refused there rather than when an execution arrives at the
|
|
11
|
+
* state. The service integrations beyond Lambda are refused here by name, and
|
|
12
|
+
* are where each of them will be added.
|
|
13
|
+
*/
|
|
14
|
+
export function parseSimStatesTaskResource(stateName, state) {
|
|
15
|
+
const resource = state["Resource"];
|
|
16
|
+
if (typeof resource !== "string" || resource === "") {
|
|
17
|
+
throw new SimStatesInvalidDefinition(`The Task state ${stateName} has no Resource saying what it does.`);
|
|
18
|
+
}
|
|
19
|
+
if (resource === simStatesLambdaInvokeResource) {
|
|
20
|
+
checkInvokeParameters(stateName, state["Parameters"]);
|
|
21
|
+
return new SimStatesLambdaInvokeTarget();
|
|
22
|
+
}
|
|
23
|
+
if (parseSimLambdaFunctionArn(resource) !== undefined) {
|
|
24
|
+
return new SimStatesFunctionArnTarget({ functionArn: resource });
|
|
25
|
+
}
|
|
26
|
+
throw new SimStatesUnsimulatedInput(`The Task state ${stateName} has a Resource of ${resource}, which this ` +
|
|
27
|
+
"simulator does not run. A Task state invokes a simulated Lambda " +
|
|
28
|
+
`function, through ${simStatesLambdaInvokeResource} or through a ` +
|
|
29
|
+
"function ARN.");
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* Check the `Invoke` request the state's `Parameters` build.
|
|
33
|
+
*
|
|
34
|
+
* The field naming the function is required, as it is on real Step Functions,
|
|
35
|
+
* and the fields of an `Invoke` this does not make are refused by name.
|
|
36
|
+
*/
|
|
37
|
+
function checkInvokeParameters(stateName, parameters) {
|
|
38
|
+
if (!isRecord(parameters)) {
|
|
39
|
+
throw new SimStatesInvalidDefinition(`The Task state ${stateName} invokes a function and carries no ` +
|
|
40
|
+
"Parameters. A Parameters naming the function to invoke is what " +
|
|
41
|
+
`${simStatesLambdaInvokeResource} takes.`);
|
|
42
|
+
}
|
|
43
|
+
const fields = Object.keys(parameters).map(fieldName);
|
|
44
|
+
if (!fields.includes("FunctionName")) {
|
|
45
|
+
throw new SimStatesInvalidDefinition(`The Parameters of the Task state ${stateName} carry no FunctionName ` +
|
|
46
|
+
"naming the function to invoke.");
|
|
47
|
+
}
|
|
48
|
+
const beyond = fields.filter((field) => !simStatesLambdaInvokeParameters.includes(field));
|
|
49
|
+
if (beyond.length > 0) {
|
|
50
|
+
throw new SimStatesUnsimulatedInput(`The Parameters of the Task state ${stateName} carry ` +
|
|
51
|
+
`${beyond.join(", ")}. This simulator invokes a function with ` +
|
|
52
|
+
`${simStatesLambdaInvokeParameters.join(" and ")}.`);
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
/**
|
|
56
|
+
* The field one Payload Template key stands for.
|
|
57
|
+
*
|
|
58
|
+
* A key ending in `.$` holds a path to read rather than a value, and both
|
|
59
|
+
* spellings name the same field of the request.
|
|
60
|
+
*/
|
|
61
|
+
function fieldName(key) {
|
|
62
|
+
return key.endsWith(".$") ? key.slice(0, -2) : key;
|
|
63
|
+
}
|
|
64
|
+
//# sourceMappingURL=sim-states-task-resource.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sim-states-task-resource.js","sourceRoot":"","sources":["../../../../src/service/stepfunctions/task/sim-states-task-resource.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,yBAAyB,EAAE,MAAM,wDAAwD,CAAC;AAEnG,OAAO,EAAE,QAAQ,EAAE,MAAM,oCAAoC,CAAC;AAC9D,OAAO,EACL,0BAA0B,EAC1B,yBAAyB,GAC1B,MAAM,sCAAsC,CAAC;AAC9C,OAAO,EAAE,0BAA0B,EAAE,MAAM,qCAAqC,CAAC;AACjF,OAAO,EACL,2BAA2B,EAC3B,+BAA+B,EAC/B,6BAA6B,GAC9B,MAAM,sCAAsC,CAAC;AAG9C;;;;;;;GAOG;AACH,MAAM,UAAU,0BAA0B,CACxC,SAAiB,EACjB,KAAgC;IAEhC,MAAM,QAAQ,GAAG,KAAK,CAAC,UAAU,CAAC,CAAC;IAEnC,IAAI,OAAO,QAAQ,KAAK,QAAQ,IAAI,QAAQ,KAAK,EAAE,EAAE,CAAC;QACpD,MAAM,IAAI,0BAA0B,CAClC,kBAAkB,SAAS,uCAAuC,CACnE,CAAC;IACJ,CAAC;IAED,IAAI,QAAQ,KAAK,6BAA6B,EAAE,CAAC;QAC/C,qBAAqB,CAAC,SAAS,EAAE,KAAK,CAAC,YAAY,CAAC,CAAC,CAAC;QAEtD,OAAO,IAAI,2BAA2B,EAAE,CAAC;IAC3C,CAAC;IAED,IAAI,yBAAyB,CAAC,QAAQ,CAAC,KAAK,SAAS,EAAE,CAAC;QACtD,OAAO,IAAI,0BAA0B,CAAC,EAAE,WAAW,EAAE,QAAQ,EAAE,CAAC,CAAC;IACnE,CAAC;IAED,MAAM,IAAI,yBAAyB,CACjC,kBAAkB,SAAS,sBAAsB,QAAQ,eAAe;QACtE,kEAAkE;QAClE,qBAAqB,6BAA6B,gBAAgB;QAClE,eAAe,CAClB,CAAC;AACJ,CAAC;AAED;;;;;GAKG;AACH,SAAS,qBAAqB,CAC5B,SAAiB,EACjB,UAAiC;IAEjC,IAAI,CAAC,QAAQ,CAAC,UAAU,CAAC,EAAE,CAAC;QAC1B,MAAM,IAAI,0BAA0B,CAClC,kBAAkB,SAAS,qCAAqC;YAC9D,iEAAiE;YACjE,GAAG,6BAA6B,SAAS,CAC5C,CAAC;IACJ,CAAC;IAED,MAAM,MAAM,GAAG,MAAM,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAEtD,IAAI,CAAC,MAAM,CAAC,QAAQ,CAAC,cAAc,CAAC,EAAE,CAAC;QACrC,MAAM,IAAI,0BAA0B,CAClC,oCAAoC,SAAS,yBAAyB;YACpE,gCAAgC,CACnC,CAAC;IACJ,CAAC;IAED,MAAM,MAAM,GAAG,MAAM,CAAC,MAAM,CAC1B,CAAC,KAAK,EAAE,EAAE,CAAC,CAAC,+BAA+B,CAAC,QAAQ,CAAC,KAAc,CAAC,CACrE,CAAC;IAEF,IAAI,MAAM,CAAC,MAAM,GAAG,CAAC,EAAE,CAAC;QACtB,MAAM,IAAI,yBAAyB,CACjC,oCAAoC,SAAS,SAAS;YACpD,GAAG,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,2CAA2C;YAC/D,GAAG,+BAA+B,CAAC,IAAI,CAAC,OAAO,CAAC,GAAG,CACtD,CAAC;IACJ,CAAC;AACH,CAAC;AAED;;;;;GAKG;AACH,SAAS,SAAS,CAAC,GAAW;IAC5B,OAAO,GAAG,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC;AACrD,CAAC"}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import type { JSONValue } from "../../../util/type-guard/json.js";
|
|
2
|
+
/**
|
|
3
|
+
* The function one `Task` state invocation names, and what it sends.
|
|
4
|
+
*/
|
|
5
|
+
export interface SimStatesTaskCall {
|
|
6
|
+
readonly functionNameOrArn: string;
|
|
7
|
+
readonly payload: JSONValue;
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* What a `Task` state's `Resource` named.
|
|
11
|
+
*
|
|
12
|
+
* The two forms a `Task` state invokes a function through differ in three
|
|
13
|
+
* places, and this is each of them: which function the state is talking to,
|
|
14
|
+
* what the state gets back, and what a handler raising is called. Everything
|
|
15
|
+
* between those, from assuming the execution role to running the handler, is
|
|
16
|
+
* the same for both.
|
|
17
|
+
*/
|
|
18
|
+
export declare abstract class SimStatesTaskTarget {
|
|
19
|
+
/**
|
|
20
|
+
* The function to invoke and the payload to send it, read from what the
|
|
21
|
+
* state's data-flow fields produced.
|
|
22
|
+
*/
|
|
23
|
+
abstract call(payload: JSONValue, stateName: string): SimStatesTaskCall;
|
|
24
|
+
/**
|
|
25
|
+
* The result the state produces from what the handler answered.
|
|
26
|
+
*/
|
|
27
|
+
abstract answer(result: JSONValue, executedVersion: string): JSONValue;
|
|
28
|
+
/**
|
|
29
|
+
* What a handler raising fails the task with.
|
|
30
|
+
*
|
|
31
|
+
* The Amazon States Language error name is read here rather than where the
|
|
32
|
+
* failure is recorded, because the two forms report a handler error
|
|
33
|
+
* differently and `Retry` and `Catch` match on exactly that name.
|
|
34
|
+
*/
|
|
35
|
+
abstract handlerFailure(error: unknown, stateName: string): Error;
|
|
36
|
+
}
|
|
37
|
+
//# sourceMappingURL=sim-states-task-target.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sim-states-task-target.d.ts","sourceRoot":"","sources":["../../../../src/service/stepfunctions/task/sim-states-task-target.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,kCAAkC,CAAC;AAElE;;GAEG;AACH,MAAM,WAAW,iBAAiB;IAChC,QAAQ,CAAC,iBAAiB,EAAE,MAAM,CAAC;IACnC,QAAQ,CAAC,OAAO,EAAE,SAAS,CAAC;CAC7B;AAED;;;;;;;;GAQG;AACH,8BAAsB,mBAAmB;IACvC;;;OAGG;IACH,QAAQ,CAAC,IAAI,CAAC,OAAO,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM,GAAG,iBAAiB,CAAC;IAExE;;OAEG;IACH,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,SAAS,EAAE,eAAe,EAAE,MAAM,GAAG,SAAS,CAAC;IAEvE;;;;;;OAMG;IACH,QAAQ,CAAC,cAAc,CAAC,KAAK,EAAE,OAAO,EAAE,SAAS,EAAE,MAAM,GAAG,KAAK,CAAC;CACnE"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* What a `Task` state's `Resource` named.
|
|
3
|
+
*
|
|
4
|
+
* The two forms a `Task` state invokes a function through differ in three
|
|
5
|
+
* places, and this is each of them: which function the state is talking to,
|
|
6
|
+
* what the state gets back, and what a handler raising is called. Everything
|
|
7
|
+
* between those, from assuming the execution role to running the handler, is
|
|
8
|
+
* the same for both.
|
|
9
|
+
*/
|
|
10
|
+
export class SimStatesTaskTarget {
|
|
11
|
+
}
|
|
12
|
+
//# sourceMappingURL=sim-states-task-target.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sim-states-task-target.js","sourceRoot":"","sources":["../../../../src/service/stepfunctions/task/sim-states-task-target.ts"],"names":[],"mappings":"AAUA;;;;;;;;GAQG;AACH,MAAM,OAAgB,mBAAmB;CAoBxC"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { JSONValue } from "../../../util/type-guard/json.js";
|
|
2
|
+
import type { SimStatesWaitState } from "../definition/sim-states-state.js";
|
|
3
|
+
/**
|
|
4
|
+
* The instant a `Wait` state waits for.
|
|
5
|
+
*
|
|
6
|
+
* The two literal fields are known from the definition. The two path fields
|
|
7
|
+
* are read out of the state's effective input, and a path holding the wrong
|
|
8
|
+
* kind of value fails the execution the way real Step Functions does.
|
|
9
|
+
*/
|
|
10
|
+
export declare function simStatesWaitDue(state: SimStatesWaitState, input: JSONValue, now: Date): Date;
|
|
11
|
+
//# sourceMappingURL=sim-states-wait-due.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sim-states-wait-due.d.ts","sourceRoot":"","sources":["../../../../src/service/stepfunctions/wait/sim-states-wait-due.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,kCAAkC,CAAC;AAIlE,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,mCAAmC,CAAC;AAS5E;;;;;;GAMG;AACH,wBAAgB,gBAAgB,CAC9B,KAAK,EAAE,kBAAkB,EACzB,KAAK,EAAE,SAAS,EAChB,GAAG,EAAE,IAAI,GACR,IAAI,CA4BN"}
|