@kensio/yulin 1.20.2 → 1.20.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +39 -39
- package/dist/sdk/router/resolve-sim-sdk-command-router.d.ts +8 -0
- package/dist/sdk/router/resolve-sim-sdk-command-router.d.ts.map +1 -1
- package/dist/sdk/router/resolve-sim-sdk-command-router.js +10 -0
- package/dist/sdk/router/resolve-sim-sdk-command-router.js.map +1 -1
- package/dist/service/aws/factory/sim-aws-account-region-service-builder.d.ts +4 -0
- package/dist/service/aws/factory/sim-aws-account-region-service-builder.d.ts.map +1 -1
- package/dist/service/aws/factory/sim-aws-account-region-service-builder.js +6 -0
- package/dist/service/aws/factory/sim-aws-account-region-service-builder.js.map +1 -1
- package/dist/service/cloudformation/cdk/ssm/cross-region-parameter/sim-cdk-cross-region-parameter-error.d.ts +15 -0
- package/dist/service/cloudformation/cdk/ssm/cross-region-parameter/sim-cdk-cross-region-parameter-error.d.ts.map +1 -0
- package/dist/service/cloudformation/cdk/ssm/cross-region-parameter/sim-cdk-cross-region-parameter-error.js +18 -0
- package/dist/service/cloudformation/cdk/ssm/cross-region-parameter/sim-cdk-cross-region-parameter-error.js.map +1 -0
- package/dist/service/cloudformation/cdk/ssm/cross-region-parameter/sim-cdk-cross-region-parameter-properties.d.ts +30 -0
- package/dist/service/cloudformation/cdk/ssm/cross-region-parameter/sim-cdk-cross-region-parameter-properties.d.ts.map +1 -0
- package/dist/service/cloudformation/cdk/ssm/cross-region-parameter/sim-cdk-cross-region-parameter-properties.js +74 -0
- package/dist/service/cloudformation/cdk/ssm/cross-region-parameter/sim-cdk-cross-region-parameter-properties.js.map +1 -0
- package/dist/service/cloudformation/cdk/ssm/cross-region-parameter/sim-cdk-cross-region-parameter-reader.d.ts +45 -0
- package/dist/service/cloudformation/cdk/ssm/cross-region-parameter/sim-cdk-cross-region-parameter-reader.d.ts.map +1 -0
- package/dist/service/cloudformation/cdk/ssm/cross-region-parameter/sim-cdk-cross-region-parameter-reader.js +82 -0
- package/dist/service/cloudformation/cdk/ssm/cross-region-parameter/sim-cdk-cross-region-parameter-reader.js.map +1 -0
- package/dist/service/cloudformation/cdk/ssm/cross-region-parameter/sim-cdk-cross-region-parameter-reading.d.ts +27 -0
- package/dist/service/cloudformation/cdk/ssm/cross-region-parameter/sim-cdk-cross-region-parameter-reading.d.ts.map +1 -0
- package/dist/service/cloudformation/cdk/ssm/cross-region-parameter/sim-cdk-cross-region-parameter-reading.js +24 -0
- package/dist/service/cloudformation/cdk/ssm/cross-region-parameter/sim-cdk-cross-region-parameter-reading.js.map +1 -0
- package/dist/service/cloudformation/cdk/ssm/cross-region-parameter/sim-cdk-cross-region-parameter-template.factory.d.ts +39 -0
- package/dist/service/cloudformation/cdk/ssm/cross-region-parameter/sim-cdk-cross-region-parameter-template.factory.d.ts.map +1 -0
- package/dist/service/cloudformation/cdk/ssm/cross-region-parameter/sim-cdk-cross-region-parameter-template.factory.js +42 -0
- package/dist/service/cloudformation/cdk/ssm/cross-region-parameter/sim-cdk-cross-region-parameter-template.factory.js.map +1 -0
- package/dist/service/cloudformation/resource/cfn/cdk/sim-cdk-cross-region-parameter-cfn.d.ts +32 -0
- package/dist/service/cloudformation/resource/cfn/cdk/sim-cdk-cross-region-parameter-cfn.d.ts.map +1 -0
- package/dist/service/cloudformation/resource/cfn/cdk/sim-cdk-cross-region-parameter-cfn.js +36 -0
- package/dist/service/cloudformation/resource/cfn/cdk/sim-cdk-cross-region-parameter-cfn.js.map +1 -0
- package/dist/service/cloudformation/resource/cfn/cdk/sim-cdk-custom-resource-value-adapter.d.ts +14 -0
- package/dist/service/cloudformation/resource/cfn/cdk/sim-cdk-custom-resource-value-adapter.d.ts.map +1 -0
- package/dist/service/cloudformation/resource/cfn/cdk/sim-cdk-custom-resource-value-adapter.js +23 -0
- package/dist/service/cloudformation/resource/cfn/cdk/sim-cdk-custom-resource-value-adapter.js.map +1 -0
- package/dist/service/cloudformation/resource/cfn/sim-cfn-default-resource-value-adapter.d.ts.map +1 -1
- package/dist/service/cloudformation/resource/cfn/sim-cfn-default-resource-value-adapter.js +2 -1
- package/dist/service/cloudformation/resource/cfn/sim-cfn-default-resource-value-adapter.js.map +1 -1
- package/dist/service/cloudformation/resource/cfn/sim-cfn-service-value-adapters.d.ts +2 -1
- package/dist/service/cloudformation/resource/cfn/sim-cfn-service-value-adapters.d.ts.map +1 -1
- package/dist/service/cloudformation/resource/cfn/sim-cfn-service-value-adapters.js +4 -1
- package/dist/service/cloudformation/resource/cfn/sim-cfn-service-value-adapters.js.map +1 -1
- package/dist/service/cloudformation/resource/cfn/sim-cfn-unanswered-attribute.d.ts +23 -0
- package/dist/service/cloudformation/resource/cfn/sim-cfn-unanswered-attribute.d.ts.map +1 -0
- package/dist/service/cloudformation/resource/cfn/sim-cfn-unanswered-attribute.js +46 -0
- package/dist/service/cloudformation/resource/cfn/sim-cfn-unanswered-attribute.js.map +1 -0
- package/dist/service/cloudformation/resource/cfn/stepfunctions/sim-step-functions-cfn-value-adapter.js +1 -1
- package/dist/service/cloudformation/resource/cfn/stepfunctions/sim-step-functions-cfn-value-adapter.js.map +1 -1
- package/dist/service/cloudformation/resource/resolve/service/sim-cfn-custom-resource-factories.d.ts.map +1 -1
- package/dist/service/cloudformation/resource/resolve/service/sim-cfn-custom-resource-factories.js +5 -0
- package/dist/service/cloudformation/resource/resolve/service/sim-cfn-custom-resource-factories.js.map +1 -1
- package/dist/service/cloudformation/resource/resolve/service/sim-cfn-service-factories.d.ts.map +1 -1
- package/dist/service/cloudformation/resource/resolve/service/sim-cfn-service-factories.js +1 -4
- package/dist/service/cloudformation/resource/resolve/service/sim-cfn-service-factories.js.map +1 -1
- package/dist/service/cloudformation/resource/sim-cfn-resource-record.d.ts +7 -0
- package/dist/service/cloudformation/resource/sim-cfn-resource-record.d.ts.map +1 -1
- package/dist/service/cloudformation/resource/sim-cfn-resource-record.js +9 -0
- package/dist/service/cloudformation/resource/sim-cfn-resource-record.js.map +1 -1
- package/dist/service/cloudfront/cfn/distro/sim-cfn-cf-distro-creator.d.ts +5 -4
- package/dist/service/cloudfront/cfn/distro/sim-cfn-cf-distro-creator.d.ts.map +1 -1
- package/dist/service/cloudfront/cfn/distro/sim-cfn-cf-distro-creator.js +14 -5
- package/dist/service/cloudfront/cfn/distro/sim-cfn-cf-distro-creator.js.map +1 -1
- package/dist/service/cloudfront/cfn/distro/sim-cfn-cf-distro-edge-associations.d.ts +19 -0
- package/dist/service/cloudfront/cfn/distro/sim-cfn-cf-distro-edge-associations.d.ts.map +1 -0
- package/dist/service/cloudfront/cfn/distro/sim-cfn-cf-distro-edge-associations.js +78 -0
- package/dist/service/cloudfront/cfn/distro/sim-cfn-cf-distro-edge-associations.js.map +1 -0
- package/dist/service/cloudfront/cfn/distro/sim-cfn-cf-edge-association-skips.d.ts +34 -0
- package/dist/service/cloudfront/cfn/distro/sim-cfn-cf-edge-association-skips.d.ts.map +1 -0
- package/dist/service/cloudfront/cfn/distro/sim-cfn-cf-edge-association-skips.js +58 -0
- package/dist/service/cloudfront/cfn/distro/sim-cfn-cf-edge-association-skips.js.map +1 -0
- package/dist/service/cloudfront/cfn/distro/sim-cfn-cf-edge-skip-reason.d.ts +26 -0
- package/dist/service/cloudfront/cfn/distro/sim-cfn-cf-edge-skip-reason.d.ts.map +1 -0
- package/dist/service/cloudfront/cfn/distro/sim-cfn-cf-edge-skip-reason.js +60 -0
- package/dist/service/cloudfront/cfn/distro/sim-cfn-cf-edge-skip-reason.js.map +1 -0
- package/dist/service/cloudfront/controller/dependency/sim-cf-controller-dependency.d.ts +4 -1
- package/dist/service/cloudfront/controller/dependency/sim-cf-controller-dependency.d.ts.map +1 -1
- package/dist/service/cloudfront/controller/dependency/sim-cf-controller-dependency.js +6 -4
- package/dist/service/cloudfront/controller/dependency/sim-cf-controller-dependency.js.map +1 -1
- package/dist/service/cloudfront/controller/edge/sim-lambda-edge-applicator.d.ts +3 -11
- package/dist/service/cloudfront/controller/edge/sim-lambda-edge-applicator.d.ts.map +1 -1
- package/dist/service/cloudfront/controller/edge/sim-lambda-edge-applicator.js +6 -20
- package/dist/service/cloudfront/controller/edge/sim-lambda-edge-applicator.js.map +1 -1
- package/dist/service/cloudfront/controller/edge/sim-lambda-edge-distribution.d.ts +1 -1
- package/dist/service/cloudfront/controller/edge/sim-lambda-edge-distribution.d.ts.map +1 -1
- package/dist/service/cloudfront/controller/edge/sim-lambda-edge-origin-applicator.d.ts +43 -0
- package/dist/service/cloudfront/controller/edge/sim-lambda-edge-origin-applicator.d.ts.map +1 -0
- package/dist/service/cloudfront/controller/edge/sim-lambda-edge-origin-applicator.js +63 -0
- package/dist/service/cloudfront/controller/edge/sim-lambda-edge-origin-applicator.js.map +1 -0
- package/dist/service/cloudfront/controller/edge/sim-lambda-edge-run.d.ts +16 -0
- package/dist/service/cloudfront/controller/edge/sim-lambda-edge-run.d.ts.map +1 -0
- package/dist/service/cloudfront/controller/edge/sim-lambda-edge-run.js +33 -0
- package/dist/service/cloudfront/controller/edge/sim-lambda-edge-run.js.map +1 -0
- package/dist/service/cloudfront/controller/origin/sim-cf-origin-bound-request.d.ts +14 -0
- package/dist/service/cloudfront/controller/origin/sim-cf-origin-bound-request.d.ts.map +1 -0
- package/dist/service/cloudfront/controller/origin/sim-cf-origin-bound-request.js +2 -0
- package/dist/service/cloudfront/controller/origin/sim-cf-origin-bound-request.js.map +1 -0
- package/dist/service/cloudfront/controller/origin/sim-cf-origin-stage.d.ts +45 -0
- package/dist/service/cloudfront/controller/origin/sim-cf-origin-stage.d.ts.map +1 -0
- package/dist/service/cloudfront/controller/origin/sim-cf-origin-stage.js +47 -0
- package/dist/service/cloudfront/controller/origin/sim-cf-origin-stage.js.map +1 -0
- package/dist/service/cloudfront/controller/origin/sim-cloudfront-origin-fetcher.d.ts +6 -1
- package/dist/service/cloudfront/controller/origin/sim-cloudfront-origin-fetcher.d.ts.map +1 -1
- package/dist/service/cloudfront/controller/origin/sim-cloudfront-origin-fetcher.js +6 -2
- package/dist/service/cloudfront/controller/origin/sim-cloudfront-origin-fetcher.js.map +1 -1
- package/dist/service/cloudfront/controller/sim-cloudfront-request-pipeline.d.ts +4 -3
- package/dist/service/cloudfront/controller/sim-cloudfront-request-pipeline.d.ts.map +1 -1
- package/dist/service/cloudfront/controller/sim-cloudfront-request-pipeline.js +20 -8
- package/dist/service/cloudfront/controller/sim-cloudfront-request-pipeline.js.map +1 -1
- package/dist/service/cloudfront/distribution/configurator/sim-cloud-front-origin-configurator.d.ts.map +1 -1
- package/dist/service/cloudfront/distribution/configurator/sim-cloud-front-origin-configurator.js +1 -0
- package/dist/service/cloudfront/distribution/configurator/sim-cloud-front-origin-configurator.js.map +1 -1
- package/dist/service/cloudfront/edge/adapter/sim-lambda-edge-event-adapter.d.ts +2 -9
- package/dist/service/cloudfront/edge/adapter/sim-lambda-edge-event-adapter.d.ts.map +1 -1
- package/dist/service/cloudfront/edge/adapter/sim-lambda-edge-event-adapter.js +5 -13
- package/dist/service/cloudfront/edge/adapter/sim-lambda-edge-event-adapter.js.map +1 -1
- package/dist/service/cloudfront/edge/adapter/sim-lambda-edge-event-config.d.ts +16 -0
- package/dist/service/cloudfront/edge/adapter/sim-lambda-edge-event-config.d.ts.map +1 -0
- package/dist/service/cloudfront/edge/adapter/sim-lambda-edge-event-config.js +14 -0
- package/dist/service/cloudfront/edge/adapter/sim-lambda-edge-event-config.js.map +1 -0
- package/dist/service/cloudfront/edge/adapter/sim-lambda-edge-origin-event-adapter.d.ts +51 -0
- package/dist/service/cloudfront/edge/adapter/sim-lambda-edge-origin-event-adapter.d.ts.map +1 -0
- package/dist/service/cloudfront/edge/adapter/sim-lambda-edge-origin-event-adapter.js +83 -0
- package/dist/service/cloudfront/edge/adapter/sim-lambda-edge-origin-event-adapter.js.map +1 -0
- package/dist/service/cloudfront/edge/adapter/sim-lambda-edge-origin.d.ts +23 -0
- package/dist/service/cloudfront/edge/adapter/sim-lambda-edge-origin.d.ts.map +1 -0
- package/dist/service/cloudfront/edge/adapter/sim-lambda-edge-origin.js +30 -0
- package/dist/service/cloudfront/edge/adapter/sim-lambda-edge-origin.js.map +1 -0
- package/dist/service/cloudfront/edge/adapter/sim-lambda-edge-request-adapter.d.ts +9 -0
- package/dist/service/cloudfront/edge/adapter/sim-lambda-edge-request-adapter.d.ts.map +1 -1
- package/dist/service/cloudfront/edge/adapter/sim-lambda-edge-request-adapter.js +20 -0
- package/dist/service/cloudfront/edge/adapter/sim-lambda-edge-request-adapter.js.map +1 -1
- package/dist/service/cloudfront/edge/adapter/sim-lambda-edge-response-adapter.d.ts +4 -4
- package/dist/service/cloudfront/edge/adapter/sim-lambda-edge-response-adapter.d.ts.map +1 -1
- package/dist/service/cloudfront/edge/adapter/sim-lambda-edge-response-adapter.js +4 -4
- package/dist/service/cloudfront/edge/adapter/sim-lambda-edge-response-adapter.js.map +1 -1
- package/dist/service/cloudfront/edge/sim-aws-cf-edge-functions.d.ts.map +1 -1
- package/dist/service/cloudfront/edge/sim-aws-cf-edge-functions.js +2 -4
- package/dist/service/cloudfront/edge/sim-aws-cf-edge-functions.js.map +1 -1
- package/dist/service/cloudfront/edge/sim-cf-edge-association-checks.d.ts +20 -6
- package/dist/service/cloudfront/edge/sim-cf-edge-association-checks.d.ts.map +1 -1
- package/dist/service/cloudfront/edge/sim-cf-edge-association-checks.js +43 -8
- package/dist/service/cloudfront/edge/sim-cf-edge-association-checks.js.map +1 -1
- package/dist/service/cloudfront/edge/sim-cf-edge-association-validator.d.ts.map +1 -1
- package/dist/service/cloudfront/edge/sim-cf-edge-association-validator.js +3 -2
- package/dist/service/cloudfront/edge/sim-cf-edge-association-validator.js.map +1 -1
- package/dist/service/cloudfront/edge/sim-cf-edge-association.d.ts +5 -2
- package/dist/service/cloudfront/edge/sim-cf-edge-association.d.ts.map +1 -1
- package/dist/service/cloudfront/edge/sim-cf-edge-associations-configure.d.ts +3 -3
- package/dist/service/cloudfront/edge/sim-cf-edge-associations-configure.d.ts.map +1 -1
- package/dist/service/cloudfront/edge/sim-cf-edge-associations-configure.js +26 -10
- package/dist/service/cloudfront/edge/sim-cf-edge-associations-configure.js.map +1 -1
- package/dist/service/cloudfront/edge/sim-cf-edge-function-arn.d.ts +10 -0
- package/dist/service/cloudfront/edge/sim-cf-edge-function-arn.d.ts.map +1 -1
- package/dist/service/cloudfront/edge/sim-cf-edge-function-arn.js +29 -5
- package/dist/service/cloudfront/edge/sim-cf-edge-function-arn.js.map +1 -1
- package/dist/service/cloudfront/edge/sim-cf-edge-function-version.d.ts +14 -0
- package/dist/service/cloudfront/edge/sim-cf-edge-function-version.d.ts.map +1 -0
- package/dist/service/cloudfront/edge/sim-cf-edge-function-version.js +16 -0
- package/dist/service/cloudfront/edge/sim-cf-edge-function-version.js.map +1 -0
- package/dist/service/cloudfront/origin/custom/sim-cf-custom-origin-edge.d.ts +27 -0
- package/dist/service/cloudfront/origin/custom/sim-cf-custom-origin-edge.d.ts.map +1 -0
- package/dist/service/cloudfront/origin/custom/sim-cf-custom-origin-edge.js +44 -0
- package/dist/service/cloudfront/origin/custom/sim-cf-custom-origin-edge.js.map +1 -0
- package/dist/service/cloudfront/origin/custom/sim-cloudfront-custom-origin.d.ts +23 -3
- package/dist/service/cloudfront/origin/custom/sim-cloudfront-custom-origin.d.ts.map +1 -1
- package/dist/service/cloudfront/origin/custom/sim-cloudfront-custom-origin.js +30 -2
- package/dist/service/cloudfront/origin/custom/sim-cloudfront-custom-origin.js.map +1 -1
- package/dist/service/cloudfront/origin/s3/sim-cf-s3-origin-edge.d.ts +26 -0
- package/dist/service/cloudfront/origin/s3/sim-cf-s3-origin-edge.d.ts.map +1 -0
- package/dist/service/cloudfront/origin/s3/sim-cf-s3-origin-edge.js +63 -0
- package/dist/service/cloudfront/origin/s3/sim-cf-s3-origin-edge.js.map +1 -0
- package/dist/service/cloudfront/origin/s3/sim-cf-s3-origin-object-loader.d.ts.map +1 -1
- package/dist/service/cloudfront/origin/s3/sim-cf-s3-origin-object-loader.js +7 -2
- package/dist/service/cloudfront/origin/s3/sim-cf-s3-origin-object-loader.js.map +1 -1
- package/dist/service/cloudfront/origin/s3/sim-cloudfront-s3-origin.d.ts +17 -2
- package/dist/service/cloudfront/origin/s3/sim-cloudfront-s3-origin.d.ts.map +1 -1
- package/dist/service/cloudfront/origin/s3/sim-cloudfront-s3-origin.js +20 -0
- package/dist/service/cloudfront/origin/s3/sim-cloudfront-s3-origin.js.map +1 -1
- package/dist/service/cloudfront/origin/sim-cf-edge-origin-not-simulated.error.d.ts +15 -0
- package/dist/service/cloudfront/origin/sim-cf-edge-origin-not-simulated.error.d.ts.map +1 -0
- package/dist/service/cloudfront/origin/sim-cf-edge-origin-not-simulated.error.js +15 -0
- package/dist/service/cloudfront/origin/sim-cf-edge-origin-not-simulated.error.js.map +1 -0
- package/dist/service/cloudfront/origin/sim-cloudfront-origin.d.ts +13 -0
- package/dist/service/cloudfront/origin/sim-cloudfront-origin.d.ts.map +1 -1
- package/dist/service/cloudfront/typings/lambda-at-edge.namespace.d.ts +71 -3
- package/dist/service/cloudfront/typings/lambda-at-edge.namespace.d.ts.map +1 -1
- package/dist/service/s3/command/get-object/get-object-loader.d.ts +2 -1
- package/dist/service/s3/command/get-object/get-object-loader.d.ts.map +1 -1
- package/dist/service/s3/command/get-object/get-object-loader.js +4 -2
- package/dist/service/s3/command/get-object/get-object-loader.js.map +1 -1
- package/dist/service/s3/command/get-object/get-object.command.d.ts +6 -1
- package/dist/service/s3/command/get-object/get-object.command.d.ts.map +1 -1
- package/dist/service/s3/command/head-object/head-object-loader.d.ts.map +1 -1
- package/dist/service/s3/command/head-object/head-object-loader.js +2 -1
- package/dist/service/s3/command/head-object/head-object-loader.js.map +1 -1
- package/dist/service/s3/command/head-object/head-object.command.d.ts +2 -1
- package/dist/service/s3/command/head-object/head-object.command.d.ts.map +1 -1
- package/dist/service/s3/object/s3-object.d.ts +14 -0
- package/dist/service/s3/object/s3-object.d.ts.map +1 -1
- package/dist/service/s3/object/s3-object.js +18 -0
- package/dist/service/s3/object/s3-object.js.map +1 -1
- package/dist/service/s3/object/s3-system-metadata-read.d.ts +56 -0
- package/dist/service/s3/object/s3-system-metadata-read.d.ts.map +1 -0
- package/dist/service/s3/object/s3-system-metadata-read.js +66 -0
- package/dist/service/s3/object/s3-system-metadata-read.js.map +1 -0
- package/dist/service/s3/object/s3-system-metadata.d.ts +17 -0
- package/dist/service/s3/object/s3-system-metadata.d.ts.map +1 -1
- package/dist/service/s3/object/s3-system-metadata.js +17 -0
- package/dist/service/s3/object/s3-system-metadata.js.map +1 -1
- package/dist/service/s3/object/s3-write-metadata.d.ts +9 -5
- package/dist/service/s3/object/s3-write-metadata.d.ts.map +1 -1
- package/dist/service/s3/object/s3-write-metadata.js +16 -7
- package/dist/service/s3/object/s3-write-metadata.js.map +1 -1
- package/dist/service/s3/serve/api/sim-s3-api-head-output.d.ts.map +1 -1
- package/dist/service/s3/serve/api/sim-s3-api-head-output.js +2 -1
- package/dist/service/s3/serve/api/sim-s3-api-head-output.js.map +1 -1
- package/dist/service/s3/serve/api/sim-s3-api-object-output.d.ts.map +1 -1
- package/dist/service/s3/serve/api/sim-s3-api-object-output.js +2 -1
- package/dist/service/s3/serve/api/sim-s3-api-object-output.js.map +1 -1
- package/dist/service/s3/serve/sim-s3-rest-object-reader.d.ts.map +1 -1
- package/dist/service/s3/serve/sim-s3-rest-object-reader.js +2 -1
- package/dist/service/s3/serve/sim-s3-rest-object-reader.js.map +1 -1
- package/dist/service/s3/serve/website/sim-s3-website-object-loader.d.ts.map +1 -1
- package/dist/service/s3/serve/website/sim-s3-website-object-loader.js +2 -1
- package/dist/service/s3/serve/website/sim-s3-website-object-loader.js.map +1 -1
- package/dist/service/s3/storage/filesystem/s3-filesystem-object-metadata.d.ts.map +1 -1
- package/dist/service/s3/storage/filesystem/s3-filesystem-object-metadata.js +3 -2
- package/dist/service/s3/storage/filesystem/s3-filesystem-object-metadata.js.map +1 -1
- package/dist/service/{cloudformation/resource/cfn/stepfunctions → stepfunctions/cfn}/sim-cfn-step-functions-resource-deleter.d.ts +2 -2
- package/dist/service/stepfunctions/cfn/sim-cfn-step-functions-resource-deleter.d.ts.map +1 -0
- package/dist/service/{cloudformation/resource/cfn/stepfunctions → stepfunctions/cfn}/sim-cfn-step-functions-resource-deleter.js +1 -1
- package/dist/service/stepfunctions/cfn/sim-cfn-step-functions-resource-deleter.js.map +1 -0
- package/dist/service/stepfunctions/cfn/sim-cfn-step-functions-resource-error.d.ts.map +1 -0
- package/dist/service/{cloudformation/resource/cfn/stepfunctions → stepfunctions/cfn}/sim-cfn-step-functions-resource-error.js +1 -1
- package/dist/service/stepfunctions/cfn/sim-cfn-step-functions-resource-error.js.map +1 -0
- package/dist/service/stepfunctions/cfn/sim-cfn-step-functions-resource-types.d.ts.map +1 -0
- package/dist/service/stepfunctions/cfn/sim-cfn-step-functions-resource-types.js.map +1 -0
- package/dist/service/{cloudformation/resource/cfn/stepfunctions → stepfunctions/cfn}/sim-step-functions-cfn-resource-factory.d.ts +6 -3
- package/dist/service/stepfunctions/cfn/sim-step-functions-cfn-resource-factory.d.ts.map +1 -0
- package/dist/service/{cloudformation/resource/cfn/stepfunctions → stepfunctions/cfn}/sim-step-functions-cfn-resource-factory.js +2 -1
- package/dist/service/stepfunctions/cfn/sim-step-functions-cfn-resource-factory.js.map +1 -0
- package/dist/service/{cloudformation/resource/cfn/stepfunctions → stepfunctions/cfn/state-machine}/sim-cfn-state-machine-creator.d.ts +7 -4
- package/dist/service/stepfunctions/cfn/state-machine/sim-cfn-state-machine-creator.d.ts.map +1 -0
- package/dist/service/{cloudformation/resource/cfn/stepfunctions → stepfunctions/cfn/state-machine}/sim-cfn-state-machine-creator.js +9 -4
- package/dist/service/stepfunctions/cfn/state-machine/sim-cfn-state-machine-creator.js.map +1 -0
- package/dist/service/{cloudformation/resource/cfn/stepfunctions → stepfunctions/cfn/state-machine}/sim-cfn-state-machine-definition.d.ts +12 -13
- package/dist/service/stepfunctions/cfn/state-machine/sim-cfn-state-machine-definition.d.ts.map +1 -0
- package/dist/service/{cloudformation/resource/cfn/stepfunctions → stepfunctions/cfn/state-machine}/sim-cfn-state-machine-definition.js +30 -28
- package/dist/service/stepfunctions/cfn/state-machine/sim-cfn-state-machine-definition.js.map +1 -0
- package/dist/service/stepfunctions/cfn/state-machine/sim-cfn-state-machine-name.d.ts.map +1 -0
- package/dist/service/{cloudformation/resource/cfn/stepfunctions → stepfunctions/cfn/state-machine}/sim-cfn-state-machine-name.js +1 -1
- package/dist/service/stepfunctions/cfn/state-machine/sim-cfn-state-machine-name.js.map +1 -0
- package/dist/service/{cloudformation/resource/cfn/stepfunctions → stepfunctions/cfn/state-machine}/sim-cfn-state-machine-properties.d.ts +11 -3
- package/dist/service/stepfunctions/cfn/state-machine/sim-cfn-state-machine-properties.d.ts.map +1 -0
- package/dist/service/{cloudformation/resource/cfn/stepfunctions → stepfunctions/cfn/state-machine}/sim-cfn-state-machine-properties.js +18 -5
- package/dist/service/stepfunctions/cfn/state-machine/sim-cfn-state-machine-properties.js.map +1 -0
- package/dist/service/stepfunctions/cfn/state-machine/sim-cfn-state-machine-property-names.d.ts.map +1 -0
- package/dist/service/{cloudformation/resource/cfn/stepfunctions → stepfunctions/cfn/state-machine}/sim-cfn-state-machine-property-names.js +0 -5
- package/dist/service/stepfunctions/cfn/state-machine/sim-cfn-state-machine-property-names.js.map +1 -0
- package/dist/service/stepfunctions/cfn/state-machine/sim-cfn-state-machine-s3-definition.d.ts +37 -0
- package/dist/service/stepfunctions/cfn/state-machine/sim-cfn-state-machine-s3-definition.d.ts.map +1 -0
- package/dist/service/stepfunctions/cfn/state-machine/sim-cfn-state-machine-s3-definition.js +63 -0
- package/dist/service/stepfunctions/cfn/state-machine/sim-cfn-state-machine-s3-definition.js.map +1 -0
- package/dist/service/{cloudformation/resource/cfn/stepfunctions → stepfunctions/cfn/state-machine}/sim-cfn-state-machine-substitutions.d.ts +1 -1
- package/dist/service/stepfunctions/cfn/state-machine/sim-cfn-state-machine-substitutions.d.ts.map +1 -0
- package/dist/service/{cloudformation/resource/cfn/stepfunctions → stepfunctions/cfn/state-machine}/sim-cfn-state-machine-substitutions.js +3 -3
- package/dist/service/stepfunctions/cfn/state-machine/sim-cfn-state-machine-substitutions.js.map +1 -0
- package/dist/service/stepfunctions/cfn/state-machine/sim-cfn-state-machine-tags.d.ts +33 -0
- package/dist/service/stepfunctions/cfn/state-machine/sim-cfn-state-machine-tags.d.ts.map +1 -0
- package/dist/service/stepfunctions/cfn/state-machine/sim-cfn-state-machine-tags.js +58 -0
- package/dist/service/stepfunctions/cfn/state-machine/sim-cfn-state-machine-tags.js.map +1 -0
- package/dist/service/stepfunctions/command/execution/sim-states-execution-start.d.ts.map +1 -1
- package/dist/service/stepfunctions/command/execution/sim-states-execution-start.js +15 -4
- package/dist/service/stepfunctions/command/execution/sim-states-execution-start.js.map +1 -1
- package/dist/service/stepfunctions/command/machine/machine.command.d.ts +2 -0
- package/dist/service/stepfunctions/command/machine/machine.command.d.ts.map +1 -1
- package/dist/service/stepfunctions/command/machine/sim-state-machine-input.d.ts +2 -0
- package/dist/service/stepfunctions/command/machine/sim-state-machine-input.d.ts.map +1 -1
- package/dist/service/stepfunctions/command/machine/sim-state-machine-input.js +3 -1
- package/dist/service/stepfunctions/command/machine/sim-state-machine-input.js.map +1 -1
- package/dist/service/stepfunctions/command/sim-step-functions-command.types.d.ts +1 -0
- package/dist/service/stepfunctions/command/sim-step-functions-command.types.d.ts.map +1 -1
- package/dist/service/stepfunctions/command/tag/sim-state-machine-tag-commands.d.ts +36 -0
- package/dist/service/stepfunctions/command/tag/sim-state-machine-tag-commands.d.ts.map +1 -0
- package/dist/service/stepfunctions/command/tag/sim-state-machine-tag-commands.js +76 -0
- package/dist/service/stepfunctions/command/tag/sim-state-machine-tag-commands.js.map +1 -0
- package/dist/service/stepfunctions/command/tag/tag.command.d.ts +46 -0
- package/dist/service/stepfunctions/command/tag/tag.command.d.ts.map +1 -0
- package/dist/service/stepfunctions/command/tag/tag.command.js +2 -0
- package/dist/service/stepfunctions/command/tag/tag.command.js.map +1 -0
- package/dist/service/stepfunctions/data/sim-states-context-object.d.ts +45 -0
- package/dist/service/stepfunctions/data/sim-states-context-object.d.ts.map +1 -0
- package/dist/service/stepfunctions/data/sim-states-context-object.js +48 -0
- package/dist/service/stepfunctions/data/sim-states-context-object.js.map +1 -0
- package/dist/service/stepfunctions/data/sim-states-context-path.d.ts +22 -0
- package/dist/service/stepfunctions/data/sim-states-context-path.d.ts.map +1 -0
- package/dist/service/stepfunctions/data/sim-states-context-path.js +30 -0
- package/dist/service/stepfunctions/data/sim-states-context-path.js.map +1 -0
- package/dist/service/stepfunctions/data/sim-states-data-flow.d.ts +3 -2
- package/dist/service/stepfunctions/data/sim-states-data-flow.d.ts.map +1 -1
- package/dist/service/stepfunctions/data/sim-states-data-flow.js +10 -9
- package/dist/service/stepfunctions/data/sim-states-data-flow.js.map +1 -1
- package/dist/service/stepfunctions/data/sim-states-intrinsic.d.ts +1 -1
- package/dist/service/stepfunctions/data/sim-states-intrinsic.d.ts.map +1 -1
- package/dist/service/stepfunctions/data/sim-states-intrinsic.js +6 -7
- package/dist/service/stepfunctions/data/sim-states-intrinsic.js.map +1 -1
- package/dist/service/stepfunctions/data/sim-states-payload-template.d.ts +9 -6
- package/dist/service/stepfunctions/data/sim-states-payload-template.d.ts.map +1 -1
- package/dist/service/stepfunctions/data/sim-states-payload-template.js +16 -14
- package/dist/service/stepfunctions/data/sim-states-payload-template.js.map +1 -1
- package/dist/service/stepfunctions/data/sim-states-reference-path.d.ts.map +1 -1
- package/dist/service/stepfunctions/data/sim-states-reference-path.js +4 -2
- package/dist/service/stepfunctions/data/sim-states-reference-path.js.map +1 -1
- package/dist/service/stepfunctions/definition/sim-states-definition-parse.d.ts +8 -0
- package/dist/service/stepfunctions/definition/sim-states-definition-parse.d.ts.map +1 -1
- package/dist/service/stepfunctions/definition/sim-states-definition-parse.js +9 -1
- package/dist/service/stepfunctions/definition/sim-states-definition-parse.js.map +1 -1
- package/dist/service/stepfunctions/definition/sim-states-map-fields.d.ts +23 -0
- package/dist/service/stepfunctions/definition/sim-states-map-fields.d.ts.map +1 -0
- package/dist/service/stepfunctions/definition/sim-states-map-fields.js +60 -0
- package/dist/service/stepfunctions/definition/sim-states-map-fields.js.map +1 -0
- package/dist/service/stepfunctions/definition/sim-states-map-parse.d.ts +12 -0
- package/dist/service/stepfunctions/definition/sim-states-map-parse.d.ts.map +1 -0
- package/dist/service/stepfunctions/definition/sim-states-map-parse.js +56 -0
- package/dist/service/stepfunctions/definition/sim-states-map-parse.js.map +1 -0
- package/dist/service/stepfunctions/definition/sim-states-map-processor.d.ts +11 -0
- package/dist/service/stepfunctions/definition/sim-states-map-processor.d.ts.map +1 -0
- package/dist/service/stepfunctions/definition/sim-states-map-processor.js +62 -0
- package/dist/service/stepfunctions/definition/sim-states-map-processor.js.map +1 -0
- package/dist/service/stepfunctions/definition/sim-states-nested-refusal.d.ts +14 -0
- package/dist/service/stepfunctions/definition/sim-states-nested-refusal.d.ts.map +1 -0
- package/dist/service/stepfunctions/definition/sim-states-nested-refusal.js +23 -0
- package/dist/service/stepfunctions/definition/sim-states-nested-refusal.js.map +1 -0
- package/dist/service/stepfunctions/definition/sim-states-parallel-parse.d.ts +10 -0
- package/dist/service/stepfunctions/definition/sim-states-parallel-parse.d.ts.map +1 -0
- package/dist/service/stepfunctions/definition/sim-states-parallel-parse.js +50 -0
- package/dist/service/stepfunctions/definition/sim-states-parallel-parse.js.map +1 -0
- package/dist/service/stepfunctions/definition/sim-states-state-fields.d.ts.map +1 -1
- package/dist/service/stepfunctions/definition/sim-states-state-fields.js +5 -0
- package/dist/service/stepfunctions/definition/sim-states-state-fields.js.map +1 -1
- package/dist/service/stepfunctions/definition/sim-states-state-parse.d.ts.map +1 -1
- package/dist/service/stepfunctions/definition/sim-states-state-parse.js +15 -7
- package/dist/service/stepfunctions/definition/sim-states-state-parse.js.map +1 -1
- package/dist/service/stepfunctions/definition/sim-states-state.d.ts +35 -11
- package/dist/service/stepfunctions/definition/sim-states-state.d.ts.map +1 -1
- package/dist/service/stepfunctions/definition/sim-states-state.js +1 -15
- package/dist/service/stepfunctions/definition/sim-states-state.js.map +1 -1
- package/dist/service/stepfunctions/definition/sim-states-transitions.d.ts.map +1 -1
- package/dist/service/stepfunctions/definition/sim-states-transitions.js +14 -0
- package/dist/service/stepfunctions/definition/sim-states-transitions.js.map +1 -1
- package/dist/service/stepfunctions/definition/store/sim-s3-states-definition-store.d.ts +45 -0
- package/dist/service/stepfunctions/definition/store/sim-s3-states-definition-store.d.ts.map +1 -0
- package/dist/service/stepfunctions/definition/store/sim-s3-states-definition-store.js +58 -0
- package/dist/service/stepfunctions/definition/store/sim-s3-states-definition-store.js.map +1 -0
- package/dist/service/stepfunctions/definition/store/sim-states-definition-store.d.ts +34 -0
- package/dist/service/stepfunctions/definition/store/sim-states-definition-store.d.ts.map +1 -0
- package/dist/service/stepfunctions/definition/store/sim-states-definition-store.js +14 -0
- package/dist/service/stepfunctions/definition/store/sim-states-definition-store.js.map +1 -0
- package/dist/service/stepfunctions/error/sim-step-functions.error.d.ts +36 -0
- package/dist/service/stepfunctions/error/sim-step-functions.error.d.ts.map +1 -1
- package/dist/service/stepfunctions/error/sim-step-functions.error.js +42 -0
- package/dist/service/stepfunctions/error/sim-step-functions.error.js.map +1 -1
- package/dist/service/stepfunctions/execution/sim-states-attempt.d.ts +16 -0
- package/dist/service/stepfunctions/execution/sim-states-attempt.d.ts.map +1 -0
- package/dist/service/stepfunctions/execution/sim-states-attempt.js +2 -0
- package/dist/service/stepfunctions/execution/sim-states-attempt.js.map +1 -0
- package/dist/service/stepfunctions/execution/sim-states-child-failure.d.ts +11 -0
- package/dist/service/stepfunctions/execution/sim-states-child-failure.d.ts.map +1 -0
- package/dist/service/stepfunctions/execution/sim-states-child-failure.js +20 -0
- package/dist/service/stepfunctions/execution/sim-states-child-failure.js.map +1 -0
- package/dist/service/stepfunctions/execution/sim-states-child-run.d.ts +55 -0
- package/dist/service/stepfunctions/execution/sim-states-child-run.d.ts.map +1 -0
- package/dist/service/stepfunctions/execution/sim-states-child-run.js +86 -0
- package/dist/service/stepfunctions/execution/sim-states-child-run.js.map +1 -0
- package/dist/service/stepfunctions/execution/sim-states-child-runs.d.ts +69 -0
- package/dist/service/stepfunctions/execution/sim-states-child-runs.d.ts.map +1 -0
- package/dist/service/stepfunctions/execution/sim-states-child-runs.js +114 -0
- package/dist/service/stepfunctions/execution/sim-states-child-runs.js.map +1 -0
- package/dist/service/stepfunctions/execution/sim-states-child-walk.d.ts +43 -0
- package/dist/service/stepfunctions/execution/sim-states-child-walk.d.ts.map +1 -0
- package/dist/service/stepfunctions/execution/sim-states-child-walk.js +2 -0
- package/dist/service/stepfunctions/execution/sim-states-child-walk.js.map +1 -0
- package/dist/service/stepfunctions/execution/sim-states-child.d.ts +41 -0
- package/dist/service/stepfunctions/execution/sim-states-child.d.ts.map +1 -0
- package/dist/service/stepfunctions/execution/sim-states-child.js +2 -0
- package/dist/service/stepfunctions/execution/sim-states-child.js.map +1 -0
- package/dist/service/stepfunctions/execution/sim-states-execution.d.ts +32 -3
- package/dist/service/stepfunctions/execution/sim-states-execution.d.ts.map +1 -1
- package/dist/service/stepfunctions/execution/sim-states-execution.js +42 -2
- package/dist/service/stepfunctions/execution/sim-states-execution.js.map +1 -1
- package/dist/service/stepfunctions/execution/sim-states-fan-out-outcome.d.ts +19 -0
- package/dist/service/stepfunctions/execution/sim-states-fan-out-outcome.d.ts.map +1 -0
- package/dist/service/stepfunctions/execution/sim-states-fan-out-outcome.js +15 -0
- package/dist/service/stepfunctions/execution/sim-states-fan-out-outcome.js.map +1 -0
- package/dist/service/stepfunctions/execution/sim-states-fan-out.d.ts +46 -0
- package/dist/service/stepfunctions/execution/sim-states-fan-out.d.ts.map +1 -0
- package/dist/service/stepfunctions/execution/sim-states-fan-out.js +106 -0
- package/dist/service/stepfunctions/execution/sim-states-fan-out.js.map +1 -0
- package/dist/service/stepfunctions/execution/sim-states-interpreter.d.ts +18 -11
- package/dist/service/stepfunctions/execution/sim-states-interpreter.d.ts.map +1 -1
- package/dist/service/stepfunctions/execution/sim-states-interpreter.js +55 -65
- package/dist/service/stepfunctions/execution/sim-states-interpreter.js.map +1 -1
- package/dist/service/stepfunctions/execution/sim-states-map-items.d.ts +13 -0
- package/dist/service/stepfunctions/execution/sim-states-map-items.d.ts.map +1 -0
- package/dist/service/stepfunctions/execution/sim-states-map-items.js +38 -0
- package/dist/service/stepfunctions/execution/sim-states-map-items.js.map +1 -0
- package/dist/service/stepfunctions/execution/sim-states-map-iteration.d.ts +32 -0
- package/dist/service/stepfunctions/execution/sim-states-map-iteration.d.ts.map +1 -0
- package/dist/service/stepfunctions/execution/sim-states-map-iteration.js +37 -0
- package/dist/service/stepfunctions/execution/sim-states-map-iteration.js.map +1 -0
- package/dist/service/stepfunctions/execution/sim-states-run-choice.d.ts.map +1 -1
- package/dist/service/stepfunctions/execution/sim-states-run-choice.js +2 -2
- package/dist/service/stepfunctions/execution/sim-states-run-choice.js.map +1 -1
- package/dist/service/stepfunctions/execution/sim-states-run-map.d.ts +12 -0
- package/dist/service/stepfunctions/execution/sim-states-run-map.d.ts.map +1 -0
- package/dist/service/stepfunctions/execution/sim-states-run-map.js +25 -0
- package/dist/service/stepfunctions/execution/sim-states-run-map.js.map +1 -0
- package/dist/service/stepfunctions/execution/sim-states-run-parallel.d.ts +16 -0
- package/dist/service/stepfunctions/execution/sim-states-run-parallel.d.ts.map +1 -0
- package/dist/service/stepfunctions/execution/sim-states-run-parallel.js +31 -0
- package/dist/service/stepfunctions/execution/sim-states-run-parallel.js.map +1 -0
- package/dist/service/stepfunctions/execution/sim-states-run-record.d.ts +47 -0
- package/dist/service/stepfunctions/execution/sim-states-run-record.d.ts.map +1 -0
- package/dist/service/stepfunctions/execution/sim-states-run-record.js +2 -0
- package/dist/service/stepfunctions/execution/sim-states-run-record.js.map +1 -0
- package/dist/service/stepfunctions/execution/sim-states-run-state.d.ts +4 -3
- package/dist/service/stepfunctions/execution/sim-states-run-state.d.ts.map +1 -1
- package/dist/service/stepfunctions/execution/sim-states-run-state.js +20 -11
- package/dist/service/stepfunctions/execution/sim-states-run-state.js.map +1 -1
- package/dist/service/stepfunctions/execution/sim-states-run-task.d.ts.map +1 -1
- package/dist/service/stepfunctions/execution/sim-states-run-task.js +2 -2
- package/dist/service/stepfunctions/execution/sim-states-run-task.js.map +1 -1
- package/dist/service/stepfunctions/execution/sim-states-run-wait.d.ts.map +1 -1
- package/dist/service/stepfunctions/execution/sim-states-run-wait.js +2 -2
- package/dist/service/stepfunctions/execution/sim-states-run-wait.js.map +1 -1
- package/dist/service/stepfunctions/execution/sim-states-settlement.d.ts +7 -3
- package/dist/service/stepfunctions/execution/sim-states-settlement.d.ts.map +1 -1
- package/dist/service/stepfunctions/execution/sim-states-settlement.js +11 -5
- package/dist/service/stepfunctions/execution/sim-states-settlement.js.map +1 -1
- package/dist/service/stepfunctions/execution/sim-states-state-attempts.d.ts +37 -0
- package/dist/service/stepfunctions/execution/sim-states-state-attempts.d.ts.map +1 -0
- package/dist/service/stepfunctions/execution/sim-states-state-attempts.js +112 -0
- package/dist/service/stepfunctions/execution/sim-states-state-attempts.js.map +1 -0
- package/dist/service/stepfunctions/execution/sim-states-state-outcome.d.ts +69 -15
- package/dist/service/stepfunctions/execution/sim-states-state-outcome.d.ts.map +1 -1
- package/dist/service/stepfunctions/execution/sim-states-state-runner.d.ts +26 -12
- package/dist/service/stepfunctions/execution/sim-states-state-runner.d.ts.map +1 -1
- package/dist/service/stepfunctions/execution/sim-states-state-runner.js +55 -15
- package/dist/service/stepfunctions/execution/sim-states-state-runner.js.map +1 -1
- package/dist/service/stepfunctions/execution/sim-states-walk-steps.d.ts +19 -0
- package/dist/service/stepfunctions/execution/sim-states-walk-steps.d.ts.map +1 -0
- package/dist/service/stepfunctions/execution/sim-states-walk-steps.js +35 -0
- package/dist/service/stepfunctions/execution/sim-states-walk-steps.js.map +1 -0
- package/dist/service/stepfunctions/execution/sim-states-walk.d.ts +19 -0
- package/dist/service/stepfunctions/execution/sim-states-walk.d.ts.map +1 -0
- package/dist/service/stepfunctions/execution/sim-states-walk.js +2 -0
- package/dist/service/stepfunctions/execution/sim-states-walk.js.map +1 -0
- package/dist/service/stepfunctions/execution/sim-states-walks.d.ts +25 -0
- package/dist/service/stepfunctions/execution/sim-states-walks.d.ts.map +1 -0
- package/dist/service/stepfunctions/execution/sim-states-walks.js +25 -0
- package/dist/service/stepfunctions/execution/sim-states-walks.js.map +1 -0
- package/dist/service/stepfunctions/index.d.ts +10 -3
- package/dist/service/stepfunctions/index.d.ts.map +1 -1
- package/dist/service/stepfunctions/index.js +4 -2
- package/dist/service/stepfunctions/index.js.map +1 -1
- package/dist/service/stepfunctions/machine/sim-state-machine-tag.d.ts +43 -0
- package/dist/service/stepfunctions/machine/sim-state-machine-tag.d.ts.map +1 -0
- package/dist/service/stepfunctions/machine/sim-state-machine-tag.js +111 -0
- package/dist/service/stepfunctions/machine/sim-state-machine-tag.js.map +1 -0
- package/dist/service/stepfunctions/machine/sim-state-machine-tags.d.ts +39 -0
- package/dist/service/stepfunctions/machine/sim-state-machine-tags.d.ts.map +1 -0
- package/dist/service/stepfunctions/machine/sim-state-machine-tags.js +80 -0
- package/dist/service/stepfunctions/machine/sim-state-machine-tags.js.map +1 -0
- package/dist/service/stepfunctions/machine/sim-state-machine.d.ts +6 -0
- package/dist/service/stepfunctions/machine/sim-state-machine.d.ts.map +1 -1
- package/dist/service/stepfunctions/machine/sim-state-machine.js +5 -0
- package/dist/service/stepfunctions/machine/sim-state-machine.js.map +1 -1
- package/dist/service/stepfunctions/retry/sim-states-attempt-state.d.ts +37 -0
- package/dist/service/stepfunctions/retry/sim-states-attempt-state.d.ts.map +1 -0
- package/dist/service/stepfunctions/retry/sim-states-attempt-state.js +38 -0
- package/dist/service/stepfunctions/retry/sim-states-attempt-state.js.map +1 -0
- package/dist/service/stepfunctions/retry/sim-states-catch-outcome.d.ts +11 -0
- package/dist/service/stepfunctions/retry/sim-states-catch-outcome.d.ts.map +1 -0
- package/dist/service/stepfunctions/retry/sim-states-catch-outcome.js +20 -0
- package/dist/service/stepfunctions/retry/sim-states-catch-outcome.js.map +1 -0
- package/dist/service/stepfunctions/retry/sim-states-catch-parse.d.ts +11 -0
- package/dist/service/stepfunctions/retry/sim-states-catch-parse.d.ts.map +1 -0
- package/dist/service/stepfunctions/retry/sim-states-catch-parse.js +49 -0
- package/dist/service/stepfunctions/retry/sim-states-catch-parse.js.map +1 -0
- package/dist/service/stepfunctions/retry/sim-states-catcher.d.ts +29 -0
- package/dist/service/stepfunctions/retry/sim-states-catcher.d.ts.map +1 -0
- package/dist/service/stepfunctions/retry/sim-states-catcher.js +31 -0
- package/dist/service/stepfunctions/retry/sim-states-catcher.js.map +1 -0
- package/dist/service/stepfunctions/retry/sim-states-error-equals.d.ts +19 -0
- package/dist/service/stepfunctions/retry/sim-states-error-equals.d.ts.map +1 -0
- package/dist/service/stepfunctions/retry/sim-states-error-equals.js +69 -0
- package/dist/service/stepfunctions/retry/sim-states-error-equals.js.map +1 -0
- package/dist/service/stepfunctions/retry/sim-states-error-handling.d.ts +31 -0
- package/dist/service/stepfunctions/retry/sim-states-error-handling.d.ts.map +1 -0
- package/dist/service/stepfunctions/retry/sim-states-error-handling.js +40 -0
- package/dist/service/stepfunctions/retry/sim-states-error-handling.js.map +1 -0
- package/dist/service/stepfunctions/retry/sim-states-error-name.d.ts +29 -0
- package/dist/service/stepfunctions/retry/sim-states-error-name.d.ts.map +1 -0
- package/dist/service/stepfunctions/retry/sim-states-error-name.js +34 -0
- package/dist/service/stepfunctions/retry/sim-states-error-name.js.map +1 -0
- package/dist/service/stepfunctions/retry/sim-states-recover.d.ts +31 -0
- package/dist/service/stepfunctions/retry/sim-states-recover.d.ts.map +1 -0
- package/dist/service/stepfunctions/retry/sim-states-recover.js +23 -0
- package/dist/service/stepfunctions/retry/sim-states-recover.js.map +1 -0
- package/dist/service/stepfunctions/retry/sim-states-recovered.d.ts +22 -0
- package/dist/service/stepfunctions/retry/sim-states-recovered.d.ts.map +1 -0
- package/dist/service/stepfunctions/retry/sim-states-recovered.js +33 -0
- package/dist/service/stepfunctions/retry/sim-states-recovered.js.map +1 -0
- package/dist/service/stepfunctions/retry/sim-states-retrier.d.ts +35 -0
- package/dist/service/stepfunctions/retry/sim-states-retrier.d.ts.map +1 -0
- package/dist/service/stepfunctions/retry/sim-states-retrier.js +31 -0
- package/dist/service/stepfunctions/retry/sim-states-retrier.js.map +1 -0
- package/dist/service/stepfunctions/retry/sim-states-retry-outcome.d.ts +12 -0
- package/dist/service/stepfunctions/retry/sim-states-retry-outcome.d.ts.map +1 -0
- package/dist/service/stepfunctions/retry/sim-states-retry-outcome.js +44 -0
- package/dist/service/stepfunctions/retry/sim-states-retry-outcome.js.map +1 -0
- package/dist/service/stepfunctions/retry/sim-states-retry-parse.d.ts +11 -0
- package/dist/service/stepfunctions/retry/sim-states-retry-parse.d.ts.map +1 -0
- package/dist/service/stepfunctions/retry/sim-states-retry-parse.js +76 -0
- package/dist/service/stepfunctions/retry/sim-states-retry-parse.js.map +1 -0
- package/dist/service/stepfunctions/retry/sim-states-task-deadline.d.ts +43 -0
- package/dist/service/stepfunctions/retry/sim-states-task-deadline.d.ts.map +1 -0
- package/dist/service/stepfunctions/retry/sim-states-task-deadline.js +76 -0
- package/dist/service/stepfunctions/retry/sim-states-task-deadline.js.map +1 -0
- package/dist/service/stepfunctions/retry/sim-states-task-handling.d.ts +11 -0
- package/dist/service/stepfunctions/retry/sim-states-task-handling.d.ts.map +1 -0
- package/dist/service/stepfunctions/retry/sim-states-task-handling.js +2 -0
- package/dist/service/stepfunctions/retry/sim-states-task-handling.js.map +1 -0
- package/dist/service/stepfunctions/sdk/sim-step-functions-sdk-command-router.d.ts.map +1 -1
- package/dist/service/stepfunctions/sdk/sim-step-functions-sdk-command-router.js +12 -0
- package/dist/service/stepfunctions/sdk/sim-step-functions-sdk-command-router.js.map +1 -1
- package/dist/service/stepfunctions/sim-step-functions-inspection.d.ts +28 -0
- package/dist/service/stepfunctions/sim-step-functions-inspection.d.ts.map +1 -1
- package/dist/service/stepfunctions/sim-step-functions-inspection.js +38 -0
- package/dist/service/stepfunctions/sim-step-functions-inspection.js.map +1 -1
- package/dist/service/stepfunctions/sim-step-functions.d.ts +17 -0
- package/dist/service/stepfunctions/sim-step-functions.d.ts.map +1 -1
- package/dist/service/stepfunctions/sim-step-functions.js +31 -1
- package/dist/service/stepfunctions/sim-step-functions.js.map +1 -1
- package/dist/service/stepfunctions/task/service/sim-states-optimized-integrations.d.ts +36 -0
- package/dist/service/stepfunctions/task/service/sim-states-optimized-integrations.d.ts.map +1 -0
- package/dist/service/stepfunctions/task/service/sim-states-optimized-integrations.js +115 -0
- package/dist/service/stepfunctions/task/service/sim-states-optimized-integrations.js.map +1 -0
- package/dist/service/stepfunctions/task/service/sim-states-service-call.d.ts +25 -0
- package/dist/service/stepfunctions/task/service/sim-states-service-call.d.ts.map +1 -0
- package/dist/service/stepfunctions/task/service/sim-states-service-call.js +51 -0
- package/dist/service/stepfunctions/task/service/sim-states-service-call.js.map +1 -0
- package/dist/service/stepfunctions/task/service/sim-states-service-failure.d.ts +17 -0
- package/dist/service/stepfunctions/task/service/sim-states-service-failure.d.ts.map +1 -0
- package/dist/service/stepfunctions/task/service/sim-states-service-failure.js +43 -0
- package/dist/service/stepfunctions/task/service/sim-states-service-failure.js.map +1 -0
- package/dist/service/stepfunctions/task/service/sim-states-service-name.d.ts +42 -0
- package/dist/service/stepfunctions/task/service/sim-states-service-name.d.ts.map +1 -0
- package/dist/service/stepfunctions/task/service/sim-states-service-name.js +74 -0
- package/dist/service/stepfunctions/task/service/sim-states-service-name.js.map +1 -0
- package/dist/service/stepfunctions/task/service/sim-states-service-resource.d.ts +10 -0
- package/dist/service/stepfunctions/task/service/sim-states-service-resource.d.ts.map +1 -0
- package/dist/service/stepfunctions/task/service/sim-states-service-resource.js +79 -0
- package/dist/service/stepfunctions/task/service/sim-states-service-resource.js.map +1 -0
- package/dist/service/stepfunctions/task/service/sim-states-service-shape.d.ts +27 -0
- package/dist/service/stepfunctions/task/service/sim-states-service-shape.d.ts.map +1 -0
- package/dist/service/stepfunctions/task/service/sim-states-service-shape.js +2 -0
- package/dist/service/stepfunctions/task/service/sim-states-service-shape.js.map +1 -0
- package/dist/service/stepfunctions/task/service/sim-states-service-target.d.ts +33 -0
- package/dist/service/stepfunctions/task/service/sim-states-service-target.d.ts.map +1 -0
- package/dist/service/stepfunctions/task/service/sim-states-service-target.js +60 -0
- package/dist/service/stepfunctions/task/service/sim-states-service-target.js.map +1 -0
- package/dist/service/stepfunctions/task/sim-aws-states-task-targets.d.ts +11 -9
- package/dist/service/stepfunctions/task/sim-aws-states-task-targets.d.ts.map +1 -1
- package/dist/service/stepfunctions/task/sim-aws-states-task-targets.js +16 -20
- package/dist/service/stepfunctions/task/sim-aws-states-task-targets.js.map +1 -1
- package/dist/service/stepfunctions/task/sim-states-function-arn-target.d.ts +2 -2
- package/dist/service/stepfunctions/task/sim-states-function-arn-target.d.ts.map +1 -1
- package/dist/service/stepfunctions/task/sim-states-function-arn-target.js +2 -2
- package/dist/service/stepfunctions/task/sim-states-function-arn-target.js.map +1 -1
- package/dist/service/stepfunctions/task/sim-states-lambda-invoke-parameters.d.ts +9 -0
- package/dist/service/stepfunctions/task/sim-states-lambda-invoke-parameters.d.ts.map +1 -0
- package/dist/service/stepfunctions/task/sim-states-lambda-invoke-parameters.js +37 -0
- package/dist/service/stepfunctions/task/sim-states-lambda-invoke-parameters.js.map +1 -0
- package/dist/service/stepfunctions/task/sim-states-lambda-invoke-target.d.ts +2 -2
- package/dist/service/stepfunctions/task/sim-states-lambda-invoke-target.d.ts.map +1 -1
- package/dist/service/stepfunctions/task/sim-states-lambda-invoke-target.js +2 -2
- package/dist/service/stepfunctions/task/sim-states-lambda-invoke-target.js.map +1 -1
- package/dist/service/stepfunctions/task/sim-states-lambda-target.d.ts +38 -0
- package/dist/service/stepfunctions/task/sim-states-lambda-target.d.ts.map +1 -0
- package/dist/service/stepfunctions/task/sim-states-lambda-target.js +37 -0
- package/dist/service/stepfunctions/task/sim-states-lambda-target.js.map +1 -0
- package/dist/service/stepfunctions/task/sim-states-task-fields.d.ts +6 -5
- package/dist/service/stepfunctions/task/sim-states-task-fields.d.ts.map +1 -1
- package/dist/service/stepfunctions/task/sim-states-task-fields.js +9 -10
- package/dist/service/stepfunctions/task/sim-states-task-fields.js.map +1 -1
- package/dist/service/stepfunctions/task/sim-states-task-function.d.ts +2 -2
- package/dist/service/stepfunctions/task/sim-states-task-function.d.ts.map +1 -1
- package/dist/service/stepfunctions/task/sim-states-task-resource.d.ts +2 -2
- package/dist/service/stepfunctions/task/sim-states-task-resource.d.ts.map +1 -1
- package/dist/service/stepfunctions/task/sim-states-task-resource.js +16 -40
- package/dist/service/stepfunctions/task/sim-states-task-resource.js.map +1 -1
- package/dist/service/stepfunctions/task/sim-states-task-target.d.ts +33 -17
- package/dist/service/stepfunctions/task/sim-states-task-target.d.ts.map +1 -1
- package/dist/service/stepfunctions/task/sim-states-task-target.js +4 -5
- package/dist/service/stepfunctions/task/sim-states-task-target.js.map +1 -1
- package/package.json +3 -2
- package/dist/service/cloudformation/resource/cfn/stepfunctions/sim-cfn-state-machine-creator.d.ts.map +0 -1
- package/dist/service/cloudformation/resource/cfn/stepfunctions/sim-cfn-state-machine-creator.js.map +0 -1
- package/dist/service/cloudformation/resource/cfn/stepfunctions/sim-cfn-state-machine-definition.d.ts.map +0 -1
- package/dist/service/cloudformation/resource/cfn/stepfunctions/sim-cfn-state-machine-definition.js.map +0 -1
- package/dist/service/cloudformation/resource/cfn/stepfunctions/sim-cfn-state-machine-name.d.ts.map +0 -1
- package/dist/service/cloudformation/resource/cfn/stepfunctions/sim-cfn-state-machine-name.js.map +0 -1
- package/dist/service/cloudformation/resource/cfn/stepfunctions/sim-cfn-state-machine-properties.d.ts.map +0 -1
- package/dist/service/cloudformation/resource/cfn/stepfunctions/sim-cfn-state-machine-properties.js.map +0 -1
- package/dist/service/cloudformation/resource/cfn/stepfunctions/sim-cfn-state-machine-property-names.d.ts.map +0 -1
- package/dist/service/cloudformation/resource/cfn/stepfunctions/sim-cfn-state-machine-property-names.js.map +0 -1
- package/dist/service/cloudformation/resource/cfn/stepfunctions/sim-cfn-state-machine-substitutions.d.ts.map +0 -1
- package/dist/service/cloudformation/resource/cfn/stepfunctions/sim-cfn-state-machine-substitutions.js.map +0 -1
- package/dist/service/cloudformation/resource/cfn/stepfunctions/sim-cfn-step-functions-resource-deleter.d.ts.map +0 -1
- package/dist/service/cloudformation/resource/cfn/stepfunctions/sim-cfn-step-functions-resource-deleter.js.map +0 -1
- package/dist/service/cloudformation/resource/cfn/stepfunctions/sim-cfn-step-functions-resource-error.d.ts.map +0 -1
- package/dist/service/cloudformation/resource/cfn/stepfunctions/sim-cfn-step-functions-resource-error.js.map +0 -1
- package/dist/service/cloudformation/resource/cfn/stepfunctions/sim-cfn-step-functions-resource-types.d.ts.map +0 -1
- package/dist/service/cloudformation/resource/cfn/stepfunctions/sim-cfn-step-functions-resource-types.js.map +0 -1
- package/dist/service/cloudformation/resource/cfn/stepfunctions/sim-step-functions-cfn-resource-factory.d.ts.map +0 -1
- package/dist/service/cloudformation/resource/cfn/stepfunctions/sim-step-functions-cfn-resource-factory.js.map +0 -1
- /package/dist/service/{cloudformation/resource/cfn/stepfunctions → stepfunctions/cfn}/sim-cfn-step-functions-resource-error.d.ts +0 -0
- /package/dist/service/{cloudformation/resource/cfn/stepfunctions → stepfunctions/cfn}/sim-cfn-step-functions-resource-types.d.ts +0 -0
- /package/dist/service/{cloudformation/resource/cfn/stepfunctions → stepfunctions/cfn}/sim-cfn-step-functions-resource-types.js +0 -0
- /package/dist/service/{cloudformation/resource/cfn/stepfunctions → stepfunctions/cfn/state-machine}/sim-cfn-state-machine-name.d.ts +0 -0
- /package/dist/service/{cloudformation/resource/cfn/stepfunctions → stepfunctions/cfn/state-machine}/sim-cfn-state-machine-property-names.d.ts +0 -0
|
@@ -1,14 +1,16 @@
|
|
|
1
1
|
import { assertDefined, assertNotNull, } from "../../../../util/type-guard/defined.js";
|
|
2
2
|
import { SimCfnCfDistroConfigValidator } from "./sim-cfn-cf-distro-config-validator.js";
|
|
3
|
+
import { simCfnCfDistroWithRunnableEdgeAssociations } from "./sim-cfn-cf-distro-edge-associations.js";
|
|
3
4
|
import { simCfnCfDistroWithoutAbsentWebAcl } from "./sim-cfn-cf-distro-web-acl.js";
|
|
4
5
|
/**
|
|
5
6
|
* Creates simulated CloudFront Distributions from CloudFormation Resources.
|
|
6
7
|
*
|
|
7
8
|
* A `WebACLId` naming a web ACL this simulation does not hold is left out and
|
|
8
|
-
* recorded
|
|
9
|
-
*
|
|
10
|
-
*
|
|
11
|
-
*
|
|
9
|
+
* recorded, and so is a Lambda@Edge association it cannot run. CloudFront has
|
|
10
|
+
* no association Resource for either, so both live on the Distribution itself,
|
|
11
|
+
* and refusing one would take the Distribution down over something that was
|
|
12
|
+
* never the point of the template. The site a local dev server and a suite of
|
|
13
|
+
* tests make requests to has to survive that.
|
|
12
14
|
*/
|
|
13
15
|
export class SimCfnCfDistroCreator {
|
|
14
16
|
cloudFront;
|
|
@@ -29,7 +31,7 @@ export class SimCfnCfDistroCreator {
|
|
|
29
31
|
});
|
|
30
32
|
const output = await this.cloudFront.createDistribution({
|
|
31
33
|
input: {
|
|
32
|
-
DistributionConfig:
|
|
34
|
+
DistributionConfig: deployableConfig(resource, validator.validate(), context.simAws),
|
|
33
35
|
},
|
|
34
36
|
});
|
|
35
37
|
const distributionId = output.Distribution?.Id;
|
|
@@ -39,4 +41,11 @@ export class SimCfnCfDistroCreator {
|
|
|
39
41
|
return distribution;
|
|
40
42
|
}
|
|
41
43
|
}
|
|
44
|
+
/**
|
|
45
|
+
* The DistributionConfig to deploy, without the parts this simulation cannot
|
|
46
|
+
* act on, each recorded on the Resource.
|
|
47
|
+
*/
|
|
48
|
+
function deployableConfig(resource, distributionConfig, simAws) {
|
|
49
|
+
return simCfnCfDistroWithoutAbsentWebAcl(resource, simCfnCfDistroWithRunnableEdgeAssociations(resource, distributionConfig, simAws), simAws);
|
|
50
|
+
}
|
|
42
51
|
//# sourceMappingURL=sim-cfn-cf-distro-creator.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sim-cfn-cf-distro-creator.js","sourceRoot":"","sources":["../../../../../src/service/cloudfront/cfn/distro/sim-cfn-cf-distro-creator.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,aAAa,EACb,aAAa,GACd,MAAM,wCAAwC,CAAC;
|
|
1
|
+
{"version":3,"file":"sim-cfn-cf-distro-creator.js","sourceRoot":"","sources":["../../../../../src/service/cloudfront/cfn/distro/sim-cfn-cf-distro-creator.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,aAAa,EACb,aAAa,GACd,MAAM,wCAAwC,CAAC;AAShD,OAAO,EAAE,6BAA6B,EAAE,MAAM,yCAAyC,CAAC;AACxF,OAAO,EAAE,0CAA0C,EAAE,MAAM,0CAA0C,CAAC;AACtG,OAAO,EAAE,iCAAiC,EAAE,MAAM,gCAAgC,CAAC;AAOnF;;;;;;;;;GASG;AACH,MAAM,OAAO,qBAAqB;IACf,UAAU,CAAgB;IAE3C,YAAY,UAA2C;QACrD,IAAI,CAAC,UAAU,GAAG,UAAU,CAAC,UAAU,CAAC;IAC1C,CAAC;IAED;;;OAGG;IACH,KAAK,CAAC,MAAM,CACV,QAAwB,EACxB,UAAqC,EACrC,OAA+C;QAE/C,MAAM,uBAAuB,GAAG,UAAU,CAAC,oBAAoB,CAAC,CAAC;QAEjE,aAAa,CACX,uBAAuB,EACvB,iCAAiC,QAAQ,CAAC,SAAS,qBAAqB,CACzE,CAAC;QACF,aAAa,CACX,uBAAuB,EACvB,iCAAiC,QAAQ,CAAC,SAAS,qBAAqB,CACzE,CAAC;QAEF,MAAM,SAAS,GAAG,IAAI,6BAA6B,CAAC;YAClD,SAAS,EAAE,QAAQ,CAAC,SAAS;YAC7B,kBAAkB,EAAE,uBAAuB;SAC5C,CAAC,CAAC;QACH,MAAM,MAAM,GAAG,MAAM,IAAI,CAAC,UAAU,CAAC,kBAAkB,CAAC;YACtD,KAAK,EAAE;gBACL,kBAAkB,EAAE,gBAAgB,CAClC,QAAQ,EACR,SAAS,CAAC,QAAQ,EAAE,EACpB,OAAO,CAAC,MAAM,CACf;aACF;SACF,CAAC,CAAC;QAEH,MAAM,cAAc,GAAG,MAAM,CAAC,YAAY,EAAE,EAAE,CAAC;QAC/C,aAAa,CACX,cAAc,EACd,iCAAiC,QAAQ,CAAC,SAAS,0BAA0B,CAC9E,CAAC;QAEF,MAAM,YAAY,GAAG,IAAI,CAAC,UAAU,CAAC,sBAAsB,CAAC,cAAc,CAAC,CAAC;QAE5E,aAAa,CACX,YAAY,EACZ,wCAAwC,cAAc,yCAAyC,CAChG,CAAC;QAEF,OAAO,YAAY,CAAC;IACtB,CAAC;CACF;AAED;;;GAGG;AACH,SAAS,gBAAgB,CACvB,QAAwB,EACxB,kBAAmD,EACnD,MAAc;IAEd,OAAO,iCAAiC,CACtC,QAAQ,EACR,0CAA0C,CACxC,QAAQ,EACR,kBAAkB,EAClB,MAAM,CACP,EACD,MAAM,CACP,CAAC;AACJ,CAAC"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import type { SimAws } from "../../../aws/sim-aws.js";
|
|
2
|
+
import type { SimCfnResource } from "../../../cloudformation/resource/sim-cfn-resource.js";
|
|
3
|
+
import type { SimCloudFrontDistributionConfig } from "../../command/create-distribution/create-distribution.command.js";
|
|
4
|
+
/**
|
|
5
|
+
* The DistributionConfig to deploy, without the Lambda@Edge associations this
|
|
6
|
+
* simulation cannot run.
|
|
7
|
+
*
|
|
8
|
+
* Each association left out is recorded on `stack.ignoredProperties` under the
|
|
9
|
+
* event type it was on, and `SimCfnCfEdgeAssociationSkips` decides which those
|
|
10
|
+
* are. `CreateDistribution` takes the whole Distribution down over one of
|
|
11
|
+
* them, and a Distribution that failed to deploy takes every request a local
|
|
12
|
+
* dev server and a test suite make with it. That is the same reason an absent
|
|
13
|
+
* `WebACLId` is left out here.
|
|
14
|
+
*
|
|
15
|
+
* The Behavior deploys with whatever is left and runs nothing at the event the
|
|
16
|
+
* skipped association was on. A test that cares reads the record.
|
|
17
|
+
*/
|
|
18
|
+
export declare function simCfnCfDistroWithRunnableEdgeAssociations(resource: SimCfnResource, distributionConfig: SimCloudFrontDistributionConfig, simAws: SimAws): SimCloudFrontDistributionConfig;
|
|
19
|
+
//# sourceMappingURL=sim-cfn-cf-distro-edge-associations.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sim-cfn-cf-distro-edge-associations.d.ts","sourceRoot":"","sources":["../../../../../src/service/cloudfront/cfn/distro/sim-cfn-cf-distro-edge-associations.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,yBAAyB,CAAC;AACtD,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,sDAAsD,CAAC;AAC3F,OAAO,KAAK,EAEV,+BAA+B,EAChC,MAAM,kEAAkE,CAAC;AAS1E;;;;;;;;;;;;;GAaG;AACH,wBAAgB,0CAA0C,CACxD,QAAQ,EAAE,cAAc,EACxB,kBAAkB,EAAE,+BAA+B,EACnD,MAAM,EAAE,MAAM,GACb,+BAA+B,CAcjC"}
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
import { normalizeSimCfList } from "../../command/create-distribution/sim-cf-normalize-list.js";
|
|
2
|
+
import { SimCfnCfEdgeAssociationSkips } from "./sim-cfn-cf-edge-association-skips.js";
|
|
3
|
+
/**
|
|
4
|
+
* The path a skipped association on the default Behavior is recorded under.
|
|
5
|
+
*/
|
|
6
|
+
const defaultBehaviorPath = "DistributionConfig.DefaultCacheBehavior";
|
|
7
|
+
/**
|
|
8
|
+
* The DistributionConfig to deploy, without the Lambda@Edge associations this
|
|
9
|
+
* simulation cannot run.
|
|
10
|
+
*
|
|
11
|
+
* Each association left out is recorded on `stack.ignoredProperties` under the
|
|
12
|
+
* event type it was on, and `SimCfnCfEdgeAssociationSkips` decides which those
|
|
13
|
+
* are. `CreateDistribution` takes the whole Distribution down over one of
|
|
14
|
+
* them, and a Distribution that failed to deploy takes every request a local
|
|
15
|
+
* dev server and a test suite make with it. That is the same reason an absent
|
|
16
|
+
* `WebACLId` is left out here.
|
|
17
|
+
*
|
|
18
|
+
* The Behavior deploys with whatever is left and runs nothing at the event the
|
|
19
|
+
* skipped association was on. A test that cares reads the record.
|
|
20
|
+
*/
|
|
21
|
+
export function simCfnCfDistroWithRunnableEdgeAssociations(resource, distributionConfig, simAws) {
|
|
22
|
+
const skips = new SimCfnCfEdgeAssociationSkips(resource, simAws);
|
|
23
|
+
const defaultCacheBehavior = distroDefaultBehavior(skips, distributionConfig);
|
|
24
|
+
const cacheBehaviors = distroCacheBehaviors(skips, distributionConfig);
|
|
25
|
+
if (skips.count === 0) {
|
|
26
|
+
return distributionConfig;
|
|
27
|
+
}
|
|
28
|
+
return {
|
|
29
|
+
...distributionConfig,
|
|
30
|
+
DefaultCacheBehavior: defaultCacheBehavior,
|
|
31
|
+
CacheBehaviors: cacheBehaviors,
|
|
32
|
+
};
|
|
33
|
+
}
|
|
34
|
+
/**
|
|
35
|
+
* The default cache Behavior, without its unrunnable associations.
|
|
36
|
+
*/
|
|
37
|
+
function distroDefaultBehavior(skips, distributionConfig) {
|
|
38
|
+
const behavior = distributionConfig.DefaultCacheBehavior;
|
|
39
|
+
if (behavior === undefined) {
|
|
40
|
+
return undefined;
|
|
41
|
+
}
|
|
42
|
+
return behaviorAssociations(skips, behavior, defaultBehaviorPath);
|
|
43
|
+
}
|
|
44
|
+
/**
|
|
45
|
+
* Every path-based cache Behavior, each without its unrunnable associations.
|
|
46
|
+
*
|
|
47
|
+
* A Behavior is recorded under its `PathPattern`, in the terms the template
|
|
48
|
+
* wrote it in. Its position is the fallback for a hand-written entry that left
|
|
49
|
+
* the pattern out.
|
|
50
|
+
*/
|
|
51
|
+
function distroCacheBehaviors(skips, distributionConfig) {
|
|
52
|
+
const behaviors = normalizeSimCfList("CacheBehaviors", distributionConfig.CacheBehaviors);
|
|
53
|
+
const items = behaviors?.Items;
|
|
54
|
+
if (items === undefined) {
|
|
55
|
+
return distributionConfig.CacheBehaviors;
|
|
56
|
+
}
|
|
57
|
+
return {
|
|
58
|
+
...behaviors,
|
|
59
|
+
Items: items.map((behavior, index) => behaviorAssociations(skips, behavior, `DistributionConfig.CacheBehaviors.${behavior.PathPattern ?? String(index)}`)),
|
|
60
|
+
};
|
|
61
|
+
}
|
|
62
|
+
/**
|
|
63
|
+
* One Behavior, without the associations this simulation cannot run.
|
|
64
|
+
*/
|
|
65
|
+
function behaviorAssociations(skips, behavior, behaviorPath) {
|
|
66
|
+
const runnable = skips.runnableAssociations(behavior, behaviorPath);
|
|
67
|
+
if (runnable === undefined) {
|
|
68
|
+
return behavior;
|
|
69
|
+
}
|
|
70
|
+
return {
|
|
71
|
+
...behavior,
|
|
72
|
+
LambdaFunctionAssociations: {
|
|
73
|
+
Quantity: runnable.length,
|
|
74
|
+
Items: runnable,
|
|
75
|
+
},
|
|
76
|
+
};
|
|
77
|
+
}
|
|
78
|
+
//# sourceMappingURL=sim-cfn-cf-distro-edge-associations.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sim-cfn-cf-distro-edge-associations.js","sourceRoot":"","sources":["../../../../../src/service/cloudfront/cfn/distro/sim-cfn-cf-distro-edge-associations.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,kBAAkB,EAAE,MAAM,4DAA4D,CAAC;AAChG,OAAO,EAAE,4BAA4B,EAAE,MAAM,wCAAwC,CAAC;AAEtF;;GAEG;AACH,MAAM,mBAAmB,GAAG,yCAAyC,CAAC;AAEtE;;;;;;;;;;;;;GAaG;AACH,MAAM,UAAU,0CAA0C,CACxD,QAAwB,EACxB,kBAAmD,EACnD,MAAc;IAEd,MAAM,KAAK,GAAG,IAAI,4BAA4B,CAAC,QAAQ,EAAE,MAAM,CAAC,CAAC;IACjE,MAAM,oBAAoB,GAAG,qBAAqB,CAAC,KAAK,EAAE,kBAAkB,CAAC,CAAC;IAC9E,MAAM,cAAc,GAAG,oBAAoB,CAAC,KAAK,EAAE,kBAAkB,CAAC,CAAC;IAEvE,IAAI,KAAK,CAAC,KAAK,KAAK,CAAC,EAAE,CAAC;QACtB,OAAO,kBAAkB,CAAC;IAC5B,CAAC;IAED,OAAO;QACL,GAAG,kBAAkB;QACrB,oBAAoB,EAAE,oBAAoB;QAC1C,cAAc,EAAE,cAAc;KAC/B,CAAC;AACJ,CAAC;AAED;;GAEG;AACH,SAAS,qBAAqB,CAC5B,KAAmC,EACnC,kBAAmD;IAEnD,MAAM,QAAQ,GAAG,kBAAkB,CAAC,oBAAoB,CAAC;IAEzD,IAAI,QAAQ,KAAK,SAAS,EAAE,CAAC;QAC3B,OAAO,SAAS,CAAC;IACnB,CAAC;IAED,OAAO,oBAAoB,CAAC,KAAK,EAAE,QAAQ,EAAE,mBAAmB,CAAC,CAAC;AACpE,CAAC;AAED;;;;;;GAMG;AACH,SAAS,oBAAoB,CAC3B,KAAmC,EACnC,kBAAmD;IAEnD,MAAM,SAAS,GAAG,kBAAkB,CAClC,gBAAgB,EAChB,kBAAkB,CAAC,cAAc,CAClC,CAAC;IACF,MAAM,KAAK,GAAG,SAAS,EAAE,KAAK,CAAC;IAE/B,IAAI,KAAK,KAAK,SAAS,EAAE,CAAC;QACxB,OAAO,kBAAkB,CAAC,cAAc,CAAC;IAC3C,CAAC;IAED,OAAO;QACL,GAAG,SAAS;QACZ,KAAK,EAAE,KAAK,CAAC,GAAG,CAAC,CAAC,QAAQ,EAAE,KAAK,EAAE,EAAE,CACnC,oBAAoB,CAClB,KAAK,EACL,QAAQ,EACR,qCAAqC,QAAQ,CAAC,WAAW,IAAI,MAAM,CAAC,KAAK,CAAC,EAAE,CAC7E,CACF;KACF,CAAC;AACJ,CAAC;AAED;;GAEG;AACH,SAAS,oBAAoB,CAC3B,KAAmC,EACnC,QAA0C,EAC1C,YAAoB;IAEpB,MAAM,QAAQ,GAAG,KAAK,CAAC,oBAAoB,CAAC,QAAQ,EAAE,YAAY,CAAC,CAAC;IAEpE,IAAI,QAAQ,KAAK,SAAS,EAAE,CAAC;QAC3B,OAAO,QAAQ,CAAC;IAClB,CAAC;IAED,OAAO;QACL,GAAG,QAAQ;QACX,0BAA0B,EAAE;YAC1B,QAAQ,EAAE,QAAQ,CAAC,MAAM;YACzB,KAAK,EAAE,QAAQ;SAChB;KACF,CAAC;AACJ,CAAC"}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import type { SimAws } from "../../../aws/sim-aws.js";
|
|
2
|
+
import type { SimCfnResource } from "../../../cloudformation/resource/sim-cfn-resource.js";
|
|
3
|
+
import type { SimCloudFrontCacheBehaviorConfig, SimCloudFrontDefaultCacheBehaviorConfig, SimCloudFrontLambdaFunctionAssociation } from "../../command/create-distribution/create-distribution.command.js";
|
|
4
|
+
/**
|
|
5
|
+
* Leaves out the Lambda@Edge associations of a template Behavior this
|
|
6
|
+
* simulation cannot run, recording each one on the CloudFormation Resource.
|
|
7
|
+
*
|
|
8
|
+
* Which those are is `simCfnCfEdgeSkipReason`'s to say. This is the
|
|
9
|
+
* bookkeeping around it: reading the list a template wrote, counting what a
|
|
10
|
+
* Behavior has to be rewritten for, and recording each skip under the path and
|
|
11
|
+
* the event type it was on.
|
|
12
|
+
*/
|
|
13
|
+
export declare class SimCfnCfEdgeAssociationSkips {
|
|
14
|
+
private readonly resource;
|
|
15
|
+
private readonly simAws;
|
|
16
|
+
/** How many associations have been left out so far. */
|
|
17
|
+
count: number;
|
|
18
|
+
constructor(resource: SimCfnResource, simAws: SimAws);
|
|
19
|
+
/**
|
|
20
|
+
* The associations of one Behavior this simulation can run, answering with
|
|
21
|
+
* nothing where it can run all of them and the Behavior needs no rewriting.
|
|
22
|
+
*
|
|
23
|
+
* The list is read through the normalizer, because a template writes it as a
|
|
24
|
+
* plain array where the CloudFront API writes the Quantity and Items pair,
|
|
25
|
+
* and both arrive here.
|
|
26
|
+
*/
|
|
27
|
+
runnableAssociations(behavior: SimCloudFrontDefaultCacheBehaviorConfig | SimCloudFrontCacheBehaviorConfig, behaviorPath: string): readonly SimCloudFrontLambdaFunctionAssociation[] | undefined;
|
|
28
|
+
/**
|
|
29
|
+
* Whether this simulation can run one association, recording it where it
|
|
30
|
+
* cannot.
|
|
31
|
+
*/
|
|
32
|
+
private canRun;
|
|
33
|
+
}
|
|
34
|
+
//# sourceMappingURL=sim-cfn-cf-edge-association-skips.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sim-cfn-cf-edge-association-skips.d.ts","sourceRoot":"","sources":["../../../../../src/service/cloudfront/cfn/distro/sim-cfn-cf-edge-association-skips.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,yBAAyB,CAAC;AACtD,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,sDAAsD,CAAC;AAC3F,OAAO,KAAK,EACV,gCAAgC,EAChC,uCAAuC,EACvC,sCAAsC,EACvC,MAAM,kEAAkE,CAAC;AAI1E;;;;;;;;GAQG;AACH,qBAAa,4BAA4B;IAKrC,OAAO,CAAC,QAAQ,CAAC,QAAQ;IACzB,OAAO,CAAC,QAAQ,CAAC,MAAM;IALzB,uDAAuD;IAChD,KAAK,SAAK;IAEjB,YACmB,QAAQ,EAAE,cAAc,EACxB,MAAM,EAAE,MAAM,EAC7B;IAEJ;;;;;;;OAOG;IACH,oBAAoB,CAClB,QAAQ,EACJ,uCAAuC,GACvC,gCAAgC,EACpC,YAAY,EAAE,MAAM,GACnB,SAAS,sCAAsC,EAAE,GAAG,SAAS,CAmB/D;IAED;;;OAGG;IACH,OAAO,CAAC,MAAM;CAsBf"}
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
import { normalizeSimCfList } from "../../command/create-distribution/sim-cf-normalize-list.js";
|
|
2
|
+
import { simCfnCfEdgeSkipReason } from "./sim-cfn-cf-edge-skip-reason.js";
|
|
3
|
+
/**
|
|
4
|
+
* Leaves out the Lambda@Edge associations of a template Behavior this
|
|
5
|
+
* simulation cannot run, recording each one on the CloudFormation Resource.
|
|
6
|
+
*
|
|
7
|
+
* Which those are is `simCfnCfEdgeSkipReason`'s to say. This is the
|
|
8
|
+
* bookkeeping around it: reading the list a template wrote, counting what a
|
|
9
|
+
* Behavior has to be rewritten for, and recording each skip under the path and
|
|
10
|
+
* the event type it was on.
|
|
11
|
+
*/
|
|
12
|
+
export class SimCfnCfEdgeAssociationSkips {
|
|
13
|
+
resource;
|
|
14
|
+
simAws;
|
|
15
|
+
/** How many associations have been left out so far. */
|
|
16
|
+
count = 0;
|
|
17
|
+
constructor(resource, simAws) {
|
|
18
|
+
this.resource = resource;
|
|
19
|
+
this.simAws = simAws;
|
|
20
|
+
}
|
|
21
|
+
/**
|
|
22
|
+
* The associations of one Behavior this simulation can run, answering with
|
|
23
|
+
* nothing where it can run all of them and the Behavior needs no rewriting.
|
|
24
|
+
*
|
|
25
|
+
* The list is read through the normalizer, because a template writes it as a
|
|
26
|
+
* plain array where the CloudFront API writes the Quantity and Items pair,
|
|
27
|
+
* and both arrive here.
|
|
28
|
+
*/
|
|
29
|
+
runnableAssociations(behavior, behaviorPath) {
|
|
30
|
+
const items = normalizeSimCfList("LambdaFunctionAssociations", behavior.LambdaFunctionAssociations)?.Items;
|
|
31
|
+
if (items === undefined) {
|
|
32
|
+
return undefined;
|
|
33
|
+
}
|
|
34
|
+
const runnable = items.filter((association) => this.canRun(association, behaviorPath));
|
|
35
|
+
if (runnable.length === items.length) {
|
|
36
|
+
return undefined;
|
|
37
|
+
}
|
|
38
|
+
return runnable;
|
|
39
|
+
}
|
|
40
|
+
/**
|
|
41
|
+
* Whether this simulation can run one association, recording it where it
|
|
42
|
+
* cannot.
|
|
43
|
+
*/
|
|
44
|
+
canRun(association, behaviorPath) {
|
|
45
|
+
const eventType = association.EventType;
|
|
46
|
+
const reason = simCfnCfEdgeSkipReason(association, {
|
|
47
|
+
simAws: this.simAws,
|
|
48
|
+
stackResourceLogicalIds: this.resource.stackResourceLogicalIds,
|
|
49
|
+
});
|
|
50
|
+
if (reason === undefined || eventType === undefined) {
|
|
51
|
+
return true;
|
|
52
|
+
}
|
|
53
|
+
this.count += 1;
|
|
54
|
+
this.resource.ignoreProperty(`${behaviorPath}.LambdaFunctionAssociations.${eventType}`, reason);
|
|
55
|
+
return false;
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
//# sourceMappingURL=sim-cfn-cf-edge-association-skips.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sim-cfn-cf-edge-association-skips.js","sourceRoot":"","sources":["../../../../../src/service/cloudfront/cfn/distro/sim-cfn-cf-edge-association-skips.ts"],"names":[],"mappings":"AAOA,OAAO,EAAE,kBAAkB,EAAE,MAAM,4DAA4D,CAAC;AAChG,OAAO,EAAE,sBAAsB,EAAE,MAAM,kCAAkC,CAAC;AAE1E;;;;;;;;GAQG;AACH,MAAM,OAAO,4BAA4B;IAKpB,QAAQ;IACR,MAAM;IALzB,uDAAuD;IAChD,KAAK,GAAG,CAAC,CAAC;IAEjB,YACmB,QAAwB,EACxB,MAAc;wBADd,QAAQ;sBACR,MAAM;IACtB,CAAC;IAEJ;;;;;;;OAOG;IACH,oBAAoB,CAClB,QAEoC,EACpC,YAAoB;QAEpB,MAAM,KAAK,GAAG,kBAAkB,CAC9B,4BAA4B,EAC5B,QAAQ,CAAC,0BAA0B,CACpC,EAAE,KAAK,CAAC;QAET,IAAI,KAAK,KAAK,SAAS,EAAE,CAAC;YACxB,OAAO,SAAS,CAAC;QACnB,CAAC;QAED,MAAM,QAAQ,GAAG,KAAK,CAAC,MAAM,CAAC,CAAC,WAAW,EAAE,EAAE,CAC5C,IAAI,CAAC,MAAM,CAAC,WAAW,EAAE,YAAY,CAAC,CACvC,CAAC;QAEF,IAAI,QAAQ,CAAC,MAAM,KAAK,KAAK,CAAC,MAAM,EAAE,CAAC;YACrC,OAAO,SAAS,CAAC;QACnB,CAAC;QAED,OAAO,QAAQ,CAAC;IAClB,CAAC;IAED;;;OAGG;IACK,MAAM,CACZ,WAAmD,EACnD,YAAoB;QAEpB,MAAM,SAAS,GAAG,WAAW,CAAC,SAAS,CAAC;QACxC,MAAM,MAAM,GAAG,sBAAsB,CAAC,WAAW,EAAE;YACjD,MAAM,EAAE,IAAI,CAAC,MAAM;YACnB,uBAAuB,EAAE,IAAI,CAAC,QAAQ,CAAC,uBAAuB;SAC/D,CAAC,CAAC;QAEH,IAAI,MAAM,KAAK,SAAS,IAAI,SAAS,KAAK,SAAS,EAAE,CAAC;YACpD,OAAO,IAAI,CAAC;QACd,CAAC;QAED,IAAI,CAAC,KAAK,IAAI,CAAC,CAAC;QAChB,IAAI,CAAC,QAAQ,CAAC,cAAc,CAC1B,GAAG,YAAY,+BAA+B,SAAS,EAAE,EACzD,MAAM,CACP,CAAC;QAEF,OAAO,KAAK,CAAC;IACf,CAAC;CACF"}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import type { SimAws } from "../../../aws/sim-aws.js";
|
|
2
|
+
import type { SimCloudFrontLambdaFunctionAssociation } from "../../command/create-distribution/create-distribution.command.js";
|
|
3
|
+
/**
|
|
4
|
+
* What one Lambda@Edge association is decided against.
|
|
5
|
+
*/
|
|
6
|
+
export interface SimCfnCfEdgeSkipContext {
|
|
7
|
+
/** Where the function version behind an ARN is looked for. */
|
|
8
|
+
readonly simAws: SimAws;
|
|
9
|
+
/** Every Resource the Stack declaring the Distribution holds. */
|
|
10
|
+
readonly stackResourceLogicalIds: ReadonlySet<string>;
|
|
11
|
+
}
|
|
12
|
+
/**
|
|
13
|
+
* Why this simulation cannot run one Lambda@Edge association, or nothing where
|
|
14
|
+
* it can.
|
|
15
|
+
*
|
|
16
|
+
* Two answers leave an association out. The ARN names a function version this
|
|
17
|
+
* simulation does not hold, as a template pointing at a function in a real
|
|
18
|
+
* account does. Or the ARN is the stand-in a Resource in this Stack answered an
|
|
19
|
+
* `Fn::GetAtt` with, having no ARN of its own to give.
|
|
20
|
+
*
|
|
21
|
+
* Everything else is left where `CreateDistribution` meets it, including the
|
|
22
|
+
* mistakes real CloudFront refuses. A template carrying one of those fails a
|
|
23
|
+
* real deploy too.
|
|
24
|
+
*/
|
|
25
|
+
export declare function simCfnCfEdgeSkipReason(association: SimCloudFrontLambdaFunctionAssociation, context: SimCfnCfEdgeSkipContext): string | undefined;
|
|
26
|
+
//# sourceMappingURL=sim-cfn-cf-edge-skip-reason.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sim-cfn-cf-edge-skip-reason.d.ts","sourceRoot":"","sources":["../../../../../src/service/cloudfront/cfn/distro/sim-cfn-cf-edge-skip-reason.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,yBAAyB,CAAC;AAEtD,OAAO,KAAK,EAAE,sCAAsC,EAAE,MAAM,kEAAkE,CAAC;AAI/H;;GAEG;AACH,MAAM,WAAW,uBAAuB;IACtC,8DAA8D;IAC9D,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAC;IAExB,iEAAiE;IACjE,QAAQ,CAAC,uBAAuB,EAAE,WAAW,CAAC,MAAM,CAAC,CAAC;CACvD;AAED;;;;;;;;;;;;GAYG;AACH,wBAAgB,sBAAsB,CACpC,WAAW,EAAE,sCAAsC,EACnD,OAAO,EAAE,uBAAuB,GAC/B,MAAM,GAAG,SAAS,CAkBpB"}
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
import { namesSimCfnUnansweredAttribute } from "../../../cloudformation/resource/cfn/sim-cfn-unanswered-attribute.js";
|
|
2
|
+
import { readEdgeFunctionArnParts } from "../../edge/sim-cf-edge-function-arn.js";
|
|
3
|
+
import { findSimCfEdgeFunctionVersion } from "../../edge/sim-cf-edge-function-version.js";
|
|
4
|
+
/**
|
|
5
|
+
* Why this simulation cannot run one Lambda@Edge association, or nothing where
|
|
6
|
+
* it can.
|
|
7
|
+
*
|
|
8
|
+
* Two answers leave an association out. The ARN names a function version this
|
|
9
|
+
* simulation does not hold, as a template pointing at a function in a real
|
|
10
|
+
* account does. Or the ARN is the stand-in a Resource in this Stack answered an
|
|
11
|
+
* `Fn::GetAtt` with, having no ARN of its own to give.
|
|
12
|
+
*
|
|
13
|
+
* Everything else is left where `CreateDistribution` meets it, including the
|
|
14
|
+
* mistakes real CloudFront refuses. A template carrying one of those fails a
|
|
15
|
+
* real deploy too.
|
|
16
|
+
*/
|
|
17
|
+
export function simCfnCfEdgeSkipReason(association, context) {
|
|
18
|
+
const { EventType: eventType, LambdaFunctionARN: functionArn } = association;
|
|
19
|
+
if (eventType === undefined || functionArn === undefined) {
|
|
20
|
+
return undefined;
|
|
21
|
+
}
|
|
22
|
+
const arn = readEdgeFunctionArnParts(functionArn);
|
|
23
|
+
if (arn === undefined) {
|
|
24
|
+
return unreadableArnReason(eventType, functionArn, context);
|
|
25
|
+
}
|
|
26
|
+
if (findSimCfEdgeFunctionVersion(context.simAws, arn) !== undefined) {
|
|
27
|
+
return undefined;
|
|
28
|
+
}
|
|
29
|
+
return absentFunctionReason(eventType, functionArn);
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* The ARN names a function version no simulated Lambda holds.
|
|
33
|
+
*/
|
|
34
|
+
function absentFunctionReason(eventType, functionArn) {
|
|
35
|
+
return (`Lambda@Edge function ${functionArn} is not held by this simulation, so ` +
|
|
36
|
+
`the Behavior is deployed without it and runs nothing at ${eventType}`);
|
|
37
|
+
}
|
|
38
|
+
/**
|
|
39
|
+
* Why an ARN that does not read as a Lambda@Edge function ARN is left out, or
|
|
40
|
+
* nothing where it is kept.
|
|
41
|
+
*
|
|
42
|
+
* A value written as an ARN is kept, so `CreateDistribution` refuses it the
|
|
43
|
+
* way real CloudFront refuses a malformed ARN or a function outside us-east-1.
|
|
44
|
+
* A value naming a Resource in this Stack is a different thing. It is the
|
|
45
|
+
* stand-in an `Fn::GetAtt` resolves to where the Resource had no attribute to
|
|
46
|
+
* answer with, and the template that wrote it deploys on AWS. CDK writes one
|
|
47
|
+
* for an `experimental.EdgeFunction` outside us-east-1, whose ARN comes from
|
|
48
|
+
* an SSM parameter a support Stack writes and a custom Resource reads back.
|
|
49
|
+
*/
|
|
50
|
+
function unreadableArnReason(eventType, functionArn, context) {
|
|
51
|
+
if (!namesSimCfnUnansweredAttribute(functionArn, context.stackResourceLogicalIds)) {
|
|
52
|
+
return undefined;
|
|
53
|
+
}
|
|
54
|
+
return (`the Lambda@Edge function ARN is read from ${functionArn}, a Resource in ` +
|
|
55
|
+
`this Stack that had no ARN to answer with, so the Behavior is deployed ` +
|
|
56
|
+
`without it and runs nothing at ${eventType}. A CDK EdgeFunction outside ` +
|
|
57
|
+
`us-east-1 reads its ARN from a support Stack of its own; deploy the ` +
|
|
58
|
+
`whole cloud assembly with deployCdkOut to deploy that Stack too`);
|
|
59
|
+
}
|
|
60
|
+
//# sourceMappingURL=sim-cfn-cf-edge-skip-reason.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sim-cfn-cf-edge-skip-reason.js","sourceRoot":"","sources":["../../../../../src/service/cloudfront/cfn/distro/sim-cfn-cf-edge-skip-reason.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,8BAA8B,EAAE,MAAM,sEAAsE,CAAC;AAEtH,OAAO,EAAE,wBAAwB,EAAE,MAAM,wCAAwC,CAAC;AAClF,OAAO,EAAE,4BAA4B,EAAE,MAAM,4CAA4C,CAAC;AAa1F;;;;;;;;;;;;GAYG;AACH,MAAM,UAAU,sBAAsB,CACpC,WAAmD,EACnD,OAAgC;IAEhC,MAAM,EAAE,SAAS,EAAE,SAAS,EAAE,iBAAiB,EAAE,WAAW,EAAE,GAAG,WAAW,CAAC;IAE7E,IAAI,SAAS,KAAK,SAAS,IAAI,WAAW,KAAK,SAAS,EAAE,CAAC;QACzD,OAAO,SAAS,CAAC;IACnB,CAAC;IAED,MAAM,GAAG,GAAG,wBAAwB,CAAC,WAAW,CAAC,CAAC;IAElD,IAAI,GAAG,KAAK,SAAS,EAAE,CAAC;QACtB,OAAO,mBAAmB,CAAC,SAAS,EAAE,WAAW,EAAE,OAAO,CAAC,CAAC;IAC9D,CAAC;IAED,IAAI,4BAA4B,CAAC,OAAO,CAAC,MAAM,EAAE,GAAG,CAAC,KAAK,SAAS,EAAE,CAAC;QACpE,OAAO,SAAS,CAAC;IACnB,CAAC;IAED,OAAO,oBAAoB,CAAC,SAAS,EAAE,WAAW,CAAC,CAAC;AACtD,CAAC;AAED;;GAEG;AACH,SAAS,oBAAoB,CAAC,SAAiB,EAAE,WAAmB;IAClE,OAAO,CACL,wBAAwB,WAAW,sCAAsC;QACzE,2DAA2D,SAAS,EAAE,CACvE,CAAC;AACJ,CAAC;AAED;;;;;;;;;;;GAWG;AACH,SAAS,mBAAmB,CAC1B,SAAiB,EACjB,WAAmB,EACnB,OAAgC;IAEhC,IACE,CAAC,8BAA8B,CAC7B,WAAW,EACX,OAAO,CAAC,uBAAuB,CAChC,EACD,CAAC;QACD,OAAO,SAAS,CAAC;IACnB,CAAC;IAED,OAAO,CACL,6CAA6C,WAAW,kBAAkB;QAC1E,yEAAyE;QACzE,kCAAkC,SAAS,+BAA+B;QAC1E,sEAAsE;QACtE,iEAAiE,CAClE,CAAC;AACJ,CAAC"}
|
|
@@ -4,7 +4,9 @@ import type { SimCloudFrontDistroRouter } from "../../router/sim-cloud-front-dis
|
|
|
4
4
|
import type { SimCloudFrontBehaviorResolver } from "../../resolver/sim-cloud-front-behavior-resolver.js";
|
|
5
5
|
import { SimCffApplicator } from "../cff/sim-cff-applicator.js";
|
|
6
6
|
import { SimLambdaEdgeApplicator } from "../edge/sim-lambda-edge-applicator.js";
|
|
7
|
+
import { SimLambdaEdgeOriginApplicator } from "../edge/sim-lambda-edge-origin-applicator.js";
|
|
7
8
|
import { SimCloudFrontOriginFetcher } from "../origin/sim-cloudfront-origin-fetcher.js";
|
|
9
|
+
import { SimCfOriginStage } from "../origin/sim-cf-origin-stage.js";
|
|
8
10
|
import { SimCfCustomErrorResponder } from "../error/sim-cf-custom-error-responder.js";
|
|
9
11
|
import { SimCfResponseHeadersApplicator } from "../response-headers/sim-cf-response-headers-applicator.js";
|
|
10
12
|
import { SimCfWebAclGuard } from "../web-acl/sim-cf-web-acl-guard.js";
|
|
@@ -16,6 +18,7 @@ export interface SimCloudFrontServiceControllerProperties {
|
|
|
16
18
|
readonly behaviourResolver?: SimCloudFrontBehaviorResolver;
|
|
17
19
|
readonly cffApplicator?: SimCffApplicator;
|
|
18
20
|
readonly edgeApplicator?: SimLambdaEdgeApplicator;
|
|
21
|
+
readonly edgeOriginApplicator?: SimLambdaEdgeOriginApplicator;
|
|
19
22
|
readonly originFetcher?: SimCloudFrontOriginFetcher;
|
|
20
23
|
readonly customErrorResponder?: SimCfCustomErrorResponder;
|
|
21
24
|
readonly responseHeadersApplicator?: SimCfResponseHeadersApplicator;
|
|
@@ -26,7 +29,7 @@ export interface SimCloudFrontControllerDependencies {
|
|
|
26
29
|
readonly behaviourResolver: SimCloudFrontBehaviorResolver;
|
|
27
30
|
readonly cffApplicator: SimCffApplicator;
|
|
28
31
|
readonly edgeApplicator: SimLambdaEdgeApplicator;
|
|
29
|
-
readonly
|
|
32
|
+
readonly originStage: SimCfOriginStage;
|
|
30
33
|
readonly customErrorResponder: SimCfCustomErrorResponder;
|
|
31
34
|
readonly responseHeadersApplicator: SimCfResponseHeadersApplicator;
|
|
32
35
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sim-cf-controller-dependency.d.ts","sourceRoot":"","sources":["../../../../../src/service/cloudfront/controller/dependency/sim-cf-controller-dependency.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,yBAAyB,CAAC;AACjD,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,4CAA4C,CAAC;AACxF,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,+CAA+C,CAAC;AAE/F,OAAO,KAAK,EAAE,6BAA6B,EAAE,MAAM,qDAAqD,CAAC;AAEzG,OAAO,EAAE,gBAAgB,EAAE,MAAM,8BAA8B,CAAC;AAChE,OAAO,EAAE,uBAAuB,EAAE,MAAM,uCAAuC,CAAC;
|
|
1
|
+
{"version":3,"file":"sim-cf-controller-dependency.d.ts","sourceRoot":"","sources":["../../../../../src/service/cloudfront/controller/dependency/sim-cf-controller-dependency.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,yBAAyB,CAAC;AACjD,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,4CAA4C,CAAC;AACxF,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,+CAA+C,CAAC;AAE/F,OAAO,KAAK,EAAE,6BAA6B,EAAE,MAAM,qDAAqD,CAAC;AAEzG,OAAO,EAAE,gBAAgB,EAAE,MAAM,8BAA8B,CAAC;AAChE,OAAO,EAAE,uBAAuB,EAAE,MAAM,uCAAuC,CAAC;AAChF,OAAO,EAAE,6BAA6B,EAAE,MAAM,8CAA8C,CAAC;AAE7F,OAAO,EAAE,0BAA0B,EAAE,MAAM,4CAA4C,CAAC;AACxF,OAAO,EAAE,gBAAgB,EAAE,MAAM,kCAAkC,CAAC;AACpE,OAAO,EAAE,yBAAyB,EAAE,MAAM,2CAA2C,CAAC;AACtF,OAAO,EAAE,8BAA8B,EAAE,MAAM,2DAA2D,CAAC;AAC3G,OAAO,EAAE,gBAAgB,EAAE,MAAM,oCAAoC,CAAC;AAGtE,MAAM,WAAW,wCAAwC;IACvD,QAAQ,CAAC,MAAM,CAAC,EAAE,MAAM,CAAC;IACzB,QAAQ,CAAC,kBAAkB,CAAC,EAAE,qBAAqB,CAAC;IACpD,QAAQ,CAAC,YAAY,CAAC,EAAE,yBAAyB,CAAC;IAClD,QAAQ,CAAC,WAAW,CAAC,EAAE,gBAAgB,CAAC;IACxC,QAAQ,CAAC,iBAAiB,CAAC,EAAE,6BAA6B,CAAC;IAC3D,QAAQ,CAAC,aAAa,CAAC,EAAE,gBAAgB,CAAC;IAC1C,QAAQ,CAAC,cAAc,CAAC,EAAE,uBAAuB,CAAC;IAClD,QAAQ,CAAC,oBAAoB,CAAC,EAAE,6BAA6B,CAAC;IAC9D,QAAQ,CAAC,aAAa,CAAC,EAAE,0BAA0B,CAAC;IACpD,QAAQ,CAAC,oBAAoB,CAAC,EAAE,yBAAyB,CAAC;IAC1D,QAAQ,CAAC,yBAAyB,CAAC,EAAE,8BAA8B,CAAC;CACrE;AAED,MAAM,WAAW,mCAAmC;IAClD,QAAQ,CAAC,YAAY,EAAE,yBAAyB,CAAC;IACjD,QAAQ,CAAC,WAAW,EAAE,gBAAgB,CAAC;IACvC,QAAQ,CAAC,iBAAiB,EAAE,6BAA6B,CAAC;IAC1D,QAAQ,CAAC,aAAa,EAAE,gBAAgB,CAAC;IACzC,QAAQ,CAAC,cAAc,EAAE,uBAAuB,CAAC;IACjD,QAAQ,CAAC,WAAW,EAAE,gBAAgB,CAAC;IACvC,QAAQ,CAAC,oBAAoB,EAAE,yBAAyB,CAAC;IACzD,QAAQ,CAAC,yBAAyB,EAAE,8BAA8B,CAAC;CACpE;AAED;;GAEG;AACH,qBAAa,0CAA0C;IACrD;;OAEG;IACH,IAAI,CACF,UAAU,GAAE,wCAA6C,GACxD,mCAAmC,CA0CrC;CACF"}
|
|
@@ -3,8 +3,10 @@ import { SimCloudFrontDistroRouter as DefaultSimCloudFrontDistroRouter } from ".
|
|
|
3
3
|
import { SimCloudFrontBehaviorResolver as DefaultSimCloudFrontBehaviorResolver } from "../../resolver/sim-cloud-front-behavior-resolver.js";
|
|
4
4
|
import { SimCffApplicator } from "../cff/sim-cff-applicator.js";
|
|
5
5
|
import { SimLambdaEdgeApplicator } from "../edge/sim-lambda-edge-applicator.js";
|
|
6
|
+
import { SimLambdaEdgeOriginApplicator } from "../edge/sim-lambda-edge-origin-applicator.js";
|
|
6
7
|
import { SimAwsCfEdgeFunctions } from "../../edge/sim-aws-cf-edge-functions.js";
|
|
7
8
|
import { SimCloudFrontOriginFetcher } from "../origin/sim-cloudfront-origin-fetcher.js";
|
|
9
|
+
import { SimCfOriginStage } from "../origin/sim-cf-origin-stage.js";
|
|
8
10
|
import { SimCfCustomErrorResponder } from "../error/sim-cf-custom-error-responder.js";
|
|
9
11
|
import { SimCfResponseHeadersApplicator } from "../response-headers/sim-cf-response-headers-applicator.js";
|
|
10
12
|
import { SimCfWebAclGuard } from "../web-acl/sim-cf-web-acl-guard.js";
|
|
@@ -25,6 +27,7 @@ export class SimCloudFrontControllerDependenciesFactory {
|
|
|
25
27
|
const behaviourResolver = properties.behaviourResolver ??
|
|
26
28
|
new DefaultSimCloudFrontBehaviorResolver();
|
|
27
29
|
const originFetcher = properties.originFetcher ?? new SimCloudFrontOriginFetcher();
|
|
30
|
+
const edgeFunctions = new SimAwsCfEdgeFunctions(simAws);
|
|
28
31
|
return {
|
|
29
32
|
distroRouter: properties.distroRouter ??
|
|
30
33
|
new DefaultSimCloudFrontDistroRouter({
|
|
@@ -36,10 +39,9 @@ export class SimCloudFrontControllerDependenciesFactory {
|
|
|
36
39
|
behaviourResolver,
|
|
37
40
|
cffApplicator: properties.cffApplicator ?? new SimCffApplicator(),
|
|
38
41
|
edgeApplicator: properties.edgeApplicator ??
|
|
39
|
-
new SimLambdaEdgeApplicator({
|
|
40
|
-
|
|
41
|
-
}),
|
|
42
|
-
originFetcher,
|
|
42
|
+
new SimLambdaEdgeApplicator({ edgeFunctions }),
|
|
43
|
+
originStage: new SimCfOriginStage(originFetcher, properties.edgeOriginApplicator ??
|
|
44
|
+
new SimLambdaEdgeOriginApplicator({ edgeFunctions })),
|
|
43
45
|
customErrorResponder: properties.customErrorResponder ??
|
|
44
46
|
new SimCfCustomErrorResponder({ behaviourResolver, originFetcher }),
|
|
45
47
|
responseHeadersApplicator: properties.responseHeadersApplicator ??
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sim-cf-controller-dependency.js","sourceRoot":"","sources":["../../../../../src/service/cloudfront/controller/dependency/sim-cf-controller-dependency.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,yBAAyB,CAAC;AAGjD,OAAO,EAAE,yBAAyB,IAAI,gCAAgC,EAAE,MAAM,+CAA+C,CAAC;AAE9H,OAAO,EAAE,6BAA6B,IAAI,oCAAoC,EAAE,MAAM,qDAAqD,CAAC;AAC5I,OAAO,EAAE,gBAAgB,EAAE,MAAM,8BAA8B,CAAC;AAChE,OAAO,EAAE,uBAAuB,EAAE,MAAM,uCAAuC,CAAC;AAChF,OAAO,EAAE,qBAAqB,EAAE,MAAM,yCAAyC,CAAC;AAChF,OAAO,EAAE,0BAA0B,EAAE,MAAM,4CAA4C,CAAC;AACxF,OAAO,EAAE,yBAAyB,EAAE,MAAM,2CAA2C,CAAC;AACtF,OAAO,EAAE,8BAA8B,EAAE,MAAM,2DAA2D,CAAC;AAC3G,OAAO,EAAE,gBAAgB,EAAE,MAAM,oCAAoC,CAAC;AACtE,OAAO,EAAE,uBAAuB,EAAE,MAAM,kDAAkD,CAAC;
|
|
1
|
+
{"version":3,"file":"sim-cf-controller-dependency.js","sourceRoot":"","sources":["../../../../../src/service/cloudfront/controller/dependency/sim-cf-controller-dependency.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,yBAAyB,CAAC;AAGjD,OAAO,EAAE,yBAAyB,IAAI,gCAAgC,EAAE,MAAM,+CAA+C,CAAC;AAE9H,OAAO,EAAE,6BAA6B,IAAI,oCAAoC,EAAE,MAAM,qDAAqD,CAAC;AAC5I,OAAO,EAAE,gBAAgB,EAAE,MAAM,8BAA8B,CAAC;AAChE,OAAO,EAAE,uBAAuB,EAAE,MAAM,uCAAuC,CAAC;AAChF,OAAO,EAAE,6BAA6B,EAAE,MAAM,8CAA8C,CAAC;AAC7F,OAAO,EAAE,qBAAqB,EAAE,MAAM,yCAAyC,CAAC;AAChF,OAAO,EAAE,0BAA0B,EAAE,MAAM,4CAA4C,CAAC;AACxF,OAAO,EAAE,gBAAgB,EAAE,MAAM,kCAAkC,CAAC;AACpE,OAAO,EAAE,yBAAyB,EAAE,MAAM,2CAA2C,CAAC;AACtF,OAAO,EAAE,8BAA8B,EAAE,MAAM,2DAA2D,CAAC;AAC3G,OAAO,EAAE,gBAAgB,EAAE,MAAM,oCAAoC,CAAC;AACtE,OAAO,EAAE,uBAAuB,EAAE,MAAM,kDAAkD,CAAC;AA2B3F;;GAEG;AACH,MAAM,OAAO,0CAA0C;IACrD;;OAEG;IACH,IAAI,CACF,UAAU,GAA6C,EAAE;QAEzD,MAAM,MAAM,GAAG,UAAU,CAAC,MAAM,IAAI,IAAI,MAAM,EAAE,CAAC;QACjD,MAAM,kBAAkB,GACtB,UAAU,CAAC,kBAAkB,IAAI,MAAM,CAAC,cAAc,CAAC,kBAAkB,CAAC;QAE5E,wEAAwE;QACxE,yEAAyE;QACzE,qDAAqD;QACrD,MAAM,iBAAiB,GACrB,UAAU,CAAC,iBAAiB;YAC5B,IAAI,oCAAoC,EAAE,CAAC;QAC7C,MAAM,aAAa,GACjB,UAAU,CAAC,aAAa,IAAI,IAAI,0BAA0B,EAAE,CAAC;QAC/D,MAAM,aAAa,GAAG,IAAI,qBAAqB,CAAC,MAAM,CAAC,CAAC;QAExD,OAAO;YACL,YAAY,EACV,UAAU,CAAC,YAAY;gBACvB,IAAI,gCAAgC,CAAC;oBACnC,MAAM;oBACN,kBAAkB;iBACnB,CAAC;YACJ,WAAW,EACT,UAAU,CAAC,WAAW;gBACtB,IAAI,gBAAgB,CAAC,uBAAuB,CAAC,MAAM,CAAC,CAAC;YACvD,iBAAiB;YACjB,aAAa,EAAE,UAAU,CAAC,aAAa,IAAI,IAAI,gBAAgB,EAAE;YACjE,cAAc,EACZ,UAAU,CAAC,cAAc;gBACzB,IAAI,uBAAuB,CAAC,EAAE,aAAa,EAAE,CAAC;YAChD,WAAW,EAAE,IAAI,gBAAgB,CAC/B,aAAa,EACb,UAAU,CAAC,oBAAoB;gBAC7B,IAAI,6BAA6B,CAAC,EAAE,aAAa,EAAE,CAAC,CACvD;YACD,oBAAoB,EAClB,UAAU,CAAC,oBAAoB;gBAC/B,IAAI,yBAAyB,CAAC,EAAE,iBAAiB,EAAE,aAAa,EAAE,CAAC;YACrE,yBAAyB,EACvB,UAAU,CAAC,yBAAyB;gBACpC,IAAI,8BAA8B,EAAE;SACvC,CAAC;IACJ,CAAC;CACF"}
|
|
@@ -11,7 +11,9 @@ interface SimLambdaEdgeApplicatorProperties {
|
|
|
11
11
|
readonly edgeFunctions?: SimCfEdgeFunctions | undefined;
|
|
12
12
|
}
|
|
13
13
|
/**
|
|
14
|
-
* Runs the Lambda@Edge functions a resolved Behavior associates
|
|
14
|
+
* Runs the Lambda@Edge functions a resolved Behavior associates at the viewer
|
|
15
|
+
* events. `SimLambdaEdgeOriginApplicator` runs the two either side of the
|
|
16
|
+
* Origin fetch.
|
|
15
17
|
*
|
|
16
18
|
* A function that throws answers the viewer with a 502 and takes the request
|
|
17
19
|
* no further, which is what CloudFront does with a failed edge function. The
|
|
@@ -33,16 +35,6 @@ export declare class SimLambdaEdgeApplicator {
|
|
|
33
35
|
* Run the viewer-response function, if the Behavior associates one.
|
|
34
36
|
*/
|
|
35
37
|
applyViewerResponse(request: Request, response: Response, distribution: SimCloudFrontDistribution, behaviour: SimCloudFrontBehavior): Promise<Response>;
|
|
36
|
-
/**
|
|
37
|
-
* Run one edge function, answering with the 502 a failed one gets.
|
|
38
|
-
*
|
|
39
|
-
* A handler that threw, a handler that answered with something the adapter
|
|
40
|
-
* cannot read as a request or a response, and a request whose body could not
|
|
41
|
-
* be read into the event, are all the same thing to CloudFront. Each is a
|
|
42
|
-
* failure at the edge the viewer sees as a 502, which is why building the
|
|
43
|
-
* event happens in here rather than before it.
|
|
44
|
-
*/
|
|
45
|
-
private running;
|
|
46
38
|
}
|
|
47
39
|
export {};
|
|
48
40
|
//# sourceMappingURL=sim-lambda-edge-applicator.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sim-lambda-edge-applicator.d.ts","sourceRoot":"","sources":["../../../../../src/service/cloudfront/controller/edge/sim-lambda-edge-applicator.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,6CAA6C,CAAC;AACzF,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,mDAAmD,CAAC;
|
|
1
|
+
{"version":3,"file":"sim-lambda-edge-applicator.d.ts","sourceRoot":"","sources":["../../../../../src/service/cloudfront/controller/edge/sim-lambda-edge-applicator.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,6CAA6C,CAAC;AACzF,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,mDAAmD,CAAC;AAEnG,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,qCAAqC,CAAC;AAI9E,UAAU,iCAAiC;IACzC;;;;;OAKG;IACH,QAAQ,CAAC,aAAa,CAAC,EAAE,kBAAkB,GAAG,SAAS,CAAC;CACzD;AAED;;;;;;;;;GASG;AACH,qBAAa,uBAAuB;IAClC,OAAO,CAAC,QAAQ,CAAC,YAAY,CAAmC;IAChE,OAAO,CAAC,QAAQ,CAAC,aAAa,CAAiC;IAE/D,YAAY,UAAU,GAAE,iCAAsC,EAE7D;IAED;;;;;OAKG;IACG,kBAAkB,CACtB,OAAO,EAAE,OAAO,EAChB,YAAY,EAAE,yBAAyB,EACvC,SAAS,EAAE,qBAAqB,GAC/B,OAAO,CAAC,OAAO,GAAG,QAAQ,CAAC,CAuB7B;IAED;;OAEG;IACG,mBAAmB,CACvB,OAAO,EAAE,OAAO,EAChB,QAAQ,EAAE,QAAQ,EAClB,YAAY,EAAE,yBAAyB,EACvC,SAAS,EAAE,qBAAqB,GAC/B,OAAO,CAAC,QAAQ,CAAC,CAuBnB;CACF"}
|
|
@@ -1,7 +1,10 @@
|
|
|
1
1
|
import { SimLambdaEdgeEventAdapter } from "../../edge/adapter/sim-lambda-edge-event-adapter.js";
|
|
2
2
|
import { simCfEdgeDistributionConfig } from "./sim-lambda-edge-distribution.js";
|
|
3
|
+
import { runEdgeFunction } from "./sim-lambda-edge-run.js";
|
|
3
4
|
/**
|
|
4
|
-
* Runs the Lambda@Edge functions a resolved Behavior associates
|
|
5
|
+
* Runs the Lambda@Edge functions a resolved Behavior associates at the viewer
|
|
6
|
+
* events. `SimLambdaEdgeOriginApplicator` runs the two either side of the
|
|
7
|
+
* Origin fetch.
|
|
5
8
|
*
|
|
6
9
|
* A function that throws answers the viewer with a 502 and takes the request
|
|
7
10
|
* no further, which is what CloudFront does with a failed edge function. The
|
|
@@ -26,7 +29,7 @@ export class SimLambdaEdgeApplicator {
|
|
|
26
29
|
if (association === undefined || edgeFunctions === undefined) {
|
|
27
30
|
return request;
|
|
28
31
|
}
|
|
29
|
-
return await
|
|
32
|
+
return await runEdgeFunction(association, async () => {
|
|
30
33
|
const event = await this.eventAdapter.toRequestEvent(request, association.includeBody, simCfEdgeDistributionConfig(distribution));
|
|
31
34
|
return this.eventAdapter.fromRequestResult((await edgeFunctions.invoke(association.functionArn, event)), request);
|
|
32
35
|
});
|
|
@@ -40,27 +43,10 @@ export class SimLambdaEdgeApplicator {
|
|
|
40
43
|
if (association === undefined || edgeFunctions === undefined) {
|
|
41
44
|
return response;
|
|
42
45
|
}
|
|
43
|
-
return await
|
|
46
|
+
return await runEdgeFunction(association, async () => {
|
|
44
47
|
const event = await this.eventAdapter.toResponseEvent(request, response, simCfEdgeDistributionConfig(distribution));
|
|
45
48
|
return this.eventAdapter.fromResponseResult((await edgeFunctions.invoke(association.functionArn, event)), response);
|
|
46
49
|
});
|
|
47
50
|
}
|
|
48
|
-
/**
|
|
49
|
-
* Run one edge function, answering with the 502 a failed one gets.
|
|
50
|
-
*
|
|
51
|
-
* A handler that threw, a handler that answered with something the adapter
|
|
52
|
-
* cannot read as a request or a response, and a request whose body could not
|
|
53
|
-
* be read into the event, are all the same thing to CloudFront. Each is a
|
|
54
|
-
* failure at the edge the viewer sees as a 502, which is why building the
|
|
55
|
-
* event happens in here rather than before it.
|
|
56
|
-
*/
|
|
57
|
-
async running(association, run) {
|
|
58
|
-
try {
|
|
59
|
-
return await run();
|
|
60
|
-
}
|
|
61
|
-
catch {
|
|
62
|
-
return new Response(`The Lambda@Edge function ${association.functionArn} failed`, { status: 502 });
|
|
63
|
-
}
|
|
64
|
-
}
|
|
65
51
|
}
|
|
66
52
|
//# sourceMappingURL=sim-lambda-edge-applicator.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sim-lambda-edge-applicator.js","sourceRoot":"","sources":["../../../../../src/service/cloudfront/controller/edge/sim-lambda-edge-applicator.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,yBAAyB,EAAE,MAAM,qDAAqD,CAAC;
|
|
1
|
+
{"version":3,"file":"sim-lambda-edge-applicator.js","sourceRoot":"","sources":["../../../../../src/service/cloudfront/controller/edge/sim-lambda-edge-applicator.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,yBAAyB,EAAE,MAAM,qDAAqD,CAAC;AAEhG,OAAO,EAAE,2BAA2B,EAAE,MAAM,mCAAmC,CAAC;AAChF,OAAO,EAAE,eAAe,EAAE,MAAM,0BAA0B,CAAC;AAY3D;;;;;;;;;GASG;AACH,MAAM,OAAO,uBAAuB;IACjB,YAAY,GAAG,IAAI,yBAAyB,EAAE,CAAC;IAC/C,aAAa,CAAiC;IAE/D,YAAY,UAAU,GAAsC,EAAE;QAC5D,IAAI,CAAC,aAAa,GAAG,UAAU,CAAC,aAAa,CAAC;IAChD,CAAC;IAED;;;;;OAKG;IACH,KAAK,CAAC,kBAAkB,CACtB,OAAgB,EAChB,YAAuC,EACvC,SAAgC;QAEhC,MAAM,WAAW,GAAG,SAAS,CAAC,0BAA0B,EAAE,aAAa,CAAC;QACxE,MAAM,aAAa,GAAG,IAAI,CAAC,aAAa,CAAC;QAEzC,IAAI,WAAW,KAAK,SAAS,IAAI,aAAa,KAAK,SAAS,EAAE,CAAC;YAC7D,OAAO,OAAO,CAAC;QACjB,CAAC;QAED,OAAO,MAAM,eAAe,CAAC,WAAW,EAAE,KAAK,IAAI,EAAE;YACnD,MAAM,KAAK,GAAG,MAAM,IAAI,CAAC,YAAY,CAAC,cAAc,CAClD,OAAO,EACP,WAAW,CAAC,WAAW,EACvB,2BAA2B,CAAC,YAAY,CAAC,CAC1C,CAAC;YAEF,OAAO,IAAI,CAAC,YAAY,CAAC,iBAAiB,CACxC,CAAC,MAAM,aAAa,CAAC,MAAM,CACzB,WAAW,CAAC,WAAW,EACvB,KAAK,CACN,CAA+B,EAChC,OAAO,CACR,CAAC;QACJ,CAAC,CAAC,CAAC;IACL,CAAC;IAED;;OAEG;IACH,KAAK,CAAC,mBAAmB,CACvB,OAAgB,EAChB,QAAkB,EAClB,YAAuC,EACvC,SAAgC;QAEhC,MAAM,WAAW,GAAG,SAAS,CAAC,0BAA0B,EAAE,cAAc,CAAC;QACzE,MAAM,aAAa,GAAG,IAAI,CAAC,aAAa,CAAC;QAEzC,IAAI,WAAW,KAAK,SAAS,IAAI,aAAa,KAAK,SAAS,EAAE,CAAC;YAC7D,OAAO,QAAQ,CAAC;QAClB,CAAC;QAED,OAAO,MAAM,eAAe,CAAC,WAAW,EAAE,KAAK,IAAI,EAAE;YACnD,MAAM,KAAK,GAAG,MAAM,IAAI,CAAC,YAAY,CAAC,eAAe,CACnD,OAAO,EACP,QAAQ,EACR,2BAA2B,CAAC,YAAY,CAAC,CAC1C,CAAC;YAEF,OAAO,IAAI,CAAC,YAAY,CAAC,kBAAkB,CACzC,CAAC,MAAM,aAAa,CAAC,MAAM,CACzB,WAAW,CAAC,WAAW,EACvB,KAAK,CACN,CAA0B,EAC3B,QAAQ,CACT,CAAC;QACJ,CAAC,CAAC,CAAC;IACL,CAAC;CACF"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { SimCloudFrontDistribution } from "../../distribution/sim-cloudfront-distribution.js";
|
|
2
|
-
import type { SimLambdaEdgeDistributionConfig } from "../../edge/adapter/sim-lambda-edge-event-
|
|
2
|
+
import type { SimLambdaEdgeDistributionConfig } from "../../edge/adapter/sim-lambda-edge-event-config.js";
|
|
3
3
|
/**
|
|
4
4
|
* What an edge function is told about the Distribution it is running for.
|
|
5
5
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sim-lambda-edge-distribution.d.ts","sourceRoot":"","sources":["../../../../../src/service/cloudfront/controller/edge/sim-lambda-edge-distribution.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,mDAAmD,CAAC;AACnG,OAAO,KAAK,EAAE,+BAA+B,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"sim-lambda-edge-distribution.d.ts","sourceRoot":"","sources":["../../../../../src/service/cloudfront/controller/edge/sim-lambda-edge-distribution.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,mDAAmD,CAAC;AACnG,OAAO,KAAK,EAAE,+BAA+B,EAAE,MAAM,oDAAoD,CAAC;AAE1G;;;;;;GAMG;AACH,wBAAgB,2BAA2B,CACzC,YAAY,EAAE,yBAAyB,GACtC,+BAA+B,CAKjC"}
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import type { SimCloudFrontBehavior } from "../../behaviour/sim-cloud-front-behavior.js";
|
|
2
|
+
import type { SimCloudFrontDistribution } from "../../distribution/sim-cloudfront-distribution.js";
|
|
3
|
+
import type { SimCfEdgeFunctions } from "../../edge/sim-cf-edge-functions.js";
|
|
4
|
+
import type { SimCfOriginBoundRequest } from "../origin/sim-cf-origin-bound-request.js";
|
|
5
|
+
interface SimLambdaEdgeOriginApplicatorProperties {
|
|
6
|
+
/**
|
|
7
|
+
* Where the associated function versions are found and run. A controller
|
|
8
|
+
* built without a simulated Lambda to reach has none, and a Behavior
|
|
9
|
+
* associating a function answers the viewer with a 502.
|
|
10
|
+
*/
|
|
11
|
+
readonly edgeFunctions?: SimCfEdgeFunctions | undefined;
|
|
12
|
+
}
|
|
13
|
+
/**
|
|
14
|
+
* Runs the Lambda@Edge functions a resolved Behavior associates at the two
|
|
15
|
+
* origin events, either side of the Origin fetch.
|
|
16
|
+
*
|
|
17
|
+
* An origin-request function is told which Origin the Behavior resolved, and
|
|
18
|
+
* what it hands back is what the fetch uses. An origin-response function is
|
|
19
|
+
* told what the Origin answered, and what it hands back is what carries on
|
|
20
|
+
* towards the viewer.
|
|
21
|
+
*/
|
|
22
|
+
export declare class SimLambdaEdgeOriginApplicator {
|
|
23
|
+
private readonly eventAdapter;
|
|
24
|
+
private readonly edgeFunctions;
|
|
25
|
+
constructor(properties?: SimLambdaEdgeOriginApplicatorProperties);
|
|
26
|
+
/**
|
|
27
|
+
* Run the origin-request function, if the Behavior associates one.
|
|
28
|
+
*
|
|
29
|
+
* Answers with the request and the Origin to fetch it from, or with the
|
|
30
|
+
* response a handler generated instead, which the Origin is never read for.
|
|
31
|
+
*/
|
|
32
|
+
applyOriginRequest(bound: SimCfOriginBoundRequest, distribution: SimCloudFrontDistribution, behaviour: SimCloudFrontBehavior): Promise<SimCfOriginBoundRequest | Response>;
|
|
33
|
+
/**
|
|
34
|
+
* Run the origin-response function, if the Behavior associates one.
|
|
35
|
+
*
|
|
36
|
+
* This one runs whatever the Origin answered, including a 400 and above.
|
|
37
|
+
* That is where the origin events differ from the viewer events, and
|
|
38
|
+
* CloudFront states it.
|
|
39
|
+
*/
|
|
40
|
+
applyOriginResponse(bound: SimCfOriginBoundRequest, response: Response, distribution: SimCloudFrontDistribution, behaviour: SimCloudFrontBehavior): Promise<Response>;
|
|
41
|
+
}
|
|
42
|
+
export {};
|
|
43
|
+
//# sourceMappingURL=sim-lambda-edge-origin-applicator.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sim-lambda-edge-origin-applicator.d.ts","sourceRoot":"","sources":["../../../../../src/service/cloudfront/controller/edge/sim-lambda-edge-origin-applicator.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,6CAA6C,CAAC;AACzF,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,mDAAmD,CAAC;AAEnG,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,qCAAqC,CAAC;AAC9E,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,0CAA0C,CAAC;AAIxF,UAAU,uCAAuC;IAC/C;;;;OAIG;IACH,QAAQ,CAAC,aAAa,CAAC,EAAE,kBAAkB,GAAG,SAAS,CAAC;CACzD;AAED;;;;;;;;GAQG;AACH,qBAAa,6BAA6B;IACxC,OAAO,CAAC,QAAQ,CAAC,YAAY,CAAyC;IACtE,OAAO,CAAC,QAAQ,CAAC,aAAa,CAAiC;IAE/D,YAAY,UAAU,GAAE,uCAA4C,EAEnE;IAED;;;;;OAKG;IACG,kBAAkB,CACtB,KAAK,EAAE,uBAAuB,EAC9B,YAAY,EAAE,yBAAyB,EACvC,SAAS,EAAE,qBAAqB,GAC/B,OAAO,CAAC,uBAAuB,GAAG,QAAQ,CAAC,CAmC7C;IAED;;;;;;OAMG;IACG,mBAAmB,CACvB,KAAK,EAAE,uBAAuB,EAC9B,QAAQ,EAAE,QAAQ,EAClB,YAAY,EAAE,yBAAyB,EACvC,SAAS,EAAE,qBAAqB,GAC/B,OAAO,CAAC,QAAQ,CAAC,CAwBnB;CACF"}
|