@kensio/yulin 1.16.3 → 1.17.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -0
- package/dist/sdk/wire/sim-sdk-wire-response.d.ts +12 -0
- package/dist/sdk/wire/sim-sdk-wire-response.d.ts.map +1 -1
- package/dist/sdk/wire/sim-sdk-wire-response.js +2 -2
- package/dist/sdk/wire/sim-sdk-wire-response.js.map +1 -1
- package/dist/serve/http/api/query/sim-query-endpoint.d.ts +42 -0
- package/dist/serve/http/api/query/sim-query-endpoint.d.ts.map +1 -0
- package/dist/serve/http/api/query/sim-query-endpoint.js +55 -0
- package/dist/serve/http/api/query/sim-query-endpoint.js.map +1 -0
- package/dist/serve/http/api/query/sim-query-operation.d.ts +19 -0
- package/dist/serve/http/api/query/sim-query-operation.d.ts.map +1 -0
- package/dist/serve/http/api/query/sim-query-operation.js +2 -0
- package/dist/serve/http/api/query/sim-query-operation.js.map +1 -0
- package/dist/serve/http/api/query/sim-query-request.d.ts +85 -0
- package/dist/serve/http/api/query/sim-query-request.d.ts.map +1 -0
- package/dist/serve/http/api/query/sim-query-request.js +136 -0
- package/dist/serve/http/api/query/sim-query-request.js.map +1 -0
- package/dist/serve/http/api/query/sim-query-response.d.ts +35 -0
- package/dist/serve/http/api/query/sim-query-response.d.ts.map +1 -0
- package/dist/serve/http/api/query/sim-query-response.js +63 -0
- package/dist/serve/http/api/query/sim-query-response.js.map +1 -0
- package/dist/serve/http/api/query/sim-query-result.d.ts +33 -0
- package/dist/serve/http/api/query/sim-query-result.d.ts.map +1 -0
- package/dist/serve/http/api/query/sim-query-result.js +87 -0
- package/dist/serve/http/api/query/sim-query-result.js.map +1 -0
- package/dist/serve/http/api/rest-json/sim-rest-json-endpoint.d.ts +40 -0
- package/dist/serve/http/api/rest-json/sim-rest-json-endpoint.d.ts.map +1 -0
- package/dist/serve/http/api/rest-json/sim-rest-json-endpoint.js +67 -0
- package/dist/serve/http/api/rest-json/sim-rest-json-endpoint.js.map +1 -0
- package/dist/serve/http/api/rest-json/sim-rest-json-input.d.ts +45 -0
- package/dist/serve/http/api/rest-json/sim-rest-json-input.d.ts.map +1 -0
- package/dist/serve/http/api/rest-json/sim-rest-json-input.js +52 -0
- package/dist/serve/http/api/rest-json/sim-rest-json-input.js.map +1 -0
- package/dist/serve/http/api/rest-json/sim-rest-json-request.d.ts +58 -0
- package/dist/serve/http/api/rest-json/sim-rest-json-request.d.ts.map +1 -0
- package/dist/serve/http/api/rest-json/sim-rest-json-request.js +68 -0
- package/dist/serve/http/api/rest-json/sim-rest-json-request.js.map +1 -0
- package/dist/serve/http/api/rest-json/sim-rest-json-response.d.ts +35 -0
- package/dist/serve/http/api/rest-json/sim-rest-json-response.d.ts.map +1 -0
- package/dist/serve/http/api/rest-json/sim-rest-json-response.js +55 -0
- package/dist/serve/http/api/rest-json/sim-rest-json-response.js.map +1 -0
- package/dist/serve/http/api/rest-json/sim-rest-json-route.type.d.ts +37 -0
- package/dist/serve/http/api/rest-json/sim-rest-json-route.type.d.ts.map +1 -0
- package/dist/serve/http/api/rest-json/sim-rest-json-route.type.js +2 -0
- package/dist/serve/http/api/rest-json/sim-rest-json-route.type.js.map +1 -0
- package/dist/serve/http/api/rest-json/sim-rest-json-routes.d.ts +27 -0
- package/dist/serve/http/api/rest-json/sim-rest-json-routes.d.ts.map +1 -0
- package/dist/serve/http/api/rest-json/sim-rest-json-routes.js +51 -0
- package/dist/serve/http/api/rest-json/sim-rest-json-routes.js.map +1 -0
- package/dist/serve/http/api/sim-aws-api-endpoint.d.ts +3 -4
- package/dist/serve/http/api/sim-aws-api-endpoint.d.ts.map +1 -1
- package/dist/serve/http/api/sim-aws-api-endpoint.js +8 -23
- package/dist/serve/http/api/sim-aws-api-endpoint.js.map +1 -1
- package/dist/serve/http/api/sim-aws-api-protocols.d.ts +13 -0
- package/dist/serve/http/api/sim-aws-api-protocols.d.ts.map +1 -0
- package/dist/serve/http/api/sim-aws-api-protocols.js +41 -0
- package/dist/serve/http/api/sim-aws-api-protocols.js.map +1 -0
- package/dist/service/cloudformation/cdk/sim-cdk-assembly-manifest-file.d.ts +29 -0
- package/dist/service/cloudformation/cdk/sim-cdk-assembly-manifest-file.d.ts.map +1 -0
- package/dist/service/cloudformation/cdk/sim-cdk-assembly-manifest-file.js +36 -0
- package/dist/service/cloudformation/cdk/sim-cdk-assembly-manifest-file.js.map +1 -0
- package/dist/service/cloudformation/cdk/sim-cdk-assembly-manifest.d.ts +27 -0
- package/dist/service/cloudformation/cdk/sim-cdk-assembly-manifest.d.ts.map +1 -0
- package/dist/service/cloudformation/cdk/sim-cdk-assembly-manifest.js +24 -0
- package/dist/service/cloudformation/cdk/sim-cdk-assembly-manifest.js.map +1 -0
- package/dist/service/cloudformation/cdk/sim-cdk-assembly-order.d.ts +12 -0
- package/dist/service/cloudformation/cdk/sim-cdk-assembly-order.d.ts.map +1 -0
- package/dist/service/cloudformation/cdk/sim-cdk-assembly-order.js +54 -0
- package/dist/service/cloudformation/cdk/sim-cdk-assembly-order.js.map +1 -0
- package/dist/service/cloudformation/cdk/sim-cdk-assembly-selection.d.ts +17 -0
- package/dist/service/cloudformation/cdk/sim-cdk-assembly-selection.d.ts.map +1 -0
- package/dist/service/cloudformation/cdk/sim-cdk-assembly-selection.js +33 -0
- package/dist/service/cloudformation/cdk/sim-cdk-assembly-selection.js.map +1 -0
- package/dist/service/cloudformation/cdk/sim-cdk-cloud-assembly.factory.d.ts +50 -0
- package/dist/service/cloudformation/cdk/sim-cdk-cloud-assembly.factory.d.ts.map +1 -0
- package/dist/service/cloudformation/cdk/sim-cdk-cloud-assembly.factory.js +69 -0
- package/dist/service/cloudformation/cdk/sim-cdk-cloud-assembly.factory.js.map +1 -0
- package/dist/service/cloudformation/command/create-stack/create-stack.handler.d.ts +3 -0
- 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 +14 -4
- package/dist/service/cloudformation/command/create-stack/create-stack.handler.js.map +1 -1
- package/dist/service/cloudformation/command/update-stack/update-stack.handler.d.ts +7 -0
- package/dist/service/cloudformation/command/update-stack/update-stack.handler.d.ts.map +1 -1
- package/dist/service/cloudformation/command/update-stack/update-stack.handler.js +14 -1
- package/dist/service/cloudformation/command/update-stack/update-stack.handler.js.map +1 -1
- package/dist/service/cloudformation/deploy/sim-cfn-cdk-out-deployer.d.ts +24 -0
- package/dist/service/cloudformation/deploy/sim-cfn-cdk-out-deployer.d.ts.map +1 -0
- package/dist/service/cloudformation/deploy/sim-cfn-cdk-out-deployer.js +40 -0
- package/dist/service/cloudformation/deploy/sim-cfn-cdk-out-deployer.js.map +1 -0
- package/dist/service/cloudformation/deploy/sim-cfn-cdk-out-plan.d.ts +39 -0
- package/dist/service/cloudformation/deploy/sim-cfn-cdk-out-plan.d.ts.map +1 -0
- package/dist/service/cloudformation/deploy/sim-cfn-cdk-out-plan.js +35 -0
- package/dist/service/cloudformation/deploy/sim-cfn-cdk-out-plan.js.map +1 -0
- package/dist/service/cloudformation/deploy/sim-cfn-cdk-out-stack-options.d.ts +28 -0
- package/dist/service/cloudformation/deploy/sim-cfn-cdk-out-stack-options.d.ts.map +1 -0
- package/dist/service/cloudformation/deploy/sim-cfn-cdk-out-stack-options.js +24 -0
- package/dist/service/cloudformation/deploy/sim-cfn-cdk-out-stack-options.js.map +1 -0
- package/dist/service/cloudformation/deploy/sim-cfn-template-deployer.d.ts +9 -0
- package/dist/service/cloudformation/deploy/sim-cfn-template-deployer.d.ts.map +1 -1
- package/dist/service/cloudformation/deploy/sim-cfn-template-deployer.js +16 -0
- package/dist/service/cloudformation/deploy/sim-cfn-template-deployer.js.map +1 -1
- package/dist/service/cloudformation/deploy/sim-cfn-template-file-loader.d.ts.map +1 -1
- package/dist/service/cloudformation/deploy/sim-cfn-template-file-loader.js +2 -4
- package/dist/service/cloudformation/deploy/sim-cfn-template-file-loader.js.map +1 -1
- package/dist/service/cloudformation/deploy/sim-cfn-template-file-read.d.ts +13 -0
- package/dist/service/cloudformation/deploy/sim-cfn-template-file-read.d.ts.map +1 -0
- package/dist/service/cloudformation/deploy/sim-cfn-template-file-read.js +29 -0
- package/dist/service/cloudformation/deploy/sim-cfn-template-file-read.js.map +1 -0
- package/dist/service/cloudformation/deploy/sim-cfn-template-file-updater.d.ts +3 -0
- package/dist/service/cloudformation/deploy/sim-cfn-template-file-updater.d.ts.map +1 -1
- package/dist/service/cloudformation/deploy/sim-cfn-template-file-updater.js +3 -0
- package/dist/service/cloudformation/deploy/sim-cfn-template-file-updater.js.map +1 -1
- package/dist/service/cloudformation/export/sim-cfn-exports.d.ts +43 -0
- package/dist/service/cloudformation/export/sim-cfn-exports.d.ts.map +1 -0
- package/dist/service/cloudformation/export/sim-cfn-exports.js +65 -0
- package/dist/service/cloudformation/export/sim-cfn-exports.js.map +1 -0
- package/dist/service/cloudformation/export/sim-cfn-stack-exports.d.ts +11 -0
- package/dist/service/cloudformation/export/sim-cfn-stack-exports.d.ts.map +1 -0
- package/dist/service/cloudformation/export/sim-cfn-stack-exports.js +23 -0
- package/dist/service/cloudformation/export/sim-cfn-stack-exports.js.map +1 -0
- package/dist/service/cloudformation/index.d.ts +2 -0
- package/dist/service/cloudformation/index.d.ts.map +1 -1
- package/dist/service/cloudformation/parameters/sim-cfn-parameter-definitions.d.ts +10 -0
- package/dist/service/cloudformation/parameters/sim-cfn-parameter-definitions.d.ts.map +1 -0
- package/dist/service/cloudformation/parameters/sim-cfn-parameter-definitions.js +21 -0
- package/dist/service/cloudformation/parameters/sim-cfn-parameter-definitions.js.map +1 -0
- package/dist/service/cloudformation/parameters/sim-cfn-parameter-input-values.d.ts +10 -0
- package/dist/service/cloudformation/parameters/sim-cfn-parameter-input-values.d.ts.map +1 -0
- package/dist/service/cloudformation/parameters/sim-cfn-parameter-input-values.js +19 -0
- package/dist/service/cloudformation/parameters/sim-cfn-parameter-input-values.js.map +1 -0
- package/dist/service/cloudformation/parameters/sim-cfn-parameter-values.d.ts +34 -0
- package/dist/service/cloudformation/parameters/sim-cfn-parameter-values.d.ts.map +1 -0
- package/dist/service/cloudformation/parameters/sim-cfn-parameter-values.js +43 -0
- package/dist/service/cloudformation/parameters/sim-cfn-parameter-values.js.map +1 -0
- package/dist/service/cloudformation/parameters/sim-cfn-parameters.d.ts +21 -16
- package/dist/service/cloudformation/parameters/sim-cfn-parameters.d.ts.map +1 -1
- package/dist/service/cloudformation/parameters/sim-cfn-parameters.js +33 -62
- package/dist/service/cloudformation/parameters/sim-cfn-parameters.js.map +1 -1
- package/dist/service/cloudformation/parameters/sim-cfn-parameters.type.d.ts +30 -9
- package/dist/service/cloudformation/parameters/sim-cfn-parameters.type.d.ts.map +1 -1
- package/dist/service/cloudformation/parameters/store/sim-cfn-parameter-store-value-type.d.ts +20 -0
- package/dist/service/cloudformation/parameters/store/sim-cfn-parameter-store-value-type.d.ts.map +1 -0
- package/dist/service/cloudformation/parameters/store/sim-cfn-parameter-store-value-type.js +20 -0
- package/dist/service/cloudformation/parameters/store/sim-cfn-parameter-store-value-type.js.map +1 -0
- package/dist/service/cloudformation/parameters/store/sim-cfn-parameter-store-values.d.ts +48 -0
- package/dist/service/cloudformation/parameters/store/sim-cfn-parameter-store-values.d.ts.map +1 -0
- package/dist/service/cloudformation/parameters/store/sim-cfn-parameter-store-values.js +69 -0
- package/dist/service/cloudformation/parameters/store/sim-cfn-parameter-store-values.js.map +1 -0
- package/dist/service/cloudformation/parameters/store/sim-cfn-parameter-store.d.ts +17 -0
- package/dist/service/cloudformation/parameters/store/sim-cfn-parameter-store.d.ts.map +1 -0
- package/dist/service/cloudformation/parameters/store/sim-cfn-parameter-store.js +15 -0
- package/dist/service/cloudformation/parameters/store/sim-cfn-parameter-store.js.map +1 -0
- package/dist/service/cloudformation/parameters/store/sim-cfn-parameter-store.type.d.ts +28 -0
- package/dist/service/cloudformation/parameters/store/sim-cfn-parameter-store.type.d.ts.map +1 -0
- package/dist/service/cloudformation/parameters/store/sim-cfn-parameter-store.type.js +2 -0
- package/dist/service/cloudformation/parameters/store/sim-cfn-parameter-store.type.js.map +1 -0
- package/dist/service/cloudformation/resource/create/sim-cfn-resource-creator.js +1 -1
- package/dist/service/cloudformation/resource/create/sim-cfn-resource-creator.js.map +1 -1
- package/dist/service/cloudformation/resource/delete/sim-cfn-resource-deleter.js +1 -1
- package/dist/service/cloudformation/resource/delete/sim-cfn-resource-deleter.js.map +1 -1
- package/dist/service/cloudformation/resource/resolve/property/sim-cfn-resource-property-resolver.d.ts +23 -1
- package/dist/service/cloudformation/resource/resolve/property/sim-cfn-resource-property-resolver.d.ts.map +1 -1
- package/dist/service/cloudformation/resource/resolve/property/sim-cfn-resource-property-resolver.js +39 -2
- package/dist/service/cloudformation/resource/resolve/property/sim-cfn-resource-property-resolver.js.map +1 -1
- package/dist/service/cloudformation/resource/sim-cfn-resource-record.d.ts +6 -1
- package/dist/service/cloudformation/resource/sim-cfn-resource-record.d.ts.map +1 -1
- package/dist/service/cloudformation/resource/sim-cfn-resource-record.js +14 -4
- package/dist/service/cloudformation/resource/sim-cfn-resource-record.js.map +1 -1
- package/dist/service/cloudformation/resource/sim-cfn-resource.type.d.ts +7 -0
- package/dist/service/cloudformation/resource/sim-cfn-resource.type.d.ts.map +1 -1
- package/dist/service/cloudformation/serve/sim-cloudformation-api.d.ts +11 -0
- package/dist/service/cloudformation/serve/sim-cloudformation-api.d.ts.map +1 -0
- package/dist/service/cloudformation/serve/sim-cloudformation-api.js +87 -0
- package/dist/service/cloudformation/serve/sim-cloudformation-api.js.map +1 -0
- package/dist/service/cloudformation/sim-cloudformation.d.ts +7 -1
- package/dist/service/cloudformation/sim-cloudformation.d.ts.map +1 -1
- package/dist/service/cloudformation/sim-cloudformation.js +19 -12
- package/dist/service/cloudformation/sim-cloudformation.js.map +1 -1
- package/dist/service/cloudformation/stack/output/sim-cfn-stack-output-lookup.d.ts +31 -0
- package/dist/service/cloudformation/stack/output/sim-cfn-stack-output-lookup.d.ts.map +1 -0
- package/dist/service/cloudformation/stack/output/sim-cfn-stack-output-lookup.js +57 -0
- package/dist/service/cloudformation/stack/output/sim-cfn-stack-output-lookup.js.map +1 -0
- package/dist/service/cloudformation/stack/output/sim-cfn-stack-output-resolver.d.ts +3 -0
- package/dist/service/cloudformation/stack/output/sim-cfn-stack-output-resolver.d.ts.map +1 -1
- package/dist/service/cloudformation/stack/output/sim-cfn-stack-output-resolver.js +3 -0
- package/dist/service/cloudformation/stack/output/sim-cfn-stack-output-resolver.js.map +1 -1
- package/dist/service/cloudformation/stack/output/sim-cfn-stack-outputs.d.ts +31 -0
- package/dist/service/cloudformation/stack/output/sim-cfn-stack-outputs.d.ts.map +1 -0
- package/dist/service/cloudformation/stack/output/sim-cfn-stack-outputs.js +37 -0
- package/dist/service/cloudformation/stack/output/sim-cfn-stack-outputs.js.map +1 -0
- package/dist/service/cloudformation/stack/report/sim-cfn-stack-resource-report.d.ts +9 -5
- 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 +15 -9
- package/dist/service/cloudformation/stack/report/sim-cfn-stack-resource-report.js.map +1 -1
- package/dist/service/cloudformation/stack/resource-map/sim-cfn-stack-resource-map.d.ts.map +1 -1
- package/dist/service/cloudformation/stack/resource-map/sim-cfn-stack-resource-map.js +1 -0
- package/dist/service/cloudformation/stack/resource-map/sim-cfn-stack-resource-map.js.map +1 -1
- package/dist/service/cloudformation/stack/sim-cfn-stack.d.ts +14 -1
- package/dist/service/cloudformation/stack/sim-cfn-stack.d.ts.map +1 -1
- package/dist/service/cloudformation/stack/sim-cfn-stack.js +26 -8
- package/dist/service/cloudformation/stack/sim-cfn-stack.js.map +1 -1
- package/dist/service/cloudformation/stack/sim-cfn-stack.type.d.ts +7 -0
- package/dist/service/cloudformation/stack/sim-cfn-stack.type.d.ts.map +1 -1
- package/dist/service/cloudformation/template/dynamic/make-sim-cfn-dynamic-references.d.ts +15 -0
- package/dist/service/cloudformation/template/dynamic/make-sim-cfn-dynamic-references.d.ts.map +1 -0
- package/dist/service/cloudformation/template/dynamic/make-sim-cfn-dynamic-references.js +19 -0
- package/dist/service/cloudformation/template/dynamic/make-sim-cfn-dynamic-references.js.map +1 -0
- package/dist/service/cloudformation/template/dynamic/sim-cfn-awaited-dynamic-references.d.ts +42 -0
- package/dist/service/cloudformation/template/dynamic/sim-cfn-awaited-dynamic-references.d.ts.map +1 -0
- package/dist/service/cloudformation/template/dynamic/sim-cfn-awaited-dynamic-references.js +41 -0
- package/dist/service/cloudformation/template/dynamic/sim-cfn-awaited-dynamic-references.js.map +1 -0
- package/dist/service/cloudformation/template/dynamic/sim-cfn-dynamic-reference-placeholder.d.ts +21 -0
- package/dist/service/cloudformation/template/dynamic/sim-cfn-dynamic-reference-placeholder.d.ts.map +1 -0
- package/dist/service/cloudformation/template/dynamic/sim-cfn-dynamic-reference-placeholder.js +61 -0
- package/dist/service/cloudformation/template/dynamic/sim-cfn-dynamic-reference-placeholder.js.map +1 -0
- package/dist/service/cloudformation/template/dynamic/sim-cfn-dynamic-reference-resolvers.d.ts +31 -0
- package/dist/service/cloudformation/template/dynamic/sim-cfn-dynamic-reference-resolvers.d.ts.map +1 -0
- package/dist/service/cloudformation/template/dynamic/sim-cfn-dynamic-reference-resolvers.js +25 -0
- package/dist/service/cloudformation/template/dynamic/sim-cfn-dynamic-reference-resolvers.js.map +1 -0
- package/dist/service/cloudformation/template/dynamic/sim-cfn-dynamic-reference-scan.d.ts +21 -0
- package/dist/service/cloudformation/template/dynamic/sim-cfn-dynamic-reference-scan.d.ts.map +1 -0
- package/dist/service/cloudformation/template/dynamic/sim-cfn-dynamic-reference-scan.js +39 -0
- package/dist/service/cloudformation/template/dynamic/sim-cfn-dynamic-reference-scan.js.map +1 -0
- package/dist/service/cloudformation/template/dynamic/sim-cfn-dynamic-reference.type.d.ts +45 -0
- package/dist/service/cloudformation/template/dynamic/sim-cfn-dynamic-reference.type.d.ts.map +1 -0
- package/dist/service/cloudformation/template/dynamic/sim-cfn-dynamic-reference.type.js +2 -0
- package/dist/service/cloudformation/template/dynamic/sim-cfn-dynamic-reference.type.js.map +1 -0
- package/dist/service/cloudformation/template/dynamic/sim-cfn-dynamic-references.d.ts +51 -0
- package/dist/service/cloudformation/template/dynamic/sim-cfn-dynamic-references.d.ts.map +1 -0
- package/dist/service/cloudformation/template/dynamic/sim-cfn-dynamic-references.js +77 -0
- package/dist/service/cloudformation/template/dynamic/sim-cfn-dynamic-references.js.map +1 -0
- package/dist/service/cloudformation/template/node/fn/import-value/sim-cfn-fn-import-value.d.ts +33 -0
- package/dist/service/cloudformation/template/node/fn/import-value/sim-cfn-fn-import-value.d.ts.map +1 -0
- package/dist/service/cloudformation/template/node/fn/import-value/sim-cfn-fn-import-value.js +47 -0
- package/dist/service/cloudformation/template/node/fn/import-value/sim-cfn-fn-import-value.js.map +1 -0
- package/dist/service/cloudformation/template/node/fn/split/sim-cfn-fn-split.d.ts +7 -0
- package/dist/service/cloudformation/template/node/fn/split/sim-cfn-fn-split.d.ts.map +1 -1
- package/dist/service/cloudformation/template/node/fn/split/sim-cfn-fn-split.js +12 -0
- package/dist/service/cloudformation/template/node/fn/split/sim-cfn-fn-split.js.map +1 -1
- package/dist/service/cloudformation/template/node/fn/sub/sim-cfn-fn-sub.d.ts.map +1 -1
- package/dist/service/cloudformation/template/node/fn/sub/sim-cfn-fn-sub.js +6 -1
- package/dist/service/cloudformation/template/node/fn/sub/sim-cfn-fn-sub.js.map +1 -1
- package/dist/service/cloudformation/template/node/sim-cfn-literal.d.ts +9 -2
- package/dist/service/cloudformation/template/node/sim-cfn-literal.d.ts.map +1 -1
- package/dist/service/cloudformation/template/node/sim-cfn-literal.js +12 -3
- package/dist/service/cloudformation/template/node/sim-cfn-literal.js.map +1 -1
- package/dist/service/cloudformation/template/parse/fn/import-value/sim-cfn-fn-import-value-parser.d.ts +26 -0
- package/dist/service/cloudformation/template/parse/fn/import-value/sim-cfn-fn-import-value-parser.d.ts.map +1 -0
- package/dist/service/cloudformation/template/parse/fn/import-value/sim-cfn-fn-import-value-parser.js +31 -0
- package/dist/service/cloudformation/template/parse/fn/import-value/sim-cfn-fn-import-value-parser.js.map +1 -0
- package/dist/service/cloudformation/template/parse/fn/sim-cfn-function-parser.d.ts +4 -7
- package/dist/service/cloudformation/template/parse/fn/sim-cfn-function-parser.d.ts.map +1 -1
- package/dist/service/cloudformation/template/parse/fn/sim-cfn-function-parser.js +9 -41
- package/dist/service/cloudformation/template/parse/fn/sim-cfn-function-parser.js.map +1 -1
- package/dist/service/cloudformation/template/parse/fn/sim-cfn-function-parsers.d.ts +19 -0
- package/dist/service/cloudformation/template/parse/fn/sim-cfn-function-parsers.d.ts.map +1 -0
- package/dist/service/cloudformation/template/parse/fn/sim-cfn-function-parsers.js +31 -0
- package/dist/service/cloudformation/template/parse/fn/sim-cfn-function-parsers.js.map +1 -0
- package/dist/service/cloudformation/template/resolve/sim-cfn-resolve-context.d.ts +19 -0
- package/dist/service/cloudformation/template/resolve/sim-cfn-resolve-context.d.ts.map +1 -1
- package/dist/service/cloudformation/template/resolve/sim-cfn-resolve-context.js +18 -0
- package/dist/service/cloudformation/template/resolve/sim-cfn-resolve-context.js.map +1 -1
- package/dist/service/cloudformation/template/sim-cfn-template.d.ts +5 -0
- package/dist/service/cloudformation/template/sim-cfn-template.d.ts.map +1 -1
- package/dist/service/cloudformation/template/sim-cfn-template.js +7 -1
- package/dist/service/cloudformation/template/sim-cfn-template.js.map +1 -1
- package/dist/service/cloudformation/template/value/sim-cfn-template-value-resolver.d.ts +4 -0
- package/dist/service/cloudformation/template/value/sim-cfn-template-value-resolver.d.ts.map +1 -1
- package/dist/service/cloudformation/template/value/sim-cfn-template-value-resolver.js +2 -0
- package/dist/service/cloudformation/template/value/sim-cfn-template-value-resolver.js.map +1 -1
- package/dist/service/cloudformation/template/value/sim-cfn-value-path.d.ts +5 -0
- package/dist/service/cloudformation/template/value/sim-cfn-value-path.d.ts.map +1 -1
- package/dist/service/cloudformation/template/value/sim-cfn-value-path.js +22 -0
- package/dist/service/cloudformation/template/value/sim-cfn-value-path.js.map +1 -1
- package/dist/service/elbv2/serve/api/sim-elbv2-api.d.ts +15 -0
- package/dist/service/elbv2/serve/api/sim-elbv2-api.d.ts.map +1 -0
- package/dist/service/elbv2/serve/api/sim-elbv2-api.js +41 -0
- package/dist/service/elbv2/serve/api/sim-elbv2-api.js.map +1 -0
- package/dist/service/elbv2/serve/api/sim-elbv2-query-action.d.ts +14 -0
- package/dist/service/elbv2/serve/api/sim-elbv2-query-action.d.ts.map +1 -0
- package/dist/service/elbv2/serve/api/sim-elbv2-query-action.js +52 -0
- package/dist/service/elbv2/serve/api/sim-elbv2-query-action.js.map +1 -0
- package/dist/service/elbv2/serve/api/sim-elbv2-query-certificate.d.ts +14 -0
- package/dist/service/elbv2/serve/api/sim-elbv2-query-certificate.d.ts.map +1 -0
- package/dist/service/elbv2/serve/api/sim-elbv2-query-certificate.js +20 -0
- package/dist/service/elbv2/serve/api/sim-elbv2-query-certificate.js.map +1 -0
- package/dist/service/elbv2/serve/api/sim-elbv2-query-condition.d.ts +11 -0
- package/dist/service/elbv2/serve/api/sim-elbv2-query-condition.d.ts.map +1 -0
- package/dist/service/elbv2/serve/api/sim-elbv2-query-condition.js +39 -0
- package/dist/service/elbv2/serve/api/sim-elbv2-query-condition.js.map +1 -0
- package/dist/service/elbv2/serve/api/sim-elbv2-query-input.d.ts +47 -0
- package/dist/service/elbv2/serve/api/sim-elbv2-query-input.d.ts.map +1 -0
- package/dist/service/elbv2/serve/api/sim-elbv2-query-input.js +71 -0
- package/dist/service/elbv2/serve/api/sim-elbv2-query-input.js.map +1 -0
- package/dist/service/elbv2/serve/api/sim-elbv2-query-listener-certificate-operations.d.ts +11 -0
- package/dist/service/elbv2/serve/api/sim-elbv2-query-listener-certificate-operations.d.ts.map +1 -0
- package/dist/service/elbv2/serve/api/sim-elbv2-query-listener-certificate-operations.js +46 -0
- package/dist/service/elbv2/serve/api/sim-elbv2-query-listener-certificate-operations.js.map +1 -0
- package/dist/service/elbv2/serve/api/sim-elbv2-query-listener-operations.d.ts +6 -0
- package/dist/service/elbv2/serve/api/sim-elbv2-query-listener-operations.d.ts.map +1 -0
- package/dist/service/elbv2/serve/api/sim-elbv2-query-listener-operations.js +77 -0
- package/dist/service/elbv2/serve/api/sim-elbv2-query-listener-operations.js.map +1 -0
- package/dist/service/elbv2/serve/api/sim-elbv2-query-load-balancer-operations.d.ts +6 -0
- package/dist/service/elbv2/serve/api/sim-elbv2-query-load-balancer-operations.d.ts.map +1 -0
- package/dist/service/elbv2/serve/api/sim-elbv2-query-load-balancer-operations.js +67 -0
- package/dist/service/elbv2/serve/api/sim-elbv2-query-load-balancer-operations.js.map +1 -0
- package/dist/service/elbv2/serve/api/sim-elbv2-query-result.d.ts +15 -0
- package/dist/service/elbv2/serve/api/sim-elbv2-query-result.d.ts.map +1 -0
- package/dist/service/elbv2/serve/api/sim-elbv2-query-result.js +25 -0
- package/dist/service/elbv2/serve/api/sim-elbv2-query-result.js.map +1 -0
- package/dist/service/elbv2/serve/api/sim-elbv2-query-rule-operations.d.ts +6 -0
- package/dist/service/elbv2/serve/api/sim-elbv2-query-rule-operations.d.ts.map +1 -0
- package/dist/service/elbv2/serve/api/sim-elbv2-query-rule-operations.js +74 -0
- package/dist/service/elbv2/serve/api/sim-elbv2-query-rule-operations.js.map +1 -0
- package/dist/service/elbv2/serve/api/sim-elbv2-query-target-group-operations.d.ts +6 -0
- package/dist/service/elbv2/serve/api/sim-elbv2-query-target-group-operations.d.ts.map +1 -0
- package/dist/service/elbv2/serve/api/sim-elbv2-query-target-group-operations.js +114 -0
- package/dist/service/elbv2/serve/api/sim-elbv2-query-target-group-operations.js.map +1 -0
- package/dist/service/elbv2/serve/api/sim-elbv2-query-target-operations.d.ts +6 -0
- package/dist/service/elbv2/serve/api/sim-elbv2-query-target-operations.d.ts.map +1 -0
- package/dist/service/elbv2/serve/api/sim-elbv2-query-target-operations.js +64 -0
- package/dist/service/elbv2/serve/api/sim-elbv2-query-target-operations.js.map +1 -0
- package/dist/service/iam/serve/sim-iam-api.d.ts +18 -0
- package/dist/service/iam/serve/sim-iam-api.d.ts.map +1 -0
- package/dist/service/iam/serve/sim-iam-api.js +38 -0
- package/dist/service/iam/serve/sim-iam-api.js.map +1 -0
- package/dist/service/iam/serve/sim-iam-query-entity.d.ts +12 -0
- package/dist/service/iam/serve/sim-iam-query-entity.d.ts.map +1 -0
- package/dist/service/iam/serve/sim-iam-query-entity.js +22 -0
- package/dist/service/iam/serve/sim-iam-query-entity.js.map +1 -0
- package/dist/service/iam/serve/sim-iam-query-listing.d.ts +18 -0
- package/dist/service/iam/serve/sim-iam-query-listing.d.ts.map +1 -0
- package/dist/service/iam/serve/sim-iam-query-listing.js +25 -0
- package/dist/service/iam/serve/sim-iam-query-listing.js.map +1 -0
- package/dist/service/iam/serve/sim-iam-query-policy-operations.d.ts +6 -0
- package/dist/service/iam/serve/sim-iam-query-policy-operations.d.ts.map +1 -0
- package/dist/service/iam/serve/sim-iam-query-policy-operations.js +70 -0
- package/dist/service/iam/serve/sim-iam-query-policy-operations.js.map +1 -0
- package/dist/service/iam/serve/sim-iam-query-role-operations.d.ts +10 -0
- package/dist/service/iam/serve/sim-iam-query-role-operations.d.ts.map +1 -0
- package/dist/service/iam/serve/sim-iam-query-role-operations.js +108 -0
- package/dist/service/iam/serve/sim-iam-query-role-operations.js.map +1 -0
- package/dist/service/iam/serve/sim-iam-query-user-operations.d.ts +11 -0
- package/dist/service/iam/serve/sim-iam-query-user-operations.d.ts.map +1 -0
- package/dist/service/iam/serve/sim-iam-query-user-operations.js +62 -0
- package/dist/service/iam/serve/sim-iam-query-user-operations.js.map +1 -0
- package/dist/service/lambda/serve/api/sim-lambda-api-event-source-routes.d.ts +9 -0
- package/dist/service/lambda/serve/api/sim-lambda-api-event-source-routes.d.ts.map +1 -0
- package/dist/service/lambda/serve/api/sim-lambda-api-event-source-routes.js +59 -0
- package/dist/service/lambda/serve/api/sim-lambda-api-event-source-routes.js.map +1 -0
- package/dist/service/lambda/serve/api/sim-lambda-api-function-routes.d.ts +6 -0
- package/dist/service/lambda/serve/api/sim-lambda-api-function-routes.d.ts.map +1 -0
- package/dist/service/lambda/serve/api/sim-lambda-api-function-routes.js +91 -0
- package/dist/service/lambda/serve/api/sim-lambda-api-function-routes.js.map +1 -0
- package/dist/service/lambda/serve/api/sim-lambda-api-invoke-output.d.ts +12 -0
- package/dist/service/lambda/serve/api/sim-lambda-api-invoke-output.d.ts.map +1 -0
- package/dist/service/lambda/serve/api/sim-lambda-api-invoke-output.js +28 -0
- package/dist/service/lambda/serve/api/sim-lambda-api-invoke-output.js.map +1 -0
- package/dist/service/lambda/serve/api/sim-lambda-api-permission-routes.d.ts +10 -0
- package/dist/service/lambda/serve/api/sim-lambda-api-permission-routes.d.ts.map +1 -0
- package/dist/service/lambda/serve/api/sim-lambda-api-permission-routes.js +36 -0
- package/dist/service/lambda/serve/api/sim-lambda-api-permission-routes.js.map +1 -0
- package/dist/service/lambda/serve/api/sim-lambda-api-routes.d.ts +11 -0
- package/dist/service/lambda/serve/api/sim-lambda-api-routes.d.ts.map +1 -0
- package/dist/service/lambda/serve/api/sim-lambda-api-routes.js +19 -0
- package/dist/service/lambda/serve/api/sim-lambda-api-routes.js.map +1 -0
- package/dist/service/lambda/serve/api/sim-lambda-api-url-routes.d.ts +11 -0
- package/dist/service/lambda/serve/api/sim-lambda-api-url-routes.d.ts.map +1 -0
- package/dist/service/lambda/serve/api/sim-lambda-api-url-routes.js +50 -0
- package/dist/service/lambda/serve/api/sim-lambda-api-url-routes.js.map +1 -0
- package/dist/service/lambda/serve/api/sim-lambda-api.d.ts +16 -0
- package/dist/service/lambda/serve/api/sim-lambda-api.d.ts.map +1 -0
- package/dist/service/lambda/serve/api/sim-lambda-api.js +22 -0
- package/dist/service/lambda/serve/api/sim-lambda-api.js.map +1 -0
- package/dist/service/s3/bucket/notification/sim-s3-notification-event.d.ts +1 -1
- package/dist/service/s3/bucket/notification/sim-s3-notification-event.d.ts.map +1 -1
- package/dist/service/s3/bucket/notification/sim-s3-notification-event.js +9 -1
- package/dist/service/s3/bucket/notification/sim-s3-notification-event.js.map +1 -1
- package/dist/service/s3/bucket/notification/sim-s3-unsimulated-notification-events.d.ts.map +1 -1
- package/dist/service/s3/bucket/notification/sim-s3-unsimulated-notification-events.js +0 -1
- package/dist/service/s3/bucket/notification/sim-s3-unsimulated-notification-events.js.map +1 -1
- package/dist/service/s3/bucket/sim-s3-bucket.d.ts +10 -0
- package/dist/service/s3/bucket/sim-s3-bucket.d.ts.map +1 -1
- package/dist/service/s3/bucket/sim-s3-bucket.js +12 -0
- package/dist/service/s3/bucket/sim-s3-bucket.js.map +1 -1
- package/dist/service/s3/command/abort-multipart-upload/abort-multipart-upload.command.d.ts +23 -0
- package/dist/service/s3/command/abort-multipart-upload/abort-multipart-upload.command.d.ts.map +1 -0
- package/dist/service/s3/command/abort-multipart-upload/abort-multipart-upload.command.js +2 -0
- package/dist/service/s3/command/abort-multipart-upload/abort-multipart-upload.command.js.map +1 -0
- package/dist/service/s3/command/abort-multipart-upload/abort-multipart-upload.handler.d.ts +23 -0
- package/dist/service/s3/command/abort-multipart-upload/abort-multipart-upload.handler.d.ts.map +1 -0
- package/dist/service/s3/command/abort-multipart-upload/abort-multipart-upload.handler.js +32 -0
- package/dist/service/s3/command/abort-multipart-upload/abort-multipart-upload.handler.js.map +1 -0
- package/dist/service/s3/command/complete-multipart-upload/complete-multipart-upload.command.d.ts +42 -0
- package/dist/service/s3/command/complete-multipart-upload/complete-multipart-upload.command.d.ts.map +1 -0
- package/dist/service/s3/command/complete-multipart-upload/complete-multipart-upload.command.js +2 -0
- package/dist/service/s3/command/complete-multipart-upload/complete-multipart-upload.command.js.map +1 -0
- package/dist/service/s3/command/complete-multipart-upload/complete-multipart-upload.handler.d.ts +28 -0
- package/dist/service/s3/command/complete-multipart-upload/complete-multipart-upload.handler.d.ts.map +1 -0
- package/dist/service/s3/command/complete-multipart-upload/complete-multipart-upload.handler.js +73 -0
- package/dist/service/s3/command/complete-multipart-upload/complete-multipart-upload.handler.js.map +1 -0
- package/dist/service/s3/command/create-multipart-upload/create-multipart-upload.command.d.ts +30 -0
- package/dist/service/s3/command/create-multipart-upload/create-multipart-upload.command.d.ts.map +1 -0
- package/dist/service/s3/command/create-multipart-upload/create-multipart-upload.command.js +2 -0
- package/dist/service/s3/command/create-multipart-upload/create-multipart-upload.command.js.map +1 -0
- package/dist/service/s3/command/create-multipart-upload/create-multipart-upload.handler.d.ts +21 -0
- package/dist/service/s3/command/create-multipart-upload/create-multipart-upload.handler.d.ts.map +1 -0
- package/dist/service/s3/command/create-multipart-upload/create-multipart-upload.handler.js +38 -0
- package/dist/service/s3/command/create-multipart-upload/create-multipart-upload.handler.js.map +1 -0
- package/dist/service/s3/command/list-multipart-uploads/list-multipart-uploads.command.d.ts +34 -0
- package/dist/service/s3/command/list-multipart-uploads/list-multipart-uploads.command.d.ts.map +1 -0
- package/dist/service/s3/command/list-multipart-uploads/list-multipart-uploads.command.js +2 -0
- package/dist/service/s3/command/list-multipart-uploads/list-multipart-uploads.command.js.map +1 -0
- package/dist/service/s3/command/list-multipart-uploads/list-multipart-uploads.handler.d.ts +23 -0
- package/dist/service/s3/command/list-multipart-uploads/list-multipart-uploads.handler.d.ts.map +1 -0
- package/dist/service/s3/command/list-multipart-uploads/list-multipart-uploads.handler.js +43 -0
- package/dist/service/s3/command/list-multipart-uploads/list-multipart-uploads.handler.js.map +1 -0
- package/dist/service/s3/command/list-parts/list-parts.command.d.ts +37 -0
- package/dist/service/s3/command/list-parts/list-parts.command.d.ts.map +1 -0
- package/dist/service/s3/command/list-parts/list-parts.command.js +2 -0
- package/dist/service/s3/command/list-parts/list-parts.command.js.map +1 -0
- package/dist/service/s3/command/list-parts/list-parts.handler.d.ts +22 -0
- package/dist/service/s3/command/list-parts/list-parts.handler.d.ts.map +1 -0
- package/dist/service/s3/command/list-parts/list-parts.handler.js +47 -0
- package/dist/service/s3/command/list-parts/list-parts.handler.js.map +1 -0
- package/dist/service/s3/command/multipart/sim-s3-multipart-access.d.ts +54 -0
- package/dist/service/s3/command/multipart/sim-s3-multipart-access.d.ts.map +1 -0
- package/dist/service/s3/command/multipart/sim-s3-multipart-access.js +60 -0
- package/dist/service/s3/command/multipart/sim-s3-multipart-access.js.map +1 -0
- package/dist/service/s3/command/multipart/sim-s3-multipart-authorizer.d.ts +36 -0
- package/dist/service/s3/command/multipart/sim-s3-multipart-authorizer.d.ts.map +1 -0
- package/dist/service/s3/command/multipart/sim-s3-multipart-authorizer.js +52 -0
- package/dist/service/s3/command/multipart/sim-s3-multipart-authorizer.js.map +1 -0
- package/dist/service/s3/command/multipart/sim-s3-multipart-commands.d.ts +35 -0
- package/dist/service/s3/command/multipart/sim-s3-multipart-commands.d.ts.map +1 -0
- package/dist/service/s3/command/multipart/sim-s3-multipart-commands.js +52 -0
- package/dist/service/s3/command/multipart/sim-s3-multipart-commands.js.map +1 -0
- package/dist/service/s3/command/put-object/put-object-builder.d.ts +0 -32
- package/dist/service/s3/command/put-object/put-object-builder.d.ts.map +1 -1
- package/dist/service/s3/command/put-object/put-object-builder.js +5 -61
- package/dist/service/s3/command/put-object/put-object-builder.js.map +1 -1
- package/dist/service/s3/command/put-object/put-object.command.d.ts +7 -17
- package/dist/service/s3/command/put-object/put-object.command.d.ts.map +1 -1
- 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 +6 -1
- package/dist/service/s3/command/put-object/put-object.handler.js.map +1 -1
- package/dist/service/s3/command/sim-s3-command.types.d.ts +6 -0
- package/dist/service/s3/command/sim-s3-command.types.d.ts.map +1 -1
- package/dist/service/s3/command/upload-part/upload-part.command.d.ts +32 -0
- package/dist/service/s3/command/upload-part/upload-part.command.d.ts.map +1 -0
- package/dist/service/s3/command/upload-part/upload-part.command.js +2 -0
- package/dist/service/s3/command/upload-part/upload-part.command.js.map +1 -0
- package/dist/service/s3/command/upload-part/upload-part.handler.d.ts +22 -0
- package/dist/service/s3/command/upload-part/upload-part.handler.d.ts.map +1 -0
- package/dist/service/s3/command/upload-part/upload-part.handler.js +34 -0
- package/dist/service/s3/command/upload-part/upload-part.handler.js.map +1 -0
- package/dist/service/s3/error/sim-s3.error.d.ts +34 -0
- package/dist/service/s3/error/sim-s3.error.d.ts.map +1 -1
- package/dist/service/s3/error/sim-s3.error.js +40 -0
- package/dist/service/s3/error/sim-s3.error.js.map +1 -1
- package/dist/service/s3/notification/event/sim-s3-object-event-builder.d.ts +10 -0
- package/dist/service/s3/notification/event/sim-s3-object-event-builder.d.ts.map +1 -1
- package/dist/service/s3/notification/event/sim-s3-object-event-builder.js +1 -1
- package/dist/service/s3/notification/event/sim-s3-object-event-builder.js.map +1 -1
- package/dist/service/s3/notification/sim-s3-object-notifier.d.ts +1 -1
- package/dist/service/s3/notification/sim-s3-object-notifier.js +2 -2
- package/dist/service/s3/notification/sim-s3-object-notifier.js.map +1 -1
- package/dist/service/s3/object/s3-object-etag.d.ts +20 -4
- package/dist/service/s3/object/s3-object-etag.d.ts.map +1 -1
- package/dist/service/s3/object/s3-object-etag.js +25 -4
- package/dist/service/s3/object/s3-object-etag.js.map +1 -1
- package/dist/service/s3/object/s3-object-summary.d.ts +9 -0
- package/dist/service/s3/object/s3-object-summary.d.ts.map +1 -1
- package/dist/service/s3/object/s3-object-summary.js +2 -2
- package/dist/service/s3/object/s3-object-summary.js.map +1 -1
- package/dist/service/s3/object/s3-object.d.ts +10 -0
- package/dist/service/s3/object/s3-object.d.ts.map +1 -1
- package/dist/service/s3/object/s3-object.js +7 -1
- package/dist/service/s3/object/s3-object.js.map +1 -1
- package/dist/service/s3/object/s3-write-body.d.ts +23 -0
- package/dist/service/s3/object/s3-write-body.d.ts.map +1 -0
- package/dist/service/s3/object/s3-write-body.js +26 -0
- package/dist/service/s3/object/s3-write-body.js.map +1 -0
- package/dist/service/s3/object/s3-write-metadata.d.ts +33 -0
- package/dist/service/s3/object/s3-write-metadata.d.ts.map +1 -0
- package/dist/service/s3/object/s3-write-metadata.js +35 -0
- package/dist/service/s3/object/s3-write-metadata.js.map +1 -0
- package/dist/service/s3/sdk/sim-s3-sdk-command-router.d.ts.map +1 -1
- package/dist/service/s3/sdk/sim-s3-sdk-command-router.js +24 -0
- package/dist/service/s3/sdk/sim-s3-sdk-command-router.js.map +1 -1
- package/dist/service/s3/serve/api/sim-s3-api-bucket-routes.d.ts.map +1 -1
- package/dist/service/s3/serve/api/sim-s3-api-bucket-routes.js +8 -0
- package/dist/service/s3/serve/api/sim-s3-api-bucket-routes.js.map +1 -1
- package/dist/service/s3/serve/api/sim-s3-api-input.d.ts +5 -0
- package/dist/service/s3/serve/api/sim-s3-api-input.d.ts.map +1 -1
- package/dist/service/s3/serve/api/sim-s3-api-input.js +7 -1
- package/dist/service/s3/serve/api/sim-s3-api-input.js.map +1 -1
- package/dist/service/s3/serve/api/sim-s3-api-multipart-input.d.ts +25 -0
- package/dist/service/s3/serve/api/sim-s3-api-multipart-input.d.ts.map +1 -0
- package/dist/service/s3/serve/api/sim-s3-api-multipart-input.js +48 -0
- package/dist/service/s3/serve/api/sim-s3-api-multipart-input.js.map +1 -0
- package/dist/service/s3/serve/api/sim-s3-api-multipart-listing.d.ts +36 -0
- package/dist/service/s3/serve/api/sim-s3-api-multipart-listing.d.ts.map +1 -0
- package/dist/service/s3/serve/api/sim-s3-api-multipart-listing.js +34 -0
- package/dist/service/s3/serve/api/sim-s3-api-multipart-listing.js.map +1 -0
- package/dist/service/s3/serve/api/sim-s3-api-multipart-output.d.ts +10 -0
- package/dist/service/s3/serve/api/sim-s3-api-multipart-output.d.ts.map +1 -0
- package/dist/service/s3/serve/api/sim-s3-api-multipart-output.js +62 -0
- package/dist/service/s3/serve/api/sim-s3-api-multipart-output.js.map +1 -0
- package/dist/service/s3/serve/api/sim-s3-api-object-output.d.ts +5 -0
- package/dist/service/s3/serve/api/sim-s3-api-object-output.d.ts.map +1 -0
- package/dist/service/s3/serve/api/sim-s3-api-object-output.js +31 -0
- package/dist/service/s3/serve/api/sim-s3-api-object-output.js.map +1 -0
- package/dist/service/s3/serve/api/sim-s3-api-object-routes.d.ts.map +1 -1
- package/dist/service/s3/serve/api/sim-s3-api-object-routes.js +37 -1
- package/dist/service/s3/serve/api/sim-s3-api-object-routes.js.map +1 -1
- package/dist/service/s3/serve/api/sim-s3-api-output.d.ts.map +1 -1
- package/dist/service/s3/serve/api/sim-s3-api-output.js +15 -36
- package/dist/service/s3/serve/api/sim-s3-api-output.js.map +1 -1
- package/dist/service/s3/serve/api/sim-s3-api-routes.d.ts.map +1 -1
- package/dist/service/s3/serve/api/sim-s3-api-routes.js +2 -1
- package/dist/service/s3/serve/api/sim-s3-api-routes.js.map +1 -1
- package/dist/service/s3/serve/api/sim-s3-api-xml-read.d.ts +7 -0
- package/dist/service/s3/serve/api/sim-s3-api-xml-read.d.ts.map +1 -1
- package/dist/service/s3/serve/api/sim-s3-api-xml-read.js +16 -1
- package/dist/service/s3/serve/api/sim-s3-api-xml-read.js.map +1 -1
- package/dist/service/s3/sim-s3-commands.d.ts +2 -0
- package/dist/service/s3/sim-s3-commands.d.ts.map +1 -1
- package/dist/service/s3/sim-s3-commands.js +3 -0
- package/dist/service/s3/sim-s3-commands.js.map +1 -1
- package/dist/service/s3/sim-s3-operations.d.ts +12 -0
- package/dist/service/s3/sim-s3-operations.d.ts.map +1 -1
- package/dist/service/s3/sim-s3-operations.js +24 -0
- package/dist/service/s3/sim-s3-operations.js.map +1 -1
- package/dist/service/s3/upload/sim-s3-completed-upload.d.ts +30 -0
- package/dist/service/s3/upload/sim-s3-completed-upload.d.ts.map +1 -0
- package/dist/service/s3/upload/sim-s3-completed-upload.js +69 -0
- package/dist/service/s3/upload/sim-s3-completed-upload.js.map +1 -0
- package/dist/service/s3/upload/sim-s3-multipart-upload.d.ts +66 -0
- package/dist/service/s3/upload/sim-s3-multipart-upload.d.ts.map +1 -0
- package/dist/service/s3/upload/sim-s3-multipart-upload.js +78 -0
- package/dist/service/s3/upload/sim-s3-multipart-upload.js.map +1 -0
- package/dist/service/s3/upload/sim-s3-multipart-uploads.d.ts +48 -0
- package/dist/service/s3/upload/sim-s3-multipart-uploads.d.ts.map +1 -0
- package/dist/service/s3/upload/sim-s3-multipart-uploads.js +62 -0
- package/dist/service/s3/upload/sim-s3-multipart-uploads.js.map +1 -0
- package/dist/service/secretsmanager/cfn/dynamic/sim-cfn-secrets-manager-dynamic-reference-resolver.d.ts +51 -0
- package/dist/service/secretsmanager/cfn/dynamic/sim-cfn-secrets-manager-dynamic-reference-resolver.d.ts.map +1 -0
- package/dist/service/secretsmanager/cfn/dynamic/sim-cfn-secrets-manager-dynamic-reference-resolver.js +89 -0
- package/dist/service/secretsmanager/cfn/dynamic/sim-cfn-secrets-manager-dynamic-reference-resolver.js.map +1 -0
- package/dist/service/secretsmanager/cfn/dynamic/sim-cfn-secrets-manager-json-key.d.ts +9 -0
- package/dist/service/secretsmanager/cfn/dynamic/sim-cfn-secrets-manager-json-key.d.ts.map +1 -0
- package/dist/service/secretsmanager/cfn/dynamic/sim-cfn-secrets-manager-json-key.js +40 -0
- package/dist/service/secretsmanager/cfn/dynamic/sim-cfn-secrets-manager-json-key.js.map +1 -0
- package/dist/service/secretsmanager/cfn/dynamic/sim-cfn-secrets-manager-reference-body.d.ts +40 -0
- package/dist/service/secretsmanager/cfn/dynamic/sim-cfn-secrets-manager-reference-body.d.ts.map +1 -0
- package/dist/service/secretsmanager/cfn/dynamic/sim-cfn-secrets-manager-reference-body.js +90 -0
- package/dist/service/secretsmanager/cfn/dynamic/sim-cfn-secrets-manager-reference-body.js.map +1 -0
- package/dist/service/sns/serve/sim-sns-api.d.ts +15 -0
- package/dist/service/sns/serve/sim-sns-api.d.ts.map +1 -0
- package/dist/service/sns/serve/sim-sns-api.js +37 -0
- package/dist/service/sns/serve/sim-sns-api.js.map +1 -0
- package/dist/service/sns/serve/sim-sns-query-publish-operations.d.ts +6 -0
- package/dist/service/sns/serve/sim-sns-query-publish-operations.d.ts.map +1 -0
- package/dist/service/sns/serve/sim-sns-query-publish-operations.js +36 -0
- package/dist/service/sns/serve/sim-sns-query-publish-operations.js.map +1 -0
- package/dist/service/sns/serve/sim-sns-query-published-message.d.ts +10 -0
- package/dist/service/sns/serve/sim-sns-query-published-message.d.ts.map +1 -0
- package/dist/service/sns/serve/sim-sns-query-published-message.js +39 -0
- package/dist/service/sns/serve/sim-sns-query-published-message.js.map +1 -0
- package/dist/service/sns/serve/sim-sns-query-sms-operations.d.ts +9 -0
- package/dist/service/sns/serve/sim-sns-query-sms-operations.d.ts.map +1 -0
- package/dist/service/sns/serve/sim-sns-query-sms-operations.js +40 -0
- package/dist/service/sns/serve/sim-sns-query-sms-operations.js.map +1 -0
- package/dist/service/sns/serve/sim-sns-query-subscription-operations.d.ts +6 -0
- package/dist/service/sns/serve/sim-sns-query-subscription-operations.d.ts.map +1 -0
- package/dist/service/sns/serve/sim-sns-query-subscription-operations.js +83 -0
- package/dist/service/sns/serve/sim-sns-query-subscription-operations.js.map +1 -0
- package/dist/service/sns/serve/sim-sns-query-topic-operations.d.ts +6 -0
- package/dist/service/sns/serve/sim-sns-query-topic-operations.d.ts.map +1 -0
- package/dist/service/sns/serve/sim-sns-query-topic-operations.js +62 -0
- package/dist/service/sns/serve/sim-sns-query-topic-operations.js.map +1 -0
- package/dist/service/ssm/cfn/dynamic/sim-cfn-ssm-dynamic-reference-resolver.d.ts +39 -0
- package/dist/service/ssm/cfn/dynamic/sim-cfn-ssm-dynamic-reference-resolver.d.ts.map +1 -0
- package/dist/service/ssm/cfn/dynamic/sim-cfn-ssm-dynamic-reference-resolver.js +95 -0
- package/dist/service/ssm/cfn/dynamic/sim-cfn-ssm-dynamic-reference-resolver.js.map +1 -0
- package/dist/service/ssm/cfn/parameter/sim-cfn-ssm-parameter-value-reader.d.ts +36 -0
- package/dist/service/ssm/cfn/parameter/sim-cfn-ssm-parameter-value-reader.d.ts.map +1 -0
- package/dist/service/ssm/cfn/parameter/sim-cfn-ssm-parameter-value-reader.js +48 -0
- package/dist/service/ssm/cfn/parameter/sim-cfn-ssm-parameter-value-reader.js.map +1 -0
- package/dist/service/ssm/sim-ssm.d.ts +10 -0
- package/dist/service/ssm/sim-ssm.d.ts.map +1 -1
- package/dist/service/ssm/sim-ssm.js +14 -0
- package/dist/service/ssm/sim-ssm.js.map +1 -1
- package/dist/service/sts/serve/sim-sts-api.d.ts +7 -19
- package/dist/service/sts/serve/sim-sts-api.d.ts.map +1 -1
- package/dist/service/sts/serve/sim-sts-api.js +44 -48
- package/dist/service/sts/serve/sim-sts-api.js.map +1 -1
- package/dist/util/xml/xml-document.d.ts +4 -0
- package/dist/util/xml/xml-document.d.ts.map +1 -1
- package/dist/util/xml/xml-document.js +11 -0
- package/dist/util/xml/xml-document.js.map +1 -1
- package/package.json +1 -1
- package/dist/service/sts/serve/sim-sts-query-request.d.ts +0 -19
- package/dist/service/sts/serve/sim-sts-query-request.d.ts.map +0 -1
- package/dist/service/sts/serve/sim-sts-query-request.js +0 -27
- package/dist/service/sts/serve/sim-sts-query-request.js.map +0 -1
- package/dist/service/sts/serve/sim-sts-query-response.d.ts +0 -15
- package/dist/service/sts/serve/sim-sts-query-response.d.ts.map +0 -1
- package/dist/service/sts/serve/sim-sts-query-response.js +0 -42
- package/dist/service/sts/serve/sim-sts-query-response.js.map +0 -1
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
import { randomBytes } from "node:crypto";
|
|
2
|
+
/**
|
|
3
|
+
* What stands in a resolved string for a reference still being read.
|
|
4
|
+
*
|
|
5
|
+
* Property resolution is synchronous, and a service such as Secrets Manager
|
|
6
|
+
* cannot answer a reference without being waited on. The substitution
|
|
7
|
+
* therefore happens in two steps. A marker goes into the string while the
|
|
8
|
+
* template resolves, and the value replaces it once the service has answered.
|
|
9
|
+
*
|
|
10
|
+
* The marker is wrapped in a private use character (one nothing in a
|
|
11
|
+
* CloudFormation template holds) and carries random bytes of its own. A
|
|
12
|
+
* property holding text a template author wrote is therefore left alone, even
|
|
13
|
+
* where that text was written to look like a marker. While it is in flight the
|
|
14
|
+
* marker is opaque text, which is what an intrinsic function reading the
|
|
15
|
+
* string around it sees. An `Fn::Split` over a value the service has yet to
|
|
16
|
+
* answer with splits the marker.
|
|
17
|
+
*/
|
|
18
|
+
const placeholderPattern = /\u{E000}dynamic-reference-[\da-f]+-\d+\u{E000}/gu;
|
|
19
|
+
/** How many random bytes each resolution's markers are marked with. */
|
|
20
|
+
const markingLength = 8;
|
|
21
|
+
/**
|
|
22
|
+
* What one resolution's markers are marked with, so that no other resolution
|
|
23
|
+
* and nothing a template wrote produces the same marker.
|
|
24
|
+
*/
|
|
25
|
+
export function simCfnDynamicReferenceMarking() {
|
|
26
|
+
return randomBytes(markingLength).toString("hex");
|
|
27
|
+
}
|
|
28
|
+
/**
|
|
29
|
+
* The marker standing in for the reference at this position in a resolution.
|
|
30
|
+
*/
|
|
31
|
+
export function simCfnDynamicReferencePlaceholder(marking, position) {
|
|
32
|
+
return `\u{E000}dynamic-reference-${marking}-${String(position)}\u{E000}`;
|
|
33
|
+
}
|
|
34
|
+
/**
|
|
35
|
+
* Replace every marker in a resolved template object with the value the
|
|
36
|
+
* service answered with.
|
|
37
|
+
*
|
|
38
|
+
* A marker sits inside a string rather than being one, since a reference can
|
|
39
|
+
* be written into the middle of a longer value, so each string is rewritten
|
|
40
|
+
* rather than swapped. The rewrite goes through a function so that a value
|
|
41
|
+
* holding `$&` or `$1` arrives as it was written.
|
|
42
|
+
*/
|
|
43
|
+
export function fillSimCfnDynamicReferencePlaceholders(properties, values) {
|
|
44
|
+
return filledRecord(properties, values);
|
|
45
|
+
}
|
|
46
|
+
function filled(value, values) {
|
|
47
|
+
if (typeof value === "string") {
|
|
48
|
+
return value.replaceAll(placeholderPattern, (marker) => values.get(marker) ?? marker);
|
|
49
|
+
}
|
|
50
|
+
if (Array.isArray(value)) {
|
|
51
|
+
return value.map((entry) => filled(entry, values));
|
|
52
|
+
}
|
|
53
|
+
if (value !== null && typeof value === "object") {
|
|
54
|
+
return filledRecord(value, values);
|
|
55
|
+
}
|
|
56
|
+
return value;
|
|
57
|
+
}
|
|
58
|
+
function filledRecord(record, values) {
|
|
59
|
+
return Object.fromEntries(Object.entries(record).map(([key, value]) => [key, filled(value, values)]));
|
|
60
|
+
}
|
|
61
|
+
//# sourceMappingURL=sim-cfn-dynamic-reference-placeholder.js.map
|
package/dist/service/cloudformation/template/dynamic/sim-cfn-dynamic-reference-placeholder.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sim-cfn-dynamic-reference-placeholder.js","sourceRoot":"","sources":["../../../../../src/service/cloudformation/template/dynamic/sim-cfn-dynamic-reference-placeholder.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AAM1C;;;;;;;;;;;;;;;GAeG;AACH,MAAM,kBAAkB,GAAG,kDAAkD,CAAC;AAE9E,uEAAuE;AACvE,MAAM,aAAa,GAAG,CAAC,CAAC;AAExB;;;GAGG;AACH,MAAM,UAAU,6BAA6B;IAC3C,OAAO,WAAW,CAAC,aAAa,CAAC,CAAC,QAAQ,CAAC,KAAK,CAAC,CAAC;AACpD,CAAC;AAED;;GAEG;AACH,MAAM,UAAU,iCAAiC,CAC/C,OAAe,EACf,QAAgB;IAEhB,OAAO,6BAA6B,OAAO,IAAI,MAAM,CAAC,QAAQ,CAAC,UAAU,CAAC;AAC5E,CAAC;AAED;;;;;;;;GAQG;AACH,MAAM,UAAU,sCAAsC,CACpD,UAAqC,EACrC,MAAmC;IAEnC,OAAO,YAAY,CAAC,UAAU,EAAE,MAAM,CAAC,CAAC;AAC1C,CAAC;AAED,SAAS,MAAM,CACb,KAA0B,EAC1B,MAAmC;IAEnC,IAAI,OAAO,KAAK,KAAK,QAAQ,EAAE,CAAC;QAC9B,OAAO,KAAK,CAAC,UAAU,CACrB,kBAAkB,EAClB,CAAC,MAAM,EAAE,EAAE,CAAC,MAAM,CAAC,GAAG,CAAC,MAAM,CAAC,IAAI,MAAM,CACzC,CAAC;IACJ,CAAC;IAED,IAAI,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,EAAE,CAAC;QACzB,OAAO,KAAK,CAAC,GAAG,CAAC,CAAC,KAAK,EAAE,EAAE,CAAC,MAAM,CAAC,KAAK,EAAE,MAAM,CAAC,CAAC,CAAC;IACrD,CAAC;IAED,IAAI,KAAK,KAAK,IAAI,IAAI,OAAO,KAAK,KAAK,QAAQ,EAAE,CAAC;QAChD,OAAO,YAAY,CAAC,KAAK,EAAE,MAAM,CAAC,CAAC;IACrC,CAAC;IAED,OAAO,KAAK,CAAC;AACf,CAAC;AAED,SAAS,YAAY,CACnB,MAAiC,EACjC,MAAmC;IAEnC,OAAO,MAAM,CAAC,WAAW,CACvB,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,GAAG,EAAE,KAAK,CAAC,EAAE,EAAE,CAAC,CAAC,GAAG,EAAE,MAAM,CAAC,KAAK,EAAE,MAAM,CAAC,CAAC,CAAC,CAC3E,CAAC;AACJ,CAAC"}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import type { SimAws } from "../../../aws/sim-aws.js";
|
|
2
|
+
import type { SimAwsAccountRegionContainer } from "../../../aws/sim-aws-account-region-scope.js";
|
|
3
|
+
import type { SimCfnDynamicReferenceResolver } from "./sim-cfn-dynamic-reference.type.js";
|
|
4
|
+
/**
|
|
5
|
+
* The simulation a dynamic reference resolver is built against.
|
|
6
|
+
*
|
|
7
|
+
* A reference reads the Stack's own Account and Region, which is what
|
|
8
|
+
* `scopedAws` is. The whole simulation comes with it because a reference can
|
|
9
|
+
* name another Account. A `secretsmanager` reference carrying a secret ARN
|
|
10
|
+
* reads the Account that ARN names, as real CloudFormation does.
|
|
11
|
+
*/
|
|
12
|
+
interface SimCfnDynamicReferenceSimulation {
|
|
13
|
+
readonly simAws: SimAws;
|
|
14
|
+
readonly scopedAws: SimAwsAccountRegionContainer;
|
|
15
|
+
}
|
|
16
|
+
/**
|
|
17
|
+
* How one simulated service hands over its dynamic reference resolver, given
|
|
18
|
+
* the simulation the Stack is deploying into.
|
|
19
|
+
*/
|
|
20
|
+
type SimCfnScopedDynamicReferenceResolver = (simulation: SimCfnDynamicReferenceSimulation) => SimCfnDynamicReferenceResolver;
|
|
21
|
+
/**
|
|
22
|
+
* The simulated service behind each `{{resolve:<service>:...}}` reference.
|
|
23
|
+
*
|
|
24
|
+
* The same shape as the Resource factory registry, for the same reason. A
|
|
25
|
+
* service name with no entry here leaves its references in the template as
|
|
26
|
+
* written, so a template using one this simulation has yet to implement still
|
|
27
|
+
* deploys everything else.
|
|
28
|
+
*/
|
|
29
|
+
export declare const simCfnDynamicReferenceResolvers: ReadonlyMap<string, SimCfnScopedDynamicReferenceResolver>;
|
|
30
|
+
export {};
|
|
31
|
+
//# sourceMappingURL=sim-cfn-dynamic-reference-resolvers.d.ts.map
|
package/dist/service/cloudformation/template/dynamic/sim-cfn-dynamic-reference-resolvers.d.ts.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sim-cfn-dynamic-reference-resolvers.d.ts","sourceRoot":"","sources":["../../../../../src/service/cloudformation/template/dynamic/sim-cfn-dynamic-reference-resolvers.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,yBAAyB,CAAC;AACtD,OAAO,KAAK,EAAE,4BAA4B,EAAE,MAAM,8CAA8C,CAAC;AAEjG,OAAO,KAAK,EAAE,8BAA8B,EAAE,MAAM,qCAAqC,CAAC;AAE1F;;;;;;;GAOG;AACH,UAAU,gCAAgC;IACxC,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAC;IACxB,QAAQ,CAAC,SAAS,EAAE,4BAA4B,CAAC;CAClD;AAED;;;GAGG;AACH,KAAK,oCAAoC,GAAG,CAC1C,UAAU,EAAE,gCAAgC,KACzC,8BAA8B,CAAC;AAEpC;;;;;;;GAOG;AACH,eAAO,MAAM,+BAA+B,EAAE,WAAW,CACvD,MAAM,EACN,oCAAoC,CAkBpC,CAAC"}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { SimCfnSecretsManagerDynamicReferenceResolver } from "../../../secretsmanager/cfn/dynamic/sim-cfn-secrets-manager-dynamic-reference-resolver.js";
|
|
2
|
+
/**
|
|
3
|
+
* The simulated service behind each `{{resolve:<service>:...}}` reference.
|
|
4
|
+
*
|
|
5
|
+
* The same shape as the Resource factory registry, for the same reason. A
|
|
6
|
+
* service name with no entry here leaves its references in the template as
|
|
7
|
+
* written, so a template using one this simulation has yet to implement still
|
|
8
|
+
* deploys everything else.
|
|
9
|
+
*/
|
|
10
|
+
export const simCfnDynamicReferenceResolvers = new Map([
|
|
11
|
+
[
|
|
12
|
+
"ssm",
|
|
13
|
+
({ scopedAws }) => scopedAws.ssm().cfnDynamicReferenceResolver(),
|
|
14
|
+
],
|
|
15
|
+
[
|
|
16
|
+
"secretsmanager",
|
|
17
|
+
({ simAws, scopedAws }) => new SimCfnSecretsManagerDynamicReferenceResolver({
|
|
18
|
+
secretsManager: scopedAws.secretsManager(),
|
|
19
|
+
secretsManagerIn: (scope) => simAws
|
|
20
|
+
.accountRegionScope(scope.accountId, scope.regionName)
|
|
21
|
+
.secretsManager(),
|
|
22
|
+
}),
|
|
23
|
+
],
|
|
24
|
+
]);
|
|
25
|
+
//# sourceMappingURL=sim-cfn-dynamic-reference-resolvers.js.map
|
package/dist/service/cloudformation/template/dynamic/sim-cfn-dynamic-reference-resolvers.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sim-cfn-dynamic-reference-resolvers.js","sourceRoot":"","sources":["../../../../../src/service/cloudformation/template/dynamic/sim-cfn-dynamic-reference-resolvers.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,4CAA4C,EAAE,MAAM,2FAA2F,CAAC;AAwBzJ;;;;;;;GAOG;AACH,MAAM,CAAC,MAAM,+BAA+B,GAGxC,IAAI,GAAG,CAAC;IACV;QACE,KAAK;QACL,CAAC,EAAE,SAAS,EAAE,EAAkC,EAAE,CAChD,SAAS,CAAC,GAAG,EAAE,CAAC,2BAA2B,EAAE;KAChD;IACD;QACE,gBAAgB;QAChB,CAAC,EAAE,MAAM,EAAE,SAAS,EAAE,EAAkC,EAAE,CACxD,IAAI,4CAA4C,CAAC;YAC/C,cAAc,EAAE,SAAS,CAAC,cAAc,EAAE;YAC1C,gBAAgB,EAAE,CAAC,KAAK,EAAE,EAAE,CAC1B,MAAM;iBACH,kBAAkB,CAAC,KAAK,CAAC,SAAS,EAAE,KAAK,CAAC,UAAU,CAAC;iBACrD,cAAc,EAAE;SACtB,CAAC;KACL;CACF,CAAC,CAAC"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import type { SimCfnDynamicReference } from "./sim-cfn-dynamic-reference.type.js";
|
|
2
|
+
/**
|
|
3
|
+
* What a caller answers each reference with.
|
|
4
|
+
*
|
|
5
|
+
* Answering `undefined` leaves the reference in the string as it was written,
|
|
6
|
+
* which is what happens for a service this simulation has no resolver for.
|
|
7
|
+
*/
|
|
8
|
+
type SimCfnDynamicReferenceSubstitution = (reference: SimCfnDynamicReference) => string | undefined;
|
|
9
|
+
/**
|
|
10
|
+
* Whether a string holds anything worth scanning.
|
|
11
|
+
*/
|
|
12
|
+
export declare function hasSimCfnDynamicReference(text: string): boolean;
|
|
13
|
+
/**
|
|
14
|
+
* Replace every dynamic reference in a string with what the caller answers.
|
|
15
|
+
*
|
|
16
|
+
* The text around each reference is untouched, so a value written as
|
|
17
|
+
* `prefix-{{resolve:ssm:name}}-suffix` keeps its prefix and suffix.
|
|
18
|
+
*/
|
|
19
|
+
export declare function substituteSimCfnDynamicReferences(text: string, substitute: SimCfnDynamicReferenceSubstitution): string;
|
|
20
|
+
export {};
|
|
21
|
+
//# sourceMappingURL=sim-cfn-dynamic-reference-scan.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sim-cfn-dynamic-reference-scan.d.ts","sourceRoot":"","sources":["../../../../../src/service/cloudformation/template/dynamic/sim-cfn-dynamic-reference-scan.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,qCAAqC,CAAC;AAiBlF;;;;;GAKG;AACH,KAAK,kCAAkC,GAAG,CACxC,SAAS,EAAE,sBAAsB,KAC9B,MAAM,GAAG,SAAS,CAAC;AAExB;;GAEG;AACH,wBAAgB,yBAAyB,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAE/D;AAED;;;;;GAKG;AACH,wBAAgB,iCAAiC,CAC/C,IAAI,EAAE,MAAM,EACZ,UAAU,EAAE,kCAAkC,GAC7C,MAAM,CAiBR"}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The opening of every dynamic reference, used to skip strings holding none.
|
|
3
|
+
*/
|
|
4
|
+
const dynamicReferenceOpening = "{{resolve:";
|
|
5
|
+
/**
|
|
6
|
+
* One dynamic reference inside a larger string.
|
|
7
|
+
*
|
|
8
|
+
* The body runs to the first `}`, which is what stops a reference from eating
|
|
9
|
+
* the rest of the value it sits in. No segment of any reference CloudFormation
|
|
10
|
+
* documents may hold a brace, and a secret ARN's colons are left for the
|
|
11
|
+
* service reading the body to split.
|
|
12
|
+
*/
|
|
13
|
+
const dynamicReferencePattern = /\{\{resolve:([A-Za-z][\w-]*):([^{}]*)\}\}/g;
|
|
14
|
+
/**
|
|
15
|
+
* Whether a string holds anything worth scanning.
|
|
16
|
+
*/
|
|
17
|
+
export function hasSimCfnDynamicReference(text) {
|
|
18
|
+
return text.includes(dynamicReferenceOpening);
|
|
19
|
+
}
|
|
20
|
+
/**
|
|
21
|
+
* Replace every dynamic reference in a string with what the caller answers.
|
|
22
|
+
*
|
|
23
|
+
* The text around each reference is untouched, so a value written as
|
|
24
|
+
* `prefix-{{resolve:ssm:name}}-suffix` keeps its prefix and suffix.
|
|
25
|
+
*/
|
|
26
|
+
export function substituteSimCfnDynamicReferences(text, substitute) {
|
|
27
|
+
if (!hasSimCfnDynamicReference(text)) {
|
|
28
|
+
return text;
|
|
29
|
+
}
|
|
30
|
+
return text.replaceAll(dynamicReferencePattern, (matched, service, body) => {
|
|
31
|
+
const reference = {
|
|
32
|
+
text: matched,
|
|
33
|
+
service,
|
|
34
|
+
body,
|
|
35
|
+
};
|
|
36
|
+
return substitute(reference) ?? matched;
|
|
37
|
+
});
|
|
38
|
+
}
|
|
39
|
+
//# sourceMappingURL=sim-cfn-dynamic-reference-scan.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sim-cfn-dynamic-reference-scan.js","sourceRoot":"","sources":["../../../../../src/service/cloudformation/template/dynamic/sim-cfn-dynamic-reference-scan.ts"],"names":[],"mappings":"AAEA;;GAEG;AACH,MAAM,uBAAuB,GAAG,YAAY,CAAC;AAE7C;;;;;;;GAOG;AACH,MAAM,uBAAuB,GAAG,4CAA4C,CAAC;AAY7E;;GAEG;AACH,MAAM,UAAU,yBAAyB,CAAC,IAAY;IACpD,OAAO,IAAI,CAAC,QAAQ,CAAC,uBAAuB,CAAC,CAAC;AAChD,CAAC;AAED;;;;;GAKG;AACH,MAAM,UAAU,iCAAiC,CAC/C,IAAY,EACZ,UAA8C;IAE9C,IAAI,CAAC,yBAAyB,CAAC,IAAI,CAAC,EAAE,CAAC;QACrC,OAAO,IAAI,CAAC;IACd,CAAC;IAED,OAAO,IAAI,CAAC,UAAU,CACpB,uBAAuB,EACvB,CAAC,OAAO,EAAE,OAAe,EAAE,IAAY,EAAE,EAAE;QACzC,MAAM,SAAS,GAA2B;YACxC,IAAI,EAAE,OAAO;YACb,OAAO;YACP,IAAI;SACL,CAAC;QAEF,OAAO,UAAU,CAAC,SAAS,CAAC,IAAI,OAAO,CAAC;IAC1C,CAAC,CACF,CAAC;AACJ,CAAC"}
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* One `{{resolve:service:...}}` dynamic reference found inside a template
|
|
3
|
+
* string.
|
|
4
|
+
*
|
|
5
|
+
* A dynamic reference is read out of a resolved string rather than parsed as
|
|
6
|
+
* its own node, because CloudFormation lets one sit inside a longer value.
|
|
7
|
+
* Only the span holding the reference is replaced, and the text around it is
|
|
8
|
+
* left as it was written.
|
|
9
|
+
*/
|
|
10
|
+
export interface SimCfnDynamicReference {
|
|
11
|
+
/** The whole reference as written, e.g. `{{resolve:ssm:/db/host:2}}`. */
|
|
12
|
+
readonly text: string;
|
|
13
|
+
/** The service the reference names, e.g. `ssm`. */
|
|
14
|
+
readonly service: string;
|
|
15
|
+
/** Everything after the service name, e.g. `/db/host:2`. */
|
|
16
|
+
readonly body: string;
|
|
17
|
+
}
|
|
18
|
+
/**
|
|
19
|
+
* What one service answers a dynamic reference with.
|
|
20
|
+
*
|
|
21
|
+
* A reference the service cannot answer still resolves to a value. Simulated
|
|
22
|
+
* CloudFormation deploys what it can, and a template naming parameters a test
|
|
23
|
+
* never created is one of the things it can mostly deploy. The stand-in value
|
|
24
|
+
* carries a reason, which the Resource records so a test asserting on that
|
|
25
|
+
* value can find out it was never read.
|
|
26
|
+
*/
|
|
27
|
+
export interface SimCfnDynamicReferenceResolution {
|
|
28
|
+
/** The value the reference is replaced with. */
|
|
29
|
+
readonly value: string;
|
|
30
|
+
/** Why the value is a stand-in, left out when the reference resolved. */
|
|
31
|
+
readonly reason?: string | undefined;
|
|
32
|
+
}
|
|
33
|
+
/**
|
|
34
|
+
* How one simulated service answers the dynamic references naming it.
|
|
35
|
+
*
|
|
36
|
+
* A service that cannot answer without being waited on returns a promise, as
|
|
37
|
+
* Secrets Manager does (reading a secret decrypts it through simulated KMS).
|
|
38
|
+
* Property resolution stays synchronous either way. A promised answer is
|
|
39
|
+
* substituted once the Resource's properties have resolved around it, so the
|
|
40
|
+
* resolver is free to await whatever answering takes.
|
|
41
|
+
*/
|
|
42
|
+
export interface SimCfnDynamicReferenceResolver {
|
|
43
|
+
resolve(reference: SimCfnDynamicReference): SimCfnDynamicReferenceResolution | Promise<SimCfnDynamicReferenceResolution>;
|
|
44
|
+
}
|
|
45
|
+
//# sourceMappingURL=sim-cfn-dynamic-reference.type.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sim-cfn-dynamic-reference.type.d.ts","sourceRoot":"","sources":["../../../../../src/service/cloudformation/template/dynamic/sim-cfn-dynamic-reference.type.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AACH,MAAM,WAAW,sBAAsB;IACrC,yEAAyE;IACzE,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IAEtB,mDAAmD;IACnD,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAC;IAEzB,4DAA4D;IAC5D,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;CACvB;AAED;;;;;;;;GAQG;AACH,MAAM,WAAW,gCAAgC;IAC/C,gDAAgD;IAChD,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC;IAEvB,yEAAyE;IACzE,QAAQ,CAAC,MAAM,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;CACtC;AAED;;;;;;;;GAQG;AACH,MAAM,WAAW,8BAA8B;IAC7C,OAAO,CACL,SAAS,EAAE,sBAAsB,GAE/B,gCAAgC,GAChC,OAAO,CAAC,gCAAgC,CAAC,CAAC;CAC/C"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sim-cfn-dynamic-reference.type.js","sourceRoot":"","sources":["../../../../../src/service/cloudformation/template/dynamic/sim-cfn-dynamic-reference.type.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
import type { SimCfnPropertyIgnorer } from "../../resource/ignore/sim-cfn-ignored-property.type.js";
|
|
2
|
+
import type { SimCfnTemplateValueRecord } from "../value/sim-cfn-template-value.js";
|
|
3
|
+
import type { SimCfnDynamicReferenceResolver } from "./sim-cfn-dynamic-reference.type.js";
|
|
4
|
+
interface SimCfnDynamicReferencesProperties {
|
|
5
|
+
readonly resolvers: ReadonlyMap<string, SimCfnDynamicReferenceResolver>;
|
|
6
|
+
readonly propertyIgnorer?: SimCfnPropertyIgnorer | undefined;
|
|
7
|
+
}
|
|
8
|
+
/**
|
|
9
|
+
* The services a Stack's dynamic references are answered by.
|
|
10
|
+
*
|
|
11
|
+
* This sits on the resolve context so that a string node can substitute what
|
|
12
|
+
* it holds without knowing which simulated services exist. A service with no
|
|
13
|
+
* resolver here leaves its references in the template as written, which is
|
|
14
|
+
* what the ones this simulation has yet to implement do.
|
|
15
|
+
*
|
|
16
|
+
* One of these belongs to a single Resource's property resolution. That is
|
|
17
|
+
* what lets it hold the references still being read. `substitute` runs while
|
|
18
|
+
* the properties resolve, and `settle` finishes them afterwards.
|
|
19
|
+
*/
|
|
20
|
+
export declare class SimCfnDynamicReferences {
|
|
21
|
+
private readonly resolvers;
|
|
22
|
+
private readonly propertyIgnorer;
|
|
23
|
+
private readonly awaited;
|
|
24
|
+
constructor(properties: SimCfnDynamicReferencesProperties);
|
|
25
|
+
/**
|
|
26
|
+
* Replace every dynamic reference in a resolved string.
|
|
27
|
+
*
|
|
28
|
+
* A service answering at once is substituted here. One answering with a
|
|
29
|
+
* promise leaves a marker behind for `settle` to replace, so that resolution
|
|
30
|
+
* stays synchronous around a service that has to be waited on.
|
|
31
|
+
*/
|
|
32
|
+
substitute(text: string): string;
|
|
33
|
+
/**
|
|
34
|
+
* Finish the references a service had to be waited on to answer.
|
|
35
|
+
*
|
|
36
|
+
* The resolved properties are handed back with every marker replaced. They
|
|
37
|
+
* come back untouched where nothing was waited on, which is every Resource
|
|
38
|
+
* whose properties name only services answering at once.
|
|
39
|
+
*/
|
|
40
|
+
settle(properties: SimCfnTemplateValueRecord): Promise<SimCfnTemplateValueRecord>;
|
|
41
|
+
/**
|
|
42
|
+
* The value one reference resolved to.
|
|
43
|
+
*
|
|
44
|
+
* A reference answered with a stand-in value is recorded against the
|
|
45
|
+
* property it sat on, so the Resource reports it the same way it reports a
|
|
46
|
+
* property its service could not act on.
|
|
47
|
+
*/
|
|
48
|
+
private answer;
|
|
49
|
+
}
|
|
50
|
+
export {};
|
|
51
|
+
//# sourceMappingURL=sim-cfn-dynamic-references.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sim-cfn-dynamic-references.d.ts","sourceRoot":"","sources":["../../../../../src/service/cloudformation/template/dynamic/sim-cfn-dynamic-references.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,wDAAwD,CAAC;AACpG,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,oCAAoC,CAAC;AAKpF,OAAO,KAAK,EAEV,8BAA8B,EAC/B,MAAM,qCAAqC,CAAC;AAE7C,UAAU,iCAAiC;IACzC,QAAQ,CAAC,SAAS,EAAE,WAAW,CAAC,MAAM,EAAE,8BAA8B,CAAC,CAAC;IACxE,QAAQ,CAAC,eAAe,CAAC,EAAE,qBAAqB,GAAG,SAAS,CAAC;CAC9D;AAED;;;;;;;;;;;GAWG;AACH,qBAAa,uBAAuB;IAClC,OAAO,CAAC,QAAQ,CAAC,SAAS,CAGxB;IAEF,OAAO,CAAC,QAAQ,CAAC,eAAe,CAAoC;IAEpE,OAAO,CAAC,QAAQ,CAAC,OAAO,CAAwC;IAEhE,YAAY,UAAU,EAAE,iCAAiC,EAGxD;IAED;;;;;;OAMG;IACH,UAAU,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,CAgB/B;IAED;;;;;;OAMG;IACG,MAAM,CACV,UAAU,EAAE,yBAAyB,GACpC,OAAO,CAAC,yBAAyB,CAAC,CAepC;IAED;;;;;;OAMG;IACH,OAAO,CAAC,MAAM;CAUf"}
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
import { currentSimCfnValuePath } from "../value/sim-cfn-value-path.js";
|
|
2
|
+
import { SimCfnAwaitedDynamicReferences } from "./sim-cfn-awaited-dynamic-references.js";
|
|
3
|
+
import { fillSimCfnDynamicReferencePlaceholders } from "./sim-cfn-dynamic-reference-placeholder.js";
|
|
4
|
+
import { substituteSimCfnDynamicReferences } from "./sim-cfn-dynamic-reference-scan.js";
|
|
5
|
+
/**
|
|
6
|
+
* The services a Stack's dynamic references are answered by.
|
|
7
|
+
*
|
|
8
|
+
* This sits on the resolve context so that a string node can substitute what
|
|
9
|
+
* it holds without knowing which simulated services exist. A service with no
|
|
10
|
+
* resolver here leaves its references in the template as written, which is
|
|
11
|
+
* what the ones this simulation has yet to implement do.
|
|
12
|
+
*
|
|
13
|
+
* One of these belongs to a single Resource's property resolution. That is
|
|
14
|
+
* what lets it hold the references still being read. `substitute` runs while
|
|
15
|
+
* the properties resolve, and `settle` finishes them afterwards.
|
|
16
|
+
*/
|
|
17
|
+
export class SimCfnDynamicReferences {
|
|
18
|
+
resolvers;
|
|
19
|
+
propertyIgnorer;
|
|
20
|
+
awaited = new SimCfnAwaitedDynamicReferences();
|
|
21
|
+
constructor(properties) {
|
|
22
|
+
this.resolvers = properties.resolvers;
|
|
23
|
+
this.propertyIgnorer = properties.propertyIgnorer;
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
* Replace every dynamic reference in a resolved string.
|
|
27
|
+
*
|
|
28
|
+
* A service answering at once is substituted here. One answering with a
|
|
29
|
+
* promise leaves a marker behind for `settle` to replace, so that resolution
|
|
30
|
+
* stays synchronous around a service that has to be waited on.
|
|
31
|
+
*/
|
|
32
|
+
substitute(text) {
|
|
33
|
+
return substituteSimCfnDynamicReferences(text, (reference) => {
|
|
34
|
+
const resolver = this.resolvers.get(reference.service);
|
|
35
|
+
if (resolver === undefined) {
|
|
36
|
+
return;
|
|
37
|
+
}
|
|
38
|
+
const resolution = resolver.resolve(reference);
|
|
39
|
+
if (resolution instanceof Promise) {
|
|
40
|
+
return this.awaited.hold(resolution, currentSimCfnValuePath());
|
|
41
|
+
}
|
|
42
|
+
return this.answer(resolution, currentSimCfnValuePath());
|
|
43
|
+
});
|
|
44
|
+
}
|
|
45
|
+
/**
|
|
46
|
+
* Finish the references a service had to be waited on to answer.
|
|
47
|
+
*
|
|
48
|
+
* The resolved properties are handed back with every marker replaced. They
|
|
49
|
+
* come back untouched where nothing was waited on, which is every Resource
|
|
50
|
+
* whose properties name only services answering at once.
|
|
51
|
+
*/
|
|
52
|
+
async settle(properties) {
|
|
53
|
+
if (this.awaited.isEmpty) {
|
|
54
|
+
return properties;
|
|
55
|
+
}
|
|
56
|
+
const settled = await this.awaited.settled();
|
|
57
|
+
const values = new Map(settled.map((reference) => [
|
|
58
|
+
reference.placeholder,
|
|
59
|
+
this.answer(reference.resolution, reference.path),
|
|
60
|
+
]));
|
|
61
|
+
return fillSimCfnDynamicReferencePlaceholders(properties, values);
|
|
62
|
+
}
|
|
63
|
+
/**
|
|
64
|
+
* The value one reference resolved to.
|
|
65
|
+
*
|
|
66
|
+
* A reference answered with a stand-in value is recorded against the
|
|
67
|
+
* property it sat on, so the Resource reports it the same way it reports a
|
|
68
|
+
* property its service could not act on.
|
|
69
|
+
*/
|
|
70
|
+
answer(resolution, path) {
|
|
71
|
+
if (resolution.reason !== undefined) {
|
|
72
|
+
this.propertyIgnorer?.ignoreProperty(path, resolution.reason);
|
|
73
|
+
}
|
|
74
|
+
return resolution.value;
|
|
75
|
+
}
|
|
76
|
+
}
|
|
77
|
+
//# sourceMappingURL=sim-cfn-dynamic-references.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sim-cfn-dynamic-references.js","sourceRoot":"","sources":["../../../../../src/service/cloudformation/template/dynamic/sim-cfn-dynamic-references.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,sBAAsB,EAAE,MAAM,gCAAgC,CAAC;AACxE,OAAO,EAAE,8BAA8B,EAAE,MAAM,yCAAyC,CAAC;AACzF,OAAO,EAAE,sCAAsC,EAAE,MAAM,4CAA4C,CAAC;AACpG,OAAO,EAAE,iCAAiC,EAAE,MAAM,qCAAqC,CAAC;AAWxF;;;;;;;;;;;GAWG;AACH,MAAM,OAAO,uBAAuB;IACjB,SAAS,CAGxB;IAEe,eAAe,CAAoC;IAEnD,OAAO,GAAG,IAAI,8BAA8B,EAAE,CAAC;IAEhE,YAAY,UAA6C;QACvD,IAAI,CAAC,SAAS,GAAG,UAAU,CAAC,SAAS,CAAC;QACtC,IAAI,CAAC,eAAe,GAAG,UAAU,CAAC,eAAe,CAAC;IACpD,CAAC;IAED;;;;;;OAMG;IACH,UAAU,CAAC,IAAY;QACrB,OAAO,iCAAiC,CAAC,IAAI,EAAE,CAAC,SAAS,EAAE,EAAE;YAC3D,MAAM,QAAQ,GAAG,IAAI,CAAC,SAAS,CAAC,GAAG,CAAC,SAAS,CAAC,OAAO,CAAC,CAAC;YAEvD,IAAI,QAAQ,KAAK,SAAS,EAAE,CAAC;gBAC3B,OAAO;YACT,CAAC;YAED,MAAM,UAAU,GAAG,QAAQ,CAAC,OAAO,CAAC,SAAS,CAAC,CAAC;YAE/C,IAAI,UAAU,YAAY,OAAO,EAAE,CAAC;gBAClC,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,UAAU,EAAE,sBAAsB,EAAE,CAAC,CAAC;YACjE,CAAC;YAED,OAAO,IAAI,CAAC,MAAM,CAAC,UAAU,EAAE,sBAAsB,EAAE,CAAC,CAAC;QAC3D,CAAC,CAAC,CAAC;IACL,CAAC;IAED;;;;;;OAMG;IACH,KAAK,CAAC,MAAM,CACV,UAAqC;QAErC,IAAI,IAAI,CAAC,OAAO,CAAC,OAAO,EAAE,CAAC;YACzB,OAAO,UAAU,CAAC;QACpB,CAAC;QAED,MAAM,OAAO,GAAG,MAAM,IAAI,CAAC,OAAO,CAAC,OAAO,EAAE,CAAC;QAE7C,MAAM,MAAM,GAAG,IAAI,GAAG,CACpB,OAAO,CAAC,GAAG,CAAC,CAAC,SAAS,EAAE,EAAE,CAAC;YACzB,SAAS,CAAC,WAAW;YACrB,IAAI,CAAC,MAAM,CAAC,SAAS,CAAC,UAAU,EAAE,SAAS,CAAC,IAAI,CAAC;SAClD,CAAC,CACH,CAAC;QAEF,OAAO,sCAAsC,CAAC,UAAU,EAAE,MAAM,CAAC,CAAC;IACpE,CAAC;IAED;;;;;;OAMG;IACK,MAAM,CACZ,UAA4C,EAC5C,IAAY;QAEZ,IAAI,UAAU,CAAC,MAAM,KAAK,SAAS,EAAE,CAAC;YACpC,IAAI,CAAC,eAAe,EAAE,cAAc,CAAC,IAAI,EAAE,UAAU,CAAC,MAAM,CAAC,CAAC;QAChE,CAAC;QAED,OAAO,UAAU,CAAC,KAAK,CAAC;IAC1B,CAAC;CACF"}
|
package/dist/service/cloudformation/template/node/fn/import-value/sim-cfn-fn-import-value.d.ts
ADDED
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { SimCfnNode } from "../../sim-cfn-node.js";
|
|
2
|
+
import type { SimCfnResolveContext } from "../../../resolve/sim-cfn-resolve-context.js";
|
|
3
|
+
import type { SimCfnTemplateValue } from "../../../value/sim-cfn-template-value.js";
|
|
4
|
+
/**
|
|
5
|
+
* Simulated CloudFormation `Fn::ImportValue` intrinsic function.
|
|
6
|
+
*
|
|
7
|
+
* Standard shape:
|
|
8
|
+
*
|
|
9
|
+
* {
|
|
10
|
+
* "Fn::ImportValue": "ProducerStack:ExportsOutputRefSharedQueue"
|
|
11
|
+
* }
|
|
12
|
+
*
|
|
13
|
+
* CDK emits one of these on the consumer whenever a Stack reads a value from
|
|
14
|
+
* another Stack of the same app, paired with an Export on the producer.
|
|
15
|
+
*/
|
|
16
|
+
export declare class SimCfnFnImportValue extends SimCfnNode {
|
|
17
|
+
private readonly exportName;
|
|
18
|
+
constructor(exportName: SimCfnNode);
|
|
19
|
+
/**
|
|
20
|
+
* Read the value the named export was published with.
|
|
21
|
+
*
|
|
22
|
+
* An export name that is still an unresolved expression re-emits this
|
|
23
|
+
* function in template form. A later resolution pass finishes it once the
|
|
24
|
+
* Resources the name is built from exist. A name that has resolved is looked
|
|
25
|
+
* up, and one no Stack has published is refused there.
|
|
26
|
+
*/
|
|
27
|
+
resolve(context: SimCfnResolveContext): SimCfnTemplateValue;
|
|
28
|
+
/**
|
|
29
|
+
* Collect referenced names from the export name.
|
|
30
|
+
*/
|
|
31
|
+
referencedNames(): string[];
|
|
32
|
+
}
|
|
33
|
+
//# sourceMappingURL=sim-cfn-fn-import-value.d.ts.map
|
package/dist/service/cloudformation/template/node/fn/import-value/sim-cfn-fn-import-value.d.ts.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sim-cfn-fn-import-value.d.ts","sourceRoot":"","sources":["../../../../../../../src/service/cloudformation/template/node/fn/import-value/sim-cfn-fn-import-value.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,uBAAuB,CAAC;AACnD,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,6CAA6C,CAAC;AACxF,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,0CAA0C,CAAC;AAGpF;;;;;;;;;;;GAWG;AACH,qBAAa,mBAAoB,SAAQ,UAAU;IACrC,OAAO,CAAC,QAAQ,CAAC,UAAU;IAAvC,YAA6B,UAAU,EAAE,UAAU,EAElD;IAED;;;;;;;OAOG;IACH,OAAO,CAAC,OAAO,EAAE,oBAAoB,GAAG,mBAAmB,CAe1D;IAED;;OAEG;IACM,eAAe,IAAI,MAAM,EAAE,CAEnC;CACF"}
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import { SimCfnNode } from "../../sim-cfn-node.js";
|
|
2
|
+
import { isSimCfnUnresolvedExpression } from "../../../value/sim-cfn-unresolved-expression.js";
|
|
3
|
+
/**
|
|
4
|
+
* Simulated CloudFormation `Fn::ImportValue` intrinsic function.
|
|
5
|
+
*
|
|
6
|
+
* Standard shape:
|
|
7
|
+
*
|
|
8
|
+
* {
|
|
9
|
+
* "Fn::ImportValue": "ProducerStack:ExportsOutputRefSharedQueue"
|
|
10
|
+
* }
|
|
11
|
+
*
|
|
12
|
+
* CDK emits one of these on the consumer whenever a Stack reads a value from
|
|
13
|
+
* another Stack of the same app, paired with an Export on the producer.
|
|
14
|
+
*/
|
|
15
|
+
export class SimCfnFnImportValue extends SimCfnNode {
|
|
16
|
+
exportName;
|
|
17
|
+
constructor(exportName) {
|
|
18
|
+
super();
|
|
19
|
+
this.exportName = exportName;
|
|
20
|
+
}
|
|
21
|
+
/**
|
|
22
|
+
* Read the value the named export was published with.
|
|
23
|
+
*
|
|
24
|
+
* An export name that is still an unresolved expression re-emits this
|
|
25
|
+
* function in template form. A later resolution pass finishes it once the
|
|
26
|
+
* Resources the name is built from exist. A name that has resolved is looked
|
|
27
|
+
* up, and one no Stack has published is refused there.
|
|
28
|
+
*/
|
|
29
|
+
resolve(context) {
|
|
30
|
+
const name = this.exportName.resolve(context);
|
|
31
|
+
if (isSimCfnUnresolvedExpression(name)) {
|
|
32
|
+
return { "Fn::ImportValue": name };
|
|
33
|
+
}
|
|
34
|
+
if (typeof name !== "string") {
|
|
35
|
+
throw new TypeError("Sim CloudFormation Fn::ImportValue export name must resolve to a " +
|
|
36
|
+
`string, got ${typeof name}`);
|
|
37
|
+
}
|
|
38
|
+
return context.exports.value(name);
|
|
39
|
+
}
|
|
40
|
+
/**
|
|
41
|
+
* Collect referenced names from the export name.
|
|
42
|
+
*/
|
|
43
|
+
referencedNames() {
|
|
44
|
+
return this.exportName.referencedNames();
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
//# sourceMappingURL=sim-cfn-fn-import-value.js.map
|
package/dist/service/cloudformation/template/node/fn/import-value/sim-cfn-fn-import-value.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sim-cfn-fn-import-value.js","sourceRoot":"","sources":["../../../../../../../src/service/cloudformation/template/node/fn/import-value/sim-cfn-fn-import-value.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,uBAAuB,CAAC;AAGnD,OAAO,EAAE,4BAA4B,EAAE,MAAM,iDAAiD,CAAC;AAE/F;;;;;;;;;;;GAWG;AACH,MAAM,OAAO,mBAAoB,SAAQ,UAAU;IACpB,UAAU;IAAvC,YAA6B,UAAsB;QACjD,KAAK,EAAE,CAAC;0BADmB,UAAU;IAEvC,CAAC;IAED;;;;;;;OAOG;IACH,OAAO,CAAC,OAA6B;QACnC,MAAM,IAAI,GAAG,IAAI,CAAC,UAAU,CAAC,OAAO,CAAC,OAAO,CAAC,CAAC;QAE9C,IAAI,4BAA4B,CAAC,IAAI,CAAC,EAAE,CAAC;YACvC,OAAO,EAAE,iBAAiB,EAAE,IAAI,EAAE,CAAC;QACrC,CAAC;QAED,IAAI,OAAO,IAAI,KAAK,QAAQ,EAAE,CAAC;YAC7B,MAAM,IAAI,SAAS,CACjB,mEAAmE;gBACjE,eAAe,OAAO,IAAI,EAAE,CAC/B,CAAC;QACJ,CAAC;QAED,OAAO,OAAO,CAAC,OAAO,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC;IACrC,CAAC;IAED;;OAEG;IACM,eAAe;QACtB,OAAO,IAAI,CAAC,UAAU,CAAC,eAAe,EAAE,CAAC;IAC3C,CAAC;CACF"}
|
|
@@ -21,6 +21,13 @@ export declare class SimCfnFnSplit extends SimCfnNode {
|
|
|
21
21
|
* that is still an unresolved expression, such as an `Fn::GetAtt` read
|
|
22
22
|
* before Resources exist, re-emits this function in template form for a
|
|
23
23
|
* later resolution pass to finish.
|
|
24
|
+
*
|
|
25
|
+
* A string still holding a dynamic reference is deferred the same way, on
|
|
26
|
+
* the pass that has no service to read one with. The delimiters are inside
|
|
27
|
+
* the value that service has yet to answer with, which is the whole point of
|
|
28
|
+
* splitting a `StringList` parameter, so splitting now would cut up the
|
|
29
|
+
* reference. A reference left after the reading pass belongs to a service
|
|
30
|
+
* with no resolver, and is split as the plain text it stayed.
|
|
24
31
|
*/
|
|
25
32
|
resolve(context: SimCfnResolveContext): SimCfnTemplateValue;
|
|
26
33
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sim-cfn-fn-split.d.ts","sourceRoot":"","sources":["../../../../../../../src/service/cloudformation/template/node/fn/split/sim-cfn-fn-split.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,uBAAuB,CAAC;AACnD,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,6CAA6C,CAAC;AACxF,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,0CAA0C,CAAC;
|
|
1
|
+
{"version":3,"file":"sim-cfn-fn-split.d.ts","sourceRoot":"","sources":["../../../../../../../src/service/cloudformation/template/node/fn/split/sim-cfn-fn-split.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,uBAAuB,CAAC;AACnD,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,6CAA6C,CAAC;AACxF,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,0CAA0C,CAAC;AAIpF;;;;;;;;GAQG;AACH,qBAAa,aAAc,SAAQ,UAAU;IAEzC,OAAO,CAAC,QAAQ,CAAC,SAAS;IAC1B,OAAO,CAAC,QAAQ,CAAC,MAAM;IAFzB,YACmB,SAAS,EAAE,MAAM,EACjB,MAAM,EAAE,UAAU,EAGpC;IAED;;;;;;;;;;;;;;OAcG;IACH,OAAO,CAAC,OAAO,EAAE,oBAAoB,GAAG,mBAAmB,CAqB1D;IAED;;OAEG;IACM,eAAe,IAAI,MAAM,EAAE,CAEnC;CACF"}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { SimCfnNode } from "../../sim-cfn-node.js";
|
|
2
2
|
import { isSimCfnUnresolvedExpression } from "../../../value/sim-cfn-unresolved-expression.js";
|
|
3
|
+
import { hasSimCfnDynamicReference } from "../../../dynamic/sim-cfn-dynamic-reference-scan.js";
|
|
3
4
|
/**
|
|
4
5
|
* Simulated CloudFormation `Fn::Split` intrinsic function.
|
|
5
6
|
*
|
|
@@ -24,10 +25,21 @@ export class SimCfnFnSplit extends SimCfnNode {
|
|
|
24
25
|
* that is still an unresolved expression, such as an `Fn::GetAtt` read
|
|
25
26
|
* before Resources exist, re-emits this function in template form for a
|
|
26
27
|
* later resolution pass to finish.
|
|
28
|
+
*
|
|
29
|
+
* A string still holding a dynamic reference is deferred the same way, on
|
|
30
|
+
* the pass that has no service to read one with. The delimiters are inside
|
|
31
|
+
* the value that service has yet to answer with, which is the whole point of
|
|
32
|
+
* splitting a `StringList` parameter, so splitting now would cut up the
|
|
33
|
+
* reference. A reference left after the reading pass belongs to a service
|
|
34
|
+
* with no resolver, and is split as the plain text it stayed.
|
|
27
35
|
*/
|
|
28
36
|
resolve(context) {
|
|
29
37
|
const source = this.source.resolve(context);
|
|
30
38
|
if (typeof source === "string") {
|
|
39
|
+
if (context.dynamicReferences === undefined &&
|
|
40
|
+
hasSimCfnDynamicReference(source)) {
|
|
41
|
+
return { "Fn::Split": [this.delimiter, source] };
|
|
42
|
+
}
|
|
31
43
|
return source.split(this.delimiter);
|
|
32
44
|
}
|
|
33
45
|
if (isSimCfnUnresolvedExpression(source)) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sim-cfn-fn-split.js","sourceRoot":"","sources":["../../../../../../../src/service/cloudformation/template/node/fn/split/sim-cfn-fn-split.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,uBAAuB,CAAC;AAGnD,OAAO,EAAE,4BAA4B,EAAE,MAAM,iDAAiD,CAAC;AAE/F;;;;;;;;GAQG;AACH,MAAM,OAAO,aAAc,SAAQ,UAAU;IAExB,SAAS;IACT,MAAM;IAFzB,YACmB,SAAiB,EACjB,MAAkB;QAEnC,KAAK,EAAE,CAAC;yBAHS,SAAS;sBACT,MAAM;IAGzB,CAAC;IAED
|
|
1
|
+
{"version":3,"file":"sim-cfn-fn-split.js","sourceRoot":"","sources":["../../../../../../../src/service/cloudformation/template/node/fn/split/sim-cfn-fn-split.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,uBAAuB,CAAC;AAGnD,OAAO,EAAE,4BAA4B,EAAE,MAAM,iDAAiD,CAAC;AAC/F,OAAO,EAAE,yBAAyB,EAAE,MAAM,oDAAoD,CAAC;AAE/F;;;;;;;;GAQG;AACH,MAAM,OAAO,aAAc,SAAQ,UAAU;IAExB,SAAS;IACT,MAAM;IAFzB,YACmB,SAAiB,EACjB,MAAkB;QAEnC,KAAK,EAAE,CAAC;yBAHS,SAAS;sBACT,MAAM;IAGzB,CAAC;IAED;;;;;;;;;;;;;;OAcG;IACH,OAAO,CAAC,OAA6B;QACnC,MAAM,MAAM,GAAG,IAAI,CAAC,MAAM,CAAC,OAAO,CAAC,OAAO,CAAC,CAAC;QAE5C,IAAI,OAAO,MAAM,KAAK,QAAQ,EAAE,CAAC;YAC/B,IACE,OAAO,CAAC,iBAAiB,KAAK,SAAS;gBACvC,yBAAyB,CAAC,MAAM,CAAC,EACjC,CAAC;gBACD,OAAO,EAAE,WAAW,EAAE,CAAC,IAAI,CAAC,SAAS,EAAE,MAAM,CAAC,EAAE,CAAC;YACnD,CAAC;YAED,OAAO,MAAM,CAAC,KAAK,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC;QACtC,CAAC;QAED,IAAI,4BAA4B,CAAC,MAAM,CAAC,EAAE,CAAC;YACzC,OAAO,EAAE,WAAW,EAAE,CAAC,IAAI,CAAC,SAAS,EAAE,MAAM,CAAC,EAAE,CAAC;QACnD,CAAC;QAED,MAAM,IAAI,SAAS,CACjB,qEAAqE,OAAO,MAAM,EAAE,CACrF,CAAC;IACJ,CAAC;IAED;;OAEG;IACM,eAAe;QACtB,OAAO,IAAI,CAAC,MAAM,CAAC,eAAe,EAAE,CAAC;IACvC,CAAC;CACF"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sim-cfn-fn-sub.d.ts","sourceRoot":"","sources":["../../../../../../../src/service/cloudformation/template/node/fn/sub/sim-cfn-fn-sub.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,uBAAuB,CAAC;AACnD,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,0CAA0C,CAAC;AAGpF,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,6CAA6C,CAAC;AAGxF;;;;;;;;;;;;GAYG;AACH,qBAAa,WAAY,SAAQ,UAAU;IAOvC,OAAO,CAAC,QAAQ,CAAC,SAAS;IAN5B,OAAO,CAAC,QAAQ,CAAC,WAAW,CAA4B;IACxD,OAAO,CAAC,QAAQ,CAAC,gBAAgB,CAAoC;IACrE,OAAO,CAAC,QAAQ,CAAC,eAAe,CAAmC;IAEnE,YACE,QAAQ,EAAE,MAAM,EACC,SAAS,GAAE,WAAW,CAAC,MAAM,EAAE,UAAU,CAAa,EAUxE;IAED;;;;;OAKG;IACH,OAAO,CAAC,OAAO,EAAE,oBAAoB,GAAG,mBAAmB,
|
|
1
|
+
{"version":3,"file":"sim-cfn-fn-sub.d.ts","sourceRoot":"","sources":["../../../../../../../src/service/cloudformation/template/node/fn/sub/sim-cfn-fn-sub.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,uBAAuB,CAAC;AACnD,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,0CAA0C,CAAC;AAGpF,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,6CAA6C,CAAC;AAGxF;;;;;;;;;;;;GAYG;AACH,qBAAa,WAAY,SAAQ,UAAU;IAOvC,OAAO,CAAC,QAAQ,CAAC,SAAS;IAN5B,OAAO,CAAC,QAAQ,CAAC,WAAW,CAA4B;IACxD,OAAO,CAAC,QAAQ,CAAC,gBAAgB,CAAoC;IACrE,OAAO,CAAC,QAAQ,CAAC,eAAe,CAAmC;IAEnE,YACE,QAAQ,EAAE,MAAM,EACC,SAAS,GAAE,WAAW,CAAC,MAAM,EAAE,UAAU,CAAa,EAUxE;IAED;;;;;OAKG;IACH,OAAO,CAAC,OAAO,EAAE,oBAAoB,GAAG,mBAAmB,CAuB1D;IAED;;;OAGG;IACM,eAAe,IAAI,MAAM,EAAE,CAQnC;CACF"}
|
|
@@ -45,7 +45,12 @@ export class SimCfnFnSub extends SimCfnNode {
|
|
|
45
45
|
if (resolvedVariables.values().some((value) => typeof value !== "string")) {
|
|
46
46
|
return this.unresolvedValue.toTemplateValue(resolvedVariables);
|
|
47
47
|
}
|
|
48
|
-
|
|
48
|
+
const substituted = this.subTemplate.substitute(this.variableResolver.stringVariables(resolvedVariables));
|
|
49
|
+
// A dynamic reference can name a parameter through a Sub variable, as in
|
|
50
|
+
// `{{resolve:ssm:/app/${Environment}/host}}`. Reading it before the
|
|
51
|
+
// variables are in would look up a name still holding `${...}`, so the
|
|
52
|
+
// reference is read from the finished string.
|
|
53
|
+
return context.dynamicReferences?.substitute(substituted) ?? substituted;
|
|
49
54
|
}
|
|
50
55
|
/**
|
|
51
56
|
* Collect referenced names from explicit variable values and implicit
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sim-cfn-fn-sub.js","sourceRoot":"","sources":["../../../../../../../src/service/cloudformation/template/node/fn/sub/sim-cfn-fn-sub.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,uBAAuB,CAAC;AAEnD,OAAO,EAAE,mBAAmB,IAAI,yBAAyB,EAAE,MAAM,uCAAuC,CAAC;AACzG,OAAO,EAAE,2BAA2B,IAAI,iCAAiC,EAAE,MAAM,+CAA+C,CAAC;AAEjI,OAAO,EAAE,0BAA0B,IAAI,gCAAgC,EAAE,MAAM,8CAA8C,CAAC;AAE9H;;;;;;;;;;;;GAYG;AACH,MAAM,OAAO,WAAY,SAAQ,UAAU;IAOtB,SAAS;IANX,WAAW,CAA4B;IACvC,gBAAgB,CAAoC;IACpD,eAAe,CAAmC;IAEnE,YACE,QAAgB,EACC,SAAS,GAAoC,IAAI,GAAG,EAAE;QAEvE,KAAK,EAAE,CAAC;yBAFS,SAAS;QAI1B,IAAI,CAAC,WAAW,GAAG,IAAI,yBAAyB,CAAC,QAAQ,CAAC,CAAC;QAC3D,IAAI,CAAC,gBAAgB,GAAG,IAAI,iCAAiC,CAAC,SAAS,CAAC,CAAC;QACzE,IAAI,CAAC,eAAe,GAAG,IAAI,gCAAgC,CAAC;YAC1D,QAAQ;YACR,SAAS;SACV,CAAC,CAAC;IACL,CAAC;IAED;;;;;OAKG;IACH,OAAO,CAAC,OAA6B;QACnC,MAAM,iBAAiB,GAAG,IAAI,CAAC,gBAAgB,CAAC,UAAU,CACxD,IAAI,CAAC,WAAW,CAAC,aAAa,EAAE,EAChC,OAAO,CACR,CAAC;QAEF,4EAA4E;QAC5E,yEAAyE;QACzE,uEAAuE;QACvE,UAAU;QACV,IAAI,iBAAiB,CAAC,MAAM,EAAE,CAAC,IAAI,CAAC,CAAC,KAAK,EAAE,EAAE,CAAC,OAAO,KAAK,KAAK,QAAQ,CAAC,EAAE,CAAC;YAC1E,OAAO,IAAI,CAAC,eAAe,CAAC,eAAe,CAAC,iBAAiB,CAAC,CAAC;QACjE,CAAC;QAED,
|
|
1
|
+
{"version":3,"file":"sim-cfn-fn-sub.js","sourceRoot":"","sources":["../../../../../../../src/service/cloudformation/template/node/fn/sub/sim-cfn-fn-sub.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,uBAAuB,CAAC;AAEnD,OAAO,EAAE,mBAAmB,IAAI,yBAAyB,EAAE,MAAM,uCAAuC,CAAC;AACzG,OAAO,EAAE,2BAA2B,IAAI,iCAAiC,EAAE,MAAM,+CAA+C,CAAC;AAEjI,OAAO,EAAE,0BAA0B,IAAI,gCAAgC,EAAE,MAAM,8CAA8C,CAAC;AAE9H;;;;;;;;;;;;GAYG;AACH,MAAM,OAAO,WAAY,SAAQ,UAAU;IAOtB,SAAS;IANX,WAAW,CAA4B;IACvC,gBAAgB,CAAoC;IACpD,eAAe,CAAmC;IAEnE,YACE,QAAgB,EACC,SAAS,GAAoC,IAAI,GAAG,EAAE;QAEvE,KAAK,EAAE,CAAC;yBAFS,SAAS;QAI1B,IAAI,CAAC,WAAW,GAAG,IAAI,yBAAyB,CAAC,QAAQ,CAAC,CAAC;QAC3D,IAAI,CAAC,gBAAgB,GAAG,IAAI,iCAAiC,CAAC,SAAS,CAAC,CAAC;QACzE,IAAI,CAAC,eAAe,GAAG,IAAI,gCAAgC,CAAC;YAC1D,QAAQ;YACR,SAAS;SACV,CAAC,CAAC;IACL,CAAC;IAED;;;;;OAKG;IACH,OAAO,CAAC,OAA6B;QACnC,MAAM,iBAAiB,GAAG,IAAI,CAAC,gBAAgB,CAAC,UAAU,CACxD,IAAI,CAAC,WAAW,CAAC,aAAa,EAAE,EAChC,OAAO,CACR,CAAC;QAEF,4EAA4E;QAC5E,yEAAyE;QACzE,uEAAuE;QACvE,UAAU;QACV,IAAI,iBAAiB,CAAC,MAAM,EAAE,CAAC,IAAI,CAAC,CAAC,KAAK,EAAE,EAAE,CAAC,OAAO,KAAK,KAAK,QAAQ,CAAC,EAAE,CAAC;YAC1E,OAAO,IAAI,CAAC,eAAe,CAAC,eAAe,CAAC,iBAAiB,CAAC,CAAC;QACjE,CAAC;QAED,MAAM,WAAW,GAAG,IAAI,CAAC,WAAW,CAAC,UAAU,CAC7C,IAAI,CAAC,gBAAgB,CAAC,eAAe,CAAC,iBAAiB,CAAC,CACzD,CAAC;QAEF,yEAAyE;QACzE,oEAAoE;QACpE,uEAAuE;QACvE,8CAA8C;QAC9C,OAAO,OAAO,CAAC,iBAAiB,EAAE,UAAU,CAAC,WAAW,CAAC,IAAI,WAAW,CAAC;IAC3E,CAAC;IAED;;;OAGG;IACM,eAAe;QACtB,OAAO;YACL,GAAG,IAAI,CAAC,SAAS,CAAC,MAAM,EAAE,CAAC,OAAO,CAAC,CAAC,KAAK,EAAE,EAAE,CAAC,KAAK,CAAC,eAAe,EAAE,CAAC;YACtE,GAAG,IAAI,CAAC,WAAW;iBAChB,aAAa,EAAE;iBACf,MAAM,CAAC,CAAC,YAAY,EAAE,EAAE,CAAC,CAAC,IAAI,CAAC,SAAS,CAAC,GAAG,CAAC,YAAY,CAAC,CAAC;iBAC3D,GAAG,CAAC,CAAC,YAAY,EAAE,EAAE,CAAC,YAAY,CAAC,KAAK,CAAC,GAAG,EAAE,CAAC,CAAC,CAAC,CAAC,CAAC,IAAI,YAAY,CAAC;SACxE,CAAC;IACJ,CAAC;CACF"}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { SimCfnNode } from "./sim-cfn-node.js";
|
|
2
2
|
import type { SimCfnTemplatePrimitiveValue } from "../value/sim-cfn-template-value.js";
|
|
3
|
+
import type { SimCfnResolveContext } from "../resolve/sim-cfn-resolve-context.js";
|
|
3
4
|
/**
|
|
4
5
|
* A primitive CloudFormation template value (null, boolean, number, string).
|
|
5
6
|
*/
|
|
@@ -7,8 +8,14 @@ export declare class SimCfnLiteral extends SimCfnNode {
|
|
|
7
8
|
private readonly value;
|
|
8
9
|
constructor(value: SimCfnTemplatePrimitiveValue);
|
|
9
10
|
/**
|
|
10
|
-
* Return the literal value
|
|
11
|
+
* Return the literal value, with any dynamic reference in it substituted.
|
|
12
|
+
*
|
|
13
|
+
* A dynamic reference is written into the template as ordinary text, so this
|
|
14
|
+
* is where one is read. Substituting here rather than over the finished
|
|
15
|
+
* value keeps `Fn::Split` and the other functions reading a resolved string:
|
|
16
|
+
* splitting `{{resolve:ssm:name}}` on commas has to happen after Parameter
|
|
17
|
+
* Store has answered it.
|
|
11
18
|
*/
|
|
12
|
-
resolve(): SimCfnTemplatePrimitiveValue;
|
|
19
|
+
resolve(context: SimCfnResolveContext): SimCfnTemplatePrimitiveValue;
|
|
13
20
|
}
|
|
14
21
|
//# sourceMappingURL=sim-cfn-literal.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sim-cfn-literal.d.ts","sourceRoot":"","sources":["../../../../../src/service/cloudformation/template/node/sim-cfn-literal.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAC;AAC/C,OAAO,KAAK,EAAE,4BAA4B,EAAE,MAAM,oCAAoC,CAAC;
|
|
1
|
+
{"version":3,"file":"sim-cfn-literal.d.ts","sourceRoot":"","sources":["../../../../../src/service/cloudformation/template/node/sim-cfn-literal.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAC;AAC/C,OAAO,KAAK,EAAE,4BAA4B,EAAE,MAAM,oCAAoC,CAAC;AACvF,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,uCAAuC,CAAC;AAElF;;GAEG;AACH,qBAAa,aAAc,SAAQ,UAAU;IAC/B,OAAO,CAAC,QAAQ,CAAC,KAAK;IAAlC,YAA6B,KAAK,EAAE,4BAA4B,EAE/D;IAED;;;;;;;;OAQG;IACH,OAAO,CAAC,OAAO,EAAE,oBAAoB,GAAG,4BAA4B,CAMnE;CACF"}
|