@kensio/yulin 1.14.1 → 1.15.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -0
- package/dist/sdk/router/resolve-sim-sdk-command-router.d.ts.map +1 -1
- package/dist/sdk/router/resolve-sim-sdk-command-router.js +4 -0
- package/dist/sdk/router/resolve-sim-sdk-command-router.js.map +1 -1
- package/dist/service/aws/factory/sim-aws-account-region-service-builder.d.ts +3 -0
- package/dist/service/aws/factory/sim-aws-account-region-service-builder.d.ts.map +1 -1
- package/dist/service/aws/factory/sim-aws-account-region-service-builder.js +9 -0
- package/dist/service/aws/factory/sim-aws-account-region-service-builder.js.map +1 -1
- package/dist/service/aws/factory/sim-aws-lambda-collaborators.d.ts +6 -0
- package/dist/service/aws/factory/sim-aws-lambda-collaborators.d.ts.map +1 -1
- package/dist/service/aws/factory/sim-aws-lambda-collaborators.js +5 -0
- package/dist/service/aws/factory/sim-aws-lambda-collaborators.js.map +1 -1
- package/dist/service/aws/factory/sim-aws-logs-collaborators.d.ts +23 -0
- package/dist/service/aws/factory/sim-aws-logs-collaborators.d.ts.map +1 -0
- package/dist/service/aws/factory/sim-aws-logs-collaborators.js +21 -0
- package/dist/service/aws/factory/sim-aws-logs-collaborators.js.map +1 -0
- package/dist/service/aws/factory/sim-aws-service-factory.d.ts +3 -0
- package/dist/service/aws/factory/sim-aws-service-factory.d.ts.map +1 -1
- package/dist/service/aws/factory/sim-aws-service-factory.js +4 -0
- package/dist/service/aws/factory/sim-aws-service-factory.js.map +1 -1
- package/dist/service/aws/sim-aws-account-region-scope.d.ts +3 -0
- package/dist/service/aws/sim-aws-account-region-scope.d.ts.map +1 -1
- package/dist/service/aws/sim-aws-account-region-scope.js +4 -0
- package/dist/service/aws/sim-aws-account-region-scope.js.map +1 -1
- package/dist/service/aws/sim-aws-service-accessors.d.ts +3 -0
- package/dist/service/aws/sim-aws-service-accessors.d.ts.map +1 -1
- package/dist/service/aws/sim-aws-service-accessors.js +4 -0
- package/dist/service/aws/sim-aws-service-accessors.js.map +1 -1
- package/dist/service/cloudformation/cdk/provider/sim-cdk-provider-scaffolding.d.ts +8 -12
- package/dist/service/cloudformation/cdk/provider/sim-cdk-provider-scaffolding.d.ts.map +1 -1
- package/dist/service/cloudformation/cdk/provider/sim-cdk-provider-scaffolding.js +9 -28
- package/dist/service/cloudformation/cdk/provider/sim-cdk-provider-scaffolding.js.map +1 -1
- package/dist/service/cloudformation/resource/cfn/logs/sim-logs-cfn-value-adapter.d.ts +7 -0
- package/dist/service/cloudformation/resource/cfn/logs/sim-logs-cfn-value-adapter.d.ts.map +1 -0
- package/dist/service/cloudformation/resource/cfn/logs/sim-logs-cfn-value-adapter.js +14 -0
- package/dist/service/cloudformation/resource/cfn/logs/sim-logs-cfn-value-adapter.js.map +1 -0
- package/dist/service/cloudformation/resource/cfn/logs/sim-logs-log-group-cfn.d.ts +29 -0
- package/dist/service/cloudformation/resource/cfn/logs/sim-logs-log-group-cfn.d.ts.map +1 -0
- package/dist/service/cloudformation/resource/cfn/logs/sim-logs-log-group-cfn.js +31 -0
- package/dist/service/cloudformation/resource/cfn/logs/sim-logs-log-group-cfn.js.map +1 -0
- package/dist/service/cloudformation/resource/cfn/sim-cfn-resource-value-adapter.d.ts.map +1 -1
- package/dist/service/cloudformation/resource/cfn/sim-cfn-resource-value-adapter.js +10 -41
- package/dist/service/cloudformation/resource/cfn/sim-cfn-resource-value-adapter.js.map +1 -1
- package/dist/service/cloudformation/resource/cfn/sim-cfn-service-value-adapters.d.ts +12 -0
- package/dist/service/cloudformation/resource/cfn/sim-cfn-service-value-adapters.d.ts.map +1 -0
- package/dist/service/cloudformation/resource/cfn/sim-cfn-service-value-adapters.js +52 -0
- package/dist/service/cloudformation/resource/cfn/sim-cfn-service-value-adapters.js.map +1 -0
- package/dist/service/cloudformation/resource/resolve/service/sim-cfn-service-factories.d.ts.map +1 -1
- package/dist/service/cloudformation/resource/resolve/service/sim-cfn-service-factories.js +4 -0
- package/dist/service/cloudformation/resource/resolve/service/sim-cfn-service-factories.js.map +1 -1
- package/dist/service/cloudfront/origin/custom/sim-cf-function-url-origin-fragments.d.ts +15 -9
- package/dist/service/cloudfront/origin/custom/sim-cf-function-url-origin-fragments.d.ts.map +1 -1
- package/dist/service/cloudfront/origin/custom/sim-cf-function-url-origin-fragments.js +24 -13
- package/dist/service/cloudfront/origin/custom/sim-cf-function-url-origin-fragments.js.map +1 -1
- package/dist/service/cloudfront/origin/custom/sim-cf-function-url-origin-template.factory.d.ts.map +1 -1
- package/dist/service/cloudfront/origin/custom/sim-cf-function-url-origin-template.factory.js +1 -0
- package/dist/service/cloudfront/origin/custom/sim-cf-function-url-origin-template.factory.js.map +1 -1
- package/dist/service/cognito/cfn/user-pool/sim-cfn-cognito-attribute-constraints.d.ts +33 -0
- package/dist/service/cognito/cfn/user-pool/sim-cfn-cognito-attribute-constraints.d.ts.map +1 -0
- package/dist/service/cognito/cfn/user-pool/sim-cfn-cognito-attribute-constraints.js +56 -0
- package/dist/service/cognito/cfn/user-pool/sim-cfn-cognito-attribute-constraints.js.map +1 -0
- package/dist/service/cognito/cfn/user-pool/sim-cfn-cognito-schema-attribute.d.ts +31 -0
- package/dist/service/cognito/cfn/user-pool/sim-cfn-cognito-schema-attribute.d.ts.map +1 -0
- package/dist/service/cognito/cfn/user-pool/sim-cfn-cognito-schema-attribute.js +59 -0
- package/dist/service/cognito/cfn/user-pool/sim-cfn-cognito-schema-attribute.js.map +1 -0
- package/dist/service/cognito/cfn/user-pool/sim-cfn-cognito-user-pool-creator.d.ts +9 -0
- package/dist/service/cognito/cfn/user-pool/sim-cfn-cognito-user-pool-creator.d.ts.map +1 -1
- package/dist/service/cognito/cfn/user-pool/sim-cfn-cognito-user-pool-creator.js +16 -0
- package/dist/service/cognito/cfn/user-pool/sim-cfn-cognito-user-pool-creator.js.map +1 -1
- package/dist/service/cognito/cfn/user-pool/sim-cfn-cognito-user-pool-mfa.d.ts +45 -0
- package/dist/service/cognito/cfn/user-pool/sim-cfn-cognito-user-pool-mfa.d.ts.map +1 -0
- package/dist/service/cognito/cfn/user-pool/sim-cfn-cognito-user-pool-mfa.js +73 -0
- package/dist/service/cognito/cfn/user-pool/sim-cfn-cognito-user-pool-mfa.js.map +1 -0
- package/dist/service/cognito/cfn/user-pool/sim-cfn-cognito-user-pool-properties.d.ts +7 -0
- package/dist/service/cognito/cfn/user-pool/sim-cfn-cognito-user-pool-properties.d.ts.map +1 -1
- package/dist/service/cognito/cfn/user-pool/sim-cfn-cognito-user-pool-properties.js +33 -5
- package/dist/service/cognito/cfn/user-pool/sim-cfn-cognito-user-pool-properties.js.map +1 -1
- package/dist/service/cognito/cfn/user-pool/sim-cfn-cognito-user-pool-schema.d.ts +27 -0
- package/dist/service/cognito/cfn/user-pool/sim-cfn-cognito-user-pool-schema.d.ts.map +1 -0
- package/dist/service/cognito/cfn/user-pool/sim-cfn-cognito-user-pool-schema.js +31 -0
- package/dist/service/cognito/cfn/user-pool/sim-cfn-cognito-user-pool-schema.js.map +1 -0
- package/dist/service/cognito/command/auth/sim-cognito-admin-respond-to-challenge.d.ts +6 -5
- package/dist/service/cognito/command/auth/sim-cognito-admin-respond-to-challenge.d.ts.map +1 -1
- package/dist/service/cognito/command/auth/sim-cognito-admin-respond-to-challenge.js +6 -7
- package/dist/service/cognito/command/auth/sim-cognito-admin-respond-to-challenge.js.map +1 -1
- package/dist/service/cognito/command/auth/sim-cognito-auth-challenge.d.ts +5 -4
- package/dist/service/cognito/command/auth/sim-cognito-auth-challenge.d.ts.map +1 -1
- package/dist/service/cognito/command/auth/sim-cognito-auth-challenge.js +23 -7
- package/dist/service/cognito/command/auth/sim-cognito-auth-challenge.js.map +1 -1
- package/dist/service/cognito/command/auth/sim-cognito-auth-commands.d.ts +7 -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 +23 -9
- package/dist/service/cognito/command/auth/sim-cognito-auth-commands.js.map +1 -1
- package/dist/service/cognito/command/auth/sim-cognito-challenge-responses.d.ts +26 -0
- package/dist/service/cognito/command/auth/sim-cognito-challenge-responses.d.ts.map +1 -0
- package/dist/service/cognito/command/auth/sim-cognito-challenge-responses.js +28 -0
- package/dist/service/cognito/command/auth/sim-cognito-challenge-responses.js.map +1 -0
- package/dist/service/cognito/command/auth/sim-cognito-mfa-challenge.d.ts +59 -0
- package/dist/service/cognito/command/auth/sim-cognito-mfa-challenge.d.ts.map +1 -0
- package/dist/service/cognito/command/auth/sim-cognito-mfa-challenge.js +88 -0
- package/dist/service/cognito/command/auth/sim-cognito-mfa-challenge.js.map +1 -0
- package/dist/service/cognito/command/auth/sim-cognito-mfa-code-check.d.ts +31 -0
- package/dist/service/cognito/command/auth/sim-cognito-mfa-code-check.d.ts.map +1 -0
- package/dist/service/cognito/command/auth/sim-cognito-mfa-code-check.js +33 -0
- package/dist/service/cognito/command/auth/sim-cognito-mfa-code-check.js.map +1 -0
- package/dist/service/cognito/command/auth/sim-cognito-mfa-code.d.ts +18 -0
- package/dist/service/cognito/command/auth/sim-cognito-mfa-code.d.ts.map +1 -0
- package/dist/service/cognito/command/auth/sim-cognito-mfa-code.js +35 -0
- package/dist/service/cognito/command/auth/sim-cognito-mfa-code.js.map +1 -0
- package/dist/service/cognito/command/auth/sim-cognito-mfa-factor-choice.d.ts +12 -0
- package/dist/service/cognito/command/auth/sim-cognito-mfa-factor-choice.d.ts.map +1 -0
- package/dist/service/cognito/command/auth/sim-cognito-mfa-factor-choice.js +46 -0
- package/dist/service/cognito/command/auth/sim-cognito-mfa-factor-choice.js.map +1 -0
- package/dist/service/cognito/command/auth/sim-cognito-mfa-response.d.ts +49 -0
- package/dist/service/cognito/command/auth/sim-cognito-mfa-response.d.ts.map +1 -0
- package/dist/service/cognito/command/auth/sim-cognito-mfa-response.js +63 -0
- package/dist/service/cognito/command/auth/sim-cognito-mfa-response.js.map +1 -0
- package/dist/service/cognito/command/auth/sim-cognito-new-password-response.d.ts +3 -7
- package/dist/service/cognito/command/auth/sim-cognito-new-password-response.d.ts.map +1 -1
- package/dist/service/cognito/command/auth/sim-cognito-new-password-response.js +11 -18
- package/dist/service/cognito/command/auth/sim-cognito-new-password-response.js.map +1 -1
- package/dist/service/cognito/command/auth/sim-cognito-password-sign-in.d.ts +3 -4
- package/dist/service/cognito/command/auth/sim-cognito-password-sign-in.d.ts.map +1 -1
- package/dist/service/cognito/command/auth/sim-cognito-password-sign-in.js +8 -15
- package/dist/service/cognito/command/auth/sim-cognito-password-sign-in.js.map +1 -1
- package/dist/service/cognito/command/auth/sim-cognito-respond-to-challenge.d.ts +3 -3
- package/dist/service/cognito/command/auth/sim-cognito-respond-to-challenge.d.ts.map +1 -1
- package/dist/service/cognito/command/auth/sim-cognito-respond-to-challenge.js +3 -5
- package/dist/service/cognito/command/auth/sim-cognito-respond-to-challenge.js.map +1 -1
- package/dist/service/cognito/command/auth/sim-cognito-sign-in-completion.d.ts +68 -0
- package/dist/service/cognito/command/auth/sim-cognito-sign-in-completion.d.ts.map +1 -0
- package/dist/service/cognito/command/auth/sim-cognito-sign-in-completion.js +64 -0
- package/dist/service/cognito/command/auth/sim-cognito-sign-in-completion.js.map +1 -0
- package/dist/service/cognito/command/auth/sim-cognito-sign-out.d.ts +4 -3
- package/dist/service/cognito/command/auth/sim-cognito-sign-out.d.ts.map +1 -1
- package/dist/service/cognito/command/auth/sim-cognito-sign-out.js +6 -3
- package/dist/service/cognito/command/auth/sim-cognito-sign-out.js.map +1 -1
- package/dist/service/cognito/command/idp/sim-cognito-identity-provider-commands.d.ts.map +1 -1
- package/dist/service/cognito/command/idp/sim-cognito-identity-provider-commands.js +2 -5
- package/dist/service/cognito/command/idp/sim-cognito-identity-provider-commands.js.map +1 -1
- package/dist/service/cognito/command/sim-cognito-command.types.d.ts +3 -1
- package/dist/service/cognito/command/sim-cognito-command.types.d.ts.map +1 -1
- package/dist/service/cognito/command/sim-cognito-commands.d.ts +4 -0
- package/dist/service/cognito/command/sim-cognito-commands.d.ts.map +1 -1
- package/dist/service/cognito/command/sim-cognito-commands.js +16 -0
- package/dist/service/cognito/command/sim-cognito-commands.js.map +1 -1
- package/dist/service/cognito/command/user/sim-cognito-self-service-scope.d.ts +14 -0
- package/dist/service/cognito/command/user/sim-cognito-self-service-scope.d.ts.map +1 -0
- package/dist/service/cognito/command/user/sim-cognito-self-service-scope.js +20 -0
- package/dist/service/cognito/command/user/sim-cognito-self-service-scope.js.map +1 -0
- package/dist/service/cognito/command/user/sim-cognito-sign-up-commands.d.ts.map +1 -1
- package/dist/service/cognito/command/user/sim-cognito-sign-up-commands.js +1 -0
- package/dist/service/cognito/command/user/sim-cognito-sign-up-commands.js.map +1 -1
- package/dist/service/cognito/command/user/sim-cognito-token-user.d.ts +34 -0
- package/dist/service/cognito/command/user/sim-cognito-token-user.d.ts.map +1 -0
- package/dist/service/cognito/command/user/sim-cognito-token-user.js +43 -0
- package/dist/service/cognito/command/user/sim-cognito-token-user.js.map +1 -0
- package/dist/service/cognito/command/user/sim-cognito-user-commands.d.ts +14 -0
- package/dist/service/cognito/command/user/sim-cognito-user-commands.d.ts.map +1 -1
- package/dist/service/cognito/command/user/sim-cognito-user-commands.js +16 -0
- package/dist/service/cognito/command/user/sim-cognito-user-commands.js.map +1 -1
- package/dist/service/cognito/command/user/sim-cognito-user-mfa-commands.d.ts +55 -0
- package/dist/service/cognito/command/user/sim-cognito-user-mfa-commands.d.ts.map +1 -0
- package/dist/service/cognito/command/user/sim-cognito-user-mfa-commands.js +93 -0
- package/dist/service/cognito/command/user/sim-cognito-user-mfa-commands.js.map +1 -0
- package/dist/service/cognito/command/user/sim-cognito-user-view.d.ts +15 -1
- package/dist/service/cognito/command/user/sim-cognito-user-view.d.ts.map +1 -1
- package/dist/service/cognito/command/user/sim-cognito-user-view.js +28 -0
- package/dist/service/cognito/command/user/sim-cognito-user-view.js.map +1 -1
- package/dist/service/cognito/command/user/user-mfa.command.d.ts +111 -0
- package/dist/service/cognito/command/user/user-mfa.command.d.ts.map +1 -0
- package/dist/service/cognito/command/user/user-mfa.command.js +2 -0
- package/dist/service/cognito/command/user/user-mfa.command.js.map +1 -0
- package/dist/service/cognito/command/user/user.command.d.ts +19 -1
- package/dist/service/cognito/command/user/user.command.d.ts.map +1 -1
- package/dist/service/cognito/command/user-pool/sim-cognito-unsimulated-pool-identity.d.ts +4 -3
- package/dist/service/cognito/command/user-pool/sim-cognito-unsimulated-pool-identity.d.ts.map +1 -1
- package/dist/service/cognito/command/user-pool/sim-cognito-unsimulated-pool-identity.js +4 -4
- package/dist/service/cognito/command/user-pool/sim-cognito-unsimulated-pool-identity.js.map +1 -1
- package/dist/service/cognito/command/user-pool/sim-cognito-unsimulated-pool-options.d.ts +5 -0
- package/dist/service/cognito/command/user-pool/sim-cognito-unsimulated-pool-options.d.ts.map +1 -1
- package/dist/service/cognito/command/user-pool/sim-cognito-unsimulated-pool-options.js +5 -1
- package/dist/service/cognito/command/user-pool/sim-cognito-unsimulated-pool-options.js.map +1 -1
- package/dist/service/cognito/command/user-pool/sim-cognito-unsimulated-pool-updates.d.ts +12 -0
- package/dist/service/cognito/command/user-pool/sim-cognito-unsimulated-pool-updates.d.ts.map +1 -1
- package/dist/service/cognito/command/user-pool/sim-cognito-unsimulated-pool-updates.js +21 -0
- package/dist/service/cognito/command/user-pool/sim-cognito-unsimulated-pool-updates.js.map +1 -1
- package/dist/service/cognito/command/user-pool/sim-cognito-user-pool-commands.d.ts.map +1 -1
- package/dist/service/cognito/command/user-pool/sim-cognito-user-pool-commands.js +15 -3
- package/dist/service/cognito/command/user-pool/sim-cognito-user-pool-commands.js.map +1 -1
- package/dist/service/cognito/command/user-pool/sim-cognito-user-pool-mfa-commands.d.ts +58 -0
- package/dist/service/cognito/command/user-pool/sim-cognito-user-pool-mfa-commands.d.ts.map +1 -0
- package/dist/service/cognito/command/user-pool/sim-cognito-user-pool-mfa-commands.js +71 -0
- package/dist/service/cognito/command/user-pool/sim-cognito-user-pool-mfa-commands.js.map +1 -0
- package/dist/service/cognito/command/user-pool/sim-cognito-user-pool-view.d.ts +9 -1
- package/dist/service/cognito/command/user-pool/sim-cognito-user-pool-view.d.ts.map +1 -1
- package/dist/service/cognito/command/user-pool/sim-cognito-user-pool-view.js +11 -2
- package/dist/service/cognito/command/user-pool/sim-cognito-user-pool-view.js.map +1 -1
- package/dist/service/cognito/command/user-pool/user-pool-mfa.command.d.ts +49 -0
- package/dist/service/cognito/command/user-pool/user-pool-mfa.command.d.ts.map +1 -0
- package/dist/service/cognito/command/user-pool/user-pool-mfa.command.js +2 -0
- package/dist/service/cognito/command/user-pool/user-pool-mfa.command.js.map +1 -0
- package/dist/service/cognito/command/user-pool/user-pool.command.d.ts +9 -5
- package/dist/service/cognito/command/user-pool/user-pool.command.d.ts.map +1 -1
- package/dist/service/cognito/error/sim-cognito.error.d.ts +22 -0
- package/dist/service/cognito/error/sim-cognito.error.d.ts.map +1 -1
- package/dist/service/cognito/error/sim-cognito.error.js +26 -0
- package/dist/service/cognito/error/sim-cognito.error.js.map +1 -1
- package/dist/service/cognito/index.d.ts +7 -1
- package/dist/service/cognito/index.d.ts.map +1 -1
- package/dist/service/cognito/index.js +6 -1
- package/dist/service/cognito/index.js.map +1 -1
- package/dist/service/cognito/sdk/sim-cognito-sdk-directory-routes.d.ts.map +1 -1
- package/dist/service/cognito/sdk/sim-cognito-sdk-directory-routes.js +20 -0
- package/dist/service/cognito/sdk/sim-cognito-sdk-directory-routes.js.map +1 -1
- package/dist/service/cognito/sdk/sim-cognito-sdk-pool-routes.d.ts.map +1 -1
- package/dist/service/cognito/sdk/sim-cognito-sdk-pool-routes.js +8 -0
- package/dist/service/cognito/sdk/sim-cognito-sdk-pool-routes.js.map +1 -1
- package/dist/service/cognito/sim-cognito-app-clients.d.ts +42 -0
- package/dist/service/cognito/sim-cognito-app-clients.d.ts.map +1 -0
- package/dist/service/cognito/sim-cognito-app-clients.js +50 -0
- package/dist/service/cognito/sim-cognito-app-clients.js.map +1 -0
- package/dist/service/cognito/sim-cognito-identity-provider.d.ts +15 -22
- package/dist/service/cognito/sim-cognito-identity-provider.d.ts.map +1 -1
- package/dist/service/cognito/sim-cognito-identity-provider.js +18 -34
- package/dist/service/cognito/sim-cognito-identity-provider.js.map +1 -1
- package/dist/service/cognito/sim-cognito-user-directory.d.ts +6 -5
- package/dist/service/cognito/sim-cognito-user-directory.d.ts.map +1 -1
- package/dist/service/cognito/sim-cognito-user-directory.js +6 -5
- package/dist/service/cognito/sim-cognito-user-directory.js.map +1 -1
- package/dist/service/cognito/sim-cognito-user-factors.d.ts +47 -0
- package/dist/service/cognito/sim-cognito-user-factors.d.ts.map +1 -0
- package/dist/service/cognito/sim-cognito-user-factors.js +56 -0
- package/dist/service/cognito/sim-cognito-user-factors.js.map +1 -0
- package/dist/service/cognito/user-pool/auth/sim-cognito-auth-session-store.d.ts +4 -2
- package/dist/service/cognito/user-pool/auth/sim-cognito-auth-session-store.d.ts.map +1 -1
- package/dist/service/cognito/user-pool/auth/sim-cognito-auth-session-store.js +3 -2
- package/dist/service/cognito/user-pool/auth/sim-cognito-auth-session-store.js.map +1 -1
- package/dist/service/cognito/user-pool/auth/sim-cognito-auth-session.d.ts +20 -0
- package/dist/service/cognito/user-pool/auth/sim-cognito-auth-session.d.ts.map +1 -1
- package/dist/service/cognito/user-pool/auth/sim-cognito-auth-session.js +13 -0
- package/dist/service/cognito/user-pool/auth/sim-cognito-auth-session.js.map +1 -1
- package/dist/service/cognito/user-pool/auth/sim-cognito-issued-token.d.ts +10 -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 +14 -0
- package/dist/service/cognito/user-pool/auth/sim-cognito-issued-token.js.map +1 -1
- package/dist/service/cognito/user-pool/idp/sim-cognito-attribute-mapping.d.ts +10 -4
- package/dist/service/cognito/user-pool/idp/sim-cognito-attribute-mapping.d.ts.map +1 -1
- package/dist/service/cognito/user-pool/idp/sim-cognito-attribute-mapping.js +13 -8
- package/dist/service/cognito/user-pool/idp/sim-cognito-attribute-mapping.js.map +1 -1
- package/dist/service/cognito/user-pool/idp/sim-cognito-federated-sign-in.d.ts.map +1 -1
- package/dist/service/cognito/user-pool/idp/sim-cognito-federated-sign-in.js +1 -0
- package/dist/service/cognito/user-pool/idp/sim-cognito-federated-sign-in.js.map +1 -1
- package/dist/service/cognito/user-pool/idp/sim-cognito-identity-provider-settings.d.ts +6 -1
- package/dist/service/cognito/user-pool/idp/sim-cognito-identity-provider-settings.d.ts.map +1 -1
- package/dist/service/cognito/user-pool/idp/sim-cognito-identity-provider-settings.js +6 -2
- package/dist/service/cognito/user-pool/idp/sim-cognito-identity-provider-settings.js.map +1 -1
- package/dist/service/cognito/user-pool/message/sim-cognito-message-delivery.d.ts +17 -0
- package/dist/service/cognito/user-pool/message/sim-cognito-message-delivery.d.ts.map +1 -1
- package/dist/service/cognito/user-pool/message/sim-cognito-message-delivery.js +24 -1
- package/dist/service/cognito/user-pool/message/sim-cognito-message-delivery.js.map +1 -1
- package/dist/service/cognito/user-pool/message/sim-cognito-message-occasion.d.ts +6 -5
- package/dist/service/cognito/user-pool/message/sim-cognito-message-occasion.d.ts.map +1 -1
- package/dist/service/cognito/user-pool/message/sim-cognito-occasion-wording.d.ts.map +1 -1
- package/dist/service/cognito/user-pool/message/sim-cognito-occasion-wording.js +11 -0
- package/dist/service/cognito/user-pool/message/sim-cognito-occasion-wording.js.map +1 -1
- package/dist/service/cognito/user-pool/mfa/sim-cognito-mfa-configuration.d.ts +35 -0
- package/dist/service/cognito/user-pool/mfa/sim-cognito-mfa-configuration.d.ts.map +1 -0
- package/dist/service/cognito/user-pool/mfa/sim-cognito-mfa-configuration.js +50 -0
- package/dist/service/cognito/user-pool/mfa/sim-cognito-mfa-configuration.js.map +1 -0
- package/dist/service/cognito/user-pool/mfa/sim-cognito-user-pool-mfa.d.ts +83 -0
- package/dist/service/cognito/user-pool/mfa/sim-cognito-user-pool-mfa.d.ts.map +1 -0
- package/dist/service/cognito/user-pool/mfa/sim-cognito-user-pool-mfa.js +114 -0
- package/dist/service/cognito/user-pool/mfa/sim-cognito-user-pool-mfa.js.map +1 -0
- package/dist/service/cognito/user-pool/schema/sim-cognito-attribute-constraints.d.ts +61 -0
- package/dist/service/cognito/user-pool/schema/sim-cognito-attribute-constraints.d.ts.map +1 -0
- package/dist/service/cognito/user-pool/schema/sim-cognito-attribute-constraints.js +64 -0
- package/dist/service/cognito/user-pool/schema/sim-cognito-attribute-constraints.js.map +1 -0
- package/dist/service/cognito/user-pool/schema/sim-cognito-attribute-data-type.d.ts +43 -0
- package/dist/service/cognito/user-pool/schema/sim-cognito-attribute-data-type.d.ts.map +1 -0
- package/dist/service/cognito/user-pool/schema/sim-cognito-attribute-data-type.js +86 -0
- package/dist/service/cognito/user-pool/schema/sim-cognito-attribute-data-type.js.map +1 -0
- package/dist/service/cognito/user-pool/schema/sim-cognito-number-constraints.d.ts +28 -0
- package/dist/service/cognito/user-pool/schema/sim-cognito-number-constraints.d.ts.map +1 -0
- package/dist/service/cognito/user-pool/schema/sim-cognito-number-constraints.js +44 -0
- package/dist/service/cognito/user-pool/schema/sim-cognito-number-constraints.js.map +1 -0
- package/dist/service/cognito/user-pool/schema/sim-cognito-schema-attribute-name.d.ts +22 -0
- package/dist/service/cognito/user-pool/schema/sim-cognito-schema-attribute-name.d.ts.map +1 -0
- package/dist/service/cognito/user-pool/schema/sim-cognito-schema-attribute-name.js +64 -0
- package/dist/service/cognito/user-pool/schema/sim-cognito-schema-attribute-name.js.map +1 -0
- package/dist/service/cognito/user-pool/schema/sim-cognito-schema-attribute.d.ts +68 -0
- package/dist/service/cognito/user-pool/schema/sim-cognito-schema-attribute.d.ts.map +1 -0
- package/dist/service/cognito/user-pool/schema/sim-cognito-schema-attribute.js +98 -0
- package/dist/service/cognito/user-pool/schema/sim-cognito-schema-attribute.js.map +1 -0
- package/dist/service/cognito/user-pool/schema/sim-cognito-standard-attributes.d.ts +28 -0
- package/dist/service/cognito/user-pool/schema/sim-cognito-standard-attributes.d.ts.map +1 -0
- package/dist/service/cognito/user-pool/schema/sim-cognito-standard-attributes.js +96 -0
- package/dist/service/cognito/user-pool/schema/sim-cognito-standard-attributes.js.map +1 -0
- package/dist/service/cognito/user-pool/schema/sim-cognito-string-constraints.d.ts +33 -0
- package/dist/service/cognito/user-pool/schema/sim-cognito-string-constraints.d.ts.map +1 -0
- package/dist/service/cognito/user-pool/schema/sim-cognito-string-constraints.js +52 -0
- package/dist/service/cognito/user-pool/schema/sim-cognito-string-constraints.js.map +1 -0
- package/dist/service/cognito/user-pool/schema/sim-cognito-user-pool-schema.d.ts +89 -0
- package/dist/service/cognito/user-pool/schema/sim-cognito-user-pool-schema.d.ts.map +1 -0
- package/dist/service/cognito/user-pool/schema/sim-cognito-user-pool-schema.js +157 -0
- package/dist/service/cognito/user-pool/schema/sim-cognito-user-pool-schema.js.map +1 -0
- package/dist/service/cognito/user-pool/sim-cognito-user-pool-settings.d.ts +45 -2
- package/dist/service/cognito/user-pool/sim-cognito-user-pool-settings.d.ts.map +1 -1
- package/dist/service/cognito/user-pool/sim-cognito-user-pool-settings.js +41 -2
- package/dist/service/cognito/user-pool/sim-cognito-user-pool-settings.js.map +1 -1
- package/dist/service/cognito/user-pool/sim-cognito-user-pool.d.ts +13 -19
- package/dist/service/cognito/user-pool/sim-cognito-user-pool.d.ts.map +1 -1
- package/dist/service/cognito/user-pool/sim-cognito-user-pool.js +17 -23
- package/dist/service/cognito/user-pool/sim-cognito-user-pool.js.map +1 -1
- package/dist/service/cognito/user-pool/token/sim-cognito-access-token.d.ts +10 -0
- package/dist/service/cognito/user-pool/token/sim-cognito-access-token.d.ts.map +1 -1
- package/dist/service/cognito/user-pool/token/sim-cognito-access-token.js +5 -3
- package/dist/service/cognito/user-pool/token/sim-cognito-access-token.js.map +1 -1
- package/dist/service/cognito/user-pool/token/sim-cognito-pool-keys.d.ts +27 -0
- package/dist/service/cognito/user-pool/token/sim-cognito-pool-keys.d.ts.map +1 -0
- package/dist/service/cognito/user-pool/token/sim-cognito-pool-keys.js +32 -0
- package/dist/service/cognito/user-pool/token/sim-cognito-pool-keys.js.map +1 -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 +4 -0
- package/dist/service/cognito/user-pool/token/sim-cognito-token-issuer.js.map +1 -1
- package/dist/service/cognito/user-pool/trigger/sim-cognito-trigger-occasion.d.ts +4 -0
- package/dist/service/cognito/user-pool/trigger/sim-cognito-trigger-occasion.d.ts.map +1 -1
- package/dist/service/cognito/user-pool/trigger/sim-cognito-trigger-occasion.js +7 -0
- package/dist/service/cognito/user-pool/trigger/sim-cognito-trigger-occasion.js.map +1 -1
- package/dist/service/cognito/user-pool/user/mfa/sim-cognito-mfa-factors.d.ts +53 -0
- package/dist/service/cognito/user-pool/user/mfa/sim-cognito-mfa-factors.d.ts.map +1 -0
- package/dist/service/cognito/user-pool/user/mfa/sim-cognito-mfa-factors.js +58 -0
- package/dist/service/cognito/user-pool/user/mfa/sim-cognito-mfa-factors.js.map +1 -0
- package/dist/service/cognito/user-pool/user/mfa/sim-cognito-software-token.d.ts +40 -0
- package/dist/service/cognito/user-pool/user/mfa/sim-cognito-software-token.d.ts.map +1 -0
- package/dist/service/cognito/user-pool/user/mfa/sim-cognito-software-token.js +51 -0
- package/dist/service/cognito/user-pool/user/mfa/sim-cognito-software-token.js.map +1 -0
- package/dist/service/cognito/user-pool/user/mfa/sim-cognito-totp.d.ts +24 -0
- package/dist/service/cognito/user-pool/user/mfa/sim-cognito-totp.d.ts.map +1 -0
- package/dist/service/cognito/user-pool/user/mfa/sim-cognito-totp.js +99 -0
- package/dist/service/cognito/user-pool/user/mfa/sim-cognito-totp.js.map +1 -0
- package/dist/service/cognito/user-pool/user/mfa/sim-cognito-user-mfa.d.ts +103 -0
- package/dist/service/cognito/user-pool/user/mfa/sim-cognito-user-mfa.d.ts.map +1 -0
- package/dist/service/cognito/user-pool/user/mfa/sim-cognito-user-mfa.js +159 -0
- package/dist/service/cognito/user-pool/user/mfa/sim-cognito-user-mfa.js.map +1 -0
- package/dist/service/cognito/user-pool/user/sim-cognito-user-attributes.d.ts +38 -5
- package/dist/service/cognito/user-pool/user/sim-cognito-user-attributes.d.ts.map +1 -1
- package/dist/service/cognito/user-pool/user/sim-cognito-user-attributes.js +56 -28
- package/dist/service/cognito/user-pool/user/sim-cognito-user-attributes.js.map +1 -1
- package/dist/service/cognito/user-pool/user/sim-cognito-user-factory.d.ts +11 -7
- package/dist/service/cognito/user-pool/user/sim-cognito-user-factory.d.ts.map +1 -1
- package/dist/service/cognito/user-pool/user/sim-cognito-user-factory.js +12 -3
- package/dist/service/cognito/user-pool/user/sim-cognito-user-factory.js.map +1 -1
- package/dist/service/cognito/user-pool/user/sim-cognito-user.d.ts +8 -0
- package/dist/service/cognito/user-pool/user/sim-cognito-user.d.ts.map +1 -1
- package/dist/service/cognito/user-pool/user/sim-cognito-user.js +16 -0
- package/dist/service/cognito/user-pool/user/sim-cognito-user.js.map +1 -1
- package/dist/service/lambda/command/create-function/create-function.handler.d.ts +3 -0
- package/dist/service/lambda/command/create-function/create-function.handler.d.ts.map +1 -1
- package/dist/service/lambda/command/create-function/create-function.handler.js +4 -1
- package/dist/service/lambda/command/create-function/create-function.handler.js.map +1 -1
- package/dist/service/lambda/command/function/sim-lambda-function-commands.d.ts +2 -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.map +1 -1
- package/dist/service/lambda/function/code/sim-lambda-executable-code.d.ts +15 -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 +11 -0
- package/dist/service/lambda/function/code/sim-lambda-executable-code.js.map +1 -1
- package/dist/service/lambda/function/code/sim-lambda-handler-name.d.ts +15 -0
- package/dist/service/lambda/function/code/sim-lambda-handler-name.d.ts.map +1 -0
- package/dist/service/lambda/function/code/sim-lambda-handler-name.js +21 -0
- package/dist/service/lambda/function/code/sim-lambda-handler-name.js.map +1 -0
- package/dist/service/lambda/function/code/sim-lambda-vm-zip-code.d.ts +9 -9
- 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 +14 -15
- package/dist/service/lambda/function/code/sim-lambda-vm-zip-code.js.map +1 -1
- package/dist/service/lambda/function/code/vm/sim-lambda-vm-context.d.ts +2 -1
- package/dist/service/lambda/function/code/vm/sim-lambda-vm-context.d.ts.map +1 -1
- package/dist/service/lambda/function/code/vm/sim-lambda-vm-context.js +5 -1
- package/dist/service/lambda/function/code/vm/sim-lambda-vm-context.js.map +1 -1
- package/dist/service/lambda/function/code/vm/sim-lambda-vm-output-stream.d.ts +12 -1
- package/dist/service/lambda/function/code/vm/sim-lambda-vm-output-stream.d.ts.map +1 -1
- package/dist/service/lambda/function/code/vm/sim-lambda-vm-output-stream.js +27 -1
- package/dist/service/lambda/function/code/vm/sim-lambda-vm-output-stream.js.map +1 -1
- package/dist/service/lambda/function/invoke/sim-lambda-invoke-context-builder.d.ts +3 -0
- package/dist/service/lambda/function/invoke/sim-lambda-invoke-context-builder.d.ts.map +1 -1
- package/dist/service/lambda/function/invoke/sim-lambda-invoke-context-builder.js +3 -3
- package/dist/service/lambda/function/invoke/sim-lambda-invoke-context-builder.js.map +1 -1
- package/dist/service/lambda/function/logging/sim-lambda-function-logging.d.ts +58 -0
- package/dist/service/lambda/function/logging/sim-lambda-function-logging.d.ts.map +1 -0
- package/dist/service/lambda/function/logging/sim-lambda-function-logging.js +81 -0
- package/dist/service/lambda/function/logging/sim-lambda-function-logging.js.map +1 -0
- package/dist/service/lambda/function/logging/sim-lambda-log-stream-name.d.ts +22 -0
- package/dist/service/lambda/function/logging/sim-lambda-log-stream-name.d.ts.map +1 -0
- package/dist/service/lambda/function/logging/sim-lambda-log-stream-name.js +30 -0
- package/dist/service/lambda/function/logging/sim-lambda-log-stream-name.js.map +1 -0
- package/dist/service/lambda/function/logging/sim-lambda-log-writer.d.ts +37 -0
- package/dist/service/lambda/function/logging/sim-lambda-log-writer.d.ts.map +1 -0
- package/dist/service/lambda/function/logging/sim-lambda-log-writer.js +54 -0
- package/dist/service/lambda/function/logging/sim-lambda-log-writer.js.map +1 -0
- package/dist/service/lambda/function/logging/sim-lambda-output-sink.d.ts +22 -0
- package/dist/service/lambda/function/logging/sim-lambda-output-sink.d.ts.map +1 -0
- package/dist/service/lambda/function/logging/sim-lambda-output-sink.js +12 -0
- package/dist/service/lambda/function/logging/sim-lambda-output-sink.js.map +1 -0
- package/dist/service/lambda/function/sim-lambda-function.d.ts +12 -0
- package/dist/service/lambda/function/sim-lambda-function.d.ts.map +1 -1
- package/dist/service/lambda/function/sim-lambda-function.js +18 -2
- package/dist/service/lambda/function/sim-lambda-function.js.map +1 -1
- package/dist/service/lambda/serve/auth/sim-lambda-url-authorizer.d.ts +14 -11
- package/dist/service/lambda/serve/auth/sim-lambda-url-authorizer.d.ts.map +1 -1
- package/dist/service/lambda/serve/auth/sim-lambda-url-authorizer.js +29 -12
- package/dist/service/lambda/serve/auth/sim-lambda-url-authorizer.js.map +1 -1
- package/dist/service/lambda/serve/auth/sim-lambda-url-invoke-actions.d.ts +34 -0
- package/dist/service/lambda/serve/auth/sim-lambda-url-invoke-actions.d.ts.map +1 -0
- package/dist/service/lambda/serve/auth/sim-lambda-url-invoke-actions.js +63 -0
- package/dist/service/lambda/serve/auth/sim-lambda-url-invoke-actions.js.map +1 -0
- package/dist/service/lambda/serve/response/sim-lambda-url-error-response.d.ts +9 -1
- package/dist/service/lambda/serve/response/sim-lambda-url-error-response.d.ts.map +1 -1
- package/dist/service/lambda/serve/response/sim-lambda-url-error-response.js +11 -2
- package/dist/service/lambda/serve/response/sim-lambda-url-error-response.js.map +1 -1
- package/dist/service/lambda/sim-lambda-commands.d.ts +2 -0
- package/dist/service/lambda/sim-lambda-commands.d.ts.map +1 -1
- package/dist/service/lambda/sim-lambda-commands.js +2 -1
- package/dist/service/lambda/sim-lambda-commands.js.map +1 -1
- package/dist/service/logs/cfn/group/sim-cfn-log-group-creator.d.ts +34 -0
- package/dist/service/logs/cfn/group/sim-cfn-log-group-creator.d.ts.map +1 -0
- package/dist/service/logs/cfn/group/sim-cfn-log-group-creator.js +42 -0
- package/dist/service/logs/cfn/group/sim-cfn-log-group-creator.js.map +1 -0
- package/dist/service/logs/cfn/group/sim-cfn-log-group-properties.d.ts +41 -0
- package/dist/service/logs/cfn/group/sim-cfn-log-group-properties.d.ts.map +1 -0
- package/dist/service/logs/cfn/group/sim-cfn-log-group-properties.js +73 -0
- package/dist/service/logs/cfn/group/sim-cfn-log-group-properties.js.map +1 -0
- package/dist/service/logs/cfn/group/sim-cfn-log-group-property-rules.d.ts +25 -0
- package/dist/service/logs/cfn/group/sim-cfn-log-group-property-rules.d.ts.map +1 -0
- package/dist/service/logs/cfn/group/sim-cfn-log-group-property-rules.js +41 -0
- package/dist/service/logs/cfn/group/sim-cfn-log-group-property-rules.js.map +1 -0
- package/dist/service/logs/cfn/group/sim-cfn-log-group-unsimulated-properties.d.ts +12 -0
- package/dist/service/logs/cfn/group/sim-cfn-log-group-unsimulated-properties.d.ts.map +1 -0
- package/dist/service/logs/cfn/group/sim-cfn-log-group-unsimulated-properties.js +38 -0
- package/dist/service/logs/cfn/group/sim-cfn-log-group-unsimulated-properties.js.map +1 -0
- package/dist/service/logs/cfn/sim-logs-cfn-resource-factory.d.ts +29 -0
- package/dist/service/logs/cfn/sim-logs-cfn-resource-factory.d.ts.map +1 -0
- package/dist/service/logs/cfn/sim-logs-cfn-resource-factory.js +44 -0
- package/dist/service/logs/cfn/sim-logs-cfn-resource-factory.js.map +1 -0
- package/dist/service/logs/command/authorize/sim-logs-authorizer.d.ts +43 -0
- package/dist/service/logs/command/authorize/sim-logs-authorizer.d.ts.map +1 -0
- package/dist/service/logs/command/authorize/sim-logs-authorizer.js +54 -0
- package/dist/service/logs/command/authorize/sim-logs-authorizer.js.map +1 -0
- package/dist/service/logs/command/event/event.command.d.ts +86 -0
- package/dist/service/logs/command/event/event.command.d.ts.map +1 -0
- package/dist/service/logs/command/event/event.command.js +2 -0
- package/dist/service/logs/command/event/event.command.js.map +1 -0
- package/dist/service/logs/command/event/sim-logs-event-cursor.d.ts +30 -0
- package/dist/service/logs/command/event/sim-logs-event-cursor.d.ts.map +1 -0
- package/dist/service/logs/command/event/sim-logs-event-cursor.js +68 -0
- package/dist/service/logs/command/event/sim-logs-event-cursor.js.map +1 -0
- package/dist/service/logs/command/event/sim-logs-filter-log-events.d.ts +25 -0
- package/dist/service/logs/command/event/sim-logs-filter-log-events.d.ts.map +1 -0
- package/dist/service/logs/command/event/sim-logs-filter-log-events.js +42 -0
- package/dist/service/logs/command/event/sim-logs-filter-log-events.js.map +1 -0
- package/dist/service/logs/command/event/sim-logs-get-log-events.d.ts +21 -0
- package/dist/service/logs/command/event/sim-logs-get-log-events.d.ts.map +1 -0
- package/dist/service/logs/command/event/sim-logs-get-log-events.js +49 -0
- package/dist/service/logs/command/event/sim-logs-get-log-events.js.map +1 -0
- package/dist/service/logs/command/event/sim-logs-put-log-events.d.ts +33 -0
- package/dist/service/logs/command/event/sim-logs-put-log-events.d.ts.map +1 -0
- package/dist/service/logs/command/event/sim-logs-put-log-events.js +46 -0
- package/dist/service/logs/command/event/sim-logs-put-log-events.js.map +1 -0
- package/dist/service/logs/command/event/sim-logs-searched-events.d.ts +22 -0
- package/dist/service/logs/command/event/sim-logs-searched-events.d.ts.map +1 -0
- package/dist/service/logs/command/event/sim-logs-searched-events.js +47 -0
- package/dist/service/logs/command/event/sim-logs-searched-events.js.map +1 -0
- package/dist/service/logs/command/group/group.command.d.ts +94 -0
- package/dist/service/logs/command/group/group.command.d.ts.map +1 -0
- package/dist/service/logs/command/group/group.command.js +2 -0
- package/dist/service/logs/command/group/group.command.js.map +1 -0
- package/dist/service/logs/command/group/sim-logs-log-group-commands.d.ts +38 -0
- package/dist/service/logs/command/group/sim-logs-log-group-commands.d.ts.map +1 -0
- package/dist/service/logs/command/group/sim-logs-log-group-commands.js +80 -0
- package/dist/service/logs/command/group/sim-logs-log-group-commands.js.map +1 -0
- package/dist/service/logs/command/group/sim-logs-retention-commands.d.ts +31 -0
- package/dist/service/logs/command/group/sim-logs-retention-commands.d.ts.map +1 -0
- package/dist/service/logs/command/group/sim-logs-retention-commands.js +39 -0
- package/dist/service/logs/command/group/sim-logs-retention-commands.js.map +1 -0
- package/dist/service/logs/command/group/sim-logs-unsimulated-group-input.d.ts +18 -0
- package/dist/service/logs/command/group/sim-logs-unsimulated-group-input.d.ts.map +1 -0
- package/dist/service/logs/command/group/sim-logs-unsimulated-group-input.js +33 -0
- package/dist/service/logs/command/group/sim-logs-unsimulated-group-input.js.map +1 -0
- package/dist/service/logs/command/sim-logs-command.types.d.ts +8 -0
- package/dist/service/logs/command/sim-logs-command.types.d.ts.map +1 -0
- package/dist/service/logs/command/sim-logs-command.types.js +2 -0
- package/dist/service/logs/command/sim-logs-command.types.js.map +1 -0
- package/dist/service/logs/command/sim-logs-limit.d.ts +10 -0
- package/dist/service/logs/command/sim-logs-limit.d.ts.map +1 -0
- package/dist/service/logs/command/sim-logs-limit.js +19 -0
- package/dist/service/logs/command/sim-logs-limit.js.map +1 -0
- package/dist/service/logs/command/sim-logs-page.d.ts +30 -0
- package/dist/service/logs/command/sim-logs-page.d.ts.map +1 -0
- package/dist/service/logs/command/sim-logs-page.js +43 -0
- package/dist/service/logs/command/sim-logs-page.js.map +1 -0
- package/dist/service/logs/command/sim-logs-request-options.d.ts +12 -0
- package/dist/service/logs/command/sim-logs-request-options.d.ts.map +1 -0
- package/dist/service/logs/command/sim-logs-request-options.js +2 -0
- package/dist/service/logs/command/sim-logs-request-options.js.map +1 -0
- package/dist/service/logs/command/stream/sim-logs-log-stream-commands.d.ts +27 -0
- package/dist/service/logs/command/stream/sim-logs-log-stream-commands.d.ts.map +1 -0
- package/dist/service/logs/command/stream/sim-logs-log-stream-commands.js +64 -0
- package/dist/service/logs/command/stream/sim-logs-log-stream-commands.js.map +1 -0
- package/dist/service/logs/command/stream/sim-logs-log-stream-order.d.ts +12 -0
- package/dist/service/logs/command/stream/sim-logs-log-stream-order.d.ts.map +1 -0
- package/dist/service/logs/command/stream/sim-logs-log-stream-order.js +39 -0
- package/dist/service/logs/command/stream/sim-logs-log-stream-order.js.map +1 -0
- package/dist/service/logs/command/stream/stream.command.d.ts +56 -0
- package/dist/service/logs/command/stream/stream.command.d.ts.map +1 -0
- package/dist/service/logs/command/stream/stream.command.js +2 -0
- package/dist/service/logs/command/stream/stream.command.js.map +1 -0
- package/dist/service/logs/command/subscription/sim-logs-subscription-commands.d.ts +37 -0
- package/dist/service/logs/command/subscription/sim-logs-subscription-commands.d.ts.map +1 -0
- package/dist/service/logs/command/subscription/sim-logs-subscription-commands.js +78 -0
- package/dist/service/logs/command/subscription/sim-logs-subscription-commands.js.map +1 -0
- package/dist/service/logs/command/subscription/sim-logs-subscription-input.d.ts +15 -0
- package/dist/service/logs/command/subscription/sim-logs-subscription-input.d.ts.map +1 -0
- package/dist/service/logs/command/subscription/sim-logs-subscription-input.js +36 -0
- package/dist/service/logs/command/subscription/sim-logs-subscription-input.js.map +1 -0
- package/dist/service/logs/command/subscription/subscription.command.d.ts +67 -0
- package/dist/service/logs/command/subscription/subscription.command.d.ts.map +1 -0
- package/dist/service/logs/command/subscription/subscription.command.js +2 -0
- package/dist/service/logs/command/subscription/subscription.command.js.map +1 -0
- package/dist/service/logs/error/sim-logs-delivery.error.d.ts +14 -0
- package/dist/service/logs/error/sim-logs-delivery.error.d.ts.map +1 -0
- package/dist/service/logs/error/sim-logs-delivery.error.js +16 -0
- package/dist/service/logs/error/sim-logs-delivery.error.js.map +1 -0
- package/dist/service/logs/error/sim-logs.error.d.ts +71 -0
- package/dist/service/logs/error/sim-logs.error.d.ts.map +1 -0
- package/dist/service/logs/error/sim-logs.error.js +78 -0
- package/dist/service/logs/error/sim-logs.error.js.map +1 -0
- package/dist/service/logs/event/sim-logs-event-batch.d.ts +28 -0
- package/dist/service/logs/event/sim-logs-event-batch.d.ts.map +1 -0
- package/dist/service/logs/event/sim-logs-event-batch.js +70 -0
- package/dist/service/logs/event/sim-logs-event-batch.js.map +1 -0
- package/dist/service/logs/event/sim-logs-event-ids.d.ts +17 -0
- package/dist/service/logs/event/sim-logs-event-ids.d.ts.map +1 -0
- package/dist/service/logs/event/sim-logs-event-ids.js +21 -0
- package/dist/service/logs/event/sim-logs-event-ids.js.map +1 -0
- package/dist/service/logs/event/sim-logs-event-window.d.ts +19 -0
- package/dist/service/logs/event/sim-logs-event-window.d.ts.map +1 -0
- package/dist/service/logs/event/sim-logs-event-window.js +15 -0
- package/dist/service/logs/event/sim-logs-event-window.js.map +1 -0
- package/dist/service/logs/event/sim-logs-event.d.ts +36 -0
- package/dist/service/logs/event/sim-logs-event.d.ts.map +1 -0
- package/dist/service/logs/event/sim-logs-event.js +23 -0
- package/dist/service/logs/event/sim-logs-event.js.map +1 -0
- package/dist/service/logs/event/sim-logs-filter-pattern.d.ts +28 -0
- package/dist/service/logs/event/sim-logs-filter-pattern.d.ts.map +1 -0
- package/dist/service/logs/event/sim-logs-filter-pattern.js +65 -0
- package/dist/service/logs/event/sim-logs-filter-pattern.js.map +1 -0
- package/dist/service/logs/event/sim-logs-filter-terms.d.ts +19 -0
- package/dist/service/logs/event/sim-logs-filter-terms.d.ts.map +1 -0
- package/dist/service/logs/event/sim-logs-filter-terms.js +86 -0
- package/dist/service/logs/event/sim-logs-filter-terms.js.map +1 -0
- package/dist/service/logs/group/sim-logs-arn.d.ts +36 -0
- package/dist/service/logs/group/sim-logs-arn.d.ts.map +1 -0
- package/dist/service/logs/group/sim-logs-arn.js +45 -0
- package/dist/service/logs/group/sim-logs-arn.js.map +1 -0
- package/dist/service/logs/group/sim-logs-log-group-name.d.ts +9 -0
- package/dist/service/logs/group/sim-logs-log-group-name.d.ts.map +1 -0
- package/dist/service/logs/group/sim-logs-log-group-name.js +34 -0
- package/dist/service/logs/group/sim-logs-log-group-name.js.map +1 -0
- package/dist/service/logs/group/sim-logs-log-group-store.d.ts +51 -0
- package/dist/service/logs/group/sim-logs-log-group-store.d.ts.map +1 -0
- package/dist/service/logs/group/sim-logs-log-group-store.js +77 -0
- package/dist/service/logs/group/sim-logs-log-group-store.js.map +1 -0
- package/dist/service/logs/group/sim-logs-log-group.d.ts +60 -0
- package/dist/service/logs/group/sim-logs-log-group.d.ts.map +1 -0
- package/dist/service/logs/group/sim-logs-log-group.js +78 -0
- package/dist/service/logs/group/sim-logs-log-group.js.map +1 -0
- package/dist/service/logs/group/sim-logs-retention.d.ts +16 -0
- package/dist/service/logs/group/sim-logs-retention.d.ts.map +1 -0
- package/dist/service/logs/group/sim-logs-retention.js +28 -0
- package/dist/service/logs/group/sim-logs-retention.js.map +1 -0
- package/dist/service/logs/index.d.ts +15 -0
- package/dist/service/logs/index.d.ts.map +1 -0
- package/dist/service/logs/index.js +14 -0
- package/dist/service/logs/index.js.map +1 -0
- package/dist/service/logs/sdk/sim-logs-sdk-command-router.d.ts +19 -0
- package/dist/service/logs/sdk/sim-logs-sdk-command-router.d.ts.map +1 -0
- package/dist/service/logs/sdk/sim-logs-sdk-command-router.js +77 -0
- package/dist/service/logs/sdk/sim-logs-sdk-command-router.js.map +1 -0
- package/dist/service/logs/sim-logs-commands.d.ts +48 -0
- package/dist/service/logs/sim-logs-commands.d.ts.map +1 -0
- package/dist/service/logs/sim-logs-commands.js +84 -0
- package/dist/service/logs/sim-logs-commands.js.map +1 -0
- package/dist/service/logs/sim-logs.d.ts +116 -0
- package/dist/service/logs/sim-logs.d.ts.map +1 -0
- package/dist/service/logs/sim-logs.js +166 -0
- package/dist/service/logs/sim-logs.js.map +1 -0
- package/dist/service/logs/stream/sim-logs-log-stream-name.d.ts +5 -0
- package/dist/service/logs/stream/sim-logs-log-stream-name.d.ts.map +1 -0
- package/dist/service/logs/stream/sim-logs-log-stream-name.js +30 -0
- package/dist/service/logs/stream/sim-logs-log-stream-name.js.map +1 -0
- package/dist/service/logs/stream/sim-logs-log-stream-store.d.ts +38 -0
- package/dist/service/logs/stream/sim-logs-log-stream-store.d.ts.map +1 -0
- package/dist/service/logs/stream/sim-logs-log-stream-store.js +58 -0
- package/dist/service/logs/stream/sim-logs-log-stream-store.js.map +1 -0
- package/dist/service/logs/stream/sim-logs-log-stream.d.ts +58 -0
- package/dist/service/logs/stream/sim-logs-log-stream.d.ts.map +1 -0
- package/dist/service/logs/stream/sim-logs-log-stream.js +79 -0
- package/dist/service/logs/stream/sim-logs-log-stream.js.map +1 -0
- package/dist/service/logs/subscription/lambda/sim-aws-logs-subscription-functions.d.ts +33 -0
- package/dist/service/logs/subscription/lambda/sim-aws-logs-subscription-functions.d.ts.map +1 -0
- package/dist/service/logs/subscription/lambda/sim-aws-logs-subscription-functions.js +42 -0
- package/dist/service/logs/subscription/lambda/sim-aws-logs-subscription-functions.js.map +1 -0
- package/dist/service/logs/subscription/lambda/sim-logs-destination-permission.d.ts +20 -0
- package/dist/service/logs/subscription/lambda/sim-logs-destination-permission.d.ts.map +1 -0
- package/dist/service/logs/subscription/lambda/sim-logs-destination-permission.js +39 -0
- package/dist/service/logs/subscription/lambda/sim-logs-destination-permission.js.map +1 -0
- package/dist/service/logs/subscription/lambda/sim-logs-subscription-function-arn.d.ts +33 -0
- package/dist/service/logs/subscription/lambda/sim-logs-subscription-function-arn.d.ts.map +1 -0
- package/dist/service/logs/subscription/lambda/sim-logs-subscription-function-arn.js +66 -0
- package/dist/service/logs/subscription/lambda/sim-logs-subscription-function-arn.js.map +1 -0
- package/dist/service/logs/subscription/sim-logs-subscription-destinations.d.ts +41 -0
- package/dist/service/logs/subscription/sim-logs-subscription-destinations.d.ts.map +1 -0
- package/dist/service/logs/subscription/sim-logs-subscription-destinations.js +31 -0
- package/dist/service/logs/subscription/sim-logs-subscription-destinations.js.map +1 -0
- package/dist/service/logs/subscription/sim-logs-subscription-event.d.ts +50 -0
- package/dist/service/logs/subscription/sim-logs-subscription-event.d.ts.map +1 -0
- package/dist/service/logs/subscription/sim-logs-subscription-event.js +33 -0
- package/dist/service/logs/subscription/sim-logs-subscription-event.js.map +1 -0
- package/dist/service/logs/subscription/sim-logs-subscription-fan-out.d.ts +53 -0
- package/dist/service/logs/subscription/sim-logs-subscription-fan-out.d.ts.map +1 -0
- package/dist/service/logs/subscription/sim-logs-subscription-fan-out.js +69 -0
- package/dist/service/logs/subscription/sim-logs-subscription-fan-out.js.map +1 -0
- package/dist/service/logs/subscription/sim-logs-subscription-filter-store.d.ts +40 -0
- package/dist/service/logs/subscription/sim-logs-subscription-filter-store.d.ts.map +1 -0
- package/dist/service/logs/subscription/sim-logs-subscription-filter-store.js +55 -0
- package/dist/service/logs/subscription/sim-logs-subscription-filter-store.js.map +1 -0
- package/dist/service/logs/subscription/sim-logs-subscription-filter.d.ts +34 -0
- package/dist/service/logs/subscription/sim-logs-subscription-filter.d.ts.map +1 -0
- package/dist/service/logs/subscription/sim-logs-subscription-filter.js +36 -0
- package/dist/service/logs/subscription/sim-logs-subscription-filter.js.map +1 -0
- package/dist/service/logs/write/sim-logs-service-writer.d.ts +58 -0
- package/dist/service/logs/write/sim-logs-service-writer.d.ts.map +1 -0
- package/dist/service/logs/write/sim-logs-service-writer.js +74 -0
- package/dist/service/logs/write/sim-logs-service-writer.js.map +1 -0
- package/package.json +6 -1
- package/dist/service/cognito/user-pool/user/sim-cognito-standard-attributes.d.ts +0 -9
- package/dist/service/cognito/user-pool/user/sim-cognito-standard-attributes.d.ts.map +0 -1
- package/dist/service/cognito/user-pool/user/sim-cognito-standard-attributes.js +0 -39
- package/dist/service/cognito/user-pool/user/sim-cognito-standard-attributes.js.map +0 -1
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { SimLambdaRuntimeError } from "../../error/sim-lambda-runtime.error.js";
|
|
2
|
+
/**
|
|
3
|
+
* Parse an AWS Lambda handler identifier such as "index.handler" or
|
|
4
|
+
* "src/app.handler" into its module path and export name.
|
|
5
|
+
*
|
|
6
|
+
* The separator is the last period rather than the first, so a module in a
|
|
7
|
+
* directory and a module with a period in its name both resolve the way real
|
|
8
|
+
* Lambda resolves them: `src/app.service.handler` is the `handler` export of
|
|
9
|
+
* `src/app.service`.
|
|
10
|
+
*/
|
|
11
|
+
export function parseLambdaHandlerName(handlerName) {
|
|
12
|
+
const separator = handlerName.lastIndexOf(".");
|
|
13
|
+
if (separator <= 0 || separator === handlerName.length - 1) {
|
|
14
|
+
throw new SimLambdaRuntimeError("Runtime.MalformedHandlerName", `Bad handler '${handlerName}': expected format 'file.method'`);
|
|
15
|
+
}
|
|
16
|
+
return {
|
|
17
|
+
modulePath: handlerName.slice(0, separator),
|
|
18
|
+
exportName: handlerName.slice(separator + 1),
|
|
19
|
+
};
|
|
20
|
+
}
|
|
21
|
+
//# sourceMappingURL=sim-lambda-handler-name.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sim-lambda-handler-name.js","sourceRoot":"","sources":["../../../../../src/service/lambda/function/code/sim-lambda-handler-name.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,qBAAqB,EAAE,MAAM,yCAAyC,CAAC;AAOhF;;;;;;;;GAQG;AACH,MAAM,UAAU,sBAAsB,CAAC,WAAmB;IACxD,MAAM,SAAS,GAAG,WAAW,CAAC,WAAW,CAAC,GAAG,CAAC,CAAC;IAE/C,IAAI,SAAS,IAAI,CAAC,IAAI,SAAS,KAAK,WAAW,CAAC,MAAM,GAAG,CAAC,EAAE,CAAC;QAC3D,MAAM,IAAI,qBAAqB,CAC7B,8BAA8B,EAC9B,gBAAgB,WAAW,kCAAkC,CAC9D,CAAC;IACJ,CAAC;IAED,OAAO;QACL,UAAU,EAAE,WAAW,CAAC,KAAK,CAAC,CAAC,EAAE,SAAS,CAAC;QAC3C,UAAU,EAAE,WAAW,CAAC,KAAK,CAAC,SAAS,GAAG,CAAC,CAAC;KAC7C,CAAC;AACJ,CAAC"}
|
|
@@ -4,6 +4,7 @@ import type { SimLambdaHandler } from "../sim-lambda-handler.type.js";
|
|
|
4
4
|
import { type SimLambdaVmSdkModuleProvider } from "./vm/sdk/sim-lambda-vm-sdk-module-provider.js";
|
|
5
5
|
import type { SimLambdaEnvironment } from "../environment/sim-lambda-environment.js";
|
|
6
6
|
import type { SimLambdaExecutableCode } from "./sim-lambda-executable-code.js";
|
|
7
|
+
import { type SimLambdaOutputSink } from "../logging/sim-lambda-output-sink.js";
|
|
7
8
|
interface SimLambdaVmZipCodeProperties {
|
|
8
9
|
readonly archive: SimZipArchive;
|
|
9
10
|
readonly handlerName: string;
|
|
@@ -15,15 +16,6 @@ interface SimLambdaVmZipCodeProperties {
|
|
|
15
16
|
*/
|
|
16
17
|
readonly clock?: SimClock | undefined;
|
|
17
18
|
}
|
|
18
|
-
interface ParsedHandlerName {
|
|
19
|
-
readonly modulePath: string;
|
|
20
|
-
readonly exportName: string;
|
|
21
|
-
}
|
|
22
|
-
/**
|
|
23
|
-
* Parse an AWS Lambda handler identifier such as "index.handler" or
|
|
24
|
-
* "src/app.handler" into its module path and export name.
|
|
25
|
-
*/
|
|
26
|
-
export declare function parseLambdaHandlerName(handlerName: string): ParsedHandlerName;
|
|
27
19
|
/**
|
|
28
20
|
* Executable sim Lambda code compiled from a zip archive in a vm context.
|
|
29
21
|
*
|
|
@@ -41,6 +33,14 @@ export declare class SimLambdaVmZipCode implements SimLambdaExecutableCode {
|
|
|
41
33
|
*/
|
|
42
34
|
readonly runsInHostScope = false;
|
|
43
35
|
constructor(properties: SimLambdaVmZipCodeProperties);
|
|
36
|
+
/**
|
|
37
|
+
* Record what this code writes to its standard streams.
|
|
38
|
+
*
|
|
39
|
+
* The sandbox is built at cold start, and an invocation sets this before it
|
|
40
|
+
* asks for the handler, so the streams function code is handed already carry
|
|
41
|
+
* the sink by the time any of it runs.
|
|
42
|
+
*/
|
|
43
|
+
recordOutputTo(sink: SimLambdaOutputSink): void;
|
|
44
44
|
/**
|
|
45
45
|
* Get the handler function, cold-starting the module code if needed.
|
|
46
46
|
*/
|
|
@@ -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,QAAQ,EAAE,MAAM,qCAAqC,CAAC;AACpE,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,EAAE,oBAAoB,EAAE,MAAM,0CAA0C,CAAC;AACrF,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,iCAAiC,CAAC;
|
|
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,QAAQ,EAAE,MAAM,qCAAqC,CAAC;AACpE,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,EAAE,oBAAoB,EAAE,MAAM,0CAA0C,CAAC;AACrF,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,iCAAiC,CAAC;AAG/E,OAAO,EAEL,KAAK,mBAAmB,EACzB,MAAM,sCAAsC,CAAC;AAG9C,UAAU,4BAA4B;IACpC,QAAQ,CAAC,OAAO,EAAE,aAAa,CAAC;IAChC,QAAQ,CAAC,WAAW,EAAE,MAAM,CAAC;IAC7B,QAAQ,CAAC,WAAW,EAAE,oBAAoB,CAAC;IAC3C,QAAQ,CAAC,iBAAiB,CAAC,EAAE,4BAA4B,GAAG,SAAS,CAAC;IACtE;;;OAGG;IACH,QAAQ,CAAC,KAAK,CAAC,EAAE,QAAQ,GAAG,SAAS,CAAC;CACvC;AAED;;;;;;;GAOG;AACH,qBAAa,kBAAmB,YAAW,uBAAuB;;IAUpD,OAAO,CAAC,QAAQ,CAAC,UAAU;IATvC;;;OAGG;IACH,QAAQ,CAAC,eAAe,SAAS;IAKjC,YAA6B,UAAU,EAAE,4BAA4B,EAAI;IAEzE;;;;;;OAMG;IACH,cAAc,CAAC,IAAI,EAAE,mBAAmB,GAAG,IAAI,CAE9C;IAED;;OAEG;IACH,eAAe,IAAI,gBAAgB,CAGlC;IAED,OAAO,CAAC,SAAS;IA0BjB;;;;;;;OAOG;IACH,OAAO,CAAC,eAAe;IAWvB,OAAO,CAAC,mBAAmB;CAiB5B"}
|
|
@@ -1,21 +1,9 @@
|
|
|
1
1
|
import { SimLambdaRuntimeError } from "../../error/sim-lambda-runtime.error.js";
|
|
2
2
|
import { SimLambdaNoVmSdkModuleProvider, } from "./vm/sdk/sim-lambda-vm-sdk-module-provider.js";
|
|
3
|
+
import { parseLambdaHandlerName } from "./sim-lambda-handler-name.js";
|
|
3
4
|
import { makeSimLambdaVmContext } from "./vm/sim-lambda-vm-context.js";
|
|
5
|
+
import { simLambdaNoOutputSink, } from "../logging/sim-lambda-output-sink.js";
|
|
4
6
|
import { SimLambdaVmModules } from "./vm/sim-lambda-vm-modules.js";
|
|
5
|
-
/**
|
|
6
|
-
* Parse an AWS Lambda handler identifier such as "index.handler" or
|
|
7
|
-
* "src/app.handler" into its module path and export name.
|
|
8
|
-
*/
|
|
9
|
-
export function parseLambdaHandlerName(handlerName) {
|
|
10
|
-
const separator = handlerName.lastIndexOf(".");
|
|
11
|
-
if (separator <= 0 || separator === handlerName.length - 1) {
|
|
12
|
-
throw new SimLambdaRuntimeError("Runtime.MalformedHandlerName", `Bad handler '${handlerName}': expected format 'file.method'`);
|
|
13
|
-
}
|
|
14
|
-
return {
|
|
15
|
-
modulePath: handlerName.slice(0, separator),
|
|
16
|
-
exportName: handlerName.slice(separator + 1),
|
|
17
|
-
};
|
|
18
|
-
}
|
|
19
7
|
/**
|
|
20
8
|
* Executable sim Lambda code compiled from a zip archive in a vm context.
|
|
21
9
|
*
|
|
@@ -32,9 +20,20 @@ export class SimLambdaVmZipCode {
|
|
|
32
20
|
*/
|
|
33
21
|
runsInHostScope = false;
|
|
34
22
|
#handler;
|
|
23
|
+
#sink = simLambdaNoOutputSink;
|
|
35
24
|
constructor(properties) {
|
|
36
25
|
this.properties = properties;
|
|
37
26
|
}
|
|
27
|
+
/**
|
|
28
|
+
* Record what this code writes to its standard streams.
|
|
29
|
+
*
|
|
30
|
+
* The sandbox is built at cold start, and an invocation sets this before it
|
|
31
|
+
* asks for the handler, so the streams function code is handed already carry
|
|
32
|
+
* the sink by the time any of it runs.
|
|
33
|
+
*/
|
|
34
|
+
recordOutputTo(sink) {
|
|
35
|
+
this.#sink = sink;
|
|
36
|
+
}
|
|
38
37
|
/**
|
|
39
38
|
* Get the handler function, cold-starting the module code if needed.
|
|
40
39
|
*/
|
|
@@ -47,7 +46,7 @@ export class SimLambdaVmZipCode {
|
|
|
47
46
|
const parsedName = parseLambdaHandlerName(handlerName);
|
|
48
47
|
const modules = new SimLambdaVmModules({
|
|
49
48
|
archive,
|
|
50
|
-
context: makeSimLambdaVmContext(environment, clock),
|
|
49
|
+
context: makeSimLambdaVmContext(environment, clock, this.#sink),
|
|
51
50
|
sdkModuleProvider: sdkModuleProvider ?? new SimLambdaNoVmSdkModuleProvider(),
|
|
52
51
|
});
|
|
53
52
|
const moduleExports = this.importHandlerModule(modules, parsedName.modulePath);
|
|
@@ -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":"AAEA,OAAO,EAAE,qBAAqB,EAAE,MAAM,yCAAyC,CAAC;AAEhF,OAAO,EACL,8BAA8B,GAE/B,MAAM,+CAA+C,CAAC;AAGvD,OAAO,EAAE,sBAAsB,EAAE,MAAM
|
|
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":"AAEA,OAAO,EAAE,qBAAqB,EAAE,MAAM,yCAAyC,CAAC;AAEhF,OAAO,EACL,8BAA8B,GAE/B,MAAM,+CAA+C,CAAC;AAGvD,OAAO,EAAE,sBAAsB,EAAE,MAAM,8BAA8B,CAAC;AACtE,OAAO,EAAE,sBAAsB,EAAE,MAAM,+BAA+B,CAAC;AACvE,OAAO,EACL,qBAAqB,GAEtB,MAAM,sCAAsC,CAAC;AAC9C,OAAO,EAAE,kBAAkB,EAAE,MAAM,+BAA+B,CAAC;AAcnE;;;;;;;GAOG;AACH,MAAM,OAAO,kBAAkB;IAUA,UAAU;IATvC;;;OAGG;IACM,eAAe,GAAG,KAAK,CAAC;IAEjC,QAAQ,CAA+B;IACvC,KAAK,GAAwB,qBAAqB,CAAC;IAEnD,YAA6B,UAAwC;0BAAxC,UAAU;IAAiC,CAAC;IAEzE;;;;;;OAMG;IACH,cAAc,CAAC,IAAyB;QACtC,IAAI,CAAC,KAAK,GAAG,IAAI,CAAC;IACpB,CAAC;IAED;;OAEG;IACH,eAAe;QACb,IAAI,CAAC,QAAQ,KAAK,IAAI,CAAC,SAAS,EAAE,CAAC;QACnC,OAAO,IAAI,CAAC,QAAQ,CAAC;IACvB,CAAC;IAEO,SAAS;QACf,MAAM,EAAE,OAAO,EAAE,WAAW,EAAE,WAAW,EAAE,iBAAiB,EAAE,KAAK,EAAE,GACnE,IAAI,CAAC,UAAU,CAAC;QAClB,MAAM,UAAU,GAAG,sBAAsB,CAAC,WAAW,CAAC,CAAC;QAEvD,MAAM,OAAO,GAAG,IAAI,kBAAkB,CAAC;YACrC,OAAO;YACP,OAAO,EAAE,sBAAsB,CAAC,WAAW,EAAE,KAAK,EAAE,IAAI,CAAC,KAAK,CAAC;YAC/D,iBAAiB,EACf,iBAAiB,IAAI,IAAI,8BAA8B,EAAE;SAC5D,CAAC,CAAC;QACH,MAAM,aAAa,GAAG,IAAI,CAAC,mBAAmB,CAC5C,OAAO,EACP,UAAU,CAAC,UAAU,CACtB,CAAC;QAEF,MAAM,OAAO,GAAG,IAAI,CAAC,eAAe,CAAC,aAAa,EAAE,UAAU,CAAC,UAAU,CAAC,CAAC;QAC3E,IAAI,OAAO,OAAO,KAAK,UAAU,EAAE,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"}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import vm from "node:vm";
|
|
2
2
|
import { type SimClock } from "../../../../../util/clock/sim-clock.js";
|
|
3
3
|
import type { SimLambdaEnvironment } from "../../environment/sim-lambda-environment.js";
|
|
4
|
+
import { type SimLambdaOutputSink } from "../../logging/sim-lambda-output-sink.js";
|
|
4
5
|
/**
|
|
5
6
|
* Create the sandbox vm context that sim Lambda function code runs in.
|
|
6
7
|
*
|
|
@@ -15,5 +16,5 @@ import type { SimLambdaEnvironment } from "../../environment/sim-lambda-environm
|
|
|
15
16
|
* both the host environment and the host clock are invisible here, and
|
|
16
17
|
* nothing outside the sandbox is touched to arrange that.
|
|
17
18
|
*/
|
|
18
|
-
export declare function makeSimLambdaVmContext(environment: SimLambdaEnvironment, clock?: SimClock): vm.Context;
|
|
19
|
+
export declare function makeSimLambdaVmContext(environment: SimLambdaEnvironment, clock?: SimClock, sink?: SimLambdaOutputSink): vm.Context;
|
|
19
20
|
//# sourceMappingURL=sim-lambda-vm-context.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sim-lambda-vm-context.d.ts","sourceRoot":"","sources":["../../../../../../src/service/lambda/function/code/vm/sim-lambda-vm-context.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,MAAM,SAAS,CAAC;AAEzB,OAAO,EACL,KAAK,QAAQ,EAEd,MAAM,wCAAwC,CAAC;AAChD,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,6CAA6C,CAAC;
|
|
1
|
+
{"version":3,"file":"sim-lambda-vm-context.d.ts","sourceRoot":"","sources":["../../../../../../src/service/lambda/function/code/vm/sim-lambda-vm-context.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,MAAM,SAAS,CAAC;AAEzB,OAAO,EACL,KAAK,QAAQ,EAEd,MAAM,wCAAwC,CAAC;AAChD,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,6CAA6C,CAAC;AACxF,OAAO,EAEL,KAAK,mBAAmB,EACzB,MAAM,yCAAyC,CAAC;AAGjD;;;;;;;;;;;;;GAaG;AACH,wBAAgB,sBAAsB,CACpC,WAAW,EAAE,oBAAoB,EACjC,KAAK,GAAE,QAA6B,EACpC,IAAI,GAAE,mBAA2C,GAChD,EAAE,CAAC,OAAO,CAsCZ"}
|
|
@@ -2,6 +2,7 @@ import { Console } from "node:console";
|
|
|
2
2
|
import vm from "node:vm";
|
|
3
3
|
import { makeSimClockDate } from "../../../../../util/clock/sim-clock-date.js";
|
|
4
4
|
import { SimRealClock, } from "../../../../../util/clock/sim-clock.js";
|
|
5
|
+
import { simLambdaNoOutputSink, } from "../../logging/sim-lambda-output-sink.js";
|
|
5
6
|
import { SimLambdaVmOutputStream } from "./sim-lambda-vm-output-stream.js";
|
|
6
7
|
/**
|
|
7
8
|
* Create the sandbox vm context that sim Lambda function code runs in.
|
|
@@ -17,12 +18,15 @@ import { SimLambdaVmOutputStream } from "./sim-lambda-vm-output-stream.js";
|
|
|
17
18
|
* both the host environment and the host clock are invisible here, and
|
|
18
19
|
* nothing outside the sandbox is touched to arrange that.
|
|
19
20
|
*/
|
|
20
|
-
export function makeSimLambdaVmContext(environment, clock = new SimRealClock()) {
|
|
21
|
+
export function makeSimLambdaVmContext(environment, clock = new SimRealClock(), sink = simLambdaNoOutputSink) {
|
|
21
22
|
// Writable standard streams, as the real runtime provides. Code that builds
|
|
22
23
|
// its own console over them, as AWS Lambda Powertools' logger does, throws
|
|
23
24
|
// at module load without them.
|
|
24
25
|
const stdout = new SimLambdaVmOutputStream(() => process.stdout);
|
|
25
26
|
const stderr = new SimLambdaVmOutputStream(() => process.stderr);
|
|
27
|
+
// What function code writes reaches the function's log group through here.
|
|
28
|
+
stdout.recordTo(sink);
|
|
29
|
+
stderr.recordTo(sink);
|
|
26
30
|
return vm.createContext({
|
|
27
31
|
// The sandbox's console is built over those streams, as the real
|
|
28
32
|
// runtime's is, so everything function code prints goes to one place
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sim-lambda-vm-context.js","sourceRoot":"","sources":["../../../../../../src/service/lambda/function/code/vm/sim-lambda-vm-context.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AACvC,OAAO,EAAE,MAAM,SAAS,CAAC;AACzB,OAAO,EAAE,gBAAgB,EAAE,MAAM,6CAA6C,CAAC;AAC/E,OAAO,EAEL,YAAY,GACb,MAAM,wCAAwC,CAAC;AAEhD,OAAO,EAAE,uBAAuB,EAAE,MAAM,kCAAkC,CAAC;AAE3E;;;;;;;;;;;;;GAaG;AACH,MAAM,UAAU,sBAAsB,CACpC,WAAiC,EACjC,KAAK,GAAa,IAAI,YAAY,EAAE;
|
|
1
|
+
{"version":3,"file":"sim-lambda-vm-context.js","sourceRoot":"","sources":["../../../../../../src/service/lambda/function/code/vm/sim-lambda-vm-context.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AACvC,OAAO,EAAE,MAAM,SAAS,CAAC;AACzB,OAAO,EAAE,gBAAgB,EAAE,MAAM,6CAA6C,CAAC;AAC/E,OAAO,EAEL,YAAY,GACb,MAAM,wCAAwC,CAAC;AAEhD,OAAO,EACL,qBAAqB,GAEtB,MAAM,yCAAyC,CAAC;AACjD,OAAO,EAAE,uBAAuB,EAAE,MAAM,kCAAkC,CAAC;AAE3E;;;;;;;;;;;;;GAaG;AACH,MAAM,UAAU,sBAAsB,CACpC,WAAiC,EACjC,KAAK,GAAa,IAAI,YAAY,EAAE,EACpC,IAAI,GAAwB,qBAAqB;IAEjD,4EAA4E;IAC5E,2EAA2E;IAC3E,+BAA+B;IAC/B,MAAM,MAAM,GAAG,IAAI,uBAAuB,CAAC,GAAG,EAAE,CAAC,OAAO,CAAC,MAAM,CAAC,CAAC;IACjE,MAAM,MAAM,GAAG,IAAI,uBAAuB,CAAC,GAAG,EAAE,CAAC,OAAO,CAAC,MAAM,CAAC,CAAC;IAEjE,2EAA2E;IAC3E,MAAM,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC;IACtB,MAAM,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC;IAEtB,OAAO,EAAE,CAAC,aAAa,CAAC;QACtB,iEAAiE;QACjE,qEAAqE;QACrE,wEAAwE;QACxE,OAAO,EAAE,IAAI,OAAO,CAAC,EAAE,MAAM,EAAE,MAAM,EAAE,CAAC;QACxC,MAAM;QACN,OAAO,EAAE;YACP,GAAG,EAAE,WAAW,CAAC,SAAS,EAAE;YAC5B,MAAM;YACN,MAAM;SACP;QACD,qEAAqE;QACrE,mEAAmE;QACnE,IAAI,EAAE,gBAAgB,CAAC,KAAK,CAAC;QAC7B,UAAU;QACV,YAAY;QACZ,WAAW;QACX,aAAa;QACb,YAAY;QACZ,cAAc;QACd,WAAW;QACX,WAAW;QACX,GAAG;QACH,eAAe;QACf,eAAe;QACf,MAAM;KACP,CAAC,CAAC;AACL,CAAC"}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { Writable } from "node:stream";
|
|
2
|
+
import { type SimLambdaOutputSink } from "../../logging/sim-lambda-output-sink.js";
|
|
2
3
|
/**
|
|
3
4
|
* One of the standard output streams the sim Lambda vm sandbox gives function
|
|
4
5
|
* code as `process.stdout` and `process.stderr`.
|
|
@@ -16,7 +17,12 @@ import { Writable } from "node:stream";
|
|
|
16
17
|
* (`ERR_CONSOLE_WRITABLE_STREAM`) before the handler runs.
|
|
17
18
|
*
|
|
18
19
|
* What function code writes is forwarded to the matching host stream,
|
|
19
|
-
* standard output to standard output and standard error to standard error
|
|
20
|
+
* standard output to standard output and standard error to standard error, and
|
|
21
|
+
* recorded to the sink the code was given, which is what puts a handler's
|
|
22
|
+
* output in its log group. Forwarding to the host is a tee rather than a
|
|
23
|
+
* redirect: real Lambda sends output to CloudWatch Logs and nowhere else, but
|
|
24
|
+
* a test tool that swallowed it would make a failing test harder to debug than
|
|
25
|
+
* it is with none of this.
|
|
20
26
|
* The sandbox's own console is built over these streams too, so a handler's
|
|
21
27
|
* output arrives there whether it printed through the console or wrote to the
|
|
22
28
|
* stream itself, instead of one of the two disappearing. The host stream is
|
|
@@ -24,8 +30,13 @@ import { Writable } from "node:stream";
|
|
|
24
30
|
* function has cold-started still sees what the handler writes.
|
|
25
31
|
*/
|
|
26
32
|
export declare class SimLambdaVmOutputStream extends Writable {
|
|
33
|
+
#private;
|
|
27
34
|
private readonly hostStream;
|
|
28
35
|
constructor(hostStream: () => NodeJS.WritableStream);
|
|
36
|
+
/**
|
|
37
|
+
* Record everything written here to a sink from now on.
|
|
38
|
+
*/
|
|
39
|
+
recordTo(sink: SimLambdaOutputSink): void;
|
|
29
40
|
/**
|
|
30
41
|
* The write is handed on and reported as done without waiting for the host
|
|
31
42
|
* stream, as Node.js's own console hands writes to process.stdout. Waiting
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sim-lambda-vm-output-stream.d.ts","sourceRoot":"","sources":["../../../../../../src/service/lambda/function/code/vm/sim-lambda-vm-output-stream.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AAEvC
|
|
1
|
+
{"version":3,"file":"sim-lambda-vm-output-stream.d.ts","sourceRoot":"","sources":["../../../../../../src/service/lambda/function/code/vm/sim-lambda-vm-output-stream.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AAEvC,OAAO,EAEL,KAAK,mBAAmB,EACzB,MAAM,yCAAyC,CAAC;AAEjD;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4BG;AACH,qBAAa,uBAAwB,SAAQ,QAAQ;;IAevC,OAAO,CAAC,QAAQ,CAAC,UAAU;IAAvC,YAA6B,UAAU,EAAE,MAAM,MAAM,CAAC,cAAc,EAEnE;IAED;;OAEG;IACH,QAAQ,CAAC,IAAI,EAAE,mBAAmB,GAAG,IAAI,CAExC;IAED;;;;;;;;OAQG;IACM,MAAM,CACb,KAAK,EAAE,MAAM,EACb,SAAS,EAAE,cAAc,EACzB,IAAI,EAAE,CAAC,KAAK,CAAC,EAAE,KAAK,KAAK,IAAI,GAC5B,IAAI,CAIN;CACF"}
|
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
import { Writable } from "node:stream";
|
|
2
|
+
import { StringDecoder } from "node:string_decoder";
|
|
3
|
+
import { simLambdaNoOutputSink, } from "../../logging/sim-lambda-output-sink.js";
|
|
2
4
|
/**
|
|
3
5
|
* One of the standard output streams the sim Lambda vm sandbox gives function
|
|
4
6
|
* code as `process.stdout` and `process.stderr`.
|
|
@@ -16,7 +18,12 @@ import { Writable } from "node:stream";
|
|
|
16
18
|
* (`ERR_CONSOLE_WRITABLE_STREAM`) before the handler runs.
|
|
17
19
|
*
|
|
18
20
|
* What function code writes is forwarded to the matching host stream,
|
|
19
|
-
* standard output to standard output and standard error to standard error
|
|
21
|
+
* standard output to standard output and standard error to standard error, and
|
|
22
|
+
* recorded to the sink the code was given, which is what puts a handler's
|
|
23
|
+
* output in its log group. Forwarding to the host is a tee rather than a
|
|
24
|
+
* redirect: real Lambda sends output to CloudWatch Logs and nowhere else, but
|
|
25
|
+
* a test tool that swallowed it would make a failing test harder to debug than
|
|
26
|
+
* it is with none of this.
|
|
20
27
|
* The sandbox's own console is built over these streams too, so a handler's
|
|
21
28
|
* output arrives there whether it printed through the console or wrote to the
|
|
22
29
|
* stream itself, instead of one of the two disappearing. The host stream is
|
|
@@ -25,10 +32,28 @@ import { Writable } from "node:stream";
|
|
|
25
32
|
*/
|
|
26
33
|
export class SimLambdaVmOutputStream extends Writable {
|
|
27
34
|
hostStream;
|
|
35
|
+
#sink = simLambdaNoOutputSink;
|
|
36
|
+
/**
|
|
37
|
+
* Decodes what is recorded, rather than each chunk being decoded on its own.
|
|
38
|
+
*
|
|
39
|
+
* A handler writing bytes it read in pieces can split a multibyte character
|
|
40
|
+
* across two writes, and decoding each Buffer separately would record a
|
|
41
|
+
* replacement character in place of both halves. The decoder holds the
|
|
42
|
+
* incomplete bytes until the write that completes them, which is also why it
|
|
43
|
+
* is never reset: an execution environment writes one continuous stream, so
|
|
44
|
+
* bytes left over at the end of an invocation belong to the next one.
|
|
45
|
+
*/
|
|
46
|
+
#decoder = new StringDecoder("utf8");
|
|
28
47
|
constructor(hostStream) {
|
|
29
48
|
super();
|
|
30
49
|
this.hostStream = hostStream;
|
|
31
50
|
}
|
|
51
|
+
/**
|
|
52
|
+
* Record everything written here to a sink from now on.
|
|
53
|
+
*/
|
|
54
|
+
recordTo(sink) {
|
|
55
|
+
this.#sink = sink;
|
|
56
|
+
}
|
|
32
57
|
/**
|
|
33
58
|
* The write is handed on and reported as done without waiting for the host
|
|
34
59
|
* stream, as Node.js's own console hands writes to process.stdout. Waiting
|
|
@@ -39,6 +64,7 @@ export class SimLambdaVmOutputStream extends Writable {
|
|
|
39
64
|
* ordinary way to capture it does not.
|
|
40
65
|
*/
|
|
41
66
|
_write(chunk, _encoding, done) {
|
|
67
|
+
this.#sink.write(this.#decoder.write(chunk));
|
|
42
68
|
this.hostStream().write(chunk);
|
|
43
69
|
done();
|
|
44
70
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sim-lambda-vm-output-stream.js","sourceRoot":"","sources":["../../../../../../src/service/lambda/function/code/vm/sim-lambda-vm-output-stream.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;
|
|
1
|
+
{"version":3,"file":"sim-lambda-vm-output-stream.js","sourceRoot":"","sources":["../../../../../../src/service/lambda/function/code/vm/sim-lambda-vm-output-stream.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AACvC,OAAO,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAC;AACpD,OAAO,EACL,qBAAqB,GAEtB,MAAM,yCAAyC,CAAC;AAEjD;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4BG;AACH,MAAM,OAAO,uBAAwB,SAAQ,QAAQ;IAetB,UAAU;IAdvC,KAAK,GAAwB,qBAAqB,CAAC;IAEnD;;;;;;;;;OASG;IACM,QAAQ,GAAG,IAAI,aAAa,CAAC,MAAM,CAAC,CAAC;IAE9C,YAA6B,UAAuC;QAClE,KAAK,EAAE,CAAC;0BADmB,UAAU;IAEvC,CAAC;IAED;;OAEG;IACH,QAAQ,CAAC,IAAyB;QAChC,IAAI,CAAC,KAAK,GAAG,IAAI,CAAC;IACpB,CAAC;IAED;;;;;;;;OAQG;IACM,MAAM,CACb,KAAa,EACb,SAAyB,EACzB,IAA6B;QAE7B,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,IAAI,CAAC,QAAQ,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC,CAAC;QAC7C,IAAI,CAAC,UAAU,EAAE,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC;QAC/B,IAAI,EAAE,CAAC;IACT,CAAC;CACF"}
|
|
@@ -5,6 +5,9 @@ interface SimLambdaInvokeContextBuilderProperties {
|
|
|
5
5
|
readonly invokedFunctionArn: string;
|
|
6
6
|
readonly timeoutSeconds: number;
|
|
7
7
|
readonly memorySizeMb: number;
|
|
8
|
+
readonly logGroupName: string;
|
|
9
|
+
/** The stream this invocation's execution environment writes to. */
|
|
10
|
+
readonly logStreamName: string;
|
|
8
11
|
/**
|
|
9
12
|
* Clock measuring how much of the invocation timeout is left. Reading the
|
|
10
13
|
* remaining time from the simulation's clock means a stopped clock leaves a
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sim-lambda-invoke-context-builder.d.ts","sourceRoot":"","sources":["../../../../../src/service/lambda/function/invoke/sim-lambda-invoke-context-builder.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EACV,iBAAiB,EACjB,gBAAgB,EACjB,MAAM,+BAA+B,CAAC;AACvC,OAAO,EACL,KAAK,QAAQ,EAEd,MAAM,qCAAqC,CAAC;AAE7C,UAAU,uCAAuC;IAC/C,QAAQ,CAAC,YAAY,EAAE,MAAM,CAAC;IAC9B,QAAQ,CAAC,kBAAkB,EAAE,MAAM,CAAC;IACpC,QAAQ,CAAC,cAAc,EAAE,MAAM,CAAC;IAChC,QAAQ,CAAC,YAAY,EAAE,MAAM,CAAC;IAC9B;;;;OAIG;IACH,QAAQ,CAAC,KAAK,CAAC,EAAE,QAAQ,GAAG,SAAS,CAAC;CACvC;AAED;;;;;GAKG;AACH,qBAAa,6BAA6B;IAEtC,OAAO,CAAC,QAAQ,CAAC,UAAU;IAD7B,YACmB,UAAU,EAAE,uCAAuC,EAClE;IAEJ;;OAEG;IACH,KAAK,CAAC,QAAQ,EAAE,iBAAiB,GAAG,gBAAgB,
|
|
1
|
+
{"version":3,"file":"sim-lambda-invoke-context-builder.d.ts","sourceRoot":"","sources":["../../../../../src/service/lambda/function/invoke/sim-lambda-invoke-context-builder.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EACV,iBAAiB,EACjB,gBAAgB,EACjB,MAAM,+BAA+B,CAAC;AACvC,OAAO,EACL,KAAK,QAAQ,EAEd,MAAM,qCAAqC,CAAC;AAE7C,UAAU,uCAAuC;IAC/C,QAAQ,CAAC,YAAY,EAAE,MAAM,CAAC;IAC9B,QAAQ,CAAC,kBAAkB,EAAE,MAAM,CAAC;IACpC,QAAQ,CAAC,cAAc,EAAE,MAAM,CAAC;IAChC,QAAQ,CAAC,YAAY,EAAE,MAAM,CAAC;IAC9B,QAAQ,CAAC,YAAY,EAAE,MAAM,CAAC;IAE9B,oEAAoE;IACpE,QAAQ,CAAC,aAAa,EAAE,MAAM,CAAC;IAC/B;;;;OAIG;IACH,QAAQ,CAAC,KAAK,CAAC,EAAE,QAAQ,GAAG,SAAS,CAAC;CACvC;AAED;;;;;GAKG;AACH,qBAAa,6BAA6B;IAEtC,OAAO,CAAC,QAAQ,CAAC,UAAU;IAD7B,YACmB,UAAU,EAAE,uCAAuC,EAClE;IAEJ;;OAEG;IACH,KAAK,CAAC,QAAQ,EAAE,iBAAiB,GAAG,gBAAgB,CAqCnD;CACF"}
|
|
@@ -15,7 +15,7 @@ export class SimLambdaInvokeContextBuilder {
|
|
|
15
15
|
* Build the context for one invocation.
|
|
16
16
|
*/
|
|
17
17
|
build(callback) {
|
|
18
|
-
const { functionName, invokedFunctionArn, timeoutSeconds, memorySizeMb, clock = new SimRealClock(), } = this.properties;
|
|
18
|
+
const { functionName, invokedFunctionArn, timeoutSeconds, memorySizeMb, logGroupName, logStreamName, clock = new SimRealClock(), } = this.properties;
|
|
19
19
|
const startedAtMs = clock.now().getTime();
|
|
20
20
|
const awsRequestId = randomUUID();
|
|
21
21
|
return {
|
|
@@ -25,8 +25,8 @@ export class SimLambdaInvokeContextBuilder {
|
|
|
25
25
|
invokedFunctionArn,
|
|
26
26
|
memoryLimitInMB: String(memorySizeMb),
|
|
27
27
|
awsRequestId,
|
|
28
|
-
logGroupName
|
|
29
|
-
logStreamName
|
|
28
|
+
logGroupName,
|
|
29
|
+
logStreamName,
|
|
30
30
|
getRemainingTimeInMillis: () => Math.max(0, timeoutSeconds * 1000 - (clock.now().getTime() - startedAtMs)),
|
|
31
31
|
done: (error, result) => {
|
|
32
32
|
callback(error ?? null, result);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sim-lambda-invoke-context-builder.js","sourceRoot":"","sources":["../../../../../src/service/lambda/function/invoke/sim-lambda-invoke-context-builder.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AAKzC,OAAO,EAEL,YAAY,GACb,MAAM,qCAAqC,CAAC;
|
|
1
|
+
{"version":3,"file":"sim-lambda-invoke-context-builder.js","sourceRoot":"","sources":["../../../../../src/service/lambda/function/invoke/sim-lambda-invoke-context-builder.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AAKzC,OAAO,EAEL,YAAY,GACb,MAAM,qCAAqC,CAAC;AAmB7C;;;;;GAKG;AACH,MAAM,OAAO,6BAA6B;IAErB,UAAU;IAD7B,YACmB,UAAmD;0BAAnD,UAAU;IAC1B,CAAC;IAEJ;;OAEG;IACH,KAAK,CAAC,QAA2B;QAC/B,MAAM,EACJ,YAAY,EACZ,kBAAkB,EAClB,cAAc,EACd,YAAY,EACZ,YAAY,EACZ,aAAa,EACb,KAAK,GAAG,IAAI,YAAY,EAAE,GAC3B,GAAG,IAAI,CAAC,UAAU,CAAC;QACpB,MAAM,WAAW,GAAG,KAAK,CAAC,GAAG,EAAE,CAAC,OAAO,EAAE,CAAC;QAC1C,MAAM,YAAY,GAAG,UAAU,EAAE,CAAC;QAElC,OAAO;YACL,8BAA8B,EAAE,IAAI;YACpC,YAAY;YACZ,eAAe,EAAE,SAAS;YAC1B,kBAAkB;YAClB,eAAe,EAAE,MAAM,CAAC,YAAY,CAAC;YACrC,YAAY;YACZ,YAAY;YACZ,aAAa;YACb,wBAAwB,EAAE,GAAW,EAAE,CACrC,IAAI,CAAC,GAAG,CACN,CAAC,EACD,cAAc,GAAG,IAAI,GAAG,CAAC,KAAK,CAAC,GAAG,EAAE,CAAC,OAAO,EAAE,GAAG,WAAW,CAAC,CAC9D;YACH,IAAI,EAAE,CAAC,KAAa,EAAE,MAAgB,EAAQ,EAAE;gBAC9C,QAAQ,CAAC,KAAK,IAAI,IAAI,EAAE,MAAM,CAAC,CAAC;YAClC,CAAC;YACD,IAAI,EAAE,CAAC,KAAqB,EAAQ,EAAE;gBACpC,QAAQ,CAAC,KAAK,CAAC,CAAC;YAClB,CAAC;YACD,OAAO,EAAE,CAAC,eAAwB,EAAQ,EAAE;gBAC1C,QAAQ,CAAC,IAAI,EAAE,eAAe,CAAC,CAAC;YAClC,CAAC;SACF,CAAC;IACJ,CAAC;CACF"}
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
import type { SimClock } from "../../../../util/clock/sim-clock.js";
|
|
2
|
+
import type { SimLogsServiceWriter } from "../../../logs/write/sim-logs-service-writer.js";
|
|
3
|
+
import type { SimLambdaExecutableCode } from "../code/sim-lambda-executable-code.js";
|
|
4
|
+
interface SimLambdaFunctionLoggingProperties {
|
|
5
|
+
readonly functionName: string;
|
|
6
|
+
readonly clock: SimClock;
|
|
7
|
+
/**
|
|
8
|
+
* Where output is recorded. A function built standalone, outside a SimAws
|
|
9
|
+
* instance, has no simulated CloudWatch Logs to record to.
|
|
10
|
+
*/
|
|
11
|
+
readonly logs?: SimLogsServiceWriter | undefined;
|
|
12
|
+
}
|
|
13
|
+
/**
|
|
14
|
+
* One function's side of writing its output to a log group.
|
|
15
|
+
*
|
|
16
|
+
* The group and stream names exist whether or not anything is recording, since
|
|
17
|
+
* real Lambda derives both from the function and its execution environment and
|
|
18
|
+
* a handler reads them from its context either way. What a missing simulated
|
|
19
|
+
* CloudWatch Logs changes is only whether a stream is opened behind them.
|
|
20
|
+
*
|
|
21
|
+
* Both names are settled once, on the first invocation, and reused after it.
|
|
22
|
+
* That is what an execution environment does: it cold starts, opens a stream,
|
|
23
|
+
* and keeps writing to it. Yulin does not recycle execution environments, so a
|
|
24
|
+
* function keeps one stream for as long as the function exists, and a new
|
|
25
|
+
* simulation opens a new one.
|
|
26
|
+
*/
|
|
27
|
+
export declare class SimLambdaFunctionLogging {
|
|
28
|
+
#private;
|
|
29
|
+
readonly logGroupName: string;
|
|
30
|
+
constructor(properties: SimLambdaFunctionLoggingProperties);
|
|
31
|
+
/**
|
|
32
|
+
* The stream this function's execution environment writes to, opening it if
|
|
33
|
+
* this is the first invocation.
|
|
34
|
+
*
|
|
35
|
+
* The group and stream are reopened on every invocation, not just the first.
|
|
36
|
+
* Opening is idempotent, and a test that deleted the log group in between
|
|
37
|
+
* would otherwise get it back only if the next handler happened to write
|
|
38
|
+
* something: real Lambda shows the stream for an invocation that logged
|
|
39
|
+
* nothing at all.
|
|
40
|
+
*/
|
|
41
|
+
logStreamName(): string;
|
|
42
|
+
/**
|
|
43
|
+
* Have this function's code record what it writes.
|
|
44
|
+
*/
|
|
45
|
+
recordFrom(code: SimLambdaExecutableCode): void;
|
|
46
|
+
/**
|
|
47
|
+
* Run an invocation, recording whatever it left unterminated once it is
|
|
48
|
+
* over.
|
|
49
|
+
*
|
|
50
|
+
* The flush happens whether the handler returned or threw, because a handler
|
|
51
|
+
* that logged and then failed is the one a test most wants to read the logs
|
|
52
|
+
* of, and real Lambda records the output either way.
|
|
53
|
+
*/
|
|
54
|
+
around<T>(run: () => Promise<T>): Promise<T>;
|
|
55
|
+
private coldStart;
|
|
56
|
+
}
|
|
57
|
+
export {};
|
|
58
|
+
//# sourceMappingURL=sim-lambda-function-logging.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sim-lambda-function-logging.d.ts","sourceRoot":"","sources":["../../../../../src/service/lambda/function/logging/sim-lambda-function-logging.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,qCAAqC,CAAC;AACpE,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,gDAAgD,CAAC;AAC3F,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,uCAAuC,CAAC;AAOrF,UAAU,kCAAkC;IAC1C,QAAQ,CAAC,YAAY,EAAE,MAAM,CAAC;IAC9B,QAAQ,CAAC,KAAK,EAAE,QAAQ,CAAC;IAEzB;;;OAGG;IACH,QAAQ,CAAC,IAAI,CAAC,EAAE,oBAAoB,GAAG,SAAS,CAAC;CAClD;AAED;;;;;;;;;;;;;GAaG;AACH,qBAAa,wBAAwB;;IACnC,QAAQ,CAAC,YAAY,EAAE,MAAM,CAAC;IAO9B,YAAY,UAAU,EAAE,kCAAkC,EAIzD;IAED;;;;;;;;;OASG;IACH,aAAa,IAAI,MAAM,CAKtB;IAED;;OAEG;IACH,UAAU,CAAC,IAAI,EAAE,uBAAuB,GAAG,IAAI,CAM9C;IAED;;;;;;;OAOG;IACG,MAAM,CAAC,CAAC,EAAE,GAAG,EAAE,MAAM,OAAO,CAAC,CAAC,CAAC,GAAG,OAAO,CAAC,CAAC,CAAC,CAMjD;IAED,OAAO,CAAC,SAAS;CAclB"}
|
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
import { SimLambdaLogWriter } from "./sim-lambda-log-writer.js";
|
|
2
|
+
import { simLambdaLogGroupName, simLambdaLogStreamName, } from "./sim-lambda-log-stream-name.js";
|
|
3
|
+
/**
|
|
4
|
+
* One function's side of writing its output to a log group.
|
|
5
|
+
*
|
|
6
|
+
* The group and stream names exist whether or not anything is recording, since
|
|
7
|
+
* real Lambda derives both from the function and its execution environment and
|
|
8
|
+
* a handler reads them from its context either way. What a missing simulated
|
|
9
|
+
* CloudWatch Logs changes is only whether a stream is opened behind them.
|
|
10
|
+
*
|
|
11
|
+
* Both names are settled once, on the first invocation, and reused after it.
|
|
12
|
+
* That is what an execution environment does: it cold starts, opens a stream,
|
|
13
|
+
* and keeps writing to it. Yulin does not recycle execution environments, so a
|
|
14
|
+
* function keeps one stream for as long as the function exists, and a new
|
|
15
|
+
* simulation opens a new one.
|
|
16
|
+
*/
|
|
17
|
+
export class SimLambdaFunctionLogging {
|
|
18
|
+
logGroupName;
|
|
19
|
+
#logs;
|
|
20
|
+
#clock;
|
|
21
|
+
#writer;
|
|
22
|
+
#logStreamName;
|
|
23
|
+
constructor(properties) {
|
|
24
|
+
this.logGroupName = simLambdaLogGroupName(properties.functionName);
|
|
25
|
+
this.#logs = properties.logs;
|
|
26
|
+
this.#clock = properties.clock;
|
|
27
|
+
}
|
|
28
|
+
/**
|
|
29
|
+
* The stream this function's execution environment writes to, opening it if
|
|
30
|
+
* this is the first invocation.
|
|
31
|
+
*
|
|
32
|
+
* The group and stream are reopened on every invocation, not just the first.
|
|
33
|
+
* Opening is idempotent, and a test that deleted the log group in between
|
|
34
|
+
* would otherwise get it back only if the next handler happened to write
|
|
35
|
+
* something: real Lambda shows the stream for an invocation that logged
|
|
36
|
+
* nothing at all.
|
|
37
|
+
*/
|
|
38
|
+
logStreamName() {
|
|
39
|
+
this.#logStreamName ??= this.coldStart();
|
|
40
|
+
this.#logs?.openStream(this.logGroupName, this.#logStreamName);
|
|
41
|
+
return this.#logStreamName;
|
|
42
|
+
}
|
|
43
|
+
/**
|
|
44
|
+
* Have this function's code record what it writes.
|
|
45
|
+
*/
|
|
46
|
+
recordFrom(code) {
|
|
47
|
+
const writer = this.#writer;
|
|
48
|
+
if (writer !== undefined) {
|
|
49
|
+
code.recordOutputTo(writer);
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
/**
|
|
53
|
+
* Run an invocation, recording whatever it left unterminated once it is
|
|
54
|
+
* over.
|
|
55
|
+
*
|
|
56
|
+
* The flush happens whether the handler returned or threw, because a handler
|
|
57
|
+
* that logged and then failed is the one a test most wants to read the logs
|
|
58
|
+
* of, and real Lambda records the output either way.
|
|
59
|
+
*/
|
|
60
|
+
async around(run) {
|
|
61
|
+
try {
|
|
62
|
+
return await run();
|
|
63
|
+
}
|
|
64
|
+
finally {
|
|
65
|
+
this.#writer?.flush();
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
coldStart() {
|
|
69
|
+
const logStreamName = simLambdaLogStreamName(this.#clock);
|
|
70
|
+
const logs = this.#logs;
|
|
71
|
+
if (logs !== undefined) {
|
|
72
|
+
this.#writer = new SimLambdaLogWriter({
|
|
73
|
+
logGroupName: this.logGroupName,
|
|
74
|
+
logStreamName,
|
|
75
|
+
logs,
|
|
76
|
+
});
|
|
77
|
+
}
|
|
78
|
+
return logStreamName;
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
//# sourceMappingURL=sim-lambda-function-logging.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sim-lambda-function-logging.js","sourceRoot":"","sources":["../../../../../src/service/lambda/function/logging/sim-lambda-function-logging.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,kBAAkB,EAAE,MAAM,4BAA4B,CAAC;AAChE,OAAO,EACL,qBAAqB,EACrB,sBAAsB,GACvB,MAAM,iCAAiC,CAAC;AAazC;;;;;;;;;;;;;GAaG;AACH,MAAM,OAAO,wBAAwB;IAC1B,YAAY,CAAS;IAErB,KAAK,CAAmC;IACxC,MAAM,CAAW;IAC1B,OAAO,CAAiC;IACxC,cAAc,CAAqB;IAEnC,YAAY,UAA8C;QACxD,IAAI,CAAC,YAAY,GAAG,qBAAqB,CAAC,UAAU,CAAC,YAAY,CAAC,CAAC;QACnE,IAAI,CAAC,KAAK,GAAG,UAAU,CAAC,IAAI,CAAC;QAC7B,IAAI,CAAC,MAAM,GAAG,UAAU,CAAC,KAAK,CAAC;IACjC,CAAC;IAED;;;;;;;;;OASG;IACH,aAAa;QACX,IAAI,CAAC,cAAc,KAAK,IAAI,CAAC,SAAS,EAAE,CAAC;QACzC,IAAI,CAAC,KAAK,EAAE,UAAU,CAAC,IAAI,CAAC,YAAY,EAAE,IAAI,CAAC,cAAc,CAAC,CAAC;QAE/D,OAAO,IAAI,CAAC,cAAc,CAAC;IAC7B,CAAC;IAED;;OAEG;IACH,UAAU,CAAC,IAA6B;QACtC,MAAM,MAAM,GAAG,IAAI,CAAC,OAAO,CAAC;QAE5B,IAAI,MAAM,KAAK,SAAS,EAAE,CAAC;YACzB,IAAI,CAAC,cAAc,CAAC,MAAM,CAAC,CAAC;QAC9B,CAAC;IACH,CAAC;IAED;;;;;;;OAOG;IACH,KAAK,CAAC,MAAM,CAAI,GAAqB;QACnC,IAAI,CAAC;YACH,OAAO,MAAM,GAAG,EAAE,CAAC;QACrB,CAAC;gBAAS,CAAC;YACT,IAAI,CAAC,OAAO,EAAE,KAAK,EAAE,CAAC;QACxB,CAAC;IACH,CAAC;IAEO,SAAS;QACf,MAAM,aAAa,GAAG,sBAAsB,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;QAC1D,MAAM,IAAI,GAAG,IAAI,CAAC,KAAK,CAAC;QAExB,IAAI,IAAI,KAAK,SAAS,EAAE,CAAC;YACvB,IAAI,CAAC,OAAO,GAAG,IAAI,kBAAkB,CAAC;gBACpC,YAAY,EAAE,IAAI,CAAC,YAAY;gBAC/B,aAAa;gBACb,IAAI;aACL,CAAC,CAAC;QACL,CAAC;QAED,OAAO,aAAa,CAAC;IACvB,CAAC;CACF"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import type { SimClock } from "../../../../util/clock/sim-clock.js";
|
|
2
|
+
/**
|
|
3
|
+
* The log group a Lambda function writes to.
|
|
4
|
+
*
|
|
5
|
+
* Real Lambda derives it from the function name, and so does the value the
|
|
6
|
+
* runtime puts in `context.logGroupName`.
|
|
7
|
+
*/
|
|
8
|
+
export declare function simLambdaLogGroupName(functionName: string): string;
|
|
9
|
+
/**
|
|
10
|
+
* The name of the log stream one execution environment writes to.
|
|
11
|
+
*
|
|
12
|
+
* Real Lambda names it `YYYY/MM/DD/[$LATEST]<32 hex characters>`, dated by
|
|
13
|
+
* when the environment started rather than by the invocation, which is why a
|
|
14
|
+
* long-lived environment keeps writing to yesterday's stream. The date comes
|
|
15
|
+
* from the simulation's clock so a test that froze time gets the date it set.
|
|
16
|
+
*
|
|
17
|
+
* The hex part identifies the execution environment, not the request. A test
|
|
18
|
+
* asserting on a stream name should match the shape rather than the value, as
|
|
19
|
+
* it would have to against a real account.
|
|
20
|
+
*/
|
|
21
|
+
export declare function simLambdaLogStreamName(clock: SimClock): string;
|
|
22
|
+
//# sourceMappingURL=sim-lambda-log-stream-name.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sim-lambda-log-stream-name.d.ts","sourceRoot":"","sources":["../../../../../src/service/lambda/function/logging/sim-lambda-log-stream-name.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,qCAAqC,CAAC;AAEpE;;;;;GAKG;AACH,wBAAgB,qBAAqB,CAAC,YAAY,EAAE,MAAM,GAAG,MAAM,CAElE;AAED;;;;;;;;;;;GAWG;AACH,wBAAgB,sBAAsB,CAAC,KAAK,EAAE,QAAQ,GAAG,MAAM,CAO9D"}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { randomUUID } from "node:crypto";
|
|
2
|
+
/**
|
|
3
|
+
* The log group a Lambda function writes to.
|
|
4
|
+
*
|
|
5
|
+
* Real Lambda derives it from the function name, and so does the value the
|
|
6
|
+
* runtime puts in `context.logGroupName`.
|
|
7
|
+
*/
|
|
8
|
+
export function simLambdaLogGroupName(functionName) {
|
|
9
|
+
return `/aws/lambda/${functionName}`;
|
|
10
|
+
}
|
|
11
|
+
/**
|
|
12
|
+
* The name of the log stream one execution environment writes to.
|
|
13
|
+
*
|
|
14
|
+
* Real Lambda names it `YYYY/MM/DD/[$LATEST]<32 hex characters>`, dated by
|
|
15
|
+
* when the environment started rather than by the invocation, which is why a
|
|
16
|
+
* long-lived environment keeps writing to yesterday's stream. The date comes
|
|
17
|
+
* from the simulation's clock so a test that froze time gets the date it set.
|
|
18
|
+
*
|
|
19
|
+
* The hex part identifies the execution environment, not the request. A test
|
|
20
|
+
* asserting on a stream name should match the shape rather than the value, as
|
|
21
|
+
* it would have to against a real account.
|
|
22
|
+
*/
|
|
23
|
+
export function simLambdaLogStreamName(clock) {
|
|
24
|
+
const started = clock.now();
|
|
25
|
+
const year = started.getUTCFullYear();
|
|
26
|
+
const month = String(started.getUTCMonth() + 1).padStart(2, "0");
|
|
27
|
+
const day = String(started.getUTCDate()).padStart(2, "0");
|
|
28
|
+
return `${year}/${month}/${day}/[$LATEST]${randomUUID().replaceAll("-", "")}`;
|
|
29
|
+
}
|
|
30
|
+
//# sourceMappingURL=sim-lambda-log-stream-name.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sim-lambda-log-stream-name.js","sourceRoot":"","sources":["../../../../../src/service/lambda/function/logging/sim-lambda-log-stream-name.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AAGzC;;;;;GAKG;AACH,MAAM,UAAU,qBAAqB,CAAC,YAAoB;IACxD,OAAO,eAAe,YAAY,EAAE,CAAC;AACvC,CAAC;AAED;;;;;;;;;;;GAWG;AACH,MAAM,UAAU,sBAAsB,CAAC,KAAe;IACpD,MAAM,OAAO,GAAG,KAAK,CAAC,GAAG,EAAE,CAAC;IAC5B,MAAM,IAAI,GAAG,OAAO,CAAC,cAAc,EAAE,CAAC;IACtC,MAAM,KAAK,GAAG,MAAM,CAAC,OAAO,CAAC,WAAW,EAAE,GAAG,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,EAAE,GAAG,CAAC,CAAC;IACjE,MAAM,GAAG,GAAG,MAAM,CAAC,OAAO,CAAC,UAAU,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,EAAE,GAAG,CAAC,CAAC;IAE1D,OAAO,GAAG,IAAI,IAAI,KAAK,IAAI,GAAG,aAAa,UAAU,EAAE,CAAC,UAAU,CAAC,GAAG,EAAE,EAAE,CAAC,EAAE,CAAC;AAChF,CAAC"}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import type { SimLogsServiceWriter } from "../../../logs/write/sim-logs-service-writer.js";
|
|
2
|
+
interface SimLambdaLogWriterProperties {
|
|
3
|
+
readonly logGroupName: string;
|
|
4
|
+
readonly logStreamName: string;
|
|
5
|
+
readonly logs: SimLogsServiceWriter;
|
|
6
|
+
}
|
|
7
|
+
/**
|
|
8
|
+
* Records one execution environment's output into its log stream.
|
|
9
|
+
*
|
|
10
|
+
* Output is written line by line because that is what a log event is. Real
|
|
11
|
+
* CloudWatch Logs records one event per line, so a handler printing a
|
|
12
|
+
* multi-line object gets several events, and a test filtering for one of those
|
|
13
|
+
* lines finds it.
|
|
14
|
+
*/
|
|
15
|
+
export declare class SimLambdaLogWriter {
|
|
16
|
+
#private;
|
|
17
|
+
constructor(properties: SimLambdaLogWriterProperties);
|
|
18
|
+
/**
|
|
19
|
+
* Record what the handler wrote.
|
|
20
|
+
*
|
|
21
|
+
* A chunk is whatever reached the stream, which need not be a whole line: a
|
|
22
|
+
* handler writing to `process.stdout` directly can send one line in several
|
|
23
|
+
* writes. What is left over after the last newline is held back until the
|
|
24
|
+
* write that completes it, so a line is never split across two events.
|
|
25
|
+
*/
|
|
26
|
+
write(chunk: string): void;
|
|
27
|
+
/**
|
|
28
|
+
* Record anything written without a closing newline.
|
|
29
|
+
*
|
|
30
|
+
* Real Lambda records what the handler wrote when the invocation ends, so a
|
|
31
|
+
* `process.stdout.write("no newline")` still reaches the log group rather
|
|
32
|
+
* than waiting for a line that never comes.
|
|
33
|
+
*/
|
|
34
|
+
flush(): void;
|
|
35
|
+
}
|
|
36
|
+
export {};
|
|
37
|
+
//# sourceMappingURL=sim-lambda-log-writer.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sim-lambda-log-writer.d.ts","sourceRoot":"","sources":["../../../../../src/service/lambda/function/logging/sim-lambda-log-writer.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,gDAAgD,CAAC;AAE3F,UAAU,4BAA4B;IACpC,QAAQ,CAAC,YAAY,EAAE,MAAM,CAAC;IAC9B,QAAQ,CAAC,aAAa,EAAE,MAAM,CAAC;IAC/B,QAAQ,CAAC,IAAI,EAAE,oBAAoB,CAAC;CACrC;AAED;;;;;;;GAOG;AACH,qBAAa,kBAAkB;;IAM7B,YAAY,UAAU,EAAE,4BAA4B,EAKnD;IAED;;;;;;;OAOG;IACH,KAAK,CAAC,KAAK,EAAE,MAAM,GAAG,IAAI,CAezB;IAED;;;;;;OAMG;IACH,KAAK,IAAI,IAAI,CASZ;CACF"}
|