@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,54 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Records one execution environment's output into its log stream.
|
|
3
|
+
*
|
|
4
|
+
* Output is written line by line because that is what a log event is. Real
|
|
5
|
+
* CloudWatch Logs records one event per line, so a handler printing a
|
|
6
|
+
* multi-line object gets several events, and a test filtering for one of those
|
|
7
|
+
* lines finds it.
|
|
8
|
+
*/
|
|
9
|
+
export class SimLambdaLogWriter {
|
|
10
|
+
#logGroupName;
|
|
11
|
+
#logStreamName;
|
|
12
|
+
#logs;
|
|
13
|
+
#pending = "";
|
|
14
|
+
constructor(properties) {
|
|
15
|
+
this.#logGroupName = properties.logGroupName;
|
|
16
|
+
this.#logStreamName = properties.logStreamName;
|
|
17
|
+
this.#logs = properties.logs;
|
|
18
|
+
this.#logs.openStream(this.#logGroupName, this.#logStreamName);
|
|
19
|
+
}
|
|
20
|
+
/**
|
|
21
|
+
* Record what the handler wrote.
|
|
22
|
+
*
|
|
23
|
+
* A chunk is whatever reached the stream, which need not be a whole line: a
|
|
24
|
+
* handler writing to `process.stdout` directly can send one line in several
|
|
25
|
+
* writes. What is left over after the last newline is held back until the
|
|
26
|
+
* write that completes it, so a line is never split across two events.
|
|
27
|
+
*/
|
|
28
|
+
write(chunk) {
|
|
29
|
+
const text = this.#pending + chunk;
|
|
30
|
+
const lastNewline = text.lastIndexOf("\n");
|
|
31
|
+
if (lastNewline === -1) {
|
|
32
|
+
this.#pending = text;
|
|
33
|
+
return;
|
|
34
|
+
}
|
|
35
|
+
this.#pending = text.slice(lastNewline + 1);
|
|
36
|
+
this.#logs.write(this.#logGroupName, this.#logStreamName, text.slice(0, lastNewline).split("\n"));
|
|
37
|
+
}
|
|
38
|
+
/**
|
|
39
|
+
* Record anything written without a closing newline.
|
|
40
|
+
*
|
|
41
|
+
* Real Lambda records what the handler wrote when the invocation ends, so a
|
|
42
|
+
* `process.stdout.write("no newline")` still reaches the log group rather
|
|
43
|
+
* than waiting for a line that never comes.
|
|
44
|
+
*/
|
|
45
|
+
flush() {
|
|
46
|
+
if (this.#pending.length === 0) {
|
|
47
|
+
return;
|
|
48
|
+
}
|
|
49
|
+
const pending = this.#pending;
|
|
50
|
+
this.#pending = "";
|
|
51
|
+
this.#logs.write(this.#logGroupName, this.#logStreamName, [pending]);
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
//# sourceMappingURL=sim-lambda-log-writer.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sim-lambda-log-writer.js","sourceRoot":"","sources":["../../../../../src/service/lambda/function/logging/sim-lambda-log-writer.ts"],"names":[],"mappings":"AAQA;;;;;;;GAOG;AACH,MAAM,OAAO,kBAAkB;IACpB,aAAa,CAAS;IACtB,cAAc,CAAS;IACvB,KAAK,CAAuB;IACrC,QAAQ,GAAG,EAAE,CAAC;IAEd,YAAY,UAAwC;QAClD,IAAI,CAAC,aAAa,GAAG,UAAU,CAAC,YAAY,CAAC;QAC7C,IAAI,CAAC,cAAc,GAAG,UAAU,CAAC,aAAa,CAAC;QAC/C,IAAI,CAAC,KAAK,GAAG,UAAU,CAAC,IAAI,CAAC;QAC7B,IAAI,CAAC,KAAK,CAAC,UAAU,CAAC,IAAI,CAAC,aAAa,EAAE,IAAI,CAAC,cAAc,CAAC,CAAC;IACjE,CAAC;IAED;;;;;;;OAOG;IACH,KAAK,CAAC,KAAa;QACjB,MAAM,IAAI,GAAG,IAAI,CAAC,QAAQ,GAAG,KAAK,CAAC;QACnC,MAAM,WAAW,GAAG,IAAI,CAAC,WAAW,CAAC,IAAI,CAAC,CAAC;QAE3C,IAAI,WAAW,KAAK,CAAC,CAAC,EAAE,CAAC;YACvB,IAAI,CAAC,QAAQ,GAAG,IAAI,CAAC;YACrB,OAAO;QACT,CAAC;QAED,IAAI,CAAC,QAAQ,GAAG,IAAI,CAAC,KAAK,CAAC,WAAW,GAAG,CAAC,CAAC,CAAC;QAC5C,IAAI,CAAC,KAAK,CAAC,KAAK,CACd,IAAI,CAAC,aAAa,EAClB,IAAI,CAAC,cAAc,EACnB,IAAI,CAAC,KAAK,CAAC,CAAC,EAAE,WAAW,CAAC,CAAC,KAAK,CAAC,IAAI,CAAC,CACvC,CAAC;IACJ,CAAC;IAED;;;;;;OAMG;IACH,KAAK;QACH,IAAI,IAAI,CAAC,QAAQ,CAAC,MAAM,KAAK,CAAC,EAAE,CAAC;YAC/B,OAAO;QACT,CAAC;QAED,MAAM,OAAO,GAAG,IAAI,CAAC,QAAQ,CAAC;QAE9B,IAAI,CAAC,QAAQ,GAAG,EAAE,CAAC;QACnB,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,IAAI,CAAC,aAAa,EAAE,IAAI,CAAC,cAAc,EAAE,CAAC,OAAO,CAAC,CAAC,CAAC;IACvE,CAAC;CACF"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Something that records what a Lambda handler writes to its standard streams.
|
|
3
|
+
*
|
|
4
|
+
* Executable code is given one of these before it cold starts, so the streams
|
|
5
|
+
* it hands function code tee into it. It is an interface rather than the log
|
|
6
|
+
* writer itself so that the code path does not have to know that what it is
|
|
7
|
+
* writing to is a log group.
|
|
8
|
+
*/
|
|
9
|
+
export interface SimLambdaOutputSink {
|
|
10
|
+
/**
|
|
11
|
+
* Record a chunk of output, which need not be a whole line.
|
|
12
|
+
*/
|
|
13
|
+
write(chunk: string): void;
|
|
14
|
+
}
|
|
15
|
+
/**
|
|
16
|
+
* A sink that records nothing.
|
|
17
|
+
*
|
|
18
|
+
* Code that was never given one writes to the host streams and nowhere else,
|
|
19
|
+
* which is what a function built standalone, outside a SimAws instance, does.
|
|
20
|
+
*/
|
|
21
|
+
export declare const simLambdaNoOutputSink: SimLambdaOutputSink;
|
|
22
|
+
//# sourceMappingURL=sim-lambda-output-sink.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sim-lambda-output-sink.d.ts","sourceRoot":"","sources":["../../../../../src/service/lambda/function/logging/sim-lambda-output-sink.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AACH,MAAM,WAAW,mBAAmB;IAClC;;OAEG;IACH,KAAK,CAAC,KAAK,EAAE,MAAM,GAAG,IAAI,CAAC;CAC5B;AAED;;;;;GAKG;AACH,eAAO,MAAM,qBAAqB,EAAE,mBAInC,CAAC"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* A sink that records nothing.
|
|
3
|
+
*
|
|
4
|
+
* Code that was never given one writes to the host streams and nowhere else,
|
|
5
|
+
* which is what a function built standalone, outside a SimAws instance, does.
|
|
6
|
+
*/
|
|
7
|
+
export const simLambdaNoOutputSink = {
|
|
8
|
+
write: () => {
|
|
9
|
+
// Nothing is recording.
|
|
10
|
+
},
|
|
11
|
+
};
|
|
12
|
+
//# sourceMappingURL=sim-lambda-output-sink.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sim-lambda-output-sink.js","sourceRoot":"","sources":["../../../../../src/service/lambda/function/logging/sim-lambda-output-sink.ts"],"names":[],"mappings":"AAeA;;;;;GAKG;AACH,MAAM,CAAC,MAAM,qBAAqB,GAAwB;IACxD,KAAK,EAAE,GAAS,EAAE;QAChB,wBAAwB;IAC1B,CAAC;CACF,CAAC"}
|
|
@@ -3,6 +3,7 @@ import type { SimAwsRunAsOwner } from "../../aws/caller/sim-aws-run-as-context.j
|
|
|
3
3
|
import type { SimAwsAccountRegionScope } from "../../aws/sim-aws-account-region-scope.js";
|
|
4
4
|
import { type SimLambdaExecutableCode } from "./code/sim-lambda-executable-code.js";
|
|
5
5
|
import { SimLambdaEnvironment } from "./environment/sim-lambda-environment.js";
|
|
6
|
+
import type { SimLogsServiceWriter } from "../../logs/write/sim-logs-service-writer.js";
|
|
6
7
|
import { SimLambdaFunctionPolicy } from "./policy/sim-lambda-function-policy.js";
|
|
7
8
|
import { type SimClock } from "../../../util/clock/sim-clock.js";
|
|
8
9
|
import { type SimLambdaHandler } from "./sim-lambda-handler.type.js";
|
|
@@ -58,6 +59,12 @@ interface SimLambdaFunctionProperties {
|
|
|
58
59
|
* real clock.
|
|
59
60
|
*/
|
|
60
61
|
clock?: SimClock | undefined;
|
|
62
|
+
/**
|
|
63
|
+
* Where this function's handler output is recorded. A function built
|
|
64
|
+
* standalone, outside a SimAws instance, has nowhere to record to and writes
|
|
65
|
+
* only to the host streams.
|
|
66
|
+
*/
|
|
67
|
+
logs?: SimLogsServiceWriter | undefined;
|
|
61
68
|
}
|
|
62
69
|
/**
|
|
63
70
|
* Simulated Lambda function resource.
|
|
@@ -91,7 +98,12 @@ export declare class SimLambdaFunction {
|
|
|
91
98
|
private readonly runAsOwner;
|
|
92
99
|
private readonly runner;
|
|
93
100
|
private readonly clock;
|
|
101
|
+
private readonly logging;
|
|
94
102
|
constructor(properties: SimLambdaFunctionProperties);
|
|
103
|
+
/**
|
|
104
|
+
* The log group this function's output is recorded to.
|
|
105
|
+
*/
|
|
106
|
+
get logGroupName(): string;
|
|
95
107
|
/**
|
|
96
108
|
* Get the current state of this sim Lambda function.
|
|
97
109
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sim-lambda-function.d.ts","sourceRoot":"","sources":["../../../../src/service/lambda/function/sim-lambda-function.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,6BAA6B,CAAC;AACzD,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,4CAA4C,CAAC;AAGnF,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,2CAA2C,CAAC;AAC1F,OAAO,EACL,KAAK,uBAAuB,EAE7B,MAAM,sCAAsC,CAAC;AAC9C,OAAO,EAAE,oBAAoB,EAAE,MAAM,yCAAyC,CAAC;
|
|
1
|
+
{"version":3,"file":"sim-lambda-function.d.ts","sourceRoot":"","sources":["../../../../src/service/lambda/function/sim-lambda-function.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,6BAA6B,CAAC;AACzD,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,4CAA4C,CAAC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B,WAAW,EAAE,MAAM,GAAG,SAAS,CAAC;IAChD,SAAgB,cAAc,EAAE,MAAM,CAAC;IACvC,SAAgB,YAAY,EAAE,MAAM,CAAC;IACrC,SAAgB,WAAW,EAAE,oBAAoB,CAAC;IAClD;;;;;;;OAOG;IACH,SAAgB,cAAc,0BAAiC;IAG/D,OAAO,CAAC,QAAQ,CAAC,IAAI,CAA0B;IAC/C,OAAO,CAAC,QAAQ,CAAC,UAAU,CAAmB;IAC9C,OAAO,CAAC,QAAQ,CAAC,MAAM,CAAgC;IACvD,OAAO,CAAC,QAAQ,CAAC,KAAK,CAAW;IACjC,OAAO,CAAC,QAAQ,CAAC,OAAO,CAA2B;IAEnD,YAAY,UAAU,EAAE,2BAA2B,EA0ClD;IAED;;OAEG;IACH,IAAI,YAAY,IAAI,MAAM,CAEzB;IAED;;OAEG;IACH,IAAI,KAAK,IAAI,sBAAsB,CAElC;IAED;;OAEG;IACH,IAAI,GAAG,IAAI,oBAAoB,CAE9B;IAED;;OAEG;IACH,QAAQ,IAAI,OAAO,CAAC,IAAI,CAAC,CAGxB;IAED;;OAEG;IACH,aAAa,IAAI,8BAA8B,CAc9C;IAED;;;;;;;;;;;OAWG;IACG,MAAM,CAAC,KAAK,EAAE,OAAO,GAAG,OAAO,CAAC,OAAO,CAAC,CAgC7C;IAED;;;;;;OAMG;YACW,oBAAoB;CAOnC"}
|
|
@@ -2,6 +2,7 @@ import { simAwsRunAsContext } from "../../aws/caller/sim-aws-run-as-context.js";
|
|
|
2
2
|
import { simAwsAccountRegionScopeFactory } from "../../aws/sim-aws-account-region-scope.factory.js";
|
|
3
3
|
import { SimLambdaHandlerReferenceCode, } from "./code/sim-lambda-executable-code.js";
|
|
4
4
|
import { SimLambdaEnvironment } from "./environment/sim-lambda-environment.js";
|
|
5
|
+
import { SimLambdaFunctionLogging } from "./logging/sim-lambda-function-logging.js";
|
|
5
6
|
import { SimLambdaFunctionPolicy } from "./policy/sim-lambda-function-policy.js";
|
|
6
7
|
import { SimLambdaHandlerRunner } from "./invoke/sim-lambda-handler-runner.js";
|
|
7
8
|
import { SimLambdaInvokeContextBuilder } from "./invoke/sim-lambda-invoke-context-builder.js";
|
|
@@ -48,8 +49,9 @@ export class SimLambdaFunction {
|
|
|
48
49
|
runAsOwner;
|
|
49
50
|
runner = new SimLambdaHandlerRunner();
|
|
50
51
|
clock;
|
|
52
|
+
logging;
|
|
51
53
|
constructor(properties) {
|
|
52
|
-
const { name, roleArn, accountRegionScope = simAwsAccountRegionScopeFactory.make(), handlerFunction = defaultLambdaHandler, code, state = "Pending", handlerName, runtimeName, description, timeoutSeconds = DEFAULT_SIM_LAMBDA_TIMEOUT_SECONDS, memorySizeMb = DEFAULT_SIM_LAMBDA_MEMORY_SIZE_MB, environment, runAsOwner = this, clock = new SimRealClock(), } = properties;
|
|
54
|
+
const { name, roleArn, accountRegionScope = simAwsAccountRegionScopeFactory.make(), handlerFunction = defaultLambdaHandler, code, state = "Pending", handlerName, runtimeName, description, timeoutSeconds = DEFAULT_SIM_LAMBDA_TIMEOUT_SECONDS, memorySizeMb = DEFAULT_SIM_LAMBDA_MEMORY_SIZE_MB, environment, runAsOwner = this, clock = new SimRealClock(), logs, } = properties;
|
|
53
55
|
this.clock = clock;
|
|
54
56
|
this.name = name;
|
|
55
57
|
this.roleArn = roleArn;
|
|
@@ -69,6 +71,17 @@ export class SimLambdaFunction {
|
|
|
69
71
|
memorySizeMb,
|
|
70
72
|
});
|
|
71
73
|
this.runAsOwner = runAsOwner;
|
|
74
|
+
this.logging = new SimLambdaFunctionLogging({
|
|
75
|
+
functionName: name,
|
|
76
|
+
logs,
|
|
77
|
+
clock,
|
|
78
|
+
});
|
|
79
|
+
}
|
|
80
|
+
/**
|
|
81
|
+
* The log group this function's output is recorded to.
|
|
82
|
+
*/
|
|
83
|
+
get logGroupName() {
|
|
84
|
+
return this.logging.logGroupName;
|
|
72
85
|
}
|
|
73
86
|
/**
|
|
74
87
|
* Get the current state of this sim Lambda function.
|
|
@@ -126,8 +139,11 @@ export class SimLambdaFunction {
|
|
|
126
139
|
timeoutSeconds: this.timeoutSeconds,
|
|
127
140
|
memorySizeMb: this.memorySizeMb,
|
|
128
141
|
clock: this.clock,
|
|
142
|
+
logGroupName: this.logging.logGroupName,
|
|
143
|
+
logStreamName: this.logging.logStreamName(),
|
|
129
144
|
});
|
|
130
|
-
|
|
145
|
+
this.logging.recordFrom(this.code);
|
|
146
|
+
return await simAwsRunAsContext.run(this.runAsOwner, { kind: "arn", arn: this.roleArn }, async () => await this.environment.runWith(async () => await this.runWithSimulatedTime(async () => await this.logging.around(async () => await this.runner.run(this.code.handlerFunction(), event, contextBuilder)))));
|
|
131
147
|
}
|
|
132
148
|
/**
|
|
133
149
|
* Run an invocation with this simulation's time as the current time.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sim-lambda-function.js","sourceRoot":"","sources":["../../../../src/service/lambda/function/sim-lambda-function.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,kBAAkB,EAAE,MAAM,4CAA4C,CAAC;AAChF,OAAO,EAAE,+BAA+B,EAAE,MAAM,mDAAmD,CAAC;AAEpG,OAAO,EAEL,6BAA6B,GAC9B,MAAM,sCAAsC,CAAC;AAC9C,OAAO,EAAE,oBAAoB,EAAE,MAAM,yCAAyC,CAAC;AAC/E,OAAO,EAAE,uBAAuB,EAAE,MAAM,wCAAwC,CAAC;AACjF,OAAO,EAAE,sBAAsB,EAAE,MAAM,uCAAuC,CAAC;AAC/E,OAAO,EAAE,6BAA6B,EAAE,MAAM,+CAA+C,CAAC;AAC9F,OAAO,EAAE,qBAAqB,EAAE,MAAM,sCAAsC,CAAC;AAC7E,OAAO,EAAiB,YAAY,EAAE,MAAM,kCAAkC,CAAC;AAC/E,OAAO,EACL,oBAAoB,GAErB,MAAM,8BAA8B,CAAC;AAItC,MAAM,CAAC,MAAM,kCAAkC,GAAG,CAAC,CAAC;AACpD,MAAM,CAAC,MAAM,iCAAiC,GAAG,GAAG,C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InterServiceAuthZ } from "../..
|
|
|
3
3
|
import type { SimAwsRequestSource } from "../../../iam/request/sim-aws-request-source.js";
|
|
4
4
|
import type { SimLambdaFunction } from "../../function/sim-lambda-function.js";
|
|
5
5
|
import type { SimLambdaFunctionUrl } from "../../function/url/sim-lambda-function-url.js";
|
|
6
|
-
/**
|
|
7
|
-
* The IAM action a Function URL invocation is authorized against.
|
|
8
|
-
*
|
|
9
|
-
* This is deliberately not `lambda:InvokeFunction`, which is what the Invoke
|
|
10
|
-
* API maps to. Real AWS separates the two so a policy can grant the HTTP
|
|
11
|
-
* endpoint without granting the SDK operation, and a test asserting on that
|
|
12
|
-
* distinction should see it hold here.
|
|
13
|
-
*/
|
|
14
|
-
export declare const simLambdaInvokeFunctionUrlAction = "lambda:InvokeFunctionUrl";
|
|
15
6
|
interface SimLambdaUrlAuthorizerProperties {
|
|
16
7
|
readonly iam: SimIamInterServiceAuthZ;
|
|
17
8
|
}
|
|
@@ -40,7 +31,19 @@ export declare class SimLambdaUrlAuthorizer {
|
|
|
40
31
|
private readonly iam;
|
|
41
32
|
constructor(properties: SimLambdaUrlAuthorizerProperties);
|
|
42
33
|
/**
|
|
43
|
-
* Evaluate
|
|
34
|
+
* Evaluate the actions reaching this Function URL takes.
|
|
35
|
+
*
|
|
36
|
+
* `lambda:InvokeFunctionUrl` is the one a caller signing its own request
|
|
37
|
+
* needs. CloudFront reaching the URL through an origin access control needs
|
|
38
|
+
* `lambda:InvokeFunction` on top of it, so a resource policy granting only
|
|
39
|
+
* the URL action is refused here as real Lambda refuses it.
|
|
40
|
+
*
|
|
41
|
+
* Every action is judged against the same request, so a permission
|
|
42
|
+
* conditioned on the Distribution applies to both.
|
|
43
|
+
*/
|
|
44
|
+
authorize(input: SimLambdaUrlAuthorizationInput): SimIamAuthorizationDecision;
|
|
45
|
+
/**
|
|
46
|
+
* Evaluate one action for a caller against a Function URL.
|
|
44
47
|
*
|
|
45
48
|
* The URL's auth type is supplied as `lambda:FunctionUrlAuthType`, which is
|
|
46
49
|
* what a grant conditions on in practice: a permission granted for `AWS_IAM`
|
|
@@ -52,7 +55,7 @@ export declare class SimLambdaUrlAuthorizer {
|
|
|
52
55
|
* no source supplies neither, so a permission conditioned on one does not
|
|
53
56
|
* match rather than matching anything.
|
|
54
57
|
*/
|
|
55
|
-
|
|
58
|
+
private decide;
|
|
56
59
|
}
|
|
57
60
|
export {};
|
|
58
61
|
//# sourceMappingURL=sim-lambda-url-authorizer.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sim-lambda-url-authorizer.d.ts","sourceRoot":"","sources":["../../../../../src/service/lambda/serve/auth/sim-lambda-url-authorizer.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,uCAAuC,CAAC;AAC1E,OAAO,KAAK,EACV,2BAA2B,EAC3B,uBAAuB,EACxB,MAAM,wDAAwD,CAAC;
|
|
1
|
+
{"version":3,"file":"sim-lambda-url-authorizer.d.ts","sourceRoot":"","sources":["../../../../../src/service/lambda/serve/auth/sim-lambda-url-authorizer.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,uCAAuC,CAAC;AAC1E,OAAO,KAAK,EACV,2BAA2B,EAC3B,uBAAuB,EACxB,MAAM,wDAAwD,CAAC;AAYhE,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,gDAAgD,CAAC;AAC1F,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,uCAAuC,CAAC;AAC/E,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,+CAA+C,CAAC;AAE1F,UAAU,gCAAgC;IACxC,QAAQ,CAAC,GAAG,EAAE,uBAAuB,CAAC;CACvC;AAED,UAAU,8BAA8B;IACtC,QAAQ,CAAC,WAAW,EAAE,iBAAiB,CAAC;IACxC,QAAQ,CAAC,WAAW,EAAE,oBAAoB,CAAC;IAC3C,QAAQ,CAAC,MAAM,EAAE,YAAY,CAAC;IAC9B;;;OAGG;IACH,QAAQ,CAAC,MAAM,CAAC,EAAE,mBAAmB,GAAG,SAAS,CAAC;CACnD;AAED;;;;;;;;;;GAUG;AACH,qBAAa,sBAAsB;IACjC,OAAO,CAAC,QAAQ,CAAC,GAAG,CAA0B;IAE9C,YAAY,UAAU,EAAE,gCAAgC,EAEvD;IAED;;;;;;;;;;OAUG;IACH,SAAS,CACP,KAAK,EAAE,8BAA8B,GACpC,2BAA2B,CAkB7B;IAED;;;;;;;;;;;;OAYG;IACH,OAAO,CAAC,MAAM;CAsBf"}
|
|
@@ -1,14 +1,6 @@
|
|
|
1
1
|
import { simLambdaResourcePolicies } from "../../command/authorize/sim-lambda-resource-policies.js";
|
|
2
2
|
import { simLambdaFunctionUrlAuthTypeConditionKey, simLambdaSourceAccountConditionKey, simLambdaSourceArnConditionKey, } from "../../function/policy/sim-lambda-permission.js";
|
|
3
|
-
|
|
4
|
-
* The IAM action a Function URL invocation is authorized against.
|
|
5
|
-
*
|
|
6
|
-
* This is deliberately not `lambda:InvokeFunction`, which is what the Invoke
|
|
7
|
-
* API maps to. Real AWS separates the two so a policy can grant the HTTP
|
|
8
|
-
* endpoint without granting the SDK operation, and a test asserting on that
|
|
9
|
-
* distinction should see it hold here.
|
|
10
|
-
*/
|
|
11
|
-
export const simLambdaInvokeFunctionUrlAction = "lambda:InvokeFunctionUrl";
|
|
3
|
+
import { simLambdaInvokeFunctionAction, simLambdaInvokeFunctionUrlAction, simLambdaUrlRequiresInvokeFunction, } from "./sim-lambda-url-invoke-actions.js";
|
|
12
4
|
/**
|
|
13
5
|
* Decides whether a caller may invoke a Function URL.
|
|
14
6
|
*
|
|
@@ -26,7 +18,32 @@ export class SimLambdaUrlAuthorizer {
|
|
|
26
18
|
this.iam = properties.iam;
|
|
27
19
|
}
|
|
28
20
|
/**
|
|
29
|
-
* Evaluate
|
|
21
|
+
* Evaluate the actions reaching this Function URL takes.
|
|
22
|
+
*
|
|
23
|
+
* `lambda:InvokeFunctionUrl` is the one a caller signing its own request
|
|
24
|
+
* needs. CloudFront reaching the URL through an origin access control needs
|
|
25
|
+
* `lambda:InvokeFunction` on top of it, so a resource policy granting only
|
|
26
|
+
* the URL action is refused here as real Lambda refuses it.
|
|
27
|
+
*
|
|
28
|
+
* Every action is judged against the same request, so a permission
|
|
29
|
+
* conditioned on the Distribution applies to both.
|
|
30
|
+
*/
|
|
31
|
+
authorize(input) {
|
|
32
|
+
const urlDecision = this.decide(simLambdaInvokeFunctionUrlAction, input);
|
|
33
|
+
if (urlDecision.isDenied) {
|
|
34
|
+
return urlDecision;
|
|
35
|
+
}
|
|
36
|
+
if (!simLambdaUrlRequiresInvokeFunction(input.caller)) {
|
|
37
|
+
return urlDecision;
|
|
38
|
+
}
|
|
39
|
+
const invokeDecision = this.decide(simLambdaInvokeFunctionAction, input);
|
|
40
|
+
if (invokeDecision.isDenied) {
|
|
41
|
+
return invokeDecision;
|
|
42
|
+
}
|
|
43
|
+
return urlDecision;
|
|
44
|
+
}
|
|
45
|
+
/**
|
|
46
|
+
* Evaluate one action for a caller against a Function URL.
|
|
30
47
|
*
|
|
31
48
|
* The URL's auth type is supplied as `lambda:FunctionUrlAuthType`, which is
|
|
32
49
|
* what a grant conditions on in practice: a permission granted for `AWS_IAM`
|
|
@@ -38,10 +55,10 @@ export class SimLambdaUrlAuthorizer {
|
|
|
38
55
|
* no source supplies neither, so a permission conditioned on one does not
|
|
39
56
|
* match rather than matching anything.
|
|
40
57
|
*/
|
|
41
|
-
|
|
58
|
+
decide(action, input) {
|
|
42
59
|
const { source } = input;
|
|
43
60
|
return this.iam.authorize({
|
|
44
|
-
action
|
|
61
|
+
action,
|
|
45
62
|
resource: input.simFunction.arn,
|
|
46
63
|
caller: input.caller,
|
|
47
64
|
resourcePolicies: simLambdaResourcePolicies(input.simFunction),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sim-lambda-url-authorizer.js","sourceRoot":"","sources":["../../../../../src/service/lambda/serve/auth/sim-lambda-url-authorizer.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,yBAAyB,EAAE,MAAM,yDAAyD,CAAC;AACpG,OAAO,EACL,wCAAwC,EACxC,kCAAkC,EAClC,8BAA8B,GAC/B,MAAM,gDAAgD,CAAC;
|
|
1
|
+
{"version":3,"file":"sim-lambda-url-authorizer.js","sourceRoot":"","sources":["../../../../../src/service/lambda/serve/auth/sim-lambda-url-authorizer.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,yBAAyB,EAAE,MAAM,yDAAyD,CAAC;AACpG,OAAO,EACL,wCAAwC,EACxC,kCAAkC,EAClC,8BAA8B,GAC/B,MAAM,gDAAgD,CAAC;AACxD,OAAO,EACL,6BAA6B,EAC7B,gCAAgC,EAChC,kCAAkC,GACnC,MAAM,oCAAoC,CAAC;AAoB5C;;;;;;;;;;GAUG;AACH,MAAM,OAAO,sBAAsB;IAChB,GAAG,CAA0B;IAE9C,YAAY,UAA4C;QACtD,IAAI,CAAC,GAAG,GAAG,UAAU,CAAC,GAAG,CAAC;IAC5B,CAAC;IAED;;;;;;;;;;OAUG;IACH,SAAS,CACP,KAAqC;QAErC,MAAM,WAAW,GAAG,IAAI,CAAC,MAAM,CAAC,gCAAgC,EAAE,KAAK,CAAC,CAAC;QAEzE,IAAI,WAAW,CAAC,QAAQ,EAAE,CAAC;YACzB,OAAO,WAAW,CAAC;QACrB,CAAC;QAED,IAAI,CAAC,kCAAkC,CAAC,KAAK,CAAC,MAAM,CAAC,EAAE,CAAC;YACtD,OAAO,WAAW,CAAC;QACrB,CAAC;QAED,MAAM,cAAc,GAAG,IAAI,CAAC,MAAM,CAAC,6BAA6B,EAAE,KAAK,CAAC,CAAC;QAEzE,IAAI,cAAc,CAAC,QAAQ,EAAE,CAAC;YAC5B,OAAO,cAAc,CAAC;QACxB,CAAC;QAED,OAAO,WAAW,CAAC;IACrB,CAAC;IAED;;;;;;;;;;;;OAYG;IACK,MAAM,CACZ,MAAc,EACd,KAAqC;QAErC,MAAM,EAAE,MAAM,EAAE,GAAG,KAAK,CAAC;QAEzB,OAAO,IAAI,CAAC,GAAG,CAAC,SAAS,CAAC;YACxB,MAAM;YACN,QAAQ,EAAE,KAAK,CAAC,WAAW,CAAC,GAAG;YAC/B,MAAM,EAAE,KAAK,CAAC,MAAM;YACpB,gBAAgB,EAAE,yBAAyB,CAAC,KAAK,CAAC,WAAW,CAAC;YAC9D,gBAAgB,EAAE;gBAChB,CAAC,wCAAwC,CAAC,EAAE,KAAK,CAAC,WAAW,CAAC,QAAQ;gBACtE,GAAG,CAAC,MAAM,EAAE,GAAG,KAAK,SAAS,IAAI;oBAC/B,CAAC,8BAA8B,CAAC,EAAE,MAAM,CAAC,GAAG;iBAC7C,CAAC;gBACF,GAAG,CAAC,MAAM,EAAE,SAAS,KAAK,SAAS,IAAI;oBACrC,CAAC,kCAAkC,CAAC,EAAE,MAAM,CAAC,SAAS;iBACvD,CAAC;aACH;SACF,CAAC,CAAC;IACL,CAAC;CACF"}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import type { SimAwsCaller } from "../../../aws/caller/sim-aws-caller.js";
|
|
2
|
+
/**
|
|
3
|
+
* The IAM action a Function URL invocation is authorized against.
|
|
4
|
+
*
|
|
5
|
+
* This is deliberately not `lambda:InvokeFunction`, which is what the Invoke
|
|
6
|
+
* API maps to. Real AWS separates the two so a policy can grant the HTTP
|
|
7
|
+
* endpoint without granting the SDK operation, and a test asserting on that
|
|
8
|
+
* distinction should see it hold here.
|
|
9
|
+
*
|
|
10
|
+
* That is the whole rule for a caller signing its own request. It is not the
|
|
11
|
+
* whole rule for a CloudFront origin access control, which needs
|
|
12
|
+
* `lambda:InvokeFunction` as well.
|
|
13
|
+
*/
|
|
14
|
+
export declare const simLambdaInvokeFunctionUrlAction = "lambda:InvokeFunctionUrl";
|
|
15
|
+
/**
|
|
16
|
+
* The action the Invoke API maps to, which reaching a Function URL through a
|
|
17
|
+
* CloudFront origin access control takes on top of the URL action.
|
|
18
|
+
*
|
|
19
|
+
* Real Lambda answers an origin access control granted only the URL action
|
|
20
|
+
* with 403 and never runs the handler. Both grants go to the CloudFront
|
|
21
|
+
* service principal and both are conditioned on the Distribution, as described
|
|
22
|
+
* in [Restrict access to an AWS Lambda function URL
|
|
23
|
+
* origin](https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/private-content-restricting-access-to-lambda.html).
|
|
24
|
+
*/
|
|
25
|
+
export declare const simLambdaInvokeFunctionAction = "lambda:InvokeFunction";
|
|
26
|
+
/**
|
|
27
|
+
* Whether reaching this Function URL also takes `lambda:InvokeFunction`.
|
|
28
|
+
*
|
|
29
|
+
* True for CloudFront, and false for anything else, which is the distinction
|
|
30
|
+
* real Lambda draws: a caller signing the request itself needs the URL action
|
|
31
|
+
* alone.
|
|
32
|
+
*/
|
|
33
|
+
export declare function simLambdaUrlRequiresInvokeFunction(caller: SimAwsCaller): boolean;
|
|
34
|
+
//# sourceMappingURL=sim-lambda-url-invoke-actions.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sim-lambda-url-invoke-actions.d.ts","sourceRoot":"","sources":["../../../../../src/service/lambda/serve/auth/sim-lambda-url-invoke-actions.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,YAAY,EAEb,MAAM,uCAAuC,CAAC;AAE/C;;;;;;;;;;;GAWG;AACH,eAAO,MAAM,gCAAgC,6BAA6B,CAAC;AAE3E;;;;;;;;;GASG;AACH,eAAO,MAAM,6BAA6B,0BAA0B,CAAC;AAWrE;;;;;;GAMG;AACH,wBAAgB,kCAAkC,CAChD,MAAM,EAAE,YAAY,GACnB,OAAO,CAQT"}
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The IAM action a Function URL invocation is authorized against.
|
|
3
|
+
*
|
|
4
|
+
* This is deliberately not `lambda:InvokeFunction`, which is what the Invoke
|
|
5
|
+
* API maps to. Real AWS separates the two so a policy can grant the HTTP
|
|
6
|
+
* endpoint without granting the SDK operation, and a test asserting on that
|
|
7
|
+
* distinction should see it hold here.
|
|
8
|
+
*
|
|
9
|
+
* That is the whole rule for a caller signing its own request. It is not the
|
|
10
|
+
* whole rule for a CloudFront origin access control, which needs
|
|
11
|
+
* `lambda:InvokeFunction` as well.
|
|
12
|
+
*/
|
|
13
|
+
export const simLambdaInvokeFunctionUrlAction = "lambda:InvokeFunctionUrl";
|
|
14
|
+
/**
|
|
15
|
+
* The action the Invoke API maps to, which reaching a Function URL through a
|
|
16
|
+
* CloudFront origin access control takes on top of the URL action.
|
|
17
|
+
*
|
|
18
|
+
* Real Lambda answers an origin access control granted only the URL action
|
|
19
|
+
* with 403 and never runs the handler. Both grants go to the CloudFront
|
|
20
|
+
* service principal and both are conditioned on the Distribution, as described
|
|
21
|
+
* in [Restrict access to an AWS Lambda function URL
|
|
22
|
+
* origin](https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/private-content-restricting-access-to-lambda.html).
|
|
23
|
+
*/
|
|
24
|
+
export const simLambdaInvokeFunctionAction = "lambda:InvokeFunction";
|
|
25
|
+
/**
|
|
26
|
+
* The service principal CloudFront reaches an Origin as.
|
|
27
|
+
*
|
|
28
|
+
* Named here rather than imported from simulated CloudFront, so that simulated
|
|
29
|
+
* Lambda goes on depending on nothing in that service. What real Lambda wants
|
|
30
|
+
* the second action for is the principal, whatever is simulating it.
|
|
31
|
+
*/
|
|
32
|
+
const cloudFrontServicePrincipal = "cloudfront.amazonaws.com";
|
|
33
|
+
/**
|
|
34
|
+
* Whether reaching this Function URL also takes `lambda:InvokeFunction`.
|
|
35
|
+
*
|
|
36
|
+
* True for CloudFront, and false for anything else, which is the distinction
|
|
37
|
+
* real Lambda draws: a caller signing the request itself needs the URL action
|
|
38
|
+
* alone.
|
|
39
|
+
*/
|
|
40
|
+
export function simLambdaUrlRequiresInvokeFunction(caller) {
|
|
41
|
+
const principal = callerPrincipal(caller);
|
|
42
|
+
if (principal.kind !== "service") {
|
|
43
|
+
return false;
|
|
44
|
+
}
|
|
45
|
+
return principal.service === cloudFrontServicePrincipal;
|
|
46
|
+
}
|
|
47
|
+
/**
|
|
48
|
+
* The principal a caller names.
|
|
49
|
+
*
|
|
50
|
+
* Credentials name one too, but only once IAM has authenticated them, and
|
|
51
|
+
* nothing reaching a Function URL as a service principal presents any: an
|
|
52
|
+
* origin access control states who it is at the boundary instead.
|
|
53
|
+
*/
|
|
54
|
+
function callerPrincipal(caller) {
|
|
55
|
+
if (caller.kind === "resolved") {
|
|
56
|
+
return caller.principal;
|
|
57
|
+
}
|
|
58
|
+
if (caller.kind === "credentials") {
|
|
59
|
+
return { kind: "anonymous" };
|
|
60
|
+
}
|
|
61
|
+
return caller;
|
|
62
|
+
}
|
|
63
|
+
//# sourceMappingURL=sim-lambda-url-invoke-actions.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sim-lambda-url-invoke-actions.js","sourceRoot":"","sources":["../../../../../src/service/lambda/serve/auth/sim-lambda-url-invoke-actions.ts"],"names":[],"mappings":"AAKA;;;;;;;;;;;GAWG;AACH,MAAM,CAAC,MAAM,gCAAgC,GAAG,0BAA0B,CAAC;AAE3E;;;;;;;;;GASG;AACH,MAAM,CAAC,MAAM,6BAA6B,GAAG,uBAAuB,CAAC;AAErE;;;;;;GAMG;AACH,MAAM,0BAA0B,GAAG,0BAA0B,CAAC;AAE9D;;;;;;GAMG;AACH,MAAM,UAAU,kCAAkC,CAChD,MAAoB;IAEpB,MAAM,SAAS,GAAG,eAAe,CAAC,MAAM,CAAC,CAAC;IAE1C,IAAI,SAAS,CAAC,IAAI,KAAK,SAAS,EAAE,CAAC;QACjC,OAAO,KAAK,CAAC;IACf,CAAC;IAED,OAAO,SAAS,CAAC,OAAO,KAAK,0BAA0B,CAAC;AAC1D,CAAC;AAED;;;;;;GAMG;AACH,SAAS,eAAe,CAAC,MAAoB;IAC3C,IAAI,MAAM,CAAC,IAAI,KAAK,UAAU,EAAE,CAAC;QAC/B,OAAO,MAAM,CAAC,SAAS,CAAC;IAC1B,CAAC;IAED,IAAI,MAAM,CAAC,IAAI,KAAK,aAAa,EAAE,CAAC;QAClC,OAAO,EAAE,IAAI,EAAE,WAAW,EAAE,CAAC;IAC/B,CAAC;IAED,OAAO,MAAM,CAAC;AAChB,CAAC"}
|
|
@@ -1,3 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* What real Lambda says when it refuses a Function URL request.
|
|
3
|
+
*
|
|
4
|
+
* A refused request never reaches the handler and writes no log stream, so
|
|
5
|
+
* this body is the only thing a deployment has to go on. The wording is real
|
|
6
|
+
* Lambda's, down to the link, because that is what someone will be reading.
|
|
7
|
+
*/
|
|
8
|
+
export declare const simLambdaUrlForbiddenMessage: string;
|
|
1
9
|
/**
|
|
2
10
|
* The error responses a Function URL endpoint returns itself, before or
|
|
3
11
|
* instead of the function producing one.
|
|
@@ -12,7 +20,7 @@ export declare class SimLambdaUrlErrorResponse {
|
|
|
12
20
|
*/
|
|
13
21
|
notFound(): Response;
|
|
14
22
|
/**
|
|
15
|
-
* The
|
|
23
|
+
* The caller is not allowed to invoke this Function URL.
|
|
16
24
|
*/
|
|
17
25
|
forbidden(): Response;
|
|
18
26
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sim-lambda-url-error-response.d.ts","sourceRoot":"","sources":["../../../../../src/service/lambda/serve/response/sim-lambda-url-error-response.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AACH,qBAAa,yBAAyB;IACpC;;OAEG;IACH,QAAQ,IAAI,QAAQ,CAEnB;IAED;;OAEG;IACH,SAAS,IAAI,QAAQ,CAEpB;IAED;;OAEG;IACH,mBAAmB,IAAI,QAAQ,CAE9B;IAED,OAAO,CAAC,YAAY;CASrB"}
|
|
1
|
+
{"version":3,"file":"sim-lambda-url-error-response.d.ts","sourceRoot":"","sources":["../../../../../src/service/lambda/serve/response/sim-lambda-url-error-response.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AACH,eAAO,MAAM,4BAA4B,QAEsB,CAAC;AAEhE;;;;;;;GAOG;AACH,qBAAa,yBAAyB;IACpC;;OAEG;IACH,QAAQ,IAAI,QAAQ,CAEnB;IAED;;OAEG;IACH,SAAS,IAAI,QAAQ,CAEpB;IAED;;OAEG;IACH,mBAAmB,IAAI,QAAQ,CAE9B;IAED,OAAO,CAAC,YAAY;CASrB"}
|
|
@@ -1,3 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* What real Lambda says when it refuses a Function URL request.
|
|
3
|
+
*
|
|
4
|
+
* A refused request never reaches the handler and writes no log stream, so
|
|
5
|
+
* this body is the only thing a deployment has to go on. The wording is real
|
|
6
|
+
* Lambda's, down to the link, because that is what someone will be reading.
|
|
7
|
+
*/
|
|
8
|
+
export const simLambdaUrlForbiddenMessage = "Forbidden. For troubleshooting Function URL authorization issues, see: " +
|
|
9
|
+
"https://docs.aws.amazon.com/lambda/latest/dg/urls-auth.html";
|
|
1
10
|
/**
|
|
2
11
|
* The error responses a Function URL endpoint returns itself, before or
|
|
3
12
|
* instead of the function producing one.
|
|
@@ -14,10 +23,10 @@ export class SimLambdaUrlErrorResponse {
|
|
|
14
23
|
return this.jsonResponse(404, "Not Found");
|
|
15
24
|
}
|
|
16
25
|
/**
|
|
17
|
-
* The
|
|
26
|
+
* The caller is not allowed to invoke this Function URL.
|
|
18
27
|
*/
|
|
19
28
|
forbidden() {
|
|
20
|
-
return this.jsonResponse(403,
|
|
29
|
+
return this.jsonResponse(403, simLambdaUrlForbiddenMessage);
|
|
21
30
|
}
|
|
22
31
|
/**
|
|
23
32
|
* The function failed to handle the invocation.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sim-lambda-url-error-response.js","sourceRoot":"","sources":["../../../../../src/service/lambda/serve/response/sim-lambda-url-error-response.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AACH,MAAM,OAAO,yBAAyB;IACpC;;OAEG;IACH,QAAQ;QACN,OAAO,IAAI,CAAC,YAAY,CAAC,GAAG,EAAE,WAAW,CAAC,CAAC;IAC7C,CAAC;IAED;;OAEG;IACH,SAAS;QACP,OAAO,IAAI,CAAC,YAAY,CAAC,GAAG,EAAE,
|
|
1
|
+
{"version":3,"file":"sim-lambda-url-error-response.js","sourceRoot":"","sources":["../../../../../src/service/lambda/serve/response/sim-lambda-url-error-response.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AACH,MAAM,CAAC,MAAM,4BAA4B,GACvC,yEAAyE;IACzE,6DAA6D,CAAC;AAEhE;;;;;;;GAOG;AACH,MAAM,OAAO,yBAAyB;IACpC;;OAEG;IACH,QAAQ;QACN,OAAO,IAAI,CAAC,YAAY,CAAC,GAAG,EAAE,WAAW,CAAC,CAAC;IAC7C,CAAC;IAED;;OAEG;IACH,SAAS;QACP,OAAO,IAAI,CAAC,YAAY,CAAC,GAAG,EAAE,4BAA4B,CAAC,CAAC;IAC9D,CAAC;IAED;;OAEG;IACH,mBAAmB;QACjB,OAAO,IAAI,CAAC,YAAY,CAAC,GAAG,EAAE,uBAAuB,CAAC,CAAC;IACzD,CAAC;IAEO,YAAY,CAAC,MAAc,EAAE,OAAe;QAClD,OAAO,QAAQ,CAAC,IAAI,CAClB,EAAE,OAAO,EAAE,OAAO,EAAE,EACpB;YACE,MAAM;YACN,OAAO,EAAE,EAAE,cAAc,EAAE,kBAAkB,EAAE;SAChD,CACF,CAAC;IACJ,CAAC;CACF"}
|
|
@@ -11,6 +11,7 @@ import { type SimLambdaEventSourceStreams } from "./event-source/stream/sim-lamb
|
|
|
11
11
|
import { type SimLambdaContainerImages } from "./function/code/image/sim-lambda-container-images.js";
|
|
12
12
|
import type { SimLambdaCodeStore } from "./function/code/store/sim-lambda-code-store.js";
|
|
13
13
|
import type { SimLambdaVmSdkModuleProvider } from "./function/code/vm/sdk/sim-lambda-vm-sdk-module-provider.js";
|
|
14
|
+
import type { SimLogsServiceWriter } from "../logs/write/sim-logs-service-writer.js";
|
|
14
15
|
import type { SimLambdaFunctionMap } from "./function/sim-lambda-function.js";
|
|
15
16
|
import { SimLambdaFunctionLookup } from "./function/url/sim-lambda-function-lookup.js";
|
|
16
17
|
import { SimLambdaFunctionUrlStore } from "./function/url/sim-lambda-function-url-store.js";
|
|
@@ -26,6 +27,7 @@ export interface SimLambdaProperties {
|
|
|
26
27
|
readonly codeStore?: SimLambdaCodeStore;
|
|
27
28
|
readonly containerImages?: SimLambdaContainerImages;
|
|
28
29
|
readonly vmSdkModuleProvider?: SimLambdaVmSdkModuleProvider;
|
|
30
|
+
readonly logs?: SimLogsServiceWriter | undefined;
|
|
29
31
|
readonly urlRegistry?: SimLambdaUrlRegistry;
|
|
30
32
|
readonly eventSourceQueues?: SimSqsPollQueues;
|
|
31
33
|
readonly eventSourceStreams?: SimLambdaEventSourceStreams;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sim-lambda-commands.d.ts","sourceRoot":"","sources":["../../../src/service/lambda/sim-lambda-commands.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,mBAAmB,EAEzB,MAAM,qCAAqC,CAAC;AAC7C,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,yCAAyC,CAAC;AAChF,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,oCAAoC,CAAC;AAE3E,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,wCAAwC,CAAC;AACvF,OAAO,EAEL,KAAK,uBAAuB,EAC7B,MAAM,kDAAkD,CAAC;AAC1D,OAAO,EAAE,mCAAmC,EAAE,MAAM,4EAA4E,CAAC;AACjI,OAAO,EAAE,yBAAyB,EAAE,MAAM,oDAAoD,CAAC;AAC/F,OAAO,EAAE,4BAA4B,EAAE,MAAM,4DAA4D,CAAC;AAC1G,OAAO,EAAE,2BAA2B,EAAE,MAAM,wDAAwD,CAAC;AAGrG,OAAO,EACL,KAAK,2BAA2B,EAEjC,MAAM,0DAA0D,CAAC;AAClE,OAAO,EACL,KAAK,w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7 +35,7 @@ export class SimLambdaCommands {
|
|
|
35
35
|
permissions;
|
|
36
36
|
eventSourceMappings;
|
|
37
37
|
constructor(properties) {
|
|
38
|
-
const { accountRegionScope = simAwsAccountRegionScopeFactory.make(), iam = new SimIamAllowAllAuth(), background = new BackgroundTasks(), codeStore, vmSdkModuleProvider,
|
|
38
|
+
const { accountRegionScope = simAwsAccountRegionScopeFactory.make(), iam = new SimIamAllowAllAuth(), background = new BackgroundTasks(), codeStore, vmSdkModuleProvider, logs,
|
|
39
39
|
// A standalone SimLambda is not reachable over HTTP, so its own registry
|
|
40
40
|
// is enough; a SimAws-created one shares the environment-wide registry
|
|
41
41
|
// the serving layer routes with.
|
|
@@ -95,6 +95,7 @@ export class SimLambdaCommands {
|
|
|
95
95
|
codeStore,
|
|
96
96
|
containerImages,
|
|
97
97
|
vmSdkModuleProvider,
|
|
98
|
+
logs,
|
|
98
99
|
});
|
|
99
100
|
}
|
|
100
101
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sim-lambda-commands.js","sourceRoot":"","sources":["../../../src/service/lambda/sim-lambda-commands.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,eAAe,GAChB,MAAM,qCAAqC,CAAC;AAG7C,OAAO,EAAE,+BAA+B,EAAE,MAAM,gDAAgD,CAAC;AAEjG,OAAO,EACL,kBAAkB,GAEnB,MAAM,kDAAkD,CAAC;AAC1D,OAAO,EAAE,mCAAmC,EAAE,MAAM,4EAA4E,CAAC;AACjI,OAAO,EAAE,yBAAyB,EAAE,MAAM,oDAAoD,CAAC;AAC/F,OAAO,EAAE,4BAA4B,EAAE,MAAM,4DAA4D,CAAC;AAC1G,OAAO,EAAE,2BAA2B,EAAE,MAAM,wDAAwD,CAAC;AACrG,OAAO,EAAE,2BAA2B,EAAE,MAAM,mDAAmD,CAAC;AAChG,OAAO,EAAE,4BAA4B,EAAE,MAAM,2DAA2D,CAAC;AACzG,OAAO,EAEL,6BAA6B,GAC9B,MAAM,0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,MAAM,EAAE,iBAAiB;YACzB,OAAO,EAAE,kBAAkB;YAC3B,SAAS,EAAE,IAAI,CAAC,cAAc;YAC9B,GAAG;YACH,UAAU;SACX,CAAC,CAAC;QACH,IAAI,CAAC,SAAS,GAAG,IAAI,yBAAyB,CAAC;YAC7C,kBAAkB;YAClB,SAAS,EAAE,UAAU,CAAC,SAAS;YAC/B,YAAY,EAAE,IAAI,CAAC,gBAAgB;YACnC,GAAG;YACH,UAAU;YACV,UAAU,EAAE,UAAU,CAAC,UAAU;YACjC,yEAAyE;YACzE,mDAAmD;YACnD,oBAAoB,EAAE,IAAI,6BAA6B,EAAE;YACzD,SAAS;YACT,eAAe;YACf,mBAAmB;YACnB,IAAI;SACL,CAAC,CAAC;IACL,CAAC;CACF"}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import type { SimCfnResource } from "../../../cloudformation/resource/sim-cfn-resource.js";
|
|
2
|
+
import type { SimCfnTemplateValueRecord } from "../../../cloudformation/template/value/sim-cfn-template-value.js";
|
|
3
|
+
import type { SimLogsLogGroup } from "../../group/sim-logs-log-group.js";
|
|
4
|
+
import type { SimLogs } from "../../sim-logs.js";
|
|
5
|
+
interface SimCfnLogGroupCreatorProperties {
|
|
6
|
+
readonly logs: SimLogs;
|
|
7
|
+
}
|
|
8
|
+
/**
|
|
9
|
+
* Creates simulated log groups from AWS::Logs::LogGroup Resources.
|
|
10
|
+
*
|
|
11
|
+
* A declared log group and one a Lambda function made for itself are the same
|
|
12
|
+
* thing, which is why creating one that is already there is not an error here
|
|
13
|
+
* the way `CreateLogGroup` is. A template naming `/aws/lambda/orders` is
|
|
14
|
+
* usually saying what retention that function's logs should have, and it is
|
|
15
|
+
* ordinary for the function to have logged first: real CloudFormation fails
|
|
16
|
+
* that deploy, which is a genuine misconfiguration in an account and pure
|
|
17
|
+
* noise in a test whose function ran during setup.
|
|
18
|
+
*/
|
|
19
|
+
export declare class SimCfnLogGroupCreator {
|
|
20
|
+
#private;
|
|
21
|
+
constructor(properties: SimCfnLogGroupCreatorProperties);
|
|
22
|
+
/**
|
|
23
|
+
* Create a log group from an AWS::Logs::LogGroup Resource.
|
|
24
|
+
*/
|
|
25
|
+
create(resource: SimCfnResource, properties: SimCfnTemplateValueRecord): SimLogsLogGroup;
|
|
26
|
+
/**
|
|
27
|
+
* Delete a log group created from an AWS::Logs::LogGroup Resource.
|
|
28
|
+
*
|
|
29
|
+
* The events go with it, as they do in an account.
|
|
30
|
+
*/
|
|
31
|
+
delete(group: SimLogsLogGroup): void;
|
|
32
|
+
}
|
|
33
|
+
export {};
|
|
34
|
+
//# sourceMappingURL=sim-cfn-log-group-creator.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sim-cfn-log-group-creator.d.ts","sourceRoot":"","sources":["../../../../../src/service/logs/cfn/group/sim-cfn-log-group-creator.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,sDAAsD,CAAC;AAC3F,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,kEAAkE,CAAC;AAClH,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,mCAAmC,CAAC;AACzE,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAGjD,UAAU,+BAA+B;IACvC,QAAQ,CAAC,IAAI,EAAE,OAAO,CAAC;CACxB;AAED;;;;;;;;;;GAUG;AACH,qBAAa,qBAAqB;;IAGhC,YAAY,UAAU,EAAE,+BAA+B,EAEtD;IAED;;OAEG;IACH,MAAM,CACJ,QAAQ,EAAE,cAAc,EACxB,UAAU,EAAE,yBAAyB,GACpC,eAAe,CAejB;IAED;;;;OAIG;IACH,MAAM,CAAC,KAAK,EAAE,eAAe,GAAG,IAAI,CAEnC;CACF"}
|