@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
package/dist/service/cloudformation/resource/cfn/stepfunctions/sim-cfn-state-machine-properties.js
ADDED
|
@@ -0,0 +1,99 @@
|
|
|
1
|
+
import { SimCfnStateMachineDefinition } from "./sim-cfn-state-machine-definition.js";
|
|
2
|
+
import { SimCfnStateMachineName } from "./sim-cfn-state-machine-name.js";
|
|
3
|
+
import { roleArnPropertyName, stateMachineNamePropertyName, stateMachineTypePropertyName, unsimulatedPropertyReasons, } from "./sim-cfn-state-machine-property-names.js";
|
|
4
|
+
import { simCfnStepFunctionsResourceError } from "./sim-cfn-step-functions-resource-error.js";
|
|
5
|
+
import { stateMachineResourceType } from "./sim-cfn-step-functions-resource-types.js";
|
|
6
|
+
/**
|
|
7
|
+
* Reads AWS::StepFunctions::StateMachine CloudFormation properties into the
|
|
8
|
+
* shapes the Step Functions commands take.
|
|
9
|
+
*
|
|
10
|
+
* What a definition may hold is decided by simulated Step Functions rather
|
|
11
|
+
* than here, so a state type it does not run is refused by the command that
|
|
12
|
+
* reads it. What this reads is the shape. A property that has to be a string
|
|
13
|
+
* or an object is checked for being one, since a template that put an object
|
|
14
|
+
* where a role ARN goes has made a mistake CreateStateMachine cannot explain.
|
|
15
|
+
*/
|
|
16
|
+
export class SimCfnStateMachineProperties {
|
|
17
|
+
#resource;
|
|
18
|
+
#properties;
|
|
19
|
+
constructor(properties) {
|
|
20
|
+
this.#resource = properties.resource;
|
|
21
|
+
this.#properties = new Map(Object.entries(properties.properties));
|
|
22
|
+
this.recordUnsimulated();
|
|
23
|
+
}
|
|
24
|
+
/**
|
|
25
|
+
* The state machine name.
|
|
26
|
+
*
|
|
27
|
+
* An unnamed state machine is named after the stack and the logical ID, as
|
|
28
|
+
* real CloudFormation names one.
|
|
29
|
+
*/
|
|
30
|
+
name() {
|
|
31
|
+
const name = this.#properties.get(stateMachineNamePropertyName);
|
|
32
|
+
if (name === undefined) {
|
|
33
|
+
return new SimCfnStateMachineName({
|
|
34
|
+
stackName: this.#resource.stackName,
|
|
35
|
+
logicalId: this.#resource.logicalId,
|
|
36
|
+
}).value;
|
|
37
|
+
}
|
|
38
|
+
return this.string(stateMachineNamePropertyName, name);
|
|
39
|
+
}
|
|
40
|
+
/**
|
|
41
|
+
* The Role an execution runs as.
|
|
42
|
+
*
|
|
43
|
+
* Required on the real Resource, and required by `CreateStateMachine`, so a
|
|
44
|
+
* template leaving it out is refused rather than given one.
|
|
45
|
+
*/
|
|
46
|
+
roleArn() {
|
|
47
|
+
const roleArn = this.#properties.get(roleArnPropertyName);
|
|
48
|
+
if (roleArn === undefined) {
|
|
49
|
+
throw this.propertyError(`a state machine needs a ${roleArnPropertyName}`);
|
|
50
|
+
}
|
|
51
|
+
return this.string(roleArnPropertyName, roleArn);
|
|
52
|
+
}
|
|
53
|
+
/**
|
|
54
|
+
* Whether the state machine is STANDARD or EXPRESS, when the template says.
|
|
55
|
+
*
|
|
56
|
+
* Which of the two it is, is decided by `CreateStateMachine`, so a template
|
|
57
|
+
* asking for a third thing is refused in the words that command refuses it
|
|
58
|
+
* in.
|
|
59
|
+
*/
|
|
60
|
+
type() {
|
|
61
|
+
const type = this.#properties.get(stateMachineTypePropertyName);
|
|
62
|
+
if (type === undefined) {
|
|
63
|
+
return undefined;
|
|
64
|
+
}
|
|
65
|
+
return this.string(stateMachineTypePropertyName, type);
|
|
66
|
+
}
|
|
67
|
+
/**
|
|
68
|
+
* The Amazon States Language the state machine runs.
|
|
69
|
+
*/
|
|
70
|
+
definition() {
|
|
71
|
+
return new SimCfnStateMachineDefinition({
|
|
72
|
+
logicalId: this.#resource.logicalId,
|
|
73
|
+
properties: this.#properties,
|
|
74
|
+
}).value();
|
|
75
|
+
}
|
|
76
|
+
/**
|
|
77
|
+
* A property that has to be a string.
|
|
78
|
+
*/
|
|
79
|
+
string(name, value) {
|
|
80
|
+
if (typeof value !== "string") {
|
|
81
|
+
throw this.propertyError(`${name} must be a string`);
|
|
82
|
+
}
|
|
83
|
+
return value;
|
|
84
|
+
}
|
|
85
|
+
/**
|
|
86
|
+
* Record the properties this simulation gives no behaviour to.
|
|
87
|
+
*/
|
|
88
|
+
recordUnsimulated() {
|
|
89
|
+
for (const [name, reason] of unsimulatedPropertyReasons) {
|
|
90
|
+
if (this.#properties.has(name)) {
|
|
91
|
+
this.#resource.ignoreProperty(name, reason);
|
|
92
|
+
}
|
|
93
|
+
}
|
|
94
|
+
}
|
|
95
|
+
propertyError(reason) {
|
|
96
|
+
return simCfnStepFunctionsResourceError(stateMachineResourceType, this.#resource.logicalId, reason);
|
|
97
|
+
}
|
|
98
|
+
}
|
|
99
|
+
//# sourceMappingURL=sim-cfn-state-machine-properties.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sim-cfn-state-machine-properties.js","sourceRoot":"","sources":["../../../../../../src/service/cloudformation/resource/cfn/stepfunctions/sim-cfn-state-machine-properties.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,4BAA4B,EAAE,MAAM,uCAAuC,CAAC;AACrF,OAAO,EAAE,sBAAsB,EAAE,MAAM,iCAAiC,CAAC;AACzE,OAAO,EACL,mBAAmB,EACnB,4BAA4B,EAC5B,4BAA4B,EAC5B,0BAA0B,GAC3B,MAAM,2CAA2C,CAAC;AACnD,OAAO,EAAE,gCAAgC,EAAE,MAAM,4CAA4C,CAAC;AAC9F,OAAO,EAAE,wBAAwB,EAAE,MAAM,4CAA4C,CAAC;AAOtF;;;;;;;;;GASG;AACH,MAAM,OAAO,4BAA4B;IAC9B,SAAS,CAAiB;IAC1B,WAAW,CAA2C;IAE/D,YAAY,UAAkD;QAC5D,IAAI,CAAC,SAAS,GAAG,UAAU,CAAC,QAAQ,CAAC;QACrC,IAAI,CAAC,WAAW,GAAG,IAAI,GAAG,CAAC,MAAM,CAAC,OAAO,CAAC,UAAU,CAAC,UAAU,CAAC,CAAC,CAAC;QAElE,IAAI,CAAC,iBAAiB,EAAE,CAAC;IAC3B,CAAC;IAED;;;;;OAKG;IACH,IAAI;QACF,MAAM,IAAI,GAAG,IAAI,CAAC,WAAW,CAAC,GAAG,CAAC,4BAA4B,CAAC,CAAC;QAEhE,IAAI,IAAI,KAAK,SAAS,EAAE,CAAC;YACvB,OAAO,IAAI,sBAAsB,CAAC;gBAChC,SAAS,EAAE,IAAI,CAAC,SAAS,CAAC,SAAS;gBACnC,SAAS,EAAE,IAAI,CAAC,SAAS,CAAC,SAAS;aACpC,CAAC,CAAC,KAAK,CAAC;QACX,CAAC;QAED,OAAO,IAAI,CAAC,MAAM,CAAC,4BAA4B,EAAE,IAAI,CAAC,CAAC;IACzD,CAAC;IAED;;;;;OAKG;IACH,OAAO;QACL,MAAM,OAAO,GAAG,IAAI,CAAC,WAAW,CAAC,GAAG,CAAC,mBAAmB,CAAC,CAAC;QAE1D,IAAI,OAAO,KAAK,SAAS,EAAE,CAAC;YAC1B,MAAM,IAAI,CAAC,aAAa,CACtB,2BAA2B,mBAAmB,EAAE,CACjD,CAAC;QACJ,CAAC;QAED,OAAO,IAAI,CAAC,MAAM,CAAC,mBAAmB,EAAE,OAAO,CAAC,CAAC;IACnD,CAAC;IAED;;;;;;OAMG;IACH,IAAI;QACF,MAAM,IAAI,GAAG,IAAI,CAAC,WAAW,CAAC,GAAG,CAAC,4BAA4B,CAAC,CAAC;QAEhE,IAAI,IAAI,KAAK,SAAS,EAAE,CAAC;YACvB,OAAO,SAAS,CAAC;QACnB,CAAC;QAED,OAAO,IAAI,CAAC,MAAM,CAAC,4BAA4B,EAAE,IAAI,CAAC,CAAC;IACzD,CAAC;IAED;;OAEG;IACH,UAAU;QACR,OAAO,IAAI,4BAA4B,CAAC;YACtC,SAAS,EAAE,IAAI,CAAC,SAAS,CAAC,SAAS;YACnC,UAAU,EAAE,IAAI,CAAC,WAAW;SAC7B,CAAC,CAAC,KAAK,EAAE,CAAC;IACb,CAAC;IAED;;OAEG;IACK,MAAM,CAAC,IAAY,EAAE,KAA0B;QACrD,IAAI,OAAO,KAAK,KAAK,QAAQ,EAAE,CAAC;YAC9B,MAAM,IAAI,CAAC,aAAa,CAAC,GAAG,IAAI,mBAAmB,CAAC,CAAC;QACvD,CAAC;QAED,OAAO,KAAK,CAAC;IACf,CAAC;IAED;;OAEG;IACK,iBAAiB;QACvB,KAAK,MAAM,CAAC,IAAI,EAAE,MAAM,CAAC,IAAI,0BAA0B,EAAE,CAAC;YACxD,IAAI,IAAI,CAAC,WAAW,CAAC,GAAG,CAAC,IAAI,CAAC,EAAE,CAAC;gBAC/B,IAAI,CAAC,SAAS,CAAC,cAAc,CAAC,IAAI,EAAE,MAAM,CAAC,CAAC;YAC9C,CAAC;QACH,CAAC;IACH,CAAC;IAEO,aAAa,CAAC,MAAc;QAClC,OAAO,gCAAgC,CACrC,wBAAwB,EACxB,IAAI,CAAC,SAAS,CAAC,SAAS,EACxB,MAAM,CACP,CAAC;IACJ,CAAC;CACF"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The AWS::StepFunctions::StateMachine properties this simulation acts on.
|
|
3
|
+
*/
|
|
4
|
+
export declare const stateMachineNamePropertyName = "StateMachineName";
|
|
5
|
+
export declare const roleArnPropertyName = "RoleArn";
|
|
6
|
+
export declare const stateMachineTypePropertyName = "StateMachineType";
|
|
7
|
+
export declare const definitionStringPropertyName = "DefinitionString";
|
|
8
|
+
export declare const definitionPropertyName = "Definition";
|
|
9
|
+
export declare const definitionSubstitutionsPropertyName = "DefinitionSubstitutions";
|
|
10
|
+
export declare const definitionS3LocationPropertyName = "DefinitionS3Location";
|
|
11
|
+
export declare const tagsPropertyName = "Tags";
|
|
12
|
+
/**
|
|
13
|
+
* Real AWS::StepFunctions::StateMachine properties this simulation does not
|
|
14
|
+
* model, and why.
|
|
15
|
+
*
|
|
16
|
+
* Each is recorded against the Resource rather than refused, so a template
|
|
17
|
+
* carrying one still deploys a state machine that runs, and the omission is
|
|
18
|
+
* somewhere a test can find it.
|
|
19
|
+
*/
|
|
20
|
+
export declare const unsimulatedPropertyReasons: ReadonlyMap<string, string>;
|
|
21
|
+
//# sourceMappingURL=sim-cfn-state-machine-property-names.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sim-cfn-state-machine-property-names.d.ts","sourceRoot":"","sources":["../../../../../../src/service/cloudformation/resource/cfn/stepfunctions/sim-cfn-state-machine-property-names.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,eAAO,MAAM,4BAA4B,qBAAqB,CAAC;AAE/D,eAAO,MAAM,mBAAmB,YAAY,CAAC;AAE7C,eAAO,MAAM,4BAA4B,qBAAqB,CAAC;AAE/D,eAAO,MAAM,4BAA4B,qBAAqB,CAAC;AAE/D,eAAO,MAAM,sBAAsB,eAAe,CAAC;AAEnD,eAAO,MAAM,mCAAmC,4BAA4B,CAAC;AAE7E,eAAO,MAAM,gCAAgC,yBAAyB,CAAC;AAEvE,eAAO,MAAM,gBAAgB,SAAS,CAAC;AAEvC;;;;;;;GAOG;AACH,eAAO,MAAM,0BAA0B,EAAE,WAAW,CAAC,MAAM,EAAE,MAAM,CAgBjE,CAAC"}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The AWS::StepFunctions::StateMachine properties this simulation acts on.
|
|
3
|
+
*/
|
|
4
|
+
export const stateMachineNamePropertyName = "StateMachineName";
|
|
5
|
+
export const roleArnPropertyName = "RoleArn";
|
|
6
|
+
export const stateMachineTypePropertyName = "StateMachineType";
|
|
7
|
+
export const definitionStringPropertyName = "DefinitionString";
|
|
8
|
+
export const definitionPropertyName = "Definition";
|
|
9
|
+
export const definitionSubstitutionsPropertyName = "DefinitionSubstitutions";
|
|
10
|
+
export const definitionS3LocationPropertyName = "DefinitionS3Location";
|
|
11
|
+
export const tagsPropertyName = "Tags";
|
|
12
|
+
/**
|
|
13
|
+
* Real AWS::StepFunctions::StateMachine properties this simulation does not
|
|
14
|
+
* model, and why.
|
|
15
|
+
*
|
|
16
|
+
* Each is recorded against the Resource rather than refused, so a template
|
|
17
|
+
* carrying one still deploys a state machine that runs, and the omission is
|
|
18
|
+
* somewhere a test can find it.
|
|
19
|
+
*/
|
|
20
|
+
export const unsimulatedPropertyReasons = new Map([
|
|
21
|
+
[
|
|
22
|
+
tagsPropertyName,
|
|
23
|
+
"simulated Step Functions holds no tags on a state machine, and " +
|
|
24
|
+
"ListTagsForResource is unsimulated",
|
|
25
|
+
],
|
|
26
|
+
[
|
|
27
|
+
"LoggingConfiguration",
|
|
28
|
+
"an execution writes no log events, so there is nothing for a log level " +
|
|
29
|
+
"or a destination to decide",
|
|
30
|
+
],
|
|
31
|
+
["TracingConfiguration", "X-Ray is not simulated"],
|
|
32
|
+
[
|
|
33
|
+
"EncryptionConfiguration",
|
|
34
|
+
"a definition is held as it was written, and no key is ever asked for",
|
|
35
|
+
],
|
|
36
|
+
]);
|
|
37
|
+
//# sourceMappingURL=sim-cfn-state-machine-property-names.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sim-cfn-state-machine-property-names.js","sourceRoot":"","sources":["../../../../../../src/service/cloudformation/resource/cfn/stepfunctions/sim-cfn-state-machine-property-names.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,MAAM,CAAC,MAAM,4BAA4B,GAAG,kBAAkB,CAAC;AAE/D,MAAM,CAAC,MAAM,mBAAmB,GAAG,SAAS,CAAC;AAE7C,MAAM,CAAC,MAAM,4BAA4B,GAAG,kBAAkB,CAAC;AAE/D,MAAM,CAAC,MAAM,4BAA4B,GAAG,kBAAkB,CAAC;AAE/D,MAAM,CAAC,MAAM,sBAAsB,GAAG,YAAY,CAAC;AAEnD,MAAM,CAAC,MAAM,mCAAmC,GAAG,yBAAyB,CAAC;AAE7E,MAAM,CAAC,MAAM,gCAAgC,GAAG,sBAAsB,CAAC;AAEvE,MAAM,CAAC,MAAM,gBAAgB,GAAG,MAAM,CAAC;AAEvC;;;;;;;GAOG;AACH,MAAM,CAAC,MAAM,0BAA0B,GAAgC,IAAI,GAAG,CAAC;IAC7E;QACE,gBAAgB;QAChB,iEAAiE;YAC/D,oCAAoC;KACvC;IACD;QACE,sBAAsB;QACtB,yEAAyE;YACvE,4BAA4B;KAC/B;IACD,CAAC,sBAAsB,EAAE,wBAAwB,CAAC;IAClD;QACE,yBAAyB;QACzB,sEAAsE;KACvE;CACF,CAAC,CAAC"}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import type { SimCfnTemplateValue } from "../../../template/value/sim-cfn-template-value.js";
|
|
2
|
+
interface SimCfnStateMachineSubstitutionsProperties {
|
|
3
|
+
readonly logicalId: string;
|
|
4
|
+
readonly declared: SimCfnTemplateValue | undefined;
|
|
5
|
+
}
|
|
6
|
+
/**
|
|
7
|
+
* Applies `DefinitionSubstitutions` to a state machine definition.
|
|
8
|
+
*
|
|
9
|
+
* Each entry replaces every `${Key}` in the definition with its value, which is
|
|
10
|
+
* how real Step Functions reads them. The values arrive already resolved, so a
|
|
11
|
+
* substitution holding a `Ref` is the ARN by the time it lands here.
|
|
12
|
+
*/
|
|
13
|
+
export declare class SimCfnStateMachineSubstitutions {
|
|
14
|
+
#private;
|
|
15
|
+
constructor(properties: SimCfnStateMachineSubstitutionsProperties);
|
|
16
|
+
/**
|
|
17
|
+
* The definition with every placeholder replaced.
|
|
18
|
+
*/
|
|
19
|
+
applyTo(definition: string): string;
|
|
20
|
+
/**
|
|
21
|
+
* The substitutions the template declared, as key and value pairs.
|
|
22
|
+
*/
|
|
23
|
+
private entries;
|
|
24
|
+
/**
|
|
25
|
+
* One substitution value, which has to be something a definition can hold as
|
|
26
|
+
* text.
|
|
27
|
+
*/
|
|
28
|
+
private text;
|
|
29
|
+
private error;
|
|
30
|
+
}
|
|
31
|
+
export {};
|
|
32
|
+
//# sourceMappingURL=sim-cfn-state-machine-substitutions.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sim-cfn-state-machine-substitutions.d.ts","sourceRoot":"","sources":["../../../../../../src/service/cloudformation/resource/cfn/stepfunctions/sim-cfn-state-machine-substitutions.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,mDAAmD,CAAC;AAK7F,UAAU,yCAAyC;IACjD,QAAQ,CAAC,SAAS,EAAE,MAAM,CAAC;IAC3B,QAAQ,CAAC,QAAQ,EAAE,mBAAmB,GAAG,SAAS,CAAC;CACpD;AAED;;;;;;GAMG;AACH,qBAAa,+BAA+B;;IAI1C,YAAY,UAAU,EAAE,yCAAyC,EAGhE;IAED;;OAEG;IACH,OAAO,CAAC,UAAU,EAAE,MAAM,GAAG,MAAM,CAQlC;IAED;;OAEG;IACH,OAAO,CAAC,OAAO;IAcf;;;OAGG;IACH,OAAO,CAAC,IAAI;IAWZ,OAAO,CAAC,KAAK;CAOd"}
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
import { isRecord } from "../../../../../util/type-guard/record.js";
|
|
2
|
+
import { simCfnStepFunctionsResourceError } from "./sim-cfn-step-functions-resource-error.js";
|
|
3
|
+
import { definitionSubstitutionsPropertyName } from "./sim-cfn-state-machine-property-names.js";
|
|
4
|
+
import { stateMachineResourceType } from "./sim-cfn-step-functions-resource-types.js";
|
|
5
|
+
/**
|
|
6
|
+
* Applies `DefinitionSubstitutions` to a state machine definition.
|
|
7
|
+
*
|
|
8
|
+
* Each entry replaces every `${Key}` in the definition with its value, which is
|
|
9
|
+
* how real Step Functions reads them. The values arrive already resolved, so a
|
|
10
|
+
* substitution holding a `Ref` is the ARN by the time it lands here.
|
|
11
|
+
*/
|
|
12
|
+
export class SimCfnStateMachineSubstitutions {
|
|
13
|
+
#logicalId;
|
|
14
|
+
#declared;
|
|
15
|
+
constructor(properties) {
|
|
16
|
+
this.#logicalId = properties.logicalId;
|
|
17
|
+
this.#declared = properties.declared;
|
|
18
|
+
}
|
|
19
|
+
/**
|
|
20
|
+
* The definition with every placeholder replaced.
|
|
21
|
+
*/
|
|
22
|
+
applyTo(definition) {
|
|
23
|
+
let substituted = definition;
|
|
24
|
+
for (const [key, value] of this.entries()) {
|
|
25
|
+
substituted = substituted.split(`\${${key}}`).join(this.text(key, value));
|
|
26
|
+
}
|
|
27
|
+
return substituted;
|
|
28
|
+
}
|
|
29
|
+
/**
|
|
30
|
+
* The substitutions the template declared, as key and value pairs.
|
|
31
|
+
*/
|
|
32
|
+
entries() {
|
|
33
|
+
if (this.#declared === undefined) {
|
|
34
|
+
return [];
|
|
35
|
+
}
|
|
36
|
+
if (!isRecord(this.#declared)) {
|
|
37
|
+
throw this.error(`${definitionSubstitutionsPropertyName} must be an object`);
|
|
38
|
+
}
|
|
39
|
+
return Object.entries(this.#declared);
|
|
40
|
+
}
|
|
41
|
+
/**
|
|
42
|
+
* One substitution value, which has to be something a definition can hold as
|
|
43
|
+
* text.
|
|
44
|
+
*/
|
|
45
|
+
text(key, value) {
|
|
46
|
+
if (value === null || typeof value === "object") {
|
|
47
|
+
throw this.error(`${definitionSubstitutionsPropertyName}.${key} must be a string, a ` +
|
|
48
|
+
"number or a boolean");
|
|
49
|
+
}
|
|
50
|
+
return String(value);
|
|
51
|
+
}
|
|
52
|
+
error(reason) {
|
|
53
|
+
return simCfnStepFunctionsResourceError(stateMachineResourceType, this.#logicalId, reason);
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
//# sourceMappingURL=sim-cfn-state-machine-substitutions.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sim-cfn-state-machine-substitutions.js","sourceRoot":"","sources":["../../../../../../src/service/cloudformation/resource/cfn/stepfunctions/sim-cfn-state-machine-substitutions.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,0CAA0C,CAAC;AAEpE,OAAO,EAAE,gCAAgC,EAAE,MAAM,4CAA4C,CAAC;AAC9F,OAAO,EAAE,mCAAmC,EAAE,MAAM,2CAA2C,CAAC;AAChG,OAAO,EAAE,wBAAwB,EAAE,MAAM,4CAA4C,CAAC;AAOtF;;;;;;GAMG;AACH,MAAM,OAAO,+BAA+B;IACjC,UAAU,CAAS;IACnB,SAAS,CAAkC;IAEpD,YAAY,UAAqD;QAC/D,IAAI,CAAC,UAAU,GAAG,UAAU,CAAC,SAAS,CAAC;QACvC,IAAI,CAAC,SAAS,GAAG,UAAU,CAAC,QAAQ,CAAC;IACvC,CAAC;IAED;;OAEG;IACH,OAAO,CAAC,UAAkB;QACxB,IAAI,WAAW,GAAG,UAAU,CAAC;QAE7B,KAAK,MAAM,CAAC,GAAG,EAAE,KAAK,CAAC,IAAI,IAAI,CAAC,OAAO,EAAE,EAAE,CAAC;YAC1C,WAAW,GAAG,WAAW,CAAC,KAAK,CAAC,MAAM,GAAG,GAAG,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,GAAG,EAAE,KAAK,CAAC,CAAC,CAAC;QAC5E,CAAC;QAED,OAAO,WAAW,CAAC;IACrB,CAAC;IAED;;OAEG;IACK,OAAO;QACb,IAAI,IAAI,CAAC,SAAS,KAAK,SAAS,EAAE,CAAC;YACjC,OAAO,EAAE,CAAC;QACZ,CAAC;QAED,IAAI,CAAC,QAAQ,CAAC,IAAI,CAAC,SAAS,CAAC,EAAE,CAAC;YAC9B,MAAM,IAAI,CAAC,KAAK,CACd,GAAG,mCAAmC,oBAAoB,CAC3D,CAAC;QACJ,CAAC;QAED,OAAO,MAAM,CAAC,OAAO,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC;IACxC,CAAC;IAED;;;OAGG;IACK,IAAI,CAAC,GAAW,EAAE,KAA0B;QAClD,IAAI,KAAK,KAAK,IAAI,IAAI,OAAO,KAAK,KAAK,QAAQ,EAAE,CAAC;YAChD,MAAM,IAAI,CAAC,KAAK,CACd,GAAG,mCAAmC,IAAI,GAAG,uBAAuB;gBAClE,qBAAqB,CACxB,CAAC;QACJ,CAAC;QAED,OAAO,MAAM,CAAC,KAAK,CAAC,CAAC;IACvB,CAAC;IAEO,KAAK,CAAC,MAAc;QAC1B,OAAO,gCAAgC,CACrC,wBAAwB,EACxB,IAAI,CAAC,UAAU,EACf,MAAM,CACP,CAAC;IACJ,CAAC;CACF"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import type { SimStepFunctions } from "../../../../stepfunctions/sim-step-functions.js";
|
|
2
|
+
import type { SimCfnResource } from "../../sim-cfn-resource.js";
|
|
3
|
+
interface SimCfnStepFunctionsResourceDeleterProperties {
|
|
4
|
+
readonly stepFunctions: SimStepFunctions;
|
|
5
|
+
}
|
|
6
|
+
/**
|
|
7
|
+
* Deletes the simulated Step Functions resources a CloudFormation Stack
|
|
8
|
+
* created.
|
|
9
|
+
*/
|
|
10
|
+
export declare class SimCfnStepFunctionsResourceDeleter {
|
|
11
|
+
#private;
|
|
12
|
+
constructor(properties: SimCfnStepFunctionsResourceDeleterProperties);
|
|
13
|
+
/**
|
|
14
|
+
* Delete a simulated Step Functions resource created from a CloudFormation
|
|
15
|
+
* Resource.
|
|
16
|
+
*/
|
|
17
|
+
delete(resourceTypeName: string, resource: SimCfnResource): Promise<void>;
|
|
18
|
+
}
|
|
19
|
+
export {};
|
|
20
|
+
//# sourceMappingURL=sim-cfn-step-functions-resource-deleter.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sim-cfn-step-functions-resource-deleter.d.ts","sourceRoot":"","sources":["../../../../../../src/service/cloudformation/resource/cfn/stepfunctions/sim-cfn-step-functions-resource-deleter.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,iDAAiD,CAAC;AACxF,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAC;AAGhE,UAAU,4CAA4C;IACpD,QAAQ,CAAC,aAAa,EAAE,gBAAgB,CAAC;CAC1C;AAED;;;GAGG;AACH,qBAAa,kCAAkC;;IAG7C,YAAY,UAAU,EAAE,4CAA4C,EAEnE;IAED;;;OAGG;IACG,MAAM,CACV,gBAAgB,EAAE,MAAM,EACxB,QAAQ,EAAE,cAAc,GACvB,OAAO,CAAC,IAAI,CAAC,CAiBf;CACF"}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { assertDefined } from "../../../../../util/type-guard/defined.js";
|
|
2
|
+
import { stateMachineResourceTypeName } from "./sim-cfn-step-functions-resource-types.js";
|
|
3
|
+
/**
|
|
4
|
+
* Deletes the simulated Step Functions resources a CloudFormation Stack
|
|
5
|
+
* created.
|
|
6
|
+
*/
|
|
7
|
+
export class SimCfnStepFunctionsResourceDeleter {
|
|
8
|
+
#stepFunctions;
|
|
9
|
+
constructor(properties) {
|
|
10
|
+
this.#stepFunctions = properties.stepFunctions;
|
|
11
|
+
}
|
|
12
|
+
/**
|
|
13
|
+
* Delete a simulated Step Functions resource created from a CloudFormation
|
|
14
|
+
* Resource.
|
|
15
|
+
*/
|
|
16
|
+
async delete(resourceTypeName, resource) {
|
|
17
|
+
if (resourceTypeName !== stateMachineResourceTypeName) {
|
|
18
|
+
throw new Error(`Unsupported sim StepFunctions CloudFormation Resource ` +
|
|
19
|
+
`${resourceTypeName} deletion`);
|
|
20
|
+
}
|
|
21
|
+
const stateMachine = resource.simResource;
|
|
22
|
+
assertDefined(stateMachine, `sim state machine for CloudFormation Resource ${resource.logicalId}`);
|
|
23
|
+
await this.#stepFunctions.deleteStateMachine({
|
|
24
|
+
input: { stateMachineArn: stateMachine.arn },
|
|
25
|
+
});
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
//# sourceMappingURL=sim-cfn-step-functions-resource-deleter.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sim-cfn-step-functions-resource-deleter.js","sourceRoot":"","sources":["../../../../../../src/service/cloudformation/resource/cfn/stepfunctions/sim-cfn-step-functions-resource-deleter.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,2CAA2C,CAAC;AAI1E,OAAO,EAAE,4BAA4B,EAAE,MAAM,4CAA4C,CAAC;AAM1F;;;GAGG;AACH,MAAM,OAAO,kCAAkC;IACpC,cAAc,CAAmB;IAE1C,YAAY,UAAwD;QAClE,IAAI,CAAC,cAAc,GAAG,UAAU,CAAC,aAAa,CAAC;IACjD,CAAC;IAED;;;OAGG;IACH,KAAK,CAAC,MAAM,CACV,gBAAwB,EACxB,QAAwB;QAExB,IAAI,gBAAgB,KAAK,4BAA4B,EAAE,CAAC;YACtD,MAAM,IAAI,KAAK,CACb,wDAAwD;gBACtD,GAAG,gBAAgB,WAAW,CACjC,CAAC;QACJ,CAAC;QAED,MAAM,YAAY,GAAG,QAAQ,CAAC,WAA0C,CAAC;QACzE,aAAa,CACX,YAAY,EACZ,iDAAiD,QAAQ,CAAC,SAAS,EAAE,CACtE,CAAC;QAEF,MAAM,IAAI,CAAC,cAAc,CAAC,kBAAkB,CAAC;YAC3C,KAAK,EAAE,EAAE,eAAe,EAAE,YAAY,CAAC,GAAG,EAAE;SAC7C,CAAC,CAAC;IACL,CAAC;CACF"}
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Build the error a Resource of a simulated Step Functions type is refused
|
|
3
|
+
* with.
|
|
4
|
+
*
|
|
5
|
+
* Sim CloudFormation fails a Stack on this one, so it is kept for a Resource
|
|
6
|
+
* nothing coherent could be deployed from. A template carrying no definition
|
|
7
|
+
* at all, a definition Amazon States Language itself refuses, a name Step
|
|
8
|
+
* Functions will not take. Real CloudFormation fails those too. A definition
|
|
9
|
+
* this simulator cannot run is a different thing and takes the skip below.
|
|
10
|
+
*/
|
|
11
|
+
export declare function simCfnStepFunctionsResourceError(resourceType: string, logicalId: string, reason: string, cause?: unknown): Error;
|
|
12
|
+
/**
|
|
13
|
+
* Build the error a Resource carrying something the interpreter cannot run is
|
|
14
|
+
* skipped with.
|
|
15
|
+
*
|
|
16
|
+
* The "Unsupported sim ... CloudFormation" wording is what sim CloudFormation
|
|
17
|
+
* reads as a Resource to record and step over, so the Resource lands on
|
|
18
|
+
* `stack.skippedResources` carrying the reason Step Functions gave, and the
|
|
19
|
+
* rest of the template deploys.
|
|
20
|
+
*
|
|
21
|
+
* A state machine missing one state runs wrong, and a test watching it run
|
|
22
|
+
* wrong is worse off than one watching it be absent. So the whole state
|
|
23
|
+
* machine goes rather than the state, and the Stack around it is no business
|
|
24
|
+
* of one workflow.
|
|
25
|
+
*/
|
|
26
|
+
export declare function simCfnStepFunctionsSkippedResourceError(resourceType: string, logicalId: string, reason: string, cause?: unknown): Error;
|
|
27
|
+
/**
|
|
28
|
+
* Run the simulated Step Functions commands one Resource is made of, naming
|
|
29
|
+
* the Resource in whatever they refuse.
|
|
30
|
+
*
|
|
31
|
+
* Every Resource type here goes through the ordinary Step Functions commands,
|
|
32
|
+
* so what a template may ask for is decided once, by simulated Step Functions,
|
|
33
|
+
* rather than again in the CloudFormation layer. What that leaves out is where
|
|
34
|
+
* the request came from. A deployment failing with `The state Fan is a Parallel
|
|
35
|
+
* state` says which state but not which Resource declared it, and a template
|
|
36
|
+
* can hold several.
|
|
37
|
+
*
|
|
38
|
+
* The two kinds of refusal part company here. A definition Amazon States
|
|
39
|
+
* Language refuses is a failed Resource, and one it accepts that this
|
|
40
|
+
* simulator cannot run is a skipped one.
|
|
41
|
+
*/
|
|
42
|
+
export declare function simCfnStepFunctionsResourceCommand<T>(resourceType: string, logicalId: string, run: () => Promise<T>): Promise<T>;
|
|
43
|
+
//# sourceMappingURL=sim-cfn-step-functions-resource-error.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sim-cfn-step-functions-resource-error.d.ts","sourceRoot":"","sources":["../../../../../../src/service/cloudformation/resource/cfn/stepfunctions/sim-cfn-step-functions-resource-error.ts"],"names":[],"mappings":"AAKA;;;;;;;;;GASG;AACH,wBAAgB,gCAAgC,CAC9C,YAAY,EAAE,MAAM,EACpB,SAAS,EAAE,MAAM,EACjB,MAAM,EAAE,MAAM,EACd,KAAK,CAAC,EAAE,OAAO,GACd,KAAK,CAIP;AAED;;;;;;;;;;;;;GAaG;AACH,wBAAgB,uCAAuC,CACrD,YAAY,EAAE,MAAM,EACpB,SAAS,EAAE,MAAM,EACjB,MAAM,EAAE,MAAM,EACd,KAAK,CAAC,EAAE,OAAO,GACd,KAAK,CAMP;AAED;;;;;;;;;;;;;;GAcG;AACH,wBAAsB,kCAAkC,CAAC,CAAC,EACxD,YAAY,EAAE,MAAM,EACpB,SAAS,EAAE,MAAM,EACjB,GAAG,EAAE,MAAM,OAAO,CAAC,CAAC,CAAC,GACpB,OAAO,CAAC,CAAC,CAAC,CAwBZ"}
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
import { SimStatesUnsimulatedInput, SimStepFunctionsError, } from "../../../../stepfunctions/error/sim-step-functions.error.js";
|
|
2
|
+
/**
|
|
3
|
+
* Build the error a Resource of a simulated Step Functions type is refused
|
|
4
|
+
* with.
|
|
5
|
+
*
|
|
6
|
+
* Sim CloudFormation fails a Stack on this one, so it is kept for a Resource
|
|
7
|
+
* nothing coherent could be deployed from. A template carrying no definition
|
|
8
|
+
* at all, a definition Amazon States Language itself refuses, a name Step
|
|
9
|
+
* Functions will not take. Real CloudFormation fails those too. A definition
|
|
10
|
+
* this simulator cannot run is a different thing and takes the skip below.
|
|
11
|
+
*/
|
|
12
|
+
export function simCfnStepFunctionsResourceError(resourceType, logicalId, reason, cause) {
|
|
13
|
+
return new Error(`Invalid ${resourceType} Resource ${logicalId}: ${reason}`, {
|
|
14
|
+
cause,
|
|
15
|
+
});
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* Build the error a Resource carrying something the interpreter cannot run is
|
|
19
|
+
* skipped with.
|
|
20
|
+
*
|
|
21
|
+
* The "Unsupported sim ... CloudFormation" wording is what sim CloudFormation
|
|
22
|
+
* reads as a Resource to record and step over, so the Resource lands on
|
|
23
|
+
* `stack.skippedResources` carrying the reason Step Functions gave, and the
|
|
24
|
+
* rest of the template deploys.
|
|
25
|
+
*
|
|
26
|
+
* A state machine missing one state runs wrong, and a test watching it run
|
|
27
|
+
* wrong is worse off than one watching it be absent. So the whole state
|
|
28
|
+
* machine goes rather than the state, and the Stack around it is no business
|
|
29
|
+
* of one workflow.
|
|
30
|
+
*/
|
|
31
|
+
export function simCfnStepFunctionsSkippedResourceError(resourceType, logicalId, reason, cause) {
|
|
32
|
+
return new Error(`Unsupported sim StepFunctions CloudFormation ${resourceType} Resource ` +
|
|
33
|
+
`${logicalId}: ${reason}`, { cause });
|
|
34
|
+
}
|
|
35
|
+
/**
|
|
36
|
+
* Run the simulated Step Functions commands one Resource is made of, naming
|
|
37
|
+
* the Resource in whatever they refuse.
|
|
38
|
+
*
|
|
39
|
+
* Every Resource type here goes through the ordinary Step Functions commands,
|
|
40
|
+
* so what a template may ask for is decided once, by simulated Step Functions,
|
|
41
|
+
* rather than again in the CloudFormation layer. What that leaves out is where
|
|
42
|
+
* the request came from. A deployment failing with `The state Fan is a Parallel
|
|
43
|
+
* state` says which state but not which Resource declared it, and a template
|
|
44
|
+
* can hold several.
|
|
45
|
+
*
|
|
46
|
+
* The two kinds of refusal part company here. A definition Amazon States
|
|
47
|
+
* Language refuses is a failed Resource, and one it accepts that this
|
|
48
|
+
* simulator cannot run is a skipped one.
|
|
49
|
+
*/
|
|
50
|
+
export async function simCfnStepFunctionsResourceCommand(resourceType, logicalId, run) {
|
|
51
|
+
try {
|
|
52
|
+
return await run();
|
|
53
|
+
}
|
|
54
|
+
catch (error) {
|
|
55
|
+
if (error instanceof SimStatesUnsimulatedInput) {
|
|
56
|
+
throw simCfnStepFunctionsSkippedResourceError(resourceType, logicalId, error.message, error);
|
|
57
|
+
}
|
|
58
|
+
if (error instanceof SimStepFunctionsError) {
|
|
59
|
+
throw simCfnStepFunctionsResourceError(resourceType, logicalId, error.message, error);
|
|
60
|
+
}
|
|
61
|
+
throw error;
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
//# sourceMappingURL=sim-cfn-step-functions-resource-error.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sim-cfn-step-functions-resource-error.js","sourceRoot":"","sources":["../../../../../../src/service/cloudformation/resource/cfn/stepfunctions/sim-cfn-step-functions-resource-error.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,yBAAyB,EACzB,qBAAqB,GACtB,MAAM,6DAA6D,CAAC;AAErE;;;;;;;;;GASG;AACH,MAAM,UAAU,gCAAgC,CAC9C,YAAoB,EACpB,SAAiB,EACjB,MAAc,EACd,KAAe;IAEf,OAAO,IAAI,KAAK,CAAC,WAAW,YAAY,aAAa,SAAS,KAAK,MAAM,EAAE,EAAE;QAC3E,KAAK;KACN,CAAC,CAAC;AACL,CAAC;AAED;;;;;;;;;;;;;GAaG;AACH,MAAM,UAAU,uCAAuC,CACrD,YAAoB,EACpB,SAAiB,EACjB,MAAc,EACd,KAAe;IAEf,OAAO,IAAI,KAAK,CACd,gDAAgD,YAAY,YAAY;QACtE,GAAG,SAAS,KAAK,MAAM,EAAE,EAC3B,EAAE,KAAK,EAAE,CACV,CAAC;AACJ,CAAC;AAED;;;;;;;;;;;;;;GAcG;AACH,MAAM,CAAC,KAAK,UAAU,kCAAkC,CACtD,YAAoB,EACpB,SAAiB,EACjB,GAAqB;IAErB,IAAI,CAAC;QACH,OAAO,MAAM,GAAG,EAAE,CAAC;IACrB,CAAC;IAAC,OAAO,KAAK,EAAE,CAAC;QACf,IAAI,KAAK,YAAY,yBAAyB,EAAE,CAAC;YAC/C,MAAM,uCAAuC,CAC3C,YAAY,EACZ,SAAS,EACT,KAAK,CAAC,OAAO,EACb,KAAK,CACN,CAAC;QACJ,CAAC;QAED,IAAI,KAAK,YAAY,qBAAqB,EAAE,CAAC;YAC3C,MAAM,gCAAgC,CACpC,YAAY,EACZ,SAAS,EACT,KAAK,CAAC,OAAO,EACb,KAAK,CACN,CAAC;QACJ,CAAC;QAED,MAAM,KAAK,CAAC;IACd,CAAC;AACH,CAAC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The CloudFormation Resource types simulated Step Functions creates.
|
|
3
|
+
*
|
|
4
|
+
* Named here rather than spelled out where they are used, because each one is
|
|
5
|
+
* written twice, once by the factory dispatching on it and once by the
|
|
6
|
+
* refusals that quote it back to whoever wrote the template.
|
|
7
|
+
*/
|
|
8
|
+
export declare const stateMachineResourceType = "AWS::StepFunctions::StateMachine";
|
|
9
|
+
export declare const stateMachineResourceTypeName = "StateMachine";
|
|
10
|
+
//# sourceMappingURL=sim-cfn-step-functions-resource-types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sim-cfn-step-functions-resource-types.d.ts","sourceRoot":"","sources":["../../../../../../src/service/cloudformation/resource/cfn/stepfunctions/sim-cfn-step-functions-resource-types.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AACH,eAAO,MAAM,wBAAwB,qCAAqC,CAAC;AAE3E,eAAO,MAAM,4BAA4B,iBAAiB,CAAC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The CloudFormation Resource types simulated Step Functions creates.
|
|
3
|
+
*
|
|
4
|
+
* Named here rather than spelled out where they are used, because each one is
|
|
5
|
+
* written twice, once by the factory dispatching on it and once by the
|
|
6
|
+
* refusals that quote it back to whoever wrote the template.
|
|
7
|
+
*/
|
|
8
|
+
export const stateMachineResourceType = "AWS::StepFunctions::StateMachine";
|
|
9
|
+
export const stateMachineResourceTypeName = "StateMachine";
|
|
10
|
+
//# sourceMappingURL=sim-cfn-step-functions-resource-types.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sim-cfn-step-functions-resource-types.js","sourceRoot":"","sources":["../../../../../../src/service/cloudformation/resource/cfn/stepfunctions/sim-cfn-step-functions-resource-types.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AACH,MAAM,CAAC,MAAM,wBAAwB,GAAG,kCAAkC,CAAC;AAE3E,MAAM,CAAC,MAAM,4BAA4B,GAAG,cAAc,CAAC"}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import type { SimStateMachine } from "../../../../stepfunctions/machine/sim-state-machine.js";
|
|
2
|
+
import type { SimCfnTemplateValue } from "../../../template/value/sim-cfn-template-value.js";
|
|
3
|
+
import type { SimCfnResourceValueAdapter } from "../sim-cfn-resource-value-adapter.js";
|
|
4
|
+
/**
|
|
5
|
+
* CloudFormation-facing values for a simulated state machine.
|
|
6
|
+
*/
|
|
7
|
+
export declare class SimStateMachineCfn implements SimCfnResourceValueAdapter {
|
|
8
|
+
#private;
|
|
9
|
+
constructor(stateMachine: SimStateMachine);
|
|
10
|
+
/**
|
|
11
|
+
* A Ref to an AWS::StepFunctions::StateMachine returns the ARN.
|
|
12
|
+
*
|
|
13
|
+
* The other way round from most Resources, and the way round real
|
|
14
|
+
* CloudFormation publishes this one. It is also what CDK reads for
|
|
15
|
+
* `stateMachineArn`, so a grant or an environment variable pointing at a
|
|
16
|
+
* workflow resolves.
|
|
17
|
+
*/
|
|
18
|
+
refValue(): SimCfnTemplateValue;
|
|
19
|
+
/**
|
|
20
|
+
* The two attributes the Resource publishes, which are the ARN and the name.
|
|
21
|
+
*
|
|
22
|
+
* `StateMachineRevisionId` is left out. A revision is what a published
|
|
23
|
+
* version is cut from, and neither is simulated.
|
|
24
|
+
*/
|
|
25
|
+
attributeValue(attributeName: string): SimCfnTemplateValue;
|
|
26
|
+
}
|
|
27
|
+
//# sourceMappingURL=sim-state-machine-cfn.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sim-state-machine-cfn.d.ts","sourceRoot":"","sources":["../../../../../../src/service/cloudformation/resource/cfn/stepfunctions/sim-state-machine-cfn.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,wDAAwD,CAAC;AAC9F,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,mDAAmD,CAAC;AAC7F,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,sCAAsC,CAAC;AAEvF;;GAEG;AACH,qBAAa,kBAAmB,YAAW,0BAA0B;;IAGnE,YAAY,YAAY,EAAE,eAAe,EAExC;IAED;;;;;;;OAOG;IACH,QAAQ,IAAI,mBAAmB,CAE9B;IAED;;;;;OAKG;IACH,cAAc,CAAC,aAAa,EAAE,MAAM,GAAG,mBAAmB,CAazD;CACF"}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { assertDefined } from "../../../../../util/type-guard/defined.js";
|
|
2
|
+
/**
|
|
3
|
+
* CloudFormation-facing values for a simulated state machine.
|
|
4
|
+
*/
|
|
5
|
+
export class SimStateMachineCfn {
|
|
6
|
+
#stateMachine;
|
|
7
|
+
constructor(stateMachine) {
|
|
8
|
+
this.#stateMachine = stateMachine;
|
|
9
|
+
}
|
|
10
|
+
/**
|
|
11
|
+
* A Ref to an AWS::StepFunctions::StateMachine returns the ARN.
|
|
12
|
+
*
|
|
13
|
+
* The other way round from most Resources, and the way round real
|
|
14
|
+
* CloudFormation publishes this one. It is also what CDK reads for
|
|
15
|
+
* `stateMachineArn`, so a grant or an environment variable pointing at a
|
|
16
|
+
* workflow resolves.
|
|
17
|
+
*/
|
|
18
|
+
refValue() {
|
|
19
|
+
return this.#stateMachine.arn;
|
|
20
|
+
}
|
|
21
|
+
/**
|
|
22
|
+
* The two attributes the Resource publishes, which are the ARN and the name.
|
|
23
|
+
*
|
|
24
|
+
* `StateMachineRevisionId` is left out. A revision is what a published
|
|
25
|
+
* version is cut from, and neither is simulated.
|
|
26
|
+
*/
|
|
27
|
+
attributeValue(attributeName) {
|
|
28
|
+
const values = new Map([
|
|
29
|
+
["Arn", this.#stateMachine.arn],
|
|
30
|
+
["Name", this.#stateMachine.name],
|
|
31
|
+
]);
|
|
32
|
+
const value = values.get(attributeName);
|
|
33
|
+
assertDefined(value, `Unsupported AWS::StepFunctions::StateMachine attribute ${attributeName}`);
|
|
34
|
+
return value;
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
//# sourceMappingURL=sim-state-machine-cfn.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sim-state-machine-cfn.js","sourceRoot":"","sources":["../../../../../../src/service/cloudformation/resource/cfn/stepfunctions/sim-state-machine-cfn.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,2CAA2C,CAAC;AAK1E;;GAEG;AACH,MAAM,OAAO,kBAAkB;IACpB,aAAa,CAAkB;IAExC,YAAY,YAA6B;QACvC,IAAI,CAAC,aAAa,GAAG,YAAY,CAAC;IACpC,CAAC;IAED;;;;;;;OAOG;IACH,QAAQ;QACN,OAAO,IAAI,CAAC,aAAa,CAAC,GAAG,CAAC;IAChC,CAAC;IAED;;;;;OAKG;IACH,cAAc,CAAC,aAAqB;QAClC,MAAM,MAAM,GAAG,IAAI,GAAG,CAAC;YACrB,CAAC,KAAK,EAAE,IAAI,CAAC,aAAa,CAAC,GAAG,CAAC;YAC/B,CAAC,MAAM,EAAE,IAAI,CAAC,aAAa,CAAC,IAAI,CAAC;SAClC,CAAC,CAAC;QACH,MAAM,KAAK,GAAG,MAAM,CAAC,GAAG,CAAC,aAAa,CAAC,CAAC;QAExC,aAAa,CACX,KAAK,EACL,0DAA0D,aAAa,EAAE,CAC1E,CAAC;QAEF,OAAO,KAAK,CAAC;IACf,CAAC;CACF"}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import type { SimStepFunctions } from "../../../../stepfunctions/sim-step-functions.js";
|
|
2
|
+
import type { SimCfnServiceResourceFactory } from "../../factory/sim-cfn-resource-factory.type.js";
|
|
3
|
+
import type { SimCfnResource, SimCloudFormationResourceCreateContext, SimCloudFormationResourceDeleteContext } from "../../sim-cfn-resource.js";
|
|
4
|
+
interface SimStepFunctionsCfnResourceFactoryProperties {
|
|
5
|
+
readonly stepFunctions: SimStepFunctions;
|
|
6
|
+
}
|
|
7
|
+
/**
|
|
8
|
+
* CloudFormation Resource factory for simulated Step Functions resources.
|
|
9
|
+
*/
|
|
10
|
+
export declare class SimStepFunctionsCfnResourceFactory implements SimCfnServiceResourceFactory {
|
|
11
|
+
#private;
|
|
12
|
+
constructor(properties: SimStepFunctionsCfnResourceFactoryProperties);
|
|
13
|
+
/**
|
|
14
|
+
* Create a simulated Step Functions resource from a CloudFormation Resource.
|
|
15
|
+
*
|
|
16
|
+
* The state machine is the one AWS::StepFunctions::* Resource type this
|
|
17
|
+
* simulation models. `StateMachineVersion` publishes an immutable copy of a
|
|
18
|
+
* definition and `StateMachineAlias` routes executions between versions, and
|
|
19
|
+
* neither has anything to act on while every execution runs the definition
|
|
20
|
+
* the state machine currently holds. Both are reported as unsupported and
|
|
21
|
+
* skipped rather than quietly treated as deployed.
|
|
22
|
+
*/
|
|
23
|
+
create(resourceTypeName: string, resource: SimCfnResource, context: SimCloudFormationResourceCreateContext): Promise<object | undefined>;
|
|
24
|
+
/**
|
|
25
|
+
* Delete a simulated Step Functions resource created from a CloudFormation
|
|
26
|
+
* Resource.
|
|
27
|
+
*/
|
|
28
|
+
delete(resourceTypeName: string, resource: SimCfnResource, _context: SimCloudFormationResourceDeleteContext): Promise<void>;
|
|
29
|
+
}
|
|
30
|
+
export {};
|
|
31
|
+
//# sourceMappingURL=sim-step-functions-cfn-resource-factory.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sim-step-functions-cfn-resource-factory.d.ts","sourceRoot":"","sources":["../../../../../../src/service/cloudformation/resource/cfn/stepfunctions/sim-step-functions-cfn-resource-factory.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,iDAAiD,CAAC;AACxF,OAAO,KAAK,EAAE,4BAA4B,EAAE,MAAM,gDAAgD,CAAC;AACnG,OAAO,KAAK,EACV,cAAc,EACd,sCAAsC,EACtC,sCAAsC,EACvC,MAAM,2BAA2B,CAAC;AAKnC,UAAU,4CAA4C;IACpD,QAAQ,CAAC,aAAa,EAAE,gBAAgB,CAAC;CAC1C;AAED;;GAEG;AACH,qBAAa,kCAAmC,YAAW,4BAA4B;;IAIrF,YAAY,UAAU,EAAE,4CAA4C,EAOnE;IAED;;;;;;;;;OASG;IACG,MAAM,CACV,gBAAgB,EAAE,MAAM,EACxB,QAAQ,EAAE,cAAc,EACxB,OAAO,EAAE,sCAAsC,GAC9C,OAAO,CAAC,MAAM,GAAG,SAAS,CAAC,CAW7B;IAED;;;OAGG;IACG,MAAM,CACV,gBAAgB,EAAE,MAAM,EACxB,QAAQ,EAAE,cAAc,EACxB,QAAQ,EAAE,sCAAsC,GAC/C,OAAO,CAAC,IAAI,CAAC,CAEf;CACF"}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { SimCfnStateMachineCreator } from "./sim-cfn-state-machine-creator.js";
|
|
2
|
+
import { SimCfnStepFunctionsResourceDeleter } from "./sim-cfn-step-functions-resource-deleter.js";
|
|
3
|
+
import { stateMachineResourceTypeName } from "./sim-cfn-step-functions-resource-types.js";
|
|
4
|
+
/**
|
|
5
|
+
* CloudFormation Resource factory for simulated Step Functions resources.
|
|
6
|
+
*/
|
|
7
|
+
export class SimStepFunctionsCfnResourceFactory {
|
|
8
|
+
#stateMachineCreator;
|
|
9
|
+
#deleter;
|
|
10
|
+
constructor(properties) {
|
|
11
|
+
this.#stateMachineCreator = new SimCfnStateMachineCreator({
|
|
12
|
+
stepFunctions: properties.stepFunctions,
|
|
13
|
+
});
|
|
14
|
+
this.#deleter = new SimCfnStepFunctionsResourceDeleter({
|
|
15
|
+
stepFunctions: properties.stepFunctions,
|
|
16
|
+
});
|
|
17
|
+
}
|
|
18
|
+
/**
|
|
19
|
+
* Create a simulated Step Functions resource from a CloudFormation Resource.
|
|
20
|
+
*
|
|
21
|
+
* The state machine is the one AWS::StepFunctions::* Resource type this
|
|
22
|
+
* simulation models. `StateMachineVersion` publishes an immutable copy of a
|
|
23
|
+
* definition and `StateMachineAlias` routes executions between versions, and
|
|
24
|
+
* neither has anything to act on while every execution runs the definition
|
|
25
|
+
* the state machine currently holds. Both are reported as unsupported and
|
|
26
|
+
* skipped rather than quietly treated as deployed.
|
|
27
|
+
*/
|
|
28
|
+
async create(resourceTypeName, resource, context) {
|
|
29
|
+
if (resourceTypeName !== stateMachineResourceTypeName) {
|
|
30
|
+
throw new Error(`Unsupported sim StepFunctions CloudFormation Resource ${resourceTypeName}`);
|
|
31
|
+
}
|
|
32
|
+
return await this.#stateMachineCreator.create(resource, context.resolvedProperties ?? resource.properties);
|
|
33
|
+
}
|
|
34
|
+
/**
|
|
35
|
+
* Delete a simulated Step Functions resource created from a CloudFormation
|
|
36
|
+
* Resource.
|
|
37
|
+
*/
|
|
38
|
+
async delete(resourceTypeName, resource, _context) {
|
|
39
|
+
await this.#deleter.delete(resourceTypeName, resource);
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
//# sourceMappingURL=sim-step-functions-cfn-resource-factory.js.map
|