@kensio/yulin 1.20.1 → 1.20.3
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/dist/index.d.ts +1 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -0
- package/dist/index.js.map +1 -1
- 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/apigateway/api/sim-rest-api-lambda-proxy.factory.d.ts +2 -5
- package/dist/service/apigateway/api/sim-rest-api-lambda-proxy.factory.d.ts.map +1 -1
- package/dist/service/apigateway/api/sim-rest-api-lambda-proxy.factory.js +3 -7
- package/dist/service/apigateway/api/sim-rest-api-lambda-proxy.factory.js.map +1 -1
- package/dist/service/apigateway/api/sim-rest-api-proxy-stage.d.ts +22 -0
- package/dist/service/apigateway/api/sim-rest-api-proxy-stage.d.ts.map +1 -0
- package/dist/service/apigateway/api/sim-rest-api-proxy-stage.js +31 -0
- package/dist/service/apigateway/api/sim-rest-api-proxy-stage.js.map +1 -0
- package/dist/service/apigateway/api/stage/settings/sim-rest-api-method-settings.type.d.ts +19 -0
- package/dist/service/apigateway/api/stage/settings/sim-rest-api-method-settings.type.d.ts.map +1 -0
- package/dist/service/apigateway/api/stage/settings/sim-rest-api-method-settings.type.js +2 -0
- package/dist/service/apigateway/api/stage/settings/sim-rest-api-method-settings.type.js.map +1 -0
- package/dist/service/apigateway/api/stage/settings/sim-rest-api-stage-method-settings.d.ts +43 -0
- package/dist/service/apigateway/api/stage/settings/sim-rest-api-stage-method-settings.d.ts.map +1 -0
- package/dist/service/apigateway/api/stage/settings/sim-rest-api-stage-method-settings.js +75 -0
- package/dist/service/apigateway/api/stage/settings/sim-rest-api-stage-method-settings.js.map +1 -0
- package/dist/service/apigateway/api/stage/sim-rest-api-stage.d.ts +19 -0
- package/dist/service/apigateway/api/stage/sim-rest-api-stage.d.ts.map +1 -1
- package/dist/service/apigateway/api/stage/sim-rest-api-stage.js +22 -0
- package/dist/service/apigateway/api/stage/sim-rest-api-stage.js.map +1 -1
- package/dist/service/apigateway/cfn/stage/sim-cfn-rest-api-method-settings-properties.d.ts +33 -0
- package/dist/service/apigateway/cfn/stage/sim-cfn-rest-api-method-settings-properties.d.ts.map +1 -0
- package/dist/service/apigateway/cfn/stage/sim-cfn-rest-api-method-settings-properties.js +69 -0
- package/dist/service/apigateway/cfn/stage/sim-cfn-rest-api-method-settings-properties.js.map +1 -0
- package/dist/service/apigateway/cfn/stage/sim-cfn-rest-api-stage-properties.d.ts +4 -1
- package/dist/service/apigateway/cfn/stage/sim-cfn-rest-api-stage-properties.d.ts.map +1 -1
- package/dist/service/apigateway/cfn/stage/sim-cfn-rest-api-stage-properties.js +13 -4
- package/dist/service/apigateway/cfn/stage/sim-cfn-rest-api-stage-properties.js.map +1 -1
- package/dist/service/apigateway/command/sim-api-gateway-unsimulated-input.d.ts +6 -1
- package/dist/service/apigateway/command/sim-api-gateway-unsimulated-input.d.ts.map +1 -1
- package/dist/service/apigateway/command/sim-api-gateway-unsimulated-input.js +8 -3
- package/dist/service/apigateway/command/sim-api-gateway-unsimulated-input.js.map +1 -1
- package/dist/service/apigateway/command/stage/sim-rest-api-stage-commands.d.ts.map +1 -1
- package/dist/service/apigateway/command/stage/sim-rest-api-stage-commands.js +4 -0
- package/dist/service/apigateway/command/stage/sim-rest-api-stage-commands.js.map +1 -1
- package/dist/service/apigateway/command/stage/sim-rest-api-stage-method-settings-input.d.ts +18 -0
- package/dist/service/apigateway/command/stage/sim-rest-api-stage-method-settings-input.d.ts.map +1 -0
- package/dist/service/apigateway/command/stage/sim-rest-api-stage-method-settings-input.js +42 -0
- package/dist/service/apigateway/command/stage/sim-rest-api-stage-method-settings-input.js.map +1 -0
- package/dist/service/apigateway/command/stage/sim-rest-api-stage-publisher.d.ts +9 -0
- package/dist/service/apigateway/command/stage/sim-rest-api-stage-publisher.d.ts.map +1 -1
- package/dist/service/apigateway/command/stage/sim-rest-api-stage-publisher.js +17 -0
- package/dist/service/apigateway/command/stage/sim-rest-api-stage-publisher.js.map +1 -1
- package/dist/service/apigateway/command/stage/stage.command.d.ts +11 -0
- package/dist/service/apigateway/command/stage/stage.command.d.ts.map +1 -1
- package/dist/service/apigateway/index.d.ts +2 -0
- package/dist/service/apigateway/index.d.ts.map +1 -1
- package/dist/service/apigateway/index.js +1 -0
- package/dist/service/apigateway/index.js.map +1 -1
- package/dist/service/apigateway/serve/sim-api-gateway-controller.d.ts +4 -1
- package/dist/service/apigateway/serve/sim-api-gateway-controller.d.ts.map +1 -1
- package/dist/service/apigateway/serve/sim-api-gateway-controller.js +10 -1
- package/dist/service/apigateway/serve/sim-api-gateway-controller.js.map +1 -1
- package/dist/service/apigateway/serve/sim-api-gateway-error-response.d.ts +8 -0
- package/dist/service/apigateway/serve/sim-api-gateway-error-response.d.ts.map +1 -1
- package/dist/service/apigateway/serve/sim-api-gateway-error-response.js +10 -0
- package/dist/service/apigateway/serve/sim-api-gateway-error-response.js.map +1 -1
- package/dist/service/apigatewayv2/api/sim-http-api-lambda-proxy.factory.d.ts +5 -0
- package/dist/service/apigatewayv2/api/sim-http-api-lambda-proxy.factory.d.ts.map +1 -1
- package/dist/service/apigatewayv2/api/sim-http-api-lambda-proxy.factory.js +4 -0
- package/dist/service/apigatewayv2/api/sim-http-api-lambda-proxy.factory.js.map +1 -1
- package/dist/service/apigatewayv2/api/stage/settings/sim-http-api-route-settings.type.d.ts +24 -0
- package/dist/service/apigatewayv2/api/stage/settings/sim-http-api-route-settings.type.d.ts.map +1 -0
- package/dist/service/apigatewayv2/api/stage/settings/sim-http-api-route-settings.type.js +2 -0
- package/dist/service/apigatewayv2/api/stage/settings/sim-http-api-route-settings.type.js.map +1 -0
- package/dist/service/apigatewayv2/api/stage/settings/sim-http-api-stage-route-settings.d.ts +39 -0
- package/dist/service/apigatewayv2/api/stage/settings/sim-http-api-stage-route-settings.d.ts.map +1 -0
- package/dist/service/apigatewayv2/api/stage/settings/sim-http-api-stage-route-settings.js +74 -0
- package/dist/service/apigatewayv2/api/stage/settings/sim-http-api-stage-route-settings.js.map +1 -0
- package/dist/service/apigatewayv2/api/stage/sim-http-api-stage.d.ts +16 -1
- package/dist/service/apigatewayv2/api/stage/sim-http-api-stage.d.ts.map +1 -1
- package/dist/service/apigatewayv2/api/stage/sim-http-api-stage.js +16 -0
- package/dist/service/apigatewayv2/api/stage/sim-http-api-stage.js.map +1 -1
- package/dist/service/apigatewayv2/cfn/stage/sim-cfn-http-api-route-settings-properties.d.ts +30 -0
- package/dist/service/apigatewayv2/cfn/stage/sim-cfn-http-api-route-settings-properties.d.ts.map +1 -0
- package/dist/service/apigatewayv2/cfn/stage/sim-cfn-http-api-route-settings-properties.js +67 -0
- package/dist/service/apigatewayv2/cfn/stage/sim-cfn-http-api-route-settings-properties.js.map +1 -0
- package/dist/service/apigatewayv2/cfn/stage/sim-cfn-http-api-stage-properties.d.ts +3 -1
- package/dist/service/apigatewayv2/cfn/stage/sim-cfn-http-api-stage-properties.d.ts.map +1 -1
- package/dist/service/apigatewayv2/cfn/stage/sim-cfn-http-api-stage-properties.js +16 -5
- package/dist/service/apigatewayv2/cfn/stage/sim-cfn-http-api-stage-properties.js.map +1 -1
- package/dist/service/apigatewayv2/command/sim-api-gateway-v2-unsimulated-input.d.ts +6 -1
- package/dist/service/apigatewayv2/command/sim-api-gateway-v2-unsimulated-input.d.ts.map +1 -1
- package/dist/service/apigatewayv2/command/sim-api-gateway-v2-unsimulated-input.js +8 -3
- package/dist/service/apigatewayv2/command/sim-api-gateway-v2-unsimulated-input.js.map +1 -1
- package/dist/service/apigatewayv2/command/stage/sim-http-api-stage-commands.d.ts.map +1 -1
- package/dist/service/apigatewayv2/command/stage/sim-http-api-stage-commands.js +8 -0
- package/dist/service/apigatewayv2/command/stage/sim-http-api-stage-commands.js.map +1 -1
- package/dist/service/apigatewayv2/command/stage/sim-http-api-stage-route-settings-input.d.ts +18 -0
- package/dist/service/apigatewayv2/command/stage/sim-http-api-stage-route-settings-input.d.ts.map +1 -0
- package/dist/service/apigatewayv2/command/stage/sim-http-api-stage-route-settings-input.js +32 -0
- package/dist/service/apigatewayv2/command/stage/sim-http-api-stage-route-settings-input.js.map +1 -0
- package/dist/service/apigatewayv2/command/stage/stage.command.d.ts +3 -0
- package/dist/service/apigatewayv2/command/stage/stage.command.d.ts.map +1 -1
- package/dist/service/apigatewayv2/index.d.ts +2 -0
- package/dist/service/apigatewayv2/index.d.ts.map +1 -1
- package/dist/service/apigatewayv2/index.js +1 -0
- package/dist/service/apigatewayv2/index.js.map +1 -1
- package/dist/service/apigatewayv2/serve/sim-api-gateway-v2-controller.d.ts +4 -1
- package/dist/service/apigatewayv2/serve/sim-api-gateway-v2-controller.d.ts.map +1 -1
- package/dist/service/apigatewayv2/serve/sim-api-gateway-v2-controller.js +11 -2
- package/dist/service/apigatewayv2/serve/sim-api-gateway-v2-controller.js.map +1 -1
- package/dist/service/apigatewayv2/serve/sim-api-gateway-v2-error-response.d.ts +8 -0
- package/dist/service/apigatewayv2/serve/sim-api-gateway-v2-error-response.d.ts.map +1 -1
- package/dist/service/apigatewayv2/serve/sim-api-gateway-v2-error-response.js +10 -0
- package/dist/service/apigatewayv2/serve/sim-api-gateway-v2-error-response.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/aws/factory/sim-aws-account-service-cache.d.ts.map +1 -1
- package/dist/service/aws/factory/sim-aws-account-service-cache.js +5 -0
- package/dist/service/aws/factory/sim-aws-account-service-cache.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/cloudformation/template/node/fn/join/sim-cfn-fn-join.d.ts +7 -0
- package/dist/service/cloudformation/template/node/fn/join/sim-cfn-fn-join.d.ts.map +1 -1
- package/dist/service/cloudformation/template/node/fn/join/sim-cfn-fn-join.js +9 -1
- package/dist/service/cloudformation/template/node/fn/join/sim-cfn-fn-join.js.map +1 -1
- package/dist/service/cloudfront/behaviour/sim-cloud-front-behavior.d.ts +5 -0
- package/dist/service/cloudfront/behaviour/sim-cloud-front-behavior.d.ts.map +1 -1
- package/dist/service/cloudfront/behaviour/sim-cloud-front-behavior.js.map +1 -1
- package/dist/service/cloudfront/cff/sim-cff-arn.d.ts +13 -0
- package/dist/service/cloudfront/cff/sim-cff-arn.d.ts.map +1 -0
- package/dist/service/cloudfront/cff/sim-cff-arn.js +18 -0
- package/dist/service/cloudfront/cff/sim-cff-arn.js.map +1 -0
- 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/command/create-distribution/create-distribution.command.d.ts +16 -0
- package/dist/service/cloudfront/command/create-distribution/create-distribution.command.d.ts.map +1 -1
- package/dist/service/cloudfront/command/create-distribution/create-distribution.handler.d.ts +3 -0
- package/dist/service/cloudfront/command/create-distribution/create-distribution.handler.d.ts.map +1 -1
- package/dist/service/cloudfront/command/create-distribution/create-distribution.handler.js +11 -4
- package/dist/service/cloudfront/command/create-distribution/create-distribution.handler.js.map +1 -1
- package/dist/service/cloudfront/command/create-distribution/sim-cf-distro-config-normalizer.d.ts.map +1 -1
- package/dist/service/cloudfront/command/create-distribution/sim-cf-distro-config-normalizer.js +1 -0
- package/dist/service/cloudfront/command/create-distribution/sim-cf-distro-config-normalizer.js.map +1 -1
- package/dist/service/cloudfront/command/update-distribution/update-distribution.handler.d.ts +3 -0
- package/dist/service/cloudfront/command/update-distribution/update-distribution.handler.d.ts.map +1 -1
- package/dist/service/cloudfront/command/update-distribution/update-distribution.handler.js +9 -2
- package/dist/service/cloudfront/command/update-distribution/update-distribution.handler.js.map +1 -1
- package/dist/service/cloudfront/controller/dependency/sim-cf-controller-dependency.d.ts +7 -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 +9 -1
- 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 +40 -0
- package/dist/service/cloudfront/controller/edge/sim-lambda-edge-applicator.d.ts.map +1 -0
- package/dist/service/cloudfront/controller/edge/sim-lambda-edge-applicator.js +52 -0
- package/dist/service/cloudfront/controller/edge/sim-lambda-edge-applicator.js.map +1 -0
- package/dist/service/cloudfront/controller/edge/sim-lambda-edge-distribution.d.ts +11 -0
- package/dist/service/cloudfront/controller/edge/sim-lambda-edge-distribution.d.ts.map +1 -0
- package/dist/service/cloudfront/controller/edge/sim-lambda-edge-distribution.js +14 -0
- package/dist/service/cloudfront/controller/edge/sim-lambda-edge-distribution.js.map +1 -0
- 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 +9 -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 +36 -9
- package/dist/service/cloudfront/controller/sim-cloudfront-request-pipeline.js.map +1 -1
- package/dist/service/cloudfront/distribution/configurator/sim-cf-behavior-properties.d.ts.map +1 -1
- package/dist/service/cloudfront/distribution/configurator/sim-cf-behavior-properties.js +2 -0
- package/dist/service/cloudfront/distribution/configurator/sim-cf-behavior-properties.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/distribution/sim-cf-distribution-configuration-state.d.ts +5 -2
- package/dist/service/cloudfront/distribution/sim-cf-distribution-configuration-state.d.ts.map +1 -1
- package/dist/service/cloudfront/edge/adapter/sim-lambda-edge-body.d.ts +24 -0
- package/dist/service/cloudfront/edge/adapter/sim-lambda-edge-body.d.ts.map +1 -0
- package/dist/service/cloudfront/edge/adapter/sim-lambda-edge-body.js +51 -0
- package/dist/service/cloudfront/edge/adapter/sim-lambda-edge-body.js.map +1 -0
- package/dist/service/cloudfront/edge/adapter/sim-lambda-edge-event-adapter.d.ts +34 -0
- package/dist/service/cloudfront/edge/adapter/sim-lambda-edge-event-adapter.d.ts.map +1 -0
- package/dist/service/cloudfront/edge/adapter/sim-lambda-edge-event-adapter.js +70 -0
- package/dist/service/cloudfront/edge/adapter/sim-lambda-edge-event-adapter.js.map +1 -0
- 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-headers.d.ts +20 -0
- package/dist/service/cloudfront/edge/adapter/sim-lambda-edge-headers.d.ts.map +1 -0
- package/dist/service/cloudfront/edge/adapter/sim-lambda-edge-headers.js +55 -0
- package/dist/service/cloudfront/edge/adapter/sim-lambda-edge-headers.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 +39 -0
- package/dist/service/cloudfront/edge/adapter/sim-lambda-edge-request-adapter.d.ts.map +1 -0
- package/dist/service/cloudfront/edge/adapter/sim-lambda-edge-request-adapter.js +110 -0
- package/dist/service/cloudfront/edge/adapter/sim-lambda-edge-request-adapter.js.map +1 -0
- package/dist/service/cloudfront/edge/adapter/sim-lambda-edge-response-adapter.d.ts +26 -0
- package/dist/service/cloudfront/edge/adapter/sim-lambda-edge-response-adapter.d.ts.map +1 -0
- package/dist/service/cloudfront/edge/adapter/sim-lambda-edge-response-adapter.js +47 -0
- package/dist/service/cloudfront/edge/adapter/sim-lambda-edge-response-adapter.js.map +1 -0
- package/dist/service/cloudfront/edge/sim-aws-cf-edge-functions.d.ts +44 -0
- package/dist/service/cloudfront/edge/sim-aws-cf-edge-functions.d.ts.map +1 -0
- package/dist/service/cloudfront/edge/sim-aws-cf-edge-functions.js +87 -0
- package/dist/service/cloudfront/edge/sim-aws-cf-edge-functions.js.map +1 -0
- package/dist/service/cloudfront/edge/sim-cf-edge-association-auth-z.d.ts +7 -0
- package/dist/service/cloudfront/edge/sim-cf-edge-association-auth-z.d.ts.map +1 -0
- package/dist/service/cloudfront/edge/sim-cf-edge-association-auth-z.js +27 -0
- package/dist/service/cloudfront/edge/sim-cf-edge-association-auth-z.js.map +1 -0
- package/dist/service/cloudfront/edge/sim-cf-edge-association-checks.d.ts +61 -0
- package/dist/service/cloudfront/edge/sim-cf-edge-association-checks.d.ts.map +1 -0
- package/dist/service/cloudfront/edge/sim-cf-edge-association-checks.js +106 -0
- package/dist/service/cloudfront/edge/sim-cf-edge-association-checks.js.map +1 -0
- package/dist/service/cloudfront/edge/sim-cf-edge-association-validator.d.ts +36 -0
- package/dist/service/cloudfront/edge/sim-cf-edge-association-validator.d.ts.map +1 -0
- package/dist/service/cloudfront/edge/sim-cf-edge-association-validator.js +80 -0
- package/dist/service/cloudfront/edge/sim-cf-edge-association-validator.js.map +1 -0
- package/dist/service/cloudfront/edge/sim-cf-edge-association.d.ts +26 -0
- package/dist/service/cloudfront/edge/sim-cf-edge-association.d.ts.map +1 -0
- package/dist/service/cloudfront/edge/sim-cf-edge-association.js +2 -0
- package/dist/service/cloudfront/edge/sim-cf-edge-association.js.map +1 -0
- package/dist/service/cloudfront/edge/sim-cf-edge-associations-configure.d.ts +14 -0
- package/dist/service/cloudfront/edge/sim-cf-edge-associations-configure.d.ts.map +1 -0
- package/dist/service/cloudfront/edge/sim-cf-edge-associations-configure.js +52 -0
- package/dist/service/cloudfront/edge/sim-cf-edge-associations-configure.js.map +1 -0
- package/dist/service/cloudfront/edge/sim-cf-edge-function-arn.d.ts +28 -0
- package/dist/service/cloudfront/edge/sim-cf-edge-function-arn.d.ts.map +1 -0
- package/dist/service/cloudfront/edge/sim-cf-edge-function-arn.js +71 -0
- package/dist/service/cloudfront/edge/sim-cf-edge-function-arn.js.map +1 -0
- 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/edge/sim-cf-edge-functions.d.ts +25 -0
- package/dist/service/cloudfront/edge/sim-cf-edge-functions.d.ts.map +1 -0
- package/dist/service/cloudfront/edge/sim-cf-edge-functions.js +2 -0
- package/dist/service/cloudfront/edge/sim-cf-edge-functions.js.map +1 -0
- package/dist/service/cloudfront/error/sim-cloudfront.error.d.ts +13 -0
- package/dist/service/cloudfront/error/sim-cloudfront.error.d.ts.map +1 -1
- package/dist/service/cloudfront/error/sim-cloudfront.error.js +15 -0
- package/dist/service/cloudfront/error/sim-cloudfront.error.js.map +1 -1
- package/dist/service/cloudfront/index.d.ts +1 -0
- package/dist/service/cloudfront/index.d.ts.map +1 -1
- 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-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/sim-cloudfront-commands.d.ts +10 -0
- package/dist/service/cloudfront/sim-cloudfront-commands.d.ts.map +1 -1
- package/dist/service/cloudfront/sim-cloudfront-commands.js +10 -1
- package/dist/service/cloudfront/sim-cloudfront-commands.js.map +1 -1
- package/dist/service/cloudfront/sim-cloudfront.d.ts.map +1 -1
- package/dist/service/cloudfront/sim-cloudfront.js +3 -8
- package/dist/service/cloudfront/sim-cloudfront.js.map +1 -1
- package/dist/service/cloudfront/typings/lambda-at-edge.namespace.d.ts +159 -0
- package/dist/service/cloudfront/typings/lambda-at-edge.namespace.d.ts.map +1 -0
- package/dist/service/cloudfront/typings/lambda-at-edge.namespace.js +2 -0
- package/dist/service/cloudfront/typings/lambda-at-edge.namespace.js.map +1 -0
- package/dist/service/lambda/function/environment/sim-lambda-environment.d.ts +22 -20
- package/dist/service/lambda/function/environment/sim-lambda-environment.d.ts.map +1 -1
- package/dist/service/lambda/function/environment/sim-lambda-environment.js +27 -29
- package/dist/service/lambda/function/environment/sim-lambda-environment.js.map +1 -1
- package/dist/service/lambda/function/environment/sim-lambda-host-backed-variables.d.ts +28 -0
- package/dist/service/lambda/function/environment/sim-lambda-host-backed-variables.d.ts.map +1 -0
- package/dist/service/lambda/function/environment/sim-lambda-host-backed-variables.js +49 -0
- package/dist/service/lambda/function/environment/sim-lambda-host-backed-variables.js.map +1 -0
- package/dist/service/lambda/function/environment/sim-lambda-runtime-variables.d.ts +18 -0
- package/dist/service/lambda/function/environment/sim-lambda-runtime-variables.d.ts.map +1 -0
- package/dist/service/lambda/function/environment/sim-lambda-runtime-variables.js +23 -0
- package/dist/service/lambda/function/environment/sim-lambda-runtime-variables.js.map +1 -0
- 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/dist/util/process/sim-process-environment.d.ts +9 -0
- package/dist/util/process/sim-process-environment.d.ts.map +1 -1
- package/dist/util/process/sim-process-environment.js +17 -0
- package/dist/util/process/sim-process-environment.js.map +1 -1
- package/dist/util/throttle/sim-token-bucket.d.ts +32 -0
- package/dist/util/throttle/sim-token-bucket.d.ts.map +1 -0
- package/dist/util/throttle/sim-token-bucket.js +53 -0
- package/dist/util/throttle/sim-token-bucket.js.map +1 -0
- package/package.json +3 -2
- package/dist/service/cloudformation/resource/cfn/stepfunctions/sim-cfn-state-machine-creator.d.ts.map +0 -1
- package/dist/service/cloudformation/resource/cfn/stepfunctions/sim-cfn-state-machine-creator.js.map +0 -1
- package/dist/service/cloudformation/resource/cfn/stepfunctions/sim-cfn-state-machine-definition.d.ts.map +0 -1
- package/dist/service/cloudformation/resource/cfn/stepfunctions/sim-cfn-state-machine-definition.js.map +0 -1
- package/dist/service/cloudformation/resource/cfn/stepfunctions/sim-cfn-state-machine-name.d.ts.map +0 -1
- package/dist/service/cloudformation/resource/cfn/stepfunctions/sim-cfn-state-machine-name.js.map +0 -1
- package/dist/service/cloudformation/resource/cfn/stepfunctions/sim-cfn-state-machine-properties.d.ts.map +0 -1
- package/dist/service/cloudformation/resource/cfn/stepfunctions/sim-cfn-state-machine-properties.js.map +0 -1
- package/dist/service/cloudformation/resource/cfn/stepfunctions/sim-cfn-state-machine-property-names.d.ts.map +0 -1
- package/dist/service/cloudformation/resource/cfn/stepfunctions/sim-cfn-state-machine-property-names.js.map +0 -1
- package/dist/service/cloudformation/resource/cfn/stepfunctions/sim-cfn-state-machine-substitutions.d.ts.map +0 -1
- package/dist/service/cloudformation/resource/cfn/stepfunctions/sim-cfn-state-machine-substitutions.js.map +0 -1
- package/dist/service/cloudformation/resource/cfn/stepfunctions/sim-cfn-step-functions-resource-deleter.d.ts.map +0 -1
- package/dist/service/cloudformation/resource/cfn/stepfunctions/sim-cfn-step-functions-resource-deleter.js.map +0 -1
- package/dist/service/cloudformation/resource/cfn/stepfunctions/sim-cfn-step-functions-resource-error.d.ts.map +0 -1
- package/dist/service/cloudformation/resource/cfn/stepfunctions/sim-cfn-step-functions-resource-error.js.map +0 -1
- package/dist/service/cloudformation/resource/cfn/stepfunctions/sim-cfn-step-functions-resource-types.d.ts.map +0 -1
- package/dist/service/cloudformation/resource/cfn/stepfunctions/sim-cfn-step-functions-resource-types.js.map +0 -1
- package/dist/service/cloudformation/resource/cfn/stepfunctions/sim-step-functions-cfn-resource-factory.d.ts.map +0 -1
- package/dist/service/cloudformation/resource/cfn/stepfunctions/sim-step-functions-cfn-resource-factory.js.map +0 -1
- /package/dist/service/{cloudformation/resource/cfn/stepfunctions → stepfunctions/cfn}/sim-cfn-step-functions-resource-error.d.ts +0 -0
- /package/dist/service/{cloudformation/resource/cfn/stepfunctions → stepfunctions/cfn}/sim-cfn-step-functions-resource-types.d.ts +0 -0
- /package/dist/service/{cloudformation/resource/cfn/stepfunctions → stepfunctions/cfn}/sim-cfn-step-functions-resource-types.js +0 -0
- /package/dist/service/{cloudformation/resource/cfn/stepfunctions → stepfunctions/cfn/state-machine}/sim-cfn-state-machine-name.d.ts +0 -0
- /package/dist/service/{cloudformation/resource/cfn/stepfunctions → stepfunctions/cfn/state-machine}/sim-cfn-state-machine-property-names.d.ts +0 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sim-lambda-edge-origin-applicator.js","sourceRoot":"","sources":["../../../../../src/service/cloudfront/controller/edge/sim-lambda-edge-origin-applicator.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,+BAA+B,EAAE,MAAM,4DAA4D,CAAC;AAG7G,OAAO,EAAE,2BAA2B,EAAE,MAAM,mCAAmC,CAAC;AAChF,OAAO,EAAE,eAAe,EAAE,MAAM,0BAA0B,CAAC;AAW3D;;;;;;;;GAQG;AACH,MAAM,OAAO,6BAA6B;IACvB,YAAY,GAAG,IAAI,+BAA+B,EAAE,CAAC;IACrD,aAAa,CAAiC;IAE/D,YAAY,UAAU,GAA4C,EAAE;QAClE,IAAI,CAAC,aAAa,GAAG,UAAU,CAAC,aAAa,CAAC;IAChD,CAAC;IAED;;;;;OAKG;IACH,KAAK,CAAC,kBAAkB,CACtB,KAA8B,EAC9B,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,KAAK,CAAC;QACf,CAAC;QAED,OAAO,MAAM,eAAe,CAAC,WAAW,EAAE,KAAK,IAAI,EAAE;YACnD,MAAM,UAAU,GAAG,KAAK,CAAC,MAAM,CAAC,YAAY,EAAE,CAAC;YAC/C,MAAM,KAAK,GAAG,MAAM,IAAI,CAAC,YAAY,CAAC,oBAAoB,CACxD,KAAK,CAAC,OAAO,EACb,WAAW,CAAC,WAAW,EACvB,2BAA2B,CAAC,YAAY,CAAC,EACzC,UAAU,CACX,CAAC;YAEF,MAAM,MAAM,GAAG,IAAI,CAAC,YAAY,CAAC,uBAAuB,CACtD,CAAC,MAAM,aAAa,CAAC,MAAM,CACzB,WAAW,CAAC,WAAW,EACvB,KAAK,CACN,CAA+B,EAChC,KAAK,CAAC,OAAO,EACb,UAAU,CACX,CAAC;YAEF,IAAI,MAAM,YAAY,QAAQ,EAAE,CAAC;gBAC/B,OAAO,MAAM,CAAC;YAChB,CAAC;YAED,OAAO;gBACL,OAAO,EAAE,MAAM,CAAC,OAAO;gBACvB,MAAM,EAAE,KAAK,CAAC,MAAM,CAAC,cAAc,CAAC,MAAM,CAAC,MAAM,CAAC;aACnD,CAAC;QACJ,CAAC,CAAC,CAAC;IACL,CAAC;IAED;;;;;;OAMG;IACH,KAAK,CAAC,mBAAmB,CACvB,KAA8B,EAC9B,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,qBAAqB,CACzD,KAAK,CAAC,OAAO,EACb,QAAQ,EACR,2BAA2B,CAAC,YAAY,CAAC,EACzC,KAAK,CAAC,MAAM,CAAC,YAAY,EAAE,CAC5B,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"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import type { SimCfEdgeAssociation } from "../../edge/sim-cf-edge-association.js";
|
|
2
|
+
/**
|
|
3
|
+
* Run one edge function, answering with the 502 a failed one gets.
|
|
4
|
+
*
|
|
5
|
+
* A handler that threw, a handler that answered with something the adapter
|
|
6
|
+
* cannot read as a request or a response, and a request whose body could not
|
|
7
|
+
* be read into the event, are all the same thing to CloudFront. Each is a
|
|
8
|
+
* failure at the edge the viewer sees as a 502, which is why building the
|
|
9
|
+
* event happens inside the callback rather than before it.
|
|
10
|
+
*
|
|
11
|
+
* An Origin rewrite this simulation cannot carry out is a 502 as well, and
|
|
12
|
+
* that one says what it was, because nothing about it would have failed on
|
|
13
|
+
* AWS and the reason is not in the function's own output.
|
|
14
|
+
*/
|
|
15
|
+
export declare function runEdgeFunction<TResult>(association: SimCfEdgeAssociation, run: () => Promise<TResult>): Promise<TResult | Response>;
|
|
16
|
+
//# sourceMappingURL=sim-lambda-edge-run.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sim-lambda-edge-run.d.ts","sourceRoot":"","sources":["../../../../../src/service/cloudfront/controller/edge/sim-lambda-edge-run.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,uCAAuC,CAAC;AAGlF;;;;;;;;;;;;GAYG;AACH,wBAAsB,eAAe,CAAC,OAAO,EAC3C,WAAW,EAAE,oBAAoB,EACjC,GAAG,EAAE,MAAM,OAAO,CAAC,OAAO,CAAC,GAC1B,OAAO,CAAC,OAAO,GAAG,QAAQ,CAAC,CAS7B"}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { SimCfEdgeOriginNotSimulated } from "../../origin/sim-cf-edge-origin-not-simulated.error.js";
|
|
2
|
+
/**
|
|
3
|
+
* Run one edge function, answering with the 502 a failed one gets.
|
|
4
|
+
*
|
|
5
|
+
* A handler that threw, a handler that answered with something the adapter
|
|
6
|
+
* cannot read as a request or a response, and a request whose body could not
|
|
7
|
+
* be read into the event, are all the same thing to CloudFront. Each is a
|
|
8
|
+
* failure at the edge the viewer sees as a 502, which is why building the
|
|
9
|
+
* event happens inside the callback rather than before it.
|
|
10
|
+
*
|
|
11
|
+
* An Origin rewrite this simulation cannot carry out is a 502 as well, and
|
|
12
|
+
* that one says what it was, because nothing about it would have failed on
|
|
13
|
+
* AWS and the reason is not in the function's own output.
|
|
14
|
+
*/
|
|
15
|
+
export async function runEdgeFunction(association, run) {
|
|
16
|
+
try {
|
|
17
|
+
return await run();
|
|
18
|
+
}
|
|
19
|
+
catch (error) {
|
|
20
|
+
return new Response(`The Lambda@Edge function ${association.functionArn} failed${edgeFailureDetail(error)}`, { status: 502 });
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
/**
|
|
24
|
+
* What the 502 says about the failure, where this simulation is the reason
|
|
25
|
+
* for it rather than the handler.
|
|
26
|
+
*/
|
|
27
|
+
function edgeFailureDetail(error) {
|
|
28
|
+
if (error instanceof SimCfEdgeOriginNotSimulated) {
|
|
29
|
+
return `: ${error.message}`;
|
|
30
|
+
}
|
|
31
|
+
return "";
|
|
32
|
+
}
|
|
33
|
+
//# sourceMappingURL=sim-lambda-edge-run.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sim-lambda-edge-run.js","sourceRoot":"","sources":["../../../../../src/service/cloudfront/controller/edge/sim-lambda-edge-run.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,2BAA2B,EAAE,MAAM,wDAAwD,CAAC;AAErG;;;;;;;;;;;;GAYG;AACH,MAAM,CAAC,KAAK,UAAU,eAAe,CACnC,WAAiC,EACjC,GAA2B;IAE3B,IAAI,CAAC;QACH,OAAO,MAAM,GAAG,EAAE,CAAC;IACrB,CAAC;IAAC,OAAO,KAAK,EAAE,CAAC;QACf,OAAO,IAAI,QAAQ,CACjB,4BAA4B,WAAW,CAAC,WAAW,UAAU,iBAAiB,CAAC,KAAK,CAAC,EAAE,EACvF,EAAE,MAAM,EAAE,GAAG,EAAE,CAChB,CAAC;IACJ,CAAC;AACH,CAAC;AAED;;;GAGG;AACH,SAAS,iBAAiB,CAAC,KAAc;IACvC,IAAI,KAAK,YAAY,2BAA2B,EAAE,CAAC;QACjD,OAAO,KAAK,KAAK,CAAC,OAAO,EAAE,CAAC;IAC9B,CAAC;IAED,OAAO,EAAE,CAAC;AACZ,CAAC"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import type { SimCloudFrontOrigin } from "../../origin/sim-cloudfront-origin.js";
|
|
2
|
+
/**
|
|
3
|
+
* A request and the Origin it is about to be fetched from.
|
|
4
|
+
*
|
|
5
|
+
* The two travel together between the origin-request event and the fetch,
|
|
6
|
+
* because a handler can rewrite either of them. The request has its URI and its
|
|
7
|
+
* headers, and the Origin has its domain name, its path and its custom
|
|
8
|
+
* headers.
|
|
9
|
+
*/
|
|
10
|
+
export interface SimCfOriginBoundRequest {
|
|
11
|
+
readonly request: Request;
|
|
12
|
+
readonly origin: SimCloudFrontOrigin;
|
|
13
|
+
}
|
|
14
|
+
//# sourceMappingURL=sim-cf-origin-bound-request.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sim-cf-origin-bound-request.d.ts","sourceRoot":"","sources":["../../../../../src/service/cloudfront/controller/origin/sim-cf-origin-bound-request.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,uCAAuC,CAAC;AAEjF;;;;;;;GAOG;AACH,MAAM,WAAW,uBAAuB;IACtC,QAAQ,CAAC,OAAO,EAAE,OAAO,CAAC;IAC1B,QAAQ,CAAC,MAAM,EAAE,mBAAmB,CAAC;CACtC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sim-cf-origin-bound-request.js","sourceRoot":"","sources":["../../../../../src/service/cloudfront/controller/origin/sim-cf-origin-bound-request.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import type { SimCloudFrontBehavior } from "../../behaviour/sim-cloud-front-behavior.js";
|
|
2
|
+
import type { SimCloudFrontDistribution } from "../../distribution/sim-cloudfront-distribution.js";
|
|
3
|
+
import type { SimLambdaEdgeOriginApplicator } from "../edge/sim-lambda-edge-origin-applicator.js";
|
|
4
|
+
import type { SimCloudFrontOriginFetcher } from "./sim-cloudfront-origin-fetcher.js";
|
|
5
|
+
/**
|
|
6
|
+
* What the Origin stage produced for the rest of the pipeline.
|
|
7
|
+
*/
|
|
8
|
+
export interface SimCfOriginStageResult {
|
|
9
|
+
/**
|
|
10
|
+
* The response carrying on towards the viewer.
|
|
11
|
+
*/
|
|
12
|
+
readonly response: Response;
|
|
13
|
+
/**
|
|
14
|
+
* The status the Origin answered with, before an origin-response function
|
|
15
|
+
* could replace it.
|
|
16
|
+
*
|
|
17
|
+
* The pipeline reads this to decide whether a viewer-response function runs,
|
|
18
|
+
* so a 500 an origin-response function turned into a 200 still counts as the
|
|
19
|
+
* Origin error it was. A response an origin-request function generated has
|
|
20
|
+
* no Origin status behind it, and its own status stands in.
|
|
21
|
+
*/
|
|
22
|
+
readonly originStatus: number;
|
|
23
|
+
}
|
|
24
|
+
/**
|
|
25
|
+
* Fetches from the Behavior's Origin, running the Lambda@Edge functions on
|
|
26
|
+
* either side of the fetch.
|
|
27
|
+
*
|
|
28
|
+
* Real CloudFront runs the origin events on a cache miss only. Nothing here
|
|
29
|
+
* caches, so every request is a miss and both events run every time.
|
|
30
|
+
*/
|
|
31
|
+
export declare class SimCfOriginStage {
|
|
32
|
+
private readonly originFetcher;
|
|
33
|
+
private readonly edgeOriginApplicator;
|
|
34
|
+
constructor(originFetcher: SimCloudFrontOriginFetcher, edgeOriginApplicator: SimLambdaEdgeOriginApplicator);
|
|
35
|
+
/**
|
|
36
|
+
* Take one request through the origin-request event, the fetch and the
|
|
37
|
+
* origin-response event.
|
|
38
|
+
*/
|
|
39
|
+
fetch(request: Request, distribution: SimCloudFrontDistribution, behaviour: SimCloudFrontBehavior): Promise<SimCfOriginStageResult>;
|
|
40
|
+
/**
|
|
41
|
+
* A response nothing ran after, whose own status is the Origin's.
|
|
42
|
+
*/
|
|
43
|
+
private fetched;
|
|
44
|
+
}
|
|
45
|
+
//# sourceMappingURL=sim-cf-origin-stage.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sim-cf-origin-stage.d.ts","sourceRoot":"","sources":["../../../../../src/service/cloudfront/controller/origin/sim-cf-origin-stage.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,6CAA6C,CAAC;AACzF,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,mDAAmD,CAAC;AACnG,OAAO,KAAK,EAAE,6BAA6B,EAAE,MAAM,8CAA8C,CAAC;AAClG,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,oCAAoC,CAAC;AAErF;;GAEG;AACH,MAAM,WAAW,sBAAsB;IACrC;;OAEG;IACH,QAAQ,CAAC,QAAQ,EAAE,QAAQ,CAAC;IAE5B;;;;;;;;OAQG;IACH,QAAQ,CAAC,YAAY,EAAE,MAAM,CAAC;CAC/B;AAED;;;;;;GAMG;AACH,qBAAa,gBAAgB;IAEzB,OAAO,CAAC,QAAQ,CAAC,aAAa;IAC9B,OAAO,CAAC,QAAQ,CAAC,oBAAoB;IAFvC,YACmB,aAAa,EAAE,0BAA0B,EACzC,oBAAoB,EAAE,6BAA6B,EAClE;IAEJ;;;OAGG;IACG,KAAK,CACT,OAAO,EAAE,OAAO,EAChB,YAAY,EAAE,yBAAyB,EACvC,SAAS,EAAE,qBAAqB,GAC/B,OAAO,CAAC,sBAAsB,CAAC,CAyCjC;IAED;;OAEG;IACH,OAAO,CAAC,OAAO;CAGhB"}
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Fetches from the Behavior's Origin, running the Lambda@Edge functions on
|
|
3
|
+
* either side of the fetch.
|
|
4
|
+
*
|
|
5
|
+
* Real CloudFront runs the origin events on a cache miss only. Nothing here
|
|
6
|
+
* caches, so every request is a miss and both events run every time.
|
|
7
|
+
*/
|
|
8
|
+
export class SimCfOriginStage {
|
|
9
|
+
originFetcher;
|
|
10
|
+
edgeOriginApplicator;
|
|
11
|
+
constructor(originFetcher, edgeOriginApplicator) {
|
|
12
|
+
this.originFetcher = originFetcher;
|
|
13
|
+
this.edgeOriginApplicator = edgeOriginApplicator;
|
|
14
|
+
}
|
|
15
|
+
/**
|
|
16
|
+
* Take one request through the origin-request event, the fetch and the
|
|
17
|
+
* origin-response event.
|
|
18
|
+
*/
|
|
19
|
+
async fetch(request, distribution, behaviour) {
|
|
20
|
+
const origin = distribution.getOrigin(behaviour.targetOriginName);
|
|
21
|
+
// A Behavior naming an Origin the Distribution does not hold has nothing
|
|
22
|
+
// to tell an origin-request function about, and the fetcher answers with
|
|
23
|
+
// the same misconfiguration response it always has.
|
|
24
|
+
if (origin === undefined) {
|
|
25
|
+
return this.fetched(await this.originFetcher.fetch(request, distribution, behaviour));
|
|
26
|
+
}
|
|
27
|
+
const bound = await this.edgeOriginApplicator.applyOriginRequest({ request, origin }, distribution, behaviour);
|
|
28
|
+
// A response the origin-request function generated answers the viewer
|
|
29
|
+
// without the Origin being read, and the origin-response function has no
|
|
30
|
+
// Origin response to run on.
|
|
31
|
+
if (bound instanceof Response) {
|
|
32
|
+
return this.fetched(bound);
|
|
33
|
+
}
|
|
34
|
+
const response = await this.originFetcher.fetch(bound.request, distribution, behaviour, bound.origin);
|
|
35
|
+
return {
|
|
36
|
+
response: await this.edgeOriginApplicator.applyOriginResponse(bound, response, distribution, behaviour),
|
|
37
|
+
originStatus: response.status,
|
|
38
|
+
};
|
|
39
|
+
}
|
|
40
|
+
/**
|
|
41
|
+
* A response nothing ran after, whose own status is the Origin's.
|
|
42
|
+
*/
|
|
43
|
+
fetched(response) {
|
|
44
|
+
return { response, originStatus: response.status };
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
//# sourceMappingURL=sim-cf-origin-stage.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sim-cf-origin-stage.js","sourceRoot":"","sources":["../../../../../src/service/cloudfront/controller/origin/sim-cf-origin-stage.ts"],"names":[],"mappings":"AA0BA;;;;;;GAMG;AACH,MAAM,OAAO,gBAAgB;IAER,aAAa;IACb,oBAAoB;IAFvC,YACmB,aAAyC,EACzC,oBAAmD;6BADnD,aAAa;oCACb,oBAAoB;IACpC,CAAC;IAEJ;;;OAGG;IACH,KAAK,CAAC,KAAK,CACT,OAAgB,EAChB,YAAuC,EACvC,SAAgC;QAEhC,MAAM,MAAM,GAAG,YAAY,CAAC,SAAS,CAAC,SAAS,CAAC,gBAAgB,CAAC,CAAC;QAElE,yEAAyE;QACzE,yEAAyE;QACzE,oDAAoD;QACpD,IAAI,MAAM,KAAK,SAAS,EAAE,CAAC;YACzB,OAAO,IAAI,CAAC,OAAO,CACjB,MAAM,IAAI,CAAC,aAAa,CAAC,KAAK,CAAC,OAAO,EAAE,YAAY,EAAE,SAAS,CAAC,CACjE,CAAC;QACJ,CAAC;QAED,MAAM,KAAK,GAAG,MAAM,IAAI,CAAC,oBAAoB,CAAC,kBAAkB,CAC9D,EAAE,OAAO,EAAE,MAAM,EAAE,EACnB,YAAY,EACZ,SAAS,CACV,CAAC;QAEF,sEAAsE;QACtE,yEAAyE;QACzE,6BAA6B;QAC7B,IAAI,KAAK,YAAY,QAAQ,EAAE,CAAC;YAC9B,OAAO,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC;QAC7B,CAAC;QAED,MAAM,QAAQ,GAAG,MAAM,IAAI,CAAC,aAAa,CAAC,KAAK,CAC7C,KAAK,CAAC,OAAO,EACb,YAAY,EACZ,SAAS,EACT,KAAK,CAAC,MAAM,CACb,CAAC;QAEF,OAAO;YACL,QAAQ,EAAE,MAAM,IAAI,CAAC,oBAAoB,CAAC,mBAAmB,CAC3D,KAAK,EACL,QAAQ,EACR,YAAY,EACZ,SAAS,CACV;YACD,YAAY,EAAE,QAAQ,CAAC,MAAM;SAC9B,CAAC;IACJ,CAAC;IAED;;OAEG;IACK,OAAO,CAAC,QAAkB;QAChC,OAAO,EAAE,QAAQ,EAAE,YAAY,EAAE,QAAQ,CAAC,MAAM,EAAE,CAAC;IACrD,CAAC;CACF"}
|
|
@@ -1,12 +1,17 @@
|
|
|
1
1
|
import type { SimCloudFrontBehavior } from "../../behaviour/sim-cloud-front-behavior.js";
|
|
2
2
|
import type { SimCloudFrontDistribution } from "../../distribution/sim-cloudfront-distribution.js";
|
|
3
|
+
import type { SimCloudFrontOrigin } from "../../origin/sim-cloudfront-origin.js";
|
|
3
4
|
/**
|
|
4
5
|
* Fetches a request from the Behavior's configured CloudFront Origin.
|
|
5
6
|
*/
|
|
6
7
|
export declare class SimCloudFrontOriginFetcher {
|
|
7
8
|
/**
|
|
8
9
|
* Fetch the request from the Origin targeted by the resolved Behavior.
|
|
10
|
+
*
|
|
11
|
+
* An Origin passed in is fetched from instead of the one the Behavior
|
|
12
|
+
* targets, which is how an origin-request function's rewriting reaches the
|
|
13
|
+
* fetch.
|
|
9
14
|
*/
|
|
10
|
-
fetch(request: Request, distro: SimCloudFrontDistribution, behaviour: SimCloudFrontBehavior): Promise<Response>;
|
|
15
|
+
fetch(request: Request, distro: SimCloudFrontDistribution, behaviour: SimCloudFrontBehavior, targetOrigin?: SimCloudFrontOrigin): Promise<Response>;
|
|
11
16
|
}
|
|
12
17
|
//# sourceMappingURL=sim-cloudfront-origin-fetcher.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sim-cloudfront-origin-fetcher.d.ts","sourceRoot":"","sources":["../../../../../src/service/cloudfront/controller/origin/sim-cloudfront-origin-fetcher.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,6CAA6C,CAAC;AACzF,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,mDAAmD,CAAC;
|
|
1
|
+
{"version":3,"file":"sim-cloudfront-origin-fetcher.d.ts","sourceRoot":"","sources":["../../../../../src/service/cloudfront/controller/origin/sim-cloudfront-origin-fetcher.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,6CAA6C,CAAC;AACzF,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,mDAAmD,CAAC;AACnG,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,uCAAuC,CAAC;AAEjF;;GAEG;AACH,qBAAa,0BAA0B;IACrC;;;;;;OAMG;IACG,KAAK,CACT,OAAO,EAAE,OAAO,EAChB,MAAM,EAAE,yBAAyB,EACjC,SAAS,EAAE,qBAAqB,EAChC,YAAY,CAAC,EAAE,mBAAmB,GACjC,OAAO,CAAC,QAAQ,CAAC,CAgBnB;CACF"}
|
|
@@ -4,9 +4,13 @@
|
|
|
4
4
|
export class SimCloudFrontOriginFetcher {
|
|
5
5
|
/**
|
|
6
6
|
* Fetch the request from the Origin targeted by the resolved Behavior.
|
|
7
|
+
*
|
|
8
|
+
* An Origin passed in is fetched from instead of the one the Behavior
|
|
9
|
+
* targets, which is how an origin-request function's rewriting reaches the
|
|
10
|
+
* fetch.
|
|
7
11
|
*/
|
|
8
|
-
async fetch(request, distro, behaviour) {
|
|
9
|
-
const origin = distro.getOrigin(behaviour.targetOriginName);
|
|
12
|
+
async fetch(request, distro, behaviour, targetOrigin) {
|
|
13
|
+
const origin = targetOrigin ?? distro.getOrigin(behaviour.targetOriginName);
|
|
10
14
|
if (origin === undefined) {
|
|
11
15
|
return new Response(`Sim CloudFront Distribution misconfigured for Origin ${behaviour.targetOriginName}`, {
|
|
12
16
|
status: 501,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sim-cloudfront-origin-fetcher.js","sourceRoot":"","sources":["../../../../../src/service/cloudfront/controller/origin/sim-cloudfront-origin-fetcher.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"sim-cloudfront-origin-fetcher.js","sourceRoot":"","sources":["../../../../../src/service/cloudfront/controller/origin/sim-cloudfront-origin-fetcher.ts"],"names":[],"mappings":"AAIA;;GAEG;AACH,MAAM,OAAO,0BAA0B;IACrC;;;;;;OAMG;IACH,KAAK,CAAC,KAAK,CACT,OAAgB,EAChB,MAAiC,EACjC,SAAgC,EAChC,YAAkC;QAElC,MAAM,MAAM,GAAG,YAAY,IAAI,MAAM,CAAC,SAAS,CAAC,SAAS,CAAC,gBAAgB,CAAC,CAAC;QAC5E,IAAI,MAAM,KAAK,SAAS,EAAE,CAAC;YACzB,OAAO,IAAI,QAAQ,CACjB,wDAAwD,SAAS,CAAC,gBAAgB,EAAE,EACpF;gBACE,MAAM,EAAE,GAAG;aACZ,CACF,CAAC;QACJ,CAAC;QAED,OAAO,MAAM,MAAM,CAAC,KAAK,CAAC;YACxB,GAAG,EAAE,OAAO;YACZ,YAAY,EAAE,MAAM;YACpB,QAAQ,EAAE,SAAS;SACpB,CAAC,CAAC;IACL,CAAC;CACF"}
|
|
@@ -3,9 +3,15 @@ import type { SimCloudFrontControllerDependencies } from "./dependency/sim-cf-co
|
|
|
3
3
|
* Runs a single simulated CloudFront request through its lifecycle:
|
|
4
4
|
* route to a Distribution, put the request through the Distribution's web ACL,
|
|
5
5
|
* apply the default root object, resolve the matching Behavior, run
|
|
6
|
-
* viewer-request hooks, fetch from the Origin
|
|
7
|
-
* the
|
|
8
|
-
* policy, then run
|
|
6
|
+
* viewer-request hooks, fetch from the Origin with the origin hooks either
|
|
7
|
+
* side of the fetch, replace an error response with the Distribution's custom
|
|
8
|
+
* error page, apply the Behavior's response headers policy, then run
|
|
9
|
+
* viewer-response hooks where the Origin did not answer with an error.
|
|
10
|
+
*
|
|
11
|
+
* A viewer hook is a CloudFront Function or a Lambda@Edge function. A Behavior
|
|
12
|
+
* carries at most one of the two kinds at the viewer events, which
|
|
13
|
+
* `SimCfEdgeAssociationValidator` refuses to configure otherwise. The two
|
|
14
|
+
* applicators below run one after the other and only one of them acts.
|
|
9
15
|
*
|
|
10
16
|
* This is the request-processing core, kept separate from the service
|
|
11
17
|
* controller so the controller stays a thin adapter to the shared
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sim-cloudfront-request-pipeline.d.ts","sourceRoot":"","sources":["../../../../src/service/cloudfront/controller/sim-cloudfront-request-pipeline.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,mCAAmC,EAAE,MAAM,8CAA8C,CAAC;AAGxG
|
|
1
|
+
{"version":3,"file":"sim-cloudfront-request-pipeline.d.ts","sourceRoot":"","sources":["../../../../src/service/cloudfront/controller/sim-cloudfront-request-pipeline.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,mCAAmC,EAAE,MAAM,8CAA8C,CAAC;AAGxG;;;;;;;;;;;;;;;;;;GAkBG;AACH,qBAAa,4BAA4B;IAC3B,OAAO,CAAC,QAAQ,CAAC,MAAM;IAAnC,YAA6B,MAAM,EAAE,mCAAmC,EAAI;IAE5E;;OAEG;IACG,MAAM,CAAC,OAAO,EAAE,OAAO,GAAG,OAAO,CAAC,QAAQ,CAAC,CAkHhD;CACF"}
|
|
@@ -3,9 +3,15 @@ import { simCfDefaultRootObjectRequest } from "./root-object/sim-cf-default-root
|
|
|
3
3
|
* Runs a single simulated CloudFront request through its lifecycle:
|
|
4
4
|
* route to a Distribution, put the request through the Distribution's web ACL,
|
|
5
5
|
* apply the default root object, resolve the matching Behavior, run
|
|
6
|
-
* viewer-request hooks, fetch from the Origin
|
|
7
|
-
* the
|
|
8
|
-
* policy, then run
|
|
6
|
+
* viewer-request hooks, fetch from the Origin with the origin hooks either
|
|
7
|
+
* side of the fetch, replace an error response with the Distribution's custom
|
|
8
|
+
* error page, apply the Behavior's response headers policy, then run
|
|
9
|
+
* viewer-response hooks where the Origin did not answer with an error.
|
|
10
|
+
*
|
|
11
|
+
* A viewer hook is a CloudFront Function or a Lambda@Edge function. A Behavior
|
|
12
|
+
* carries at most one of the two kinds at the viewer events, which
|
|
13
|
+
* `SimCfEdgeAssociationValidator` refuses to configure otherwise. The two
|
|
14
|
+
* applicators below run one after the other and only one of them acts.
|
|
9
15
|
*
|
|
10
16
|
* This is the request-processing core, kept separate from the service
|
|
11
17
|
* controller so the controller stays a thin adapter to the shared
|
|
@@ -48,20 +54,41 @@ export class SimCloudFrontRequestPipeline {
|
|
|
48
54
|
return cffResult;
|
|
49
55
|
}
|
|
50
56
|
requestReference = cffResult;
|
|
51
|
-
|
|
57
|
+
// Handle viewer-request Lambda@Edge, if any. A handler answers with the
|
|
58
|
+
// request to send to the Origin or with a response of its own, the same
|
|
59
|
+
// two outcomes a CloudFront Function has.
|
|
60
|
+
const edgeResult = await this.stages.edgeApplicator.applyViewerRequest(requestReference, distro, behaviour);
|
|
61
|
+
if (edgeResult instanceof Response) {
|
|
62
|
+
return edgeResult;
|
|
63
|
+
}
|
|
64
|
+
requestReference = edgeResult;
|
|
65
|
+
// Fetch from the Origin, running the origin-request and origin-response
|
|
66
|
+
// Lambda@Edge functions on either side of the fetch. An origin-request
|
|
67
|
+
// function that answered with a response of its own leaves the Origin
|
|
68
|
+
// unread, and the response takes the Origin response's place from here on.
|
|
69
|
+
const originResult = await this.stages.originStage.fetch(requestReference, distro, behaviour);
|
|
52
70
|
// Replace an Origin error with the Distribution's custom error page, if it
|
|
53
|
-
// configures one for that status.
|
|
54
|
-
|
|
55
|
-
const errorResponse = await this.stages.customErrorResponder.apply(requestReference, distro, originResponse);
|
|
71
|
+
// configures one for that status.
|
|
72
|
+
const errorResponse = await this.stages.customErrorResponder.apply(requestReference, distro, originResult.response);
|
|
56
73
|
// Apply the Behavior's response headers policy, if it names one. CloudFront
|
|
57
74
|
// does this after the response leaves the cache and before the
|
|
58
75
|
// viewer-response event, so the custom error page above carries the
|
|
59
|
-
// policy's headers and a viewer-response function sees them.
|
|
76
|
+
// policy's headers and a viewer-response function that runs sees them.
|
|
60
77
|
const response = this.stages.responseHeadersApplicator.apply(cloudFront, requestReference, errorResponse, behaviour);
|
|
78
|
+
// CloudFront runs no viewer-response function when the Origin answered
|
|
79
|
+
// 400 or higher, for either kind of function. The status that decides it
|
|
80
|
+
// is the one the Origin returned, so neither a custom error response
|
|
81
|
+
// carrying `ResponseCode: 200` above nor an origin-response function that
|
|
82
|
+
// replaced the status brings the function back.
|
|
83
|
+
if (originResult.originStatus >= 400) {
|
|
84
|
+
return response;
|
|
85
|
+
}
|
|
61
86
|
// Handle viewer-response CFF, if any.
|
|
62
87
|
// A viewer-response CFF can inspect the original request and replace or
|
|
63
88
|
// modify the Origin response before it is returned to the caller.
|
|
64
|
-
|
|
89
|
+
const cffResponse = await this.stages.cffApplicator.applyViewerResponse(cloudFront, requestReference, response, behaviour);
|
|
90
|
+
// Handle viewer-response Lambda@Edge, if any.
|
|
91
|
+
return await this.stages.edgeApplicator.applyViewerResponse(requestReference, cffResponse, distro, behaviour);
|
|
65
92
|
}
|
|
66
93
|
}
|
|
67
94
|
//# sourceMappingURL=sim-cloudfront-request-pipeline.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sim-cloudfront-request-pipeline.js","sourceRoot":"","sources":["../../../../src/service/cloudfront/controller/sim-cloudfront-request-pipeline.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,6BAA6B,EAAE,MAAM,qDAAqD,CAAC;AAEpG
|
|
1
|
+
{"version":3,"file":"sim-cloudfront-request-pipeline.js","sourceRoot":"","sources":["../../../../src/service/cloudfront/controller/sim-cloudfront-request-pipeline.ts"],"names":[],"mappings":"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"}
|
package/dist/service/cloudfront/distribution/configurator/sim-cf-behavior-properties.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sim-cf-behavior-properties.d.ts","sourceRoot":"","sources":["../../../../../src/service/cloudfront/distribution/configurator/sim-cf-behavior-properties.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,gCAAgC,EAChC,uCAAuC,EAExC,MAAM,kEAAkE,CAAC;AAC1E,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,6CAA6C,CAAC;AAEzF,OAAO,KAAK,EAAE,kCAAkC,EAAE,MAAM,8CAA8C,CAAC;
|
|
1
|
+
{"version":3,"file":"sim-cf-behavior-properties.d.ts","sourceRoot":"","sources":["../../../../../src/service/cloudfront/distribution/configurator/sim-cf-behavior-properties.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,gCAAgC,EAChC,uCAAuC,EAExC,MAAM,kEAAkE,CAAC;AAC1E,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,6CAA6C,CAAC;AAEzF,OAAO,KAAK,EAAE,kCAAkC,EAAE,MAAM,8CAA8C,CAAC;AAKvG;;;GAGG;AACH,wBAAgB,uBAAuB,CACrC,aAAa,EACT,uCAAuC,GACvC,gCAAgC,EACpC,qBAAqB,EAAE,kCAAkC,GACxD,qBAAqB,CA2BvB"}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { assertDefined } from "../../../../util/type-guard/defined.js";
|
|
2
2
|
import { configureCffAssociations } from "./sim-cff-associations-configure.js";
|
|
3
|
+
import { configureEdgeAssociations } from "../../edge/sim-cf-edge-associations-configure.js";
|
|
3
4
|
import { assertConsistentQuantity } from "../../command/sim-cf-list-quantity.js";
|
|
4
5
|
/**
|
|
5
6
|
* Build the Behavior properties common to both the default Cache Behavior and
|
|
@@ -23,6 +24,7 @@ export function simCfBehaviorProperties(cacheBehavior, responseHeadersPolicy) {
|
|
|
23
24
|
responseHeadersPolicyId: ResponseHeadersPolicyId,
|
|
24
25
|
}),
|
|
25
26
|
functionAssociations: configureCffAssociations(cacheBehavior),
|
|
27
|
+
lambdaFunctionAssociations: configureEdgeAssociations(cacheBehavior),
|
|
26
28
|
};
|
|
27
29
|
}
|
|
28
30
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sim-cf-behavior-properties.js","sourceRoot":"","sources":["../../../../../src/service/cloudfront/distribution/configurator/sim-cf-behavior-properties.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,aAAa,EAAE,MAAM,wCAAwC,CAAC;AAEvE,OAAO,EAAE,wBAAwB,EAAE,MAAM,qCAAqC,CAAC;AAC/E,OAAO,EAAE,wBAAwB,EAAE,MAAM,uCAAuC,CAAC;AAEjF;;;GAGG;AACH,MAAM,UAAU,uBAAuB,CACrC,aAEoC,EACpC,qBAAyD;IAEzD,MAAM,EAAE,cAAc,EAAE,uBAAuB,EAAE,GAAG,aAAa,CAAC;IAElE,aAAa,CAAC,cAAc,EAAE,yCAAyC,CAAC,CAAC;IAEzE,qBAAqB,CAAC,YAAY,CAAC,cAAc,EAAE,uBAAuB,CAAC,CAAC;IAE5E,OAAO;QACL,gBAAgB,EAAE,cAAc;QAChC,cAAc,EAAE,UAAU,CAAC,gBAAgB,EAAE,aAAa,CAAC,cAAc,EAAE;YACzE,KAAK;YACL,MAAM;SACP,CAAC;QACF,aAAa,EAAE,UAAU,CACvB,eAAe,EACf,aAAa,CAAC,cAAc,EAAE,aAAa,EAC3C,CAAC,KAAK,EAAE,MAAM,CAAC,CAChB;QACD,GAAG,CAAC,aAAa,CAAC,oBAAoB,KAAK,SAAS,IAAI;YACtD,oBAAoB,EAAE,aAAa,CAAC,oBAAoB;SACzD,CAAC;QACF,GAAG,CAAC,uBAAuB,KAAK,SAAS,IAAI;YAC3C,uBAAuB,EAAE,uBAAuB;SACjD,CAAC;QACF,oBAAoB,EAAE,wBAAwB,CAAC,aAAa,CAAC;
|
|
1
|
+
{"version":3,"file":"sim-cf-behavior-properties.js","sourceRoot":"","sources":["../../../../../src/service/cloudfront/distribution/configurator/sim-cf-behavior-properties.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,aAAa,EAAE,MAAM,wCAAwC,CAAC;AAEvE,OAAO,EAAE,wBAAwB,EAAE,MAAM,qCAAqC,CAAC;AAC/E,OAAO,EAAE,yBAAyB,EAAE,MAAM,kDAAkD,CAAC;AAC7F,OAAO,EAAE,wBAAwB,EAAE,MAAM,uCAAuC,CAAC;AAEjF;;;GAGG;AACH,MAAM,UAAU,uBAAuB,CACrC,aAEoC,EACpC,qBAAyD;IAEzD,MAAM,EAAE,cAAc,EAAE,uBAAuB,EAAE,GAAG,aAAa,CAAC;IAElE,aAAa,CAAC,cAAc,EAAE,yCAAyC,CAAC,CAAC;IAEzE,qBAAqB,CAAC,YAAY,CAAC,cAAc,EAAE,uBAAuB,CAAC,CAAC;IAE5E,OAAO;QACL,gBAAgB,EAAE,cAAc;QAChC,cAAc,EAAE,UAAU,CAAC,gBAAgB,EAAE,aAAa,CAAC,cAAc,EAAE;YACzE,KAAK;YACL,MAAM;SACP,CAAC;QACF,aAAa,EAAE,UAAU,CACvB,eAAe,EACf,aAAa,CAAC,cAAc,EAAE,aAAa,EAC3C,CAAC,KAAK,EAAE,MAAM,CAAC,CAChB;QACD,GAAG,CAAC,aAAa,CAAC,oBAAoB,KAAK,SAAS,IAAI;YACtD,oBAAoB,EAAE,aAAa,CAAC,oBAAoB;SACzD,CAAC;QACF,GAAG,CAAC,uBAAuB,KAAK,SAAS,IAAI;YAC3C,uBAAuB,EAAE,uBAAuB;SACjD,CAAC;QACF,oBAAoB,EAAE,wBAAwB,CAAC,aAAa,CAAC;QAC7D,0BAA0B,EAAE,yBAAyB,CAAC,aAAa,CAAC;KACrE,CAAC;AACJ,CAAC;AAED;;;GAGG;AACH,SAAS,UAAU,CACjB,QAAgB,EAChB,OAA4C,EAC5C,QAAkB;IAElB,wBAAwB,CAAC,QAAQ,EAAE,OAAO,CAAC,CAAC;IAE5C,OAAO,IAAI,GAAG,CAAC,OAAO,EAAE,KAAK,IAAI,QAAQ,CAAC,CAAC;AAC7C,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sim-cloud-front-origin-configurator.d.ts","sourceRoot":"","sources":["../../../../../src/service/cloudfront/distribution/configurator/sim-cloud-front-origin-configurator.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,kEAAkE,CAAC;AAClH,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,mCAAmC,CAAC;AAEnF,OAAO,EAEL,KAAK,6BAA6B,EACnC,MAAM,6CAA6C,CAAC;AAErD,OAAO,KAAK,EAAE,2BAA2B,EAAE,MAAM,wDAAwD,CAAC;AAG1G,OAAO,KAAK,EAAE,wCAAwC,EAAE,MAAM,sEAAsE,CAAC;AAKrI;;;;;;;;;GASG;AACH,qBAAa,+BAA+B;IAExC,OAAO,CAAC,QAAQ,CAAC,gBAAgB;IACjC,OAAO,CAAC,QAAQ,CAAC,oBAAoB;IACrC,OAAO,CAAC,QAAQ,CAAC,sBAAsB,CAAC;IAH1C,YACmB,gBAAgB,EAAE,6BAA6B,EAC/C,oBAAoB,EAAE,wCAAwC,EAC9D,sBAAsB,CAAC,EAAE,2BAA2B,YAAA,EACnE;IAEJ;;OAEG;IACH,SAAS,CACP,YAAY,EAAE,yBAAyB,EACvC,MAAM,EAAE,yBAAyB,GAChC,IAAI,
|
|
1
|
+
{"version":3,"file":"sim-cloud-front-origin-configurator.d.ts","sourceRoot":"","sources":["../../../../../src/service/cloudfront/distribution/configurator/sim-cloud-front-origin-configurator.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,kEAAkE,CAAC;AAClH,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,mCAAmC,CAAC;AAEnF,OAAO,EAEL,KAAK,6BAA6B,EACnC,MAAM,6CAA6C,CAAC;AAErD,OAAO,KAAK,EAAE,2BAA2B,EAAE,MAAM,wDAAwD,CAAC;AAG1G,OAAO,KAAK,EAAE,wCAAwC,EAAE,MAAM,sEAAsE,CAAC;AAKrI;;;;;;;;;GASG;AACH,qBAAa,+BAA+B;IAExC,OAAO,CAAC,QAAQ,CAAC,gBAAgB;IACjC,OAAO,CAAC,QAAQ,CAAC,oBAAoB;IACrC,OAAO,CAAC,QAAQ,CAAC,sBAAsB,CAAC;IAH1C,YACmB,gBAAgB,EAAE,6BAA6B,EAC/C,oBAAoB,EAAE,wCAAwC,EAC9D,sBAAsB,CAAC,EAAE,2BAA2B,YAAA,EACnE;IAEJ;;OAEG;IACH,SAAS,CACP,YAAY,EAAE,yBAAyB,EACvC,MAAM,EAAE,yBAAyB,GAChC,IAAI,CAiEN;IAED;;;;;;;OAOG;IACH,OAAO,CAAC,mBAAmB;CA0B5B"}
|
package/dist/service/cloudfront/distribution/configurator/sim-cloud-front-origin-configurator.js
CHANGED
|
@@ -44,6 +44,7 @@ export class SimCloudFrontOriginConfigurator {
|
|
|
44
44
|
assertDefined(originBucket, `Sim S3 Bucket for CloudFront Origin ${origin.DomainName}`);
|
|
45
45
|
distribution.addOrigin(origin.Id, new SimCloudFrontS3Origin({
|
|
46
46
|
originBucket,
|
|
47
|
+
domainName: origin.DomainName,
|
|
47
48
|
originPath: origin.OriginPath,
|
|
48
49
|
...(originAccessControl !== undefined && { originAccessControl }),
|
|
49
50
|
}));
|
package/dist/service/cloudfront/distribution/configurator/sim-cloud-front-origin-configurator.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sim-cloud-front-origin-configurator.js","sourceRoot":"","sources":["../../../../../src/service/cloudfront/distribution/configurator/sim-cloud-front-origin-configurator.ts"],"names":[],"mappings":"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"}
|
|
1
|
+
{"version":3,"file":"sim-cloud-front-origin-configurator.js","sourceRoot":"","sources":["../../../../../src/service/cloudfront/distribution/configurator/sim-cloud-front-origin-configurator.ts"],"names":[],"mappings":"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"}
|
|
@@ -4,14 +4,16 @@ import type { SimCloudFrontS3OriginResolver } from "../origin/s3/sim-cloudfront-
|
|
|
4
4
|
import type { SimCloudFrontOriginAccessControlRegistry } from "../origin-access-control/sim-cf-origin-access-control-registry.js";
|
|
5
5
|
import type { SimCloudFrontResponseHeadersPolicyRegistry } from "../response-headers-policy/sim-cf-response-headers-policy-registry.js";
|
|
6
6
|
import type { SimCfWebAclResolver } from "../web-acl/sim-cf-web-acl.js";
|
|
7
|
+
import type { SimCfEdgeFunctions } from "../edge/sim-cf-edge-functions.js";
|
|
7
8
|
/**
|
|
8
9
|
* How the commands that configure a Distribution reach everything a
|
|
9
10
|
* DistributionConfig names outside itself.
|
|
10
11
|
*
|
|
11
12
|
* A DistributionConfig is mostly references: a Bucket or a hostname per
|
|
12
13
|
* Origin, a certificate, an origin access control, a response headers policy,
|
|
13
|
-
* a web ACL. None of them belongs to
|
|
14
|
-
* resolve every one of them the same way,
|
|
14
|
+
* a web ACL, a Lambda@Edge function version. None of them belongs to
|
|
15
|
+
* CloudFront, and creation and update resolve every one of them the same way,
|
|
16
|
+
* so they travel together.
|
|
15
17
|
*/
|
|
16
18
|
export interface SimCfDistributionConfigurationState {
|
|
17
19
|
readonly s3OriginResolver: SimCloudFrontS3OriginResolver;
|
|
@@ -20,5 +22,6 @@ export interface SimCfDistributionConfigurationState {
|
|
|
20
22
|
readonly originAccessControls: SimCloudFrontOriginAccessControlRegistry;
|
|
21
23
|
readonly responseHeadersPolicies: SimCloudFrontResponseHeadersPolicyRegistry;
|
|
22
24
|
readonly webAclResolver: SimCfWebAclResolver | undefined;
|
|
25
|
+
readonly edgeFunctions: SimCfEdgeFunctions | undefined;
|
|
23
26
|
}
|
|
24
27
|
//# sourceMappingURL=sim-cf-distribution-configuration-state.d.ts.map
|
package/dist/service/cloudfront/distribution/sim-cf-distribution-configuration-state.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sim-cf-distribution-configuration-state.d.ts","sourceRoot":"","sources":["../../../../src/service/cloudfront/distribution/sim-cf-distribution-configuration-state.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,wCAAwC,CAAC;AAC7E,OAAO,KAAK,EAAE,2BAA2B,EAAE,MAAM,qDAAqD,CAAC;AACvG,OAAO,KAAK,EAAE,6BAA6B,EAAE,MAAM,0CAA0C,CAAC;AAC9F,OAAO,KAAK,EAAE,wCAAwC,EAAE,MAAM,mEAAmE,CAAC;AAClI,OAAO,KAAK,EAAE,0CAA0C,EAAE,MAAM,uEAAuE,CAAC;AACxI,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,8BAA8B,CAAC;
|
|
1
|
+
{"version":3,"file":"sim-cf-distribution-configuration-state.d.ts","sourceRoot":"","sources":["../../../../src/service/cloudfront/distribution/sim-cf-distribution-configuration-state.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,wCAAwC,CAAC;AAC7E,OAAO,KAAK,EAAE,2BAA2B,EAAE,MAAM,qDAAqD,CAAC;AACvG,OAAO,KAAK,EAAE,6BAA6B,EAAE,MAAM,0CAA0C,CAAC;AAC9F,OAAO,KAAK,EAAE,wCAAwC,EAAE,MAAM,mEAAmE,CAAC;AAClI,OAAO,KAAK,EAAE,0CAA0C,EAAE,MAAM,uEAAuE,CAAC;AACxI,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,8BAA8B,CAAC;AACxE,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,kCAAkC,CAAC;AAE3E;;;;;;;;;GASG;AACH,MAAM,WAAW,mCAAmC;IAClD,QAAQ,CAAC,gBAAgB,EAAE,6BAA6B,CAAC;IACzD,QAAQ,CAAC,sBAAsB,EAAE,2BAA2B,GAAG,SAAS,CAAC;IACzE,QAAQ,CAAC,WAAW,EAAE,cAAc,GAAG,SAAS,CAAC;IACjD,QAAQ,CAAC,oBAAoB,EAAE,wCAAwC,CAAC;IACxE,QAAQ,CAAC,uBAAuB,EAAE,0CAA0C,CAAC;IAC7E,QAAQ,CAAC,cAAc,EAAE,mBAAmB,GAAG,SAAS,CAAC;IACzD,QAAQ,CAAC,aAAa,EAAE,kBAAkB,GAAG,SAAS,CAAC;CACxD"}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import type { LambdaAtEdge } from "../../typings/lambda-at-edge.namespace.js";
|
|
2
|
+
/**
|
|
3
|
+
* Reading and writing the bodies an edge function sees and produces.
|
|
4
|
+
*/
|
|
5
|
+
/**
|
|
6
|
+
* The body a viewer-request event carries when `IncludeBody` is set.
|
|
7
|
+
*
|
|
8
|
+
* CloudFront sends it base64 encoded, and reports whether it had to truncate
|
|
9
|
+
* it. Nothing here truncates, so a simulated body is always whole.
|
|
10
|
+
*/
|
|
11
|
+
export declare function edgeRequestBody(request: Request): Promise<LambdaAtEdge.Body>;
|
|
12
|
+
/**
|
|
13
|
+
* The body the request carries on to the origin with.
|
|
14
|
+
*
|
|
15
|
+
* A handler that set the body action to `replace` has written the body it
|
|
16
|
+
* wants sent. Anything else leaves the viewer's own body in place, including a
|
|
17
|
+
* handler that read the body and handed the event back untouched.
|
|
18
|
+
*/
|
|
19
|
+
export declare function replacementBody(edgeRequest: LambdaAtEdge.Request, originalRequest: Request): NonNullable<RequestInit["body"]> | null;
|
|
20
|
+
/**
|
|
21
|
+
* The body of a response an edge function wrote.
|
|
22
|
+
*/
|
|
23
|
+
export declare function edgeResponseBody(edgeResponse: LambdaAtEdge.Response): Buffer | string | null;
|
|
24
|
+
//# sourceMappingURL=sim-lambda-edge-body.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sim-lambda-edge-body.d.ts","sourceRoot":"","sources":["../../../../../src/service/cloudfront/edge/adapter/sim-lambda-edge-body.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,2CAA2C,CAAC;AAE9E;;GAEG;AAEH;;;;;GAKG;AACH,wBAAsB,eAAe,CACnC,OAAO,EAAE,OAAO,GACf,OAAO,CAAC,YAAY,CAAC,IAAI,CAAC,CAY5B;AAED;;;;;;GAMG;AACH,wBAAgB,eAAe,CAC7B,WAAW,EAAE,YAAY,CAAC,OAAO,EACjC,eAAe,EAAE,OAAO,GACvB,WAAW,CAAC,WAAW,CAAC,MAAM,CAAC,CAAC,GAAG,IAAI,CAczC;AAED;;GAEG;AACH,wBAAgB,gBAAgB,CAC9B,YAAY,EAAE,YAAY,CAAC,QAAQ,GAClC,MAAM,GAAG,MAAM,GAAG,IAAI,CAQxB"}
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Reading and writing the bodies an edge function sees and produces.
|
|
3
|
+
*/
|
|
4
|
+
/**
|
|
5
|
+
* The body a viewer-request event carries when `IncludeBody` is set.
|
|
6
|
+
*
|
|
7
|
+
* CloudFront sends it base64 encoded, and reports whether it had to truncate
|
|
8
|
+
* it. Nothing here truncates, so a simulated body is always whole.
|
|
9
|
+
*/
|
|
10
|
+
export async function edgeRequestBody(request) {
|
|
11
|
+
const bytes = request.body === null
|
|
12
|
+
? new Uint8Array()
|
|
13
|
+
: new Uint8Array(await request.clone().arrayBuffer());
|
|
14
|
+
return {
|
|
15
|
+
inputTruncated: false,
|
|
16
|
+
action: "read-only",
|
|
17
|
+
encoding: "base64",
|
|
18
|
+
data: Buffer.from(bytes).toString("base64"),
|
|
19
|
+
};
|
|
20
|
+
}
|
|
21
|
+
/**
|
|
22
|
+
* The body the request carries on to the origin with.
|
|
23
|
+
*
|
|
24
|
+
* A handler that set the body action to `replace` has written the body it
|
|
25
|
+
* wants sent. Anything else leaves the viewer's own body in place, including a
|
|
26
|
+
* handler that read the body and handed the event back untouched.
|
|
27
|
+
*/
|
|
28
|
+
export function replacementBody(edgeRequest, originalRequest) {
|
|
29
|
+
if (/^(?:get|head)$/iu.test(edgeRequest.method)) {
|
|
30
|
+
return null;
|
|
31
|
+
}
|
|
32
|
+
const body = edgeRequest.body;
|
|
33
|
+
if (body?.action !== "replace") {
|
|
34
|
+
return originalRequest.clone().body;
|
|
35
|
+
}
|
|
36
|
+
return body.encoding === "base64"
|
|
37
|
+
? Buffer.from(body.data, "base64")
|
|
38
|
+
: body.data;
|
|
39
|
+
}
|
|
40
|
+
/**
|
|
41
|
+
* The body of a response an edge function wrote.
|
|
42
|
+
*/
|
|
43
|
+
export function edgeResponseBody(edgeResponse) {
|
|
44
|
+
if (edgeResponse.body === undefined) {
|
|
45
|
+
return null;
|
|
46
|
+
}
|
|
47
|
+
return edgeResponse.bodyEncoding === "base64"
|
|
48
|
+
? Buffer.from(edgeResponse.body, "base64")
|
|
49
|
+
: edgeResponse.body;
|
|
50
|
+
}
|
|
51
|
+
//# sourceMappingURL=sim-lambda-edge-body.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sim-lambda-edge-body.js","sourceRoot":"","sources":["../../../../../src/service/cloudfront/edge/adapter/sim-lambda-edge-body.ts"],"names":[],"mappings":"AAEA;;GAEG;AAEH;;;;;GAKG;AACH,MAAM,CAAC,KAAK,UAAU,eAAe,CACnC,OAAgB;IAEhB,MAAM,KAAK,GACT,OAAO,CAAC,IAAI,KAAK,IAAI;QACnB,CAAC,CAAC,IAAI,UAAU,EAAE;QAClB,CAAC,CAAC,IAAI,UAAU,CAAC,MAAM,OAAO,CAAC,KAAK,EAAE,CAAC,WAAW,EAAE,CAAC,CAAC;IAE1D,OAAO;QACL,cAAc,EAAE,KAAK;QACrB,MAAM,EAAE,WAAW;QACnB,QAAQ,EAAE,QAAQ;QAClB,IAAI,EAAE,MAAM,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,QAAQ,CAAC,QAAQ,CAAC;KAC5C,CAAC;AACJ,CAAC;AAED;;;;;;GAMG;AACH,MAAM,UAAU,eAAe,CAC7B,WAAiC,EACjC,eAAwB;IAExB,IAAI,kBAAkB,CAAC,IAAI,CAAC,WAAW,CAAC,MAAM,CAAC,EAAE,CAAC;QAChD,OAAO,IAAI,CAAC;IACd,CAAC;IAED,MAAM,IAAI,GAAG,WAAW,CAAC,IAAI,CAAC;IAE9B,IAAI,IAAI,EAAE,MAAM,KAAK,SAAS,EAAE,CAAC;QAC/B,OAAO,eAAe,CAAC,KAAK,EAAE,CAAC,IAAI,CAAC;IACtC,CAAC;IAED,OAAO,IAAI,CAAC,QAAQ,KAAK,QAAQ;QAC/B,CAAC,CAAC,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,IAAI,EAAE,QAAQ,CAAC;QAClC,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC;AAChB,CAAC;AAED;;GAEG;AACH,MAAM,UAAU,gBAAgB,CAC9B,YAAmC;IAEnC,IAAI,YAAY,CAAC,IAAI,KAAK,SAAS,EAAE,CAAC;QACpC,OAAO,IAAI,CAAC;IACd,CAAC;IAED,OAAO,YAAY,CAAC,YAAY,KAAK,QAAQ;QAC3C,CAAC,CAAC,MAAM,CAAC,IAAI,CAAC,YAAY,CAAC,IAAI,EAAE,QAAQ,CAAC;QAC1C,CAAC,CAAC,YAAY,CAAC,IAAI,CAAC;AACxB,CAAC"}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import type { LambdaAtEdge } from "../../typings/lambda-at-edge.namespace.js";
|
|
2
|
+
import { type SimLambdaEdgeDistributionConfig } from "./sim-lambda-edge-event-config.js";
|
|
3
|
+
/**
|
|
4
|
+
* Converts between native Fetch API Request and Response objects and the
|
|
5
|
+
* Lambda@Edge event and result shapes.
|
|
6
|
+
*/
|
|
7
|
+
export declare class SimLambdaEdgeEventAdapter {
|
|
8
|
+
private readonly requestAdapter;
|
|
9
|
+
private readonly responseAdapter;
|
|
10
|
+
/**
|
|
11
|
+
* Build the event a viewer-request function is invoked with.
|
|
12
|
+
*/
|
|
13
|
+
toRequestEvent(request: Request, includeBody: boolean, distribution: SimLambdaEdgeDistributionConfig): Promise<LambdaAtEdge.RequestEvent>;
|
|
14
|
+
/**
|
|
15
|
+
* Build the event a viewer-response function is invoked with.
|
|
16
|
+
*
|
|
17
|
+
* The request travels with the response, and it never carries a body. Real
|
|
18
|
+
* CloudFront has already forwarded the request by this point, and
|
|
19
|
+
* `IncludeBody` applies to viewer-request and origin-request events only.
|
|
20
|
+
*/
|
|
21
|
+
toResponseEvent(request: Request, response: Response, distribution: SimLambdaEdgeDistributionConfig): Promise<LambdaAtEdge.ResponseEvent>;
|
|
22
|
+
/**
|
|
23
|
+
* Read what a viewer-request handler answered with.
|
|
24
|
+
*
|
|
25
|
+
* A result carrying a status is a response the viewer gets. Anything else is
|
|
26
|
+
* the request carrying on to the origin.
|
|
27
|
+
*/
|
|
28
|
+
fromRequestResult(result: LambdaAtEdge.RequestResult, originalRequest: Request): Request | Response;
|
|
29
|
+
/**
|
|
30
|
+
* Read what a viewer-response or origin-response handler answered with.
|
|
31
|
+
*/
|
|
32
|
+
fromResponseResult(result: LambdaAtEdge.Response, originalResponse: Response): Response;
|
|
33
|
+
}
|
|
34
|
+
//# sourceMappingURL=sim-lambda-edge-event-adapter.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sim-lambda-edge-event-adapter.d.ts","sourceRoot":"","sources":["../../../../../src/service/cloudfront/edge/adapter/sim-lambda-edge-event-adapter.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,2CAA2C,CAAC;AAC9E,OAAO,EAEL,KAAK,+BAA+B,EACrC,MAAM,mCAAmC,CAAC;AAI3C;;;GAGG;AACH,qBAAa,yBAAyB;IACpC,OAAO,CAAC,QAAQ,CAAC,cAAc,CAAqC;IACpE,OAAO,CAAC,QAAQ,CAAC,eAAe,CAAsC;IAEtE;;OAEG;IACG,cAAc,CAClB,OAAO,EAAE,OAAO,EAChB,WAAW,EAAE,OAAO,EACpB,YAAY,EAAE,+BAA+B,GAC5C,OAAO,CAAC,YAAY,CAAC,YAAY,CAAC,CAcpC;IAED;;;;;;OAMG;IACG,eAAe,CACnB,OAAO,EAAE,OAAO,EAChB,QAAQ,EAAE,QAAQ,EAClB,YAAY,EAAE,+BAA+B,GAC5C,OAAO,CAAC,YAAY,CAAC,aAAa,CAAC,CAYrC;IAED;;;;;OAKG;IACH,iBAAiB,CACf,MAAM,EAAE,YAAY,CAAC,aAAa,EAClC,eAAe,EAAE,OAAO,GACvB,OAAO,GAAG,QAAQ,CAIpB;IAED;;OAEG;IACH,kBAAkB,CAChB,MAAM,EAAE,YAAY,CAAC,QAAQ,EAC7B,gBAAgB,EAAE,QAAQ,GACzB,QAAQ,CAKV;CACF"}
|