@kensio/yulin 1.17.0 → 1.17.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -0
- package/dist/serve/http/local-server/sim-aws-local-location.d.ts +55 -0
- package/dist/serve/http/local-server/sim-aws-local-location.d.ts.map +1 -0
- package/dist/serve/http/local-server/sim-aws-local-location.js +80 -0
- package/dist/serve/http/local-server/sim-aws-local-location.js.map +1 -0
- package/dist/serve/http/local-server/sim-aws-local-request-handler.d.ts +7 -0
- package/dist/serve/http/local-server/sim-aws-local-request-handler.d.ts.map +1 -1
- package/dist/serve/http/local-server/sim-aws-local-request-handler.js +10 -3
- package/dist/serve/http/local-server/sim-aws-local-request-handler.js.map +1 -1
- package/dist/serve/http/local-server/sim-aws-local-server.d.ts.map +1 -1
- package/dist/serve/http/local-server/sim-aws-local-server.js +5 -0
- package/dist/serve/http/local-server/sim-aws-local-server.js.map +1 -1
- package/dist/serve/http/node-fetch-http-adapter.d.ts +9 -0
- package/dist/serve/http/node-fetch-http-adapter.d.ts.map +1 -1
- package/dist/serve/http/node-fetch-http-adapter.js +17 -1
- package/dist/serve/http/node-fetch-http-adapter.js.map +1 -1
- package/dist/service/acm/certificate/register-sim-acm-certificate.d.ts +41 -0
- package/dist/service/acm/certificate/register-sim-acm-certificate.d.ts.map +1 -0
- package/dist/service/acm/certificate/register-sim-acm-certificate.js +60 -0
- package/dist/service/acm/certificate/register-sim-acm-certificate.js.map +1 -0
- package/dist/service/acm/command/request-certificate/request-certificate.handler.d.ts +9 -0
- package/dist/service/acm/command/request-certificate/request-certificate.handler.d.ts.map +1 -1
- package/dist/service/acm/command/request-certificate/request-certificate.handler.js +18 -1
- package/dist/service/acm/command/request-certificate/request-certificate.handler.js.map +1 -1
- package/dist/service/acm/sim-acm.d.ts +15 -0
- package/dist/service/acm/sim-acm.d.ts.map +1 -1
- package/dist/service/acm/sim-acm.js +21 -0
- package/dist/service/acm/sim-acm.js.map +1 -1
- package/dist/service/apigatewayv2/api/integration/sim-http-api-lambda-uri.d.ts +23 -4
- package/dist/service/apigatewayv2/api/integration/sim-http-api-lambda-uri.d.ts.map +1 -1
- package/dist/service/apigatewayv2/api/integration/sim-http-api-lambda-uri.js +56 -14
- package/dist/service/apigatewayv2/api/integration/sim-http-api-lambda-uri.js.map +1 -1
- package/dist/service/apigatewayv2/serve/auth/sim-http-api-authorizer-invocation.d.ts +1 -1
- package/dist/service/apigatewayv2/serve/auth/sim-http-api-authorizer-invocation.d.ts.map +1 -1
- package/dist/service/apigatewayv2/serve/auth/sim-http-api-invoke-authorizer.d.ts +7 -3
- package/dist/service/apigatewayv2/serve/auth/sim-http-api-invoke-authorizer.d.ts.map +1 -1
- package/dist/service/apigatewayv2/serve/auth/sim-http-api-invoke-authorizer.js +6 -2
- package/dist/service/apigatewayv2/serve/auth/sim-http-api-invoke-authorizer.js.map +1 -1
- package/dist/service/apigatewayv2/serve/sim-api-gateway-v2-router.d.ts +11 -12
- package/dist/service/apigatewayv2/serve/sim-api-gateway-v2-router.d.ts.map +1 -1
- package/dist/service/apigatewayv2/serve/sim-api-gateway-v2-router.js +15 -7
- package/dist/service/apigatewayv2/serve/sim-api-gateway-v2-router.js.map +1 -1
- package/dist/service/apigatewayv2/serve/sim-http-api-function-target.d.ts +17 -0
- package/dist/service/apigatewayv2/serve/sim-http-api-function-target.d.ts.map +1 -0
- package/dist/service/apigatewayv2/serve/sim-http-api-function-target.js +2 -0
- package/dist/service/apigatewayv2/serve/sim-http-api-function-target.js.map +1 -0
- package/dist/service/apigatewayv2/serve/sim-http-api-integration-invocation.d.ts.map +1 -1
- package/dist/service/apigatewayv2/serve/sim-http-api-integration-invocation.js +1 -1
- package/dist/service/apigatewayv2/serve/sim-http-api-integration-invocation.js.map +1 -1
- package/dist/service/cloudformation/bind/validate/sim-cfn-exec-binding-matcher.js +1 -1
- package/dist/service/cloudformation/bind/validate/sim-cfn-exec-binding-matcher.js.map +1 -1
- package/dist/service/cloudformation/cdk/sim-cdk-assembly-selection.d.ts +4 -0
- package/dist/service/cloudformation/cdk/sim-cdk-assembly-selection.d.ts.map +1 -1
- package/dist/service/cloudformation/cdk/sim-cdk-assembly-selection.js +7 -2
- package/dist/service/cloudformation/cdk/sim-cdk-assembly-selection.js.map +1 -1
- package/dist/service/cloudformation/command/create-stack/create-stack.handler.d.ts.map +1 -1
- package/dist/service/cloudformation/command/create-stack/create-stack.handler.js +2 -2
- 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.map +1 -1
- package/dist/service/cloudformation/command/update-stack/update-stack.handler.js +2 -2
- 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 +1 -1
- package/dist/service/cloudformation/deploy/sim-cfn-cdk-out-deployer.d.ts.map +1 -1
- package/dist/service/cloudformation/deploy/sim-cfn-cdk-out-deployer.js +6 -4
- package/dist/service/cloudformation/deploy/sim-cfn-cdk-out-deployer.js.map +1 -1
- package/dist/service/cloudformation/deploy/sim-cfn-cdk-out-plan.d.ts +4 -0
- package/dist/service/cloudformation/deploy/sim-cfn-cdk-out-plan.d.ts.map +1 -1
- package/dist/service/cloudformation/deploy/sim-cfn-cdk-out-plan.js.map +1 -1
- package/dist/service/cloudformation/deploy/sim-cfn-cdk-out-stack-options.d.ts +25 -2
- package/dist/service/cloudformation/deploy/sim-cfn-cdk-out-stack-options.d.ts.map +1 -1
- package/dist/service/cloudformation/deploy/sim-cfn-cdk-out-stack-options.js +13 -0
- package/dist/service/cloudformation/deploy/sim-cfn-cdk-out-stack-options.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 +3 -3
- package/dist/service/cloudformation/deploy/sim-cfn-template-file-loader.js.map +1 -1
- package/dist/service/cloudformation/deploy/sim-cfn-template-file-parse.d.ts +10 -0
- package/dist/service/cloudformation/deploy/sim-cfn-template-file-parse.d.ts.map +1 -0
- package/dist/service/cloudformation/deploy/sim-cfn-template-file-parse.js +30 -0
- package/dist/service/cloudformation/deploy/sim-cfn-template-file-parse.js.map +1 -0
- package/dist/service/cloudformation/deploy/sim-cfn-template-file-read.d.ts +2 -4
- package/dist/service/cloudformation/deploy/sim-cfn-template-file-read.d.ts.map +1 -1
- package/dist/service/cloudformation/deploy/sim-cfn-template-file-read.js +2 -3
- package/dist/service/cloudformation/deploy/sim-cfn-template-file-read.js.map +1 -1
- package/dist/service/cloudformation/index.d.ts +1 -1
- package/dist/service/cloudformation/index.d.ts.map +1 -1
- package/dist/service/cloudformation/resource/cfn/iam/sim-iam-cfn-value-adapter.d.ts.map +1 -1
- package/dist/service/cloudformation/resource/cfn/iam/sim-iam-cfn-value-adapter.js +4 -0
- package/dist/service/cloudformation/resource/cfn/iam/sim-iam-cfn-value-adapter.js.map +1 -1
- package/dist/service/cloudformation/resource/cfn/iam/sim-iam-user-cfn.d.ts +28 -0
- package/dist/service/cloudformation/resource/cfn/iam/sim-iam-user-cfn.d.ts.map +1 -0
- package/dist/service/cloudformation/resource/cfn/iam/sim-iam-user-cfn.js +33 -0
- package/dist/service/cloudformation/resource/cfn/iam/sim-iam-user-cfn.js.map +1 -0
- package/dist/service/cloudformation/resource/cfn/lambda/sim-lambda-cfn-value-adapter.d.ts.map +1 -1
- package/dist/service/cloudformation/resource/cfn/lambda/sim-lambda-cfn-value-adapter.js +11 -0
- package/dist/service/cloudformation/resource/cfn/lambda/sim-lambda-cfn-value-adapter.js.map +1 -1
- package/dist/service/cloudformation/resource/cfn/lambda/sim-lambda-function-alias-cfn.d.ts +29 -0
- package/dist/service/cloudformation/resource/cfn/lambda/sim-lambda-function-alias-cfn.d.ts.map +1 -0
- package/dist/service/cloudformation/resource/cfn/lambda/sim-lambda-function-alias-cfn.js +31 -0
- package/dist/service/cloudformation/resource/cfn/lambda/sim-lambda-function-alias-cfn.js.map +1 -0
- package/dist/service/cloudformation/resource/cfn/lambda/sim-lambda-function-version-cfn.d.ts +35 -0
- package/dist/service/cloudformation/resource/cfn/lambda/sim-lambda-function-version-cfn.d.ts.map +1 -0
- package/dist/service/cloudformation/resource/cfn/lambda/sim-lambda-function-version-cfn.js +40 -0
- package/dist/service/cloudformation/resource/cfn/lambda/sim-lambda-function-version-cfn.js.map +1 -0
- package/dist/service/cloudformation/resource/resolve/property/sim-cfn-resource-property-resolver.d.ts +6 -0
- 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 +3 -0
- 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.map +1 -1
- package/dist/service/cloudformation/resource/sim-cfn-resource-record.js +1 -0
- package/dist/service/cloudformation/resource/sim-cfn-resource-record.js.map +1 -1
- package/dist/service/cloudformation/sam/api/sim-cfn-sam-http-api-stage.d.ts +20 -0
- package/dist/service/cloudformation/sam/api/sim-cfn-sam-http-api-stage.d.ts.map +1 -0
- package/dist/service/cloudformation/sam/api/sim-cfn-sam-http-api-stage.js +80 -0
- package/dist/service/cloudformation/sam/api/sim-cfn-sam-http-api-stage.js.map +1 -0
- package/dist/service/cloudformation/sam/api/sim-cfn-sam-http-api-template.factory.d.ts +46 -0
- package/dist/service/cloudformation/sam/api/sim-cfn-sam-http-api-template.factory.d.ts.map +1 -0
- package/dist/service/cloudformation/sam/api/sim-cfn-sam-http-api-template.factory.js +103 -0
- package/dist/service/cloudformation/sam/api/sim-cfn-sam-http-api-template.factory.js.map +1 -0
- package/dist/service/cloudformation/sam/api/sim-cfn-sam-http-api.d.ts +28 -0
- package/dist/service/cloudformation/sam/api/sim-cfn-sam-http-api.d.ts.map +1 -0
- package/dist/service/cloudformation/sam/api/sim-cfn-sam-http-api.js +81 -0
- package/dist/service/cloudformation/sam/api/sim-cfn-sam-http-api.js.map +1 -0
- package/dist/service/cloudformation/sam/function/event/sim-cfn-sam-declared-event.d.ts +52 -0
- package/dist/service/cloudformation/sam/function/event/sim-cfn-sam-declared-event.d.ts.map +1 -0
- package/dist/service/cloudformation/sam/function/event/sim-cfn-sam-declared-event.js +38 -0
- package/dist/service/cloudformation/sam/function/event/sim-cfn-sam-declared-event.js.map +1 -0
- package/dist/service/cloudformation/sam/function/event/sim-cfn-sam-event-bridge-rule-event.d.ts +16 -0
- package/dist/service/cloudformation/sam/function/event/sim-cfn-sam-event-bridge-rule-event.d.ts.map +1 -0
- package/dist/service/cloudformation/sam/function/event/sim-cfn-sam-event-bridge-rule-event.js +21 -0
- package/dist/service/cloudformation/sam/function/event/sim-cfn-sam-event-bridge-rule-event.js.map +1 -0
- package/dist/service/cloudformation/sam/function/event/sim-cfn-sam-event-rule.d.ts +26 -0
- package/dist/service/cloudformation/sam/function/event/sim-cfn-sam-event-rule.d.ts.map +1 -0
- package/dist/service/cloudformation/sam/function/event/sim-cfn-sam-event-rule.js +84 -0
- package/dist/service/cloudformation/sam/function/event/sim-cfn-sam-event-rule.js.map +1 -0
- package/dist/service/cloudformation/sam/function/event/sim-cfn-sam-event-source-kind.d.ts +24 -0
- package/dist/service/cloudformation/sam/function/event/sim-cfn-sam-event-source-kind.d.ts.map +1 -0
- package/dist/service/cloudformation/sam/function/event/sim-cfn-sam-event-source-kind.js +41 -0
- package/dist/service/cloudformation/sam/function/event/sim-cfn-sam-event-source-kind.js.map +1 -0
- package/dist/service/cloudformation/sam/function/event/sim-cfn-sam-event-source-mapping-event.d.ts +20 -0
- package/dist/service/cloudformation/sam/function/event/sim-cfn-sam-event-source-mapping-event.d.ts.map +1 -0
- package/dist/service/cloudformation/sam/function/event/sim-cfn-sam-event-source-mapping-event.js +56 -0
- package/dist/service/cloudformation/sam/function/event/sim-cfn-sam-event-source-mapping-event.js.map +1 -0
- package/dist/service/cloudformation/sam/function/event/sim-cfn-sam-event-source-role.d.ts +11 -0
- package/dist/service/cloudformation/sam/function/event/sim-cfn-sam-event-source-role.d.ts.map +1 -0
- package/dist/service/cloudformation/sam/function/event/sim-cfn-sam-event-source-role.js +57 -0
- package/dist/service/cloudformation/sam/function/event/sim-cfn-sam-event-source-role.js.map +1 -0
- package/dist/service/cloudformation/sam/function/event/sim-cfn-sam-event-source.resources.d.ts +25 -0
- package/dist/service/cloudformation/sam/function/event/sim-cfn-sam-event-source.resources.d.ts.map +1 -0
- package/dist/service/cloudformation/sam/function/event/sim-cfn-sam-event-source.resources.js +42 -0
- package/dist/service/cloudformation/sam/function/event/sim-cfn-sam-event-source.resources.js.map +1 -0
- package/dist/service/cloudformation/sam/function/event/sim-cfn-sam-event-state.d.ts +17 -0
- package/dist/service/cloudformation/sam/function/event/sim-cfn-sam-event-state.d.ts.map +1 -0
- package/dist/service/cloudformation/sam/function/event/sim-cfn-sam-event-state.js +26 -0
- package/dist/service/cloudformation/sam/function/event/sim-cfn-sam-event-state.js.map +1 -0
- package/dist/service/cloudformation/sam/function/event/sim-cfn-sam-function-events.d.ts +32 -0
- package/dist/service/cloudformation/sam/function/event/sim-cfn-sam-function-events.d.ts.map +1 -0
- package/dist/service/cloudformation/sam/function/event/sim-cfn-sam-function-events.js +70 -0
- package/dist/service/cloudformation/sam/function/event/sim-cfn-sam-function-events.js.map +1 -0
- package/dist/service/cloudformation/sam/function/event/sim-cfn-sam-http-api-event.d.ts +20 -0
- package/dist/service/cloudformation/sam/function/event/sim-cfn-sam-http-api-event.d.ts.map +1 -0
- package/dist/service/cloudformation/sam/function/event/sim-cfn-sam-http-api-event.js +71 -0
- package/dist/service/cloudformation/sam/function/event/sim-cfn-sam-http-api-event.js.map +1 -0
- package/dist/service/cloudformation/sam/function/event/sim-cfn-sam-http-api-permission.d.ts +14 -0
- package/dist/service/cloudformation/sam/function/event/sim-cfn-sam-http-api-permission.d.ts.map +1 -0
- package/dist/service/cloudformation/sam/function/event/sim-cfn-sam-http-api-permission.js +38 -0
- package/dist/service/cloudformation/sam/function/event/sim-cfn-sam-http-api-permission.js.map +1 -0
- package/dist/service/cloudformation/sam/function/event/sim-cfn-sam-http-api-route.d.ts +18 -0
- package/dist/service/cloudformation/sam/function/event/sim-cfn-sam-http-api-route.d.ts.map +1 -0
- package/dist/service/cloudformation/sam/function/event/sim-cfn-sam-http-api-route.js +56 -0
- package/dist/service/cloudformation/sam/function/event/sim-cfn-sam-http-api-route.js.map +1 -0
- package/dist/service/cloudformation/sam/function/event/sim-cfn-sam-implicit-http-api.d.ts +20 -0
- package/dist/service/cloudformation/sam/function/event/sim-cfn-sam-implicit-http-api.d.ts.map +1 -0
- package/dist/service/cloudformation/sam/function/event/sim-cfn-sam-implicit-http-api.js +41 -0
- package/dist/service/cloudformation/sam/function/event/sim-cfn-sam-implicit-http-api.js.map +1 -0
- package/dist/service/cloudformation/sam/function/event/sim-cfn-sam-resource-edit.d.ts +29 -0
- package/dist/service/cloudformation/sam/function/event/sim-cfn-sam-resource-edit.d.ts.map +1 -0
- package/dist/service/cloudformation/sam/function/event/sim-cfn-sam-resource-edit.js +23 -0
- package/dist/service/cloudformation/sam/function/event/sim-cfn-sam-resource-edit.js.map +1 -0
- package/dist/service/cloudformation/sam/function/event/sim-cfn-sam-s3-event.d.ts +33 -0
- package/dist/service/cloudformation/sam/function/event/sim-cfn-sam-s3-event.d.ts.map +1 -0
- package/dist/service/cloudformation/sam/function/event/sim-cfn-sam-s3-event.js +103 -0
- package/dist/service/cloudformation/sam/function/event/sim-cfn-sam-s3-event.js.map +1 -0
- package/dist/service/cloudformation/sam/function/event/sim-cfn-sam-s3-notified-bucket.d.ts +22 -0
- package/dist/service/cloudformation/sam/function/event/sim-cfn-sam-s3-notified-bucket.d.ts.map +1 -0
- package/dist/service/cloudformation/sam/function/event/sim-cfn-sam-s3-notified-bucket.js +76 -0
- package/dist/service/cloudformation/sam/function/event/sim-cfn-sam-s3-notified-bucket.js.map +1 -0
- package/dist/service/cloudformation/sam/function/event/sim-cfn-sam-schedule-event.d.ts +17 -0
- package/dist/service/cloudformation/sam/function/event/sim-cfn-sam-schedule-event.d.ts.map +1 -0
- package/dist/service/cloudformation/sam/function/event/sim-cfn-sam-schedule-event.js +22 -0
- package/dist/service/cloudformation/sam/function/event/sim-cfn-sam-schedule-event.js.map +1 -0
- package/dist/service/cloudformation/sam/function/event/sim-cfn-sam-schedule-v2-event.d.ts +15 -0
- package/dist/service/cloudformation/sam/function/event/sim-cfn-sam-schedule-v2-event.d.ts.map +1 -0
- package/dist/service/cloudformation/sam/function/event/sim-cfn-sam-schedule-v2-event.js +97 -0
- package/dist/service/cloudformation/sam/function/event/sim-cfn-sam-schedule-v2-event.js.map +1 -0
- package/dist/service/cloudformation/sam/function/event/sim-cfn-sam-sns-event.d.ts +23 -0
- package/dist/service/cloudformation/sam/function/event/sim-cfn-sam-sns-event.d.ts.map +1 -0
- package/dist/service/cloudformation/sam/function/event/sim-cfn-sam-sns-event.js +60 -0
- package/dist/service/cloudformation/sam/function/event/sim-cfn-sam-sns-event.js.map +1 -0
- package/dist/service/cloudformation/sam/function/sim-cfn-sam-function-policies.d.ts +31 -0
- package/dist/service/cloudformation/sam/function/sim-cfn-sam-function-policies.d.ts.map +1 -0
- package/dist/service/cloudformation/sam/function/sim-cfn-sam-function-policies.js +74 -0
- package/dist/service/cloudformation/sam/function/sim-cfn-sam-function-policies.js.map +1 -0
- package/dist/service/cloudformation/sam/function/sim-cfn-sam-function-properties.d.ts +24 -0
- package/dist/service/cloudformation/sam/function/sim-cfn-sam-function-properties.d.ts.map +1 -0
- package/dist/service/cloudformation/sam/function/sim-cfn-sam-function-properties.js +67 -0
- package/dist/service/cloudformation/sam/function/sim-cfn-sam-function-properties.js.map +1 -0
- package/dist/service/cloudformation/sam/function/sim-cfn-sam-function-role.d.ts +18 -0
- package/dist/service/cloudformation/sam/function/sim-cfn-sam-function-role.d.ts.map +1 -0
- package/dist/service/cloudformation/sam/function/sim-cfn-sam-function-role.js +35 -0
- package/dist/service/cloudformation/sam/function/sim-cfn-sam-function-role.js.map +1 -0
- package/dist/service/cloudformation/sam/function/sim-cfn-sam-function-template.factory.d.ts +45 -0
- package/dist/service/cloudformation/sam/function/sim-cfn-sam-function-template.factory.d.ts.map +1 -0
- package/dist/service/cloudformation/sam/function/sim-cfn-sam-function-template.factory.js +50 -0
- package/dist/service/cloudformation/sam/function/sim-cfn-sam-function-template.factory.js.map +1 -0
- package/dist/service/cloudformation/sam/function/sim-cfn-sam-function-url.d.ts +19 -0
- package/dist/service/cloudformation/sam/function/sim-cfn-sam-function-url.d.ts.map +1 -0
- package/dist/service/cloudformation/sam/function/sim-cfn-sam-function-url.js +37 -0
- package/dist/service/cloudformation/sam/function/sim-cfn-sam-function-url.js.map +1 -0
- package/dist/service/cloudformation/sam/function/sim-cfn-sam-function.d.ts +44 -0
- package/dist/service/cloudformation/sam/function/sim-cfn-sam-function.d.ts.map +1 -0
- package/dist/service/cloudformation/sam/function/sim-cfn-sam-function.js +74 -0
- package/dist/service/cloudformation/sam/function/sim-cfn-sam-function.js.map +1 -0
- package/dist/service/cloudformation/sam/sim-cfn-sam-expansion.d.ts +18 -0
- package/dist/service/cloudformation/sam/sim-cfn-sam-expansion.d.ts.map +1 -0
- package/dist/service/cloudformation/sam/sim-cfn-sam-expansion.js +83 -0
- package/dist/service/cloudformation/sam/sim-cfn-sam-expansion.js.map +1 -0
- package/dist/service/cloudformation/sam/sim-cfn-sam-globals.d.ts +36 -0
- package/dist/service/cloudformation/sam/sim-cfn-sam-globals.d.ts.map +1 -0
- package/dist/service/cloudformation/sam/sim-cfn-sam-globals.js +76 -0
- package/dist/service/cloudformation/sam/sim-cfn-sam-globals.js.map +1 -0
- package/dist/service/cloudformation/sam/sim-cfn-sam-picked.d.ts +10 -0
- package/dist/service/cloudformation/sam/sim-cfn-sam-picked.d.ts.map +1 -0
- package/dist/service/cloudformation/sam/sim-cfn-sam-picked.js +11 -0
- package/dist/service/cloudformation/sam/sim-cfn-sam-picked.js.map +1 -0
- package/dist/service/cloudformation/sam/sim-cfn-sam-record.d.ts +40 -0
- package/dist/service/cloudformation/sam/sim-cfn-sam-record.d.ts.map +1 -0
- package/dist/service/cloudformation/sam/sim-cfn-sam-record.js +50 -0
- package/dist/service/cloudformation/sam/sim-cfn-sam-record.js.map +1 -0
- package/dist/service/cloudformation/sam/sim-cfn-sam-transform.d.ts +23 -0
- package/dist/service/cloudformation/sam/sim-cfn-sam-transform.d.ts.map +1 -0
- package/dist/service/cloudformation/sam/sim-cfn-sam-transform.js +48 -0
- package/dist/service/cloudformation/sam/sim-cfn-sam-transform.js.map +1 -0
- package/dist/service/cloudformation/sam/table/sim-cfn-sam-simple-table-key.d.ts +18 -0
- package/dist/service/cloudformation/sam/table/sim-cfn-sam-simple-table-key.d.ts.map +1 -0
- package/dist/service/cloudformation/sam/table/sim-cfn-sam-simple-table-key.js +52 -0
- package/dist/service/cloudformation/sam/table/sim-cfn-sam-simple-table-key.js.map +1 -0
- package/dist/service/cloudformation/sam/table/sim-cfn-sam-simple-table-template.factory.d.ts +40 -0
- package/dist/service/cloudformation/sam/table/sim-cfn-sam-simple-table-template.factory.d.ts.map +1 -0
- package/dist/service/cloudformation/sam/table/sim-cfn-sam-simple-table-template.factory.js +47 -0
- package/dist/service/cloudformation/sam/table/sim-cfn-sam-simple-table-template.factory.js.map +1 -0
- package/dist/service/cloudformation/sam/table/sim-cfn-sam-simple-table.d.ts +25 -0
- package/dist/service/cloudformation/sam/table/sim-cfn-sam-simple-table.d.ts.map +1 -0
- package/dist/service/cloudformation/sam/table/sim-cfn-sam-simple-table.js +77 -0
- package/dist/service/cloudformation/sam/table/sim-cfn-sam-simple-table.js.map +1 -0
- package/dist/service/cloudformation/template/dynamic/make-sim-cfn-dynamic-references.d.ts +1 -0
- package/dist/service/cloudformation/template/dynamic/make-sim-cfn-dynamic-references.d.ts.map +1 -1
- package/dist/service/cloudformation/template/dynamic/make-sim-cfn-dynamic-references.js +2 -1
- package/dist/service/cloudformation/template/dynamic/make-sim-cfn-dynamic-references.js.map +1 -1
- package/dist/service/cloudformation/template/dynamic/sim-cfn-dynamic-reference-resolvers.d.ts.map +1 -1
- package/dist/service/cloudformation/template/dynamic/sim-cfn-dynamic-reference-resolvers.js +4 -0
- package/dist/service/cloudformation/template/dynamic/sim-cfn-dynamic-reference-resolvers.js.map +1 -1
- package/dist/service/cloudformation/template/dynamic/sim-cfn-dynamic-reference.type.d.ts +19 -1
- package/dist/service/cloudformation/template/dynamic/sim-cfn-dynamic-reference.type.d.ts.map +1 -1
- package/dist/service/cloudformation/template/dynamic/sim-cfn-dynamic-references.d.ts +6 -0
- package/dist/service/cloudformation/template/dynamic/sim-cfn-dynamic-references.d.ts.map +1 -1
- package/dist/service/cloudformation/template/dynamic/sim-cfn-dynamic-references.js +9 -3
- package/dist/service/cloudformation/template/dynamic/sim-cfn-dynamic-references.js.map +1 -1
- package/dist/service/cloudformation/template/sim-cfn-template-body-parse.d.ts +19 -0
- package/dist/service/cloudformation/template/sim-cfn-template-body-parse.d.ts.map +1 -0
- package/dist/service/cloudformation/template/sim-cfn-template-body-parse.js +36 -0
- package/dist/service/cloudformation/template/sim-cfn-template-body-parse.js.map +1 -0
- package/dist/service/cloudformation/template/sim-cfn-template.d.ts +11 -4
- package/dist/service/cloudformation/template/sim-cfn-template.d.ts.map +1 -1
- package/dist/service/cloudformation/template/sim-cfn-template.js +16 -13
- package/dist/service/cloudformation/template/sim-cfn-template.js.map +1 -1
- package/dist/service/cloudformation/template/yaml/sim-cfn-template-yaml.d.ts +11 -0
- package/dist/service/cloudformation/template/yaml/sim-cfn-template-yaml.d.ts.map +1 -0
- package/dist/service/cloudformation/template/yaml/sim-cfn-template-yaml.js +41 -0
- package/dist/service/cloudformation/template/yaml/sim-cfn-template-yaml.js.map +1 -0
- package/dist/service/cloudformation/template/yaml/sim-cfn-yaml-short-forms.d.ts +17 -0
- package/dist/service/cloudformation/template/yaml/sim-cfn-yaml-short-forms.d.ts.map +1 -0
- package/dist/service/cloudformation/template/yaml/sim-cfn-yaml-short-forms.js +70 -0
- package/dist/service/cloudformation/template/yaml/sim-cfn-yaml-short-forms.js.map +1 -0
- package/dist/service/cloudfront/cff/adapter/sim-cff-request-metadata-adapter.d.ts +23 -0
- package/dist/service/cloudfront/cff/adapter/sim-cff-request-metadata-adapter.d.ts.map +1 -1
- package/dist/service/cloudfront/cff/adapter/sim-cff-request-metadata-adapter.js +64 -22
- package/dist/service/cloudfront/cff/adapter/sim-cff-request-metadata-adapter.js.map +1 -1
- package/dist/service/cloudfront/command/create-function/create-function-code-size.d.ts +23 -0
- package/dist/service/cloudfront/command/create-function/create-function-code-size.d.ts.map +1 -0
- package/dist/service/cloudfront/command/create-function/create-function-code-size.js +33 -0
- package/dist/service/cloudfront/command/create-function/create-function-code-size.js.map +1 -0
- package/dist/service/cloudfront/command/create-function/create-function.handler.d.ts.map +1 -1
- package/dist/service/cloudfront/command/create-function/create-function.handler.js +2 -0
- package/dist/service/cloudfront/command/create-function/create-function.handler.js.map +1 -1
- package/dist/service/cloudfront/error/sim-cloudfront.error.d.ts +11 -0
- package/dist/service/cloudfront/error/sim-cloudfront.error.d.ts.map +1 -1
- package/dist/service/cloudfront/error/sim-cloudfront.error.js +13 -0
- package/dist/service/cloudfront/error/sim-cloudfront.error.js.map +1 -1
- package/dist/service/cloudfront/index.d.ts +1 -1
- package/dist/service/cloudfront/index.d.ts.map +1 -1
- package/dist/service/cloudfront/index.js +1 -1
- package/dist/service/cloudfront/index.js.map +1 -1
- package/dist/service/cloudfront/typings/cloudfront-functions.namespace.d.ts +1 -1
- package/dist/service/cloudfront/typings/cloudfront-functions.namespace.d.ts.map +1 -1
- package/dist/service/cognito/command/sim-cognito-commands.d.ts +6 -0
- package/dist/service/cognito/command/sim-cognito-commands.d.ts.map +1 -1
- package/dist/service/cognito/command/sim-cognito-commands.js +22 -6
- package/dist/service/cognito/command/sim-cognito-commands.js.map +1 -1
- package/dist/service/cognito/error/sim-cognito.error.d.ts +22 -0
- package/dist/service/cognito/error/sim-cognito.error.d.ts.map +1 -1
- package/dist/service/cognito/error/sim-cognito.error.js +26 -0
- package/dist/service/cognito/error/sim-cognito.error.js.map +1 -1
- package/dist/service/cognito/index.d.ts +2 -1
- package/dist/service/cognito/index.d.ts.map +1 -1
- package/dist/service/cognito/index.js +1 -1
- package/dist/service/cognito/index.js.map +1 -1
- package/dist/service/cognito/sim-cognito-identity-provider.d.ts +24 -0
- package/dist/service/cognito/sim-cognito-identity-provider.d.ts.map +1 -1
- package/dist/service/cognito/sim-cognito-identity-provider.js +26 -0
- package/dist/service/cognito/sim-cognito-identity-provider.js.map +1 -1
- package/dist/service/cognito/user-pool/client/sim-cognito-user-pool-client-factory.d.ts +9 -0
- package/dist/service/cognito/user-pool/client/sim-cognito-user-pool-client-factory.d.ts.map +1 -1
- package/dist/service/cognito/user-pool/client/sim-cognito-user-pool-client-factory.js +2 -2
- package/dist/service/cognito/user-pool/client/sim-cognito-user-pool-client-factory.js.map +1 -1
- package/dist/service/cognito/user-pool/register-sim-cognito-user-pool-client.d.ts +22 -0
- package/dist/service/cognito/user-pool/register-sim-cognito-user-pool-client.d.ts.map +1 -0
- package/dist/service/cognito/user-pool/register-sim-cognito-user-pool-client.js +36 -0
- package/dist/service/cognito/user-pool/register-sim-cognito-user-pool-client.js.map +1 -0
- package/dist/service/cognito/user-pool/register-sim-cognito-user-pool.d.ts +25 -0
- package/dist/service/cognito/user-pool/register-sim-cognito-user-pool.d.ts.map +1 -0
- package/dist/service/cognito/user-pool/register-sim-cognito-user-pool.js +30 -0
- package/dist/service/cognito/user-pool/register-sim-cognito-user-pool.js.map +1 -0
- package/dist/service/cognito/user-pool/sim-cognito-registration.types.d.ts +40 -0
- package/dist/service/cognito/user-pool/sim-cognito-registration.types.d.ts.map +1 -0
- package/dist/service/cognito/user-pool/sim-cognito-registration.types.js +2 -0
- package/dist/service/cognito/user-pool/sim-cognito-registration.types.js.map +1 -0
- package/dist/service/cognito/user-pool/sim-cognito-registrations.d.ts +34 -0
- package/dist/service/cognito/user-pool/sim-cognito-registrations.d.ts.map +1 -0
- package/dist/service/cognito/user-pool/sim-cognito-registrations.js +28 -0
- package/dist/service/cognito/user-pool/sim-cognito-registrations.js.map +1 -0
- package/dist/service/cognito/user-pool/sim-cognito-user-pool-factory.d.ts +9 -0
- package/dist/service/cognito/user-pool/sim-cognito-user-pool-factory.d.ts.map +1 -1
- package/dist/service/cognito/user-pool/sim-cognito-user-pool-factory.js +3 -2
- package/dist/service/cognito/user-pool/sim-cognito-user-pool-factory.js.map +1 -1
- package/dist/service/cognito/user-pool/sim-cognito-user-pool-id.d.ts +9 -0
- package/dist/service/cognito/user-pool/sim-cognito-user-pool-id.d.ts.map +1 -1
- package/dist/service/cognito/user-pool/sim-cognito-user-pool-id.js +18 -0
- package/dist/service/cognito/user-pool/sim-cognito-user-pool-id.js.map +1 -1
- package/dist/service/cognito/user-pool/sim-cognito-user-pool-store.d.ts +8 -0
- package/dist/service/cognito/user-pool/sim-cognito-user-pool-store.d.ts.map +1 -1
- package/dist/service/cognito/user-pool/sim-cognito-user-pool-store.js +15 -1
- package/dist/service/cognito/user-pool/sim-cognito-user-pool-store.js.map +1 -1
- package/dist/service/cognito/user-pool/trigger/sim-aws-cognito-trigger-functions.d.ts +1 -1
- package/dist/service/cognito/user-pool/trigger/sim-aws-cognito-trigger-functions.d.ts.map +1 -1
- package/dist/service/cognito/user-pool/trigger/sim-aws-cognito-trigger-functions.js +26 -19
- package/dist/service/cognito/user-pool/trigger/sim-aws-cognito-trigger-functions.js.map +1 -1
- package/dist/service/elbv2/serve/sim-elbv2-invoke-authorizer.js +1 -1
- package/dist/service/elbv2/serve/sim-elbv2-invoke-authorizer.js.map +1 -1
- package/dist/service/eventbridge/delivery/sim-event-bridge-delivery-function.d.ts +5 -3
- package/dist/service/eventbridge/delivery/sim-event-bridge-delivery-function.d.ts.map +1 -1
- package/dist/service/eventbridge/delivery/sim-event-bridge-delivery-function.js +14 -9
- package/dist/service/eventbridge/delivery/sim-event-bridge-delivery-function.js.map +1 -1
- package/dist/service/eventbridge/target/sim-event-target-arn.d.ts +13 -6
- package/dist/service/eventbridge/target/sim-event-target-arn.d.ts.map +1 -1
- package/dist/service/eventbridge/target/sim-event-target-arn.js +17 -7
- package/dist/service/eventbridge/target/sim-event-target-arn.js.map +1 -1
- package/dist/service/iam/cfn/managed-policy/sim-cfn-iam-managed-policy-attacher.d.ts +40 -0
- package/dist/service/iam/cfn/managed-policy/sim-cfn-iam-managed-policy-attacher.d.ts.map +1 -0
- package/dist/service/iam/cfn/managed-policy/sim-cfn-iam-managed-policy-attacher.js +65 -0
- package/dist/service/iam/cfn/managed-policy/sim-cfn-iam-managed-policy-attacher.js.map +1 -0
- package/dist/service/iam/cfn/managed-policy/sim-cfn-iam-managed-policy-creator.d.ts +1 -0
- package/dist/service/iam/cfn/managed-policy/sim-cfn-iam-managed-policy-creator.d.ts.map +1 -1
- package/dist/service/iam/cfn/managed-policy/sim-cfn-iam-managed-policy-creator.js +5 -0
- package/dist/service/iam/cfn/managed-policy/sim-cfn-iam-managed-policy-creator.js.map +1 -1
- package/dist/service/iam/cfn/policy/sim-cfn-iam-policy-creator.d.ts +11 -20
- package/dist/service/iam/cfn/policy/sim-cfn-iam-policy-creator.d.ts.map +1 -1
- package/dist/service/iam/cfn/policy/sim-cfn-iam-policy-creator.js +29 -61
- package/dist/service/iam/cfn/policy/sim-cfn-iam-policy-creator.js.map +1 -1
- package/dist/service/iam/cfn/policy/sim-cfn-iam-policy-properties-parser.d.ts +38 -0
- package/dist/service/iam/cfn/policy/sim-cfn-iam-policy-properties-parser.d.ts.map +1 -0
- package/dist/service/iam/cfn/policy/sim-cfn-iam-policy-properties-parser.js +79 -0
- package/dist/service/iam/cfn/policy/sim-cfn-iam-policy-properties-parser.js.map +1 -0
- package/dist/service/iam/cfn/role/sim-cfn-iam-role-properties-parser.d.ts +2 -2
- package/dist/service/iam/cfn/role/sim-cfn-iam-role-properties-parser.d.ts.map +1 -1
- package/dist/service/iam/cfn/role/sim-cfn-iam-role-properties-parser.js +4 -2
- package/dist/service/iam/cfn/role/sim-cfn-iam-role-properties-parser.js.map +1 -1
- package/dist/service/iam/cfn/sim-cfn-iam-policies-parser.d.ts +35 -0
- package/dist/service/iam/cfn/sim-cfn-iam-policies-parser.d.ts.map +1 -0
- package/dist/service/iam/cfn/{role/sim-cfn-iam-role-policies-parser.js → sim-cfn-iam-policies-parser.js} +17 -12
- package/dist/service/iam/cfn/sim-cfn-iam-policies-parser.js.map +1 -0
- package/dist/service/iam/cfn/sim-cfn-iam-resource-deleter.d.ts +11 -0
- package/dist/service/iam/cfn/sim-cfn-iam-resource-deleter.d.ts.map +1 -1
- package/dist/service/iam/cfn/sim-cfn-iam-resource-deleter.js +25 -0
- package/dist/service/iam/cfn/sim-cfn-iam-resource-deleter.js.map +1 -1
- package/dist/service/iam/cfn/sim-cfn-iam-resource-factory.d.ts +1 -0
- package/dist/service/iam/cfn/sim-cfn-iam-resource-factory.d.ts.map +1 -1
- package/dist/service/iam/cfn/sim-cfn-iam-resource-factory.js +6 -0
- package/dist/service/iam/cfn/sim-cfn-iam-resource-factory.js.map +1 -1
- package/dist/service/iam/cfn/user/sim-cfn-iam-user-creator.d.ts +28 -0
- package/dist/service/iam/cfn/user/sim-cfn-iam-user-creator.d.ts.map +1 -0
- package/dist/service/iam/cfn/user/sim-cfn-iam-user-creator.js +67 -0
- package/dist/service/iam/cfn/user/sim-cfn-iam-user-creator.js.map +1 -0
- package/dist/service/iam/cfn/user/sim-cfn-iam-user-deleter.d.ts +26 -0
- package/dist/service/iam/cfn/user/sim-cfn-iam-user-deleter.d.ts.map +1 -0
- package/dist/service/iam/cfn/user/sim-cfn-iam-user-deleter.js +29 -0
- package/dist/service/iam/cfn/user/sim-cfn-iam-user-deleter.js.map +1 -0
- package/dist/service/iam/cfn/user/sim-cfn-iam-user-properties-parser.d.ts +38 -0
- package/dist/service/iam/cfn/user/sim-cfn-iam-user-properties-parser.d.ts.map +1 -0
- package/dist/service/iam/cfn/user/sim-cfn-iam-user-properties-parser.js +80 -0
- package/dist/service/iam/cfn/user/sim-cfn-iam-user-properties-parser.js.map +1 -0
- package/dist/service/iam/command/sim-iam-command.types.d.ts +3 -0
- package/dist/service/iam/command/sim-iam-command.types.d.ts.map +1 -1
- package/dist/service/iam/command/user/attach-user-policy/attach-user-policy.command.d.ts +9 -0
- package/dist/service/iam/command/user/attach-user-policy/attach-user-policy.command.d.ts.map +1 -0
- package/dist/service/iam/command/user/attach-user-policy/attach-user-policy.command.js +2 -0
- package/dist/service/iam/command/user/attach-user-policy/attach-user-policy.command.js.map +1 -0
- package/dist/service/iam/command/user/attach-user-policy/attach-user-policy.handler.d.ts +30 -0
- package/dist/service/iam/command/user/attach-user-policy/attach-user-policy.handler.d.ts.map +1 -0
- package/dist/service/iam/command/user/attach-user-policy/attach-user-policy.handler.js +44 -0
- package/dist/service/iam/command/user/attach-user-policy/attach-user-policy.handler.js.map +1 -0
- package/dist/service/iam/command/user/create-login-profile/create-login-profile.command.d.ts +16 -0
- package/dist/service/iam/command/user/create-login-profile/create-login-profile.command.d.ts.map +1 -0
- package/dist/service/iam/command/user/create-login-profile/create-login-profile.command.js +2 -0
- package/dist/service/iam/command/user/create-login-profile/create-login-profile.command.js.map +1 -0
- package/dist/service/iam/command/user/create-login-profile/create-login-profile.handler.d.ts +32 -0
- package/dist/service/iam/command/user/create-login-profile/create-login-profile.handler.d.ts.map +1 -0
- package/dist/service/iam/command/user/create-login-profile/create-login-profile.handler.js +59 -0
- package/dist/service/iam/command/user/create-login-profile/create-login-profile.handler.js.map +1 -0
- package/dist/service/iam/command/user/create-user/create-user-record-factory.d.ts.map +1 -1
- package/dist/service/iam/command/user/create-user/create-user-record-factory.js +1 -0
- package/dist/service/iam/command/user/create-user/create-user-record-factory.js.map +1 -1
- package/dist/service/iam/command/user/delete-user/delete-user.command.d.ts +19 -0
- package/dist/service/iam/command/user/delete-user/delete-user.command.d.ts.map +1 -0
- package/dist/service/iam/command/user/delete-user/delete-user.command.js +2 -0
- package/dist/service/iam/command/user/delete-user/delete-user.command.js.map +1 -0
- package/dist/service/iam/command/user/delete-user/delete-user.handler.d.ts +34 -0
- package/dist/service/iam/command/user/delete-user/delete-user.handler.d.ts.map +1 -0
- package/dist/service/iam/command/user/delete-user/delete-user.handler.js +51 -0
- package/dist/service/iam/command/user/delete-user/delete-user.handler.js.map +1 -0
- package/dist/service/iam/command/user/sim-iam-user-command-handlers.d.ts +15 -0
- package/dist/service/iam/command/user/sim-iam-user-command-handlers.d.ts.map +1 -1
- package/dist/service/iam/command/user/sim-iam-user-command-handlers.js +36 -0
- package/dist/service/iam/command/user/sim-iam-user-command-handlers.js.map +1 -1
- package/dist/service/iam/sdk/sim-iam-sdk-command-router.d.ts.map +1 -1
- package/dist/service/iam/sdk/sim-iam-sdk-command-router.js +12 -0
- package/dist/service/iam/sdk/sim-iam-sdk-command-router.js.map +1 -1
- package/dist/service/iam/sim-iam.d.ts +12 -0
- package/dist/service/iam/sim-iam.d.ts.map +1 -1
- package/dist/service/iam/sim-iam.js +18 -0
- package/dist/service/iam/sim-iam.js.map +1 -1
- package/dist/service/iam/user/sim-iam-user-login-profile.d.ts +14 -0
- package/dist/service/iam/user/sim-iam-user-login-profile.d.ts.map +1 -0
- package/dist/service/iam/user/sim-iam-user-login-profile.js +2 -0
- package/dist/service/iam/user/sim-iam-user-login-profile.js.map +1 -0
- package/dist/service/iam/user/sim-iam-user.d.ts +8 -0
- package/dist/service/iam/user/sim-iam-user.d.ts.map +1 -1
- package/dist/service/lambda/cfn/alias/sim-cfn-lambda-alias-creator.d.ts +30 -0
- package/dist/service/lambda/cfn/alias/sim-cfn-lambda-alias-creator.d.ts.map +1 -0
- package/dist/service/lambda/cfn/alias/sim-cfn-lambda-alias-creator.js +41 -0
- package/dist/service/lambda/cfn/alias/sim-cfn-lambda-alias-creator.js.map +1 -0
- package/dist/service/lambda/cfn/function/sim-cfn-lambda-code-input.js +1 -1
- package/dist/service/lambda/cfn/function/sim-cfn-lambda-code-input.js.map +1 -1
- package/dist/service/lambda/cfn/function/sim-cfn-lambda-target-function.d.ts +12 -1
- package/dist/service/lambda/cfn/function/sim-cfn-lambda-target-function.d.ts.map +1 -1
- package/dist/service/lambda/cfn/function/sim-cfn-lambda-target-function.js +15 -3
- package/dist/service/lambda/cfn/function/sim-cfn-lambda-target-function.js.map +1 -1
- package/dist/service/lambda/cfn/permission/sim-cfn-lambda-permission-creator.d.ts +6 -1
- package/dist/service/lambda/cfn/permission/sim-cfn-lambda-permission-creator.d.ts.map +1 -1
- package/dist/service/lambda/cfn/permission/sim-cfn-lambda-permission-creator.js +11 -5
- package/dist/service/lambda/cfn/permission/sim-cfn-lambda-permission-creator.js.map +1 -1
- package/dist/service/lambda/cfn/permission/sim-cfn-lambda-permission-revoker.d.ts +12 -0
- package/dist/service/lambda/cfn/permission/sim-cfn-lambda-permission-revoker.d.ts.map +1 -0
- package/dist/service/lambda/cfn/permission/sim-cfn-lambda-permission-revoker.js +22 -0
- package/dist/service/lambda/cfn/permission/sim-cfn-lambda-permission-revoker.js.map +1 -0
- package/dist/service/lambda/cfn/sim-cfn-lambda-created-resource.d.ts +10 -0
- package/dist/service/lambda/cfn/sim-cfn-lambda-created-resource.d.ts.map +1 -0
- package/dist/service/lambda/cfn/sim-cfn-lambda-created-resource.js +14 -0
- package/dist/service/lambda/cfn/sim-cfn-lambda-created-resource.js.map +1 -0
- package/dist/service/lambda/cfn/sim-cfn-lambda-resource-deleter.d.ts +2 -6
- package/dist/service/lambda/cfn/sim-cfn-lambda-resource-deleter.d.ts.map +1 -1
- package/dist/service/lambda/cfn/sim-cfn-lambda-resource-deleter.js +24 -19
- package/dist/service/lambda/cfn/sim-cfn-lambda-resource-deleter.js.map +1 -1
- package/dist/service/lambda/cfn/sim-cfn-lambda-resource-factory.d.ts +2 -0
- package/dist/service/lambda/cfn/sim-cfn-lambda-resource-factory.d.ts.map +1 -1
- package/dist/service/lambda/cfn/sim-cfn-lambda-resource-factory.js +12 -0
- package/dist/service/lambda/cfn/sim-cfn-lambda-resource-factory.js.map +1 -1
- package/dist/service/lambda/cfn/version/sim-cfn-lambda-version-creator.d.ts +31 -0
- package/dist/service/lambda/cfn/version/sim-cfn-lambda-version-creator.d.ts.map +1 -0
- package/dist/service/lambda/cfn/version/sim-cfn-lambda-version-creator.js +40 -0
- package/dist/service/lambda/cfn/version/sim-cfn-lambda-version-creator.js.map +1 -0
- package/dist/service/lambda/command/add-permission/add-permission.command.d.ts +1 -0
- package/dist/service/lambda/command/add-permission/add-permission.command.d.ts.map +1 -1
- package/dist/service/lambda/command/add-permission/add-permission.handler.d.ts +8 -1
- package/dist/service/lambda/command/add-permission/add-permission.handler.d.ts.map +1 -1
- package/dist/service/lambda/command/add-permission/add-permission.handler.js +13 -6
- package/dist/service/lambda/command/add-permission/add-permission.handler.js.map +1 -1
- package/dist/service/lambda/command/alias/alias-input.d.ts +21 -0
- package/dist/service/lambda/command/alias/alias-input.d.ts.map +1 -0
- package/dist/service/lambda/command/alias/alias-input.js +30 -0
- package/dist/service/lambda/command/alias/alias-input.js.map +1 -0
- package/dist/service/lambda/command/alias/sim-lambda-alias-commands.d.ts +52 -0
- package/dist/service/lambda/command/alias/sim-lambda-alias-commands.d.ts.map +1 -0
- package/dist/service/lambda/command/alias/sim-lambda-alias-commands.js +49 -0
- package/dist/service/lambda/command/alias/sim-lambda-alias-commands.js.map +1 -0
- package/dist/service/lambda/command/authorize/sim-lambda-resource-policies.d.ts +9 -7
- package/dist/service/lambda/command/authorize/sim-lambda-resource-policies.d.ts.map +1 -1
- package/dist/service/lambda/command/authorize/sim-lambda-resource-policies.js +11 -9
- package/dist/service/lambda/command/authorize/sim-lambda-resource-policies.js.map +1 -1
- package/dist/service/lambda/command/authorize/sim-lambda-service-invoke-authorizer.d.ts +10 -2
- package/dist/service/lambda/command/authorize/sim-lambda-service-invoke-authorizer.d.ts.map +1 -1
- package/dist/service/lambda/command/authorize/sim-lambda-service-invoke-authorizer.js +2 -2
- package/dist/service/lambda/command/authorize/sim-lambda-service-invoke-authorizer.js.map +1 -1
- package/dist/service/lambda/command/create-alias/create-alias.command.d.ts +31 -0
- package/dist/service/lambda/command/create-alias/create-alias.command.d.ts.map +1 -0
- package/dist/service/lambda/command/create-alias/create-alias.command.js +5 -0
- package/dist/service/lambda/command/create-alias/create-alias.command.js.map +1 -0
- package/dist/service/lambda/command/create-alias/create-alias.handler.d.ts +35 -0
- package/dist/service/lambda/command/create-alias/create-alias.handler.d.ts.map +1 -0
- package/dist/service/lambda/command/create-alias/create-alias.handler.js +52 -0
- package/dist/service/lambda/command/create-alias/create-alias.handler.js.map +1 -0
- package/dist/service/lambda/command/create-function/create-function.command.d.ts +1 -1
- package/dist/service/lambda/command/create-function/create-function.command.d.ts.map +1 -1
- package/dist/service/lambda/command/create-function/create-function.handler.d.ts.map +1 -1
- package/dist/service/lambda/command/create-function/create-function.handler.js +2 -1
- package/dist/service/lambda/command/create-function/create-function.handler.js.map +1 -1
- package/dist/service/lambda/command/delete-alias/delete-alias.command.d.ts +24 -0
- package/dist/service/lambda/command/delete-alias/delete-alias.command.d.ts.map +1 -0
- package/dist/service/lambda/command/delete-alias/delete-alias.command.js +5 -0
- package/dist/service/lambda/command/delete-alias/delete-alias.command.js.map +1 -0
- package/dist/service/lambda/command/delete-alias/delete-alias.handler.d.ts +37 -0
- package/dist/service/lambda/command/delete-alias/delete-alias.handler.d.ts.map +1 -0
- package/dist/service/lambda/command/delete-alias/delete-alias.handler.js +44 -0
- package/dist/service/lambda/command/delete-alias/delete-alias.handler.js.map +1 -0
- package/dist/service/lambda/command/delete-function/delete-function.handler.d.ts +6 -2
- package/dist/service/lambda/command/delete-function/delete-function.handler.d.ts.map +1 -1
- package/dist/service/lambda/command/delete-function/delete-function.handler.js +7 -3
- package/dist/service/lambda/command/delete-function/delete-function.handler.js.map +1 -1
- package/dist/service/lambda/command/event-source-mapping/create-event-source-mapping-input.d.ts +8 -0
- package/dist/service/lambda/command/event-source-mapping/create-event-source-mapping-input.d.ts.map +1 -1
- package/dist/service/lambda/command/event-source-mapping/create-event-source-mapping-input.js +11 -2
- package/dist/service/lambda/command/event-source-mapping/create-event-source-mapping-input.js.map +1 -1
- package/dist/service/lambda/command/event-source-mapping/create-event-source-mapping.handler.d.ts.map +1 -1
- package/dist/service/lambda/command/event-source-mapping/create-event-source-mapping.handler.js +13 -6
- package/dist/service/lambda/command/event-source-mapping/create-event-source-mapping.handler.js.map +1 -1
- package/dist/service/lambda/command/function/sim-lambda-function-commands.d.ts +3 -1
- package/dist/service/lambda/command/function/sim-lambda-function-commands.d.ts.map +1 -1
- package/dist/service/lambda/command/function/sim-lambda-function-commands.js +1 -1
- package/dist/service/lambda/command/function/sim-lambda-function-commands.js.map +1 -1
- package/dist/service/lambda/command/get-alias/get-alias.command.d.ts +25 -0
- package/dist/service/lambda/command/get-alias/get-alias.command.d.ts.map +1 -0
- package/dist/service/lambda/command/get-alias/get-alias.command.js +5 -0
- package/dist/service/lambda/command/get-alias/get-alias.command.js.map +1 -0
- package/dist/service/lambda/command/get-alias/get-alias.handler.d.ts +34 -0
- package/dist/service/lambda/command/get-alias/get-alias.handler.d.ts.map +1 -0
- package/dist/service/lambda/command/get-alias/get-alias.handler.js +38 -0
- package/dist/service/lambda/command/get-alias/get-alias.handler.js.map +1 -0
- package/dist/service/lambda/command/get-function/get-function.command.d.ts +2 -1
- package/dist/service/lambda/command/get-function/get-function.command.d.ts.map +1 -1
- package/dist/service/lambda/command/get-function/get-function.handler.d.ts +6 -2
- package/dist/service/lambda/command/get-function/get-function.handler.d.ts.map +1 -1
- package/dist/service/lambda/command/get-function/get-function.handler.js +13 -6
- package/dist/service/lambda/command/get-function/get-function.handler.js.map +1 -1
- package/dist/service/lambda/command/get-policy/get-policy.command.d.ts +1 -0
- package/dist/service/lambda/command/get-policy/get-policy.command.d.ts.map +1 -1
- package/dist/service/lambda/command/get-policy/get-policy.handler.d.ts +8 -3
- package/dist/service/lambda/command/get-policy/get-policy.handler.d.ts.map +1 -1
- package/dist/service/lambda/command/get-policy/get-policy.handler.js +11 -6
- package/dist/service/lambda/command/get-policy/get-policy.handler.js.map +1 -1
- package/dist/service/lambda/command/invoke/invoke-authorizer.d.ts +11 -8
- package/dist/service/lambda/command/invoke/invoke-authorizer.d.ts.map +1 -1
- package/dist/service/lambda/command/invoke/invoke-authorizer.js +11 -8
- package/dist/service/lambda/command/invoke/invoke-authorizer.js.map +1 -1
- package/dist/service/lambda/command/invoke/invoke-dispatcher.d.ts +3 -0
- package/dist/service/lambda/command/invoke/invoke-dispatcher.d.ts.map +1 -1
- package/dist/service/lambda/command/invoke/invoke-dispatcher.js +5 -2
- package/dist/service/lambda/command/invoke/invoke-dispatcher.js.map +1 -1
- package/dist/service/lambda/command/invoke/invoke.handler.d.ts +9 -2
- package/dist/service/lambda/command/invoke/invoke.handler.d.ts.map +1 -1
- package/dist/service/lambda/command/invoke/invoke.handler.js +20 -10
- package/dist/service/lambda/command/invoke/invoke.handler.js.map +1 -1
- package/dist/service/lambda/command/list-aliases/list-aliases.command.d.ts +30 -0
- package/dist/service/lambda/command/list-aliases/list-aliases.command.d.ts.map +1 -0
- package/dist/service/lambda/command/list-aliases/list-aliases.command.js +5 -0
- package/dist/service/lambda/command/list-aliases/list-aliases.command.js.map +1 -0
- package/dist/service/lambda/command/list-aliases/list-aliases.handler.d.ts +35 -0
- package/dist/service/lambda/command/list-aliases/list-aliases.handler.d.ts.map +1 -0
- package/dist/service/lambda/command/list-aliases/list-aliases.handler.js +44 -0
- package/dist/service/lambda/command/list-aliases/list-aliases.handler.js.map +1 -0
- package/dist/service/lambda/command/list-versions-by-function/list-versions-by-function.command.d.ts +28 -0
- package/dist/service/lambda/command/list-versions-by-function/list-versions-by-function.command.d.ts.map +1 -0
- package/dist/service/lambda/command/list-versions-by-function/list-versions-by-function.command.js +5 -0
- package/dist/service/lambda/command/list-versions-by-function/list-versions-by-function.command.js.map +1 -0
- package/dist/service/lambda/command/list-versions-by-function/list-versions-by-function.handler.d.ts +35 -0
- package/dist/service/lambda/command/list-versions-by-function/list-versions-by-function.handler.d.ts.map +1 -0
- package/dist/service/lambda/command/list-versions-by-function/list-versions-by-function.handler.js +43 -0
- package/dist/service/lambda/command/list-versions-by-function/list-versions-by-function.handler.js.map +1 -0
- package/dist/service/lambda/command/permission/sim-lambda-permission-commands.d.ts +8 -3
- package/dist/service/lambda/command/permission/sim-lambda-permission-commands.d.ts.map +1 -1
- package/dist/service/lambda/command/permission/sim-lambda-permission-commands.js +6 -3
- package/dist/service/lambda/command/permission/sim-lambda-permission-commands.js.map +1 -1
- package/dist/service/lambda/command/publish-version/publish-version.command.d.ts +34 -0
- package/dist/service/lambda/command/publish-version/publish-version.command.d.ts.map +1 -0
- package/dist/service/lambda/command/publish-version/publish-version.command.js +5 -0
- package/dist/service/lambda/command/publish-version/publish-version.command.js.map +1 -0
- package/dist/service/lambda/command/publish-version/publish-version.handler.d.ts +37 -0
- package/dist/service/lambda/command/publish-version/publish-version.handler.d.ts.map +1 -0
- package/dist/service/lambda/command/publish-version/publish-version.handler.js +42 -0
- package/dist/service/lambda/command/publish-version/publish-version.handler.js.map +1 -0
- package/dist/service/lambda/command/remove-permission/remove-permission.command.d.ts +1 -0
- package/dist/service/lambda/command/remove-permission/remove-permission.command.d.ts.map +1 -1
- package/dist/service/lambda/command/remove-permission/remove-permission.handler.d.ts +8 -1
- package/dist/service/lambda/command/remove-permission/remove-permission.handler.d.ts.map +1 -1
- package/dist/service/lambda/command/remove-permission/remove-permission.handler.js +12 -5
- package/dist/service/lambda/command/remove-permission/remove-permission.handler.js.map +1 -1
- package/dist/service/lambda/command/sim-lambda-command.types.d.ts +7 -0
- package/dist/service/lambda/command/sim-lambda-command.types.d.ts.map +1 -1
- package/dist/service/lambda/command/update-alias/update-alias.command.d.ts +31 -0
- package/dist/service/lambda/command/update-alias/update-alias.command.d.ts.map +1 -0
- package/dist/service/lambda/command/update-alias/update-alias.command.js +5 -0
- package/dist/service/lambda/command/update-alias/update-alias.command.js.map +1 -0
- package/dist/service/lambda/command/update-alias/update-alias.handler.d.ts +35 -0
- package/dist/service/lambda/command/update-alias/update-alias.handler.d.ts.map +1 -0
- package/dist/service/lambda/command/update-alias/update-alias.handler.js +48 -0
- package/dist/service/lambda/command/update-alias/update-alias.handler.js.map +1 -0
- package/dist/service/lambda/command/version/sim-lambda-version-commands.d.ts +37 -0
- package/dist/service/lambda/command/version/sim-lambda-version-commands.d.ts.map +1 -0
- package/dist/service/lambda/command/version/sim-lambda-version-commands.js +28 -0
- package/dist/service/lambda/command/version/sim-lambda-version-commands.js.map +1 -0
- package/dist/service/lambda/command/version/version-authorizer.d.ts +29 -0
- package/dist/service/lambda/command/version/version-authorizer.d.ts.map +1 -0
- package/dist/service/lambda/command/version/version-authorizer.js +39 -0
- package/dist/service/lambda/command/version/version-authorizer.js.map +1 -0
- package/dist/service/lambda/event-source/poll/sim-lambda-dynamodb-stream-event-source-poller.d.ts.map +1 -1
- package/dist/service/lambda/event-source/poll/sim-lambda-dynamodb-stream-event-source-poller.js +2 -1
- package/dist/service/lambda/event-source/poll/sim-lambda-dynamodb-stream-event-source-poller.js.map +1 -1
- package/dist/service/lambda/event-source/poll/sim-lambda-event-source-function.d.ts +13 -0
- package/dist/service/lambda/event-source/poll/sim-lambda-event-source-function.d.ts.map +1 -0
- package/dist/service/lambda/event-source/poll/sim-lambda-event-source-function.js +13 -0
- package/dist/service/lambda/event-source/poll/sim-lambda-event-source-function.js.map +1 -0
- package/dist/service/lambda/event-source/poll/sim-lambda-sqs-event-source-consumer.d.ts.map +1 -1
- package/dist/service/lambda/event-source/poll/sim-lambda-sqs-event-source-consumer.js +2 -1
- package/dist/service/lambda/event-source/poll/sim-lambda-sqs-event-source-consumer.js.map +1 -1
- package/dist/service/lambda/event-source/sim-lambda-event-source-mapping.d.ts +9 -1
- package/dist/service/lambda/event-source/sim-lambda-event-source-mapping.d.ts.map +1 -1
- package/dist/service/lambda/event-source/sim-lambda-event-source-mapping.js +8 -0
- package/dist/service/lambda/event-source/sim-lambda-event-source-mapping.js.map +1 -1
- package/dist/service/lambda/function/code/sim-lambda-executable-code.d.ts +6 -5
- package/dist/service/lambda/function/code/sim-lambda-executable-code.d.ts.map +1 -1
- package/dist/service/lambda/function/code/sim-lambda-executable-code.js +7 -6
- package/dist/service/lambda/function/code/sim-lambda-executable-code.js.map +1 -1
- package/dist/service/lambda/function/invoke/sim-lambda-host-scope.d.ts +11 -3
- package/dist/service/lambda/function/invoke/sim-lambda-host-scope.d.ts.map +1 -1
- package/dist/service/lambda/function/invoke/sim-lambda-host-scope.js +13 -7
- package/dist/service/lambda/function/invoke/sim-lambda-host-scope.js.map +1 -1
- package/dist/service/lambda/function/invoke/sim-lambda-invoke-context-builder.d.ts +2 -0
- package/dist/service/lambda/function/invoke/sim-lambda-invoke-context-builder.d.ts.map +1 -1
- package/dist/service/lambda/function/invoke/sim-lambda-invoke-context-builder.js +2 -2
- package/dist/service/lambda/function/invoke/sim-lambda-invoke-context-builder.js.map +1 -1
- package/dist/service/lambda/function/invoke/sim-lambda-process-output.d.ts +104 -0
- package/dist/service/lambda/function/invoke/sim-lambda-process-output.d.ts.map +1 -0
- package/dist/service/lambda/function/invoke/sim-lambda-process-output.js +133 -0
- package/dist/service/lambda/function/invoke/sim-lambda-process-output.js.map +1 -0
- package/dist/service/lambda/function/logging/sim-lambda-function-logging.d.ts +10 -0
- package/dist/service/lambda/function/logging/sim-lambda-function-logging.d.ts.map +1 -1
- package/dist/service/lambda/function/logging/sim-lambda-function-logging.js +11 -0
- package/dist/service/lambda/function/logging/sim-lambda-function-logging.js.map +1 -1
- package/dist/service/lambda/function/policy/sim-lambda-policy-resource.d.ts +17 -0
- package/dist/service/lambda/function/policy/sim-lambda-policy-resource.d.ts.map +1 -0
- package/dist/service/lambda/function/policy/sim-lambda-policy-resource.js +2 -0
- package/dist/service/lambda/function/policy/sim-lambda-policy-resource.js.map +1 -0
- package/dist/service/lambda/function/sim-lambda-function-arn-parts.d.ts +3 -3
- package/dist/service/lambda/function/sim-lambda-function-configuration.d.ts +43 -0
- package/dist/service/lambda/function/sim-lambda-function-configuration.d.ts.map +1 -0
- package/dist/service/lambda/function/sim-lambda-function-configuration.js +22 -0
- package/dist/service/lambda/function/sim-lambda-function-configuration.js.map +1 -0
- package/dist/service/lambda/function/sim-lambda-function-name.d.ts +3 -1
- package/dist/service/lambda/function/sim-lambda-function-name.d.ts.map +1 -1
- package/dist/service/lambda/function/sim-lambda-function-name.js +3 -1
- package/dist/service/lambda/function/sim-lambda-function-name.js.map +1 -1
- package/dist/service/lambda/function/sim-lambda-function-reference.d.ts +36 -0
- package/dist/service/lambda/function/sim-lambda-function-reference.d.ts.map +1 -0
- package/dist/service/lambda/function/sim-lambda-function-reference.js +56 -0
- package/dist/service/lambda/function/sim-lambda-function-reference.js.map +1 -0
- package/dist/service/lambda/function/sim-lambda-function.d.ts +19 -32
- package/dist/service/lambda/function/sim-lambda-function.d.ts.map +1 -1
- package/dist/service/lambda/function/sim-lambda-function.js +33 -14
- package/dist/service/lambda/function/sim-lambda-function.js.map +1 -1
- package/dist/service/lambda/function/url/sim-lambda-function-lookup.d.ts +22 -3
- package/dist/service/lambda/function/url/sim-lambda-function-lookup.d.ts.map +1 -1
- package/dist/service/lambda/function/url/sim-lambda-function-lookup.js +24 -4
- package/dist/service/lambda/function/url/sim-lambda-function-lookup.js.map +1 -1
- package/dist/service/lambda/function/version/sim-lambda-function-alias-store.d.ts +55 -0
- package/dist/service/lambda/function/version/sim-lambda-function-alias-store.d.ts.map +1 -0
- package/dist/service/lambda/function/version/sim-lambda-function-alias-store.js +80 -0
- package/dist/service/lambda/function/version/sim-lambda-function-alias-store.js.map +1 -0
- package/dist/service/lambda/function/version/sim-lambda-function-alias.d.ts +60 -0
- package/dist/service/lambda/function/version/sim-lambda-function-alias.d.ts.map +1 -0
- package/dist/service/lambda/function/version/sim-lambda-function-alias.js +57 -0
- package/dist/service/lambda/function/version/sim-lambda-function-alias.js.map +1 -0
- package/dist/service/lambda/function/version/sim-lambda-function-target.d.ts +16 -0
- package/dist/service/lambda/function/version/sim-lambda-function-target.d.ts.map +1 -0
- package/dist/service/lambda/function/version/sim-lambda-function-target.js +2 -0
- package/dist/service/lambda/function/version/sim-lambda-function-target.js.map +1 -0
- package/dist/service/lambda/function/version/sim-lambda-function-version-store.d.ts +80 -0
- package/dist/service/lambda/function/version/sim-lambda-function-version-store.d.ts.map +1 -0
- package/dist/service/lambda/function/version/sim-lambda-function-version-store.js +114 -0
- package/dist/service/lambda/function/version/sim-lambda-function-version-store.js.map +1 -0
- package/dist/service/lambda/function/version/sim-lambda-function-versions.d.ts +61 -0
- package/dist/service/lambda/function/version/sim-lambda-function-versions.d.ts.map +1 -0
- package/dist/service/lambda/function/version/sim-lambda-function-versions.js +96 -0
- package/dist/service/lambda/function/version/sim-lambda-function-versions.js.map +1 -0
- package/dist/service/lambda/sdk/sim-lambda-sdk-command-router.d.ts.map +1 -1
- package/dist/service/lambda/sdk/sim-lambda-sdk-command-router.js +28 -0
- package/dist/service/lambda/sdk/sim-lambda-sdk-command-router.js.map +1 -1
- package/dist/service/lambda/serve/api/sim-lambda-api-routes.d.ts +2 -1
- package/dist/service/lambda/serve/api/sim-lambda-api-routes.d.ts.map +1 -1
- package/dist/service/lambda/serve/api/sim-lambda-api-routes.js +2 -1
- package/dist/service/lambda/serve/api/sim-lambda-api-routes.js.map +1 -1
- package/dist/service/lambda/sim-lambda-commands.d.ts +8 -0
- package/dist/service/lambda/sim-lambda-commands.d.ts.map +1 -1
- package/dist/service/lambda/sim-lambda-commands.js +25 -0
- package/dist/service/lambda/sim-lambda-commands.js.map +1 -1
- package/dist/service/lambda/sim-lambda-inspection.d.ts +43 -0
- package/dist/service/lambda/sim-lambda-inspection.d.ts.map +1 -0
- package/dist/service/lambda/sim-lambda-inspection.js +50 -0
- package/dist/service/lambda/sim-lambda-inspection.js.map +1 -0
- package/dist/service/lambda/sim-lambda.d.ts +44 -80
- package/dist/service/lambda/sim-lambda.d.ts.map +1 -1
- package/dist/service/lambda/sim-lambda.js +55 -82
- package/dist/service/lambda/sim-lambda.js.map +1 -1
- package/dist/service/logs/subscription/lambda/sim-aws-logs-subscription-functions.d.ts.map +1 -1
- package/dist/service/logs/subscription/lambda/sim-aws-logs-subscription-functions.js +2 -2
- package/dist/service/logs/subscription/lambda/sim-aws-logs-subscription-functions.js.map +1 -1
- package/dist/service/logs/subscription/lambda/sim-logs-destination-permission.d.ts +7 -5
- package/dist/service/logs/subscription/lambda/sim-logs-destination-permission.d.ts.map +1 -1
- package/dist/service/logs/subscription/lambda/sim-logs-destination-permission.js +15 -9
- package/dist/service/logs/subscription/lambda/sim-logs-destination-permission.js.map +1 -1
- package/dist/service/logs/subscription/lambda/sim-logs-subscription-function-arn.d.ts +9 -0
- package/dist/service/logs/subscription/lambda/sim-logs-subscription-function-arn.d.ts.map +1 -1
- package/dist/service/logs/subscription/lambda/sim-logs-subscription-function-arn.js +11 -5
- package/dist/service/logs/subscription/lambda/sim-logs-subscription-function-arn.js.map +1 -1
- package/dist/service/s3/command/get-object/get-object-loader.d.ts +5 -3
- package/dist/service/s3/command/get-object/get-object-loader.d.ts.map +1 -1
- package/dist/service/s3/command/get-object/get-object-loader.js +19 -4
- package/dist/service/s3/command/get-object/get-object-loader.js.map +1 -1
- package/dist/service/s3/command/get-object/get-object.command.d.ts +13 -0
- package/dist/service/s3/command/get-object/get-object.command.d.ts.map +1 -1
- package/dist/service/s3/command/get-object/get-object.handler.d.ts +3 -0
- package/dist/service/s3/command/get-object/get-object.handler.d.ts.map +1 -1
- package/dist/service/s3/command/get-object/get-object.handler.js +4 -1
- package/dist/service/s3/command/get-object/get-object.handler.js.map +1 -1
- package/dist/service/s3/error/sim-s3.error.d.ts +13 -0
- package/dist/service/s3/error/sim-s3.error.d.ts.map +1 -1
- package/dist/service/s3/error/sim-s3.error.js +15 -0
- package/dist/service/s3/error/sim-s3.error.js.map +1 -1
- package/dist/service/s3/notification/destination/lambda/sim-aws-s3-notification-functions.d.ts +1 -1
- package/dist/service/s3/notification/destination/lambda/sim-aws-s3-notification-functions.d.ts.map +1 -1
- package/dist/service/s3/notification/destination/lambda/sim-aws-s3-notification-functions.js +23 -10
- package/dist/service/s3/notification/destination/lambda/sim-aws-s3-notification-functions.js.map +1 -1
- package/dist/service/s3/notification/destination/lambda/sim-s3-notification-function-arn.d.ts +8 -4
- package/dist/service/s3/notification/destination/lambda/sim-s3-notification-function-arn.d.ts.map +1 -1
- package/dist/service/s3/notification/destination/lambda/sim-s3-notification-function-arn.js +12 -12
- package/dist/service/s3/notification/destination/lambda/sim-s3-notification-function-arn.js.map +1 -1
- package/dist/service/s3/object/s3-object-range.d.ts +26 -0
- package/dist/service/s3/object/s3-object-range.d.ts.map +1 -0
- package/dist/service/s3/object/s3-object-range.js +89 -0
- package/dist/service/s3/object/s3-object-range.js.map +1 -0
- package/dist/service/s3/object/s3-object-response-headers.d.ts +7 -1
- package/dist/service/s3/object/s3-object-response-headers.d.ts.map +1 -1
- package/dist/service/s3/object/s3-object-response-headers.js +5 -1
- package/dist/service/s3/object/s3-object-response-headers.js.map +1 -1
- package/dist/service/s3/serve/api/sim-s3-api-input.d.ts +0 -14
- package/dist/service/s3/serve/api/sim-s3-api-input.d.ts.map +1 -1
- package/dist/service/s3/serve/api/sim-s3-api-input.js +0 -29
- package/dist/service/s3/serve/api/sim-s3-api-input.js.map +1 -1
- package/dist/service/s3/serve/api/sim-s3-api-object-input.d.ts +27 -0
- package/dist/service/s3/serve/api/sim-s3-api-object-input.d.ts.map +1 -0
- package/dist/service/s3/serve/api/sim-s3-api-object-input.js +47 -0
- package/dist/service/s3/serve/api/sim-s3-api-object-input.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 -1
- package/dist/service/s3/serve/api/sim-s3-api-object-output.js +8 -1
- package/dist/service/s3/serve/api/sim-s3-api-object-output.js.map +1 -1
- package/dist/service/s3/serve/api/sim-s3-api-object-routes.d.ts.map +1 -1
- package/dist/service/s3/serve/api/sim-s3-api-object-routes.js +2 -2
- package/dist/service/s3/serve/api/sim-s3-api-object-routes.js.map +1 -1
- package/dist/service/s3/serve/sim-s3-rest-object-reader.d.ts +5 -0
- package/dist/service/s3/serve/sim-s3-rest-object-reader.d.ts.map +1 -1
- package/dist/service/s3/serve/sim-s3-rest-object-reader.js +20 -3
- package/dist/service/s3/serve/sim-s3-rest-object-reader.js.map +1 -1
- package/dist/service/sns/delivery/lambda/sim-sns-delivery-function.d.ts +5 -4
- package/dist/service/sns/delivery/lambda/sim-sns-delivery-function.d.ts.map +1 -1
- package/dist/service/sns/delivery/lambda/sim-sns-delivery-function.js +16 -11
- package/dist/service/sns/delivery/lambda/sim-sns-delivery-function.js.map +1 -1
- package/dist/service/sns/subscription/sim-sns-function-endpoint-arn.d.ts +8 -4
- package/dist/service/sns/subscription/sim-sns-function-endpoint-arn.d.ts.map +1 -1
- package/dist/service/sns/subscription/sim-sns-function-endpoint-arn.js +11 -10
- package/dist/service/sns/subscription/sim-sns-function-endpoint-arn.js.map +1 -1
- package/dist/service/ssm/cfn/dynamic/sim-cfn-ssm-dynamic-reference-resolver.d.ts +0 -7
- package/dist/service/ssm/cfn/dynamic/sim-cfn-ssm-dynamic-reference-resolver.d.ts.map +1 -1
- package/dist/service/ssm/cfn/dynamic/sim-cfn-ssm-dynamic-reference-resolver.js +7 -41
- package/dist/service/ssm/cfn/dynamic/sim-cfn-ssm-dynamic-reference-resolver.js.map +1 -1
- package/dist/service/ssm/cfn/dynamic/sim-cfn-ssm-reference-body.d.ts +14 -0
- package/dist/service/ssm/cfn/dynamic/sim-cfn-ssm-reference-body.d.ts.map +1 -0
- package/dist/service/ssm/cfn/dynamic/sim-cfn-ssm-reference-body.js +26 -0
- package/dist/service/ssm/cfn/dynamic/sim-cfn-ssm-reference-body.js.map +1 -0
- package/dist/service/ssm/cfn/dynamic/sim-cfn-ssm-reference-stand-in.d.ts +11 -0
- package/dist/service/ssm/cfn/dynamic/sim-cfn-ssm-reference-stand-in.d.ts.map +1 -0
- package/dist/service/ssm/cfn/dynamic/sim-cfn-ssm-reference-stand-in.js +16 -0
- package/dist/service/ssm/cfn/dynamic/sim-cfn-ssm-reference-stand-in.js.map +1 -0
- package/dist/service/ssm/cfn/dynamic/sim-cfn-ssm-secure-dynamic-reference-resolver.d.ts +40 -0
- package/dist/service/ssm/cfn/dynamic/sim-cfn-ssm-secure-dynamic-reference-resolver.d.ts.map +1 -0
- package/dist/service/ssm/cfn/dynamic/sim-cfn-ssm-secure-dynamic-reference-resolver.js +67 -0
- package/dist/service/ssm/cfn/dynamic/sim-cfn-ssm-secure-dynamic-reference-resolver.js.map +1 -0
- package/dist/service/ssm/cfn/dynamic/sim-cfn-ssm-secure-reference-properties.d.ts +8 -0
- package/dist/service/ssm/cfn/dynamic/sim-cfn-ssm-secure-reference-properties.d.ts.map +1 -0
- package/dist/service/ssm/cfn/dynamic/sim-cfn-ssm-secure-reference-properties.js +61 -0
- package/dist/service/ssm/cfn/dynamic/sim-cfn-ssm-secure-reference-properties.js.map +1 -0
- package/dist/service/ssm/cfn/dynamic/sim-cfn-ssm-secure-refusals.d.ts +19 -0
- package/dist/service/ssm/cfn/dynamic/sim-cfn-ssm-secure-refusals.d.ts.map +1 -0
- package/dist/service/ssm/cfn/dynamic/sim-cfn-ssm-secure-refusals.js +37 -0
- package/dist/service/ssm/cfn/dynamic/sim-cfn-ssm-secure-refusals.js.map +1 -0
- package/dist/service/ssm/sim-ssm.d.ts +5 -0
- package/dist/service/ssm/sim-ssm.d.ts.map +1 -1
- package/dist/service/ssm/sim-ssm.js +7 -0
- package/dist/service/ssm/sim-ssm.js.map +1 -1
- package/package.json +4 -2
- package/dist/service/iam/cfn/role/sim-cfn-iam-role-policies-parser.d.ts +0 -25
- package/dist/service/iam/cfn/role/sim-cfn-iam-role-policies-parser.d.ts.map +0 -1
- package/dist/service/iam/cfn/role/sim-cfn-iam-role-policies-parser.js.map +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sim-lambda-sqs-event-source-consumer.js","sourceRoot":"","sources":["../../../../../src/service/lambda/event-source/poll/sim-lambda-sqs-event-source-consumer.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"sim-lambda-sqs-event-source-consumer.js","sourceRoot":"","sources":["../../../../../src/service/lambda/event-source/poll/sim-lambda-sqs-event-source-consumer.ts"],"names":[],"mappings":"AAUA,OAAO,EAAE,4BAA4B,EAAE,MAAM,uCAAuC,CAAC;AAErF,OAAO,EAAE,wBAAwB,EAAE,MAAM,8BAA8B,CAAC;AAQxE;;;;;;;;GAQG;AACH,MAAM,OAAO,+BAA+B;IACzB,OAAO,CAA8B;IACrC,SAAS,CAA0B;IACnC,QAAQ,CAA+B;IAExD,YAAY,UAAqD;QAC/D,IAAI,CAAC,OAAO,GAAG,UAAU,CAAC,OAAO,CAAC;QAClC,IAAI,CAAC,SAAS,GAAG,UAAU,CAAC,SAAS,CAAC;QACtC,IAAI,CAAC,QAAQ,GAAG,wBAAwB,CAAC,UAAU,CAAC,CAAC;IACvD,CAAC;IAED;;;;;;;;;OASG;IACH,OAAO;QACL,MAAM,WAAW,GAAG,IAAI,CAAC,eAAe,EAAE,CAAC;QAE3C,IAAI,WAAW,KAAK,SAAS,EAAE,CAAC;YAC9B,OAAO,SAAS,CAAC;QACnB,CAAC;QAED,OAAO;YACL,MAAM,EAAE,EAAE,IAAI,EAAE,KAAK,EAAE,GAAG,EAAE,WAAW,CAAC,OAAO,EAAE;YACjD,SAAS,EAAE,IAAI,CAAC,OAAO,CAAC,SAAS;YACjC,MAAM,EAAE,KAAK,EACX,QAAsC,EACV,EAAE,CAC9B,MAAM,IAAI,CAAC,QAAQ,CAAC,EAAE,CAAC,WAAW,EAAE,QAAQ,CAAC;SAChD,CAAC;IACJ,CAAC;IAEO,eAAe;QACrB,IAAI,CAAC,IAAI,CAAC,OAAO,CAAC,SAAS,EAAE,CAAC;YAC5B,OAAO,SAAS,CAAC;QACnB,CAAC;QAED,OAAO,4BAA4B,CAAC,IAAI,CAAC,SAAS,EAAE,IAAI,CAAC,OAAO,CAAC,CAAC;IACpE,CAAC;CACF"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { SimAwsAccountRegionScope } from "../../aws/sim-aws-account-region-scope.js";
|
|
2
|
-
import type { SimLambdaFunctionArn } from "../function/sim-lambda-function.js";
|
|
2
|
+
import type { SimLambdaFunctionArn } from "../function/sim-lambda-function-configuration.js";
|
|
3
3
|
import type { SimLambdaEventSourceStartingPosition } from "./sim-lambda-event-source-starting-position.js";
|
|
4
4
|
/**
|
|
5
5
|
* Event source mapping ARNs address the mapping by its UUID.
|
|
@@ -23,6 +23,7 @@ interface SimLambdaEventSourceMappingProperties {
|
|
|
23
23
|
readonly accountRegionScope: SimAwsAccountRegionScope;
|
|
24
24
|
readonly eventSourceArn: string;
|
|
25
25
|
readonly functionName: string;
|
|
26
|
+
readonly qualifier?: string | undefined;
|
|
26
27
|
readonly functionArn: SimLambdaFunctionArn;
|
|
27
28
|
readonly batchSize: number;
|
|
28
29
|
readonly startingPosition?: SimLambdaEventSourceStartingPosition | undefined;
|
|
@@ -63,6 +64,13 @@ export declare class SimLambdaEventSourceMapping {
|
|
|
63
64
|
readonly uuid: string;
|
|
64
65
|
readonly eventSourceArn: string;
|
|
65
66
|
readonly functionName: string;
|
|
67
|
+
/**
|
|
68
|
+
* The version or alias this mapping delivers to, if it was created with one.
|
|
69
|
+
*
|
|
70
|
+
* It is resolved on every poll rather than at creation, so an alias moved to
|
|
71
|
+
* another version moves what the mapping delivers to.
|
|
72
|
+
*/
|
|
73
|
+
readonly qualifier: string | undefined;
|
|
66
74
|
readonly functionArn: SimLambdaFunctionArn;
|
|
67
75
|
readonly batchSize: number;
|
|
68
76
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sim-lambda-event-source-mapping.d.ts","sourceRoot":"","sources":["../../../../src/service/lambda/event-source/sim-lambda-event-source-mapping.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,2CAA2C,CAAC;AAC1F,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"sim-lambda-event-source-mapping.d.ts","sourceRoot":"","sources":["../../../../src/service/lambda/event-source/sim-lambda-event-source-mapping.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,2CAA2C,CAAC;AAC1F,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,kDAAkD,CAAC;AAC7F,OAAO,KAAK,EAAE,oCAAoC,EAAE,MAAM,gDAAgD,CAAC;AAE3G;;GAEG;AACH,MAAM,MAAM,8BAA8B,GACxC,kBAAkB,MAAM,IAAI,MAAM,yBAAyB,MAAM,EAAE,CAAC;AAEtE;;;;GAIG;AACH,MAAM,MAAM,6BAA6B,GAAG,yBAAyB,CAAC;AAEtE;;;;;;GAMG;AACH,MAAM,MAAM,gCAAgC,GACxC,UAAU,GACV,SAAS,GACT,UAAU,CAAC;AAEf,UAAU,qCAAqC;IAC7C,QAAQ,CAAC,kBAAkB,EAAE,wBAAwB,CAAC;IACtD,QAAQ,CAAC,cAAc,EAAE,MAAM,CAAC;IAChC,QAAQ,CAAC,YAAY,EAAE,MAAM,CAAC;IAC9B,QAAQ,CAAC,SAAS,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IACxC,QAAQ,CAAC,WAAW,EAAE,oBAAoB,CAAC;IAC3C,QAAQ,CAAC,SAAS,EAAE,MAAM,CAAC;IAC3B,QAAQ,CAAC,gBAAgB,CAAC,EAAE,oCAAoC,GAAG,SAAS,CAAC;IAC7E,QAAQ,CAAC,OAAO,CAAC,EAAE,OAAO,GAAG,SAAS,CAAC;IACvC,QAAQ,CAAC,qBAAqB,CAAC,EAC3B,SAAS,6BAA6B,EAAE,GACxC,SAAS,CAAC;IACd,QAAQ,CAAC,SAAS,EAAE,IAAI,CAAC;CAC1B;AAED;;;;GAIG;AACH,MAAM,WAAW,wCAAwC;IACvD,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IACtB,QAAQ,CAAC,qBAAqB,EAAE,8BAA8B,CAAC;IAC/D,QAAQ,CAAC,cAAc,EAAE,MAAM,CAAC;IAChC,QAAQ,CAAC,WAAW,EAAE,oBAAoB,CAAC;IAC3C,QAAQ,CAAC,SAAS,EAAE,MAAM,CAAC;IAC3B,QAAQ,CAAC,gBAAgB,CAAC,EAAE,oCAAoC,GAAG,SAAS,CAAC;IAC7E,QAAQ,CAAC,8BAA8B,EAAE,MAAM,CAAC;IAChD,QAAQ,CAAC,qBAAqB,EAAE,SAAS,6BAA6B,EAAE,CAAC;IACzE,QAAQ,CAAC,KAAK,EAAE,gCAAgC,CAAC;IACjD,QAAQ,CAAC,qBAAqB,EAAE,MAAM,CAAC;IACvC,QAAQ,CAAC,YAAY,EAAE,IAAI,CAAC;CAC7B;AAED;;;;;;;;;GASG;AACH,qBAAa,2BAA2B;;IACtC,SAAgB,IAAI,EAAE,MAAM,CAAgB;IAC5C,SAAgB,cAAc,EAAE,MAAM,CAAC;IACvC,SAAgB,YAAY,EAAE,MAAM,CAAC;IAErC;;;;;OAKG;IACH,SAAgB,SAAS,EAAE,MAAM,GAAG,SAAS,CAAC;IAE9C,SAAgB,WAAW,EAAE,oBAAoB,CAAC;IAClD,SAAgB,SAAS,EAAE,MAAM,CAAC;IAClC;;;;OAIG;IACH,SAAgB,gBAAgB,EAC5B,oCAAoC,GACpC,SAAS,CAAC;IACd,SAAgB,qBAAqB,EAAE,SAAS,6BAA6B,EAAE,CAAC;IAEhF,OAAO,CAAC,QAAQ,CAAC,kBAAkB,CAA2B;IAC9D,OAAO,CAAC,QAAQ,CAAC,OAAO,CAAU;IAClC,OAAO,CAAC,QAAQ,CAAC,YAAY,CAAO;IAGpC,YAAY,UAAU,EAAE,qCAAqC,EAa5D;IAED;;OAEG;IACH,IAAI,GAAG,IAAI,8BAA8B,CAIxC;IAED;;OAEG;IACH,IAAI,KAAK,IAAI,gCAAgC,CAE5C;IAED;;;;;OAKG;IACH,IAAI,SAAS,IAAI,OAAO,CAEvB;IAED;;OAEG;IACH,IAAI,wBAAwB,IAAI,OAAO,CAEtC;IAED;;OAEG;IACH,QAAQ,IAAI,OAAO,CAAC,IAAI,CAAC,CAIxB;IAED;;OAEG;IACH,aAAa,IAAI,wCAAwC,CAgBxD;CACF"}
|
|
@@ -13,6 +13,13 @@ export class SimLambdaEventSourceMapping {
|
|
|
13
13
|
uuid = randomUUID();
|
|
14
14
|
eventSourceArn;
|
|
15
15
|
functionName;
|
|
16
|
+
/**
|
|
17
|
+
* The version or alias this mapping delivers to, if it was created with one.
|
|
18
|
+
*
|
|
19
|
+
* It is resolved on every poll rather than at creation, so an alias moved to
|
|
20
|
+
* another version moves what the mapping delivers to.
|
|
21
|
+
*/
|
|
22
|
+
qualifier;
|
|
16
23
|
functionArn;
|
|
17
24
|
batchSize;
|
|
18
25
|
/**
|
|
@@ -30,6 +37,7 @@ export class SimLambdaEventSourceMapping {
|
|
|
30
37
|
this.accountRegionScope = properties.accountRegionScope;
|
|
31
38
|
this.eventSourceArn = properties.eventSourceArn;
|
|
32
39
|
this.functionName = properties.functionName;
|
|
40
|
+
this.qualifier = properties.qualifier;
|
|
33
41
|
this.functionArn = properties.functionArn;
|
|
34
42
|
this.batchSize = properties.batchSize;
|
|
35
43
|
this.startingPosition = properties.startingPosition;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sim-lambda-event-source-mapping.js","sourceRoot":"","sources":["../../../../src/service/lambda/event-source/sim-lambda-event-source-mapping.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;
|
|
1
|
+
{"version":3,"file":"sim-lambda-event-source-mapping.js","sourceRoot":"","sources":["../../../../src/service/lambda/event-source/sim-lambda-event-source-mapping.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AAiEzC;;;;;;;;;GASG;AACH,MAAM,OAAO,2BAA2B;IACtB,IAAI,GAAW,UAAU,EAAE,CAAC;IAC5B,cAAc,CAAS;IACvB,YAAY,CAAS;IAErC;;;;;OAKG;IACa,SAAS,CAAqB;IAE9B,WAAW,CAAuB;IAClC,SAAS,CAAS;IAClC;;;;OAIG;IACa,gBAAgB,CAElB;IACE,qBAAqB,CAA2C;IAE/D,kBAAkB,CAA2B;IAC7C,OAAO,CAAU;IACjB,YAAY,CAAO;IACpC,MAAM,GAAqC,UAAU,CAAC;IAEtD,YAAY,UAAiD;QAC3D,IAAI,CAAC,kBAAkB,GAAG,UAAU,CAAC,kBAAkB,CAAC;QACxD,IAAI,CAAC,cAAc,GAAG,UAAU,CAAC,cAAc,CAAC;QAChD,IAAI,CAAC,YAAY,GAAG,UAAU,CAAC,YAAY,CAAC;QAC5C,IAAI,CAAC,SAAS,GAAG,UAAU,CAAC,SAAS,CAAC;QACtC,IAAI,CAAC,WAAW,GAAG,UAAU,CAAC,WAAW,CAAC;QAC1C,IAAI,CAAC,SAAS,GAAG,UAAU,CAAC,SAAS,CAAC;QACtC,IAAI,CAAC,gBAAgB,GAAG,UAAU,CAAC,gBAAgB,CAAC;QACpD,qEAAqE;QACrE,gEAAgE;QAChE,IAAI,CAAC,qBAAqB,GAAG,CAAC,GAAG,CAAC,UAAU,CAAC,qBAAqB,IAAI,EAAE,CAAC,CAAC,CAAC;QAC3E,IAAI,CAAC,OAAO,GAAG,UAAU,CAAC,OAAO,IAAI,IAAI,CAAC;QAC1C,IAAI,CAAC,YAAY,GAAG,UAAU,CAAC,SAAS,CAAC;IAC3C,CAAC;IAED;;OAEG;IACH,IAAI,GAAG;QACL,MAAM,EAAE,UAAU,EAAE,SAAS,EAAE,GAAG,IAAI,CAAC,kBAAkB,CAAC;QAE1D,OAAO,kBAAkB,UAAU,IAAI,SAAS,yBAAyB,IAAI,CAAC,IAAI,EAAE,CAAC;IACvF,CAAC;IAED;;OAEG;IACH,IAAI,KAAK;QACP,OAAO,IAAI,CAAC,MAAM,CAAC;IACrB,CAAC;IAED;;;;;OAKG;IACH,IAAI,SAAS;QACX,OAAO,IAAI,CAAC,MAAM,KAAK,SAAS,CAAC;IACnC,CAAC;IAED;;OAEG;IACH,IAAI,wBAAwB;QAC1B,OAAO,IAAI,CAAC,qBAAqB,CAAC,QAAQ,CAAC,yBAAyB,CAAC,CAAC;IACxE,CAAC;IAED;;OAEG;IACH,QAAQ;QACN,IAAI,CAAC,MAAM,GAAG,IAAI,CAAC,OAAO,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,UAAU,CAAC;QAEpD,OAAO,OAAO,CAAC,OAAO,EAAE,CAAC;IAC3B,CAAC;IAED;;OAEG;IACH,aAAa;QACX,OAAO;YACL,IAAI,EAAE,IAAI,CAAC,IAAI;YACf,qBAAqB,EAAE,IAAI,CAAC,GAAG;YAC/B,cAAc,EAAE,IAAI,CAAC,cAAc;YACnC,WAAW,EAAE,IAAI,CAAC,WAAW;YAC7B,SAAS,EAAE,IAAI,CAAC,SAAS;YACzB,gBAAgB,EAAE,IAAI,CAAC,gBAAgB;YACvC,yEAAyE;YACzE,wEAAwE;YACxE,8BAA8B,EAAE,CAAC;YACjC,qBAAqB,EAAE,IAAI,CAAC,qBAAqB;YACjD,KAAK,EAAE,IAAI,CAAC,MAAM;YAClB,qBAAqB,EAAE,gBAAgB;YACvC,YAAY,EAAE,IAAI,CAAC,YAAY;SAChC,CAAC;IACJ,CAAC;CACF"}
|
|
@@ -37,12 +37,13 @@ export declare class SimLambdaHandlerReferenceCode implements SimLambdaExecutabl
|
|
|
37
37
|
readonly runsInHostScope = true;
|
|
38
38
|
constructor(handler: SimLambdaHandler);
|
|
39
39
|
/**
|
|
40
|
-
* Record nothing.
|
|
40
|
+
* Record nothing here.
|
|
41
41
|
*
|
|
42
|
-
* A referenced handler has no streams of its own to tee
|
|
43
|
-
* function closing over the test's own module scope,
|
|
44
|
-
*
|
|
45
|
-
*
|
|
42
|
+
* A referenced handler has no streams of its own to tee. It is an ordinary
|
|
43
|
+
* function closing over the test's own module scope, and it prints through
|
|
44
|
+
* the process console and the process standard streams. Its invocation is
|
|
45
|
+
* run with those bridged to the function's sink instead, the way the clock
|
|
46
|
+
* and process.env are bridged for the same code.
|
|
46
47
|
*/
|
|
47
48
|
recordOutputTo(): void;
|
|
48
49
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sim-lambda-executable-code.d.ts","sourceRoot":"","sources":["../../../../../src/service/lambda/function/code/sim-lambda-executable-code.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,sCAAsC,CAAC;AAChF,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,+BAA+B,CAAC;AAEtE;;;;;;GAMG;AACH,MAAM,WAAW,uBAAuB;IACtC;;;;;;;;OAQG;IACH,QAAQ,CAAC,eAAe,EAAE,OAAO,CAAC;IAElC;;;OAGG;IACH,cAAc,CAAC,IAAI,EAAE,mBAAmB,GAAG,IAAI,CAAC;IAEhD,eAAe,IAAI,gBAAgB,CAAC;CACrC;AAED;;GAEG;AACH,qBAAa,6BAA8B,YAAW,uBAAuB;IAO/D,OAAO,CAAC,QAAQ,CAAC,OAAO;IANpC;;;OAGG;IACH,QAAQ,CAAC,eAAe,QAAQ;IAEhC,YAA6B,OAAO,EAAE,gBAAgB,EAAI;IAE1D
|
|
1
|
+
{"version":3,"file":"sim-lambda-executable-code.d.ts","sourceRoot":"","sources":["../../../../../src/service/lambda/function/code/sim-lambda-executable-code.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,sCAAsC,CAAC;AAChF,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,+BAA+B,CAAC;AAEtE;;;;;;GAMG;AACH,MAAM,WAAW,uBAAuB;IACtC;;;;;;;;OAQG;IACH,QAAQ,CAAC,eAAe,EAAE,OAAO,CAAC;IAElC;;;OAGG;IACH,cAAc,CAAC,IAAI,EAAE,mBAAmB,GAAG,IAAI,CAAC;IAEhD,eAAe,IAAI,gBAAgB,CAAC;CACrC;AAED;;GAEG;AACH,qBAAa,6BAA8B,YAAW,uBAAuB;IAO/D,OAAO,CAAC,QAAQ,CAAC,OAAO;IANpC;;;OAGG;IACH,QAAQ,CAAC,eAAe,QAAQ;IAEhC,YAA6B,OAAO,EAAE,gBAAgB,EAAI;IAE1D;;;;;;;;OAQG;IACH,cAAc,IAAI,IAAI,CAErB;IAED;;OAEG;IACH,eAAe,IAAI,gBAAgB,CAElC;CACF"}
|
|
@@ -12,15 +12,16 @@ export class SimLambdaHandlerReferenceCode {
|
|
|
12
12
|
this.handler = handler;
|
|
13
13
|
}
|
|
14
14
|
/**
|
|
15
|
-
* Record nothing.
|
|
15
|
+
* Record nothing here.
|
|
16
16
|
*
|
|
17
|
-
* A referenced handler has no streams of its own to tee
|
|
18
|
-
* function closing over the test's own module scope,
|
|
19
|
-
*
|
|
20
|
-
*
|
|
17
|
+
* A referenced handler has no streams of its own to tee. It is an ordinary
|
|
18
|
+
* function closing over the test's own module scope, and it prints through
|
|
19
|
+
* the process console and the process standard streams. Its invocation is
|
|
20
|
+
* run with those bridged to the function's sink instead, the way the clock
|
|
21
|
+
* and process.env are bridged for the same code.
|
|
21
22
|
*/
|
|
22
23
|
recordOutputTo() {
|
|
23
|
-
//
|
|
24
|
+
// Recorded by the invocation, from the process globals.
|
|
24
25
|
}
|
|
25
26
|
/**
|
|
26
27
|
* Get the referenced handler function.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sim-lambda-executable-code.js","sourceRoot":"","sources":["../../../../../src/service/lambda/function/code/sim-lambda-executable-code.ts"],"names":[],"mappings":"AA+BA;;GAEG;AACH,MAAM,OAAO,6BAA6B;IAOX,OAAO;IANpC;;;OAGG;IACM,eAAe,GAAG,IAAI,CAAC;IAEhC,YAA6B,OAAyB;uBAAzB,OAAO;IAAqB,CAAC;IAE1D
|
|
1
|
+
{"version":3,"file":"sim-lambda-executable-code.js","sourceRoot":"","sources":["../../../../../src/service/lambda/function/code/sim-lambda-executable-code.ts"],"names":[],"mappings":"AA+BA;;GAEG;AACH,MAAM,OAAO,6BAA6B;IAOX,OAAO;IANpC;;;OAGG;IACM,eAAe,GAAG,IAAI,CAAC;IAEhC,YAA6B,OAAyB;uBAAzB,OAAO;IAAqB,CAAC;IAE1D;;;;;;;;OAQG;IACH,cAAc;QACZ,wDAAwD;IAC1D,CAAC;IAED;;OAEG;IACH,eAAe;QACb,OAAO,IAAI,CAAC,OAAO,CAAC;IACtB,CAAC;CACF"}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import type { SimClock } from "../../../../util/clock/sim-clock.js";
|
|
2
|
+
import type { SimLambdaOutputSink } from "../logging/sim-lambda-output-sink.js";
|
|
2
3
|
import type { SimLambdaOutboundHttp } from "../outbound/sim-lambda-outbound-http.js";
|
|
3
4
|
/**
|
|
4
5
|
* What an invocation of host-scope code has bridged to it.
|
|
@@ -12,14 +13,21 @@ interface SimLambdaHostScope {
|
|
|
12
13
|
* and its requests go where they were addressed.
|
|
13
14
|
*/
|
|
14
15
|
readonly outboundHttp: SimLambdaOutboundHttp | undefined;
|
|
16
|
+
/**
|
|
17
|
+
* Where what the invocation prints is recorded. A function built standalone,
|
|
18
|
+
* outside a SimAws instance, has no simulated CloudWatch Logs to record to,
|
|
19
|
+
* and its output reaches the host console alone.
|
|
20
|
+
*/
|
|
21
|
+
readonly output: SimLambdaOutputSink | undefined;
|
|
15
22
|
}
|
|
16
23
|
/**
|
|
17
24
|
* Run an invocation of code in the host scope with the process globals it
|
|
18
25
|
* reads bridged to its simulation.
|
|
19
26
|
*
|
|
20
|
-
* Only code running in the host scope needs this. Zip code reads the Date
|
|
21
|
-
*
|
|
22
|
-
* leaves the globals alone entirely and never comes
|
|
27
|
+
* Only code running in the host scope needs this. Zip code reads the Date, the
|
|
28
|
+
* HTTP clients and the standard streams its own vm sandbox was given, so a
|
|
29
|
+
* function backed by one leaves the globals alone entirely and never comes
|
|
30
|
+
* here.
|
|
23
31
|
*/
|
|
24
32
|
export declare function runSimLambdaInHostScope<T>(scope: SimLambdaHostScope, run: () => Promise<T>): Promise<T>;
|
|
25
33
|
export {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sim-lambda-host-scope.d.ts","sourceRoot":"","sources":["../../../../../src/service/lambda/function/invoke/sim-lambda-host-scope.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,qCAAqC,CAAC;AACpE,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,yCAAyC,CAAC;
|
|
1
|
+
{"version":3,"file":"sim-lambda-host-scope.d.ts","sourceRoot":"","sources":["../../../../../src/service/lambda/function/invoke/sim-lambda-host-scope.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,qCAAqC,CAAC;AACpE,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,sCAAsC,CAAC;AAChF,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,yCAAyC,CAAC;AAKrF;;GAEG;AACH,UAAU,kBAAkB;IAC1B,2DAA2D;IAC3D,QAAQ,CAAC,KAAK,EAAE,QAAQ,CAAC;IAEzB;;;;OAIG;IACH,QAAQ,CAAC,YAAY,EAAE,qBAAqB,GAAG,SAAS,CAAC;IAEzD;;;;OAIG;IACH,QAAQ,CAAC,MAAM,EAAE,mBAAmB,GAAG,SAAS,CAAC;CAClD;AAED;;;;;;;;GAQG;AACH,wBAAsB,uBAAuB,CAAC,CAAC,EAC7C,KAAK,EAAE,kBAAkB,EACzB,GAAG,EAAE,MAAM,OAAO,CAAC,CAAC,CAAC,GACpB,OAAO,CAAC,CAAC,CAAC,CAeZ"}
|
|
@@ -1,17 +1,23 @@
|
|
|
1
1
|
import { simLambdaProcessClock } from "./sim-lambda-process-clock.js";
|
|
2
2
|
import { simLambdaProcessOutbound } from "./sim-lambda-process-outbound.js";
|
|
3
|
+
import { simLambdaProcessOutput } from "./sim-lambda-process-output.js";
|
|
3
4
|
/**
|
|
4
5
|
* Run an invocation of code in the host scope with the process globals it
|
|
5
6
|
* reads bridged to its simulation.
|
|
6
7
|
*
|
|
7
|
-
* Only code running in the host scope needs this. Zip code reads the Date
|
|
8
|
-
*
|
|
9
|
-
* leaves the globals alone entirely and never comes
|
|
8
|
+
* Only code running in the host scope needs this. Zip code reads the Date, the
|
|
9
|
+
* HTTP clients and the standard streams its own vm sandbox was given, so a
|
|
10
|
+
* function backed by one leaves the globals alone entirely and never comes
|
|
11
|
+
* here.
|
|
10
12
|
*/
|
|
11
13
|
export async function runSimLambdaInHostScope(scope, run) {
|
|
12
|
-
const { outboundHttp } = scope;
|
|
13
|
-
|
|
14
|
-
?
|
|
15
|
-
: await
|
|
14
|
+
const { clock, outboundHttp, output } = scope;
|
|
15
|
+
const recording = output === undefined
|
|
16
|
+
? run
|
|
17
|
+
: async () => await simLambdaProcessOutput.run(output, run);
|
|
18
|
+
const reachingTheSimulation = outboundHttp === undefined
|
|
19
|
+
? recording
|
|
20
|
+
: async () => await simLambdaProcessOutbound.run(outboundHttp, recording);
|
|
21
|
+
return await simLambdaProcessClock.run(clock, reachingTheSimulation);
|
|
16
22
|
}
|
|
17
23
|
//# sourceMappingURL=sim-lambda-host-scope.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sim-lambda-host-scope.js","sourceRoot":"","sources":["../../../../../src/service/lambda/function/invoke/sim-lambda-host-scope.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"sim-lambda-host-scope.js","sourceRoot":"","sources":["../../../../../src/service/lambda/function/invoke/sim-lambda-host-scope.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,qBAAqB,EAAE,MAAM,+BAA+B,CAAC;AACtE,OAAO,EAAE,wBAAwB,EAAE,MAAM,kCAAkC,CAAC;AAC5E,OAAO,EAAE,sBAAsB,EAAE,MAAM,gCAAgC,CAAC;AAwBxE;;;;;;;;GAQG;AACH,MAAM,CAAC,KAAK,UAAU,uBAAuB,CAC3C,KAAyB,EACzB,GAAqB;IAErB,MAAM,EAAE,KAAK,EAAE,YAAY,EAAE,MAAM,EAAE,GAAG,KAAK,CAAC;IAE9C,MAAM,SAAS,GACb,MAAM,KAAK,SAAS;QAClB,CAAC,CAAC,GAAG;QACL,CAAC,CAAC,KAAK,IAAgB,EAAE,CAAC,MAAM,sBAAsB,CAAC,GAAG,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;IAE5E,MAAM,qBAAqB,GACzB,YAAY,KAAK,SAAS;QACxB,CAAC,CAAC,SAAS;QACX,CAAC,CAAC,KAAK,IAAgB,EAAE,CACrB,MAAM,wBAAwB,CAAC,GAAG,CAAC,YAAY,EAAE,SAAS,CAAC,CAAC;IAEpE,OAAO,MAAM,qBAAqB,CAAC,GAAG,CAAC,KAAK,EAAE,qBAAqB,CAAC,CAAC;AACvE,CAAC"}
|
|
@@ -2,6 +2,8 @@ import type { SimLambdaCallback, SimLambdaContext } from "../sim-lambda-handler.
|
|
|
2
2
|
import { type SimClock } from "../../../../util/clock/sim-clock.js";
|
|
3
3
|
interface SimLambdaInvokeContextBuilderProperties {
|
|
4
4
|
readonly functionName: string;
|
|
5
|
+
/** The version the invocation is running, which is `$LATEST` or a number. */
|
|
6
|
+
readonly functionVersion: string;
|
|
5
7
|
readonly invokedFunctionArn: string;
|
|
6
8
|
readonly timeoutSeconds: number;
|
|
7
9
|
readonly memorySizeMb: number;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sim-lambda-invoke-context-builder.d.ts","sourceRoot":"","sources":["../../../../../src/service/lambda/function/invoke/sim-lambda-invoke-context-builder.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EACV,iBAAiB,EACjB,gBAAgB,EACjB,MAAM,+BAA+B,CAAC;AACvC,OAAO,EACL,KAAK,QAAQ,EAEd,MAAM,qCAAqC,CAAC;AAE7C,UAAU,uCAAuC;IAC/C,QAAQ,CAAC,YAAY,EAAE,MAAM,CAAC;IAC9B,QAAQ,CAAC,kBAAkB,EAAE,MAAM,CAAC;IACpC,QAAQ,CAAC,cAAc,EAAE,MAAM,CAAC;IAChC,QAAQ,CAAC,YAAY,EAAE,MAAM,CAAC;IAC9B,QAAQ,CAAC,YAAY,EAAE,MAAM,CAAC;IAE9B,oEAAoE;IACpE,QAAQ,CAAC,aAAa,EAAE,MAAM,CAAC;IAC/B;;;;OAIG;IACH,QAAQ,CAAC,KAAK,CAAC,EAAE,QAAQ,GAAG,SAAS,CAAC;CACvC;AAED;;;;;GAKG;AACH,qBAAa,6BAA6B;IAEtC,OAAO,CAAC,QAAQ,CAAC,UAAU;IAD7B,YACmB,UAAU,EAAE,uCAAuC,EAClE;IAEJ;;OAEG;IACH,KAAK,CAAC,QAAQ,EAAE,iBAAiB,GAAG,gBAAgB,
|
|
1
|
+
{"version":3,"file":"sim-lambda-invoke-context-builder.d.ts","sourceRoot":"","sources":["../../../../../src/service/lambda/function/invoke/sim-lambda-invoke-context-builder.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EACV,iBAAiB,EACjB,gBAAgB,EACjB,MAAM,+BAA+B,CAAC;AACvC,OAAO,EACL,KAAK,QAAQ,EAEd,MAAM,qCAAqC,CAAC;AAE7C,UAAU,uCAAuC;IAC/C,QAAQ,CAAC,YAAY,EAAE,MAAM,CAAC;IAC9B,6EAA6E;IAC7E,QAAQ,CAAC,eAAe,EAAE,MAAM,CAAC;IACjC,QAAQ,CAAC,kBAAkB,EAAE,MAAM,CAAC;IACpC,QAAQ,CAAC,cAAc,EAAE,MAAM,CAAC;IAChC,QAAQ,CAAC,YAAY,EAAE,MAAM,CAAC;IAC9B,QAAQ,CAAC,YAAY,EAAE,MAAM,CAAC;IAE9B,oEAAoE;IACpE,QAAQ,CAAC,aAAa,EAAE,MAAM,CAAC;IAC/B;;;;OAIG;IACH,QAAQ,CAAC,KAAK,CAAC,EAAE,QAAQ,GAAG,SAAS,CAAC;CACvC;AAED;;;;;GAKG;AACH,qBAAa,6BAA6B;IAEtC,OAAO,CAAC,QAAQ,CAAC,UAAU;IAD7B,YACmB,UAAU,EAAE,uCAAuC,EAClE;IAEJ;;OAEG;IACH,KAAK,CAAC,QAAQ,EAAE,iBAAiB,GAAG,gBAAgB,CAsCnD;CACF"}
|
|
@@ -15,13 +15,13 @@ export class SimLambdaInvokeContextBuilder {
|
|
|
15
15
|
* Build the context for one invocation.
|
|
16
16
|
*/
|
|
17
17
|
build(callback) {
|
|
18
|
-
const { functionName, invokedFunctionArn, timeoutSeconds, memorySizeMb, logGroupName, logStreamName, clock = new SimRealClock(), } = this.properties;
|
|
18
|
+
const { functionName, functionVersion, invokedFunctionArn, timeoutSeconds, memorySizeMb, logGroupName, logStreamName, clock = new SimRealClock(), } = this.properties;
|
|
19
19
|
const startedAtMs = clock.now().getTime();
|
|
20
20
|
const awsRequestId = randomUUID();
|
|
21
21
|
return {
|
|
22
22
|
callbackWaitsForEmptyEventLoop: true,
|
|
23
23
|
functionName,
|
|
24
|
-
functionVersion
|
|
24
|
+
functionVersion,
|
|
25
25
|
invokedFunctionArn,
|
|
26
26
|
memoryLimitInMB: String(memorySizeMb),
|
|
27
27
|
awsRequestId,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sim-lambda-invoke-context-builder.js","sourceRoot":"","sources":["../../../../../src/service/lambda/function/invoke/sim-lambda-invoke-context-builder.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AAKzC,OAAO,EAEL,YAAY,GACb,MAAM,qCAAqC,CAAC;
|
|
1
|
+
{"version":3,"file":"sim-lambda-invoke-context-builder.js","sourceRoot":"","sources":["../../../../../src/service/lambda/function/invoke/sim-lambda-invoke-context-builder.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AAKzC,OAAO,EAEL,YAAY,GACb,MAAM,qCAAqC,CAAC;AAqB7C;;;;;GAKG;AACH,MAAM,OAAO,6BAA6B;IAErB,UAAU;IAD7B,YACmB,UAAmD;0BAAnD,UAAU;IAC1B,CAAC;IAEJ;;OAEG;IACH,KAAK,CAAC,QAA2B;QAC/B,MAAM,EACJ,YAAY,EACZ,eAAe,EACf,kBAAkB,EAClB,cAAc,EACd,YAAY,EACZ,YAAY,EACZ,aAAa,EACb,KAAK,GAAG,IAAI,YAAY,EAAE,GAC3B,GAAG,IAAI,CAAC,UAAU,CAAC;QACpB,MAAM,WAAW,GAAG,KAAK,CAAC,GAAG,EAAE,CAAC,OAAO,EAAE,CAAC;QAC1C,MAAM,YAAY,GAAG,UAAU,EAAE,CAAC;QAElC,OAAO;YACL,8BAA8B,EAAE,IAAI;YACpC,YAAY;YACZ,eAAe;YACf,kBAAkB;YAClB,eAAe,EAAE,MAAM,CAAC,YAAY,CAAC;YACrC,YAAY;YACZ,YAAY;YACZ,aAAa;YACb,wBAAwB,EAAE,GAAW,EAAE,CACrC,IAAI,CAAC,GAAG,CACN,CAAC,EACD,cAAc,GAAG,IAAI,GAAG,CAAC,KAAK,CAAC,GAAG,EAAE,CAAC,OAAO,EAAE,GAAG,WAAW,CAAC,CAC9D;YACH,IAAI,EAAE,CAAC,KAAa,EAAE,MAAgB,EAAQ,EAAE;gBAC9C,QAAQ,CAAC,KAAK,IAAI,IAAI,EAAE,MAAM,CAAC,CAAC;YAClC,CAAC;YACD,IAAI,EAAE,CAAC,KAAqB,EAAQ,EAAE;gBACpC,QAAQ,CAAC,KAAK,CAAC,CAAC;YAClB,CAAC;YACD,OAAO,EAAE,CAAC,eAAwB,EAAQ,EAAE;gBAC1C,QAAQ,CAAC,IAAI,EAAE,eAAe,CAAC,CAAC;YAClC,CAAC;SACF,CAAC;IACJ,CAAC;CACF"}
|
|
@@ -0,0 +1,104 @@
|
|
|
1
|
+
import type { SimLambdaOutputSink } from "../logging/sim-lambda-output-sink.js";
|
|
2
|
+
/**
|
|
3
|
+
* The console methods an invocation's output is taken from.
|
|
4
|
+
*
|
|
5
|
+
* These are the ones that format their arguments the way `console.log` does,
|
|
6
|
+
* so what is recorded is what the host console prints. `console.trace` and
|
|
7
|
+
* `console.dir` decorate their output, and recording a plain format of their
|
|
8
|
+
* arguments would put something in the log group that the handler never
|
|
9
|
+
* printed. Both still reach the host console, and both are recorded when the
|
|
10
|
+
* host console goes on to write them to `process.stdout`.
|
|
11
|
+
*/
|
|
12
|
+
declare const CONSOLE_METHODS: readonly ["log", "info", "debug", "warn", "error"];
|
|
13
|
+
type ConsoleMethod = (typeof CONSOLE_METHODS)[number];
|
|
14
|
+
type StreamChunk = string | Uint8Array;
|
|
15
|
+
/**
|
|
16
|
+
* One of the process's standard streams, as much of it as recording needs.
|
|
17
|
+
*/
|
|
18
|
+
export interface SimLambdaProcessStream {
|
|
19
|
+
write: (chunk: StreamChunk, ...rest: never[]) => boolean;
|
|
20
|
+
}
|
|
21
|
+
/**
|
|
22
|
+
* The process console, as much of it as recording needs.
|
|
23
|
+
*/
|
|
24
|
+
export type SimLambdaProcessConsole = Record<ConsoleMethod, (...arguments_: readonly unknown[]) => void>;
|
|
25
|
+
/**
|
|
26
|
+
* What an invocation of host-scope code prints through.
|
|
27
|
+
*/
|
|
28
|
+
export interface SimLambdaProcessGlobals {
|
|
29
|
+
readonly console: SimLambdaProcessConsole;
|
|
30
|
+
readonly stdout: SimLambdaProcessStream;
|
|
31
|
+
readonly stderr: SimLambdaProcessStream;
|
|
32
|
+
}
|
|
33
|
+
/**
|
|
34
|
+
* What a sim Lambda handler running in the host scope prints.
|
|
35
|
+
*
|
|
36
|
+
* A handler backed by a real in-process function is a closure over its own
|
|
37
|
+
* module scope, so it prints through the host process's console and streams
|
|
38
|
+
* like any other code in the test run. Zip code has a vm sandbox with streams
|
|
39
|
+
* of its own and needs none of this. Node.js asynchronous context tracking
|
|
40
|
+
* bridges the gap for the in-process case, exactly as it does for the clock
|
|
41
|
+
* and for process.env: the invocation's sink is held in an AsyncLocalStorage
|
|
42
|
+
* store, and a write resolves to it while it is set.
|
|
43
|
+
*
|
|
44
|
+
* The store follows the invocation across await points, so concurrent
|
|
45
|
+
* invocations each record to their own function's log group, and output from
|
|
46
|
+
* the rest of the test run reaches the host console alone.
|
|
47
|
+
*
|
|
48
|
+
* Both the console and the standard streams are patched, because a test runner
|
|
49
|
+
* commonly replaces the global console with one of its own that writes
|
|
50
|
+
* somewhere else. Vitest does, which means a patch on `process.stdout` alone
|
|
51
|
+
* would see a handler's direct writes and miss every `console.log` it made.
|
|
52
|
+
* The console patch delegates outside the store, so a line the host console
|
|
53
|
+
* passes on to `process.stdout` is recorded once.
|
|
54
|
+
*
|
|
55
|
+
* The process globals are taken from a function so that a test can build an
|
|
56
|
+
* instance over streams it can watch. Everything else shares the one below.
|
|
57
|
+
*/
|
|
58
|
+
export declare class SimLambdaProcessOutput {
|
|
59
|
+
private readonly processGlobals;
|
|
60
|
+
private readonly storage;
|
|
61
|
+
private installed;
|
|
62
|
+
constructor(processGlobals?: () => SimLambdaProcessGlobals);
|
|
63
|
+
/**
|
|
64
|
+
* Run an invocation with the given sink recording what it prints.
|
|
65
|
+
*/
|
|
66
|
+
run<T>(sink: SimLambdaOutputSink, run: () => Promise<T>): Promise<T>;
|
|
67
|
+
/**
|
|
68
|
+
* Tee the process console and standard streams into the invocation store.
|
|
69
|
+
*
|
|
70
|
+
* Installed on the first invocation that has somewhere to record rather than
|
|
71
|
+
* at import, so a test run that only ever invokes zip code, or that builds a
|
|
72
|
+
* function standalone outside a SimAws instance, is left completely alone.
|
|
73
|
+
*
|
|
74
|
+
* With no invocation running, both patches forward and record nothing, so an
|
|
75
|
+
* installed patch behaves exactly like no patch at all. Neither is ever
|
|
76
|
+
* removed: removing one would be unsafe while another invocation is in
|
|
77
|
+
* flight, and there is nothing to gain.
|
|
78
|
+
*/
|
|
79
|
+
private install;
|
|
80
|
+
/**
|
|
81
|
+
* Record what the console prints during an invocation.
|
|
82
|
+
*
|
|
83
|
+
* The host method is held from install time. A test runner that wraps the
|
|
84
|
+
* console afterwards wraps the patch, so its own interception still sees
|
|
85
|
+
* every write, and one that replaces the console object outright takes the
|
|
86
|
+
* patch with it and gets the output the handler wrote.
|
|
87
|
+
*/
|
|
88
|
+
private patchConsole;
|
|
89
|
+
/**
|
|
90
|
+
* Record what is written to one of the process's standard streams.
|
|
91
|
+
*
|
|
92
|
+
* Chunks are decoded as one stream rather than one at a time. A handler
|
|
93
|
+
* writing bytes in pieces can split a multibyte character across two writes,
|
|
94
|
+
* and decoding each chunk on its own would record a replacement character in
|
|
95
|
+
* place of both halves.
|
|
96
|
+
*/
|
|
97
|
+
private patchStream;
|
|
98
|
+
}
|
|
99
|
+
/**
|
|
100
|
+
* Shared because it patches process globals: one patch, one store.
|
|
101
|
+
*/
|
|
102
|
+
export declare const simLambdaProcessOutput: SimLambdaProcessOutput;
|
|
103
|
+
export {};
|
|
104
|
+
//# sourceMappingURL=sim-lambda-process-output.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sim-lambda-process-output.d.ts","sourceRoot":"","sources":["../../../../../src/service/lambda/function/invoke/sim-lambda-process-output.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,sCAAsC,CAAC;AAEhF;;;;;;;;;GASG;AACH,QAAA,MAAM,eAAe,YAAI,KAAK,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,EAAE,OAAO,CAAU,CAAC;AAE3E,KAAK,aAAa,GAAG,CAAC,OAAO,eAAe,CAAC,CAAC,MAAM,CAAC,CAAC;AAEtD,KAAK,WAAW,GAAG,MAAM,GAAG,UAAU,CAAC;AAEvC;;GAEG;AACH,MAAM,WAAW,sBAAsB;IACrC,KAAK,EAAE,CAAC,KAAK,EAAE,WAAW,EAAE,GAAG,IAAI,EAAE,KAAK,EAAE,KAAK,OAAO,CAAC;CAC1D;AAED;;GAEG;AACH,MAAM,MAAM,uBAAuB,GAAG,MAAM,CAC1C,aAAa,EACb,CAAC,GAAG,UAAU,EAAE,SAAS,OAAO,EAAE,KAAK,IAAI,CAC5C,CAAC;AAEF;;GAEG;AACH,MAAM,WAAW,uBAAuB;IACtC,QAAQ,CAAC,OAAO,EAAE,uBAAuB,CAAC;IAC1C,QAAQ,CAAC,MAAM,EAAE,sBAAsB,CAAC;IACxC,QAAQ,CAAC,MAAM,EAAE,sBAAsB,CAAC;CACzC;AAaD;;;;;;;;;;;;;;;;;;;;;;;;GAwBG;AACH,qBAAa,sBAAsB;IAK/B,OAAO,CAAC,QAAQ,CAAC,cAAc;IAJjC,OAAO,CAAC,QAAQ,CAAC,OAAO,CAAgD;IACxE,OAAO,CAAC,SAAS,CAAS;IAE1B,YACmB,cAAc,GAAE,MAAM,uBAA4C,EACjF;IAEJ;;OAEG;IACG,GAAG,CAAC,CAAC,EAAE,IAAI,EAAE,mBAAmB,EAAE,GAAG,EAAE,MAAM,OAAO,CAAC,CAAC,CAAC,GAAG,OAAO,CAAC,CAAC,CAAC,CAIzE;IAED;;;;;;;;;;;OAWG;IACH,OAAO,CAAC,OAAO;IAcf;;;;;;;OAOG;IACH,OAAO,CAAC,YAAY;IAkBpB;;;;;;;OAOG;IACH,OAAO,CAAC,WAAW;CAgBpB;AAED;;GAEG;AACH,eAAO,MAAM,sBAAsB,wBAA+B,CAAC"}
|
|
@@ -0,0 +1,133 @@
|
|
|
1
|
+
import { AsyncLocalStorage } from "node:async_hooks";
|
|
2
|
+
import { StringDecoder } from "node:string_decoder";
|
|
3
|
+
import { format } from "node:util";
|
|
4
|
+
/**
|
|
5
|
+
* The console methods an invocation's output is taken from.
|
|
6
|
+
*
|
|
7
|
+
* These are the ones that format their arguments the way `console.log` does,
|
|
8
|
+
* so what is recorded is what the host console prints. `console.trace` and
|
|
9
|
+
* `console.dir` decorate their output, and recording a plain format of their
|
|
10
|
+
* arguments would put something in the log group that the handler never
|
|
11
|
+
* printed. Both still reach the host console, and both are recorded when the
|
|
12
|
+
* host console goes on to write them to `process.stdout`.
|
|
13
|
+
*/
|
|
14
|
+
const CONSOLE_METHODS = ["log", "info", "debug", "warn", "error"];
|
|
15
|
+
/**
|
|
16
|
+
* The real process globals, read when the patch is installed.
|
|
17
|
+
*/
|
|
18
|
+
function hostProcessGlobals() {
|
|
19
|
+
return {
|
|
20
|
+
console: globalThis.console,
|
|
21
|
+
stdout: process.stdout,
|
|
22
|
+
stderr: process.stderr,
|
|
23
|
+
};
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
* What a sim Lambda handler running in the host scope prints.
|
|
27
|
+
*
|
|
28
|
+
* A handler backed by a real in-process function is a closure over its own
|
|
29
|
+
* module scope, so it prints through the host process's console and streams
|
|
30
|
+
* like any other code in the test run. Zip code has a vm sandbox with streams
|
|
31
|
+
* of its own and needs none of this. Node.js asynchronous context tracking
|
|
32
|
+
* bridges the gap for the in-process case, exactly as it does for the clock
|
|
33
|
+
* and for process.env: the invocation's sink is held in an AsyncLocalStorage
|
|
34
|
+
* store, and a write resolves to it while it is set.
|
|
35
|
+
*
|
|
36
|
+
* The store follows the invocation across await points, so concurrent
|
|
37
|
+
* invocations each record to their own function's log group, and output from
|
|
38
|
+
* the rest of the test run reaches the host console alone.
|
|
39
|
+
*
|
|
40
|
+
* Both the console and the standard streams are patched, because a test runner
|
|
41
|
+
* commonly replaces the global console with one of its own that writes
|
|
42
|
+
* somewhere else. Vitest does, which means a patch on `process.stdout` alone
|
|
43
|
+
* would see a handler's direct writes and miss every `console.log` it made.
|
|
44
|
+
* The console patch delegates outside the store, so a line the host console
|
|
45
|
+
* passes on to `process.stdout` is recorded once.
|
|
46
|
+
*
|
|
47
|
+
* The process globals are taken from a function so that a test can build an
|
|
48
|
+
* instance over streams it can watch. Everything else shares the one below.
|
|
49
|
+
*/
|
|
50
|
+
export class SimLambdaProcessOutput {
|
|
51
|
+
processGlobals;
|
|
52
|
+
storage = new AsyncLocalStorage();
|
|
53
|
+
installed = false;
|
|
54
|
+
constructor(processGlobals = hostProcessGlobals) {
|
|
55
|
+
this.processGlobals = processGlobals;
|
|
56
|
+
}
|
|
57
|
+
/**
|
|
58
|
+
* Run an invocation with the given sink recording what it prints.
|
|
59
|
+
*/
|
|
60
|
+
async run(sink, run) {
|
|
61
|
+
this.install();
|
|
62
|
+
return await this.storage.run(sink, run);
|
|
63
|
+
}
|
|
64
|
+
/**
|
|
65
|
+
* Tee the process console and standard streams into the invocation store.
|
|
66
|
+
*
|
|
67
|
+
* Installed on the first invocation that has somewhere to record rather than
|
|
68
|
+
* at import, so a test run that only ever invokes zip code, or that builds a
|
|
69
|
+
* function standalone outside a SimAws instance, is left completely alone.
|
|
70
|
+
*
|
|
71
|
+
* With no invocation running, both patches forward and record nothing, so an
|
|
72
|
+
* installed patch behaves exactly like no patch at all. Neither is ever
|
|
73
|
+
* removed: removing one would be unsafe while another invocation is in
|
|
74
|
+
* flight, and there is nothing to gain.
|
|
75
|
+
*/
|
|
76
|
+
install() {
|
|
77
|
+
if (this.installed) {
|
|
78
|
+
return;
|
|
79
|
+
}
|
|
80
|
+
this.installed = true;
|
|
81
|
+
const globals = this.processGlobals();
|
|
82
|
+
this.patchConsole(globals.console);
|
|
83
|
+
this.patchStream(globals.stdout);
|
|
84
|
+
this.patchStream(globals.stderr);
|
|
85
|
+
}
|
|
86
|
+
/**
|
|
87
|
+
* Record what the console prints during an invocation.
|
|
88
|
+
*
|
|
89
|
+
* The host method is held from install time. A test runner that wraps the
|
|
90
|
+
* console afterwards wraps the patch, so its own interception still sees
|
|
91
|
+
* every write, and one that replaces the console object outright takes the
|
|
92
|
+
* patch with it and gets the output the handler wrote.
|
|
93
|
+
*/
|
|
94
|
+
patchConsole(hostConsole) {
|
|
95
|
+
for (const method of CONSOLE_METHODS) {
|
|
96
|
+
// oxlint-disable-next-line security/detect-object-injection -- one of this module's own fixed method names.
|
|
97
|
+
const hostMethod = hostConsole[method].bind(hostConsole);
|
|
98
|
+
// oxlint-disable-next-line security/detect-object-injection -- one of this module's own fixed method names.
|
|
99
|
+
hostConsole[method] = (...arguments_) => {
|
|
100
|
+
this.storage.getStore()?.write(`${format(...arguments_)}\n`);
|
|
101
|
+
// Delegated outside the store, because the host console writing to
|
|
102
|
+
// process.stdout would otherwise record the same line a second time.
|
|
103
|
+
this.storage.exit(() => {
|
|
104
|
+
hostMethod(...arguments_);
|
|
105
|
+
});
|
|
106
|
+
};
|
|
107
|
+
}
|
|
108
|
+
}
|
|
109
|
+
/**
|
|
110
|
+
* Record what is written to one of the process's standard streams.
|
|
111
|
+
*
|
|
112
|
+
* Chunks are decoded as one stream rather than one at a time. A handler
|
|
113
|
+
* writing bytes in pieces can split a multibyte character across two writes,
|
|
114
|
+
* and decoding each chunk on its own would record a replacement character in
|
|
115
|
+
* place of both halves.
|
|
116
|
+
*/
|
|
117
|
+
patchStream(hostStream) {
|
|
118
|
+
const hostWrite = hostStream.write.bind(hostStream);
|
|
119
|
+
const decoder = new StringDecoder("utf8");
|
|
120
|
+
hostStream.write = (chunk, ...rest) => {
|
|
121
|
+
const sink = this.storage.getStore();
|
|
122
|
+
if (sink !== undefined) {
|
|
123
|
+
sink.write(typeof chunk === "string" ? chunk : decoder.write(Buffer.from(chunk)));
|
|
124
|
+
}
|
|
125
|
+
return hostWrite(chunk, ...rest);
|
|
126
|
+
};
|
|
127
|
+
}
|
|
128
|
+
}
|
|
129
|
+
/**
|
|
130
|
+
* Shared because it patches process globals: one patch, one store.
|
|
131
|
+
*/
|
|
132
|
+
export const simLambdaProcessOutput = new SimLambdaProcessOutput();
|
|
133
|
+
//# sourceMappingURL=sim-lambda-process-output.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sim-lambda-process-output.js","sourceRoot":"","sources":["../../../../../src/service/lambda/function/invoke/sim-lambda-process-output.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,kBAAkB,CAAC;AACrD,OAAO,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAC;AACpD,OAAO,EAAE,MAAM,EAAE,MAAM,WAAW,CAAC;AAInC;;;;;;;;;GASG;AACH,MAAM,eAAe,GAAG,CAAC,KAAK,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,EAAE,OAAO,CAAU,CAAC;AA8B3E;;GAEG;AACH,SAAS,kBAAkB;IACzB,OAAO;QACL,OAAO,EAAE,UAAU,CAAC,OAAO;QAC3B,MAAM,EAAE,OAAO,CAAC,MAAM;QACtB,MAAM,EAAE,OAAO,CAAC,MAAM;KACvB,CAAC;AACJ,CAAC;AAED;;;;;;;;;;;;;;;;;;;;;;;;GAwBG;AACH,MAAM,OAAO,sBAAsB;IAKd,cAAc;IAJhB,OAAO,GAAG,IAAI,iBAAiB,EAAuB,CAAC;IAChE,SAAS,GAAG,KAAK,CAAC;IAE1B,YACmB,cAAc,GAAkC,kBAAkB;8BAAlE,cAAc;IAC9B,CAAC;IAEJ;;OAEG;IACH,KAAK,CAAC,GAAG,CAAI,IAAyB,EAAE,GAAqB;QAC3D,IAAI,CAAC,OAAO,EAAE,CAAC;QAEf,OAAO,MAAM,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,EAAE,GAAG,CAAC,CAAC;IAC3C,CAAC;IAED;;;;;;;;;;;OAWG;IACK,OAAO;QACb,IAAI,IAAI,CAAC,SAAS,EAAE,CAAC;YACnB,OAAO;QACT,CAAC;QAED,IAAI,CAAC,SAAS,GAAG,IAAI,CAAC;QAEtB,MAAM,OAAO,GAAG,IAAI,CAAC,cAAc,EAAE,CAAC;QAEtC,IAAI,CAAC,YAAY,CAAC,OAAO,CAAC,OAAO,CAAC,CAAC;QACnC,IAAI,CAAC,WAAW,CAAC,OAAO,CAAC,MAAM,CAAC,CAAC;QACjC,IAAI,CAAC,WAAW,CAAC,OAAO,CAAC,MAAM,CAAC,CAAC;IACnC,CAAC;IAED;;;;;;;OAOG;IACK,YAAY,CAAC,WAAoC;QACvD,KAAK,MAAM,MAAM,IAAI,eAAe,EAAE,CAAC;YACrC,4GAA4G;YAC5G,MAAM,UAAU,GAAG,WAAW,CAAC,MAAM,CAAC,CAAC,IAAI,CAAC,WAAW,CAAC,CAAC;YAEzD,4GAA4G;YAC5G,WAAW,CAAC,MAAM,CAAC,GAAG,CAAC,GAAG,UAA8B,EAAQ,EAAE;gBAChE,IAAI,CAAC,OAAO,CAAC,QAAQ,EAAE,EAAE,KAAK,CAAC,GAAG,MAAM,CAAC,GAAG,UAAU,CAAC,IAAI,CAAC,CAAC;gBAE7D,mEAAmE;gBACnE,qEAAqE;gBACrE,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,GAAG,EAAE;oBACrB,UAAU,CAAC,GAAG,UAAU,CAAC,CAAC;gBAC5B,CAAC,CAAC,CAAC;YACL,CAAC,CAAC;QACJ,CAAC;IACH,CAAC;IAED;;;;;;;OAOG;IACK,WAAW,CAAC,UAAkC;QACpD,MAAM,SAAS,GAAG,UAAU,CAAC,KAAK,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC;QACpD,MAAM,OAAO,GAAG,IAAI,aAAa,CAAC,MAAM,CAAC,CAAC;QAE1C,UAAU,CAAC,KAAK,GAAG,CAAC,KAAkB,EAAE,GAAG,IAAa,EAAW,EAAE;YACnE,MAAM,IAAI,GAAG,IAAI,CAAC,OAAO,CAAC,QAAQ,EAAE,CAAC;YAErC,IAAI,IAAI,KAAK,SAAS,EAAE,CAAC;gBACvB,IAAI,CAAC,KAAK,CACR,OAAO,KAAK,KAAK,QAAQ,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,OAAO,CAAC,KAAK,CAAC,MAAM,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CACtE,CAAC;YACJ,CAAC;YAED,OAAO,SAAS,CAAC,KAAK,EAAE,GAAG,IAAI,CAAC,CAAC;QACnC,CAAC,CAAC;IACJ,CAAC;CACF;AAED;;GAEG;AACH,MAAM,CAAC,MAAM,sBAAsB,GAAG,IAAI,sBAAsB,EAAE,CAAC"}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import type { SimClock } from "../../../../util/clock/sim-clock.js";
|
|
2
2
|
import type { SimLogsServiceWriter } from "../../../logs/write/sim-logs-service-writer.js";
|
|
3
|
+
import type { SimLambdaOutputSink } from "./sim-lambda-output-sink.js";
|
|
3
4
|
import type { SimLambdaExecutableCode } from "../code/sim-lambda-executable-code.js";
|
|
4
5
|
interface SimLambdaFunctionLoggingProperties {
|
|
5
6
|
readonly functionName: string;
|
|
@@ -43,6 +44,15 @@ export declare class SimLambdaFunctionLogging {
|
|
|
43
44
|
* Have this function's code record what it writes.
|
|
44
45
|
*/
|
|
45
46
|
recordFrom(code: SimLambdaExecutableCode): void;
|
|
47
|
+
/**
|
|
48
|
+
* Where this function's output goes, once its execution environment has
|
|
49
|
+
* cold started.
|
|
50
|
+
*
|
|
51
|
+
* Code with streams of its own is given this through recordFrom. Host-scope
|
|
52
|
+
* code has none, and its invocation runs with this as the sink the process
|
|
53
|
+
* console and standard streams tee into.
|
|
54
|
+
*/
|
|
55
|
+
outputSink(): SimLambdaOutputSink | undefined;
|
|
46
56
|
/**
|
|
47
57
|
* Run an invocation, recording whatever it left unterminated once it is
|
|
48
58
|
* over.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sim-lambda-function-logging.d.ts","sourceRoot":"","sources":["../../../../../src/service/lambda/function/logging/sim-lambda-function-logging.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,qCAAqC,CAAC;AACpE,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,gDAAgD,CAAC;AAC3F,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,uCAAuC,CAAC;AAOrF,UAAU,kCAAkC;IAC1C,QAAQ,CAAC,YAAY,EAAE,MAAM,CAAC;IAC9B,QAAQ,CAAC,KAAK,EAAE,QAAQ,CAAC;IAEzB;;;OAGG;IACH,QAAQ,CAAC,IAAI,CAAC,EAAE,oBAAoB,GAAG,SAAS,CAAC;CAClD;AAED;;;;;;;;;;;;;GAaG;AACH,qBAAa,wBAAwB;;IACnC,QAAQ,CAAC,YAAY,EAAE,MAAM,CAAC;IAO9B,YAAY,UAAU,EAAE,kCAAkC,EAIzD;IAED;;;;;;;;;OASG;IACH,aAAa,IAAI,MAAM,CAKtB;IAED;;OAEG;IACH,UAAU,CAAC,IAAI,EAAE,uBAAuB,GAAG,IAAI,CAM9C;IAED;;;;;;;OAOG;IACG,MAAM,CAAC,CAAC,EAAE,GAAG,EAAE,MAAM,OAAO,CAAC,CAAC,CAAC,GAAG,OAAO,CAAC,CAAC,CAAC,CAMjD;IAED,OAAO,CAAC,SAAS;CAclB"}
|
|
1
|
+
{"version":3,"file":"sim-lambda-function-logging.d.ts","sourceRoot":"","sources":["../../../../../src/service/lambda/function/logging/sim-lambda-function-logging.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,qCAAqC,CAAC;AACpE,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,gDAAgD,CAAC;AAC3F,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,6BAA6B,CAAC;AACvE,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,uCAAuC,CAAC;AAOrF,UAAU,kCAAkC;IAC1C,QAAQ,CAAC,YAAY,EAAE,MAAM,CAAC;IAC9B,QAAQ,CAAC,KAAK,EAAE,QAAQ,CAAC;IAEzB;;;OAGG;IACH,QAAQ,CAAC,IAAI,CAAC,EAAE,oBAAoB,GAAG,SAAS,CAAC;CAClD;AAED;;;;;;;;;;;;;GAaG;AACH,qBAAa,wBAAwB;;IACnC,QAAQ,CAAC,YAAY,EAAE,MAAM,CAAC;IAO9B,YAAY,UAAU,EAAE,kCAAkC,EAIzD;IAED;;;;;;;;;OASG;IACH,aAAa,IAAI,MAAM,CAKtB;IAED;;OAEG;IACH,UAAU,CAAC,IAAI,EAAE,uBAAuB,GAAG,IAAI,CAM9C;IAED;;;;;;;OAOG;IACH,UAAU,IAAI,mBAAmB,GAAG,SAAS,CAE5C;IAED;;;;;;;OAOG;IACG,MAAM,CAAC,CAAC,EAAE,GAAG,EAAE,MAAM,OAAO,CAAC,CAAC,CAAC,GAAG,OAAO,CAAC,CAAC,CAAC,CAMjD;IAED,OAAO,CAAC,SAAS;CAclB"}
|
|
@@ -49,6 +49,17 @@ export class SimLambdaFunctionLogging {
|
|
|
49
49
|
code.recordOutputTo(writer);
|
|
50
50
|
}
|
|
51
51
|
}
|
|
52
|
+
/**
|
|
53
|
+
* Where this function's output goes, once its execution environment has
|
|
54
|
+
* cold started.
|
|
55
|
+
*
|
|
56
|
+
* Code with streams of its own is given this through recordFrom. Host-scope
|
|
57
|
+
* code has none, and its invocation runs with this as the sink the process
|
|
58
|
+
* console and standard streams tee into.
|
|
59
|
+
*/
|
|
60
|
+
outputSink() {
|
|
61
|
+
return this.#writer;
|
|
62
|
+
}
|
|
52
63
|
/**
|
|
53
64
|
* Run an invocation, recording whatever it left unterminated once it is
|
|
54
65
|
* over.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sim-lambda-function-logging.js","sourceRoot":"","sources":["../../../../../src/service/lambda/function/logging/sim-lambda-function-logging.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"sim-lambda-function-logging.js","sourceRoot":"","sources":["../../../../../src/service/lambda/function/logging/sim-lambda-function-logging.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,kBAAkB,EAAE,MAAM,4BAA4B,CAAC;AAChE,OAAO,EACL,qBAAqB,EACrB,sBAAsB,GACvB,MAAM,iCAAiC,CAAC;AAazC;;;;;;;;;;;;;GAaG;AACH,MAAM,OAAO,wBAAwB;IAC1B,YAAY,CAAS;IAErB,KAAK,CAAmC;IACxC,MAAM,CAAW;IAC1B,OAAO,CAAiC;IACxC,cAAc,CAAqB;IAEnC,YAAY,UAA8C;QACxD,IAAI,CAAC,YAAY,GAAG,qBAAqB,CAAC,UAAU,CAAC,YAAY,CAAC,CAAC;QACnE,IAAI,CAAC,KAAK,GAAG,UAAU,CAAC,IAAI,CAAC;QAC7B,IAAI,CAAC,MAAM,GAAG,UAAU,CAAC,KAAK,CAAC;IACjC,CAAC;IAED;;;;;;;;;OASG;IACH,aAAa;QACX,IAAI,CAAC,cAAc,KAAK,IAAI,CAAC,SAAS,EAAE,CAAC;QACzC,IAAI,CAAC,KAAK,EAAE,UAAU,CAAC,IAAI,CAAC,YAAY,EAAE,IAAI,CAAC,cAAc,CAAC,CAAC;QAE/D,OAAO,IAAI,CAAC,cAAc,CAAC;IAC7B,CAAC;IAED;;OAEG;IACH,UAAU,CAAC,IAA6B;QACtC,MAAM,MAAM,GAAG,IAAI,CAAC,OAAO,CAAC;QAE5B,IAAI,MAAM,KAAK,SAAS,EAAE,CAAC;YACzB,IAAI,CAAC,cAAc,CAAC,MAAM,CAAC,CAAC;QAC9B,CAAC;IACH,CAAC;IAED;;;;;;;OAOG;IACH,UAAU;QACR,OAAO,IAAI,CAAC,OAAO,CAAC;IACtB,CAAC;IAED;;;;;;;OAOG;IACH,KAAK,CAAC,MAAM,CAAI,GAAqB;QACnC,IAAI,CAAC;YACH,OAAO,MAAM,GAAG,EAAE,CAAC;QACrB,CAAC;gBAAS,CAAC;YACT,IAAI,CAAC,OAAO,EAAE,KAAK,EAAE,CAAC;QACxB,CAAC;IACH,CAAC;IAEO,SAAS;QACf,MAAM,aAAa,GAAG,sBAAsB,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;QAC1D,MAAM,IAAI,GAAG,IAAI,CAAC,KAAK,CAAC;QAExB,IAAI,IAAI,KAAK,SAAS,EAAE,CAAC;YACvB,IAAI,CAAC,OAAO,GAAG,IAAI,kBAAkB,CAAC;gBACpC,YAAY,EAAE,IAAI,CAAC,YAAY;gBAC/B,aAAa;gBACb,IAAI;aACL,CAAC,CAAC;QACL,CAAC;QAED,OAAO,aAAa,CAAC;IACvB,CAAC;CACF"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import type { SimLambdaFunctionArn } from "../sim-lambda-function-configuration.js";
|
|
2
|
+
import type { SimLambdaFunctionPolicy } from "./sim-lambda-function-policy.js";
|
|
3
|
+
/**
|
|
4
|
+
* Something a Lambda resource policy can be granted on: a function, one of its
|
|
5
|
+
* published versions, or one of its aliases.
|
|
6
|
+
*
|
|
7
|
+
* Real Lambda holds a policy per qualified resource rather than one per
|
|
8
|
+
* function, so a grant made on the alias `live` admits a call on `live` and
|
|
9
|
+
* says nothing about the version behind it. Each of the three answers for its
|
|
10
|
+
* own ARN and its own policy, which is all `AddPermission`, `GetPolicy` and
|
|
11
|
+
* authorization need of them.
|
|
12
|
+
*/
|
|
13
|
+
export interface SimLambdaPolicyResource {
|
|
14
|
+
readonly arn: SimLambdaFunctionArn;
|
|
15
|
+
readonly resourcePolicy: SimLambdaFunctionPolicy;
|
|
16
|
+
}
|
|
17
|
+
//# sourceMappingURL=sim-lambda-policy-resource.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sim-lambda-policy-resource.d.ts","sourceRoot":"","sources":["../../../../../src/service/lambda/function/policy/sim-lambda-policy-resource.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,yCAAyC,CAAC;AACpF,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,iCAAiC,CAAC;AAE/E;;;;;;;;;GASG;AACH,MAAM,WAAW,uBAAuB;IACtC,QAAQ,CAAC,GAAG,EAAE,oBAAoB,CAAC;IACnC,QAAQ,CAAC,cAAc,EAAE,uBAAuB,CAAC;CAClD"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sim-lambda-policy-resource.js","sourceRoot":"","sources":["../../../../../src/service/lambda/function/policy/sim-lambda-policy-resource.ts"],"names":[],"mappings":""}
|
|
@@ -4,9 +4,9 @@ import type { AwsRegionName } from "../../aws/sim-aws-region.js";
|
|
|
4
4
|
* The parts of a Lambda function ARN.
|
|
5
5
|
*
|
|
6
6
|
* The qualifier is the version or alias a qualified ARN names, and it is
|
|
7
|
-
* reported rather than ignored:
|
|
8
|
-
*
|
|
9
|
-
*
|
|
7
|
+
* reported rather than ignored: a service that cannot follow one refuses the
|
|
8
|
+
* target rather than reaching `$LATEST` and thinking it had done as it was
|
|
9
|
+
* told.
|
|
10
10
|
*/
|
|
11
11
|
export interface SimLambdaFunctionArnParts {
|
|
12
12
|
readonly regionName: AwsRegionName;
|