@kensio/yulin 1.16.2 → 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/router/sim-sdk-caller-options.d.ts +2 -2
- package/dist/sdk/router/sim-sdk-caller-options.d.ts.map +1 -1
- package/dist/sdk/router/sim-sdk-command-router.type.d.ts +7 -2
- package/dist/sdk/router/sim-sdk-command-router.type.d.ts.map +1 -1
- package/dist/sdk/sim-sdk-command-dispatcher.d.ts +7 -1
- package/dist/sdk/sim-sdk-command-dispatcher.d.ts.map +1 -1
- package/dist/sdk/sim-sdk-command-dispatcher.js +16 -4
- package/dist/sdk/sim-sdk-command-dispatcher.js.map +1 -1
- package/dist/sdk/wire/sim-sdk-wire-dispatcher.d.ts +7 -6
- package/dist/sdk/wire/sim-sdk-wire-dispatcher.d.ts.map +1 -1
- package/dist/sdk/wire/sim-sdk-wire-dispatcher.js +11 -10
- package/dist/sdk/wire/sim-sdk-wire-dispatcher.js.map +1 -1
- package/dist/sdk/wire/sim-sdk-wire-operation.d.ts.map +1 -1
- package/dist/sdk/wire/sim-sdk-wire-operation.js +1 -0
- package/dist/sdk/wire/sim-sdk-wire-operation.js.map +1 -1
- 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 +39 -0
- package/dist/serve/http/api/sim-aws-api-endpoint.d.ts.map +1 -0
- package/dist/serve/http/api/sim-aws-api-endpoint.js +105 -0
- package/dist/serve/http/api/sim-aws-api-endpoint.js.map +1 -0
- 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/serve/http/sim-aws-http.d.ts +1 -0
- package/dist/serve/http/sim-aws-http.d.ts.map +1 -1
- package/dist/serve/http/sim-aws-http.js +9 -0
- package/dist/serve/http/sim-aws-http.js.map +1 -1
- package/dist/service/aws/factory/sim-aws-account-region-service-builder.d.ts.map +1 -1
- package/dist/service/aws/factory/sim-aws-account-region-service-builder.js +1 -0
- package/dist/service/aws/factory/sim-aws-account-region-service-builder.js.map +1 -1
- 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-lookup.d.ts +28 -0
- package/dist/service/cloudformation/stack/resource-map/sim-cfn-stack-resource-lookup.d.ts.map +1 -0
- package/dist/service/cloudformation/stack/resource-map/sim-cfn-stack-resource-lookup.js +36 -0
- package/dist/service/cloudformation/stack/resource-map/sim-cfn-stack-resource-lookup.js.map +1 -0
- 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 +24 -29
- package/dist/service/cloudformation/stack/sim-cfn-stack.d.ts.map +1 -1
- package/dist/service/cloudformation/stack/sim-cfn-stack.js +37 -10
- package/dist/service/cloudformation/stack/sim-cfn-stack.js.map +1 -1
- package/dist/service/cloudformation/stack/sim-cfn-stack.type.d.ts +35 -0
- package/dist/service/cloudformation/stack/sim-cfn-stack.type.d.ts.map +1 -0
- package/dist/service/cloudformation/stack/sim-cfn-stack.type.js +2 -0
- package/dist/service/cloudformation/stack/sim-cfn-stack.type.js.map +1 -0
- 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/iam/sim-iam.d.ts +10 -0
- package/dist/service/iam/sim-iam.d.ts.map +1 -1
- package/dist/service/iam/sim-iam.js +10 -0
- package/dist/service/iam/sim-iam.js.map +1 -1
- 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/rekognition/collection/sim-rekognition-collection-faces.d.ts +53 -0
- package/dist/service/rekognition/collection/sim-rekognition-collection-faces.d.ts.map +1 -0
- package/dist/service/rekognition/collection/sim-rekognition-collection-faces.js +69 -0
- package/dist/service/rekognition/collection/sim-rekognition-collection-faces.js.map +1 -0
- package/dist/service/rekognition/collection/sim-rekognition-collection.d.ts +26 -0
- package/dist/service/rekognition/collection/sim-rekognition-collection.d.ts.map +1 -0
- package/dist/service/rekognition/collection/sim-rekognition-collection.js +9 -0
- package/dist/service/rekognition/collection/sim-rekognition-collection.js.map +1 -0
- package/dist/service/rekognition/collection/sim-rekognition-collections.d.ts +50 -0
- package/dist/service/rekognition/collection/sim-rekognition-collections.d.ts.map +1 -0
- package/dist/service/rekognition/collection/sim-rekognition-collections.js +78 -0
- package/dist/service/rekognition/collection/sim-rekognition-collections.js.map +1 -0
- package/dist/service/rekognition/collection/sim-rekognition-indexed-face.d.ts +41 -0
- package/dist/service/rekognition/collection/sim-rekognition-indexed-face.d.ts.map +1 -0
- package/dist/service/rekognition/collection/sim-rekognition-indexed-face.js +53 -0
- package/dist/service/rekognition/collection/sim-rekognition-indexed-face.js.map +1 -0
- package/dist/service/rekognition/command/authorize/sim-rekognition-authorizer.d.ts +2 -2
- package/dist/service/rekognition/command/authorize/sim-rekognition-authorizer.d.ts.map +1 -1
- package/dist/service/rekognition/command/authorize/sim-rekognition-authorizer.js +7 -4
- package/dist/service/rekognition/command/authorize/sim-rekognition-authorizer.js.map +1 -1
- package/dist/service/rekognition/command/collection/collection-id.d.ts +9 -0
- package/dist/service/rekognition/command/collection/collection-id.d.ts.map +1 -0
- package/dist/service/rekognition/command/collection/collection-id.js +15 -0
- package/dist/service/rekognition/command/collection/collection-id.js.map +1 -0
- package/dist/service/rekognition/command/collection/collection.command.d.ts +55 -0
- package/dist/service/rekognition/command/collection/collection.command.d.ts.map +1 -0
- package/dist/service/rekognition/command/collection/collection.command.js +2 -0
- package/dist/service/rekognition/command/collection/collection.command.js.map +1 -0
- package/dist/service/rekognition/command/collection/collection.handler.d.ts +40 -0
- package/dist/service/rekognition/command/collection/collection.handler.d.ts.map +1 -0
- package/dist/service/rekognition/command/collection/collection.handler.js +62 -0
- package/dist/service/rekognition/command/collection/collection.handler.js.map +1 -0
- package/dist/service/rekognition/command/face/delete-faces-request.d.ts +10 -0
- package/dist/service/rekognition/command/face/delete-faces-request.d.ts.map +1 -0
- package/dist/service/rekognition/command/face/delete-faces-request.js +18 -0
- package/dist/service/rekognition/command/face/delete-faces-request.js.map +1 -0
- package/dist/service/rekognition/command/face/external-image-id.d.ts +9 -0
- package/dist/service/rekognition/command/face/external-image-id.d.ts.map +1 -0
- package/dist/service/rekognition/command/face/external-image-id.js +28 -0
- package/dist/service/rekognition/command/face/external-image-id.js.map +1 -0
- package/dist/service/rekognition/command/face/face-ids.d.ts +9 -0
- package/dist/service/rekognition/command/face/face-ids.d.ts.map +1 -0
- package/dist/service/rekognition/command/face/face-ids.js +48 -0
- package/dist/service/rekognition/command/face/face-ids.js.map +1 -0
- package/dist/service/rekognition/command/face/face-indexer.d.ts +38 -0
- package/dist/service/rekognition/command/face/face-indexer.d.ts.map +1 -0
- package/dist/service/rekognition/command/face/face-indexer.js +64 -0
- package/dist/service/rekognition/command/face/face-indexer.js.map +1 -0
- package/dist/service/rekognition/command/face/face-limits.d.ts +22 -0
- package/dist/service/rekognition/command/face/face-limits.d.ts.map +1 -0
- package/dist/service/rekognition/command/face/face-limits.js +36 -0
- package/dist/service/rekognition/command/face/face-limits.js.map +1 -0
- package/dist/service/rekognition/command/face/face-listing.d.ts +26 -0
- package/dist/service/rekognition/command/face/face-listing.d.ts.map +1 -0
- package/dist/service/rekognition/command/face/face-listing.js +36 -0
- package/dist/service/rekognition/command/face/face-listing.js.map +1 -0
- package/dist/service/rekognition/command/face/face-output.d.ts +65 -0
- package/dist/service/rekognition/command/face/face-output.d.ts.map +1 -0
- package/dist/service/rekognition/command/face/face-output.js +8 -0
- package/dist/service/rekognition/command/face/face-output.js.map +1 -0
- package/dist/service/rekognition/command/face/face-searcher.d.ts +32 -0
- package/dist/service/rekognition/command/face/face-searcher.d.ts.map +1 -0
- package/dist/service/rekognition/command/face/face-searcher.js +45 -0
- package/dist/service/rekognition/command/face/face-searcher.js.map +1 -0
- package/dist/service/rekognition/command/face/face.command.d.ts +107 -0
- package/dist/service/rekognition/command/face/face.command.d.ts.map +1 -0
- package/dist/service/rekognition/command/face/face.command.js +2 -0
- package/dist/service/rekognition/command/face/face.command.js.map +1 -0
- package/dist/service/rekognition/command/face/face.handler.d.ts +62 -0
- package/dist/service/rekognition/command/face/face.handler.d.ts.map +1 -0
- package/dist/service/rekognition/command/face/face.handler.js +99 -0
- package/dist/service/rekognition/command/face/face.handler.js.map +1 -0
- package/dist/service/rekognition/command/face/index-faces-request.d.ts +20 -0
- package/dist/service/rekognition/command/face/index-faces-request.d.ts.map +1 -0
- package/dist/service/rekognition/command/face/index-faces-request.js +39 -0
- package/dist/service/rekognition/command/face/index-faces-request.js.map +1 -0
- package/dist/service/rekognition/command/face/list-faces-page.d.ts +26 -0
- package/dist/service/rekognition/command/face/list-faces-page.d.ts.map +1 -0
- package/dist/service/rekognition/command/face/list-faces-page.js +39 -0
- package/dist/service/rekognition/command/face/list-faces-page.js.map +1 -0
- package/dist/service/rekognition/command/face/list-faces-request.d.ts +17 -0
- package/dist/service/rekognition/command/face/list-faces-request.d.ts.map +1 -0
- package/dist/service/rekognition/command/face/list-faces-request.js +43 -0
- package/dist/service/rekognition/command/face/list-faces-request.js.map +1 -0
- package/dist/service/rekognition/command/face/search-faces-by-image-request.d.ts +24 -0
- package/dist/service/rekognition/command/face/search-faces-by-image-request.d.ts.map +1 -0
- package/dist/service/rekognition/command/face/search-faces-by-image-request.js +61 -0
- package/dist/service/rekognition/command/face/search-faces-by-image-request.js.map +1 -0
- package/dist/service/rekognition/command/sim-rekognition-detection-handlers.d.ts +32 -0
- package/dist/service/rekognition/command/sim-rekognition-detection-handlers.d.ts.map +1 -0
- package/dist/service/rekognition/command/sim-rekognition-detection-handlers.js +37 -0
- package/dist/service/rekognition/command/sim-rekognition-detection-handlers.js.map +1 -0
- package/dist/service/rekognition/error/sim-rekognition.error.d.ts +20 -0
- package/dist/service/rekognition/error/sim-rekognition.error.d.ts.map +1 -1
- package/dist/service/rekognition/error/sim-rekognition.error.js +24 -0
- package/dist/service/rekognition/error/sim-rekognition.error.js.map +1 -1
- package/dist/service/rekognition/face/sim-rekognition-detected-face.d.ts +9 -0
- package/dist/service/rekognition/face/sim-rekognition-detected-face.d.ts.map +1 -1
- package/dist/service/rekognition/face/sim-rekognition-detected-face.js +12 -0
- package/dist/service/rekognition/face/sim-rekognition-detected-face.js.map +1 -1
- package/dist/service/rekognition/face/sim-rekognition-face-detection.d.ts +9 -0
- package/dist/service/rekognition/face/sim-rekognition-face-detection.d.ts.map +1 -1
- package/dist/service/rekognition/face/sim-rekognition-face-detection.js +10 -0
- package/dist/service/rekognition/face/sim-rekognition-face-detection.js.map +1 -1
- package/dist/service/rekognition/face/sim-rekognition-face-frame.d.ts +5 -1
- package/dist/service/rekognition/face/sim-rekognition-face-frame.d.ts.map +1 -1
- package/dist/service/rekognition/face/sim-rekognition-face-frame.js +3 -0
- package/dist/service/rekognition/face/sim-rekognition-face-frame.js.map +1 -1
- package/dist/service/rekognition/index.d.ts +3 -1
- package/dist/service/rekognition/index.d.ts.map +1 -1
- package/dist/service/rekognition/index.js +2 -1
- package/dist/service/rekognition/index.js.map +1 -1
- package/dist/service/rekognition/match/sim-rekognition-face-match-declaration.d.ts +29 -0
- package/dist/service/rekognition/match/sim-rekognition-face-match-declaration.d.ts.map +1 -0
- package/dist/service/rekognition/match/sim-rekognition-face-match-declaration.js +2 -0
- package/dist/service/rekognition/match/sim-rekognition-face-match-declaration.js.map +1 -0
- package/dist/service/rekognition/match/sim-rekognition-face-match-result.d.ts +25 -0
- package/dist/service/rekognition/match/sim-rekognition-face-match-result.d.ts.map +1 -0
- package/dist/service/rekognition/match/sim-rekognition-face-match-result.js +44 -0
- package/dist/service/rekognition/match/sim-rekognition-face-match-result.js.map +1 -0
- package/dist/service/rekognition/match/sim-rekognition-face-match-rule.d.ts +26 -0
- package/dist/service/rekognition/match/sim-rekognition-face-match-rule.d.ts.map +1 -0
- package/dist/service/rekognition/match/sim-rekognition-face-match-rule.js +64 -0
- package/dist/service/rekognition/match/sim-rekognition-face-match-rule.js.map +1 -0
- package/dist/service/rekognition/match/sim-rekognition-face-matches.d.ts +32 -0
- package/dist/service/rekognition/match/sim-rekognition-face-matches.d.ts.map +1 -0
- package/dist/service/rekognition/match/sim-rekognition-face-matches.js +39 -0
- package/dist/service/rekognition/match/sim-rekognition-face-matches.js.map +1 -0
- package/dist/service/rekognition/sdk/sim-rekognition-sdk-command-router.d.ts.map +1 -1
- package/dist/service/rekognition/sdk/sim-rekognition-sdk-command-router.js +28 -0
- package/dist/service/rekognition/sdk/sim-rekognition-sdk-command-router.js.map +1 -1
- package/dist/service/rekognition/sim-rekognition.d.ts +51 -3
- package/dist/service/rekognition/sim-rekognition.d.ts.map +1 -1
- package/dist/service/rekognition/sim-rekognition.js +84 -16
- package/dist/service/rekognition/sim-rekognition.js.map +1 -1
- 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 +18 -0
- package/dist/service/s3/bucket/sim-s3-bucket.d.ts.map +1 -1
- package/dist/service/s3/bucket/sim-s3-bucket.js +16 -1
- 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/bucket/sim-s3-bucket-commands.d.ts +1 -0
- package/dist/service/s3/command/bucket/sim-s3-bucket-commands.d.ts.map +1 -1
- package/dist/service/s3/command/bucket/sim-s3-bucket-commands.js +4 -0
- package/dist/service/s3/command/bucket/sim-s3-bucket-commands.js.map +1 -1
- 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-bucket/create-bucket.handler.d.ts.map +1 -1
- package/dist/service/s3/command/create-bucket/create-bucket.handler.js +1 -0
- package/dist/service/s3/command/create-bucket/create-bucket.handler.js.map +1 -1
- 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/head-bucket/head-bucket-authorizer.d.ts +26 -0
- package/dist/service/s3/command/head-bucket/head-bucket-authorizer.d.ts.map +1 -0
- package/dist/service/s3/command/head-bucket/head-bucket-authorizer.js +48 -0
- package/dist/service/s3/command/head-bucket/head-bucket-authorizer.js.map +1 -0
- package/dist/service/s3/command/head-bucket/head-bucket.command.d.ts +24 -0
- package/dist/service/s3/command/head-bucket/head-bucket.command.d.ts.map +1 -0
- package/dist/service/s3/command/head-bucket/head-bucket.command.js +2 -0
- package/dist/service/s3/command/head-bucket/head-bucket.command.js.map +1 -0
- package/dist/service/s3/command/head-bucket/head-bucket.handler.d.ts +35 -0
- package/dist/service/s3/command/head-bucket/head-bucket.handler.d.ts.map +1 -0
- package/dist/service/s3/command/head-bucket/head-bucket.handler.js +45 -0
- package/dist/service/s3/command/head-bucket/head-bucket.handler.js.map +1 -0
- package/dist/service/s3/command/head-object/head-object-loader.d.ts +17 -0
- package/dist/service/s3/command/head-object/head-object-loader.d.ts.map +1 -0
- package/dist/service/s3/command/head-object/head-object-loader.js +29 -0
- package/dist/service/s3/command/head-object/head-object-loader.js.map +1 -0
- package/dist/service/s3/command/head-object/head-object.command.d.ts +29 -0
- package/dist/service/s3/command/head-object/head-object.command.d.ts.map +1 -0
- package/dist/service/s3/command/head-object/head-object.command.js +2 -0
- package/dist/service/s3/command/head-object/head-object.command.js.map +1 -0
- package/dist/service/s3/command/head-object/head-object.handler.d.ts +38 -0
- package/dist/service/s3/command/head-object/head-object.handler.d.ts.map +1 -0
- package/dist/service/s3/command/head-object/head-object.handler.js +50 -0
- package/dist/service/s3/command/head-object/head-object.handler.js.map +1 -0
- package/dist/service/s3/command/list-buckets/list-buckets-page-builder.d.ts.map +1 -1
- package/dist/service/s3/command/list-buckets/list-buckets-page-builder.js +1 -0
- package/dist/service/s3/command/list-buckets/list-buckets-page-builder.js.map +1 -1
- package/dist/service/s3/command/list-buckets/list-buckets.command.d.ts +1 -0
- package/dist/service/s3/command/list-buckets/list-buckets.command.d.ts.map +1 -1
- 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/object/sim-s3-object-commands.d.ts +4 -0
- package/dist/service/s3/command/object/sim-s3-object-commands.d.ts.map +1 -1
- package/dist/service/s3/command/object/sim-s3-object-commands.js +7 -0
- package/dist/service/s3/command/object/sim-s3-object-commands.js.map +1 -1
- 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 +8 -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 +46 -0
- package/dist/service/s3/error/sim-s3.error.d.ts.map +1 -1
- package/dist/service/s3/error/sim-s3.error.js +54 -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 +32 -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 +9 -0
- package/dist/service/s3/serve/api/sim-s3-api-bucket-routes.d.ts.map +1 -0
- package/dist/service/s3/serve/api/sim-s3-api-bucket-routes.js +128 -0
- package/dist/service/s3/serve/api/sim-s3-api-bucket-routes.js.map +1 -0
- package/dist/service/s3/serve/api/sim-s3-api-configuration-output.d.ts +19 -0
- package/dist/service/s3/serve/api/sim-s3-api-configuration-output.d.ts.map +1 -0
- package/dist/service/s3/serve/api/sim-s3-api-configuration-output.js +78 -0
- package/dist/service/s3/serve/api/sim-s3-api-configuration-output.js.map +1 -0
- package/dist/service/s3/serve/api/sim-s3-api-head-output.d.ts +22 -0
- package/dist/service/s3/serve/api/sim-s3-api-head-output.d.ts.map +1 -0
- package/dist/service/s3/serve/api/sim-s3-api-head-output.js +39 -0
- package/dist/service/s3/serve/api/sim-s3-api-head-output.js.map +1 -0
- package/dist/service/s3/serve/api/sim-s3-api-input.d.ts +62 -0
- package/dist/service/s3/serve/api/sim-s3-api-input.d.ts.map +1 -0
- package/dist/service/s3/serve/api/sim-s3-api-input.js +118 -0
- package/dist/service/s3/serve/api/sim-s3-api-input.js.map +1 -0
- package/dist/service/s3/serve/api/sim-s3-api-listing.d.ts +43 -0
- package/dist/service/s3/serve/api/sim-s3-api-listing.d.ts.map +1 -0
- package/dist/service/s3/serve/api/sim-s3-api-listing.js +53 -0
- package/dist/service/s3/serve/api/sim-s3-api-listing.js.map +1 -0
- 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-notification-read.d.ts +8 -0
- package/dist/service/s3/serve/api/sim-s3-api-notification-read.d.ts.map +1 -0
- package/dist/service/s3/serve/api/sim-s3-api-notification-read.js +54 -0
- package/dist/service/s3/serve/api/sim-s3-api-notification-read.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 +6 -0
- package/dist/service/s3/serve/api/sim-s3-api-object-routes.d.ts.map +1 -0
- package/dist/service/s3/serve/api/sim-s3-api-object-routes.js +67 -0
- package/dist/service/s3/serve/api/sim-s3-api-object-routes.js.map +1 -0
- package/dist/service/s3/serve/api/sim-s3-api-output.d.ts +10 -0
- package/dist/service/s3/serve/api/sim-s3-api-output.d.ts.map +1 -0
- package/dist/service/s3/serve/api/sim-s3-api-output.js +97 -0
- package/dist/service/s3/serve/api/sim-s3-api-output.js.map +1 -0
- package/dist/service/s3/serve/api/sim-s3-api-request.d.ts +32 -0
- package/dist/service/s3/serve/api/sim-s3-api-request.d.ts.map +1 -0
- package/dist/service/s3/serve/api/sim-s3-api-request.js +48 -0
- package/dist/service/s3/serve/api/sim-s3-api-request.js.map +1 -0
- package/dist/service/s3/serve/api/sim-s3-api-route.type.d.ts +26 -0
- package/dist/service/s3/serve/api/sim-s3-api-route.type.d.ts.map +1 -0
- package/dist/service/s3/serve/api/sim-s3-api-route.type.js +2 -0
- package/dist/service/s3/serve/api/sim-s3-api-route.type.js.map +1 -0
- package/dist/service/s3/serve/api/sim-s3-api-routes.d.ts +24 -0
- package/dist/service/s3/serve/api/sim-s3-api-routes.d.ts.map +1 -0
- package/dist/service/s3/serve/api/sim-s3-api-routes.js +91 -0
- package/dist/service/s3/serve/api/sim-s3-api-routes.js.map +1 -0
- package/dist/service/s3/serve/api/sim-s3-api-xml-read.d.ts +28 -0
- package/dist/service/s3/serve/api/sim-s3-api-xml-read.d.ts.map +1 -0
- package/dist/service/s3/serve/api/sim-s3-api-xml-read.js +79 -0
- package/dist/service/s3/serve/api/sim-s3-api-xml-read.js.map +1 -0
- package/dist/service/s3/serve/api/sim-s3-api.d.ts +29 -0
- package/dist/service/s3/serve/api/sim-s3-api.d.ts.map +1 -0
- package/dist/service/s3/serve/api/sim-s3-api.js +60 -0
- package/dist/service/s3/serve/api/sim-s3-api.js.map +1 -0
- package/dist/service/s3/serve/sim-s3-rest-error-response.d.ts +8 -0
- package/dist/service/s3/serve/sim-s3-rest-error-response.d.ts.map +1 -1
- package/dist/service/s3/serve/sim-s3-rest-error-response.js +15 -10
- package/dist/service/s3/serve/sim-s3-rest-error-response.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 +67 -0
- package/dist/service/s3/sim-s3-operations.d.ts.map +1 -0
- package/dist/service/s3/sim-s3-operations.js +118 -0
- package/dist/service/s3/sim-s3-operations.js.map +1 -0
- package/dist/service/s3/sim-s3.d.ts +6 -41
- package/dist/service/s3/sim-s3.d.ts.map +1 -1
- package/dist/service/s3/sim-s3.js +11 -79
- package/dist/service/s3/sim-s3.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/command/assume-role/assume-role.handler.d.ts +2 -2
- package/dist/service/sts/command/assume-role/assume-role.handler.d.ts.map +1 -1
- package/dist/service/sts/command/get-caller-identity/get-caller-identity.command.d.ts +20 -0
- package/dist/service/sts/command/get-caller-identity/get-caller-identity.command.d.ts.map +1 -0
- package/dist/service/sts/command/get-caller-identity/get-caller-identity.command.js +2 -0
- package/dist/service/sts/command/get-caller-identity/get-caller-identity.command.js.map +1 -0
- package/dist/service/sts/command/get-caller-identity/get-caller-identity.handler.d.ts +37 -0
- package/dist/service/sts/command/get-caller-identity/get-caller-identity.handler.d.ts.map +1 -0
- package/dist/service/sts/command/get-caller-identity/get-caller-identity.handler.js +50 -0
- package/dist/service/sts/command/get-caller-identity/get-caller-identity.handler.js.map +1 -0
- package/dist/service/sts/command/get-caller-identity/sim-sts-caller-user-id.d.ts +15 -0
- package/dist/service/sts/command/get-caller-identity/sim-sts-caller-user-id.d.ts.map +1 -0
- package/dist/service/sts/command/get-caller-identity/sim-sts-caller-user-id.js +47 -0
- package/dist/service/sts/command/get-caller-identity/sim-sts-caller-user-id.js.map +1 -0
- package/dist/service/sts/sdk/sim-sts-sdk-command-router.d.ts.map +1 -1
- package/dist/service/sts/sdk/sim-sts-sdk-command-router.js +4 -0
- package/dist/service/sts/sdk/sim-sts-sdk-command-router.js.map +1 -1
- package/dist/service/sts/serve/sim-sts-api.d.ts +12 -0
- package/dist/service/sts/serve/sim-sts-api.d.ts.map +1 -0
- package/dist/service/sts/serve/sim-sts-api.js +52 -0
- package/dist/service/sts/serve/sim-sts-api.js.map +1 -0
- package/dist/service/sts/sim-sts.d.ts +9 -2
- package/dist/service/sts/sim-sts.d.ts.map +1 -1
- package/dist/service/sts/sim-sts.js +11 -0
- package/dist/service/sts/sim-sts.js.map +1 -1
- package/dist/util/xml/xml-document.d.ts +46 -0
- package/dist/util/xml/xml-document.d.ts.map +1 -0
- package/dist/util/xml/xml-document.js +108 -0
- package/dist/util/xml/xml-document.js.map +1 -0
- package/dist/util/xml/xml-writer.d.ts +28 -0
- package/dist/util/xml/xml-writer.d.ts.map +1 -0
- package/dist/util/xml/xml-writer.js +53 -0
- package/dist/util/xml/xml-writer.js.map +1 -0
- package/package.json +1 -1
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* One AWS REST-JSON request, taken apart as far as the route table reads it.
|
|
3
|
+
*
|
|
4
|
+
* REST-JSON names its operation in the method and the path, as REST-XML does,
|
|
5
|
+
* and carries the rest of its input in a JSON body, in the query string and in
|
|
6
|
+
* headers. The path is split before anything is matched against it, because a
|
|
7
|
+
* route is a template of segments and matching one means comparing segments.
|
|
8
|
+
*/
|
|
9
|
+
export interface SimRestJsonRequest {
|
|
10
|
+
readonly method: string;
|
|
11
|
+
/** The path as it arrived, for naming one no route serves. */
|
|
12
|
+
readonly path: string;
|
|
13
|
+
/** The path split on its separators, each segment decoded. */
|
|
14
|
+
readonly segments: readonly string[];
|
|
15
|
+
readonly query: URLSearchParams;
|
|
16
|
+
readonly headers: Headers;
|
|
17
|
+
readonly body: Uint8Array;
|
|
18
|
+
}
|
|
19
|
+
/**
|
|
20
|
+
* A body that states itself as JSON and is not.
|
|
21
|
+
*
|
|
22
|
+
* Real AWS answers this as `SerializationException`, and an SDK raises it under
|
|
23
|
+
* that name rather than reporting whatever the parser happened to say.
|
|
24
|
+
*/
|
|
25
|
+
export declare class SimRestJsonSerializationError extends Error {
|
|
26
|
+
readonly name = "SerializationException";
|
|
27
|
+
readonly $metadata: {
|
|
28
|
+
httpStatusCode: number;
|
|
29
|
+
};
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* Read a request that arrived at the served AWS API endpoint as a REST-JSON
|
|
33
|
+
* request.
|
|
34
|
+
*
|
|
35
|
+
* A trailing separator is dropped, because AWS writes the path of a collection
|
|
36
|
+
* operation both ways: `CreateEventSourceMapping` is documented at
|
|
37
|
+
* `/2015-03-31/event-source-mappings/` and `CreateFunction` at
|
|
38
|
+
* `/2015-03-31/functions`. Neither names a segment after the last one, so
|
|
39
|
+
* neither is told from the other here.
|
|
40
|
+
*/
|
|
41
|
+
export declare function readSimRestJsonRequest(request: Request, body: Uint8Array): SimRestJsonRequest;
|
|
42
|
+
/**
|
|
43
|
+
* Split a path into the segments a route template is matched against.
|
|
44
|
+
*
|
|
45
|
+
* Each segment is decoded on its own. A label carrying a separator sends it
|
|
46
|
+
* encoded, so decoding the whole path at once would turn one segment into two
|
|
47
|
+
* and match the request against a template it does not belong to.
|
|
48
|
+
*/
|
|
49
|
+
export declare function simRestJsonPathSegments(path: string): readonly string[];
|
|
50
|
+
/**
|
|
51
|
+
* Read a request body as the JSON object it states.
|
|
52
|
+
*
|
|
53
|
+
* An operation taking no body members sends none, which is the input `{}`.
|
|
54
|
+
* Anything that is not an object is a body this endpoint has no members to
|
|
55
|
+
* read out of, and is reported the same way an unparseable one is.
|
|
56
|
+
*/
|
|
57
|
+
export declare function readSimRestJsonBody(body: Uint8Array): Readonly<Record<string, unknown>>;
|
|
58
|
+
//# sourceMappingURL=sim-rest-json-request.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sim-rest-json-request.d.ts","sourceRoot":"","sources":["../../../../../src/serve/http/api/rest-json/sim-rest-json-request.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AACH,MAAM,WAAW,kBAAkB;IACjC,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAC;IAExB,8DAA8D;IAC9D,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IAEtB,8DAA8D;IAC9D,QAAQ,CAAC,QAAQ,EAAE,SAAS,MAAM,EAAE,CAAC;IAErC,QAAQ,CAAC,KAAK,EAAE,eAAe,CAAC;IAChC,QAAQ,CAAC,OAAO,EAAE,OAAO,CAAC;IAC1B,QAAQ,CAAC,IAAI,EAAE,UAAU,CAAC;CAC3B;AAED;;;;;GAKG;AACH,qBAAa,6BAA8B,SAAQ,KAAK;IACtD,SAAyB,IAAI,4BAA4B;IACzD,SAAgB,SAAS;QAAK,cAAc;MAAQ;CACrD;AAED;;;;;;;;;GASG;AACH,wBAAgB,sBAAsB,CACpC,OAAO,EAAE,OAAO,EAChB,IAAI,EAAE,UAAU,GACf,kBAAkB,CAWpB;AAED;;;;;;GAMG;AACH,wBAAgB,uBAAuB,CAAC,IAAI,EAAE,MAAM,GAAG,SAAS,MAAM,EAAE,CAKvE;AAED;;;;;;GAMG;AACH,wBAAgB,mBAAmB,CACjC,IAAI,EAAE,UAAU,GACf,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC,CAuBnC"}
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* A body that states itself as JSON and is not.
|
|
3
|
+
*
|
|
4
|
+
* Real AWS answers this as `SerializationException`, and an SDK raises it under
|
|
5
|
+
* that name rather than reporting whatever the parser happened to say.
|
|
6
|
+
*/
|
|
7
|
+
export class SimRestJsonSerializationError extends Error {
|
|
8
|
+
name = "SerializationException";
|
|
9
|
+
$metadata = { httpStatusCode: 400 };
|
|
10
|
+
}
|
|
11
|
+
/**
|
|
12
|
+
* Read a request that arrived at the served AWS API endpoint as a REST-JSON
|
|
13
|
+
* request.
|
|
14
|
+
*
|
|
15
|
+
* A trailing separator is dropped, because AWS writes the path of a collection
|
|
16
|
+
* operation both ways: `CreateEventSourceMapping` is documented at
|
|
17
|
+
* `/2015-03-31/event-source-mappings/` and `CreateFunction` at
|
|
18
|
+
* `/2015-03-31/functions`. Neither names a segment after the last one, so
|
|
19
|
+
* neither is told from the other here.
|
|
20
|
+
*/
|
|
21
|
+
export function readSimRestJsonRequest(request, body) {
|
|
22
|
+
const url = new URL(request.url);
|
|
23
|
+
return {
|
|
24
|
+
method: request.method,
|
|
25
|
+
path: url.pathname,
|
|
26
|
+
segments: simRestJsonPathSegments(url.pathname),
|
|
27
|
+
query: url.searchParams,
|
|
28
|
+
headers: request.headers,
|
|
29
|
+
body,
|
|
30
|
+
};
|
|
31
|
+
}
|
|
32
|
+
/**
|
|
33
|
+
* Split a path into the segments a route template is matched against.
|
|
34
|
+
*
|
|
35
|
+
* Each segment is decoded on its own. A label carrying a separator sends it
|
|
36
|
+
* encoded, so decoding the whole path at once would turn one segment into two
|
|
37
|
+
* and match the request against a template it does not belong to.
|
|
38
|
+
*/
|
|
39
|
+
export function simRestJsonPathSegments(path) {
|
|
40
|
+
return path
|
|
41
|
+
.split("/")
|
|
42
|
+
.filter((segment) => segment.length > 0)
|
|
43
|
+
.map((segment) => decodeURIComponent(segment));
|
|
44
|
+
}
|
|
45
|
+
/**
|
|
46
|
+
* Read a request body as the JSON object it states.
|
|
47
|
+
*
|
|
48
|
+
* An operation taking no body members sends none, which is the input `{}`.
|
|
49
|
+
* Anything that is not an object is a body this endpoint has no members to
|
|
50
|
+
* read out of, and is reported the same way an unparseable one is.
|
|
51
|
+
*/
|
|
52
|
+
export function readSimRestJsonBody(body) {
|
|
53
|
+
if (body.byteLength === 0) {
|
|
54
|
+
return {};
|
|
55
|
+
}
|
|
56
|
+
let value;
|
|
57
|
+
try {
|
|
58
|
+
value = JSON.parse(Buffer.from(body).toString("utf8"));
|
|
59
|
+
}
|
|
60
|
+
catch (error) {
|
|
61
|
+
throw new SimRestJsonSerializationError(`Could not read the request body as JSON: ${error instanceof Error ? error.message : String(error)}`);
|
|
62
|
+
}
|
|
63
|
+
if (typeof value !== "object" || value === null || Array.isArray(value)) {
|
|
64
|
+
throw new SimRestJsonSerializationError("The request body is not a JSON object");
|
|
65
|
+
}
|
|
66
|
+
return value;
|
|
67
|
+
}
|
|
68
|
+
//# sourceMappingURL=sim-rest-json-request.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sim-rest-json-request.js","sourceRoot":"","sources":["../../../../../src/serve/http/api/rest-json/sim-rest-json-request.ts"],"names":[],"mappings":"AAsBA;;;;;GAKG;AACH,MAAM,OAAO,6BAA8B,SAAQ,KAAK;IAC7B,IAAI,GAAG,wBAAwB,CAAC;IACzC,SAAS,GAAG,EAAE,cAAc,EAAE,GAAG,EAAE,CAAC;CACrD;AAED;;;;;;;;;GASG;AACH,MAAM,UAAU,sBAAsB,CACpC,OAAgB,EAChB,IAAgB;IAEhB,MAAM,GAAG,GAAG,IAAI,GAAG,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC;IAEjC,OAAO;QACL,MAAM,EAAE,OAAO,CAAC,MAAM;QACtB,IAAI,EAAE,GAAG,CAAC,QAAQ;QAClB,QAAQ,EAAE,uBAAuB,CAAC,GAAG,CAAC,QAAQ,CAAC;QAC/C,KAAK,EAAE,GAAG,CAAC,YAAY;QACvB,OAAO,EAAE,OAAO,CAAC,OAAO;QACxB,IAAI;KACL,CAAC;AACJ,CAAC;AAED;;;;;;GAMG;AACH,MAAM,UAAU,uBAAuB,CAAC,IAAY;IAClD,OAAO,IAAI;SACR,KAAK,CAAC,GAAG,CAAC;SACV,MAAM,CAAC,CAAC,OAAO,EAAE,EAAE,CAAC,OAAO,CAAC,MAAM,GAAG,CAAC,CAAC;SACvC,GAAG,CAAC,CAAC,OAAO,EAAE,EAAE,CAAC,kBAAkB,CAAC,OAAO,CAAC,CAAC,CAAC;AACnD,CAAC;AAED;;;;;;GAMG;AACH,MAAM,UAAU,mBAAmB,CACjC,IAAgB;IAEhB,IAAI,IAAI,CAAC,UAAU,KAAK,CAAC,EAAE,CAAC;QAC1B,OAAO,EAAE,CAAC;IACZ,CAAC;IAED,IAAI,KAAc,CAAC;IACnB,IAAI,CAAC;QACH,KAAK,GAAG,IAAI,CAAC,KAAK,CAAC,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,QAAQ,CAAC,MAAM,CAAC,CAAY,CAAC;IACpE,CAAC;IAAC,OAAO,KAAK,EAAE,CAAC;QACf,MAAM,IAAI,6BAA6B,CACrC,4CACE,KAAK,YAAY,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC,MAAM,CAAC,KAAK,CACvD,EAAE,CACH,CAAC;IACJ,CAAC;IAED,IAAI,OAAO,KAAK,KAAK,QAAQ,IAAI,KAAK,KAAK,IAAI,IAAI,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,EAAE,CAAC;QACxE,MAAM,IAAI,6BAA6B,CACrC,uCAAuC,CACxC,CAAC;IACJ,CAAC;IAED,OAAO,KAAgC,CAAC;AAC1C,CAAC"}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import type { SimRestJsonOutput } from "./sim-rest-json-route.type.js";
|
|
2
|
+
/**
|
|
3
|
+
* Writes the responses of a REST-JSON service.
|
|
4
|
+
*
|
|
5
|
+
* A REST-JSON response is the operation's output as a JSON object, at the
|
|
6
|
+
* status the operation answers with. There is no envelope around it and no
|
|
7
|
+
* operation name in it, which is the whole of what separates this from the
|
|
8
|
+
* Query and REST-XML protocols on the way back.
|
|
9
|
+
*/
|
|
10
|
+
export declare class SimRestJsonProtocol {
|
|
11
|
+
/**
|
|
12
|
+
* Answer an operation with the members it produced.
|
|
13
|
+
*
|
|
14
|
+
* `$metadata` is dropped, since it is the SDK's record of the response
|
|
15
|
+
* rather than a member of it, and the SDK builds its own from what it
|
|
16
|
+
* receives. A status with no content answers with no body, as HTTP requires.
|
|
17
|
+
*/
|
|
18
|
+
response(output: SimRestJsonOutput, status: number): Response;
|
|
19
|
+
/**
|
|
20
|
+
* Refuse a request by name, in the shape an SDK reads an error out of.
|
|
21
|
+
*
|
|
22
|
+
* The name goes in the header the REST-JSON protocol reserves for it and in
|
|
23
|
+
* the body, because a client reads whichever it finds first.
|
|
24
|
+
*/
|
|
25
|
+
error(status: number, code: string, message: string): Response;
|
|
26
|
+
/**
|
|
27
|
+
* Report what a simulated operation threw.
|
|
28
|
+
*
|
|
29
|
+
* A simulated service error already carries the AWS exception name and the
|
|
30
|
+
* status real AWS answers with, so an SDK raises it under the name a handler
|
|
31
|
+
* catching it in production would see.
|
|
32
|
+
*/
|
|
33
|
+
failure(error: unknown): Response;
|
|
34
|
+
}
|
|
35
|
+
//# sourceMappingURL=sim-rest-json-response.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sim-rest-json-response.d.ts","sourceRoot":"","sources":["../../../../../src/serve/http/api/rest-json/sim-rest-json-response.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,+BAA+B,CAAC;AAIvE;;;;;;;GAOG;AACH,qBAAa,mBAAmB;IAC9B;;;;;;OAMG;IACH,QAAQ,CAAC,MAAM,EAAE,iBAAiB,EAAE,MAAM,EAAE,MAAM,GAAG,QAAQ,CAW5D;IAED;;;;;OAKG;IACH,KAAK,CAAC,MAAM,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,GAAG,QAAQ,CAK7D;IAED;;;;;;OAMG;IACH,OAAO,CAAC,KAAK,EAAE,OAAO,GAAG,QAAQ,CAKhC;CACF"}
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
import { simSdkWireErrorStatusCode } from "../../../../sdk/wire/sim-sdk-wire-response.js";
|
|
2
|
+
import { simSdkWireJsonBody } from "../../../../sdk/wire/sim-sdk-wire-json.js";
|
|
3
|
+
const jsonContentType = { "content-type": "application/json" };
|
|
4
|
+
/**
|
|
5
|
+
* Writes the responses of a REST-JSON service.
|
|
6
|
+
*
|
|
7
|
+
* A REST-JSON response is the operation's output as a JSON object, at the
|
|
8
|
+
* status the operation answers with. There is no envelope around it and no
|
|
9
|
+
* operation name in it, which is the whole of what separates this from the
|
|
10
|
+
* Query and REST-XML protocols on the way back.
|
|
11
|
+
*/
|
|
12
|
+
export class SimRestJsonProtocol {
|
|
13
|
+
/**
|
|
14
|
+
* Answer an operation with the members it produced.
|
|
15
|
+
*
|
|
16
|
+
* `$metadata` is dropped, since it is the SDK's record of the response
|
|
17
|
+
* rather than a member of it, and the SDK builds its own from what it
|
|
18
|
+
* receives. A status with no content answers with no body, as HTTP requires.
|
|
19
|
+
*/
|
|
20
|
+
response(output, status) {
|
|
21
|
+
if (status === 204) {
|
|
22
|
+
return new Response(null, { status });
|
|
23
|
+
}
|
|
24
|
+
const { $metadata: _metadata, ...members } = output;
|
|
25
|
+
return new Response(simSdkWireJsonBody(members), {
|
|
26
|
+
status,
|
|
27
|
+
headers: jsonContentType,
|
|
28
|
+
});
|
|
29
|
+
}
|
|
30
|
+
/**
|
|
31
|
+
* Refuse a request by name, in the shape an SDK reads an error out of.
|
|
32
|
+
*
|
|
33
|
+
* The name goes in the header the REST-JSON protocol reserves for it and in
|
|
34
|
+
* the body, because a client reads whichever it finds first.
|
|
35
|
+
*/
|
|
36
|
+
error(status, code, message) {
|
|
37
|
+
return new Response(simSdkWireJsonBody({ __type: code, message }), {
|
|
38
|
+
status,
|
|
39
|
+
headers: { ...jsonContentType, "x-amzn-errortype": code },
|
|
40
|
+
});
|
|
41
|
+
}
|
|
42
|
+
/**
|
|
43
|
+
* Report what a simulated operation threw.
|
|
44
|
+
*
|
|
45
|
+
* A simulated service error already carries the AWS exception name and the
|
|
46
|
+
* status real AWS answers with, so an SDK raises it under the name a handler
|
|
47
|
+
* catching it in production would see.
|
|
48
|
+
*/
|
|
49
|
+
failure(error) {
|
|
50
|
+
const code = error instanceof Error ? error.name : "InternalFailure";
|
|
51
|
+
const message = error instanceof Error ? error.message : String(error);
|
|
52
|
+
return this.error(simSdkWireErrorStatusCode(error), code, message);
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
//# sourceMappingURL=sim-rest-json-response.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sim-rest-json-response.js","sourceRoot":"","sources":["../../../../../src/serve/http/api/rest-json/sim-rest-json-response.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,yBAAyB,EAAE,MAAM,+CAA+C,CAAC;AAC1F,OAAO,EAAE,kBAAkB,EAAE,MAAM,2CAA2C,CAAC;AAG/E,MAAM,eAAe,GAAG,EAAE,cAAc,EAAE,kBAAkB,EAAE,CAAC;AAE/D;;;;;;;GAOG;AACH,MAAM,OAAO,mBAAmB;IAC9B;;;;;;OAMG;IACH,QAAQ,CAAC,MAAyB,EAAE,MAAc;QAChD,IAAI,MAAM,KAAK,GAAG,EAAE,CAAC;YACnB,OAAO,IAAI,QAAQ,CAAC,IAAI,EAAE,EAAE,MAAM,EAAE,CAAC,CAAC;QACxC,CAAC;QAED,MAAM,EAAE,SAAS,EAAE,SAAS,EAAE,GAAG,OAAO,EAAE,GAAG,MAAM,CAAC;QAEpD,OAAO,IAAI,QAAQ,CAAC,kBAAkB,CAAC,OAAO,CAAC,EAAE;YAC/C,MAAM;YACN,OAAO,EAAE,eAAe;SACzB,CAAC,CAAC;IACL,CAAC;IAED;;;;;OAKG;IACH,KAAK,CAAC,MAAc,EAAE,IAAY,EAAE,OAAe;QACjD,OAAO,IAAI,QAAQ,CAAC,kBAAkB,CAAC,EAAE,MAAM,EAAE,IAAI,EAAE,OAAO,EAAE,CAAC,EAAE;YACjE,MAAM;YACN,OAAO,EAAE,EAAE,GAAG,eAAe,EAAE,kBAAkB,EAAE,IAAI,EAAE;SAC1D,CAAC,CAAC;IACL,CAAC;IAED;;;;;;OAMG;IACH,OAAO,CAAC,KAAc;QACpB,MAAM,IAAI,GAAG,KAAK,YAAY,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC,CAAC,iBAAiB,CAAC;QACrE,MAAM,OAAO,GAAG,KAAK,YAAY,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC;QAEvE,OAAO,IAAI,CAAC,KAAK,CAAC,yBAAyB,CAAC,KAAK,CAAC,EAAE,IAAI,EAAE,OAAO,CAAC,CAAC;IACrE,CAAC;CACF"}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import type { SimRestJsonInput } from "./sim-rest-json-input.js";
|
|
2
|
+
/**
|
|
3
|
+
* One simulated operation's output, as a route writes its response from.
|
|
4
|
+
*/
|
|
5
|
+
export type SimRestJsonOutput = Readonly<Record<string, unknown>>;
|
|
6
|
+
/**
|
|
7
|
+
* One REST-JSON operation, and how to read its input out of a request.
|
|
8
|
+
*
|
|
9
|
+
* REST-JSON states its operation in the method and a path template, so a route
|
|
10
|
+
* is matched on those two and nothing else. A template segment written
|
|
11
|
+
* `{Name}` matches any one segment and hands it to the route under that name;
|
|
12
|
+
* every other segment matches itself and only itself.
|
|
13
|
+
*/
|
|
14
|
+
export interface SimRestJsonRoute {
|
|
15
|
+
readonly method: string;
|
|
16
|
+
/**
|
|
17
|
+
* The path template this operation is reached at, such as
|
|
18
|
+
* `/2015-03-31/functions/{FunctionName}/invocations`.
|
|
19
|
+
*/
|
|
20
|
+
readonly path: string;
|
|
21
|
+
readonly commandName: string;
|
|
22
|
+
readonly input: (input: SimRestJsonInput) => Record<string, unknown>;
|
|
23
|
+
/**
|
|
24
|
+
* The status this operation answers with, which real AWS varies by
|
|
25
|
+
* operation rather than by outcome: a creation answers `201`, a removal
|
|
26
|
+
* `204` and a read `200`. Defaults to `200`.
|
|
27
|
+
*/
|
|
28
|
+
readonly status?: number | undefined;
|
|
29
|
+
/**
|
|
30
|
+
* How to write the response, for an operation that answers with something
|
|
31
|
+
* other than its output as JSON. Lambda's `Invoke` is one: it answers with
|
|
32
|
+
* the function's own payload, and puts its output members in the status and
|
|
33
|
+
* in headers around it.
|
|
34
|
+
*/
|
|
35
|
+
readonly output?: ((output: SimRestJsonOutput) => Response) | undefined;
|
|
36
|
+
}
|
|
37
|
+
//# sourceMappingURL=sim-rest-json-route.type.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sim-rest-json-route.type.d.ts","sourceRoot":"","sources":["../../../../../src/serve/http/api/rest-json/sim-rest-json-route.type.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,0BAA0B,CAAC;AAEjE;;GAEG;AACH,MAAM,MAAM,iBAAiB,GAAG,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC;AAElE;;;;;;;GAOG;AACH,MAAM,WAAW,gBAAgB;IAC/B,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAC;IAExB;;;OAGG;IACH,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IAEtB,QAAQ,CAAC,WAAW,EAAE,MAAM,CAAC;IAE7B,QAAQ,CAAC,KAAK,EAAE,CAAC,KAAK,EAAE,gBAAgB,KAAK,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IAErE;;;;OAIG;IACH,QAAQ,CAAC,MAAM,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAErC;;;;;OAKG;IACH,QAAQ,CAAC,MAAM,CAAC,EAAE,CAAC,CAAC,MAAM,EAAE,iBAAiB,KAAK,QAAQ,CAAC,GAAG,SAAS,CAAC;CACzE"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sim-rest-json-route.type.js","sourceRoot":"","sources":["../../../../../src/serve/http/api/rest-json/sim-rest-json-route.type.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { type SimRestJsonRequest } from "./sim-rest-json-request.js";
|
|
2
|
+
import type { SimRestJsonRoute } from "./sim-rest-json-route.type.js";
|
|
3
|
+
/**
|
|
4
|
+
* A request matched to the operation its path names, and the members that path
|
|
5
|
+
* stated along the way.
|
|
6
|
+
*/
|
|
7
|
+
export interface SimRestJsonMatch {
|
|
8
|
+
readonly route: SimRestJsonRoute;
|
|
9
|
+
readonly labels: ReadonlyMap<string, string>;
|
|
10
|
+
}
|
|
11
|
+
/**
|
|
12
|
+
* Find the operation a REST-JSON request names.
|
|
13
|
+
*
|
|
14
|
+
* A template matches a request only when it has the same number of segments
|
|
15
|
+
* and every literal segment is the segment the request sent. That is what
|
|
16
|
+
* keeps a path this endpoint has no operation for from being answered by one
|
|
17
|
+
* that happens to share its method: `GET /2015-03-31/functions/orders/aliases`
|
|
18
|
+
* has no route, and matches neither `GET /2015-03-31/functions/{FunctionName}`
|
|
19
|
+
* nor anything else, because a label stands for one segment rather than for
|
|
20
|
+
* the rest of the path.
|
|
21
|
+
*
|
|
22
|
+
* Returns undefined for a request matching no route, which is either an
|
|
23
|
+
* operation the simulated service has not implemented or one the real service
|
|
24
|
+
* does not have.
|
|
25
|
+
*/
|
|
26
|
+
export declare function resolveSimRestJsonRoute(routes: readonly SimRestJsonRoute[], request: SimRestJsonRequest): SimRestJsonMatch | undefined;
|
|
27
|
+
//# sourceMappingURL=sim-rest-json-routes.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sim-rest-json-routes.d.ts","sourceRoot":"","sources":["../../../../../src/serve/http/api/rest-json/sim-rest-json-routes.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,KAAK,kBAAkB,EACxB,MAAM,4BAA4B,CAAC;AACpC,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,+BAA+B,CAAC;AAEtE;;;GAGG;AACH,MAAM,WAAW,gBAAgB;IAC/B,QAAQ,CAAC,KAAK,EAAE,gBAAgB,CAAC;IACjC,QAAQ,CAAC,MAAM,EAAE,WAAW,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;CAC9C;AAED;;;;;;;;;;;;;;GAcG;AACH,wBAAgB,uBAAuB,CACrC,MAAM,EAAE,SAAS,gBAAgB,EAAE,EACnC,OAAO,EAAE,kBAAkB,GAC1B,gBAAgB,GAAG,SAAS,CAa9B"}
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
import { simRestJsonPathSegments, } from "./sim-rest-json-request.js";
|
|
2
|
+
/**
|
|
3
|
+
* Find the operation a REST-JSON request names.
|
|
4
|
+
*
|
|
5
|
+
* A template matches a request only when it has the same number of segments
|
|
6
|
+
* and every literal segment is the segment the request sent. That is what
|
|
7
|
+
* keeps a path this endpoint has no operation for from being answered by one
|
|
8
|
+
* that happens to share its method: `GET /2015-03-31/functions/orders/aliases`
|
|
9
|
+
* has no route, and matches neither `GET /2015-03-31/functions/{FunctionName}`
|
|
10
|
+
* nor anything else, because a label stands for one segment rather than for
|
|
11
|
+
* the rest of the path.
|
|
12
|
+
*
|
|
13
|
+
* Returns undefined for a request matching no route, which is either an
|
|
14
|
+
* operation the simulated service has not implemented or one the real service
|
|
15
|
+
* does not have.
|
|
16
|
+
*/
|
|
17
|
+
export function resolveSimRestJsonRoute(routes, request) {
|
|
18
|
+
for (const route of routes) {
|
|
19
|
+
if (route.method !== request.method) {
|
|
20
|
+
continue;
|
|
21
|
+
}
|
|
22
|
+
const labels = matchSimRestJsonPath(route.path, request.segments);
|
|
23
|
+
if (labels !== undefined) {
|
|
24
|
+
return { route, labels };
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
return undefined;
|
|
28
|
+
}
|
|
29
|
+
/**
|
|
30
|
+
* Match one path template against the segments a request sent, and read the
|
|
31
|
+
* labels out of it.
|
|
32
|
+
*/
|
|
33
|
+
function matchSimRestJsonPath(template, segments) {
|
|
34
|
+
const expected = simRestJsonPathSegments(template);
|
|
35
|
+
if (expected.length !== segments.length) {
|
|
36
|
+
return undefined;
|
|
37
|
+
}
|
|
38
|
+
const labels = new Map();
|
|
39
|
+
for (const [index, part] of expected.entries()) {
|
|
40
|
+
const segment = segments.at(index) ?? "";
|
|
41
|
+
if (part.startsWith("{") && part.endsWith("}")) {
|
|
42
|
+
labels.set(part.slice(1, -1), segment);
|
|
43
|
+
continue;
|
|
44
|
+
}
|
|
45
|
+
if (part !== segment) {
|
|
46
|
+
return undefined;
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
return labels;
|
|
50
|
+
}
|
|
51
|
+
//# sourceMappingURL=sim-rest-json-routes.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sim-rest-json-routes.js","sourceRoot":"","sources":["../../../../../src/serve/http/api/rest-json/sim-rest-json-routes.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,uBAAuB,GAExB,MAAM,4BAA4B,CAAC;AAYpC;;;;;;;;;;;;;;GAcG;AACH,MAAM,UAAU,uBAAuB,CACrC,MAAmC,EACnC,OAA2B;IAE3B,KAAK,MAAM,KAAK,IAAI,MAAM,EAAE,CAAC;QAC3B,IAAI,KAAK,CAAC,MAAM,KAAK,OAAO,CAAC,MAAM,EAAE,CAAC;YACpC,SAAS;QACX,CAAC;QAED,MAAM,MAAM,GAAG,oBAAoB,CAAC,KAAK,CAAC,IAAI,EAAE,OAAO,CAAC,QAAQ,CAAC,CAAC;QAClE,IAAI,MAAM,KAAK,SAAS,EAAE,CAAC;YACzB,OAAO,EAAE,KAAK,EAAE,MAAM,EAAE,CAAC;QAC3B,CAAC;IACH,CAAC;IAED,OAAO,SAAS,CAAC;AACnB,CAAC;AAED;;;GAGG;AACH,SAAS,oBAAoB,CAC3B,QAAgB,EAChB,QAA2B;IAE3B,MAAM,QAAQ,GAAG,uBAAuB,CAAC,QAAQ,CAAC,CAAC;IACnD,IAAI,QAAQ,CAAC,MAAM,KAAK,QAAQ,CAAC,MAAM,EAAE,CAAC;QACxC,OAAO,SAAS,CAAC;IACnB,CAAC;IAED,MAAM,MAAM,GAAG,IAAI,GAAG,EAAkB,CAAC;IACzC,KAAK,MAAM,CAAC,KAAK,EAAE,IAAI,CAAC,IAAI,QAAQ,CAAC,OAAO,EAAE,EAAE,CAAC;QAC/C,MAAM,OAAO,GAAG,QAAQ,CAAC,EAAE,CAAC,KAAK,CAAC,IAAI,EAAE,CAAC;QAEzC,IAAI,IAAI,CAAC,UAAU,CAAC,GAAG,CAAC,IAAI,IAAI,CAAC,QAAQ,CAAC,GAAG,CAAC,EAAE,CAAC;YAC/C,MAAM,CAAC,GAAG,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,EAAE,OAAO,CAAC,CAAC;YACvC,SAAS;QACX,CAAC;QAED,IAAI,IAAI,KAAK,OAAO,EAAE,CAAC;YACrB,OAAO,SAAS,CAAC;QACnB,CAAC;IACH,CAAC;IAED,OAAO,MAAM,CAAC;AAChB,CAAC"}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import type { SimAws } from "../../../service/aws/sim-aws.js";
|
|
2
|
+
interface SimAwsApiEndpointProperties {
|
|
3
|
+
readonly simAws: SimAws;
|
|
4
|
+
}
|
|
5
|
+
/**
|
|
6
|
+
* The general AWS service API, served on one endpoint.
|
|
7
|
+
*
|
|
8
|
+
* Every other served endpoint is routed by hostname, because every other
|
|
9
|
+
* served endpoint belongs to a resource that was issued a hostname. A client
|
|
10
|
+
* given `--endpoint-url` or `AWS_ENDPOINT_URL` sends `Host: localhost:<port>`
|
|
11
|
+
* for every service, so there is no hostname to route on. What the request
|
|
12
|
+
* does carry is its SigV4 credential scope, which names the service and the
|
|
13
|
+
* Region it was signed for, and a client cannot alter either without
|
|
14
|
+
* invalidating the signature.
|
|
15
|
+
*
|
|
16
|
+
* So this endpoint routes on the credential scope. One endpoint URL then
|
|
17
|
+
* serves every simulated service, which is the shape `--endpoint-url` wants.
|
|
18
|
+
*
|
|
19
|
+
* The scope also says which protocol to read the request with. Most simulated
|
|
20
|
+
* services speak the AWS JSON protocol and name their operation in a header.
|
|
21
|
+
* The rest name it somewhere else, and each is read by an endpoint of its own,
|
|
22
|
+
* registered under its signing name.
|
|
23
|
+
*/
|
|
24
|
+
export declare class SimAwsApiEndpoint {
|
|
25
|
+
private readonly simAws;
|
|
26
|
+
private readonly dispatcher;
|
|
27
|
+
private readonly protocols;
|
|
28
|
+
constructor(properties: SimAwsApiEndpointProperties);
|
|
29
|
+
/**
|
|
30
|
+
* Answer an AWS service API request, or decline one that is not signed.
|
|
31
|
+
*
|
|
32
|
+
* An unsigned request says nothing about which service it is for, so it is
|
|
33
|
+
* declined rather than guessed at, and the caller falls back to whatever it
|
|
34
|
+
* does for a hostname the simulation serves nothing at.
|
|
35
|
+
*/
|
|
36
|
+
handle(request: Request): Promise<Response | undefined>;
|
|
37
|
+
}
|
|
38
|
+
export {};
|
|
39
|
+
//# sourceMappingURL=sim-aws-api-endpoint.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sim-aws-api-endpoint.d.ts","sourceRoot":"","sources":["../../../../src/serve/http/api/sim-aws-api-endpoint.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,iCAAiC,CAAC;AAO9D,UAAU,2BAA2B;IACnC,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAC;CACzB;AAED;;;;;;;;;;;;;;;;;;GAkBG;AACH,qBAAa,iBAAiB;IAC5B,OAAO,CAAC,QAAQ,CAAC,MAAM,CAAS;IAChC,OAAO,CAAC,QAAQ,CAAC,UAAU,CAAuB;IAClD,OAAO,CAAC,QAAQ,CAAC,SAAS,CAA8C;IAExE,YAAY,UAAU,EAAE,2BAA2B,EAIlD;IAED;;;;;;OAMG;IACG,MAAM,CAAC,OAAO,EAAE,OAAO,GAAG,OAAO,CAAC,QAAQ,GAAG,SAAS,CAAC,CA0C5D;CACF"}
|
|
@@ -0,0 +1,105 @@
|
|
|
1
|
+
import { SimSdkUnbridgedWireRequestError } from "../../../sdk/error/sim-sdk.error.js";
|
|
2
|
+
import { SimSdkWireDispatcher } from "../../../sdk/wire/sim-sdk-wire-dispatcher.js";
|
|
3
|
+
import { readSimSdkWireCredentialScope } from "../../../sdk/wire/sim-sdk-wire-operation.js";
|
|
4
|
+
import { SimAwsReceivedRequest } from "../request/sim-aws-received-request.js";
|
|
5
|
+
import { simAwsProtocolEndpoints, } from "./sim-aws-api-protocols.js";
|
|
6
|
+
/**
|
|
7
|
+
* The general AWS service API, served on one endpoint.
|
|
8
|
+
*
|
|
9
|
+
* Every other served endpoint is routed by hostname, because every other
|
|
10
|
+
* served endpoint belongs to a resource that was issued a hostname. A client
|
|
11
|
+
* given `--endpoint-url` or `AWS_ENDPOINT_URL` sends `Host: localhost:<port>`
|
|
12
|
+
* for every service, so there is no hostname to route on. What the request
|
|
13
|
+
* does carry is its SigV4 credential scope, which names the service and the
|
|
14
|
+
* Region it was signed for, and a client cannot alter either without
|
|
15
|
+
* invalidating the signature.
|
|
16
|
+
*
|
|
17
|
+
* So this endpoint routes on the credential scope. One endpoint URL then
|
|
18
|
+
* serves every simulated service, which is the shape `--endpoint-url` wants.
|
|
19
|
+
*
|
|
20
|
+
* The scope also says which protocol to read the request with. Most simulated
|
|
21
|
+
* services speak the AWS JSON protocol and name their operation in a header.
|
|
22
|
+
* The rest name it somewhere else, and each is read by an endpoint of its own,
|
|
23
|
+
* registered under its signing name.
|
|
24
|
+
*/
|
|
25
|
+
export class SimAwsApiEndpoint {
|
|
26
|
+
simAws;
|
|
27
|
+
dispatcher;
|
|
28
|
+
protocols;
|
|
29
|
+
constructor(properties) {
|
|
30
|
+
this.simAws = properties.simAws;
|
|
31
|
+
this.dispatcher = new SimSdkWireDispatcher(properties.simAws);
|
|
32
|
+
this.protocols = simAwsProtocolEndpoints(properties.simAws);
|
|
33
|
+
}
|
|
34
|
+
/**
|
|
35
|
+
* Answer an AWS service API request, or decline one that is not signed.
|
|
36
|
+
*
|
|
37
|
+
* An unsigned request says nothing about which service it is for, so it is
|
|
38
|
+
* declined rather than guessed at, and the caller falls back to whatever it
|
|
39
|
+
* does for a hostname the simulation serves nothing at.
|
|
40
|
+
*/
|
|
41
|
+
async handle(request) {
|
|
42
|
+
const received = await SimAwsReceivedRequest.receive(request);
|
|
43
|
+
const wireRequest = simAwsApiWireRequest(request, received.body);
|
|
44
|
+
const scope = readSimSdkWireCredentialScope(wireRequest);
|
|
45
|
+
if (scope === undefined) {
|
|
46
|
+
return undefined;
|
|
47
|
+
}
|
|
48
|
+
const caller = this.simAws.resolveRequestCaller(request, {
|
|
49
|
+
body: received.body,
|
|
50
|
+
expectedScope: {
|
|
51
|
+
serviceName: scope.signingName,
|
|
52
|
+
regionName: scope.regionName,
|
|
53
|
+
},
|
|
54
|
+
});
|
|
55
|
+
const protocol = this.protocols.get(scope.signingName);
|
|
56
|
+
if (protocol !== undefined) {
|
|
57
|
+
return await protocol.handle(request, received.body ?? new Uint8Array(), caller.toCaller(), scope.regionName);
|
|
58
|
+
}
|
|
59
|
+
let response;
|
|
60
|
+
try {
|
|
61
|
+
response = await this.dispatcher.dispatch(wireRequest, caller.toCaller());
|
|
62
|
+
}
|
|
63
|
+
catch (error) {
|
|
64
|
+
if (error instanceof SimSdkUnbridgedWireRequestError) {
|
|
65
|
+
return simAwsUnservedProtocolResponse(error);
|
|
66
|
+
}
|
|
67
|
+
throw error;
|
|
68
|
+
}
|
|
69
|
+
return new Response(response.body.length === 0 ? null : response.body, {
|
|
70
|
+
status: response.statusCode,
|
|
71
|
+
headers: { ...response.headers },
|
|
72
|
+
});
|
|
73
|
+
}
|
|
74
|
+
}
|
|
75
|
+
/**
|
|
76
|
+
* Refuse a request whose protocol this endpoint cannot read.
|
|
77
|
+
*
|
|
78
|
+
* `501 Not Implemented` rather than a server error, because the two differ in
|
|
79
|
+
* a way the client acts on: an SDK retries a 500 and gives up on a 501. A
|
|
80
|
+
* request this endpoint will never understand is answered once, and the reason
|
|
81
|
+
* travels in the body for whoever reads the response.
|
|
82
|
+
*/
|
|
83
|
+
function simAwsUnservedProtocolResponse(error) {
|
|
84
|
+
return new Response(`${error.message}\n`, {
|
|
85
|
+
status: 501,
|
|
86
|
+
headers: { "content-type": "text/plain; charset=utf-8" },
|
|
87
|
+
});
|
|
88
|
+
}
|
|
89
|
+
/**
|
|
90
|
+
* Read a received request as the AWS API request it is on the wire.
|
|
91
|
+
*
|
|
92
|
+
* The body is passed in already buffered, because SigV4 verification needs
|
|
93
|
+
* the same bytes and a request body can only be read once.
|
|
94
|
+
*/
|
|
95
|
+
function simAwsApiWireRequest(request, body) {
|
|
96
|
+
const url = new URL(request.url);
|
|
97
|
+
return {
|
|
98
|
+
method: request.method,
|
|
99
|
+
hostname: url.hostname,
|
|
100
|
+
path: `${url.pathname}${url.search}`,
|
|
101
|
+
headers: Object.fromEntries(request.headers),
|
|
102
|
+
body: body ?? new Uint8Array(),
|
|
103
|
+
};
|
|
104
|
+
}
|
|
105
|
+
//# sourceMappingURL=sim-aws-api-endpoint.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sim-aws-api-endpoint.js","sourceRoot":"","sources":["../../../../src/serve/http/api/sim-aws-api-endpoint.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,+BAA+B,EAAE,MAAM,qCAAqC,CAAC;AACtF,OAAO,EAAE,oBAAoB,EAAE,MAAM,8CAA8C,CAAC;AACpF,OAAO,EAAE,6BAA6B,EAAE,MAAM,6CAA6C,CAAC;AAG5F,OAAO,EAAE,qBAAqB,EAAE,MAAM,wCAAwC,CAAC;AAC/E,OAAO,EACL,uBAAuB,GAExB,MAAM,4BAA4B,CAAC;AAMpC;;;;;;;;;;;;;;;;;;GAkBG;AACH,MAAM,OAAO,iBAAiB;IACX,MAAM,CAAS;IACf,UAAU,CAAuB;IACjC,SAAS,CAA8C;IAExE,YAAY,UAAuC;QACjD,IAAI,CAAC,MAAM,GAAG,UAAU,CAAC,MAAM,CAAC;QAChC,IAAI,CAAC,UAAU,GAAG,IAAI,oBAAoB,CAAC,UAAU,CAAC,MAAM,CAAC,CAAC;QAC9D,IAAI,CAAC,SAAS,GAAG,uBAAuB,CAAC,UAAU,CAAC,MAAM,CAAC,CAAC;IAC9D,CAAC;IAED;;;;;;OAMG;IACH,KAAK,CAAC,MAAM,CAAC,OAAgB;QAC3B,MAAM,QAAQ,GAAG,MAAM,qBAAqB,CAAC,OAAO,CAAC,OAAO,CAAC,CAAC;QAC9D,MAAM,WAAW,GAAG,oBAAoB,CAAC,OAAO,EAAE,QAAQ,CAAC,IAAI,CAAC,CAAC;QAEjE,MAAM,KAAK,GAAG,6BAA6B,CAAC,WAAW,CAAC,CAAC;QACzD,IAAI,KAAK,KAAK,SAAS,EAAE,CAAC;YACxB,OAAO,SAAS,CAAC;QACnB,CAAC;QAED,MAAM,MAAM,GAAG,IAAI,CAAC,MAAM,CAAC,oBAAoB,CAAC,OAAO,EAAE;YACvD,IAAI,EAAE,QAAQ,CAAC,IAAI;YACnB,aAAa,EAAE;gBACb,WAAW,EAAE,KAAK,CAAC,WAAW;gBAC9B,UAAU,EAAE,KAAK,CAAC,UAAU;aAC7B;SACF,CAAC,CAAC;QAEH,MAAM,QAAQ,GAAG,IAAI,CAAC,SAAS,CAAC,GAAG,CAAC,KAAK,CAAC,WAAW,CAAC,CAAC;QACvD,IAAI,QAAQ,KAAK,SAAS,EAAE,CAAC;YAC3B,OAAO,MAAM,QAAQ,CAAC,MAAM,CAC1B,OAAO,EACP,QAAQ,CAAC,IAAI,IAAI,IAAI,UAAU,EAAE,EACjC,MAAM,CAAC,QAAQ,EAAE,EACjB,KAAK,CAAC,UAAU,CACjB,CAAC;QACJ,CAAC;QAED,IAAI,QAAQ,CAAC;QACb,IAAI,CAAC;YACH,QAAQ,GAAG,MAAM,IAAI,CAAC,UAAU,CAAC,QAAQ,CAAC,WAAW,EAAE,MAAM,CAAC,QAAQ,EAAE,CAAC,CAAC;QAC5E,CAAC;QAAC,OAAO,KAAK,EAAE,CAAC;YACf,IAAI,KAAK,YAAY,+BAA+B,EAAE,CAAC;gBACrD,OAAO,8BAA8B,CAAC,KAAK,CAAC,CAAC;YAC/C,CAAC;YAED,MAAM,KAAK,CAAC;QACd,CAAC;QAED,OAAO,IAAI,QAAQ,CAAC,QAAQ,CAAC,IAAI,CAAC,MAAM,KAAK,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,QAAQ,CAAC,IAAI,EAAE;YACrE,MAAM,EAAE,QAAQ,CAAC,UAAU;YAC3B,OAAO,EAAE,EAAE,GAAG,QAAQ,CAAC,OAAO,EAAE;SACjC,CAAC,CAAC;IACL,CAAC;CACF;AAED;;;;;;;GAOG;AACH,SAAS,8BAA8B,CAAC,KAAY;IAClD,OAAO,IAAI,QAAQ,CAAC,GAAG,KAAK,CAAC,OAAO,IAAI,EAAE;QACxC,MAAM,EAAE,GAAG;QACX,OAAO,EAAE,EAAE,cAAc,EAAE,2BAA2B,EAAE;KACzD,CAAC,CAAC;AACL,CAAC;AAED;;;;;GAKG;AACH,SAAS,oBAAoB,CAC3B,OAAgB,EAChB,IAA4B;IAE5B,MAAM,GAAG,GAAG,IAAI,GAAG,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC;IAEjC,OAAO;QACL,MAAM,EAAE,OAAO,CAAC,MAAM;QACtB,QAAQ,EAAE,GAAG,CAAC,QAAQ;QACtB,IAAI,EAAE,GAAG,GAAG,CAAC,QAAQ,GAAG,GAAG,CAAC,MAAM,EAAE;QACpC,OAAO,EAAE,MAAM,CAAC,WAAW,CAAC,OAAO,CAAC,OAAO,CAAC;QAC5C,IAAI,EAAE,IAAI,IAAI,IAAI,UAAU,EAAE;KAC/B,CAAC;AACJ,CAAC"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type { SimAwsCaller } from "../../../service/aws/caller/sim-aws-caller.js";
|
|
2
|
+
import type { SimAws } from "../../../service/aws/sim-aws.js";
|
|
3
|
+
/**
|
|
4
|
+
* A served endpoint that reads one AWS protocol other than AWS JSON.
|
|
5
|
+
*/
|
|
6
|
+
export interface SimAwsProtocolEndpoint {
|
|
7
|
+
handle(request: Request, body: Uint8Array, caller: SimAwsCaller, regionName: string): Promise<Response>;
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* Build the endpoint for each service that reads its own protocol.
|
|
11
|
+
*/
|
|
12
|
+
export declare function simAwsProtocolEndpoints(simAws: SimAws): ReadonlyMap<string, SimAwsProtocolEndpoint>;
|
|
13
|
+
//# sourceMappingURL=sim-aws-api-protocols.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sim-aws-api-protocols.d.ts","sourceRoot":"","sources":["../../../../src/serve/http/api/sim-aws-api-protocols.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,+CAA+C,CAAC;AAClF,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,iCAAiC,CAAC;AAS9D;;GAEG;AACH,MAAM,WAAW,sBAAsB;IACrC,MAAM,CACJ,OAAO,EAAE,OAAO,EAChB,IAAI,EAAE,UAAU,EAChB,MAAM,EAAE,YAAY,EACpB,UAAU,EAAE,MAAM,GACjB,OAAO,CAAC,QAAQ,CAAC,CAAC;CACtB;AA+BD;;GAEG;AACH,wBAAgB,uBAAuB,CACrC,MAAM,EAAE,MAAM,GACb,WAAW,CAAC,MAAM,EAAE,sBAAsB,CAAC,CAM7C"}
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import { simCloudFormationApiEndpoint } from "../../../service/cloudformation/serve/sim-cloudformation-api.js";
|
|
2
|
+
import { simElbV2ApiEndpoint } from "../../../service/elbv2/serve/api/sim-elbv2-api.js";
|
|
3
|
+
import { simIamApiEndpoint } from "../../../service/iam/serve/sim-iam-api.js";
|
|
4
|
+
import { simLambdaApiEndpoint } from "../../../service/lambda/serve/api/sim-lambda-api.js";
|
|
5
|
+
import { SimS3ApiEndpoint } from "../../../service/s3/serve/api/sim-s3-api.js";
|
|
6
|
+
import { simSnsApiEndpoint } from "../../../service/sns/serve/sim-sns-api.js";
|
|
7
|
+
import { simStsApiEndpoint } from "../../../service/sts/serve/sim-sts-api.js";
|
|
8
|
+
/**
|
|
9
|
+
* The services whose requests are read by an endpoint of their own, keyed by
|
|
10
|
+
* the SigV4 signing name that routes a request to one.
|
|
11
|
+
*
|
|
12
|
+
* Most simulated services speak the AWS JSON protocol and name their operation
|
|
13
|
+
* in a header, and those are dispatched from the header without any of this.
|
|
14
|
+
* The rest name their operation somewhere the header does not reach: S3 in the
|
|
15
|
+
* method and the path, and the Query services in a form-encoded field. Each of
|
|
16
|
+
* those needs a reader, and the signing name is the only thing in the request
|
|
17
|
+
* that says which one to use, since a client given `--endpoint-url` sends the
|
|
18
|
+
* same hostname whatever service it is addressing.
|
|
19
|
+
*
|
|
20
|
+
* A service joins this by adding an entry. The value builds the endpoint from
|
|
21
|
+
* the environment it serves, so nothing is built until an endpoint exists to
|
|
22
|
+
* serve.
|
|
23
|
+
*/
|
|
24
|
+
const simAwsProtocolEndpointFactories = new Map([
|
|
25
|
+
["s3", (simAws) => new SimS3ApiEndpoint({ simAws })],
|
|
26
|
+
["sts", simStsApiEndpoint],
|
|
27
|
+
["sns", simSnsApiEndpoint],
|
|
28
|
+
["cloudformation", simCloudFormationApiEndpoint],
|
|
29
|
+
["lambda", simLambdaApiEndpoint],
|
|
30
|
+
["iam", simIamApiEndpoint],
|
|
31
|
+
["elasticloadbalancing", simElbV2ApiEndpoint],
|
|
32
|
+
]);
|
|
33
|
+
/**
|
|
34
|
+
* Build the endpoint for each service that reads its own protocol.
|
|
35
|
+
*/
|
|
36
|
+
export function simAwsProtocolEndpoints(simAws) {
|
|
37
|
+
return new Map(simAwsProtocolEndpointFactories
|
|
38
|
+
.entries()
|
|
39
|
+
.map(([signingName, build]) => [signingName, build(simAws)]));
|
|
40
|
+
}
|
|
41
|
+
//# sourceMappingURL=sim-aws-api-protocols.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sim-aws-api-protocols.js","sourceRoot":"","sources":["../../../../src/serve/http/api/sim-aws-api-protocols.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,4BAA4B,EAAE,MAAM,iEAAiE,CAAC;AAC/G,OAAO,EAAE,mBAAmB,EAAE,MAAM,mDAAmD,CAAC;AACxF,OAAO,EAAE,iBAAiB,EAAE,MAAM,2CAA2C,CAAC;AAC9E,OAAO,EAAE,oBAAoB,EAAE,MAAM,qDAAqD,CAAC;AAC3F,OAAO,EAAE,gBAAgB,EAAE,MAAM,6CAA6C,CAAC;AAC/E,OAAO,EAAE,iBAAiB,EAAE,MAAM,2CAA2C,CAAC;AAC9E,OAAO,EAAE,iBAAiB,EAAE,MAAM,2CAA2C,CAAC;AAc9E;;;;;;;;;;;;;;;GAeG;AACH,MAAM,+BAA+B,GAAG,IAAI,GAAG,CAG7C;IACA,CAAC,IAAI,EAAE,CAAC,MAAM,EAA0B,EAAE,CAAC,IAAI,gBAAgB,CAAC,EAAE,MAAM,EAAE,CAAC,CAAC;IAC5E,CAAC,KAAK,EAAE,iBAAiB,CAAC;IAC1B,CAAC,KAAK,EAAE,iBAAiB,CAAC;IAC1B,CAAC,gBAAgB,EAAE,4BAA4B,CAAC;IAChD,CAAC,QAAQ,EAAE,oBAAoB,CAAC;IAChC,CAAC,KAAK,EAAE,iBAAiB,CAAC;IAC1B,CAAC,sBAAsB,EAAE,mBAAmB,CAAC;CAC9C,CAAC,CAAC;AAEH;;GAEG;AACH,MAAM,UAAU,uBAAuB,CACrC,MAAc;IAEd,OAAO,IAAI,GAAG,CACZ,+BAA+B;SAC5B,OAAO,EAAE;SACT,GAAG,CAAC,CAAC,CAAC,WAAW,EAAE,KAAK,CAAC,EAAE,EAAE,CAAC,CAAC,WAAW,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC,CAAC,CAC/D,CAAC;AACJ,CAAC"}
|
|
@@ -9,6 +9,7 @@ export declare class SimAwsHttp {
|
|
|
9
9
|
private readonly simAws;
|
|
10
10
|
private readonly controllers;
|
|
11
11
|
private readonly authenticator;
|
|
12
|
+
private readonly apiEndpoint;
|
|
12
13
|
private readonly authFailureResponse;
|
|
13
14
|
private readonly hints;
|
|
14
15
|
constructor(properties?: SimAwsHttpProperties);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sim-aws-http.d.ts","sourceRoot":"","sources":["../../../src/serve/http/sim-aws-http.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,MAAM,EAAE,MAAM,8BAA8B,CAAC;
|
|
1
|
+
{"version":3,"file":"sim-aws-http.d.ts","sourceRoot":"","sources":["../../../src/serve/http/sim-aws-http.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,MAAM,EAAE,MAAM,8BAA8B,CAAC;AAQtD,UAAU,oBAAoB;IAC5B,QAAQ,CAAC,MAAM,CAAC,EAAE,MAAM,CAAC;CAC1B;AAED;;GAEG;AACH,qBAAa,UAAU;IACrB,OAAO,CAAC,QAAQ,CAAC,MAAM,CAAS;IAChC,OAAO,CAAC,QAAQ,CAAC,WAAW,CAAmC;IAC/D,OAAO,CAAC,QAAQ,CAAC,aAAa,CAA6B;IAC3D,OAAO,CAAC,QAAQ,CAAC,WAAW,CAAoB;IAChD,OAAO,CAAC,QAAQ,CAAC,mBAAmB,CAAmC;IACvE,OAAO,CAAC,QAAQ,CAAC,KAAK,CAA6B;IAEnD,YAAY,UAAU,GAAE,oBAAyB,EAMhD;IAED;;OAEG;IACG,KAAK,CACT,KAAK,EAAE,MAAM,GAAG,GAAG,GAAG,OAAO,EAC7B,IAAI,CAAC,EAAE,WAAW,GACjB,OAAO,CAAC,QAAQ,CAAC,CAEnB;IAED;;;;;;;OAOG;IACG,aAAa,CAAC,OAAO,EAAE,OAAO,GAAG,OAAO,CAAC,QAAQ,CAAC,CAMvD;YAEa,YAAY;IAwC1B;;;;;;OAMG;YACW,WAAW;IAgBzB,OAAO,CAAC,mBAAmB;CAU5B"}
|