@kensio/yulin 1.18.1 → 1.18.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/service/cognito/cfn/client/sim-cfn-cognito-client-properties.d.ts.map +1 -1
- package/dist/service/cognito/cfn/client/sim-cfn-cognito-client-properties.js +10 -0
- package/dist/service/cognito/cfn/client/sim-cfn-cognito-client-properties.js.map +1 -1
- package/dist/service/cognito/cfn/client/sim-cfn-cognito-refresh-token-rotation.d.ts +27 -0
- package/dist/service/cognito/cfn/client/sim-cfn-cognito-refresh-token-rotation.d.ts.map +1 -0
- package/dist/service/cognito/cfn/client/sim-cfn-cognito-refresh-token-rotation.js +35 -0
- package/dist/service/cognito/cfn/client/sim-cfn-cognito-refresh-token-rotation.js.map +1 -0
- package/dist/service/cognito/command/auth/auth.command.d.ts +31 -0
- package/dist/service/cognito/command/auth/auth.command.d.ts.map +1 -1
- package/dist/service/cognito/command/auth/sim-cognito-auth-commands.d.ts +2 -0
- package/dist/service/cognito/command/auth/sim-cognito-auth-commands.d.ts.map +1 -1
- package/dist/service/cognito/command/auth/sim-cognito-auth-commands.js +13 -1
- package/dist/service/cognito/command/auth/sim-cognito-auth-commands.js.map +1 -1
- package/dist/service/cognito/command/auth/sim-cognito-get-tokens-from-refresh-token.d.ts +35 -0
- package/dist/service/cognito/command/auth/sim-cognito-get-tokens-from-refresh-token.d.ts.map +1 -0
- package/dist/service/cognito/command/auth/sim-cognito-get-tokens-from-refresh-token.js +51 -0
- package/dist/service/cognito/command/auth/sim-cognito-get-tokens-from-refresh-token.js.map +1 -0
- package/dist/service/cognito/command/auth/sim-cognito-refresh-sign-in.d.ts +3 -8
- package/dist/service/cognito/command/auth/sim-cognito-refresh-sign-in.d.ts.map +1 -1
- package/dist/service/cognito/command/auth/sim-cognito-refresh-sign-in.js +24 -17
- package/dist/service/cognito/command/auth/sim-cognito-refresh-sign-in.js.map +1 -1
- package/dist/service/cognito/command/auth/sim-cognito-refreshed-tokens.d.ts +56 -0
- package/dist/service/cognito/command/auth/sim-cognito-refreshed-tokens.d.ts.map +1 -0
- package/dist/service/cognito/command/auth/sim-cognito-refreshed-tokens.js +50 -0
- package/dist/service/cognito/command/auth/sim-cognito-refreshed-tokens.js.map +1 -0
- package/dist/service/cognito/command/client/sim-cognito-unsimulated-client-options.d.ts.map +1 -1
- package/dist/service/cognito/command/client/sim-cognito-unsimulated-client-options.js +0 -1
- package/dist/service/cognito/command/client/sim-cognito-unsimulated-client-options.js.map +1 -1
- package/dist/service/cognito/command/client/sim-cognito-user-pool-client-view.d.ts +4 -3
- package/dist/service/cognito/command/client/sim-cognito-user-pool-client-view.d.ts.map +1 -1
- package/dist/service/cognito/command/client/sim-cognito-user-pool-client-view.js +5 -3
- package/dist/service/cognito/command/client/sim-cognito-user-pool-client-view.js.map +1 -1
- package/dist/service/cognito/command/client/user-pool-client.command.d.ts +3 -1
- package/dist/service/cognito/command/client/user-pool-client.command.d.ts.map +1 -1
- package/dist/service/cognito/command/hosted/sim-cognito-presented-grant.js +1 -1
- package/dist/service/cognito/command/hosted/sim-cognito-presented-grant.js.map +1 -1
- package/dist/service/cognito/command/hosted/sim-cognito-token-grants.d.ts +3 -3
- package/dist/service/cognito/command/hosted/sim-cognito-token-grants.d.ts.map +1 -1
- package/dist/service/cognito/command/hosted/sim-cognito-token-grants.js +5 -4
- package/dist/service/cognito/command/hosted/sim-cognito-token-grants.js.map +1 -1
- package/dist/service/cognito/command/sim-cognito-command.types.d.ts +1 -1
- package/dist/service/cognito/command/sim-cognito-command.types.d.ts.map +1 -1
- package/dist/service/cognito/index.d.ts +1 -0
- package/dist/service/cognito/index.d.ts.map +1 -1
- package/dist/service/cognito/index.js +1 -0
- package/dist/service/cognito/index.js.map +1 -1
- package/dist/service/cognito/sdk/sim-cognito-sdk-auth-routes.d.ts.map +1 -1
- package/dist/service/cognito/sdk/sim-cognito-sdk-auth-routes.js +4 -0
- package/dist/service/cognito/sdk/sim-cognito-sdk-auth-routes.js.map +1 -1
- package/dist/service/cognito/sim-cognito-authentication.d.ts +8 -0
- package/dist/service/cognito/sim-cognito-authentication.d.ts.map +1 -1
- package/dist/service/cognito/sim-cognito-authentication.js +11 -0
- package/dist/service/cognito/sim-cognito-authentication.js.map +1 -1
- package/dist/service/cognito/user-pool/auth/sim-cognito-issued-token-store.d.ts +11 -1
- package/dist/service/cognito/user-pool/auth/sim-cognito-issued-token-store.d.ts.map +1 -1
- package/dist/service/cognito/user-pool/auth/sim-cognito-issued-token-store.js +17 -2
- package/dist/service/cognito/user-pool/auth/sim-cognito-issued-token-store.js.map +1 -1
- package/dist/service/cognito/user-pool/auth/sim-cognito-issued-token.d.ts +41 -0
- package/dist/service/cognito/user-pool/auth/sim-cognito-issued-token.d.ts.map +1 -1
- package/dist/service/cognito/user-pool/auth/sim-cognito-issued-token.js +62 -0
- package/dist/service/cognito/user-pool/auth/sim-cognito-issued-token.js.map +1 -1
- package/dist/service/cognito/user-pool/auth/sim-cognito-pool-auth.d.ts +5 -0
- package/dist/service/cognito/user-pool/auth/sim-cognito-pool-auth.d.ts.map +1 -1
- package/dist/service/cognito/user-pool/auth/sim-cognito-pool-auth.js +7 -0
- package/dist/service/cognito/user-pool/auth/sim-cognito-pool-auth.js.map +1 -1
- package/dist/service/cognito/user-pool/auth/sim-cognito-refresh-token-input.d.ts +11 -0
- package/dist/service/cognito/user-pool/auth/sim-cognito-refresh-token-input.d.ts.map +1 -0
- package/dist/service/cognito/user-pool/auth/sim-cognito-refresh-token-input.js +17 -0
- package/dist/service/cognito/user-pool/auth/sim-cognito-refresh-token-input.js.map +1 -0
- package/dist/service/cognito/user-pool/auth/sim-cognito-refreshable-session.factory.d.ts +61 -0
- package/dist/service/cognito/user-pool/auth/sim-cognito-refreshable-session.factory.d.ts.map +1 -0
- package/dist/service/cognito/user-pool/auth/sim-cognito-refreshable-session.factory.js +80 -0
- package/dist/service/cognito/user-pool/auth/sim-cognito-refreshable-session.factory.js.map +1 -0
- package/dist/service/cognito/user-pool/client/sim-cognito-client-secret.d.ts +10 -0
- package/dist/service/cognito/user-pool/client/sim-cognito-client-secret.d.ts.map +1 -1
- package/dist/service/cognito/user-pool/client/sim-cognito-client-secret.js +22 -0
- package/dist/service/cognito/user-pool/client/sim-cognito-client-secret.js.map +1 -1
- package/dist/service/cognito/user-pool/client/sim-cognito-refresh-token-rotation.d.ts +48 -0
- package/dist/service/cognito/user-pool/client/sim-cognito-refresh-token-rotation.d.ts.map +1 -0
- package/dist/service/cognito/user-pool/client/sim-cognito-refresh-token-rotation.js +79 -0
- package/dist/service/cognito/user-pool/client/sim-cognito-refresh-token-rotation.js.map +1 -0
- package/dist/service/cognito/user-pool/client/sim-cognito-user-pool-client-settings.d.ts +7 -0
- package/dist/service/cognito/user-pool/client/sim-cognito-user-pool-client-settings.d.ts.map +1 -1
- package/dist/service/cognito/user-pool/client/sim-cognito-user-pool-client-settings.js +7 -0
- package/dist/service/cognito/user-pool/client/sim-cognito-user-pool-client-settings.js.map +1 -1
- package/dist/service/cognito/user-pool/client/sim-cognito-user-pool-client.d.ts +6 -0
- package/dist/service/cognito/user-pool/client/sim-cognito-user-pool-client.d.ts.map +1 -1
- package/dist/service/cognito/user-pool/client/sim-cognito-user-pool-client.js +7 -0
- package/dist/service/cognito/user-pool/client/sim-cognito-user-pool-client.js.map +1 -1
- package/dist/service/cognito/user-pool/token/sim-cognito-token-issuer.d.ts +34 -0
- package/dist/service/cognito/user-pool/token/sim-cognito-token-issuer.d.ts.map +1 -1
- package/dist/service/cognito/user-pool/token/sim-cognito-token-issuer.js +40 -1
- package/dist/service/cognito/user-pool/token/sim-cognito-token-issuer.js.map +1 -1
- package/dist/service/lambda/command/create-function/create-function-input.js +1 -1
- package/dist/service/lambda/command/create-function/create-function-input.js.map +1 -1
- package/dist/service/lambda/command/function/sim-lambda-function-commands.d.ts +17 -0
- 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 +43 -0
- package/dist/service/lambda/command/function/sim-lambda-function-commands.js.map +1 -1
- package/dist/service/lambda/command/list-functions/list-functions-authorizer.d.ts +31 -0
- package/dist/service/lambda/command/list-functions/list-functions-authorizer.d.ts.map +1 -0
- package/dist/service/lambda/command/list-functions/list-functions-authorizer.js +41 -0
- package/dist/service/lambda/command/list-functions/list-functions-authorizer.js.map +1 -0
- package/dist/service/lambda/command/list-functions/list-functions.command.d.ts +34 -0
- package/dist/service/lambda/command/list-functions/list-functions.command.d.ts.map +1 -0
- package/dist/service/lambda/command/list-functions/list-functions.command.js +5 -0
- package/dist/service/lambda/command/list-functions/list-functions.command.js.map +1 -0
- package/dist/service/lambda/command/list-functions/list-functions.handler.d.ts +35 -0
- package/dist/service/lambda/command/list-functions/list-functions.handler.d.ts.map +1 -0
- package/dist/service/lambda/command/list-functions/list-functions.handler.js +46 -0
- package/dist/service/lambda/command/list-functions/list-functions.handler.js.map +1 -0
- package/dist/service/lambda/command/sim-lambda-command.types.d.ts +3 -0
- package/dist/service/lambda/command/sim-lambda-command.types.d.ts.map +1 -1
- package/dist/service/lambda/command/update-function-code/update-function-code-authorizer.d.ts +27 -0
- package/dist/service/lambda/command/update-function-code/update-function-code-authorizer.d.ts.map +1 -0
- package/dist/service/lambda/command/update-function-code/update-function-code-authorizer.js +37 -0
- package/dist/service/lambda/command/update-function-code/update-function-code-authorizer.js.map +1 -0
- package/dist/service/lambda/command/update-function-code/update-function-code-input.d.ts +16 -0
- package/dist/service/lambda/command/update-function-code/update-function-code-input.d.ts.map +1 -0
- package/dist/service/lambda/command/update-function-code/update-function-code-input.js +30 -0
- package/dist/service/lambda/command/update-function-code/update-function-code-input.js.map +1 -0
- package/dist/service/lambda/command/update-function-code/update-function-code.command.d.ts +41 -0
- package/dist/service/lambda/command/update-function-code/update-function-code.command.d.ts.map +1 -0
- package/dist/service/lambda/command/update-function-code/update-function-code.command.js +5 -0
- package/dist/service/lambda/command/update-function-code/update-function-code.command.js.map +1 -0
- package/dist/service/lambda/command/update-function-code/update-function-code.handler.d.ts +52 -0
- package/dist/service/lambda/command/update-function-code/update-function-code.handler.d.ts.map +1 -0
- package/dist/service/lambda/command/update-function-code/update-function-code.handler.js +72 -0
- package/dist/service/lambda/command/update-function-code/update-function-code.handler.js.map +1 -0
- package/dist/service/lambda/command/update-function-configuration/update-function-configuration-authorizer.d.ts +28 -0
- package/dist/service/lambda/command/update-function-configuration/update-function-configuration-authorizer.d.ts.map +1 -0
- package/dist/service/lambda/command/update-function-configuration/update-function-configuration-authorizer.js +38 -0
- package/dist/service/lambda/command/update-function-configuration/update-function-configuration-authorizer.js.map +1 -0
- package/dist/service/lambda/command/update-function-configuration/update-function-configuration-input.d.ts +23 -0
- package/dist/service/lambda/command/update-function-configuration/update-function-configuration-input.d.ts.map +1 -0
- package/dist/service/lambda/command/update-function-configuration/update-function-configuration-input.js +29 -0
- package/dist/service/lambda/command/update-function-configuration/update-function-configuration-input.js.map +1 -0
- package/dist/service/lambda/command/update-function-configuration/update-function-configuration.command.d.ts +42 -0
- package/dist/service/lambda/command/update-function-configuration/update-function-configuration.command.d.ts.map +1 -0
- package/dist/service/lambda/command/update-function-configuration/update-function-configuration.command.js +5 -0
- package/dist/service/lambda/command/update-function-configuration/update-function-configuration.command.js.map +1 -0
- package/dist/service/lambda/command/update-function-configuration/update-function-configuration.handler.d.ts +50 -0
- package/dist/service/lambda/command/update-function-configuration/update-function-configuration.handler.d.ts.map +1 -0
- package/dist/service/lambda/command/update-function-configuration/update-function-configuration.handler.js +61 -0
- package/dist/service/lambda/command/update-function-configuration/update-function-configuration.handler.js.map +1 -0
- package/dist/service/lambda/function/code/lambda-code-source.d.ts +15 -2
- package/dist/service/lambda/function/code/lambda-code-source.d.ts.map +1 -1
- package/dist/service/lambda/function/code/lambda-code-source.js +19 -14
- package/dist/service/lambda/function/code/lambda-code-source.js.map +1 -1
- package/dist/service/lambda/function/code/sim-lambda-code-resolver.d.ts +6 -0
- package/dist/service/lambda/function/code/sim-lambda-code-resolver.d.ts.map +1 -1
- package/dist/service/lambda/function/code/sim-lambda-code-resolver.js.map +1 -1
- package/dist/service/lambda/function/code/sim-lambda-executable-code.d.ts +28 -0
- 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 +10 -0
- package/dist/service/lambda/function/code/sim-lambda-executable-code.js.map +1 -1
- package/dist/service/lambda/function/code/sim-lambda-vm-zip-code-factory.d.ts.map +1 -1
- package/dist/service/lambda/function/code/sim-lambda-vm-zip-code-factory.js +2 -1
- package/dist/service/lambda/function/code/sim-lambda-vm-zip-code-factory.js.map +1 -1
- package/dist/service/lambda/function/code/sim-lambda-vm-zip-code.d.ts +11 -1
- package/dist/service/lambda/function/code/sim-lambda-vm-zip-code.d.ts.map +1 -1
- package/dist/service/lambda/function/code/sim-lambda-vm-zip-code.js +16 -0
- package/dist/service/lambda/function/code/sim-lambda-vm-zip-code.js.map +1 -1
- package/dist/service/lambda/{command/create-function/create-function-environment-names.d.ts → function/environment/lambda-environment-variable-names.d.ts} +1 -1
- package/dist/service/lambda/function/environment/lambda-environment-variable-names.d.ts.map +1 -0
- package/dist/service/lambda/{command/create-function/create-function-environment-names.js → function/environment/lambda-environment-variable-names.js} +1 -1
- package/dist/service/lambda/function/environment/lambda-environment-variable-names.js.map +1 -0
- package/dist/service/lambda/{command/create-function/create-function-environment.d.ts → function/environment/lambda-environment-variables.d.ts} +2 -2
- package/dist/service/lambda/function/environment/lambda-environment-variables.d.ts.map +1 -0
- package/dist/service/lambda/{command/create-function/create-function-environment.js → function/environment/lambda-environment-variables.js} +2 -2
- package/dist/service/lambda/function/environment/lambda-environment-variables.js.map +1 -0
- package/dist/service/lambda/function/environment/lambda-reserved-variable-names.d.ts.map +1 -0
- package/dist/service/lambda/function/environment/lambda-reserved-variable-names.js.map +1 -0
- package/dist/service/lambda/function/sim-lambda-function-reconfiguration.d.ts +35 -0
- package/dist/service/lambda/function/sim-lambda-function-reconfiguration.d.ts.map +1 -0
- package/dist/service/lambda/function/sim-lambda-function-reconfiguration.js +54 -0
- package/dist/service/lambda/function/sim-lambda-function-reconfiguration.js.map +1 -0
- package/dist/service/lambda/function/sim-lambda-function.d.ts +34 -56
- package/dist/service/lambda/function/sim-lambda-function.d.ts.map +1 -1
- package/dist/service/lambda/function/sim-lambda-function.js +43 -9
- package/dist/service/lambda/function/sim-lambda-function.js.map +1 -1
- package/dist/service/lambda/function/sim-lambda-function.type.d.ts +53 -0
- package/dist/service/lambda/function/sim-lambda-function.type.d.ts.map +1 -0
- package/dist/service/lambda/function/sim-lambda-function.type.js +2 -0
- package/dist/service/lambda/function/sim-lambda-function.type.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 +12 -0
- package/dist/service/lambda/sdk/sim-lambda-sdk-command-router.js.map +1 -1
- package/dist/service/lambda/serve/api/sim-lambda-api-function-input.d.ts +27 -0
- package/dist/service/lambda/serve/api/sim-lambda-api-function-input.d.ts.map +1 -0
- package/dist/service/lambda/serve/api/sim-lambda-api-function-input.js +76 -0
- package/dist/service/lambda/serve/api/sim-lambda-api-function-input.js.map +1 -0
- package/dist/service/lambda/serve/api/sim-lambda-api-function-routes.d.ts.map +1 -1
- package/dist/service/lambda/serve/api/sim-lambda-api-function-routes.js +19 -58
- package/dist/service/lambda/serve/api/sim-lambda-api-function-routes.js.map +1 -1
- package/dist/service/lambda/sim-lambda-commands.d.ts.map +1 -1
- package/dist/service/lambda/sim-lambda-commands.js +1 -0
- package/dist/service/lambda/sim-lambda-commands.js.map +1 -1
- package/dist/service/lambda/sim-lambda.d.ts +6 -0
- package/dist/service/lambda/sim-lambda.d.ts.map +1 -1
- package/dist/service/lambda/sim-lambda.js +12 -0
- package/dist/service/lambda/sim-lambda.js.map +1 -1
- package/dist/service/s3/bucket/notification/sim-s3-notification-event.d.ts +1 -1
- package/dist/service/s3/bucket/notification/sim-s3-notification-event.d.ts.map +1 -1
- package/dist/service/s3/bucket/notification/sim-s3-notification-event.js +7 -1
- package/dist/service/s3/bucket/notification/sim-s3-notification-event.js.map +1 -1
- package/dist/service/s3/bucket/notification/sim-s3-unsimulated-notification-events.d.ts.map +1 -1
- package/dist/service/s3/bucket/notification/sim-s3-unsimulated-notification-events.js +0 -1
- package/dist/service/s3/bucket/notification/sim-s3-unsimulated-notification-events.js.map +1 -1
- package/dist/service/s3/command/copy-object/copy-object-builder.d.ts +34 -0
- package/dist/service/s3/command/copy-object/copy-object-builder.d.ts.map +1 -0
- package/dist/service/s3/command/copy-object/copy-object-builder.js +40 -0
- package/dist/service/s3/command/copy-object/copy-object-builder.js.map +1 -0
- package/dist/service/s3/command/copy-object/copy-object-source.d.ts +37 -0
- package/dist/service/s3/command/copy-object/copy-object-source.d.ts.map +1 -0
- package/dist/service/s3/command/copy-object/copy-object-source.js +80 -0
- package/dist/service/s3/command/copy-object/copy-object-source.js.map +1 -0
- package/dist/service/s3/command/copy-object/copy-object.command.d.ts +41 -0
- package/dist/service/s3/command/copy-object/copy-object.command.d.ts.map +1 -0
- package/dist/service/s3/command/copy-object/copy-object.command.js +2 -0
- package/dist/service/s3/command/copy-object/copy-object.command.js.map +1 -0
- package/dist/service/s3/command/copy-object/copy-object.handler.d.ts +43 -0
- package/dist/service/s3/command/copy-object/copy-object.handler.d.ts.map +1 -0
- package/dist/service/s3/command/copy-object/copy-object.handler.js +76 -0
- package/dist/service/s3/command/copy-object/copy-object.handler.js.map +1 -0
- package/dist/service/s3/command/object/sim-s3-object-commands.d.ts +4 -0
- package/dist/service/s3/command/object/sim-s3-object-commands.d.ts.map +1 -1
- package/dist/service/s3/command/object/sim-s3-object-commands.js +7 -0
- package/dist/service/s3/command/object/sim-s3-object-commands.js.map +1 -1
- package/dist/service/s3/command/sim-s3-command.types.d.ts +1 -0
- package/dist/service/s3/command/sim-s3-command.types.d.ts.map +1 -1
- package/dist/service/s3/error/sim-s3.error.d.ts +11 -0
- package/dist/service/s3/error/sim-s3.error.d.ts.map +1 -1
- package/dist/service/s3/error/sim-s3.error.js +13 -0
- package/dist/service/s3/error/sim-s3.error.js.map +1 -1
- package/dist/service/s3/sdk/sim-s3-sdk-command-router.d.ts.map +1 -1
- package/dist/service/s3/sdk/sim-s3-sdk-command-router.js +4 -0
- package/dist/service/s3/sdk/sim-s3-sdk-command-router.js.map +1 -1
- package/dist/service/s3/sim-s3-operations.d.ts +2 -0
- package/dist/service/s3/sim-s3-operations.d.ts.map +1 -1
- package/dist/service/s3/sim-s3-operations.js +4 -0
- package/dist/service/s3/sim-s3-operations.js.map +1 -1
- package/dist/service/wafv2/command/web-acl/sim-wafv2-web-acl-commands.d.ts +2 -0
- package/dist/service/wafv2/command/web-acl/sim-wafv2-web-acl-commands.d.ts.map +1 -1
- package/dist/service/wafv2/command/web-acl/sim-wafv2-web-acl-commands.js +3 -0
- package/dist/service/wafv2/command/web-acl/sim-wafv2-web-acl-commands.js.map +1 -1
- package/dist/service/wafv2/index.d.ts +1 -0
- package/dist/service/wafv2/index.d.ts.map +1 -1
- package/dist/service/wafv2/index.js.map +1 -1
- package/dist/service/wafv2/managed/sim-waf-managed-group-statement.d.ts.map +1 -1
- package/dist/service/wafv2/managed/sim-waf-managed-group-statement.js +1 -0
- package/dist/service/wafv2/managed/sim-waf-managed-group-statement.js.map +1 -1
- package/dist/service/wafv2/sim-wafv2-commands.d.ts.map +1 -1
- package/dist/service/wafv2/sim-wafv2-commands.js +3 -0
- package/dist/service/wafv2/sim-wafv2-commands.js.map +1 -1
- package/dist/service/wafv2/sim-wafv2.d.ts.map +1 -1
- package/dist/service/wafv2/sim-wafv2.js +1 -0
- package/dist/service/wafv2/sim-wafv2.js.map +1 -1
- package/dist/service/wafv2/statement/sim-waf-rate-based-input.d.ts +49 -0
- package/dist/service/wafv2/statement/sim-waf-rate-based-input.d.ts.map +1 -0
- package/dist/service/wafv2/statement/sim-waf-rate-based-input.js +94 -0
- package/dist/service/wafv2/statement/sim-waf-rate-based-input.js.map +1 -0
- package/dist/service/wafv2/statement/sim-waf-rate-based.d.ts +22 -0
- package/dist/service/wafv2/statement/sim-waf-rate-based.d.ts.map +1 -0
- package/dist/service/wafv2/statement/sim-waf-rate-based.js +41 -0
- package/dist/service/wafv2/statement/sim-waf-rate-based.js.map +1 -0
- package/dist/service/wafv2/statement/sim-waf-rate-based.type.d.ts +18 -0
- package/dist/service/wafv2/statement/sim-waf-rate-based.type.d.ts.map +1 -0
- package/dist/service/wafv2/statement/sim-waf-rate-based.type.js +2 -0
- package/dist/service/wafv2/statement/sim-waf-rate-based.type.js.map +1 -0
- package/dist/service/wafv2/statement/sim-waf-rate-counter.d.ts +29 -0
- package/dist/service/wafv2/statement/sim-waf-rate-counter.d.ts.map +1 -0
- package/dist/service/wafv2/statement/sim-waf-rate-counter.js +35 -0
- package/dist/service/wafv2/statement/sim-waf-rate-counter.js.map +1 -0
- package/dist/service/wafv2/statement/sim-waf-statement.d.ts +6 -0
- package/dist/service/wafv2/statement/sim-waf-statement.d.ts.map +1 -1
- package/dist/service/wafv2/statement/sim-waf-statement.js +4 -0
- package/dist/service/wafv2/statement/sim-waf-statement.js.map +1 -1
- package/dist/service/wafv2/statement/sim-waf-statement.type.d.ts +2 -1
- package/dist/service/wafv2/statement/sim-waf-statement.type.d.ts.map +1 -1
- package/dist/service/wafv2/statement/sim-waf-unsimulated-rate-based.d.ts +10 -0
- package/dist/service/wafv2/statement/sim-waf-unsimulated-rate-based.d.ts.map +1 -0
- package/dist/service/wafv2/statement/sim-waf-unsimulated-rate-based.js +40 -0
- package/dist/service/wafv2/statement/sim-waf-unsimulated-rate-based.js.map +1 -0
- package/dist/service/wafv2/statement/sim-waf-unsimulated-statement.d.ts.map +1 -1
- package/dist/service/wafv2/statement/sim-waf-unsimulated-statement.js +0 -5
- package/dist/service/wafv2/statement/sim-waf-unsimulated-statement.js.map +1 -1
- package/dist/service/wafv2/web-acl/sim-waf-rule-evaluator.d.ts.map +1 -1
- package/dist/service/wafv2/web-acl/sim-waf-rule-evaluator.js +25 -2
- package/dist/service/wafv2/web-acl/sim-waf-rule-evaluator.js.map +1 -1
- package/dist/service/wafv2/web-acl/sim-waf-rule.type.d.ts +6 -0
- package/dist/service/wafv2/web-acl/sim-waf-rule.type.d.ts.map +1 -1
- package/dist/service/wafv2/web-acl/sim-waf-web-acl-capacity.d.ts.map +1 -1
- package/dist/service/wafv2/web-acl/sim-waf-web-acl-capacity.js +16 -1
- package/dist/service/wafv2/web-acl/sim-waf-web-acl-capacity.js.map +1 -1
- package/dist/util/clock/sim-clock-control.d.ts +8 -0
- package/dist/util/clock/sim-clock-control.d.ts.map +1 -1
- package/dist/util/clock/sim-clock-control.js +10 -1
- package/dist/util/clock/sim-clock-control.js.map +1 -1
- package/package.json +1 -1
- package/dist/service/lambda/command/create-function/create-function-environment-names.d.ts.map +0 -1
- package/dist/service/lambda/command/create-function/create-function-environment-names.js.map +0 -1
- package/dist/service/lambda/command/create-function/create-function-environment.d.ts.map +0 -1
- package/dist/service/lambda/command/create-function/create-function-environment.js.map +0 -1
- package/dist/service/lambda/command/create-function/lambda-reserved-variable-names.d.ts.map +0 -1
- package/dist/service/lambda/command/create-function/lambda-reserved-variable-names.js.map +0 -1
- /package/dist/service/lambda/{command/create-function → function/environment}/lambda-reserved-variable-names.d.ts +0 -0
- /package/dist/service/lambda/{command/create-function → function/environment}/lambda-reserved-variable-names.js +0 -0
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
import { BackgroundTasks, } from "../../../../util/background/background.js";
|
|
2
|
+
import { SimIamAllowAllAuth, } from "../../../iam/authorize/sim-iam-inter-service-auth-z.js";
|
|
3
|
+
import { SimLambdaEnvironmentConflicts } from "../../function/environment/sim-lambda-environment-conflicts.js";
|
|
4
|
+
import { simLambdaUnqualifiedFunctionOf } from "../../function/sim-lambda-function-reference.js";
|
|
5
|
+
import { UpdateFunctionConfigurationAuthorizer } from "./update-function-configuration-authorizer.js";
|
|
6
|
+
import { requireUpdateFunctionConfigurationInput } from "./update-function-configuration-input.js";
|
|
7
|
+
/**
|
|
8
|
+
* Simulated Lambda UpdateFunctionConfigurationCommand handler.
|
|
9
|
+
*
|
|
10
|
+
* https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/lambda/command/UpdateFunctionConfigurationCommand/
|
|
11
|
+
*/
|
|
12
|
+
export class UpdateFunctionConfigurationCommandHandler {
|
|
13
|
+
functions;
|
|
14
|
+
functionMap;
|
|
15
|
+
authorizer;
|
|
16
|
+
background;
|
|
17
|
+
environmentConflicts;
|
|
18
|
+
constructor(properties) {
|
|
19
|
+
const { functions, functionMap, iam = new SimIamAllowAllAuth(), background = new BackgroundTasks(), environmentConflicts = new SimLambdaEnvironmentConflicts(), } = properties;
|
|
20
|
+
this.functions = functions;
|
|
21
|
+
this.functionMap = functionMap;
|
|
22
|
+
this.authorizer = new UpdateFunctionConfigurationAuthorizer({ iam });
|
|
23
|
+
this.background = background;
|
|
24
|
+
this.environmentConflicts = environmentConflicts;
|
|
25
|
+
}
|
|
26
|
+
/**
|
|
27
|
+
* Change a sim Lambda function's settings.
|
|
28
|
+
*
|
|
29
|
+
* A member the request leaves out keeps the value the function has. The
|
|
30
|
+
* function keeps its name, ARN, code, resource-based policy, Function URL,
|
|
31
|
+
* published versions and aliases, and a version published beforehand keeps
|
|
32
|
+
* the settings it was published with.
|
|
33
|
+
*/
|
|
34
|
+
async handle(command, options) {
|
|
35
|
+
const { name, update } = requireUpdateFunctionConfigurationInput(command);
|
|
36
|
+
// Allow for potential non-deterministic sequencing of async events.
|
|
37
|
+
await this.background.sequence();
|
|
38
|
+
const functionName = simLambdaUnqualifiedFunctionOf(name);
|
|
39
|
+
this.authorizer.authorize(this.functions.functionArn(functionName), options?.caller);
|
|
40
|
+
const simFunction = this.functions.require(functionName);
|
|
41
|
+
simFunction.updateConfiguration(update);
|
|
42
|
+
if (update.environmentVariables !== undefined) {
|
|
43
|
+
this.environmentConflicts.check(simFunction.environment, this.otherEnvironments(simFunction));
|
|
44
|
+
}
|
|
45
|
+
return { $metadata: {}, ...simFunction.configuration() };
|
|
46
|
+
}
|
|
47
|
+
/**
|
|
48
|
+
* The environments of the other functions this simulated Lambda holds.
|
|
49
|
+
*
|
|
50
|
+
* The function being updated is left out, because a variable is only worth
|
|
51
|
+
* reporting where two different values for one name are in play, and its
|
|
52
|
+
* own new value is the one being checked.
|
|
53
|
+
*/
|
|
54
|
+
otherEnvironments(simFunction) {
|
|
55
|
+
return this.functionMap
|
|
56
|
+
.values()
|
|
57
|
+
.filter((existing) => existing !== simFunction)
|
|
58
|
+
.map((existing) => existing.environment);
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
//# sourceMappingURL=update-function-configuration.handler.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"update-function-configuration.handler.js","sourceRoot":"","sources":["../../../../../src/service/lambda/command/update-function-configuration/update-function-configuration.handler.ts"],"names":[],"mappings":"AACA,OAAO,EAEL,eAAe,GAChB,MAAM,2CAA2C,CAAC;AAEnD,OAAO,EACL,kBAAkB,GAEnB,MAAM,wDAAwD,CAAC;AAChE,OAAO,EAAE,6BAA6B,EAAE,MAAM,gEAAgE,CAAC;AAE/G,OAAO,EAAE,8BAA8B,EAAE,MAAM,iDAAiD,CAAC;AAMjG,OAAO,EAAE,qCAAqC,EAAE,MAAM,+CAA+C,CAAC;AACtG,OAAO,EAAE,uCAAuC,EAAE,MAAM,0CAA0C,CAAC;AAkBnG;;;;GAIG;AACH,MAAM,OAAO,yCAAyC;IAInC,SAAS,CAA0B;IACnC,WAAW,CAAuB;IAClC,UAAU,CAAwC;IAClD,UAAU,CAAsB;IAChC,oBAAoB,CAAgC;IAErE,YAAY,UAA+D;QACzE,MAAM,EACJ,SAAS,EACT,WAAW,EACX,GAAG,GAAG,IAAI,kBAAkB,EAAE,EAC9B,UAAU,GAAG,IAAI,eAAe,EAAE,EAClC,oBAAoB,GAAG,IAAI,6BAA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,CAAC,QAAQ,EAAE,EAAE,CAAC,QAAQ,KAAK,WAAW,CAAC;aAC9C,GAAG,CAAC,CAAC,QAAQ,EAAE,EAAE,CAAC,QAAQ,CAAC,WAAW,CAAC,CAAC;IAC7C,CAAC;CACF"}
|
|
@@ -51,11 +51,24 @@ export interface SimLambdaContainerImageSource {
|
|
|
51
51
|
*/
|
|
52
52
|
export type SimLambdaCodeSource = SimLambdaHandlerReferenceSource | SimLambdaZipBytesSource | SimLambdaS3LocationSource | SimLambdaContainerImageSource;
|
|
53
53
|
/**
|
|
54
|
-
*
|
|
54
|
+
* Where a command carries its code members, for validation failures to point
|
|
55
|
+
* at the request the caller actually made.
|
|
56
|
+
*
|
|
57
|
+
* CreateFunction nests them under `Code`, while UpdateFunctionCode carries
|
|
58
|
+
* them at the top level of its input.
|
|
59
|
+
*/
|
|
60
|
+
export interface SimLambdaCodeInputNaming {
|
|
61
|
+
/** The path to the members, such as `CreateFunctionCommand.input.Code`. */
|
|
62
|
+
readonly path: string;
|
|
63
|
+
/** What prefixes a member name, such as `Code.` or nothing at all. */
|
|
64
|
+
readonly memberPrefix: string;
|
|
65
|
+
}
|
|
66
|
+
/**
|
|
67
|
+
* Validate function code input into a sim Lambda code source.
|
|
55
68
|
*
|
|
56
69
|
* Exactly one of ZipFile, an S3 object location or a container image URI must
|
|
57
70
|
* be given, as on real AWS. S3ObjectVersion is accepted but ignored, as sim S3
|
|
58
71
|
* does not simulate object versioning yet.
|
|
59
72
|
*/
|
|
60
|
-
export declare function requireLambdaCodeSource(code: SimLambdaCodeInput | undefined): SimLambdaCodeSource;
|
|
73
|
+
export declare function requireLambdaCodeSource(code: SimLambdaCodeInput | undefined, naming?: SimLambdaCodeInputNaming): SimLambdaCodeSource;
|
|
61
74
|
//# sourceMappingURL=lambda-code-source.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"lambda-code-source.d.ts","sourceRoot":"","sources":["../../../../../src/service/lambda/function/code/lambda-code-source.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,+BAA+B,CAAC;AAGtE;;GAEG;AACH,MAAM,WAAW,kBAAkB;IACjC,OAAO,CAAC,EAAE,UAAU,GAAG,SAAS,CAAC;IACjC,QAAQ,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC9B,KAAK,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC3B,eAAe,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IACrC,QAAQ,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;CAC/B;AAED;;;GAGG;AACH,MAAM,WAAW,+BAA+B;IAC9C,QAAQ,CAAC,IAAI,EAAE,mBAAmB,CAAC;IACnC,QAAQ,CAAC,eAAe,EAAE,gBAAgB,CAAC;CAC5C;AAED;;;GAGG;AACH,MAAM,WAAW,uBAAuB;IACtC,QAAQ,CAAC,IAAI,EAAE,WAAW,CAAC;IAC3B,QAAQ,CAAC,QAAQ,EAAE,UAAU,CAAC;CAC/B;AAED;;;GAGG;AACH,MAAM,WAAW,yBAAyB;IACxC,QAAQ,CAAC,IAAI,EAAE,aAAa,CAAC;IAC7B,QAAQ,CAAC,UAAU,EAAE,MAAM,CAAC;IAC5B,QAAQ,CAAC,SAAS,EAAE,MAAM,CAAC;CAC5B;AAED;;;;;;;GAOG;AACH,MAAM,WAAW,6BAA6B;IAC5C,QAAQ,CAAC,IAAI,EAAE,iBAAiB,CAAC;IACjC,QAAQ,CAAC,QAAQ,EAAE,MAAM,CAAC;CAC3B;AAED;;GAEG;AACH,MAAM,MAAM,mBAAmB,GAC3B,+BAA+B,GAC/B,uBAAuB,GACvB,yBAAyB,GACzB,6BAA6B,CAAC;AAElC;;;;;;GAMG;AACH,wBAAgB,uBAAuB,CACrC,IAAI,EAAE,kBAAkB,GAAG,SAAS,
|
|
1
|
+
{"version":3,"file":"lambda-code-source.d.ts","sourceRoot":"","sources":["../../../../../src/service/lambda/function/code/lambda-code-source.ts"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OD;;;;;;GAMG;AACH,wBAAgB,uBAAuB,CACrC,IAAI,EAAE,kBAAkB,GAAG,SAAS,EACpC,MAAM,GAAE,wBAAmD,GAC1D,mBAAmB,CAgBrB"}
|
|
@@ -1,43 +1,48 @@
|
|
|
1
1
|
import { assertDefined } from "../../../../util/type-guard/defined.js";
|
|
2
2
|
import { SimLambdaInvalidParameterValueException } from "../../error/sim-lambda.error.js";
|
|
3
3
|
import { LambdaZipFileStowaway } from "./lambda-zip-file-input.js";
|
|
4
|
+
const createFunctionCodeNaming = {
|
|
5
|
+
path: "CreateFunctionCommand.input.Code",
|
|
6
|
+
memberPrefix: "Code.",
|
|
7
|
+
};
|
|
4
8
|
/**
|
|
5
|
-
* Validate
|
|
9
|
+
* Validate function code input into a sim Lambda code source.
|
|
6
10
|
*
|
|
7
11
|
* Exactly one of ZipFile, an S3 object location or a container image URI must
|
|
8
12
|
* be given, as on real AWS. S3ObjectVersion is accepted but ignored, as sim S3
|
|
9
13
|
* does not simulate object versioning yet.
|
|
10
14
|
*/
|
|
11
|
-
export function requireLambdaCodeSource(code) {
|
|
12
|
-
assertDefined(code,
|
|
15
|
+
export function requireLambdaCodeSource(code, naming = createFunctionCodeNaming) {
|
|
16
|
+
assertDefined(code, `${naming.path} required`);
|
|
13
17
|
if (code.ImageUri !== undefined) {
|
|
14
|
-
return containerImageSource(code.ImageUri, code);
|
|
18
|
+
return containerImageSource(code.ImageUri, code, naming);
|
|
15
19
|
}
|
|
16
20
|
if (code.ZipFile !== undefined) {
|
|
17
|
-
return zipFileSource(code.ZipFile, code);
|
|
21
|
+
return zipFileSource(code.ZipFile, code, naming);
|
|
18
22
|
}
|
|
19
23
|
if (code.S3Bucket !== undefined || code.S3Key !== undefined) {
|
|
20
|
-
return s3LocationSource(code);
|
|
24
|
+
return s3LocationSource(code, naming);
|
|
21
25
|
}
|
|
22
|
-
throw new SimLambdaInvalidParameterValueException(
|
|
26
|
+
throw new SimLambdaInvalidParameterValueException(`${naming.path} requires either ZipFile bytes, an ` +
|
|
23
27
|
"S3Bucket and S3Key object location, or an ImageUri");
|
|
24
28
|
}
|
|
25
29
|
/**
|
|
26
30
|
* A container image function names its image and nothing else, as on real
|
|
27
31
|
* AWS, where an image function has no zip code to also name.
|
|
28
32
|
*/
|
|
29
|
-
function containerImageSource(imageUri, code) {
|
|
33
|
+
function containerImageSource(imageUri, code, naming) {
|
|
30
34
|
if (code.ZipFile !== undefined ||
|
|
31
35
|
code.S3Bucket !== undefined ||
|
|
32
36
|
code.S3Key !== undefined) {
|
|
33
37
|
throw new SimLambdaInvalidParameterValueException("Please do not provide ZipFile bytes or an S3 object location when " +
|
|
34
|
-
|
|
38
|
+
`using ${naming.memberPrefix}ImageUri`);
|
|
35
39
|
}
|
|
36
40
|
return { kind: "container-image", imageUri };
|
|
37
41
|
}
|
|
38
|
-
function zipFileSource(zipFile, code) {
|
|
42
|
+
function zipFileSource(zipFile, code, naming) {
|
|
39
43
|
if (code.S3Bucket !== undefined || code.S3Key !== undefined) {
|
|
40
|
-
throw new SimLambdaInvalidParameterValueException("Please do not provide an S3 object location when using
|
|
44
|
+
throw new SimLambdaInvalidParameterValueException("Please do not provide an S3 object location when using " +
|
|
45
|
+
`${naming.memberPrefix}ZipFile`);
|
|
41
46
|
}
|
|
42
47
|
if (zipFile instanceof LambdaZipFileStowaway) {
|
|
43
48
|
return {
|
|
@@ -47,9 +52,9 @@ function zipFileSource(zipFile, code) {
|
|
|
47
52
|
}
|
|
48
53
|
return { kind: "zip-bytes", zipBytes: zipFile };
|
|
49
54
|
}
|
|
50
|
-
function s3LocationSource(code) {
|
|
51
|
-
assertDefined(code.S3Bucket,
|
|
52
|
-
assertDefined(code.S3Key,
|
|
55
|
+
function s3LocationSource(code, naming) {
|
|
56
|
+
assertDefined(code.S3Bucket, `${naming.path}.S3Bucket required with S3Key`);
|
|
57
|
+
assertDefined(code.S3Key, `${naming.path}.S3Key required with S3Bucket`);
|
|
53
58
|
return {
|
|
54
59
|
kind: "s3-location",
|
|
55
60
|
bucketName: code.S3Bucket,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"lambda-code-source.js","sourceRoot":"","sources":["../../../../../src/service/lambda/function/code/lambda-code-source.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,wCAAwC,CAAC;AACvE,OAAO,EAAE,uCAAuC,EAAE,MAAM,iCAAiC,CAAC;AAE1F,OAAO,EAAE,qBAAqB,EAAE,MAAM,4BAA4B,CAAC;
|
|
1
|
+
{"version":3,"file":"lambda-code-source.js","sourceRoot":"","sources":["../../../../../src/service/lambda/function/code/lambda-code-source.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,wCAAwC,CAAC;AACvE,OAAO,EAAE,uCAAuC,EAAE,MAAM,iCAAiC,CAAC;AAE1F,OAAO,EAAE,qBAAqB,EAAE,MAAM,4BAA4B,CAAC;AA6EnE,MAAM,wBAAwB,GAA6B;IACzD,IAAI,EAAE,kCAAkC;IACxC,YAAY,EAAE,OAAO;CACtB,CAAC;AAEF;;;;;;GAMG;AACH,MAAM,UAAU,uBAAuB,CACrC,IAAoC,EACpC,MAAM,GAA6B,wBAAwB;IAE3D,aAAa,CAAC,IAAI,EAAE,GAAG,MAAM,CAAC,IAAI,WAAW,CAAC,CAAC;IAE/C,IAAI,IAAI,CAAC,QAAQ,KAAK,SAAS,EAAE,CAAC;QAChC,OAAO,oBAAoB,CAAC,IAAI,CAAC,QAAQ,EAAE,IAAI,EAAE,MAAM,CAAC,CAAC;IAC3D,CAAC;IACD,IAAI,IAAI,CAAC,OAAO,KAAK,SAAS,EAAE,CAAC;QAC/B,OAAO,aAAa,CAAC,IAAI,CAAC,OAAO,EAAE,IAAI,EAAE,MAAM,CAAC,CAAC;IACnD,CAAC;IACD,IAAI,IAAI,CAAC,QAAQ,KAAK,SAAS,IAAI,IAAI,CAAC,KAAK,KAAK,SAAS,EAAE,CAAC;QAC5D,OAAO,gBAAgB,CAAC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E,OAAO;QACL,IAAI,EAAE,aAAa;QACnB,UAAU,EAAE,IAAI,CAAC,QAAQ;QACzB,SAAS,EAAE,IAAI,CAAC,KAAK;KACtB,CAAC;AACJ,CAAC"}
|
|
@@ -35,6 +35,12 @@ export interface SimLambdaCodeResolveContext {
|
|
|
35
35
|
readonly handlerName: string | undefined;
|
|
36
36
|
readonly environment: SimLambdaEnvironment;
|
|
37
37
|
readonly caller?: SimAwsCaller | undefined;
|
|
38
|
+
/**
|
|
39
|
+
* What to say when zip code arrives with no handler name to find its export
|
|
40
|
+
* in. CreateFunction takes the name on the request, while UpdateFunctionCode
|
|
41
|
+
* has only whatever the function was created with.
|
|
42
|
+
*/
|
|
43
|
+
readonly missingHandlerMessage?: string | undefined;
|
|
38
44
|
}
|
|
39
45
|
/**
|
|
40
46
|
* Resolves a validated CreateFunction code source into executable sim Lambda
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sim-lambda-code-resolver.d.ts","sourceRoot":"","sources":["../../../../../src/service/lambda/function/code/sim-lambda-code-resolver.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,qCAAqC,CAAC;AAEpE,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,uCAAuC,CAAC;AAC1E,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,0CAA0C,CAAC;AACrF,OAAO,EACL,KAAK,wBAAwB,EAE9B,MAAM,wCAAwC,CAAC;AAChD,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,yBAAyB,CAAC;AACnE,OAAO,EACL,KAAK,uBAAuB,EAE7B,MAAM,iCAAiC,CAAC;AAEzC,OAAO,EACL,KAAK,kBAAkB,EAExB,MAAM,kCAAkC,CAAC;AAE1C,OAAO,KAAK,EAAE,4BAA4B,EAAE,MAAM,+CAA+C,CAAC;AAClG,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,yCAAyC,CAAC;AAErF,UAAU,+BAA+B;IACvC,QAAQ,CAAC,SAAS,CAAC,EAAE,kBAAkB,GAAG,SAAS,CAAC;IACpD,QAAQ,CAAC,mBAAmB,CAAC,EAAE,4BAA4B,GAAG,SAAS,CAAC;IACxE;;;;OAIG;IACH,QAAQ,CAAC,YAAY,CAAC,EAAE,qBAAqB,GAAG,SAAS,CAAC;IAC1D;;OAEG;IACH,QAAQ,CAAC,eAAe,CAAC,EAAE,wBAAwB,GAAG,SAAS,CAAC;IAChE;;;OAGG;IACH,QAAQ,CAAC,KAAK,CAAC,EAAE,QAAQ,GAAG,SAAS,CAAC;CACvC;AAED;;;;GAIG;AACH,MAAM,WAAW,2BAA2B;IAC1C,QAAQ,CAAC,WAAW,EAAE,MAAM,GAAG,SAAS,CAAC;IACzC,QAAQ,CAAC,WAAW,EAAE,oBAAoB,CAAC;IAC3C,QAAQ,CAAC,MAAM,CAAC,EAAE,YAAY,GAAG,SAAS,CAAC;
|
|
1
|
+
{"version":3,"file":"sim-lambda-code-resolver.d.ts","sourceRoot":"","sources":["../../../../../src/service/lambda/function/code/sim-lambda-code-resolver.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,qCAAqC,CAAC;AAEpE,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,uCAAuC,CAAC;AAC1E,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,0CAA0C,CAAC;AACrF,OAAO,EACL,KAAK,wBAAwB,EAE9B,MAAM,wCAAwC,CAAC;AAChD,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,yBAAyB,CAAC;AACnE,OAAO,EACL,KAAK,uBAAuB,EAE7B,MAAM,iCAAiC,CAAC;AAEzC,OAAO,EACL,KAAK,kBAAkB,EAExB,MAAM,kCAAkC,CAAC;AAE1C,OAAO,KAAK,EAAE,4BAA4B,EAAE,MAAM,+CAA+C,CAAC;AAClG,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,yCAAyC,CAAC;AAErF,UAAU,+BAA+B;IACvC,QAAQ,CAAC,SAAS,CAAC,EAAE,kBAAkB,GAAG,SAAS,CAAC;IACpD,QAAQ,CAAC,mBAAmB,CAAC,EAAE,4BAA4B,GAAG,SAAS,CAAC;IACxE;;;;OAIG;IACH,QAAQ,CAAC,YAAY,CAAC,EAAE,qBAAqB,GAAG,SAAS,CAAC;IAC1D;;OAEG;IACH,QAAQ,CAAC,eAAe,CAAC,EAAE,wBAAwB,GAAG,SAAS,CAAC;IAChE;;;OAGG;IACH,QAAQ,CAAC,KAAK,CAAC,EAAE,QAAQ,GAAG,SAAS,CAAC;CACvC;AAED;;;;GAIG;AACH,MAAM,WAAW,2BAA2B;IAC1C,QAAQ,CAAC,WAAW,EAAE,MAAM,GAAG,SAAS,CAAC;IACzC,QAAQ,CAAC,WAAW,EAAE,oBAAoB,CAAC;IAC3C,QAAQ,CAAC,MAAM,CAAC,EAAE,YAAY,GAAG,SAAS,CAAC;IAC3C;;;;OAIG;IACH,QAAQ,CAAC,qBAAqB,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;CACrD;AAED;;;;;;;GAOG;AACH,qBAAa,qBAAqB;IAChC,OAAO,CAAC,QAAQ,CAAC,SAAS,CAAqB;IAC/C,OAAO,CAAC,QAAQ,CAAC,eAAe,CAA2B;IAC3D,OAAO,CAAC,QAAQ,CAAC,gBAAgB,CAA4B;IAE7D,YAAY,UAAU,EAAE,+BAA+B,EAStD;IAED;;OAEG;IACG,OAAO,CACX,MAAM,EAAE,mBAAmB,EAC3B,OAAO,EAAE,2BAA2B,GACnC,OAAO,CAAC,uBAAuB,CAAC,CAsBlC;IAED;;;;;;;OAOG;IACH,OAAO,CAAC,qBAAqB;CAa9B"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sim-lambda-code-resolver.js","sourceRoot":"","sources":["../../../../../src/service/lambda/function/code/sim-lambda-code-resolver.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,uCAAuC,EAAE,MAAM,iCAAiC,CAAC;AAG1F,OAAO,EAEL,0BAA0B,GAC3B,MAAM,wCAAwC,CAAC;AAEhD,OAAO,EAEL,6BAA6B,GAC9B,MAAM,iCAAiC,CAAC;AACzC,OAAO,EAAE,yBAAyB,EAAE,MAAM,qCAAqC,CAAC;AAChF,OAAO,EAEL,oBAAoB,GACrB,MAAM,kCAAkC,CAAC;
|
|
1
|
+
{"version":3,"file":"sim-lambda-code-resolver.js","sourceRoot":"","sources":["../../../../../src/service/lambda/function/code/sim-lambda-code-resolver.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,uCAAuC,EAAE,MAAM,iCAAiC,CAAC;AAG1F,OAAO,EAEL,0BAA0B,GAC3B,MAAM,wCAAwC,CAAC;AAEhD,OAAO,EAEL,6BAA6B,GAC9B,MAAM,iCAAiC,CAAC;AACzC,OAAO,EAAE,yBAAyB,EAAE,MAAM,qCAAqC,CAAC;AAChF,OAAO,EAEL,oBAAoB,GACrB,MAAM,kCAAkC,CAAC;AA0C1C;;;;;;;GAOG;AACH,MAAM,OAAO,qBAAqB;IACf,SAAS,CAAqB;IAC9B,eAAe,CAA2B;IAC1C,gBAAgB,CAA4B;IAE7D,YAAY,UAA2C;QACrD,IAAI,CAAC,SAAS,GAAG,UAAU,CAAC,SAAS,IAAI,IAAI,oBAAoB,EAAE,CAAC;QACpE,IAAI,CAAC,eAAe;YAClB,UAAU,CAAC,eAAe,IAAI,IAAI,0BAA0B,EAAE,CAAC;QACjE,IAAI,CAAC,gBAAgB,GAAG,IAAI,yBAAyB,CAAC;YACpD,mBAAmB,EAAE,UAAU,CAAC,mBAAmB;YACnD,YAAY,EAAE,UAAU,CAAC,YAAY;YACrC,KAAK,EAAE,UAAU,CAAC,KAAK;SACxB,CAAC,CAAC;IACL,CAAC;IAED;;OAEG;IACH,KAAK,CAAC,OAAO,CACX,MAA2B,EAC3B,OAAoC;QAEpC,QAAQ,MAAM,CAAC,IAAI,EAAE,CAAC;YACpB,KAAK,mBAAmB,EAAE,CAAC;gBACzB,OAAO,IAAI,6BAA6B,CAAC,MAAM,CAAC,eAAe,CAAC,CAAC;YACnE,CAAC;YACD,KAAK,WAAW,EAAE,CAAC;gBACjB,OAAO,IAAI,CAAC,gBAAgB,CAAC,IAAI,CAAC,MAAM,CAAC,QAAQ,EAAE,OAAO,CAAC,CAAC;YAC9D,CAAC;YACD,KAAK,aAAa,EAAE,CAAC;gBACnB,MAAM,QAAQ,GAAG,MAAM,IAAI,CAAC,SAAS,CAAC,WAAW,CAAC;oBAChD,UAAU,EAAE,MAAM,CAAC,UAAU;oBAC7B,SAAS,EAAE,MAAM,CAAC,SAAS;oBAC3B,MAAM,EAAE,OAAO,CAAC,MAAM;iBACvB,CAAC,CAAC;gBACH,OAAO,IAAI,CAAC,gBAAgB,CAAC,IAAI,CAAC,QAAQ,EAAE,OAAO,CAAC,CAAC;YACvD,CAAC;YACD,KAAK,iBAAiB,EAAE,CAAC;gBACvB,OAAO,IAAI,6BAA6B,CACtC,IAAI,CAAC,qBAAqB,CAAC,MAAM,CAAC,QAAQ,CAAC,CAC5C,CAAC;YACJ,CAAC;QACH,CAAC;IACH,CAAC;IAED;;;;;;;OAOG;IACK,qBAAqB,CAAC,QAAgB;QAC5C,MAAM,KAAK,GAAG,IAAI,CAAC,eAAe,CAAC,KAAK,CAAC,QAAQ,CAAC,CAAC;QAEnD,IAAI,KAAK,CAAC,OAAO,KAAK,SAAS,EAAE,CAAC;YAChC,MAAM,IAAI,uCAAuC,CAC/C,gBAAgB,QAAQ,kBAAkB;gBACxC,GAAG,KAAK,CAAC,iBAAiB,EAAE,uCAAuC;gBACnE,4DAA4D,CAC/D,CAAC;QACJ,CAAC;QAED,OAAO,KAAK,CAAC,OAAO,CAAC;IACvB,CAAC;CACF"}
|
|
@@ -1,5 +1,16 @@
|
|
|
1
|
+
import type { SimLambdaEnvironment } from "../environment/sim-lambda-environment.js";
|
|
1
2
|
import type { SimLambdaOutputSink } from "../logging/sim-lambda-output-sink.js";
|
|
2
3
|
import type { SimLambdaHandler } from "../sim-lambda-handler.type.js";
|
|
4
|
+
/**
|
|
5
|
+
* The function settings a change to which reaches the code itself.
|
|
6
|
+
*
|
|
7
|
+
* The environment is what the code reads its variables from, and the handler
|
|
8
|
+
* name is what finds the export to run inside a code archive.
|
|
9
|
+
*/
|
|
10
|
+
export interface SimLambdaCodeConfiguration {
|
|
11
|
+
readonly environment: SimLambdaEnvironment;
|
|
12
|
+
readonly handlerName: string | undefined;
|
|
13
|
+
}
|
|
3
14
|
/**
|
|
4
15
|
* Executable code backing a sim Lambda function.
|
|
5
16
|
*
|
|
@@ -23,6 +34,15 @@ export interface SimLambdaExecutableCode {
|
|
|
23
34
|
* output reaches the function's log group.
|
|
24
35
|
*/
|
|
25
36
|
recordOutputTo(sink: SimLambdaOutputSink): void;
|
|
37
|
+
/**
|
|
38
|
+
* This code under changed function settings, cold rather than warm.
|
|
39
|
+
*
|
|
40
|
+
* UpdateFunctionConfiguration replaces a real function's execution
|
|
41
|
+
* environment, so the next invocation starts one afresh under the new
|
|
42
|
+
* settings. Code holding neither the environment nor the handler name has
|
|
43
|
+
* nothing to rebuild and answers with itself.
|
|
44
|
+
*/
|
|
45
|
+
reconfigured(configuration: SimLambdaCodeConfiguration): SimLambdaExecutableCode;
|
|
26
46
|
handlerFunction(): SimLambdaHandler;
|
|
27
47
|
}
|
|
28
48
|
/**
|
|
@@ -46,6 +66,14 @@ export declare class SimLambdaHandlerReferenceCode implements SimLambdaExecutabl
|
|
|
46
66
|
* and process.env are bridged for the same code.
|
|
47
67
|
*/
|
|
48
68
|
recordOutputTo(): void;
|
|
69
|
+
/**
|
|
70
|
+
* Answer with this code unchanged.
|
|
71
|
+
*
|
|
72
|
+
* A referenced handler was given directly rather than found by name, and it
|
|
73
|
+
* reads process.env, which the invocation applies from the function's
|
|
74
|
+
* current environment. Neither setting is held here.
|
|
75
|
+
*/
|
|
76
|
+
reconfigured(): SimLambdaExecutableCode;
|
|
49
77
|
/**
|
|
50
78
|
* Get the referenced handler function.
|
|
51
79
|
*/
|
|
@@ -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;;;;;;;;OAQG;IACH,cAAc,IAAI,IAAI,CAErB;IAED;;OAEG;IACH,eAAe,IAAI,gBAAgB,CAElC;CACF"}
|
|
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,oBAAoB,EAAE,MAAM,0CAA0C,CAAC;AACrF,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,sCAAsC,CAAC;AAChF,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,+BAA+B,CAAC;AAEtE;;;;;GAKG;AACH,MAAM,WAAW,0BAA0B;IACzC,QAAQ,CAAC,WAAW,EAAE,oBAAoB,CAAC;IAC3C,QAAQ,CAAC,WAAW,EAAE,MAAM,GAAG,SAAS,CAAC;CAC1C;AAED;;;;;;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;;;;;;;OAOG;IACH,YAAY,CACV,aAAa,EAAE,0BAA0B,GACxC,uBAAuB,CAAC;IAE3B,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;;;;;;OAMG;IACH,YAAY,IAAI,uBAAuB,CAEtC;IAED;;OAEG;IACH,eAAe,IAAI,gBAAgB,CAElC;CACF"}
|
|
@@ -23,6 +23,16 @@ export class SimLambdaHandlerReferenceCode {
|
|
|
23
23
|
recordOutputTo() {
|
|
24
24
|
// Recorded by the invocation, from the process globals.
|
|
25
25
|
}
|
|
26
|
+
/**
|
|
27
|
+
* Answer with this code unchanged.
|
|
28
|
+
*
|
|
29
|
+
* A referenced handler was given directly rather than found by name, and it
|
|
30
|
+
* reads process.env, which the invocation applies from the function's
|
|
31
|
+
* current environment. Neither setting is held here.
|
|
32
|
+
*/
|
|
33
|
+
reconfigured() {
|
|
34
|
+
return this;
|
|
35
|
+
}
|
|
26
36
|
/**
|
|
27
37
|
* Get the referenced handler function.
|
|
28
38
|
*/
|
|
@@ -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":"
|
|
1
|
+
{"version":3,"file":"sim-lambda-executable-code.js","sourceRoot":"","sources":["../../../../../src/service/lambda/function/code/sim-lambda-executable-code.ts"],"names":[],"mappings":"AAuDA;;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;;;;;;OAMG;IACH,YAAY;QACV,OAAO,IAAI,CAAC;IACd,CAAC;IAED;;OAEG;IACH,eAAe;QACb,OAAO,IAAI,CAAC,OAAO,CAAC;IACtB,CAAC;CACF"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sim-lambda-vm-zip-code-factory.d.ts","sourceRoot":"","sources":["../../../../../src/service/lambda/function/code/sim-lambda-vm-zip-code-factory.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,qCAAqC,CAAC;AAIpE,OAAO,KAAK,EAAE,2BAA2B,EAAE,MAAM,+BAA+B,CAAC;AACjF,OAAO,EAAE,kBAAkB,EAAE,MAAM,6BAA6B,CAAC;AACjE,OAAO,KAAK,EAAE,4BAA4B,EAAE,MAAM,+CAA+C,CAAC;AAClG,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,yCAAyC,CAAC;AAErF,UAAU,mCAAmC;IAC3C,QAAQ,CAAC,mBAAmB,CAAC,EAAE,4BAA4B,GAAG,SAAS,CAAC;IACxE,QAAQ,CAAC,YAAY,CAAC,EAAE,qBAAqB,GAAG,SAAS,CAAC;IAC1D,QAAQ,CAAC,KAAK,CAAC,EAAE,QAAQ,GAAG,SAAS,CAAC;CACvC;AAED;;;;;;GAMG;AACH,qBAAa,yBAAyB;IACpC,OAAO,CAAC,QAAQ,CAAC,mBAAmB,CAEtB;IACd,OAAO,CAAC,QAAQ,CAAC,YAAY,CAAoC;IACjE,OAAO,CAAC,QAAQ,CAAC,KAAK,CAAuB;IAE7C,YAAY,UAAU,EAAE,mCAAmC,EAI1D;IAED;;OAEG;IACH,IAAI,CACF,QAAQ,EAAE,UAAU,EACpB,OAAO,EAAE,2BAA2B,GACnC,kBAAkB,
|
|
1
|
+
{"version":3,"file":"sim-lambda-vm-zip-code-factory.d.ts","sourceRoot":"","sources":["../../../../../src/service/lambda/function/code/sim-lambda-vm-zip-code-factory.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,qCAAqC,CAAC;AAIpE,OAAO,KAAK,EAAE,2BAA2B,EAAE,MAAM,+BAA+B,CAAC;AACjF,OAAO,EAAE,kBAAkB,EAAE,MAAM,6BAA6B,CAAC;AACjE,OAAO,KAAK,EAAE,4BAA4B,EAAE,MAAM,+CAA+C,CAAC;AAClG,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,yCAAyC,CAAC;AAErF,UAAU,mCAAmC;IAC3C,QAAQ,CAAC,mBAAmB,CAAC,EAAE,4BAA4B,GAAG,SAAS,CAAC;IACxE,QAAQ,CAAC,YAAY,CAAC,EAAE,qBAAqB,GAAG,SAAS,CAAC;IAC1D,QAAQ,CAAC,KAAK,CAAC,EAAE,QAAQ,GAAG,SAAS,CAAC;CACvC;AAED;;;;;;GAMG;AACH,qBAAa,yBAAyB;IACpC,OAAO,CAAC,QAAQ,CAAC,mBAAmB,CAEtB;IACd,OAAO,CAAC,QAAQ,CAAC,YAAY,CAAoC;IACjE,OAAO,CAAC,QAAQ,CAAC,KAAK,CAAuB;IAE7C,YAAY,UAAU,EAAE,mCAAmC,EAI1D;IAED;;OAEG;IACH,IAAI,CACF,QAAQ,EAAE,UAAU,EACpB,OAAO,EAAE,2BAA2B,GACnC,kBAAkB,CAepB;IAED,OAAO,CAAC,KAAK;CAWd"}
|
|
@@ -22,7 +22,8 @@ export class SimLambdaVmZipCodeFactory {
|
|
|
22
22
|
* Build vm zip code for a function from its code zip bytes.
|
|
23
23
|
*/
|
|
24
24
|
make(zipBytes, context) {
|
|
25
|
-
assertDefined(context.handlerName,
|
|
25
|
+
assertDefined(context.handlerName, context.missingHandlerMessage ??
|
|
26
|
+
"CreateFunctionCommand.input.Handler required for zip function code");
|
|
26
27
|
return new SimLambdaVmZipCode({
|
|
27
28
|
archive: this.unzip(zipBytes),
|
|
28
29
|
handlerName: context.handlerName,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sim-lambda-vm-zip-code-factory.js","sourceRoot":"","sources":["../../../../../src/service/lambda/function/code/sim-lambda-vm-zip-code-factory.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,aAAa,EAAE,MAAM,wCAAwC,CAAC;AACvE,OAAO,EAAE,aAAa,EAAE,MAAM,qCAAqC,CAAC;AACpE,OAAO,EAAE,uCAAuC,EAAE,MAAM,iCAAiC,CAAC;AAE1F,OAAO,EAAE,kBAAkB,EAAE,MAAM,6BAA6B,CAAC;AAUjE;;;;;;GAMG;AACH,MAAM,OAAO,yBAAyB;IACnB,mBAAmB,CAEtB;IACG,YAAY,CAAoC;IAChD,KAAK,CAAuB;IAE7C,YAAY,UAA+C;QACzD,IAAI,CAAC,mBAAmB,GAAG,UAAU,CAAC,mBAAmB,CAAC;QAC1D,IAAI,CAAC,YAAY,GAAG,UAAU,CAAC,YAAY,CAAC;QAC5C,IAAI,CAAC,KAAK,GAAG,UAAU,CAAC,KAAK,CAAC;IAChC,CAAC;IAED;;OAEG;IACH,IAAI,CACF,QAAoB,EACpB,OAAoC;QAEpC,aAAa,CACX,OAAO,CAAC,WAAW,EACnB,oEAAoE,
|
|
1
|
+
{"version":3,"file":"sim-lambda-vm-zip-code-factory.js","sourceRoot":"","sources":["../../../../../src/service/lambda/function/code/sim-lambda-vm-zip-code-factory.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,aAAa,EAAE,MAAM,wCAAwC,CAAC;AACvE,OAAO,EAAE,aAAa,EAAE,MAAM,qCAAqC,CAAC;AACpE,OAAO,EAAE,uCAAuC,EAAE,MAAM,iCAAiC,CAAC;AAE1F,OAAO,EAAE,kBAAkB,EAAE,MAAM,6BAA6B,CAAC;AAUjE;;;;;;GAMG;AACH,MAAM,OAAO,yBAAyB;IACnB,mBAAmB,CAEtB;IACG,YAAY,CAAoC;IAChD,KAAK,CAAuB;IAE7C,YAAY,UAA+C;QACzD,IAAI,CAAC,mBAAmB,GAAG,UAAU,CAAC,mBAAmB,CAAC;QAC1D,IAAI,CAAC,YAAY,GAAG,UAAU,CAAC,YAAY,CAAC;QAC5C,IAAI,CAAC,KAAK,GAAG,UAAU,CAAC,KAAK,CAAC;IAChC,CAAC;IAED;;OAEG;IACH,IAAI,CACF,QAAoB,EACpB,OAAoC;QAEpC,aAAa,CACX,OAAO,CAAC,WAAW,EACnB,OAAO,CAAC,qBAAqB;YAC3B,oEAAoE,CACvE,CAAC;QAEF,OAAO,IAAI,kBAAkB,CAAC;YAC5B,OAAO,EAAE,IAAI,CAAC,KAAK,CAAC,QAAQ,CAAC;YAC7B,WAAW,EAAE,OAAO,CAAC,WAAW;YAChC,WAAW,EAAE,OAAO,CAAC,WAAW;YAChC,iBAAiB,EAAE,IAAI,CAAC,mBAAmB;YAC3C,YAAY,EAAE,IAAI,CAAC,YAAY;YAC/B,KAAK,EAAE,IAAI,CAAC,KAAK;SAClB,CAAC,CAAC;IACL,CAAC;IAEO,KAAK,CAAC,QAAoB;QAChC,IAAI,CAAC;YACH,OAAO,aAAa,CAAC,SAAS,CAAC,QAAQ,CAAC,CAAC;QAC3C,CAAC;QAAC,OAAO,KAAK,EAAE,CAAC;YACf,MAAM,IAAI,uCAAuC,CAC/C,yDAAyD;gBACvD,2BAA2B,EAC7B,EAAE,KAAK,EAAE,KAAK,EAAE,CACjB,CAAC;QACJ,CAAC;IACH,CAAC;CACF"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { SimZipArchive } from "../../../../util/zip/zip-archive.js";
|
|
2
2
|
import type { SimLambdaHandler } from "../sim-lambda-handler.type.js";
|
|
3
3
|
import { type SimLambdaVmSdkModuleProvider } from "./vm/sdk/sim-lambda-vm-sdk-module-provider.js";
|
|
4
|
-
import type { SimLambdaExecutableCode } from "./sim-lambda-executable-code.js";
|
|
4
|
+
import type { SimLambdaCodeConfiguration, SimLambdaExecutableCode } from "./sim-lambda-executable-code.js";
|
|
5
5
|
import { type SimLambdaVmContextProperties } from "./vm/sim-lambda-vm-context.js";
|
|
6
6
|
import { type SimLambdaOutputSink } from "../logging/sim-lambda-output-sink.js";
|
|
7
7
|
/**
|
|
@@ -38,6 +38,16 @@ export declare class SimLambdaVmZipCode implements SimLambdaExecutableCode {
|
|
|
38
38
|
* the sink by the time any of it runs.
|
|
39
39
|
*/
|
|
40
40
|
recordOutputTo(sink: SimLambdaOutputSink): void;
|
|
41
|
+
/**
|
|
42
|
+
* This archive under changed function settings, ready to cold start again.
|
|
43
|
+
*
|
|
44
|
+
* The sandbox is built from the environment and the export is found by the
|
|
45
|
+
* handler name, and both are fixed once the code has started. So a change to
|
|
46
|
+
* either produces code of its own, holding the same archive, which the next
|
|
47
|
+
* invocation cold starts. Whatever the running module had in memory goes,
|
|
48
|
+
* the way it goes on real Lambda when the configuration changes.
|
|
49
|
+
*/
|
|
50
|
+
reconfigured(configuration: SimLambdaCodeConfiguration): SimLambdaVmZipCode;
|
|
41
51
|
/**
|
|
42
52
|
* Get the handler function, cold-starting the module code if needed.
|
|
43
53
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sim-lambda-vm-zip-code.d.ts","sourceRoot":"","sources":["../../../../../src/service/lambda/function/code/sim-lambda-vm-zip-code.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,qCAAqC,CAAC;AAEzE,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,+BAA+B,CAAC;AACtE,OAAO,EAEL,KAAK,4BAA4B,EAClC,MAAM,+CAA+C,CAAC;AACvD,OAAO,KAAK,
|
|
1
|
+
{"version":3,"file":"sim-lambda-vm-zip-code.d.ts","sourceRoot":"","sources":["../../../../../src/service/lambda/function/code/sim-lambda-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ive under changed function settings, ready to cold start again.
|
|
39
|
+
*
|
|
40
|
+
* The sandbox is built from the environment and the export is found by the
|
|
41
|
+
* handler name, and both are fixed once the code has started. So a change to
|
|
42
|
+
* either produces code of its own, holding the same archive, which the next
|
|
43
|
+
* invocation cold starts. Whatever the running module had in memory goes,
|
|
44
|
+
* the way it goes on real Lambda when the configuration changes.
|
|
45
|
+
*/
|
|
46
|
+
reconfigured(configuration) {
|
|
47
|
+
return new SimLambdaVmZipCode({
|
|
48
|
+
...this.properties,
|
|
49
|
+
environment: configuration.environment,
|
|
50
|
+
handlerName: configuration.handlerName ?? this.properties.handlerName,
|
|
51
|
+
});
|
|
52
|
+
}
|
|
37
53
|
/**
|
|
38
54
|
* Get the handler function, cold-starting the module code if needed.
|
|
39
55
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sim-lambda-vm-zip-code.js","sourceRoot":"","sources":["../../../../../src/service/lambda/function/code/sim-lambda-vm-zip-code.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,qBAAqB,EAAE,MAAM,yCAAyC,CAAC;AAEhF,OAAO,EACL,8BAA8B,GAE/B,MAAM,+CAA+C,CAAC;
|
|
1
|
+
{"version":3,"file":"sim-lambda-vm-zip-code.js","sourceRoot":"","sources":["../../../../../src/service/lambda/function/code/sim-lambda-vm-zip-code.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,qBAAqB,EAAE,MAAM,yCAAyC,CAAC;AAEhF,OAAO,EACL,8BAA8B,GAE/B,MAAM,+CAA+C,CAAC;AAKvD,OAAO,EAAE,sBAAsB,EAAE,MAAM,8BAA8B,CAAC;AACtE,OAAO,EACL,sBAAsB,GAEvB,MAAM,+BAA+B,CAAC;AACvC,OAAO,EACL,qBAAqB,GAEtB,MAAM,sCAAsC,CAAC;AAC9C,OAAO,EAAE,kBAAkB,EAAE,MAAM,+BAA+B,CAAC;AAYnE;;;;;;;GAOG;AACH,MAAM,OAAO,kBAAkB;IAUA,UAAU;IATvC;;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E,CAAC;YAClC,MAAM,IAAI,qBAAqB,CAC7B,yBAAyB,EACzB,GAAG,WAAW,oCAAoC,UAAU,CAAC,UAAU,EAAE,CAC1E,CAAC;QACJ,CAAC;QACD,OAAO,OAA2B,CAAC;IACrC,CAAC;IAED;;;;;;;OAOG;IACK,eAAe,CAAC,aAAsB,EAAE,UAAkB;QAChE,IAAI,aAAa,KAAK,IAAI,IAAI,aAAa,KAAK,SAAS,EAAE,CAAC;YAC1D,OAAO,SAAS,CAAC;QACnB,CAAC;QACD,MAAM,cAAc,GAAG,aAAwC,CAAC;QAChE,IAAI,CAAC,MAAM,CAAC,MAAM,CAAC,cAAc,EAAE,UAAU,CAAC,EAAE,CAAC;YAC/C,OAAO,SAAS,CAAC;QACnB,CAAC;QACD,OAAO,OAAO,CAAC,GAAG,CAAC,cAAc,EAAE,UAAU,CAAC,CAAC;IACjD,CAAC;IAEO,mBAAmB,CACzB,OAA2B,EAC3B,UAAkB;QAElB,IAAI,CAAC;YACH,OAAO,OAAO,CAAC,aAAa,CAAC,KAAK,UAAU,EAAE,CAAC,CAAC;QAClD,CAAC;QAAC,OAAO,KAAK,EAAE,CAAC;YACf,IAAI,KAAK,YAAY,qBAAqB,EAAE,CAAC;gBAC3C,MAAM,KAAK,CAAC;YACd,CAAC;YACD,IAAI,OAAO,GAAG,MAAM,CAAC,KAAK,CAAC,CAAC;YAC5B,IAAI,KAAK,YAAY,KAAK,EAAE,CAAC;gBAC3B,OAAO,GAAG,KAAK,CAAC,OAAO,CAAC;YAC1B,CAAC;YACD,MAAM,IAAI,qBAAqB,CAAC,2BAA2B,EAAE,OAAO,CAAC,CAAC;QACxE,CAAC;IACH,CAAC;CACF"}
|
|
@@ -7,4 +7,4 @@
|
|
|
7
7
|
* which is also an illegal name shape.
|
|
8
8
|
*/
|
|
9
9
|
export declare function requireValidVariableNames(declared: ReadonlyMap<string, string>): void;
|
|
10
|
-
//# sourceMappingURL=
|
|
10
|
+
//# sourceMappingURL=lambda-environment-variable-names.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"lambda-environment-variable-names.d.ts","sourceRoot":"","sources":["../../../../../src/service/lambda/function/environment/lambda-environment-variable-names.ts"],"names":[],"mappings":"AA2EA;;;;;;;GAOG;AACH,wBAAgB,yBAAyB,CACvC,QAAQ,EAAE,WAAW,CAAC,MAAM,EAAE,MAAM,CAAC,GACpC,IAAI,CAGN"}
|
|
@@ -57,4 +57,4 @@ export function requireValidVariableNames(declared) {
|
|
|
57
57
|
requireMatchingVariableNames(declared);
|
|
58
58
|
requireUnreservedVariableNames(declared);
|
|
59
59
|
}
|
|
60
|
-
//# sourceMappingURL=
|
|
60
|
+
//# sourceMappingURL=lambda-environment-variable-names.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"lambda-environment-variable-names.js","sourceRoot":"","sources":["../../../../../src/service/lambda/function/environment/lambda-environment-variable-names.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,uCAAuC,EACvC,4BAA4B,GAC7B,MAAM,iCAAiC,CAAC;AACzC,OAAO,EAAE,2BAA2B,EAAE,MAAM,qCAAqC,CAAC;AAElF;;;;;;;GAOG;AACH,MAAM,mBAAmB,GAAG,yBAAyB,CAAC;AAEtD;;GAEG;AACH,SAAS,YAAY,CACnB,QAAqC,EACrC,KAAgC;IAEhC,OAAO,QAAQ;SACZ,IAAI,EAAE;SACN,MAAM,CAAC,KAAK,CAAC;SACb,OAAO,EAAE;SACT,QAAQ,CAAC,CAAC,IAAI,EAAE,KAAK,EAAE,EAAE,CAAC,IAAI,CAAC,aAAa,CAAC,KAAK,CAAC,CAAC,CAAC;AAC1D,CAAC;AAED;;GAEG;AACH,SAAS,4BAA4B,CACnC,QAAqC;IAErC,MAAM,OAAO,GAAG,YAAY,CAC1B,QAAQ,EACR,CAAC,IAAI,EAAE,EAAE,CAAC,CAAC,mBAAmB,CAAC,IAAI,CAAC,IAAI,CAAC,CAC1C,CAAC;IAEF,IAAI,OAAO,CAAC,MAAM,KAAK,CAAC,EAAE,CAAC;QACzB,OAAO;IACT,CAAC;IAED,MAAM,IAAI,4BAA4B,CACpC,uEAAuE;QACrE,mEAAmE;QACnE,qEAAqE;QACrE,sCAAsC,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC,EAAE,CAC7D,CAAC;AACJ,CAAC;AAED;;GAEG;AACH,SAAS,8BAA8B,CACrC,QAAqC;IAErC,MAAM,QAAQ,GAAG,YAAY,CAAC,QAAQ,EAAE,CAAC,IAAI,EAAE,EAAE,CAC/C,2BAA2B,CAAC,GAAG,CAAC,IAAI,CAAC,CACtC,CAAC;IAEF,IAAI,QAAQ,CAAC,MAAM,KAAK,CAAC,EAAE,CAAC;QAC1B,OAAO;IACT,CAAC;IAED,MAAM,IAAI,uCAAuC,CAC/C,oEAAoE;QAClE,qEAAqE;QACrE,mEAAmE;QACnE,yBAAyB,QAAQ,CAAC,IAAI,CAAC,IAAI,CAAC,EAAE,CACjD,CAAC;AACJ,CAAC;AAED;;;;;;;GAOG;AACH,MAAM,UAAU,yBAAyB,CACvC,QAAqC;IAErC,4BAA4B,CAAC,QAAQ,CAAC,CAAC;IACvC,8BAA8B,CAAC,QAAQ,CAAC,CAAC;AAC3C,CAAC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import type { SimLambdaFunctionEnvironment } from "
|
|
1
|
+
import type { SimLambdaFunctionEnvironment } from "../../command/create-function/create-function.command.js";
|
|
2
2
|
/**
|
|
3
3
|
* Validate the Environment input into the variables declared for a function.
|
|
4
4
|
*/
|
|
5
5
|
export declare function requireLambdaEnvironmentVariables(environment: SimLambdaFunctionEnvironment | undefined): ReadonlyMap<string, string>;
|
|
6
|
-
//# sourceMappingURL=
|
|
6
|
+
//# sourceMappingURL=lambda-environment-variables.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"lambda-environment-variables.d.ts","sourceRoot":"","sources":["../../../../../src/service/lambda/function/environment/lambda-environment-variables.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,4BAA4B,EAAE,MAAM,0DAA0D,CAAC;AAE7G;;GAEG;AACH,wBAAgB,iCAAiC,CAC/C,WAAW,EAAE,4BAA4B,GAAG,SAAS,GACpD,WAAW,CAAC,MAAM,EAAE,MAAM,CAAC,CAU7B"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { requireValidVariableNames } from "./
|
|
1
|
+
import { requireValidVariableNames } from "./lambda-environment-variable-names.js";
|
|
2
2
|
/**
|
|
3
3
|
* Validate the Environment input into the variables declared for a function.
|
|
4
4
|
*/
|
|
@@ -11,4 +11,4 @@ export function requireLambdaEnvironmentVariables(environment) {
|
|
|
11
11
|
requireValidVariableNames(declared);
|
|
12
12
|
return declared;
|
|
13
13
|
}
|
|
14
|
-
//# sourceMappingURL=
|
|
14
|
+
//# sourceMappingURL=lambda-environment-variables.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"lambda-environment-variables.js","sourceRoot":"","sources":["../../../../../src/service/lambda/function/environment/lambda-environment-variables.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,yBAAyB,EAAE,MAAM,wCAAwC,CAAC;AAGnF;;GAEG;AACH,MAAM,UAAU,iCAAiC,CAC/C,WAAqD;IAErD,MAAM,SAAS,GAAG,WAAW,EAAE,SAAS,CAAC;IACzC,IAAI,SAAS,KAAK,SAAS,EAAE,CAAC;QAC5B,OAAO,IAAI,GAAG,EAAE,CAAC;IACnB,CAAC;IAED,MAAM,QAAQ,GAAG,IAAI,GAAG,CAAC,MAAM,CAAC,OAAO,CAAC,SAAS,CAAC,CAAC,CAAC;IACpD,yBAAyB,CAAC,QAAQ,CAAC,CAAC;IAEpC,OAAO,QAAQ,CAAC;AAClB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"lambda-reserved-variable-names.d.ts","sourceRoot":"","sources":["../../../../../src/service/lambda/function/environment/lambda-reserved-variable-names.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AACH,eAAO,MAAM,2BAA2B,EAAE,WAAW,CAAC,MAAM,CAsB1D,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"lambda-reserved-variable-names.js","sourceRoot":"","sources":["../../../../../src/service/lambda/function/environment/lambda-reserved-variable-names.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AACH,MAAM,CAAC,MAAM,2BAA2B,GAAwB,IAAI,GAAG,CAAC;IACtE,UAAU;IACV,kBAAkB;IAClB,gBAAgB;IAChB,mBAAmB;IACnB,oBAAoB;IACpB,mBAAmB;IACnB,iCAAiC;IACjC,0BAA0B;IAC1B,6BAA6B;IAC7B,gCAAgC;IAChC,2BAA2B;IAC3B,4BAA4B;IAC5B,4BAA4B;IAC5B,yBAAyB;IACzB,2BAA2B;IAC3B,wBAAwB;IACxB,YAAY;IACZ,uBAAuB;IACvB,mBAAmB;IACnB,oBAAoB;IACpB,kBAAkB;CACnB,CAAC,CAAC"}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import type { SimLambdaExecutableCode } from "./code/sim-lambda-executable-code.js";
|
|
2
|
+
import type { SimLambdaFunction } from "./sim-lambda-function.js";
|
|
3
|
+
/**
|
|
4
|
+
* A change to the settings of a sim Lambda function, in the function model's
|
|
5
|
+
* own terms.
|
|
6
|
+
*
|
|
7
|
+
* A setting left out is a setting the request said nothing about, and keeps
|
|
8
|
+
* the value it has.
|
|
9
|
+
*/
|
|
10
|
+
export interface SimLambdaFunctionConfigurationUpdate {
|
|
11
|
+
readonly roleArn?: string | undefined;
|
|
12
|
+
readonly handlerName?: string | undefined;
|
|
13
|
+
readonly runtimeName?: string | undefined;
|
|
14
|
+
readonly description?: string | undefined;
|
|
15
|
+
readonly timeoutSeconds?: number | undefined;
|
|
16
|
+
readonly memorySizeMb?: number | undefined;
|
|
17
|
+
/**
|
|
18
|
+
* The variables to declare, replacing whatever the function declares now.
|
|
19
|
+
*
|
|
20
|
+
* An empty map is a request to declare none, which is different from
|
|
21
|
+
* leaving this out, and real Lambda tells the two apart the same way.
|
|
22
|
+
*/
|
|
23
|
+
readonly environmentVariables?: ReadonlyMap<string, string> | undefined;
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
* Apply a settings change to a sim Lambda function, and say what code it runs
|
|
27
|
+
* afterwards.
|
|
28
|
+
*
|
|
29
|
+
* The answer is the code the function already had, unless the change reached
|
|
30
|
+
* inside it. Sandboxed zip code holds the environment it reads variables from
|
|
31
|
+
* and the handler name that finds its export, so a change to either gives the
|
|
32
|
+
* function code of its own to cold start.
|
|
33
|
+
*/
|
|
34
|
+
export declare function reconfigureSimLambdaFunction(simFunction: SimLambdaFunction, update: SimLambdaFunctionConfigurationUpdate, code: SimLambdaExecutableCode): SimLambdaExecutableCode;
|
|
35
|
+
//# sourceMappingURL=sim-lambda-function-reconfiguration.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sim-lambda-function-reconfiguration.d.ts","sourceRoot":"","sources":["../../../../src/service/lambda/function/sim-lambda-function-reconfiguration.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,sCAAsC,CAAC;AAEpF,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,0BAA0B,CAAC;AAElE;;;;;;GAMG;AACH,MAAM,WAAW,oCAAoC;IACnD,QAAQ,CAAC,OAAO,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IACtC,QAAQ,CAAC,WAAW,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC1C,QAAQ,CAAC,WAAW,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC1C,QAAQ,CAAC,WAAW,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC1C,QAAQ,CAAC,cAAc,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC7C,QAAQ,CAAC,YAAY,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC3C;;;;;OAKG;IACH,QAAQ,CAAC,oBAAoB,CAAC,EAAE,WAAW,CAAC,MAAM,EAAE,MAAM,CAAC,GAAG,SAAS,CAAC;CACzE;AAED;;;;;;;;GAQG;AACH,wBAAgB,4BAA4B,CAC1C,WAAW,EAAE,iBAAiB,EAC9B,MAAM,EAAE,oCAAoC,EAC5C,IAAI,EAAE,uBAAuB,GAC5B,uBAAuB,CA0BzB"}
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
import { SimLambdaEnvironment } from "./environment/sim-lambda-environment.js";
|
|
2
|
+
/**
|
|
3
|
+
* Apply a settings change to a sim Lambda function, and say what code it runs
|
|
4
|
+
* afterwards.
|
|
5
|
+
*
|
|
6
|
+
* The answer is the code the function already had, unless the change reached
|
|
7
|
+
* inside it. Sandboxed zip code holds the environment it reads variables from
|
|
8
|
+
* and the handler name that finds its export, so a change to either gives the
|
|
9
|
+
* function code of its own to cold start.
|
|
10
|
+
*/
|
|
11
|
+
export function reconfigureSimLambdaFunction(simFunction, update, code) {
|
|
12
|
+
const previous = {
|
|
13
|
+
environment: simFunction.environment,
|
|
14
|
+
handlerName: simFunction.handlerName,
|
|
15
|
+
};
|
|
16
|
+
simFunction.roleArn = update.roleArn ?? simFunction.roleArn;
|
|
17
|
+
simFunction.handlerName = update.handlerName ?? simFunction.handlerName;
|
|
18
|
+
simFunction.runtimeName = update.runtimeName ?? simFunction.runtimeName;
|
|
19
|
+
simFunction.description = update.description ?? simFunction.description;
|
|
20
|
+
simFunction.timeoutSeconds =
|
|
21
|
+
update.timeoutSeconds ?? simFunction.timeoutSeconds;
|
|
22
|
+
simFunction.memorySizeMb = update.memorySizeMb ?? simFunction.memorySizeMb;
|
|
23
|
+
simFunction.environment = updatedEnvironment(simFunction, update);
|
|
24
|
+
if (simFunction.environment === previous.environment &&
|
|
25
|
+
simFunction.handlerName === previous.handlerName) {
|
|
26
|
+
return code;
|
|
27
|
+
}
|
|
28
|
+
return code.reconfigured({
|
|
29
|
+
environment: simFunction.environment,
|
|
30
|
+
handlerName: simFunction.handlerName,
|
|
31
|
+
});
|
|
32
|
+
}
|
|
33
|
+
/**
|
|
34
|
+
* The environment a function runs with after a settings change.
|
|
35
|
+
*
|
|
36
|
+
* Rebuilt when the declared variables change, and when the memory size does,
|
|
37
|
+
* because the runtime reports that as a variable of its own. A rebuilt
|
|
38
|
+
* environment is a cold one, so a variable a handler wrote into `process.env`
|
|
39
|
+
* goes with the old one, as it goes on real Lambda when the configuration
|
|
40
|
+
* changes.
|
|
41
|
+
*/
|
|
42
|
+
function updatedEnvironment(simFunction, update) {
|
|
43
|
+
const { environmentVariables } = update;
|
|
44
|
+
if (environmentVariables === undefined && update.memorySizeMb === undefined) {
|
|
45
|
+
return simFunction.environment;
|
|
46
|
+
}
|
|
47
|
+
return new SimLambdaEnvironment({
|
|
48
|
+
functionName: simFunction.name,
|
|
49
|
+
regionName: simFunction.accountRegionScope.regionName,
|
|
50
|
+
memorySizeMb: simFunction.memorySizeMb,
|
|
51
|
+
declaredVariables: environmentVariables ?? simFunction.environment.declaredVariables,
|
|
52
|
+
});
|
|
53
|
+
}
|
|
54
|
+
//# sourceMappingURL=sim-lambda-function-reconfiguration.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sim-lambda-function-reconfiguration.js","sourceRoot":"","sources":["../../../../src/service/lambda/function/sim-lambda-function-reconfiguration.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,oBAAoB,EAAE,MAAM,yCAAyC,CAAC;AA0B/E;;;;;;;;GAQG;AACH,MAAM,UAAU,4BAA4B,CAC1C,WAA8B,EAC9B,MAA4C,EAC5C,IAA6B;IAE7B,MAAM,QAAQ,GAAG;QACf,WAAW,EAAE,WAAW,CAAC,WAAW;QACpC,WAAW,EAAE,WAAW,CAAC,WAAW;KACrC,CAAC;IAEF,WAAW,CAAC,OAAO,GAAG,MAAM,CAAC,OAAO,IAAI,WAA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