@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,61 @@
|
|
|
1
|
+
import { simSqsQueuePolicyAttributeName } from "../queue/sim-sqs-queue-attribute-specs.js";
|
|
2
|
+
import { assertDefined } from "../../../util/type-guard/defined.js";
|
|
3
|
+
/**
|
|
4
|
+
* Deletes the simulated SQS resources a CloudFormation Stack created.
|
|
5
|
+
*
|
|
6
|
+
* There is no DeleteQueuePolicy in SQS. A queue policy is the `Policy`
|
|
7
|
+
* attribute of the queues it names, so removing one is SetQueueAttributes
|
|
8
|
+
* setting that attribute to an empty string, which is how the SDK clears it
|
|
9
|
+
* too.
|
|
10
|
+
*/
|
|
11
|
+
export class SimCfnSqsResourceDeleter {
|
|
12
|
+
sqs;
|
|
13
|
+
constructor(properties) {
|
|
14
|
+
this.sqs = properties.sqs;
|
|
15
|
+
}
|
|
16
|
+
/**
|
|
17
|
+
* Delete a simulated SQS resource created from a CloudFormation Resource.
|
|
18
|
+
*/
|
|
19
|
+
async delete(resourceTypeName, resource, properties) {
|
|
20
|
+
switch (resourceTypeName) {
|
|
21
|
+
case "Queue": {
|
|
22
|
+
await this.deleteQueue(resource);
|
|
23
|
+
return;
|
|
24
|
+
}
|
|
25
|
+
case "QueuePolicy": {
|
|
26
|
+
await this.clearQueuePolicy(properties);
|
|
27
|
+
return;
|
|
28
|
+
}
|
|
29
|
+
default: {
|
|
30
|
+
throw new Error(`Unsupported sim SQS CloudFormation Resource ${resourceTypeName} deletion`);
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
async deleteQueue(resource) {
|
|
35
|
+
const queue = resource.simResource;
|
|
36
|
+
assertDefined(queue, `sim SQS queue for CloudFormation Resource ${resource.logicalId}`);
|
|
37
|
+
await this.sqs.deleteQueue({ input: { QueueUrl: queue.url } });
|
|
38
|
+
}
|
|
39
|
+
/**
|
|
40
|
+
* Take the policy back off every queue the Resource named.
|
|
41
|
+
*
|
|
42
|
+
* The Resource points at only the first of them, so the queues are read from
|
|
43
|
+
* the template the same way creation read them.
|
|
44
|
+
*/
|
|
45
|
+
async clearQueuePolicy(properties) {
|
|
46
|
+
const queues = properties["Queues"];
|
|
47
|
+
/* v8 ignore if -- creation refused the Resource without a Queues list */
|
|
48
|
+
if (!Array.isArray(queues)) {
|
|
49
|
+
return;
|
|
50
|
+
}
|
|
51
|
+
await Promise.all(queues
|
|
52
|
+
.filter((queueUrl) => typeof queueUrl === "string")
|
|
53
|
+
.map(async (queueUrl) => this.sqs.setQueueAttributes({
|
|
54
|
+
input: {
|
|
55
|
+
QueueUrl: queueUrl,
|
|
56
|
+
Attributes: { [simSqsQueuePolicyAttributeName]: "" },
|
|
57
|
+
},
|
|
58
|
+
})));
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
//# sourceMappingURL=sim-cfn-sqs-resource-deleter.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sim-cfn-sqs-resource-deleter.js","sourceRoot":"","sources":["../../../../src/service/sqs/cfn/sim-cfn-sqs-resource-deleter.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,8BAA8B,EAAE,MAAM,2CAA2C,CAAC;AAC3F,OAAO,EAAE,aAAa,EAAE,MAAM,qCAAqC,CAAC;AAMpE;;;;;;;GAOG;AACH,MAAM,OAAO,wBAAwB;IAClB,GAAG,CAAS;IAE7B,YAAY,UAA8C;QACxD,IAAI,CAAC,GAAG,GAAG,UAAU,CAAC,GAAG,CAAC;IAC5B,CAAC;IAED;;OAEG;IACH,KAAK,CAAC,MAAM,CACV,gBAAwB,EACxB,QAAwB,EACxB,UAAqC;QAErC,QAAQ,gBAAgB,EAAE,CAAC;YACzB,KAAK,OAAO,EAAE,CAAC;gBACb,MAAM,IAAI,CAAC,WAAW,CAAC,QAAQ,CAAC,CAAC;gBACjC,OAAO;YACT,CAAC;YACD,KAAK,aAAa,EAAE,CAAC;gBACnB,MAAM,IAAI,CAAC,gBAAgB,CAAC,UAAU,CAAC,CAAC;gBACxC,OAAO;YACT,CAAC;YACD,SAAS,CAAC;gBACR,MAAM,IAAI,KAAK,CACb,+CAA+C,gBAAgB,WAAW,CAC3E,CAAC;YACJ,CAAC;QACH,CAAC;IACH,CAAC;IAEO,KAAK,CAAC,WAAW,CAAC,QAAwB;QAChD,MAAM,KAAK,GAAG,QAAQ,CAAC,WAAsC,CAAC;QAC9D,aAAa,CACX,KAAK,EACL,6CAA6C,QAAQ,CAAC,SAAS,EAAE,CAClE,CAAC;QAEF,MAAM,IAAI,CAAC,GAAG,CAAC,WAAW,CAAC,EAAE,KAAK,EAAE,EAAE,QAAQ,EAAE,KAAK,CAAC,GAAG,EAAE,EAAE,CAAC,CAAC;IACjE,CAAC;IAED;;;;;OAKG;IACK,KAAK,CAAC,gBAAgB,CAC5B,UAAqC;QAErC,MAAM,MAAM,GAAG,UAAU,CAAC,QAAQ,CAAC,CAAC;QAEpC,yEAAyE;QACzE,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,MAAM,CAAC,EAAE,CAAC;YAC3B,OAAO;QACT,CAAC;QAED,MAAM,OAAO,CAAC,GAAG,CACf,MAAM;aACH,MAAM,CAAC,CAAC,QAAQ,EAAsB,EAAE,CAAC,OAAO,QAAQ,KAAK,QAAQ,CAAC;aACtE,GAAG,CAAC,KAAK,EAAE,QAAQ,EAAE,EAAE,CACtB,IAAI,CAAC,GAAG,CAAC,kBAAkB,CAAC;YAC1B,KAAK,EAAE;gBACL,QAAQ,EAAE,QAAQ;gBAClB,UAAU,EAAE,EAAE,CAAC,8BAA8B,CAAC,EAAE,EAAE,EAAE;aACrD;SACF,CAAC,CACH,CACJ,CAAC;IACJ,CAAC;CACF"}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import type { SimCfnServiceResourceFactory } from "../../cloudformation/resource/factory/sim-cfn-resource-factory.type.js";
|
|
2
2
|
import type { SimCfnResource, SimCloudFormationResourceCreateContext } from "../../cloudformation/resource/sim-cfn-resource.js";
|
|
3
3
|
import type { SimSqs } from "../sim-sqs.js";
|
|
4
|
+
import type { SimCloudFormationResourceDeleteContext } from "../../cloudformation/resource/sim-cfn-resource.type.js";
|
|
4
5
|
interface SimSqsCfnResourceFactoryProperties {
|
|
5
6
|
readonly sqs: SimSqs;
|
|
6
7
|
}
|
|
@@ -10,6 +11,7 @@ interface SimSqsCfnResourceFactoryProperties {
|
|
|
10
11
|
export declare class SimSqsCfnResourceFactory implements SimCfnServiceResourceFactory {
|
|
11
12
|
private readonly queueCreator;
|
|
12
13
|
private readonly queuePolicyCreator;
|
|
14
|
+
private readonly deleter;
|
|
13
15
|
constructor(properties: SimSqsCfnResourceFactoryProperties);
|
|
14
16
|
/**
|
|
15
17
|
* Create a simulated SQS resource from a CloudFormation Resource.
|
|
@@ -19,6 +21,10 @@ export declare class SimSqsCfnResourceFactory implements SimCfnServiceResourceFa
|
|
|
19
21
|
* quietly treated as deployed.
|
|
20
22
|
*/
|
|
21
23
|
create(resourceTypeName: string, resource: SimCfnResource, context: SimCloudFormationResourceCreateContext): Promise<object | undefined>;
|
|
24
|
+
/**
|
|
25
|
+
* Delete a simulated SQS resource created from a CloudFormation Resource.
|
|
26
|
+
*/
|
|
27
|
+
delete(resourceTypeName: string, resource: SimCfnResource, context: SimCloudFormationResourceDeleteContext): Promise<void>;
|
|
22
28
|
}
|
|
23
29
|
export {};
|
|
24
30
|
//# sourceMappingURL=sim-sqs-cfn-resource-factory.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sim-sqs-cfn-resource-factory.d.ts","sourceRoot":"","sources":["../../../../src/service/sqs/cfn/sim-sqs-cfn-resource-factory.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,4BAA4B,EAAE,MAAM,wEAAwE,CAAC;AAC3H,OAAO,KAAK,EACV,cAAc,EACd,sCAAsC,EACvC,MAAM,mDAAmD,CAAC;AAC3D,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,eAAe,CAAC;AAI5C,UAAU,kCAAkC;IAC1C,QAAQ,CAAC,GAAG,EAAE,MAAM,CAAC;CACtB;AAED;;GAEG;AACH,qBAAa,wBAAyB,YAAW,4BAA4B;IAC3E,OAAO,CAAC,QAAQ,CAAC,YAAY,CAAwB;IACrD,OAAO,CAAC,QAAQ,CAAC,kBAAkB,CAA8B;
|
|
1
|
+
{"version":3,"file":"sim-sqs-cfn-resource-factory.d.ts","sourceRoot":"","sources":["../../../../src/service/sqs/cfn/sim-sqs-cfn-resource-factory.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,4BAA4B,EAAE,MAAM,wEAAwE,CAAC;AAC3H,OAAO,KAAK,EACV,cAAc,EACd,sCAAsC,EACvC,MAAM,mDAAmD,CAAC;AAC3D,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,eAAe,CAAC;AAI5C,OAAO,KAAK,EAAE,sCAAsC,EAAE,MAAM,wDAAwD,CAAC;AAErH,UAAU,kCAAkC;IAC1C,QAAQ,CAAC,GAAG,EAAE,MAAM,CAAC;CACtB;AAED;;GAEG;AACH,qBAAa,wBAAyB,YAAW,4BAA4B;IAC3E,OAAO,CAAC,QAAQ,CAAC,YAAY,CAAwB;IACrD,OAAO,CAAC,QAAQ,CAAC,kBAAkB,CAA8B;IACjE,OAAO,CAAC,QAAQ,CAAC,OAAO,CAA2B;IAEnD,YAAY,UAAU,EAAE,kCAAkC,EAMzD;IAED;;;;;;OAMG;IACG,MAAM,CACV,gBAAgB,EAAE,MAAM,EACxB,QAAQ,EAAE,cAAc,EACxB,OAAO,EAAE,sCAAsC,GAC9C,OAAO,CAAC,MAAM,GAAG,SAAS,CAAC,CAoB7B;IAED;;OAEG;IACG,MAAM,CACV,gBAAgB,EAAE,MAAM,EACxB,QAAQ,EAAE,cAAc,EACxB,OAAO,EAAE,sCAAsC,GAC9C,OAAO,CAAC,IAAI,CAAC,CAMf;CACF"}
|
|
@@ -1,16 +1,19 @@
|
|
|
1
1
|
import { SimCfnSqsQueueCreator } from "./queue/sim-cfn-sqs-queue-creator.js";
|
|
2
2
|
import { SimCfnSqsQueuePolicyCreator } from "./queue-policy/sim-cfn-sqs-queue-policy-creator.js";
|
|
3
|
+
import { SimCfnSqsResourceDeleter } from "./sim-cfn-sqs-resource-deleter.js";
|
|
3
4
|
/**
|
|
4
5
|
* CloudFormation Resource factory for simulated SQS resources.
|
|
5
6
|
*/
|
|
6
7
|
export class SimSqsCfnResourceFactory {
|
|
7
8
|
queueCreator;
|
|
8
9
|
queuePolicyCreator;
|
|
10
|
+
deleter;
|
|
9
11
|
constructor(properties) {
|
|
10
12
|
this.queueCreator = new SimCfnSqsQueueCreator({ sqs: properties.sqs });
|
|
11
13
|
this.queuePolicyCreator = new SimCfnSqsQueuePolicyCreator({
|
|
12
14
|
sqs: properties.sqs,
|
|
13
15
|
});
|
|
16
|
+
this.deleter = new SimCfnSqsResourceDeleter({ sqs: properties.sqs });
|
|
14
17
|
}
|
|
15
18
|
/**
|
|
16
19
|
* Create a simulated SQS resource from a CloudFormation Resource.
|
|
@@ -32,5 +35,11 @@ export class SimSqsCfnResourceFactory {
|
|
|
32
35
|
}
|
|
33
36
|
}
|
|
34
37
|
}
|
|
38
|
+
/**
|
|
39
|
+
* Delete a simulated SQS resource created from a CloudFormation Resource.
|
|
40
|
+
*/
|
|
41
|
+
async delete(resourceTypeName, resource, context) {
|
|
42
|
+
await this.deleter.delete(resourceTypeName, resource, context.resolvedProperties ?? resource.properties);
|
|
43
|
+
}
|
|
35
44
|
}
|
|
36
45
|
//# sourceMappingURL=sim-sqs-cfn-resource-factory.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sim-sqs-cfn-resource-factory.js","sourceRoot":"","sources":["../../../../src/service/sqs/cfn/sim-sqs-cfn-resource-factory.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,qBAAqB,EAAE,MAAM,sCAAsC,CAAC;AAC7E,OAAO,EAAE,2BAA2B,EAAE,MAAM,oDAAoD,CAAC;
|
|
1
|
+
{"version":3,"file":"sim-sqs-cfn-resource-factory.js","sourceRoot":"","sources":["../../../../src/service/sqs/cfn/sim-sqs-cfn-resource-factory.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,qBAAqB,EAAE,MAAM,sCAAsC,CAAC;AAC7E,OAAO,EAAE,2BAA2B,EAAE,MAAM,oDAAoD,CAAC;AACjG,OAAO,EAAE,wBAAwB,EAAE,MAAM,mCAAmC,CAAC;AAO7E;;GAEG;AACH,MAAM,OAAO,wBAAwB;IAClB,YAAY,CAAwB;IACpC,kBAAkB,CAA8B;IAChD,OAAO,CAA2B;IAEnD,YAAY,UAA8C;QACxD,IAAI,CAAC,YAAY,GAAG,IAAI,qBAAqB,CAAC,EAAE,GAAG,EAAE,UAAU,CAAC,GAAG,EAAE,CAAC,CAAC;QACvE,IAAI,CAAC,kBAAkB,GAAG,IAAI,2BAA2B,CAAC;YACxD,GAAG,EAAE,UAAU,CAAC,GAAG;SACpB,CAAC,CAAC;QACH,IAAI,CAAC,OAAO,GAAG,IAAI,wBAAwB,CAAC,EAAE,GAAG,EAAE,UAAU,CAAC,GAAG,EAAE,CAAC,CAAC;IACvE,CAAC;IAED;;;;;;OAMG;IACH,KAAK,CAAC,MAAM,CACV,gBAAwB,EACxB,QAAwB,EACxB,OAA+C;QAE/C,QAAQ,gBAAgB,EAAE,CAAC;YACzB,KAAK,OAAO,EAAE,CAAC;gBACb,OAAO,MAAM,IAAI,CAAC,YAAY,CAAC,MAAM,CACnC,QAAQ,EACR,OAAO,CAAC,kBAAkB,IAAI,QAAQ,CAAC,UAAU,CAClD,CAAC;YACJ,CAAC;YACD,KAAK,aAAa,EAAE,CAAC;gBACnB,OAAO,MAAM,IAAI,CAAC,kBAAkB,CAAC,MAAM,CACzC,QAAQ,EACR,OAAO,CAAC,kBAAkB,IAAI,QAAQ,CAAC,UAAU,CAClD,CAAC;YACJ,CAAC;YACD,SAAS,CAAC;gBACR,MAAM,IAAI,KAAK,CACb,+CAA+C,gBAAgB,EAAE,CAClE,CAAC;YACJ,CAAC;QACH,CAAC;IACH,CAAC;IAED;;OAEG;IACH,KAAK,CAAC,MAAM,CACV,gBAAwB,EACxB,QAAwB,EACxB,OAA+C;QAE/C,MAAM,IAAI,CAAC,OAAO,CAAC,MAAM,CACvB,gBAAgB,EAChB,QAAQ,EACR,OAAO,CAAC,kBAAkB,IAAI,QAAQ,CAAC,UAAU,CAClD,CAAC;IACJ,CAAC;CACF"}
|
|
@@ -32,6 +32,10 @@ export declare class SimSqsQueueJsonAttribute<T extends SimSqsQueueJsonAttribute
|
|
|
32
32
|
/**
|
|
33
33
|
* This attribute after a request, which holds the document the request sets
|
|
34
34
|
* or the one already there.
|
|
35
|
+
*
|
|
36
|
+
* An empty string takes the document off the queue, which is how SQS is told
|
|
37
|
+
* to remove one: there is no DeleteQueuePolicy, so setting the attribute to
|
|
38
|
+
* nothing is the only way back to a queue without one.
|
|
35
39
|
*/
|
|
36
40
|
with(requested: SimSqsQueueAttributeInput): SimSqsQueueJsonAttribute<T>;
|
|
37
41
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sim-sqs-queue-json-attribute.d.ts","sourceRoot":"","sources":["../../../../src/service/sqs/queue/sim-sqs-queue-json-attribute.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,+BAA+B,CAAC;AAE/E;;;GAGG;AACH,MAAM,WAAW,6BAA6B,CAAC,CAAC;IAC9C,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC;IACvB,OAAO,CAAC,KAAK,EAAE,CAAC,GAAG,OAAO,CAAC;CAC5B;AAED,UAAU,kCAAkC,CAAC,CAAC;IAC5C,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IACtB,QAAQ,CAAC,KAAK,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,CAAC,CAAC;IACrC,QAAQ,CAAC,IAAI,EAAE,CAAC,GAAG,SAAS,CAAC;CAC9B;AAED;;;;;;;GAOG;AACH,qBAAa,wBAAwB,CACnC,CAAC,SAAS,6BAA6B,CAAC,CAAC,CAAC;IAE1C,OAAO,CAAC,QAAQ,CAAC,IAAI,CAAS;IAC9B,OAAO,CAAC,QAAQ,CAAC,KAAK,CAAuB;IAC7C,OAAO,CAAC,QAAQ,CAAC,IAAI,CAAgB;IAErC,YAAY,UAAU,EAAE,kCAAkC,CAAC,CAAC,CAAC,EAI5D;IAED;;OAEG;IACH,IAAI,QAAQ,IAAI,CAAC,GAAG,SAAS,CAE5B;IAED
|
|
1
|
+
{"version":3,"file":"sim-sqs-queue-json-attribute.d.ts","sourceRoot":"","sources":["../../../../src/service/sqs/queue/sim-sqs-queue-json-attribute.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,+BAA+B,CAAC;AAE/E;;;GAGG;AACH,MAAM,WAAW,6BAA6B,CAAC,CAAC;IAC9C,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC;IACvB,OAAO,CAAC,KAAK,EAAE,CAAC,GAAG,OAAO,CAAC;CAC5B;AAED,UAAU,kCAAkC,CAAC,CAAC;IAC5C,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IACtB,QAAQ,CAAC,KAAK,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,CAAC,CAAC;IACrC,QAAQ,CAAC,IAAI,EAAE,CAAC,GAAG,SAAS,CAAC;CAC9B;AAED;;;;;;;GAOG;AACH,qBAAa,wBAAwB,CACnC,CAAC,SAAS,6BAA6B,CAAC,CAAC,CAAC;IAE1C,OAAO,CAAC,QAAQ,CAAC,IAAI,CAAS;IAC9B,OAAO,CAAC,QAAQ,CAAC,KAAK,CAAuB;IAC7C,OAAO,CAAC,QAAQ,CAAC,IAAI,CAAgB;IAErC,YAAY,UAAU,EAAE,kCAAkC,CAAC,CAAC,CAAC,EAI5D;IAED;;OAEG;IACH,IAAI,QAAQ,IAAI,CAAC,GAAG,SAAS,CAE5B;IAED;;;;;;;OAOG;IACH,IAAI,CAAC,SAAS,EAAE,yBAAyB,GAAG,wBAAwB,CAAC,CAAC,CAAC,CAYtE;IAED;;;OAGG;IACH,OAAO,CAAC,SAAS,EAAE,yBAAyB,GAAG,OAAO,CAQrD;IAED;;;OAGG;IACH,UAAU,CAAC,QAAQ,EAAE,GAAG,CAAC,MAAM,EAAE,MAAM,CAAC,GAAG,IAAI,CAI9C;IAED;;OAEG;IACH,OAAO,CAAC,OAAO;CAGhB"}
|
|
@@ -24,6 +24,10 @@ export class SimSqsQueueJsonAttribute {
|
|
|
24
24
|
/**
|
|
25
25
|
* This attribute after a request, which holds the document the request sets
|
|
26
26
|
* or the one already there.
|
|
27
|
+
*
|
|
28
|
+
* An empty string takes the document off the queue, which is how SQS is told
|
|
29
|
+
* to remove one: there is no DeleteQueuePolicy, so setting the attribute to
|
|
30
|
+
* nothing is the only way back to a queue without one.
|
|
27
31
|
*/
|
|
28
32
|
with(requested) {
|
|
29
33
|
const value = this.valueIn(requested);
|
|
@@ -33,7 +37,7 @@ export class SimSqsQueueJsonAttribute {
|
|
|
33
37
|
return new SimSqsQueueJsonAttribute({
|
|
34
38
|
name: this.name,
|
|
35
39
|
parse: this.parse,
|
|
36
|
-
held: this.parse(value),
|
|
40
|
+
held: value === "" ? undefined : this.parse(value),
|
|
37
41
|
});
|
|
38
42
|
}
|
|
39
43
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sim-sqs-queue-json-attribute.js","sourceRoot":"","sources":["../../../../src/service/sqs/queue/sim-sqs-queue-json-attribute.ts"],"names":[],"mappings":"AAiBA;;;;;;;GAOG;AACH,MAAM,OAAO,wBAAwB;IAGlB,IAAI,CAAS;IACb,KAAK,CAAuB;IAC5B,IAAI,CAAgB;IAErC,YAAY,UAAiD;QAC3D,IAAI,CAAC,IAAI,GAAG,UAAU,CAAC,IAAI,CAAC;QAC5B,IAAI,CAAC,KAAK,GAAG,UAAU,CAAC,KAAK,CAAC;QAC9B,IAAI,CAAC,IAAI,GAAG,UAAU,CAAC,IAAI,CAAC;IAC9B,CAAC;IAED;;OAEG;IACH,IAAI,QAAQ;QACV,OAAO,IAAI,CAAC,IAAI,CAAC;IACnB,CAAC;IAED
|
|
1
|
+
{"version":3,"file":"sim-sqs-queue-json-attribute.js","sourceRoot":"","sources":["../../../../src/service/sqs/queue/sim-sqs-queue-json-attribute.ts"],"names":[],"mappings":"AAiBA;;;;;;;GAOG;AACH,MAAM,OAAO,wBAAwB;IAGlB,IAAI,CAAS;IACb,KAAK,CAAuB;IAC5B,IAAI,CAAgB;IAErC,YAAY,UAAiD;QAC3D,IAAI,CAAC,IAAI,GAAG,UAAU,CAAC,IAAI,CAAC;QAC5B,IAAI,CAAC,KAAK,GAAG,UAAU,CAAC,KAAK,CAAC;QAC9B,IAAI,CAAC,IAAI,GAAG,UAAU,CAAC,IAAI,CAAC;IAC9B,CAAC;IAED;;OAEG;IACH,IAAI,QAAQ;QACV,OAAO,IAAI,CAAC,IAAI,CAAC;IACnB,CAAC;IAED;;;;;;;OAOG;IACH,IAAI,CAAC,SAAoC;QACvC,MAAM,KAAK,GAAG,IAAI,CAAC,OAAO,CAAC,SAAS,CAAC,CAAC;QAEtC,IAAI,KAAK,KAAK,SAAS,EAAE,CAAC;YACxB,OAAO,IAAI,CAAC;QACd,CAAC;QAED,OAAO,IAAI,wBAAwB,CAAC;YAClC,IAAI,EAAE,IAAI,CAAC,IAAI;YACf,KAAK,EAAE,IAAI,CAAC,KAAK;YACjB,IAAI,EAAE,KAAK,KAAK,EAAE,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC;SACnD,CAAC,CAAC;IACL,CAAC;IAED;;;OAGG;IACH,OAAO,CAAC,SAAoC;QAC1C,MAAM,KAAK,GAAG,IAAI,CAAC,OAAO,CAAC,SAAS,CAAC,CAAC;QAEtC,IAAI,KAAK,KAAK,SAAS,EAAE,CAAC;YACxB,OAAO,IAAI,CAAC;QACd,CAAC;QAED,OAAO,IAAI,CAAC,IAAI,EAAE,OAAO,CAAC,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC,KAAK,IAAI,CAAC;IACxD,CAAC;IAED;;;OAGG;IACH,UAAU,CAAC,QAA6B;QACtC,IAAI,IAAI,CAAC,IAAI,KAAK,SAAS,EAAE,CAAC;YAC5B,QAAQ,CAAC,GAAG,CAAC,IAAI,CAAC,IAAI,EAAE,IAAI,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;QAC3C,CAAC;IACH,CAAC;IAED;;OAEG;IACK,OAAO,CAAC,SAAoC;QAClD,OAAO,MAAM,CAAC,OAAO,CAAC,SAAS,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,GAAG,CAAC,EAAE,EAAE,CAAC,GAAG,KAAK,IAAI,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC;IAC3E,CAAC;CACF"}
|
|
@@ -13,9 +13,10 @@ interface SimCfnSsmParameterCreatorProperties {
|
|
|
13
13
|
* thing an SDK caller would have got: the same name validation, the same ARN,
|
|
14
14
|
* the same refusals for the options this simulation does not model.
|
|
15
15
|
*
|
|
16
|
-
* The write is a create rather than an overwrite.
|
|
17
|
-
*
|
|
18
|
-
*
|
|
16
|
+
* The write is a create rather than an overwrite. Creating a Resource is always
|
|
17
|
+
* a create in sim CloudFormation, because a stack update replaces a changed
|
|
18
|
+
* Resource rather than writing over it, so a name already in use fails here as
|
|
19
|
+
* a second stack claiming the same parameter name fails on real
|
|
19
20
|
* CloudFormation.
|
|
20
21
|
*/
|
|
21
22
|
export declare class SimCfnSsmParameterCreator {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sim-cfn-ssm-parameter-creator.d.ts","sourceRoot":"","sources":["../../../../../src/service/ssm/cfn/parameter/sim-cfn-ssm-parameter-creator.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,sDAAsD,CAAC;AAC3F,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,kEAAkE,CAAC;AAClH,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,sCAAsC,CAAC;AAC5E,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,kBAAkB,CAAC;AAG/C,UAAU,mCAAmC;IAC3C,QAAQ,CAAC,GAAG,EAAE,MAAM,CAAC;CACtB;AAED
|
|
1
|
+
{"version":3,"file":"sim-cfn-ssm-parameter-creator.d.ts","sourceRoot":"","sources":["../../../../../src/service/ssm/cfn/parameter/sim-cfn-ssm-parameter-creator.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,sDAAsD,CAAC;AAC3F,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,kEAAkE,CAAC;AAClH,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,sCAAsC,CAAC;AAC5E,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,kBAAkB,CAAC;AAG/C,UAAU,mCAAmC;IAC3C,QAAQ,CAAC,GAAG,EAAE,MAAM,CAAC;CACtB;AAED;;;;;;;;;;;;;GAaG;AACH,qBAAa,yBAAyB;IACpC,OAAO,CAAC,QAAQ,CAAC,GAAG,CAAS;IAE7B,YAAY,UAAU,EAAE,mCAAmC,EAE1D;IAED;;OAEG;IACG,MAAM,CACV,QAAQ,EAAE,cAAc,EACxB,UAAU,EAAE,yBAAyB,GACpC,OAAO,CAAC,eAAe,CAAC,CA4B1B;CACF"}
|
|
@@ -8,9 +8,10 @@ import { SimCfnSsmParameterProperties } from "./sim-cfn-ssm-parameter-properties
|
|
|
8
8
|
* thing an SDK caller would have got: the same name validation, the same ARN,
|
|
9
9
|
* the same refusals for the options this simulation does not model.
|
|
10
10
|
*
|
|
11
|
-
* The write is a create rather than an overwrite.
|
|
12
|
-
*
|
|
13
|
-
*
|
|
11
|
+
* The write is a create rather than an overwrite. Creating a Resource is always
|
|
12
|
+
* a create in sim CloudFormation, because a stack update replaces a changed
|
|
13
|
+
* Resource rather than writing over it, so a name already in use fails here as
|
|
14
|
+
* a second stack claiming the same parameter name fails on real
|
|
14
15
|
* CloudFormation.
|
|
15
16
|
*/
|
|
16
17
|
export class SimCfnSsmParameterCreator {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sim-cfn-ssm-parameter-creator.js","sourceRoot":"","sources":["../../../../../src/service/ssm/cfn/parameter/sim-cfn-ssm-parameter-creator.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,wCAAwC,CAAC;AAKvE,OAAO,EAAE,4BAA4B,EAAE,MAAM,uCAAuC,CAAC;AAMrF
|
|
1
|
+
{"version":3,"file":"sim-cfn-ssm-parameter-creator.js","sourceRoot":"","sources":["../../../../../src/service/ssm/cfn/parameter/sim-cfn-ssm-parameter-creator.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,wCAAwC,CAAC;AAKvE,OAAO,EAAE,4BAA4B,EAAE,MAAM,uCAAuC,CAAC;AAMrF;;;;;;;;;;;;;GAaG;AACH,MAAM,OAAO,yBAAyB;IACnB,GAAG,CAAS;IAE7B,YAAY,UAA+C;QACzD,IAAI,CAAC,GAAG,GAAG,UAAU,CAAC,GAAG,CAAC;IAC5B,CAAC;IAED;;OAEG;IACH,KAAK,CAAC,MAAM,CACV,QAAwB,EACxB,UAAqC;QAErC,MAAM,mBAAmB,GAAG,IAAI,4BAA4B,CAAC;YAC3D,QAAQ;YACR,UAAU;SACX,CAAC,CAAC;QACH,MAAM,IAAI,GAAG,mBAAmB,CAAC,IAAI,EAAE,CAAC;QAExC,MAAM,IAAI,CAAC,GAAG,CAAC,YAAY,CAAC;YAC1B,KAAK,EAAE;gBACL,IAAI,EAAE,IAAI;gBACV,IAAI,EAAE,mBAAmB,CAAC,IAAI,EAAE;gBAChC,KAAK,EAAE,mBAAmB,CAAC,KAAK,EAAE;gBAClC,WAAW,EAAE,mBAAmB,CAAC,WAAW,EAAE;gBAC9C,IAAI,EAAE,mBAAmB,CAAC,IAAI,EAAE;gBAChC,cAAc,EAAE,mBAAmB,CAAC,cAAc,EAAE;gBACpD,QAAQ,EAAE,mBAAmB,CAAC,QAAQ,EAAE;gBACxC,QAAQ,EAAE,mBAAmB,CAAC,QAAQ,EAAE;gBACxC,IAAI,EAAE,mBAAmB,CAAC,IAAI,EAAE;aACjC;SACF,CAAC,CAAC;QAEH,MAAM,SAAS,GAAG,IAAI,CAAC,GAAG,CAAC,aAAa,CAAC,IAAI,CAAC,CAAC;QAC/C,aAAa,CACX,SAAS,EACT,qBAAqB,IAAI,gCAAgC,CAC1D,CAAC;QAEF,OAAO,SAAS,CAAC;IACnB,CAAC;CACF"}
|
|
@@ -8,6 +8,7 @@ interface SimSsmCfnResourceFactoryProperties {
|
|
|
8
8
|
* CloudFormation Resource factory for simulated SSM resources.
|
|
9
9
|
*/
|
|
10
10
|
export declare class SimSsmCfnResourceFactory implements SimCfnServiceResourceFactory {
|
|
11
|
+
private readonly ssm;
|
|
11
12
|
private readonly parameterCreator;
|
|
12
13
|
constructor(properties: SimSsmCfnResourceFactoryProperties);
|
|
13
14
|
/**
|
|
@@ -18,6 +19,10 @@ export declare class SimSsmCfnResourceFactory implements SimCfnServiceResourceFa
|
|
|
18
19
|
* unsupported and skipped rather than quietly treated as deployed.
|
|
19
20
|
*/
|
|
20
21
|
create(resourceTypeName: string, resource: SimCfnResource, context: SimCloudFormationResourceCreateContext): Promise<object | undefined>;
|
|
22
|
+
/**
|
|
23
|
+
* Delete a simulated SSM resource created from a CloudFormation Resource.
|
|
24
|
+
*/
|
|
25
|
+
delete(resourceTypeName: string, resource: SimCfnResource): Promise<void>;
|
|
21
26
|
}
|
|
22
27
|
export {};
|
|
23
28
|
//# sourceMappingURL=sim-cfn-ssm-resource-factory.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sim-cfn-ssm-resource-factory.d.ts","sourceRoot":"","sources":["../../../../src/service/ssm/cfn/sim-cfn-ssm-resource-factory.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,4BAA4B,EAAE,MAAM,wEAAwE,CAAC;AAC3H,OAAO,KAAK,EACV,cAAc,EACd,sCAAsC,EACvC,MAAM,mDAAmD,CAAC;AAC3D,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,eAAe,CAAC;
|
|
1
|
+
{"version":3,"file":"sim-cfn-ssm-resource-factory.d.ts","sourceRoot":"","sources":["../../../../src/service/ssm/cfn/sim-cfn-ssm-resource-factory.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,4BAA4B,EAAE,MAAM,wEAAwE,CAAC;AAC3H,OAAO,KAAK,EACV,cAAc,EACd,sCAAsC,EACvC,MAAM,mDAAmD,CAAC;AAC3D,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,eAAe,CAAC;AAK5C,UAAU,kCAAkC;IAC1C,QAAQ,CAAC,GAAG,EAAE,MAAM,CAAC;CACtB;AAED;;GAEG;AACH,qBAAa,wBAAyB,YAAW,4BAA4B;IAC3E,OAAO,CAAC,QAAQ,CAAC,GAAG,CAAS;IAC7B,OAAO,CAAC,QAAQ,CAAC,gBAAgB,CAA4B;IAE7D,YAAY,UAAU,EAAE,kCAAkC,EAKzD;IAED;;;;;;OAMG;IACG,MAAM,CACV,gBAAgB,EAAE,MAAM,EACxB,QAAQ,EAAE,cAAc,EACxB,OAAO,EAAE,sCAAsC,GAC9C,OAAO,CAAC,MAAM,GAAG,SAAS,CAAC,CAc7B;IAED;;OAEG;IACG,MAAM,CACV,gBAAgB,EAAE,MAAM,EACxB,QAAQ,EAAE,cAAc,GACvB,OAAO,CAAC,IAAI,CAAC,CAcf;CACF"}
|
|
@@ -1,10 +1,13 @@
|
|
|
1
1
|
import { SimCfnSsmParameterCreator } from "./parameter/sim-cfn-ssm-parameter-creator.js";
|
|
2
|
+
import { assertDefined } from "../../../util/type-guard/defined.js";
|
|
2
3
|
/**
|
|
3
4
|
* CloudFormation Resource factory for simulated SSM resources.
|
|
4
5
|
*/
|
|
5
6
|
export class SimSsmCfnResourceFactory {
|
|
7
|
+
ssm;
|
|
6
8
|
parameterCreator;
|
|
7
9
|
constructor(properties) {
|
|
10
|
+
this.ssm = properties.ssm;
|
|
8
11
|
this.parameterCreator = new SimCfnSsmParameterCreator({
|
|
9
12
|
ssm: properties.ssm,
|
|
10
13
|
});
|
|
@@ -26,5 +29,16 @@ export class SimSsmCfnResourceFactory {
|
|
|
26
29
|
}
|
|
27
30
|
}
|
|
28
31
|
}
|
|
32
|
+
/**
|
|
33
|
+
* Delete a simulated SSM resource created from a CloudFormation Resource.
|
|
34
|
+
*/
|
|
35
|
+
async delete(resourceTypeName, resource) {
|
|
36
|
+
if (resourceTypeName !== "Parameter") {
|
|
37
|
+
throw new Error(`Unsupported sim SSM CloudFormation Resource ${resourceTypeName} deletion`);
|
|
38
|
+
}
|
|
39
|
+
const parameter = resource.simResource;
|
|
40
|
+
assertDefined(parameter, `sim SSM Parameter for CloudFormation Resource ${resource.logicalId}`);
|
|
41
|
+
await this.ssm.deleteParameter({ input: { Name: parameter.name.value } });
|
|
42
|
+
}
|
|
29
43
|
}
|
|
30
44
|
//# sourceMappingURL=sim-cfn-ssm-resource-factory.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sim-cfn-ssm-resource-factory.js","sourceRoot":"","sources":["../../../../src/service/ssm/cfn/sim-cfn-ssm-resource-factory.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,yBAAyB,EAAE,MAAM,8CAA8C,CAAC;
|
|
1
|
+
{"version":3,"file":"sim-cfn-ssm-resource-factory.js","sourceRoot":"","sources":["../../../../src/service/ssm/cfn/sim-cfn-ssm-resource-factory.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,yBAAyB,EAAE,MAAM,8CAA8C,CAAC;AAEzF,OAAO,EAAE,aAAa,EAAE,MAAM,qCAAqC,CAAC;AAMpE;;GAEG;AACH,MAAM,OAAO,wBAAwB;IAClB,GAAG,CAAS;IACZ,gBAAgB,CAA4B;IAE7D,YAAY,UAA8C;QACxD,IAAI,CAAC,GAAG,GAAG,UAAU,CAAC,GAAG,CAAC;QAC1B,IAAI,CAAC,gBAAgB,GAAG,IAAI,yBAAyB,CAAC;YACpD,GAAG,EAAE,UAAU,CAAC,GAAG;SACpB,CAAC,CAAC;IACL,CAAC;IAED;;;;;;OAMG;IACH,KAAK,CAAC,MAAM,CACV,gBAAwB,EACxB,QAAwB,EACxB,OAA+C;QAE/C,QAAQ,gBAAgB,EAAE,CAAC;YACzB,KAAK,WAAW,EAAE,CAAC;gBACjB,OAAO,MAAM,IAAI,CAAC,gBAAgB,CAAC,MAAM,CACvC,QAAQ,EACR,OAAO,CAAC,kBAAkB,IAAI,QAAQ,CAAC,UAAU,CAClD,CAAC;YACJ,CAAC;YACD,SAAS,CAAC;gBACR,MAAM,IAAI,KAAK,CACb,+CAA+C,gBAAgB,EAAE,CAClE,CAAC;YACJ,CAAC;QACH,CAAC;IACH,CAAC;IAED;;OAEG;IACH,KAAK,CAAC,MAAM,CACV,gBAAwB,EACxB,QAAwB;QAExB,IAAI,gBAAgB,KAAK,WAAW,EAAE,CAAC;YACrC,MAAM,IAAI,KAAK,CACb,+CAA+C,gBAAgB,WAAW,CAC3E,CAAC;QACJ,CAAC;QAED,MAAM,SAAS,GAAG,QAAQ,CAAC,WAA0C,CAAC;QACtE,aAAa,CACX,SAAS,EACT,iDAAiD,QAAQ,CAAC,SAAS,EAAE,CACtE,CAAC;QAEF,MAAM,IAAI,CAAC,GAAG,CAAC,eAAe,CAAC,EAAE,KAAK,EAAE,EAAE,IAAI,EAAE,SAAS,CAAC,IAAI,CAAC,KAAK,EAAE,EAAE,CAAC,CAAC;IAC5E,CAAC;CACF"}
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
type SimWatchStoppingListener = () => void;
|
|
2
|
+
type SimWatchMessageListener = (message: unknown) => void;
|
|
3
|
+
/**
|
|
4
|
+
* The part of the running process this needs, so a test can stand in for it
|
|
5
|
+
* without touching the process its own test runner is talking over.
|
|
6
|
+
*/
|
|
7
|
+
export interface SimWatchProcess {
|
|
8
|
+
readonly env: NodeJS.ProcessEnv;
|
|
9
|
+
readonly send?: ((message: unknown) => boolean) | undefined;
|
|
10
|
+
on(event: "message", listener: SimWatchMessageListener): unknown;
|
|
11
|
+
off(event: "message", listener: SimWatchMessageListener): unknown;
|
|
12
|
+
}
|
|
13
|
+
interface SimWatchRuntimeProperties {
|
|
14
|
+
readonly host?: SimWatchProcess;
|
|
15
|
+
}
|
|
16
|
+
/**
|
|
17
|
+
* The half of watch mode that lives in the supervised process.
|
|
18
|
+
*
|
|
19
|
+
* It is inert unless `yulin watch` started this process, so nothing here
|
|
20
|
+
* changes what a test run or an ordinary script does. Under a supervisor it
|
|
21
|
+
* does two things: it names the paths Yulin is reading, so the supervisor can
|
|
22
|
+
* watch them without the user listing paths Yulin is already holding, and it
|
|
23
|
+
* passes on the warning that a restart is coming, so a served page hears about
|
|
24
|
+
* it before the connection goes.
|
|
25
|
+
*/
|
|
26
|
+
export declare class SimWatchRuntime {
|
|
27
|
+
private readonly host;
|
|
28
|
+
private readonly stoppingListeners;
|
|
29
|
+
private listening;
|
|
30
|
+
private readonly onMessage;
|
|
31
|
+
constructor(properties?: SimWatchRuntimeProperties);
|
|
32
|
+
/**
|
|
33
|
+
* Whether a `yulin watch` supervisor started this process.
|
|
34
|
+
*/
|
|
35
|
+
supervised(): boolean;
|
|
36
|
+
/**
|
|
37
|
+
* Name a path the supervisor should watch, such as a directory mounted into a
|
|
38
|
+
* Bucket or a synthesized template being deployed.
|
|
39
|
+
*
|
|
40
|
+
* Best effort by design. Nothing depends on the message arriving, and a
|
|
41
|
+
* process with no supervisor drops it.
|
|
42
|
+
*/
|
|
43
|
+
reportPath(reportedPath: string): void;
|
|
44
|
+
/**
|
|
45
|
+
* Name a path this process is watching itself, and answering without needing
|
|
46
|
+
* a restart, such as a deployed template being updated in place.
|
|
47
|
+
*
|
|
48
|
+
* The supervisor leaves it alone from then on. Being told that a path is
|
|
49
|
+
* handled here is more specific than any rule the supervisor has about which
|
|
50
|
+
* paths are worth restarting for, so it wins over having reported the same
|
|
51
|
+
* path for watching.
|
|
52
|
+
*
|
|
53
|
+
* Best effort, as reportPath is: a process with no supervisor drops it.
|
|
54
|
+
*/
|
|
55
|
+
reportHeldPath(heldPath: string): void;
|
|
56
|
+
/**
|
|
57
|
+
* Run something when the supervisor says this process is about to restart.
|
|
58
|
+
*/
|
|
59
|
+
onStopping(listener: SimWatchStoppingListener): void;
|
|
60
|
+
/**
|
|
61
|
+
* Stop running something on a restart.
|
|
62
|
+
*/
|
|
63
|
+
offStopping(listener: SimWatchStoppingListener): void;
|
|
64
|
+
private listen;
|
|
65
|
+
private unlisten;
|
|
66
|
+
}
|
|
67
|
+
/**
|
|
68
|
+
* The watch runtime for this process.
|
|
69
|
+
*
|
|
70
|
+
* One per process rather than one per `SimAws`, because it is about the process
|
|
71
|
+
* a supervisor started, not about any one simulated environment. Several
|
|
72
|
+
* simulations in the same process all report to the same supervisor.
|
|
73
|
+
*/
|
|
74
|
+
export declare const simWatch: SimWatchRuntime;
|
|
75
|
+
export {};
|
|
76
|
+
//# sourceMappingURL=sim-watch-runtime.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sim-watch-runtime.d.ts","sourceRoot":"","sources":["../../src/watch/sim-watch-runtime.ts"],"names":[],"mappings":"AAGA,KAAK,wBAAwB,GAAG,MAAM,IAAI,CAAC;AAC3C,KAAK,uBAAuB,GAAG,CAAC,OAAO,EAAE,OAAO,KAAK,IAAI,CAAC;AAE1D;;;GAGG;AACH,MAAM,WAAW,eAAe;IAC9B,QAAQ,CAAC,GAAG,EAAE,MAAM,CAAC,UAAU,CAAC;IAChC,QAAQ,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC,OAAO,EAAE,OAAO,KAAK,OAAO,CAAC,GAAG,SAAS,CAAC;IAC5D,EAAE,CAAC,KAAK,EAAE,SAAS,EAAE,QAAQ,EAAE,uBAAuB,GAAG,OAAO,CAAC;IACjE,GAAG,CAAC,KAAK,EAAE,SAAS,EAAE,QAAQ,EAAE,uBAAuB,GAAG,OAAO,CAAC;CACnE;AAED,UAAU,yBAAyB;IACjC,QAAQ,CAAC,IAAI,CAAC,EAAE,eAAe,CAAC;CACjC;AAED;;;;;;;;;GASG;AACH,qBAAa,eAAe;IAC1B,OAAO,CAAC,QAAQ,CAAC,IAAI,CAAkB;IACvC,OAAO,CAAC,QAAQ,CAAC,iBAAiB,CAAuC;IACzE,OAAO,CAAC,SAAS,CAAS;IAE1B,OAAO,CAAC,QAAQ,CAAC,SAAS,CAYxB;IAEF,YAAY,UAAU,GAAE,yBAA8B,EAGrD;IAED;;OAEG;IACH,UAAU,IAAI,OAAO,CAMpB;IAED;;;;;;OAMG;IACH,UAAU,CAAC,YAAY,EAAE,MAAM,GAAG,IAAI,CASrC;IAED;;;;;;;;;;OAUG;IACH,cAAc,CAAC,QAAQ,EAAE,MAAM,GAAG,IAAI,CASrC;IAED;;OAEG;IACH,UAAU,CAAC,QAAQ,EAAE,wBAAwB,GAAG,IAAI,CAOnD;IAED;;OAEG;IACH,WAAW,CAAC,QAAQ,EAAE,wBAAwB,GAAG,IAAI,CAMpD;IAED,OAAO,CAAC,MAAM;IASd,OAAO,CAAC,QAAQ;CAQjB;AAWD;;;;;;GAMG;AACH,eAAO,MAAM,QAAQ,iBAAwB,CAAC"}
|
|
@@ -0,0 +1,124 @@
|
|
|
1
|
+
import path from "node:path";
|
|
2
|
+
import { simWatchConfig, simWatchMessages } from "./sim-watch.config.js";
|
|
3
|
+
/**
|
|
4
|
+
* The half of watch mode that lives in the supervised process.
|
|
5
|
+
*
|
|
6
|
+
* It is inert unless `yulin watch` started this process, so nothing here
|
|
7
|
+
* changes what a test run or an ordinary script does. Under a supervisor it
|
|
8
|
+
* does two things: it names the paths Yulin is reading, so the supervisor can
|
|
9
|
+
* watch them without the user listing paths Yulin is already holding, and it
|
|
10
|
+
* passes on the warning that a restart is coming, so a served page hears about
|
|
11
|
+
* it before the connection goes.
|
|
12
|
+
*/
|
|
13
|
+
export class SimWatchRuntime {
|
|
14
|
+
host;
|
|
15
|
+
stoppingListeners = new Set();
|
|
16
|
+
listening = false;
|
|
17
|
+
onMessage = (message) => {
|
|
18
|
+
if (!isStoppingMessage(message)) {
|
|
19
|
+
return;
|
|
20
|
+
}
|
|
21
|
+
for (const listener of this.stoppingListeners) {
|
|
22
|
+
listener();
|
|
23
|
+
}
|
|
24
|
+
// The supervisor waits for this before killing the process, so whatever the
|
|
25
|
+
// listeners wrote has left this end first.
|
|
26
|
+
this.host.send?.({ type: simWatchMessages.stopped });
|
|
27
|
+
};
|
|
28
|
+
constructor(properties = {}) {
|
|
29
|
+
const { host = process } = properties;
|
|
30
|
+
this.host = host;
|
|
31
|
+
}
|
|
32
|
+
/**
|
|
33
|
+
* Whether a `yulin watch` supervisor started this process.
|
|
34
|
+
*/
|
|
35
|
+
supervised() {
|
|
36
|
+
return (this.host.env[simWatchConfig.environmentVariableName] ===
|
|
37
|
+
simWatchConfig.environmentVariableValue &&
|
|
38
|
+
typeof this.host.send === "function");
|
|
39
|
+
}
|
|
40
|
+
/**
|
|
41
|
+
* Name a path the supervisor should watch, such as a directory mounted into a
|
|
42
|
+
* Bucket or a synthesized template being deployed.
|
|
43
|
+
*
|
|
44
|
+
* Best effort by design. Nothing depends on the message arriving, and a
|
|
45
|
+
* process with no supervisor drops it.
|
|
46
|
+
*/
|
|
47
|
+
reportPath(reportedPath) {
|
|
48
|
+
if (!this.supervised()) {
|
|
49
|
+
return;
|
|
50
|
+
}
|
|
51
|
+
this.host.send?.({
|
|
52
|
+
type: simWatchMessages.path,
|
|
53
|
+
path: path.resolve(reportedPath),
|
|
54
|
+
});
|
|
55
|
+
}
|
|
56
|
+
/**
|
|
57
|
+
* Name a path this process is watching itself, and answering without needing
|
|
58
|
+
* a restart, such as a deployed template being updated in place.
|
|
59
|
+
*
|
|
60
|
+
* The supervisor leaves it alone from then on. Being told that a path is
|
|
61
|
+
* handled here is more specific than any rule the supervisor has about which
|
|
62
|
+
* paths are worth restarting for, so it wins over having reported the same
|
|
63
|
+
* path for watching.
|
|
64
|
+
*
|
|
65
|
+
* Best effort, as reportPath is: a process with no supervisor drops it.
|
|
66
|
+
*/
|
|
67
|
+
reportHeldPath(heldPath) {
|
|
68
|
+
if (!this.supervised()) {
|
|
69
|
+
return;
|
|
70
|
+
}
|
|
71
|
+
this.host.send?.({
|
|
72
|
+
type: simWatchMessages.heldPath,
|
|
73
|
+
path: path.resolve(heldPath),
|
|
74
|
+
});
|
|
75
|
+
}
|
|
76
|
+
/**
|
|
77
|
+
* Run something when the supervisor says this process is about to restart.
|
|
78
|
+
*/
|
|
79
|
+
onStopping(listener) {
|
|
80
|
+
if (!this.supervised()) {
|
|
81
|
+
return;
|
|
82
|
+
}
|
|
83
|
+
this.stoppingListeners.add(listener);
|
|
84
|
+
this.listen();
|
|
85
|
+
}
|
|
86
|
+
/**
|
|
87
|
+
* Stop running something on a restart.
|
|
88
|
+
*/
|
|
89
|
+
offStopping(listener) {
|
|
90
|
+
this.stoppingListeners.delete(listener);
|
|
91
|
+
if (this.stoppingListeners.size === 0) {
|
|
92
|
+
this.unlisten();
|
|
93
|
+
}
|
|
94
|
+
}
|
|
95
|
+
listen() {
|
|
96
|
+
if (this.listening) {
|
|
97
|
+
return;
|
|
98
|
+
}
|
|
99
|
+
this.listening = true;
|
|
100
|
+
this.host.on("message", this.onMessage);
|
|
101
|
+
}
|
|
102
|
+
unlisten() {
|
|
103
|
+
if (!this.listening) {
|
|
104
|
+
return;
|
|
105
|
+
}
|
|
106
|
+
this.listening = false;
|
|
107
|
+
this.host.off("message", this.onMessage);
|
|
108
|
+
}
|
|
109
|
+
}
|
|
110
|
+
function isStoppingMessage(message) {
|
|
111
|
+
return (typeof message === "object" &&
|
|
112
|
+
message !== null &&
|
|
113
|
+
"type" in message &&
|
|
114
|
+
message.type === simWatchMessages.stopping);
|
|
115
|
+
}
|
|
116
|
+
/**
|
|
117
|
+
* The watch runtime for this process.
|
|
118
|
+
*
|
|
119
|
+
* One per process rather than one per `SimAws`, because it is about the process
|
|
120
|
+
* a supervisor started, not about any one simulated environment. Several
|
|
121
|
+
* simulations in the same process all report to the same supervisor.
|
|
122
|
+
*/
|
|
123
|
+
export const simWatch = new SimWatchRuntime();
|
|
124
|
+
//# sourceMappingURL=sim-watch-runtime.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sim-watch-runtime.js","sourceRoot":"","sources":["../../src/watch/sim-watch-runtime.ts"],"names":[],"mappings":"AAAA,OAAO,IAAI,MAAM,WAAW,CAAC;AAC7B,OAAO,EAAE,cAAc,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAC;AAoBzE;;;;;;;;;GASG;AACH,MAAM,OAAO,eAAe;IACT,IAAI,CAAkB;IACtB,iBAAiB,GAAG,IAAI,GAAG,EAA4B,CAAC;IACjE,SAAS,GAAG,KAAK,CAAC;IAET,SAAS,GAAG,CAAC,OAAgB,EAAQ,EAAE;QACtD,IAAI,CAAC,iBAAiB,CAAC,OAAO,CAAC,EAAE,CAAC;YAChC,OAAO;QACT,CAAC;QAED,KAAK,MAAM,QAAQ,IAAI,IAAI,CAAC,iBAAiB,EAAE,CAAC;YAC9C,QAAQ,EAAE,CAAC;QACb,CAAC;QAED,4EAA4E;QAC5E,2CAA2C;QAC3C,IAAI,CAAC,IAAI,CAAC,IAAI,EAAE,CAAC,EAAE,IAAI,EAAE,gBAAgB,CAAC,OAAO,EAAE,CAAC,CAAC;IACvD,CAAC,CAAC;IAEF,YAAY,UAAU,GAA8B,EAAE;QACpD,MAAM,EAAE,IAAI,GAAG,OAAO,EAAE,GAAG,UAAU,CAAC;QACtC,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC;IACnB,CAAC;IAED;;OAEG;IACH,UAAU;QACR,OAAO,CACL,IAAI,CAAC,IAAI,CAAC,GAAG,CAAC,cAAc,CAAC,uBAAuB,CAAC;YACnD,cAAc,CAAC,wBAAwB;YACzC,OAAO,IAAI,CAAC,IAAI,CAAC,IAAI,KAAK,UAAU,CACrC,CAAC;IACJ,CAAC;IAED;;;;;;OAMG;IACH,UAAU,CAAC,YAAoB;QAC7B,IAAI,CAAC,IAAI,CAAC,UAAU,EAAE,EAAE,CAAC;YACvB,OAAO;QACT,CAAC;QAED,IAAI,CAAC,IAAI,CAAC,IAAI,EAAE,CAAC;YACf,IAAI,EAAE,gBAAgB,CAAC,IAAI;YAC3B,IAAI,EAAE,IAAI,CAAC,OAAO,CAAC,YAAY,CAAC;SACjC,CAAC,CAAC;IACL,CAAC;IAED;;;;;;;;;;OAUG;IACH,cAAc,CAAC,QAAgB;QAC7B,IAAI,CAAC,IAAI,CAAC,UAAU,EAAE,EAAE,CAAC;YACvB,OAAO;QACT,CAAC;QAED,IAAI,CAAC,IAAI,CAAC,IAAI,EAAE,CAAC;YACf,IAAI,EAAE,gBAAgB,CAAC,QAAQ;YAC/B,IAAI,EAAE,IAAI,CAAC,OAAO,CAAC,QAAQ,CAAC;SAC7B,CAAC,CAAC;IACL,CAAC;IAED;;OAEG;IACH,UAAU,CAAC,QAAkC;QAC3C,IAAI,CAAC,IAAI,CAAC,UAAU,EAAE,EAAE,CAAC;YACvB,OAAO;QACT,CAAC;QAED,IAAI,CAAC,iBAAiB,CAAC,GAAG,CAAC,QAAQ,CAAC,CAAC;QACrC,IAAI,CAAC,MAAM,EAAE,CAAC;IAChB,CAAC;IAED;;OAEG;IACH,WAAW,CAAC,QAAkC;QAC5C,IAAI,CAAC,iBAAiB,CAAC,MAAM,CAAC,QAAQ,CAAC,CAAC;QAExC,IAAI,IAAI,CAAC,iBAAiB,CAAC,IAAI,KAAK,CAAC,EAAE,CAAC;YACtC,IAAI,CAAC,QAAQ,EAAE,CAAC;QAClB,CAAC;IACH,CAAC;IAEO,MAAM;QACZ,IAAI,IAAI,CAAC,SAAS,EAAE,CAAC;YACnB,OAAO;QACT,CAAC;QAED,IAAI,CAAC,SAAS,GAAG,IAAI,CAAC;QACtB,IAAI,CAAC,IAAI,CAAC,EAAE,CAAC,SAAS,EAAE,IAAI,CAAC,SAAS,CAAC,CAAC;IAC1C,CAAC;IAEO,QAAQ;QACd,IAAI,CAAC,IAAI,CAAC,SAAS,EAAE,CAAC;YACpB,OAAO;QACT,CAAC;QAED,IAAI,CAAC,SAAS,GAAG,KAAK,CAAC;QACvB,IAAI,CAAC,IAAI,CAAC,GAAG,CAAC,SAAS,EAAE,IAAI,CAAC,SAAS,CAAC,CAAC;IAC3C,CAAC;CACF;AAED,SAAS,iBAAiB,CAAC,OAAgB;IACzC,OAAO,CACL,OAAO,OAAO,KAAK,QAAQ;QAC3B,OAAO,KAAK,IAAI;QAChB,MAAM,IAAI,OAAO;QACjB,OAAO,CAAC,IAAI,KAAK,gBAAgB,CAAC,QAAQ,CAC3C,CAAC;AACJ,CAAC;AAED;;;;;;GAMG;AACH,MAAM,CAAC,MAAM,QAAQ,GAAG,IAAI,eAAe,EAAE,CAAC"}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
interface SimWatchSettleProperties {
|
|
2
|
+
readonly settleMs: number;
|
|
3
|
+
readonly onSettled: (changedPath: string) => void;
|
|
4
|
+
}
|
|
5
|
+
/**
|
|
6
|
+
* Turns a burst of writes into one change.
|
|
7
|
+
*
|
|
8
|
+
* Saving one file in an editor is several filesystem events: a temporary file
|
|
9
|
+
* written, renamed over the original, and often the directory touched as well.
|
|
10
|
+
* Acting on each of those would be several restarts, or several Stack updates,
|
|
11
|
+
* for one save, so the changes are held until they stop arriving.
|
|
12
|
+
*
|
|
13
|
+
* The path reported is the first of the burst, which is the one that actually
|
|
14
|
+
* changed rather than whatever the editor did around it.
|
|
15
|
+
*/
|
|
16
|
+
export declare class SimWatchSettle {
|
|
17
|
+
private readonly settleMs;
|
|
18
|
+
private readonly onSettled;
|
|
19
|
+
private pendingPath;
|
|
20
|
+
private timer;
|
|
21
|
+
constructor(properties: SimWatchSettleProperties);
|
|
22
|
+
/**
|
|
23
|
+
* Note a change, and wait to see whether more are coming.
|
|
24
|
+
*/
|
|
25
|
+
record(changedPath: string): void;
|
|
26
|
+
/**
|
|
27
|
+
* Drop anything waiting, for a watcher that is shutting down.
|
|
28
|
+
*/
|
|
29
|
+
cancel(): void;
|
|
30
|
+
}
|
|
31
|
+
export {};
|
|
32
|
+
//# sourceMappingURL=sim-watch-settle.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sim-watch-settle.d.ts","sourceRoot":"","sources":["../../src/watch/sim-watch-settle.ts"],"names":[],"mappings":"AAAA,UAAU,wBAAwB;IAChC,QAAQ,CAAC,QAAQ,EAAE,MAAM,CAAC;IAC1B,QAAQ,CAAC,SAAS,EAAE,CAAC,WAAW,EAAE,MAAM,KAAK,IAAI,CAAC;CACnD;AAED;;;;;;;;;;GAUG;AACH,qBAAa,cAAc;IACzB,OAAO,CAAC,QAAQ,CAAC,QAAQ,CAAS;IAClC,OAAO,CAAC,QAAQ,CAAC,SAAS,CAAgC;IAC1D,OAAO,CAAC,WAAW,CAAqB;IACxC,OAAO,CAAC,KAAK,CAA6B;IAE1C,YAAY,UAAU,EAAE,wBAAwB,EAI/C;IAED;;OAEG;IACH,MAAM,CAAC,WAAW,EAAE,MAAM,GAAG,IAAI,CAShC;IAED;;OAEG;IACH,MAAM,IAAI,IAAI,CAIb;CACF"}
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Turns a burst of writes into one change.
|
|
3
|
+
*
|
|
4
|
+
* Saving one file in an editor is several filesystem events: a temporary file
|
|
5
|
+
* written, renamed over the original, and often the directory touched as well.
|
|
6
|
+
* Acting on each of those would be several restarts, or several Stack updates,
|
|
7
|
+
* for one save, so the changes are held until they stop arriving.
|
|
8
|
+
*
|
|
9
|
+
* The path reported is the first of the burst, which is the one that actually
|
|
10
|
+
* changed rather than whatever the editor did around it.
|
|
11
|
+
*/
|
|
12
|
+
export class SimWatchSettle {
|
|
13
|
+
settleMs;
|
|
14
|
+
onSettled;
|
|
15
|
+
pendingPath;
|
|
16
|
+
timer;
|
|
17
|
+
constructor(properties) {
|
|
18
|
+
const { settleMs, onSettled } = properties;
|
|
19
|
+
this.settleMs = settleMs;
|
|
20
|
+
this.onSettled = onSettled;
|
|
21
|
+
}
|
|
22
|
+
/**
|
|
23
|
+
* Note a change, and wait to see whether more are coming.
|
|
24
|
+
*/
|
|
25
|
+
record(changedPath) {
|
|
26
|
+
this.pendingPath ??= changedPath;
|
|
27
|
+
const burstPath = this.pendingPath;
|
|
28
|
+
clearTimeout(this.timer);
|
|
29
|
+
this.timer = setTimeout(() => {
|
|
30
|
+
this.pendingPath = undefined;
|
|
31
|
+
this.onSettled(burstPath);
|
|
32
|
+
}, this.settleMs);
|
|
33
|
+
}
|
|
34
|
+
/**
|
|
35
|
+
* Drop anything waiting, for a watcher that is shutting down.
|
|
36
|
+
*/
|
|
37
|
+
cancel() {
|
|
38
|
+
clearTimeout(this.timer);
|
|
39
|
+
this.timer = undefined;
|
|
40
|
+
this.pendingPath = undefined;
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
//# sourceMappingURL=sim-watch-settle.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sim-watch-settle.js","sourceRoot":"","sources":["../../src/watch/sim-watch-settle.ts"],"names":[],"mappings":"AAKA;;;;;;;;;;GAUG;AACH,MAAM,OAAO,cAAc;IACR,QAAQ,CAAS;IACjB,SAAS,CAAgC;IAClD,WAAW,CAAqB;IAChC,KAAK,CAA6B;IAE1C,YAAY,UAAoC;QAC9C,MAAM,EAAE,QAAQ,EAAE,SAAS,EAAE,GAAG,UAAU,CAAC;QAC3C,IAAI,CAAC,QAAQ,GAAG,QAAQ,CAAC;QACzB,IAAI,CAAC,SAAS,GAAG,SAAS,CAAC;IAC7B,CAAC;IAED;;OAEG;IACH,MAAM,CAAC,WAAmB;QACxB,IAAI,CAAC,WAAW,KAAK,WAAW,CAAC;QACjC,MAAM,SAAS,GAAG,IAAI,CAAC,WAAW,CAAC;QAEnC,YAAY,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;QACzB,IAAI,CAAC,KAAK,GAAG,UAAU,CAAC,GAAG,EAAE;YAC3B,IAAI,CAAC,WAAW,GAAG,SAAS,CAAC;YAC7B,IAAI,CAAC,SAAS,CAAC,SAAS,CAAC,CAAC;QAC5B,CAAC,EAAE,IAAI,CAAC,QAAQ,CAAC,CAAC;IACpB,CAAC;IAED;;OAEG;IACH,MAAM;QACJ,YAAY,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;QACzB,IAAI,CAAC,KAAK,GAAG,SAAS,CAAC;QACvB,IAAI,CAAC,WAAW,GAAG,SAAS,CAAC;IAC/B,CAAC;CACF"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Configuration shared by `yulin watch` and the process it supervises.
|
|
3
|
+
*/
|
|
4
|
+
export declare const simWatchConfig: {
|
|
5
|
+
environmentVariableName: string;
|
|
6
|
+
environmentVariableValue: string;
|
|
7
|
+
settleMs: number;
|
|
8
|
+
stoppingMs: number;
|
|
9
|
+
exitMs: number;
|
|
10
|
+
selfInflictedMs: number;
|
|
11
|
+
loopRestarts: number;
|
|
12
|
+
};
|
|
13
|
+
/**
|
|
14
|
+
* The messages the supervisor and the supervised process send each other.
|
|
15
|
+
*/
|
|
16
|
+
export declare const simWatchMessages: {
|
|
17
|
+
readonly path: "yulin:watch-path";
|
|
18
|
+
readonly heldPath: "yulin:watch-held-path";
|
|
19
|
+
readonly stopping: "yulin:watch-stopping";
|
|
20
|
+
readonly stopped: "yulin:watch-stopped";
|
|
21
|
+
};
|
|
22
|
+
//# sourceMappingURL=sim-watch.config.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sim-watch.config.d.ts","sourceRoot":"","sources":["../../src/watch/sim-watch.config.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,eAAO,MAAM,cAAc;IAIzB,uBAAuB;IACvB,wBAAwB;IAGxB,QAAQ;IAIR,UAAU;IAEV,MAAM;IAGN,eAAe;IAEf,YAAY;CACb,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,gBAAgB;aAE3B,IAAI,EAAE,kBAAkB;aAGxB,QAAQ,EAAE,uBAAuB;aAEjC,QAAQ,EAAE,sBAAsB;aAEhC,OAAO,EAAE,qBAAqB;CACtB,CAAC"}
|