@kensio/yulin 1.18.0 → 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/cloudfront/cfn/distro/sim-cfn-cf-distro-creator.d.ts +8 -2
- package/dist/service/cloudfront/cfn/distro/sim-cfn-cf-distro-creator.d.ts.map +1 -1
- package/dist/service/cloudfront/cfn/distro/sim-cfn-cf-distro-creator.js +9 -3
- package/dist/service/cloudfront/cfn/distro/sim-cfn-cf-distro-creator.js.map +1 -1
- package/dist/service/cloudfront/cfn/distro/sim-cfn-cf-distro-web-acl.d.ts +25 -0
- package/dist/service/cloudfront/cfn/distro/sim-cfn-cf-distro-web-acl.d.ts.map +1 -0
- package/dist/service/cloudfront/cfn/distro/sim-cfn-cf-distro-web-acl.js +36 -0
- package/dist/service/cloudfront/cfn/distro/sim-cfn-cf-distro-web-acl.js.map +1 -0
- package/dist/service/cloudfront/cfn/sim-cfn-cloudfront-resource-factory.d.ts.map +1 -1
- package/dist/service/cloudfront/cfn/sim-cfn-cloudfront-resource-factory.js +6 -5
- package/dist/service/cloudfront/cfn/sim-cfn-cloudfront-resource-factory.js.map +1 -1
- 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/list-objects/list-objects-authorizer.d.ts +6 -4
- package/dist/service/s3/command/list-objects/list-objects-authorizer.d.ts.map +1 -1
- package/dist/service/s3/command/list-objects/list-objects-authorizer.js +6 -4
- package/dist/service/s3/command/list-objects/list-objects-authorizer.js.map +1 -1
- package/dist/service/s3/command/list-objects/list-objects-page-builder.d.ts +4 -2
- package/dist/service/s3/command/list-objects/list-objects-page-builder.d.ts.map +1 -1
- package/dist/service/s3/command/list-objects/list-objects-page-builder.js +8 -2
- package/dist/service/s3/command/list-objects/list-objects-page-builder.js.map +1 -1
- package/dist/service/s3/command/list-objects/list-objects.command.d.ts +7 -0
- package/dist/service/s3/command/list-objects/list-objects.command.d.ts.map +1 -1
- package/dist/service/s3/command/list-objects/list-objects.handler.d.ts.map +1 -1
- package/dist/service/s3/command/list-objects/list-objects.handler.js +2 -0
- package/dist/service/s3/command/list-objects/list-objects.handler.js.map +1 -1
- package/dist/service/s3/command/list-objects-v2/list-objects-v2-page-builder.d.ts +1 -0
- package/dist/service/s3/command/list-objects-v2/list-objects-v2-page-builder.d.ts.map +1 -1
- package/dist/service/s3/command/list-objects-v2/list-objects-v2-page-builder.js +6 -1
- package/dist/service/s3/command/list-objects-v2/list-objects-v2-page-builder.js.map +1 -1
- package/dist/service/s3/command/list-objects-v2/list-objects-v2.command.d.ts +8 -2
- package/dist/service/s3/command/list-objects-v2/list-objects-v2.command.d.ts.map +1 -1
- package/dist/service/s3/command/list-objects-v2/list-objects-v2.handler.d.ts.map +1 -1
- package/dist/service/s3/command/list-objects-v2/list-objects-v2.handler.js +2 -0
- package/dist/service/s3/command/list-objects-v2/list-objects-v2.handler.js.map +1 -1
- 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/object/s3-common-prefix.d.ts +22 -0
- package/dist/service/s3/object/s3-common-prefix.d.ts.map +1 -0
- package/dist/service/s3/object/s3-common-prefix.js +16 -0
- package/dist/service/s3/object/s3-common-prefix.js.map +1 -0
- package/dist/service/s3/object/s3-object-listing.d.ts +9 -2
- package/dist/service/s3/object/s3-object-listing.d.ts.map +1 -1
- package/dist/service/s3/object/s3-object-listing.js +70 -13
- package/dist/service/s3/object/s3-object-listing.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/serve/api/sim-s3-api-input.d.ts.map +1 -1
- package/dist/service/s3/serve/api/sim-s3-api-input.js +2 -0
- package/dist/service/s3/serve/api/sim-s3-api-input.js.map +1 -1
- package/dist/service/s3/serve/api/sim-s3-api-listing.d.ts +5 -0
- package/dist/service/s3/serve/api/sim-s3-api-listing.d.ts.map +1 -1
- package/dist/service/s3/serve/api/sim-s3-api-listing.js +6 -1
- package/dist/service/s3/serve/api/sim-s3-api-listing.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/cfn/association/sim-cfn-waf-association-creator.d.ts +4 -0
- package/dist/service/wafv2/cfn/association/sim-cfn-waf-association-creator.d.ts.map +1 -1
- package/dist/service/wafv2/cfn/association/sim-cfn-waf-association-creator.js +9 -0
- package/dist/service/wafv2/cfn/association/sim-cfn-waf-association-creator.js.map +1 -1
- package/dist/service/wafv2/cfn/association/sim-cfn-waf-association-skip.d.ts +22 -0
- package/dist/service/wafv2/cfn/association/sim-cfn-waf-association-skip.d.ts.map +1 -0
- package/dist/service/wafv2/cfn/association/sim-cfn-waf-association-skip.js +28 -0
- package/dist/service/wafv2/cfn/association/sim-cfn-waf-association-skip.js.map +1 -0
- package/dist/service/wafv2/cfn/sim-cfn-waf-resource-error.d.ts +25 -6
- package/dist/service/wafv2/cfn/sim-cfn-waf-resource-error.d.ts.map +1 -1
- package/dist/service/wafv2/cfn/sim-cfn-waf-resource-error.js +32 -7
- package/dist/service/wafv2/cfn/sim-cfn-waf-resource-error.js.map +1 -1
- package/dist/service/wafv2/cfn/web-acl/sim-cfn-waf-evaluatable-rules.d.ts +16 -0
- package/dist/service/wafv2/cfn/web-acl/sim-cfn-waf-evaluatable-rules.d.ts.map +1 -0
- package/dist/service/wafv2/cfn/web-acl/sim-cfn-waf-evaluatable-rules.js +22 -0
- package/dist/service/wafv2/cfn/web-acl/sim-cfn-waf-evaluatable-rules.js.map +1 -0
- package/dist/service/wafv2/cfn/web-acl/sim-cfn-waf-web-acl-config.d.ts +13 -4
- package/dist/service/wafv2/cfn/web-acl/sim-cfn-waf-web-acl-config.d.ts.map +1 -1
- package/dist/service/wafv2/cfn/web-acl/sim-cfn-waf-web-acl-config.js +21 -11
- package/dist/service/wafv2/cfn/web-acl/sim-cfn-waf-web-acl-config.js.map +1 -1
- package/dist/service/wafv2/cfn/web-acl/sim-cfn-waf-web-acl-creator.d.ts +11 -1
- package/dist/service/wafv2/cfn/web-acl/sim-cfn-waf-web-acl-creator.d.ts.map +1 -1
- package/dist/service/wafv2/cfn/web-acl/sim-cfn-waf-web-acl-creator.js +19 -2
- package/dist/service/wafv2/cfn/web-acl/sim-cfn-waf-web-acl-creator.js.map +1 -1
- package/dist/service/wafv2/command/web-acl/sim-wafv2-unsimulated-web-acl-input.d.ts +9 -0
- package/dist/service/wafv2/command/web-acl/sim-wafv2-unsimulated-web-acl-input.d.ts.map +1 -1
- package/dist/service/wafv2/command/web-acl/sim-wafv2-unsimulated-web-acl-input.js +9 -0
- package/dist/service/wafv2/command/web-acl/sim-wafv2-unsimulated-web-acl-input.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 +12 -0
- package/dist/service/wafv2/sim-wafv2.d.ts.map +1 -1
- package/dist/service/wafv2/sim-wafv2.js +18 -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-unevaluatable-rules.d.ts +26 -0
- package/dist/service/wafv2/web-acl/sim-waf-unevaluatable-rules.d.ts.map +1 -0
- package/dist/service/wafv2/web-acl/sim-waf-unevaluatable-rules.js +34 -0
- package/dist/service/wafv2/web-acl/sim-waf-unevaluatable-rules.js.map +1 -0
- 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 @@
|
|
|
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,WAAW,CAAC,OAAO,CAAC;IAC5D,WAAW,CAAC,WAAW,GAAG,MAAM,CAAC,WAAW,IAAI,WAAW,CAAC,WAAW,CAAC;IACxE,WAAW,CAAC,WAAW,GAAG,MAAM,CAAC,WAAW,IAAI,WAAW,CAAC,WAAW,CAAC;IACxE,WAAW,CAAC,WAAW,GAAG,MAAM,CAAC,WAAW,IAAI,WAAW,CAAC,WAAW,CAAC;IACxE,WAAW,CAAC,cAAc;QACxB,MAAM,CAAC,cAAc,IAAI,WAAW,CAAC,cAAc,CAAC;IACtD,WAAW,CAAC,YAAY,GAAG,MAAM,CAAC,YAAY,IAAI,WAAW,CAAC,YAAY,CAAC;IAC3E,WAAW,CAAC,WAAW,GAAG,kBAAkB,CAAC,WAAW,EAAE,MAAM,CAAC,CAAC;IAElE,IACE,WAAW,CAAC,WAAW,KAAK,QAAQ,CAAC,WAAW;QAChD,WAAW,CAAC,WAAW,KAAK,QAAQ,CAAC,WAAW,EAChD,CAAC;QACD,OAAO,IAAI,CAAC;IACd,CAAC;IAED,OAAO,IAAI,CAAC,YAAY,CAAC;QACvB,WAAW,EAAE,WAAW,CAAC,WAAW;QACpC,WAAW,EAAE,WAAW,CAAC,WAAW;KACrC,CAAC,CAAC;AACL,CAAC;AAED;;;;;;;;GAQG;AACH,SAAS,kBAAkB,CACzB,WAA8B,EAC9B,MAA4C;IAE5C,MAAM,EAAE,oBAAoB,EAAE,GAAG,MAAM,CAAC;IAExC,IAAI,oBAAoB,KAAK,SAAS,IAAI,MAAM,CAAC,YAAY,KAAK,SAAS,EAAE,CAAC;QAC5E,OAAO,WAAW,CAAC,WAAW,CAAC;IACjC,CAAC;IAED,OAAO,IAAI,oBAAoB,CAAC;QAC9B,YAAY,EAAE,WAAW,CAAC,IAAI;QAC9B,UAAU,EAAE,WAAW,CAAC,kBAAkB,CAAC,UAAU;QACrD,YAAY,EAAE,WAAW,CAAC,YAAY;QACtC,iBAAiB,EACf,oBAAoB,IAAI,WAAW,CAAC,WAAW,CAAC,iBAAiB;KACpE,CAAC,CAAC;AACL,CAAC"}
|
|
@@ -1,55 +1,11 @@
|
|
|
1
|
-
import type { Brand } from "../../../util/brand.type.js";
|
|
2
|
-
import type { SimAwsRunAsOwner } from "../../aws/caller/sim-aws-run-as-context.js";
|
|
3
1
|
import type { SimAwsAccountRegionScope } from "../../aws/sim-aws-account-region-scope.js";
|
|
4
2
|
import { type SimLambdaFunctionArn, type SimLambdaFunctionConfiguration, type SimLambdaFunctionState } from "./sim-lambda-function-configuration.js";
|
|
5
3
|
import { type SimLambdaExecutableCode } from "./code/sim-lambda-executable-code.js";
|
|
6
4
|
import { SimLambdaEnvironment } from "./environment/sim-lambda-environment.js";
|
|
7
|
-
import type { SimLogsServiceWriter } from "../../logs/write/sim-logs-service-writer.js";
|
|
8
5
|
import { SimLambdaFunctionPolicy } from "./policy/sim-lambda-function-policy.js";
|
|
9
|
-
import type
|
|
10
|
-
import {
|
|
11
|
-
|
|
12
|
-
export type SimLambdaFunctionName = Brand<string, "SimLambdaFunctionName">;
|
|
13
|
-
export type SimLambdaFunctionMap = Map<SimLambdaFunctionName, SimLambdaFunction>;
|
|
14
|
-
interface SimLambdaFunctionProperties {
|
|
15
|
-
name: SimLambdaFunctionName | string;
|
|
16
|
-
roleArn: string;
|
|
17
|
-
readonly accountRegionScope?: SimAwsAccountRegionScope;
|
|
18
|
-
handlerFunction?: SimLambdaHandler;
|
|
19
|
-
code?: SimLambdaExecutableCode | undefined;
|
|
20
|
-
state?: SimLambdaFunctionState;
|
|
21
|
-
handlerName?: string | undefined;
|
|
22
|
-
runtimeName?: string | undefined;
|
|
23
|
-
description?: string | undefined;
|
|
24
|
-
timeoutSeconds?: number | undefined;
|
|
25
|
-
memorySizeMb?: number | undefined;
|
|
26
|
-
environment?: SimLambdaEnvironment | undefined;
|
|
27
|
-
runAsOwner?: SimAwsRunAsOwner;
|
|
28
|
-
/**
|
|
29
|
-
* The version this is. A function is `$LATEST`, and a version published
|
|
30
|
-
* from one is a copy of it under the number it was published as.
|
|
31
|
-
*/
|
|
32
|
-
version?: string | undefined;
|
|
33
|
-
/**
|
|
34
|
-
* Clock this function's invocations measure their remaining time against. A
|
|
35
|
-
* function built standalone, outside a SimAws instance, falls back to the
|
|
36
|
-
* real clock.
|
|
37
|
-
*/
|
|
38
|
-
clock?: SimClock | undefined;
|
|
39
|
-
/**
|
|
40
|
-
* Where this function's handler output is recorded. A function built
|
|
41
|
-
* standalone, outside a SimAws instance, has nowhere to record to and writes
|
|
42
|
-
* only to the host streams.
|
|
43
|
-
*/
|
|
44
|
-
logs?: SimLogsServiceWriter | undefined;
|
|
45
|
-
/**
|
|
46
|
-
* Where the HTTP requests this function's code makes to hostnames the
|
|
47
|
-
* simulation serves are answered. A function built standalone, outside a
|
|
48
|
-
* SimAws instance, has no simulation to answer them and reaches the network
|
|
49
|
-
* as any other code would.
|
|
50
|
-
*/
|
|
51
|
-
outboundHttp?: SimLambdaOutboundHttp | undefined;
|
|
52
|
-
}
|
|
6
|
+
import { type SimLambdaFunctionConfigurationUpdate } from "./sim-lambda-function-reconfiguration.js";
|
|
7
|
+
import type { SimLambdaFunctionName, SimLambdaFunctionProperties } from "./sim-lambda-function.type.js";
|
|
8
|
+
export type { SimLambdaFunctionName, SimLambdaFunctionMap, } from "./sim-lambda-function.type.js";
|
|
53
9
|
/**
|
|
54
10
|
* Simulated Lambda function resource.
|
|
55
11
|
*
|
|
@@ -61,15 +17,22 @@ interface SimLambdaFunctionProperties {
|
|
|
61
17
|
export declare class SimLambdaFunction {
|
|
62
18
|
#private;
|
|
63
19
|
readonly name: SimLambdaFunctionName;
|
|
64
|
-
readonly roleArn: string;
|
|
65
20
|
readonly accountRegionScope: SimAwsAccountRegionScope;
|
|
66
|
-
readonly handlerName: string | undefined;
|
|
67
|
-
readonly runtimeName: string | undefined;
|
|
68
|
-
readonly description: string | undefined;
|
|
69
|
-
readonly timeoutSeconds: number;
|
|
70
|
-
readonly memorySizeMb: number;
|
|
71
|
-
readonly environment: SimLambdaEnvironment;
|
|
72
21
|
readonly version: string;
|
|
22
|
+
/**
|
|
23
|
+
* The settings UpdateFunctionConfiguration changes, which is everything
|
|
24
|
+
* about the function that is neither its identity nor its code.
|
|
25
|
+
*
|
|
26
|
+
* They are read all over the simulation and written in one place, which is
|
|
27
|
+
* updateConfiguration below.
|
|
28
|
+
*/
|
|
29
|
+
roleArn: string;
|
|
30
|
+
handlerName: string | undefined;
|
|
31
|
+
runtimeName: string | undefined;
|
|
32
|
+
description: string | undefined;
|
|
33
|
+
timeoutSeconds: number;
|
|
34
|
+
memorySizeMb: number;
|
|
35
|
+
environment: SimLambdaEnvironment;
|
|
73
36
|
/**
|
|
74
37
|
* This function's resource-based policy, which says who may act on it.
|
|
75
38
|
*
|
|
@@ -80,7 +43,6 @@ export declare class SimLambdaFunction {
|
|
|
80
43
|
*/
|
|
81
44
|
readonly resourcePolicy: SimLambdaFunctionPolicy;
|
|
82
45
|
private readonly properties;
|
|
83
|
-
private readonly code;
|
|
84
46
|
private readonly runAsOwner;
|
|
85
47
|
private readonly runner;
|
|
86
48
|
private readonly clock;
|
|
@@ -107,6 +69,23 @@ export declare class SimLambdaFunction {
|
|
|
107
69
|
* is Active from the start, since the code it copied is already resolved.
|
|
108
70
|
*/
|
|
109
71
|
publishedAs(version: string, description?: string): SimLambdaFunction;
|
|
72
|
+
/**
|
|
73
|
+
* Apply a settings change, as UpdateFunctionConfiguration makes one.
|
|
74
|
+
*
|
|
75
|
+
* The function object survives, so its resource-based policy stands and the
|
|
76
|
+
* version, alias and Function URL stores go on finding it under its name. A
|
|
77
|
+
* version published beforehand keeps the settings it was published with.
|
|
78
|
+
*/
|
|
79
|
+
updateConfiguration(update: SimLambdaFunctionConfigurationUpdate): void;
|
|
80
|
+
/**
|
|
81
|
+
* Replace the code this function runs, keeping everything else about it.
|
|
82
|
+
*
|
|
83
|
+
* The function object survives the change. Its resource-based policy lives
|
|
84
|
+
* on the object, and the version, alias and Function URL stores hold it
|
|
85
|
+
* under its name. A version published beforehand keeps its own reference to
|
|
86
|
+
* the code it was published with.
|
|
87
|
+
*/
|
|
88
|
+
updateCode(code: SimLambdaExecutableCode): void;
|
|
110
89
|
/**
|
|
111
90
|
* Move this sim Lambda function to the Active state.
|
|
112
91
|
*/
|
|
@@ -135,5 +114,4 @@ export declare class SimLambdaFunction {
|
|
|
135
114
|
*/
|
|
136
115
|
private runInHostScope;
|
|
137
116
|
}
|
|
138
|
-
export {};
|
|
139
117
|
//# sourceMappingURL=sim-lambda-function.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sim-lambda-function.d.ts","sourceRoot":"","sources":["../../../../src/service/lambda/function/sim-lambda-function.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"sim-lambda-function.d.ts","sourceRoot":"","sources":["../../../../src/service/lambda/function/sim-lambda-function.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,2CAA2C,CAAC;AAC1F,OAAO,EAIL,KAAK,oBAAoB,EAEzB,KAAK,8BAA8B,EACnC,KAAK,sBAAsB,EAC5B,MAAM,wCAAwC,CAAC;AAChD,OAAO,EACL,KAAK,uBAAuB,EAE7B,MAAM,sCAAsC,CAAC;AAC9C,OAAO,EAAE,oBAAoB,EAAE,MAAM,yCAAyC,CAAC;AAE/E,OAAO,EAAE,uBAAuB,EAAE,MAAM,wCAAwC,CAAC;AAOjF,OAAO,EAEL,KAAK,oCAAoC,EAC1C,MAAM,0CAA0C,CAAC;AAClD,OAAO,KAAK,EACV,qBAAqB,EACrB,2BAA2B,EAC5B,MAAM,+BAA+B,CAAC;AAEvC,YAAY,EACV,qBAAqB,EACrB,oBAAoB,GACrB,MAAM,+BAA+B,CAAC;AAEvC;;;;;;;GAOG;AACH,qBAAa,iBAAiB;;IAC5B,SAAgB,IAAI,EAAE,qBAAqB,CAAC;IAC5C,SAAgB,kBAAkB,EAAE,wBAAwB,CAAC;IAC7D,SAAgB,OAAO,EAAE,MAAM,CAAC;IAEhC;;;;;;OAMG;IACI,OAAO,EAAE,MAAM,CAAC;IAChB,WAAW,EAAE,MAAM,GAAG,SAAS,CAAC;IAChC,WAAW,EAAE,MAAM,GAAG,SAAS,CAAC;IAChC,WAAW,EAAE,MAAM,GAAG,SAAS,CAAC;IAChC,cAAc,EAAE,MAAM,CAAC;IACvB,YAAY,EAAE,MAAM,CAAC;IACrB,WAAW,EAAE,oBAAoB,CAAC;IACzC;;;;;;;OAOG;IACH,SAAgB,cAAc,0BAAiC;IAI/D,OAAO,CAAC,QAAQ,CAAC,UAAU,CAA8B;IACzD,OAAO,CAAC,QAAQ,CAAC,UAAU,CAAmB;IAC9C,OAAO,CAAC,QAAQ,CAAC,MAAM,CAAgC;IACvD,OAAO,CAAC,QAAQ,CAAC,KAAK,CAAW;IACjC,OAAO,CAAC,QAAQ,CAAC,OAAO,CAA2B;IACnD,OAAO,CAAC,QAAQ,CAAC,YAAY,CAAoC;IAEjE,YAAY,UAAU,EAAE,2BAA2B,EA+ClD;IAED;;OAEG;IACH,IAAI,YAAY,IAAI,MAAM,CAEzB;IAED;;OAEG;IACH,IAAI,KAAK,IAAI,sBAAsB,CAElC;IAED;;;OAGG;IACH,IAAI,GAAG,IAAI,oBAAoB,CAM9B;IAED;;;;;OAKG;IACH,WAAW,CAAC,OAAO,EAAE,MAAM,EAAE,WAAW,CAAC,EAAE,MAAM,GAAG,iBAAiB,CAepE;IAED;;;;;;OAMG;IACH,mBAAmB,CAAC,MAAM,EAAE,oCAAoC,GAAG,IAAI,CAEtE;IAED;;;;;;;OAOG;IACH,UAAU,CAAC,IAAI,EAAE,uBAAuB,GAAG,IAAI,CAE9C;IAED;;OAEG;IACH,QAAQ,IAAI,OAAO,CAAC,IAAI,CAAC,CAGxB;IAED;;OAEG;IACH,aAAa,IAAI,8BAA8B,CAc9C;IAED;;;;;;;;;;;OAWG;IACG,MAAM,CAAC,KAAK,EAAE,OAAO,GAAG,OAAO,CAAC,OAAO,CAAC,CAiC7C;IAED;;;;OAIG;YACW,cAAc;CAU7B"}
|
|
@@ -9,7 +9,8 @@ import { SimLambdaHandlerRunner } from "./invoke/sim-lambda-handler-runner.js";
|
|
|
9
9
|
import { SimLambdaInvokeContextBuilder } from "./invoke/sim-lambda-invoke-context-builder.js";
|
|
10
10
|
import { runSimLambdaInHostScope } from "./invoke/sim-lambda-host-scope.js";
|
|
11
11
|
import { SimRealClock } from "../../../util/clock/sim-clock.js";
|
|
12
|
-
import { defaultLambdaHandler
|
|
12
|
+
import { defaultLambdaHandler } from "./sim-lambda-handler.type.js";
|
|
13
|
+
import { reconfigureSimLambdaFunction, } from "./sim-lambda-function-reconfiguration.js";
|
|
13
14
|
/**
|
|
14
15
|
* Simulated Lambda function resource.
|
|
15
16
|
*
|
|
@@ -20,15 +21,22 @@ import { defaultLambdaHandler, } from "./sim-lambda-handler.type.js";
|
|
|
20
21
|
*/
|
|
21
22
|
export class SimLambdaFunction {
|
|
22
23
|
name;
|
|
23
|
-
roleArn;
|
|
24
24
|
accountRegionScope;
|
|
25
|
+
version;
|
|
26
|
+
/**
|
|
27
|
+
* The settings UpdateFunctionConfiguration changes, which is everything
|
|
28
|
+
* about the function that is neither its identity nor its code.
|
|
29
|
+
*
|
|
30
|
+
* They are read all over the simulation and written in one place, which is
|
|
31
|
+
* updateConfiguration below.
|
|
32
|
+
*/
|
|
33
|
+
roleArn;
|
|
25
34
|
handlerName;
|
|
26
35
|
runtimeName;
|
|
27
36
|
description;
|
|
28
37
|
timeoutSeconds;
|
|
29
38
|
memorySizeMb;
|
|
30
39
|
environment;
|
|
31
|
-
version;
|
|
32
40
|
/**
|
|
33
41
|
* This function's resource-based policy, which says who may act on it.
|
|
34
42
|
*
|
|
@@ -39,8 +47,8 @@ export class SimLambdaFunction {
|
|
|
39
47
|
*/
|
|
40
48
|
resourcePolicy = new SimLambdaFunctionPolicy();
|
|
41
49
|
#state;
|
|
50
|
+
#code;
|
|
42
51
|
properties;
|
|
43
|
-
code;
|
|
44
52
|
runAsOwner;
|
|
45
53
|
runner = new SimLambdaHandlerRunner();
|
|
46
54
|
clock;
|
|
@@ -54,7 +62,7 @@ export class SimLambdaFunction {
|
|
|
54
62
|
this.name = name;
|
|
55
63
|
this.roleArn = roleArn;
|
|
56
64
|
this.accountRegionScope = accountRegionScope;
|
|
57
|
-
this
|
|
65
|
+
this.#code = code ?? new SimLambdaHandlerReferenceCode(handlerFunction);
|
|
58
66
|
this.#state = state;
|
|
59
67
|
this.handlerName = handlerName;
|
|
60
68
|
this.runtimeName = runtimeName;
|
|
@@ -104,7 +112,12 @@ export class SimLambdaFunction {
|
|
|
104
112
|
publishedAs(version, description) {
|
|
105
113
|
return new SimLambdaFunction({
|
|
106
114
|
...this.properties,
|
|
107
|
-
|
|
115
|
+
roleArn: this.roleArn,
|
|
116
|
+
handlerName: this.handlerName,
|
|
117
|
+
runtimeName: this.runtimeName,
|
|
118
|
+
timeoutSeconds: this.timeoutSeconds,
|
|
119
|
+
memorySizeMb: this.memorySizeMb,
|
|
120
|
+
code: this.#code,
|
|
108
121
|
environment: this.environment,
|
|
109
122
|
runAsOwner: this.runAsOwner,
|
|
110
123
|
state: "Active",
|
|
@@ -112,6 +125,27 @@ export class SimLambdaFunction {
|
|
|
112
125
|
version,
|
|
113
126
|
});
|
|
114
127
|
}
|
|
128
|
+
/**
|
|
129
|
+
* Apply a settings change, as UpdateFunctionConfiguration makes one.
|
|
130
|
+
*
|
|
131
|
+
* The function object survives, so its resource-based policy stands and the
|
|
132
|
+
* version, alias and Function URL stores go on finding it under its name. A
|
|
133
|
+
* version published beforehand keeps the settings it was published with.
|
|
134
|
+
*/
|
|
135
|
+
updateConfiguration(update) {
|
|
136
|
+
this.#code = reconfigureSimLambdaFunction(this, update, this.#code);
|
|
137
|
+
}
|
|
138
|
+
/**
|
|
139
|
+
* Replace the code this function runs, keeping everything else about it.
|
|
140
|
+
*
|
|
141
|
+
* The function object survives the change. Its resource-based policy lives
|
|
142
|
+
* on the object, and the version, alias and Function URL stores hold it
|
|
143
|
+
* under its name. A version published beforehand keeps its own reference to
|
|
144
|
+
* the code it was published with.
|
|
145
|
+
*/
|
|
146
|
+
updateCode(code) {
|
|
147
|
+
this.#code = code;
|
|
148
|
+
}
|
|
115
149
|
/**
|
|
116
150
|
* Move this sim Lambda function to the Active state.
|
|
117
151
|
*/
|
|
@@ -160,8 +194,8 @@ export class SimLambdaFunction {
|
|
|
160
194
|
logGroupName: this.logging.logGroupName,
|
|
161
195
|
logStreamName: this.logging.logStreamName(),
|
|
162
196
|
});
|
|
163
|
-
this.logging.recordFrom(this
|
|
164
|
-
return await simAwsRunAsContext.run(this.runAsOwner, { kind: "arn", arn: this.roleArn }, async () => await this.environment.runWith(async () => await this.runInHostScope(async () => await this.logging.around(async () => await this.runner.run(this
|
|
197
|
+
this.logging.recordFrom(this.#code);
|
|
198
|
+
return await simAwsRunAsContext.run(this.runAsOwner, { kind: "arn", arn: this.roleArn }, async () => await this.environment.runWith(async () => await this.runInHostScope(async () => await this.logging.around(async () => await this.runner.run(this.#code.handlerFunction(), event, contextBuilder)))));
|
|
165
199
|
}
|
|
166
200
|
/**
|
|
167
201
|
* Run an invocation with the process globals host-scope code reads bridged
|
|
@@ -169,7 +203,7 @@ export class SimLambdaFunction {
|
|
|
169
203
|
* and the console and streams it prints through.
|
|
170
204
|
*/
|
|
171
205
|
async runInHostScope(run) {
|
|
172
|
-
if (!this
|
|
206
|
+
if (!this.#code.runsInHostScope) {
|
|
173
207
|
return await run();
|
|
174
208
|
}
|
|
175
209
|
const { clock, outboundHttp } = this;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sim-lambda-function.js","sourceRoot":"","sources":["../../../../src/service/lambda/function/sim-lambda-function.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"sim-lambda-function.js","sourceRoot":"","sources":["../../../../src/service/lambda/function/sim-lambda-function.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,kBAAkB,EAAE,MAAM,4CAA4C,CAAC;AAChF,OAAO,EAAE,+BAA+B,EAAE,MAAM,mDAAmD,CAAC;AAEpG,OAAO,EACL,iCAAiC,EACjC,yBAAyB,EACzB,kCAAkC,EAElC,oBAAoB,GAGrB,MAAM,wCAAwC,CAAC;AAChD,OAAO,EAEL,6BAA6B,GAC9B,MAAM,sCAAsC,CAAC;AAC9C,OAAO,EAAE,oBAAoB,EAAE,MAAM,yCAAyC,CAAC;AAC/E,OAAO,EAAE,wBAAwB,EAAE,MAAM,0CAA0C,CAAC;AACpF,OAAO,EAAE,uBAAuB,EAAE,MAAM,wCAAwC,CAAC;AACjF,OAAO,EAAE,sBAAsB,EAAE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AAC,KAAK,CAAC,eAAe,EAAE,CAAC;YAChC,OAAO,MAAM,GAAG,EAAE,CAAC;QACrB,CAAC;QAED,MAAM,EAAE,KAAK,EAAE,YAAY,EAAE,GAAG,IAAI,CAAC;QACrC,MAAM,MAAM,GAAG,IAAI,CAAC,OAAO,CAAC,UAAU,EAAE,CAAC;QAEzC,OAAO,MAAM,uBAAuB,CAAC,EAAE,KAAK,EAAE,YAAY,EAAE,MAAM,EAAE,EAAE,GAAG,CAAC,CAAC;IAC7E,CAAC;CACF"}
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
import type { Brand } from "../../../util/brand.type.js";
|
|
2
|
+
import type { SimClock } from "../../../util/clock/sim-clock.js";
|
|
3
|
+
import type { SimAwsRunAsOwner } from "../../aws/caller/sim-aws-run-as-context.js";
|
|
4
|
+
import type { SimAwsAccountRegionScope } from "../../aws/sim-aws-account-region-scope.js";
|
|
5
|
+
import type { SimLogsServiceWriter } from "../../logs/write/sim-logs-service-writer.js";
|
|
6
|
+
import type { SimLambdaExecutableCode } from "./code/sim-lambda-executable-code.js";
|
|
7
|
+
import type { SimLambdaEnvironment } from "./environment/sim-lambda-environment.js";
|
|
8
|
+
import type { SimLambdaOutboundHttp } from "./outbound/sim-lambda-outbound-http.js";
|
|
9
|
+
import type { SimLambdaFunctionState } from "./sim-lambda-function-configuration.js";
|
|
10
|
+
import type { SimLambdaHandler } from "./sim-lambda-handler.type.js";
|
|
11
|
+
import type { SimLambdaFunction } from "./sim-lambda-function.js";
|
|
12
|
+
export type SimLambdaFunctionName = Brand<string, "SimLambdaFunctionName">;
|
|
13
|
+
export type SimLambdaFunctionMap = Map<SimLambdaFunctionName, SimLambdaFunction>;
|
|
14
|
+
export interface SimLambdaFunctionProperties {
|
|
15
|
+
name: SimLambdaFunctionName | string;
|
|
16
|
+
roleArn: string;
|
|
17
|
+
readonly accountRegionScope?: SimAwsAccountRegionScope;
|
|
18
|
+
handlerFunction?: SimLambdaHandler;
|
|
19
|
+
code?: SimLambdaExecutableCode | undefined;
|
|
20
|
+
state?: SimLambdaFunctionState;
|
|
21
|
+
handlerName?: string | undefined;
|
|
22
|
+
runtimeName?: string | undefined;
|
|
23
|
+
description?: string | undefined;
|
|
24
|
+
timeoutSeconds?: number | undefined;
|
|
25
|
+
memorySizeMb?: number | undefined;
|
|
26
|
+
environment?: SimLambdaEnvironment | undefined;
|
|
27
|
+
runAsOwner?: SimAwsRunAsOwner;
|
|
28
|
+
/**
|
|
29
|
+
* The version this is. A function is `$LATEST`, and a version published
|
|
30
|
+
* from one is a copy of it under the number it was published as.
|
|
31
|
+
*/
|
|
32
|
+
version?: string | undefined;
|
|
33
|
+
/**
|
|
34
|
+
* Clock this function's invocations measure their remaining time against. A
|
|
35
|
+
* function built standalone, outside a SimAws instance, falls back to the
|
|
36
|
+
* real clock.
|
|
37
|
+
*/
|
|
38
|
+
clock?: SimClock | undefined;
|
|
39
|
+
/**
|
|
40
|
+
* Where this function's handler output is recorded. A function built
|
|
41
|
+
* standalone, outside a SimAws instance, has nowhere to record to and writes
|
|
42
|
+
* only to the host streams.
|
|
43
|
+
*/
|
|
44
|
+
logs?: SimLogsServiceWriter | undefined;
|
|
45
|
+
/**
|
|
46
|
+
* Where the HTTP requests this function's code makes to hostnames the
|
|
47
|
+
* simulation serves are answered. A function built standalone, outside a
|
|
48
|
+
* SimAws instance, has no simulation to answer them and reaches the network
|
|
49
|
+
* as any other code would.
|
|
50
|
+
*/
|
|
51
|
+
outboundHttp?: SimLambdaOutboundHttp | undefined;
|
|
52
|
+
}
|
|
53
|
+
//# sourceMappingURL=sim-lambda-function.type.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sim-lambda-function.type.d.ts","sourceRoot":"","sources":["../../../../src/service/lambda/function/sim-lambda-function.type.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,6BAA6B,CAAC;AACzD,OAAO,KAAK,EAAE,QAAQ,EAAE,MA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C;IAClC,WAAW,CAAC,EAAE,oBAAoB,GAAG,SAAS,CAAC;IAC/C,UAAU,CAAC,EAAE,gBAAgB,CAAC;IAC9B;;;OAGG;IACH,OAAO,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC7B;;;;OAIG;IACH,KAAK,CAAC,EAAE,QAAQ,GAAG,SAAS,CAAC;IAC7B;;;;OAIG;IACH,IAAI,CAAC,EAAE,oBAAoB,GAAG,SAAS,CAAC;IACxC;;;;;OAKG;IACH,YAAY,CAAC,EAAE,qBAAqB,GAAG,SAAS,CAAC;CAClD"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sim-lambda-function.type.js","sourceRoot":"","sources":["../../../../src/service/lambda/function/sim-lambda-function.type.ts"],"names":[],"mappings":""}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sim-lambda-sdk-command-router.d.ts","sourceRoot":"","sources":["../../../../src/service/lambda/sdk/sim-lambda-sdk-command-router.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,KAAK,kBAAkB,EACvB,KAAK,mBAAmB,EACzB,MAAM,uBAAuB,CAAC;
|
|
1
|
+
{"version":3,"file":"sim-lambda-sdk-command-router.d.ts","sourceRoot":"","sources":["../../../../src/service/lambda/sdk/sim-lambda-sdk-command-router.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,KAAK,kBAAkB,EACvB,KAAK,mBAAmB,EACzB,MAAM,uBAAuB,CAAC;AA6B/B,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAElD;;GAEG;AACH,qBAAa,yBAA0B,YAAW,mBAAmB;IACnE,OAAO,CAAC,QAAQ,CAAC,MAAM,CAA0C;IAEjE,YAAY,SAAS,EAAE,SAAS,EAmN/B;IAED;;OAEG;IACH,qBAAqB,IAAI,SAAS,MAAM,EAAE,CAEzC;IAED;;OAEG;IACH,KAAK,CAAC,WAAW,EAAE,MAAM,GAAG,kBAAkB,GAAG,SAAS,CAEzD;CACF"}
|
|
@@ -14,6 +14,18 @@ export class SimLambdaSdkCommandRouter {
|
|
|
14
14
|
"GetFunctionCommand",
|
|
15
15
|
async (command, context) => await simLambda.getFunction(command, simSdkCallerOptions(context)),
|
|
16
16
|
],
|
|
17
|
+
[
|
|
18
|
+
"UpdateFunctionCodeCommand",
|
|
19
|
+
async (command, context) => await simLambda.updateFunctionCode(command, simSdkCallerOptions(context)),
|
|
20
|
+
],
|
|
21
|
+
[
|
|
22
|
+
"UpdateFunctionConfigurationCommand",
|
|
23
|
+
async (command, context) => await simLambda.updateFunctionConfiguration(command, simSdkCallerOptions(context)),
|
|
24
|
+
],
|
|
25
|
+
[
|
|
26
|
+
"ListFunctionsCommand",
|
|
27
|
+
async (command, context) => await simLambda.listFunctions(command, simSdkCallerOptions(context)),
|
|
28
|
+
],
|
|
17
29
|
[
|
|
18
30
|
"InvokeCommand",
|
|
19
31
|
async (command, context) => await simLambda.invoke(command, simSdkCallerOptions(context)),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sim-lambda-sdk-command-router.js","sourceRoot":"","sources":["../../../../src/service/lambda/sdk/sim-lambda-sdk-command-router.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,mBAAmB,GAGpB,MAAM,uBAAuB,CAAC;
|
|
1
|
+
{"version":3,"file":"sim-lambda-sdk-command-router.js","sourceRoot":"","sources":["../../../../src/service/lambda/sdk/sim-lambda-sdk-command-router.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,mBAAmB,GAGpB,MAAM,uBAAuB,CAAC;AA+B/B;;GAEG;AACH,MAAM,OAAO,yBAAyB;IACnB,MAAM,CAA0C;IAEjE,YAAY,SAAoB;QAC9B,IAAI,CAAC,MAAM,GAAG,IAAI,GAAG,CAA6B;YAChD;gBACE,uBAAuB;gBACvB,KAAK,EAAE,OAAO,EAAE,OAAO,EAAoB,EAAE,CAC3C,MAAM,SAAS,CAAC,cAAc,CAC5B,OAAmC,EACnC,mBAAmB,C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gB,CAC9B,OAAqC,EACrC,mBAAmB,CAAC,OAAO,CAAC,CAC7B;aACJ;YACD;gBACE,kBAAkB;gBAClB,KAAK,EAAE,OAAO,EAAE,OAAO,EAAoB,EAAE,CAC3C,MAAM,SAAS,CAAC,SAAS,CACvB,OAA8B,EAC9B,mBAAmB,CAAC,OAAO,CAAC,CAC7B;aACJ;YACD;gBACE,+BAA+B;gBAC/B,KAAK,EAAE,OAAO,EAAE,OAAO,EAAoB,EAAE,CAC3C,MAAM,SAAS,CAAC,sBAAsB,CACpC,OAA2C,EAC3C,mBAAmB,CAAC,OAAO,CAAC,CAC7B;aACJ;SACF,CAAC,CAAC;IACL,CAAC;IAED;;OAEG;IACH,qBAAqB;QACnB,OAAO,IAAI,CAAC,MAAM,CAAC,IAAI,EAAE,CAAC,OAAO,EAAE,CAAC;IACtC,CAAC;IAED;;OAEG;IACH,KAAK,CAAC,WAAmB;QACvB,OAAO,IAAI,CAAC,MAAM,CAAC,GAAG,CAAC,WAAW,CAAC,CAAC;IACtC,CAAC;CACF"}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import type { SimRestJsonInput } from "../../../../serve/http/api/rest-json/sim-rest-json-input.js";
|
|
2
|
+
/**
|
|
3
|
+
* Read a CreateFunction request, whose members are all in the body.
|
|
4
|
+
*
|
|
5
|
+
* The one member JSON cannot carry as it is is the code, which travels base64
|
|
6
|
+
* encoded and reaches the simulation as the bytes of a zip.
|
|
7
|
+
*/
|
|
8
|
+
export declare function createFunctionInput(input: SimRestJsonInput): Record<string, unknown>;
|
|
9
|
+
/**
|
|
10
|
+
* Read an UpdateFunctionCode request, which names the function in the path and
|
|
11
|
+
* carries the code members in the body rather than under a `Code` member.
|
|
12
|
+
*/
|
|
13
|
+
export declare function updateFunctionCodeInput(input: SimRestJsonInput): Record<string, unknown>;
|
|
14
|
+
/**
|
|
15
|
+
* Read an UpdateFunctionConfiguration request, which names the function in the
|
|
16
|
+
* path and states the settings to change in the body.
|
|
17
|
+
*/
|
|
18
|
+
export declare function updateFunctionConfigurationInput(input: SimRestJsonInput): Record<string, unknown>;
|
|
19
|
+
/**
|
|
20
|
+
* Read an Invoke request, which states its members in three different places.
|
|
21
|
+
*
|
|
22
|
+
* The body is the payload itself rather than a JSON object holding it, so it
|
|
23
|
+
* is passed on as the bytes that arrived. That is what lets `aws lambda
|
|
24
|
+
* invoke --payload` send a document the handler receives unchanged.
|
|
25
|
+
*/
|
|
26
|
+
export declare function invokeInput(input: SimRestJsonInput): Record<string, unknown>;
|
|
27
|
+
//# sourceMappingURL=sim-lambda-api-function-input.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sim-lambda-api-function-input.d.ts","sourceRoot":"","sources":["../../../../../src/service/lambda/serve/api/sim-lambda-api-function-input.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,6DAA6D,CAAC;AAapG;;;;;GAKG;AACH,wBAAgB,mBAAmB,CACjC,KAAK,EAAE,gBAAgB,GACtB,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAOzB;AAED;;;GAGG;AACH,wBAAgB,uBAAuB,CACrC,KAAK,EAAE,gBAAgB,GACtB,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAKzB;AAED;;;GAGG;AACH,wBAAgB,gCAAgC,CAC9C,KAAK,EAAE,gBAAgB,GACtB,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAEzB;AAUD;;;;;;GAMG;AACH,wBAAgB,WAAW,CAAC,KAAK,EAAE,gBAAgB,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAO5E"}
|