@kensio/yulin 1.6.0 → 1.7.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +72 -0
- package/dist/cli/sim-cli.d.ts +20 -0
- package/dist/cli/sim-cli.d.ts.map +1 -0
- package/dist/cli/sim-cli.js +42 -0
- package/dist/cli/sim-cli.js.map +1 -0
- package/dist/cli/watch/sim-watch-arguments.d.ts +30 -0
- package/dist/cli/watch/sim-watch-arguments.d.ts.map +1 -0
- package/dist/cli/watch/sim-watch-arguments.js +67 -0
- package/dist/cli/watch/sim-watch-arguments.js.map +1 -0
- package/dist/cli/watch/sim-watch-child-environment.d.ts +30 -0
- package/dist/cli/watch/sim-watch-child-environment.d.ts.map +1 -0
- package/dist/cli/watch/sim-watch-child-environment.js +51 -0
- package/dist/cli/watch/sim-watch-child-environment.js.map +1 -0
- package/dist/cli/watch/sim-watch-child-message.d.ts +19 -0
- package/dist/cli/watch/sim-watch-child-message.d.ts.map +1 -0
- package/dist/cli/watch/sim-watch-child-message.js +42 -0
- package/dist/cli/watch/sim-watch-child-message.js.map +1 -0
- package/dist/cli/watch/sim-watch-child-process.d.ts +22 -0
- package/dist/cli/watch/sim-watch-child-process.d.ts.map +1 -0
- package/dist/cli/watch/sim-watch-child-process.js +33 -0
- package/dist/cli/watch/sim-watch-child-process.js.map +1 -0
- package/dist/cli/watch/sim-watch-child-shutdown.d.ts +28 -0
- package/dist/cli/watch/sim-watch-child-shutdown.d.ts.map +1 -0
- package/dist/cli/watch/sim-watch-child-shutdown.js +59 -0
- package/dist/cli/watch/sim-watch-child-shutdown.js.map +1 -0
- package/dist/cli/watch/sim-watch-child.d.ts +42 -0
- package/dist/cli/watch/sim-watch-child.d.ts.map +1 -0
- package/dist/cli/watch/sim-watch-child.js +62 -0
- package/dist/cli/watch/sim-watch-child.js.map +1 -0
- package/dist/cli/watch/sim-watch-command.d.ts +22 -0
- package/dist/cli/watch/sim-watch-command.d.ts.map +1 -0
- package/dist/cli/watch/sim-watch-command.js +41 -0
- package/dist/cli/watch/sim-watch-command.js.map +1 -0
- package/dist/cli/watch/sim-watch-event-path.d.ts +27 -0
- package/dist/cli/watch/sim-watch-event-path.d.ts.map +1 -0
- package/dist/cli/watch/sim-watch-event-path.js +48 -0
- package/dist/cli/watch/sim-watch-event-path.js.map +1 -0
- package/dist/cli/watch/sim-watch-ignore.d.ts +15 -0
- package/dist/cli/watch/sim-watch-ignore.d.ts.map +1 -0
- package/dist/cli/watch/sim-watch-ignore.js +64 -0
- package/dist/cli/watch/sim-watch-ignore.js.map +1 -0
- package/dist/cli/watch/sim-watch-loop-guard.d.ts +35 -0
- package/dist/cli/watch/sim-watch-loop-guard.d.ts.map +1 -0
- package/dist/cli/watch/sim-watch-loop-guard.js +51 -0
- package/dist/cli/watch/sim-watch-loop-guard.js.map +1 -0
- package/dist/cli/watch/sim-watch-reporter.d.ts +38 -0
- package/dist/cli/watch/sim-watch-reporter.d.ts.map +1 -0
- package/dist/cli/watch/sim-watch-reporter.js +65 -0
- package/dist/cli/watch/sim-watch-reporter.js.map +1 -0
- package/dist/cli/watch/sim-watch-restarts.d.ts +30 -0
- package/dist/cli/watch/sim-watch-restarts.d.ts.map +1 -0
- package/dist/cli/watch/sim-watch-restarts.js +62 -0
- package/dist/cli/watch/sim-watch-restarts.js.map +1 -0
- package/dist/cli/watch/sim-watch-supervisor.d.ts +52 -0
- package/dist/cli/watch/sim-watch-supervisor.d.ts.map +1 -0
- package/dist/cli/watch/sim-watch-supervisor.js +127 -0
- package/dist/cli/watch/sim-watch-supervisor.js.map +1 -0
- package/dist/cli/watch/sim-watch-watcher.d.ts +69 -0
- package/dist/cli/watch/sim-watch-watcher.d.ts.map +1 -0
- package/dist/cli/watch/sim-watch-watcher.js +144 -0
- package/dist/cli/watch/sim-watch-watcher.js.map +1 -0
- package/dist/cli/yulin.d.ts +3 -0
- package/dist/cli/yulin.d.ts.map +1 -0
- package/dist/cli/yulin.js +14 -0
- package/dist/cli/yulin.js.map +1 -0
- package/dist/serve/http/live-reload/sim-live-reload-client.d.ts +32 -0
- package/dist/serve/http/live-reload/sim-live-reload-client.d.ts.map +1 -0
- package/dist/serve/http/live-reload/sim-live-reload-client.js +55 -0
- package/dist/serve/http/live-reload/sim-live-reload-client.js.map +1 -0
- package/dist/serve/http/live-reload/sim-live-reload-injectable.d.ts +47 -0
- package/dist/serve/http/live-reload/sim-live-reload-injectable.d.ts.map +1 -0
- package/dist/serve/http/live-reload/sim-live-reload-injectable.js +86 -0
- package/dist/serve/http/live-reload/sim-live-reload-injectable.js.map +1 -0
- package/dist/serve/http/live-reload/sim-live-reload-injector.d.ts +22 -0
- package/dist/serve/http/live-reload/sim-live-reload-injector.d.ts.map +1 -0
- package/dist/serve/http/live-reload/sim-live-reload-injector.js +72 -0
- package/dist/serve/http/live-reload/sim-live-reload-injector.js.map +1 -0
- package/dist/serve/http/live-reload/sim-live-reload-report.d.ts +18 -0
- package/dist/serve/http/live-reload/sim-live-reload-report.d.ts.map +1 -0
- package/dist/serve/http/live-reload/sim-live-reload-report.js +27 -0
- package/dist/serve/http/live-reload/sim-live-reload-report.js.map +1 -0
- package/dist/serve/http/live-reload/sim-live-reload-script.d.ts +20 -0
- package/dist/serve/http/live-reload/sim-live-reload-script.d.ts.map +1 -0
- package/dist/serve/http/live-reload/sim-live-reload-script.js +45 -0
- package/dist/serve/http/live-reload/sim-live-reload-script.js.map +1 -0
- package/dist/serve/http/live-reload/sim-live-reload.config.d.ts +12 -0
- package/dist/serve/http/live-reload/sim-live-reload.config.d.ts.map +1 -0
- package/dist/serve/http/live-reload/sim-live-reload.config.js +19 -0
- package/dist/serve/http/live-reload/sim-live-reload.config.js.map +1 -0
- package/dist/serve/http/live-reload/sim-live-reload.d.ts +52 -0
- package/dist/serve/http/live-reload/sim-live-reload.d.ts.map +1 -0
- package/dist/serve/http/live-reload/sim-live-reload.js +82 -0
- package/dist/serve/http/live-reload/sim-live-reload.js.map +1 -0
- package/dist/serve/http/live-reload/sim-local-live-reload.d.ts +42 -0
- package/dist/serve/http/live-reload/sim-local-live-reload.d.ts.map +1 -0
- package/dist/serve/http/live-reload/sim-local-live-reload.js +60 -0
- package/dist/serve/http/live-reload/sim-local-live-reload.js.map +1 -0
- package/dist/serve/http/local-server/node-server-port-binder.d.ts +39 -0
- package/dist/serve/http/local-server/node-server-port-binder.d.ts.map +1 -0
- package/dist/serve/http/local-server/node-server-port-binder.js +71 -0
- package/dist/serve/http/local-server/node-server-port-binder.js.map +1 -0
- package/dist/serve/http/local-server/node-server-port.d.ts +10 -0
- package/dist/serve/http/local-server/node-server-port.d.ts.map +1 -0
- package/dist/serve/http/local-server/node-server-port.js +19 -0
- package/dist/serve/http/local-server/node-server-port.js.map +1 -0
- package/dist/serve/http/local-server/sim-aws-local-port.error.d.ts +13 -0
- package/dist/serve/http/local-server/sim-aws-local-port.error.d.ts.map +1 -0
- package/dist/serve/http/local-server/sim-aws-local-port.error.js +16 -0
- package/dist/serve/http/local-server/sim-aws-local-port.error.js.map +1 -0
- package/dist/serve/http/local-server/sim-aws-local-request-handler.d.ts +14 -1
- package/dist/serve/http/local-server/sim-aws-local-request-handler.d.ts.map +1 -1
- package/dist/serve/http/local-server/sim-aws-local-request-handler.js +20 -2
- package/dist/serve/http/local-server/sim-aws-local-request-handler.js.map +1 -1
- package/dist/serve/http/local-server/sim-aws-local-server.d.ts +23 -0
- package/dist/serve/http/local-server/sim-aws-local-server.d.ts.map +1 -1
- package/dist/serve/http/local-server/sim-aws-local-server.js +41 -16
- package/dist/serve/http/local-server/sim-aws-local-server.js.map +1 -1
- package/dist/serve/http/local-server/sim-aws-local.config.d.ts +2 -0
- package/dist/serve/http/local-server/sim-aws-local.config.d.ts.map +1 -1
- package/dist/serve/http/local-server/sim-aws-local.config.js +6 -0
- package/dist/serve/http/local-server/sim-aws-local.config.js.map +1 -1
- package/dist/serve/index.d.ts +3 -0
- package/dist/serve/index.d.ts.map +1 -1
- package/dist/serve/index.js +3 -0
- package/dist/serve/index.js.map +1 -1
- package/dist/service/acm/cfn/sim-cfn-acm-resource-factory.d.ts +9 -0
- package/dist/service/acm/cfn/sim-cfn-acm-resource-factory.d.ts.map +1 -1
- package/dist/service/acm/cfn/sim-cfn-acm-resource-factory.js +20 -0
- package/dist/service/acm/cfn/sim-cfn-acm-resource-factory.js.map +1 -1
- package/dist/service/apigatewayv2/api/integration/sim-http-api-integration-store.d.ts +4 -0
- package/dist/service/apigatewayv2/api/integration/sim-http-api-integration-store.d.ts.map +1 -1
- package/dist/service/apigatewayv2/api/integration/sim-http-api-integration-store.js +6 -0
- package/dist/service/apigatewayv2/api/integration/sim-http-api-integration-store.js.map +1 -1
- package/dist/service/apigatewayv2/api/route/sim-http-api-route-store.d.ts +12 -0
- package/dist/service/apigatewayv2/api/route/sim-http-api-route-store.d.ts.map +1 -1
- package/dist/service/apigatewayv2/api/route/sim-http-api-route-store.js +17 -0
- package/dist/service/apigatewayv2/api/route/sim-http-api-route-store.js.map +1 -1
- package/dist/service/apigatewayv2/api/sim-http-api.d.ts +10 -0
- package/dist/service/apigatewayv2/api/sim-http-api.d.ts.map +1 -1
- package/dist/service/apigatewayv2/api/sim-http-api.js +19 -0
- package/dist/service/apigatewayv2/api/sim-http-api.js.map +1 -1
- package/dist/service/apigatewayv2/api/stage/sim-http-api-stage-store.d.ts +4 -0
- package/dist/service/apigatewayv2/api/stage/sim-http-api-stage-store.d.ts.map +1 -1
- package/dist/service/apigatewayv2/api/stage/sim-http-api-stage-store.js +6 -0
- package/dist/service/apigatewayv2/api/stage/sim-http-api-stage-store.js.map +1 -1
- package/dist/service/apigatewayv2/cfn/sim-cfn-api-gateway-v2-resource-deleter.d.ts +26 -0
- package/dist/service/apigatewayv2/cfn/sim-cfn-api-gateway-v2-resource-deleter.d.ts.map +1 -0
- package/dist/service/apigatewayv2/cfn/sim-cfn-api-gateway-v2-resource-deleter.js +32 -0
- package/dist/service/apigatewayv2/cfn/sim-cfn-api-gateway-v2-resource-deleter.js.map +1 -0
- package/dist/service/apigatewayv2/cfn/sim-cfn-api-gateway-v2-resource-factory.d.ts +7 -0
- package/dist/service/apigatewayv2/cfn/sim-cfn-api-gateway-v2-resource-factory.d.ts.map +1 -1
- package/dist/service/apigatewayv2/cfn/sim-cfn-api-gateway-v2-resource-factory.js +10 -0
- package/dist/service/apigatewayv2/cfn/sim-cfn-api-gateway-v2-resource-factory.js.map +1 -1
- package/dist/service/apigatewayv2/cfn/sim-cfn-http-api-part-deleter.d.ts +30 -0
- package/dist/service/apigatewayv2/cfn/sim-cfn-http-api-part-deleter.d.ts.map +1 -0
- package/dist/service/apigatewayv2/cfn/sim-cfn-http-api-part-deleter.js +72 -0
- package/dist/service/apigatewayv2/cfn/sim-cfn-http-api-part-deleter.js.map +1 -0
- package/dist/service/apigatewayv2/command/integration/integration.command.d.ts +15 -0
- package/dist/service/apigatewayv2/command/integration/integration.command.d.ts.map +1 -1
- package/dist/service/apigatewayv2/command/integration/sim-http-api-integration-commands.d.ts +9 -1
- package/dist/service/apigatewayv2/command/integration/sim-http-api-integration-commands.d.ts.map +1 -1
- package/dist/service/apigatewayv2/command/integration/sim-http-api-integration-commands.js +27 -0
- package/dist/service/apigatewayv2/command/integration/sim-http-api-integration-commands.js.map +1 -1
- package/dist/service/apigatewayv2/command/route/route.command.d.ts +15 -0
- package/dist/service/apigatewayv2/command/route/route.command.d.ts.map +1 -1
- package/dist/service/apigatewayv2/command/route/sim-http-api-route-commands.d.ts +9 -1
- package/dist/service/apigatewayv2/command/route/sim-http-api-route-commands.d.ts.map +1 -1
- package/dist/service/apigatewayv2/command/route/sim-http-api-route-commands.js +26 -0
- package/dist/service/apigatewayv2/command/route/sim-http-api-route-commands.js.map +1 -1
- package/dist/service/apigatewayv2/command/sim-api-gateway-v2-command.types.d.ts +3 -3
- package/dist/service/apigatewayv2/command/sim-api-gateway-v2-command.types.d.ts.map +1 -1
- package/dist/service/apigatewayv2/command/stage/sim-http-api-stage-commands.d.ts +9 -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 +26 -0
- package/dist/service/apigatewayv2/command/stage/sim-http-api-stage-commands.js.map +1 -1
- package/dist/service/apigatewayv2/command/stage/stage.command.d.ts +15 -0
- package/dist/service/apigatewayv2/command/stage/stage.command.d.ts.map +1 -1
- package/dist/service/apigatewayv2/sdk/sim-api-gateway-v2-sdk-command-router.d.ts.map +1 -1
- package/dist/service/apigatewayv2/sdk/sim-api-gateway-v2-sdk-command-router.js +12 -0
- package/dist/service/apigatewayv2/sdk/sim-api-gateway-v2-sdk-command-router.js.map +1 -1
- package/dist/service/apigatewayv2/sim-api-gateway-v2-commands.d.ts +47 -0
- package/dist/service/apigatewayv2/sim-api-gateway-v2-commands.d.ts.map +1 -0
- package/dist/service/apigatewayv2/sim-api-gateway-v2-commands.js +61 -0
- package/dist/service/apigatewayv2/sim-api-gateway-v2-commands.js.map +1 -0
- package/dist/service/apigatewayv2/sim-api-gateway-v2.d.ts +14 -26
- package/dist/service/apigatewayv2/sim-api-gateway-v2.d.ts.map +1 -1
- package/dist/service/apigatewayv2/sim-api-gateway-v2.js +53 -80
- package/dist/service/apigatewayv2/sim-api-gateway-v2.js.map +1 -1
- package/dist/service/cloudformation/authorize/sim-cloudformation-authorization.d.ts +44 -0
- package/dist/service/cloudformation/authorize/sim-cloudformation-authorization.d.ts.map +1 -0
- package/dist/service/cloudformation/authorize/sim-cloudformation-authorization.js +53 -0
- package/dist/service/cloudformation/authorize/sim-cloudformation-authorization.js.map +1 -0
- package/dist/service/cloudformation/cdk/s3/bucket-deployment/sim-cdk-bucket-deployment.d.ts +9 -0
- package/dist/service/cloudformation/cdk/s3/bucket-deployment/sim-cdk-bucket-deployment.d.ts.map +1 -1
- package/dist/service/cloudformation/cdk/s3/bucket-deployment/sim-cdk-bucket-deployment.js +15 -0
- package/dist/service/cloudformation/cdk/s3/bucket-deployment/sim-cdk-bucket-deployment.js.map +1 -1
- package/dist/service/cloudformation/cdk/s3/bucket-notifications/sim-cdk-bucket-notifications-remover.d.ts +19 -0
- package/dist/service/cloudformation/cdk/s3/bucket-notifications/sim-cdk-bucket-notifications-remover.d.ts.map +1 -0
- package/dist/service/cloudformation/cdk/s3/bucket-notifications/sim-cdk-bucket-notifications-remover.js +35 -0
- package/dist/service/cloudformation/cdk/s3/bucket-notifications/sim-cdk-bucket-notifications-remover.js.map +1 -0
- package/dist/service/cloudformation/cdk/s3/bucket-notifications/sim-cdk-bucket-notifications.d.ts +9 -1
- package/dist/service/cloudformation/cdk/s3/bucket-notifications/sim-cdk-bucket-notifications.d.ts.map +1 -1
- package/dist/service/cloudformation/cdk/s3/bucket-notifications/sim-cdk-bucket-notifications.js +11 -0
- package/dist/service/cloudformation/cdk/s3/bucket-notifications/sim-cdk-bucket-notifications.js.map +1 -1
- package/dist/service/cloudformation/command/create-stack/create-stack.handler.js +1 -1
- package/dist/service/cloudformation/command/create-stack/create-stack.handler.js.map +1 -1
- package/dist/service/cloudformation/command/delete-stack/delete-stack.command.d.ts +25 -0
- package/dist/service/cloudformation/command/delete-stack/delete-stack.command.d.ts.map +1 -0
- package/dist/service/cloudformation/command/delete-stack/delete-stack.command.js +2 -0
- package/dist/service/cloudformation/command/delete-stack/delete-stack.command.js.map +1 -0
- package/dist/service/cloudformation/command/delete-stack/delete-stack.handler.d.ts +34 -0
- package/dist/service/cloudformation/command/delete-stack/delete-stack.handler.d.ts.map +1 -0
- package/dist/service/cloudformation/command/delete-stack/delete-stack.handler.js +41 -0
- package/dist/service/cloudformation/command/delete-stack/delete-stack.handler.js.map +1 -0
- package/dist/service/cloudformation/command/describe-stacks/describe-stacks.handler.d.ts.map +1 -1
- package/dist/service/cloudformation/command/describe-stacks/describe-stacks.handler.js +4 -11
- package/dist/service/cloudformation/command/describe-stacks/describe-stacks.handler.js.map +1 -1
- package/dist/service/cloudformation/command/describe-stacks/sim-cfn-described-stacks.d.ts +26 -0
- package/dist/service/cloudformation/command/describe-stacks/sim-cfn-described-stacks.d.ts.map +1 -0
- package/dist/service/cloudformation/command/describe-stacks/sim-cfn-described-stacks.js +37 -0
- package/dist/service/cloudformation/command/describe-stacks/sim-cfn-described-stacks.js.map +1 -0
- package/dist/service/cloudformation/command/describe-stacks/sim-cfn-stack-describer.js +2 -2
- package/dist/service/cloudformation/command/describe-stacks/sim-cfn-stack-describer.js.map +1 -1
- package/dist/service/cloudformation/command/update-stack/update-stack.command.d.ts +29 -0
- package/dist/service/cloudformation/command/update-stack/update-stack.command.d.ts.map +1 -0
- package/dist/service/cloudformation/command/update-stack/update-stack.command.js +2 -0
- package/dist/service/cloudformation/command/update-stack/update-stack.command.js.map +1 -0
- package/dist/service/cloudformation/command/update-stack/update-stack.handler.d.ts +42 -0
- package/dist/service/cloudformation/command/update-stack/update-stack.handler.d.ts.map +1 -0
- package/dist/service/cloudformation/command/update-stack/update-stack.handler.js +53 -0
- package/dist/service/cloudformation/command/update-stack/update-stack.handler.js.map +1 -0
- package/dist/service/cloudformation/deploy/sim-cfn-template-deployer.d.ts +19 -0
- package/dist/service/cloudformation/deploy/sim-cfn-template-deployer.d.ts.map +1 -1
- package/dist/service/cloudformation/deploy/sim-cfn-template-deployer.js +40 -1
- package/dist/service/cloudformation/deploy/sim-cfn-template-deployer.js.map +1 -1
- package/dist/service/cloudformation/deploy/sim-cfn-template-file-deployment.d.ts +10 -0
- package/dist/service/cloudformation/deploy/sim-cfn-template-file-deployment.d.ts.map +1 -0
- package/dist/service/cloudformation/deploy/sim-cfn-template-file-deployment.js +14 -0
- package/dist/service/cloudformation/deploy/sim-cfn-template-file-deployment.js.map +1 -0
- package/dist/service/cloudformation/deploy/sim-cfn-template-file-loader.d.ts +11 -0
- package/dist/service/cloudformation/deploy/sim-cfn-template-file-loader.d.ts.map +1 -1
- package/dist/service/cloudformation/deploy/sim-cfn-template-file-loader.js +5 -0
- package/dist/service/cloudformation/deploy/sim-cfn-template-file-loader.js.map +1 -1
- package/dist/service/cloudformation/deploy/sim-cfn-template-file-updater.d.ts +49 -0
- package/dist/service/cloudformation/deploy/sim-cfn-template-file-updater.d.ts.map +1 -0
- package/dist/service/cloudformation/deploy/sim-cfn-template-file-updater.js +59 -0
- package/dist/service/cloudformation/deploy/sim-cfn-template-file-updater.js.map +1 -0
- package/dist/service/cloudformation/error/{sim-cloudfront.error.d.ts → sim-cloudformation.error.d.ts} +11 -1
- package/dist/service/cloudformation/error/sim-cloudformation.error.d.ts.map +1 -0
- package/dist/service/cloudformation/error/{sim-cloudfront.error.js → sim-cloudformation.error.js} +13 -1
- package/dist/service/cloudformation/error/sim-cloudformation.error.js.map +1 -0
- package/dist/service/cloudformation/index.d.ts +1 -0
- package/dist/service/cloudformation/index.d.ts.map +1 -1
- package/dist/service/cloudformation/resource/create/sim-cfn-resource-create-operation.d.ts +0 -1
- package/dist/service/cloudformation/resource/create/sim-cfn-resource-create-operation.d.ts.map +1 -1
- package/dist/service/cloudformation/resource/create/sim-cfn-resource-create-operation.js +2 -6
- package/dist/service/cloudformation/resource/create/sim-cfn-resource-create-operation.js.map +1 -1
- package/dist/service/cloudformation/resource/delete/sim-cfn-resource-delete-operation.d.ts +37 -0
- package/dist/service/cloudformation/resource/delete/sim-cfn-resource-delete-operation.d.ts.map +1 -0
- package/dist/service/cloudformation/resource/delete/sim-cfn-resource-delete-operation.js +66 -0
- package/dist/service/cloudformation/resource/delete/sim-cfn-resource-delete-operation.js.map +1 -0
- package/dist/service/cloudformation/resource/delete/sim-cfn-resource-deleter.d.ts +37 -0
- package/dist/service/cloudformation/resource/delete/sim-cfn-resource-deleter.d.ts.map +1 -0
- package/dist/service/cloudformation/resource/delete/sim-cfn-resource-deleter.js +48 -0
- package/dist/service/cloudformation/resource/delete/sim-cfn-resource-deleter.js.map +1 -0
- package/dist/service/cloudformation/resource/dependency/sim-cfn-resource-dependents.d.ts +14 -0
- package/dist/service/cloudformation/resource/dependency/sim-cfn-resource-dependents.d.ts.map +1 -0
- package/dist/service/cloudformation/resource/dependency/sim-cfn-resource-dependents.js +27 -0
- package/dist/service/cloudformation/resource/dependency/sim-cfn-resource-dependents.js.map +1 -0
- package/dist/service/cloudformation/resource/factory/sim-cfn-cfn-resource-factory.d.ts +8 -0
- package/dist/service/cloudformation/resource/factory/sim-cfn-cfn-resource-factory.d.ts.map +1 -1
- package/dist/service/cloudformation/resource/factory/sim-cfn-cfn-resource-factory.js +13 -0
- package/dist/service/cloudformation/resource/factory/sim-cfn-cfn-resource-factory.js.map +1 -1
- package/dist/service/cloudformation/resource/factory/sim-cfn-resource-factory.type.d.ts +15 -1
- package/dist/service/cloudformation/resource/factory/sim-cfn-resource-factory.type.d.ts.map +1 -1
- package/dist/service/cloudformation/resource/resolve/property/sim-cfn-resource-property-resolver.d.ts +2 -2
- package/dist/service/cloudformation/resource/resolve/property/sim-cfn-resource-property-resolver.d.ts.map +1 -1
- package/dist/service/cloudformation/resource/resolve/property/sim-cfn-resource-property-resolver.js.map +1 -1
- package/dist/service/cloudformation/resource/sim-cfn-resource-record.d.ts +110 -0
- package/dist/service/cloudformation/resource/sim-cfn-resource-record.d.ts.map +1 -0
- package/dist/service/cloudformation/resource/sim-cfn-resource-record.js +145 -0
- package/dist/service/cloudformation/resource/sim-cfn-resource-record.js.map +1 -0
- package/dist/service/cloudformation/resource/sim-cfn-resource.d.ts +61 -69
- package/dist/service/cloudformation/resource/sim-cfn-resource.d.ts.map +1 -1
- package/dist/service/cloudformation/resource/sim-cfn-resource.js +91 -100
- package/dist/service/cloudformation/resource/sim-cfn-resource.js.map +1 -1
- package/dist/service/cloudformation/resource/sim-cfn-resource.type.d.ts +30 -3
- package/dist/service/cloudformation/resource/sim-cfn-resource.type.d.ts.map +1 -1
- package/dist/service/cloudformation/resource/state/sim-cfn-resource-deletion-state.d.ts +76 -0
- package/dist/service/cloudformation/resource/state/sim-cfn-resource-deletion-state.d.ts.map +1 -0
- package/dist/service/cloudformation/resource/state/sim-cfn-resource-deletion-state.js +113 -0
- package/dist/service/cloudformation/resource/state/sim-cfn-resource-deletion-state.js.map +1 -0
- package/dist/service/cloudformation/resource/template/sim-cfn-resource-template-reader.d.ts +4 -0
- package/dist/service/cloudformation/resource/template/sim-cfn-resource-template-reader.d.ts.map +1 -1
- package/dist/service/cloudformation/resource/template/sim-cfn-resource-template-reader.js +7 -0
- package/dist/service/cloudformation/resource/template/sim-cfn-resource-template-reader.js.map +1 -1
- package/dist/service/cloudformation/resource/unsupported/sim-cfn-unsupported-resource.d.ts +12 -0
- package/dist/service/cloudformation/resource/unsupported/sim-cfn-unsupported-resource.d.ts.map +1 -0
- package/dist/service/cloudformation/resource/unsupported/sim-cfn-unsupported-resource.js +16 -0
- package/dist/service/cloudformation/resource/unsupported/sim-cfn-unsupported-resource.js.map +1 -0
- package/dist/service/cloudformation/sdk/sim-cloudformation-sdk-command-router.d.ts.map +1 -1
- package/dist/service/cloudformation/sdk/sim-cloudformation-sdk-command-router.js +8 -0
- package/dist/service/cloudformation/sdk/sim-cloudformation-sdk-command-router.js.map +1 -1
- package/dist/service/cloudformation/sim-cloudformation.d.ts +51 -5
- package/dist/service/cloudformation/sim-cloudformation.d.ts.map +1 -1
- package/dist/service/cloudformation/sim-cloudformation.js +85 -12
- package/dist/service/cloudformation/sim-cloudformation.js.map +1 -1
- package/dist/service/cloudformation/stack/deploy/sim-cfn-stack-deployment-lifecycle.d.ts +1 -1
- package/dist/service/cloudformation/stack/deploy/sim-cfn-stack-deployment-lifecycle.js +4 -4
- package/dist/service/cloudformation/stack/deploy/sim-cfn-stack-deployment-lifecycle.js.map +1 -1
- package/dist/service/cloudformation/stack/deploy/sim-cfn-stack-resource-batch-creator.d.ts +1 -5
- package/dist/service/cloudformation/stack/deploy/sim-cfn-stack-resource-batch-creator.d.ts.map +1 -1
- package/dist/service/cloudformation/stack/deploy/sim-cfn-stack-resource-batch-creator.js +2 -9
- package/dist/service/cloudformation/stack/deploy/sim-cfn-stack-resource-batch-creator.js.map +1 -1
- package/dist/service/cloudformation/stack/deploy/sim-cfn-stack-resource-creator.d.ts +13 -2
- package/dist/service/cloudformation/stack/deploy/sim-cfn-stack-resource-creator.d.ts.map +1 -1
- package/dist/service/cloudformation/stack/deploy/sim-cfn-stack-resource-creator.js +17 -4
- package/dist/service/cloudformation/stack/deploy/sim-cfn-stack-resource-creator.js.map +1 -1
- package/dist/service/cloudformation/stack/report/sim-cfn-stack-resource-report.d.ts +36 -0
- package/dist/service/cloudformation/stack/report/sim-cfn-stack-resource-report.d.ts.map +1 -0
- package/dist/service/cloudformation/stack/report/sim-cfn-stack-resource-report.js +49 -0
- package/dist/service/cloudformation/stack/report/sim-cfn-stack-resource-report.js.map +1 -0
- package/dist/service/cloudformation/stack/sim-cfn-stack-operation-scheduler.d.ts +47 -0
- package/dist/service/cloudformation/stack/sim-cfn-stack-operation-scheduler.d.ts.map +1 -0
- package/dist/service/cloudformation/stack/sim-cfn-stack-operation-scheduler.js +64 -0
- package/dist/service/cloudformation/stack/sim-cfn-stack-operation-scheduler.js.map +1 -0
- package/dist/service/cloudformation/stack/sim-cfn-stack-resource-operations.d.ts +78 -0
- package/dist/service/cloudformation/stack/sim-cfn-stack-resource-operations.d.ts.map +1 -0
- package/dist/service/cloudformation/stack/sim-cfn-stack-resource-operations.js +109 -0
- package/dist/service/cloudformation/stack/sim-cfn-stack-resource-operations.js.map +1 -0
- package/dist/service/cloudformation/stack/sim-cfn-stack.d.ts +75 -29
- package/dist/service/cloudformation/stack/sim-cfn-stack.d.ts.map +1 -1
- package/dist/service/cloudformation/stack/sim-cfn-stack.js +131 -57
- package/dist/service/cloudformation/stack/sim-cfn-stack.js.map +1 -1
- package/dist/service/cloudformation/stack/status/sim-cfn-stack-operation-status.d.ts +30 -0
- package/dist/service/cloudformation/stack/status/sim-cfn-stack-operation-status.d.ts.map +1 -0
- package/dist/service/cloudformation/stack/status/sim-cfn-stack-operation-status.js +34 -0
- package/dist/service/cloudformation/stack/status/sim-cfn-stack-operation-status.js.map +1 -0
- package/dist/service/cloudformation/stack/teardown/sim-cfn-stack-deletion-lifecycle.d.ts +74 -0
- package/dist/service/cloudformation/stack/teardown/sim-cfn-stack-deletion-lifecycle.d.ts.map +1 -0
- package/dist/service/cloudformation/stack/teardown/sim-cfn-stack-deletion-lifecycle.js +88 -0
- package/dist/service/cloudformation/stack/teardown/sim-cfn-stack-deletion-lifecycle.js.map +1 -0
- package/dist/service/cloudformation/stack/teardown/sim-cfn-stack-pending-deletions.d.ts +41 -0
- package/dist/service/cloudformation/stack/teardown/sim-cfn-stack-pending-deletions.d.ts.map +1 -0
- package/dist/service/cloudformation/stack/teardown/sim-cfn-stack-pending-deletions.js +56 -0
- package/dist/service/cloudformation/stack/teardown/sim-cfn-stack-pending-deletions.js.map +1 -0
- package/dist/service/cloudformation/stack/teardown/sim-cfn-stack-resource-batch-deleter.d.ts +29 -0
- package/dist/service/cloudformation/stack/teardown/sim-cfn-stack-resource-batch-deleter.d.ts.map +1 -0
- package/dist/service/cloudformation/stack/teardown/sim-cfn-stack-resource-batch-deleter.js +32 -0
- package/dist/service/cloudformation/stack/teardown/sim-cfn-stack-resource-batch-deleter.js.map +1 -0
- package/dist/service/cloudformation/stack/teardown/sim-cfn-stack-resource-deleter.d.ts +52 -0
- package/dist/service/cloudformation/stack/teardown/sim-cfn-stack-resource-deleter.d.ts.map +1 -0
- package/dist/service/cloudformation/stack/teardown/sim-cfn-stack-resource-deleter.js +67 -0
- package/dist/service/cloudformation/stack/teardown/sim-cfn-stack-resource-deleter.js.map +1 -0
- package/dist/service/cloudformation/stack/update/sim-cfn-stack-replaced-resources.d.ts +22 -0
- package/dist/service/cloudformation/stack/update/sim-cfn-stack-replaced-resources.d.ts.map +1 -0
- package/dist/service/cloudformation/stack/update/sim-cfn-stack-replaced-resources.js +52 -0
- package/dist/service/cloudformation/stack/update/sim-cfn-stack-replaced-resources.js.map +1 -0
- package/dist/service/cloudformation/stack/update/sim-cfn-stack-template-changes.d.ts +16 -0
- package/dist/service/cloudformation/stack/update/sim-cfn-stack-template-changes.d.ts.map +1 -0
- package/dist/service/cloudformation/stack/update/sim-cfn-stack-template-changes.js +32 -0
- package/dist/service/cloudformation/stack/update/sim-cfn-stack-template-changes.js.map +1 -0
- package/dist/service/cloudformation/stack/update/sim-cfn-stack-update-lifecycle.d.ts +64 -0
- package/dist/service/cloudformation/stack/update/sim-cfn-stack-update-lifecycle.d.ts.map +1 -0
- package/dist/service/cloudformation/stack/update/sim-cfn-stack-update-lifecycle.js +95 -0
- package/dist/service/cloudformation/stack/update/sim-cfn-stack-update-lifecycle.js.map +1 -0
- package/dist/service/cloudformation/stack/update/sim-cfn-stack-update-plan.d.ts +50 -0
- package/dist/service/cloudformation/stack/update/sim-cfn-stack-update-plan.d.ts.map +1 -0
- package/dist/service/cloudformation/stack/update/sim-cfn-stack-update-plan.js +76 -0
- package/dist/service/cloudformation/stack/update/sim-cfn-stack-update-plan.js.map +1 -0
- package/dist/service/cloudformation/stack/update/sim-cfn-stack-updater.d.ts +52 -0
- package/dist/service/cloudformation/stack/update/sim-cfn-stack-updater.d.ts.map +1 -0
- package/dist/service/cloudformation/stack/update/sim-cfn-stack-updater.js +65 -0
- package/dist/service/cloudformation/stack/update/sim-cfn-stack-updater.js.map +1 -0
- package/dist/service/cloudformation/stack/update/sim-cfn-template-signature.d.ts +17 -0
- package/dist/service/cloudformation/stack/update/sim-cfn-template-signature.d.ts.map +1 -0
- package/dist/service/cloudformation/stack/update/sim-cfn-template-signature.js +24 -0
- package/dist/service/cloudformation/stack/update/sim-cfn-template-signature.js.map +1 -0
- package/dist/service/cloudformation/watch/sim-cfn-template-file-events.d.ts +30 -0
- package/dist/service/cloudformation/watch/sim-cfn-template-file-events.d.ts.map +1 -0
- package/dist/service/cloudformation/watch/sim-cfn-template-file-events.js +51 -0
- package/dist/service/cloudformation/watch/sim-cfn-template-file-events.js.map +1 -0
- package/dist/service/cloudformation/watch/sim-cfn-template-file-watch.d.ts +39 -0
- package/dist/service/cloudformation/watch/sim-cfn-template-file-watch.d.ts.map +1 -0
- package/dist/service/cloudformation/watch/sim-cfn-template-file-watch.js +73 -0
- package/dist/service/cloudformation/watch/sim-cfn-template-file-watch.js.map +1 -0
- package/dist/service/cloudformation/watch/sim-cfn-template-file-watches.d.ts +46 -0
- package/dist/service/cloudformation/watch/sim-cfn-template-file-watches.d.ts.map +1 -0
- package/dist/service/cloudformation/watch/sim-cfn-template-file-watches.js +0 -0
- package/dist/service/cloudformation/watch/sim-cfn-template-file-watches.js.map +1 -0
- package/dist/service/cloudformation/watch/sim-cfn-template-watch-report.d.ts +25 -0
- package/dist/service/cloudformation/watch/sim-cfn-template-watch-report.d.ts.map +1 -0
- package/dist/service/cloudformation/watch/sim-cfn-template-watch-report.js +35 -0
- package/dist/service/cloudformation/watch/sim-cfn-template-watch-report.js.map +1 -0
- package/dist/service/cloudformation/watch/sim-cfn-template-watch-update.d.ts +44 -0
- package/dist/service/cloudformation/watch/sim-cfn-template-watch-update.d.ts.map +1 -0
- package/dist/service/cloudformation/watch/sim-cfn-template-watch-update.js +75 -0
- package/dist/service/cloudformation/watch/sim-cfn-template-watch-update.js.map +1 -0
- package/dist/service/cloudformation/watch/sim-cfn-template-watch.type.d.ts +30 -0
- package/dist/service/cloudformation/watch/sim-cfn-template-watch.type.d.ts.map +1 -0
- package/dist/service/cloudformation/watch/sim-cfn-template-watch.type.js +2 -0
- package/dist/service/cloudformation/watch/sim-cfn-template-watch.type.js.map +1 -0
- package/dist/service/cloudfront/cfn/distro/sim-cfn-cf-distro-deleter.d.ts +29 -0
- package/dist/service/cloudfront/cfn/distro/sim-cfn-cf-distro-deleter.d.ts.map +1 -0
- package/dist/service/cloudfront/cfn/distro/sim-cfn-cf-distro-deleter.js +42 -0
- package/dist/service/cloudfront/cfn/distro/sim-cfn-cf-distro-deleter.js.map +1 -0
- package/dist/service/cloudfront/cfn/sim-cfn-cloudfront-resource-factory.d.ts +8 -0
- package/dist/service/cloudfront/cfn/sim-cfn-cloudfront-resource-factory.d.ts.map +1 -1
- package/dist/service/cloudfront/cfn/sim-cfn-cloudfront-resource-factory.js +32 -0
- package/dist/service/cloudfront/cfn/sim-cfn-cloudfront-resource-factory.js.map +1 -1
- package/dist/service/cloudfront/command/create-distribution/create-distribution.command.d.ts +2 -9
- 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.map +1 -1
- package/dist/service/cloudfront/command/create-distribution/create-distribution.handler.js +5 -13
- package/dist/service/cloudfront/command/create-distribution/create-distribution.handler.js.map +1 -1
- package/dist/service/cloudfront/command/delete-distribution/delete-distribution-authorizer.d.ts +31 -0
- package/dist/service/cloudfront/command/delete-distribution/delete-distribution-authorizer.d.ts.map +1 -0
- package/dist/service/cloudfront/command/delete-distribution/delete-distribution-authorizer.js +40 -0
- package/dist/service/cloudfront/command/delete-distribution/delete-distribution-authorizer.js.map +1 -0
- package/dist/service/cloudfront/command/delete-distribution/delete-distribution.command.d.ts +27 -0
- package/dist/service/cloudfront/command/delete-distribution/delete-distribution.command.d.ts.map +1 -0
- package/dist/service/cloudfront/command/delete-distribution/delete-distribution.command.js +2 -0
- package/dist/service/cloudfront/command/delete-distribution/delete-distribution.command.js.map +1 -0
- package/dist/service/cloudfront/command/delete-distribution/delete-distribution.handler.d.ts +47 -0
- package/dist/service/cloudfront/command/delete-distribution/delete-distribution.handler.d.ts.map +1 -0
- package/dist/service/cloudfront/command/delete-distribution/delete-distribution.handler.js +53 -0
- package/dist/service/cloudfront/command/delete-distribution/delete-distribution.handler.js.map +1 -0
- package/dist/service/cloudfront/command/delete-function/delete-function-authorizer.d.ts +27 -0
- package/dist/service/cloudfront/command/delete-function/delete-function-authorizer.d.ts.map +1 -0
- package/dist/service/cloudfront/command/delete-function/delete-function-authorizer.js +36 -0
- package/dist/service/cloudfront/command/delete-function/delete-function-authorizer.js.map +1 -0
- package/dist/service/cloudfront/command/delete-function/delete-function.command.d.ts +27 -0
- package/dist/service/cloudfront/command/delete-function/delete-function.command.d.ts.map +1 -0
- package/dist/service/cloudfront/command/delete-function/delete-function.command.js +2 -0
- package/dist/service/cloudfront/command/delete-function/delete-function.command.js.map +1 -0
- package/dist/service/cloudfront/command/delete-function/delete-function.handler.d.ts +43 -0
- package/dist/service/cloudfront/command/delete-function/delete-function.handler.d.ts.map +1 -0
- package/dist/service/cloudfront/command/delete-function/delete-function.handler.js +46 -0
- package/dist/service/cloudfront/command/delete-function/delete-function.handler.js.map +1 -0
- package/dist/service/cloudfront/command/get-distribution/get-distribution.command.d.ts +2 -10
- package/dist/service/cloudfront/command/get-distribution/get-distribution.command.d.ts.map +1 -1
- package/dist/service/cloudfront/command/get-distribution/get-distribution.handler.d.ts.map +1 -1
- package/dist/service/cloudfront/command/get-distribution/get-distribution.handler.js +4 -11
- package/dist/service/cloudfront/command/get-distribution/get-distribution.handler.js.map +1 -1
- package/dist/service/cloudfront/command/update-distribution/update-distribution-authorizer.d.ts +27 -0
- package/dist/service/cloudfront/command/update-distribution/update-distribution-authorizer.d.ts.map +1 -0
- package/dist/service/cloudfront/command/update-distribution/update-distribution-authorizer.js +36 -0
- package/dist/service/cloudfront/command/update-distribution/update-distribution-authorizer.js.map +1 -0
- package/dist/service/cloudfront/command/update-distribution/update-distribution.command.d.ts +32 -0
- package/dist/service/cloudfront/command/update-distribution/update-distribution.command.d.ts.map +1 -0
- package/dist/service/cloudfront/command/update-distribution/update-distribution.command.js +2 -0
- package/dist/service/cloudfront/command/update-distribution/update-distribution.command.js.map +1 -0
- package/dist/service/cloudfront/command/update-distribution/update-distribution.handler.d.ts +48 -0
- package/dist/service/cloudfront/command/update-distribution/update-distribution.handler.d.ts.map +1 -0
- package/dist/service/cloudfront/command/update-distribution/update-distribution.handler.js +63 -0
- package/dist/service/cloudfront/command/update-distribution/update-distribution.handler.js.map +1 -0
- package/dist/service/cloudfront/distribution/configurator/sim-cf-distribution-configurator.factory.d.ts +16 -0
- package/dist/service/cloudfront/distribution/configurator/sim-cf-distribution-configurator.factory.d.ts.map +1 -0
- package/dist/service/cloudfront/distribution/configurator/sim-cf-distribution-configurator.factory.js +13 -0
- package/dist/service/cloudfront/distribution/configurator/sim-cf-distribution-configurator.factory.js.map +1 -0
- package/dist/service/cloudfront/distribution/sim-cf-distribution-reconfigurer.d.ts +35 -0
- package/dist/service/cloudfront/distribution/sim-cf-distribution-reconfigurer.d.ts.map +1 -0
- package/dist/service/cloudfront/distribution/sim-cf-distribution-reconfigurer.js +37 -0
- package/dist/service/cloudfront/distribution/sim-cf-distribution-reconfigurer.js.map +1 -0
- package/dist/service/cloudfront/distribution/sim-cf-distribution-view.d.ts +27 -0
- package/dist/service/cloudfront/distribution/sim-cf-distribution-view.d.ts.map +1 -0
- package/dist/service/cloudfront/distribution/sim-cf-distribution-view.js +22 -0
- package/dist/service/cloudfront/distribution/sim-cf-distribution-view.js.map +1 -0
- package/dist/service/cloudfront/distribution/sim-cf-distro-config.factory.d.ts.map +1 -1
- package/dist/service/cloudfront/distribution/sim-cf-distro-config.factory.js +1 -0
- package/dist/service/cloudfront/distribution/sim-cf-distro-config.factory.js.map +1 -1
- package/dist/service/cloudfront/distribution/sim-cloudfront-distribution.d.ts +27 -1
- package/dist/service/cloudfront/distribution/sim-cloudfront-distribution.d.ts.map +1 -1
- package/dist/service/cloudfront/distribution/sim-cloudfront-distribution.js +49 -2
- package/dist/service/cloudfront/distribution/sim-cloudfront-distribution.js.map +1 -1
- package/dist/service/cloudfront/error/sim-cloudfront.error.d.ts +24 -3
- package/dist/service/cloudfront/error/sim-cloudfront.error.d.ts.map +1 -1
- package/dist/service/cloudfront/error/sim-cloudfront.error.js +28 -3
- package/dist/service/cloudfront/error/sim-cloudfront.error.js.map +1 -1
- package/dist/service/cloudfront/registry/sim-cloud-front-registry.d.ts +25 -0
- package/dist/service/cloudfront/registry/sim-cloud-front-registry.d.ts.map +1 -1
- package/dist/service/cloudfront/registry/sim-cloud-front-registry.js +48 -5
- package/dist/service/cloudfront/registry/sim-cloud-front-registry.js.map +1 -1
- package/dist/service/cloudfront/sdk/sim-cloudfront-sdk-command-router.d.ts.map +1 -1
- package/dist/service/cloudfront/sdk/sim-cloudfront-sdk-command-router.js +12 -0
- package/dist/service/cloudfront/sdk/sim-cloudfront-sdk-command-router.js.map +1 -1
- package/dist/service/cloudfront/sim-cloudfront-commands.d.ts +87 -0
- package/dist/service/cloudfront/sim-cloudfront-commands.d.ts.map +1 -0
- package/dist/service/cloudfront/sim-cloudfront-commands.js +97 -0
- package/dist/service/cloudfront/sim-cloudfront-commands.js.map +1 -0
- package/dist/service/cloudfront/sim-cloudfront.d.ts +24 -33
- package/dist/service/cloudfront/sim-cloudfront.d.ts.map +1 -1
- package/dist/service/cloudfront/sim-cloudfront.js +33 -48
- package/dist/service/cloudfront/sim-cloudfront.js.map +1 -1
- package/dist/service/cognito/cfn/sim-cfn-cognito-resource-deleter.d.ts +24 -0
- package/dist/service/cognito/cfn/sim-cfn-cognito-resource-deleter.d.ts.map +1 -0
- package/dist/service/cognito/cfn/sim-cfn-cognito-resource-deleter.js +55 -0
- package/dist/service/cognito/cfn/sim-cfn-cognito-resource-deleter.js.map +1 -0
- package/dist/service/cognito/cfn/sim-cfn-cognito-resource-factory.d.ts +5 -0
- package/dist/service/cognito/cfn/sim-cfn-cognito-resource-factory.d.ts.map +1 -1
- package/dist/service/cognito/cfn/sim-cfn-cognito-resource-factory.js +9 -0
- package/dist/service/cognito/cfn/sim-cfn-cognito-resource-factory.js.map +1 -1
- package/dist/service/dynamodb/cfn/sim-cfn-dynamodb-resource-deleter.d.ts +23 -0
- package/dist/service/dynamodb/cfn/sim-cfn-dynamodb-resource-deleter.d.ts.map +1 -0
- package/dist/service/dynamodb/cfn/sim-cfn-dynamodb-resource-deleter.js +29 -0
- package/dist/service/dynamodb/cfn/sim-cfn-dynamodb-resource-deleter.js.map +1 -0
- package/dist/service/dynamodb/cfn/sim-cfn-dynamodb-resource-factory.d.ts +5 -0
- package/dist/service/dynamodb/cfn/sim-cfn-dynamodb-resource-factory.d.ts.map +1 -1
- package/dist/service/dynamodb/cfn/sim-cfn-dynamodb-resource-factory.js +11 -0
- package/dist/service/dynamodb/cfn/sim-cfn-dynamodb-resource-factory.js.map +1 -1
- package/dist/service/iam/cfn/role/sim-cfn-iam-role-deleter.d.ts +30 -0
- package/dist/service/iam/cfn/role/sim-cfn-iam-role-deleter.d.ts.map +1 -0
- package/dist/service/iam/cfn/role/sim-cfn-iam-role-deleter.js +41 -0
- package/dist/service/iam/cfn/role/sim-cfn-iam-role-deleter.js.map +1 -0
- package/dist/service/iam/cfn/sim-cfn-iam-resource-deleter.d.ts +29 -0
- package/dist/service/iam/cfn/sim-cfn-iam-resource-deleter.d.ts.map +1 -0
- package/dist/service/iam/cfn/sim-cfn-iam-resource-deleter.js +61 -0
- package/dist/service/iam/cfn/sim-cfn-iam-resource-deleter.js.map +1 -0
- package/dist/service/iam/cfn/sim-cfn-iam-resource-factory.d.ts +6 -0
- package/dist/service/iam/cfn/sim-cfn-iam-resource-factory.d.ts.map +1 -1
- package/dist/service/iam/cfn/sim-cfn-iam-resource-factory.js +9 -0
- package/dist/service/iam/cfn/sim-cfn-iam-resource-factory.js.map +1 -1
- package/dist/service/kms/cfn/sim-cfn-kms-resource-deleter.d.ts +23 -0
- package/dist/service/kms/cfn/sim-cfn-kms-resource-deleter.d.ts.map +1 -0
- package/dist/service/kms/cfn/sim-cfn-kms-resource-deleter.js +40 -0
- package/dist/service/kms/cfn/sim-cfn-kms-resource-deleter.js.map +1 -0
- package/dist/service/kms/cfn/sim-cfn-kms-resource-factory.d.ts +5 -0
- package/dist/service/kms/cfn/sim-cfn-kms-resource-factory.d.ts.map +1 -1
- package/dist/service/kms/cfn/sim-cfn-kms-resource-factory.js +9 -0
- package/dist/service/kms/cfn/sim-cfn-kms-resource-factory.js.map +1 -1
- package/dist/service/lambda/cfn/sim-cfn-lambda-resource-deleter.d.ts +33 -0
- package/dist/service/lambda/cfn/sim-cfn-lambda-resource-deleter.d.ts.map +1 -0
- package/dist/service/lambda/cfn/sim-cfn-lambda-resource-deleter.js +80 -0
- package/dist/service/lambda/cfn/sim-cfn-lambda-resource-deleter.js.map +1 -0
- package/dist/service/lambda/cfn/sim-cfn-lambda-resource-factory.d.ts +5 -0
- package/dist/service/lambda/cfn/sim-cfn-lambda-resource-factory.d.ts.map +1 -1
- package/dist/service/lambda/cfn/sim-cfn-lambda-resource-factory.js +9 -0
- package/dist/service/lambda/cfn/sim-cfn-lambda-resource-factory.js.map +1 -1
- package/dist/service/route53/cfn/sim-cfn-route53-resource-deleter.d.ts +30 -0
- package/dist/service/route53/cfn/sim-cfn-route53-resource-deleter.d.ts.map +1 -0
- package/dist/service/route53/cfn/sim-cfn-route53-resource-deleter.js +63 -0
- package/dist/service/route53/cfn/sim-cfn-route53-resource-deleter.js.map +1 -0
- package/dist/service/route53/cfn/sim-cfn-route53-resource-factory.d.ts +6 -0
- package/dist/service/route53/cfn/sim-cfn-route53-resource-factory.d.ts.map +1 -1
- package/dist/service/route53/cfn/sim-cfn-route53-resource-factory.js +9 -0
- package/dist/service/route53/cfn/sim-cfn-route53-resource-factory.js.map +1 -1
- package/dist/service/s3/bucket/sim-s3-bucket-access.d.ts +4 -0
- package/dist/service/s3/bucket/sim-s3-bucket-access.d.ts.map +1 -1
- package/dist/service/s3/bucket/sim-s3-bucket-access.js +6 -0
- package/dist/service/s3/bucket/sim-s3-bucket-access.js.map +1 -1
- package/dist/service/s3/cfn/sim-cfn-s3-resource-deleter.d.ts +32 -0
- package/dist/service/s3/cfn/sim-cfn-s3-resource-deleter.d.ts.map +1 -0
- package/dist/service/s3/cfn/sim-cfn-s3-resource-deleter.js +51 -0
- package/dist/service/s3/cfn/sim-cfn-s3-resource-deleter.js.map +1 -0
- package/dist/service/s3/cfn/sim-cfn-s3-resource-factory.d.ts +5 -0
- package/dist/service/s3/cfn/sim-cfn-s3-resource-factory.d.ts.map +1 -1
- package/dist/service/s3/cfn/sim-cfn-s3-resource-factory.js +9 -0
- package/dist/service/s3/cfn/sim-cfn-s3-resource-factory.js.map +1 -1
- package/dist/service/secretsmanager/cfn/sim-cfn-secrets-manager-resource-factory.d.ts +11 -0
- package/dist/service/secretsmanager/cfn/sim-cfn-secrets-manager-resource-factory.d.ts.map +1 -1
- package/dist/service/secretsmanager/cfn/sim-cfn-secrets-manager-resource-factory.js +22 -0
- package/dist/service/secretsmanager/cfn/sim-cfn-secrets-manager-resource-factory.js.map +1 -1
- package/dist/service/sqs/cfn/sim-cfn-sqs-resource-deleter.d.ts +32 -0
- package/dist/service/sqs/cfn/sim-cfn-sqs-resource-deleter.d.ts.map +1 -0
- package/dist/service/sqs/cfn/sim-cfn-sqs-resource-deleter.js +61 -0
- package/dist/service/sqs/cfn/sim-cfn-sqs-resource-deleter.js.map +1 -0
- package/dist/service/sqs/cfn/sim-sqs-cfn-resource-factory.d.ts +6 -0
- package/dist/service/sqs/cfn/sim-sqs-cfn-resource-factory.d.ts.map +1 -1
- package/dist/service/sqs/cfn/sim-sqs-cfn-resource-factory.js +9 -0
- package/dist/service/sqs/cfn/sim-sqs-cfn-resource-factory.js.map +1 -1
- package/dist/service/sqs/queue/sim-sqs-queue-json-attribute.d.ts +4 -0
- package/dist/service/sqs/queue/sim-sqs-queue-json-attribute.d.ts.map +1 -1
- package/dist/service/sqs/queue/sim-sqs-queue-json-attribute.js +5 -1
- package/dist/service/sqs/queue/sim-sqs-queue-json-attribute.js.map +1 -1
- package/dist/service/ssm/cfn/parameter/sim-cfn-ssm-parameter-creator.d.ts +4 -3
- package/dist/service/ssm/cfn/parameter/sim-cfn-ssm-parameter-creator.d.ts.map +1 -1
- package/dist/service/ssm/cfn/parameter/sim-cfn-ssm-parameter-creator.js +4 -3
- package/dist/service/ssm/cfn/parameter/sim-cfn-ssm-parameter-creator.js.map +1 -1
- package/dist/service/ssm/cfn/sim-cfn-ssm-resource-factory.d.ts +5 -0
- package/dist/service/ssm/cfn/sim-cfn-ssm-resource-factory.d.ts.map +1 -1
- package/dist/service/ssm/cfn/sim-cfn-ssm-resource-factory.js +14 -0
- package/dist/service/ssm/cfn/sim-cfn-ssm-resource-factory.js.map +1 -1
- package/dist/watch/sim-watch-runtime.d.ts +76 -0
- package/dist/watch/sim-watch-runtime.d.ts.map +1 -0
- package/dist/watch/sim-watch-runtime.js +124 -0
- package/dist/watch/sim-watch-runtime.js.map +1 -0
- package/dist/watch/sim-watch-settle.d.ts +32 -0
- package/dist/watch/sim-watch-settle.d.ts.map +1 -0
- package/dist/watch/sim-watch-settle.js +43 -0
- package/dist/watch/sim-watch-settle.js.map +1 -0
- package/dist/watch/sim-watch.config.d.ts +22 -0
- package/dist/watch/sim-watch.config.d.ts.map +1 -0
- package/dist/watch/sim-watch.config.js +39 -0
- package/dist/watch/sim-watch.config.js.map +1 -0
- package/package.json +4 -1
- package/dist/service/cloudformation/error/sim-cloudfront.error.d.ts.map +0 -1
- package/dist/service/cloudformation/error/sim-cloudfront.error.js.map +0 -1
- package/dist/service/cloudformation/stack/deploy/sim-cfn-stack-deployment-scheduler.d.ts +0 -47
- package/dist/service/cloudformation/stack/deploy/sim-cfn-stack-deployment-scheduler.d.ts.map +0 -1
- package/dist/service/cloudformation/stack/deploy/sim-cfn-stack-deployment-scheduler.js +0 -64
- package/dist/service/cloudformation/stack/deploy/sim-cfn-stack-deployment-scheduler.js.map +0 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sim-cfn-stack-update-plan.js","sourceRoot":"","sources":["../../../../../src/service/cloudformation/stack/update/sim-cfn-stack-update-plan.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,6BAA6B,EAAE,MAAM,uCAAuC,CAAC;AAOtF;;;;;;;;;;;;GAYG;AACH,MAAM,OAAO,qBAAqB;IAChC;;;OAGG;IACa,SAAS,CAA4B;IAErD;;;OAGG;IACa,SAAS,CAA4B;IAEpC,OAAO,CAAsC;IAE9D,YAAY,UAA2C;QACrD,MAAM,EAAE,OAAO,EAAE,OAAO,EAAE,GAAG,UAAU,CAAC;QACxC,MAAM,QAAQ,GAAG,6BAA6B,CAAC,EAAE,OAAO,EAAE,OAAO,EAAE,CAAC,CAAC;QAErE,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;QAEvB,2EAA2E;QAC3E,oEAAoE;QACpE,IAAI,CAAC,SAAS,GAAG,OAAO;aACrB,MAAM,EAAE;aACR,MAAM,CAAC,CAAC,QAAQ,EAAE,EAAE;YACnB,OAAO,CACL,CAAC,OAAO,CAAC,GAAG,CAAC,QAAQ,CAAC,SAAS,CAAC,IAAI,QAAQ,CAAC,GAAG,CAAC,QAAQ,CAAC,SAAS,CAAC,CACrE,CAAC;QACJ,CAAC,CAAC;aACD,OAAO,EAAE,CAAC;QACb,IAAI,CAAC,SAAS,GAAG,OAAO;aACrB,MAAM,EAAE;aACR,MAAM,CAAC,CAAC,QAAQ,EAAE,EAAE;YACnB,OAAO,CACL,CAAC,OAAO,CAAC,GAAG,CAAC,QAAQ,CAAC,SAAS,CAAC,IAAI,QAAQ,CAAC,GAAG,CAAC,QAAQ,CAAC,SAAS,CAAC,CACrE,CAAC;QACJ,CAAC,CAAC;aACD,OAAO,EAAE,CAAC;IACf,CAAC;IAED;;;;;OAKG;IACH,IAAW,gBAAgB;QACzB,OAAO,IAAI,CAAC,SAAS,CAAC,MAAM,GAAG,CAAC,IAAI,IAAI,CAAC,SAAS,CAAC,MAAM,GAAG,CAAC,CAAC;IAChE,CAAC;IAED;;;;;;;OAOG;IACH,OAAO,CAAC,SAAsC;QAC5C,MAAM,OAAO,GAAG,SAAS;aACtB,IAAI,EAAE;aACN,MAAM,CAAC,CAAC,SAAS,EAAE,EAAE,CAAC,CAAC,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;aACnD,OAAO,EAAE,CAAC;QAEb,KAAK,MAAM,SAAS,IAAI,OAAO,EAAE,CAAC;YAChC,SAAS,CAAC,MAAM,CAAC,SAAS,CAAC,CAAC;QAC9B,CAAC;QAED,KAAK,MAAM,QAAQ,IAAI,IAAI,CAAC,SAAS,EAAE,CAAC;YACtC,SAAS,CAAC,GAAG,CAAC,QAAQ,CAAC,SAAS,EAAE,QAAQ,CAAC,CAAC;QAC9C,CAAC;IACH,CAAC;CACF"}
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
import type { BackgroundScheduler } from "../../../../util/background/background.js";
|
|
2
|
+
import type { SimAwsAccountRegionScope } from "../../../aws/sim-aws-account-region-scope.js";
|
|
3
|
+
import type { SimCfnResource } from "../../resource/sim-cfn-resource.js";
|
|
4
|
+
import type { SimCfnTemplate } from "../../template/sim-cfn-template.js";
|
|
5
|
+
import type { SimCfnStackResourceOperations } from "../sim-cfn-stack-resource-operations.js";
|
|
6
|
+
/**
|
|
7
|
+
* What CloudFormation answers an update that would change nothing.
|
|
8
|
+
*
|
|
9
|
+
* Named because a template file being watched is written far more often than it
|
|
10
|
+
* is changed, so telling this apart from a real failure is what makes a save
|
|
11
|
+
* with nothing in it a no-op rather than something to report.
|
|
12
|
+
*/
|
|
13
|
+
export declare const simCfnNoUpdatesMessage = "No updates are to be performed.";
|
|
14
|
+
interface SimCfnStackUpdaterProperties {
|
|
15
|
+
readonly accountRegionScope: SimAwsAccountRegionScope;
|
|
16
|
+
readonly background: BackgroundScheduler;
|
|
17
|
+
readonly resources: Map<string, SimCfnResource>;
|
|
18
|
+
readonly operations: SimCfnStackResourceOperations;
|
|
19
|
+
readonly current: SimCfnTemplate;
|
|
20
|
+
readonly updated: SimCfnTemplate;
|
|
21
|
+
}
|
|
22
|
+
/**
|
|
23
|
+
* Applies a changed template to a Stack that is already deployed.
|
|
24
|
+
*
|
|
25
|
+
* The Resources the new template drops or replaces go first, in the reverse of
|
|
26
|
+
* the order they were created in, and the ones it adds or replaces are created
|
|
27
|
+
* after, in dependency order. Everything else is left where it is, which is the
|
|
28
|
+
* point of updating a Stack rather than replacing it: what a Bucket holds and
|
|
29
|
+
* what a Table has in it survive a change elsewhere in the template.
|
|
30
|
+
*
|
|
31
|
+
* It does not own Stack status or the Stack's visible template.
|
|
32
|
+
* SimCfnStackUpdateLifecycle owns the first and SimCfnStack the second.
|
|
33
|
+
*/
|
|
34
|
+
export declare class SimCfnStackUpdater {
|
|
35
|
+
private readonly properties;
|
|
36
|
+
private readonly plan;
|
|
37
|
+
constructor(properties: SimCfnStackUpdaterProperties);
|
|
38
|
+
/**
|
|
39
|
+
* Refuse an update that would do nothing, the way CloudFormation refuses one.
|
|
40
|
+
*
|
|
41
|
+
* Everything else in the template counts as well as the Resources: a
|
|
42
|
+
* template that only changes an Output or a Description still updates the
|
|
43
|
+
* Stack.
|
|
44
|
+
*/
|
|
45
|
+
assertHasChanges(): void;
|
|
46
|
+
/**
|
|
47
|
+
* Reconcile the Stack's Resources with its new template.
|
|
48
|
+
*/
|
|
49
|
+
apply(): Promise<void>;
|
|
50
|
+
}
|
|
51
|
+
export {};
|
|
52
|
+
//# sourceMappingURL=sim-cfn-stack-updater.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sim-cfn-stack-updater.d.ts","sourceRoot":"","sources":["../../../../../src/service/cloudformation/stack/update/sim-cfn-stack-updater.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,2CAA2C,CAAC;AACrF,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,8CAA8C,CAAC;AAC7F,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,oCAAoC,CAAC;AACzE,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,oCAAoC,CAAC;AAEzE,OAAO,KAAK,EAAE,6BAA6B,EAAE,MAAM,yCAAyC,CAAC;AAK7F;;;;;;GAMG;AACH,eAAO,MAAM,sBAAsB,oCAAoC,CAAC;AAExE,UAAU,4BAA4B;IACpC,QAAQ,CAAC,kBAAkB,EAAE,wBAAwB,CAAC;IACtD,QAAQ,CAAC,UAAU,EAAE,mBAAmB,CAAC;IACzC,QAAQ,CAAC,SAAS,EAAE,GAAG,CAAC,MAAM,EAAE,cAAc,CAAC,CAAC;IAChD,QAAQ,CAAC,UAAU,EAAE,6BAA6B,CAAC;IACnD,QAAQ,CAAC,OAAO,EAAE,cAAc,CAAC;IACjC,QAAQ,CAAC,OAAO,EAAE,cAAc,CAAC;CAClC;AAED;;;;;;;;;;;GAWG;AACH,qBAAa,kBAAkB;IAC7B,OAAO,CAAC,QAAQ,CAAC,UAAU,CAA+B;IAC1D,OAAO,CAAC,QAAQ,CAAC,IAAI,CAAwB;IAE7C,YAAY,UAAU,EAAE,4BAA4B,EAYnD;IAED;;;;;;OAMG;IACH,gBAAgB,IAAI,IAAI,CASvB;IAED;;OAEG;IACG,KAAK,IAAI,OAAO,CAAC,IAAI,CAAC,CAS3B;CACF"}
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
import { SimCloudFormationValidationError } from "../../error/sim-cloudformation.error.js";
|
|
2
|
+
import { makeSimCfnStackResourceMap } from "../resource-map/sim-cfn-stack-resource-map.js";
|
|
3
|
+
import { SimCfnStackUpdatePlan } from "./sim-cfn-stack-update-plan.js";
|
|
4
|
+
import { simCfnStackTemplateChanged } from "./sim-cfn-stack-template-changes.js";
|
|
5
|
+
/**
|
|
6
|
+
* What CloudFormation answers an update that would change nothing.
|
|
7
|
+
*
|
|
8
|
+
* Named because a template file being watched is written far more often than it
|
|
9
|
+
* is changed, so telling this apart from a real failure is what makes a save
|
|
10
|
+
* with nothing in it a no-op rather than something to report.
|
|
11
|
+
*/
|
|
12
|
+
export const simCfnNoUpdatesMessage = "No updates are to be performed.";
|
|
13
|
+
/**
|
|
14
|
+
* Applies a changed template to a Stack that is already deployed.
|
|
15
|
+
*
|
|
16
|
+
* The Resources the new template drops or replaces go first, in the reverse of
|
|
17
|
+
* the order they were created in, and the ones it adds or replaces are created
|
|
18
|
+
* after, in dependency order. Everything else is left where it is, which is the
|
|
19
|
+
* point of updating a Stack rather than replacing it: what a Bucket holds and
|
|
20
|
+
* what a Table has in it survive a change elsewhere in the template.
|
|
21
|
+
*
|
|
22
|
+
* It does not own Stack status or the Stack's visible template.
|
|
23
|
+
* SimCfnStackUpdateLifecycle owns the first and SimCfnStack the second.
|
|
24
|
+
*/
|
|
25
|
+
export class SimCfnStackUpdater {
|
|
26
|
+
properties;
|
|
27
|
+
plan;
|
|
28
|
+
constructor(properties) {
|
|
29
|
+
const { accountRegionScope, background, resources, updated } = properties;
|
|
30
|
+
this.properties = properties;
|
|
31
|
+
this.plan = new SimCfnStackUpdatePlan({
|
|
32
|
+
current: resources,
|
|
33
|
+
updated: makeSimCfnStackResourceMap({
|
|
34
|
+
accountRegionScope,
|
|
35
|
+
background,
|
|
36
|
+
template: updated,
|
|
37
|
+
}),
|
|
38
|
+
});
|
|
39
|
+
}
|
|
40
|
+
/**
|
|
41
|
+
* Refuse an update that would do nothing, the way CloudFormation refuses one.
|
|
42
|
+
*
|
|
43
|
+
* Everything else in the template counts as well as the Resources: a
|
|
44
|
+
* template that only changes an Output or a Description still updates the
|
|
45
|
+
* Stack.
|
|
46
|
+
*/
|
|
47
|
+
assertHasChanges() {
|
|
48
|
+
const { current, updated } = this.properties;
|
|
49
|
+
if (!this.plan.changesResources &&
|
|
50
|
+
!simCfnStackTemplateChanged(current, updated)) {
|
|
51
|
+
throw new SimCloudFormationValidationError(simCfnNoUpdatesMessage);
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
/**
|
|
55
|
+
* Reconcile the Stack's Resources with its new template.
|
|
56
|
+
*/
|
|
57
|
+
async apply() {
|
|
58
|
+
const { resources, operations } = this.properties;
|
|
59
|
+
const { plan } = this;
|
|
60
|
+
await operations.delete(resources, plan.deletions);
|
|
61
|
+
plan.applyTo(resources);
|
|
62
|
+
await operations.create(resources, plan.creations);
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
//# sourceMappingURL=sim-cfn-stack-updater.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sim-cfn-stack-updater.js","sourceRoot":"","sources":["../../../../../src/service/cloudformation/stack/update/sim-cfn-stack-updater.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,gCAAgC,EAAE,MAAM,yCAAyC,CAAC;AAE3F,OAAO,EAAE,0BAA0B,EAAE,MAAM,+CAA+C,CAAC;AAC3F,OAAO,EAAE,qBAAqB,EAAE,MAAM,gCAAgC,CAAC;AACvE,OAAO,EAAE,0BAA0B,EAAE,MAAM,qCAAqC,CAAC;AAEjF;;;;;;GAMG;AACH,MAAM,CAAC,MAAM,sBAAsB,GAAG,iCAAiC,CAAC;AAWxE;;;;;;;;;;;GAWG;AACH,MAAM,OAAO,kBAAkB;IACZ,UAAU,CAA+B;IACzC,IAAI,CAAwB;IAE7C,YAAY,UAAwC;QAClD,MAAM,EAAE,kBAAkB,EAAE,UAAU,EAAE,SAAS,EAAE,OAAO,EAAE,GAAG,UAAU,CAAC;QAE1E,IAAI,CAAC,UAAU,GAAG,UAAU,CAAC;QAC7B,IAAI,CAAC,IAAI,GAAG,IAAI,qBAAqB,CAAC;YACpC,OAAO,EAAE,SAAS;YAClB,OAAO,EAAE,0BAA0B,CAAC;gBAClC,kBAAkB;gBAClB,UAAU;gBACV,QAAQ,EAAE,OAAO;aAClB,CAAC;SACH,CAAC,CAAC;IACL,CAAC;IAED;;;;;;OAMG;IACH,gBAAgB;QACd,MAAM,EAAE,OAAO,EAAE,OAAO,EAAE,GAAG,IAAI,CAAC,UAAU,CAAC;QAE7C,IACE,CAAC,IAAI,CAAC,IAAI,CAAC,gBAAgB;YAC3B,CAAC,0BAA0B,CAAC,OAAO,EAAE,OAAO,CAAC,EAC7C,CAAC;YACD,MAAM,IAAI,gCAAgC,CAAC,sBAAsB,CAAC,CAAC;QACrE,CAAC;IACH,CAAC;IAED;;OAEG;IACH,KAAK,CAAC,KAAK;QACT,MAAM,EAAE,SAAS,EAAE,UAAU,EAAE,GAAG,IAAI,CAAC,UAAU,CAAC;QAClD,MAAM,EAAE,IAAI,EAAE,GAAG,IAAI,CAAC;QAEtB,MAAM,UAAU,CAAC,MAAM,CAAC,SAAS,EAAE,IAAI,CAAC,SAAS,CAAC,CAAC;QAEnD,IAAI,CAAC,OAAO,CAAC,SAAS,CAAC,CAAC;QAExB,MAAM,UAAU,CAAC,MAAM,CAAC,SAAS,EAAE,IAAI,CAAC,SAAS,CAAC,CAAC;IACrD,CAAC;CACF"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import type { CfnTemplateBodyRecord } from "../../template/sim-cfn-template.js";
|
|
2
|
+
import type { SimCfnTemplateValue } from "../../template/value/sim-cfn-template-value.js";
|
|
3
|
+
/**
|
|
4
|
+
* A stable string for a piece of template, for telling one deployment of a
|
|
5
|
+
* Stack apart from the next.
|
|
6
|
+
*
|
|
7
|
+
* A Resource or Output entry is signed after Parameter and intrinsic function
|
|
8
|
+
* resolution, so two signatures differ when the deployed Resource would differ
|
|
9
|
+
* rather than when the template text does. A Parameter given a new value
|
|
10
|
+
* therefore shows up as a change, and a template reformatted without being
|
|
11
|
+
* changed does not.
|
|
12
|
+
*
|
|
13
|
+
* Object keys are sorted so that key order, which CloudFormation does not read
|
|
14
|
+
* anything into, does not read as a change either.
|
|
15
|
+
*/
|
|
16
|
+
export declare function simCfnTemplateSignature(value: SimCfnTemplateValue | readonly SimCfnTemplateValue[] | CfnTemplateBodyRecord): string;
|
|
17
|
+
//# sourceMappingURL=sim-cfn-template-signature.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sim-cfn-template-signature.d.ts","sourceRoot":"","sources":["../../../../../src/service/cloudformation/stack/update/sim-cfn-template-signature.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,oCAAoC,CAAC;AAChF,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,gDAAgD,CAAC;AAE1F;;;;;;;;;;;;GAYG;AACH,wBAAgB,uBAAuB,CACrC,KAAK,EACD,mBAAmB,GACnB,SAAS,mBAAmB,EAAE,GAC9B,qBAAqB,GACxB,MAAM,CAYR"}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { jsonStringify } from "../../../../util/type-guard/json.js";
|
|
2
|
+
import { isRecord } from "../../../../util/type-guard/record.js";
|
|
3
|
+
/**
|
|
4
|
+
* A stable string for a piece of template, for telling one deployment of a
|
|
5
|
+
* Stack apart from the next.
|
|
6
|
+
*
|
|
7
|
+
* A Resource or Output entry is signed after Parameter and intrinsic function
|
|
8
|
+
* resolution, so two signatures differ when the deployed Resource would differ
|
|
9
|
+
* rather than when the template text does. A Parameter given a new value
|
|
10
|
+
* therefore shows up as a change, and a template reformatted without being
|
|
11
|
+
* changed does not.
|
|
12
|
+
*
|
|
13
|
+
* Object keys are sorted so that key order, which CloudFormation does not read
|
|
14
|
+
* anything into, does not read as a change either.
|
|
15
|
+
*/
|
|
16
|
+
export function simCfnTemplateSignature(value) {
|
|
17
|
+
return jsonStringify(value, (_key, entry) => {
|
|
18
|
+
if (!isRecord(entry)) {
|
|
19
|
+
return entry;
|
|
20
|
+
}
|
|
21
|
+
return Object.fromEntries(Object.entries(entry).toSorted(([left], [right]) => left.localeCompare(right)));
|
|
22
|
+
});
|
|
23
|
+
}
|
|
24
|
+
//# sourceMappingURL=sim-cfn-template-signature.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sim-cfn-template-signature.js","sourceRoot":"","sources":["../../../../../src/service/cloudformation/stack/update/sim-cfn-template-signature.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,qCAAqC,CAAC;AACpE,OAAO,EAAE,QAAQ,EAAE,MAAM,uCAAuC,CAAC;AAIjE;;;;;;;;;;;;GAYG;AACH,MAAM,UAAU,uBAAuB,CACrC,KAGyB;IAEzB,OAAO,aAAa,CAAC,KAAK,EAAE,CAAC,IAAY,EAAE,KAAc,EAAW,EAAE;QACpE,IAAI,CAAC,QAAQ,CAAC,KAAK,CAAC,EAAE,CAAC;YACrB,OAAO,KAAK,CAAC;QACf,CAAC;QAED,OAAO,MAAM,CAAC,WAAW,CACvB,MAAM,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,IAAI,CAAC,EAAE,CAAC,KAAK,CAAC,EAAE,EAAE,CACjD,IAAI,CAAC,aAAa,CAAC,KAAK,CAAC,CAC1B,CACF,CAAC;IACJ,CAAC,CAAC,CAAC;AACL,CAAC"}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
interface SimCfnTemplateFileEventsProperties {
|
|
2
|
+
readonly templatePath: string;
|
|
3
|
+
readonly onEvent: () => void;
|
|
4
|
+
}
|
|
5
|
+
/**
|
|
6
|
+
* Filesystem events for one template file.
|
|
7
|
+
*
|
|
8
|
+
* The directory is what gets watched, not the file. A synthesis writes a
|
|
9
|
+
* temporary file and renames it over the template, so a watch on the file
|
|
10
|
+
* itself is left holding the file that was replaced. Events for anything else
|
|
11
|
+
* in the directory, which for a cloud assembly is every other stack in it and
|
|
12
|
+
* every staged asset, are dropped by name.
|
|
13
|
+
*/
|
|
14
|
+
export declare class SimCfnTemplateFileEvents {
|
|
15
|
+
private readonly directoryPath;
|
|
16
|
+
private readonly fileName;
|
|
17
|
+
private readonly onEvent;
|
|
18
|
+
private watcher;
|
|
19
|
+
constructor(properties: SimCfnTemplateFileEventsProperties);
|
|
20
|
+
/**
|
|
21
|
+
* Start listening for writes to the template file.
|
|
22
|
+
*/
|
|
23
|
+
start(): void;
|
|
24
|
+
/**
|
|
25
|
+
* Stop listening.
|
|
26
|
+
*/
|
|
27
|
+
close(): void;
|
|
28
|
+
}
|
|
29
|
+
export {};
|
|
30
|
+
//# sourceMappingURL=sim-cfn-template-file-events.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sim-cfn-template-file-events.d.ts","sourceRoot":"","sources":["../../../../src/service/cloudformation/watch/sim-cfn-template-file-events.ts"],"names":[],"mappings":"AAGA,UAAU,kCAAkC;IAC1C,QAAQ,CAAC,YAAY,EAAE,MAAM,CAAC;IAC9B,QAAQ,CAAC,OAAO,EAAE,MAAM,IAAI,CAAC;CAC9B;AAED;;;;;;;;GAQG;AACH,qBAAa,wBAAwB;IACnC,OAAO,CAAC,QAAQ,CAAC,aAAa,CAAS;IACvC,OAAO,CAAC,QAAQ,CAAC,QAAQ,CAAS;IAClC,OAAO,CAAC,QAAQ,CAAC,OAAO,CAAa;IACrC,OAAO,CAAC,OAAO,CAAwB;IAEvC,YAAY,UAAU,EAAE,kCAAkC,EAIzD;IAED;;OAEG;IACH,KAAK,IAAI,IAAI,CAmBZ;IAED;;OAEG;IACH,KAAK,IAAI,IAAI,CAGZ;CACF"}
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
import fs, {} from "node:fs";
|
|
2
|
+
import path from "node:path";
|
|
3
|
+
/**
|
|
4
|
+
* Filesystem events for one template file.
|
|
5
|
+
*
|
|
6
|
+
* The directory is what gets watched, not the file. A synthesis writes a
|
|
7
|
+
* temporary file and renames it over the template, so a watch on the file
|
|
8
|
+
* itself is left holding the file that was replaced. Events for anything else
|
|
9
|
+
* in the directory, which for a cloud assembly is every other stack in it and
|
|
10
|
+
* every staged asset, are dropped by name.
|
|
11
|
+
*/
|
|
12
|
+
export class SimCfnTemplateFileEvents {
|
|
13
|
+
directoryPath;
|
|
14
|
+
fileName;
|
|
15
|
+
onEvent;
|
|
16
|
+
watcher;
|
|
17
|
+
constructor(properties) {
|
|
18
|
+
this.directoryPath = path.dirname(properties.templatePath);
|
|
19
|
+
this.fileName = path.basename(properties.templatePath);
|
|
20
|
+
this.onEvent = properties.onEvent;
|
|
21
|
+
}
|
|
22
|
+
/**
|
|
23
|
+
* Start listening for writes to the template file.
|
|
24
|
+
*/
|
|
25
|
+
start() {
|
|
26
|
+
// eslint-disable-next-line security/detect-non-literal-fs-filename
|
|
27
|
+
const watcher = fs.watch(this.directoryPath, (_event, fileName) => {
|
|
28
|
+
if (fileName === this.fileName) {
|
|
29
|
+
this.onEvent();
|
|
30
|
+
}
|
|
31
|
+
});
|
|
32
|
+
// The directory can be deleted or replaced, and a watcher with no error
|
|
33
|
+
// listener throws. Nothing here can put it back.
|
|
34
|
+
/* v8 ignore next 4 -- raised where the platform reports a watch going away,
|
|
35
|
+
* which macOS does not do for a deleted directory, so nothing here can make
|
|
36
|
+
* it happen on the machine this suite runs on. */
|
|
37
|
+
watcher.on("error", () => {
|
|
38
|
+
watcher.close();
|
|
39
|
+
this.watcher = undefined;
|
|
40
|
+
});
|
|
41
|
+
this.watcher = watcher;
|
|
42
|
+
}
|
|
43
|
+
/**
|
|
44
|
+
* Stop listening.
|
|
45
|
+
*/
|
|
46
|
+
close() {
|
|
47
|
+
this.watcher?.close();
|
|
48
|
+
this.watcher = undefined;
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
//# sourceMappingURL=sim-cfn-template-file-events.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sim-cfn-template-file-events.js","sourceRoot":"","sources":["../../../../src/service/cloudformation/watch/sim-cfn-template-file-events.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,EAAE,EAAkB,MAAM,SAAS,CAAC;AAC7C,OAAO,IAAI,MAAM,WAAW,CAAC;AAO7B;;;;;;;;GAQG;AACH,MAAM,OAAO,wBAAwB;IAClB,aAAa,CAAS;IACtB,QAAQ,CAAS;IACjB,OAAO,CAAa;IAC7B,OAAO,CAAwB;IAEvC,YAAY,UAA8C;QACxD,IAAI,CAAC,aAAa,GAAG,IAAI,CAAC,OAAO,CAAC,UAAU,CAAC,YAAY,CAAC,CAAC;QAC3D,IAAI,CAAC,QAAQ,GAAG,IAAI,CAAC,QAAQ,CAAC,UAAU,CAAC,YAAY,CAAC,CAAC;QACvD,IAAI,CAAC,OAAO,GAAG,UAAU,CAAC,OAAO,CAAC;IACpC,CAAC;IAED;;OAEG;IACH,KAAK;QACH,mEAAmE;QACnE,MAAM,OAAO,GAAG,EAAE,CAAC,KAAK,CAAC,IAAI,CAAC,aAAa,EAAE,CAAC,MAAM,EAAE,QAAQ,EAAE,EAAE;YAChE,IAAI,QAAQ,KAAK,IAAI,CAAC,QAAQ,EAAE,CAAC;gBAC/B,IAAI,CAAC,OAAO,EAAE,CAAC;YACjB,CAAC;QACH,CAAC,CAAC,CAAC;QAEH,wEAAwE;QACxE,iDAAiD;QACjD;;0DAEkD;QAClD,OAAO,CAAC,EAAE,CAAC,OAAO,EAAE,GAAG,EAAE;YACvB,OAAO,CAAC,KAAK,EAAE,CAAC;YAChB,IAAI,CAAC,OAAO,GAAG,SAAS,CAAC;QAC3B,CAAC,CAAC,CAAC;QAEH,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;IACzB,CAAC;IAED;;OAEG;IACH,KAAK;QACH,IAAI,CAAC,OAAO,EAAE,KAAK,EAAE,CAAC;QACtB,IAAI,CAAC,OAAO,GAAG,SAAS,CAAC;IAC3B,CAAC;CACF"}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { type SimWatchRuntime } from "../../../watch/sim-watch-runtime.js";
|
|
2
|
+
interface SimCfnTemplateFileWatchProperties {
|
|
3
|
+
readonly templatePath: string;
|
|
4
|
+
readonly onChanged: () => Promise<void>;
|
|
5
|
+
readonly settleMs?: number | undefined;
|
|
6
|
+
readonly watch?: SimWatchRuntime | undefined;
|
|
7
|
+
}
|
|
8
|
+
/**
|
|
9
|
+
* Watches one deployed template file, and applies it again when it changes.
|
|
10
|
+
*
|
|
11
|
+
* Changes are applied one at a time. A save arriving while an update is still
|
|
12
|
+
* running waits for it, rather than being refused as a second update of a Stack
|
|
13
|
+
* that is already updating.
|
|
14
|
+
*/
|
|
15
|
+
export declare class SimCfnTemplateFileWatch {
|
|
16
|
+
private readonly templatePath;
|
|
17
|
+
private readonly onChanged;
|
|
18
|
+
private readonly settle;
|
|
19
|
+
private readonly events;
|
|
20
|
+
private readonly watch;
|
|
21
|
+
private applying;
|
|
22
|
+
constructor(properties: SimCfnTemplateFileWatchProperties);
|
|
23
|
+
/**
|
|
24
|
+
* Start watching.
|
|
25
|
+
*
|
|
26
|
+
* A `yulin watch` supervisor is told the path is handled here, so a
|
|
27
|
+
* re-synthesis updates the Stack in place instead of restarting the process
|
|
28
|
+
* and taking every simulated Bucket and Table with it.
|
|
29
|
+
*/
|
|
30
|
+
start(): void;
|
|
31
|
+
/**
|
|
32
|
+
* Stop watching, and drop a change that was still settling.
|
|
33
|
+
*/
|
|
34
|
+
close(): void;
|
|
35
|
+
private apply;
|
|
36
|
+
private applyAfter;
|
|
37
|
+
}
|
|
38
|
+
export {};
|
|
39
|
+
//# sourceMappingURL=sim-cfn-template-file-watch.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sim-cfn-template-file-watch.d.ts","sourceRoot":"","sources":["../../../../src/service/cloudformation/watch/sim-cfn-template-file-watch.ts"],"names":[],"mappings":"AAEA,OAAO,EAEL,KAAK,eAAe,EACrB,MAAM,qCAAqC,CAAC;AAI7C,UAAU,iCAAiC;IACzC,QAAQ,CAAC,YAAY,EAAE,MAAM,CAAC;IAC9B,QAAQ,CAAC,SAAS,EAAE,MAAM,OAAO,CAAC,IAAI,CAAC,CAAC;IACxC,QAAQ,CAAC,QAAQ,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IACvC,QAAQ,CAAC,KAAK,CAAC,EAAE,eAAe,GAAG,SAAS,CAAC;CAC9C;AAED;;;;;;GAMG;AACH,qBAAa,uBAAuB;IAClC,OAAO,CAAC,QAAQ,CAAC,YAAY,CAAS;IACtC,OAAO,CAAC,QAAQ,CAAC,SAAS,CAAsB;IAChD,OAAO,CAAC,QAAQ,CAAC,MAAM,CAAiB;IACxC,OAAO,CAAC,QAAQ,CAAC,MAAM,CAA2B;IAClD,OAAO,CAAC,QAAQ,CAAC,KAAK,CAAkB;IACxC,OAAO,CAAC,QAAQ,CAAoC;IAEpD,YAAY,UAAU,EAAE,iCAAiC,EAuBxD;IAED;;;;;;OAMG;IACH,KAAK,IAAI,IAAI,CAGZ;IAED;;OAEG;IACH,KAAK,IAAI,IAAI,CAGZ;IAGD,OAAO,CAAC,KAAK;YAIC,UAAU;CAYzB"}
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
import path from "node:path";
|
|
2
|
+
import { SimWatchSettle } from "../../../watch/sim-watch-settle.js";
|
|
3
|
+
import { simWatch, } from "../../../watch/sim-watch-runtime.js";
|
|
4
|
+
import { simWatchConfig } from "../../../watch/sim-watch.config.js";
|
|
5
|
+
import { SimCfnTemplateFileEvents } from "./sim-cfn-template-file-events.js";
|
|
6
|
+
/**
|
|
7
|
+
* Watches one deployed template file, and applies it again when it changes.
|
|
8
|
+
*
|
|
9
|
+
* Changes are applied one at a time. A save arriving while an update is still
|
|
10
|
+
* running waits for it, rather than being refused as a second update of a Stack
|
|
11
|
+
* that is already updating.
|
|
12
|
+
*/
|
|
13
|
+
export class SimCfnTemplateFileWatch {
|
|
14
|
+
templatePath;
|
|
15
|
+
onChanged;
|
|
16
|
+
settle;
|
|
17
|
+
events;
|
|
18
|
+
watch;
|
|
19
|
+
applying = Promise.resolve();
|
|
20
|
+
constructor(properties) {
|
|
21
|
+
const { templatePath, onChanged, settleMs = simWatchConfig.settleMs, watch = simWatch, } = properties;
|
|
22
|
+
this.templatePath = path.resolve(templatePath);
|
|
23
|
+
this.onChanged = onChanged;
|
|
24
|
+
this.watch = watch;
|
|
25
|
+
this.settle = new SimWatchSettle({
|
|
26
|
+
settleMs,
|
|
27
|
+
onSettled: () => {
|
|
28
|
+
this.apply();
|
|
29
|
+
},
|
|
30
|
+
});
|
|
31
|
+
this.events = new SimCfnTemplateFileEvents({
|
|
32
|
+
templatePath: this.templatePath,
|
|
33
|
+
onEvent: () => {
|
|
34
|
+
this.settle.record(this.templatePath);
|
|
35
|
+
},
|
|
36
|
+
});
|
|
37
|
+
}
|
|
38
|
+
/**
|
|
39
|
+
* Start watching.
|
|
40
|
+
*
|
|
41
|
+
* A `yulin watch` supervisor is told the path is handled here, so a
|
|
42
|
+
* re-synthesis updates the Stack in place instead of restarting the process
|
|
43
|
+
* and taking every simulated Bucket and Table with it.
|
|
44
|
+
*/
|
|
45
|
+
start() {
|
|
46
|
+
this.watch.reportHeldPath(this.templatePath);
|
|
47
|
+
this.events.start();
|
|
48
|
+
}
|
|
49
|
+
/**
|
|
50
|
+
* Stop watching, and drop a change that was still settling.
|
|
51
|
+
*/
|
|
52
|
+
close() {
|
|
53
|
+
this.settle.cancel();
|
|
54
|
+
this.events.close();
|
|
55
|
+
}
|
|
56
|
+
// Queued rather than started, so two saves in a row are two updates in order.
|
|
57
|
+
apply() {
|
|
58
|
+
this.applying = this.applyAfter(this.applying);
|
|
59
|
+
}
|
|
60
|
+
async applyAfter(applying) {
|
|
61
|
+
await applying;
|
|
62
|
+
try {
|
|
63
|
+
await this.onChanged();
|
|
64
|
+
}
|
|
65
|
+
catch {
|
|
66
|
+
// The change handler answers a failed update and a callback that threw
|
|
67
|
+
// itself, so anything still thrown here is the watch failing rather than
|
|
68
|
+
// the update. It is dropped because the queue has to survive it: a
|
|
69
|
+
// rejected link in it would refuse every save after this one.
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
//# sourceMappingURL=sim-cfn-template-file-watch.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sim-cfn-template-file-watch.js","sourceRoot":"","sources":["../../../../src/service/cloudformation/watch/sim-cfn-template-file-watch.ts"],"names":[],"mappings":"AAAA,OAAO,IAAI,MAAM,WAAW,CAAC;AAC7B,OAAO,EAAE,cAAc,EAAE,MAAM,oCAAoC,CAAC;AACpE,OAAO,EACL,QAAQ,GAET,MAAM,qCAAqC,CAAC;AAC7C,OAAO,EAAE,cAAc,EAAE,MAAM,oCAAoC,CAAC;AACpE,OAAO,EAAE,wBAAwB,EAAE,MAAM,mCAAmC,CAAC;AAS7E;;;;;;GAMG;AACH,MAAM,OAAO,uBAAuB;IACjB,YAAY,CAAS;IACrB,SAAS,CAAsB;IAC/B,MAAM,CAAiB;IACvB,MAAM,CAA2B;IACjC,KAAK,CAAkB;IAChC,QAAQ,GAAkB,OAAO,CAAC,OAAO,EAAE,CAAC;IAEpD,YAAY,UAA6C;QACvD,MAAM,EACJ,YAAY,EACZ,SAAS,EACT,QAAQ,GAAG,cAAc,CAAC,QAAQ,EAClC,KAAK,GAAG,QAAQ,GACjB,GAAG,UAAU,CAAC;QAEf,IAAI,CAAC,YAAY,GAAG,IAAI,CAAC,OAAO,CAAC,YAAY,CAAC,CAAC;QAC/C,IAAI,CAAC,SAAS,GAAG,SAAS,CAAC;QAC3B,IAAI,CAAC,KAAK,GAAG,KAAK,CAAC;QACnB,IAAI,CAAC,MAAM,GAAG,IAAI,cAAc,CAAC;YAC/B,QAAQ;YACR,SAAS,EAAE,GAAS,EAAE;gBACpB,IAAI,CAAC,KAAK,EAAE,CAAC;YACf,CAAC;SACF,CAAC,CAAC;QACH,IAAI,CAAC,MAAM,GAAG,IAAI,wBAAwB,CAAC;YACzC,YAAY,EAAE,IAAI,CAAC,YAAY;YAC/B,OAAO,EAAE,GAAS,EAAE;gBAClB,IAAI,CAAC,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,YAAY,CAAC,CAAC;YACxC,CAAC;SACF,CAAC,CAAC;IACL,CAAC;IAED;;;;;;OAMG;IACH,KAAK;QACH,IAAI,CAAC,KAAK,CAAC,cAAc,CAAC,IAAI,CAAC,YAAY,CAAC,CAAC;QAC7C,IAAI,CAAC,MAAM,CAAC,KAAK,EAAE,CAAC;IACtB,CAAC;IAED;;OAEG;IACH,KAAK;QACH,IAAI,CAAC,MAAM,CAAC,MAAM,EAAE,CAAC;QACrB,IAAI,CAAC,MAAM,CAAC,KAAK,EAAE,CAAC;IACtB,CAAC;IAED,8EAA8E;IACtE,KAAK;QACX,IAAI,CAAC,QAAQ,GAAG,IAAI,CAAC,UAAU,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC;IACjD,CAAC;IAEO,KAAK,CAAC,UAAU,CAAC,QAAuB;QAC9C,MAAM,QAAQ,CAAC;QAEf,IAAI,CAAC;YACH,MAAM,IAAI,CAAC,SAAS,EAAE,CAAC;QACzB,CAAC;QAAC,MAAM,CAAC;YACP,uEAAuE;YACvE,yEAAyE;YACzE,mEAAmE;YACnE,8DAA8D;QAChE,CAAC;IACH,CAAC;CACF"}
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import type { SimCloudFormationDeployTemplateFileProperties } from "../deploy/sim-cfn-template-file-loader.js";
|
|
2
|
+
import type { SimCfnTemplateFileUpdating } from "../deploy/sim-cfn-template-file-updater.js";
|
|
3
|
+
import type { SimCfnTemplateFileWatchOptions } from "./sim-cfn-template-watch.type.js";
|
|
4
|
+
interface SimCfnTemplateFileWatchesProperties {
|
|
5
|
+
readonly updater: SimCfnTemplateFileUpdating;
|
|
6
|
+
}
|
|
7
|
+
/**
|
|
8
|
+
* The template files this simulated CloudFormation is watching.
|
|
9
|
+
*
|
|
10
|
+
* One watch per deployment rather than per file, so a file deployed as two
|
|
11
|
+
* Stacks updates both of them. Deploying the same Stack from the same file
|
|
12
|
+
* again replaces its watch instead, since the deployment that just happened is
|
|
13
|
+
* the live one and the watch it replaces would be applying the file to the
|
|
14
|
+
* Stack it deployed before.
|
|
15
|
+
*
|
|
16
|
+
* A watch holds an open filesystem handle, which keeps the process alive, so
|
|
17
|
+
* anything that starts one needs a way to let it go. `stopAll()` is that way,
|
|
18
|
+
* and a long-running dev process simply never calls it.
|
|
19
|
+
*/
|
|
20
|
+
export declare class SimCfnTemplateFileWatches {
|
|
21
|
+
private readonly updater;
|
|
22
|
+
private readonly watches;
|
|
23
|
+
constructor(properties: SimCfnTemplateFileWatchesProperties);
|
|
24
|
+
/**
|
|
25
|
+
* Watch a deployed template file, if the deployment asked to keep reading it.
|
|
26
|
+
*/
|
|
27
|
+
watchIfAsked(deployment: SimCloudFormationDeployTemplateFileProperties): void;
|
|
28
|
+
/**
|
|
29
|
+
* Watch a deployed template file, and update its Stack when it changes.
|
|
30
|
+
*/
|
|
31
|
+
add(deployment: SimCloudFormationDeployTemplateFileProperties, options: SimCfnTemplateFileWatchOptions): void;
|
|
32
|
+
/**
|
|
33
|
+
* The template files being watched, as `yulin watch` is told about them.
|
|
34
|
+
*
|
|
35
|
+
* A file two Stacks were deployed from is named once. What a supervisor does
|
|
36
|
+
* with it is the same whether one deployment is reading it or several.
|
|
37
|
+
*/
|
|
38
|
+
paths(): readonly string[];
|
|
39
|
+
/**
|
|
40
|
+
* Stop watching everything, so nothing is left holding the process open.
|
|
41
|
+
*/
|
|
42
|
+
stopAll(): void;
|
|
43
|
+
private remove;
|
|
44
|
+
}
|
|
45
|
+
export {};
|
|
46
|
+
//# sourceMappingURL=sim-cfn-template-file-watches.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sim-cfn-template-file-watches.d.ts","sourceRoot":"","sources":["../../../../src/service/cloudformation/watch/sim-cfn-template-file-watches.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,6CAA6C,EAAE,MAAM,2CAA2C,CAAC;AAC/G,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,4CAA4C,CAAC;AAG7F,OAAO,KAAK,EAAE,8BAA8B,EAAE,MAAM,kCAAkC,CAAC;AAEvF,UAAU,mCAAmC;IAC3C,QAAQ,CAAC,OAAO,EAAE,0BAA0B,CAAC;CAC9C;AAED;;;;;;;;;;;;GAYG;AACH,qBAAa,yBAAyB;IACpC,OAAO,CAAC,QAAQ,CAAC,OAAO,CAA6B;IACrD,OAAO,CAAC,QAAQ,CAAC,OAAO,CAAwC;IAEhE,YAAY,UAAU,EAAE,mCAAmC,EAE1D;IAED;;OAEG;IACH,YAAY,CACV,UAAU,EAAE,6CAA6C,GACxD,IAAI,CAMN;IAED;;OAEG;IACH,GAAG,CACD,UAAU,EAAE,6CAA6C,EACzD,OAAO,EAAE,8BAA8B,GACtC,IAAI,CAsBN;IAED;;;;;OAKG;IACH,KAAK,IAAI,SAAS,MAAM,EAAE,CAIzB;IAED;;OAEG;IACH,OAAO,IAAI,IAAI,CAMd;IAED,OAAO,CAAC,MAAM;CAIf"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sim-cfn-template-file-watches.js","sourceRoot":"","sources":["../../../../src/service/cloudformation/watch/sim-cfn-template-file-watches.ts"],"names":[],"mappings":"AAAA,OAAO,IAAI,MAAM,WAAW,CAAC;AAG7B,OAAO,EAAE,uBAAuB,EAAE,MAAM,kCAAkC,CAAC;AAC3E,OAAO,EAAE,yBAAyB,EAAE,MAAM,oCAAoC,CAAC;AAO/E;;;;;;;;;;;;GAYG;AACH,MAAM,OAAO,yBAAyB;IACnB,OAAO,CAA6B;IACpC,OAAO,GAAG,IAAI,GAAG,EAA6B,CAAC;IAEhE,YAAY,UAA+C;QACzD,IAAI,CAAC,OAAO,GAAG,UAAU,CAAC,OAAO,CAAC;IACpC,CAAC;IAED;;OAEG;IACH,YAAY,CACV,UAAyD;QAEzD,MAAM,OAAO,GAAG,YAAY,CAAC,UAAU,CAAC,KAAK,CAAC,CAAC;QAE/C,IAAI,OAAO,KAAK,SAAS,EAAE,CAAC;YAC1B,IAAI,CAAC,GAAG,CAAC,UAAU,EAAE,OAAO,CAAC,CAAC;QAChC,CAAC;IACH,CAAC;IAED;;OAEG;IACH,GAAG,CACD,UAAyD,EACzD,OAAuC;QAEvC,MAAM,YAAY,GAAG,IAAI,CAAC,OAAO,CAAC,UAAU,CAAC,YAAY,CAAC,CAAC;QAC3D,MAAM,MAAM,GAAG,IAAI,yBAAyB,CAAC;YAC3C,YAAY;YACZ,UAAU;YACV,OAAO,EAAE,IAAI,CAAC,OAAO;YACrB,OAAO;SACR,CAAC,CAAC;QAEH,MAAM,aAAa,GAAG,QAAQ,CAAC,YAAY,EAAE,UAAU,CAAC,SAAS,CAAC,CAAC;QACnE,IAAI,CAAC,MAAM,CAAC,aAAa,CAAC,CAAC;QAE3B,MAAM,KAAK,GAAG,IAAI,uBAAuB,CAAC;YACxC,YAAY;YACZ,SAAS,EAAE,KAAK,IAAmB,EAAE;gBACnC,MAAM,MAAM,CAAC,KAAK,EAAE,CAAC;YACvB,CAAC;YACD,QAAQ,EAAE,OAAO,CAAC,QAAQ;SAC3B,CAAC,CAAC;QAEH,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,aAAa,EAAE,EAAE,YAAY,EAAE,KAAK,EAAE,CAAC,CAAC;QACzD,KAAK,CAAC,KAAK,EAAE,CAAC;IAChB,CAAC;IAED;;;;;OAKG;IACH,KAAK;QACH,OAAO;YACL,GAAG,IAAI,GAAG,CAAC,IAAI,CAAC,OAAO,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,OAAO,EAAE,EAAE,CAAC,OAAO,CAAC,YAAY,CAAC,CAAC;SACzE,CAAC;IACJ,CAAC;IAED;;OAEG;IACH,OAAO;QACL,KAAK,MAAM,OAAO,IAAI,IAAI,CAAC,OAAO,CAAC,MAAM,EAAE,EAAE,CAAC;YAC5C,OAAO,CAAC,KAAK,CAAC,KAAK,EAAE,CAAC;QACxB,CAAC;QAED,IAAI,CAAC,OAAO,CAAC,KAAK,EAAE,CAAC;IACvB,CAAC;IAEO,MAAM,CAAC,aAAqB;QAClC,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,aAAa,CAAC,EAAE,KAAK,CAAC,KAAK,EAAE,CAAC;QAC/C,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,aAAa,CAAC,CAAC;IACrC,CAAC;CACF;AAOD;;;;;;GAMG;AACH,SAAS,QAAQ,CAAC,YAAoB,EAAE,SAA6B;IACnE,OAAO,GAAG,YAAY,IAAI,SAAS,IAAI,EAAE,EAAE,CAAC;AAC9C,CAAC;AAED;;GAEG;AACH,SAAS,YAAY,CACnB,KAA2D;IAE3D,IAAI,KAAK,KAAK,SAAS,IAAI,KAAK,KAAK,KAAK,EAAE,CAAC;QAC3C,OAAO,SAAS,CAAC;IACnB,CAAC;IAED,IAAI,KAAK,KAAK,IAAI,EAAE,CAAC;QACnB,OAAO,EAAE,CAAC;IACZ,CAAC;IAED,OAAO,KAAK,CAAC;AACf,CAAC"}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Says why a watched template could not be applied.
|
|
3
|
+
*
|
|
4
|
+
* A failed update leaves the Stack where the update got to, and the process
|
|
5
|
+
* serving it still up, which is the reason to update in place rather than
|
|
6
|
+
* restart. That is only useful if the reason it failed is somewhere the person
|
|
7
|
+
* who saved the file will see it.
|
|
8
|
+
*
|
|
9
|
+
* It goes to the console because the simulator has no logger of its own, the
|
|
10
|
+
* same as every other warning it raises.
|
|
11
|
+
*/
|
|
12
|
+
export declare class SimCfnTemplateWatchReport {
|
|
13
|
+
/**
|
|
14
|
+
* Report an update the changed template file did not survive.
|
|
15
|
+
*/
|
|
16
|
+
failed(templatePath: string, error: Error): void;
|
|
17
|
+
/**
|
|
18
|
+
* Report a callback the watch was given that threw.
|
|
19
|
+
*
|
|
20
|
+
* Said separately from a failed update, because what went wrong is whatever
|
|
21
|
+
* was meant to happen about the update rather than the update itself.
|
|
22
|
+
*/
|
|
23
|
+
listenerFailed(templatePath: string, listener: string, error: Error): void;
|
|
24
|
+
}
|
|
25
|
+
//# sourceMappingURL=sim-cfn-template-watch-report.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sim-cfn-template-watch-report.d.ts","sourceRoot":"","sources":["../../../../src/service/cloudformation/watch/sim-cfn-template-watch-report.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AACH,qBAAa,yBAAyB;IACpC;;OAEG;IACH,MAAM,CAAC,YAAY,EAAE,MAAM,EAAE,KAAK,EAAE,KAAK,GAAG,IAAI,CAQ/C;IAED;;;;;OAKG;IACH,cAAc,CAAC,YAAY,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,EAAE,KAAK,EAAE,KAAK,GAAG,IAAI,CAMzE;CACF"}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Says why a watched template could not be applied.
|
|
3
|
+
*
|
|
4
|
+
* A failed update leaves the Stack where the update got to, and the process
|
|
5
|
+
* serving it still up, which is the reason to update in place rather than
|
|
6
|
+
* restart. That is only useful if the reason it failed is somewhere the person
|
|
7
|
+
* who saved the file will see it.
|
|
8
|
+
*
|
|
9
|
+
* It goes to the console because the simulator has no logger of its own, the
|
|
10
|
+
* same as every other warning it raises.
|
|
11
|
+
*/
|
|
12
|
+
export class SimCfnTemplateWatchReport {
|
|
13
|
+
/**
|
|
14
|
+
* Report an update the changed template file did not survive.
|
|
15
|
+
*/
|
|
16
|
+
failed(templatePath, error) {
|
|
17
|
+
// eslint-disable-next-line no-console
|
|
18
|
+
console.warn(`Simulated CloudFormation could not apply the changed template ` +
|
|
19
|
+
`${templatePath}: ${error.message}. The Stack is left where the ` +
|
|
20
|
+
`update got to, since there is no rollback to the template it was ` +
|
|
21
|
+
`deployed from.`);
|
|
22
|
+
}
|
|
23
|
+
/**
|
|
24
|
+
* Report a callback the watch was given that threw.
|
|
25
|
+
*
|
|
26
|
+
* Said separately from a failed update, because what went wrong is whatever
|
|
27
|
+
* was meant to happen about the update rather than the update itself.
|
|
28
|
+
*/
|
|
29
|
+
listenerFailed(templatePath, listener, error) {
|
|
30
|
+
// eslint-disable-next-line no-console
|
|
31
|
+
console.warn(`Simulated CloudFormation ran the ${listener} callback for the watched ` +
|
|
32
|
+
`template ${templatePath}, and it threw: ${error.message}`);
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
//# sourceMappingURL=sim-cfn-template-watch-report.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sim-cfn-template-watch-report.js","sourceRoot":"","sources":["../../../../src/service/cloudformation/watch/sim-cfn-template-watch-report.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AACH,MAAM,OAAO,yBAAyB;IACpC;;OAEG;IACH,MAAM,CAAC,YAAoB,EAAE,KAAY;QACvC,sCAAsC;QACtC,OAAO,CAAC,IAAI,CACV,gEAAgE;YAC9D,GAAG,YAAY,KAAK,KAAK,CAAC,OAAO,gCAAgC;YACjE,mEAAmE;YACnE,gBAAgB,CACnB,CAAC;IACJ,CAAC;IAED;;;;;OAKG;IACH,cAAc,CAAC,YAAoB,EAAE,QAAgB,EAAE,KAAY;QACjE,sCAAsC;QACtC,OAAO,CAAC,IAAI,CACV,oCAAoC,QAAQ,4BAA4B;YACtE,YAAY,YAAY,mBAAmB,KAAK,CAAC,OAAO,EAAE,CAC7D,CAAC;IACJ,CAAC;CACF"}
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import type { SimCloudFormationDeployTemplateFileProperties } from "../deploy/sim-cfn-template-file-loader.js";
|
|
2
|
+
import type { SimCfnTemplateFileUpdating } from "../deploy/sim-cfn-template-file-updater.js";
|
|
3
|
+
import { SimCfnTemplateWatchReport } from "./sim-cfn-template-watch-report.js";
|
|
4
|
+
import type { SimCfnTemplateFileWatchOptions } from "./sim-cfn-template-watch.type.js";
|
|
5
|
+
interface SimCfnTemplateWatchUpdateProperties {
|
|
6
|
+
readonly templatePath: string;
|
|
7
|
+
readonly deployment: SimCloudFormationDeployTemplateFileProperties;
|
|
8
|
+
readonly updater: SimCfnTemplateFileUpdating;
|
|
9
|
+
readonly options: SimCfnTemplateFileWatchOptions;
|
|
10
|
+
readonly report?: SimCfnTemplateWatchReport | undefined;
|
|
11
|
+
}
|
|
12
|
+
/**
|
|
13
|
+
* One application of a changed template file, and what to make of how it went.
|
|
14
|
+
*
|
|
15
|
+
* Three things can come of a save, and only one of them is an update. A file
|
|
16
|
+
* written without being changed is refused by the Stack and is a no-op here,
|
|
17
|
+
* since a template is written far more often than it is changed. An update that
|
|
18
|
+
* failed is reported and left there: the Stack keeps the Resources it had, and
|
|
19
|
+
* a browser looking at them is not told anything changed, because nothing did.
|
|
20
|
+
*
|
|
21
|
+
* Nothing thrown gets past this, because the watch applies changes one after
|
|
22
|
+
* another and a rejection would stop it applying any more.
|
|
23
|
+
*/
|
|
24
|
+
export declare class SimCfnTemplateWatchUpdate {
|
|
25
|
+
private readonly properties;
|
|
26
|
+
private readonly report;
|
|
27
|
+
constructor(properties: SimCfnTemplateWatchUpdateProperties);
|
|
28
|
+
/**
|
|
29
|
+
* Apply the template file to its Stack, and answer for the result.
|
|
30
|
+
*/
|
|
31
|
+
apply(): Promise<void>;
|
|
32
|
+
private refused;
|
|
33
|
+
private updated;
|
|
34
|
+
/**
|
|
35
|
+
* Run a callback the watch was given, without letting it break the watch.
|
|
36
|
+
*
|
|
37
|
+
* A callback that throws is the caller's own code failing, and it says so
|
|
38
|
+
* rather than being passed on: a throw from here would go on to be the
|
|
39
|
+
* rejection that stops every save after it being applied.
|
|
40
|
+
*/
|
|
41
|
+
private notify;
|
|
42
|
+
}
|
|
43
|
+
export {};
|
|
44
|
+
//# sourceMappingURL=sim-cfn-template-watch-update.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sim-cfn-template-watch-update.d.ts","sourceRoot":"","sources":["../../../../src/service/cloudformation/watch/sim-cfn-template-watch-update.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,6CAA6C,EAAE,MAAM,2CAA2C,CAAC;AAC/G,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,4CAA4C,CAAC;AAE7F,OAAO,EAAE,yBAAyB,EAAE,MAAM,oCAAoC,CAAC;AAC/E,OAAO,KAAK,EAAE,8BAA8B,EAAE,MAAM,kCAAkC,CAAC;AAEvF,UAAU,mCAAmC;IAC3C,QAAQ,CAAC,YAAY,EAAE,MAAM,CAAC;IAC9B,QAAQ,CAAC,UAAU,EAAE,6CAA6C,CAAC;IACnE,QAAQ,CAAC,OAAO,EAAE,0BAA0B,CAAC;IAC7C,QAAQ,CAAC,OAAO,EAAE,8BAA8B,CAAC;IACjD,QAAQ,CAAC,MAAM,CAAC,EAAE,yBAAyB,GAAG,SAAS,CAAC;CACzD;AAED;;;;;;;;;;;GAWG;AACH,qBAAa,yBAAyB;IACpC,OAAO,CAAC,QAAQ,CAAC,UAAU,CAAsC;IACjE,OAAO,CAAC,QAAQ,CAAC,MAAM,CAA4B;IAEnD,YAAY,UAAU,EAAE,mCAAmC,EAG1D;IAED;;OAEG;IACG,KAAK,IAAI,OAAO,CAAC,IAAI,CAAC,CAY3B;IAED,OAAO,CAAC,OAAO;IAkBf,OAAO,CAAC,OAAO;IAIf;;;;;;OAMG;IACH,OAAO,CAAC,MAAM;CAWf"}
|