@kensio/yulin 1.10.1 → 1.10.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cli/watch/sim-watch-event-path.js +1 -1
- package/dist/cli/watch/sim-watch-restarts.js +1 -1
- package/dist/cli/watch/sim-watch-restarts.js.map +1 -1
- package/dist/cli/watch/sim-watch-watcher.js +3 -3
- package/dist/config/lint/cff-js2-lint-rules.d.ts.map +1 -1
- package/dist/config/lint/cff-js2-lint-rules.js.map +1 -1
- package/dist/config/lint/repo-lint-plugin.d.ts +68 -0
- package/dist/config/lint/repo-lint-plugin.d.ts.map +1 -0
- package/dist/config/lint/repo-lint-plugin.js +64 -0
- package/dist/config/lint/repo-lint-plugin.js.map +1 -0
- package/dist/sdk/module/sim-sdk-module-client-interceptor.js +1 -1
- package/dist/sdk/send-patch.js +1 -1
- package/dist/sdk/send-patch.js.map +1 -1
- package/dist/sdk/sim-sdk-interception.js +1 -1
- package/dist/sdk/sim-sdk-interception.js.map +1 -1
- package/dist/sdk/sim-sdk.js +1 -1
- package/dist/sdk/sim-sdk.js.map +1 -1
- package/dist/serve/http/live-reload/sim-live-reload-report.js +1 -1
- package/dist/serve/http/local-server/sim-aws-local-request-handler.js +1 -1
- package/dist/serve/http/local-server/sim-aws-local-request-handler.js.map +1 -1
- package/dist/service/acm/certificate/sim-acm-certificate.d.ts.map +1 -1
- package/dist/service/acm/certificate/sim-acm-certificate.js.map +1 -1
- package/dist/service/acm/certificate/sim-acm-domain-validation.d.ts.map +1 -1
- package/dist/service/acm/certificate/sim-acm-domain-validation.js.map +1 -1
- package/dist/service/acm/cfn/property/sim-cfn-acm-cert-properties.d.ts.map +1 -1
- package/dist/service/acm/cfn/property/sim-cfn-acm-cert-properties.js.map +1 -1
- package/dist/service/acm/cfn/validation/sim-cfn-acm-validation-records.js +1 -1
- package/dist/service/acm/command/describe-certificate/describe-certificate.command.d.ts.map +1 -1
- package/dist/service/acm/command/list-certificates/list-certificates.command.d.ts.map +1 -1
- package/dist/service/acm/command/request-certificate/request-certificate.command.d.ts.map +1 -1
- package/dist/service/apigatewayv2/command/authorizer/sim-http-api-authorizer-options.d.ts.map +1 -1
- package/dist/service/apigatewayv2/command/authorizer/sim-http-api-authorizer-options.js.map +1 -1
- package/dist/service/aws/caller/sim-aws-caller-resolver.d.ts.map +1 -1
- package/dist/service/aws/caller/sim-aws-caller-resolver.js.map +1 -1
- package/dist/service/aws/caller/sim-aws-caller.d.ts.map +1 -1
- package/dist/service/aws/factory/account-service-cache-key.d.ts.map +1 -1
- package/dist/service/aws/factory/account-service-cache-key.js.map +1 -1
- package/dist/service/aws/factory/sim-aws-account-service-cache.js +1 -1
- package/dist/service/aws/factory/sim-aws-account-service-cache.js.map +1 -1
- package/dist/service/cloudformation/bind/validate/sim-cfn-exec-binding-finder.d.ts.map +1 -1
- package/dist/service/cloudformation/bind/validate/sim-cfn-exec-binding-finder.js +1 -1
- package/dist/service/cloudformation/bind/validate/sim-cfn-exec-binding-finder.js.map +1 -1
- package/dist/service/cloudformation/bind/validate/sim-cfn-exec-binding-matcher.js +2 -2
- package/dist/service/cloudformation/cdk/assets/sim-cdk-asset-bytes.js +3 -3
- package/dist/service/cloudformation/cdk/assets/sim-cdk-assets-publisher.js +1 -1
- package/dist/service/cloudformation/cdk/provider/sim-cdk-provider-scaffolding-template.factory.d.ts +40 -0
- package/dist/service/cloudformation/cdk/provider/sim-cdk-provider-scaffolding-template.factory.d.ts.map +1 -0
- package/dist/service/cloudformation/cdk/provider/sim-cdk-provider-scaffolding-template.factory.js +107 -0
- package/dist/service/cloudformation/cdk/provider/sim-cdk-provider-scaffolding-template.factory.js.map +1 -0
- package/dist/service/cloudformation/cdk/provider/sim-cdk-provider-scaffolding.d.ts +66 -0
- package/dist/service/cloudformation/cdk/provider/sim-cdk-provider-scaffolding.d.ts.map +1 -0
- package/dist/service/cloudformation/cdk/provider/sim-cdk-provider-scaffolding.js +133 -0
- package/dist/service/cloudformation/cdk/provider/sim-cdk-provider-scaffolding.js.map +1 -0
- package/dist/service/cloudformation/cdk/s3/bucket-deployment/copy/sim-cdk-bucket-deploy-copier.d.ts +6 -1
- package/dist/service/cloudformation/cdk/s3/bucket-deployment/copy/sim-cdk-bucket-deploy-copier.d.ts.map +1 -1
- package/dist/service/cloudformation/cdk/s3/bucket-deployment/copy/sim-cdk-bucket-deploy-copier.js +7 -1
- package/dist/service/cloudformation/cdk/s3/bucket-deployment/copy/sim-cdk-bucket-deploy-copier.js.map +1 -1
- package/dist/service/cloudformation/cdk/s3/bucket-deployment/copy/sim-cdk-bucket-deploy-file.js +1 -1
- package/dist/service/cloudformation/cdk/s3/bucket-deployment/copy/sim-cdk-bucket-deploy-files.js +2 -2
- package/dist/service/cloudformation/cdk/s3/bucket-deployment/destination/sim-cdk-bucket-deploy-destination.d.ts +14 -0
- package/dist/service/cloudformation/cdk/s3/bucket-deployment/destination/sim-cdk-bucket-deploy-destination.d.ts.map +1 -0
- package/dist/service/cloudformation/cdk/s3/bucket-deployment/destination/sim-cdk-bucket-deploy-destination.js +20 -0
- package/dist/service/cloudformation/cdk/s3/bucket-deployment/destination/sim-cdk-bucket-deploy-destination.js.map +1 -0
- package/dist/service/cloudformation/cdk/s3/bucket-deployment/filter/sim-cdk-bucket-deploy-filter.js +7 -1
- package/dist/service/cloudformation/cdk/s3/bucket-deployment/filter/sim-cdk-bucket-deploy-filter.js.map +1 -1
- package/dist/service/cloudformation/cdk/s3/bucket-deployment/metadata/sim-cdk-bucket-deploy-metadata.d.ts +58 -0
- package/dist/service/cloudformation/cdk/s3/bucket-deployment/metadata/sim-cdk-bucket-deploy-metadata.d.ts.map +1 -0
- package/dist/service/cloudformation/cdk/s3/bucket-deployment/metadata/sim-cdk-bucket-deploy-metadata.js +65 -0
- package/dist/service/cloudformation/cdk/s3/bucket-deployment/metadata/sim-cdk-bucket-deploy-metadata.js.map +1 -0
- package/dist/service/cloudformation/cdk/s3/bucket-deployment/property/sim-cdk-bucket-deploy-values.js +1 -1
- 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 +16 -7
- package/dist/service/cloudformation/cdk/s3/bucket-deployment/sim-cdk-bucket-deployment.js.map +1 -1
- package/dist/service/cloudformation/cdk/s3/bucket-deployment/source/sim-cdk-bucket-deploy-source.js +1 -1
- package/dist/service/cloudformation/cdk/s3/bucket-deployment/source/sim-cdk-bucket-deploy-source.js.map +1 -1
- package/dist/service/cloudformation/cdk/s3/bucket-notifications/property/sim-cdk-bucket-notification-properties.js +1 -1
- package/dist/service/cloudformation/cdk/s3/bucket-notifications/sim-cdk-bucket-notifications.d.ts +4 -2
- 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 +4 -2
- package/dist/service/cloudformation/cdk/s3/bucket-notifications/sim-cdk-bucket-notifications.js.map +1 -1
- package/dist/service/cloudformation/cdk/sim-cdk-out-context.js +1 -1
- package/dist/service/cloudformation/command/create-stack/create-stack.handler.d.ts.map +1 -1
- package/dist/service/cloudformation/command/create-stack/create-stack.handler.js.map +1 -1
- 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.map +1 -1
- package/dist/service/cloudformation/deploy/sim-cfn-template-file-loader.js +1 -1
- package/dist/service/cloudformation/resource/cfn/cloudfront/sim-cloudfront-cfn-value-adapter.d.ts.map +1 -1
- package/dist/service/cloudformation/resource/cfn/cloudfront/sim-cloudfront-cfn-value-adapter.js +8 -0
- package/dist/service/cloudformation/resource/cfn/cloudfront/sim-cloudfront-cfn-value-adapter.js.map +1 -1
- package/dist/service/cloudformation/resource/cfn/cloudfront/sim-cloudfront-oac-cfn.d.ts +25 -0
- package/dist/service/cloudformation/resource/cfn/cloudfront/sim-cloudfront-oac-cfn.d.ts.map +1 -0
- package/dist/service/cloudformation/resource/cfn/cloudfront/sim-cloudfront-oac-cfn.js +32 -0
- package/dist/service/cloudformation/resource/cfn/cloudfront/sim-cloudfront-oac-cfn.js.map +1 -0
- package/dist/service/cloudformation/resource/create/sim-cfn-resource-create-operation.d.ts +11 -0
- 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 +20 -2
- package/dist/service/cloudformation/resource/create/sim-cfn-resource-create-operation.js.map +1 -1
- package/dist/service/cloudformation/resource/inert/sim-cfn-inert-resource-types.d.ts +20 -0
- package/dist/service/cloudformation/resource/inert/sim-cfn-inert-resource-types.d.ts.map +1 -0
- package/dist/service/cloudformation/resource/inert/sim-cfn-inert-resource-types.js +32 -0
- package/dist/service/cloudformation/resource/inert/sim-cfn-inert-resource-types.js.map +1 -0
- package/dist/service/cloudformation/resource/inert/sim-cfn-inert-resource.d.ts +19 -0
- package/dist/service/cloudformation/resource/inert/sim-cfn-inert-resource.d.ts.map +1 -0
- package/dist/service/cloudformation/resource/inert/sim-cfn-inert-resource.js +26 -0
- package/dist/service/cloudformation/resource/inert/sim-cfn-inert-resource.js.map +1 -0
- package/dist/service/cloudformation/resource/sim-cfn-resource.d.ts +15 -0
- package/dist/service/cloudformation/resource/sim-cfn-resource.d.ts.map +1 -1
- package/dist/service/cloudformation/resource/sim-cfn-resource.js +21 -0
- package/dist/service/cloudformation/resource/sim-cfn-resource.js.map +1 -1
- package/dist/service/cloudformation/resource/state/sim-cfn-resource-creation-state.d.ts +20 -0
- package/dist/service/cloudformation/resource/state/sim-cfn-resource-creation-state.d.ts.map +1 -1
- package/dist/service/cloudformation/resource/state/sim-cfn-resource-creation-state.js +41 -11
- package/dist/service/cloudformation/resource/state/sim-cfn-resource-creation-state.js.map +1 -1
- 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.map +1 -1
- package/dist/service/cloudformation/stack/deploy/sim-cfn-stack-resource-creator.js +1 -1
- package/dist/service/cloudformation/stack/report/sim-cfn-stack-resource-report.d.ts +9 -0
- package/dist/service/cloudformation/stack/report/sim-cfn-stack-resource-report.d.ts.map +1 -1
- package/dist/service/cloudformation/stack/report/sim-cfn-stack-resource-report.js +11 -0
- package/dist/service/cloudformation/stack/report/sim-cfn-stack-resource-report.js.map +1 -1
- package/dist/service/cloudformation/stack/sim-cfn-stack-resource-operations.d.ts.map +1 -1
- package/dist/service/cloudformation/stack/sim-cfn-stack-resource-operations.js.map +1 -1
- package/dist/service/cloudformation/stack/sim-cfn-stack.d.ts +2 -0
- package/dist/service/cloudformation/stack/sim-cfn-stack.d.ts.map +1 -1
- package/dist/service/cloudformation/stack/sim-cfn-stack.js +4 -0
- package/dist/service/cloudformation/stack/sim-cfn-stack.js.map +1 -1
- package/dist/service/cloudformation/stack/teardown/sim-cfn-stack-resource-deleter.js +1 -1
- package/dist/service/cloudformation/template/node/fn/find-in-map/sim-cfn-fn-find-in-map.js +2 -2
- package/dist/service/cloudformation/template/node/fn/select/sim-cfn-fn-select.js +1 -1
- package/dist/service/cloudformation/watch/sim-cfn-template-file-events.js +1 -1
- package/dist/service/cloudformation/watch/sim-cfn-template-watch-report.js +2 -2
- package/dist/service/cloudfront/cff/adapter/sim-cff-request-metadata-adapter.js +3 -3
- package/dist/service/cloudfront/cff/function-code-module/cff-code-module-file.js +1 -1
- package/dist/service/cloudfront/cff/sim-cloudfront-function.d.ts.map +1 -1
- package/dist/service/cloudfront/cff/sim-cloudfront-function.js.map +1 -1
- package/dist/service/cloudfront/cfn/cff/sim-cfn-cff-create-input-builder.d.ts.map +1 -1
- package/dist/service/cloudfront/cfn/cff/sim-cfn-cff-create-input-builder.js.map +1 -1
- package/dist/service/cloudfront/cfn/distro/sim-cfn-cf-distro-config-validator.d.ts.map +1 -1
- package/dist/service/cloudfront/cfn/distro/sim-cfn-cf-distro-config-validator.js.map +1 -1
- package/dist/service/cloudfront/cfn/distro/sim-cfn-cf-distro-deleter.d.ts.map +1 -1
- package/dist/service/cloudfront/cfn/distro/sim-cfn-cf-distro-deleter.js.map +1 -1
- package/dist/service/cloudfront/cfn/origin-access-control/sim-cfn-cf-oac-config.d.ts +39 -0
- package/dist/service/cloudfront/cfn/origin-access-control/sim-cfn-cf-oac-config.d.ts.map +1 -0
- package/dist/service/cloudfront/cfn/origin-access-control/sim-cfn-cf-oac-config.js +97 -0
- package/dist/service/cloudfront/cfn/origin-access-control/sim-cfn-cf-oac-config.js.map +1 -0
- package/dist/service/cloudfront/cfn/origin-access-control/sim-cfn-cf-oac-creator.d.ts +25 -0
- package/dist/service/cloudfront/cfn/origin-access-control/sim-cfn-cf-oac-creator.d.ts.map +1 -0
- package/dist/service/cloudfront/cfn/origin-access-control/sim-cfn-cf-oac-creator.js +33 -0
- package/dist/service/cloudfront/cfn/origin-access-control/sim-cfn-cf-oac-creator.js.map +1 -0
- package/dist/service/cloudfront/cfn/response-headers-policy/sim-cfn-cf-rh-policy-config.js +2 -2
- package/dist/service/cloudfront/cfn/response-headers-policy/sim-cfn-cf-rh-policy-creator.d.ts.map +1 -1
- package/dist/service/cloudfront/cfn/response-headers-policy/sim-cfn-cf-rh-policy-creator.js.map +1 -1
- package/dist/service/cloudfront/cfn/sim-cfn-cloudfront-resource-factory.d.ts +1 -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 +12 -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 +8 -1
- 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 +2 -0
- package/dist/service/cloudfront/command/create-distribution/create-distribution.handler.d.ts.map +1 -1
- package/dist/service/cloudfront/command/create-distribution/create-distribution.handler.js.map +1 -1
- package/dist/service/cloudfront/command/create-distribution/sim-cf-distro-config-normalizer.d.ts.map +1 -1
- package/dist/service/cloudfront/command/create-distribution/sim-cf-distro-config-normalizer.js.map +1 -1
- package/dist/service/cloudfront/command/update-distribution/update-distribution.handler.d.ts +2 -0
- package/dist/service/cloudfront/command/update-distribution/update-distribution.handler.d.ts.map +1 -1
- package/dist/service/cloudfront/command/update-distribution/update-distribution.handler.js.map +1 -1
- package/dist/service/cloudfront/distribution/configurator/sim-cf-distribution-configurator.factory.d.ts +2 -0
- package/dist/service/cloudfront/distribution/configurator/sim-cf-distribution-configurator.factory.d.ts.map +1 -1
- package/dist/service/cloudfront/distribution/configurator/sim-cf-distribution-configurator.factory.js +1 -1
- package/dist/service/cloudfront/distribution/configurator/sim-cf-distribution-configurator.factory.js.map +1 -1
- package/dist/service/cloudfront/distribution/configurator/sim-cff-associations-configure.d.ts.map +1 -1
- package/dist/service/cloudfront/distribution/configurator/sim-cff-associations-configure.js.map +1 -1
- package/dist/service/cloudfront/distribution/configurator/sim-cloud-front-behavior-configurator.js.map +1 -1
- package/dist/service/cloudfront/distribution/configurator/sim-cloud-front-origin-configurator.d.ts +19 -1
- package/dist/service/cloudfront/distribution/configurator/sim-cloud-front-origin-configurator.d.ts.map +1 -1
- package/dist/service/cloudfront/distribution/configurator/sim-cloud-front-origin-configurator.js +51 -4
- package/dist/service/cloudfront/distribution/configurator/sim-cloud-front-origin-configurator.js.map +1 -1
- package/dist/service/cloudfront/distribution/sim-cf-distribution-reconfigurer.d.ts +2 -0
- package/dist/service/cloudfront/distribution/sim-cf-distribution-reconfigurer.d.ts.map +1 -1
- package/dist/service/cloudfront/distribution/sim-cf-distribution-reconfigurer.js.map +1 -1
- package/dist/service/cloudfront/error/sim-cloudfront.error.d.ts +20 -0
- package/dist/service/cloudfront/error/sim-cloudfront.error.d.ts.map +1 -1
- package/dist/service/cloudfront/error/sim-cloudfront.error.js +24 -0
- package/dist/service/cloudfront/error/sim-cloudfront.error.js.map +1 -1
- package/dist/service/cloudfront/origin/s3/sim-cf-s3-origin-access-identity.d.ts +14 -0
- package/dist/service/cloudfront/origin/s3/sim-cf-s3-origin-access-identity.d.ts.map +1 -0
- package/dist/service/cloudfront/origin/s3/sim-cf-s3-origin-access-identity.js +19 -0
- package/dist/service/cloudfront/origin/s3/sim-cf-s3-origin-access-identity.js.map +1 -0
- package/dist/service/cloudfront/origin/s3/sim-cf-s3-origin-bucket.d.ts +14 -0
- package/dist/service/cloudfront/origin/s3/sim-cf-s3-origin-bucket.d.ts.map +1 -0
- package/dist/service/cloudfront/origin/s3/sim-cf-s3-origin-bucket.js +2 -0
- package/dist/service/cloudfront/origin/s3/sim-cf-s3-origin-bucket.js.map +1 -0
- package/dist/service/cloudfront/origin/s3/sim-cf-s3-origin-object-key.d.ts +17 -0
- package/dist/service/cloudfront/origin/s3/sim-cf-s3-origin-object-key.d.ts.map +1 -0
- package/dist/service/cloudfront/origin/s3/sim-cf-s3-origin-object-key.js +23 -0
- package/dist/service/cloudfront/origin/s3/sim-cf-s3-origin-object-key.js.map +1 -0
- package/dist/service/cloudfront/origin/s3/sim-cf-s3-origin-object-loader.d.ts +31 -0
- package/dist/service/cloudfront/origin/s3/sim-cf-s3-origin-object-loader.d.ts.map +1 -0
- package/dist/service/cloudfront/origin/s3/sim-cf-s3-origin-object-loader.js +54 -0
- package/dist/service/cloudfront/origin/s3/sim-cf-s3-origin-object-loader.js.map +1 -0
- package/dist/service/cloudfront/origin/s3/sim-cf-s3-origin-resolver-factory.d.ts +11 -2
- package/dist/service/cloudfront/origin/s3/sim-cf-s3-origin-resolver-factory.d.ts.map +1 -1
- package/dist/service/cloudfront/origin/s3/sim-cf-s3-origin-resolver-factory.js +19 -6
- package/dist/service/cloudfront/origin/s3/sim-cf-s3-origin-resolver-factory.js.map +1 -1
- package/dist/service/cloudfront/origin/s3/sim-cf-s3-origin-responses.d.ts +32 -0
- package/dist/service/cloudfront/origin/s3/sim-cf-s3-origin-responses.d.ts.map +1 -0
- package/dist/service/cloudfront/origin/s3/sim-cf-s3-origin-responses.js +51 -0
- package/dist/service/cloudfront/origin/s3/sim-cf-s3-origin-responses.js.map +1 -0
- package/dist/service/cloudfront/origin/s3/sim-cf-s3-origin-signer.d.ts +26 -0
- package/dist/service/cloudfront/origin/s3/sim-cf-s3-origin-signer.d.ts.map +1 -0
- package/dist/service/cloudfront/origin/s3/sim-cf-s3-origin-signer.js +36 -0
- package/dist/service/cloudfront/origin/s3/sim-cf-s3-origin-signer.js.map +1 -0
- package/dist/service/cloudfront/origin/s3/sim-cloudfront-s3-origin.d.ts +25 -9
- package/dist/service/cloudfront/origin/s3/sim-cloudfront-s3-origin.d.ts.map +1 -1
- package/dist/service/cloudfront/origin/s3/sim-cloudfront-s3-origin.js +40 -48
- package/dist/service/cloudfront/origin/s3/sim-cloudfront-s3-origin.js.map +1 -1
- package/dist/service/cloudfront/origin-access-control/sim-cf-origin-access-control-registry.d.ts +28 -0
- package/dist/service/cloudfront/origin-access-control/sim-cf-origin-access-control-registry.d.ts.map +1 -0
- package/dist/service/cloudfront/origin-access-control/sim-cf-origin-access-control-registry.js +41 -0
- package/dist/service/cloudfront/origin-access-control/sim-cf-origin-access-control-registry.js.map +1 -0
- package/dist/service/cloudfront/origin-access-control/sim-cf-origin-access-control.d.ts +61 -0
- package/dist/service/cloudfront/origin-access-control/sim-cf-origin-access-control.d.ts.map +1 -0
- package/dist/service/cloudfront/origin-access-control/sim-cf-origin-access-control.js +53 -0
- package/dist/service/cloudfront/origin-access-control/sim-cf-origin-access-control.js.map +1 -0
- package/dist/service/cloudfront/resolver/sim-cloudfront-path-pattern.d.ts +10 -0
- package/dist/service/cloudfront/resolver/sim-cloudfront-path-pattern.d.ts.map +1 -1
- package/dist/service/cloudfront/resolver/sim-cloudfront-path-pattern.js +22 -2
- package/dist/service/cloudfront/resolver/sim-cloudfront-path-pattern.js.map +1 -1
- package/dist/service/cloudfront/sim-cloudfront-commands.d.ts +3 -0
- package/dist/service/cloudfront/sim-cloudfront-commands.d.ts.map +1 -1
- package/dist/service/cloudfront/sim-cloudfront-commands.js +3 -0
- package/dist/service/cloudfront/sim-cloudfront-commands.js.map +1 -1
- package/dist/service/cloudfront/sim-cloudfront-service-principal.d.ts +9 -0
- package/dist/service/cloudfront/sim-cloudfront-service-principal.d.ts.map +1 -0
- package/dist/service/cloudfront/sim-cloudfront-service-principal.js +9 -0
- package/dist/service/cloudfront/sim-cloudfront-service-principal.js.map +1 -0
- package/dist/service/cloudfront/sim-cloudfront.d.ts +19 -0
- package/dist/service/cloudfront/sim-cloudfront.d.ts.map +1 -1
- package/dist/service/cloudfront/sim-cloudfront.js +26 -0
- package/dist/service/cloudfront/sim-cloudfront.js.map +1 -1
- package/dist/service/cognito/command/auth/auth.command.d.ts.map +1 -1
- package/dist/service/cognito/command/auth/sim-cognito-new-password-challenge.d.ts.map +1 -1
- package/dist/service/cognito/command/auth/sim-cognito-new-password-challenge.js +0 -1
- package/dist/service/cognito/command/auth/sim-cognito-new-password-challenge.js.map +1 -1
- package/dist/service/cognito/command/client/list-user-pool-clients.command.d.ts.map +1 -1
- package/dist/service/cognito/command/user-pool/user-pool.command.d.ts.map +1 -1
- package/dist/service/cognito/serve/sim-cognito-openid-configuration.d.ts.map +1 -1
- package/dist/service/cognito/serve/sim-cognito-openid-configuration.js.map +1 -1
- package/dist/service/cognito/user-pool/auth/sim-cognito-secret-hash.js +1 -1
- package/dist/service/cognito/user-pool/client/sim-cognito-token-lifetime.d.ts.map +1 -1
- package/dist/service/cognito/user-pool/client/sim-cognito-token-lifetime.js.map +1 -1
- package/dist/service/cognito/user-pool/message/sim-cognito-message-occasion.d.ts.map +1 -1
- package/dist/service/cognito/user-pool/message/sim-cognito-verification-messages.d.ts.map +1 -1
- package/dist/service/cognito/user-pool/message/sim-cognito-verification-messages.js.map +1 -1
- package/dist/service/cognito/user-pool/sim-cognito-user-pool-settings.d.ts.map +1 -1
- package/dist/service/cognito/user-pool/sim-cognito-user-pool-settings.js.map +1 -1
- package/dist/service/cognito/user-pool/token/sim-cognito-access-token.d.ts.map +1 -1
- package/dist/service/cognito/user-pool/token/sim-cognito-access-token.js +0 -2
- package/dist/service/cognito/user-pool/token/sim-cognito-access-token.js.map +1 -1
- package/dist/service/cognito/user-pool/token/sim-cognito-group-override.js +1 -1
- package/dist/service/cognito/user-pool/token/sim-cognito-id-token.d.ts.map +1 -1
- package/dist/service/cognito/user-pool/token/sim-cognito-id-token.js +0 -2
- package/dist/service/cognito/user-pool/token/sim-cognito-id-token.js.map +1 -1
- package/dist/service/cognito/user-pool/token/sim-cognito-token-claims.d.ts.map +1 -1
- package/dist/service/cognito/user-pool/token/sim-cognito-token-claims.js.map +1 -1
- package/dist/service/cognito/user-pool/trigger/sim-aws-cognito-trigger-functions.js +1 -1
- package/dist/service/cognito/user-pool/trigger/sim-aws-cognito-trigger-functions.js.map +1 -1
- package/dist/service/cognito/user-pool/user/sim-cognito-user-status.d.ts.map +1 -1
- package/dist/service/cognito/user-pool/user/sim-cognito-user-status.js.map +1 -1
- package/dist/service/dynamodb/cfn/table/sim-cfn-dynamodb-table-properties.d.ts.map +1 -1
- package/dist/service/dynamodb/cfn/table/sim-cfn-dynamodb-table-properties.js.map +1 -1
- package/dist/service/dynamodb/command/batch/batch.command.d.ts.map +1 -1
- package/dist/service/dynamodb/command/batch/sim-dynamodb-batch-reads.d.ts.map +1 -1
- package/dist/service/dynamodb/command/batch/sim-dynamodb-batch-reads.js.map +1 -1
- package/dist/service/dynamodb/command/batch/sim-dynamodb-batch-writes.d.ts.map +1 -1
- package/dist/service/dynamodb/command/batch/sim-dynamodb-batch-writes.js.map +1 -1
- package/dist/service/dynamodb/command/item/item.command.d.ts.map +1 -1
- package/dist/service/dynamodb/command/item/item.types.d.ts.map +1 -1
- package/dist/service/dynamodb/command/item/sim-dynamodb-condition-check.d.ts.map +1 -1
- package/dist/service/dynamodb/command/item/sim-dynamodb-condition-check.js.map +1 -1
- package/dist/service/dynamodb/command/item/sim-dynamodb-item-page.d.ts.map +1 -1
- package/dist/service/dynamodb/command/item/sim-dynamodb-item-page.js.map +1 -1
- package/dist/service/dynamodb/command/item/sim-dynamodb-unsimulated-item-write-input.d.ts.map +1 -1
- package/dist/service/dynamodb/command/item/sim-dynamodb-unsimulated-item-write-input.js.map +1 -1
- package/dist/service/dynamodb/command/query/query.command.d.ts.map +1 -1
- package/dist/service/dynamodb/command/query/sim-dynamodb-query-start-key.d.ts.map +1 -1
- package/dist/service/dynamodb/command/query/sim-dynamodb-query-start-key.js.map +1 -1
- package/dist/service/dynamodb/command/read/sim-dynamodb-read-answer.d.ts.map +1 -1
- package/dist/service/dynamodb/command/read/sim-dynamodb-read-answer.js.map +1 -1
- package/dist/service/dynamodb/command/scan/scan.command.d.ts.map +1 -1
- package/dist/service/dynamodb/command/scan/sim-dynamodb-scan-start-key.d.ts.map +1 -1
- package/dist/service/dynamodb/command/scan/sim-dynamodb-scan-start-key.js.map +1 -1
- package/dist/service/dynamodb/command/stream/stream.types.d.ts.map +1 -1
- package/dist/service/dynamodb/command/table/table.command.d.ts.map +1 -1
- package/dist/service/dynamodb/command/table/table.types.d.ts.map +1 -1
- package/dist/service/dynamodb/command/time-to-live/time-to-live.command.d.ts.map +1 -1
- package/dist/service/dynamodb/command/time-to-live/time-to-live.types.d.ts.map +1 -1
- package/dist/service/dynamodb/command/transact/transact.command.d.ts.map +1 -1
- package/dist/service/dynamodb/document/sim-dynamodb-document-path.js +2 -2
- package/dist/service/dynamodb/error/dynamodb.error.d.ts.map +1 -1
- package/dist/service/dynamodb/error/dynamodb.error.js.map +1 -1
- package/dist/service/dynamodb/expression/sim-dynamodb-document-path.d.ts.map +1 -1
- package/dist/service/dynamodb/expression/sim-dynamodb-document-path.js.map +1 -1
- package/dist/service/dynamodb/expression/sim-dynamodb-expression-parameters.d.ts.map +1 -1
- package/dist/service/dynamodb/expression/sim-dynamodb-expression-parameters.js.map +1 -1
- package/dist/service/dynamodb/expression/sim-dynamodb-expression-token.d.ts.map +1 -1
- package/dist/service/dynamodb/expression/update/sim-dynamodb-update-erase.js +1 -1
- package/dist/service/dynamodb/expression/update/sim-dynamodb-update-write.js +1 -1
- package/dist/service/dynamodb/item/sim-dynamodb-number.js +1 -1
- package/dist/service/dynamodb/secondary-index/sim-dynamodb-local-secondary-indexes.d.ts.map +1 -1
- package/dist/service/dynamodb/secondary-index/sim-dynamodb-local-secondary-indexes.js.map +1 -1
- package/dist/service/dynamodb/secondary-index/sim-dynamodb-secondary-indexes.d.ts.map +1 -1
- package/dist/service/dynamodb/secondary-index/sim-dynamodb-secondary-indexes.js.map +1 -1
- package/dist/service/dynamodb/stream/sim-dynamodb-stream.types.d.ts.map +1 -1
- package/dist/service/dynamodb/stream/sim-dynamodb-streamed-orders.factory.js +1 -1
- package/dist/service/dynamodb/table/sim-dynamodb-item-key.d.ts.map +1 -1
- package/dist/service/dynamodb/table/sim-dynamodb-item-key.js.map +1 -1
- package/dist/service/iam/authorize/context/sim-iam-auth-z-context-builder.d.ts.map +1 -1
- package/dist/service/iam/authorize/context/sim-iam-auth-z-context-builder.js.map +1 -1
- package/dist/service/iam/authorize/sim-iam-wildcard.js +1 -1
- package/dist/service/iam/cfn/policy/sim-cfn-iam-policy-creator.js +1 -1
- package/dist/service/iam/command/policy/create-policy/create-policy-record-factory.d.ts.map +1 -1
- package/dist/service/iam/command/policy/create-policy/create-policy-record-factory.js.map +1 -1
- package/dist/service/iam/command/policy/create-policy/create-policy.command.d.ts.map +1 -1
- package/dist/service/iam/command/policy/put-role-policy/put-role-policy.command.d.ts.map +1 -1
- package/dist/service/iam/command/policy/put-user-policy/put-user-policy.command.d.ts.map +1 -1
- package/dist/service/iam/command/role/create-role/create-role-record-factory.d.ts.map +1 -1
- package/dist/service/iam/command/role/create-role/create-role-record-factory.js.map +1 -1
- package/dist/service/iam/policy/sim-iam-pol-document-statements.js +1 -1
- package/dist/service/iam/policy/sim-iam-pol-document-statements.js.map +1 -1
- package/dist/service/iam/policy/sim-iam-policy.d.ts.map +1 -1
- package/dist/service/iam/principal/sim-iam-principal.d.ts.map +1 -1
- package/dist/service/iam/request/error/sim-aws-request-auth.error.d.ts.map +1 -1
- package/dist/service/iam/request/error/sim-aws-request-auth.error.js.map +1 -1
- package/dist/service/iam/role/arn/sim-iam-role-arn.js.map +1 -1
- package/dist/service/iam/role/sim-iam-role.d.ts.map +1 -1
- package/dist/service/iam/user/arn/sim-iam-user-arn.js.map +1 -1
- package/dist/service/iam/validate/sim-iam-policy-document-validator.js +1 -1
- package/dist/service/iam/validate/sim-iam-policy-document-validator.js.map +1 -1
- package/dist/service/iam/validate/trust/sim-iam-trust-policy-document-validator.js +1 -1
- package/dist/service/iam/validate/trust/sim-iam-trust-policy-document-validator.js.map +1 -1
- package/dist/service/lambda/cfn/event-source-mapping/sim-cfn-lambda-event-source-mapping-properties.d.ts.map +1 -1
- package/dist/service/lambda/cfn/event-source-mapping/sim-cfn-lambda-event-source-mapping-properties.js.map +1 -1
- package/dist/service/lambda/cfn/function/sim-cfn-lambda-runtime-skip.d.ts +5 -1
- package/dist/service/lambda/cfn/function/sim-cfn-lambda-runtime-skip.d.ts.map +1 -1
- package/dist/service/lambda/cfn/function/sim-cfn-lambda-runtime-skip.js +5 -1
- package/dist/service/lambda/cfn/function/sim-cfn-lambda-runtime-skip.js.map +1 -1
- package/dist/service/lambda/cfn/sim-cfn-lambda-resource-deleter.d.ts.map +1 -1
- package/dist/service/lambda/cfn/sim-cfn-lambda-resource-deleter.js.map +1 -1
- package/dist/service/lambda/command/event-source-mapping/create-event-source-mapping-input.d.ts.map +1 -1
- package/dist/service/lambda/command/event-source-mapping/create-event-source-mapping-input.js.map +1 -1
- package/dist/service/lambda/event-source/queue/sim-lambda-event-source-queues.d.ts.map +1 -1
- package/dist/service/lambda/event-source/queue/sim-lambda-event-source-queues.js.map +1 -1
- package/dist/service/lambda/event-source/sim-lambda-event-source-arn.d.ts.map +1 -1
- package/dist/service/lambda/event-source/sim-lambda-event-source-arn.js.map +1 -1
- package/dist/service/lambda/event-source/sim-lambda-event-source-mapping.d.ts.map +1 -1
- package/dist/service/lambda/event-source/sim-lambda-event-source-mapping.js.map +1 -1
- package/dist/service/lambda/function/code/sim-lambda-vm-zip-code-factory.d.ts.map +1 -1
- package/dist/service/lambda/function/code/sim-lambda-vm-zip-code-factory.js.map +1 -1
- package/dist/service/lambda/function/environment/sim-lambda-environment-conflicts.js +2 -2
- package/dist/service/lambda/function/environment/sim-lambda-process-environment.js +1 -1
- package/dist/service/lambda/function/invoke/sim-lambda-handler-runner.js +1 -1
- package/dist/service/lambda/function/invoke/sim-lambda-handler-runner.js.map +1 -1
- package/dist/service/lambda/function/sim-lambda-function.d.ts.map +1 -1
- package/dist/service/lambda/function/sim-lambda-function.js.map +1 -1
- package/dist/service/rekognition/face/sim-rekognition-face-detail-builder.d.ts.map +1 -1
- package/dist/service/rekognition/face/sim-rekognition-face-detail-builder.js +1 -1
- package/dist/service/rekognition/face/sim-rekognition-face-detail-builder.js.map +1 -1
- package/dist/service/rekognition/face/sim-rekognition-face-landmark-points.js +2 -2
- package/dist/service/rekognition/label/sim-rekognition-label-declaration.d.ts.map +1 -1
- package/dist/service/rekognition/label/sim-rekognition-label-declaration.js.map +1 -1
- package/dist/service/rekognition/moderation/sim-rekognition-moderation-result.d.ts.map +1 -1
- package/dist/service/rekognition/moderation/sim-rekognition-moderation-result.js.map +1 -1
- package/dist/service/rekognition/sample/sim-rekognition-sample-image-files.js +1 -1
- package/dist/service/route53/command/list-resource-record-sets/list-resource-record-sets.command.d.ts.map +1 -1
- package/dist/service/s3/bucket/sim-s3-bucket-access.d.ts +3 -2
- package/dist/service/s3/bucket/sim-s3-bucket-access.d.ts.map +1 -1
- package/dist/service/s3/bucket/sim-s3-bucket-access.js +11 -7
- package/dist/service/s3/bucket/sim-s3-bucket-access.js.map +1 -1
- package/dist/service/s3/bucket/sim-s3-bucket-system-metadata.d.ts +29 -0
- package/dist/service/s3/bucket/sim-s3-bucket-system-metadata.d.ts.map +1 -0
- package/dist/service/s3/bucket/sim-s3-bucket-system-metadata.js +32 -0
- package/dist/service/s3/bucket/sim-s3-bucket-system-metadata.js.map +1 -0
- package/dist/service/s3/bucket/sim-s3-bucket.d.ts +11 -0
- package/dist/service/s3/bucket/sim-s3-bucket.d.ts.map +1 -1
- package/dist/service/s3/bucket/sim-s3-bucket.js +13 -0
- package/dist/service/s3/bucket/sim-s3-bucket.js.map +1 -1
- package/dist/service/s3/bucket/sim-s3-public-read.fixture.d.ts +17 -0
- package/dist/service/s3/bucket/sim-s3-public-read.fixture.d.ts.map +1 -0
- package/dist/service/s3/bucket/sim-s3-public-read.fixture.js +40 -0
- package/dist/service/s3/bucket/sim-s3-public-read.fixture.js.map +1 -0
- package/dist/service/s3/bucket/website/redirect/s3-bucket-website-redirects.js +1 -1
- package/dist/service/s3/bucket/website/redirect/s3-bucket-website-redirects.js.map +1 -1
- package/dist/service/s3/command/authorize/sim-s3-condition-context.d.ts +14 -0
- package/dist/service/s3/command/authorize/sim-s3-condition-context.d.ts.map +1 -0
- package/dist/service/s3/command/authorize/sim-s3-condition-context.js +22 -0
- package/dist/service/s3/command/authorize/sim-s3-condition-context.js.map +1 -0
- package/dist/service/s3/command/create-bucket/create-bucket.handler.d.ts +2 -5
- package/dist/service/s3/command/create-bucket/create-bucket.handler.d.ts.map +1 -1
- package/dist/service/s3/command/create-bucket/create-bucket.handler.js +2 -0
- package/dist/service/s3/command/create-bucket/create-bucket.handler.js.map +1 -1
- package/dist/service/s3/command/delete-bucket/delete-bucket-authorizer.d.ts +2 -2
- package/dist/service/s3/command/delete-bucket/delete-bucket-authorizer.d.ts.map +1 -1
- package/dist/service/s3/command/delete-bucket/delete-bucket-authorizer.js +4 -2
- package/dist/service/s3/command/delete-bucket/delete-bucket-authorizer.js.map +1 -1
- package/dist/service/s3/command/delete-bucket/delete-bucket.handler.d.ts +2 -5
- package/dist/service/s3/command/delete-bucket/delete-bucket.handler.d.ts.map +1 -1
- package/dist/service/s3/command/delete-bucket/delete-bucket.handler.js +1 -1
- package/dist/service/s3/command/delete-bucket/delete-bucket.handler.js.map +1 -1
- package/dist/service/s3/command/delete-bucket-policy/delete-bucket-policy-authorizer.d.ts +2 -2
- package/dist/service/s3/command/delete-bucket-policy/delete-bucket-policy-authorizer.d.ts.map +1 -1
- package/dist/service/s3/command/delete-bucket-policy/delete-bucket-policy-authorizer.js +4 -2
- package/dist/service/s3/command/delete-bucket-policy/delete-bucket-policy-authorizer.js.map +1 -1
- package/dist/service/s3/command/delete-bucket-policy/delete-bucket-policy.handler.d.ts +2 -5
- package/dist/service/s3/command/delete-bucket-policy/delete-bucket-policy.handler.d.ts.map +1 -1
- package/dist/service/s3/command/delete-bucket-policy/delete-bucket-policy.handler.js +1 -1
- package/dist/service/s3/command/delete-bucket-policy/delete-bucket-policy.handler.js.map +1 -1
- package/dist/service/s3/command/delete-object/delete-object-authorizer.d.ts +2 -2
- package/dist/service/s3/command/delete-object/delete-object-authorizer.d.ts.map +1 -1
- package/dist/service/s3/command/delete-object/delete-object-authorizer.js +4 -2
- package/dist/service/s3/command/delete-object/delete-object-authorizer.js.map +1 -1
- package/dist/service/s3/command/delete-object/delete-object.handler.d.ts +2 -5
- package/dist/service/s3/command/delete-object/delete-object.handler.d.ts.map +1 -1
- package/dist/service/s3/command/delete-object/delete-object.handler.js +1 -1
- package/dist/service/s3/command/delete-object/delete-object.handler.js.map +1 -1
- package/dist/service/s3/command/delete-objects/delete-objects-key-removal.d.ts +2 -2
- package/dist/service/s3/command/delete-objects/delete-objects-key-removal.d.ts.map +1 -1
- package/dist/service/s3/command/delete-objects/delete-objects-key-removal.js +2 -2
- package/dist/service/s3/command/delete-objects/delete-objects-key-removal.js.map +1 -1
- package/dist/service/s3/command/delete-objects/delete-objects.handler.d.ts +2 -5
- package/dist/service/s3/command/delete-objects/delete-objects.handler.d.ts.map +1 -1
- package/dist/service/s3/command/delete-objects/delete-objects.handler.js +1 -1
- package/dist/service/s3/command/delete-objects/delete-objects.handler.js.map +1 -1
- package/dist/service/s3/command/delete-public-access-block/delete-public-access-block.handler.d.ts +2 -5
- package/dist/service/s3/command/delete-public-access-block/delete-public-access-block.handler.d.ts.map +1 -1
- package/dist/service/s3/command/delete-public-access-block/delete-public-access-block.handler.js +1 -1
- package/dist/service/s3/command/delete-public-access-block/delete-public-access-block.handler.js.map +1 -1
- package/dist/service/s3/command/get-bucket-notification-configuration/get-bucket-notification-configuration.command.d.ts.map +1 -1
- package/dist/service/s3/command/get-bucket-notification-configuration/get-bucket-notification-configuration.handler.d.ts +2 -5
- package/dist/service/s3/command/get-bucket-notification-configuration/get-bucket-notification-configuration.handler.d.ts.map +1 -1
- package/dist/service/s3/command/get-bucket-notification-configuration/get-bucket-notification-configuration.handler.js +1 -1
- package/dist/service/s3/command/get-bucket-notification-configuration/get-bucket-notification-configuration.handler.js.map +1 -1
- package/dist/service/s3/command/get-bucket-policy/get-bucket-policy-authorizer.d.ts +2 -2
- package/dist/service/s3/command/get-bucket-policy/get-bucket-policy-authorizer.d.ts.map +1 -1
- package/dist/service/s3/command/get-bucket-policy/get-bucket-policy-authorizer.js +4 -2
- package/dist/service/s3/command/get-bucket-policy/get-bucket-policy-authorizer.js.map +1 -1
- package/dist/service/s3/command/get-bucket-policy/get-bucket-policy.handler.d.ts +2 -5
- package/dist/service/s3/command/get-bucket-policy/get-bucket-policy.handler.d.ts.map +1 -1
- package/dist/service/s3/command/get-bucket-policy/get-bucket-policy.handler.js +1 -1
- package/dist/service/s3/command/get-bucket-policy/get-bucket-policy.handler.js.map +1 -1
- package/dist/service/s3/command/get-object/get-object-authorizer.d.ts +6 -2
- package/dist/service/s3/command/get-object/get-object-authorizer.d.ts.map +1 -1
- package/dist/service/s3/command/get-object/get-object-authorizer.js +8 -2
- package/dist/service/s3/command/get-object/get-object-authorizer.js.map +1 -1
- package/dist/service/s3/command/get-object/get-object.handler.d.ts +2 -5
- package/dist/service/s3/command/get-object/get-object.handler.d.ts.map +1 -1
- package/dist/service/s3/command/get-object/get-object.handler.js +1 -1
- package/dist/service/s3/command/get-object/get-object.handler.js.map +1 -1
- package/dist/service/s3/command/get-public-access-block/get-public-access-block.handler.d.ts +2 -5
- package/dist/service/s3/command/get-public-access-block/get-public-access-block.handler.d.ts.map +1 -1
- package/dist/service/s3/command/get-public-access-block/get-public-access-block.handler.js +1 -1
- package/dist/service/s3/command/get-public-access-block/get-public-access-block.handler.js.map +1 -1
- package/dist/service/s3/command/list-buckets/list-buckets-authorizer.d.ts +2 -2
- package/dist/service/s3/command/list-buckets/list-buckets-authorizer.d.ts.map +1 -1
- package/dist/service/s3/command/list-buckets/list-buckets-authorizer.js +4 -2
- package/dist/service/s3/command/list-buckets/list-buckets-authorizer.js.map +1 -1
- package/dist/service/s3/command/list-buckets/list-buckets.handler.d.ts +2 -5
- package/dist/service/s3/command/list-buckets/list-buckets.handler.d.ts.map +1 -1
- package/dist/service/s3/command/list-buckets/list-buckets.handler.js +1 -1
- package/dist/service/s3/command/list-buckets/list-buckets.handler.js.map +1 -1
- package/dist/service/s3/command/list-objects/list-objects-authorizer.d.ts +2 -2
- package/dist/service/s3/command/list-objects/list-objects-authorizer.d.ts.map +1 -1
- package/dist/service/s3/command/list-objects/list-objects-authorizer.js +3 -1
- package/dist/service/s3/command/list-objects/list-objects-authorizer.js.map +1 -1
- package/dist/service/s3/command/list-objects/list-objects.handler.d.ts +2 -5
- package/dist/service/s3/command/list-objects/list-objects.handler.d.ts.map +1 -1
- package/dist/service/s3/command/list-objects/list-objects.handler.js +1 -1
- package/dist/service/s3/command/list-objects/list-objects.handler.js.map +1 -1
- package/dist/service/s3/command/notification/sim-s3-notification-authorizer.d.ts +3 -3
- package/dist/service/s3/command/notification/sim-s3-notification-authorizer.d.ts.map +1 -1
- package/dist/service/s3/command/notification/sim-s3-notification-authorizer.js +8 -6
- package/dist/service/s3/command/notification/sim-s3-notification-authorizer.js.map +1 -1
- package/dist/service/s3/command/public-access-block/sim-s3-public-access-block-authorizer.d.ts +3 -3
- package/dist/service/s3/command/public-access-block/sim-s3-public-access-block-authorizer.d.ts.map +1 -1
- package/dist/service/s3/command/public-access-block/sim-s3-public-access-block-authorizer.js +8 -6
- package/dist/service/s3/command/public-access-block/sim-s3-public-access-block-authorizer.js.map +1 -1
- package/dist/service/s3/command/put-bucket-notification-configuration/put-bucket-notification-configuration.command.d.ts.map +1 -1
- package/dist/service/s3/command/put-bucket-notification-configuration/put-bucket-notification-configuration.handler.d.ts +2 -5
- package/dist/service/s3/command/put-bucket-notification-configuration/put-bucket-notification-configuration.handler.d.ts.map +1 -1
- package/dist/service/s3/command/put-bucket-notification-configuration/put-bucket-notification-configuration.handler.js +1 -1
- package/dist/service/s3/command/put-bucket-notification-configuration/put-bucket-notification-configuration.handler.js.map +1 -1
- package/dist/service/s3/command/put-bucket-policy/put-bucket-policy-authorizer.d.ts +2 -2
- package/dist/service/s3/command/put-bucket-policy/put-bucket-policy-authorizer.d.ts.map +1 -1
- package/dist/service/s3/command/put-bucket-policy/put-bucket-policy-authorizer.js +4 -2
- package/dist/service/s3/command/put-bucket-policy/put-bucket-policy-authorizer.js.map +1 -1
- package/dist/service/s3/command/put-bucket-policy/put-bucket-policy.handler.d.ts +2 -5
- package/dist/service/s3/command/put-bucket-policy/put-bucket-policy.handler.d.ts.map +1 -1
- package/dist/service/s3/command/put-bucket-policy/put-bucket-policy.handler.js +1 -1
- package/dist/service/s3/command/put-bucket-policy/put-bucket-policy.handler.js.map +1 -1
- package/dist/service/s3/command/put-bucket-website/put-bucket-website-authorizer.d.ts +2 -2
- package/dist/service/s3/command/put-bucket-website/put-bucket-website-authorizer.d.ts.map +1 -1
- package/dist/service/s3/command/put-bucket-website/put-bucket-website-authorizer.js +4 -2
- package/dist/service/s3/command/put-bucket-website/put-bucket-website-authorizer.js.map +1 -1
- package/dist/service/s3/command/put-bucket-website/put-bucket-website.command.d.ts.map +1 -1
- package/dist/service/s3/command/put-bucket-website/put-bucket-website.handler.d.ts +2 -5
- package/dist/service/s3/command/put-bucket-website/put-bucket-website.handler.d.ts.map +1 -1
- package/dist/service/s3/command/put-bucket-website/put-bucket-website.handler.js +1 -1
- package/dist/service/s3/command/put-bucket-website/put-bucket-website.handler.js.map +1 -1
- package/dist/service/s3/command/put-object/put-object-authorizer.d.ts +2 -2
- package/dist/service/s3/command/put-object/put-object-authorizer.d.ts.map +1 -1
- package/dist/service/s3/command/put-object/put-object-authorizer.js +4 -2
- package/dist/service/s3/command/put-object/put-object-authorizer.js.map +1 -1
- package/dist/service/s3/command/put-object/put-object.handler.d.ts +2 -5
- package/dist/service/s3/command/put-object/put-object.handler.d.ts.map +1 -1
- package/dist/service/s3/command/put-object/put-object.handler.js +1 -1
- package/dist/service/s3/command/put-object/put-object.handler.js.map +1 -1
- package/dist/service/s3/command/put-public-access-block/put-public-access-block.command.d.ts.map +1 -1
- package/dist/service/s3/command/put-public-access-block/put-public-access-block.handler.d.ts +2 -5
- package/dist/service/s3/command/put-public-access-block/put-public-access-block.handler.d.ts.map +1 -1
- package/dist/service/s3/command/put-public-access-block/put-public-access-block.handler.js +1 -1
- package/dist/service/s3/command/put-public-access-block/put-public-access-block.handler.js.map +1 -1
- package/dist/service/s3/command/sim-s3-request-options.d.ts +40 -0
- package/dist/service/s3/command/sim-s3-request-options.d.ts.map +1 -1
- package/dist/service/s3/command/sim-s3-request-options.js +19 -1
- package/dist/service/s3/command/sim-s3-request-options.js.map +1 -1
- package/dist/service/s3/index.d.ts +2 -2
- package/dist/service/s3/index.d.ts.map +1 -1
- package/dist/service/s3/mount/sim-s3-mount-directory-events.js +1 -1
- package/dist/service/s3/mount/sim-s3-mount.type.d.ts +5 -0
- package/dist/service/s3/mount/sim-s3-mount.type.d.ts.map +1 -1
- package/dist/service/s3/notification/destination/lambda/sim-aws-s3-notification-functions.js +1 -1
- package/dist/service/s3/notification/destination/lambda/sim-aws-s3-notification-functions.js.map +1 -1
- package/dist/service/s3/notification/sim-s3-notification-failures.js +1 -1
- package/dist/service/s3/object/s3-declared-system-metadata.d.ts +63 -0
- package/dist/service/s3/object/s3-declared-system-metadata.d.ts.map +1 -0
- package/dist/service/s3/object/s3-declared-system-metadata.js +82 -0
- package/dist/service/s3/object/s3-declared-system-metadata.js.map +1 -0
- package/dist/service/s3/object/s3-key-prefix-metadata.d.ts +15 -34
- package/dist/service/s3/object/s3-key-prefix-metadata.d.ts.map +1 -1
- package/dist/service/s3/object/s3-key-prefix-metadata.js +17 -35
- package/dist/service/s3/object/s3-key-prefix-metadata.js.map +1 -1
- package/dist/service/s3/object/s3-system-metadata-declaration.type.d.ts +38 -0
- package/dist/service/s3/object/s3-system-metadata-declaration.type.d.ts.map +1 -0
- package/dist/service/s3/object/s3-system-metadata-declaration.type.js +2 -0
- package/dist/service/s3/object/s3-system-metadata-declaration.type.js.map +1 -0
- package/dist/service/s3/object/s3-system-metadata.d.ts +19 -0
- package/dist/service/s3/object/s3-system-metadata.d.ts.map +1 -1
- package/dist/service/s3/object/s3-system-metadata.js +19 -0
- package/dist/service/s3/object/s3-system-metadata.js.map +1 -1
- package/dist/service/s3/serve/sim-s3-route.d.ts.map +1 -1
- package/dist/service/s3/serve/sim-s3-route.js.map +1 -1
- package/dist/service/s3/sim-s3.d.ts +5 -3
- package/dist/service/s3/sim-s3.d.ts.map +1 -1
- package/dist/service/s3/sim-s3.js +5 -3
- package/dist/service/s3/sim-s3.js.map +1 -1
- package/dist/service/s3/storage/filesystem/filesystem-path-exists.js +1 -1
- package/dist/service/s3/storage/filesystem/s3-filesystem-object-keys.js +1 -1
- package/dist/service/s3/storage/filesystem/s3-filesystem-storage.d.ts +4 -3
- package/dist/service/s3/storage/filesystem/s3-filesystem-storage.d.ts.map +1 -1
- package/dist/service/s3/storage/filesystem/s3-filesystem-storage.js +5 -5
- package/dist/service/s3/storage/filesystem/s3-filesystem-storage.js.map +1 -1
- package/dist/service/secretsmanager/secret/generate/sim-secrets-manager-password-character-set.js +1 -1
- package/dist/service/secretsmanager/secret/sim-secrets-manager-secret-arn.js +1 -1
- package/dist/service/sns/cfn/topic/sim-cfn-sns-topic-creator.js +1 -1
- package/dist/service/sns/command/publish/publish.command.d.ts.map +1 -1
- package/dist/service/sns/delivery/sim-sns-delivery-failures.js +1 -1
- package/dist/service/sns/filter/sim-sns-body-subject.js +1 -1
- package/dist/service/sns/subscription/sim-sns-subscription-protocol.d.ts.map +1 -1
- package/dist/service/sns/subscription/sim-sns-subscription-protocol.js.map +1 -1
- package/dist/service/sqs/command/message/consume.command.d.ts.map +1 -1
- package/dist/service/sqs/command/message/receive.command.d.ts.map +1 -1
- package/dist/service/sqs/command/message/send.command.d.ts.map +1 -1
- package/dist/service/sqs/queue/sim-sqs-redrive-policy.js +1 -1
- package/dist/service/ssm/command/parameter/sim-ssm-get-parameter-commands.js +1 -1
- package/dist/service/sts/assume/sim-sts-assume-role-request-parser.d.ts.map +1 -1
- package/dist/service/sts/assume/sim-sts-assume-role-request-parser.js.map +1 -1
- package/dist/service/sts/auth-z/assume-role-auth-z-coordinator.d.ts.map +1 -1
- package/dist/service/sts/auth-z/assume-role-auth-z-coordinator.js.map +1 -1
- package/dist/service/sts/auth-z/assume-role-target-auth-z.d.ts.map +1 -1
- package/dist/service/sts/auth-z/assume-role-target-auth-z.js.map +1 -1
- package/dist/service/sts/auth-z/assume-role-trust-policy-authorizer.d.ts.map +1 -1
- package/dist/service/sts/auth-z/assume-role-trust-policy-authorizer.js.map +1 -1
- package/dist/util/background/background.js +2 -2
- package/dist/util/background/background.js.map +1 -1
- package/dist/util/background/non-deterministic-background.js +2 -2
- package/dist/util/background/non-deterministic-background.js.map +1 -1
- package/dist/util/clock/sim-clock-control.js +1 -1
- package/dist/util/filesystem/path.js +1 -1
- package/dist/util/filesystem/temporary-directory.js +3 -3
- package/dist/util/jwt/sim-jwt-claims.js +1 -1
- package/dist/util/type-guard/json.d.ts.map +1 -1
- package/dist/util/type-guard/json.js +2 -2
- package/dist/util/type-guard/json.js.map +1 -1
- package/package.json +7 -11
- package/dist/service/s3/bucket/website/sim-s3-public-website.fixture.d.ts +0 -13
- package/dist/service/s3/bucket/website/sim-s3-public-website.fixture.d.ts.map +0 -1
- package/dist/service/s3/bucket/website/sim-s3-public-website.fixture.js +0 -36
- package/dist/service/s3/bucket/website/sim-s3-public-website.fixture.js.map +0 -1
package/dist/service/cloudformation/cdk/provider/sim-cdk-provider-scaffolding-template.factory.d.ts
ADDED
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import { MappedFactory } from "@kensio/part-factory";
|
|
2
|
+
import type { CfnTemplateBodyRecord } from "../../template/sim-cfn-template.js";
|
|
3
|
+
import type { SimCfnTemplateValueRecord } from "../../template/value/sim-cfn-template-value.js";
|
|
4
|
+
/**
|
|
5
|
+
* What a test asks for when it wants the template CDK synthesizes around a
|
|
6
|
+
* `BucketDeployment`.
|
|
7
|
+
*
|
|
8
|
+
* One construct becomes four Resources, only one of which this simulator
|
|
9
|
+
* creates. The other three are the provider CDK would have run: an AWS CLI
|
|
10
|
+
* Layer, a Python function, and that function's log group. A second deployment
|
|
11
|
+
* adds another Layer and another custom Resource, and shares the one provider,
|
|
12
|
+
* because CDK builds the function as a singleton.
|
|
13
|
+
*
|
|
14
|
+
* The logical IDs here are readable rather than the hashed ones CDK generates.
|
|
15
|
+
* That is the point: nothing recognising this scaffolding is allowed to match
|
|
16
|
+
* on a name CDK made up.
|
|
17
|
+
*/
|
|
18
|
+
export interface SimCdkProviderScaffoldingTemplateInput {
|
|
19
|
+
readonly bucketName: string;
|
|
20
|
+
/** The staged asset object key each deployment copies from, in turn. */
|
|
21
|
+
readonly sourceObjectKeys: readonly string[];
|
|
22
|
+
/** Resources a test adds beside the scaffolding. */
|
|
23
|
+
readonly resources: SimCfnTemplateValueRecord;
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
* Builds the template CDK synthesizes for one or more `BucketDeployment`
|
|
27
|
+
* constructs sharing a destination Bucket.
|
|
28
|
+
*
|
|
29
|
+
* ```typescript
|
|
30
|
+
* const template = simCdkProviderScaffoldingTemplateFactory.make({
|
|
31
|
+
* sourceObjectKeys: ["site.zip", "fonts.zip"],
|
|
32
|
+
* });
|
|
33
|
+
* ```
|
|
34
|
+
*
|
|
35
|
+
* The asset object keys have to match an assets manifest beside the template
|
|
36
|
+
* file for the deployments themselves to copy anything, so a test using this
|
|
37
|
+
* writes both.
|
|
38
|
+
*/
|
|
39
|
+
export declare const simCdkProviderScaffoldingTemplateFactory: MappedFactory<SimCdkProviderScaffoldingTemplateInput, CfnTemplateBodyRecord, undefined>;
|
|
40
|
+
//# sourceMappingURL=sim-cdk-provider-scaffolding-template.factory.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sim-cdk-provider-scaffolding-template.factory.d.ts","sourceRoot":"","sources":["../../../../../src/service/cloudformation/cdk/provider/sim-cdk-provider-scaffolding-template.factory.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAC;AAErD,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,oCAAoC,CAAC;AAChF,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,gDAAgD,CAAC;AAEhG;;;;;;;;;;;;;GAaG;AACH,MAAM,WAAW,sCAAsC;IACrD,QAAQ,CAAC,UAAU,EAAE,MAAM,CAAC;IAC5B,wEAAwE;IACxE,QAAQ,CAAC,gBAAgB,EAAE,SAAS,MAAM,EAAE,CAAC;IAC7C,oDAAoD;IACpD,QAAQ,CAAC,SAAS,EAAE,yBAAyB,CAAC;CAC/C;AAgBD;;;;;;;;;;;;;GAaG;AACH,eAAO,MAAM,wCAAwC,yFA8CpD,CAAC"}
|
package/dist/service/cloudformation/cdk/provider/sim-cdk-provider-scaffolding-template.factory.js
ADDED
|
@@ -0,0 +1,107 @@
|
|
|
1
|
+
import { MappedFactory } from "@kensio/part-factory";
|
|
2
|
+
const providerLogicalId = "BucketDeploymentProvider";
|
|
3
|
+
const assetsBucketName = "cdk-hnb659fds-assets-111111111111-eu-west-2";
|
|
4
|
+
const assumeRolePolicyDocument = {
|
|
5
|
+
Version: "2012-10-17",
|
|
6
|
+
Statement: [
|
|
7
|
+
{
|
|
8
|
+
Effect: "Allow",
|
|
9
|
+
Principal: { Service: "lambda.amazonaws.com" },
|
|
10
|
+
Action: "sts:AssumeRole",
|
|
11
|
+
},
|
|
12
|
+
],
|
|
13
|
+
};
|
|
14
|
+
/**
|
|
15
|
+
* Builds the template CDK synthesizes for one or more `BucketDeployment`
|
|
16
|
+
* constructs sharing a destination Bucket.
|
|
17
|
+
*
|
|
18
|
+
* ```typescript
|
|
19
|
+
* const template = simCdkProviderScaffoldingTemplateFactory.make({
|
|
20
|
+
* sourceObjectKeys: ["site.zip", "fonts.zip"],
|
|
21
|
+
* });
|
|
22
|
+
* ```
|
|
23
|
+
*
|
|
24
|
+
* The asset object keys have to match an assets manifest beside the template
|
|
25
|
+
* file for the deployments themselves to copy anything, so a test using this
|
|
26
|
+
* writes both.
|
|
27
|
+
*/
|
|
28
|
+
export const simCdkProviderScaffoldingTemplateFactory = new MappedFactory(() => ({
|
|
29
|
+
bucketName: "site-bucket",
|
|
30
|
+
sourceObjectKeys: ["site.zip"],
|
|
31
|
+
resources: {},
|
|
32
|
+
}), (input) => ({
|
|
33
|
+
Resources: {
|
|
34
|
+
SiteBucket: {
|
|
35
|
+
Type: "AWS::S3::Bucket",
|
|
36
|
+
Properties: { BucketName: input.bucketName },
|
|
37
|
+
},
|
|
38
|
+
[`${providerLogicalId}Role`]: {
|
|
39
|
+
Type: "AWS::IAM::Role",
|
|
40
|
+
Properties: {
|
|
41
|
+
RoleName: "bucket-deployment-provider-role",
|
|
42
|
+
AssumeRolePolicyDocument: assumeRolePolicyDocument,
|
|
43
|
+
},
|
|
44
|
+
},
|
|
45
|
+
[providerLogicalId]: {
|
|
46
|
+
Type: "AWS::Lambda::Function",
|
|
47
|
+
Properties: {
|
|
48
|
+
Code: { S3Bucket: assetsBucketName, S3Key: "provider.zip" },
|
|
49
|
+
Handler: "index.handler",
|
|
50
|
+
Layers: [{ Ref: `${deploymentPrefix(0)}AwsCliLayer` }],
|
|
51
|
+
Role: { "Fn::GetAtt": [`${providerLogicalId}Role`, "Arn"] },
|
|
52
|
+
Runtime: "python3.13",
|
|
53
|
+
Timeout: 900,
|
|
54
|
+
},
|
|
55
|
+
},
|
|
56
|
+
[`${providerLogicalId}LogGroup`]: {
|
|
57
|
+
Type: "AWS::Logs::LogGroup",
|
|
58
|
+
Properties: {
|
|
59
|
+
LogGroupName: {
|
|
60
|
+
"Fn::Join": ["", ["/aws/lambda/", { Ref: providerLogicalId }]],
|
|
61
|
+
},
|
|
62
|
+
RetentionInDays: 731,
|
|
63
|
+
},
|
|
64
|
+
},
|
|
65
|
+
...deploymentResources(input),
|
|
66
|
+
...input.resources,
|
|
67
|
+
},
|
|
68
|
+
}));
|
|
69
|
+
/**
|
|
70
|
+
* The Layer and custom Resource each deployment contributes.
|
|
71
|
+
*
|
|
72
|
+
* Every deployment gets its own AWS CLI Layer, and only the first one's is
|
|
73
|
+
* named by the shared provider function's `Layers`, so the rest are reachable
|
|
74
|
+
* from nothing in the template. That is why a Layer is recognised on what it
|
|
75
|
+
* is rather than on what points at it.
|
|
76
|
+
*/
|
|
77
|
+
function deploymentResources(input) {
|
|
78
|
+
const resources = {};
|
|
79
|
+
for (const [index, sourceObjectKey] of input.sourceObjectKeys.entries()) {
|
|
80
|
+
const prefix = deploymentPrefix(index);
|
|
81
|
+
resources[`${prefix}AwsCliLayer`] = {
|
|
82
|
+
Type: "AWS::Lambda::LayerVersion",
|
|
83
|
+
Properties: {
|
|
84
|
+
Content: {
|
|
85
|
+
S3Bucket: assetsBucketName,
|
|
86
|
+
S3Key: "awscli.zip",
|
|
87
|
+
},
|
|
88
|
+
Description: "/opt/awscli/aws",
|
|
89
|
+
},
|
|
90
|
+
};
|
|
91
|
+
resources[`${prefix}CustomResource`] = {
|
|
92
|
+
Type: "Custom::CDKBucketDeployment",
|
|
93
|
+
Properties: {
|
|
94
|
+
ServiceToken: { "Fn::GetAtt": [providerLogicalId, "Arn"] },
|
|
95
|
+
SourceBucketNames: [assetsBucketName],
|
|
96
|
+
SourceObjectKeys: [sourceObjectKey],
|
|
97
|
+
DestinationBucketName: { Ref: "SiteBucket" },
|
|
98
|
+
Prune: index === 0,
|
|
99
|
+
},
|
|
100
|
+
};
|
|
101
|
+
}
|
|
102
|
+
return resources;
|
|
103
|
+
}
|
|
104
|
+
function deploymentPrefix(index) {
|
|
105
|
+
return `Deploy${index}`;
|
|
106
|
+
}
|
|
107
|
+
//# sourceMappingURL=sim-cdk-provider-scaffolding-template.factory.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sim-cdk-provider-scaffolding-template.factory.js","sourceRoot":"","sources":["../../../../../src/service/cloudformation/cdk/provider/sim-cdk-provider-scaffolding-template.factory.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAC;AA2BrD,MAAM,iBAAiB,GAAG,0BAA0B,CAAC;AACrD,MAAM,gBAAgB,GAAG,6CAA6C,CAAC;AAEvE,MAAM,wBAAwB,GAAG;IAC/B,OAAO,EAAE,YAAY;IACrB,SAAS,EAAE;QACT;YACE,MAAM,EAAE,OAAO;YACf,SAAS,EAAE,EAAE,OAAO,EAAE,sBAAsB,EAAE;YAC9C,MAAM,EAAE,gBAAgB;SACzB;KACF;CACF,CAAC;AAEF;;;;;;;;;;;;;GAaG;AACH,MAAM,CAAC,MAAM,wCAAwC,GAAG,IAAI,aAAa,CAIvE,GAAG,EAAE,CAAC,CAAC;IACL,UAAU,EAAE,aAAa;IACzB,gBAAgB,EAAE,CAAC,UAAU,CAAC;IAC9B,SAAS,EAAE,EAAE;CACd,CAAC,EACF,CAAC,KAAK,EAAE,EAAE,CAAC,CAAC;IACV,SAAS,EAAE;QACT,UAAU,EAAE;YACV,IAAI,EAAE,iBAAiB;YACvB,UAAU,EAAE,EAAE,UAAU,EAAE,KAAK,CAAC,UAAU,EAAE;SAC7C;QACD,CAAC,GAAG,iBAAiB,MAAM,CAAC,EAAE;YAC5B,IAAI,EAAE,gBAAgB;YACtB,UAAU,EAAE;gBACV,QAAQ,EAAE,iCAAiC;gBAC3C,wBAAwB,EAAE,wBAAwB;aACnD;SACF;QACD,CAAC,iBAAiB,CAAC,EAAE;YACnB,IAAI,EAAE,uBAAuB;YAC7B,UAAU,EAAE;gBACV,IAAI,EAAE,EAAE,QAAQ,EAAE,gBAAgB,EAAE,KAAK,EAAE,cAAc,EAAE;gBAC3D,OAAO,EAAE,eAAe;gBACxB,MAAM,EAAE,CAAC,EAAE,GAAG,EAAE,GAAG,gBAAgB,CAAC,CAAC,CAAC,aAAa,EAAE,CAAC;gBACtD,IAAI,EAAE,EAAE,YAAY,EAAE,CAAC,GAAG,iBAAiB,MAAM,EAAE,KAAK,CAAC,EAAE;gBAC3D,OAAO,EAAE,YAAY;gBACrB,OAAO,EAAE,GAAG;aACb;SACF;QACD,CAAC,GAAG,iBAAiB,UAAU,CAAC,EAAE;YAChC,IAAI,EAAE,qBAAqB;YAC3B,UAAU,EAAE;gBACV,YAAY,EAAE;oBACZ,UAAU,EAAE,CAAC,EAAE,EAAE,CAAC,cAAc,EAAE,EAAE,GAAG,EAAE,iBAAiB,EAAE,CAAC,CAAC;iBAC/D;gBACD,eAAe,EAAE,GAAG;aACrB;SACF;QACD,GAAG,mBAAmB,CAAC,KAAK,CAAC;QAC7B,GAAG,KAAK,CAAC,SAAS;KACnB;CACF,CAAC,CACH,CAAC;AAEF;;;;;;;GAOG;AACH,SAAS,mBAAmB,CAC1B,KAA6C;IAE7C,MAAM,SAAS,GAA8B,EAAE,CAAC;IAEhD,KAAK,MAAM,CAAC,KAAK,EAAE,eAAe,CAAC,IAAI,KAAK,CAAC,gBAAgB,CAAC,OAAO,EAAE,EAAE,CAAC;QACxE,MAAM,MAAM,GAAG,gBAAgB,CAAC,KAAK,CAAC,CAAC;QAEvC,SAAS,CAAC,GAAG,MAAM,aAAa,CAAC,GAAG;YAClC,IAAI,EAAE,2BAA2B;YACjC,UAAU,EAAE;gBACV,OAAO,EAAE;oBACP,QAAQ,EAAE,gBAAgB;oBAC1B,KAAK,EAAE,YAAY;iBACpB;gBACD,WAAW,EAAE,iBAAiB;aAC/B;SACF,CAAC;QAEF,SAAS,CAAC,GAAG,MAAM,gBAAgB,CAAC,GAAG;YACrC,IAAI,EAAE,6BAA6B;YACnC,UAAU,EAAE;gBACV,YAAY,EAAE,EAAE,YAAY,EAAE,CAAC,iBAAiB,EAAE,KAAK,CAAC,EAAE;gBAC1D,iBAAiB,EAAE,CAAC,gBAAgB,CAAC;gBACrC,gBAAgB,EAAE,CAAC,eAAe,CAAC;gBACnC,qBAAqB,EAAE,EAAE,GAAG,EAAE,YAAY,EAAE;gBAC5C,KAAK,EAAE,KAAK,KAAK,CAAC;aACnB;SACF,CAAC;IACJ,CAAC;IAED,OAAO,SAAS,CAAC;AACnB,CAAC;AAED,SAAS,gBAAgB,CAAC,KAAa;IACrC,OAAO,SAAS,KAAK,EAAE,CAAC;AAC1B,CAAC"}
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
import type { SimCfnResource } from "../../resource/sim-cfn-resource.js";
|
|
2
|
+
/**
|
|
3
|
+
* The Resources in a Stack that exist only to run a CDK custom Resource sim
|
|
4
|
+
* CloudFormation carries out itself.
|
|
5
|
+
*
|
|
6
|
+
* CDK reaches a feature it has no CloudFormation Resource type for by writing a
|
|
7
|
+
* `Custom::` Resource and a Lambda function to answer it. Where this simulator
|
|
8
|
+
* creates that custom Resource directly, as it does for `BucketDeployment` and
|
|
9
|
+
* Bucket notifications, the function is left holding nothing: it is never
|
|
10
|
+
* invoked, so its code is never loaded and its log group never written to. The
|
|
11
|
+
* work is already done by the time anything would have called it.
|
|
12
|
+
*
|
|
13
|
+
* That makes the function and its log group Resources no test can tell apart
|
|
14
|
+
* from ones that were created, which is the same reason a Resource type nothing
|
|
15
|
+
* simulates has for being reported as a skip, arrived at from the opposite
|
|
16
|
+
* direction. Reporting them as skips is worse than saying nothing: CDK's
|
|
17
|
+
* provider is a Python function, so the skip reads "bind a real in-process
|
|
18
|
+
* handler to this function to simulate it", which is advice that would replace
|
|
19
|
+
* a working simulation with a hand-written one.
|
|
20
|
+
*
|
|
21
|
+
* The recognition is by association rather than by name. CDK's logical IDs are
|
|
22
|
+
* generated from construct paths and a hash, and are not an interface anything
|
|
23
|
+
* should match on; the link from a custom Resource to its provider through
|
|
24
|
+
* `ServiceToken` is one CloudFormation itself relies on.
|
|
25
|
+
*/
|
|
26
|
+
export declare class SimCdkProviderScaffolding {
|
|
27
|
+
#private;
|
|
28
|
+
constructor(resources: ReadonlyMap<string, SimCfnResource>);
|
|
29
|
+
/**
|
|
30
|
+
* Why this Resource is scaffolding for a custom Resource this simulator has
|
|
31
|
+
* already carried out, or undefined when it is not.
|
|
32
|
+
*/
|
|
33
|
+
reasonFor(resource: SimCfnResource): string | undefined;
|
|
34
|
+
/**
|
|
35
|
+
* The Resource is the provider function itself.
|
|
36
|
+
*/
|
|
37
|
+
private providerFunctionReason;
|
|
38
|
+
/**
|
|
39
|
+
* The Resource is the log group of a provider function.
|
|
40
|
+
*
|
|
41
|
+
* A newer CDK writes the provider function's log group into the template
|
|
42
|
+
* rather than leaving Lambda to create it, and names the function in it, so
|
|
43
|
+
* the same association finds it. Only a log group is looked for this way: the
|
|
44
|
+
* provider's IAM Role and Policy name it too, and those this simulator
|
|
45
|
+
* creates for real.
|
|
46
|
+
*/
|
|
47
|
+
private providerLogGroupReason;
|
|
48
|
+
/**
|
|
49
|
+
* Each provider function in this Stack, against the custom Resource type it
|
|
50
|
+
* answers for.
|
|
51
|
+
*
|
|
52
|
+
* A `Custom::` Resource names its provider in `ServiceToken`, usually as an
|
|
53
|
+
* `Fn::GetAtt` for the function's ARN. Reading it through the ordinary node
|
|
54
|
+
* parser takes every form CloudFormation accepts, and keeping only names that
|
|
55
|
+
* are Lambda functions in this Stack leaves out a `ServiceToken` pointing at
|
|
56
|
+
* a function deployed somewhere else, which is not this Stack's to reason
|
|
57
|
+
* about.
|
|
58
|
+
*
|
|
59
|
+
* One provider answers every custom Resource of its type in a Stack, since
|
|
60
|
+
* CDK builds it as a singleton, so the first type to claim a function is the
|
|
61
|
+
* one reported against it.
|
|
62
|
+
*/
|
|
63
|
+
private findProviderFunctions;
|
|
64
|
+
private functionsNamedBy;
|
|
65
|
+
}
|
|
66
|
+
//# sourceMappingURL=sim-cdk-provider-scaffolding.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sim-cdk-provider-scaffolding.d.ts","sourceRoot":"","sources":["../../../../../src/service/cloudformation/cdk/provider/sim-cdk-provider-scaffolding.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,oCAAoC,CAAC;AAQzE;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AACH,qBAAa,yBAAyB;;IAIpC,YAAY,SAAS,EAAE,WAAW,CAAC,MAAM,EAAE,cAAc,CAAC,EAGzD;IAED;;;OAGG;IACH,SAAS,CAAC,QAAQ,EAAE,cAAc,GAAG,MAAM,GAAG,SAAS,CAKtD;IAED;;OAEG;IACH,OAAO,CAAC,sBAAsB;IAa9B;;;;;;;;OAQG;IACH,OAAO,CAAC,sBAAsB;IAoB9B;;;;;;;;;;;;;;OAcG;IACH,OAAO,CAAC,qBAAqB;IAoB7B,OAAO,CAAC,gBAAgB;CAezB"}
|
|
@@ -0,0 +1,133 @@
|
|
|
1
|
+
import { simCdkCustomResourceFactories } from "../../resource/resolve/service/sim-cfn-custom-resource-factories.js";
|
|
2
|
+
import { parseSimCfnNode } from "../../template/parse/node/sim-cfn-node-parser.js";
|
|
3
|
+
const customResourceTypePrefix = "Custom::";
|
|
4
|
+
const lambdaFunctionResourceType = "AWS::Lambda::Function";
|
|
5
|
+
const logGroupResourceType = "AWS::Logs::LogGroup";
|
|
6
|
+
/**
|
|
7
|
+
* The Resources in a Stack that exist only to run a CDK custom Resource sim
|
|
8
|
+
* CloudFormation carries out itself.
|
|
9
|
+
*
|
|
10
|
+
* CDK reaches a feature it has no CloudFormation Resource type for by writing a
|
|
11
|
+
* `Custom::` Resource and a Lambda function to answer it. Where this simulator
|
|
12
|
+
* creates that custom Resource directly, as it does for `BucketDeployment` and
|
|
13
|
+
* Bucket notifications, the function is left holding nothing: it is never
|
|
14
|
+
* invoked, so its code is never loaded and its log group never written to. The
|
|
15
|
+
* work is already done by the time anything would have called it.
|
|
16
|
+
*
|
|
17
|
+
* That makes the function and its log group Resources no test can tell apart
|
|
18
|
+
* from ones that were created, which is the same reason a Resource type nothing
|
|
19
|
+
* simulates has for being reported as a skip, arrived at from the opposite
|
|
20
|
+
* direction. Reporting them as skips is worse than saying nothing: CDK's
|
|
21
|
+
* provider is a Python function, so the skip reads "bind a real in-process
|
|
22
|
+
* handler to this function to simulate it", which is advice that would replace
|
|
23
|
+
* a working simulation with a hand-written one.
|
|
24
|
+
*
|
|
25
|
+
* The recognition is by association rather than by name. CDK's logical IDs are
|
|
26
|
+
* generated from construct paths and a hash, and are not an interface anything
|
|
27
|
+
* should match on; the link from a custom Resource to its provider through
|
|
28
|
+
* `ServiceToken` is one CloudFormation itself relies on.
|
|
29
|
+
*/
|
|
30
|
+
export class SimCdkProviderScaffolding {
|
|
31
|
+
#resources;
|
|
32
|
+
#providerFunctions;
|
|
33
|
+
constructor(resources) {
|
|
34
|
+
this.#resources = resources;
|
|
35
|
+
this.#providerFunctions = this.findProviderFunctions();
|
|
36
|
+
}
|
|
37
|
+
/**
|
|
38
|
+
* Why this Resource is scaffolding for a custom Resource this simulator has
|
|
39
|
+
* already carried out, or undefined when it is not.
|
|
40
|
+
*/
|
|
41
|
+
reasonFor(resource) {
|
|
42
|
+
return (this.providerFunctionReason(resource) ??
|
|
43
|
+
this.providerLogGroupReason(resource));
|
|
44
|
+
}
|
|
45
|
+
/**
|
|
46
|
+
* The Resource is the provider function itself.
|
|
47
|
+
*/
|
|
48
|
+
providerFunctionReason(resource) {
|
|
49
|
+
const customResourceType = this.#providerFunctions.get(resource.logicalId);
|
|
50
|
+
if (customResourceType === undefined) {
|
|
51
|
+
return undefined;
|
|
52
|
+
}
|
|
53
|
+
return (`sim CloudFormation carries out ${customResourceType} itself, so CDK's ` +
|
|
54
|
+
`provider function for it is never invoked`);
|
|
55
|
+
}
|
|
56
|
+
/**
|
|
57
|
+
* The Resource is the log group of a provider function.
|
|
58
|
+
*
|
|
59
|
+
* A newer CDK writes the provider function's log group into the template
|
|
60
|
+
* rather than leaving Lambda to create it, and names the function in it, so
|
|
61
|
+
* the same association finds it. Only a log group is looked for this way: the
|
|
62
|
+
* provider's IAM Role and Policy name it too, and those this simulator
|
|
63
|
+
* creates for real.
|
|
64
|
+
*/
|
|
65
|
+
providerLogGroupReason(resource) {
|
|
66
|
+
if (resource.type !== logGroupResourceType) {
|
|
67
|
+
return undefined;
|
|
68
|
+
}
|
|
69
|
+
const customResourceType = resource
|
|
70
|
+
.dependencies()
|
|
71
|
+
.map((logicalId) => this.#providerFunctions.get(logicalId))
|
|
72
|
+
.find((found) => found !== undefined);
|
|
73
|
+
if (customResourceType === undefined) {
|
|
74
|
+
return undefined;
|
|
75
|
+
}
|
|
76
|
+
return (`the log group of CDK's ${customResourceType} provider function, which ` +
|
|
77
|
+
`sim CloudFormation never invokes, so nothing is ever written to it`);
|
|
78
|
+
}
|
|
79
|
+
/**
|
|
80
|
+
* Each provider function in this Stack, against the custom Resource type it
|
|
81
|
+
* answers for.
|
|
82
|
+
*
|
|
83
|
+
* A `Custom::` Resource names its provider in `ServiceToken`, usually as an
|
|
84
|
+
* `Fn::GetAtt` for the function's ARN. Reading it through the ordinary node
|
|
85
|
+
* parser takes every form CloudFormation accepts, and keeping only names that
|
|
86
|
+
* are Lambda functions in this Stack leaves out a `ServiceToken` pointing at
|
|
87
|
+
* a function deployed somewhere else, which is not this Stack's to reason
|
|
88
|
+
* about.
|
|
89
|
+
*
|
|
90
|
+
* One provider answers every custom Resource of its type in a Stack, since
|
|
91
|
+
* CDK builds it as a singleton, so the first type to claim a function is the
|
|
92
|
+
* one reported against it.
|
|
93
|
+
*/
|
|
94
|
+
findProviderFunctions() {
|
|
95
|
+
const found = new Map();
|
|
96
|
+
for (const resource of this.#resources.values()) {
|
|
97
|
+
const customResourceType = simulatedCustomResourceType(resource);
|
|
98
|
+
if (customResourceType === undefined) {
|
|
99
|
+
continue;
|
|
100
|
+
}
|
|
101
|
+
for (const logicalId of this.functionsNamedBy(resource)) {
|
|
102
|
+
if (!found.has(logicalId)) {
|
|
103
|
+
found.set(logicalId, customResourceType);
|
|
104
|
+
}
|
|
105
|
+
}
|
|
106
|
+
}
|
|
107
|
+
return found;
|
|
108
|
+
}
|
|
109
|
+
functionsNamedBy(customResource) {
|
|
110
|
+
const serviceToken = customResource.properties["ServiceToken"];
|
|
111
|
+
if (serviceToken === undefined) {
|
|
112
|
+
return [];
|
|
113
|
+
}
|
|
114
|
+
return parseSimCfnNode(serviceToken)
|
|
115
|
+
.referencedNames()
|
|
116
|
+
.filter((logicalId) => {
|
|
117
|
+
return (this.#resources.get(logicalId)?.type === lambdaFunctionResourceType);
|
|
118
|
+
});
|
|
119
|
+
}
|
|
120
|
+
}
|
|
121
|
+
/**
|
|
122
|
+
* The custom Resource type this Resource is, when it is one this simulator
|
|
123
|
+
* creates itself rather than by running a provider.
|
|
124
|
+
*/
|
|
125
|
+
function simulatedCustomResourceType(resource) {
|
|
126
|
+
const { type } = resource;
|
|
127
|
+
if (type === undefined || !type.startsWith(customResourceTypePrefix)) {
|
|
128
|
+
return undefined;
|
|
129
|
+
}
|
|
130
|
+
const resourceTypeName = type.slice(customResourceTypePrefix.length);
|
|
131
|
+
return simCdkCustomResourceFactories.has(resourceTypeName) ? type : undefined;
|
|
132
|
+
}
|
|
133
|
+
//# sourceMappingURL=sim-cdk-provider-scaffolding.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sim-cdk-provider-scaffolding.js","sourceRoot":"","sources":["../../../../../src/service/cloudformation/cdk/provider/sim-cdk-provider-scaffolding.ts"],"names":[],"mappings":"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"}
|
package/dist/service/cloudformation/cdk/s3/bucket-deployment/copy/sim-cdk-bucket-deploy-copier.d.ts
CHANGED
|
@@ -25,8 +25,13 @@ export declare class SimCdkBucketDeployCopier {
|
|
|
25
25
|
constructor(properties: SimCdkBucketDeployCopierProperties);
|
|
26
26
|
/**
|
|
27
27
|
* Copy every source directory into the Bucket, then prune what is left over.
|
|
28
|
+
*
|
|
29
|
+
* The keys it deployed are answered rather than kept, because they are what
|
|
30
|
+
* the deployment can say for certain about the Bucket: storage that holds
|
|
31
|
+
* Objects holds their headers with them, and storage that maps them onto
|
|
32
|
+
* files has only the deployment's word for what they are.
|
|
28
33
|
*/
|
|
29
|
-
copy(sourceDirectoryPaths: readonly string[]): Promise<
|
|
34
|
+
copy(sourceDirectoryPaths: readonly string[]): Promise<ReadonlySet<string>>;
|
|
30
35
|
/**
|
|
31
36
|
* Copy the files one source directory holds and the filters select.
|
|
32
37
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sim-cdk-bucket-deploy-copier.d.ts","sourceRoot":"","sources":["../../../../../../../src/service/cloudformation/cdk/s3/bucket-deployment/copy/sim-cdk-bucket-deploy-copier.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,2CAA2C,CAAC;AAE7E,OAAO,KAAK,EAAE,4BAA4B,EAAE,MAAM,iDAAiD,CAAC;AAKpG,UAAU,kCAAkC;IAC1C,QAAQ,CAAC,MAAM,EAAE,WAAW,CAAC;IAC7B,QAAQ,CAAC,UAAU,EAAE,4BAA4B,CAAC;CACnD;AAED;;;;;;;;;;;;GAYG;AACH,qBAAa,wBAAwB;IACnC,OAAO,CAAC,QAAQ,CAAC,UAAU,CAA+B;IAC1D,OAAO,CAAC,QAAQ,CAAC,MAAM,CAA2B;IAClD,OAAO,CAAC,QAAQ,CAAC,IAAI,CAAyB;IAC9C,OAAO,CAAC,QAAQ,CAAC,MAAM,CAA2B;IAElD,YAAY,UAAU,EAAE,kCAAkC,EAYzD;IAED
|
|
1
|
+
{"version":3,"file":"sim-cdk-bucket-deploy-copier.d.ts","sourceRoot":"","sources":["../../../../../../../src/service/cloudformation/cdk/s3/bucket-deployment/copy/sim-cdk-bucket-deploy-copier.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,2CAA2C,CAAC;AAE7E,OAAO,KAAK,EAAE,4BAA4B,EAAE,MAAM,iDAAiD,CAAC;AAKpG,UAAU,kCAAkC;IAC1C,QAAQ,CAAC,MAAM,EAAE,WAAW,CAAC;IAC7B,QAAQ,CAAC,UAAU,EAAE,4BAA4B,CAAC;CACnD;AAED;;;;;;;;;;;;GAYG;AACH,qBAAa,wBAAwB;IACnC,OAAO,CAAC,QAAQ,CAAC,UAAU,CAA+B;IAC1D,OAAO,CAAC,QAAQ,CAAC,MAAM,CAA2B;IAClD,OAAO,CAAC,QAAQ,CAAC,IAAI,CAAyB;IAC9C,OAAO,CAAC,QAAQ,CAAC,MAAM,CAA2B;IAElD,YAAY,UAAU,EAAE,kCAAkC,EAYzD;IAED;;;;;;;OAOG;IACG,IAAI,CACR,oBAAoB,EAAE,SAAS,MAAM,EAAE,GACtC,OAAO,CAAC,WAAW,CAAC,MAAM,CAAC,CAAC,CAmB9B;IAED;;OAEG;YACW,aAAa;CAa5B"}
|
package/dist/service/cloudformation/cdk/s3/bucket-deployment/copy/sim-cdk-bucket-deploy-copier.js
CHANGED
|
@@ -35,13 +35,18 @@ export class SimCdkBucketDeployCopier {
|
|
|
35
35
|
}
|
|
36
36
|
/**
|
|
37
37
|
* Copy every source directory into the Bucket, then prune what is left over.
|
|
38
|
+
*
|
|
39
|
+
* The keys it deployed are answered rather than kept, because they are what
|
|
40
|
+
* the deployment can say for certain about the Bucket: storage that holds
|
|
41
|
+
* Objects holds their headers with them, and storage that maps them onto
|
|
42
|
+
* files has only the deployment's word for what they are.
|
|
38
43
|
*/
|
|
39
44
|
async copy(sourceDirectoryPaths) {
|
|
40
45
|
const deployedKeys = new Set();
|
|
41
46
|
// One source at a time, because two of them can hold the same path and the
|
|
42
47
|
// sync the provider function runs lets the later one win.
|
|
43
48
|
for (const sourceDirectoryPath of sourceDirectoryPaths) {
|
|
44
|
-
//
|
|
49
|
+
// oxlint-disable-next-line no-await-in-loop -- sources are copied in the order the deployment lists them
|
|
45
50
|
const keys = await this.copyDirectory(sourceDirectoryPath);
|
|
46
51
|
for (const key of keys) {
|
|
47
52
|
deployedKeys.add(key);
|
|
@@ -50,6 +55,7 @@ export class SimCdkBucketDeployCopier {
|
|
|
50
55
|
if (this.properties.prune) {
|
|
51
56
|
await this.pruner.prune(deployedKeys);
|
|
52
57
|
}
|
|
58
|
+
return deployedKeys;
|
|
53
59
|
}
|
|
54
60
|
/**
|
|
55
61
|
* Copy the files one source directory holds and the filters select.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sim-cdk-bucket-deploy-copier.js","sourceRoot":"","sources":["../../../../../../../src/service/cloudformation/cdk/s3/bucket-deployment/copy/sim-cdk-bucket-deploy-copier.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,wBAAwB,EAAE,MAAM,2CAA2C,CAAC;AAErF,OAAO,EAAE,sBAAsB,EAAE,MAAM,iCAAiC,CAAC;AACzE,OAAO,EAAE,uBAAuB,EAAE,MAAM,kCAAkC,CAAC;AAC3E,OAAO,EAAE,wBAAwB,EAAE,MAAM,mCAAmC,CAAC;AAO7E;;;;;;;;;;;;GAYG;AACH,MAAM,OAAO,wBAAwB;IAClB,UAAU,CAA+B;IACzC,MAAM,CAA2B;IACjC,IAAI,CAAyB;IAC7B,MAAM,CAA2B;IAElD,YAAY,UAA8C;QACxD,IAAI,CAAC,UAAU,GAAG,UAAU,CAAC,UAAU,CAAC;QACxC,IAAI,CAAC,MAAM,GAAG,IAAI,wBAAwB,CAAC;YACzC,OAAO,EAAE,IAAI,CAAC,UAAU,CAAC,OAAO;YAChC,OAAO,EAAE,IAAI,CAAC,UAAU,CAAC,OAAO;SACjC,CAAC,CAAC;QACH,IAAI,CAAC,IAAI,GAAG,IAAI,sBAAsB,CAAC,UAAU,CAAC,CAAC;QACnD,IAAI,CAAC,MAAM,GAAG,IAAI,wBAAwB,CAAC;YACzC,MAAM,EAAE,UAAU,CAAC,MAAM;YACzB,MAAM,EAAE,IAAI,CAAC,MAAM;YACnB,SAAS,EAAE,IAAI,CAAC,UAAU,CAAC,oBAAoB;SAChD,CAAC,CAAC;IACL,CAAC;IAED
|
|
1
|
+
{"version":3,"file":"sim-cdk-bucket-deploy-copier.js","sourceRoot":"","sources":["../../../../../../../src/service/cloudformation/cdk/s3/bucket-deployment/copy/sim-cdk-bucket-deploy-copier.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,wBAAwB,EAAE,MAAM,2CAA2C,CAAC;AAErF,OAAO,EAAE,sBAAsB,EAAE,MAAM,iCAAiC,CAAC;AACzE,OAAO,EAAE,uBAAuB,EAAE,MAAM,kCAAkC,CAAC;AAC3E,OAAO,EAAE,wBAAwB,EAAE,MAAM,mCAAmC,CAAC;AAO7E;;;;;;;;;;;;GAYG;AACH,MAAM,OAAO,wBAAwB;IAClB,UAAU,CAA+B;IACzC,MAAM,CAA2B;IACjC,IAAI,CAAyB;IAC7B,MAAM,CAA2B;IAElD,YAAY,UAA8C;QACxD,IAAI,CAAC,UAAU,GAAG,UAAU,CAAC,UAAU,CAAC;QACxC,IAAI,CAAC,MAAM,GAAG,IAAI,wBAAwB,CAAC;YACzC,OAAO,EAAE,IAAI,CAAC,UAAU,CAAC,OAAO;YAChC,OAAO,EAAE,IAAI,CAAC,UAAU,CAAC,OAAO;SACjC,CAAC,CAAC;QACH,IAAI,CAAC,IAAI,GAAG,IAAI,sBAAsB,CAAC,UAAU,CAAC,CAAC;QACnD,IAAI,CAAC,MAAM,GAAG,IAAI,wBAAwB,CAAC;YACzC,MAAM,EAAE,UAAU,CAAC,MAAM;YACzB,MAAM,EAAE,IAAI,CAAC,MAAM;YACnB,SAAS,EAAE,IAAI,CAAC,UAAU,CAAC,oBAAoB;SAChD,CAAC,CAAC;IACL,CAAC;IAED;;;;;;;OAOG;IACH,KAAK,CAAC,IAAI,CACR,oBAAuC;QAEvC,MAAM,YAAY,GAAG,IAAI,GAAG,EAAU,CAAC;QAEvC,2EAA2E;QAC3E,0DAA0D;QAC1D,KAAK,MAAM,mBAAmB,IAAI,oBAAoB,EAAE,CAAC;YACvD,yGAAyG;YACzG,MAAM,IAAI,GAAG,MAAM,IAAI,CAAC,aAAa,CAAC,mBAAmB,CAAC,CAAC;YAE3D,KAAK,MAAM,GAAG,IAAI,IAAI,EAAE,CAAC;gBACvB,YAAY,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC;YACxB,CAAC;QACH,CAAC;QAED,IAAI,IAAI,CAAC,UAAU,CAAC,KAAK,EAAE,CAAC;YAC1B,MAAM,IAAI,CAAC,MAAM,CAAC,KAAK,CAAC,YAAY,CAAC,CAAC;QACxC,CAAC;QAED,OAAO,YAAY,CAAC;IACtB,CAAC;IAED;;OAEG;IACK,KAAK,CAAC,aAAa,CACzB,mBAA2B;QAE3B,MAAM,aAAa,GAAG,MAAM,uBAAuB,CAAC,mBAAmB,CAAC,CAAC;QAEzE,OAAO,MAAM,OAAO,CAAC,GAAG,CACtB,aAAa;aACV,MAAM,CAAC,CAAC,YAAY,EAAE,EAAE,CAAC,IAAI,CAAC,MAAM,CAAC,QAAQ,CAAC,YAAY,CAAC,CAAC;aAC5D,GAAG,CAAC,KAAK,EAAE,YAAY,EAAE,EAAE,CAC1B,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,mBAAmB,EAAE,YAAY,CAAC,CAClD,CACJ,CAAC;IACJ,CAAC;CACF"}
|
package/dist/service/cloudformation/cdk/s3/bucket-deployment/copy/sim-cdk-bucket-deploy-file.js
CHANGED
|
@@ -20,7 +20,7 @@ export class SimCdkBucketDeployFile {
|
|
|
20
20
|
*/
|
|
21
21
|
async copy(sourceDirectoryPath, relativePath) {
|
|
22
22
|
const key = this.properties.objectKey(relativePath);
|
|
23
|
-
//
|
|
23
|
+
// oxlint-disable-next-line security/detect-non-literal-fs-filename
|
|
24
24
|
const body = await readFile(path.join(sourceDirectoryPath, relativePath));
|
|
25
25
|
await this.bucket.putObject(new SimS3Object({ key, body, metadata: this.metadata(relativePath) }));
|
|
26
26
|
return key;
|
package/dist/service/cloudformation/cdk/s3/bucket-deployment/copy/sim-cdk-bucket-deploy-files.js
CHANGED
|
@@ -15,7 +15,7 @@ export async function simCdkBucketDeployFiles(directoryPath) {
|
|
|
15
15
|
return await filesUnder(directoryPath, directoryPath);
|
|
16
16
|
}
|
|
17
17
|
async function filesUnder(rootPath, directoryPath) {
|
|
18
|
-
//
|
|
18
|
+
// oxlint-disable-next-line security/detect-non-literal-fs-filename
|
|
19
19
|
const entries = await readdir(directoryPath, { withFileTypes: true });
|
|
20
20
|
const relativePaths = [];
|
|
21
21
|
const nested = [];
|
|
@@ -55,7 +55,7 @@ async function linkedFile(rootPath, entryPath) {
|
|
|
55
55
|
async function linkedStats(entryPath) {
|
|
56
56
|
try {
|
|
57
57
|
// `stat` rather than `lstat`, so the link is followed to what it names.
|
|
58
|
-
//
|
|
58
|
+
// oxlint-disable-next-line security/detect-non-literal-fs-filename
|
|
59
59
|
return await stat(entryPath);
|
|
60
60
|
}
|
|
61
61
|
catch {
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import type { SimS3Bucket } from "../../../../../s3/bucket/sim-s3-bucket.js";
|
|
2
|
+
import type { SimCfnResource, SimCloudFormationResourceCreateContext } from "../../../../resource/sim-cfn-resource.js";
|
|
3
|
+
import type { SimCdkBucketDeployProperties } from "../property/sim-cdk-bucket-deploy-properties.js";
|
|
4
|
+
/**
|
|
5
|
+
* The simulated Bucket a deployment publishes into.
|
|
6
|
+
*
|
|
7
|
+
* A deployment names its destination rather than referring to it, so the Bucket
|
|
8
|
+
* is found by name, in the account and Region the Resource itself belongs to.
|
|
9
|
+
* It has to be there: the provider function runs after the Bucket is created,
|
|
10
|
+
* and a deployment into a Bucket that does not exist is a template saying
|
|
11
|
+
* something that cannot happen rather than something to work around.
|
|
12
|
+
*/
|
|
13
|
+
export declare function simCdkBucketDeployDestination(resource: SimCfnResource, properties: SimCdkBucketDeployProperties, context: SimCloudFormationResourceCreateContext): SimS3Bucket;
|
|
14
|
+
//# sourceMappingURL=sim-cdk-bucket-deploy-destination.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sim-cdk-bucket-deploy-destination.d.ts","sourceRoot":"","sources":["../../../../../../../src/service/cloudformation/cdk/s3/bucket-deployment/destination/sim-cdk-bucket-deploy-destination.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,2CAA2C,CAAC;AAC7E,OAAO,KAAK,EACV,cAAc,EACd,sCAAsC,EACvC,MAAM,0CAA0C,CAAC;AAClD,OAAO,KAAK,EAAE,4BAA4B,EAAE,MAAM,iDAAiD,CAAC;AAEpG;;;;;;;;GAQG;AACH,wBAAgB,6BAA6B,CAC3C,QAAQ,EAAE,cAAc,EACxB,UAAU,EAAE,4BAA4B,EACxC,OAAO,EAAE,sCAAsC,GAC9C,WAAW,CAab"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { assertDefined } from "../../../../../../util/type-guard/defined.js";
|
|
2
|
+
/**
|
|
3
|
+
* The simulated Bucket a deployment publishes into.
|
|
4
|
+
*
|
|
5
|
+
* A deployment names its destination rather than referring to it, so the Bucket
|
|
6
|
+
* is found by name, in the account and Region the Resource itself belongs to.
|
|
7
|
+
* It has to be there: the provider function runs after the Bucket is created,
|
|
8
|
+
* and a deployment into a Bucket that does not exist is a template saying
|
|
9
|
+
* something that cannot happen rather than something to work around.
|
|
10
|
+
*/
|
|
11
|
+
export function simCdkBucketDeployDestination(resource, properties, context) {
|
|
12
|
+
const { accountId, regionName } = resource.accountRegionScope;
|
|
13
|
+
const bucket = context.simAws
|
|
14
|
+
.accountRegionScope(accountId, regionName)
|
|
15
|
+
.s3()
|
|
16
|
+
.getSimBucketByName(properties.destinationBucketName);
|
|
17
|
+
assertDefined(bucket, `Custom::CDKBucketDeployment destination Bucket ${properties.destinationBucketName} does not exist`);
|
|
18
|
+
return bucket;
|
|
19
|
+
}
|
|
20
|
+
//# sourceMappingURL=sim-cdk-bucket-deploy-destination.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sim-cdk-bucket-deploy-destination.js","sourceRoot":"","sources":["../../../../../../../src/service/cloudformation/cdk/s3/bucket-deployment/destination/sim-cdk-bucket-deploy-destination.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,8CAA8C,CAAC;AAQ7E;;;;;;;;GAQG;AACH,MAAM,UAAU,6BAA6B,CAC3C,QAAwB,EACxB,UAAwC,EACxC,OAA+C;IAE/C,MAAM,EAAE,SAAS,EAAE,UAAU,EAAE,GAAG,QAAQ,CAAC,kBAAkB,CAAC;IAC9D,MAAM,MAAM,GAAG,OAAO,CAAC,MAAM;SAC1B,kBAAkB,CAAC,SAAS,EAAE,UAAU,CAAC;SACzC,EAAE,EAAE;SACJ,kBAAkB,CAAC,UAAU,CAAC,qBAAqB,CAAC,CAAC;IAExD,aAAa,CACX,MAAM,EACN,kDAAkD,UAAU,CAAC,qBAAqB,iBAAiB,CACpG,CAAC;IAEF,OAAO,MAAM,CAAC;AAChB,CAAC"}
|
package/dist/service/cloudformation/cdk/s3/bucket-deployment/filter/sim-cdk-bucket-deploy-filter.js
CHANGED
|
@@ -65,12 +65,18 @@ function filterExpression(pattern) {
|
|
|
65
65
|
// Runs of stars collapse to one first. A star already crosses `/`, so `**`
|
|
66
66
|
// means what `*` means, and leaving it would compile to `.*.*` and give the
|
|
67
67
|
// engine a needless amount of backtracking to do on a long near miss.
|
|
68
|
+
//
|
|
69
|
+
// Stars the pattern keeps apart still compile to a `.*` each, and enough of
|
|
70
|
+
// those is slow on a near miss whatever the runs do. That is left alone: a
|
|
71
|
+
// filter pattern is written into a `BucketDeployment` by whoever wrote the
|
|
72
|
+
// template, never carried on a request, so the only run a pathological one
|
|
73
|
+
// can hold up is their own.
|
|
68
74
|
const expression = pattern
|
|
69
75
|
.replaceAll(/\*+/gu, "*")
|
|
70
76
|
.replaceAll(/[$()*+.?[\\\]^{|}]/gu, String.raw `\$&`)
|
|
71
77
|
.replaceAll(String.raw `\*`, ".*")
|
|
72
78
|
.replaceAll(String.raw `\?`, ".");
|
|
73
|
-
//
|
|
79
|
+
// oxlint-disable-next-line security/detect-non-literal-regexp -- built from an escaped template pattern, not from anything a request carries
|
|
74
80
|
return new RegExp(`^${expression}$`, "u");
|
|
75
81
|
}
|
|
76
82
|
//# sourceMappingURL=sim-cdk-bucket-deploy-filter.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sim-cdk-bucket-deploy-filter.js","sourceRoot":"","sources":["../../../../../../../src/service/cloudformation/cdk/s3/bucket-deployment/filter/sim-cdk-bucket-deploy-filter.ts"],"names":[],"mappings":"AAKA;;;;;;;;;;;;GAYG;AACH,MAAM,OAAO,wBAAwB;IAClB,KAAK,CAAwB;IAE9C,YAAY,UAA8C;QACxD,IAAI,CAAC,KAAK,GAAG;YACX,GAAG,UAAU,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC,OAAO,EAAE,EAAE,CAAC,IAAI,UAAU,CAAC,OAAO,EAAE,KAAK,CAAC,CAAC;YACtE,GAAG,UAAU,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC,OAAO,EAAE,EAAE,CAAC,IAAI,UAAU,CAAC,OAAO,EAAE,IAAI,CAAC,CAAC;SACtE,CAAC;IACJ,CAAC;IAED;;OAEG;IACH,QAAQ,CAAC,YAAoB;QAC3B,IAAI,QAAQ,GAAG,IAAI,CAAC;QAEpB,KAAK,MAAM,IAAI,IAAI,IAAI,CAAC,KAAK,EAAE,CAAC;YAC9B,IAAI,IAAI,CAAC,OAAO,CAAC,YAAY,CAAC,EAAE,CAAC;gBAC/B,QAAQ,GAAG,IAAI,CAAC,QAAQ,CAAC;YAC3B,CAAC;QACH,CAAC;QAED,OAAO,QAAQ,CAAC;IAClB,CAAC;CACF;AAED,MAAM,UAAU;IAKH,QAAQ;IAJF,UAAU,CAAS;IAEpC,YACE,OAAe,EACN,QAAiB;wBAAjB,QAAQ;QAEjB,IAAI,CAAC,UAAU,GAAG,gBAAgB,CAAC,OAAO,CAAC,CAAC;IAC9C,CAAC;IAED,OAAO,CAAC,YAAoB;QAC1B,OAAO,IAAI,CAAC,UAAU,CAAC,IAAI,CAAC,YAAY,CAAC,CAAC;IAC5C,CAAC;CACF;AAED;;;;;;;;;GASG;AACH,SAAS,gBAAgB,CAAC,OAAe;IACvC,IAAI,OAAO,CAAC,QAAQ,CAAC,GAAG,CAAC,EAAE,CAAC;QAC1B,MAAM,IAAI,KAAK,CACb,2CAA2C,OAAO,oBAAoB;YACpE,0DAA0D,CAC7D,CAAC;IACJ,CAAC;IAED,uEAAuE;IACvE,4EAA4E;IAC5E,+DAA+D;IAC/D,EAAE;IACF,2EAA2E;IAC3E,4EAA4E;IAC5E,sEAAsE;IACtE,MAAM,UAAU,GAAG,OAAO;SACvB,UAAU,CAAC,OAAO,EAAE,GAAG,CAAC;SACxB,UAAU,CAAC,sBAAsB,EAAE,MAAM,CAAC,GAAG,CAAA,KAAK,CAAC;SACnD,UAAU,CAAC,MAAM,CAAC,GAAG,CAAA,IAAI,EAAE,IAAI,CAAC;SAChC,UAAU,CAAC,MAAM,CAAC,GAAG,CAAA,IAAI,EAAE,GAAG,CAAC,CAAC;IAEnC,6IAA6I;IAC7I,OAAO,IAAI,MAAM,CAAC,IAAI,UAAU,GAAG,EAAE,GAAG,CAAC,CAAC;AAC5C,CAAC"}
|
|
1
|
+
{"version":3,"file":"sim-cdk-bucket-deploy-filter.js","sourceRoot":"","sources":["../../../../../../../src/service/cloudformation/cdk/s3/bucket-deployment/filter/sim-cdk-bucket-deploy-filter.ts"],"names":[],"mappings":"AAKA;;;;;;;;;;;;GAYG;AACH,MAAM,OAAO,wBAAwB;IAClB,KAAK,CAAwB;IAE9C,YAAY,UAA8C;QACxD,IAAI,CAAC,KAAK,GAAG;YACX,GAAG,UAAU,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC,OAAO,EAAE,EAAE,CAAC,IAAI,UAAU,CAAC,OAAO,EAAE,KAAK,CAAC,CAAC;YACtE,GAAG,UAAU,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC,OAAO,EAAE,EAAE,CAAC,IAAI,UAAU,CAAC,OAAO,EAAE,IAAI,CAAC,CAAC;SACtE,CAAC;IACJ,CAAC;IAED;;OAEG;IACH,QAAQ,CAAC,YAAoB;QAC3B,IAAI,QAAQ,GAAG,IAAI,CAAC;QAEpB,KAAK,MAAM,IAAI,IAAI,IAAI,CAAC,KAAK,EAAE,CAAC;YAC9B,IAAI,IAAI,CAAC,OAAO,CAAC,YAAY,CAAC,EAAE,CAAC;gBAC/B,QAAQ,GAAG,IAAI,CAAC,QAAQ,CAAC;YAC3B,CAAC;QACH,CAAC;QAED,OAAO,QAAQ,CAAC;IAClB,CAAC;CACF;AAED,MAAM,UAAU;IAKH,QAAQ;IAJF,UAAU,CAAS;IAEpC,YACE,OAAe,EACN,QAAiB;wBAAjB,QAAQ;QAEjB,IAAI,CAAC,UAAU,GAAG,gBAAgB,CAAC,OAAO,CAAC,CAAC;IAC9C,CAAC;IAED,OAAO,CAAC,YAAoB;QAC1B,OAAO,IAAI,CAAC,UAAU,CAAC,IAAI,CAAC,YAAY,CAAC,CAAC;IAC5C,CAAC;CACF;AAED;;;;;;;;;GASG;AACH,SAAS,gBAAgB,CAAC,OAAe;IACvC,IAAI,OAAO,CAAC,QAAQ,CAAC,GAAG,CAAC,EAAE,CAAC;QAC1B,MAAM,IAAI,KAAK,CACb,2CAA2C,OAAO,oBAAoB;YACpE,0DAA0D,CAC7D,CAAC;IACJ,CAAC;IAED,uEAAuE;IACvE,4EAA4E;IAC5E,+DAA+D;IAC/D,EAAE;IACF,2EAA2E;IAC3E,4EAA4E;IAC5E,sEAAsE;IACtE,EAAE;IACF,4EAA4E;IAC5E,2EAA2E;IAC3E,2EAA2E;IAC3E,2EAA2E;IAC3E,4BAA4B;IAC5B,MAAM,UAAU,GAAG,OAAO;SACvB,UAAU,CAAC,OAAO,EAAE,GAAG,CAAC;SACxB,UAAU,CAAC,sBAAsB,EAAE,MAAM,CAAC,GAAG,CAAA,KAAK,CAAC;SACnD,UAAU,CAAC,MAAM,CAAC,GAAG,CAAA,IAAI,EAAE,IAAI,CAAC;SAChC,UAAU,CAAC,MAAM,CAAC,GAAG,CAAA,IAAI,EAAE,GAAG,CAAC,CAAC;IAEnC,6IAA6I;IAC7I,OAAO,IAAI,MAAM,CAAC,IAAI,UAAU,GAAG,EAAE,GAAG,CAAC,CAAC;AAC5C,CAAC"}
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
import type { SimCfnResource } from "../../../../resource/sim-cfn-resource.js";
|
|
2
|
+
import type { SimS3Bucket } from "../../../../../s3/bucket/sim-s3-bucket.js";
|
|
3
|
+
import type { SimS3SystemMetadataDeclaration } from "../../../../../s3/object/s3-system-metadata-declaration.type.js";
|
|
4
|
+
import { type SimS3SystemMetadataValues } from "../../../../../s3/object/s3-system-metadata.js";
|
|
5
|
+
import type { SimCdkBucketDeployProperties } from "../property/sim-cdk-bucket-deploy-properties.js";
|
|
6
|
+
interface SimCdkBucketDeployMetadataProperties {
|
|
7
|
+
readonly properties: SimCdkBucketDeployProperties;
|
|
8
|
+
/** The Object keys this deployment put into the Bucket. */
|
|
9
|
+
readonly publishedKeys: ReadonlySet<string>;
|
|
10
|
+
}
|
|
11
|
+
/**
|
|
12
|
+
* What a `BucketDeployment` says S3 reports about the Objects it published.
|
|
13
|
+
*
|
|
14
|
+
* The deployment sets these headers on each Object it copies, and an Object
|
|
15
|
+
* keeps them, so nothing reads this while the Bucket is holding what was
|
|
16
|
+
* deployed. It is read when the storage under those Objects is replaced by a
|
|
17
|
+
* mounted directory, which is the local development arrangement: the site is
|
|
18
|
+
* served out of the generator's output as it is rebuilt, from the Bucket the
|
|
19
|
+
* deployment describes, and the files on disk carry none of what it set.
|
|
20
|
+
*
|
|
21
|
+
* The keys it published are what it is sure of. Its destination prefix and its
|
|
22
|
+
* filters are the rule behind them, which is all there is to go on for a file a
|
|
23
|
+
* later build added, and is a guess rather than a fact: two deployments can
|
|
24
|
+
* publish into one prefix and be told apart only by what their sources hold.
|
|
25
|
+
*/
|
|
26
|
+
export declare class SimCdkBucketDeployMetadata implements SimS3SystemMetadataDeclaration {
|
|
27
|
+
readonly metadata: SimS3SystemMetadataValues;
|
|
28
|
+
private readonly keyPrefix;
|
|
29
|
+
private readonly filter;
|
|
30
|
+
private readonly publishedKeys;
|
|
31
|
+
constructor(properties: SimCdkBucketDeployMetadataProperties);
|
|
32
|
+
/** Whether this deployment put the Object under a key into the Bucket. */
|
|
33
|
+
describes(objectKey: string): boolean;
|
|
34
|
+
/**
|
|
35
|
+
* Whether this deployment would publish a file under a key.
|
|
36
|
+
*
|
|
37
|
+
* The deployment's own rule: under its destination prefix, and selected by
|
|
38
|
+
* its filters, matched against the path relative to the prefix the way the
|
|
39
|
+
* sync matches it against the path relative to the source root.
|
|
40
|
+
*/
|
|
41
|
+
wouldDescribe(objectKey: string): boolean;
|
|
42
|
+
}
|
|
43
|
+
interface SimCdkBucketDeployDeclareProperties extends SimCdkBucketDeployMetadataProperties {
|
|
44
|
+
readonly bucket: SimS3Bucket;
|
|
45
|
+
readonly resource: SimCfnResource;
|
|
46
|
+
}
|
|
47
|
+
/**
|
|
48
|
+
* Tell the destination Bucket what this deployment publishes.
|
|
49
|
+
*
|
|
50
|
+
* The declaration is kept against the Resource it came from, so a Stack
|
|
51
|
+
* redeployed into a running simulator is the same deployment saying its headers
|
|
52
|
+
* again rather than a second one agreeing with it. Two deployments into one
|
|
53
|
+
* Bucket are two Resources and keep two declarations, which is what lets each
|
|
54
|
+
* describe its own files.
|
|
55
|
+
*/
|
|
56
|
+
export declare function declareSimCdkBucketDeployMetadata(properties: SimCdkBucketDeployDeclareProperties): void;
|
|
57
|
+
export {};
|
|
58
|
+
//# sourceMappingURL=sim-cdk-bucket-deploy-metadata.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sim-cdk-bucket-deploy-metadata.d.ts","sourceRoot":"","sources":["../../../../../../../src/service/cloudformation/cdk/s3/bucket-deployment/metadata/sim-cdk-bucket-deploy-metadata.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,0CAA0C,CAAC;AAC/E,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,2CAA2C,CAAC;AAC7E,OAAO,KAAK,EAAE,8BAA8B,EAAE,MAAM,iEAAiE,CAAC;AACtH,OAAO,EAEL,KAAK,yBAAyB,EAC/B,MAAM,gDAAgD,CAAC;AAExD,OAAO,KAAK,EAAE,4BAA4B,EAAE,MAAM,iDAAiD,CAAC;AAEpG,UAAU,oCAAoC;IAC5C,QAAQ,CAAC,UAAU,EAAE,4BAA4B,CAAC;IAElD,2DAA2D;IAC3D,QAAQ,CAAC,aAAa,EAAE,WAAW,CAAC,MAAM,CAAC,CAAC;CAC7C;AAED;;;;;;;;;;;;;;GAcG;AACH,qBAAa,0BAA2B,YAAW,8BAA8B;IAC/E,QAAQ,CAAC,QAAQ,EAAE,yBAAyB,CAAC;IAE7C,OAAO,CAAC,QAAQ,CAAC,SAAS,CAAS;IACnC,OAAO,CAAC,QAAQ,CAAC,MAAM,CAA2B;IAClD,OAAO,CAAC,QAAQ,CAAC,aAAa,CAAsB;IAEpD,YAAY,UAAU,EAAE,oCAAoC,EAU3D;IAED,0EAA0E;IAC1E,SAAS,CAAC,SAAS,EAAE,MAAM,GAAG,OAAO,CAEpC;IAED;;;;;;OAMG;IACH,aAAa,CAAC,SAAS,EAAE,MAAM,GAAG,OAAO,CAKxC;CACF;AAED,UAAU,mCAAoC,SAAQ,oCAAoC;IACxF,QAAQ,CAAC,MAAM,EAAE,WAAW,CAAC;IAC7B,QAAQ,CAAC,QAAQ,EAAE,cAAc,CAAC;CACnC;AAED;;;;;;;;GAQG;AACH,wBAAgB,iCAAiC,CAC/C,UAAU,EAAE,mCAAmC,GAC9C,IAAI,CAON"}
|